@tech_carthagos/page-builder 1.0.67 → 1.0.69

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 CHANGED
@@ -1,285 +1,285 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),Ss=require("react-dom"),Vh=require("@tanstack/react-query");function yd(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 v=yd(w),vd=yd(Ss);function xd(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=xd(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ct(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=xd(t))&&(n&&(n+=" "),n+=e);return n}const Es="-",Wh=t=>{const e=Yh(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:a=>{const s=a.split(Es);return s[0]===""&&s.length!==1&&s.shift(),wd(s,e)||Gh(a)},getConflictingClassGroupIds:(a,s)=>{const u=r[a]||[];return s&&n[a]?[...u,...n[a]]:u}}},wd=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?wd(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Es);return(a=e.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},ol=/^\[(.+)\]$/,Gh=t=>{if(ol.test(t)){const e=ol.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Yh=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Kh(Object.entries(t.classGroups),r).forEach(([i,a])=>{Sa(a,n,i,e)}),n},Sa=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:il(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(Xh(o)){Sa(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,a])=>{Sa(a,il(e,i),r,n)})})},il=(t,e)=>{let r=t;return e.split(Es).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Xh=t=>t.isThemeGetter,Kh=(t,e)=>e?t.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[e+a,s])):i);return[r,o]}):t,Jh=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const o=(i,a)=>{r.set(i,a),e++,e>t&&(e=0,n=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=n.get(i))!==void 0)return o(i,a),a},set(i,a){r.has(i)?r.set(i,a):o(i,a)}}},Sd="!",Zh=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,o=e[0],i=e.length,a=s=>{const u=[];let l=0,c=0,h;for(let b=0;b<s.length;b++){let y=s[b];if(l===0){if(y===o&&(n||s.slice(b,b+i)===e)){u.push(s.slice(c,b)),c=b+i;continue}if(y==="/"){h=b;continue}}y==="["?l++:y==="]"&&l--}const f=u.length===0?s:s.substring(c),d=f.startsWith(Sd),m=d?f.substring(1):f,g=h&&h>c?h-c:void 0;return{modifiers:u,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:a}):a},Qh=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},em=t=>({cache:Jh(t.cacheSize),parseClassName:Zh(t),...Wh(t)}),tm=/\s+/,rm=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=[],a=t.trim().split(tm);let s="";for(let u=a.length-1;u>=0;u-=1){const l=a[u],{modifiers:c,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=r(l);let m=!!d,g=n(m?f.substring(0,d):f);if(!g){if(!m){s=l+(s.length>0?" "+s:s);continue}if(g=n(f),!g){s=l+(s.length>0?" "+s:s);continue}m=!1}const b=Qh(c).join(":"),y=h?b+Sd:b,x=y+g;if(i.includes(x))continue;i.push(x);const S=o(g,m);for(let E=0;E<S.length;++E){const A=S[E];i.push(y+A)}s=l+(s.length>0?" "+s:s)}return s};function nm(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Ed(e))&&(n&&(n+=" "),n+=r);return n}const Ed=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Ed(t[n]))&&(r&&(r+=" "),r+=e);return r};function om(t,...e){let r,n,o,i=a;function a(u){const l=e.reduce((c,h)=>h(c),t());return r=em(l),n=r.cache.get,o=r.cache.set,i=s,s(u)}function s(u){const l=n(u);if(l)return l;const c=rm(u,r);return o(u,c),c}return function(){return i(nm.apply(null,arguments))}}const le=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},Cd=/^\[(?:([a-z-]+):)?(.+)\]$/i,im=/^\d+\/\d+$/,am=new Set(["px","full","screen"]),sm=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,um=/\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$/,lm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,cm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,dm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vt=t=>Nr(t)||am.has(t)||im.test(t),Mt=t=>zr(t,"length",vm),Nr=t=>!!t&&!Number.isNaN(Number(t)),Zi=t=>zr(t,"number",Nr),an=t=>!!t&&Number.isInteger(Number(t)),fm=t=>t.endsWith("%")&&Nr(t.slice(0,-1)),Y=t=>Cd.test(t),$t=t=>sm.test(t),pm=new Set(["length","size","percentage"]),hm=t=>zr(t,pm,Td),mm=t=>zr(t,"position",Td),bm=new Set(["image","url"]),gm=t=>zr(t,bm,wm),ym=t=>zr(t,"",xm),sn=()=>!0,zr=(t,e,r)=>{const n=Cd.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},vm=t=>um.test(t)&&!lm.test(t),Td=()=>!1,xm=t=>cm.test(t),wm=t=>dm.test(t),Sm=()=>{const t=le("colors"),e=le("spacing"),r=le("blur"),n=le("brightness"),o=le("borderColor"),i=le("borderRadius"),a=le("borderSpacing"),s=le("borderWidth"),u=le("contrast"),l=le("grayscale"),c=le("hueRotate"),h=le("invert"),f=le("gap"),d=le("gradientColorStops"),m=le("gradientColorStopPositions"),g=le("inset"),b=le("margin"),y=le("opacity"),x=le("padding"),S=le("saturate"),E=le("scale"),A=le("sepia"),R=le("skew"),_=le("space"),I=le("translate"),M=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",Y,e],T=()=>[Y,e],k=()=>["",vt,Mt],L=()=>["auto",Nr,Y],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],P=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",Y],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[Nr,Y];return{cacheSize:500,separator:":",theme:{colors:[sn],spacing:[vt,Mt],blur:["none","",$t,Y],brightness:re(),borderColor:[t],borderRadius:["none","","full",$t,Y],borderSpacing:T(),borderWidth:k(),contrast:re(),grayscale:$(),hueRotate:re(),invert:$(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[fm,Mt],inset:C(),margin:C(),opacity:re(),padding:T(),saturate:re(),scale:re(),sepia:$(),skew:re(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[$t]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),Y]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],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",an,Y]}],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",Y]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",an,Y]}],"grid-cols":[{"grid-cols":[sn]}],"col-start-end":[{col:["auto",{span:["full",an,Y]},Y]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[sn]}],"row-start-end":[{row:["auto",{span:[an,Y]},Y]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"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:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[_]}],"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",Y,e]}],"min-w":[{"min-w":[Y,e,"min","max","fit"]}],"max-w":[{"max-w":[Y,e,"none","full","min","max","fit","prose",{screen:[$t]},$t]}],h:[{h:[Y,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,e,"auto","min","max","fit"]}],"font-size":[{text:["base",$t,Mt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Zi]}],"font-family":[{font:[sn]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",Nr,Zi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",vt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",vt,Mt]}],"underline-offset":[{"underline-offset":["auto",vt,Y]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),mm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",hm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},gm]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"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":[y]}],"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":[y]}],"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":[vt,Y]}],"outline-w":[{outline:[vt,Mt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[vt,Mt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",$t,ym]}],"shadow-color":[{shadow:[sn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...P(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",$t,Y]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[A]}],"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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[an,Y]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],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",Y]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[vt,Mt,Zi]}],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"]}}},Nd=om(Sm);function Ne(...t){return Nd(ct(t))}const mn=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ne("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));mn.displayName="Card";const Em=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ne("flex flex-col space-y-1.5 p-6",t),...e}));Em.displayName="CardHeader";const Cm=v.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:Ne("text-2xl font-semibold leading-none tracking-tight",t),...e}));Cm.displayName="CardTitle";const Tm=v.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:Ne("text-sm text-muted-foreground",t),...e}));Tm.displayName="CardDescription";const bn=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ne("p-6 pt-0",t),...e}));bn.displayName="CardContent";const Nm=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ne("flex items-center p-6 pt-0",t),...e}));Nm.displayName="CardFooter";function ro({className:t,...e}){return p.jsx("div",{className:Ne("animate-pulse rounded-md bg-muted",t),...e})}const Ad=w.createContext(null),xn=({children:t,value:e})=>p.jsx(Ad.Provider,{value:e,children:t}),$n=()=>w.useContext(Ad);/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),Es=require("react-dom"),Wh=require("@tanstack/react-query");function vd(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 v=vd(w),xd=vd(Es);function wd(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=wd(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function ct(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=wd(t))&&(n&&(n+=" "),n+=e);return n}const Cs="-",Gh=t=>{const e=Xh(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:a=>{const s=a.split(Cs);return s[0]===""&&s.length!==1&&s.shift(),Sd(s,e)||Yh(a)},getConflictingClassGroupIds:(a,s)=>{const u=r[a]||[];return s&&n[a]?[...u,...n[a]]:u}}},Sd=(t,e)=>{var a;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?Sd(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const i=t.join(Cs);return(a=e.validators.find(({validator:s})=>s(i)))==null?void 0:a.classGroupId},il=/^\[(.+)\]$/,Yh=t=>{if(il.test(t)){const e=il.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},Xh=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Jh(Object.entries(t.classGroups),r).forEach(([i,a])=>{Ea(a,n,i,e)}),n},Ea=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const i=o===""?e:al(e,o);i.classGroupId=r;return}if(typeof o=="function"){if(Kh(o)){Ea(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([i,a])=>{Ea(a,al(e,i),r,n)})})},al=(t,e)=>{let r=t;return e.split(Cs).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Kh=t=>t.isThemeGetter,Jh=(t,e)=>e?t.map(([r,n])=>{const o=n.map(i=>typeof i=="string"?e+i:typeof i=="object"?Object.fromEntries(Object.entries(i).map(([a,s])=>[e+a,s])):i);return[r,o]}):t,Zh=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const o=(i,a)=>{r.set(i,a),e++,e>t&&(e=0,n=r,r=new Map)};return{get(i){let a=r.get(i);if(a!==void 0)return a;if((a=n.get(i))!==void 0)return o(i,a),a},set(i,a){r.has(i)?r.set(i,a):o(i,a)}}},Ed="!",Qh=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,o=e[0],i=e.length,a=s=>{const u=[];let l=0,c=0,h;for(let b=0;b<s.length;b++){let y=s[b];if(l===0){if(y===o&&(n||s.slice(b,b+i)===e)){u.push(s.slice(c,b)),c=b+i;continue}if(y==="/"){h=b;continue}}y==="["?l++:y==="]"&&l--}const f=u.length===0?s:s.substring(c),d=f.startsWith(Ed),m=d?f.substring(1):f,g=h&&h>c?h-c:void 0;return{modifiers:u,hasImportantModifier:d,baseClassName:m,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:a}):a},em=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},tm=t=>({cache:Zh(t.cacheSize),parseClassName:Qh(t),...Gh(t)}),rm=/\s+/,nm=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,i=[],a=t.trim().split(rm);let s="";for(let u=a.length-1;u>=0;u-=1){const l=a[u],{modifiers:c,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=r(l);let m=!!d,g=n(m?f.substring(0,d):f);if(!g){if(!m){s=l+(s.length>0?" "+s:s);continue}if(g=n(f),!g){s=l+(s.length>0?" "+s:s);continue}m=!1}const b=em(c).join(":"),y=h?b+Ed:b,x=y+g;if(i.includes(x))continue;i.push(x);const S=o(g,m);for(let E=0;E<S.length;++E){const A=S[E];i.push(y+A)}s=l+(s.length>0?" "+s:s)}return s};function om(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=Cd(e))&&(n&&(n+=" "),n+=r);return n}const Cd=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=Cd(t[n]))&&(r&&(r+=" "),r+=e);return r};function im(t,...e){let r,n,o,i=a;function a(u){const l=e.reduce((c,h)=>h(c),t());return r=tm(l),n=r.cache.get,o=r.cache.set,i=s,s(u)}function s(u){const l=n(u);if(l)return l;const c=nm(u,r);return o(u,c),c}return function(){return i(om.apply(null,arguments))}}const le=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},Td=/^\[(?:([a-z-]+):)?(.+)\]$/i,am=/^\d+\/\d+$/,sm=new Set(["px","full","screen"]),um=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,lm=/\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$/,cm=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,dm=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,fm=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,vt=t=>Nr(t)||sm.has(t)||am.test(t),Mt=t=>zr(t,"length",xm),Nr=t=>!!t&&!Number.isNaN(Number(t)),Qi=t=>zr(t,"number",Nr),an=t=>!!t&&Number.isInteger(Number(t)),pm=t=>t.endsWith("%")&&Nr(t.slice(0,-1)),Y=t=>Td.test(t),$t=t=>um.test(t),hm=new Set(["length","size","percentage"]),mm=t=>zr(t,hm,Nd),bm=t=>zr(t,"position",Nd),gm=new Set(["image","url"]),ym=t=>zr(t,gm,Sm),vm=t=>zr(t,"",wm),sn=()=>!0,zr=(t,e,r)=>{const n=Td.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},xm=t=>lm.test(t)&&!cm.test(t),Nd=()=>!1,wm=t=>dm.test(t),Sm=t=>fm.test(t),Em=()=>{const t=le("colors"),e=le("spacing"),r=le("blur"),n=le("brightness"),o=le("borderColor"),i=le("borderRadius"),a=le("borderSpacing"),s=le("borderWidth"),u=le("contrast"),l=le("grayscale"),c=le("hueRotate"),h=le("invert"),f=le("gap"),d=le("gradientColorStops"),m=le("gradientColorStopPositions"),g=le("inset"),b=le("margin"),y=le("opacity"),x=le("padding"),S=le("saturate"),E=le("scale"),A=le("sepia"),R=le("skew"),_=le("space"),I=le("translate"),M=()=>["auto","contain","none"],B=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",Y,e],T=()=>[Y,e],k=()=>["",vt,Mt],L=()=>["auto",Nr,Y],N=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],P=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],D=()=>["start","end","center","between","around","evenly","stretch"],$=()=>["","0",Y],z=()=>["auto","avoid","all","avoid-page","page","left","right","column"],re=()=>[Nr,Y];return{cacheSize:500,separator:":",theme:{colors:[sn],spacing:[vt,Mt],blur:["none","",$t,Y],brightness:re(),borderColor:[t],borderRadius:["none","","full",$t,Y],borderSpacing:T(),borderWidth:k(),contrast:re(),grayscale:$(),hueRotate:re(),invert:$(),gap:T(),gradientColorStops:[t],gradientColorStopPositions:[pm,Mt],inset:C(),margin:C(),opacity:re(),padding:T(),saturate:re(),scale:re(),sepia:$(),skew:re(),space:T(),translate:T()},classGroups:{aspect:[{aspect:["auto","square","video",Y]}],container:["container"],columns:[{columns:[$t]}],"break-after":[{"break-after":z()}],"break-before":[{"break-before":z()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...N(),Y]}],overflow:[{overflow:B()}],"overflow-x":[{"overflow-x":B()}],"overflow-y":[{"overflow-y":B()}],overscroll:[{overscroll:M()}],"overscroll-x":[{"overscroll-x":M()}],"overscroll-y":[{"overscroll-y":M()}],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",an,Y]}],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",Y]}],grow:[{grow:$()}],shrink:[{shrink:$()}],order:[{order:["first","last","none",an,Y]}],"grid-cols":[{"grid-cols":[sn]}],"col-start-end":[{col:["auto",{span:["full",an,Y]},Y]}],"col-start":[{"col-start":L()}],"col-end":[{"col-end":L()}],"grid-rows":[{"grid-rows":[sn]}],"row-start-end":[{row:["auto",{span:[an,Y]},Y]}],"row-start":[{"row-start":L()}],"row-end":[{"row-end":L()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Y]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Y]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...D()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...D(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...D(),"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:[b]}],mx:[{mx:[b]}],my:[{my:[b]}],ms:[{ms:[b]}],me:[{me:[b]}],mt:[{mt:[b]}],mr:[{mr:[b]}],mb:[{mb:[b]}],ml:[{ml:[b]}],"space-x":[{"space-x":[_]}],"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",Y,e]}],"min-w":[{"min-w":[Y,e,"min","max","fit"]}],"max-w":[{"max-w":[Y,e,"none","full","min","max","fit","prose",{screen:[$t]},$t]}],h:[{h:[Y,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Y,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Y,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Y,e,"auto","min","max","fit"]}],"font-size":[{text:["base",$t,Mt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Qi]}],"font-family":[{font:[sn]}],"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",Y]}],"line-clamp":[{"line-clamp":["none",Nr,Qi]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",vt,Y]}],"list-image":[{"list-image":["none",Y]}],"list-style-type":[{list:["none","disc","decimal",Y]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[y]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[t]}],"text-opacity":[{"text-opacity":[y]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...O(),"wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",vt,Mt]}],"underline-offset":[{"underline-offset":["auto",vt,Y]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:T()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Y]}],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",Y]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...N(),bm]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",mm]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},ym]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"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":[y]}],"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":[y]}],"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":[vt,Y]}],"outline-w":[{outline:[vt,Mt]}],"outline-color":[{outline:[t]}],"ring-w":[{ring:k()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[t]}],"ring-opacity":[{"ring-opacity":[y]}],"ring-offset-w":[{"ring-offset":[vt,Mt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",$t,vm]}],"shadow-color":[{shadow:[sn]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...P(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":P()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",$t,Y]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[A]}],"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":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[A]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Y]}],duration:[{duration:re()}],ease:[{ease:["linear","in","out","in-out",Y]}],delay:[{delay:re()}],animate:[{animate:["none","spin","ping","pulse","bounce",Y]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[an,Y]}],"translate-x":[{"translate-x":[I]}],"translate-y":[{"translate-y":[I]}],"skew-x":[{"skew-x":[R]}],"skew-y":[{"skew-y":[R]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Y]}],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",Y]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":T()}],"scroll-mx":[{"scroll-mx":T()}],"scroll-my":[{"scroll-my":T()}],"scroll-ms":[{"scroll-ms":T()}],"scroll-me":[{"scroll-me":T()}],"scroll-mt":[{"scroll-mt":T()}],"scroll-mr":[{"scroll-mr":T()}],"scroll-mb":[{"scroll-mb":T()}],"scroll-ml":[{"scroll-ml":T()}],"scroll-p":[{"scroll-p":T()}],"scroll-px":[{"scroll-px":T()}],"scroll-py":[{"scroll-py":T()}],"scroll-ps":[{"scroll-ps":T()}],"scroll-pe":[{"scroll-pe":T()}],"scroll-pt":[{"scroll-pt":T()}],"scroll-pr":[{"scroll-pr":T()}],"scroll-pb":[{"scroll-pb":T()}],"scroll-pl":[{"scroll-pl":T()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Y]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[vt,Mt,Qi]}],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"]}}},Ad=im(Em);function Ne(...t){return Ad(ct(t))}const bn=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ne("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));bn.displayName="Card";const Cm=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ne("flex flex-col space-y-1.5 p-6",t),...e}));Cm.displayName="CardHeader";const Tm=v.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:Ne("text-2xl font-semibold leading-none tracking-tight",t),...e}));Tm.displayName="CardTitle";const Nm=v.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:Ne("text-sm text-muted-foreground",t),...e}));Nm.displayName="CardDescription";const gn=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ne("p-6 pt-0",t),...e}));gn.displayName="CardContent";const Am=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Ne("flex items-center p-6 pt-0",t),...e}));Am.displayName="CardFooter";function no({className:t,...e}){return p.jsx("div",{className:Ne("animate-pulse rounded-md bg-muted",t),...e})}const Od=w.createContext(null),wn=({children:t,value:e})=>p.jsx(Od.Provider,{value:e,children:t}),Bn=()=>w.useContext(Od);/**
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 Am=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),Od=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
6
+ */const Om=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jd=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
7
7
  * @license lucide-react v0.462.0 - ISC
8
8
  *
9
9
  * This source code is licensed under the ISC license.
10
10
  * See the LICENSE file in the root directory of this source tree.
11
- */var Om={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
11
+ */var jm={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
12
12
  * @license lucide-react v0.462.0 - ISC
13
13
  *
14
14
  * This source code is licensed under the ISC license.
15
15
  * See the LICENSE file in the root directory of this source tree.
16
- */const jm=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},u)=>w.createElement("svg",{ref:u,...Om,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:Od("lucide",o),...s},[...a.map(([l,c])=>w.createElement(l,c)),...Array.isArray(i)?i:[i]]));/**
16
+ */const Rm=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},u)=>w.createElement("svg",{ref:u,...jm,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:jd("lucide",o),...s},[...a.map(([l,c])=>w.createElement(l,c)),...Array.isArray(i)?i:[i]]));/**
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 K=(t,e)=>{const r=w.forwardRef(({className:n,...o},i)=>w.createElement(jm,{ref:i,iconNode:e,className:Od(`lucide-${Am(t)}`,n),...o}));return r.displayName=`${t}`,r};/**
21
+ */const K=(t,e)=>{const r=w.forwardRef(({className:n,...o},i)=>w.createElement(Rm,{ref:i,iconNode:e,className:jd(`lucide-${Om(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 Cs=K("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
26
+ */const Ts=K("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 Ts=K("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
31
+ */const Ns=K("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 Ns=K("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
36
+ */const As=K("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
37
37
  * @license lucide-react v0.462.0 - ISC
38
38
  *
39
39
  * This source code is licensed under the ISC license.
40
40
  * See the LICENSE file in the root directory of this source tree.
41
- */const Rm=K("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
41
+ */const Pm=K("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
42
42
  * @license lucide-react v0.462.0 - ISC
43
43
  *
44
44
  * This source code is licensed under the ISC license.
45
45
  * See the LICENSE file in the root directory of this source tree.
46
- */const As=K("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
46
+ */const Os=K("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 Os=K("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
51
+ */const js=K("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 js=K("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
56
+ */const Rs=K("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
57
57
  * @license lucide-react v0.462.0 - ISC
58
58
  *
59
59
  * This source code is licensed under the ISC license.
60
60
  * See the LICENSE file in the root directory of this source tree.
61
- */const Pm=K("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
61
+ */const _m=K("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
62
62
  * @license lucide-react v0.462.0 - ISC
63
63
  *
64
64
  * This source code is licensed under the ISC license.
65
65
  * See the LICENSE file in the root directory of this source tree.
66
- */const _m=K("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
66
+ */const km=K("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
67
67
  * @license lucide-react v0.462.0 - ISC
68
68
  *
69
69
  * This source code is licensed under the ISC license.
70
70
  * See the LICENSE file in the root directory of this source tree.
71
- */const km=K("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
71
+ */const Im=K("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
72
72
  * @license lucide-react v0.462.0 - ISC
73
73
  *
74
74
  * This source code is licensed under the ISC license.
75
75
  * See the LICENSE file in the root directory of this source tree.
76
- */const Im=K("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
76
+ */const Dm=K("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
77
77
  * @license lucide-react v0.462.0 - ISC
78
78
  *
79
79
  * This source code is licensed under the ISC license.
80
80
  * See the LICENSE file in the root directory of this source tree.
81
- */const Dm=K("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
81
+ */const Lm=K("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
82
82
  * @license lucide-react v0.462.0 - ISC
83
83
  *
84
84
  * This source code is licensed under the ISC license.
85
85
  * See the LICENSE file in the root directory of this source tree.
86
- */const jd=K("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"}]]);/**
86
+ */const Rd=K("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
87
87
  * @license lucide-react v0.462.0 - ISC
88
88
  *
89
89
  * This source code is licensed under the ISC license.
90
90
  * See the LICENSE file in the root directory of this source tree.
91
- */const Lm=K("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
91
+ */const Mm=K("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
92
92
  * @license lucide-react v0.462.0 - ISC
93
93
  *
94
94
  * This source code is licensed under the ISC license.
95
95
  * See the LICENSE file in the root directory of this source tree.
96
- */const Rd=K("Heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]);/**
96
+ */const Pd=K("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 Pd=K("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"}]]);/**
101
+ */const _d=K("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
102
102
  * @license lucide-react v0.462.0 - ISC
103
103
  *
104
104
  * This source code is licensed under the ISC license.
105
105
  * See the LICENSE file in the root directory of this source tree.
106
- */const Mm=K("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
106
+ */const $m=K("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
107
107
  * @license lucide-react v0.462.0 - ISC
108
108
  *
109
109
  * This source code is licensed under the ISC license.
110
110
  * See the LICENSE file in the root directory of this source tree.
111
- */const Rs=K("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"}]]);/**
111
+ */const Ps=K("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
112
112
  * @license lucide-react v0.462.0 - ISC
113
113
  *
114
114
  * This source code is licensed under the ISC license.
115
115
  * See the LICENSE file in the root directory of this source tree.
116
- */const $m=K("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
116
+ */const Bm=K("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
117
117
  * @license lucide-react v0.462.0 - ISC
118
118
  *
119
119
  * This source code is licensed under the ISC license.
120
120
  * See the LICENSE file in the root directory of this source tree.
121
- */const Bm=K("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
121
+ */const Fm=K("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
122
122
  * @license lucide-react v0.462.0 - ISC
123
123
  *
124
124
  * This source code is licensed under the ISC license.
125
125
  * See the LICENSE file in the root directory of this source tree.
126
- */const _d=K("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
126
+ */const kd=K("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 Ps=K("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"}]]);/**
131
+ */const _s=K("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 kd=K("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"}]]);/**
136
+ */const Id=K("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 Id=K("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"}]]);/**
141
+ */const Dd=K("MoveVertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]]);/**
142
142
  * @license lucide-react v0.462.0 - ISC
143
143
  *
144
144
  * This source code is licensed under the ISC license.
145
145
  * See the LICENSE file in the root directory of this source tree.
146
- */const Fm=K("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/**
146
+ */const Hm=K("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/**
147
147
  * @license lucide-react v0.462.0 - ISC
148
148
  *
149
149
  * This source code is licensed under the ISC license.
150
150
  * See the LICENSE file in the root directory of this source tree.
151
- */const Hm=K("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
151
+ */const qm=K("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
152
152
  * @license lucide-react v0.462.0 - ISC
153
153
  *
154
154
  * This source code is licensed under the ISC license.
155
155
  * See the LICENSE file in the root directory of this source tree.
156
- */const _s=K("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
156
+ */const ks=K("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
157
157
  * @license lucide-react v0.462.0 - ISC
158
158
  *
159
159
  * This source code is licensed under the ISC license.
160
160
  * See the LICENSE file in the root directory of this source tree.
161
- */const qm=K("SquareDashed",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]]);/**
161
+ */const zm=K("SquareDashed",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]]);/**
162
162
  * @license lucide-react v0.462.0 - ISC
163
163
  *
164
164
  * This source code is licensed under the ISC license.
165
165
  * See the LICENSE file in the root directory of this source tree.
166
- */const zm=K("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"}]]);/**
166
+ */const Um=K("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 Um=K("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"}]]);/**
171
+ */const Vm=K("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 Ea=K("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
176
+ */const Ca=K("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 Vm=K("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"}]]);/**
181
+ */const Wm=K("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 ks=K("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"}]]);/**
186
+ */const Is=K("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 Wm=K("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"}]]);/**
191
+ */const Gm=K("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 Is=K("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"}]]);/**
196
+ */const Ds=K("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 Dd=K("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"}]]);/**
201
+ */const Ld=K("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 Gm=K("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
206
+ */const Ym=K("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 Ym=K("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"}]]);/**
211
+ */const Xm=K("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 Xm=K("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"}]]);/**
216
+ */const Km=K("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
217
217
  * @license lucide-react v0.462.0 - ISC
218
218
  *
219
219
  * This source code is licensed under the ISC license.
220
220
  * See the LICENSE file in the root directory of this source tree.
221
- */const Km=K("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function al(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function li(...t){return e=>{let r=!1;const n=t.map(o=>{const i=al(o,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():al(t[o],null)}}}}function Te(...t){return v.useCallback(li(...t),t)}var Jm=Symbol.for("react.lazy"),Ro=v[" use ".trim().toString()];function Zm(t){return typeof t=="object"&&t!==null&&"then"in t}function Ld(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Jm&&"_payload"in t&&Zm(t._payload)}function Qm(t){const e=tb(t),r=v.forwardRef((n,o)=>{let{children:i,...a}=n;Ld(i)&&typeof Ro=="function"&&(i=Ro(i._payload));const s=v.Children.toArray(i),u=s.find(nb);if(u){const l=u.props.children,c=s.map(h=>h===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:o,children:i})});return r.displayName=`${t}.Slot`,r}var eb=Qm("Slot");function tb(t){const e=v.forwardRef((r,n)=>{let{children:o,...i}=r;if(Ld(o)&&typeof Ro=="function"&&(o=Ro(o._payload)),v.isValidElement(o)){const a=ib(o),s=ob(i,o.props);return o.type!==v.Fragment&&(s.ref=n?li(n,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var rb=Symbol("radix.slottable");function nb(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===rb}function ob(t,e){const r={...e};for(const n in e){const o=t[n],i=e[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...t,...r}}function ib(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 sl=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,ul=ct,Md=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return ul(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map(l=>{const c=r==null?void 0:r[l],h=i==null?void 0:i[l];if(c===null)return null;const f=sl(c)||sl(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(m=>{let[g,b]=m;return Array.isArray(b)?b.includes({...i,...s}[g]):{...i,...s}[g]===b})?[...l,h,f]:l},[]);return ul(t,a,u,r==null?void 0:r.class,r==null?void 0:r.className)},ab=Md("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"}}),ot=v.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},i)=>{const a=n?eb:"button";return p.jsx(a,{className:Ne(ab({variant:e,size:r,className:t})),ref:i,...o})});ot.displayName="Button";function sb(...t){return Nd(ct(t))}function me(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=bb[t],i=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+t;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function or(t){return!!t&&!!t[ne]}function dt(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)===gb}(t)||Array.isArray(t)||!!t[gn]||!!(!((e=t.constructor)===null||e===void 0)&&e[gn])||ci(t)||di(t))}function ir(t,e,r){r===void 0&&(r=!1),qt(t)===0?(r?Object.keys:Fs)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function qt(t){var e=t[ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:ci(t)?2:di(t)?3:0}function wn(t,e){return qt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function wo(t,e){return qt(t)===2?t.get(e):t[e]}function $d(t,e,r){var n=qt(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function ub(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function ci(t){return hb&&t instanceof Map}function di(t){return mb&&t instanceof Set}function Ce(t){return t.o||t.t}function Ds(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=yb(t);delete e[ne];for(var r=Fs(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Ls(t,e){return e===void 0&&(e=!1),Ms(t)||or(t)||!dt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=lb),Object.freeze(t),e&&ir(t,function(r,n){return Ls(n,!0)},!0)),t}function lb(){me(2)}function Ms(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function at(t){var e=Ta[t];return e||me(18,t),e}function Bd(t,e){Ta[t]||(Ta[t]=e)}function Po(){return process.env.NODE_ENV==="production"||Rr||me(0),Rr}function Qi(t,e){e&&(at("Patches"),t.u=[],t.s=[],t.v=e)}function _o(t){Ca(t),t.p.forEach(cb),t.p=null}function Ca(t){t===Rr&&(Rr=t.l)}function ll(t){return Rr={p:[],l:Rr,h:t,m:!0,_:0}}function cb(t){var e=t[ne];e.i===0||e.i===1?e.j():e.g=!0}function ea(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||at("ES5").S(e,t,n),n?(r[ne].P&&(_o(e),me(4)),dt(t)&&(t=ko(e,t),e.l||Io(e,t)),e.u&&at("Patches").M(r[ne].t,t,e.u,e.s)):t=ko(e,r,[]),_o(e),e.u&&e.v(e.u,e.s),t!==Bs?t:void 0}function ko(t,e,r){if(Ms(e))return e;var n=e[ne];if(!n)return ir(e,function(s,u){return cl(t,n,e,s,u,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Io(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ds(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ir(i,function(s,u){return cl(t,n,o,s,u,r,a)}),Io(t,o,!1),r&&t.u&&at("Patches").N(n,r,t.u,t.s)}return n.o}function cl(t,e,r,n,o,i,a){if(process.env.NODE_ENV!=="production"&&o===r&&me(5),or(o)){var s=ko(t,o,i&&e&&e.i!==3&&!wn(e.R,n)?i.concat(n):void 0);if($d(r,n,s),!or(s))return;t.m=!1}else a&&r.add(o);if(dt(o)&&!Ms(o)){if(!t.h.D&&t._<1)return;ko(t,o),e&&e.A.l||Io(t,o)}}function Io(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ls(e,r)}function ta(t,e){var r=t[ne];return(r?Ce(r):t)[e]}function dl(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 Et(t){t.P||(t.P=!0,t.l&&Et(t.l))}function ra(t){t.o||(t.o=Ds(t.t))}function Sn(t,e,r){var n=ci(e)?at("MapSet").F(e,r):di(e)?at("MapSet").T(e,r):t.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:Po(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,l=Na;a&&(u=[s],l=pn);var c=Proxy.revocable(u,l),h=c.revoke,f=c.proxy;return s.k=f,s.j=h,f}(e,r):at("ES5").J(e,r);return(r?r.A:Po()).p.push(n),n}function db(t){return or(t)||me(22,t),function e(r){if(!dt(r))return r;var n,o=r[ne],i=qt(r);if(o){if(!o.P&&(o.i<4||!at("ES5").K(o)))return o.t;o.I=!0,n=fl(r,i),o.I=!1}else n=fl(r,i);return ir(n,function(a,s){o&&wo(o.t,a)===s||$d(n,a,e(s))}),i===3?new Set(n):n}(t)}function fl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ds(t)}function fb(){function t(n){if(!dt(n))return n;if(Array.isArray(n))return n.map(t);if(ci(n))return new Map(Array.from(n.entries()).map(function(a){return[a[0],t(a[1])]}));if(di(n))return new Set(Array.from(n).map(t));var o=Object.create(Object.getPrototypeOf(n));for(var i in n)o[i]=t(n[i]);return wn(n,gn)&&(o[gn]=n[gn]),o}function e(n){return or(n)?t(n):n}var r="add";Bd("Patches",{$:function(n,o){return o.forEach(function(i){for(var a=i.path,s=i.op,u=n,l=0;l<a.length-1;l++){var c=qt(u),h=a[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||me(24),typeof u=="function"&&h==="prototype"&&me(24),typeof(u=wo(u,h))!="object"&&me(15,a.join("/"))}var f=qt(u),d=t(i.value),m=a[a.length-1];switch(s){case"replace":switch(f){case 2:return u.set(m,d);case 3:me(16);default:return u[m]=d}case r:switch(f){case 1:return m==="-"?u.push(d):u.splice(m,0,d);case 2:return u.set(m,d);case 3:return u.add(d);default:return u[m]=d}case"remove":switch(f){case 1:return u.splice(m,1);case 2:return u.delete(m);case 3:return u.delete(i.value);default:return delete u[m]}default:me(17,s)}}),n},N:function(n,o,i,a){switch(n.i){case 0:case 4:case 2:return function(s,u,l,c){var h=s.t,f=s.o;ir(s.R,function(d,m){var g=wo(h,d),b=wo(f,d),y=m?wn(h,d)?"replace":r:"remove";if(g!==b||y!=="replace"){var x=u.concat(d);l.push(y==="remove"?{op:y,path:x}:{op:y,path:x,value:b}),c.push(y===r?{op:"remove",path:x}:y==="remove"?{op:r,path:x,value:e(g)}:{op:"replace",path:x,value:e(g)})}})}(n,o,i,a);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 m=[d,h];h=m[0],d=m[1];var g=[c,l];l=g[0],c=g[1]}for(var b=0;b<h.length;b++)if(f[b]&&d[b]!==h[b]){var y=u.concat([b]);l.push({op:"replace",path:y,value:e(d[b])}),c.push({op:"replace",path:y,value:e(h[b])})}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,i,a);case 3:return function(s,u,l,c){var h=s.t,f=s.o,d=0;h.forEach(function(m){if(!f.has(m)){var g=u.concat([d]);l.push({op:"remove",path:g,value:m}),c.unshift({op:r,path:g,value:m})}d++}),d=0,f.forEach(function(m){if(!h.has(m)){var g=u.concat([d]);l.push({op:r,path:g,value:m}),c.unshift({op:"remove",path:g,value:m})}d++})}(n,o,i,a)}},M:function(n,o,i,a){i.push({op:"replace",path:[],value:o===Bs?void 0:o}),a.push({op:"replace",path:[],value:n})}})}function pb(){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(dt(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&&me(3,JSON.stringify(Ce(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)},i=function(){function s(l,c){return this[ne]={i:2,l:c,A:c?c.A:Po(),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 Ce(this[ne]).size}}),u.has=function(l){return Ce(this[ne]).has(l)},u.set=function(l,c){var h=this[ne];return n(h),Ce(h).has(l)&&Ce(h).get(l)===c||(e(h),Et(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[ne];return n(c),e(c),Et(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[ne];n(l),Ce(l).size&&(e(l),Et(l),l.R=new Map,ir(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},u.forEach=function(l,c){var h=this;Ce(this[ne]).forEach(function(f,d){l.call(c,h.get(d),d,h)})},u.get=function(l){var c=this[ne];n(c);var h=Ce(c).get(l);if(c.I||!dt(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 Ce(this[ne]).keys()},u.values=function(){var l,c=this,h=this.keys();return(l={})[no]=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={})[no]=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[no]=function(){return this.entries()},s}(),a=function(){function s(l,c){return this[ne]={i:3,l:c,A:c?c.A:Po(),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 Ce(this[ne]).size}}),u.has=function(l){var c=this[ne];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[ne];return n(c),this.has(l)||(r(c),Et(c),c.o.add(l)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[ne];return n(c),r(c),Et(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},u.clear=function(){var l=this[ne];n(l),Ce(l).size&&(r(l),Et(l),l.o.clear())},u.values=function(){var l=this[ne];return n(l),r(l),l.o.values()},u.entries=function(){var l=this[ne];return n(l),r(l),l.o.entries()},u.keys=function(){return this.values()},u[no]=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}();Bd("MapSet",{F:function(s,u){return new i(s,u)},T:function(s,u){return new a(s,u)}})}var pl,Rr,$s=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",hb=typeof Map<"u",mb=typeof Set<"u",hl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Bs=$s?Symbol.for("immer-nothing"):((pl={})["immer-nothing"]=!0,pl),gn=$s?Symbol.for("immer-draftable"):"__$immer_draftable",ne=$s?Symbol.for("immer-state"):"__$immer_state",no=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",bb={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"},gb=""+Object.prototype.constructor,Fs=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,yb=Object.getOwnPropertyDescriptors||function(t){var e={};return Fs(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ta={},Na={get:function(t,e){if(e===ne)return t;var r=Ce(t);if(!wn(r,e))return function(o,i,a){var s,u=dl(i,a);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||!dt(n)?n:n===ta(t.t,e)?(ra(t),t.o[e]=Sn(t.A.h,n,t)):n},has:function(t,e){return e in Ce(t)},ownKeys:function(t){return Reflect.ownKeys(Ce(t))},set:function(t,e,r){var n=dl(Ce(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=ta(Ce(t),e),i=o==null?void 0:o[ne];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(ub(r,o)&&(r!==void 0||wn(t.t,e)))return!0;ra(t),Et(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return ta(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,ra(t),Et(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ce(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){me(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){me(12)}},pn={};ir(Na,function(t,e){pn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),pn.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&me(13),pn.set.call(this,t,e,void 0)},pn.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&me(14),Na.set.call(this,t[0],e,r,t[0])};var vb=function(){function t(r){var n=this;this.O=hl,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var u=n;return function(g){var b=this;g===void 0&&(g=s);for(var y=arguments.length,x=Array(y>1?y-1:0),S=1;S<y;S++)x[S-1]=arguments[S];return u.produce(g,function(E){var A;return(A=i).call.apply(A,[b,E].concat(x))})}}var l;if(typeof i!="function"&&me(6),a!==void 0&&typeof a!="function"&&me(7),dt(o)){var c=ll(n),h=Sn(n,o,void 0),f=!0;try{l=i(h),f=!1}finally{f?_o(c):Ca(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(g){return Qi(c,a),ea(g,c)},function(g){throw _o(c),g}):(Qi(c,a),ea(l,c))}if(!o||typeof o!="object"){if((l=i(o))===void 0&&(l=o),l===Bs&&(l=void 0),n.D&&Ls(l,!0),a){var d=[],m=[];at("Patches").M(o,l,d,m),a(d,m)}return l}me(21,o)},this.produceWithPatches=function(o,i){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 a,s,u=n.produce(o,i,function(l,c){a=l,s=c});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,a,s]}):[u,a,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){dt(r)||me(8),or(r)&&(r=db(r));var n=ll(this),o=Sn(this,r,void 0);return o[ne].C=!0,Ca(n),o},e.finishDraft=function(r,n){var o=r&&r[ne];process.env.NODE_ENV!=="production"&&(o&&o.C||me(9),o.I&&me(10));var i=o.A;return Qi(i,n),ea(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!hl&&me(20),this.O=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=at("Patches").$;return or(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},t}(),$e=new vb,xb=$e.produce,ml=$e.produceWithPatches.bind($e);$e.setAutoFreeze.bind($e);$e.setUseProxies.bind($e);var bl=$e.applyPatches.bind($e);$e.createDraft.bind($e);$e.finishDraft.bind($e);var U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function fi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function wb(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 Sb(){this.__data__=[],this.size=0}var Eb=Sb;function Cb(t,e){return t===e||t!==t&&e!==e}var Fd=Cb,Tb=Fd;function Nb(t,e){for(var r=t.length;r--;)if(Tb(t[r][0],e))return r;return-1}var pi=Nb,Ab=pi,Ob=Array.prototype,jb=Ob.splice;function Rb(t){var e=this.__data__,r=Ab(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():jb.call(e,r,1),--this.size,!0}var Pb=Rb,_b=pi;function kb(t){var e=this.__data__,r=_b(e,t);return r<0?void 0:e[r][1]}var Ib=kb,Db=pi;function Lb(t){return Db(this.__data__,t)>-1}var Mb=Lb,$b=pi;function Bb(t,e){var r=this.__data__,n=$b(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Fb=Bb,Hb=Eb,qb=Pb,zb=Ib,Ub=Mb,Vb=Fb;function Ur(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])}}Ur.prototype.clear=Hb;Ur.prototype.delete=qb;Ur.prototype.get=zb;Ur.prototype.has=Ub;Ur.prototype.set=Vb;var hi=Ur,Wb=hi;function Gb(){this.__data__=new Wb,this.size=0}var Yb=Gb;function Xb(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Kb=Xb;function Jb(t){return this.__data__.get(t)}var Zb=Jb;function Qb(t){return this.__data__.has(t)}var eg=Qb,tg=typeof U=="object"&&U&&U.Object===Object&&U,Hd=tg,rg=Hd,ng=typeof self=="object"&&self&&self.Object===Object&&self,og=rg||ng||Function("return this")(),pt=og,ig=pt,ag=ig.Symbol,mi=ag,gl=mi,qd=Object.prototype,sg=qd.hasOwnProperty,ug=qd.toString,un=gl?gl.toStringTag:void 0;function lg(t){var e=sg.call(t,un),r=t[un];try{t[un]=void 0;var n=!0}catch{}var o=ug.call(t);return n&&(e?t[un]=r:delete t[un]),o}var cg=lg,dg=Object.prototype,fg=dg.toString;function pg(t){return fg.call(t)}var hg=pg,yl=mi,mg=cg,bg=hg,gg="[object Null]",yg="[object Undefined]",vl=yl?yl.toStringTag:void 0;function vg(t){return t==null?t===void 0?yg:gg:vl&&vl in Object(t)?mg(t):bg(t)}var bi=vg;function xg(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var zd=xg,wg=bi,Sg=zd,Eg="[object AsyncFunction]",Cg="[object Function]",Tg="[object GeneratorFunction]",Ng="[object Proxy]";function Ag(t){if(!Sg(t))return!1;var e=wg(t);return e==Cg||e==Tg||e==Eg||e==Ng}var Hs=Ag;const Og=fi(Hs);var jg=pt,Rg=jg["__core-js_shared__"],Pg=Rg,na=Pg,xl=function(){var t=/[^.]+$/.exec(na&&na.keys&&na.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function _g(t){return!!xl&&xl in t}var kg=_g,Ig=Function.prototype,Dg=Ig.toString;function Lg(t){if(t!=null){try{return Dg.call(t)}catch{}try{return t+""}catch{}}return""}var Ud=Lg,Mg=Hs,$g=kg,Bg=zd,Fg=Ud,Hg=/[\\^$.*+?()[\]{}|]/g,qg=/^\[object .+?Constructor\]$/,zg=Function.prototype,Ug=Object.prototype,Vg=zg.toString,Wg=Ug.hasOwnProperty,Gg=RegExp("^"+Vg.call(Wg).replace(Hg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Yg(t){if(!Bg(t)||$g(t))return!1;var e=Mg(t)?Gg:qg;return e.test(Fg(t))}var Xg=Yg;function Kg(t,e){return t==null?void 0:t[e]}var Jg=Kg,Zg=Xg,Qg=Jg;function e1(t,e){var r=Qg(t,e);return Zg(r)?r:void 0}var dr=e1,t1=dr,r1=pt,n1=t1(r1,"Map"),qs=n1,o1=dr,i1=o1(Object,"create"),gi=i1,wl=gi;function a1(){this.__data__=wl?wl(null):{},this.size=0}var s1=a1;function u1(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var l1=u1,c1=gi,d1="__lodash_hash_undefined__",f1=Object.prototype,p1=f1.hasOwnProperty;function h1(t){var e=this.__data__;if(c1){var r=e[t];return r===d1?void 0:r}return p1.call(e,t)?e[t]:void 0}var m1=h1,b1=gi,g1=Object.prototype,y1=g1.hasOwnProperty;function v1(t){var e=this.__data__;return b1?e[t]!==void 0:y1.call(e,t)}var x1=v1,w1=gi,S1="__lodash_hash_undefined__";function E1(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=w1&&e===void 0?S1:e,this}var C1=E1,T1=s1,N1=l1,A1=m1,O1=x1,j1=C1;function Vr(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])}}Vr.prototype.clear=T1;Vr.prototype.delete=N1;Vr.prototype.get=A1;Vr.prototype.has=O1;Vr.prototype.set=j1;var R1=Vr,Sl=R1,P1=hi,_1=qs;function k1(){this.size=0,this.__data__={hash:new Sl,map:new(_1||P1),string:new Sl}}var I1=k1;function D1(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var L1=D1,M1=L1;function $1(t,e){var r=t.__data__;return M1(e)?r[typeof e=="string"?"string":"hash"]:r.map}var yi=$1,B1=yi;function F1(t){var e=B1(this,t).delete(t);return this.size-=e?1:0,e}var H1=F1,q1=yi;function z1(t){return q1(this,t).get(t)}var U1=z1,V1=yi;function W1(t){return V1(this,t).has(t)}var G1=W1,Y1=yi;function X1(t,e){var r=Y1(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var K1=X1,J1=I1,Z1=H1,Q1=U1,ey=G1,ty=K1;function Wr(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])}}Wr.prototype.clear=J1;Wr.prototype.delete=Z1;Wr.prototype.get=Q1;Wr.prototype.has=ey;Wr.prototype.set=ty;var Vd=Wr,ry=hi,ny=qs,oy=Vd,iy=200;function ay(t,e){var r=this.__data__;if(r instanceof ry){var n=r.__data__;if(!ny||n.length<iy-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new oy(n)}return r.set(t,e),this.size=r.size,this}var sy=ay,uy=hi,ly=Yb,cy=Kb,dy=Zb,fy=eg,py=sy;function Gr(t){var e=this.__data__=new uy(t);this.size=e.size}Gr.prototype.clear=ly;Gr.prototype.delete=cy;Gr.prototype.get=dy;Gr.prototype.has=fy;Gr.prototype.set=py;var hy=Gr,my="__lodash_hash_undefined__";function by(t){return this.__data__.set(t,my),this}var gy=by;function yy(t){return this.__data__.has(t)}var vy=yy,xy=Vd,wy=gy,Sy=vy;function Do(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new xy;++e<r;)this.add(t[e])}Do.prototype.add=Do.prototype.push=wy;Do.prototype.has=Sy;var Ey=Do;function Cy(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 Ty=Cy;function Ny(t,e){return t.has(e)}var Ay=Ny,Oy=Ey,jy=Ty,Ry=Ay,Py=1,_y=2;function ky(t,e,r,n,o,i){var a=r&Py,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(t),c=i.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=r&_y?new Oy:void 0;for(i.set(t,e),i.set(e,t);++h<s;){var m=t[h],g=e[h];if(n)var b=a?n(g,m,h,e,t,i):n(m,g,h,t,e,i);if(b!==void 0){if(b)continue;f=!1;break}if(d){if(!jy(e,function(y,x){if(!Ry(d,x)&&(m===y||o(m,y,r,n,i)))return d.push(x)})){f=!1;break}}else if(!(m===g||o(m,g,r,n,i))){f=!1;break}}return i.delete(t),i.delete(e),f}var Wd=ky,Iy=pt,Dy=Iy.Uint8Array,Ly=Dy;function My(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}var $y=My;function By(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Fy=By,El=mi,Cl=Ly,Hy=Fd,qy=Wd,zy=$y,Uy=Fy,Vy=1,Wy=2,Gy="[object Boolean]",Yy="[object Date]",Xy="[object Error]",Ky="[object Map]",Jy="[object Number]",Zy="[object RegExp]",Qy="[object Set]",ev="[object String]",tv="[object Symbol]",rv="[object ArrayBuffer]",nv="[object DataView]",Tl=El?El.prototype:void 0,oa=Tl?Tl.valueOf:void 0;function ov(t,e,r,n,o,i,a){switch(r){case nv:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case rv:return!(t.byteLength!=e.byteLength||!i(new Cl(t),new Cl(e)));case Gy:case Yy:case Jy:return Hy(+t,+e);case Xy:return t.name==e.name&&t.message==e.message;case Zy:case ev:return t==e+"";case Ky:var s=zy;case Qy:var u=n&Vy;if(s||(s=Uy),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=Wy,a.set(t,e);var c=qy(s(t),s(e),n,o,i,a);return a.delete(t),c;case tv:if(oa)return oa.call(t)==oa.call(e)}return!1}var iv=ov;function av(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var sv=av,uv=Array.isArray,zs=uv,lv=sv,cv=zs;function dv(t,e,r){var n=e(t);return cv(t)?n:lv(n,r(t))}var fv=dv;function pv(t,e){for(var r=-1,n=t==null?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}var hv=pv;function mv(){return[]}var bv=mv,gv=hv,yv=bv,vv=Object.prototype,xv=vv.propertyIsEnumerable,Nl=Object.getOwnPropertySymbols,wv=Nl?function(t){return t==null?[]:(t=Object(t),gv(Nl(t),function(e){return xv.call(t,e)}))}:yv,Sv=wv;function Ev(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Cv=Ev;function Tv(t){return t!=null&&typeof t=="object"}var vi=Tv,Nv=bi,Av=vi,Ov="[object Arguments]";function jv(t){return Av(t)&&Nv(t)==Ov}var Rv=jv,Al=Rv,Pv=vi,Gd=Object.prototype,_v=Gd.hasOwnProperty,kv=Gd.propertyIsEnumerable,Iv=Al(function(){return arguments}())?Al:function(t){return Pv(t)&&_v.call(t,"callee")&&!kv.call(t,"callee")},Dv=Iv,Lo={exports:{}};function Lv(){return!1}var Mv=Lv;Lo.exports;(function(t,e){var r=pt,n=Mv,o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(Lo,Lo.exports);var Yd=Lo.exports,$v=9007199254740991,Bv=/^(?:0|[1-9]\d*)$/;function Fv(t,e){var r=typeof t;return e=e??$v,!!e&&(r=="number"||r!="symbol"&&Bv.test(t))&&t>-1&&t%1==0&&t<e}var Hv=Fv,qv=9007199254740991;function zv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=qv}var Xd=zv,Uv=bi,Vv=Xd,Wv=vi,Gv="[object Arguments]",Yv="[object Array]",Xv="[object Boolean]",Kv="[object Date]",Jv="[object Error]",Zv="[object Function]",Qv="[object Map]",ex="[object Number]",tx="[object Object]",rx="[object RegExp]",nx="[object Set]",ox="[object String]",ix="[object WeakMap]",ax="[object ArrayBuffer]",sx="[object DataView]",ux="[object Float32Array]",lx="[object Float64Array]",cx="[object Int8Array]",dx="[object Int16Array]",fx="[object Int32Array]",px="[object Uint8Array]",hx="[object Uint8ClampedArray]",mx="[object Uint16Array]",bx="[object Uint32Array]",ce={};ce[ux]=ce[lx]=ce[cx]=ce[dx]=ce[fx]=ce[px]=ce[hx]=ce[mx]=ce[bx]=!0;ce[Gv]=ce[Yv]=ce[ax]=ce[Xv]=ce[sx]=ce[Kv]=ce[Jv]=ce[Zv]=ce[Qv]=ce[ex]=ce[tx]=ce[rx]=ce[nx]=ce[ox]=ce[ix]=!1;function gx(t){return Wv(t)&&Vv(t.length)&&!!ce[Uv(t)]}var yx=gx;function vx(t){return function(e){return t(e)}}var xx=vx,Mo={exports:{}};Mo.exports;(function(t,e){var r=Hd,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();t.exports=s})(Mo,Mo.exports);var Us=Mo.exports,wx=yx,Sx=xx,Ol=Us,jl=Ol&&Ol.isTypedArray,Ex=jl?Sx(jl):wx,Kd=Ex,Cx=Cv,Tx=Dv,Nx=zs,Ax=Yd,Ox=Hv,jx=Kd,Rx=Object.prototype,Px=Rx.hasOwnProperty;function _x(t,e){var r=Nx(t),n=!r&&Tx(t),o=!r&&!n&&Ax(t),i=!r&&!n&&!o&&jx(t),a=r||n||o||i,s=a?Cx(t.length,String):[],u=s.length;for(var l in t)(e||Px.call(t,l))&&!(a&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||Ox(l,u)))&&s.push(l);return s}var kx=_x,Ix=Object.prototype;function Dx(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Ix;return t===r}var Lx=Dx;function Mx(t,e){return function(r){return t(e(r))}}var $x=Mx,Bx=$x,Fx=Bx(Object.keys,Object),Hx=Fx,qx=Lx,zx=Hx,Ux=Object.prototype,Vx=Ux.hasOwnProperty;function Wx(t){if(!qx(t))return zx(t);var e=[];for(var r in Object(t))Vx.call(t,r)&&r!="constructor"&&e.push(r);return e}var Gx=Wx,Yx=Hs,Xx=Xd;function Kx(t){return t!=null&&Xx(t.length)&&!Yx(t)}var Jx=Kx,Zx=kx,Qx=Gx,e2=Jx;function t2(t){return e2(t)?Zx(t):Qx(t)}var r2=t2,n2=fv,o2=Sv,i2=r2;function a2(t){return n2(t,i2,o2)}var s2=a2,Rl=s2,u2=1,l2=Object.prototype,c2=l2.hasOwnProperty;function d2(t,e,r,n,o,i){var a=r&u2,s=Rl(t),u=s.length,l=Rl(e),c=l.length;if(u!=c&&!a)return!1;for(var h=u;h--;){var f=s[h];if(!(a?f in e:c2.call(e,f)))return!1}var d=i.get(t),m=i.get(e);if(d&&m)return d==e&&m==t;var g=!0;i.set(t,e),i.set(e,t);for(var b=a;++h<u;){f=s[h];var y=t[f],x=e[f];if(n)var S=a?n(x,y,f,e,t,i):n(y,x,f,t,e,i);if(!(S===void 0?y===x||o(y,x,r,n,i):S)){g=!1;break}b||(b=f=="constructor")}if(g&&!b){var E=t.constructor,A=e.constructor;E!=A&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof A=="function"&&A instanceof A)&&(g=!1)}return i.delete(t),i.delete(e),g}var f2=d2,p2=dr,h2=pt,m2=p2(h2,"DataView"),b2=m2,g2=dr,y2=pt,v2=g2(y2,"Promise"),x2=v2,w2=dr,S2=pt,E2=w2(S2,"Set"),C2=E2,T2=dr,N2=pt,A2=T2(N2,"WeakMap"),O2=A2,Aa=b2,Oa=qs,ja=x2,Ra=C2,Pa=O2,Jd=bi,Yr=Ud,Pl="[object Map]",j2="[object Object]",_l="[object Promise]",kl="[object Set]",Il="[object WeakMap]",Dl="[object DataView]",R2=Yr(Aa),P2=Yr(Oa),_2=Yr(ja),k2=Yr(Ra),I2=Yr(Pa),er=Jd;(Aa&&er(new Aa(new ArrayBuffer(1)))!=Dl||Oa&&er(new Oa)!=Pl||ja&&er(ja.resolve())!=_l||Ra&&er(new Ra)!=kl||Pa&&er(new Pa)!=Il)&&(er=function(t){var e=Jd(t),r=e==j2?t.constructor:void 0,n=r?Yr(r):"";if(n)switch(n){case R2:return Dl;case P2:return Pl;case _2:return _l;case k2:return kl;case I2:return Il}return e});var D2=er,ia=hy,L2=Wd,M2=iv,$2=f2,Ll=D2,Ml=zs,$l=Yd,B2=Kd,F2=1,Bl="[object Arguments]",Fl="[object Array]",oo="[object Object]",H2=Object.prototype,Hl=H2.hasOwnProperty;function q2(t,e,r,n,o,i){var a=Ml(t),s=Ml(e),u=a?Fl:Ll(t),l=s?Fl:Ll(e);u=u==Bl?oo:u,l=l==Bl?oo:l;var c=u==oo,h=l==oo,f=u==l;if(f&&$l(t)){if(!$l(e))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new ia),a||B2(t)?L2(t,e,r,n,o,i):M2(t,e,u,r,n,o,i);if(!(r&F2)){var d=c&&Hl.call(t,"__wrapped__"),m=h&&Hl.call(e,"__wrapped__");if(d||m){var g=d?t.value():t,b=m?e.value():e;return i||(i=new ia),o(g,b,r,n,i)}}return f?(i||(i=new ia),$2(t,e,r,n,o,i)):!1}var z2=q2,U2=z2,ql=vi;function Zd(t,e,r,n,o){return t===e?!0:t==null||e==null||!ql(t)&&!ql(e)?t!==t&&e!==e:U2(t,e,r,n,Zd,o)}var V2=Zd,W2=V2;function G2(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?W2(t,e,void 0,r):!!n}var Y2=G2;const X2=fi(Y2);var K2=function(e,r,n,o){var i=n?n.call(o,e,r):void 0;if(i!==void 0)return!!i;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var a=Object.keys(e),s=Object.keys(r);if(a.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),l=0;l<a.length;l++){var c=a[l];if(!u(c))return!1;var h=e[c],f=r[c];if(i=n?n.call(o,h,f,c):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const J2=fi(K2);let Z2=(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 Q2=process.env.NODE_ENV==="production",aa="Invariant failed";function ue(t,e){if(!t){if(Q2)throw new Error(aa);var r=typeof e=="function"?e():e,n=r?"".concat(aa,": ").concat(r):aa;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Nt="ROOT",Qd="canvas-ROOT",ew="Parent id cannot be ommited",tw="Attempting to add a node with duplicated id",ef="Node does not exist, it may have been removed",rw='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',nw="Node cannot be dropped into target parent",ow="Target parent rejects incoming node",iw="Current parent rejects outgoing node",zl="Cannot move node that is not a direct child of a Canvas node",aw="Cannot move node into a non-Canvas parent",Ul="A top-level Node cannot be moved",sw="Cannot move node into a descendant",$o="The component type specified for this node (%node_type%) does not exist in the resolver",uw="The node has specified a canDrag() rule that prevents it from being dragged",lw="Invalid parameter Node Id specified",cw="Attempting to delete a top-level Node",dw=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
221
+ */const Jm=K("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function sl(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function ci(...t){return e=>{let r=!1;const n=t.map(o=>{const i=sl(o,e);return!r&&typeof i=="function"&&(r=!0),i});if(r)return()=>{for(let o=0;o<n.length;o++){const i=n[o];typeof i=="function"?i():sl(t[o],null)}}}}function Te(...t){return v.useCallback(ci(...t),t)}var Zm=Symbol.for("react.lazy"),Po=v[" use ".trim().toString()];function Qm(t){return typeof t=="object"&&t!==null&&"then"in t}function Md(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Zm&&"_payload"in t&&Qm(t._payload)}function eb(t){const e=rb(t),r=v.forwardRef((n,o)=>{let{children:i,...a}=n;Md(i)&&typeof Po=="function"&&(i=Po(i._payload));const s=v.Children.toArray(i),u=s.find(ob);if(u){const l=u.props.children,c=s.map(h=>h===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:o,children:i})});return r.displayName=`${t}.Slot`,r}var tb=eb("Slot");function rb(t){const e=v.forwardRef((r,n)=>{let{children:o,...i}=r;if(Md(o)&&typeof Po=="function"&&(o=Po(o._payload)),v.isValidElement(o)){const a=ab(o),s=ib(i,o.props);return o.type!==v.Fragment&&(s.ref=n?ci(n,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var nb=Symbol("radix.slottable");function ob(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===nb}function ib(t,e){const r={...e};for(const n in e){const o=t[n],i=e[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...t,...r}}function ab(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 ul=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,ll=ct,$d=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return ll(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:i}=e,a=Object.keys(o).map(l=>{const c=r==null?void 0:r[l],h=i==null?void 0:i[l];if(c===null)return null;const f=ul(c)||ul(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(m=>{let[g,b]=m;return Array.isArray(b)?b.includes({...i,...s}[g]):{...i,...s}[g]===b})?[...l,h,f]:l},[]);return ll(t,a,u,r==null?void 0:r.class,r==null?void 0:r.className)},sb=$d("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"}}),ot=v.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},i)=>{const a=n?tb:"button";return p.jsx(a,{className:Ne(sb({variant:e,size:r,className:t})),ref:i,...o})});ot.displayName="Button";function ub(...t){return Ad(ct(t))}function me(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=gb[t],i=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+t;throw Error("[Immer] "+i)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(a){return"'"+a+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function or(t){return!!t&&!!t[ne]}function dt(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)===yb}(t)||Array.isArray(t)||!!t[yn]||!!(!((e=t.constructor)===null||e===void 0)&&e[yn])||di(t)||fi(t))}function ir(t,e,r){r===void 0&&(r=!1),qt(t)===0?(r?Object.keys:Hs)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function qt(t){var e=t[ne];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:di(t)?2:fi(t)?3:0}function Sn(t,e){return qt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function So(t,e){return qt(t)===2?t.get(e):t[e]}function Bd(t,e,r){var n=qt(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function lb(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function di(t){return mb&&t instanceof Map}function fi(t){return bb&&t instanceof Set}function Ce(t){return t.o||t.t}function Ls(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=vb(t);delete e[ne];for(var r=Hs(e),n=0;n<r.length;n++){var o=r[n],i=e[o];i.writable===!1&&(i.writable=!0,i.configurable=!0),(i.get||i.set)&&(e[o]={configurable:!0,writable:!0,enumerable:i.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Ms(t,e){return e===void 0&&(e=!1),$s(t)||or(t)||!dt(t)||(qt(t)>1&&(t.set=t.add=t.clear=t.delete=cb),Object.freeze(t),e&&ir(t,function(r,n){return Ms(n,!0)},!0)),t}function cb(){me(2)}function $s(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function at(t){var e=Na[t];return e||me(18,t),e}function Fd(t,e){Na[t]||(Na[t]=e)}function _o(){return process.env.NODE_ENV==="production"||Rr||me(0),Rr}function ea(t,e){e&&(at("Patches"),t.u=[],t.s=[],t.v=e)}function ko(t){Ta(t),t.p.forEach(db),t.p=null}function Ta(t){t===Rr&&(Rr=t.l)}function cl(t){return Rr={p:[],l:Rr,h:t,m:!0,_:0}}function db(t){var e=t[ne];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||at("ES5").S(e,t,n),n?(r[ne].P&&(ko(e),me(4)),dt(t)&&(t=Io(e,t),e.l||Do(e,t)),e.u&&at("Patches").M(r[ne].t,t,e.u,e.s)):t=Io(e,r,[]),ko(e),e.u&&e.v(e.u,e.s),t!==Fs?t:void 0}function Io(t,e,r){if($s(e))return e;var n=e[ne];if(!n)return ir(e,function(s,u){return dl(t,n,e,s,u,r)},!0),e;if(n.A!==t)return e;if(!n.P)return Do(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Ls(n.k):n.o,i=o,a=!1;n.i===3&&(i=new Set(o),o.clear(),a=!0),ir(i,function(s,u){return dl(t,n,o,s,u,r,a)}),Do(t,o,!1),r&&t.u&&at("Patches").N(n,r,t.u,t.s)}return n.o}function dl(t,e,r,n,o,i,a){if(process.env.NODE_ENV!=="production"&&o===r&&me(5),or(o)){var s=Io(t,o,i&&e&&e.i!==3&&!Sn(e.R,n)?i.concat(n):void 0);if(Bd(r,n,s),!or(s))return;t.m=!1}else a&&r.add(o);if(dt(o)&&!$s(o)){if(!t.h.D&&t._<1)return;Io(t,o),e&&e.A.l||Do(t,o)}}function Do(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Ms(e,r)}function ra(t,e){var r=t[ne];return(r?Ce(r):t)[e]}function fl(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 Et(t){t.P||(t.P=!0,t.l&&Et(t.l))}function na(t){t.o||(t.o=Ls(t.t))}function En(t,e,r){var n=di(e)?at("MapSet").F(e,r):fi(e)?at("MapSet").T(e,r):t.O?function(o,i){var a=Array.isArray(o),s={i:a?1:0,A:i?i.A:_o(),P:!1,I:!1,R:{},l:i,t:o,k:null,o:null,j:null,C:!1},u=s,l=Aa;a&&(u=[s],l=hn);var c=Proxy.revocable(u,l),h=c.revoke,f=c.proxy;return s.k=f,s.j=h,f}(e,r):at("ES5").J(e,r);return(r?r.A:_o()).p.push(n),n}function fb(t){return or(t)||me(22,t),function e(r){if(!dt(r))return r;var n,o=r[ne],i=qt(r);if(o){if(!o.P&&(o.i<4||!at("ES5").K(o)))return o.t;o.I=!0,n=pl(r,i),o.I=!1}else n=pl(r,i);return ir(n,function(a,s){o&&So(o.t,a)===s||Bd(n,a,e(s))}),i===3?new Set(n):n}(t)}function pl(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Ls(t)}function pb(){function t(n){if(!dt(n))return n;if(Array.isArray(n))return n.map(t);if(di(n))return new Map(Array.from(n.entries()).map(function(a){return[a[0],t(a[1])]}));if(fi(n))return new Set(Array.from(n).map(t));var o=Object.create(Object.getPrototypeOf(n));for(var i in n)o[i]=t(n[i]);return Sn(n,yn)&&(o[yn]=n[yn]),o}function e(n){return or(n)?t(n):n}var r="add";Fd("Patches",{$:function(n,o){return o.forEach(function(i){for(var a=i.path,s=i.op,u=n,l=0;l<a.length-1;l++){var c=qt(u),h=a[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||me(24),typeof u=="function"&&h==="prototype"&&me(24),typeof(u=So(u,h))!="object"&&me(15,a.join("/"))}var f=qt(u),d=t(i.value),m=a[a.length-1];switch(s){case"replace":switch(f){case 2:return u.set(m,d);case 3:me(16);default:return u[m]=d}case r:switch(f){case 1:return m==="-"?u.push(d):u.splice(m,0,d);case 2:return u.set(m,d);case 3:return u.add(d);default:return u[m]=d}case"remove":switch(f){case 1:return u.splice(m,1);case 2:return u.delete(m);case 3:return u.delete(i.value);default:return delete u[m]}default:me(17,s)}}),n},N:function(n,o,i,a){switch(n.i){case 0:case 4:case 2:return function(s,u,l,c){var h=s.t,f=s.o;ir(s.R,function(d,m){var g=So(h,d),b=So(f,d),y=m?Sn(h,d)?"replace":r:"remove";if(g!==b||y!=="replace"){var x=u.concat(d);l.push(y==="remove"?{op:y,path:x}:{op:y,path:x,value:b}),c.push(y===r?{op:"remove",path:x}:y==="remove"?{op:r,path:x,value:e(g)}:{op:"replace",path:x,value:e(g)})}})}(n,o,i,a);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 m=[d,h];h=m[0],d=m[1];var g=[c,l];l=g[0],c=g[1]}for(var b=0;b<h.length;b++)if(f[b]&&d[b]!==h[b]){var y=u.concat([b]);l.push({op:"replace",path:y,value:e(d[b])}),c.push({op:"replace",path:y,value:e(h[b])})}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,i,a);case 3:return function(s,u,l,c){var h=s.t,f=s.o,d=0;h.forEach(function(m){if(!f.has(m)){var g=u.concat([d]);l.push({op:"remove",path:g,value:m}),c.unshift({op:r,path:g,value:m})}d++}),d=0,f.forEach(function(m){if(!h.has(m)){var g=u.concat([d]);l.push({op:r,path:g,value:m}),c.unshift({op:"remove",path:g,value:m})}d++})}(n,o,i,a)}},M:function(n,o,i,a){i.push({op:"replace",path:[],value:o===Fs?void 0:o}),a.push({op:"replace",path:[],value:n})}})}function hb(){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(dt(u)){var l=En(s.A.h,u,s);s.p.set(u,l),s.o.add(l)}else s.o.add(u)}))}function n(s){s.g&&me(3,JSON.stringify(Ce(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)},i=function(){function s(l,c){return this[ne]={i:2,l:c,A:c?c.A:_o(),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 Ce(this[ne]).size}}),u.has=function(l){return Ce(this[ne]).has(l)},u.set=function(l,c){var h=this[ne];return n(h),Ce(h).has(l)&&Ce(h).get(l)===c||(e(h),Et(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[ne];return n(c),e(c),Et(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[ne];n(l),Ce(l).size&&(e(l),Et(l),l.R=new Map,ir(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},u.forEach=function(l,c){var h=this;Ce(this[ne]).forEach(function(f,d){l.call(c,h.get(d),d,h)})},u.get=function(l){var c=this[ne];n(c);var h=Ce(c).get(l);if(c.I||!dt(h)||h!==c.t.get(l))return h;var f=En(c.A.h,h,c);return e(c),c.o.set(l,f),f},u.keys=function(){return Ce(this[ne]).keys()},u.values=function(){var l,c=this,h=this.keys();return(l={})[oo]=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={})[oo]=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[oo]=function(){return this.entries()},s}(),a=function(){function s(l,c){return this[ne]={i:3,l:c,A:c?c.A:_o(),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 Ce(this[ne]).size}}),u.has=function(l){var c=this[ne];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[ne];return n(c),this.has(l)||(r(c),Et(c),c.o.add(l)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[ne];return n(c),r(c),Et(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},u.clear=function(){var l=this[ne];n(l),Ce(l).size&&(r(l),Et(l),l.o.clear())},u.values=function(){var l=this[ne];return n(l),r(l),l.o.values()},u.entries=function(){var l=this[ne];return n(l),r(l),l.o.entries()},u.keys=function(){return this.values()},u[oo]=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}();Fd("MapSet",{F:function(s,u){return new i(s,u)},T:function(s,u){return new a(s,u)}})}var hl,Rr,Bs=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",mb=typeof Map<"u",bb=typeof Set<"u",ml=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Fs=Bs?Symbol.for("immer-nothing"):((hl={})["immer-nothing"]=!0,hl),yn=Bs?Symbol.for("immer-draftable"):"__$immer_draftable",ne=Bs?Symbol.for("immer-state"):"__$immer_state",oo=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",gb={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"},yb=""+Object.prototype.constructor,Hs=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,vb=Object.getOwnPropertyDescriptors||function(t){var e={};return Hs(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Na={},Aa={get:function(t,e){if(e===ne)return t;var r=Ce(t);if(!Sn(r,e))return function(o,i,a){var s,u=fl(i,a);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||!dt(n)?n:n===ra(t.t,e)?(na(t),t.o[e]=En(t.A.h,n,t)):n},has:function(t,e){return e in Ce(t)},ownKeys:function(t){return Reflect.ownKeys(Ce(t))},set:function(t,e,r){var n=fl(Ce(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=ra(Ce(t),e),i=o==null?void 0:o[ne];if(i&&i.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(lb(r,o)&&(r!==void 0||Sn(t.t,e)))return!0;na(t),Et(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 ra(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,na(t),Et(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=Ce(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){me(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){me(12)}},hn={};ir(Aa,function(t,e){hn[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),hn.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&me(13),hn.set.call(this,t,e,void 0)},hn.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&me(14),Aa.set.call(this,t[0],e,r,t[0])};var xb=function(){function t(r){var n=this;this.O=ml,this.D=!0,this.produce=function(o,i,a){if(typeof o=="function"&&typeof i!="function"){var s=i;i=o;var u=n;return function(g){var b=this;g===void 0&&(g=s);for(var y=arguments.length,x=Array(y>1?y-1:0),S=1;S<y;S++)x[S-1]=arguments[S];return u.produce(g,function(E){var A;return(A=i).call.apply(A,[b,E].concat(x))})}}var l;if(typeof i!="function"&&me(6),a!==void 0&&typeof a!="function"&&me(7),dt(o)){var c=cl(n),h=En(n,o,void 0),f=!0;try{l=i(h),f=!1}finally{f?ko(c):Ta(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(g){return ea(c,a),ta(g,c)},function(g){throw ko(c),g}):(ea(c,a),ta(l,c))}if(!o||typeof o!="object"){if((l=i(o))===void 0&&(l=o),l===Fs&&(l=void 0),n.D&&Ms(l,!0),a){var d=[],m=[];at("Patches").M(o,l,d,m),a(d,m)}return l}me(21,o)},this.produceWithPatches=function(o,i){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 a,s,u=n.produce(o,i,function(l,c){a=l,s=c});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,a,s]}):[u,a,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){dt(r)||me(8),or(r)&&(r=fb(r));var n=cl(this),o=En(this,r,void 0);return o[ne].C=!0,Ta(n),o},e.finishDraft=function(r,n){var o=r&&r[ne];process.env.NODE_ENV!=="production"&&(o&&o.C||me(9),o.I&&me(10));var i=o.A;return ea(i,n),ta(void 0,i)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ml&&me(20),this.O=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var i=n[o];if(i.path.length===0&&i.op==="replace"){r=i.value;break}}o>-1&&(n=n.slice(o+1));var a=at("Patches").$;return or(r)?a(r,n):this.produce(r,function(s){return a(s,n)})},t}(),$e=new xb,wb=$e.produce,bl=$e.produceWithPatches.bind($e);$e.setAutoFreeze.bind($e);$e.setUseProxies.bind($e);var gl=$e.applyPatches.bind($e);$e.createDraft.bind($e);$e.finishDraft.bind($e);var U=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function pi(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Sb(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 Eb(){this.__data__=[],this.size=0}var Cb=Eb;function Tb(t,e){return t===e||t!==t&&e!==e}var Hd=Tb,Nb=Hd;function Ab(t,e){for(var r=t.length;r--;)if(Nb(t[r][0],e))return r;return-1}var hi=Ab,Ob=hi,jb=Array.prototype,Rb=jb.splice;function Pb(t){var e=this.__data__,r=Ob(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():Rb.call(e,r,1),--this.size,!0}var _b=Pb,kb=hi;function Ib(t){var e=this.__data__,r=kb(e,t);return r<0?void 0:e[r][1]}var Db=Ib,Lb=hi;function Mb(t){return Lb(this.__data__,t)>-1}var $b=Mb,Bb=hi;function Fb(t,e){var r=this.__data__,n=Bb(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var Hb=Fb,qb=Cb,zb=_b,Ub=Db,Vb=$b,Wb=Hb;function Ur(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])}}Ur.prototype.clear=qb;Ur.prototype.delete=zb;Ur.prototype.get=Ub;Ur.prototype.has=Vb;Ur.prototype.set=Wb;var mi=Ur,Gb=mi;function Yb(){this.__data__=new Gb,this.size=0}var Xb=Yb;function Kb(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Jb=Kb;function Zb(t){return this.__data__.get(t)}var Qb=Zb;function eg(t){return this.__data__.has(t)}var tg=eg,rg=typeof U=="object"&&U&&U.Object===Object&&U,qd=rg,ng=qd,og=typeof self=="object"&&self&&self.Object===Object&&self,ig=ng||og||Function("return this")(),pt=ig,ag=pt,sg=ag.Symbol,bi=sg,yl=bi,zd=Object.prototype,ug=zd.hasOwnProperty,lg=zd.toString,un=yl?yl.toStringTag:void 0;function cg(t){var e=ug.call(t,un),r=t[un];try{t[un]=void 0;var n=!0}catch{}var o=lg.call(t);return n&&(e?t[un]=r:delete t[un]),o}var dg=cg,fg=Object.prototype,pg=fg.toString;function hg(t){return pg.call(t)}var mg=hg,vl=bi,bg=dg,gg=mg,yg="[object Null]",vg="[object Undefined]",xl=vl?vl.toStringTag:void 0;function xg(t){return t==null?t===void 0?vg:yg:xl&&xl in Object(t)?bg(t):gg(t)}var gi=xg;function wg(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Ud=wg,Sg=gi,Eg=Ud,Cg="[object AsyncFunction]",Tg="[object Function]",Ng="[object GeneratorFunction]",Ag="[object Proxy]";function Og(t){if(!Eg(t))return!1;var e=Sg(t);return e==Tg||e==Ng||e==Cg||e==Ag}var qs=Og;const jg=pi(qs);var Rg=pt,Pg=Rg["__core-js_shared__"],_g=Pg,oa=_g,wl=function(){var t=/[^.]+$/.exec(oa&&oa.keys&&oa.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function kg(t){return!!wl&&wl in t}var Ig=kg,Dg=Function.prototype,Lg=Dg.toString;function Mg(t){if(t!=null){try{return Lg.call(t)}catch{}try{return t+""}catch{}}return""}var Vd=Mg,$g=qs,Bg=Ig,Fg=Ud,Hg=Vd,qg=/[\\^$.*+?()[\]{}|]/g,zg=/^\[object .+?Constructor\]$/,Ug=Function.prototype,Vg=Object.prototype,Wg=Ug.toString,Gg=Vg.hasOwnProperty,Yg=RegExp("^"+Wg.call(Gg).replace(qg,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function Xg(t){if(!Fg(t)||Bg(t))return!1;var e=$g(t)?Yg:zg;return e.test(Hg(t))}var Kg=Xg;function Jg(t,e){return t==null?void 0:t[e]}var Zg=Jg,Qg=Kg,e1=Zg;function t1(t,e){var r=e1(t,e);return Qg(r)?r:void 0}var dr=t1,r1=dr,n1=pt,o1=r1(n1,"Map"),zs=o1,i1=dr,a1=i1(Object,"create"),yi=a1,Sl=yi;function s1(){this.__data__=Sl?Sl(null):{},this.size=0}var u1=s1;function l1(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var c1=l1,d1=yi,f1="__lodash_hash_undefined__",p1=Object.prototype,h1=p1.hasOwnProperty;function m1(t){var e=this.__data__;if(d1){var r=e[t];return r===f1?void 0:r}return h1.call(e,t)?e[t]:void 0}var b1=m1,g1=yi,y1=Object.prototype,v1=y1.hasOwnProperty;function x1(t){var e=this.__data__;return g1?e[t]!==void 0:v1.call(e,t)}var w1=x1,S1=yi,E1="__lodash_hash_undefined__";function C1(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=S1&&e===void 0?E1:e,this}var T1=C1,N1=u1,A1=c1,O1=b1,j1=w1,R1=T1;function Vr(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])}}Vr.prototype.clear=N1;Vr.prototype.delete=A1;Vr.prototype.get=O1;Vr.prototype.has=j1;Vr.prototype.set=R1;var P1=Vr,El=P1,_1=mi,k1=zs;function I1(){this.size=0,this.__data__={hash:new El,map:new(k1||_1),string:new El}}var D1=I1;function L1(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var M1=L1,$1=M1;function B1(t,e){var r=t.__data__;return $1(e)?r[typeof e=="string"?"string":"hash"]:r.map}var vi=B1,F1=vi;function H1(t){var e=F1(this,t).delete(t);return this.size-=e?1:0,e}var q1=H1,z1=vi;function U1(t){return z1(this,t).get(t)}var V1=U1,W1=vi;function G1(t){return W1(this,t).has(t)}var Y1=G1,X1=vi;function K1(t,e){var r=X1(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var J1=K1,Z1=D1,Q1=q1,ey=V1,ty=Y1,ry=J1;function Wr(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])}}Wr.prototype.clear=Z1;Wr.prototype.delete=Q1;Wr.prototype.get=ey;Wr.prototype.has=ty;Wr.prototype.set=ry;var Wd=Wr,ny=mi,oy=zs,iy=Wd,ay=200;function sy(t,e){var r=this.__data__;if(r instanceof ny){var n=r.__data__;if(!oy||n.length<ay-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new iy(n)}return r.set(t,e),this.size=r.size,this}var uy=sy,ly=mi,cy=Xb,dy=Jb,fy=Qb,py=tg,hy=uy;function Gr(t){var e=this.__data__=new ly(t);this.size=e.size}Gr.prototype.clear=cy;Gr.prototype.delete=dy;Gr.prototype.get=fy;Gr.prototype.has=py;Gr.prototype.set=hy;var my=Gr,by="__lodash_hash_undefined__";function gy(t){return this.__data__.set(t,by),this}var yy=gy;function vy(t){return this.__data__.has(t)}var xy=vy,wy=Wd,Sy=yy,Ey=xy;function Lo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new wy;++e<r;)this.add(t[e])}Lo.prototype.add=Lo.prototype.push=Sy;Lo.prototype.has=Ey;var Cy=Lo;function Ty(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 Ny=Ty;function Ay(t,e){return t.has(e)}var Oy=Ay,jy=Cy,Ry=Ny,Py=Oy,_y=1,ky=2;function Iy(t,e,r,n,o,i){var a=r&_y,s=t.length,u=e.length;if(s!=u&&!(a&&u>s))return!1;var l=i.get(t),c=i.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=r&ky?new jy:void 0;for(i.set(t,e),i.set(e,t);++h<s;){var m=t[h],g=e[h];if(n)var b=a?n(g,m,h,e,t,i):n(m,g,h,t,e,i);if(b!==void 0){if(b)continue;f=!1;break}if(d){if(!Ry(e,function(y,x){if(!Py(d,x)&&(m===y||o(m,y,r,n,i)))return d.push(x)})){f=!1;break}}else if(!(m===g||o(m,g,r,n,i))){f=!1;break}}return i.delete(t),i.delete(e),f}var Gd=Iy,Dy=pt,Ly=Dy.Uint8Array,My=Ly;function $y(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}var By=$y;function Fy(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var Hy=Fy,Cl=bi,Tl=My,qy=Hd,zy=Gd,Uy=By,Vy=Hy,Wy=1,Gy=2,Yy="[object Boolean]",Xy="[object Date]",Ky="[object Error]",Jy="[object Map]",Zy="[object Number]",Qy="[object RegExp]",ev="[object Set]",tv="[object String]",rv="[object Symbol]",nv="[object ArrayBuffer]",ov="[object DataView]",Nl=Cl?Cl.prototype:void 0,ia=Nl?Nl.valueOf:void 0;function iv(t,e,r,n,o,i,a){switch(r){case ov:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case nv:return!(t.byteLength!=e.byteLength||!i(new Tl(t),new Tl(e)));case Yy:case Xy:case Zy:return qy(+t,+e);case Ky:return t.name==e.name&&t.message==e.message;case Qy:case tv:return t==e+"";case Jy:var s=Uy;case ev:var u=n&Wy;if(s||(s=Vy),t.size!=e.size&&!u)return!1;var l=a.get(t);if(l)return l==e;n|=Gy,a.set(t,e);var c=zy(s(t),s(e),n,o,i,a);return a.delete(t),c;case rv:if(ia)return ia.call(t)==ia.call(e)}return!1}var av=iv;function sv(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var uv=sv,lv=Array.isArray,Us=lv,cv=uv,dv=Us;function fv(t,e,r){var n=e(t);return dv(t)?n:cv(n,r(t))}var pv=fv;function hv(t,e){for(var r=-1,n=t==null?0:t.length,o=0,i=[];++r<n;){var a=t[r];e(a,r,t)&&(i[o++]=a)}return i}var mv=hv;function bv(){return[]}var gv=bv,yv=mv,vv=gv,xv=Object.prototype,wv=xv.propertyIsEnumerable,Al=Object.getOwnPropertySymbols,Sv=Al?function(t){return t==null?[]:(t=Object(t),yv(Al(t),function(e){return wv.call(t,e)}))}:vv,Ev=Sv;function Cv(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var Tv=Cv;function Nv(t){return t!=null&&typeof t=="object"}var xi=Nv,Av=gi,Ov=xi,jv="[object Arguments]";function Rv(t){return Ov(t)&&Av(t)==jv}var Pv=Rv,Ol=Pv,_v=xi,Yd=Object.prototype,kv=Yd.hasOwnProperty,Iv=Yd.propertyIsEnumerable,Dv=Ol(function(){return arguments}())?Ol:function(t){return _v(t)&&kv.call(t,"callee")&&!Iv.call(t,"callee")},Lv=Dv,Mo={exports:{}};function Mv(){return!1}var $v=Mv;Mo.exports;(function(t,e){var r=pt,n=$v,o=e&&!e.nodeType&&e,i=o&&!0&&t&&!t.nodeType&&t,a=i&&i.exports===o,s=a?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(Mo,Mo.exports);var Xd=Mo.exports,Bv=9007199254740991,Fv=/^(?:0|[1-9]\d*)$/;function Hv(t,e){var r=typeof t;return e=e??Bv,!!e&&(r=="number"||r!="symbol"&&Fv.test(t))&&t>-1&&t%1==0&&t<e}var qv=Hv,zv=9007199254740991;function Uv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=zv}var Kd=Uv,Vv=gi,Wv=Kd,Gv=xi,Yv="[object Arguments]",Xv="[object Array]",Kv="[object Boolean]",Jv="[object Date]",Zv="[object Error]",Qv="[object Function]",ex="[object Map]",tx="[object Number]",rx="[object Object]",nx="[object RegExp]",ox="[object Set]",ix="[object String]",ax="[object WeakMap]",sx="[object ArrayBuffer]",ux="[object DataView]",lx="[object Float32Array]",cx="[object Float64Array]",dx="[object Int8Array]",fx="[object Int16Array]",px="[object Int32Array]",hx="[object Uint8Array]",mx="[object Uint8ClampedArray]",bx="[object Uint16Array]",gx="[object Uint32Array]",ce={};ce[lx]=ce[cx]=ce[dx]=ce[fx]=ce[px]=ce[hx]=ce[mx]=ce[bx]=ce[gx]=!0;ce[Yv]=ce[Xv]=ce[sx]=ce[Kv]=ce[ux]=ce[Jv]=ce[Zv]=ce[Qv]=ce[ex]=ce[tx]=ce[rx]=ce[nx]=ce[ox]=ce[ix]=ce[ax]=!1;function yx(t){return Gv(t)&&Wv(t.length)&&!!ce[Vv(t)]}var vx=yx;function xx(t){return function(e){return t(e)}}var wx=xx,$o={exports:{}};$o.exports;(function(t,e){var r=qd,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===n,a=i&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||a&&a.binding&&a.binding("util")}catch{}}();t.exports=s})($o,$o.exports);var Vs=$o.exports,Sx=vx,Ex=wx,jl=Vs,Rl=jl&&jl.isTypedArray,Cx=Rl?Ex(Rl):Sx,Jd=Cx,Tx=Tv,Nx=Lv,Ax=Us,Ox=Xd,jx=qv,Rx=Jd,Px=Object.prototype,_x=Px.hasOwnProperty;function kx(t,e){var r=Ax(t),n=!r&&Nx(t),o=!r&&!n&&Ox(t),i=!r&&!n&&!o&&Rx(t),a=r||n||o||i,s=a?Tx(t.length,String):[],u=s.length;for(var l in t)(e||_x.call(t,l))&&!(a&&(l=="length"||o&&(l=="offset"||l=="parent")||i&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||jx(l,u)))&&s.push(l);return s}var Ix=kx,Dx=Object.prototype;function Lx(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||Dx;return t===r}var Mx=Lx;function $x(t,e){return function(r){return t(e(r))}}var Bx=$x,Fx=Bx,Hx=Fx(Object.keys,Object),qx=Hx,zx=Mx,Ux=qx,Vx=Object.prototype,Wx=Vx.hasOwnProperty;function Gx(t){if(!zx(t))return Ux(t);var e=[];for(var r in Object(t))Wx.call(t,r)&&r!="constructor"&&e.push(r);return e}var Yx=Gx,Xx=qs,Kx=Kd;function Jx(t){return t!=null&&Kx(t.length)&&!Xx(t)}var Zx=Jx,Qx=Ix,e2=Yx,t2=Zx;function r2(t){return t2(t)?Qx(t):e2(t)}var n2=r2,o2=pv,i2=Ev,a2=n2;function s2(t){return o2(t,a2,i2)}var u2=s2,Pl=u2,l2=1,c2=Object.prototype,d2=c2.hasOwnProperty;function f2(t,e,r,n,o,i){var a=r&l2,s=Pl(t),u=s.length,l=Pl(e),c=l.length;if(u!=c&&!a)return!1;for(var h=u;h--;){var f=s[h];if(!(a?f in e:d2.call(e,f)))return!1}var d=i.get(t),m=i.get(e);if(d&&m)return d==e&&m==t;var g=!0;i.set(t,e),i.set(e,t);for(var b=a;++h<u;){f=s[h];var y=t[f],x=e[f];if(n)var S=a?n(x,y,f,e,t,i):n(y,x,f,t,e,i);if(!(S===void 0?y===x||o(y,x,r,n,i):S)){g=!1;break}b||(b=f=="constructor")}if(g&&!b){var E=t.constructor,A=e.constructor;E!=A&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof A=="function"&&A instanceof A)&&(g=!1)}return i.delete(t),i.delete(e),g}var p2=f2,h2=dr,m2=pt,b2=h2(m2,"DataView"),g2=b2,y2=dr,v2=pt,x2=y2(v2,"Promise"),w2=x2,S2=dr,E2=pt,C2=S2(E2,"Set"),T2=C2,N2=dr,A2=pt,O2=N2(A2,"WeakMap"),j2=O2,Oa=g2,ja=zs,Ra=w2,Pa=T2,_a=j2,Zd=gi,Yr=Vd,_l="[object Map]",R2="[object Object]",kl="[object Promise]",Il="[object Set]",Dl="[object WeakMap]",Ll="[object DataView]",P2=Yr(Oa),_2=Yr(ja),k2=Yr(Ra),I2=Yr(Pa),D2=Yr(_a),er=Zd;(Oa&&er(new Oa(new ArrayBuffer(1)))!=Ll||ja&&er(new ja)!=_l||Ra&&er(Ra.resolve())!=kl||Pa&&er(new Pa)!=Il||_a&&er(new _a)!=Dl)&&(er=function(t){var e=Zd(t),r=e==R2?t.constructor:void 0,n=r?Yr(r):"";if(n)switch(n){case P2:return Ll;case _2:return _l;case k2:return kl;case I2:return Il;case D2:return Dl}return e});var L2=er,aa=my,M2=Gd,$2=av,B2=p2,Ml=L2,$l=Us,Bl=Xd,F2=Jd,H2=1,Fl="[object Arguments]",Hl="[object Array]",io="[object Object]",q2=Object.prototype,ql=q2.hasOwnProperty;function z2(t,e,r,n,o,i){var a=$l(t),s=$l(e),u=a?Hl:Ml(t),l=s?Hl:Ml(e);u=u==Fl?io:u,l=l==Fl?io:l;var c=u==io,h=l==io,f=u==l;if(f&&Bl(t)){if(!Bl(e))return!1;a=!0,c=!1}if(f&&!c)return i||(i=new aa),a||F2(t)?M2(t,e,r,n,o,i):$2(t,e,u,r,n,o,i);if(!(r&H2)){var d=c&&ql.call(t,"__wrapped__"),m=h&&ql.call(e,"__wrapped__");if(d||m){var g=d?t.value():t,b=m?e.value():e;return i||(i=new aa),o(g,b,r,n,i)}}return f?(i||(i=new aa),B2(t,e,r,n,o,i)):!1}var U2=z2,V2=U2,zl=xi;function Qd(t,e,r,n,o){return t===e?!0:t==null||e==null||!zl(t)&&!zl(e)?t!==t&&e!==e:V2(t,e,r,n,Qd,o)}var W2=Qd,G2=W2;function Y2(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?G2(t,e,void 0,r):!!n}var X2=Y2;const K2=pi(X2);var J2=function(e,r,n,o){var i=n?n.call(o,e,r):void 0;if(i!==void 0)return!!i;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var a=Object.keys(e),s=Object.keys(r);if(a.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),l=0;l<a.length;l++){var c=a[l];if(!u(c))return!1;var h=e[c],f=r[c];if(i=n?n.call(o,h,f,c):void 0,i===!1||i===void 0&&h!==f)return!1}return!0};const Z2=pi(J2);let Q2=(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 ew=process.env.NODE_ENV==="production",sa="Invariant failed";function ue(t,e){if(!t){if(ew)throw new Error(sa);var r=typeof e=="function"?e():e,n=r?"".concat(sa,": ").concat(r):sa;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var Nt="ROOT",ef="canvas-ROOT",tw="Parent id cannot be ommited",rw="Attempting to add a node with duplicated id",tf="Node does not exist, it may have been removed",nw='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',ow="Node cannot be dropped into target parent",iw="Target parent rejects incoming node",aw="Current parent rejects outgoing node",Ul="Cannot move node that is not a direct child of a Canvas node",sw="Cannot move node into a non-Canvas parent",Vl="A top-level Node cannot be moved",uw="Cannot move node into a descendant",Bo="The component type specified for this node (%node_type%) does not exist in the resolver",lw="The node has specified a canDrag() rule that prevents it from being dragged",cw="Invalid parameter Node Id specified",dw="Attempting to delete a top-level Node",fw=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
222
222
 
223
- More info: https://craft.js.org/r/docs/api/editor#props`,fw=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
223
+ More info: https://craft.js.org/r/docs/api/editor#props`,pw=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
224
224
 
225
225
  Available components in resolver: %availableComponents%
226
226
 
227
- More info: https://craft.js.org/r/docs/api/editor#props`,pw=`You can only use useEditor in the context of <Editor />.
227
+ More info: https://craft.js.org/r/docs/api/editor#props`,hw=`You can only use useEditor in the context of <Editor />.
228
228
 
229
- Please only use useEditor in components that are children of the <Editor /> component.`,hw=`You can only use useNode in the context of <Editor />.
229
+ Please only use useEditor in components that are children of the <Editor /> component.`,mw=`You can only use useNode in the context of <Editor />.
230
230
 
231
- Please only use useNode in components that are children of the <Editor /> component.`;function Vl(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 He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Vl(Object(r),!0).forEach(function(n){Se(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Vl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Xr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function mw(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,af(n.key),n)}}function Kr(t,e,r){return e&&mw(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Se(t,e,r){return(e=af(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ar(t){return Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ar(t)}function _a(t,e){return _a=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},_a(t,e)}function sa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ka(){return ka=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(i,a){for(;!Object.prototype.hasOwnProperty.call(i,a)&&(i=Ar(i))!==null;);return i}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},ka.apply(this,arguments)}function tf(t,e){return rf(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var i,a,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=(i=s.call(o)).done)&&(l.push(i.value),l.length!==n);c=!0);}catch(f){h=!0,a=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw a}}return l}}(t,e)||Vs(t,e)||of()}function je(t){return function(e){if(Array.isArray(e))return Ia(e)}(t)||nf(t)||Vs(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 rf(t){if(Array.isArray(t))return t}function nf(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Vs(t,e){if(t){if(typeof t=="string")return Ia(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)?Ia(t,e):void 0}}function Ia(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 of(){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 af(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var i=o.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var be={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},bw=function(){function t(){Xr(this,t),Se(this,"timeline",[]),Se(this,"pointer",-1)}return Kr(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],i=o.patches,a=o.inversePatches,s=o.timestamp;if(new Date().getTime()-s<n)return void(this.timeline[this.pointer]={timestamp:s,patches:[].concat(je(i),je(e)),inversePatches:[].concat(je(r),je(a))})}this.add(e,r)}}},{key:"merge",value:function(e,r){if(e.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],o=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(je(n.patches),je(e)),inversePatches:[].concat(je(r),je(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,bl(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,bl(e,this.timeline[this.pointer].patches)}}]),t}();function gw(t,e,r,n){var o,i=w.useMemo(function(){return new bw},[]),a=w.useRef([]),s=w.useRef(function(){});typeof t=="function"?o=t:(o=t.methods,a.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 b=s.current,y=a.current,x=u.current;return function(S,E){var A,R=r&&Wl(r,function(){return S},i),_=tf(ml(S,function(C){var T,k;switch(E.type){case be.UNDO:return i.undo(C);case be.REDO:return i.redo(C);case be.CLEAR:return i.clear(),He({},C);case be.IGNORE:case be.MERGE:case be.THROTTLE:var L,N=rf(k=E.payload)||nf(k)||Vs(k)||of(),O=N[0],P=N.slice(1);(L=o(C,R))[O].apply(L,je(P));break;default:(T=o(C,R))[E.type].apply(T,je(E.payload))}}),3),I=_[0],M=_[1],B=_[2];return A=I,x&&x(I,S,{type:E.type,params:E.payload,patches:M},R,function(C){var T=ml(I,C);A=T[0],M=[].concat(je(M),je(T[1])),B=[].concat(je(T[2]),je(B))}),[be.UNDO,be.REDO].includes(E.type)&&b&&(A=xb(A,b)),[].concat(je(y),[be.UNDO,be.REDO,be.IGNORE,be.CLEAR]).includes(E.type)||(E.type===be.THROTTLE?i.throttleAdd(M,B,E.config&&E.config.rate):E.type===be.MERGE?i.merge(M,B):i.add(M,B)),A}},[i,o,r]),h=w.useCallback(function(){return l.current},[]),f=w.useMemo(function(){return new yw(h)},[h]),d=w.useCallback(function(b){var y=c(l.current,b);l.current=y,f.notify()},[c,f]);w.useEffect(function(){f.notify()},[f]);var m=w.useMemo(function(){return r?Wl(r,function(){return l.current},i):[]},[i,r]),g=w.useMemo(function(){var b=Object.keys(o(null,null)),y=a.current;return He(He({},b.reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,A=new Array(E),R=0;R<E;R++)A[R]=arguments[R];return d({type:S,payload:A})},x},{})),{},{history:{undo:function(){return d({type:be.UNDO})},redo:function(){return d({type:be.REDO})},clear:function(){return d({type:be.CLEAR})},throttle:function(x){return He({},b.filter(function(S){return!y.includes(S)}).reduce(function(S,E){return S[E]=function(){for(var A=arguments.length,R=new Array(A),_=0;_<A;_++)R[_]=arguments[_];return d({type:be.THROTTLE,payload:[E].concat(R),config:{rate:x}})},S},{}))},ignore:function(){return He({},b.filter(function(x){return!y.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,A=new Array(E),R=0;R<E;R++)A[R]=arguments[R];return d({type:be.IGNORE,payload:[S].concat(A)})},x},{}))},merge:function(){return He({},b.filter(function(x){return!y.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,A=new Array(E),R=0;R<E;R++)A[R]=arguments[R];return d({type:be.MERGE,payload:[S].concat(A)})},x},{}))}}})},[d,o]);return w.useMemo(function(){return{getState:h,subscribe:function(b,y,x){return f.subscribe(b,y,x)},actions:g,query:m,history:i}},[g,m,f,h,i])}function Wl(t,e,r){var n=Object.keys(t()).reduce(function(o,i){return He(He({},o),{},Se({},i,function(){var a;return(a=t(e()))[i].apply(a,arguments)}))},{});return He(He({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}pb(),fb();var yw=function(){function t(e){Xr(this,t),Se(this,"getState",void 0),Se(this,"subscribers",[]),this.getState=e}return Kr(t,[{key:"subscribe",value:function(e,r,n){var o=this,i=new vw(function(){return e(o.getState())},r,n);return this.subscribers.push(i),this.unsubscribe.bind(this,i)}},{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}(),vw=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Xr(this,t),Se(this,"collected",void 0),Se(this,"collector",void 0),Se(this,"onChange",void 0),Se(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return Kr(t,[{key:"collect",value:function(){try{var e=this.collector();X2(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),En=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,o=e.top,i=e.left,a=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:i,bottom:a,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 m=getComputedStyle(d);if(!(c.overflow&&c.overflow!=="visible"||m.float!=="none"||m.display==="grid"||m.display==="flex"&&m["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 xw(t,e){const{subscribe:r,getState:n,actions:o,query:i}=t,a=w.useRef(!0),s=w.useRef(null),u=w.useRef(e);u.current=e;const l=w.useCallback(f=>({...f,actions:o,query:i}),[o,i]);a.current&&e&&(s.current=e(n(),i),a.current=!1);const[c,h]=w.useState(l(s.current));return w.useEffect(()=>{let f;return u.current&&(f=r(d=>u.current(d,i),d=>{h(l(d))})),()=>{f&&f()}},[l,i,r]),c}var Pr,sf=function(){return Z2(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},ww=function(){function t(){Xr(this,t),Se(this,"isEnabled",!0),Se(this,"elementIdMap",new WeakMap),Se(this,"registry",new Map)}return Kr(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=sf();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(J2(r.required,o.required))return o;this.getByElement(e,r.name).disable()}var i=null,a=this.getConnectorId(e,r.name);return this.registry.set(a,{id:a,required:r.required,enable:function(){i&&i(),i=r.connector(e,r.required,r.options)},disable:function(){i&&i()},remove:function(){return n.remove(a)}}),this.isEnabled&&this.registry.get(a).enable(),this.registry.get(a)}},{key:"get",value:function(e){return this.registry.get(e)}},{key:"remove",value:function(e){var r=this.get(e);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach(function(e){e.enable()})}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach(function(e){e.disable()})}},{key:"getByElement",value:function(e,r){return this.get(this.getConnectorId(e,r))}},{key:"removeByElement",value:function(e,r){return this.remove(this.getConnectorId(e,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),t}();(function(t){t[t.HandlerDisabled=0]="HandlerDisabled",t[t.HandlerEnabled=1]="HandlerEnabled"})(Pr||(Pr={}));var uf=function(){function t(e){Xr(this,t),Se(this,"options",void 0),Se(this,"registry",new ww),Se(this,"subscribers",new Set),this.options=e}return Kr(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(Pr.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(Pr.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,o){var i=function(a){(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})(a,r,e)||(a.craft.stopPropagation=function(){a.craft.blockedEvents[r]||(a.craft.blockedEvents[r]=[]),a.craft.blockedEvents[r].push(e)},n(a))};return e.addEventListener(r,i,o),function(){return e.removeEventListener(r,i,o)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,o=!1,i=new Map;return{connectors:Object.entries(r).reduce(function(a,s){var u=tf(s,2),l=u[0],c=u[1];return He(He({},a),{},Se({},l,function(h,f,d){var m=function(){var g=e.registry.register(h,{required:f,name:l,options:d,connector:c});return n.add(g.id),g};return i.set(e.registry.getConnectorId(h,l),m),o&&m(),h}))},{}),register:function(){o=!0,i.forEach(function(a){a()})},cleanup:function(){o=!1,n.forEach(function(a){return e.registry.remove(a)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],o=e.handlers(),i=new Proxy(o,{get:function(a,s,u){return s in o==0?Reflect.get(a,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(i),function(){n.forEach(function(a){a()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Sw=function(t){(function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&_a(i,a)})(o,uf);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 i,a=Ar(e);if(r){var s=Ar(this).constructor;i=Reflect.construct(a,arguments,s)}else i=a.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 sa(u)}(this,i)});function o(i,a){var s;return Xr(this,o),Se(sa(s=n.call(this,a)),"derived",void 0),Se(sa(s),"unsubscribeParentHandlerListener",void 0),s.derived=i,s.options=a,s.unsubscribeParentHandlerListener=s.derived.listen(function(u){switch(u){case Pr.HandlerEnabled:return s.enable();case Pr.HandlerDisabled:return s.disable();default:return}}),s}return Kr(o,[{key:"inherit",value:function(i){return this.createProxyHandlers(this.derived,i)}},{key:"cleanup",value:function(){ka(Ar(o.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),o}();function Gl(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Ew(t,e){const r=t.ref;return ue(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=>{Gl(r,n),Gl(e,n)}}:{ref:e})}function Cw(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),Ew(n,t)}}function lf(t){return Object.keys(t).reduce((e,r)=>(e[r]=Cw((...n)=>t[r](...n)),e),{})}const Tw=({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?Ss.createPortal(n,r.ownerDocument.body):n};var zt=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)},cf=function(){return typeof window<"u"},Nw=function(){return cf()&&/Linux/i.test(window.navigator.userAgent)},Aw=function(){return cf()&&/Chrome/i.test(window.navigator.userAgent)},Ow=dr;(function(){try{var t=Ow(Object,"defineProperty");return t({},"",{}),t}catch{}})();var Bo={exports:{}};Bo.exports;(function(t,e){var r=pt,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===n,a=i?r.Buffer:void 0,s=a?a.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 Yl=mi,Xl=Yl?Yl.prototype:void 0;Xl&&Xl.valueOf;var Kl=Us;Kl&&Kl.isMap;var Jl=Us;Jl&&Jl.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const df=w.createContext(null),ff=({id:t,related:e=!1,children:r})=>w.createElement(df.Provider,{value:{id:t,related:e}},r);function Zl(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 de(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Zl(Object(r),!0).forEach(function(n){we(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Zl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Da(t){return Da=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},Da(t)}function xi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function jw(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,mf(n.key),n)}}function wi(t,e,r){return e&&jw(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function we(t,e,r){return(e=mf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ws(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&&La(t,e)}function Fo(t){return Fo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Fo(t)}function La(t,e){return La=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},La(t,e)}function Gs(t,e){if(t==null)return{};var r,n,o=function(a,s){if(a==null)return{};var u,l,c={},h=Object.keys(a);for(l=0;l<h.length;l++)s.indexOf(u=h[l])>=0||(c[u]=a[u]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function hn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ys(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=Fo(t);if(e){var o=Fo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(i,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return hn(i)}(this,r)}}function pf(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 i,a,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n!==0)for(;!(c=(i=s.call(o)).done)&&(l.push(i.value),l.length!==n);c=!0);}catch(f){h=!0,a=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw a}}return l}}(t,e)||hf(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 Ma(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||hf(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 hf(t,e){if(t){if(typeof t=="string")return Ma(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)?Ma(t,e):void 0}}function Ma(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 mf(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var i=o.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const Xs=w.createContext(null);var bf=w.createContext(null),gf=function(){return w.useContext(bf)};function fr(t){var e=gf(),r=w.useContext(Xs);ue(r,pw);var n=xw(r,t),o=w.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);w.useEffect(function(){return o.register(),function(){o.cleanup()}},[o]);var i=w.useMemo(function(){return o&&lf(o.connectors)},[o]);return de(de({},n),{},{connectors:i,inContext:!!r,store:r})}var Rw=["actions","query","connectors"];function Si(t){var e=w.useContext(df);ue(e,hw);var r=e.id,n=e.related,o=fr(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),i=o.actions,a=o.connectors,s=Gs(o,Rw),u=w.useMemo(function(){return lf({connect:function(c){return a.connect(c,r)},drag:function(c){return a.drag(c,r)}})},[a,r]),l=w.useMemo(function(){return{setProp:function(c,h){h?i.history.throttle(h).setProp(r,c):i.setProp(r,c)},setCustom:function(c,h){h?i.history.throttle(h).setCustom(r,c):i.setCustom(r,c)},setHidden:function(c){return i.setHidden(r,c)}}},[i,r]);return de(de({},s),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:u})}var Pw=["id","related","actions","inNodeContext","connectors"];function se(t){var e=Si(t),r=e.id,n=e.related,o=e.actions,i=e.inNodeContext,a=e.connectors;return de(de({},Gs(e,Pw)),{},{actions:o,id:r,related:n,setProp:function(s,u){return zt("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),o.setProp(s,u)},inNodeContext:i,connectors:a})}const _w=({render:t})=>{const{connectors:{connect:e,drag:r}}=se();return typeof t.type=="string"?e(r(w.cloneElement(t))):t},kw=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=Si(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(a=>w.createElement(Ks,{id:a,key:a}))));const i=w.createElement(t,e,o);return typeof t=="string"?w.createElement(_w,{render:i}):i},[t,e,n,r])},Iw=({render:t})=>{const{hidden:e}=Si(n=>({hidden:n.data.hidden})),{onRender:r}=fr(n=>({onRender:n.options.onRender}));return e?null:w.createElement(r,{render:t||w.createElement(kw,null)})},Ks=({id:t,render:e})=>w.createElement(ff,{id:t},w.createElement(Iw,{render:e})),$a={is:"div",canvas:!1,custom:{},hidden:!1},Dw={is:"type",canvas:"isCanvas"};function Ft({id:t,children:e,...r}){const{is:n}={...$a,...r},{query:o,actions:i}=fr(),{id:a,inNodeContext:s}=Si(),[u]=w.useState(()=>{ue(!!t,rw);const l=o.node(a).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(Ft,r,e),f=o.parseReactElement(h).toNodeTree();return i.history.ignore().addLinkedNodeFromTree(f,a,t),f.rootNodeId}return null});return u?w.createElement(Ks,{id:u}):null}const yf=()=>zt("<Canvas />",{suggest:"<Element canvas={true} />"});function Ba({...t}){return w.useEffect(()=>yf(),[]),w.createElement(Ft,{...t,canvas:!0})}const Lw=()=>{const{timestamp:t}=fr(e=>({timestamp:e.nodes[Nt]&&e.nodes[Nt]._hydrationTimestamp}));return t?w.createElement(Ks,{id:Nt,key:t}):null},Js=({children:t,json:e,data:r})=>{const{actions:n,query:o}=fr();e&&zt("<Frame json={...} />",{suggest:"<Frame data={...} />"});const i=w.useRef(!1);if(!i.current){const a=r||e;if(a)n.history.ignore().deserialize(a);else if(t){const s=w.Children.only(t),u=o.parseReactElement(s).toNodeTree((l,c)=>(c===s&&(l.id=Nt),l));n.history.ignore().addNodeTree(u)}i.current=!0}return w.createElement(Lw,null)};var Ql;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(Ql||(Ql={}));const ua=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:o,reset:i,...a}=t;return a};function ht(t){const{connectors:e,actions:r,query:n,store:o,...i}=fr(t),a=ua(r);return{connectors:e,actions:w.useMemo(()=>({...a,history:{...a.history,ignore:(...s)=>ua(a.history.ignore(...s)),throttle:(...s)=>ua(a.history.throttle(...s))}}),[a]),query:n,store:o,...i}}var vf=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=pf(r,2),o=n[0],i=n[1];return de(de({},e),{},we({},o,i))},{})},Ct=function(t,e,r){var n=Array.isArray(e)?e:[e],o=de({existOnly:!1,idOnly:!1},r||{}),i=n.filter(function(a){return!!a}).map(function(a){return typeof a=="string"?{node:t[a],exists:!!t[a]}:Da(a)!=="object"||o.idOnly?{node:null,exists:!1}:{node:a,exists:!!t[a.id]}});return o.existOnly&&ue(i.filter(function(a){return!a.exists}).length===0,ef),i},Mw=["history"],wr=null,Ho=function(t,e){if(typeof e=="string")return e;var r,n=function(o,i){var a=function(s){if(wr&&wr.resolver===s)return wr.reversed;wr={resolver:s,reversed:new Map};for(var u=0,l=Object.entries(s);u<l.length;u++){var c=pf(l[u],2);wr.reversed.set(c[1],c[0])}return wr.reversed}(o).get(i);return a!==void 0?a:null}(t,e);return ue(n,$o.replace("%node_type%",(r=e).name||r.displayName)),n};const $w=(t,e)=>typeof t=="string"?t:{resolvedName:Ho(e,t)},Fa=(t,e)=>{let{type:r,isCanvas:n,props:o}=t;return o=Object.keys(o).reduce((i,a)=>{const s=o[a];return s==null||typeof s=="function"||(i[a]=a==="children"&&typeof s!="string"?w.Children.map(s,u=>typeof u=="string"?u:Fa(u,e)):typeof s.type=="function"?Fa(s,e):s),i},{}),{type:$w(r,e),isCanvas:!!n,props:o}},Bw=(t,e)=>{const{type:r,props:n,isCanvas:o,name:i,...a}=t;return{...Fa({type:r,isCanvas:o,props:n},e),...a}};function Ha(t,e){ue(typeof e=="string",lw);var r=t.nodes[e],n=function(o){return Ha(t,o)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===Nt},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 zt("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 i(a){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[a];return l?(s.push(a),l.data.parent&&(o||!o&&u===0)&&(s=i(l.data.parent,s,u+1)),s):s}(r.data.parent)},descendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0],i=arguments.length>1?arguments[1]:void 0;return function a(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]&&(i!=="childNodes"&&n(s).linkedNodes().forEach(function(c){u.push(c),u=a(c,u,l+1)}),i!=="linkedNodes"&&n(s).childNodes().forEach(function(c){u.push(c),u=a(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 i=r;return ue(!this.isTopLevelNode(),Ul),ue(Ha(t,i.data.parent).isCanvas(),zl),ue(i.rules.canDrag(i,n),uw),!0}catch(a){return o&&o(a),!1}},isDroppable:function(o,i){var a=Ct(t.nodes,o),s=r;try{ue(this.isCanvas(),aw),ue(s.rules.canMoveIn(a.map(function(l){return l.node}),s,n),ow);var u={};return a.forEach(function(l){var c=l.node,h=l.exists;if(ue(c.rules.canDrop(s,c,n),nw),h){ue(!n(c.id).isTopLevelNode(),Ul);var f=n(c.id).descendants(!0);ue(!f.includes(s.id)&&s.id!==c.id,sw);var d=c.data.parent&&t.nodes[c.data.parent];ue(d.data.isCanvas,zl),ue(d||!d&&!t.nodes[c.id],tw),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];ue(c.rules.canMoveOut(u[l],c,n),iw)}),!0}catch(l){return i&&i(l),!1}},toSerializedNode:function(){return Bw(r.data,t.options.resolver)},toNodeTree:function(o){var i=[e].concat(Cn(this.descendants(!0,o))).reduce(function(a,s){return a[s]=n(s).get(),a},{});return{rootNodeId:e,nodes:i}},decendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return zt("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(o)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function xf(t,e,r,n){for(var o={parent:t,index:0,where:"before"},i=0,a=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,!(a&&d.left>a||s&&l>=s||i&&d.left+d.outerWidth<i))if(o.index=h,d.inFlow){if(n<l){o.where="before";break}o.where="after"}else n<c&&(s=c),r<u?(a=u,o.where="before"):(i=u,o.where="after")}return o}var io=function(t){return typeof t=="string"?t:t.name};function ec(t,e){var r=t.data.type,n={id:t.id||sf(),_hydrationTimestamp:Date.now(),data:de({type:r,name:io(r),displayName:io(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===Ft||n.data.type===Ba){var o=de(de({},$a),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(s,u){return Object.keys($a).includes(u)?n.data[Dw[u]||u]=o[u]:s[u]=n.data.props[u],s},{}),n.data.name=io(r=n.data.type),n.data.displayName=io(r),n.data.type===Ba&&(n.data.isCanvas=!0,yf())}e&&e(n);var i=r.craft;if(i){if(n.data.displayName=i.displayName||i.name||n.data.displayName,n.data.props=de(de({},i.props||i.defaultProps||{}),n.data.props),n.data.custom=de(de({},i.custom||{}),n.data.custom),i.isCanvas!=null&&(n.data.isCanvas=i.isCanvas),i.rules&&Object.keys(i.rules).forEach(function(s){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(s)&&(n.rules[s]=i.rules[s])}),i.related){var a={id:n.id,related:!0};Object.keys(i.related).forEach(function(s){n.related[s]=function(u){return w.createElement(ff,a,w.createElement(i.related[s],u))}})}i.info&&(n.info=i.info)}return n}const qa=(t,e,r)=>{let{type:n,props:o}=t;const i=((s,u)=>typeof s=="object"&&s.resolvedName?s.resolvedName==="Canvas"?Ba:u[s.resolvedName]:typeof s=="string"?s:null)(n,e);if(!i)return;o=Object.keys(o).reduce((s,u)=>{const l=o[u];return s[u]=l==null?null:typeof l=="object"&&l.resolvedName?qa(l,e):u==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:qa(c,e)):l,s},{});const a={...w.createElement(i,{...o})};return{...a,name:Ho(e,a.type)}},Fw=(t,e)=>{const{type:r,props:n,...o}=t;ue(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,fw.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:i,name:a,props:s}=qa(t,e),{parent:u,custom:l,displayName:c,isCanvas:h,nodes:f,hidden:d}=o;return{type:i,name:a,displayName:c||a,props:s,custom:l||{},isCanvas:!!h,hidden:!!d,parent:u,linkedNodes:o.linkedNodes||o._childCanvas||{},nodes:f||[]}},Hw=(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,i)=>{const a=i.nodes[i.rootNodeId];return{...o,...i.nodes,[a.id]:{...a,data:{...a.data,parent:t.id}}}},{[t.id]:n})},qw=(t,e)=>({rootNodeId:t.id,nodes:Hw(t,e)});function wf(t){const e=t&&t.options,r=()=>wf(t);return{getDropPlaceholder:(n,o,i,a=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=xf(u,l?l.reduce((d,m)=>{const g=a(t.nodes[m]);if(g){const b={id:m,...En(g)};d.push(b)}return d},[]):[],i.x,i.y),h=l.length&&t.nodes[l[c.index]],f={placement:{...c,currentNode:h},error:null};return Ct(t.nodes,n).forEach(({node:d,exists:m})=>{m&&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=>Ha(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(o=>[o,this.node(o).toSerializedNode()]);return vf(n)},getEvent:n=>function(o,i){var a=o.events[i];return{contains:function(s){return a.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(a)},size:function(){return this.all().length},at:function(s){return this.all()[s]},raw:function(){return a}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(o){let i=function(s,u){let l=s;return typeof l=="string"&&(l=w.createElement(w.Fragment,{},l)),ec({data:{type:l.type,props:{...l.props}}},c=>{u&&u(c,l)})}(n,(s,u)=>{const l=Ho(t.options.resolver,s.data.type);s.data.displayName=s.data.displayName||l,s.data.name=l,o&&o(s,u)}),a=[];return n.props&&n.props.children&&(a=w.Children.toArray(n.props.children).reduce((s,u)=>(w.isValidElement(u)&&s.push(r().parseReactElement(u).toNodeTree(o)),s),[])),qw(i,a)}}),parseSerializedNode:n=>({toNode(o){const i=Fw(n,t.options.resolver);ue(i.type,$o);const a=typeof o=="string"&&o;return a&&zt("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...a?{id:a}:{},data:i}).toNode(!a&&o)}}),parseFreshNode:n=>({toNode:o=>ec(n,i=>{i.data.parent===Qd&&(i.data.parent=Nt);const a=Ho(t.options.resolver,i.data.type);ue(a!==null,$o),i.data.displayName=i.data.displayName||a,i.data.name=a,o&&o(i)})}),createNode(n,o){zt(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const i=this.parseReactElement(n).toNodeTree(),a=i.nodes[i.rootNodeId];return o&&(o.id&&(a.id=o.id),o.data&&(a.data={...a.data,...o.data})),a},getState:()=>t}}var zw=function(t){Ws(r,uf);var e=Ys(r);function r(){return xi(this,r),e.apply(this,arguments)}return wi(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,i){}}}}]),r}();(function(t){Ws(r,Sw);var e=Ys(r);function r(){return xi(this,r),e.apply(this,arguments)}return wi(r)})();var tc=function(t){t.preventDefault()},za=function(){function t(e,r){xi(this,t),we(this,"store",void 0),we(this,"dragTarget",void 0),we(this,"currentDropTargetId",void 0),we(this,"currentDropTargetCanvasAncestorId",void 0),we(this,"currentIndicator",null),we(this,"currentTargetId",void 0),we(this,"currentTargetChildDimensions",void 0),we(this,"dragError",void 0),we(this,"draggedNodes",void 0),we(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",tc,!1)}return wi(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",tc,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(Nt).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Ct(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,i){var a=r.store.query.node(i).get().dom;return a&&o.push(de({id:i},En(a))),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(i){var a=r.store.query.node(i).get();return a&&a.data.isCanvas?a:a.data.parent?o(a.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(En(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 i=xf(o,this.currentTargetChildDimensions,r,n);if(this.isDiff(i)){var a=this.dragError;a||this.store.query.node(o.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){a=l});var s=o.data.nodes[i.index],u=s&&this.store.query.node(s).get();return this.currentIndicator={placement:de(de({},i),{},{currentNode:u}),error:a},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();we(za,"BORDER_OFFSET",10);var rc=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,i=e[0].cloneNode(!0);return i.style.position="absolute",i.style.left="-100%",i.style.top="-100%",i.style.width="".concat(n,"px"),i.style.height="".concat(o,"px"),i.style.pointerEvents="none",i.classList.add("drag-shadow"),document.body.appendChild(i),t.dataTransfer.setDragImage(i,0,0),i}var a=document.createElement("div");return a.style.position="absolute",a.style.left="-100%",a.style.top="-100%",a.style.width="100%",a.style.height="100%",a.style.pointerEvents="none",a.classList.add("drag-shadow-container"),e.forEach(function(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"),a.appendChild(d)}),document.body.appendChild(a),t.dataTransfer.setDragImage(a,t.clientX,t.clientY),a},Sf=function(t){Ws(r,zw);var e=Ys(r);function r(){var n;xi(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return we(hn(n=e.call.apply(e,[this].concat(i))),"draggedElementShadow",void 0),we(hn(n),"dragTarget",void 0),we(hn(n),"positioner",null),we(hn(n),"currentSelectedElementIds",[]),n}return wi(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,o=this.options.store;return{connect:function(i,a){return o.actions.setDOM(a,i),n.reflect(function(s){s.select(i,a),s.hover(i,a),s.drop(i,a)})},select:function(i,a){var s=n.addCraftEventListener(i,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(a){var h=o.query,f=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||f.includes(a))&&(c=f.filter(function(d){var m=h.node(d).descendants(!0),g=h.node(d).ancestors(!0);return!m.includes(a)&&!g.includes(a)})),c.includes(a)||c.push(a)}o.actions.setNodeEvent("selected",c)}),u=n.addCraftEventListener(i,"click",function(l){l.craft.stopPropagation();var c=o.query.getEvent("selected").all(),h=n.options.isMultiSelectEnabled(l),f=n.currentSelectedElementIds.includes(a),d=Cn(c);h&&f?(d.splice(d.indexOf(a),1),o.actions.setNodeEvent("selected",d)):!h&&c.length>1&&o.actions.setNodeEvent("selected",d=[a]),n.currentSelectedElementIds=d});return function(){s(),u()}},hover:function(i,a){var s=n.addCraftEventListener(i,"mouseover",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",a)}),u=null;return n.options.removeHoverOnMouseleave&&(u=n.addCraftEventListener(i,"mouseleave",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",null)})),function(){s(),u&&u()}},drop:function(i,a){var s=n.addCraftEventListener(i,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(a,l.clientX,l.clientY);c&&o.actions.setIndicator(c)}}),u=n.addCraftEventListener(i,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){u(),s()}},drag:function(i,a){if(!o.query.node(a).isDraggable())return function(){};i.setAttribute("draggable","true");var s=n.addCraftEventListener(i,"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(a)||(f=d?[].concat(Cn(f),[a]):[a],o.actions.setNodeEvent("selected",f)),h.setNodeEvent("dragged",f);var m=f.map(function(g){return c.node(g).get().dom});n.draggedElementShadow=rc(l,m,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:f},n.positioner=new za(n.options.store,n.dragTarget)}),u=n.addCraftEventListener(i,"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(){i.setAttribute("draggable","false"),s(),u()}},create:function(i,a,s){i.setAttribute("draggable","true");var u=n.addCraftEventListener(i,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof a=="function"){var f=a();h=w.isValidElement(f)?o.query.parseReactElement(f).toNodeTree():f}else h=o.query.parseReactElement(a).toNodeTree();n.draggedElementShadow=rc(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new za(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(i,"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&&Og(s.onCreate)&&s.onCreate(h.tree))})});return function(){i.removeAttribute("draggable"),u(),l()}}}}},{key:"dropElement",value:function(n){var o=this.options.store;if(this.positioner){var i=this.draggedElementShadow,a=this.positioner.getIndicator();this.dragTarget&&a&&!a.error&&n(this.dragTarget,a),i&&(i.parentNode.removeChild(i),this.draggedElementShadow=null),this.dragTarget=null,o.actions.setIndicator(null),o.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function Uw(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,o=0,i=0,a=0,s=0,u=t.where;return r?r.inFlow?(a=r.outerWidth,s=n,o=u==="before"?r.top:r.bottom,i=r.left):(a=n,s=r.outerHeight,o=r.top,i=u==="before"?r.left:r.left+r.outerWidth):e&&(o=e.top+e.padding.top,i=e.left+e.padding.left,a=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,s=n),{top:"".concat(o,"px"),left:"".concat(i,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}we(Sf,"forceSingleDragShadow",Aw()&&Nw());const Vw=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=fr(o=>({indicator:o.indicator,indicatorOptions:o.options.indicator,enabled:o.options.enabled})),n=gf();return w.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?w.createElement(Tw,{className:e.className,style:{...Uw(t.placement,En(t.placement.parent.dom),t.placement.currentNode&&En(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},Ww=({children:t})=>{const e=w.useContext(Xs),r=w.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?w.createElement(bf.Provider,{value:r},w.createElement(Vw,null),t):null},nc={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 Sf({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},Gw={methods:function(t,e){return de(de({},function(r,n){var o=function(s,u,l){if(function f(d,m){var g=s.nodes[d];typeof g.data.type!="string"&&ue(r.options.resolver[g.data.name],$o.replace("%node_type%","".concat(g.data.type.name))),r.nodes[d]=de(de({},g),{},{data:de(de({},g.data),{},{parent:m})}),g.data.nodes.length>0&&(delete r.nodes[d].data.props.children,g.data.nodes.forEach(function(b){return f(b,g.id)})),Object.values(g.data.linkedNodes).forEach(function(b){return f(b,g.id)})}(s.rootNodeId,u),u||s.rootNodeId!==Nt){var c=i(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)}}},i=function(s){ue(s,ew);var u=r.nodes[s];return ue(u,ef),u},a=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,m){Object.keys(d.events).forEach(function(g){var b=d.events[g];b&&b.has&&b.has(m)&&(d.events[g]=new Set(Array.from(b).filter(function(y){return m!==y})))})})(r,u),delete r.nodes[u]};return{addLinkedNodeFromTree:function(s,u,l){var c=i(u).data.linkedNodes[l];c&&a(c),o(s,u,{type:"linked",id:l})},add:function(s,u,l){var c=[s];Array.isArray(s)&&(zt("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=s),c.forEach(function(h){o({nodes:we({},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){Ct(r.nodes,s,{existOnly:!0,idOnly:!0}).forEach(function(u){var l=u.node;ue(!n.node(l.id).isTopLevelNode(),cw),a(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===Qd&&(h=Nt),[h,n.parseSerializedNode(u[c]).toNode(function(f){return f.id=h})]});this.replaceNodes(vf(l))},move:function(s,u,l){var c=Ct(r.nodes,s,{existOnly:!0}),h=r.nodes[u],f=new Set;c.forEach(function(d,m){var g=d.node,b=g.id,y=g.data.parent;n.node(u).isDroppable([b],function(E){throw new Error(E)}),r.options.onBeforeMoveEnd(g,h,r.nodes[y]);var x=r.nodes[y].data.nodes;f.add(x);var S=x.indexOf(b);x[S]="$$",h.data.nodes.splice(l+m,0,b),r.nodes[b].data.parent=u}),f.forEach(function(d){var m=d.length;Cn(d).reverse().forEach(function(g,b){g==="$$"&&d.splice(m-1-b,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=Ct(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){Ct(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){Ct(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=Ct(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=Gs(this,Mw);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)})})}},Yw=(t,e)=>gw(Gw,{...nc,options:{...nc.options,...t}},wf,e),Ua=({children:t,...e})=>{e.resolver!==void 0&&ue(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,dw);const r=v.useRef(e),n=Yw(r.current,(o,i,a,s,u)=>{if(!a)return;const{patches:l,...c}=a;for(let h=0;h<l.length;h++){const{path:f}=l[h],d=f.length>2&&f[0]==="nodes"&&f[2]==="data";if([be.IGNORE,be.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||d){u(m=>{o.options.normalizeNodes&&o.options.normalizeNodes(m,i,c,s)});break}}});return v.useEffect(()=>{n&&e.enabled!==void 0&&n.query.getOptions().enabled!==e.enabled&&n.actions.setOptions(o=>{o.enabled=e.enabled})},[n,e.enabled]),v.useEffect(()=>{n.subscribe(o=>({json:n.query.serialize()}),()=>{n.query.getOptions().onNodesChange(n.query)})},[n]),n?v.createElement(Xs.Provider,{value:n},v.createElement(Ww,null,t)):null},Ef=w.createContext("desktop"),qo=({value:t,children:e})=>p.jsx(Ef.Provider,{value:t,children:e}),Ae=()=>w.useContext(Ef),qe=["mobile","tablet","small","desktop"],Tt=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=qe.indexOf(e);for(let o=n;o<qe.length;o++){const i=qe[o];if(t[i]!==void 0&&t[i]!==null)return t[i]}for(let o=n-1;o>=0;o--){const i=qe[o];if(t[i]!==void 0&&t[i]!==null)return t[i]}return r};function fe(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 pr(t,e=[]){let r=[];function n(i,a){const s=v.createContext(a),u=r.length;r=[...r,a];const l=h=>{var y;const{scope:f,children:d,...m}=h,g=((y=f==null?void 0:f[t])==null?void 0:y[u])||s,b=v.useMemo(()=>m,Object.values(m));return p.jsx(g.Provider,{value:b,children:d})};l.displayName=i+"Provider";function c(h,f){var g;const d=((g=f==null?void 0:f[t])==null?void 0:g[u])||s,m=v.useContext(d);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[l,c]}const o=()=>{const i=r.map(a=>v.createContext(a));return function(s){const u=(s==null?void 0:s[t])||i;return v.useMemo(()=>({[`__scope${t}`]:{...s,[t]:u}}),[s,u])}};return o.scopeName=t,[n,Xw(o,...e)]}function Xw(...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(i){const a=n.reduce((s,{useScope:u,scopeName:l})=>{const h=u(i)[`__scope${l}`];return{...s,...h}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return r.scopeName=e.scopeName,r}function Kw(t){const e=Jw(t),r=v.forwardRef((n,o)=>{const{children:i,...a}=n,s=v.Children.toArray(i),u=s.find(Qw);if(u){const l=u.props.children,c=s.map(h=>h===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:o,children:i})});return r.displayName=`${t}.Slot`,r}function Jw(t){const e=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const a=t3(o),s=e3(i,o.props);return o.type!==v.Fragment&&(s.ref=n?li(n,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Zw=Symbol("radix.slottable");function Qw(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Zw}function e3(t,e){const r={...e};for(const n in e){const o=t[n],i=e[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...t,...r}}function t3(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 r3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ve=r3.reduce((t,e)=>{const r=Kw(`Primitive.${e}`),n=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,u=a?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...s,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function n3(t,e){t&&vd.flushSync(()=>t.dispatchEvent(e))}function ze(t){const e=v.useRef(t);return v.useEffect(()=>{e.current=t}),v.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function o3(t,e=globalThis==null?void 0:globalThis.document){const r=ze(t);v.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 i3="DismissableLayer",Va="dismissableLayer.update",a3="dismissableLayer.pointerDownOutside",s3="dismissableLayer.focusOutside",oc,Cf=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Tf=v.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...u}=t,l=v.useContext(Cf),[c,h]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=v.useState({}),m=Te(e,_=>h(_)),g=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),x=c?g.indexOf(c):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=y,A=c3(_=>{const I=_.target,M=[...l.branches].some(B=>B.contains(I));!E||M||(o==null||o(_),a==null||a(_),_.defaultPrevented||s==null||s())},f),R=d3(_=>{const I=_.target;[...l.branches].some(B=>B.contains(I))||(i==null||i(_),a==null||a(_),_.defaultPrevented||s==null||s())},f);return o3(_=>{x===l.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},f),v.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(oc=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),ic(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=oc)}},[c,f,r,l]),v.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),ic())},[c,l]),v.useEffect(()=>{const _=()=>d({});return document.addEventListener(Va,_),()=>document.removeEventListener(Va,_)},[]),p.jsx(ve.div,{...u,ref:m,style:{pointerEvents:S?E?"auto":"none":void 0,...t.style},onFocusCapture:fe(t.onFocusCapture,R.onFocusCapture),onBlurCapture:fe(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:fe(t.onPointerDownCapture,A.onPointerDownCapture)})});Tf.displayName=i3;var u3="DismissableLayerBranch",l3=v.forwardRef((t,e)=>{const r=v.useContext(Cf),n=v.useRef(null),o=Te(e,n);return v.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),p.jsx(ve.div,{...t,ref:o})});l3.displayName=u3;function c3(t,e=globalThis==null?void 0:globalThis.document){const r=ze(t),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let u=function(){Nf(a3,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},a=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",i),e.removeEventListener("click",o.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function d3(t,e=globalThis==null?void 0:globalThis.document){const r=ze(t),n=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!n.current&&Nf(s3,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ic(){const t=new CustomEvent(Va);document.dispatchEvent(t)}function Nf(t,e,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&o.addEventListener(t,e,{once:!0}),n?n3(o,i):o.dispatchEvent(i)}var Ut=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},f3=v[" useId ".trim().toString()]||(()=>{}),p3=0;function Af(t){const[e,r]=v.useState(f3());return Ut(()=>{r(n=>n??String(p3++))},[t]),e?`radix-${e}`:""}const h3=["top","right","bottom","left"],Vt=Math.min,Le=Math.max,zo=Math.round,ao=Math.floor,st=t=>({x:t,y:t}),m3={left:"right",right:"left",bottom:"top",top:"bottom"},b3={start:"end",end:"start"};function Wa(t,e,r){return Le(t,Vt(e,r))}function Ot(t,e){return typeof t=="function"?t(e):t}function jt(t){return t.split("-")[0]}function Jr(t){return t.split("-")[1]}function Zs(t){return t==="x"?"y":"x"}function Qs(t){return t==="y"?"height":"width"}const g3=new Set(["top","bottom"]);function it(t){return g3.has(jt(t))?"y":"x"}function eu(t){return Zs(it(t))}function y3(t,e,r){r===void 0&&(r=!1);const n=Jr(t),o=eu(t),i=Qs(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Uo(a)),[a,Uo(a)]}function v3(t){const e=Uo(t);return[Ga(t),e,Ga(e)]}function Ga(t){return t.replace(/start|end/g,e=>b3[e])}const ac=["left","right"],sc=["right","left"],x3=["top","bottom"],w3=["bottom","top"];function S3(t,e,r){switch(t){case"top":case"bottom":return r?e?sc:ac:e?ac:sc;case"left":case"right":return e?x3:w3;default:return[]}}function E3(t,e,r,n){const o=Jr(t);let i=S3(jt(t),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),e&&(i=i.concat(i.map(Ga)))),i}function Uo(t){return t.replace(/left|right|bottom|top/g,e=>m3[e])}function C3(t){return{top:0,right:0,bottom:0,left:0,...t}}function Of(t){return typeof t!="number"?C3(t):{top:t,right:t,bottom:t,left:t}}function Vo(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 uc(t,e,r){let{reference:n,floating:o}=t;const i=it(e),a=eu(e),s=Qs(a),u=jt(e),l=i==="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(Jr(e)){case"start":d[a]-=f*(r&&l?-1:1);break;case"end":d[a]+=f*(r&&l?-1:1);break}return d}const T3=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:h}=uc(l,n,u),f=n,d={},m=0;for(let g=0;g<s.length;g++){const{name:b,fn:y}=s[g],{x,y:S,data:E,reset:A}=await y({x:c,y:h,initialPlacement:n,placement:f,strategy:o,middlewareData:d,rects:l,platform:a,elements:{reference:t,floating:e}});c=x??c,h=S??h,d={...d,[b]:{...d[b],...E}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(l=A.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:o}):A.rects),{x:c,y:h}=uc(l,f,u)),g=-1)}return{x:c,y:h,placement:f,strategy:o,middlewareData:d}};async function Tn(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:u}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=Ot(e,t),m=Of(d),b=s[f?h==="floating"?"reference":"floating":h],y=Vo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),x=h==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),E=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},A=Vo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:u}):x);return{top:(y.top-A.top+m.top)/E.y,bottom:(A.bottom-y.bottom+m.bottom)/E.y,left:(y.left-A.left+m.left)/E.x,right:(A.right-y.right+m.right)/E.x}}const N3=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:u}=e,{element:l,padding:c=0}=Ot(t,e)||{};if(l==null)return{};const h=Of(c),f={x:r,y:n},d=eu(o),m=Qs(d),g=await a.getDimensions(l),b=d==="y",y=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",E=i.reference[m]+i.reference[d]-f[d]-i.floating[m],A=f[d]-i.reference[d],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let _=R?R[S]:0;(!_||!await(a.isElement==null?void 0:a.isElement(R)))&&(_=s.floating[S]||i.floating[m]);const I=E/2-A/2,M=_/2-g[m]/2-1,B=Vt(h[y],M),C=Vt(h[x],M),T=B,k=_-g[m]-C,L=_/2-g[m]/2+I,N=Wa(T,L,k),O=!u.arrow&&Jr(o)!=null&&L!==N&&i.reference[m]/2-(L<T?B:C)-g[m]/2<0,P=O?L<T?L-T:L-k:0;return{[d]:f[d]+P,data:{[d]:N,centerOffset:L-N-P,...O&&{alignmentOffset:P}},reset:O}}}),A3=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:u,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=Ot(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=jt(o),x=it(s),S=jt(s)===s,E=await(u.isRTL==null?void 0:u.isRTL(l.floating)),A=f||(S||!g?[Uo(s)]:v3(s)),R=m!=="none";!f&&R&&A.push(...E3(s,g,m,E));const _=[s,...A],I=await Tn(e,b),M=[];let B=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&M.push(I[y]),h){const L=y3(o,a,E);M.push(I[L[0]],I[L[1]])}if(B=[...B,{placement:o,overflows:M}],!M.every(L=>L<=0)){var C,T;const L=(((C=i.flip)==null?void 0:C.index)||0)+1,N=_[L];if(N&&(!(h==="alignment"?x!==it(N):!1)||B.every(D=>it(D.placement)===x?D.overflows[0]>0:!0)))return{data:{index:L,overflows:B},reset:{placement:N}};let O=(T=B.filter(P=>P.overflows[0]<=0).sort((P,D)=>P.overflows[1]-D.overflows[1])[0])==null?void 0:T.placement;if(!O)switch(d){case"bestFit":{var k;const P=(k=B.filter(D=>{if(R){const $=it(D.placement);return $===x||$==="y"}return!0}).map(D=>[D.placement,D.overflows.filter($=>$>0).reduce(($,z)=>$+z,0)]).sort((D,$)=>D[1]-$[1])[0])==null?void 0:k[0];P&&(O=P);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function lc(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function cc(t){return h3.some(e=>t[e]>=0)}const O3=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...o}=Ot(t,e);switch(n){case"referenceHidden":{const i=await Tn(e,{...o,elementContext:"reference"}),a=lc(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:cc(a)}}}case"escaped":{const i=await Tn(e,{...o,altBoundary:!0}),a=lc(i,r.floating);return{data:{escapedOffsets:a,escaped:cc(a)}}}default:return{}}}}},jf=new Set(["left","top"]);async function j3(t,e){const{placement:r,platform:n,elements:o}=t,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=jt(r),s=Jr(r),u=it(r)==="y",l=jf.has(a)?-1:1,c=i&&u?-1:1,h=Ot(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof m=="number"&&(d=s==="end"?m*-1:m),u?{x:d*c,y:f*l}:{x:f*l,y:d*c}}const R3=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=e,u=await j3(e,t);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},P3=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...u}=Ot(t,e),l={x:r,y:n},c=await Tn(e,u),h=it(jt(o)),f=Zs(h);let d=l[f],m=l[h];if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=d+c[b],S=d-c[y];d=Wa(x,d,S)}if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=m+c[b],S=m-c[y];m=Wa(x,m,S)}const g=s.fn({...e,[f]:d,[h]:m});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[f]:i,[h]:a}}}}}},_3=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Ot(t,e),c={x:r,y:n},h=it(o),f=Zs(h);let d=c[f],m=c[h];const g=Ot(s,e),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const S=f==="y"?"height":"width",E=i.reference[f]-i.floating[S]+b.mainAxis,A=i.reference[f]+i.reference[S]-b.mainAxis;d<E?d=E:d>A&&(d=A)}if(l){var y,x;const S=f==="y"?"width":"height",E=jf.has(jt(o)),A=i.reference[h]-i.floating[S]+(E&&((y=a.offset)==null?void 0:y[h])||0)+(E?0:b.crossAxis),R=i.reference[h]+i.reference[S]+(E?0:((x=a.offset)==null?void 0:x[h])||0)-(E?b.crossAxis:0);m<A?m=A:m>R&&(m=R)}return{[f]:d,[h]:m}}}},k3=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:o,rects:i,platform:a,elements:s}=e,{apply:u=()=>{},...l}=Ot(t,e),c=await Tn(e,l),h=jt(o),f=Jr(o),d=it(o)==="y",{width:m,height:g}=i.floating;let b,y;h==="top"||h==="bottom"?(b=h,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=h,b=f==="end"?"top":"bottom");const x=g-c.top-c.bottom,S=m-c.left-c.right,E=Vt(g-c[b],x),A=Vt(m-c[y],S),R=!e.middlewareData.shift;let _=E,I=A;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(I=S),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=x),R&&!f){const B=Le(c.left,0),C=Le(c.right,0),T=Le(c.top,0),k=Le(c.bottom,0);d?I=m-2*(B!==0||C!==0?B+C:Le(c.left,c.right)):_=g-2*(T!==0||k!==0?T+k:Le(c.top,c.bottom))}await u({...e,availableWidth:I,availableHeight:_});const M=await a.getDimensions(s.floating);return m!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Ei(){return typeof window<"u"}function Zr(t){return Rf(t)?(t.nodeName||"").toLowerCase():"#document"}function Me(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mt(t){var e;return(e=(Rf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Rf(t){return Ei()?t instanceof Node||t instanceof Me(t).Node:!1}function Je(t){return Ei()?t instanceof Element||t instanceof Me(t).Element:!1}function ft(t){return Ei()?t instanceof HTMLElement||t instanceof Me(t).HTMLElement:!1}function dc(t){return!Ei()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Me(t).ShadowRoot}const I3=new Set(["inline","contents"]);function Bn(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Ze(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!I3.has(o)}const D3=new Set(["table","td","th"]);function L3(t){return D3.has(Zr(t))}const M3=[":popover-open",":modal"];function Ci(t){return M3.some(e=>{try{return t.matches(e)}catch{return!1}})}const $3=["transform","translate","scale","rotate","perspective"],B3=["transform","translate","scale","rotate","perspective","filter"],F3=["paint","layout","strict","content"];function tu(t){const e=ru(),r=Je(t)?Ze(t):t;return $3.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)||B3.some(n=>(r.willChange||"").includes(n))||F3.some(n=>(r.contain||"").includes(n))}function H3(t){let e=Wt(t);for(;ft(e)&&!_r(e);){if(tu(e))return e;if(Ci(e))return null;e=Wt(e)}return null}function ru(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const q3=new Set(["html","body","#document"]);function _r(t){return q3.has(Zr(t))}function Ze(t){return Me(t).getComputedStyle(t)}function Ti(t){return Je(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Wt(t){if(Zr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||dc(t)&&t.host||mt(t);return dc(e)?e.host:e}function Pf(t){const e=Wt(t);return _r(e)?t.ownerDocument?t.ownerDocument.body:t.body:ft(e)&&Bn(e)?e:Pf(e)}function Nn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Pf(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),a=Me(o);if(i){const s=Ya(a);return e.concat(a,a.visualViewport||[],Bn(o)?o:[],s&&r?Nn(s):[])}return e.concat(o,Nn(o,[],r))}function Ya(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function _f(t){const e=Ze(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=ft(t),i=o?t.offsetWidth:r,a=o?t.offsetHeight:n,s=zo(r)!==i||zo(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function nu(t){return Je(t)?t:t.contextElement}function Or(t){const e=nu(t);if(!ft(e))return st(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=_f(e);let a=(i?zo(r.width):r.width)/n,s=(i?zo(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const z3=st(0);function kf(t){const e=Me(t);return!ru()||!e.visualViewport?z3:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function U3(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Me(t)?!1:e}function ar(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=nu(t);let a=st(1);e&&(n?Je(n)&&(a=Or(n)):a=Or(t));const s=U3(i,r,n)?kf(i):st(0);let u=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,c=o.width/a.x,h=o.height/a.y;if(i){const f=Me(i),d=n&&Je(n)?Me(n):n;let m=f,g=Ya(m);for(;g&&n&&d!==m;){const b=Or(g),y=g.getBoundingClientRect(),x=Ze(g),S=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,E=y.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x,l*=b.y,c*=b.x,h*=b.y,u+=S,l+=E,m=Me(g),g=Ya(m)}}return Vo({width:c,height:h,x:u,y:l})}function Ni(t,e){const r=Ti(t).scrollLeft;return e?e.left+r:ar(mt(t)).left+r}function If(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-Ni(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function V3(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const i=o==="fixed",a=mt(n),s=e?Ci(e.floating):!1;if(n===a||s&&i)return r;let u={scrollLeft:0,scrollTop:0},l=st(1);const c=st(0),h=ft(n);if((h||!h&&!i)&&((Zr(n)!=="body"||Bn(a))&&(u=Ti(n)),ft(n))){const d=ar(n);l=Or(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=a&&!h&&!i?If(a,u):st(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 W3(t){return Array.from(t.getClientRects())}function G3(t){const e=mt(t),r=Ti(t),n=t.ownerDocument.body,o=Le(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Le(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Ni(t);const s=-r.scrollTop;return Ze(n).direction==="rtl"&&(a+=Le(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const fc=25;function Y3(t,e){const r=Me(t),n=mt(t),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;const c=ru();(!c||c&&e==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=Ni(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,m=Math.abs(n.clientWidth-h.clientWidth-d);m<=fc&&(i-=m)}else l<=fc&&(i+=l);return{width:i,height:a,x:s,y:u}}const X3=new Set(["absolute","fixed"]);function K3(t,e){const r=ar(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=ft(t)?Or(t):st(1),a=t.clientWidth*i.x,s=t.clientHeight*i.y,u=o*i.x,l=n*i.y;return{width:a,height:s,x:u,y:l}}function pc(t,e,r){let n;if(e==="viewport")n=Y3(t,r);else if(e==="document")n=G3(mt(t));else if(Je(e))n=K3(e,r);else{const o=kf(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Vo(n)}function Df(t,e){const r=Wt(t);return r===e||!Je(r)||_r(r)?!1:Ze(r).position==="fixed"||Df(r,e)}function J3(t,e){const r=e.get(t);if(r)return r;let n=Nn(t,[],!1).filter(s=>Je(s)&&Zr(s)!=="body"),o=null;const i=Ze(t).position==="fixed";let a=i?Wt(t):t;for(;Je(a)&&!_r(a);){const s=Ze(a),u=tu(a);!u&&s.position==="fixed"&&(o=null),(i?!u&&!o:!u&&s.position==="static"&&!!o&&X3.has(o.position)||Bn(a)&&!u&&Df(t,a))?n=n.filter(c=>c!==a):o=s,a=Wt(a)}return e.set(t,n),n}function Z3(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const a=[...r==="clippingAncestors"?Ci(e)?[]:J3(e,this._c):[].concat(r),n],s=a[0],u=a.reduce((l,c)=>{const h=pc(e,c,o);return l.top=Le(h.top,l.top),l.right=Vt(h.right,l.right),l.bottom=Vt(h.bottom,l.bottom),l.left=Le(h.left,l.left),l},pc(e,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Q3(t){const{width:e,height:r}=_f(t);return{width:e,height:r}}function e6(t,e,r){const n=ft(e),o=mt(e),i=r==="fixed",a=ar(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const u=st(0);function l(){u.x=Ni(o)}if(n||!n&&!i)if((Zr(e)!=="body"||Bn(o))&&(s=Ti(e)),n){const d=ar(e,!0,i,e);u.x=d.x+e.clientLeft,u.y=d.y+e.clientTop}else o&&l();i&&!n&&o&&l();const c=o&&!n&&!i?If(o,s):st(0),h=a.left+s.scrollLeft-u.x-c.x,f=a.top+s.scrollTop-u.y-c.y;return{x:h,y:f,width:a.width,height:a.height}}function la(t){return Ze(t).position==="static"}function hc(t,e){if(!ft(t)||Ze(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return mt(t)===r&&(r=r.ownerDocument.body),r}function Lf(t,e){const r=Me(t);if(Ci(t))return r;if(!ft(t)){let o=Wt(t);for(;o&&!_r(o);){if(Je(o)&&!la(o))return o;o=Wt(o)}return r}let n=hc(t,e);for(;n&&L3(n)&&la(n);)n=hc(n,e);return n&&_r(n)&&la(n)&&!tu(n)?r:n||H3(t)||r}const t6=async function(t){const e=this.getOffsetParent||Lf,r=this.getDimensions,n=await r(t.floating);return{reference:e6(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function r6(t){return Ze(t).direction==="rtl"}const n6={convertOffsetParentRelativeRectToViewportRelativeRect:V3,getDocumentElement:mt,getClippingRect:Z3,getOffsetParent:Lf,getElementRects:t6,getClientRects:W3,getDimensions:Q3,getScale:Or,isElement:Je,isRTL:r6};function Mf(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function o6(t,e){let r=null,n;const o=mt(t);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),i();const l=t.getBoundingClientRect(),{left:c,top:h,width:f,height:d}=l;if(s||e(),!f||!d)return;const m=ao(h),g=ao(o.clientWidth-(c+f)),b=ao(o.clientHeight-(h+d)),y=ao(c),S={rootMargin:-m+"px "+-g+"px "+-b+"px "+-y+"px",threshold:Le(0,Vt(1,u))||1};let E=!0;function A(R){const _=R[0].intersectionRatio;if(_!==u){if(!E)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}_===1&&!Mf(l,t.getBoundingClientRect())&&a(),E=!1}try{r=new IntersectionObserver(A,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,S)}r.observe(t)}return a(!0),i}function i6(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=nu(t),c=o||i?[...l?Nn(l):[],...Nn(e)]:[];c.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const h=l&&s?o6(l,r):null;let f=-1,d=null;a&&(d=new ResizeObserver(y=>{let[x]=y;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 m,g=u?ar(t):null;u&&b();function b(){const y=ar(t);g&&!Mf(g,y)&&r(),g=y,m=requestAnimationFrame(b)}return r(),()=>{var y;c.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),h==null||h(),(y=d)==null||y.disconnect(),d=null,u&&cancelAnimationFrame(m)}}const a6=R3,s6=P3,u6=A3,l6=k3,c6=O3,mc=N3,d6=_3,f6=(t,e,r)=>{const n=new Map,o={platform:n6,...r},i={...o.platform,_c:n};return T3(t,e,{...o,platform:i})};var p6=typeof document<"u",h6=function(){},So=p6?w.useLayoutEffect:h6;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 i=o[n];if(!(i==="_owner"&&t.$$typeof)&&!Wo(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function $f(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function bc(t,e){const r=$f(t);return Math.round(e*r)/r}function ca(t){const e=v.useRef(t);return So(()=>{e.current=t}),e}function m6(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:u,open:l}=t,[c,h]=v.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,d]=v.useState(n);Wo(f,n)||d(n);const[m,g]=v.useState(null),[b,y]=v.useState(null),x=v.useCallback(D=>{D!==R.current&&(R.current=D,g(D))},[]),S=v.useCallback(D=>{D!==_.current&&(_.current=D,y(D))},[]),E=i||m,A=a||b,R=v.useRef(null),_=v.useRef(null),I=v.useRef(c),M=u!=null,B=ca(u),C=ca(o),T=ca(l),k=v.useCallback(()=>{if(!R.current||!_.current)return;const D={placement:e,strategy:r,middleware:f};C.current&&(D.platform=C.current),f6(R.current,_.current,D).then($=>{const z={...$,isPositioned:T.current!==!1};L.current&&!Wo(I.current,z)&&(I.current=z,vd.flushSync(()=>{h(z)}))})},[f,e,r,C,T]);So(()=>{l===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(D=>({...D,isPositioned:!1})))},[l]);const L=v.useRef(!1);So(()=>(L.current=!0,()=>{L.current=!1}),[]),So(()=>{if(E&&(R.current=E),A&&(_.current=A),E&&A){if(B.current)return B.current(E,A,k);k()}},[E,A,k,B,M]);const N=v.useMemo(()=>({reference:R,floating:_,setReference:x,setFloating:S}),[x,S]),O=v.useMemo(()=>({reference:E,floating:A}),[E,A]),P=v.useMemo(()=>{const D={position:r,left:0,top:0};if(!O.floating)return D;const $=bc(O.floating,c.x),z=bc(O.floating,c.y);return s?{...D,transform:"translate("+$+"px, "+z+"px)",...$f(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:z}},[r,s,O.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:k,refs:N,elements:O,floatingStyles:P}),[c,k,N,O,P])}const b6=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?mc({element:n.current,padding:o}).fn(r):{}:n?mc({element:n,padding:o}).fn(r):{}}}},g6=(t,e)=>({...a6(t),options:[t,e]}),y6=(t,e)=>({...s6(t),options:[t,e]}),v6=(t,e)=>({...d6(t),options:[t,e]}),x6=(t,e)=>({...u6(t),options:[t,e]}),w6=(t,e)=>({...l6(t),options:[t,e]}),S6=(t,e)=>({...c6(t),options:[t,e]}),E6=(t,e)=>({...b6(t),options:[t,e]});var C6="Arrow",Bf=v.forwardRef((t,e)=>{const{children:r,width:n=10,height:o=5,...i}=t;return p.jsx(ve.svg,{...i,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"})})});Bf.displayName=C6;var T6=Bf;function Ff(t){const[e,r]=v.useState(void 0);return Ut(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const u=i.borderBoxSize,l=Array.isArray(u)?u[0]:u;a=l.inlineSize,s=l.blockSize}else a=t.offsetWidth,s=t.offsetHeight;r({width:a,height:s})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var ou="Popper",[Hf,qf]=pr(ou),[N6,zf]=Hf(ou),Uf=t=>{const{__scopePopper:e,children:r}=t,[n,o]=v.useState(null);return p.jsx(N6,{scope:e,anchor:n,onAnchorChange:o,children:r})};Uf.displayName=ou;var Vf="PopperAnchor",Wf=v.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,i=zf(Vf,r),a=v.useRef(null),s=Te(e,a),u=v.useRef(null);return v.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||a.current,l!==u.current&&i.onAnchorChange(u.current)}),n?null:p.jsx(ve.div,{...o,ref:s})});Wf.displayName=Vf;var iu="PopperContent",[A6,O6]=Hf(iu),Gf=v.forwardRef((t,e)=>{var q,Re,Ee,xe,tt,yt;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:m,...g}=t,b=zf(iu,r),[y,x]=v.useState(null),S=Te(e,rt=>x(rt)),[E,A]=v.useState(null),R=Ff(E),_=(R==null?void 0:R.width)??0,I=(R==null?void 0:R.height)??0,M=n+(i!=="center"?"-"+i:""),B=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},C=Array.isArray(l)?l:[l],T=C.length>0,k={padding:B,boundary:C.filter(R6),altBoundary:T},{refs:L,floatingStyles:N,placement:O,isPositioned:P,middlewareData:D}=m6({strategy:"fixed",placement:M,whileElementsMounted:(...rt)=>i6(...rt,{animationFrame:d==="always"}),elements:{reference:b.anchor},middleware:[g6({mainAxis:o+I,alignmentAxis:a}),u&&y6({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?v6():void 0,...k}),u&&x6({...k}),w6({...k,apply:({elements:rt,rects:Qn,availableWidth:Yi,availableHeight:eo})=>{const{width:Xi,height:nn}=Qn.reference,gr=rt.floating.style;gr.setProperty("--radix-popper-available-width",`${Yi}px`),gr.setProperty("--radix-popper-available-height",`${eo}px`),gr.setProperty("--radix-popper-anchor-width",`${Xi}px`),gr.setProperty("--radix-popper-anchor-height",`${nn}px`)}}),E&&E6({element:E,padding:s}),P6({arrowWidth:_,arrowHeight:I}),f&&S6({strategy:"referenceHidden",...k})]}),[$,z]=Kf(O),re=ze(m);Ut(()=>{P&&(re==null||re())},[P,re]);const Z=(q=D.arrow)==null?void 0:q.x,H=(Re=D.arrow)==null?void 0:Re.y,F=((Ee=D.arrow)==null?void 0:Ee.centerOffset)!==0,[he,J]=v.useState();return Ut(()=>{y&&J(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:P?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(xe=D.transformOrigin)==null?void 0:xe.x,(tt=D.transformOrigin)==null?void 0:tt.y].join(" "),...((yt=D.hide)==null?void 0:yt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(A6,{scope:r,placedSide:$,onArrowChange:A,arrowX:Z,arrowY:H,shouldHideArrow:F,children:p.jsx(ve.div,{"data-side":$,"data-align":z,...g,ref:S,style:{...g.style,animation:P?void 0:"none"}})})})});Gf.displayName=iu;var Yf="PopperArrow",j6={top:"bottom",right:"left",bottom:"top",left:"right"},Xf=v.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,i=O6(Yf,n),a=j6[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(T6,{...o,ref:r,style:{...o.style,display:"block"}})})});Xf.displayName=Yf;function R6(t){return t!==null}var P6=t=>({name:"transformOrigin",options:t,fn(e){var b,y,x;const{placement:r,rects:n,middlewareData:o}=e,a=((b=o.arrow)==null?void 0:b.centerOffset)!==0,s=a?0:t.arrowWidth,u=a?0:t.arrowHeight,[l,c]=Kf(r),h={start:"0%",center:"50%",end:"100%"}[c],f=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,d=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let m="",g="";return l==="bottom"?(m=a?h:`${f}px`,g=`${-u}px`):l==="top"?(m=a?h:`${f}px`,g=`${n.floating.height+u}px`):l==="right"?(m=`${-u}px`,g=a?h:`${d}px`):l==="left"&&(m=`${n.floating.width+u}px`,g=a?h:`${d}px`),{data:{x:m,y:g}}}});function Kf(t){const[e,r="center"]=t.split("-");return[e,r]}var _6=Uf,k6=Wf,I6=Gf,D6=Xf;function L6(t,e){return v.useReducer((r,n)=>e[r][n]??r,t)}var hr=t=>{const{present:e,children:r}=t,n=M6(e),o=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),i=Te(n.ref,$6(o));return typeof r=="function"||n.isPresent?v.cloneElement(o,{ref:i}):null};hr.displayName="Presence";function M6(t){const[e,r]=v.useState(),n=v.useRef(null),o=v.useRef(t),i=v.useRef("none"),a=t?"mounted":"unmounted",[s,u]=L6(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=so(n.current);i.current=s==="mounted"?l:"none"},[s]),Ut(()=>{const l=n.current,c=o.current;if(c!==t){const f=i.current,d=so(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]),Ut(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=d=>{const g=so(n.current).includes(CSS.escape(d.animationName));if(d.target===e&&g&&(u("ANIMATION_END"),!o.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},f=d=>{d.target===e&&(i.current=so(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:v.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function so(t){return(t==null?void 0:t.animationName)||"none"}function $6(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 B6=Symbol("radix.slottable");function F6(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=B6,e}var H6=v[" useInsertionEffect ".trim().toString()]||Ut;function Qr({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[o,i,a]=q6({defaultProp:e,onChange:r}),s=t!==void 0,u=s?t:o;{const c=v.useRef(t!==void 0);v.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=v.useCallback(c=>{var h;if(s){const f=z6(c)?c(t):c;f!==t&&((h=a.current)==null||h.call(a,f))}else i(c)},[s,t,i,a]);return[u,l]}function q6({defaultProp:t,onChange:e}){const[r,n]=v.useState(t),o=v.useRef(r),i=v.useRef(e);return H6(()=>{i.current=e},[e]),v.useEffect(()=>{var a;o.current!==r&&((a=i.current)==null||a.call(i,r),o.current=r)},[r,o]),[r,n,i]}function z6(t){return typeof t=="function"}var U6=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"}),V6="VisuallyHidden",Jf=v.forwardRef((t,e)=>p.jsx(ve.span,{...t,ref:e,style:{...U6,...t.style}}));Jf.displayName=V6;var W6=Jf,[Ai]=pr("Tooltip",[qf]),Oi=qf(),Zf="TooltipProvider",G6=700,Xa="tooltip.open",[Y6,au]=Ai(Zf),Qf=t=>{const{__scopeTooltip:e,delayDuration:r=G6,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=t,a=v.useRef(!0),s=v.useRef(!1),u=v.useRef(0);return v.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(Y6,{scope:e,isOpenDelayedRef:a,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(l=>{s.current=l},[]),disableHoverableContent:o,children:i})};Qf.displayName=Zf;var An="Tooltip",[X6,ji]=Ai(An),e0=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=t,u=au(An,t.__scopeTooltip),l=Oi(e),[c,h]=v.useState(null),f=Af(),d=v.useRef(0),m=a??u.disableHoverableContent,g=s??u.delayDuration,b=v.useRef(!1),[y,x]=Qr({prop:n,defaultProp:o??!1,onChange:_=>{_?(u.onOpen(),document.dispatchEvent(new CustomEvent(Xa))):u.onClose(),i==null||i(_)},caller:An}),S=v.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),E=v.useCallback(()=>{window.clearTimeout(d.current),d.current=0,b.current=!1,x(!0)},[x]),A=v.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x(!1)},[x]),R=v.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{b.current=!0,x(!0),d.current=0},g)},[g,x]);return v.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),p.jsx(_6,{...l,children:p.jsx(X6,{scope:e,contentId:f,open:y,stateAttribute:S,trigger:c,onTriggerChange:h,onTriggerEnter:v.useCallback(()=>{u.isOpenDelayedRef.current?R():E()},[u.isOpenDelayedRef,R,E]),onTriggerLeave:v.useCallback(()=>{m?A():(window.clearTimeout(d.current),d.current=0)},[A,m]),onOpen:E,onClose:A,disableHoverableContent:m,children:r})})};e0.displayName=An;var Ka="TooltipTrigger",t0=v.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=ji(Ka,r),i=au(Ka,r),a=Oi(r),s=v.useRef(null),u=Te(e,s,o.onTriggerChange),l=v.useRef(!1),c=v.useRef(!1),h=v.useCallback(()=>l.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),p.jsx(k6,{asChild:!0,...a,children:p.jsx(ve.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:fe(t.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:fe(t.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:fe(t.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:fe(t.onFocus,()=>{l.current||o.onOpen()}),onBlur:fe(t.onBlur,o.onClose),onClick:fe(t.onClick,o.onClose)})})});t0.displayName=Ka;var K6="TooltipPortal",[EN,J6]=Ai(K6,{forceMount:void 0}),kr="TooltipContent",r0=v.forwardRef((t,e)=>{const r=J6(kr,t.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=t,a=ji(kr,t.__scopeTooltip);return p.jsx(hr,{present:n||a.open,children:a.disableHoverableContent?p.jsx(n0,{side:o,...i,ref:e}):p.jsx(Z6,{side:o,...i,ref:e})})}),Z6=v.forwardRef((t,e)=>{const r=ji(kr,t.__scopeTooltip),n=au(kr,t.__scopeTooltip),o=v.useRef(null),i=Te(e,o),[a,s]=v.useState(null),{trigger:u,onClose:l}=r,c=o.current,{onPointerInTransitChange:h}=n,f=v.useCallback(()=>{s(null),h(!1)},[h]),d=v.useCallback((m,g)=>{const b=m.currentTarget,y={x:m.clientX,y:m.clientY},x=n4(y,b.getBoundingClientRect()),S=o4(y,x),E=i4(g.getBoundingClientRect()),A=s4([...S,...E]);s(A),h(!0)},[h]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(u&&c){const m=b=>d(b,c),g=b=>d(b,u);return u.addEventListener("pointerleave",m),c.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",m),c.removeEventListener("pointerleave",g)}}},[u,c,d,f]),v.useEffect(()=>{if(a){const m=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},x=(u==null?void 0:u.contains(b))||(c==null?void 0:c.contains(b)),S=!a4(y,a);x?f():S&&(f(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[u,c,a,l,f]),p.jsx(n0,{...t,ref:i})}),[Q6,e4]=Ai(An,{isInside:!1}),t4=F6("TooltipContent"),n0=v.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=t,u=ji(kr,r),l=Oi(r),{onClose:c}=u;return v.useEffect(()=>(document.addEventListener(Xa,c),()=>document.removeEventListener(Xa,c)),[c]),v.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(Tf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(I6,{"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(t4,{children:n}),p.jsx(Q6,{scope:r,isInside:!0,children:p.jsx(W6,{id:u.contentId,role:"tooltip",children:o||n})})]})})});r0.displayName=kr;var o0="TooltipArrow",r4=v.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=Oi(r);return e4(o0,r).isInside?null:p.jsx(D6,{...o,...n,ref:e})});r4.displayName=o0;function n4(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function o4(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 i4(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 a4(t,e){const{x:r,y:n}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i],u=e[a],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 s4(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),u4(e)}function u4(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 i=e[e.length-1],a=e[e.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.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 i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.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 l4=Qf,c4=e0,d4=t0,i0=r0;const On=l4,Ir=c4,Dr=d4,sr=v.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(i0,{ref:n,sideOffset:e,className:Ne("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}));sr.displayName=i0.displayName;const jr={mobile:{icon:_s,label:"Mobile"},tablet:{icon:ks,label:"Tablet"},small:{icon:Ps,label:"Small Desktop"},desktop:{icon:Is,label:"Desktop"}},G=({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(Os,{className:"h-3 w-3"}):p.jsx(js,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},ge=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:i,inputClassName:a=""})=>p.jsxs("div",{className:"flex items-center justify-between",children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:e,onChange:s=>r(parseInt(s.target.value)),min:n,max:o,className:ct("w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right",a)}),i?p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:i}):null]})]}),Go=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:i="px",defaultValue:a=16})=>{const s=Ae(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??a},h=()=>c[s]??c.desktop??a,f=(g,b)=>{const y={...c,[g]:b};r(y)},d=g=>{f(s,g)},m=qe.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(On,{children:p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||m?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(jr[s].icon,{className:"h-3 w-3"})})}),p.jsx(sr,{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:qe.map(g=>{const b=jr[g].icon,y=c[g],x=y===void 0?qe.find(S=>qe.indexOf(S)>qe.indexOf(g)&&c[S]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(On,{children:p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${g===s?"bg-primary/10":""}`,children:p.jsx(b,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(sr,{side:"left",children:p.jsx("p",{children:jr[g].label})})]})}),p.jsx("input",{type:"number",value:y??"",placeholder:x?`${c[x]??a}`:"",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 ${y===void 0?"text-muted-foreground":""}`}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:i})]},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:i})]})]})},Ue=({label:t,values:e,onChange:r})=>{var s;const n=Ae(),[o,i]=w.useState(!0),a=(u,l)=>{r(o?{[n]:{top:l,right:l,bottom:l,left:l}}:{[n]:{...e[n],[u]:l}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("button",{onClick:()=>i(!o),className:`text-xs px-2 py-0.5 rounded ${o?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:o?"Linked":"Individual"})]}),o?p.jsx("input",{type:"number",value:(s=e==null?void 0:e[n])==null?void 0:s.top,onChange:u=>a("top",parseInt(u.target.value)),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"flex gap-1",children:["top","right","bottom","left"].map(u=>{var l;return p.jsxs("div",{className:"text-center",children:[p.jsx("span",{className:"text-[10px] text-muted-foreground",children:u[0].toUpperCase()}),p.jsx("input",{type:"number",value:(l=e==null?void 0:e[n])==null?void 0:l[u],onChange:c=>a(u,parseInt(c.target.value)),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"})]},u)})})]})},te=({label:t,value:e,options:r,onChange:n,className:o="",selectClassName:i=""})=>p.jsxs("div",{className:ct("flex items-center justify-between",o,i),children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsx("select",{value:e,onChange:a=>n(a.target.value),className:ct("px-2 py-1 text-xs rounded border border-input bg-background ",i),children:r.map(a=>p.jsx("option",{value:a.value,children:a.label},a.value))})]}),ut=({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"})]})]}),At=({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))})]}),Gt=({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"})]}),Ri=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit: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:t}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,i]})]}),p.jsx("input",{type:"range",value:e,onChange:a=>r(parseInt(a.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]}),Yo=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:i="",defaultValue:a=50})=>{const s=Ae(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??a},h=()=>c[s]??c.desktop??a,f=(m,g)=>{const b={...c,[m]:g};r(b)},d=qe.some(m=>m!=="desktop"&&c[m]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("span",{className:"text-xs text-muted-foreground",children:[h(),i]}),p.jsx(On,{children:p.jsxs(Ir,{children:[p.jsx(Dr,{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(jr[s].icon,{className:"h-3 w-3"})})}),p.jsx(sr,{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:qe.map(m=>{const g=jr[m].icon,b=c[m];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 ${m===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:jr[m].label}),p.jsxs("span",{className:"text-xs",children:[b??"-",b!==void 0?i:""]})]}),p.jsx("input",{type:"range",value:b??c.desktop??a,onChange:y=>f(m,parseInt(y.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]},m)})}):p.jsx("input",{type:"range",value:h(),onChange:m=>f(s,parseInt(m.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]})},su=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:o="#ffffff",borderColor:i="#FF6B35",borderWidth:a=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:m="none",opacity:g=100})=>{const b=Ae();let y,x,S;try{const{connectors:L,events:N}=se(O=>({events:O.events}));y=L.connect,x=L.drag,S=N.selected}catch{}const E={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},A=E[r]||E.md,R=h==="auto"?A.px:h,_=f==="auto"?A.py:f,I=l==="auto"?A.fs:l,M=typeof d[b]=="object"?`${d[b].top}px ${d[b].right}px ${d[b].bottom}px ${d[b].left}px`:`${d[b]}px`,B=e==="outline"?"transparent":n,C=e==="outline"?n:o,T=e==="outline"?2:a,k=e==="outline"?n:i;return p.jsx("button",{ref:L=>L&&y&&x&&(y==null?void 0:y(x==null?void 0:x(L))),className:`cursor-move transition-all hover:opacity-90 ${S?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:B,color:C,borderWidth:`${T}px`,borderColor:k,borderStyle:"solid",borderRadius:`${s}px`,fontWeight:u,fontSize:`${I}px`,padding:`${_}px ${R}px`,margin:M,width:c==="full"?"100%":"auto",boxShadow:m==="none"?"none":m,opacity:g/100},children:t})},f4=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Content",defaultOpen:!0,children:p.jsx(Gt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)})}),p.jsxs(G,{title:"Style",defaultOpen:!0,children:[p.jsx(At,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(o=>o.variant=n)}),p.jsx(At,{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(At,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(o=>o.width=n)})]}),p.jsxs(G,{title:"Colors",defaultOpen:!0,children:[p.jsx(ut,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(o=>o.backgroundColor=n)}),p.jsx(ut,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(o=>o.textColor=n)}),p.jsx(Ri,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsxs(G,{title:"Typography",defaultOpen:!1,children:[p.jsx(ge,{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(te,{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(G,{title:"Padding",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Horizontal",value:e.paddingX||16,onChange:n=>t(o=>o.paddingX=n),max:64}),p.jsx(ge,{unit:"px",label:"Vertical",value:e.paddingY||10,onChange:n=>t(o=>o.paddingY=n),max:48})]}),p.jsxs(G,{title:"Border",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:50}),p.jsx(ge,{unit:"px",label:"Width",value:e.borderWidth||0,onChange:n=>t(o=>o.borderWidth=n),max:10}),p.jsx(ut,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(o=>o.borderColor=n)})]}),p.jsx(G,{title:"Effects",defaultOpen:!1,children:p.jsx(te,{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(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};su.craft={displayName:"Button",props:{text:"Click me",variant:"solid",size:"md",backgroundColor:"#FF6B35",textColor:"#ffffff",borderColor:"#FF6B35",borderWidth:0,borderRadius:8,fontWeight:"500",fontSize:"auto",width:"auto",paddingX:16,paddingY:10,margin:{desktop:{top:0,right:0,bottom:0,left:0}},boxShadow:"none",opacity:100},related:{settings:f4}};const ee=(t,e)=>t&&(t[e]||t.desktop||t.small||t.tablet||t.mobile||t)||"",Sr=({label:t,value:e,onChange:r,max:n=1e4})=>{var h,f,d;const o=Ae(),i=((h=e==null?void 0:e[o])==null?void 0:h.type)||"custom",a=(f=e==null?void 0:e[o])==null?void 0:f.value,s=((d=e==null?void 0:e[o])==null?void 0:d.unit)||"%",u=m=>{r(m==="none"?{[o]:{type:"none"}}:m==="auto"?{[o]:{type:"auto"}}:{[o]:{type:"custom",value:a,unit:s}})},l=m=>{r({[o]:{type:"custom",value:m,unit:s}})},c=m=>{r({[o]:{type:"custom",value:a,unit:m}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-xs font-medium",children:t}),p.jsx(te,{selectClassName:"w-full",value:i,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:u}),i==="custom"&&p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"",children:p.jsx(ge,{inputClassName:"w-full h-8 rounded-l-lg",value:a,onChange:l,max:n})}),p.jsx("div",{className:"",children:p.jsx(te,{selectClassName:" h-8",value:s,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:c})})]})]})},p4=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",uu=t=>{const e=Ae(),r=a=>{var u,l;const s=((u=t==null?void 0:t[a])==null?void 0:u[e])||((l=t==null?void 0:t[a])==null?void 0:l.desktop);return p4(s)},n=a=>ee(t==null?void 0:t[a],e),o=typeof n("padding")=="object"?`${n("padding").top}px ${n("padding").right}px ${n("padding").bottom}px ${n("padding").left}px`:`${n("padding")}px`,i=typeof n("margin")=="object"?`${n("margin").top}px ${n("margin").right}px ${n("margin").bottom}px ${n("margin").left}px`:`${n("margin")}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:o,margin:i,width:r("width"),height:r("height"),minHeight:r("minHeight"),maxHeight:r("maxHeight"),minWidth:r("minWidth"),maxWidth:r("maxWidth"),display:t.display,flexWrap:t.flexWrap,flexDirection:t.display==="flex"?t.flexDirection:void 0,justifyContent:t.display==="flex"?t.justifyContent:void 0,alignItems:t.display==="flex"?t.alignItems:void 0,gap:t.display==="flex"?`${t.gap}px`:void 0,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`,borderColor:t.borderColor,borderStyle:t.borderStyle,boxShadow:t.boxShadow==="none"?"none":t.boxShadow,position:t.position||"relative",top:t.top||0,left:t.left||0}},jn={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:{desktop:{type:"custom",value:50,unit:"%"}},height:{desktop:{type:"none"}},minHeight:{desktop:{type:"custom",value:50,unit:"px"}},maxHeight:{desktop:{type:"none"}},minWidth:{desktop:{type:"none"}},maxWidth:{desktop:{type:"none"}},display:"block",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"solid",boxShadow:"none",position:"relative",top:0,left:0},Pi=t=>{const{actions:{setProp:e},props:r}=se(i=>({props:i.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(G,{title:"Layout",defaultOpen:!0,children:[p.jsx(te,{label:"Display",value:r.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:i=>e(a=>a.display=i)}),r.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(te,{label:"Wrap",value:r.flexWrap||"nowrap",options:[{value:"nowrap",label:"No Wrap"},{value:"wrap",label:"Wrap"},{value:"wrap-reverse",label:"Wrap Reverse"}],onChange:i=>e(a=>a.flexWrap=i)}),p.jsx(At,{label:"Direction",value:r.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:i=>e(a=>a.flexDirection=i)}),p.jsx(te,{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:i=>e(a=>a.justifyContent=i)}),p.jsx(ge,{unit:"px",label:"Gap",value:r.gap||0,onChange:i=>e(a=>a.gap=i),max:64})]})]}),p.jsxs(G,{title:"Sizing",defaultOpen:!0,children:[p.jsx(Sr,{label:"Width",value:r.width,onChange:i=>e(a=>a.width={...a.width,...i}),max:1e4}),p.jsx(Sr,{label:"Min Width",value:r.minWidth,onChange:i=>e(a=>a.minWidth={...a.minWidth,...i}),max:1e4}),p.jsx(Sr,{label:"Max Width",value:r.maxWidth,onChange:i=>e(a=>a.maxWidth={...a.maxWidth,...i}),max:1e4}),p.jsx(Sr,{label:"Height",value:r.height,onChange:i=>e(a=>a.height={...a.height,...i}),max:1e4}),p.jsx(Sr,{label:"Min Height",value:r.minHeight,onChange:i=>e(a=>a.minHeight={...a.minHeight,...i}),max:1e4}),p.jsx(Sr,{label:"Max Height",value:r.maxHeight,onChange:i=>e(a=>a.maxHeight={...a.maxHeight,...i}),max:1e4})]}),p.jsxs(G,{title:"Spacing",defaultOpen:!0,children:[p.jsx(Ue,{label:"Padding",values:n,onChange:i=>e(a=>a.padding={...a.padding,...i})}),p.jsx(Ue,{label:"Margin",values:o,onChange:i=>e(a=>a.margin={...a.margin,...i})})]}),p.jsxs(G,{title:"Background",defaultOpen:!1,children:[p.jsx(ut,{label:"Color",value:r.backgroundColor||"transparent",onChange:i=>e(a=>a.backgroundColor=i)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:r.backgroundImage||"",onChange:i=>e(a=>a.backgroundImage=i.target.value),className:"w-full px-2 py-1 border rounded text-sm"}),p.jsx(te,{label:"Image Size",value:r.backgroundSize||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"stretch",label:"Stretch"}],onChange:i=>e(a=>a.backgroundSize=i)}),p.jsx(te,{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:i=>e(a=>a.backgroundRepeat=i)})]}),p.jsxs(G,{title:"Border",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Radius",value:r.borderRadius,onChange:i=>e(a=>a.borderRadius=i),max:5e3}),p.jsx(ge,{unit:"px",label:"Width",value:r.borderWidth||1,onChange:i=>e(a=>a.borderWidth=i),max:10}),p.jsx(ut,{label:"Color",value:r.borderColor||"transparent",onChange:i=>e(a=>a.borderColor=i)})]})]})},Fn=t=>{let e,r,n=!1;try{const{connectors:o,events:i}=se(a=>({events:a.events}));e=o.connect,r=o.drag,n=i.selected}catch{}return p.jsx("div",{ref:o=>{o&&e&&r&&e(r(o))},style:uu(t),className:`min-h-[50px] w-full max-w-5xl px-[15px] lg:px-0 ${n?"outline outline-blue-500":""}`,children:t.children})},h4={...jn,maxWidth:{desktop:{type:"custom",value:"1024",unit:"px"}},padding:{desktop:{top:0,right:15,bottom:0,left:15}}};Fn.craft={isCanvas:!0,props:h4,displayName:"Container",related:{settings:Pi},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const m4=/\{\{\s*([\w.]+)\s*\}\}/g,b4=(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},Xo=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,o)=>{const i=b4(e,o);return i==null?n:String(i)})},g4=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),y4=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(m4.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},v4={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"}},x4={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"}]}},w4=({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(As,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(km,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},S4=({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(Os,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(js,{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(i=>p.jsx(w4,{variable:i},i.key))})]})},a0=({className:t})=>p.jsxs("div",{className:Ne("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(x4).map(([e,r],n)=>p.jsx(S4,{category:e,data:r,defaultOpen:n===0},e))})]});var s0={},Rn={},lu={},Pn={},cu={};Object.defineProperty(cu,"__esModule",{value:!0});cu.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var du={};Object.defineProperty(du,"__esModule",{value:!0});du.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var Ja={};(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(i){var a="";return i>65535&&(i-=65536,a+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),a+=String.fromCharCode(i),a};function n(i){var a;return i>=55296&&i<=57343||i>1114111?65533:(a=r.get(i))!==null&&a!==void 0?a:i}t.replaceCodePoint=n;function o(i){return(0,t.fromCodePoint)(n(i))}t.default=o})(Ja);(function(t){var e=U&&U.__createBinding||(Object.create?function(C,T,k,L){L===void 0&&(L=k);var N=Object.getOwnPropertyDescriptor(T,k);(!N||("get"in N?!T.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return T[k]}}),Object.defineProperty(C,L,N)}:function(C,T,k,L){L===void 0&&(L=k),C[L]=T[k]}),r=U&&U.__setModuleDefault||(Object.create?function(C,T){Object.defineProperty(C,"default",{enumerable:!0,value:T})}:function(C,T){C.default=T}),n=U&&U.__importStar||function(C){if(C&&C.__esModule)return C;var T={};if(C!=null)for(var k in C)k!=="default"&&Object.prototype.hasOwnProperty.call(C,k)&&e(T,C,k);return r(T,C),T},o=U&&U.__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 i=o(cu);t.htmlDecodeTree=i.default;var a=o(du);t.xmlDecodeTree=a.default;var s=n(Ja);t.decodeCodePoint=s.default;var u=Ja;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 m(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||m(C)}var b;(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"})(b||(b={}));var y;(function(C){C[C.Legacy=0]="Legacy",C[C.Strict=1]="Strict",C[C.Attribute=2]="Attribute"})(y=t.DecodingMode||(t.DecodingMode={}));var x=function(){function C(T,k,L){this.decodeTree=T,this.emitCodePoint=k,this.errors=L,this.state=b.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=y.Strict}return C.prototype.startEntity=function(T){this.decodeMode=T,this.state=b.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},C.prototype.write=function(T,k){switch(this.state){case b.EntityStart:return T.charCodeAt(k)===l.NUM?(this.state=b.NumericStart,this.consumed+=1,this.stateNumericStart(T,k+1)):(this.state=b.NamedEntity,this.stateNamedEntity(T,k));case b.NumericStart:return this.stateNumericStart(T,k);case b.NumericDecimal:return this.stateNumericDecimal(T,k);case b.NumericHex:return this.stateNumericHex(T,k);case b.NamedEntity:return this.stateNamedEntity(T,k)}},C.prototype.stateNumericStart=function(T,k){return k>=T.length?-1:(T.charCodeAt(k)|c)===l.LOWER_X?(this.state=b.NumericHex,this.consumed+=1,this.stateNumericHex(T,k+1)):(this.state=b.NumericDecimal,this.stateNumericDecimal(T,k))},C.prototype.addToNumericResult=function(T,k,L,N){if(k!==L){var O=L-k;this.result=this.result*Math.pow(N,O)+parseInt(T.substr(k,O),N),this.consumed+=O}},C.prototype.stateNumericHex=function(T,k){for(var L=k;k<T.length;){var N=T.charCodeAt(k);if(f(N)||d(N))k+=1;else return this.addToNumericResult(T,L,k,16),this.emitNumericEntity(N,3)}return this.addToNumericResult(T,L,k,16),-1},C.prototype.stateNumericDecimal=function(T,k){for(var L=k;k<T.length;){var N=T.charCodeAt(k);if(f(N))k+=1;else return this.addToNumericResult(T,L,k,10),this.emitNumericEntity(N,2)}return this.addToNumericResult(T,L,k,10),-1},C.prototype.emitNumericEntity=function(T,k){var L;if(this.consumed<=k)return(L=this.errors)===null||L===void 0||L.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(T===l.SEMI)this.consumed+=1;else if(this.decodeMode===y.Strict)return 0;return this.emitCodePoint((0,s.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},C.prototype.stateNamedEntity=function(T,k){for(var L=this.decodeTree,N=L[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14;k<T.length;k++,this.excess++){var P=T.charCodeAt(k);if(this.treeIndex=E(L,N,this.treeIndex+Math.max(1,O),P),this.treeIndex<0)return this.result===0||this.decodeMode===y.Attribute&&(O===0||g(P))?0:this.emitNotTerminatedNamedEntity();if(N=L[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14,O!==0){if(P===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},C.prototype.emitNotTerminatedNamedEntity=function(){var T,k=this,L=k.result,N=k.decodeTree,O=(N[L]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(L,O,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},C.prototype.emitNamedEntityData=function(T,k,L){var N=this.decodeTree;return this.emitCodePoint(k===1?N[T]&~h.VALUE_LENGTH:N[T+1],L),k===3&&this.emitCodePoint(N[T+2],L),L},C.prototype.end=function(){var T;switch(this.state){case b.NamedEntity:return this.result!==0&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case b.NumericDecimal:return this.emitNumericEntity(0,2);case b.NumericHex:return this.emitNumericEntity(0,3);case b.NumericStart:return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case b.EntityStart:return 0}},C}();t.EntityDecoder=x;function S(C){var T="",k=new x(C,function(L){return T+=(0,s.fromCodePoint)(L)});return function(N,O){for(var P=0,D=0;(D=N.indexOf("&",D))>=0;){T+=N.slice(P,D),k.startEntity(O);var $=k.write(N,D+1);if($<0){P=D+k.end();break}P=D+$,D=$===0?P+1:P}var z=T+N.slice(P);return T="",z}}function E(C,T,k,L){var N=(T&h.BRANCH_LENGTH)>>7,O=T&h.JUMP_TABLE;if(N===0)return O!==0&&L===O?k:-1;if(O){var P=L-O;return P<0||P>=N?-1:C[k+P]-1}for(var D=k,$=D+N-1;D<=$;){var z=D+$>>>1,re=C[z];if(re<L)D=z+1;else if(re>L)$=z-1;else return C[z+N]}return-1}t.determineBranch=E;var A=S(i.default),R=S(a.default);function _(C,T){return T===void 0&&(T=y.Legacy),A(C,T)}t.decodeHTML=_;function I(C){return A(C,y.Attribute)}t.decodeHTMLAttribute=I;function M(C){return A(C,y.Strict)}t.decodeHTMLStrict=M;function B(C){return R(C,y.Strict)}t.decodeXML=B})(Pn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=Pn,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 i(f){return f===r.Slash||f===r.Gt||o(f)}function a(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,m){var g=d.xmlMode,b=g===void 0?!1:g,y=d.decodeEntities,x=y===void 0?!0:y;this.cbs=m,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=b,this.decodeEntities=x,this.entityTrie=b?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 m=this.sequenceIndex===this.currentSequence.length,g=m?i(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!g)this.isSpecial=!1;else if(!m){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 m=this.index-this.currentSequence.length;if(this.sectionStart<m){var g=this.index;this.index=m,this.cbs.ontext(this.sectionStart,m),this.index=g}this.isSpecial=!1,this.sectionStart=m+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?!i(d):s(d)},f.prototype.startSpecial=function(d,m){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=m,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 m=d|32;this.sectionStart=this.index,!this.xmlMode&&m===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&m===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){i(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||i(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,m){d===m||!this.decodeEntities&&this.fastForwardTo(m)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(m===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 m=d|32;m===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):m===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 m=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(m){var g=(m>>14)-1;if(!this.allowLegacyEntity()&&d!==r.Semi)this.trieIndex+=g;else{var b=this.index-this.entityExcess+1;b>this.sectionStart&&this.emitPartial(this.sectionStart,b),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 m=this.index-this.entityExcess-1,g=m+2+ +(this.state===n.InHexEntity);g!==this.index&&(m>this.sectionStart&&this.emitPartial(this.sectionStart,m),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):a(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):a(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,m){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(d,m):this.cbs.ontext(d,m)},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})(lu);var E4=U&&U.__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]}),C4=U&&U.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),T4=U&&U.__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)&&E4(e,t,r);return C4(e,t),e};Object.defineProperty(Rn,"__esModule",{value:!0});Rn.Parser=void 0;var uo=T4(lu),gc=Pn,Er=new Set(["input","option","optgroup","select","button","datalist","textarea"]),ae=new Set(["p"]),yc=new Set(["thead","tbody"]),vc=new Set(["dd","dt"]),xc=new Set(["rt","rp"]),N4=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",ae],["h1",ae],["h2",ae],["h3",ae],["h4",ae],["h5",ae],["h6",ae],["select",Er],["input",Er],["output",Er],["button",Er],["datalist",Er],["textarea",Er],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",vc],["dt",vc],["address",ae],["article",ae],["aside",ae],["blockquote",ae],["details",ae],["div",ae],["dl",ae],["fieldset",ae],["figcaption",ae],["figure",ae],["footer",ae],["form",ae],["header",ae],["hr",ae],["main",ae],["nav",ae],["ol",ae],["pre",ae],["section",ae],["table",ae],["ul",ae],["rt",xc],["rp",xc],["tbody",yc],["tfoot",yc]]),A4=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),wc=new Set(["math","svg"]),Sc=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),O4=/\s|\//,j4=function(){function t(e,r){r===void 0&&(r={});var n,o,i,a,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((i=r.Tokenizer)!==null&&i!==void 0?i:uo.default)(this.options,this),(s=(a=this.cbs).onparserinit)===null||s===void 0||s.call(a,this)}return t.prototype.ontext=function(e,r){var n,o,i=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,i),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,gc.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&A4.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,i;this.openTagStart=this.startIndex,this.tagname=e;var a=!this.options.xmlMode&&N4.get(e);if(a)for(;this.stack.length>0&&a.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),wc.has(e)?this.foreignContext.push(!0):Sc.has(e)&&this.foreignContext.push(!1)),(i=(o=this.cbs).onopentagname)===null||i===void 0||i.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,i,a,s,u;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(wc.has(l)||Sc.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"),(a=(i=this.cbs).onopentag)===null||a===void 0||a.call(i,"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,gc.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===uo.QuoteType.Double?'"':e===uo.QuoteType.Single?"'":e===uo.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(O4),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,i,a,s;this.endIndex=r,(i=(o=this.cbs).oncomment)===null||i===void 0||i.call(o,this.getSlice(e,r-n)),(s=(a=this.cbs).oncommentend)===null||s===void 0||s.call(a),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,i,a,s,u,l,c,h,f,d;this.endIndex=r;var m=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((i=(o=this.cbs).oncdatastart)===null||i===void 0||i.call(o),(s=(a=this.cbs).ontext)===null||s===void 0||s.call(a,m),(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(m,"]]")),(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}();Rn.Parser=j4;var Rt={},en={};(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})(en);var Q={},Yt=U&&U.__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 i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},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)}}(),yn=U&&U.__assign||function(){return yn=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},yn.apply(this,arguments)};Object.defineProperty(Q,"__esModule",{value:!0});Q.cloneNode=Q.hasChildren=Q.isDocument=Q.isDirective=Q.isComment=Q.isText=Q.isCDATA=Q.isTag=Q.Element=Q.Document=Q.CDATA=Q.NodeWithChildren=Q.ProcessingInstruction=Q.Comment=Q.Text=Q.DataNode=Q.Node=void 0;var ke=en,fu=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),pu(this,e)},t}();Q.Node=fu;var _i=function(t){Yt(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}(fu);Q.DataNode=_i;var u0=function(t){Yt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ke.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(_i);Q.Text=u0;var l0=function(t){Yt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ke.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(_i);Q.Comment=l0;var c0=function(t){Yt(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=ke.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(_i);Q.ProcessingInstruction=c0;var ki=function(t){Yt(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}(fu);Q.NodeWithChildren=ki;var d0=function(t){Yt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ke.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(ki);Q.CDATA=d0;var f0=function(t){Yt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ke.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(ki);Q.Document=f0;var p0=function(t){Yt(e,t);function e(r,n,o,i){o===void 0&&(o=[]),i===void 0&&(i=r==="script"?ke.ElementType.Script:r==="style"?ke.ElementType.Style:ke.ElementType.Tag);var a=t.call(this,o)||this;return a.name=r,a.attribs=n,a.type=i,a}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,i;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[n]}})},enumerable:!1,configurable:!0}),e}(ki);Q.Element=p0;function h0(t){return(0,ke.isTag)(t)}Q.isTag=h0;function m0(t){return t.type===ke.ElementType.CDATA}Q.isCDATA=m0;function b0(t){return t.type===ke.ElementType.Text}Q.isText=b0;function g0(t){return t.type===ke.ElementType.Comment}Q.isComment=g0;function y0(t){return t.type===ke.ElementType.Directive}Q.isDirective=y0;function v0(t){return t.type===ke.ElementType.Root}Q.isDocument=v0;function R4(t){return Object.prototype.hasOwnProperty.call(t,"children")}Q.hasChildren=R4;function pu(t,e){e===void 0&&(e=!1);var r;if(b0(t))r=new u0(t.data);else if(g0(t))r=new l0(t.data);else if(h0(t)){var n=e?da(t.children):[],o=new p0(t.name,yn({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=yn({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=yn({},t["x-attribsPrefix"])),r=o}else if(m0(t)){var n=e?da(t.children):[],i=new d0(n);n.forEach(function(l){return l.parent=i}),r=i}else if(v0(t)){var n=e?da(t.children):[],a=new f0(n);n.forEach(function(l){return l.parent=a}),t["x-mode"]&&(a["x-mode"]=t["x-mode"]),r=a}else if(y0(t)){var s=new c0(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}Q.cloneNode=pu;function da(t){for(var e=t.map(function(n){return pu(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=U&&U.__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=U&&U.__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=en,o=Q;r(Q,t);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=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=i),typeof u=="object"&&(l=u,u=void 0),this.callback=u??null,this.options=l??i,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=a,t.default=a})(Rt);var Eo={},Xt={},Hn={},x0={},ur={},hu={};Object.defineProperty(hu,"__esModule",{value:!0});function lo(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}hu.default=new Map(lo([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(lo([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(lo([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(lo([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Ko={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,i){return o.codePointAt(i)}:function(o,i){return(o.charCodeAt(i)&64512)===55296?(o.charCodeAt(i)-55296)*1024+o.charCodeAt(i+1)-56320+65536:o.charCodeAt(i)};function r(o){for(var i="",a=0,s;(s=t.xmlReplacer.exec(o))!==null;){var u=s.index,l=o.charCodeAt(u),c=e.get(l);c!==void 0?(i+=o.substring(a,u)+c,a=u+1):(i+="".concat(o.substring(a,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),a=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return i+o.substr(a)}t.encodeXML=r,t.escape=r;function n(o,i){return function(s){for(var u,l=0,c="";u=o.exec(s);)l!==u.index&&(c+=s.substring(l,u.index)),c+=i.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,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Ko);var P4=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ur,"__esModule",{value:!0});ur.encodeNonAsciiHTML=ur.encodeHTML=void 0;var _4=P4(hu),w0=Ko,k4=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function I4(t){return S0(k4,t)}ur.encodeHTML=I4;function D4(t){return S0(w0.xmlReplacer,t)}ur.encodeNonAsciiHTML=D4;function S0(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var i=o.index;r+=e.substring(n,i);var a=e.charCodeAt(i),s=_4.default.get(a);if(typeof s=="object"){if(i+1<e.length){var u=e.charCodeAt(i+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=i+1;else{var c=(0,w0.getCodePoint)(e,i);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==a)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=Pn,r=ur,n=Ko,o;(function(f){f[f.XML=0]="XML",f[f.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var i;(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"})(i=t.EncodingMode||(t.EncodingMode={}));function a(f,d){d===void 0&&(d=o.XML);var m=typeof d=="number"?d:d.level;if(m===o.HTML){var g=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(f,g)}return(0,e.decodeXML)(f)}t.decode=a;function s(f,d){var m;d===void 0&&(d=o.XML);var g=typeof d=="number"?{level:d}:d;return(m=g.mode)!==null&&m!==void 0||(g.mode=e.DecodingMode.Strict),a(f,g)}t.decodeStrict=s;function u(f,d){d===void 0&&(d=o.XML);var m=typeof d=="number"?{level:d}:d;return m.mode===i.UTF8?(0,n.escapeUTF8)(f):m.mode===i.Attribute?(0,n.escapeAttribute)(f):m.mode===i.Text?(0,n.escapeText)(f):m.level===o.HTML?m.mode===i.ASCII?(0,r.encodeNonAsciiHTML)(f):(0,r.encodeHTML)(f):(0,n.encodeXML)(f)}t.encode=u;var l=Ko;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=ur;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=Pn;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}})})(x0);var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.attributeNames=Lr.elementNames=void 0;Lr.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]}));Lr.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 Tr=U&&U.__assign||function(){return Tr=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},Tr.apply(this,arguments)},L4=U&&U.__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]}),M4=U&&U.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),$4=U&&U.__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)&&L4(e,t,r);return M4(e,t),e};Object.defineProperty(Hn,"__esModule",{value:!0});Hn.render=void 0;var xt=$4(en),Jo=x0,E0=Lr,B4=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function F4(t){return t.replace(/"/g,"&quot;")}function H4(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?F4:e.xmlMode||e.encodeEntities!=="utf8"?Jo.encodeXML:Jo.escapeAttribute;return Object.keys(t).map(function(o){var i,a,s=(i=t[o])!==null&&i!==void 0?i:"";return e.xmlMode==="foreign"&&(o=(a=E0.attributeNames.get(o))!==null&&a!==void 0?a:o),!e.emptyAttrs&&!e.xmlMode&&s===""?o:"".concat(o,'="').concat(n(s),'"')}).join(" ")}}var Ec=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Ii(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=q4(r[o],e);return n}Hn.render=Ii;Hn.default=Ii;function q4(t,e){switch(t.type){case xt.Root:return Ii(t.children,e);case xt.Doctype:case xt.Directive:return W4(t);case xt.Comment:return X4(t);case xt.CDATA:return Y4(t);case xt.Script:case xt.Style:case xt.Tag:return V4(t,e);case xt.Text:return G4(t,e)}}var z4=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),U4=new Set(["svg","math"]);function V4(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=E0.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&z4.has(t.parent.name)&&(e=Tr(Tr({},e),{xmlMode:!1}))),!e.xmlMode&&U4.has(t.name)&&(e=Tr(Tr({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=H4(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Ec.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=Ii(t.children,e)),(e.xmlMode||!Ec.has(t.name))&&(n+="</".concat(t.name,">"))),n}function W4(t){return"<".concat(t.data,">")}function G4(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&B4.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,Jo.encodeXML)(n):(0,Jo.escapeText)(n)),n}function Y4(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function X4(t){return"<!--".concat(t.data,"-->")}var K4=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.getOuterHTML=C0;Xt.getInnerHTML=Q4;Xt.getText=Co;Xt.textContent=Za;Xt.innerText=Qa;var lt=Rt,J4=K4(Hn),Z4=en;function C0(t,e){return(0,J4.default)(t,e)}function Q4(t,e){return(0,lt.hasChildren)(t)?t.children.map(function(r){return C0(r,e)}).join(""):""}function Co(t){return Array.isArray(t)?t.map(Co).join(""):(0,lt.isTag)(t)?t.name==="br"?`
236
- `:Co(t.children):(0,lt.isCDATA)(t)?Co(t.children):(0,lt.isText)(t)?t.data:""}function Za(t){return Array.isArray(t)?t.map(Za).join(""):(0,lt.hasChildren)(t)&&!(0,lt.isComment)(t)?Za(t.children):(0,lt.isText)(t)?t.data:""}function Qa(t){return Array.isArray(t)?t.map(Qa).join(""):(0,lt.hasChildren)(t)&&(t.type===Z4.ElementType.Tag||(0,lt.isCDATA)(t))?Qa(t.children):(0,lt.isText)(t)?t.data:""}var bt={};Object.defineProperty(bt,"__esModule",{value:!0});bt.getChildren=T0;bt.getParent=N0;bt.getSiblings=eS;bt.getAttributeValue=tS;bt.hasAttrib=rS;bt.getName=nS;bt.nextElementSibling=oS;bt.prevElementSibling=iS;var mu=Rt;function T0(t){return(0,mu.hasChildren)(t)?t.children:[]}function N0(t){return t.parent||null}function eS(t){var e,r,n=N0(t);if(n!=null)return T0(n);for(var o=[t],i=t.prev,a=t.next;i!=null;)o.unshift(i),e=i,i=e.prev;for(;a!=null;)o.push(a),r=a,a=r.next;return o}function tS(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function rS(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function nS(t){return t.name}function oS(t){for(var e,r=t.next;r!==null&&!(0,mu.isTag)(r);)e=r,r=e.next;return r}function iS(t){for(var e,r=t.prev;r!==null&&!(0,mu.isTag)(r);)e=r,r=e.prev;return r}var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.removeElement=qn;Kt.replaceElement=aS;Kt.appendChild=sS;Kt.append=uS;Kt.prependChild=lS;Kt.prepend=cS;function qn(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 aS(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 i=o.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function sS(t,e){if(qn(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 uS(t,e){qn(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 lS(t,e){if(qn(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 cS(t,e){qn(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 _t={};Object.defineProperty(_t,"__esModule",{value:!0});_t.filter=dS;_t.find=A0;_t.findOneChild=fS;_t.findOne=O0;_t.existsOne=j0;_t.findAll=pS;var lr=Rt;function dS(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),A0(t,Array.isArray(e)?e:[e],r,n)}function A0(t,e,r,n){for(var o=[],i=[Array.isArray(e)?e:[e]],a=[0];;){if(a[0]>=i[0].length){if(a.length===1)return o;i.shift(),a.shift();continue}var s=i[0][a[0]++];if(t(s)&&(o.push(s),--n<=0))return o;r&&(0,lr.hasChildren)(s)&&s.children.length>0&&(a.unshift(0),i.unshift(s.children))}}function fS(t,e){return e.find(t)}function O0(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var i=n[o];if((0,lr.isTag)(i)&&t(i))return i;if(r&&(0,lr.hasChildren)(i)&&i.children.length>0){var a=O0(t,i.children,!0);if(a)return a}}return null}function j0(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,lr.isTag)(r)&&t(r)||(0,lr.hasChildren)(r)&&j0(t,r.children)})}function pS(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 i=n[0][o[0]++];(0,lr.isTag)(i)&&t(i)&&r.push(i),(0,lr.hasChildren)(i)&&i.children.length>0&&(o.unshift(0),n.unshift(i.children))}}var kt={};Object.defineProperty(kt,"__esModule",{value:!0});kt.testElement=mS;kt.getElements=bS;kt.getElementById=gS;kt.getElementsByTagName=yS;kt.getElementsByClassName=vS;kt.getElementsByTagType=xS;var tr=Rt,zn=_t,Zo={tag_name:function(t){return typeof t=="function"?function(e){return(0,tr.isTag)(e)&&t(e.name)}:t==="*"?tr.isTag:function(e){return(0,tr.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,tr.isText)(e)&&t(e.data)}:function(e){return(0,tr.isText)(e)&&e.data===t}}};function bu(t,e){return typeof e=="function"?function(r){return(0,tr.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,tr.isTag)(r)&&r.attribs[t]===e}}function hS(t,e){return function(r){return t(r)||e(r)}}function R0(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Zo,r)?Zo[r](n):bu(r,n)});return e.length===0?null:e.reduce(hS)}function mS(t,e){var r=R0(t);return r?r(e):!0}function bS(t,e,r,n){n===void 0&&(n=1/0);var o=R0(t);return o?(0,zn.filter)(o,e,r,n):[]}function gS(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,zn.findOne)(bu("id",t),e,r)}function yS(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,zn.filter)(Zo.tag_name(t),e,r,n)}function vS(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,zn.filter)(bu("class",t),e,r,n)}function xS(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,zn.filter)(Zo.tag_type(t),e,r,n)}var mr={};Object.defineProperty(mr,"__esModule",{value:!0});mr.DocumentPosition=void 0;mr.removeSubsets=wS;mr.compareDocumentPosition=P0;mr.uniqueSort=SS;var Cc=Rt;function wS(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 Ke;(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"})(Ke||(mr.DocumentPosition=Ke={}));function P0(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,Cc.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,Cc.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var i=Math.min(r.length,n.length),a=0;a<i&&r[a]===n[a];)a++;if(a===0)return Ke.DISCONNECTED;var s=r[a-1],u=s.children,l=r[a],c=n[a];return u.indexOf(l)>u.indexOf(c)?s===e?Ke.FOLLOWING|Ke.CONTAINED_BY:Ke.FOLLOWING:s===t?Ke.PRECEDING|Ke.CONTAINS:Ke.PRECEDING}function SS(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=P0(e,r);return n&Ke.PRECEDING?-1:n&Ke.FOLLOWING?1:0}),t}var gu={};Object.defineProperty(gu,"__esModule",{value:!0});gu.getFeed=CS;var ES=Xt,Un=kt;function CS(t){var e=Qo(jS,t);return e?e.name==="feed"?TS(e):NS(e):null}function TS(t){var e,r=t.children,n={type:"atom",items:(0,Un.getElementsByTagName)("entry",r).map(function(a){var s,u=a.children,l={media:_0(u)};_e(l,"id","id",u),_e(l,"title","title",u);var c=(s=Qo("link",u))===null||s===void 0?void 0:s.attribs.href;c&&(l.link=c);var h=Bt("summary",u)||Bt("content",u);h&&(l.description=h);var f=Bt("updated",u);return f&&(l.pubDate=new Date(f)),l})};_e(n,"id","id",r),_e(n,"title","title",r);var o=(e=Qo("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),_e(n,"description","subtitle",r);var i=Bt("updated",r);return i&&(n.updated=new Date(i)),_e(n,"author","email",r,!0),n}function NS(t){var e,r,n=(r=(e=Qo("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,Un.getElementsByTagName)("item",t.children).map(function(a){var s=a.children,u={media:_0(s)};_e(u,"id","guid",s),_e(u,"title","title",s),_e(u,"link","link",s),_e(u,"description","description",s);var l=Bt("pubDate",s)||Bt("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};_e(o,"title","title",n),_e(o,"link","link",n),_e(o,"description","description",n);var i=Bt("lastBuildDate",n);return i&&(o.updated=new Date(i)),_e(o,"author","managingEditor",n,!0),o}var AS=["url","type","lang"],OS=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function _0(t){return(0,Un.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,i=AS;o<i.length;o++){var a=i[o];r[a]&&(n[a]=r[a])}for(var s=0,u=OS;s<u.length;s++){var a=u[s];r[a]&&(n[a]=parseInt(r[a],10))}return r.expression&&(n.expression=r.expression),n})}function Qo(t,e){return(0,Un.getElementsByTagName)(t,e,!0,1)[0]}function Bt(t,e,r){return r===void 0&&(r=!1),(0,ES.textContent)((0,Un.getElementsByTagName)(t,e,r,1)).trim()}function _e(t,e,r,n,o){o===void 0&&(o=!1);var i=Bt(r,n,o);i&&(t[e]=i)}function jS(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=U&&U.__createBinding||(Object.create?function(o,i,a,s){s===void 0&&(s=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(o,s,u)}:function(o,i,a,s){s===void 0&&(s=a),o[s]=i[a]}),r=U&&U.__exportStar||function(o,i){for(var a in o)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&e(i,o,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(Xt,t),r(bt,t),r(Kt,t),r(_t,t),r(kt,t),r(mr,t),r(gu,t);var n=Rt;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}})})(Eo);(function(t){var e=U&&U.__createBinding||(Object.create?function(y,x,S,E){E===void 0&&(E=S);var A=Object.getOwnPropertyDescriptor(x,S);(!A||("get"in A?!x.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return x[S]}}),Object.defineProperty(y,E,A)}:function(y,x,S,E){E===void 0&&(E=S),y[E]=x[S]}),r=U&&U.__setModuleDefault||(Object.create?function(y,x){Object.defineProperty(y,"default",{enumerable:!0,value:x})}:function(y,x){y.default=x}),n=U&&U.__importStar||function(y){if(y&&y.__esModule)return y;var x={};if(y!=null)for(var S in y)S!=="default"&&Object.prototype.hasOwnProperty.call(y,S)&&e(x,y,S);return r(x,y),x},o=U&&U.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var i=Rn,a=Rn;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return a.Parser}});var s=Rt,u=Rt;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function l(y,x){var S=new s.DomHandler(void 0,x);return new i.Parser(S,x).end(y),S.root}t.parseDocument=l;function c(y,x){return l(y,x).children}t.parseDOM=c;function h(y,x,S){var E=new s.DomHandler(y,x,S);return new i.Parser(E,x)}t.createDomStream=h;var f=lu;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=n(en);var d=Eo,m=Eo;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return m.getFeed}});var g={xmlMode:!0};function b(y,x){return x===void 0&&(x=g),(0,d.getFeed)(c(y,x))}t.parseFeed=b,t.DomUtils=n(Eo)})(s0);var RS=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},yu={};Object.defineProperty(yu,"__esModule",{value:!0});/*!
231
+ Please only use useNode in components that are children of the <Editor /> component.`;function Wl(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 He(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Wl(Object(r),!0).forEach(function(n){Se(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Wl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Xr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function bw(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,sf(n.key),n)}}function Kr(t,e,r){return e&&bw(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function Se(t,e,r){return(e=sf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Ar(t){return Ar=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ar(t)}function ka(t,e){return ka=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ka(t,e)}function ua(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ia(){return Ia=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(i,a){for(;!Object.prototype.hasOwnProperty.call(i,a)&&(i=Ar(i))!==null;);return i}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Ia.apply(this,arguments)}function rf(t,e){return nf(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var i,a,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=(i=s.call(o)).done)&&(l.push(i.value),l.length!==n);c=!0);}catch(f){h=!0,a=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw a}}return l}}(t,e)||Ws(t,e)||af()}function je(t){return function(e){if(Array.isArray(e))return Da(e)}(t)||of(t)||Ws(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 nf(t){if(Array.isArray(t))return t}function of(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function Ws(t,e){if(t){if(typeof t=="string")return Da(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)?Da(t,e):void 0}}function Da(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 af(){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 sf(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var i=o.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var be={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},gw=function(){function t(){Xr(this,t),Se(this,"timeline",[]),Se(this,"pointer",-1)}return Kr(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],i=o.patches,a=o.inversePatches,s=o.timestamp;if(new Date().getTime()-s<n)return void(this.timeline[this.pointer]={timestamp:s,patches:[].concat(je(i),je(e)),inversePatches:[].concat(je(r),je(a))})}this.add(e,r)}}},{key:"merge",value:function(e,r){if(e.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],o=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(je(n.patches),je(e)),inversePatches:[].concat(je(r),je(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,gl(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,gl(e,this.timeline[this.pointer].patches)}}]),t}();function yw(t,e,r,n){var o,i=w.useMemo(function(){return new gw},[]),a=w.useRef([]),s=w.useRef(function(){});typeof t=="function"?o=t:(o=t.methods,a.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 b=s.current,y=a.current,x=u.current;return function(S,E){var A,R=r&&Gl(r,function(){return S},i),_=rf(bl(S,function(C){var T,k;switch(E.type){case be.UNDO:return i.undo(C);case be.REDO:return i.redo(C);case be.CLEAR:return i.clear(),He({},C);case be.IGNORE:case be.MERGE:case be.THROTTLE:var L,N=nf(k=E.payload)||of(k)||Ws(k)||af(),O=N[0],P=N.slice(1);(L=o(C,R))[O].apply(L,je(P));break;default:(T=o(C,R))[E.type].apply(T,je(E.payload))}}),3),I=_[0],M=_[1],B=_[2];return A=I,x&&x(I,S,{type:E.type,params:E.payload,patches:M},R,function(C){var T=bl(I,C);A=T[0],M=[].concat(je(M),je(T[1])),B=[].concat(je(T[2]),je(B))}),[be.UNDO,be.REDO].includes(E.type)&&b&&(A=wb(A,b)),[].concat(je(y),[be.UNDO,be.REDO,be.IGNORE,be.CLEAR]).includes(E.type)||(E.type===be.THROTTLE?i.throttleAdd(M,B,E.config&&E.config.rate):E.type===be.MERGE?i.merge(M,B):i.add(M,B)),A}},[i,o,r]),h=w.useCallback(function(){return l.current},[]),f=w.useMemo(function(){return new vw(h)},[h]),d=w.useCallback(function(b){var y=c(l.current,b);l.current=y,f.notify()},[c,f]);w.useEffect(function(){f.notify()},[f]);var m=w.useMemo(function(){return r?Gl(r,function(){return l.current},i):[]},[i,r]),g=w.useMemo(function(){var b=Object.keys(o(null,null)),y=a.current;return He(He({},b.reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,A=new Array(E),R=0;R<E;R++)A[R]=arguments[R];return d({type:S,payload:A})},x},{})),{},{history:{undo:function(){return d({type:be.UNDO})},redo:function(){return d({type:be.REDO})},clear:function(){return d({type:be.CLEAR})},throttle:function(x){return He({},b.filter(function(S){return!y.includes(S)}).reduce(function(S,E){return S[E]=function(){for(var A=arguments.length,R=new Array(A),_=0;_<A;_++)R[_]=arguments[_];return d({type:be.THROTTLE,payload:[E].concat(R),config:{rate:x}})},S},{}))},ignore:function(){return He({},b.filter(function(x){return!y.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,A=new Array(E),R=0;R<E;R++)A[R]=arguments[R];return d({type:be.IGNORE,payload:[S].concat(A)})},x},{}))},merge:function(){return He({},b.filter(function(x){return!y.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,A=new Array(E),R=0;R<E;R++)A[R]=arguments[R];return d({type:be.MERGE,payload:[S].concat(A)})},x},{}))}}})},[d,o]);return w.useMemo(function(){return{getState:h,subscribe:function(b,y,x){return f.subscribe(b,y,x)},actions:g,query:m,history:i}},[g,m,f,h,i])}function Gl(t,e,r){var n=Object.keys(t()).reduce(function(o,i){return He(He({},o),{},Se({},i,function(){var a;return(a=t(e()))[i].apply(a,arguments)}))},{});return He(He({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}hb(),pb();var vw=function(){function t(e){Xr(this,t),Se(this,"getState",void 0),Se(this,"subscribers",[]),this.getState=e}return Kr(t,[{key:"subscribe",value:function(e,r,n){var o=this,i=new xw(function(){return e(o.getState())},r,n);return this.subscribers.push(i),this.unsubscribe.bind(this,i)}},{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}(),xw=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Xr(this,t),Se(this,"collected",void 0),Se(this,"collector",void 0),Se(this,"onChange",void 0),Se(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return Kr(t,[{key:"collect",value:function(){try{var e=this.collector();K2(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),Cn=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,o=e.top,i=e.left,a=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:i,bottom:a,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 m=getComputedStyle(d);if(!(c.overflow&&c.overflow!=="visible"||m.float!=="none"||m.display==="grid"||m.display==="flex"&&m["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 ww(t,e){const{subscribe:r,getState:n,actions:o,query:i}=t,a=w.useRef(!0),s=w.useRef(null),u=w.useRef(e);u.current=e;const l=w.useCallback(f=>({...f,actions:o,query:i}),[o,i]);a.current&&e&&(s.current=e(n(),i),a.current=!1);const[c,h]=w.useState(l(s.current));return w.useEffect(()=>{let f;return u.current&&(f=r(d=>u.current(d,i),d=>{h(l(d))})),()=>{f&&f()}},[l,i,r]),c}var Pr,uf=function(){return Q2(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Sw=function(){function t(){Xr(this,t),Se(this,"isEnabled",!0),Se(this,"elementIdMap",new WeakMap),Se(this,"registry",new Map)}return Kr(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=uf();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(Z2(r.required,o.required))return o;this.getByElement(e,r.name).disable()}var i=null,a=this.getConnectorId(e,r.name);return this.registry.set(a,{id:a,required:r.required,enable:function(){i&&i(),i=r.connector(e,r.required,r.options)},disable:function(){i&&i()},remove:function(){return n.remove(a)}}),this.isEnabled&&this.registry.get(a).enable(),this.registry.get(a)}},{key:"get",value:function(e){return this.registry.get(e)}},{key:"remove",value:function(e){var r=this.get(e);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach(function(e){e.enable()})}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach(function(e){e.disable()})}},{key:"getByElement",value:function(e,r){return this.get(this.getConnectorId(e,r))}},{key:"removeByElement",value:function(e,r){return this.remove(this.getConnectorId(e,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),t}();(function(t){t[t.HandlerDisabled=0]="HandlerDisabled",t[t.HandlerEnabled=1]="HandlerEnabled"})(Pr||(Pr={}));var lf=function(){function t(e){Xr(this,t),Se(this,"options",void 0),Se(this,"registry",new Sw),Se(this,"subscribers",new Set),this.options=e}return Kr(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(Pr.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(Pr.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,o){var i=function(a){(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})(a,r,e)||(a.craft.stopPropagation=function(){a.craft.blockedEvents[r]||(a.craft.blockedEvents[r]=[]),a.craft.blockedEvents[r].push(e)},n(a))};return e.addEventListener(r,i,o),function(){return e.removeEventListener(r,i,o)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,o=!1,i=new Map;return{connectors:Object.entries(r).reduce(function(a,s){var u=rf(s,2),l=u[0],c=u[1];return He(He({},a),{},Se({},l,function(h,f,d){var m=function(){var g=e.registry.register(h,{required:f,name:l,options:d,connector:c});return n.add(g.id),g};return i.set(e.registry.getConnectorId(h,l),m),o&&m(),h}))},{}),register:function(){o=!0,i.forEach(function(a){a()})},cleanup:function(){o=!1,n.forEach(function(a){return e.registry.remove(a)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],o=e.handlers(),i=new Proxy(o,{get:function(a,s,u){return s in o==0?Reflect.get(a,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(i),function(){n.forEach(function(a){a()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Ew=function(t){(function(i,a){if(typeof a!="function"&&a!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(a&&a.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),a&&ka(i,a)})(o,lf);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 i,a=Ar(e);if(r){var s=Ar(this).constructor;i=Reflect.construct(a,arguments,s)}else i=a.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 ua(u)}(this,i)});function o(i,a){var s;return Xr(this,o),Se(ua(s=n.call(this,a)),"derived",void 0),Se(ua(s),"unsubscribeParentHandlerListener",void 0),s.derived=i,s.options=a,s.unsubscribeParentHandlerListener=s.derived.listen(function(u){switch(u){case Pr.HandlerEnabled:return s.enable();case Pr.HandlerDisabled:return s.disable();default:return}}),s}return Kr(o,[{key:"inherit",value:function(i){return this.createProxyHandlers(this.derived,i)}},{key:"cleanup",value:function(){Ia(Ar(o.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),o}();function Yl(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Cw(t,e){const r=t.ref;return ue(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=>{Yl(r,n),Yl(e,n)}}:{ref:e})}function Tw(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),Cw(n,t)}}function cf(t){return Object.keys(t).reduce((e,r)=>(e[r]=Tw((...n)=>t[r](...n)),e),{})}const Nw=({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?Es.createPortal(n,r.ownerDocument.body):n};var zt=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)},df=function(){return typeof window<"u"},Aw=function(){return df()&&/Linux/i.test(window.navigator.userAgent)},Ow=function(){return df()&&/Chrome/i.test(window.navigator.userAgent)},jw=dr;(function(){try{var t=jw(Object,"defineProperty");return t({},"",{}),t}catch{}})();var Fo={exports:{}};Fo.exports;(function(t,e){var r=pt,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,i=o&&o.exports===n,a=i?r.Buffer:void 0,s=a?a.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})(Fo,Fo.exports);Fo.exports;var Xl=bi,Kl=Xl?Xl.prototype:void 0;Kl&&Kl.valueOf;var Jl=Vs;Jl&&Jl.isMap;var Zl=Vs;Zl&&Zl.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const ff=w.createContext(null),pf=({id:t,related:e=!1,children:r})=>w.createElement(ff.Provider,{value:{id:t,related:e}},r);function Ql(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 de(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Ql(Object(r),!0).forEach(function(n){we(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):Ql(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function La(t){return La=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},La(t)}function wi(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Rw(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,bf(n.key),n)}}function Si(t,e,r){return e&&Rw(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function we(t,e,r){return(e=bf(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function Gs(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&&Ma(t,e)}function Ho(t){return Ho=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},Ho(t)}function Ma(t,e){return Ma=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ma(t,e)}function Ys(t,e){if(t==null)return{};var r,n,o=function(a,s){if(a==null)return{};var u,l,c={},h=Object.keys(a);for(l=0;l<h.length;l++)s.indexOf(u=h[l])>=0||(c[u]=a[u]);return c}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(n=0;n<i.length;n++)e.indexOf(r=i[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function mn(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Xs(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=Ho(t);if(e){var o=Ho(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(i,a){if(a&&(typeof a=="object"||typeof a=="function"))return a;if(a!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return mn(i)}(this,r)}}function hf(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 i,a,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n!==0)for(;!(c=(i=s.call(o)).done)&&(l.push(i.value),l.length!==n);c=!0);}catch(f){h=!0,a=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw a}}return l}}(t,e)||mf(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 Tn(t){return function(e){if(Array.isArray(e))return $a(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||mf(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 mf(t,e){if(t){if(typeof t=="string")return $a(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)?$a(t,e):void 0}}function $a(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 bf(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var i=o.call(r,"string");if(typeof i!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const Ks=w.createContext(null);var gf=w.createContext(null),yf=function(){return w.useContext(gf)};function fr(t){var e=yf(),r=w.useContext(Ks);ue(r,hw);var n=ww(r,t),o=w.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);w.useEffect(function(){return o.register(),function(){o.cleanup()}},[o]);var i=w.useMemo(function(){return o&&cf(o.connectors)},[o]);return de(de({},n),{},{connectors:i,inContext:!!r,store:r})}var Pw=["actions","query","connectors"];function Ei(t){var e=w.useContext(ff);ue(e,mw);var r=e.id,n=e.related,o=fr(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),i=o.actions,a=o.connectors,s=Ys(o,Pw),u=w.useMemo(function(){return cf({connect:function(c){return a.connect(c,r)},drag:function(c){return a.drag(c,r)}})},[a,r]),l=w.useMemo(function(){return{setProp:function(c,h){h?i.history.throttle(h).setProp(r,c):i.setProp(r,c)},setCustom:function(c,h){h?i.history.throttle(h).setCustom(r,c):i.setCustom(r,c)},setHidden:function(c){return i.setHidden(r,c)}}},[i,r]);return de(de({},s),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:u})}var _w=["id","related","actions","inNodeContext","connectors"];function se(t){var e=Ei(t),r=e.id,n=e.related,o=e.actions,i=e.inNodeContext,a=e.connectors;return de(de({},Ys(e,_w)),{},{actions:o,id:r,related:n,setProp:function(s,u){return zt("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),o.setProp(s,u)},inNodeContext:i,connectors:a})}const kw=({render:t})=>{const{connectors:{connect:e,drag:r}}=se();return typeof t.type=="string"?e(r(w.cloneElement(t))):t},Iw=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=Ei(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(a=>w.createElement(Js,{id:a,key:a}))));const i=w.createElement(t,e,o);return typeof t=="string"?w.createElement(kw,{render:i}):i},[t,e,n,r])},Dw=({render:t})=>{const{hidden:e}=Ei(n=>({hidden:n.data.hidden})),{onRender:r}=fr(n=>({onRender:n.options.onRender}));return e?null:w.createElement(r,{render:t||w.createElement(Iw,null)})},Js=({id:t,render:e})=>w.createElement(pf,{id:t},w.createElement(Dw,{render:e})),Ba={is:"div",canvas:!1,custom:{},hidden:!1},Lw={is:"type",canvas:"isCanvas"};function Ft({id:t,children:e,...r}){const{is:n}={...Ba,...r},{query:o,actions:i}=fr(),{id:a,inNodeContext:s}=Ei(),[u]=w.useState(()=>{ue(!!t,nw);const l=o.node(a).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(Ft,r,e),f=o.parseReactElement(h).toNodeTree();return i.history.ignore().addLinkedNodeFromTree(f,a,t),f.rootNodeId}return null});return u?w.createElement(Js,{id:u}):null}const vf=()=>zt("<Canvas />",{suggest:"<Element canvas={true} />"});function Fa({...t}){return w.useEffect(()=>vf(),[]),w.createElement(Ft,{...t,canvas:!0})}const Mw=()=>{const{timestamp:t}=fr(e=>({timestamp:e.nodes[Nt]&&e.nodes[Nt]._hydrationTimestamp}));return t?w.createElement(Js,{id:Nt,key:t}):null},Zs=({children:t,json:e,data:r})=>{const{actions:n,query:o}=fr();e&&zt("<Frame json={...} />",{suggest:"<Frame data={...} />"});const i=w.useRef(!1);if(!i.current){const a=r||e;if(a)n.history.ignore().deserialize(a);else if(t){const s=w.Children.only(t),u=o.parseReactElement(s).toNodeTree((l,c)=>(c===s&&(l.id=Nt),l));n.history.ignore().addNodeTree(u)}i.current=!0}return w.createElement(Mw,null)};var ec;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(ec||(ec={}));const la=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:o,reset:i,...a}=t;return a};function ht(t){const{connectors:e,actions:r,query:n,store:o,...i}=fr(t),a=la(r);return{connectors:e,actions:w.useMemo(()=>({...a,history:{...a.history,ignore:(...s)=>la(a.history.ignore(...s)),throttle:(...s)=>la(a.history.throttle(...s))}}),[a]),query:n,store:o,...i}}var xf=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=hf(r,2),o=n[0],i=n[1];return de(de({},e),{},we({},o,i))},{})},Ct=function(t,e,r){var n=Array.isArray(e)?e:[e],o=de({existOnly:!1,idOnly:!1},r||{}),i=n.filter(function(a){return!!a}).map(function(a){return typeof a=="string"?{node:t[a],exists:!!t[a]}:La(a)!=="object"||o.idOnly?{node:null,exists:!1}:{node:a,exists:!!t[a.id]}});return o.existOnly&&ue(i.filter(function(a){return!a.exists}).length===0,tf),i},$w=["history"],wr=null,qo=function(t,e){if(typeof e=="string")return e;var r,n=function(o,i){var a=function(s){if(wr&&wr.resolver===s)return wr.reversed;wr={resolver:s,reversed:new Map};for(var u=0,l=Object.entries(s);u<l.length;u++){var c=hf(l[u],2);wr.reversed.set(c[1],c[0])}return wr.reversed}(o).get(i);return a!==void 0?a:null}(t,e);return ue(n,Bo.replace("%node_type%",(r=e).name||r.displayName)),n};const Bw=(t,e)=>typeof t=="string"?t:{resolvedName:qo(e,t)},Ha=(t,e)=>{let{type:r,isCanvas:n,props:o}=t;return o=Object.keys(o).reduce((i,a)=>{const s=o[a];return s==null||typeof s=="function"||(i[a]=a==="children"&&typeof s!="string"?w.Children.map(s,u=>typeof u=="string"?u:Ha(u,e)):typeof s.type=="function"?Ha(s,e):s),i},{}),{type:Bw(r,e),isCanvas:!!n,props:o}},Fw=(t,e)=>{const{type:r,props:n,isCanvas:o,name:i,...a}=t;return{...Ha({type:r,isCanvas:o,props:n},e),...a}};function qa(t,e){ue(typeof e=="string",cw);var r=t.nodes[e],n=function(o){return qa(t,o)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===Nt},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 zt("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 i(a){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[a];return l?(s.push(a),l.data.parent&&(o||!o&&u===0)&&(s=i(l.data.parent,s,u+1)),s):s}(r.data.parent)},descendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0],i=arguments.length>1?arguments[1]:void 0;return function a(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]&&(i!=="childNodes"&&n(s).linkedNodes().forEach(function(c){u.push(c),u=a(c,u,l+1)}),i!=="linkedNodes"&&n(s).childNodes().forEach(function(c){u.push(c),u=a(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 i=r;return ue(!this.isTopLevelNode(),Vl),ue(qa(t,i.data.parent).isCanvas(),Ul),ue(i.rules.canDrag(i,n),lw),!0}catch(a){return o&&o(a),!1}},isDroppable:function(o,i){var a=Ct(t.nodes,o),s=r;try{ue(this.isCanvas(),sw),ue(s.rules.canMoveIn(a.map(function(l){return l.node}),s,n),iw);var u={};return a.forEach(function(l){var c=l.node,h=l.exists;if(ue(c.rules.canDrop(s,c,n),ow),h){ue(!n(c.id).isTopLevelNode(),Vl);var f=n(c.id).descendants(!0);ue(!f.includes(s.id)&&s.id!==c.id,uw);var d=c.data.parent&&t.nodes[c.data.parent];ue(d.data.isCanvas,Ul),ue(d||!d&&!t.nodes[c.id],rw),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];ue(c.rules.canMoveOut(u[l],c,n),aw)}),!0}catch(l){return i&&i(l),!1}},toSerializedNode:function(){return Fw(r.data,t.options.resolver)},toNodeTree:function(o){var i=[e].concat(Tn(this.descendants(!0,o))).reduce(function(a,s){return a[s]=n(s).get(),a},{});return{rootNodeId:e,nodes:i}},decendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return zt("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(o)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function wf(t,e,r,n){for(var o={parent:t,index:0,where:"before"},i=0,a=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,!(a&&d.left>a||s&&l>=s||i&&d.left+d.outerWidth<i))if(o.index=h,d.inFlow){if(n<l){o.where="before";break}o.where="after"}else n<c&&(s=c),r<u?(a=u,o.where="before"):(i=u,o.where="after")}return o}var ao=function(t){return typeof t=="string"?t:t.name};function tc(t,e){var r=t.data.type,n={id:t.id||uf(),_hydrationTimestamp:Date.now(),data:de({type:r,name:ao(r),displayName:ao(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===Ft||n.data.type===Fa){var o=de(de({},Ba),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(s,u){return Object.keys(Ba).includes(u)?n.data[Lw[u]||u]=o[u]:s[u]=n.data.props[u],s},{}),n.data.name=ao(r=n.data.type),n.data.displayName=ao(r),n.data.type===Fa&&(n.data.isCanvas=!0,vf())}e&&e(n);var i=r.craft;if(i){if(n.data.displayName=i.displayName||i.name||n.data.displayName,n.data.props=de(de({},i.props||i.defaultProps||{}),n.data.props),n.data.custom=de(de({},i.custom||{}),n.data.custom),i.isCanvas!=null&&(n.data.isCanvas=i.isCanvas),i.rules&&Object.keys(i.rules).forEach(function(s){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(s)&&(n.rules[s]=i.rules[s])}),i.related){var a={id:n.id,related:!0};Object.keys(i.related).forEach(function(s){n.related[s]=function(u){return w.createElement(pf,a,w.createElement(i.related[s],u))}})}i.info&&(n.info=i.info)}return n}const za=(t,e,r)=>{let{type:n,props:o}=t;const i=((s,u)=>typeof s=="object"&&s.resolvedName?s.resolvedName==="Canvas"?Fa:u[s.resolvedName]:typeof s=="string"?s:null)(n,e);if(!i)return;o=Object.keys(o).reduce((s,u)=>{const l=o[u];return s[u]=l==null?null:typeof l=="object"&&l.resolvedName?za(l,e):u==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:za(c,e)):l,s},{});const a={...w.createElement(i,{...o})};return{...a,name:qo(e,a.type)}},Hw=(t,e)=>{const{type:r,props:n,...o}=t;ue(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,pw.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:i,name:a,props:s}=za(t,e),{parent:u,custom:l,displayName:c,isCanvas:h,nodes:f,hidden:d}=o;return{type:i,name:a,displayName:c||a,props:s,custom:l||{},isCanvas:!!h,hidden:!!d,parent:u,linkedNodes:o.linkedNodes||o._childCanvas||{},nodes:f||[]}},qw=(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,i)=>{const a=i.nodes[i.rootNodeId];return{...o,...i.nodes,[a.id]:{...a,data:{...a.data,parent:t.id}}}},{[t.id]:n})},zw=(t,e)=>({rootNodeId:t.id,nodes:qw(t,e)});function Sf(t){const e=t&&t.options,r=()=>Sf(t);return{getDropPlaceholder:(n,o,i,a=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=wf(u,l?l.reduce((d,m)=>{const g=a(t.nodes[m]);if(g){const b={id:m,...Cn(g)};d.push(b)}return d},[]):[],i.x,i.y),h=l.length&&t.nodes[l[c.index]],f={placement:{...c,currentNode:h},error:null};return Ct(t.nodes,n).forEach(({node:d,exists:m})=>{m&&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=>qa(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(o=>[o,this.node(o).toSerializedNode()]);return xf(n)},getEvent:n=>function(o,i){var a=o.events[i];return{contains:function(s){return a.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(a)},size:function(){return this.all().length},at:function(s){return this.all()[s]},raw:function(){return a}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(o){let i=function(s,u){let l=s;return typeof l=="string"&&(l=w.createElement(w.Fragment,{},l)),tc({data:{type:l.type,props:{...l.props}}},c=>{u&&u(c,l)})}(n,(s,u)=>{const l=qo(t.options.resolver,s.data.type);s.data.displayName=s.data.displayName||l,s.data.name=l,o&&o(s,u)}),a=[];return n.props&&n.props.children&&(a=w.Children.toArray(n.props.children).reduce((s,u)=>(w.isValidElement(u)&&s.push(r().parseReactElement(u).toNodeTree(o)),s),[])),zw(i,a)}}),parseSerializedNode:n=>({toNode(o){const i=Hw(n,t.options.resolver);ue(i.type,Bo);const a=typeof o=="string"&&o;return a&&zt("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...a?{id:a}:{},data:i}).toNode(!a&&o)}}),parseFreshNode:n=>({toNode:o=>tc(n,i=>{i.data.parent===ef&&(i.data.parent=Nt);const a=qo(t.options.resolver,i.data.type);ue(a!==null,Bo),i.data.displayName=i.data.displayName||a,i.data.name=a,o&&o(i)})}),createNode(n,o){zt(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const i=this.parseReactElement(n).toNodeTree(),a=i.nodes[i.rootNodeId];return o&&(o.id&&(a.id=o.id),o.data&&(a.data={...a.data,...o.data})),a},getState:()=>t}}var Uw=function(t){Gs(r,lf);var e=Xs(r);function r(){return wi(this,r),e.apply(this,arguments)}return Si(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,i){}}}}]),r}();(function(t){Gs(r,Ew);var e=Xs(r);function r(){return wi(this,r),e.apply(this,arguments)}return Si(r)})();var rc=function(t){t.preventDefault()},Ua=function(){function t(e,r){wi(this,t),we(this,"store",void 0),we(this,"dragTarget",void 0),we(this,"currentDropTargetId",void 0),we(this,"currentDropTargetCanvasAncestorId",void 0),we(this,"currentIndicator",null),we(this,"currentTargetId",void 0),we(this,"currentTargetChildDimensions",void 0),we(this,"dragError",void 0),we(this,"draggedNodes",void 0),we(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",rc,!1)}return Si(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",rc,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(Nt).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return Ct(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,i){var a=r.store.query.node(i).get().dom;return a&&o.push(de({id:i},Cn(a))),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(i){var a=r.store.query.node(i).get();return a&&a.data.isCanvas?a:a.data.parent?o(a.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(Cn(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 i=wf(o,this.currentTargetChildDimensions,r,n);if(this.isDiff(i)){var a=this.dragError;a||this.store.query.node(o.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){a=l});var s=o.data.nodes[i.index],u=s&&this.store.query.node(s).get();return this.currentIndicator={placement:de(de({},i),{},{currentNode:u}),error:a},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();we(Ua,"BORDER_OFFSET",10);var nc=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,i=e[0].cloneNode(!0);return i.style.position="absolute",i.style.left="-100%",i.style.top="-100%",i.style.width="".concat(n,"px"),i.style.height="".concat(o,"px"),i.style.pointerEvents="none",i.classList.add("drag-shadow"),document.body.appendChild(i),t.dataTransfer.setDragImage(i,0,0),i}var a=document.createElement("div");return a.style.position="absolute",a.style.left="-100%",a.style.top="-100%",a.style.width="100%",a.style.height="100%",a.style.pointerEvents="none",a.classList.add("drag-shadow-container"),e.forEach(function(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"),a.appendChild(d)}),document.body.appendChild(a),t.dataTransfer.setDragImage(a,t.clientX,t.clientY),a},Ef=function(t){Gs(r,Uw);var e=Xs(r);function r(){var n;wi(this,r);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return we(mn(n=e.call.apply(e,[this].concat(i))),"draggedElementShadow",void 0),we(mn(n),"dragTarget",void 0),we(mn(n),"positioner",null),we(mn(n),"currentSelectedElementIds",[]),n}return Si(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,o=this.options.store;return{connect:function(i,a){return o.actions.setDOM(a,i),n.reflect(function(s){s.select(i,a),s.hover(i,a),s.drop(i,a)})},select:function(i,a){var s=n.addCraftEventListener(i,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(a){var h=o.query,f=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||f.includes(a))&&(c=f.filter(function(d){var m=h.node(d).descendants(!0),g=h.node(d).ancestors(!0);return!m.includes(a)&&!g.includes(a)})),c.includes(a)||c.push(a)}o.actions.setNodeEvent("selected",c)}),u=n.addCraftEventListener(i,"click",function(l){l.craft.stopPropagation();var c=o.query.getEvent("selected").all(),h=n.options.isMultiSelectEnabled(l),f=n.currentSelectedElementIds.includes(a),d=Tn(c);h&&f?(d.splice(d.indexOf(a),1),o.actions.setNodeEvent("selected",d)):!h&&c.length>1&&o.actions.setNodeEvent("selected",d=[a]),n.currentSelectedElementIds=d});return function(){s(),u()}},hover:function(i,a){var s=n.addCraftEventListener(i,"mouseover",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",a)}),u=null;return n.options.removeHoverOnMouseleave&&(u=n.addCraftEventListener(i,"mouseleave",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",null)})),function(){s(),u&&u()}},drop:function(i,a){var s=n.addCraftEventListener(i,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(a,l.clientX,l.clientY);c&&o.actions.setIndicator(c)}}),u=n.addCraftEventListener(i,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){u(),s()}},drag:function(i,a){if(!o.query.node(a).isDraggable())return function(){};i.setAttribute("draggable","true");var s=n.addCraftEventListener(i,"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(a)||(f=d?[].concat(Tn(f),[a]):[a],o.actions.setNodeEvent("selected",f)),h.setNodeEvent("dragged",f);var m=f.map(function(g){return c.node(g).get().dom});n.draggedElementShadow=nc(l,m,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:f},n.positioner=new Ua(n.options.store,n.dragTarget)}),u=n.addCraftEventListener(i,"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(){i.setAttribute("draggable","false"),s(),u()}},create:function(i,a,s){i.setAttribute("draggable","true");var u=n.addCraftEventListener(i,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof a=="function"){var f=a();h=w.isValidElement(f)?o.query.parseReactElement(f).toNodeTree():f}else h=o.query.parseReactElement(a).toNodeTree();n.draggedElementShadow=nc(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new Ua(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(i,"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&&jg(s.onCreate)&&s.onCreate(h.tree))})});return function(){i.removeAttribute("draggable"),u(),l()}}}}},{key:"dropElement",value:function(n){var o=this.options.store;if(this.positioner){var i=this.draggedElementShadow,a=this.positioner.getIndicator();this.dragTarget&&a&&!a.error&&n(this.dragTarget,a),i&&(i.parentNode.removeChild(i),this.draggedElementShadow=null),this.dragTarget=null,o.actions.setIndicator(null),o.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function Vw(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,o=0,i=0,a=0,s=0,u=t.where;return r?r.inFlow?(a=r.outerWidth,s=n,o=u==="before"?r.top:r.bottom,i=r.left):(a=n,s=r.outerHeight,o=r.top,i=u==="before"?r.left:r.left+r.outerWidth):e&&(o=e.top+e.padding.top,i=e.left+e.padding.left,a=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,s=n),{top:"".concat(o,"px"),left:"".concat(i,"px"),width:"".concat(a,"px"),height:"".concat(s,"px")}}we(Ef,"forceSingleDragShadow",Ow()&&Aw());const Ww=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=fr(o=>({indicator:o.indicator,indicatorOptions:o.options.indicator,enabled:o.options.enabled})),n=yf();return w.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?w.createElement(Nw,{className:e.className,style:{...Vw(t.placement,Cn(t.placement.parent.dom),t.placement.currentNode&&Cn(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},Gw=({children:t})=>{const e=w.useContext(Ks),r=w.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?w.createElement(gf.Provider,{value:r},w.createElement(Ww,null),t):null},oc={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 Ef({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},Yw={methods:function(t,e){return de(de({},function(r,n){var o=function(s,u,l){if(function f(d,m){var g=s.nodes[d];typeof g.data.type!="string"&&ue(r.options.resolver[g.data.name],Bo.replace("%node_type%","".concat(g.data.type.name))),r.nodes[d]=de(de({},g),{},{data:de(de({},g.data),{},{parent:m})}),g.data.nodes.length>0&&(delete r.nodes[d].data.props.children,g.data.nodes.forEach(function(b){return f(b,g.id)})),Object.values(g.data.linkedNodes).forEach(function(b){return f(b,g.id)})}(s.rootNodeId,u),u||s.rootNodeId!==Nt){var c=i(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)}}},i=function(s){ue(s,tw);var u=r.nodes[s];return ue(u,tf),u},a=function s(u){var l=r.nodes[u],c=r.nodes[l.data.parent];if(l.data.nodes&&Tn(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,m){Object.keys(d.events).forEach(function(g){var b=d.events[g];b&&b.has&&b.has(m)&&(d.events[g]=new Set(Array.from(b).filter(function(y){return m!==y})))})})(r,u),delete r.nodes[u]};return{addLinkedNodeFromTree:function(s,u,l){var c=i(u).data.linkedNodes[l];c&&a(c),o(s,u,{type:"linked",id:l})},add:function(s,u,l){var c=[s];Array.isArray(s)&&(zt("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=s),c.forEach(function(h){o({nodes:we({},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){Ct(r.nodes,s,{existOnly:!0,idOnly:!0}).forEach(function(u){var l=u.node;ue(!n.node(l.id).isTopLevelNode(),dw),a(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===ef&&(h=Nt),[h,n.parseSerializedNode(u[c]).toNode(function(f){return f.id=h})]});this.replaceNodes(xf(l))},move:function(s,u,l){var c=Ct(r.nodes,s,{existOnly:!0}),h=r.nodes[u],f=new Set;c.forEach(function(d,m){var g=d.node,b=g.id,y=g.data.parent;n.node(u).isDroppable([b],function(E){throw new Error(E)}),r.options.onBeforeMoveEnd(g,h,r.nodes[y]);var x=r.nodes[y].data.nodes;f.add(x);var S=x.indexOf(b);x[S]="$$",h.data.nodes.splice(l+m,0,b),r.nodes[b].data.parent=u}),f.forEach(function(d){var m=d.length;Tn(d).reverse().forEach(function(g,b){g==="$$"&&d.splice(m-1-b,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=Ct(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){Ct(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){Ct(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=Ct(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=Ys(this,$w);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)})})}},Xw=(t,e)=>yw(Yw,{...oc,options:{...oc.options,...t}},Sf,e),Va=({children:t,...e})=>{e.resolver!==void 0&&ue(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,fw);const r=v.useRef(e),n=Xw(r.current,(o,i,a,s,u)=>{if(!a)return;const{patches:l,...c}=a;for(let h=0;h<l.length;h++){const{path:f}=l[h],d=f.length>2&&f[0]==="nodes"&&f[2]==="data";if([be.IGNORE,be.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||d){u(m=>{o.options.normalizeNodes&&o.options.normalizeNodes(m,i,c,s)});break}}});return v.useEffect(()=>{n&&e.enabled!==void 0&&n.query.getOptions().enabled!==e.enabled&&n.actions.setOptions(o=>{o.enabled=e.enabled})},[n,e.enabled]),v.useEffect(()=>{n.subscribe(o=>({json:n.query.serialize()}),()=>{n.query.getOptions().onNodesChange(n.query)})},[n]),n?v.createElement(Ks.Provider,{value:n},v.createElement(Gw,null,t)):null},Cf=w.createContext("desktop"),zo=({value:t,children:e})=>p.jsx(Cf.Provider,{value:t,children:e}),Ae=()=>w.useContext(Cf),qe=["mobile","tablet","small","desktop"],Tt=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=qe.indexOf(e);for(let o=n;o<qe.length;o++){const i=qe[o];if(t[i]!==void 0&&t[i]!==null)return t[i]}for(let o=n-1;o>=0;o--){const i=qe[o];if(t[i]!==void 0&&t[i]!==null)return t[i]}return r};function fe(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 pr(t,e=[]){let r=[];function n(i,a){const s=v.createContext(a),u=r.length;r=[...r,a];const l=h=>{var y;const{scope:f,children:d,...m}=h,g=((y=f==null?void 0:f[t])==null?void 0:y[u])||s,b=v.useMemo(()=>m,Object.values(m));return p.jsx(g.Provider,{value:b,children:d})};l.displayName=i+"Provider";function c(h,f){var g;const d=((g=f==null?void 0:f[t])==null?void 0:g[u])||s,m=v.useContext(d);if(m)return m;if(a!==void 0)return a;throw new Error(`\`${h}\` must be used within \`${i}\``)}return[l,c]}const o=()=>{const i=r.map(a=>v.createContext(a));return function(s){const u=(s==null?void 0:s[t])||i;return v.useMemo(()=>({[`__scope${t}`]:{...s,[t]:u}}),[s,u])}};return o.scopeName=t,[n,Kw(o,...e)]}function Kw(...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(i){const a=n.reduce((s,{useScope:u,scopeName:l})=>{const h=u(i)[`__scope${l}`];return{...s,...h}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:a}),[a])}};return r.scopeName=e.scopeName,r}function Jw(t){const e=Zw(t),r=v.forwardRef((n,o)=>{const{children:i,...a}=n,s=v.Children.toArray(i),u=s.find(e3);if(u){const l=u.props.children,c=s.map(h=>h===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:o,children:i})});return r.displayName=`${t}.Slot`,r}function Zw(t){const e=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const a=r3(o),s=t3(i,o.props);return o.type!==v.Fragment&&(s.ref=n?ci(n,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Qw=Symbol("radix.slottable");function e3(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Qw}function t3(t,e){const r={...e};for(const n in e){const o=t[n],i=e[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...t,...r}}function r3(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 n3=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],ve=n3.reduce((t,e)=>{const r=Jw(`Primitive.${e}`),n=v.forwardRef((o,i)=>{const{asChild:a,...s}=o,u=a?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...s,ref:i})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function o3(t,e){t&&xd.flushSync(()=>t.dispatchEvent(e))}function ze(t){const e=v.useRef(t);return v.useEffect(()=>{e.current=t}),v.useMemo(()=>(...r)=>{var n;return(n=e.current)==null?void 0:n.call(e,...r)},[])}function i3(t,e=globalThis==null?void 0:globalThis.document){const r=ze(t);v.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 a3="DismissableLayer",Wa="dismissableLayer.update",s3="dismissableLayer.pointerDownOutside",u3="dismissableLayer.focusOutside",ic,Tf=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Nf=v.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:i,onInteractOutside:a,onDismiss:s,...u}=t,l=v.useContext(Tf),[c,h]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=v.useState({}),m=Te(e,_=>h(_)),g=Array.from(l.layers),[b]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(b),x=c?g.indexOf(c):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=y,A=d3(_=>{const I=_.target,M=[...l.branches].some(B=>B.contains(I));!E||M||(o==null||o(_),a==null||a(_),_.defaultPrevented||s==null||s())},f),R=f3(_=>{const I=_.target;[...l.branches].some(B=>B.contains(I))||(i==null||i(_),a==null||a(_),_.defaultPrevented||s==null||s())},f);return i3(_=>{x===l.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},f),v.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(ic=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),ac(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=ic)}},[c,f,r,l]),v.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),ac())},[c,l]),v.useEffect(()=>{const _=()=>d({});return document.addEventListener(Wa,_),()=>document.removeEventListener(Wa,_)},[]),p.jsx(ve.div,{...u,ref:m,style:{pointerEvents:S?E?"auto":"none":void 0,...t.style},onFocusCapture:fe(t.onFocusCapture,R.onFocusCapture),onBlurCapture:fe(t.onBlurCapture,R.onBlurCapture),onPointerDownCapture:fe(t.onPointerDownCapture,A.onPointerDownCapture)})});Nf.displayName=a3;var l3="DismissableLayerBranch",c3=v.forwardRef((t,e)=>{const r=v.useContext(Tf),n=v.useRef(null),o=Te(e,n);return v.useEffect(()=>{const i=n.current;if(i)return r.branches.add(i),()=>{r.branches.delete(i)}},[r.branches]),p.jsx(ve.div,{...t,ref:o})});c3.displayName=l3;function d3(t,e=globalThis==null?void 0:globalThis.document){const r=ze(t),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const i=s=>{if(s.target&&!n.current){let u=function(){Af(s3,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},a=window.setTimeout(()=>{e.addEventListener("pointerdown",i)},0);return()=>{window.clearTimeout(a),e.removeEventListener("pointerdown",i),e.removeEventListener("click",o.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function f3(t,e=globalThis==null?void 0:globalThis.document){const r=ze(t),n=v.useRef(!1);return v.useEffect(()=>{const o=i=>{i.target&&!n.current&&Af(u3,r,{originalEvent:i},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ac(){const t=new CustomEvent(Wa);document.dispatchEvent(t)}function Af(t,e,r,{discrete:n}){const o=r.originalEvent.target,i=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&o.addEventListener(t,e,{once:!0}),n?o3(o,i):o.dispatchEvent(i)}var Ut=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},p3=v[" useId ".trim().toString()]||(()=>{}),h3=0;function Of(t){const[e,r]=v.useState(p3());return Ut(()=>{r(n=>n??String(h3++))},[t]),e?`radix-${e}`:""}const m3=["top","right","bottom","left"],Vt=Math.min,Le=Math.max,Uo=Math.round,so=Math.floor,st=t=>({x:t,y:t}),b3={left:"right",right:"left",bottom:"top",top:"bottom"},g3={start:"end",end:"start"};function Ga(t,e,r){return Le(t,Vt(e,r))}function Ot(t,e){return typeof t=="function"?t(e):t}function jt(t){return t.split("-")[0]}function Jr(t){return t.split("-")[1]}function Qs(t){return t==="x"?"y":"x"}function eu(t){return t==="y"?"height":"width"}const y3=new Set(["top","bottom"]);function it(t){return y3.has(jt(t))?"y":"x"}function tu(t){return Qs(it(t))}function v3(t,e,r){r===void 0&&(r=!1);const n=Jr(t),o=tu(t),i=eu(o);let a=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[i]>e.floating[i]&&(a=Vo(a)),[a,Vo(a)]}function x3(t){const e=Vo(t);return[Ya(t),e,Ya(e)]}function Ya(t){return t.replace(/start|end/g,e=>g3[e])}const sc=["left","right"],uc=["right","left"],w3=["top","bottom"],S3=["bottom","top"];function E3(t,e,r){switch(t){case"top":case"bottom":return r?e?uc:sc:e?sc:uc;case"left":case"right":return e?w3:S3;default:return[]}}function C3(t,e,r,n){const o=Jr(t);let i=E3(jt(t),r==="start",n);return o&&(i=i.map(a=>a+"-"+o),e&&(i=i.concat(i.map(Ya)))),i}function Vo(t){return t.replace(/left|right|bottom|top/g,e=>b3[e])}function T3(t){return{top:0,right:0,bottom:0,left:0,...t}}function jf(t){return typeof t!="number"?T3(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 lc(t,e,r){let{reference:n,floating:o}=t;const i=it(e),a=tu(e),s=eu(a),u=jt(e),l=i==="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(Jr(e)){case"start":d[a]-=f*(r&&l?-1:1);break;case"end":d[a]+=f*(r&&l?-1:1);break}return d}const N3=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),u=await(a.isRTL==null?void 0:a.isRTL(e));let l=await a.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:h}=lc(l,n,u),f=n,d={},m=0;for(let g=0;g<s.length;g++){const{name:b,fn:y}=s[g],{x,y:S,data:E,reset:A}=await y({x:c,y:h,initialPlacement:n,placement:f,strategy:o,middlewareData:d,rects:l,platform:a,elements:{reference:t,floating:e}});c=x??c,h=S??h,d={...d,[b]:{...d[b],...E}},A&&m<=50&&(m++,typeof A=="object"&&(A.placement&&(f=A.placement),A.rects&&(l=A.rects===!0?await a.getElementRects({reference:t,floating:e,strategy:o}):A.rects),{x:c,y:h}=lc(l,f,u)),g=-1)}return{x:c,y:h,placement:f,strategy:o,middlewareData:d}};async function Nn(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:u}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=Ot(e,t),m=jf(d),b=s[f?h==="floating"?"reference":"floating":h],y=Wo(await i.getClippingRect({element:(r=await(i.isElement==null?void 0:i.isElement(b)))==null||r?b:b.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),x=h==="floating"?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,S=await(i.getOffsetParent==null?void 0:i.getOffsetParent(s.floating)),E=await(i.isElement==null?void 0:i.isElement(S))?await(i.getScale==null?void 0:i.getScale(S))||{x:1,y:1}:{x:1,y:1},A=Wo(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:u}):x);return{top:(y.top-A.top+m.top)/E.y,bottom:(A.bottom-y.bottom+m.bottom)/E.y,left:(y.left-A.left+m.left)/E.x,right:(A.right-y.right+m.right)/E.x}}const A3=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:u}=e,{element:l,padding:c=0}=Ot(t,e)||{};if(l==null)return{};const h=jf(c),f={x:r,y:n},d=tu(o),m=eu(d),g=await a.getDimensions(l),b=d==="y",y=b?"top":"left",x=b?"bottom":"right",S=b?"clientHeight":"clientWidth",E=i.reference[m]+i.reference[d]-f[d]-i.floating[m],A=f[d]-i.reference[d],R=await(a.getOffsetParent==null?void 0:a.getOffsetParent(l));let _=R?R[S]:0;(!_||!await(a.isElement==null?void 0:a.isElement(R)))&&(_=s.floating[S]||i.floating[m]);const I=E/2-A/2,M=_/2-g[m]/2-1,B=Vt(h[y],M),C=Vt(h[x],M),T=B,k=_-g[m]-C,L=_/2-g[m]/2+I,N=Ga(T,L,k),O=!u.arrow&&Jr(o)!=null&&L!==N&&i.reference[m]/2-(L<T?B:C)-g[m]/2<0,P=O?L<T?L-T:L-k:0;return{[d]:f[d]+P,data:{[d]:N,centerOffset:L-N-P,...O&&{alignmentOffset:P}},reset:O}}}),O3=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:u,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:g=!0,...b}=Ot(t,e);if((r=i.arrow)!=null&&r.alignmentOffset)return{};const y=jt(o),x=it(s),S=jt(s)===s,E=await(u.isRTL==null?void 0:u.isRTL(l.floating)),A=f||(S||!g?[Vo(s)]:x3(s)),R=m!=="none";!f&&R&&A.push(...C3(s,g,m,E));const _=[s,...A],I=await Nn(e,b),M=[];let B=((n=i.flip)==null?void 0:n.overflows)||[];if(c&&M.push(I[y]),h){const L=v3(o,a,E);M.push(I[L[0]],I[L[1]])}if(B=[...B,{placement:o,overflows:M}],!M.every(L=>L<=0)){var C,T;const L=(((C=i.flip)==null?void 0:C.index)||0)+1,N=_[L];if(N&&(!(h==="alignment"?x!==it(N):!1)||B.every(D=>it(D.placement)===x?D.overflows[0]>0:!0)))return{data:{index:L,overflows:B},reset:{placement:N}};let O=(T=B.filter(P=>P.overflows[0]<=0).sort((P,D)=>P.overflows[1]-D.overflows[1])[0])==null?void 0:T.placement;if(!O)switch(d){case"bestFit":{var k;const P=(k=B.filter(D=>{if(R){const $=it(D.placement);return $===x||$==="y"}return!0}).map(D=>[D.placement,D.overflows.filter($=>$>0).reduce(($,z)=>$+z,0)]).sort((D,$)=>D[1]-$[1])[0])==null?void 0:k[0];P&&(O=P);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function cc(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function dc(t){return m3.some(e=>t[e]>=0)}const j3=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...o}=Ot(t,e);switch(n){case"referenceHidden":{const i=await Nn(e,{...o,elementContext:"reference"}),a=cc(i,r.reference);return{data:{referenceHiddenOffsets:a,referenceHidden:dc(a)}}}case"escaped":{const i=await Nn(e,{...o,altBoundary:!0}),a=cc(i,r.floating);return{data:{escapedOffsets:a,escaped:dc(a)}}}default:return{}}}}},Rf=new Set(["left","top"]);async function R3(t,e){const{placement:r,platform:n,elements:o}=t,i=await(n.isRTL==null?void 0:n.isRTL(o.floating)),a=jt(r),s=Jr(r),u=it(r)==="y",l=Rf.has(a)?-1:1,c=i&&u?-1:1,h=Ot(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:m}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof m=="number"&&(d=s==="end"?m*-1:m),u?{x:d*c,y:f*l}:{x:f*l,y:d*c}}const P3=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=e,u=await R3(e,t);return a===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:i+u.y,data:{...u,placement:a}}}}},_3=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:b=>{let{x:y,y:x}=b;return{x:y,y:x}}},...u}=Ot(t,e),l={x:r,y:n},c=await Nn(e,u),h=it(jt(o)),f=Qs(h);let d=l[f],m=l[h];if(i){const b=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=d+c[b],S=d-c[y];d=Ga(x,d,S)}if(a){const b=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=m+c[b],S=m-c[y];m=Ga(x,m,S)}const g=s.fn({...e,[f]:d,[h]:m});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[f]:i,[h]:a}}}}}},k3=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:o,rects:i,middlewareData:a}=e,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=Ot(t,e),c={x:r,y:n},h=it(o),f=Qs(h);let d=c[f],m=c[h];const g=Ot(s,e),b=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const S=f==="y"?"height":"width",E=i.reference[f]-i.floating[S]+b.mainAxis,A=i.reference[f]+i.reference[S]-b.mainAxis;d<E?d=E:d>A&&(d=A)}if(l){var y,x;const S=f==="y"?"width":"height",E=Rf.has(jt(o)),A=i.reference[h]-i.floating[S]+(E&&((y=a.offset)==null?void 0:y[h])||0)+(E?0:b.crossAxis),R=i.reference[h]+i.reference[S]+(E?0:((x=a.offset)==null?void 0:x[h])||0)-(E?b.crossAxis:0);m<A?m=A:m>R&&(m=R)}return{[f]:d,[h]:m}}}},I3=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:o,rects:i,platform:a,elements:s}=e,{apply:u=()=>{},...l}=Ot(t,e),c=await Nn(e,l),h=jt(o),f=Jr(o),d=it(o)==="y",{width:m,height:g}=i.floating;let b,y;h==="top"||h==="bottom"?(b=h,y=f===(await(a.isRTL==null?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(y=h,b=f==="end"?"top":"bottom");const x=g-c.top-c.bottom,S=m-c.left-c.right,E=Vt(g-c[b],x),A=Vt(m-c[y],S),R=!e.middlewareData.shift;let _=E,I=A;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(I=S),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=x),R&&!f){const B=Le(c.left,0),C=Le(c.right,0),T=Le(c.top,0),k=Le(c.bottom,0);d?I=m-2*(B!==0||C!==0?B+C:Le(c.left,c.right)):_=g-2*(T!==0||k!==0?T+k:Le(c.top,c.bottom))}await u({...e,availableWidth:I,availableHeight:_});const M=await a.getDimensions(s.floating);return m!==M.width||g!==M.height?{reset:{rects:!0}}:{}}}};function Ci(){return typeof window<"u"}function Zr(t){return Pf(t)?(t.nodeName||"").toLowerCase():"#document"}function Me(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function mt(t){var e;return(e=(Pf(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Pf(t){return Ci()?t instanceof Node||t instanceof Me(t).Node:!1}function Je(t){return Ci()?t instanceof Element||t instanceof Me(t).Element:!1}function ft(t){return Ci()?t instanceof HTMLElement||t instanceof Me(t).HTMLElement:!1}function fc(t){return!Ci()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Me(t).ShadowRoot}const D3=new Set(["inline","contents"]);function Fn(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=Ze(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!D3.has(o)}const L3=new Set(["table","td","th"]);function M3(t){return L3.has(Zr(t))}const $3=[":popover-open",":modal"];function Ti(t){return $3.some(e=>{try{return t.matches(e)}catch{return!1}})}const B3=["transform","translate","scale","rotate","perspective"],F3=["transform","translate","scale","rotate","perspective","filter"],H3=["paint","layout","strict","content"];function ru(t){const e=nu(),r=Je(t)?Ze(t):t;return B3.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)||F3.some(n=>(r.willChange||"").includes(n))||H3.some(n=>(r.contain||"").includes(n))}function q3(t){let e=Wt(t);for(;ft(e)&&!_r(e);){if(ru(e))return e;if(Ti(e))return null;e=Wt(e)}return null}function nu(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const z3=new Set(["html","body","#document"]);function _r(t){return z3.has(Zr(t))}function Ze(t){return Me(t).getComputedStyle(t)}function Ni(t){return Je(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Wt(t){if(Zr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||fc(t)&&t.host||mt(t);return fc(e)?e.host:e}function _f(t){const e=Wt(t);return _r(e)?t.ownerDocument?t.ownerDocument.body:t.body:ft(e)&&Fn(e)?e:_f(e)}function An(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=_f(t),i=o===((n=t.ownerDocument)==null?void 0:n.body),a=Me(o);if(i){const s=Xa(a);return e.concat(a,a.visualViewport||[],Fn(o)?o:[],s&&r?An(s):[])}return e.concat(o,An(o,[],r))}function Xa(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function kf(t){const e=Ze(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=ft(t),i=o?t.offsetWidth:r,a=o?t.offsetHeight:n,s=Uo(r)!==i||Uo(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function ou(t){return Je(t)?t:t.contextElement}function Or(t){const e=ou(t);if(!ft(e))return st(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:i}=kf(e);let a=(i?Uo(r.width):r.width)/n,s=(i?Uo(r.height):r.height)/o;return(!a||!Number.isFinite(a))&&(a=1),(!s||!Number.isFinite(s))&&(s=1),{x:a,y:s}}const U3=st(0);function If(t){const e=Me(t);return!nu()||!e.visualViewport?U3:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function V3(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Me(t)?!1:e}function ar(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),i=ou(t);let a=st(1);e&&(n?Je(n)&&(a=Or(n)):a=Or(t));const s=V3(i,r,n)?If(i):st(0);let u=(o.left+s.x)/a.x,l=(o.top+s.y)/a.y,c=o.width/a.x,h=o.height/a.y;if(i){const f=Me(i),d=n&&Je(n)?Me(n):n;let m=f,g=Xa(m);for(;g&&n&&d!==m;){const b=Or(g),y=g.getBoundingClientRect(),x=Ze(g),S=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*b.x,E=y.top+(g.clientTop+parseFloat(x.paddingTop))*b.y;u*=b.x,l*=b.y,c*=b.x,h*=b.y,u+=S,l+=E,m=Me(g),g=Xa(m)}}return Wo({width:c,height:h,x:u,y:l})}function Ai(t,e){const r=Ni(t).scrollLeft;return e?e.left+r:ar(mt(t)).left+r}function Df(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-Ai(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function W3(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const i=o==="fixed",a=mt(n),s=e?Ti(e.floating):!1;if(n===a||s&&i)return r;let u={scrollLeft:0,scrollTop:0},l=st(1);const c=st(0),h=ft(n);if((h||!h&&!i)&&((Zr(n)!=="body"||Fn(a))&&(u=Ni(n)),ft(n))){const d=ar(n);l=Or(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=a&&!h&&!i?Df(a,u):st(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 G3(t){return Array.from(t.getClientRects())}function Y3(t){const e=mt(t),r=Ni(t),n=t.ownerDocument.body,o=Le(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),i=Le(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Ai(t);const s=-r.scrollTop;return Ze(n).direction==="rtl"&&(a+=Le(e.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}const pc=25;function X3(t,e){const r=Me(t),n=mt(t),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,u=0;if(o){i=o.width,a=o.height;const c=nu();(!c||c&&e==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=Ai(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,m=Math.abs(n.clientWidth-h.clientWidth-d);m<=pc&&(i-=m)}else l<=pc&&(i+=l);return{width:i,height:a,x:s,y:u}}const K3=new Set(["absolute","fixed"]);function J3(t,e){const r=ar(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,i=ft(t)?Or(t):st(1),a=t.clientWidth*i.x,s=t.clientHeight*i.y,u=o*i.x,l=n*i.y;return{width:a,height:s,x:u,y:l}}function hc(t,e,r){let n;if(e==="viewport")n=X3(t,r);else if(e==="document")n=Y3(mt(t));else if(Je(e))n=J3(e,r);else{const o=If(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Wo(n)}function Lf(t,e){const r=Wt(t);return r===e||!Je(r)||_r(r)?!1:Ze(r).position==="fixed"||Lf(r,e)}function Z3(t,e){const r=e.get(t);if(r)return r;let n=An(t,[],!1).filter(s=>Je(s)&&Zr(s)!=="body"),o=null;const i=Ze(t).position==="fixed";let a=i?Wt(t):t;for(;Je(a)&&!_r(a);){const s=Ze(a),u=ru(a);!u&&s.position==="fixed"&&(o=null),(i?!u&&!o:!u&&s.position==="static"&&!!o&&K3.has(o.position)||Fn(a)&&!u&&Lf(t,a))?n=n.filter(c=>c!==a):o=s,a=Wt(a)}return e.set(t,n),n}function Q3(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const a=[...r==="clippingAncestors"?Ti(e)?[]:Z3(e,this._c):[].concat(r),n],s=a[0],u=a.reduce((l,c)=>{const h=hc(e,c,o);return l.top=Le(h.top,l.top),l.right=Vt(h.right,l.right),l.bottom=Vt(h.bottom,l.bottom),l.left=Le(h.left,l.left),l},hc(e,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function e6(t){const{width:e,height:r}=kf(t);return{width:e,height:r}}function t6(t,e,r){const n=ft(e),o=mt(e),i=r==="fixed",a=ar(t,!0,i,e);let s={scrollLeft:0,scrollTop:0};const u=st(0);function l(){u.x=Ai(o)}if(n||!n&&!i)if((Zr(e)!=="body"||Fn(o))&&(s=Ni(e)),n){const d=ar(e,!0,i,e);u.x=d.x+e.clientLeft,u.y=d.y+e.clientTop}else o&&l();i&&!n&&o&&l();const c=o&&!n&&!i?Df(o,s):st(0),h=a.left+s.scrollLeft-u.x-c.x,f=a.top+s.scrollTop-u.y-c.y;return{x:h,y:f,width:a.width,height:a.height}}function ca(t){return Ze(t).position==="static"}function mc(t,e){if(!ft(t)||Ze(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return mt(t)===r&&(r=r.ownerDocument.body),r}function Mf(t,e){const r=Me(t);if(Ti(t))return r;if(!ft(t)){let o=Wt(t);for(;o&&!_r(o);){if(Je(o)&&!ca(o))return o;o=Wt(o)}return r}let n=mc(t,e);for(;n&&M3(n)&&ca(n);)n=mc(n,e);return n&&_r(n)&&ca(n)&&!ru(n)?r:n||q3(t)||r}const r6=async function(t){const e=this.getOffsetParent||Mf,r=this.getDimensions,n=await r(t.floating);return{reference:t6(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function n6(t){return Ze(t).direction==="rtl"}const o6={convertOffsetParentRelativeRectToViewportRelativeRect:W3,getDocumentElement:mt,getClippingRect:Q3,getOffsetParent:Mf,getElementRects:r6,getClientRects:G3,getDimensions:e6,getScale:Or,isElement:Je,isRTL:n6};function $f(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function i6(t,e){let r=null,n;const o=mt(t);function i(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function a(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),i();const l=t.getBoundingClientRect(),{left:c,top:h,width:f,height:d}=l;if(s||e(),!f||!d)return;const m=so(h),g=so(o.clientWidth-(c+f)),b=so(o.clientHeight-(h+d)),y=so(c),S={rootMargin:-m+"px "+-g+"px "+-b+"px "+-y+"px",threshold:Le(0,Vt(1,u))||1};let E=!0;function A(R){const _=R[0].intersectionRatio;if(_!==u){if(!E)return a();_?a(!1,_):n=setTimeout(()=>{a(!1,1e-7)},1e3)}_===1&&!$f(l,t.getBoundingClientRect())&&a(),E=!1}try{r=new IntersectionObserver(A,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(A,S)}r.observe(t)}return a(!0),i}function a6(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=ou(t),c=o||i?[...l?An(l):[],...An(e)]:[];c.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),i&&y.addEventListener("resize",r)});const h=l&&s?i6(l,r):null;let f=-1,d=null;a&&(d=new ResizeObserver(y=>{let[x]=y;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 m,g=u?ar(t):null;u&&b();function b(){const y=ar(t);g&&!$f(g,y)&&r(),g=y,m=requestAnimationFrame(b)}return r(),()=>{var y;c.forEach(x=>{o&&x.removeEventListener("scroll",r),i&&x.removeEventListener("resize",r)}),h==null||h(),(y=d)==null||y.disconnect(),d=null,u&&cancelAnimationFrame(m)}}const s6=P3,u6=_3,l6=O3,c6=I3,d6=j3,bc=A3,f6=k3,p6=(t,e,r)=>{const n=new Map,o={platform:o6,...r},i={...o.platform,_c:n};return N3(t,e,{...o,platform:i})};var h6=typeof document<"u",m6=function(){},Eo=h6?w.useLayoutEffect:m6;function Go(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(!Go(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 i=o[n];if(!(i==="_owner"&&t.$$typeof)&&!Go(t[i],e[i]))return!1}return!0}return t!==t&&e!==e}function Bf(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function gc(t,e){const r=Bf(t);return Math.round(e*r)/r}function da(t){const e=v.useRef(t);return Eo(()=>{e.current=t}),e}function b6(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:u,open:l}=t,[c,h]=v.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,d]=v.useState(n);Go(f,n)||d(n);const[m,g]=v.useState(null),[b,y]=v.useState(null),x=v.useCallback(D=>{D!==R.current&&(R.current=D,g(D))},[]),S=v.useCallback(D=>{D!==_.current&&(_.current=D,y(D))},[]),E=i||m,A=a||b,R=v.useRef(null),_=v.useRef(null),I=v.useRef(c),M=u!=null,B=da(u),C=da(o),T=da(l),k=v.useCallback(()=>{if(!R.current||!_.current)return;const D={placement:e,strategy:r,middleware:f};C.current&&(D.platform=C.current),p6(R.current,_.current,D).then($=>{const z={...$,isPositioned:T.current!==!1};L.current&&!Go(I.current,z)&&(I.current=z,xd.flushSync(()=>{h(z)}))})},[f,e,r,C,T]);Eo(()=>{l===!1&&I.current.isPositioned&&(I.current.isPositioned=!1,h(D=>({...D,isPositioned:!1})))},[l]);const L=v.useRef(!1);Eo(()=>(L.current=!0,()=>{L.current=!1}),[]),Eo(()=>{if(E&&(R.current=E),A&&(_.current=A),E&&A){if(B.current)return B.current(E,A,k);k()}},[E,A,k,B,M]);const N=v.useMemo(()=>({reference:R,floating:_,setReference:x,setFloating:S}),[x,S]),O=v.useMemo(()=>({reference:E,floating:A}),[E,A]),P=v.useMemo(()=>{const D={position:r,left:0,top:0};if(!O.floating)return D;const $=gc(O.floating,c.x),z=gc(O.floating,c.y);return s?{...D,transform:"translate("+$+"px, "+z+"px)",...Bf(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:$,top:z}},[r,s,O.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:k,refs:N,elements:O,floatingStyles:P}),[c,k,N,O,P])}const g6=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?bc({element:n.current,padding:o}).fn(r):{}:n?bc({element:n,padding:o}).fn(r):{}}}},y6=(t,e)=>({...s6(t),options:[t,e]}),v6=(t,e)=>({...u6(t),options:[t,e]}),x6=(t,e)=>({...f6(t),options:[t,e]}),w6=(t,e)=>({...l6(t),options:[t,e]}),S6=(t,e)=>({...c6(t),options:[t,e]}),E6=(t,e)=>({...d6(t),options:[t,e]}),C6=(t,e)=>({...g6(t),options:[t,e]});var T6="Arrow",Ff=v.forwardRef((t,e)=>{const{children:r,width:n=10,height:o=5,...i}=t;return p.jsx(ve.svg,{...i,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"})})});Ff.displayName=T6;var N6=Ff;function Hf(t){const[e,r]=v.useState(void 0);return Ut(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const i=o[0];let a,s;if("borderBoxSize"in i){const u=i.borderBoxSize,l=Array.isArray(u)?u[0]:u;a=l.inlineSize,s=l.blockSize}else a=t.offsetWidth,s=t.offsetHeight;r({width:a,height:s})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var iu="Popper",[qf,zf]=pr(iu),[A6,Uf]=qf(iu),Vf=t=>{const{__scopePopper:e,children:r}=t,[n,o]=v.useState(null);return p.jsx(A6,{scope:e,anchor:n,onAnchorChange:o,children:r})};Vf.displayName=iu;var Wf="PopperAnchor",Gf=v.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,i=Uf(Wf,r),a=v.useRef(null),s=Te(e,a),u=v.useRef(null);return v.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||a.current,l!==u.current&&i.onAnchorChange(u.current)}),n?null:p.jsx(ve.div,{...o,ref:s})});Gf.displayName=Wf;var au="PopperContent",[O6,j6]=qf(au),Yf=v.forwardRef((t,e)=>{var q,Re,Ee,xe,tt,yt;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:i="center",alignOffset:a=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:m,...g}=t,b=Uf(au,r),[y,x]=v.useState(null),S=Te(e,rt=>x(rt)),[E,A]=v.useState(null),R=Hf(E),_=(R==null?void 0:R.width)??0,I=(R==null?void 0:R.height)??0,M=n+(i!=="center"?"-"+i:""),B=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},C=Array.isArray(l)?l:[l],T=C.length>0,k={padding:B,boundary:C.filter(P6),altBoundary:T},{refs:L,floatingStyles:N,placement:O,isPositioned:P,middlewareData:D}=b6({strategy:"fixed",placement:M,whileElementsMounted:(...rt)=>a6(...rt,{animationFrame:d==="always"}),elements:{reference:b.anchor},middleware:[y6({mainAxis:o+I,alignmentAxis:a}),u&&v6({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?x6():void 0,...k}),u&&w6({...k}),S6({...k,apply:({elements:rt,rects:eo,availableWidth:Xi,availableHeight:to})=>{const{width:Ki,height:nn}=eo.reference,gr=rt.floating.style;gr.setProperty("--radix-popper-available-width",`${Xi}px`),gr.setProperty("--radix-popper-available-height",`${to}px`),gr.setProperty("--radix-popper-anchor-width",`${Ki}px`),gr.setProperty("--radix-popper-anchor-height",`${nn}px`)}}),E&&C6({element:E,padding:s}),_6({arrowWidth:_,arrowHeight:I}),f&&E6({strategy:"referenceHidden",...k})]}),[$,z]=Jf(O),re=ze(m);Ut(()=>{P&&(re==null||re())},[P,re]);const Z=(q=D.arrow)==null?void 0:q.x,H=(Re=D.arrow)==null?void 0:Re.y,F=((Ee=D.arrow)==null?void 0:Ee.centerOffset)!==0,[he,J]=v.useState();return Ut(()=>{y&&J(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:L.setFloating,"data-radix-popper-content-wrapper":"",style:{...N,transform:P?N.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(xe=D.transformOrigin)==null?void 0:xe.x,(tt=D.transformOrigin)==null?void 0:tt.y].join(" "),...((yt=D.hide)==null?void 0:yt.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(O6,{scope:r,placedSide:$,onArrowChange:A,arrowX:Z,arrowY:H,shouldHideArrow:F,children:p.jsx(ve.div,{"data-side":$,"data-align":z,...g,ref:S,style:{...g.style,animation:P?void 0:"none"}})})})});Yf.displayName=au;var Xf="PopperArrow",R6={top:"bottom",right:"left",bottom:"top",left:"right"},Kf=v.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,i=j6(Xf,n),a=R6[i.placedSide];return p.jsx("span",{ref:i.onArrowChange,style:{position:"absolute",left:i.arrowX,top:i.arrowY,[a]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[i.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[i.placedSide],visibility:i.shouldHideArrow?"hidden":void 0},children:p.jsx(N6,{...o,ref:r,style:{...o.style,display:"block"}})})});Kf.displayName=Xf;function P6(t){return t!==null}var _6=t=>({name:"transformOrigin",options:t,fn(e){var b,y,x;const{placement:r,rects:n,middlewareData:o}=e,a=((b=o.arrow)==null?void 0:b.centerOffset)!==0,s=a?0:t.arrowWidth,u=a?0:t.arrowHeight,[l,c]=Jf(r),h={start:"0%",center:"50%",end:"100%"}[c],f=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,d=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let m="",g="";return l==="bottom"?(m=a?h:`${f}px`,g=`${-u}px`):l==="top"?(m=a?h:`${f}px`,g=`${n.floating.height+u}px`):l==="right"?(m=`${-u}px`,g=a?h:`${d}px`):l==="left"&&(m=`${n.floating.width+u}px`,g=a?h:`${d}px`),{data:{x:m,y:g}}}});function Jf(t){const[e,r="center"]=t.split("-");return[e,r]}var k6=Vf,I6=Gf,D6=Yf,L6=Kf;function M6(t,e){return v.useReducer((r,n)=>e[r][n]??r,t)}var hr=t=>{const{present:e,children:r}=t,n=$6(e),o=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),i=Te(n.ref,B6(o));return typeof r=="function"||n.isPresent?v.cloneElement(o,{ref:i}):null};hr.displayName="Presence";function $6(t){const[e,r]=v.useState(),n=v.useRef(null),o=v.useRef(t),i=v.useRef("none"),a=t?"mounted":"unmounted",[s,u]=M6(a,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=uo(n.current);i.current=s==="mounted"?l:"none"},[s]),Ut(()=>{const l=n.current,c=o.current;if(c!==t){const f=i.current,d=uo(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]),Ut(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=d=>{const g=uo(n.current).includes(CSS.escape(d.animationName));if(d.target===e&&g&&(u("ANIMATION_END"),!o.current)){const b=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=b)})}},f=d=>{d.target===e&&(i.current=uo(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:v.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function uo(t){return(t==null?void 0:t.animationName)||"none"}function B6(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 F6=Symbol("radix.slottable");function H6(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=F6,e}var q6=v[" useInsertionEffect ".trim().toString()]||Ut;function Qr({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[o,i,a]=z6({defaultProp:e,onChange:r}),s=t!==void 0,u=s?t:o;{const c=v.useRef(t!==void 0);v.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=v.useCallback(c=>{var h;if(s){const f=U6(c)?c(t):c;f!==t&&((h=a.current)==null||h.call(a,f))}else i(c)},[s,t,i,a]);return[u,l]}function z6({defaultProp:t,onChange:e}){const[r,n]=v.useState(t),o=v.useRef(r),i=v.useRef(e);return q6(()=>{i.current=e},[e]),v.useEffect(()=>{var a;o.current!==r&&((a=i.current)==null||a.call(i,r),o.current=r)},[r,o]),[r,n,i]}function U6(t){return typeof t=="function"}var V6=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"}),W6="VisuallyHidden",Zf=v.forwardRef((t,e)=>p.jsx(ve.span,{...t,ref:e,style:{...V6,...t.style}}));Zf.displayName=W6;var G6=Zf,[Oi]=pr("Tooltip",[zf]),ji=zf(),Qf="TooltipProvider",Y6=700,Ka="tooltip.open",[X6,su]=Oi(Qf),e0=t=>{const{__scopeTooltip:e,delayDuration:r=Y6,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:i}=t,a=v.useRef(!0),s=v.useRef(!1),u=v.useRef(0);return v.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(X6,{scope:e,isOpenDelayedRef:a,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(u.current),a.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>a.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(l=>{s.current=l},[]),disableHoverableContent:o,children:i})};e0.displayName=Qf;var On="Tooltip",[K6,Ri]=Oi(On),t0=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:o,onOpenChange:i,disableHoverableContent:a,delayDuration:s}=t,u=su(On,t.__scopeTooltip),l=ji(e),[c,h]=v.useState(null),f=Of(),d=v.useRef(0),m=a??u.disableHoverableContent,g=s??u.delayDuration,b=v.useRef(!1),[y,x]=Qr({prop:n,defaultProp:o??!1,onChange:_=>{_?(u.onOpen(),document.dispatchEvent(new CustomEvent(Ka))):u.onClose(),i==null||i(_)},caller:On}),S=v.useMemo(()=>y?b.current?"delayed-open":"instant-open":"closed",[y]),E=v.useCallback(()=>{window.clearTimeout(d.current),d.current=0,b.current=!1,x(!0)},[x]),A=v.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x(!1)},[x]),R=v.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{b.current=!0,x(!0),d.current=0},g)},[g,x]);return v.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),p.jsx(k6,{...l,children:p.jsx(K6,{scope:e,contentId:f,open:y,stateAttribute:S,trigger:c,onTriggerChange:h,onTriggerEnter:v.useCallback(()=>{u.isOpenDelayedRef.current?R():E()},[u.isOpenDelayedRef,R,E]),onTriggerLeave:v.useCallback(()=>{m?A():(window.clearTimeout(d.current),d.current=0)},[A,m]),onOpen:E,onClose:A,disableHoverableContent:m,children:r})})};t0.displayName=On;var Ja="TooltipTrigger",r0=v.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=Ri(Ja,r),i=su(Ja,r),a=ji(r),s=v.useRef(null),u=Te(e,s,o.onTriggerChange),l=v.useRef(!1),c=v.useRef(!1),h=v.useCallback(()=>l.current=!1,[]);return v.useEffect(()=>()=>document.removeEventListener("pointerup",h),[h]),p.jsx(I6,{asChild:!0,...a,children:p.jsx(ve.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:fe(t.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!i.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:fe(t.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:fe(t.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:fe(t.onFocus,()=>{l.current||o.onOpen()}),onBlur:fe(t.onBlur,o.onClose),onClick:fe(t.onClick,o.onClose)})})});r0.displayName=Ja;var J6="TooltipPortal",[CN,Z6]=Oi(J6,{forceMount:void 0}),kr="TooltipContent",n0=v.forwardRef((t,e)=>{const r=Z6(kr,t.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...i}=t,a=Ri(kr,t.__scopeTooltip);return p.jsx(hr,{present:n||a.open,children:a.disableHoverableContent?p.jsx(o0,{side:o,...i,ref:e}):p.jsx(Q6,{side:o,...i,ref:e})})}),Q6=v.forwardRef((t,e)=>{const r=Ri(kr,t.__scopeTooltip),n=su(kr,t.__scopeTooltip),o=v.useRef(null),i=Te(e,o),[a,s]=v.useState(null),{trigger:u,onClose:l}=r,c=o.current,{onPointerInTransitChange:h}=n,f=v.useCallback(()=>{s(null),h(!1)},[h]),d=v.useCallback((m,g)=>{const b=m.currentTarget,y={x:m.clientX,y:m.clientY},x=o4(y,b.getBoundingClientRect()),S=i4(y,x),E=a4(g.getBoundingClientRect()),A=u4([...S,...E]);s(A),h(!0)},[h]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(u&&c){const m=b=>d(b,c),g=b=>d(b,u);return u.addEventListener("pointerleave",m),c.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",m),c.removeEventListener("pointerleave",g)}}},[u,c,d,f]),v.useEffect(()=>{if(a){const m=g=>{const b=g.target,y={x:g.clientX,y:g.clientY},x=(u==null?void 0:u.contains(b))||(c==null?void 0:c.contains(b)),S=!s4(y,a);x?f():S&&(f(),l())};return document.addEventListener("pointermove",m),()=>document.removeEventListener("pointermove",m)}},[u,c,a,l,f]),p.jsx(o0,{...t,ref:i})}),[e4,t4]=Oi(On,{isInside:!1}),r4=H6("TooltipContent"),o0=v.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:i,onPointerDownOutside:a,...s}=t,u=Ri(kr,r),l=ji(r),{onClose:c}=u;return v.useEffect(()=>(document.addEventListener(Ka,c),()=>document.removeEventListener(Ka,c)),[c]),v.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(Nf,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(D6,{"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(r4,{children:n}),p.jsx(e4,{scope:r,isInside:!0,children:p.jsx(G6,{id:u.contentId,role:"tooltip",children:o||n})})]})})});n0.displayName=kr;var i0="TooltipArrow",n4=v.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=ji(r);return t4(i0,r).isInside?null:p.jsx(L6,{...o,...n,ref:e})});n4.displayName=i0;function o4(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),i=Math.abs(e.left-t.x);switch(Math.min(r,n,o,i)){case i:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function i4(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 a4(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 s4(t,e){const{x:r,y:n}=t;let o=!1;for(let i=0,a=e.length-1;i<e.length;a=i++){const s=e[i],u=e[a],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 u4(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),l4(e)}function l4(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 i=e[e.length-1],a=e[e.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.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 i=r[r.length-1],a=r[r.length-2];if((i.x-a.x)*(o.y-a.y)>=(i.y-a.y)*(o.x-a.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 c4=e0,d4=t0,f4=r0,a0=n0;const jn=c4,Ir=d4,Dr=f4,sr=v.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(a0,{ref:n,sideOffset:e,className:Ne("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}));sr.displayName=a0.displayName;const jr={mobile:{icon:ks,label:"Mobile"},tablet:{icon:Is,label:"Tablet"},small:{icon:_s,label:"Small Desktop"},desktop:{icon:Ds,label:"Desktop"}},G=({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(js,{className:"h-3 w-3"}):p.jsx(Rs,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},ge=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:i,inputClassName:a=""})=>p.jsxs("div",{className:"flex items-center justify-between",children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:e,onChange:s=>r(parseInt(s.target.value)),min:n,max:o,className:ct("w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right",a)}),i?p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:i}):null]})]}),Yo=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:i="px",defaultValue:a=16})=>{const s=Ae(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??a},h=()=>c[s]??c.desktop??a,f=(g,b)=>{const y={...c,[g]:b};r(y)},d=g=>{f(s,g)},m=qe.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(jn,{children:p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||m?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(jr[s].icon,{className:"h-3 w-3"})})}),p.jsx(sr,{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:qe.map(g=>{const b=jr[g].icon,y=c[g],x=y===void 0?qe.find(S=>qe.indexOf(S)>qe.indexOf(g)&&c[S]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(jn,{children:p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${g===s?"bg-primary/10":""}`,children:p.jsx(b,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(sr,{side:"left",children:p.jsx("p",{children:jr[g].label})})]})}),p.jsx("input",{type:"number",value:y??"",placeholder:x?`${c[x]??a}`:"",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 ${y===void 0?"text-muted-foreground":""}`}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:i})]},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:i})]})]})},Ue=({label:t,values:e,onChange:r})=>{var s;const n=Ae(),[o,i]=w.useState(!0),a=(u,l)=>{r(o?{[n]:{top:l,right:l,bottom:l,left:l}}:{[n]:{...e[n],[u]:l}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("button",{onClick:()=>i(!o),className:`text-xs px-2 py-0.5 rounded ${o?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:o?"Linked":"Individual"})]}),o?p.jsx("input",{type:"number",value:(s=e==null?void 0:e[n])==null?void 0:s.top,onChange:u=>a("top",parseInt(u.target.value)),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"flex gap-1",children:["top","right","bottom","left"].map(u=>{var l;return p.jsxs("div",{className:"text-center",children:[p.jsx("span",{className:"text-[10px] text-muted-foreground",children:u[0].toUpperCase()}),p.jsx("input",{type:"number",value:(l=e==null?void 0:e[n])==null?void 0:l[u],onChange:c=>a(u,parseInt(c.target.value)),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"})]},u)})})]})},te=({label:t,value:e,options:r,onChange:n,className:o="",selectClassName:i=""})=>p.jsxs("div",{className:ct("flex items-center justify-between",o,i),children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsx("select",{value:e,onChange:a=>n(a.target.value),className:ct("px-2 py-1 text-xs rounded border border-input bg-background ",i),children:r.map(a=>p.jsx("option",{value:a.value,children:a.label},a.value))})]}),ut=({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"})]})]}),At=({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))})]}),Gt=({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"})]}),Pi=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit: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:t}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,i]})]}),p.jsx("input",{type:"range",value:e,onChange:a=>r(parseInt(a.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]}),Xo=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:i="",defaultValue:a=50})=>{const s=Ae(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??a},h=()=>c[s]??c.desktop??a,f=(m,g)=>{const b={...c,[m]:g};r(b)},d=qe.some(m=>m!=="desktop"&&c[m]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("span",{className:"text-xs text-muted-foreground",children:[h(),i]}),p.jsx(jn,{children:p.jsxs(Ir,{children:[p.jsx(Dr,{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(jr[s].icon,{className:"h-3 w-3"})})}),p.jsx(sr,{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:qe.map(m=>{const g=jr[m].icon,b=c[m];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 ${m===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:jr[m].label}),p.jsxs("span",{className:"text-xs",children:[b??"-",b!==void 0?i:""]})]}),p.jsx("input",{type:"range",value:b??c.desktop??a,onChange:y=>f(m,parseInt(y.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]},m)})}):p.jsx("input",{type:"range",value:h(),onChange:m=>f(s,parseInt(m.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]})},uu=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:o="#ffffff",borderColor:i="#FF6B35",borderWidth:a=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:m="none",opacity:g=100})=>{const b=Ae();let y,x,S;try{const{connectors:L,events:N}=se(O=>({events:O.events}));y=L.connect,x=L.drag,S=N.selected}catch{}const E={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},A=E[r]||E.md,R=h==="auto"?A.px:h,_=f==="auto"?A.py:f,I=l==="auto"?A.fs:l,M=typeof d[b]=="object"?`${d[b].top}px ${d[b].right}px ${d[b].bottom}px ${d[b].left}px`:`${d[b]}px`,B=e==="outline"?"transparent":n,C=e==="outline"?n:o,T=e==="outline"?2:a,k=e==="outline"?n:i;return p.jsx("button",{ref:L=>L&&y&&x&&(y==null?void 0:y(x==null?void 0:x(L))),className:`cursor-move transition-all hover:opacity-90 ${S?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:B,color:C,borderWidth:`${T}px`,borderColor:k,borderStyle:"solid",borderRadius:`${s}px`,fontWeight:u,fontSize:`${I}px`,padding:`${_}px ${R}px`,margin:M,width:c==="full"?"100%":"auto",boxShadow:m==="none"?"none":m,opacity:g/100},children:t})},p4=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Content",defaultOpen:!0,children:p.jsx(Gt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)})}),p.jsxs(G,{title:"Style",defaultOpen:!0,children:[p.jsx(At,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(o=>o.variant=n)}),p.jsx(At,{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(At,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(o=>o.width=n)})]}),p.jsxs(G,{title:"Colors",defaultOpen:!0,children:[p.jsx(ut,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(o=>o.backgroundColor=n)}),p.jsx(ut,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(o=>o.textColor=n)}),p.jsx(Pi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsxs(G,{title:"Typography",defaultOpen:!1,children:[p.jsx(ge,{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(te,{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(G,{title:"Padding",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Horizontal",value:e.paddingX||16,onChange:n=>t(o=>o.paddingX=n),max:64}),p.jsx(ge,{unit:"px",label:"Vertical",value:e.paddingY||10,onChange:n=>t(o=>o.paddingY=n),max:48})]}),p.jsxs(G,{title:"Border",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:50}),p.jsx(ge,{unit:"px",label:"Width",value:e.borderWidth||0,onChange:n=>t(o=>o.borderWidth=n),max:10}),p.jsx(ut,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(o=>o.borderColor=n)})]}),p.jsx(G,{title:"Effects",defaultOpen:!1,children:p.jsx(te,{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(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};uu.craft={displayName:"Button",props:{text:"Click me",variant:"solid",size:"md",backgroundColor:"#FF6B35",textColor:"#ffffff",borderColor:"#FF6B35",borderWidth:0,borderRadius:8,fontWeight:"500",fontSize:"auto",width:"auto",paddingX:16,paddingY:10,margin:{desktop:{top:0,right:0,bottom:0,left:0}},boxShadow:"none",opacity:100},related:{settings:p4}};const ee=(t,e)=>t&&(t[e]||t.desktop||t.small||t.tablet||t.mobile||t)||"",Sr=({label:t,value:e,onChange:r,max:n=1e4})=>{var h,f,d;const o=Ae(),i=((h=e==null?void 0:e[o])==null?void 0:h.type)||"custom",a=(f=e==null?void 0:e[o])==null?void 0:f.value,s=((d=e==null?void 0:e[o])==null?void 0:d.unit)||"%",u=m=>{r(m==="none"?{[o]:{type:"none"}}:m==="auto"?{[o]:{type:"auto"}}:{[o]:{type:"custom",value:a,unit:s}})},l=m=>{r({[o]:{type:"custom",value:m,unit:s}})},c=m=>{r({[o]:{type:"custom",value:a,unit:m}})};return p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-xs font-medium",children:t}),p.jsx(te,{selectClassName:"w-full",value:i,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:u}),i==="custom"&&p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"",children:p.jsx(ge,{inputClassName:"w-full h-8 rounded-l-lg",value:a,onChange:l,max:n})}),p.jsx("div",{className:"",children:p.jsx(te,{selectClassName:" h-8",value:s,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:c})})]})]})},h4=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",lu=t=>{const e=Ae(),r=a=>{var u,l;const s=((u=t==null?void 0:t[a])==null?void 0:u[e])||((l=t==null?void 0:t[a])==null?void 0:l.desktop);return h4(s)},n=a=>ee(t==null?void 0:t[a],e),o=typeof n("padding")=="object"?`${n("padding").top}px ${n("padding").right}px ${n("padding").bottom}px ${n("padding").left}px`:`${n("padding")}px`,i=typeof n("margin")=="object"?`${n("margin").top}px ${n("margin").right}px ${n("margin").bottom}px ${n("margin").left}px`:`${n("margin")}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:o,margin:i,width:r("width"),height:r("height"),minHeight:r("minHeight"),maxHeight:r("maxHeight"),minWidth:r("minWidth"),maxWidth:r("maxWidth"),display:t.display,flexWrap:t.flexWrap,flexDirection:t.display==="flex"?t.flexDirection:void 0,justifyContent:t.display==="flex"?t.justifyContent:void 0,alignItems:t.display==="flex"?t.alignItems:void 0,gap:t.display==="flex"?`${t.gap}px`:void 0,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`,borderColor:t.borderColor,borderStyle:t.borderStyle,boxShadow:t.boxShadow==="none"?"none":t.boxShadow,position:t.position||"relative",top:t.top||0,left:t.left||0}},Rn={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:{desktop:{type:"custom",value:50,unit:"%"}},height:{desktop:{type:"none"}},minHeight:{desktop:{type:"custom",value:50,unit:"px"}},maxHeight:{desktop:{type:"none"}},minWidth:{desktop:{type:"none"}},maxWidth:{desktop:{type:"none"}},display:"block",flexDirection:"column",flexWrap:"nowrap",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"solid",boxShadow:"none",position:"relative",top:0,left:0},_i=t=>{const{actions:{setProp:e},props:r}=se(i=>({props:i.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(G,{title:"Layout",defaultOpen:!0,children:[p.jsx(te,{label:"Display",value:r.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:i=>e(a=>a.display=i)}),r.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(te,{label:"Wrap",value:r.flexWrap||"nowrap",options:[{value:"nowrap",label:"No Wrap"},{value:"wrap",label:"Wrap"},{value:"wrap-reverse",label:"Wrap Reverse"}],onChange:i=>e(a=>a.flexWrap=i)}),p.jsx(At,{label:"Direction",value:r.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:i=>e(a=>a.flexDirection=i)}),p.jsx(te,{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:i=>e(a=>a.justifyContent=i)}),p.jsx(ge,{unit:"px",label:"Gap",value:r.gap||0,onChange:i=>e(a=>a.gap=i),max:64})]})]}),p.jsxs(G,{title:"Sizing",defaultOpen:!0,children:[p.jsx(Sr,{label:"Width",value:r.width,onChange:i=>e(a=>a.width={...a.width,...i}),max:1e4}),p.jsx(Sr,{label:"Min Width",value:r.minWidth,onChange:i=>e(a=>a.minWidth={...a.minWidth,...i}),max:1e4}),p.jsx(Sr,{label:"Max Width",value:r.maxWidth,onChange:i=>e(a=>a.maxWidth={...a.maxWidth,...i}),max:1e4}),p.jsx(Sr,{label:"Height",value:r.height,onChange:i=>e(a=>a.height={...a.height,...i}),max:1e4}),p.jsx(Sr,{label:"Min Height",value:r.minHeight,onChange:i=>e(a=>a.minHeight={...a.minHeight,...i}),max:1e4}),p.jsx(Sr,{label:"Max Height",value:r.maxHeight,onChange:i=>e(a=>a.maxHeight={...a.maxHeight,...i}),max:1e4})]}),p.jsxs(G,{title:"Spacing",defaultOpen:!0,children:[p.jsx(Ue,{label:"Padding",values:n,onChange:i=>e(a=>a.padding={...a.padding,...i})}),p.jsx(Ue,{label:"Margin",values:o,onChange:i=>e(a=>a.margin={...a.margin,...i})})]}),p.jsxs(G,{title:"Background",defaultOpen:!1,children:[p.jsx(ut,{label:"Color",value:r.backgroundColor||"transparent",onChange:i=>e(a=>a.backgroundColor=i)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:r.backgroundImage||"",onChange:i=>e(a=>a.backgroundImage=i.target.value),className:"w-full px-2 py-1 border rounded text-sm"}),p.jsx(te,{label:"Image Size",value:r.backgroundSize||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"stretch",label:"Stretch"}],onChange:i=>e(a=>a.backgroundSize=i)}),p.jsx(te,{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:i=>e(a=>a.backgroundRepeat=i)})]}),p.jsxs(G,{title:"Border",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Radius",value:r.borderRadius,onChange:i=>e(a=>a.borderRadius=i),max:5e3}),p.jsx(ge,{unit:"px",label:"Width",value:r.borderWidth||1,onChange:i=>e(a=>a.borderWidth=i),max:10}),p.jsx(ut,{label:"Color",value:r.borderColor||"transparent",onChange:i=>e(a=>a.borderColor=i)})]})]})},Hn=t=>{let e,r,n=!1;try{const{connectors:o,events:i}=se(a=>({events:a.events}));e=o.connect,r=o.drag,n=i.selected}catch{}return p.jsx("div",{ref:o=>{o&&e&&r&&e(r(o))},style:lu(t),className:`min-h-[50px] w-full max-w-5xl px-[15px] lg:px-0 ${n?"outline outline-blue-500":""}`,children:t.children})},m4={...Rn,maxWidth:{desktop:{type:"custom",value:"1024",unit:"px"}},padding:{desktop:{top:0,right:15,bottom:0,left:15}}};Hn.craft={isCanvas:!0,props:m4,displayName:"Container",related:{settings:_i},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const b4=/\{\{\s*([\w.]+)\s*\}\}/g,g4=(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},Ko=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,o)=>{const i=g4(e,o);return i==null?n:String(i)})},y4=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),v4=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(b4.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},x4={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"}},w4={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"}]}},S4=({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(Os,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(Im,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},E4=({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(js,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(Rs,{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(i=>p.jsx(S4,{variable:i},i.key))})]})},s0=({className:t})=>p.jsxs("div",{className:Ne("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(w4).map(([e,r],n)=>p.jsx(E4,{category:e,data:r,defaultOpen:n===0},e))})]});var u0={},Pn={},cu={},_n={},du={};Object.defineProperty(du,"__esModule",{value:!0});du.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms„‹•˜¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegraìȹoɴ͹\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱cò׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣ঳সে্਷ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗ࡜ࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४Ānrࢃ࢏gleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘ë૙eryThiî૙tedĀGL૸ଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻Ó䃓Āiy෎ීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬื฼de耻Õ䃕es;樷ml耻Ö䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁࿫࿳ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL࿜࿝࿡憒ar;懥eftArrow;懄eiling;按oǵ࿹\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»࿝pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtè૙a;䎖r;愨pf;愤cr;쀀𝒵௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;e዁ᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀𝔟g΀costuvwឍឝឳេ៕៛៞ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t»᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁îᅠeĀmx᫱᫶ent»᫩eóɍǧ᫾\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯΀delprvw᭠᭬᭷ᮂᮬᯔ᯹arrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;p᭿ᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍rò΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴoôᲉĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»Ṻƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎proø₞r;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼rò৆òΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonó྘quigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roø඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨í஘istĀ;s஠டr;쀀𝔫ȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lanô௢ií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs఻⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lleì୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉uå൅;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭å೸åഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñ೗Ā;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰⳴ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥ⵲ⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀𝔬ͯ⵹\0\0⵼\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨrò᪀Āir⶝ⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ⹧⹲຅脀¶;l⹭⹮䂶leìЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴ï໻rel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei⿾々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ì࿲âヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowó࿪arpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓rò࿪aòՑ;怏oustĀ;a㈞㈟掱che»㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼਴t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì⹯耻­䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫ਩war;椪lig耻ß䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rë๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproø዁im»ኬsðኞĀas㚺㚮ð዁rn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xô᝷headĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roð໻tré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var fu={};Object.defineProperty(fu,"__esModule",{value:!0});fu.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var Za={};(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(i){var a="";return i>65535&&(i-=65536,a+=String.fromCharCode(i>>>10&1023|55296),i=56320|i&1023),a+=String.fromCharCode(i),a};function n(i){var a;return i>=55296&&i<=57343||i>1114111?65533:(a=r.get(i))!==null&&a!==void 0?a:i}t.replaceCodePoint=n;function o(i){return(0,t.fromCodePoint)(n(i))}t.default=o})(Za);(function(t){var e=U&&U.__createBinding||(Object.create?function(C,T,k,L){L===void 0&&(L=k);var N=Object.getOwnPropertyDescriptor(T,k);(!N||("get"in N?!T.__esModule:N.writable||N.configurable))&&(N={enumerable:!0,get:function(){return T[k]}}),Object.defineProperty(C,L,N)}:function(C,T,k,L){L===void 0&&(L=k),C[L]=T[k]}),r=U&&U.__setModuleDefault||(Object.create?function(C,T){Object.defineProperty(C,"default",{enumerable:!0,value:T})}:function(C,T){C.default=T}),n=U&&U.__importStar||function(C){if(C&&C.__esModule)return C;var T={};if(C!=null)for(var k in C)k!=="default"&&Object.prototype.hasOwnProperty.call(C,k)&&e(T,C,k);return r(T,C),T},o=U&&U.__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 i=o(du);t.htmlDecodeTree=i.default;var a=o(fu);t.xmlDecodeTree=a.default;var s=n(Za);t.decodeCodePoint=s.default;var u=Za;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 m(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||m(C)}var b;(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"})(b||(b={}));var y;(function(C){C[C.Legacy=0]="Legacy",C[C.Strict=1]="Strict",C[C.Attribute=2]="Attribute"})(y=t.DecodingMode||(t.DecodingMode={}));var x=function(){function C(T,k,L){this.decodeTree=T,this.emitCodePoint=k,this.errors=L,this.state=b.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=y.Strict}return C.prototype.startEntity=function(T){this.decodeMode=T,this.state=b.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},C.prototype.write=function(T,k){switch(this.state){case b.EntityStart:return T.charCodeAt(k)===l.NUM?(this.state=b.NumericStart,this.consumed+=1,this.stateNumericStart(T,k+1)):(this.state=b.NamedEntity,this.stateNamedEntity(T,k));case b.NumericStart:return this.stateNumericStart(T,k);case b.NumericDecimal:return this.stateNumericDecimal(T,k);case b.NumericHex:return this.stateNumericHex(T,k);case b.NamedEntity:return this.stateNamedEntity(T,k)}},C.prototype.stateNumericStart=function(T,k){return k>=T.length?-1:(T.charCodeAt(k)|c)===l.LOWER_X?(this.state=b.NumericHex,this.consumed+=1,this.stateNumericHex(T,k+1)):(this.state=b.NumericDecimal,this.stateNumericDecimal(T,k))},C.prototype.addToNumericResult=function(T,k,L,N){if(k!==L){var O=L-k;this.result=this.result*Math.pow(N,O)+parseInt(T.substr(k,O),N),this.consumed+=O}},C.prototype.stateNumericHex=function(T,k){for(var L=k;k<T.length;){var N=T.charCodeAt(k);if(f(N)||d(N))k+=1;else return this.addToNumericResult(T,L,k,16),this.emitNumericEntity(N,3)}return this.addToNumericResult(T,L,k,16),-1},C.prototype.stateNumericDecimal=function(T,k){for(var L=k;k<T.length;){var N=T.charCodeAt(k);if(f(N))k+=1;else return this.addToNumericResult(T,L,k,10),this.emitNumericEntity(N,2)}return this.addToNumericResult(T,L,k,10),-1},C.prototype.emitNumericEntity=function(T,k){var L;if(this.consumed<=k)return(L=this.errors)===null||L===void 0||L.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(T===l.SEMI)this.consumed+=1;else if(this.decodeMode===y.Strict)return 0;return this.emitCodePoint((0,s.replaceCodePoint)(this.result),this.consumed),this.errors&&(T!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},C.prototype.stateNamedEntity=function(T,k){for(var L=this.decodeTree,N=L[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14;k<T.length;k++,this.excess++){var P=T.charCodeAt(k);if(this.treeIndex=E(L,N,this.treeIndex+Math.max(1,O),P),this.treeIndex<0)return this.result===0||this.decodeMode===y.Attribute&&(O===0||g(P))?0:this.emitNotTerminatedNamedEntity();if(N=L[this.treeIndex],O=(N&h.VALUE_LENGTH)>>14,O!==0){if(P===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},C.prototype.emitNotTerminatedNamedEntity=function(){var T,k=this,L=k.result,N=k.decodeTree,O=(N[L]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(L,O,this.consumed),(T=this.errors)===null||T===void 0||T.missingSemicolonAfterCharacterReference(),this.consumed},C.prototype.emitNamedEntityData=function(T,k,L){var N=this.decodeTree;return this.emitCodePoint(k===1?N[T]&~h.VALUE_LENGTH:N[T+1],L),k===3&&this.emitCodePoint(N[T+2],L),L},C.prototype.end=function(){var T;switch(this.state){case b.NamedEntity:return this.result!==0&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case b.NumericDecimal:return this.emitNumericEntity(0,2);case b.NumericHex:return this.emitNumericEntity(0,3);case b.NumericStart:return(T=this.errors)===null||T===void 0||T.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case b.EntityStart:return 0}},C}();t.EntityDecoder=x;function S(C){var T="",k=new x(C,function(L){return T+=(0,s.fromCodePoint)(L)});return function(N,O){for(var P=0,D=0;(D=N.indexOf("&",D))>=0;){T+=N.slice(P,D),k.startEntity(O);var $=k.write(N,D+1);if($<0){P=D+k.end();break}P=D+$,D=$===0?P+1:P}var z=T+N.slice(P);return T="",z}}function E(C,T,k,L){var N=(T&h.BRANCH_LENGTH)>>7,O=T&h.JUMP_TABLE;if(N===0)return O!==0&&L===O?k:-1;if(O){var P=L-O;return P<0||P>=N?-1:C[k+P]-1}for(var D=k,$=D+N-1;D<=$;){var z=D+$>>>1,re=C[z];if(re<L)D=z+1;else if(re>L)$=z-1;else return C[z+N]}return-1}t.determineBranch=E;var A=S(i.default),R=S(a.default);function _(C,T){return T===void 0&&(T=y.Legacy),A(C,T)}t.decodeHTML=_;function I(C){return A(C,y.Attribute)}t.decodeHTMLAttribute=I;function M(C){return A(C,y.Strict)}t.decodeHTMLStrict=M;function B(C){return R(C,y.Strict)}t.decodeXML=B})(_n);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=_n,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 i(f){return f===r.Slash||f===r.Gt||o(f)}function a(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,m){var g=d.xmlMode,b=g===void 0?!1:g,y=d.decodeEntities,x=y===void 0?!0:y;this.cbs=m,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=b,this.decodeEntities=x,this.entityTrie=b?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 m=this.sequenceIndex===this.currentSequence.length,g=m?i(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!g)this.isSpecial=!1;else if(!m){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 m=this.index-this.currentSequence.length;if(this.sectionStart<m){var g=this.index;this.index=m,this.cbs.ontext(this.sectionStart,m),this.index=g}this.isSpecial=!1,this.sectionStart=m+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?!i(d):s(d)},f.prototype.startSpecial=function(d,m){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=m,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 m=d|32;this.sectionStart=this.index,!this.xmlMode&&m===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&m===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){i(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||i(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,m){d===m||!this.decodeEntities&&this.fastForwardTo(m)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(m===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 m=d|32;m===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):m===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 m=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(m){var g=(m>>14)-1;if(!this.allowLegacyEntity()&&d!==r.Semi)this.trieIndex+=g;else{var b=this.index-this.entityExcess+1;b>this.sectionStart&&this.emitPartial(this.sectionStart,b),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 m=this.index-this.entityExcess-1,g=m+2+ +(this.state===n.InHexEntity);g!==this.index&&(m>this.sectionStart&&this.emitPartial(this.sectionStart,m),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):a(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):a(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,m){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(d,m):this.cbs.ontext(d,m)},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})(cu);var C4=U&&U.__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]}),T4=U&&U.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),N4=U&&U.__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)&&C4(e,t,r);return T4(e,t),e};Object.defineProperty(Pn,"__esModule",{value:!0});Pn.Parser=void 0;var lo=N4(cu),yc=_n,Er=new Set(["input","option","optgroup","select","button","datalist","textarea"]),ae=new Set(["p"]),vc=new Set(["thead","tbody"]),xc=new Set(["dd","dt"]),wc=new Set(["rt","rp"]),A4=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",ae],["h1",ae],["h2",ae],["h3",ae],["h4",ae],["h5",ae],["h6",ae],["select",Er],["input",Er],["output",Er],["button",Er],["datalist",Er],["textarea",Er],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",xc],["dt",xc],["address",ae],["article",ae],["aside",ae],["blockquote",ae],["details",ae],["div",ae],["dl",ae],["fieldset",ae],["figcaption",ae],["figure",ae],["footer",ae],["form",ae],["header",ae],["hr",ae],["main",ae],["nav",ae],["ol",ae],["pre",ae],["section",ae],["table",ae],["ul",ae],["rt",wc],["rp",wc],["tbody",vc],["tfoot",vc]]),O4=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),Sc=new Set(["math","svg"]),Ec=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),j4=/\s|\//,R4=function(){function t(e,r){r===void 0&&(r={});var n,o,i,a,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((i=r.Tokenizer)!==null&&i!==void 0?i:lo.default)(this.options,this),(s=(a=this.cbs).onparserinit)===null||s===void 0||s.call(a,this)}return t.prototype.ontext=function(e,r){var n,o,i=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,i),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,yc.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&O4.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,i;this.openTagStart=this.startIndex,this.tagname=e;var a=!this.options.xmlMode&&A4.get(e);if(a)for(;this.stack.length>0&&a.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),Sc.has(e)?this.foreignContext.push(!0):Ec.has(e)&&this.foreignContext.push(!1)),(i=(o=this.cbs).onopentagname)===null||i===void 0||i.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,i,a,s,u;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(Sc.has(l)||Ec.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"),(a=(i=this.cbs).onopentag)===null||a===void 0||a.call(i,"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,yc.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===lo.QuoteType.Double?'"':e===lo.QuoteType.Single?"'":e===lo.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(j4),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,i,a,s;this.endIndex=r,(i=(o=this.cbs).oncomment)===null||i===void 0||i.call(o,this.getSlice(e,r-n)),(s=(a=this.cbs).oncommentend)===null||s===void 0||s.call(a),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,i,a,s,u,l,c,h,f,d;this.endIndex=r;var m=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((i=(o=this.cbs).oncdatastart)===null||i===void 0||i.call(o),(s=(a=this.cbs).ontext)===null||s===void 0||s.call(a,m),(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(m,"]]")),(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}();Pn.Parser=R4;var Rt={},en={};(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})(en);var Q={},Yt=U&&U.__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 i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},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)}}(),vn=U&&U.__assign||function(){return vn=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},vn.apply(this,arguments)};Object.defineProperty(Q,"__esModule",{value:!0});Q.cloneNode=Q.hasChildren=Q.isDocument=Q.isDirective=Q.isComment=Q.isText=Q.isCDATA=Q.isTag=Q.Element=Q.Document=Q.CDATA=Q.NodeWithChildren=Q.ProcessingInstruction=Q.Comment=Q.Text=Q.DataNode=Q.Node=void 0;var ke=en,pu=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),hu(this,e)},t}();Q.Node=pu;var ki=function(t){Yt(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}(pu);Q.DataNode=ki;var l0=function(t){Yt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ke.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(ki);Q.Text=l0;var c0=function(t){Yt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ke.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(ki);Q.Comment=c0;var d0=function(t){Yt(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=ke.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(ki);Q.ProcessingInstruction=d0;var Ii=function(t){Yt(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}(pu);Q.NodeWithChildren=Ii;var f0=function(t){Yt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ke.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(Ii);Q.CDATA=f0;var p0=function(t){Yt(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=ke.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(Ii);Q.Document=p0;var h0=function(t){Yt(e,t);function e(r,n,o,i){o===void 0&&(o=[]),i===void 0&&(i=r==="script"?ke.ElementType.Script:r==="style"?ke.ElementType.Style:ke.ElementType.Tag);var a=t.call(this,o)||this;return a.name=r,a.attribs=n,a.type=i,a}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,i;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(i=r["x-attribsPrefix"])===null||i===void 0?void 0:i[n]}})},enumerable:!1,configurable:!0}),e}(Ii);Q.Element=h0;function m0(t){return(0,ke.isTag)(t)}Q.isTag=m0;function b0(t){return t.type===ke.ElementType.CDATA}Q.isCDATA=b0;function g0(t){return t.type===ke.ElementType.Text}Q.isText=g0;function y0(t){return t.type===ke.ElementType.Comment}Q.isComment=y0;function v0(t){return t.type===ke.ElementType.Directive}Q.isDirective=v0;function x0(t){return t.type===ke.ElementType.Root}Q.isDocument=x0;function P4(t){return Object.prototype.hasOwnProperty.call(t,"children")}Q.hasChildren=P4;function hu(t,e){e===void 0&&(e=!1);var r;if(g0(t))r=new l0(t.data);else if(y0(t))r=new c0(t.data);else if(m0(t)){var n=e?fa(t.children):[],o=new h0(t.name,vn({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=vn({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=vn({},t["x-attribsPrefix"])),r=o}else if(b0(t)){var n=e?fa(t.children):[],i=new f0(n);n.forEach(function(l){return l.parent=i}),r=i}else if(x0(t)){var n=e?fa(t.children):[],a=new p0(n);n.forEach(function(l){return l.parent=a}),t["x-mode"]&&(a["x-mode"]=t["x-mode"]),r=a}else if(v0(t)){var s=new d0(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}Q.cloneNode=hu;function fa(t){for(var e=t.map(function(n){return hu(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=U&&U.__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=U&&U.__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=en,o=Q;r(Q,t);var i={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},a=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=i),typeof u=="object"&&(l=u,u=void 0),this.callback=u??null,this.options=l??i,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=a,t.default=a})(Rt);var Co={},Xt={},qn={},w0={},ur={},mu={};Object.defineProperty(mu,"__esModule",{value:!0});function co(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}mu.default=new Map(co([[9,"&Tab;"],[0,"&NewLine;"],[22,"&excl;"],[0,"&quot;"],[0,"&num;"],[0,"&dollar;"],[0,"&percnt;"],[0,"&amp;"],[0,"&apos;"],[0,"&lpar;"],[0,"&rpar;"],[0,"&ast;"],[0,"&plus;"],[0,"&comma;"],[1,"&period;"],[0,"&sol;"],[10,"&colon;"],[0,"&semi;"],[0,{v:"&lt;",n:8402,o:"&nvlt;"}],[0,{v:"&equals;",n:8421,o:"&bne;"}],[0,{v:"&gt;",n:8402,o:"&nvgt;"}],[0,"&quest;"],[0,"&commat;"],[26,"&lbrack;"],[0,"&bsol;"],[0,"&rbrack;"],[0,"&Hat;"],[0,"&lowbar;"],[0,"&DiacriticalGrave;"],[5,{n:106,o:"&fjlig;"}],[20,"&lbrace;"],[0,"&verbar;"],[0,"&rbrace;"],[34,"&nbsp;"],[0,"&iexcl;"],[0,"&cent;"],[0,"&pound;"],[0,"&curren;"],[0,"&yen;"],[0,"&brvbar;"],[0,"&sect;"],[0,"&die;"],[0,"&copy;"],[0,"&ordf;"],[0,"&laquo;"],[0,"&not;"],[0,"&shy;"],[0,"&circledR;"],[0,"&macr;"],[0,"&deg;"],[0,"&PlusMinus;"],[0,"&sup2;"],[0,"&sup3;"],[0,"&acute;"],[0,"&micro;"],[0,"&para;"],[0,"&centerdot;"],[0,"&cedil;"],[0,"&sup1;"],[0,"&ordm;"],[0,"&raquo;"],[0,"&frac14;"],[0,"&frac12;"],[0,"&frac34;"],[0,"&iquest;"],[0,"&Agrave;"],[0,"&Aacute;"],[0,"&Acirc;"],[0,"&Atilde;"],[0,"&Auml;"],[0,"&angst;"],[0,"&AElig;"],[0,"&Ccedil;"],[0,"&Egrave;"],[0,"&Eacute;"],[0,"&Ecirc;"],[0,"&Euml;"],[0,"&Igrave;"],[0,"&Iacute;"],[0,"&Icirc;"],[0,"&Iuml;"],[0,"&ETH;"],[0,"&Ntilde;"],[0,"&Ograve;"],[0,"&Oacute;"],[0,"&Ocirc;"],[0,"&Otilde;"],[0,"&Ouml;"],[0,"&times;"],[0,"&Oslash;"],[0,"&Ugrave;"],[0,"&Uacute;"],[0,"&Ucirc;"],[0,"&Uuml;"],[0,"&Yacute;"],[0,"&THORN;"],[0,"&szlig;"],[0,"&agrave;"],[0,"&aacute;"],[0,"&acirc;"],[0,"&atilde;"],[0,"&auml;"],[0,"&aring;"],[0,"&aelig;"],[0,"&ccedil;"],[0,"&egrave;"],[0,"&eacute;"],[0,"&ecirc;"],[0,"&euml;"],[0,"&igrave;"],[0,"&iacute;"],[0,"&icirc;"],[0,"&iuml;"],[0,"&eth;"],[0,"&ntilde;"],[0,"&ograve;"],[0,"&oacute;"],[0,"&ocirc;"],[0,"&otilde;"],[0,"&ouml;"],[0,"&div;"],[0,"&oslash;"],[0,"&ugrave;"],[0,"&uacute;"],[0,"&ucirc;"],[0,"&uuml;"],[0,"&yacute;"],[0,"&thorn;"],[0,"&yuml;"],[0,"&Amacr;"],[0,"&amacr;"],[0,"&Abreve;"],[0,"&abreve;"],[0,"&Aogon;"],[0,"&aogon;"],[0,"&Cacute;"],[0,"&cacute;"],[0,"&Ccirc;"],[0,"&ccirc;"],[0,"&Cdot;"],[0,"&cdot;"],[0,"&Ccaron;"],[0,"&ccaron;"],[0,"&Dcaron;"],[0,"&dcaron;"],[0,"&Dstrok;"],[0,"&dstrok;"],[0,"&Emacr;"],[0,"&emacr;"],[2,"&Edot;"],[0,"&edot;"],[0,"&Eogon;"],[0,"&eogon;"],[0,"&Ecaron;"],[0,"&ecaron;"],[0,"&Gcirc;"],[0,"&gcirc;"],[0,"&Gbreve;"],[0,"&gbreve;"],[0,"&Gdot;"],[0,"&gdot;"],[0,"&Gcedil;"],[1,"&Hcirc;"],[0,"&hcirc;"],[0,"&Hstrok;"],[0,"&hstrok;"],[0,"&Itilde;"],[0,"&itilde;"],[0,"&Imacr;"],[0,"&imacr;"],[2,"&Iogon;"],[0,"&iogon;"],[0,"&Idot;"],[0,"&imath;"],[0,"&IJlig;"],[0,"&ijlig;"],[0,"&Jcirc;"],[0,"&jcirc;"],[0,"&Kcedil;"],[0,"&kcedil;"],[0,"&kgreen;"],[0,"&Lacute;"],[0,"&lacute;"],[0,"&Lcedil;"],[0,"&lcedil;"],[0,"&Lcaron;"],[0,"&lcaron;"],[0,"&Lmidot;"],[0,"&lmidot;"],[0,"&Lstrok;"],[0,"&lstrok;"],[0,"&Nacute;"],[0,"&nacute;"],[0,"&Ncedil;"],[0,"&ncedil;"],[0,"&Ncaron;"],[0,"&ncaron;"],[0,"&napos;"],[0,"&ENG;"],[0,"&eng;"],[0,"&Omacr;"],[0,"&omacr;"],[2,"&Odblac;"],[0,"&odblac;"],[0,"&OElig;"],[0,"&oelig;"],[0,"&Racute;"],[0,"&racute;"],[0,"&Rcedil;"],[0,"&rcedil;"],[0,"&Rcaron;"],[0,"&rcaron;"],[0,"&Sacute;"],[0,"&sacute;"],[0,"&Scirc;"],[0,"&scirc;"],[0,"&Scedil;"],[0,"&scedil;"],[0,"&Scaron;"],[0,"&scaron;"],[0,"&Tcedil;"],[0,"&tcedil;"],[0,"&Tcaron;"],[0,"&tcaron;"],[0,"&Tstrok;"],[0,"&tstrok;"],[0,"&Utilde;"],[0,"&utilde;"],[0,"&Umacr;"],[0,"&umacr;"],[0,"&Ubreve;"],[0,"&ubreve;"],[0,"&Uring;"],[0,"&uring;"],[0,"&Udblac;"],[0,"&udblac;"],[0,"&Uogon;"],[0,"&uogon;"],[0,"&Wcirc;"],[0,"&wcirc;"],[0,"&Ycirc;"],[0,"&ycirc;"],[0,"&Yuml;"],[0,"&Zacute;"],[0,"&zacute;"],[0,"&Zdot;"],[0,"&zdot;"],[0,"&Zcaron;"],[0,"&zcaron;"],[19,"&fnof;"],[34,"&imped;"],[63,"&gacute;"],[65,"&jmath;"],[142,"&circ;"],[0,"&caron;"],[16,"&breve;"],[0,"&DiacriticalDot;"],[0,"&ring;"],[0,"&ogon;"],[0,"&DiacriticalTilde;"],[0,"&dblac;"],[51,"&DownBreve;"],[127,"&Alpha;"],[0,"&Beta;"],[0,"&Gamma;"],[0,"&Delta;"],[0,"&Epsilon;"],[0,"&Zeta;"],[0,"&Eta;"],[0,"&Theta;"],[0,"&Iota;"],[0,"&Kappa;"],[0,"&Lambda;"],[0,"&Mu;"],[0,"&Nu;"],[0,"&Xi;"],[0,"&Omicron;"],[0,"&Pi;"],[0,"&Rho;"],[1,"&Sigma;"],[0,"&Tau;"],[0,"&Upsilon;"],[0,"&Phi;"],[0,"&Chi;"],[0,"&Psi;"],[0,"&ohm;"],[7,"&alpha;"],[0,"&beta;"],[0,"&gamma;"],[0,"&delta;"],[0,"&epsi;"],[0,"&zeta;"],[0,"&eta;"],[0,"&theta;"],[0,"&iota;"],[0,"&kappa;"],[0,"&lambda;"],[0,"&mu;"],[0,"&nu;"],[0,"&xi;"],[0,"&omicron;"],[0,"&pi;"],[0,"&rho;"],[0,"&sigmaf;"],[0,"&sigma;"],[0,"&tau;"],[0,"&upsi;"],[0,"&phi;"],[0,"&chi;"],[0,"&psi;"],[0,"&omega;"],[7,"&thetasym;"],[0,"&Upsi;"],[2,"&phiv;"],[0,"&piv;"],[5,"&Gammad;"],[0,"&digamma;"],[18,"&kappav;"],[0,"&rhov;"],[3,"&epsiv;"],[0,"&backepsilon;"],[10,"&IOcy;"],[0,"&DJcy;"],[0,"&GJcy;"],[0,"&Jukcy;"],[0,"&DScy;"],[0,"&Iukcy;"],[0,"&YIcy;"],[0,"&Jsercy;"],[0,"&LJcy;"],[0,"&NJcy;"],[0,"&TSHcy;"],[0,"&KJcy;"],[1,"&Ubrcy;"],[0,"&DZcy;"],[0,"&Acy;"],[0,"&Bcy;"],[0,"&Vcy;"],[0,"&Gcy;"],[0,"&Dcy;"],[0,"&IEcy;"],[0,"&ZHcy;"],[0,"&Zcy;"],[0,"&Icy;"],[0,"&Jcy;"],[0,"&Kcy;"],[0,"&Lcy;"],[0,"&Mcy;"],[0,"&Ncy;"],[0,"&Ocy;"],[0,"&Pcy;"],[0,"&Rcy;"],[0,"&Scy;"],[0,"&Tcy;"],[0,"&Ucy;"],[0,"&Fcy;"],[0,"&KHcy;"],[0,"&TScy;"],[0,"&CHcy;"],[0,"&SHcy;"],[0,"&SHCHcy;"],[0,"&HARDcy;"],[0,"&Ycy;"],[0,"&SOFTcy;"],[0,"&Ecy;"],[0,"&YUcy;"],[0,"&YAcy;"],[0,"&acy;"],[0,"&bcy;"],[0,"&vcy;"],[0,"&gcy;"],[0,"&dcy;"],[0,"&iecy;"],[0,"&zhcy;"],[0,"&zcy;"],[0,"&icy;"],[0,"&jcy;"],[0,"&kcy;"],[0,"&lcy;"],[0,"&mcy;"],[0,"&ncy;"],[0,"&ocy;"],[0,"&pcy;"],[0,"&rcy;"],[0,"&scy;"],[0,"&tcy;"],[0,"&ucy;"],[0,"&fcy;"],[0,"&khcy;"],[0,"&tscy;"],[0,"&chcy;"],[0,"&shcy;"],[0,"&shchcy;"],[0,"&hardcy;"],[0,"&ycy;"],[0,"&softcy;"],[0,"&ecy;"],[0,"&yucy;"],[0,"&yacy;"],[1,"&iocy;"],[0,"&djcy;"],[0,"&gjcy;"],[0,"&jukcy;"],[0,"&dscy;"],[0,"&iukcy;"],[0,"&yicy;"],[0,"&jsercy;"],[0,"&ljcy;"],[0,"&njcy;"],[0,"&tshcy;"],[0,"&kjcy;"],[1,"&ubrcy;"],[0,"&dzcy;"],[7074,"&ensp;"],[0,"&emsp;"],[0,"&emsp13;"],[0,"&emsp14;"],[1,"&numsp;"],[0,"&puncsp;"],[0,"&ThinSpace;"],[0,"&hairsp;"],[0,"&NegativeMediumSpace;"],[0,"&zwnj;"],[0,"&zwj;"],[0,"&lrm;"],[0,"&rlm;"],[0,"&dash;"],[2,"&ndash;"],[0,"&mdash;"],[0,"&horbar;"],[0,"&Verbar;"],[1,"&lsquo;"],[0,"&CloseCurlyQuote;"],[0,"&lsquor;"],[1,"&ldquo;"],[0,"&CloseCurlyDoubleQuote;"],[0,"&bdquo;"],[1,"&dagger;"],[0,"&Dagger;"],[0,"&bull;"],[2,"&nldr;"],[0,"&hellip;"],[9,"&permil;"],[0,"&pertenk;"],[0,"&prime;"],[0,"&Prime;"],[0,"&tprime;"],[0,"&backprime;"],[3,"&lsaquo;"],[0,"&rsaquo;"],[3,"&oline;"],[2,"&caret;"],[1,"&hybull;"],[0,"&frasl;"],[10,"&bsemi;"],[7,"&qprime;"],[7,{v:"&MediumSpace;",n:8202,o:"&ThickSpace;"}],[0,"&NoBreak;"],[0,"&af;"],[0,"&InvisibleTimes;"],[0,"&ic;"],[72,"&euro;"],[46,"&tdot;"],[0,"&DotDot;"],[37,"&complexes;"],[2,"&incare;"],[4,"&gscr;"],[0,"&hamilt;"],[0,"&Hfr;"],[0,"&Hopf;"],[0,"&planckh;"],[0,"&hbar;"],[0,"&imagline;"],[0,"&Ifr;"],[0,"&lagran;"],[0,"&ell;"],[1,"&naturals;"],[0,"&numero;"],[0,"&copysr;"],[0,"&weierp;"],[0,"&Popf;"],[0,"&Qopf;"],[0,"&realine;"],[0,"&real;"],[0,"&reals;"],[0,"&rx;"],[3,"&trade;"],[1,"&integers;"],[2,"&mho;"],[0,"&zeetrf;"],[0,"&iiota;"],[2,"&bernou;"],[0,"&Cayleys;"],[1,"&escr;"],[0,"&Escr;"],[0,"&Fouriertrf;"],[1,"&Mellintrf;"],[0,"&order;"],[0,"&alefsym;"],[0,"&beth;"],[0,"&gimel;"],[0,"&daleth;"],[12,"&CapitalDifferentialD;"],[0,"&dd;"],[0,"&ee;"],[0,"&ii;"],[10,"&frac13;"],[0,"&frac23;"],[0,"&frac15;"],[0,"&frac25;"],[0,"&frac35;"],[0,"&frac45;"],[0,"&frac16;"],[0,"&frac56;"],[0,"&frac18;"],[0,"&frac38;"],[0,"&frac58;"],[0,"&frac78;"],[49,"&larr;"],[0,"&ShortUpArrow;"],[0,"&rarr;"],[0,"&darr;"],[0,"&harr;"],[0,"&updownarrow;"],[0,"&nwarr;"],[0,"&nearr;"],[0,"&LowerRightArrow;"],[0,"&LowerLeftArrow;"],[0,"&nlarr;"],[0,"&nrarr;"],[1,{v:"&rarrw;",n:824,o:"&nrarrw;"}],[0,"&Larr;"],[0,"&Uarr;"],[0,"&Rarr;"],[0,"&Darr;"],[0,"&larrtl;"],[0,"&rarrtl;"],[0,"&LeftTeeArrow;"],[0,"&mapstoup;"],[0,"&map;"],[0,"&DownTeeArrow;"],[1,"&hookleftarrow;"],[0,"&hookrightarrow;"],[0,"&larrlp;"],[0,"&looparrowright;"],[0,"&harrw;"],[0,"&nharr;"],[1,"&lsh;"],[0,"&rsh;"],[0,"&ldsh;"],[0,"&rdsh;"],[1,"&crarr;"],[0,"&cularr;"],[0,"&curarr;"],[2,"&circlearrowleft;"],[0,"&circlearrowright;"],[0,"&leftharpoonup;"],[0,"&DownLeftVector;"],[0,"&RightUpVector;"],[0,"&LeftUpVector;"],[0,"&rharu;"],[0,"&DownRightVector;"],[0,"&dharr;"],[0,"&dharl;"],[0,"&RightArrowLeftArrow;"],[0,"&udarr;"],[0,"&LeftArrowRightArrow;"],[0,"&leftleftarrows;"],[0,"&upuparrows;"],[0,"&rightrightarrows;"],[0,"&ddarr;"],[0,"&leftrightharpoons;"],[0,"&Equilibrium;"],[0,"&nlArr;"],[0,"&nhArr;"],[0,"&nrArr;"],[0,"&DoubleLeftArrow;"],[0,"&DoubleUpArrow;"],[0,"&DoubleRightArrow;"],[0,"&dArr;"],[0,"&DoubleLeftRightArrow;"],[0,"&DoubleUpDownArrow;"],[0,"&nwArr;"],[0,"&neArr;"],[0,"&seArr;"],[0,"&swArr;"],[0,"&lAarr;"],[0,"&rAarr;"],[1,"&zigrarr;"],[6,"&larrb;"],[0,"&rarrb;"],[15,"&DownArrowUpArrow;"],[7,"&loarr;"],[0,"&roarr;"],[0,"&hoarr;"],[0,"&forall;"],[0,"&comp;"],[0,{v:"&part;",n:824,o:"&npart;"}],[0,"&exist;"],[0,"&nexist;"],[0,"&empty;"],[1,"&Del;"],[0,"&Element;"],[0,"&NotElement;"],[1,"&ni;"],[0,"&notni;"],[2,"&prod;"],[0,"&coprod;"],[0,"&sum;"],[0,"&minus;"],[0,"&MinusPlus;"],[0,"&dotplus;"],[1,"&Backslash;"],[0,"&lowast;"],[0,"&compfn;"],[1,"&radic;"],[2,"&prop;"],[0,"&infin;"],[0,"&angrt;"],[0,{v:"&ang;",n:8402,o:"&nang;"}],[0,"&angmsd;"],[0,"&angsph;"],[0,"&mid;"],[0,"&nmid;"],[0,"&DoubleVerticalBar;"],[0,"&NotDoubleVerticalBar;"],[0,"&and;"],[0,"&or;"],[0,{v:"&cap;",n:65024,o:"&caps;"}],[0,{v:"&cup;",n:65024,o:"&cups;"}],[0,"&int;"],[0,"&Int;"],[0,"&iiint;"],[0,"&conint;"],[0,"&Conint;"],[0,"&Cconint;"],[0,"&cwint;"],[0,"&ClockwiseContourIntegral;"],[0,"&awconint;"],[0,"&there4;"],[0,"&becaus;"],[0,"&ratio;"],[0,"&Colon;"],[0,"&dotminus;"],[1,"&mDDot;"],[0,"&homtht;"],[0,{v:"&sim;",n:8402,o:"&nvsim;"}],[0,{v:"&backsim;",n:817,o:"&race;"}],[0,{v:"&ac;",n:819,o:"&acE;"}],[0,"&acd;"],[0,"&VerticalTilde;"],[0,"&NotTilde;"],[0,{v:"&eqsim;",n:824,o:"&nesim;"}],[0,"&sime;"],[0,"&NotTildeEqual;"],[0,"&cong;"],[0,"&simne;"],[0,"&ncong;"],[0,"&ap;"],[0,"&nap;"],[0,"&ape;"],[0,{v:"&apid;",n:824,o:"&napid;"}],[0,"&backcong;"],[0,{v:"&asympeq;",n:8402,o:"&nvap;"}],[0,{v:"&bump;",n:824,o:"&nbump;"}],[0,{v:"&bumpe;",n:824,o:"&nbumpe;"}],[0,{v:"&doteq;",n:824,o:"&nedot;"}],[0,"&doteqdot;"],[0,"&efDot;"],[0,"&erDot;"],[0,"&Assign;"],[0,"&ecolon;"],[0,"&ecir;"],[0,"&circeq;"],[1,"&wedgeq;"],[0,"&veeeq;"],[1,"&triangleq;"],[2,"&equest;"],[0,"&ne;"],[0,{v:"&Congruent;",n:8421,o:"&bnequiv;"}],[0,"&nequiv;"],[1,{v:"&le;",n:8402,o:"&nvle;"}],[0,{v:"&ge;",n:8402,o:"&nvge;"}],[0,{v:"&lE;",n:824,o:"&nlE;"}],[0,{v:"&gE;",n:824,o:"&ngE;"}],[0,{v:"&lnE;",n:65024,o:"&lvertneqq;"}],[0,{v:"&gnE;",n:65024,o:"&gvertneqq;"}],[0,{v:"&ll;",n:new Map(co([[824,"&nLtv;"],[7577,"&nLt;"]]))}],[0,{v:"&gg;",n:new Map(co([[824,"&nGtv;"],[7577,"&nGt;"]]))}],[0,"&between;"],[0,"&NotCupCap;"],[0,"&nless;"],[0,"&ngt;"],[0,"&nle;"],[0,"&nge;"],[0,"&lesssim;"],[0,"&GreaterTilde;"],[0,"&nlsim;"],[0,"&ngsim;"],[0,"&LessGreater;"],[0,"&gl;"],[0,"&NotLessGreater;"],[0,"&NotGreaterLess;"],[0,"&pr;"],[0,"&sc;"],[0,"&prcue;"],[0,"&sccue;"],[0,"&PrecedesTilde;"],[0,{v:"&scsim;",n:824,o:"&NotSucceedsTilde;"}],[0,"&NotPrecedes;"],[0,"&NotSucceeds;"],[0,{v:"&sub;",n:8402,o:"&NotSubset;"}],[0,{v:"&sup;",n:8402,o:"&NotSuperset;"}],[0,"&nsub;"],[0,"&nsup;"],[0,"&sube;"],[0,"&supe;"],[0,"&NotSubsetEqual;"],[0,"&NotSupersetEqual;"],[0,{v:"&subne;",n:65024,o:"&varsubsetneq;"}],[0,{v:"&supne;",n:65024,o:"&varsupsetneq;"}],[1,"&cupdot;"],[0,"&UnionPlus;"],[0,{v:"&sqsub;",n:824,o:"&NotSquareSubset;"}],[0,{v:"&sqsup;",n:824,o:"&NotSquareSuperset;"}],[0,"&sqsube;"],[0,"&sqsupe;"],[0,{v:"&sqcap;",n:65024,o:"&sqcaps;"}],[0,{v:"&sqcup;",n:65024,o:"&sqcups;"}],[0,"&CirclePlus;"],[0,"&CircleMinus;"],[0,"&CircleTimes;"],[0,"&osol;"],[0,"&CircleDot;"],[0,"&circledcirc;"],[0,"&circledast;"],[1,"&circleddash;"],[0,"&boxplus;"],[0,"&boxminus;"],[0,"&boxtimes;"],[0,"&dotsquare;"],[0,"&RightTee;"],[0,"&dashv;"],[0,"&DownTee;"],[0,"&bot;"],[1,"&models;"],[0,"&DoubleRightTee;"],[0,"&Vdash;"],[0,"&Vvdash;"],[0,"&VDash;"],[0,"&nvdash;"],[0,"&nvDash;"],[0,"&nVdash;"],[0,"&nVDash;"],[0,"&prurel;"],[1,"&LeftTriangle;"],[0,"&RightTriangle;"],[0,{v:"&LeftTriangleEqual;",n:8402,o:"&nvltrie;"}],[0,{v:"&RightTriangleEqual;",n:8402,o:"&nvrtrie;"}],[0,"&origof;"],[0,"&imof;"],[0,"&multimap;"],[0,"&hercon;"],[0,"&intcal;"],[0,"&veebar;"],[1,"&barvee;"],[0,"&angrtvb;"],[0,"&lrtri;"],[0,"&bigwedge;"],[0,"&bigvee;"],[0,"&bigcap;"],[0,"&bigcup;"],[0,"&diam;"],[0,"&sdot;"],[0,"&sstarf;"],[0,"&divideontimes;"],[0,"&bowtie;"],[0,"&ltimes;"],[0,"&rtimes;"],[0,"&leftthreetimes;"],[0,"&rightthreetimes;"],[0,"&backsimeq;"],[0,"&curlyvee;"],[0,"&curlywedge;"],[0,"&Sub;"],[0,"&Sup;"],[0,"&Cap;"],[0,"&Cup;"],[0,"&fork;"],[0,"&epar;"],[0,"&lessdot;"],[0,"&gtdot;"],[0,{v:"&Ll;",n:824,o:"&nLl;"}],[0,{v:"&Gg;",n:824,o:"&nGg;"}],[0,{v:"&leg;",n:65024,o:"&lesg;"}],[0,{v:"&gel;",n:65024,o:"&gesl;"}],[2,"&cuepr;"],[0,"&cuesc;"],[0,"&NotPrecedesSlantEqual;"],[0,"&NotSucceedsSlantEqual;"],[0,"&NotSquareSubsetEqual;"],[0,"&NotSquareSupersetEqual;"],[2,"&lnsim;"],[0,"&gnsim;"],[0,"&precnsim;"],[0,"&scnsim;"],[0,"&nltri;"],[0,"&NotRightTriangle;"],[0,"&nltrie;"],[0,"&NotRightTriangleEqual;"],[0,"&vellip;"],[0,"&ctdot;"],[0,"&utdot;"],[0,"&dtdot;"],[0,"&disin;"],[0,"&isinsv;"],[0,"&isins;"],[0,{v:"&isindot;",n:824,o:"&notindot;"}],[0,"&notinvc;"],[0,"&notinvb;"],[1,{v:"&isinE;",n:824,o:"&notinE;"}],[0,"&nisd;"],[0,"&xnis;"],[0,"&nis;"],[0,"&notnivc;"],[0,"&notnivb;"],[6,"&barwed;"],[0,"&Barwed;"],[1,"&lceil;"],[0,"&rceil;"],[0,"&LeftFloor;"],[0,"&rfloor;"],[0,"&drcrop;"],[0,"&dlcrop;"],[0,"&urcrop;"],[0,"&ulcrop;"],[0,"&bnot;"],[1,"&profline;"],[0,"&profsurf;"],[1,"&telrec;"],[0,"&target;"],[5,"&ulcorn;"],[0,"&urcorn;"],[0,"&dlcorn;"],[0,"&drcorn;"],[2,"&frown;"],[0,"&smile;"],[9,"&cylcty;"],[0,"&profalar;"],[7,"&topbot;"],[6,"&ovbar;"],[1,"&solbar;"],[60,"&angzarr;"],[51,"&lmoustache;"],[0,"&rmoustache;"],[2,"&OverBracket;"],[0,"&bbrk;"],[0,"&bbrktbrk;"],[37,"&OverParenthesis;"],[0,"&UnderParenthesis;"],[0,"&OverBrace;"],[0,"&UnderBrace;"],[2,"&trpezium;"],[4,"&elinters;"],[59,"&blank;"],[164,"&circledS;"],[55,"&boxh;"],[1,"&boxv;"],[9,"&boxdr;"],[3,"&boxdl;"],[3,"&boxur;"],[3,"&boxul;"],[3,"&boxvr;"],[7,"&boxvl;"],[7,"&boxhd;"],[7,"&boxhu;"],[7,"&boxvh;"],[19,"&boxH;"],[0,"&boxV;"],[0,"&boxdR;"],[0,"&boxDr;"],[0,"&boxDR;"],[0,"&boxdL;"],[0,"&boxDl;"],[0,"&boxDL;"],[0,"&boxuR;"],[0,"&boxUr;"],[0,"&boxUR;"],[0,"&boxuL;"],[0,"&boxUl;"],[0,"&boxUL;"],[0,"&boxvR;"],[0,"&boxVr;"],[0,"&boxVR;"],[0,"&boxvL;"],[0,"&boxVl;"],[0,"&boxVL;"],[0,"&boxHd;"],[0,"&boxhD;"],[0,"&boxHD;"],[0,"&boxHu;"],[0,"&boxhU;"],[0,"&boxHU;"],[0,"&boxvH;"],[0,"&boxVh;"],[0,"&boxVH;"],[19,"&uhblk;"],[3,"&lhblk;"],[3,"&block;"],[8,"&blk14;"],[0,"&blk12;"],[0,"&blk34;"],[13,"&square;"],[8,"&blacksquare;"],[0,"&EmptyVerySmallSquare;"],[1,"&rect;"],[0,"&marker;"],[2,"&fltns;"],[1,"&bigtriangleup;"],[0,"&blacktriangle;"],[0,"&triangle;"],[2,"&blacktriangleright;"],[0,"&rtri;"],[3,"&bigtriangledown;"],[0,"&blacktriangledown;"],[0,"&dtri;"],[2,"&blacktriangleleft;"],[0,"&ltri;"],[6,"&loz;"],[0,"&cir;"],[32,"&tridot;"],[2,"&bigcirc;"],[8,"&ultri;"],[0,"&urtri;"],[0,"&lltri;"],[0,"&EmptySmallSquare;"],[0,"&FilledSmallSquare;"],[8,"&bigstar;"],[0,"&star;"],[7,"&phone;"],[49,"&female;"],[1,"&male;"],[29,"&spades;"],[2,"&clubs;"],[1,"&hearts;"],[0,"&diamondsuit;"],[3,"&sung;"],[2,"&flat;"],[0,"&natural;"],[0,"&sharp;"],[163,"&check;"],[3,"&cross;"],[8,"&malt;"],[21,"&sext;"],[33,"&VerticalSeparator;"],[25,"&lbbrk;"],[0,"&rbbrk;"],[84,"&bsolhsub;"],[0,"&suphsol;"],[28,"&LeftDoubleBracket;"],[0,"&RightDoubleBracket;"],[0,"&lang;"],[0,"&rang;"],[0,"&Lang;"],[0,"&Rang;"],[0,"&loang;"],[0,"&roang;"],[7,"&longleftarrow;"],[0,"&longrightarrow;"],[0,"&longleftrightarrow;"],[0,"&DoubleLongLeftArrow;"],[0,"&DoubleLongRightArrow;"],[0,"&DoubleLongLeftRightArrow;"],[1,"&longmapsto;"],[2,"&dzigrarr;"],[258,"&nvlArr;"],[0,"&nvrArr;"],[0,"&nvHarr;"],[0,"&Map;"],[6,"&lbarr;"],[0,"&bkarow;"],[0,"&lBarr;"],[0,"&dbkarow;"],[0,"&drbkarow;"],[0,"&DDotrahd;"],[0,"&UpArrowBar;"],[0,"&DownArrowBar;"],[2,"&Rarrtl;"],[2,"&latail;"],[0,"&ratail;"],[0,"&lAtail;"],[0,"&rAtail;"],[0,"&larrfs;"],[0,"&rarrfs;"],[0,"&larrbfs;"],[0,"&rarrbfs;"],[2,"&nwarhk;"],[0,"&nearhk;"],[0,"&hksearow;"],[0,"&hkswarow;"],[0,"&nwnear;"],[0,"&nesear;"],[0,"&seswar;"],[0,"&swnwar;"],[8,{v:"&rarrc;",n:824,o:"&nrarrc;"}],[1,"&cudarrr;"],[0,"&ldca;"],[0,"&rdca;"],[0,"&cudarrl;"],[0,"&larrpl;"],[2,"&curarrm;"],[0,"&cularrp;"],[7,"&rarrpl;"],[2,"&harrcir;"],[0,"&Uarrocir;"],[0,"&lurdshar;"],[0,"&ldrushar;"],[2,"&LeftRightVector;"],[0,"&RightUpDownVector;"],[0,"&DownLeftRightVector;"],[0,"&LeftUpDownVector;"],[0,"&LeftVectorBar;"],[0,"&RightVectorBar;"],[0,"&RightUpVectorBar;"],[0,"&RightDownVectorBar;"],[0,"&DownLeftVectorBar;"],[0,"&DownRightVectorBar;"],[0,"&LeftUpVectorBar;"],[0,"&LeftDownVectorBar;"],[0,"&LeftTeeVector;"],[0,"&RightTeeVector;"],[0,"&RightUpTeeVector;"],[0,"&RightDownTeeVector;"],[0,"&DownLeftTeeVector;"],[0,"&DownRightTeeVector;"],[0,"&LeftUpTeeVector;"],[0,"&LeftDownTeeVector;"],[0,"&lHar;"],[0,"&uHar;"],[0,"&rHar;"],[0,"&dHar;"],[0,"&luruhar;"],[0,"&ldrdhar;"],[0,"&ruluhar;"],[0,"&rdldhar;"],[0,"&lharul;"],[0,"&llhard;"],[0,"&rharul;"],[0,"&lrhard;"],[0,"&udhar;"],[0,"&duhar;"],[0,"&RoundImplies;"],[0,"&erarr;"],[0,"&simrarr;"],[0,"&larrsim;"],[0,"&rarrsim;"],[0,"&rarrap;"],[0,"&ltlarr;"],[1,"&gtrarr;"],[0,"&subrarr;"],[1,"&suplarr;"],[0,"&lfisht;"],[0,"&rfisht;"],[0,"&ufisht;"],[0,"&dfisht;"],[5,"&lopar;"],[0,"&ropar;"],[4,"&lbrke;"],[0,"&rbrke;"],[0,"&lbrkslu;"],[0,"&rbrksld;"],[0,"&lbrksld;"],[0,"&rbrkslu;"],[0,"&langd;"],[0,"&rangd;"],[0,"&lparlt;"],[0,"&rpargt;"],[0,"&gtlPar;"],[0,"&ltrPar;"],[3,"&vzigzag;"],[1,"&vangrt;"],[0,"&angrtvbd;"],[6,"&ange;"],[0,"&range;"],[0,"&dwangle;"],[0,"&uwangle;"],[0,"&angmsdaa;"],[0,"&angmsdab;"],[0,"&angmsdac;"],[0,"&angmsdad;"],[0,"&angmsdae;"],[0,"&angmsdaf;"],[0,"&angmsdag;"],[0,"&angmsdah;"],[0,"&bemptyv;"],[0,"&demptyv;"],[0,"&cemptyv;"],[0,"&raemptyv;"],[0,"&laemptyv;"],[0,"&ohbar;"],[0,"&omid;"],[0,"&opar;"],[1,"&operp;"],[1,"&olcross;"],[0,"&odsold;"],[1,"&olcir;"],[0,"&ofcir;"],[0,"&olt;"],[0,"&ogt;"],[0,"&cirscir;"],[0,"&cirE;"],[0,"&solb;"],[0,"&bsolb;"],[3,"&boxbox;"],[3,"&trisb;"],[0,"&rtriltri;"],[0,{v:"&LeftTriangleBar;",n:824,o:"&NotLeftTriangleBar;"}],[0,{v:"&RightTriangleBar;",n:824,o:"&NotRightTriangleBar;"}],[11,"&iinfin;"],[0,"&infintie;"],[0,"&nvinfin;"],[4,"&eparsl;"],[0,"&smeparsl;"],[0,"&eqvparsl;"],[5,"&blacklozenge;"],[8,"&RuleDelayed;"],[1,"&dsol;"],[9,"&bigodot;"],[0,"&bigoplus;"],[0,"&bigotimes;"],[1,"&biguplus;"],[1,"&bigsqcup;"],[5,"&iiiint;"],[0,"&fpartint;"],[2,"&cirfnint;"],[0,"&awint;"],[0,"&rppolint;"],[0,"&scpolint;"],[0,"&npolint;"],[0,"&pointint;"],[0,"&quatint;"],[0,"&intlarhk;"],[10,"&pluscir;"],[0,"&plusacir;"],[0,"&simplus;"],[0,"&plusdu;"],[0,"&plussim;"],[0,"&plustwo;"],[1,"&mcomma;"],[0,"&minusdu;"],[2,"&loplus;"],[0,"&roplus;"],[0,"&Cross;"],[0,"&timesd;"],[0,"&timesbar;"],[1,"&smashp;"],[0,"&lotimes;"],[0,"&rotimes;"],[0,"&otimesas;"],[0,"&Otimes;"],[0,"&odiv;"],[0,"&triplus;"],[0,"&triminus;"],[0,"&tritime;"],[0,"&intprod;"],[2,"&amalg;"],[0,"&capdot;"],[1,"&ncup;"],[0,"&ncap;"],[0,"&capand;"],[0,"&cupor;"],[0,"&cupcap;"],[0,"&capcup;"],[0,"&cupbrcap;"],[0,"&capbrcup;"],[0,"&cupcup;"],[0,"&capcap;"],[0,"&ccups;"],[0,"&ccaps;"],[2,"&ccupssm;"],[2,"&And;"],[0,"&Or;"],[0,"&andand;"],[0,"&oror;"],[0,"&orslope;"],[0,"&andslope;"],[1,"&andv;"],[0,"&orv;"],[0,"&andd;"],[0,"&ord;"],[1,"&wedbar;"],[6,"&sdote;"],[3,"&simdot;"],[2,{v:"&congdot;",n:824,o:"&ncongdot;"}],[0,"&easter;"],[0,"&apacir;"],[0,{v:"&apE;",n:824,o:"&napE;"}],[0,"&eplus;"],[0,"&pluse;"],[0,"&Esim;"],[0,"&Colone;"],[0,"&Equal;"],[1,"&ddotseq;"],[0,"&equivDD;"],[0,"&ltcir;"],[0,"&gtcir;"],[0,"&ltquest;"],[0,"&gtquest;"],[0,{v:"&leqslant;",n:824,o:"&nleqslant;"}],[0,{v:"&geqslant;",n:824,o:"&ngeqslant;"}],[0,"&lesdot;"],[0,"&gesdot;"],[0,"&lesdoto;"],[0,"&gesdoto;"],[0,"&lesdotor;"],[0,"&gesdotol;"],[0,"&lap;"],[0,"&gap;"],[0,"&lne;"],[0,"&gne;"],[0,"&lnap;"],[0,"&gnap;"],[0,"&lEg;"],[0,"&gEl;"],[0,"&lsime;"],[0,"&gsime;"],[0,"&lsimg;"],[0,"&gsiml;"],[0,"&lgE;"],[0,"&glE;"],[0,"&lesges;"],[0,"&gesles;"],[0,"&els;"],[0,"&egs;"],[0,"&elsdot;"],[0,"&egsdot;"],[0,"&el;"],[0,"&eg;"],[2,"&siml;"],[0,"&simg;"],[0,"&simlE;"],[0,"&simgE;"],[0,{v:"&LessLess;",n:824,o:"&NotNestedLessLess;"}],[0,{v:"&GreaterGreater;",n:824,o:"&NotNestedGreaterGreater;"}],[1,"&glj;"],[0,"&gla;"],[0,"&ltcc;"],[0,"&gtcc;"],[0,"&lescc;"],[0,"&gescc;"],[0,"&smt;"],[0,"&lat;"],[0,{v:"&smte;",n:65024,o:"&smtes;"}],[0,{v:"&late;",n:65024,o:"&lates;"}],[0,"&bumpE;"],[0,{v:"&PrecedesEqual;",n:824,o:"&NotPrecedesEqual;"}],[0,{v:"&sce;",n:824,o:"&NotSucceedsEqual;"}],[2,"&prE;"],[0,"&scE;"],[0,"&precneqq;"],[0,"&scnE;"],[0,"&prap;"],[0,"&scap;"],[0,"&precnapprox;"],[0,"&scnap;"],[0,"&Pr;"],[0,"&Sc;"],[0,"&subdot;"],[0,"&supdot;"],[0,"&subplus;"],[0,"&supplus;"],[0,"&submult;"],[0,"&supmult;"],[0,"&subedot;"],[0,"&supedot;"],[0,{v:"&subE;",n:824,o:"&nsubE;"}],[0,{v:"&supE;",n:824,o:"&nsupE;"}],[0,"&subsim;"],[0,"&supsim;"],[2,{v:"&subnE;",n:65024,o:"&varsubsetneqq;"}],[0,{v:"&supnE;",n:65024,o:"&varsupsetneqq;"}],[2,"&csub;"],[0,"&csup;"],[0,"&csube;"],[0,"&csupe;"],[0,"&subsup;"],[0,"&supsub;"],[0,"&subsub;"],[0,"&supsup;"],[0,"&suphsub;"],[0,"&supdsub;"],[0,"&forkv;"],[0,"&topfork;"],[0,"&mlcp;"],[8,"&Dashv;"],[1,"&Vdashl;"],[0,"&Barv;"],[0,"&vBar;"],[0,"&vBarv;"],[1,"&Vbar;"],[0,"&Not;"],[0,"&bNot;"],[0,"&rnmid;"],[0,"&cirmid;"],[0,"&midcir;"],[0,"&topcir;"],[0,"&nhpar;"],[0,"&parsim;"],[9,{v:"&parsl;",n:8421,o:"&nparsl;"}],[44343,{n:new Map(co([[56476,"&Ascr;"],[1,"&Cscr;"],[0,"&Dscr;"],[2,"&Gscr;"],[2,"&Jscr;"],[0,"&Kscr;"],[2,"&Nscr;"],[0,"&Oscr;"],[0,"&Pscr;"],[0,"&Qscr;"],[1,"&Sscr;"],[0,"&Tscr;"],[0,"&Uscr;"],[0,"&Vscr;"],[0,"&Wscr;"],[0,"&Xscr;"],[0,"&Yscr;"],[0,"&Zscr;"],[0,"&ascr;"],[0,"&bscr;"],[0,"&cscr;"],[0,"&dscr;"],[1,"&fscr;"],[1,"&hscr;"],[0,"&iscr;"],[0,"&jscr;"],[0,"&kscr;"],[0,"&lscr;"],[0,"&mscr;"],[0,"&nscr;"],[1,"&pscr;"],[0,"&qscr;"],[0,"&rscr;"],[0,"&sscr;"],[0,"&tscr;"],[0,"&uscr;"],[0,"&vscr;"],[0,"&wscr;"],[0,"&xscr;"],[0,"&yscr;"],[0,"&zscr;"],[52,"&Afr;"],[0,"&Bfr;"],[1,"&Dfr;"],[0,"&Efr;"],[0,"&Ffr;"],[0,"&Gfr;"],[2,"&Jfr;"],[0,"&Kfr;"],[0,"&Lfr;"],[0,"&Mfr;"],[0,"&Nfr;"],[0,"&Ofr;"],[0,"&Pfr;"],[0,"&Qfr;"],[1,"&Sfr;"],[0,"&Tfr;"],[0,"&Ufr;"],[0,"&Vfr;"],[0,"&Wfr;"],[0,"&Xfr;"],[0,"&Yfr;"],[1,"&afr;"],[0,"&bfr;"],[0,"&cfr;"],[0,"&dfr;"],[0,"&efr;"],[0,"&ffr;"],[0,"&gfr;"],[0,"&hfr;"],[0,"&ifr;"],[0,"&jfr;"],[0,"&kfr;"],[0,"&lfr;"],[0,"&mfr;"],[0,"&nfr;"],[0,"&ofr;"],[0,"&pfr;"],[0,"&qfr;"],[0,"&rfr;"],[0,"&sfr;"],[0,"&tfr;"],[0,"&ufr;"],[0,"&vfr;"],[0,"&wfr;"],[0,"&xfr;"],[0,"&yfr;"],[0,"&zfr;"],[0,"&Aopf;"],[0,"&Bopf;"],[1,"&Dopf;"],[0,"&Eopf;"],[0,"&Fopf;"],[0,"&Gopf;"],[1,"&Iopf;"],[0,"&Jopf;"],[0,"&Kopf;"],[0,"&Lopf;"],[0,"&Mopf;"],[1,"&Oopf;"],[3,"&Sopf;"],[0,"&Topf;"],[0,"&Uopf;"],[0,"&Vopf;"],[0,"&Wopf;"],[0,"&Xopf;"],[0,"&Yopf;"],[1,"&aopf;"],[0,"&bopf;"],[0,"&copf;"],[0,"&dopf;"],[0,"&eopf;"],[0,"&fopf;"],[0,"&gopf;"],[0,"&hopf;"],[0,"&iopf;"],[0,"&jopf;"],[0,"&kopf;"],[0,"&lopf;"],[0,"&mopf;"],[0,"&nopf;"],[0,"&oopf;"],[0,"&popf;"],[0,"&qopf;"],[0,"&ropf;"],[0,"&sopf;"],[0,"&topf;"],[0,"&uopf;"],[0,"&vopf;"],[0,"&wopf;"],[0,"&xopf;"],[0,"&yopf;"],[0,"&zopf;"]]))}],[8906,"&fflig;"],[0,"&filig;"],[0,"&fllig;"],[0,"&ffilig;"],[0,"&ffllig;"]]));var Jo={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"&quot;"],[38,"&amp;"],[39,"&apos;"],[60,"&lt;"],[62,"&gt;"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,i){return o.codePointAt(i)}:function(o,i){return(o.charCodeAt(i)&64512)===55296?(o.charCodeAt(i)-55296)*1024+o.charCodeAt(i+1)-56320+65536:o.charCodeAt(i)};function r(o){for(var i="",a=0,s;(s=t.xmlReplacer.exec(o))!==null;){var u=s.index,l=o.charCodeAt(u),c=e.get(l);c!==void 0?(i+=o.substring(a,u)+c,a=u+1):(i+="".concat(o.substring(a,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),a=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return i+o.substr(a)}t.encodeXML=r,t.escape=r;function n(o,i){return function(s){for(var u,l=0,c="";u=o.exec(s);)l!==u.index&&(c+=s.substring(l,u.index)),c+=i.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,"&quot;"],[38,"&amp;"],[160,"&nbsp;"]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&amp;"],[60,"&lt;"],[62,"&gt;"],[160,"&nbsp;"]]))})(Jo);var _4=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(ur,"__esModule",{value:!0});ur.encodeNonAsciiHTML=ur.encodeHTML=void 0;var k4=_4(mu),S0=Jo,I4=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function D4(t){return E0(I4,t)}ur.encodeHTML=D4;function L4(t){return E0(S0.xmlReplacer,t)}ur.encodeNonAsciiHTML=L4;function E0(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var i=o.index;r+=e.substring(n,i);var a=e.charCodeAt(i),s=k4.default.get(a);if(typeof s=="object"){if(i+1<e.length){var u=e.charCodeAt(i+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=i+1;else{var c=(0,S0.getCodePoint)(e,i);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==a)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=_n,r=ur,n=Jo,o;(function(f){f[f.XML=0]="XML",f[f.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var i;(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"})(i=t.EncodingMode||(t.EncodingMode={}));function a(f,d){d===void 0&&(d=o.XML);var m=typeof d=="number"?d:d.level;if(m===o.HTML){var g=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(f,g)}return(0,e.decodeXML)(f)}t.decode=a;function s(f,d){var m;d===void 0&&(d=o.XML);var g=typeof d=="number"?{level:d}:d;return(m=g.mode)!==null&&m!==void 0||(g.mode=e.DecodingMode.Strict),a(f,g)}t.decodeStrict=s;function u(f,d){d===void 0&&(d=o.XML);var m=typeof d=="number"?{level:d}:d;return m.mode===i.UTF8?(0,n.escapeUTF8)(f):m.mode===i.Attribute?(0,n.escapeAttribute)(f):m.mode===i.Text?(0,n.escapeText)(f):m.level===o.HTML?m.mode===i.ASCII?(0,r.encodeNonAsciiHTML)(f):(0,r.encodeHTML)(f):(0,n.encodeXML)(f)}t.encode=u;var l=Jo;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var c=ur;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=_n;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}})})(w0);var Lr={};Object.defineProperty(Lr,"__esModule",{value:!0});Lr.attributeNames=Lr.elementNames=void 0;Lr.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]}));Lr.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 Tr=U&&U.__assign||function(){return Tr=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},Tr.apply(this,arguments)},M4=U&&U.__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]}),$4=U&&U.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),B4=U&&U.__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)&&M4(e,t,r);return $4(e,t),e};Object.defineProperty(qn,"__esModule",{value:!0});qn.render=void 0;var xt=B4(en),Zo=w0,C0=Lr,F4=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function H4(t){return t.replace(/"/g,"&quot;")}function q4(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?H4:e.xmlMode||e.encodeEntities!=="utf8"?Zo.encodeXML:Zo.escapeAttribute;return Object.keys(t).map(function(o){var i,a,s=(i=t[o])!==null&&i!==void 0?i:"";return e.xmlMode==="foreign"&&(o=(a=C0.attributeNames.get(o))!==null&&a!==void 0?a:o),!e.emptyAttrs&&!e.xmlMode&&s===""?o:"".concat(o,'="').concat(n(s),'"')}).join(" ")}}var Cc=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function Di(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=z4(r[o],e);return n}qn.render=Di;qn.default=Di;function z4(t,e){switch(t.type){case xt.Root:return Di(t.children,e);case xt.Doctype:case xt.Directive:return G4(t);case xt.Comment:return K4(t);case xt.CDATA:return X4(t);case xt.Script:case xt.Style:case xt.Tag:return W4(t,e);case xt.Text:return Y4(t,e)}}var U4=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),V4=new Set(["svg","math"]);function W4(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=C0.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&U4.has(t.parent.name)&&(e=Tr(Tr({},e),{xmlMode:!1}))),!e.xmlMode&&V4.has(t.name)&&(e=Tr(Tr({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=q4(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Cc.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=Di(t.children,e)),(e.xmlMode||!Cc.has(t.name))&&(n+="</".concat(t.name,">"))),n}function G4(t){return"<".concat(t.data,">")}function Y4(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&F4.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,Zo.encodeXML)(n):(0,Zo.escapeText)(n)),n}function X4(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function K4(t){return"<!--".concat(t.data,"-->")}var J4=U&&U.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Xt,"__esModule",{value:!0});Xt.getOuterHTML=T0;Xt.getInnerHTML=eS;Xt.getText=To;Xt.textContent=Qa;Xt.innerText=es;var lt=Rt,Z4=J4(qn),Q4=en;function T0(t,e){return(0,Z4.default)(t,e)}function eS(t,e){return(0,lt.hasChildren)(t)?t.children.map(function(r){return T0(r,e)}).join(""):""}function To(t){return Array.isArray(t)?t.map(To).join(""):(0,lt.isTag)(t)?t.name==="br"?`
236
+ `:To(t.children):(0,lt.isCDATA)(t)?To(t.children):(0,lt.isText)(t)?t.data:""}function Qa(t){return Array.isArray(t)?t.map(Qa).join(""):(0,lt.hasChildren)(t)&&!(0,lt.isComment)(t)?Qa(t.children):(0,lt.isText)(t)?t.data:""}function es(t){return Array.isArray(t)?t.map(es).join(""):(0,lt.hasChildren)(t)&&(t.type===Q4.ElementType.Tag||(0,lt.isCDATA)(t))?es(t.children):(0,lt.isText)(t)?t.data:""}var bt={};Object.defineProperty(bt,"__esModule",{value:!0});bt.getChildren=N0;bt.getParent=A0;bt.getSiblings=tS;bt.getAttributeValue=rS;bt.hasAttrib=nS;bt.getName=oS;bt.nextElementSibling=iS;bt.prevElementSibling=aS;var bu=Rt;function N0(t){return(0,bu.hasChildren)(t)?t.children:[]}function A0(t){return t.parent||null}function tS(t){var e,r,n=A0(t);if(n!=null)return N0(n);for(var o=[t],i=t.prev,a=t.next;i!=null;)o.unshift(i),e=i,i=e.prev;for(;a!=null;)o.push(a),r=a,a=r.next;return o}function rS(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function nS(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function oS(t){return t.name}function iS(t){for(var e,r=t.next;r!==null&&!(0,bu.isTag)(r);)e=r,r=e.next;return r}function aS(t){for(var e,r=t.prev;r!==null&&!(0,bu.isTag)(r);)e=r,r=e.prev;return r}var Kt={};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.removeElement=zn;Kt.replaceElement=sS;Kt.appendChild=uS;Kt.append=lS;Kt.prependChild=cS;Kt.prepend=dS;function zn(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 sS(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 i=o.children;i[i.lastIndexOf(t)]=e,t.parent=null}}function uS(t,e){if(zn(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 lS(t,e){zn(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 cS(t,e){if(zn(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 dS(t,e){zn(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 _t={};Object.defineProperty(_t,"__esModule",{value:!0});_t.filter=fS;_t.find=O0;_t.findOneChild=pS;_t.findOne=j0;_t.existsOne=R0;_t.findAll=hS;var lr=Rt;function fS(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),O0(t,Array.isArray(e)?e:[e],r,n)}function O0(t,e,r,n){for(var o=[],i=[Array.isArray(e)?e:[e]],a=[0];;){if(a[0]>=i[0].length){if(a.length===1)return o;i.shift(),a.shift();continue}var s=i[0][a[0]++];if(t(s)&&(o.push(s),--n<=0))return o;r&&(0,lr.hasChildren)(s)&&s.children.length>0&&(a.unshift(0),i.unshift(s.children))}}function pS(t,e){return e.find(t)}function j0(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var i=n[o];if((0,lr.isTag)(i)&&t(i))return i;if(r&&(0,lr.hasChildren)(i)&&i.children.length>0){var a=j0(t,i.children,!0);if(a)return a}}return null}function R0(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,lr.isTag)(r)&&t(r)||(0,lr.hasChildren)(r)&&R0(t,r.children)})}function hS(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 i=n[0][o[0]++];(0,lr.isTag)(i)&&t(i)&&r.push(i),(0,lr.hasChildren)(i)&&i.children.length>0&&(o.unshift(0),n.unshift(i.children))}}var kt={};Object.defineProperty(kt,"__esModule",{value:!0});kt.testElement=bS;kt.getElements=gS;kt.getElementById=yS;kt.getElementsByTagName=vS;kt.getElementsByClassName=xS;kt.getElementsByTagType=wS;var tr=Rt,Un=_t,Qo={tag_name:function(t){return typeof t=="function"?function(e){return(0,tr.isTag)(e)&&t(e.name)}:t==="*"?tr.isTag:function(e){return(0,tr.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,tr.isText)(e)&&t(e.data)}:function(e){return(0,tr.isText)(e)&&e.data===t}}};function gu(t,e){return typeof e=="function"?function(r){return(0,tr.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,tr.isTag)(r)&&r.attribs[t]===e}}function mS(t,e){return function(r){return t(r)||e(r)}}function P0(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(Qo,r)?Qo[r](n):gu(r,n)});return e.length===0?null:e.reduce(mS)}function bS(t,e){var r=P0(t);return r?r(e):!0}function gS(t,e,r,n){n===void 0&&(n=1/0);var o=P0(t);return o?(0,Un.filter)(o,e,r,n):[]}function yS(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,Un.findOne)(gu("id",t),e,r)}function vS(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Un.filter)(Qo.tag_name(t),e,r,n)}function xS(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Un.filter)(gu("class",t),e,r,n)}function wS(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,Un.filter)(Qo.tag_type(t),e,r,n)}var mr={};Object.defineProperty(mr,"__esModule",{value:!0});mr.DocumentPosition=void 0;mr.removeSubsets=SS;mr.compareDocumentPosition=_0;mr.uniqueSort=ES;var Tc=Rt;function SS(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 Ke;(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"})(Ke||(mr.DocumentPosition=Ke={}));function _0(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,Tc.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,Tc.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var i=Math.min(r.length,n.length),a=0;a<i&&r[a]===n[a];)a++;if(a===0)return Ke.DISCONNECTED;var s=r[a-1],u=s.children,l=r[a],c=n[a];return u.indexOf(l)>u.indexOf(c)?s===e?Ke.FOLLOWING|Ke.CONTAINED_BY:Ke.FOLLOWING:s===t?Ke.PRECEDING|Ke.CONTAINS:Ke.PRECEDING}function ES(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=_0(e,r);return n&Ke.PRECEDING?-1:n&Ke.FOLLOWING?1:0}),t}var yu={};Object.defineProperty(yu,"__esModule",{value:!0});yu.getFeed=TS;var CS=Xt,Vn=kt;function TS(t){var e=ei(RS,t);return e?e.name==="feed"?NS(e):AS(e):null}function NS(t){var e,r=t.children,n={type:"atom",items:(0,Vn.getElementsByTagName)("entry",r).map(function(a){var s,u=a.children,l={media:k0(u)};_e(l,"id","id",u),_e(l,"title","title",u);var c=(s=ei("link",u))===null||s===void 0?void 0:s.attribs.href;c&&(l.link=c);var h=Bt("summary",u)||Bt("content",u);h&&(l.description=h);var f=Bt("updated",u);return f&&(l.pubDate=new Date(f)),l})};_e(n,"id","id",r),_e(n,"title","title",r);var o=(e=ei("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),_e(n,"description","subtitle",r);var i=Bt("updated",r);return i&&(n.updated=new Date(i)),_e(n,"author","email",r,!0),n}function AS(t){var e,r,n=(r=(e=ei("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,Vn.getElementsByTagName)("item",t.children).map(function(a){var s=a.children,u={media:k0(s)};_e(u,"id","guid",s),_e(u,"title","title",s),_e(u,"link","link",s),_e(u,"description","description",s);var l=Bt("pubDate",s)||Bt("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};_e(o,"title","title",n),_e(o,"link","link",n),_e(o,"description","description",n);var i=Bt("lastBuildDate",n);return i&&(o.updated=new Date(i)),_e(o,"author","managingEditor",n,!0),o}var OS=["url","type","lang"],jS=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function k0(t){return(0,Vn.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,i=OS;o<i.length;o++){var a=i[o];r[a]&&(n[a]=r[a])}for(var s=0,u=jS;s<u.length;s++){var a=u[s];r[a]&&(n[a]=parseInt(r[a],10))}return r.expression&&(n.expression=r.expression),n})}function ei(t,e){return(0,Vn.getElementsByTagName)(t,e,!0,1)[0]}function Bt(t,e,r){return r===void 0&&(r=!1),(0,CS.textContent)((0,Vn.getElementsByTagName)(t,e,r,1)).trim()}function _e(t,e,r,n,o){o===void 0&&(o=!1);var i=Bt(r,n,o);i&&(t[e]=i)}function RS(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=U&&U.__createBinding||(Object.create?function(o,i,a,s){s===void 0&&(s=a);var u=Object.getOwnPropertyDescriptor(i,a);(!u||("get"in u?!i.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return i[a]}}),Object.defineProperty(o,s,u)}:function(o,i,a,s){s===void 0&&(s=a),o[s]=i[a]}),r=U&&U.__exportStar||function(o,i){for(var a in o)a!=="default"&&!Object.prototype.hasOwnProperty.call(i,a)&&e(i,o,a)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(Xt,t),r(bt,t),r(Kt,t),r(_t,t),r(kt,t),r(mr,t),r(yu,t);var n=Rt;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}})})(Co);(function(t){var e=U&&U.__createBinding||(Object.create?function(y,x,S,E){E===void 0&&(E=S);var A=Object.getOwnPropertyDescriptor(x,S);(!A||("get"in A?!x.__esModule:A.writable||A.configurable))&&(A={enumerable:!0,get:function(){return x[S]}}),Object.defineProperty(y,E,A)}:function(y,x,S,E){E===void 0&&(E=S),y[E]=x[S]}),r=U&&U.__setModuleDefault||(Object.create?function(y,x){Object.defineProperty(y,"default",{enumerable:!0,value:x})}:function(y,x){y.default=x}),n=U&&U.__importStar||function(y){if(y&&y.__esModule)return y;var x={};if(y!=null)for(var S in y)S!=="default"&&Object.prototype.hasOwnProperty.call(y,S)&&e(x,y,S);return r(x,y),x},o=U&&U.__importDefault||function(y){return y&&y.__esModule?y:{default:y}};Object.defineProperty(t,"__esModule",{value:!0}),t.DomUtils=t.parseFeed=t.getFeed=t.ElementType=t.Tokenizer=t.createDomStream=t.parseDOM=t.parseDocument=t.DefaultHandler=t.DomHandler=t.Parser=void 0;var i=Pn,a=Pn;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return a.Parser}});var s=Rt,u=Rt;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function l(y,x){var S=new s.DomHandler(void 0,x);return new i.Parser(S,x).end(y),S.root}t.parseDocument=l;function c(y,x){return l(y,x).children}t.parseDOM=c;function h(y,x,S){var E=new s.DomHandler(y,x,S);return new i.Parser(E,x)}t.createDomStream=h;var f=cu;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=n(en);var d=Co,m=Co;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return m.getFeed}});var g={xmlMode:!0};function b(y,x){return x===void 0&&(x=g),(0,d.getFeed)(c(y,x))}t.parseFeed=b,t.DomUtils=n(Co)})(u0);var PS=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},vu={};Object.defineProperty(vu,"__esModule",{value:!0});/*!
237
237
  * is-plain-object <https://github.com/jonschlinkert/is-plain-object>
238
238
  *
239
239
  * Copyright (c) 2014-2017, Jon Schlinkert.
240
240
  * Released under the MIT License.
241
- */function Tc(t){return Object.prototype.toString.call(t)==="[object Object]"}function PS(t){var e,r;return Tc(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(Tc(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}yu.isPlainObject=PS;var _S=function(e){return kS(e)&&!IS(e)};function kS(t){return!!t&&typeof t=="object"}function IS(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||MS(t)}var DS=typeof Symbol=="function"&&Symbol.for,LS=DS?Symbol.for("react.element"):60103;function MS(t){return t.$$typeof===LS}function $S(t){return Array.isArray(t)?[]:{}}function _n(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Mr($S(t),t,e):t}function BS(t,e,r){return t.concat(e).map(function(n){return _n(n,r)})}function FS(t,e){if(!e.customMerge)return Mr;var r=e.customMerge(t);return typeof r=="function"?r:Mr}function HS(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Nc(t){return Object.keys(t).concat(HS(t))}function k0(t,e){try{return e in t}catch{return!1}}function qS(t,e){return k0(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function zS(t,e,r){var n={};return r.isMergeableObject(t)&&Nc(t).forEach(function(o){n[o]=_n(t[o],r)}),Nc(e).forEach(function(o){qS(t,o)||(k0(t,o)&&r.isMergeableObject(e[o])?n[o]=FS(o,r)(t[o],e[o],r):n[o]=_n(e[o],r))}),n}function Mr(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||BS,r.isMergeableObject=r.isMergeableObject||_S,r.cloneUnlessOtherwiseSpecified=_n;var n=Array.isArray(e),o=Array.isArray(t),i=n===o;return i?n?r.arrayMerge(t,e,r):zS(t,e,r):_n(e,r)}Mr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Mr(n,o,r)},{})};var US=Mr,VS=US,I0={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(U,function(){return function(e){function r(E){return E===" "||E===" "||E===`
242
- `||E==="\f"||E==="\r"}function n(E){var A,R=E.exec(e.substring(b));if(R)return A=R[0],b+=A.length,A}for(var o=e.length,i=/^[ \t\n\r\u000c]+/,a=/^[, \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,m,g,b=0,y=[];;){if(n(a),b>=o)return y;h=n(s),f=[],h.slice(-1)===","?(h=h.replace(u,""),S()):x()}function x(){for(n(i),d="",m="in descriptor";;){if(g=e.charAt(b),m==="in descriptor")if(r(g))d&&(f.push(d),d="",m="after descriptor");else if(g===","){b+=1,d&&f.push(d),S();return}else if(g==="(")d=d+g,m="in parens";else if(g===""){d&&f.push(d),S();return}else d=d+g;else if(m==="in parens")if(g===")")d=d+g,m="in descriptor";else if(g===""){f.push(d),S();return}else d=d+g;else if(m==="after descriptor"&&!r(g))if(g===""){S();return}else m="in descriptor",b-=1;b+=1}}function S(){var E=!1,A,R,_,I,M={},B,C,T,k,L;for(I=0;I<f.length;I++)B=f[I],C=B[B.length-1],T=B.substring(0,B.length-1),k=parseInt(T,10),L=parseFloat(T),l.test(T)&&C==="w"?((A||R)&&(E=!0),k===0?E=!0:A=k):c.test(T)&&C==="x"?((A||R||_)&&(E=!0),L<0?E=!0:R=L):l.test(T)&&C==="h"?((_||R)&&(E=!0),k===0?E=!0:_=k):E=!0;E?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+B+"'."):(M.url=h,A&&(M.w=A),R&&(M.d=R),_&&(M.h=_),y.push(M))}}})})(I0);var WS=I0.exports,vu={exports:{}},X=String,D0=function(){return{isColorSupported:!1,reset:X,bold:X,dim:X,italic:X,underline:X,inverse:X,hidden:X,strikethrough:X,black:X,red:X,green:X,yellow:X,blue:X,magenta:X,cyan:X,white:X,gray:X,bgBlack:X,bgRed:X,bgGreen:X,bgYellow:X,bgBlue:X,bgMagenta:X,bgCyan:X,bgWhite:X,blackBright:X,redBright:X,greenBright:X,yellowBright:X,blueBright:X,magentaBright:X,cyanBright:X,whiteBright:X,bgBlackBright:X,bgRedBright:X,bgGreenBright:X,bgYellowBright:X,bgBlueBright:X,bgMagentaBright:X,bgCyanBright:X,bgWhiteBright:X}};vu.exports=D0();vu.exports.createColors=D0;var GS=vu.exports;const YS={},XS=Object.freeze(Object.defineProperty({__proto__:null,default:YS},Symbol.toStringTag,{value:"Module"})),Qe=wb(XS);let Ac=GS,Oc=Qe,es=class L0 extends Error{constructor(e,r,n,o,i,a){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),o&&(this.source=o),a&&(this.plugin=a),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,L0)}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=Ac.isColorSupported);let n=c=>c,o=c=>c,i=c=>c;if(e){let{bold:c,gray:h,red:f}=Ac.createColors(!0);o=d=>c(f(d)),n=d=>h(d),Oc&&(i=d=>Oc(d))}let a=r.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,a.length),l=String(u).length;return a.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,b=Math.max(0,this.column-g),y=Math.max(this.column+g,this.endColumn+g),x=c.slice(b,y),S=n(d.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return o(">")+n(d)+i(x)+`
241
+ */function Nc(t){return Object.prototype.toString.call(t)==="[object Object]"}function _S(t){var e,r;return Nc(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(Nc(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}vu.isPlainObject=_S;var kS=function(e){return IS(e)&&!DS(e)};function IS(t){return!!t&&typeof t=="object"}function DS(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||$S(t)}var LS=typeof Symbol=="function"&&Symbol.for,MS=LS?Symbol.for("react.element"):60103;function $S(t){return t.$$typeof===MS}function BS(t){return Array.isArray(t)?[]:{}}function kn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Mr(BS(t),t,e):t}function FS(t,e,r){return t.concat(e).map(function(n){return kn(n,r)})}function HS(t,e){if(!e.customMerge)return Mr;var r=e.customMerge(t);return typeof r=="function"?r:Mr}function qS(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Ac(t){return Object.keys(t).concat(qS(t))}function I0(t,e){try{return e in t}catch{return!1}}function zS(t,e){return I0(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function US(t,e,r){var n={};return r.isMergeableObject(t)&&Ac(t).forEach(function(o){n[o]=kn(t[o],r)}),Ac(e).forEach(function(o){zS(t,o)||(I0(t,o)&&r.isMergeableObject(e[o])?n[o]=HS(o,r)(t[o],e[o],r):n[o]=kn(e[o],r))}),n}function Mr(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||FS,r.isMergeableObject=r.isMergeableObject||kS,r.cloneUnlessOtherwiseSpecified=kn;var n=Array.isArray(e),o=Array.isArray(t),i=n===o;return i?n?r.arrayMerge(t,e,r):US(t,e,r):kn(e,r)}Mr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Mr(n,o,r)},{})};var VS=Mr,WS=VS,D0={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(U,function(){return function(e){function r(E){return E===" "||E===" "||E===`
242
+ `||E==="\f"||E==="\r"}function n(E){var A,R=E.exec(e.substring(b));if(R)return A=R[0],b+=A.length,A}for(var o=e.length,i=/^[ \t\n\r\u000c]+/,a=/^[, \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,m,g,b=0,y=[];;){if(n(a),b>=o)return y;h=n(s),f=[],h.slice(-1)===","?(h=h.replace(u,""),S()):x()}function x(){for(n(i),d="",m="in descriptor";;){if(g=e.charAt(b),m==="in descriptor")if(r(g))d&&(f.push(d),d="",m="after descriptor");else if(g===","){b+=1,d&&f.push(d),S();return}else if(g==="(")d=d+g,m="in parens";else if(g===""){d&&f.push(d),S();return}else d=d+g;else if(m==="in parens")if(g===")")d=d+g,m="in descriptor";else if(g===""){f.push(d),S();return}else d=d+g;else if(m==="after descriptor"&&!r(g))if(g===""){S();return}else m="in descriptor",b-=1;b+=1}}function S(){var E=!1,A,R,_,I,M={},B,C,T,k,L;for(I=0;I<f.length;I++)B=f[I],C=B[B.length-1],T=B.substring(0,B.length-1),k=parseInt(T,10),L=parseFloat(T),l.test(T)&&C==="w"?((A||R)&&(E=!0),k===0?E=!0:A=k):c.test(T)&&C==="x"?((A||R||_)&&(E=!0),L<0?E=!0:R=L):l.test(T)&&C==="h"?((_||R)&&(E=!0),k===0?E=!0:_=k):E=!0;E?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+B+"'."):(M.url=h,A&&(M.w=A),R&&(M.d=R),_&&(M.h=_),y.push(M))}}})})(D0);var GS=D0.exports,xu={exports:{}},X=String,L0=function(){return{isColorSupported:!1,reset:X,bold:X,dim:X,italic:X,underline:X,inverse:X,hidden:X,strikethrough:X,black:X,red:X,green:X,yellow:X,blue:X,magenta:X,cyan:X,white:X,gray:X,bgBlack:X,bgRed:X,bgGreen:X,bgYellow:X,bgBlue:X,bgMagenta:X,bgCyan:X,bgWhite:X,blackBright:X,redBright:X,greenBright:X,yellowBright:X,blueBright:X,magentaBright:X,cyanBright:X,whiteBright:X,bgBlackBright:X,bgRedBright:X,bgGreenBright:X,bgYellowBright:X,bgBlueBright:X,bgMagentaBright:X,bgCyanBright:X,bgWhiteBright:X}};xu.exports=L0();xu.exports.createColors=L0;var YS=xu.exports;const XS={},KS=Object.freeze(Object.defineProperty({__proto__:null,default:XS},Symbol.toStringTag,{value:"Module"})),Qe=Sb(KS);let Oc=YS,jc=Qe,ts=class M0 extends Error{constructor(e,r,n,o,i,a){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),o&&(this.source=o),a&&(this.plugin=a),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,M0)}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=Oc.isColorSupported);let n=c=>c,o=c=>c,i=c=>c;if(e){let{bold:c,gray:h,red:f}=Oc.createColors(!0);o=d=>c(f(d)),n=d=>h(d),jc&&(i=d=>jc(d))}let a=r.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,a.length),l=String(u).length;return a.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,b=Math.max(0,this.column-g),y=Math.max(this.column+g,this.endColumn+g),x=c.slice(b,y),S=n(d.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return o(">")+n(d)+i(x)+`
243
243
  `+S+o("^")}let m=n(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(d)+i(c)+`
244
244
  `+m+o("^")}return" "+n(d)+i(c)}).join(`
245
245
  `)}toString(){let e=this.showSourceCode();return e&&(e=`
246
246
 
247
247
  `+e+`
248
- `),this.name+": "+this.message+e}};var xu=es;es.default=es;const jc={after:`
248
+ `),this.name+": "+this.message+e}};var wu=ts;ts.default=ts;const Rc={after:`
249
249
  `,beforeClose:`
250
250
  `,beforeComment:`
251
251
  `,beforeDecl:`
252
252
  `,beforeOpen:" ",beforeRule:`
253
- `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function KS(t){return t[0].toUpperCase()+t.slice(1)}let ts=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 i=(e.raws.between||"")+(r?";":"");this.builder(n+o+i,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,i=0;for(;o&&o.type!=="root";)i+=1,o=o.parent;if(n.includes(`
254
- `)){let a=this.raw(e,null,"indent");if(a.length)for(let s=0;s<i;s++)n+=a}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 i=e.nodes[o],a=this.raw(i,"before");a&&this.builder(a),this.stringify(i,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 i=e.parent;if(n==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return jc[n];let a=e.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[n]<"u")return a.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let s="raw"+KS(n);this[s]?o=this[s](a,e):a.walk(u=>{if(o=u.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=jc[n]),a.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(`
253
+ `,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function JS(t){return t[0].toUpperCase()+t.slice(1)}let rs=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 i=(e.raws.between||"")+(r?";":"");this.builder(n+o+i,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,i=0;for(;o&&o.type!=="root";)i+=1,o=o.parent;if(n.includes(`
254
+ `)){let a=this.raw(e,null,"indent");if(a.length)for(let s=0;s<i;s++)n+=a}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 i=e.nodes[o],a=this.raw(i,"before");a&&this.builder(a),this.stringify(i,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 i=e.parent;if(n==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return Rc[n];let a=e.root();if(a.rawCache||(a.rawCache={}),typeof a.rawCache[n]<"u")return a.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let s="raw"+JS(n);this[s]?o=this[s](a,e):a.walk(u=>{if(o=u.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=Rc[n]),a.rawCache[n]=o,o}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
255
255
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
256
256
  `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
257
257
  `)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
258
258
  `)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){let i=n.raws.before.split(`
259
- `);return r=i[i.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 M0=ts;ts.default=ts;let JS=M0;function rs(t,e){new JS(e).stringify(t)}var Di=rs;rs.default=rs;var Vn={};Vn.isClean=Symbol("isClean");Vn.my=Symbol("my");let ZS=xu,QS=M0,eE=Di,{isClean:ln,my:tE}=Vn;function ns(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],i=typeof o;n==="parent"&&i==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(a=>ns(a,r)):(i==="object"&&o!==null&&(o=ns(o)),r[n]=o)}return r}function wt(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let i=0;i<t.length;i++){if(n===e.line&&r===e.column){o=i;break}t[i]===`
260
- `?(r=1,n+=1):r+=1}return o}let os=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ln]=!1,this[tE]=!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=ns(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 ZS(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[ln]=!0}markDirty(){if(this[ln]){this[ln]=!1;let e=this;for(;e=e.parent;)e[ln]=!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,i=n.slice(wt(n,this.source.start),wt(n,this.source.end)).indexOf(e.word);i!==-1&&(r=this.positionInside(i))}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,i=wt(o,this.source.start),a=i+e;for(let s=i;s<a;s++)o[s]===`
261
- `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:wt(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:wt(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let a=r.slice(wt(r,this.source.start),wt(r,this.source.end)).indexOf(e.word);a!==-1&&(n=this.positionInside(a),o=this.positionInside(a+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:wt(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:wt(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 QS().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 i=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let s=this[a];if(Array.isArray(s))n[a]=s.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof s=="object"&&s.toJSON)n[a]=s.toJSON(null,r);else if(a==="source"){if(s==null)continue;let u=r.get(s.input);u==null&&(u=i,r.set(s.input,i),i++),n[a]={end:s.end,inputId:u,start:s.start}}else n[a]=s}return o&&(n.inputs=[...r.keys()].map(a=>a.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=eE){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let i in n)o[i]=n[i];return e.warn(r,o)}};var Li=os;os.default=os;let rE=Li,is=class extends rE{constructor(e){super(e),this.type="comment"}};var Mi=is;is.default=is;let nE=Li,as=class extends nE{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 $i=as;as.default=as;let $0=Mi,B0=$i,oE=Li,{isClean:F0,my:H0}=Vn,wu,q0,z0,Su;function U0(t){return t.map(e=>(e.nodes&&(e.nodes=U0(e.nodes)),delete e.source,e))}function V0(t){if(t[F0]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)V0(e)}let Pt=class W0 extends oE{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"?(i,a)=>o(i.toProxy(),a):o)):r==="every"||r==="some"?n=>e[r]((o,...i)=>n(o.toProxy(),...i)):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 a of o)this.proxyOf.nodes.splice(n+1,0,a);let i;for(let a in this.indexes)i=this.indexes[a],n<i&&(this.indexes[a]=i+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,i=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let s of i)this.proxyOf.nodes.splice(n,0,s);let a;for(let s in this.indexes)a=this.indexes[s],n<=a&&(this.indexes[s]=a+i.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=U0(q0(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 B0(e)]}else if(e.selector||e.selectors)e=[new Su(e)];else if(e.name)e=[new wu(e)];else if(e.text)e=[new $0(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[H0]||W0.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[F0]&&V0(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(i){throw r.addToError(i)}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)}))}};Pt.registerParse=t=>{q0=t};Pt.registerRule=t=>{Su=t};Pt.registerAtRule=t=>{wu=t};Pt.registerRoot=t=>{z0=t};var br=Pt;Pt.default=Pt;Pt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,wu.prototype):t.type==="rule"?Object.setPrototypeOf(t,Su.prototype):t.type==="decl"?Object.setPrototypeOf(t,B0.prototype):t.type==="comment"?Object.setPrototypeOf(t,$0.prototype):t.type==="root"&&Object.setPrototypeOf(t,z0.prototype),t[H0]=!0,t.nodes&&t.nodes.forEach(e=>{Pt.rebuild(e)})};let G0=br,ei=class extends G0{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 Eu=ei;ei.default=ei;G0.registerAtRule(ei);let iE=br,Y0,X0,kn=class extends iE{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Y0(new X0,this,e).stringify()}};kn.registerLazyResult=t=>{Y0=t};kn.registerProcessor=t=>{X0=t};var Cu=kn;kn.default=kn;let aE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",sE=(t=21)=>{let e="",r=t|0;for(;r--;)e+=aE[Math.random()*64|0];return e};var uE={nanoid:sE};let{existsSync:lE,readFileSync:cE}=Qe,{dirname:fa,join:dE}=Qe,{SourceMapConsumer:Rc,SourceMapGenerator:Pc}=Qe;function fE(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let ss=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=fa(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new Rc(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,/,i=/^data:application\/json,/,a=e.match(o)||e.match(i);if(a)return decodeURIComponent(e.substr(a[0].length));let s=e.match(r)||e.match(n);if(s)return fE(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=fa(e),lE(e))return this.mapFile=e,cE(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 Rc)return Pc.fromSourceMap(r).toString();if(r instanceof Pc)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=dE(fa(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 K0=ss;ss.default=ss;let{nanoid:pE}=uE,{isAbsolute:us,resolve:ls}=Qe,{SourceMapConsumer:hE,SourceMapGenerator:mE}=Qe,{fileURLToPath:_c,pathToFileURL:co}=Qe,kc=xu,bE=K0,pa=Qe,ha=Symbol("lineToIndexCache"),gE=!!(hE&&mE),Ic=!!(ls&&us);function Dc(t){if(t[ha])return t[ha];let e=t.css.split(`
262
- `),r=new Array(e.length),n=0;for(let o=0,i=e.length;o<i;o++)r[o]=n,n+=e[o].length+1;return t[ha]=r,r}let ti=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&&(!Ic||/^\w+:\/\//.test(r.from)||us(r.from)?this.file=r.from:this.file=ls(r.from)),Ic&&gE){let n=new bE(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 "+pE(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let i,a,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);a=d.line,i=d.col}else a=f.line,i=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,a,i);return c?l=new kc(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 kc(e,a===void 0?r:{column:n,line:r},a===void 0?n:{column:i,line:a},this.css,this.file,o.plugin),l.input={column:n,endColumn:i,endLine:a,endOffset:s,line:r,offset:u,source:this.css},this.file&&(co&&(l.input.url=co(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Dc(this)[e-1]+r-1}fromOffset(e){let r=Dc(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let i=r.length-2,a;for(;o<i;)if(a=o+(i-o>>1),e<r[a])i=a-1;else if(e>=r[a+1])o=a+1;else{o=a;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ls(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let i=this.map.consumer(),a=i.originalPositionFor({column:r,line:e});if(!a.source)return!1;let s;typeof n=="number"&&(s=i.originalPositionFor({column:o,line:n}));let u;us(a.source)?u=co(a.source):u=new URL(a.source,this.map.consumer().sourceRoot||co(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:u.toString()};if(u.protocol==="file:")if(_c)l.file=_c(u);else throw new Error("file: protocol is not available in this PostCSS build");let c=i.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Bi=ti;ti.default=ti;pa&&pa.registerInput&&pa.registerInput(ti);let J0=br,Z0,Q0,$r=class extends J0{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 i of o)i.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 Z0(new Q0,this,e).stringify()}};$r.registerLazyResult=t=>{Z0=t};$r.registerProcessor=t=>{Q0=t};var Wn=$r;$r.default=$r;J0.registerRoot($r);let In={comma(t){return In.split(t,[","],!0)},space(t){let e=[" ",`
263
- `," "];return In.split(t,e)},split(t,e,r){let n=[],o="",i=!1,a=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==="("?a+=1:c===")"?a>0&&(a-=1):a===0&&e.includes(c)&&(i=!0),i?(o!==""&&n.push(o.trim()),o="",i=!1):o+=c;return(r||o!=="")&&n.push(o.trim()),n}};var ep=In;In.default=In;let tp=br,yE=ep,ri=class extends tp{get selectors(){return yE.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 Tu=ri;ri.default=ri;tp.registerRule(ri);let vE=Eu,xE=Mi,wE=$i,SE=Bi,EE=K0,CE=Wn,TE=Tu;function Dn(t,e){if(Array.isArray(t))return t.map(o=>Dn(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let i={...o,__proto__:SE.prototype};i.map&&(i.map={...i.map,__proto__:EE.prototype}),e.push(i)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>Dn(o,e))),n.source){let{inputId:o,...i}=n.source;n.source=i,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new CE(n);if(n.type==="decl")return new wE(n);if(n.type==="rule")return new TE(n);if(n.type==="comment")return new xE(n);if(n.type==="atrule")return new vE(n);throw new Error("Unknown node type: "+t.type)}var NE=Dn;Dn.default=Dn;let{dirname:To,relative:rp,resolve:np,sep:op}=Qe,{SourceMapConsumer:ip,SourceMapGenerator:No}=Qe,{pathToFileURL:Lc}=Qe,AE=Bi,OE=!!(ip&&No),jE=!!(To&&np&&rp&&op),RE=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
+ `);return r=i[i.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 $0=rs;rs.default=rs;let ZS=$0;function ns(t,e){new ZS(e).stringify(t)}var Li=ns;ns.default=ns;var Wn={};Wn.isClean=Symbol("isClean");Wn.my=Symbol("my");let QS=wu,eE=$0,tE=Li,{isClean:ln,my:rE}=Wn;function os(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],i=typeof o;n==="parent"&&i==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(a=>os(a,r)):(i==="object"&&o!==null&&(o=os(o)),r[n]=o)}return r}function wt(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let i=0;i<t.length;i++){if(n===e.line&&r===e.column){o=i;break}t[i]===`
260
+ `?(r=1,n+=1):r+=1}return o}let is=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[ln]=!1,this[rE]=!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=os(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 QS(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[ln]=!0}markDirty(){if(this[ln]){this[ln]=!1;let e=this;for(;e=e.parent;)e[ln]=!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,i=n.slice(wt(n,this.source.start),wt(n,this.source.end)).indexOf(e.word);i!==-1&&(r=this.positionInside(i))}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,i=wt(o,this.source.start),a=i+e;for(let s=i;s<a;s++)o[s]===`
261
+ `?(r=1,n+=1):r+=1;return{column:r,line:n,offset:a}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:wt(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:wt(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let a=r.slice(wt(r,this.source.start),wt(r,this.source.end)).indexOf(e.word);a!==-1&&(n=this.positionInside(a),o=this.positionInside(a+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:wt(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:wt(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 eE().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 i=0;for(let a in this){if(!Object.prototype.hasOwnProperty.call(this,a)||a==="parent"||a==="proxyCache")continue;let s=this[a];if(Array.isArray(s))n[a]=s.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof s=="object"&&s.toJSON)n[a]=s.toJSON(null,r);else if(a==="source"){if(s==null)continue;let u=r.get(s.input);u==null&&(u=i,r.set(s.input,i),i++),n[a]={end:s.end,inputId:u,start:s.start}}else n[a]=s}return o&&(n.inputs=[...r.keys()].map(a=>a.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=tE){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let i in n)o[i]=n[i];return e.warn(r,o)}};var Mi=is;is.default=is;let nE=Mi,as=class extends nE{constructor(e){super(e),this.type="comment"}};var $i=as;as.default=as;let oE=Mi,ss=class extends oE{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 Bi=ss;ss.default=ss;let B0=$i,F0=Bi,iE=Mi,{isClean:H0,my:q0}=Wn,Su,z0,U0,Eu;function V0(t){return t.map(e=>(e.nodes&&(e.nodes=V0(e.nodes)),delete e.source,e))}function W0(t){if(t[H0]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)W0(e)}let Pt=class G0 extends iE{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"?(i,a)=>o(i.toProxy(),a):o)):r==="every"||r==="some"?n=>e[r]((o,...i)=>n(o.toProxy(),...i)):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 a of o)this.proxyOf.nodes.splice(n+1,0,a);let i;for(let a in this.indexes)i=this.indexes[a],n<i&&(this.indexes[a]=i+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,i=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let s of i)this.proxyOf.nodes.splice(n,0,s);let a;for(let s in this.indexes)a=this.indexes[s],n<=a&&(this.indexes[s]=a+i.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=V0(z0(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 F0(e)]}else if(e.selector||e.selectors)e=[new Eu(e)];else if(e.name)e=[new Su(e)];else if(e.text)e=[new B0(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[q0]||G0.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[H0]&&W0(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(i){throw r.addToError(i)}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)}))}};Pt.registerParse=t=>{z0=t};Pt.registerRule=t=>{Eu=t};Pt.registerAtRule=t=>{Su=t};Pt.registerRoot=t=>{U0=t};var br=Pt;Pt.default=Pt;Pt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Su.prototype):t.type==="rule"?Object.setPrototypeOf(t,Eu.prototype):t.type==="decl"?Object.setPrototypeOf(t,F0.prototype):t.type==="comment"?Object.setPrototypeOf(t,B0.prototype):t.type==="root"&&Object.setPrototypeOf(t,U0.prototype),t[q0]=!0,t.nodes&&t.nodes.forEach(e=>{Pt.rebuild(e)})};let Y0=br,ti=class extends Y0{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 Cu=ti;ti.default=ti;Y0.registerAtRule(ti);let aE=br,X0,K0,In=class extends aE{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new X0(new K0,this,e).stringify()}};In.registerLazyResult=t=>{X0=t};In.registerProcessor=t=>{K0=t};var Tu=In;In.default=In;let sE="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",uE=(t=21)=>{let e="",r=t|0;for(;r--;)e+=sE[Math.random()*64|0];return e};var lE={nanoid:uE};let{existsSync:cE,readFileSync:dE}=Qe,{dirname:pa,join:fE}=Qe,{SourceMapConsumer:Pc,SourceMapGenerator:_c}=Qe;function pE(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let us=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=pa(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new Pc(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,/,i=/^data:application\/json,/,a=e.match(o)||e.match(i);if(a)return decodeURIComponent(e.substr(a[0].length));let s=e.match(r)||e.match(n);if(s)return pE(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=pa(e),cE(e))return this.mapFile=e,dE(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 Pc)return _c.fromSourceMap(r).toString();if(r instanceof _c)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=fE(pa(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 J0=us;us.default=us;let{nanoid:hE}=lE,{isAbsolute:ls,resolve:cs}=Qe,{SourceMapConsumer:mE,SourceMapGenerator:bE}=Qe,{fileURLToPath:kc,pathToFileURL:fo}=Qe,Ic=wu,gE=J0,ha=Qe,ma=Symbol("lineToIndexCache"),yE=!!(mE&&bE),Dc=!!(cs&&ls);function Lc(t){if(t[ma])return t[ma];let e=t.css.split(`
262
+ `),r=new Array(e.length),n=0;for(let o=0,i=e.length;o<i;o++)r[o]=n,n+=e[o].length+1;return t[ma]=r,r}let ri=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&&(!Dc||/^\w+:\/\//.test(r.from)||ls(r.from)?this.file=r.from:this.file=cs(r.from)),Dc&&yE){let n=new gE(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 "+hE(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let i,a,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);a=d.line,i=d.col}else a=f.line,i=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,a,i);return c?l=new Ic(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 Ic(e,a===void 0?r:{column:n,line:r},a===void 0?n:{column:i,line:a},this.css,this.file,o.plugin),l.input={column:n,endColumn:i,endLine:a,endOffset:s,line:r,offset:u,source:this.css},this.file&&(fo&&(l.input.url=fo(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Lc(this)[e-1]+r-1}fromOffset(e){let r=Lc(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let i=r.length-2,a;for(;o<i;)if(a=o+(i-o>>1),e<r[a])i=a-1;else if(e>=r[a+1])o=a+1;else{o=a;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:cs(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let i=this.map.consumer(),a=i.originalPositionFor({column:r,line:e});if(!a.source)return!1;let s;typeof n=="number"&&(s=i.originalPositionFor({column:o,line:n}));let u;ls(a.source)?u=fo(a.source):u=new URL(a.source,this.map.consumer().sourceRoot||fo(this.map.mapFile));let l={column:a.column,endColumn:s&&s.column,endLine:s&&s.line,line:a.line,url:u.toString()};if(u.protocol==="file:")if(kc)l.file=kc(u);else throw new Error("file: protocol is not available in this PostCSS build");let c=i.sourceContentFor(a.source);return c&&(l.source=c),l}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var Fi=ri;ri.default=ri;ha&&ha.registerInput&&ha.registerInput(ri);let Z0=br,Q0,ep,$r=class extends Z0{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 i of o)i.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 Q0(new ep,this,e).stringify()}};$r.registerLazyResult=t=>{Q0=t};$r.registerProcessor=t=>{ep=t};var Gn=$r;$r.default=$r;Z0.registerRoot($r);let Dn={comma(t){return Dn.split(t,[","],!0)},space(t){let e=[" ",`
263
+ `," "];return Dn.split(t,e)},split(t,e,r){let n=[],o="",i=!1,a=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==="("?a+=1:c===")"?a>0&&(a-=1):a===0&&e.includes(c)&&(i=!0),i?(o!==""&&n.push(o.trim()),o="",i=!1):o+=c;return(r||o!=="")&&n.push(o.trim()),n}};var tp=Dn;Dn.default=Dn;let rp=br,vE=tp,ni=class extends rp{get selectors(){return vE.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 Nu=ni;ni.default=ni;rp.registerRule(ni);let xE=Cu,wE=$i,SE=Bi,EE=Fi,CE=J0,TE=Gn,NE=Nu;function Ln(t,e){if(Array.isArray(t))return t.map(o=>Ln(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let i={...o,__proto__:EE.prototype};i.map&&(i.map={...i.map,__proto__:CE.prototype}),e.push(i)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>Ln(o,e))),n.source){let{inputId:o,...i}=n.source;n.source=i,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new TE(n);if(n.type==="decl")return new SE(n);if(n.type==="rule")return new NE(n);if(n.type==="comment")return new wE(n);if(n.type==="atrule")return new xE(n);throw new Error("Unknown node type: "+t.type)}var AE=Ln;Ln.default=Ln;let{dirname:No,relative:np,resolve:op,sep:ip}=Qe,{SourceMapConsumer:ap,SourceMapGenerator:Ao}=Qe,{pathToFileURL:Mc}=Qe,OE=Fi,jE=!!(ap&&Ao),RE=!!(No&&op&&np&&ip),PE=class{constructor(e,r,n,o){this.stringify=e,this.mapOpts=n.map||{},this.root=r,this.opts=n,this.css=o,this.originalCSS=o,this.usesFileUrls=!this.mapOpts.from&&this.mapOpts.absolute,this.memoizedFileURLs=new Map,this.memoizedPaths=new Map,this.memoizedURLs=new Map}addAnnotation(){let e;this.isInline()?e="data:application/json;base64,"+this.toBase64(this.map.toString()):typeof this.mapOpts.annotation=="string"?e=this.mapOpts.annotation:typeof this.mapOpts.annotation=="function"?e=this.mapOpts.annotation(this.opts.to,this.root):e=this.outputFile()+".map";let r=`
264
264
  `;this.css.includes(`\r
265
265
  `)&&(r=`\r
266
- `),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||To(e.file),o;this.mapOpts.sourcesContent===!1?(o=new ip(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(),jE&&OE&&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=No.fromSourceMap(e,{ignoreInvalidMapping:!0})}else this.map=new No({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 No({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:""},i,a;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))),a=s.match(/\n/g),a?(e+=a.length,i=s.lastIndexOf(`
267
- `),r=s.length-i):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?To(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=To(np(n,this.mapOpts.annotation)));let o=rp(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 AE(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(Lc){let n=Lc(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;op==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var ap=RE;const ma=39,Mc=34,fo=92,$c=47,po=10,cn=32,ho=12,mo=9,bo=13,PE=91,_E=93,kE=40,IE=41,DE=123,LE=125,ME=59,$E=42,BE=58,FE=64,go=/[\t\n\f\r "#'()/;[\\\]{}]/g,yo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,HE=/.[\r\n"'(/\\]/,Bc=/[\da-f]/i;var qE=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,i,a,s,u,l,c,h,f,d,m,g=n.length,b=0,y=[],x=[];function S(){return b}function E(I){throw e.error("Unclosed "+I,b)}function A(){return x.length===0&&b>=g}function R(I){if(x.length)return x.pop();if(b>=g)return;let M=I?I.ignoreUnclosed:!1;switch(i=n.charCodeAt(b),i){case po:case cn:case mo:case bo:case ho:{u=b;do u+=1,i=n.charCodeAt(u);while(i===cn||i===po||i===mo||i===bo||i===ho);c=["space",n.slice(b,u)],b=u-1;break}case PE:case _E:case DE:case LE:case BE:case ME:case IE:{let B=String.fromCharCode(i);c=[B,B,b];break}case kE:{if(m=y.length?y.pop()[1]:"",d=n.charCodeAt(b+1),m==="url"&&d!==ma&&d!==Mc&&d!==cn&&d!==po&&d!==mo&&d!==ho&&d!==bo){u=b;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(o||M){u=b;break}else E("bracket");for(f=u;n.charCodeAt(f-1)===fo;)f-=1,h=!h}while(h);c=["brackets",n.slice(b,u+1),b,u],b=u}else u=n.indexOf(")",b+1),a=n.slice(b,u+1),u===-1||HE.test(a)?c=["(","(",b]:(c=["brackets",a,b,u],b=u);break}case ma:case Mc:{l=i===ma?"'":'"',u=b;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(o||M){u=b+1;break}else E("string");for(f=u;n.charCodeAt(f-1)===fo;)f-=1,h=!h}while(h);c=["string",n.slice(b,u+1),b,u],b=u;break}case FE:{go.lastIndex=b+1,go.test(n),go.lastIndex===0?u=n.length-1:u=go.lastIndex-2,c=["at-word",n.slice(b,u+1),b,u],b=u;break}case fo:{for(u=b,s=!0;n.charCodeAt(u+1)===fo;)u+=1,s=!s;if(i=n.charCodeAt(u+1),s&&i!==$c&&i!==cn&&i!==po&&i!==mo&&i!==bo&&i!==ho&&(u+=1,Bc.test(n.charAt(u)))){for(;Bc.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===cn&&(u+=1)}c=["word",n.slice(b,u+1),b,u],b=u;break}default:{i===$c&&n.charCodeAt(b+1)===$E?(u=n.indexOf("*/",b+2)+1,u===0&&(o||M?u=n.length:E("comment")),c=["comment",n.slice(b,u+1),b,u],b=u):(yo.lastIndex=b+1,yo.test(n),yo.lastIndex===0?u=n.length-1:u=yo.lastIndex-2,c=["word",n.slice(b,u+1),b,u],y.push(c),b=u);break}}return b++,c}function _(I){x.push(I)}return{back:_,endOfFile:A,nextToken:R,position:S}};let zE=Eu,UE=Mi,VE=$i,WE=Wn,Fc=Tu,GE=qE;const Hc={empty:!0,space:!0};function YE(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let XE=class{constructor(e){this.input=e,this.root=new WE,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 zE;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,i,a=!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(i=u.length-1,o=u[i];o&&o[0]==="space";)o=u[--i];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()){a=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),a&&(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 i=r-1;i>=0&&(o=e[i],!(o[0]!=="space"&&(n+=1,n===2)));i--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,i;for(let[a,s]of e.entries()){if(o=s,i=o[0],i==="("&&(r+=1),i===")"&&(r-=1),r===0&&i===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return a}n=o}return!1}comment(e){let r=new UE;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=GE(this.input)}decl(e,r){let n=new VE;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]||YE(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 i;for(;e.length;)if(i=e.shift(),i[0]===":"){n.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a=[],s;for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(i=e[l],i[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(i[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(i[0]!=="space"&&i[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=a.map(l=>l[1]).join(""),a=[]),this.raw(n,"value",a.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Fc;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,i=null,a=[],s=e[1].startsWith("--"),u=[],l=e;for(;l;){if(n=l[0],u.push(l),n==="("||n==="[")i||(i=l),a.push(n==="("?")":"]");else if(s&&o&&n==="{")i||(i=l),a.push("}");else if(a.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===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),a.length>0&&this.unclosedBracket(i),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 i,a,s=n.length,u="",l=!0,c,h;for(let f=0;f<s;f+=1)i=n[f],a=i[0],a==="space"&&f===s-1&&!o?l=!1:a==="comment"?(h=n[f-1]?n[f-1][0]:"empty",c=n[f+1]?n[f+1][0]:"empty",!Hc[h]&&!Hc[c]?u.slice(-1)===","?l=!1:u+=i[1]:l=!1):u+=i[1];if(!l){let f=n.reduce((d,m)=>d+m[1],"");e.raws[r]={raw:f,value:u}}e[r]=u}rule(e){e.pop();let r=new Fc;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 KE=XE;let JE=br,ZE=Bi,QE=KE;function ni(t,e){let r=new ZE(t,e),n=new QE(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||No(e.file),o;this.mapOpts.sourcesContent===!1?(o=new ap(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(),RE&&jE&&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:""},i,a;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))),a=s.match(/\n/g),a?(e+=a.length,i=s.lastIndexOf(`
267
+ `),r=s.length-i):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(op(n,this.mapOpts.annotation)));let o=np(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 OE(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(Mc){let n=Mc(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;ip==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var sp=PE;const ba=39,$c=34,po=92,Bc=47,ho=10,cn=32,mo=12,bo=9,go=13,_E=91,kE=93,IE=40,DE=41,LE=123,ME=125,$E=59,BE=42,FE=58,HE=64,yo=/[\t\n\f\r "#'()/;[\\\]{}]/g,vo=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,qE=/.[\r\n"'(/\\]/,Fc=/[\da-f]/i;var zE=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,i,a,s,u,l,c,h,f,d,m,g=n.length,b=0,y=[],x=[];function S(){return b}function E(I){throw e.error("Unclosed "+I,b)}function A(){return x.length===0&&b>=g}function R(I){if(x.length)return x.pop();if(b>=g)return;let M=I?I.ignoreUnclosed:!1;switch(i=n.charCodeAt(b),i){case ho:case cn:case bo:case go:case mo:{u=b;do u+=1,i=n.charCodeAt(u);while(i===cn||i===ho||i===bo||i===go||i===mo);c=["space",n.slice(b,u)],b=u-1;break}case _E:case kE:case LE:case ME:case FE:case $E:case DE:{let B=String.fromCharCode(i);c=[B,B,b];break}case IE:{if(m=y.length?y.pop()[1]:"",d=n.charCodeAt(b+1),m==="url"&&d!==ba&&d!==$c&&d!==cn&&d!==ho&&d!==bo&&d!==mo&&d!==go){u=b;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(o||M){u=b;break}else E("bracket");for(f=u;n.charCodeAt(f-1)===po;)f-=1,h=!h}while(h);c=["brackets",n.slice(b,u+1),b,u],b=u}else u=n.indexOf(")",b+1),a=n.slice(b,u+1),u===-1||qE.test(a)?c=["(","(",b]:(c=["brackets",a,b,u],b=u);break}case ba:case $c:{l=i===ba?"'":'"',u=b;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(o||M){u=b+1;break}else E("string");for(f=u;n.charCodeAt(f-1)===po;)f-=1,h=!h}while(h);c=["string",n.slice(b,u+1),b,u],b=u;break}case HE:{yo.lastIndex=b+1,yo.test(n),yo.lastIndex===0?u=n.length-1:u=yo.lastIndex-2,c=["at-word",n.slice(b,u+1),b,u],b=u;break}case po:{for(u=b,s=!0;n.charCodeAt(u+1)===po;)u+=1,s=!s;if(i=n.charCodeAt(u+1),s&&i!==Bc&&i!==cn&&i!==ho&&i!==bo&&i!==go&&i!==mo&&(u+=1,Fc.test(n.charAt(u)))){for(;Fc.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===cn&&(u+=1)}c=["word",n.slice(b,u+1),b,u],b=u;break}default:{i===Bc&&n.charCodeAt(b+1)===BE?(u=n.indexOf("*/",b+2)+1,u===0&&(o||M?u=n.length:E("comment")),c=["comment",n.slice(b,u+1),b,u],b=u):(vo.lastIndex=b+1,vo.test(n),vo.lastIndex===0?u=n.length-1:u=vo.lastIndex-2,c=["word",n.slice(b,u+1),b,u],y.push(c),b=u);break}}return b++,c}function _(I){x.push(I)}return{back:_,endOfFile:A,nextToken:R,position:S}};let UE=Cu,VE=$i,WE=Bi,GE=Gn,Hc=Nu,YE=zE;const qc={empty:!0,space:!0};function XE(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let KE=class{constructor(e){this.input=e,this.root=new GE,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 UE;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,i,a=!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(i=u.length-1,o=u[i];o&&o[0]==="space";)o=u[--i];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()){a=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),a&&(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 i=r-1;i>=0&&(o=e[i],!(o[0]!=="space"&&(n+=1,n===2)));i--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,i;for(let[a,s]of e.entries()){if(o=s,i=o[0],i==="("&&(r+=1),i===")"&&(r-=1),r===0&&i===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return a}n=o}return!1}comment(e){let r=new VE;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=YE(this.input)}decl(e,r){let n=new WE;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]||XE(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 i;for(;e.length;)if(i=e.shift(),i[0]===":"){n.raws.between+=i[1];break}else i[0]==="word"&&/\w/.test(i[1])&&this.unknownWord([i]),n.raws.between+=i[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let a=[],s;for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)a.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(i=e[l],i[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(i[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(i[0]!=="space"&&i[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=a.map(l=>l[1]).join(""),a=[]),this.raw(n,"value",a.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Hc;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,i=null,a=[],s=e[1].startsWith("--"),u=[],l=e;for(;l;){if(n=l[0],u.push(l),n==="("||n==="[")i||(i=l),a.push(n==="("?")":"]");else if(s&&o&&n==="{")i||(i=l),a.push("}");else if(a.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===a[a.length-1]&&(a.pop(),a.length===0&&(i=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),a.length>0&&this.unclosedBracket(i),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 i,a,s=n.length,u="",l=!0,c,h;for(let f=0;f<s;f+=1)i=n[f],a=i[0],a==="space"&&f===s-1&&!o?l=!1:a==="comment"?(h=n[f-1]?n[f-1][0]:"empty",c=n[f+1]?n[f+1][0]:"empty",!qc[h]&&!qc[c]?u.slice(-1)===","?l=!1:u+=i[1]:l=!1):u+=i[1];if(!l){let f=n.reduce((d,m)=>d+m[1],"");e.raws[r]={raw:f,value:u}}e[r]=u}rule(e){e.pop();let r=new Hc;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 JE=KE;let ZE=br,QE=Fi,e5=JE;function oi(t,e){let r=new QE(t,e),n=new e5(r);try{n.parse()}catch(o){throw process.env.NODE_ENV!=="production"&&o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
268
268
  You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?o.message+=`
269
269
  You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(o.message+=`
270
- You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var Nu=ni;ni.default=ni;JE.registerParse(ni);let cs=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 sp=cs;cs.default=cs;let e5=sp,ds=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 e5(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Au=ds;ds.default=ds;let qc={};var up=function(e){qc[e]||(qc[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let t5=br,r5=Cu,n5=ap,o5=Nu,zc=Au,i5=Wn,a5=Di,{isClean:nt,my:s5}=Vn,u5=up;const l5={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},c5={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},d5={Once:!0,postcssPlugin:!0,prepare:!0},Br=0;function dn(t){return typeof t=="object"&&typeof t.then=="function"}function lp(t){let e=!1,r=l5[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Br,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Br,r+"Exit"]:[r,r+"Exit"]}function Uc(t){let e;return t.type==="document"?e=["Document",Br,"DocumentExit"]:t.type==="root"?e=["Root",Br,"RootExit"]:e=lp(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function fs(t){return t[nt]=!1,t.nodes&&t.nodes.forEach(e=>fs(e)),t}let ps={},Fr=class cp{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=fs(r);else if(r instanceof cp||r instanceof zc)o=fs(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let i=o5;n.syntax&&(i=n.syntax.parse),n.parser&&(i=n.parser),i.parse&&(i=i.parse);try{o=i(r,n)}catch(a){this.processed=!0,this.error=a}o&&!o[s5]&&t5.rebuild(o)}this.result=new zc(e,o,n),this.helpers={...ps,postcss:ps,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}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,i=n.postcssVersion,a=this.result.processor.version,s=i.split("."),u=a.split(".");(s[0]!==u[0]||parseInt(s[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+a+", but "+o+" uses "+i+". 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(!c5[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!d5[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(dn(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[nt];){e[nt]=!0;let r=[Uc(e)];for(;r.length>0;){let n=this.visitTick(r);if(dn(n))try{await n}catch(o){let i=r[r.length-1].node;throw this.handleError(o,i)}}}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(i=>n(i,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 dn(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=a5;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new n5(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(dn(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[nt];)e[nt]=!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||u5("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 i;try{i=o(r,this.helpers)}catch(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(dn(i))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[a,s]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=a;try{return s(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let a=r.iterator,s;for(;s=n.nodes[n.indexes[a]];)if(n.indexes[a]+=1,!s[nt]){s[nt]=!0,e.push(Uc(s));return}r.iterator=0,delete n.indexes[a]}let i=r.events;for(;r.eventIndex<i.length;){let a=i[r.eventIndex];if(r.eventIndex+=1,a===Br){n.nodes&&n.nodes.length&&(n[nt]=!0,r.iterator=n.getIterator());return}else if(this.listeners[a]){r.visitors=this.listeners[a];return}}e.pop()}walkSync(e){e[nt]=!0;let r=lp(e);for(let n of r)if(n===Br)e.nodes&&e.each(o=>{o[nt]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Fr.registerPostcss=t=>{ps=t};var dp=Fr;Fr.default=Fr;i5.registerLazyResult(Fr);r5.registerLazyResult(Fr);let f5=ap,p5=Nu;const h5=Au;let m5=Di,b5=up,hs=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=p5;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,i=m5;this.result=new h5(this._processor,o,this._opts),this.result.css=r;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let s=new f5(i,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||b5("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 g5=hs;hs.default=hs;let y5=Cu,v5=dp,x5=g5,w5=Wn,Ln=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 x5(this,e,r):new v5(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var S5=Ln;Ln.default=Ln;w5.registerProcessor(Ln);y5.registerProcessor(Ln);let fp=Eu,pp=Mi,E5=br,C5=xu,hp=$i,mp=Cu,T5=NE,N5=Bi,A5=dp,O5=ep,j5=Li,R5=Nu,Ou=S5,P5=Au,bp=Wn,gp=Tu,_5=Di,k5=sp;function oe(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Ou(t)}oe.plugin=function(e,r){let n=!1;function o(...a){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 Au=oi;oi.default=oi;ZE.registerParse(oi);let ds=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 up=ds;ds.default=ds;let t5=up,fs=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 t5(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var Ou=fs;fs.default=fs;let zc={};var lp=function(e){zc[e]||(zc[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let r5=br,n5=Tu,o5=sp,i5=Au,Uc=Ou,a5=Gn,s5=Li,{isClean:nt,my:u5}=Wn,l5=lp;const c5={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},d5={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},f5={Once:!0,postcssPlugin:!0,prepare:!0},Br=0;function dn(t){return typeof t=="object"&&typeof t.then=="function"}function cp(t){let e=!1,r=c5[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Br,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Br,r+"Exit"]:[r,r+"Exit"]}function Vc(t){let e;return t.type==="document"?e=["Document",Br,"DocumentExit"]:t.type==="root"?e=["Root",Br,"RootExit"]:e=cp(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function ps(t){return t[nt]=!1,t.nodes&&t.nodes.forEach(e=>ps(e)),t}let hs={},Fr=class dp{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=ps(r);else if(r instanceof dp||r instanceof Uc)o=ps(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let i=i5;n.syntax&&(i=n.syntax.parse),n.parser&&(i=n.parser),i.parse&&(i=i.parse);try{o=i(r,n)}catch(a){this.processed=!0,this.error=a}o&&!o[u5]&&r5.rebuild(o)}this.result=new Uc(e,o,n),this.helpers={...hs,postcss:hs,result:this.result},this.plugins=this.processor.plugins.map(i=>typeof i=="object"&&i.prepare?{...i,...i.prepare(this.result)}:i)}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,i=n.postcssVersion,a=this.result.processor.version,s=i.split("."),u=a.split(".");(s[0]!==u[0]||parseInt(s[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+a+", but "+o+" uses "+i+". 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(!d5[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!f5[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(dn(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[nt];){e[nt]=!0;let r=[Vc(e)];for(;r.length>0;){let n=this.visitTick(r);if(dn(n))try{await n}catch(o){let i=r[r.length-1].node;throw this.handleError(o,i)}}}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(i=>n(i,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 dn(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=s5;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new o5(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(dn(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[nt];)e[nt]=!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||l5("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 i;try{i=o(r,this.helpers)}catch(a){throw this.handleError(a,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(dn(i))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[a,s]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=a;try{return s(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let a=r.iterator,s;for(;s=n.nodes[n.indexes[a]];)if(n.indexes[a]+=1,!s[nt]){s[nt]=!0,e.push(Vc(s));return}r.iterator=0,delete n.indexes[a]}let i=r.events;for(;r.eventIndex<i.length;){let a=i[r.eventIndex];if(r.eventIndex+=1,a===Br){n.nodes&&n.nodes.length&&(n[nt]=!0,r.iterator=n.getIterator());return}else if(this.listeners[a]){r.visitors=this.listeners[a];return}}e.pop()}walkSync(e){e[nt]=!0;let r=cp(e);for(let n of r)if(n===Br)e.nodes&&e.each(o=>{o[nt]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Fr.registerPostcss=t=>{hs=t};var fp=Fr;Fr.default=Fr;a5.registerLazyResult(Fr);n5.registerLazyResult(Fr);let p5=sp,h5=Au;const m5=Ou;let b5=Li,g5=lp,ms=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=h5;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,i=b5;this.result=new m5(this._processor,o,this._opts),this.result.css=r;let a=this;Object.defineProperty(this.result,"root",{get(){return a.root}});let s=new p5(i,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||g5("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 y5=ms;ms.default=ms;let v5=Tu,x5=fp,w5=y5,S5=Gn,Mn=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 w5(this,e,r):new x5(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var E5=Mn;Mn.default=Mn;S5.registerProcessor(Mn);v5.registerProcessor(Mn);let pp=Cu,hp=$i,C5=br,T5=wu,mp=Bi,bp=Tu,N5=AE,A5=Fi,O5=fp,j5=tp,R5=Mi,P5=Au,ju=E5,_5=Ou,gp=Gn,yp=Nu,k5=Li,I5=up;function oe(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new ju(t)}oe.plugin=function(e,r){let n=!1;function o(...a){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
271
271
  https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
272
- https://www.w3ctech.com/topic/2226`));let s=r(...a);return s.postcssPlugin=e,s.postcssVersion=new Ou().version,s}let i;return Object.defineProperty(o,"postcss",{get(){return i||(i=o()),i}}),o.process=function(a,s,u){return oe([o(u)]).process(a,s)},o};oe.stringify=_5;oe.parse=R5;oe.fromJSON=T5;oe.list=O5;oe.comment=t=>new pp(t);oe.atRule=t=>new fp(t);oe.decl=t=>new hp(t);oe.rule=t=>new gp(t);oe.root=t=>new bp(t);oe.document=t=>new mp(t);oe.CssSyntaxError=C5;oe.Declaration=hp;oe.Container=E5;oe.Processor=Ou;oe.Document=mp;oe.Comment=pp;oe.Warning=k5;oe.AtRule=fp;oe.Result=P5;oe.Input=N5;oe.Rule=gp;oe.Root=bp;oe.Node=j5;A5.registerPostcss(oe);var I5=oe;oe.default=oe;const D5=s0,Vc=RS,{isPlainObject:L5}=yu,Wc=VS,M5=WS,{parse:$5}=I5,B5=["img","audio","video","picture","svg","object","map","iframe","embed"],F5=["script","style"];function Cr(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function St(t,e){return{}.hasOwnProperty.call(t,e)}function Gc(t,e){const r=[];return Cr(t,function(n){e(n)&&r.push(n)}),r}function H5(t){for(const e in t)if(St(t,e))return!1;return!0}function q5(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 z5=Mn;const U5=/^[^\0\t\n\f\r /<=>]+$/;function Mn(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function i(N,O){const P=this;this.tag=N,this.attribs=O||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(b.length){const D=b[b.length-1];D.text+=P.text}},this.updateParentNodeMediaChildren=function(){b.length&&B5.includes(this.tag)&&b[b.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},Mn.defaults,e),e.parser=Object.assign({},V5,e.parser);const a=function(N){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(N)>-1};F5.forEach(function(N){a(N)&&!e.allowVulnerableTags&&console.warn(`
272
+ https://www.w3ctech.com/topic/2226`));let s=r(...a);return s.postcssPlugin=e,s.postcssVersion=new ju().version,s}let i;return Object.defineProperty(o,"postcss",{get(){return i||(i=o()),i}}),o.process=function(a,s,u){return oe([o(u)]).process(a,s)},o};oe.stringify=k5;oe.parse=P5;oe.fromJSON=N5;oe.list=j5;oe.comment=t=>new hp(t);oe.atRule=t=>new pp(t);oe.decl=t=>new mp(t);oe.rule=t=>new yp(t);oe.root=t=>new gp(t);oe.document=t=>new bp(t);oe.CssSyntaxError=T5;oe.Declaration=mp;oe.Container=C5;oe.Processor=ju;oe.Document=bp;oe.Comment=hp;oe.Warning=I5;oe.AtRule=pp;oe.Result=_5;oe.Input=A5;oe.Rule=yp;oe.Root=gp;oe.Node=R5;O5.registerPostcss(oe);var D5=oe;oe.default=oe;const L5=u0,Wc=PS,{isPlainObject:M5}=vu,Gc=WS,$5=GS,{parse:B5}=D5,F5=["img","audio","video","picture","svg","object","map","iframe","embed"],H5=["script","style"];function Cr(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function St(t,e){return{}.hasOwnProperty.call(t,e)}function Yc(t,e){const r=[];return Cr(t,function(n){e(n)&&r.push(n)}),r}function q5(t){for(const e in t)if(St(t,e))return!1;return!0}function z5(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 U5=$n;const V5=/^[^\0\t\n\f\r /<=>]+$/;function $n(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function i(N,O){const P=this;this.tag=N,this.attribs=O||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(b.length){const D=b[b.length-1];D.text+=P.text}},this.updateParentNodeMediaChildren=function(){b.length&&F5.includes(this.tag)&&b[b.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},$n.defaults,e),e.parser=Object.assign({},W5,e.parser);const a=function(N){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(N)>-1};H5.forEach(function(N){a(N)&&!e.allowVulnerableTags&&console.warn(`
273
273
 
274
274
  ⚠️ Your \`allowedTags\` option includes, \`${N}\`, which is inherently
275
275
  vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
276
276
  Or, to disable this warning, add the \`allowVulnerableTags\` option
277
277
  and ensure you are accounting for this risk.
278
278
 
279
- `)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},Cr(e.allowedAttributes,function(N,O){u[O]=[];const P=[];N.forEach(function(D){typeof D=="string"&&D.indexOf("*")>=0?P.push(Vc(D).replace(/\\\*/g,".*")):u[O].push(D)}),P.length&&(l[O]=new RegExp("^("+P.join("|")+")$"))}));const c={},h={},f={};Cr(e.allowedClasses,function(N,O){if(u&&(St(u,O)||(u[O]=[]),u[O].push("class")),c[O]=N,Array.isArray(N)){const P=[];c[O]=[],f[O]=[],N.forEach(function(D){typeof D=="string"&&D.indexOf("*")>=0?P.push(Vc(D).replace(/\\\*/g,".*")):D instanceof RegExp?f[O].push(D):c[O].push(D)}),P.length&&(h[O]=new RegExp("^("+P.join("|")+")$"))}});const d={};let m;Cr(e.transformTags,function(N,O){let P;typeof N=="function"?P=N:typeof N=="string"&&(P=Mn.simpleTransform(N)),O==="*"?m=P:d[O]=P});let g,b,y,x,S,E,A=!1;_();const R=new D5.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&_(),S){E++;return}const P=new i(N,O);b.push(P);let D=!1;const $=!!P.text;let z;if(St(d,N)&&(z=d[N](N,O),P.attribs=O=z.attribs,z.text!==void 0&&(P.innerText=z.text),N!==z.tagName&&(P.name=N=z.tagName,x[g]=z.tagName)),m&&(z=m(N,O),P.attribs=O=z.attribs,N!==z.tagName&&(P.name=N=z.tagName,x[g]=z.tagName)),(!a(N)||e.disallowedTagsMode==="recursiveEscape"&&!H5(y)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(D=!0,y[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(N)!==-1&&(S=!0,E=1)),g++,D){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(P.innerText&&!$){const H=I(P.innerText);e.textFilter?n+=e.textFilter(H,N):n+=H,A=!0}return}o=n,n=""}n+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(P.innerText=""),D&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Cr(O,function(H,F){n+=" "+F+'="'+I(H||"",!0)+'"'}):(!u||St(u,N)||u["*"])&&Cr(O,function(H,F){if(!U5.test(F)){delete P.attribs[F];return}if(H===""&&!e.allowedEmptyAttributes.includes(F)&&(e.nonBooleanAttributes.includes(F)||e.nonBooleanAttributes.includes("*"))){delete P.attribs[F];return}let he=!1;if(!u||St(u,N)&&u[N].indexOf(F)!==-1||u["*"]&&u["*"].indexOf(F)!==-1||St(l,N)&&l[N].test(F)||l["*"]&&l["*"].test(F))he=!0;else if(u&&u[N]){for(const J of u[N])if(L5(J)&&J.name&&J.name===F){he=!0;let q="";if(J.multiple===!0){const Re=H.split(" ");for(const Ee of Re)J.values.indexOf(Ee)!==-1&&(q===""?q=Ee:q+=" "+Ee)}else J.values.indexOf(H)>=0&&(q=H);H=q}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(F)!==-1&&M(N,H)){delete P.attribs[F];return}if(N==="script"&&F==="src"){let J=!0;try{const q=B(H);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Re=(e.allowedScriptHostnames||[]).find(function(xe){return xe===q.url.hostname}),Ee=(e.allowedScriptDomains||[]).find(function(xe){return q.url.hostname===xe||q.url.hostname.endsWith(`.${xe}`)});J=Re||Ee}}catch{J=!1}if(!J){delete P.attribs[F];return}}if(N==="iframe"&&F==="src"){let J=!0;try{const q=B(H);if(q.isRelativeUrl)J=St(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Re=(e.allowedIframeHostnames||[]).find(function(xe){return xe===q.url.hostname}),Ee=(e.allowedIframeDomains||[]).find(function(xe){return q.url.hostname===xe||q.url.hostname.endsWith(`.${xe}`)});J=Re||Ee}}catch{J=!1}if(!J){delete P.attribs[F];return}}if(F==="srcset")try{let J=M5(H);if(J.forEach(function(q){M("srcset",q.url)&&(q.evil=!0)}),J=Gc(J,function(q){return!q.evil}),J.length)H=q5(Gc(J,function(q){return!q.evil})),P.attribs[F]=H;else{delete P.attribs[F];return}}catch{delete P.attribs[F];return}if(F==="class"){const J=c[N],q=c["*"],Re=h[N],Ee=f[N],xe=f["*"],tt=h["*"],yt=[Re,tt].concat(Ee,xe).filter(function(rt){return rt});if(J&&q?H=L(H,Wc(J,q),yt):H=L(H,J||q,yt),!H.length){delete P.attribs[F];return}}if(F==="style"){if(e.parseStyleAttributes)try{const J=$5(N+" {"+H+"}",{map:!1}),q=C(J,e.allowedStyles);if(H=T(q),H.length===0){delete P.attribs[F];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+H+`}", 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 P.attribs[F];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+F,H&&H.length?n+='="'+I(H,!0)+'"':e.allowedEmptyAttributes.includes(F)&&(n+='=""')}else delete P.attribs[F]}),e.selfClosing.indexOf(N)!==-1?n+=" />":(n+=">",P.innerText&&!$&&!e.textFilter&&(n+=I(P.innerText),A=!0)),D&&(n=o+I(n),o=""),P.openingTagLength=n.length-P.tagPosition},ontext:function(N){if(S)return;const O=b[b.length-1];let P;if(O&&(P=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!a(P))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(P==="script"||P==="style"))n+=N;else if(!A){const D=I(N,!1);e.textFilter?n+=e.textFilter(D,P):n+=D}if(b.length){const D=b[b.length-1];D.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),S)if(E--,!E)S=!1;else return;const P=b.pop();if(!P)return;if(P.tag!==N){b.push(P);return}S=e.enforceHtmlBoundary?N==="html":!1,g--;const D=y[g];if(D){if(delete y[g],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){P.updateParentNodeText();return}o=n,n=""}if(x[g]&&(N=x[g],delete x[g]),e.exclusiveFilter){const $=e.exclusiveFilter(P);if($==="excludeTag"){D&&(n=o,o=""),n=n.substring(0,P.tagPosition)+n.substring(P.tagPosition+P.openingTagLength);return}else if($){n=n.substring(0,P.tagPosition);return}}if(P.updateParentNodeMediaChildren(),P.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!a(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){D&&(n=o,o="");return}n+="</"+N+">",D&&(n=o+I(n),o=""),A=!1}},e.parser);return R.write(t),R.end(),n;function _(){n="",g=0,b=[],y={},x={},S=!1,E=0}function I(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;"))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;")),N}function M(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const $=O.indexOf("<!--");if($===-1)break;const z=O.indexOf("-->",$+4);if(z===-1)break;O=O.substring(0,$)+O.substring(z+3)}const P=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!P)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const D=P[1].toLowerCase();return St(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(D)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(D)===-1}function B(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let $=0;$<100;$++)O+=`/${$}`;const P=new URL(N,O);return{isRelativeUrl:P&&P.hostname==="relative-site"&&P.protocol==="relative:",url:P}}function C(N,O){if(!O)return N;const P=N.nodes[0];let D;return O[P.selector]&&O["*"]?D=Wc(O[P.selector],O["*"]):D=O[P.selector]||O["*"],D&&(N.nodes[0].nodes=P.nodes.reduce(k(D),[])),N}function T(N){return N.nodes[0].nodes.reduce(function(O,P){return O.push(`${P.prop}:${P.value}${P.important?" !important":""}`),O},[]).join(";")}function k(N){return function(O,P){return St(N,P.prop)&&N[P.prop].some(function($){return $.test(P.value)})&&O.push(P),O}}function L(N,O,P){return O?(N=N.split(/\s+/),N.filter(function(D){return O.indexOf(D)!==-1||P.some(function($){return $.test(D)})}).join(" ")):N}}const V5={decodeEntities:!0};Mn.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};Mn.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let i;if(r)for(i in e)o[i]=e[i];else o=e;return{tagName:t,attribs:o}}};const yp=fi(z5),W5=[{command:"bold",icon:Rm,label:"Bold"},{command:"italic",icon:Mm,label:"Italic"},{command:"underline",icon:Gm,label:"Underline"},{command:"strikeThrough",icon:Vm,label:"Strikethrough"},{command:"insertUnorderedList",icon:Bm,label:"Bullet List"},{command:"insertOrderedList",icon:$m,label:"Numbered List"}],G5={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,i]=w.useState(!1),[a,s]=w.useState(""),u=w.useRef(null);w.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=b=>{var y;document.execCommand(b,!1,null),(y=n.current)==null||y.focus(),c()},c=()=>{if(n.current){const b=n.current.innerHTML,y=yp(b,G5);r(y)}},h=()=>{const b=window.getSelection();b&&b.rangeCount>0&&(u.current=b.getRangeAt(0))},f=()=>{if(u.current){const b=window.getSelection();b==null||b.removeAllRanges(),b==null||b.addRange(u.current)}},d=()=>{h(),i(!0)},m=()=>{var b;if(a){f();let y=a.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}i(!1),s(""),(b=n.current)==null||b.focus()},g=b=>{try{return document.queryCommandState(b)}catch{return!1}};return p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:p.jsxs(On,{children:[W5.map(({command:b,icon:y,label:x})=>p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:S=>{S.preventDefault(),l(b)},className:`p-1.5 rounded hover:bg-background transition-colors ${g(b)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(y,{className:"h-3.5 w-3.5"})})}),p.jsx(sr,{side:"top",children:p.jsx("p",{children:x})})]},b)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:b=>{b.preventDefault(),d()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(Rs,{className:"h-3.5 w-3.5"})})}),p.jsx(sr,{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:a,onChange:b=>s(b.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),m()),b.key==="Escape"&&(i(!1),s(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{i(!1),s("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),p.jsx("button",{onClick:m,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$/]}}},ju=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:o="inherit",lineHeight:i={desktop:150},letterSpacing:a={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=Ae(),m=$n();let g,b,y;try{const{connectors:I,events:M}=se(B=>({events:B.events}));g=I.connect,b=I.drag,y=M.selected}catch{}const x=Xo(t,m),S=typeof ee(l,d)=="object"?`${ee(l,d).top}px ${ee(l,d).right}px ${ee(l,d).bottom}px ${ee(l,d).left}px`:`${ee(l,d)}px`,E=Tt(r,d,16),A=Tt(i,d,150)/100,R=Tt(a,d,0),_=/<[^>]+>/.test(x);return p.jsx("div",{ref:I=>I&&g&&b&&g(b(I)),className:`cursor-move ${y?"outline outline-blue-500":""}`,style:{fontSize:`${E}px`,fontWeight:n,fontFamily:o,lineHeight:A,letterSpacing:`${R}px`,textAlign:s,color:u,margin:S,textDecoration:c,textTransform:h,opacity:f/100},children:e||_?p.jsx("div",{dangerouslySetInnerHTML:{__html:yp(Xo(e||x,m),X5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):x})},K5=()=>{const{actions:{setProp:t},props:e}=se(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(G,{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(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(te,{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(Go,{label:"Size",values:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(te,{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(Yo,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(Go,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(At,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Cs,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Ns,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)}),p.jsx(te,{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(te,{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(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(o=>o.color=n)}),p.jsx(Yo,{label:"Opacity",values:e.opacity,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})}),p.jsx(G,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(a0,{})})]})};ju.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{desktop:{top:0,right:0,bottom:0,left:0}},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:K5}};const vn={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}},Ru=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:o="700",fontFamily:i="inherit",fontSize:a="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 I,M,B;const f=Ae(),d=$n();let m,g,b;try{const{connectors:C,events:T}=se(k=>({events:k.events}));m=C.connect,g=C.drag,b=T.selected}catch{}const y=Xo(t,d),x=`h${e}`;let S;a==="auto"?S=((I=vn[e])==null?void 0:I[f])||((M=vn[e])==null?void 0:M.desktop)||36:S=Tt(a,f,((B=vn[e])==null?void 0:B.desktop)||36);const E=Tt(s,f,120)/100,A=Tt(u,f,-.5),R=Tt(h,f,100),_=typeof ee(l,f)=="object"?`${ee(l,f).top}px ${ee(l,f).right}px ${ee(l,f).bottom}px ${ee(l,f).left}px`:`${ee(l,f)}px`;return p.jsx(x,{ref:C=>C&&m&&g&&m(g(C)),className:`cursor-move ${b?"outline outline-blue-500":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:i,fontSize:`${S}px`,lineHeight:E,letterSpacing:`${A}px`,margin:_,textTransform:c,opacity:R/100},children:y})},J5=()=>{var i;const t=Ae(),{actions:{setProp:e},props:r}=se(a=>({props:a.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},o=()=>{var a;return r.fontSize==="auto"?((a=vn[r.level||2])==null?void 0:a[t])||36:Tt(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(G,{title:"Content",defaultOpen:!0,children:[p.jsx(Gt,{label:"Text",value:r.text,onChange:a=>e(s=>s.text=a)}),p.jsx(At,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:a=>e(s=>{s.level=a,s.fontSize})})]}),p.jsxs(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(te,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:a=>e(s=>s.fontFamily=a)}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),p.jsx("button",{onClick:()=>e(a=>a.fontSize=a.fontSize==="auto"?{desktop: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(Go,{label:"Size",values:r.fontSize,onChange:a=>e(s=>s.fontSize=a),min:12,max:120,defaultValue:((i=vn[r.level||2])==null?void 0:i.desktop)||36})]}),p.jsx(te,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:a=>e(s=>s.fontWeight=a)}),p.jsx(Yo,{label:"Line Height",values:r.lineHeight,onChange:a=>e(s=>s.lineHeight=a),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(Go,{label:"Letter Spacing",values:r.letterSpacing,onChange:a=>e(s=>s.letterSpacing=a),min:-5,max:20,defaultValue:-.5}),p.jsx(At,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Cs,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Ns,{className:"h-3 w-3"})}],onChange:a=>e(s=>s.textAlign=a)}),p.jsx(te,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:a=>e(s=>s.textTransform=a)})]}),p.jsxs(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Text Color",value:r.color||"#000000",onChange:a=>e(s=>s.color=a)}),p.jsx(Yo,{label:"Opacity",values:r.opacity,onChange:a=>e(s=>s.opacity=a),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:n,onChange:a=>e(s=>s.margin={...s.margin,...a})})}),p.jsx(G,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(a0,{})})]})};Ru.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:J5}};const Pu=({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:i="cover",borderRadius:a=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ae();let h,f,d;try{const{connectors:g,events:b}=se(y=>({events:y.events}));h=g.connect,f=g.drag,d=b.selected}catch{}const m=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:g=>g&&h&&f&&h(f(g)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:i,borderRadius:`${a}px`,margin:m,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},Z5=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Source",defaultOpen:!0,children:[p.jsx(Gt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Gt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{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(ge,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(te,{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(ge,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(te,{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(G,{title:"Style",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(Ri,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(te,{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(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Pu.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:Z5}};const _u=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:o={top:16,right:0,bottom:16,left:0},opacity:i=100})=>{const a=Ae();let s,u,l;try{const{connectors:h,events:f}=se(d=>({events:d.events}));s=h.connect,u=h.drag,l=f.selected}catch{}const c=typeof o[a]=="object"?`${o[a].top}px ${o[a].right}px ${o[a].bottom}px ${o[a].left}px`:`${o[a]}px`;return p.jsx("hr",{ref:h=>h&&s&&u&&(s==null?void 0:s(u==null?void 0:u(h))),className:`cursor-move border-0 ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:c,opacity:i/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},Q5=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Style",defaultOpen:!0,children:[p.jsx(te,{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(ut,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(o=>o.color=n)}),p.jsx(ge,{unit:"px",label:"Thickness",value:e.height||1,onChange:n=>t(o=>o.height=n),min:1,max:20}),p.jsx(te,{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(ge,{label:"Width %",value:e.width,onChange:n=>t(o=>o.width=n),min:10,max:100,unit:"%"})]}),p.jsx(G,{title:"Spacing",defaultOpen:!0,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};_u.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:Q5}};const ku=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{let n,o,i;try{const{connectors:a,events:s}=se(u=>({events:u.events}));n=a.connect,o=a.drag,i=s.selected}catch{}return p.jsxs("div",{ref:a=>a&&n&&o&&n(o(a)),className:`cursor-move w-full relative group ${i?"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"})]})},e8=()=>{const{actions:{setProp:t},props:e}=se(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{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(ge,{unit:"px",label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};ku.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:e8}};const t8=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function r8(){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 n8(t,e={}){const r=await fetch(`${t8}${t}`,{...e,headers:{...r8(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function o8(t,e){return(await n8(`/videos/${t}/${e||""}`)).data}function i8(t){const e=v.useRef({value:t,previous:t});return v.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Fi="Checkbox",[a8]=pr(Fi),[s8,Iu]=a8(Fi);function u8(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:h}=t,[f,d]=Qr({prop:r,defaultProp:o??!1,onChange:u,caller:Fi}),[m,g]=v.useState(null),[b,y]=v.useState(null),x=v.useRef(!1),S=m?!!a||!!m.closest("form"):!0,E={checked:f,disabled:i,setChecked:d,control:m,setControl:g,name:s,form:a,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Ht(o)?!1:o,isFormControl:S,bubbleInput:b,setBubbleInput:y};return p.jsx(s8,{scope:e,...E,children:l8(h)?h(E):n})}var vp="CheckboxTrigger",xp=v.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},o)=>{const{control:i,value:a,disabled:s,checked:u,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:d,bubbleInput:m}=Iu(vp,t),g=Te(o,c),b=v.useRef(u);return v.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const x=()=>h(b.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[i,h]),p.jsx(ve.button,{type:"button",role:"checkbox","aria-checked":Ht(u)?"mixed":u,"aria-required":l,"data-state":Tp(u),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:g,onKeyDown:fe(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:fe(r,y=>{h(x=>Ht(x)?!0:!x),m&&d&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});xp.displayName=vp;var Du=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:u,onCheckedChange:l,form:c,...h}=t;return p.jsx(u8,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:l,name:n,form:c,value:u,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(xp,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(Cp,{__scopeCheckbox:r})]})})});Du.displayName=Fi;var wp="CheckboxIndicator",Sp=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,i=Iu(wp,r);return p.jsx(hr,{present:n||Ht(i.checked)||i.checked===!0,children:p.jsx(ve.span,{"data-state":Tp(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});Sp.displayName=wp;var Ep="CheckboxBubbleInput",Cp=v.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:u,name:l,value:c,form:h,bubbleInput:f,setBubbleInput:d}=Iu(Ep,t),m=Te(r,d),g=i8(i),b=Ff(n);v.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(S,"checked").set,R=!o.current;if(g!==i&&A){const _=new Event("click",{bubbles:R});x.indeterminate=Ht(i),A.call(x,Ht(i)?!1:i),x.dispatchEvent(_)}},[f,g,i,o]);const y=v.useRef(Ht(i)?!1:i);return p.jsx(ve.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:u,name:l,value:c,form:h,...e,tabIndex:-1,ref:m,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Cp.displayName=Ep;function l8(t){return typeof t=="function"}function Ht(t){return t==="indeterminate"}function Tp(t){return Ht(t)?"indeterminate":t?"checked":"unchecked"}const c8=v.forwardRef(({className:t,...e},r)=>p.jsx(Du,{ref:r,className:Ne("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(Sp,{className:Ne("flex items-center justify-center text-current"),children:p.jsx(As,{className:"h-4 w-4"})})}));c8.displayName=Du.displayName;const d8=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,i]=w.useState(!1),[a,s]=w.useState(!1);w.useEffect(()=>{try{s(window.self!==window.top)}catch{s(!0)}},[]);const u=()=>{r&&t&&!o&&(t(),i(!0),a&&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(ot,{disabled:!r||o||e,onClick:u,className:"w-full",children:o?p.jsxs(p.Fragment,{children:[p.jsx(As,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(Im,{className:"h-4 w-4 mr-2"}),"Download"]})})}),p.jsxs("label",{className:"flex items-start space-x-2 cursor-pointer",children:[p.jsx("input",{className:"mt-4",type:"checkbox",checked:r,onChange:l=>n(l.target.checked),disabled:o||e}),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"}),"."]})]})]})};function Np(t,e){return function(){return t.apply(e,arguments)}}const{toString:f8}=Object.prototype,{getPrototypeOf:Lu}=Object,{iterator:Hi,toStringTag:Ap}=Symbol,qi=(t=>e=>{const r=f8.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),et=t=>(t=t.toLowerCase(),e=>qi(e)===t),zi=t=>e=>typeof e===t,{isArray:tn}=Array,Hr=zi("undefined");function Gn(t){return t!==null&&!Hr(t)&&t.constructor!==null&&!Hr(t.constructor)&&Ie(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const Op=et("ArrayBuffer");function p8(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&Op(t.buffer),e}const h8=zi("string"),Ie=zi("function"),jp=zi("number"),Yn=t=>t!==null&&typeof t=="object",m8=t=>t===!0||t===!1,Ao=t=>{if(qi(t)!=="object")return!1;const e=Lu(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Ap in t)&&!(Hi in t)},b8=t=>{if(!Yn(t)||Gn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},g8=et("Date"),y8=et("File"),v8=t=>!!(t&&typeof t.uri<"u"),x8=t=>t&&typeof t.getParts<"u",w8=et("Blob"),S8=et("FileList"),E8=t=>Yn(t)&&Ie(t.pipe);function C8(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Yc=C8(),Xc=typeof Yc.FormData<"u"?Yc.FormData:void 0,T8=t=>{let e;return t&&(Xc&&t instanceof Xc||Ie(t.append)&&((e=qi(t))==="formdata"||e==="object"&&Ie(t.toString)&&t.toString()==="[object FormData]"))},N8=et("URLSearchParams"),[A8,O8,j8,R8]=["ReadableStream","Request","Response","Headers"].map(et),P8=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Xn(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),tn(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(Gn(t))return;const i=r?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length;let s;for(n=0;n<a;n++)s=i[n],e.call(null,t[s],s,t)}}function Rp(t,e){if(Gn(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,Pp=t=>!Hr(t)&&t!==rr;function ms(){const{caseless:t,skipUndefined:e}=Pp(this)&&this||{},r={},n=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&Rp(r,i)||i;Ao(r[a])&&Ao(o)?r[a]=ms(r[a],o):Ao(o)?r[a]=ms({},o):tn(o)?r[a]=o.slice():(!e||!Hr(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Xn(arguments[o],n);return r}const _8=(t,e,r,{allOwnKeys:n}={})=>(Xn(e,(o,i)=>{r&&Ie(o)?Object.defineProperty(t,i,{value:Np(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),k8=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),I8=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},D8=(t,e,r,n)=>{let o,i,a;const s={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],(!n||n(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=r!==!1&&Lu(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},L8=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},M8=t=>{if(!t)return null;if(tn(t))return t;let e=t.length;if(!jp(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},$8=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Lu(Uint8Array)),B8=(t,e)=>{const n=(t&&t[Hi]).call(t);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},F8=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},H8=et("HTMLFormElement"),q8=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Kc=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),z8=et("RegExp"),_p=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Xn(r,(o,i)=>{let a;(a=e(o,i,t))!==!1&&(n[i]=a||o)}),Object.defineProperties(t,n)},U8=t=>{_p(t,(e,r)=>{if(Ie(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Ie(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},V8=(t,e)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return tn(t)?n(t):n(String(t).split(e)),r},W8=()=>{},G8=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function Y8(t){return!!(t&&Ie(t.append)&&t[Ap]==="FormData"&&t[Hi])}const X8=t=>{const e=new Array(10),r=(n,o)=>{if(Yn(n)){if(e.indexOf(n)>=0)return;if(Gn(n))return n;if(!("toJSON"in n)){e[o]=n;const i=tn(n)?[]:{};return Xn(n,(a,s)=>{const u=r(a,o+1);!Hr(u)&&(i[s]=u)}),e[o]=void 0,i}}return n};return r(t,0)},K8=et("AsyncFunction"),J8=t=>t&&(Yn(t)||Ie(t))&&Ie(t.then)&&Ie(t.catch),kp=((t,e)=>t?setImmediate:e?((r,n)=>(rr.addEventListener("message",({source:o,data:i})=>{o===rr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),rr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ie(rr.postMessage)),Z8=typeof queueMicrotask<"u"?queueMicrotask.bind(rr):typeof process<"u"&&process.nextTick||kp,Q8=t=>t!=null&&Ie(t[Hi]),j={isArray:tn,isArrayBuffer:Op,isBuffer:Gn,isFormData:T8,isArrayBufferView:p8,isString:h8,isNumber:jp,isBoolean:m8,isObject:Yn,isPlainObject:Ao,isEmptyObject:b8,isReadableStream:A8,isRequest:O8,isResponse:j8,isHeaders:R8,isUndefined:Hr,isDate:g8,isFile:y8,isReactNativeBlob:v8,isReactNative:x8,isBlob:w8,isRegExp:z8,isFunction:Ie,isStream:E8,isURLSearchParams:N8,isTypedArray:$8,isFileList:S8,forEach:Xn,merge:ms,extend:_8,trim:P8,stripBOM:k8,inherits:I8,toFlatObject:D8,kindOf:qi,kindOfTest:et,endsWith:L8,toArray:M8,forEachEntry:B8,matchAll:F8,isHTMLForm:H8,hasOwnProperty:Kc,hasOwnProp:Kc,reduceDescriptors:_p,freezeMethods:U8,toObjectSet:V8,toCamelCase:q8,noop:W8,toFiniteNumber:G8,findKey:Rp,global:rr,isContextDefined:Pp,isSpecCompliantForm:Y8,toJSONObject:X8,isAsyncFn:K8,isThenable:J8,setImmediate:kp,asap:Z8,isIterable:Q8};let V=class Ip extends Error{static from(e,r,n,o,i,a){const s=new Ip(e.message,r||e.code,n,o,i);return s.cause=e,s.name=e.name,e.status!=null&&s.status==null&&(s.status=e.status),a&&Object.assign(s,a),s}constructor(e,r,n,o,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";V.ERR_BAD_OPTION="ERR_BAD_OPTION";V.ECONNABORTED="ECONNABORTED";V.ETIMEDOUT="ETIMEDOUT";V.ERR_NETWORK="ERR_NETWORK";V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";V.ERR_DEPRECATED="ERR_DEPRECATED";V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";V.ERR_BAD_REQUEST="ERR_BAD_REQUEST";V.ERR_CANCELED="ERR_CANCELED";V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";V.ERR_INVALID_URL="ERR_INVALID_URL";const eC=null;function bs(t){return j.isPlainObject(t)||j.isArray(t)}function Dp(t){return j.endsWith(t,"[]")?t.slice(0,-2):t}function ba(t,e,r){return t?t.concat(e).map(function(o,i){return o=Dp(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function tC(t){return j.isArray(t)&&!t.some(bs)}const rC=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function Ui(t,e,r){if(!j.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=j.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!j.isUndefined(b[g])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(e);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(j.isDate(m))return m.toISOString();if(j.isBoolean(m))return m.toString();if(!u&&j.isBlob(m))throw new V("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(m)||j.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,g,b){let y=m;if(j.isReactNative(e)&&j.isReactNativeBlob(m))return e.append(ba(b,g,i),l(m)),!1;if(m&&!b&&typeof m=="object"){if(j.endsWith(g,"{}"))g=n?g:g.slice(0,-2),m=JSON.stringify(m);else if(j.isArray(m)&&tC(m)||(j.isFileList(m)||j.endsWith(g,"[]"))&&(y=j.toArray(m)))return g=Dp(g),y.forEach(function(S,E){!(j.isUndefined(S)||S===null)&&e.append(a===!0?ba([g],E,i):a===null?g:g+"[]",l(S))}),!1}return bs(m)?!0:(e.append(ba(b,g,i),l(m)),!1)}const h=[],f=Object.assign(rC,{defaultVisitor:c,convertValue:l,isVisitable:bs});function d(m,g){if(!j.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(m),j.forEach(m,function(y,x){(!(j.isUndefined(y)||y===null)&&o.call(e,y,j.isString(x)?x.trim():x,g,f))===!0&&d(y,g?g.concat(x):[x])}),h.pop()}}if(!j.isObject(t))throw new TypeError("data must be an object");return d(t),e}function Jc(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function Mu(t,e){this._pairs=[],t&&Ui(t,this,e)}const Lp=Mu.prototype;Lp.append=function(e,r){this._pairs.push([e,r])};Lp.toString=function(e){const r=e?function(n){return e.call(this,n,Jc)}:Jc;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function nC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Mp(t,e,r){if(!e)return t;const n=r&&r.encode||nC,o=j.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let a;if(i?a=i(e,o):a=j.isURLSearchParams(e)?e.toString():new Mu(e,o).toString(n),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Zc{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){j.forEach(this.handlers,function(n){n!==null&&e(n)})}}const $u={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},oC=typeof URLSearchParams<"u"?URLSearchParams:Mu,iC=typeof FormData<"u"?FormData:null,aC=typeof Blob<"u"?Blob:null,sC={isBrowser:!0,classes:{URLSearchParams:oC,FormData:iC,Blob:aC},protocols:["http","https","file","blob","url","data"]},Bu=typeof window<"u"&&typeof document<"u",gs=typeof navigator=="object"&&navigator||void 0,uC=Bu&&(!gs||["ReactNative","NativeScript","NS"].indexOf(gs.product)<0),lC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",cC=Bu&&window.location.href||"http://localhost",dC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Bu,hasStandardBrowserEnv:uC,hasStandardBrowserWebWorkerEnv:lC,navigator:gs,origin:cC},Symbol.toStringTag,{value:"Module"})),Oe={...dC,...sC};function fC(t,e){return Ui(t,new Oe.classes.URLSearchParams,{visitor:function(r,n,o,i){return Oe.isNode&&j.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function pC(t){return j.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function hC(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function $p(t){function e(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),u=i>=r.length;return a=!a&&j.isArray(o)?o.length:a,u?(j.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!j.isObject(o[a]))&&(o[a]=[]),e(r,n,o[a],i)&&j.isArray(o[a])&&(o[a]=hC(o[a])),!s)}if(j.isFormData(t)&&j.isFunction(t.entries)){const r={};return j.forEachEntry(t,(n,o)=>{e(pC(n),o,r,0)}),r}return null}function mC(t,e,r){if(j.isString(t))try{return(e||JSON.parse)(t),j.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Kn={transitional:$u,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o?JSON.stringify($p(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e)||j.isReadableStream(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return fC(e,this.formSerializer).toString();if((s=j.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Ui(s?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),mC(e)):e}],transformResponse:[function(e){const r=this.transitional||Kn.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(j.isResponse(e)||j.isReadableStream(e))return e;if(e&&j.isString(e)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?V.from(s,V.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],t=>{Kn.headers[t]={}});const bC=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),gC=t=>{const e={};let r,n,o;return t&&t.split(`
280
- `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||e[r]&&bC[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},Qc=Symbol("internals");function fn(t){return t&&String(t).trim().toLowerCase()}function Oo(t){return t===!1||t==null?t:j.isArray(t)?t.map(Oo):String(t)}function yC(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const vC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ga(t,e,r,n,o){if(j.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!j.isString(e)){if(j.isString(n))return e.indexOf(n)!==-1;if(j.isRegExp(n))return n.test(e)}}function xC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function wC(t,e){const r=j.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,a){return this[n].call(this,e,o,i,a)},configurable:!0})})}let De=class{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function i(s,u,l){const c=fn(u);if(!c)throw new Error("header name must be a non-empty string");const h=j.findKey(o,c);(!h||o[h]===void 0||l===!0||l===void 0&&o[h]!==!1)&&(o[h||u]=Oo(s))}const a=(s,u)=>j.forEach(s,(l,c)=>i(l,c,u));if(j.isPlainObject(e)||e instanceof this.constructor)a(e,r);else if(j.isString(e)&&(e=e.trim())&&!vC(e))a(gC(e),r);else if(j.isObject(e)&&j.isIterable(e)){let s={},u,l;for(const c of e){if(!j.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[l=c[0]]=(u=s[l])?j.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}a(s,r)}else e!=null&&i(r,e,n);return this}get(e,r){if(e=fn(e),e){const n=j.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return yC(o);if(j.isFunction(r))return r.call(this,o,n);if(j.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=fn(e),e){const n=j.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||ga(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function i(a){if(a=fn(a),a){const s=j.findKey(n,a);s&&(!r||ga(n,n[s],s,r))&&(delete n[s],o=!0)}}return j.isArray(e)?e.forEach(i):i(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!e||ga(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const r=this,n={};return j.forEach(this,(o,i)=>{const a=j.findKey(n,i);if(a){r[a]=Oo(o),delete r[i];return}const s=e?xC(i):String(i).trim();s!==i&&delete r[i],r[s]=Oo(o),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return j.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&j.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
281
- `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[Qc]=this[Qc]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=fn(a);n[s]||(wC(o,a),n[s]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}};De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(De.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});j.freezeMethods(De);function ya(t,e){const r=this||Kn,n=e||r,o=De.from(n.headers);let i=n.data;return j.forEach(t,function(s){i=s.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Bp(t){return!!(t&&t.__CANCEL__)}let Jn=class extends V{constructor(e,r,n){super(e??"canceled",V.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Fp(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new V("Request failed with status code "+r.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function SC(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function EC(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,i=0,a;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),c=n[i];a||(a=l),r[o]=u,n[o]=l;let h=i,f=0;for(;h!==o;)f+=r[h++],h=h%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),l-a<e)return;const d=c&&l-c;return d?Math.round(f*1e3/d):void 0}}function CC(t,e){let r=0,n=1e3/e,o,i;const a=(l,c=Date.now())=>{r=c,o=null,i&&(clearTimeout(i),i=null),t(...l)};return[(...l)=>{const c=Date.now(),h=c-r;h>=n?a(l,c):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-h)))},()=>o&&a(o)]}const oi=(t,e,r=3)=>{let n=0;const o=EC(50,250);return CC(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,u=a-n,l=o(u),c=a<=s;n=a;const h={loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:l||void 0,estimated:l&&s&&c?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(h)},r)},ed=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},td=t=>(...e)=>j.asap(()=>t(...e)),TC=Oe.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Oe.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Oe.origin),Oe.navigator&&/(msie|trident)/i.test(Oe.navigator.userAgent)):()=>!0,NC=Oe.hasStandardBrowserEnv?{write(t,e,r,n,o,i,a){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];j.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),j.isString(n)&&s.push(`path=${n}`),j.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),j.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function AC(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function OC(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function Hp(t,e,r){let n=!AC(e);return t&&(n||r==!1)?OC(t,e):e}const rd=t=>t instanceof De?{...t}:t;function cr(t,e){e=e||{};const r={};function n(l,c,h,f){return j.isPlainObject(l)&&j.isPlainObject(c)?j.merge.call({caseless:f},l,c):j.isPlainObject(c)?j.merge({},c):j.isArray(c)?c.slice():c}function o(l,c,h,f){if(j.isUndefined(c)){if(!j.isUndefined(l))return n(void 0,l,h,f)}else return n(l,c,h,f)}function i(l,c){if(!j.isUndefined(c))return n(void 0,c)}function a(l,c){if(j.isUndefined(c)){if(!j.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function s(l,c,h){if(h in e)return n(l,c);if(h in t)return n(void 0,l)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,c,h)=>o(rd(l),rd(c),h,!0)};return j.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const h=j.hasOwnProp(u,c)?u[c]:o,f=h(t[c],e[c],c);j.isUndefined(f)&&h!==s||(r[c]=f)}),r}const qp=t=>{const e=cr({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=e;if(e.headers=a=De.from(a),e.url=Mp(Hp(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),j.isFormData(r)){if(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(j.isFunction(r.getHeaders)){const u=r.getHeaders(),l=["content-type","content-length"];Object.entries(u).forEach(([c,h])=>{l.includes(c.toLowerCase())&&a.set(c,h)})}}if(Oe.hasStandardBrowserEnv&&(n&&j.isFunction(n)&&(n=n(e)),n||n!==!1&&TC(e.url))){const u=o&&i&&NC.read(i);u&&a.set(o,u)}return e},jC=typeof XMLHttpRequest<"u",RC=jC&&function(t){return new Promise(function(r,n){const o=qp(t);let i=o.data;const a=De.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:l}=o,c,h,f,d,m;function g(){d&&d(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function y(){if(!b)return;const S=De.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:S,config:t,request:b};Fp(function(_){r(_),g()},function(_){n(_),g()},A),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(n(new V("Request aborted",V.ECONNABORTED,t,b)),b=null)},b.onerror=function(E){const A=E&&E.message?E.message:"Network Error",R=new V(A,V.ERR_NETWORK,t,b);R.event=E||null,n(R),b=null},b.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||$u;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new V(E,A.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,t,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&j.forEach(a.toJSON(),function(E,A){b.setRequestHeader(A,E)}),j.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),s&&s!=="json"&&(b.responseType=o.responseType),l&&([f,m]=oi(l,!0),b.addEventListener("progress",f)),u&&b.upload&&([h,d]=oi(u),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",d)),(o.cancelToken||o.signal)&&(c=S=>{b&&(n(!S||S.type?new Jn(null,t,b):S),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const x=SC(o.url);if(x&&Oe.protocols.indexOf(x)===-1){n(new V("Unsupported protocol "+x+":",V.ERR_BAD_REQUEST,t));return}b.send(i||null)})},PC=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof V?c:new Jn(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{a=null,i(new V(`timeout of ${e}ms exceeded`,V.ETIMEDOUT))},e);const s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>l.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=()=>j.asap(s),u}},_C=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,o;for(;n<r;)o=n+e,yield t.slice(n,o),n=o},kC=async function*(t,e){for await(const r of IC(t))yield*_C(r,e)},IC=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},nd=(t,e,r,n)=>{const o=kC(t,e);let i=0,a,s=u=>{a||(a=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:l,value:c}=await o.next();if(l){s(),u.close();return}let h=c.byteLength;if(r){let f=i+=h;r(f)}u.enqueue(new Uint8Array(c))}catch(l){throw s(l),l}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},od=64*1024,{isFunction:vo}=j,DC=(({Request:t,Response:e})=>({Request:t,Response:e}))(j.global),{ReadableStream:id,TextEncoder:ad}=j.global,sd=(t,...e)=>{try{return!!t(...e)}catch{return!1}},LC=t=>{t=j.merge.call({skipUndefined:!0},DC,t);const{fetch:e,Request:r,Response:n}=t,o=e?vo(e):typeof fetch=="function",i=vo(r),a=vo(n);if(!o)return!1;const s=o&&vo(id),u=o&&(typeof ad=="function"?(m=>g=>m.encode(g))(new ad):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=i&&s&&sd(()=>{let m=!1;const g=new r(Oe.origin,{body:new id,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!g}),c=a&&s&&sd(()=>j.isReadableStream(new n("").body)),h={stream:c&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!h[m]&&(h[m]=(g,b)=>{let y=g&&g[m];if(y)return y.call(g);throw new V(`Response type '${m}' is not supported`,V.ERR_NOT_SUPPORT,b)})});const f=async m=>{if(m==null)return 0;if(j.isBlob(m))return m.size;if(j.isSpecCompliantForm(m))return(await new r(Oe.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(j.isArrayBufferView(m)||j.isArrayBuffer(m))return m.byteLength;if(j.isURLSearchParams(m)&&(m=m+""),j.isString(m))return(await u(m)).byteLength},d=async(m,g)=>{const b=j.toFiniteNumber(m.getContentLength());return b??f(g)};return async m=>{let{url:g,method:b,data:y,signal:x,cancelToken:S,timeout:E,onDownloadProgress:A,onUploadProgress:R,responseType:_,headers:I,withCredentials:M="same-origin",fetchOptions:B}=qp(m),C=e||fetch;_=_?(_+"").toLowerCase():"text";let T=PC([x,S&&S.toAbortSignal()],E),k=null;const L=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let N;try{if(R&&l&&b!=="get"&&b!=="head"&&(N=await d(I,y))!==0){let re=new r(g,{method:"POST",body:y,duplex:"half"}),Z;if(j.isFormData(y)&&(Z=re.headers.get("content-type"))&&I.setContentType(Z),re.body){const[H,F]=ed(N,oi(td(R)));y=nd(re.body,od,H,F)}}j.isString(M)||(M=M?"include":"omit");const O=i&&"credentials"in r.prototype,P={...B,signal:T,method:b.toUpperCase(),headers:I.normalize().toJSON(),body:y,duplex:"half",credentials:O?M:void 0};k=i&&new r(g,P);let D=await(i?C(k,B):C(g,P));const $=c&&(_==="stream"||_==="response");if(c&&(A||$&&L)){const re={};["status","statusText","headers"].forEach(he=>{re[he]=D[he]});const Z=j.toFiniteNumber(D.headers.get("content-length")),[H,F]=A&&ed(Z,oi(td(A),!0))||[];D=new n(nd(D.body,od,H,()=>{F&&F(),L&&L()}),re)}_=_||"text";let z=await h[j.findKey(h,_)||"text"](D,m);return!$&&L&&L(),await new Promise((re,Z)=>{Fp(re,Z,{data:z,headers:De.from(D.headers),status:D.status,statusText:D.statusText,config:m,request:k})})}catch(O){throw L&&L(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,m,k,O&&O.response),{cause:O.cause||O}):V.from(O,O&&O.code,m,k,O&&O.response)}}},MC=new Map,zp=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:o}=e,i=[n,o,r];let a=i.length,s=a,u,l,c=MC;for(;s--;)u=i[s],l=c.get(u),l===void 0&&c.set(u,l=s?new Map:LC(e)),c=l;return l};zp();const Fu={http:eC,xhr:RC,fetch:{get:zp}};j.forEach(Fu,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ud=t=>`- ${t}`,$C=t=>j.isFunction(t)||t===null||t===!1;function BC(t,e){t=j.isArray(t)?t:[t];const{length:r}=t;let n,o;const i={};for(let a=0;a<r;a++){n=t[a];let s;if(o=n,!$C(n)&&(o=Fu[(s=String(n)).toLowerCase()],o===void 0))throw new V(`Unknown adapter '${s}'`);if(o&&(j.isFunction(o)||(o=o.get(e))))break;i[s||"#"+a]=o}if(!o){const a=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=r?a.length>1?`since :
282
- `+a.map(ud).join(`
283
- `):" "+ud(a[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const Up={getAdapter:BC,adapters:Fu};function va(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Jn(null,t)}function ld(t){return va(t),t.headers=De.from(t.headers),t.data=ya.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Up.getAdapter(t.adapter||Kn.adapter,t)(t).then(function(n){return va(t),n.data=ya.call(t,t.transformResponse,n),n.headers=De.from(n.headers),n},function(n){return Bp(n)||(va(t),n&&n.response&&(n.response.data=ya.call(t,t.transformResponse,n.response),n.response.headers=De.from(n.response.headers))),Promise.reject(n)})}const Vp="1.13.6",Vi={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Vi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const cd={};Vi.transitional=function(e,r,n){function o(i,a){return"[Axios v"+Vp+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(e===!1)throw new V(o(a," has been removed"+(r?" in "+r:"")),V.ERR_DEPRECATED);return r&&!cd[a]&&(cd[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,a,s):!0}};Vi.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function FC(t,e,r){if(typeof t!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],a=e[i];if(a){const s=t[i],u=s===void 0||a(s,i,t);if(u!==!0)throw new V("option "+i+" must be "+u,V.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new V("Unknown option "+i,V.ERR_BAD_OPTION)}}const jo={assertOptions:FC,validators:Vi},Fe=jo.validators;let nr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Zc,response:new Zc}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
284
- `+i):n.stack=i}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=cr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&jo.assertOptions(n,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean),legacyInterceptorReqResOrdering:Fe.transitional(Fe.boolean)},!1),o!=null&&(j.isFunction(o)?r.paramsSerializer={serialize:o}:jo.assertOptions(o,{encode:Fe.function,serialize:Fe.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),jo.assertOptions(r,{baseUrl:Fe.spelling("baseURL"),withXsrfToken:Fe.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&j.merge(i.common,i[r.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=De.concat(a,i);const s=[];let u=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;u=u&&g.synchronous;const b=r.transitional||$u;b&&b.legacyInterceptorReqResOrdering?s.unshift(g.fulfilled,g.rejected):s.push(g.fulfilled,g.rejected)});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let c,h=0,f;if(!u){const m=[ld.bind(this),void 0];for(m.unshift(...s),m.push(...l),f=m.length,c=Promise.resolve(r);h<f;)c=c.then(m[h++],m[h++]);return c}f=s.length;let d=r;for(;h<f;){const m=s[h++],g=s[h++];try{d=m(d)}catch(b){g.call(this,b);break}}try{c=ld.call(this,d)}catch(m){return Promise.reject(m)}for(h=0,f=l.length;h<f;)c=c.then(l[h++],l[h++]);return c}getUri(e){e=cr(this.defaults,e);const r=Hp(e.baseURL,e.url,e.allowAbsoluteUrls);return Mp(r,e.params,e.paramsSerializer)}};j.forEach(["delete","get","head","options"],function(e){nr.prototype[e]=function(r,n){return this.request(cr(n||{},{method:e,url:r,data:(n||{}).data}))}});j.forEach(["post","put","patch"],function(e){function r(n){return function(i,a,s){return this.request(cr(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[e]=r(),nr.prototype[e+"Form"]=r(!0)});let HC=class Wp{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,s){n.reason||(n.reason=new Jn(i,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Wp(function(o){e=o}),cancel:e}}};function qC(t){return function(r){return t.apply(null,r)}}function zC(t){return j.isObject(t)&&t.isAxiosError===!0}const ys={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(ys).forEach(([t,e])=>{ys[e]=t});function Gp(t){const e=new nr(t),r=Np(nr.prototype.request,e);return j.extend(r,nr.prototype,e,{allOwnKeys:!0}),j.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return Gp(cr(t,o))},r}const ye=Gp(Kn);ye.Axios=nr;ye.CanceledError=Jn;ye.CancelToken=HC;ye.isCancel=Bp;ye.VERSION=Vp;ye.toFormData=Ui;ye.AxiosError=V;ye.Cancel=ye.CanceledError;ye.all=function(e){return Promise.all(e)};ye.spread=qC;ye.isAxiosError=zC;ye.mergeConfig=cr;ye.AxiosHeaders=De;ye.formToJSON=t=>$p(j.isHTMLForm(t)?new FormData(t):t);ye.getAdapter=Up.getAdapter;ye.HttpStatusCode=ys;ye.default=ye;const{Axios:zN,AxiosError:UN,CanceledError:VN,isCancel:WN,CancelToken:GN,VERSION:YN,all:XN,Cancel:KN,isAxiosError:JN,spread:ZN,toFormData:QN,AxiosHeaders:eA,HttpStatusCode:tA,formToJSON:rA,getAdapter:nA,mergeConfig:oA}=ye,UC="https://api.myracereel.com/api",VC=ye.create({baseURL:UC,headers:{"Content-Type":"application/json"}}),WC=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(!1),[o,i]=w.useState(null);return{postVideoAnalytics:async s=>{n(!0),i(null);try{const u=await VC.post("/videos/analytics",s);e(u.data.data)}catch(u){i(u)}finally{n(!1)}},data:t,isLoading:r,isError:!!o,error:o}},rn=t=>{let e,r,n=!1,o;try{const{connectors:i,events:a}=se(u=>({events:u.events}));e=i.connect,r=i.drag,n=a.selected;const{editorEnabled:s}=ht(u=>({editorEnabled:u.options.enabled}));o=s}catch{}return p.jsx("div",{...t.id?{id:t.id}:{},ref:i=>i&&e&&r&&e(r(i)),style:uu(t),className:ct(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),...!o&&t.onClick?{onClick:i=>t.onClick(i)}:{},children:t.children})},GC={...jn,display:"flex",justifyContent:"center",alignItems:"center"};rn.craft={props:GC,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:Pi}};const YC=(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},XC=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const o=w.useRef(null),{data:i,isLoading:a,error:s}=Vh.useQuery({queryKey:["video",t,e],queryFn:()=>o8(t,e),enabled:!!t}),{postVideoAnalytics:u}=WC();let l=0,c=Date.now();if(w.useEffect(()=>{const d=I=>{I.target.nodeName==="VIDEO"&&I.preventDefault()};document.addEventListener("contextmenu",d);const m=o.current;if(!m||!i)return;const g=m.dataset.videoId,b=m.dataset.title;if(!g)return;let y=new Set;m.addEventListener("timeupdate",()=>{var T,k;const I=Math.floor(m.currentTime/m.duration*100),M=Math.floor(I/10)*10;!y.has(M)&&M%10===0&&M<=100&&(y.add(M),localStorage.getItem(getLocalViewKey(g))||((T=window.gtag)==null||T.call(window,"event","video_progress",{video_id:g,progress_percent:M,video_title:m.dataset.title||"",video_duration:m.duration}),u({type:"milestone",bibId:e,eventId,locationId:t,data:{percent:M}})));const B=Date.now(),C=(B-c)/1e3;c=B,C<1.5&&(l+=C),l>=5&&(localStorage.getItem(getLocalViewKey(g))||((k=window.gtag)==null||k.call(window,"event","video_watch_time",{video_id:g,watched_seconds:Math.round(l),video_title:m.dataset.title||"",video_duration:m.duration}),u({bibId:e,eventId,locationId:t,type:"watch_time",data:{seconds:Math.round(l)}})),l=0)});const x=()=>{var I;(I=window.gtag)==null||I.call(window,"event","video_start",{video_id:g,video_title:b,video_duration:m.duration}),u({bibId:e,locationId:t,eventId,type:"start"}),localStorage.getItem(getLocalViewKey(g))||(localStorage.setItem(getLocalViewKey(g),"true"),u({bibId:e,eventId,locationId:t,type:"unique"}))},S=()=>{var I;(I=window.gtag)==null||I.call(window,"event","video_pause",{video_id:g,video_title:b,video_duration:m.duration,video_currentTime:m.currentTime})},E=()=>{m.currentTime>=MAX_TIME&&(m.pause(),m.currentTime=MAX_TIME-1,setOpen(!0))},A=()=>{m.currentTime>MAX_TIME&&(m.pause(),m.currentTime=MAX_TIME-1,setOpen(!0))},R=()=>{var I;m.currentTime=0,setOpen(!0),(I=window.gtag)==null||I.call(window,"event","video_complete",{video_id:g,video_title:b,video_duration:m.duration,video_currentTime:m.currentTime})},_=I=>{["ArrowRight","ArrowLeft"].includes(I.code)&&I.preventDefault()};return m.addEventListener("play",x),m.addEventListener("pause",S),m.addEventListener("timeupdate",E),m.addEventListener("seeking",A),m.addEventListener("ended",R),document.addEventListener("keydown",_),()=>{m.removeEventListener("play",x),m.removeEventListener("pause",S),m.removeEventListener("timeupdate",E),m.removeEventListener("seeking",A),m.removeEventListener("ended",R),document.removeEventListener("keydown",_),document.removeEventListener("contextmenu",d)}},[o.current,i]),a)return p.jsx("div",{className:"flex items-center justify-center h-48 bg-muted rounded-lg",children:p.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent"})});if(s||!i)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(Pm,{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:h}=i,f=async()=>{if(!r)try{const d=o.current;if(!d)return;const m=d.dataset.videoId||"";localStorage.getItem(getLocalViewKey(m))||await u({bibId:e,eventId,locationId:t,type:"download"});const g=document.createElement("a");g.href=h.mp4_hr_url,g.download=`${h.name||e}-video`,g.style.display="none",document.body.appendChild(g),g.click(),document.body.removeChild(g)}catch(d){console.error("Download failed:",d)}};return p.jsx(rn,{children:p.jsx(Fn,{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:[h.name," (",h.start_no,")"]}),p.jsxs("video",{"data-video-id":`${t}-${e}`,"data-title":n,ref:o,className:"irewind_video_player",controls:!0,preload:"auto",poster:i.videoFromIrewind.thumbnail_url,controlsList:"nodownload",style:{width:"100%",maxWidth:"600px"},children:[p.jsx("source",{src:h.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),p.jsx(d8,{onDownload:f,disabled:r})]})})})})},Hu=({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 i=Ae(),a=$n();let s,u,l;try{const{connectors:b,events:y}=se(x=>({events:x.events}));s=b.connect,u=b.drag,l=y.selected}catch{}let c=!1;try{let{options:b}=ht(y=>({options:y.options}));c=b.enabled}catch{}const h=YC(t,i),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"},m=(a==null?void 0:a.videos)||[],g=m.length>0;return p.jsx("div",{ref:b=>b&&s&&u&&s(u(b)),style:d,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:g?p.jsx("div",{className:"space-y-6",children:m.map(b=>p.jsx(XC,{locationId:b.locationId,bibId:a==null?void 0:a.bibId,editorEnabled:c,videoTitle:b.name||b.locationId},b.locationId))}):p.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-muted rounded-lg border-2 border-dashed border-muted-foreground/30",children:[p.jsx(jd,{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."})]})]})})},KC=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:o,boxShadow:i}=se(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})),a=[{value:"none",label:"None"},{value:"sm",label:"Small"},{value:"md",label:"Medium"},{value:"lg",label:"Large"},{value:"xl",label:"Extra Large"}];return p.jsxs("div",{className:"space-y-1",children:[p.jsx(G,{title:"Info",children:p.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),p.jsxs(G,{title:"Style",children:[p.jsx(ge,{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(ge,{unit:"px",label:"Border Radius",value:o,onChange:s=>t(u=>u.borderRadius=s),min:0,max:50}),p.jsx(ut,{label:"Background",value:n,onChange:s=>t(u=>u.background=s)}),p.jsx(te,{label:"Shadow",value:i,options:a,onChange:s=>t(u=>u.boxShadow=s)})]}),p.jsx(G,{title:"Spacing",children:p.jsx(Ue,{label:"Margin",values:r,onChange:s=>t(u=>u.margin=s)})})]})};Hu.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{desktop:{top:0,right:0,bottom:0,left:0}},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:KC}};const Yp=({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:i})=>{const a=Ae();let s,u,l;try{const{connectors:f,events:d}=se(m=>({events:m.events}));s=f.connect,u=f.drag,l=d.selected}catch{}const c=typeof ee(r,a)=="object"?`${ee(r,a).top}px ${ee(r,a).right}px ${ee(r,a).bottom}px ${ee(r,a).left}px`:`${ee(r,a)}px`,h=typeof ee(n,a)=="object"?`${ee(n,a).top}px ${ee(n,a).right}px ${ee(n,a).bottom}px ${ee(n,a).left}px`:`${ee(n,a)}px`;return p.jsx("div",{ref:f=>f&&s&&u&&(s==null?void 0:s(u==null?void 0:u(f))),className:`cursor-move w-full ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:c,margin:h,alignItems:o},children:i})},JC=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Layout",defaultOpen:!0,children:[p.jsx(At,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:o=>t(i=>i.columns=o)}),p.jsx(ge,{unit:"px",label:"Gap",value:e.gap||16,onChange:o=>t(i=>i.gap=o),max:64}),p.jsx(te,{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(i=>i.alignItems=o)})]}),p.jsxs(G,{title:"Spacing",defaultOpen:!1,children:[p.jsx(Ue,{label:"Padding",values:r,onChange:o=>t(i=>i.padding={...i.padding,...o})}),p.jsx(Ue,{label:"Margin",values:n,onChange:o=>t(i=>i.margin={...i.margin,...o})})]})]})};Yp.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},alignItems:"stretch"},related:{settings:JC}};const qu=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:o="400",color:i="#0066cc",hoverColor:a="#0052a3",textDecoration:s="underline",textAlign:u="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const h=Ae();let f,d,m;try{const{connectors:b,events:y}=se(x=>({events:x.events}));f=b.connect,d=b.drag,m=y.selected}catch{}const g=typeof l[h]=="object"?`${l[h].top}px ${l[h].right}px ${l[h].bottom}px ${l[h].left}px`:`${l[h]}px`;return p.jsx("a",{ref:b=>b&&f&&d&&f(d(b)),href:e,target:r,rel:r==="_blank"?"noopener noreferrer":void 0,onClick:b=>b.preventDefault(),className:`cursor-move inline-block transition-colors hover:opacity-80 ${m?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:o,color:i,textDecoration:s,textAlign:u,margin:g,opacity:c/100,display:"block"},children:t})},ZC=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Content",defaultOpen:!0,children:[p.jsx(Gt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)}),p.jsx(Gt,{label:"URL",value:e.url,onChange:n=>t(o=>o.url=n)}),p.jsx(te,{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(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(ge,{unit:"px",label:"Font Size",value:e.fontSize||16,onChange:n=>t(o=>o.fontSize=n),min:10,max:48}),p.jsx(te,{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(te,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(o=>o.textDecoration=n)}),p.jsx(At,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Cs,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Ns,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)})]}),p.jsxs(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(o=>o.color=n)}),p.jsx(Ri,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};qu.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100},related:{settings:ZC}};const Xp=({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:i="cover",borderRadius:a=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ae();let h,f,d;try{const{connectors:g,events:b}=se(y=>({events:y.events}));h=g.connect,f=g.drag,d=b.selected}catch{}const m=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:g=>g&&h&&f&&h(f(g)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:i,borderRadius:`${a}px`,margin:m,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},QC=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Source",defaultOpen:!0,children:[p.jsx(Gt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Gt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{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(ge,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(te,{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(ge,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(te,{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(G,{title:"Style",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(Ri,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(te,{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(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Xp.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:QC}};function dd(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 Kp=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:s,events:u}=se(l=>({events:l.events}));r=s.connect,n=s.drag,o=u.selected}catch{}const i=dd(),a=dd();return p.jsx("div",{ref:s=>{s&&r&&n&&r(n(s))},className:ct(`min-h-2.5 ${o?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(Ft,{is:rn,id:`section-wrapper-${i}`,children:p.jsx(Ft,{is:Fn,canvas:!0,id:`section-container-${a}`,children:t})})})};Kp.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const zu=t=>{let e,r,n=!1;try{const{connectors:o,events:i}=se(a=>({events:a.events}));e=o.connect,r=o.drag,n=i.selected}catch{}return p.jsx("div",{style:uu(t),className:ct(t.className,`${n?"outline outline-blue-500":""}`),ref:o=>{o&&e&&r&&e(r(o))},children:t.children})};zu.craft={isCanvas:!0,props:jn,related:{settings:Pi}};const Jp=({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:i="none",display:a="block",flexDirection:s="column",justifyContent:u="flex-start",alignItems:l="stretch",gap:c=0,borderRadius:h=8,borderWidth:f=1,borderColor:d="transparent",borderStyle:m="dashed",boxShadow:g="none",children:b})=>{Ae();let y,x,S;try{const{connectors:_,events:I}=se(M=>({events:M.events}));y=_.connect,x=_.drag,S=I.selected}catch{}const E=typeof ee(e)=="object"?`${ee(e).top}px ${ee(e).right}px ${ee(e).bottom}px ${ee(e).left}px`:`${ee(e)}px`,A=typeof ee(r)=="object"?`${ee(r).top}px ${ee(r).right}px ${ee(r).bottom}px ${ee(r).left}px`:`${ee(r)}px`,R=[{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(rn,{style:{backgroundColor:t,padding:E,margin:A,width:n==="auto"?"100%":n,minHeight:`${o}px`,maxWidth:i==="none"?"none":`${i}px`,display:a,flexDirection:a==="flex"?s:void 0,justifyContent:a==="flex"?u:void 0,alignItems:a==="flex"?l:void 0,gap:a==="flex"?`${c}px`:void 0,borderRadius:`${h}px`,borderWidth:`${f}px`,borderColor:d,borderStyle:m,boxShadow:g==="none"?"none":g},className:"bg-black",ref:_=>_&&y&&x&&y(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:R.map(_=>p.jsx("a",{className:"text-white",href:_.url,target:"_blank",children:_.name},_.name))})]})})})};Jp.craft={displayName:"Footer",props:{background:"transparent",padding:{desktop:{top:16,right:16,bottom:16,left:16}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:Pi}};const eT=()=>{const{connectors:t}=ht(),e=[{name:"Wrapper",icon:qm,element:p.jsx(Ft,{is:rn,canvas:!0})},{name:"Container",icon:Um,element:p.jsx(Ft,{is:Fn,canvas:!0})},{name:"Div",icon:Ea,element:p.jsx(Ft,{is:zu,canvas:!0})}],r=[{name:"Heading",icon:Rd,element:p.jsx(Ru,{})},{name:"Text",icon:Dd,element:p.jsx(ju,{})},{name:"Button",icon:kd,element:p.jsx(su,{})},{name:"Link",icon:Rs,element:p.jsx(qu,{})}],n=[{name:"Image",icon:Pd,element:p.jsx(Pu,{})},{name:"Video",icon:jd,element:p.jsx(Hu,{})}],o=[{name:"Divider",icon:_d,element:p.jsx(_u,{})},{name:"Spacer",icon:Id,element:p.jsx(ku,{})}],i=(a,s)=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("span",{className:"text-xs text-muted-foreground/70",children:a}),p.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:s.map(u=>p.jsxs(ot,{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"}),i("Layout",e),i("Basic",r),i("Media",n),i("Utility",o)]})};var tT=v.createContext(void 0);function Uu(t){const e=v.useContext(tT);return t||e||"ltr"}function rT(t,[e,r]){return Math.min(r,Math.max(e,t))}function nT(t,e){return v.useReducer((r,n)=>e[r][n]??r,t)}var Vu="ScrollArea",[Zp]=pr(Vu),[oT,Ve]=Zp(Vu),Qp=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...a}=t,[s,u]=v.useState(null),[l,c]=v.useState(null),[h,f]=v.useState(null),[d,m]=v.useState(null),[g,b]=v.useState(null),[y,x]=v.useState(0),[S,E]=v.useState(0),[A,R]=v.useState(!1),[_,I]=v.useState(!1),M=Te(e,C=>u(C)),B=Uu(o);return p.jsx(oT,{scope:r,type:n,dir:B,scrollHideDelay:i,scrollArea:s,viewport:l,onViewportChange:c,content:h,onContentChange:f,scrollbarX:d,onScrollbarXChange:m,scrollbarXEnabled:A,onScrollbarXEnabledChange:R,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:_,onScrollbarYEnabledChange:I,onCornerWidthChange:x,onCornerHeightChange:E,children:p.jsx(ve.div,{dir:B,...a,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":S+"px",...t.style}})})});Qp.displayName=Vu;var eh="ScrollAreaViewport",th=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:o,...i}=t,a=Ve(eh,r),s=v.useRef(null),u=Te(e,s,a.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(ve.div,{"data-radix-scroll-area-viewport":"",...i,ref:u,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...t.style},children:p.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});th.displayName=eh;var gt="ScrollAreaScrollbar",Wu=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Ve(gt,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=t.orientation==="horizontal";return v.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?p.jsx(iT,{...n,ref:e,forceMount:r}):o.type==="scroll"?p.jsx(aT,{...n,ref:e,forceMount:r}):o.type==="auto"?p.jsx(rh,{...n,ref:e,forceMount:r}):o.type==="always"?p.jsx(Gu,{...n,ref:e}):null});Wu.displayName=gt;var iT=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Ve(gt,t.__scopeScrollArea),[i,a]=v.useState(!1);return v.useEffect(()=>{const s=o.scrollArea;let u=0;if(s){const l=()=>{window.clearTimeout(u),a(!0)},c=()=>{u=window.setTimeout(()=>a(!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(hr,{present:r||i,children:p.jsx(rh,{"data-state":i?"visible":"hidden",...n,ref:e})})}),aT=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Ve(gt,t.__scopeScrollArea),i=t.orientation==="horizontal",a=Gi(()=>u("SCROLL_END"),100),[s,u]=nT("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 v.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,u]),v.useEffect(()=>{const l=o.viewport,c=i?"scrollLeft":"scrollTop";if(l){let h=l[c];const f=()=>{const d=l[c];h!==d&&(u("SCROLL"),a()),h=d};return l.addEventListener("scroll",f),()=>l.removeEventListener("scroll",f)}},[o.viewport,i,u,a]),p.jsx(hr,{present:r||s!=="hidden",children:p.jsx(Gu,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:fe(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:fe(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),rh=v.forwardRef((t,e)=>{const r=Ve(gt,t.__scopeScrollArea),{forceMount:n,...o}=t,[i,a]=v.useState(!1),s=t.orientation==="horizontal",u=Gi(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;a(s?l:c)}},10);return qr(r.viewport,u),qr(r.content,u),p.jsx(hr,{present:n||i,children:p.jsx(Gu,{"data-state":i?"visible":"hidden",...o,ref:e})})}),Gu=v.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,o=Ve(gt,t.__scopeScrollArea),i=v.useRef(null),a=v.useRef(0),[s,u]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=sh(s.viewport,s.content),c={...n,sizes:s,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function h(f,d){return fT(f,a.current,s,d)}return r==="horizontal"?p.jsx(sT,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollLeft,d=fd(f,s,o.dir);i.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(uT,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollTop,d=fd(f,s);i.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}),sT=v.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,i=Ve(gt,t.__scopeScrollArea),[a,s]=v.useState(),u=v.useRef(null),l=Te(e,u,i.onScrollbarXChange);return v.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(oh,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Wi(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.x),onDragScroll:c=>t.onDragScroll(c.x),onWheelScroll:(c,h)=>{if(i.viewport){const f=i.viewport.scrollLeft+c.deltaX;t.onWheelScroll(f),lh(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&i.viewport&&a&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:ai(a.paddingLeft),paddingEnd:ai(a.paddingRight)}})}})}),uT=v.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,i=Ve(gt,t.__scopeScrollArea),[a,s]=v.useState(),u=v.useRef(null),l=Te(e,u,i.onScrollbarYChange);return v.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(oh,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Wi(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.y),onDragScroll:c=>t.onDragScroll(c.y),onWheelScroll:(c,h)=>{if(i.viewport){const f=i.viewport.scrollTop+c.deltaY;t.onWheelScroll(f),lh(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&i.viewport&&a&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:ai(a.paddingTop),paddingEnd:ai(a.paddingBottom)}})}})}),[lT,nh]=Zp(gt),oh=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:c,onResize:h,...f}=t,d=Ve(gt,r),[m,g]=v.useState(null),b=Te(e,M=>g(M)),y=v.useRef(null),x=v.useRef(""),S=d.viewport,E=n.content-n.viewport,A=ze(c),R=ze(u),_=Gi(h,10);function I(M){if(y.current){const B=M.clientX-y.current.left,C=M.clientY-y.current.top;l({x:B,y:C})}}return v.useEffect(()=>{const M=B=>{const C=B.target;(m==null?void 0:m.contains(C))&&A(B,E)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[S,m,E,A]),v.useEffect(R,[n,R]),qr(m,_),qr(d.content,_),p.jsx(lT,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:ze(i),onThumbPointerUp:ze(a),onThumbPositionChange:R,onThumbPointerDown:ze(s),children:p.jsx(ve.div,{...f,ref:b,style:{position:"absolute",...f.style},onPointerDown:fe(t.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),y.current=m.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",d.viewport&&(d.viewport.style.scrollBehavior="auto"),I(M))}),onPointerMove:fe(t.onPointerMove,I),onPointerUp:fe(t.onPointerUp,M=>{const B=M.target;B.hasPointerCapture(M.pointerId)&&B.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=x.current,d.viewport&&(d.viewport.style.scrollBehavior=""),y.current=null})})})}),ii="ScrollAreaThumb",ih=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=nh(ii,t.__scopeScrollArea);return p.jsx(hr,{present:r||o.hasThumb,children:p.jsx(cT,{ref:e,...n})})}),cT=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,style:n,...o}=t,i=Ve(ii,r),a=nh(ii,r),{onThumbPositionChange:s}=a,u=Te(e,h=>a.onThumbChange(h)),l=v.useRef(void 0),c=Gi(()=>{l.current&&(l.current(),l.current=void 0)},100);return v.useEffect(()=>{const h=i.viewport;if(h){const f=()=>{if(c(),!l.current){const d=pT(h,s);l.current=d,s()}};return s(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[i.viewport,c,s]),p.jsx(ve.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:fe(t.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),m=h.clientX-d.left,g=h.clientY-d.top;a.onThumbPointerDown({x:m,y:g})}),onPointerUp:fe(t.onPointerUp,a.onThumbPointerUp)})});ih.displayName=ii;var Yu="ScrollAreaCorner",ah=v.forwardRef((t,e)=>{const r=Ve(Yu,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(dT,{...t,ref:e}):null});ah.displayName=Yu;var dT=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,o=Ve(Yu,r),[i,a]=v.useState(0),[s,u]=v.useState(0),l=!!(i&&s);return qr(o.scrollbarX,()=>{var h;const c=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(c),u(c)}),qr(o.scrollbarY,()=>{var h;const c=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(c),a(c)}),l?p.jsx(ve.div,{...n,ref:e,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function ai(t){return t?parseInt(t,10):0}function sh(t,e){const r=t/e;return isNaN(r)?0:r}function Wi(t){const e=sh(t.viewport,t.content),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=(t.scrollbar.size-r)*e;return Math.max(n,18)}function fT(t,e,r,n="ltr"){const o=Wi(r),i=o/2,a=e||i,s=o-a,u=r.scrollbar.paddingStart+a,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,c=r.content-r.viewport,h=n==="ltr"?[0,c]:[c*-1,0];return uh([u,l],h)(t)}function fd(t,e,r="ltr"){const n=Wi(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-o,a=e.content-e.viewport,s=i-n,u=r==="ltr"?[0,a]:[a*-1,0],l=rT(t,u);return uh([0,a],[0,s])(l)}function uh(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 lh(t,e){return t>0&&t<e}var pT=(t,e=()=>{})=>{let r={left:t.scrollLeft,top:t.scrollTop},n=0;return function o(){const i={left:t.scrollLeft,top:t.scrollTop},a=r.left!==i.left,s=r.top!==i.top;(a||s)&&e(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Gi(t,e){const r=ze(t),n=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(n.current),[]),v.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,e)},[r,e])}function qr(t,e){const r=ze(e);Ut(()=>{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 ch=Qp,hT=th,mT=ah;const Xu=v.forwardRef(({className:t,children:e,...r},n)=>p.jsxs(ch,{ref:n,className:Ne("relative overflow-hidden",t),...r,children:[p.jsx(hT,{className:"h-full w-full rounded-[inherit]",children:e}),p.jsx(dh,{}),p.jsx(mT,{})]}));Xu.displayName=ch.displayName;const dh=v.forwardRef(({className:t,orientation:e="vertical",...r},n)=>p.jsx(Wu,{ref:n,orientation:e,className:Ne("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(ih,{className:"relative flex-1 rounded-full bg-border"})}));dh.displayName=Wu.displayName;const bT=()=>{const{selected:t,actions:e}=ht(r=>{var i,a,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:((a=(i=r.nodes[n])==null?void 0:i.data)==null?void 0:a.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(Wm,{className:"h-4 w-4"})})]}),p.jsx(Xu,{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"})})})},gT=t=>{switch(t){case"Container":return Ea;case"Text":return Dd;case"Heading":return Rd;case"Button":return kd;case"Image":return Pd;case"Divider":return _d;case"Spacer":return Id;case"Video":return Xm;case"Columns":return _m;case"Link":return Rs;default:return Ea}},fh=({nodeId:t,depth:e=0,onDragStart:r,onDragOver:n,onDrop:o,draggedId:i})=>{const{node:a,actions:s,selectedNodeId:u,childNodes:l,parentId:c}=ht((T,k)=>{var D,$;const L=T.nodes[t],N=((D=L==null?void 0:L.data)==null?void 0:D.nodes)||[],O=T.events.selected?Array.from(T.events.selected)[0]:null,P=($=L==null?void 0:L.data)==null?void 0:$.parent;return{node:L,childNodes:N,selectedNodeId:O,parentId:P}}),[h,f]=w.useState(!0),[d,m]=w.useState(!1);if(!a)return null;const g=a.data.displayName||a.data.name||"Unknown",b=l.length>0,y=u===t,x=t==="ROOT",S=gT(g),E=i===t,A=a.data.isCanvas,R=T=>{T.stopPropagation(),x||s.selectNode(t)},_=T=>{T.stopPropagation(),f(!h)},I=T=>{if(x){T.preventDefault();return}T.stopPropagation(),r(t,c)},M=T=>{T.preventDefault(),T.stopPropagation(),i&&i!==t&&A&&m(!0)},B=T=>{T.stopPropagation(),m(!1)},C=T=>{T.preventDefault(),T.stopPropagation(),m(!1),i&&i!==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 ${y?"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:R,draggable:!x,onDragStart:I,onDragOver:M,onDragLeave:B,onDrop:C,children:[!x&&p.jsx(Lm,{className:"h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing"}),b?p.jsx("button",{onClick:_,className:"p-0.5 hover:bg-secondary rounded",children:h?p.jsx(Os,{className:"h-3 w-3"}):p.jsx(js,{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})]}),b&&h&&p.jsx("div",{children:l.map(T=>p.jsx(fh,{nodeId:T,depth:e+1,onDragStart:r,onDragOver:n,onDrop:o,draggedId:i},T))})]})},yT=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(null),{nodeIds:o,actions:i}=ht(l=>({nodeIds:Object.keys(l.nodes)})),a=(l,c)=>{e(l),n(c)},s=l=>{if(t&&l&&t!==l)try{i.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(fh,{nodeId:"ROOT",onDragStart:a,onDrop:s,draggedId:t})}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Drag to containers to reorder"})]})};function pd(t){const e=vT(t),r=v.forwardRef((n,o)=>{const{children:i,...a}=n,s=v.Children.toArray(i),u=s.find(wT);if(u){const l=u.props.children,c=s.map(h=>h===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:o,children:i})});return r.displayName=`${t}.Slot`,r}function vT(t){const e=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const a=ET(o),s=ST(i,o.props);return o.type!==v.Fragment&&(s.ref=n?li(n,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var xT=Symbol("radix.slottable");function wT(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===xT}function ST(t,e){const r={...e};for(const n in e){const o=t[n],i=e[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...t,...r}}function ET(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 CT(t){const e=t+"CollectionProvider",[r,n]=pr(e),[o,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:b,children:y}=g,x=w.useRef(null),S=w.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:S,collectionRef:x,children:y})};a.displayName=e;const s=t+"CollectionSlot",u=pd(s),l=w.forwardRef((g,b)=>{const{scope:y,children:x}=g,S=i(s,y),E=Te(b,S.collectionRef);return p.jsx(u,{ref:E,children:x})});l.displayName=s;const c=t+"CollectionItemSlot",h="data-radix-collection-item",f=pd(c),d=w.forwardRef((g,b)=>{const{scope:y,children:x,...S}=g,E=w.useRef(null),A=Te(b,E),R=i(c,y);return w.useEffect(()=>(R.itemMap.set(E,{ref:E,...S}),()=>void R.itemMap.delete(E))),p.jsx(f,{[h]:"",ref:A,children:x})});d.displayName=c;function m(g){const b=i(t+"CollectionConsumer",g);return w.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((R,_)=>S.indexOf(R.ref.current)-S.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:l,ItemSlot:d},m,n]}var xa="rovingFocusGroup.onEntryFocus",TT={bubbles:!1,cancelable:!0},Zn="RovingFocusGroup",[vs,ph,NT]=CT(Zn),[AT,hh]=pr(Zn,[NT]),[OT,jT]=AT(Zn),mh=v.forwardRef((t,e)=>p.jsx(vs.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(vs.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(RT,{...t,ref:e})})}));mh.displayName=Zn;var RT=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...h}=t,f=v.useRef(null),d=Te(e,f),m=Uu(i),[g,b]=Qr({prop:a,defaultProp:s??null,onChange:u,caller:Zn}),[y,x]=v.useState(!1),S=ze(l),E=ph(r),A=v.useRef(!1),[R,_]=v.useState(0);return v.useEffect(()=>{const I=f.current;if(I)return I.addEventListener(xa,S),()=>I.removeEventListener(xa,S)},[S]),p.jsx(OT,{scope:r,orientation:n,dir:m,loop:o,currentTabStopId:g,onItemFocus:v.useCallback(I=>b(I),[b]),onItemShiftTab:v.useCallback(()=>x(!0),[]),onFocusableItemAdd:v.useCallback(()=>_(I=>I+1),[]),onFocusableItemRemove:v.useCallback(()=>_(I=>I-1),[]),children:p.jsx(ve.div,{tabIndex:y||R===0?-1:0,"data-orientation":n,...h,ref:d,style:{outline:"none",...t.style},onMouseDown:fe(t.onMouseDown,()=>{A.current=!0}),onFocus:fe(t.onFocus,I=>{const M=!A.current;if(I.target===I.currentTarget&&M&&!y){const B=new CustomEvent(xa,TT);if(I.currentTarget.dispatchEvent(B),!B.defaultPrevented){const C=E().filter(O=>O.focusable),T=C.find(O=>O.active),k=C.find(O=>O.id===g),N=[T,k,...C].filter(Boolean).map(O=>O.ref.current);yh(N,c)}}A.current=!1}),onBlur:fe(t.onBlur,()=>x(!1))})})}),bh="RovingFocusGroupItem",gh=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:a,...s}=t,u=Af(),l=i||u,c=jT(bh,r),h=c.currentTabStopId===l,f=ph(r),{onFocusableItemAdd:d,onFocusableItemRemove:m,currentTabStopId:g}=c;return v.useEffect(()=>{if(n)return d(),()=>m()},[n,d,m]),p.jsx(vs.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(ve.span,{tabIndex:h?0:-1,"data-orientation":c.orientation,...s,ref:e,onMouseDown:fe(t.onMouseDown,b=>{n?c.onItemFocus(l):b.preventDefault()}),onFocus:fe(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:fe(t.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=kT(b,c.orientation,c.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let S=f().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();const E=S.indexOf(b.currentTarget);S=c.loop?IT(S,E+1):S.slice(E+1)}setTimeout(()=>yh(S))}}),children:typeof a=="function"?a({isCurrentTabStop:h,hasTabStop:g!=null}):a})})});gh.displayName=bh;var PT={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function _T(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function kT(t,e,r){const n=_T(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return PT[n]}function yh(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function IT(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var DT=mh,LT=gh,vh="Toggle",Ku=v.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...i}=t,[a,s]=Qr({prop:r,onChange:o,defaultProp:n??!1,caller:vh});return p.jsx(ve.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":t.disabled?"":void 0,...i,ref:e,onClick:fe(t.onClick,()=>{t.disabled||s(!a)})})});Ku.displayName=vh;var xh=Ku,Jt="ToggleGroup",[wh]=pr(Jt,[hh]),Sh=hh(),Ju=w.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const o=n;return p.jsx(MT,{...o,ref:e})}if(r==="multiple"){const o=n;return p.jsx($T,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${Jt}\``)});Ju.displayName=Jt;var[Eh,Ch]=wh(Jt),MT=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=t,[a,s]=Qr({prop:r,defaultProp:n??"",onChange:o,caller:Jt});return p.jsx(Eh,{scope:t.__scopeToggleGroup,type:"single",value:w.useMemo(()=>a?[a]:[],[a]),onItemActivate:s,onItemDeactivate:w.useCallback(()=>s(""),[s]),children:p.jsx(Th,{...i,ref:e})})}),$T=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=t,[a,s]=Qr({prop:r,defaultProp:n??[],onChange:o,caller:Jt}),u=w.useCallback(c=>s((h=[])=>[...h,c]),[s]),l=w.useCallback(c=>s((h=[])=>h.filter(f=>f!==c)),[s]);return p.jsx(Eh,{scope:t.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:u,onItemDeactivate:l,children:p.jsx(Th,{...i,ref:e})})});Ju.displayName=Jt;var[BT,FT]=wh(Jt),Th=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:i,dir:a,loop:s=!0,...u}=t,l=Sh(r),c=Uu(a),h={role:"group",dir:c,...u};return p.jsx(BT,{scope:r,rovingFocus:o,disabled:n,children:o?p.jsx(DT,{asChild:!0,...l,orientation:i,dir:c,loop:s,children:p.jsx(ve.div,{...h,ref:e})}):p.jsx(ve.div,{...h,ref:e})})}),si="ToggleGroupItem",Nh=w.forwardRef((t,e)=>{const r=Ch(si,t.__scopeToggleGroup),n=FT(si,t.__scopeToggleGroup),o=Sh(t.__scopeToggleGroup),i=r.value.includes(t.value),a=n.disabled||t.disabled,s={...t,pressed:i,disabled:a},u=w.useRef(null);return n.rovingFocus?p.jsx(LT,{asChild:!0,...o,focusable:!a,active:i,ref:u,children:p.jsx(hd,{...s,ref:e})}):p.jsx(hd,{...s,ref:e})});Nh.displayName=si;var hd=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...o}=t,i=Ch(si,r),a={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=i.type==="single"?a:void 0;return p.jsx(Ku,{...s,...o,ref:e,onPressedChange:u=>{u?i.onItemActivate(n):i.onItemDeactivate(n)}})}),Ah=Ju,Oh=Nh;const jh=Md("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"}}),HT=v.forwardRef(({className:t,variant:e,size:r,...n},o)=>p.jsx(xh,{ref:o,className:Ne(jh({variant:e,size:r,className:t})),...n}));HT.displayName=xh.displayName;const Rh=v.createContext({size:"default",variant:"default"}),Ph=v.forwardRef(({className:t,variant:e,size:r,children:n,...o},i)=>p.jsx(Ah,{ref:i,className:Ne("flex items-center justify-center gap-1",t),...o,children:p.jsx(Rh.Provider,{value:{variant:e,size:r},children:n})}));Ph.displayName=Ah.displayName;const _h=v.forwardRef(({className:t,children:e,variant:r,size:n,...o},i)=>{const a=v.useContext(Rh);return p.jsx(Oh,{ref:i,className:Ne(jh({variant:a.variant||r,size:a.size||n}),t),...o,children:e})});_h.displayName=Oh.displayName;var qT=t=>{switch(t){case"success":return VT;case"info":return GT;case"warning":return WT;case"error":return YT;default:return null}},zT=Array(12).fill(0),UT=({visible:t,className:e})=>w.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},w.createElement("div",{className:"sonner-spinner"},zT.map((r,n)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),VT=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"})),WT=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"})),GT=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"})),YT=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"})),XT=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"})),KT=()=>{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},xs=1,JT=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:xs++,i=this.toasts.find(s=>s.id===o),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...t,id:o,title:r}),{...s,...t,id:o,dismissible:a,title:r}):s):this.addToast({title:r,...n,dismissible:a,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,i,a=n.then(async u=>{if(i=["resolve",u],w.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(QT(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(i=["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)=>a.then(()=>i[0]==="reject"?l(i[1]):u(i[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)||xs++;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}},Pe=new JT,ZT=(t,e)=>{let r=(e==null?void 0:e.id)||xs++;return Pe.addToast({title:t,...e,id:r}),r},QT=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",eN=ZT,tN=()=>Pe.toasts,rN=()=>Pe.getActiveToasts(),nN=Object.assign(eN,{success:Pe.success,info:Pe.info,warning:Pe.warning,error:Pe.error,custom:Pe.custom,message:Pe.message,promise:Pe.promise,dismiss:Pe.dismiss,loading:Pe.loading},{getHistory:tN,getToasts:rN});function oN(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))}oN(`: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%)}
285
- `);function xo(t){return t.label!==void 0}var iN=3,aN="32px",sN="16px",md=4e3,uN=356,lN=14,cN=20,dN=200;function Xe(...t){return t.filter(Boolean).join(" ")}function fN(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var pN=t=>{var e,r,n,o,i,a,s,u,l,c,h;let{invert:f,toast:d,unstyled:m,interacting:g,setHeights:b,visibleToasts:y,heights:x,index:S,toasts:E,expanded:A,removeToast:R,defaultRichColors:_,closeButton:I,style:M,cancelButtonStyle:B,actionButtonStyle:C,className:T="",descriptionClassName:k="",duration:L,position:N,gap:O,loadingIcon:P,expandByDefault:D,classNames:$,icons:z,closeButtonAriaLabel:re="Close toast",pauseWhenPageIsHidden:Z}=t,[H,F]=w.useState(null),[he,J]=w.useState(null),[q,Re]=w.useState(!1),[Ee,xe]=w.useState(!1),[tt,yt]=w.useState(!1),[rt,Qn]=w.useState(!1),[Yi,eo]=w.useState(!1),[Xi,nn]=w.useState(0),[gr,Zu]=w.useState(0),on=w.useRef(d.duration||L||md),Qu=w.useRef(null),Zt=w.useRef(null),Lh=S===0,Mh=S+1<=y,Be=d.type,yr=d.dismissible!==!1,$h=d.className||"",Bh=d.descriptionClassName||"",to=w.useMemo(()=>x.findIndex(W=>W.toastId===d.id)||0,[x,d.id]),Fh=w.useMemo(()=>{var W;return(W=d.closeButton)!=null?W:I},[d.closeButton,I]),el=w.useMemo(()=>d.duration||L||md,[d.duration,L]),Ki=w.useRef(0),vr=w.useRef(0),tl=w.useRef(0),xr=w.useRef(null),[Hh,qh]=N.split("-"),rl=w.useMemo(()=>x.reduce((W,ie,pe)=>pe>=to?W:W+ie.height,0),[x,to]),nl=KT(),zh=d.invert||f,Ji=Be==="loading";vr.current=w.useMemo(()=>to*O+rl,[to,rl]),w.useEffect(()=>{on.current=el},[el]),w.useEffect(()=>{Re(!0)},[]),w.useEffect(()=>{let W=Zt.current;if(W){let ie=W.getBoundingClientRect().height;return Zu(ie),b(pe=>[{toastId:d.id,height:ie,position:d.position},...pe]),()=>b(pe=>pe.filter(We=>We.toastId!==d.id))}},[b,d.id]),w.useLayoutEffect(()=>{if(!q)return;let W=Zt.current,ie=W.style.height;W.style.height="auto";let pe=W.getBoundingClientRect().height;W.style.height=ie,Zu(pe),b(We=>We.find(Ge=>Ge.toastId===d.id)?We.map(Ge=>Ge.toastId===d.id?{...Ge,height:pe}:Ge):[{toastId:d.id,height:pe,position:d.position},...We])},[q,d.title,d.description,b,d.id]);let It=w.useCallback(()=>{xe(!0),nn(vr.current),b(W=>W.filter(ie=>ie.toastId!==d.id)),setTimeout(()=>{R(d)},dN)},[d,R,b,vr]);w.useEffect(()=>{if(d.promise&&Be==="loading"||d.duration===1/0||d.type==="loading")return;let W;return A||g||Z&&nl?(()=>{if(tl.current<Ki.current){let ie=new Date().getTime()-Ki.current;on.current=on.current-ie}tl.current=new Date().getTime()})():on.current!==1/0&&(Ki.current=new Date().getTime(),W=setTimeout(()=>{var ie;(ie=d.onAutoClose)==null||ie.call(d,d),It()},on.current)),()=>clearTimeout(W)},[A,g,d,Be,Z,nl,It]),w.useEffect(()=>{d.delete&&It()},[It,d.delete]);function Uh(){var W,ie,pe;return z!=null&&z.loading?w.createElement("div",{className:Xe($==null?void 0:$.loader,(W=d==null?void 0:d.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":Be==="loading"},z.loading):P?w.createElement("div",{className:Xe($==null?void 0:$.loader,(ie=d==null?void 0:d.classNames)==null?void 0:ie.loader,"sonner-loader"),"data-visible":Be==="loading"},P):w.createElement(UT,{className:Xe($==null?void 0:$.loader,(pe=d==null?void 0:d.classNames)==null?void 0:pe.loader),visible:Be==="loading"})}return w.createElement("li",{tabIndex:0,ref:Zt,className:Xe(T,$h,$==null?void 0:$.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,$==null?void 0:$.default,$==null?void 0:$[Be],(r=d==null?void 0:d.classNames)==null?void 0:r[Be]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:_,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":q,"data-promise":!!d.promise,"data-swiped":Yi,"data-removed":Ee,"data-visible":Mh,"data-y-position":Hh,"data-x-position":qh,"data-index":S,"data-front":Lh,"data-swiping":tt,"data-dismissible":yr,"data-type":Be,"data-invert":zh,"data-swipe-out":rt,"data-swipe-direction":he,"data-expanded":!!(A||D&&q),style:{"--index":S,"--toasts-before":S,"--z-index":E.length-S,"--offset":`${Ee?Xi:vr.current}px`,"--initial-height":D?"auto":`${gr}px`,...M,...d.style},onDragEnd:()=>{yt(!1),F(null),xr.current=null},onPointerDown:W=>{Ji||!yr||(Qu.current=new Date,nn(vr.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(yt(!0),xr.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,ie,pe,We;if(rt||!yr)return;xr.current=null;let Ge=Number(((W=Zt.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Dt=Number(((ie=Zt.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Qt=new Date().getTime()-((pe=Qu.current)==null?void 0:pe.getTime()),Ye=H==="x"?Ge:Dt,Lt=Math.abs(Ye)/Qt;if(Math.abs(Ye)>=cN||Lt>.11){nn(vr.current),(We=d.onDismiss)==null||We.call(d,d),J(H==="x"?Ge>0?"right":"left":Dt>0?"down":"up"),It(),Qn(!0),eo(!1);return}yt(!1),F(null)},onPointerMove:W=>{var ie,pe,We,Ge;if(!xr.current||!yr||((ie=window.getSelection())==null?void 0:ie.toString().length)>0)return;let Dt=W.clientY-xr.current.y,Qt=W.clientX-xr.current.x,Ye=(pe=t.swipeDirections)!=null?pe:fN(N);!H&&(Math.abs(Qt)>1||Math.abs(Dt)>1)&&F(Math.abs(Qt)>Math.abs(Dt)?"x":"y");let Lt={x:0,y:0};H==="y"?(Ye.includes("top")||Ye.includes("bottom"))&&(Ye.includes("top")&&Dt<0||Ye.includes("bottom")&&Dt>0)&&(Lt.y=Dt):H==="x"&&(Ye.includes("left")||Ye.includes("right"))&&(Ye.includes("left")&&Qt<0||Ye.includes("right")&&Qt>0)&&(Lt.x=Qt),(Math.abs(Lt.x)>0||Math.abs(Lt.y)>0)&&eo(!0),(We=Zt.current)==null||We.style.setProperty("--swipe-amount-x",`${Lt.x}px`),(Ge=Zt.current)==null||Ge.style.setProperty("--swipe-amount-y",`${Lt.y}px`)}},Fh&&!d.jsx?w.createElement("button",{"aria-label":re,"data-disabled":Ji,"data-close-button":!0,onClick:Ji||!yr?()=>{}:()=>{var W;It(),(W=d.onDismiss)==null||W.call(d,d)},className:Xe($==null?void 0:$.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(i=z==null?void 0:z.close)!=null?i:XT):null,d.jsx||w.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:w.createElement(w.Fragment,null,Be||d.icon||d.promise?w.createElement("div",{"data-icon":"",className:Xe($==null?void 0:$.icon,(a=d==null?void 0:d.classNames)==null?void 0:a.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Uh():null,d.type!=="loading"?d.icon||(z==null?void 0:z[Be])||qT(Be):null):null,w.createElement("div",{"data-content":"",className:Xe($==null?void 0:$.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:Xe($==null?void 0:$.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:Xe(k,Bh,$==null?void 0:$.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&&xo(d.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||B,onClick:W=>{var ie,pe;xo(d.cancel)&&yr&&((pe=(ie=d.cancel).onClick)==null||pe.call(ie,W),It())},className:Xe($==null?void 0:$.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&&xo(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||C,onClick:W=>{var ie,pe;xo(d.action)&&((pe=(ie=d.action).onClick)==null||pe.call(ie,W),!W.defaultPrevented&&It())},className:Xe($==null?void 0:$.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function bd(){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 hN(t,e){let r={};return[t,e].forEach((n,o)=>{let i=o===1,a=i?"--mobile-offset":"--offset",s=i?sN:aN;function u(l){["top","right","bottom","left"].forEach(c=>{r[`${a}-${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[`${a}-${l}`]=s:r[`${a}-${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:i,closeButton:a,className:s,offset:u,mobileOffset:l,theme:c="light",richColors:h,duration:f,style:d,visibleToasts:m=iN,toastOptions:g,dir:b=bd(),gap:y=lN,loadingIcon:x,icons:S,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:A}=t,[R,_]=w.useState([]),I=w.useMemo(()=>Array.from(new Set([n].concat(R.filter(Z=>Z.position).map(Z=>Z.position)))),[R,n]),[M,B]=w.useState([]),[C,T]=w.useState(!1),[k,L]=w.useState(!1),[N,O]=w.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),P=w.useRef(null),D=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=w.useRef(null),z=w.useRef(!1),re=w.useCallback(Z=>{_(H=>{var F;return(F=H.find(he=>he.id===Z.id))!=null&&F.delete||Pe.dismiss(Z.id),H.filter(({id:he})=>he!==Z.id)})},[]);return w.useEffect(()=>Pe.subscribe(Z=>{if(Z.dismiss){_(H=>H.map(F=>F.id===Z.id?{...F,delete:!0}:F));return}setTimeout(()=>{Ss.flushSync(()=>{_(H=>{let F=H.findIndex(he=>he.id===Z.id);return F!==-1?[...H.slice(0,F),{...H[F],...Z},...H.slice(F+1)]:[Z,...H]})})})}),[]),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:H})=>{O(H?"dark":"light")})}catch{Z.addListener(({matches:F})=>{try{O(F?"dark":"light")}catch(he){console.error(he)}})}},[c]),w.useEffect(()=>{R.length<=1&&T(!1)},[R]),w.useEffect(()=>{let Z=H=>{var F,he;o.every(J=>H[J]||H.code===J)&&(T(!0),(F=P.current)==null||F.focus()),H.code==="Escape"&&(document.activeElement===P.current||(he=P.current)!=null&&he.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[o]),w.useEffect(()=>{if(P.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,z.current=!1)}},[P.current]),w.createElement("section",{ref:e,"aria-label":`${E} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((Z,H)=>{var F;let[he,J]=Z.split("-");return R.length?w.createElement("ol",{key:Z,dir:b==="auto"?bd():b,tabIndex:-1,ref:P,className:s,"data-sonner-toaster":!0,"data-theme":N,"data-y-position":he,"data-lifted":C&&R.length>1&&!i,"data-x-position":J,style:{"--front-toast-height":`${((F=M[0])==null?void 0:F.height)||0}px`,"--width":`${uN}px`,"--gap":`${y}px`,...d,...hN(u,l)},onBlur:q=>{z.current&&!q.currentTarget.contains(q.relatedTarget)&&(z.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||z.current||(z.current=!0,$.current=q.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{k||T(!1)},onDragEnd:()=>T(!1),onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},R.filter(q=>!q.position&&H===0||q.position===Z).map((q,Re)=>{var Ee,xe;return w.createElement(pN,{key:q.id,icons:S,index:Re,toast:q,defaultRichColors:h,duration:(Ee=g==null?void 0:g.duration)!=null?Ee:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:m,closeButton:(xe=g==null?void 0:g.closeButton)!=null?xe:a,interacting:k,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:re,toasts:R.filter(tt=>tt.position==q.position),heights:M.filter(tt=>tt.position==q.position),setHeights:B,expandByDefault:i,gap:y,loadingIcon:x,expanded:C,pauseWhenPageIsHidden:A,swipeDirections:t.swipeDirections})})):null}))});const ws={mobile:{width:375,icon:_s,label:"Mobile (375px)"},tablet:{width:768,icon:ks,label:"Tablet (768px)"},small:{width:1024,icon:Ps,label:"Small Desktop (1024px)"},desktop:{width:"100%",icon:Is,label:"Desktop (Full)"}},mN=({handleSavePopup:t,setIsOpen:e,onSave:r,deviceSize:n,onDeviceSizeChange:o,setEditPopup:i,editPopup:a})=>{const{actions:s,query:u,canUndo:l,canRedo:c}=ht((f,d)=>({canUndo:d.history.canUndo(),canRedo:d.history.canRedo()})),h=()=>{const f=u.serialize();a?t==null||t(f):r==null||r(f),nN.success("Page saved successfully")};return p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(On,{children:p.jsx(Ph,{type:"single",value:n,onValueChange:f=>f&&o(f),className:"bg-muted rounded-md p-1",children:Object.entries(ws).map(([f,{icon:d,label:m}])=>p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx(_h,{value:f,size:"sm",className:"data-[state=on]:bg-background data-[state=on]:shadow-sm",children:p.jsx(d,{className:"h-4 w-4"})})}),p.jsx(sr,{side:"bottom",children:p.jsx("p",{children:m})})]},f))})}),p.jsx("div",{className:"h-6 w-px bg-border"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs(ot,{variant:"outline",size:"sm",onClick:()=>i(f=>!f),children:[a?"Edit page":"Edit popup"," ",p.jsx(zm,{className:"h-4 w-4"})]}),p.jsx(ot,{variant:"outline",size:"sm",onClick:()=>s.history.undo(),disabled:!l,children:p.jsx(Ym,{className:"h-4 w-4"})}),p.jsx(ot,{variant:"outline",size:"sm",onClick:()=>s.history.redo(),disabled:!c,children:p.jsx(Fm,{className:"h-4 w-4"})}),p.jsxs(ot,{size:"sm",onClick:()=>e(!0),children:["Preview Page ",p.jsx(Dm,{className:"ml-2 h-4 w-4"})]}),p.jsxs(ot,{size:"sm",onClick:h,children:[p.jsx(Hm,{className:"h-4 w-4 mr-2"}),"Save"]})]})]})},kh=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:i,events:a}=se(s=>({events:s.events}));r=i.connect,n=i.drag,o=a.selected}catch{}return p.jsx("div",{ref:i=>{i&&r&&n&&(r==null||r(n(i)))},className:ct("relative min-h-[100vh]",e||""),children:t})};kh.craft={props:{},displayName:"Body",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Body")}};const gd=({htmlJson:t,editorState:e})=>{const{actions:r}=ht();return w.useEffect(()=>{t?r.deserialize(t):e?r.deserialize(e):r.deserialize({ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body"}})},[]),p.jsx(Js,{})},bN=({htmlJson:t,enabled:e,popupEditorState:r})=>{const{actions:n}=ht();return w.useEffect(()=>{if(t)n.deserialize(t);else if(r)n.deserialize(r);else{const o={ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body",nodes:["popupWrapperNode"],linkedNodes:{}},popupWrapperNode:{type:{resolvedName:"Wrapper"},isCanvas:!0,props:{...jn,width:{desktop:{type:"custom",value:"100",unit:"%"}},height:{desktop:{type:"custom",value:"100",unit:"vh"}},backgroundColor:"rgba(0,0,0,0.25)",position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",id:"popupWrapper",onClick:i=>{console.log("test"),i.target.id}},displayName:"Wrapper",nodes:["popupContainerNode"],parent:"ROOT",linkedNodes:{}},popupContainerNode:{type:{resolvedName:"Container"},isCanvas:!0,props:{...jn,width:{desktop:{type:"custom",value:"90",unit:"%"}},height:{desktop:{type:"custom",value:"60",unit:"%"}},backgroundColor:"white",id:"popupContainer"},displayName:"Container",nodes:[],parent:"popupWrapperNode",linkedNodes:{}}};n.deserialize(o)}},[]),p.jsx(Js,{})},ui={Body:kh,Div:zu,Wrapper:rn,Section:Kp,Container:Fn,Text:ju,ButtonComponent:su,Heading:Ru,Image:Pu,Img:Xp,Divider:_u,Spacer:ku,Video:Hu,Columns:Yp,Link:qu,Footer:Jp},gN=({handleSavePopup:t,popupEditorState:e,popupHtmlJson:r,handleStateChangePopup:n,editorState:o,setIsOpen:i,initialData:a,onSave:s,onStateChange:u,enabled:l=!0})=>{var E;const c=$n(),[h,f]=w.useState("desktop"),[d,m]=w.useState(!1),g=w.useRef(d);g.current=d;const[b,y]=w.useState(((E=ws[h])==null?void 0:E.width)||"100%");w.useEffect(()=>{var R;const A=((R=ws[h])==null?void 0:R.width)||"100%";y(A)},[h]),w.useEffect(()=>{if(!l&&window.self===window.top){const A=()=>{const R=window.innerWidth;R<640?f("mobile"):R<1024?f("tablet"):R<1280?f("small"):f("desktop")};return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)}},[l]),w.useEffect(()=>{if(window.parent&&window.self!==window.top){const A=R=>{if(R.data.type==="PARENT_WIDTH"){const _=R.data.width;_<640?f("mobile"):_<1024?f("tablet"):_<1280?f("small"):f("desktop")}};return window.addEventListener("message",A),()=>{window.removeEventListener("message",A)}}},[]);const x=A=>{if(u)try{const R=A.serialize();u(R)}catch(R){console.log(R)}},S=A=>{if(n)try{const R=A.serialize();n(R)}catch(R){console.log(R)}};return l?p.jsx(Ua,{resolver:ui,enabled:l,onNodesChange:A=>{g.current?S(A):x(A)},children:p.jsx(qo,{value:h,children:p.jsx(xn,{value:c,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:d?"Popup Builder":"Page Builder"}),p.jsx(mN,{setIsOpen:i,onSave:s,handleSavePopup:t,deviceSize:h,onDeviceSizeChange:f,editPopup:d,setEditPopup:m})]}),p.jsxs("div",{className:"flex gap-4 mt-4 flex-1 min-h-0",children:[p.jsx(mn,{className:"w-52",children:p.jsxs(bn,{className:"p-4 space-y-6",children:[p.jsx(eT,{}),p.jsx(yT,{})]})}),p.jsx(mn,{className:"flex-1 overflow-hidden bg-muted/30 flex flex-col",children:p.jsx(bn,{className:"p-4 flex-1 flex justify-center overflow-hidden",children:p.jsx(Xu,{className:"h-full w-full",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg min-h-full border border-dashed transition-all duration-300 ",style:{width:typeof b=="number"?`${b}px`:b,maxWidth:"100%"},children:d?p.jsx(bN,{popupEditorState:e,enabled:l,htmlJson:r}):p.jsx(gd,{editorState:o,htmlJson:a})})})})})}),p.jsx(mn,{className:"w-64 flex flex-col",children:p.jsx(bn,{className:"p-4 flex-1 overflow-hidden",children:p.jsx(bT,{})})})]})]})})})}):p.jsx(qo,{value:h,children:p.jsx(xn,{value:c,children:p.jsx(Ua,{resolver:ui,enabled:l,children:p.jsx(gd,{htmlJson:a})})})})},wa={mobile:{width:375,label:"Mobile",icon:_s},tablet:{width:768,label:"Tablet",icon:ks},small:{width:1024,label:"Small",icon:Ps},desktop:{width:1440,label:"Desktop",icon:Is}},yN=({editorState:t,deviceSize:e})=>p.jsx(Ua,{resolver:ui,enabled:!1,children:p.jsx(qo,{value:e,children:p.jsx(vN,{editorState:t})})}),vN=({editorState:t})=>{const{actions:e}=ht();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(Js,{})},Ih=({isOpen:t,onClose:e,eventData:r,editorState:n,popupEditorState:o})=>{var u,l;const[i,a]=w.useState("desktop");if(w.useEffect(()=>{const c=h=>{h.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[t,e]),!t)return null;const s=((u=wa[i])==null?void 0:u.width)||1440;return p.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col bg-white",children:[p.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border bg-card",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("h2",{className:"text-lg font-semibold",children:"Preview"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["(",(l=wa[i])==null?void 0:l.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(wa).map(([c,{label:h,icon:f}])=>p.jsxs(ot,{variant:"ghost",size:"sm",onClick:()=>a(c),className:sb("h-8 px-3 gap-2",i===c&&"bg-background shadow-sm"),children:[p.jsx(f,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:h})]},c))}),p.jsx(ot,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(Km,{className:"h-5 w-5"})})]}),p.jsx("div",{className:"flex-1 overflow-auto bg-muted/50 p-6",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg shadow-xl transition-all duration-300 overflow-hidden p-4",style:{width:`${s}px`,maxWidth:"100%"},children:p.jsx(xn,{value:r,children:n?p.jsx(yN,{editorState:n,deviceSize:i}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},xN=({handleSavePopup:t,popupEditorState:e,popupHtmlJson:r,handleStateChangePopup:n,editorState:o,initialData:i,onSave:a,onStateChange:s,eventData:u,enabled:l=!0})=>{const[c,h]=w.useState(!1);return p.jsx(xn,{value:u,children:p.jsxs(w.Suspense,{fallback:p.jsx(mn,{children:p.jsx(bn,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(ro,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(ro,{className:"h-[500px] w-48"}),p.jsx(ro,{className:"h-[500px] flex-1"}),p.jsx(ro,{className:"h-[500px] w-64"})]})]})})}),children:[p.jsx(gN,{popupHtmlJson:r,popupEditorState:e,handleStateChangePopup:n,editorState:o,enabled:l,setIsOpen:h,initialData:i,onSave:a,handleSavePopup:t,onStateChange:s}),l?p.jsx(Ih,{popupEditorState:e,eventData:u,editorState:o,isOpen:c,onClose:()=>h(!1)}):null]})})},Dh=w.createContext({fetchVideoByLocation:null}),wN=({children:t,fetchVideoByLocation:e})=>p.jsx(Dh.Provider,{value:{fetchVideoByLocation:e},children:t}),SN=()=>w.useContext(Dh);exports.ApiConfigProvider=wN;exports.DEVICE_ORDER=qe;exports.DeviceSizeProvider=qo;exports.EventDataProvider=xn;exports.PageBuilder=xN;exports.PreviewModal=Ih;exports.TEMPLATE_VARIABLES=v4;exports.getPlaceholderPaths=y4;exports.getResponsiveValue=Tt;exports.hasTemplatePlaceholders=g4;exports.processTemplate=Xo;exports.resolver=ui;exports.useApiConfig=SN;exports.useDeviceSize=Ae;exports.useEventData=$n;
279
+ `)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},Cr(e.allowedAttributes,function(N,O){u[O]=[];const P=[];N.forEach(function(D){typeof D=="string"&&D.indexOf("*")>=0?P.push(Wc(D).replace(/\\\*/g,".*")):u[O].push(D)}),P.length&&(l[O]=new RegExp("^("+P.join("|")+")$"))}));const c={},h={},f={};Cr(e.allowedClasses,function(N,O){if(u&&(St(u,O)||(u[O]=[]),u[O].push("class")),c[O]=N,Array.isArray(N)){const P=[];c[O]=[],f[O]=[],N.forEach(function(D){typeof D=="string"&&D.indexOf("*")>=0?P.push(Wc(D).replace(/\\\*/g,".*")):D instanceof RegExp?f[O].push(D):c[O].push(D)}),P.length&&(h[O]=new RegExp("^("+P.join("|")+")$"))}});const d={};let m;Cr(e.transformTags,function(N,O){let P;typeof N=="function"?P=N:typeof N=="string"&&(P=$n.simpleTransform(N)),O==="*"?m=P:d[O]=P});let g,b,y,x,S,E,A=!1;_();const R=new L5.Parser({onopentag:function(N,O){if(e.onOpenTag&&e.onOpenTag(N,O),e.enforceHtmlBoundary&&N==="html"&&_(),S){E++;return}const P=new i(N,O);b.push(P);let D=!1;const $=!!P.text;let z;if(St(d,N)&&(z=d[N](N,O),P.attribs=O=z.attribs,z.text!==void 0&&(P.innerText=z.text),N!==z.tagName&&(P.name=N=z.tagName,x[g]=z.tagName)),m&&(z=m(N,O),P.attribs=O=z.attribs,N!==z.tagName&&(P.name=N=z.tagName,x[g]=z.tagName)),(!a(N)||e.disallowedTagsMode==="recursiveEscape"&&!q5(y)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(D=!0,y[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(N)!==-1&&(S=!0,E=1)),g++,D){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(P.innerText&&!$){const H=I(P.innerText);e.textFilter?n+=e.textFilter(H,N):n+=H,A=!0}return}o=n,n=""}n+="<"+N,N==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(P.innerText=""),D&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?Cr(O,function(H,F){n+=" "+F+'="'+I(H||"",!0)+'"'}):(!u||St(u,N)||u["*"])&&Cr(O,function(H,F){if(!V5.test(F)){delete P.attribs[F];return}if(H===""&&!e.allowedEmptyAttributes.includes(F)&&(e.nonBooleanAttributes.includes(F)||e.nonBooleanAttributes.includes("*"))){delete P.attribs[F];return}let he=!1;if(!u||St(u,N)&&u[N].indexOf(F)!==-1||u["*"]&&u["*"].indexOf(F)!==-1||St(l,N)&&l[N].test(F)||l["*"]&&l["*"].test(F))he=!0;else if(u&&u[N]){for(const J of u[N])if(M5(J)&&J.name&&J.name===F){he=!0;let q="";if(J.multiple===!0){const Re=H.split(" ");for(const Ee of Re)J.values.indexOf(Ee)!==-1&&(q===""?q=Ee:q+=" "+Ee)}else J.values.indexOf(H)>=0&&(q=H);H=q}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(F)!==-1&&M(N,H)){delete P.attribs[F];return}if(N==="script"&&F==="src"){let J=!0;try{const q=B(H);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Re=(e.allowedScriptHostnames||[]).find(function(xe){return xe===q.url.hostname}),Ee=(e.allowedScriptDomains||[]).find(function(xe){return q.url.hostname===xe||q.url.hostname.endsWith(`.${xe}`)});J=Re||Ee}}catch{J=!1}if(!J){delete P.attribs[F];return}}if(N==="iframe"&&F==="src"){let J=!0;try{const q=B(H);if(q.isRelativeUrl)J=St(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Re=(e.allowedIframeHostnames||[]).find(function(xe){return xe===q.url.hostname}),Ee=(e.allowedIframeDomains||[]).find(function(xe){return q.url.hostname===xe||q.url.hostname.endsWith(`.${xe}`)});J=Re||Ee}}catch{J=!1}if(!J){delete P.attribs[F];return}}if(F==="srcset")try{let J=$5(H);if(J.forEach(function(q){M("srcset",q.url)&&(q.evil=!0)}),J=Yc(J,function(q){return!q.evil}),J.length)H=z5(Yc(J,function(q){return!q.evil})),P.attribs[F]=H;else{delete P.attribs[F];return}}catch{delete P.attribs[F];return}if(F==="class"){const J=c[N],q=c["*"],Re=h[N],Ee=f[N],xe=f["*"],tt=h["*"],yt=[Re,tt].concat(Ee,xe).filter(function(rt){return rt});if(J&&q?H=L(H,Gc(J,q),yt):H=L(H,J||q,yt),!H.length){delete P.attribs[F];return}}if(F==="style"){if(e.parseStyleAttributes)try{const J=B5(N+" {"+H+"}",{map:!1}),q=C(J,e.allowedStyles);if(H=T(q),H.length===0){delete P.attribs[F];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+N+" {"+H+`}", 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 P.attribs[F];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+F,H&&H.length?n+='="'+I(H,!0)+'"':e.allowedEmptyAttributes.includes(F)&&(n+='=""')}else delete P.attribs[F]}),e.selfClosing.indexOf(N)!==-1?n+=" />":(n+=">",P.innerText&&!$&&!e.textFilter&&(n+=I(P.innerText),A=!0)),D&&(n=o+I(n),o=""),P.openingTagLength=n.length-P.tagPosition},ontext:function(N){if(S)return;const O=b[b.length-1];let P;if(O&&(P=O.tag,N=O.innerText!==void 0?O.innerText:N),e.disallowedTagsMode==="completelyDiscard"&&!a(P))N="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(P==="script"||P==="style"))n+=N;else if(!A){const D=I(N,!1);e.textFilter?n+=e.textFilter(D,P):n+=D}if(b.length){const D=b[b.length-1];D.text+=N}},onclosetag:function(N,O){if(e.onCloseTag&&e.onCloseTag(N,O),S)if(E--,!E)S=!1;else return;const P=b.pop();if(!P)return;if(P.tag!==N){b.push(P);return}S=e.enforceHtmlBoundary?N==="html":!1,g--;const D=y[g];if(D){if(delete y[g],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){P.updateParentNodeText();return}o=n,n=""}if(x[g]&&(N=x[g],delete x[g]),e.exclusiveFilter){const $=e.exclusiveFilter(P);if($==="excludeTag"){D&&(n=o,o=""),n=n.substring(0,P.tagPosition)+n.substring(P.tagPosition+P.openingTagLength);return}else if($){n=n.substring(0,P.tagPosition);return}}if(P.updateParentNodeMediaChildren(),P.updateParentNodeText(),e.selfClosing.indexOf(N)!==-1||O&&!a(N)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){D&&(n=o,o="");return}n+="</"+N+">",D&&(n=o+I(n),o=""),A=!1}},e.parser);return R.write(t),R.end(),n;function _(){n="",g=0,b=[],y={},x={},S=!1,E=0}function I(N,O){return typeof N!="string"&&(N=N+""),e.parser.decodeEntities&&(N=N.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;"))),N=N.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;"),O&&(N=N.replace(/"/g,"&quot;")),N}function M(N,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const $=O.indexOf("<!--");if($===-1)break;const z=O.indexOf("-->",$+4);if(z===-1)break;O=O.substring(0,$)+O.substring(z+3)}const P=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!P)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const D=P[1].toLowerCase();return St(e.allowedSchemesByTag,N)?e.allowedSchemesByTag[N].indexOf(D)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(D)===-1}function B(N){if(N=N.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),N.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let $=0;$<100;$++)O+=`/${$}`;const P=new URL(N,O);return{isRelativeUrl:P&&P.hostname==="relative-site"&&P.protocol==="relative:",url:P}}function C(N,O){if(!O)return N;const P=N.nodes[0];let D;return O[P.selector]&&O["*"]?D=Gc(O[P.selector],O["*"]):D=O[P.selector]||O["*"],D&&(N.nodes[0].nodes=P.nodes.reduce(k(D),[])),N}function T(N){return N.nodes[0].nodes.reduce(function(O,P){return O.push(`${P.prop}:${P.value}${P.important?" !important":""}`),O},[]).join(";")}function k(N){return function(O,P){return St(N,P.prop)&&N[P.prop].some(function($){return $.test(P.value)})&&O.push(P),O}}function L(N,O,P){return O?(N=N.split(/\s+/),N.filter(function(D){return O.indexOf(D)!==-1||P.some(function($){return $.test(D)})}).join(" ")):N}}const W5={decodeEntities:!0};$n.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};$n.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let i;if(r)for(i in e)o[i]=e[i];else o=e;return{tagName:t,attribs:o}}};const vp=pi(U5),G5=[{command:"bold",icon:Pm,label:"Bold"},{command:"italic",icon:$m,label:"Italic"},{command:"underline",icon:Ym,label:"Underline"},{command:"strikeThrough",icon:Wm,label:"Strikethrough"},{command:"insertUnorderedList",icon:Fm,label:"Bullet List"},{command:"insertOrderedList",icon:Bm,label:"Numbered List"}],Y5={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$/]}}},X5=({label:t,value:e,onChange:r})=>{const n=w.useRef(null),[o,i]=w.useState(!1),[a,s]=w.useState(""),u=w.useRef(null);w.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=b=>{var y;document.execCommand(b,!1,null),(y=n.current)==null||y.focus(),c()},c=()=>{if(n.current){const b=n.current.innerHTML,y=vp(b,Y5);r(y)}},h=()=>{const b=window.getSelection();b&&b.rangeCount>0&&(u.current=b.getRangeAt(0))},f=()=>{if(u.current){const b=window.getSelection();b==null||b.removeAllRanges(),b==null||b.addRange(u.current)}},d=()=>{h(),i(!0)},m=()=>{var b;if(a){f();let y=a.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}i(!1),s(""),(b=n.current)==null||b.focus()},g=b=>{try{return document.queryCommandState(b)}catch{return!1}};return p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:p.jsxs(jn,{children:[G5.map(({command:b,icon:y,label:x})=>p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:S=>{S.preventDefault(),l(b)},className:`p-1.5 rounded hover:bg-background transition-colors ${g(b)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(y,{className:"h-3.5 w-3.5"})})}),p.jsx(sr,{side:"top",children:p.jsx("p",{children:x})})]},b)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:b=>{b.preventDefault(),d()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(Ps,{className:"h-3.5 w-3.5"})})}),p.jsx(sr,{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:a,onChange:b=>s(b.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:b=>{b.key==="Enter"&&(b.preventDefault(),m()),b.key==="Escape"&&(i(!1),s(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{i(!1),s("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),p.jsx("button",{onClick:m,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},K5={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$/]}}},Ru=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:o="inherit",lineHeight:i={desktop:150},letterSpacing:a={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=Ae(),m=Bn();let g,b,y;try{const{connectors:I,events:M}=se(B=>({events:B.events}));g=I.connect,b=I.drag,y=M.selected}catch{}const x=Ko(t,m),S=typeof ee(l,d)=="object"?`${ee(l,d).top}px ${ee(l,d).right}px ${ee(l,d).bottom}px ${ee(l,d).left}px`:`${ee(l,d)}px`,E=Tt(r,d,16),A=Tt(i,d,150)/100,R=Tt(a,d,0),_=/<[^>]+>/.test(x);return p.jsx("div",{ref:I=>I&&g&&b&&g(b(I)),className:`cursor-move ${y?"outline outline-blue-500":""}`,style:{fontSize:`${E}px`,fontWeight:n,fontFamily:o,lineHeight:A,letterSpacing:`${R}px`,textAlign:s,color:u,margin:S,textDecoration:c,textTransform:h,opacity:f/100},children:e||_?p.jsx("div",{dangerouslySetInnerHTML:{__html:vp(Ko(e||x,m),K5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):x})},J5=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Content",defaultOpen:!0,children:p.jsx(X5,{label:"Text",value:e.html??e.text,onChange:n=>t(o=>{o.html=null,o.text=n})})}),p.jsxs(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(te,{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(Yo,{label:"Size",values:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(te,{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(Xo,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(Yo,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(At,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Ns,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"right",label:p.jsx(As,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)}),p.jsx(te,{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(te,{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(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(o=>o.color=n)}),p.jsx(Xo,{label:"Opacity",values:e.opacity,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})}),p.jsx(G,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(s0,{})})]})};Ru.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{desktop:{top:0,right:0,bottom:0,left:0}},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:J5}};const xn={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}},Pu=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:o="700",fontFamily:i="inherit",fontSize:a="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 I,M,B;const f=Ae(),d=Bn();let m,g,b;try{const{connectors:C,events:T}=se(k=>({events:k.events}));m=C.connect,g=C.drag,b=T.selected}catch{}const y=Ko(t,d),x=`h${e}`;let S;a==="auto"?S=((I=xn[e])==null?void 0:I[f])||((M=xn[e])==null?void 0:M.desktop)||36:S=Tt(a,f,((B=xn[e])==null?void 0:B.desktop)||36);const E=Tt(s,f,120)/100,A=Tt(u,f,-.5),R=Tt(h,f,100),_=typeof ee(l,f)=="object"?`${ee(l,f).top}px ${ee(l,f).right}px ${ee(l,f).bottom}px ${ee(l,f).left}px`:`${ee(l,f)}px`;return p.jsx(x,{ref:C=>C&&m&&g&&m(g(C)),className:`cursor-move ${b?"outline outline-blue-500":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:i,fontSize:`${S}px`,lineHeight:E,letterSpacing:`${A}px`,margin:_,textTransform:c,opacity:R/100},children:y})},Z5=()=>{var i;const t=Ae(),{actions:{setProp:e},props:r}=se(a=>({props:a.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},o=()=>{var a;return r.fontSize==="auto"?((a=xn[r.level||2])==null?void 0:a[t])||36:Tt(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(G,{title:"Content",defaultOpen:!0,children:[p.jsx(Gt,{label:"Text",value:r.text,onChange:a=>e(s=>s.text=a)}),p.jsx(At,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:a=>e(s=>{s.level=a,s.fontSize})})]}),p.jsxs(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(te,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:a=>e(s=>s.fontFamily=a)}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),p.jsx("button",{onClick:()=>e(a=>a.fontSize=a.fontSize==="auto"?{desktop: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(Yo,{label:"Size",values:r.fontSize,onChange:a=>e(s=>s.fontSize=a),min:12,max:120,defaultValue:((i=xn[r.level||2])==null?void 0:i.desktop)||36})]}),p.jsx(te,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:a=>e(s=>s.fontWeight=a)}),p.jsx(Xo,{label:"Line Height",values:r.lineHeight,onChange:a=>e(s=>s.lineHeight=a),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(Yo,{label:"Letter Spacing",values:r.letterSpacing,onChange:a=>e(s=>s.letterSpacing=a),min:-5,max:20,defaultValue:-.5}),p.jsx(At,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx(Ns,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"right",label:p.jsx(As,{className:"h-3 w-3"})}],onChange:a=>e(s=>s.textAlign=a)}),p.jsx(te,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:a=>e(s=>s.textTransform=a)})]}),p.jsxs(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Text Color",value:r.color||"#000000",onChange:a=>e(s=>s.color=a)}),p.jsx(Xo,{label:"Opacity",values:r.opacity,onChange:a=>e(s=>s.opacity=a),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:n,onChange:a=>e(s=>s.margin={...s.margin,...a})})}),p.jsx(G,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(s0,{})})]})};Pu.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:Z5}};const _u=({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:i="cover",borderRadius:a=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ae();let h,f,d;try{const{connectors:g,events:b}=se(y=>({events:y.events}));h=g.connect,f=g.drag,d=b.selected}catch{}const m=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:g=>g&&h&&f&&h(f(g)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:i,borderRadius:`${a}px`,margin:m,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},Q5=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Source",defaultOpen:!0,children:[p.jsx(Gt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Gt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{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(ge,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(te,{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(ge,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(te,{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(G,{title:"Style",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(Pi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(te,{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(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};_u.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:Q5}};const ku=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:o={top:16,right:0,bottom:16,left:0},opacity:i=100})=>{const a=Ae();let s,u,l;try{const{connectors:h,events:f}=se(d=>({events:d.events}));s=h.connect,u=h.drag,l=f.selected}catch{}const c=typeof o[a]=="object"?`${o[a].top}px ${o[a].right}px ${o[a].bottom}px ${o[a].left}px`:`${o[a]}px`;return p.jsx("hr",{ref:h=>h&&s&&u&&(s==null?void 0:s(u==null?void 0:u(h))),className:`cursor-move border-0 ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:c,opacity:i/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},e8=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Style",defaultOpen:!0,children:[p.jsx(te,{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(ut,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(o=>o.color=n)}),p.jsx(ge,{unit:"px",label:"Thickness",value:e.height||1,onChange:n=>t(o=>o.height=n),min:1,max:20}),p.jsx(te,{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(ge,{label:"Width %",value:e.width,onChange:n=>t(o=>o.width=n),min:10,max:100,unit:"%"})]}),p.jsx(G,{title:"Spacing",defaultOpen:!0,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};ku.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:e8}};const Iu=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{let n,o,i;try{const{connectors:a,events:s}=se(u=>({events:u.events}));n=a.connect,o=a.drag,i=s.selected}catch{}return p.jsxs("div",{ref:a=>a&&n&&o&&n(o(a)),className:`cursor-move w-full relative group ${i?"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"})]})},t8=()=>{const{actions:{setProp:t},props:e}=se(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{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(ge,{unit:"px",label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Iu.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:t8}};const r8=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function n8(){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 o8(t,e={}){const r=await fetch(`${r8}${t}`,{...e,headers:{...n8(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function i8(t,e){return(await o8(`/videos/${t}/${e||""}`)).data}function a8(t){const e=v.useRef({value:t,previous:t});return v.useMemo(()=>(e.current.value!==t&&(e.current.previous=e.current.value,e.current.value=t),e.current.previous),[t])}var Hi="Checkbox",[s8]=pr(Hi),[u8,Du]=s8(Hi);function l8(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:o,disabled:i,form:a,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:h}=t,[f,d]=Qr({prop:r,defaultProp:o??!1,onChange:u,caller:Hi}),[m,g]=v.useState(null),[b,y]=v.useState(null),x=v.useRef(!1),S=m?!!a||!!m.closest("form"):!0,E={checked:f,disabled:i,setChecked:d,control:m,setControl:g,name:s,form:a,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Ht(o)?!1:o,isFormControl:S,bubbleInput:b,setBubbleInput:y};return p.jsx(u8,{scope:e,...E,children:c8(h)?h(E):n})}var xp="CheckboxTrigger",wp=v.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},o)=>{const{control:i,value:a,disabled:s,checked:u,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:d,bubbleInput:m}=Du(xp,t),g=Te(o,c),b=v.useRef(u);return v.useEffect(()=>{const y=i==null?void 0:i.form;if(y){const x=()=>h(b.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[i,h]),p.jsx(ve.button,{type:"button",role:"checkbox","aria-checked":Ht(u)?"mixed":u,"aria-required":l,"data-state":Np(u),"data-disabled":s?"":void 0,disabled:s,value:a,...n,ref:g,onKeyDown:fe(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:fe(r,y=>{h(x=>Ht(x)?!0:!x),m&&d&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});wp.displayName=xp;var Lu=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:i,required:a,disabled:s,value:u,onCheckedChange:l,form:c,...h}=t;return p.jsx(l8,{__scopeCheckbox:r,checked:o,defaultChecked:i,disabled:s,required:a,onCheckedChange:l,name:n,form:c,value:u,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(wp,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(Tp,{__scopeCheckbox:r})]})})});Lu.displayName=Hi;var Sp="CheckboxIndicator",Ep=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,i=Du(Sp,r);return p.jsx(hr,{present:n||Ht(i.checked)||i.checked===!0,children:p.jsx(ve.span,{"data-state":Np(i.checked),"data-disabled":i.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});Ep.displayName=Sp;var Cp="CheckboxBubbleInput",Tp=v.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:i,defaultChecked:a,required:s,disabled:u,name:l,value:c,form:h,bubbleInput:f,setBubbleInput:d}=Du(Cp,t),m=Te(r,d),g=a8(i),b=Hf(n);v.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,A=Object.getOwnPropertyDescriptor(S,"checked").set,R=!o.current;if(g!==i&&A){const _=new Event("click",{bubbles:R});x.indeterminate=Ht(i),A.call(x,Ht(i)?!1:i),x.dispatchEvent(_)}},[f,g,i,o]);const y=v.useRef(Ht(i)?!1:i);return p.jsx(ve.input,{type:"checkbox","aria-hidden":!0,defaultChecked:a??y.current,required:s,disabled:u,name:l,value:c,form:h,...e,tabIndex:-1,ref:m,style:{...e.style,...b,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});Tp.displayName=Cp;function c8(t){return typeof t=="function"}function Ht(t){return t==="indeterminate"}function Np(t){return Ht(t)?"indeterminate":t?"checked":"unchecked"}const d8=v.forwardRef(({className:t,...e},r)=>p.jsx(Lu,{ref:r,className:Ne("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(Ep,{className:Ne("flex items-center justify-center text-current"),children:p.jsx(Os,{className:"h-4 w-4"})})}));d8.displayName=Lu.displayName;const f8=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,i]=w.useState(!1),[a,s]=w.useState(!1);w.useEffect(()=>{try{s(window.self!==window.top)}catch{s(!0)}},[]);const u=()=>{r&&t&&!o&&(t(),i(!0),a&&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(ot,{disabled:!r||o||e,onClick:u,className:"w-full",children:o?p.jsxs(p.Fragment,{children:[p.jsx(Os,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(Dm,{className:"h-4 w-4 mr-2"}),"Download"]})})}),p.jsxs("label",{className:"flex items-center justify-center space-x-2 cursor-pointer mt-3",children:[p.jsx("input",{className:"",type:"checkbox",checked:r,onChange:l=>n(l.target.checked),disabled:o||e}),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"}),"."]})]})]})};function Ap(t,e){return function(){return t.apply(e,arguments)}}const{toString:p8}=Object.prototype,{getPrototypeOf:Mu}=Object,{iterator:qi,toStringTag:Op}=Symbol,zi=(t=>e=>{const r=p8.call(e);return t[r]||(t[r]=r.slice(8,-1).toLowerCase())})(Object.create(null)),et=t=>(t=t.toLowerCase(),e=>zi(e)===t),Ui=t=>e=>typeof e===t,{isArray:tn}=Array,Hr=Ui("undefined");function Yn(t){return t!==null&&!Hr(t)&&t.constructor!==null&&!Hr(t.constructor)&&Ie(t.constructor.isBuffer)&&t.constructor.isBuffer(t)}const jp=et("ArrayBuffer");function h8(t){let e;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?e=ArrayBuffer.isView(t):e=t&&t.buffer&&jp(t.buffer),e}const m8=Ui("string"),Ie=Ui("function"),Rp=Ui("number"),Xn=t=>t!==null&&typeof t=="object",b8=t=>t===!0||t===!1,Oo=t=>{if(zi(t)!=="object")return!1;const e=Mu(t);return(e===null||e===Object.prototype||Object.getPrototypeOf(e)===null)&&!(Op in t)&&!(qi in t)},g8=t=>{if(!Xn(t)||Yn(t))return!1;try{return Object.keys(t).length===0&&Object.getPrototypeOf(t)===Object.prototype}catch{return!1}},y8=et("Date"),v8=et("File"),x8=t=>!!(t&&typeof t.uri<"u"),w8=t=>t&&typeof t.getParts<"u",S8=et("Blob"),E8=et("FileList"),C8=t=>Xn(t)&&Ie(t.pipe);function T8(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const Xc=T8(),Kc=typeof Xc.FormData<"u"?Xc.FormData:void 0,N8=t=>{let e;return t&&(Kc&&t instanceof Kc||Ie(t.append)&&((e=zi(t))==="formdata"||e==="object"&&Ie(t.toString)&&t.toString()==="[object FormData]"))},A8=et("URLSearchParams"),[O8,j8,R8,P8]=["ReadableStream","Request","Response","Headers"].map(et),_8=t=>t.trim?t.trim():t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function Kn(t,e,{allOwnKeys:r=!1}={}){if(t===null||typeof t>"u")return;let n,o;if(typeof t!="object"&&(t=[t]),tn(t))for(n=0,o=t.length;n<o;n++)e.call(null,t[n],n,t);else{if(Yn(t))return;const i=r?Object.getOwnPropertyNames(t):Object.keys(t),a=i.length;let s;for(n=0;n<a;n++)s=i[n],e.call(null,t[s],s,t)}}function Pp(t,e){if(Yn(t))return null;e=e.toLowerCase();const r=Object.keys(t);let n=r.length,o;for(;n-- >0;)if(o=r[n],e===o.toLowerCase())return o;return null}const rr=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,_p=t=>!Hr(t)&&t!==rr;function bs(){const{caseless:t,skipUndefined:e}=_p(this)&&this||{},r={},n=(o,i)=>{if(i==="__proto__"||i==="constructor"||i==="prototype")return;const a=t&&Pp(r,i)||i;Oo(r[a])&&Oo(o)?r[a]=bs(r[a],o):Oo(o)?r[a]=bs({},o):tn(o)?r[a]=o.slice():(!e||!Hr(o))&&(r[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&Kn(arguments[o],n);return r}const k8=(t,e,r,{allOwnKeys:n}={})=>(Kn(e,(o,i)=>{r&&Ie(o)?Object.defineProperty(t,i,{value:Ap(o,r),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:n}),t),I8=t=>(t.charCodeAt(0)===65279&&(t=t.slice(1)),t),D8=(t,e,r,n)=>{t.prototype=Object.create(e.prototype,n),Object.defineProperty(t.prototype,"constructor",{value:t,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(t,"super",{value:e.prototype}),r&&Object.assign(t.prototype,r)},L8=(t,e,r,n)=>{let o,i,a;const s={};if(e=e||{},t==null)return e;do{for(o=Object.getOwnPropertyNames(t),i=o.length;i-- >0;)a=o[i],(!n||n(a,t,e))&&!s[a]&&(e[a]=t[a],s[a]=!0);t=r!==!1&&Mu(t)}while(t&&(!r||r(t,e))&&t!==Object.prototype);return e},M8=(t,e,r)=>{t=String(t),(r===void 0||r>t.length)&&(r=t.length),r-=e.length;const n=t.indexOf(e,r);return n!==-1&&n===r},$8=t=>{if(!t)return null;if(tn(t))return t;let e=t.length;if(!Rp(e))return null;const r=new Array(e);for(;e-- >0;)r[e]=t[e];return r},B8=(t=>e=>t&&e instanceof t)(typeof Uint8Array<"u"&&Mu(Uint8Array)),F8=(t,e)=>{const n=(t&&t[qi]).call(t);let o;for(;(o=n.next())&&!o.done;){const i=o.value;e.call(t,i[0],i[1])}},H8=(t,e)=>{let r;const n=[];for(;(r=t.exec(e))!==null;)n.push(r);return n},q8=et("HTMLFormElement"),z8=t=>t.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,n,o){return n.toUpperCase()+o}),Jc=(({hasOwnProperty:t})=>(e,r)=>t.call(e,r))(Object.prototype),U8=et("RegExp"),kp=(t,e)=>{const r=Object.getOwnPropertyDescriptors(t),n={};Kn(r,(o,i)=>{let a;(a=e(o,i,t))!==!1&&(n[i]=a||o)}),Object.defineProperties(t,n)},V8=t=>{kp(t,(e,r)=>{if(Ie(t)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;const n=t[r];if(Ie(n)){if(e.enumerable=!1,"writable"in e){e.writable=!1;return}e.set||(e.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},W8=(t,e)=>{const r={},n=o=>{o.forEach(i=>{r[i]=!0})};return tn(t)?n(t):n(String(t).split(e)),r},G8=()=>{},Y8=(t,e)=>t!=null&&Number.isFinite(t=+t)?t:e;function X8(t){return!!(t&&Ie(t.append)&&t[Op]==="FormData"&&t[qi])}const K8=t=>{const e=new Array(10),r=(n,o)=>{if(Xn(n)){if(e.indexOf(n)>=0)return;if(Yn(n))return n;if(!("toJSON"in n)){e[o]=n;const i=tn(n)?[]:{};return Kn(n,(a,s)=>{const u=r(a,o+1);!Hr(u)&&(i[s]=u)}),e[o]=void 0,i}}return n};return r(t,0)},J8=et("AsyncFunction"),Z8=t=>t&&(Xn(t)||Ie(t))&&Ie(t.then)&&Ie(t.catch),Ip=((t,e)=>t?setImmediate:e?((r,n)=>(rr.addEventListener("message",({source:o,data:i})=>{o===rr&&i===r&&n.length&&n.shift()()},!1),o=>{n.push(o),rr.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",Ie(rr.postMessage)),Q8=typeof queueMicrotask<"u"?queueMicrotask.bind(rr):typeof process<"u"&&process.nextTick||Ip,eC=t=>t!=null&&Ie(t[qi]),j={isArray:tn,isArrayBuffer:jp,isBuffer:Yn,isFormData:N8,isArrayBufferView:h8,isString:m8,isNumber:Rp,isBoolean:b8,isObject:Xn,isPlainObject:Oo,isEmptyObject:g8,isReadableStream:O8,isRequest:j8,isResponse:R8,isHeaders:P8,isUndefined:Hr,isDate:y8,isFile:v8,isReactNativeBlob:x8,isReactNative:w8,isBlob:S8,isRegExp:U8,isFunction:Ie,isStream:C8,isURLSearchParams:A8,isTypedArray:B8,isFileList:E8,forEach:Kn,merge:bs,extend:k8,trim:_8,stripBOM:I8,inherits:D8,toFlatObject:L8,kindOf:zi,kindOfTest:et,endsWith:M8,toArray:$8,forEachEntry:F8,matchAll:H8,isHTMLForm:q8,hasOwnProperty:Jc,hasOwnProp:Jc,reduceDescriptors:kp,freezeMethods:V8,toObjectSet:W8,toCamelCase:z8,noop:G8,toFiniteNumber:Y8,findKey:Pp,global:rr,isContextDefined:_p,isSpecCompliantForm:X8,toJSONObject:K8,isAsyncFn:J8,isThenable:Z8,setImmediate:Ip,asap:Q8,isIterable:eC};let V=class Dp extends Error{static from(e,r,n,o,i,a){const s=new Dp(e.message,r||e.code,n,o,i);return s.cause=e,s.name=e.name,e.status!=null&&s.status==null&&(s.status=e.status),a&&Object.assign(s,a),s}constructor(e,r,n,o,i){super(e),Object.defineProperty(this,"message",{value:e,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,r&&(this.code=r),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i,this.status=i.status)}toJSON(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:j.toJSONObject(this.config),code:this.code,status:this.status}}};V.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";V.ERR_BAD_OPTION="ERR_BAD_OPTION";V.ECONNABORTED="ECONNABORTED";V.ETIMEDOUT="ETIMEDOUT";V.ERR_NETWORK="ERR_NETWORK";V.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";V.ERR_DEPRECATED="ERR_DEPRECATED";V.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";V.ERR_BAD_REQUEST="ERR_BAD_REQUEST";V.ERR_CANCELED="ERR_CANCELED";V.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";V.ERR_INVALID_URL="ERR_INVALID_URL";const tC=null;function gs(t){return j.isPlainObject(t)||j.isArray(t)}function Lp(t){return j.endsWith(t,"[]")?t.slice(0,-2):t}function ga(t,e,r){return t?t.concat(e).map(function(o,i){return o=Lp(o),!r&&i?"["+o+"]":o}).join(r?".":""):e}function rC(t){return j.isArray(t)&&!t.some(gs)}const nC=j.toFlatObject(j,{},null,function(e){return/^is[A-Z]/.test(e)});function Vi(t,e,r){if(!j.isObject(t))throw new TypeError("target must be an object");e=e||new FormData,r=j.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(g,b){return!j.isUndefined(b[g])});const n=r.metaTokens,o=r.visitor||c,i=r.dots,a=r.indexes,u=(r.Blob||typeof Blob<"u"&&Blob)&&j.isSpecCompliantForm(e);if(!j.isFunction(o))throw new TypeError("visitor must be a function");function l(m){if(m===null)return"";if(j.isDate(m))return m.toISOString();if(j.isBoolean(m))return m.toString();if(!u&&j.isBlob(m))throw new V("Blob is not supported. Use a Buffer instead.");return j.isArrayBuffer(m)||j.isTypedArray(m)?u&&typeof Blob=="function"?new Blob([m]):Buffer.from(m):m}function c(m,g,b){let y=m;if(j.isReactNative(e)&&j.isReactNativeBlob(m))return e.append(ga(b,g,i),l(m)),!1;if(m&&!b&&typeof m=="object"){if(j.endsWith(g,"{}"))g=n?g:g.slice(0,-2),m=JSON.stringify(m);else if(j.isArray(m)&&rC(m)||(j.isFileList(m)||j.endsWith(g,"[]"))&&(y=j.toArray(m)))return g=Lp(g),y.forEach(function(S,E){!(j.isUndefined(S)||S===null)&&e.append(a===!0?ga([g],E,i):a===null?g:g+"[]",l(S))}),!1}return gs(m)?!0:(e.append(ga(b,g,i),l(m)),!1)}const h=[],f=Object.assign(nC,{defaultVisitor:c,convertValue:l,isVisitable:gs});function d(m,g){if(!j.isUndefined(m)){if(h.indexOf(m)!==-1)throw Error("Circular reference detected in "+g.join("."));h.push(m),j.forEach(m,function(y,x){(!(j.isUndefined(y)||y===null)&&o.call(e,y,j.isString(x)?x.trim():x,g,f))===!0&&d(y,g?g.concat(x):[x])}),h.pop()}}if(!j.isObject(t))throw new TypeError("data must be an object");return d(t),e}function Zc(t){const e={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(t).replace(/[!'()~]|%20|%00/g,function(n){return e[n]})}function $u(t,e){this._pairs=[],t&&Vi(t,this,e)}const Mp=$u.prototype;Mp.append=function(e,r){this._pairs.push([e,r])};Mp.toString=function(e){const r=e?function(n){return e.call(this,n,Zc)}:Zc;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function oC(t){return encodeURIComponent(t).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $p(t,e,r){if(!e)return t;const n=r&&r.encode||oC,o=j.isFunction(r)?{serialize:r}:r,i=o&&o.serialize;let a;if(i?a=i(e,o):a=j.isURLSearchParams(e)?e.toString():new $u(e,o).toString(n),a){const s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+a}return t}class Qc{constructor(){this.handlers=[]}use(e,r,n){return this.handlers.push({fulfilled:e,rejected:r,synchronous:n?n.synchronous:!1,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){j.forEach(this.handlers,function(n){n!==null&&e(n)})}}const Bu={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0},iC=typeof URLSearchParams<"u"?URLSearchParams:$u,aC=typeof FormData<"u"?FormData:null,sC=typeof Blob<"u"?Blob:null,uC={isBrowser:!0,classes:{URLSearchParams:iC,FormData:aC,Blob:sC},protocols:["http","https","file","blob","url","data"]},Fu=typeof window<"u"&&typeof document<"u",ys=typeof navigator=="object"&&navigator||void 0,lC=Fu&&(!ys||["ReactNative","NativeScript","NS"].indexOf(ys.product)<0),cC=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",dC=Fu&&window.location.href||"http://localhost",fC=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Fu,hasStandardBrowserEnv:lC,hasStandardBrowserWebWorkerEnv:cC,navigator:ys,origin:dC},Symbol.toStringTag,{value:"Module"})),Oe={...fC,...uC};function pC(t,e){return Vi(t,new Oe.classes.URLSearchParams,{visitor:function(r,n,o,i){return Oe.isNode&&j.isBuffer(r)?(this.append(n,r.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...e})}function hC(t){return j.matchAll(/\w+|\[(\w*)]/g,t).map(e=>e[0]==="[]"?"":e[1]||e[0])}function mC(t){const e={},r=Object.keys(t);let n;const o=r.length;let i;for(n=0;n<o;n++)i=r[n],e[i]=t[i];return e}function Bp(t){function e(r,n,o,i){let a=r[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),u=i>=r.length;return a=!a&&j.isArray(o)?o.length:a,u?(j.hasOwnProp(o,a)?o[a]=[o[a],n]:o[a]=n,!s):((!o[a]||!j.isObject(o[a]))&&(o[a]=[]),e(r,n,o[a],i)&&j.isArray(o[a])&&(o[a]=mC(o[a])),!s)}if(j.isFormData(t)&&j.isFunction(t.entries)){const r={};return j.forEachEntry(t,(n,o)=>{e(hC(n),o,r,0)}),r}return null}function bC(t,e,r){if(j.isString(t))try{return(e||JSON.parse)(t),j.trim(t)}catch(n){if(n.name!=="SyntaxError")throw n}return(r||JSON.stringify)(t)}const Jn={transitional:Bu,adapter:["xhr","http","fetch"],transformRequest:[function(e,r){const n=r.getContentType()||"",o=n.indexOf("application/json")>-1,i=j.isObject(e);if(i&&j.isHTMLForm(e)&&(e=new FormData(e)),j.isFormData(e))return o?JSON.stringify(Bp(e)):e;if(j.isArrayBuffer(e)||j.isBuffer(e)||j.isStream(e)||j.isFile(e)||j.isBlob(e)||j.isReadableStream(e))return e;if(j.isArrayBufferView(e))return e.buffer;if(j.isURLSearchParams(e))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let s;if(i){if(n.indexOf("application/x-www-form-urlencoded")>-1)return pC(e,this.formSerializer).toString();if((s=j.isFileList(e))||n.indexOf("multipart/form-data")>-1){const u=this.env&&this.env.FormData;return Vi(s?{"files[]":e}:e,u&&new u,this.formSerializer)}}return i||o?(r.setContentType("application/json",!1),bC(e)):e}],transformResponse:[function(e){const r=this.transitional||Jn.transitional,n=r&&r.forcedJSONParsing,o=this.responseType==="json";if(j.isResponse(e)||j.isReadableStream(e))return e;if(e&&j.isString(e)&&(n&&!this.responseType||o)){const a=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(e,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?V.from(s,V.ERR_BAD_RESPONSE,this,null,this.response):s}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Oe.classes.FormData,Blob:Oe.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};j.forEach(["delete","get","head","post","put","patch"],t=>{Jn.headers[t]={}});const gC=j.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),yC=t=>{const e={};let r,n,o;return t&&t.split(`
280
+ `).forEach(function(a){o=a.indexOf(":"),r=a.substring(0,o).trim().toLowerCase(),n=a.substring(o+1).trim(),!(!r||e[r]&&gC[r])&&(r==="set-cookie"?e[r]?e[r].push(n):e[r]=[n]:e[r]=e[r]?e[r]+", "+n:n)}),e},ed=Symbol("internals");function fn(t){return t&&String(t).trim().toLowerCase()}function jo(t){return t===!1||t==null?t:j.isArray(t)?t.map(jo):String(t)}function vC(t){const e=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let n;for(;n=r.exec(t);)e[n[1]]=n[2];return e}const xC=t=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(t.trim());function ya(t,e,r,n,o){if(j.isFunction(n))return n.call(this,e,r);if(o&&(e=r),!!j.isString(e)){if(j.isString(n))return e.indexOf(n)!==-1;if(j.isRegExp(n))return n.test(e)}}function wC(t){return t.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,r,n)=>r.toUpperCase()+n)}function SC(t,e){const r=j.toCamelCase(" "+e);["get","set","has"].forEach(n=>{Object.defineProperty(t,n+r,{value:function(o,i,a){return this[n].call(this,e,o,i,a)},configurable:!0})})}let De=class{constructor(e){e&&this.set(e)}set(e,r,n){const o=this;function i(s,u,l){const c=fn(u);if(!c)throw new Error("header name must be a non-empty string");const h=j.findKey(o,c);(!h||o[h]===void 0||l===!0||l===void 0&&o[h]!==!1)&&(o[h||u]=jo(s))}const a=(s,u)=>j.forEach(s,(l,c)=>i(l,c,u));if(j.isPlainObject(e)||e instanceof this.constructor)a(e,r);else if(j.isString(e)&&(e=e.trim())&&!xC(e))a(yC(e),r);else if(j.isObject(e)&&j.isIterable(e)){let s={},u,l;for(const c of e){if(!j.isArray(c))throw TypeError("Object iterator must return a key-value pair");s[l=c[0]]=(u=s[l])?j.isArray(u)?[...u,c[1]]:[u,c[1]]:c[1]}a(s,r)}else e!=null&&i(r,e,n);return this}get(e,r){if(e=fn(e),e){const n=j.findKey(this,e);if(n){const o=this[n];if(!r)return o;if(r===!0)return vC(o);if(j.isFunction(r))return r.call(this,o,n);if(j.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,r){if(e=fn(e),e){const n=j.findKey(this,e);return!!(n&&this[n]!==void 0&&(!r||ya(this,this[n],n,r)))}return!1}delete(e,r){const n=this;let o=!1;function i(a){if(a=fn(a),a){const s=j.findKey(n,a);s&&(!r||ya(n,n[s],s,r))&&(delete n[s],o=!0)}}return j.isArray(e)?e.forEach(i):i(e),o}clear(e){const r=Object.keys(this);let n=r.length,o=!1;for(;n--;){const i=r[n];(!e||ya(this,this[i],i,e,!0))&&(delete this[i],o=!0)}return o}normalize(e){const r=this,n={};return j.forEach(this,(o,i)=>{const a=j.findKey(n,i);if(a){r[a]=jo(o),delete r[i];return}const s=e?wC(i):String(i).trim();s!==i&&delete r[i],r[s]=jo(o),n[s]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const r=Object.create(null);return j.forEach(this,(n,o)=>{n!=null&&n!==!1&&(r[o]=e&&j.isArray(n)?n.join(", "):n)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,r])=>e+": "+r).join(`
281
+ `)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...r){const n=new this(e);return r.forEach(o=>n.set(o)),n}static accessor(e){const n=(this[ed]=this[ed]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=fn(a);n[s]||(SC(o,a),n[s]=!0)}return j.isArray(e)?e.forEach(i):i(e),this}};De.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);j.reduceDescriptors(De.prototype,({value:t},e)=>{let r=e[0].toUpperCase()+e.slice(1);return{get:()=>t,set(n){this[r]=n}}});j.freezeMethods(De);function va(t,e){const r=this||Jn,n=e||r,o=De.from(n.headers);let i=n.data;return j.forEach(t,function(s){i=s.call(r,i,o.normalize(),e?e.status:void 0)}),o.normalize(),i}function Fp(t){return!!(t&&t.__CANCEL__)}let Zn=class extends V{constructor(e,r,n){super(e??"canceled",V.ERR_CANCELED,r,n),this.name="CanceledError",this.__CANCEL__=!0}};function Hp(t,e,r){const n=r.config.validateStatus;!r.status||!n||n(r.status)?t(r):e(new V("Request failed with status code "+r.status,[V.ERR_BAD_REQUEST,V.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function EC(t){const e=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return e&&e[1]||""}function CC(t,e){t=t||10;const r=new Array(t),n=new Array(t);let o=0,i=0,a;return e=e!==void 0?e:1e3,function(u){const l=Date.now(),c=n[i];a||(a=l),r[o]=u,n[o]=l;let h=i,f=0;for(;h!==o;)f+=r[h++],h=h%t;if(o=(o+1)%t,o===i&&(i=(i+1)%t),l-a<e)return;const d=c&&l-c;return d?Math.round(f*1e3/d):void 0}}function TC(t,e){let r=0,n=1e3/e,o,i;const a=(l,c=Date.now())=>{r=c,o=null,i&&(clearTimeout(i),i=null),t(...l)};return[(...l)=>{const c=Date.now(),h=c-r;h>=n?a(l,c):(o=l,i||(i=setTimeout(()=>{i=null,a(o)},n-h)))},()=>o&&a(o)]}const ii=(t,e,r=3)=>{let n=0;const o=CC(50,250);return TC(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,u=a-n,l=o(u),c=a<=s;n=a;const h={loaded:a,total:s,progress:s?a/s:void 0,bytes:u,rate:l||void 0,estimated:l&&s&&c?(s-a)/l:void 0,event:i,lengthComputable:s!=null,[e?"download":"upload"]:!0};t(h)},r)},td=(t,e)=>{const r=t!=null;return[n=>e[0]({lengthComputable:r,total:t,loaded:n}),e[1]]},rd=t=>(...e)=>j.asap(()=>t(...e)),NC=Oe.hasStandardBrowserEnv?((t,e)=>r=>(r=new URL(r,Oe.origin),t.protocol===r.protocol&&t.host===r.host&&(e||t.port===r.port)))(new URL(Oe.origin),Oe.navigator&&/(msie|trident)/i.test(Oe.navigator.userAgent)):()=>!0,AC=Oe.hasStandardBrowserEnv?{write(t,e,r,n,o,i,a){if(typeof document>"u")return;const s=[`${t}=${encodeURIComponent(e)}`];j.isNumber(r)&&s.push(`expires=${new Date(r).toUTCString()}`),j.isString(n)&&s.push(`path=${n}`),j.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),j.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(t){if(typeof document>"u")return null;const e=document.cookie.match(new RegExp("(?:^|; )"+t+"=([^;]*)"));return e?decodeURIComponent(e[1]):null},remove(t){this.write(t,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function OC(t){return typeof t!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)}function jC(t,e){return e?t.replace(/\/?\/$/,"")+"/"+e.replace(/^\/+/,""):t}function qp(t,e,r){let n=!OC(e);return t&&(n||r==!1)?jC(t,e):e}const nd=t=>t instanceof De?{...t}:t;function cr(t,e){e=e||{};const r={};function n(l,c,h,f){return j.isPlainObject(l)&&j.isPlainObject(c)?j.merge.call({caseless:f},l,c):j.isPlainObject(c)?j.merge({},c):j.isArray(c)?c.slice():c}function o(l,c,h,f){if(j.isUndefined(c)){if(!j.isUndefined(l))return n(void 0,l,h,f)}else return n(l,c,h,f)}function i(l,c){if(!j.isUndefined(c))return n(void 0,c)}function a(l,c){if(j.isUndefined(c)){if(!j.isUndefined(l))return n(void 0,l)}else return n(void 0,c)}function s(l,c,h){if(h in e)return n(l,c);if(h in t)return n(void 0,l)}const u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(l,c,h)=>o(nd(l),nd(c),h,!0)};return j.forEach(Object.keys({...t,...e}),function(c){if(c==="__proto__"||c==="constructor"||c==="prototype")return;const h=j.hasOwnProp(u,c)?u[c]:o,f=h(t[c],e[c],c);j.isUndefined(f)&&h!==s||(r[c]=f)}),r}const zp=t=>{const e=cr({},t);let{data:r,withXSRFToken:n,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=e;if(e.headers=a=De.from(a),e.url=$p(qp(e.baseURL,e.url,e.allowAbsoluteUrls),t.params,t.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),j.isFormData(r)){if(Oe.hasStandardBrowserEnv||Oe.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(j.isFunction(r.getHeaders)){const u=r.getHeaders(),l=["content-type","content-length"];Object.entries(u).forEach(([c,h])=>{l.includes(c.toLowerCase())&&a.set(c,h)})}}if(Oe.hasStandardBrowserEnv&&(n&&j.isFunction(n)&&(n=n(e)),n||n!==!1&&NC(e.url))){const u=o&&i&&AC.read(i);u&&a.set(o,u)}return e},RC=typeof XMLHttpRequest<"u",PC=RC&&function(t){return new Promise(function(r,n){const o=zp(t);let i=o.data;const a=De.from(o.headers).normalize();let{responseType:s,onUploadProgress:u,onDownloadProgress:l}=o,c,h,f,d,m;function g(){d&&d(),m&&m(),o.cancelToken&&o.cancelToken.unsubscribe(c),o.signal&&o.signal.removeEventListener("abort",c)}let b=new XMLHttpRequest;b.open(o.method.toUpperCase(),o.url,!0),b.timeout=o.timeout;function y(){if(!b)return;const S=De.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),A={data:!s||s==="text"||s==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:S,config:t,request:b};Hp(function(_){r(_),g()},function(_){n(_),g()},A),b=null}"onloadend"in b?b.onloadend=y:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.indexOf("file:")===0)||setTimeout(y)},b.onabort=function(){b&&(n(new V("Request aborted",V.ECONNABORTED,t,b)),b=null)},b.onerror=function(E){const A=E&&E.message?E.message:"Network Error",R=new V(A,V.ERR_NETWORK,t,b);R.event=E||null,n(R),b=null},b.ontimeout=function(){let E=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const A=o.transitional||Bu;o.timeoutErrorMessage&&(E=o.timeoutErrorMessage),n(new V(E,A.clarifyTimeoutError?V.ETIMEDOUT:V.ECONNABORTED,t,b)),b=null},i===void 0&&a.setContentType(null),"setRequestHeader"in b&&j.forEach(a.toJSON(),function(E,A){b.setRequestHeader(A,E)}),j.isUndefined(o.withCredentials)||(b.withCredentials=!!o.withCredentials),s&&s!=="json"&&(b.responseType=o.responseType),l&&([f,m]=ii(l,!0),b.addEventListener("progress",f)),u&&b.upload&&([h,d]=ii(u),b.upload.addEventListener("progress",h),b.upload.addEventListener("loadend",d)),(o.cancelToken||o.signal)&&(c=S=>{b&&(n(!S||S.type?new Zn(null,t,b):S),b.abort(),b=null)},o.cancelToken&&o.cancelToken.subscribe(c),o.signal&&(o.signal.aborted?c():o.signal.addEventListener("abort",c)));const x=EC(o.url);if(x&&Oe.protocols.indexOf(x)===-1){n(new V("Unsupported protocol "+x+":",V.ERR_BAD_REQUEST,t));return}b.send(i||null)})},_C=(t,e)=>{const{length:r}=t=t?t.filter(Boolean):[];if(e||r){let n=new AbortController,o;const i=function(l){if(!o){o=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof V?c:new Zn(c instanceof Error?c.message:c))}};let a=e&&setTimeout(()=>{a=null,i(new V(`timeout of ${e}ms exceeded`,V.ETIMEDOUT))},e);const s=()=>{t&&(a&&clearTimeout(a),a=null,t.forEach(l=>{l.unsubscribe?l.unsubscribe(i):l.removeEventListener("abort",i)}),t=null)};t.forEach(l=>l.addEventListener("abort",i));const{signal:u}=n;return u.unsubscribe=()=>j.asap(s),u}},kC=function*(t,e){let r=t.byteLength;if(r<e){yield t;return}let n=0,o;for(;n<r;)o=n+e,yield t.slice(n,o),n=o},IC=async function*(t,e){for await(const r of DC(t))yield*kC(r,e)},DC=async function*(t){if(t[Symbol.asyncIterator]){yield*t;return}const e=t.getReader();try{for(;;){const{done:r,value:n}=await e.read();if(r)break;yield n}}finally{await e.cancel()}},od=(t,e,r,n)=>{const o=IC(t,e);let i=0,a,s=u=>{a||(a=!0,n&&n(u))};return new ReadableStream({async pull(u){try{const{done:l,value:c}=await o.next();if(l){s(),u.close();return}let h=c.byteLength;if(r){let f=i+=h;r(f)}u.enqueue(new Uint8Array(c))}catch(l){throw s(l),l}},cancel(u){return s(u),o.return()}},{highWaterMark:2})},id=64*1024,{isFunction:xo}=j,LC=(({Request:t,Response:e})=>({Request:t,Response:e}))(j.global),{ReadableStream:ad,TextEncoder:sd}=j.global,ud=(t,...e)=>{try{return!!t(...e)}catch{return!1}},MC=t=>{t=j.merge.call({skipUndefined:!0},LC,t);const{fetch:e,Request:r,Response:n}=t,o=e?xo(e):typeof fetch=="function",i=xo(r),a=xo(n);if(!o)return!1;const s=o&&xo(ad),u=o&&(typeof sd=="function"?(m=>g=>m.encode(g))(new sd):async m=>new Uint8Array(await new r(m).arrayBuffer())),l=i&&s&&ud(()=>{let m=!1;const g=new r(Oe.origin,{body:new ad,method:"POST",get duplex(){return m=!0,"half"}}).headers.has("Content-Type");return m&&!g}),c=a&&s&&ud(()=>j.isReadableStream(new n("").body)),h={stream:c&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!h[m]&&(h[m]=(g,b)=>{let y=g&&g[m];if(y)return y.call(g);throw new V(`Response type '${m}' is not supported`,V.ERR_NOT_SUPPORT,b)})});const f=async m=>{if(m==null)return 0;if(j.isBlob(m))return m.size;if(j.isSpecCompliantForm(m))return(await new r(Oe.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(j.isArrayBufferView(m)||j.isArrayBuffer(m))return m.byteLength;if(j.isURLSearchParams(m)&&(m=m+""),j.isString(m))return(await u(m)).byteLength},d=async(m,g)=>{const b=j.toFiniteNumber(m.getContentLength());return b??f(g)};return async m=>{let{url:g,method:b,data:y,signal:x,cancelToken:S,timeout:E,onDownloadProgress:A,onUploadProgress:R,responseType:_,headers:I,withCredentials:M="same-origin",fetchOptions:B}=zp(m),C=e||fetch;_=_?(_+"").toLowerCase():"text";let T=_C([x,S&&S.toAbortSignal()],E),k=null;const L=T&&T.unsubscribe&&(()=>{T.unsubscribe()});let N;try{if(R&&l&&b!=="get"&&b!=="head"&&(N=await d(I,y))!==0){let re=new r(g,{method:"POST",body:y,duplex:"half"}),Z;if(j.isFormData(y)&&(Z=re.headers.get("content-type"))&&I.setContentType(Z),re.body){const[H,F]=td(N,ii(rd(R)));y=od(re.body,id,H,F)}}j.isString(M)||(M=M?"include":"omit");const O=i&&"credentials"in r.prototype,P={...B,signal:T,method:b.toUpperCase(),headers:I.normalize().toJSON(),body:y,duplex:"half",credentials:O?M:void 0};k=i&&new r(g,P);let D=await(i?C(k,B):C(g,P));const $=c&&(_==="stream"||_==="response");if(c&&(A||$&&L)){const re={};["status","statusText","headers"].forEach(he=>{re[he]=D[he]});const Z=j.toFiniteNumber(D.headers.get("content-length")),[H,F]=A&&td(Z,ii(rd(A),!0))||[];D=new n(od(D.body,id,H,()=>{F&&F(),L&&L()}),re)}_=_||"text";let z=await h[j.findKey(h,_)||"text"](D,m);return!$&&L&&L(),await new Promise((re,Z)=>{Hp(re,Z,{data:z,headers:De.from(D.headers),status:D.status,statusText:D.statusText,config:m,request:k})})}catch(O){throw L&&L(),O&&O.name==="TypeError"&&/Load failed|fetch/i.test(O.message)?Object.assign(new V("Network Error",V.ERR_NETWORK,m,k,O&&O.response),{cause:O.cause||O}):V.from(O,O&&O.code,m,k,O&&O.response)}}},$C=new Map,Up=t=>{let e=t&&t.env||{};const{fetch:r,Request:n,Response:o}=e,i=[n,o,r];let a=i.length,s=a,u,l,c=$C;for(;s--;)u=i[s],l=c.get(u),l===void 0&&c.set(u,l=s?new Map:MC(e)),c=l;return l};Up();const Hu={http:tC,xhr:PC,fetch:{get:Up}};j.forEach(Hu,(t,e)=>{if(t){try{Object.defineProperty(t,"name",{value:e})}catch{}Object.defineProperty(t,"adapterName",{value:e})}});const ld=t=>`- ${t}`,BC=t=>j.isFunction(t)||t===null||t===!1;function FC(t,e){t=j.isArray(t)?t:[t];const{length:r}=t;let n,o;const i={};for(let a=0;a<r;a++){n=t[a];let s;if(o=n,!BC(n)&&(o=Hu[(s=String(n)).toLowerCase()],o===void 0))throw new V(`Unknown adapter '${s}'`);if(o&&(j.isFunction(o)||(o=o.get(e))))break;i[s||"#"+a]=o}if(!o){const a=Object.entries(i).map(([u,l])=>`adapter ${u} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=r?a.length>1?`since :
282
+ `+a.map(ld).join(`
283
+ `):" "+ld(a[0]):"as no adapter specified";throw new V("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const Vp={getAdapter:FC,adapters:Hu};function xa(t){if(t.cancelToken&&t.cancelToken.throwIfRequested(),t.signal&&t.signal.aborted)throw new Zn(null,t)}function cd(t){return xa(t),t.headers=De.from(t.headers),t.data=va.call(t,t.transformRequest),["post","put","patch"].indexOf(t.method)!==-1&&t.headers.setContentType("application/x-www-form-urlencoded",!1),Vp.getAdapter(t.adapter||Jn.adapter,t)(t).then(function(n){return xa(t),n.data=va.call(t,t.transformResponse,n),n.headers=De.from(n.headers),n},function(n){return Fp(n)||(xa(t),n&&n.response&&(n.response.data=va.call(t,t.transformResponse,n.response),n.response.headers=De.from(n.response.headers))),Promise.reject(n)})}const Wp="1.13.6",Wi={};["object","boolean","number","function","string","symbol"].forEach((t,e)=>{Wi[t]=function(n){return typeof n===t||"a"+(e<1?"n ":" ")+t}});const dd={};Wi.transitional=function(e,r,n){function o(i,a){return"[Axios v"+Wp+"] Transitional option '"+i+"'"+a+(n?". "+n:"")}return(i,a,s)=>{if(e===!1)throw new V(o(a," has been removed"+(r?" in "+r:"")),V.ERR_DEPRECATED);return r&&!dd[a]&&(dd[a]=!0,console.warn(o(a," has been deprecated since v"+r+" and will be removed in the near future"))),e?e(i,a,s):!0}};Wi.spelling=function(e){return(r,n)=>(console.warn(`${n} is likely a misspelling of ${e}`),!0)};function HC(t,e,r){if(typeof t!="object")throw new V("options must be an object",V.ERR_BAD_OPTION_VALUE);const n=Object.keys(t);let o=n.length;for(;o-- >0;){const i=n[o],a=e[i];if(a){const s=t[i],u=s===void 0||a(s,i,t);if(u!==!0)throw new V("option "+i+" must be "+u,V.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new V("Unknown option "+i,V.ERR_BAD_OPTION)}}const Ro={assertOptions:HC,validators:Wi},Fe=Ro.validators;let nr=class{constructor(e){this.defaults=e||{},this.interceptors={request:new Qc,response:new Qc}}async request(e,r){try{return await this._request(e,r)}catch(n){if(n instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{n.stack?i&&!String(n.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(n.stack+=`
284
+ `+i):n.stack=i}catch{}}throw n}}_request(e,r){typeof e=="string"?(r=r||{},r.url=e):r=e||{},r=cr(this.defaults,r);const{transitional:n,paramsSerializer:o,headers:i}=r;n!==void 0&&Ro.assertOptions(n,{silentJSONParsing:Fe.transitional(Fe.boolean),forcedJSONParsing:Fe.transitional(Fe.boolean),clarifyTimeoutError:Fe.transitional(Fe.boolean),legacyInterceptorReqResOrdering:Fe.transitional(Fe.boolean)},!1),o!=null&&(j.isFunction(o)?r.paramsSerializer={serialize:o}:Ro.assertOptions(o,{encode:Fe.function,serialize:Fe.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),Ro.assertOptions(r,{baseUrl:Fe.spelling("baseURL"),withXsrfToken:Fe.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let a=i&&j.merge(i.common,i[r.method]);i&&j.forEach(["delete","get","head","post","put","patch","common"],m=>{delete i[m]}),r.headers=De.concat(a,i);const s=[];let u=!0;this.interceptors.request.forEach(function(g){if(typeof g.runWhen=="function"&&g.runWhen(r)===!1)return;u=u&&g.synchronous;const b=r.transitional||Bu;b&&b.legacyInterceptorReqResOrdering?s.unshift(g.fulfilled,g.rejected):s.push(g.fulfilled,g.rejected)});const l=[];this.interceptors.response.forEach(function(g){l.push(g.fulfilled,g.rejected)});let c,h=0,f;if(!u){const m=[cd.bind(this),void 0];for(m.unshift(...s),m.push(...l),f=m.length,c=Promise.resolve(r);h<f;)c=c.then(m[h++],m[h++]);return c}f=s.length;let d=r;for(;h<f;){const m=s[h++],g=s[h++];try{d=m(d)}catch(b){g.call(this,b);break}}try{c=cd.call(this,d)}catch(m){return Promise.reject(m)}for(h=0,f=l.length;h<f;)c=c.then(l[h++],l[h++]);return c}getUri(e){e=cr(this.defaults,e);const r=qp(e.baseURL,e.url,e.allowAbsoluteUrls);return $p(r,e.params,e.paramsSerializer)}};j.forEach(["delete","get","head","options"],function(e){nr.prototype[e]=function(r,n){return this.request(cr(n||{},{method:e,url:r,data:(n||{}).data}))}});j.forEach(["post","put","patch"],function(e){function r(n){return function(i,a,s){return this.request(cr(s||{},{method:e,headers:n?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}nr.prototype[e]=r(),nr.prototype[e+"Form"]=r(!0)});let qC=class Gp{constructor(e){if(typeof e!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(i){r=i});const n=this;this.promise.then(o=>{if(!n._listeners)return;let i=n._listeners.length;for(;i-- >0;)n._listeners[i](o);n._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{n.subscribe(s),i=s}).then(o);return a.cancel=function(){n.unsubscribe(i)},a},e(function(i,a,s){n.reason||(n.reason=new Zn(i,a,s),r(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){if(this.reason){e(this.reason);return}this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const r=this._listeners.indexOf(e);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){const e=new AbortController,r=n=>{e.abort(n)};return this.subscribe(r),e.signal.unsubscribe=()=>this.unsubscribe(r),e.signal}static source(){let e;return{token:new Gp(function(o){e=o}),cancel:e}}};function zC(t){return function(r){return t.apply(null,r)}}function UC(t){return j.isObject(t)&&t.isAxiosError===!0}const vs={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(vs).forEach(([t,e])=>{vs[e]=t});function Yp(t){const e=new nr(t),r=Ap(nr.prototype.request,e);return j.extend(r,nr.prototype,e,{allOwnKeys:!0}),j.extend(r,e,null,{allOwnKeys:!0}),r.create=function(o){return Yp(cr(t,o))},r}const ye=Yp(Jn);ye.Axios=nr;ye.CanceledError=Zn;ye.CancelToken=qC;ye.isCancel=Fp;ye.VERSION=Wp;ye.toFormData=Vi;ye.AxiosError=V;ye.Cancel=ye.CanceledError;ye.all=function(e){return Promise.all(e)};ye.spread=zC;ye.isAxiosError=UC;ye.mergeConfig=cr;ye.AxiosHeaders=De;ye.formToJSON=t=>Bp(j.isHTMLForm(t)?new FormData(t):t);ye.getAdapter=Vp.getAdapter;ye.HttpStatusCode=vs;ye.default=ye;const{Axios:UN,AxiosError:VN,CanceledError:WN,isCancel:GN,CancelToken:YN,VERSION:XN,all:KN,Cancel:JN,isAxiosError:ZN,spread:QN,toFormData:eA,AxiosHeaders:tA,HttpStatusCode:rA,formToJSON:nA,getAdapter:oA,mergeConfig:iA}=ye,VC="https://api.myracereel.com/api",WC=ye.create({baseURL:VC,headers:{"Content-Type":"application/json"}}),GC=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(!1),[o,i]=w.useState(null);return{postVideoAnalytics:async s=>{n(!0),i(null);try{const u=await WC.post("/videos/analytics",s);e(u.data.data)}catch(u){i(u)}finally{n(!1)}},data:t,isLoading:r,isError:!!o,error:o}};function pn(t){return`video_watched_${t}`}const rn=t=>{let e,r,n=!1,o;try{const{connectors:i,events:a}=se(u=>({events:u.events}));e=i.connect,r=i.drag,n=a.selected;const{editorEnabled:s}=ht(u=>({editorEnabled:u.options.enabled}));o=s}catch{}return p.jsx("div",{...t.id?{id:t.id}:{},ref:i=>i&&e&&r&&e(r(i)),style:lu(t),className:ct(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),...!o&&t.onClick?{onClick:i=>t.onClick(i)}:{},children:t.children})},YC={...Rn,display:"flex",justifyContent:"center",alignItems:"center"};rn.craft={props:YC,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:_i}};const XC=(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},KC=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const o=w.useRef(null),{data:i,isLoading:a,error:s}=Wh.useQuery({queryKey:["video",t,e],queryFn:()=>i8(t,e),enabled:!!t}),{postVideoAnalytics:u}=GC();let l=0,c=Date.now();if(w.useEffect(()=>{const d=I=>{I.target.nodeName==="VIDEO"&&I.preventDefault()};document.addEventListener("contextmenu",d);const m=o.current;if(!m||!i)return;const g=m.dataset.videoId,b=m.dataset.title;if(!g)return;let y=new Set;m.addEventListener("timeupdate",()=>{var T,k;const I=Math.floor(m.currentTime/m.duration*100),M=Math.floor(I/10)*10;!y.has(M)&&M%10===0&&M<=100&&(y.add(M),localStorage.getItem(pn(g))||((T=window.gtag)==null||T.call(window,"event","video_progress",{video_id:g,progress_percent:M,video_title:m.dataset.title||"",video_duration:m.duration}),u({type:"milestone",bibId:e,eventId,locationId:t,data:{percent:M}})));const B=Date.now(),C=(B-c)/1e3;c=B,C<1.5&&(l+=C),l>=5&&(localStorage.getItem(pn(g))||((k=window.gtag)==null||k.call(window,"event","video_watch_time",{video_id:g,watched_seconds:Math.round(l),video_title:m.dataset.title||"",video_duration:m.duration}),u({bibId:e,eventId,locationId:t,type:"watch_time",data:{seconds:Math.round(l)}})),l=0)});const x=()=>{var I;(I=window.gtag)==null||I.call(window,"event","video_start",{video_id:g,video_title:b,video_duration:m.duration}),u({bibId:e,locationId:t,eventId,type:"start"}),localStorage.getItem(pn(g))||(localStorage.setItem(pn(g),"true"),u({bibId:e,eventId,locationId:t,type:"unique"}))},S=()=>{var I;(I=window.gtag)==null||I.call(window,"event","video_pause",{video_id:g,video_title:b,video_duration:m.duration,video_currentTime:m.currentTime})},E=()=>{m.currentTime>=MAX_TIME&&(m.pause(),m.currentTime=MAX_TIME-1,setOpen(!0))},A=()=>{m.currentTime>MAX_TIME&&(m.pause(),m.currentTime=MAX_TIME-1,setOpen(!0))},R=()=>{var I;m.currentTime=0,setOpen(!0),(I=window.gtag)==null||I.call(window,"event","video_complete",{video_id:g,video_title:b,video_duration:m.duration,video_currentTime:m.currentTime})},_=I=>{["ArrowRight","ArrowLeft"].includes(I.code)&&I.preventDefault()};return m.addEventListener("play",x),m.addEventListener("pause",S),m.addEventListener("timeupdate",E),m.addEventListener("seeking",A),m.addEventListener("ended",R),document.addEventListener("keydown",_),()=>{m.removeEventListener("play",x),m.removeEventListener("pause",S),m.removeEventListener("timeupdate",E),m.removeEventListener("seeking",A),m.removeEventListener("ended",R),document.removeEventListener("keydown",_),document.removeEventListener("contextmenu",d)}},[o.current,i]),a)return p.jsx("div",{className:"flex items-center justify-center h-48 bg-muted rounded-lg",children:p.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent"})});if(s||!i)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(_m,{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:h}=i,f=async()=>{if(!r)try{const d=o.current;if(!d)return;const m=d.dataset.videoId||"";localStorage.getItem(pn(m))||await u({bibId:e,eventId,locationId:t,type:"download"});const g=document.createElement("a");g.href=h.mp4_hr_url,g.download=`${h.name||e}-video`,g.style.display="none",document.body.appendChild(g),g.click(),document.body.removeChild(g)}catch(d){console.error("Download failed:",d)}};return p.jsx(rn,{children:p.jsx(Hn,{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:[h.name," (",h.start_no,")"]}),p.jsxs("video",{"data-video-id":`${t}-${e}`,"data-title":n,ref:o,className:"irewind_video_player",controls:!0,preload:"auto",poster:i.videoFromIrewind.thumbnail_url,controlsList:"nodownload",style:{width:"100%",maxWidth:"600px"},children:[p.jsx("source",{src:h.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),p.jsx(f8,{onDownload:f,disabled:r})]})})})})},qu=({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 i=Ae(),a=Bn();let s,u,l;try{const{connectors:b,events:y}=se(x=>({events:x.events}));s=b.connect,u=b.drag,l=y.selected}catch{}let c=!1;try{let{options:b}=ht(y=>({options:y.options}));c=b.enabled}catch{}const h=XC(t,i),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"},m=(a==null?void 0:a.videos)||[],g=m.length>0;return p.jsx("div",{ref:b=>b&&s&&u&&s(u(b)),style:d,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:g?p.jsx("div",{className:"space-y-6",children:m.map(b=>p.jsx(KC,{locationId:b.locationId,bibId:a==null?void 0:a.bibId,editorEnabled:c,videoTitle:b.name||b.locationId},b.locationId))}):p.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-muted rounded-lg border-2 border-dashed border-muted-foreground/30",children:[p.jsx(Rd,{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."})]})]})})},JC=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:o,boxShadow:i}=se(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})),a=[{value:"none",label:"None"},{value:"sm",label:"Small"},{value:"md",label:"Medium"},{value:"lg",label:"Large"},{value:"xl",label:"Extra Large"}];return p.jsxs("div",{className:"space-y-1",children:[p.jsx(G,{title:"Info",children:p.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),p.jsxs(G,{title:"Style",children:[p.jsx(ge,{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(ge,{unit:"px",label:"Border Radius",value:o,onChange:s=>t(u=>u.borderRadius=s),min:0,max:50}),p.jsx(ut,{label:"Background",value:n,onChange:s=>t(u=>u.background=s)}),p.jsx(te,{label:"Shadow",value:i,options:a,onChange:s=>t(u=>u.boxShadow=s)})]}),p.jsx(G,{title:"Spacing",children:p.jsx(Ue,{label:"Margin",values:r,onChange:s=>t(u=>u.margin=s)})})]})};qu.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{desktop:{top:0,right:0,bottom:0,left:0}},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:JC}};const Xp=({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:i})=>{const a=Ae();let s,u,l;try{const{connectors:f,events:d}=se(m=>({events:m.events}));s=f.connect,u=f.drag,l=d.selected}catch{}const c=typeof ee(r,a)=="object"?`${ee(r,a).top}px ${ee(r,a).right}px ${ee(r,a).bottom}px ${ee(r,a).left}px`:`${ee(r,a)}px`,h=typeof ee(n,a)=="object"?`${ee(n,a).top}px ${ee(n,a).right}px ${ee(n,a).bottom}px ${ee(n,a).left}px`:`${ee(n,a)}px`;return p.jsx("div",{ref:f=>f&&s&&u&&(s==null?void 0:s(u==null?void 0:u(f))),className:`cursor-move w-full ${l?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:c,margin:h,alignItems:o},children:i})},ZC=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Layout",defaultOpen:!0,children:[p.jsx(At,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:o=>t(i=>i.columns=o)}),p.jsx(ge,{unit:"px",label:"Gap",value:e.gap||16,onChange:o=>t(i=>i.gap=o),max:64}),p.jsx(te,{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(i=>i.alignItems=o)})]}),p.jsxs(G,{title:"Spacing",defaultOpen:!1,children:[p.jsx(Ue,{label:"Padding",values:r,onChange:o=>t(i=>i.padding={...i.padding,...o})}),p.jsx(Ue,{label:"Margin",values:n,onChange:o=>t(i=>i.margin={...i.margin,...o})})]})]})};Xp.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{desktop:{top:0,right:0,bottom:0,left:0}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},alignItems:"stretch"},related:{settings:ZC}};const zu=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:o="400",color:i="#0066cc",hoverColor:a="#0052a3",textDecoration:s="underline",textAlign:u="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const h=Ae();let f,d,m;try{const{connectors:b,events:y}=se(x=>({events:x.events}));f=b.connect,d=b.drag,m=y.selected}catch{}const g=typeof l[h]=="object"?`${l[h].top}px ${l[h].right}px ${l[h].bottom}px ${l[h].left}px`:`${l[h]}px`;return p.jsx("a",{ref:b=>b&&f&&d&&f(d(b)),href:e,target:r,rel:r==="_blank"?"noopener noreferrer":void 0,onClick:b=>b.preventDefault(),className:`cursor-move inline-block transition-colors hover:opacity-80 ${m?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:o,color:i,textDecoration:s,textAlign:u,margin:g,opacity:c/100,display:"block"},children:t})},QC=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Content",defaultOpen:!0,children:[p.jsx(Gt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)}),p.jsx(Gt,{label:"URL",value:e.url,onChange:n=>t(o=>o.url=n)}),p.jsx(te,{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(G,{title:"Typography",defaultOpen:!0,children:[p.jsx(ge,{unit:"px",label:"Font Size",value:e.fontSize||16,onChange:n=>t(o=>o.fontSize=n),min:10,max:48}),p.jsx(te,{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(te,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(o=>o.textDecoration=n)}),p.jsx(At,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx(Ns,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Ts,{className:"h-3 w-3"})},{value:"right",label:p.jsx(As,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)})]}),p.jsxs(G,{title:"Color",defaultOpen:!1,children:[p.jsx(ut,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(o=>o.color=n)}),p.jsx(Pi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsx(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};zu.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100},related:{settings:QC}};const Kp=({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:i="cover",borderRadius:a=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const c=Ae();let h,f,d;try{const{connectors:g,events:b}=se(y=>({events:y.events}));h=g.connect,f=g.drag,d=b.selected}catch{}const m=typeof s[c]=="object"?`${s[c].top}px ${s[c].right}px ${s[c].bottom}px ${s[c].left}px`:`${s[c]}px`;return p.jsx("img",{ref:g=>g&&h&&f&&h(f(g)),src:t,alt:e,className:`cursor-move ${d?"outline outline-blue-500":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:i,borderRadius:`${a}px`,margin:m,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},eT=()=>{const{actions:{setProp:t},props:e}=se(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(G,{title:"Source",defaultOpen:!0,children:[p.jsx(Gt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Gt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(G,{title:"Size",defaultOpen:!0,children:[p.jsx(te,{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(ge,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(te,{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(ge,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(te,{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(G,{title:"Style",defaultOpen:!1,children:[p.jsx(ge,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(Pi,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(te,{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(G,{title:"Spacing",defaultOpen:!1,children:p.jsx(Ue,{label:"Margin",values:r,onChange:n=>t(o=>o.margin={...o.margin,...n})})})]})};Kp.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{desktop:{top:0,right:0,bottom:0,left:0}},opacity:100,boxShadow:"none"},related:{settings:eT}};function fd(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 Jp=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:s,events:u}=se(l=>({events:l.events}));r=s.connect,n=s.drag,o=u.selected}catch{}const i=fd(),a=fd();return p.jsx("div",{ref:s=>{s&&r&&n&&r(n(s))},className:ct(`min-h-2.5 ${o?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(Ft,{is:rn,id:`section-wrapper-${i}`,children:p.jsx(Ft,{is:Hn,canvas:!0,id:`section-container-${a}`,children:t})})})};Jp.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const Uu=t=>{let e,r,n=!1;try{const{connectors:o,events:i}=se(a=>({events:a.events}));e=o.connect,r=o.drag,n=i.selected}catch{}return p.jsx("div",{style:lu(t),className:ct(t.className,`${n?"outline outline-blue-500":""}`),ref:o=>{o&&e&&r&&e(r(o))},children:t.children})};Uu.craft={isCanvas:!0,props:Rn,related:{settings:_i}};const Zp=({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:i="none",display:a="block",flexDirection:s="column",justifyContent:u="flex-start",alignItems:l="stretch",gap:c=0,borderRadius:h=8,borderWidth:f=1,borderColor:d="transparent",borderStyle:m="dashed",boxShadow:g="none",children:b})=>{Ae();let y,x,S;try{const{connectors:_,events:I}=se(M=>({events:M.events}));y=_.connect,x=_.drag,S=I.selected}catch{}const E=typeof ee(e)=="object"?`${ee(e).top}px ${ee(e).right}px ${ee(e).bottom}px ${ee(e).left}px`:`${ee(e)}px`,A=typeof ee(r)=="object"?`${ee(r).top}px ${ee(r).right}px ${ee(r).bottom}px ${ee(r).left}px`:`${ee(r)}px`,R=[{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(rn,{style:{backgroundColor:t,padding:E,margin:A,width:n==="auto"?"100%":n,minHeight:`${o}px`,maxWidth:i==="none"?"none":`${i}px`,display:a,flexDirection:a==="flex"?s:void 0,justifyContent:a==="flex"?u:void 0,alignItems:a==="flex"?l:void 0,gap:a==="flex"?`${c}px`:void 0,borderRadius:`${h}px`,borderWidth:`${f}px`,borderColor:d,borderStyle:m,boxShadow:g==="none"?"none":g},className:"bg-black",ref:_=>_&&y&&x&&y(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:R.map(_=>p.jsx("a",{className:"text-white",href:_.url,target:"_blank",children:_.name},_.name))})]})})})};Zp.craft={displayName:"Footer",props:{background:"transparent",padding:{desktop:{top:16,right:16,bottom:16,left:16}},margin:{desktop:{top:0,right:0,bottom:0,left:0}},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:_i}};const tT=()=>{const{connectors:t}=ht(),e=[{name:"Wrapper",icon:zm,element:p.jsx(Ft,{is:rn,canvas:!0})},{name:"Container",icon:Vm,element:p.jsx(Ft,{is:Hn,canvas:!0})},{name:"Div",icon:Ca,element:p.jsx(Ft,{is:Uu,canvas:!0})}],r=[{name:"Heading",icon:Pd,element:p.jsx(Pu,{})},{name:"Text",icon:Ld,element:p.jsx(Ru,{})},{name:"Button",icon:Id,element:p.jsx(uu,{})},{name:"Link",icon:Ps,element:p.jsx(zu,{})}],n=[{name:"Image",icon:_d,element:p.jsx(_u,{})},{name:"Video",icon:Rd,element:p.jsx(qu,{})}],o=[{name:"Divider",icon:kd,element:p.jsx(ku,{})},{name:"Spacer",icon:Dd,element:p.jsx(Iu,{})}],i=(a,s)=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("span",{className:"text-xs text-muted-foreground/70",children:a}),p.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:s.map(u=>p.jsxs(ot,{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"}),i("Layout",e),i("Basic",r),i("Media",n),i("Utility",o)]})};var rT=v.createContext(void 0);function Vu(t){const e=v.useContext(rT);return t||e||"ltr"}function nT(t,[e,r]){return Math.min(r,Math.max(e,t))}function oT(t,e){return v.useReducer((r,n)=>e[r][n]??r,t)}var Wu="ScrollArea",[Qp]=pr(Wu),[iT,Ve]=Qp(Wu),eh=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:i=600,...a}=t,[s,u]=v.useState(null),[l,c]=v.useState(null),[h,f]=v.useState(null),[d,m]=v.useState(null),[g,b]=v.useState(null),[y,x]=v.useState(0),[S,E]=v.useState(0),[A,R]=v.useState(!1),[_,I]=v.useState(!1),M=Te(e,C=>u(C)),B=Vu(o);return p.jsx(iT,{scope:r,type:n,dir:B,scrollHideDelay:i,scrollArea:s,viewport:l,onViewportChange:c,content:h,onContentChange:f,scrollbarX:d,onScrollbarXChange:m,scrollbarXEnabled:A,onScrollbarXEnabledChange:R,scrollbarY:g,onScrollbarYChange:b,scrollbarYEnabled:_,onScrollbarYEnabledChange:I,onCornerWidthChange:x,onCornerHeightChange:E,children:p.jsx(ve.div,{dir:B,...a,ref:M,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":S+"px",...t.style}})})});eh.displayName=Wu;var th="ScrollAreaViewport",rh=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:o,...i}=t,a=Ve(th,r),s=v.useRef(null),u=Te(e,s,a.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(ve.div,{"data-radix-scroll-area-viewport":"",...i,ref:u,style:{overflowX:a.scrollbarXEnabled?"scroll":"hidden",overflowY:a.scrollbarYEnabled?"scroll":"hidden",...t.style},children:p.jsx("div",{ref:a.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});rh.displayName=th;var gt="ScrollAreaScrollbar",Gu=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Ve(gt,t.__scopeScrollArea),{onScrollbarXEnabledChange:i,onScrollbarYEnabledChange:a}=o,s=t.orientation==="horizontal";return v.useEffect(()=>(s?i(!0):a(!0),()=>{s?i(!1):a(!1)}),[s,i,a]),o.type==="hover"?p.jsx(aT,{...n,ref:e,forceMount:r}):o.type==="scroll"?p.jsx(sT,{...n,ref:e,forceMount:r}):o.type==="auto"?p.jsx(nh,{...n,ref:e,forceMount:r}):o.type==="always"?p.jsx(Yu,{...n,ref:e}):null});Gu.displayName=gt;var aT=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Ve(gt,t.__scopeScrollArea),[i,a]=v.useState(!1);return v.useEffect(()=>{const s=o.scrollArea;let u=0;if(s){const l=()=>{window.clearTimeout(u),a(!0)},c=()=>{u=window.setTimeout(()=>a(!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(hr,{present:r||i,children:p.jsx(nh,{"data-state":i?"visible":"hidden",...n,ref:e})})}),sT=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Ve(gt,t.__scopeScrollArea),i=t.orientation==="horizontal",a=Yi(()=>u("SCROLL_END"),100),[s,u]=oT("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 v.useEffect(()=>{if(s==="idle"){const l=window.setTimeout(()=>u("HIDE"),o.scrollHideDelay);return()=>window.clearTimeout(l)}},[s,o.scrollHideDelay,u]),v.useEffect(()=>{const l=o.viewport,c=i?"scrollLeft":"scrollTop";if(l){let h=l[c];const f=()=>{const d=l[c];h!==d&&(u("SCROLL"),a()),h=d};return l.addEventListener("scroll",f),()=>l.removeEventListener("scroll",f)}},[o.viewport,i,u,a]),p.jsx(hr,{present:r||s!=="hidden",children:p.jsx(Yu,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:fe(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:fe(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),nh=v.forwardRef((t,e)=>{const r=Ve(gt,t.__scopeScrollArea),{forceMount:n,...o}=t,[i,a]=v.useState(!1),s=t.orientation==="horizontal",u=Yi(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;a(s?l:c)}},10);return qr(r.viewport,u),qr(r.content,u),p.jsx(hr,{present:n||i,children:p.jsx(Yu,{"data-state":i?"visible":"hidden",...o,ref:e})})}),Yu=v.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,o=Ve(gt,t.__scopeScrollArea),i=v.useRef(null),a=v.useRef(0),[s,u]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=uh(s.viewport,s.content),c={...n,sizes:s,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:f=>i.current=f,onThumbPointerUp:()=>a.current=0,onThumbPointerDown:f=>a.current=f};function h(f,d){return pT(f,a.current,s,d)}return r==="horizontal"?p.jsx(uT,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollLeft,d=pd(f,s,o.dir);i.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(lT,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&i.current){const f=o.viewport.scrollTop,d=pd(f,s);i.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}),uT=v.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,i=Ve(gt,t.__scopeScrollArea),[a,s]=v.useState(),u=v.useRef(null),l=Te(e,u,i.onScrollbarXChange);return v.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(ih,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:i.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:i.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":Gi(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.x),onDragScroll:c=>t.onDragScroll(c.x),onWheelScroll:(c,h)=>{if(i.viewport){const f=i.viewport.scrollLeft+c.deltaX;t.onWheelScroll(f),ch(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&i.viewport&&a&&n({content:i.viewport.scrollWidth,viewport:i.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:si(a.paddingLeft),paddingEnd:si(a.paddingRight)}})}})}),lT=v.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,i=Ve(gt,t.__scopeScrollArea),[a,s]=v.useState(),u=v.useRef(null),l=Te(e,u,i.onScrollbarYChange);return v.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(ih,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:i.dir==="ltr"?0:void 0,left:i.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":Gi(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.y),onDragScroll:c=>t.onDragScroll(c.y),onWheelScroll:(c,h)=>{if(i.viewport){const f=i.viewport.scrollTop+c.deltaY;t.onWheelScroll(f),ch(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&i.viewport&&a&&n({content:i.viewport.scrollHeight,viewport:i.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:si(a.paddingTop),paddingEnd:si(a.paddingBottom)}})}})}),[cT,oh]=Qp(gt),ih=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:i,onThumbPointerUp:a,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:c,onResize:h,...f}=t,d=Ve(gt,r),[m,g]=v.useState(null),b=Te(e,M=>g(M)),y=v.useRef(null),x=v.useRef(""),S=d.viewport,E=n.content-n.viewport,A=ze(c),R=ze(u),_=Yi(h,10);function I(M){if(y.current){const B=M.clientX-y.current.left,C=M.clientY-y.current.top;l({x:B,y:C})}}return v.useEffect(()=>{const M=B=>{const C=B.target;(m==null?void 0:m.contains(C))&&A(B,E)};return document.addEventListener("wheel",M,{passive:!1}),()=>document.removeEventListener("wheel",M,{passive:!1})},[S,m,E,A]),v.useEffect(R,[n,R]),qr(m,_),qr(d.content,_),p.jsx(cT,{scope:r,scrollbar:m,hasThumb:o,onThumbChange:ze(i),onThumbPointerUp:ze(a),onThumbPositionChange:R,onThumbPointerDown:ze(s),children:p.jsx(ve.div,{...f,ref:b,style:{position:"absolute",...f.style},onPointerDown:fe(t.onPointerDown,M=>{M.button===0&&(M.target.setPointerCapture(M.pointerId),y.current=m.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",d.viewport&&(d.viewport.style.scrollBehavior="auto"),I(M))}),onPointerMove:fe(t.onPointerMove,I),onPointerUp:fe(t.onPointerUp,M=>{const B=M.target;B.hasPointerCapture(M.pointerId)&&B.releasePointerCapture(M.pointerId),document.body.style.webkitUserSelect=x.current,d.viewport&&(d.viewport.style.scrollBehavior=""),y.current=null})})})}),ai="ScrollAreaThumb",ah=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=oh(ai,t.__scopeScrollArea);return p.jsx(hr,{present:r||o.hasThumb,children:p.jsx(dT,{ref:e,...n})})}),dT=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,style:n,...o}=t,i=Ve(ai,r),a=oh(ai,r),{onThumbPositionChange:s}=a,u=Te(e,h=>a.onThumbChange(h)),l=v.useRef(void 0),c=Yi(()=>{l.current&&(l.current(),l.current=void 0)},100);return v.useEffect(()=>{const h=i.viewport;if(h){const f=()=>{if(c(),!l.current){const d=hT(h,s);l.current=d,s()}};return s(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[i.viewport,c,s]),p.jsx(ve.div,{"data-state":a.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:fe(t.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),m=h.clientX-d.left,g=h.clientY-d.top;a.onThumbPointerDown({x:m,y:g})}),onPointerUp:fe(t.onPointerUp,a.onThumbPointerUp)})});ah.displayName=ai;var Xu="ScrollAreaCorner",sh=v.forwardRef((t,e)=>{const r=Ve(Xu,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(fT,{...t,ref:e}):null});sh.displayName=Xu;var fT=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,o=Ve(Xu,r),[i,a]=v.useState(0),[s,u]=v.useState(0),l=!!(i&&s);return qr(o.scrollbarX,()=>{var h;const c=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(c),u(c)}),qr(o.scrollbarY,()=>{var h;const c=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(c),a(c)}),l?p.jsx(ve.div,{...n,ref:e,style:{width:i,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function si(t){return t?parseInt(t,10):0}function uh(t,e){const r=t/e;return isNaN(r)?0:r}function Gi(t){const e=uh(t.viewport,t.content),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=(t.scrollbar.size-r)*e;return Math.max(n,18)}function pT(t,e,r,n="ltr"){const o=Gi(r),i=o/2,a=e||i,s=o-a,u=r.scrollbar.paddingStart+a,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,c=r.content-r.viewport,h=n==="ltr"?[0,c]:[c*-1,0];return lh([u,l],h)(t)}function pd(t,e,r="ltr"){const n=Gi(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,i=e.scrollbar.size-o,a=e.content-e.viewport,s=i-n,u=r==="ltr"?[0,a]:[a*-1,0],l=nT(t,u);return lh([0,a],[0,s])(l)}function lh(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 ch(t,e){return t>0&&t<e}var hT=(t,e=()=>{})=>{let r={left:t.scrollLeft,top:t.scrollTop},n=0;return function o(){const i={left:t.scrollLeft,top:t.scrollTop},a=r.left!==i.left,s=r.top!==i.top;(a||s)&&e(),r=i,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function Yi(t,e){const r=ze(t),n=v.useRef(0);return v.useEffect(()=>()=>window.clearTimeout(n.current),[]),v.useCallback(()=>{window.clearTimeout(n.current),n.current=window.setTimeout(r,e)},[r,e])}function qr(t,e){const r=ze(e);Ut(()=>{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 dh=eh,mT=rh,bT=sh;const Ku=v.forwardRef(({className:t,children:e,...r},n)=>p.jsxs(dh,{ref:n,className:Ne("relative overflow-hidden",t),...r,children:[p.jsx(mT,{className:"h-full w-full rounded-[inherit]",children:e}),p.jsx(fh,{}),p.jsx(bT,{})]}));Ku.displayName=dh.displayName;const fh=v.forwardRef(({className:t,orientation:e="vertical",...r},n)=>p.jsx(Gu,{ref:n,orientation:e,className:Ne("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(ah,{className:"relative flex-1 rounded-full bg-border"})}));fh.displayName=Gu.displayName;const gT=()=>{const{selected:t,actions:e}=ht(r=>{var i,a,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:((a=(i=r.nodes[n])==null?void 0:i.data)==null?void 0:a.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(Gm,{className:"h-4 w-4"})})]}),p.jsx(Ku,{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"})})})},yT=t=>{switch(t){case"Container":return Ca;case"Text":return Ld;case"Heading":return Pd;case"Button":return Id;case"Image":return _d;case"Divider":return kd;case"Spacer":return Dd;case"Video":return Km;case"Columns":return km;case"Link":return Ps;default:return Ca}},ph=({nodeId:t,depth:e=0,onDragStart:r,onDragOver:n,onDrop:o,draggedId:i})=>{const{node:a,actions:s,selectedNodeId:u,childNodes:l,parentId:c}=ht((T,k)=>{var D,$;const L=T.nodes[t],N=((D=L==null?void 0:L.data)==null?void 0:D.nodes)||[],O=T.events.selected?Array.from(T.events.selected)[0]:null,P=($=L==null?void 0:L.data)==null?void 0:$.parent;return{node:L,childNodes:N,selectedNodeId:O,parentId:P}}),[h,f]=w.useState(!0),[d,m]=w.useState(!1);if(!a)return null;const g=a.data.displayName||a.data.name||"Unknown",b=l.length>0,y=u===t,x=t==="ROOT",S=yT(g),E=i===t,A=a.data.isCanvas,R=T=>{T.stopPropagation(),x||s.selectNode(t)},_=T=>{T.stopPropagation(),f(!h)},I=T=>{if(x){T.preventDefault();return}T.stopPropagation(),r(t,c)},M=T=>{T.preventDefault(),T.stopPropagation(),i&&i!==t&&A&&m(!0)},B=T=>{T.stopPropagation(),m(!1)},C=T=>{T.preventDefault(),T.stopPropagation(),m(!1),i&&i!==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 ${y?"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:R,draggable:!x,onDragStart:I,onDragOver:M,onDragLeave:B,onDrop:C,children:[!x&&p.jsx(Mm,{className:"h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing"}),b?p.jsx("button",{onClick:_,className:"p-0.5 hover:bg-secondary rounded",children:h?p.jsx(js,{className:"h-3 w-3"}):p.jsx(Rs,{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})]}),b&&h&&p.jsx("div",{children:l.map(T=>p.jsx(ph,{nodeId:T,depth:e+1,onDragStart:r,onDragOver:n,onDrop:o,draggedId:i},T))})]})},vT=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(null),{nodeIds:o,actions:i}=ht(l=>({nodeIds:Object.keys(l.nodes)})),a=(l,c)=>{e(l),n(c)},s=l=>{if(t&&l&&t!==l)try{i.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(ph,{nodeId:"ROOT",onDragStart:a,onDrop:s,draggedId:t})}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Drag to containers to reorder"})]})};function hd(t){const e=xT(t),r=v.forwardRef((n,o)=>{const{children:i,...a}=n,s=v.Children.toArray(i),u=s.find(ST);if(u){const l=u.props.children,c=s.map(h=>h===u?v.Children.count(l)>1?v.Children.only(null):v.isValidElement(l)?l.props.children:null:h);return p.jsx(e,{...a,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...a,ref:o,children:i})});return r.displayName=`${t}.Slot`,r}function xT(t){const e=v.forwardRef((r,n)=>{const{children:o,...i}=r;if(v.isValidElement(o)){const a=CT(o),s=ET(i,o.props);return o.type!==v.Fragment&&(s.ref=n?ci(n,a):a),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var wT=Symbol("radix.slottable");function ST(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===wT}function ET(t,e){const r={...e};for(const n in e){const o=t[n],i=e[n];/^on[A-Z]/.test(n)?o&&i?r[n]=(...s)=>{const u=i(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...i}:n==="className"&&(r[n]=[o,i].filter(Boolean).join(" "))}return{...t,...r}}function CT(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 TT(t){const e=t+"CollectionProvider",[r,n]=pr(e),[o,i]=r(e,{collectionRef:{current:null},itemMap:new Map}),a=g=>{const{scope:b,children:y}=g,x=w.useRef(null),S=w.useRef(new Map).current;return p.jsx(o,{scope:b,itemMap:S,collectionRef:x,children:y})};a.displayName=e;const s=t+"CollectionSlot",u=hd(s),l=w.forwardRef((g,b)=>{const{scope:y,children:x}=g,S=i(s,y),E=Te(b,S.collectionRef);return p.jsx(u,{ref:E,children:x})});l.displayName=s;const c=t+"CollectionItemSlot",h="data-radix-collection-item",f=hd(c),d=w.forwardRef((g,b)=>{const{scope:y,children:x,...S}=g,E=w.useRef(null),A=Te(b,E),R=i(c,y);return w.useEffect(()=>(R.itemMap.set(E,{ref:E,...S}),()=>void R.itemMap.delete(E))),p.jsx(f,{[h]:"",ref:A,children:x})});d.displayName=c;function m(g){const b=i(t+"CollectionConsumer",g);return w.useCallback(()=>{const x=b.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(b.itemMap.values()).sort((R,_)=>S.indexOf(R.ref.current)-S.indexOf(_.ref.current))},[b.collectionRef,b.itemMap])}return[{Provider:a,Slot:l,ItemSlot:d},m,n]}var wa="rovingFocusGroup.onEntryFocus",NT={bubbles:!1,cancelable:!0},Qn="RovingFocusGroup",[xs,hh,AT]=TT(Qn),[OT,mh]=pr(Qn,[AT]),[jT,RT]=OT(Qn),bh=v.forwardRef((t,e)=>p.jsx(xs.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(xs.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(PT,{...t,ref:e})})}));bh.displayName=Qn;var PT=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:i,currentTabStopId:a,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...h}=t,f=v.useRef(null),d=Te(e,f),m=Vu(i),[g,b]=Qr({prop:a,defaultProp:s??null,onChange:u,caller:Qn}),[y,x]=v.useState(!1),S=ze(l),E=hh(r),A=v.useRef(!1),[R,_]=v.useState(0);return v.useEffect(()=>{const I=f.current;if(I)return I.addEventListener(wa,S),()=>I.removeEventListener(wa,S)},[S]),p.jsx(jT,{scope:r,orientation:n,dir:m,loop:o,currentTabStopId:g,onItemFocus:v.useCallback(I=>b(I),[b]),onItemShiftTab:v.useCallback(()=>x(!0),[]),onFocusableItemAdd:v.useCallback(()=>_(I=>I+1),[]),onFocusableItemRemove:v.useCallback(()=>_(I=>I-1),[]),children:p.jsx(ve.div,{tabIndex:y||R===0?-1:0,"data-orientation":n,...h,ref:d,style:{outline:"none",...t.style},onMouseDown:fe(t.onMouseDown,()=>{A.current=!0}),onFocus:fe(t.onFocus,I=>{const M=!A.current;if(I.target===I.currentTarget&&M&&!y){const B=new CustomEvent(wa,NT);if(I.currentTarget.dispatchEvent(B),!B.defaultPrevented){const C=E().filter(O=>O.focusable),T=C.find(O=>O.active),k=C.find(O=>O.id===g),N=[T,k,...C].filter(Boolean).map(O=>O.ref.current);vh(N,c)}}A.current=!1}),onBlur:fe(t.onBlur,()=>x(!1))})})}),gh="RovingFocusGroupItem",yh=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:i,children:a,...s}=t,u=Of(),l=i||u,c=RT(gh,r),h=c.currentTabStopId===l,f=hh(r),{onFocusableItemAdd:d,onFocusableItemRemove:m,currentTabStopId:g}=c;return v.useEffect(()=>{if(n)return d(),()=>m()},[n,d,m]),p.jsx(xs.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(ve.span,{tabIndex:h?0:-1,"data-orientation":c.orientation,...s,ref:e,onMouseDown:fe(t.onMouseDown,b=>{n?c.onItemFocus(l):b.preventDefault()}),onFocus:fe(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:fe(t.onKeyDown,b=>{if(b.key==="Tab"&&b.shiftKey){c.onItemShiftTab();return}if(b.target!==b.currentTarget)return;const y=IT(b,c.orientation,c.dir);if(y!==void 0){if(b.metaKey||b.ctrlKey||b.altKey||b.shiftKey)return;b.preventDefault();let S=f().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();const E=S.indexOf(b.currentTarget);S=c.loop?DT(S,E+1):S.slice(E+1)}setTimeout(()=>vh(S))}}),children:typeof a=="function"?a({isCurrentTabStop:h,hasTabStop:g!=null}):a})})});yh.displayName=gh;var _T={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function kT(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function IT(t,e,r){const n=kT(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return _T[n]}function vh(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function DT(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var LT=bh,MT=yh,xh="Toggle",Ju=v.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...i}=t,[a,s]=Qr({prop:r,onChange:o,defaultProp:n??!1,caller:xh});return p.jsx(ve.button,{type:"button","aria-pressed":a,"data-state":a?"on":"off","data-disabled":t.disabled?"":void 0,...i,ref:e,onClick:fe(t.onClick,()=>{t.disabled||s(!a)})})});Ju.displayName=xh;var wh=Ju,Jt="ToggleGroup",[Sh]=pr(Jt,[mh]),Eh=mh(),Zu=w.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const o=n;return p.jsx($T,{...o,ref:e})}if(r==="multiple"){const o=n;return p.jsx(BT,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${Jt}\``)});Zu.displayName=Jt;var[Ch,Th]=Sh(Jt),$T=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=t,[a,s]=Qr({prop:r,defaultProp:n??"",onChange:o,caller:Jt});return p.jsx(Ch,{scope:t.__scopeToggleGroup,type:"single",value:w.useMemo(()=>a?[a]:[],[a]),onItemActivate:s,onItemDeactivate:w.useCallback(()=>s(""),[s]),children:p.jsx(Nh,{...i,ref:e})})}),BT=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...i}=t,[a,s]=Qr({prop:r,defaultProp:n??[],onChange:o,caller:Jt}),u=w.useCallback(c=>s((h=[])=>[...h,c]),[s]),l=w.useCallback(c=>s((h=[])=>h.filter(f=>f!==c)),[s]);return p.jsx(Ch,{scope:t.__scopeToggleGroup,type:"multiple",value:a,onItemActivate:u,onItemDeactivate:l,children:p.jsx(Nh,{...i,ref:e})})});Zu.displayName=Jt;var[FT,HT]=Sh(Jt),Nh=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:i,dir:a,loop:s=!0,...u}=t,l=Eh(r),c=Vu(a),h={role:"group",dir:c,...u};return p.jsx(FT,{scope:r,rovingFocus:o,disabled:n,children:o?p.jsx(LT,{asChild:!0,...l,orientation:i,dir:c,loop:s,children:p.jsx(ve.div,{...h,ref:e})}):p.jsx(ve.div,{...h,ref:e})})}),ui="ToggleGroupItem",Ah=w.forwardRef((t,e)=>{const r=Th(ui,t.__scopeToggleGroup),n=HT(ui,t.__scopeToggleGroup),o=Eh(t.__scopeToggleGroup),i=r.value.includes(t.value),a=n.disabled||t.disabled,s={...t,pressed:i,disabled:a},u=w.useRef(null);return n.rovingFocus?p.jsx(MT,{asChild:!0,...o,focusable:!a,active:i,ref:u,children:p.jsx(md,{...s,ref:e})}):p.jsx(md,{...s,ref:e})});Ah.displayName=ui;var md=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...o}=t,i=Th(ui,r),a={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=i.type==="single"?a:void 0;return p.jsx(Ju,{...s,...o,ref:e,onPressedChange:u=>{u?i.onItemActivate(n):i.onItemDeactivate(n)}})}),Oh=Zu,jh=Ah;const Rh=$d("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"}}),qT=v.forwardRef(({className:t,variant:e,size:r,...n},o)=>p.jsx(wh,{ref:o,className:Ne(Rh({variant:e,size:r,className:t})),...n}));qT.displayName=wh.displayName;const Ph=v.createContext({size:"default",variant:"default"}),_h=v.forwardRef(({className:t,variant:e,size:r,children:n,...o},i)=>p.jsx(Oh,{ref:i,className:Ne("flex items-center justify-center gap-1",t),...o,children:p.jsx(Ph.Provider,{value:{variant:e,size:r},children:n})}));_h.displayName=Oh.displayName;const kh=v.forwardRef(({className:t,children:e,variant:r,size:n,...o},i)=>{const a=v.useContext(Ph);return p.jsx(jh,{ref:i,className:Ne(Rh({variant:a.variant||r,size:a.size||n}),t),...o,children:e})});kh.displayName=jh.displayName;var zT=t=>{switch(t){case"success":return WT;case"info":return YT;case"warning":return GT;case"error":return XT;default:return null}},UT=Array(12).fill(0),VT=({visible:t,className:e})=>w.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},w.createElement("div",{className:"sonner-spinner"},UT.map((r,n)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),WT=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"})),GT=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"})),YT=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"})),XT=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"})),KT=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"})),JT=()=>{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},ws=1,ZT=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:ws++,i=this.toasts.find(s=>s.id===o),a=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),i?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...t,id:o,title:r}),{...s,...t,id:o,dismissible:a,title:r}):s):this.addToast({title:r,...n,dismissible:a,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,i,a=n.then(async u=>{if(i=["resolve",u],w.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(eN(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(i=["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)=>a.then(()=>i[0]==="reject"?l(i[1]):u(i[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)||ws++;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}},Pe=new ZT,QT=(t,e)=>{let r=(e==null?void 0:e.id)||ws++;return Pe.addToast({title:t,...e,id:r}),r},eN=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",tN=QT,rN=()=>Pe.toasts,nN=()=>Pe.getActiveToasts(),oN=Object.assign(tN,{success:Pe.success,info:Pe.info,warning:Pe.warning,error:Pe.error,custom:Pe.custom,message:Pe.message,promise:Pe.promise,dismiss:Pe.dismiss,loading:Pe.loading},{getHistory:rN,getToasts:nN});function iN(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))}iN(`: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%)}
285
+ `);function wo(t){return t.label!==void 0}var aN=3,sN="32px",uN="16px",bd=4e3,lN=356,cN=14,dN=20,fN=200;function Xe(...t){return t.filter(Boolean).join(" ")}function pN(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var hN=t=>{var e,r,n,o,i,a,s,u,l,c,h;let{invert:f,toast:d,unstyled:m,interacting:g,setHeights:b,visibleToasts:y,heights:x,index:S,toasts:E,expanded:A,removeToast:R,defaultRichColors:_,closeButton:I,style:M,cancelButtonStyle:B,actionButtonStyle:C,className:T="",descriptionClassName:k="",duration:L,position:N,gap:O,loadingIcon:P,expandByDefault:D,classNames:$,icons:z,closeButtonAriaLabel:re="Close toast",pauseWhenPageIsHidden:Z}=t,[H,F]=w.useState(null),[he,J]=w.useState(null),[q,Re]=w.useState(!1),[Ee,xe]=w.useState(!1),[tt,yt]=w.useState(!1),[rt,eo]=w.useState(!1),[Xi,to]=w.useState(!1),[Ki,nn]=w.useState(0),[gr,Qu]=w.useState(0),on=w.useRef(d.duration||L||bd),el=w.useRef(null),Zt=w.useRef(null),Mh=S===0,$h=S+1<=y,Be=d.type,yr=d.dismissible!==!1,Bh=d.className||"",Fh=d.descriptionClassName||"",ro=w.useMemo(()=>x.findIndex(W=>W.toastId===d.id)||0,[x,d.id]),Hh=w.useMemo(()=>{var W;return(W=d.closeButton)!=null?W:I},[d.closeButton,I]),tl=w.useMemo(()=>d.duration||L||bd,[d.duration,L]),Ji=w.useRef(0),vr=w.useRef(0),rl=w.useRef(0),xr=w.useRef(null),[qh,zh]=N.split("-"),nl=w.useMemo(()=>x.reduce((W,ie,pe)=>pe>=ro?W:W+ie.height,0),[x,ro]),ol=JT(),Uh=d.invert||f,Zi=Be==="loading";vr.current=w.useMemo(()=>ro*O+nl,[ro,nl]),w.useEffect(()=>{on.current=tl},[tl]),w.useEffect(()=>{Re(!0)},[]),w.useEffect(()=>{let W=Zt.current;if(W){let ie=W.getBoundingClientRect().height;return Qu(ie),b(pe=>[{toastId:d.id,height:ie,position:d.position},...pe]),()=>b(pe=>pe.filter(We=>We.toastId!==d.id))}},[b,d.id]),w.useLayoutEffect(()=>{if(!q)return;let W=Zt.current,ie=W.style.height;W.style.height="auto";let pe=W.getBoundingClientRect().height;W.style.height=ie,Qu(pe),b(We=>We.find(Ge=>Ge.toastId===d.id)?We.map(Ge=>Ge.toastId===d.id?{...Ge,height:pe}:Ge):[{toastId:d.id,height:pe,position:d.position},...We])},[q,d.title,d.description,b,d.id]);let It=w.useCallback(()=>{xe(!0),nn(vr.current),b(W=>W.filter(ie=>ie.toastId!==d.id)),setTimeout(()=>{R(d)},fN)},[d,R,b,vr]);w.useEffect(()=>{if(d.promise&&Be==="loading"||d.duration===1/0||d.type==="loading")return;let W;return A||g||Z&&ol?(()=>{if(rl.current<Ji.current){let ie=new Date().getTime()-Ji.current;on.current=on.current-ie}rl.current=new Date().getTime()})():on.current!==1/0&&(Ji.current=new Date().getTime(),W=setTimeout(()=>{var ie;(ie=d.onAutoClose)==null||ie.call(d,d),It()},on.current)),()=>clearTimeout(W)},[A,g,d,Be,Z,ol,It]),w.useEffect(()=>{d.delete&&It()},[It,d.delete]);function Vh(){var W,ie,pe;return z!=null&&z.loading?w.createElement("div",{className:Xe($==null?void 0:$.loader,(W=d==null?void 0:d.classNames)==null?void 0:W.loader,"sonner-loader"),"data-visible":Be==="loading"},z.loading):P?w.createElement("div",{className:Xe($==null?void 0:$.loader,(ie=d==null?void 0:d.classNames)==null?void 0:ie.loader,"sonner-loader"),"data-visible":Be==="loading"},P):w.createElement(VT,{className:Xe($==null?void 0:$.loader,(pe=d==null?void 0:d.classNames)==null?void 0:pe.loader),visible:Be==="loading"})}return w.createElement("li",{tabIndex:0,ref:Zt,className:Xe(T,Bh,$==null?void 0:$.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,$==null?void 0:$.default,$==null?void 0:$[Be],(r=d==null?void 0:d.classNames)==null?void 0:r[Be]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:_,"data-styled":!(d.jsx||d.unstyled||m),"data-mounted":q,"data-promise":!!d.promise,"data-swiped":Xi,"data-removed":Ee,"data-visible":$h,"data-y-position":qh,"data-x-position":zh,"data-index":S,"data-front":Mh,"data-swiping":tt,"data-dismissible":yr,"data-type":Be,"data-invert":Uh,"data-swipe-out":rt,"data-swipe-direction":he,"data-expanded":!!(A||D&&q),style:{"--index":S,"--toasts-before":S,"--z-index":E.length-S,"--offset":`${Ee?Ki:vr.current}px`,"--initial-height":D?"auto":`${gr}px`,...M,...d.style},onDragEnd:()=>{yt(!1),F(null),xr.current=null},onPointerDown:W=>{Zi||!yr||(el.current=new Date,nn(vr.current),W.target.setPointerCapture(W.pointerId),W.target.tagName!=="BUTTON"&&(yt(!0),xr.current={x:W.clientX,y:W.clientY}))},onPointerUp:()=>{var W,ie,pe,We;if(rt||!yr)return;xr.current=null;let Ge=Number(((W=Zt.current)==null?void 0:W.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Dt=Number(((ie=Zt.current)==null?void 0:ie.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),Qt=new Date().getTime()-((pe=el.current)==null?void 0:pe.getTime()),Ye=H==="x"?Ge:Dt,Lt=Math.abs(Ye)/Qt;if(Math.abs(Ye)>=dN||Lt>.11){nn(vr.current),(We=d.onDismiss)==null||We.call(d,d),J(H==="x"?Ge>0?"right":"left":Dt>0?"down":"up"),It(),eo(!0),to(!1);return}yt(!1),F(null)},onPointerMove:W=>{var ie,pe,We,Ge;if(!xr.current||!yr||((ie=window.getSelection())==null?void 0:ie.toString().length)>0)return;let Dt=W.clientY-xr.current.y,Qt=W.clientX-xr.current.x,Ye=(pe=t.swipeDirections)!=null?pe:pN(N);!H&&(Math.abs(Qt)>1||Math.abs(Dt)>1)&&F(Math.abs(Qt)>Math.abs(Dt)?"x":"y");let Lt={x:0,y:0};H==="y"?(Ye.includes("top")||Ye.includes("bottom"))&&(Ye.includes("top")&&Dt<0||Ye.includes("bottom")&&Dt>0)&&(Lt.y=Dt):H==="x"&&(Ye.includes("left")||Ye.includes("right"))&&(Ye.includes("left")&&Qt<0||Ye.includes("right")&&Qt>0)&&(Lt.x=Qt),(Math.abs(Lt.x)>0||Math.abs(Lt.y)>0)&&to(!0),(We=Zt.current)==null||We.style.setProperty("--swipe-amount-x",`${Lt.x}px`),(Ge=Zt.current)==null||Ge.style.setProperty("--swipe-amount-y",`${Lt.y}px`)}},Hh&&!d.jsx?w.createElement("button",{"aria-label":re,"data-disabled":Zi,"data-close-button":!0,onClick:Zi||!yr?()=>{}:()=>{var W;It(),(W=d.onDismiss)==null||W.call(d,d)},className:Xe($==null?void 0:$.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(i=z==null?void 0:z.close)!=null?i:KT):null,d.jsx||w.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:w.createElement(w.Fragment,null,Be||d.icon||d.promise?w.createElement("div",{"data-icon":"",className:Xe($==null?void 0:$.icon,(a=d==null?void 0:d.classNames)==null?void 0:a.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||Vh():null,d.type!=="loading"?d.icon||(z==null?void 0:z[Be])||zT(Be):null):null,w.createElement("div",{"data-content":"",className:Xe($==null?void 0:$.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:Xe($==null?void 0:$.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:Xe(k,Fh,$==null?void 0:$.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&&wo(d.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||B,onClick:W=>{var ie,pe;wo(d.cancel)&&yr&&((pe=(ie=d.cancel).onClick)==null||pe.call(ie,W),It())},className:Xe($==null?void 0:$.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&&wo(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||C,onClick:W=>{var ie,pe;wo(d.action)&&((pe=(ie=d.action).onClick)==null||pe.call(ie,W),!W.defaultPrevented&&It())},className:Xe($==null?void 0:$.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function gd(){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 mN(t,e){let r={};return[t,e].forEach((n,o)=>{let i=o===1,a=i?"--mobile-offset":"--offset",s=i?uN:sN;function u(l){["top","right","bottom","left"].forEach(c=>{r[`${a}-${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[`${a}-${l}`]=s:r[`${a}-${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:i,closeButton:a,className:s,offset:u,mobileOffset:l,theme:c="light",richColors:h,duration:f,style:d,visibleToasts:m=aN,toastOptions:g,dir:b=gd(),gap:y=cN,loadingIcon:x,icons:S,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:A}=t,[R,_]=w.useState([]),I=w.useMemo(()=>Array.from(new Set([n].concat(R.filter(Z=>Z.position).map(Z=>Z.position)))),[R,n]),[M,B]=w.useState([]),[C,T]=w.useState(!1),[k,L]=w.useState(!1),[N,O]=w.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),P=w.useRef(null),D=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),$=w.useRef(null),z=w.useRef(!1),re=w.useCallback(Z=>{_(H=>{var F;return(F=H.find(he=>he.id===Z.id))!=null&&F.delete||Pe.dismiss(Z.id),H.filter(({id:he})=>he!==Z.id)})},[]);return w.useEffect(()=>Pe.subscribe(Z=>{if(Z.dismiss){_(H=>H.map(F=>F.id===Z.id?{...F,delete:!0}:F));return}setTimeout(()=>{Es.flushSync(()=>{_(H=>{let F=H.findIndex(he=>he.id===Z.id);return F!==-1?[...H.slice(0,F),{...H[F],...Z},...H.slice(F+1)]:[Z,...H]})})})}),[]),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:H})=>{O(H?"dark":"light")})}catch{Z.addListener(({matches:F})=>{try{O(F?"dark":"light")}catch(he){console.error(he)}})}},[c]),w.useEffect(()=>{R.length<=1&&T(!1)},[R]),w.useEffect(()=>{let Z=H=>{var F,he;o.every(J=>H[J]||H.code===J)&&(T(!0),(F=P.current)==null||F.focus()),H.code==="Escape"&&(document.activeElement===P.current||(he=P.current)!=null&&he.contains(document.activeElement))&&T(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[o]),w.useEffect(()=>{if(P.current)return()=>{$.current&&($.current.focus({preventScroll:!0}),$.current=null,z.current=!1)}},[P.current]),w.createElement("section",{ref:e,"aria-label":`${E} ${D}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},I.map((Z,H)=>{var F;let[he,J]=Z.split("-");return R.length?w.createElement("ol",{key:Z,dir:b==="auto"?gd():b,tabIndex:-1,ref:P,className:s,"data-sonner-toaster":!0,"data-theme":N,"data-y-position":he,"data-lifted":C&&R.length>1&&!i,"data-x-position":J,style:{"--front-toast-height":`${((F=M[0])==null?void 0:F.height)||0}px`,"--width":`${lN}px`,"--gap":`${y}px`,...d,...mN(u,l)},onBlur:q=>{z.current&&!q.currentTarget.contains(q.relatedTarget)&&(z.current=!1,$.current&&($.current.focus({preventScroll:!0}),$.current=null))},onFocus:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||z.current||(z.current=!0,$.current=q.relatedTarget)},onMouseEnter:()=>T(!0),onMouseMove:()=>T(!0),onMouseLeave:()=>{k||T(!1)},onDragEnd:()=>T(!1),onPointerDown:q=>{q.target instanceof HTMLElement&&q.target.dataset.dismissible==="false"||L(!0)},onPointerUp:()=>L(!1)},R.filter(q=>!q.position&&H===0||q.position===Z).map((q,Re)=>{var Ee,xe;return w.createElement(hN,{key:q.id,icons:S,index:Re,toast:q,defaultRichColors:h,duration:(Ee=g==null?void 0:g.duration)!=null?Ee:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:m,closeButton:(xe=g==null?void 0:g.closeButton)!=null?xe:a,interacting:k,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:re,toasts:R.filter(tt=>tt.position==q.position),heights:M.filter(tt=>tt.position==q.position),setHeights:B,expandByDefault:i,gap:y,loadingIcon:x,expanded:C,pauseWhenPageIsHidden:A,swipeDirections:t.swipeDirections})})):null}))});const Ss={mobile:{width:375,icon:ks,label:"Mobile (375px)"},tablet:{width:768,icon:Is,label:"Tablet (768px)"},small:{width:1024,icon:_s,label:"Small Desktop (1024px)"},desktop:{width:"100%",icon:Ds,label:"Desktop (Full)"}},bN=({handleSavePopup:t,setIsOpen:e,onSave:r,deviceSize:n,onDeviceSizeChange:o,setEditPopup:i,editPopup:a})=>{const{actions:s,query:u,canUndo:l,canRedo:c}=ht((f,d)=>({canUndo:d.history.canUndo(),canRedo:d.history.canRedo()})),h=()=>{const f=u.serialize();a?t==null||t(f):r==null||r(f),oN.success("Page saved successfully")};return p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(jn,{children:p.jsx(_h,{type:"single",value:n,onValueChange:f=>f&&o(f),className:"bg-muted rounded-md p-1",children:Object.entries(Ss).map(([f,{icon:d,label:m}])=>p.jsxs(Ir,{children:[p.jsx(Dr,{asChild:!0,children:p.jsx(kh,{value:f,size:"sm",className:"data-[state=on]:bg-background data-[state=on]:shadow-sm",children:p.jsx(d,{className:"h-4 w-4"})})}),p.jsx(sr,{side:"bottom",children:p.jsx("p",{children:m})})]},f))})}),p.jsx("div",{className:"h-6 w-px bg-border"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs(ot,{variant:"outline",size:"sm",onClick:()=>i(f=>!f),children:[a?"Edit page":"Edit popup"," ",p.jsx(Um,{className:"h-4 w-4"})]}),p.jsx(ot,{variant:"outline",size:"sm",onClick:()=>s.history.undo(),disabled:!l,children:p.jsx(Xm,{className:"h-4 w-4"})}),p.jsx(ot,{variant:"outline",size:"sm",onClick:()=>s.history.redo(),disabled:!c,children:p.jsx(Hm,{className:"h-4 w-4"})}),p.jsxs(ot,{size:"sm",onClick:()=>e(!0),children:["Preview Page ",p.jsx(Lm,{className:"ml-2 h-4 w-4"})]}),p.jsxs(ot,{size:"sm",onClick:h,children:[p.jsx(qm,{className:"h-4 w-4 mr-2"}),"Save"]})]})]})},Ih=({children:t,className:e})=>{let r,n,o=!1;try{const{connectors:i,events:a}=se(s=>({events:s.events}));r=i.connect,n=i.drag,o=a.selected}catch{}return p.jsx("div",{ref:i=>{i&&r&&n&&(r==null||r(n(i)))},className:ct("relative min-h-[100vh]",e||""),children:t})};Ih.craft={props:{},displayName:"Body",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Body")}};const yd=({htmlJson:t,editorState:e})=>{const{actions:r}=ht();return w.useEffect(()=>{t?r.deserialize(t):e?r.deserialize(e):r.deserialize({ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body"}})},[]),p.jsx(Zs,{})},gN=({htmlJson:t,enabled:e,popupEditorState:r})=>{const{actions:n}=ht();return w.useEffect(()=>{if(t)n.deserialize(t);else if(r)n.deserialize(r);else{const o={ROOT:{type:{resolvedName:"Body"},isCanvas:!0,props:{id:"mainBody",className:"bg-transparent"},displayName:"Body",nodes:["popupWrapperNode"],linkedNodes:{}},popupWrapperNode:{type:{resolvedName:"Wrapper"},isCanvas:!0,props:{...Rn,width:{desktop:{type:"custom",value:"100",unit:"%"}},height:{desktop:{type:"custom",value:"100",unit:"vh"}},backgroundColor:"rgba(0,0,0,0.25)",position:"absolute",top:0,left:0,display:"flex",justifyContent:"center",alignItems:"center",id:"popupWrapper",onClick:i=>{console.log("test"),i.target.id}},displayName:"Wrapper",nodes:["popupContainerNode"],parent:"ROOT",linkedNodes:{}},popupContainerNode:{type:{resolvedName:"Container"},isCanvas:!0,props:{...Rn,width:{desktop:{type:"custom",value:"90",unit:"%"}},height:{desktop:{type:"custom",value:"60",unit:"%"}},backgroundColor:"white",id:"popupContainer"},displayName:"Container",nodes:[],parent:"popupWrapperNode",linkedNodes:{}}};n.deserialize(o)}},[]),p.jsx(Zs,{})},li={Body:Ih,Div:Uu,Wrapper:rn,Section:Jp,Container:Hn,Text:Ru,ButtonComponent:uu,Heading:Pu,Image:_u,Img:Kp,Divider:ku,Spacer:Iu,Video:qu,Columns:Xp,Link:zu,Footer:Zp},yN=({handleSavePopup:t,popupEditorState:e,popupHtmlJson:r,handleStateChangePopup:n,editorState:o,setIsOpen:i,initialData:a,onSave:s,onStateChange:u,enabled:l=!0})=>{var E;const c=Bn(),[h,f]=w.useState("desktop"),[d,m]=w.useState(!1),g=w.useRef(d);g.current=d;const[b,y]=w.useState(((E=Ss[h])==null?void 0:E.width)||"100%");w.useEffect(()=>{var R;const A=((R=Ss[h])==null?void 0:R.width)||"100%";y(A)},[h]),w.useEffect(()=>{if(!l&&window.self===window.top){const A=()=>{const R=window.innerWidth;R<640?f("mobile"):R<1024?f("tablet"):R<1280?f("small"):f("desktop")};return window.addEventListener("resize",A),()=>window.removeEventListener("resize",A)}},[l]),w.useEffect(()=>{if(window.parent&&window.self!==window.top){const A=R=>{if(R.data.type==="PARENT_WIDTH"){const _=R.data.width;_<640?f("mobile"):_<1024?f("tablet"):_<1280?f("small"):f("desktop")}};return window.addEventListener("message",A),()=>{window.removeEventListener("message",A)}}},[]);const x=A=>{if(u)try{const R=A.serialize();u(R)}catch(R){console.log(R)}},S=A=>{if(n)try{const R=A.serialize();n(R)}catch(R){console.log(R)}};return l?p.jsx(Va,{resolver:li,enabled:l,onNodesChange:A=>{g.current?S(A):x(A)},children:p.jsx(zo,{value:h,children:p.jsx(wn,{value:c,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:d?"Popup Builder":"Page Builder"}),p.jsx(bN,{setIsOpen:i,onSave:s,handleSavePopup:t,deviceSize:h,onDeviceSizeChange:f,editPopup:d,setEditPopup:m})]}),p.jsxs("div",{className:"flex gap-4 mt-4 flex-1 min-h-0",children:[p.jsx(bn,{className:"w-52",children:p.jsxs(gn,{className:"p-4 space-y-6",children:[p.jsx(tT,{}),p.jsx(vT,{})]})}),p.jsx(bn,{className:"flex-1 overflow-hidden bg-muted/30 flex flex-col",children:p.jsx(gn,{className:"p-4 flex-1 flex justify-center overflow-hidden",children:p.jsx(Ku,{className:"h-full w-full",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg min-h-full border border-dashed transition-all duration-300 ",style:{width:typeof b=="number"?`${b}px`:b,maxWidth:"100%"},children:d?p.jsx(gN,{popupEditorState:e,enabled:l,htmlJson:r}):p.jsx(yd,{editorState:o,htmlJson:a})})})})})}),p.jsx(bn,{className:"w-64 flex flex-col",children:p.jsx(gn,{className:"p-4 flex-1 overflow-hidden",children:p.jsx(gT,{})})})]})]})})})}):p.jsx(zo,{value:h,children:p.jsx(wn,{value:c,children:p.jsx(Va,{resolver:li,enabled:l,children:p.jsx(yd,{htmlJson:a})})})})},Sa={mobile:{width:375,label:"Mobile",icon:ks},tablet:{width:768,label:"Tablet",icon:Is},small:{width:1024,label:"Small",icon:_s},desktop:{width:1440,label:"Desktop",icon:Ds}},vN=({editorState:t,deviceSize:e})=>p.jsx(Va,{resolver:li,enabled:!1,children:p.jsx(zo,{value:e,children:p.jsx(xN,{editorState:t})})}),xN=({editorState:t})=>{const{actions:e}=ht();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(Zs,{})},Dh=({isOpen:t,onClose:e,eventData:r,editorState:n,popupEditorState:o})=>{var u,l;const[i,a]=w.useState("desktop");if(w.useEffect(()=>{const c=h=>{h.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",c),()=>document.removeEventListener("keydown",c)},[t,e]),!t)return null;const s=((u=Sa[i])==null?void 0:u.width)||1440;return p.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col bg-white",children:[p.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border bg-card",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("h2",{className:"text-lg font-semibold",children:"Preview"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["(",(l=Sa[i])==null?void 0:l.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Sa).map(([c,{label:h,icon:f}])=>p.jsxs(ot,{variant:"ghost",size:"sm",onClick:()=>a(c),className:ub("h-8 px-3 gap-2",i===c&&"bg-background shadow-sm"),children:[p.jsx(f,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:h})]},c))}),p.jsx(ot,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(Jm,{className:"h-5 w-5"})})]}),p.jsx("div",{className:"flex-1 overflow-auto bg-muted/50 p-6",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg shadow-xl transition-all duration-300 overflow-hidden p-4",style:{width:`${s}px`,maxWidth:"100%"},children:p.jsx(wn,{value:r,children:n?p.jsx(vN,{editorState:n,deviceSize:i}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},wN=({handleSavePopup:t,popupEditorState:e,popupHtmlJson:r,handleStateChangePopup:n,editorState:o,initialData:i,onSave:a,onStateChange:s,eventData:u,enabled:l=!0})=>{const[c,h]=w.useState(!1);return p.jsx(wn,{value:u,children:p.jsxs(w.Suspense,{fallback:p.jsx(bn,{children:p.jsx(gn,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(no,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(no,{className:"h-[500px] w-48"}),p.jsx(no,{className:"h-[500px] flex-1"}),p.jsx(no,{className:"h-[500px] w-64"})]})]})})}),children:[p.jsx(yN,{popupHtmlJson:r,popupEditorState:e,handleStateChangePopup:n,editorState:o,enabled:l,setIsOpen:h,initialData:i,onSave:a,handleSavePopup:t,onStateChange:s}),l?p.jsx(Dh,{popupEditorState:e,eventData:u,editorState:o,isOpen:c,onClose:()=>h(!1)}):null]})})},Lh=w.createContext({fetchVideoByLocation:null}),SN=({children:t,fetchVideoByLocation:e})=>p.jsx(Lh.Provider,{value:{fetchVideoByLocation:e},children:t}),EN=()=>w.useContext(Lh);exports.ApiConfigProvider=SN;exports.DEVICE_ORDER=qe;exports.DeviceSizeProvider=zo;exports.EventDataProvider=wn;exports.PageBuilder=wN;exports.PreviewModal=Dh;exports.TEMPLATE_VARIABLES=x4;exports.getPlaceholderPaths=v4;exports.getResponsiveValue=Tt;exports.hasTemplatePlaceholders=y4;exports.processTemplate=Ko;exports.resolver=li;exports.useApiConfig=EN;exports.useDeviceSize=Ae;exports.useEventData=Bn;