@tech_carthagos/page-builder 1.0.28 → 1.0.30
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 +275 -1
- package/dist/index.es.js +18389 -15
- package/dist/style.css +3 -1
- package/dist/styles.css +106 -1
- package/dist-types/CraftEditor.d.ts +23 -1
- package/dist-types/CraftEditor.d.ts.map +1 -1
- package/dist-types/PageBuilder.d.ts +2 -1
- package/dist-types/PageBuilder.d.ts.map +1 -1
- package/dist-types/PreviewModal.d.ts.map +1 -1
- package/dist-types/editor/SettingsUI.d.ts +9 -6
- package/dist-types/editor/SettingsUI.d.ts.map +1 -1
- package/dist-types/editor/Toolbox.d.ts.map +1 -1
- package/dist-types/editor/Topbar.d.ts +2 -1
- package/dist-types/editor/Topbar.d.ts.map +1 -1
- package/dist-types/examples/App.d.ts.map +1 -1
- package/dist-types/index.d.ts +4 -3
- package/dist-types/index.d.ts.map +1 -1
- package/dist-types/user/Button.d.ts.map +1 -1
- package/dist-types/user/Columns.d.ts.map +1 -1
- package/dist-types/user/ContainerOld.d.ts.map +1 -1
- package/dist-types/user/Divider.d.ts.map +1 -1
- package/dist-types/user/Footer.d.ts +2 -3
- package/dist-types/user/Footer.d.ts.map +1 -1
- package/dist-types/user/Image.d.ts.map +1 -1
- package/dist-types/user/Img.d.ts.map +1 -1
- package/dist-types/user/Link.d.ts.map +1 -1
- package/dist-types/user/Spacer.d.ts.map +1 -1
- package/dist-types/user/Video.d.ts.map +1 -1
- package/dist-types/user/index.d.ts +2 -0
- package/package.json +2 -4
- package/dist/CraftEditor-DSeEURkG.js +0 -1930
- package/dist/CraftEditor-Do2rCE7b.cjs +0 -72
- package/dist/index-CDGYhfT7.js +0 -16346
- package/dist/index-Co66TNSy.cjs +0 -189
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1,275 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-Co66TNSy.cjs");exports.ApiConfigProvider=e.ApiConfigProvider;exports.DEVICE_ORDER=e.DEVICE_ORDER;exports.DeviceSizeProvider=e.DeviceSizeProvider;exports.EventDataProvider=e.EventDataProvider;exports.PageBuilder=e.PageBuilder;exports.PreviewModal=e.PreviewModal;exports.TEMPLATE_VARIABLES=e.TEMPLATE_VARIABLES;exports.getPlaceholderPaths=e.getPlaceholderPaths;exports.getResponsiveValue=e.getResponsiveValue;exports.hasTemplatePlaceholders=e.hasTemplatePlaceholders;exports.processTemplate=e.processTemplate;exports.useApiConfig=e.useApiConfig;exports.useDeviceSize=e.useDeviceSize;exports.useEventData=e.useEventData;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),w=require("react"),Di=require("react-dom"),vp=require("@tanstack/react-query");function cc(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=cc(w),dc=cc(Di);function fc(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=fc(t[e]))&&(n&&(n+=" "),n+=r)}else for(r in t)t[r]&&(n&&(n+=" "),n+=r);return n}function Qe(){for(var t,e,r=0,n="",o=arguments.length;r<o;r++)(t=arguments[r])&&(e=fc(t))&&(n&&(n+=" "),n+=e);return n}const Mi="-",yp=t=>{const e=wp(t),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=t;return{getClassGroupId:i=>{const s=i.split(Mi);return s[0]===""&&s.length!==1&&s.shift(),pc(s,e)||xp(i)},getConflictingClassGroupIds:(i,s)=>{const u=r[i]||[];return s&&n[i]?[...u,...n[i]]:u}}},pc=(t,e)=>{var i;if(t.length===0)return e.classGroupId;const r=t[0],n=e.nextPart.get(r),o=n?pc(t.slice(1),n):void 0;if(o)return o;if(e.validators.length===0)return;const a=t.join(Mi);return(i=e.validators.find(({validator:s})=>s(a)))==null?void 0:i.classGroupId},hu=/^\[(.+)\]$/,xp=t=>{if(hu.test(t)){const e=hu.exec(t)[1],r=e==null?void 0:e.substring(0,e.indexOf(":"));if(r)return"arbitrary.."+r}},wp=t=>{const{theme:e,prefix:r}=t,n={nextPart:new Map,validators:[]};return Cp(Object.entries(t.classGroups),r).forEach(([a,i])=>{za(i,n,a,e)}),n},za=(t,e,r,n)=>{t.forEach(o=>{if(typeof o=="string"){const a=o===""?e:mu(e,o);a.classGroupId=r;return}if(typeof o=="function"){if(Sp(o)){za(o(n),e,r,n);return}e.validators.push({validator:o,classGroupId:r});return}Object.entries(o).forEach(([a,i])=>{za(i,mu(e,a),r,n)})})},mu=(t,e)=>{let r=t;return e.split(Mi).forEach(n=>{r.nextPart.has(n)||r.nextPart.set(n,{nextPart:new Map,validators:[]}),r=r.nextPart.get(n)}),r},Sp=t=>t.isThemeGetter,Cp=(t,e)=>e?t.map(([r,n])=>{const o=n.map(a=>typeof a=="string"?e+a:typeof a=="object"?Object.fromEntries(Object.entries(a).map(([i,s])=>[e+i,s])):a);return[r,o]}):t,Ep=t=>{if(t<1)return{get:()=>{},set:()=>{}};let e=0,r=new Map,n=new Map;const o=(a,i)=>{r.set(a,i),e++,e>t&&(e=0,n=r,r=new Map)};return{get(a){let i=r.get(a);if(i!==void 0)return i;if((i=n.get(a))!==void 0)return o(a,i),i},set(a,i){r.has(a)?r.set(a,i):o(a,i)}}},hc="!",Tp=t=>{const{separator:e,experimentalParseClassName:r}=t,n=e.length===1,o=e[0],a=e.length,i=s=>{const u=[];let l=0,c=0,h;for(let m=0;m<s.length;m++){let y=s[m];if(l===0){if(y===o&&(n||s.slice(m,m+a)===e)){u.push(s.slice(c,m)),c=m+a;continue}if(y==="/"){h=m;continue}}y==="["?l++:y==="]"&&l--}const f=u.length===0?s:s.substring(c),d=f.startsWith(hc),b=d?f.substring(1):f,g=h&&h>c?h-c:void 0;return{modifiers:u,hasImportantModifier:d,baseClassName:b,maybePostfixModifierPosition:g}};return r?s=>r({className:s,parseClassName:i}):i},Np=t=>{if(t.length<=1)return t;const e=[];let r=[];return t.forEach(n=>{n[0]==="["?(e.push(...r.sort(),n),r=[]):r.push(n)}),e.push(...r.sort()),e},jp=t=>({cache:Ep(t.cacheSize),parseClassName:Tp(t),...yp(t)}),Ap=/\s+/,Op=(t,e)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=e,a=[],i=t.trim().split(Ap);let s="";for(let u=i.length-1;u>=0;u-=1){const l=i[u],{modifiers:c,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:d}=r(l);let b=!!d,g=n(b?f.substring(0,d):f);if(!g){if(!b){s=l+(s.length>0?" "+s:s);continue}if(g=n(f),!g){s=l+(s.length>0?" "+s:s);continue}b=!1}const m=Np(c).join(":"),y=h?m+hc:m,x=y+g;if(a.includes(x))continue;a.push(x);const S=o(g,b);for(let E=0;E<S.length;++E){const j=S[E];a.push(y+j)}s=l+(s.length>0?" "+s:s)}return s};function Pp(){let t=0,e,r,n="";for(;t<arguments.length;)(e=arguments[t++])&&(r=mc(e))&&(n&&(n+=" "),n+=r);return n}const mc=t=>{if(typeof t=="string")return t;let e,r="";for(let n=0;n<t.length;n++)t[n]&&(e=mc(t[n]))&&(r&&(r+=" "),r+=e);return r};function kp(t,...e){let r,n,o,a=i;function i(u){const l=e.reduce((c,h)=>h(c),t());return r=jp(l),n=r.cache.get,o=r.cache.set,a=s,s(u)}function s(u){const l=n(u);if(l)return l;const c=Op(u,r);return o(u,c),c}return function(){return a(Pp.apply(null,arguments))}}const ae=t=>{const e=r=>r[t]||[];return e.isThemeGetter=!0,e},bc=/^\[(?:([a-z-]+):)?(.+)\]$/i,_p=/^\d+\/\d+$/,Rp=new Set(["px","full","screen"]),Ip=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Dp=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Mp=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Lp=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,$p=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,st=t=>mr(t)||Rp.has(t)||_p.test(t),jt=t=>kr(t,"length",Wp),mr=t=>!!t&&!Number.isNaN(Number(t)),wa=t=>kr(t,"number",mr),Wr=t=>!!t&&Number.isInteger(Number(t)),Bp=t=>t.endsWith("%")&&mr(t.slice(0,-1)),W=t=>bc.test(t),At=t=>Ip.test(t),Hp=new Set(["length","size","percentage"]),zp=t=>kr(t,Hp,gc),Fp=t=>kr(t,"position",gc),qp=new Set(["image","url"]),Up=t=>kr(t,qp,Yp),Vp=t=>kr(t,"",Gp),Gr=()=>!0,kr=(t,e,r)=>{const n=bc.exec(t);return n?n[1]?typeof e=="string"?n[1]===e:e.has(n[1]):r(n[2]):!1},Wp=t=>Dp.test(t)&&!Mp.test(t),gc=()=>!1,Gp=t=>Lp.test(t),Yp=t=>$p.test(t),Xp=()=>{const t=ae("colors"),e=ae("spacing"),r=ae("blur"),n=ae("brightness"),o=ae("borderColor"),a=ae("borderRadius"),i=ae("borderSpacing"),s=ae("borderWidth"),u=ae("contrast"),l=ae("grayscale"),c=ae("hueRotate"),h=ae("invert"),f=ae("gap"),d=ae("gradientColorStops"),b=ae("gradientColorStopPositions"),g=ae("inset"),m=ae("margin"),y=ae("opacity"),x=ae("padding"),S=ae("saturate"),E=ae("scale"),j=ae("sepia"),P=ae("skew"),_=ae("space"),D=ae("translate"),L=()=>["auto","contain","none"],$=()=>["auto","hidden","clip","visible","scroll"],C=()=>["auto",W,e],N=()=>[W,e],k=()=>["",st,jt],I=()=>["auto",mr,W],T=()=>["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top"],O=()=>["solid","dashed","dotted","double","none"],A=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],R=()=>["start","end","center","between","around","evenly","stretch"],M=()=>["","0",W],q=()=>["auto","avoid","all","avoid-page","page","left","right","column"],de=()=>[mr,W];return{cacheSize:500,separator:":",theme:{colors:[Gr],spacing:[st,jt],blur:["none","",At,W],brightness:de(),borderColor:[t],borderRadius:["none","","full",At,W],borderSpacing:N(),borderWidth:k(),contrast:de(),grayscale:M(),hueRotate:de(),invert:M(),gap:N(),gradientColorStops:[t],gradientColorStopPositions:[Bp,jt],inset:C(),margin:C(),opacity:de(),padding:N(),saturate:de(),scale:de(),sepia:M(),skew:de(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",W]}],container:["container"],columns:[{columns:[At]}],"break-after":[{"break-after":q()}],"break-before":[{"break-before":q()}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:[...T(),W]}],overflow:[{overflow:$()}],"overflow-x":[{"overflow-x":$()}],"overflow-y":[{"overflow-y":$()}],overscroll:[{overscroll:L()}],"overscroll-x":[{"overscroll-x":L()}],"overscroll-y":[{"overscroll-y":L()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[g]}],"inset-x":[{"inset-x":[g]}],"inset-y":[{"inset-y":[g]}],start:[{start:[g]}],end:[{end:[g]}],top:[{top:[g]}],right:[{right:[g]}],bottom:[{bottom:[g]}],left:[{left:[g]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Wr,W]}],basis:[{basis:C()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",W]}],grow:[{grow:M()}],shrink:[{shrink:M()}],order:[{order:["first","last","none",Wr,W]}],"grid-cols":[{"grid-cols":[Gr]}],"col-start-end":[{col:["auto",{span:["full",Wr,W]},W]}],"col-start":[{"col-start":I()}],"col-end":[{"col-end":I()}],"grid-rows":[{"grid-rows":[Gr]}],"row-start-end":[{row:["auto",{span:[Wr,W]},W]}],"row-start":[{"row-start":I()}],"row-end":[{"row-end":I()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",W]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",W]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal",...R()]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal",...R(),"baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":[...R(),"baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[x]}],px:[{px:[x]}],py:[{py:[x]}],ps:[{ps:[x]}],pe:[{pe:[x]}],pt:[{pt:[x]}],pr:[{pr:[x]}],pb:[{pb:[x]}],pl:[{pl:[x]}],m:[{m:[m]}],mx:[{mx:[m]}],my:[{my:[m]}],ms:[{ms:[m]}],me:[{me:[m]}],mt:[{mt:[m]}],mr:[{mr:[m]}],mb:[{mb:[m]}],ml:[{ml:[m]}],"space-x":[{"space-x":[_]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[_]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",W,e]}],"min-w":[{"min-w":[W,e,"min","max","fit"]}],"max-w":[{"max-w":[W,e,"none","full","min","max","fit","prose",{screen:[At]},At]}],h:[{h:[W,e,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[W,e,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[W,e,"auto","min","max","fit"]}],"font-size":[{text:["base",At,jt]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",wa]}],"font-family":[{font:[Gr]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",W]}],"line-clamp":[{"line-clamp":["none",mr,wa]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",st,W]}],"list-image":[{"list-image":["none",W]}],"list-style-type":[{list:["none","disc","decimal",W]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[t]}],"placeholder-opacity":[{"placeholder-opacity":[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",st,jt]}],"underline-offset":[{"underline-offset":["auto",st,W]}],"text-decoration-color":[{decoration:[t]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:N()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",W]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",W]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[y]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:[...T(),Fp]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",zp]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Up]}],"bg-color":[{bg:[t]}],"gradient-from-pos":[{from:[b]}],"gradient-via-pos":[{via:[b]}],"gradient-to-pos":[{to:[b]}],"gradient-from":[{from:[d]}],"gradient-via":[{via:[d]}],"gradient-to":[{to:[d]}],rounded:[{rounded:[a]}],"rounded-s":[{"rounded-s":[a]}],"rounded-e":[{"rounded-e":[a]}],"rounded-t":[{"rounded-t":[a]}],"rounded-r":[{"rounded-r":[a]}],"rounded-b":[{"rounded-b":[a]}],"rounded-l":[{"rounded-l":[a]}],"rounded-ss":[{"rounded-ss":[a]}],"rounded-se":[{"rounded-se":[a]}],"rounded-ee":[{"rounded-ee":[a]}],"rounded-es":[{"rounded-es":[a]}],"rounded-tl":[{"rounded-tl":[a]}],"rounded-tr":[{"rounded-tr":[a]}],"rounded-br":[{"rounded-br":[a]}],"rounded-bl":[{"rounded-bl":[a]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[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":[st,W]}],"outline-w":[{outline:[st,jt]}],"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":[st,jt]}],"ring-offset-color":[{"ring-offset":[t]}],shadow:[{shadow:["","inner","none",At,Vp]}],"shadow-color":[{shadow:[Gr]}],opacity:[{opacity:[y]}],"mix-blend":[{"mix-blend":[...A(),"plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":A()}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[u]}],"drop-shadow":[{"drop-shadow":["","none",At,W]}],grayscale:[{grayscale:[l]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[h]}],saturate:[{saturate:[S]}],sepia:[{sepia:[j]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[u]}],"backdrop-grayscale":[{"backdrop-grayscale":[l]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[h]}],"backdrop-opacity":[{"backdrop-opacity":[y]}],"backdrop-saturate":[{"backdrop-saturate":[S]}],"backdrop-sepia":[{"backdrop-sepia":[j]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[i]}],"border-spacing-x":[{"border-spacing-x":[i]}],"border-spacing-y":[{"border-spacing-y":[i]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",W]}],duration:[{duration:de()}],ease:[{ease:["linear","in","out","in-out",W]}],delay:[{delay:de()}],animate:[{animate:["none","spin","ping","pulse","bounce",W]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[E]}],"scale-x":[{"scale-x":[E]}],"scale-y":[{"scale-y":[E]}],rotate:[{rotate:[Wr,W]}],"translate-x":[{"translate-x":[D]}],"translate-y":[{"translate-y":[D]}],"skew-x":[{"skew-x":[P]}],"skew-y":[{"skew-y":[P]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",W]}],accent:[{accent:["auto",t]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",W]}],"caret-color":[{caret:[t]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":N()}],"scroll-mx":[{"scroll-mx":N()}],"scroll-my":[{"scroll-my":N()}],"scroll-ms":[{"scroll-ms":N()}],"scroll-me":[{"scroll-me":N()}],"scroll-mt":[{"scroll-mt":N()}],"scroll-mr":[{"scroll-mr":N()}],"scroll-mb":[{"scroll-mb":N()}],"scroll-ml":[{"scroll-ml":N()}],"scroll-p":[{"scroll-p":N()}],"scroll-px":[{"scroll-px":N()}],"scroll-py":[{"scroll-py":N()}],"scroll-ps":[{"scroll-ps":N()}],"scroll-pe":[{"scroll-pe":N()}],"scroll-pt":[{"scroll-pt":N()}],"scroll-pr":[{"scroll-pr":N()}],"scroll-pb":[{"scroll-pb":N()}],"scroll-pl":[{"scroll-pl":N()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",W]}],fill:[{fill:[t,"none"]}],"stroke-w":[{stroke:[st,jt,wa]}],stroke:[{stroke:[t,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}},vc=kp(Xp);function Se(...t){return vc(Qe(t))}const en=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("rounded-lg border bg-card text-card-foreground shadow-sm",t),...e}));en.displayName="Card";const Kp=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex flex-col space-y-1.5 p-6",t),...e}));Kp.displayName="CardHeader";const Jp=v.forwardRef(({className:t,...e},r)=>p.jsx("h3",{ref:r,className:Se("text-2xl font-semibold leading-none tracking-tight",t),...e}));Jp.displayName="CardTitle";const Zp=v.forwardRef(({className:t,...e},r)=>p.jsx("p",{ref:r,className:Se("text-sm text-muted-foreground",t),...e}));Zp.displayName="CardDescription";const tn=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("p-6 pt-0",t),...e}));tn.displayName="CardContent";const Qp=v.forwardRef(({className:t,...e},r)=>p.jsx("div",{ref:r,className:Se("flex items-center p-6 pt-0",t),...e}));Qp.displayName="CardFooter";function Dn({className:t,...e}){return p.jsx("div",{className:Se("animate-pulse rounded-md bg-muted",t),...e})}const yc=w.createContext(null),Do=({children:t,value:e})=>p.jsx(yc.Provider,{value:e,children:t}),Sn=()=>w.useContext(yc);/**
|
|
2
|
+
* @license lucide-react v0.462.0 - ISC
|
|
3
|
+
*
|
|
4
|
+
* This source code is licensed under the ISC license.
|
|
5
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
6
|
+
*/const eh=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),xc=(...t)=>t.filter((e,r,n)=>!!e&&e.trim()!==""&&n.indexOf(e)===r).join(" ").trim();/**
|
|
7
|
+
* @license lucide-react v0.462.0 - ISC
|
|
8
|
+
*
|
|
9
|
+
* This source code is licensed under the ISC license.
|
|
10
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
11
|
+
*/var th={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
|
|
12
|
+
* @license lucide-react v0.462.0 - ISC
|
|
13
|
+
*
|
|
14
|
+
* This source code is licensed under the ISC license.
|
|
15
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
+
*/const rh=w.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:a,iconNode:i,...s},u)=>w.createElement("svg",{ref:u,...th,width:e,height:e,stroke:t,strokeWidth:n?Number(r)*24/Number(e):r,className:xc("lucide",o),...s},[...i.map(([l,c])=>w.createElement(l,c)),...Array.isArray(a)?a:[a]]));/**
|
|
17
|
+
* @license lucide-react v0.462.0 - ISC
|
|
18
|
+
*
|
|
19
|
+
* This source code is licensed under the ISC license.
|
|
20
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
21
|
+
*/const Y=(t,e)=>{const r=w.forwardRef(({className:n,...o},a)=>w.createElement(rh,{ref:a,iconNode:e,className:xc(`lucide-${eh(t)}`,n),...o}));return r.displayName=`${t}`,r};/**
|
|
22
|
+
* @license lucide-react v0.462.0 - ISC
|
|
23
|
+
*
|
|
24
|
+
* This source code is licensed under the ISC license.
|
|
25
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
26
|
+
*/const Li=Y("AlignCenter",[["path",{d:"M17 12H7",key:"16if0g"}],["path",{d:"M19 18H5",key:"18s9l3"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
|
|
27
|
+
* @license lucide-react v0.462.0 - ISC
|
|
28
|
+
*
|
|
29
|
+
* This source code is licensed under the ISC license.
|
|
30
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
31
|
+
*/const $i=Y("AlignLeft",[["path",{d:"M15 12H3",key:"6jk70r"}],["path",{d:"M17 18H3",key:"1amg6g"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
|
|
32
|
+
* @license lucide-react v0.462.0 - ISC
|
|
33
|
+
*
|
|
34
|
+
* This source code is licensed under the ISC license.
|
|
35
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
36
|
+
*/const Bi=Y("AlignRight",[["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M21 18H7",key:"1ygte8"}],["path",{d:"M21 6H3",key:"1jwq7v"}]]);/**
|
|
37
|
+
* @license lucide-react v0.462.0 - ISC
|
|
38
|
+
*
|
|
39
|
+
* This source code is licensed under the ISC license.
|
|
40
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
41
|
+
*/const nh=Y("Bold",[["path",{d:"M6 12h9a4 4 0 0 1 0 8H7a1 1 0 0 1-1-1V5a1 1 0 0 1 1-1h7a4 4 0 0 1 0 8",key:"mg9rjx"}]]);/**
|
|
42
|
+
* @license lucide-react v0.462.0 - ISC
|
|
43
|
+
*
|
|
44
|
+
* This source code is licensed under the ISC license.
|
|
45
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
46
|
+
*/const Hi=Y("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
|
|
47
|
+
* @license lucide-react v0.462.0 - ISC
|
|
48
|
+
*
|
|
49
|
+
* This source code is licensed under the ISC license.
|
|
50
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
51
|
+
*/const zi=Y("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);/**
|
|
52
|
+
* @license lucide-react v0.462.0 - ISC
|
|
53
|
+
*
|
|
54
|
+
* This source code is licensed under the ISC license.
|
|
55
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
56
|
+
*/const Fi=Y("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
|
|
57
|
+
* @license lucide-react v0.462.0 - ISC
|
|
58
|
+
*
|
|
59
|
+
* This source code is licensed under the ISC license.
|
|
60
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
61
|
+
*/const oh=Y("CircleAlert",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]]);/**
|
|
62
|
+
* @license lucide-react v0.462.0 - ISC
|
|
63
|
+
*
|
|
64
|
+
* This source code is licensed under the ISC license.
|
|
65
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
66
|
+
*/const ah=Y("Columns2",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M12 3v18",key:"108xh3"}]]);/**
|
|
67
|
+
* @license lucide-react v0.462.0 - ISC
|
|
68
|
+
*
|
|
69
|
+
* This source code is licensed under the ISC license.
|
|
70
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
71
|
+
*/const ih=Y("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
|
|
72
|
+
* @license lucide-react v0.462.0 - ISC
|
|
73
|
+
*
|
|
74
|
+
* This source code is licensed under the ISC license.
|
|
75
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
76
|
+
*/const sh=Y("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
|
|
77
|
+
* @license lucide-react v0.462.0 - ISC
|
|
78
|
+
*
|
|
79
|
+
* This source code is licensed under the ISC license.
|
|
80
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
81
|
+
*/const uh=Y("Eye",[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
|
|
82
|
+
* @license lucide-react v0.462.0 - ISC
|
|
83
|
+
*
|
|
84
|
+
* This source code is licensed under the ISC license.
|
|
85
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
86
|
+
*/const wc=Y("Film",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M7 3v18",key:"bbkbws"}],["path",{d:"M3 7.5h4",key:"zfgn84"}],["path",{d:"M3 12h18",key:"1i2n21"}],["path",{d:"M3 16.5h4",key:"1230mu"}],["path",{d:"M17 3v18",key:"in4fa5"}],["path",{d:"M17 7.5h4",key:"myr1c1"}],["path",{d:"M17 16.5h4",key:"go4c1d"}]]);/**
|
|
87
|
+
* @license lucide-react v0.462.0 - ISC
|
|
88
|
+
*
|
|
89
|
+
* This source code is licensed under the ISC license.
|
|
90
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
91
|
+
*/const lh=Y("GripVertical",[["circle",{cx:"9",cy:"12",r:"1",key:"1vctgf"}],["circle",{cx:"9",cy:"5",r:"1",key:"hp0tcf"}],["circle",{cx:"9",cy:"19",r:"1",key:"fkjjf6"}],["circle",{cx:"15",cy:"12",r:"1",key:"1tmaij"}],["circle",{cx:"15",cy:"5",r:"1",key:"19l28e"}],["circle",{cx:"15",cy:"19",r:"1",key:"f4zoj3"}]]);/**
|
|
92
|
+
* @license lucide-react v0.462.0 - ISC
|
|
93
|
+
*
|
|
94
|
+
* This source code is licensed under the ISC license.
|
|
95
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
96
|
+
*/const Sc=Y("Heading",[["path",{d:"M6 12h12",key:"8npq4p"}],["path",{d:"M6 20V4",key:"1w1bmo"}],["path",{d:"M18 20V4",key:"o2hl4u"}]]);/**
|
|
97
|
+
* @license lucide-react v0.462.0 - ISC
|
|
98
|
+
*
|
|
99
|
+
* This source code is licensed under the ISC license.
|
|
100
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
101
|
+
*/const Cc=Y("Image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]);/**
|
|
102
|
+
* @license lucide-react v0.462.0 - ISC
|
|
103
|
+
*
|
|
104
|
+
* This source code is licensed under the ISC license.
|
|
105
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
106
|
+
*/const ch=Y("Italic",[["line",{x1:"19",x2:"10",y1:"4",y2:"4",key:"15jd3p"}],["line",{x1:"14",x2:"5",y1:"20",y2:"20",key:"bu0au3"}],["line",{x1:"15",x2:"9",y1:"4",y2:"20",key:"uljnxc"}]]);/**
|
|
107
|
+
* @license lucide-react v0.462.0 - ISC
|
|
108
|
+
*
|
|
109
|
+
* This source code is licensed under the ISC license.
|
|
110
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
111
|
+
*/const qi=Y("Link",[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]]);/**
|
|
112
|
+
* @license lucide-react v0.462.0 - ISC
|
|
113
|
+
*
|
|
114
|
+
* This source code is licensed under the ISC license.
|
|
115
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
116
|
+
*/const dh=Y("ListOrdered",[["path",{d:"M10 12h11",key:"6m4ad9"}],["path",{d:"M10 18h11",key:"11hvi2"}],["path",{d:"M10 6h11",key:"c7qv1k"}],["path",{d:"M4 10h2",key:"16xx2s"}],["path",{d:"M4 6h1v4",key:"cnovpq"}],["path",{d:"M6 18H4c0-1 2-2 2-3s-1-1.5-2-1",key:"m9a95d"}]]);/**
|
|
117
|
+
* @license lucide-react v0.462.0 - ISC
|
|
118
|
+
*
|
|
119
|
+
* This source code is licensed under the ISC license.
|
|
120
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
121
|
+
*/const fh=Y("List",[["path",{d:"M3 12h.01",key:"nlz23k"}],["path",{d:"M3 18h.01",key:"1tta3j"}],["path",{d:"M3 6h.01",key:"1rqtza"}],["path",{d:"M8 12h13",key:"1za7za"}],["path",{d:"M8 18h13",key:"1lx6n3"}],["path",{d:"M8 6h13",key:"ik3vkj"}]]);/**
|
|
122
|
+
* @license lucide-react v0.462.0 - ISC
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the ISC license.
|
|
125
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/const Ec=Y("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]);/**
|
|
127
|
+
* @license lucide-react v0.462.0 - ISC
|
|
128
|
+
*
|
|
129
|
+
* This source code is licensed under the ISC license.
|
|
130
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
131
|
+
*/const Ui=Y("Monitor",[["rect",{width:"20",height:"14",x:"2",y:"3",rx:"2",key:"48i651"}],["line",{x1:"8",x2:"16",y1:"21",y2:"21",key:"1svkeh"}],["line",{x1:"12",x2:"12",y1:"17",y2:"21",key:"vw1qmm"}]]);/**
|
|
132
|
+
* @license lucide-react v0.462.0 - ISC
|
|
133
|
+
*
|
|
134
|
+
* This source code is licensed under the ISC license.
|
|
135
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
136
|
+
*/const Tc=Y("MousePointer",[["path",{d:"M12.586 12.586 19 19",key:"ea5xo7"}],["path",{d:"M3.688 3.037a.497.497 0 0 0-.651.651l6.5 15.999a.501.501 0 0 0 .947-.062l1.569-6.083a2 2 0 0 1 1.448-1.479l6.124-1.579a.5.5 0 0 0 .063-.947z",key:"277e5u"}]]);/**
|
|
137
|
+
* @license lucide-react v0.462.0 - ISC
|
|
138
|
+
*
|
|
139
|
+
* This source code is licensed under the ISC license.
|
|
140
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
141
|
+
*/const Nc=Y("MoveVertical",[["path",{d:"M12 2v20",key:"t6zp3m"}],["path",{d:"m8 18 4 4 4-4",key:"bh5tu3"}],["path",{d:"m8 6 4-4 4 4",key:"ybng9g"}]]);/**
|
|
142
|
+
* @license lucide-react v0.462.0 - ISC
|
|
143
|
+
*
|
|
144
|
+
* This source code is licensed under the ISC license.
|
|
145
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
146
|
+
*/const ph=Y("Redo2",[["path",{d:"m15 14 5-5-5-5",key:"12vg1m"}],["path",{d:"M20 9H9.5A5.5 5.5 0 0 0 4 14.5A5.5 5.5 0 0 0 9.5 20H13",key:"6uklza"}]]);/**
|
|
147
|
+
* @license lucide-react v0.462.0 - ISC
|
|
148
|
+
*
|
|
149
|
+
* This source code is licensed under the ISC license.
|
|
150
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
151
|
+
*/const hh=Y("Save",[["path",{d:"M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z",key:"1c8476"}],["path",{d:"M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7",key:"1ydtos"}],["path",{d:"M7 3v4a1 1 0 0 0 1 1h7",key:"t51u73"}]]);/**
|
|
152
|
+
* @license lucide-react v0.462.0 - ISC
|
|
153
|
+
*
|
|
154
|
+
* This source code is licensed under the ISC license.
|
|
155
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
156
|
+
*/const Vi=Y("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
|
|
157
|
+
* @license lucide-react v0.462.0 - ISC
|
|
158
|
+
*
|
|
159
|
+
* This source code is licensed under the ISC license.
|
|
160
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
161
|
+
*/const mh=Y("SquareDashed",[["path",{d:"M5 3a2 2 0 0 0-2 2",key:"y57alp"}],["path",{d:"M19 3a2 2 0 0 1 2 2",key:"18rm91"}],["path",{d:"M21 19a2 2 0 0 1-2 2",key:"1j7049"}],["path",{d:"M5 21a2 2 0 0 1-2-2",key:"sbafld"}],["path",{d:"M9 3h1",key:"1yesri"}],["path",{d:"M9 21h1",key:"15o7lz"}],["path",{d:"M14 3h1",key:"1ec4yj"}],["path",{d:"M14 21h1",key:"v9vybs"}],["path",{d:"M3 9v1",key:"1r0deq"}],["path",{d:"M21 9v1",key:"mxsmne"}],["path",{d:"M3 14v1",key:"vnatye"}],["path",{d:"M21 14v1",key:"169vum"}]]);/**
|
|
162
|
+
* @license lucide-react v0.462.0 - ISC
|
|
163
|
+
*
|
|
164
|
+
* This source code is licensed under the ISC license.
|
|
165
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
166
|
+
*/const bh=Y("SquareSquare",[["rect",{x:"3",y:"3",width:"18",height:"18",rx:"2",key:"h1oib"}],["rect",{x:"8",y:"8",width:"8",height:"8",rx:"1",key:"z9xiuo"}]]);/**
|
|
167
|
+
* @license lucide-react v0.462.0 - ISC
|
|
168
|
+
*
|
|
169
|
+
* This source code is licensed under the ISC license.
|
|
170
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
171
|
+
*/const Fa=Y("Square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]);/**
|
|
172
|
+
* @license lucide-react v0.462.0 - ISC
|
|
173
|
+
*
|
|
174
|
+
* This source code is licensed under the ISC license.
|
|
175
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
176
|
+
*/const gh=Y("Strikethrough",[["path",{d:"M16 4H9a3 3 0 0 0-2.83 4",key:"43sutm"}],["path",{d:"M14 12a4 4 0 0 1 0 8H6",key:"nlfj13"}],["line",{x1:"4",x2:"20",y1:"12",y2:"12",key:"1e0a9i"}]]);/**
|
|
177
|
+
* @license lucide-react v0.462.0 - ISC
|
|
178
|
+
*
|
|
179
|
+
* This source code is licensed under the ISC license.
|
|
180
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
181
|
+
*/const Wi=Y("Tablet",[["rect",{width:"16",height:"20",x:"4",y:"2",rx:"2",ry:"2",key:"76otgf"}],["line",{x1:"12",x2:"12.01",y1:"18",y2:"18",key:"1dp563"}]]);/**
|
|
182
|
+
* @license lucide-react v0.462.0 - ISC
|
|
183
|
+
*
|
|
184
|
+
* This source code is licensed under the ISC license.
|
|
185
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
186
|
+
*/const vh=Y("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
|
|
187
|
+
* @license lucide-react v0.462.0 - ISC
|
|
188
|
+
*
|
|
189
|
+
* This source code is licensed under the ISC license.
|
|
190
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
191
|
+
*/const Gi=Y("Tv",[["rect",{width:"20",height:"15",x:"2",y:"7",rx:"2",ry:"2",key:"10ag99"}],["polyline",{points:"17 2 12 7 7 2",key:"11pgbg"}]]);/**
|
|
192
|
+
* @license lucide-react v0.462.0 - ISC
|
|
193
|
+
*
|
|
194
|
+
* This source code is licensed under the ISC license.
|
|
195
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
196
|
+
*/const jc=Y("Type",[["polyline",{points:"4 7 4 4 20 4 20 7",key:"1nosan"}],["line",{x1:"9",x2:"15",y1:"20",y2:"20",key:"swin9y"}],["line",{x1:"12",x2:"12",y1:"4",y2:"20",key:"1tx1rr"}]]);/**
|
|
197
|
+
* @license lucide-react v0.462.0 - ISC
|
|
198
|
+
*
|
|
199
|
+
* This source code is licensed under the ISC license.
|
|
200
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
201
|
+
*/const yh=Y("Underline",[["path",{d:"M6 4v6a6 6 0 0 0 12 0V4",key:"9kb039"}],["line",{x1:"4",x2:"20",y1:"20",y2:"20",key:"nun2al"}]]);/**
|
|
202
|
+
* @license lucide-react v0.462.0 - ISC
|
|
203
|
+
*
|
|
204
|
+
* This source code is licensed under the ISC license.
|
|
205
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
206
|
+
*/const xh=Y("Undo2",[["path",{d:"M9 14 4 9l5-5",key:"102s5s"}],["path",{d:"M4 9h10.5a5.5 5.5 0 0 1 5.5 5.5a5.5 5.5 0 0 1-5.5 5.5H11",key:"f3b9sd"}]]);/**
|
|
207
|
+
* @license lucide-react v0.462.0 - ISC
|
|
208
|
+
*
|
|
209
|
+
* This source code is licensed under the ISC license.
|
|
210
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
211
|
+
*/const wh=Y("Video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]);/**
|
|
212
|
+
* @license lucide-react v0.462.0 - ISC
|
|
213
|
+
*
|
|
214
|
+
* This source code is licensed under the ISC license.
|
|
215
|
+
* See the LICENSE file in the root directory of this source tree.
|
|
216
|
+
*/const Sh=Y("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function bu(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function Mo(...t){return e=>{let r=!1;const n=t.map(o=>{const a=bu(o,e);return!r&&typeof a=="function"&&(r=!0),a});if(r)return()=>{for(let o=0;o<n.length;o++){const a=n[o];typeof a=="function"?a():bu(t[o],null)}}}}function we(...t){return v.useCallback(Mo(...t),t)}var Ch=Symbol.for("react.lazy"),oo=v[" use ".trim().toString()];function Eh(t){return typeof t=="object"&&t!==null&&"then"in t}function Ac(t){return t!=null&&typeof t=="object"&&"$$typeof"in t&&t.$$typeof===Ch&&"_payload"in t&&Eh(t._payload)}function Th(t){const e=jh(t),r=v.forwardRef((n,o)=>{let{children:a,...i}=n;Ac(a)&&typeof oo=="function"&&(a=oo(a._payload));const s=v.Children.toArray(a),u=s.find(Oh);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,{...i,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}var Nh=Th("Slot");function jh(t){const e=v.forwardRef((r,n)=>{let{children:o,...a}=r;if(Ac(o)&&typeof oo=="function"&&(o=oo(o._payload)),v.isValidElement(o)){const i=kh(o),s=Ph(a,o.props);return o.type!==v.Fragment&&(s.ref=n?Mo(n,i):i),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var Ah=Symbol("radix.slottable");function Oh(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===Ah}function Ph(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function kh(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 gu=t=>typeof t=="boolean"?`${t}`:t===0?"0":t,vu=Qe,Oc=(t,e)=>r=>{var n;if((e==null?void 0:e.variants)==null)return vu(t,r==null?void 0:r.class,r==null?void 0:r.className);const{variants:o,defaultVariants:a}=e,i=Object.keys(o).map(l=>{const c=r==null?void 0:r[l],h=a==null?void 0:a[l];if(c===null)return null;const f=gu(c)||gu(h);return o[l][f]}),s=r&&Object.entries(r).reduce((l,c)=>{let[h,f]=c;return f===void 0||(l[h]=f),l},{}),u=e==null||(n=e.compoundVariants)===null||n===void 0?void 0:n.reduce((l,c)=>{let{class:h,className:f,...d}=c;return Object.entries(d).every(b=>{let[g,m]=b;return Array.isArray(m)?m.includes({...a,...s}[g]):{...a,...s}[g]===m})?[...l,h,f]:l},[]);return vu(t,i,u,r==null?void 0:r.class,r==null?void 0:r.className)},_h=Oc("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium ring-offset-background transition-all duration-200 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90 shadow-lg shadow-primary/25",destructive:"bg-destructive text-destructive-foreground hover:bg-destructive/90",outline:"border border-input bg-transparent hover:bg-secondary hover:text-secondary-foreground",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-secondary hover:text-secondary-foreground",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-10 px-4 py-2",sm:"h-9 rounded-md px-3",lg:"h-11 rounded-md px-8",xl:"h-12 rounded-lg px-10 text-base",icon:"h-10 w-10"}},defaultVariants:{variant:"default",size:"default"}}),pt=v.forwardRef(({className:t,variant:e,size:r,asChild:n=!1,...o},a)=>{const i=n?Nh:"button";return p.jsx(i,{className:Se(_h({variant:e,size:r,className:t})),ref:a,...o})});pt.displayName="Button";function Rh(...t){return vc(Qe(t))}function ce(t){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(process.env.NODE_ENV!=="production"){var o=Fh[t],a=o?typeof o=="function"?o.apply(null,r):o:"unknown error nr: "+t;throw Error("[Immer] "+a)}throw Error("[Immer] minified error nr: "+t+(r.length?" "+r.map(function(i){return"'"+i+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Wt(t){return!!t&&!!t[Q]}function et(t){var e;return!!t&&(function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var o=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===qh}(t)||Array.isArray(t)||!!t[rn]||!!(!((e=t.constructor)===null||e===void 0)&&e[rn])||Lo(t)||$o(t))}function Gt(t,e,r){r===void 0&&(r=!1),kt(t)===0?(r?Object.keys:Qi)(t).forEach(function(n){r&&typeof n=="symbol"||e(n,t[n],t)}):t.forEach(function(n,o){return e(o,n,t)})}function kt(t){var e=t[Q];return e?e.i>3?e.i-4:e.i:Array.isArray(t)?1:Lo(t)?2:$o(t)?3:0}function an(t,e){return kt(t)===2?t.has(e):Object.prototype.hasOwnProperty.call(t,e)}function Zn(t,e){return kt(t)===2?t.get(e):t[e]}function Pc(t,e,r){var n=kt(t);n===2?t.set(e,r):n===3?t.add(r):t[e]=r}function Ih(t,e){return t===e?t!==0||1/t==1/e:t!=t&&e!=e}function Lo(t){return Hh&&t instanceof Map}function $o(t){return zh&&t instanceof Set}function xe(t){return t.o||t.t}function Yi(t){if(Array.isArray(t))return Array.prototype.slice.call(t);var e=Uh(t);delete e[Q];for(var r=Qi(e),n=0;n<r.length;n++){var o=r[n],a=e[o];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[o]={configurable:!0,writable:!0,enumerable:a.enumerable,value:t[o]})}return Object.create(Object.getPrototypeOf(t),e)}function Xi(t,e){return e===void 0&&(e=!1),Ki(t)||Wt(t)||!et(t)||(kt(t)>1&&(t.set=t.add=t.clear=t.delete=Dh),Object.freeze(t),e&&Gt(t,function(r,n){return Xi(n,!0)},!0)),t}function Dh(){ce(2)}function Ki(t){return t==null||typeof t!="object"||Object.isFrozen(t)}function Xe(t){var e=Ua[t];return e||ce(18,t),e}function kc(t,e){Ua[t]||(Ua[t]=e)}function ao(){return process.env.NODE_ENV==="production"||yr||ce(0),yr}function Sa(t,e){e&&(Xe("Patches"),t.u=[],t.s=[],t.v=e)}function io(t){qa(t),t.p.forEach(Mh),t.p=null}function qa(t){t===yr&&(yr=t.l)}function yu(t){return yr={p:[],l:yr,h:t,m:!0,_:0}}function Mh(t){var e=t[Q];e.i===0||e.i===1?e.j():e.g=!0}function Ca(t,e){e._=e.p.length;var r=e.p[0],n=t!==void 0&&t!==r;return e.h.O||Xe("ES5").S(e,t,n),n?(r[Q].P&&(io(e),ce(4)),et(t)&&(t=so(e,t),e.l||uo(e,t)),e.u&&Xe("Patches").M(r[Q].t,t,e.u,e.s)):t=so(e,r,[]),io(e),e.u&&e.v(e.u,e.s),t!==Zi?t:void 0}function so(t,e,r){if(Ki(e))return e;var n=e[Q];if(!n)return Gt(e,function(s,u){return xu(t,n,e,s,u,r)},!0),e;if(n.A!==t)return e;if(!n.P)return uo(t,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var o=n.i===4||n.i===5?n.o=Yi(n.k):n.o,a=o,i=!1;n.i===3&&(a=new Set(o),o.clear(),i=!0),Gt(a,function(s,u){return xu(t,n,o,s,u,r,i)}),uo(t,o,!1),r&&t.u&&Xe("Patches").N(n,r,t.u,t.s)}return n.o}function xu(t,e,r,n,o,a,i){if(process.env.NODE_ENV!=="production"&&o===r&&ce(5),Wt(o)){var s=so(t,o,a&&e&&e.i!==3&&!an(e.R,n)?a.concat(n):void 0);if(Pc(r,n,s),!Wt(s))return;t.m=!1}else i&&r.add(o);if(et(o)&&!Ki(o)){if(!t.h.D&&t._<1)return;so(t,o),e&&e.A.l||uo(t,o)}}function uo(t,e,r){r===void 0&&(r=!1),!t.l&&t.h.D&&t.m&&Xi(e,r)}function Ea(t,e){var r=t[Q];return(r?xe(r):t)[e]}function wu(t,e){if(e in t)for(var r=Object.getPrototypeOf(t);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function dt(t){t.P||(t.P=!0,t.l&&dt(t.l))}function Ta(t){t.o||(t.o=Yi(t.t))}function sn(t,e,r){var n=Lo(e)?Xe("MapSet").F(e,r):$o(e)?Xe("MapSet").T(e,r):t.O?function(o,a){var i=Array.isArray(o),s={i:i?1:0,A:a?a.A:ao(),P:!1,I:!1,R:{},l:a,t:o,k:null,o:null,j:null,C:!1},u=s,l=Va;i&&(u=[s],l=Zr);var c=Proxy.revocable(u,l),h=c.revoke,f=c.proxy;return s.k=f,s.j=h,f}(e,r):Xe("ES5").J(e,r);return(r?r.A:ao()).p.push(n),n}function Lh(t){return Wt(t)||ce(22,t),function e(r){if(!et(r))return r;var n,o=r[Q],a=kt(r);if(o){if(!o.P&&(o.i<4||!Xe("ES5").K(o)))return o.t;o.I=!0,n=Su(r,a),o.I=!1}else n=Su(r,a);return Gt(n,function(i,s){o&&Zn(o.t,i)===s||Pc(n,i,e(s))}),a===3?new Set(n):n}(t)}function Su(t,e){switch(e){case 2:return new Map(t);case 3:return Array.from(t)}return Yi(t)}function $h(){function t(n){if(!et(n))return n;if(Array.isArray(n))return n.map(t);if(Lo(n))return new Map(Array.from(n.entries()).map(function(i){return[i[0],t(i[1])]}));if($o(n))return new Set(Array.from(n).map(t));var o=Object.create(Object.getPrototypeOf(n));for(var a in n)o[a]=t(n[a]);return an(n,rn)&&(o[rn]=n[rn]),o}function e(n){return Wt(n)?t(n):n}var r="add";kc("Patches",{$:function(n,o){return o.forEach(function(a){for(var i=a.path,s=a.op,u=n,l=0;l<i.length-1;l++){var c=kt(u),h=i[l];typeof h!="string"&&typeof h!="number"&&(h=""+h),c!==0&&c!==1||h!=="__proto__"&&h!=="constructor"||ce(24),typeof u=="function"&&h==="prototype"&&ce(24),typeof(u=Zn(u,h))!="object"&&ce(15,i.join("/"))}var f=kt(u),d=t(a.value),b=i[i.length-1];switch(s){case"replace":switch(f){case 2:return u.set(b,d);case 3:ce(16);default:return u[b]=d}case r:switch(f){case 1:return b==="-"?u.push(d):u.splice(b,0,d);case 2:return u.set(b,d);case 3:return u.add(d);default:return u[b]=d}case"remove":switch(f){case 1:return u.splice(b,1);case 2:return u.delete(b);case 3:return u.delete(a.value);default:return delete u[b]}default:ce(17,s)}}),n},N:function(n,o,a,i){switch(n.i){case 0:case 4:case 2:return function(s,u,l,c){var h=s.t,f=s.o;Gt(s.R,function(d,b){var g=Zn(h,d),m=Zn(f,d),y=b?an(h,d)?"replace":r:"remove";if(g!==m||y!=="replace"){var x=u.concat(d);l.push(y==="remove"?{op:y,path:x}:{op:y,path:x,value:m}),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,a,i);case 5:case 1:return function(s,u,l,c){var h=s.t,f=s.R,d=s.o;if(d.length<h.length){var b=[d,h];h=b[0],d=b[1];var g=[c,l];l=g[0],c=g[1]}for(var m=0;m<h.length;m++)if(f[m]&&d[m]!==h[m]){var y=u.concat([m]);l.push({op:"replace",path:y,value:e(d[m])}),c.push({op:"replace",path:y,value:e(h[m])})}for(var x=h.length;x<d.length;x++){var S=u.concat([x]);l.push({op:r,path:S,value:e(d[x])})}h.length<d.length&&c.push({op:"replace",path:u.concat(["length"]),value:h.length})}(n,o,a,i);case 3:return function(s,u,l,c){var h=s.t,f=s.o,d=0;h.forEach(function(b){if(!f.has(b)){var g=u.concat([d]);l.push({op:"remove",path:g,value:b}),c.unshift({op:r,path:g,value:b})}d++}),d=0,f.forEach(function(b){if(!h.has(b)){var g=u.concat([d]);l.push({op:r,path:g,value:b}),c.unshift({op:"remove",path:g,value:b})}d++})}(n,o,a,i)}},M:function(n,o,a,i){a.push({op:"replace",path:[],value:o===Zi?void 0:o}),i.push({op:"replace",path:[],value:n})}})}function Bh(){function t(s,u){function l(){this.constructor=s}o(s,u),s.prototype=(l.prototype=u.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function r(s){s.o||(s.o=new Set,s.t.forEach(function(u){if(et(u)){var l=sn(s.A.h,u,s);s.p.set(u,l),s.o.add(l)}else s.o.add(u)}))}function n(s){s.g&&ce(3,JSON.stringify(xe(s)))}var o=function(s,u){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,c){l.__proto__=c}||function(l,c){for(var h in c)c.hasOwnProperty(h)&&(l[h]=c[h])})(s,u)},a=function(){function s(l,c){return this[Q]={i:2,l:c,A:c?c.A:ao(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,g:!1},this}t(s,Map);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return xe(this[Q]).size}}),u.has=function(l){return xe(this[Q]).has(l)},u.set=function(l,c){var h=this[Q];return n(h),xe(h).has(l)&&xe(h).get(l)===c||(e(h),dt(h),h.R.set(l,!0),h.o.set(l,c),h.R.set(l,!0)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[Q];return n(c),e(c),dt(c),c.t.has(l)?c.R.set(l,!1):c.R.delete(l),c.o.delete(l),!0},u.clear=function(){var l=this[Q];n(l),xe(l).size&&(e(l),dt(l),l.R=new Map,Gt(l.t,function(c){l.R.set(c,!1)}),l.o.clear())},u.forEach=function(l,c){var h=this;xe(this[Q]).forEach(function(f,d){l.call(c,h.get(d),d,h)})},u.get=function(l){var c=this[Q];n(c);var h=xe(c).get(l);if(c.I||!et(h)||h!==c.t.get(l))return h;var f=sn(c.A.h,h,c);return e(c),c.o.set(l,f),f},u.keys=function(){return xe(this[Q]).keys()},u.values=function(){var l,c=this,h=this.keys();return(l={})[Mn]=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={})[Mn]=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[Mn]=function(){return this.entries()},s}(),i=function(){function s(l,c){return this[Q]={i:3,l:c,A:c?c.A:ao(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,g:!1,C:!1},this}t(s,Set);var u=s.prototype;return Object.defineProperty(u,"size",{get:function(){return xe(this[Q]).size}}),u.has=function(l){var c=this[Q];return n(c),c.o?!!c.o.has(l)||!(!c.p.has(l)||!c.o.has(c.p.get(l))):c.t.has(l)},u.add=function(l){var c=this[Q];return n(c),this.has(l)||(r(c),dt(c),c.o.add(l)),this},u.delete=function(l){if(!this.has(l))return!1;var c=this[Q];return n(c),r(c),dt(c),c.o.delete(l)||!!c.p.has(l)&&c.o.delete(c.p.get(l))},u.clear=function(){var l=this[Q];n(l),xe(l).size&&(r(l),dt(l),l.o.clear())},u.values=function(){var l=this[Q];return n(l),r(l),l.o.values()},u.entries=function(){var l=this[Q];return n(l),r(l),l.o.entries()},u.keys=function(){return this.values()},u[Mn]=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}();kc("MapSet",{F:function(s,u){return new a(s,u)},T:function(s,u){return new i(s,u)}})}var Cu,yr,Ji=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Hh=typeof Map<"u",zh=typeof Set<"u",Eu=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Zi=Ji?Symbol.for("immer-nothing"):((Cu={})["immer-nothing"]=!0,Cu),rn=Ji?Symbol.for("immer-draftable"):"__$immer_draftable",Q=Ji?Symbol.for("immer-state"):"__$immer_state",Mn=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Fh={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"},qh=""+Object.prototype.constructor,Qi=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:Object.getOwnPropertyNames,Uh=Object.getOwnPropertyDescriptors||function(t){var e={};return Qi(t).forEach(function(r){e[r]=Object.getOwnPropertyDescriptor(t,r)}),e},Ua={},Va={get:function(t,e){if(e===Q)return t;var r=xe(t);if(!an(r,e))return function(o,a,i){var s,u=wu(a,i);return u?"value"in u?u.value:(s=u.get)===null||s===void 0?void 0:s.call(o.k):void 0}(t,r,e);var n=r[e];return t.I||!et(n)?n:n===Ea(t.t,e)?(Ta(t),t.o[e]=sn(t.A.h,n,t)):n},has:function(t,e){return e in xe(t)},ownKeys:function(t){return Reflect.ownKeys(xe(t))},set:function(t,e,r){var n=wu(xe(t),e);if(n!=null&&n.set)return n.set.call(t.k,r),!0;if(!t.P){var o=Ea(xe(t),e),a=o==null?void 0:o[Q];if(a&&a.t===r)return t.o[e]=r,t.R[e]=!1,!0;if(Ih(r,o)&&(r!==void 0||an(t.t,e)))return!0;Ta(t),dt(t)}return t.o[e]===r&&(r!==void 0||e in t.o)||Number.isNaN(r)&&Number.isNaN(t.o[e])||(t.o[e]=r,t.R[e]=!0),!0},deleteProperty:function(t,e){return Ea(t.t,e)!==void 0||e in t.t?(t.R[e]=!1,Ta(t),dt(t)):delete t.R[e],t.o&&delete t.o[e],!0},getOwnPropertyDescriptor:function(t,e){var r=xe(t),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:t.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){ce(11)},getPrototypeOf:function(t){return Object.getPrototypeOf(t.t)},setPrototypeOf:function(){ce(12)}},Zr={};Gt(Va,function(t,e){Zr[t]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),Zr.deleteProperty=function(t,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&ce(13),Zr.set.call(this,t,e,void 0)},Zr.set=function(t,e,r){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&ce(14),Va.set.call(this,t[0],e,r,t[0])};var Vh=function(){function t(r){var n=this;this.O=Eu,this.D=!0,this.produce=function(o,a,i){if(typeof o=="function"&&typeof a!="function"){var s=a;a=o;var u=n;return function(g){var m=this;g===void 0&&(g=s);for(var 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 j;return(j=a).call.apply(j,[m,E].concat(x))})}}var l;if(typeof a!="function"&&ce(6),i!==void 0&&typeof i!="function"&&ce(7),et(o)){var c=yu(n),h=sn(n,o,void 0),f=!0;try{l=a(h),f=!1}finally{f?io(c):qa(c)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(g){return Sa(c,i),Ca(g,c)},function(g){throw io(c),g}):(Sa(c,i),Ca(l,c))}if(!o||typeof o!="object"){if((l=a(o))===void 0&&(l=o),l===Zi&&(l=void 0),n.D&&Xi(l,!0),i){var d=[],b=[];Xe("Patches").M(o,l,d,b),i(d,b)}return l}ce(21,o)},this.produceWithPatches=function(o,a){if(typeof o=="function")return function(l){for(var c=arguments.length,h=Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];return n.produceWithPatches(l,function(d){return o.apply(void 0,[d].concat(h))})};var i,s,u=n.produce(o,a,function(l,c){i=l,s=c});return typeof Promise<"u"&&u instanceof Promise?u.then(function(l){return[l,i,s]}):[u,i,s]},typeof(r==null?void 0:r.useProxies)=="boolean"&&this.setUseProxies(r.useProxies),typeof(r==null?void 0:r.autoFreeze)=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=t.prototype;return e.createDraft=function(r){et(r)||ce(8),Wt(r)&&(r=Lh(r));var n=yu(this),o=sn(this,r,void 0);return o[Q].C=!0,qa(n),o},e.finishDraft=function(r,n){var o=r&&r[Q];process.env.NODE_ENV!=="production"&&(o&&o.C||ce(9),o.I&&ce(10));var a=o.A;return Sa(a,n),Ca(void 0,a)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!Eu&&ce(20),this.O=r},e.applyPatches=function(r,n){var o;for(o=n.length-1;o>=0;o--){var a=n[o];if(a.path.length===0&&a.op==="replace"){r=a.value;break}}o>-1&&(n=n.slice(o+1));var i=Xe("Patches").$;return Wt(r)?i(r,n):this.produce(r,function(s){return i(s,n)})},t}(),Pe=new Vh,Wh=Pe.produce,Tu=Pe.produceWithPatches.bind(Pe);Pe.setAutoFreeze.bind(Pe);Pe.setUseProxies.bind(Pe);var Nu=Pe.applyPatches.bind(Pe);Pe.createDraft.bind(Pe);Pe.finishDraft.bind(Pe);var F=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Bo(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function Gh(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 Yh(){this.__data__=[],this.size=0}var Xh=Yh;function Kh(t,e){return t===e||t!==t&&e!==e}var _c=Kh,Jh=_c;function Zh(t,e){for(var r=t.length;r--;)if(Jh(t[r][0],e))return r;return-1}var Ho=Zh,Qh=Ho,em=Array.prototype,tm=em.splice;function rm(t){var e=this.__data__,r=Qh(e,t);if(r<0)return!1;var n=e.length-1;return r==n?e.pop():tm.call(e,r,1),--this.size,!0}var nm=rm,om=Ho;function am(t){var e=this.__data__,r=om(e,t);return r<0?void 0:e[r][1]}var im=am,sm=Ho;function um(t){return sm(this.__data__,t)>-1}var lm=um,cm=Ho;function dm(t,e){var r=this.__data__,n=cm(r,t);return n<0?(++this.size,r.push([t,e])):r[n][1]=e,this}var fm=dm,pm=Xh,hm=nm,mm=im,bm=lm,gm=fm;function _r(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}_r.prototype.clear=pm;_r.prototype.delete=hm;_r.prototype.get=mm;_r.prototype.has=bm;_r.prototype.set=gm;var zo=_r,vm=zo;function ym(){this.__data__=new vm,this.size=0}var xm=ym;function wm(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}var Sm=wm;function Cm(t){return this.__data__.get(t)}var Em=Cm;function Tm(t){return this.__data__.has(t)}var Nm=Tm,jm=typeof F=="object"&&F&&F.Object===Object&&F,Rc=jm,Am=Rc,Om=typeof self=="object"&&self&&self.Object===Object&&self,Pm=Am||Om||Function("return this")(),rt=Pm,km=rt,_m=km.Symbol,Fo=_m,ju=Fo,Ic=Object.prototype,Rm=Ic.hasOwnProperty,Im=Ic.toString,Yr=ju?ju.toStringTag:void 0;function Dm(t){var e=Rm.call(t,Yr),r=t[Yr];try{t[Yr]=void 0;var n=!0}catch{}var o=Im.call(t);return n&&(e?t[Yr]=r:delete t[Yr]),o}var Mm=Dm,Lm=Object.prototype,$m=Lm.toString;function Bm(t){return $m.call(t)}var Hm=Bm,Au=Fo,zm=Mm,Fm=Hm,qm="[object Null]",Um="[object Undefined]",Ou=Au?Au.toStringTag:void 0;function Vm(t){return t==null?t===void 0?Um:qm:Ou&&Ou in Object(t)?zm(t):Fm(t)}var qo=Vm;function Wm(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}var Dc=Wm,Gm=qo,Ym=Dc,Xm="[object AsyncFunction]",Km="[object Function]",Jm="[object GeneratorFunction]",Zm="[object Proxy]";function Qm(t){if(!Ym(t))return!1;var e=Gm(t);return e==Km||e==Jm||e==Xm||e==Zm}var es=Qm;const eb=Bo(es);var tb=rt,rb=tb["__core-js_shared__"],nb=rb,Na=nb,Pu=function(){var t=/[^.]+$/.exec(Na&&Na.keys&&Na.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();function ob(t){return!!Pu&&Pu in t}var ab=ob,ib=Function.prototype,sb=ib.toString;function ub(t){if(t!=null){try{return sb.call(t)}catch{}try{return t+""}catch{}}return""}var Mc=ub,lb=es,cb=ab,db=Dc,fb=Mc,pb=/[\\^$.*+?()[\]{}|]/g,hb=/^\[object .+?Constructor\]$/,mb=Function.prototype,bb=Object.prototype,gb=mb.toString,vb=bb.hasOwnProperty,yb=RegExp("^"+gb.call(vb).replace(pb,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function xb(t){if(!db(t)||cb(t))return!1;var e=lb(t)?yb:hb;return e.test(fb(t))}var wb=xb;function Sb(t,e){return t==null?void 0:t[e]}var Cb=Sb,Eb=wb,Tb=Cb;function Nb(t,e){var r=Tb(t,e);return Eb(r)?r:void 0}var Zt=Nb,jb=Zt,Ab=rt,Ob=jb(Ab,"Map"),ts=Ob,Pb=Zt,kb=Pb(Object,"create"),Uo=kb,ku=Uo;function _b(){this.__data__=ku?ku(null):{},this.size=0}var Rb=_b;function Ib(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}var Db=Ib,Mb=Uo,Lb="__lodash_hash_undefined__",$b=Object.prototype,Bb=$b.hasOwnProperty;function Hb(t){var e=this.__data__;if(Mb){var r=e[t];return r===Lb?void 0:r}return Bb.call(e,t)?e[t]:void 0}var zb=Hb,Fb=Uo,qb=Object.prototype,Ub=qb.hasOwnProperty;function Vb(t){var e=this.__data__;return Fb?e[t]!==void 0:Ub.call(e,t)}var Wb=Vb,Gb=Uo,Yb="__lodash_hash_undefined__";function Xb(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=Gb&&e===void 0?Yb:e,this}var Kb=Xb,Jb=Rb,Zb=Db,Qb=zb,eg=Wb,tg=Kb;function Rr(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Rr.prototype.clear=Jb;Rr.prototype.delete=Zb;Rr.prototype.get=Qb;Rr.prototype.has=eg;Rr.prototype.set=tg;var rg=Rr,_u=rg,ng=zo,og=ts;function ag(){this.size=0,this.__data__={hash:new _u,map:new(og||ng),string:new _u}}var ig=ag;function sg(t){var e=typeof t;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?t!=="__proto__":t===null}var ug=sg,lg=ug;function cg(t,e){var r=t.__data__;return lg(e)?r[typeof e=="string"?"string":"hash"]:r.map}var Vo=cg,dg=Vo;function fg(t){var e=dg(this,t).delete(t);return this.size-=e?1:0,e}var pg=fg,hg=Vo;function mg(t){return hg(this,t).get(t)}var bg=mg,gg=Vo;function vg(t){return gg(this,t).has(t)}var yg=vg,xg=Vo;function wg(t,e){var r=xg(this,t),n=r.size;return r.set(t,e),this.size+=r.size==n?0:1,this}var Sg=wg,Cg=ig,Eg=pg,Tg=bg,Ng=yg,jg=Sg;function Ir(t){var e=-1,r=t==null?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}Ir.prototype.clear=Cg;Ir.prototype.delete=Eg;Ir.prototype.get=Tg;Ir.prototype.has=Ng;Ir.prototype.set=jg;var Lc=Ir,Ag=zo,Og=ts,Pg=Lc,kg=200;function _g(t,e){var r=this.__data__;if(r instanceof Ag){var n=r.__data__;if(!Og||n.length<kg-1)return n.push([t,e]),this.size=++r.size,this;r=this.__data__=new Pg(n)}return r.set(t,e),this.size=r.size,this}var Rg=_g,Ig=zo,Dg=xm,Mg=Sm,Lg=Em,$g=Nm,Bg=Rg;function Dr(t){var e=this.__data__=new Ig(t);this.size=e.size}Dr.prototype.clear=Dg;Dr.prototype.delete=Mg;Dr.prototype.get=Lg;Dr.prototype.has=$g;Dr.prototype.set=Bg;var Hg=Dr,zg="__lodash_hash_undefined__";function Fg(t){return this.__data__.set(t,zg),this}var qg=Fg;function Ug(t){return this.__data__.has(t)}var Vg=Ug,Wg=Lc,Gg=qg,Yg=Vg;function lo(t){var e=-1,r=t==null?0:t.length;for(this.__data__=new Wg;++e<r;)this.add(t[e])}lo.prototype.add=lo.prototype.push=Gg;lo.prototype.has=Yg;var Xg=lo;function Kg(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 Jg=Kg;function Zg(t,e){return t.has(e)}var Qg=Zg,e1=Xg,t1=Jg,r1=Qg,n1=1,o1=2;function a1(t,e,r,n,o,a){var i=r&n1,s=t.length,u=e.length;if(s!=u&&!(i&&u>s))return!1;var l=a.get(t),c=a.get(e);if(l&&c)return l==e&&c==t;var h=-1,f=!0,d=r&o1?new e1:void 0;for(a.set(t,e),a.set(e,t);++h<s;){var b=t[h],g=e[h];if(n)var m=i?n(g,b,h,e,t,a):n(b,g,h,t,e,a);if(m!==void 0){if(m)continue;f=!1;break}if(d){if(!t1(e,function(y,x){if(!r1(d,x)&&(b===y||o(b,y,r,n,a)))return d.push(x)})){f=!1;break}}else if(!(b===g||o(b,g,r,n,a))){f=!1;break}}return a.delete(t),a.delete(e),f}var $c=a1,i1=rt,s1=i1.Uint8Array,u1=s1;function l1(t){var e=-1,r=Array(t.size);return t.forEach(function(n,o){r[++e]=[o,n]}),r}var c1=l1;function d1(t){var e=-1,r=Array(t.size);return t.forEach(function(n){r[++e]=n}),r}var f1=d1,Ru=Fo,Iu=u1,p1=_c,h1=$c,m1=c1,b1=f1,g1=1,v1=2,y1="[object Boolean]",x1="[object Date]",w1="[object Error]",S1="[object Map]",C1="[object Number]",E1="[object RegExp]",T1="[object Set]",N1="[object String]",j1="[object Symbol]",A1="[object ArrayBuffer]",O1="[object DataView]",Du=Ru?Ru.prototype:void 0,ja=Du?Du.valueOf:void 0;function P1(t,e,r,n,o,a,i){switch(r){case O1:if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case A1:return!(t.byteLength!=e.byteLength||!a(new Iu(t),new Iu(e)));case y1:case x1:case C1:return p1(+t,+e);case w1:return t.name==e.name&&t.message==e.message;case E1:case N1:return t==e+"";case S1:var s=m1;case T1:var u=n&g1;if(s||(s=b1),t.size!=e.size&&!u)return!1;var l=i.get(t);if(l)return l==e;n|=v1,i.set(t,e);var c=h1(s(t),s(e),n,o,a,i);return i.delete(t),c;case j1:if(ja)return ja.call(t)==ja.call(e)}return!1}var k1=P1;function _1(t,e){for(var r=-1,n=e.length,o=t.length;++r<n;)t[o+r]=e[r];return t}var R1=_1,I1=Array.isArray,rs=I1,D1=R1,M1=rs;function L1(t,e,r){var n=e(t);return M1(t)?n:D1(n,r(t))}var $1=L1;function B1(t,e){for(var r=-1,n=t==null?0:t.length,o=0,a=[];++r<n;){var i=t[r];e(i,r,t)&&(a[o++]=i)}return a}var H1=B1;function z1(){return[]}var F1=z1,q1=H1,U1=F1,V1=Object.prototype,W1=V1.propertyIsEnumerable,Mu=Object.getOwnPropertySymbols,G1=Mu?function(t){return t==null?[]:(t=Object(t),q1(Mu(t),function(e){return W1.call(t,e)}))}:U1,Y1=G1;function X1(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}var K1=X1;function J1(t){return t!=null&&typeof t=="object"}var Wo=J1,Z1=qo,Q1=Wo,ev="[object Arguments]";function tv(t){return Q1(t)&&Z1(t)==ev}var rv=tv,Lu=rv,nv=Wo,Bc=Object.prototype,ov=Bc.hasOwnProperty,av=Bc.propertyIsEnumerable,iv=Lu(function(){return arguments}())?Lu:function(t){return nv(t)&&ov.call(t,"callee")&&!av.call(t,"callee")},sv=iv,co={exports:{}};function uv(){return!1}var lv=uv;co.exports;(function(t,e){var r=rt,n=lv,o=e&&!e.nodeType&&e,a=o&&!0&&t&&!t.nodeType&&t,i=a&&a.exports===o,s=i?r.Buffer:void 0,u=s?s.isBuffer:void 0,l=u||n;t.exports=l})(co,co.exports);var Hc=co.exports,cv=9007199254740991,dv=/^(?:0|[1-9]\d*)$/;function fv(t,e){var r=typeof t;return e=e??cv,!!e&&(r=="number"||r!="symbol"&&dv.test(t))&&t>-1&&t%1==0&&t<e}var pv=fv,hv=9007199254740991;function mv(t){return typeof t=="number"&&t>-1&&t%1==0&&t<=hv}var zc=mv,bv=qo,gv=zc,vv=Wo,yv="[object Arguments]",xv="[object Array]",wv="[object Boolean]",Sv="[object Date]",Cv="[object Error]",Ev="[object Function]",Tv="[object Map]",Nv="[object Number]",jv="[object Object]",Av="[object RegExp]",Ov="[object Set]",Pv="[object String]",kv="[object WeakMap]",_v="[object ArrayBuffer]",Rv="[object DataView]",Iv="[object Float32Array]",Dv="[object Float64Array]",Mv="[object Int8Array]",Lv="[object Int16Array]",$v="[object Int32Array]",Bv="[object Uint8Array]",Hv="[object Uint8ClampedArray]",zv="[object Uint16Array]",Fv="[object Uint32Array]",ie={};ie[Iv]=ie[Dv]=ie[Mv]=ie[Lv]=ie[$v]=ie[Bv]=ie[Hv]=ie[zv]=ie[Fv]=!0;ie[yv]=ie[xv]=ie[_v]=ie[wv]=ie[Rv]=ie[Sv]=ie[Cv]=ie[Ev]=ie[Tv]=ie[Nv]=ie[jv]=ie[Av]=ie[Ov]=ie[Pv]=ie[kv]=!1;function qv(t){return vv(t)&&gv(t.length)&&!!ie[bv(t)]}var Uv=qv;function Vv(t){return function(e){return t(e)}}var Wv=Vv,fo={exports:{}};fo.exports;(function(t,e){var r=Rc,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a&&r.process,s=function(){try{var u=o&&o.require&&o.require("util").types;return u||i&&i.binding&&i.binding("util")}catch{}}();t.exports=s})(fo,fo.exports);var ns=fo.exports,Gv=Uv,Yv=Wv,$u=ns,Bu=$u&&$u.isTypedArray,Xv=Bu?Yv(Bu):Gv,Fc=Xv,Kv=K1,Jv=sv,Zv=rs,Qv=Hc,ey=pv,ty=Fc,ry=Object.prototype,ny=ry.hasOwnProperty;function oy(t,e){var r=Zv(t),n=!r&&Jv(t),o=!r&&!n&&Qv(t),a=!r&&!n&&!o&&ty(t),i=r||n||o||a,s=i?Kv(t.length,String):[],u=s.length;for(var l in t)(e||ny.call(t,l))&&!(i&&(l=="length"||o&&(l=="offset"||l=="parent")||a&&(l=="buffer"||l=="byteLength"||l=="byteOffset")||ey(l,u)))&&s.push(l);return s}var ay=oy,iy=Object.prototype;function sy(t){var e=t&&t.constructor,r=typeof e=="function"&&e.prototype||iy;return t===r}var uy=sy;function ly(t,e){return function(r){return t(e(r))}}var cy=ly,dy=cy,fy=dy(Object.keys,Object),py=fy,hy=uy,my=py,by=Object.prototype,gy=by.hasOwnProperty;function vy(t){if(!hy(t))return my(t);var e=[];for(var r in Object(t))gy.call(t,r)&&r!="constructor"&&e.push(r);return e}var yy=vy,xy=es,wy=zc;function Sy(t){return t!=null&&wy(t.length)&&!xy(t)}var Cy=Sy,Ey=ay,Ty=yy,Ny=Cy;function jy(t){return Ny(t)?Ey(t):Ty(t)}var Ay=jy,Oy=$1,Py=Y1,ky=Ay;function _y(t){return Oy(t,ky,Py)}var Ry=_y,Hu=Ry,Iy=1,Dy=Object.prototype,My=Dy.hasOwnProperty;function Ly(t,e,r,n,o,a){var i=r&Iy,s=Hu(t),u=s.length,l=Hu(e),c=l.length;if(u!=c&&!i)return!1;for(var h=u;h--;){var f=s[h];if(!(i?f in e:My.call(e,f)))return!1}var d=a.get(t),b=a.get(e);if(d&&b)return d==e&&b==t;var g=!0;a.set(t,e),a.set(e,t);for(var m=i;++h<u;){f=s[h];var y=t[f],x=e[f];if(n)var S=i?n(x,y,f,e,t,a):n(y,x,f,t,e,a);if(!(S===void 0?y===x||o(y,x,r,n,a):S)){g=!1;break}m||(m=f=="constructor")}if(g&&!m){var E=t.constructor,j=e.constructor;E!=j&&"constructor"in t&&"constructor"in e&&!(typeof E=="function"&&E instanceof E&&typeof j=="function"&&j instanceof j)&&(g=!1)}return a.delete(t),a.delete(e),g}var $y=Ly,By=Zt,Hy=rt,zy=By(Hy,"DataView"),Fy=zy,qy=Zt,Uy=rt,Vy=qy(Uy,"Promise"),Wy=Vy,Gy=Zt,Yy=rt,Xy=Gy(Yy,"Set"),Ky=Xy,Jy=Zt,Zy=rt,Qy=Jy(Zy,"WeakMap"),ex=Qy,Wa=Fy,Ga=ts,Ya=Wy,Xa=Ky,Ka=ex,qc=qo,Mr=Mc,zu="[object Map]",tx="[object Object]",Fu="[object Promise]",qu="[object Set]",Uu="[object WeakMap]",Vu="[object DataView]",rx=Mr(Wa),nx=Mr(Ga),ox=Mr(Ya),ax=Mr(Xa),ix=Mr(Ka),Ut=qc;(Wa&&Ut(new Wa(new ArrayBuffer(1)))!=Vu||Ga&&Ut(new Ga)!=zu||Ya&&Ut(Ya.resolve())!=Fu||Xa&&Ut(new Xa)!=qu||Ka&&Ut(new Ka)!=Uu)&&(Ut=function(t){var e=qc(t),r=e==tx?t.constructor:void 0,n=r?Mr(r):"";if(n)switch(n){case rx:return Vu;case nx:return zu;case ox:return Fu;case ax:return qu;case ix:return Uu}return e});var sx=Ut,Aa=Hg,ux=$c,lx=k1,cx=$y,Wu=sx,Gu=rs,Yu=Hc,dx=Fc,fx=1,Xu="[object Arguments]",Ku="[object Array]",Ln="[object Object]",px=Object.prototype,Ju=px.hasOwnProperty;function hx(t,e,r,n,o,a){var i=Gu(t),s=Gu(e),u=i?Ku:Wu(t),l=s?Ku:Wu(e);u=u==Xu?Ln:u,l=l==Xu?Ln:l;var c=u==Ln,h=l==Ln,f=u==l;if(f&&Yu(t)){if(!Yu(e))return!1;i=!0,c=!1}if(f&&!c)return a||(a=new Aa),i||dx(t)?ux(t,e,r,n,o,a):lx(t,e,u,r,n,o,a);if(!(r&fx)){var d=c&&Ju.call(t,"__wrapped__"),b=h&&Ju.call(e,"__wrapped__");if(d||b){var g=d?t.value():t,m=b?e.value():e;return a||(a=new Aa),o(g,m,r,n,a)}}return f?(a||(a=new Aa),cx(t,e,r,n,o,a)):!1}var mx=hx,bx=mx,Zu=Wo;function Uc(t,e,r,n,o){return t===e?!0:t==null||e==null||!Zu(t)&&!Zu(e)?t!==t&&e!==e:bx(t,e,r,n,Uc,o)}var gx=Uc,vx=gx;function yx(t,e,r){r=typeof r=="function"?r:void 0;var n=r?r(t,e):void 0;return n===void 0?vx(t,e,void 0,r):!!n}var xx=yx;const wx=Bo(xx);var Sx=function(e,r,n,o){var a=n?n.call(o,e,r):void 0;if(a!==void 0)return!!a;if(e===r)return!0;if(typeof e!="object"||!e||typeof r!="object"||!r)return!1;var i=Object.keys(e),s=Object.keys(r);if(i.length!==s.length)return!1;for(var u=Object.prototype.hasOwnProperty.bind(r),l=0;l<i.length;l++){var c=i[l];if(!u(c))return!1;var h=e[c],f=r[c];if(a=n?n.call(o,h,f,c):void 0,a===!1||a===void 0&&h!==f)return!1}return!0};const Cx=Bo(Sx);let Ex=(t=21)=>crypto.getRandomValues(new Uint8Array(t)).reduce((e,r)=>(r&=63,r<36?e+=r.toString(36):r<62?e+=(r-26).toString(36).toUpperCase():r>62?e+="-":e+="_",e),"");var Tx=process.env.NODE_ENV==="production",Oa="Invariant failed";function oe(t,e){if(!t){if(Tx)throw new Error(Oa);var r=typeof e=="function"?e():e,n=r?"".concat(Oa,": ").concat(r):Oa;throw new Error(n)}}typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/utils"]="0.2.5");var mt="ROOT",Vc="canvas-ROOT",Nx="Parent id cannot be ommited",jx="Attempting to add a node with duplicated id",Wc="Node does not exist, it may have been removed",Ax='A <Element /> that is used inside a User Component must specify an `id` prop, eg: <Element id="text_element">...</Element> ',Ox="Node cannot be dropped into target parent",Px="Target parent rejects incoming node",kx="Current parent rejects outgoing node",Qu="Cannot move node that is not a direct child of a Canvas node",_x="Cannot move node into a non-Canvas parent",el="A top-level Node cannot be moved",Rx="Cannot move node into a descendant",po="The component type specified for this node (%node_type%) does not exist in the resolver",Ix="The node has specified a canDrag() rule that prevents it from being dragged",Dx="Invalid parameter Node Id specified",Mx="Attempting to delete a top-level Node",Lx=`Resolver in <Editor /> has to be an object. For (de)serialization Craft.js needs a list of all the User Components.
|
|
217
|
+
|
|
218
|
+
More info: https://craft.js.org/r/docs/api/editor#props`,$x=`An Error occurred while deserializing components: Cannot find component <%displayName% /> in resolver map. Please check your resolver in <Editor />
|
|
219
|
+
|
|
220
|
+
Available components in resolver: %availableComponents%
|
|
221
|
+
|
|
222
|
+
More info: https://craft.js.org/r/docs/api/editor#props`,Bx=`You can only use useEditor in the context of <Editor />.
|
|
223
|
+
|
|
224
|
+
Please only use useEditor in components that are children of the <Editor /> component.`,Hx=`You can only use useNode in the context of <Editor />.
|
|
225
|
+
|
|
226
|
+
Please only use useNode in components that are children of the <Editor /> component.`;function tl(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function _e(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?tl(Object(r),!0).forEach(function(n){ve(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):tl(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function Lr(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function zx(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,Jc(n.key),n)}}function $r(t,e,r){return e&&zx(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ve(t,e,r){return(e=Jc(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function br(t){return br=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},br(t)}function Ja(t,e){return Ja=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},Ja(t,e)}function Pa(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Za(){return Za=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(t,e,r){var n=function(a,i){for(;!Object.prototype.hasOwnProperty.call(a,i)&&(a=br(a))!==null;);return a}(t,e);if(n){var o=Object.getOwnPropertyDescriptor(n,e);return o.get?o.get.call(arguments.length<3?t:r):o.value}},Za.apply(this,arguments)}function Gc(t,e){return Yc(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,i,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n===0){if(Object(o)!==o)return;c=!1}else for(;!(c=(a=s.call(o)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(f){h=!0,i=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}(t,e)||os(t,e)||Kc()}function Ce(t){return function(e){if(Array.isArray(e))return Qa(e)}(t)||Xc(t)||os(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
227
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Yc(t){if(Array.isArray(t))return t}function Xc(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}function os(t,e){if(t){if(typeof t=="string")return Qa(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)?Qa(t,e):void 0}}function Qa(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 Kc(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
228
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Jc(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}var fe={UNDO:"HISTORY_UNDO",REDO:"HISTORY_REDO",THROTTLE:"HISTORY_THROTTLE",IGNORE:"HISTORY_IGNORE",MERGE:"HISTORY_MERGE",CLEAR:"HISTORY_CLEAR"},Fx=function(){function t(){Lr(this,t),ve(this,"timeline",[]),ve(this,"pointer",-1)}return $r(t,[{key:"add",value:function(e,r){e.length===0&&r.length===0||(this.pointer=this.pointer+1,this.timeline.length=this.pointer,this.timeline[this.pointer]={patches:e,inversePatches:r,timestamp:Date.now()})}},{key:"throttleAdd",value:function(e,r){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:500;if(e.length!==0||r.length!==0){if(this.timeline.length&&this.pointer>=0){var o=this.timeline[this.pointer],a=o.patches,i=o.inversePatches,s=o.timestamp;if(new Date().getTime()-s<n)return void(this.timeline[this.pointer]={timestamp:s,patches:[].concat(Ce(a),Ce(e)),inversePatches:[].concat(Ce(r),Ce(i))})}this.add(e,r)}}},{key:"merge",value:function(e,r){if(e.length!==0||r.length!==0)if(this.timeline.length&&this.pointer>=0){var n=this.timeline[this.pointer],o=n.inversePatches;this.timeline[this.pointer]={timestamp:n.timestamp,patches:[].concat(Ce(n.patches),Ce(e)),inversePatches:[].concat(Ce(r),Ce(o))}}else this.add(e,r)}},{key:"clear",value:function(){this.timeline=[],this.pointer=-1}},{key:"canUndo",value:function(){return this.pointer>=0}},{key:"canRedo",value:function(){return this.pointer<this.timeline.length-1}},{key:"undo",value:function(e){if(this.canUndo()){var r=this.timeline[this.pointer].inversePatches;return this.pointer=this.pointer-1,Nu(e,r)}}},{key:"redo",value:function(e){if(this.canRedo())return this.pointer=this.pointer+1,Nu(e,this.timeline[this.pointer].patches)}}]),t}();function qx(t,e,r,n){var o,a=w.useMemo(function(){return new Fx},[]),i=w.useRef([]),s=w.useRef(function(){});typeof t=="function"?o=t:(o=t.methods,i.current=t.ignoreHistoryForActions,s.current=t.normalizeHistory);var u=w.useRef(n);u.current=n;var l=w.useRef(e),c=w.useMemo(function(){var m=s.current,y=i.current,x=u.current;return function(S,E){var j,P=r&&rl(r,function(){return S},a),_=Gc(Tu(S,function(C){var N,k;switch(E.type){case fe.UNDO:return a.undo(C);case fe.REDO:return a.redo(C);case fe.CLEAR:return a.clear(),_e({},C);case fe.IGNORE:case fe.MERGE:case fe.THROTTLE:var I,T=Yc(k=E.payload)||Xc(k)||os(k)||Kc(),O=T[0],A=T.slice(1);(I=o(C,P))[O].apply(I,Ce(A));break;default:(N=o(C,P))[E.type].apply(N,Ce(E.payload))}}),3),D=_[0],L=_[1],$=_[2];return j=D,x&&x(D,S,{type:E.type,params:E.payload,patches:L},P,function(C){var N=Tu(D,C);j=N[0],L=[].concat(Ce(L),Ce(N[1])),$=[].concat(Ce(N[2]),Ce($))}),[fe.UNDO,fe.REDO].includes(E.type)&&m&&(j=Wh(j,m)),[].concat(Ce(y),[fe.UNDO,fe.REDO,fe.IGNORE,fe.CLEAR]).includes(E.type)||(E.type===fe.THROTTLE?a.throttleAdd(L,$,E.config&&E.config.rate):E.type===fe.MERGE?a.merge(L,$):a.add(L,$)),j}},[a,o,r]),h=w.useCallback(function(){return l.current},[]),f=w.useMemo(function(){return new Ux(h)},[h]),d=w.useCallback(function(m){var y=c(l.current,m);l.current=y,f.notify()},[c,f]);w.useEffect(function(){f.notify()},[f]);var b=w.useMemo(function(){return r?rl(r,function(){return l.current},a):[]},[a,r]),g=w.useMemo(function(){var m=Object.keys(o(null,null)),y=i.current;return _e(_e({},m.reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,j=new Array(E),P=0;P<E;P++)j[P]=arguments[P];return d({type:S,payload:j})},x},{})),{},{history:{undo:function(){return d({type:fe.UNDO})},redo:function(){return d({type:fe.REDO})},clear:function(){return d({type:fe.CLEAR})},throttle:function(x){return _e({},m.filter(function(S){return!y.includes(S)}).reduce(function(S,E){return S[E]=function(){for(var j=arguments.length,P=new Array(j),_=0;_<j;_++)P[_]=arguments[_];return d({type:fe.THROTTLE,payload:[E].concat(P),config:{rate:x}})},S},{}))},ignore:function(){return _e({},m.filter(function(x){return!y.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,j=new Array(E),P=0;P<E;P++)j[P]=arguments[P];return d({type:fe.IGNORE,payload:[S].concat(j)})},x},{}))},merge:function(){return _e({},m.filter(function(x){return!y.includes(x)}).reduce(function(x,S){return x[S]=function(){for(var E=arguments.length,j=new Array(E),P=0;P<E;P++)j[P]=arguments[P];return d({type:fe.MERGE,payload:[S].concat(j)})},x},{}))}}})},[d,o]);return w.useMemo(function(){return{getState:h,subscribe:function(m,y,x){return f.subscribe(m,y,x)},actions:g,query:b,history:a}},[g,b,f,h,a])}function rl(t,e,r){var n=Object.keys(t()).reduce(function(o,a){return _e(_e({},o),{},ve({},a,function(){var i;return(i=t(e()))[a].apply(i,arguments)}))},{});return _e(_e({},n),{},{history:{canUndo:function(){return r.canUndo()},canRedo:function(){return r.canRedo()}}})}Bh(),$h();var Ux=function(){function t(e){Lr(this,t),ve(this,"getState",void 0),ve(this,"subscribers",[]),this.getState=e}return $r(t,[{key:"subscribe",value:function(e,r,n){var o=this,a=new Vx(function(){return e(o.getState())},r,n);return this.subscribers.push(a),this.unsubscribe.bind(this,a)}},{key:"unsubscribe",value:function(e){if(this.subscribers.length){var r=this.subscribers.indexOf(e);if(r>-1)return this.subscribers.splice(r,1)}}},{key:"notify",value:function(){this.subscribers.forEach(function(e){return e.collect()})}}]),t}(),Vx=function(){function t(e,r){var n=arguments.length>2&&arguments[2]!==void 0&&arguments[2];Lr(this,t),ve(this,"collected",void 0),ve(this,"collector",void 0),ve(this,"onChange",void 0),ve(this,"id",void 0),this.collector=e,this.onChange=r,n&&this.collect()}return $r(t,[{key:"collect",value:function(){try{var e=this.collector();wx(e,this.collected)||(this.collected=e,this.onChange&&this.onChange(this.collected))}catch(r){console.warn(r)}}}]),t}(),un=function(t){var e=t.getBoundingClientRect(),r=e.x,n=e.y,o=e.top,a=e.left,i=e.bottom,s=e.right,u=e.width,l=e.height,c=window.getComputedStyle(t),h={left:parseInt(c.marginLeft),right:parseInt(c.marginRight),bottom:parseInt(c.marginBottom),top:parseInt(c.marginTop)},f={left:parseInt(c.paddingLeft),right:parseInt(c.paddingRight),bottom:parseInt(c.paddingBottom),top:parseInt(c.paddingTop)};return{x:r,y:n,top:o,left:a,bottom:i,right:s,width:u,height:l,outerWidth:Math.round(u+h.left+h.right),outerHeight:Math.round(l+h.top+h.bottom),margin:h,padding:f,inFlow:t.parentElement&&!!function(d){var b=getComputedStyle(d);if(!(c.overflow&&c.overflow!=="visible"||b.float!=="none"||b.display==="grid"||b.display==="flex"&&b["flex-direction"]!=="column")){switch(c.position){case"static":case"relative":break;default:return}switch(t.tagName){case"TR":case"TBODY":case"THEAD":case"TFOOT":return!0}switch(c.display){case"block":case"list-item":case"table":case"flex":case"grid":return!0}}}(t.parentElement)}};function Wx(t,e){const{subscribe:r,getState:n,actions:o,query:a}=t,i=w.useRef(!0),s=w.useRef(null),u=w.useRef(e);u.current=e;const l=w.useCallback(f=>({...f,actions:o,query:a}),[o,a]);i.current&&e&&(s.current=e(n(),a),i.current=!1);const[c,h]=w.useState(l(s.current));return w.useEffect(()=>{let f;return u.current&&(f=r(d=>u.current(d,a),d=>{h(l(d))})),()=>{f&&f()}},[l,a,r]),c}var xr,Zc=function(){return Ex(arguments.length>0&&arguments[0]!==void 0?arguments[0]:10)},Gx=function(){function t(){Lr(this,t),ve(this,"isEnabled",!0),ve(this,"elementIdMap",new WeakMap),ve(this,"registry",new Map)}return $r(t,[{key:"getElementId",value:function(e){var r=this.elementIdMap.get(e);if(r)return r;var n=Zc();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(Cx(r.required,o.required))return o;this.getByElement(e,r.name).disable()}var a=null,i=this.getConnectorId(e,r.name);return this.registry.set(i,{id:i,required:r.required,enable:function(){a&&a(),a=r.connector(e,r.required,r.options)},disable:function(){a&&a()},remove:function(){return n.remove(i)}}),this.isEnabled&&this.registry.get(i).enable(),this.registry.get(i)}},{key:"get",value:function(e){return this.registry.get(e)}},{key:"remove",value:function(e){var r=this.get(e);r&&(r.disable(),this.registry.delete(r.id))}},{key:"enable",value:function(){this.isEnabled=!0,this.registry.forEach(function(e){e.enable()})}},{key:"disable",value:function(){this.isEnabled=!1,this.registry.forEach(function(e){e.disable()})}},{key:"getByElement",value:function(e,r){return this.get(this.getConnectorId(e,r))}},{key:"removeByElement",value:function(e,r){return this.remove(this.getConnectorId(e,r))}},{key:"clear",value:function(){this.disable(),this.elementIdMap=new WeakMap,this.registry=new Map}}]),t}();(function(t){t[t.HandlerDisabled=0]="HandlerDisabled",t[t.HandlerEnabled=1]="HandlerEnabled"})(xr||(xr={}));var Qc=function(){function t(e){Lr(this,t),ve(this,"options",void 0),ve(this,"registry",new Gx),ve(this,"subscribers",new Set),this.options=e}return $r(t,[{key:"listen",value:function(e){var r=this;return this.subscribers.add(e),function(){return r.subscribers.delete(e)}}},{key:"disable",value:function(){this.onDisable&&this.onDisable(),this.registry.disable(),this.subscribers.forEach(function(e){e(xr.HandlerDisabled)})}},{key:"enable",value:function(){this.onEnable&&this.onEnable(),this.registry.enable(),this.subscribers.forEach(function(e){e(xr.HandlerEnabled)})}},{key:"cleanup",value:function(){this.disable(),this.subscribers.clear(),this.registry.clear()}},{key:"addCraftEventListener",value:function(e,r,n,o){var a=function(i){(function(s,u,l){s.craft||(s.craft={stopPropagation:function(){},blockedEvents:{}});for(var c=s.craft&&s.craft.blockedEvents[u]||[],h=0;h<c.length;h++){var f=c[h];if(l!==f&&l.contains(f))return!0}return!1})(i,r,e)||(i.craft.stopPropagation=function(){i.craft.blockedEvents[r]||(i.craft.blockedEvents[r]=[]),i.craft.blockedEvents[r].push(e)},n(i))};return e.addEventListener(r,a,o),function(){return e.removeEventListener(r,a,o)}}},{key:"createConnectorsUsage",value:function(){var e=this,r=this.handlers(),n=new Set,o=!1,a=new Map;return{connectors:Object.entries(r).reduce(function(i,s){var u=Gc(s,2),l=u[0],c=u[1];return _e(_e({},i),{},ve({},l,function(h,f,d){var b=function(){var g=e.registry.register(h,{required:f,name:l,options:d,connector:c});return n.add(g.id),g};return a.set(e.registry.getConnectorId(h,l),b),o&&b(),h}))},{}),register:function(){o=!0,a.forEach(function(i){i()})},cleanup:function(){o=!1,n.forEach(function(i){return e.registry.remove(i)})}}}},{key:"derive",value:function(e,r){return new e(this,r)}},{key:"createProxyHandlers",value:function(e,r){var n=[],o=e.handlers(),a=new Proxy(o,{get:function(i,s,u){return s in o==0?Reflect.get(i,s,u):function(l){for(var c=arguments.length,h=new Array(c>1?c-1:0),f=1;f<c;f++)h[f-1]=arguments[f];var d=o[s].apply(o,[l].concat(h));d&&n.push(d)}}});return r(a),function(){n.forEach(function(i){i()})}}},{key:"reflect",value:function(e){return this.createProxyHandlers(this,e)}}]),t}(),Yx=function(t){(function(a,i){if(typeof i!="function"&&i!==null)throw new TypeError("Super expression must either be null or a function");a.prototype=Object.create(i&&i.prototype,{constructor:{value:a,writable:!0,configurable:!0}}),Object.defineProperty(a,"prototype",{writable:!1}),i&&Ja(a,i)})(o,Qc);var e,r,n=(e=o,r=function(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}(),function(){var a,i=br(e);if(r){var s=br(this).constructor;a=Reflect.construct(i,arguments,s)}else a=i.apply(this,arguments);return function(u,l){if(l&&(typeof l=="object"||typeof l=="function"))return l;if(l!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Pa(u)}(this,a)});function o(a,i){var s;return Lr(this,o),ve(Pa(s=n.call(this,i)),"derived",void 0),ve(Pa(s),"unsubscribeParentHandlerListener",void 0),s.derived=a,s.options=i,s.unsubscribeParentHandlerListener=s.derived.listen(function(u){switch(u){case xr.HandlerEnabled:return s.enable();case xr.HandlerDisabled:return s.disable();default:return}}),s}return $r(o,[{key:"inherit",value:function(a){return this.createProxyHandlers(this.derived,a)}},{key:"cleanup",value:function(){Za(br(o.prototype),"cleanup",this).call(this),this.unsubscribeParentHandlerListener()}}]),o}();function nl(t,e){e&&(typeof t=="function"?t(e):t.current=e)}function Xx(t,e){const r=t.ref;return oe(typeof r!="string","Cannot connect to an element with an existing string ref. Please convert it to use a callback ref instead, or wrap it into a <span> or <div>. Read more: https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute"),w.cloneElement(t,r?{ref:n=>{nl(r,n),nl(e,n)}}:{ref:e})}function Kx(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),Xx(n,t)}}function ed(t){return Object.keys(t).reduce((e,r)=>(e[r]=Kx((...n)=>t[r](...n)),e),{})}const Jx=({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?Di.createPortal(n,r.ownerDocument.body):n};var _t=function(t,e){var r="Deprecation warning: ".concat(t," will be deprecated in future relases."),n=e.suggest,o=e.doc;n&&(r+=" Please use ".concat(n," instead.")),o&&(r+="(".concat(o,")")),console.warn(r)},td=function(){return typeof window<"u"},Zx=function(){return td()&&/Linux/i.test(window.navigator.userAgent)},Qx=function(){return td()&&/Chrome/i.test(window.navigator.userAgent)},e2=Zt;(function(){try{var t=e2(Object,"defineProperty");return t({},"",{}),t}catch{}})();var ho={exports:{}};ho.exports;(function(t,e){var r=rt,n=e&&!e.nodeType&&e,o=n&&!0&&t&&!t.nodeType&&t,a=o&&o.exports===n,i=a?r.Buffer:void 0,s=i?i.allocUnsafe:void 0;function u(l,c){if(c)return l.slice();var h=l.length,f=s?s(h):new l.constructor(h);return l.copy(f),f}t.exports=u})(ho,ho.exports);ho.exports;var ol=Fo,al=ol?ol.prototype:void 0;al&&al.valueOf;var il=ns;il&&il.isMap;var sl=ns;sl&&sl.isSet;typeof window<"u"&&(window.__CRAFTJS__||(window.__CRAFTJS__={}),window.__CRAFTJS__["@craftjs/core"]="0.2.12");const rd=w.createContext(null),nd=({id:t,related:e=!1,children:r})=>w.createElement(rd.Provider,{value:{id:t,related:e}},r);function ul(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(o){return Object.getOwnPropertyDescriptor(t,o).enumerable})),r.push.apply(r,n)}return r}function se(t){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?ul(Object(r),!0).forEach(function(n){ge(t,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):ul(Object(r)).forEach(function(n){Object.defineProperty(t,n,Object.getOwnPropertyDescriptor(r,n))})}return t}function ei(t){return ei=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ei(t)}function Go(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function t2(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,id(n.key),n)}}function Yo(t,e,r){return e&&t2(t.prototype,e),Object.defineProperty(t,"prototype",{writable:!1}),t}function ge(t,e,r){return(e=id(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function as(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&ti(t,e)}function mo(t){return mo=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},mo(t)}function ti(t,e){return ti=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,n){return r.__proto__=n,r},ti(t,e)}function is(t,e){if(t==null)return{};var r,n,o=function(i,s){if(i==null)return{};var u,l,c={},h=Object.keys(i);for(l=0;l<h.length;l++)s.indexOf(u=h[l])>=0||(c[u]=i[u]);return c}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(n=0;n<a.length;n++)e.indexOf(r=a[n])>=0||Object.prototype.propertyIsEnumerable.call(t,r)&&(o[r]=t[r])}return o}function Qr(t){if(t===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ss(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=mo(t);if(e){var o=mo(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(a,i){if(i&&(typeof i=="object"||typeof i=="function"))return i;if(i!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Qr(a)}(this,r)}}function od(t,e){return function(r){if(Array.isArray(r))return r}(t)||function(r,n){var o=r==null?null:typeof Symbol<"u"&&r[Symbol.iterator]||r["@@iterator"];if(o!=null){var a,i,s,u,l=[],c=!0,h=!1;try{if(s=(o=o.call(r)).next,n!==0)for(;!(c=(a=s.call(o)).done)&&(l.push(a.value),l.length!==n);c=!0);}catch(f){h=!0,i=f}finally{try{if(!c&&o.return!=null&&(u=o.return(),Object(u)!==u))return}finally{if(h)throw i}}return l}}(t,e)||ad(t,e)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
229
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ln(t){return function(e){if(Array.isArray(e))return ri(e)}(t)||function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}(t)||ad(t)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
230
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ad(t,e){if(t){if(typeof t=="string")return ri(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return r==="Object"&&t.constructor&&(r=t.constructor.name),r==="Map"||r==="Set"?Array.from(t):r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ri(t,e):void 0}}function ri(t,e){(e==null||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}function id(t){var e=function(r,n){if(typeof r!="object"||r===null)return r;var o=r[Symbol.toPrimitive];if(o!==void 0){var a=o.call(r,"string");if(typeof a!="object")return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(r)}(t);return typeof e=="symbol"?e:String(e)}const us=w.createContext(null);var sd=w.createContext(null),ud=function(){return w.useContext(sd)};function Qt(t){var e=ud(),r=w.useContext(us);oe(r,Bx);var n=Wx(r,t),o=w.useMemo(function(){return e&&e.createConnectorsUsage()},[e]);w.useEffect(function(){return o.register(),function(){o.cleanup()}},[o]);var a=w.useMemo(function(){return o&&ed(o.connectors)},[o]);return se(se({},n),{},{connectors:a,inContext:!!r,store:r})}var r2=["actions","query","connectors"];function Xo(t){var e=w.useContext(rd);oe(e,Hx);var r=e.id,n=e.related,o=Qt(function(c){return r&&c.nodes[r]&&t&&t(c.nodes[r])}),a=o.actions,i=o.connectors,s=is(o,r2),u=w.useMemo(function(){return ed({connect:function(c){return i.connect(c,r)},drag:function(c){return i.drag(c,r)}})},[i,r]),l=w.useMemo(function(){return{setProp:function(c,h){h?a.history.throttle(h).setProp(r,c):a.setProp(r,c)},setCustom:function(c,h){h?a.history.throttle(h).setCustom(r,c):a.setCustom(r,c)},setHidden:function(c){return a.setHidden(r,c)}}},[a,r]);return se(se({},s),{},{id:r,related:n,inNodeContext:!!e,actions:l,connectors:u})}var n2=["id","related","actions","inNodeContext","connectors"];function ne(t){var e=Xo(t),r=e.id,n=e.related,o=e.actions,a=e.inNodeContext,i=e.connectors;return se(se({},is(e,n2)),{},{actions:o,id:r,related:n,setProp:function(s,u){return _t("useNode().setProp()",{suggest:"useNode().actions.setProp()"}),o.setProp(s,u)},inNodeContext:a,connectors:i})}const o2=({render:t})=>{const{connectors:{connect:e,drag:r}}=ne();return typeof t.type=="string"?e(r(w.cloneElement(t))):t},a2=()=>{const{type:t,props:e,nodes:r,hydrationTimestamp:n}=Xo(o=>({type:o.data.type,props:o.data.props,nodes:o.data.nodes,hydrationTimestamp:o._hydrationTimestamp}));return w.useMemo(()=>{let o=e.children;r&&r.length>0&&(o=w.createElement(w.Fragment,null,r.map(i=>w.createElement(ls,{id:i,key:i}))));const a=w.createElement(t,e,o);return typeof t=="string"?w.createElement(o2,{render:a}):a},[t,e,n,r])},i2=({render:t})=>{const{hidden:e}=Xo(n=>({hidden:n.data.hidden})),{onRender:r}=Qt(n=>({onRender:n.options.onRender}));return e?null:w.createElement(r,{render:t||w.createElement(a2,null)})},ls=({id:t,render:e})=>w.createElement(nd,{id:t},w.createElement(i2,{render:e})),ni={is:"div",canvas:!1,custom:{},hidden:!1},s2={is:"type",canvas:"isCanvas"};function bt({id:t,children:e,...r}){const{is:n}={...ni,...r},{query:o,actions:a}=Qt(),{id:i,inNodeContext:s}=Xo(),[u]=w.useState(()=>{oe(!!t,Ax);const l=o.node(i).get();if(s){const c=l.data.linkedNodes[t]?o.node(l.data.linkedNodes[t]).get():null;if(c&&c.data.type===n)return c.id;const h=w.createElement(bt,r,e),f=o.parseReactElement(h).toNodeTree();return a.history.ignore().addLinkedNodeFromTree(f,i,t),f.rootNodeId}return null});return u?w.createElement(ls,{id:u}):null}const ld=()=>_t("<Canvas />",{suggest:"<Element canvas={true} />"});function oi({...t}){return w.useEffect(()=>ld(),[]),w.createElement(bt,{...t,canvas:!0})}const u2=()=>{const{timestamp:t}=Qt(e=>({timestamp:e.nodes[mt]&&e.nodes[mt]._hydrationTimestamp}));return t?w.createElement(ls,{id:mt,key:t}):null},cd=({children:t,json:e,data:r})=>{const{actions:n,query:o}=Qt();e&&_t("<Frame json={...} />",{suggest:"<Frame data={...} />"});const a=w.useRef(!1);if(!a.current){const i=r||e;if(i)n.history.ignore().deserialize(i);else if(t){const s=w.Children.only(t),u=o.parseReactElement(s).toNodeTree((l,c)=>(c===s&&(l.id=mt),l));n.history.ignore().addNodeTree(u)}a.current=!0}return w.createElement(u2,null)};var ll;(function(t){t[t.Any=0]="Any",t[t.Id=1]="Id",t[t.Obj=2]="Obj"})(ll||(ll={}));const ka=t=>{const{addLinkedNodeFromTree:e,setDOM:r,setNodeEvent:n,replaceNodes:o,reset:a,...i}=t;return i};function Lt(t){const{connectors:e,actions:r,query:n,store:o,...a}=Qt(t),i=ka(r);return{connectors:e,actions:w.useMemo(()=>({...i,history:{...i.history,ignore:(...s)=>ka(i.history.ignore(...s)),throttle:(...s)=>ka(i.history.throttle(...s))}}),[i]),query:n,store:o,...a}}var dd=function(t){return Object.fromEntries?Object.fromEntries(t):t.reduce(function(e,r){var n=od(r,2),o=n[0],a=n[1];return se(se({},e),{},ge({},o,a))},{})},ft=function(t,e,r){var n=Array.isArray(e)?e:[e],o=se({existOnly:!1,idOnly:!1},r||{}),a=n.filter(function(i){return!!i}).map(function(i){return typeof i=="string"?{node:t[i],exists:!!t[i]}:ei(i)!=="object"||o.idOnly?{node:null,exists:!1}:{node:i,exists:!!t[i.id]}});return o.existOnly&&oe(a.filter(function(i){return!i.exists}).length===0,Wc),a},l2=["history"],lr=null,bo=function(t,e){if(typeof e=="string")return e;var r,n=function(o,a){var i=function(s){if(lr&&lr.resolver===s)return lr.reversed;lr={resolver:s,reversed:new Map};for(var u=0,l=Object.entries(s);u<l.length;u++){var c=od(l[u],2);lr.reversed.set(c[1],c[0])}return lr.reversed}(o).get(a);return i!==void 0?i:null}(t,e);return oe(n,po.replace("%node_type%",(r=e).name||r.displayName)),n};const c2=(t,e)=>typeof t=="string"?t:{resolvedName:bo(e,t)},ai=(t,e)=>{let{type:r,isCanvas:n,props:o}=t;return o=Object.keys(o).reduce((a,i)=>{const s=o[i];return s==null||typeof s=="function"||(a[i]=i==="children"&&typeof s!="string"?w.Children.map(s,u=>typeof u=="string"?u:ai(u,e)):typeof s.type=="function"?ai(s,e):s),a},{}),{type:c2(r,e),isCanvas:!!n,props:o}},d2=(t,e)=>{const{type:r,props:n,isCanvas:o,name:a,...i}=t;return{...ai({type:r,isCanvas:o,props:n},e),...i}};function ii(t,e){oe(typeof e=="string",Dx);var r=t.nodes[e],n=function(o){return ii(t,o)};return{isCanvas:function(){return!!r.data.isCanvas},isRoot:function(){return r.id===mt},isLinkedNode:function(){return r.data.parent&&n(r.data.parent).linkedNodes().includes(r.id)},isTopLevelNode:function(){return this.isRoot()||this.isLinkedNode()},isDeletable:function(){return!this.isTopLevelNode()},isParentOfTopLevelNodes:function(){return r.data.linkedNodes&&Object.keys(r.data.linkedNodes).length>0},isParentOfTopLevelCanvas:function(){return _t("query.node(id).isParentOfTopLevelCanvas",{suggest:"query.node(id).isParentOfTopLevelNodes"}),this.isParentOfTopLevelNodes()},isSelected:function(){return t.events.selected.has(e)},isHovered:function(){return t.events.hovered.has(e)},isDragged:function(){return t.events.dragged.has(e)},get:function(){return r},ancestors:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return function a(i){var s=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,l=t.nodes[i];return l?(s.push(i),l.data.parent&&(o||!o&&u===0)&&(s=a(l.data.parent,s,u+1)),s):s}(r.data.parent)},descendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0],a=arguments.length>1?arguments[1]:void 0;return function i(s){var u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return(o||!o&&l===0)&&t.nodes[s]&&(a!=="childNodes"&&n(s).linkedNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)}),a!=="linkedNodes"&&n(s).childNodes().forEach(function(c){u.push(c),u=i(c,u,l+1)})),u}(e)},linkedNodes:function(){return Object.values(r.data.linkedNodes||{})},childNodes:function(){return r.data.nodes||[]},isDraggable:function(o){try{var a=r;return oe(!this.isTopLevelNode(),el),oe(ii(t,a.data.parent).isCanvas(),Qu),oe(a.rules.canDrag(a,n),Ix),!0}catch(i){return o&&o(i),!1}},isDroppable:function(o,a){var i=ft(t.nodes,o),s=r;try{oe(this.isCanvas(),_x),oe(s.rules.canMoveIn(i.map(function(l){return l.node}),s,n),Px);var u={};return i.forEach(function(l){var c=l.node,h=l.exists;if(oe(c.rules.canDrop(s,c,n),Ox),h){oe(!n(c.id).isTopLevelNode(),el);var f=n(c.id).descendants(!0);oe(!f.includes(s.id)&&s.id!==c.id,Rx);var d=c.data.parent&&t.nodes[c.data.parent];oe(d.data.isCanvas,Qu),oe(d||!d&&!t.nodes[c.id],jx),d.id!==s.id&&(u[d.id]||(u[d.id]=[]),u[d.id].push(c))}}),Object.keys(u).forEach(function(l){var c=t.nodes[l];oe(c.rules.canMoveOut(u[l],c,n),kx)}),!0}catch(l){return a&&a(l),!1}},toSerializedNode:function(){return d2(r.data,t.options.resolver)},toNodeTree:function(o){var a=[e].concat(ln(this.descendants(!0,o))).reduce(function(i,s){return i[s]=n(s).get(),i},{});return{rootNodeId:e,nodes:a}},decendants:function(){var o=arguments.length>0&&arguments[0]!==void 0&&arguments[0];return _t("query.node(id).decendants",{suggest:"query.node(id).descendants"}),this.descendants(o)},isTopLevelCanvas:function(){return!this.isRoot()&&!r.data.parent}}}function fd(t,e,r,n){for(var o={parent:t,index:0,where:"before"},a=0,i=0,s=0,u=0,l=0,c=0,h=0,f=e.length;h<f;h++){var d=e[h];if(c=d.top+d.outerHeight,u=d.left+d.outerWidth/2,l=d.top+d.outerHeight/2,!(i&&d.left>i||s&&l>=s||a&&d.left+d.outerWidth<a))if(o.index=h,d.inFlow){if(n<l){o.where="before";break}o.where="after"}else n<c&&(s=c),r<u?(i=u,o.where="before"):(a=u,o.where="after")}return o}var $n=function(t){return typeof t=="string"?t:t.name};function cl(t,e){var r=t.data.type,n={id:t.id||Zc(),_hydrationTimestamp:Date.now(),data:se({type:r,name:$n(r),displayName:$n(r),props:{},custom:{},parent:null,isCanvas:!1,hidden:!1,nodes:[],linkedNodes:{}},t.data),info:{},related:{},events:{selected:!1,dragged:!1,hovered:!1},rules:{canDrag:function(){return!0},canDrop:function(){return!0},canMoveIn:function(){return!0},canMoveOut:function(){return!0}},dom:null};if(n.data.type===bt||n.data.type===oi){var o=se(se({},ni),n.data.props);n.data.props=Object.keys(n.data.props).reduce(function(s,u){return Object.keys(ni).includes(u)?n.data[s2[u]||u]=o[u]:s[u]=n.data.props[u],s},{}),n.data.name=$n(r=n.data.type),n.data.displayName=$n(r),n.data.type===oi&&(n.data.isCanvas=!0,ld())}e&&e(n);var a=r.craft;if(a){if(n.data.displayName=a.displayName||a.name||n.data.displayName,n.data.props=se(se({},a.props||a.defaultProps||{}),n.data.props),n.data.custom=se(se({},a.custom||{}),n.data.custom),a.isCanvas!=null&&(n.data.isCanvas=a.isCanvas),a.rules&&Object.keys(a.rules).forEach(function(s){["canDrag","canDrop","canMoveIn","canMoveOut"].includes(s)&&(n.rules[s]=a.rules[s])}),a.related){var i={id:n.id,related:!0};Object.keys(a.related).forEach(function(s){n.related[s]=function(u){return w.createElement(nd,i,w.createElement(a.related[s],u))}})}a.info&&(n.info=a.info)}return n}const si=(t,e,r)=>{let{type:n,props:o}=t;const a=((s,u)=>typeof s=="object"&&s.resolvedName?s.resolvedName==="Canvas"?oi:u[s.resolvedName]:typeof s=="string"?s:null)(n,e);if(!a)return;o=Object.keys(o).reduce((s,u)=>{const l=o[u];return s[u]=l==null?null:typeof l=="object"&&l.resolvedName?si(l,e):u==="children"&&Array.isArray(l)?l.map(c=>typeof c=="string"?c:si(c,e)):l,s},{});const i={...w.createElement(a,{...o})};return{...i,name:bo(e,i.type)}},f2=(t,e)=>{const{type:r,props:n,...o}=t;oe(r!==void 0&&typeof r=="string"||r!==void 0&&r.resolvedName!==void 0,$x.replace("%displayName%",t.displayName).replace("%availableComponents%",Object.keys(e).join(", ")));const{type:a,name:i,props:s}=si(t,e),{parent:u,custom:l,displayName:c,isCanvas:h,nodes:f,hidden:d}=o;return{type:a,name:i,displayName:c||i,props:s,custom:l||{},isCanvas:!!h,hidden:!!d,parent:u,linkedNodes:o.linkedNodes||o._childCanvas||{},nodes:f||[]}},p2=(t,e)=>{if(e.length<1)return{[t.id]:t};const r=e.map(({rootNodeId:o})=>o),n={...t,data:{...t.data,nodes:r}};return e.reduce((o,a)=>{const i=a.nodes[a.rootNodeId];return{...o,...a.nodes,[i.id]:{...i,data:{...i.data,parent:t.id}}}},{[t.id]:n})},h2=(t,e)=>({rootNodeId:t.id,nodes:p2(t,e)});function pd(t){const e=t&&t.options,r=()=>pd(t);return{getDropPlaceholder:(n,o,a,i=s=>t.nodes[s.id].dom)=>{const s=t.nodes[o],u=r().node(s.id).isCanvas()?s:t.nodes[s.data.parent];if(!u)return;const l=u.data.nodes||[],c=fd(u,l?l.reduce((d,b)=>{const g=i(t.nodes[b]);if(g){const m={id:b,...un(g)};d.push(m)}return d},[]):[],a.x,a.y),h=l.length&&t.nodes[l[c.index]],f={placement:{...c,currentNode:h},error:null};return ft(t.nodes,n).forEach(({node:d,exists:b})=>{b&&r().node(d.id).isDraggable(g=>f.error=g)}),r().node(u.id).isDroppable(n,d=>f.error=d),f},getOptions:()=>e,getNodes:()=>t.nodes,node:n=>ii(t,n),getSerializedNodes(){const n=Object.keys(t.nodes).map(o=>[o,this.node(o).toSerializedNode()]);return dd(n)},getEvent:n=>function(o,a){var i=o.events[a];return{contains:function(s){return i.has(s)},isEmpty:function(){return this.all().length===0},first:function(){return this.all()[0]},last:function(){var s=this.all();return s[s.length-1]},all:function(){return Array.from(i)},size:function(){return this.all().length},at:function(s){return this.all()[s]},raw:function(){return i}}}(t,n),serialize(){return JSON.stringify(this.getSerializedNodes())},parseReactElement:n=>({toNodeTree(o){let a=function(s,u){let l=s;return typeof l=="string"&&(l=w.createElement(w.Fragment,{},l)),cl({data:{type:l.type,props:{...l.props}}},c=>{u&&u(c,l)})}(n,(s,u)=>{const l=bo(t.options.resolver,s.data.type);s.data.displayName=s.data.displayName||l,s.data.name=l,o&&o(s,u)}),i=[];return n.props&&n.props.children&&(i=w.Children.toArray(n.props.children).reduce((s,u)=>(w.isValidElement(u)&&s.push(r().parseReactElement(u).toNodeTree(o)),s),[])),h2(a,i)}}),parseSerializedNode:n=>({toNode(o){const a=f2(n,t.options.resolver);oe(a.type,po);const i=typeof o=="string"&&o;return i&&_t("query.parseSerializedNode(...).toNode(id)",{suggest:"query.parseSerializedNode(...).toNode(node => node.id = id)"}),r().parseFreshNode({...i?{id:i}:{},data:a}).toNode(!i&&o)}}),parseFreshNode:n=>({toNode:o=>cl(n,a=>{a.data.parent===Vc&&(a.data.parent=mt);const i=bo(t.options.resolver,a.data.type);oe(i!==null,po),a.data.displayName=a.data.displayName||i,a.data.name=i,o&&o(a)})}),createNode(n,o){_t(`query.createNode(${n})`,{suggest:`query.parseReactElement(${n}).toNodeTree()`});const a=this.parseReactElement(n).toNodeTree(),i=a.nodes[a.rootNodeId];return o&&(o.id&&(i.id=o.id),o.data&&(i.data={...i.data,...o.data})),i},getState:()=>t}}var m2=function(t){as(r,Qc);var e=ss(r);function r(){return Go(this,r),e.apply(this,arguments)}return Yo(r,[{key:"handlers",value:function(){return{connect:function(n,o){},select:function(n,o){},hover:function(n,o){},drag:function(n,o){},drop:function(n,o){},create:function(n,o,a){}}}}]),r}();(function(t){as(r,Yx);var e=ss(r);function r(){return Go(this,r),e.apply(this,arguments)}return Yo(r)})();var dl=function(t){t.preventDefault()},ui=function(){function t(e,r){Go(this,t),ge(this,"store",void 0),ge(this,"dragTarget",void 0),ge(this,"currentDropTargetId",void 0),ge(this,"currentDropTargetCanvasAncestorId",void 0),ge(this,"currentIndicator",null),ge(this,"currentTargetId",void 0),ge(this,"currentTargetChildDimensions",void 0),ge(this,"dragError",void 0),ge(this,"draggedNodes",void 0),ge(this,"onScrollListener",void 0),this.store=e,this.dragTarget=r,this.currentDropTargetId=null,this.currentDropTargetCanvasAncestorId=null,this.currentTargetId=null,this.currentTargetChildDimensions=null,this.currentIndicator=null,this.dragError=null,this.draggedNodes=this.getDraggedNodes(),this.validateDraggedNodes(),this.onScrollListener=this.onScroll.bind(this),window.addEventListener("scroll",this.onScrollListener,!0),window.addEventListener("dragover",dl,!1)}return Yo(t,[{key:"cleanup",value:function(){window.removeEventListener("scroll",this.onScrollListener,!0),window.removeEventListener("dragover",dl,!1)}},{key:"onScroll",value:function(e){var r=e.target,n=this.store.query.node(mt).get();r instanceof Element&&n&&n.dom&&r.contains(n.dom)&&(this.currentTargetChildDimensions=null)}},{key:"getDraggedNodes",value:function(){return ft(this.store.query.getNodes(),this.dragTarget.type==="new"?this.dragTarget.tree.nodes[this.dragTarget.tree.rootNodeId]:this.dragTarget.nodes)}},{key:"validateDraggedNodes",value:function(){var e=this;this.dragTarget.type!=="new"&&this.draggedNodes.forEach(function(r){r.exists&&e.store.query.node(r.node.id).isDraggable(function(n){e.dragError=n})})}},{key:"isNearBorders",value:function(e,r,n){return e.top+t.BORDER_OFFSET>n||e.bottom-t.BORDER_OFFSET<n||e.left+t.BORDER_OFFSET>r||e.right-t.BORDER_OFFSET<r}},{key:"isDiff",value:function(e){return!this.currentIndicator||this.currentIndicator.placement.parent.id!==e.parent.id||this.currentIndicator.placement.index!==e.index||this.currentIndicator.placement.where!==e.where}},{key:"getChildDimensions",value:function(e){var r=this,n=this.currentTargetChildDimensions;return this.currentTargetId===e.id&&n?n:e.data.nodes.reduce(function(o,a){var i=r.store.query.node(a).get().dom;return i&&o.push(se({id:a},un(i))),o},[])}},{key:"getCanvasAncestor",value:function(e){var r=this;if(e===this.currentDropTargetId&&this.currentDropTargetCanvasAncestorId){var n=this.store.query.node(this.currentDropTargetCanvasAncestorId).get();if(n)return n}return function o(a){var i=r.store.query.node(a).get();return i&&i.data.isCanvas?i:i.data.parent?o(i.data.parent):null}(e)}},{key:"computeIndicator",value:function(e,r,n){var o=this.getCanvasAncestor(e);if(o&&(this.currentDropTargetId=e,this.currentDropTargetCanvasAncestorId=o.id,o.data.parent&&this.isNearBorders(un(o.dom),r,n)&&!this.store.query.node(o.id).isLinkedNode()&&(o=this.store.query.node(o.data.parent).get()),o)){this.currentTargetChildDimensions=this.getChildDimensions(o),this.currentTargetId=o.id;var a=fd(o,this.currentTargetChildDimensions,r,n);if(this.isDiff(a)){var i=this.dragError;i||this.store.query.node(o.id).isDroppable(this.draggedNodes.map(function(l){return l.node}),function(l){i=l});var s=o.data.nodes[a.index],u=s&&this.store.query.node(s).get();return this.currentIndicator={placement:se(se({},a),{},{currentNode:u}),error:i},this.currentIndicator}}}},{key:"getIndicator",value:function(){return this.currentIndicator}}]),t}();ge(ui,"BORDER_OFFSET",10);var fl=function(t,e){if(e.length===1||arguments.length>2&&arguments[2]!==void 0&&arguments[2]){var r=e[0].getBoundingClientRect(),n=r.width,o=r.height,a=e[0].cloneNode(!0);return a.style.position="absolute",a.style.left="-100%",a.style.top="-100%",a.style.width="".concat(n,"px"),a.style.height="".concat(o,"px"),a.style.pointerEvents="none",a.classList.add("drag-shadow"),document.body.appendChild(a),t.dataTransfer.setDragImage(a,0,0),a}var i=document.createElement("div");return i.style.position="absolute",i.style.left="-100%",i.style.top="-100%",i.style.width="100%",i.style.height="100%",i.style.pointerEvents="none",i.classList.add("drag-shadow-container"),e.forEach(function(s){var u=s.getBoundingClientRect(),l=u.width,c=u.height,h=u.top,f=u.left,d=s.cloneNode(!0);d.style.position="absolute",d.style.left="".concat(f,"px"),d.style.top="".concat(h,"px"),d.style.width="".concat(l,"px"),d.style.height="".concat(c,"px"),d.classList.add("drag-shadow"),i.appendChild(d)}),document.body.appendChild(i),t.dataTransfer.setDragImage(i,t.clientX,t.clientY),i},hd=function(t){as(r,m2);var e=ss(r);function r(){var n;Go(this,r);for(var o=arguments.length,a=new Array(o),i=0;i<o;i++)a[i]=arguments[i];return ge(Qr(n=e.call.apply(e,[this].concat(a))),"draggedElementShadow",void 0),ge(Qr(n),"dragTarget",void 0),ge(Qr(n),"positioner",null),ge(Qr(n),"currentSelectedElementIds",[]),n}return Yo(r,[{key:"onDisable",value:function(){this.options.store.actions.clearEvents()}},{key:"handlers",value:function(){var n=this,o=this.options.store;return{connect:function(a,i){return o.actions.setDOM(i,a),n.reflect(function(s){s.select(a,i),s.hover(a,i),s.drop(a,i)})},select:function(a,i){var s=n.addCraftEventListener(a,"mousedown",function(l){l.craft.stopPropagation();var c=[];if(i){var h=o.query,f=h.getEvent("selected").all();(n.options.isMultiSelectEnabled(l)||f.includes(i))&&(c=f.filter(function(d){var b=h.node(d).descendants(!0),g=h.node(d).ancestors(!0);return!b.includes(i)&&!g.includes(i)})),c.includes(i)||c.push(i)}o.actions.setNodeEvent("selected",c)}),u=n.addCraftEventListener(a,"click",function(l){l.craft.stopPropagation();var c=o.query.getEvent("selected").all(),h=n.options.isMultiSelectEnabled(l),f=n.currentSelectedElementIds.includes(i),d=ln(c);h&&f?(d.splice(d.indexOf(i),1),o.actions.setNodeEvent("selected",d)):!h&&c.length>1&&o.actions.setNodeEvent("selected",d=[i]),n.currentSelectedElementIds=d});return function(){s(),u()}},hover:function(a,i){var s=n.addCraftEventListener(a,"mouseover",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",i)}),u=null;return n.options.removeHoverOnMouseleave&&(u=n.addCraftEventListener(a,"mouseleave",function(l){l.craft.stopPropagation(),o.actions.setNodeEvent("hovered",null)})),function(){s(),u&&u()}},drop:function(a,i){var s=n.addCraftEventListener(a,"dragover",function(l){if(l.craft.stopPropagation(),l.preventDefault(),n.positioner){var c=n.positioner.computeIndicator(i,l.clientX,l.clientY);c&&o.actions.setIndicator(c)}}),u=n.addCraftEventListener(a,"dragenter",function(l){l.craft.stopPropagation(),l.preventDefault()});return function(){u(),s()}},drag:function(a,i){if(!o.query.node(i).isDraggable())return function(){};a.setAttribute("draggable","true");var s=n.addCraftEventListener(a,"dragstart",function(l){l.craft.stopPropagation();var c=o.query,h=o.actions,f=c.getEvent("selected").all(),d=n.options.isMultiSelectEnabled(l);n.currentSelectedElementIds.includes(i)||(f=d?[].concat(ln(f),[i]):[i],o.actions.setNodeEvent("selected",f)),h.setNodeEvent("dragged",f);var b=f.map(function(g){return c.node(g).get().dom});n.draggedElementShadow=fl(l,b,r.forceSingleDragShadow),n.dragTarget={type:"existing",nodes:f},n.positioner=new ui(n.options.store,n.dragTarget)}),u=n.addCraftEventListener(a,"dragend",function(l){l.craft.stopPropagation(),n.dropElement(function(c,h){c.type!=="new"&&o.actions.move(c.nodes,h.placement.parent.id,h.placement.index+(h.placement.where==="after"?1:0))})});return function(){a.setAttribute("draggable","false"),s(),u()}},create:function(a,i,s){a.setAttribute("draggable","true");var u=n.addCraftEventListener(a,"dragstart",function(c){var h;if(c.craft.stopPropagation(),typeof i=="function"){var f=i();h=w.isValidElement(f)?o.query.parseReactElement(f).toNodeTree():f}else h=o.query.parseReactElement(i).toNodeTree();n.draggedElementShadow=fl(c,[c.currentTarget],r.forceSingleDragShadow),n.dragTarget={type:"new",tree:h},n.positioner=new ui(n.options.store,n.dragTarget)}),l=n.addCraftEventListener(a,"dragend",function(c){c.craft.stopPropagation(),n.dropElement(function(h,f){h.type!=="existing"&&(o.actions.addNodeTree(h.tree,f.placement.parent.id,f.placement.index+(f.placement.where==="after"?1:0)),s&&eb(s.onCreate)&&s.onCreate(h.tree))})});return function(){a.removeAttribute("draggable"),u(),l()}}}}},{key:"dropElement",value:function(n){var o=this.options.store;if(this.positioner){var a=this.draggedElementShadow,i=this.positioner.getIndicator();this.dragTarget&&i&&!i.error&&n(this.dragTarget,i),a&&(a.parentNode.removeChild(a),this.draggedElementShadow=null),this.dragTarget=null,o.actions.setIndicator(null),o.actions.setNodeEvent("dragged",null),this.positioner.cleanup(),this.positioner=null}}}]),r}();function b2(t,e,r){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:2,o=0,a=0,i=0,s=0,u=t.where;return r?r.inFlow?(i=r.outerWidth,s=n,o=u==="before"?r.top:r.bottom,a=r.left):(i=n,s=r.outerHeight,o=r.top,a=u==="before"?r.left:r.left+r.outerWidth):e&&(o=e.top+e.padding.top,a=e.left+e.padding.left,i=e.outerWidth-e.padding.right-e.padding.left-e.margin.left-e.margin.right,s=n),{top:"".concat(o,"px"),left:"".concat(a,"px"),width:"".concat(i,"px"),height:"".concat(s,"px")}}ge(hd,"forceSingleDragShadow",Qx()&&Zx());const g2=()=>{const{indicator:t,indicatorOptions:e,enabled:r}=Qt(o=>({indicator:o.indicator,indicatorOptions:o.options.indicator,enabled:o.options.enabled})),n=ud();return w.useEffect(()=>{n&&(r?n.enable():n.disable())},[r,n]),t?w.createElement(Jx,{className:e.className,style:{...b2(t.placement,un(t.placement.parent.dom),t.placement.currentNode&&un(t.placement.currentNode.dom),e.thickness),backgroundColor:t.error?e.error:e.success,transition:e.transition||"0.2s ease-in",...e.style??{}},parentDom:t.placement.parent.dom}):null},v2=({children:t})=>{const e=w.useContext(us),r=w.useMemo(()=>e.query.getOptions().handlers(e),[e]);return r?w.createElement(sd.Provider,{value:r},w.createElement(g2,null),t):null},pl={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 hd({store:t,removeHoverOnMouseleave:!1,isMultiSelectEnabled:e=>!!e.metaKey}),normalizeNodes:()=>{}}},y2={methods:function(t,e){return se(se({},function(r,n){var o=function(s,u,l){if(function f(d,b){var g=s.nodes[d];typeof g.data.type!="string"&&oe(r.options.resolver[g.data.name],po.replace("%node_type%","".concat(g.data.type.name))),r.nodes[d]=se(se({},g),{},{data:se(se({},g.data),{},{parent:b})}),g.data.nodes.length>0&&(delete r.nodes[d].data.props.children,g.data.nodes.forEach(function(m){return f(m,g.id)})),Object.values(g.data.linkedNodes).forEach(function(m){return f(m,g.id)})}(s.rootNodeId,u),u||s.rootNodeId!==mt){var c=a(u);if(l.type!=="child")c.data.linkedNodes[l.id]=s.rootNodeId;else{var h=l.index;h!=null?c.data.nodes.splice(h,0,s.rootNodeId):c.data.nodes.push(s.rootNodeId)}}},a=function(s){oe(s,Nx);var u=r.nodes[s];return oe(u,Wc),u},i=function s(u){var l=r.nodes[u],c=r.nodes[l.data.parent];if(l.data.nodes&&ln(l.data.nodes).forEach(function(d){return s(d)}),l.data.linkedNodes&&Object.values(l.data.linkedNodes).map(function(d){return s(d)}),c.data.nodes.includes(u)){var h=c.data.nodes;h.splice(h.indexOf(u),1)}else{var f=Object.keys(c.data.linkedNodes).find(function(d){return c.data.linkedNodes[d]===d});f&&delete c.data.linkedNodes[f]}(function(d,b){Object.keys(d.events).forEach(function(g){var m=d.events[g];m&&m.has&&m.has(b)&&(d.events[g]=new Set(Array.from(m).filter(function(y){return b!==y})))})})(r,u),delete r.nodes[u]};return{addLinkedNodeFromTree:function(s,u,l){var c=a(u).data.linkedNodes[l];c&&i(c),o(s,u,{type:"linked",id:l})},add:function(s,u,l){var c=[s];Array.isArray(s)&&(_t("actions.add(node: Node[])",{suggest:"actions.add(node: Node)"}),c=s),c.forEach(function(h){o({nodes:ge({},h.id,h),rootNodeId:h.id},u,{type:"child",index:l})})},addNodeTree:function(s,u,l){o(s,u,{type:"child",index:l})},delete:function(s){ft(r.nodes,s,{existOnly:!0,idOnly:!0}).forEach(function(u){var l=u.node;oe(!n.node(l.id).isTopLevelNode(),Mx),i(l.id)})},deserialize:function(s){var u=typeof s=="string"?JSON.parse(s):s,l=Object.keys(u).map(function(c){var h=c;return c===Vc&&(h=mt),[h,n.parseSerializedNode(u[c]).toNode(function(f){return f.id=h})]});this.replaceNodes(dd(l))},move:function(s,u,l){var c=ft(r.nodes,s,{existOnly:!0}),h=r.nodes[u],f=new Set;c.forEach(function(d,b){var g=d.node,m=g.id,y=g.data.parent;n.node(u).isDroppable([m],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(m);x[S]="$$",h.data.nodes.splice(l+b,0,m),r.nodes[m].data.parent=u}),f.forEach(function(d){var b=d.length;ln(d).reverse().forEach(function(g,m){g==="$$"&&d.splice(b-1-m,1)})})},replaceNodes:function(s){this.clearEvents(),r.nodes=s},clearEvents:function(){this.setNodeEvent("selected",null),this.setNodeEvent("hovered",null),this.setNodeEvent("dragged",null),this.setIndicator(null)},reset:function(){this.clearEvents(),this.replaceNodes({})},setOptions:function(s){s(r.options)},setNodeEvent:function(s,u){if(r.events[s].forEach(function(h){r.nodes[h]&&(r.nodes[h].events[s]=!1)}),r.events[s]=new Set,u){var l=ft(r.nodes,u,{idOnly:!0,existOnly:!0}),c=new Set(l.map(function(h){return h.node.id}));c.forEach(function(h){r.nodes[h].events[s]=!0}),r.events[s]=c}},setCustom:function(s,u){ft(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.custom)})},setDOM:function(s,u){r.nodes[s]&&(r.nodes[s].dom=u)},setIndicator:function(s){s&&(!s.placement.parent.dom||s.placement.currentNode&&!s.placement.currentNode.dom)||(r.indicator=s)},setHidden:function(s,u){r.nodes[s].data.hidden=u},setProp:function(s,u){ft(r.nodes,s,{idOnly:!0,existOnly:!0}).forEach(function(l){return u(r.nodes[l.node.id].data.props)})},selectNode:function(s){if(s){var u=ft(r.nodes,s,{idOnly:!0,existOnly:!0});this.setNodeEvent("selected",u.map(function(l){return l.node.id}))}else this.setNodeEvent("selected",null);this.setNodeEvent("hovered",null)}}}(t,e)),{},{setState:function(r){var n=is(this,l2);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)})})}},x2=(t,e)=>qx(y2,{...pl,options:{...pl.options,...t}},pd,e),md=({children:t,...e})=>{e.resolver!==void 0&&oe(typeof e.resolver=="object"&&!Array.isArray(e.resolver)&&e.resolver!==null,Lx);const r=v.useRef(e),n=x2(r.current,(o,a,i,s,u)=>{if(!i)return;const{patches:l,...c}=i;for(let h=0;h<l.length;h++){const{path:f}=l[h],d=f.length>2&&f[0]==="nodes"&&f[2]==="data";if([fe.IGNORE,fe.THROTTLE].includes(c.type)&&c.params&&(c.type=c.params[0]),["setState","deserialize"].includes(c.type)||d){u(b=>{o.options.normalizeNodes&&o.options.normalizeNodes(b,a,c,s)});break}}});return 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(us.Provider,{value:n},v.createElement(v2,null,t)):null},bd=w.createContext("desktop"),cs=({value:t,children:e})=>p.jsx(bd.Provider,{value:t,children:e}),er=()=>w.useContext(bd),Re=["mobile","tablet","small","desktop"],ht=(t,e,r)=>{if(typeof t!="object"||t===null)return t??r;if("top"in t||"right"in t)return t;const n=Re.indexOf(e);for(let o=n;o<Re.length;o++){const a=Re[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}for(let o=n-1;o>=0;o--){const a=Re[o];if(t[a]!==void 0&&t[a]!==null)return t[a]}return r};function ue(t,e,{checkForDefaultPrevented:r=!0}={}){return function(o){if(t==null||t(o),r===!1||!o.defaultPrevented)return e==null?void 0:e(o)}}function tr(t,e=[]){let r=[];function n(a,i){const s=v.createContext(i),u=r.length;r=[...r,i];const l=h=>{var y;const{scope:f,children:d,...b}=h,g=((y=f==null?void 0:f[t])==null?void 0:y[u])||s,m=v.useMemo(()=>b,Object.values(b));return p.jsx(g.Provider,{value:m,children:d})};l.displayName=a+"Provider";function c(h,f){var g;const d=((g=f==null?void 0:f[t])==null?void 0:g[u])||s,b=v.useContext(d);if(b)return b;if(i!==void 0)return i;throw new Error(`\`${h}\` must be used within \`${a}\``)}return[l,c]}const o=()=>{const a=r.map(i=>v.createContext(i));return function(s){const u=(s==null?void 0:s[t])||a;return v.useMemo(()=>({[`__scope${t}`]:{...s,[t]:u}}),[s,u])}};return o.scopeName=t,[n,w2(o,...e)]}function w2(...t){const e=t[0];if(t.length===1)return e;const r=()=>{const n=t.map(o=>({useScope:o(),scopeName:o.scopeName}));return function(a){const i=n.reduce((s,{useScope:u,scopeName:l})=>{const h=u(a)[`__scope${l}`];return{...s,...h}},{});return v.useMemo(()=>({[`__scope${e.scopeName}`]:i}),[i])}};return r.scopeName=e.scopeName,r}function S2(t){const e=C2(t),r=v.forwardRef((n,o)=>{const{children:a,...i}=n,s=v.Children.toArray(a),u=s.find(T2);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,{...i,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function C2(t){const e=v.forwardRef((r,n)=>{const{children:o,...a}=r;if(v.isValidElement(o)){const i=j2(o),s=N2(a,o.props);return o.type!==v.Fragment&&(s.ref=n?Mo(n,i):i),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var E2=Symbol("radix.slottable");function T2(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===E2}function N2(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function j2(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 A2=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"],me=A2.reduce((t,e)=>{const r=S2(`Primitive.${e}`),n=v.forwardRef((o,a)=>{const{asChild:i,...s}=o,u=i?r:e;return typeof window<"u"&&(window[Symbol.for("radix-ui")]=!0),p.jsx(u,{...s,ref:a})});return n.displayName=`Primitive.${e}`,{...t,[e]:n}},{});function O2(t,e){t&&dc.flushSync(()=>t.dispatchEvent(e))}function Ie(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 P2(t,e=globalThis==null?void 0:globalThis.document){const r=Ie(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 k2="DismissableLayer",li="dismissableLayer.update",_2="dismissableLayer.pointerDownOutside",R2="dismissableLayer.focusOutside",hl,gd=v.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),vd=v.forwardRef((t,e)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:n,onPointerDownOutside:o,onFocusOutside:a,onInteractOutside:i,onDismiss:s,...u}=t,l=v.useContext(gd),[c,h]=v.useState(null),f=(c==null?void 0:c.ownerDocument)??(globalThis==null?void 0:globalThis.document),[,d]=v.useState({}),b=we(e,_=>h(_)),g=Array.from(l.layers),[m]=[...l.layersWithOutsidePointerEventsDisabled].slice(-1),y=g.indexOf(m),x=c?g.indexOf(c):-1,S=l.layersWithOutsidePointerEventsDisabled.size>0,E=x>=y,j=M2(_=>{const D=_.target,L=[...l.branches].some($=>$.contains(D));!E||L||(o==null||o(_),i==null||i(_),_.defaultPrevented||s==null||s())},f),P=L2(_=>{const D=_.target;[...l.branches].some($=>$.contains(D))||(a==null||a(_),i==null||i(_),_.defaultPrevented||s==null||s())},f);return P2(_=>{x===l.layers.size-1&&(n==null||n(_),!_.defaultPrevented&&s&&(_.preventDefault(),s()))},f),v.useEffect(()=>{if(c)return r&&(l.layersWithOutsidePointerEventsDisabled.size===0&&(hl=f.body.style.pointerEvents,f.body.style.pointerEvents="none"),l.layersWithOutsidePointerEventsDisabled.add(c)),l.layers.add(c),ml(),()=>{r&&l.layersWithOutsidePointerEventsDisabled.size===1&&(f.body.style.pointerEvents=hl)}},[c,f,r,l]),v.useEffect(()=>()=>{c&&(l.layers.delete(c),l.layersWithOutsidePointerEventsDisabled.delete(c),ml())},[c,l]),v.useEffect(()=>{const _=()=>d({});return document.addEventListener(li,_),()=>document.removeEventListener(li,_)},[]),p.jsx(me.div,{...u,ref:b,style:{pointerEvents:S?E?"auto":"none":void 0,...t.style},onFocusCapture:ue(t.onFocusCapture,P.onFocusCapture),onBlurCapture:ue(t.onBlurCapture,P.onBlurCapture),onPointerDownCapture:ue(t.onPointerDownCapture,j.onPointerDownCapture)})});vd.displayName=k2;var I2="DismissableLayerBranch",D2=v.forwardRef((t,e)=>{const r=v.useContext(gd),n=v.useRef(null),o=we(e,n);return v.useEffect(()=>{const a=n.current;if(a)return r.branches.add(a),()=>{r.branches.delete(a)}},[r.branches]),p.jsx(me.div,{...t,ref:o})});D2.displayName=I2;function M2(t,e=globalThis==null?void 0:globalThis.document){const r=Ie(t),n=v.useRef(!1),o=v.useRef(()=>{});return v.useEffect(()=>{const a=s=>{if(s.target&&!n.current){let u=function(){yd(_2,r,l,{discrete:!0})};const l={originalEvent:s};s.pointerType==="touch"?(e.removeEventListener("click",o.current),o.current=u,e.addEventListener("click",o.current,{once:!0})):u()}else e.removeEventListener("click",o.current);n.current=!1},i=window.setTimeout(()=>{e.addEventListener("pointerdown",a)},0);return()=>{window.clearTimeout(i),e.removeEventListener("pointerdown",a),e.removeEventListener("click",o.current)}},[e,r]),{onPointerDownCapture:()=>n.current=!0}}function L2(t,e=globalThis==null?void 0:globalThis.document){const r=Ie(t),n=v.useRef(!1);return v.useEffect(()=>{const o=a=>{a.target&&!n.current&&yd(R2,r,{originalEvent:a},{discrete:!1})};return e.addEventListener("focusin",o),()=>e.removeEventListener("focusin",o)},[e,r]),{onFocusCapture:()=>n.current=!0,onBlurCapture:()=>n.current=!1}}function ml(){const t=new CustomEvent(li);document.dispatchEvent(t)}function yd(t,e,r,{discrete:n}){const o=r.originalEvent.target,a=new CustomEvent(t,{bubbles:!1,cancelable:!0,detail:r});e&&o.addEventListener(t,e,{once:!0}),n?O2(o,a):o.dispatchEvent(a)}var Rt=globalThis!=null&&globalThis.document?v.useLayoutEffect:()=>{},$2=v[" useId ".trim().toString()]||(()=>{}),B2=0;function xd(t){const[e,r]=v.useState($2());return Rt(()=>{r(n=>n??String(B2++))},[t]),e?`radix-${e}`:""}const H2=["top","right","bottom","left"],It=Math.min,Ae=Math.max,go=Math.round,Bn=Math.floor,Ke=t=>({x:t,y:t}),z2={left:"right",right:"left",bottom:"top",top:"bottom"},F2={start:"end",end:"start"};function ci(t,e,r){return Ae(t,It(e,r))}function vt(t,e){return typeof t=="function"?t(e):t}function yt(t){return t.split("-")[0]}function Br(t){return t.split("-")[1]}function ds(t){return t==="x"?"y":"x"}function fs(t){return t==="y"?"height":"width"}const q2=new Set(["top","bottom"]);function Ye(t){return q2.has(yt(t))?"y":"x"}function ps(t){return ds(Ye(t))}function U2(t,e,r){r===void 0&&(r=!1);const n=Br(t),o=ps(t),a=fs(o);let i=o==="x"?n===(r?"end":"start")?"right":"left":n==="start"?"bottom":"top";return e.reference[a]>e.floating[a]&&(i=vo(i)),[i,vo(i)]}function V2(t){const e=vo(t);return[di(t),e,di(e)]}function di(t){return t.replace(/start|end/g,e=>F2[e])}const bl=["left","right"],gl=["right","left"],W2=["top","bottom"],G2=["bottom","top"];function Y2(t,e,r){switch(t){case"top":case"bottom":return r?e?gl:bl:e?bl:gl;case"left":case"right":return e?W2:G2;default:return[]}}function X2(t,e,r,n){const o=Br(t);let a=Y2(yt(t),r==="start",n);return o&&(a=a.map(i=>i+"-"+o),e&&(a=a.concat(a.map(di)))),a}function vo(t){return t.replace(/left|right|bottom|top/g,e=>z2[e])}function K2(t){return{top:0,right:0,bottom:0,left:0,...t}}function wd(t){return typeof t!="number"?K2(t):{top:t,right:t,bottom:t,left:t}}function yo(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 vl(t,e,r){let{reference:n,floating:o}=t;const a=Ye(e),i=ps(e),s=fs(i),u=yt(e),l=a==="y",c=n.x+n.width/2-o.width/2,h=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let d;switch(u){case"top":d={x:c,y:n.y-o.height};break;case"bottom":d={x:c,y:n.y+n.height};break;case"right":d={x:n.x+n.width,y:h};break;case"left":d={x:n.x-o.width,y:h};break;default:d={x:n.x,y:n.y}}switch(Br(e)){case"start":d[i]-=f*(r&&l?-1:1);break;case"end":d[i]+=f*(r&&l?-1:1);break}return d}const J2=async(t,e,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:a=[],platform:i}=r,s=a.filter(Boolean),u=await(i.isRTL==null?void 0:i.isRTL(e));let l=await i.getElementRects({reference:t,floating:e,strategy:o}),{x:c,y:h}=vl(l,n,u),f=n,d={},b=0;for(let g=0;g<s.length;g++){const{name:m,fn:y}=s[g],{x,y:S,data:E,reset:j}=await y({x:c,y:h,initialPlacement:n,placement:f,strategy:o,middlewareData:d,rects:l,platform:i,elements:{reference:t,floating:e}});c=x??c,h=S??h,d={...d,[m]:{...d[m],...E}},j&&b<=50&&(b++,typeof j=="object"&&(j.placement&&(f=j.placement),j.rects&&(l=j.rects===!0?await i.getElementRects({reference:t,floating:e,strategy:o}):j.rects),{x:c,y:h}=vl(l,f,u)),g=-1)}return{x:c,y:h,placement:f,strategy:o,middlewareData:d}};async function cn(t,e){var r;e===void 0&&(e={});const{x:n,y:o,platform:a,rects:i,elements:s,strategy:u}=t,{boundary:l="clippingAncestors",rootBoundary:c="viewport",elementContext:h="floating",altBoundary:f=!1,padding:d=0}=vt(e,t),b=wd(d),m=s[f?h==="floating"?"reference":"floating":h],y=yo(await a.getClippingRect({element:(r=await(a.isElement==null?void 0:a.isElement(m)))==null||r?m:m.contextElement||await(a.getDocumentElement==null?void 0:a.getDocumentElement(s.floating)),boundary:l,rootBoundary:c,strategy:u})),x=h==="floating"?{x:n,y:o,width:i.floating.width,height:i.floating.height}:i.reference,S=await(a.getOffsetParent==null?void 0:a.getOffsetParent(s.floating)),E=await(a.isElement==null?void 0:a.isElement(S))?await(a.getScale==null?void 0:a.getScale(S))||{x:1,y:1}:{x:1,y:1},j=yo(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:x,offsetParent:S,strategy:u}):x);return{top:(y.top-j.top+b.top)/E.y,bottom:(j.bottom-y.bottom+b.bottom)/E.y,left:(y.left-j.left+b.left)/E.x,right:(j.right-y.right+b.right)/E.x}}const Z2=t=>({name:"arrow",options:t,async fn(e){const{x:r,y:n,placement:o,rects:a,platform:i,elements:s,middlewareData:u}=e,{element:l,padding:c=0}=vt(t,e)||{};if(l==null)return{};const h=wd(c),f={x:r,y:n},d=ps(o),b=fs(d),g=await i.getDimensions(l),m=d==="y",y=m?"top":"left",x=m?"bottom":"right",S=m?"clientHeight":"clientWidth",E=a.reference[b]+a.reference[d]-f[d]-a.floating[b],j=f[d]-a.reference[d],P=await(i.getOffsetParent==null?void 0:i.getOffsetParent(l));let _=P?P[S]:0;(!_||!await(i.isElement==null?void 0:i.isElement(P)))&&(_=s.floating[S]||a.floating[b]);const D=E/2-j/2,L=_/2-g[b]/2-1,$=It(h[y],L),C=It(h[x],L),N=$,k=_-g[b]-C,I=_/2-g[b]/2+D,T=ci(N,I,k),O=!u.arrow&&Br(o)!=null&&I!==T&&a.reference[b]/2-(I<N?$:C)-g[b]/2<0,A=O?I<N?I-N:I-k:0;return{[d]:f[d]+A,data:{[d]:T,centerOffset:I-T-A,...O&&{alignmentOffset:A}},reset:O}}}),Q2=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(e){var r,n;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:u,elements:l}=e,{mainAxis:c=!0,crossAxis:h=!0,fallbackPlacements:f,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:b="none",flipAlignment:g=!0,...m}=vt(t,e);if((r=a.arrow)!=null&&r.alignmentOffset)return{};const y=yt(o),x=Ye(s),S=yt(s)===s,E=await(u.isRTL==null?void 0:u.isRTL(l.floating)),j=f||(S||!g?[vo(s)]:V2(s)),P=b!=="none";!f&&P&&j.push(...X2(s,g,b,E));const _=[s,...j],D=await cn(e,m),L=[];let $=((n=a.flip)==null?void 0:n.overflows)||[];if(c&&L.push(D[y]),h){const I=U2(o,i,E);L.push(D[I[0]],D[I[1]])}if($=[...$,{placement:o,overflows:L}],!L.every(I=>I<=0)){var C,N;const I=(((C=a.flip)==null?void 0:C.index)||0)+1,T=_[I];if(T&&(!(h==="alignment"?x!==Ye(T):!1)||$.every(R=>Ye(R.placement)===x?R.overflows[0]>0:!0)))return{data:{index:I,overflows:$},reset:{placement:T}};let O=(N=$.filter(A=>A.overflows[0]<=0).sort((A,R)=>A.overflows[1]-R.overflows[1])[0])==null?void 0:N.placement;if(!O)switch(d){case"bestFit":{var k;const A=(k=$.filter(R=>{if(P){const M=Ye(R.placement);return M===x||M==="y"}return!0}).map(R=>[R.placement,R.overflows.filter(M=>M>0).reduce((M,q)=>M+q,0)]).sort((R,M)=>R[1]-M[1])[0])==null?void 0:k[0];A&&(O=A);break}case"initialPlacement":O=s;break}if(o!==O)return{reset:{placement:O}}}return{}}}};function yl(t,e){return{top:t.top-e.height,right:t.right-e.width,bottom:t.bottom-e.height,left:t.left-e.width}}function xl(t){return H2.some(e=>t[e]>=0)}const ew=function(t){return t===void 0&&(t={}),{name:"hide",options:t,async fn(e){const{rects:r}=e,{strategy:n="referenceHidden",...o}=vt(t,e);switch(n){case"referenceHidden":{const a=await cn(e,{...o,elementContext:"reference"}),i=yl(a,r.reference);return{data:{referenceHiddenOffsets:i,referenceHidden:xl(i)}}}case"escaped":{const a=await cn(e,{...o,altBoundary:!0}),i=yl(a,r.floating);return{data:{escapedOffsets:i,escaped:xl(i)}}}default:return{}}}}},Sd=new Set(["left","top"]);async function tw(t,e){const{placement:r,platform:n,elements:o}=t,a=await(n.isRTL==null?void 0:n.isRTL(o.floating)),i=yt(r),s=Br(r),u=Ye(r)==="y",l=Sd.has(i)?-1:1,c=a&&u?-1:1,h=vt(e,t);let{mainAxis:f,crossAxis:d,alignmentAxis:b}=typeof h=="number"?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return s&&typeof b=="number"&&(d=s==="end"?b*-1:b),u?{x:d*c,y:f*l}:{x:f*l,y:d*c}}const rw=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(e){var r,n;const{x:o,y:a,placement:i,middlewareData:s}=e,u=await tw(e,t);return i===((r=s.offset)==null?void 0:r.placement)&&(n=s.arrow)!=null&&n.alignmentOffset?{}:{x:o+u.x,y:a+u.y,data:{...u,placement:i}}}}},nw=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){const{x:r,y:n,placement:o}=e,{mainAxis:a=!0,crossAxis:i=!1,limiter:s={fn:m=>{let{x:y,y:x}=m;return{x:y,y:x}}},...u}=vt(t,e),l={x:r,y:n},c=await cn(e,u),h=Ye(yt(o)),f=ds(h);let d=l[f],b=l[h];if(a){const m=f==="y"?"top":"left",y=f==="y"?"bottom":"right",x=d+c[m],S=d-c[y];d=ci(x,d,S)}if(i){const m=h==="y"?"top":"left",y=h==="y"?"bottom":"right",x=b+c[m],S=b-c[y];b=ci(x,b,S)}const g=s.fn({...e,[f]:d,[h]:b});return{...g,data:{x:g.x-r,y:g.y-n,enabled:{[f]:a,[h]:i}}}}}},ow=function(t){return t===void 0&&(t={}),{options:t,fn(e){const{x:r,y:n,placement:o,rects:a,middlewareData:i}=e,{offset:s=0,mainAxis:u=!0,crossAxis:l=!0}=vt(t,e),c={x:r,y:n},h=Ye(o),f=ds(h);let d=c[f],b=c[h];const g=vt(s,e),m=typeof g=="number"?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){const S=f==="y"?"height":"width",E=a.reference[f]-a.floating[S]+m.mainAxis,j=a.reference[f]+a.reference[S]-m.mainAxis;d<E?d=E:d>j&&(d=j)}if(l){var y,x;const S=f==="y"?"width":"height",E=Sd.has(yt(o)),j=a.reference[h]-a.floating[S]+(E&&((y=i.offset)==null?void 0:y[h])||0)+(E?0:m.crossAxis),P=a.reference[h]+a.reference[S]+(E?0:((x=i.offset)==null?void 0:x[h])||0)-(E?m.crossAxis:0);b<j?b=j:b>P&&(b=P)}return{[f]:d,[h]:b}}}},aw=function(t){return t===void 0&&(t={}),{name:"size",options:t,async fn(e){var r,n;const{placement:o,rects:a,platform:i,elements:s}=e,{apply:u=()=>{},...l}=vt(t,e),c=await cn(e,l),h=yt(o),f=Br(o),d=Ye(o)==="y",{width:b,height:g}=a.floating;let m,y;h==="top"||h==="bottom"?(m=h,y=f===(await(i.isRTL==null?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(y=h,m=f==="end"?"top":"bottom");const x=g-c.top-c.bottom,S=b-c.left-c.right,E=It(g-c[m],x),j=It(b-c[y],S),P=!e.middlewareData.shift;let _=E,D=j;if((r=e.middlewareData.shift)!=null&&r.enabled.x&&(D=S),(n=e.middlewareData.shift)!=null&&n.enabled.y&&(_=x),P&&!f){const $=Ae(c.left,0),C=Ae(c.right,0),N=Ae(c.top,0),k=Ae(c.bottom,0);d?D=b-2*($!==0||C!==0?$+C:Ae(c.left,c.right)):_=g-2*(N!==0||k!==0?N+k:Ae(c.top,c.bottom))}await u({...e,availableWidth:D,availableHeight:_});const L=await i.getDimensions(s.floating);return b!==L.width||g!==L.height?{reset:{rects:!0}}:{}}}};function Ko(){return typeof window<"u"}function Hr(t){return Cd(t)?(t.nodeName||"").toLowerCase():"#document"}function Oe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function nt(t){var e;return(e=(Cd(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Cd(t){return Ko()?t instanceof Node||t instanceof Oe(t).Node:!1}function Fe(t){return Ko()?t instanceof Element||t instanceof Oe(t).Element:!1}function tt(t){return Ko()?t instanceof HTMLElement||t instanceof Oe(t).HTMLElement:!1}function wl(t){return!Ko()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Oe(t).ShadowRoot}const iw=new Set(["inline","contents"]);function Cn(t){const{overflow:e,overflowX:r,overflowY:n,display:o}=qe(t);return/auto|scroll|overlay|hidden|clip/.test(e+n+r)&&!iw.has(o)}const sw=new Set(["table","td","th"]);function uw(t){return sw.has(Hr(t))}const lw=[":popover-open",":modal"];function Jo(t){return lw.some(e=>{try{return t.matches(e)}catch{return!1}})}const cw=["transform","translate","scale","rotate","perspective"],dw=["transform","translate","scale","rotate","perspective","filter"],fw=["paint","layout","strict","content"];function hs(t){const e=ms(),r=Fe(t)?qe(t):t;return cw.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)||dw.some(n=>(r.willChange||"").includes(n))||fw.some(n=>(r.contain||"").includes(n))}function pw(t){let e=Dt(t);for(;tt(e)&&!wr(e);){if(hs(e))return e;if(Jo(e))return null;e=Dt(e)}return null}function ms(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}const hw=new Set(["html","body","#document"]);function wr(t){return hw.has(Hr(t))}function qe(t){return Oe(t).getComputedStyle(t)}function Zo(t){return Fe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Dt(t){if(Hr(t)==="html")return t;const e=t.assignedSlot||t.parentNode||wl(t)&&t.host||nt(t);return wl(e)?e.host:e}function Ed(t){const e=Dt(t);return wr(e)?t.ownerDocument?t.ownerDocument.body:t.body:tt(e)&&Cn(e)?e:Ed(e)}function dn(t,e,r){var n;e===void 0&&(e=[]),r===void 0&&(r=!0);const o=Ed(t),a=o===((n=t.ownerDocument)==null?void 0:n.body),i=Oe(o);if(a){const s=fi(i);return e.concat(i,i.visualViewport||[],Cn(o)?o:[],s&&r?dn(s):[])}return e.concat(o,dn(o,[],r))}function fi(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Td(t){const e=qe(t);let r=parseFloat(e.width)||0,n=parseFloat(e.height)||0;const o=tt(t),a=o?t.offsetWidth:r,i=o?t.offsetHeight:n,s=go(r)!==a||go(n)!==i;return s&&(r=a,n=i),{width:r,height:n,$:s}}function bs(t){return Fe(t)?t:t.contextElement}function gr(t){const e=bs(t);if(!tt(e))return Ke(1);const r=e.getBoundingClientRect(),{width:n,height:o,$:a}=Td(e);let i=(a?go(r.width):r.width)/n,s=(a?go(r.height):r.height)/o;return(!i||!Number.isFinite(i))&&(i=1),(!s||!Number.isFinite(s))&&(s=1),{x:i,y:s}}const mw=Ke(0);function Nd(t){const e=Oe(t);return!ms()||!e.visualViewport?mw:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function bw(t,e,r){return e===void 0&&(e=!1),!r||e&&r!==Oe(t)?!1:e}function Yt(t,e,r,n){e===void 0&&(e=!1),r===void 0&&(r=!1);const o=t.getBoundingClientRect(),a=bs(t);let i=Ke(1);e&&(n?Fe(n)&&(i=gr(n)):i=gr(t));const s=bw(a,r,n)?Nd(a):Ke(0);let u=(o.left+s.x)/i.x,l=(o.top+s.y)/i.y,c=o.width/i.x,h=o.height/i.y;if(a){const f=Oe(a),d=n&&Fe(n)?Oe(n):n;let b=f,g=fi(b);for(;g&&n&&d!==b;){const m=gr(g),y=g.getBoundingClientRect(),x=qe(g),S=y.left+(g.clientLeft+parseFloat(x.paddingLeft))*m.x,E=y.top+(g.clientTop+parseFloat(x.paddingTop))*m.y;u*=m.x,l*=m.y,c*=m.x,h*=m.y,u+=S,l+=E,b=Oe(g),g=fi(b)}}return yo({width:c,height:h,x:u,y:l})}function Qo(t,e){const r=Zo(t).scrollLeft;return e?e.left+r:Yt(nt(t)).left+r}function jd(t,e){const r=t.getBoundingClientRect(),n=r.left+e.scrollLeft-Qo(t,r),o=r.top+e.scrollTop;return{x:n,y:o}}function gw(t){let{elements:e,rect:r,offsetParent:n,strategy:o}=t;const a=o==="fixed",i=nt(n),s=e?Jo(e.floating):!1;if(n===i||s&&a)return r;let u={scrollLeft:0,scrollTop:0},l=Ke(1);const c=Ke(0),h=tt(n);if((h||!h&&!a)&&((Hr(n)!=="body"||Cn(i))&&(u=Zo(n)),tt(n))){const d=Yt(n);l=gr(n),c.x=d.x+n.clientLeft,c.y=d.y+n.clientTop}const f=i&&!h&&!a?jd(i,u):Ke(0);return{width:r.width*l.x,height:r.height*l.y,x:r.x*l.x-u.scrollLeft*l.x+c.x+f.x,y:r.y*l.y-u.scrollTop*l.y+c.y+f.y}}function vw(t){return Array.from(t.getClientRects())}function yw(t){const e=nt(t),r=Zo(t),n=t.ownerDocument.body,o=Ae(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=Ae(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight);let i=-r.scrollLeft+Qo(t);const s=-r.scrollTop;return qe(n).direction==="rtl"&&(i+=Ae(e.clientWidth,n.clientWidth)-o),{width:o,height:a,x:i,y:s}}const Sl=25;function xw(t,e){const r=Oe(t),n=nt(t),o=r.visualViewport;let a=n.clientWidth,i=n.clientHeight,s=0,u=0;if(o){a=o.width,i=o.height;const c=ms();(!c||c&&e==="fixed")&&(s=o.offsetLeft,u=o.offsetTop)}const l=Qo(n);if(l<=0){const c=n.ownerDocument,h=c.body,f=getComputedStyle(h),d=c.compatMode==="CSS1Compat"&&parseFloat(f.marginLeft)+parseFloat(f.marginRight)||0,b=Math.abs(n.clientWidth-h.clientWidth-d);b<=Sl&&(a-=b)}else l<=Sl&&(a+=l);return{width:a,height:i,x:s,y:u}}const ww=new Set(["absolute","fixed"]);function Sw(t,e){const r=Yt(t,!0,e==="fixed"),n=r.top+t.clientTop,o=r.left+t.clientLeft,a=tt(t)?gr(t):Ke(1),i=t.clientWidth*a.x,s=t.clientHeight*a.y,u=o*a.x,l=n*a.y;return{width:i,height:s,x:u,y:l}}function Cl(t,e,r){let n;if(e==="viewport")n=xw(t,r);else if(e==="document")n=yw(nt(t));else if(Fe(e))n=Sw(e,r);else{const o=Nd(t);n={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return yo(n)}function Ad(t,e){const r=Dt(t);return r===e||!Fe(r)||wr(r)?!1:qe(r).position==="fixed"||Ad(r,e)}function Cw(t,e){const r=e.get(t);if(r)return r;let n=dn(t,[],!1).filter(s=>Fe(s)&&Hr(s)!=="body"),o=null;const a=qe(t).position==="fixed";let i=a?Dt(t):t;for(;Fe(i)&&!wr(i);){const s=qe(i),u=hs(i);!u&&s.position==="fixed"&&(o=null),(a?!u&&!o:!u&&s.position==="static"&&!!o&&ww.has(o.position)||Cn(i)&&!u&&Ad(t,i))?n=n.filter(c=>c!==i):o=s,i=Dt(i)}return e.set(t,n),n}function Ew(t){let{element:e,boundary:r,rootBoundary:n,strategy:o}=t;const i=[...r==="clippingAncestors"?Jo(e)?[]:Cw(e,this._c):[].concat(r),n],s=i[0],u=i.reduce((l,c)=>{const h=Cl(e,c,o);return l.top=Ae(h.top,l.top),l.right=It(h.right,l.right),l.bottom=It(h.bottom,l.bottom),l.left=Ae(h.left,l.left),l},Cl(e,s,o));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Tw(t){const{width:e,height:r}=Td(t);return{width:e,height:r}}function Nw(t,e,r){const n=tt(e),o=nt(e),a=r==="fixed",i=Yt(t,!0,a,e);let s={scrollLeft:0,scrollTop:0};const u=Ke(0);function l(){u.x=Qo(o)}if(n||!n&&!a)if((Hr(e)!=="body"||Cn(o))&&(s=Zo(e)),n){const d=Yt(e,!0,a,e);u.x=d.x+e.clientLeft,u.y=d.y+e.clientTop}else o&&l();a&&!n&&o&&l();const c=o&&!n&&!a?jd(o,s):Ke(0),h=i.left+s.scrollLeft-u.x-c.x,f=i.top+s.scrollTop-u.y-c.y;return{x:h,y:f,width:i.width,height:i.height}}function _a(t){return qe(t).position==="static"}function El(t,e){if(!tt(t)||qe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return nt(t)===r&&(r=r.ownerDocument.body),r}function Od(t,e){const r=Oe(t);if(Jo(t))return r;if(!tt(t)){let o=Dt(t);for(;o&&!wr(o);){if(Fe(o)&&!_a(o))return o;o=Dt(o)}return r}let n=El(t,e);for(;n&&uw(n)&&_a(n);)n=El(n,e);return n&&wr(n)&&_a(n)&&!hs(n)?r:n||pw(t)||r}const jw=async function(t){const e=this.getOffsetParent||Od,r=this.getDimensions,n=await r(t.floating);return{reference:Nw(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}};function Aw(t){return qe(t).direction==="rtl"}const Ow={convertOffsetParentRelativeRectToViewportRelativeRect:gw,getDocumentElement:nt,getClippingRect:Ew,getOffsetParent:Od,getElementRects:jw,getClientRects:vw,getDimensions:Tw,getScale:gr,isElement:Fe,isRTL:Aw};function Pd(t,e){return t.x===e.x&&t.y===e.y&&t.width===e.width&&t.height===e.height}function Pw(t,e){let r=null,n;const o=nt(t);function a(){var s;clearTimeout(n),(s=r)==null||s.disconnect(),r=null}function i(s,u){s===void 0&&(s=!1),u===void 0&&(u=1),a();const l=t.getBoundingClientRect(),{left:c,top:h,width:f,height:d}=l;if(s||e(),!f||!d)return;const b=Bn(h),g=Bn(o.clientWidth-(c+f)),m=Bn(o.clientHeight-(h+d)),y=Bn(c),S={rootMargin:-b+"px "+-g+"px "+-m+"px "+-y+"px",threshold:Ae(0,It(1,u))||1};let E=!0;function j(P){const _=P[0].intersectionRatio;if(_!==u){if(!E)return i();_?i(!1,_):n=setTimeout(()=>{i(!1,1e-7)},1e3)}_===1&&!Pd(l,t.getBoundingClientRect())&&i(),E=!1}try{r=new IntersectionObserver(j,{...S,root:o.ownerDocument})}catch{r=new IntersectionObserver(j,S)}r.observe(t)}return i(!0),a}function kw(t,e,r,n){n===void 0&&(n={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i=typeof ResizeObserver=="function",layoutShift:s=typeof IntersectionObserver=="function",animationFrame:u=!1}=n,l=bs(t),c=o||a?[...l?dn(l):[],...dn(e)]:[];c.forEach(y=>{o&&y.addEventListener("scroll",r,{passive:!0}),a&&y.addEventListener("resize",r)});const h=l&&s?Pw(l,r):null;let f=-1,d=null;i&&(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 b,g=u?Yt(t):null;u&&m();function m(){const y=Yt(t);g&&!Pd(g,y)&&r(),g=y,b=requestAnimationFrame(m)}return r(),()=>{var y;c.forEach(x=>{o&&x.removeEventListener("scroll",r),a&&x.removeEventListener("resize",r)}),h==null||h(),(y=d)==null||y.disconnect(),d=null,u&&cancelAnimationFrame(b)}}const _w=rw,Rw=nw,Iw=Q2,Dw=aw,Mw=ew,Tl=Z2,Lw=ow,$w=(t,e,r)=>{const n=new Map,o={platform:Ow,...r},a={...o.platform,_c:n};return J2(t,e,{...o,platform:a})};var Bw=typeof document<"u",Hw=function(){},Qn=Bw?w.useLayoutEffect:Hw;function xo(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(!xo(t[n],e[n]))return!1;return!0}if(o=Object.keys(t),r=o.length,r!==Object.keys(e).length)return!1;for(n=r;n--!==0;)if(!{}.hasOwnProperty.call(e,o[n]))return!1;for(n=r;n--!==0;){const a=o[n];if(!(a==="_owner"&&t.$$typeof)&&!xo(t[a],e[a]))return!1}return!0}return t!==t&&e!==e}function kd(t){return typeof window>"u"?1:(t.ownerDocument.defaultView||window).devicePixelRatio||1}function Nl(t,e){const r=kd(t);return Math.round(e*r)/r}function Ra(t){const e=v.useRef(t);return Qn(()=>{e.current=t}),e}function zw(t){t===void 0&&(t={});const{placement:e="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:u,open:l}=t,[c,h]=v.useState({x:0,y:0,strategy:r,placement:e,middlewareData:{},isPositioned:!1}),[f,d]=v.useState(n);xo(f,n)||d(n);const[b,g]=v.useState(null),[m,y]=v.useState(null),x=v.useCallback(R=>{R!==P.current&&(P.current=R,g(R))},[]),S=v.useCallback(R=>{R!==_.current&&(_.current=R,y(R))},[]),E=a||b,j=i||m,P=v.useRef(null),_=v.useRef(null),D=v.useRef(c),L=u!=null,$=Ra(u),C=Ra(o),N=Ra(l),k=v.useCallback(()=>{if(!P.current||!_.current)return;const R={placement:e,strategy:r,middleware:f};C.current&&(R.platform=C.current),$w(P.current,_.current,R).then(M=>{const q={...M,isPositioned:N.current!==!1};I.current&&!xo(D.current,q)&&(D.current=q,dc.flushSync(()=>{h(q)}))})},[f,e,r,C,N]);Qn(()=>{l===!1&&D.current.isPositioned&&(D.current.isPositioned=!1,h(R=>({...R,isPositioned:!1})))},[l]);const I=v.useRef(!1);Qn(()=>(I.current=!0,()=>{I.current=!1}),[]),Qn(()=>{if(E&&(P.current=E),j&&(_.current=j),E&&j){if($.current)return $.current(E,j,k);k()}},[E,j,k,$,L]);const T=v.useMemo(()=>({reference:P,floating:_,setReference:x,setFloating:S}),[x,S]),O=v.useMemo(()=>({reference:E,floating:j}),[E,j]),A=v.useMemo(()=>{const R={position:r,left:0,top:0};if(!O.floating)return R;const M=Nl(O.floating,c.x),q=Nl(O.floating,c.y);return s?{...R,transform:"translate("+M+"px, "+q+"px)",...kd(O.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:M,top:q}},[r,s,O.floating,c.x,c.y]);return v.useMemo(()=>({...c,update:k,refs:T,elements:O,floatingStyles:A}),[c,k,T,O,A])}const Fw=t=>{function e(r){return{}.hasOwnProperty.call(r,"current")}return{name:"arrow",options:t,fn(r){const{element:n,padding:o}=typeof t=="function"?t(r):t;return n&&e(n)?n.current!=null?Tl({element:n.current,padding:o}).fn(r):{}:n?Tl({element:n,padding:o}).fn(r):{}}}},qw=(t,e)=>({..._w(t),options:[t,e]}),Uw=(t,e)=>({...Rw(t),options:[t,e]}),Vw=(t,e)=>({...Lw(t),options:[t,e]}),Ww=(t,e)=>({...Iw(t),options:[t,e]}),Gw=(t,e)=>({...Dw(t),options:[t,e]}),Yw=(t,e)=>({...Mw(t),options:[t,e]}),Xw=(t,e)=>({...Fw(t),options:[t,e]});var Kw="Arrow",_d=v.forwardRef((t,e)=>{const{children:r,width:n=10,height:o=5,...a}=t;return p.jsx(me.svg,{...a,ref:e,width:n,height:o,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:t.asChild?r:p.jsx("polygon",{points:"0,0 30,0 15,10"})})});_d.displayName=Kw;var Jw=_d;function Rd(t){const[e,r]=v.useState(void 0);return Rt(()=>{if(t){r({width:t.offsetWidth,height:t.offsetHeight});const n=new ResizeObserver(o=>{if(!Array.isArray(o)||!o.length)return;const a=o[0];let i,s;if("borderBoxSize"in a){const u=a.borderBoxSize,l=Array.isArray(u)?u[0]:u;i=l.inlineSize,s=l.blockSize}else i=t.offsetWidth,s=t.offsetHeight;r({width:i,height:s})});return n.observe(t,{box:"border-box"}),()=>n.unobserve(t)}else r(void 0)},[t]),e}var gs="Popper",[Id,Dd]=tr(gs),[Zw,Md]=Id(gs),Ld=t=>{const{__scopePopper:e,children:r}=t,[n,o]=v.useState(null);return p.jsx(Zw,{scope:e,anchor:n,onAnchorChange:o,children:r})};Ld.displayName=gs;var $d="PopperAnchor",Bd=v.forwardRef((t,e)=>{const{__scopePopper:r,virtualRef:n,...o}=t,a=Md($d,r),i=v.useRef(null),s=we(e,i),u=v.useRef(null);return v.useEffect(()=>{const l=u.current;u.current=(n==null?void 0:n.current)||i.current,l!==u.current&&a.onAnchorChange(u.current)}),n?null:p.jsx(me.div,{...o,ref:s})});Bd.displayName=$d;var vs="PopperContent",[Qw,e3]=Id(vs),Hd=v.forwardRef((t,e)=>{var z,Ee,ye,be,Ve,it;const{__scopePopper:r,side:n="bottom",sideOffset:o=0,align:a="center",alignOffset:i=0,arrowPadding:s=0,avoidCollisions:u=!0,collisionBoundary:l=[],collisionPadding:c=0,sticky:h="partial",hideWhenDetached:f=!1,updatePositionStrategy:d="optimized",onPlaced:b,...g}=t,m=Md(vs,r),[y,x]=v.useState(null),S=we(e,We=>x(We)),[E,j]=v.useState(null),P=Rd(E),_=(P==null?void 0:P.width)??0,D=(P==null?void 0:P.height)??0,L=n+(a!=="center"?"-"+a:""),$=typeof c=="number"?c:{top:0,right:0,bottom:0,left:0,...c},C=Array.isArray(l)?l:[l],N=C.length>0,k={padding:$,boundary:C.filter(r3),altBoundary:N},{refs:I,floatingStyles:T,placement:O,isPositioned:A,middlewareData:R}=zw({strategy:"fixed",placement:L,whileElementsMounted:(...We)=>kw(...We,{animationFrame:d==="always"}),elements:{reference:m.anchor},middleware:[qw({mainAxis:o+D,alignmentAxis:i}),u&&Uw({mainAxis:!0,crossAxis:!1,limiter:h==="partial"?Vw():void 0,...k}),u&&Ww({...k}),Gw({...k,apply:({elements:We,rects:_n,availableWidth:ga,availableHeight:Rn})=>{const{width:va,height:Ur}=_n.reference,ar=We.floating.style;ar.setProperty("--radix-popper-available-width",`${ga}px`),ar.setProperty("--radix-popper-available-height",`${Rn}px`),ar.setProperty("--radix-popper-anchor-width",`${va}px`),ar.setProperty("--radix-popper-anchor-height",`${Ur}px`)}}),E&&Xw({element:E,padding:s}),n3({arrowWidth:_,arrowHeight:D}),f&&Yw({strategy:"referenceHidden",...k})]}),[M,q]=qd(O),de=Ie(b);Rt(()=>{A&&(de==null||de())},[A,de]);const Z=(z=R.arrow)==null?void 0:z.x,B=(Ee=R.arrow)==null?void 0:Ee.y,H=((ye=R.arrow)==null?void 0:ye.centerOffset)!==0,[he,X]=v.useState();return Rt(()=>{y&&X(window.getComputedStyle(y).zIndex)},[y]),p.jsx("div",{ref:I.setFloating,"data-radix-popper-content-wrapper":"",style:{...T,transform:A?T.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:he,"--radix-popper-transform-origin":[(be=R.transformOrigin)==null?void 0:be.x,(Ve=R.transformOrigin)==null?void 0:Ve.y].join(" "),...((it=R.hide)==null?void 0:it.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:t.dir,children:p.jsx(Qw,{scope:r,placedSide:M,onArrowChange:j,arrowX:Z,arrowY:B,shouldHideArrow:H,children:p.jsx(me.div,{"data-side":M,"data-align":q,...g,ref:S,style:{...g.style,animation:A?void 0:"none"}})})})});Hd.displayName=vs;var zd="PopperArrow",t3={top:"bottom",right:"left",bottom:"top",left:"right"},Fd=v.forwardRef(function(e,r){const{__scopePopper:n,...o}=e,a=e3(zd,n),i=t3[a.placedSide];return p.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[i]:0,transformOrigin:{top:"",right:"0 0",bottom:"center 0",left:"100% 0"}[a.placedSide],transform:{top:"translateY(100%)",right:"translateY(50%) rotate(90deg) translateX(-50%)",bottom:"rotate(180deg)",left:"translateY(50%) rotate(-90deg) translateX(50%)"}[a.placedSide],visibility:a.shouldHideArrow?"hidden":void 0},children:p.jsx(Jw,{...o,ref:r,style:{...o.style,display:"block"}})})});Fd.displayName=zd;function r3(t){return t!==null}var n3=t=>({name:"transformOrigin",options:t,fn(e){var m,y,x;const{placement:r,rects:n,middlewareData:o}=e,i=((m=o.arrow)==null?void 0:m.centerOffset)!==0,s=i?0:t.arrowWidth,u=i?0:t.arrowHeight,[l,c]=qd(r),h={start:"0%",center:"50%",end:"100%"}[c],f=(((y=o.arrow)==null?void 0:y.x)??0)+s/2,d=(((x=o.arrow)==null?void 0:x.y)??0)+u/2;let b="",g="";return l==="bottom"?(b=i?h:`${f}px`,g=`${-u}px`):l==="top"?(b=i?h:`${f}px`,g=`${n.floating.height+u}px`):l==="right"?(b=`${-u}px`,g=i?h:`${d}px`):l==="left"&&(b=`${n.floating.width+u}px`,g=i?h:`${d}px`),{data:{x:b,y:g}}}});function qd(t){const[e,r="center"]=t.split("-");return[e,r]}var o3=Ld,a3=Bd,i3=Hd,s3=Fd;function u3(t,e){return v.useReducer((r,n)=>e[r][n]??r,t)}var rr=t=>{const{present:e,children:r}=t,n=l3(e),o=typeof r=="function"?r({present:n.isPresent}):v.Children.only(r),a=we(n.ref,c3(o));return typeof r=="function"||n.isPresent?v.cloneElement(o,{ref:a}):null};rr.displayName="Presence";function l3(t){const[e,r]=v.useState(),n=v.useRef(null),o=v.useRef(t),a=v.useRef("none"),i=t?"mounted":"unmounted",[s,u]=u3(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return v.useEffect(()=>{const l=Hn(n.current);a.current=s==="mounted"?l:"none"},[s]),Rt(()=>{const l=n.current,c=o.current;if(c!==t){const f=a.current,d=Hn(l);t?u("MOUNT"):d==="none"||(l==null?void 0:l.display)==="none"?u("UNMOUNT"):u(c&&f!==d?"ANIMATION_OUT":"UNMOUNT"),o.current=t}},[t,u]),Rt(()=>{if(e){let l;const c=e.ownerDocument.defaultView??window,h=d=>{const g=Hn(n.current).includes(CSS.escape(d.animationName));if(d.target===e&&g&&(u("ANIMATION_END"),!o.current)){const m=e.style.animationFillMode;e.style.animationFillMode="forwards",l=c.setTimeout(()=>{e.style.animationFillMode==="forwards"&&(e.style.animationFillMode=m)})}},f=d=>{d.target===e&&(a.current=Hn(n.current))};return e.addEventListener("animationstart",f),e.addEventListener("animationcancel",h),e.addEventListener("animationend",h),()=>{c.clearTimeout(l),e.removeEventListener("animationstart",f),e.removeEventListener("animationcancel",h),e.removeEventListener("animationend",h)}}else u("ANIMATION_END")},[e,u]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:v.useCallback(l=>{n.current=l?getComputedStyle(l):null,r(l)},[])}}function Hn(t){return(t==null?void 0:t.animationName)||"none"}function c3(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 d3=Symbol("radix.slottable");function f3(t){const e=({children:r})=>p.jsx(p.Fragment,{children:r});return e.displayName=`${t}.Slottable`,e.__radixId=d3,e}var p3=v[" useInsertionEffect ".trim().toString()]||Rt;function zr({prop:t,defaultProp:e,onChange:r=()=>{},caller:n}){const[o,a,i]=h3({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=m3(c)?c(t):c;f!==t&&((h=i.current)==null||h.call(i,f))}else a(c)},[s,t,a,i]);return[u,l]}function h3({defaultProp:t,onChange:e}){const[r,n]=v.useState(t),o=v.useRef(r),a=v.useRef(e);return p3(()=>{a.current=e},[e]),v.useEffect(()=>{var i;o.current!==r&&((i=a.current)==null||i.call(a,r),o.current=r)},[r,o]),[r,n,a]}function m3(t){return typeof t=="function"}var b3=Object.freeze({position:"absolute",border:0,width:1,height:1,padding:0,margin:-1,overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",wordWrap:"normal"}),g3="VisuallyHidden",Ud=v.forwardRef((t,e)=>p.jsx(me.span,{...t,ref:e,style:{...b3,...t.style}}));Ud.displayName=g3;var v3=Ud,[ea]=tr("Tooltip",[Dd]),ta=Dd(),Vd="TooltipProvider",y3=700,pi="tooltip.open",[x3,ys]=ea(Vd),Wd=t=>{const{__scopeTooltip:e,delayDuration:r=y3,skipDelayDuration:n=300,disableHoverableContent:o=!1,children:a}=t,i=v.useRef(!0),s=v.useRef(!1),u=v.useRef(0);return v.useEffect(()=>{const l=u.current;return()=>window.clearTimeout(l)},[]),p.jsx(x3,{scope:e,isOpenDelayedRef:i,delayDuration:r,onOpen:v.useCallback(()=>{window.clearTimeout(u.current),i.current=!1},[]),onClose:v.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>i.current=!0,n)},[n]),isPointerInTransitRef:s,onPointerInTransitChange:v.useCallback(l=>{s.current=l},[]),disableHoverableContent:o,children:a})};Wd.displayName=Vd;var fn="Tooltip",[w3,ra]=ea(fn),Gd=t=>{const{__scopeTooltip:e,children:r,open:n,defaultOpen:o,onOpenChange:a,disableHoverableContent:i,delayDuration:s}=t,u=ys(fn,t.__scopeTooltip),l=ta(e),[c,h]=v.useState(null),f=xd(),d=v.useRef(0),b=i??u.disableHoverableContent,g=s??u.delayDuration,m=v.useRef(!1),[y,x]=zr({prop:n,defaultProp:o??!1,onChange:_=>{_?(u.onOpen(),document.dispatchEvent(new CustomEvent(pi))):u.onClose(),a==null||a(_)},caller:fn}),S=v.useMemo(()=>y?m.current?"delayed-open":"instant-open":"closed",[y]),E=v.useCallback(()=>{window.clearTimeout(d.current),d.current=0,m.current=!1,x(!0)},[x]),j=v.useCallback(()=>{window.clearTimeout(d.current),d.current=0,x(!1)},[x]),P=v.useCallback(()=>{window.clearTimeout(d.current),d.current=window.setTimeout(()=>{m.current=!0,x(!0),d.current=0},g)},[g,x]);return v.useEffect(()=>()=>{d.current&&(window.clearTimeout(d.current),d.current=0)},[]),p.jsx(o3,{...l,children:p.jsx(w3,{scope:e,contentId:f,open:y,stateAttribute:S,trigger:c,onTriggerChange:h,onTriggerEnter:v.useCallback(()=>{u.isOpenDelayedRef.current?P():E()},[u.isOpenDelayedRef,P,E]),onTriggerLeave:v.useCallback(()=>{b?j():(window.clearTimeout(d.current),d.current=0)},[j,b]),onOpen:E,onClose:j,disableHoverableContent:b,children:r})})};Gd.displayName=fn;var hi="TooltipTrigger",Yd=v.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=ra(hi,r),a=ys(hi,r),i=ta(r),s=v.useRef(null),u=we(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(a3,{asChild:!0,...i,children:p.jsx(me.button,{"aria-describedby":o.open?o.contentId:void 0,"data-state":o.stateAttribute,...n,ref:u,onPointerMove:ue(t.onPointerMove,f=>{f.pointerType!=="touch"&&!c.current&&!a.isPointerInTransitRef.current&&(o.onTriggerEnter(),c.current=!0)}),onPointerLeave:ue(t.onPointerLeave,()=>{o.onTriggerLeave(),c.current=!1}),onPointerDown:ue(t.onPointerDown,()=>{o.open&&o.onClose(),l.current=!0,document.addEventListener("pointerup",h,{once:!0})}),onFocus:ue(t.onFocus,()=>{l.current||o.onOpen()}),onBlur:ue(t.onBlur,o.onClose),onClick:ue(t.onClick,o.onClose)})})});Yd.displayName=hi;var S3="TooltipPortal",[fC,C3]=ea(S3,{forceMount:void 0}),Sr="TooltipContent",Xd=v.forwardRef((t,e)=>{const r=C3(Sr,t.__scopeTooltip),{forceMount:n=r.forceMount,side:o="top",...a}=t,i=ra(Sr,t.__scopeTooltip);return p.jsx(rr,{present:n||i.open,children:i.disableHoverableContent?p.jsx(Kd,{side:o,...a,ref:e}):p.jsx(E3,{side:o,...a,ref:e})})}),E3=v.forwardRef((t,e)=>{const r=ra(Sr,t.__scopeTooltip),n=ys(Sr,t.__scopeTooltip),o=v.useRef(null),a=we(e,o),[i,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((b,g)=>{const m=b.currentTarget,y={x:b.clientX,y:b.clientY},x=O3(y,m.getBoundingClientRect()),S=P3(y,x),E=k3(g.getBoundingClientRect()),j=R3([...S,...E]);s(j),h(!0)},[h]);return v.useEffect(()=>()=>f(),[f]),v.useEffect(()=>{if(u&&c){const b=m=>d(m,c),g=m=>d(m,u);return u.addEventListener("pointerleave",b),c.addEventListener("pointerleave",g),()=>{u.removeEventListener("pointerleave",b),c.removeEventListener("pointerleave",g)}}},[u,c,d,f]),v.useEffect(()=>{if(i){const b=g=>{const m=g.target,y={x:g.clientX,y:g.clientY},x=(u==null?void 0:u.contains(m))||(c==null?void 0:c.contains(m)),S=!_3(y,i);x?f():S&&(f(),l())};return document.addEventListener("pointermove",b),()=>document.removeEventListener("pointermove",b)}},[u,c,i,l,f]),p.jsx(Kd,{...t,ref:a})}),[T3,N3]=ea(fn,{isInside:!1}),j3=f3("TooltipContent"),Kd=v.forwardRef((t,e)=>{const{__scopeTooltip:r,children:n,"aria-label":o,onEscapeKeyDown:a,onPointerDownOutside:i,...s}=t,u=ra(Sr,r),l=ta(r),{onClose:c}=u;return v.useEffect(()=>(document.addEventListener(pi,c),()=>document.removeEventListener(pi,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(vd,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:a,onPointerDownOutside:i,onFocusOutside:h=>h.preventDefault(),onDismiss:c,children:p.jsxs(i3,{"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(j3,{children:n}),p.jsx(T3,{scope:r,isInside:!0,children:p.jsx(v3,{id:u.contentId,role:"tooltip",children:o||n})})]})})});Xd.displayName=Sr;var Jd="TooltipArrow",A3=v.forwardRef((t,e)=>{const{__scopeTooltip:r,...n}=t,o=ta(r);return N3(Jd,r).isInside?null:p.jsx(s3,{...o,...n,ref:e})});A3.displayName=Jd;function O3(t,e){const r=Math.abs(e.top-t.y),n=Math.abs(e.bottom-t.y),o=Math.abs(e.right-t.x),a=Math.abs(e.left-t.x);switch(Math.min(r,n,o,a)){case a:return"left";case o:return"right";case r:return"top";case n:return"bottom";default:throw new Error("unreachable")}}function P3(t,e,r=5){const n=[];switch(e){case"top":n.push({x:t.x-r,y:t.y+r},{x:t.x+r,y:t.y+r});break;case"bottom":n.push({x:t.x-r,y:t.y-r},{x:t.x+r,y:t.y-r});break;case"left":n.push({x:t.x+r,y:t.y-r},{x:t.x+r,y:t.y+r});break;case"right":n.push({x:t.x-r,y:t.y-r},{x:t.x-r,y:t.y+r});break}return n}function k3(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 _3(t,e){const{x:r,y:n}=t;let o=!1;for(let a=0,i=e.length-1;a<e.length;i=a++){const s=e[a],u=e[i],l=s.x,c=s.y,h=u.x,f=u.y;c>n!=f>n&&r<(h-l)*(n-c)/(f-c)+l&&(o=!o)}return o}function R3(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),I3(e)}function I3(t){if(t.length<=1)return t.slice();const e=[];for(let n=0;n<t.length;n++){const o=t[n];for(;e.length>=2;){const a=e[e.length-1],i=e[e.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))e.pop();else break}e.push(o)}e.pop();const r=[];for(let n=t.length-1;n>=0;n--){const o=t[n];for(;r.length>=2;){const a=r[r.length-1],i=r[r.length-2];if((a.x-i.x)*(o.y-i.y)>=(a.y-i.y)*(o.x-i.x))r.pop();else break}r.push(o)}return r.pop(),e.length===1&&r.length===1&&e[0].x===r[0].x&&e[0].y===r[0].y?e:e.concat(r)}var D3=Wd,M3=Gd,L3=Yd,Zd=Xd;const pn=D3,Cr=M3,Er=L3,Xt=v.forwardRef(({className:t,sideOffset:e=4,...r},n)=>p.jsx(Zd,{ref:n,sideOffset:e,className:Se("z-50 overflow-hidden rounded-md border bg-popover px-3 py-1.5 text-sm text-popover-foreground shadow-md animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2",t),...r}));Xt.displayName=Zd.displayName;const vr={mobile:{icon:Vi,label:"Mobile"},tablet:{icon:Wi,label:"Tablet"},small:{icon:Ui,label:"Small Desktop"},desktop:{icon:Gi,label:"Desktop"}},V=({title:t,children:e,defaultOpen:r=!0})=>{const[n,o]=w.useState(r);return p.jsxs("div",{className:"border-b border-border pb-3",children:[p.jsxs("button",{onClick:()=>o(!n),className:"flex items-center justify-between w-full py-1.5 text-xs font-medium text-muted-foreground hover:text-foreground",children:[t,n?p.jsx(zi,{className:"h-3 w-3"}):p.jsx(Fi,{className:"h-3 w-3"})]}),n&&p.jsx("div",{className:"mt-2 space-y-3",children:e})]})},pe=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:a,inputClassName:i=""})=>p.jsxs("div",{className:"flex items-center justify-between",children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:e,onChange:s=>r(parseInt(s.target.value)||0),min:n,max:o,className:Qe("w-14 px-2 py-1 text-xs rounded border border-input bg-background text-right",i)}),a?p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a}):null]})]}),wo=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="px",defaultValue:i=16})=>{const s=er(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(g,m)=>{const y={...c,[g]:m};r(y)},d=g=>{f(s,g)},b=Re.some(g=>g!=="desktop"&&c[g]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx(pn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||b?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(vr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Xt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]}),u?p.jsx("div",{className:"space-y-1.5 pl-2 border-l-2 border-primary/20",children:Re.map(g=>{const m=vr[g].icon,y=c[g],x=y===void 0?Re.find(S=>Re.indexOf(S)>Re.indexOf(g)&&c[S]!==void 0)||"desktop":null;return p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(pn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("div",{className:`p-1 rounded ${g===s?"bg-primary/10":""}`,children:p.jsx(m,{className:"h-3 w-3 text-muted-foreground"})})}),p.jsx(Xt,{side:"left",children:p.jsx("p",{children:vr[g].label})})]})}),p.jsx("input",{type:"number",value:y??"",placeholder:x?`${c[x]??i}`:"",onChange:S=>{const E=S.target.value===""?void 0:parseInt(S.target.value)||0;f(g,E)},min:n,max:o,className:`flex-1 px-2 py-1 text-xs rounded border border-input bg-background text-right ${y===void 0?"text-muted-foreground":""}`}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a})]},g)})}):p.jsxs("div",{className:"flex items-center gap-1",children:[p.jsx("input",{type:"number",value:h(),onChange:g=>d(parseInt(g.target.value)||0),min:n,max:o,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-right"}),p.jsx("span",{className:"text-xs text-muted-foreground w-6",children:a})]})]})},De=({label:t,values:e,onChange:r})=>{const[n,o]=w.useState(!0),a=(i,s)=>{r(n?{top:s,right:s,bottom:s,left:s}:{...e,[i]:s})};return p.jsxs("div",{className:"space-y-2",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("button",{onClick:()=>o(!n),className:`text-xs px-2 py-0.5 rounded ${n?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:n?"Linked":"Individual"})]}),n?p.jsx("input",{type:"number",value:e.top,onChange:i=>a("top",parseInt(i.target.value)||0),min:0,className:"w-full px-2 py-1 text-xs rounded border border-input bg-background text-center"}):p.jsx("div",{className:"grid grid-cols-4 gap-1",children:["top","right","bottom","left"].map(i=>p.jsxs("div",{className:"text-center",children:[p.jsx("input",{type:"number",value:e[i],onChange:s=>a(i,parseInt(s.target.value)||0),min:0,className:"w-full px-1 py-1 text-xs rounded border border-input bg-background text-center"}),p.jsx("span",{className:"text-[10px] text-muted-foreground",children:i[0].toUpperCase()})]},i))})]})},J=({label:t,value:e,options:r,onChange:n,className:o="",selectClassName:a=""})=>p.jsxs("div",{className:Qe("flex items-center justify-between",o,a),children:[t?p.jsx("label",{className:"text-xs text-muted-foreground",children:t}):null,p.jsx("select",{value:e,onChange:i=>n(i.target.value),className:Qe("px-2 py-1 text-xs rounded border border-input bg-background ",a),children:r.map(i=>p.jsx("option",{value:i.value,children:i.label},i.value))})]}),Je=({label:t,value:e,onChange:r})=>p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("input",{type:"color",value:e!=null&&e.startsWith("#")?e:"#000000",onChange:n=>r(n.target.value),className:"w-6 h-6 rounded border border-input cursor-pointer"}),p.jsx("input",{type:"text",value:e||"",onChange:n=>r(n.target.value),className:"w-20 px-2 py-1 text-xs rounded border border-input bg-background",placeholder:"#000000"})]})]}),gt=({label:t,value:e,options:r,onChange:n})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex gap-1",children:r.map(o=>p.jsx("button",{onClick:()=>n(o.value),className:`flex-1 px-2 py-1.5 text-xs rounded border transition-colors ${e===o.value?"bg-primary text-primary-foreground border-primary":"border-input hover:bg-secondary"}`,title:o.label,children:o.icon||o.label},o.value))})]}),Mt=({label:t,value:e,onChange:r,multiline:n=!1})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),n?p.jsx("textarea",{value:e||"",onChange:o=>r(o.target.value),className:"w-full p-2 text-xs rounded border border-input bg-background resize-none",rows:3}):p.jsx("input",{type:"text",value:e||"",onChange:o=>r(o.target.value),className:"w-full px-2 py-1.5 text-xs rounded border border-input bg-background"})]}),na=({label:t,value:e,onChange:r,min:n=0,max:o=100,unit:a=""})=>p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:[e,a]})]}),p.jsx("input",{type:"range",value:e,onChange:i=>r(parseInt(i.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]}),So=({label:t,values:e,onChange:r,min:n=0,max:o=100,unit:a="",defaultValue:i=50})=>{const s=er(),[u,l]=w.useState(!1),c=typeof e=="object"&&e!==null&&!("top"in e)?e:{desktop:e??i},h=()=>c[s]??c.desktop??i,f=(b,g)=>{const m={...c,[b]:g};r(m)},d=Re.some(b=>b!=="desktop"&&c[b]!==void 0);return p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("span",{className:"text-xs text-muted-foreground",children:[h(),a]}),p.jsx(pn,{children:p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{onClick:()=>l(!u),className:`p-1 rounded transition-colors ${u||d?"bg-primary/10 text-primary":"text-muted-foreground hover:text-foreground"}`,children:w.createElement(vr[s].icon,{className:"h-3 w-3"})})}),p.jsx(Xt,{side:"left",children:p.jsx("p",{children:u?"Hide breakpoints":"Edit per breakpoint"})})]})})]})]}),u?p.jsx("div",{className:"space-y-2 pl-2 border-l-2 border-primary/20",children:Re.map(b=>{const g=vr[b].icon,m=c[b];return p.jsxs("div",{className:"space-y-1",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("div",{className:`p-1 rounded ${b===s?"bg-primary/10":""}`,children:p.jsx(g,{className:"h-3 w-3 text-muted-foreground"})}),p.jsx("span",{className:"text-xs text-muted-foreground flex-1",children:vr[b].label}),p.jsxs("span",{className:"text-xs",children:[m??"-",m!==void 0?a:""]})]}),p.jsx("input",{type:"range",value:m??c.desktop??i,onChange:y=>f(b,parseInt(y.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]},b)})}):p.jsx("input",{type:"range",value:h(),onChange:b=>f(s,parseInt(b.target.value)),min:n,max:o,className:"w-full h-1.5 accent-primary"})]})},xs=({text:t="Click me",variant:e="solid",size:r="md",backgroundColor:n="#FF6B35",textColor:o="#ffffff",borderColor:a="#FF6B35",borderWidth:i=0,borderRadius:s=8,fontWeight:u="500",fontSize:l="auto",width:c="auto",paddingX:h=16,paddingY:f=10,margin:d={top:0,right:0,bottom:0,left:0},boxShadow:b="none",opacity:g=100})=>{const{connectors:{connect:m,drag:y},isActive:x}=ne(k=>({isActive:k.events.selected})),S={sm:{px:12,py:6,fs:14},md:{px:16,py:10,fs:16},lg:{px:24,py:14,fs:18}},E=S[r]||S.md,j=h==="auto"?E.px:h,P=f==="auto"?E.py:f,_=l==="auto"?E.fs:l,D=typeof d=="object"?`${d.top}px ${d.right}px ${d.bottom}px ${d.left}px`:`${d}px`,L=e==="outline"?"transparent":n,$=e==="outline"?n:o,C=e==="outline"?2:i,N=e==="outline"?n:a;return p.jsx("button",{ref:k=>k&&m(y(k)),className:`cursor-move transition-all hover:opacity-90 ${x?"ring-2 ring-primary ring-offset-2":""}`,style:{backgroundColor:L,color:$,borderWidth:`${C}px`,borderColor:N,borderStyle:"solid",borderRadius:`${s}px`,fontWeight:u,fontSize:`${_}px`,padding:`${P}px ${j}px`,margin:D,width:c==="full"?"100%":"auto",boxShadow:b==="none"?"none":b,opacity:g/100},children:t})},$3=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(V,{title:"Content",defaultOpen:!0,children:p.jsx(Mt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)})}),p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(gt,{label:"Variant",value:e.variant||"solid",options:[{value:"solid",label:"Solid"},{value:"outline",label:"Outline"}],onChange:n=>t(o=>o.variant=n)}),p.jsx(gt,{label:"Size Preset",value:e.size||"md",options:[{value:"sm",label:"S"},{value:"md",label:"M"},{value:"lg",label:"L"}],onChange:n=>t(o=>o.size=n)}),p.jsx(gt,{label:"Width",value:e.width||"auto",options:[{value:"auto",label:"Auto"},{value:"full",label:"Full"}],onChange:n=>t(o=>o.width=n)})]}),p.jsxs(V,{title:"Colors",defaultOpen:!0,children:[p.jsx(Je,{label:"Background",value:e.backgroundColor||"#FF6B35",onChange:n=>t(o=>o.backgroundColor=n)}),p.jsx(Je,{label:"Text",value:e.textColor||"#ffffff",onChange:n=>t(o=>o.textColor=n)}),p.jsx(na,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsxs(V,{title:"Typography",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Font Size",value:e.fontSize==="auto"?16:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:10,max:32}),p.jsx(J,{label:"Weight",value:e.fontWeight||"500",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)})]}),p.jsxs(V,{title:"Padding",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Horizontal",value:e.paddingX||16,onChange:n=>t(o=>o.paddingX=n),max:64}),p.jsx(pe,{unit:"px",label:"Vertical",value:e.paddingY||10,onChange:n=>t(o=>o.paddingY=n),max:48})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:50}),p.jsx(pe,{unit:"px",label:"Width",value:e.borderWidth||0,onChange:n=>t(o=>o.borderWidth=n),max:10}),p.jsx(Je,{label:"Color",value:e.borderColor||"#FF6B35",onChange:n=>t(o=>o.borderColor=n)})]}),p.jsx(V,{title:"Effects",defaultOpen:!1,children:p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 2px 4px rgba(0,0,0,0.1)",label:"Small"},{value:"0 4px 12px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 8px 24px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})})]})};xs.craft={displayName:"Button",props:{text:"Click me",variant:"solid",size:"md",backgroundColor:"#FF6B35",textColor:"#ffffff",borderColor:"#FF6B35",borderWidth:0,borderRadius:8,fontWeight:"500",fontSize:"auto",width:"auto",paddingX:16,paddingY:10,margin:{top:0,right:0,bottom:0,left:0},boxShadow:"none",opacity:100},related:{settings:$3}};const cr=({label:t,value:e,onChange:r,max:n=1e4})=>{const o=(e==null?void 0:e.type)||"custom",a=(e==null?void 0:e.value)||100,i=(e==null?void 0:e.unit)||"%",s=c=>{r(c==="none"?{type:"none"}:c==="auto"?{type:"auto"}:{type:"custom",value:a,unit:i})},u=c=>{r({type:"custom",value:c,unit:i})},l=c=>{r({type:"custom",value:a,unit:c})};return p.jsxs("div",{className:"space-y-2",children:[p.jsx("label",{className:"text-xs font-medium",children:t}),p.jsx(J,{selectClassName:"w-full",value:o,options:[{value:"none",label:"None"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:s}),o==="custom"&&p.jsxs("div",{className:"flex",children:[p.jsx("div",{className:"",children:p.jsx(pe,{inputClassName:"w-full h-8 rounded-l-lg",value:a,onChange:u,max:n})}),p.jsx("div",{className:"",children:p.jsx(J,{selectClassName:" h-8",value:i,options:[{value:"px",label:"px"},{value:"em",label:"em"},{value:"%",label:"%"},{value:"rem",label:"rem"},{value:"vh",label:"vh"},{value:"vw",label:"vw"}],onChange:l})})]})]})},dr=t=>t?typeof t=="string"?t:typeof t=="number"?`${t}px`:t.type==="none"?"none":t.type==="auto"?"auto":t.type==="custom"?`${t.value}${t.unit||"px"}`:"auto":"auto",ws=t=>{const e=typeof t.padding=="object"?`${t.padding.top}px ${t.padding.right}px ${t.padding.bottom}px ${t.padding.left}px`:`${t.padding}px`,r=typeof t.margin=="object"?`${t.margin.top}px ${t.margin.right}px ${t.margin.bottom}px ${t.margin.left}px`:`${t.margin}px`;return{backgroundColor:t.backgroundColor,backgroundImage:t.backgroundImage?`url(${t.backgroundImage})`:"none",backgroundSize:t.backgroundSize,backgroundRepeat:t.backgroundRepeat,padding:e,margin:r,width:dr(t.width),height:dr(t.height),minHeight:dr(t.minHeight),maxHeight:dr(t.maxHeight),minWidth:dr(t.minWidth),maxWidth:dr(t.maxWidth),display:t.display,flexDirection:t.display==="flex"?t.flexDirection:void 0,justifyContent:t.display==="flex"?t.justifyContent:void 0,alignItems:t.display==="flex"?t.alignItems:void 0,gap:t.display==="flex"?`${t.gap}px`:void 0,borderRadius:`${t.borderRadius}px`,borderWidth:`${t.borderWidth}px`,borderColor:t.borderColor,borderStyle:t.borderStyle,boxShadow:t.boxShadow==="none"?"none":t.boxShadow}},Ss={backgroundColor:"transparent",backgroundImage:"",backgroundSize:"cover",backgroundRepeat:"no-repeat",padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},width:{type:"auto"},height:{type:"auto"},minHeight:{type:"custom",value:50,unit:"px"},maxHeight:{type:"none"},minWidth:{type:"none"},maxWidth:{type:"auto"},display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:0,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},oa=t=>{const{actions:{setProp:e},props:r}=ne(a=>({props:a.data.props})),n=typeof r.padding=="object"?r.padding:{top:r.padding||16,right:r.padding||16,bottom:r.padding||16,left:r.padding||16},o=typeof r.margin=="object"?r.margin:{top:r.margin||0,right:r.margin||0,bottom:r.margin||0,left:r.margin||0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(J,{label:"Display",value:r.display||"block",options:[{value:"block",label:"Block"},{value:"flex",label:"Flex"}],onChange:a=>e(i=>i.display=a)}),r.display==="flex"&&p.jsxs(p.Fragment,{children:[p.jsx(gt,{label:"Direction",value:r.flexDirection||"column",options:[{value:"row",label:"Row"},{value:"column",label:"Col"}],onChange:a=>e(i=>i.flexDirection=a)}),p.jsx(J,{label:"Justify",value:r.justifyContent||"flex-start",options:[{value:"flex-start",label:"Start"},{value:"center",label:"Center"},{value:"flex-end",label:"End"},{value:"space-between",label:"Between"}],onChange:a=>e(i=>i.justifyContent=a)}),p.jsx(pe,{unit:"px",label:"Gap",value:r.gap||0,onChange:a=>e(i=>i.gap=a),max:64})]})]}),p.jsxs(V,{title:"Sizing",defaultOpen:!0,children:[p.jsx(cr,{label:"Width",value:r.width,onChange:a=>e(i=>i.width=a),max:1e4}),p.jsx(cr,{label:"Min Width",value:r.minWidth,onChange:a=>e(i=>i.minWidth=a),max:1e4}),p.jsx(cr,{label:"Max Width",value:r.maxWidth,onChange:a=>e(i=>i.maxWidth=a),max:1e4}),p.jsx(cr,{label:"Height",value:r.height,onChange:a=>e(i=>i.height=a),max:1e4}),p.jsx(cr,{label:"Min Height",value:r.minHeight,onChange:a=>e(i=>i.minHeight=a),max:1e4}),p.jsx(cr,{label:"Max Height",value:r.maxHeight,onChange:a=>e(i=>i.maxHeight=a),max:1e4})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!0,children:[p.jsx(De,{label:"Padding",values:n,onChange:a=>e(i=>i.padding=a)}),p.jsx(De,{label:"Margin",values:o,onChange:a=>e(i=>i.margin=a)})]}),p.jsxs(V,{title:"Background",defaultOpen:!1,children:[p.jsx(Je,{label:"Color",value:r.backgroundColor||"transparent",onChange:a=>e(i=>i.backgroundColor=a)}),p.jsx("input",{type:"text",placeholder:"Background image URL",value:r.backgroundImage||"",onChange:a=>e(i=>i.backgroundImage=a.target.value),className:"w-full px-2 py-1 border rounded text-sm"}),p.jsx(J,{label:"Image Size",value:r.backgroundSize||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"stretch",label:"Stretch"}],onChange:a=>e(i=>i.backgroundSize=a)}),p.jsx(J,{label:"Image Repeat",value:r.backgroundRepeat||"no-repeat",options:[{value:"no-repeat",label:"No Repeat"},{value:"repeat",label:"Repeat"},{value:"repeat-x",label:"Repeat X"},{value:"repeat-y",label:"Repeat Y"}],onChange:a=>e(i=>i.backgroundRepeat=a)})]}),p.jsxs(V,{title:"Border",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Radius",value:r.borderRadius,onChange:a=>e(i=>i.borderRadius=a),max:5e3}),p.jsx(pe,{unit:"px",label:"Width",value:r.borderWidth||1,onChange:a=>e(i=>i.borderWidth=a),max:10}),p.jsx(Je,{label:"Color",value:r.borderColor||"transparent",onChange:a=>e(i=>i.borderColor=a)})]})]})},En=t=>{const{connectors:{connect:e,drag:r},selected:n}=ne(o=>({selected:o.events.selected}));return p.jsx("div",{ref:o=>{o&&e(r(o))},style:ws(t),className:`min-h-[50px] w-full ${n?"outline outline-blue-500":""}`,children:t.children})};En.craft={isCanvas:!0,props:Ss,displayName:"Container",related:{settings:oa},rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Wrapper")}};const B3=/\{\{\s*([\w.]+)\s*\}\}/g,H3=(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},Co=(t,e)=>{if(!t||typeof t!="string"||!e)return t;const r=/\{\{\s*([\w.]+)\s*\}\}/g;return t.replace(r,(n,o)=>{const a=H3(e,o);return a==null?n:String(a)})},z3=t=>!t||typeof t!="string"?!1:/\{\{\s*([\w.]+)\s*\}\}/.test(t),F3=t=>{if(!t||typeof t!="string")return[];const e=[];let r;const n=new RegExp(B3.source,"g");for(;(r=n.exec(t))!==null;)e.push(r[1]);return e},q3={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"}},U3={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"}]}},V3=({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(Hi,{className:"h-3.5 w-3.5 text-green-500"}):p.jsx(ih,{className:"h-3.5 w-3.5 text-muted-foreground"})})]})},W3=({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(zi,{className:"h-3.5 w-3.5 text-muted-foreground"}):p.jsx(Fi,{className:"h-3.5 w-3.5 text-muted-foreground"}),p.jsx("span",{className:"text-xs font-medium",children:e.label}),p.jsxs("span",{className:"text-xs text-muted-foreground",children:["(",e.variables.length,")"]})]}),n&&p.jsx("div",{className:"pb-2 space-y-0.5",children:e.variables.map(a=>p.jsx(V3,{variable:a},a.key))})]})},Qd=({className:t})=>p.jsxs("div",{className:Se("rounded-lg border border-border bg-muted/30",t),children:[p.jsxs("div",{className:"px-3 py-2 border-b border-border",children:[p.jsx("h4",{className:"text-xs font-semibold",children:"Dynamic Variables"}),p.jsx("p",{className:"text-xs text-muted-foreground mt-0.5",children:"Click to copy, then paste in your text"})]}),p.jsx("div",{className:"px-2",children:Object.entries(U3).map(([e,r],n)=>p.jsx(W3,{category:e,data:r,defaultOpen:n===0},e))})]});var ef={},hn={},Cs={},mn={},Es={};Object.defineProperty(Es,"__esModule",{value:!0});Es.default=new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map(function(t){return t.charCodeAt(0)}));var Ts={};Object.defineProperty(Ts,"__esModule",{value:!0});Ts.default=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(function(t){return t.charCodeAt(0)}));var mi={};(function(t){var e;Object.defineProperty(t,"__esModule",{value:!0}),t.replaceCodePoint=t.fromCodePoint=void 0;var r=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);t.fromCodePoint=(e=String.fromCodePoint)!==null&&e!==void 0?e:function(a){var i="";return a>65535&&(a-=65536,i+=String.fromCharCode(a>>>10&1023|55296),a=56320|a&1023),i+=String.fromCharCode(a),i};function n(a){var i;return a>=55296&&a<=57343||a>1114111?65533:(i=r.get(a))!==null&&i!==void 0?i:a}t.replaceCodePoint=n;function o(a){return(0,t.fromCodePoint)(n(a))}t.default=o})(mi);(function(t){var e=F&&F.__createBinding||(Object.create?function(C,N,k,I){I===void 0&&(I=k);var T=Object.getOwnPropertyDescriptor(N,k);(!T||("get"in T?!N.__esModule:T.writable||T.configurable))&&(T={enumerable:!0,get:function(){return N[k]}}),Object.defineProperty(C,I,T)}:function(C,N,k,I){I===void 0&&(I=k),C[I]=N[k]}),r=F&&F.__setModuleDefault||(Object.create?function(C,N){Object.defineProperty(C,"default",{enumerable:!0,value:N})}:function(C,N){C.default=N}),n=F&&F.__importStar||function(C){if(C&&C.__esModule)return C;var N={};if(C!=null)for(var k in C)k!=="default"&&Object.prototype.hasOwnProperty.call(C,k)&&e(N,C,k);return r(N,C),N},o=F&&F.__importDefault||function(C){return C&&C.__esModule?C:{default:C}};Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXML=t.decodeHTMLStrict=t.decodeHTMLAttribute=t.decodeHTML=t.determineBranch=t.EntityDecoder=t.DecodingMode=t.BinTrieFlags=t.fromCodePoint=t.replaceCodePoint=t.decodeCodePoint=t.xmlDecodeTree=t.htmlDecodeTree=void 0;var a=o(Es);t.htmlDecodeTree=a.default;var i=o(Ts);t.xmlDecodeTree=i.default;var s=n(mi);t.decodeCodePoint=s.default;var u=mi;Object.defineProperty(t,"replaceCodePoint",{enumerable:!0,get:function(){return u.replaceCodePoint}}),Object.defineProperty(t,"fromCodePoint",{enumerable:!0,get:function(){return u.fromCodePoint}});var l;(function(C){C[C.NUM=35]="NUM",C[C.SEMI=59]="SEMI",C[C.EQUALS=61]="EQUALS",C[C.ZERO=48]="ZERO",C[C.NINE=57]="NINE",C[C.LOWER_A=97]="LOWER_A",C[C.LOWER_F=102]="LOWER_F",C[C.LOWER_X=120]="LOWER_X",C[C.LOWER_Z=122]="LOWER_Z",C[C.UPPER_A=65]="UPPER_A",C[C.UPPER_F=70]="UPPER_F",C[C.UPPER_Z=90]="UPPER_Z"})(l||(l={}));var c=32,h;(function(C){C[C.VALUE_LENGTH=49152]="VALUE_LENGTH",C[C.BRANCH_LENGTH=16256]="BRANCH_LENGTH",C[C.JUMP_TABLE=127]="JUMP_TABLE"})(h=t.BinTrieFlags||(t.BinTrieFlags={}));function f(C){return C>=l.ZERO&&C<=l.NINE}function d(C){return C>=l.UPPER_A&&C<=l.UPPER_F||C>=l.LOWER_A&&C<=l.LOWER_F}function b(C){return C>=l.UPPER_A&&C<=l.UPPER_Z||C>=l.LOWER_A&&C<=l.LOWER_Z||f(C)}function g(C){return C===l.EQUALS||b(C)}var m;(function(C){C[C.EntityStart=0]="EntityStart",C[C.NumericStart=1]="NumericStart",C[C.NumericDecimal=2]="NumericDecimal",C[C.NumericHex=3]="NumericHex",C[C.NamedEntity=4]="NamedEntity"})(m||(m={}));var 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(N,k,I){this.decodeTree=N,this.emitCodePoint=k,this.errors=I,this.state=m.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=y.Strict}return C.prototype.startEntity=function(N){this.decodeMode=N,this.state=m.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1},C.prototype.write=function(N,k){switch(this.state){case m.EntityStart:return N.charCodeAt(k)===l.NUM?(this.state=m.NumericStart,this.consumed+=1,this.stateNumericStart(N,k+1)):(this.state=m.NamedEntity,this.stateNamedEntity(N,k));case m.NumericStart:return this.stateNumericStart(N,k);case m.NumericDecimal:return this.stateNumericDecimal(N,k);case m.NumericHex:return this.stateNumericHex(N,k);case m.NamedEntity:return this.stateNamedEntity(N,k)}},C.prototype.stateNumericStart=function(N,k){return k>=N.length?-1:(N.charCodeAt(k)|c)===l.LOWER_X?(this.state=m.NumericHex,this.consumed+=1,this.stateNumericHex(N,k+1)):(this.state=m.NumericDecimal,this.stateNumericDecimal(N,k))},C.prototype.addToNumericResult=function(N,k,I,T){if(k!==I){var O=I-k;this.result=this.result*Math.pow(T,O)+parseInt(N.substr(k,O),T),this.consumed+=O}},C.prototype.stateNumericHex=function(N,k){for(var I=k;k<N.length;){var T=N.charCodeAt(k);if(f(T)||d(T))k+=1;else return this.addToNumericResult(N,I,k,16),this.emitNumericEntity(T,3)}return this.addToNumericResult(N,I,k,16),-1},C.prototype.stateNumericDecimal=function(N,k){for(var I=k;k<N.length;){var T=N.charCodeAt(k);if(f(T))k+=1;else return this.addToNumericResult(N,I,k,10),this.emitNumericEntity(T,2)}return this.addToNumericResult(N,I,k,10),-1},C.prototype.emitNumericEntity=function(N,k){var I;if(this.consumed<=k)return(I=this.errors)===null||I===void 0||I.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(N===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&&(N!==l.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed},C.prototype.stateNamedEntity=function(N,k){for(var I=this.decodeTree,T=I[this.treeIndex],O=(T&h.VALUE_LENGTH)>>14;k<N.length;k++,this.excess++){var A=N.charCodeAt(k);if(this.treeIndex=E(I,T,this.treeIndex+Math.max(1,O),A),this.treeIndex<0)return this.result===0||this.decodeMode===y.Attribute&&(O===0||g(A))?0:this.emitNotTerminatedNamedEntity();if(T=I[this.treeIndex],O=(T&h.VALUE_LENGTH)>>14,O!==0){if(A===l.SEMI)return this.emitNamedEntityData(this.treeIndex,O,this.consumed+this.excess);this.decodeMode!==y.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1},C.prototype.emitNotTerminatedNamedEntity=function(){var N,k=this,I=k.result,T=k.decodeTree,O=(T[I]&h.VALUE_LENGTH)>>14;return this.emitNamedEntityData(I,O,this.consumed),(N=this.errors)===null||N===void 0||N.missingSemicolonAfterCharacterReference(),this.consumed},C.prototype.emitNamedEntityData=function(N,k,I){var T=this.decodeTree;return this.emitCodePoint(k===1?T[N]&~h.VALUE_LENGTH:T[N+1],I),k===3&&this.emitCodePoint(T[N+2],I),I},C.prototype.end=function(){var N;switch(this.state){case m.NamedEntity:return this.result!==0&&(this.decodeMode!==y.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case m.NumericDecimal:return this.emitNumericEntity(0,2);case m.NumericHex:return this.emitNumericEntity(0,3);case m.NumericStart:return(N=this.errors)===null||N===void 0||N.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case m.EntityStart:return 0}},C}();t.EntityDecoder=x;function S(C){var N="",k=new x(C,function(I){return N+=(0,s.fromCodePoint)(I)});return function(T,O){for(var A=0,R=0;(R=T.indexOf("&",R))>=0;){N+=T.slice(A,R),k.startEntity(O);var M=k.write(T,R+1);if(M<0){A=R+k.end();break}A=R+M,R=M===0?A+1:A}var q=N+T.slice(A);return N="",q}}function E(C,N,k,I){var T=(N&h.BRANCH_LENGTH)>>7,O=N&h.JUMP_TABLE;if(T===0)return O!==0&&I===O?k:-1;if(O){var A=I-O;return A<0||A>=T?-1:C[k+A]-1}for(var R=k,M=R+T-1;R<=M;){var q=R+M>>>1,de=C[q];if(de<I)R=q+1;else if(de>I)M=q-1;else return C[q+T]}return-1}t.determineBranch=E;var j=S(a.default),P=S(i.default);function _(C,N){return N===void 0&&(N=y.Legacy),j(C,N)}t.decodeHTML=_;function D(C){return j(C,y.Attribute)}t.decodeHTMLAttribute=D;function L(C){return j(C,y.Strict)}t.decodeHTMLStrict=L;function $(C){return P(C,y.Strict)}t.decodeXML=$})(mn);(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.QuoteType=void 0;var e=mn,r;(function(f){f[f.Tab=9]="Tab",f[f.NewLine=10]="NewLine",f[f.FormFeed=12]="FormFeed",f[f.CarriageReturn=13]="CarriageReturn",f[f.Space=32]="Space",f[f.ExclamationMark=33]="ExclamationMark",f[f.Number=35]="Number",f[f.Amp=38]="Amp",f[f.SingleQuote=39]="SingleQuote",f[f.DoubleQuote=34]="DoubleQuote",f[f.Dash=45]="Dash",f[f.Slash=47]="Slash",f[f.Zero=48]="Zero",f[f.Nine=57]="Nine",f[f.Semi=59]="Semi",f[f.Lt=60]="Lt",f[f.Eq=61]="Eq",f[f.Gt=62]="Gt",f[f.Questionmark=63]="Questionmark",f[f.UpperA=65]="UpperA",f[f.LowerA=97]="LowerA",f[f.UpperF=70]="UpperF",f[f.LowerF=102]="LowerF",f[f.UpperZ=90]="UpperZ",f[f.LowerZ=122]="LowerZ",f[f.LowerX=120]="LowerX",f[f.OpeningSquareBracket=91]="OpeningSquareBracket"})(r||(r={}));var n;(function(f){f[f.Text=1]="Text",f[f.BeforeTagName=2]="BeforeTagName",f[f.InTagName=3]="InTagName",f[f.InSelfClosingTag=4]="InSelfClosingTag",f[f.BeforeClosingTagName=5]="BeforeClosingTagName",f[f.InClosingTagName=6]="InClosingTagName",f[f.AfterClosingTagName=7]="AfterClosingTagName",f[f.BeforeAttributeName=8]="BeforeAttributeName",f[f.InAttributeName=9]="InAttributeName",f[f.AfterAttributeName=10]="AfterAttributeName",f[f.BeforeAttributeValue=11]="BeforeAttributeValue",f[f.InAttributeValueDq=12]="InAttributeValueDq",f[f.InAttributeValueSq=13]="InAttributeValueSq",f[f.InAttributeValueNq=14]="InAttributeValueNq",f[f.BeforeDeclaration=15]="BeforeDeclaration",f[f.InDeclaration=16]="InDeclaration",f[f.InProcessingInstruction=17]="InProcessingInstruction",f[f.BeforeComment=18]="BeforeComment",f[f.CDATASequence=19]="CDATASequence",f[f.InSpecialComment=20]="InSpecialComment",f[f.InCommentLike=21]="InCommentLike",f[f.BeforeSpecialS=22]="BeforeSpecialS",f[f.SpecialStartSequence=23]="SpecialStartSequence",f[f.InSpecialTag=24]="InSpecialTag",f[f.BeforeEntity=25]="BeforeEntity",f[f.BeforeNumericEntity=26]="BeforeNumericEntity",f[f.InNamedEntity=27]="InNamedEntity",f[f.InNumericEntity=28]="InNumericEntity",f[f.InHexEntity=29]="InHexEntity"})(n||(n={}));function o(f){return f===r.Space||f===r.NewLine||f===r.Tab||f===r.FormFeed||f===r.CarriageReturn}function a(f){return f===r.Slash||f===r.Gt||o(f)}function i(f){return f>=r.Zero&&f<=r.Nine}function s(f){return f>=r.LowerA&&f<=r.LowerZ||f>=r.UpperA&&f<=r.UpperZ}function u(f){return f>=r.UpperA&&f<=r.UpperF||f>=r.LowerA&&f<=r.LowerF}var l;(function(f){f[f.NoValue=0]="NoValue",f[f.Unquoted=1]="Unquoted",f[f.Single=2]="Single",f[f.Double=3]="Double"})(l=t.QuoteType||(t.QuoteType={}));var c={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])},h=function(){function f(d,b){var g=d.xmlMode,m=g===void 0?!1:g,y=d.decodeEntities,x=y===void 0?!0:y;this.cbs=b,this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.currentSequence=void 0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=m,this.decodeEntities=x,this.entityTrie=m?e.xmlDecodeTree:e.htmlDecodeTree}return f.prototype.reset=function(){this.state=n.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=n.Text,this.currentSequence=void 0,this.running=!0,this.offset=0},f.prototype.write=function(d){this.offset+=this.buffer.length,this.buffer=d,this.parse()},f.prototype.end=function(){this.running&&this.finish()},f.prototype.pause=function(){this.running=!1},f.prototype.resume=function(){this.running=!0,this.index<this.buffer.length+this.offset&&this.parse()},f.prototype.getIndex=function(){return this.index},f.prototype.getSectionStart=function(){return this.sectionStart},f.prototype.stateText=function(d){d===r.Lt||!this.decodeEntities&&this.fastForwardTo(r.Lt)?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=n.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&d===r.Amp&&(this.state=n.BeforeEntity)},f.prototype.stateSpecialStartSequence=function(d){var b=this.sequenceIndex===this.currentSequence.length,g=b?a(d):(d|32)===this.currentSequence[this.sequenceIndex];if(!g)this.isSpecial=!1;else if(!b){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=n.InTagName,this.stateInTagName(d)},f.prototype.stateInSpecialTag=function(d){if(this.sequenceIndex===this.currentSequence.length){if(d===r.Gt||o(d)){var b=this.index-this.currentSequence.length;if(this.sectionStart<b){var g=this.index;this.index=b,this.cbs.ontext(this.sectionStart,b),this.index=g}this.isSpecial=!1,this.sectionStart=b+2,this.stateInClosingTagName(d);return}this.sequenceIndex=0}(d|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===c.TitleEnd?this.decodeEntities&&d===r.Amp&&(this.state=n.BeforeEntity):this.fastForwardTo(r.Lt)&&(this.sequenceIndex=1):this.sequenceIndex=+(d===r.Lt)},f.prototype.stateCDATASequence=function(d){d===c.Cdata[this.sequenceIndex]?++this.sequenceIndex===c.Cdata.length&&(this.state=n.InCommentLike,this.currentSequence=c.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=n.InDeclaration,this.stateInDeclaration(d))},f.prototype.fastForwardTo=function(d){for(;++this.index<this.buffer.length+this.offset;)if(this.buffer.charCodeAt(this.index-this.offset)===d)return!0;return this.index=this.buffer.length+this.offset-1,!1},f.prototype.stateInCommentLike=function(d){d===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index,2):this.cbs.oncomment(this.sectionStart,this.index,2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=n.Text):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):d!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)},f.prototype.isTagStartChar=function(d){return this.xmlMode?!a(d):s(d)},f.prototype.startSpecial=function(d,b){this.isSpecial=!0,this.currentSequence=d,this.sequenceIndex=b,this.state=n.SpecialStartSequence},f.prototype.stateBeforeTagName=function(d){if(d===r.ExclamationMark)this.state=n.BeforeDeclaration,this.sectionStart=this.index+1;else if(d===r.Questionmark)this.state=n.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(d)){var b=d|32;this.sectionStart=this.index,!this.xmlMode&&b===c.TitleEnd[2]?this.startSpecial(c.TitleEnd,3):this.state=!this.xmlMode&&b===c.ScriptEnd[2]?n.BeforeSpecialS:n.InTagName}else d===r.Slash?this.state=n.BeforeClosingTagName:(this.state=n.Text,this.stateText(d))},f.prototype.stateInTagName=function(d){a(d)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateBeforeClosingTagName=function(d){o(d)||(d===r.Gt?this.state=n.Text:(this.state=this.isTagStartChar(d)?n.InClosingTagName:n.InSpecialComment,this.sectionStart=this.index))},f.prototype.stateInClosingTagName=function(d){(d===r.Gt||o(d))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterClosingTagName,this.stateAfterClosingTagName(d))},f.prototype.stateAfterClosingTagName=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeAttributeName=function(d){d===r.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=n.InSpecialTag,this.sequenceIndex=0):this.state=n.Text,this.baseState=this.state,this.sectionStart=this.index+1):d===r.Slash?this.state=n.InSelfClosingTag:o(d)||(this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateInSelfClosingTag=function(d){d===r.Gt?(this.cbs.onselfclosingtag(this.index),this.state=n.Text,this.baseState=n.Text,this.sectionStart=this.index+1,this.isSpecial=!1):o(d)||(this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d))},f.prototype.stateInAttributeName=function(d){(d===r.Eq||a(d))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=n.AfterAttributeName,this.stateAfterAttributeName(d))},f.prototype.stateAfterAttributeName=function(d){d===r.Eq?this.state=n.BeforeAttributeValue:d===r.Slash||d===r.Gt?(this.cbs.onattribend(l.NoValue,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d)):o(d)||(this.cbs.onattribend(l.NoValue,this.index),this.state=n.InAttributeName,this.sectionStart=this.index)},f.prototype.stateBeforeAttributeValue=function(d){d===r.DoubleQuote?(this.state=n.InAttributeValueDq,this.sectionStart=this.index+1):d===r.SingleQuote?(this.state=n.InAttributeValueSq,this.sectionStart=this.index+1):o(d)||(this.sectionStart=this.index,this.state=n.InAttributeValueNq,this.stateInAttributeValueNoQuotes(d))},f.prototype.handleInAttributeValue=function(d,b){d===b||!this.decodeEntities&&this.fastForwardTo(b)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(b===r.DoubleQuote?l.Double:l.Single,this.index),this.state=n.BeforeAttributeName):this.decodeEntities&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateInAttributeValueDoubleQuotes=function(d){this.handleInAttributeValue(d,r.DoubleQuote)},f.prototype.stateInAttributeValueSingleQuotes=function(d){this.handleInAttributeValue(d,r.SingleQuote)},f.prototype.stateInAttributeValueNoQuotes=function(d){o(d)||d===r.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(l.Unquoted,this.index),this.state=n.BeforeAttributeName,this.stateBeforeAttributeName(d)):this.decodeEntities&&d===r.Amp&&(this.baseState=this.state,this.state=n.BeforeEntity)},f.prototype.stateBeforeDeclaration=function(d){d===r.OpeningSquareBracket?(this.state=n.CDATASequence,this.sequenceIndex=0):this.state=d===r.Dash?n.BeforeComment:n.InDeclaration},f.prototype.stateInDeclaration=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateInProcessingInstruction=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeComment=function(d){d===r.Dash?(this.state=n.InCommentLike,this.currentSequence=c.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=n.InDeclaration},f.prototype.stateInSpecialComment=function(d){(d===r.Gt||this.fastForwardTo(r.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=n.Text,this.sectionStart=this.index+1)},f.prototype.stateBeforeSpecialS=function(d){var b=d|32;b===c.ScriptEnd[3]?this.startSpecial(c.ScriptEnd,4):b===c.StyleEnd[3]?this.startSpecial(c.StyleEnd,4):(this.state=n.InTagName,this.stateInTagName(d))},f.prototype.stateBeforeEntity=function(d){this.entityExcess=1,this.entityResult=0,d===r.Number?this.state=n.BeforeNumericEntity:d===r.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=n.InNamedEntity,this.stateInNamedEntity(d))},f.prototype.stateInNamedEntity=function(d){if(this.entityExcess+=1,this.trieIndex=(0,e.determineBranch)(this.entityTrie,this.trieCurrent,this.trieIndex+1,d),this.trieIndex<0){this.emitNamedEntity(),this.index--;return}this.trieCurrent=this.entityTrie[this.trieIndex];var b=this.trieCurrent&e.BinTrieFlags.VALUE_LENGTH;if(b){var g=(b>>14)-1;if(!this.allowLegacyEntity()&&d!==r.Semi)this.trieIndex+=g;else{var m=this.index-this.entityExcess+1;m>this.sectionStart&&this.emitPartial(this.sectionStart,m),this.entityResult=this.trieIndex,this.trieIndex+=g,this.entityExcess=0,this.sectionStart=this.index+1,g===0&&this.emitNamedEntity()}}},f.prototype.emitNamedEntity=function(){if(this.state=this.baseState,this.entityResult!==0){var d=(this.entityTrie[this.entityResult]&e.BinTrieFlags.VALUE_LENGTH)>>14;switch(d){case 1:{this.emitCodePoint(this.entityTrie[this.entityResult]&~e.BinTrieFlags.VALUE_LENGTH);break}case 2:{this.emitCodePoint(this.entityTrie[this.entityResult+1]);break}case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}},f.prototype.stateBeforeNumericEntity=function(d){(d|32)===r.LowerX?(this.entityExcess++,this.state=n.InHexEntity):(this.state=n.InNumericEntity,this.stateInNumericEntity(d))},f.prototype.emitNumericEntity=function(d){var b=this.index-this.entityExcess-1,g=b+2+ +(this.state===n.InHexEntity);g!==this.index&&(b>this.sectionStart&&this.emitPartial(this.sectionStart,b),this.sectionStart=this.index+Number(d),this.emitCodePoint((0,e.replaceCodePoint)(this.entityResult))),this.state=this.baseState},f.prototype.stateInNumericEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*10+(d-r.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.stateInHexEntity=function(d){d===r.Semi?this.emitNumericEntity(!0):i(d)?(this.entityResult=this.entityResult*16+(d-r.Zero),this.entityExcess++):u(d)?(this.entityResult=this.entityResult*16+((d|32)-r.LowerA+10),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)},f.prototype.allowLegacyEntity=function(){return!this.xmlMode&&(this.baseState===n.Text||this.baseState===n.InSpecialTag)},f.prototype.cleanup=function(){this.running&&this.sectionStart!==this.index&&(this.state===n.Text||this.state===n.InSpecialTag&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===n.InAttributeValueDq||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueNq)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))},f.prototype.shouldContinue=function(){return this.index<this.buffer.length+this.offset&&this.running},f.prototype.parse=function(){for(;this.shouldContinue();){var d=this.buffer.charCodeAt(this.index-this.offset);switch(this.state){case n.Text:{this.stateText(d);break}case n.SpecialStartSequence:{this.stateSpecialStartSequence(d);break}case n.InSpecialTag:{this.stateInSpecialTag(d);break}case n.CDATASequence:{this.stateCDATASequence(d);break}case n.InAttributeValueDq:{this.stateInAttributeValueDoubleQuotes(d);break}case n.InAttributeName:{this.stateInAttributeName(d);break}case n.InCommentLike:{this.stateInCommentLike(d);break}case n.InSpecialComment:{this.stateInSpecialComment(d);break}case n.BeforeAttributeName:{this.stateBeforeAttributeName(d);break}case n.InTagName:{this.stateInTagName(d);break}case n.InClosingTagName:{this.stateInClosingTagName(d);break}case n.BeforeTagName:{this.stateBeforeTagName(d);break}case n.AfterAttributeName:{this.stateAfterAttributeName(d);break}case n.InAttributeValueSq:{this.stateInAttributeValueSingleQuotes(d);break}case n.BeforeAttributeValue:{this.stateBeforeAttributeValue(d);break}case n.BeforeClosingTagName:{this.stateBeforeClosingTagName(d);break}case n.AfterClosingTagName:{this.stateAfterClosingTagName(d);break}case n.BeforeSpecialS:{this.stateBeforeSpecialS(d);break}case n.InAttributeValueNq:{this.stateInAttributeValueNoQuotes(d);break}case n.InSelfClosingTag:{this.stateInSelfClosingTag(d);break}case n.InDeclaration:{this.stateInDeclaration(d);break}case n.BeforeDeclaration:{this.stateBeforeDeclaration(d);break}case n.BeforeComment:{this.stateBeforeComment(d);break}case n.InProcessingInstruction:{this.stateInProcessingInstruction(d);break}case n.InNamedEntity:{this.stateInNamedEntity(d);break}case n.BeforeEntity:{this.stateBeforeEntity(d);break}case n.InHexEntity:{this.stateInHexEntity(d);break}case n.InNumericEntity:{this.stateInNumericEntity(d);break}default:this.stateBeforeNumericEntity(d)}this.index++}this.cleanup()},f.prototype.finish=function(){this.state===n.InNamedEntity&&this.emitNamedEntity(),this.sectionStart<this.index&&this.handleTrailingData(),this.cbs.onend()},f.prototype.handleTrailingData=function(){var d=this.buffer.length+this.offset;this.state===n.InCommentLike?this.currentSequence===c.CdataEnd?this.cbs.oncdata(this.sectionStart,d,0):this.cbs.oncomment(this.sectionStart,d,0):this.state===n.InNumericEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InHexEntity&&this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state===n.InTagName||this.state===n.BeforeAttributeName||this.state===n.BeforeAttributeValue||this.state===n.AfterAttributeName||this.state===n.InAttributeName||this.state===n.InAttributeValueSq||this.state===n.InAttributeValueDq||this.state===n.InAttributeValueNq||this.state===n.InClosingTagName||this.cbs.ontext(this.sectionStart,d)},f.prototype.emitPartial=function(d,b){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribdata(d,b):this.cbs.ontext(d,b)},f.prototype.emitCodePoint=function(d){this.baseState!==n.Text&&this.baseState!==n.InSpecialTag?this.cbs.onattribentity(d):this.cbs.ontextentity(d)},f}();t.default=h})(Cs);var G3=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),Y3=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),X3=F&&F.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&G3(e,t,r);return Y3(e,t),e};Object.defineProperty(hn,"__esModule",{value:!0});hn.Parser=void 0;var zn=X3(Cs),jl=mn,fr=new Set(["input","option","optgroup","select","button","datalist","textarea"]),re=new Set(["p"]),Al=new Set(["thead","tbody"]),Ol=new Set(["dd","dt"]),Pl=new Set(["rt","rp"]),K3=new Map([["tr",new Set(["tr","th","td"])],["th",new Set(["th"])],["td",new Set(["thead","th","td"])],["body",new Set(["head","link","script"])],["li",new Set(["li"])],["p",re],["h1",re],["h2",re],["h3",re],["h4",re],["h5",re],["h6",re],["select",fr],["input",fr],["output",fr],["button",fr],["datalist",fr],["textarea",fr],["option",new Set(["option"])],["optgroup",new Set(["optgroup","option"])],["dd",Ol],["dt",Ol],["address",re],["article",re],["aside",re],["blockquote",re],["details",re],["div",re],["dl",re],["fieldset",re],["figcaption",re],["figure",re],["footer",re],["form",re],["header",re],["hr",re],["main",re],["nav",re],["ol",re],["pre",re],["section",re],["table",re],["ul",re],["rt",Pl],["rp",Pl],["tbody",Al],["tfoot",Al]]),J3=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]),kl=new Set(["math","svg"]),_l=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignobject","desc","title"]),Z3=/\s|\//,Q3=function(){function t(e,r){r===void 0&&(r={});var n,o,a,i,s;this.options=r,this.startIndex=0,this.endIndex=0,this.openTagStart=0,this.tagname="",this.attribname="",this.attribvalue="",this.attribs=null,this.stack=[],this.foreignContext=[],this.buffers=[],this.bufferOffset=0,this.writeIndex=0,this.ended=!1,this.cbs=e??{},this.lowerCaseTagNames=(n=r.lowerCaseTags)!==null&&n!==void 0?n:!r.xmlMode,this.lowerCaseAttributeNames=(o=r.lowerCaseAttributeNames)!==null&&o!==void 0?o:!r.xmlMode,this.tokenizer=new((a=r.Tokenizer)!==null&&a!==void 0?a:zn.default)(this.options,this),(s=(i=this.cbs).onparserinit)===null||s===void 0||s.call(i,this)}return t.prototype.ontext=function(e,r){var n,o,a=this.getSlice(e,r);this.endIndex=r-1,(o=(n=this.cbs).ontext)===null||o===void 0||o.call(n,a),this.startIndex=r},t.prototype.ontextentity=function(e){var r,n,o=this.tokenizer.getSectionStart();this.endIndex=o-1,(n=(r=this.cbs).ontext)===null||n===void 0||n.call(r,(0,jl.fromCodePoint)(e)),this.startIndex=o},t.prototype.isVoidElement=function(e){return!this.options.xmlMode&&J3.has(e)},t.prototype.onopentagname=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);this.lowerCaseTagNames&&(n=n.toLowerCase()),this.emitOpenTag(n)},t.prototype.emitOpenTag=function(e){var r,n,o,a;this.openTagStart=this.startIndex,this.tagname=e;var i=!this.options.xmlMode&&K3.get(e);if(i)for(;this.stack.length>0&&i.has(this.stack[this.stack.length-1]);){var s=this.stack.pop();(n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,s,!0)}this.isVoidElement(e)||(this.stack.push(e),kl.has(e)?this.foreignContext.push(!0):_l.has(e)&&this.foreignContext.push(!1)),(a=(o=this.cbs).onopentagname)===null||a===void 0||a.call(o,e),this.cbs.onopentag&&(this.attribs={})},t.prototype.endOpenTag=function(e){var r,n;this.startIndex=this.openTagStart,this.attribs&&((n=(r=this.cbs).onopentag)===null||n===void 0||n.call(r,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""},t.prototype.onopentagend=function(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1},t.prototype.onclosetag=function(e,r){var n,o,a,i,s,u;this.endIndex=r;var l=this.getSlice(e,r);if(this.lowerCaseTagNames&&(l=l.toLowerCase()),(kl.has(l)||_l.has(l))&&this.foreignContext.pop(),this.isVoidElement(l))!this.options.xmlMode&&l==="br"&&((o=(n=this.cbs).onopentagname)===null||o===void 0||o.call(n,"br"),(i=(a=this.cbs).onopentag)===null||i===void 0||i.call(a,"br",{},!0),(u=(s=this.cbs).onclosetag)===null||u===void 0||u.call(s,"br",!1));else{var c=this.stack.lastIndexOf(l);if(c!==-1)if(this.cbs.onclosetag)for(var h=this.stack.length-c;h--;)this.cbs.onclosetag(this.stack.pop(),h!==0);else this.stack.length=c;else!this.options.xmlMode&&l==="p"&&(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=r+1},t.prototype.onselfclosingtag=function(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)},t.prototype.closeCurrentTag=function(e){var r,n,o=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===o&&((n=(r=this.cbs).onclosetag)===null||n===void 0||n.call(r,o,!e),this.stack.pop())},t.prototype.onattribname=function(e,r){this.startIndex=e;var n=this.getSlice(e,r);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n},t.prototype.onattribdata=function(e,r){this.attribvalue+=this.getSlice(e,r)},t.prototype.onattribentity=function(e){this.attribvalue+=(0,jl.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===zn.QuoteType.Double?'"':e===zn.QuoteType.Single?"'":e===zn.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(Z3),n=r<0?e:e.substr(0,r);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n},t.prototype.ondeclaration=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("!".concat(o),"!".concat(n))}this.startIndex=r+1},t.prototype.onprocessinginstruction=function(e,r){this.endIndex=r;var n=this.getSlice(e,r);if(this.cbs.onprocessinginstruction){var o=this.getInstructionName(n);this.cbs.onprocessinginstruction("?".concat(o),"?".concat(n))}this.startIndex=r+1},t.prototype.oncomment=function(e,r,n){var o,a,i,s;this.endIndex=r,(a=(o=this.cbs).oncomment)===null||a===void 0||a.call(o,this.getSlice(e,r-n)),(s=(i=this.cbs).oncommentend)===null||s===void 0||s.call(i),this.startIndex=r+1},t.prototype.oncdata=function(e,r,n){var o,a,i,s,u,l,c,h,f,d;this.endIndex=r;var b=this.getSlice(e,r-n);this.options.xmlMode||this.options.recognizeCDATA?((a=(o=this.cbs).oncdatastart)===null||a===void 0||a.call(o),(s=(i=this.cbs).ontext)===null||s===void 0||s.call(i,b),(l=(u=this.cbs).oncdataend)===null||l===void 0||l.call(u)):((h=(c=this.cbs).oncomment)===null||h===void 0||h.call(c,"[CDATA[".concat(b,"]]")),(d=(f=this.cbs).oncommentend)===null||d===void 0||d.call(f)),this.startIndex=r+1},t.prototype.onend=function(){var e,r;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(var n=this.stack.length;n>0;this.cbs.onclosetag(this.stack[--n],!0));}(r=(e=this.cbs).onend)===null||r===void 0||r.call(e)},t.prototype.reset=function(){var e,r,n,o;(r=(e=this.cbs).onreset)===null||r===void 0||r.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,(o=(n=this.cbs).onparserinit)===null||o===void 0||o.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1},t.prototype.parseComplete=function(e){this.reset(),this.end(e)},t.prototype.getSlice=function(e,r){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();for(var n=this.buffers[0].slice(e-this.bufferOffset,r-this.bufferOffset);r-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,r-this.bufferOffset);return n},t.prototype.shiftBuffer=function(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()},t.prototype.write=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".write() after done!"));return}this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++)},t.prototype.end=function(e){var r,n;if(this.ended){(n=(r=this.cbs).onerror)===null||n===void 0||n.call(r,new Error(".end() after done!"));return}e&&this.write(e),this.ended=!0,this.tokenizer.end()},t.prototype.pause=function(){this.tokenizer.pause()},t.prototype.resume=function(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex<this.buffers.length;)this.tokenizer.write(this.buffers[this.writeIndex++]);this.ended&&this.tokenizer.end()},t.prototype.parseChunk=function(e){this.write(e)},t.prototype.done=function(e){this.end(e)},t}();hn.Parser=Q3;var xt={},Fr={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0;var e;(function(n){n.Root="root",n.Text="text",n.Directive="directive",n.Comment="comment",n.Script="script",n.Style="style",n.Tag="tag",n.CDATA="cdata",n.Doctype="doctype"})(e=t.ElementType||(t.ElementType={}));function r(n){return n.type===e.Tag||n.type===e.Script||n.type===e.Style}t.isTag=r,t.Root=e.Root,t.Text=e.Text,t.Directive=e.Directive,t.Comment=e.Comment,t.Script=e.Script,t.Style=e.Style,t.Tag=e.Tag,t.CDATA=e.CDATA,t.Doctype=e.Doctype})(Fr);var K={},$t=F&&F.__extends||function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var a in o)Object.prototype.hasOwnProperty.call(o,a)&&(n[a]=o[a])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),nn=F&&F.__assign||function(){return nn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},nn.apply(this,arguments)};Object.defineProperty(K,"__esModule",{value:!0});K.cloneNode=K.hasChildren=K.isDocument=K.isDirective=K.isComment=K.isText=K.isCDATA=K.isTag=K.Element=K.Document=K.CDATA=K.NodeWithChildren=K.ProcessingInstruction=K.Comment=K.Text=K.DataNode=K.Node=void 0;var je=Fr,Ns=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),js(this,e)},t}();K.Node=Ns;var aa=function(t){$t(e,t);function e(r){var n=t.call(this)||this;return n.data=r,n}return Object.defineProperty(e.prototype,"nodeValue",{get:function(){return this.data},set:function(r){this.data=r},enumerable:!1,configurable:!0}),e}(Ns);K.DataNode=aa;var tf=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.Text,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),e}(aa);K.Text=tf;var rf=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.Comment,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),e}(aa);K.Comment=rf;var nf=function(t){$t(e,t);function e(r,n){var o=t.call(this,n)||this;return o.name=r,o.type=je.ElementType.Directive,o}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),e}(aa);K.ProcessingInstruction=nf;var ia=function(t){$t(e,t);function e(r){var n=t.call(this)||this;return n.children=r,n}return Object.defineProperty(e.prototype,"firstChild",{get:function(){var r;return(r=this.children[0])!==null&&r!==void 0?r:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"childNodes",{get:function(){return this.children},set:function(r){this.children=r},enumerable:!1,configurable:!0}),e}(Ns);K.NodeWithChildren=ia;var of=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.CDATA,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),e}(ia);K.CDATA=of;var af=function(t){$t(e,t);function e(){var r=t!==null&&t.apply(this,arguments)||this;return r.type=je.ElementType.Root,r}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),e}(ia);K.Document=af;var sf=function(t){$t(e,t);function e(r,n,o,a){o===void 0&&(o=[]),a===void 0&&(a=r==="script"?je.ElementType.Script:r==="style"?je.ElementType.Style:je.ElementType.Tag);var i=t.call(this,o)||this;return i.name=r,i.attribs=n,i.type=a,i}return Object.defineProperty(e.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"tagName",{get:function(){return this.name},set:function(r){this.name=r},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"attributes",{get:function(){var r=this;return Object.keys(this.attribs).map(function(n){var o,a;return{name:n,value:r.attribs[n],namespace:(o=r["x-attribsNamespace"])===null||o===void 0?void 0:o[n],prefix:(a=r["x-attribsPrefix"])===null||a===void 0?void 0:a[n]}})},enumerable:!1,configurable:!0}),e}(ia);K.Element=sf;function uf(t){return(0,je.isTag)(t)}K.isTag=uf;function lf(t){return t.type===je.ElementType.CDATA}K.isCDATA=lf;function cf(t){return t.type===je.ElementType.Text}K.isText=cf;function df(t){return t.type===je.ElementType.Comment}K.isComment=df;function ff(t){return t.type===je.ElementType.Directive}K.isDirective=ff;function pf(t){return t.type===je.ElementType.Root}K.isDocument=pf;function e6(t){return Object.prototype.hasOwnProperty.call(t,"children")}K.hasChildren=e6;function js(t,e){e===void 0&&(e=!1);var r;if(cf(t))r=new tf(t.data);else if(df(t))r=new rf(t.data);else if(uf(t)){var n=e?Ia(t.children):[],o=new sf(t.name,nn({},t.attribs),n);n.forEach(function(u){return u.parent=o}),t.namespace!=null&&(o.namespace=t.namespace),t["x-attribsNamespace"]&&(o["x-attribsNamespace"]=nn({},t["x-attribsNamespace"])),t["x-attribsPrefix"]&&(o["x-attribsPrefix"]=nn({},t["x-attribsPrefix"])),r=o}else if(lf(t)){var n=e?Ia(t.children):[],a=new of(n);n.forEach(function(l){return l.parent=a}),r=a}else if(pf(t)){var n=e?Ia(t.children):[],i=new af(n);n.forEach(function(l){return l.parent=i}),t["x-mode"]&&(i["x-mode"]=t["x-mode"]),r=i}else if(ff(t)){var s=new nf(t.name,t.data);t["x-name"]!=null&&(s["x-name"]=t["x-name"],s["x-publicId"]=t["x-publicId"],s["x-systemId"]=t["x-systemId"]),r=s}else throw new Error("Not implemented yet: ".concat(t.type));return r.startIndex=t.startIndex,r.endIndex=t.endIndex,t.sourceCodeLocation!=null&&(r.sourceCodeLocation=t.sourceCodeLocation),r}K.cloneNode=js;function Ia(t){for(var e=t.map(function(n){return js(n,!0)}),r=1;r<e.length;r++)e[r].prev=e[r-1],e[r-1].next=e[r];return e}(function(t){var e=F&&F.__createBinding||(Object.create?function(s,u,l,c){c===void 0&&(c=l);var h=Object.getOwnPropertyDescriptor(u,l);(!h||("get"in h?!u.__esModule:h.writable||h.configurable))&&(h={enumerable:!0,get:function(){return u[l]}}),Object.defineProperty(s,c,h)}:function(s,u,l,c){c===void 0&&(c=l),s[c]=u[l]}),r=F&&F.__exportStar||function(s,u){for(var l in s)l!=="default"&&!Object.prototype.hasOwnProperty.call(u,l)&&e(u,s,l)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var n=Fr,o=K;r(K,t);var a={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},i=function(){function s(u,l,c){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,typeof l=="function"&&(c=l,l=a),typeof u=="object"&&(l=u,u=void 0),this.callback=u??null,this.options=l??a,this.elementCB=c??null}return s.prototype.onparserinit=function(u){this.parser=u},s.prototype.onreset=function(){this.dom=[],this.root=new o.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},s.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},s.prototype.onerror=function(u){this.handleCallback(u)},s.prototype.onclosetag=function(){this.lastNode=null;var u=this.tagStack.pop();this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(u)},s.prototype.onopentag=function(u,l){var c=this.options.xmlMode?n.ElementType.Tag:void 0,h=new o.Element(u,l,void 0,c);this.addNode(h),this.tagStack.push(h)},s.prototype.ontext=function(u){var l=this.lastNode;if(l&&l.type===n.ElementType.Text)l.data+=u,this.options.withEndIndices&&(l.endIndex=this.parser.endIndex);else{var c=new o.Text(u);this.addNode(c),this.lastNode=c}},s.prototype.oncomment=function(u){if(this.lastNode&&this.lastNode.type===n.ElementType.Comment){this.lastNode.data+=u;return}var l=new o.Comment(u);this.addNode(l),this.lastNode=l},s.prototype.oncommentend=function(){this.lastNode=null},s.prototype.oncdatastart=function(){var u=new o.Text(""),l=new o.CDATA([u]);this.addNode(l),u.parent=l,this.lastNode=u},s.prototype.oncdataend=function(){this.lastNode=null},s.prototype.onprocessinginstruction=function(u,l){var c=new o.ProcessingInstruction(u,l);this.addNode(c)},s.prototype.handleCallback=function(u){if(typeof this.callback=="function")this.callback(u,this.dom);else if(u)throw u},s.prototype.addNode=function(u){var l=this.tagStack[this.tagStack.length-1],c=l.children[l.children.length-1];this.options.withStartIndices&&(u.startIndex=this.parser.startIndex),this.options.withEndIndices&&(u.endIndex=this.parser.endIndex),l.children.push(u),c&&(u.prev=c,c.next=u),u.parent=l,this.lastNode=null},s}();t.DomHandler=i,t.default=i})(xt);var eo={},Bt={},Tn={},hf={},Kt={},As={};Object.defineProperty(As,"__esModule",{value:!0});function Fn(t){for(var e=1;e<t.length;e++)t[e][0]+=t[e-1][0]+1;return t}As.default=new Map(Fn([[9,"	"],[0,"
"],[22,"!"],[0,"""],[0,"#"],[0,"$"],[0,"%"],[0,"&"],[0,"'"],[0,"("],[0,")"],[0,"*"],[0,"+"],[0,","],[1,"."],[0,"/"],[10,":"],[0,";"],[0,{v:"<",n:8402,o:"<⃒"}],[0,{v:"=",n:8421,o:"=⃥"}],[0,{v:">",n:8402,o:">⃒"}],[0,"?"],[0,"@"],[26,"["],[0,"\"],[0,"]"],[0,"^"],[0,"_"],[0,"`"],[5,{n:106,o:"fj"}],[20,"{"],[0,"|"],[0,"}"],[34," "],[0,"¡"],[0,"¢"],[0,"£"],[0,"¤"],[0,"¥"],[0,"¦"],[0,"§"],[0,"¨"],[0,"©"],[0,"ª"],[0,"«"],[0,"¬"],[0,"­"],[0,"®"],[0,"¯"],[0,"°"],[0,"±"],[0,"²"],[0,"³"],[0,"´"],[0,"µ"],[0,"¶"],[0,"·"],[0,"¸"],[0,"¹"],[0,"º"],[0,"»"],[0,"¼"],[0,"½"],[0,"¾"],[0,"¿"],[0,"À"],[0,"Á"],[0,"Â"],[0,"Ã"],[0,"Ä"],[0,"Å"],[0,"Æ"],[0,"Ç"],[0,"È"],[0,"É"],[0,"Ê"],[0,"Ë"],[0,"Ì"],[0,"Í"],[0,"Î"],[0,"Ï"],[0,"Ð"],[0,"Ñ"],[0,"Ò"],[0,"Ó"],[0,"Ô"],[0,"Õ"],[0,"Ö"],[0,"×"],[0,"Ø"],[0,"Ù"],[0,"Ú"],[0,"Û"],[0,"Ü"],[0,"Ý"],[0,"Þ"],[0,"ß"],[0,"à"],[0,"á"],[0,"â"],[0,"ã"],[0,"ä"],[0,"å"],[0,"æ"],[0,"ç"],[0,"è"],[0,"é"],[0,"ê"],[0,"ë"],[0,"ì"],[0,"í"],[0,"î"],[0,"ï"],[0,"ð"],[0,"ñ"],[0,"ò"],[0,"ó"],[0,"ô"],[0,"õ"],[0,"ö"],[0,"÷"],[0,"ø"],[0,"ù"],[0,"ú"],[0,"û"],[0,"ü"],[0,"ý"],[0,"þ"],[0,"ÿ"],[0,"Ā"],[0,"ā"],[0,"Ă"],[0,"ă"],[0,"Ą"],[0,"ą"],[0,"Ć"],[0,"ć"],[0,"Ĉ"],[0,"ĉ"],[0,"Ċ"],[0,"ċ"],[0,"Č"],[0,"č"],[0,"Ď"],[0,"ď"],[0,"Đ"],[0,"đ"],[0,"Ē"],[0,"ē"],[2,"Ė"],[0,"ė"],[0,"Ę"],[0,"ę"],[0,"Ě"],[0,"ě"],[0,"Ĝ"],[0,"ĝ"],[0,"Ğ"],[0,"ğ"],[0,"Ġ"],[0,"ġ"],[0,"Ģ"],[1,"Ĥ"],[0,"ĥ"],[0,"Ħ"],[0,"ħ"],[0,"Ĩ"],[0,"ĩ"],[0,"Ī"],[0,"ī"],[2,"Į"],[0,"į"],[0,"İ"],[0,"ı"],[0,"IJ"],[0,"ij"],[0,"Ĵ"],[0,"ĵ"],[0,"Ķ"],[0,"ķ"],[0,"ĸ"],[0,"Ĺ"],[0,"ĺ"],[0,"Ļ"],[0,"ļ"],[0,"Ľ"],[0,"ľ"],[0,"Ŀ"],[0,"ŀ"],[0,"Ł"],[0,"ł"],[0,"Ń"],[0,"ń"],[0,"Ņ"],[0,"ņ"],[0,"Ň"],[0,"ň"],[0,"ʼn"],[0,"Ŋ"],[0,"ŋ"],[0,"Ō"],[0,"ō"],[2,"Ő"],[0,"ő"],[0,"Œ"],[0,"œ"],[0,"Ŕ"],[0,"ŕ"],[0,"Ŗ"],[0,"ŗ"],[0,"Ř"],[0,"ř"],[0,"Ś"],[0,"ś"],[0,"Ŝ"],[0,"ŝ"],[0,"Ş"],[0,"ş"],[0,"Š"],[0,"š"],[0,"Ţ"],[0,"ţ"],[0,"Ť"],[0,"ť"],[0,"Ŧ"],[0,"ŧ"],[0,"Ũ"],[0,"ũ"],[0,"Ū"],[0,"ū"],[0,"Ŭ"],[0,"ŭ"],[0,"Ů"],[0,"ů"],[0,"Ű"],[0,"ű"],[0,"Ų"],[0,"ų"],[0,"Ŵ"],[0,"ŵ"],[0,"Ŷ"],[0,"ŷ"],[0,"Ÿ"],[0,"Ź"],[0,"ź"],[0,"Ż"],[0,"ż"],[0,"Ž"],[0,"ž"],[19,"ƒ"],[34,"Ƶ"],[63,"ǵ"],[65,"ȷ"],[142,"ˆ"],[0,"ˇ"],[16,"˘"],[0,"˙"],[0,"˚"],[0,"˛"],[0,"˜"],[0,"˝"],[51,"̑"],[127,"Α"],[0,"Β"],[0,"Γ"],[0,"Δ"],[0,"Ε"],[0,"Ζ"],[0,"Η"],[0,"Θ"],[0,"Ι"],[0,"Κ"],[0,"Λ"],[0,"Μ"],[0,"Ν"],[0,"Ξ"],[0,"Ο"],[0,"Π"],[0,"Ρ"],[1,"Σ"],[0,"Τ"],[0,"Υ"],[0,"Φ"],[0,"Χ"],[0,"Ψ"],[0,"Ω"],[7,"α"],[0,"β"],[0,"γ"],[0,"δ"],[0,"ε"],[0,"ζ"],[0,"η"],[0,"θ"],[0,"ι"],[0,"κ"],[0,"λ"],[0,"μ"],[0,"ν"],[0,"ξ"],[0,"ο"],[0,"π"],[0,"ρ"],[0,"ς"],[0,"σ"],[0,"τ"],[0,"υ"],[0,"φ"],[0,"χ"],[0,"ψ"],[0,"ω"],[7,"ϑ"],[0,"ϒ"],[2,"ϕ"],[0,"ϖ"],[5,"Ϝ"],[0,"ϝ"],[18,"ϰ"],[0,"ϱ"],[3,"ϵ"],[0,"϶"],[10,"Ё"],[0,"Ђ"],[0,"Ѓ"],[0,"Є"],[0,"Ѕ"],[0,"І"],[0,"Ї"],[0,"Ј"],[0,"Љ"],[0,"Њ"],[0,"Ћ"],[0,"Ќ"],[1,"Ў"],[0,"Џ"],[0,"А"],[0,"Б"],[0,"В"],[0,"Г"],[0,"Д"],[0,"Е"],[0,"Ж"],[0,"З"],[0,"И"],[0,"Й"],[0,"К"],[0,"Л"],[0,"М"],[0,"Н"],[0,"О"],[0,"П"],[0,"Р"],[0,"С"],[0,"Т"],[0,"У"],[0,"Ф"],[0,"Х"],[0,"Ц"],[0,"Ч"],[0,"Ш"],[0,"Щ"],[0,"Ъ"],[0,"Ы"],[0,"Ь"],[0,"Э"],[0,"Ю"],[0,"Я"],[0,"а"],[0,"б"],[0,"в"],[0,"г"],[0,"д"],[0,"е"],[0,"ж"],[0,"з"],[0,"и"],[0,"й"],[0,"к"],[0,"л"],[0,"м"],[0,"н"],[0,"о"],[0,"п"],[0,"р"],[0,"с"],[0,"т"],[0,"у"],[0,"ф"],[0,"х"],[0,"ц"],[0,"ч"],[0,"ш"],[0,"щ"],[0,"ъ"],[0,"ы"],[0,"ь"],[0,"э"],[0,"ю"],[0,"я"],[1,"ё"],[0,"ђ"],[0,"ѓ"],[0,"є"],[0,"ѕ"],[0,"і"],[0,"ї"],[0,"ј"],[0,"љ"],[0,"њ"],[0,"ћ"],[0,"ќ"],[1,"ў"],[0,"џ"],[7074," "],[0," "],[0," "],[0," "],[1," "],[0," "],[0," "],[0," "],[0,"​"],[0,"‌"],[0,"‍"],[0,"‎"],[0,"‏"],[0,"‐"],[2,"–"],[0,"—"],[0,"―"],[0,"‖"],[1,"‘"],[0,"’"],[0,"‚"],[1,"“"],[0,"”"],[0,"„"],[1,"†"],[0,"‡"],[0,"•"],[2,"‥"],[0,"…"],[9,"‰"],[0,"‱"],[0,"′"],[0,"″"],[0,"‴"],[0,"‵"],[3,"‹"],[0,"›"],[3,"‾"],[2,"⁁"],[1,"⁃"],[0,"⁄"],[10,"⁏"],[7,"⁗"],[7,{v:" ",n:8202,o:"  "}],[0,"⁠"],[0,"⁡"],[0,"⁢"],[0,"⁣"],[72,"€"],[46,"⃛"],[0,"⃜"],[37,"ℂ"],[2,"℅"],[4,"ℊ"],[0,"ℋ"],[0,"ℌ"],[0,"ℍ"],[0,"ℎ"],[0,"ℏ"],[0,"ℐ"],[0,"ℑ"],[0,"ℒ"],[0,"ℓ"],[1,"ℕ"],[0,"№"],[0,"℗"],[0,"℘"],[0,"ℙ"],[0,"ℚ"],[0,"ℛ"],[0,"ℜ"],[0,"ℝ"],[0,"℞"],[3,"™"],[1,"ℤ"],[2,"℧"],[0,"ℨ"],[0,"℩"],[2,"ℬ"],[0,"ℭ"],[1,"ℯ"],[0,"ℰ"],[0,"ℱ"],[1,"ℳ"],[0,"ℴ"],[0,"ℵ"],[0,"ℶ"],[0,"ℷ"],[0,"ℸ"],[12,"ⅅ"],[0,"ⅆ"],[0,"ⅇ"],[0,"ⅈ"],[10,"⅓"],[0,"⅔"],[0,"⅕"],[0,"⅖"],[0,"⅗"],[0,"⅘"],[0,"⅙"],[0,"⅚"],[0,"⅛"],[0,"⅜"],[0,"⅝"],[0,"⅞"],[49,"←"],[0,"↑"],[0,"→"],[0,"↓"],[0,"↔"],[0,"↕"],[0,"↖"],[0,"↗"],[0,"↘"],[0,"↙"],[0,"↚"],[0,"↛"],[1,{v:"↝",n:824,o:"↝̸"}],[0,"↞"],[0,"↟"],[0,"↠"],[0,"↡"],[0,"↢"],[0,"↣"],[0,"↤"],[0,"↥"],[0,"↦"],[0,"↧"],[1,"↩"],[0,"↪"],[0,"↫"],[0,"↬"],[0,"↭"],[0,"↮"],[1,"↰"],[0,"↱"],[0,"↲"],[0,"↳"],[1,"↵"],[0,"↶"],[0,"↷"],[2,"↺"],[0,"↻"],[0,"↼"],[0,"↽"],[0,"↾"],[0,"↿"],[0,"⇀"],[0,"⇁"],[0,"⇂"],[0,"⇃"],[0,"⇄"],[0,"⇅"],[0,"⇆"],[0,"⇇"],[0,"⇈"],[0,"⇉"],[0,"⇊"],[0,"⇋"],[0,"⇌"],[0,"⇍"],[0,"⇎"],[0,"⇏"],[0,"⇐"],[0,"⇑"],[0,"⇒"],[0,"⇓"],[0,"⇔"],[0,"⇕"],[0,"⇖"],[0,"⇗"],[0,"⇘"],[0,"⇙"],[0,"⇚"],[0,"⇛"],[1,"⇝"],[6,"⇤"],[0,"⇥"],[15,"⇵"],[7,"⇽"],[0,"⇾"],[0,"⇿"],[0,"∀"],[0,"∁"],[0,{v:"∂",n:824,o:"∂̸"}],[0,"∃"],[0,"∄"],[0,"∅"],[1,"∇"],[0,"∈"],[0,"∉"],[1,"∋"],[0,"∌"],[2,"∏"],[0,"∐"],[0,"∑"],[0,"−"],[0,"∓"],[0,"∔"],[1,"∖"],[0,"∗"],[0,"∘"],[1,"√"],[2,"∝"],[0,"∞"],[0,"∟"],[0,{v:"∠",n:8402,o:"∠⃒"}],[0,"∡"],[0,"∢"],[0,"∣"],[0,"∤"],[0,"∥"],[0,"∦"],[0,"∧"],[0,"∨"],[0,{v:"∩",n:65024,o:"∩︀"}],[0,{v:"∪",n:65024,o:"∪︀"}],[0,"∫"],[0,"∬"],[0,"∭"],[0,"∮"],[0,"∯"],[0,"∰"],[0,"∱"],[0,"∲"],[0,"∳"],[0,"∴"],[0,"∵"],[0,"∶"],[0,"∷"],[0,"∸"],[1,"∺"],[0,"∻"],[0,{v:"∼",n:8402,o:"∼⃒"}],[0,{v:"∽",n:817,o:"∽̱"}],[0,{v:"∾",n:819,o:"∾̳"}],[0,"∿"],[0,"≀"],[0,"≁"],[0,{v:"≂",n:824,o:"≂̸"}],[0,"≃"],[0,"≄"],[0,"≅"],[0,"≆"],[0,"≇"],[0,"≈"],[0,"≉"],[0,"≊"],[0,{v:"≋",n:824,o:"≋̸"}],[0,"≌"],[0,{v:"≍",n:8402,o:"≍⃒"}],[0,{v:"≎",n:824,o:"≎̸"}],[0,{v:"≏",n:824,o:"≏̸"}],[0,{v:"≐",n:824,o:"≐̸"}],[0,"≑"],[0,"≒"],[0,"≓"],[0,"≔"],[0,"≕"],[0,"≖"],[0,"≗"],[1,"≙"],[0,"≚"],[1,"≜"],[2,"≟"],[0,"≠"],[0,{v:"≡",n:8421,o:"≡⃥"}],[0,"≢"],[1,{v:"≤",n:8402,o:"≤⃒"}],[0,{v:"≥",n:8402,o:"≥⃒"}],[0,{v:"≦",n:824,o:"≦̸"}],[0,{v:"≧",n:824,o:"≧̸"}],[0,{v:"≨",n:65024,o:"≨︀"}],[0,{v:"≩",n:65024,o:"≩︀"}],[0,{v:"≪",n:new Map(Fn([[824,"≪̸"],[7577,"≪⃒"]]))}],[0,{v:"≫",n:new Map(Fn([[824,"≫̸"],[7577,"≫⃒"]]))}],[0,"≬"],[0,"≭"],[0,"≮"],[0,"≯"],[0,"≰"],[0,"≱"],[0,"≲"],[0,"≳"],[0,"≴"],[0,"≵"],[0,"≶"],[0,"≷"],[0,"≸"],[0,"≹"],[0,"≺"],[0,"≻"],[0,"≼"],[0,"≽"],[0,"≾"],[0,{v:"≿",n:824,o:"≿̸"}],[0,"⊀"],[0,"⊁"],[0,{v:"⊂",n:8402,o:"⊂⃒"}],[0,{v:"⊃",n:8402,o:"⊃⃒"}],[0,"⊄"],[0,"⊅"],[0,"⊆"],[0,"⊇"],[0,"⊈"],[0,"⊉"],[0,{v:"⊊",n:65024,o:"⊊︀"}],[0,{v:"⊋",n:65024,o:"⊋︀"}],[1,"⊍"],[0,"⊎"],[0,{v:"⊏",n:824,o:"⊏̸"}],[0,{v:"⊐",n:824,o:"⊐̸"}],[0,"⊑"],[0,"⊒"],[0,{v:"⊓",n:65024,o:"⊓︀"}],[0,{v:"⊔",n:65024,o:"⊔︀"}],[0,"⊕"],[0,"⊖"],[0,"⊗"],[0,"⊘"],[0,"⊙"],[0,"⊚"],[0,"⊛"],[1,"⊝"],[0,"⊞"],[0,"⊟"],[0,"⊠"],[0,"⊡"],[0,"⊢"],[0,"⊣"],[0,"⊤"],[0,"⊥"],[1,"⊧"],[0,"⊨"],[0,"⊩"],[0,"⊪"],[0,"⊫"],[0,"⊬"],[0,"⊭"],[0,"⊮"],[0,"⊯"],[0,"⊰"],[1,"⊲"],[0,"⊳"],[0,{v:"⊴",n:8402,o:"⊴⃒"}],[0,{v:"⊵",n:8402,o:"⊵⃒"}],[0,"⊶"],[0,"⊷"],[0,"⊸"],[0,"⊹"],[0,"⊺"],[0,"⊻"],[1,"⊽"],[0,"⊾"],[0,"⊿"],[0,"⋀"],[0,"⋁"],[0,"⋂"],[0,"⋃"],[0,"⋄"],[0,"⋅"],[0,"⋆"],[0,"⋇"],[0,"⋈"],[0,"⋉"],[0,"⋊"],[0,"⋋"],[0,"⋌"],[0,"⋍"],[0,"⋎"],[0,"⋏"],[0,"⋐"],[0,"⋑"],[0,"⋒"],[0,"⋓"],[0,"⋔"],[0,"⋕"],[0,"⋖"],[0,"⋗"],[0,{v:"⋘",n:824,o:"⋘̸"}],[0,{v:"⋙",n:824,o:"⋙̸"}],[0,{v:"⋚",n:65024,o:"⋚︀"}],[0,{v:"⋛",n:65024,o:"⋛︀"}],[2,"⋞"],[0,"⋟"],[0,"⋠"],[0,"⋡"],[0,"⋢"],[0,"⋣"],[2,"⋦"],[0,"⋧"],[0,"⋨"],[0,"⋩"],[0,"⋪"],[0,"⋫"],[0,"⋬"],[0,"⋭"],[0,"⋮"],[0,"⋯"],[0,"⋰"],[0,"⋱"],[0,"⋲"],[0,"⋳"],[0,"⋴"],[0,{v:"⋵",n:824,o:"⋵̸"}],[0,"⋶"],[0,"⋷"],[1,{v:"⋹",n:824,o:"⋹̸"}],[0,"⋺"],[0,"⋻"],[0,"⋼"],[0,"⋽"],[0,"⋾"],[6,"⌅"],[0,"⌆"],[1,"⌈"],[0,"⌉"],[0,"⌊"],[0,"⌋"],[0,"⌌"],[0,"⌍"],[0,"⌎"],[0,"⌏"],[0,"⌐"],[1,"⌒"],[0,"⌓"],[1,"⌕"],[0,"⌖"],[5,"⌜"],[0,"⌝"],[0,"⌞"],[0,"⌟"],[2,"⌢"],[0,"⌣"],[9,"⌭"],[0,"⌮"],[7,"⌶"],[6,"⌽"],[1,"⌿"],[60,"⍼"],[51,"⎰"],[0,"⎱"],[2,"⎴"],[0,"⎵"],[0,"⎶"],[37,"⏜"],[0,"⏝"],[0,"⏞"],[0,"⏟"],[2,"⏢"],[4,"⏧"],[59,"␣"],[164,"Ⓢ"],[55,"─"],[1,"│"],[9,"┌"],[3,"┐"],[3,"└"],[3,"┘"],[3,"├"],[7,"┤"],[7,"┬"],[7,"┴"],[7,"┼"],[19,"═"],[0,"║"],[0,"╒"],[0,"╓"],[0,"╔"],[0,"╕"],[0,"╖"],[0,"╗"],[0,"╘"],[0,"╙"],[0,"╚"],[0,"╛"],[0,"╜"],[0,"╝"],[0,"╞"],[0,"╟"],[0,"╠"],[0,"╡"],[0,"╢"],[0,"╣"],[0,"╤"],[0,"╥"],[0,"╦"],[0,"╧"],[0,"╨"],[0,"╩"],[0,"╪"],[0,"╫"],[0,"╬"],[19,"▀"],[3,"▄"],[3,"█"],[8,"░"],[0,"▒"],[0,"▓"],[13,"□"],[8,"▪"],[0,"▫"],[1,"▭"],[0,"▮"],[2,"▱"],[1,"△"],[0,"▴"],[0,"▵"],[2,"▸"],[0,"▹"],[3,"▽"],[0,"▾"],[0,"▿"],[2,"◂"],[0,"◃"],[6,"◊"],[0,"○"],[32,"◬"],[2,"◯"],[8,"◸"],[0,"◹"],[0,"◺"],[0,"◻"],[0,"◼"],[8,"★"],[0,"☆"],[7,"☎"],[49,"♀"],[1,"♂"],[29,"♠"],[2,"♣"],[1,"♥"],[0,"♦"],[3,"♪"],[2,"♭"],[0,"♮"],[0,"♯"],[163,"✓"],[3,"✗"],[8,"✠"],[21,"✶"],[33,"❘"],[25,"❲"],[0,"❳"],[84,"⟈"],[0,"⟉"],[28,"⟦"],[0,"⟧"],[0,"⟨"],[0,"⟩"],[0,"⟪"],[0,"⟫"],[0,"⟬"],[0,"⟭"],[7,"⟵"],[0,"⟶"],[0,"⟷"],[0,"⟸"],[0,"⟹"],[0,"⟺"],[1,"⟼"],[2,"⟿"],[258,"⤂"],[0,"⤃"],[0,"⤄"],[0,"⤅"],[6,"⤌"],[0,"⤍"],[0,"⤎"],[0,"⤏"],[0,"⤐"],[0,"⤑"],[0,"⤒"],[0,"⤓"],[2,"⤖"],[2,"⤙"],[0,"⤚"],[0,"⤛"],[0,"⤜"],[0,"⤝"],[0,"⤞"],[0,"⤟"],[0,"⤠"],[2,"⤣"],[0,"⤤"],[0,"⤥"],[0,"⤦"],[0,"⤧"],[0,"⤨"],[0,"⤩"],[0,"⤪"],[8,{v:"⤳",n:824,o:"⤳̸"}],[1,"⤵"],[0,"⤶"],[0,"⤷"],[0,"⤸"],[0,"⤹"],[2,"⤼"],[0,"⤽"],[7,"⥅"],[2,"⥈"],[0,"⥉"],[0,"⥊"],[0,"⥋"],[2,"⥎"],[0,"⥏"],[0,"⥐"],[0,"⥑"],[0,"⥒"],[0,"⥓"],[0,"⥔"],[0,"⥕"],[0,"⥖"],[0,"⥗"],[0,"⥘"],[0,"⥙"],[0,"⥚"],[0,"⥛"],[0,"⥜"],[0,"⥝"],[0,"⥞"],[0,"⥟"],[0,"⥠"],[0,"⥡"],[0,"⥢"],[0,"⥣"],[0,"⥤"],[0,"⥥"],[0,"⥦"],[0,"⥧"],[0,"⥨"],[0,"⥩"],[0,"⥪"],[0,"⥫"],[0,"⥬"],[0,"⥭"],[0,"⥮"],[0,"⥯"],[0,"⥰"],[0,"⥱"],[0,"⥲"],[0,"⥳"],[0,"⥴"],[0,"⥵"],[0,"⥶"],[1,"⥸"],[0,"⥹"],[1,"⥻"],[0,"⥼"],[0,"⥽"],[0,"⥾"],[0,"⥿"],[5,"⦅"],[0,"⦆"],[4,"⦋"],[0,"⦌"],[0,"⦍"],[0,"⦎"],[0,"⦏"],[0,"⦐"],[0,"⦑"],[0,"⦒"],[0,"⦓"],[0,"⦔"],[0,"⦕"],[0,"⦖"],[3,"⦚"],[1,"⦜"],[0,"⦝"],[6,"⦤"],[0,"⦥"],[0,"⦦"],[0,"⦧"],[0,"⦨"],[0,"⦩"],[0,"⦪"],[0,"⦫"],[0,"⦬"],[0,"⦭"],[0,"⦮"],[0,"⦯"],[0,"⦰"],[0,"⦱"],[0,"⦲"],[0,"⦳"],[0,"⦴"],[0,"⦵"],[0,"⦶"],[0,"⦷"],[1,"⦹"],[1,"⦻"],[0,"⦼"],[1,"⦾"],[0,"⦿"],[0,"⧀"],[0,"⧁"],[0,"⧂"],[0,"⧃"],[0,"⧄"],[0,"⧅"],[3,"⧉"],[3,"⧍"],[0,"⧎"],[0,{v:"⧏",n:824,o:"⧏̸"}],[0,{v:"⧐",n:824,o:"⧐̸"}],[11,"⧜"],[0,"⧝"],[0,"⧞"],[4,"⧣"],[0,"⧤"],[0,"⧥"],[5,"⧫"],[8,"⧴"],[1,"⧶"],[9,"⨀"],[0,"⨁"],[0,"⨂"],[1,"⨄"],[1,"⨆"],[5,"⨌"],[0,"⨍"],[2,"⨐"],[0,"⨑"],[0,"⨒"],[0,"⨓"],[0,"⨔"],[0,"⨕"],[0,"⨖"],[0,"⨗"],[10,"⨢"],[0,"⨣"],[0,"⨤"],[0,"⨥"],[0,"⨦"],[0,"⨧"],[1,"⨩"],[0,"⨪"],[2,"⨭"],[0,"⨮"],[0,"⨯"],[0,"⨰"],[0,"⨱"],[1,"⨳"],[0,"⨴"],[0,"⨵"],[0,"⨶"],[0,"⨷"],[0,"⨸"],[0,"⨹"],[0,"⨺"],[0,"⨻"],[0,"⨼"],[2,"⨿"],[0,"⩀"],[1,"⩂"],[0,"⩃"],[0,"⩄"],[0,"⩅"],[0,"⩆"],[0,"⩇"],[0,"⩈"],[0,"⩉"],[0,"⩊"],[0,"⩋"],[0,"⩌"],[0,"⩍"],[2,"⩐"],[2,"⩓"],[0,"⩔"],[0,"⩕"],[0,"⩖"],[0,"⩗"],[0,"⩘"],[1,"⩚"],[0,"⩛"],[0,"⩜"],[0,"⩝"],[1,"⩟"],[6,"⩦"],[3,"⩪"],[2,{v:"⩭",n:824,o:"⩭̸"}],[0,"⩮"],[0,"⩯"],[0,{v:"⩰",n:824,o:"⩰̸"}],[0,"⩱"],[0,"⩲"],[0,"⩳"],[0,"⩴"],[0,"⩵"],[1,"⩷"],[0,"⩸"],[0,"⩹"],[0,"⩺"],[0,"⩻"],[0,"⩼"],[0,{v:"⩽",n:824,o:"⩽̸"}],[0,{v:"⩾",n:824,o:"⩾̸"}],[0,"⩿"],[0,"⪀"],[0,"⪁"],[0,"⪂"],[0,"⪃"],[0,"⪄"],[0,"⪅"],[0,"⪆"],[0,"⪇"],[0,"⪈"],[0,"⪉"],[0,"⪊"],[0,"⪋"],[0,"⪌"],[0,"⪍"],[0,"⪎"],[0,"⪏"],[0,"⪐"],[0,"⪑"],[0,"⪒"],[0,"⪓"],[0,"⪔"],[0,"⪕"],[0,"⪖"],[0,"⪗"],[0,"⪘"],[0,"⪙"],[0,"⪚"],[2,"⪝"],[0,"⪞"],[0,"⪟"],[0,"⪠"],[0,{v:"⪡",n:824,o:"⪡̸"}],[0,{v:"⪢",n:824,o:"⪢̸"}],[1,"⪤"],[0,"⪥"],[0,"⪦"],[0,"⪧"],[0,"⪨"],[0,"⪩"],[0,"⪪"],[0,"⪫"],[0,{v:"⪬",n:65024,o:"⪬︀"}],[0,{v:"⪭",n:65024,o:"⪭︀"}],[0,"⪮"],[0,{v:"⪯",n:824,o:"⪯̸"}],[0,{v:"⪰",n:824,o:"⪰̸"}],[2,"⪳"],[0,"⪴"],[0,"⪵"],[0,"⪶"],[0,"⪷"],[0,"⪸"],[0,"⪹"],[0,"⪺"],[0,"⪻"],[0,"⪼"],[0,"⪽"],[0,"⪾"],[0,"⪿"],[0,"⫀"],[0,"⫁"],[0,"⫂"],[0,"⫃"],[0,"⫄"],[0,{v:"⫅",n:824,o:"⫅̸"}],[0,{v:"⫆",n:824,o:"⫆̸"}],[0,"⫇"],[0,"⫈"],[2,{v:"⫋",n:65024,o:"⫋︀"}],[0,{v:"⫌",n:65024,o:"⫌︀"}],[2,"⫏"],[0,"⫐"],[0,"⫑"],[0,"⫒"],[0,"⫓"],[0,"⫔"],[0,"⫕"],[0,"⫖"],[0,"⫗"],[0,"⫘"],[0,"⫙"],[0,"⫚"],[0,"⫛"],[8,"⫤"],[1,"⫦"],[0,"⫧"],[0,"⫨"],[0,"⫩"],[1,"⫫"],[0,"⫬"],[0,"⫭"],[0,"⫮"],[0,"⫯"],[0,"⫰"],[0,"⫱"],[0,"⫲"],[0,"⫳"],[9,{v:"⫽",n:8421,o:"⫽⃥"}],[44343,{n:new Map(Fn([[56476,"𝒜"],[1,"𝒞"],[0,"𝒟"],[2,"𝒢"],[2,"𝒥"],[0,"𝒦"],[2,"𝒩"],[0,"𝒪"],[0,"𝒫"],[0,"𝒬"],[1,"𝒮"],[0,"𝒯"],[0,"𝒰"],[0,"𝒱"],[0,"𝒲"],[0,"𝒳"],[0,"𝒴"],[0,"𝒵"],[0,"𝒶"],[0,"𝒷"],[0,"𝒸"],[0,"𝒹"],[1,"𝒻"],[1,"𝒽"],[0,"𝒾"],[0,"𝒿"],[0,"𝓀"],[0,"𝓁"],[0,"𝓂"],[0,"𝓃"],[1,"𝓅"],[0,"𝓆"],[0,"𝓇"],[0,"𝓈"],[0,"𝓉"],[0,"𝓊"],[0,"𝓋"],[0,"𝓌"],[0,"𝓍"],[0,"𝓎"],[0,"𝓏"],[52,"𝔄"],[0,"𝔅"],[1,"𝔇"],[0,"𝔈"],[0,"𝔉"],[0,"𝔊"],[2,"𝔍"],[0,"𝔎"],[0,"𝔏"],[0,"𝔐"],[0,"𝔑"],[0,"𝔒"],[0,"𝔓"],[0,"𝔔"],[1,"𝔖"],[0,"𝔗"],[0,"𝔘"],[0,"𝔙"],[0,"𝔚"],[0,"𝔛"],[0,"𝔜"],[1,"𝔞"],[0,"𝔟"],[0,"𝔠"],[0,"𝔡"],[0,"𝔢"],[0,"𝔣"],[0,"𝔤"],[0,"𝔥"],[0,"𝔦"],[0,"𝔧"],[0,"𝔨"],[0,"𝔩"],[0,"𝔪"],[0,"𝔫"],[0,"𝔬"],[0,"𝔭"],[0,"𝔮"],[0,"𝔯"],[0,"𝔰"],[0,"𝔱"],[0,"𝔲"],[0,"𝔳"],[0,"𝔴"],[0,"𝔵"],[0,"𝔶"],[0,"𝔷"],[0,"𝔸"],[0,"𝔹"],[1,"𝔻"],[0,"𝔼"],[0,"𝔽"],[0,"𝔾"],[1,"𝕀"],[0,"𝕁"],[0,"𝕂"],[0,"𝕃"],[0,"𝕄"],[1,"𝕆"],[3,"𝕊"],[0,"𝕋"],[0,"𝕌"],[0,"𝕍"],[0,"𝕎"],[0,"𝕏"],[0,"𝕐"],[1,"𝕒"],[0,"𝕓"],[0,"𝕔"],[0,"𝕕"],[0,"𝕖"],[0,"𝕗"],[0,"𝕘"],[0,"𝕙"],[0,"𝕚"],[0,"𝕛"],[0,"𝕜"],[0,"𝕝"],[0,"𝕞"],[0,"𝕟"],[0,"𝕠"],[0,"𝕡"],[0,"𝕢"],[0,"𝕣"],[0,"𝕤"],[0,"𝕥"],[0,"𝕦"],[0,"𝕧"],[0,"𝕨"],[0,"𝕩"],[0,"𝕪"],[0,"𝕫"]]))}],[8906,"ff"],[0,"fi"],[0,"fl"],[0,"ffi"],[0,"ffl"]]));var Eo={};(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.getCodePoint=t.xmlReplacer=void 0,t.xmlReplacer=/["&'<>$\x80-\uFFFF]/g;var e=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]);t.getCodePoint=String.prototype.codePointAt!=null?function(o,a){return o.codePointAt(a)}:function(o,a){return(o.charCodeAt(a)&64512)===55296?(o.charCodeAt(a)-55296)*1024+o.charCodeAt(a+1)-56320+65536:o.charCodeAt(a)};function r(o){for(var a="",i=0,s;(s=t.xmlReplacer.exec(o))!==null;){var u=s.index,l=o.charCodeAt(u),c=e.get(l);c!==void 0?(a+=o.substring(i,u)+c,i=u+1):(a+="".concat(o.substring(i,u),"&#x").concat((0,t.getCodePoint)(o,u).toString(16),";"),i=t.xmlReplacer.lastIndex+=+((l&64512)===55296))}return a+o.substr(i)}t.encodeXML=r,t.escape=r;function n(o,a){return function(s){for(var u,l=0,c="";u=o.exec(s);)l!==u.index&&(c+=s.substring(l,u.index)),c+=a.get(u[0].charCodeAt(0)),l=u.index+1;return c+s.substring(l)}}t.escapeUTF8=n(/[&<>'"]/g,e),t.escapeAttribute=n(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),t.escapeText=n(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]]))})(Eo);var t6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Kt,"__esModule",{value:!0});Kt.encodeNonAsciiHTML=Kt.encodeHTML=void 0;var r6=t6(As),mf=Eo,n6=/[\t\n!-,./:-@[-`\f{-}$\x80-\uFFFF]/g;function o6(t){return bf(n6,t)}Kt.encodeHTML=o6;function a6(t){return bf(mf.xmlReplacer,t)}Kt.encodeNonAsciiHTML=a6;function bf(t,e){for(var r="",n=0,o;(o=t.exec(e))!==null;){var a=o.index;r+=e.substring(n,a);var i=e.charCodeAt(a),s=r6.default.get(i);if(typeof s=="object"){if(a+1<e.length){var u=e.charCodeAt(a+1),l=typeof s.n=="number"?s.n===u?s.o:void 0:s.n.get(u);if(l!==void 0){r+=l,n=t.lastIndex+=1;continue}}s=s.v}if(s!==void 0)r+=s,n=a+1;else{var c=(0,mf.getCodePoint)(e,a);r+="&#x".concat(c.toString(16),";"),n=t.lastIndex+=+(c!==i)}}return r+e.substr(n)}(function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.decodeXMLStrict=t.decodeHTML5Strict=t.decodeHTML4Strict=t.decodeHTML5=t.decodeHTML4=t.decodeHTMLAttribute=t.decodeHTMLStrict=t.decodeHTML=t.decodeXML=t.DecodingMode=t.EntityDecoder=t.encodeHTML5=t.encodeHTML4=t.encodeNonAsciiHTML=t.encodeHTML=t.escapeText=t.escapeAttribute=t.escapeUTF8=t.escape=t.encodeXML=t.encode=t.decodeStrict=t.decode=t.EncodingMode=t.EntityLevel=void 0;var e=mn,r=Kt,n=Eo,o;(function(f){f[f.XML=0]="XML",f[f.HTML=1]="HTML"})(o=t.EntityLevel||(t.EntityLevel={}));var a;(function(f){f[f.UTF8=0]="UTF8",f[f.ASCII=1]="ASCII",f[f.Extensive=2]="Extensive",f[f.Attribute=3]="Attribute",f[f.Text=4]="Text"})(a=t.EncodingMode||(t.EncodingMode={}));function i(f,d){d===void 0&&(d=o.XML);var b=typeof d=="number"?d:d.level;if(b===o.HTML){var g=typeof d=="object"?d.mode:void 0;return(0,e.decodeHTML)(f,g)}return(0,e.decodeXML)(f)}t.decode=i;function s(f,d){var b;d===void 0&&(d=o.XML);var g=typeof d=="number"?{level:d}:d;return(b=g.mode)!==null&&b!==void 0||(g.mode=e.DecodingMode.Strict),i(f,g)}t.decodeStrict=s;function u(f,d){d===void 0&&(d=o.XML);var b=typeof d=="number"?{level:d}:d;return b.mode===a.UTF8?(0,n.escapeUTF8)(f):b.mode===a.Attribute?(0,n.escapeAttribute)(f):b.mode===a.Text?(0,n.escapeText)(f):b.level===o.HTML?b.mode===a.ASCII?(0,r.encodeNonAsciiHTML)(f):(0,r.encodeHTML)(f):(0,n.encodeXML)(f)}t.encode=u;var l=Eo;Object.defineProperty(t,"encodeXML",{enumerable:!0,get:function(){return l.encodeXML}}),Object.defineProperty(t,"escape",{enumerable:!0,get:function(){return l.escape}}),Object.defineProperty(t,"escapeUTF8",{enumerable:!0,get:function(){return l.escapeUTF8}}),Object.defineProperty(t,"escapeAttribute",{enumerable:!0,get:function(){return l.escapeAttribute}}),Object.defineProperty(t,"escapeText",{enumerable:!0,get:function(){return l.escapeText}});var c=Kt;Object.defineProperty(t,"encodeHTML",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeNonAsciiHTML",{enumerable:!0,get:function(){return c.encodeNonAsciiHTML}}),Object.defineProperty(t,"encodeHTML4",{enumerable:!0,get:function(){return c.encodeHTML}}),Object.defineProperty(t,"encodeHTML5",{enumerable:!0,get:function(){return c.encodeHTML}});var h=mn;Object.defineProperty(t,"EntityDecoder",{enumerable:!0,get:function(){return h.EntityDecoder}}),Object.defineProperty(t,"DecodingMode",{enumerable:!0,get:function(){return h.DecodingMode}}),Object.defineProperty(t,"decodeXML",{enumerable:!0,get:function(){return h.decodeXML}}),Object.defineProperty(t,"decodeHTML",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTMLStrict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTMLAttribute",{enumerable:!0,get:function(){return h.decodeHTMLAttribute}}),Object.defineProperty(t,"decodeHTML4",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML5",{enumerable:!0,get:function(){return h.decodeHTML}}),Object.defineProperty(t,"decodeHTML4Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeHTML5Strict",{enumerable:!0,get:function(){return h.decodeHTMLStrict}}),Object.defineProperty(t,"decodeXMLStrict",{enumerable:!0,get:function(){return h.decodeXML}})})(hf);var Tr={};Object.defineProperty(Tr,"__esModule",{value:!0});Tr.attributeNames=Tr.elementNames=void 0;Tr.elementNames=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(function(t){return[t.toLowerCase(),t]}));Tr.attributeNames=new Map(["definitionURL","attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(function(t){return[t.toLowerCase(),t]}));var hr=F&&F.__assign||function(){return hr=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},hr.apply(this,arguments)},i6=F&&F.__createBinding||(Object.create?function(t,e,r,n){n===void 0&&(n=r);var o=Object.getOwnPropertyDescriptor(e,r);(!o||("get"in o?!e.__esModule:o.writable||o.configurable))&&(o={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,n,o)}:function(t,e,r,n){n===void 0&&(n=r),t[n]=e[r]}),s6=F&&F.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),u6=F&&F.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&i6(e,t,r);return s6(e,t),e};Object.defineProperty(Tn,"__esModule",{value:!0});Tn.render=void 0;var ut=u6(Fr),To=hf,gf=Tr,l6=new Set(["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"]);function c6(t){return t.replace(/"/g,""")}function d6(t,e){var r;if(t){var n=((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)===!1?c6:e.xmlMode||e.encodeEntities!=="utf8"?To.encodeXML:To.escapeAttribute;return Object.keys(t).map(function(o){var a,i,s=(a=t[o])!==null&&a!==void 0?a:"";return e.xmlMode==="foreign"&&(o=(i=gf.attributeNames.get(o))!==null&&i!==void 0?i:o),!e.emptyAttrs&&!e.xmlMode&&s===""?o:"".concat(o,'="').concat(n(s),'"')}).join(" ")}}var Rl=new Set(["area","base","basefont","br","col","command","embed","frame","hr","img","input","isindex","keygen","link","meta","param","source","track","wbr"]);function sa(t,e){e===void 0&&(e={});for(var r=("length"in t)?t:[t],n="",o=0;o<r.length;o++)n+=f6(r[o],e);return n}Tn.render=sa;Tn.default=sa;function f6(t,e){switch(t.type){case ut.Root:return sa(t.children,e);case ut.Doctype:case ut.Directive:return b6(t);case ut.Comment:return y6(t);case ut.CDATA:return v6(t);case ut.Script:case ut.Style:case ut.Tag:return m6(t,e);case ut.Text:return g6(t,e)}}var p6=new Set(["mi","mo","mn","ms","mtext","annotation-xml","foreignObject","desc","title"]),h6=new Set(["svg","math"]);function m6(t,e){var r;e.xmlMode==="foreign"&&(t.name=(r=gf.elementNames.get(t.name))!==null&&r!==void 0?r:t.name,t.parent&&p6.has(t.parent.name)&&(e=hr(hr({},e),{xmlMode:!1}))),!e.xmlMode&&h6.has(t.name)&&(e=hr(hr({},e),{xmlMode:"foreign"}));var n="<".concat(t.name),o=d6(t.attribs,e);return o&&(n+=" ".concat(o)),t.children.length===0&&(e.xmlMode?e.selfClosingTags!==!1:e.selfClosingTags&&Rl.has(t.name))?(e.xmlMode||(n+=" "),n+="/>"):(n+=">",t.children.length>0&&(n+=sa(t.children,e)),(e.xmlMode||!Rl.has(t.name))&&(n+="</".concat(t.name,">"))),n}function b6(t){return"<".concat(t.data,">")}function g6(t,e){var r,n=t.data||"";return((r=e.encodeEntities)!==null&&r!==void 0?r:e.decodeEntities)!==!1&&!(!e.xmlMode&&t.parent&&l6.has(t.parent.name))&&(n=e.xmlMode||e.encodeEntities!=="utf8"?(0,To.encodeXML)(n):(0,To.escapeText)(n)),n}function v6(t){return"<![CDATA[".concat(t.children[0].data,"]]>")}function y6(t){return"<!--".concat(t.data,"-->")}var x6=F&&F.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bt,"__esModule",{value:!0});Bt.getOuterHTML=vf;Bt.getInnerHTML=C6;Bt.getText=to;Bt.textContent=bi;Bt.innerText=gi;var Ze=xt,w6=x6(Tn),S6=Fr;function vf(t,e){return(0,w6.default)(t,e)}function C6(t,e){return(0,Ze.hasChildren)(t)?t.children.map(function(r){return vf(r,e)}).join(""):""}function to(t){return Array.isArray(t)?t.map(to).join(""):(0,Ze.isTag)(t)?t.name==="br"?`
|
|
231
|
+
`:to(t.children):(0,Ze.isCDATA)(t)?to(t.children):(0,Ze.isText)(t)?t.data:""}function bi(t){return Array.isArray(t)?t.map(bi).join(""):(0,Ze.hasChildren)(t)&&!(0,Ze.isComment)(t)?bi(t.children):(0,Ze.isText)(t)?t.data:""}function gi(t){return Array.isArray(t)?t.map(gi).join(""):(0,Ze.hasChildren)(t)&&(t.type===S6.ElementType.Tag||(0,Ze.isCDATA)(t))?gi(t.children):(0,Ze.isText)(t)?t.data:""}var ot={};Object.defineProperty(ot,"__esModule",{value:!0});ot.getChildren=yf;ot.getParent=xf;ot.getSiblings=E6;ot.getAttributeValue=T6;ot.hasAttrib=N6;ot.getName=j6;ot.nextElementSibling=A6;ot.prevElementSibling=O6;var Os=xt;function yf(t){return(0,Os.hasChildren)(t)?t.children:[]}function xf(t){return t.parent||null}function E6(t){var e,r,n=xf(t);if(n!=null)return yf(n);for(var o=[t],a=t.prev,i=t.next;a!=null;)o.unshift(a),e=a,a=e.prev;for(;i!=null;)o.push(i),r=i,i=r.next;return o}function T6(t,e){var r;return(r=t.attribs)===null||r===void 0?void 0:r[e]}function N6(t,e){return t.attribs!=null&&Object.prototype.hasOwnProperty.call(t.attribs,e)&&t.attribs[e]!=null}function j6(t){return t.name}function A6(t){for(var e,r=t.next;r!==null&&!(0,Os.isTag)(r);)e=r,r=e.next;return r}function O6(t){for(var e,r=t.prev;r!==null&&!(0,Os.isTag)(r);)e=r,r=e.prev;return r}var Ht={};Object.defineProperty(Ht,"__esModule",{value:!0});Ht.removeElement=Nn;Ht.replaceElement=P6;Ht.appendChild=k6;Ht.append=_6;Ht.prependChild=R6;Ht.prepend=I6;function Nn(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 P6(t,e){var r=e.prev=t.prev;r&&(r.next=e);var n=e.next=t.next;n&&(n.prev=e);var o=e.parent=t.parent;if(o){var a=o.children;a[a.lastIndexOf(t)]=e,t.parent=null}}function k6(t,e){if(Nn(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 _6(t,e){Nn(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 R6(t,e){if(Nn(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 I6(t,e){Nn(e);var r=t.parent;if(r){var n=r.children;n.splice(n.indexOf(t),0,e)}t.prev&&(t.prev.next=e),e.parent=r,e.prev=t.prev,e.next=t,t.prev=e}var St={};Object.defineProperty(St,"__esModule",{value:!0});St.filter=D6;St.find=wf;St.findOneChild=M6;St.findOne=Sf;St.existsOne=Cf;St.findAll=L6;var Jt=xt;function D6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),wf(t,Array.isArray(e)?e:[e],r,n)}function wf(t,e,r,n){for(var o=[],a=[Array.isArray(e)?e:[e]],i=[0];;){if(i[0]>=a[0].length){if(i.length===1)return o;a.shift(),i.shift();continue}var s=a[0][i[0]++];if(t(s)&&(o.push(s),--n<=0))return o;r&&(0,Jt.hasChildren)(s)&&s.children.length>0&&(i.unshift(0),a.unshift(s.children))}}function M6(t,e){return e.find(t)}function Sf(t,e,r){r===void 0&&(r=!0);for(var n=Array.isArray(e)?e:[e],o=0;o<n.length;o++){var a=n[o];if((0,Jt.isTag)(a)&&t(a))return a;if(r&&(0,Jt.hasChildren)(a)&&a.children.length>0){var i=Sf(t,a.children,!0);if(i)return i}}return null}function Cf(t,e){return(Array.isArray(e)?e:[e]).some(function(r){return(0,Jt.isTag)(r)&&t(r)||(0,Jt.hasChildren)(r)&&Cf(t,r.children)})}function L6(t,e){for(var r=[],n=[Array.isArray(e)?e:[e]],o=[0];;){if(o[0]>=n[0].length){if(n.length===1)return r;n.shift(),o.shift();continue}var a=n[0][o[0]++];(0,Jt.isTag)(a)&&t(a)&&r.push(a),(0,Jt.hasChildren)(a)&&a.children.length>0&&(o.unshift(0),n.unshift(a.children))}}var Ct={};Object.defineProperty(Ct,"__esModule",{value:!0});Ct.testElement=B6;Ct.getElements=H6;Ct.getElementById=z6;Ct.getElementsByTagName=F6;Ct.getElementsByClassName=q6;Ct.getElementsByTagType=U6;var Vt=xt,jn=St,No={tag_name:function(t){return typeof t=="function"?function(e){return(0,Vt.isTag)(e)&&t(e.name)}:t==="*"?Vt.isTag:function(e){return(0,Vt.isTag)(e)&&e.name===t}},tag_type:function(t){return typeof t=="function"?function(e){return t(e.type)}:function(e){return e.type===t}},tag_contains:function(t){return typeof t=="function"?function(e){return(0,Vt.isText)(e)&&t(e.data)}:function(e){return(0,Vt.isText)(e)&&e.data===t}}};function Ps(t,e){return typeof e=="function"?function(r){return(0,Vt.isTag)(r)&&e(r.attribs[t])}:function(r){return(0,Vt.isTag)(r)&&r.attribs[t]===e}}function $6(t,e){return function(r){return t(r)||e(r)}}function Ef(t){var e=Object.keys(t).map(function(r){var n=t[r];return Object.prototype.hasOwnProperty.call(No,r)?No[r](n):Ps(r,n)});return e.length===0?null:e.reduce($6)}function B6(t,e){var r=Ef(t);return r?r(e):!0}function H6(t,e,r,n){n===void 0&&(n=1/0);var o=Ef(t);return o?(0,jn.filter)(o,e,r,n):[]}function z6(t,e,r){return r===void 0&&(r=!0),Array.isArray(e)||(e=[e]),(0,jn.findOne)(Ps("id",t),e,r)}function F6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,jn.filter)(No.tag_name(t),e,r,n)}function q6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,jn.filter)(Ps("class",t),e,r,n)}function U6(t,e,r,n){return r===void 0&&(r=!0),n===void 0&&(n=1/0),(0,jn.filter)(No.tag_type(t),e,r,n)}var nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.DocumentPosition=void 0;nr.removeSubsets=V6;nr.compareDocumentPosition=Tf;nr.uniqueSort=W6;var Il=xt;function V6(t){for(var e=t.length;--e>=0;){var r=t[e];if(e>0&&t.lastIndexOf(r,e-1)>=0){t.splice(e,1);continue}for(var n=r.parent;n;n=n.parent)if(t.includes(n)){t.splice(e,1);break}}return t}var ze;(function(t){t[t.DISCONNECTED=1]="DISCONNECTED",t[t.PRECEDING=2]="PRECEDING",t[t.FOLLOWING=4]="FOLLOWING",t[t.CONTAINS=8]="CONTAINS",t[t.CONTAINED_BY=16]="CONTAINED_BY"})(ze||(nr.DocumentPosition=ze={}));function Tf(t,e){var r=[],n=[];if(t===e)return 0;for(var o=(0,Il.hasChildren)(t)?t:t.parent;o;)r.unshift(o),o=o.parent;for(o=(0,Il.hasChildren)(e)?e:e.parent;o;)n.unshift(o),o=o.parent;for(var a=Math.min(r.length,n.length),i=0;i<a&&r[i]===n[i];)i++;if(i===0)return ze.DISCONNECTED;var s=r[i-1],u=s.children,l=r[i],c=n[i];return u.indexOf(l)>u.indexOf(c)?s===e?ze.FOLLOWING|ze.CONTAINED_BY:ze.FOLLOWING:s===t?ze.PRECEDING|ze.CONTAINS:ze.PRECEDING}function W6(t){return t=t.filter(function(e,r,n){return!n.includes(e,r+1)}),t.sort(function(e,r){var n=Tf(e,r);return n&ze.PRECEDING?-1:n&ze.FOLLOWING?1:0}),t}var ks={};Object.defineProperty(ks,"__esModule",{value:!0});ks.getFeed=Y6;var G6=Bt,An=Ct;function Y6(t){var e=jo(Q6,t);return e?e.name==="feed"?X6(e):K6(e):null}function X6(t){var e,r=t.children,n={type:"atom",items:(0,An.getElementsByTagName)("entry",r).map(function(i){var s,u=i.children,l={media:Nf(u)};Ne(l,"id","id",u),Ne(l,"title","title",u);var c=(s=jo("link",u))===null||s===void 0?void 0:s.attribs.href;c&&(l.link=c);var h=Ot("summary",u)||Ot("content",u);h&&(l.description=h);var f=Ot("updated",u);return f&&(l.pubDate=new Date(f)),l})};Ne(n,"id","id",r),Ne(n,"title","title",r);var o=(e=jo("link",r))===null||e===void 0?void 0:e.attribs.href;o&&(n.link=o),Ne(n,"description","subtitle",r);var a=Ot("updated",r);return a&&(n.updated=new Date(a)),Ne(n,"author","email",r,!0),n}function K6(t){var e,r,n=(r=(e=jo("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,An.getElementsByTagName)("item",t.children).map(function(i){var s=i.children,u={media:Nf(s)};Ne(u,"id","guid",s),Ne(u,"title","title",s),Ne(u,"link","link",s),Ne(u,"description","description",s);var l=Ot("pubDate",s)||Ot("dc:date",s);return l&&(u.pubDate=new Date(l)),u})};Ne(o,"title","title",n),Ne(o,"link","link",n),Ne(o,"description","description",n);var a=Ot("lastBuildDate",n);return a&&(o.updated=new Date(a)),Ne(o,"author","managingEditor",n,!0),o}var J6=["url","type","lang"],Z6=["fileSize","bitrate","framerate","samplingrate","channels","duration","height","width"];function Nf(t){return(0,An.getElementsByTagName)("media:content",t).map(function(e){for(var r=e.attribs,n={medium:r.medium,isDefault:!!r.isDefault},o=0,a=J6;o<a.length;o++){var i=a[o];r[i]&&(n[i]=r[i])}for(var s=0,u=Z6;s<u.length;s++){var i=u[s];r[i]&&(n[i]=parseInt(r[i],10))}return r.expression&&(n.expression=r.expression),n})}function jo(t,e){return(0,An.getElementsByTagName)(t,e,!0,1)[0]}function Ot(t,e,r){return r===void 0&&(r=!1),(0,G6.textContent)((0,An.getElementsByTagName)(t,e,r,1)).trim()}function Ne(t,e,r,n,o){o===void 0&&(o=!1);var a=Ot(r,n,o);a&&(t[e]=a)}function Q6(t){return t==="rss"||t==="feed"||t==="rdf:RDF"}(function(t){var e=F&&F.__createBinding||(Object.create?function(o,a,i,s){s===void 0&&(s=i);var u=Object.getOwnPropertyDescriptor(a,i);(!u||("get"in u?!a.__esModule:u.writable||u.configurable))&&(u={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(o,s,u)}:function(o,a,i,s){s===void 0&&(s=i),o[s]=a[i]}),r=F&&F.__exportStar||function(o,a){for(var i in o)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&e(a,o,i)};Object.defineProperty(t,"__esModule",{value:!0}),t.hasChildren=t.isDocument=t.isComment=t.isText=t.isCDATA=t.isTag=void 0,r(Bt,t),r(ot,t),r(Ht,t),r(St,t),r(Ct,t),r(nr,t),r(ks,t);var n=xt;Object.defineProperty(t,"isTag",{enumerable:!0,get:function(){return n.isTag}}),Object.defineProperty(t,"isCDATA",{enumerable:!0,get:function(){return n.isCDATA}}),Object.defineProperty(t,"isText",{enumerable:!0,get:function(){return n.isText}}),Object.defineProperty(t,"isComment",{enumerable:!0,get:function(){return n.isComment}}),Object.defineProperty(t,"isDocument",{enumerable:!0,get:function(){return n.isDocument}}),Object.defineProperty(t,"hasChildren",{enumerable:!0,get:function(){return n.hasChildren}})})(eo);(function(t){var e=F&&F.__createBinding||(Object.create?function(y,x,S,E){E===void 0&&(E=S);var j=Object.getOwnPropertyDescriptor(x,S);(!j||("get"in j?!x.__esModule:j.writable||j.configurable))&&(j={enumerable:!0,get:function(){return x[S]}}),Object.defineProperty(y,E,j)}:function(y,x,S,E){E===void 0&&(E=S),y[E]=x[S]}),r=F&&F.__setModuleDefault||(Object.create?function(y,x){Object.defineProperty(y,"default",{enumerable:!0,value:x})}:function(y,x){y.default=x}),n=F&&F.__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=F&&F.__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 a=hn,i=hn;Object.defineProperty(t,"Parser",{enumerable:!0,get:function(){return i.Parser}});var s=xt,u=xt;Object.defineProperty(t,"DomHandler",{enumerable:!0,get:function(){return u.DomHandler}}),Object.defineProperty(t,"DefaultHandler",{enumerable:!0,get:function(){return u.DomHandler}});function l(y,x){var S=new s.DomHandler(void 0,x);return new a.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 a.Parser(E,x)}t.createDomStream=h;var f=Cs;Object.defineProperty(t,"Tokenizer",{enumerable:!0,get:function(){return o(f).default}}),t.ElementType=n(Fr);var d=eo,b=eo;Object.defineProperty(t,"getFeed",{enumerable:!0,get:function(){return b.getFeed}});var g={xmlMode:!0};function m(y,x){return x===void 0&&(x=g),(0,d.getFeed)(c(y,x))}t.parseFeed=m,t.DomUtils=n(eo)})(ef);var e4=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")},_s={};Object.defineProperty(_s,"__esModule",{value:!0});/*!
|
|
232
|
+
* is-plain-object <https://github.com/jonschlinkert/is-plain-object>
|
|
233
|
+
*
|
|
234
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
235
|
+
* Released under the MIT License.
|
|
236
|
+
*/function Dl(t){return Object.prototype.toString.call(t)==="[object Object]"}function t4(t){var e,r;return Dl(t)===!1?!1:(e=t.constructor,e===void 0?!0:(r=e.prototype,!(Dl(r)===!1||r.hasOwnProperty("isPrototypeOf")===!1)))}_s.isPlainObject=t4;var r4=function(e){return n4(e)&&!o4(e)};function n4(t){return!!t&&typeof t=="object"}function o4(t){var e=Object.prototype.toString.call(t);return e==="[object RegExp]"||e==="[object Date]"||s4(t)}var a4=typeof Symbol=="function"&&Symbol.for,i4=a4?Symbol.for("react.element"):60103;function s4(t){return t.$$typeof===i4}function u4(t){return Array.isArray(t)?[]:{}}function bn(t,e){return e.clone!==!1&&e.isMergeableObject(t)?Nr(u4(t),t,e):t}function l4(t,e,r){return t.concat(e).map(function(n){return bn(n,r)})}function c4(t,e){if(!e.customMerge)return Nr;var r=e.customMerge(t);return typeof r=="function"?r:Nr}function d4(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter(function(e){return Object.propertyIsEnumerable.call(t,e)}):[]}function Ml(t){return Object.keys(t).concat(d4(t))}function jf(t,e){try{return e in t}catch{return!1}}function f4(t,e){return jf(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))}function p4(t,e,r){var n={};return r.isMergeableObject(t)&&Ml(t).forEach(function(o){n[o]=bn(t[o],r)}),Ml(e).forEach(function(o){f4(t,o)||(jf(t,o)&&r.isMergeableObject(e[o])?n[o]=c4(o,r)(t[o],e[o],r):n[o]=bn(e[o],r))}),n}function Nr(t,e,r){r=r||{},r.arrayMerge=r.arrayMerge||l4,r.isMergeableObject=r.isMergeableObject||r4,r.cloneUnlessOtherwiseSpecified=bn;var n=Array.isArray(e),o=Array.isArray(t),a=n===o;return a?n?r.arrayMerge(t,e,r):p4(t,e,r):bn(e,r)}Nr.all=function(e,r){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(n,o){return Nr(n,o,r)},{})};var h4=Nr,m4=h4,Af={exports:{}};(function(t){(function(e,r){t.exports?t.exports=r():e.parseSrcset=r()})(F,function(){return function(e){function r(E){return E===" "||E===" "||E===`
|
|
237
|
+
`||E==="\f"||E==="\r"}function n(E){var j,P=E.exec(e.substring(m));if(P)return j=P[0],m+=j.length,j}for(var o=e.length,a=/^[ \t\n\r\u000c]+/,i=/^[, \t\n\r\u000c]+/,s=/^[^ \t\n\r\u000c]+/,u=/[,]+$/,l=/^\d+$/,c=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/,h,f,d,b,g,m=0,y=[];;){if(n(i),m>=o)return y;h=n(s),f=[],h.slice(-1)===","?(h=h.replace(u,""),S()):x()}function x(){for(n(a),d="",b="in descriptor";;){if(g=e.charAt(m),b==="in descriptor")if(r(g))d&&(f.push(d),d="",b="after descriptor");else if(g===","){m+=1,d&&f.push(d),S();return}else if(g==="(")d=d+g,b="in parens";else if(g===""){d&&f.push(d),S();return}else d=d+g;else if(b==="in parens")if(g===")")d=d+g,b="in descriptor";else if(g===""){f.push(d),S();return}else d=d+g;else if(b==="after descriptor"&&!r(g))if(g===""){S();return}else b="in descriptor",m-=1;m+=1}}function S(){var E=!1,j,P,_,D,L={},$,C,N,k,I;for(D=0;D<f.length;D++)$=f[D],C=$[$.length-1],N=$.substring(0,$.length-1),k=parseInt(N,10),I=parseFloat(N),l.test(N)&&C==="w"?((j||P)&&(E=!0),k===0?E=!0:j=k):c.test(N)&&C==="x"?((j||P||_)&&(E=!0),I<0?E=!0:P=I):l.test(N)&&C==="h"?((_||P)&&(E=!0),k===0?E=!0:_=k):E=!0;E?console&&console.log&&console.log("Invalid srcset descriptor found in '"+e+"' at '"+$+"'."):(L.url=h,j&&(L.w=j),P&&(L.d=P),_&&(L.h=_),y.push(L))}}})})(Af);var b4=Af.exports,Rs={exports:{}},G=String,Of=function(){return{isColorSupported:!1,reset:G,bold:G,dim:G,italic:G,underline:G,inverse:G,hidden:G,strikethrough:G,black:G,red:G,green:G,yellow:G,blue:G,magenta:G,cyan:G,white:G,gray:G,bgBlack:G,bgRed:G,bgGreen:G,bgYellow:G,bgBlue:G,bgMagenta:G,bgCyan:G,bgWhite:G,blackBright:G,redBright:G,greenBright:G,yellowBright:G,blueBright:G,magentaBright:G,cyanBright:G,whiteBright:G,bgBlackBright:G,bgRedBright:G,bgGreenBright:G,bgYellowBright:G,bgBlueBright:G,bgMagentaBright:G,bgCyanBright:G,bgWhiteBright:G}};Rs.exports=Of();Rs.exports.createColors=Of;var g4=Rs.exports;const v4={},y4=Object.freeze(Object.defineProperty({__proto__:null,default:v4},Symbol.toStringTag,{value:"Module"})),Ue=Gh(y4);let Ll=g4,$l=Ue,vi=class Pf extends Error{constructor(e,r,n,o,a,i){super(e),this.name="CssSyntaxError",this.reason=e,a&&(this.file=a),o&&(this.source=o),i&&(this.plugin=i),typeof r<"u"&&typeof n<"u"&&(typeof r=="number"?(this.line=r,this.column=n):(this.line=r.line,this.column=r.column,this.endLine=n.line,this.endColumn=n.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,Pf)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let r=this.source;e==null&&(e=Ll.isColorSupported);let n=c=>c,o=c=>c,a=c=>c;if(e){let{bold:c,gray:h,red:f}=Ll.createColors(!0);o=d=>c(f(d)),n=d=>h(d),$l&&(a=d=>$l(d))}let i=r.split(/\r?\n/),s=Math.max(this.line-3,0),u=Math.min(this.line+2,i.length),l=String(u).length;return i.slice(s,u).map((c,h)=>{let f=s+1+h,d=" "+(" "+f).slice(-l)+" | ";if(f===this.line){if(c.length>160){let g=20,m=Math.max(0,this.column-g),y=Math.max(this.column+g,this.endColumn+g),x=c.slice(m,y),S=n(d.replace(/\d/g," "))+c.slice(0,Math.min(this.column-1,g-1)).replace(/[^\t]/g," ");return o(">")+n(d)+a(x)+`
|
|
238
|
+
`+S+o("^")}let b=n(d.replace(/\d/g," "))+c.slice(0,this.column-1).replace(/[^\t]/g," ");return o(">")+n(d)+a(c)+`
|
|
239
|
+
`+b+o("^")}return" "+n(d)+a(c)}).join(`
|
|
240
|
+
`)}toString(){let e=this.showSourceCode();return e&&(e=`
|
|
241
|
+
|
|
242
|
+
`+e+`
|
|
243
|
+
`),this.name+": "+this.message+e}};var Is=vi;vi.default=vi;const Bl={after:`
|
|
244
|
+
`,beforeClose:`
|
|
245
|
+
`,beforeComment:`
|
|
246
|
+
`,beforeDecl:`
|
|
247
|
+
`,beforeOpen:" ",beforeRule:`
|
|
248
|
+
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function x4(t){return t[0].toUpperCase()+t.slice(1)}let yi=class{constructor(e){this.builder=e}atrule(e,r){let n="@"+e.name,o=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?n+=e.raws.afterName:o&&(n+=" "),e.nodes)this.block(e,n+o);else{let a=(e.raws.between||"")+(r?";":"");this.builder(n+o+a,e)}}beforeAfter(e,r){let n;e.type==="decl"?n=this.raw(e,null,"beforeDecl"):e.type==="comment"?n=this.raw(e,null,"beforeComment"):r==="before"?n=this.raw(e,null,"beforeRule"):n=this.raw(e,null,"beforeClose");let o=e.parent,a=0;for(;o&&o.type!=="root";)a+=1,o=o.parent;if(n.includes(`
|
|
249
|
+
`)){let i=this.raw(e,null,"indent");if(i.length)for(let s=0;s<a;s++)n+=i}return n}block(e,r){let n=this.raw(e,"between","beforeOpen");this.builder(r+n+"{",e,"start");let o;e.nodes&&e.nodes.length?(this.body(e),o=this.raw(e,"after")):o=this.raw(e,"after","emptyBody"),o&&this.builder(o),this.builder("}",e,"end")}body(e){let r=e.nodes.length-1;for(;r>0&&e.nodes[r].type==="comment";)r-=1;let n=this.raw(e,"semicolon");for(let o=0;o<e.nodes.length;o++){let a=e.nodes[o],i=this.raw(a,"before");i&&this.builder(i),this.stringify(a,r!==o||n)}}comment(e){let r=this.raw(e,"left","commentLeft"),n=this.raw(e,"right","commentRight");this.builder("/*"+r+e.text+n+"*/",e)}decl(e,r){let n=this.raw(e,"between","colon"),o=e.prop+n+this.rawValue(e,"value");e.important&&(o+=e.raws.important||" !important"),r&&(o+=";"),this.builder(o,e)}document(e){this.body(e)}raw(e,r,n){let o;if(n||(n=r),r&&(o=e.raws[r],typeof o<"u"))return o;let a=e.parent;if(n==="before"&&(!a||a.type==="root"&&a.first===e||a&&a.type==="document"))return"";if(!a)return Bl[n];let i=e.root();if(i.rawCache||(i.rawCache={}),typeof i.rawCache[n]<"u")return i.rawCache[n];if(n==="before"||n==="after")return this.beforeAfter(e,n);{let s="raw"+x4(n);this[s]?o=this[s](i,e):i.walk(u=>{if(o=u.raws[r],typeof o<"u")return!1})}return typeof o>"u"&&(o=Bl[n]),i.rawCache[n]=o,o}rawBeforeClose(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length>0&&typeof n.raws.after<"u")return r=n.raws.after,r.includes(`
|
|
250
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawBeforeComment(e,r){let n;return e.walkComments(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
251
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeDecl"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeDecl(e,r){let n;return e.walkDecls(o=>{if(typeof o.raws.before<"u")return n=o.raws.before,n.includes(`
|
|
252
|
+
`)&&(n=n.replace(/[^\n]+$/,"")),!1}),typeof n>"u"?n=this.raw(r,null,"beforeRule"):n&&(n=n.replace(/\S/g,"")),n}rawBeforeOpen(e){let r;return e.walk(n=>{if(n.type!=="decl"&&(r=n.raws.between,typeof r<"u"))return!1}),r}rawBeforeRule(e){let r;return e.walk(n=>{if(n.nodes&&(n.parent!==e||e.first!==n)&&typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
|
|
253
|
+
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),r&&(r=r.replace(/\S/g,"")),r}rawColon(e){let r;return e.walkDecls(n=>{if(typeof n.raws.between<"u")return r=n.raws.between.replace(/[^\s:]/g,""),!1}),r}rawEmptyBody(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length===0&&(r=n.raws.after,typeof r<"u"))return!1}),r}rawIndent(e){if(e.raws.indent)return e.raws.indent;let r;return e.walk(n=>{let o=n.parent;if(o&&o!==e&&o.parent&&o.parent===e&&typeof n.raws.before<"u"){let a=n.raws.before.split(`
|
|
254
|
+
`);return r=a[a.length-1],r=r.replace(/\S/g,""),!1}}),r}rawSemicolon(e){let r;return e.walk(n=>{if(n.nodes&&n.nodes.length&&n.last.type==="decl"&&(r=n.raws.semicolon,typeof r<"u"))return!1}),r}rawValue(e,r){let n=e[r],o=e.raws[r];return o&&o.value===n?o.raw:n}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,r){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,r)}};var kf=yi;yi.default=yi;let w4=kf;function xi(t,e){new w4(e).stringify(t)}var ua=xi;xi.default=xi;var On={};On.isClean=Symbol("isClean");On.my=Symbol("my");let S4=Is,C4=kf,E4=ua,{isClean:Xr,my:T4}=On;function wi(t,e){let r=new t.constructor;for(let n in t){if(!Object.prototype.hasOwnProperty.call(t,n)||n==="proxyCache")continue;let o=t[n],a=typeof o;n==="parent"&&a==="object"?e&&(r[n]=e):n==="source"?r[n]=o:Array.isArray(o)?r[n]=o.map(i=>wi(i,r)):(a==="object"&&o!==null&&(o=wi(o)),r[n]=o)}return r}function lt(t,e){if(e&&typeof e.offset<"u")return e.offset;let r=1,n=1,o=0;for(let a=0;a<t.length;a++){if(n===e.line&&r===e.column){o=a;break}t[a]===`
|
|
255
|
+
`?(r=1,n+=1):r+=1}return o}let Si=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[Xr]=!1,this[T4]=!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=wi(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 S4(e)}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:r==="root"?()=>e.root().toProxy():e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="prop"||r==="value"||r==="name"||r==="params"||r==="important"||r==="text")&&e.markDirty()),!0}}}markClean(){this[Xr]=!0}markDirty(){if(this[Xr]){this[Xr]=!1;let e=this;for(;e=e.parent;)e[Xr]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e={}){let r=this.source.start;if(e.index)r=this.positionInside(e.index);else if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,a=n.slice(lt(n,this.source.start),lt(n,this.source.end)).indexOf(e.word);a!==-1&&(r=this.positionInside(a))}return r}positionInside(e){let r=this.source.start.column,n=this.source.start.line,o="document"in this.source.input?this.source.input.document:this.source.input.css,a=lt(o,this.source.start),i=a+e;for(let s=a;s<i;s++)o[s]===`
|
|
256
|
+
`?(r=1,n+=1):r+=1;return{column:r,line:n,offset:i}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e={}){let r="document"in this.source.input?this.source.input.document:this.source.input.css,n={column:this.source.start.column,line:this.source.start.line,offset:lt(r,this.source.start)},o=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:lt(r,this.source.end)+1}:{column:n.column+1,line:n.line,offset:n.offset+1};if(e.word){let i=r.slice(lt(r,this.source.start),lt(r,this.source.end)).indexOf(e.word);i!==-1&&(n=this.positionInside(i),o=this.positionInside(i+e.word.length))}else e.start?n={column:e.start.column,line:e.start.line,offset:lt(r,e.start)}:e.index&&(n=this.positionInside(e.index)),e.end?o={column:e.end.column,line:e.end.line,offset:lt(r,e.end)}:typeof e.endIndex=="number"?o=this.positionInside(e.endIndex):e.index&&(o=this.positionInside(e.index+1));return(o.line<n.line||o.line===n.line&&o.column<=n.column)&&(o={column:n.column+1,line:n.line,offset:n.offset+1}),{end:o,start:n}}raw(e,r){return new C4().raw(this,e,r)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let r=this,n=!1;for(let o of e)o===this?n=!0:n?(this.parent.insertAfter(r,o),r=o):this.parent.insertBefore(r,o);n||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,r){let n={},o=r==null;r=r||new Map;let a=0;for(let i in this){if(!Object.prototype.hasOwnProperty.call(this,i)||i==="parent"||i==="proxyCache")continue;let s=this[i];if(Array.isArray(s))n[i]=s.map(u=>typeof u=="object"&&u.toJSON?u.toJSON(null,r):u);else if(typeof s=="object"&&s.toJSON)n[i]=s.toJSON(null,r);else if(i==="source"){if(s==null)continue;let u=r.get(s.input);u==null&&(u=a,r.set(s.input,a),a++),n[i]={end:s.end,inputId:u,start:s.start}}else n[i]=s}return o&&(n.inputs=[...r.keys()].map(i=>i.toJSON())),n}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=E4){e.stringify&&(e=e.stringify);let r="";return e(this,n=>{r+=n}),r}warn(e,r,n={}){let o={node:this};for(let a in n)o[a]=n[a];return e.warn(r,o)}};var la=Si;Si.default=Si;let N4=la,Ci=class extends N4{constructor(e){super(e),this.type="comment"}};var ca=Ci;Ci.default=Ci;let j4=la,Ei=class extends j4{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 da=Ei;Ei.default=Ei;let _f=ca,Rf=da,A4=la,{isClean:If,my:Df}=On,Ds,Mf,Lf,Ms;function $f(t){return t.map(e=>(e.nodes&&(e.nodes=$f(e.nodes)),delete e.source,e))}function Bf(t){if(t[If]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Bf(e)}let wt=class Hf extends A4{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let r of e){let n=this.normalize(r,this.last);for(let o of n)this.proxyOf.nodes.push(o)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let r of this.nodes)r.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let r=this.getIterator(),n,o;for(;this.indexes[r]<this.proxyOf.nodes.length&&(n=this.indexes[r],o=e(this.proxyOf.nodes[n],n),o!==!1);)this.indexes[r]+=1;return delete this.indexes[r],o}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,r){return r==="proxyOf"?e:e[r]?r==="each"||typeof r=="string"&&r.startsWith("walk")?(...n)=>e[r](...n.map(o=>typeof o=="function"?(a,i)=>o(a.toProxy(),i):o)):r==="every"||r==="some"?n=>e[r]((o,...a)=>n(o.toProxy(),...a)):r==="root"?()=>e.root().toProxy():r==="nodes"?e.nodes.map(n=>n.toProxy()):r==="first"||r==="last"?e[r].toProxy():e[r]:e[r]},set(e,r,n){return e[r]===n||(e[r]=n,(r==="name"||r==="params"||r==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,r){let n=this.index(e),o=this.normalize(r,this.proxyOf.nodes[n]).reverse();n=this.index(e);for(let i of o)this.proxyOf.nodes.splice(n+1,0,i);let a;for(let i in this.indexes)a=this.indexes[i],n<a&&(this.indexes[i]=a+o.length);return this.markDirty(),this}insertBefore(e,r){let n=this.index(e),o=n===0?"prepend":!1,a=this.normalize(r,this.proxyOf.nodes[n],o).reverse();n=this.index(e);for(let s of a)this.proxyOf.nodes.splice(n,0,s);let i;for(let s in this.indexes)i=this.indexes[s],n<=i&&(this.indexes[s]=i+a.length);return this.markDirty(),this}normalize(e,r){if(typeof e=="string")e=$f(Mf(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let o of e)o.parent&&o.parent.removeChild(o,"ignore")}else if(e.type)e=[e];else if(e.prop){if(typeof e.value>"u")throw new Error("Value field is missed in node creation");typeof e.value!="string"&&(e.value=String(e.value)),e=[new Rf(e)]}else if(e.selector||e.selectors)e=[new Ms(e)];else if(e.name)e=[new Ds(e)];else if(e.text)e=[new _f(e)];else throw new Error("Unknown node type in node creation");return e.map(o=>(o[Df]||Hf.rebuild(o),o=o.proxyOf,o.parent&&o.parent.removeChild(o),o[If]&&Bf(o),o.raws||(o.raws={}),typeof o.raws.before>"u"&&r&&typeof r.raws.before<"u"&&(o.raws.before=r.raws.before.replace(/\S/g,"")),o.parent=this.proxyOf,o))}prepend(...e){e=e.reverse();for(let r of e){let n=this.normalize(r,this.first,"prepend").reverse();for(let o of n)this.proxyOf.nodes.unshift(o);for(let o in this.indexes)this.indexes[o]=this.indexes[o]+n.length}return this.markDirty(),this}push(e){return e.parent=this,this.proxyOf.nodes.push(e),this}removeAll(){for(let e of this.proxyOf.nodes)e.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(e){e=this.index(e),this.proxyOf.nodes[e].parent=void 0,this.proxyOf.nodes.splice(e,1);let r;for(let n in this.indexes)r=this.indexes[n],r>=e&&(this.indexes[n]=r-1);return this.markDirty(),this}replaceValues(e,r,n){return n||(n=r,r={}),this.walkDecls(o=>{r.props&&!r.props.includes(o.prop)||r.fast&&!o.value.includes(r.fast)||(o.value=o.value.replace(e,n))}),this.markDirty(),this}some(e){return this.nodes.some(e)}walk(e){return this.each((r,n)=>{let o;try{o=e(r,n)}catch(a){throw r.addToError(a)}return o!==!1&&r.walk&&(o=r.walk(e)),o})}walkAtRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="atrule"&&e.test(n.name))return r(n,o)}):this.walk((n,o)=>{if(n.type==="atrule"&&n.name===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="atrule")return r(n,o)}))}walkComments(e){return this.walk((r,n)=>{if(r.type==="comment")return e(r,n)})}walkDecls(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="decl"&&e.test(n.prop))return r(n,o)}):this.walk((n,o)=>{if(n.type==="decl"&&n.prop===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="decl")return r(n,o)}))}walkRules(e,r){return r?e instanceof RegExp?this.walk((n,o)=>{if(n.type==="rule"&&e.test(n.selector))return r(n,o)}):this.walk((n,o)=>{if(n.type==="rule"&&n.selector===e)return r(n,o)}):(r=e,this.walk((n,o)=>{if(n.type==="rule")return r(n,o)}))}};wt.registerParse=t=>{Mf=t};wt.registerRule=t=>{Ms=t};wt.registerAtRule=t=>{Ds=t};wt.registerRoot=t=>{Lf=t};var or=wt;wt.default=wt;wt.rebuild=t=>{t.type==="atrule"?Object.setPrototypeOf(t,Ds.prototype):t.type==="rule"?Object.setPrototypeOf(t,Ms.prototype):t.type==="decl"?Object.setPrototypeOf(t,Rf.prototype):t.type==="comment"?Object.setPrototypeOf(t,_f.prototype):t.type==="root"&&Object.setPrototypeOf(t,Lf.prototype),t[Df]=!0,t.nodes&&t.nodes.forEach(e=>{wt.rebuild(e)})};let zf=or,Ao=class extends zf{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 Ls=Ao;Ao.default=Ao;zf.registerAtRule(Ao);let O4=or,Ff,qf,gn=class extends O4{constructor(e){super({type:"document",...e}),this.nodes||(this.nodes=[])}toResult(e={}){return new Ff(new qf,this,e).stringify()}};gn.registerLazyResult=t=>{Ff=t};gn.registerProcessor=t=>{qf=t};var $s=gn;gn.default=gn;let P4="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",k4=(t=21)=>{let e="",r=t|0;for(;r--;)e+=P4[Math.random()*64|0];return e};var _4={nanoid:k4};let{existsSync:R4,readFileSync:I4}=Ue,{dirname:Da,join:D4}=Ue,{SourceMapConsumer:Hl,SourceMapGenerator:zl}=Ue;function M4(t){return Buffer?Buffer.from(t,"base64").toString():window.atob(t)}let Ti=class{constructor(e,r){if(r.map===!1)return;this.loadAnnotation(e),this.inline=this.startWith(this.annotation,"data:");let n=r.map?r.map.prev:void 0,o=this.loadMap(r.from,n);!this.mapFile&&r.from&&(this.mapFile=r.from),this.mapFile&&(this.root=Da(this.mapFile)),o&&(this.text=o)}consumer(){return this.consumerCache||(this.consumerCache=new Hl(this.text)),this.consumerCache}decodeInline(e){let r=/^data:application\/json;charset=utf-?8;base64,/,n=/^data:application\/json;base64,/,o=/^data:application\/json;charset=utf-?8,/,a=/^data:application\/json,/,i=e.match(o)||e.match(a);if(i)return decodeURIComponent(e.substr(i[0].length));let s=e.match(r)||e.match(n);if(s)return M4(e.substr(s[0].length));let u=e.match(/data:application\/json;([^,]+),/)[1];throw new Error("Unsupported source map encoding "+u)}getAnnotationURL(e){return e.replace(/^\/\*\s*# sourceMappingURL=/,"").trim()}isMap(e){return typeof e!="object"?!1:typeof e.mappings=="string"||typeof e._mappings=="string"||Array.isArray(e.sections)}loadAnnotation(e){let r=e.match(/\/\*\s*# sourceMappingURL=/g);if(!r)return;let n=e.lastIndexOf(r.pop()),o=e.indexOf("*/",n);n>-1&&o>-1&&(this.annotation=this.getAnnotationURL(e.substring(n,o)))}loadFile(e){if(this.root=Da(e),R4(e))return this.mapFile=e,I4(e,"utf-8").toString().trim()}loadMap(e,r){if(r===!1)return!1;if(r){if(typeof r=="string")return r;if(typeof r=="function"){let n=r(e);if(n){let o=this.loadFile(n);if(!o)throw new Error("Unable to load previous source map: "+n.toString());return o}}else{if(r instanceof Hl)return zl.fromSourceMap(r).toString();if(r instanceof zl)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=D4(Da(e),n)),this.loadFile(n)}}}startWith(e,r){return e?e.substr(0,r.length)===r:!1}withContent(){return!!(this.consumer().sourcesContent&&this.consumer().sourcesContent.length>0)}};var Uf=Ti;Ti.default=Ti;let{nanoid:L4}=_4,{isAbsolute:Ni,resolve:ji}=Ue,{SourceMapConsumer:$4,SourceMapGenerator:B4}=Ue,{fileURLToPath:Fl,pathToFileURL:qn}=Ue,ql=Is,H4=Uf,Ma=Ue,La=Symbol("lineToIndexCache"),z4=!!($4&&B4),Ul=!!(ji&&Ni);function Vl(t){if(t[La])return t[La];let e=t.css.split(`
|
|
257
|
+
`),r=new Array(e.length),n=0;for(let o=0,a=e.length;o<a;o++)r[o]=n,n+=e[o].length+1;return t[La]=r,r}let Oo=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&&(!Ul||/^\w+:\/\//.test(r.from)||Ni(r.from)?this.file=r.from:this.file=ji(r.from)),Ul&&z4){let n=new H4(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 "+L4(6)+">"),this.map&&(this.map.file=this.from)}error(e,r,n,o={}){let a,i,s,u,l;if(r&&typeof r=="object"){let h=r,f=n;if(typeof h.offset=="number"){u=h.offset;let d=this.fromOffset(u);r=d.line,n=d.col}else r=h.line,n=h.column,u=this.fromLineAndColumn(r,n);if(typeof f.offset=="number"){s=f.offset;let d=this.fromOffset(s);i=d.line,a=d.col}else i=f.line,a=f.column,s=this.fromLineAndColumn(f.line,f.column)}else if(n)u=this.fromLineAndColumn(r,n);else{u=r;let h=this.fromOffset(u);r=h.line,n=h.col}let c=this.origin(r,n,i,a);return c?l=new ql(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 ql(e,i===void 0?r:{column:n,line:r},i===void 0?n:{column:a,line:i},this.css,this.file,o.plugin),l.input={column:n,endColumn:a,endLine:i,endOffset:s,line:r,offset:u,source:this.css},this.file&&(qn&&(l.input.url=qn(this.file).toString()),l.input.file=this.file),l}fromLineAndColumn(e,r){return Vl(this)[e-1]+r-1}fromOffset(e){let r=Vl(this),n=r[r.length-1],o=0;if(e>=n)o=r.length-1;else{let a=r.length-2,i;for(;o<a;)if(i=o+(a-o>>1),e<r[i])a=i-1;else if(e>=r[i+1])o=i+1;else{o=i;break}}return{col:e-r[o]+1,line:o+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ji(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,r,n,o){if(!this.map)return!1;let a=this.map.consumer(),i=a.originalPositionFor({column:r,line:e});if(!i.source)return!1;let s;typeof n=="number"&&(s=a.originalPositionFor({column:o,line:n}));let u;Ni(i.source)?u=qn(i.source):u=new URL(i.source,this.map.consumer().sourceRoot||qn(this.map.mapFile));let l={column:i.column,endColumn:s&&s.column,endLine:s&&s.line,line:i.line,url:u.toString()};if(u.protocol==="file:")if(Fl)l.file=Fl(u);else throw new Error("file: protocol is not available in this PostCSS build");let c=a.sourceContentFor(i.source);return c&&(l.source=c),l}toJSON(){let e={};for(let r of["hasBOM","css","file","id"])this[r]!=null&&(e[r]=this[r]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};var fa=Oo;Oo.default=Oo;Ma&&Ma.registerInput&&Ma.registerInput(Oo);let Vf=or,Wf,Gf,jr=class extends Vf{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,r,n){let o=super.normalize(e);if(r){if(n==="prepend")this.nodes.length>1?r.raws.before=this.nodes[1].raws.before:delete r.raws.before;else if(this.first!==r)for(let a of o)a.raws.before=r.raws.before}return o}removeChild(e,r){let n=this.index(e);return!r&&n===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[n].raws.before),super.removeChild(e)}toResult(e={}){return new Wf(new Gf,this,e).stringify()}};jr.registerLazyResult=t=>{Wf=t};jr.registerProcessor=t=>{Gf=t};var Pn=jr;jr.default=jr;Vf.registerRoot(jr);let vn={comma(t){return vn.split(t,[","],!0)},space(t){let e=[" ",`
|
|
258
|
+
`," "];return vn.split(t,e)},split(t,e,r){let n=[],o="",a=!1,i=0,s=!1,u="",l=!1;for(let c of t)l?l=!1:c==="\\"?l=!0:s?c===u&&(s=!1):c==='"'||c==="'"?(s=!0,u=c):c==="("?i+=1:c===")"?i>0&&(i-=1):i===0&&e.includes(c)&&(a=!0),a?(o!==""&&n.push(o.trim()),o="",a=!1):o+=c;return(r||o!=="")&&n.push(o.trim()),n}};var Yf=vn;vn.default=vn;let Xf=or,F4=Yf,Po=class extends Xf{get selectors(){return F4.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 Bs=Po;Po.default=Po;Xf.registerRule(Po);let q4=Ls,U4=ca,V4=da,W4=fa,G4=Uf,Y4=Pn,X4=Bs;function yn(t,e){if(Array.isArray(t))return t.map(o=>yn(o));let{inputs:r,...n}=t;if(r){e=[];for(let o of r){let a={...o,__proto__:W4.prototype};a.map&&(a.map={...a.map,__proto__:G4.prototype}),e.push(a)}}if(n.nodes&&(n.nodes=t.nodes.map(o=>yn(o,e))),n.source){let{inputId:o,...a}=n.source;n.source=a,o!=null&&(n.source.input=e[o])}if(n.type==="root")return new Y4(n);if(n.type==="decl")return new V4(n);if(n.type==="rule")return new X4(n);if(n.type==="comment")return new U4(n);if(n.type==="atrule")return new q4(n);throw new Error("Unknown node type: "+t.type)}var K4=yn;yn.default=yn;let{dirname:ro,relative:Kf,resolve:Jf,sep:Zf}=Ue,{SourceMapConsumer:Qf,SourceMapGenerator:no}=Ue,{pathToFileURL:Wl}=Ue,J4=fa,Z4=!!(Qf&&no),Q4=!!(ro&&Jf&&Kf&&Zf),e8=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
|
+
`;this.css.includes(`\r
|
|
260
|
+
`)&&(r=`\r
|
|
261
|
+
`),this.css+=r+"/*# sourceMappingURL="+e+" */"}applyPrevMaps(){for(let e of this.previous()){let r=this.toUrl(this.path(e.file)),n=e.root||ro(e.file),o;this.mapOpts.sourcesContent===!1?(o=new Qf(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(),Q4&&Z4&&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:""},a,i;this.stringify(this.root,(s,u,l)=>{if(this.css+=s,u&&l!=="end"&&(o.generated.line=e,o.generated.column=r-1,u.source&&u.source.start?(o.source=this.sourcePath(u),o.original.line=u.source.start.line,o.original.column=u.source.start.column-1,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,this.map.addMapping(o))),i=s.match(/\n/g),i?(e+=i.length,a=s.lastIndexOf(`
|
|
262
|
+
`),r=s.length-a):r+=s.length,u&&l!=="start"){let c=u.parent||{raws:{}};(!(u.type==="decl"||u.type==="atrule"&&!u.nodes)||u!==c.last||c.raws.semicolon)&&(u.source&&u.source.end?(o.source=this.sourcePath(u),o.original.line=u.source.end.line,o.original.column=u.source.end.column-1,o.generated.line=e,o.generated.column=r-2,this.map.addMapping(o)):(o.source=n,o.original.line=1,o.original.column=0,o.generated.line=e,o.generated.column=r-1,this.map.addMapping(o)))}})}isAnnotation(){return this.isInline()?!0:typeof this.mapOpts.annotation<"u"?this.mapOpts.annotation:this.previous().length?this.previous().some(e=>e.annotation):!0}isInline(){if(typeof this.mapOpts.inline<"u")return this.mapOpts.inline;let e=this.mapOpts.annotation;return typeof e<"u"&&e!==!0?!1:this.previous().length?this.previous().some(r=>r.inline):!0}isMap(){return typeof this.opts.map<"u"?!!this.opts.map:this.previous().length>0}isSourcesContent(){return typeof this.mapOpts.sourcesContent<"u"?this.mapOpts.sourcesContent:this.previous().length?this.previous().some(e=>e.withContent()):!0}outputFile(){return this.opts.to?this.path(this.opts.to):this.opts.from?this.path(this.opts.from):"to.css"}path(e){if(this.mapOpts.absolute||e.charCodeAt(0)===60||/^\w+:\/\//.test(e))return e;let r=this.memoizedPaths.get(e);if(r)return r;let n=this.opts.to?ro(this.opts.to):".";typeof this.mapOpts.annotation=="string"&&(n=ro(Jf(n,this.mapOpts.annotation)));let o=Kf(n,e);return this.memoizedPaths.set(e,o),o}previous(){if(!this.previousMaps)if(this.previousMaps=[],this.root)this.root.walk(e=>{if(e.source&&e.source.input.map){let r=e.source.input.map;this.previousMaps.includes(r)||this.previousMaps.push(r)}});else{let e=new J4(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(Wl){let n=Wl(e).toString();return this.memoizedFileURLs.set(e,n),n}else throw new Error("`map.absolute` option is not available in this PostCSS build")}toUrl(e){let r=this.memoizedURLs.get(e);if(r)return r;Zf==="\\"&&(e=e.replace(/\\/g,"/"));let n=encodeURI(e).replace(/[#?]/g,encodeURIComponent);return this.memoizedURLs.set(e,n),n}};var e0=e8;const $a=39,Gl=34,Un=92,Yl=47,Vn=10,Kr=32,Wn=12,Gn=9,Yn=13,t8=91,r8=93,n8=40,o8=41,a8=123,i8=125,s8=59,u8=42,l8=58,c8=64,Xn=/[\t\n\f\r "#'()/;[\\\]{}]/g,Kn=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,d8=/.[\r\n"'(/\\]/,Xl=/[\da-f]/i;var f8=function(e,r={}){let n=e.css.valueOf(),o=r.ignoreErrors,a,i,s,u,l,c,h,f,d,b,g=n.length,m=0,y=[],x=[];function S(){return m}function E(D){throw e.error("Unclosed "+D,m)}function j(){return x.length===0&&m>=g}function P(D){if(x.length)return x.pop();if(m>=g)return;let L=D?D.ignoreUnclosed:!1;switch(a=n.charCodeAt(m),a){case Vn:case Kr:case Gn:case Yn:case Wn:{u=m;do u+=1,a=n.charCodeAt(u);while(a===Kr||a===Vn||a===Gn||a===Yn||a===Wn);c=["space",n.slice(m,u)],m=u-1;break}case t8:case r8:case a8:case i8:case l8:case s8:case o8:{let $=String.fromCharCode(a);c=[$,$,m];break}case n8:{if(b=y.length?y.pop()[1]:"",d=n.charCodeAt(m+1),b==="url"&&d!==$a&&d!==Gl&&d!==Kr&&d!==Vn&&d!==Gn&&d!==Wn&&d!==Yn){u=m;do{if(h=!1,u=n.indexOf(")",u+1),u===-1)if(o||L){u=m;break}else E("bracket");for(f=u;n.charCodeAt(f-1)===Un;)f-=1,h=!h}while(h);c=["brackets",n.slice(m,u+1),m,u],m=u}else u=n.indexOf(")",m+1),i=n.slice(m,u+1),u===-1||d8.test(i)?c=["(","(",m]:(c=["brackets",i,m,u],m=u);break}case $a:case Gl:{l=a===$a?"'":'"',u=m;do{if(h=!1,u=n.indexOf(l,u+1),u===-1)if(o||L){u=m+1;break}else E("string");for(f=u;n.charCodeAt(f-1)===Un;)f-=1,h=!h}while(h);c=["string",n.slice(m,u+1),m,u],m=u;break}case c8:{Xn.lastIndex=m+1,Xn.test(n),Xn.lastIndex===0?u=n.length-1:u=Xn.lastIndex-2,c=["at-word",n.slice(m,u+1),m,u],m=u;break}case Un:{for(u=m,s=!0;n.charCodeAt(u+1)===Un;)u+=1,s=!s;if(a=n.charCodeAt(u+1),s&&a!==Yl&&a!==Kr&&a!==Vn&&a!==Gn&&a!==Yn&&a!==Wn&&(u+=1,Xl.test(n.charAt(u)))){for(;Xl.test(n.charAt(u+1));)u+=1;n.charCodeAt(u+1)===Kr&&(u+=1)}c=["word",n.slice(m,u+1),m,u],m=u;break}default:{a===Yl&&n.charCodeAt(m+1)===u8?(u=n.indexOf("*/",m+2)+1,u===0&&(o||L?u=n.length:E("comment")),c=["comment",n.slice(m,u+1),m,u],m=u):(Kn.lastIndex=m+1,Kn.test(n),Kn.lastIndex===0?u=n.length-1:u=Kn.lastIndex-2,c=["word",n.slice(m,u+1),m,u],y.push(c),m=u);break}}return m++,c}function _(D){x.push(D)}return{back:_,endOfFile:j,nextToken:P,position:S}};let p8=Ls,h8=ca,m8=da,b8=Pn,Kl=Bs,g8=f8;const Jl={empty:!0,space:!0};function v8(t){for(let e=t.length-1;e>=0;e--){let r=t[e],n=r[3]||r[2];if(n)return n}}let y8=class{constructor(e){this.input=e,this.root=new b8,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 p8;r.name=e[1].slice(1),r.name===""&&this.unnamedAtrule(r,e),this.init(r,e[2]);let n,o,a,i=!1,s=!1,u=[],l=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),n=e[0],n==="("||n==="["?l.push(n==="("?")":"]"):n==="{"&&l.length>0?l.push("}"):n===l[l.length-1]&&l.pop(),l.length===0)if(n===";"){r.source.end=this.getPosition(e[2]),r.source.end.offset++,this.semicolon=!0;break}else if(n==="{"){s=!0;break}else if(n==="}"){if(u.length>0){for(a=u.length-1,o=u[a];o&&o[0]==="space";)o=u[--a];o&&(r.source.end=this.getPosition(o[3]||o[2]),r.source.end.offset++)}this.end(e);break}else u.push(e);else u.push(e);if(this.tokenizer.endOfFile()){i=!0;break}}r.raws.between=this.spacesAndCommentsFromEnd(u),u.length?(r.raws.afterName=this.spacesAndCommentsFromStart(u),this.raw(r,"params",u),i&&(e=u[u.length-1],r.source.end=this.getPosition(e[3]||e[2]),r.source.end.offset++,this.spaces=r.raws.between,r.raws.between="")):(r.raws.afterName="",r.params=""),s&&(r.nodes=[],this.current=r)}checkMissedSemicolon(e){let r=this.colon(e);if(r===!1)return;let n=0,o;for(let a=r-1;a>=0&&(o=e[a],!(o[0]!=="space"&&(n+=1,n===2)));a--);throw this.input.error("Missed semicolon",o[0]==="word"?o[3]+1:o[2])}colon(e){let r=0,n,o,a;for(let[i,s]of e.entries()){if(o=s,a=o[0],a==="("&&(r+=1),a===")"&&(r-=1),r===0&&a===":")if(!n)this.doubleColon(o);else{if(n[0]==="word"&&n[1]==="progid")continue;return i}n=o}return!1}comment(e){let r=new h8;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=g8(this.input)}decl(e,r){let n=new m8;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]||v8(e)),n.source.end.offset++;e[0][0]!=="word";)e.length===1&&this.unknownWord(e),n.raws.before+=e.shift()[1];for(n.source.start=this.getPosition(e[0][2]),n.prop="";e.length;){let l=e[0][0];if(l===":"||l==="space"||l==="comment")break;n.prop+=e.shift()[1]}n.raws.between="";let a;for(;e.length;)if(a=e.shift(),a[0]===":"){n.raws.between+=a[1];break}else a[0]==="word"&&/\w/.test(a[1])&&this.unknownWord([a]),n.raws.between+=a[1];(n.prop[0]==="_"||n.prop[0]==="*")&&(n.raws.before+=n.prop[0],n.prop=n.prop.slice(1));let i=[],s;for(;e.length&&(s=e[0][0],!(s!=="space"&&s!=="comment"));)i.push(e.shift());this.precheckMissedSemicolon(e);for(let l=e.length-1;l>=0;l--){if(a=e[l],a[1].toLowerCase()==="!important"){n.important=!0;let c=this.stringFrom(e,l);c=this.spacesFromEnd(e)+c,c!==" !important"&&(n.raws.important=c);break}else if(a[1].toLowerCase()==="important"){let c=e.slice(0),h="";for(let f=l;f>0;f--){let d=c[f][0];if(h.trim().startsWith("!")&&d!=="space")break;h=c.pop()[1]+h}h.trim().startsWith("!")&&(n.important=!0,n.raws.important=h,e=c)}if(a[0]!=="space"&&a[0]!=="comment")break}e.some(l=>l[0]!=="space"&&l[0]!=="comment")&&(n.raws.between+=i.map(l=>l[1]).join(""),i=[]),this.raw(n,"value",i.concat(e),r),n.value.includes(":")&&!r&&this.checkMissedSemicolon(e)}doubleColon(e){throw this.input.error("Double colon",{offset:e[2]},{offset:e[2]+e[1].length})}emptyRule(e){let r=new Kl;this.init(r,e[2]),r.selector="",r.raws.between="",this.current=r}end(e){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(e[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(e)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(e){if(this.spaces+=e[1],this.current.nodes){let r=this.current.nodes[this.current.nodes.length-1];r&&r.type==="rule"&&!r.raws.ownSemicolon&&(r.raws.ownSemicolon=this.spaces,this.spaces="",r.source.end=this.getPosition(e[2]),r.source.end.offset+=r.raws.ownSemicolon.length)}}getPosition(e){let r=this.input.fromOffset(e);return{column:r.col,line:r.line,offset:e}}init(e,r){this.current.push(e),e.source={input:this.input,start:this.getPosition(r)},e.raws.before=this.spaces,this.spaces="",e.type!=="comment"&&(this.semicolon=!1)}other(e){let r=!1,n=null,o=!1,a=null,i=[],s=e[1].startsWith("--"),u=[],l=e;for(;l;){if(n=l[0],u.push(l),n==="("||n==="[")a||(a=l),i.push(n==="("?")":"]");else if(s&&o&&n==="{")a||(a=l),i.push("}");else if(i.length===0)if(n===";")if(o){this.decl(u,s);return}else break;else if(n==="{"){this.rule(u);return}else if(n==="}"){this.tokenizer.back(u.pop()),r=!0;break}else n===":"&&(o=!0);else n===i[i.length-1]&&(i.pop(),i.length===0&&(a=null));l=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(r=!0),i.length>0&&this.unclosedBracket(a),r&&o){if(!s)for(;u.length&&(l=u[u.length-1][0],!(l!=="space"&&l!=="comment"));)this.tokenizer.back(u.pop());this.decl(u,s)}else this.unknownWord(u)}parse(){let e;for(;!this.tokenizer.endOfFile();)switch(e=this.tokenizer.nextToken(),e[0]){case"space":this.spaces+=e[1];break;case";":this.freeSemicolon(e);break;case"}":this.end(e);break;case"comment":this.comment(e);break;case"at-word":this.atrule(e);break;case"{":this.emptyRule(e);break;default:this.other(e);break}this.endFile()}precheckMissedSemicolon(){}raw(e,r,n,o){let a,i,s=n.length,u="",l=!0,c,h;for(let f=0;f<s;f+=1)a=n[f],i=a[0],i==="space"&&f===s-1&&!o?l=!1:i==="comment"?(h=n[f-1]?n[f-1][0]:"empty",c=n[f+1]?n[f+1][0]:"empty",!Jl[h]&&!Jl[c]?u.slice(-1)===","?l=!1:u+=a[1]:l=!1):u+=a[1];if(!l){let f=n.reduce((d,b)=>d+b[1],"");e.raws[r]={raw:f,value:u}}e[r]=u}rule(e){e.pop();let r=new Kl;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 x8=y8;let w8=or,S8=fa,C8=x8;function ko(t,e){let r=new S8(t,e),n=new C8(r);try{n.parse()}catch(o){throw process.env.NODE_ENV!=="production"&&o.name==="CssSyntaxError"&&e&&e.from&&(/\.scss$/i.test(e.from)?o.message+=`
|
|
263
|
+
You tried to parse SCSS with the standard CSS parser; try again with the postcss-scss parser`:/\.sass/i.test(e.from)?o.message+=`
|
|
264
|
+
You tried to parse Sass with the standard CSS parser; try again with the postcss-sass parser`:/\.less$/i.test(e.from)&&(o.message+=`
|
|
265
|
+
You tried to parse Less with the standard CSS parser; try again with the postcss-less parser`)),o}return n.root}var Hs=ko;ko.default=ko;w8.registerParse(ko);let Ai=class{constructor(e,r={}){if(this.type="warning",this.text=e,r.node&&r.node.source){let n=r.node.rangeBy(r);this.line=n.start.line,this.column=n.start.column,this.endLine=n.end.line,this.endColumn=n.end.column}for(let n in r)this[n]=r[n]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};var t0=Ai;Ai.default=Ai;let E8=t0,Oi=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 E8(e,r);return this.messages.push(n),n}warnings(){return this.messages.filter(e=>e.type==="warning")}};var zs=Oi;Oi.default=Oi;let Zl={};var r0=function(e){Zl[e]||(Zl[e]=!0,typeof console<"u"&&console.warn&&console.warn(e))};let T8=or,N8=$s,j8=e0,A8=Hs,Ql=zs,O8=Pn,P8=ua,{isClean:Ge,my:k8}=On,_8=r0;const R8={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},I8={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},D8={Once:!0,postcssPlugin:!0,prepare:!0},Ar=0;function Jr(t){return typeof t=="object"&&typeof t.then=="function"}function n0(t){let e=!1,r=R8[t.type];return t.type==="decl"?e=t.prop.toLowerCase():t.type==="atrule"&&(e=t.name.toLowerCase()),e&&t.append?[r,r+"-"+e,Ar,r+"Exit",r+"Exit-"+e]:e?[r,r+"-"+e,r+"Exit",r+"Exit-"+e]:t.append?[r,Ar,r+"Exit"]:[r,r+"Exit"]}function ec(t){let e;return t.type==="document"?e=["Document",Ar,"DocumentExit"]:t.type==="root"?e=["Root",Ar,"RootExit"]:e=n0(t),{eventIndex:0,events:e,iterator:0,node:t,visitorIndex:0,visitors:[]}}function Pi(t){return t[Ge]=!1,t.nodes&&t.nodes.forEach(e=>Pi(e)),t}let ki={},Or=class o0{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(e,r,n){this.stringified=!1,this.processed=!1;let o;if(typeof r=="object"&&r!==null&&(r.type==="root"||r.type==="document"))o=Pi(r);else if(r instanceof o0||r instanceof Ql)o=Pi(r.root),r.map&&(typeof n.map>"u"&&(n.map={}),n.map.inline||(n.map.inline=!1),n.map.prev=r.map);else{let a=A8;n.syntax&&(a=n.syntax.parse),n.parser&&(a=n.parser),a.parse&&(a=a.parse);try{o=a(r,n)}catch(i){this.processed=!0,this.error=i}o&&!o[k8]&&T8.rebuild(o)}this.result=new Ql(e,o,n),this.helpers={...ki,postcss:ki,result:this.result},this.plugins=this.processor.plugins.map(a=>typeof a=="object"&&a.prepare?{...a,...a.prepare(this.result)}:a)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(e,r){let n=this.result.lastPlugin;try{if(r&&r.addToError(e),this.error=e,e.name==="CssSyntaxError"&&!e.plugin)e.plugin=n.postcssPlugin,e.setMessage();else if(n.postcssVersion&&process.env.NODE_ENV!=="production"){let o=n.postcssPlugin,a=n.postcssVersion,i=this.result.processor.version,s=a.split("."),u=i.split(".");(s[0]!==u[0]||parseInt(s[1])>parseInt(u[1]))&&console.error("Unknown error from PostCSS plugin. Your current PostCSS version is "+i+", but "+o+" uses "+a+". Perhaps this is the source of the error below.")}}catch(o){console&&console.error&&console.error(o)}return e}prepareVisitors(){this.listeners={};let e=(r,n,o)=>{this.listeners[n]||(this.listeners[n]=[]),this.listeners[n].push([r,o])};for(let r of this.plugins)if(typeof r=="object")for(let n in r){if(!I8[n]&&/^[A-Z]/.test(n))throw new Error(`Unknown event ${n} in ${r.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!D8[n])if(typeof r[n]=="object")for(let o in r[n])o==="*"?e(r,n,r[n][o]):e(r,n+"-"+o.toLowerCase(),r[n][o]);else typeof r[n]=="function"&&e(r,n,r[n])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let e=0;e<this.plugins.length;e++){let r=this.plugins[e],n=this.runOnRoot(r);if(Jr(n))try{await n}catch(o){throw this.handleError(o)}}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ge];){e[Ge]=!0;let r=[ec(e)];for(;r.length>0;){let n=this.visitTick(r);if(Jr(n))try{await n}catch(o){let a=r[r.length-1].node;throw this.handleError(o,a)}}}if(this.listeners.OnceExit)for(let[r,n]of this.listeners.OnceExit){this.result.lastPlugin=r;try{if(e.type==="document"){let o=e.nodes.map(a=>n(a,this.helpers));await Promise.all(o)}else await n(e,this.helpers)}catch(o){throw this.handleError(o)}}}return this.processed=!0,this.stringify()}runOnRoot(e){this.result.lastPlugin=e;try{if(typeof e=="object"&&e.Once){if(this.result.root.type==="document"){let r=this.result.root.nodes.map(n=>e.Once(n,this.helpers));return Jr(r[0])?Promise.all(r):r}return e.Once(this.result.root,this.helpers)}else if(typeof e=="function")return e(this.result.root,this.result)}catch(r){throw this.handleError(r)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let e=this.result.opts,r=P8;e.syntax&&(r=e.syntax.stringify),e.stringifier&&(r=e.stringifier),r.stringify&&(r=r.stringify);let o=new j8(r,this.result.root,this.result.opts).generate();return this.result.css=o[0],this.result.map=o[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let e of this.plugins){let r=this.runOnRoot(e);if(Jr(r))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let e=this.result.root;for(;!e[Ge];)e[Ge]=!0,this.walkSync(e);if(this.listeners.OnceExit)if(e.type==="document")for(let r of e.nodes)this.visitSync(this.listeners.OnceExit,r);else this.visitSync(this.listeners.OnceExit,e)}return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this.opts||_8("Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.")),this.async().then(e,r)}toString(){return this.css}visitSync(e,r){for(let[n,o]of e){this.result.lastPlugin=n;let a;try{a=o(r,this.helpers)}catch(i){throw this.handleError(i,r.proxyOf)}if(r.type!=="root"&&r.type!=="document"&&!r.parent)return!0;if(Jr(a))throw this.getAsyncError()}}visitTick(e){let r=e[e.length-1],{node:n,visitors:o}=r;if(n.type!=="root"&&n.type!=="document"&&!n.parent){e.pop();return}if(o.length>0&&r.visitorIndex<o.length){let[i,s]=o[r.visitorIndex];r.visitorIndex+=1,r.visitorIndex===o.length&&(r.visitors=[],r.visitorIndex=0),this.result.lastPlugin=i;try{return s(n.toProxy(),this.helpers)}catch(u){throw this.handleError(u,n)}}if(r.iterator!==0){let i=r.iterator,s;for(;s=n.nodes[n.indexes[i]];)if(n.indexes[i]+=1,!s[Ge]){s[Ge]=!0,e.push(ec(s));return}r.iterator=0,delete n.indexes[i]}let a=r.events;for(;r.eventIndex<a.length;){let i=a[r.eventIndex];if(r.eventIndex+=1,i===Ar){n.nodes&&n.nodes.length&&(n[Ge]=!0,r.iterator=n.getIterator());return}else if(this.listeners[i]){r.visitors=this.listeners[i];return}}e.pop()}walkSync(e){e[Ge]=!0;let r=n0(e);for(let n of r)if(n===Ar)e.nodes&&e.each(o=>{o[Ge]||this.walkSync(o)});else{let o=this.listeners[n];if(o&&this.visitSync(o,e.toProxy()))return}}warnings(){return this.sync().warnings()}};Or.registerPostcss=t=>{ki=t};var a0=Or;Or.default=Or;O8.registerLazyResult(Or);N8.registerLazyResult(Or);let M8=e0,L8=Hs;const $8=zs;let B8=ua,H8=r0,_i=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=L8;try{e=r(this._css,this._opts)}catch(n){this.error=n}if(this.error)throw this.error;return this._root=e,e}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(e,r,n){r=r.toString(),this.stringified=!1,this._processor=e,this._css=r,this._opts=n,this._map=void 0;let o,a=B8;this.result=new $8(this._processor,o,this._opts),this.result.css=r;let i=this;Object.defineProperty(this.result,"root",{get(){return i.root}});let s=new M8(a,o,this._opts,r);if(s.isMap()){let[u,l]=s.generate();u&&(this.result.css=u),l&&(this.result.map=l)}else s.clearAnnotation(),this.result.css=s.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(e){return this.async().catch(e)}finally(e){return this.async().then(e,e)}sync(){if(this.error)throw this.error;return this.result}then(e,r){return process.env.NODE_ENV!=="production"&&("from"in this._opts||H8("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 z8=_i;_i.default=_i;let F8=$s,q8=a0,U8=z8,V8=Pn,xn=class{constructor(e=[]){this.version="8.5.6",this.plugins=this.normalize(e)}normalize(e){let r=[];for(let n of e)if(n.postcss===!0?n=n():n.postcss&&(n=n.postcss),typeof n=="object"&&Array.isArray(n.plugins))r=r.concat(n.plugins);else if(typeof n=="object"&&n.postcssPlugin)r.push(n);else if(typeof n=="function")r.push(n);else if(typeof n=="object"&&(n.parse||n.stringify)){if(process.env.NODE_ENV!=="production")throw new Error("PostCSS syntaxes cannot be used as plugins. Instead, please use one of the syntax/parser/stringifier options as outlined in your PostCSS runner documentation.")}else throw new Error(n+" is not a PostCSS plugin");return r}process(e,r={}){return!this.plugins.length&&!r.parser&&!r.stringifier&&!r.syntax?new U8(this,e,r):new q8(this,e,r)}use(e){return this.plugins=this.plugins.concat(this.normalize([e])),this}};var W8=xn;xn.default=xn;V8.registerProcessor(xn);F8.registerProcessor(xn);let i0=Ls,s0=ca,G8=or,Y8=Is,u0=da,l0=$s,X8=K4,K8=fa,J8=a0,Z8=Yf,Q8=la,e5=Hs,Fs=W8,t5=zs,c0=Pn,d0=Bs,r5=ua,n5=t0;function ee(...t){return t.length===1&&Array.isArray(t[0])&&(t=t[0]),new Fs(t)}ee.plugin=function(e,r){let n=!1;function o(...i){console&&console.warn&&!n&&(n=!0,console.warn(e+`: postcss.plugin was deprecated. Migration guide:
|
|
266
|
+
https://evilmartians.com/chronicles/postcss-8-plugin-migration`),process.env.LANG&&process.env.LANG.startsWith("cn")&&console.warn(e+`: 里面 postcss.plugin 被弃用. 迁移指南:
|
|
267
|
+
https://www.w3ctech.com/topic/2226`));let s=r(...i);return s.postcssPlugin=e,s.postcssVersion=new Fs().version,s}let a;return Object.defineProperty(o,"postcss",{get(){return a||(a=o()),a}}),o.process=function(i,s,u){return ee([o(u)]).process(i,s)},o};ee.stringify=r5;ee.parse=e5;ee.fromJSON=X8;ee.list=Z8;ee.comment=t=>new s0(t);ee.atRule=t=>new i0(t);ee.decl=t=>new u0(t);ee.rule=t=>new d0(t);ee.root=t=>new c0(t);ee.document=t=>new l0(t);ee.CssSyntaxError=Y8;ee.Declaration=u0;ee.Container=G8;ee.Processor=Fs;ee.Document=l0;ee.Comment=s0;ee.Warning=n5;ee.AtRule=i0;ee.Result=t5;ee.Input=K8;ee.Rule=d0;ee.Root=c0;ee.Node=Q8;J8.registerPostcss(ee);var o5=ee;ee.default=ee;const a5=ef,tc=e4,{isPlainObject:i5}=_s,rc=m4,s5=b4,{parse:u5}=o5,l5=["img","audio","video","picture","svg","object","map","iframe","embed"],c5=["script","style"];function pr(t,e){t&&Object.keys(t).forEach(function(r){e(t[r],r)})}function ct(t,e){return{}.hasOwnProperty.call(t,e)}function nc(t,e){const r=[];return pr(t,function(n){e(n)&&r.push(n)}),r}function d5(t){for(const e in t)if(ct(t,e))return!1;return!0}function f5(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 p5=wn;const h5=/^[^\0\t\n\f\r /<=>]+$/;function wn(t,e,r){if(t==null)return"";typeof t=="number"&&(t=t.toString());let n="",o="";function a(T,O){const A=this;this.tag=T,this.attribs=O||{},this.tagPosition=n.length,this.text="",this.openingTagLength=0,this.mediaChildren=[],this.updateParentNodeText=function(){if(m.length){const R=m[m.length-1];R.text+=A.text}},this.updateParentNodeMediaChildren=function(){m.length&&l5.includes(this.tag)&&m[m.length-1].mediaChildren.push(this.tag)}}e=Object.assign({},wn.defaults,e),e.parser=Object.assign({},m5,e.parser);const i=function(T){return e.allowedTags===!1||(e.allowedTags||[]).indexOf(T)>-1};c5.forEach(function(T){i(T)&&!e.allowVulnerableTags&&console.warn(`
|
|
268
|
+
|
|
269
|
+
⚠️ Your \`allowedTags\` option includes, \`${T}\`, which is inherently
|
|
270
|
+
vulnerable to XSS attacks. Please remove it from \`allowedTags\`.
|
|
271
|
+
Or, to disable this warning, add the \`allowVulnerableTags\` option
|
|
272
|
+
and ensure you are accounting for this risk.
|
|
273
|
+
|
|
274
|
+
`)});const s=e.nonTextTags||["script","style","textarea","option"];let u,l;e.allowedAttributes&&(u={},l={},pr(e.allowedAttributes,function(T,O){u[O]=[];const A=[];T.forEach(function(R){typeof R=="string"&&R.indexOf("*")>=0?A.push(tc(R).replace(/\\\*/g,".*")):u[O].push(R)}),A.length&&(l[O]=new RegExp("^("+A.join("|")+")$"))}));const c={},h={},f={};pr(e.allowedClasses,function(T,O){if(u&&(ct(u,O)||(u[O]=[]),u[O].push("class")),c[O]=T,Array.isArray(T)){const A=[];c[O]=[],f[O]=[],T.forEach(function(R){typeof R=="string"&&R.indexOf("*")>=0?A.push(tc(R).replace(/\\\*/g,".*")):R instanceof RegExp?f[O].push(R):c[O].push(R)}),A.length&&(h[O]=new RegExp("^("+A.join("|")+")$"))}});const d={};let b;pr(e.transformTags,function(T,O){let A;typeof T=="function"?A=T:typeof T=="string"&&(A=wn.simpleTransform(T)),O==="*"?b=A:d[O]=A});let g,m,y,x,S,E,j=!1;_();const P=new a5.Parser({onopentag:function(T,O){if(e.onOpenTag&&e.onOpenTag(T,O),e.enforceHtmlBoundary&&T==="html"&&_(),S){E++;return}const A=new a(T,O);m.push(A);let R=!1;const M=!!A.text;let q;if(ct(d,T)&&(q=d[T](T,O),A.attribs=O=q.attribs,q.text!==void 0&&(A.innerText=q.text),T!==q.tagName&&(A.name=T=q.tagName,x[g]=q.tagName)),b&&(q=b(T,O),A.attribs=O=q.attribs,T!==q.tagName&&(A.name=T=q.tagName,x[g]=q.tagName)),(!i(T)||e.disallowedTagsMode==="recursiveEscape"&&!d5(y)||e.nestingLimit!=null&&g>=e.nestingLimit)&&(R=!0,y[g]=!0,(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&s.indexOf(T)!==-1&&(S=!0,E=1)),g++,R){if(e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){if(A.innerText&&!M){const B=D(A.innerText);e.textFilter?n+=e.textFilter(B,T):n+=B,j=!0}return}o=n,n=""}n+="<"+T,T==="script"&&(e.allowedScriptHostnames||e.allowedScriptDomains)&&(A.innerText=""),R&&(e.disallowedTagsMode==="escape"||e.disallowedTagsMode==="recursiveEscape")&&e.preserveEscapedAttributes?pr(O,function(B,H){n+=" "+H+'="'+D(B||"",!0)+'"'}):(!u||ct(u,T)||u["*"])&&pr(O,function(B,H){if(!h5.test(H)){delete A.attribs[H];return}if(B===""&&!e.allowedEmptyAttributes.includes(H)&&(e.nonBooleanAttributes.includes(H)||e.nonBooleanAttributes.includes("*"))){delete A.attribs[H];return}let he=!1;if(!u||ct(u,T)&&u[T].indexOf(H)!==-1||u["*"]&&u["*"].indexOf(H)!==-1||ct(l,T)&&l[T].test(H)||l["*"]&&l["*"].test(H))he=!0;else if(u&&u[T]){for(const X of u[T])if(i5(X)&&X.name&&X.name===H){he=!0;let z="";if(X.multiple===!0){const Ee=B.split(" ");for(const ye of Ee)X.values.indexOf(ye)!==-1&&(z===""?z=ye:z+=" "+ye)}else X.values.indexOf(B)>=0&&(z=B);B=z}}if(he){if(e.allowedSchemesAppliedToAttributes.indexOf(H)!==-1&&L(T,B)){delete A.attribs[H];return}if(T==="script"&&H==="src"){let X=!0;try{const z=$(B);if(e.allowedScriptHostnames||e.allowedScriptDomains){const Ee=(e.allowedScriptHostnames||[]).find(function(be){return be===z.url.hostname}),ye=(e.allowedScriptDomains||[]).find(function(be){return z.url.hostname===be||z.url.hostname.endsWith(`.${be}`)});X=Ee||ye}}catch{X=!1}if(!X){delete A.attribs[H];return}}if(T==="iframe"&&H==="src"){let X=!0;try{const z=$(B);if(z.isRelativeUrl)X=ct(e,"allowIframeRelativeUrls")?e.allowIframeRelativeUrls:!e.allowedIframeHostnames&&!e.allowedIframeDomains;else if(e.allowedIframeHostnames||e.allowedIframeDomains){const Ee=(e.allowedIframeHostnames||[]).find(function(be){return be===z.url.hostname}),ye=(e.allowedIframeDomains||[]).find(function(be){return z.url.hostname===be||z.url.hostname.endsWith(`.${be}`)});X=Ee||ye}}catch{X=!1}if(!X){delete A.attribs[H];return}}if(H==="srcset")try{let X=s5(B);if(X.forEach(function(z){L("srcset",z.url)&&(z.evil=!0)}),X=nc(X,function(z){return!z.evil}),X.length)B=f5(nc(X,function(z){return!z.evil})),A.attribs[H]=B;else{delete A.attribs[H];return}}catch{delete A.attribs[H];return}if(H==="class"){const X=c[T],z=c["*"],Ee=h[T],ye=f[T],be=f["*"],Ve=h["*"],it=[Ee,Ve].concat(ye,be).filter(function(We){return We});if(X&&z?B=I(B,rc(X,z),it):B=I(B,X||z,it),!B.length){delete A.attribs[H];return}}if(H==="style"){if(e.parseStyleAttributes)try{const X=u5(T+" {"+B+"}",{map:!1}),z=C(X,e.allowedStyles);if(B=N(z),B.length===0){delete A.attribs[H];return}}catch{typeof window<"u"&&console.warn('Failed to parse "'+T+" {"+B+`}", If you're running this in a browser, we recommend to disable style parsing: options.parseStyleAttributes: false, since this only works in a node environment due to a postcss dependency, More info: https://github.com/apostrophecms/sanitize-html/issues/547`),delete A.attribs[H];return}else if(e.allowedStyles)throw new Error("allowedStyles option cannot be used together with parseStyleAttributes: false.")}n+=" "+H,B&&B.length?n+='="'+D(B,!0)+'"':e.allowedEmptyAttributes.includes(H)&&(n+='=""')}else delete A.attribs[H]}),e.selfClosing.indexOf(T)!==-1?n+=" />":(n+=">",A.innerText&&!M&&!e.textFilter&&(n+=D(A.innerText),j=!0)),R&&(n=o+D(n),o=""),A.openingTagLength=n.length-A.tagPosition},ontext:function(T){if(S)return;const O=m[m.length-1];let A;if(O&&(A=O.tag,T=O.innerText!==void 0?O.innerText:T),e.disallowedTagsMode==="completelyDiscard"&&!i(A))T="";else if((e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard")&&(A==="script"||A==="style"))n+=T;else if(!j){const R=D(T,!1);e.textFilter?n+=e.textFilter(R,A):n+=R}if(m.length){const R=m[m.length-1];R.text+=T}},onclosetag:function(T,O){if(e.onCloseTag&&e.onCloseTag(T,O),S)if(E--,!E)S=!1;else return;const A=m.pop();if(!A)return;if(A.tag!==T){m.push(A);return}S=e.enforceHtmlBoundary?T==="html":!1,g--;const R=y[g];if(R){if(delete y[g],e.disallowedTagsMode==="discard"||e.disallowedTagsMode==="completelyDiscard"){A.updateParentNodeText();return}o=n,n=""}if(x[g]&&(T=x[g],delete x[g]),e.exclusiveFilter){const M=e.exclusiveFilter(A);if(M==="excludeTag"){R&&(n=o,o=""),n=n.substring(0,A.tagPosition)+n.substring(A.tagPosition+A.openingTagLength);return}else if(M){n=n.substring(0,A.tagPosition);return}}if(A.updateParentNodeMediaChildren(),A.updateParentNodeText(),e.selfClosing.indexOf(T)!==-1||O&&!i(T)&&["escape","recursiveEscape"].indexOf(e.disallowedTagsMode)>=0){R&&(n=o,o="");return}n+="</"+T+">",R&&(n=o+D(n),o=""),j=!1}},e.parser);return P.write(t),P.end(),n;function _(){n="",g=0,m=[],y={},x={},S=!1,E=0}function D(T,O){return typeof T!="string"&&(T=T+""),e.parser.decodeEntities&&(T=T.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(T=T.replace(/"/g,"""))),T=T.replace(/&(?![a-zA-Z0-9#]{1,20};)/g,"&").replace(/</g,"<").replace(/>/g,">"),O&&(T=T.replace(/"/g,""")),T}function L(T,O){for(O=O.replace(/[\x00-\x20]+/g,"");;){const M=O.indexOf("<!--");if(M===-1)break;const q=O.indexOf("-->",M+4);if(q===-1)break;O=O.substring(0,M)+O.substring(q+3)}const A=O.match(/^([a-zA-Z][a-zA-Z0-9.\-+]*):/);if(!A)return O.match(/^[/\\]{2}/)?!e.allowProtocolRelative:!1;const R=A[1].toLowerCase();return ct(e.allowedSchemesByTag,T)?e.allowedSchemesByTag[T].indexOf(R)===-1:!e.allowedSchemes||e.allowedSchemes.indexOf(R)===-1}function $(T){if(T=T.replace(/^(\w+:)?\s*[\\/]\s*[\\/]/,"$1//"),T.startsWith("relative:"))throw new Error("relative: exploit attempt");let O="relative://relative-site";for(let M=0;M<100;M++)O+=`/${M}`;const A=new URL(T,O);return{isRelativeUrl:A&&A.hostname==="relative-site"&&A.protocol==="relative:",url:A}}function C(T,O){if(!O)return T;const A=T.nodes[0];let R;return O[A.selector]&&O["*"]?R=rc(O[A.selector],O["*"]):R=O[A.selector]||O["*"],R&&(T.nodes[0].nodes=A.nodes.reduce(k(R),[])),T}function N(T){return T.nodes[0].nodes.reduce(function(O,A){return O.push(`${A.prop}:${A.value}${A.important?" !important":""}`),O},[]).join(";")}function k(T){return function(O,A){return ct(T,A.prop)&&T[A.prop].some(function(M){return M.test(A.value)})&&O.push(A),O}}function I(T,O,A){return O?(T=T.split(/\s+/),T.filter(function(R){return O.indexOf(R)!==-1||A.some(function(M){return M.test(R)})}).join(" ")):T}}const m5={decodeEntities:!0};wn.defaults={allowedTags:["address","article","aside","footer","header","h1","h2","h3","h4","h5","h6","hgroup","main","nav","section","blockquote","dd","div","dl","dt","figcaption","figure","hr","li","menu","ol","p","pre","ul","a","abbr","b","bdi","bdo","br","cite","code","data","dfn","em","i","kbd","mark","q","rb","rp","rt","rtc","ruby","s","samp","small","span","strong","sub","sup","time","u","var","wbr","caption","col","colgroup","table","tbody","td","tfoot","th","thead","tr"],nonBooleanAttributes:["abbr","accept","accept-charset","accesskey","action","allow","alt","as","autocapitalize","autocomplete","blocking","charset","cite","class","color","cols","colspan","content","contenteditable","coords","crossorigin","data","datetime","decoding","dir","dirname","download","draggable","enctype","enterkeyhint","fetchpriority","for","form","formaction","formenctype","formmethod","formtarget","headers","height","hidden","high","href","hreflang","http-equiv","id","imagesizes","imagesrcset","inputmode","integrity","is","itemid","itemprop","itemref","itemtype","kind","label","lang","list","loading","low","max","maxlength","media","method","min","minlength","name","nonce","optimum","pattern","ping","placeholder","popover","popovertarget","popovertargetaction","poster","preload","referrerpolicy","rel","rows","rowspan","sandbox","scope","shape","size","sizes","slot","span","spellcheck","src","srcdoc","srclang","srcset","start","step","style","tabindex","target","title","translate","type","usemap","value","width","wrap","onauxclick","onafterprint","onbeforematch","onbeforeprint","onbeforeunload","onbeforetoggle","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextlost","oncontextmenu","oncontextrestored","oncopy","oncuechange","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","onhashchange","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onlanguagechange","onload","onloadeddata","onloadedmetadata","onloadstart","onmessage","onmessageerror","onmousedown","onmouseenter","onmouseleave","onmousemove","onmouseout","onmouseover","onmouseup","onoffline","ononline","onpagehide","onpageshow","onpaste","onpause","onplay","onplaying","onpopstate","onprogress","onratechange","onreset","onresize","onrejectionhandled","onscroll","onscrollend","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onstorage","onsubmit","onsuspend","ontimeupdate","ontoggle","onunhandledrejection","onunload","onvolumechange","onwaiting","onwheel"],disallowedTagsMode:"discard",allowedAttributes:{a:["href","name","target"],img:["src","srcset","alt","title","width","height","loading"]},allowedEmptyAttributes:["alt"],selfClosing:["img","br","hr","area","base","basefont","input","link","meta"],allowedSchemes:["http","https","ftp","mailto","tel"],allowedSchemesByTag:{},allowedSchemesAppliedToAttributes:["href","src","cite"],allowProtocolRelative:!0,enforceHtmlBoundary:!1,parseStyleAttributes:!0,preserveEscapedAttributes:!1};wn.simpleTransform=function(t,e,r){return r=r===void 0?!0:r,e=e||{},function(n,o){let a;if(r)for(a in e)o[a]=e[a];else o=e;return{tagName:t,attribs:o}}};const f0=Bo(p5),b5=[{command:"bold",icon:nh,label:"Bold"},{command:"italic",icon:ch,label:"Italic"},{command:"underline",icon:yh,label:"Underline"},{command:"strikeThrough",icon:gh,label:"Strikethrough"},{command:"insertUnorderedList",icon:fh,label:"Bullet List"},{command:"insertOrderedList",icon:dh,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$/]}}},v5=({label:t,value:e,onChange:r})=>{const n=w.useRef(null),[o,a]=w.useState(!1),[i,s]=w.useState(""),u=w.useRef(null);w.useEffect(()=>{n.current&&n.current.innerHTML!==e&&(n.current.innerHTML=e||"")},[]);const l=m=>{var y;document.execCommand(m,!1,null),(y=n.current)==null||y.focus(),c()},c=()=>{if(n.current){const m=n.current.innerHTML,y=f0(m,g5);r(y)}},h=()=>{const m=window.getSelection();m&&m.rangeCount>0&&(u.current=m.getRangeAt(0))},f=()=>{if(u.current){const m=window.getSelection();m==null||m.removeAllRanges(),m==null||m.addRange(u.current)}},d=()=>{h(),a(!0)},b=()=>{var m;if(i){f();let y=i.trim();y&&!y.match(/^https?:\/\//i)&&(y="https://"+y);try{new URL(y),document.execCommand("createLink",!1,y),c()}catch{}}a(!1),s(""),(m=n.current)==null||m.focus()},g=m=>{try{return document.queryCommandState(m)}catch{return!1}};return p.jsxs("div",{className:"space-y-1.5",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:t}),p.jsx("div",{className:"flex items-center gap-0.5 p-1 bg-muted rounded-t border border-input border-b-0",children:p.jsxs(pn,{children:[b5.map(({command:m,icon:y,label:x})=>p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:S=>{S.preventDefault(),l(m)},className:`p-1.5 rounded hover:bg-background transition-colors ${g(m)?"bg-background text-primary":"text-muted-foreground"}`,children:p.jsx(y,{className:"h-3.5 w-3.5"})})}),p.jsx(Xt,{side:"top",children:p.jsx("p",{children:x})})]},m)),p.jsx("div",{className:"w-px h-4 bg-border mx-1"}),p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx("button",{type:"button",onMouseDown:m=>{m.preventDefault(),d()},className:"p-1.5 rounded hover:bg-background transition-colors text-muted-foreground",children:p.jsx(qi,{className:"h-3.5 w-3.5"})})}),p.jsx(Xt,{side:"top",children:p.jsx("p",{children:"Insert Link"})})]})]})}),p.jsx("div",{ref:n,contentEditable:!0,onInput:c,onBlur:c,className:"min-h-[80px] max-h-[200px] overflow-y-auto p-2 text-xs rounded-b border border-input bg-background focus:outline-none focus:ring-1 focus:ring-ring prose prose-sm max-w-none [&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline",style:{wordBreak:"break-word"}}),o&&p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50",children:p.jsxs("div",{className:"bg-background p-4 rounded-lg shadow-lg w-80 space-y-3",children:[p.jsx("h4",{className:"text-sm font-medium",children:"Insert Link"}),p.jsx("input",{type:"url",value:i,onChange:m=>s(m.target.value),placeholder:"https://example.com",className:"w-full px-3 py-2 text-sm rounded border border-input bg-background",autoFocus:!0,onKeyDown:m=>{m.key==="Enter"&&(m.preventDefault(),b()),m.key==="Escape"&&(a(!1),s(""))}}),p.jsxs("div",{className:"flex justify-end gap-2",children:[p.jsx("button",{onClick:()=>{a(!1),s("")},className:"px-3 py-1.5 text-xs rounded border border-input hover:bg-muted",children:"Cancel"}),p.jsx("button",{onClick:b,className:"px-3 py-1.5 text-xs rounded bg-primary text-primary-foreground hover:bg-primary/90",children:"Insert"})]})]})})]})},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$/]}}},qs=({text:t="",html:e,fontSize:r={desktop:16},fontWeight:n="400",fontFamily:o="inherit",lineHeight:a={desktop:150},letterSpacing:i={desktop:0},textAlign:s="left",color:u="#000000",margin:l={top:0,right:0,bottom:0,left:0},textDecoration:c="none",textTransform:h="none",opacity:f=100})=>{const d=er(),b=Sn(),{connectors:{connect:g,drag:m},isActive:y}=ne(D=>({isActive:D.events.selected})),x=Co(t,b),S=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`,E=ht(r,d,16),j=ht(a,d,150)/100,P=ht(i,d,0),_=/<[^>]+>/.test(x);return p.jsx("div",{ref:D=>D&&g(m(D)),className:`cursor-move ${y?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${E}px`,fontWeight:n,fontFamily:o,lineHeight:j,letterSpacing:`${P}px`,textAlign:s,color:u,margin:S,textDecoration:c,textTransform:h,opacity:f/100},children:e||_?p.jsx("div",{dangerouslySetInnerHTML:{__html:f0(Co(e||x,b),y5)},className:"[&_ul]:list-disc [&_ul]:pl-4 [&_ol]:list-decimal [&_ol]:pl-4 [&_a]:text-primary [&_a]:underline"}):p.jsx("p",{children:x})})},x5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"&&!("desktop"in e.margin)?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsx(V,{title:"Content",defaultOpen:!0,children:p.jsx(v5,{label:"Text",value:e.html??e.text,onChange:n=>t(o=>{o.html=null,o.text=n})})}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:e.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"Menlo, monospace",label:"Mono"},{value:"system-ui",label:"System"}],onChange:n=>t(o=>o.fontFamily=n)}),p.jsx(wo,{label:"Size",values:e.fontSize,onChange:n=>t(o=>o.fontSize=n),min:8,max:120,defaultValue:16}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"300",label:"Light"},{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(So,{label:"Line Height",values:e.lineHeight,onChange:n=>t(o=>o.lineHeight=n),min:80,max:250,unit:"%",defaultValue:150}),p.jsx(wo,{label:"Letter Spacing",values:e.letterSpacing,onChange:n=>t(o=>o.letterSpacing=n),min:-5,max:20,defaultValue:0}),p.jsx(gt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx($i,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Li,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Bi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)}),p.jsx(J,{label:"Transform",value:e.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:n=>t(o=>o.textTransform=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"none",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"},{value:"line-through",label:"Strikethrough"}],onChange:n=>t(o=>o.textDecoration=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Je,{label:"Text Color",value:e.color||"#000000",onChange:n=>t(o=>o.color=n)}),p.jsx(So,{label:"Opacity",values:e.opacity,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Qd,{})})]})};qs.craft={displayName:"Text",props:{text:"Edit me",fontSize:{desktop:16},fontWeight:"400",fontFamily:"inherit",lineHeight:{desktop:150},letterSpacing:{desktop:0},textAlign:"left",color:"#000000",margin:{top:0,right:0,bottom:0,left:0},textDecoration:"none",textTransform:"none",opacity:{desktop:100}},related:{settings:x5}};const on={1:{desktop:48,small:42,tablet:36,mobile:28},2:{desktop:36,small:32,tablet:28,mobile:24},3:{desktop:28,small:26,tablet:24,mobile:20},4:{desktop:22,small:20,tablet:18,mobile:16}},Us=({text:t="Heading",level:e=2,textAlign:r="left",color:n="#000000",fontWeight:o="700",fontFamily:a="inherit",fontSize:i="auto",lineHeight:s={desktop:120},letterSpacing:u={desktop:-.5},margin:l={top:0,right:0,bottom:16,left:0},textTransform:c="none",opacity:h={desktop:100}})=>{var D,L,$;const f=er(),d=Sn(),{connectors:{connect:b,drag:g},isActive:m}=ne(C=>({isActive:C.events.selected})),y=Co(t,d),x=`h${e}`;let S;i==="auto"?S=((D=on[e])==null?void 0:D[f])||((L=on[e])==null?void 0:L.desktop)||36:S=ht(i,f,(($=on[e])==null?void 0:$.desktop)||36);const E=ht(s,f,120)/100,j=ht(u,f,-.5),P=ht(h,f,100),_=typeof l=="object"&&!("desktop"in l)?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx(x,{ref:C=>C&&b(g(C)),className:`cursor-move ${m?"ring-2 ring-primary ring-offset-2":""}`,style:{textAlign:r,color:n,fontWeight:o,fontFamily:a,fontSize:`${S}px`,lineHeight:E,letterSpacing:`${j}px`,margin:_,textTransform:c,opacity:P/100},children:y})},w5=()=>{var a;const t=er(),{actions:{setProp:e},props:r}=ne(i=>({props:i.data.props})),n=typeof r.margin=="object"&&!("desktop"in r.margin)?r.margin:{top:0,right:0,bottom:16,left:0},o=()=>{var i;return r.fontSize==="auto"?((i=on[r.level||2])==null?void 0:i[t])||36:ht(r.fontSize,t,36)};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx(Mt,{label:"Text",value:r.text,onChange:i=>e(s=>s.text=i)}),p.jsx(gt,{label:"Level",value:r.level||2,options:[{value:1,label:"H1"},{value:2,label:"H2"},{value:3,label:"H3"},{value:4,label:"H4"}],onChange:i=>e(s=>{s.level=i,s.fontSize})})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(J,{label:"Font",value:r.fontFamily||"inherit",options:[{value:"inherit",label:"Default"},{value:"Inter, sans-serif",label:"Inter"},{value:"Georgia, serif",label:"Georgia"},{value:"system-ui",label:"System"}],onChange:i=>e(s=>s.fontFamily=i)}),p.jsxs("div",{className:"space-y-1.5",children:[p.jsxs("div",{className:"flex items-center justify-between",children:[p.jsx("label",{className:"text-xs text-muted-foreground",children:"Size Mode"}),p.jsx("button",{onClick:()=>e(i=>i.fontSize=i.fontSize==="auto"?{desktop:o()}:"auto"),className:`text-xs px-2 py-0.5 rounded ${r.fontSize==="auto"?"bg-primary/10 text-primary":"text-muted-foreground"}`,children:r.fontSize==="auto"?"Auto (Responsive)":"Custom"})]}),r.fontSize!=="auto"&&p.jsx(wo,{label:"Size",values:r.fontSize,onChange:i=>e(s=>s.fontSize=i),min:12,max:120,defaultValue:((a=on[r.level||2])==null?void 0:a.desktop)||36})]}),p.jsx(J,{label:"Weight",value:r.fontWeight||"700",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"},{value:"800",label:"Extra Bold"},{value:"900",label:"Black"}],onChange:i=>e(s=>s.fontWeight=i)}),p.jsx(So,{label:"Line Height",values:r.lineHeight,onChange:i=>e(s=>s.lineHeight=i),min:80,max:200,unit:"%",defaultValue:120}),p.jsx(wo,{label:"Letter Spacing",values:r.letterSpacing,onChange:i=>e(s=>s.letterSpacing=i),min:-5,max:20,defaultValue:-.5}),p.jsx(gt,{label:"Alignment",value:r.textAlign||"left",options:[{value:"left",label:p.jsx($i,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Li,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Bi,{className:"h-3 w-3"})}],onChange:i=>e(s=>s.textAlign=i)}),p.jsx(J,{label:"Transform",value:r.textTransform||"none",options:[{value:"none",label:"None"},{value:"uppercase",label:"UPPERCASE"},{value:"lowercase",label:"lowercase"},{value:"capitalize",label:"Capitalize"}],onChange:i=>e(s=>s.textTransform=i)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Je,{label:"Text Color",value:r.color||"#000000",onChange:i=>e(s=>s.color=i)}),p.jsx(So,{label:"Opacity",values:r.opacity,onChange:i=>e(s=>s.opacity=i),min:0,max:100,unit:"%",defaultValue:100})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(De,{label:"Margin",values:n,onChange:i=>e(s=>s.margin=i)})}),p.jsx(V,{title:"Dynamic Data",defaultOpen:!1,children:p.jsx(Qd,{})})]})};Us.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:w5}};const Vs=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const{connectors:{connect:c,drag:h},isActive:f}=ne(b=>({isActive:b.events.selected})),d=typeof s=="object"?`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`:`${s}px`;return p.jsx("img",{ref:b=>b&&c(h(b)),src:t,alt:e,className:`cursor-move ${f?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:d,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},S5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Source",defaultOpen:!0,children:[p.jsx(Mt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Mt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(pe,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(pe,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(na,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})})]})};Vs.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:S5}};const Ws=({color:t="#e5e5e5",height:e=1,width:r="full",style:n="solid",margin:o={top:16,right:0,bottom:16,left:0},opacity:a=100})=>{const{connectors:{connect:i,drag:s},isActive:u}=ne(c=>({isActive:c.events.selected})),l=typeof o=="object"?`${o.top}px ${o.right}px ${o.bottom}px ${o.left}px`:`${o}px`;return p.jsx("hr",{ref:c=>c&&i(s(c)),className:`cursor-move border-0 ${u?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":`${r}%`,height:`${e}px`,backgroundColor:t,margin:l,opacity:a/100,borderStyle:n,borderWidth:n==="solid"?0:`${e}px`,borderColor:t}})},C5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:16,right:0,bottom:16,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Style",defaultOpen:!0,children:[p.jsx(J,{label:"Style",value:e.style||"solid",options:[{value:"solid",label:"Solid"},{value:"dashed",label:"Dashed"},{value:"dotted",label:"Dotted"}],onChange:n=>t(o=>o.style=n)}),p.jsx(Je,{label:"Color",value:e.color||"#e5e5e5",onChange:n=>t(o=>o.color=n)}),p.jsx(pe,{unit:"px",label:"Thickness",value:e.height||1,onChange:n=>t(o=>o.height=n),min:1,max:20}),p.jsx(J,{label:"Width",value:e.width==="full"?"full":"custom",options:[{value:"full",label:"Full Width"},{value:"custom",label:"Custom %"}],onChange:n=>t(o=>o.width=n==="full"?"full":50)}),e.width!=="full"&&p.jsx(pe,{label:"Width %",value:e.width,onChange:n=>t(o=>o.width=n),min:10,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!0,children:p.jsx(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})})]})};Ws.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:C5}};const Gs=({height:t=40,responsive:e=!1,mobileHeight:r=20})=>{const{connectors:{connect:n,drag:o},isActive:a}=ne(i=>({isActive:i.events.selected}));return p.jsxs("div",{ref:i=>i&&n(o(i)),className:`cursor-move w-full relative group ${a?"ring-2 ring-primary ring-offset-2":""}`,style:{height:`${t}px`},children:[p.jsx("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover:opacity-100 transition-opacity",children:p.jsxs("div",{className:"flex items-center gap-2 text-xs text-muted-foreground bg-secondary/80 px-2 py-1 rounded",children:[p.jsx("span",{children:"↕"}),p.jsxs("span",{children:[t,"px"]})]})}),p.jsx("div",{className:"absolute inset-x-0 top-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"}),p.jsx("div",{className:"absolute inset-x-0 bottom-0 border-t border-dashed border-border/50 opacity-0 group-hover:opacity-100 transition-opacity"})]})},E5=()=>{const{actions:{setProp:t},props:e}=ne(r=>({props:r.data.props}));return p.jsx("div",{className:"space-y-3",children:p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Preset",value:"custom",options:[{value:"xs",label:"XS (8px)"},{value:"sm",label:"Small (16px)"},{value:"md",label:"Medium (32px)"},{value:"lg",label:"Large (64px)"},{value:"xl",label:"XL (96px)"},{value:"custom",label:"Custom"}],onChange:r=>{const n={xs:8,sm:16,md:32,lg:64,xl:96};n[r]&&t(o=>o.height=n[r])}}),p.jsx(pe,{unit:"px",label:"Height",value:e.height||40,onChange:r=>t(n=>n.height=r),min:4,max:300})]})})};Gs.craft={displayName:"Spacer",props:{height:40,responsive:!1,mobileHeight:20},related:{settings:E5}};const T5=window.location.href.includes("localhost")?"http://localhost:5000/api":"https://api.myracereel.com/api";function N5(){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 j5(t,e={}){const r=await fetch(`${T5}${t}`,{...e,headers:{...N5(),...e.headers}}),n=await r.json();if(!r.ok)throw new Error(n.message||"Request failed");return n}async function A5(t,e){return(await j5(`/videos/${t}/${e||""}`)).data}function O5(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 pa="Checkbox",[P5]=tr(pa),[k5,Ys]=P5(pa);function _5(t){const{__scopeCheckbox:e,checked:r,children:n,defaultChecked:o,disabled:a,form:i,name:s,onCheckedChange:u,required:l,value:c="on",internal_do_not_use_render:h}=t,[f,d]=zr({prop:r,defaultProp:o??!1,onChange:u,caller:pa}),[b,g]=v.useState(null),[m,y]=v.useState(null),x=v.useRef(!1),S=b?!!i||!!b.closest("form"):!0,E={checked:f,disabled:a,setChecked:d,control:b,setControl:g,name:s,form:i,value:c,hasConsumerStoppedPropagationRef:x,required:l,defaultChecked:Pt(o)?!1:o,isFormControl:S,bubbleInput:m,setBubbleInput:y};return p.jsx(k5,{scope:e,...E,children:R5(h)?h(E):n})}var p0="CheckboxTrigger",h0=v.forwardRef(({__scopeCheckbox:t,onKeyDown:e,onClick:r,...n},o)=>{const{control:a,value:i,disabled:s,checked:u,required:l,setControl:c,setChecked:h,hasConsumerStoppedPropagationRef:f,isFormControl:d,bubbleInput:b}=Ys(p0,t),g=we(o,c),m=v.useRef(u);return v.useEffect(()=>{const y=a==null?void 0:a.form;if(y){const x=()=>h(m.current);return y.addEventListener("reset",x),()=>y.removeEventListener("reset",x)}},[a,h]),p.jsx(me.button,{type:"button",role:"checkbox","aria-checked":Pt(u)?"mixed":u,"aria-required":l,"data-state":y0(u),"data-disabled":s?"":void 0,disabled:s,value:i,...n,ref:g,onKeyDown:ue(e,y=>{y.key==="Enter"&&y.preventDefault()}),onClick:ue(r,y=>{h(x=>Pt(x)?!0:!x),b&&d&&(f.current=y.isPropagationStopped(),f.current||y.stopPropagation())})})});h0.displayName=p0;var Xs=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,name:n,checked:o,defaultChecked:a,required:i,disabled:s,value:u,onCheckedChange:l,form:c,...h}=t;return p.jsx(_5,{__scopeCheckbox:r,checked:o,defaultChecked:a,disabled:s,required:i,onCheckedChange:l,name:n,form:c,value:u,internal_do_not_use_render:({isFormControl:f})=>p.jsxs(p.Fragment,{children:[p.jsx(h0,{...h,ref:e,__scopeCheckbox:r}),f&&p.jsx(v0,{__scopeCheckbox:r})]})})});Xs.displayName=pa;var m0="CheckboxIndicator",b0=v.forwardRef((t,e)=>{const{__scopeCheckbox:r,forceMount:n,...o}=t,a=Ys(m0,r);return p.jsx(rr,{present:n||Pt(a.checked)||a.checked===!0,children:p.jsx(me.span,{"data-state":y0(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:e,style:{pointerEvents:"none",...t.style}})})});b0.displayName=m0;var g0="CheckboxBubbleInput",v0=v.forwardRef(({__scopeCheckbox:t,...e},r)=>{const{control:n,hasConsumerStoppedPropagationRef:o,checked:a,defaultChecked:i,required:s,disabled:u,name:l,value:c,form:h,bubbleInput:f,setBubbleInput:d}=Ys(g0,t),b=we(r,d),g=O5(a),m=Rd(n);v.useEffect(()=>{const x=f;if(!x)return;const S=window.HTMLInputElement.prototype,j=Object.getOwnPropertyDescriptor(S,"checked").set,P=!o.current;if(g!==a&&j){const _=new Event("click",{bubbles:P});x.indeterminate=Pt(a),j.call(x,Pt(a)?!1:a),x.dispatchEvent(_)}},[f,g,a,o]);const y=v.useRef(Pt(a)?!1:a);return p.jsx(me.input,{type:"checkbox","aria-hidden":!0,defaultChecked:i??y.current,required:s,disabled:u,name:l,value:c,form:h,...e,tabIndex:-1,ref:b,style:{...e.style,...m,position:"absolute",pointerEvents:"none",opacity:0,margin:0,transform:"translateX(-100%)"}})});v0.displayName=g0;function R5(t){return typeof t=="function"}function Pt(t){return t==="indeterminate"}function y0(t){return Pt(t)?"indeterminate":t?"checked":"unchecked"}const x0=v.forwardRef(({className:t,...e},r)=>p.jsx(Xs,{ref:r,className:Se("peer h-4 w-4 shrink-0 rounded-sm border border-primary ring-offset-background data-[state=checked]:bg-primary data-[state=checked]:text-primary-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50",t),...e,children:p.jsx(b0,{className:Se("flex items-center justify-center text-current"),children:p.jsx(Hi,{className:"h-4 w-4"})})}));x0.displayName=Xs.displayName;const I5=({onDownload:t,disabled:e=!1})=>{const[r,n]=w.useState(!0),[o,a]=w.useState(!1),i=()=>{r&&t&&!o&&(t(),a(!0))};return p.jsxs("div",{className:"py-4 max-w-[600px] w-full flex flex-col justify-center items-center",children:[p.jsx("div",{className:"flex w-full md:w-1/2 justify-center items-center",children:p.jsx(pt,{disabled:!r||o||e,onClick:i,className:"w-full",children:o?p.jsxs(p.Fragment,{children:[p.jsx(Hi,{className:"h-4 w-4 mr-2"}),"Thank you!"]}):p.jsxs(p.Fragment,{children:[p.jsx(sh,{className:"h-4 w-4 mr-2"}),"Download"]})})}),p.jsxs("label",{className:"flex items-start space-x-2 cursor-pointer mt-4",children:[p.jsx(x0,{checked:r,onCheckedChange:s=>n(s===!0),className:"mt-0.5"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["I accept the"," ",p.jsx("a",{href:"https://myracereel.com/terms-of-service",className:"underline hover:text-foreground transition-colors",target:"_blank",rel:"noopener noreferrer",children:"Terms of Service"}),"."]})]})]})},qr=t=>{const{connectors:{connect:e,drag:r},selected:n}=ne(o=>({selected:o.events.selected}));return p.jsx("div",{ref:o=>o&&e(r(o)),style:ws(t),className:Qe(`min-h-2.5 ${n?"outline outline-blue-500":""}`,"w-full flex justify-center",t.className),children:t.children})};qr.craft={props:Ss,displayName:"Wrapper",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName==="Container")},related:{settings:oa}};const D5=(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},M5=({locationId:t,bibId:e,editorEnabled:r,videoTitle:n})=>{const o=w.useRef(null),{data:a,isLoading:i,error:s}=vp.useQuery({queryKey:["video",t,e],queryFn:()=>A5(t,e),enabled:!!t});if(i)return p.jsx("div",{className:"flex items-center justify-center h-48 bg-muted rounded-lg",children:p.jsx("div",{className:"h-8 w-8 animate-spin rounded-full border-4 border-muted-foreground border-t-transparent"})});if(s||!a)return r?p.jsxs("div",{className:"flex flex-col items-center gap-1 justify-center py-6 px-4 bg-muted/50 rounded-lg border border-dashed border-muted-foreground/30",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(oh,{className:"h-5 w-5 text-muted-foreground"}),p.jsx("p",{className:"text-muted-foreground text-sm font-medium",children:"Video not found (404)"})]}),p.jsx("p",{className:"text-muted-foreground/70 text-xs",children:"This will be hidden on the live page"})]}):null;const{videoFromIrewind:u}=a,l=async()=>{if(!r)try{const c=document.createElement("a");c.href=u.mp4_hr_url,c.download=`${u.name||e}-video`,c.style.display="none",document.body.appendChild(c),c.click(),document.body.removeChild(c)}catch(c){console.error("Download failed:",c)}};return p.jsx(qr,{children:p.jsx(En,{children:p.jsx("div",{className:"w-full",children:p.jsxs("div",{className:"flex flex-col items-center",children:[p.jsx("p",{className:"text-sm text-muted-foreground mb-1",children:n}),p.jsxs("h3",{className:"text-lg font-semibold text-foreground mb-3",children:[u.name," (",u.start_no,")"]}),p.jsxs("video",{ref:o,controls:!0,controlsList:"nodownload",className:"w-full max-w-2xl rounded-lg shadow-md",children:[p.jsx("source",{src:u.mp4_hr_url,type:"video/mp4"}),"Your browser does not support HTML5 video."]}),p.jsx(I5,{onDownload:l,disabled:r})]})})})})},Ks=({padding:t={mobile:16,desktop:24},margin:e={top:0,right:0,bottom:0,left:0},background:r="transparent",borderRadius:n=8,boxShadow:o="none"})=>{const a=er(),i=Sn(),{connectors:{connect:s,drag:u},selected:l}=ne(m=>({selected:m.events.selected})),{enabled:c}=Lt(m=>({enabled:m.options.enabled})),h=D5(t,a),f={none:"none",sm:"0 1px 2px 0 rgb(0 0 0 / 0.05)",md:"0 4px 6px -1px rgb(0 0 0 / 0.1)",lg:"0 10px 15px -3px rgb(0 0 0 / 0.1)",xl:"0 20px 25px -5px rgb(0 0 0 / 0.1)"},d={padding:`${h}px`,marginTop:`${e.top}px`,marginRight:`${e.right}px`,marginBottom:`${e.bottom}px`,marginLeft:`${e.left}px`,background:r,borderRadius:`${n}px`,boxShadow:f[o]||"none"},b=(i==null?void 0:i.videos)||[],g=b.length>0;return p.jsx("div",{ref:m=>m&&s(u(m)),style:d,className:`transition-all ${l?"ring-2 ring-primary ring-offset-2":""}`,children:g?p.jsx("div",{className:"space-y-6",children:b.map(m=>p.jsx(M5,{locationId:m.locationId,bibId:i==null?void 0:i.bibId,editorEnabled:c,videoTitle:m.name||m.locationId},m.locationId))}):p.jsxs("div",{className:"flex flex-col items-center justify-center h-48 bg-muted rounded-lg border-2 border-dashed border-muted-foreground/30",children:[p.jsx(wc,{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."})]})]})})},L5=()=>{const{actions:{setProp:t},padding:e,margin:r,background:n,borderRadius:o,boxShadow:a}=ne(s=>({padding:s.data.props.padding,margin:s.data.props.margin,background:s.data.props.background,borderRadius:s.data.props.borderRadius,boxShadow:s.data.props.boxShadow})),i=[{value:"none",label:"None"},{value:"sm",label:"Small"},{value:"md",label:"Medium"},{value:"lg",label:"Large"},{value:"xl",label:"Extra Large"}];return p.jsxs("div",{className:"space-y-1",children:[p.jsx(V,{title:"Info",children:p.jsx("p",{className:"text-xs text-muted-foreground",children:"All available videos will be displayed automatically."})}),p.jsxs(V,{title:"Style",children:[p.jsx(pe,{unit:"px",label:"Padding",value:(e==null?void 0:e.desktop)??24,onChange:s=>t(u=>u.padding={...u.padding,desktop:s,mobile:s}),min:0,max:100}),p.jsx(pe,{unit:"px",label:"Border Radius",value:o,onChange:s=>t(u=>u.borderRadius=s),min:0,max:50}),p.jsx(Je,{label:"Background",value:n,onChange:s=>t(u=>u.background=s)}),p.jsx(J,{label:"Shadow",value:a,options:i,onChange:s=>t(u=>u.boxShadow=s)})]}),p.jsx(V,{title:"Spacing",children:p.jsx(De,{label:"Margin",values:r,onChange:s=>t(u=>u.margin=s)})})]})};Ks.craft={displayName:"Video",props:{padding:{mobile:16,desktop:24},margin:{top:0,right:0,bottom:0,left:0},background:"transparent",borderRadius:8,boxShadow:"none"},related:{settings:L5}};const w0=({columns:t=2,gap:e=16,padding:r={top:0,right:0,bottom:0,left:0},margin:n={top:0,right:0,bottom:0,left:0},alignItems:o="stretch",children:a})=>{const{connectors:{connect:i,drag:s},isActive:u}=ne(h=>({isActive:h.events.selected})),l=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${r}px`,c=typeof n=="object"?`${n.top}px ${n.right}px ${n.bottom}px ${n.left}px`:`${n}px`;return p.jsx("div",{ref:h=>h&&i(s(h)),className:`cursor-move w-full ${u?"ring-2 ring-primary ring-offset-2":""}`,style:{display:"grid",gridTemplateColumns:`repeat(${t}, 1fr)`,gap:`${e}px`,padding:l,margin:c,alignItems:o},children:a})},$5=()=>{const{actions:{setProp:t},props:e}=ne(o=>({props:o.data.props})),r=typeof e.padding=="object"?e.padding:{top:0,right:0,bottom:0,left:0},n=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Layout",defaultOpen:!0,children:[p.jsx(gt,{label:"Columns",value:e.columns||2,options:[{value:2,label:"2"},{value:3,label:"3"},{value:4,label:"4"}],onChange:o=>t(a=>a.columns=o)}),p.jsx(pe,{unit:"px",label:"Gap",value:e.gap||16,onChange:o=>t(a=>a.gap=o),max:64}),p.jsx(J,{label:"Align Items",value:e.alignItems||"stretch",options:[{value:"stretch",label:"Stretch"},{value:"start",label:"Top"},{value:"center",label:"Center"},{value:"end",label:"Bottom"}],onChange:o=>t(a=>a.alignItems=o)})]}),p.jsxs(V,{title:"Spacing",defaultOpen:!1,children:[p.jsx(De,{label:"Padding",values:r,onChange:o=>t(a=>a.padding=o)}),p.jsx(De,{label:"Margin",values:n,onChange:o=>t(a=>a.margin=o)})]})]})};w0.craft={displayName:"Columns",props:{columns:2,gap:16,padding:{top:0,right:0,bottom:0,left:0},margin:{top:0,right:0,bottom:0,left:0},alignItems:"stretch"},related:{settings:$5}};const Js=({text:t="Click here",url:e="#",target:r="_self",fontSize:n=16,fontWeight:o="400",color:a="#0066cc",hoverColor:i="#0052a3",textDecoration:s="underline",textAlign:u="left",margin:l={top:0,right:0,bottom:0,left:0},opacity:c=100})=>{const{connectors:{connect:h,drag:f},isActive:d}=ne(g=>({isActive:g.events.selected})),b=typeof l=="object"?`${l.top}px ${l.right}px ${l.bottom}px ${l.left}px`:`${l}px`;return p.jsx("a",{ref:g=>g&&h(f(g)),href:e,target:r,rel:r==="_blank"?"noopener noreferrer":void 0,onClick:g=>g.preventDefault(),className:`cursor-move inline-block transition-colors hover:opacity-80 ${d?"ring-2 ring-primary ring-offset-2":""}`,style:{fontSize:`${n}px`,fontWeight:o,color:a,textDecoration:s,textAlign:u,margin:b,opacity:c/100,display:"block"},children:t})},B5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Content",defaultOpen:!0,children:[p.jsx(Mt,{label:"Text",value:e.text,onChange:n=>t(o=>o.text=n)}),p.jsx(Mt,{label:"URL",value:e.url,onChange:n=>t(o=>o.url=n)}),p.jsx(J,{label:"Open in",value:e.target||"_self",options:[{value:"_self",label:"Same Tab"},{value:"_blank",label:"New Tab"}],onChange:n=>t(o=>o.target=n)})]}),p.jsxs(V,{title:"Typography",defaultOpen:!0,children:[p.jsx(pe,{unit:"px",label:"Font Size",value:e.fontSize||16,onChange:n=>t(o=>o.fontSize=n),min:10,max:48}),p.jsx(J,{label:"Weight",value:e.fontWeight||"400",options:[{value:"400",label:"Regular"},{value:"500",label:"Medium"},{value:"600",label:"Semibold"},{value:"700",label:"Bold"}],onChange:n=>t(o=>o.fontWeight=n)}),p.jsx(J,{label:"Decoration",value:e.textDecoration||"underline",options:[{value:"none",label:"None"},{value:"underline",label:"Underline"}],onChange:n=>t(o=>o.textDecoration=n)}),p.jsx(gt,{label:"Alignment",value:e.textAlign||"left",options:[{value:"left",label:p.jsx($i,{className:"h-3 w-3"})},{value:"center",label:p.jsx(Li,{className:"h-3 w-3"})},{value:"right",label:p.jsx(Bi,{className:"h-3 w-3"})}],onChange:n=>t(o=>o.textAlign=n)})]}),p.jsxs(V,{title:"Color",defaultOpen:!1,children:[p.jsx(Je,{label:"Link Color",value:e.color||"#0066cc",onChange:n=>t(o=>o.color=n)}),p.jsx(na,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})})]})};Js.craft={displayName:"Link",props:{text:"Click here",url:"#",target:"_self",fontSize:16,fontWeight:"400",color:"#0066cc",hoverColor:"#0052a3",textDecoration:"underline",textAlign:"left",margin:{top:0,right:0,bottom:0,left:0},opacity:100},related:{settings:B5}};const S0=({src:t="https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:e="Image",width:r="full",height:n="auto",maxWidth:o="none",objectFit:a="cover",borderRadius:i=8,margin:s={top:0,right:0,bottom:0,left:0},opacity:u=100,boxShadow:l="none"})=>{const{connectors:{connect:c,drag:h},isActive:f}=ne(b=>({isActive:b.events.selected})),d=typeof s=="object"?`${s.top}px ${s.right}px ${s.bottom}px ${s.left}px`:`${s}px`;return p.jsx("img",{ref:b=>b&&c(h(b)),src:t,alt:e,className:`cursor-move ${f?"ring-2 ring-primary ring-offset-2":""}`,style:{width:r==="full"?"100%":r==="auto"?"auto":`${r}px`,height:n==="auto"?"auto":`${n}px`,maxWidth:o==="none"?"none":`${o}px`,objectFit:a,borderRadius:`${i}px`,margin:d,opacity:u/100,boxShadow:l==="none"?"none":l,display:"block"}})},H5=()=>{const{actions:{setProp:t},props:e}=ne(n=>({props:n.data.props})),r=typeof e.margin=="object"?e.margin:{top:0,right:0,bottom:0,left:0};return p.jsxs("div",{className:"space-y-3",children:[p.jsxs(V,{title:"Source",defaultOpen:!0,children:[p.jsx(Mt,{label:"Image URL",value:e.src,onChange:n=>t(o=>o.src=n)}),p.jsx(Mt,{label:"Alt Text",value:e.alt,onChange:n=>t(o=>o.alt=n)})]}),p.jsxs(V,{title:"Size",defaultOpen:!0,children:[p.jsx(J,{label:"Width",value:typeof e.width=="number"?"custom":e.width,options:[{value:"full",label:"Full Width"},{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.width=n==="custom"?300:n)}),typeof e.width=="number"&&p.jsx(pe,{unit:"px",label:"Width (px)",value:e.width,onChange:n=>t(o=>o.width=n),max:1200}),p.jsx(J,{label:"Height",value:typeof e.height=="number"?"custom":e.height,options:[{value:"auto",label:"Auto"},{value:"custom",label:"Custom"}],onChange:n=>t(o=>o.height=n==="custom"?200:n)}),typeof e.height=="number"&&p.jsx(pe,{unit:"px",label:"Height (px)",value:e.height,onChange:n=>t(o=>o.height=n),max:800}),p.jsx(J,{label:"Object Fit",value:e.objectFit||"cover",options:[{value:"cover",label:"Cover"},{value:"contain",label:"Contain"},{value:"fill",label:"Fill"},{value:"none",label:"None"}],onChange:n=>t(o=>o.objectFit=n)})]}),p.jsxs(V,{title:"Style",defaultOpen:!1,children:[p.jsx(pe,{unit:"px",label:"Border Radius",value:e.borderRadius||8,onChange:n=>t(o=>o.borderRadius=n),max:100}),p.jsx(na,{label:"Opacity",value:e.opacity||100,onChange:n=>t(o=>o.opacity=n),min:0,max:100,unit:"%"}),p.jsx(J,{label:"Shadow",value:e.boxShadow||"none",options:[{value:"none",label:"None"},{value:"0 4px 12px rgba(0,0,0,0.1)",label:"Small"},{value:"0 8px 24px rgba(0,0,0,0.15)",label:"Medium"},{value:"0 16px 48px rgba(0,0,0,0.2)",label:"Large"}],onChange:n=>t(o=>o.boxShadow=n)})]}),p.jsx(V,{title:"Spacing",defaultOpen:!1,children:p.jsx(De,{label:"Margin",values:r,onChange:n=>t(o=>o.margin=n)})})]})};S0.craft={displayName:"Image",props:{src:"https://images.unsplash.com/photo-1540575467063-178a50c2df87?w=800&h=400&fit=crop",alt:"Image",width:"full",height:"auto",maxWidth:"none",objectFit:"cover",borderRadius:8,margin:{top:0,right:0,bottom:0,left:0},opacity:100,boxShadow:"none"},related:{settings:H5}};function oc(t=12){const e="abcdefghijklmnopqrstuvwxyz",r=e+"0123456789";let n=e[Math.floor(Math.random()*e.length)];for(let o=1;o<t;o++)n+=r[Math.floor(Math.random()*r.length)];return n}const C0=({children:t,className:e})=>{const{connectors:{connect:r,drag:n},selected:o}=ne(s=>({selected:s.events.selected})),a=oc(),i=oc();return p.jsx("div",{ref:s=>{s&&r(n(s))},className:Qe(`min-h-2.5 ${o?"border border-blue-500":""}`,"w-full flex justify-center",e),children:p.jsx(bt,{is:qr,id:`section-wrapper-${a}`,children:p.jsx(bt,{is:En,canvas:!0,id:`section-container-${i}`,children:t})})})};C0.craft={displayName:"Section",props:{},rules:{canDrag:()=>!0}};const Zs=t=>{const{connectors:{connect:e,drag:r},selected:n}=ne(o=>({selected:o.events.selected}));return p.jsx("div",{style:ws(t),className:Qe(t.className,`${n?"outline outline-blue-500":""}`),ref:o=>{o&&e(r(o))},children:t.children})};Zs.craft={isCanvas:!0,props:Ss,related:{settings:oa}};const E0=({background:t="transparent",padding:e={top:16,right:16,bottom:16,left:16},margin:r={top:0,right:0,bottom:0,left:0},width:n="auto",minHeight:o=100,maxWidth:a="none",display:i="block",flexDirection:s="column",justifyContent:u="flex-start",alignItems:l="stretch",gap:c=0,borderRadius:h=8,borderWidth:f=1,borderColor:d="transparent",borderStyle:b="dashed",boxShadow:g="none",children:m})=>{const{connectors:{connect:y,drag:x},isActive:S}=ne(_=>({isActive:_.events.selected})),E=typeof e=="object"?`${e.top}px ${e.right}px ${e.bottom}px ${e.left}px`:`${e}px`,j=typeof r=="object"?`${r.top}px ${r.right}px ${r.bottom}px ${r.left}px`:`${r}px`,P=[{url:"https://myracereel.com/privacy-data-privacy",name:"Privacy & Data Policy"},{url:"https://myracereel.com/terms-of-service",name:"Terms of Service"},{url:"https://myracereel.com/faq",name:"FAQ"},{url:"https://myracereel.com/contact",name:"Contact Us"}];return p.jsx(qr,{style:{backgroundColor:t,padding:E,margin:j,width:n==="auto"?"100%":n,minHeight:`${o}px`,maxWidth:a==="none"?"none":`${a}px`,display:i,flexDirection:i==="flex"?s:void 0,justifyContent:i==="flex"?u:void 0,alignItems:i==="flex"?l:void 0,gap:i==="flex"?`${c}px`:void 0,borderRadius:`${h}px`,borderWidth:`${f}px`,borderColor:d,borderStyle:b,boxShadow:g==="none"?"none":g},className:"bg-black",ref:_=>_&&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:P.map(_=>p.jsx("a",{className:"text-white",href:_.url,target:"_blank",children:_.name},_.name))})]})})})};E0.craft={displayName:"Footer",props:{background:"transparent",padding:{top:16,right:16,bottom:16,left:16},margin:{top:0,right:0,bottom:0,left:0},width:"auto",minHeight:100,maxWidth:"none",display:"block",flexDirection:"column",justifyContent:"flex-start",alignItems:"stretch",gap:0,borderRadius:8,borderWidth:1,borderColor:"transparent",borderStyle:"dashed",boxShadow:"none"},related:{settings:oa}};const z5=()=>{const{connectors:t}=Lt(),e=[{name:"Wrapper",icon:mh,element:p.jsx(bt,{is:qr,canvas:!0})},{name:"Container",icon:bh,element:p.jsx(bt,{is:En,canvas:!0})},{name:"Div",icon:Fa,element:p.jsx(bt,{is:Zs,canvas:!0})}],r=[{name:"Heading",icon:Sc,element:p.jsx(Us,{})},{name:"Text",icon:jc,element:p.jsx(qs,{})},{name:"Button",icon:Tc,element:p.jsx(xs,{})},{name:"Link",icon:qi,element:p.jsx(Js,{})}],n=[{name:"Image",icon:Cc,element:p.jsx(Vs,{})},{name:"Video",icon:wc,element:p.jsx(Ks,{})}],o=[{name:"Divider",icon:Ec,element:p.jsx(Ws,{})},{name:"Spacer",icon:Nc,element:p.jsx(Gs,{})}],a=(i,s)=>p.jsxs("div",{className:"space-y-2",children:[p.jsx("span",{className:"text-xs text-muted-foreground/70",children:i}),p.jsx("div",{className:"grid grid-cols-2 gap-1.5",children:s.map(u=>p.jsxs(pt,{variant:"outline",size:"sm",className:"flex flex-col items-center justify-center h-14 cursor-grab active:cursor-grabbing text-muted-foreground hover:text-foreground",ref:l=>l&&t.create(l,u.element),children:[p.jsx(u.icon,{className:"h-4 w-4 mb-1"}),p.jsx("span",{className:"text-[10px]",children:u.name})]},u.name))})]});return p.jsxs("div",{className:"space-y-4",children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Components"}),a("Layout",e),a("Basic",r),a("Media",n),a("Utility",o)]})};var F5=v.createContext(void 0);function Qs(t){const e=v.useContext(F5);return t||e||"ltr"}function q5(t,[e,r]){return Math.min(r,Math.max(e,t))}function U5(t,e){return v.useReducer((r,n)=>e[r][n]??r,t)}var eu="ScrollArea",[T0]=tr(eu),[V5,Me]=T0(eu),N0=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,type:n="hover",dir:o,scrollHideDelay:a=600,...i}=t,[s,u]=v.useState(null),[l,c]=v.useState(null),[h,f]=v.useState(null),[d,b]=v.useState(null),[g,m]=v.useState(null),[y,x]=v.useState(0),[S,E]=v.useState(0),[j,P]=v.useState(!1),[_,D]=v.useState(!1),L=we(e,C=>u(C)),$=Qs(o);return p.jsx(V5,{scope:r,type:n,dir:$,scrollHideDelay:a,scrollArea:s,viewport:l,onViewportChange:c,content:h,onContentChange:f,scrollbarX:d,onScrollbarXChange:b,scrollbarXEnabled:j,onScrollbarXEnabledChange:P,scrollbarY:g,onScrollbarYChange:m,scrollbarYEnabled:_,onScrollbarYEnabledChange:D,onCornerWidthChange:x,onCornerHeightChange:E,children:p.jsx(me.div,{dir:$,...i,ref:L,style:{position:"relative","--radix-scroll-area-corner-width":y+"px","--radix-scroll-area-corner-height":S+"px",...t.style}})})});N0.displayName=eu;var j0="ScrollAreaViewport",A0=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,children:n,nonce:o,...a}=t,i=Me(j0,r),s=v.useRef(null),u=we(e,s,i.onViewportChange);return p.jsxs(p.Fragment,{children:[p.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),p.jsx(me.div,{"data-radix-scroll-area-viewport":"",...a,ref:u,style:{overflowX:i.scrollbarXEnabled?"scroll":"hidden",overflowY:i.scrollbarYEnabled?"scroll":"hidden",...t.style},children:p.jsx("div",{ref:i.onContentChange,style:{minWidth:"100%",display:"table"},children:n})})]})});A0.displayName=j0;var at="ScrollAreaScrollbar",tu=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Me(at,t.__scopeScrollArea),{onScrollbarXEnabledChange:a,onScrollbarYEnabledChange:i}=o,s=t.orientation==="horizontal";return v.useEffect(()=>(s?a(!0):i(!0),()=>{s?a(!1):i(!1)}),[s,a,i]),o.type==="hover"?p.jsx(W5,{...n,ref:e,forceMount:r}):o.type==="scroll"?p.jsx(G5,{...n,ref:e,forceMount:r}):o.type==="auto"?p.jsx(O0,{...n,ref:e,forceMount:r}):o.type==="always"?p.jsx(ru,{...n,ref:e}):null});tu.displayName=at;var W5=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Me(at,t.__scopeScrollArea),[a,i]=v.useState(!1);return v.useEffect(()=>{const s=o.scrollArea;let u=0;if(s){const l=()=>{window.clearTimeout(u),i(!0)},c=()=>{u=window.setTimeout(()=>i(!1),o.scrollHideDelay)};return s.addEventListener("pointerenter",l),s.addEventListener("pointerleave",c),()=>{window.clearTimeout(u),s.removeEventListener("pointerenter",l),s.removeEventListener("pointerleave",c)}}},[o.scrollArea,o.scrollHideDelay]),p.jsx(rr,{present:r||a,children:p.jsx(O0,{"data-state":a?"visible":"hidden",...n,ref:e})})}),G5=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=Me(at,t.__scopeScrollArea),a=t.orientation==="horizontal",i=ma(()=>u("SCROLL_END"),100),[s,u]=U5("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=a?"scrollLeft":"scrollTop";if(l){let h=l[c];const f=()=>{const d=l[c];h!==d&&(u("SCROLL"),i()),h=d};return l.addEventListener("scroll",f),()=>l.removeEventListener("scroll",f)}},[o.viewport,a,u,i]),p.jsx(rr,{present:r||s!=="hidden",children:p.jsx(ru,{"data-state":s==="hidden"?"hidden":"visible",...n,ref:e,onPointerEnter:ue(t.onPointerEnter,()=>u("POINTER_ENTER")),onPointerLeave:ue(t.onPointerLeave,()=>u("POINTER_LEAVE"))})})}),O0=v.forwardRef((t,e)=>{const r=Me(at,t.__scopeScrollArea),{forceMount:n,...o}=t,[a,i]=v.useState(!1),s=t.orientation==="horizontal",u=ma(()=>{if(r.viewport){const l=r.viewport.offsetWidth<r.viewport.scrollWidth,c=r.viewport.offsetHeight<r.viewport.scrollHeight;i(s?l:c)}},10);return Pr(r.viewport,u),Pr(r.content,u),p.jsx(rr,{present:n||a,children:p.jsx(ru,{"data-state":a?"visible":"hidden",...o,ref:e})})}),ru=v.forwardRef((t,e)=>{const{orientation:r="vertical",...n}=t,o=Me(at,t.__scopeScrollArea),a=v.useRef(null),i=v.useRef(0),[s,u]=v.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),l=I0(s.viewport,s.content),c={...n,sizes:s,onSizesChange:u,hasThumb:l>0&&l<1,onThumbChange:f=>a.current=f,onThumbPointerUp:()=>i.current=0,onThumbPointerDown:f=>i.current=f};function h(f,d){return Q5(f,i.current,s,d)}return r==="horizontal"?p.jsx(Y5,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollLeft,d=ac(f,s,o.dir);a.current.style.transform=`translate3d(${d}px, 0, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollLeft=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollLeft=h(f,o.dir))}}):r==="vertical"?p.jsx(X5,{...c,ref:e,onThumbPositionChange:()=>{if(o.viewport&&a.current){const f=o.viewport.scrollTop,d=ac(f,s);a.current.style.transform=`translate3d(0, ${d}px, 0)`}},onWheelScroll:f=>{o.viewport&&(o.viewport.scrollTop=f)},onDragScroll:f=>{o.viewport&&(o.viewport.scrollTop=h(f))}}):null}),Y5=v.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Me(at,t.__scopeScrollArea),[i,s]=v.useState(),u=v.useRef(null),l=we(e,u,a.onScrollbarXChange);return v.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(k0,{"data-orientation":"horizontal",...o,ref:l,sizes:r,style:{bottom:0,left:a.dir==="rtl"?"var(--radix-scroll-area-corner-width)":0,right:a.dir==="ltr"?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":ha(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.x),onDragScroll:c=>t.onDragScroll(c.x),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollLeft+c.deltaX;t.onWheelScroll(f),M0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollWidth,viewport:a.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:Ro(i.paddingLeft),paddingEnd:Ro(i.paddingRight)}})}})}),X5=v.forwardRef((t,e)=>{const{sizes:r,onSizesChange:n,...o}=t,a=Me(at,t.__scopeScrollArea),[i,s]=v.useState(),u=v.useRef(null),l=we(e,u,a.onScrollbarYChange);return v.useEffect(()=>{u.current&&s(getComputedStyle(u.current))},[u]),p.jsx(k0,{"data-orientation":"vertical",...o,ref:l,sizes:r,style:{top:0,right:a.dir==="ltr"?0:void 0,left:a.dir==="rtl"?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":ha(r)+"px",...t.style},onThumbPointerDown:c=>t.onThumbPointerDown(c.y),onDragScroll:c=>t.onDragScroll(c.y),onWheelScroll:(c,h)=>{if(a.viewport){const f=a.viewport.scrollTop+c.deltaY;t.onWheelScroll(f),M0(f,h)&&c.preventDefault()}},onResize:()=>{u.current&&a.viewport&&i&&n({content:a.viewport.scrollHeight,viewport:a.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:Ro(i.paddingTop),paddingEnd:Ro(i.paddingBottom)}})}})}),[K5,P0]=T0(at),k0=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,sizes:n,hasThumb:o,onThumbChange:a,onThumbPointerUp:i,onThumbPointerDown:s,onThumbPositionChange:u,onDragScroll:l,onWheelScroll:c,onResize:h,...f}=t,d=Me(at,r),[b,g]=v.useState(null),m=we(e,L=>g(L)),y=v.useRef(null),x=v.useRef(""),S=d.viewport,E=n.content-n.viewport,j=Ie(c),P=Ie(u),_=ma(h,10);function D(L){if(y.current){const $=L.clientX-y.current.left,C=L.clientY-y.current.top;l({x:$,y:C})}}return v.useEffect(()=>{const L=$=>{const C=$.target;(b==null?void 0:b.contains(C))&&j($,E)};return document.addEventListener("wheel",L,{passive:!1}),()=>document.removeEventListener("wheel",L,{passive:!1})},[S,b,E,j]),v.useEffect(P,[n,P]),Pr(b,_),Pr(d.content,_),p.jsx(K5,{scope:r,scrollbar:b,hasThumb:o,onThumbChange:Ie(a),onThumbPointerUp:Ie(i),onThumbPositionChange:P,onThumbPointerDown:Ie(s),children:p.jsx(me.div,{...f,ref:m,style:{position:"absolute",...f.style},onPointerDown:ue(t.onPointerDown,L=>{L.button===0&&(L.target.setPointerCapture(L.pointerId),y.current=b.getBoundingClientRect(),x.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",d.viewport&&(d.viewport.style.scrollBehavior="auto"),D(L))}),onPointerMove:ue(t.onPointerMove,D),onPointerUp:ue(t.onPointerUp,L=>{const $=L.target;$.hasPointerCapture(L.pointerId)&&$.releasePointerCapture(L.pointerId),document.body.style.webkitUserSelect=x.current,d.viewport&&(d.viewport.style.scrollBehavior=""),y.current=null})})})}),_o="ScrollAreaThumb",_0=v.forwardRef((t,e)=>{const{forceMount:r,...n}=t,o=P0(_o,t.__scopeScrollArea);return p.jsx(rr,{present:r||o.hasThumb,children:p.jsx(J5,{ref:e,...n})})}),J5=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,style:n,...o}=t,a=Me(_o,r),i=P0(_o,r),{onThumbPositionChange:s}=i,u=we(e,h=>i.onThumbChange(h)),l=v.useRef(void 0),c=ma(()=>{l.current&&(l.current(),l.current=void 0)},100);return v.useEffect(()=>{const h=a.viewport;if(h){const f=()=>{if(c(),!l.current){const d=eS(h,s);l.current=d,s()}};return s(),h.addEventListener("scroll",f),()=>h.removeEventListener("scroll",f)}},[a.viewport,c,s]),p.jsx(me.div,{"data-state":i.hasThumb?"visible":"hidden",...o,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...n},onPointerDownCapture:ue(t.onPointerDownCapture,h=>{const d=h.target.getBoundingClientRect(),b=h.clientX-d.left,g=h.clientY-d.top;i.onThumbPointerDown({x:b,y:g})}),onPointerUp:ue(t.onPointerUp,i.onThumbPointerUp)})});_0.displayName=_o;var nu="ScrollAreaCorner",R0=v.forwardRef((t,e)=>{const r=Me(nu,t.__scopeScrollArea),n=!!(r.scrollbarX&&r.scrollbarY);return r.type!=="scroll"&&n?p.jsx(Z5,{...t,ref:e}):null});R0.displayName=nu;var Z5=v.forwardRef((t,e)=>{const{__scopeScrollArea:r,...n}=t,o=Me(nu,r),[a,i]=v.useState(0),[s,u]=v.useState(0),l=!!(a&&s);return Pr(o.scrollbarX,()=>{var h;const c=((h=o.scrollbarX)==null?void 0:h.offsetHeight)||0;o.onCornerHeightChange(c),u(c)}),Pr(o.scrollbarY,()=>{var h;const c=((h=o.scrollbarY)==null?void 0:h.offsetWidth)||0;o.onCornerWidthChange(c),i(c)}),l?p.jsx(me.div,{...n,ref:e,style:{width:a,height:s,position:"absolute",right:o.dir==="ltr"?0:void 0,left:o.dir==="rtl"?0:void 0,bottom:0,...t.style}}):null});function Ro(t){return t?parseInt(t,10):0}function I0(t,e){const r=t/e;return isNaN(r)?0:r}function ha(t){const e=I0(t.viewport,t.content),r=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,n=(t.scrollbar.size-r)*e;return Math.max(n,18)}function Q5(t,e,r,n="ltr"){const o=ha(r),a=o/2,i=e||a,s=o-i,u=r.scrollbar.paddingStart+i,l=r.scrollbar.size-r.scrollbar.paddingEnd-s,c=r.content-r.viewport,h=n==="ltr"?[0,c]:[c*-1,0];return D0([u,l],h)(t)}function ac(t,e,r="ltr"){const n=ha(e),o=e.scrollbar.paddingStart+e.scrollbar.paddingEnd,a=e.scrollbar.size-o,i=e.content-e.viewport,s=a-n,u=r==="ltr"?[0,i]:[i*-1,0],l=q5(t,u);return D0([0,i],[0,s])(l)}function D0(t,e){return r=>{if(t[0]===t[1]||e[0]===e[1])return e[0];const n=(e[1]-e[0])/(t[1]-t[0]);return e[0]+n*(r-t[0])}}function M0(t,e){return t>0&&t<e}var eS=(t,e=()=>{})=>{let r={left:t.scrollLeft,top:t.scrollTop},n=0;return function o(){const a={left:t.scrollLeft,top:t.scrollTop},i=r.left!==a.left,s=r.top!==a.top;(i||s)&&e(),r=a,n=window.requestAnimationFrame(o)}(),()=>window.cancelAnimationFrame(n)};function ma(t,e){const r=Ie(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 Pr(t,e){const r=Ie(e);Rt(()=>{let n=0;if(t){const o=new ResizeObserver(()=>{cancelAnimationFrame(n),n=window.requestAnimationFrame(r)});return o.observe(t),()=>{window.cancelAnimationFrame(n),o.unobserve(t)}}},[t,r])}var L0=N0,tS=A0,rS=R0;const ou=v.forwardRef(({className:t,children:e,...r},n)=>p.jsxs(L0,{ref:n,className:Se("relative overflow-hidden",t),...r,children:[p.jsx(tS,{className:"h-full w-full rounded-[inherit]",children:e}),p.jsx($0,{}),p.jsx(rS,{})]}));ou.displayName=L0.displayName;const $0=v.forwardRef(({className:t,orientation:e="vertical",...r},n)=>p.jsx(tu,{ref:n,orientation:e,className:Se("flex touch-none select-none transition-colors",e==="vertical"&&"h-full w-2.5 border-l border-l-transparent p-[1px]",e==="horizontal"&&"h-2.5 flex-col border-t border-t-transparent p-[1px]",t),...r,children:p.jsx(_0,{className:"relative flex-1 rounded-full bg-border"})}));$0.displayName=tu.displayName;const nS=()=>{const{selected:t,actions:e}=Lt(r=>{var a,i,s,u,l,c,h;const n=r.events.selected?Array.from(r.events.selected)[0]:null;let o;return n&&(o={id:n,name:((i=(a=r.nodes[n])==null?void 0:a.data)==null?void 0:i.displayName)||((u=(s=r.nodes[n])==null?void 0:s.data)==null?void 0:u.name),settings:(c=(l=r.nodes[n])==null?void 0:l.related)==null?void 0:c.settings,isDeletable:((h=r.nodes[n])==null?void 0:h.id)!=="ROOT"}),{selected:o}});return p.jsx("div",{className:"h-full flex flex-col",children:t?p.jsxs(p.Fragment,{children:[p.jsxs("div",{className:"flex items-center justify-between pb-3 border-b border-border mb-3",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs text-muted-foreground",children:"Selected"}),p.jsx("h3",{className:"text-sm font-semibold",children:t.name})]}),t.isDeletable&&p.jsx("button",{onClick:()=>e.delete(t.id),className:"p-1.5 rounded hover:bg-destructive/10 text-destructive transition-colors",title:"Delete element",children:p.jsx(vh,{className:"h-4 w-4"})})]}),p.jsx(ou,{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"})})})},oS=t=>{switch(t){case"Container":return Fa;case"Text":return jc;case"Heading":return Sc;case"Button":return Tc;case"Image":return Cc;case"Divider":return Ec;case"Spacer":return Nc;case"Video":return wh;case"Columns":return ah;case"Link":return qi;default:return Fa}},B0=({nodeId:t,depth:e=0,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a})=>{const{node:i,actions:s,selectedNodeId:u,childNodes:l,parentId:c}=Lt((N,k)=>{var R,M;const I=N.nodes[t],T=((R=I==null?void 0:I.data)==null?void 0:R.nodes)||[],O=N.events.selected?Array.from(N.events.selected)[0]:null,A=(M=I==null?void 0:I.data)==null?void 0:M.parent;return{node:I,childNodes:T,selectedNodeId:O,parentId:A}}),[h,f]=w.useState(!0),[d,b]=w.useState(!1);if(!i)return null;const g=i.data.displayName||i.data.name||"Unknown",m=l.length>0,y=u===t,x=t==="ROOT",S=oS(g),E=a===t,j=i.data.isCanvas,P=N=>{N.stopPropagation(),x||s.selectNode(t)},_=N=>{N.stopPropagation(),f(!h)},D=N=>{if(x){N.preventDefault();return}N.stopPropagation(),r(t,c)},L=N=>{N.preventDefault(),N.stopPropagation(),a&&a!==t&&j&&b(!0)},$=N=>{N.stopPropagation(),b(!1)},C=N=>{N.preventDefault(),N.stopPropagation(),b(!1),a&&a!==t&&o(t)};return p.jsxs("div",{className:"select-none",children:[p.jsxs("div",{className:`flex items-center gap-1 py-1 px-1 rounded cursor-pointer text-sm transition-colors ${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:P,draggable:!x,onDragStart:D,onDragOver:L,onDragLeave:$,onDrop:C,children:[!x&&p.jsx(lh,{className:"h-3 w-3 text-muted-foreground/50 cursor-grab active:cursor-grabbing"}),m?p.jsx("button",{onClick:_,className:"p-0.5 hover:bg-secondary rounded",children:h?p.jsx(zi,{className:"h-3 w-3"}):p.jsx(Fi,{className:"h-3 w-3"})}):p.jsx("span",{className:"w-4"}),p.jsx(S,{className:"h-3.5 w-3.5 text-muted-foreground shrink-0"}),p.jsx("span",{className:`truncate ${x?"font-medium":""}`,children:x?"Root":g})]}),m&&h&&p.jsx("div",{children:l.map(N=>p.jsx(B0,{nodeId:N,depth:e+1,onDragStart:r,onDragOver:n,onDrop:o,draggedId:a},N))})]})},aS=()=>{const[t,e]=w.useState(null),[r,n]=w.useState(null),{nodeIds:o,actions:a}=Lt(l=>({nodeIds:Object.keys(l.nodes)})),i=(l,c)=>{e(l),n(c)},s=l=>{if(t&&l&&t!==l)try{a.move(t,l,0)}catch(c){console.log("Cannot move node:",c)}e(null),n(null)},u=()=>{e(null),n(null)};return p.jsxs("div",{className:"space-y-2",onDragEnd:u,children:[p.jsx("h3",{className:"text-sm font-medium text-muted-foreground",children:"Layers"}),p.jsx("div",{className:"border border-border rounded-lg p-2 max-h-[250px] overflow-y-auto bg-background",children:o.includes("ROOT")&&p.jsx(B0,{nodeId:"ROOT",onDragStart:i,onDrop:s,draggedId:t})}),p.jsx("p",{className:"text-xs text-muted-foreground",children:"Drag to containers to reorder"})]})};function ic(t){const e=iS(t),r=v.forwardRef((n,o)=>{const{children:a,...i}=n,s=v.Children.toArray(a),u=s.find(uS);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,{...i,ref:o,children:v.isValidElement(l)?v.cloneElement(l,void 0,c):null})}return p.jsx(e,{...i,ref:o,children:a})});return r.displayName=`${t}.Slot`,r}function iS(t){const e=v.forwardRef((r,n)=>{const{children:o,...a}=r;if(v.isValidElement(o)){const i=cS(o),s=lS(a,o.props);return o.type!==v.Fragment&&(s.ref=n?Mo(n,i):i),v.cloneElement(o,s)}return v.Children.count(o)>1?v.Children.only(null):null});return e.displayName=`${t}.SlotClone`,e}var sS=Symbol("radix.slottable");function uS(t){return v.isValidElement(t)&&typeof t.type=="function"&&"__radixId"in t.type&&t.type.__radixId===sS}function lS(t,e){const r={...e};for(const n in e){const o=t[n],a=e[n];/^on[A-Z]/.test(n)?o&&a?r[n]=(...s)=>{const u=a(...s);return o(...s),u}:o&&(r[n]=o):n==="style"?r[n]={...o,...a}:n==="className"&&(r[n]=[o,a].filter(Boolean).join(" "))}return{...t,...r}}function cS(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 dS(t){const e=t+"CollectionProvider",[r,n]=tr(e),[o,a]=r(e,{collectionRef:{current:null},itemMap:new Map}),i=g=>{const{scope:m,children:y}=g,x=w.useRef(null),S=w.useRef(new Map).current;return p.jsx(o,{scope:m,itemMap:S,collectionRef:x,children:y})};i.displayName=e;const s=t+"CollectionSlot",u=ic(s),l=w.forwardRef((g,m)=>{const{scope:y,children:x}=g,S=a(s,y),E=we(m,S.collectionRef);return p.jsx(u,{ref:E,children:x})});l.displayName=s;const c=t+"CollectionItemSlot",h="data-radix-collection-item",f=ic(c),d=w.forwardRef((g,m)=>{const{scope:y,children:x,...S}=g,E=w.useRef(null),j=we(m,E),P=a(c,y);return w.useEffect(()=>(P.itemMap.set(E,{ref:E,...S}),()=>void P.itemMap.delete(E))),p.jsx(f,{[h]:"",ref:j,children:x})});d.displayName=c;function b(g){const m=a(t+"CollectionConsumer",g);return w.useCallback(()=>{const x=m.collectionRef.current;if(!x)return[];const S=Array.from(x.querySelectorAll(`[${h}]`));return Array.from(m.itemMap.values()).sort((P,_)=>S.indexOf(P.ref.current)-S.indexOf(_.ref.current))},[m.collectionRef,m.itemMap])}return[{Provider:i,Slot:l,ItemSlot:d},b,n]}var Ba="rovingFocusGroup.onEntryFocus",fS={bubbles:!1,cancelable:!0},kn="RovingFocusGroup",[Ri,H0,pS]=dS(kn),[hS,z0]=tr(kn,[pS]),[mS,bS]=hS(kn),F0=v.forwardRef((t,e)=>p.jsx(Ri.Provider,{scope:t.__scopeRovingFocusGroup,children:p.jsx(Ri.Slot,{scope:t.__scopeRovingFocusGroup,children:p.jsx(gS,{...t,ref:e})})}));F0.displayName=kn;var gS=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,orientation:n,loop:o=!1,dir:a,currentTabStopId:i,defaultCurrentTabStopId:s,onCurrentTabStopIdChange:u,onEntryFocus:l,preventScrollOnEntryFocus:c=!1,...h}=t,f=v.useRef(null),d=we(e,f),b=Qs(a),[g,m]=zr({prop:i,defaultProp:s??null,onChange:u,caller:kn}),[y,x]=v.useState(!1),S=Ie(l),E=H0(r),j=v.useRef(!1),[P,_]=v.useState(0);return v.useEffect(()=>{const D=f.current;if(D)return D.addEventListener(Ba,S),()=>D.removeEventListener(Ba,S)},[S]),p.jsx(mS,{scope:r,orientation:n,dir:b,loop:o,currentTabStopId:g,onItemFocus:v.useCallback(D=>m(D),[m]),onItemShiftTab:v.useCallback(()=>x(!0),[]),onFocusableItemAdd:v.useCallback(()=>_(D=>D+1),[]),onFocusableItemRemove:v.useCallback(()=>_(D=>D-1),[]),children:p.jsx(me.div,{tabIndex:y||P===0?-1:0,"data-orientation":n,...h,ref:d,style:{outline:"none",...t.style},onMouseDown:ue(t.onMouseDown,()=>{j.current=!0}),onFocus:ue(t.onFocus,D=>{const L=!j.current;if(D.target===D.currentTarget&&L&&!y){const $=new CustomEvent(Ba,fS);if(D.currentTarget.dispatchEvent($),!$.defaultPrevented){const C=E().filter(O=>O.focusable),N=C.find(O=>O.active),k=C.find(O=>O.id===g),T=[N,k,...C].filter(Boolean).map(O=>O.ref.current);V0(T,c)}}j.current=!1}),onBlur:ue(t.onBlur,()=>x(!1))})})}),q0="RovingFocusGroupItem",U0=v.forwardRef((t,e)=>{const{__scopeRovingFocusGroup:r,focusable:n=!0,active:o=!1,tabStopId:a,children:i,...s}=t,u=xd(),l=a||u,c=bS(q0,r),h=c.currentTabStopId===l,f=H0(r),{onFocusableItemAdd:d,onFocusableItemRemove:b,currentTabStopId:g}=c;return v.useEffect(()=>{if(n)return d(),()=>b()},[n,d,b]),p.jsx(Ri.ItemSlot,{scope:r,id:l,focusable:n,active:o,children:p.jsx(me.span,{tabIndex:h?0:-1,"data-orientation":c.orientation,...s,ref:e,onMouseDown:ue(t.onMouseDown,m=>{n?c.onItemFocus(l):m.preventDefault()}),onFocus:ue(t.onFocus,()=>c.onItemFocus(l)),onKeyDown:ue(t.onKeyDown,m=>{if(m.key==="Tab"&&m.shiftKey){c.onItemShiftTab();return}if(m.target!==m.currentTarget)return;const y=xS(m,c.orientation,c.dir);if(y!==void 0){if(m.metaKey||m.ctrlKey||m.altKey||m.shiftKey)return;m.preventDefault();let S=f().filter(E=>E.focusable).map(E=>E.ref.current);if(y==="last")S.reverse();else if(y==="prev"||y==="next"){y==="prev"&&S.reverse();const E=S.indexOf(m.currentTarget);S=c.loop?wS(S,E+1):S.slice(E+1)}setTimeout(()=>V0(S))}}),children:typeof i=="function"?i({isCurrentTabStop:h,hasTabStop:g!=null}):i})})});U0.displayName=q0;var vS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function yS(t,e){return e!=="rtl"?t:t==="ArrowLeft"?"ArrowRight":t==="ArrowRight"?"ArrowLeft":t}function xS(t,e,r){const n=yS(t.key,r);if(!(e==="vertical"&&["ArrowLeft","ArrowRight"].includes(n))&&!(e==="horizontal"&&["ArrowUp","ArrowDown"].includes(n)))return vS[n]}function V0(t,e=!1){const r=document.activeElement;for(const n of t)if(n===r||(n.focus({preventScroll:e}),document.activeElement!==r))return}function wS(t,e){return t.map((r,n)=>t[(e+n)%t.length])}var SS=F0,CS=U0,W0="Toggle",au=v.forwardRef((t,e)=>{const{pressed:r,defaultPressed:n,onPressedChange:o,...a}=t,[i,s]=zr({prop:r,onChange:o,defaultProp:n??!1,caller:W0});return p.jsx(me.button,{type:"button","aria-pressed":i,"data-state":i?"on":"off","data-disabled":t.disabled?"":void 0,...a,ref:e,onClick:ue(t.onClick,()=>{t.disabled||s(!i)})})});au.displayName=W0;var G0=au,zt="ToggleGroup",[Y0]=tr(zt,[z0]),X0=z0(),iu=w.forwardRef((t,e)=>{const{type:r,...n}=t;if(r==="single"){const o=n;return p.jsx(ES,{...o,ref:e})}if(r==="multiple"){const o=n;return p.jsx(TS,{...o,ref:e})}throw new Error(`Missing prop \`type\` expected on \`${zt}\``)});iu.displayName=zt;var[K0,J0]=Y0(zt),ES=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=zr({prop:r,defaultProp:n??"",onChange:o,caller:zt});return p.jsx(K0,{scope:t.__scopeToggleGroup,type:"single",value:w.useMemo(()=>i?[i]:[],[i]),onItemActivate:s,onItemDeactivate:w.useCallback(()=>s(""),[s]),children:p.jsx(Z0,{...a,ref:e})})}),TS=w.forwardRef((t,e)=>{const{value:r,defaultValue:n,onValueChange:o=()=>{},...a}=t,[i,s]=zr({prop:r,defaultProp:n??[],onChange:o,caller:zt}),u=w.useCallback(c=>s((h=[])=>[...h,c]),[s]),l=w.useCallback(c=>s((h=[])=>h.filter(f=>f!==c)),[s]);return p.jsx(K0,{scope:t.__scopeToggleGroup,type:"multiple",value:i,onItemActivate:u,onItemDeactivate:l,children:p.jsx(Z0,{...a,ref:e})})});iu.displayName=zt;var[NS,jS]=Y0(zt),Z0=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,disabled:n=!1,rovingFocus:o=!0,orientation:a,dir:i,loop:s=!0,...u}=t,l=X0(r),c=Qs(i),h={role:"group",dir:c,...u};return p.jsx(NS,{scope:r,rovingFocus:o,disabled:n,children:o?p.jsx(SS,{asChild:!0,...l,orientation:a,dir:c,loop:s,children:p.jsx(me.div,{...h,ref:e})}):p.jsx(me.div,{...h,ref:e})})}),Io="ToggleGroupItem",Q0=w.forwardRef((t,e)=>{const r=J0(Io,t.__scopeToggleGroup),n=jS(Io,t.__scopeToggleGroup),o=X0(t.__scopeToggleGroup),a=r.value.includes(t.value),i=n.disabled||t.disabled,s={...t,pressed:a,disabled:i},u=w.useRef(null);return n.rovingFocus?p.jsx(CS,{asChild:!0,...o,focusable:!i,active:a,ref:u,children:p.jsx(sc,{...s,ref:e})}):p.jsx(sc,{...s,ref:e})});Q0.displayName=Io;var sc=w.forwardRef((t,e)=>{const{__scopeToggleGroup:r,value:n,...o}=t,a=J0(Io,r),i={role:"radio","aria-checked":t.pressed,"aria-pressed":void 0},s=a.type==="single"?i:void 0;return p.jsx(au,{...s,...o,ref:e,onPressedChange:u=>{u?a.onItemActivate(n):a.onItemDeactivate(n)}})}),ep=iu,tp=Q0;const rp=Oc("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"}}),AS=v.forwardRef(({className:t,variant:e,size:r,...n},o)=>p.jsx(G0,{ref:o,className:Se(rp({variant:e,size:r,className:t})),...n}));AS.displayName=G0.displayName;const np=v.createContext({size:"default",variant:"default"}),op=v.forwardRef(({className:t,variant:e,size:r,children:n,...o},a)=>p.jsx(ep,{ref:a,className:Se("flex items-center justify-center gap-1",t),...o,children:p.jsx(np.Provider,{value:{variant:e,size:r},children:n})}));op.displayName=ep.displayName;const ap=v.forwardRef(({className:t,children:e,variant:r,size:n,...o},a)=>{const i=v.useContext(np);return p.jsx(tp,{ref:a,className:Se(rp({variant:i.variant||r,size:i.size||n}),t),...o,children:e})});ap.displayName=tp.displayName;var OS=t=>{switch(t){case"success":return _S;case"info":return IS;case"warning":return RS;case"error":return DS;default:return null}},PS=Array(12).fill(0),kS=({visible:t,className:e})=>w.createElement("div",{className:["sonner-loading-wrapper",e].filter(Boolean).join(" "),"data-visible":t},w.createElement("div",{className:"sonner-spinner"},PS.map((r,n)=>w.createElement("div",{className:"sonner-loading-bar",key:`spinner-bar-${n}`})))),_S=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"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"})),RS=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"})),IS=w.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},w.createElement("path",{fillRule:"evenodd",d:"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"})),DS=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"})),MS=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"})),LS=()=>{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},Ii=1,$S=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:Ii++,a=this.toasts.find(s=>s.id===o),i=t.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(o)&&this.dismissedToasts.delete(o),a?this.toasts=this.toasts.map(s=>s.id===o?(this.publish({...s,...t,id:o,title:r}),{...s,...t,id:o,dismissible:i,title:r}):s):this.addToast({title:r,...n,dismissible:i,id:o}),o},this.dismiss=t=>(this.dismissedToasts.add(t),t||this.toasts.forEach(e=>{this.subscribers.forEach(r=>r({id:e.id,dismiss:!0}))}),this.subscribers.forEach(e=>e({id:t,dismiss:!0})),t),this.message=(t,e)=>this.create({...e,message:t}),this.error=(t,e)=>this.create({...e,message:t,type:"error"}),this.success=(t,e)=>this.create({...e,type:"success",message:t}),this.info=(t,e)=>this.create({...e,type:"info",message:t}),this.warning=(t,e)=>this.create({...e,type:"warning",message:t}),this.loading=(t,e)=>this.create({...e,type:"loading",message:t}),this.promise=(t,e)=>{if(!e)return;let r;e.loading!==void 0&&(r=this.create({...e,promise:t,type:"loading",message:e.loading,description:typeof e.description!="function"?e.description:void 0}));let n=t instanceof Promise?t:t(),o=r!==void 0,a,i=n.then(async u=>{if(a=["resolve",u],w.isValidElement(u))o=!1,this.create({id:r,type:"default",message:u});else if(HS(u)&&!u.ok){o=!1;let l=typeof e.error=="function"?await e.error(`HTTP error! status: ${u.status}`):e.error,c=typeof e.description=="function"?await e.description(`HTTP error! status: ${u.status}`):e.description;this.create({id:r,type:"error",message:l,description:c})}else if(e.success!==void 0){o=!1;let l=typeof e.success=="function"?await e.success(u):e.success,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"success",message:l,description:c})}}).catch(async u=>{if(a=["reject",u],e.error!==void 0){o=!1;let l=typeof e.error=="function"?await e.error(u):e.error,c=typeof e.description=="function"?await e.description(u):e.description;this.create({id:r,type:"error",message:l,description:c})}}).finally(()=>{var u;o&&(this.dismiss(r),r=void 0),(u=e.finally)==null||u.call(e)}),s=()=>new Promise((u,l)=>i.then(()=>a[0]==="reject"?l(a[1]):u(a[1])).catch(l));return typeof r!="string"&&typeof r!="number"?{unwrap:s}:Object.assign(r,{unwrap:s})},this.custom=(t,e)=>{let r=(e==null?void 0:e.id)||Ii++;return this.create({jsx:t(r),id:r,...e}),r},this.getActiveToasts=()=>this.toasts.filter(t=>!this.dismissedToasts.has(t.id)),this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}},Te=new $S,BS=(t,e)=>{let r=(e==null?void 0:e.id)||Ii++;return Te.addToast({title:t,...e,id:r}),r},HS=t=>t&&typeof t=="object"&&"ok"in t&&typeof t.ok=="boolean"&&"status"in t&&typeof t.status=="number",zS=BS,FS=()=>Te.toasts,qS=()=>Te.getActiveToasts(),US=Object.assign(zS,{success:Te.success,info:Te.info,warning:Te.warning,error:Te.error,custom:Te.custom,message:Te.message,promise:Te.promise,dismiss:Te.dismiss,loading:Te.loading},{getHistory:FS,getToasts:qS});function VS(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))}VS(`:where(html[dir="ltr"]),:where([data-sonner-toaster][dir="ltr"]){--toast-icon-margin-start: -3px;--toast-icon-margin-end: 4px;--toast-svg-margin-start: -1px;--toast-svg-margin-end: 0px;--toast-button-margin-start: auto;--toast-button-margin-end: 0;--toast-close-button-start: 0;--toast-close-button-end: unset;--toast-close-button-transform: translate(-35%, -35%)}:where(html[dir="rtl"]),:where([data-sonner-toaster][dir="rtl"]){--toast-icon-margin-start: 4px;--toast-icon-margin-end: -3px;--toast-svg-margin-start: 0px;--toast-svg-margin-end: -1px;--toast-button-margin-start: 0;--toast-button-margin-end: auto;--toast-close-button-start: unset;--toast-close-button-end: 0;--toast-close-button-transform: translate(35%, -35%)}:where([data-sonner-toaster]){position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1: hsl(0, 0%, 99%);--gray2: hsl(0, 0%, 97.3%);--gray3: hsl(0, 0%, 95.1%);--gray4: hsl(0, 0%, 93%);--gray5: hsl(0, 0%, 90.9%);--gray6: hsl(0, 0%, 88.7%);--gray7: hsl(0, 0%, 85.8%);--gray8: hsl(0, 0%, 78%);--gray9: hsl(0, 0%, 56.1%);--gray10: hsl(0, 0%, 52.3%);--gray11: hsl(0, 0%, 43.5%);--gray12: hsl(0, 0%, 9%);--border-radius: 8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:none;z-index:999999999;transition:transform .4s ease}:where([data-sonner-toaster][data-lifted="true"]){transform:translateY(-10px)}@media (hover: none) and (pointer: coarse){:where([data-sonner-toaster][data-lifted="true"]){transform:none}}:where([data-sonner-toaster][data-x-position="right"]){right:var(--offset-right)}:where([data-sonner-toaster][data-x-position="left"]){left:var(--offset-left)}:where([data-sonner-toaster][data-x-position="center"]){left:50%;transform:translate(-50%)}:where([data-sonner-toaster][data-y-position="top"]){top:var(--offset-top)}:where([data-sonner-toaster][data-y-position="bottom"]){bottom:var(--offset-bottom)}:where([data-sonner-toast]){--y: translateY(100%);--lift-amount: calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);filter:blur(0);touch-action:none;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:none;overflow-wrap:anywhere}:where([data-sonner-toast][data-styled="true"]){padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px #0000001a;width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}:where([data-sonner-toast]:focus-visible){box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast][data-y-position="top"]){top:0;--y: translateY(-100%);--lift: 1;--lift-amount: calc(1 * var(--gap))}:where([data-sonner-toast][data-y-position="bottom"]){bottom:0;--y: translateY(100%);--lift: -1;--lift-amount: calc(var(--lift) * var(--gap))}:where([data-sonner-toast]) :where([data-description]){font-weight:400;line-height:1.4;color:inherit}:where([data-sonner-toast]) :where([data-title]){font-weight:500;line-height:1.5;color:inherit}:where([data-sonner-toast]) :where([data-icon]){display:flex;height:16px;width:16px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}:where([data-sonner-toast][data-promise="true"]) :where([data-icon])>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}:where([data-sonner-toast]) :where([data-icon])>*{flex-shrink:0}:where([data-sonner-toast]) :where([data-icon]) svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}:where([data-sonner-toast]) :where([data-content]){display:flex;flex-direction:column;gap:2px}[data-sonner-toast][data-styled=true] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:none;display:flex;align-items:center;flex-shrink:0;transition:opacity .4s,box-shadow .2s}:where([data-sonner-toast]) :where([data-button]):focus-visible{box-shadow:0 0 0 2px #0006}:where([data-sonner-toast]) :where([data-button]):first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}:where([data-sonner-toast]) :where([data-cancel]){color:var(--normal-text);background:rgba(0,0,0,.08)}:where([data-sonner-toast][data-theme="dark"]) :where([data-cancel]){background:rgba(255,255,255,.3)}:where([data-sonner-toast]) :where([data-close-button]){position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]{background:var(--gray1)}:where([data-sonner-toast]) :where([data-close-button]):focus-visible{box-shadow:0 4px 12px #0000001a,0 0 0 2px #0003}:where([data-sonner-toast]) :where([data-disabled="true"]){cursor:not-allowed}:where([data-sonner-toast]):hover :where([data-close-button]):hover{background:var(--gray2);border-color:var(--gray5)}:where([data-sonner-toast][data-swiping="true"]):before{content:"";position:absolute;left:-50%;right:-50%;height:100%;z-index:-1}:where([data-sonner-toast][data-y-position="top"][data-swiping="true"]):before{bottom:50%;transform:scaleY(3) translateY(50%)}:where([data-sonner-toast][data-y-position="bottom"][data-swiping="true"]):before{top:50%;transform:scaleY(3) translateY(-50%)}:where([data-sonner-toast][data-swiping="false"][data-removed="true"]):before{content:"";position:absolute;inset:0;transform:scaleY(2)}:where([data-sonner-toast]):after{content:"";position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}:where([data-sonner-toast][data-mounted="true"]){--y: translateY(0);opacity:1}:where([data-sonner-toast][data-expanded="false"][data-front="false"]){--scale: var(--toasts-before) * .05 + 1;--y: translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}:where([data-sonner-toast])>*{transition:opacity .4s}:where([data-sonner-toast][data-expanded="false"][data-front="false"][data-styled="true"])>*{opacity:0}:where([data-sonner-toast][data-visible="false"]){opacity:0;pointer-events:none}:where([data-sonner-toast][data-mounted="true"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}:where([data-sonner-toast][data-removed="true"][data-front="true"][data-swipe-out="false"]){--y: translateY(calc(var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="true"]){--y: translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}:where([data-sonner-toast][data-removed="true"][data-front="false"][data-swipe-out="false"][data-expanded="false"]){--y: translateY(40%);opacity:0;transition:transform .5s,opacity .2s}:where([data-sonner-toast][data-removed="true"][data-front="false"]):before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount-y, 0px)) translate(var(--swipe-amount-x, 0px));transition:none}[data-sonner-toast][data-swiped=true]{user-select:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation-duration:.2s;animation-timing-function:ease-out;animation-fill-mode:forwards}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=left]{animation-name:swipe-out-left}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=right]{animation-name:swipe-out-right}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=up]{animation-name:swipe-out-up}[data-sonner-toast][data-swipe-out=true][data-swipe-direction=down]{animation-name:swipe-out-down}@keyframes swipe-out-left{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) - 100%));opacity:0}}@keyframes swipe-out-right{0%{transform:var(--y) translate(var(--swipe-amount-x));opacity:1}to{transform:var(--y) translate(calc(var(--swipe-amount-x) + 100%));opacity:0}}@keyframes swipe-out-up{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) - 100%));opacity:0}}@keyframes swipe-out-down{0%{transform:var(--y) translateY(var(--swipe-amount-y));opacity:1}to{transform:var(--y) translateY(calc(var(--swipe-amount-y) + 100%));opacity:0}}@media (max-width: 600px){[data-sonner-toaster]{position:fixed;right:var(--mobile-offset-right);left:var(--mobile-offset-left);width:100%}[data-sonner-toaster][dir=rtl]{left:calc(var(--mobile-offset-left) * -1)}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - var(--mobile-offset-left) * 2)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset-left)}[data-sonner-toaster][data-y-position=bottom]{bottom:var(--mobile-offset-bottom)}[data-sonner-toaster][data-y-position=top]{top:var(--mobile-offset-top)}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset-left);right:var(--mobile-offset-right);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg: #fff;--normal-border: var(--gray4);--normal-text: var(--gray12);--success-bg: hsl(143, 85%, 96%);--success-border: hsl(145, 92%, 91%);--success-text: hsl(140, 100%, 27%);--info-bg: hsl(208, 100%, 97%);--info-border: hsl(221, 91%, 91%);--info-text: hsl(210, 92%, 45%);--warning-bg: hsl(49, 100%, 97%);--warning-border: hsl(49, 91%, 91%);--warning-text: hsl(31, 92%, 45%);--error-bg: hsl(359, 100%, 97%);--error-border: hsl(359, 100%, 94%);--error-text: hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg: #000;--normal-border: hsl(0, 0%, 20%);--normal-text: var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg: #fff;--normal-border: var(--gray3);--normal-text: var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg: #000;--normal-bg-hover: hsl(0, 0%, 12%);--normal-border: hsl(0, 0%, 20%);--normal-border-hover: hsl(0, 0%, 25%);--normal-text: var(--gray1);--success-bg: hsl(150, 100%, 6%);--success-border: hsl(147, 100%, 12%);--success-text: hsl(150, 86%, 65%);--info-bg: hsl(215, 100%, 6%);--info-border: hsl(223, 100%, 12%);--info-text: hsl(216, 87%, 65%);--warning-bg: hsl(64, 100%, 6%);--warning-border: hsl(60, 100%, 12%);--warning-text: hsl(46, 87%, 65%);--error-bg: hsl(358, 76%, 10%);--error-border: hsl(357, 89%, 16%);--error-text: hsl(358, 100%, 81%)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]{background:var(--normal-bg);border-color:var(--normal-border);color:var(--normal-text)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast] [data-close-button]:hover{background:var(--normal-bg-hover);border-color:var(--normal-border-hover)}[data-rich-colors=true][data-sonner-toast][data-type=success],[data-rich-colors=true][data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true][data-sonner-toast][data-type=info],[data-rich-colors=true][data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true][data-sonner-toast][data-type=warning],[data-rich-colors=true][data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true][data-sonner-toast][data-type=error],[data-rich-colors=true][data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size: 16px;height:var(--size);width:var(--size);position:absolute;inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:nth-child(1){animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}to{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}to{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}to{opacity:.15}}@media (prefers-reduced-motion){[data-sonner-toast],[data-sonner-toast]>*,.sonner-loading-bar{transition:none!important;animation:none!important}}.sonner-loader{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);transform-origin:center;transition:opacity .2s,transform .2s}.sonner-loader[data-visible=false]{opacity:0;transform:scale(.8) translate(-50%,-50%)}
|
|
275
|
+
`);function Jn(t){return t.label!==void 0}var WS=3,GS="32px",YS="16px",uc=4e3,XS=356,KS=14,JS=20,ZS=200;function He(...t){return t.filter(Boolean).join(" ")}function QS(t){let[e,r]=t.split("-"),n=[];return e&&n.push(e),r&&n.push(r),n}var eC=t=>{var e,r,n,o,a,i,s,u,l,c,h;let{invert:f,toast:d,unstyled:b,interacting:g,setHeights:m,visibleToasts:y,heights:x,index:S,toasts:E,expanded:j,removeToast:P,defaultRichColors:_,closeButton:D,style:L,cancelButtonStyle:$,actionButtonStyle:C,className:N="",descriptionClassName:k="",duration:I,position:T,gap:O,loadingIcon:A,expandByDefault:R,classNames:M,icons:q,closeButtonAriaLabel:de="Close toast",pauseWhenPageIsHidden:Z}=t,[B,H]=w.useState(null),[he,X]=w.useState(null),[z,Ee]=w.useState(!1),[ye,be]=w.useState(!1),[Ve,it]=w.useState(!1),[We,_n]=w.useState(!1),[ga,Rn]=w.useState(!1),[va,Ur]=w.useState(0),[ar,uu]=w.useState(0),Vr=w.useRef(d.duration||I||uc),lu=w.useRef(null),Ft=w.useRef(null),lp=S===0,cp=S+1<=y,ke=d.type,ir=d.dismissible!==!1,dp=d.className||"",fp=d.descriptionClassName||"",In=w.useMemo(()=>x.findIndex(U=>U.toastId===d.id)||0,[x,d.id]),pp=w.useMemo(()=>{var U;return(U=d.closeButton)!=null?U:D},[d.closeButton,D]),cu=w.useMemo(()=>d.duration||I||uc,[d.duration,I]),ya=w.useRef(0),sr=w.useRef(0),du=w.useRef(0),ur=w.useRef(null),[hp,mp]=T.split("-"),fu=w.useMemo(()=>x.reduce((U,te,le)=>le>=In?U:U+te.height,0),[x,In]),pu=LS(),bp=d.invert||f,xa=ke==="loading";sr.current=w.useMemo(()=>In*O+fu,[In,fu]),w.useEffect(()=>{Vr.current=cu},[cu]),w.useEffect(()=>{Ee(!0)},[]),w.useEffect(()=>{let U=Ft.current;if(U){let te=U.getBoundingClientRect().height;return uu(te),m(le=>[{toastId:d.id,height:te,position:d.position},...le]),()=>m(le=>le.filter(Le=>Le.toastId!==d.id))}},[m,d.id]),w.useLayoutEffect(()=>{if(!z)return;let U=Ft.current,te=U.style.height;U.style.height="auto";let le=U.getBoundingClientRect().height;U.style.height=te,uu(le),m(Le=>Le.find($e=>$e.toastId===d.id)?Le.map($e=>$e.toastId===d.id?{...$e,height:le}:$e):[{toastId:d.id,height:le,position:d.position},...Le])},[z,d.title,d.description,m,d.id]);let Et=w.useCallback(()=>{be(!0),Ur(sr.current),m(U=>U.filter(te=>te.toastId!==d.id)),setTimeout(()=>{P(d)},ZS)},[d,P,m,sr]);w.useEffect(()=>{if(d.promise&&ke==="loading"||d.duration===1/0||d.type==="loading")return;let U;return j||g||Z&&pu?(()=>{if(du.current<ya.current){let te=new Date().getTime()-ya.current;Vr.current=Vr.current-te}du.current=new Date().getTime()})():Vr.current!==1/0&&(ya.current=new Date().getTime(),U=setTimeout(()=>{var te;(te=d.onAutoClose)==null||te.call(d,d),Et()},Vr.current)),()=>clearTimeout(U)},[j,g,d,ke,Z,pu,Et]),w.useEffect(()=>{d.delete&&Et()},[Et,d.delete]);function gp(){var U,te,le;return q!=null&&q.loading?w.createElement("div",{className:He(M==null?void 0:M.loader,(U=d==null?void 0:d.classNames)==null?void 0:U.loader,"sonner-loader"),"data-visible":ke==="loading"},q.loading):A?w.createElement("div",{className:He(M==null?void 0:M.loader,(te=d==null?void 0:d.classNames)==null?void 0:te.loader,"sonner-loader"),"data-visible":ke==="loading"},A):w.createElement(kS,{className:He(M==null?void 0:M.loader,(le=d==null?void 0:d.classNames)==null?void 0:le.loader),visible:ke==="loading"})}return w.createElement("li",{tabIndex:0,ref:Ft,className:He(N,dp,M==null?void 0:M.toast,(e=d==null?void 0:d.classNames)==null?void 0:e.toast,M==null?void 0:M.default,M==null?void 0:M[ke],(r=d==null?void 0:d.classNames)==null?void 0:r[ke]),"data-sonner-toast":"","data-rich-colors":(n=d.richColors)!=null?n:_,"data-styled":!(d.jsx||d.unstyled||b),"data-mounted":z,"data-promise":!!d.promise,"data-swiped":ga,"data-removed":ye,"data-visible":cp,"data-y-position":hp,"data-x-position":mp,"data-index":S,"data-front":lp,"data-swiping":Ve,"data-dismissible":ir,"data-type":ke,"data-invert":bp,"data-swipe-out":We,"data-swipe-direction":he,"data-expanded":!!(j||R&&z),style:{"--index":S,"--toasts-before":S,"--z-index":E.length-S,"--offset":`${ye?va:sr.current}px`,"--initial-height":R?"auto":`${ar}px`,...L,...d.style},onDragEnd:()=>{it(!1),H(null),ur.current=null},onPointerDown:U=>{xa||!ir||(lu.current=new Date,Ur(sr.current),U.target.setPointerCapture(U.pointerId),U.target.tagName!=="BUTTON"&&(it(!0),ur.current={x:U.clientX,y:U.clientY}))},onPointerUp:()=>{var U,te,le,Le;if(We||!ir)return;ur.current=null;let $e=Number(((U=Ft.current)==null?void 0:U.style.getPropertyValue("--swipe-amount-x").replace("px",""))||0),Tt=Number(((te=Ft.current)==null?void 0:te.style.getPropertyValue("--swipe-amount-y").replace("px",""))||0),qt=new Date().getTime()-((le=lu.current)==null?void 0:le.getTime()),Be=B==="x"?$e:Tt,Nt=Math.abs(Be)/qt;if(Math.abs(Be)>=JS||Nt>.11){Ur(sr.current),(Le=d.onDismiss)==null||Le.call(d,d),X(B==="x"?$e>0?"right":"left":Tt>0?"down":"up"),Et(),_n(!0),Rn(!1);return}it(!1),H(null)},onPointerMove:U=>{var te,le,Le,$e;if(!ur.current||!ir||((te=window.getSelection())==null?void 0:te.toString().length)>0)return;let Tt=U.clientY-ur.current.y,qt=U.clientX-ur.current.x,Be=(le=t.swipeDirections)!=null?le:QS(T);!B&&(Math.abs(qt)>1||Math.abs(Tt)>1)&&H(Math.abs(qt)>Math.abs(Tt)?"x":"y");let Nt={x:0,y:0};B==="y"?(Be.includes("top")||Be.includes("bottom"))&&(Be.includes("top")&&Tt<0||Be.includes("bottom")&&Tt>0)&&(Nt.y=Tt):B==="x"&&(Be.includes("left")||Be.includes("right"))&&(Be.includes("left")&&qt<0||Be.includes("right")&&qt>0)&&(Nt.x=qt),(Math.abs(Nt.x)>0||Math.abs(Nt.y)>0)&&Rn(!0),(Le=Ft.current)==null||Le.style.setProperty("--swipe-amount-x",`${Nt.x}px`),($e=Ft.current)==null||$e.style.setProperty("--swipe-amount-y",`${Nt.y}px`)}},pp&&!d.jsx?w.createElement("button",{"aria-label":de,"data-disabled":xa,"data-close-button":!0,onClick:xa||!ir?()=>{}:()=>{var U;Et(),(U=d.onDismiss)==null||U.call(d,d)},className:He(M==null?void 0:M.closeButton,(o=d==null?void 0:d.classNames)==null?void 0:o.closeButton)},(a=q==null?void 0:q.close)!=null?a:MS):null,d.jsx||w.isValidElement(d.title)?d.jsx?d.jsx:typeof d.title=="function"?d.title():d.title:w.createElement(w.Fragment,null,ke||d.icon||d.promise?w.createElement("div",{"data-icon":"",className:He(M==null?void 0:M.icon,(i=d==null?void 0:d.classNames)==null?void 0:i.icon)},d.promise||d.type==="loading"&&!d.icon?d.icon||gp():null,d.type!=="loading"?d.icon||(q==null?void 0:q[ke])||OS(ke):null):null,w.createElement("div",{"data-content":"",className:He(M==null?void 0:M.content,(s=d==null?void 0:d.classNames)==null?void 0:s.content)},w.createElement("div",{"data-title":"",className:He(M==null?void 0:M.title,(u=d==null?void 0:d.classNames)==null?void 0:u.title)},typeof d.title=="function"?d.title():d.title),d.description?w.createElement("div",{"data-description":"",className:He(k,fp,M==null?void 0:M.description,(l=d==null?void 0:d.classNames)==null?void 0:l.description)},typeof d.description=="function"?d.description():d.description):null),w.isValidElement(d.cancel)?d.cancel:d.cancel&&Jn(d.cancel)?w.createElement("button",{"data-button":!0,"data-cancel":!0,style:d.cancelButtonStyle||$,onClick:U=>{var te,le;Jn(d.cancel)&&ir&&((le=(te=d.cancel).onClick)==null||le.call(te,U),Et())},className:He(M==null?void 0:M.cancelButton,(c=d==null?void 0:d.classNames)==null?void 0:c.cancelButton)},d.cancel.label):null,w.isValidElement(d.action)?d.action:d.action&&Jn(d.action)?w.createElement("button",{"data-button":!0,"data-action":!0,style:d.actionButtonStyle||C,onClick:U=>{var te,le;Jn(d.action)&&((le=(te=d.action).onClick)==null||le.call(te,U),!U.defaultPrevented&&Et())},className:He(M==null?void 0:M.actionButton,(h=d==null?void 0:d.classNames)==null?void 0:h.actionButton)},d.action.label):null))};function lc(){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 tC(t,e){let r={};return[t,e].forEach((n,o)=>{let a=o===1,i=a?"--mobile-offset":"--offset",s=a?YS:GS;function u(l){["top","right","bottom","left"].forEach(c=>{r[`${i}-${c}`]=typeof l=="number"?`${l}px`:l})}typeof n=="number"||typeof n=="string"?u(n):typeof n=="object"?["top","right","bottom","left"].forEach(l=>{n[l]===void 0?r[`${i}-${l}`]=s:r[`${i}-${l}`]=typeof n[l]=="number"?`${n[l]}px`:n[l]}):u(s)}),r}w.forwardRef(function(t,e){let{invert:r,position:n="bottom-right",hotkey:o=["altKey","KeyT"],expand:a,closeButton:i,className:s,offset:u,mobileOffset:l,theme:c="light",richColors:h,duration:f,style:d,visibleToasts:b=WS,toastOptions:g,dir:m=lc(),gap:y=KS,loadingIcon:x,icons:S,containerAriaLabel:E="Notifications",pauseWhenPageIsHidden:j}=t,[P,_]=w.useState([]),D=w.useMemo(()=>Array.from(new Set([n].concat(P.filter(Z=>Z.position).map(Z=>Z.position)))),[P,n]),[L,$]=w.useState([]),[C,N]=w.useState(!1),[k,I]=w.useState(!1),[T,O]=w.useState(c!=="system"?c:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),A=w.useRef(null),R=o.join("+").replace(/Key/g,"").replace(/Digit/g,""),M=w.useRef(null),q=w.useRef(!1),de=w.useCallback(Z=>{_(B=>{var H;return(H=B.find(he=>he.id===Z.id))!=null&&H.delete||Te.dismiss(Z.id),B.filter(({id:he})=>he!==Z.id)})},[]);return w.useEffect(()=>Te.subscribe(Z=>{if(Z.dismiss){_(B=>B.map(H=>H.id===Z.id?{...H,delete:!0}:H));return}setTimeout(()=>{Di.flushSync(()=>{_(B=>{let H=B.findIndex(he=>he.id===Z.id);return H!==-1?[...B.slice(0,H),{...B[H],...Z},...B.slice(H+1)]:[Z,...B]})})})}),[]),w.useEffect(()=>{if(c!=="system"){O(c);return}if(c==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?O("dark"):O("light")),typeof window>"u")return;let Z=window.matchMedia("(prefers-color-scheme: dark)");try{Z.addEventListener("change",({matches:B})=>{O(B?"dark":"light")})}catch{Z.addListener(({matches:H})=>{try{O(H?"dark":"light")}catch(he){console.error(he)}})}},[c]),w.useEffect(()=>{P.length<=1&&N(!1)},[P]),w.useEffect(()=>{let Z=B=>{var H,he;o.every(X=>B[X]||B.code===X)&&(N(!0),(H=A.current)==null||H.focus()),B.code==="Escape"&&(document.activeElement===A.current||(he=A.current)!=null&&he.contains(document.activeElement))&&N(!1)};return document.addEventListener("keydown",Z),()=>document.removeEventListener("keydown",Z)},[o]),w.useEffect(()=>{if(A.current)return()=>{M.current&&(M.current.focus({preventScroll:!0}),M.current=null,q.current=!1)}},[A.current]),w.createElement("section",{ref:e,"aria-label":`${E} ${R}`,tabIndex:-1,"aria-live":"polite","aria-relevant":"additions text","aria-atomic":"false",suppressHydrationWarning:!0},D.map((Z,B)=>{var H;let[he,X]=Z.split("-");return P.length?w.createElement("ol",{key:Z,dir:m==="auto"?lc():m,tabIndex:-1,ref:A,className:s,"data-sonner-toaster":!0,"data-theme":T,"data-y-position":he,"data-lifted":C&&P.length>1&&!a,"data-x-position":X,style:{"--front-toast-height":`${((H=L[0])==null?void 0:H.height)||0}px`,"--width":`${XS}px`,"--gap":`${y}px`,...d,...tC(u,l)},onBlur:z=>{q.current&&!z.currentTarget.contains(z.relatedTarget)&&(q.current=!1,M.current&&(M.current.focus({preventScroll:!0}),M.current=null))},onFocus:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||q.current||(q.current=!0,M.current=z.relatedTarget)},onMouseEnter:()=>N(!0),onMouseMove:()=>N(!0),onMouseLeave:()=>{k||N(!1)},onDragEnd:()=>N(!1),onPointerDown:z=>{z.target instanceof HTMLElement&&z.target.dataset.dismissible==="false"||I(!0)},onPointerUp:()=>I(!1)},P.filter(z=>!z.position&&B===0||z.position===Z).map((z,Ee)=>{var ye,be;return w.createElement(eC,{key:z.id,icons:S,index:Ee,toast:z,defaultRichColors:h,duration:(ye=g==null?void 0:g.duration)!=null?ye:f,className:g==null?void 0:g.className,descriptionClassName:g==null?void 0:g.descriptionClassName,invert:r,visibleToasts:b,closeButton:(be=g==null?void 0:g.closeButton)!=null?be:i,interacting: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:de,toasts:P.filter(Ve=>Ve.position==z.position),heights:L.filter(Ve=>Ve.position==z.position),setHeights:$,expandByDefault:a,gap:y,loadingIcon:x,expanded:C,pauseWhenPageIsHidden:j,swipeDirections:t.swipeDirections})})):null}))});const ip={mobile:{width:375,icon:Vi,label:"Mobile (375px)"},tablet:{width:768,icon:Wi,label:"Tablet (768px)"},small:{width:1024,icon:Ui,label:"Small Desktop (1024px)"},desktop:{width:"100%",icon:Gi,label:"Desktop (Full)"}},rC=({setIsOpen:t,onSave:e,deviceSize:r,onDeviceSizeChange:n})=>{const{actions:o,query:a,canUndo:i,canRedo:s}=Lt((l,c)=>({canUndo:c.history.canUndo(),canRedo:c.history.canRedo()})),u=()=>{const l=a.serialize();e==null||e(l),US.success("Page saved successfully")};return p.jsxs("div",{className:"flex items-center gap-4",children:[p.jsx(pn,{children:p.jsx(op,{type:"single",value:r,onValueChange:l=>l&&n(l),className:"bg-muted rounded-md p-1",children:Object.entries(ip).map(([l,{icon:c,label:h}])=>p.jsxs(Cr,{children:[p.jsx(Er,{asChild:!0,children:p.jsx(ap,{value:l,size:"sm",className:"data-[state=on]:bg-background data-[state=on]:shadow-sm",children:p.jsx(c,{className:"h-4 w-4"})})}),p.jsx(Xt,{side:"bottom",children:p.jsx("p",{children:h})})]},l))})}),p.jsx("div",{className:"h-6 w-px bg-border"}),p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(pt,{variant:"outline",size:"sm",onClick:()=>o.history.undo(),disabled:!i,children:p.jsx(xh,{className:"h-4 w-4"})}),p.jsx(pt,{variant:"outline",size:"sm",onClick:()=>o.history.redo(),disabled:!s,children:p.jsx(ph,{className:"h-4 w-4"})}),p.jsxs(pt,{size:"sm",onClick:()=>t(!0),className:"mb-4",children:["Preview Page ",p.jsx(uh,{className:"ml-2 h-4 w-4"})]}),p.jsxs(pt,{size:"sm",onClick:u,children:[p.jsx(hh,{className:"h-4 w-4 mr-2"}),"Save"]})]})]})},su=({children:t,className:e})=>{const{connectors:{connect:r,drag:n},selected:o}=ne(a=>({selected:a.events.selected}));return p.jsx("div",{ref:a=>{a&&r(n(a))},className:Qe("relative min-h-[100vh] bg-white",e||""),children:t})};su.craft={props:{},displayName:"Body",isCanvas:!0,rules:{canMoveIn:t=>t.every(e=>e.data.displayName!=="Body")}};const nC=({htmlJson:t})=>{const{actions:e}=Lt();return w.useEffect(()=>{t&&e.deserialize(t)},[t]),p.jsx(cd,{children:p.jsx(bt,{id:"mainBody",is:su,canvas:!0})})},ba={Body:su,Div:Zs,Wrapper:qr,Section:C0,Container:En,Text:qs,ButtonComponent:xs,Heading:Us,Image:Vs,Img:S0,Divider:Ws,Spacer:Gs,Video:Ks,Columns:w0,Link:Js,Footer:E0},oC=({setIsOpen:t,initialData:e,onSave:r,onStateChange:n})=>{var l;const o=Sn(),[a,i]=w.useState("desktop"),s=((l=ip[a])==null?void 0:l.width)||"100%",u=c=>{if(n)try{const h=c.serialize();n(h)}catch{}};return p.jsx(md,{resolver:ba,enabled:!0,onNodesChange:c=>u(c),children:p.jsx(cs,{value:a,children:p.jsx(Do,{value:o,children:p.jsxs("div",{className:"flex flex-col h-full",children:[p.jsxs("div",{className:"flex items-center justify-between pb-4 border-b border-border",children:[p.jsx("h2",{className:"text-lg font-semibold",children:"Page Builder"}),p.jsx(rC,{setIsOpen:t,onSave:r,deviceSize:a,onDeviceSizeChange:i})]}),p.jsxs("div",{className:"flex gap-4 mt-4 flex-1 min-h-0",children:[p.jsx(en,{className:"w-52",children:p.jsxs(tn,{className:"p-4 space-y-6",children:[p.jsx(z5,{}),p.jsx(aS,{})]})}),p.jsx(en,{className:"flex-1 overflow-hidden bg-muted/30 flex flex-col",children:p.jsx(tn,{className:"p-4 flex-1 flex justify-center overflow-hidden",children:p.jsx(ou,{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 s=="number"?`${s}px`:s,maxWidth:"100%"},children:p.jsx(nC,{htmlJson:e})})})})})}),p.jsx(en,{className:"w-64 flex flex-col",children:p.jsx(tn,{className:"p-4 flex-1 overflow-hidden",children:p.jsx(nS,{})})})]})]})})})})},aC=Object.freeze(Object.defineProperty({__proto__:null,default:oC,resolver:ba},Symbol.toStringTag,{value:"Module"})),Ha={mobile:{width:375,label:"Mobile",icon:Vi},tablet:{width:768,label:"Tablet",icon:Wi},small:{width:1024,label:"Small",icon:Ui},desktop:{width:1440,label:"Desktop",icon:Gi}},iC=({editorState:t,deviceSize:e})=>p.jsx(md,{resolver:ba,enabled:!1,children:p.jsx(cs,{value:e,children:p.jsx(sC,{editorState:t})})}),sC=({editorState:t})=>{const{actions:e}=Lt();return w.useEffect(()=>{if(t&&(e!=null&&e.deserialize))try{e.deserialize(t)}catch(r){console.error("Failed to deserialize editor state:",r)}},[t,e]),p.jsx(cd,{})},sp=({isOpen:t,onClose:e,eventData:r,editorState:n})=>{var s,u;const[o,a]=w.useState("desktop");if(w.useEffect(()=>{const l=c=>{c.key==="Escape"&&e()};if(t)return document.addEventListener("keydown",l),()=>document.removeEventListener("keydown",l)},[t,e]),!t)return null;const i=((s=Ha[o])==null?void 0:s.width)||1440;return p.jsxs("div",{className:"fixed inset-0 z-50 bg-background flex flex-col bg-white",children:[p.jsxs("div",{className:"flex items-center justify-between px-6 py-4 border-b border-border bg-card",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx("h2",{className:"text-lg font-semibold",children:"Preview"}),p.jsxs("span",{className:"text-sm text-muted-foreground",children:["(",(u=Ha[o])==null?void 0:u.width,"px)"]})]}),p.jsx("div",{className:"flex items-center gap-1 bg-muted rounded-lg p-1",children:Object.entries(Ha).map(([l,{label:c,icon:h}])=>p.jsxs(pt,{variant:"ghost",size:"sm",onClick:()=>a(l),className:Rh("h-8 px-3 gap-2",o===l&&"bg-background shadow-sm"),children:[p.jsx(h,{className:"h-4 w-4"}),p.jsx("span",{className:"hidden sm:inline",children:c})]},l))}),p.jsx(pt,{variant:"ghost",size:"icon",onClick:e,children:p.jsx(Sh,{className:"h-5 w-5"})})]}),p.jsx("div",{className:"flex-1 overflow-auto bg-muted/50 p-6",children:p.jsx("div",{className:"flex justify-center min-h-full",children:p.jsx("div",{className:"bg-white rounded-lg shadow-xl transition-all duration-300 overflow-hidden p-4",style:{width:`${i}px`,maxWidth:"100%"},children:p.jsx(Do,{value:r,children:n?p.jsx(iC,{editorState:n,deviceSize:o}):p.jsx("div",{className:"flex items-center justify-center h-48 text-muted-foreground",children:"No content to preview. Start building your page first."})})})})})]})},uC=w.lazy(()=>Promise.resolve().then(()=>aC)),lC=({editorState:t,initialData:e,onSave:r,onStateChange:n,eventData:o})=>{const[a,i]=w.useState(!1);return p.jsx(Do,{value:o,children:p.jsxs(w.Suspense,{fallback:p.jsx(en,{children:p.jsx(tn,{className:"p-4",children:p.jsxs("div",{className:"space-y-4",children:[p.jsx(Dn,{className:"h-8 w-48"}),p.jsxs("div",{className:"flex gap-4",children:[p.jsx(Dn,{className:"h-[500px] w-48"}),p.jsx(Dn,{className:"h-[500px] flex-1"}),p.jsx(Dn,{className:"h-[500px] w-64"})]})]})})}),children:[p.jsx(uC,{setIsOpen:i,initialData:e,onSave:r,onStateChange:n}),p.jsx(sp,{eventData:o,editorState:t,isOpen:a,onClose:()=>i(!1)})]})})},up=w.createContext({fetchVideoByLocation:null}),cC=({children:t,fetchVideoByLocation:e})=>p.jsx(up.Provider,{value:{fetchVideoByLocation:e},children:t}),dC=()=>w.useContext(up);exports.ApiConfigProvider=cC;exports.DEVICE_ORDER=Re;exports.DeviceSizeProvider=cs;exports.EventDataProvider=Do;exports.PageBuilder=lC;exports.PreviewModal=sp;exports.TEMPLATE_VARIABLES=q3;exports.getPlaceholderPaths=F3;exports.getResponsiveValue=ht;exports.hasTemplatePlaceholders=z3;exports.processTemplate=Co;exports.resolver=ba;exports.useApiConfig=dC;exports.useDeviceSize=er;exports.useEventData=Sn;
|