@wecode-team/we0-cms 1.1.34 → 1.1.35
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/components/prase.d.ts +2 -1
- package/dist/components/routes.d.ts +2 -1
- package/dist/components/ui/button.d.ts +1 -1
- package/dist/i18n/display.d.ts +6 -0
- package/dist/index.css +1 -1
- package/dist/index.esm.js +2 -2
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -13,7 +13,7 @@ var k={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"
|
|
|
13
13
|
*
|
|
14
14
|
* This source code is licensed under the ISC license.
|
|
15
15
|
* See the LICENSE file in the root directory of this source tree.
|
|
16
|
-
*/const C=(t,n)=>{const r=e.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:s="",children:l,...c},u)=>{return e.createElement("svg",{ref:u,...k,width:o,height:o,stroke:r,strokeWidth:i?24*Number(a)/Number(o):a,className:["lucide",`lucide-${d=t,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,s].join(" "),...c},[...n.map(([t,n])=>e.createElement(t,n)),...Array.isArray(l)?l:[l]]);var d});return r.displayName=`${t}`,r},N=C("AlertCircle",[["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"}]]),D=C("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),S=C("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),A=C("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),T=C("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),R=C("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),O=C("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),F=C("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),M=C("Crown",[["path",{d:"m2 4 3 12h14l3-12-6 7-4-7-4 7-6-7zm3 16h14",key:"zkxr6b"}]]),j=C("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),L=C("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),P=C("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]),I=C("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),z=C("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),B=C("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]),U=C("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]),q=C("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),H=C("Languages",[["path",{d:"m5 8 6 6",key:"1wu5hv"}],["path",{d:"m4 14 6-6 2-3",key:"1k1g8d"}],["path",{d:"M2 5h12",key:"or177f"}],["path",{d:"M7 2h1",key:"1t2jsx"}],["path",{d:"m22 22-5-10-5 10",key:"don7ne"}],["path",{d:"M14 18h6",key:"1m8k6r"}]]),W=C("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),V=C("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),$=C("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]),G=C("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),K=C("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Z=C("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Y=C("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),J=C("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),X=C("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]),Q=C("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]),ee=C("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),te=C("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"}]]),ne=C("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),re=C("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),oe=C("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),ae=C("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function ie(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function se(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=ie(e))&&(r&&(r+=" "),r+=t);return r}const le=e=>{const t=fe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ce(n,t)||de(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},ce=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ce(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},ue=/^\[(.+)\]$/,de=e=>{if(ue.test(e)){const t=ue.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},fe=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return ge(Object.entries(e.classGroups),n).forEach(([e,n])=>{pe(n,r,e,t)}),r},pe=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:me(t,e)).classGroupId=n)}if("function"==typeof e)return he(e)?void pe(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{pe(o,me(t,e),n,r)})})},me=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},he=e=>e.isThemeGetter,ge=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,be=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},ve=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],a=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+a)===t)){n.push(e.slice(l,c)),l=c+a;continue}if("/"===u){i=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},ye=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},we=/\s+/;function xe(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=Ee(e))&&(r&&(r+=" "),r+=t);return r}const Ee=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=Ee(e[r]))&&(n&&(n+=" "),n+=t);return n};function _e(e,...t){let n,r,o,a=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:be(e.cacheSize),parseClassName:ve(e),...le(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(we);let s="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),p=r(f?u.substring(0,d):u);if(!p){if(!f){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}f=!1}const m=ye(l).join(":"),h=c?m+"!":m,g=h+p;if(a.includes(g))continue;a.push(g);const b=o(p,f);for(let e=0;e<b.length;++e){const t=b[e];a.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,a),a}return function(){return a(xe.apply(null,arguments))}}const ke=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Ce=/^\[(?:([a-z-]+):)?(.+)\]$/i,Ne=/^\d+\/\d+$/,De=new Set(["px","full","screen"]),Se=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Ae=/\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$/,Te=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Re=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Oe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Fe=e=>je(e)||De.has(e)||Ne.test(e),Me=e=>Ke(e,"length",Ze),je=e=>Boolean(e)&&!Number.isNaN(Number(e)),Le=e=>Ke(e,"number",je),Pe=e=>Boolean(e)&&Number.isInteger(Number(e)),Ie=e=>e.endsWith("%")&&je(e.slice(0,-1)),ze=e=>Ce.test(e),Be=e=>Se.test(e),Ue=new Set(["length","size","percentage"]),qe=e=>Ke(e,Ue,Ye),He=e=>Ke(e,"position",Ye),We=new Set(["image","url"]),Ve=e=>Ke(e,We,Xe),$e=e=>Ke(e,"",Je),Ge=()=>!0,Ke=(e,t,n)=>{const r=Ce.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Ze=e=>Ae.test(e)&&!Te.test(e),Ye=()=>!1,Je=e=>Re.test(e),Xe=e=>Oe.test(e),Qe=()=>{const e=ke("colors"),t=ke("spacing"),n=ke("blur"),r=ke("brightness"),o=ke("borderColor"),a=ke("borderRadius"),i=ke("borderSpacing"),s=ke("borderWidth"),l=ke("contrast"),c=ke("grayscale"),u=ke("hueRotate"),d=ke("invert"),f=ke("gap"),p=ke("gradientColorStops"),m=ke("gradientColorStopPositions"),h=ke("inset"),g=ke("margin"),b=ke("opacity"),v=ke("padding"),y=ke("saturate"),w=ke("scale"),x=ke("sepia"),E=ke("skew"),_=ke("space"),k=ke("translate"),C=()=>["auto",ze,t],N=()=>[ze,t],D=()=>["",Fe,Me],S=()=>["auto",je,ze],A=()=>["","0",ze],T=()=>[je,ze];return{cacheSize:500,separator:":",theme:{colors:[Ge],spacing:[Fe,Me],blur:["none","",Be,ze],brightness:T(),borderColor:[e],borderRadius:["none","","full",Be,ze],borderSpacing:N(),borderWidth:D(),contrast:T(),grayscale:A(),hueRotate:T(),invert:A(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[Ie,Me],inset:C(),margin:C(),opacity:T(),padding:N(),saturate:T(),scale:T(),sepia:A(),skew:T(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",ze]}],container:["container"],columns:[{columns:[Be]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",ze]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pe,ze]}],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",ze]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Pe,ze]}],"grid-cols":[{"grid-cols":[Ge]}],"col-start-end":[{col:["auto",{span:["full",Pe,ze]},ze]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[Ge]}],"row-start-end":[{row:["auto",{span:[Pe,ze]},ze]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",ze]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",ze]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"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",ze,t]}],"min-w":[{"min-w":[ze,t,"min","max","fit"]}],"max-w":[{"max-w":[ze,t,"none","full","min","max","fit","prose",{screen:[Be]},Be]}],h:[{h:[ze,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[ze,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[ze,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[ze,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Be,Me]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Le]}],"font-family":[{font:[Ge]}],"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",ze]}],"line-clamp":[{"line-clamp":["none",je,Le]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Fe,ze]}],"list-image":[{"list-image":["none",ze]}],"list-style-type":[{list:["none","disc","decimal",ze]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Fe,Me]}],"underline-offset":[{"underline-offset":["auto",Fe,ze]}],"text-decoration-color":[{decoration:[e]}],"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",ze]}],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",ze]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",He]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",qe]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},Ve]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","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":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"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:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Fe,ze]}],"outline-w":[{outline:[Fe,Me]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Fe,Me]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Be,$e]}],"shadow-color":[{shadow:[Ge]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Be,ze]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"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",ze]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",ze]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",ze]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Pe,ze]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",ze]}],accent:[{accent:["auto",e]}],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",ze]}],"caret-color":[{caret:[e]}],"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",ze]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Fe,Me,Le]}],stroke:[{stroke:[e,"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"]}}},et=_e(Qe);function tt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return et(se(t))}function nt(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:tt("animate-pulse rounded-md bg-muted",t)},n))}function rt(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function ot(...e){return t=>{let n=!1;const r=e.map(e=>{const r=rt(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():rt(e[t],null)}}}}function at(...e){return c.useCallback(ot(...e),e)}var it=Symbol.for("react.lazy"),st=c[" use ".trim().toString()];function lt(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===it&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function ct(e){const n=dt(e),r=c.forwardRef((e,r)=>{let{children:o,...a}=e;lt(o)&&"function"==typeof st&&(o=st(o._payload));const i=c.Children.toArray(o),s=i.find(pt);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var ut=ct("Slot");function dt(e){const t=c.forwardRef((e,t)=>{let{children:n,...r}=e;if(lt(n)&&"function"==typeof st&&(n=st(n._payload)),c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?ot(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ft=Symbol("radix.slottable");function pt(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ft}const mt=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,ht=se,gt=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return ht(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=mt(t)||mt(r);return o[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return ht(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)};var bt=gt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-bold transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary))]/30 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 shadow-[0_4px_20px_-2px_rgba(93,112,82,0.15)] hover:scale-105 hover:shadow-[0_6px_24px_-4px_rgba(93,112,82,0.25)] active:scale-95",destructive:"bg-destructive text-destructive-foreground shadow-[0_4px_20px_-2px_rgba(168,84,72,0.15)] hover:scale-105 hover:shadow-[0_6px_24px_-4px_rgba(168,84,72,0.25)] active:scale-95",outline:"border border-[hsl(var(--border))]/70 bg-[hsl(var(--secondary))]/35 text-foreground shadow-[0_8px_24px_-18px_rgba(33,43,54,0.28)] hover:border-[hsl(var(--primary))]/30 hover:bg-[hsl(var(--secondary))]/55 hover:text-foreground hover:scale-105 active:scale-95",secondary:"bg-secondary text-secondary-foreground shadow-[0_4px_20px_-2px_rgba(193,140,93,0.15)] hover:scale-105 hover:shadow-[0_6px_24px_-4px_rgba(193,140,93,0.25)] active:scale-95",ghost:"bg-transparent text-primary hover:bg-primary/10 hover:scale-105 active:scale-95",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-12 px-8 py-2",sm:"h-10 px-6 text-sm",lg:"h-14 px-10 text-base",icon:"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),vt=c.forwardRef(function(e,t){var n=e.className,r=e.variant,o=e.size,a=e.asChild,i=void 0!==a&&a,s=_(e,["className","variant","size","asChild"]),l=i?ut:"button";return c.createElement(l,Object.assign({className:tt(bt({variant:r,size:o,className:n})),ref:t},s))});vt.displayName="Button";var yt=c.forwardRef(function(e,t){var n=e.className,r=e.type,o=_(e,["className","type"]);return c.createElement("input",Object.assign({type:r,className:tt("flex h-12 w-full rounded-full border border-input bg-background px-6 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary))]/30 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-300 md:text-sm",n),ref:t},o))});yt.displayName="Input";var wt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{const r=ct(`Primitive.${n}`),o=c.forwardRef((e,o)=>{const{asChild:a,...i}=e,s=a?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(s,{...i,ref:o})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{}),xt="horizontal",Et=["horizontal","vertical"],_t=c.forwardRef((e,n)=>{const{decorative:r,orientation:o=xt,...a}=e,i=function(e){return Et.includes(e)}(o)?o:xt,s=r?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return t.jsx(wt.div,{"data-orientation":i,...s,...a,ref:n})});_t.displayName="Separator";var kt=_t,Ct=c.forwardRef(function(e,t){var n=e.className,r=e.orientation,o=void 0===r?"horizontal":r,a=e.decorative,i=void 0===a||a,s=_(e,["className","orientation","decorative"]);return c.createElement(kt,Object.assign({ref:t,decorative:i,orientation:o,className:tt("shrink-0 bg-border","horizontal"===o?"h-[1px] w-full":"h-full w-[1px]",n)},s))});function Nt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function Dt(e,n=[]){let r=[];const o=()=>{const t=r.map(e=>c.createContext(e));return function(n){const r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return o.scopeName=e,[function(n,o){const a=c.createContext(o),i=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,l=r?.[e]?.[i]||a,u=c.useMemo(()=>s,Object.values(s));return t.jsx(l.Provider,{value:u,children:o})};return s.displayName=n+"Provider",[s,function(t,r){const s=r?.[e]?.[i]||a,l=c.useContext(s);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},St(o,...n)]}function St(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}Ct.displayName=kt.displayName;var At=globalThis?.document?c.useLayoutEffect:()=>{},Tt=c[" useId ".trim().toString()]||(()=>{}),Rt=0;function Ot(e){const[t,n]=c.useState(Tt());return At(()=>{e||n(e=>e??String(Rt++))},[e]),e||(t?`radix-${t}`:"")}var Ft=c[" useInsertionEffect ".trim().toString()]||At;function Mt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return Ft(()=>{a.current=t},[t]),c.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;{const t=c.useRef(void 0!==e);c.useEffect(()=>{const e=t.current;if(e!==s){}t.current=s},[s,r])}const u=c.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i]);return[l,u]}function jt(e){const t=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?ot(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Lt=Symbol("radix.slottable");function Pt(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Lt}var It=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{const r=function(e){const n=jt(e),r=c.forwardRef((e,r)=>{const{children:o,...a}=e,i=c.Children.toArray(o),s=i.find(Pt);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}(`Primitive.${n}`),o=c.forwardRef((e,o)=>{const{asChild:a,...i}=e,s=a?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(s,{...i,ref:o})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});function zt(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}function Bt(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}var Ut,qt="dismissableLayer.update",Ht="dismissableLayer.pointerDownOutside",Wt="dismissableLayer.focusOutside",Vt=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),$t=c.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...u}=e,d=c.useContext(Vt),[f,p]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=c.useState({}),g=at(n,e=>p(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(v),w=f?b.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,_=function(e,t=globalThis?.document){const n=Bt(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Kt(Ht,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));E&&!n&&(a?.(e),s?.(e),e.defaultPrevented||l?.())},m),k=function(e,t=globalThis?.document){const n=Bt(e),r=c.useRef(!1);return c.useEffect(()=>{const e=e=>{if(e.target&&!r.current){Kt(Wt,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(i?.(e),s?.(e),e.defaultPrevented||l?.())},m);return function(e,t=globalThis?.document){const n=Bt(e);c.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{w===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},m),c.useEffect(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ut=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Gt(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Ut)}},[f,m,r,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Gt())},[f,d]),c.useEffect(()=>{const e=()=>h({});return document.addEventListener(qt,e),()=>document.removeEventListener(qt,e)},[]),t.jsx(It.div,{...u,ref:g,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:Nt(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Nt(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Nt(e.onPointerDownCapture,_.onPointerDownCapture)})});$t.displayName="DismissableLayer";function Gt(){const e=new CustomEvent(qt);document.dispatchEvent(e)}function Kt(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?zt(o,a):o.dispatchEvent(a)}c.forwardRef((e,n)=>{const r=c.useContext(Vt),o=c.useRef(null),a=at(n,o);return c.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),t.jsx(It.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var Zt="focusScope.autoFocusOnMount",Yt="focusScope.autoFocusOnUnmount",Jt={bubbles:!1,cancelable:!0},Xt=c.forwardRef((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...s}=e,[l,u]=c.useState(null),d=Bt(a),f=Bt(i),p=c.useRef(null),m=at(n,e=>u(e)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:nn(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||nn(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&nn(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,l,h.paused]),c.useEffect(()=>{if(l){rn.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Zt,Jt);l.addEventListener(Zt,d),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(nn(r,{select:t}),document.activeElement!==n)return}((e=Qt(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&nn(l))}return()=>{l.removeEventListener(Zt,d),setTimeout(()=>{const e=new CustomEvent(Yt,Jt);l.addEventListener(Yt,f),l.dispatchEvent(e),e.defaultPrevented||nn(t??document.body,{select:!0}),l.removeEventListener(Yt,f),rn.remove(h)},0)}}var e},[l,d,f,h]);const g=c.useCallback(e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,a]=function(e){const t=Qt(e),n=en(t,e),r=en(t.reverse(),e);return[n,r]}(t);o&&a?e.shiftKey||n!==a?e.shiftKey&&n===o&&(e.preventDefault(),r&&nn(a,{select:!0})):(e.preventDefault(),r&&nn(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return t.jsx(It.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})});function Qt(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function en(e,t){for(const n of e)if(!tn(n,{upTo:t}))return n}function tn(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function nn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Xt.displayName="FocusScope";var rn=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=on(e,t),e.unshift(t)},remove(t){e=on(e,t),e[0]?.resume()}}}();function on(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var an=c.forwardRef((e,r)=>{const{container:o,...a}=e,[i,s]=c.useState(!1);At(()=>s(!0),[]);const l=o||i&&globalThis?.document?.body;return l?n.createPortal(t.jsx(It.div,{...a,ref:r}),l):null});an.displayName="Portal";var sn=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const e=ln(r.current);a.current="mounted"===s?e:"none"},[s]),At(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=ln(t);if(e)l("MOUNT");else if("none"===i||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),At(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=a=>{const i=ln(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=ln(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):c.Children.only(n),a=at(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?c.cloneElement(o,{ref:a}):null};function ln(e){return e?.animationName||"none"}sn.displayName="Presence";var cn=0;function un(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??dn()),document.body.insertAdjacentElement("beforeend",e[1]??dn()),cn++,()=>{1===cn&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),cn--}},[])}function dn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var fn="right-scroll-bar-position",pn="width-before-scroll-bar";function mn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var hn="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,gn=new WeakMap;function bn(t,n){var r,o,a,i=(r=n||null,o=function(e){return t.forEach(function(t){return mn(t,e)})},(a=e.useState(function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}})[0]).callback=o,a.facade);return hn(function(){var e=gn.get(i);if(e){var n=new Set(e),r=new Set(t),o=i.current;n.forEach(function(e){r.has(e)||mn(e,null)}),r.forEach(function(e){n.has(e)||mn(e,o)})}gn.set(i,t)},[t]),i}function vn(e){return e}var yn=function(e){var t=e.sideCar,n=_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,E({},n))};yn.isSideCarExport=!0;var wn=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=vn);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=E({async:!0,ssr:!1},e),t}(),xn=function(){},En=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:xn,onWheelCapture:xn,onTouchMoveCapture:xn}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,b=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,w=e.gapMode,x=_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,C=bn([n,t]),N=E(E({},x),o);return c.createElement(c.Fragment,null,d&&c.createElement(k,{sideCar:wn,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:w}),i?c.cloneElement(c.Children.only(s),E(E({},N),{ref:C})):c.createElement(y,E({},N,{className:l,ref:C}),s))});En.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},En.classNames={fullWidth:pn,zeroRight:fn};function _n(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var kn=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=_n())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Cn=function(){var e,t=(e=kn(),function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Nn={left:0,top:0,right:0,gap:0},Dn=function(e){return parseInt(e||"",10)||0},Sn=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Nn;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Dn(n),Dn(r),Dn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},An=Cn(),Tn="data-scroll-locked",Rn=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Tn,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(fn," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(pn," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(fn," .").concat(fn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(pn," .").concat(pn," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Tn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},On=function(){var e=parseInt(document.body.getAttribute(Tn)||"0",10);return isFinite(e)?e:0},Fn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;c.useEffect(function(){return document.body.setAttribute(Tn,(On()+1).toString()),function(){var e=On()-1;e<=0?document.body.removeAttribute(Tn):document.body.setAttribute(Tn,e.toString())}},[]);var a=c.useMemo(function(){return Sn(o)},[o]);return c.createElement(An,{styles:Rn(a,!t,o,n?"":"!important")})},Mn=!1;if("undefined"!=typeof window)try{var jn=Object.defineProperty({},"passive",{get:function(){return Mn=!0,!0}});window.addEventListener("test",jn,jn),window.removeEventListener("test",jn,jn)}catch(e){Mn=!1}var Ln=!!Mn&&{passive:!1},Pn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},In=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),zn(e,r)){var o=Bn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},zn=function(e,t){return"v"===e?function(e){return Pn(e,"overflowY")}(t):function(e){return Pn(e,"overflowX")}(t)},Bn=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Un=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},qn=function(e){return[e.deltaX,e.deltaY]},Hn=function(e){return e&&"current"in e?e.current:e},Wn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},Vn=0,$n=[];function Gn(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Kn,Zn=(Kn=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState(Vn++)[0],a=c.useState(Cn)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Hn),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=Un(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],c="deltaY"in e?e.deltaY:s[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=In(d,u);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=In(d,u)),!m)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var h=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,d=0,f=0;do{if(!s)break;var p=Bn(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&zn(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&i>d)||!u&&(o&&Math.abs(f)<1||!o&&-i>f))&&(c=!0),c}(h,t,e,"h"===h?l:c,!0)},[]),l=c.useCallback(function(e){var n=e;if($n.length&&$n[$n.length-1]===a){var r="deltaY"in n?qn(n):Un(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(i.current.shards||[]).map(Hn).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Gn(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=Un(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,qn(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,Un(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return $n.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,Ln),document.addEventListener("touchmove",l,Ln),document.addEventListener("touchstart",d,Ln),function(){$n=$n.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,Ln),document.removeEventListener("touchmove",l,Ln),document.removeEventListener("touchstart",d,Ln)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Wn(o)}):null,m?c.createElement(Fn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},wn.useMedium(Kn),yn),Yn=c.forwardRef(function(e,t){return c.createElement(En,E({},e,{ref:t,sideCar:Zn}))});Yn.classNames=En.classNames;var Jn=Yn,Xn=new WeakMap,Qn=new WeakMap,er={},tr=0,nr=function(e){return e&&(e.host||nr(e.parentNode))},rr=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=nr(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);er[n]||(er[n]=new WeakMap);var a=er[n],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Xn.get(e)||0)+1,c=(a.get(e)||0)+1;Xn.set(e,l),a.set(e,c),i.push(e),1===l&&o&&Qn.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(e){}})};return u(t),s.clear(),tr++,function(){i.forEach(function(e){var t=Xn.get(e)-1,o=a.get(e)-1;Xn.set(e,t),a.set(e,o),t||(Qn.has(e)||e.removeAttribute(r),Qn.delete(e)),o||e.removeAttribute(n)}),--tr||(Xn=new WeakMap,Xn=new WeakMap,Qn=new WeakMap,er={})}},or=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),rr(r,o,n,"aria-hidden")):function(){return null}};function ar(e){const t=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?ot(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var ir=Symbol("radix.slottable");function sr(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===ir}var lr="Dialog",[cr,ur]=Dt(lr),[dr,fr]=cr(lr),pr=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=c.useRef(null),u=c.useRef(null),[d,f]=Mt({prop:o,defaultProp:a??!1,onChange:i,caller:lr});return t.jsx(dr,{scope:n,triggerRef:l,contentRef:u,contentId:Ot(),titleId:Ot(),descriptionId:Ot(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:s,children:r})};pr.displayName=lr;var mr="DialogTrigger",hr=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=fr(mr,r),i=at(n,a.triggerRef);return t.jsx(It.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":jr(a.open),...o,ref:i,onClick:Nt(e.onClick,a.onOpenToggle)})});hr.displayName=mr;var gr="DialogPortal",[br,vr]=cr(gr,{forceMount:void 0}),yr=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:a}=e,i=fr(gr,n);return t.jsx(br,{scope:n,forceMount:r,children:c.Children.map(o,e=>t.jsx(sn,{present:r||i.open,children:t.jsx(an,{asChild:!0,container:a,children:e})}))})};yr.displayName=gr;var wr="DialogOverlay",xr=c.forwardRef((e,n)=>{const r=vr(wr,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=fr(wr,e.__scopeDialog);return i.modal?t.jsx(sn,{present:o||i.open,children:t.jsx(_r,{...a,ref:n})}):null});xr.displayName=wr;var Er=function(e){const n=ar(e),r=c.forwardRef((e,r)=>{const{children:o,...a}=e,i=c.Children.toArray(o),s=i.find(sr);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}("DialogOverlay.RemoveScroll"),_r=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=fr(wr,r);return t.jsx(Jn,{as:Er,allowPinchZoom:!0,shards:[a.contentRef],children:t.jsx(It.div,{"data-state":jr(a.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),kr="DialogContent",Cr=c.forwardRef((e,n)=>{const r=vr(kr,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=fr(kr,e.__scopeDialog);return t.jsx(sn,{present:o||i.open,children:i.modal?t.jsx(Nr,{...a,ref:n}):t.jsx(Dr,{...a,ref:n})})});Cr.displayName=kr;var Nr=c.forwardRef((e,n)=>{const r=fr(kr,e.__scopeDialog),o=c.useRef(null),a=at(n,r.contentRef,o);return c.useEffect(()=>{const e=o.current;if(e)return or(e)},[]),t.jsx(Sr,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Nt(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Nt(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Nt(e.onFocusOutside,e=>e.preventDefault())})}),Dr=c.forwardRef((e,n)=>{const r=fr(kr,e.__scopeDialog),o=c.useRef(!1),a=c.useRef(!1);return t.jsx(Sr,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const n=t.target,i=r.triggerRef.current?.contains(n);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),Sr=c.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,...s}=e,l=fr(kr,r),u=c.useRef(null),d=at(n,u);return un(),t.jsxs(t.Fragment,{children:[t.jsx(Xt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:t.jsx($t,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":jr(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(zr,{titleId:l.titleId}),t.jsx(Br,{contentRef:u,descriptionId:l.descriptionId})]})]})}),Ar="DialogTitle",Tr=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=fr(Ar,r);return t.jsx(It.h2,{id:a.titleId,...o,ref:n})});Tr.displayName=Ar;var Rr="DialogDescription",Or=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=fr(Rr,r);return t.jsx(It.p,{id:a.descriptionId,...o,ref:n})});Or.displayName=Rr;var Fr="DialogClose",Mr=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=fr(Fr,r);return t.jsx(It.button,{type:"button",...o,ref:n,onClick:Nt(e.onClick,()=>a.onOpenChange(!1))})});function jr(e){return e?"open":"closed"}Mr.displayName=Fr;var Lr="DialogTitleWarning",[Pr,Ir]=function(e,n){const r=c.createContext(n),o=e=>{const{children:n,...o}=e,a=c.useMemo(()=>o,Object.values(o));return t.jsx(r.Provider,{value:a,children:n})};return o.displayName=e+"Provider",[o,function(t){const o=c.useContext(r);if(o)return o;if(void 0!==n)return n;throw new Error(`\`${t}\` must be used within \`${e}\``)}]}(Lr,{contentName:kr,titleName:Ar,docsSlug:"dialog"}),zr=({titleId:e})=>{const t=Ir(Lr),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{if(e){document.getElementById(e)}},[n,e]),null},Br=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Ir("DialogDescriptionWarning").contentName}}.`;return c.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)}},[n,e,t]),null},Ur=pr,qr=hr,Hr=yr,Wr=xr,Vr=Cr,$r=Tr,Gr=Or,Kr=Mr,Zr=Ur,Yr=Hr,Jr=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Wr,Object.assign({className:tt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},r,{ref:t}))});Jr.displayName=Wr.displayName;var Xr=gt("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),Qr=c.forwardRef(function(e,t){var n=e.side,r=void 0===n?"right":n,o=e.className,a=e.children,i=_(e,["side","className","children"]);return c.createElement(Yr,null,c.createElement(Jr,null),c.createElement(Vr,Object.assign({ref:t,className:tt(Xr({side:r}),o)},i),a,c.createElement(Kr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},c.createElement(ae,{className:"h-4 w-4"}),c.createElement("span",{className:"sr-only"},"Close"))))});Qr.displayName=Vr.displayName;var eo=function(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:tt("flex flex-col space-y-2 text-center sm:text-left",t)},n))};eo.displayName="SheetHeader";var to=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement($r,Object.assign({ref:t,className:tt("text-lg font-semibold text-foreground",n)},r))});to.displayName=$r.displayName;var no=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Gr,Object.assign({ref:t,className:tt("text-sm text-muted-foreground",n)},r))});no.displayName=Gr.displayName;const ro=["top","right","bottom","left"],oo=Math.min,ao=Math.max,io=Math.round,so=Math.floor,lo=e=>({x:e,y:e}),co={left:"right",right:"left",bottom:"top",top:"bottom"};function uo(e,t,n){return ao(e,oo(t,n))}function fo(e,t){return"function"==typeof e?e(t):e}function po(e){return e.split("-")[0]}function mo(e){return e.split("-")[1]}function ho(e){return"x"===e?"y":"x"}function go(e){return"y"===e?"height":"width"}function bo(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function vo(e){return ho(bo(e))}function yo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const wo=["left","right"],xo=["right","left"],Eo=["top","bottom"],_o=["bottom","top"];function ko(e,t,n,r){const o=mo(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?xo:wo:t?wo:xo;case"left":case"right":return t?Eo:_o;default:return[]}}(po(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(yo)))),a}function Co(e){const t=po(e);return co[t]+e.slice(t.length)}function No(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Do(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function So(e,t,n){let{reference:r,floating:o}=e;const a=bo(t),i=vo(t),s=go(i),l=po(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(mo(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function Ao(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=fo(t,e),m=No(p),h=s[f?"floating"===d?"reference":"floating":d],g=Do(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=Do(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function To(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ro(e){return ro.some(t=>e[t]>=0)}const Oo=new Set(["left","top"]);function Fo(){return"undefined"!=typeof window}function Mo(e){return Po(e)?(e.nodeName||"").toLowerCase():"#document"}function jo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Lo(e){var t;return null==(t=(Po(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Po(e){return!!Fo()&&(e instanceof Node||e instanceof jo(e).Node)}function Io(e){return!!Fo()&&(e instanceof Element||e instanceof jo(e).Element)}function zo(e){return!!Fo()&&(e instanceof HTMLElement||e instanceof jo(e).HTMLElement)}function Bo(e){return!(!Fo()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof jo(e).ShadowRoot)}function Uo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Jo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function qo(e){return/^(table|td|th)$/.test(Mo(e))}function Ho(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Wo=/transform|translate|scale|rotate|perspective|filter/,Vo=/paint|layout|strict|content/,$o=e=>!!e&&"none"!==e;let Go;function Ko(e){const t=Io(e)?Jo(e):e;return $o(t.transform)||$o(t.translate)||$o(t.scale)||$o(t.rotate)||$o(t.perspective)||!Zo()&&($o(t.backdropFilter)||$o(t.filter))||Wo.test(t.willChange||"")||Vo.test(t.contain||"")}function Zo(){return null==Go&&(Go="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Go}function Yo(e){return/^(html|body|#document)$/.test(Mo(e))}function Jo(e){return jo(e).getComputedStyle(e)}function Xo(e){return Io(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Qo(e){if("html"===Mo(e))return e;const t=e.assignedSlot||e.parentNode||Bo(e)&&e.host||Lo(e);return Bo(t)?t.host:t}function ea(e){const t=Qo(e);return Yo(t)?e.ownerDocument?e.ownerDocument.body:e.body:zo(t)&&Uo(t)?t:ea(t)}function ta(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ea(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=jo(o);if(a){const e=na(i);return t.concat(i,i.visualViewport||[],Uo(o)?o:[],e&&n?ta(e):[])}return t.concat(o,ta(o,[],n))}function na(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function ra(e){const t=Jo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=zo(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=io(n)!==a||io(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function oa(e){return Io(e)?e:e.contextElement}function aa(e){const t=oa(e);if(!zo(t))return lo(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=ra(t);let i=(a?io(n.width):n.width)/r,s=(a?io(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const ia=lo(0);function sa(e){const t=jo(e);return Zo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:ia}function la(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=oa(e);let i=lo(1);t&&(r?Io(r)&&(i=aa(r)):i=aa(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==jo(e))&&t}(a,n,r)?sa(a):lo(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=jo(a),t=r&&Io(r)?jo(r):r;let n=e,o=na(n);for(;o&&r&&t!==n;){const e=aa(o),t=o.getBoundingClientRect(),r=Jo(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=jo(o),o=na(n)}}return Do({width:u,height:d,x:l,y:c})}function ca(e,t){const n=Xo(e).scrollLeft;return t?t.left+n:la(Lo(e)).left+n}function ua(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ca(e,n),y:n.top+t.scrollTop}}function da(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=jo(e),r=Lo(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Zo();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=ca(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Lo(e),n=Xo(e),r=e.ownerDocument.body,o=ao(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=ao(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ca(e);const s=-n.scrollTop;return"rtl"===Jo(r).direction&&(i+=ao(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Lo(e));else if(Io(t))r=function(e,t){const n=la(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=zo(e)?aa(e):lo(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=sa(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Do(r)}function fa(e,t){const n=Qo(e);return!(n===t||!Io(n)||Yo(n))&&("fixed"===Jo(n).position||fa(n,t))}function pa(e,t,n){const r=zo(t),o=Lo(t),a="fixed"===n,i=la(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=lo(0);function c(){l.x=ca(o)}if(r||!r&&!a)if(("body"!==Mo(t)||Uo(o))&&(s=Xo(t)),r){const e=la(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=!o||r||a?lo(0):ua(o,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function ma(e){return"static"===Jo(e).position}function ha(e,t){if(!zo(e)||"fixed"===Jo(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Lo(e)===n&&(n=n.ownerDocument.body),n}function ga(e,t){const n=jo(e);if(Ho(e))return n;if(!zo(e)){let t=Qo(e);for(;t&&!Yo(t);){if(Io(t)&&!ma(t))return t;t=Qo(t)}return n}let r=ha(e,t);for(;r&&qo(r)&&ma(r);)r=ha(r,t);return r&&Yo(r)&&ma(r)&&!Ko(r)?n:r||function(e){let t=Qo(e);for(;zo(t)&&!Yo(t);){if(Ko(t))return t;if(Ho(t))return null;t=Qo(t)}return null}(e)||n}const ba={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Lo(r),s=!!t&&Ho(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=lo(1);const u=lo(0),d=zo(r);if((d||!d&&!a)&&(("body"!==Mo(r)||Uo(i))&&(l=Xo(r)),d)){const e=la(r);c=aa(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?lo(0):ua(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Lo,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Ho(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=ta(e,[],!1).filter(e=>Io(e)&&"body"!==Mo(e)),o=null;const a="fixed"===Jo(e).position;let i=a?Qo(e):e;for(;Io(i)&&!Yo(i);){const t=Jo(i),n=Ko(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Uo(i)&&!n&&fa(e,i))?r=r.filter(e=>e!==i):o=t,i=Qo(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=da(t,a[0],o);let s=i.top,l=i.right,c=i.bottom,u=i.left;for(let e=1;e<a.length;e++){const n=da(t,a[e],o);s=ao(n.top,s),l=oo(n.right,l),c=oo(n.bottom,c),u=ao(n.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:ga,getElementRects:async function(e){const t=this.getOffsetParent||ga,n=this.getDimensions,r=await n(e.floating);return{reference:pa(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=ra(e);return{width:t,height:n}},getScale:aa,isElement:Io,isRTL:function(e){return"rtl"===Jo(e).direction}};function va(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function ya(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=oa(e),u=o||a?[...c?ta(c):[],...t?ta(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=Lo(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m={rootMargin:-so(d)+"px "+-so(o.clientWidth-(u+f))+"px "+-so(o.clientHeight-(d+p))+"px "+-so(u)+"px",threshold:ao(0,oo(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||va(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let h=l?la(e):null;return l&&function t(){const r=la(e);h&&!va(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const wa=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=po(n),s=mo(n),l="y"===bo(n),c=Oo.has(i)?-1:1,u=a&&l?-1:1,d=fo(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},xa=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=fo(e,t),u={x:n,y:r},d=await a.detectOverflow(t,c),f=bo(po(o)),p=ho(f);let m=u[p],h=u[f];if(i){const e="y"===p?"bottom":"right";m=uo(m+d["y"===p?"top":"left"],m,m-d[e])}if(s){const e="y"===f?"bottom":"right";h=uo(h+d["y"===f?"top":"left"],h,h-d[e])}const g=l.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[f]:s}}}}}},Ea=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=fo(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=po(o),v=bo(s),y=po(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(y||!h?[Co(s)]:function(e){const t=Co(e);return[yo(e),t,yo(t)]}(s)),E="none"!==m;!f&&E&&x.push(...ko(s,h,m,w));const _=[s,...x],k=await l.detectOverflow(t,g),C=[];let N=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&C.push(k[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=mo(e),o=vo(e),a=go(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=Co(i)),[i,Co(i)]}(o,i,w);C.push(k[e[0]],k[e[1]])}if(N=[...N,{placement:o,overflows:C}],!C.every(e=>e<=0)){var D,S;const e=((null==(D=a.flip)?void 0:D.index)||0)+1,t=_[e];if(t){if(!("alignment"===d&&v!==bo(t))||N.every(e=>bo(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:N},reset:{placement:t}}}let n=null==(S=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=N.filter(e=>{if(E){const t=bo(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},_a=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=fo(e,t),u=await i.detectOverflow(t,c),d=po(o),f=mo(o),p="y"===bo(o),{width:m,height:h}=a.floating;let g,b;"top"===d||"bottom"===d?(g=d,b=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,g="end"===f?"top":"bottom");const v=h-u.top-u.bottom,y=m-u.left-u.right,w=oo(h-u[g],v),x=oo(m-u[b],y),E=!t.middlewareData.shift;let _=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(_=v),E&&!f){const e=ao(u.left,0),t=ao(u.right,0),n=ao(u.top,0),r=ao(u.bottom,0);p?k=m-2*(0!==e||0!==t?e+t:ao(u.left,u.right)):_=h-2*(0!==n||0!==r?n+r:ao(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:_});const C=await i.getDimensions(s.floating);return m!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},ka=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=fo(e,t);switch(o){case"referenceHidden":{const e=To(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Ro(e)}}}case"escaped":{const e=To(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Ro(e)}}}default:return{}}}}},Ca=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=fo(e,t)||{};if(null==c)return{};const d=No(u),f={x:n,y:r},p=vo(o),m=go(p),h=await i.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let _=E?E[y]:0;_&&await(null==i.isElement?void 0:i.isElement(E))||(_=s.floating[y]||a.floating[m]);const k=w/2-x/2,C=_/2-h[m]/2-1,N=oo(d[b],C),D=oo(d[v],C),S=N,A=_-h[m]-D,T=_/2-h[m]/2+k,R=uo(S,T,A),O=!l.arrow&&null!=mo(o)&&T!==R&&a.reference[m]/2-(T<S?N:D)-h[m]/2<0,F=O?T<S?T-S:T-A:0;return{[p]:f[p]+F,data:{[p]:R,centerOffset:T-R-F,...O&&{alignmentOffset:F}},reset:O}}}),Na=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=fo(e,t),u={x:n,y:r},d=bo(o),f=ho(d);let p=u[f],m=u[d];const h=fo(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var b,v;const e="y"===f?"width":"height",t=Oo.has(po(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(b=i.offset)?void 0:b[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Da=(e,t,n)=>{const r=new Map,o={platform:ba,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=i.detectOverflow?i:{...i,detectOverflow:Ao},l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=So(c,r,l),f=r,p=0;const m={};for(let n=0;n<a.length;n++){const h=a[n];if(!h)continue;const{name:g,fn:b}=h,{x:v,y:y,data:w,reset:x}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,m[g]={...m[g],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=So(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:a})};var Sa="undefined"!=typeof document?e.useLayoutEffect:function(){};function Aa(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!Aa(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Aa(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ta(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Ra(e,t){const n=Ta(e);return Math.round(t*n)/n}function Oa(e){const t=c.useRef(e);return Sa(()=>{t.current=e}),t}const Fa=(e,t)=>{const n=wa(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ma=(e,t)=>{const n=xa(e);return{name:n.name,fn:n.fn,options:[e,t]}},ja=(e,t)=>({fn:Na(e).fn,options:[e,t]}),La=(e,t)=>{const n=Ea(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pa=(e,t)=>{const n=_a(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ia=(e,t)=>{const n=ka(e);return{name:n.name,fn:n.fn,options:[e,t]}},za=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Ca({element:n.current,padding:r}).fn(t):{}:n?Ca({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var Ba=c.forwardRef((e,n)=>{const{children:r,width:o=10,height:a=5,...i}=e;return t.jsx(It.svg,{...i,ref:n,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:t.jsx("polygon",{points:"0,0 30,0 15,10"})})});Ba.displayName="Arrow";var Ua=Ba;function qa(e){const[t,n]=c.useState(void 0);return At(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}var Ha="Popper",[Wa,Va]=Dt(Ha),[$a,Ga]=Wa(Ha),Ka=e=>{const{__scopePopper:n,children:r}=e,[o,a]=c.useState(null);return t.jsx($a,{scope:n,anchor:o,onAnchorChange:a,children:r})};Ka.displayName=Ha;var Za="PopperAnchor",Ya=c.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:o,...a}=e,i=Ga(Za,r),s=c.useRef(null),l=at(n,s),u=c.useRef(null);return c.useEffect(()=>{const e=u.current;u.current=o?.current||s.current,e!==u.current&&i.onAnchorChange(u.current)}),o?null:t.jsx(It.div,{...a,ref:l})});Ya.displayName=Za;var Ja="PopperContent",[Xa,Qa]=Wa(Ja),ei=c.forwardRef((e,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:a=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:b,...v}=e,y=Ga(Ja,r),[w,x]=c.useState(null),E=at(n,e=>x(e)),[_,k]=c.useState(null),C=qa(_),N=C?.width??0,D=C?.height??0,S=o+("center"!==i?"-"+i:""),A="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},T=Array.isArray(f)?f:[f],R=T.length>0,O={padding:A,boundary:T.filter(oi),altBoundary:R},{refs:F,floatingStyles:M,placement:j,isPositioned:L,middlewareData:P}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:d}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(r);Aa(m,r)||h(r);const[g,b]=c.useState(null),[v,y]=c.useState(null),w=c.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),x=c.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),E=a||g,_=i||v,k=c.useRef(null),C=c.useRef(null),N=c.useRef(f),D=null!=l,S=Oa(l),A=Oa(o),T=Oa(d),R=c.useCallback(()=>{if(!k.current||!C.current)return;const e={placement:t,strategy:n,middleware:m};A.current&&(e.platform=A.current),Da(k.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==T.current};O.current&&!Aa(N.current,t)&&(N.current=t,u.flushSync(()=>{p(t)}))})},[m,t,n,A,T]);Sa(()=>{!1===d&&N.current.isPositioned&&(N.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const O=c.useRef(!1);Sa(()=>(O.current=!0,()=>{O.current=!1}),[]),Sa(()=>{if(E&&(k.current=E),_&&(C.current=_),E&&_){if(S.current)return S.current(E,_,R);R()}},[E,_,R,S,D]);const F=c.useMemo(()=>({reference:k,floating:C,setReference:w,setFloating:x}),[w,x]),M=c.useMemo(()=>({reference:E,floating:_}),[E,_]),j=c.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=Ra(M.floating,f.x),r=Ra(M.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Ta(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,M.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:R,refs:F,elements:M,floatingStyles:j}),[f,R,F,M,j])}({strategy:"fixed",placement:S,whileElementsMounted:(...e)=>ya(...e,{animationFrame:"always"===g}),elements:{reference:y.anchor},middleware:[Fa({mainAxis:a+D,alignmentAxis:s}),d&&Ma({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?ja():void 0,...O}),d&&La({...O}),Pa({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),_&&za({element:_,padding:l}),ai({arrowWidth:N,arrowHeight:D}),h&&Ia({strategy:"referenceHidden",...O})]}),[I,z]=ii(j),B=Bt(b);At(()=>{L&&B?.()},[L,B]);const U=P.arrow?.x,q=P.arrow?.y,H=0!==P.arrow?.centerOffset,[W,V]=c.useState();return At(()=>{w&&V(window.getComputedStyle(w).zIndex)},[w]),t.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:L?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[P.transformOrigin?.x,P.transformOrigin?.y].join(" "),...P.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(Xa,{scope:r,placedSide:I,onArrowChange:k,arrowX:U,arrowY:q,shouldHideArrow:H,children:t.jsx(It.div,{"data-side":I,"data-align":z,...v,ref:E,style:{...v.style,animation:L?void 0:"none"}})})})});ei.displayName=Ja;var ti="PopperArrow",ni={top:"bottom",right:"left",bottom:"top",left:"right"},ri=c.forwardRef(function(e,n){const{__scopePopper:r,...o}=e,a=Qa(ti,r),i=ni[a.placedSide];return t.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:t.jsx(Ua,{...o,ref:n,style:{...o.style,display:"block"}})})});function oi(e){return null!==e}ri.displayName=ti;var ai=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=ii(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=a?u:`${d}px`,m=-s+"px"):"top"===l?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=a?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function ii(e){const[t,n="center"]=e.split("-");return[t,n]}var si=Ka,li=Ya,ci=ei,ui=ri,di=Symbol("radix.slottable");var fi=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"}),pi=c.forwardRef((e,n)=>t.jsx(It.span,{...e,ref:n,style:{...fi,...e.style}}));pi.displayName="VisuallyHidden";var mi=pi,[hi,gi]=Dt("Tooltip",[Va]),bi=Va(),vi="TooltipProvider",yi=700,wi="tooltip.open",[xi,Ei]=hi(vi),_i=e=>{const{__scopeTooltip:n,delayDuration:r=yi,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=e,s=c.useRef(!0),l=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const e=u.current;return()=>window.clearTimeout(e)},[]),t.jsx(xi,{scope:n,isOpenDelayedRef:s,delayDuration:r,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:c.useCallback(e=>{l.current=e},[]),disableHoverableContent:a,children:i})};_i.displayName=vi;var ki="Tooltip",[Ci,Ni]=hi(ki),Di=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:a,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,u=Ei(ki,e.__scopeTooltip),d=bi(n),[f,p]=c.useState(null),m=Ot(),h=c.useRef(0),g=s??u.disableHoverableContent,b=l??u.delayDuration,v=c.useRef(!1),[y,w]=Mt({prop:o,defaultProp:a??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(wi))):u.onClose(),i?.(e)},caller:ki}),x=c.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,w(!0)},[w]),_=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),k=c.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,w(!0),h.current=0},b)},[b,w]);return c.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),t.jsx(si,{...d,children:t.jsx(Ci,{scope:n,contentId:m,open:y,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{u.isOpenDelayedRef.current?k():E()},[u.isOpenDelayedRef,k,E]),onTriggerLeave:c.useCallback(()=>{g?_():(window.clearTimeout(h.current),h.current=0)},[_,g]),onOpen:E,onClose:_,disableHoverableContent:g,children:r})})};Di.displayName=ki;var Si="TooltipTrigger",Ai=c.forwardRef((e,n)=>{const{__scopeTooltip:r,...o}=e,a=Ni(Si,r),i=Ei(Si,r),s=bi(r),l=at(n,c.useRef(null),a.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),t.jsx(li,{asChild:!0,...s,children:t.jsx(It.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:l,onPointerMove:Nt(e.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||i.isPointerInTransitRef.current||(a.onTriggerEnter(),d.current=!0))}),onPointerLeave:Nt(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:Nt(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Nt(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:Nt(e.onBlur,a.onClose),onClick:Nt(e.onClick,a.onClose)})})});Ai.displayName=Si;var[Ti,Ri]=hi("TooltipPortal",{forceMount:void 0}),Oi="TooltipContent",Fi=c.forwardRef((e,n)=>{const r=Ri(Oi,e.__scopeTooltip),{forceMount:o=r.forceMount,side:a="top",...i}=e,s=Ni(Oi,e.__scopeTooltip);return t.jsx(sn,{present:o||s.open,children:s.disableHoverableContent?t.jsx(Ii,{side:a,...i,ref:n}):t.jsx(Mi,{side:a,...i,ref:n})})}),Mi=c.forwardRef((e,n)=>{const r=Ni(Oi,e.__scopeTooltip),o=Ei(Oi,e.__scopeTooltip),a=c.useRef(null),i=at(n,a),[s,l]=c.useState(null),{trigger:u,onClose:d}=r,f=a.current,{onPointerInTransitChange:p}=o,m=c.useCallback(()=>{l(null),p(!1)},[p]),h=c.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),a=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(a),p(!0)},[p]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(u&&f){const e=e=>h(e,f),t=e=>h(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[u,f,h,m]),c.useEffect(()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||f?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,c=i.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}(n,s);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,f,s,d,m]),t.jsx(Ii,{...e,ref:i})}),[ji,Li]=hi(ki,{isInside:!1}),Pi=function(e){const n=({children:e})=>t.jsx(t.Fragment,{children:e});return n.displayName=`${e}.Slottable`,n.__radixId=di,n}("TooltipContent"),Ii=c.forwardRef((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,u=Ni(Oi,r),d=bi(r),{onClose:f}=u;return c.useEffect(()=>(document.addEventListener(wi,f),()=>document.removeEventListener(wi,f)),[f]),c.useEffect(()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,f]),t.jsx($t,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:t.jsxs(ci,{"data-state":u.stateAttribute,...d,...l,ref:n,style:{...l.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:[t.jsx(Pi,{children:o}),t.jsx(ji,{scope:r,isInside:!0,children:t.jsx(mi,{id:u.contentId,role:"tooltip",children:a||o})})]})})});Fi.displayName=Oi;var zi="TooltipArrow";c.forwardRef((e,n)=>{const{__scopeTooltip:r,...o}=e,a=bi(r);return Li(zi,r).isInside?null:t.jsx(ui,{...a,...o,ref:n})}).displayName=zi;var Bi=Fi,Ui=_i,qi=Di,Hi=Ai,Wi=c.forwardRef(function(e,t){var n=e.className,r=e.sideOffset,o=void 0===r?4:r,a=_(e,["className","sideOffset"]);return c.createElement(Bi,Object.assign({ref:t,sideOffset:o,className:tt("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 origin-[--radix-tooltip-content-transform-origin]",n)},a))});Wi.displayName=Bi.displayName;var Vi=c.createContext(null);function $i(){var e=c.useContext(Vi);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Gi(e){var t=e.defaultOpen,n=void 0===t||t,r=e.open,o=e.onOpenChange,a=e.className,i=e.style,s=e.children,l=_(e,["defaultOpen","open","onOpenChange","className","style","children"]),u=function(){var e=v(c.useState(void 0),2),t=e[0],n=e[1];return c.useEffect(function(){var e=window.matchMedia("(max-width: ".concat(767,"px)")),t=function(){n(window.innerWidth<768)};return e.addEventListener("change",t),n(window.innerWidth<768),function(){return e.removeEventListener("change",t)}},[]),!!t}(),d=v(c.useState(!1),2),f=d[0],p=d[1],m=v(c.useState(n),2),h=m[0],g=m[1],b=null!=r?r:h,y=c.useCallback(function(e){var t="function"==typeof e?e(b):e;o?o(t):g(t),document.cookie="".concat("sidebar_state","=").concat(t,"; path=/; max-age=").concat(604800)},[o,b]),w=c.useCallback(function(){return u?p(function(e){return!e}):y(function(e){return!e})},[u,y,p]);c.useEffect(function(){var e=function(e){"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),w())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[w]);var x=b?"expanded":"collapsed",E=c.useMemo(function(){return{state:x,open:b,setOpen:y,isMobile:u,openMobile:f,setOpenMobile:p,toggleSidebar:w}},[x,b,y,u,f,p,w]);return c.createElement(Vi.Provider,{value:E},c.createElement(Ui,{delayDuration:0},c.createElement("div",Object.assign({style:Object.assign({"--sidebar-width":"16rem","--sidebar-width-icon":"3rem"},i),className:tt("group/sidebar-wrapper flex min-h-svh w-full",a)},l),s)))}function Ki(e){var t=e.side,n=void 0===t?"left":t,r=e.variant,o=void 0===r?"sidebar":r,a=e.collapsible,i=void 0===a?"offcanvas":a,s=e.className,l=e.children,u=_(e,["side","variant","collapsible","className","children"]),d=$i(),f=d.isMobile,p=d.state,m=d.openMobile,h=d.setOpenMobile;return"none"===i?c.createElement("div",Object.assign({className:tt("bg-sidebar text-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col",s)},u),l):f?c.createElement(Zr,Object.assign({open:m,onOpenChange:h},u),c.createElement(Qr,{className:"bg-sidebar text-sidebar-foreground w-[var(--sidebar-width)] p-0 [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:n},c.createElement(eo,{className:"sr-only"},c.createElement(to,null,"Sidebar"),c.createElement(no,null,"Displays the mobile sidebar.")),c.createElement("div",{className:"flex h-full w-full flex-col"},l))):c.createElement("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":p,"data-collapsible":"collapsed"===p?i:"","data-variant":o,"data-side":n},c.createElement("div",{className:tt("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","floating"===o||"inset"===o?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),c.createElement("div",Object.assign({className:tt("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex","left"===n?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===o||"inset"===o?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",s)},u),c.createElement("div",{className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"},l)))}function Zi(e){var t=e.className,n=e.onClick,r=_(e,["className","onClick"]),o=$i().toggleSidebar;return c.createElement(vt,Object.assign({variant:"ghost",size:"icon",className:tt("h-7 w-7",t),onClick:function(e){null==n||n(e),o()}},r),c.createElement(K,null),c.createElement("span",{className:"sr-only"},"Toggle Sidebar"))}function Yi(e){var t=e.className,n=_(e,["className"]);return c.createElement("main",Object.assign({className:tt("bg-background relative flex w-full flex-1 flex-col min-w-0 overflow-x-hidden","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t)},n))}function Ji(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:tt("flex flex-col gap-2 p-2",t)},n))}function Xi(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:tt("flex flex-col gap-2 p-2",t)},n))}function Qi(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:tt("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t)},n))}function es(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:tt("relative flex w-full min-w-0 flex-col p-2",t)},n))}function ts(e){var t=e.className,n=e.asChild,r=void 0!==n&&n,o=_(e,["className","asChild"]),a=r?ut:"div";return c.createElement(a,Object.assign({className:tt("text-sidebar-foreground/70 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t)},o))}function ns(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:tt("w-full text-sm",t)},n))}function rs(e){var t=e.className,n=_(e,["className"]);return c.createElement("ul",Object.assign({className:tt("flex w-full min-w-0 flex-col gap-1",t)},n))}function os(e){var t=e.className,n=_(e,["className"]);return c.createElement("li",Object.assign({className:tt("group/menu-item relative",t)},n))}var as=gt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function is(e){var t=e.asChild,n=void 0!==t&&t,r=e.isActive,o=void 0!==r&&r,a=e.variant,i=void 0===a?"default":a,s=e.size,l=void 0===s?"default":s,u=e.tooltip,d=e.className,f=_(e,["asChild","isActive","variant","size","tooltip","className"]),p=n?ut:"button",m=$i(),h=m.isMobile,g=m.state,b=c.createElement(p,Object.assign({"data-size":l,"data-active":o,className:tt(as({variant:i,size:l}),d)},f));return u?("string"==typeof u&&(u={children:u}),c.createElement(qi,null,c.createElement(Hi,{asChild:!0},b),c.createElement(Wi,Object.assign({side:"right",align:"center",hidden:"collapsed"!==g||h},u)))):b}function ss(e){const n=ls(e),r=c.forwardRef((e,r)=>{const{children:o,...a}=e,i=c.Children.toArray(o),s=i.find(us);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}function ls(e){const t=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?ot(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var cs=Symbol("radix.slottable");function us(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===cs}function ds(n){const r=n+"CollectionProvider",[o,a]=Dt(r),[i,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,a=e.useRef(null),s=e.useRef(new Map).current;return t.jsx(i,{scope:r,itemMap:s,collectionRef:a,children:o})};l.displayName=r;const c=n+"CollectionSlot",u=ss(c),d=e.forwardRef((e,n)=>{const{scope:r,children:o}=e,a=at(n,s(c,r).collectionRef);return t.jsx(u,{ref:a,children:o})});d.displayName=c;const f=n+"CollectionItemSlot",p="data-radix-collection-item",m=ss(f),h=e.forwardRef((n,r)=>{const{scope:o,children:a,...i}=n,l=e.useRef(null),c=at(r,l),u=s(f,o);return e.useEffect(()=>(u.itemMap.set(l,{ref:l,...i}),()=>{u.itemMap.delete(l)})),t.jsx(m,{[p]:"",ref:c,children:a})});return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(t){const r=s(n+"CollectionConsumer",t);return e.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},a]}var fs=c.createContext(void 0);function ps(e){const t=c.useContext(fs);return e||t||"ltr"}var ms="rovingFocusGroup.onEntryFocus",hs={bubbles:!1,cancelable:!0},gs="RovingFocusGroup",[bs,vs,ys]=ds(gs),[ws,xs]=Dt(gs,[ys]),[Es,_s]=ws(gs),ks=c.forwardRef((e,n)=>t.jsx(bs.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(bs.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(Cs,{...e,ref:n})})}));ks.displayName=gs;var Cs=c.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=c.useRef(null),h=at(n,m),g=ps(i),[b,v]=Mt({prop:s,defaultProp:l??null,onChange:u,caller:gs}),[y,w]=c.useState(!1),x=Bt(d),E=vs(r),_=c.useRef(!1),[k,C]=c.useState(0);return c.useEffect(()=>{const e=m.current;if(e)return e.addEventListener(ms,x),()=>e.removeEventListener(ms,x)},[x]),t.jsx(Es,{scope:r,orientation:o,dir:g,loop:a,currentTabStopId:b,onItemFocus:c.useCallback(e=>v(e),[v]),onItemShiftTab:c.useCallback(()=>w(!0),[]),onFocusableItemAdd:c.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:c.useCallback(()=>C(e=>e-1),[]),children:t.jsx(It.div,{tabIndex:y||0===k?-1:0,"data-orientation":o,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Nt(e.onMouseDown,()=>{_.current=!0}),onFocus:Nt(e.onFocus,e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(ms,hs);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=E().filter(e=>e.focusable);As([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),f)}}_.current=!1}),onBlur:Nt(e.onBlur,()=>w(!1))})})}),Ns="RovingFocusGroupItem",Ds=c.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:i,children:s,...l}=e,u=Ot(),d=i||u,f=_s(Ns,r),p=f.currentTabStopId===d,m=vs(r),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:b}=f;return c.useEffect(()=>{if(o)return h(),()=>g()},[o,h,g]),t.jsx(bs.ItemSlot,{scope:r,id:d,focusable:o,active:a,children:t.jsx(It.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:n,onMouseDown:Nt(e.onMouseDown,e=>{o?f.onItemFocus(d):e.preventDefault()}),onFocus:Nt(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:Nt(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:Ss[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=f.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>As(o))}var n,r}),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=b}):s})})});Ds.displayName=Ns;var Ss={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function As(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var Ts=ks,Rs=Ds,Os=["Enter"," "],Fs=["ArrowUp","PageDown","End"],Ms=["ArrowDown","PageUp","Home",...Fs],js={ltr:[...Os,"ArrowRight"],rtl:[...Os,"ArrowLeft"]},Ls={ltr:["ArrowLeft"],rtl:["ArrowRight"]},Ps="Menu",[Is,zs,Bs]=ds(Ps),[Us,qs]=Dt(Ps,[Bs,Va,xs]),Hs=Va(),Ws=xs(),[Vs,$s]=Us(Ps),[Gs,Ks]=Us(Ps),Zs=e=>{const{__scopeMenu:n,open:r=!1,children:o,dir:a,onOpenChange:i,modal:s=!0}=e,l=Hs(n),[u,d]=c.useState(null),f=c.useRef(!1),p=Bt(i),m=ps(a);return c.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),t.jsx(si,{...l,children:t.jsx(Vs,{scope:n,open:r,onOpenChange:p,content:u,onContentChange:d,children:t.jsx(Gs,{scope:n,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:o})})})};Zs.displayName=Ps;var Ys=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e,a=Hs(r);return t.jsx(li,{...a,...o,ref:n})});Ys.displayName="MenuAnchor";var Js="MenuPortal",[Xs,Qs]=Us(Js,{forceMount:void 0}),el=e=>{const{__scopeMenu:n,forceMount:r,children:o,container:a}=e,i=$s(Js,n);return t.jsx(Xs,{scope:n,forceMount:r,children:t.jsx(sn,{present:r||i.open,children:t.jsx(an,{asChild:!0,container:a,children:o})})})};el.displayName=Js;var tl="MenuContent",[nl,rl]=Us(tl),ol=c.forwardRef((e,n)=>{const r=Qs(tl,e.__scopeMenu),{forceMount:o=r.forceMount,...a}=e,i=$s(tl,e.__scopeMenu),s=Ks(tl,e.__scopeMenu);return t.jsx(Is.Provider,{scope:e.__scopeMenu,children:t.jsx(sn,{present:o||i.open,children:t.jsx(Is.Slot,{scope:e.__scopeMenu,children:s.modal?t.jsx(al,{...a,ref:n}):t.jsx(il,{...a,ref:n})})})})}),al=c.forwardRef((e,n)=>{const r=$s(tl,e.__scopeMenu),o=c.useRef(null),a=at(n,o);return c.useEffect(()=>{const e=o.current;if(e)return or(e)},[]),t.jsx(ll,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Nt(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),il=c.forwardRef((e,n)=>{const r=$s(tl,e.__scopeMenu);return t.jsx(ll,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),sl=ss("MenuContent.ScrollLock"),ll=c.forwardRef((e,n)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,...b}=e,v=$s(tl,r),y=Ks(tl,r),w=Hs(r),x=Ws(r),E=zs(r),[_,k]=c.useState(null),C=c.useRef(null),N=at(n,C,v.onContentChange),D=c.useRef(0),S=c.useRef(""),A=c.useRef(0),T=c.useRef(null),R=c.useRef("right"),O=c.useRef(0),F=g?Jn:c.Fragment,M=g?{as:sl,allowPinchZoom:!0}:void 0,j=e=>{const t=S.current+e,n=E().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const c=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){S.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};c.useEffect(()=>()=>window.clearTimeout(D.current),[]),un();const L=c.useCallback(e=>R.current===T.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,c=i.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}(n,t)}(e,T.current?.area),[]);return t.jsx(nl,{scope:r,searchRef:S,onItemEnter:c.useCallback(e=>{L(e)&&e.preventDefault()},[L]),onItemLeave:c.useCallback(e=>{L(e)||(C.current?.focus(),k(null))},[L]),onTriggerLeave:c.useCallback(e=>{L(e)&&e.preventDefault()},[L]),pointerGraceTimerRef:A,onPointerGraceIntentChange:c.useCallback(e=>{T.current=e},[]),children:t.jsx(F,{...M,children:t.jsx(Xt,{asChild:!0,trapped:a,onMountAutoFocus:Nt(i,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:t.jsx($t,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:t.jsx(Ts,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:k,onEntryFocus:Nt(u,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:t.jsx(ci,{role:"menu","aria-orientation":"vertical","data-state":Ml(v.open),"data-radix-menu-content":"",dir:y.dir,...w,...b,ref:N,style:{outline:"none",...b.style},onKeyDown:Nt(b.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&j(e.key));const o=C.current;if(e.target!==o)return;if(!Ms.includes(e.key))return;e.preventDefault();const a=E().filter(e=>!e.disabled).map(e=>e.ref.current);Fs.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:Nt(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),S.current="")}),onPointerMove:Nt(e.onPointerMove,Pl(e=>{const t=e.target,n=O.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>O.current?"right":"left";R.current=t,O.current=e.clientX}}))})})})})})})});ol.displayName=tl;var cl=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e;return t.jsx(It.div,{role:"group",...o,ref:n})});cl.displayName="MenuGroup";var ul=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e;return t.jsx(It.div,{...o,ref:n})});ul.displayName="MenuLabel";var dl="MenuItem",fl="menu.itemSelect",pl=c.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:o,...a}=e,i=c.useRef(null),s=Ks(dl,e.__scopeMenu),l=rl(dl,e.__scopeMenu),u=at(n,i),d=c.useRef(!1);return t.jsx(ml,{...a,ref:u,disabled:r,onClick:Nt(e.onClick,()=>{const e=i.current;if(!r&&e){const t=new CustomEvent(fl,{bubbles:!0,cancelable:!0});e.addEventListener(fl,e=>o?.(e),{once:!0}),zt(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:Nt(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:Nt(e.onKeyDown,e=>{const t=""!==l.searchRef.current;r||t&&" "===e.key||Os.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});pl.displayName=dl;var ml=c.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:o=!1,textValue:a,...i}=e,s=rl(dl,r),l=Ws(r),u=c.useRef(null),d=at(n,u),[f,p]=c.useState(!1),[m,h]=c.useState("");return c.useEffect(()=>{const e=u.current;e&&h((e.textContent??"").trim())},[i.children]),t.jsx(Is.ItemSlot,{scope:r,disabled:o,textValue:a??m,children:t.jsx(Rs,{asChild:!0,...l,focusable:!o,children:t.jsx(It.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...i,ref:d,onPointerMove:Nt(e.onPointerMove,Pl(e=>{if(o)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:Nt(e.onPointerLeave,Pl(e=>s.onItemLeave(e))),onFocus:Nt(e.onFocus,()=>p(!0)),onBlur:Nt(e.onBlur,()=>p(!1))})})})}),hl=c.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:o,...a}=e;return t.jsx(_l,{scope:e.__scopeMenu,checked:r,children:t.jsx(pl,{role:"menuitemcheckbox","aria-checked":jl(r)?"mixed":r,...a,ref:n,"data-state":Ll(r),onSelect:Nt(a.onSelect,()=>o?.(!!jl(r)||!r),{checkForDefaultPrevented:!1})})})});hl.displayName="MenuCheckboxItem";var gl="MenuRadioGroup",[bl,vl]=Us(gl,{value:void 0,onValueChange:()=>{}}),yl=c.forwardRef((e,n)=>{const{value:r,onValueChange:o,...a}=e,i=Bt(o);return t.jsx(bl,{scope:e.__scopeMenu,value:r,onValueChange:i,children:t.jsx(cl,{...a,ref:n})})});yl.displayName=gl;var wl="MenuRadioItem",xl=c.forwardRef((e,n)=>{const{value:r,...o}=e,a=vl(wl,e.__scopeMenu),i=r===a.value;return t.jsx(_l,{scope:e.__scopeMenu,checked:i,children:t.jsx(pl,{role:"menuitemradio","aria-checked":i,...o,ref:n,"data-state":Ll(i),onSelect:Nt(o.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});xl.displayName=wl;var El="MenuItemIndicator",[_l,kl]=Us(El,{checked:!1}),Cl=c.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:o,...a}=e,i=kl(El,r);return t.jsx(sn,{present:o||jl(i.checked)||!0===i.checked,children:t.jsx(It.span,{...a,ref:n,"data-state":Ll(i.checked)})})});Cl.displayName=El;var Nl=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e;return t.jsx(It.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});Nl.displayName="MenuSeparator";var Dl=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e,a=Hs(r);return t.jsx(ui,{...a,...o,ref:n})});Dl.displayName="MenuArrow";var[Sl,Al]=Us("MenuSub"),Tl="MenuSubTrigger",Rl=c.forwardRef((e,n)=>{const r=$s(Tl,e.__scopeMenu),o=Ks(Tl,e.__scopeMenu),a=Al(Tl,e.__scopeMenu),i=rl(Tl,e.__scopeMenu),s=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=i,d={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]),t.jsx(Ys,{asChild:!0,...d,children:t.jsx(ml,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":Ml(r.open),...e,ref:ot(n,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Nt(e.onPointerMove,Pl(t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:Nt(e.onPointerLeave,Pl(e=>{f();const t=r.content?.getBoundingClientRect();if(t){const n=r.content?.dataset.side,o="right"===n,a=o?-5:5,s=t[o?"left":"right"],c=t[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:s,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Nt(e.onKeyDown,t=>{const n=""!==i.searchRef.current;e.disabled||n&&" "===t.key||js[o.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});Rl.displayName=Tl;var Ol="MenuSubContent",Fl=c.forwardRef((e,n)=>{const r=Qs(tl,e.__scopeMenu),{forceMount:o=r.forceMount,...a}=e,i=$s(tl,e.__scopeMenu),s=Ks(tl,e.__scopeMenu),l=Al(Ol,e.__scopeMenu),u=c.useRef(null),d=at(n,u);return t.jsx(Is.Provider,{scope:e.__scopeMenu,children:t.jsx(sn,{present:o||i.open,children:t.jsx(Is.Slot,{scope:e.__scopeMenu,children:t.jsx(ll,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Nt(e.onFocusOutside,e=>{e.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Nt(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:Nt(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=Ls[s.dir].includes(e.key);t&&n&&(i.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function Ml(e){return e?"open":"closed"}function jl(e){return"indeterminate"===e}function Ll(e){return jl(e)?"indeterminate":e?"checked":"unchecked"}function Pl(e){return t=>"mouse"===t.pointerType?e(t):void 0}Fl.displayName=Ol;var Il=Zs,zl=Ys,Bl=el,Ul=ol,ql=cl,Hl=ul,Wl=pl,Vl=hl,$l=yl,Gl=xl,Kl=Cl,Zl=Nl,Yl=Dl,Jl=Rl,Xl=Fl,Ql="DropdownMenu",[ec,tc]=Dt(Ql,[qs]),nc=qs(),[rc,oc]=ec(Ql),ac=e=>{const{__scopeDropdownMenu:n,children:r,dir:o,open:a,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,u=nc(n),d=c.useRef(null),[f,p]=Mt({prop:a,defaultProp:i??!1,onChange:s,caller:Ql});return t.jsx(rc,{scope:n,triggerId:Ot(),triggerRef:d,contentId:Ot(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(e=>!e),[p]),modal:l,children:t.jsx(Il,{...u,open:f,onOpenChange:p,dir:o,modal:l,children:r})})};ac.displayName=Ql;var ic="DropdownMenuTrigger",sc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...a}=e,i=oc(ic,r),s=nc(r);return t.jsx(zl,{asChild:!0,...s,children:t.jsx(It.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:ot(n,i.triggerRef),onPointerDown:Nt(e.onPointerDown,e=>{o||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:Nt(e.onKeyDown,e=>{o||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});sc.displayName=ic;var lc=e=>{const{__scopeDropdownMenu:n,...r}=e,o=nc(n);return t.jsx(Bl,{...o,...r})};lc.displayName="DropdownMenuPortal";var cc="DropdownMenuContent",uc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=oc(cc,r),i=nc(r),s=c.useRef(!1);return t.jsx(Ul,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...o,ref:n,onCloseAutoFocus:Nt(e.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:Nt(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.modal&&!r||(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});uc.displayName=cc;c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(ql,{...a,...o,ref:n})}).displayName="DropdownMenuGroup";var dc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(Hl,{...a,...o,ref:n})});dc.displayName="DropdownMenuLabel";var fc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(Wl,{...a,...o,ref:n})});fc.displayName="DropdownMenuItem";var pc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(Vl,{...a,...o,ref:n})});pc.displayName="DropdownMenuCheckboxItem";c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx($l,{...a,...o,ref:n})}).displayName="DropdownMenuRadioGroup";var mc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(Gl,{...a,...o,ref:n})});mc.displayName="DropdownMenuRadioItem";var hc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(Kl,{...a,...o,ref:n})});hc.displayName="DropdownMenuItemIndicator";var gc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(Zl,{...a,...o,ref:n})});gc.displayName="DropdownMenuSeparator";c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(Yl,{...a,...o,ref:n})}).displayName="DropdownMenuArrow";var bc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(Jl,{...a,...o,ref:n})});bc.displayName="DropdownMenuSubTrigger";var vc=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=nc(r);return t.jsx(Xl,{...a,...o,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});vc.displayName="DropdownMenuSubContent";var yc=lc,wc=uc,xc=dc,Ec=fc,_c=pc,kc=mc,Cc=hc,Nc=gc,Dc=bc,Sc=vc,Ac=ac,Tc=sc,Rc=c.forwardRef(function(e,t){var n=e.className,r=e.inset,o=e.children,a=_(e,["className","inset","children"]);return c.createElement(Dc,Object.assign({ref:t,className:tt("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",n)},a),o,c.createElement(R,{className:"ml-auto"}))});Rc.displayName=Dc.displayName;var Oc=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Sc,Object.assign({ref:t,className:tt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 origin-[--radix-dropdown-menu-content-transform-origin]",n)},r))});Oc.displayName=Sc.displayName;var Fc=c.forwardRef(function(e,t){var n=e.className,r=e.sideOffset,o=void 0===r?4:r,a=_(e,["className","sideOffset"]);return c.createElement(yc,null,c.createElement(wc,Object.assign({ref:t,sideOffset:o,className:tt("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 origin-[--radix-dropdown-menu-content-transform-origin]",n)},a)))});Fc.displayName=wc.displayName;var Mc=c.forwardRef(function(e,t){var n=e.className,r=e.inset,o=_(e,["className","inset"]);return c.createElement(Ec,Object.assign({ref:t,className:tt("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",n)},o))});Mc.displayName=Ec.displayName;var jc=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=e.checked,a=_(e,["className","children","checked"]);return c.createElement(_c,Object.assign({ref:t,className:tt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:o},a),c.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},c.createElement(Cc,null,c.createElement(S,{className:"h-4 w-4"}))),r)});jc.displayName=_c.displayName;var Lc=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=_(e,["className","children"]);return c.createElement(kc,Object.assign({ref:t,className:tt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},o),c.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},c.createElement(Cc,null,c.createElement(F,{className:"h-2 w-2 fill-current"}))),r)});Lc.displayName=kc.displayName;var Pc=c.forwardRef(function(e,t){var n=e.className,r=e.inset,o=_(e,["className","inset"]);return c.createElement(xc,Object.assign({ref:t,className:tt("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",n)},o))});Pc.displayName=xc.displayName;var Ic=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Nc,Object.assign({ref:t,className:tt("-mx-1 my-1 h-px bg-muted",n)},r))});Ic.displayName=Nc.displayName;var zc=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{const r=ct(`Primitive.${n}`),o=c.forwardRef((e,o)=>{const{asChild:a,...i}=e,s=a?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(s,{...i,ref:o})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{}),Bc=c.forwardRef((e,n)=>t.jsx(zc.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));Bc.displayName="Label";var Uc=Bc,qc=gt("text-sm font-bold leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-foreground"),Hc=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Uc,Object.assign({ref:t,className:tt(qc(),n)},r))});Hc.displayName=Uc.displayName;var Wc=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:tt("rounded-[2rem] border border-[hsl(var(--border))]/50 bg-card text-card-foreground shadow-[0_4px_20px_-2px_rgba(93,112,82,0.15)] transition-all duration-300",n)},r))});Wc.displayName="Card";var Vc=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:tt("flex flex-col space-y-1.5 p-6",n)},r))});Vc.displayName="CardHeader";var $c=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:tt("text-2xl font-bold leading-none tracking-tight",n)},r))});$c.displayName="CardTitle";var Gc=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:tt("text-sm text-muted-foreground",n)},r))});Gc.displayName="CardDescription";var Kc=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:tt("p-6 pt-0",n)},r))});Kc.displayName="CardContent";var Zc=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:tt("flex items-center p-6 pt-0",n)},r))});Zc.displayName="CardFooter";var Yc={items:[],config:Object.assign({},{top:24,duration:3,maxCount:5})},Jc=new Set;function Xc(){Jc.forEach(function(e){return e(Yc.items.slice())})}function Qc(t){switch(t){case"success":return e.createElement(D,null);case"error":return e.createElement(oe,null);case"warning":return e.createElement(N,null);case"loading":return e.createElement(W,{className:"animate-spin"});default:return e.createElement(q,null)}}function eu(e){var t,n,r;ou();var o=Date.now(),a=null!==(t=e.key)&&void 0!==t?t:"msg_".concat(o,"_").concat(Math.random().toString(36).slice(2)),i=Yc.items.findIndex(function(e){return e.key===a}),s={key:a,content:e.content,duration:null!==(n=e.duration)&&void 0!==n?n:Yc.config.duration,type:e.type,onClose:e.onClose,icon:null!==(r=e.icon)&&void 0!==r?r:Qc(e.type),className:e.className,createdAt:o};return i>=0?Yc.items[i]=Object.assign({},Yc.items[i],s):(Yc.items.length>=Yc.config.maxCount&&Yc.items.shift(),Yc.items.push(s)),Xc(),s.duration>0&&"loading"!==s.type&&window.setTimeout(function(){tu(a)},1e3*s.duration),{close:function(){return tu(a)}}}function tu(e){var t;if(void 0===e)return Yc.items.forEach(function(e){var t;return null===(t=e.onClose)||void 0===t?void 0:t.call(e)}),Yc.items=[],void Xc();var n=Yc.items.findIndex(function(t){return t.key===e});if(n>=0){var r=v(Yc.items.splice(n,1),1)[0];null===(t=null==r?void 0:r.onClose)||void 0===t||t.call(r),Xc()}}var nu=null,ru=null;function ou(){"undefined"!=typeof window&&(ru||((ru=document.createElement("div")).setAttribute("data-custom-message-holder",""),document.body.appendChild(ru)),nu||(nu=r.createRoot(ru)).render(e.createElement(au,null)))}function au(){var t=function(){var t=v(e.useState(Yc.items),2),n=t[0],r=t[1];return e.useEffect(function(){var e=r;return Jc.add(e),function(){Jc.delete(e)}},[]),n}(),n=Yc.config.top;return e.createElement("div",{className:"fixed left-1/2 -translate-x-1/2 z-[1000] w-80 pointer-events-none",style:{top:n}},e.createElement("div",{className:"mx-auto flex w-full max-w-xl flex-col items-center gap-2 px-4"},t.map(function(t){var n,r,o=function(e){switch(e){case"success":return{container:"border-green-200 bg-green-50/90 text-green-800 border-l-4 border-l-green-500",icon:"text-green-500",text:"text-green-800"};case"error":return{container:"border-red-200 bg-red-50/90 text-red-800 border-l-4 border-l-red-500",icon:"text-red-500",text:"text-red-800"};case"warning":return{container:"border-yellow-200 bg-yellow-50/90 text-yellow-800 border-l-4 border-l-yellow-500",icon:"text-yellow-500",text:"text-yellow-800"};default:return{container:"border-blue-200 bg-blue-50/90 text-blue-800 border-l-4 border-l-blue-500",icon:"text-blue-500",text:"text-blue-800"}}}(t.type);return e.createElement("div",{key:t.key,className:"pointer-events-auto flex w-full items-center gap-2 rounded-md border px-3 py-2 backdrop-blur ".concat(o.container," ").concat(null!==(n=t.className)&&void 0!==n?n:"")},e.createElement("span",{className:"text-[18px] leading-none ".concat(o.icon)},null!==(r=t.icon)&&void 0!==r?r:Qc(t.type)),e.createElement("div",{className:"min-w-0 flex-1 text-[14px] leading-normal ".concat(o.text)},"string"==typeof t.content?e.createElement("span",{className:"break-words align-middle"},t.content):t.content))})))}function iu(t,n,r,o){if(e.isValidElement(n)||"string"==typeof n||"number"==typeof n)return{type:t,content:n,duration:r,onClose:o};var a=n;return Object.assign({},a,{type:t})}var su,lu,cu=(lu={open:function(e){var t;return eu(Object.assign({},e,{type:null!==(t=e.type)&&void 0!==t?t:"info"}))},info:function(e,t,n){return eu(iu("info",e,t,n))},success:function(e,t,n){return eu(iu("success",e,t,n))},error:function(e,t,n){return eu(iu("error",e,t,n))},warning:function(e,t,n){return eu(iu("warning",e,t,n))},loading:function(e,t,n){return eu(iu("loading",e,null!=t?t:0,n))},destroy:function(e){return tu(e)},config:function(e){return t=e,Yc.config=Object.assign({},Yc.config,t),void Xc();var t},useMessage:function(){var t=e.useMemo(function(){return"undefined"!=typeof window&&ou(),e.createElement(e.Fragment,null)},[]);return[su.current,t]}},(su={}).current=lu,lu);function uu(e,t){return function(){return e.apply(t,arguments)}}const{toString:du}=Object.prototype,{getPrototypeOf:fu}=Object,{iterator:pu,toStringTag:mu}=Symbol,hu=(gu=Object.create(null),e=>{const t=du.call(e);return gu[t]||(gu[t]=t.slice(8,-1).toLowerCase())});var gu;const bu=e=>(e=e.toLowerCase(),t=>hu(t)===e),vu=e=>t=>typeof t===e,{isArray:yu}=Array,wu=vu("undefined");function xu(e){return null!==e&&!wu(e)&&null!==e.constructor&&!wu(e.constructor)&&ku(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Eu=bu("ArrayBuffer");const _u=vu("string"),ku=vu("function"),Cu=vu("number"),Nu=e=>null!==e&&"object"==typeof e,Du=e=>{if("object"!==hu(e))return!1;const t=fu(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||mu in e||pu in e)},Su=bu("Date"),Au=bu("File"),Tu=bu("Blob"),Ru=bu("FileList"),Ou=bu("URLSearchParams"),[Fu,Mu,ju,Lu]=["ReadableStream","Request","Response","Headers"].map(bu);function Pu(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),yu(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(xu(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function Iu(e,t){if(xu(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const zu="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,Bu=e=>!wu(e)&&e!==zu;const Uu=(qu="undefined"!=typeof Uint8Array&&fu(Uint8Array),e=>qu&&e instanceof qu);var qu;const Hu=bu("HTMLFormElement"),Wu=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),Vu=bu("RegExp"),$u=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};Pu(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const Gu=bu("AsyncFunction"),Ku=(Zu="function"==typeof setImmediate,Yu=ku(zu.postMessage),Zu?setImmediate:Yu?(Ju=`axios@${Math.random()}`,Xu=[],zu.addEventListener("message",({source:e,data:t})=>{e===zu&&t===Ju&&Xu.length&&Xu.shift()()},!1),e=>{Xu.push(e),zu.postMessage(Ju,"*")}):e=>setTimeout(e));var Zu,Yu,Ju,Xu;const Qu="undefined"!=typeof queueMicrotask?queueMicrotask.bind(zu):"undefined"!=typeof process&&process.nextTick||Ku;var ed={isArray:yu,isArrayBuffer:Eu,isBuffer:xu,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||ku(e.append)&&("formdata"===(t=hu(e))||"object"===t&&ku(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Eu(e.buffer),t},isString:_u,isNumber:Cu,isBoolean:e=>!0===e||!1===e,isObject:Nu,isPlainObject:Du,isEmptyObject:e=>{if(!Nu(e)||xu(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:Fu,isRequest:Mu,isResponse:ju,isHeaders:Lu,isUndefined:wu,isDate:Su,isFile:Au,isBlob:Tu,isRegExp:Vu,isFunction:ku,isStream:e=>Nu(e)&&ku(e.pipe),isURLSearchParams:Ou,isTypedArray:Uu,isFileList:Ru,forEach:Pu,merge:function e(){const{caseless:t,skipUndefined:n}=Bu(this)&&this||{},r={},o=(o,a)=>{const i=t&&Iu(r,a)||a;Du(r[i])&&Du(o)?r[i]=e(r[i],o):Du(o)?r[i]=e({},o):yu(o)?r[i]=o.slice():n&&wu(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&Pu(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(Pu(t,(t,r)=>{n&&ku(t)?e[r]=uu(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&fu(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:hu,kindOfTest:bu,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(yu(e))return e;let t=e.length;if(!Cu(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[pu]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:Hu,hasOwnProperty:Wu,hasOwnProp:Wu,reduceDescriptors:$u,freezeMethods:e=>{$u(e,(t,n)=>{if(ku(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];ku(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return yu(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:Iu,global:zu,isContextDefined:Bu,isSpecCompliantForm:function(e){return!!(e&&ku(e.append)&&"FormData"===e[mu]&&e[pu])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Nu(e)){if(t.indexOf(e)>=0)return;if(xu(e))return e;if(!("toJSON"in e)){t[r]=e;const o=yu(e)?[]:{};return Pu(e,(e,t)=>{const a=n(e,r+1);!wu(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:Gu,isThenable:e=>e&&(Nu(e)||ku(e))&&ku(e.then)&&ku(e.catch),setImmediate:Ku,asap:Qu,isIterable:e=>null!=e&&ku(e[pu])};function td(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}ed.inherits(td,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:ed.toJSONObject(this.config),code:this.code,status:this.status}}});const nd=td.prototype,rd={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rd[e]={value:e}}),Object.defineProperties(td,rd),Object.defineProperty(nd,"isAxiosError",{value:!0}),td.from=(e,t,n,r,o,a)=>{const i=Object.create(nd);ed.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return td.call(i,s,l,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};function od(e){return ed.isPlainObject(e)||ed.isArray(e)}function ad(e){return ed.endsWith(e,"[]")?e.slice(0,-2):e}function id(e,t,n){return e?e.concat(t).map(function(e,t){return e=ad(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const sd=ed.toFlatObject(ed,{},null,function(e){return/^is[A-Z]/.test(e)});function ld(e,t,n){if(!ed.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=ed.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!ed.isUndefined(t[e])})).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&ed.isSpecCompliantForm(t);if(!ed.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(ed.isDate(e))return e.toISOString();if(ed.isBoolean(e))return e.toString();if(!s&&ed.isBlob(e))throw new td("Blob is not supported. Use a Buffer instead.");return ed.isArrayBuffer(e)||ed.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(ed.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(ed.isArray(e)&&function(e){return ed.isArray(e)&&!e.some(od)}(e)||(ed.isFileList(e)||ed.endsWith(n,"[]"))&&(s=ed.toArray(e)))return n=ad(n),s.forEach(function(e,r){!ed.isUndefined(e)&&null!==e&&t.append(!0===i?id([n],r,a):null===i?n:n+"[]",l(e))}),!1;return!!od(e)||(t.append(id(o,n,a),l(e)),!1)}const u=[],d=Object.assign(sd,{defaultVisitor:c,convertValue:l,isVisitable:od});if(!ed.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!ed.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),ed.forEach(n,function(n,a){!0===(!(ed.isUndefined(n)||null===n)&&o.call(t,n,ed.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),u.pop()}}(e),t}function cd(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function ud(e,t){this._pairs=[],e&&ld(e,this,t)}const dd=ud.prototype;function fd(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function pd(e,t,n){if(!t)return e;const r=n&&n.encode||fd;ed.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):ed.isURLSearchParams(t)?t.toString():new ud(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}dd.append=function(e,t){this._pairs.push([e,t])},dd.toString=function(e){const t=e?function(t){return e.call(this,t,cd)}:cd;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var md=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){ed.forEach(this.handlers,function(t){null!==t&&e(t)})}},hd={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},gd={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:ud,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const bd="undefined"!=typeof window&&"undefined"!=typeof document,vd="object"==typeof navigator&&navigator||void 0,yd=bd&&(!vd||["ReactNative","NativeScript","NS"].indexOf(vd.product)<0),wd="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,xd=bd&&window.location.href||"http://localhost";var Ed={...Object.freeze({__proto__:null,hasBrowserEnv:bd,hasStandardBrowserEnv:yd,hasStandardBrowserWebWorkerEnv:wd,navigator:vd,origin:xd}),...gd};function _d(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&ed.isArray(r)?r.length:a,s)return ed.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&ed.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&ed.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(ed.isFormData(e)&&ed.isFunction(e.entries)){const n={};return ed.forEachEntry(e,(e,r)=>{t(function(e){return ed.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const kd={transitional:hd,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=ed.isObject(e);o&&ed.isHTMLForm(e)&&(e=new FormData(e));if(ed.isFormData(e))return r?JSON.stringify(_d(e)):e;if(ed.isArrayBuffer(e)||ed.isBuffer(e)||ed.isStream(e)||ed.isFile(e)||ed.isBlob(e)||ed.isReadableStream(e))return e;if(ed.isArrayBufferView(e))return e.buffer;if(ed.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return ld(e,new Ed.classes.URLSearchParams,{visitor:function(e,t,n,r){return Ed.isNode&&ed.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=ed.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return ld(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(ed.isString(e))try{return(t||JSON.parse)(e),ed.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||kd.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(ed.isResponse(e)||ed.isReadableStream(e))return e;if(e&&ed.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw td.from(e,td.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ed.classes.FormData,Blob:Ed.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};ed.forEach(["delete","get","head","post","put","patch"],e=>{kd.headers[e]={}});var Cd=kd;const Nd=ed.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Dd=Symbol("internals");function Sd(e){return e&&String(e).trim().toLowerCase()}function Ad(e){return!1===e||null==e?e:ed.isArray(e)?e.map(Ad):String(e)}function Td(e,t,n,r,o){return ed.isFunction(r)?r.call(this,t,n):(o&&(t=n),ed.isString(t)?ed.isString(r)?-1!==t.indexOf(r):ed.isRegExp(r)?r.test(t):void 0:void 0)}class Rd{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Sd(t);if(!o)throw new Error("header name must be a non-empty string");const a=ed.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Ad(e))}const a=(e,t)=>ed.forEach(e,(e,n)=>o(e,n,t));if(ed.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(ed.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Nd[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(ed.isObject(e)&&ed.isIterable(e)){let n,r,o={};for(const t of e){if(!ed.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?ed.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Sd(e)){const n=ed.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(ed.isFunction(t))return t.call(this,e,n);if(ed.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Sd(e)){const n=ed.findKey(this,e);return!(!n||void 0===this[n]||t&&!Td(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Sd(e)){const o=ed.findKey(n,e);!o||t&&!Td(0,n[o],o,t)||(delete n[o],r=!0)}}return ed.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Td(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return ed.forEach(this,(r,o)=>{const a=ed.findKey(n,o);if(a)return t[a]=Ad(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Ad(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return ed.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&ed.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Dd]=this[Dd]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Sd(e);t[r]||(!function(e,t){const n=ed.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return ed.isArray(e)?e.forEach(r):r(e),this}}Rd.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),ed.reduceDescriptors(Rd.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),ed.freezeMethods(Rd);var Od=Rd;function Fd(e,t){const n=this||Cd,r=t||n,o=Od.from(r.headers);let a=r.data;return ed.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function Md(e){return!(!e||!e.__CANCEL__)}function jd(e,t,n){td.call(this,null==e?"canceled":e,td.ERR_CANCELED,t,n),this.name="CanceledError"}function Ld(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new td("Request failed with status code "+n.status,[td.ERR_BAD_REQUEST,td.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}ed.inherits(jd,td,{__CANCEL__:!0});const Pd=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[i];o||(o=l),n[a]=s,r[a]=l;let u=i,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},Id=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},zd=e=>(...t)=>ed.asap(()=>e(...t));var Bd=Ed.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Ed.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Ed.origin),Ed.navigator&&/(msie|trident)/i.test(Ed.navigator.userAgent)):()=>!0,Ud=Ed.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];ed.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),ed.isString(r)&&s.push(`path=${r}`),ed.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),ed.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function qd(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const Hd=e=>e instanceof Od?{...e}:e;function Wd(e,t){t=t||{};const n={};function r(e,t,n,r){return ed.isPlainObject(e)&&ed.isPlainObject(t)?ed.merge.call({caseless:r},e,t):ed.isPlainObject(t)?ed.merge({},t):ed.isArray(t)?t.slice():t}function o(e,t,n,o){return ed.isUndefined(t)?ed.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!ed.isUndefined(t))return r(void 0,t)}function i(e,t){return ed.isUndefined(t)?ed.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(Hd(e),Hd(t),0,!0)};return ed.forEach(Object.keys({...e,...t}),function(r){const a=l[r]||o,i=a(e[r],t[r],r);ed.isUndefined(i)&&a!==s||(n[r]=i)}),n}var Vd=e=>{const t=Wd({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=Od.from(i),t.url=pd(qd(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),ed.isFormData(n))if(Ed.hasStandardBrowserEnv||Ed.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(ed.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(Ed.hasStandardBrowserEnv&&(r&&ed.isFunction(r)&&(r=r(t)),r||!1!==r&&Bd(t.url))){const e=o&&a&&Ud.read(a);e&&i.set(o,e)}return t};var $d="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=Vd(e);let o=r.data;const a=Od.from(r.headers).normalize();let i,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function m(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=Od.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());Ld(function(e){t(e),m()},function(e){n(e),m()},{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new td("Request aborted",td.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const r=new td(t&&t.message?t.message:"Network Error",td.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||hd;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new td(t,o.clarifyTimeoutError?td.ETIMEDOUT:td.ECONNABORTED,e,h)),h=null},void 0===o&&a.setContentType(null),"setRequestHeader"in h&&ed.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),ed.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),p&&([l,u]=Pd(p,!0),h.addEventListener("progress",l)),f&&h.upload&&([s,c]=Pd(f),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(i=t=>{h&&(n(!t||t.type?new jd(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===Ed.protocols.indexOf(b)?n(new td("Unsupported protocol "+b+":",td.ERR_BAD_REQUEST,e)):h.send(o||null)})};var Gd=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof td?t:new jd(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new td(`timeout ${t} of ms exceeded`,td.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>ed.asap(i),s}};const Kd=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},Zd=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},Yd=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of Zd(e))yield*Kd(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:Jd}=ed,Xd=(({Request:e,Response:t})=>({Request:e,Response:t}))(ed.global),{ReadableStream:Qd,TextEncoder:ef}=ed.global,tf=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},nf=e=>{e=ed.merge.call({skipUndefined:!0},Xd,e);const{fetch:t,Request:n,Response:r}=e,o=t?Jd(t):"function"==typeof fetch,a=Jd(n),i=Jd(r);if(!o)return!1;const s=o&&Jd(Qd),l=o&&("function"==typeof ef?(c=new ef,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=a&&s&&tf(()=>{let e=!1;const t=new n(Ed.origin,{body:new Qd,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=i&&s&&tf(()=>ed.isReadableStream(new r("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new td(`Response type '${e}' is not supported`,td.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=ed.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(ed.isBlob(e))return e.size;if(ed.isSpecCompliantForm(e)){const t=new n(Ed.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return ed.isArrayBufferView(e)||ed.isArrayBuffer(e)?e.byteLength:(ed.isURLSearchParams(e)&&(e+=""),ed.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:s,signal:l,cancelToken:c,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:b,headers:v,withCredentials:y="same-origin",fetchOptions:w}=Vd(e),x=t||fetch;b=b?(b+"").toLowerCase():"text";let E=Gd([l,c&&c.toAbortSignal()],m),_=null;const k=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let C;try{if(g&&u&&"get"!==i&&"head"!==i&&0!==(C=await p(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(ed.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=Id(C,Pd(zd(g)));s=Yd(t.body,65536,e,n)}}ed.isString(y)||(y=y?"include":"omit");const t=a&&"credentials"in n.prototype,l={...w,signal:E,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?y:void 0};_=a&&new n(o,l);let c=await(a?x(_,w):x(o,l));const m=d&&("stream"===b||"response"===b);if(d&&(h||m&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=c[t]});const t=ed.toFiniteNumber(c.headers.get("content-length")),[n,o]=h&&Id(t,Pd(zd(h),!0))||[];c=new r(Yd(c.body,65536,n,()=>{o&&o(),k&&k()}),e)}b=b||"text";let N=await f[ed.findKey(f,b)||"text"](c,e);return!m&&k&&k(),await new Promise((t,n)=>{Ld(t,n,{data:N,headers:Od.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:_})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new td("Network Error",td.ERR_NETWORK,e,_),{cause:t.cause||t});throw td.from(t,t&&t.code,e,_)}}},rf=new Map,of=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,l=a.length,c=rf;for(;l--;)i=a[l],s=c.get(i),void 0===s&&c.set(i,s=l?new Map:nf(t)),c=s;return s};of();const af={http:null,xhr:$d,fetch:{get:of}};ed.forEach(af,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const sf=e=>`- ${e}`,lf=e=>ed.isFunction(e)||null===e||!1===e;var cf={getAdapter:function(e,t){e=ed.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!lf(r)&&(o=af[(n=String(r)).toLowerCase()],void 0===o))throw new td(`Unknown adapter '${n}'`);if(o&&(ed.isFunction(o)||(o=o.get(t))))break;a[n||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new td("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(sf).join("\n"):" "+sf(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:af};function uf(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new jd(null,e)}function df(e){uf(e),e.headers=Od.from(e.headers),e.data=Fd.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return cf.getAdapter(e.adapter||Cd.adapter,e)(e).then(function(t){return uf(e),t.data=Fd.call(e,e.transformResponse,t),t.headers=Od.from(t.headers),t},function(t){return Md(t)||(uf(e),t&&t.response&&(t.response.data=Fd.call(e,e.transformResponse,t.response),t.response.headers=Od.from(t.response.headers))),Promise.reject(t)})}const ff="1.13.2",pf={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{pf[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const mf={};pf.transitional=function(e,t,n){return(r,o,a)=>{if(!1===e)throw new td(function(e,t){return"[Axios v"+ff+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),td.ERR_DEPRECATED);return t&&!mf[o]&&(mf[o]=!0),!e||e(r,o,a)}},pf.spelling=function(e){return(e,t)=>!0};var hf={assertOptions:function(e,t,n){if("object"!=typeof e)throw new td("options must be an object",td.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new td("option "+a+" must be "+n,td.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new td("Unknown option "+a,td.ERR_BAD_OPTION)}},validators:pf};const gf=hf.validators;class bf{constructor(e){this.defaults=e||{},this.interceptors={request:new md,response:new md}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=Wd(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&hf.assertOptions(n,{silentJSONParsing:gf.transitional(gf.boolean),forcedJSONParsing:gf.transitional(gf.boolean),clarifyTimeoutError:gf.transitional(gf.boolean)},!1),null!=r&&(ed.isFunction(r)?t.paramsSerializer={serialize:r}:hf.assertOptions(r,{encode:gf.function,serialize:gf.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),hf.assertOptions(t,{baseUrl:gf.spelling("baseURL"),withXsrfToken:gf.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&ed.merge(o.common,o[t.method]);o&&ed.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=Od.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[df.bind(this),void 0];for(e.unshift(...i),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let f=t;for(;d<u;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=df.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return pd(qd((e=Wd(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}ed.forEach(["delete","get","head","options"],function(e){bf.prototype[e]=function(t,n){return this.request(Wd(n||{},{method:e,url:t,data:(n||{}).data}))}}),ed.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(Wd(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}bf.prototype[e]=t(),bf.prototype[e+"Form"]=t(!0)});var vf=bf;class yf{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new jd(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new yf(function(t){e=t}),cancel:e}}}var wf=yf;const xf={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(xf).forEach(([e,t])=>{xf[t]=e});var Ef=xf;const _f=function e(t){const n=new vf(t),r=uu(vf.prototype.request,n);return ed.extend(r,vf.prototype,n,{allOwnKeys:!0}),ed.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(Wd(t,n))},r}(Cd);_f.Axios=vf,_f.CanceledError=jd,_f.CancelToken=wf,_f.isCancel=Md,_f.VERSION=ff,_f.toFormData=ld,_f.AxiosError=td,_f.Cancel=_f.CanceledError,_f.all=function(e){return Promise.all(e)},_f.spread=function(e){return function(t){return e.apply(null,t)}},_f.isAxiosError=function(e){return ed.isObject(e)&&!0===e.isAxiosError},_f.mergeConfig=Wd,_f.AxiosHeaders=Od,_f.formToJSON=e=>_d(ed.isHTMLForm(e)?new FormData(e):e),_f.getAdapter=cf.getAdapter,_f.HttpStatusCode=Ef,_f.default=_f;var kf=_f.create({baseURL:"/api/cms",timeout:1e4,headers:{"Content-Type":"application/json"}}),Cf=new Map;kf.interceptors.request.use(function(e){e.url&&e.url.startsWith("http")&&(e.baseURL="");var t=localStorage.getItem("cms_token");t&&(e.headers.Authorization="Bearer ".concat(t));var n=localStorage.getItem("cms_session_id");return n&&(e.headers["X-Session-Id"]=n),e},function(e){return Promise.reject(e)}),kf.interceptors.response.use(function(e){return e},function(e){var t="请求错误",n=!1;if(e.response){var r=e.response.status,o=e.response.data;401===r?"登录已过期,请重新登录"===(null==o?void 0:o.message)?(t="登录已过期,请重新登录",n=!0):"认证信息无效"===(null==o?void 0:o.message)?(t="认证信息无效,请重新登录",n=!0):(t="认证失败,请登录",n=!0):t=(null==o?void 0:o.message)||"HTTP ".concat(r,": ").concat(e.response.statusText)}else t=e.request?"网络连接失败,请检查网络状态":e.message||"请求错误";return n?(localStorage.removeItem("cms_token"),localStorage.removeItem("cms_user"),"/login"!==window.location.pathname&&"/"!==window.location.pathname&&(cu.error(t),setTimeout(function(){window.location.reload()},1e3))):cu.error(t),Promise.reject(e)});var Nf,Df=function(e,t,n){var r=e;if(t){var o=new URLSearchParams(t).toString();r=r+(r.includes("?")?"&":"?")+o}var a="GET ".concat(r),i=Cf.get(a);if(i)return i;var s=kf.get(r,n).then(function(e){return e.data}).finally(function(){Cf.delete(a)});return Cf.set(a,s),s},Sf=function(e,t,n){return kf.post(e,t,n).then(function(e){return e.data})},Af=function(e,t,n){return kf.put(e,t,n).then(function(e){return e.data})},Tf=function(e,t){return kf.delete(e,t).then(function(e){return e.data})};function Rf(){return Nf}function Of(){return Rf()}function Ff(e){return e?e.replace(/-/g,"_")+"_":""}function Mf(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rf(),n=(e||"").trim();if(!n)return n;var r=Ff(t);return r?n.startsWith(r)?n:"".concat(r).concat(n):n}function jf(e){return!e||!e.readOnly&&!1!==e.editable}function Lf(e){return null!=e&&("string"==typeof e?""!==e.trim():!Array.isArray(e)||e.length>0)}function Pf(e,t){if(!e||0===e.length)return null;var n,r=m(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(null==o?void 0:o.required)if("id"!==o.name)if(jf(o))if("relation"===o.type&&o.relation){if(!Lf(t[o.relation.foreignKey||"".concat(o.relation.target,"_id")]))return o}else if(!Lf(t[o.name]))return o}}catch(e){r.e(e)}finally{r.f()}return null}function If(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rf(),n=(e||"").trim();if(!n)return n;var r=Ff(t);if(!r)return n;if(n.startsWith(r))return n;throw new Error('表名必须包含当前 session 前缀 "'.concat(r,'",请传完整表名'))}function zf(e){Nf=e;try{localStorage.setItem("cms_session_id",e)}catch(e){}}var Bf=function(){return Df("/auth/signup/status/".concat(Ff(Rf()),"cms_users"))},Uf=function(e){return Sf("/auth/signup/".concat(Ff(Rf()),"cms_users"),e)},qf=function(e){return Sf("/auth/login/".concat(Ff(Rf()),"cms_users"),e)},Hf=function(){return Sf("/auth/verify/".concat(Ff(Rf()),"cms_users"))},Wf=function(){return Df("/auth/user/".concat(Ff(Rf()),"cms_users"))},Vf=function(){localStorage.removeItem("cms_token"),localStorage.removeItem("cms_user")},$f=function(){return localStorage.getItem("cms_token")},Gf=function(){var e=localStorage.getItem("cms_user");return e?JSON.parse(e):null},Kf=function(e,t){var n=If(e),r=t?Object.assign({},t):void 0;return(null==r?void 0:r.filters)&&Array.isArray(r.filters)&&(r.filters=JSON.stringify(r.filters)),Df("/data/".concat(n),r)},Zf=function(e,t){var n=If(e);return Df("/relation/".concat(n,"/options"),t)},Yf=function(e,t){var n=If(e);return Sf("/data/".concat(n),t)},Jf=function(e,t){var n=If(e);return Af("/data/".concat(n),t)},Xf=function(e,t){var n=If(e);return Tf("/data/".concat(n,"?id=").concat(t))},Qf={"zh-CN":{common:{confirm:"确认",cancel:"取消",save:"保存",delete:"删除",edit:"编辑",add:"添加",search:"搜索",filter:"筛选",reset:"重置",submit:"提交",back:"返回",next:"下一页",previous:"上一页",loading:"加载中...",success:"成功",error:"错误",warning:"警告",info:"信息",close:"关闭",refresh:"刷新",export:"导出",import:"导入",view:"查看",create:"创建",update:"更新",actions:"操作",operation:"操作",total:"共",page:"页",pageSize:"每页",goto:"跳转"},auth:{login:"登录",logout:"登出",username:"用户名",password:"密码",email:"邮箱",signup:"注册",welcome:"欢迎",loginSuccess:"登录成功",loginFailed:"登录失败",logoutSuccess:"已成功登出",logoutConfirm:"确定要登出系统吗?",pleaseLogin:"请登录",invalidCredentials:"用户名或密码错误",createAdminAccount:"创建管理员账号",adminCreatedSuccess:"管理员账号创建成功",noAdmin:"系统中还没有管理员账号",firstTimeSetup:"首次使用,请创建管理员账号"},data:{dataManagement:"内容管理",dataList:"内容列表",addData:"新建记录",editData:"编辑记录",deleteData:"删除记录",deleteConfirm:"确定要删除这条记录吗?",deleteSuccess:"删除成功",deleteFailed:"删除失败",createSuccess:"创建成功",createFailed:"创建失败",updateSuccess:"更新成功",updateFailed:"更新失败",loadFailed:"加载失败",noData:"暂无数据",selectModel:"选择内容类型",selectModelFirst:"请先选择内容类型",selectModelPrompt:"请选择数据模型",searchPlaceholder:"搜索...",searchData:"搜索数据...",filterTitle:"筛选条件",addFilter:"添加筛选",clearFilters:"清除筛选",totalRecords:"条记录",perPage:"条/页",newData:"新建记录",newRecord:"新建数据",createdAt:"创建时间",updatedAt:"更新时间",yes:"是",no:"否",operationFailed:"操作失败",deleteConfirmFull:"确定要删除这条数据吗?此操作不可撤销。",updating:"更新中...",creating:"创建中...",viewAndManage:"查看和管理",ofData:"的数据",totalCount:"共",records:"条数据",page:"第",pageOf:"页,共",pages:"页",previousPage:"上一页",nextPage:"下一页",tableName:"表名",editRecord:"编辑数据",createRecord:"新建数据",loadingOptions:"加载中...",pleaseSelect:"请选择",clickToOpenImage:"点击打开原图",fieldError:"字段",loadRelationOptionsFailed:"加载关联选项失败",assetUploadButton:"上传文件",assetUploading:"上传中...",assetReplace:"替换文件",assetClear:"清空",assetEmpty:"暂未上传资源",assetAcceptHint:"允许格式",assetMaxSizeHint:"大小限制",assetUploadSuccess:"上传成功",assetUploadFailed:"上传失败",assetUploadHandlerMissing:"当前 CMS 未配置上传处理器",assetUploadInvalidType:"所选文件类型不受支持",assetUploadTooLarge:"文件大小超过限制",assetUploadInvalidResult:"上传结果无效,未返回 URL",markdownPlaceholder:"请输入 Markdown 内容...",markdownWrite:"编写",markdownPreview:"预览",markdownSplit:"分栏",markdownQuote:"引用",markdownLink:"链接",markdownCode:"代码",markdownClear:"清空",markdownEmpty:"-"},model:{modelManagement:"内容类型管理",modelList:"内容类型列表",addModel:"新增内容类型",editModel:"编辑内容类型",deleteModel:"删除内容类型",deleteConfirm:"确定要删除这个内容类型吗?",modelName:"名称",tableName:"数据库标识符",fields:"字段列表",fieldName:"字段名称",fieldType:"字段类型",fieldComment:"字段描述",required:"必填",unique:"唯一",maxLength:"最大长度",defaultValue:"默认值",addField:"添加字段",removeField:"移除字段",createSuccess:"内容类型创建成功",createFailed:"内容类型创建失败",updateSuccess:"内容类型更新成功",updateFailed:"内容类型更新失败",deleteSuccess:"内容类型删除成功",deleteFailed:"内容类型删除失败",loadFailed:"加载内容类型失败",noModels:"暂无内容类型"},field:{string:"字符串",number:"数字",boolean:"布尔值",date:"日期",datetime:"日期时间",text:"文本",email:"邮箱",url:"链接",json:"JSON",relation:"关联",timestamp:"时间戳",time:"时间",enum:"枚举",select:"下拉选择",asset:"资源上传"},validation:{required:"此字段为必填项",invalidEmail:"请输入有效的邮箱地址",invalidUrl:"请输入有效的URL",maxLength:"超过最大长度限制",minLength:"未达到最小长度要求",invalidFormat:"格式不正确"},settings:{settings:"设置",language:"语言",theme:"主题",general:"通用",advanced:"高级",navigation:"导航",dragToReorder:"拖拽以调整顺序",copyUsername:"点击复制用户名",usernameCopied:"用户名已复制",copyFailed:"复制失败"}},"en-US":{common:{confirm:"Confirm",cancel:"Cancel",save:"Save",delete:"Delete",edit:"Edit",add:"Add",search:"Search",filter:"Filter",reset:"Reset",submit:"Submit",back:"Back",next:"Next",previous:"Previous",loading:"Loading...",success:"Success",error:"Error",warning:"Warning",info:"Info",close:"Close",refresh:"Refresh",export:"Export",import:"Import",view:"View",create:"Create",update:"Update",actions:"Actions",operation:"Operation",total:"Total",page:"Page",pageSize:"Page Size",goto:"Go to"},auth:{login:"Login",logout:"Logout",username:"Username",password:"Password",email:"Email",signup:"Sign Up",welcome:"Welcome",loginSuccess:"Login successful",loginFailed:"Login failed",logoutSuccess:"Logout successful",logoutConfirm:"Are you sure you want to logout?",pleaseLogin:"Please login",invalidCredentials:"Invalid username or password",createAdminAccount:"Create Admin Account",adminCreatedSuccess:"Admin account created successfully",noAdmin:"No admin account exists",firstTimeSetup:"First time setup, please create admin account"},data:{dataManagement:"Content",dataList:"Content List",addData:"New Record",editData:"Edit Record",deleteData:"Delete Record",deleteConfirm:"Are you sure you want to delete this record?",deleteSuccess:"Deleted successfully",deleteFailed:"Delete failed",createSuccess:"Created successfully",createFailed:"Create failed",updateSuccess:"Updated successfully",updateFailed:"Update failed",loadFailed:"Load failed",noData:"No data",selectModel:"Select Content Type",selectModelFirst:"Please select a content type first",selectModelPrompt:"Please select a data model",searchPlaceholder:"Search...",searchData:"Search data...",filterTitle:"Filters",addFilter:"Add Filter",clearFilters:"Clear Filters",totalRecords:"records",perPage:"per page",newData:"New Record",newRecord:"New Data",createdAt:"Created At",updatedAt:"Updated At",yes:"Yes",no:"No",operationFailed:"Operation failed",deleteConfirmFull:"Are you sure you want to delete this data? This action cannot be undone.",updating:"Updating...",creating:"Creating...",viewAndManage:"View and manage",ofData:"data",totalCount:"Total",records:"records",page:"Page",pageOf:"of",pages:"pages",previousPage:"Previous",nextPage:"Next",tableName:"Table",editRecord:"Edit Data",createRecord:"New Data",loadingOptions:"Loading...",pleaseSelect:"Please select",clickToOpenImage:"Click to open image",fieldError:"Field",loadRelationOptionsFailed:"Failed to load relation options",assetUploadButton:"Upload file",assetUploading:"Uploading...",assetReplace:"Replace file",assetClear:"Clear",assetEmpty:"No asset uploaded yet",assetAcceptHint:"Accepted",assetMaxSizeHint:"Max size",assetUploadSuccess:"Upload successful",assetUploadFailed:"Upload failed",assetUploadHandlerMissing:"No upload handler is configured for this CMS",assetUploadInvalidType:"The selected file type is not supported",assetUploadTooLarge:"The selected file exceeds the size limit",assetUploadInvalidResult:"Upload result is invalid because no URL was returned",markdownPlaceholder:"Write markdown here...",markdownWrite:"Write",markdownPreview:"Preview",markdownSplit:"Split",markdownQuote:"Quote",markdownLink:"Link",markdownCode:"Code",markdownClear:"Clear",markdownEmpty:"-"},model:{modelManagement:"Content Types",modelList:"Content Type List",addModel:"New Content Type",editModel:"Edit Content Type",deleteModel:"Delete Content Type",deleteConfirm:"Are you sure you want to delete this content type?",modelName:"Name",tableName:"Database Identifier",fields:"Fields",fieldName:"Field Name",fieldType:"Field Type",fieldComment:"Field Description",required:"Required",unique:"Unique",maxLength:"Max Length",defaultValue:"Default Value",addField:"Add Field",removeField:"Remove Field",createSuccess:"Content type created successfully",createFailed:"Content type creation failed",updateSuccess:"Content type updated successfully",updateFailed:"Content type update failed",deleteSuccess:"Content type deleted successfully",deleteFailed:"Content type deletion failed",loadFailed:"Failed to load content types",noModels:"No content types"},field:{string:"String",number:"Number",boolean:"Boolean",date:"Date",datetime:"Datetime",text:"Text",email:"Email",url:"URL",json:"JSON",relation:"Relation",timestamp:"Timestamp",time:"Time",enum:"Enum",select:"Select",asset:"Asset"},validation:{required:"This field is required",invalidEmail:"Please enter a valid email address",invalidUrl:"Please enter a valid URL",maxLength:"Exceeded maximum length",minLength:"Below minimum length",invalidFormat:"Invalid format"},settings:{settings:"Settings",language:"Language",theme:"Theme",general:"General",advanced:"Advanced",navigation:"Navigation",dragToReorder:"Drag to reorder",copyUsername:"Click to copy username",usernameCopied:"Username copied",copyFailed:"Copy failed"}}},ep=e.createContext(void 0);function tp(t){var n=t.children,r=t.defaultLocale,o=v(e.useState(r||function(){try{var e=localStorage.getItem("cms_locale");if(e&&("zh-CN"===e||"en-US"===e))return e}catch(e){}return"zh-CN"}()),2),a=o[0],i=o[1],s={locale:a,setLocale:function(e){i(e),function(e){try{localStorage.setItem("cms_locale",e)}catch(e){}}(e)},t:function(e){var t,n=e.split("."),r=Qf[a],o=m(n);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(!r||"object"!==w(r)||!(i in r))return e;r=r[i]}}catch(e){o.e(e)}finally{o.f()}return"string"==typeof r?r:e},messages:Qf[a]};return e.createElement(ep.Provider,{value:s},n)}function np(){var t=e.useContext(ep);if(!t)throw new Error("useTranslation must be used within I18nProvider");return t}function rp(){return np().t}function op(){var e=np();return{locale:e.locale,setLocale:e.setLocale}}function ap(e){var t,n=function(e){try{var t=e.split(".")[1],n=atob(t.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(n)}catch(e){return null}}(e);(null===(t=null==n?void 0:n.user_metadata)||void 0===t?void 0:t.session_id)&&zf(n.user_metadata.session_id.replace(/_/g,"-"))}function ip(t){var n=t.onLoginSuccess,r=rp(),o=v(e.useState(""),2),a=o[0],i=o[1],s=v(e.useState(""),2),l=s[0],c=s[1],u=v(e.useState(!1),2),d=u[0],f=u[1],m=v(e.useState("login"),2),h=m[0],b=m[1];e.useEffect(function(){var e=$f();if(e){var t=function(){var t=p(g().m(function t(){var r;return g().w(function(t){for(;;)switch(t.p=t.n){case 0:return f(!0),t.p=1,t.n=2,Hf();case 2:if(t.v.success){t.n=3;break}throw new Error("token验证失败");case 3:return t.n=4,Wf();case 4:if(!(r=t.v).success||!r.data){t.n=5;break}localStorage.setItem("cms_user",JSON.stringify(r.data)),ap(e),null==n||n(e,r.data),t.n=6;break;case 5:throw new Error("获取用户信息失败");case 6:t.n=8;break;case 7:t.p=7,t.v,Vf();case 8:return t.p=8,f(!1),t.f(8);case 9:return t.a(2)}},t,null,[[1,7,8,9]])}));return function(){return t.apply(this,arguments)}}();t()}},[n]),e.useEffect(function(){if(!$f()){var e=function(){var e=p(g().m(function e(){var t,n;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:return f(!0),e.p=1,e.n=2,Bf();case 2:(n=e.v).success&&(null===(t=n.data)||void 0===t?void 0:t.allowSignup)?b("signup"):b("login"),e.n=4;break;case 3:e.p=3,e.v,b("login");case 4:return e.p=4,f(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();e()}},[]);var y=function(){var e=p(g().m(function e(t){var o,i,s,c,u;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.preventDefault(),a&&l){e.n=1;break}return cu.error(r("validation.required")),e.a(2);case 1:if(f(!0),e.p=2,"signup"!==h){e.n=4;break}return e.n=3,Uf({username:a,password:l});case 3:c=e.v,e.n=6;break;case 4:return e.n=5,qf({username:a,password:l});case 5:c=e.v;case 6:if((s=c).success&&(null===(o=s.data)||void 0===o?void 0:o.token)){e.n=7;break}return cu.error(s.message||r("auth.loginFailed")),"signup"===h&&(null===(i=s.message)||void 0===i?void 0:i.includes("已存在管理员"))&&b("login"),e.a(2);case 7:localStorage.setItem("cms_token",s.data.token),localStorage.setItem("cms_user",JSON.stringify(s.data.user)),ap(s.data.token),null==n||n(s.data.token,s.data.user),e.n=9;break;case 8:e.p=8,u=e.v,cu.error("".concat(r("auth.loginFailed"),", ").concat(u.message||r("common.error")));case 9:return e.p=9,f(!1),e.f(9);case 10:return e.a(2)}},e,null,[[2,8,9,10]])}));return function(t){return e.apply(this,arguments)}}();return e.createElement("div",{className:"we0-cms-root"},e.createElement("div",{className:"min-h-screen flex relative overflow-hidden bg-white"},e.createElement("div",{className:"pointer-events-none absolute inset-0"},e.createElement("div",{className:"absolute inset-0 bg-[linear-gradient(110deg,#ffffff_0%,#f7fbff_40%,#edf6ff_70%,#eaf3ff_100%)]"}),e.createElement("div",{className:"absolute inset-0 bg-[radial-gradient(1200px_600px_at_-10%_-10%,rgba(59,130,246,0.12),transparent),radial-gradient(900px_500px_at_110%_20%,rgba(147,51,234,0.10),transparent),radial-gradient(700px_400px_at_60%_120%,rgba(99,102,241,0.10),transparent)]"}),e.createElement("div",{className:"absolute inset-0 bg-[linear-gradient(115deg,rgba(255,255,255,0.6)_0%,rgba(255,255,255,0.15)_32%,transparent_32%,transparent_68%,rgba(255,255,255,0.15)_68%,rgba(255,255,255,0.6)_100%)]"})),e.createElement("div",{className:"flex-1 relative flex items-center justify-center"},e.createElement("div",{className:"relative z-10 max-w-4xl w-full px-16 text-left"},e.createElement("div",{className:"mb-12"},e.createElement("div",{className:"inline-flex items-center rounded-2xl px-4 py-2 bg-white/70 backdrop-blur border border-white/60"},e.createElement("span",{className:"text-2xl font-semibold tracking-tight text-gray-900"},r("data.dataManagement"))),e.createElement("h1",{className:"mt-8 text-5xl md:text-6xl font-extrabold leading-tight text-gray-900"},"WE0-CMS"),e.createElement("p",{className:"mt-6 text-2xl text-gray-600"},r("auth.welcome"))))),e.createElement("div",{className:"w-[480px] min-w-[380px] flex items-center justify-center p-8 mt-30"},e.createElement("div",{className:"w-full max-w-sm"},d?e.createElement(Wc,{className:"bg-white/30 backdrop-blur-xl border border-white/50 shadow-none rounded-3xl overflow-hidden"},e.createElement(Kc,{className:"p-8"},e.createElement("div",{className:"space-y-4"},e.createElement(nt,{className:"h-12 w-48"}),e.createElement(nt,{className:"h-4 w-64"}),e.createElement(nt,{className:"h-10 w-full"}),e.createElement(nt,{className:"h-10 w-full"})))):e.createElement(Wc,{className:"bg-white/30 backdrop-blur-xl border border-white/50 shadow-none rounded-3xl overflow-hidden"},e.createElement(Vc,{className:"p-8 pb-6"},e.createElement($c,{className:"text-center text-2xl mb-2 text-gray-800"},r("signup"===h?"auth.createAdminAccount":"auth.welcome")),e.createElement(Gc,{className:"text-center text-gray-500"},r("signup"===h?"auth.firstTimeSetup":"auth.pleaseLogin"))),e.createElement(Kc,{className:"p-8 pt-0"},e.createElement("form",{onSubmit:y,className:"space-y-6"},e.createElement("div",{className:"space-y-2"},e.createElement(Hc,{htmlFor:"username"},r("auth.username"),"/",r("auth.email")),e.createElement("div",{className:"relative"},e.createElement(re,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),e.createElement(yt,{id:"username",type:"text",placeholder:r("auth.email"),value:a,onChange:function(e){return i(e.target.value)},className:"pl-10 h-12 rounded-xl border-gray-200 hover:border-blue-400 focus:border-blue-500 transition-colors",required:!0,minLength:2}))),e.createElement("div",{className:"space-y-2"},e.createElement(Hc,{htmlFor:"password"},r("auth.password")),e.createElement("div",{className:"relative"},e.createElement(V,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),e.createElement(yt,{id:"password",type:"password",placeholder:r("auth.password"),value:l,onChange:function(e){return c(e.target.value)},className:"pl-10 h-12 rounded-xl border-gray-200 hover:border-blue-400 focus:border-blue-500 transition-colors",required:!0,minLength:6}))),e.createElement(vt,{type:"submit",className:"w-full h-12 rounded-xl transition-all duration-200 font-semibold text-base shadow-lg hover:brightness-[1.03] active:scale-[0.99]",style:{backgroundImage:"linear-gradient(135deg, rgba(236, 248, 255, 0.78) 0%, rgba(221, 238, 255, 0.78) 100%)",color:"rgba(0, 0, 0, 0.7)",border:"none",boxShadow:"0 6px 24px rgba(37, 99, 235, 0.12)"},disabled:d},e.createElement($,{className:"h-4 w-4 mr-2"}),r(d?"common.loading":"signup"===h?"auth.signup":"auth.login")))))))))}function sp(){return e.createElement("div",{className:"min-h-[calc(100vh-4rem)] bg-gradient-to-br from-background via-background to-muted/20"},e.createElement("div",{className:"mx-auto flex min-h-[calc(100vh-8rem)] max-w-5xl items-center px-6 py-8"},e.createElement(Wc,{className:"relative w-full overflow-hidden border-border/60 bg-card/95 shadow-[0_24px_80px_-48px_rgba(15,23,42,0.5)]"},e.createElement("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_top_right,_rgba(13,148,136,0.10),_transparent_32%),linear-gradient(180deg,transparent,rgba(15,23,42,0.03))]"}),e.createElement(Vc,{className:"relative space-y-4 p-8 md:p-10"},e.createElement("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-2xl bg-teal-600/10 text-teal-700"},e.createElement(X,{className:"h-5 w-5"})),e.createElement("div",{className:"space-y-3"},e.createElement($c,{className:"text-3xl font-semibold tracking-tight md:text-5xl"},"欢迎来到内容管理中心"),e.createElement(Gc,{className:"max-w-2xl text-base leading-7"},"这里是 CMS 的欢迎页。你可以从左侧导航进入具体内容类型,开始查看和管理数据。"))))))}function lp(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var cp="Switch",[up,dp]=Dt(cp),[fp,pp]=up(cp),mp=c.forwardRef((e,n)=>{const{__scopeSwitch:r,name:o,checked:a,defaultChecked:i,required:s,disabled:l,value:u="on",onCheckedChange:d,form:f,...p}=e,[m,h]=c.useState(null),g=at(n,e=>h(e)),b=c.useRef(!1),v=!m||(f||!!m.closest("form")),[y,w]=Mt({prop:a,defaultProp:i??!1,onChange:d,caller:cp});return t.jsxs(fp,{scope:r,checked:y,disabled:l,children:[t.jsx(It.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":vp(y),"data-disabled":l?"":void 0,disabled:l,value:u,...p,ref:g,onClick:Nt(e.onClick,e=>{w(e=>!e),v&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),v&&t.jsx(bp,{control:m,bubbles:!b.current,name:o,value:u,checked:y,required:s,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});mp.displayName=cp;var hp="SwitchThumb",gp=c.forwardRef((e,n)=>{const{__scopeSwitch:r,...o}=e,a=pp(hp,r);return t.jsx(It.span,{"data-state":vp(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:n})});gp.displayName=hp;var bp=c.forwardRef(({__scopeSwitch:e,control:n,checked:r,bubbles:o=!0,...a},i)=>{const s=c.useRef(null),l=at(s,i),u=lp(r),d=qa(n);return c.useEffect(()=>{const e=s.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}},[u,r,o]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function vp(e){return e?"checked":"unchecked"}bp.displayName="SwitchBubbleInput";var yp=mp,wp=gp,xp=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(yp,Object.assign({className:tt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n)},r,{ref:t}),c.createElement(wp,{className:tt("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")}))});function Ep(e){return/^https?:\/\//i.test(e)}xp.displayName=yp.displayName;var _p=[".png",".jpg",".jpeg",".gif",".webp",".bmp",".svg",".ico",".avif"];function kp(e){return _p.includes(e)}function Cp(e){var t,n=e.trim();if(!n)return!1;if(n.startsWith("data:image/"))return!0;if(!Ep(n))return!1;var r=(null===(t=n.split("#")[0])||void 0===t?void 0:t.split("?")[0])||n;return/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(r)}function Np(e){return!Number.isFinite(e)||e<=0?"0 B":e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB")}function Dp(e,t){if(!t)return!0;var n=t.split(",").map(function(e){return e.trim().toLowerCase()}).filter(Boolean);if(0===n.length)return!0;var r=e.name.toLowerCase(),o=e.type.toLowerCase();return n.some(function(e){if(e.endsWith("/*")){var t=e.slice(0,-1);return o.startsWith(t)}return e.startsWith(".")?r.endsWith(e):o===e})}function Sp(e){var t;return(null===(t=null==e?void 0:e.url)||void 0===t?void 0:t.trim())||""}var Ap=e.createContext(void 0);function Tp(t){var n=t.uploadHandler,r=t.children;return e.createElement(Ap.Provider,{value:n},r)}function Rp(t){var n=t.url,r=t.emptyText,o=void 0===r?"-":r,a=t.mode,i=void 0===a?"file":a,s=t.className,l=(n||"").trim();return l?"image"===i&&Cp(l)?e.createElement("div",{className:tt("flex items-center gap-3 min-w-0",s)},e.createElement("a",{href:l,target:"_blank",rel:"noreferrer",className:"inline-flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-lg border bg-muted",title:l},e.createElement("img",{src:l,alt:"",className:"h-full w-full object-cover",onError:function(e){e.currentTarget.style.display="none"}}),e.createElement(P,{className:"hidden h-5 w-5 text-muted-foreground"})),e.createElement("a",{href:l,target:"_blank",rel:"noreferrer",className:"block min-w-0 flex-1 truncate text-sm text-primary underline-offset-2 hover:underline",title:l},l)):Ep(l)?e.createElement("a",{href:l,target:"_blank",rel:"noreferrer",className:tt("inline-flex max-w-full items-center gap-2 truncate text-sm text-primary underline-offset-2 hover:underline",s),title:l},e.createElement(z,{className:"h-4 w-4 shrink-0"}),e.createElement("span",{className:"min-w-0 flex-1 truncate"},l),e.createElement(L,{className:"h-4 w-4 shrink-0"})):e.createElement("div",{className:tt("text-sm truncate",s),title:l},l):e.createElement("div",{className:tt("text-sm text-muted-foreground",s)},o)}function Op(t){var n,r,o,a,i,s=t.field,l=t.model,c=t.value,u=t.disabled,d=t.onChange,f=rp(),h=e.useContext(Ap),b=e.useRef(null),y=v(e.useState(!1),2),w=y[0],x=y[1],E=null===(n=s.upload)||void 0===n?void 0:n.accept,_=null===(r=s.upload)||void 0===r?void 0:r.maxSize,k=function(e){var t=e.assetKind,n=void 0===t?"auto":t,r=e.accept,o=e.value;if("image"===n)return"image";if("file"===n)return"file";var a=(r||"").split(",").map(function(e){return e.trim().toLowerCase()}).filter(Boolean);if(a.length>0){var i,s=!1,l=!1,c=m(a);try{for(c.s();!(i=c.n()).done;){var u=i.value;"image/*"===u||u.startsWith("image/")||u.startsWith(".")&&kp(u)?s=!0:l=!0}}catch(e){c.e(e)}finally{c.f()}if(s&&!l)return"image";if(l&&!s)return"file"}return Cp((o||"").trim())?"image":"file"}({assetKind:null===(o=s.upload)||void 0===o?void 0:o.assetKind,accept:E,value:c}),C=!!h,N=!!(c||"").trim(),D=function(){var e=p(g().m(function e(t){var n,r,o,a,i,c;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=null===(n=t.target.files)||void 0===n?void 0:n[0],t.target.value="",r){e.n=1;break}return e.a(2);case 1:if(h){e.n=2;break}return cu.error(f("data.assetUploadHandlerMissing")),e.a(2);case 2:if(Dp(r,E)){e.n=3;break}return cu.error(f("data.assetUploadInvalidType")),e.a(2);case 3:if(!("number"==typeof _&&_>0&&r.size>_)){e.n=4;break}return cu.error("".concat(f("data.assetUploadTooLarge")," (").concat(Np(_),")")),e.a(2);case 4:return x(!0),e.p=5,e.n=6,h(r,{field:s,model:l,sessionId:Of()});case 6:if(o=e.v,a=Sp(o)){e.n=7;break}throw new Error(f("data.assetUploadInvalidResult"));case 7:d(a),cu.success(f("data.assetUploadSuccess")),e.n=9;break;case 8:e.p=8,c=e.v,i=c instanceof Error?c.message:f("data.assetUploadFailed"),cu.error(i);case 9:return e.p=9,x(!1),e.f(9);case 10:return e.a(2)}},e,null,[[5,8,9,10]])}));return function(t){return e.apply(this,arguments)}}();return e.createElement("div",{className:"space-y-2.5"},e.createElement(Hc,{htmlFor:s.name,className:"text-sm font-semibold"},s.comment||s.name,s.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement("input",{ref:b,id:s.name,type:"file",accept:E,className:"hidden",disabled:u||w||!C,onChange:D}),e.createElement("div",{className:"rounded-lg border bg-card p-4 space-y-4"},e.createElement(Rp,{url:c,mode:k,emptyText:(null===(a=s.upload)||void 0===a?void 0:a.placeholder)||f("data.assetEmpty"),className:"w-[360px] max-w-full"}),e.createElement("div",{className:"flex flex-wrap gap-2"},e.createElement(vt,{type:"button",variant:"outline",onClick:function(){var e;u||w||(C?null===(e=b.current)||void 0===e||e.click():cu.error(f("data.assetUploadHandlerMissing")))},disabled:u||w||!C},w?e.createElement(e.Fragment,null,e.createElement(W,{className:"h-4 w-4 mr-2 animate-spin"}),f("data.assetUploading")):e.createElement(e.Fragment,null,e.createElement(ne,{className:"h-4 w-4 mr-2"}),N?f("data.assetReplace"):(null===(i=s.upload)||void 0===i?void 0:i.buttonText)||f("data.assetUploadButton"))),N&&e.createElement(vt,{type:"button",variant:"ghost",onClick:function(){d("")},disabled:u||w},e.createElement(te,{className:"h-4 w-4 mr-2"}),f("data.assetClear"))),e.createElement("div",{className:"space-y-1 text-xs text-muted-foreground"},E&&e.createElement("div",null,f("data.assetAcceptHint"),": ",e.createElement("span",{className:"font-mono"},E)),"number"==typeof _&&_>0&&e.createElement("div",null,f("data.assetMaxSizeHint"),": ",Np(_)),!C&&e.createElement("div",null,f("data.assetUploadHandlerMissing")))))}var Fp=Ur,Mp=qr,jp=Hr,Lp=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Wr,Object.assign({ref:t,className:tt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},r))});Lp.displayName=Wr.displayName;var Pp=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=_(e,["className","children"]);return c.createElement(jp,null,c.createElement(Lp,null),c.createElement(Vr,Object.assign({ref:t,className:tt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[hsl(var(--border))]/50 bg-background p-6 shadow-[0_20px_60px_-10px_rgba(93,112,82,0.2)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-[2rem]",n)},o),r,c.createElement(Kr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},c.createElement(ae,{className:"h-4 w-4"}),c.createElement("span",{className:"sr-only"},"Close"))))});Pp.displayName=Vr.displayName;var Ip=function(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:tt("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};Ip.displayName="DialogHeader";var zp=function(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:tt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};zp.displayName="DialogFooter";var Bp=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement($r,Object.assign({ref:t,className:tt("text-lg font-semibold leading-none tracking-tight",n)},r))});Bp.displayName=$r.displayName;var Up,qp=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Gr,Object.assign({ref:t,className:tt("text-sm text-muted-foreground",n)},r))});function Hp(e,t=!1){const n=e.length;let r=0,o="",a=0,i=16,s=0,l=0,c=0,u=0,d=0;function f(t,n){let o=0,a=0;for(;o<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)a=16*a+t-48;else if(t>=65&&t<=70)a=16*a+t-65+10;else{if(!(t>=97&&t<=102))break;a=16*a+t-97+10}r++,o++}return o<t&&(a=-1),a}function p(){if(o="",d=0,a=r,l=s,u=c,r>=n)return a=n,i=17;let t=e.charCodeAt(r);if(Wp(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(Wp(t));return i=15}if(Vp(t))return r++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,o+="\n"),s++,c=r,i=14;switch(t){case 123:return r++,i=1;case 125:return r++,i=2;case 91:return r++,i=3;case 93:return r++,i=4;case 58:return r++,i=6;case 44:return r++,i=5;case 34:return r++,o=function(){let t="",o=r;for(;;){if(r>=n){t+=e.substring(o,r),d=2;break}const a=e.charCodeAt(r);if(34===a){t+=e.substring(o,r),r++;break}if(92!==a){if(a>=0&&a<=31){if(Vp(a)){t+=e.substring(o,r),d=2;break}d=6}r++}else{if(t+=e.substring(o,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=f(4,!0);e>=0?t+=String.fromCharCode(e):d=4;break;default:d=5}o=r}}return t}(),i=10;case 47:const l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!Vp(e.charCodeAt(r));)r++;return o=e.substring(l,r),i=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let a=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,a=!0;break}r++,Vp(t)&&(13===t&&10===e.charCodeAt(r)&&r++,s++,c=r)}return a||(r++,d=1),o=e.substring(l,r),i=13}return o+=String.fromCharCode(t),r++,i=16;case 45:if(o+=String.fromCharCode(t),r++,r===n||!$p(e.charCodeAt(r)))return i=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&$p(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&$p(e.charCodeAt(r))))return d=3,e.substring(t,r);for(r++;r<e.length&&$p(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&$p(e.charCodeAt(r))){for(r++;r<e.length&&$p(e.charCodeAt(r));)r++;n=r}else d=3;return e.substring(t,n)}(),i=11;default:for(;r<n&&m(t);)r++,t=e.charCodeAt(r);if(a!==r){switch(o=e.substring(a,r),o){case"true":return i=8;case"false":return i=9;case"null":return i=7}return i=16}return o+=String.fromCharCode(t),r++,i=16}}function m(e){if(Wp(e)||Vp(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,o="",a=0,i=16,d=0},getPosition:()=>r,scan:t?function(){let e;do{e=p()}while(e>=12&&e<=15);return e}:p,getToken:()=>i,getTokenValue:()=>o,getTokenOffset:()=>a,getTokenLength:()=>r-a,getTokenStartLine:()=>l,getTokenStartCharacter:()=>a-u,getTokenError:()=>d}}function Wp(e){return 32===e||9===e}function Vp(e){return 10===e||13===e}function $p(e){return e>=48&&e<=57}qp.displayName=Gr.displayName,function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(Up||(Up={}));const Gp=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),Kp=200,Zp={" ":{"\n":new Array(Kp).fill(0).map((e,t)=>"\n"+" ".repeat(t)),"\r":new Array(Kp).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Kp).fill(0).map((e,t)=>"\r\n"+" ".repeat(t))},"\t":{"\n":new Array(Kp).fill(0).map((e,t)=>"\n"+"\t".repeat(t)),"\r":new Array(Kp).fill(0).map((e,t)=>"\r"+"\t".repeat(t)),"\r\n":new Array(Kp).fill(0).map((e,t)=>"\r\n"+"\t".repeat(t))}},Yp=["\n","\r","\r\n"];function Jp(e,t,n){let r,o,a,i,s;if(t){for(i=t.offset,s=i+t.length,a=i;a>0&&!Qp(e,a-1);)a--;let l=s;for(;l<e.length&&!Qp(e,l);)l++;o=e.substring(a,l),r=function(e,t){let n=0,r=0;const o=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(t===Gp[1])r++;else{if("\t"!==t)break;r+=o}n++}return Math.floor(r/o)}(o,n)}else o=e,r=0,a=0,i=0,s=e.length;const l=function(e,t){for(let e=0;e<t.length;e++){const n=t.charAt(e);if("\r"===n)return e+1<t.length&&"\n"===t.charAt(e+1)?"\r\n":"\r";if("\n"===n)return"\n"}return e&&e.eol||"\n"}(n,e),c=Yp.includes(l);let u,d=0,f=0;u=n.insertSpaces?Gp[n.tabSize||4]??Xp(Gp[1],n.tabSize||4):"\t";const p="\t"===u?"\t":" ";let m=Hp(o,!1),h=!1;function g(){if(d>1)return Xp(l,d)+Xp(u,r+f);const e=u.length*(r+f);return!c||e>Zp[p][l].length?l+Xp(u,r+f):e<=0?l:Zp[p][l][e]}function b(){let e=m.scan();for(d=0;15===e||14===e;)14===e&&n.keepLines?d+=1:14===e&&(d=1),e=m.scan();return h=16===e||0!==m.getTokenError(),e}const v=[];function y(n,r,o){h||t&&!(r<s&&o>i)||e.substring(r,o)===n||v.push({offset:r,length:o-r,content:n})}let w=b();if(n.keepLines&&d>0&&y(Xp(l,d),0,0),17!==w){let e=m.getTokenOffset()+a;y(u.length*r<20&&n.insertSpaces?Gp[u.length*r]:Xp(u,r),a,e)}for(;17!==w;){let e=m.getTokenOffset()+m.getTokenLength()+a,t=b(),r="",o=!1;for(;0===d&&(12===t||13===t);){let n=m.getTokenOffset()+a;y(Gp[1],e,n),e=m.getTokenOffset()+m.getTokenLength()+a,o=12===t,r=o?g():"",t=b()}if(2===t)1!==w&&f--,n.keepLines&&d>0||!n.keepLines&&1!==w?r=g():n.keepLines&&(r=Gp[1]);else if(4===t)3!==w&&f--,n.keepLines&&d>0||!n.keepLines&&3!==w?r=g():n.keepLines&&(r=Gp[1]);else{switch(w){case 3:case 1:f++,r=n.keepLines&&d>0||!n.keepLines?g():Gp[1];break;case 5:r=n.keepLines&&d>0||!n.keepLines?g():Gp[1];break;case 12:r=g();break;case 13:d>0?r=g():o||(r=Gp[1]);break;case 6:n.keepLines&&d>0?r=g():o||(r=Gp[1]);break;case 10:n.keepLines&&d>0?r=g():6!==t||o||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&d>0?r=g():12!==t&&13!==t||o?5!==t&&17!==t&&(h=!0):r=Gp[1];break;case 16:h=!0}d>0&&(12===t||13===t)&&(r=g())}17===t&&(r=n.keepLines&&d>0?g():n.insertFinalNewline?l:"");y(r,e,m.getTokenOffset()+a),w=t}return v}function Xp(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function Qp(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}var em,tm,nm;!function(e){e.DEFAULT={allowTrailingComma:!1}}(em||(em={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(tm||(tm={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(nm||(nm={}));const rm=function(e,t=[],n=em.DEFAULT){let r=null,o=[];const a=[];function i(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}const s={onObjectBegin:()=>{const e={};i(e),a.push(o),o=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{o=a.pop()},onArrayBegin:()=>{const e=[];i(e),a.push(o),o=e,r=null},onArrayEnd:()=>{o=a.pop()},onLiteralValue:i,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}};return function(e,t,n=em.DEFAULT){const r=Hp(e,!1),o=[];let a=0;function i(e){return e?()=>0===a&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(e){return e?t=>0===a&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>0===a&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function c(e){return e?()=>{if(a>0)a++;else{!1===e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())&&(a=1)}}:()=>!0}function u(e){return e?()=>{a>0&&a--,0===a&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}const d=c(t.onObjectBegin),f=l(t.onObjectProperty),p=u(t.onObjectEnd),m=c(t.onArrayBegin),h=u(t.onArrayEnd),g=l(t.onLiteralValue),b=s(t.onSeparator),v=i(t.onComment),y=s(t.onError),w=n&&n.disallowComments,x=n&&n.allowTrailingComma;function E(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:_(14);break;case 5:_(15);break;case 3:_(13);break;case 1:w||_(11);break;case 2:_(12);break;case 6:_(16)}switch(e){case 12:case 13:w?_(10):v();break;case 16:_(1);break;case 15:case 14:break;default:return e}}}function _(e,t=[],n=[]){if(y(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){E();break}if(-1!==n.indexOf(e))break;e=E()}}}function k(e){const t=r.getTokenValue();return e?g(t):(f(t),o.push(t)),E(),!0}function C(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(_(2),t=0),g(t);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return E(),!0}function N(){return 10!==r.getToken()?(_(3,[],[2,5]),!1):(k(!1),6===r.getToken()?(b(":"),E(),A()||_(4,[],[2,5])):_(5,[],[2,5]),o.pop(),!0)}function D(){d(),E();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||_(4,[],[]),b(","),E(),2===r.getToken()&&x)break}else e&&_(6,[],[]);N()||_(4,[],[2,5]),e=!0}return p(),2!==r.getToken()?_(7,[2],[]):E(),!0}function S(){m(),E();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||_(4,[],[]),b(","),E(),4===r.getToken()&&x)break}else t&&_(6,[],[]);e?(o.push(0),e=!1):o[o.length-1]++,A()||_(4,[],[4,5]),t=!0}return h(),e||o.pop(),4!==r.getToken()?_(8,[4],[]):E(),!0}function A(){switch(r.getToken()){case 3:return S();case 1:return D();case 10:return k(!0);default:return C()}}if(E(),17===r.getToken())return!!n.allowEmptyContent||(_(4,[],[]),!1);if(!A())return _(4,[],[]),!1;17!==r.getToken()&&_(9,[],[])}(e,s,n),o[0]};var om;function am(e,t){if(!t.length)return"JSON 格式不正确";var n=t[0],r=function(e,t){for(var n=1,r=1,o=Math.max(0,Math.min(t,e.length)),a=0;a<o;a++){"\n"===e.charAt(a)?(n++,r=1):r++}return{line:n,col:r}}(e,n.offset),o=r.line,a=r.col,i=function(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}(n.error);return"JSON 格式不正确(".concat(i,",行 ").concat(o," 列 ").concat(a,")")}function im(e){if(null==e||""===e)return{ok:!0,value:null,pretty:"null",compact:"null"};try{if("string"!=typeof e)return{ok:!0,value:e,pretty:JSON.stringify(e,null,2),compact:JSON.stringify(e)};var t=e,n=[],r=rm(t,n,{allowTrailingComma:!0,disallowComments:!1});return n.length?{ok:!1,message:am(t,n),pretty:t,compact:t}:{ok:!0,value:r,pretty:JSON.stringify(r,null,2),compact:JSON.stringify(r)}}catch(t){var o="string"==typeof e?e:String(e);return{ok:!1,message:"JSON 格式不正确",pretty:o,compact:o}}}function sm(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=(e||"").toString(),r=[];if(rm(n,r,{allowTrailingComma:!0,disallowComments:!1}),r.length)return{ok:!1,message:am(n,r)};for(var o=function(e,t,n){return Jp(e,t,n)}(n,void 0,{insertSpaces:!0,tabSize:t}),a=n,i=o.length-1;i>=0;i--){var s=o[i];a=a.slice(0,s.offset)+s.content+a.slice(s.offset+s.length)}return{ok:!0,formatted:a}}function lm(e){return cm.apply(this,arguments)}function cm(){return cm=p(g().m(function e(t){var n,r;return g().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:if(!(null===(n=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===n?void 0:n.writeText)){e.n=3;break}return e.n=2,navigator.clipboard.writeText(t);case 2:return e.a(2);case 3:(r=document.createElement("textarea")).value=t,r.style.position="fixed",r.style.left="-9999px",document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r);case 4:return e.a(2)}},e)})),cm.apply(this,arguments)}function um(e){var t=e.value,n=e.title;if(null==t||""===t)return c.createElement("span",null,"-");var r,o=im(t),a=o.ok,i=o.pretty,s=o.compact,l=s.length>80?s.slice(0,80)+"…":s;return c.createElement(Fp,null,c.createElement(Mp,{asChild:!0},c.createElement("button",{type:"button",className:"max-w-xs truncate text-left font-mono text-xs text-muted-foreground hover:underline",title:"点击查看 JSON"},l)),c.createElement(Pp,{className:"max-w-3xl"},c.createElement(Ip,null,c.createElement(Bp,null,n||"JSON")),c.createElement("div",{className:"flex items-center justify-end gap-2"},c.createElement(vt,{variant:"outline",size:"sm",onClick:(r=p(g().m(function e(){return g().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,lm(i);case 1:cu.success("已复制 JSON"),e.n=3;break;case 2:e.p=2,e.v,cu.error("复制失败");case 3:return e.a(2)}},e,null,[[0,2]])})),function(){return r.apply(this,arguments)})},"复制")),c.createElement("pre",{className:"max-h-[60vh] overflow-auto rounded-md bg-muted p-3 text-xs font-mono whitespace-pre-wrap break-all"},i),!a&&c.createElement("div",{className:"text-xs text-destructive"},o.ok?"":o.message)))}function dm(e){e.id;var t=e.value;e.required;var n,r=e.disabled,s=e.onChange,l=v(c.useState(null),2),u=l[0],d=l[1];return c.createElement("div",{className:"space-y-2"},c.createElement("div",{className:"flex items-center justify-end gap-2"},c.createElement(vt,{type:"button",variant:"outline",size:"sm",disabled:!!r,onClick:function(){if(!r){var e=(t||"").trim();if(e){var n=sm(e,2);n.ok?(s(n.formatted),d(null)):d(n.message)}}}},"格式化"),c.createElement(vt,{type:"button",variant:"outline",size:"sm",onClick:(n=p(g().m(function e(){return g().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,lm(t||"");case 1:cu.success("已复制"),e.n=3;break;case 2:e.p=2,e.v,cu.error("复制失败");case 3:return e.a(2)}},e,null,[[0,2]])})),function(){return n.apply(this,arguments)})},"复制")),c.createElement("div",{className:"w-full max-w-full overflow-hidden rounded-md border bg-background"},c.createElement(o,{className:"w-full max-w-full",editable:!r,value:t||"",height:"220px",basicSetup:{lineNumbers:!0,foldGutter:!0,highlightActiveLine:!0},extensions:[a.json(),i.EditorView.lineWrapping],onChange:function(e){r||(s(e),function(e){var t=(e||"").trim();if(!t)return d(null),!0;var n=im(t);n.ok?d(null):d(n.message)}(e))}})),u&&c.createElement("div",{className:"text-xs text-destructive"},u))}!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(om||(om={}));const fm={};function pm(e,t){"string"!=typeof t&&(t=pm.defaultChars);const n=function(e){let t=fm[e];if(t)return t;t=fm[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,o=e.length;r<o;r+=3){const a=parseInt(e.slice(r+1,r+3),16);if(a<128)t+=n[a];else{if(192==(224&a)&&r+3<o){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=a<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&a)&&r+6<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&o)){const e=a<<12&61440|n<<6&4032|63&o;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&a)&&r+9<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16),i=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&o)&&128==(192&i)){let e=a<<18&1835008|n<<12&258048|o<<6&4032|63&i;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}pm.defaultChars=";/?:@&=+$,#",pm.componentChars="";const mm={};function hm(e,t,n){"string"!=typeof t&&(n=t,t=hm.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=mm[e];if(t)return t;t=mm[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let o="";for(let t=0,a=e.length;t<a;t++){const i=e.charCodeAt(t);if(n&&37===i&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))o+=e.slice(t,t+3),t+=2;else if(i<128)o+=r[i];else if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&t+1<a){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(e[t])}return o}function gm(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function bm(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}hm.defaultChars=";/?:@&=+$,-_.!~*'()#",hm.componentChars="-_.!~*'()";const vm=/^([a-z0-9.+-]+:)/i,ym=/:[0-9]*$/,wm=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,xm=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Em=["'"].concat(xm),_m=["%","/","?",";","#"].concat(Em),km=["/","?","#"],Cm=/^[+a-z0-9A-Z_-]{0,63}$/,Nm=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,Dm={javascript:!0,"javascript:":!0},Sm={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function Am(e,t){if(e&&e instanceof bm)return e;const n=new bm;return n.parse(e,t),n}bm.prototype.parse=function(e,t){let n,r,o,a=e;if(a=a.trim(),!t&&1===e.split("#").length){const e=wm.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let i=vm.exec(a);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,a=a.substr(i.length)),(t||i||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===a.substr(0,2),!o||i&&Dm[i]||(a=a.substr(2),this.slashes=!0)),!Dm[i]&&(o||i&&!Sm[i])){let e,t,n=-1;for(let e=0;e<km.length;e++)r=a.indexOf(km[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?a.lastIndexOf("@"):a.lastIndexOf("@",n),-1!==t&&(e=a.slice(0,t),a=a.slice(t+1),this.auth=e),n=-1;for(let e=0;e<_m.length;e++)r=a.indexOf(_m[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=a.length),":"===a[n-1]&&n--;const o=a.slice(0,n);a=a.slice(n),this.parseHost(o),this.hostname=this.hostname||"";const i="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!i){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(Cm)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(Cm)){const r=e.slice(0,t),o=e.slice(t+1),i=n.match(Nm);i&&(r.push(i[1]),o.unshift(i[2])),o.length&&(a=o.join(".")+a),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),i&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=a.indexOf("#");-1!==s&&(this.hash=a.substr(s),a=a.slice(0,s));const l=a.indexOf("?");return-1!==l&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),Sm[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},bm.prototype.parseHost=function(e){let t=ym.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var Tm,Rm=Object.freeze({__proto__:null,decode:pm,encode:hm,format:gm,parse:Am}),Om=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Fm=/[\0-\x1F\x7F-\x9F]/,Mm=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,jm=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,Lm=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,Pm=Object.freeze({__proto__:null,Any:Om,Cc:Fm,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:Mm,S:jm,Z:Lm}),Im=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(e=>e.charCodeAt(0))),zm=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));const Bm=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]]),Um=null!==(Tm=String.fromCodePoint)&&void 0!==Tm?Tm:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var qm;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(qm||(qm={}));var Hm,Wm,Vm;function $m(e){return e>=qm.ZERO&&e<=qm.NINE}function Gm(e){return e>=qm.UPPER_A&&e<=qm.UPPER_F||e>=qm.LOWER_A&&e<=qm.LOWER_F}function Km(e){return e===qm.EQUALS||function(e){return e>=qm.UPPER_A&&e<=qm.UPPER_Z||e>=qm.LOWER_A&&e<=qm.LOWER_Z||$m(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(Hm||(Hm={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(Wm||(Wm={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(Vm||(Vm={}));class Zm{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=Wm.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vm.Strict}startEntity(e){this.decodeMode=e,this.state=Wm.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case Wm.EntityStart:return e.charCodeAt(t)===qm.NUM?(this.state=Wm.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=Wm.NamedEntity,this.stateNamedEntity(e,t));case Wm.NumericStart:return this.stateNumericStart(e,t);case Wm.NumericDecimal:return this.stateNumericDecimal(e,t);case Wm.NumericHex:return this.stateNumericHex(e,t);case Wm.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===qm.LOWER_X?(this.state=Wm.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=Wm.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!$m(r)&&!Gm(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!$m(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===qm.SEMI)this.consumed+=1;else if(this.decodeMode===Vm.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=Bm.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==qm.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],o=(r&Hm.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=Jm(n,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return 0===this.result||this.decodeMode===Vm.Attribute&&(0===o||Km(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&Hm.VALUE_LENGTH)>>14,0!==o){if(a===qm.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Vm.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&Hm.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~Hm.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case Wm.NamedEntity:return 0===this.result||this.decodeMode===Vm.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case Wm.NumericDecimal:return this.emitNumericEntity(0,2);case Wm.NumericHex:return this.emitNumericEntity(0,3);case Wm.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Wm.EntityStart:return 0}}}function Ym(e){let t="";const n=new Zm(e,e=>t+=Um(e));return function(e,r){let o=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(o,a),n.startEntity(r);const i=n.write(e,a+1);if(i<0){o=a+n.end();break}o=a+i,a=0===i?o+1:o}const i=t+e.slice(o);return t="",i}}function Jm(e,t,n,r){const o=(t&Hm.BRANCH_LENGTH)>>7,a=t&Hm.JUMP_TABLE;if(0===o)return 0!==a&&r===a?n:-1;if(a){const t=r-a;return t<0||t>=o?-1:e[n+t]-1}let i=n,s=i+o-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+o];s=t-1}}return-1}const Xm=Ym(Im);function Qm(e,t=Vm.Legacy){return Xm(e,t)}function eh(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}Ym(zm);const th=Object.prototype.hasOwnProperty;function nh(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function rh(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function oh(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function ah(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const ih=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,sh=new RegExp(ih.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),lh=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function ch(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(sh,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&lh.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return oh(n)?ah(n):e}const n=Qm(e);return n!==e?n:e}(e,n)})}const uh=/[&<>"]/,dh=/[&<>"]/g,fh={"&":"&","<":"<",">":">",'"':"""};function ph(e){return fh[e]}function mh(e){return uh.test(e)?e.replace(dh,ph):e}const hh=/[.?*+^$[\]\\(){}|-]/g;function gh(e){switch(e){case 9:case 32:return!0}return!1}function bh(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function vh(e){return Mm.test(e)||jm.test(e)}function yh(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function wh(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const xh={mdurl:Rm,ucmicro:Pm};var Eh=Object.freeze({__proto__:null,arrayReplaceAt:rh,assign:nh,escapeHtml:mh,escapeRE:function(e){return e.replace(hh,"\\$&")},fromCodePoint:ah,has:function(e,t){return th.call(e,t)},isMdAsciiPunct:yh,isPunctChar:vh,isSpace:gh,isString:eh,isValidEntityCode:oh,isWhiteSpace:bh,lib:xh,normalizeReference:wh,unescapeAll:ch,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(ih,"$1")}});var _h=Object.freeze({__proto__:null,parseLinkDestination:function(e,t,n){let r,o=t;const a={ok:!1,pos:0,str:""};if(60===e.charCodeAt(o)){for(o++;o<n;){if(r=e.charCodeAt(o),10===r)return a;if(60===r)return a;if(62===r)return a.pos=o+1,a.str=ch(e.slice(t+1,o)),a.ok=!0,a;92===r&&o+1<n?o+=2:o++}return a}let i=0;for(;o<n&&(r=e.charCodeAt(o),32!==r)&&!(r<32||127===r);)if(92===r&&o+1<n){if(32===e.charCodeAt(o+1))break;o+=2}else{if(40===r&&(i++,i>32))return a;if(41===r){if(0===i)break;i--}o++}return t===o||0!==i||(a.str=ch(e.slice(t,o)),a.pos=o,a.ok=!0),a},parseLinkLabel:function(e,t,n){let r,o,a,i;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),93===a&&(r--,0===r)){o=!0;break}if(i=e.pos,e.md.inline.skipToken(e),91===a)if(i===e.pos-1)r++;else if(n)return e.pos=l,-1}let c=-1;return o&&(c=e.pos),e.pos=l,c},parseLinkTitle:function(e,t,n,r){let o,a=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(a>=n)return i;let r=e.charCodeAt(a);if(34!==r&&39!==r&&40!==r)return i;t++,a++,40===r&&(r=41),i.marker=r}for(;a<n;){if(o=e.charCodeAt(a),o===i.marker)return i.pos=a+1,i.str+=ch(e.slice(t,a)),i.ok=!0,i;if(40===o&&41===i.marker)return i;92===o&&a+1<n&&a++,a++}return i.can_continue=!0,i.str+=ch(e.slice(t,a)),i}});const kh={};function Ch(){this.rules=nh({},kh)}function Nh(){this.__rules__=[],this.__cache__=null}function Dh(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function Sh(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}kh.code_inline=function(e,t,n,r,o){const a=e[t];return"<code"+o.renderAttrs(a)+">"+mh(a.content)+"</code>"},kh.code_block=function(e,t,n,r,o){const a=e[t];return"<pre"+o.renderAttrs(a)+"><code>"+mh(e[t].content)+"</code></pre>\n"},kh.fence=function(e,t,n,r,o){const a=e[t],i=a.info?ch(a.info).trim():"";let s,l="",c="";if(i){const e=i.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(s=n.highlight&&n.highlight(a.content,l,c)||mh(a.content),0===s.indexOf("<pre"))return s+"\n";if(i){const e=a.attrIndex("class"),t=a.attrs?a.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${o.renderAttrs(r)}>${s}</code></pre>\n`}return`<pre><code${o.renderAttrs(a)}>${s}</code></pre>\n`},kh.image=function(e,t,n,r,o){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=o.renderInlineAsText(a.children,n,r),o.renderToken(e,t,n)},kh.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},kh.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},kh.text=function(e,t){return mh(e[t].content)},kh.html_block=function(e,t){return e[t].content},kh.html_inline=function(e,t){return e[t].content},Ch.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+mh(e.attrs[t][0])+'="'+mh(e.attrs[t][1])+'"';return r},Ch.prototype.renderToken=function(e,t,n){const r=e[t];let o="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===r.nesting?"</":"<")+r.tag,o+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(o+=" /");let a=!1;if(r.block&&(a=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(a=!1)}return o+=a?">\n":">",o},Ch.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let a=0,i=e.length;a<i;a++){const i=e[a].type;void 0!==o[i]?r+=o[i](e,a,t,n,this):r+=this.renderToken(e,a,t)}return r},Ch.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,a=e.length;o<a;o++)switch(e[o].type){case"text":case"html_inline":case"html_block":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},Ch.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let a=0,i=e.length;a<i;a++){const i=e[a].type;"inline"===i?r+=this.renderInline(e[a].children,t,n):void 0!==o[i]?r+=o[i](e,a,t,n,this):r+=this.renderToken(e,a,t,n)}return r},Nh.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},Nh.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},Nh.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},Nh.prototype.before=function(e,t,n,r){const o=this.__find__(e),a=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Nh.prototype.after=function(e,t,n,r){const o=this.__find__(e),a=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},Nh.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},Nh.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},Nh.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},Nh.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},Nh.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},Dh.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},Dh.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},Dh.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},Dh.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},Dh.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},Sh.prototype.Token=Dh;const Ah=/\r\n?|\n/g,Th=/\0/g;function Rh(e){return/^<a[>\s]/i.test(e)}function Oh(e){return/^<\/a\s*>/i.test(e)}const Fh=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Mh=/\((c|tm|r)\)/i,jh=/\((c|tm|r)\)/gi,Lh={c:"©",r:"®",tm:"™"};function Ph(e,t){return Lh[t.toLowerCase()]}function Ih(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(jh,Ph)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function zh(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||Fh.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const Bh=/['"]/,Uh=/['"]/g;function qh(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function Hh(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const a=e[o],i=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,"text"!==a.type)continue;let s=a.content,l=0,c=s.length;e:for(;l<c;){Uh.lastIndex=l;const u=Uh.exec(s);if(!u)break;let d=!0,f=!0;l=u.index+1;const p="'"===u[0];let m=32;if(u.index-1>=0)m=s.charCodeAt(u.index-1);else for(n=o-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(l<c)h=s.charCodeAt(l);else for(n=o+1;n<e.length&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}const g=yh(m)||vh(String.fromCharCode(m)),b=yh(h)||vh(String.fromCharCode(h)),v=bh(m),y=bh(h);if(y?d=!1:b&&(v||g||(d=!1)),v?f=!1:g&&(y||b||(f=!1)),34===h&&'"'===u[0]&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=b),d||f){if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<i)break;if(d.single===p&&r[n].level===i){let i,f;d=r[n],p?(i=t.md.options.quotes[2],f=t.md.options.quotes[3]):(i=t.md.options.quotes[0],f=t.md.options.quotes[1]),a.content=qh(a.content,u.index,f),e[d.token].content=qh(e[d.token].content,d.pos,i),l+=f.length-1,d.token===o&&(l+=i.length-1),s=a.content,c=s.length,r.length=n;continue e}}d?r.push({token:o,pos:u.index,single:p,level:i}):f&&p&&(a.content=qh(a.content,u.index,"’"))}else p&&(a.content=qh(a.content,u.index,"’"))}}}const Wh=[["normalize",function(e){let t;t=e.src.replace(Ah,"\n"),t=t.replace(Th,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let a=r.length-1;a>=0;a--){const i=r[a];if("link_close"!==i.type){if("html_inline"===i.type&&(Rh(i.content)&&o>0&&o--,Oh(i.content)&&o++),!(o>0)&&"text"===i.type&&e.md.linkify.test(i.content)){const o=i.content;let s=e.md.linkify.match(o);const l=[];let c=i.level,u=0;s.length>0&&0===s[0].index&&a>0&&"text_special"===r[a-1].type&&(s=s.slice(1));for(let t=0;t<s.length;t++){const n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let a=s[t].text;a=s[t].schema?"mailto:"!==s[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");const i=s[t].index;if(i>u){const t=new e.Token("text","",0);t.content=o.slice(u,i),t.level=c,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",r]],d.level=c++,d.markup="linkify",d.info="auto",l.push(d);const f=new e.Token("text","",0);f.content=a,f.level=c,l.push(f);const p=new e.Token("link_close","a",-1);p.level=--c,p.markup="linkify",p.info="auto",l.push(p),u=s[t].lastIndex}if(u<o.length){const t=new e.Token("text","",0);t.content=o.slice(u),t.level=c,l.push(t)}t[n].children=r=rh(r,a,l)}}else for(a--;r[a].level!==i.level&&"link_open"!==r[a].type;)a--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(Mh.test(e.tokens[t].content)&&Ih(e.tokens[t].children),Fh.test(e.tokens[t].content)&&zh(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&Bh.test(e.tokens[t].content)&&Hh(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,o=r.length;for(let e=0;e<o;e++){if("inline"!==r[e].type)continue;const o=r[e].children,a=o.length;for(t=0;t<a;t++)"text_special"===o[t].type&&(o[t].type="text");for(t=n=0;t<a;t++)"text"===o[t].type&&t+1<a&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}]];function Vh(){this.ruler=new Nh;for(let e=0;e<Wh.length;e++)this.ruler.push(Wh[e][0],Wh[e][1])}function $h(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let e=0,t=0,n=0,r=0,a=o.length,i=!1;t<a;t++){const s=o.charCodeAt(t);if(!i){if(gh(s)){n++,9===s?r+=4-r%4:r++;continue}i=!0}10!==s&&t!==a-1||(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),i=!1,n=0,r=0,e=t+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}Vh.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},Vh.prototype.State=Sh,$h.prototype.push=function(e,t,n){const r=new Dh(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},$h.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},$h.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},$h.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){if(!gh(this.src.charCodeAt(e)))break}return e},$h.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!gh(this.src.charCodeAt(--e)))return e+1;return e},$h.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},$h.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},$h.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const o=new Array(t-e);for(let a=0,i=e;i<t;i++,a++){let e=0;const s=this.bMarks[i];let l,c=s;for(l=i+1<t||r?this.eMarks[i]+1:this.eMarks[i];c<l&&e<n;){const t=this.src.charCodeAt(c);if(gh(t))9===t?e+=4-(e+this.bsCount[i])%4:e++;else{if(!(c-s<this.tShift[i]))break;e++}c++}o[a]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return o.join("")},$h.prototype.Token=Dh;function Gh(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Kh(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),a=!1,i=0,s="";for(;r<n;)124===o&&(a?(s+=e.substring(i,r-1),i=r):(t.push(s+e.substring(i,r)),s="",i=r+1)),a=92===o,r++,o=e.charCodeAt(r);return t.push(s+e.substring(i)),t}function Zh(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(42!==o&&45!==o&&43!==o)return-1;if(r<n){if(!gh(e.src.charCodeAt(r)))return-1}return r}function Yh(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let a=e.src.charCodeAt(o++);if(a<48||a>57)return-1;for(;;){if(o>=r)return-1;if(a=e.src.charCodeAt(o++),!(a>=48&&a<=57)){if(41===a||46===a)break;return-1}if(o-n>=10)return-1}return o<r&&(a=e.src.charCodeAt(o),!gh(a))?-1:o}const Jh="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Xh="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Qh=new RegExp("^(?:"+Jh+"|"+Xh+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),eg=new RegExp("^(?:"+Jh+"|"+Xh+")"),tg=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(eg.source+"\\s*$"),/^$/,!1]];const ng=[["table",function(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent)return!1;if(e.sCount[o]-e.blkIndent>=4)return!1;let a=e.bMarks[o]+e.tShift[o];if(a>=e.eMarks[o])return!1;const i=e.src.charCodeAt(a++);if(124!==i&&45!==i&&58!==i)return!1;if(a>=e.eMarks[o])return!1;const s=e.src.charCodeAt(a++);if(124!==s&&45!==s&&58!==s&&!gh(s))return!1;if(45===i&&gh(s))return!1;for(;a<e.eMarks[o];){const t=e.src.charCodeAt(a);if(124!==t&&45!==t&&58!==t&&!gh(t))return!1;a++}let l=Gh(e,t+1),c=l.split("|");const u=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?u.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?u.push("left"):u.push("")}if(l=Gh(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=Kh(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const d=c.length;if(0===d||d!==u.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=[t,0];e.push("table_open","table",1).map=m,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t].trim(),r.children=[],e.push("th_close","th",-1)}let h;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,o,n,!0)){r=!0;break}if(r)break;if(l=Gh(e,o).trim(),!l)break;if(e.sCount[o]-e.blkIndent>=4)break;if(c=Kh(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),g+=d-c.length,g>65536)break;if(o===t+2){e.push("tbody_open","tbody",1).map=h=[t+2,0]}e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t]?c[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return h&&(e.push("tbody_close","tbody",-1),h[1]=o),e.push("table_close","table",-1),m[1]=o,e.parentType=f,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,o=r}e.line=o;const a=e.push("code_block","code",0);return a.content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}],["fence",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(o+3>a)return!1;const i=e.src.charCodeAt(o);if(126!==i&&96!==i)return!1;let s=o;o=e.skipChars(o,i);let l=o-s;if(l<3)return!1;const c=e.src.slice(s,o),u=e.src.slice(o,a);if(96===i&&u.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;(d++,!(d>=n))&&(o=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],!(o<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===i&&!(e.sCount[d]-e.blkIndent>=4||(o=e.skipChars(o,i),o-s<l||(o=e.skipSpaces(o),o<a)))){f=!0;break}l=e.sCount[t],e.line=d+(f?1:0);const p=e.push("fence","code",0);return p.info=u,p.content=e.getLines(t+1,d,l,!0),p.markup=c,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(o))return!1;if(r)return!0;const s=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p,m=!1;for(p=t;p<n;p++){const t=e.sCount[p]<e.blkIndent;if(o=e.bMarks[p]+e.tShift[p],a=e.eMarks[p],o>=a)break;if(62===e.src.charCodeAt(o++)&&!t){let t,n,r=e.sCount[p]+1;32===e.src.charCodeAt(o)?(o++,r++,n=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[p]+r)%4==3?(o++,r++,n=!1):n=!0):t=!1;let i=r;for(s.push(e.bMarks[p]),e.bMarks[p]=o;o<a;){const t=e.src.charCodeAt(o);if(!gh(t))break;9===t?i+=4-(i+e.bsCount[p]+(n?1:0))%4:i++,o++}m=o>=a,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),c.push(e.sCount[p]),e.sCount[p]=i-r,u.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(m)break;let r=!1;for(let t=0,o=d.length;t<o;t++)if(d[t](e,p,n,!0)){r=!0;break}if(r){e.lineMax=p,0!==e.blkIndent&&(s.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const h=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const b=[t,0];g.map=b,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=i,e.parentType=f,b[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=l[n];return e.blkIndent=h,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(a++);if(42!==i&&45!==i&&95!==i)return!1;let s=1;for(;a<o;){const t=e.src.charCodeAt(a++);if(t!==i&&!gh(t))return!1;t===i&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(i)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let o,a,i,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u,d,f,p=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(p=!0),(f=Yh(e,l))>=0){if(u=!0,i=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(i,f-1)),p&&1!==d)return!1}else{if(!((f=Zh(e,l))>=0))return!1;u=!1}if(p&&e.skipSpaces(f)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(f-1),h=e.tokens.length;u?(s=e.push("ordered_list_open","ol",1),1!==d&&(s.attrs=[["start",d]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(m);let b=!1;const v=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";l<n;){a=f,o=e.eMarks[l];const t=e.sCount[l]+f-(e.bMarks[l]+e.tShift[l]);let r=t;for(;a<o;){const t=e.src.charCodeAt(a);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}a++}const d=a;let p;p=d>=o?1:r-t,p>4&&(p=1);const h=t+p;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const g=[l,0];s.map=g,u&&(s.info=e.src.slice(i,f-1));const y=e.tight,w=e.tShift[l],x=e.sCount[l],E=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!b||(c=!1),b=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[l]=w,e.sCount[l]=x,e.tight=y,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let _=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,l,n,!0)){_=!0;break}if(_)break;if(u){if(f=Yh(e,l),f<0)break;i=e.bMarks[l]+e.tShift[l]}else if(f=Zh(e,l),f<0)break;if(m!==e.src.charCodeAt(f-1))break}return s=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),g[1]=l,e.line=l,e.parentType=y,c&&function(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,h),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(o))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let a=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,t,n,!0)){a=!0;break}if(e.parentType=o,a)return null}const o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(o,a+1)}let l=e.src.slice(o,a+1);a=l.length;let c=-1;for(o=1;o<a;o++){const e=l.charCodeAt(o);if(91===e)return!1;if(93===e){c=o;break}if(10===e){const e=s(i);null!==e&&(l+=e,a=l.length,i++)}else if(92===e&&(o++,o<a&&10===l.charCodeAt(o))){const e=s(i);null!==e&&(l+=e,a=l.length,i++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(o=c+2;o<a;o++){const e=l.charCodeAt(o);if(10===e){const e=s(i);null!==e&&(l+=e,a=l.length,i++)}else if(!gh(e))break}const u=e.md.helpers.parseLinkDestination(l,o,a);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;o=u.pos;const f=o,p=i,m=o;for(;o<a;o++){const e=l.charCodeAt(o);if(10===e){const e=s(i);null!==e&&(l+=e,a=l.length,i++)}else if(!gh(e))break}let h,g=e.md.helpers.parseLinkTitle(l,o,a);for(;g.can_continue;){const t=s(i);if(null===t)break;l+=t,o=a,a=l.length,i++,g=e.md.helpers.parseLinkTitle(l,o,a,g)}for(o<a&&m!==o&&g.ok?(h=g.str,o=g.pos):(h="",o=f,i=p);o<a;){if(!gh(l.charCodeAt(o)))break;o++}if(o<a&&10!==l.charCodeAt(o)&&h)for(h="",o=f,i=p;o<a;){if(!gh(l.charCodeAt(o)))break;o++}if(o<a&&10!==l.charCodeAt(o))return!1;const b=wh(l.slice(1,c));return!!b&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[b]&&(e.env.references[b]={title:h,href:d}),e.line=i),!0)}],["html_block",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(o))return!1;let i=e.src.slice(o,a),s=0;for(;s<tg.length&&!tg[s][0].test(i);s++);if(s===tg.length)return!1;if(r)return tg[s][2];let l=t+1;if(!tg[s][1].test(i))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],i=e.src.slice(o,a),tg[s][1].test(i)){0!==i.length&&l++;break}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(o);if(35!==i||o>=a)return!1;let s=1;for(i=e.src.charCodeAt(++o);35===i&&o<a&&s<=6;)s++,i=e.src.charCodeAt(++o);if(s>6||o<a&&!gh(i))return!1;if(r)return!0;a=e.skipSpacesBack(a,o);const l=e.skipCharsBack(a,35,o);l>o&&gh(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=e.src.slice(o,a).trim(),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let a,i=0,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t<n&&(a=e.src.charCodeAt(t),(45===a||61===a)&&(t=e.skipChars(t,a),t=e.skipSpaces(t),t>=n))){i=61===a?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let o=0,a=r.length;o<a;o++)if(r[o](e,s,n,!0)){t=!0;break}if(t)break}if(!i)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(i),-1).markup=String.fromCharCode(a),e.parentType=o,!0}],["paragraph",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]<0)continue;let t=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,a,n,!0)){t=!0;break}if(t)break}const i=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a,e.push("paragraph_open","p",1).map=[t,e.line];const s=e.push("inline","",0);return s.content=i,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}]];function rg(){this.ruler=new Nh;for(let e=0;e<ng.length;e++)this.ruler.push(ng[e][0],ng[e][1],{alt:(ng[e][2]||[]).slice()})}function og(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}function ag(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}rg.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,a=e.md.options.maxNesting;let i=t,s=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n))&&!(e.sCount[i]<e.blkIndent);){if(e.level>=a){e.line=n;break}const t=e.line;let l=!1;for(let a=0;a<o;a++)if(l=r[a](e,i,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),i=e.line,i<n&&e.isEmpty(i)&&(s=!0,i++,e.line=i)}},rg.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},rg.prototype.State=$h,og.prototype.pushPending=function(){const e=new Dh("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},og.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new Dh(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},og.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;const i=a-e,s=a<n?this.src.charCodeAt(a):32,l=yh(o)||vh(String.fromCharCode(o)),c=yh(s)||vh(String.fromCharCode(s)),u=bh(o),d=bh(s),f=!d&&(!c||u||l),p=!u&&(!l||d||c);return{can_open:f&&(t||!p||l),can_close:p&&(t||!f||c),length:i}},og.prototype.Token=Dh;const ig=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const sg=[];for(let e=0;e<256;e++)sg.push(0);function lg(e,t){let n;const r=[],o=t.length;for(let a=0;a<o;a++){const o=t[a];if(126!==o.marker)continue;if(-1===o.end)continue;const i=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&r.push(i.token-1)}for(;r.length;){const t=r.pop();let o=t+1;for(;o<e.tokens.length&&"s_close"===e.tokens[o].type;)o++;o--,t!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){sg[e.charCodeAt(0)]=1});var cg={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const o=e.scanDelims(e.pos,!0);let a=o.length;const i=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push("text","",0),s.content=i,a--);for(let t=0;t<a;t+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;lg(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&lg(e,t[r].delimiters)}};function ug(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const o=t[r.end],a=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,i=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?i+i:i,s.content="";const l=e.tokens[o.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?i+i:i,l.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}var dg={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const o=e.scanDelims(e.pos,42===r);for(let t=0;t<o.length;t++){e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;ug(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&ug(e,t[r].delimiters)}};const fg=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,pg=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const mg=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,hg=/^&([a-z][a-z0-9]{1,31});/i;function gg(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const a=[];for(let i=0;i<n;i++){const n=e[i];if(a.push(0),e[r].marker===n.marker&&o===n.token-1||(r=i),o=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[n.marker][(n.open?3:0)+n.length%3];let l=r-a[r]-1,c=l;for(;l>s;l-=a[l]+1){const t=e[l];if(t.marker===n.marker&&(t.open&&t.end<0)){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?a[l-1]+1:0;a[i]=i-l+r,a[l]=r,n.open=!1,t.end=i,t.close=!1,c=-1,o=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const bg=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!ag(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(ig);if(!r)return!1;const o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let i=a.url;if(i.length<=o.length)return!1;let s=i.length;for(;s>0&&42===i.charCodeAt(s-1);)s--;s!==i.length&&(i=i.slice(0,s));const l=e.md.normalizeLink(i);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=i.length-o.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&gh(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let o=e.src.charCodeAt(n);if(10===o){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),gh(o));)n++;return e.pos=n,!0}let a=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}const i="\\"+a;if(!t){const t=e.push("text_special","",0);o<256&&0!==sg[o]?t.content=a:t.content=i,t.markup=i,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;const a=e.src.slice(r,n),i=a.length;if(e.backticksScanned&&(e.backticks[i]||0)<=r)return t||(e.pending+=a),e.pos+=i,!0;let s,l=n;for(;-1!==(s=e.src.indexOf("`",l));){for(l=s+1;l<o&&96===e.src.charCodeAt(l);)l++;const r=l-s;if(r===i){if(!t){const t=e.push("code_inline","code",0);t.markup=a,t.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=s}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=i,!0}],["strikethrough",cg.tokenize],["emphasis",dg.tokenize],["link",function(e,t){let n,r,o,a,i="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&40===e.src.charCodeAt(m)){for(c=!1,m++;m<d&&(n=e.src.charCodeAt(m),gh(n)||10===n);m++);if(m>=d)return!1;if(l=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(i=e.md.normalizeLink(o.str),e.md.validateLink(i)?m=o.pos:i="",l=m;m<d&&(n=e.src.charCodeAt(m),gh(n)||10===n);m++);if(o=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&l!==m&&o.ok)for(s=o.str,m=o.pos;m<d&&(n=e.src.charCodeAt(m),gh(n)||10===n);m++);}(m>=d||41!==e.src.charCodeAt(m))&&(c=!0),m++}if(c){if(void 0===e.env.references)return!1;if(m<d&&91===e.src.charCodeAt(m)?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=p+1):m=p+1,r||(r=e.src.slice(f,p)),a=e.env.references[wh(r)],!a)return e.pos=u,!1;i=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;const t=[["href",i]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}],["image",function(e,t){let n,r,o,a,i,s,l,c,u="";const d=e.pos,f=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&40===e.src.charCodeAt(a)){for(a++;a<f&&(n=e.src.charCodeAt(a),gh(n)||10===n);a++);if(a>=f)return!1;for(c=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=""),c=a;a<f&&(n=e.src.charCodeAt(a),gh(n)||10===n);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&c!==a&&s.ok)for(l=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),gh(n)||10===n);a++);else l="";if(a>=f||41!==e.src.charCodeAt(a))return e.pos=d,!1;a++}else{if(void 0===e.env.references)return!1;if(a<f&&91===e.src.charCodeAt(a)?(c=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?o=e.src.slice(c,a++):a=m+1):a=m+1,o||(o=e.src.slice(p,m)),i=e.env.references[wh(o)],!i)return e.pos=d,!1;u=i.href,l=i.title}if(!t){r=e.src.slice(p,m);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),o=[["src",u],["alt",""]];n.attrs=o,n.children=t,n.content=r,l&&o.push(["title",l])}return e.pos=a,e.posMax=f,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const a=e.src.slice(r+1,n);if(pg.test(a)){const n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=a.length+2,!0}if(fg.test(a)){const n=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=a.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const a=e.src.slice(r).match(Qh);if(!a)return!1;if(!t){const t=e.push("html_inline","",0);t.content=a[0],i=t.content,/^<a[>\s]/i.test(i)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var i;return e.pos+=a[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(mg);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=oh(t)?ah(t):ah(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(hg);if(r){const n=Qm(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],vg=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;gg(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&gg(t[e].delimiters)}],["strikethrough",cg.postProcess],["emphasis",dg.postProcess],["fragments_join",function(e){let t,n,r=0;const o=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<a&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}]];function yg(){this.ruler=new Nh;for(let e=0;e<bg.length;e++)this.ruler.push(bg[e][0],bg[e][1]);this.ruler2=new Nh;for(let e=0;e<vg.length;e++)this.ruler2.push(vg[e][0],vg[e][1])}function wg(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function xg(e){return Object.prototype.toString.call(e)}function Eg(e){return"[object Function]"===xg(e)}function _g(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}yg.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,a=e.cache;if(void 0!==a[t])return void(e.pos=a[t]);let i=!1;if(e.level<o){for(let o=0;o<r;o++)if(e.level++,i=n[o](e,!0),e.level--,i){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,a[t]=e.pos},yg.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const a=e.pos;let i=!1;if(e.level<o)for(let r=0;r<n;r++)if(i=t[r](e,!1),i){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(i){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},yg.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const a=this.ruler2.getRules(""),i=a.length;for(let e=0;e<i;e++)a[e](o)},yg.prototype.State=og;const kg={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const Cg={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},Ng="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function Dg(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=Om.source,t.src_Cc=Fm.source,t.src_Z=Lm.source,t.src_P=Mm.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];function a(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===xg(n))return!function(e){return"[object RegExp]"===xg(e)}(n.validate)?Eg(n.validate)?r.validate=n.validate:a(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(Eg(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===xg(e)}(n)?a(t,n):o.push(t)}),o.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const i=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(_g).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function Sg(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function Ag(e,t){const n=new Sg(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function Tg(e,t){if(!(this instanceof Tg))return new Tg(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||kg.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=wg({},kg,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=wg({},Cg,e),this.__compiled__={},this.__tlds__=Ng,this.__tlds_replaced__=!1,this.re={},Dg(this)}Tg.prototype.add=function(e,t){return this.__schemas__[e]=t,Dg(this),this},Tg.prototype.set=function(e){return this.__opts__=wg(this.__opts__,e),this},Tg.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,o,a,i,s,l,c;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex),o){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,i=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=i))),this.__index__>=0},Tg.prototype.pretest=function(e){return this.re.pretest.test(e)},Tg.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},Tg.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(Ag(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(Ag(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},Tg.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,Ag(this,0)):null},Tg.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),Dg(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,Dg(this),this)},Tg.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},Tg.prototype.onCompile=function(){};const Rg=2147483647,Og=36,Fg=/^xn--/,Mg=/[^\0-\x7F]/,jg=/[\x2E\u3002\uFF0E\uFF61]/g,Lg={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Pg=Math.floor,Ig=String.fromCharCode;function zg(e){throw new RangeError(Lg[e])}function Bg(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(jg,".")).split("."),t).join(".");return r+o}function Ug(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const qg=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:Og},Hg=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},Wg=function(e,t,n){let r=0;for(e=n?Pg(e/700):e>>1,e+=Pg(e/t);e>455;r+=Og)e=Pg(e/35);return Pg(r+36*e/(e+38))},Vg=function(e){const t=[],n=e.length;let r=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(let n=0;n<i;++n)e.charCodeAt(n)>=128&&zg("not-basic"),t.push(e.charCodeAt(n));for(let s=i>0?i+1:0;s<n;){const i=r;for(let t=1,o=Og;;o+=Og){s>=n&&zg("invalid-input");const i=qg(e.charCodeAt(s++));i>=Og&&zg("invalid-input"),i>Pg((Rg-r)/t)&&zg("overflow"),r+=i*t;const l=o<=a?1:o>=a+26?26:o-a;if(i<l)break;const c=Og-l;t>Pg(Rg/c)&&zg("overflow"),t*=c}const l=t.length+1;a=Wg(r-i,l,0==i),Pg(r/l)>Rg-o&&zg("overflow"),o+=Pg(r/l),r%=l,t.splice(r++,0,o)}return String.fromCodePoint(...t)},$g=function(e){const t=[],n=(e=Ug(e)).length;let r=128,o=0,a=72;for(const n of e)n<128&&t.push(Ig(n));const i=t.length;let s=i;for(i&&t.push("-");s<n;){let n=Rg;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>Pg((Rg-o)/l)&&zg("overflow"),o+=(n-r)*l,r=n;for(const n of e)if(n<r&&++o>Rg&&zg("overflow"),n===r){let e=o;for(let n=Og;;n+=Og){const r=n<=a?1:n>=a+26?26:n-a;if(e<r)break;const o=e-r,i=Og-r;t.push(Ig(Hg(r+o%i,0))),e=Pg(o/i)}t.push(Ig(Hg(e,0))),a=Wg(o,l,s===i),o=0,++s}++o,++r}return t.join("")},Gg=function(e){return Bg(e,function(e){return Mg.test(e)?"xn--"+$g(e):e})},Kg=function(e){return Bg(e,function(e){return Fg.test(e)?Vg(e.slice(4).toLowerCase()):e})};const Zg={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},Yg=/^(vbscript|javascript|file|data):/,Jg=/^data:image\/(gif|png|jpeg|webp);/;function Xg(e){const t=e.trim().toLowerCase();return!Yg.test(t)||Jg.test(t)}const Qg=["http:","https:","mailto:"];function eb(e){const t=Am(e,!0);if(t.hostname&&(!t.protocol||Qg.indexOf(t.protocol)>=0))try{t.hostname=Gg(t.hostname)}catch(e){}return hm(gm(t))}function tb(e){const t=Am(e,!0);if(t.hostname&&(!t.protocol||Qg.indexOf(t.protocol)>=0))try{t.hostname=Kg(t.hostname)}catch(e){}return pm(gm(t),pm.defaultChars+"%")}function nb(e,t){if(!(this instanceof nb))return new nb(e,t);t||eh(e)||(t=e||{},e="default"),this.inline=new yg,this.block=new rg,this.core=new Vh,this.renderer=new Ch,this.linkify=new Tg,this.validateLink=Xg,this.normalizeLink=eb,this.normalizeLinkText=tb,this.utils=Eh,this.helpers=nh({},_h),this.options={},this.configure(e),t&&this.set(t)}nb.prototype.set=function(e){return nh(this.options,e),this},nb.prototype.configure=function(e){const t=this;if(eh(e)){const t=e;if(!(e=Zg[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},nb.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},nb.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},nb.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},nb.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},nb.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},nb.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},nb.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};
|
|
16
|
+
*/const C=(t,n)=>{const r=e.forwardRef(({color:r="currentColor",size:o=24,strokeWidth:a=2,absoluteStrokeWidth:i,className:s="",children:l,...c},u)=>{return e.createElement("svg",{ref:u,...k,width:o,height:o,stroke:r,strokeWidth:i?24*Number(a)/Number(o):a,className:["lucide",`lucide-${d=t,d.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase().trim()}`,s].join(" "),...c},[...n.map(([t,n])=>e.createElement(t,n)),...Array.isArray(l)?l:[l]]);var d});return r.displayName=`${t}`,r},N=C("AlertCircle",[["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"}]]),D=C("CheckCircle2",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),S=C("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),A=C("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),T=C("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),R=C("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),O=C("ChevronUp",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),F=C("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),M=C("Circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),j=C("Crown",[["path",{d:"m2 4 3 12h14l3-12-6 7-4-7-4 7-6-7zm3 16h14",key:"zkxr6b"}]]),L=C("Database",[["ellipse",{cx:"12",cy:"5",rx:"9",ry:"3",key:"msslwz"}],["path",{d:"M3 5V19A9 3 0 0 0 21 19V5",key:"1wlel7"}],["path",{d:"M3 12A9 3 0 0 0 21 12",key:"mv7ke4"}]]),I=C("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]),P=C("FileImage",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["circle",{cx:"10",cy:"12",r:"2",key:"737tya"}],["path",{d:"m20 17-1.296-1.296a2.41 2.41 0 0 0-3.408 0L9 22",key:"wt3hpn"}]]),z=C("FileText",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),B=C("File",[["path",{d:"M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z",key:"1rqfz7"}],["path",{d:"M14 2v4a2 2 0 0 0 2 2h4",key:"tnqrlb"}]]),q=C("Filter",[["polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3",key:"1yg77f"}]]),U=C("Globe",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]]),H=C("Home",[["path",{d:"m3 9 9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z",key:"y5dka4"}],["polyline",{points:"9 22 9 12 15 12 15 22",key:"e2us08"}]]),W=C("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),V=C("Loader2",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),$=C("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]),G=C("LogIn",[["path",{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4",key:"u53s6r"}],["polyline",{points:"10 17 15 12 10 7",key:"1ail0h"}],["line",{x1:"15",x2:"3",y1:"12",y2:"12",key:"v6grx8"}]]),K=C("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]),Z=C("PanelLeft",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M9 3v18",key:"fh3hqa"}]]),Y=C("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),J=C("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),X=C("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),Q=C("Sparkles",[["path",{d:"m12 3-1.912 5.813a2 2 0 0 1-1.275 1.275L3 12l5.813 1.912a2 2 0 0 1 1.275 1.275L12 21l1.912-5.813a2 2 0 0 1 1.275-1.275L21 12l-5.813-1.912a2 2 0 0 1-1.275-1.275L12 3Z",key:"17u4zn"}],["path",{d:"M5 3v4",key:"bklmnn"}],["path",{d:"M19 17v4",key:"iiml17"}],["path",{d:"M3 5h4",key:"nem4j1"}],["path",{d:"M17 19h4",key:"lbex7p"}]]),ee=C("SquarePen",[["path",{d:"M12 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7",key:"1m0v6g"}],["path",{d:"M18.375 2.625a2.121 2.121 0 1 1 3 3L12 15l-4 1 1-4Z",key:"1lpok0"}]]),te=C("Table",[["path",{d:"M12 3v18",key:"108xh3"}],["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}],["path",{d:"M3 9h18",key:"1pudct"}],["path",{d:"M3 15h18",key:"5xshup"}]]),ne=C("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"}]]),re=C("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),oe=C("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]),ae=C("XCircle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]]),ie=C("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);function se(e){var t,n,r="";if("string"==typeof e||"number"==typeof e)r+=e;else if("object"==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=se(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function le(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=se(e))&&(r&&(r+=" "),r+=t);return r}const ce=e=>{const t=pe(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:r}=e;return{getClassGroupId:e=>{const n=e.split("-");return""===n[0]&&1!==n.length&&n.shift(),ue(n,t)||fe(e)},getConflictingClassGroupIds:(e,t)=>{const o=n[e]||[];return t&&r[e]?[...o,...r[e]]:o}}},ue=(e,t)=>{if(0===e.length)return t.classGroupId;const n=e[0],r=t.nextPart.get(n),o=r?ue(e.slice(1),r):void 0;if(o)return o;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find(({validator:e})=>e(a))?.classGroupId},de=/^\[(.+)\]$/,fe=e=>{if(de.test(e)){const t=de.exec(e)[1],n=t?.substring(0,t.indexOf(":"));if(n)return"arbitrary.."+n}},pe=e=>{const{theme:t,prefix:n}=e,r={nextPart:new Map,validators:[]};return be(Object.entries(e.classGroups),n).forEach(([e,n])=>{me(n,r,e,t)}),r},me=(e,t,n,r)=>{e.forEach(e=>{if("string"==typeof e){return void((""===e?t:he(t,e)).classGroupId=n)}if("function"==typeof e)return ge(e)?void me(e(r),t,n,r):void t.validators.push({validator:e,classGroupId:n});Object.entries(e).forEach(([e,o])=>{me(o,he(t,e),n,r)})})},he=(e,t)=>{let n=e;return t.split("-").forEach(e=>{n.nextPart.has(e)||n.nextPart.set(e,{nextPart:new Map,validators:[]}),n=n.nextPart.get(e)}),n},ge=e=>e.isThemeGetter,be=(e,t)=>t?e.map(([e,n])=>[e,n.map(e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map(([e,n])=>[t+e,n])):e)]):e,ve=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=new Map,r=new Map;const o=(o,a)=>{n.set(o,a),t++,t>e&&(t=0,r=n,n=new Map)};return{get(e){let t=n.get(e);return void 0!==t?t:void 0!==(t=r.get(e))?(o(e,t),t):void 0},set(e,t){n.has(e)?n.set(e,t):o(e,t)}}},ye=e=>{const{separator:t,experimentalParseClassName:n}=e,r=1===t.length,o=t[0],a=t.length,i=e=>{const n=[];let i,s=0,l=0;for(let c=0;c<e.length;c++){let u=e[c];if(0===s){if(u===o&&(r||e.slice(c,c+a)===t)){n.push(e.slice(l,c)),l=c+a;continue}if("/"===u){i=c;continue}}"["===u?s++:"]"===u&&s--}const c=0===n.length?e:e.substring(l),u=c.startsWith("!");return{modifiers:n,hasImportantModifier:u,baseClassName:u?c.substring(1):c,maybePostfixModifierPosition:i&&i>l?i-l:void 0}};return n?e=>n({className:e,parseClassName:i}):i},we=e=>{if(e.length<=1)return e;const t=[];let n=[];return e.forEach(e=>{"["===e[0]?(t.push(...n.sort(),e),n=[]):n.push(e)}),t.push(...n.sort()),t},xe=/\s+/;function Ee(){let e,t,n=0,r="";for(;n<arguments.length;)(e=arguments[n++])&&(t=_e(e))&&(r&&(r+=" "),r+=t);return r}const _e=e=>{if("string"==typeof e)return e;let t,n="";for(let r=0;r<e.length;r++)e[r]&&(t=_e(e[r]))&&(n&&(n+=" "),n+=t);return n};function ke(e,...t){let n,r,o,a=function(s){const l=t.reduce((e,t)=>t(e),e());return n=(e=>({cache:ve(e.cacheSize),parseClassName:ye(e),...ce(e)}))(l),r=n.cache.get,o=n.cache.set,a=i,i(s)};function i(e){const t=r(e);if(t)return t;const a=((e,t)=>{const{parseClassName:n,getClassGroupId:r,getConflictingClassGroupIds:o}=t,a=[],i=e.trim().split(xe);let s="";for(let e=i.length-1;e>=0;e-=1){const t=i[e],{modifiers:l,hasImportantModifier:c,baseClassName:u,maybePostfixModifierPosition:d}=n(t);let f=Boolean(d),p=r(f?u.substring(0,d):u);if(!p){if(!f){s=t+(s.length>0?" "+s:s);continue}if(p=r(u),!p){s=t+(s.length>0?" "+s:s);continue}f=!1}const m=we(l).join(":"),h=c?m+"!":m,g=h+p;if(a.includes(g))continue;a.push(g);const b=o(p,f);for(let e=0;e<b.length;++e){const t=b[e];a.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,n);return o(e,a),a}return function(){return a(Ee.apply(null,arguments))}}const Ce=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Ne=/^\[(?:([a-z-]+):)?(.+)\]$/i,De=/^\d+\/\d+$/,Se=new Set(["px","full","screen"]),Ae=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Te=/\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$/,Re=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,Oe=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,Fe=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Me=e=>Le(e)||Se.has(e)||De.test(e),je=e=>Ze(e,"length",Ye),Le=e=>Boolean(e)&&!Number.isNaN(Number(e)),Ie=e=>Ze(e,"number",Le),Pe=e=>Boolean(e)&&Number.isInteger(Number(e)),ze=e=>e.endsWith("%")&&Le(e.slice(0,-1)),Be=e=>Ne.test(e),qe=e=>Ae.test(e),Ue=new Set(["length","size","percentage"]),He=e=>Ze(e,Ue,Je),We=e=>Ze(e,"position",Je),Ve=new Set(["image","url"]),$e=e=>Ze(e,Ve,Qe),Ge=e=>Ze(e,"",Xe),Ke=()=>!0,Ze=(e,t,n)=>{const r=Ne.exec(e);return!!r&&(r[1]?"string"==typeof t?r[1]===t:t.has(r[1]):n(r[2]))},Ye=e=>Te.test(e)&&!Re.test(e),Je=()=>!1,Xe=e=>Oe.test(e),Qe=e=>Fe.test(e),et=()=>{const e=Ce("colors"),t=Ce("spacing"),n=Ce("blur"),r=Ce("brightness"),o=Ce("borderColor"),a=Ce("borderRadius"),i=Ce("borderSpacing"),s=Ce("borderWidth"),l=Ce("contrast"),c=Ce("grayscale"),u=Ce("hueRotate"),d=Ce("invert"),f=Ce("gap"),p=Ce("gradientColorStops"),m=Ce("gradientColorStopPositions"),h=Ce("inset"),g=Ce("margin"),b=Ce("opacity"),v=Ce("padding"),y=Ce("saturate"),w=Ce("scale"),x=Ce("sepia"),E=Ce("skew"),_=Ce("space"),k=Ce("translate"),C=()=>["auto",Be,t],N=()=>[Be,t],D=()=>["",Me,je],S=()=>["auto",Le,Be],A=()=>["","0",Be],T=()=>[Le,Be];return{cacheSize:500,separator:":",theme:{colors:[Ke],spacing:[Me,je],blur:["none","",qe,Be],brightness:T(),borderColor:[e],borderRadius:["none","","full",qe,Be],borderSpacing:N(),borderWidth:D(),contrast:T(),grayscale:A(),hueRotate:T(),invert:A(),gap:N(),gradientColorStops:[e],gradientColorStopPositions:[ze,je],inset:C(),margin:C(),opacity:T(),padding:N(),saturate:T(),scale:T(),sepia:A(),skew:T(),space:N(),translate:N()},classGroups:{aspect:[{aspect:["auto","square","video",Be]}],container:["container"],columns:[{columns:[qe]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"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:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Be]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Pe,Be]}],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",Be]}],grow:[{grow:A()}],shrink:[{shrink:A()}],order:[{order:["first","last","none",Pe,Be]}],"grid-cols":[{"grid-cols":[Ke]}],"col-start-end":[{col:["auto",{span:["full",Pe,Be]},Be]}],"col-start":[{"col-start":S()}],"col-end":[{"col-end":S()}],"grid-rows":[{"grid-rows":[Ke]}],"row-start-end":[{row:["auto",{span:[Pe,Be]},Be]}],"row-start":[{"row-start":S()}],"row-end":[{"row-end":S()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Be]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Be]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[v]}],px:[{px:[v]}],py:[{py:[v]}],ps:[{ps:[v]}],pe:[{pe:[v]}],pt:[{pt:[v]}],pr:[{pr:[v]}],pb:[{pb:[v]}],pl:[{pl:[v]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"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",Be,t]}],"min-w":[{"min-w":[Be,t,"min","max","fit"]}],"max-w":[{"max-w":[Be,t,"none","full","min","max","fit","prose",{screen:[qe]},qe]}],h:[{h:[Be,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Be,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Be,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Be,t,"auto","min","max","fit"]}],"font-size":[{text:["base",qe,je]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Ie]}],"font-family":[{font:[Ke]}],"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",Be]}],"line-clamp":[{"line-clamp":["none",Le,Ie]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Me,Be]}],"list-image":[{"list-image":["none",Be]}],"list-style-type":[{list:["none","disc","decimal",Be]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Me,je]}],"underline-offset":[{"underline-offset":["auto",Me,Be]}],"text-decoration-color":[{decoration:[e]}],"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",Be]}],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",Be]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",We]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",He]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},$e]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[m]}],"gradient-via-pos":[{via:[m]}],"gradient-to-pos":[{to:[m]}],"gradient-from":[{from:[p]}],"gradient-via":[{via:[p]}],"gradient-to":[{to:[p]}],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":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","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":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"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:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Me,Be]}],"outline-w":[{outline:[Me,je]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:D()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Me,je]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",qe,Ge]}],"shadow-color":[{shadow:[Ke]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[n]}],brightness:[{brightness:[r]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",qe,Be]}],grayscale:[{grayscale:[c]}],"hue-rotate":[{"hue-rotate":[u]}],invert:[{invert:[d]}],saturate:[{saturate:[y]}],sepia:[{sepia:[x]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[n]}],"backdrop-brightness":[{"backdrop-brightness":[r]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[c]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[u]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[y]}],"backdrop-sepia":[{"backdrop-sepia":[x]}],"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",Be]}],duration:[{duration:T()}],ease:[{ease:["linear","in","out","in-out",Be]}],delay:[{delay:T()}],animate:[{animate:["none","spin","ping","pulse","bounce",Be]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[w]}],"scale-x":[{"scale-x":[w]}],"scale-y":[{"scale-y":[w]}],rotate:[{rotate:[Pe,Be]}],"translate-x":[{"translate-x":[k]}],"translate-y":[{"translate-y":[k]}],"skew-x":[{"skew-x":[E]}],"skew-y":[{"skew-y":[E]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Be]}],accent:[{accent:["auto",e]}],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",Be]}],"caret-color":[{caret:[e]}],"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",Be]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Me,je,Ie]}],stroke:[{stroke:[e,"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"]}}},tt=ke(et);function nt(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return tt(le(t))}function rt(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:nt("animate-pulse rounded-md bg-muted",t)},n))}function ot(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function at(...e){return t=>{let n=!1;const r=e.map(e=>{const r=ot(e,t);return n||"function"!=typeof r||(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){const n=r[t];"function"==typeof n?n():ot(e[t],null)}}}}function it(...e){return c.useCallback(at(...e),e)}var st=Symbol.for("react.lazy"),lt=c[" use ".trim().toString()];function ct(e){return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===st&&"_payload"in e&&("object"==typeof(t=e._payload)&&null!==t&&"then"in t);var t}function ut(e){const n=ft(e),r=c.forwardRef((e,r)=>{let{children:o,...a}=e;ct(o)&&"function"==typeof lt&&(o=lt(o._payload));const i=c.Children.toArray(o),s=i.find(mt);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}var dt=ut("Slot");function ft(e){const t=c.forwardRef((e,t)=>{let{children:n,...r}=e;if(ct(n)&&"function"==typeof lt&&(n=lt(n._payload)),c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?at(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var pt=Symbol("radix.slottable");function mt(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===pt}const ht=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,gt=le,bt=(e,t)=>n=>{var r;if(null==(null==t?void 0:t.variants))return gt(e,null==n?void 0:n.class,null==n?void 0:n.className);const{variants:o,defaultVariants:a}=t,i=Object.keys(o).map(e=>{const t=null==n?void 0:n[e],r=null==a?void 0:a[e];if(null===t)return null;const i=ht(t)||ht(r);return o[e][i]}),s=n&&Object.entries(n).reduce((e,t)=>{let[n,r]=t;return void 0===r||(e[n]=r),e},{}),l=null==t||null===(r=t.compoundVariants)||void 0===r?void 0:r.reduce((e,t)=>{let{class:n,className:r,...o}=t;return Object.entries(o).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...a,...s}[t]):{...a,...s}[t]===n})?[...e,n,r]:e},[]);return gt(e,i,l,null==n?void 0:n.class,null==n?void 0:n.className)};var vt=bt("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-full text-sm font-bold transition-all duration-300 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary))]/30 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 shadow-[0_4px_20px_-2px_rgba(93,112,82,0.15)] hover:scale-105 hover:shadow-[0_6px_24px_-4px_rgba(93,112,82,0.25)] active:scale-95",destructive:"bg-destructive text-destructive-foreground shadow-[0_4px_20px_-2px_rgba(168,84,72,0.15)] hover:scale-105 hover:shadow-[0_6px_24px_-4px_rgba(168,84,72,0.25)] active:scale-95",outline:"border border-[hsl(var(--border))]/70 bg-[hsl(var(--secondary))]/35 text-foreground shadow-[0_8px_24px_-18px_rgba(33,43,54,0.28)] hover:border-[hsl(var(--primary))]/30 hover:bg-[hsl(var(--secondary))]/55 hover:text-foreground hover:scale-105 active:scale-95",secondary:"bg-secondary text-secondary-foreground shadow-[0_4px_20px_-2px_rgba(193,140,93,0.15)] hover:scale-105 hover:shadow-[0_6px_24px_-4px_rgba(193,140,93,0.25)] active:scale-95",ghost:"bg-transparent text-primary hover:bg-primary/10 hover:scale-105 active:scale-95",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-12 px-8 py-2",sm:"h-10 px-6 text-sm",lg:"h-14 px-10 text-base",icon:"h-12 w-12"}},defaultVariants:{variant:"default",size:"default"}}),yt=c.forwardRef(function(e,t){var n=e.className,r=e.variant,o=e.size,a=e.asChild,i=void 0!==a&&a,s=_(e,["className","variant","size","asChild"]),l=i?dt:"button";return c.createElement(l,Object.assign({className:nt(vt({variant:r,size:o,className:n})),ref:t},s))});yt.displayName="Button";var wt=c.forwardRef(function(e,t){var n=e.className,r=e.type,o=_(e,["className","type"]);return c.createElement("input",Object.assign({type:r,className:nt("flex h-12 w-full rounded-full border border-input bg-background px-6 py-2 text-base ring-offset-background file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-[hsl(var(--primary))]/30 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-300 md:text-sm",n),ref:t},o))});wt.displayName="Input";var xt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{const r=ut(`Primitive.${n}`),o=c.forwardRef((e,o)=>{const{asChild:a,...i}=e,s=a?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(s,{...i,ref:o})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{}),Et="horizontal",_t=["horizontal","vertical"],kt=c.forwardRef((e,n)=>{const{decorative:r,orientation:o=Et,...a}=e,i=function(e){return _t.includes(e)}(o)?o:Et,s=r?{role:"none"}:{"aria-orientation":"vertical"===i?i:void 0,role:"separator"};return t.jsx(xt.div,{"data-orientation":i,...s,...a,ref:n})});kt.displayName="Separator";var Ct=kt,Nt=c.forwardRef(function(e,t){var n=e.className,r=e.orientation,o=void 0===r?"horizontal":r,a=e.decorative,i=void 0===a||a,s=_(e,["className","orientation","decorative"]);return c.createElement(Ct,Object.assign({ref:t,decorative:i,orientation:o,className:nt("shrink-0 bg-border","horizontal"===o?"h-[1px] w-full":"h-full w-[1px]",n)},s))});function Dt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(r){if(e?.(r),!1===n||!r.defaultPrevented)return t?.(r)}}function St(e,n=[]){let r=[];const o=()=>{const t=r.map(e=>c.createContext(e));return function(n){const r=n?.[e]||t;return c.useMemo(()=>({[`__scope${e}`]:{...n,[e]:r}}),[n,r])}};return o.scopeName=e,[function(n,o){const a=c.createContext(o),i=r.length;r=[...r,o];const s=n=>{const{scope:r,children:o,...s}=n,l=r?.[e]?.[i]||a,u=c.useMemo(()=>s,Object.values(s));return t.jsx(l.Provider,{value:u,children:o})};return s.displayName=n+"Provider",[s,function(t,r){const s=r?.[e]?.[i]||a,l=c.useContext(s);if(l)return l;if(void 0!==o)return o;throw new Error(`\`${t}\` must be used within \`${n}\``)}]},At(o,...n)]}function At(...e){const t=e[0];if(1===e.length)return t;const n=()=>{const n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){const r=n.reduce((t,{useScope:n,scopeName:r})=>({...t,...n(e)[`__scope${r}`]}),{});return c.useMemo(()=>({[`__scope${t.scopeName}`]:r}),[r])}};return n.scopeName=t.scopeName,n}Nt.displayName=Ct.displayName;var Tt=globalThis?.document?c.useLayoutEffect:()=>{},Rt=c[" useId ".trim().toString()]||(()=>{}),Ot=0;function Ft(e){const[t,n]=c.useState(Rt());return Tt(()=>{e||n(e=>e??String(Ot++))},[e]),e||(t?`radix-${t}`:"")}var Mt=c[" useInsertionEffect ".trim().toString()]||Tt;function jt({prop:e,defaultProp:t,onChange:n=()=>{},caller:r}){const[o,a,i]=function({defaultProp:e,onChange:t}){const[n,r]=c.useState(e),o=c.useRef(n),a=c.useRef(t);return Mt(()=>{a.current=t},[t]),c.useEffect(()=>{o.current!==n&&(a.current?.(n),o.current=n)},[n,o]),[n,r,a]}({defaultProp:t,onChange:n}),s=void 0!==e,l=s?e:o;{const t=c.useRef(void 0!==e);c.useEffect(()=>{const e=t.current;if(e!==s){}t.current=s},[s,r])}const u=c.useCallback(t=>{if(s){const n=function(e){return"function"==typeof e}(t)?t(e):t;n!==e&&i.current?.(n)}else a(t)},[s,e,a,i]);return[l,u]}function Lt(e){const t=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?at(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var It=Symbol("radix.slottable");function Pt(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===It}var zt=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{const r=function(e){const n=Lt(e),r=c.forwardRef((e,r)=>{const{children:o,...a}=e,i=c.Children.toArray(o),s=i.find(Pt);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}(`Primitive.${n}`),o=c.forwardRef((e,o)=>{const{asChild:a,...i}=e,s=a?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(s,{...i,ref:o})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{});function Bt(e,t){e&&u.flushSync(()=>e.dispatchEvent(t))}function qt(e){const t=c.useRef(e);return c.useEffect(()=>{t.current=e}),c.useMemo(()=>(...e)=>t.current?.(...e),[])}var Ut,Ht="dismissableLayer.update",Wt="dismissableLayer.pointerDownOutside",Vt="dismissableLayer.focusOutside",$t=c.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),Gt=c.forwardRef((e,n)=>{const{disableOutsidePointerEvents:r=!1,onEscapeKeyDown:o,onPointerDownOutside:a,onFocusOutside:i,onInteractOutside:s,onDismiss:l,...u}=e,d=c.useContext($t),[f,p]=c.useState(null),m=f?.ownerDocument??globalThis?.document,[,h]=c.useState({}),g=it(n,e=>p(e)),b=Array.from(d.layers),[v]=[...d.layersWithOutsidePointerEventsDisabled].slice(-1),y=b.indexOf(v),w=f?b.indexOf(f):-1,x=d.layersWithOutsidePointerEventsDisabled.size>0,E=w>=y,_=function(e,t=globalThis?.document){const n=qt(e),r=c.useRef(!1),o=c.useRef(()=>{});return c.useEffect(()=>{const e=e=>{if(e.target&&!r.current){let r=function(){Zt(Wt,n,a,{discrete:!0})};const a={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",o.current),o.current=r,t.addEventListener("click",o.current,{once:!0})):r()}else t.removeEventListener("click",o.current);r.current=!1},a=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(a),t.removeEventListener("pointerdown",e),t.removeEventListener("click",o.current)}},[t,n]),{onPointerDownCapture:()=>r.current=!0}}(e=>{const t=e.target,n=[...d.branches].some(e=>e.contains(t));E&&!n&&(a?.(e),s?.(e),e.defaultPrevented||l?.())},m),k=function(e,t=globalThis?.document){const n=qt(e),r=c.useRef(!1);return c.useEffect(()=>{const e=e=>{if(e.target&&!r.current){Zt(Vt,n,{originalEvent:e},{discrete:!1})}};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>r.current=!0,onBlurCapture:()=>r.current=!1}}(e=>{const t=e.target;[...d.branches].some(e=>e.contains(t))||(i?.(e),s?.(e),e.defaultPrevented||l?.())},m);return function(e,t=globalThis?.document){const n=qt(e);c.useEffect(()=>{const e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{w===d.layers.size-1&&(o?.(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},m),c.useEffect(()=>{if(f)return r&&(0===d.layersWithOutsidePointerEventsDisabled.size&&(Ut=m.body.style.pointerEvents,m.body.style.pointerEvents="none"),d.layersWithOutsidePointerEventsDisabled.add(f)),d.layers.add(f),Kt(),()=>{r&&1===d.layersWithOutsidePointerEventsDisabled.size&&(m.body.style.pointerEvents=Ut)}},[f,m,r,d]),c.useEffect(()=>()=>{f&&(d.layers.delete(f),d.layersWithOutsidePointerEventsDisabled.delete(f),Kt())},[f,d]),c.useEffect(()=>{const e=()=>h({});return document.addEventListener(Ht,e),()=>document.removeEventListener(Ht,e)},[]),t.jsx(zt.div,{...u,ref:g,style:{pointerEvents:x?E?"auto":"none":void 0,...e.style},onFocusCapture:Dt(e.onFocusCapture,k.onFocusCapture),onBlurCapture:Dt(e.onBlurCapture,k.onBlurCapture),onPointerDownCapture:Dt(e.onPointerDownCapture,_.onPointerDownCapture)})});Gt.displayName="DismissableLayer";function Kt(){const e=new CustomEvent(Ht);document.dispatchEvent(e)}function Zt(e,t,n,{discrete:r}){const o=n.originalEvent.target,a=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&o.addEventListener(e,t,{once:!0}),r?Bt(o,a):o.dispatchEvent(a)}c.forwardRef((e,n)=>{const r=c.useContext($t),o=c.useRef(null),a=it(n,o);return c.useEffect(()=>{const e=o.current;if(e)return r.branches.add(e),()=>{r.branches.delete(e)}},[r.branches]),t.jsx(zt.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var Yt="focusScope.autoFocusOnMount",Jt="focusScope.autoFocusOnUnmount",Xt={bubbles:!1,cancelable:!0},Qt=c.forwardRef((e,n)=>{const{loop:r=!1,trapped:o=!1,onMountAutoFocus:a,onUnmountAutoFocus:i,...s}=e,[l,u]=c.useState(null),d=qt(a),f=qt(i),p=c.useRef(null),m=it(n,e=>u(e)),h=c.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;c.useEffect(()=>{if(o){let e=function(e){if(h.paused||!l)return;const t=e.target;l.contains(t)?p.current=t:rn(p.current,{select:!0})},t=function(e){if(h.paused||!l)return;const t=e.relatedTarget;null!==t&&(l.contains(t)||rn(p.current,{select:!0}))},n=function(e){if(document.activeElement===document.body)for(const t of e)t.removedNodes.length>0&&rn(l)};document.addEventListener("focusin",e),document.addEventListener("focusout",t);const r=new MutationObserver(n);return l&&r.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),r.disconnect()}}},[o,l,h.paused]),c.useEffect(()=>{if(l){on.add(h);const t=document.activeElement;if(!l.contains(t)){const n=new CustomEvent(Yt,Xt);l.addEventListener(Yt,d),l.dispatchEvent(n),n.defaultPrevented||(!function(e,{select:t=!1}={}){const n=document.activeElement;for(const r of e)if(rn(r,{select:t}),document.activeElement!==n)return}((e=en(l),e.filter(e=>"A"!==e.tagName)),{select:!0}),document.activeElement===t&&rn(l))}return()=>{l.removeEventListener(Yt,d),setTimeout(()=>{const e=new CustomEvent(Jt,Xt);l.addEventListener(Jt,f),l.dispatchEvent(e),e.defaultPrevented||rn(t??document.body,{select:!0}),l.removeEventListener(Jt,f),on.remove(h)},0)}}var e},[l,d,f,h]);const g=c.useCallback(e=>{if(!r&&!o)return;if(h.paused)return;const t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,n=document.activeElement;if(t&&n){const t=e.currentTarget,[o,a]=function(e){const t=en(e),n=tn(t,e),r=tn(t.reverse(),e);return[n,r]}(t);o&&a?e.shiftKey||n!==a?e.shiftKey&&n===o&&(e.preventDefault(),r&&rn(a,{select:!0})):(e.preventDefault(),r&&rn(o,{select:!0})):n===t&&e.preventDefault()}},[r,o,h.paused]);return t.jsx(zt.div,{tabIndex:-1,...s,ref:m,onKeyDown:g})});function en(e){const t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{const t="INPUT"===e.tagName&&"hidden"===e.type;return e.disabled||e.hidden||t?NodeFilter.FILTER_SKIP:e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});for(;n.nextNode();)t.push(n.currentNode);return t}function tn(e,t){for(const n of e)if(!nn(n,{upTo:t}))return n}function nn(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e;){if(void 0!==t&&e===t)return!1;if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}function rn(e,{select:t=!1}={}){if(e&&e.focus){const n=document.activeElement;e.focus({preventScroll:!0}),e!==n&&function(e){return e instanceof HTMLInputElement&&"select"in e}(e)&&t&&e.select()}}Qt.displayName="FocusScope";var on=function(){let e=[];return{add(t){const n=e[0];t!==n&&n?.pause(),e=an(e,t),e.unshift(t)},remove(t){e=an(e,t),e[0]?.resume()}}}();function an(e,t){const n=[...e],r=n.indexOf(t);return-1!==r&&n.splice(r,1),n}var sn=c.forwardRef((e,r)=>{const{container:o,...a}=e,[i,s]=c.useState(!1);Tt(()=>s(!0),[]);const l=o||i&&globalThis?.document?.body;return l?n.createPortal(t.jsx(zt.div,{...a,ref:r}),l):null});sn.displayName="Portal";var ln=e=>{const{present:t,children:n}=e,r=function(e){const[t,n]=c.useState(),r=c.useRef(null),o=c.useRef(e),a=c.useRef("none"),i=e?"mounted":"unmounted",[s,l]=function(e,t){return c.useReducer((e,n)=>t[e][n]??e,e)}(i,{mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}});return c.useEffect(()=>{const e=cn(r.current);a.current="mounted"===s?e:"none"},[s]),Tt(()=>{const t=r.current,n=o.current;if(n!==e){const r=a.current,i=cn(t);if(e)l("MOUNT");else if("none"===i||"none"===t?.display)l("UNMOUNT");else{l(n&&r!==i?"ANIMATION_OUT":"UNMOUNT")}o.current=e}},[e,l]),Tt(()=>{if(t){let e;const n=t.ownerDocument.defaultView??window,i=a=>{const i=cn(r.current).includes(CSS.escape(a.animationName));if(a.target===t&&i&&(l("ANIMATION_END"),!o.current)){const r=t.style.animationFillMode;t.style.animationFillMode="forwards",e=n.setTimeout(()=>{"forwards"===t.style.animationFillMode&&(t.style.animationFillMode=r)})}},s=e=>{e.target===t&&(a.current=cn(r.current))};return t.addEventListener("animationstart",s),t.addEventListener("animationcancel",i),t.addEventListener("animationend",i),()=>{n.clearTimeout(e),t.removeEventListener("animationstart",s),t.removeEventListener("animationcancel",i),t.removeEventListener("animationend",i)}}l("ANIMATION_END")},[t,l]),{isPresent:["mounted","unmountSuspended"].includes(s),ref:c.useCallback(e=>{r.current=e?getComputedStyle(e):null,n(e)},[])}}(t),o="function"==typeof n?n({present:r.isPresent}):c.Children.only(n),a=it(r.ref,function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(o));return"function"==typeof n||r.isPresent?c.cloneElement(o,{ref:a}):null};function cn(e){return e?.animationName||"none"}ln.displayName="Presence";var un=0;function dn(){c.useEffect(()=>{const e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??fn()),document.body.insertAdjacentElement("beforeend",e[1]??fn()),un++,()=>{1===un&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),un--}},[])}function fn(){const e=document.createElement("span");return e.setAttribute("data-radix-focus-guard",""),e.tabIndex=0,e.style.outline="none",e.style.opacity="0",e.style.position="fixed",e.style.pointerEvents="none",e}var pn="right-scroll-bar-position",mn="width-before-scroll-bar";function hn(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var gn="undefined"!=typeof window?c.useLayoutEffect:c.useEffect,bn=new WeakMap;function vn(t,n){var r,o,a,i=(r=n||null,o=function(e){return t.forEach(function(t){return hn(t,e)})},(a=e.useState(function(){return{value:r,callback:o,facade:{get current(){return a.value},set current(e){var t=a.value;t!==e&&(a.value=e,a.callback(e,t))}}}})[0]).callback=o,a.facade);return gn(function(){var e=bn.get(i);if(e){var n=new Set(e),r=new Set(t),o=i.current;n.forEach(function(e){r.has(e)||hn(e,null)}),r.forEach(function(e){n.has(e)||hn(e,o)})}bn.set(i,t)},[t]),i}function yn(e){return e}var wn=function(e){var t=e.sideCar,n=_(e,["sideCar"]);if(!t)throw new Error("Sidecar: please provide `sideCar` property to import the right car");var r=t.read();if(!r)throw new Error("Sidecar medium not found");return c.createElement(r,E({},n))};wn.isSideCarExport=!0;var xn=function(e){void 0===e&&(e={});var t=function(e,t){void 0===t&&(t=yn);var n=[],r=!1;return{read:function(){if(r)throw new Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return n.length?n[n.length-1]:e},useMedium:function(e){var o=t(e,r);return n.push(o),function(){n=n.filter(function(e){return e!==o})}},assignSyncMedium:function(e){for(r=!0;n.length;){var t=n;n=[],t.forEach(e)}n={push:function(t){return e(t)},filter:function(){return n}}},assignMedium:function(e){r=!0;var t=[];if(n.length){var o=n;n=[],o.forEach(e),t=n}var a=function(){var n=t;t=[],n.forEach(e)},i=function(){return Promise.resolve().then(a)};i(),n={push:function(e){t.push(e),i()},filter:function(e){return t=t.filter(e),n}}}}}(null);return t.options=E({async:!0,ssr:!1},e),t}(),En=function(){},_n=c.forwardRef(function(e,t){var n=c.useRef(null),r=c.useState({onScrollCapture:En,onWheelCapture:En,onTouchMoveCapture:En}),o=r[0],a=r[1],i=e.forwardProps,s=e.children,l=e.className,u=e.removeScrollBar,d=e.enabled,f=e.shards,p=e.sideCar,m=e.noRelative,h=e.noIsolation,g=e.inert,b=e.allowPinchZoom,v=e.as,y=void 0===v?"div":v,w=e.gapMode,x=_(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),k=p,C=vn([n,t]),N=E(E({},x),o);return c.createElement(c.Fragment,null,d&&c.createElement(k,{sideCar:xn,removeScrollBar:u,shards:f,noRelative:m,noIsolation:h,inert:g,setCallbacks:a,allowPinchZoom:!!b,lockRef:n,gapMode:w}),i?c.cloneElement(c.Children.only(s),E(E({},N),{ref:C})):c.createElement(y,E({},N,{className:l,ref:C}),s))});_n.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},_n.classNames={fullWidth:mn,zeroRight:pn};function kn(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=function(){if("undefined"!=typeof __webpack_nonce__)return __webpack_nonce__}();return t&&e.setAttribute("nonce",t),e}var Cn=function(){var e=0,t=null;return{add:function(n){var r,o;0==e&&(t=kn())&&(o=n,(r=t).styleSheet?r.styleSheet.cssText=o:r.appendChild(document.createTextNode(o)),function(e){(document.head||document.getElementsByTagName("head")[0]).appendChild(e)}(t)),e++},remove:function(){! --e&&t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Nn=function(){var e,t=(e=Cn(),function(t,n){c.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])});return function(e){var n=e.styles,r=e.dynamic;return t(n,r),null}},Dn={left:0,top:0,right:0,gap:0},Sn=function(e){return parseInt(e||"",10)||0},An=function(e){if(void 0===e&&(e="margin"),"undefined"==typeof window)return Dn;var t=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],r=t["padding"===e?"paddingTop":"marginTop"],o=t["padding"===e?"paddingRight":"marginRight"];return[Sn(n),Sn(r),Sn(o)]}(e),n=document.documentElement.clientWidth,r=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,r-n+t[2]-t[0])}},Tn=Nn(),Rn="data-scroll-locked",On=function(e,t,n,r){var o=e.left,a=e.top,i=e.right,s=e.gap;return void 0===n&&(n="margin"),"\n .".concat("with-scroll-bars-hidden"," {\n overflow: hidden ").concat(r,";\n padding-right: ").concat(s,"px ").concat(r,";\n }\n body[").concat(Rn,"] {\n overflow: hidden ").concat(r,";\n overscroll-behavior: contain;\n ").concat([t&&"position: relative ".concat(r,";"),"margin"===n&&"\n padding-left: ".concat(o,"px;\n padding-top: ").concat(a,"px;\n padding-right: ").concat(i,"px;\n margin-left:0;\n margin-top:0;\n margin-right: ").concat(s,"px ").concat(r,";\n "),"padding"===n&&"padding-right: ".concat(s,"px ").concat(r,";")].filter(Boolean).join(""),"\n }\n \n .").concat(pn," {\n right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(mn," {\n margin-right: ").concat(s,"px ").concat(r,";\n }\n \n .").concat(pn," .").concat(pn," {\n right: 0 ").concat(r,";\n }\n \n .").concat(mn," .").concat(mn," {\n margin-right: 0 ").concat(r,";\n }\n \n body[").concat(Rn,"] {\n ").concat("--removed-body-scroll-bar-size",": ").concat(s,"px;\n }\n")},Fn=function(){var e=parseInt(document.body.getAttribute(Rn)||"0",10);return isFinite(e)?e:0},Mn=function(e){var t=e.noRelative,n=e.noImportant,r=e.gapMode,o=void 0===r?"margin":r;c.useEffect(function(){return document.body.setAttribute(Rn,(Fn()+1).toString()),function(){var e=Fn()-1;e<=0?document.body.removeAttribute(Rn):document.body.setAttribute(Rn,e.toString())}},[]);var a=c.useMemo(function(){return An(o)},[o]);return c.createElement(Tn,{styles:On(a,!t,o,n?"":"!important")})},jn=!1;if("undefined"!=typeof window)try{var Ln=Object.defineProperty({},"passive",{get:function(){return jn=!0,!0}});window.addEventListener("test",Ln,Ln),window.removeEventListener("test",Ln,Ln)}catch(e){jn=!1}var In=!!jn&&{passive:!1},Pn=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&!function(e){return"TEXTAREA"===e.tagName}(e)&&"visible"===n[t])},zn=function(e,t){var n=t.ownerDocument,r=t;do{if("undefined"!=typeof ShadowRoot&&r instanceof ShadowRoot&&(r=r.host),Bn(e,r)){var o=qn(e,r);if(o[1]>o[2])return!0}r=r.parentNode}while(r&&r!==n.body);return!1},Bn=function(e,t){return"v"===e?function(e){return Pn(e,"overflowY")}(t):function(e){return Pn(e,"overflowX")}(t)},qn=function(e,t){return"v"===e?function(e){return[e.scrollTop,e.scrollHeight,e.clientHeight]}(t):function(e){return[e.scrollLeft,e.scrollWidth,e.clientWidth]}(t)},Un=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},Hn=function(e){return[e.deltaX,e.deltaY]},Wn=function(e){return e&&"current"in e?e.current:e},Vn=function(e){return"\n .block-interactivity-".concat(e," {pointer-events: none;}\n .allow-interactivity-").concat(e," {pointer-events: all;}\n")},$n=0,Gn=[];function Kn(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}var Zn,Yn=(Zn=function(e){var t=c.useRef([]),n=c.useRef([0,0]),r=c.useRef(),o=c.useState($n++)[0],a=c.useState(Nn)[0],i=c.useRef(e);c.useEffect(function(){i.current=e},[e]),c.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(o));var t=function(e,t,n){if(n||2===arguments.length)for(var r,o=0,a=t.length;o<a;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}([e.lockRef.current],(e.shards||[]).map(Wn),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(o))}),function(){document.body.classList.remove("block-interactivity-".concat(o)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(o))})}}},[e.inert,e.lockRef.current,e.shards]);var s=c.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!i.current.allowPinchZoom;var o,a=Un(e),s=n.current,l="deltaX"in e?e.deltaX:s[0]-a[0],c="deltaY"in e?e.deltaY:s[1]-a[1],u=e.target,d=Math.abs(l)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===d&&"range"===u.type)return!1;var f=window.getSelection(),p=f&&f.anchorNode;if(p&&(p===u||p.contains(u)))return!1;var m=zn(d,u);if(!m)return!0;if(m?o=d:(o="v"===d?"h":"v",m=zn(d,u)),!m)return!1;if(!r.current&&"changedTouches"in e&&(l||c)&&(r.current=o),!o)return!0;var h=r.current||o;return function(e,t,n,r,o){var a=function(e,t){return"h"===e&&"rtl"===t?-1:1}(e,window.getComputedStyle(t).direction),i=a*r,s=n.target,l=t.contains(s),c=!1,u=i>0,d=0,f=0;do{if(!s)break;var p=qn(e,s),m=p[0],h=p[1]-p[2]-a*m;(m||h)&&Bn(e,s)&&(d+=h,f+=m);var g=s.parentNode;s=g&&g.nodeType===Node.DOCUMENT_FRAGMENT_NODE?g.host:g}while(!l&&s!==document.body||l&&(t.contains(s)||t===s));return(u&&(o&&Math.abs(d)<1||!o&&i>d)||!u&&(o&&Math.abs(f)<1||!o&&-i>f))&&(c=!0),c}(h,t,e,"h"===h?l:c,!0)},[]),l=c.useCallback(function(e){var n=e;if(Gn.length&&Gn[Gn.length-1]===a){var r="deltaY"in n?Hn(n):Un(n),o=t.current.filter(function(e){return e.name===n.type&&(e.target===n.target||n.target===e.shadowParent)&&(t=e.delta,o=r,t[0]===o[0]&&t[1]===o[1]);var t,o})[0];if(o&&o.should)n.cancelable&&n.preventDefault();else if(!o){var l=(i.current.shards||[]).map(Wn).filter(Boolean).filter(function(e){return e.contains(n.target)});(l.length>0?s(n,l[0]):!i.current.noIsolation)&&n.cancelable&&n.preventDefault()}}},[]),u=c.useCallback(function(e,n,r,o){var a={name:e,delta:n,target:r,should:o,shadowParent:Kn(r)};t.current.push(a),setTimeout(function(){t.current=t.current.filter(function(e){return e!==a})},1)},[]),d=c.useCallback(function(e){n.current=Un(e),r.current=void 0},[]),f=c.useCallback(function(t){u(t.type,Hn(t),t.target,s(t,e.lockRef.current))},[]),p=c.useCallback(function(t){u(t.type,Un(t),t.target,s(t,e.lockRef.current))},[]);c.useEffect(function(){return Gn.push(a),e.setCallbacks({onScrollCapture:f,onWheelCapture:f,onTouchMoveCapture:p}),document.addEventListener("wheel",l,In),document.addEventListener("touchmove",l,In),document.addEventListener("touchstart",d,In),function(){Gn=Gn.filter(function(e){return e!==a}),document.removeEventListener("wheel",l,In),document.removeEventListener("touchmove",l,In),document.removeEventListener("touchstart",d,In)}},[]);var m=e.removeScrollBar,h=e.inert;return c.createElement(c.Fragment,null,h?c.createElement(a,{styles:Vn(o)}):null,m?c.createElement(Mn,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},xn.useMedium(Zn),wn),Jn=c.forwardRef(function(e,t){return c.createElement(_n,E({},e,{ref:t,sideCar:Yn}))});Jn.classNames=_n.classNames;var Xn=Jn,Qn=new WeakMap,er=new WeakMap,tr={},nr=0,rr=function(e){return e&&(e.host||rr(e.parentNode))},or=function(e,t,n,r){var o=function(e,t){return t.map(function(t){if(e.contains(t))return t;var n=rr(t);return n&&e.contains(n)?n:null}).filter(function(e){return Boolean(e)})}(t,Array.isArray(e)?e:[e]);tr[n]||(tr[n]=new WeakMap);var a=tr[n],i=[],s=new Set,l=new Set(o),c=function(e){e&&!s.has(e)&&(s.add(e),c(e.parentNode))};o.forEach(c);var u=function(e){e&&!l.has(e)&&Array.prototype.forEach.call(e.children,function(e){if(s.has(e))u(e);else try{var t=e.getAttribute(r),o=null!==t&&"false"!==t,l=(Qn.get(e)||0)+1,c=(a.get(e)||0)+1;Qn.set(e,l),a.set(e,c),i.push(e),1===l&&o&&er.set(e,!0),1===c&&e.setAttribute(n,"true"),o||e.setAttribute(r,"true")}catch(e){}})};return u(t),s.clear(),nr++,function(){i.forEach(function(e){var t=Qn.get(e)-1,o=a.get(e)-1;Qn.set(e,t),a.set(e,o),t||(er.has(e)||e.removeAttribute(r),er.delete(e)),o||e.removeAttribute(n)}),--nr||(Qn=new WeakMap,Qn=new WeakMap,er=new WeakMap,tr={})}},ar=function(e,t,n){void 0===n&&(n="data-aria-hidden");var r=Array.from(Array.isArray(e)?e:[e]),o=t||function(e){return"undefined"==typeof document?null:(Array.isArray(e)?e[0]:e).ownerDocument.body}(e);return o?(r.push.apply(r,Array.from(o.querySelectorAll("[aria-live], script"))),or(r,o,n,"aria-hidden")):function(){return null}};function ir(e){const t=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?at(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var sr=Symbol("radix.slottable");function lr(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===sr}var cr="Dialog",[ur,dr]=St(cr),[fr,pr]=ur(cr),mr=e=>{const{__scopeDialog:n,children:r,open:o,defaultOpen:a,onOpenChange:i,modal:s=!0}=e,l=c.useRef(null),u=c.useRef(null),[d,f]=jt({prop:o,defaultProp:a??!1,onChange:i,caller:cr});return t.jsx(fr,{scope:n,triggerRef:l,contentRef:u,contentId:Ft(),titleId:Ft(),descriptionId:Ft(),open:d,onOpenChange:f,onOpenToggle:c.useCallback(()=>f(e=>!e),[f]),modal:s,children:r})};mr.displayName=cr;var hr="DialogTrigger",gr=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=pr(hr,r),i=it(n,a.triggerRef);return t.jsx(zt.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Lr(a.open),...o,ref:i,onClick:Dt(e.onClick,a.onOpenToggle)})});gr.displayName=hr;var br="DialogPortal",[vr,yr]=ur(br,{forceMount:void 0}),wr=e=>{const{__scopeDialog:n,forceMount:r,children:o,container:a}=e,i=pr(br,n);return t.jsx(vr,{scope:n,forceMount:r,children:c.Children.map(o,e=>t.jsx(ln,{present:r||i.open,children:t.jsx(sn,{asChild:!0,container:a,children:e})}))})};wr.displayName=br;var xr="DialogOverlay",Er=c.forwardRef((e,n)=>{const r=yr(xr,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=pr(xr,e.__scopeDialog);return i.modal?t.jsx(ln,{present:o||i.open,children:t.jsx(kr,{...a,ref:n})}):null});Er.displayName=xr;var _r=function(e){const n=ir(e),r=c.forwardRef((e,r)=>{const{children:o,...a}=e,i=c.Children.toArray(o),s=i.find(lr);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}("DialogOverlay.RemoveScroll"),kr=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=pr(xr,r);return t.jsx(Xn,{as:_r,allowPinchZoom:!0,shards:[a.contentRef],children:t.jsx(zt.div,{"data-state":Lr(a.open),...o,ref:n,style:{pointerEvents:"auto",...o.style}})})}),Cr="DialogContent",Nr=c.forwardRef((e,n)=>{const r=yr(Cr,e.__scopeDialog),{forceMount:o=r.forceMount,...a}=e,i=pr(Cr,e.__scopeDialog);return t.jsx(ln,{present:o||i.open,children:i.modal?t.jsx(Dr,{...a,ref:n}):t.jsx(Sr,{...a,ref:n})})});Nr.displayName=Cr;var Dr=c.forwardRef((e,n)=>{const r=pr(Cr,e.__scopeDialog),o=c.useRef(null),a=it(n,r.contentRef,o);return c.useEffect(()=>{const e=o.current;if(e)return ar(e)},[]),t.jsx(Ar,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:Dt(e.onCloseAutoFocus,e=>{e.preventDefault(),r.triggerRef.current?.focus()}),onPointerDownOutside:Dt(e.onPointerDownOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:Dt(e.onFocusOutside,e=>e.preventDefault())})}),Sr=c.forwardRef((e,n)=>{const r=pr(Cr,e.__scopeDialog),o=c.useRef(!1),a=c.useRef(!1);return t.jsx(Ar,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{e.onCloseAutoFocus?.(t),t.defaultPrevented||(o.current||r.triggerRef.current?.focus(),t.preventDefault()),o.current=!1,a.current=!1},onInteractOutside:t=>{e.onInteractOutside?.(t),t.defaultPrevented||(o.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));const n=t.target,i=r.triggerRef.current?.contains(n);i&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),Ar=c.forwardRef((e,n)=>{const{__scopeDialog:r,trapFocus:o,onOpenAutoFocus:a,onCloseAutoFocus:i,...s}=e,l=pr(Cr,r),u=c.useRef(null),d=it(n,u);return dn(),t.jsxs(t.Fragment,{children:[t.jsx(Qt,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:a,onUnmountAutoFocus:i,children:t.jsx(Gt,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Lr(l.open),...s,ref:d,onDismiss:()=>l.onOpenChange(!1)})}),t.jsxs(t.Fragment,{children:[t.jsx(Br,{titleId:l.titleId}),t.jsx(qr,{contentRef:u,descriptionId:l.descriptionId})]})]})}),Tr="DialogTitle",Rr=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=pr(Tr,r);return t.jsx(zt.h2,{id:a.titleId,...o,ref:n})});Rr.displayName=Tr;var Or="DialogDescription",Fr=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=pr(Or,r);return t.jsx(zt.p,{id:a.descriptionId,...o,ref:n})});Fr.displayName=Or;var Mr="DialogClose",jr=c.forwardRef((e,n)=>{const{__scopeDialog:r,...o}=e,a=pr(Mr,r);return t.jsx(zt.button,{type:"button",...o,ref:n,onClick:Dt(e.onClick,()=>a.onOpenChange(!1))})});function Lr(e){return e?"open":"closed"}jr.displayName=Mr;var Ir="DialogTitleWarning",[Pr,zr]=function(e,n){const r=c.createContext(n),o=e=>{const{children:n,...o}=e,a=c.useMemo(()=>o,Object.values(o));return t.jsx(r.Provider,{value:a,children:n})};return o.displayName=e+"Provider",[o,function(t){const o=c.useContext(r);if(o)return o;if(void 0!==n)return n;throw new Error(`\`${t}\` must be used within \`${e}\``)}]}(Ir,{contentName:Cr,titleName:Tr,docsSlug:"dialog"}),Br=({titleId:e})=>{const t=zr(Ir),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.\n\nIf you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.\n\nFor more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return c.useEffect(()=>{if(e){document.getElementById(e)}},[n,e]),null},qr=({contentRef:e,descriptionId:t})=>{const n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${zr("DialogDescriptionWarning").contentName}}.`;return c.useEffect(()=>{const n=e.current?.getAttribute("aria-describedby");if(t&&n){document.getElementById(t)}},[n,e,t]),null},Ur=mr,Hr=gr,Wr=wr,Vr=Er,$r=Nr,Gr=Rr,Kr=Fr,Zr=jr,Yr=Ur,Jr=Wr,Xr=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Vr,Object.assign({className:nt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},r,{ref:t}))});Xr.displayName=Vr.displayName;var Qr=bt("fixed z-50 gap-4 bg-background p-6 shadow-lg transition ease-in-out data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:duration-300 data-[state=open]:duration-500",{variants:{side:{top:"inset-x-0 top-0 border-b data-[state=closed]:slide-out-to-top data-[state=open]:slide-in-from-top",bottom:"inset-x-0 bottom-0 border-t data-[state=closed]:slide-out-to-bottom data-[state=open]:slide-in-from-bottom",left:"inset-y-0 left-0 h-full w-3/4 border-r data-[state=closed]:slide-out-to-left data-[state=open]:slide-in-from-left sm:max-w-sm",right:"inset-y-0 right-0 h-full w-3/4 border-l data-[state=closed]:slide-out-to-right data-[state=open]:slide-in-from-right sm:max-w-sm"}},defaultVariants:{side:"right"}}),eo=c.forwardRef(function(e,t){var n=e.side,r=void 0===n?"right":n,o=e.className,a=e.children,i=_(e,["side","className","children"]);return c.createElement(Jr,null,c.createElement(Xr,null),c.createElement($r,Object.assign({ref:t,className:nt(Qr({side:r}),o)},i),a,c.createElement(Zr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-secondary"},c.createElement(ie,{className:"h-4 w-4"}),c.createElement("span",{className:"sr-only"},"Close"))))});eo.displayName=$r.displayName;var to=function(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:nt("flex flex-col space-y-2 text-center sm:text-left",t)},n))};to.displayName="SheetHeader";var no=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Gr,Object.assign({ref:t,className:nt("text-lg font-semibold text-foreground",n)},r))});no.displayName=Gr.displayName;var ro=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Kr,Object.assign({ref:t,className:nt("text-sm text-muted-foreground",n)},r))});ro.displayName=Kr.displayName;const oo=["top","right","bottom","left"],ao=Math.min,io=Math.max,so=Math.round,lo=Math.floor,co=e=>({x:e,y:e}),uo={left:"right",right:"left",bottom:"top",top:"bottom"};function fo(e,t,n){return io(e,ao(t,n))}function po(e,t){return"function"==typeof e?e(t):e}function mo(e){return e.split("-")[0]}function ho(e){return e.split("-")[1]}function go(e){return"x"===e?"y":"x"}function bo(e){return"y"===e?"height":"width"}function vo(e){const t=e[0];return"t"===t||"b"===t?"y":"x"}function yo(e){return go(vo(e))}function wo(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}const xo=["left","right"],Eo=["right","left"],_o=["top","bottom"],ko=["bottom","top"];function Co(e,t,n,r){const o=ho(e);let a=function(e,t,n){switch(e){case"top":case"bottom":return n?t?Eo:xo:t?xo:Eo;case"left":case"right":return t?_o:ko;default:return[]}}(mo(e),"start"===n,r);return o&&(a=a.map(e=>e+"-"+o),t&&(a=a.concat(a.map(wo)))),a}function No(e){const t=mo(e);return uo[t]+e.slice(t.length)}function Do(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function So(e){const{x:t,y:n,width:r,height:o}=e;return{width:r,height:o,top:n,left:t,right:t+r,bottom:n+o,x:t,y:n}}function Ao(e,t,n){let{reference:r,floating:o}=e;const a=vo(t),i=yo(t),s=bo(i),l=mo(t),c="y"===a,u=r.x+r.width/2-o.width/2,d=r.y+r.height/2-o.height/2,f=r[s]/2-o[s]/2;let p;switch(l){case"top":p={x:u,y:r.y-o.height};break;case"bottom":p={x:u,y:r.y+r.height};break;case"right":p={x:r.x+r.width,y:d};break;case"left":p={x:r.x-o.width,y:d};break;default:p={x:r.x,y:r.y}}switch(ho(t)){case"start":p[i]-=f*(n&&c?-1:1);break;case"end":p[i]+=f*(n&&c?-1:1)}return p}async function To(e,t){var n;void 0===t&&(t={});const{x:r,y:o,platform:a,rects:i,elements:s,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:f=!1,padding:p=0}=po(t,e),m=Do(p),h=s[f?"floating"===d?"reference":"floating":d],g=So(await a.getClippingRect({element:null==(n=await(null==a.isElement?void 0:a.isElement(h)))||n?h:h.contextElement||await(null==a.getDocumentElement?void 0:a.getDocumentElement(s.floating)),boundary:c,rootBoundary:u,strategy:l})),b="floating"===d?{x:r,y:o,width:i.floating.width,height:i.floating.height}:i.reference,v=await(null==a.getOffsetParent?void 0:a.getOffsetParent(s.floating)),y=await(null==a.isElement?void 0:a.isElement(v))&&await(null==a.getScale?void 0:a.getScale(v))||{x:1,y:1},w=So(a.convertOffsetParentRelativeRectToViewportRelativeRect?await a.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:v,strategy:l}):b);return{top:(g.top-w.top+m.top)/y.y,bottom:(w.bottom-g.bottom+m.bottom)/y.y,left:(g.left-w.left+m.left)/y.x,right:(w.right-g.right+m.right)/y.x}}function Ro(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Oo(e){return oo.some(t=>e[t]>=0)}const Fo=new Set(["left","top"]);function Mo(){return"undefined"!=typeof window}function jo(e){return Po(e)?(e.nodeName||"").toLowerCase():"#document"}function Lo(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function Io(e){var t;return null==(t=(Po(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function Po(e){return!!Mo()&&(e instanceof Node||e instanceof Lo(e).Node)}function zo(e){return!!Mo()&&(e instanceof Element||e instanceof Lo(e).Element)}function Bo(e){return!!Mo()&&(e instanceof HTMLElement||e instanceof Lo(e).HTMLElement)}function qo(e){return!(!Mo()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof Lo(e).ShadowRoot)}function Uo(e){const{overflow:t,overflowX:n,overflowY:r,display:o}=Xo(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&"inline"!==o&&"contents"!==o}function Ho(e){return/^(table|td|th)$/.test(jo(e))}function Wo(e){try{if(e.matches(":popover-open"))return!0}catch(e){}try{return e.matches(":modal")}catch(e){return!1}}const Vo=/transform|translate|scale|rotate|perspective|filter/,$o=/paint|layout|strict|content/,Go=e=>!!e&&"none"!==e;let Ko;function Zo(e){const t=zo(e)?Xo(e):e;return Go(t.transform)||Go(t.translate)||Go(t.scale)||Go(t.rotate)||Go(t.perspective)||!Yo()&&(Go(t.backdropFilter)||Go(t.filter))||Vo.test(t.willChange||"")||$o.test(t.contain||"")}function Yo(){return null==Ko&&(Ko="undefined"!=typeof CSS&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ko}function Jo(e){return/^(html|body|#document)$/.test(jo(e))}function Xo(e){return Lo(e).getComputedStyle(e)}function Qo(e){return zo(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ea(e){if("html"===jo(e))return e;const t=e.assignedSlot||e.parentNode||qo(e)&&e.host||Io(e);return qo(t)?t.host:t}function ta(e){const t=ea(e);return Jo(t)?e.ownerDocument?e.ownerDocument.body:e.body:Bo(t)&&Uo(t)?t:ta(t)}function na(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const o=ta(e),a=o===(null==(r=e.ownerDocument)?void 0:r.body),i=Lo(o);if(a){const e=ra(i);return t.concat(i,i.visualViewport||[],Uo(o)?o:[],e&&n?na(e):[])}return t.concat(o,na(o,[],n))}function ra(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function oa(e){const t=Xo(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const o=Bo(e),a=o?e.offsetWidth:n,i=o?e.offsetHeight:r,s=so(n)!==a||so(r)!==i;return s&&(n=a,r=i),{width:n,height:r,$:s}}function aa(e){return zo(e)?e:e.contextElement}function ia(e){const t=aa(e);if(!Bo(t))return co(1);const n=t.getBoundingClientRect(),{width:r,height:o,$:a}=oa(t);let i=(a?so(n.width):n.width)/r,s=(a?so(n.height):n.height)/o;return i&&Number.isFinite(i)||(i=1),s&&Number.isFinite(s)||(s=1),{x:i,y:s}}const sa=co(0);function la(e){const t=Lo(e);return Yo()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:sa}function ca(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const o=e.getBoundingClientRect(),a=aa(e);let i=co(1);t&&(r?zo(r)&&(i=ia(r)):i=ia(e));const s=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==Lo(e))&&t}(a,n,r)?la(a):co(0);let l=(o.left+s.x)/i.x,c=(o.top+s.y)/i.y,u=o.width/i.x,d=o.height/i.y;if(a){const e=Lo(a),t=r&&zo(r)?Lo(r):r;let n=e,o=ra(n);for(;o&&r&&t!==n;){const e=ia(o),t=o.getBoundingClientRect(),r=Xo(o),a=t.left+(o.clientLeft+parseFloat(r.paddingLeft))*e.x,i=t.top+(o.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,c*=e.y,u*=e.x,d*=e.y,l+=a,c+=i,n=Lo(o),o=ra(n)}}return So({width:u,height:d,x:l,y:c})}function ua(e,t){const n=Qo(e).scrollLeft;return t?t.left+n:ca(Io(e)).left+n}function da(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ua(e,n),y:n.top+t.scrollTop}}function fa(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=Lo(e),r=Io(e),o=n.visualViewport;let a=r.clientWidth,i=r.clientHeight,s=0,l=0;if(o){a=o.width,i=o.height;const e=Yo();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}const c=ua(r);if(c<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),o="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(r.clientWidth-t.clientWidth-o);i<=25&&(a-=i)}else c<=25&&(a+=c);return{width:a,height:i,x:s,y:l}}(e,n);else if("document"===t)r=function(e){const t=Io(e),n=Qo(e),r=e.ownerDocument.body,o=io(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),a=io(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let i=-n.scrollLeft+ua(e);const s=-n.scrollTop;return"rtl"===Xo(r).direction&&(i+=io(t.clientWidth,r.clientWidth)-o),{width:o,height:a,x:i,y:s}}(Io(e));else if(zo(t))r=function(e,t){const n=ca(e,!0,"fixed"===t),r=n.top+e.clientTop,o=n.left+e.clientLeft,a=Bo(e)?ia(e):co(1);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:o*a.x,y:r*a.y}}(t,n);else{const n=la(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return So(r)}function pa(e,t){const n=ea(e);return!(n===t||!zo(n)||Jo(n))&&("fixed"===Xo(n).position||pa(n,t))}function ma(e,t,n){const r=Bo(t),o=Io(t),a="fixed"===n,i=ca(e,!0,a,t);let s={scrollLeft:0,scrollTop:0};const l=co(0);function c(){l.x=ua(o)}if(r||!r&&!a)if(("body"!==jo(t)||Uo(o))&&(s=Qo(t)),r){const e=ca(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&c();a&&!r&&o&&c();const u=!o||r||a?co(0):da(o,s);return{x:i.left+s.scrollLeft-l.x-u.x,y:i.top+s.scrollTop-l.y-u.y,width:i.width,height:i.height}}function ha(e){return"static"===Xo(e).position}function ga(e,t){if(!Bo(e)||"fixed"===Xo(e).position)return null;if(t)return t(e);let n=e.offsetParent;return Io(e)===n&&(n=n.ownerDocument.body),n}function ba(e,t){const n=Lo(e);if(Wo(e))return n;if(!Bo(e)){let t=ea(e);for(;t&&!Jo(t);){if(zo(t)&&!ha(t))return t;t=ea(t)}return n}let r=ga(e,t);for(;r&&Ho(r)&&ha(r);)r=ga(r,t);return r&&Jo(r)&&ha(r)&&!Zo(r)?n:r||function(e){let t=ea(e);for(;Bo(t)&&!Jo(t);){if(Zo(t))return t;if(Wo(t))return null;t=ea(t)}return null}(e)||n}const va={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:o}=e;const a="fixed"===o,i=Io(r),s=!!t&&Wo(t.floating);if(r===i||s&&a)return n;let l={scrollLeft:0,scrollTop:0},c=co(1);const u=co(0),d=Bo(r);if((d||!d&&!a)&&(("body"!==jo(r)||Uo(i))&&(l=Qo(r)),d)){const e=ca(r);c=ia(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const f=!i||d||a?co(0):da(i,l);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:n.y*c.y-l.scrollTop*c.y+u.y+f.y}},getDocumentElement:Io,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:o}=e;const a=[..."clippingAncestors"===n?Wo(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=na(e,[],!1).filter(e=>zo(e)&&"body"!==jo(e)),o=null;const a="fixed"===Xo(e).position;let i=a?ea(e):e;for(;zo(i)&&!Jo(i);){const t=Xo(i),n=Zo(i);n||"fixed"!==t.position||(o=null),(a?!n&&!o:!n&&"static"===t.position&&o&&("absolute"===o.position||"fixed"===o.position)||Uo(i)&&!n&&pa(e,i))?r=r.filter(e=>e!==i):o=t,i=ea(i)}return t.set(e,r),r}(t,this._c):[].concat(n),r],i=fa(t,a[0],o);let s=i.top,l=i.right,c=i.bottom,u=i.left;for(let e=1;e<a.length;e++){const n=fa(t,a[e],o);s=io(n.top,s),l=ao(n.right,l),c=ao(n.bottom,c),u=io(n.left,u)}return{width:l-u,height:c-s,x:u,y:s}},getOffsetParent:ba,getElementRects:async function(e){const t=this.getOffsetParent||ba,n=this.getDimensions,r=await n(e.floating);return{reference:ma(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=oa(e);return{width:t,height:n}},getScale:ia,isElement:zo,isRTL:function(e){return"rtl"===Xo(e).direction}};function ya(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function wa(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:o=!0,ancestorResize:a=!0,elementResize:i="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=r,c=aa(e),u=o||a?[...c?na(c):[],...t?na(t):[]]:[];u.forEach(e=>{o&&e.addEventListener("scroll",n,{passive:!0}),a&&e.addEventListener("resize",n)});const d=c&&s?function(e,t){let n,r=null;const o=Io(e);function a(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function i(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),a();const c=e.getBoundingClientRect(),{left:u,top:d,width:f,height:p}=c;if(s||t(),!f||!p)return;const m={rootMargin:-lo(d)+"px "+-lo(o.clientWidth-(u+f))+"px "+-lo(o.clientHeight-(d+p))+"px "+-lo(u)+"px",threshold:io(0,ao(1,l))||1};let h=!0;function g(t){const r=t[0].intersectionRatio;if(r!==l){if(!h)return i();r?i(!1,r):n=setTimeout(()=>{i(!1,1e-7)},1e3)}1!==r||ya(c,e.getBoundingClientRect())||i(),h=!1}try{r=new IntersectionObserver(g,{...m,root:o.ownerDocument})}catch(e){r=new IntersectionObserver(g,m)}r.observe(e)}(!0),a}(c,n):null;let f,p=-1,m=null;i&&(m=new ResizeObserver(e=>{let[r]=e;r&&r.target===c&&m&&t&&(m.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!l&&m.observe(c),t&&m.observe(t));let h=l?ca(e):null;return l&&function t(){const r=ca(e);h&&!ya(h,r)&&n();h=r,f=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{o&&e.removeEventListener("scroll",n),a&&e.removeEventListener("resize",n)}),null==d||d(),null==(e=m)||e.disconnect(),m=null,l&&cancelAnimationFrame(f)}}const xa=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,r;const{x:o,y:a,placement:i,middlewareData:s}=t,l=await async function(e,t){const{placement:n,platform:r,elements:o}=e,a=await(null==r.isRTL?void 0:r.isRTL(o.floating)),i=mo(n),s=ho(n),l="y"===vo(n),c=Fo.has(i)?-1:1,u=a&&l?-1:1,d=po(t,e);let{mainAxis:f,crossAxis:p,alignmentAxis:m}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof m&&(p="end"===s?-1*m:m),l?{x:p*u,y:f*c}:{x:f*c,y:p*u}}(t,e);return i===(null==(n=s.offset)?void 0:n.placement)&&null!=(r=s.arrow)&&r.alignmentOffset?{}:{x:o+l.x,y:a+l.y,data:{...l,placement:i}}}}},Ea=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:o,platform:a}=t,{mainAxis:i=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...c}=po(e,t),u={x:n,y:r},d=await a.detectOverflow(t,c),f=vo(mo(o)),p=go(f);let m=u[p],h=u[f];if(i){const e="y"===p?"bottom":"right";m=fo(m+d["y"===p?"top":"left"],m,m-d[e])}if(s){const e="y"===f?"bottom":"right";h=fo(h+d["y"===f?"top":"left"],h,h-d[e])}const g=l.fn({...t,[p]:m,[f]:h});return{...g,data:{x:g.x-n,y:g.y-r,enabled:{[p]:i,[f]:s}}}}}},_a=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:o,middlewareData:a,rects:i,initialPlacement:s,platform:l,elements:c}=t,{mainAxis:u=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:m="none",flipAlignment:h=!0,...g}=po(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};const b=mo(o),v=vo(s),y=mo(s)===s,w=await(null==l.isRTL?void 0:l.isRTL(c.floating)),x=f||(y||!h?[No(s)]:function(e){const t=No(e);return[wo(e),t,wo(t)]}(s)),E="none"!==m;!f&&E&&x.push(...Co(s,h,m,w));const _=[s,...x],k=await l.detectOverflow(t,g),C=[];let N=(null==(r=a.flip)?void 0:r.overflows)||[];if(u&&C.push(k[b]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=ho(e),o=yo(e),a=bo(o);let i="x"===o?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[a]>t.floating[a]&&(i=No(i)),[i,No(i)]}(o,i,w);C.push(k[e[0]],k[e[1]])}if(N=[...N,{placement:o,overflows:C}],!C.every(e=>e<=0)){var D,S;const e=((null==(D=a.flip)?void 0:D.index)||0)+1,t=_[e];if(t){if(!("alignment"===d&&v!==vo(t))||N.every(e=>vo(e.placement)!==v||e.overflows[0]>0))return{data:{index:e,overflows:N},reset:{placement:t}}}let n=null==(S=N.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:S.placement;if(!n)switch(p){case"bestFit":{var A;const e=null==(A=N.filter(e=>{if(E){const t=vo(e.placement);return t===v||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:A[0];e&&(n=e);break}case"initialPlacement":n=s}if(o!==n)return{reset:{placement:n}}}return{}}}},ka=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,r;const{placement:o,rects:a,platform:i,elements:s}=t,{apply:l=()=>{},...c}=po(e,t),u=await i.detectOverflow(t,c),d=mo(o),f=ho(o),p="y"===vo(o),{width:m,height:h}=a.floating;let g,b;"top"===d||"bottom"===d?(g=d,b=f===(await(null==i.isRTL?void 0:i.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,g="end"===f?"top":"bottom");const v=h-u.top-u.bottom,y=m-u.left-u.right,w=ao(h-u[g],v),x=ao(m-u[b],y),E=!t.middlewareData.shift;let _=w,k=x;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(k=y),null!=(r=t.middlewareData.shift)&&r.enabled.y&&(_=v),E&&!f){const e=io(u.left,0),t=io(u.right,0),n=io(u.top,0),r=io(u.bottom,0);p?k=m-2*(0!==e||0!==t?e+t:io(u.left,u.right)):_=h-2*(0!==n||0!==r?n+r:io(u.top,u.bottom))}await l({...t,availableWidth:k,availableHeight:_});const C=await i.getDimensions(s.floating);return m!==C.width||h!==C.height?{reset:{rects:!0}}:{}}}},Ca=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n,platform:r}=t,{strategy:o="referenceHidden",...a}=po(e,t);switch(o){case"referenceHidden":{const e=Ro(await r.detectOverflow(t,{...a,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:Oo(e)}}}case"escaped":{const e=Ro(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:Oo(e)}}}default:return{}}}}},Na=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:o,rects:a,platform:i,elements:s,middlewareData:l}=t,{element:c,padding:u=0}=po(e,t)||{};if(null==c)return{};const d=Do(u),f={x:n,y:r},p=yo(o),m=bo(p),h=await i.getDimensions(c),g="y"===p,b=g?"top":"left",v=g?"bottom":"right",y=g?"clientHeight":"clientWidth",w=a.reference[m]+a.reference[p]-f[p]-a.floating[m],x=f[p]-a.reference[p],E=await(null==i.getOffsetParent?void 0:i.getOffsetParent(c));let _=E?E[y]:0;_&&await(null==i.isElement?void 0:i.isElement(E))||(_=s.floating[y]||a.floating[m]);const k=w/2-x/2,C=_/2-h[m]/2-1,N=ao(d[b],C),D=ao(d[v],C),S=N,A=_-h[m]-D,T=_/2-h[m]/2+k,R=fo(S,T,A),O=!l.arrow&&null!=ho(o)&&T!==R&&a.reference[m]/2-(T<S?N:D)-h[m]/2<0,F=O?T<S?T-S:T-A:0;return{[p]:f[p]+F,data:{[p]:R,centerOffset:T-R-F,...O&&{alignmentOffset:F}},reset:O}}}),Da=function(e){return void 0===e&&(e={}),{options:e,fn(t){const{x:n,y:r,placement:o,rects:a,middlewareData:i}=t,{offset:s=0,mainAxis:l=!0,crossAxis:c=!0}=po(e,t),u={x:n,y:r},d=vo(o),f=go(d);let p=u[f],m=u[d];const h=po(s,t),g="number"==typeof h?{mainAxis:h,crossAxis:0}:{mainAxis:0,crossAxis:0,...h};if(l){const e="y"===f?"height":"width",t=a.reference[f]-a.floating[e]+g.mainAxis,n=a.reference[f]+a.reference[e]-g.mainAxis;p<t?p=t:p>n&&(p=n)}if(c){var b,v;const e="y"===f?"width":"height",t=Fo.has(mo(o)),n=a.reference[d]-a.floating[e]+(t&&(null==(b=i.offset)?void 0:b[d])||0)+(t?0:g.crossAxis),r=a.reference[d]+a.reference[e]+(t?0:(null==(v=i.offset)?void 0:v[d])||0)-(t?g.crossAxis:0);m<n?m=n:m>r&&(m=r)}return{[f]:p,[d]:m}}}},Sa=(e,t,n)=>{const r=new Map,o={platform:va,...n},a={...o.platform,_c:r};return(async(e,t,n)=>{const{placement:r="bottom",strategy:o="absolute",middleware:a=[],platform:i}=n,s=i.detectOverflow?i:{...i,detectOverflow:To},l=await(null==i.isRTL?void 0:i.isRTL(t));let c=await i.getElementRects({reference:e,floating:t,strategy:o}),{x:u,y:d}=Ao(c,r,l),f=r,p=0;const m={};for(let n=0;n<a.length;n++){const h=a[n];if(!h)continue;const{name:g,fn:b}=h,{x:v,y:y,data:w,reset:x}=await b({x:u,y:d,initialPlacement:r,placement:f,strategy:o,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});u=null!=v?v:u,d=null!=y?y:d,m[g]={...m[g],...w},x&&p<50&&(p++,"object"==typeof x&&(x.placement&&(f=x.placement),x.rects&&(c=!0===x.rects?await i.getElementRects({reference:e,floating:t,strategy:o}):x.rects),({x:u,y:d}=Ao(c,f,l))),n=-1)}return{x:u,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:a})};var Aa="undefined"!=typeof document?e.useLayoutEffect:function(){};function Ta(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let n,r,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(n=e.length,n!==t.length)return!1;for(r=n;0!==r--;)if(!Ta(e[r],t[r]))return!1;return!0}if(o=Object.keys(e),n=o.length,n!==Object.keys(t).length)return!1;for(r=n;0!==r--;)if(!{}.hasOwnProperty.call(t,o[r]))return!1;for(r=n;0!==r--;){const n=o[r];if(("_owner"!==n||!e.$$typeof)&&!Ta(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function Ra(e){if("undefined"==typeof window)return 1;return(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Oa(e,t){const n=Ra(e);return Math.round(t*n)/n}function Fa(e){const t=c.useRef(e);return Aa(()=>{t.current=e}),t}const Ma=(e,t)=>{const n=xa(e);return{name:n.name,fn:n.fn,options:[e,t]}},ja=(e,t)=>{const n=Ea(e);return{name:n.name,fn:n.fn,options:[e,t]}},La=(e,t)=>({fn:Da(e).fn,options:[e,t]}),Ia=(e,t)=>{const n=_a(e);return{name:n.name,fn:n.fn,options:[e,t]}},Pa=(e,t)=>{const n=ka(e);return{name:n.name,fn:n.fn,options:[e,t]}},za=(e,t)=>{const n=Ca(e);return{name:n.name,fn:n.fn,options:[e,t]}},Ba=(e,t)=>{const n=(e=>({name:"arrow",options:e,fn(t){const{element:n,padding:r}="function"==typeof e?e(t):e;return n&&(o=n,{}.hasOwnProperty.call(o,"current"))?null!=n.current?Na({element:n.current,padding:r}).fn(t):{}:n?Na({element:n,padding:r}).fn(t):{};var o}}))(e);return{name:n.name,fn:n.fn,options:[e,t]}};var qa=c.forwardRef((e,n)=>{const{children:r,width:o=10,height:a=5,...i}=e;return t.jsx(zt.svg,{...i,ref:n,width:o,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?r:t.jsx("polygon",{points:"0,0 30,0 15,10"})})});qa.displayName="Arrow";var Ua=qa;function Ha(e){const[t,n]=c.useState(void 0);return Tt(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});const t=new ResizeObserver(t=>{if(!Array.isArray(t))return;if(!t.length)return;const r=t[0];let o,a;if("borderBoxSize"in r){const e=r.borderBoxSize,t=Array.isArray(e)?e[0]:e;o=t.inlineSize,a=t.blockSize}else o=e.offsetWidth,a=e.offsetHeight;n({width:o,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}var Wa="Popper",[Va,$a]=St(Wa),[Ga,Ka]=Va(Wa),Za=e=>{const{__scopePopper:n,children:r}=e,[o,a]=c.useState(null);return t.jsx(Ga,{scope:n,anchor:o,onAnchorChange:a,children:r})};Za.displayName=Wa;var Ya="PopperAnchor",Ja=c.forwardRef((e,n)=>{const{__scopePopper:r,virtualRef:o,...a}=e,i=Ka(Ya,r),s=c.useRef(null),l=it(n,s),u=c.useRef(null);return c.useEffect(()=>{const e=u.current;u.current=o?.current||s.current,e!==u.current&&i.onAnchorChange(u.current)}),o?null:t.jsx(zt.div,{...a,ref:l})});Ja.displayName=Ya;var Xa="PopperContent",[Qa,ei]=Va(Xa),ti=c.forwardRef((e,n)=>{const{__scopePopper:r,side:o="bottom",sideOffset:a=0,align:i="center",alignOffset:s=0,arrowPadding:l=0,avoidCollisions:d=!0,collisionBoundary:f=[],collisionPadding:p=0,sticky:m="partial",hideWhenDetached:h=!1,updatePositionStrategy:g="optimized",onPlaced:b,...v}=e,y=Ka(Xa,r),[w,x]=c.useState(null),E=it(n,e=>x(e)),[_,k]=c.useState(null),C=Ha(_),N=C?.width??0,D=C?.height??0,S=o+("center"!==i?"-"+i:""),A="number"==typeof p?p:{top:0,right:0,bottom:0,left:0,...p},T=Array.isArray(f)?f:[f],R=T.length>0,O={padding:A,boundary:T.filter(ai),altBoundary:R},{refs:F,floatingStyles:M,placement:j,isPositioned:L,middlewareData:I}=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:n="absolute",middleware:r=[],platform:o,elements:{reference:a,floating:i}={},transform:s=!0,whileElementsMounted:l,open:d}=e,[f,p]=c.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[m,h]=c.useState(r);Ta(m,r)||h(r);const[g,b]=c.useState(null),[v,y]=c.useState(null),w=c.useCallback(e=>{e!==k.current&&(k.current=e,b(e))},[]),x=c.useCallback(e=>{e!==C.current&&(C.current=e,y(e))},[]),E=a||g,_=i||v,k=c.useRef(null),C=c.useRef(null),N=c.useRef(f),D=null!=l,S=Fa(l),A=Fa(o),T=Fa(d),R=c.useCallback(()=>{if(!k.current||!C.current)return;const e={placement:t,strategy:n,middleware:m};A.current&&(e.platform=A.current),Sa(k.current,C.current,e).then(e=>{const t={...e,isPositioned:!1!==T.current};O.current&&!Ta(N.current,t)&&(N.current=t,u.flushSync(()=>{p(t)}))})},[m,t,n,A,T]);Aa(()=>{!1===d&&N.current.isPositioned&&(N.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[d]);const O=c.useRef(!1);Aa(()=>(O.current=!0,()=>{O.current=!1}),[]),Aa(()=>{if(E&&(k.current=E),_&&(C.current=_),E&&_){if(S.current)return S.current(E,_,R);R()}},[E,_,R,S,D]);const F=c.useMemo(()=>({reference:k,floating:C,setReference:w,setFloating:x}),[w,x]),M=c.useMemo(()=>({reference:E,floating:_}),[E,_]),j=c.useMemo(()=>{const e={position:n,left:0,top:0};if(!M.floating)return e;const t=Oa(M.floating,f.x),r=Oa(M.floating,f.y);return s?{...e,transform:"translate("+t+"px, "+r+"px)",...Ra(M.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:r}},[n,s,M.floating,f.x,f.y]);return c.useMemo(()=>({...f,update:R,refs:F,elements:M,floatingStyles:j}),[f,R,F,M,j])}({strategy:"fixed",placement:S,whileElementsMounted:(...e)=>wa(...e,{animationFrame:"always"===g}),elements:{reference:y.anchor},middleware:[Ma({mainAxis:a+D,alignmentAxis:s}),d&&ja({mainAxis:!0,crossAxis:!1,limiter:"partial"===m?La():void 0,...O}),d&&Ia({...O}),Pa({...O,apply:({elements:e,rects:t,availableWidth:n,availableHeight:r})=>{const{width:o,height:a}=t.reference,i=e.floating.style;i.setProperty("--radix-popper-available-width",`${n}px`),i.setProperty("--radix-popper-available-height",`${r}px`),i.setProperty("--radix-popper-anchor-width",`${o}px`),i.setProperty("--radix-popper-anchor-height",`${a}px`)}}),_&&Ba({element:_,padding:l}),ii({arrowWidth:N,arrowHeight:D}),h&&za({strategy:"referenceHidden",...O})]}),[P,z]=si(j),B=qt(b);Tt(()=>{L&&B?.()},[L,B]);const q=I.arrow?.x,U=I.arrow?.y,H=0!==I.arrow?.centerOffset,[W,V]=c.useState();return Tt(()=>{w&&V(window.getComputedStyle(w).zIndex)},[w]),t.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...M,transform:L?M.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:W,"--radix-popper-transform-origin":[I.transformOrigin?.x,I.transformOrigin?.y].join(" "),...I.hide?.referenceHidden&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:t.jsx(Qa,{scope:r,placedSide:P,onArrowChange:k,arrowX:q,arrowY:U,shouldHideArrow:H,children:t.jsx(zt.div,{"data-side":P,"data-align":z,...v,ref:E,style:{...v.style,animation:L?void 0:"none"}})})})});ti.displayName=Xa;var ni="PopperArrow",ri={top:"bottom",right:"left",bottom:"top",left:"right"},oi=c.forwardRef(function(e,n){const{__scopePopper:r,...o}=e,a=ei(ni,r),i=ri[a.placedSide];return t.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:t.jsx(Ua,{...o,ref:n,style:{...o.style,display:"block"}})})});function ai(e){return null!==e}oi.displayName=ni;var ii=e=>({name:"transformOrigin",options:e,fn(t){const{placement:n,rects:r,middlewareData:o}=t,a=0!==o.arrow?.centerOffset,i=a?0:e.arrowWidth,s=a?0:e.arrowHeight,[l,c]=si(n),u={start:"0%",center:"50%",end:"100%"}[c],d=(o.arrow?.x??0)+i/2,f=(o.arrow?.y??0)+s/2;let p="",m="";return"bottom"===l?(p=a?u:`${d}px`,m=-s+"px"):"top"===l?(p=a?u:`${d}px`,m=`${r.floating.height+s}px`):"right"===l?(p=-s+"px",m=a?u:`${f}px`):"left"===l&&(p=`${r.floating.width+s}px`,m=a?u:`${f}px`),{data:{x:p,y:m}}}});function si(e){const[t,n="center"]=e.split("-");return[t,n]}var li=Za,ci=Ja,ui=ti,di=oi,fi=Symbol("radix.slottable");var pi=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"}),mi=c.forwardRef((e,n)=>t.jsx(zt.span,{...e,ref:n,style:{...pi,...e.style}}));mi.displayName="VisuallyHidden";var hi=mi,[gi,bi]=St("Tooltip",[$a]),vi=$a(),yi="TooltipProvider",wi=700,xi="tooltip.open",[Ei,_i]=gi(yi),ki=e=>{const{__scopeTooltip:n,delayDuration:r=wi,skipDelayDuration:o=300,disableHoverableContent:a=!1,children:i}=e,s=c.useRef(!0),l=c.useRef(!1),u=c.useRef(0);return c.useEffect(()=>{const e=u.current;return()=>window.clearTimeout(e)},[]),t.jsx(Ei,{scope:n,isOpenDelayedRef:s,delayDuration:r,onOpen:c.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:c.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,o)},[o]),isPointerInTransitRef:l,onPointerInTransitChange:c.useCallback(e=>{l.current=e},[]),disableHoverableContent:a,children:i})};ki.displayName=yi;var Ci="Tooltip",[Ni,Di]=gi(Ci),Si=e=>{const{__scopeTooltip:n,children:r,open:o,defaultOpen:a,onOpenChange:i,disableHoverableContent:s,delayDuration:l}=e,u=_i(Ci,e.__scopeTooltip),d=vi(n),[f,p]=c.useState(null),m=Ft(),h=c.useRef(0),g=s??u.disableHoverableContent,b=l??u.delayDuration,v=c.useRef(!1),[y,w]=jt({prop:o,defaultProp:a??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(xi))):u.onClose(),i?.(e)},caller:Ci}),x=c.useMemo(()=>y?v.current?"delayed-open":"instant-open":"closed",[y]),E=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,v.current=!1,w(!0)},[w]),_=c.useCallback(()=>{window.clearTimeout(h.current),h.current=0,w(!1)},[w]),k=c.useCallback(()=>{window.clearTimeout(h.current),h.current=window.setTimeout(()=>{v.current=!0,w(!0),h.current=0},b)},[b,w]);return c.useEffect(()=>()=>{h.current&&(window.clearTimeout(h.current),h.current=0)},[]),t.jsx(li,{...d,children:t.jsx(Ni,{scope:n,contentId:m,open:y,stateAttribute:x,trigger:f,onTriggerChange:p,onTriggerEnter:c.useCallback(()=>{u.isOpenDelayedRef.current?k():E()},[u.isOpenDelayedRef,k,E]),onTriggerLeave:c.useCallback(()=>{g?_():(window.clearTimeout(h.current),h.current=0)},[_,g]),onOpen:E,onClose:_,disableHoverableContent:g,children:r})})};Si.displayName=Ci;var Ai="TooltipTrigger",Ti=c.forwardRef((e,n)=>{const{__scopeTooltip:r,...o}=e,a=Di(Ai,r),i=_i(Ai,r),s=vi(r),l=it(n,c.useRef(null),a.onTriggerChange),u=c.useRef(!1),d=c.useRef(!1),f=c.useCallback(()=>u.current=!1,[]);return c.useEffect(()=>()=>document.removeEventListener("pointerup",f),[f]),t.jsx(ci,{asChild:!0,...s,children:t.jsx(zt.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...o,ref:l,onPointerMove:Dt(e.onPointerMove,e=>{"touch"!==e.pointerType&&(d.current||i.isPointerInTransitRef.current||(a.onTriggerEnter(),d.current=!0))}),onPointerLeave:Dt(e.onPointerLeave,()=>{a.onTriggerLeave(),d.current=!1}),onPointerDown:Dt(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",f,{once:!0})}),onFocus:Dt(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:Dt(e.onBlur,a.onClose),onClick:Dt(e.onClick,a.onClose)})})});Ti.displayName=Ai;var[Ri,Oi]=gi("TooltipPortal",{forceMount:void 0}),Fi="TooltipContent",Mi=c.forwardRef((e,n)=>{const r=Oi(Fi,e.__scopeTooltip),{forceMount:o=r.forceMount,side:a="top",...i}=e,s=Di(Fi,e.__scopeTooltip);return t.jsx(ln,{present:o||s.open,children:s.disableHoverableContent?t.jsx(zi,{side:a,...i,ref:n}):t.jsx(ji,{side:a,...i,ref:n})})}),ji=c.forwardRef((e,n)=>{const r=Di(Fi,e.__scopeTooltip),o=_i(Fi,e.__scopeTooltip),a=c.useRef(null),i=it(n,a),[s,l]=c.useState(null),{trigger:u,onClose:d}=r,f=a.current,{onPointerInTransitChange:p}=o,m=c.useCallback(()=>{l(null),p(!1)},[p]),h=c.useCallback((e,t)=>{const n=e.currentTarget,r={x:e.clientX,y:e.clientY},o=function(e,t,n=5){const r=[];switch(t){case"top":r.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":r.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":r.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":r.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return r}(r,function(e,t){const n=Math.abs(t.top-e.y),r=Math.abs(t.bottom-e.y),o=Math.abs(t.right-e.x),a=Math.abs(t.left-e.x);switch(Math.min(n,r,o,a)){case a:return"left";case o:return"right";case n:return"top";case r:return"bottom";default:throw new Error("unreachable")}}(r,n.getBoundingClientRect())),a=function(e){const t=e.slice();return t.sort((e,t)=>e.x<t.x?-1:e.x>t.x?1:e.y<t.y?-1:e.y>t.y?1:0),function(e){if(e.length<=1)return e.slice();const t=[];for(let n=0;n<e.length;n++){const r=e[n];for(;t.length>=2;){const e=t[t.length-1],n=t[t.length-2];if(!((e.x-n.x)*(r.y-n.y)>=(e.y-n.y)*(r.x-n.x)))break;t.pop()}t.push(r)}t.pop();const n=[];for(let t=e.length-1;t>=0;t--){const r=e[t];for(;n.length>=2;){const e=n[n.length-1],t=n[n.length-2];if(!((e.x-t.x)*(r.y-t.y)>=(e.y-t.y)*(r.x-t.x)))break;n.pop()}n.push(r)}return n.pop(),1===t.length&&1===n.length&&t[0].x===n[0].x&&t[0].y===n[0].y?t:t.concat(n)}(t)}([...o,...function(e){const{top:t,right:n,bottom:r,left:o}=e;return[{x:o,y:t},{x:n,y:t},{x:n,y:r},{x:o,y:r}]}(t.getBoundingClientRect())]);l(a),p(!0)},[p]);return c.useEffect(()=>()=>m(),[m]),c.useEffect(()=>{if(u&&f){const e=e=>h(e,f),t=e=>h(e,u);return u.addEventListener("pointerleave",e),f.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),f.removeEventListener("pointerleave",t)}}},[u,f,h,m]),c.useEffect(()=>{if(s){const e=e=>{const t=e.target,n={x:e.clientX,y:e.clientY},r=u?.contains(t)||f?.contains(t),o=!function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,c=i.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}(n,s);r?m():o&&(m(),d())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,f,s,d,m]),t.jsx(zi,{...e,ref:i})}),[Li,Ii]=gi(Ci,{isInside:!1}),Pi=function(e){const n=({children:e})=>t.jsx(t.Fragment,{children:e});return n.displayName=`${e}.Slottable`,n.__radixId=fi,n}("TooltipContent"),zi=c.forwardRef((e,n)=>{const{__scopeTooltip:r,children:o,"aria-label":a,onEscapeKeyDown:i,onPointerDownOutside:s,...l}=e,u=Di(Fi,r),d=vi(r),{onClose:f}=u;return c.useEffect(()=>(document.addEventListener(xi,f),()=>document.removeEventListener(xi,f)),[f]),c.useEffect(()=>{if(u.trigger){const e=e=>{const t=e.target;t?.contains(u.trigger)&&f()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,f]),t.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:f,children:t.jsxs(ui,{"data-state":u.stateAttribute,...d,...l,ref:n,style:{...l.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:[t.jsx(Pi,{children:o}),t.jsx(Li,{scope:r,isInside:!0,children:t.jsx(hi,{id:u.contentId,role:"tooltip",children:a||o})})]})})});Mi.displayName=Fi;var Bi="TooltipArrow";c.forwardRef((e,n)=>{const{__scopeTooltip:r,...o}=e,a=vi(r);return Ii(Bi,r).isInside?null:t.jsx(di,{...a,...o,ref:n})}).displayName=Bi;var qi=Mi,Ui=ki,Hi=Si,Wi=Ti,Vi=c.forwardRef(function(e,t){var n=e.className,r=e.sideOffset,o=void 0===r?4:r,a=_(e,["className","sideOffset"]);return c.createElement(qi,Object.assign({ref:t,sideOffset:o,className:nt("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 origin-[--radix-tooltip-content-transform-origin]",n)},a))});Vi.displayName=qi.displayName;var $i=c.createContext(null);function Gi(){var e=c.useContext($i);if(!e)throw new Error("useSidebar must be used within a SidebarProvider.");return e}function Ki(e){var t=e.defaultOpen,n=void 0===t||t,r=e.open,o=e.onOpenChange,a=e.className,i=e.style,s=e.children,l=_(e,["defaultOpen","open","onOpenChange","className","style","children"]),u=function(){var e=v(c.useState(void 0),2),t=e[0],n=e[1];return c.useEffect(function(){var e=window.matchMedia("(max-width: ".concat(767,"px)")),t=function(){n(window.innerWidth<768)};return e.addEventListener("change",t),n(window.innerWidth<768),function(){return e.removeEventListener("change",t)}},[]),!!t}(),d=v(c.useState(!1),2),f=d[0],p=d[1],m=v(c.useState(n),2),h=m[0],g=m[1],b=null!=r?r:h,y=c.useCallback(function(e){var t="function"==typeof e?e(b):e;o?o(t):g(t),document.cookie="".concat("sidebar_state","=").concat(t,"; path=/; max-age=").concat(604800)},[o,b]),w=c.useCallback(function(){return u?p(function(e){return!e}):y(function(e){return!e})},[u,y,p]);c.useEffect(function(){var e=function(e){"b"===e.key&&(e.metaKey||e.ctrlKey)&&(e.preventDefault(),w())};return window.addEventListener("keydown",e),function(){return window.removeEventListener("keydown",e)}},[w]);var x=b?"expanded":"collapsed",E=c.useMemo(function(){return{state:x,open:b,setOpen:y,isMobile:u,openMobile:f,setOpenMobile:p,toggleSidebar:w}},[x,b,y,u,f,p,w]);return c.createElement($i.Provider,{value:E},c.createElement(Ui,{delayDuration:0},c.createElement("div",Object.assign({style:Object.assign({"--sidebar-width":"16rem","--sidebar-width-icon":"3rem"},i),className:nt("group/sidebar-wrapper flex min-h-svh w-full",a)},l),s)))}function Zi(e){var t=e.side,n=void 0===t?"left":t,r=e.variant,o=void 0===r?"sidebar":r,a=e.collapsible,i=void 0===a?"offcanvas":a,s=e.className,l=e.children,u=_(e,["side","variant","collapsible","className","children"]),d=Gi(),f=d.isMobile,p=d.state,m=d.openMobile,h=d.setOpenMobile;return"none"===i?c.createElement("div",Object.assign({className:nt("bg-sidebar text-sidebar-foreground flex h-full w-[var(--sidebar-width)] flex-col",s)},u),l):f?c.createElement(Yr,Object.assign({open:m,onOpenChange:h},u),c.createElement(eo,{className:"bg-sidebar text-sidebar-foreground w-[var(--sidebar-width)] p-0 [&>button]:hidden",style:{"--sidebar-width":"18rem"},side:n},c.createElement(to,{className:"sr-only"},c.createElement(no,null,"Sidebar"),c.createElement(ro,null,"Displays the mobile sidebar.")),c.createElement("div",{className:"flex h-full w-full flex-col"},l))):c.createElement("div",{className:"group peer text-sidebar-foreground hidden md:block","data-state":p,"data-collapsible":"collapsed"===p?i:"","data-variant":o,"data-side":n},c.createElement("div",{className:nt("relative w-[var(--sidebar-width)] bg-transparent transition-[width] duration-200 ease-linear","group-data-[collapsible=offcanvas]:w-0","floating"===o||"inset"===o?"group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)]")}),c.createElement("div",Object.assign({className:nt("fixed inset-y-0 z-10 hidden h-svh w-[var(--sidebar-width)] transition-[left,right,width] duration-200 ease-linear md:flex","left"===n?"left-0 group-data-[collapsible=offcanvas]:left-[calc(var(--sidebar-width)*-1)]":"right-0 group-data-[collapsible=offcanvas]:right-[calc(var(--sidebar-width)*-1)]","floating"===o||"inset"===o?"p-2 group-data-[collapsible=icon]:w-[calc(var(--sidebar-width-icon)+1rem+2px)]":"group-data-[collapsible=icon]:w-[var(--sidebar-width-icon)] group-data-[side=left]:border-r group-data-[side=right]:border-l",s)},u),c.createElement("div",{className:"bg-sidebar group-data-[variant=floating]:border-sidebar-border flex h-full w-full flex-col group-data-[variant=floating]:rounded-lg group-data-[variant=floating]:border group-data-[variant=floating]:shadow-sm"},l)))}function Yi(e){var t=e.className,n=e.onClick,r=_(e,["className","onClick"]),o=Gi().toggleSidebar;return c.createElement(yt,Object.assign({variant:"ghost",size:"icon",className:nt("h-7 w-7",t),onClick:function(e){null==n||n(e),o()}},r),c.createElement(Z,null),c.createElement("span",{className:"sr-only"},"Toggle Sidebar"))}function Ji(e){var t=e.className,n=_(e,["className"]);return c.createElement("main",Object.assign({className:nt("bg-background relative flex w-full flex-1 flex-col min-w-0 overflow-x-hidden","md:peer-data-[variant=inset]:m-2 md:peer-data-[variant=inset]:ml-0 md:peer-data-[variant=inset]:rounded-xl md:peer-data-[variant=inset]:shadow-sm md:peer-data-[variant=inset]:peer-data-[state=collapsed]:ml-2",t)},n))}function Xi(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:nt("flex flex-col gap-2 p-2",t)},n))}function Qi(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:nt("flex flex-col gap-2 p-2",t)},n))}function es(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:nt("flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden",t)},n))}function ts(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:nt("relative flex w-full min-w-0 flex-col p-2",t)},n))}function ns(e){var t=e.className,n=e.asChild,r=void 0!==n&&n,o=_(e,["className","asChild"]),a=r?dt:"div";return c.createElement(a,Object.assign({className:nt("text-sidebar-foreground/70 flex h-8 shrink-0 items-center rounded-md px-2 text-xs font-medium transition-[margin,opacity] duration-200 ease-linear [&>svg]:size-4 [&>svg]:shrink-0","group-data-[collapsible=icon]:-mt-8 group-data-[collapsible=icon]:opacity-0",t)},o))}function rs(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:nt("w-full text-sm",t)},n))}function os(e){var t=e.className,n=_(e,["className"]);return c.createElement("ul",Object.assign({className:nt("flex w-full min-w-0 flex-col gap-1",t)},n))}function as(e){var t=e.className,n=_(e,["className"]);return c.createElement("li",Object.assign({className:nt("group/menu-item relative",t)},n))}var is=bt("peer/menu-button flex w-full items-center gap-2 overflow-hidden rounded-md p-2 text-left text-sm transition-[width,height,padding] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground focus-visible:ring-2 active:bg-sidebar-accent active:text-sidebar-accent-foreground disabled:pointer-events-none disabled:opacity-50 aria-disabled:pointer-events-none aria-disabled:opacity-50 data-[active=true]:bg-sidebar-accent data-[active=true]:font-medium data-[active=true]:text-sidebar-accent-foreground group-data-[collapsible=icon]:size-8! group-data-[collapsible=icon]:p-2! [&>span:last-child]:truncate [&>svg]:size-4 [&>svg]:shrink-0",{variants:{variant:{default:"hover:bg-sidebar-accent hover:text-sidebar-accent-foreground",outline:"bg-background shadow-[0_0_0_1px_hsl(var(--sidebar-border))] hover:bg-sidebar-accent hover:text-sidebar-accent-foreground"},size:{default:"h-8 text-sm",sm:"h-7 text-xs",lg:"h-12 text-sm group-data-[collapsible=icon]:p-0!"}},defaultVariants:{variant:"default",size:"default"}});function ss(e){var t=e.asChild,n=void 0!==t&&t,r=e.isActive,o=void 0!==r&&r,a=e.variant,i=void 0===a?"default":a,s=e.size,l=void 0===s?"default":s,u=e.tooltip,d=e.className,f=_(e,["asChild","isActive","variant","size","tooltip","className"]),p=n?dt:"button",m=Gi(),h=m.isMobile,g=m.state,b=c.createElement(p,Object.assign({"data-size":l,"data-active":o,className:nt(is({variant:i,size:l}),d)},f));return u?("string"==typeof u&&(u={children:u}),c.createElement(Hi,null,c.createElement(Wi,{asChild:!0},b),c.createElement(Vi,Object.assign({side:"right",align:"center",hidden:"collapsed"!==g||h},u)))):b}var ls=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,n)=>{const r=ut(`Primitive.${n}`),o=c.forwardRef((e,o)=>{const{asChild:a,...i}=e,s=a?r:n;return"undefined"!=typeof window&&(window[Symbol.for("radix-ui")]=!0),t.jsx(s,{...i,ref:o})});return o.displayName=`Primitive.${n}`,{...e,[n]:o}},{}),cs=c.forwardRef((e,n)=>t.jsx(ls.label,{...e,ref:n,onMouseDown:t=>{t.target.closest("button, input, select, textarea")||(e.onMouseDown?.(t),!t.defaultPrevented&&t.detail>1&&t.preventDefault())}}));cs.displayName="Label";var us=cs,ds=bt("text-sm font-bold leading-none peer-disabled:cursor-not-allowed peer-disabled:opacity-70 text-foreground"),fs=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(us,Object.assign({ref:t,className:nt(ds(),n)},r))});fs.displayName=us.displayName;var ps=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:nt("rounded-[2rem] border border-[hsl(var(--border))]/50 bg-card text-card-foreground shadow-[0_4px_20px_-2px_rgba(93,112,82,0.15)] transition-all duration-300",n)},r))});ps.displayName="Card";var ms=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:nt("flex flex-col space-y-1.5 p-6",n)},r))});ms.displayName="CardHeader";var hs=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:nt("text-2xl font-bold leading-none tracking-tight",n)},r))});hs.displayName="CardTitle";var gs=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:nt("text-sm text-muted-foreground",n)},r))});gs.displayName="CardDescription";var bs=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:nt("p-6 pt-0",n)},r))});bs.displayName="CardContent";var vs=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",Object.assign({ref:t,className:nt("flex items-center p-6 pt-0",n)},r))});vs.displayName="CardFooter";var ys={items:[],config:Object.assign({},{top:24,duration:3,maxCount:5})},ws=new Set;function xs(){ws.forEach(function(e){return e(ys.items.slice())})}function Es(t){switch(t){case"success":return e.createElement(D,null);case"error":return e.createElement(ae,null);case"warning":return e.createElement(N,null);case"loading":return e.createElement(V,{className:"animate-spin"});default:return e.createElement(W,null)}}function _s(e){var t,n,r;Ds();var o=Date.now(),a=null!==(t=e.key)&&void 0!==t?t:"msg_".concat(o,"_").concat(Math.random().toString(36).slice(2)),i=ys.items.findIndex(function(e){return e.key===a}),s={key:a,content:e.content,duration:null!==(n=e.duration)&&void 0!==n?n:ys.config.duration,type:e.type,onClose:e.onClose,icon:null!==(r=e.icon)&&void 0!==r?r:Es(e.type),className:e.className,createdAt:o};return i>=0?ys.items[i]=Object.assign({},ys.items[i],s):(ys.items.length>=ys.config.maxCount&&ys.items.shift(),ys.items.push(s)),xs(),s.duration>0&&"loading"!==s.type&&window.setTimeout(function(){ks(a)},1e3*s.duration),{close:function(){return ks(a)}}}function ks(e){var t;if(void 0===e)return ys.items.forEach(function(e){var t;return null===(t=e.onClose)||void 0===t?void 0:t.call(e)}),ys.items=[],void xs();var n=ys.items.findIndex(function(t){return t.key===e});if(n>=0){var r=v(ys.items.splice(n,1),1)[0];null===(t=null==r?void 0:r.onClose)||void 0===t||t.call(r),xs()}}var Cs=null,Ns=null;function Ds(){"undefined"!=typeof window&&(Ns||((Ns=document.createElement("div")).setAttribute("data-custom-message-holder",""),document.body.appendChild(Ns)),Cs||(Cs=r.createRoot(Ns)).render(e.createElement(Ss,null)))}function Ss(){var t=function(){var t=v(e.useState(ys.items),2),n=t[0],r=t[1];return e.useEffect(function(){var e=r;return ws.add(e),function(){ws.delete(e)}},[]),n}(),n=ys.config.top;return e.createElement("div",{className:"fixed left-1/2 -translate-x-1/2 z-[1000] w-80 pointer-events-none",style:{top:n}},e.createElement("div",{className:"mx-auto flex w-full max-w-xl flex-col items-center gap-2 px-4"},t.map(function(t){var n,r,o=function(e){switch(e){case"success":return{container:"border-green-200 bg-green-50/90 text-green-800 border-l-4 border-l-green-500",icon:"text-green-500",text:"text-green-800"};case"error":return{container:"border-red-200 bg-red-50/90 text-red-800 border-l-4 border-l-red-500",icon:"text-red-500",text:"text-red-800"};case"warning":return{container:"border-yellow-200 bg-yellow-50/90 text-yellow-800 border-l-4 border-l-yellow-500",icon:"text-yellow-500",text:"text-yellow-800"};default:return{container:"border-blue-200 bg-blue-50/90 text-blue-800 border-l-4 border-l-blue-500",icon:"text-blue-500",text:"text-blue-800"}}}(t.type);return e.createElement("div",{key:t.key,className:"pointer-events-auto flex w-full items-center gap-2 rounded-md border px-3 py-2 backdrop-blur ".concat(o.container," ").concat(null!==(n=t.className)&&void 0!==n?n:"")},e.createElement("span",{className:"text-[18px] leading-none ".concat(o.icon)},null!==(r=t.icon)&&void 0!==r?r:Es(t.type)),e.createElement("div",{className:"min-w-0 flex-1 text-[14px] leading-normal ".concat(o.text)},"string"==typeof t.content?e.createElement("span",{className:"break-words align-middle"},t.content):t.content))})))}function As(t,n,r,o){if(e.isValidElement(n)||"string"==typeof n||"number"==typeof n)return{type:t,content:n,duration:r,onClose:o};var a=n;return Object.assign({},a,{type:t})}var Ts,Rs,Os=(Rs={open:function(e){var t;return _s(Object.assign({},e,{type:null!==(t=e.type)&&void 0!==t?t:"info"}))},info:function(e,t,n){return _s(As("info",e,t,n))},success:function(e,t,n){return _s(As("success",e,t,n))},error:function(e,t,n){return _s(As("error",e,t,n))},warning:function(e,t,n){return _s(As("warning",e,t,n))},loading:function(e,t,n){return _s(As("loading",e,null!=t?t:0,n))},destroy:function(e){return ks(e)},config:function(e){return t=e,ys.config=Object.assign({},ys.config,t),void xs();var t},useMessage:function(){var t=e.useMemo(function(){return"undefined"!=typeof window&&Ds(),e.createElement(e.Fragment,null)},[]);return[Ts.current,t]}},(Ts={}).current=Rs,Rs);function Fs(e,t){return function(){return e.apply(t,arguments)}}const{toString:Ms}=Object.prototype,{getPrototypeOf:js}=Object,{iterator:Ls,toStringTag:Is}=Symbol,Ps=(zs=Object.create(null),e=>{const t=Ms.call(e);return zs[t]||(zs[t]=t.slice(8,-1).toLowerCase())});var zs;const Bs=e=>(e=e.toLowerCase(),t=>Ps(t)===e),qs=e=>t=>typeof t===e,{isArray:Us}=Array,Hs=qs("undefined");function Ws(e){return null!==e&&!Hs(e)&&null!==e.constructor&&!Hs(e.constructor)&&Gs(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Vs=Bs("ArrayBuffer");const $s=qs("string"),Gs=qs("function"),Ks=qs("number"),Zs=e=>null!==e&&"object"==typeof e,Ys=e=>{if("object"!==Ps(e))return!1;const t=js(e);return!(null!==t&&t!==Object.prototype&&null!==Object.getPrototypeOf(t)||Is in e||Ls in e)},Js=Bs("Date"),Xs=Bs("File"),Qs=Bs("Blob"),el=Bs("FileList"),tl=Bs("URLSearchParams"),[nl,rl,ol,al]=["ReadableStream","Request","Response","Headers"].map(Bs);function il(e,t,{allOwnKeys:n=!1}={}){if(null==e)return;let r,o;if("object"!=typeof e&&(e=[e]),Us(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(Ws(e))return;const o=n?Object.getOwnPropertyNames(e):Object.keys(e),a=o.length;let i;for(r=0;r<a;r++)i=o[r],t.call(null,e[i],i,e)}}function sl(e,t){if(Ws(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r,o=n.length;for(;o-- >0;)if(r=n[o],t===r.toLowerCase())return r;return null}const ll="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:global,cl=e=>!Hs(e)&&e!==ll;const ul=(dl="undefined"!=typeof Uint8Array&&js(Uint8Array),e=>dl&&e instanceof dl);var dl;const fl=Bs("HTMLFormElement"),pl=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),ml=Bs("RegExp"),hl=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};il(n,(n,o)=>{let a;!1!==(a=t(n,o,e))&&(r[o]=a||n)}),Object.defineProperties(e,r)};const gl=Bs("AsyncFunction"),bl=(vl="function"==typeof setImmediate,yl=Gs(ll.postMessage),vl?setImmediate:yl?(wl=`axios@${Math.random()}`,xl=[],ll.addEventListener("message",({source:e,data:t})=>{e===ll&&t===wl&&xl.length&&xl.shift()()},!1),e=>{xl.push(e),ll.postMessage(wl,"*")}):e=>setTimeout(e));var vl,yl,wl,xl;const El="undefined"!=typeof queueMicrotask?queueMicrotask.bind(ll):"undefined"!=typeof process&&process.nextTick||bl;var _l={isArray:Us,isArrayBuffer:Vs,isBuffer:Ws,isFormData:e=>{let t;return e&&("function"==typeof FormData&&e instanceof FormData||Gs(e.append)&&("formdata"===(t=Ps(e))||"object"===t&&Gs(e.toString)&&"[object FormData]"===e.toString()))},isArrayBufferView:function(e){let t;return t="undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&Vs(e.buffer),t},isString:$s,isNumber:Ks,isBoolean:e=>!0===e||!1===e,isObject:Zs,isPlainObject:Ys,isEmptyObject:e=>{if(!Zs(e)||Ws(e))return!1;try{return 0===Object.keys(e).length&&Object.getPrototypeOf(e)===Object.prototype}catch(e){return!1}},isReadableStream:nl,isRequest:rl,isResponse:ol,isHeaders:al,isUndefined:Hs,isDate:Js,isFile:Xs,isBlob:Qs,isRegExp:ml,isFunction:Gs,isStream:e=>Zs(e)&&Gs(e.pipe),isURLSearchParams:tl,isTypedArray:ul,isFileList:el,forEach:il,merge:function e(){const{caseless:t,skipUndefined:n}=cl(this)&&this||{},r={},o=(o,a)=>{const i=t&&sl(r,a)||a;Ys(r[i])&&Ys(o)?r[i]=e(r[i],o):Ys(o)?r[i]=e({},o):Us(o)?r[i]=o.slice():n&&Hs(o)||(r[i]=o)};for(let e=0,t=arguments.length;e<t;e++)arguments[e]&&il(arguments[e],o);return r},extend:(e,t,n,{allOwnKeys:r}={})=>(il(t,(t,r)=>{n&&Gs(t)?e[r]=Fs(t,n):e[r]=t},{allOwnKeys:r}),e),trim:e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),stripBOM:e=>(65279===e.charCodeAt(0)&&(e=e.slice(1)),e),inherits:(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},toFlatObject:(e,t,n,r)=>{let o,a,i;const s={};if(t=t||{},null==e)return t;do{for(o=Object.getOwnPropertyNames(e),a=o.length;a-- >0;)i=o[a],r&&!r(i,e,t)||s[i]||(t[i]=e[i],s[i]=!0);e=!1!==n&&js(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:Ps,kindOfTest:Bs,endsWith:(e,t,n)=>{e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return-1!==r&&r===n},toArray:e=>{if(!e)return null;if(Us(e))return e;let t=e.length;if(!Ks(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},forEachEntry:(e,t)=>{const n=(e&&e[Ls]).call(e);let r;for(;(r=n.next())&&!r.done;){const n=r.value;t.call(e,n[0],n[1])}},matchAll:(e,t)=>{let n;const r=[];for(;null!==(n=e.exec(t));)r.push(n);return r},isHTMLForm:fl,hasOwnProperty:pl,hasOwnProp:pl,reduceDescriptors:hl,freezeMethods:e=>{hl(e,(t,n)=>{if(Gs(e)&&-1!==["arguments","caller","callee"].indexOf(n))return!1;const r=e[n];Gs(r)&&(t.enumerable=!1,"writable"in t?t.writable=!1:t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")}))})},toObjectSet:(e,t)=>{const n={},r=e=>{e.forEach(e=>{n[e]=!0})};return Us(e)?r(e):r(String(e).split(t)),n},toCamelCase:e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(e,t,n){return t.toUpperCase()+n}),noop:()=>{},toFiniteNumber:(e,t)=>null!=e&&Number.isFinite(e=+e)?e:t,findKey:sl,global:ll,isContextDefined:cl,isSpecCompliantForm:function(e){return!!(e&&Gs(e.append)&&"FormData"===e[Is]&&e[Ls])},toJSONObject:e=>{const t=new Array(10),n=(e,r)=>{if(Zs(e)){if(t.indexOf(e)>=0)return;if(Ws(e))return e;if(!("toJSON"in e)){t[r]=e;const o=Us(e)?[]:{};return il(e,(e,t)=>{const a=n(e,r+1);!Hs(a)&&(o[t]=a)}),t[r]=void 0,o}}return e};return n(e,0)},isAsyncFn:gl,isThenable:e=>e&&(Zs(e)||Gs(e))&&Gs(e.then)&&Gs(e.catch),setImmediate:bl,asap:El,isIterable:e=>null!=e&&Gs(e[Ls])};function kl(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}_l.inherits(kl,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:_l.toJSONObject(this.config),code:this.code,status:this.status}}});const Cl=kl.prototype,Nl={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{Nl[e]={value:e}}),Object.defineProperties(kl,Nl),Object.defineProperty(Cl,"isAxiosError",{value:!0}),kl.from=(e,t,n,r,o,a)=>{const i=Object.create(Cl);_l.toFlatObject(e,i,function(e){return e!==Error.prototype},e=>"isAxiosError"!==e);const s=e&&e.message?e.message:"Error",l=null==t&&e?e.code:t;return kl.call(i,s,l,n,r,o),e&&null==i.cause&&Object.defineProperty(i,"cause",{value:e,configurable:!0}),i.name=e&&e.name||"Error",a&&Object.assign(i,a),i};function Dl(e){return _l.isPlainObject(e)||_l.isArray(e)}function Sl(e){return _l.endsWith(e,"[]")?e.slice(0,-2):e}function Al(e,t,n){return e?e.concat(t).map(function(e,t){return e=Sl(e),!n&&t?"["+e+"]":e}).join(n?".":""):t}const Tl=_l.toFlatObject(_l,{},null,function(e){return/^is[A-Z]/.test(e)});function Rl(e,t,n){if(!_l.isObject(e))throw new TypeError("target must be an object");t=t||new FormData;const r=(n=_l.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(e,t){return!_l.isUndefined(t[e])})).metaTokens,o=n.visitor||c,a=n.dots,i=n.indexes,s=(n.Blob||"undefined"!=typeof Blob&&Blob)&&_l.isSpecCompliantForm(t);if(!_l.isFunction(o))throw new TypeError("visitor must be a function");function l(e){if(null===e)return"";if(_l.isDate(e))return e.toISOString();if(_l.isBoolean(e))return e.toString();if(!s&&_l.isBlob(e))throw new kl("Blob is not supported. Use a Buffer instead.");return _l.isArrayBuffer(e)||_l.isTypedArray(e)?s&&"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}function c(e,n,o){let s=e;if(e&&!o&&"object"==typeof e)if(_l.endsWith(n,"{}"))n=r?n:n.slice(0,-2),e=JSON.stringify(e);else if(_l.isArray(e)&&function(e){return _l.isArray(e)&&!e.some(Dl)}(e)||(_l.isFileList(e)||_l.endsWith(n,"[]"))&&(s=_l.toArray(e)))return n=Sl(n),s.forEach(function(e,r){!_l.isUndefined(e)&&null!==e&&t.append(!0===i?Al([n],r,a):null===i?n:n+"[]",l(e))}),!1;return!!Dl(e)||(t.append(Al(o,n,a),l(e)),!1)}const u=[],d=Object.assign(Tl,{defaultVisitor:c,convertValue:l,isVisitable:Dl});if(!_l.isObject(e))throw new TypeError("data must be an object");return function e(n,r){if(!_l.isUndefined(n)){if(-1!==u.indexOf(n))throw Error("Circular reference detected in "+r.join("."));u.push(n),_l.forEach(n,function(n,a){!0===(!(_l.isUndefined(n)||null===n)&&o.call(t,n,_l.isString(a)?a.trim():a,r,d))&&e(n,r?r.concat(a):[a])}),u.pop()}}(e),t}function Ol(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(e){return t[e]})}function Fl(e,t){this._pairs=[],e&&Rl(e,this,t)}const Ml=Fl.prototype;function jl(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function Ll(e,t,n){if(!t)return e;const r=n&&n.encode||jl;_l.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let a;if(a=o?o(t,n):_l.isURLSearchParams(t)?t.toString():new Fl(t,n).toString(r),a){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}Ml.append=function(e,t){this._pairs.push([e,t])},Ml.toString=function(e){const t=e?function(t){return e.call(this,t,Ol)}:Ol;return this._pairs.map(function(e){return t(e[0])+"="+t(e[1])},"").join("&")};var Il=class{constructor(){this.handlers=[]}use(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(e){_l.forEach(this.handlers,function(t){null!==t&&e(t)})}},Pl={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},zl={isBrowser:!0,classes:{URLSearchParams:"undefined"!=typeof URLSearchParams?URLSearchParams:Fl,FormData:"undefined"!=typeof FormData?FormData:null,Blob:"undefined"!=typeof Blob?Blob:null},protocols:["http","https","file","blob","url","data"]};const Bl="undefined"!=typeof window&&"undefined"!=typeof document,ql="object"==typeof navigator&&navigator||void 0,Ul=Bl&&(!ql||["ReactNative","NativeScript","NS"].indexOf(ql.product)<0),Hl="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&"function"==typeof self.importScripts,Wl=Bl&&window.location.href||"http://localhost";var Vl={...Object.freeze({__proto__:null,hasBrowserEnv:Bl,hasStandardBrowserEnv:Ul,hasStandardBrowserWebWorkerEnv:Hl,navigator:ql,origin:Wl}),...zl};function $l(e){function t(e,n,r,o){let a=e[o++];if("__proto__"===a)return!0;const i=Number.isFinite(+a),s=o>=e.length;if(a=!a&&_l.isArray(r)?r.length:a,s)return _l.hasOwnProp(r,a)?r[a]=[r[a],n]:r[a]=n,!i;r[a]&&_l.isObject(r[a])||(r[a]=[]);return t(e,n,r[a],o)&&_l.isArray(r[a])&&(r[a]=function(e){const t={},n=Object.keys(e);let r;const o=n.length;let a;for(r=0;r<o;r++)a=n[r],t[a]=e[a];return t}(r[a])),!i}if(_l.isFormData(e)&&_l.isFunction(e.entries)){const n={};return _l.forEachEntry(e,(e,r)=>{t(function(e){return _l.matchAll(/\w+|\[(\w*)]/g,e).map(e=>"[]"===e[0]?"":e[1]||e[0])}(e),r,n,0)}),n}return null}const Gl={transitional:Pl,adapter:["xhr","http","fetch"],transformRequest:[function(e,t){const n=t.getContentType()||"",r=n.indexOf("application/json")>-1,o=_l.isObject(e);o&&_l.isHTMLForm(e)&&(e=new FormData(e));if(_l.isFormData(e))return r?JSON.stringify($l(e)):e;if(_l.isArrayBuffer(e)||_l.isBuffer(e)||_l.isStream(e)||_l.isFile(e)||_l.isBlob(e)||_l.isReadableStream(e))return e;if(_l.isArrayBufferView(e))return e.buffer;if(_l.isURLSearchParams(e))return t.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),e.toString();let a;if(o){if(n.indexOf("application/x-www-form-urlencoded")>-1)return function(e,t){return Rl(e,new Vl.classes.URLSearchParams,{visitor:function(e,t,n,r){return Vl.isNode&&_l.isBuffer(e)?(this.append(t,e.toString("base64")),!1):r.defaultVisitor.apply(this,arguments)},...t})}(e,this.formSerializer).toString();if((a=_l.isFileList(e))||n.indexOf("multipart/form-data")>-1){const t=this.env&&this.env.FormData;return Rl(a?{"files[]":e}:e,t&&new t,this.formSerializer)}}return o||r?(t.setContentType("application/json",!1),function(e,t,n){if(_l.isString(e))try{return(t||JSON.parse)(e),_l.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){const t=this.transitional||Gl.transitional,n=t&&t.forcedJSONParsing,r="json"===this.responseType;if(_l.isResponse(e)||_l.isReadableStream(e))return e;if(e&&_l.isString(e)&&(n&&!this.responseType||r)){const n=!(t&&t.silentJSONParsing)&&r;try{return JSON.parse(e,this.parseReviver)}catch(e){if(n){if("SyntaxError"===e.name)throw kl.from(e,kl.ERR_BAD_RESPONSE,this,null,this.response);throw e}}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Vl.classes.FormData,Blob:Vl.classes.Blob},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};_l.forEach(["delete","get","head","post","put","patch"],e=>{Gl.headers[e]={}});var Kl=Gl;const Zl=_l.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]);const Yl=Symbol("internals");function Jl(e){return e&&String(e).trim().toLowerCase()}function Xl(e){return!1===e||null==e?e:_l.isArray(e)?e.map(Xl):String(e)}function Ql(e,t,n,r,o){return _l.isFunction(r)?r.call(this,t,n):(o&&(t=n),_l.isString(t)?_l.isString(r)?-1!==t.indexOf(r):_l.isRegExp(r)?r.test(t):void 0:void 0)}class ec{constructor(e){e&&this.set(e)}set(e,t,n){const r=this;function o(e,t,n){const o=Jl(t);if(!o)throw new Error("header name must be a non-empty string");const a=_l.findKey(r,o);(!a||void 0===r[a]||!0===n||void 0===n&&!1!==r[a])&&(r[a||t]=Xl(e))}const a=(e,t)=>_l.forEach(e,(e,n)=>o(e,n,t));if(_l.isPlainObject(e)||e instanceof this.constructor)a(e,t);else if(_l.isString(e)&&(e=e.trim())&&!/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim()))a((e=>{const t={};let n,r,o;return e&&e.split("\n").forEach(function(e){o=e.indexOf(":"),n=e.substring(0,o).trim().toLowerCase(),r=e.substring(o+1).trim(),!n||t[n]&&Zl[n]||("set-cookie"===n?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t})(e),t);else if(_l.isObject(e)&&_l.isIterable(e)){let n,r,o={};for(const t of e){if(!_l.isArray(t))throw TypeError("Object iterator must return a key-value pair");o[r=t[0]]=(n=o[r])?_l.isArray(n)?[...n,t[1]]:[n,t[1]]:t[1]}a(o,t)}else null!=e&&o(t,e,n);return this}get(e,t){if(e=Jl(e)){const n=_l.findKey(this,e);if(n){const e=this[n];if(!t)return e;if(!0===t)return function(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}(e);if(_l.isFunction(t))return t.call(this,e,n);if(_l.isRegExp(t))return t.exec(e);throw new TypeError("parser must be boolean|regexp|function")}}}has(e,t){if(e=Jl(e)){const n=_l.findKey(this,e);return!(!n||void 0===this[n]||t&&!Ql(0,this[n],n,t))}return!1}delete(e,t){const n=this;let r=!1;function o(e){if(e=Jl(e)){const o=_l.findKey(n,e);!o||t&&!Ql(0,n[o],o,t)||(delete n[o],r=!0)}}return _l.isArray(e)?e.forEach(o):o(e),r}clear(e){const t=Object.keys(this);let n=t.length,r=!1;for(;n--;){const o=t[n];e&&!Ql(0,this[o],o,e,!0)||(delete this[o],r=!0)}return r}normalize(e){const t=this,n={};return _l.forEach(this,(r,o)=>{const a=_l.findKey(n,o);if(a)return t[a]=Xl(r),void delete t[o];const i=e?function(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(e,t,n)=>t.toUpperCase()+n)}(o):String(o).trim();i!==o&&delete t[o],t[i]=Xl(r),n[i]=!0}),this}concat(...e){return this.constructor.concat(this,...e)}toJSON(e){const t=Object.create(null);return _l.forEach(this,(n,r)=>{null!=n&&!1!==n&&(t[r]=e&&_l.isArray(n)?n.join(", "):n)}),t}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([e,t])=>e+": "+t).join("\n")}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(e){return e instanceof this?e:new this(e)}static concat(e,...t){const n=new this(e);return t.forEach(e=>n.set(e)),n}static accessor(e){const t=(this[Yl]=this[Yl]={accessors:{}}).accessors,n=this.prototype;function r(e){const r=Jl(e);t[r]||(!function(e,t){const n=_l.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(e,n,o){return this[r].call(this,t,e,n,o)},configurable:!0})})}(n,e),t[r]=!0)}return _l.isArray(e)?e.forEach(r):r(e),this}}ec.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),_l.reduceDescriptors(ec.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(e){this[n]=e}}}),_l.freezeMethods(ec);var tc=ec;function nc(e,t){const n=this||Kl,r=t||n,o=tc.from(r.headers);let a=r.data;return _l.forEach(e,function(e){a=e.call(n,a,o.normalize(),t?t.status:void 0)}),o.normalize(),a}function rc(e){return!(!e||!e.__CANCEL__)}function oc(e,t,n){kl.call(this,null==e?"canceled":e,kl.ERR_CANCELED,t,n),this.name="CanceledError"}function ac(e,t,n){const r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new kl("Request failed with status code "+n.status,[kl.ERR_BAD_REQUEST,kl.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}_l.inherits(oc,kl,{__CANCEL__:!0});const ic=(e,t,n=3)=>{let r=0;const o=function(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o,a=0,i=0;return t=void 0!==t?t:1e3,function(s){const l=Date.now(),c=r[i];o||(o=l),n[a]=s,r[a]=l;let u=i,d=0;for(;u!==a;)d+=n[u++],u%=e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),l-o<t)return;const f=c&&l-c;return f?Math.round(1e3*d/f):void 0}}(50,250);return function(e,t){let n,r,o=0,a=1e3/t;const i=(t,a=Date.now())=>{o=a,n=null,r&&(clearTimeout(r),r=null),e(...t)};return[(...e)=>{const t=Date.now(),s=t-o;s>=a?i(e,t):(n=e,r||(r=setTimeout(()=>{r=null,i(n)},a-s)))},()=>n&&i(n)]}(n=>{const a=n.loaded,i=n.lengthComputable?n.total:void 0,s=a-r,l=o(s);r=a;e({loaded:a,total:i,progress:i?a/i:void 0,bytes:s,rate:l||void 0,estimated:l&&i&&a<=i?(i-a)/l:void 0,event:n,lengthComputable:null!=i,[t?"download":"upload"]:!0})},n)},sc=(e,t)=>{const n=null!=e;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},lc=e=>(...t)=>_l.asap(()=>e(...t));var cc=Vl.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Vl.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Vl.origin),Vl.navigator&&/(msie|trident)/i.test(Vl.navigator.userAgent)):()=>!0,uc=Vl.hasStandardBrowserEnv?{write(e,t,n,r,o,a,i){if("undefined"==typeof document)return;const s=[`${e}=${encodeURIComponent(t)}`];_l.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),_l.isString(r)&&s.push(`path=${r}`),_l.isString(o)&&s.push(`domain=${o}`),!0===a&&s.push("secure"),_l.isString(i)&&s.push(`SameSite=${i}`),document.cookie=s.join("; ")},read(e){if("undefined"==typeof document)return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read:()=>null,remove(){}};function dc(e,t,n){let r=!/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t);return e&&(r||0==n)?function(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t):t}const fc=e=>e instanceof tc?{...e}:e;function pc(e,t){t=t||{};const n={};function r(e,t,n,r){return _l.isPlainObject(e)&&_l.isPlainObject(t)?_l.merge.call({caseless:r},e,t):_l.isPlainObject(t)?_l.merge({},t):_l.isArray(t)?t.slice():t}function o(e,t,n,o){return _l.isUndefined(t)?_l.isUndefined(e)?void 0:r(void 0,e,0,o):r(e,t,0,o)}function a(e,t){if(!_l.isUndefined(t))return r(void 0,t)}function i(e,t){return _l.isUndefined(t)?_l.isUndefined(e)?void 0:r(void 0,e):r(void 0,t)}function s(n,o,a){return a in t?r(n,o):a in e?r(void 0,n):void 0}const l={url:a,method:a,data:a,baseURL:i,transformRequest:i,transformResponse:i,paramsSerializer:i,timeout:i,timeoutMessage:i,withCredentials:i,withXSRFToken:i,adapter:i,responseType:i,xsrfCookieName:i,xsrfHeaderName:i,onUploadProgress:i,onDownloadProgress:i,decompress:i,maxContentLength:i,maxBodyLength:i,beforeRedirect:i,transport:i,httpAgent:i,httpsAgent:i,cancelToken:i,socketPath:i,responseEncoding:i,validateStatus:s,headers:(e,t,n)=>o(fc(e),fc(t),0,!0)};return _l.forEach(Object.keys({...e,...t}),function(r){const a=l[r]||o,i=a(e[r],t[r],r);_l.isUndefined(i)&&a!==s||(n[r]=i)}),n}var mc=e=>{const t=pc({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:a,headers:i,auth:s}=t;if(t.headers=i=tc.from(i),t.url=Ll(dc(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&i.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),_l.isFormData(n))if(Vl.hasStandardBrowserEnv||Vl.hasStandardBrowserWebWorkerEnv)i.setContentType(void 0);else if(_l.isFunction(n.getHeaders)){const e=n.getHeaders(),t=["content-type","content-length"];Object.entries(e).forEach(([e,n])=>{t.includes(e.toLowerCase())&&i.set(e,n)})}if(Vl.hasStandardBrowserEnv&&(r&&_l.isFunction(r)&&(r=r(t)),r||!1!==r&&cc(t.url))){const e=o&&a&&uc.read(a);e&&i.set(o,e)}return t};var hc="undefined"!=typeof XMLHttpRequest&&function(e){return new Promise(function(t,n){const r=mc(e);let o=r.data;const a=tc.from(r.headers).normalize();let i,s,l,c,u,{responseType:d,onUploadProgress:f,onDownloadProgress:p}=r;function m(){c&&c(),u&&u(),r.cancelToken&&r.cancelToken.unsubscribe(i),r.signal&&r.signal.removeEventListener("abort",i)}let h=new XMLHttpRequest;function g(){if(!h)return;const r=tc.from("getAllResponseHeaders"in h&&h.getAllResponseHeaders());ac(function(e){t(e),m()},function(e){n(e),m()},{data:d&&"text"!==d&&"json"!==d?h.response:h.responseText,status:h.status,statusText:h.statusText,headers:r,config:e,request:h}),h=null}h.open(r.method.toUpperCase(),r.url,!0),h.timeout=r.timeout,"onloadend"in h?h.onloadend=g:h.onreadystatechange=function(){h&&4===h.readyState&&(0!==h.status||h.responseURL&&0===h.responseURL.indexOf("file:"))&&setTimeout(g)},h.onabort=function(){h&&(n(new kl("Request aborted",kl.ECONNABORTED,e,h)),h=null)},h.onerror=function(t){const r=new kl(t&&t.message?t.message:"Network Error",kl.ERR_NETWORK,e,h);r.event=t||null,n(r),h=null},h.ontimeout=function(){let t=r.timeout?"timeout of "+r.timeout+"ms exceeded":"timeout exceeded";const o=r.transitional||Pl;r.timeoutErrorMessage&&(t=r.timeoutErrorMessage),n(new kl(t,o.clarifyTimeoutError?kl.ETIMEDOUT:kl.ECONNABORTED,e,h)),h=null},void 0===o&&a.setContentType(null),"setRequestHeader"in h&&_l.forEach(a.toJSON(),function(e,t){h.setRequestHeader(t,e)}),_l.isUndefined(r.withCredentials)||(h.withCredentials=!!r.withCredentials),d&&"json"!==d&&(h.responseType=r.responseType),p&&([l,u]=ic(p,!0),h.addEventListener("progress",l)),f&&h.upload&&([s,c]=ic(f),h.upload.addEventListener("progress",s),h.upload.addEventListener("loadend",c)),(r.cancelToken||r.signal)&&(i=t=>{h&&(n(!t||t.type?new oc(null,e,h):t),h.abort(),h=null)},r.cancelToken&&r.cancelToken.subscribe(i),r.signal&&(r.signal.aborted?i():r.signal.addEventListener("abort",i)));const b=function(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}(r.url);b&&-1===Vl.protocols.indexOf(b)?n(new kl("Unsupported protocol "+b+":",kl.ERR_BAD_REQUEST,e)):h.send(o||null)})};var gc=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let n,r=new AbortController;const o=function(e){if(!n){n=!0,i();const t=e instanceof Error?e:this.reason;r.abort(t instanceof kl?t:new oc(t instanceof Error?t.message:t))}};let a=t&&setTimeout(()=>{a=null,o(new kl(`timeout ${t} of ms exceeded`,kl.ETIMEDOUT))},t);const i=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(e=>{e.unsubscribe?e.unsubscribe(o):e.removeEventListener("abort",o)}),e=null)};e.forEach(e=>e.addEventListener("abort",o));const{signal:s}=r;return s.unsubscribe=()=>_l.asap(i),s}};const bc=function*(e,t){let n=e.byteLength;if(!t||n<t)return void(yield e);let r,o=0;for(;o<n;)r=o+t,yield e.slice(o,r),o=r},vc=async function*(e){if(e[Symbol.asyncIterator])return void(yield*e);const t=e.getReader();try{for(;;){const{done:e,value:n}=await t.read();if(e)break;yield n}}finally{await t.cancel()}},yc=(e,t,n,r)=>{const o=async function*(e,t){for await(const n of vc(e))yield*bc(n,t)}(e,t);let a,i=0,s=e=>{a||(a=!0,r&&r(e))};return new ReadableStream({async pull(e){try{const{done:t,value:r}=await o.next();if(t)return s(),void e.close();let a=r.byteLength;if(n){let e=i+=a;n(e)}e.enqueue(new Uint8Array(r))}catch(e){throw s(e),e}},cancel:e=>(s(e),o.return())},{highWaterMark:2})},{isFunction:wc}=_l,xc=(({Request:e,Response:t})=>({Request:e,Response:t}))(_l.global),{ReadableStream:Ec,TextEncoder:_c}=_l.global,kc=(e,...t)=>{try{return!!e(...t)}catch(e){return!1}},Cc=e=>{e=_l.merge.call({skipUndefined:!0},xc,e);const{fetch:t,Request:n,Response:r}=e,o=t?wc(t):"function"==typeof fetch,a=wc(n),i=wc(r);if(!o)return!1;const s=o&&wc(Ec),l=o&&("function"==typeof _c?(c=new _c,e=>c.encode(e)):async e=>new Uint8Array(await new n(e).arrayBuffer()));var c;const u=a&&s&&kc(()=>{let e=!1;const t=new n(Vl.origin,{body:new Ec,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),d=i&&s&&kc(()=>_l.isReadableStream(new r("").body)),f={stream:d&&(e=>e.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(e=>{!f[e]&&(f[e]=(t,n)=>{let r=t&&t[e];if(r)return r.call(t);throw new kl(`Response type '${e}' is not supported`,kl.ERR_NOT_SUPPORT,n)})});const p=async(e,t)=>{const r=_l.toFiniteNumber(e.getContentLength());return null==r?(async e=>{if(null==e)return 0;if(_l.isBlob(e))return e.size;if(_l.isSpecCompliantForm(e)){const t=new n(Vl.origin,{method:"POST",body:e});return(await t.arrayBuffer()).byteLength}return _l.isArrayBufferView(e)||_l.isArrayBuffer(e)?e.byteLength:(_l.isURLSearchParams(e)&&(e+=""),_l.isString(e)?(await l(e)).byteLength:void 0)})(t):r};return async e=>{let{url:o,method:i,data:s,signal:l,cancelToken:c,timeout:m,onDownloadProgress:h,onUploadProgress:g,responseType:b,headers:v,withCredentials:y="same-origin",fetchOptions:w}=mc(e),x=t||fetch;b=b?(b+"").toLowerCase():"text";let E=gc([l,c&&c.toAbortSignal()],m),_=null;const k=E&&E.unsubscribe&&(()=>{E.unsubscribe()});let C;try{if(g&&u&&"get"!==i&&"head"!==i&&0!==(C=await p(v,s))){let e,t=new n(o,{method:"POST",body:s,duplex:"half"});if(_l.isFormData(s)&&(e=t.headers.get("content-type"))&&v.setContentType(e),t.body){const[e,n]=sc(C,ic(lc(g)));s=yc(t.body,65536,e,n)}}_l.isString(y)||(y=y?"include":"omit");const t=a&&"credentials"in n.prototype,l={...w,signal:E,method:i.toUpperCase(),headers:v.normalize().toJSON(),body:s,duplex:"half",credentials:t?y:void 0};_=a&&new n(o,l);let c=await(a?x(_,w):x(o,l));const m=d&&("stream"===b||"response"===b);if(d&&(h||m&&k)){const e={};["status","statusText","headers"].forEach(t=>{e[t]=c[t]});const t=_l.toFiniteNumber(c.headers.get("content-length")),[n,o]=h&&sc(t,ic(lc(h),!0))||[];c=new r(yc(c.body,65536,n,()=>{o&&o(),k&&k()}),e)}b=b||"text";let N=await f[_l.findKey(f,b)||"text"](c,e);return!m&&k&&k(),await new Promise((t,n)=>{ac(t,n,{data:N,headers:tc.from(c.headers),status:c.status,statusText:c.statusText,config:e,request:_})})}catch(t){if(k&&k(),t&&"TypeError"===t.name&&/Load failed|fetch/i.test(t.message))throw Object.assign(new kl("Network Error",kl.ERR_NETWORK,e,_),{cause:t.cause||t});throw kl.from(t,t&&t.code,e,_)}}},Nc=new Map,Dc=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,a=[r,o,n];let i,s,l=a.length,c=Nc;for(;l--;)i=a[l],s=c.get(i),void 0===s&&c.set(i,s=l?new Map:Cc(t)),c=s;return s};Dc();const Sc={http:null,xhr:hc,fetch:{get:Dc}};_l.forEach(Sc,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch(e){}Object.defineProperty(e,"adapterName",{value:t})}});const Ac=e=>`- ${e}`,Tc=e=>_l.isFunction(e)||null===e||!1===e;var Rc={getAdapter:function(e,t){e=_l.isArray(e)?e:[e];const{length:n}=e;let r,o;const a={};for(let i=0;i<n;i++){let n;if(r=e[i],o=r,!Tc(r)&&(o=Sc[(n=String(r)).toLowerCase()],void 0===o))throw new kl(`Unknown adapter '${n}'`);if(o&&(_l.isFunction(o)||(o=o.get(t))))break;a[n||"#"+i]=o}if(!o){const e=Object.entries(a).map(([e,t])=>`adapter ${e} `+(!1===t?"is not supported by the environment":"is not available in the build"));throw new kl("There is no suitable adapter to dispatch the request "+(n?e.length>1?"since :\n"+e.map(Ac).join("\n"):" "+Ac(e[0]):"as no adapter specified"),"ERR_NOT_SUPPORT")}return o},adapters:Sc};function Oc(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oc(null,e)}function Fc(e){Oc(e),e.headers=tc.from(e.headers),e.data=nc.call(e,e.transformRequest),-1!==["post","put","patch"].indexOf(e.method)&&e.headers.setContentType("application/x-www-form-urlencoded",!1);return Rc.getAdapter(e.adapter||Kl.adapter,e)(e).then(function(t){return Oc(e),t.data=nc.call(e,e.transformResponse,t),t.headers=tc.from(t.headers),t},function(t){return rc(t)||(Oc(e),t&&t.response&&(t.response.data=nc.call(e,e.transformResponse,t.response),t.response.headers=tc.from(t.response.headers))),Promise.reject(t)})}const Mc="1.13.2",jc={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{jc[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});const Lc={};jc.transitional=function(e,t,n){return(r,o,a)=>{if(!1===e)throw new kl(function(e,t){return"[Axios v"+Mc+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}(o," has been removed"+(t?" in "+t:"")),kl.ERR_DEPRECATED);return t&&!Lc[o]&&(Lc[o]=!0),!e||e(r,o,a)}},jc.spelling=function(e){return(e,t)=>!0};var Ic={assertOptions:function(e,t,n){if("object"!=typeof e)throw new kl("options must be an object",kl.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const a=r[o],i=t[a];if(i){const t=e[a],n=void 0===t||i(t,a,e);if(!0!==n)throw new kl("option "+a+" must be "+n,kl.ERR_BAD_OPTION_VALUE);continue}if(!0!==n)throw new kl("Unknown option "+a,kl.ERR_BAD_OPTION)}},validators:jc};const Pc=Ic.validators;class zc{constructor(e){this.defaults=e||{},this.interceptors={request:new Il,response:new Il}}async request(e,t){try{return await this._request(e,t)}catch(e){if(e instanceof Error){let t={};Error.captureStackTrace?Error.captureStackTrace(t):t=new Error;const n=t.stack?t.stack.replace(/^.+\n/,""):"";try{e.stack?n&&!String(e.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(e.stack+="\n"+n):e.stack=n}catch(e){}}throw e}}_request(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},t=pc(this.defaults,t);const{transitional:n,paramsSerializer:r,headers:o}=t;void 0!==n&&Ic.assertOptions(n,{silentJSONParsing:Pc.transitional(Pc.boolean),forcedJSONParsing:Pc.transitional(Pc.boolean),clarifyTimeoutError:Pc.transitional(Pc.boolean)},!1),null!=r&&(_l.isFunction(r)?t.paramsSerializer={serialize:r}:Ic.assertOptions(r,{encode:Pc.function,serialize:Pc.function},!0)),void 0!==t.allowAbsoluteUrls||(void 0!==this.defaults.allowAbsoluteUrls?t.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:t.allowAbsoluteUrls=!0),Ic.assertOptions(t,{baseUrl:Pc.spelling("baseURL"),withXsrfToken:Pc.spelling("withXSRFToken")},!0),t.method=(t.method||this.defaults.method||"get").toLowerCase();let a=o&&_l.merge(o.common,o[t.method]);o&&_l.forEach(["delete","get","head","post","put","patch","common"],e=>{delete o[e]}),t.headers=tc.concat(a,o);const i=[];let s=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(s=s&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});const l=[];let c;this.interceptors.response.forEach(function(e){l.push(e.fulfilled,e.rejected)});let u,d=0;if(!s){const e=[Fc.bind(this),void 0];for(e.unshift(...i),e.push(...l),u=e.length,c=Promise.resolve(t);d<u;)c=c.then(e[d++],e[d++]);return c}u=i.length;let f=t;for(;d<u;){const e=i[d++],t=i[d++];try{f=e(f)}catch(e){t.call(this,e);break}}try{c=Fc.call(this,f)}catch(e){return Promise.reject(e)}for(d=0,u=l.length;d<u;)c=c.then(l[d++],l[d++]);return c}getUri(e){return Ll(dc((e=pc(this.defaults,e)).baseURL,e.url,e.allowAbsoluteUrls),e.params,e.paramsSerializer)}}_l.forEach(["delete","get","head","options"],function(e){zc.prototype[e]=function(t,n){return this.request(pc(n||{},{method:e,url:t,data:(n||{}).data}))}}),_l.forEach(["post","put","patch"],function(e){function t(t){return function(n,r,o){return this.request(pc(o||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:r}))}}zc.prototype[e]=t(),zc.prototype[e+"Form"]=t(!0)});var Bc=zc;class qc{constructor(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");let t;this.promise=new Promise(function(e){t=e});const n=this;this.promise.then(e=>{if(!n._listeners)return;let t=n._listeners.length;for(;t-- >0;)n._listeners[t](e);n._listeners=null}),this.promise.then=e=>{let t;const r=new Promise(e=>{n.subscribe(e),t=e}).then(e);return r.cancel=function(){n.unsubscribe(t)},r},e(function(e,r,o){n.reason||(n.reason=new oc(e,r,o),t(n.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]}unsubscribe(e){if(!this._listeners)return;const t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}toAbortSignal(){const e=new AbortController,t=t=>{e.abort(t)};return this.subscribe(t),e.signal.unsubscribe=()=>this.unsubscribe(t),e.signal}static source(){let e;return{token:new qc(function(t){e=t}),cancel:e}}}var Uc=qc;const Hc={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Hc).forEach(([e,t])=>{Hc[t]=e});var Wc=Hc;const Vc=function e(t){const n=new Bc(t),r=Fs(Bc.prototype.request,n);return _l.extend(r,Bc.prototype,n,{allOwnKeys:!0}),_l.extend(r,n,null,{allOwnKeys:!0}),r.create=function(n){return e(pc(t,n))},r}(Kl);Vc.Axios=Bc,Vc.CanceledError=oc,Vc.CancelToken=Uc,Vc.isCancel=rc,Vc.VERSION=Mc,Vc.toFormData=Rl,Vc.AxiosError=kl,Vc.Cancel=Vc.CanceledError,Vc.all=function(e){return Promise.all(e)},Vc.spread=function(e){return function(t){return e.apply(null,t)}},Vc.isAxiosError=function(e){return _l.isObject(e)&&!0===e.isAxiosError},Vc.mergeConfig=pc,Vc.AxiosHeaders=tc,Vc.formToJSON=e=>$l(_l.isHTMLForm(e)?new FormData(e):e),Vc.getAdapter=Rc.getAdapter,Vc.HttpStatusCode=Wc,Vc.default=Vc;var $c=Vc.create({baseURL:"/api/cms",timeout:1e4,headers:{"Content-Type":"application/json"}}),Gc=new Map;$c.interceptors.request.use(function(e){e.url&&e.url.startsWith("http")&&(e.baseURL="");var t=localStorage.getItem("cms_token");t&&(e.headers.Authorization="Bearer ".concat(t));var n=localStorage.getItem("cms_session_id");return n&&(e.headers["X-Session-Id"]=n),e},function(e){return Promise.reject(e)}),$c.interceptors.response.use(function(e){return e},function(e){var t="请求错误",n=!1;if(e.response){var r=e.response.status,o=e.response.data;401===r?"登录已过期,请重新登录"===(null==o?void 0:o.message)?(t="登录已过期,请重新登录",n=!0):"认证信息无效"===(null==o?void 0:o.message)?(t="认证信息无效,请重新登录",n=!0):(t="认证失败,请登录",n=!0):t=(null==o?void 0:o.message)||"HTTP ".concat(r,": ").concat(e.response.statusText)}else t=e.request?"网络连接失败,请检查网络状态":e.message||"请求错误";return n?(localStorage.removeItem("cms_token"),localStorage.removeItem("cms_user"),"/login"!==window.location.pathname&&"/"!==window.location.pathname&&(Os.error(t),setTimeout(function(){window.location.reload()},1e3))):Os.error(t),Promise.reject(e)});var Kc,Zc=function(e,t,n){var r=e;if(t){var o=new URLSearchParams(t).toString();r=r+(r.includes("?")?"&":"?")+o}var a="GET ".concat(r),i=Gc.get(a);if(i)return i;var s=$c.get(r,n).then(function(e){return e.data}).finally(function(){Gc.delete(a)});return Gc.set(a,s),s},Yc=function(e,t,n){return $c.post(e,t,n).then(function(e){return e.data})},Jc=function(e,t,n){return $c.put(e,t,n).then(function(e){return e.data})},Xc=function(e,t){return $c.delete(e,t).then(function(e){return e.data})};function Qc(){return Kc}function eu(){return Qc()}function tu(e){return e?e.replace(/-/g,"_")+"_":""}function nu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qc(),n=(e||"").trim();if(!n)return n;var r=tu(t);return r?n.startsWith(r)?n:"".concat(r).concat(n):n}function ru(e){return!e||!e.readOnly&&!1!==e.editable}function ou(e){return null!=e&&("string"==typeof e?""!==e.trim():!Array.isArray(e)||e.length>0)}function au(e,t){if(!e||0===e.length)return null;var n,r=m(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(null==o?void 0:o.required)if("id"!==o.name)if(ru(o))if("relation"===o.type&&o.relation){if(!ou(t[o.relation.foreignKey||"".concat(o.relation.target,"_id")]))return o}else if(!ou(t[o.name]))return o}}catch(e){r.e(e)}finally{r.f()}return null}function iu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qc(),n=(e||"").trim();if(!n)return n;var r=tu(t);if(!r)return n;if(n.startsWith(r))return n;throw new Error('表名必须包含当前 session 前缀 "'.concat(r,'",请传完整表名'))}function su(e){Kc=e;try{localStorage.setItem("cms_session_id",e)}catch(e){}}var lu=function(){return Zc("/auth/signup/status/".concat(tu(Qc()),"cms_users"))},cu=function(e){return Yc("/auth/signup/".concat(tu(Qc()),"cms_users"),e)},uu=function(e){return Yc("/auth/login/".concat(tu(Qc()),"cms_users"),e)},du=function(){return Yc("/auth/verify/".concat(tu(Qc()),"cms_users"))},fu=function(){return Zc("/auth/user/".concat(tu(Qc()),"cms_users"))},pu=function(){localStorage.removeItem("cms_token"),localStorage.removeItem("cms_user")},mu=function(){return localStorage.getItem("cms_token")},hu=function(){var e=localStorage.getItem("cms_user");return e?JSON.parse(e):null},gu=function(e,t){var n=iu(e),r=t?Object.assign({},t):void 0;return(null==r?void 0:r.filters)&&Array.isArray(r.filters)&&(r.filters=JSON.stringify(r.filters)),Zc("/data/".concat(n),r)},bu=function(e,t){var n=iu(e);return Zc("/relation/".concat(n,"/options"),t)},vu=function(e,t){var n=iu(e);return Yc("/data/".concat(n),t)},yu=function(e,t){var n=iu(e);return Jc("/data/".concat(n),t)},wu=function(e,t){var n=iu(e);return Xc("/data/".concat(n,"?id=").concat(t))},xu={"zh-CN":{common:{confirm:"确认",cancel:"取消",save:"保存",delete:"删除",edit:"编辑",add:"添加",search:"搜索",filter:"筛选",reset:"重置",submit:"提交",back:"返回",next:"下一页",previous:"上一页",loading:"加载中...",success:"成功",error:"错误",warning:"警告",info:"信息",close:"关闭",refresh:"刷新",export:"导出",import:"导入",view:"查看",create:"创建",update:"更新",actions:"操作",operation:"操作",total:"共",page:"页",pageSize:"每页",goto:"跳转"},auth:{login:"登录",logout:"登出",username:"用户名",password:"密码",email:"邮箱",signup:"注册",welcome:"欢迎",loginSuccess:"登录成功",loginFailed:"登录失败",logoutSuccess:"已成功登出",logoutConfirm:"确定要登出系统吗?",pleaseLogin:"请登录",invalidCredentials:"用户名或密码错误",createAdminAccount:"创建管理员账号",adminCreatedSuccess:"管理员账号创建成功",noAdmin:"系统中还没有管理员账号",firstTimeSetup:"首次使用,请创建管理员账号"},data:{dataManagement:"内容管理",dataList:"内容列表",addData:"新建记录",editData:"编辑记录",deleteData:"删除记录",deleteConfirm:"确定要删除这条记录吗?",deleteSuccess:"删除成功",deleteFailed:"删除失败",createSuccess:"创建成功",createFailed:"创建失败",updateSuccess:"更新成功",updateFailed:"更新失败",loadFailed:"加载失败",noData:"暂无数据",selectModel:"选择内容类型",selectModelFirst:"请先选择内容类型",selectModelPrompt:"请选择数据模型",searchPlaceholder:"搜索...",searchData:"搜索数据...",filterTitle:"筛选条件",addFilter:"添加筛选",clearFilters:"清除筛选",totalRecords:"条记录",perPage:"条/页",newData:"新建记录",newRecord:"新建数据",createdAt:"创建时间",updatedAt:"更新时间",yes:"是",no:"否",operationFailed:"操作失败",deleteConfirmFull:"确定要删除这条数据吗?此操作不可撤销。",updating:"更新中...",creating:"创建中...",viewAndManage:"查看和管理",ofData:"的数据",totalCount:"共",records:"条数据",page:"第",pageOf:"页,共",pages:"页",previousPage:"上一页",nextPage:"下一页",tableName:"表名",editRecord:"编辑数据",createRecord:"新建数据",loadingOptions:"加载中...",pleaseSelect:"请选择",clickToOpenImage:"点击打开原图",fieldError:"字段",loadRelationOptionsFailed:"加载关联选项失败",assetUploadButton:"上传文件",assetUploading:"上传中...",assetReplace:"替换文件",assetClear:"清空",assetEmpty:"暂未上传资源",assetAcceptHint:"允许格式",assetMaxSizeHint:"大小限制",assetUploadSuccess:"上传成功",assetUploadFailed:"上传失败",assetUploadHandlerMissing:"当前 CMS 未配置上传处理器",assetUploadInvalidType:"所选文件类型不受支持",assetUploadTooLarge:"文件大小超过限制",assetUploadInvalidResult:"上传结果无效,未返回 URL",markdownPlaceholder:"请输入 Markdown 内容...",markdownWrite:"编写",markdownPreview:"预览",markdownSplit:"分栏",markdownQuote:"引用",markdownLink:"链接",markdownCode:"代码",markdownClear:"清空",markdownEmpty:"-"},model:{modelManagement:"内容类型管理",modelList:"内容类型列表",addModel:"新增内容类型",editModel:"编辑内容类型",deleteModel:"删除内容类型",deleteConfirm:"确定要删除这个内容类型吗?",modelName:"名称",tableName:"数据库标识符",fields:"字段列表",fieldName:"字段名称",fieldType:"字段类型",fieldComment:"字段描述",required:"必填",unique:"唯一",maxLength:"最大长度",defaultValue:"默认值",addField:"添加字段",removeField:"移除字段",createSuccess:"内容类型创建成功",createFailed:"内容类型创建失败",updateSuccess:"内容类型更新成功",updateFailed:"内容类型更新失败",deleteSuccess:"内容类型删除成功",deleteFailed:"内容类型删除失败",loadFailed:"加载内容类型失败",noModels:"暂无内容类型"},field:{string:"字符串",number:"数字",boolean:"布尔值",date:"日期",datetime:"日期时间",text:"文本",email:"邮箱",url:"链接",json:"JSON",relation:"关联",timestamp:"时间戳",time:"时间",enum:"枚举",select:"下拉选择",asset:"资源上传"},validation:{required:"此字段为必填项",invalidEmail:"请输入有效的邮箱地址",invalidUrl:"请输入有效的URL",maxLength:"超过最大长度限制",minLength:"未达到最小长度要求",invalidFormat:"格式不正确"},settings:{settings:"设置",language:"语言",theme:"主题",general:"通用",advanced:"高级",navigation:"导航",dragToReorder:"拖拽以调整顺序",copyUsername:"点击复制用户名",usernameCopied:"用户名已复制",copyFailed:"复制失败"}},"en-US":{common:{confirm:"Confirm",cancel:"Cancel",save:"Save",delete:"Delete",edit:"Edit",add:"Add",search:"Search",filter:"Filter",reset:"Reset",submit:"Submit",back:"Back",next:"Next",previous:"Previous",loading:"Loading...",success:"Success",error:"Error",warning:"Warning",info:"Info",close:"Close",refresh:"Refresh",export:"Export",import:"Import",view:"View",create:"Create",update:"Update",actions:"Actions",operation:"Operation",total:"Total",page:"Page",pageSize:"Page Size",goto:"Go to"},auth:{login:"Login",logout:"Logout",username:"Username",password:"Password",email:"Email",signup:"Sign Up",welcome:"Welcome",loginSuccess:"Login successful",loginFailed:"Login failed",logoutSuccess:"Logout successful",logoutConfirm:"Are you sure you want to logout?",pleaseLogin:"Please login",invalidCredentials:"Invalid username or password",createAdminAccount:"Create Admin Account",adminCreatedSuccess:"Admin account created successfully",noAdmin:"No admin account exists",firstTimeSetup:"First time setup, please create admin account"},data:{dataManagement:"Content",dataList:"Content List",addData:"New Record",editData:"Edit Record",deleteData:"Delete Record",deleteConfirm:"Are you sure you want to delete this record?",deleteSuccess:"Deleted successfully",deleteFailed:"Delete failed",createSuccess:"Created successfully",createFailed:"Create failed",updateSuccess:"Updated successfully",updateFailed:"Update failed",loadFailed:"Load failed",noData:"No data",selectModel:"Select Content Type",selectModelFirst:"Please select a content type first",selectModelPrompt:"Please select a data model",searchPlaceholder:"Search...",searchData:"Search data...",filterTitle:"Filters",addFilter:"Add Filter",clearFilters:"Clear Filters",totalRecords:"records",perPage:"per page",newData:"New Record",newRecord:"New Data",createdAt:"Created At",updatedAt:"Updated At",yes:"Yes",no:"No",operationFailed:"Operation failed",deleteConfirmFull:"Are you sure you want to delete this data? This action cannot be undone.",updating:"Updating...",creating:"Creating...",viewAndManage:"View and manage",ofData:"data",totalCount:"Total",records:"records",page:"Page",pageOf:"of",pages:"pages",previousPage:"Previous",nextPage:"Next",tableName:"Table",editRecord:"Edit Data",createRecord:"New Data",loadingOptions:"Loading...",pleaseSelect:"Please select",clickToOpenImage:"Click to open image",fieldError:"Field",loadRelationOptionsFailed:"Failed to load relation options",assetUploadButton:"Upload file",assetUploading:"Uploading...",assetReplace:"Replace file",assetClear:"Clear",assetEmpty:"No asset uploaded yet",assetAcceptHint:"Accepted",assetMaxSizeHint:"Max size",assetUploadSuccess:"Upload successful",assetUploadFailed:"Upload failed",assetUploadHandlerMissing:"No upload handler is configured for this CMS",assetUploadInvalidType:"The selected file type is not supported",assetUploadTooLarge:"The selected file exceeds the size limit",assetUploadInvalidResult:"Upload result is invalid because no URL was returned",markdownPlaceholder:"Write markdown here...",markdownWrite:"Write",markdownPreview:"Preview",markdownSplit:"Split",markdownQuote:"Quote",markdownLink:"Link",markdownCode:"Code",markdownClear:"Clear",markdownEmpty:"-"},model:{modelManagement:"Content Types",modelList:"Content Type List",addModel:"New Content Type",editModel:"Edit Content Type",deleteModel:"Delete Content Type",deleteConfirm:"Are you sure you want to delete this content type?",modelName:"Name",tableName:"Database Identifier",fields:"Fields",fieldName:"Field Name",fieldType:"Field Type",fieldComment:"Field Description",required:"Required",unique:"Unique",maxLength:"Max Length",defaultValue:"Default Value",addField:"Add Field",removeField:"Remove Field",createSuccess:"Content type created successfully",createFailed:"Content type creation failed",updateSuccess:"Content type updated successfully",updateFailed:"Content type update failed",deleteSuccess:"Content type deleted successfully",deleteFailed:"Content type deletion failed",loadFailed:"Failed to load content types",noModels:"No content types"},field:{string:"String",number:"Number",boolean:"Boolean",date:"Date",datetime:"Datetime",text:"Text",email:"Email",url:"URL",json:"JSON",relation:"Relation",timestamp:"Timestamp",time:"Time",enum:"Enum",select:"Select",asset:"Asset"},validation:{required:"This field is required",invalidEmail:"Please enter a valid email address",invalidUrl:"Please enter a valid URL",maxLength:"Exceeded maximum length",minLength:"Below minimum length",invalidFormat:"Invalid format"},settings:{settings:"Settings",language:"Language",theme:"Theme",general:"General",advanced:"Advanced",navigation:"Navigation",dragToReorder:"Drag to reorder",copyUsername:"Click to copy username",usernameCopied:"Username copied",copyFailed:"Copy failed"}}},Eu=e.createContext(void 0);function _u(t){var n=t.children,r=t.defaultLocale,o=v(e.useState(r||function(){try{var e=localStorage.getItem("cms_locale");if(e&&("zh-CN"===e||"en-US"===e))return e}catch(e){}return"zh-CN"}()),2),a=o[0],i=o[1],s={locale:a,setLocale:function(e){i(e),function(e){try{localStorage.setItem("cms_locale",e)}catch(e){}}(e)},t:function(e){var t,n=e.split("."),r=xu[a],o=m(n);try{for(o.s();!(t=o.n()).done;){var i=t.value;if(!r||"object"!==w(r)||!(i in r))return e;r=r[i]}}catch(e){o.e(e)}finally{o.f()}return"string"==typeof r?r:e},messages:xu[a]};return e.createElement(Eu.Provider,{value:s},n)}function ku(){var t=e.useContext(Eu);if(!t)throw new Error("useTranslation must be used within I18nProvider");return t}function Cu(){return ku().t}function Nu(){var e=ku();return{locale:e.locale,setLocale:e.setLocale}}function Du(e){var t,n=function(e){try{var t=e.split(".")[1],n=atob(t.replace(/-/g,"+").replace(/_/g,"/"));return JSON.parse(n)}catch(e){return null}}(e);(null===(t=null==n?void 0:n.user_metadata)||void 0===t?void 0:t.session_id)&&su(n.user_metadata.session_id.replace(/_/g,"-"))}function Su(t){var n=t.onLoginSuccess,r=Cu(),o=v(e.useState(""),2),a=o[0],i=o[1],s=v(e.useState(""),2),l=s[0],c=s[1],u=v(e.useState(!1),2),d=u[0],f=u[1],m=v(e.useState("login"),2),h=m[0],b=m[1];e.useEffect(function(){var e=mu();if(e){var t=function(){var t=p(g().m(function t(){var r;return g().w(function(t){for(;;)switch(t.p=t.n){case 0:return f(!0),t.p=1,t.n=2,du();case 2:if(t.v.success){t.n=3;break}throw new Error("token验证失败");case 3:return t.n=4,fu();case 4:if(!(r=t.v).success||!r.data){t.n=5;break}localStorage.setItem("cms_user",JSON.stringify(r.data)),Du(e),null==n||n(e,r.data),t.n=6;break;case 5:throw new Error("获取用户信息失败");case 6:t.n=8;break;case 7:t.p=7,t.v,pu();case 8:return t.p=8,f(!1),t.f(8);case 9:return t.a(2)}},t,null,[[1,7,8,9]])}));return function(){return t.apply(this,arguments)}}();t()}},[n]),e.useEffect(function(){if(!mu()){var e=function(){var e=p(g().m(function e(){var t,n;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:return f(!0),e.p=1,e.n=2,lu();case 2:(n=e.v).success&&(null===(t=n.data)||void 0===t?void 0:t.allowSignup)?b("signup"):b("login"),e.n=4;break;case 3:e.p=3,e.v,b("login");case 4:return e.p=4,f(!1),e.f(4);case 5:return e.a(2)}},e,null,[[1,3,4,5]])}));return function(){return e.apply(this,arguments)}}();e()}},[]);var y=function(){var e=p(g().m(function e(t){var o,i,s,c,u;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(t.preventDefault(),a&&l){e.n=1;break}return Os.error(r("validation.required")),e.a(2);case 1:if(f(!0),e.p=2,"signup"!==h){e.n=4;break}return e.n=3,cu({username:a,password:l});case 3:c=e.v,e.n=6;break;case 4:return e.n=5,uu({username:a,password:l});case 5:c=e.v;case 6:if((s=c).success&&(null===(o=s.data)||void 0===o?void 0:o.token)){e.n=7;break}return Os.error(s.message||r("auth.loginFailed")),"signup"===h&&(null===(i=s.message)||void 0===i?void 0:i.includes("已存在管理员"))&&b("login"),e.a(2);case 7:localStorage.setItem("cms_token",s.data.token),localStorage.setItem("cms_user",JSON.stringify(s.data.user)),Du(s.data.token),null==n||n(s.data.token,s.data.user),e.n=9;break;case 8:e.p=8,u=e.v,Os.error("".concat(r("auth.loginFailed"),", ").concat(u.message||r("common.error")));case 9:return e.p=9,f(!1),e.f(9);case 10:return e.a(2)}},e,null,[[2,8,9,10]])}));return function(t){return e.apply(this,arguments)}}();return e.createElement("div",{className:"we0-cms-root"},e.createElement("div",{className:"min-h-screen flex relative overflow-hidden bg-white"},e.createElement("div",{className:"pointer-events-none absolute inset-0"},e.createElement("div",{className:"absolute inset-0 bg-[linear-gradient(110deg,#ffffff_0%,#f7fbff_40%,#edf6ff_70%,#eaf3ff_100%)]"}),e.createElement("div",{className:"absolute inset-0 bg-[radial-gradient(1200px_600px_at_-10%_-10%,rgba(59,130,246,0.12),transparent),radial-gradient(900px_500px_at_110%_20%,rgba(147,51,234,0.10),transparent),radial-gradient(700px_400px_at_60%_120%,rgba(99,102,241,0.10),transparent)]"}),e.createElement("div",{className:"absolute inset-0 bg-[linear-gradient(115deg,rgba(255,255,255,0.6)_0%,rgba(255,255,255,0.15)_32%,transparent_32%,transparent_68%,rgba(255,255,255,0.15)_68%,rgba(255,255,255,0.6)_100%)]"})),e.createElement("div",{className:"flex-1 relative flex items-center justify-center"},e.createElement("div",{className:"relative z-10 max-w-4xl w-full px-16 text-left"},e.createElement("div",{className:"mb-12"},e.createElement("div",{className:"inline-flex items-center rounded-2xl px-4 py-2 bg-white/70 backdrop-blur border border-white/60"},e.createElement("span",{className:"text-2xl font-semibold tracking-tight text-gray-900"},r("data.dataManagement"))),e.createElement("h1",{className:"mt-8 text-5xl md:text-6xl font-extrabold leading-tight text-gray-900"},"WE0-CMS"),e.createElement("p",{className:"mt-6 text-2xl text-gray-600"},r("auth.welcome"))))),e.createElement("div",{className:"w-[480px] min-w-[380px] flex items-center justify-center p-8 mt-30"},e.createElement("div",{className:"w-full max-w-sm"},d?e.createElement(ps,{className:"bg-white/30 backdrop-blur-xl border border-white/50 shadow-none rounded-3xl overflow-hidden"},e.createElement(bs,{className:"p-8"},e.createElement("div",{className:"space-y-4"},e.createElement(rt,{className:"h-12 w-48"}),e.createElement(rt,{className:"h-4 w-64"}),e.createElement(rt,{className:"h-10 w-full"}),e.createElement(rt,{className:"h-10 w-full"})))):e.createElement(ps,{className:"bg-white/30 backdrop-blur-xl border border-white/50 shadow-none rounded-3xl overflow-hidden"},e.createElement(ms,{className:"p-8 pb-6"},e.createElement(hs,{className:"text-center text-2xl mb-2 text-gray-800"},r("signup"===h?"auth.createAdminAccount":"auth.welcome")),e.createElement(gs,{className:"text-center text-gray-500"},r("signup"===h?"auth.firstTimeSetup":"auth.pleaseLogin"))),e.createElement(bs,{className:"p-8 pt-0"},e.createElement("form",{onSubmit:y,className:"space-y-6"},e.createElement("div",{className:"space-y-2"},e.createElement(fs,{htmlFor:"username"},r("auth.username"),"/",r("auth.email")),e.createElement("div",{className:"relative"},e.createElement(oe,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),e.createElement(wt,{id:"username",type:"text",placeholder:r("auth.email"),value:a,onChange:function(e){return i(e.target.value)},className:"pl-10 h-12 rounded-xl border-gray-200 hover:border-blue-400 focus:border-blue-500 transition-colors",required:!0,minLength:2}))),e.createElement("div",{className:"space-y-2"},e.createElement(fs,{htmlFor:"password"},r("auth.password")),e.createElement("div",{className:"relative"},e.createElement($,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-gray-400"}),e.createElement(wt,{id:"password",type:"password",placeholder:r("auth.password"),value:l,onChange:function(e){return c(e.target.value)},className:"pl-10 h-12 rounded-xl border-gray-200 hover:border-blue-400 focus:border-blue-500 transition-colors",required:!0,minLength:6}))),e.createElement(yt,{type:"submit",className:"w-full h-12 rounded-xl transition-all duration-200 font-semibold text-base shadow-lg hover:brightness-[1.03] active:scale-[0.99]",style:{backgroundImage:"linear-gradient(135deg, rgba(236, 248, 255, 0.78) 0%, rgba(221, 238, 255, 0.78) 100%)",color:"rgba(0, 0, 0, 0.7)",border:"none",boxShadow:"0 6px 24px rgba(37, 99, 235, 0.12)"},disabled:d},e.createElement(G,{className:"h-4 w-4 mr-2"}),r(d?"common.loading":"signup"===h?"auth.signup":"auth.login")))))))))}function Au(){var t="zh-CN"===Nu().locale?{title:"欢迎来到内容管理中心",description:"这里是 CMS 的欢迎页。你可以从左侧导航进入具体内容类型,开始查看和管理数据。"}:{title:"Welcome to the Content Management Center",description:"This is the CMS landing page. Use the left navigation to open a content type and start managing data."};return e.createElement("div",{className:"min-h-[calc(100vh-4rem)] bg-gradient-to-br from-background via-background to-muted/20"},e.createElement("div",{className:"mx-auto flex min-h-[calc(100vh-8rem)] max-w-5xl items-center px-6 py-8"},e.createElement(ps,{className:"relative w-full overflow-hidden border-border/60 bg-card/95 shadow-[0_24px_80px_-48px_rgba(15,23,42,0.5)]"},e.createElement("div",{className:"absolute inset-0 bg-[radial-gradient(circle_at_top_right,_rgba(13,148,136,0.10),_transparent_32%),linear-gradient(180deg,transparent,rgba(15,23,42,0.03))]"}),e.createElement(ms,{className:"relative space-y-4 p-8 md:p-10"},e.createElement("div",{className:"inline-flex h-12 w-12 items-center justify-center rounded-2xl bg-teal-600/10 text-teal-700"},e.createElement(Q,{className:"h-5 w-5"})),e.createElement("div",{className:"space-y-3"},e.createElement(hs,{className:"text-3xl font-semibold tracking-tight md:text-5xl"},t.title),e.createElement(gs,{className:"max-w-2xl text-base leading-7"},t.description))))))}function Tu(e){const t=c.useRef({value:e,previous:e});return c.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}var Ru="Switch",[Ou,Fu]=St(Ru),[Mu,ju]=Ou(Ru),Lu=c.forwardRef((e,n)=>{const{__scopeSwitch:r,name:o,checked:a,defaultChecked:i,required:s,disabled:l,value:u="on",onCheckedChange:d,form:f,...p}=e,[m,h]=c.useState(null),g=it(n,e=>h(e)),b=c.useRef(!1),v=!m||(f||!!m.closest("form")),[y,w]=jt({prop:a,defaultProp:i??!1,onChange:d,caller:Ru});return t.jsxs(Mu,{scope:r,checked:y,disabled:l,children:[t.jsx(zt.button,{type:"button",role:"switch","aria-checked":y,"aria-required":s,"data-state":Bu(y),"data-disabled":l?"":void 0,disabled:l,value:u,...p,ref:g,onClick:Dt(e.onClick,e=>{w(e=>!e),v&&(b.current=e.isPropagationStopped(),b.current||e.stopPropagation())})}),v&&t.jsx(zu,{control:m,bubbles:!b.current,name:o,value:u,checked:y,required:s,disabled:l,form:f,style:{transform:"translateX(-100%)"}})]})});Lu.displayName=Ru;var Iu="SwitchThumb",Pu=c.forwardRef((e,n)=>{const{__scopeSwitch:r,...o}=e,a=ju(Iu,r);return t.jsx(zt.span,{"data-state":Bu(a.checked),"data-disabled":a.disabled?"":void 0,...o,ref:n})});Pu.displayName=Iu;var zu=c.forwardRef(({__scopeSwitch:e,control:n,checked:r,bubbles:o=!0,...a},i)=>{const s=c.useRef(null),l=it(s,i),u=Tu(r),d=Ha(n);return c.useEffect(()=>{const e=s.current;if(!e)return;const t=window.HTMLInputElement.prototype,n=Object.getOwnPropertyDescriptor(t,"checked").set;if(u!==r&&n){const t=new Event("click",{bubbles:o});n.call(e,r),e.dispatchEvent(t)}},[u,r,o]),t.jsx("input",{type:"checkbox","aria-hidden":!0,defaultChecked:r,...a,tabIndex:-1,ref:l,style:{...a.style,...d,position:"absolute",pointerEvents:"none",opacity:0,margin:0}})});function Bu(e){return e?"checked":"unchecked"}zu.displayName="SwitchBubbleInput";var qu=Lu,Uu=Pu,Hu=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(qu,Object.assign({className:nt("peer inline-flex h-6 w-11 shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 focus-visible:ring-offset-background disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input",n)},r,{ref:t}),c.createElement(Uu,{className:nt("pointer-events-none block h-5 w-5 rounded-full bg-background shadow-lg ring-0 transition-transform data-[state=checked]:translate-x-5 data-[state=unchecked]:translate-x-0")}))});function Wu(e){return(e||"").trim()}function Vu(e){var t=Wu(e);return!!t&&(!/[\u3400-\u9fff]/.test(t)&&/^[A-Za-z0-9\s_\-./&()]+$/.test(t))}function $u(e){var t=Wu(e);if(!t)return"";var n=t.replace(/([a-z0-9])([A-Z])/g,"$1 $2").replace(/[_-]+/g," ").replace(/\s+/g," ").trim();return n?n.split(" ").map(function(e){return/^[A-Z0-9]+$/.test(e)?e:e.charAt(0).toUpperCase()+e.slice(1).toLowerCase()}).join(" "):""}function Gu(e,t){var n=Wu(null==e?void 0:e.name),r=Wu(null==e?void 0:e.table_name);return"zh-CN"===t?n||r:Vu(n)?n:$u(r)||r||n}function Ku(e,t){var n=Wu(null==e?void 0:e.comment),r=Wu(null==e?void 0:e.name);return"zh-CN"===t?n||r:Vu(n)?n:$u(r)||r||n}function Zu(e){return/^https?:\/\//i.test(e)}Hu.displayName=qu.displayName;var Yu=[".png",".jpg",".jpeg",".gif",".webp",".bmp",".svg",".ico",".avif"];function Ju(e){return Yu.includes(e)}function Xu(e){var t,n=e.trim();if(!n)return!1;if(n.startsWith("data:image/"))return!0;if(!Zu(n))return!1;var r=(null===(t=n.split("#")[0])||void 0===t?void 0:t.split("?")[0])||n;return/\.(png|jpe?g|gif|webp|bmp|svg)$/i.test(r)}function Qu(e){return!Number.isFinite(e)||e<=0?"0 B":e<1024?"".concat(e," B"):e<1048576?"".concat((e/1024).toFixed(1)," KB"):"".concat((e/1048576).toFixed(1)," MB")}function ed(e,t){if(!t)return!0;var n=t.split(",").map(function(e){return e.trim().toLowerCase()}).filter(Boolean);if(0===n.length)return!0;var r=e.name.toLowerCase(),o=e.type.toLowerCase();return n.some(function(e){if(e.endsWith("/*")){var t=e.slice(0,-1);return o.startsWith(t)}return e.startsWith(".")?r.endsWith(e):o===e})}function td(e){var t;return(null===(t=null==e?void 0:e.url)||void 0===t?void 0:t.trim())||""}var nd=e.createContext(void 0);function rd(t){var n=t.uploadHandler,r=t.children;return e.createElement(nd.Provider,{value:n},r)}function od(t){var n=t.url,r=t.emptyText,o=void 0===r?"-":r,a=t.mode,i=void 0===a?"file":a,s=t.className,l=(n||"").trim();return l?"image"===i&&Xu(l)?e.createElement("div",{className:nt("flex items-center gap-3 min-w-0",s)},e.createElement("a",{href:l,target:"_blank",rel:"noreferrer",className:"inline-flex h-14 w-14 shrink-0 items-center justify-center overflow-hidden rounded-lg border bg-muted",title:l},e.createElement("img",{src:l,alt:"",className:"h-full w-full object-cover",onError:function(e){e.currentTarget.style.display="none"}}),e.createElement(P,{className:"hidden h-5 w-5 text-muted-foreground"})),e.createElement("a",{href:l,target:"_blank",rel:"noreferrer",className:"block min-w-0 flex-1 truncate text-sm text-primary underline-offset-2 hover:underline",title:l},l)):Zu(l)?e.createElement("a",{href:l,target:"_blank",rel:"noreferrer",className:nt("inline-flex max-w-full items-center gap-2 truncate text-sm text-primary underline-offset-2 hover:underline",s),title:l},e.createElement(B,{className:"h-4 w-4 shrink-0"}),e.createElement("span",{className:"min-w-0 flex-1 truncate"},l),e.createElement(I,{className:"h-4 w-4 shrink-0"})):e.createElement("div",{className:nt("text-sm truncate",s),title:l},l):e.createElement("div",{className:nt("text-sm text-muted-foreground",s)},o)}function ad(t){var n,r,o,a,i,s=t.field,l=t.model,c=t.value,u=t.disabled,d=t.onChange,f=Cu(),h=Nu().locale,b=e.useContext(nd),y=e.useRef(null),w=v(e.useState(!1),2),x=w[0],E=w[1],_=null===(n=s.upload)||void 0===n?void 0:n.accept,k=null===(r=s.upload)||void 0===r?void 0:r.maxSize,C=function(e){var t=e.assetKind,n=void 0===t?"auto":t,r=e.accept,o=e.value;if("image"===n)return"image";if("file"===n)return"file";var a=(r||"").split(",").map(function(e){return e.trim().toLowerCase()}).filter(Boolean);if(a.length>0){var i,s=!1,l=!1,c=m(a);try{for(c.s();!(i=c.n()).done;){var u=i.value;"image/*"===u||u.startsWith("image/")||u.startsWith(".")&&Ju(u)?s=!0:l=!0}}catch(e){c.e(e)}finally{c.f()}if(s&&!l)return"image";if(l&&!s)return"file"}return Xu((o||"").trim())?"image":"file"}({assetKind:null===(o=s.upload)||void 0===o?void 0:o.assetKind,accept:_,value:c}),N=!!b,D=!!(c||"").trim(),S=function(){var e=p(g().m(function e(t){var n,r,o,a,i,c;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(r=null===(n=t.target.files)||void 0===n?void 0:n[0],t.target.value="",r){e.n=1;break}return e.a(2);case 1:if(b){e.n=2;break}return Os.error(f("data.assetUploadHandlerMissing")),e.a(2);case 2:if(ed(r,_)){e.n=3;break}return Os.error(f("data.assetUploadInvalidType")),e.a(2);case 3:if(!("number"==typeof k&&k>0&&r.size>k)){e.n=4;break}return Os.error("".concat(f("data.assetUploadTooLarge")," (").concat(Qu(k),")")),e.a(2);case 4:return E(!0),e.p=5,e.n=6,b(r,{field:s,model:l,sessionId:eu()});case 6:if(o=e.v,a=td(o)){e.n=7;break}throw new Error(f("data.assetUploadInvalidResult"));case 7:d(a),Os.success(f("data.assetUploadSuccess")),e.n=9;break;case 8:e.p=8,c=e.v,i=c instanceof Error?c.message:f("data.assetUploadFailed"),Os.error(i);case 9:return e.p=9,E(!1),e.f(9);case 10:return e.a(2)}},e,null,[[5,8,9,10]])}));return function(t){return e.apply(this,arguments)}}();return e.createElement("div",{className:"space-y-2.5"},e.createElement(fs,{htmlFor:s.name,className:"text-sm font-semibold"},Ku(s,h),s.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement("input",{ref:y,id:s.name,type:"file",accept:_,className:"hidden",disabled:u||x||!N,onChange:S}),e.createElement("div",{className:"rounded-lg border bg-card p-4 space-y-4"},e.createElement(od,{url:c,mode:C,emptyText:(null===(a=s.upload)||void 0===a?void 0:a.placeholder)||f("data.assetEmpty"),className:"w-[360px] max-w-full"}),e.createElement("div",{className:"flex flex-wrap gap-2"},e.createElement(yt,{type:"button",variant:"outline",onClick:function(){var e;u||x||(N?null===(e=y.current)||void 0===e||e.click():Os.error(f("data.assetUploadHandlerMissing")))},disabled:u||x||!N},x?e.createElement(e.Fragment,null,e.createElement(V,{className:"h-4 w-4 mr-2 animate-spin"}),f("data.assetUploading")):e.createElement(e.Fragment,null,e.createElement(re,{className:"h-4 w-4 mr-2"}),D?f("data.assetReplace"):(null===(i=s.upload)||void 0===i?void 0:i.buttonText)||f("data.assetUploadButton"))),D&&e.createElement(yt,{type:"button",variant:"ghost",onClick:function(){d("")},disabled:u||x},e.createElement(ne,{className:"h-4 w-4 mr-2"}),f("data.assetClear"))),e.createElement("div",{className:"space-y-1 text-xs text-muted-foreground"},_&&e.createElement("div",null,f("data.assetAcceptHint"),": ",e.createElement("span",{className:"font-mono"},_)),"number"==typeof k&&k>0&&e.createElement("div",null,f("data.assetMaxSizeHint"),": ",Qu(k)),!N&&e.createElement("div",null,f("data.assetUploadHandlerMissing")))))}var id=Ur,sd=Hr,ld=Wr,cd=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Vr,Object.assign({ref:t,className:nt("fixed inset-0 z-50 bg-black/80 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0",n)},r))});cd.displayName=Vr.displayName;var ud=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=_(e,["className","children"]);return c.createElement(ld,null,c.createElement(cd,null),c.createElement($r,Object.assign({ref:t,className:nt("fixed left-[50%] top-[50%] z-50 grid w-full max-w-lg translate-x-[-50%] translate-y-[-50%] gap-4 border border-[hsl(var(--border))]/50 bg-background p-6 shadow-[0_20px_60px_-10px_rgba(93,112,82,0.2)] duration-200 data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[state=closed]:slide-out-to-left-1/2 data-[state=closed]:slide-out-to-top-[48%] data-[state=open]:slide-in-from-left-1/2 data-[state=open]:slide-in-from-top-[48%] rounded-[2rem]",n)},o),r,c.createElement(Zr,{className:"absolute right-4 top-4 rounded-sm opacity-70 ring-offset-background transition-opacity hover:opacity-100 focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2 disabled:pointer-events-none data-[state=open]:bg-accent data-[state=open]:text-muted-foreground"},c.createElement(ie,{className:"h-4 w-4"}),c.createElement("span",{className:"sr-only"},"Close"))))});ud.displayName=$r.displayName;var dd=function(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:nt("flex flex-col space-y-1.5 text-center sm:text-left",t)},n))};dd.displayName="DialogHeader";var fd=function(e){var t=e.className,n=_(e,["className"]);return c.createElement("div",Object.assign({className:nt("flex flex-col-reverse sm:flex-row sm:justify-end sm:space-x-2",t)},n))};fd.displayName="DialogFooter";var pd=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Gr,Object.assign({ref:t,className:nt("text-lg font-semibold leading-none tracking-tight",n)},r))});pd.displayName=Gr.displayName;var md,hd=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Kr,Object.assign({ref:t,className:nt("text-sm text-muted-foreground",n)},r))});function gd(e,t=!1){const n=e.length;let r=0,o="",a=0,i=16,s=0,l=0,c=0,u=0,d=0;function f(t,n){let o=0,a=0;for(;o<t||!n;){let t=e.charCodeAt(r);if(t>=48&&t<=57)a=16*a+t-48;else if(t>=65&&t<=70)a=16*a+t-65+10;else{if(!(t>=97&&t<=102))break;a=16*a+t-97+10}r++,o++}return o<t&&(a=-1),a}function p(){if(o="",d=0,a=r,l=s,u=c,r>=n)return a=n,i=17;let t=e.charCodeAt(r);if(bd(t)){do{r++,o+=String.fromCharCode(t),t=e.charCodeAt(r)}while(bd(t));return i=15}if(vd(t))return r++,o+=String.fromCharCode(t),13===t&&10===e.charCodeAt(r)&&(r++,o+="\n"),s++,c=r,i=14;switch(t){case 123:return r++,i=1;case 125:return r++,i=2;case 91:return r++,i=3;case 93:return r++,i=4;case 58:return r++,i=6;case 44:return r++,i=5;case 34:return r++,o=function(){let t="",o=r;for(;;){if(r>=n){t+=e.substring(o,r),d=2;break}const a=e.charCodeAt(r);if(34===a){t+=e.substring(o,r),r++;break}if(92!==a){if(a>=0&&a<=31){if(vd(a)){t+=e.substring(o,r),d=2;break}d=6}r++}else{if(t+=e.substring(o,r),r++,r>=n){d=2;break}switch(e.charCodeAt(r++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:const e=f(4,!0);e>=0?t+=String.fromCharCode(e):d=4;break;default:d=5}o=r}}return t}(),i=10;case 47:const l=r-1;if(47===e.charCodeAt(r+1)){for(r+=2;r<n&&!vd(e.charCodeAt(r));)r++;return o=e.substring(l,r),i=12}if(42===e.charCodeAt(r+1)){r+=2;const t=n-1;let a=!1;for(;r<t;){const t=e.charCodeAt(r);if(42===t&&47===e.charCodeAt(r+1)){r+=2,a=!0;break}r++,vd(t)&&(13===t&&10===e.charCodeAt(r)&&r++,s++,c=r)}return a||(r++,d=1),o=e.substring(l,r),i=13}return o+=String.fromCharCode(t),r++,i=16;case 45:if(o+=String.fromCharCode(t),r++,r===n||!yd(e.charCodeAt(r)))return i=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=function(){let t=r;if(48===e.charCodeAt(r))r++;else for(r++;r<e.length&&yd(e.charCodeAt(r));)r++;if(r<e.length&&46===e.charCodeAt(r)){if(r++,!(r<e.length&&yd(e.charCodeAt(r))))return d=3,e.substring(t,r);for(r++;r<e.length&&yd(e.charCodeAt(r));)r++}let n=r;if(r<e.length&&(69===e.charCodeAt(r)||101===e.charCodeAt(r)))if(r++,(r<e.length&&43===e.charCodeAt(r)||45===e.charCodeAt(r))&&r++,r<e.length&&yd(e.charCodeAt(r))){for(r++;r<e.length&&yd(e.charCodeAt(r));)r++;n=r}else d=3;return e.substring(t,n)}(),i=11;default:for(;r<n&&m(t);)r++,t=e.charCodeAt(r);if(a!==r){switch(o=e.substring(a,r),o){case"true":return i=8;case"false":return i=9;case"null":return i=7}return i=16}return o+=String.fromCharCode(t),r++,i=16}}function m(e){if(bd(e)||vd(e))return!1;switch(e){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}return{setPosition:function(e){r=e,o="",a=0,i=16,d=0},getPosition:()=>r,scan:t?function(){let e;do{e=p()}while(e>=12&&e<=15);return e}:p,getToken:()=>i,getTokenValue:()=>o,getTokenOffset:()=>a,getTokenLength:()=>r-a,getTokenStartLine:()=>l,getTokenStartCharacter:()=>a-u,getTokenError:()=>d}}function bd(e){return 32===e||9===e}function vd(e){return 10===e||13===e}function yd(e){return e>=48&&e<=57}hd.displayName=Kr.displayName,function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"}(md||(md={}));const wd=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),xd=200,Ed={" ":{"\n":new Array(xd).fill(0).map((e,t)=>"\n"+" ".repeat(t)),"\r":new Array(xd).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(xd).fill(0).map((e,t)=>"\r\n"+" ".repeat(t))},"\t":{"\n":new Array(xd).fill(0).map((e,t)=>"\n"+"\t".repeat(t)),"\r":new Array(xd).fill(0).map((e,t)=>"\r"+"\t".repeat(t)),"\r\n":new Array(xd).fill(0).map((e,t)=>"\r\n"+"\t".repeat(t))}},_d=["\n","\r","\r\n"];function kd(e,t,n){let r,o,a,i,s;if(t){for(i=t.offset,s=i+t.length,a=i;a>0&&!Nd(e,a-1);)a--;let l=s;for(;l<e.length&&!Nd(e,l);)l++;o=e.substring(a,l),r=function(e,t){let n=0,r=0;const o=t.tabSize||4;for(;n<e.length;){let t=e.charAt(n);if(t===wd[1])r++;else{if("\t"!==t)break;r+=o}n++}return Math.floor(r/o)}(o,n)}else o=e,r=0,a=0,i=0,s=e.length;const l=function(e,t){for(let e=0;e<t.length;e++){const n=t.charAt(e);if("\r"===n)return e+1<t.length&&"\n"===t.charAt(e+1)?"\r\n":"\r";if("\n"===n)return"\n"}return e&&e.eol||"\n"}(n,e),c=_d.includes(l);let u,d=0,f=0;u=n.insertSpaces?wd[n.tabSize||4]??Cd(wd[1],n.tabSize||4):"\t";const p="\t"===u?"\t":" ";let m=gd(o,!1),h=!1;function g(){if(d>1)return Cd(l,d)+Cd(u,r+f);const e=u.length*(r+f);return!c||e>Ed[p][l].length?l+Cd(u,r+f):e<=0?l:Ed[p][l][e]}function b(){let e=m.scan();for(d=0;15===e||14===e;)14===e&&n.keepLines?d+=1:14===e&&(d=1),e=m.scan();return h=16===e||0!==m.getTokenError(),e}const v=[];function y(n,r,o){h||t&&!(r<s&&o>i)||e.substring(r,o)===n||v.push({offset:r,length:o-r,content:n})}let w=b();if(n.keepLines&&d>0&&y(Cd(l,d),0,0),17!==w){let e=m.getTokenOffset()+a;y(u.length*r<20&&n.insertSpaces?wd[u.length*r]:Cd(u,r),a,e)}for(;17!==w;){let e=m.getTokenOffset()+m.getTokenLength()+a,t=b(),r="",o=!1;for(;0===d&&(12===t||13===t);){let n=m.getTokenOffset()+a;y(wd[1],e,n),e=m.getTokenOffset()+m.getTokenLength()+a,o=12===t,r=o?g():"",t=b()}if(2===t)1!==w&&f--,n.keepLines&&d>0||!n.keepLines&&1!==w?r=g():n.keepLines&&(r=wd[1]);else if(4===t)3!==w&&f--,n.keepLines&&d>0||!n.keepLines&&3!==w?r=g():n.keepLines&&(r=wd[1]);else{switch(w){case 3:case 1:f++,r=n.keepLines&&d>0||!n.keepLines?g():wd[1];break;case 5:r=n.keepLines&&d>0||!n.keepLines?g():wd[1];break;case 12:r=g();break;case 13:d>0?r=g():o||(r=wd[1]);break;case 6:n.keepLines&&d>0?r=g():o||(r=wd[1]);break;case 10:n.keepLines&&d>0?r=g():6!==t||o||(r="");break;case 7:case 8:case 9:case 11:case 2:case 4:n.keepLines&&d>0?r=g():12!==t&&13!==t||o?5!==t&&17!==t&&(h=!0):r=wd[1];break;case 16:h=!0}d>0&&(12===t||13===t)&&(r=g())}17===t&&(r=n.keepLines&&d>0?g():n.insertFinalNewline?l:"");y(r,e,m.getTokenOffset()+a),w=t}return v}function Cd(e,t){let n="";for(let r=0;r<t;r++)n+=e;return n}function Nd(e,t){return-1!=="\r\n".indexOf(e.charAt(t))}var Dd,Sd,Ad;!function(e){e.DEFAULT={allowTrailingComma:!1}}(Dd||(Dd={})),function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"}(Sd||(Sd={})),function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"}(Ad||(Ad={}));const Td=function(e,t=[],n=Dd.DEFAULT){let r=null,o=[];const a=[];function i(e){Array.isArray(o)?o.push(e):null!==r&&(o[r]=e)}const s={onObjectBegin:()=>{const e={};i(e),a.push(o),o=e,r=null},onObjectProperty:e=>{r=e},onObjectEnd:()=>{o=a.pop()},onArrayBegin:()=>{const e=[];i(e),a.push(o),o=e,r=null},onArrayEnd:()=>{o=a.pop()},onLiteralValue:i,onError:(e,n,r)=>{t.push({error:e,offset:n,length:r})}};return function(e,t,n=Dd.DEFAULT){const r=gd(e,!1),o=[];let a=0;function i(e){return e?()=>0===a&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function s(e){return e?t=>0===a&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(e){return e?t=>0===a&&e(t,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function c(e){return e?()=>{if(a>0)a++;else{!1===e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())&&(a=1)}}:()=>!0}function u(e){return e?()=>{a>0&&a--,0===a&&e(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}const d=c(t.onObjectBegin),f=l(t.onObjectProperty),p=u(t.onObjectEnd),m=c(t.onArrayBegin),h=u(t.onArrayEnd),g=l(t.onLiteralValue),b=s(t.onSeparator),v=i(t.onComment),y=s(t.onError),w=n&&n.disallowComments,x=n&&n.allowTrailingComma;function E(){for(;;){const e=r.scan();switch(r.getTokenError()){case 4:_(14);break;case 5:_(15);break;case 3:_(13);break;case 1:w||_(11);break;case 2:_(12);break;case 6:_(16)}switch(e){case 12:case 13:w?_(10):v();break;case 16:_(1);break;case 15:case 14:break;default:return e}}}function _(e,t=[],n=[]){if(y(e),t.length+n.length>0){let e=r.getToken();for(;17!==e;){if(-1!==t.indexOf(e)){E();break}if(-1!==n.indexOf(e))break;e=E()}}}function k(e){const t=r.getTokenValue();return e?g(t):(f(t),o.push(t)),E(),!0}function C(){switch(r.getToken()){case 11:const e=r.getTokenValue();let t=Number(e);isNaN(t)&&(_(2),t=0),g(t);break;case 7:g(null);break;case 8:g(!0);break;case 9:g(!1);break;default:return!1}return E(),!0}function N(){return 10!==r.getToken()?(_(3,[],[2,5]),!1):(k(!1),6===r.getToken()?(b(":"),E(),A()||_(4,[],[2,5])):_(5,[],[2,5]),o.pop(),!0)}function D(){d(),E();let e=!1;for(;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(e||_(4,[],[]),b(","),E(),2===r.getToken()&&x)break}else e&&_(6,[],[]);N()||_(4,[],[2,5]),e=!0}return p(),2!==r.getToken()?_(7,[2],[]):E(),!0}function S(){m(),E();let e=!0,t=!1;for(;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||_(4,[],[]),b(","),E(),4===r.getToken()&&x)break}else t&&_(6,[],[]);e?(o.push(0),e=!1):o[o.length-1]++,A()||_(4,[],[4,5]),t=!0}return h(),e||o.pop(),4!==r.getToken()?_(8,[4],[]):E(),!0}function A(){switch(r.getToken()){case 3:return S();case 1:return D();case 10:return k(!0);default:return C()}}if(E(),17===r.getToken())return!!n.allowEmptyContent||(_(4,[],[]),!1);if(!A())return _(4,[],[]),!1;17!==r.getToken()&&_(9,[],[])}(e,s,n),o[0]};var Rd;function Od(e,t){if(!t.length)return"JSON 格式不正确";var n=t[0],r=function(e,t){for(var n=1,r=1,o=Math.max(0,Math.min(t,e.length)),a=0;a<o;a++){"\n"===e.charAt(a)?(n++,r=1):r++}return{line:n,col:r}}(e,n.offset),o=r.line,a=r.col,i=function(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return"<unknown ParseErrorCode>"}(n.error);return"JSON 格式不正确(".concat(i,",行 ").concat(o," 列 ").concat(a,")")}function Fd(e){if(null==e||""===e)return{ok:!0,value:null,pretty:"null",compact:"null"};try{if("string"!=typeof e)return{ok:!0,value:e,pretty:JSON.stringify(e,null,2),compact:JSON.stringify(e)};var t=e,n=[],r=Td(t,n,{allowTrailingComma:!0,disallowComments:!1});return n.length?{ok:!1,message:Od(t,n),pretty:t,compact:t}:{ok:!0,value:r,pretty:JSON.stringify(r,null,2),compact:JSON.stringify(r)}}catch(t){var o="string"==typeof e?e:String(e);return{ok:!1,message:"JSON 格式不正确",pretty:o,compact:o}}}function Md(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=(e||"").toString(),r=[];if(Td(n,r,{allowTrailingComma:!0,disallowComments:!1}),r.length)return{ok:!1,message:Od(n,r)};for(var o=function(e,t,n){return kd(e,t,n)}(n,void 0,{insertSpaces:!0,tabSize:t}),a=n,i=o.length-1;i>=0;i--){var s=o[i];a=a.slice(0,s.offset)+s.content+a.slice(s.offset+s.length)}return{ok:!0,formatted:a}}function jd(e){return Ld.apply(this,arguments)}function Ld(){return Ld=p(g().m(function e(t){var n,r;return g().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:if(!(null===(n=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===n?void 0:n.writeText)){e.n=3;break}return e.n=2,navigator.clipboard.writeText(t);case 2:return e.a(2);case 3:(r=document.createElement("textarea")).value=t,r.style.position="fixed",r.style.left="-9999px",document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r);case 4:return e.a(2)}},e)})),Ld.apply(this,arguments)}function Id(e){var t=e.value,n=e.title;if(null==t||""===t)return c.createElement("span",null,"-");var r,o=Fd(t),a=o.ok,i=o.pretty,s=o.compact,l=s.length>80?s.slice(0,80)+"…":s;return c.createElement(id,null,c.createElement(sd,{asChild:!0},c.createElement("button",{type:"button",className:"max-w-xs truncate text-left font-mono text-xs text-muted-foreground hover:underline",title:"点击查看 JSON"},l)),c.createElement(ud,{className:"max-w-3xl"},c.createElement(dd,null,c.createElement(pd,null,n||"JSON")),c.createElement("div",{className:"flex items-center justify-end gap-2"},c.createElement(yt,{variant:"outline",size:"sm",onClick:(r=p(g().m(function e(){return g().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,jd(i);case 1:Os.success("已复制 JSON"),e.n=3;break;case 2:e.p=2,e.v,Os.error("复制失败");case 3:return e.a(2)}},e,null,[[0,2]])})),function(){return r.apply(this,arguments)})},"复制")),c.createElement("pre",{className:"max-h-[60vh] overflow-auto rounded-md bg-muted p-3 text-xs font-mono whitespace-pre-wrap break-all"},i),!a&&c.createElement("div",{className:"text-xs text-destructive"},o.ok?"":o.message)))}function Pd(e){e.id;var t=e.value;e.required;var n,r=e.disabled,s=e.onChange,l=v(c.useState(null),2),u=l[0],d=l[1];return c.createElement("div",{className:"space-y-2"},c.createElement("div",{className:"flex items-center justify-end gap-2"},c.createElement(yt,{type:"button",variant:"outline",size:"sm",disabled:!!r,onClick:function(){if(!r){var e=(t||"").trim();if(e){var n=Md(e,2);n.ok?(s(n.formatted),d(null)):d(n.message)}}}},"格式化"),c.createElement(yt,{type:"button",variant:"outline",size:"sm",onClick:(n=p(g().m(function e(){return g().w(function(e){for(;;)switch(e.p=e.n){case 0:return e.p=0,e.n=1,jd(t||"");case 1:Os.success("已复制"),e.n=3;break;case 2:e.p=2,e.v,Os.error("复制失败");case 3:return e.a(2)}},e,null,[[0,2]])})),function(){return n.apply(this,arguments)})},"复制")),c.createElement("div",{className:"w-full max-w-full overflow-hidden rounded-md border bg-background"},c.createElement(o,{className:"w-full max-w-full",editable:!r,value:t||"",height:"220px",basicSetup:{lineNumbers:!0,foldGutter:!0,highlightActiveLine:!0},extensions:[a.json(),i.EditorView.lineWrapping],onChange:function(e){r||(s(e),function(e){var t=(e||"").trim();if(!t)return d(null),!0;var n=Fd(t);n.ok?d(null):d(n.message)}(e))}})),u&&c.createElement("div",{className:"text-xs text-destructive"},u))}!function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"}(Rd||(Rd={}));const zd={};function Bd(e,t){"string"!=typeof t&&(t=Bd.defaultChars);const n=function(e){let t=zd[e];if(t)return t;t=zd[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);t.push(n)}for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);t[r]="%"+("0"+r.toString(16).toUpperCase()).slice(-2)}return t}(t);return e.replace(/(%[a-f0-9]{2})+/gi,function(e){let t="";for(let r=0,o=e.length;r<o;r+=3){const a=parseInt(e.slice(r+1,r+3),16);if(a<128)t+=n[a];else{if(192==(224&a)&&r+3<o){const n=parseInt(e.slice(r+4,r+6),16);if(128==(192&n)){const e=a<<6&1984|63&n;t+=e<128?"��":String.fromCharCode(e),r+=3;continue}}if(224==(240&a)&&r+6<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16);if(128==(192&n)&&128==(192&o)){const e=a<<12&61440|n<<6&4032|63&o;t+=e<2048||e>=55296&&e<=57343?"���":String.fromCharCode(e),r+=6;continue}}if(240==(248&a)&&r+9<o){const n=parseInt(e.slice(r+4,r+6),16),o=parseInt(e.slice(r+7,r+9),16),i=parseInt(e.slice(r+10,r+12),16);if(128==(192&n)&&128==(192&o)&&128==(192&i)){let e=a<<18&1835008|n<<12&258048|o<<6&4032|63&i;e<65536||e>1114111?t+="����":(e-=65536,t+=String.fromCharCode(55296+(e>>10),56320+(1023&e))),r+=9;continue}}t+="�"}}return t})}Bd.defaultChars=";/?:@&=+$,#",Bd.componentChars="";const qd={};function Ud(e,t,n){"string"!=typeof t&&(n=t,t=Ud.defaultChars),void 0===n&&(n=!0);const r=function(e){let t=qd[e];if(t)return t;t=qd[e]=[];for(let e=0;e<128;e++){const n=String.fromCharCode(e);/^[0-9a-z]$/i.test(n)?t.push(n):t.push("%"+("0"+e.toString(16).toUpperCase()).slice(-2))}for(let n=0;n<e.length;n++)t[e.charCodeAt(n)]=e[n];return t}(t);let o="";for(let t=0,a=e.length;t<a;t++){const i=e.charCodeAt(t);if(n&&37===i&&t+2<a&&/^[0-9a-f]{2}$/i.test(e.slice(t+1,t+3)))o+=e.slice(t,t+3),t+=2;else if(i<128)o+=r[i];else if(i>=55296&&i<=57343){if(i>=55296&&i<=56319&&t+1<a){const n=e.charCodeAt(t+1);if(n>=56320&&n<=57343){o+=encodeURIComponent(e[t]+e[t+1]),t++;continue}}o+="%EF%BF%BD"}else o+=encodeURIComponent(e[t])}return o}function Hd(e){let t="";return t+=e.protocol||"",t+=e.slashes?"//":"",t+=e.auth?e.auth+"@":"",e.hostname&&-1!==e.hostname.indexOf(":")?t+="["+e.hostname+"]":t+=e.hostname||"",t+=e.port?":"+e.port:"",t+=e.pathname||"",t+=e.search||"",t+=e.hash||"",t}function Wd(){this.protocol=null,this.slashes=null,this.auth=null,this.port=null,this.hostname=null,this.hash=null,this.search=null,this.pathname=null}Ud.defaultChars=";/?:@&=+$,-_.!~*'()#",Ud.componentChars="-_.!~*'()";const Vd=/^([a-z0-9.+-]+:)/i,$d=/:[0-9]*$/,Gd=/^(\/\/?(?!\/)[^\?\s]*)(\?[^\s]*)?$/,Kd=["{","}","|","\\","^","`"].concat(["<",">",'"',"`"," ","\r","\n","\t"]),Zd=["'"].concat(Kd),Yd=["%","/","?",";","#"].concat(Zd),Jd=["/","?","#"],Xd=/^[+a-z0-9A-Z_-]{0,63}$/,Qd=/^([+a-z0-9A-Z_-]{0,63})(.*)$/,ef={javascript:!0,"javascript:":!0},tf={http:!0,https:!0,ftp:!0,gopher:!0,file:!0,"http:":!0,"https:":!0,"ftp:":!0,"gopher:":!0,"file:":!0};function nf(e,t){if(e&&e instanceof Wd)return e;const n=new Wd;return n.parse(e,t),n}Wd.prototype.parse=function(e,t){let n,r,o,a=e;if(a=a.trim(),!t&&1===e.split("#").length){const e=Gd.exec(a);if(e)return this.pathname=e[1],e[2]&&(this.search=e[2]),this}let i=Vd.exec(a);if(i&&(i=i[0],n=i.toLowerCase(),this.protocol=i,a=a.substr(i.length)),(t||i||a.match(/^\/\/[^@\/]+@[^@\/]+/))&&(o="//"===a.substr(0,2),!o||i&&ef[i]||(a=a.substr(2),this.slashes=!0)),!ef[i]&&(o||i&&!tf[i])){let e,t,n=-1;for(let e=0;e<Jd.length;e++)r=a.indexOf(Jd[e]),-1!==r&&(-1===n||r<n)&&(n=r);t=-1===n?a.lastIndexOf("@"):a.lastIndexOf("@",n),-1!==t&&(e=a.slice(0,t),a=a.slice(t+1),this.auth=e),n=-1;for(let e=0;e<Yd.length;e++)r=a.indexOf(Yd[e]),-1!==r&&(-1===n||r<n)&&(n=r);-1===n&&(n=a.length),":"===a[n-1]&&n--;const o=a.slice(0,n);a=a.slice(n),this.parseHost(o),this.hostname=this.hostname||"";const i="["===this.hostname[0]&&"]"===this.hostname[this.hostname.length-1];if(!i){const e=this.hostname.split(/\./);for(let t=0,n=e.length;t<n;t++){const n=e[t];if(n&&!n.match(Xd)){let r="";for(let e=0,t=n.length;e<t;e++)n.charCodeAt(e)>127?r+="x":r+=n[e];if(!r.match(Xd)){const r=e.slice(0,t),o=e.slice(t+1),i=n.match(Qd);i&&(r.push(i[1]),o.unshift(i[2])),o.length&&(a=o.join(".")+a),this.hostname=r.join(".");break}}}}this.hostname.length>255&&(this.hostname=""),i&&(this.hostname=this.hostname.substr(1,this.hostname.length-2))}const s=a.indexOf("#");-1!==s&&(this.hash=a.substr(s),a=a.slice(0,s));const l=a.indexOf("?");return-1!==l&&(this.search=a.substr(l),a=a.slice(0,l)),a&&(this.pathname=a),tf[n]&&this.hostname&&!this.pathname&&(this.pathname=""),this},Wd.prototype.parseHost=function(e){let t=$d.exec(e);t&&(t=t[0],":"!==t&&(this.port=t.substr(1)),e=e.substr(0,e.length-t.length)),e&&(this.hostname=e)};var rf,of=Object.freeze({__proto__:null,decode:Bd,encode:Ud,format:Hd,parse:nf}),af=/[\0-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,sf=/[\0-\x1F\x7F-\x9F]/,lf=/[!-#%-\*,-\/:;\?@\[-\]_\{\}\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061D-\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u09FD\u0A76\u0AF0\u0C77\u0C84\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1B7D\u1B7E\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E4F\u2E52-\u2E5D\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD803[\uDEAD\uDF55-\uDF59\uDF86-\uDF89]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC8\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDC4B-\uDC4F\uDC5A\uDC5B\uDC5D\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDE60-\uDE6C\uDEB9\uDF3C-\uDF3E]|\uD806[\uDC3B\uDD44-\uDD46\uDDE2\uDE3F-\uDE46\uDE9A-\uDE9C\uDE9E-\uDEA2\uDF00-\uDF09]|\uD807[\uDC41-\uDC45\uDC70\uDC71\uDEF7\uDEF8\uDF43-\uDF4F\uDFFF]|\uD809[\uDC70-\uDC74]|\uD80B[\uDFF1\uDFF2]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD81B[\uDE97-\uDE9A\uDFE2]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]|\uD83A[\uDD5E\uDD5F]/,cf=/[\$\+<->\^`\|~\xA2-\xA6\xA8\xA9\xAC\xAE-\xB1\xB4\xB8\xD7\xF7\u02C2-\u02C5\u02D2-\u02DF\u02E5-\u02EB\u02ED\u02EF-\u02FF\u0375\u0384\u0385\u03F6\u0482\u058D-\u058F\u0606-\u0608\u060B\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u07FE\u07FF\u0888\u09F2\u09F3\u09FA\u09FB\u0AF1\u0B70\u0BF3-\u0BFA\u0C7F\u0D4F\u0D79\u0E3F\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u17DB\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u1FBD\u1FBF-\u1FC1\u1FCD-\u1FCF\u1FDD-\u1FDF\u1FED-\u1FEF\u1FFD\u1FFE\u2044\u2052\u207A-\u207C\u208A-\u208C\u20A0-\u20C0\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u2140-\u2144\u214A-\u214D\u214F\u218A\u218B\u2190-\u2307\u230C-\u2328\u232B-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u2767\u2794-\u27C4\u27C7-\u27E5\u27F0-\u2982\u2999-\u29D7\u29DC-\u29FB\u29FE-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u309B\u309C\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA700-\uA716\uA720\uA721\uA789\uA78A\uA828-\uA82B\uA836-\uA839\uAA77-\uAA79\uAB5B\uAB6A\uAB6B\uFB29\uFBB2-\uFBC2\uFD40-\uFD4F\uFDCF\uFDFC-\uFDFF\uFE62\uFE64-\uFE66\uFE69\uFF04\uFF0B\uFF1C-\uFF1E\uFF3E\uFF40\uFF5C\uFF5E\uFFE0-\uFFE6\uFFE8-\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD835[\uDEC1\uDEDB\uDEFB\uDF15\uDF35\uDF4F\uDF6F\uDF89\uDFA9\uDFC3]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838[\uDD4F\uDEFF]|\uD83B[\uDCAC\uDCB0\uDD2E\uDEF0\uDEF1]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFF]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]/,uf=/[ \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,df=Object.freeze({__proto__:null,Any:af,Cc:sf,Cf:/[\xAD\u0600-\u0605\u061C\u06DD\u070F\u0890\u0891\u08E2\u180E\u200B-\u200F\u202A-\u202E\u2060-\u2064\u2066-\u206F\uFEFF\uFFF9-\uFFFB]|\uD804[\uDCBD\uDCCD]|\uD80D[\uDC30-\uDC3F]|\uD82F[\uDCA0-\uDCA3]|\uD834[\uDD73-\uDD7A]|\uDB40[\uDC01\uDC20-\uDC7F]/,P:lf,S:cf,Z:uf}),ff=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(e=>e.charCodeAt(0))),pf=new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));const mf=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]]),hf=null!==(rf=String.fromCodePoint)&&void 0!==rf?rf:function(e){let t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+=String.fromCharCode(e),t};var gf;!function(e){e[e.NUM=35]="NUM",e[e.SEMI=59]="SEMI",e[e.EQUALS=61]="EQUALS",e[e.ZERO=48]="ZERO",e[e.NINE=57]="NINE",e[e.LOWER_A=97]="LOWER_A",e[e.LOWER_F=102]="LOWER_F",e[e.LOWER_X=120]="LOWER_X",e[e.LOWER_Z=122]="LOWER_Z",e[e.UPPER_A=65]="UPPER_A",e[e.UPPER_F=70]="UPPER_F",e[e.UPPER_Z=90]="UPPER_Z"}(gf||(gf={}));var bf,vf,yf;function wf(e){return e>=gf.ZERO&&e<=gf.NINE}function xf(e){return e>=gf.UPPER_A&&e<=gf.UPPER_F||e>=gf.LOWER_A&&e<=gf.LOWER_F}function Ef(e){return e===gf.EQUALS||function(e){return e>=gf.UPPER_A&&e<=gf.UPPER_Z||e>=gf.LOWER_A&&e<=gf.LOWER_Z||wf(e)}(e)}!function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"}(bf||(bf={})),function(e){e[e.EntityStart=0]="EntityStart",e[e.NumericStart=1]="NumericStart",e[e.NumericDecimal=2]="NumericDecimal",e[e.NumericHex=3]="NumericHex",e[e.NamedEntity=4]="NamedEntity"}(vf||(vf={})),function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"}(yf||(yf={}));class _f{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=vf.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=yf.Strict}startEntity(e){this.decodeMode=e,this.state=vf.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case vf.EntityStart:return e.charCodeAt(t)===gf.NUM?(this.state=vf.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=vf.NamedEntity,this.stateNamedEntity(e,t));case vf.NumericStart:return this.stateNumericStart(e,t);case vf.NumericDecimal:return this.stateNumericDecimal(e,t);case vf.NumericHex:return this.stateNumericHex(e,t);case vf.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===gf.LOWER_X?(this.state=vf.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=vf.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,r){if(t!==n){const o=n-t;this.result=this.result*Math.pow(r,o)+parseInt(e.substr(t,o),r),this.consumed+=o}}stateNumericHex(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!wf(r)&&!xf(r))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(r,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){const n=t;for(;t<e.length;){const r=e.charCodeAt(t);if(!wf(r))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(r,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===gf.SEMI)this.consumed+=1;else if(this.decodeMode===yf.Strict)return 0;return this.emitCodePoint(function(e){var t;return e>=55296&&e<=57343||e>1114111?65533:null!==(t=mf.get(e))&&void 0!==t?t:e}(this.result),this.consumed),this.errors&&(e!==gf.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){const{decodeTree:n}=this;let r=n[this.treeIndex],o=(r&bf.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){const a=e.charCodeAt(t);if(this.treeIndex=Cf(n,r,this.treeIndex+Math.max(1,o),a),this.treeIndex<0)return 0===this.result||this.decodeMode===yf.Attribute&&(0===o||Ef(a))?0:this.emitNotTerminatedNamedEntity();if(r=n[this.treeIndex],o=(r&bf.VALUE_LENGTH)>>14,0!==o){if(a===gf.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==yf.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var e;const{result:t,decodeTree:n}=this,r=(n[t]&bf.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,r,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){const{decodeTree:r}=this;return this.emitCodePoint(1===t?r[e]&~bf.VALUE_LENGTH:r[e+1],n),3===t&&this.emitCodePoint(r[e+2],n),n}end(){var e;switch(this.state){case vf.NamedEntity:return 0===this.result||this.decodeMode===yf.Attribute&&this.result!==this.treeIndex?0:this.emitNotTerminatedNamedEntity();case vf.NumericDecimal:return this.emitNumericEntity(0,2);case vf.NumericHex:return this.emitNumericEntity(0,3);case vf.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case vf.EntityStart:return 0}}}function kf(e){let t="";const n=new _f(e,e=>t+=hf(e));return function(e,r){let o=0,a=0;for(;(a=e.indexOf("&",a))>=0;){t+=e.slice(o,a),n.startEntity(r);const i=n.write(e,a+1);if(i<0){o=a+n.end();break}o=a+i,a=0===i?o+1:o}const i=t+e.slice(o);return t="",i}}function Cf(e,t,n,r){const o=(t&bf.BRANCH_LENGTH)>>7,a=t&bf.JUMP_TABLE;if(0===o)return 0!==a&&r===a?n:-1;if(a){const t=r-a;return t<0||t>=o?-1:e[n+t]-1}let i=n,s=i+o-1;for(;i<=s;){const t=i+s>>>1,n=e[t];if(n<r)i=t+1;else{if(!(n>r))return e[t+o];s=t-1}}return-1}const Nf=kf(ff);function Df(e,t=yf.Legacy){return Nf(e,t)}function Sf(e){return"[object String]"===function(e){return Object.prototype.toString.call(e)}(e)}kf(pf);const Af=Object.prototype.hasOwnProperty;function Tf(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach(function(n){e[n]=t[n]})}}),e}function Rf(e,t,n){return[].concat(e.slice(0,t),n,e.slice(t+1))}function Of(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(!!(65535&~e&&65534!=(65535&e))&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function Ff(e){if(e>65535){const t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}const Mf=/\\([!"#$%&'()*+,\-./:;<=>?@[\\\]^_`{|}~])/g,jf=new RegExp(Mf.source+"|"+/&([a-z#][a-z0-9]{1,31});/gi.source,"gi"),Lf=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))$/i;function If(e){return e.indexOf("\\")<0&&e.indexOf("&")<0?e:e.replace(jf,function(e,t,n){return t||function(e,t){if(35===t.charCodeAt(0)&&Lf.test(t)){const n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10);return Of(n)?Ff(n):e}const n=Df(e);return n!==e?n:e}(e,n)})}const Pf=/[&<>"]/,zf=/[&<>"]/g,Bf={"&":"&","<":"<",">":">",'"':"""};function qf(e){return Bf[e]}function Uf(e){return Pf.test(e)?e.replace(zf,qf):e}const Hf=/[.?*+^$[\]\\(){}|-]/g;function Wf(e){switch(e){case 9:case 32:return!0}return!1}function Vf(e){if(e>=8192&&e<=8202)return!0;switch(e){case 9:case 10:case 11:case 12:case 13:case 32:case 160:case 5760:case 8239:case 8287:case 12288:return!0}return!1}function $f(e){return lf.test(e)||cf.test(e)}function Gf(e){switch(e){case 33:case 34:case 35:case 36:case 37:case 38:case 39:case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 124:case 125:case 126:return!0;default:return!1}}function Kf(e){return e=e.trim().replace(/\s+/g," "),"Ṿ"==="ẞ".toLowerCase()&&(e=e.replace(/ẞ/g,"ß")),e.toLowerCase().toUpperCase()}const Zf={mdurl:of,ucmicro:df};var Yf=Object.freeze({__proto__:null,arrayReplaceAt:Rf,assign:Tf,escapeHtml:Uf,escapeRE:function(e){return e.replace(Hf,"\\$&")},fromCodePoint:Ff,has:function(e,t){return Af.call(e,t)},isMdAsciiPunct:Gf,isPunctChar:$f,isSpace:Wf,isString:Sf,isValidEntityCode:Of,isWhiteSpace:Vf,lib:Zf,normalizeReference:Kf,unescapeAll:If,unescapeMd:function(e){return e.indexOf("\\")<0?e:e.replace(Mf,"$1")}});var Jf=Object.freeze({__proto__:null,parseLinkDestination:function(e,t,n){let r,o=t;const a={ok:!1,pos:0,str:""};if(60===e.charCodeAt(o)){for(o++;o<n;){if(r=e.charCodeAt(o),10===r)return a;if(60===r)return a;if(62===r)return a.pos=o+1,a.str=If(e.slice(t+1,o)),a.ok=!0,a;92===r&&o+1<n?o+=2:o++}return a}let i=0;for(;o<n&&(r=e.charCodeAt(o),32!==r)&&!(r<32||127===r);)if(92===r&&o+1<n){if(32===e.charCodeAt(o+1))break;o+=2}else{if(40===r&&(i++,i>32))return a;if(41===r){if(0===i)break;i--}o++}return t===o||0!==i||(a.str=If(e.slice(t,o)),a.pos=o,a.ok=!0),a},parseLinkLabel:function(e,t,n){let r,o,a,i;const s=e.posMax,l=e.pos;for(e.pos=t+1,r=1;e.pos<s;){if(a=e.src.charCodeAt(e.pos),93===a&&(r--,0===r)){o=!0;break}if(i=e.pos,e.md.inline.skipToken(e),91===a)if(i===e.pos-1)r++;else if(n)return e.pos=l,-1}let c=-1;return o&&(c=e.pos),e.pos=l,c},parseLinkTitle:function(e,t,n,r){let o,a=t;const i={ok:!1,can_continue:!1,pos:0,str:"",marker:0};if(r)i.str=r.str,i.marker=r.marker;else{if(a>=n)return i;let r=e.charCodeAt(a);if(34!==r&&39!==r&&40!==r)return i;t++,a++,40===r&&(r=41),i.marker=r}for(;a<n;){if(o=e.charCodeAt(a),o===i.marker)return i.pos=a+1,i.str+=If(e.slice(t,a)),i.ok=!0,i;if(40===o&&41===i.marker)return i;92===o&&a+1<n&&a++,a++}return i.can_continue=!0,i.str+=If(e.slice(t,a)),i}});const Xf={};function Qf(){this.rules=Tf({},Xf)}function ep(){this.__rules__=[],this.__cache__=null}function tp(e,t,n){this.type=e,this.tag=t,this.attrs=null,this.map=null,this.nesting=n,this.level=0,this.children=null,this.content="",this.markup="",this.info="",this.meta=null,this.block=!1,this.hidden=!1}function np(e,t,n){this.src=e,this.env=n,this.tokens=[],this.inlineMode=!1,this.md=t}Xf.code_inline=function(e,t,n,r,o){const a=e[t];return"<code"+o.renderAttrs(a)+">"+Uf(a.content)+"</code>"},Xf.code_block=function(e,t,n,r,o){const a=e[t];return"<pre"+o.renderAttrs(a)+"><code>"+Uf(e[t].content)+"</code></pre>\n"},Xf.fence=function(e,t,n,r,o){const a=e[t],i=a.info?If(a.info).trim():"";let s,l="",c="";if(i){const e=i.split(/(\s+)/g);l=e[0],c=e.slice(2).join("")}if(s=n.highlight&&n.highlight(a.content,l,c)||Uf(a.content),0===s.indexOf("<pre"))return s+"\n";if(i){const e=a.attrIndex("class"),t=a.attrs?a.attrs.slice():[];e<0?t.push(["class",n.langPrefix+l]):(t[e]=t[e].slice(),t[e][1]+=" "+n.langPrefix+l);const r={attrs:t};return`<pre><code${o.renderAttrs(r)}>${s}</code></pre>\n`}return`<pre><code${o.renderAttrs(a)}>${s}</code></pre>\n`},Xf.image=function(e,t,n,r,o){const a=e[t];return a.attrs[a.attrIndex("alt")][1]=o.renderInlineAsText(a.children,n,r),o.renderToken(e,t,n)},Xf.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},Xf.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},Xf.text=function(e,t){return Uf(e[t].content)},Xf.html_block=function(e,t){return e[t].content},Xf.html_inline=function(e,t){return e[t].content},Qf.prototype.renderAttrs=function(e){let t,n,r;if(!e.attrs)return"";for(r="",t=0,n=e.attrs.length;t<n;t++)r+=" "+Uf(e.attrs[t][0])+'="'+Uf(e.attrs[t][1])+'"';return r},Qf.prototype.renderToken=function(e,t,n){const r=e[t];let o="";if(r.hidden)return"";r.block&&-1!==r.nesting&&t&&e[t-1].hidden&&(o+="\n"),o+=(-1===r.nesting?"</":"<")+r.tag,o+=this.renderAttrs(r),0===r.nesting&&n.xhtmlOut&&(o+=" /");let a=!1;if(r.block&&(a=!0,1===r.nesting&&t+1<e.length)){const n=e[t+1];("inline"===n.type||n.hidden||-1===n.nesting&&n.tag===r.tag)&&(a=!1)}return o+=a?">\n":">",o},Qf.prototype.renderInline=function(e,t,n){let r="";const o=this.rules;for(let a=0,i=e.length;a<i;a++){const i=e[a].type;void 0!==o[i]?r+=o[i](e,a,t,n,this):r+=this.renderToken(e,a,t)}return r},Qf.prototype.renderInlineAsText=function(e,t,n){let r="";for(let o=0,a=e.length;o<a;o++)switch(e[o].type){case"text":case"html_inline":case"html_block":r+=e[o].content;break;case"image":r+=this.renderInlineAsText(e[o].children,t,n);break;case"softbreak":case"hardbreak":r+="\n"}return r},Qf.prototype.render=function(e,t,n){let r="";const o=this.rules;for(let a=0,i=e.length;a<i;a++){const i=e[a].type;"inline"===i?r+=this.renderInline(e[a].children,t,n):void 0!==o[i]?r+=o[i](e,a,t,n,this):r+=this.renderToken(e,a,t,n)}return r},ep.prototype.__find__=function(e){for(let t=0;t<this.__rules__.length;t++)if(this.__rules__[t].name===e)return t;return-1},ep.prototype.__compile__=function(){const e=this,t=[""];e.__rules__.forEach(function(e){e.enabled&&e.alt.forEach(function(e){t.indexOf(e)<0&&t.push(e)})}),e.__cache__={},t.forEach(function(t){e.__cache__[t]=[],e.__rules__.forEach(function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))})})},ep.prototype.at=function(e,t,n){const r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},ep.prototype.before=function(e,t,n,r){const o=this.__find__(e),a=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},ep.prototype.after=function(e,t,n,r){const o=this.__find__(e),a=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:a.alt||[]}),this.__cache__=null},ep.prototype.push=function(e,t,n){const r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},ep.prototype.enable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!0,n.push(e)},this),this.__cache__=null,n},ep.prototype.enableOnly=function(e,t){Array.isArray(e)||(e=[e]),this.__rules__.forEach(function(e){e.enabled=!1}),this.enable(e,t)},ep.prototype.disable=function(e,t){Array.isArray(e)||(e=[e]);const n=[];return e.forEach(function(e){const r=this.__find__(e);if(r<0){if(t)return;throw new Error("Rules manager: invalid rule name "+e)}this.__rules__[r].enabled=!1,n.push(e)},this),this.__cache__=null,n},ep.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},tp.prototype.attrIndex=function(e){if(!this.attrs)return-1;const t=this.attrs;for(let n=0,r=t.length;n<r;n++)if(t[n][0]===e)return n;return-1},tp.prototype.attrPush=function(e){this.attrs?this.attrs.push(e):this.attrs=[e]},tp.prototype.attrSet=function(e,t){const n=this.attrIndex(e),r=[e,t];n<0?this.attrPush(r):this.attrs[n]=r},tp.prototype.attrGet=function(e){const t=this.attrIndex(e);let n=null;return t>=0&&(n=this.attrs[t][1]),n},tp.prototype.attrJoin=function(e,t){const n=this.attrIndex(e);n<0?this.attrPush([e,t]):this.attrs[n][1]=this.attrs[n][1]+" "+t},np.prototype.Token=tp;const rp=/\r\n?|\n/g,op=/\0/g;function ap(e){return/^<a[>\s]/i.test(e)}function ip(e){return/^<\/a\s*>/i.test(e)}const sp=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,lp=/\((c|tm|r)\)/i,cp=/\((c|tm|r)\)/gi,up={c:"©",r:"®",tm:"™"};function dp(e,t){return up[t.toLowerCase()]}function fp(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||(r.content=r.content.replace(cp,dp)),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}function pp(e){let t=0;for(let n=e.length-1;n>=0;n--){const r=e[n];"text"!==r.type||t||sp.test(r.content)&&(r.content=r.content.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---(?=[^-]|$)/gm,"$1—").replace(/(^|\s)--(?=\s|$)/gm,"$1–").replace(/(^|[^-\s])--(?=[^-\s]|$)/gm,"$1–")),"link_open"===r.type&&"auto"===r.info&&t--,"link_close"===r.type&&"auto"===r.info&&t++}}const mp=/['"]/,hp=/['"]/g;function gp(e,t,n){return e.slice(0,t)+n+e.slice(t+1)}function bp(e,t){let n;const r=[];for(let o=0;o<e.length;o++){const a=e[o],i=e[o].level;for(n=r.length-1;n>=0&&!(r[n].level<=i);n--);if(r.length=n+1,"text"!==a.type)continue;let s=a.content,l=0,c=s.length;e:for(;l<c;){hp.lastIndex=l;const u=hp.exec(s);if(!u)break;let d=!0,f=!0;l=u.index+1;const p="'"===u[0];let m=32;if(u.index-1>=0)m=s.charCodeAt(u.index-1);else for(n=o-1;n>=0&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n--)if(e[n].content){m=e[n].content.charCodeAt(e[n].content.length-1);break}let h=32;if(l<c)h=s.charCodeAt(l);else for(n=o+1;n<e.length&&("softbreak"!==e[n].type&&"hardbreak"!==e[n].type);n++)if(e[n].content){h=e[n].content.charCodeAt(0);break}const g=Gf(m)||$f(String.fromCharCode(m)),b=Gf(h)||$f(String.fromCharCode(h)),v=Vf(m),y=Vf(h);if(y?d=!1:b&&(v||g||(d=!1)),v?f=!1:g&&(y||b||(f=!1)),34===h&&'"'===u[0]&&m>=48&&m<=57&&(f=d=!1),d&&f&&(d=g,f=b),d||f){if(f)for(n=r.length-1;n>=0;n--){let d=r[n];if(r[n].level<i)break;if(d.single===p&&r[n].level===i){let i,f;d=r[n],p?(i=t.md.options.quotes[2],f=t.md.options.quotes[3]):(i=t.md.options.quotes[0],f=t.md.options.quotes[1]),a.content=gp(a.content,u.index,f),e[d.token].content=gp(e[d.token].content,d.pos,i),l+=f.length-1,d.token===o&&(l+=i.length-1),s=a.content,c=s.length,r.length=n;continue e}}d?r.push({token:o,pos:u.index,single:p,level:i}):f&&p&&(a.content=gp(a.content,u.index,"’"))}else p&&(a.content=gp(a.content,u.index,"’"))}}}const vp=[["normalize",function(e){let t;t=e.src.replace(rp,"\n"),t=t.replace(op,"�"),e.src=t}],["block",function(e){let t;e.inlineMode?(t=new e.Token("inline","",0),t.content=e.src,t.map=[0,1],t.children=[],e.tokens.push(t)):e.md.block.parse(e.src,e.md,e.env,e.tokens)}],["inline",function(e){const t=e.tokens;for(let n=0,r=t.length;n<r;n++){const r=t[n];"inline"===r.type&&e.md.inline.parse(r.content,e.md,e.env,r.children)}}],["linkify",function(e){const t=e.tokens;if(e.md.options.linkify)for(let n=0,r=t.length;n<r;n++){if("inline"!==t[n].type||!e.md.linkify.pretest(t[n].content))continue;let r=t[n].children,o=0;for(let a=r.length-1;a>=0;a--){const i=r[a];if("link_close"!==i.type){if("html_inline"===i.type&&(ap(i.content)&&o>0&&o--,ip(i.content)&&o++),!(o>0)&&"text"===i.type&&e.md.linkify.test(i.content)){const o=i.content;let s=e.md.linkify.match(o);const l=[];let c=i.level,u=0;s.length>0&&0===s[0].index&&a>0&&"text_special"===r[a-1].type&&(s=s.slice(1));for(let t=0;t<s.length;t++){const n=s[t].url,r=e.md.normalizeLink(n);if(!e.md.validateLink(r))continue;let a=s[t].text;a=s[t].schema?"mailto:"!==s[t].schema||/^mailto:/i.test(a)?e.md.normalizeLinkText(a):e.md.normalizeLinkText("mailto:"+a).replace(/^mailto:/,""):e.md.normalizeLinkText("http://"+a).replace(/^http:\/\//,"");const i=s[t].index;if(i>u){const t=new e.Token("text","",0);t.content=o.slice(u,i),t.level=c,l.push(t)}const d=new e.Token("link_open","a",1);d.attrs=[["href",r]],d.level=c++,d.markup="linkify",d.info="auto",l.push(d);const f=new e.Token("text","",0);f.content=a,f.level=c,l.push(f);const p=new e.Token("link_close","a",-1);p.level=--c,p.markup="linkify",p.info="auto",l.push(p),u=s[t].lastIndex}if(u<o.length){const t=new e.Token("text","",0);t.content=o.slice(u),t.level=c,l.push(t)}t[n].children=r=Rf(r,a,l)}}else for(a--;r[a].level!==i.level&&"link_open"!==r[a].type;)a--}}}],["replacements",function(e){let t;if(e.md.options.typographer)for(t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&(lp.test(e.tokens[t].content)&&fp(e.tokens[t].children),sp.test(e.tokens[t].content)&&pp(e.tokens[t].children))}],["smartquotes",function(e){if(e.md.options.typographer)for(let t=e.tokens.length-1;t>=0;t--)"inline"===e.tokens[t].type&&mp.test(e.tokens[t].content)&&bp(e.tokens[t].children,e)}],["text_join",function(e){let t,n;const r=e.tokens,o=r.length;for(let e=0;e<o;e++){if("inline"!==r[e].type)continue;const o=r[e].children,a=o.length;for(t=0;t<a;t++)"text_special"===o[t].type&&(o[t].type="text");for(t=n=0;t<a;t++)"text"===o[t].type&&t+1<a&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}}]];function yp(){this.ruler=new ep;for(let e=0;e<vp.length;e++)this.ruler.push(vp[e][0],vp[e][1])}function wp(e,t,n,r){this.src=e,this.md=t,this.env=n,this.tokens=r,this.bMarks=[],this.eMarks=[],this.tShift=[],this.sCount=[],this.bsCount=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.ddIndent=-1,this.listIndent=-1,this.parentType="root",this.level=0;const o=this.src;for(let e=0,t=0,n=0,r=0,a=o.length,i=!1;t<a;t++){const s=o.charCodeAt(t);if(!i){if(Wf(s)){n++,9===s?r+=4-r%4:r++;continue}i=!0}10!==s&&t!==a-1||(10!==s&&t++,this.bMarks.push(e),this.eMarks.push(t),this.tShift.push(n),this.sCount.push(r),this.bsCount.push(0),i=!1,n=0,r=0,e=t+1)}this.bMarks.push(o.length),this.eMarks.push(o.length),this.tShift.push(0),this.sCount.push(0),this.bsCount.push(0),this.lineMax=this.bMarks.length-1}yp.prototype.process=function(e){const t=this.ruler.getRules("");for(let n=0,r=t.length;n<r;n++)t[n](e)},yp.prototype.State=np,wp.prototype.push=function(e,t,n){const r=new tp(e,t,n);return r.block=!0,n<0&&this.level--,r.level=this.level,n>0&&this.level++,this.tokens.push(r),r},wp.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},wp.prototype.skipEmptyLines=function(e){for(let t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},wp.prototype.skipSpaces=function(e){for(let t=this.src.length;e<t;e++){if(!Wf(this.src.charCodeAt(e)))break}return e},wp.prototype.skipSpacesBack=function(e,t){if(e<=t)return e;for(;e>t;)if(!Wf(this.src.charCodeAt(--e)))return e+1;return e},wp.prototype.skipChars=function(e,t){for(let n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},wp.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},wp.prototype.getLines=function(e,t,n,r){if(e>=t)return"";const o=new Array(t-e);for(let a=0,i=e;i<t;i++,a++){let e=0;const s=this.bMarks[i];let l,c=s;for(l=i+1<t||r?this.eMarks[i]+1:this.eMarks[i];c<l&&e<n;){const t=this.src.charCodeAt(c);if(Wf(t))9===t?e+=4-(e+this.bsCount[i])%4:e++;else{if(!(c-s<this.tShift[i]))break;e++}c++}o[a]=e>n?new Array(e-n+1).join(" ")+this.src.slice(c,l):this.src.slice(c,l)}return o.join("")},wp.prototype.Token=tp;function xp(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];return e.src.slice(n,r)}function Ep(e){const t=[],n=e.length;let r=0,o=e.charCodeAt(r),a=!1,i=0,s="";for(;r<n;)124===o&&(a?(s+=e.substring(i,r-1),i=r):(t.push(s+e.substring(i,r)),s="",i=r+1)),a=92===o,r++,o=e.charCodeAt(r);return t.push(s+e.substring(i)),t}function _p(e,t){const n=e.eMarks[t];let r=e.bMarks[t]+e.tShift[t];const o=e.src.charCodeAt(r++);if(42!==o&&45!==o&&43!==o)return-1;if(r<n){if(!Wf(e.src.charCodeAt(r)))return-1}return r}function kp(e,t){const n=e.bMarks[t]+e.tShift[t],r=e.eMarks[t];let o=n;if(o+1>=r)return-1;let a=e.src.charCodeAt(o++);if(a<48||a>57)return-1;for(;;){if(o>=r)return-1;if(a=e.src.charCodeAt(o++),!(a>=48&&a<=57)){if(41===a||46===a)break;return-1}if(o-n>=10)return-1}return o<r&&(a=e.src.charCodeAt(o),!Wf(a))?-1:o}const Cp="<[A-Za-z][A-Za-z0-9\\-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*\\/?>",Np="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Dp=new RegExp("^(?:"+Cp+"|"+Np+"|\x3c!---?>|\x3c!--(?:[^-]|-[^-]|--[^>])*--\x3e|<[?][\\s\\S]*?[?]>|<![A-Za-z][^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)"),Sp=new RegExp("^(?:"+Cp+"|"+Np+")"),Ap=[[/^<(script|pre|style|textarea)(?=(\s|>|$))/i,/<\/(script|pre|style|textarea)>/i,!0],[/^<!--/,/-->/,!0],[/^<\?/,/\?>/,!0],[/^<![A-Z]/,/>/,!0],[/^<!\[CDATA\[/,/\]\]>/,!0],[new RegExp("^</?("+["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"].join("|")+")(?=(\\s|/?>|$))","i"),/^$/,!0],[new RegExp(Sp.source+"\\s*$"),/^$/,!1]];const Tp=[["table",function(e,t,n,r){if(t+2>n)return!1;let o=t+1;if(e.sCount[o]<e.blkIndent)return!1;if(e.sCount[o]-e.blkIndent>=4)return!1;let a=e.bMarks[o]+e.tShift[o];if(a>=e.eMarks[o])return!1;const i=e.src.charCodeAt(a++);if(124!==i&&45!==i&&58!==i)return!1;if(a>=e.eMarks[o])return!1;const s=e.src.charCodeAt(a++);if(124!==s&&45!==s&&58!==s&&!Wf(s))return!1;if(45===i&&Wf(s))return!1;for(;a<e.eMarks[o];){const t=e.src.charCodeAt(a);if(124!==t&&45!==t&&58!==t&&!Wf(t))return!1;a++}let l=xp(e,t+1),c=l.split("|");const u=[];for(let e=0;e<c.length;e++){const t=c[e].trim();if(!t){if(0===e||e===c.length-1)continue;return!1}if(!/^:?-+:?$/.test(t))return!1;58===t.charCodeAt(t.length-1)?u.push(58===t.charCodeAt(0)?"center":"right"):58===t.charCodeAt(0)?u.push("left"):u.push("")}if(l=xp(e,t).trim(),-1===l.indexOf("|"))return!1;if(e.sCount[t]-e.blkIndent>=4)return!1;c=Ep(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop();const d=c.length;if(0===d||d!==u.length)return!1;if(r)return!0;const f=e.parentType;e.parentType="table";const p=e.md.block.ruler.getRules("blockquote"),m=[t,0];e.push("table_open","table",1).map=m,e.push("thead_open","thead",1).map=[t,t+1],e.push("tr_open","tr",1).map=[t,t+1];for(let t=0;t<c.length;t++){const n=e.push("th_open","th",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t].trim(),r.children=[],e.push("th_close","th",-1)}let h;e.push("tr_close","tr",-1),e.push("thead_close","thead",-1);let g=0;for(o=t+2;o<n&&!(e.sCount[o]<e.blkIndent);o++){let r=!1;for(let t=0,a=p.length;t<a;t++)if(p[t](e,o,n,!0)){r=!0;break}if(r)break;if(l=xp(e,o).trim(),!l)break;if(e.sCount[o]-e.blkIndent>=4)break;if(c=Ep(l),c.length&&""===c[0]&&c.shift(),c.length&&""===c[c.length-1]&&c.pop(),g+=d-c.length,g>65536)break;if(o===t+2){e.push("tbody_open","tbody",1).map=h=[t+2,0]}e.push("tr_open","tr",1).map=[o,o+1];for(let t=0;t<d;t++){const n=e.push("td_open","td",1);u[t]&&(n.attrs=[["style","text-align:"+u[t]]]);const r=e.push("inline","",0);r.content=c[t]?c[t].trim():"",r.children=[],e.push("td_close","td",-1)}e.push("tr_close","tr",-1)}return h&&(e.push("tbody_close","tbody",-1),h[1]=o),e.push("table_close","table",-1),m[1]=o,e.parentType=f,e.line=o,!0},["paragraph","reference"]],["code",function(e,t,n){if(e.sCount[t]-e.blkIndent<4)return!1;let r=t+1,o=r;for(;r<n;)if(e.isEmpty(r))r++;else{if(!(e.sCount[r]-e.blkIndent>=4))break;r++,o=r}e.line=o;const a=e.push("code_block","code",0);return a.content=e.getLines(t,o,4+e.blkIndent,!1)+"\n",a.map=[t,e.line],!0}],["fence",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(o+3>a)return!1;const i=e.src.charCodeAt(o);if(126!==i&&96!==i)return!1;let s=o;o=e.skipChars(o,i);let l=o-s;if(l<3)return!1;const c=e.src.slice(s,o),u=e.src.slice(o,a);if(96===i&&u.indexOf(String.fromCharCode(i))>=0)return!1;if(r)return!0;let d=t,f=!1;for(;(d++,!(d>=n))&&(o=s=e.bMarks[d]+e.tShift[d],a=e.eMarks[d],!(o<a&&e.sCount[d]<e.blkIndent));)if(e.src.charCodeAt(o)===i&&!(e.sCount[d]-e.blkIndent>=4||(o=e.skipChars(o,i),o-s<l||(o=e.skipSpaces(o),o<a)))){f=!0;break}l=e.sCount[t],e.line=d+(f?1:0);const p=e.push("fence","code",0);return p.info=u,p.content=e.getLines(t+1,d,l,!0),p.markup=c,p.map=[t,e.line],!0},["paragraph","reference","blockquote","list"]],["blockquote",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];const i=e.lineMax;if(e.sCount[t]-e.blkIndent>=4)return!1;if(62!==e.src.charCodeAt(o))return!1;if(r)return!0;const s=[],l=[],c=[],u=[],d=e.md.block.ruler.getRules("blockquote"),f=e.parentType;e.parentType="blockquote";let p,m=!1;for(p=t;p<n;p++){const t=e.sCount[p]<e.blkIndent;if(o=e.bMarks[p]+e.tShift[p],a=e.eMarks[p],o>=a)break;if(62===e.src.charCodeAt(o++)&&!t){let t,n,r=e.sCount[p]+1;32===e.src.charCodeAt(o)?(o++,r++,n=!1,t=!0):9===e.src.charCodeAt(o)?(t=!0,(e.bsCount[p]+r)%4==3?(o++,r++,n=!1):n=!0):t=!1;let i=r;for(s.push(e.bMarks[p]),e.bMarks[p]=o;o<a;){const t=e.src.charCodeAt(o);if(!Wf(t))break;9===t?i+=4-(i+e.bsCount[p]+(n?1:0))%4:i++,o++}m=o>=a,l.push(e.bsCount[p]),e.bsCount[p]=e.sCount[p]+1+(t?1:0),c.push(e.sCount[p]),e.sCount[p]=i-r,u.push(e.tShift[p]),e.tShift[p]=o-e.bMarks[p];continue}if(m)break;let r=!1;for(let t=0,o=d.length;t<o;t++)if(d[t](e,p,n,!0)){r=!0;break}if(r){e.lineMax=p,0!==e.blkIndent&&(s.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]-=e.blkIndent);break}s.push(e.bMarks[p]),l.push(e.bsCount[p]),u.push(e.tShift[p]),c.push(e.sCount[p]),e.sCount[p]=-1}const h=e.blkIndent;e.blkIndent=0;const g=e.push("blockquote_open","blockquote",1);g.markup=">";const b=[t,0];g.map=b,e.md.block.tokenize(e,t,p),e.push("blockquote_close","blockquote",-1).markup=">",e.lineMax=i,e.parentType=f,b[1]=e.line;for(let n=0;n<u.length;n++)e.bMarks[n+t]=s[n],e.tShift[n+t]=u[n],e.sCount[n+t]=c[n],e.bsCount[n+t]=l[n];return e.blkIndent=h,!0},["paragraph","reference","blockquote","list"]],["hr",function(e,t,n,r){const o=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let a=e.bMarks[t]+e.tShift[t];const i=e.src.charCodeAt(a++);if(42!==i&&45!==i&&95!==i)return!1;let s=1;for(;a<o;){const t=e.src.charCodeAt(a++);if(t!==i&&!Wf(t))return!1;t===i&&s++}if(s<3)return!1;if(r)return!0;e.line=t+1;const l=e.push("hr","hr",0);return l.map=[t,e.line],l.markup=Array(s+1).join(String.fromCharCode(i)),!0},["paragraph","reference","blockquote","list"]],["list",function(e,t,n,r){let o,a,i,s,l=t,c=!0;if(e.sCount[l]-e.blkIndent>=4)return!1;if(e.listIndent>=0&&e.sCount[l]-e.listIndent>=4&&e.sCount[l]<e.blkIndent)return!1;let u,d,f,p=!1;if(r&&"paragraph"===e.parentType&&e.sCount[l]>=e.blkIndent&&(p=!0),(f=kp(e,l))>=0){if(u=!0,i=e.bMarks[l]+e.tShift[l],d=Number(e.src.slice(i,f-1)),p&&1!==d)return!1}else{if(!((f=_p(e,l))>=0))return!1;u=!1}if(p&&e.skipSpaces(f)>=e.eMarks[l])return!1;if(r)return!0;const m=e.src.charCodeAt(f-1),h=e.tokens.length;u?(s=e.push("ordered_list_open","ol",1),1!==d&&(s.attrs=[["start",d]])):s=e.push("bullet_list_open","ul",1);const g=[l,0];s.map=g,s.markup=String.fromCharCode(m);let b=!1;const v=e.md.block.ruler.getRules("list"),y=e.parentType;for(e.parentType="list";l<n;){a=f,o=e.eMarks[l];const t=e.sCount[l]+f-(e.bMarks[l]+e.tShift[l]);let r=t;for(;a<o;){const t=e.src.charCodeAt(a);if(9===t)r+=4-(r+e.bsCount[l])%4;else{if(32!==t)break;r++}a++}const d=a;let p;p=d>=o?1:r-t,p>4&&(p=1);const h=t+p;s=e.push("list_item_open","li",1),s.markup=String.fromCharCode(m);const g=[l,0];s.map=g,u&&(s.info=e.src.slice(i,f-1));const y=e.tight,w=e.tShift[l],x=e.sCount[l],E=e.listIndent;if(e.listIndent=e.blkIndent,e.blkIndent=h,e.tight=!0,e.tShift[l]=d-e.bMarks[l],e.sCount[l]=r,d>=o&&e.isEmpty(l+1)?e.line=Math.min(e.line+2,n):e.md.block.tokenize(e,l,n,!0),e.tight&&!b||(c=!1),b=e.line-l>1&&e.isEmpty(e.line-1),e.blkIndent=e.listIndent,e.listIndent=E,e.tShift[l]=w,e.sCount[l]=x,e.tight=y,s=e.push("list_item_close","li",-1),s.markup=String.fromCharCode(m),l=e.line,g[1]=l,l>=n)break;if(e.sCount[l]<e.blkIndent)break;if(e.sCount[l]-e.blkIndent>=4)break;let _=!1;for(let t=0,r=v.length;t<r;t++)if(v[t](e,l,n,!0)){_=!0;break}if(_)break;if(u){if(f=kp(e,l),f<0)break;i=e.bMarks[l]+e.tShift[l]}else if(f=_p(e,l),f<0)break;if(m!==e.src.charCodeAt(f-1))break}return s=u?e.push("ordered_list_close","ol",-1):e.push("bullet_list_close","ul",-1),s.markup=String.fromCharCode(m),g[1]=l,e.line=l,e.parentType=y,c&&function(e,t){const n=e.level+2;for(let r=t+2,o=e.tokens.length-2;r<o;r++)e.tokens[r].level===n&&"paragraph_open"===e.tokens[r].type&&(e.tokens[r+2].hidden=!0,e.tokens[r].hidden=!0,r+=2)}(e,h),!0},["paragraph","reference","blockquote"]],["reference",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t],i=t+1;if(e.sCount[t]-e.blkIndent>=4)return!1;if(91!==e.src.charCodeAt(o))return!1;function s(t){const n=e.lineMax;if(t>=n||e.isEmpty(t))return null;let r=!1;if(e.sCount[t]-e.blkIndent>3&&(r=!0),e.sCount[t]<0&&(r=!0),!r){const r=e.md.block.ruler.getRules("reference"),o=e.parentType;e.parentType="reference";let a=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,t,n,!0)){a=!0;break}if(e.parentType=o,a)return null}const o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];return e.src.slice(o,a+1)}let l=e.src.slice(o,a+1);a=l.length;let c=-1;for(o=1;o<a;o++){const e=l.charCodeAt(o);if(91===e)return!1;if(93===e){c=o;break}if(10===e){const e=s(i);null!==e&&(l+=e,a=l.length,i++)}else if(92===e&&(o++,o<a&&10===l.charCodeAt(o))){const e=s(i);null!==e&&(l+=e,a=l.length,i++)}}if(c<0||58!==l.charCodeAt(c+1))return!1;for(o=c+2;o<a;o++){const e=l.charCodeAt(o);if(10===e){const e=s(i);null!==e&&(l+=e,a=l.length,i++)}else if(!Wf(e))break}const u=e.md.helpers.parseLinkDestination(l,o,a);if(!u.ok)return!1;const d=e.md.normalizeLink(u.str);if(!e.md.validateLink(d))return!1;o=u.pos;const f=o,p=i,m=o;for(;o<a;o++){const e=l.charCodeAt(o);if(10===e){const e=s(i);null!==e&&(l+=e,a=l.length,i++)}else if(!Wf(e))break}let h,g=e.md.helpers.parseLinkTitle(l,o,a);for(;g.can_continue;){const t=s(i);if(null===t)break;l+=t,o=a,a=l.length,i++,g=e.md.helpers.parseLinkTitle(l,o,a,g)}for(o<a&&m!==o&&g.ok?(h=g.str,o=g.pos):(h="",o=f,i=p);o<a;){if(!Wf(l.charCodeAt(o)))break;o++}if(o<a&&10!==l.charCodeAt(o)&&h)for(h="",o=f,i=p;o<a;){if(!Wf(l.charCodeAt(o)))break;o++}if(o<a&&10!==l.charCodeAt(o))return!1;const b=Kf(l.slice(1,c));return!!b&&(r||(void 0===e.env.references&&(e.env.references={}),void 0===e.env.references[b]&&(e.env.references[b]={title:h,href:d}),e.line=i),!0)}],["html_block",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;if(!e.md.options.html)return!1;if(60!==e.src.charCodeAt(o))return!1;let i=e.src.slice(o,a),s=0;for(;s<Ap.length&&!Ap[s][0].test(i);s++);if(s===Ap.length)return!1;if(r)return Ap[s][2];let l=t+1;if(!Ap[s][1].test(i))for(;l<n&&!(e.sCount[l]<e.blkIndent);l++)if(o=e.bMarks[l]+e.tShift[l],a=e.eMarks[l],i=e.src.slice(o,a),Ap[s][1].test(i)){0!==i.length&&l++;break}e.line=l;const c=e.push("html_block","",0);return c.map=[t,l],c.content=e.getLines(t,l,e.blkIndent,!0),!0},["paragraph","reference","blockquote"]],["heading",function(e,t,n,r){let o=e.bMarks[t]+e.tShift[t],a=e.eMarks[t];if(e.sCount[t]-e.blkIndent>=4)return!1;let i=e.src.charCodeAt(o);if(35!==i||o>=a)return!1;let s=1;for(i=e.src.charCodeAt(++o);35===i&&o<a&&s<=6;)s++,i=e.src.charCodeAt(++o);if(s>6||o<a&&!Wf(i))return!1;if(r)return!0;a=e.skipSpacesBack(a,o);const l=e.skipCharsBack(a,35,o);l>o&&Wf(e.src.charCodeAt(l-1))&&(a=l),e.line=t+1;const c=e.push("heading_open","h"+String(s),1);c.markup="########".slice(0,s),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=e.src.slice(o,a).trim(),u.map=[t,e.line],u.children=[],e.push("heading_close","h"+String(s),-1).markup="########".slice(0,s),!0},["paragraph","reference","blockquote"]],["lheading",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph");if(e.sCount[t]-e.blkIndent>=4)return!1;const o=e.parentType;e.parentType="paragraph";let a,i=0,s=t+1;for(;s<n&&!e.isEmpty(s);s++){if(e.sCount[s]-e.blkIndent>3)continue;if(e.sCount[s]>=e.blkIndent){let t=e.bMarks[s]+e.tShift[s];const n=e.eMarks[s];if(t<n&&(a=e.src.charCodeAt(t),(45===a||61===a)&&(t=e.skipChars(t,a),t=e.skipSpaces(t),t>=n))){i=61===a?1:2;break}}if(e.sCount[s]<0)continue;let t=!1;for(let o=0,a=r.length;o<a;o++)if(r[o](e,s,n,!0)){t=!0;break}if(t)break}if(!i)return!1;const l=e.getLines(t,s,e.blkIndent,!1).trim();e.line=s+1;const c=e.push("heading_open","h"+String(i),1);c.markup=String.fromCharCode(a),c.map=[t,e.line];const u=e.push("inline","",0);return u.content=l,u.map=[t,e.line-1],u.children=[],e.push("heading_close","h"+String(i),-1).markup=String.fromCharCode(a),e.parentType=o,!0}],["paragraph",function(e,t,n){const r=e.md.block.ruler.getRules("paragraph"),o=e.parentType;let a=t+1;for(e.parentType="paragraph";a<n&&!e.isEmpty(a);a++){if(e.sCount[a]-e.blkIndent>3)continue;if(e.sCount[a]<0)continue;let t=!1;for(let o=0,i=r.length;o<i;o++)if(r[o](e,a,n,!0)){t=!0;break}if(t)break}const i=e.getLines(t,a,e.blkIndent,!1).trim();e.line=a,e.push("paragraph_open","p",1).map=[t,e.line];const s=e.push("inline","",0);return s.content=i,s.map=[t,e.line],s.children=[],e.push("paragraph_close","p",-1),e.parentType=o,!0}]];function Rp(){this.ruler=new ep;for(let e=0;e<Tp.length;e++)this.ruler.push(Tp[e][0],Tp[e][1],{alt:(Tp[e][2]||[]).slice()})}function Op(e,t,n,r){this.src=e,this.env=n,this.md=t,this.tokens=r,this.tokens_meta=Array(r.length),this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache={},this.delimiters=[],this._prev_delimiters=[],this.backticks={},this.backticksScanned=!1,this.linkLevel=0}function Fp(e){switch(e){case 10:case 33:case 35:case 36:case 37:case 38:case 42:case 43:case 45:case 58:case 60:case 61:case 62:case 64:case 91:case 92:case 93:case 94:case 95:case 96:case 123:case 125:case 126:return!0;default:return!1}}Rp.prototype.tokenize=function(e,t,n){const r=this.ruler.getRules(""),o=r.length,a=e.md.options.maxNesting;let i=t,s=!1;for(;i<n&&(e.line=i=e.skipEmptyLines(i),!(i>=n))&&!(e.sCount[i]<e.blkIndent);){if(e.level>=a){e.line=n;break}const t=e.line;let l=!1;for(let a=0;a<o;a++)if(l=r[a](e,i,n,!1),l){if(t>=e.line)throw new Error("block rule didn't increment state.line");break}if(!l)throw new Error("none of the block rules matched");e.tight=!s,e.isEmpty(e.line-1)&&(s=!0),i=e.line,i<n&&e.isEmpty(i)&&(s=!0,i++,e.line=i)}},Rp.prototype.parse=function(e,t,n,r){if(!e)return;const o=new this.State(e,t,n,r);this.tokenize(o,o.line,o.lineMax)},Rp.prototype.State=wp,Op.prototype.pushPending=function(){const e=new tp("text","",0);return e.content=this.pending,e.level=this.pendingLevel,this.tokens.push(e),this.pending="",e},Op.prototype.push=function(e,t,n){this.pending&&this.pushPending();const r=new tp(e,t,n);let o=null;return n<0&&(this.level--,this.delimiters=this._prev_delimiters.pop()),r.level=this.level,n>0&&(this.level++,this._prev_delimiters.push(this.delimiters),this.delimiters=[],o={delimiters:this.delimiters}),this.pendingLevel=this.level,this.tokens.push(r),this.tokens_meta.push(o),r},Op.prototype.scanDelims=function(e,t){const n=this.posMax,r=this.src.charCodeAt(e),o=e>0?this.src.charCodeAt(e-1):32;let a=e;for(;a<n&&this.src.charCodeAt(a)===r;)a++;const i=a-e,s=a<n?this.src.charCodeAt(a):32,l=Gf(o)||$f(String.fromCharCode(o)),c=Gf(s)||$f(String.fromCharCode(s)),u=Vf(o),d=Vf(s),f=!d&&(!c||u||l),p=!u&&(!l||d||c);return{can_open:f&&(t||!p||l),can_close:p&&(t||!f||c),length:i}},Op.prototype.Token=tp;const Mp=/(?:^|[^a-z0-9.+-])([a-z][a-z0-9.+-]*)$/i;const jp=[];for(let e=0;e<256;e++)jp.push(0);function Lp(e,t){let n;const r=[],o=t.length;for(let a=0;a<o;a++){const o=t[a];if(126!==o.marker)continue;if(-1===o.end)continue;const i=t[o.end];n=e.tokens[o.token],n.type="s_open",n.tag="s",n.nesting=1,n.markup="~~",n.content="",n=e.tokens[i.token],n.type="s_close",n.tag="s",n.nesting=-1,n.markup="~~",n.content="","text"===e.tokens[i.token-1].type&&"~"===e.tokens[i.token-1].content&&r.push(i.token-1)}for(;r.length;){const t=r.pop();let o=t+1;for(;o<e.tokens.length&&"s_close"===e.tokens[o].type;)o++;o--,t!==o&&(n=e.tokens[o],e.tokens[o]=e.tokens[t],e.tokens[t]=n)}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach(function(e){jp[e.charCodeAt(0)]=1});var Ip={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(126!==r)return!1;const o=e.scanDelims(e.pos,!0);let a=o.length;const i=String.fromCharCode(r);if(a<2)return!1;let s;a%2&&(s=e.push("text","",0),s.content=i,a--);for(let t=0;t<a;t+=2)s=e.push("text","",0),s.content=i+i,e.delimiters.push({marker:r,length:0,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close});return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Lp(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Lp(e,t[r].delimiters)}};function Pp(e,t){for(let n=t.length-1;n>=0;n--){const r=t[n];if(95!==r.marker&&42!==r.marker)continue;if(-1===r.end)continue;const o=t[r.end],a=n>0&&t[n-1].end===r.end+1&&t[n-1].marker===r.marker&&t[n-1].token===r.token-1&&t[r.end+1].token===o.token+1,i=String.fromCharCode(r.marker),s=e.tokens[r.token];s.type=a?"strong_open":"em_open",s.tag=a?"strong":"em",s.nesting=1,s.markup=a?i+i:i,s.content="";const l=e.tokens[o.token];l.type=a?"strong_close":"em_close",l.tag=a?"strong":"em",l.nesting=-1,l.markup=a?i+i:i,l.content="",a&&(e.tokens[t[n-1].token].content="",e.tokens[t[r.end+1].token].content="",n--)}}var zp={tokenize:function(e,t){const n=e.pos,r=e.src.charCodeAt(n);if(t)return!1;if(95!==r&&42!==r)return!1;const o=e.scanDelims(e.pos,42===r);for(let t=0;t<o.length;t++){e.push("text","",0).content=String.fromCharCode(r),e.delimiters.push({marker:r,length:o.length,token:e.tokens.length-1,end:-1,open:o.can_open,close:o.can_close})}return e.pos+=o.length,!0},postProcess:function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Pp(e,e.delimiters);for(let r=0;r<n;r++)t[r]&&t[r].delimiters&&Pp(e,t[r].delimiters)}};const Bp=/^([a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)$/,qp=/^([a-zA-Z][a-zA-Z0-9+.-]{1,31}):([^<>\x00-\x20]*)$/;const Up=/^&#((?:x[a-f0-9]{1,6}|[0-9]{1,7}));/i,Hp=/^&([a-z][a-z0-9]{1,31});/i;function Wp(e){const t={},n=e.length;if(!n)return;let r=0,o=-2;const a=[];for(let i=0;i<n;i++){const n=e[i];if(a.push(0),e[r].marker===n.marker&&o===n.token-1||(r=i),o=n.token,n.length=n.length||0,!n.close)continue;t.hasOwnProperty(n.marker)||(t[n.marker]=[-1,-1,-1,-1,-1,-1]);const s=t[n.marker][(n.open?3:0)+n.length%3];let l=r-a[r]-1,c=l;for(;l>s;l-=a[l]+1){const t=e[l];if(t.marker===n.marker&&(t.open&&t.end<0)){let r=!1;if((t.close||n.open)&&(t.length+n.length)%3==0&&(t.length%3==0&&n.length%3==0||(r=!0)),!r){const r=l>0&&!e[l-1].open?a[l-1]+1:0;a[i]=i-l+r,a[l]=r,n.open=!1,t.end=i,t.close=!1,c=-1,o=-2;break}}}-1!==c&&(t[n.marker][(n.open?3:0)+(n.length||0)%3]=c)}}const Vp=[["text",function(e,t){let n=e.pos;for(;n<e.posMax&&!Fp(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["linkify",function(e,t){if(!e.md.options.linkify)return!1;if(e.linkLevel>0)return!1;const n=e.pos;if(n+3>e.posMax)return!1;if(58!==e.src.charCodeAt(n))return!1;if(47!==e.src.charCodeAt(n+1))return!1;if(47!==e.src.charCodeAt(n+2))return!1;const r=e.pending.match(Mp);if(!r)return!1;const o=r[1],a=e.md.linkify.matchAtStart(e.src.slice(n-o.length));if(!a)return!1;let i=a.url;if(i.length<=o.length)return!1;let s=i.length;for(;s>0&&42===i.charCodeAt(s-1);)s--;s!==i.length&&(i=i.slice(0,s));const l=e.md.normalizeLink(i);if(!e.md.validateLink(l))return!1;if(!t){e.pending=e.pending.slice(0,-o.length);const t=e.push("link_open","a",1);t.attrs=[["href",l]],t.markup="linkify",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(i);const n=e.push("link_close","a",-1);n.markup="linkify",n.info="auto"}return e.pos+=i.length-o.length,!0}],["newline",function(e,t){let n=e.pos;if(10!==e.src.charCodeAt(n))return!1;const r=e.pending.length-1,o=e.posMax;if(!t)if(r>=0&&32===e.pending.charCodeAt(r))if(r>=1&&32===e.pending.charCodeAt(r-1)){let t=r-1;for(;t>=1&&32===e.pending.charCodeAt(t-1);)t--;e.pending=e.pending.slice(0,t),e.push("hardbreak","br",0)}else e.pending=e.pending.slice(0,-1),e.push("softbreak","br",0);else e.push("softbreak","br",0);for(n++;n<o&&Wf(e.src.charCodeAt(n));)n++;return e.pos=n,!0}],["escape",function(e,t){let n=e.pos;const r=e.posMax;if(92!==e.src.charCodeAt(n))return!1;if(n++,n>=r)return!1;let o=e.src.charCodeAt(n);if(10===o){for(t||e.push("hardbreak","br",0),n++;n<r&&(o=e.src.charCodeAt(n),Wf(o));)n++;return e.pos=n,!0}let a=e.src[n];if(o>=55296&&o<=56319&&n+1<r){const t=e.src.charCodeAt(n+1);t>=56320&&t<=57343&&(a+=e.src[n+1],n++)}const i="\\"+a;if(!t){const t=e.push("text_special","",0);o<256&&0!==jp[o]?t.content=a:t.content=i,t.markup=i,t.info="escape"}return e.pos=n+1,!0}],["backticks",function(e,t){let n=e.pos;if(96!==e.src.charCodeAt(n))return!1;const r=n;n++;const o=e.posMax;for(;n<o&&96===e.src.charCodeAt(n);)n++;const a=e.src.slice(r,n),i=a.length;if(e.backticksScanned&&(e.backticks[i]||0)<=r)return t||(e.pending+=a),e.pos+=i,!0;let s,l=n;for(;-1!==(s=e.src.indexOf("`",l));){for(l=s+1;l<o&&96===e.src.charCodeAt(l);)l++;const r=l-s;if(r===i){if(!t){const t=e.push("code_inline","code",0);t.markup=a,t.content=e.src.slice(n,s).replace(/\n/g," ").replace(/^ (.+) $/,"$1")}return e.pos=l,!0}e.backticks[r]=s}return e.backticksScanned=!0,t||(e.pending+=a),e.pos+=i,!0}],["strikethrough",Ip.tokenize],["emphasis",zp.tokenize],["link",function(e,t){let n,r,o,a,i="",s="",l=e.pos,c=!0;if(91!==e.src.charCodeAt(e.pos))return!1;const u=e.pos,d=e.posMax,f=e.pos+1,p=e.md.helpers.parseLinkLabel(e,e.pos,!0);if(p<0)return!1;let m=p+1;if(m<d&&40===e.src.charCodeAt(m)){for(c=!1,m++;m<d&&(n=e.src.charCodeAt(m),Wf(n)||10===n);m++);if(m>=d)return!1;if(l=m,o=e.md.helpers.parseLinkDestination(e.src,m,e.posMax),o.ok){for(i=e.md.normalizeLink(o.str),e.md.validateLink(i)?m=o.pos:i="",l=m;m<d&&(n=e.src.charCodeAt(m),Wf(n)||10===n);m++);if(o=e.md.helpers.parseLinkTitle(e.src,m,e.posMax),m<d&&l!==m&&o.ok)for(s=o.str,m=o.pos;m<d&&(n=e.src.charCodeAt(m),Wf(n)||10===n);m++);}(m>=d||41!==e.src.charCodeAt(m))&&(c=!0),m++}if(c){if(void 0===e.env.references)return!1;if(m<d&&91===e.src.charCodeAt(m)?(l=m+1,m=e.md.helpers.parseLinkLabel(e,m),m>=0?r=e.src.slice(l,m++):m=p+1):m=p+1,r||(r=e.src.slice(f,p)),a=e.env.references[Kf(r)],!a)return e.pos=u,!1;i=a.href,s=a.title}if(!t){e.pos=f,e.posMax=p;const t=[["href",i]];e.push("link_open","a",1).attrs=t,s&&t.push(["title",s]),e.linkLevel++,e.md.inline.tokenize(e),e.linkLevel--,e.push("link_close","a",-1)}return e.pos=m,e.posMax=d,!0}],["image",function(e,t){let n,r,o,a,i,s,l,c,u="";const d=e.pos,f=e.posMax;if(33!==e.src.charCodeAt(e.pos))return!1;if(91!==e.src.charCodeAt(e.pos+1))return!1;const p=e.pos+2,m=e.md.helpers.parseLinkLabel(e,e.pos+1,!1);if(m<0)return!1;if(a=m+1,a<f&&40===e.src.charCodeAt(a)){for(a++;a<f&&(n=e.src.charCodeAt(a),Wf(n)||10===n);a++);if(a>=f)return!1;for(c=a,s=e.md.helpers.parseLinkDestination(e.src,a,e.posMax),s.ok&&(u=e.md.normalizeLink(s.str),e.md.validateLink(u)?a=s.pos:u=""),c=a;a<f&&(n=e.src.charCodeAt(a),Wf(n)||10===n);a++);if(s=e.md.helpers.parseLinkTitle(e.src,a,e.posMax),a<f&&c!==a&&s.ok)for(l=s.str,a=s.pos;a<f&&(n=e.src.charCodeAt(a),Wf(n)||10===n);a++);else l="";if(a>=f||41!==e.src.charCodeAt(a))return e.pos=d,!1;a++}else{if(void 0===e.env.references)return!1;if(a<f&&91===e.src.charCodeAt(a)?(c=a+1,a=e.md.helpers.parseLinkLabel(e,a),a>=0?o=e.src.slice(c,a++):a=m+1):a=m+1,o||(o=e.src.slice(p,m)),i=e.env.references[Kf(o)],!i)return e.pos=d,!1;u=i.href,l=i.title}if(!t){r=e.src.slice(p,m);const t=[];e.md.inline.parse(r,e.md,e.env,t);const n=e.push("image","img",0),o=[["src",u],["alt",""]];n.attrs=o,n.children=t,n.content=r,l&&o.push(["title",l])}return e.pos=a,e.posMax=f,!0}],["autolink",function(e,t){let n=e.pos;if(60!==e.src.charCodeAt(n))return!1;const r=e.pos,o=e.posMax;for(;;){if(++n>=o)return!1;const t=e.src.charCodeAt(n);if(60===t)return!1;if(62===t)break}const a=e.src.slice(r+1,n);if(qp.test(a)){const n=e.md.normalizeLink(a);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=a.length+2,!0}if(Bp.test(a)){const n=e.md.normalizeLink("mailto:"+a);if(!e.md.validateLink(n))return!1;if(!t){const t=e.push("link_open","a",1);t.attrs=[["href",n]],t.markup="autolink",t.info="auto";e.push("text","",0).content=e.md.normalizeLinkText(a);const r=e.push("link_close","a",-1);r.markup="autolink",r.info="auto"}return e.pos+=a.length+2,!0}return!1}],["html_inline",function(e,t){if(!e.md.options.html)return!1;const n=e.posMax,r=e.pos;if(60!==e.src.charCodeAt(r)||r+2>=n)return!1;const o=e.src.charCodeAt(r+1);if(33!==o&&63!==o&&47!==o&&!function(e){const t=32|e;return t>=97&&t<=122}(o))return!1;const a=e.src.slice(r).match(Dp);if(!a)return!1;if(!t){const t=e.push("html_inline","",0);t.content=a[0],i=t.content,/^<a[>\s]/i.test(i)&&e.linkLevel++,function(e){return/^<\/a\s*>/i.test(e)}(t.content)&&e.linkLevel--}var i;return e.pos+=a[0].length,!0}],["entity",function(e,t){const n=e.pos,r=e.posMax;if(38!==e.src.charCodeAt(n))return!1;if(n+1>=r)return!1;if(35===e.src.charCodeAt(n+1)){const r=e.src.slice(n).match(Up);if(r){if(!t){const t="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),n=e.push("text_special","",0);n.content=Of(t)?Ff(t):Ff(65533),n.markup=r[0],n.info="entity"}return e.pos+=r[0].length,!0}}else{const r=e.src.slice(n).match(Hp);if(r){const n=Df(r[0]);if(n!==r[0]){if(!t){const t=e.push("text_special","",0);t.content=n,t.markup=r[0],t.info="entity"}return e.pos+=r[0].length,!0}}}return!1}]],$p=[["balance_pairs",function(e){const t=e.tokens_meta,n=e.tokens_meta.length;Wp(e.delimiters);for(let e=0;e<n;e++)t[e]&&t[e].delimiters&&Wp(t[e].delimiters)}],["strikethrough",Ip.postProcess],["emphasis",zp.postProcess],["fragments_join",function(e){let t,n,r=0;const o=e.tokens,a=e.tokens.length;for(t=n=0;t<a;t++)o[t].nesting<0&&r--,o[t].level=r,o[t].nesting>0&&r++,"text"===o[t].type&&t+1<a&&"text"===o[t+1].type?o[t+1].content=o[t].content+o[t+1].content:(t!==n&&(o[n]=o[t]),n++);t!==n&&(o.length=n)}]];function Gp(){this.ruler=new ep;for(let e=0;e<Vp.length;e++)this.ruler.push(Vp[e][0],Vp[e][1]);this.ruler2=new ep;for(let e=0;e<$p.length;e++)this.ruler2.push($p[e][0],$p[e][1])}function Kp(e){return Array.prototype.slice.call(arguments,1).forEach(function(t){t&&Object.keys(t).forEach(function(n){e[n]=t[n]})}),e}function Zp(e){return Object.prototype.toString.call(e)}function Yp(e){return"[object Function]"===Zp(e)}function Jp(e){return e.replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}Gp.prototype.skipToken=function(e){const t=e.pos,n=this.ruler.getRules(""),r=n.length,o=e.md.options.maxNesting,a=e.cache;if(void 0!==a[t])return void(e.pos=a[t]);let i=!1;if(e.level<o){for(let o=0;o<r;o++)if(e.level++,i=n[o](e,!0),e.level--,i){if(t>=e.pos)throw new Error("inline rule didn't increment state.pos");break}}else e.pos=e.posMax;i||e.pos++,a[t]=e.pos},Gp.prototype.tokenize=function(e){const t=this.ruler.getRules(""),n=t.length,r=e.posMax,o=e.md.options.maxNesting;for(;e.pos<r;){const a=e.pos;let i=!1;if(e.level<o)for(let r=0;r<n;r++)if(i=t[r](e,!1),i){if(a>=e.pos)throw new Error("inline rule didn't increment state.pos");break}if(i){if(e.pos>=r)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},Gp.prototype.parse=function(e,t,n,r){const o=new this.State(e,t,n,r);this.tokenize(o);const a=this.ruler2.getRules(""),i=a.length;for(let e=0;e<i;e++)a[e](o)},Gp.prototype.State=Op;const Xp={fuzzyLink:!0,fuzzyEmail:!0,fuzzyIP:!1};const Qp={"http:":{validate:function(e,t,n){const r=e.slice(t);return n.re.http||(n.re.http=new RegExp("^\\/\\/"+n.re.src_auth+n.re.src_host_port_strict+n.re.src_path,"i")),n.re.http.test(r)?r.match(n.re.http)[0].length:0}},"https:":"http:","ftp:":"http:","//":{validate:function(e,t,n){const r=e.slice(t);return n.re.no_http||(n.re.no_http=new RegExp("^"+n.re.src_auth+"(?:localhost|(?:(?:"+n.re.src_domain+")\\.)+"+n.re.src_domain_root+")"+n.re.src_port+n.re.src_host_terminator+n.re.src_path,"i")),n.re.no_http.test(r)?t>=3&&":"===e[t-3]||t>=3&&"/"===e[t-3]?0:r.match(n.re.no_http)[0].length:0}},"mailto:":{validate:function(e,t,n){const r=e.slice(t);return n.re.mailto||(n.re.mailto=new RegExp("^"+n.re.src_email_name+"@"+n.re.src_host_strict,"i")),n.re.mailto.test(r)?r.match(n.re.mailto)[0].length:0}}},em="biz|com|edu|gov|net|org|pro|web|xxx|aero|asia|coop|info|museum|name|shop|рф".split("|");function tm(e){const t=e.re=function(e){const t={};e=e||{},t.src_Any=af.source,t.src_Cc=sf.source,t.src_Z=uf.source,t.src_P=lf.source,t.src_ZPCc=[t.src_Z,t.src_P,t.src_Cc].join("|"),t.src_ZCc=[t.src_Z,t.src_Cc].join("|");const n="[><|]";return t.src_pseudo_letter="(?:(?![><|]|"+t.src_ZPCc+")"+t.src_Any+")",t.src_ip4="(?:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)",t.src_auth="(?:(?:(?!"+t.src_ZCc+"|[@/\\[\\]()]).)+@)?",t.src_port="(?::(?:6(?:[0-4]\\d{3}|5(?:[0-4]\\d{2}|5(?:[0-2]\\d|3[0-5])))|[1-5]?\\d{1,4}))?",t.src_host_terminator="(?=$|[><|]|"+t.src_ZPCc+")(?!"+(e["---"]?"-(?!--)|":"-|")+"_|:\\d|\\.-|\\.(?!$|"+t.src_ZPCc+"))",t.src_path="(?:[/?#](?:(?!"+t.src_ZCc+"|"+n+"|[()[\\]{}.,\"'?!\\-;]).|\\[(?:(?!"+t.src_ZCc+"|\\]).)*\\]|\\((?:(?!"+t.src_ZCc+"|[)]).)*\\)|\\{(?:(?!"+t.src_ZCc+'|[}]).)*\\}|\\"(?:(?!'+t.src_ZCc+'|["]).)+\\"|\\\'(?:(?!'+t.src_ZCc+"|[']).)+\\'|\\'(?="+t.src_pseudo_letter+"|[-])|\\.{2,}[a-zA-Z0-9%/&]|\\.(?!"+t.src_ZCc+"|[.]|$)|"+(e["---"]?"\\-(?!--(?:[^-]|$))(?:-*)|":"\\-+|")+",(?!"+t.src_ZCc+"|$)|;(?!"+t.src_ZCc+"|$)|\\!+(?!"+t.src_ZCc+"|[!]|$)|\\?(?!"+t.src_ZCc+"|[?]|$))+|\\/)?",t.src_email_name='[\\-;:&=\\+\\$,\\.a-zA-Z0-9_][\\-;:&=\\+\\$,\\"\\.a-zA-Z0-9_]*',t.src_xn="xn--[a-z0-9\\-]{1,59}",t.src_domain_root="(?:"+t.src_xn+"|"+t.src_pseudo_letter+"{1,63})",t.src_domain="(?:"+t.src_xn+"|(?:"+t.src_pseudo_letter+")|(?:"+t.src_pseudo_letter+"(?:-|"+t.src_pseudo_letter+"){0,61}"+t.src_pseudo_letter+"))",t.src_host="(?:(?:(?:(?:"+t.src_domain+")\\.)*"+t.src_domain+"))",t.tpl_host_fuzzy="(?:"+t.src_ip4+"|(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%)))",t.tpl_host_no_ip_fuzzy="(?:(?:(?:"+t.src_domain+")\\.)+(?:%TLDS%))",t.src_host_strict=t.src_host+t.src_host_terminator,t.tpl_host_fuzzy_strict=t.tpl_host_fuzzy+t.src_host_terminator,t.src_host_port_strict=t.src_host+t.src_port+t.src_host_terminator,t.tpl_host_port_fuzzy_strict=t.tpl_host_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_port_no_ip_fuzzy_strict=t.tpl_host_no_ip_fuzzy+t.src_port+t.src_host_terminator,t.tpl_host_fuzzy_test="localhost|www\\.|\\.\\d{1,3}\\.|(?:\\.(?:%TLDS%)(?:"+t.src_ZPCc+"|>|$))",t.tpl_email_fuzzy='(^|[><|]|"|\\(|'+t.src_ZCc+")("+t.src_email_name+"@"+t.tpl_host_fuzzy_strict+")",t.tpl_link_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_fuzzy_strict+t.src_path+")",t.tpl_link_no_ip_fuzzy="(^|(?![.:/\\-_@])(?:[$+<=>^`||]|"+t.src_ZPCc+"))((?![$+<=>^`||])"+t.tpl_host_port_no_ip_fuzzy_strict+t.src_path+")",t}(e.__opts__),n=e.__tlds__.slice();function r(e){return e.replace("%TLDS%",t.src_tlds)}e.onCompile(),e.__tlds_replaced__||n.push("a[cdefgilmnoqrstuwxz]|b[abdefghijmnorstvwyz]|c[acdfghiklmnoruvwxyz]|d[ejkmoz]|e[cegrstu]|f[ijkmor]|g[abdefghilmnpqrstuwy]|h[kmnrtu]|i[delmnoqrst]|j[emop]|k[eghimnprwyz]|l[abcikrstuvy]|m[acdeghklmnopqrstuvwxyz]|n[acefgilopruz]|om|p[aefghklmnrstwy]|qa|r[eosuw]|s[abcdeghijklmnortuvxyz]|t[cdfghjklmnortvwz]|u[agksyz]|v[aceginu]|w[fs]|y[et]|z[amw]"),n.push(t.src_xn),t.src_tlds=n.join("|"),t.email_fuzzy=RegExp(r(t.tpl_email_fuzzy),"i"),t.link_fuzzy=RegExp(r(t.tpl_link_fuzzy),"i"),t.link_no_ip_fuzzy=RegExp(r(t.tpl_link_no_ip_fuzzy),"i"),t.host_fuzzy_test=RegExp(r(t.tpl_host_fuzzy_test),"i");const o=[];function a(e,t){throw new Error('(LinkifyIt) Invalid schema "'+e+'": '+t)}e.__compiled__={},Object.keys(e.__schemas__).forEach(function(t){const n=e.__schemas__[t];if(null===n)return;const r={validate:null,link:null};if(e.__compiled__[t]=r,"[object Object]"===Zp(n))return!function(e){return"[object RegExp]"===Zp(e)}(n.validate)?Yp(n.validate)?r.validate=n.validate:a(t,n):r.validate=function(e){return function(t,n){const r=t.slice(n);return e.test(r)?r.match(e)[0].length:0}}(n.validate),void(Yp(n.normalize)?r.normalize=n.normalize:n.normalize?a(t,n):r.normalize=function(e,t){t.normalize(e)});!function(e){return"[object String]"===Zp(e)}(n)?a(t,n):o.push(t)}),o.forEach(function(t){e.__compiled__[e.__schemas__[t]]&&(e.__compiled__[t].validate=e.__compiled__[e.__schemas__[t]].validate,e.__compiled__[t].normalize=e.__compiled__[e.__schemas__[t]].normalize)}),e.__compiled__[""]={validate:null,normalize:function(e,t){t.normalize(e)}};const i=Object.keys(e.__compiled__).filter(function(t){return t.length>0&&e.__compiled__[t]}).map(Jp).join("|");e.re.schema_test=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","i"),e.re.schema_search=RegExp("(^|(?!_)(?:[><|]|"+t.src_ZPCc+"))("+i+")","ig"),e.re.schema_at_start=RegExp("^"+e.re.schema_search.source,"i"),e.re.pretest=RegExp("("+e.re.schema_test.source+")|("+e.re.host_fuzzy_test.source+")|@","i"),function(e){e.__index__=-1,e.__text_cache__=""}(e)}function nm(e,t){const n=e.__index__,r=e.__last_index__,o=e.__text_cache__.slice(n,r);this.schema=e.__schema__.toLowerCase(),this.index=n+t,this.lastIndex=r+t,this.raw=o,this.text=o,this.url=o}function rm(e,t){const n=new nm(e,t);return e.__compiled__[n.schema].normalize(n,e),n}function om(e,t){if(!(this instanceof om))return new om(e,t);var n;t||(n=e,Object.keys(n||{}).reduce(function(e,t){return e||Xp.hasOwnProperty(t)},!1)&&(t=e,e={})),this.__opts__=Kp({},Xp,t),this.__index__=-1,this.__last_index__=-1,this.__schema__="",this.__text_cache__="",this.__schemas__=Kp({},Qp,e),this.__compiled__={},this.__tlds__=em,this.__tlds_replaced__=!1,this.re={},tm(this)}om.prototype.add=function(e,t){return this.__schemas__[e]=t,tm(this),this},om.prototype.set=function(e){return this.__opts__=Kp(this.__opts__,e),this},om.prototype.test=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return!1;let t,n,r,o,a,i,s,l,c;if(this.re.schema_test.test(e))for(s=this.re.schema_search,s.lastIndex=0;null!==(t=s.exec(e));)if(o=this.testSchemaAt(e,t[2],s.lastIndex),o){this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+o;break}return this.__opts__.fuzzyLink&&this.__compiled__["http:"]&&(l=e.search(this.re.host_fuzzy_test),l>=0&&(this.__index__<0||l<this.__index__)&&null!==(n=e.match(this.__opts__.fuzzyIP?this.re.link_fuzzy:this.re.link_no_ip_fuzzy))&&(a=n.index+n[1].length,(this.__index__<0||a<this.__index__)&&(this.__schema__="",this.__index__=a,this.__last_index__=n.index+n[0].length))),this.__opts__.fuzzyEmail&&this.__compiled__["mailto:"]&&(c=e.indexOf("@"),c>=0&&null!==(r=e.match(this.re.email_fuzzy))&&(a=r.index+r[1].length,i=r.index+r[0].length,(this.__index__<0||a<this.__index__||a===this.__index__&&i>this.__last_index__)&&(this.__schema__="mailto:",this.__index__=a,this.__last_index__=i))),this.__index__>=0},om.prototype.pretest=function(e){return this.re.pretest.test(e)},om.prototype.testSchemaAt=function(e,t,n){return this.__compiled__[t.toLowerCase()]?this.__compiled__[t.toLowerCase()].validate(e,n,this):0},om.prototype.match=function(e){const t=[];let n=0;this.__index__>=0&&this.__text_cache__===e&&(t.push(rm(this,n)),n=this.__last_index__);let r=n?e.slice(n):e;for(;this.test(r);)t.push(rm(this,n)),r=r.slice(this.__last_index__),n+=this.__last_index__;return t.length?t:null},om.prototype.matchAtStart=function(e){if(this.__text_cache__=e,this.__index__=-1,!e.length)return null;const t=this.re.schema_at_start.exec(e);if(!t)return null;const n=this.testSchemaAt(e,t[2],t[0].length);return n?(this.__schema__=t[2],this.__index__=t.index+t[1].length,this.__last_index__=t.index+t[0].length+n,rm(this,0)):null},om.prototype.tlds=function(e,t){return e=Array.isArray(e)?e:[e],t?(this.__tlds__=this.__tlds__.concat(e).sort().filter(function(e,t,n){return e!==n[t-1]}).reverse(),tm(this),this):(this.__tlds__=e.slice(),this.__tlds_replaced__=!0,tm(this),this)},om.prototype.normalize=function(e){e.schema||(e.url="http://"+e.url),"mailto:"!==e.schema||/^mailto:/i.test(e.url)||(e.url="mailto:"+e.url)},om.prototype.onCompile=function(){};const am=2147483647,im=36,sm=/^xn--/,lm=/[^\0-\x7F]/,cm=/[\x2E\u3002\uFF0E\uFF61]/g,um={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},dm=Math.floor,fm=String.fromCharCode;function pm(e){throw new RangeError(um[e])}function mm(e,t){const n=e.split("@");let r="";n.length>1&&(r=n[0]+"@",e=n[1]);const o=function(e,t){const n=[];let r=e.length;for(;r--;)n[r]=t(e[r]);return n}((e=e.replace(cm,".")).split("."),t).join(".");return r+o}function hm(e){const t=[];let n=0;const r=e.length;for(;n<r;){const o=e.charCodeAt(n++);if(o>=55296&&o<=56319&&n<r){const r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&o)<<10)+(1023&r)+65536):(t.push(o),n--)}else t.push(o)}return t}const gm=function(e){return e>=48&&e<58?e-48+26:e>=65&&e<91?e-65:e>=97&&e<123?e-97:im},bm=function(e,t){return e+22+75*(e<26)-((0!=t)<<5)},vm=function(e,t,n){let r=0;for(e=n?dm(e/700):e>>1,e+=dm(e/t);e>455;r+=im)e=dm(e/35);return dm(r+36*e/(e+38))},ym=function(e){const t=[],n=e.length;let r=0,o=128,a=72,i=e.lastIndexOf("-");i<0&&(i=0);for(let n=0;n<i;++n)e.charCodeAt(n)>=128&&pm("not-basic"),t.push(e.charCodeAt(n));for(let s=i>0?i+1:0;s<n;){const i=r;for(let t=1,o=im;;o+=im){s>=n&&pm("invalid-input");const i=gm(e.charCodeAt(s++));i>=im&&pm("invalid-input"),i>dm((am-r)/t)&&pm("overflow"),r+=i*t;const l=o<=a?1:o>=a+26?26:o-a;if(i<l)break;const c=im-l;t>dm(am/c)&&pm("overflow"),t*=c}const l=t.length+1;a=vm(r-i,l,0==i),dm(r/l)>am-o&&pm("overflow"),o+=dm(r/l),r%=l,t.splice(r++,0,o)}return String.fromCodePoint(...t)},wm=function(e){const t=[],n=(e=hm(e)).length;let r=128,o=0,a=72;for(const n of e)n<128&&t.push(fm(n));const i=t.length;let s=i;for(i&&t.push("-");s<n;){let n=am;for(const t of e)t>=r&&t<n&&(n=t);const l=s+1;n-r>dm((am-o)/l)&&pm("overflow"),o+=(n-r)*l,r=n;for(const n of e)if(n<r&&++o>am&&pm("overflow"),n===r){let e=o;for(let n=im;;n+=im){const r=n<=a?1:n>=a+26?26:n-a;if(e<r)break;const o=e-r,i=im-r;t.push(fm(bm(r+o%i,0))),e=dm(o/i)}t.push(fm(bm(e,0))),a=vm(o,l,s===i),o=0,++s}++o,++r}return t.join("")},xm=function(e){return mm(e,function(e){return lm.test(e)?"xn--"+wm(e):e})},Em=function(e){return mm(e,function(e){return sm.test(e)?ym(e.slice(4).toLowerCase()):e})};const _m={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:100},components:{core:{},block:{},inline:{}}},zero:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["paragraph"]},inline:{rules:["text"],rules2:["balance_pairs","fragments_join"]}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkify:!1,typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["normalize","block","inline","text_join"]},block:{rules:["blockquote","code","fence","heading","hr","html_block","lheading","list","reference","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","html_inline","image","link","newline","text"],rules2:["balance_pairs","emphasis","fragments_join"]}}}},km=/^(vbscript|javascript|file|data):/,Cm=/^data:image\/(gif|png|jpeg|webp);/;function Nm(e){const t=e.trim().toLowerCase();return!km.test(t)||Cm.test(t)}const Dm=["http:","https:","mailto:"];function Sm(e){const t=nf(e,!0);if(t.hostname&&(!t.protocol||Dm.indexOf(t.protocol)>=0))try{t.hostname=xm(t.hostname)}catch(e){}return Ud(Hd(t))}function Am(e){const t=nf(e,!0);if(t.hostname&&(!t.protocol||Dm.indexOf(t.protocol)>=0))try{t.hostname=Em(t.hostname)}catch(e){}return Bd(Hd(t),Bd.defaultChars+"%")}function Tm(e,t){if(!(this instanceof Tm))return new Tm(e,t);t||Sf(e)||(t=e||{},e="default"),this.inline=new Gp,this.block=new Rp,this.core=new yp,this.renderer=new Qf,this.linkify=new om,this.validateLink=Nm,this.normalizeLink=Sm,this.normalizeLinkText=Am,this.utils=Yf,this.helpers=Tf({},Jf),this.options={},this.configure(e),t&&this.set(t)}Tm.prototype.set=function(e){return Tf(this.options,e),this},Tm.prototype.configure=function(e){const t=this;if(Sf(e)){const t=e;if(!(e=_m[t]))throw new Error('Wrong `markdown-it` preset "'+t+'", check name')}if(!e)throw new Error("Wrong `markdown-it` preset, can't be empty");return e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach(function(n){e.components[n].rules&&t[n].ruler.enableOnly(e.components[n].rules),e.components[n].rules2&&t[n].ruler2.enableOnly(e.components[n].rules2)}),this},Tm.prototype.enable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.enable(e,!0))},this),n=n.concat(this.inline.ruler2.enable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to enable unknown rule(s): "+r);return this},Tm.prototype.disable=function(e,t){let n=[];Array.isArray(e)||(e=[e]),["core","block","inline"].forEach(function(t){n=n.concat(this[t].ruler.disable(e,!0))},this),n=n.concat(this.inline.ruler2.disable(e,!0));const r=e.filter(function(e){return n.indexOf(e)<0});if(r.length&&!t)throw new Error("MarkdownIt. Failed to disable unknown rule(s): "+r);return this},Tm.prototype.use=function(e){const t=[this].concat(Array.prototype.slice.call(arguments,1));return e.apply(e,t),this},Tm.prototype.parse=function(e,t){if("string"!=typeof e)throw new Error("Input data should be a String");const n=new this.core.State(e,this,t);return this.core.process(n),n.tokens},Tm.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},Tm.prototype.parseInline=function(e,t){const n=new this.core.State(e,this,t);return n.inlineMode=!0,this.core.process(n),n.tokens},Tm.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};
|
|
17
17
|
/*! @license DOMPurify 3.3.3 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.3/LICENSE */
|
|
18
|
-
const{entries:rb,setPrototypeOf:ob,isFrozen:ab,getPrototypeOf:ib,getOwnPropertyDescriptor:sb}=Object;let{freeze:lb,seal:cb,create:ub}=Object,{apply:db,construct:fb}="undefined"!=typeof Reflect&&Reflect;lb||(lb=function(e){return e}),cb||(cb=function(e){return e}),db||(db=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),fb||(fb=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const pb=Sb(Array.prototype.forEach),mb=Sb(Array.prototype.lastIndexOf),hb=Sb(Array.prototype.pop),gb=Sb(Array.prototype.push),bb=Sb(Array.prototype.splice),vb=Sb(String.prototype.toLowerCase),yb=Sb(String.prototype.toString),wb=Sb(String.prototype.match),xb=Sb(String.prototype.replace),Eb=Sb(String.prototype.indexOf),_b=Sb(String.prototype.trim),kb=Sb(Object.prototype.hasOwnProperty),Cb=Sb(RegExp.prototype.test),Nb=(Db=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return fb(Db,t)});var Db;function Sb(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return db(e,t,r)}}function Ab(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:vb;ob&&ob(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(ab(t)||(t[r]=e),o=e)}e[o]=!0}return e}function Tb(e){for(let t=0;t<e.length;t++){kb(e,t)||(e[t]=null)}return e}function Rb(e){const t=ub(null);for(const[n,r]of rb(e)){kb(e,n)&&(Array.isArray(r)?t[n]=Tb(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=Rb(r):t[n]=r)}return t}function Ob(e,t){for(;null!==e;){const n=sb(e,t);if(n){if(n.get)return Sb(n.get);if("function"==typeof n.value)return Sb(n.value)}e=ib(e)}return function(){return null}}const Fb=lb(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Mb=lb(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),jb=lb(["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"]),Lb=lb(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),Pb=lb(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),Ib=lb(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),zb=lb(["#text"]),Bb=lb(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Ub=lb(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),qb=lb(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),Hb=lb(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Wb=cb(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Vb=cb(/<%[\w\W]*|[\w\W]*%>/gm),$b=cb(/\$\{[\w\W]*/gm),Gb=cb(/^data-[\-\w.\u00B7-\uFFFF]+$/),Kb=cb(/^aria-[\-\w]+$/),Zb=cb(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Yb=cb(/^(?:\w+script|data):/i),Jb=cb(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Xb=cb(/^html$/i),Qb=cb(/^[a-z][.\w]*(-[.\w]+)+$/i);var ev=Object.freeze({__proto__:null,ARIA_ATTR:Kb,ATTR_WHITESPACE:Jb,CUSTOM_ELEMENT:Qb,DATA_ATTR:Gb,DOCTYPE_NAME:Xb,ERB_EXPR:Vb,IS_ALLOWED_URI:Zb,IS_SCRIPT_OR_DATA:Yb,MUSTACHE_EXPR:Wb,TMPLIT_EXPR:$b});const tv=1,nv=3,rv=7,ov=8,av=9,iv=function(){return"undefined"==typeof window?null:window};var sv=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:iv();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==av||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=t,h=c.prototype,g=Ob(h,"cloneNode"),b=Ob(h,"remove"),v=Ob(h,"nextSibling"),y=Ob(h,"childNodes"),w=Ob(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let x,E="";const{implementation:_,createNodeIterator:k,createDocumentFragment:C,getElementsByTagName:N}=r,{importNode:D}=o;let S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof rb&&"function"==typeof w&&_&&void 0!==_.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:T,TMPLIT_EXPR:R,DATA_ATTR:O,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:L}=ev;let{IS_ALLOWED_URI:P}=ev,I=null;const z=Ab({},[...Fb,...Mb,...jb,...Pb,...zb]);let B=null;const U=Ab({},[...Bb,...Ub,...qb,...Hb]);let q=Object.seal(ub(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,W=null;const V=Object.seal(ub(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $=!0,G=!0,K=!1,Z=!0,Y=!1,J=!0,X=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!1,oe=!0,ae=!1,ie=!0,se=!1,le={},ce=null;const ue=Ab({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const fe=Ab({},["audio","video","img","source","image","track"]);let pe=null;const me=Ab({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ve=be,ye=!1,we=null;const xe=Ab({},[he,ge,be],yb);let Ee=Ab({},["mi","mo","mn","ms","mtext"]),_e=Ab({},["annotation-xml"]);const ke=Ab({},["title","style","font","a","script"]);let Ce=null;const Ne=["application/xhtml+xml","text/html"];let De=null,Se=null;const Ae=r.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Se||Se!==e){if(e&&"object"==typeof e||(e={}),e=Rb(e),Ce=-1===Ne.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,De="application/xhtml+xml"===Ce?yb:vb,I=kb(e,"ALLOWED_TAGS")?Ab({},e.ALLOWED_TAGS,De):z,B=kb(e,"ALLOWED_ATTR")?Ab({},e.ALLOWED_ATTR,De):U,we=kb(e,"ALLOWED_NAMESPACES")?Ab({},e.ALLOWED_NAMESPACES,yb):xe,pe=kb(e,"ADD_URI_SAFE_ATTR")?Ab(Rb(me),e.ADD_URI_SAFE_ATTR,De):me,de=kb(e,"ADD_DATA_URI_TAGS")?Ab(Rb(fe),e.ADD_DATA_URI_TAGS,De):fe,ce=kb(e,"FORBID_CONTENTS")?Ab({},e.FORBID_CONTENTS,De):ue,H=kb(e,"FORBID_TAGS")?Ab({},e.FORBID_TAGS,De):Rb({}),W=kb(e,"FORBID_ATTR")?Ab({},e.FORBID_ATTR,De):Rb({}),le=!!kb(e,"USE_PROFILES")&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,ae=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,P=e.ALLOWED_URI_REGEXP||Zb,ve=e.NAMESPACE||be,Ee=e.MATHML_TEXT_INTEGRATION_POINTS||Ee,_e=e.HTML_INTEGRATION_POINTS||_e,q=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(q.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(q.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(q.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(G=!1),ne&&(te=!0),le&&(I=Ab({},zb),B=ub(null),!0===le.html&&(Ab(I,Fb),Ab(B,Bb)),!0===le.svg&&(Ab(I,Mb),Ab(B,Ub),Ab(B,Hb)),!0===le.svgFilters&&(Ab(I,jb),Ab(B,Ub),Ab(B,Hb)),!0===le.mathMl&&(Ab(I,Pb),Ab(B,qb),Ab(B,Hb))),kb(e,"ADD_TAGS")||(V.tagCheck=null),kb(e,"ADD_ATTR")||(V.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?V.tagCheck=e.ADD_TAGS:(I===z&&(I=Rb(I)),Ab(I,e.ADD_TAGS,De))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?V.attributeCheck=e.ADD_ATTR:(B===U&&(B=Rb(B)),Ab(B,e.ADD_ATTR,De))),e.ADD_URI_SAFE_ATTR&&Ab(pe,e.ADD_URI_SAFE_ATTR,De),e.FORBID_CONTENTS&&(ce===ue&&(ce=Rb(ce)),Ab(ce,e.FORBID_CONTENTS,De)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=Rb(ce)),Ab(ce,e.ADD_FORBID_CONTENTS,De)),ie&&(I["#text"]=!0),X&&Ab(I,["html","head","body"]),I.table&&(Ab(I,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Nb('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Nb('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,E=x.createHTML("")}else void 0===x&&(x=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(m,a)),null!==x&&"string"==typeof E&&(E=x.createHTML(""));lb&&lb(e),Se=e}},Oe=Ab({},[...Mb,...jb,...Lb]),Fe=Ab({},[...Pb,...Ib]),Me=function(e){gb(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){b(e)}},je=function(e,t){try{gb(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){gb(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Me(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=wb(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ce&&ve===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=x?x.createHTML(e):e;if(ve===be)try{t=(new p).parseFromString(o,Ce)}catch(e){}if(!t||!t.documentElement){t=_.createDocument(ve,"template",null);try{t.documentElement.innerHTML=ye?E:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),ve===be?N.call(t,X?"html":"body")[0]:X?t.documentElement:a},Pe=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ie=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ze=function(e){return"function"==typeof l&&e instanceof l};function Be(e,t,r){pb(e,e=>{e.call(n,t,r,Se)})}const Ue=function(e){let t=null;if(Be(S.beforeSanitizeElements,e,null),Ie(e))return Me(e),!0;const r=De(e.nodeName);if(Be(S.uponSanitizeElement,e,{tagName:r,allowedTags:I}),J&&e.hasChildNodes()&&!ze(e.firstElementChild)&&Cb(/<[/\w!]/g,e.innerHTML)&&Cb(/<[/\w!]/g,e.textContent))return Me(e),!0;if(e.nodeType===rv)return Me(e),!0;if(J&&e.nodeType===ov&&Cb(/<[/\w]/g,e.data))return Me(e),!0;if(!(V.tagCheck instanceof Function&&V.tagCheck(r))&&(!I[r]||H[r])){if(!H[r]&&He(r)){if(q.tagNameCheck instanceof RegExp&&Cb(q.tagNameCheck,r))return!1;if(q.tagNameCheck instanceof Function&&q.tagNameCheck(r))return!1}if(ie&&!ce[r]){const t=w(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,v(e))}}}return Me(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=vb(e.tagName),r=vb(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===be?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||Ee[r]):Boolean(Oe[n]):e.namespaceURI===he?t.namespaceURI===be?"math"===n:t.namespaceURI===ge?"math"===n&&_e[r]:Boolean(Fe[n]):e.namespaceURI===be?!(t.namespaceURI===ge&&!_e[r])&&!(t.namespaceURI===he&&!Ee[r])&&!Fe[n]&&(ke[n]||!Oe[n]):!("application/xhtml+xml"!==Ce||!we[e.namespaceURI]))}(e)?(Me(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Cb(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===nv&&(t=e.textContent,pb([A,T,R],e=>{t=xb(t,e," ")}),e.textContent!==t&&(gb(n.removed,{element:e.cloneNode()}),e.textContent=t)),Be(S.afterSanitizeElements,e,null),!1):(Me(e),!0)},qe=function(e,t,n){if(W[t])return!1;if(oe&&("id"===t||"name"===t)&&(n in r||n in Ae))return!1;if(G&&!W[t]&&Cb(O,t));else if($&&Cb(F,t));else if(V.attributeCheck instanceof Function&&V.attributeCheck(t,e));else if(!B[t]||W[t]){if(!(He(e)&&(q.tagNameCheck instanceof RegExp&&Cb(q.tagNameCheck,e)||q.tagNameCheck instanceof Function&&q.tagNameCheck(e))&&(q.attributeNameCheck instanceof RegExp&&Cb(q.attributeNameCheck,t)||q.attributeNameCheck instanceof Function&&q.attributeNameCheck(t,e))||"is"===t&&q.allowCustomizedBuiltInElements&&(q.tagNameCheck instanceof RegExp&&Cb(q.tagNameCheck,n)||q.tagNameCheck instanceof Function&&q.tagNameCheck(n))))return!1}else if(pe[t]);else if(Cb(P,xb(n,j,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Eb(n,"data:")||!de[e]){if(K&&!Cb(M,xb(n,j,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&wb(e,L)},We=function(e){Be(S.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ie(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:s,value:l}=a,c=De(i),u=l;let d="value"===i?u:_b(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Be(S.uponSanitizeAttribute,e,r),d=r.attrValue,!ae||"id"!==c&&"name"!==c||(je(i,e),d="user-content-"+d),J&&Cb(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){je(i,e);continue}if("attributename"===c&&wb(d,"href")){je(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){je(i,e);continue}if(!Z&&Cb(/\/>/i,d)){je(i,e);continue}Y&&pb([A,T,R],e=>{d=xb(d,e," ")});const f=De(e.nodeName);if(qe(f,c,d)){if(x&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(f,c)){case"TrustedHTML":d=x.createHTML(d);break;case"TrustedScriptURL":d=x.createScriptURL(d)}if(d!==u)try{s?e.setAttributeNS(s,i,d):e.setAttribute(i,d),Ie(e)?Me(e):hb(n.removed)}catch(t){je(i,e)}}else je(i,e)}Be(S.afterSanitizeAttributes,e,null)},Ve=function e(t){let n=null;const r=Pe(t);for(Be(S.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Be(S.uponSanitizeShadowNode,n,null),Ue(n),We(n),n.content instanceof i&&e(n.content);Be(S.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ze(e)){if("function"!=typeof e.toString)throw Nb("toString is not a function");if("string"!=typeof(e=e.toString()))throw Nb("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Re(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=De(e.nodeName);if(!I[t]||H[t])throw Nb("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Le("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===tv&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!te&&!Y&&!X&&-1===e.indexOf("<"))return x&&re?x.createHTML(e):e;if(r=Le(e),!r)return te?null:re?E:""}r&&ee&&Me(r.firstChild);const u=Pe(se?e:r);for(;s=u.nextNode();)Ue(s),We(s),s.content instanceof i&&Ve(s.content);if(se)return e;if(te){if(ne)for(c=C.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(B.shadowroot||B.shadowrootmode)&&(c=D.call(o,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&I["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Cb(Xb,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Y&&pb([A,T,R],e=>{d=xb(d,e," ")}),x&&re?x.createHTML(d):d},n.setConfig=function(){Re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Se=null,Q=!1},n.isValidAttribute=function(e,t,n){Se||Re({});const r=De(e),o=De(t);return qe(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&gb(S[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=mb(S[e],t);return-1===n?void 0:bb(S[e],n,1)[0]}return hb(S[e])},n.removeHooks=function(e){S[e]=[]},n.removeAllHooks=function(){S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),lv={html:!1,linkify:!0,breaks:!0};function cv(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function uv(e,t){if(!e)return"";try{var n=function(e){return new nb(Object.assign(Object.assign({},lv),e||{}))}(t).render(e);return n?sv.sanitize(n):""}catch(e){return""}}function dv(t){var n=t.value,r=t.onChange,o=t.disabled,a=void 0!==o&&o,i=t.placeholder,s=t.defaultMode,l=void 0===s?"split":s,c=t.showToolbar,u=void 0===c||c,d=t.markdownOptions,f=t.previewClassName,p=rp(),m=e.useRef(null),h=v(e.useState(l),2),g=h[0],b=h[1],y=i||p("data.markdownPlaceholder"),w=e.useCallback(function(){var e=m.current;return!e||a?null:(e.focus(),e)},[a]),x=e.useCallback(function(e){var t,o,a=w();if(a){var i=null!==(t=a.selectionStart)&&void 0!==t?t:n.length,s=null!==(o=a.selectionEnd)&&void 0!==o?o:n.length,l=e(n.slice(i,s)),c=l.text,u=l.cursorOffset,d="".concat(n.slice(0,i)).concat(c).concat(n.slice(s));r(d),window.requestAnimationFrame(function(){var e=m.current;if(e){var t="number"==typeof u?i+u:i+c.length;e.focus(),e.setSelectionRange(t,t)}})}},[w,r,n]),E=e.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text";x(function(r){var o=r||n,a="".concat(e).concat(o).concat(t);return{text:a,cursorOffset:r?a.length:e.length+n.length}})},[x]),_=e.useCallback(function(e,t){x(function(n){return{text:(n||t).split("\n").map(function(t){return"".concat(e).concat(t)}).join("\n")}})},[x]),k=e.useCallback(function(e,t){x(function(){return{text:e,cursorOffset:t}})},[x]),C=a&&"write"===g?"preview":g;return e.createElement("div",{className:"rounded-md border bg-background"},e.createElement("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b p-2"},e.createElement("div",{className:"flex flex-wrap gap-1"},e.createElement("button",{type:"button",className:cv("rounded border px-2 py-1 text-sm font-medium","write"===C&&"bg-muted"),disabled:a,onClick:function(){return b("write")}},p("data.markdownWrite")),e.createElement("button",{type:"button",className:cv("rounded border px-2 py-1 text-sm font-medium","preview"===C&&"bg-muted"),onClick:function(){return b("preview")}},p("data.markdownPreview")),e.createElement("button",{type:"button",className:cv("rounded border px-2 py-1 text-sm font-medium","split"===C&&"bg-muted"),disabled:a,onClick:function(){return b("split")}},p("data.markdownSplit"))),u&&e.createElement("div",{className:"flex flex-wrap gap-1"},e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm font-semibold disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),E("**")}},"B"),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm italic disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),E("*")}},"I"),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),_("- ","list item")}},"UL"),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),_("1. ","list item")}},"OL"),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),_("> ","quote")}},p("data.markdownQuote")),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),E("[","](https://example.com)","link text")}},p("data.markdownLink")),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),k("```\ncode\n```",8)}},p("data.markdownCode")),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),r(""),w()}},p("data.markdownClear")))),e.createElement("div",{className:cv("gap-0","split"===C&&"grid md:grid-cols-2")},"preview"!==C&&e.createElement("textarea",{ref:m,value:n||"",disabled:a,onChange:function(e){return r(e.target.value)},className:"min-h-[220px] w-full resize-y border-0 bg-transparent px-3 py-2 font-mono text-sm leading-6 outline-none",placeholder:y}),"write"!==C&&e.createElement("div",{className:cv("min-h-[220px] border-t px-3 py-2 md:border-t-0","split"===C&&"md:border-l")},e.createElement(fv,{value:n||"",markdownOptions:d,className:f}))))}function fv(t){var n=t.value,r=t.markdownOptions,o=t.className,a=t.emptyText,i=rp();if(!n)return e.createElement(e.Fragment,null,a||e.createElement("span",{className:"text-muted-foreground"},i("data.markdownEmpty")));var s=uv(n,r);return s?e.createElement("div",{className:cv("max-w-none break-words text-sm leading-7 text-foreground","[&_h1]:mb-4 [&_h1]:text-3xl [&_h1]:font-bold [&_h1]:leading-tight","[&_h2]:mb-3 [&_h2]:text-2xl [&_h2]:font-semibold [&_h2]:leading-tight","[&_h3]:mb-3 [&_h3]:text-xl [&_h3]:font-semibold","[&_h4]:mb-2 [&_h4]:text-lg [&_h4]:font-semibold","[&_h5]:mb-2 [&_h5]:text-base [&_h5]:font-semibold","[&_h6]:mb-2 [&_h6]:text-sm [&_h6]:font-semibold","[&_p]:my-3 [&_p]:leading-7","[&_a]:text-primary [&_a]:underline [&_a]:underline-offset-2","[&_strong]:font-semibold","[&_em]:italic","[&_blockquote]:my-4 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground","[&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-6","[&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-6","[&_li]:my-1","[&_hr]:my-4 [&_hr]:border-border","[&_code]:rounded [&_code]:bg-muted [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em]","[&_pre]:my-4 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:bg-muted [&_pre]:p-3","[&_pre_code]:bg-transparent [&_pre_code]:p-0","[&_table]:my-4 [&_table]:w-full [&_table]:border-collapse","[&_th]:border [&_th]:border-border [&_th]:bg-muted [&_th]:px-3 [&_th]:py-2 [&_th]:text-left [&_th]:font-semibold","[&_td]:border [&_td]:border-border [&_td]:px-3 [&_td]:py-2",o),dangerouslySetInnerHTML:{__html:s}}):e.createElement("span",{className:"text-muted-foreground"},n)}function pv(e){return Array.isArray(null==e?void 0:e.enum)&&e.enum.length>0}function mv(e){return null==e?"":String(e)}function hv(e,t){var n,r=mv(t);return r?(null===(n=e.enumLabels)||void 0===n?void 0:n[r])||r:""}function gv(e,t){var n=(e.enum||[]).map(function(t){return{value:t,valueKey:mv(t),label:hv(e,t)}}),r=mv(t);return r?n.some(function(e){return e.valueKey===r})?n:[].concat(y(n),[{value:"number"==typeof t||"string"==typeof t?t:r,valueKey:r,label:r}]):n}var bv=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",{className:"relative w-full overflow-x-auto"},c.createElement("table",Object.assign({ref:t,className:tt("w-full min-w-max caption-bottom text-sm",n)},r)))});bv.displayName="Table";var vv=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("thead",Object.assign({ref:t,className:tt("[&_tr]:border-b",n)},r))});vv.displayName="TableHeader";var yv=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("tbody",Object.assign({ref:t,className:tt("[&_tr:last-child]:border-0",n)},r))});yv.displayName="TableBody";var wv=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("tfoot",Object.assign({ref:t,className:tt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n)},r))});wv.displayName="TableFooter";var xv=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("tr",Object.assign({ref:t,className:tt("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n)},r))});xv.displayName="TableRow";var Ev=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("th",Object.assign({ref:t,className:tt("h-12 px-4 text-left align-middle font-medium text-muted-foreground whitespace-nowrap [&:has([role=checkbox])]:pr-0",n)},r))});Ev.displayName="TableHead";var _v=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("td",Object.assign({ref:t,className:tt("p-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",n)},r))});_v.displayName="TableCell";var kv=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("caption",Object.assign({ref:t,className:tt("mt-4 text-sm text-muted-foreground",n)},r))});kv.displayName="TableCaption";var Cv=gt("inline-flex items-center rounded-full border px-3 py-1 text-xs font-bold transition-all duration-300",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-[0_2px_8px_-1px_rgba(93,112,82,0.15)] hover:scale-105",secondary:"border-transparent bg-secondary text-secondary-foreground shadow-[0_2px_8px_-1px_rgba(193,140,93,0.15)] hover:scale-105",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-[0_2px_8px_-1px_rgba(168,84,72,0.15)] hover:scale-105",outline:"text-foreground border-border"}},defaultVariants:{variant:"default"}});function Nv(e){var t=e.className,n=e.variant,r=_(e,["className","variant"]);return c.createElement("div",Object.assign({className:tt(Cv({variant:n}),t)},r))}function Dv(e,[t,n]){return Math.min(n,Math.max(t,e))}function Sv(e){const n=Av(e),r=c.forwardRef((e,r)=>{const{children:o,...a}=e,i=c.Children.toArray(o),s=i.find(Rv);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}function Av(e){const t=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?ot(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Tv=Symbol("radix.slottable");function Rv(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Tv}var Ov=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"});c.forwardRef((e,n)=>t.jsx(It.span,{...e,ref:n,style:{...Ov,...e.style}})).displayName="VisuallyHidden";var Fv=[" ","Enter","ArrowUp","ArrowDown"],Mv=[" ","Enter"],jv="Select",[Lv,Pv,Iv]=function(n){const r=n+"CollectionProvider",[o,a]=Dt(r),[i,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,a=e.useRef(null),s=e.useRef(new Map).current;return t.jsx(i,{scope:r,itemMap:s,collectionRef:a,children:o})};l.displayName=r;const c=n+"CollectionSlot",u=Sv(c),d=e.forwardRef((e,n)=>{const{scope:r,children:o}=e,a=at(n,s(c,r).collectionRef);return t.jsx(u,{ref:a,children:o})});d.displayName=c;const f=n+"CollectionItemSlot",p="data-radix-collection-item",m=Sv(f),h=e.forwardRef((n,r)=>{const{scope:o,children:a,...i}=n,l=e.useRef(null),c=at(r,l),u=s(f,o);return e.useEffect(()=>(u.itemMap.set(l,{ref:l,...i}),()=>{u.itemMap.delete(l)})),t.jsx(m,{[p]:"",ref:c,children:a})});return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(t){const r=s(n+"CollectionConsumer",t);return e.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},a]}(jv),[zv,Bv]=Dt(jv,[Iv,Va]),Uv=Va(),[qv,Hv]=zv(jv),[Wv,Vv]=zv(jv),$v=e=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:a,onOpenChange:i,value:s,defaultValue:l,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:g}=e,b=Uv(n),[v,y]=c.useState(null),[w,x]=c.useState(null),[E,_]=c.useState(!1),k=ps(d),[C,N]=Mt({prop:o,defaultProp:a??!1,onChange:i,caller:jv}),[D,S]=Mt({prop:s,defaultProp:l,onChange:u,caller:jv}),A=c.useRef(null),T=!v||(g||!!v.closest("form")),[R,O]=c.useState(new Set),F=Array.from(R).map(e=>e.props.value).join(";");return t.jsx(si,{...b,children:t.jsxs(qv,{required:h,scope:n,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:E,onValueNodeHasChildrenChange:_,contentId:Ot(),value:D,onValueChange:S,open:C,onOpenChange:N,dir:k,triggerPointerDownPosRef:A,disabled:m,children:[t.jsx(Lv.Provider,{scope:n,children:t.jsx(Wv,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:c.useCallback(e=>{O(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:r})}),T?t.jsxs(Oy,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:e=>S(e.target.value),disabled:m,form:g,children:[void 0===D?t.jsx("option",{value:""}):null,Array.from(R)]},F):null]})})};$v.displayName=jv;var Gv="SelectTrigger",Kv=c.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:o=!1,...a}=e,i=Uv(r),s=Hv(Gv,r),l=s.disabled||o,u=at(n,s.onTriggerChange),d=Pv(r),f=c.useRef("touch"),[p,m,h]=My(e=>{const t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=jy(t,e,n);void 0!==r&&s.onValueChange(r.value)}),g=e=>{l||(s.onOpenChange(!0),h()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return t.jsx(li,{asChild:!0,...i,children:t.jsx(It.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":Fy(s.value)?"":void 0,...a,ref:u,onClick:Nt(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&g(e)}),onPointerDown:Nt(a.onPointerDown,e=>{f.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:Nt(a.onKeyDown,e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||Fv.includes(e.key)&&(g(),e.preventDefault())})})})});Kv.displayName=Gv;var Zv="SelectValue",Yv=c.forwardRef((e,n)=>{const{__scopeSelect:r,className:o,style:a,children:i,placeholder:s="",...l}=e,c=Hv(Zv,r),{onValueNodeHasChildrenChange:u}=c,d=void 0!==i,f=at(n,c.onValueNodeChange);return At(()=>{u(d)},[u,d]),t.jsx(It.span,{...l,ref:f,style:{pointerEvents:"none"},children:Fy(c.value)?t.jsx(t.Fragment,{children:s}):i})});Yv.displayName=Zv;var Jv=c.forwardRef((e,n)=>{const{__scopeSelect:r,children:o,...a}=e;return t.jsx(It.span,{"aria-hidden":!0,...a,ref:n,children:o||"▼"})});Jv.displayName="SelectIcon";var Xv=e=>t.jsx(an,{asChild:!0,...e});Xv.displayName="SelectPortal";var Qv="SelectContent",ey=c.forwardRef((e,n)=>{const r=Hv(Qv,e.__scopeSelect),[o,a]=c.useState();if(At(()=>{a(new DocumentFragment)},[]),!r.open){const n=o;return n?u.createPortal(t.jsx(ny,{scope:e.__scopeSelect,children:t.jsx(Lv.Slot,{scope:e.__scopeSelect,children:t.jsx("div",{children:e.children})})}),n):null}return t.jsx(ay,{...e,ref:n})});ey.displayName=Qv;var ty=10,[ny,ry]=zv(Qv),oy=Sv("SelectContent.RemoveScroll"),ay=c.forwardRef((e,n)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:b,avoidCollisions:v,...y}=e,w=Hv(Qv,r),[x,E]=c.useState(null),[_,k]=c.useState(null),C=at(n,e=>E(e)),[N,D]=c.useState(null),[S,A]=c.useState(null),T=Pv(r),[R,O]=c.useState(!1),F=c.useRef(!1);c.useEffect(()=>{if(x)return or(x)},[x]),un();const M=c.useCallback(e=>{const[t,...n]=T().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&_&&(_.scrollTop=0),n===r&&_&&(_.scrollTop=_.scrollHeight),n?.focus(),document.activeElement!==o)return}},[T,_]),j=c.useCallback(()=>M([N,x]),[M,N,x]);c.useEffect(()=>{R&&j()},[R,j]);const{onOpenChange:L,triggerPointerDownPosRef:P}=w;c.useEffect(()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(P.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(P.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),P.current=null};return null!==P.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[x,L,P]),c.useEffect(()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[L]);const[I,z]=My(e=>{const t=T().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=jy(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),B=c.useCallback((e,t,n)=>{const r=!F.current&&!n;(void 0!==w.value&&w.value===t||r)&&(D(e),r&&(F.current=!0))},[w.value]),U=c.useCallback(()=>x?.focus(),[x]),q=c.useCallback((e,t,n)=>{const r=!F.current&&!n;(void 0!==w.value&&w.value===t||r)&&A(e)},[w.value]),H="popper"===o?sy:iy,W=H===sy?{side:l,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:b,avoidCollisions:v}:{};return t.jsx(ny,{scope:r,content:x,viewport:_,onViewportChange:k,itemRefCallback:B,selectedItem:N,onItemLeave:U,itemTextRefCallback:q,focusSelectedItem:j,selectedItemText:S,position:o,isPositioned:R,searchRef:I,children:t.jsx(Jn,{as:oy,allowPinchZoom:!0,children:t.jsx(Xt,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Nt(a,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:t.jsx($t,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:t.jsx(H,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault(),...y,...W,onPlaced:()=>O(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Nt(y.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=T().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>M(t)),e.preventDefault()}})})})})})})});ay.displayName="SelectContentImpl";var iy=c.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:o,...a}=e,i=Hv(Qv,r),s=ry(Qv,r),[l,u]=c.useState(null),[d,f]=c.useState(null),p=at(n,e=>f(e)),m=Pv(r),h=c.useRef(!1),g=c.useRef(!0),{viewport:b,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=s,x=c.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&d&&b&&v&&y){const e=i.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),r=y.getBoundingClientRect();if("rtl"!==i.dir){const o=r.left-t.left,a=n.left-o,i=e.left-a,s=e.width+i,c=Math.max(s,t.width),u=window.innerWidth-ty,d=Dv(a,[ty,Math.max(ty,u-c)]);l.style.minWidth=s+"px",l.style.left=d+"px"}else{const o=t.right-r.right,a=window.innerWidth-n.right-o,i=window.innerWidth-e.right-a,s=e.width+i,c=Math.max(s,t.width),u=window.innerWidth-ty,d=Dv(a,[ty,Math.max(ty,u-c)]);l.style.minWidth=s+"px",l.style.right=d+"px"}const a=m(),s=window.innerHeight-2*ty,c=b.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),w=f+p+c+parseInt(u.paddingBottom,10)+g,x=Math.min(5*v.offsetHeight,w),E=window.getComputedStyle(b),_=parseInt(E.paddingTop,10),k=parseInt(E.paddingBottom,10),C=e.top+e.height/2-ty,N=s-C,D=v.offsetHeight/2,S=f+p+(v.offsetTop+D),A=w-S;if(S<=C){const e=a.length>0&&v===a[a.length-1].ref.current;l.style.bottom="0px";const t=d.clientHeight-b.offsetTop-b.offsetHeight,n=S+Math.max(N,D+(e?k:0)+t+g);l.style.height=n+"px"}else{const e=a.length>0&&v===a[0].ref.current;l.style.top="0px";const t=Math.max(C,f+b.offsetTop+(e?_:0)+D)+A;l.style.height=t+"px",b.scrollTop=S-C+b.offsetTop}l.style.margin=`${ty}px 0`,l.style.minHeight=x+"px",l.style.maxHeight=s+"px",o?.(),requestAnimationFrame(()=>h.current=!0)}},[m,i.trigger,i.valueNode,l,d,b,v,y,i.dir,o]);At(()=>x(),[x]);const[E,_]=c.useState();At(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const k=c.useCallback(e=>{e&&!0===g.current&&(x(),w?.(),g.current=!1)},[x,w]);return t.jsx(ly,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:k,children:t.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:t.jsx(It.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});iy.displayName="SelectItemAlignedPosition";var sy=c.forwardRef((e,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:a=ty,...i}=e,s=Uv(r);return t.jsx(ci,{...s,...i,ref:n,align:o,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});sy.displayName="SelectPopperPosition";var[ly,cy]=zv(Qv,{}),uy="SelectViewport",dy=c.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:o,...a}=e,i=ry(uy,r),s=cy(uy,r),l=at(n,i.onViewportChange),u=c.useRef(0);return t.jsxs(t.Fragment,{children:[t.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),t.jsx(Lv.Slot,{scope:r,children:t.jsx(It.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Nt(a.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*ty,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})});dy.displayName=uy;var fy="SelectGroup",[py,my]=zv(fy);c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,a=Ot();return t.jsx(py,{scope:r,id:a,children:t.jsx(It.div,{role:"group","aria-labelledby":a,...o,ref:n})})}).displayName=fy;var hy="SelectLabel",gy=c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,a=my(hy,r);return t.jsx(It.div,{id:a.id,...o,ref:n})});gy.displayName=hy;var by="SelectItem",[vy,yy]=zv(by),wy=c.forwardRef((e,n)=>{const{__scopeSelect:r,value:o,disabled:a=!1,textValue:i,...s}=e,l=Hv(by,r),u=ry(by,r),d=l.value===o,[f,p]=c.useState(i??""),[m,h]=c.useState(!1),g=at(n,e=>u.itemRefCallback?.(e,o,a)),b=Ot(),v=c.useRef("touch"),y=()=>{a||(l.onValueChange(o),l.onOpenChange(!1))};if(""===o)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return t.jsx(vy,{scope:r,value:o,disabled:a,textId:b,isSelected:d,onItemTextChange:c.useCallback(e=>{p(t=>t||(e?.textContent??"").trim())},[]),children:t.jsx(Lv.ItemSlot,{scope:r,value:o,disabled:a,textValue:f,children:t.jsx(It.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:g,onFocus:Nt(s.onFocus,()=>h(!0)),onBlur:Nt(s.onBlur,()=>h(!1)),onClick:Nt(s.onClick,()=>{"mouse"!==v.current&&y()}),onPointerUp:Nt(s.onPointerUp,()=>{"mouse"===v.current&&y()}),onPointerDown:Nt(s.onPointerDown,e=>{v.current=e.pointerType}),onPointerMove:Nt(s.onPointerMove,e=>{v.current=e.pointerType,a?u.onItemLeave?.():"mouse"===v.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Nt(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:Nt(s.onKeyDown,e=>{""!==u.searchRef?.current&&" "===e.key||(Mv.includes(e.key)&&y()," "===e.key&&e.preventDefault())})})})})});wy.displayName=by;var xy="SelectItemText",Ey=c.forwardRef((e,n)=>{const{__scopeSelect:r,className:o,style:a,...i}=e,s=Hv(xy,r),l=ry(xy,r),d=yy(xy,r),f=Vv(xy,r),[p,m]=c.useState(null),h=at(n,e=>m(e),d.onItemTextChange,e=>l.itemTextRefCallback?.(e,d.value,d.disabled)),g=p?.textContent,b=c.useMemo(()=>t.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=f;return At(()=>(v(b),()=>y(b)),[v,y,b]),t.jsxs(t.Fragment,{children:[t.jsx(It.span,{id:d.textId,...i,ref:h}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?u.createPortal(i.children,s.valueNode):null]})});Ey.displayName=xy;var _y="SelectItemIndicator",ky=c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return yy(_y,r).isSelected?t.jsx(It.span,{"aria-hidden":!0,...o,ref:n}):null});ky.displayName=_y;var Cy="SelectScrollUpButton",Ny=c.forwardRef((e,n)=>{const r=ry(Cy,e.__scopeSelect),o=cy(Cy,e.__scopeSelect),[a,i]=c.useState(!1),s=at(n,o.onScrollButtonChange);return At(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?t.jsx(Ay,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});Ny.displayName=Cy;var Dy="SelectScrollDownButton",Sy=c.forwardRef((e,n)=>{const r=ry(Dy,e.__scopeSelect),o=cy(Dy,e.__scopeSelect),[a,i]=c.useState(!1),s=at(n,o.onScrollButtonChange);return At(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?t.jsx(Ay,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Sy.displayName=Dy;var Ay=c.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:o,...a}=e,i=ry("SelectScrollButton",r),s=c.useRef(null),l=Pv(r),u=c.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>u(),[u]),At(()=>{const e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),t.jsx(It.div,{"aria-hidden":!0,...a,ref:n,style:{flexShrink:0,...a.style},onPointerDown:Nt(a.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(o,50))}),onPointerMove:Nt(a.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(o,50))}),onPointerLeave:Nt(a.onPointerLeave,()=>{u()})})}),Ty=c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return t.jsx(It.div,{"aria-hidden":!0,...o,ref:n})});Ty.displayName="SelectSeparator";var Ry="SelectArrow";c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,a=Uv(r),i=Hv(Ry,r),s=ry(Ry,r);return i.open&&"popper"===s.position?t.jsx(ui,{...a,...o,ref:n}):null}).displayName=Ry;var Oy=c.forwardRef(({__scopeSelect:e,value:n,...r},o)=>{const a=c.useRef(null),i=at(o,a),s=lp(n);return c.useEffect(()=>{const e=a.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(s!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[s,n]),t.jsx(It.select,{...r,style:{...Ov,...r.style},ref:i,defaultValue:n})});function Fy(e){return""===e||void 0===e}function My(e){const t=Bt(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function jy(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===r.length&&(a=a.filter(e=>e!==n));const l=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}Oy.displayName="SelectBubbleInput";var Ly=Kv,Py=Jv,Iy=Xv,zy=ey,By=dy,Uy=gy,qy=wy,Hy=Ey,Wy=ky,Vy=Ny,$y=Sy,Gy=Ty,Ky=$v,Zy=Yv,Yy=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=_(e,["className","children"]);return c.createElement(Ly,Object.assign({ref:t,className:tt("flex h-12 w-full items-center justify-between rounded-full border border-input bg-background px-6 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-[hsl(var(--primary))]/30 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-300 [&>span]:line-clamp-1",n)},o),r,c.createElement(Py,{asChild:!0},c.createElement(A,{className:"h-4 w-4 opacity-50"})))});Yy.displayName=Ly.displayName;var Jy=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Vy,Object.assign({ref:t,className:tt("flex cursor-default items-center justify-center py-1",n)},r),c.createElement(O,{className:"h-4 w-4"}))});Jy.displayName=Vy.displayName;var Xy=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement($y,Object.assign({ref:t,className:tt("flex cursor-default items-center justify-center py-1",n)},r),c.createElement(A,{className:"h-4 w-4"}))});Xy.displayName=$y.displayName;var Qy=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=e.position,a=void 0===o?"popper":o,i=_(e,["className","children","position"]);return c.createElement(Iy,null,c.createElement(zy,Object.assign({ref:t,className:tt("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-2xl border bg-popover text-popover-foreground shadow-[0_10px_40px_-10px_rgba(93,112,82,0.2)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 origin-[--radix-select-content-transform-origin]","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:a},i),c.createElement(Jy,null),c.createElement(By,{className:tt("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},r),c.createElement(Xy,null)))});Qy.displayName=zy.displayName;var ew=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Uy,Object.assign({ref:t,className:tt("py-1.5 pl-8 pr-2 text-sm font-semibold",n)},r))});ew.displayName=Uy.displayName;var tw=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=_(e,["className","children"]);return c.createElement(qy,Object.assign({ref:t,className:tt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},o),c.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},c.createElement(Wy,null,c.createElement(S,{className:"h-4 w-4"}))),c.createElement(Hy,null,r))});tw.displayName=qy.displayName;var nw=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Gy,Object.assign({ref:t,className:tt("-mx-1 my-1 h-px bg-muted",n)},r))});function rw(){return"".concat(Date.now(),"_").concat(Math.random().toString(16).slice(2))}function ow(e){var t,n=(null==e?void 0:e.type)||"string";return(null===(t=null==e?void 0:e.enum)||void 0===t?void 0:t.length)?[{value:"eq",label:"等于"},{value:"neq",label:"不等于"},{value:"in",label:"属于(多个)"},{value:"isNull",label:"为空(NULL)"}]:"integer"===n||"float"===n?[{value:"eq",label:"等于"},{value:"neq",label:"不等于"},{value:"gt",label:"大于"},{value:"gte",label:"大于等于"},{value:"lt",label:"小于"},{value:"lte",label:"小于等于"},{value:"in",label:"属于(多个)"},{value:"isNull",label:"为空(NULL)"}]:"boolean"===n?[{value:"eq",label:"等于"},{value:"neq",label:"不等于"},{value:"isNull",label:"为空(NULL)"}]:"date"===n||"datetime"===n?[{value:"eq",label:"等于"},{value:"neq",label:"不等于"},{value:"gt",label:"晚于/大于"},{value:"gte",label:"晚于等于/大于等于"},{value:"lt",label:"早于/小于"},{value:"lte",label:"早于等于/小于等于"},{value:"isNull",label:"为空(NULL)"}]:[{value:"contains",label:"包含"},{value:"startsWith",label:"开头是"},{value:"endsWith",label:"结尾是"},{value:"eq",label:"等于"},{value:"neq",label:"不等于"},{value:"in",label:"属于(多个)"},{value:"isNull",label:"为空(NULL)"}]}function aw(t){var n,r,o=e.useMemo(function(){var e=[];e.push.apply(e,y([{column:"id",label:"ID",type:"id"},{column:"created_at",label:"创建时间",type:"datetime"},{column:"updated_at",label:"更新时间",type:"datetime"}]));var n,r=m(t.fields||[]);try{for(r.s();!(n=r.n()).done;){var o=n.value;if((null==o?void 0:o.name)&&("json"!==o.type&&"jsonb"!==o.type))if("relation"===o.type&&o.relation){var a=o.relation.foreignKey||"".concat(o.relation.target,"_id");e.push({column:a,label:"".concat(o.comment||o.name,"(关联)"),type:"relation"})}else e.push({column:o.name,label:o.comment||o.name,type:o.type,enum:pv(o)?y(o.enum||[]):void 0,enumLabels:o.enumLabels})}}catch(e){r.e(e)}finally{r.f()}var i=new Set;return e.filter(function(e){return!i.has(e.column)&&(i.add(e.column),!0)})},[t.fields]),a=e.useMemo(function(){return new Map(o.map(function(e){return[e.column,e]}))},[o]),i=e.useMemo(function(){return new Map(o.map(function(e){return[e.column,e.type]}))},[o]),s=v(e.useState([]),2),l=s[0],c=s[1];e.useEffect(function(){c(function(e,t){return(e||[]).map(function(e){if(t.get(e.column),"is"===e.operator&&(null===e.value||"null"===e.value))return{id:rw(),column:e.column,operator:"isNull",value:""};if(("ilike"===e.operator||"like"===e.operator)&&"string"==typeof e.value){var n=e.value;if(n.startsWith("%")&&n.endsWith("%")&&n.length>=2)return{id:rw(),column:e.column,operator:"contains",value:n.slice(1,-1)};if(n.endsWith("%"))return{id:rw(),column:e.column,operator:"startsWith",value:n.slice(0,-1)};if(n.startsWith("%"))return{id:rw(),column:e.column,operator:"endsWith",value:n.slice(1)}}if("in"===e.operator){var r=Array.isArray(e.value)?e.value:[];return{id:rw(),column:e.column,operator:"in",value:r.join(",")}}return{id:rw(),column:e.column,operator:["eq","neq","gt","gte","lt","lte"].includes(e.operator)?e.operator:"eq",value:void 0===e.value||null===e.value?"":String(e.value)}})}(t.value||[],i))},[JSON.stringify(t.value),o.length]);var u=function(e,t){c(function(n){return n.map(function(n){var r;if(n.id!==e)return n;var o=Object.assign(Object.assign({},n),t);if(t.column&&t.column!==n.column){var i=ow(a.get(t.column));o.operator=(null===(r=i[0])||void 0===r?void 0:r.value)||"eq",o.value=""}return t.operator&&"isNull"===t.operator&&(o.value=""),o})})};return e.createElement("div",{className:"space-y-3"},e.createElement("div",{className:"flex items-center justify-between gap-3"},e.createElement(Hc,{className:"text-base font-medium flex items-center gap-2"},e.createElement(B,{className:"h-4 w-4"}),"动态筛选"),e.createElement("div",{className:"flex items-center gap-2"},(null===(n=t.value)||void 0===n?void 0:n.length)>0&&e.createElement(Nv,{variant:"secondary"},"已应用 ",t.value.length," 条"),e.createElement(vt,{type:"button",variant:"outline",size:"sm",onClick:function(){var e=o[0];if(e){var t=ow(e);c(function(n){var r;return[].concat(y(n),[{id:rw(),column:e.column,operator:(null===(r=t[0])||void 0===r?void 0:r.value)||"eq",value:""}])})}}},e.createElement(Z,{className:"h-4 w-4 mr-1"}),"添加条件"))),0===l.length?e.createElement("div",{className:"text-sm text-muted-foreground border rounded-lg p-3 bg-muted/20"},"暂无筛选条件(可添加条件后点击“应用”)"):e.createElement("div",{className:"space-y-2"},l.map(function(t){var n,r,i=a.get(t.column),s=(null==i?void 0:i.type)||"string",l=ow(i),d="isNull"!==t.operator,f=(null===(n=null==i?void 0:i.enum)||void 0===n?void 0:n.length)&&"in"!==t.operator?gv({enum:i.enum,enumLabels:i.enumLabels},t.value):[];return e.createElement("div",{key:t.id,className:"grid grid-cols-12 gap-2 items-center"},e.createElement("div",{className:"col-span-5"},e.createElement(Ky,{value:t.column,onValueChange:function(e){return u(t.id,{column:e})}},e.createElement(Yy,{className:"h-10"},e.createElement(Zy,{placeholder:"字段"})),e.createElement(Qy,null,o.map(function(t){return e.createElement(tw,{key:t.column,value:t.column},t.label," (",t.column,")")})))),e.createElement("div",{className:"col-span-3"},e.createElement(Ky,{value:t.operator,onValueChange:function(e){return u(t.id,{operator:e})}},e.createElement(Yy,{className:"h-10"},e.createElement(Zy,{placeholder:"操作符"})),e.createElement(Qy,null,l.map(function(t){return e.createElement(tw,{key:t.value,value:t.value},t.label)})))),e.createElement("div",{className:"col-span-3"},d?(null===(r=null==i?void 0:i.enum)||void 0===r?void 0:r.length)&&"in"!==t.operator?e.createElement(Ky,{value:t.value,onValueChange:function(e){return u(t.id,{value:e})}},e.createElement(Yy,{className:"h-10"},e.createElement(Zy,{placeholder:"值"})),e.createElement(Qy,null,f.map(function(t){return e.createElement(tw,{key:t.valueKey,value:t.valueKey},t.label)}))):"boolean"===s?e.createElement(Ky,{value:t.value,onValueChange:function(e){return u(t.id,{value:e})}},e.createElement(Yy,{className:"h-10"},e.createElement(Zy,{placeholder:"值"})),e.createElement(Qy,null,e.createElement(tw,{value:"true"},"true"),e.createElement(tw,{value:"false"},"false"))):e.createElement(yt,{className:"h-10",placeholder:"in"===t.operator?"多个值用逗号分隔":"值",type:"integer"===s||"float"===s?"number":"date"===s?"date":"datetime"===s?"datetime-local":"text",value:t.value,onChange:function(e){return u(t.id,{value:e.target.value})}}):e.createElement("div",{className:"h-10 flex items-center text-sm text-muted-foreground"},"无需填写")),e.createElement("div",{className:"col-span-1 flex justify-end"},e.createElement(vt,{type:"button",variant:"ghost",size:"sm",className:"h-9 w-9 p-0",onClick:function(){return e=t.id,void c(function(t){return t.filter(function(t){return t.id!==e})});var e}},e.createElement(ae,{className:"h-4 w-4"}))))})),e.createElement("div",{className:"flex items-center justify-end gap-2"},e.createElement(vt,{type:"button",variant:"outline",onClick:function(){c([]),t.onChange([])},disabled:0===l.length&&0===((null===(r=t.value)||void 0===r?void 0:r.length)||0)},"清空"),e.createElement(vt,{type:"button",onClick:function(){var e=function(e,t){var n,r,o=[],a=m(e);try{for(a.s();!(r=a.n()).done;){var i=r.value,s=t.get(i.column);if(s&&i.operator)if("isNull"!==i.operator){var l=null!==(n=i.value)&&void 0!==n?n:"",c=String(l).trim();if(c)if("contains"!==i.operator)if("startsWith"!==i.operator)if("endsWith"!==i.operator)if("in"!==i.operator)o.push({column:s.column,operator:i.operator,value:c});else{var u=c.split(",").map(function(e){return e.trim()}).filter(Boolean);o.push({column:s.column,operator:"in",value:u})}else o.push({column:s.column,operator:"ilike",value:"%".concat(c)});else o.push({column:s.column,operator:"ilike",value:"".concat(c,"%")});else o.push({column:s.column,operator:"ilike",value:"%".concat(c,"%")})}else o.push({column:s.column,operator:"is",value:null})}}catch(e){a.e(e)}finally{a.f()}return o}(l,a);t.onChange(e)},disabled:0===l.length},"应用")))}function iw(){var e=Of();if(e)return e;try{return localStorage.getItem("cms_session_id")||void 0}catch(e){return}}function sw(e,t){return e instanceof Error&&e.message?e.message:t}function lw(t){var n=t.model,r=rp(),o=n,a=v(e.useState([]),2),i=a[0],l=a[1],c=v(e.useState(!1),2),u=c[0],d=c[1],f=v(e.useState(!1),2),m=f[0],b=f[1],y=v(e.useState(!1),2),w=y[0],x=y[1],E=v(e.useState(null),2),_=E[0],k=E[1],C=v(e.useState({}),2),N=C[0],D=C[1],S=v(e.useState(1),2),A=S[0],O=S[1],F=v(e.useState(10),2),M=F[0];F[1];var L=v(e.useState(0),2),P=L[0],I=L[1],z=v(e.useState(""),2),U=z[0],q=z[1],H=v(e.useState(!1),2),V=H[0],$=H[1],G=v(e.useState(null),2),K=G[0],J=G[1],X=v(e.useState({}),2),ee=X[0],ne=X[1],re=v(e.useState([]),2),oe=re[0],ae=re[1],ie=e.useMemo(function(){return oe.length?JSON.stringify(oe):""},[oe]),se=function(e){return!e.readOnly&&!1!==e.editable};e.useEffect(function(){o&&ce()},[null==o?void 0:o.table_name,A,M,U,ie]);var le=function(){var e=p(g().m(function e(t){var n,o,a,i,s,l;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if("relation"===t.type&&t.relation){e.n=1;break}return e.a(2);case 1:if(n=t.relation,o=n.target,a=n.displayField,i="".concat(o,"_").concat(a||"name"),!ee[i]){e.n=2;break}return e.a(2);case 2:return e.p=2,e.n=3,Zf(Mf(o,iw()),{displayField:a||"name",limit:200});case 3:(s=e.v).success&&s.data&&ne(function(e){return Object.assign(Object.assign({},e),h({},i,s.data))}),e.n=5;break;case 4:e.p=4,l=e.v,cu.error(sw(l,r("data.loadFailed")));case 5:return e.a(2)}},e,null,[[2,4]])}));return function(t){return e.apply(this,arguments)}}();e.useEffect(function(){m&&o&&o.json_schema.fields.filter(function(e){return"relation"===e.type&&e.relation}).forEach(function(e){return le(e)})},[m,o]);var ce=function(){var e=p(g().m(function e(){var t,n,a,i,s;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o){e.n=1;break}return e.a(2);case 1:return d(!0),e.p=2,a={page:A,limit:M},U&&(a.search=U),oe.length>0&&(a.filters=oe),e.n=3,Kf(o.table_name,a);case 3:if((i=e.v).success){e.n=4;break}return cu.error(i.message||r("data.loadFailed")),l([]),I(0),e.a(2);case 4:l((null===(t=i.data)||void 0===t?void 0:t.data)||[]),I((null===(n=i.data)||void 0===n?void 0:n.total)||0),e.n=6;break;case 5:e.p=5,s=e.v,cu.error(sw(s,r("data.loadFailed"))),l([]),I(0);case 6:return e.p=6,d(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}));return function(){return e.apply(this,arguments)}}(),ue=function(){var e=p(g().m(function e(t){var n;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(confirm(r("data.deleteConfirmFull"))){e.n=1;break}return e.a(2);case 1:return J(t.id),e.p=2,e.n=3,Xf(null==o?void 0:o.table_name,t.id);case 3:(n=e.v).success?(cu.success(r("data.deleteSuccess")),ce()):cu.error(n.message||r("data.deleteFailed")),e.n=5;break;case 4:e.p=4,e.v,cu.error(r("data.deleteFailed"));case 5:return e.p=5,J(null),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(t){return e.apply(this,arguments)}}(),de=function(){var e=p(g().m(function e(){var t,n,a,i,s,l,c;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(o){e.n=1;break}return e.a(2);case 1:if($(!0),e.p=2,!(t=Pf(o.json_schema.fields,N))){e.n=3;break}throw new Error("".concat(r("data.fieldError")," ").concat(t.comment||t.name," ").concat(r("validation.required")));case 3:if(n={},o.json_schema.fields.forEach(function(e){if("id"!==e.name&&se(e))if("relation"===e.type&&e.relation){var t=e.relation.foreignKey||"".concat(e.relation.target,"_id");n[t]=N[t]}else{var o=N[e.name];if("date"===e.type&&(o=o||null),"datetime"===e.type&&(o=o?new Date(o).toISOString():null),"json"===e.type||"jsonb"===e.type){var a=(o||"").toString().trim();if(a){var i=im(a);if(!i.ok)throw new Error("".concat(r("data.fieldError")," ").concat(e.comment||e.name,":").concat(i.message));o=i.value}else o=null}n[e.name]=o}}),!_){e.n=5;break}return a=Object.assign(Object.assign({},n),{id:_.id}),e.n=4,Jf(o.table_name,a);case 4:(i=e.v).success?(cu.success(r("data.updateSuccess")),b(!1),ce()):cu.error(i.message||r("data.updateFailed")),e.n=7;break;case 5:return e.n=6,Yf(o.table_name,n);case 6:(s=e.v).success?(cu.success(r("data.createSuccess")),b(!1),ce()):cu.error(s.message||r("data.createFailed"));case 7:e.n=9;break;case 8:e.p=8,c=e.v,l=c instanceof Error?c.message:r("data.operationFailed"),cu.error(l);case 9:return e.p=9,$(!1),e.f(9);case 10:return e.a(2)}},e,null,[[2,8,9,10]])}));return function(){return e.apply(this,arguments)}}(),fe=function(t){if("id"===t.name)return null;var n=se(t);if(pv(t)){var a=N[t.name],i=gv(t,a),s=mv(a);return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(Hc,{htmlFor:t.name,className:"text-sm font-semibold"},t.comment||t.name,t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(Ky,{value:s,disabled:!n,onValueChange:function(e){return D(Object.assign(Object.assign({},N),h({},t.name,function(e,t){var n=(e.enum||[]).find(function(e){return mv(e)===t});return void 0!==n?n:t}(t,e))))}},e.createElement(Yy,{className:"h-11"},e.createElement(Zy,{placeholder:"".concat(r("data.pleaseSelect")).concat(t.comment||t.name)})),e.createElement(Qy,null,i.map(function(t){return e.createElement(tw,{key:t.valueKey,value:t.valueKey},t.label)}))))}switch(t.type){case"boolean":return e.createElement("div",{key:t.name,className:"flex items-center space-x-3 p-4 rounded-lg border bg-card"},e.createElement(xp,{id:t.name,checked:N[t.name]||!1,disabled:!n,onCheckedChange:function(e){return D(Object.assign(Object.assign({},N),h({},t.name,e)))}}),e.createElement(Hc,{htmlFor:t.name,className:"text-sm font-semibold cursor-pointer"},t.comment||t.name,t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")));case"date":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(Hc,{htmlFor:t.name,className:"text-sm font-semibold"},t.comment||t.name,t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(yt,{id:t.name,type:"date",value:N[t.name]||"",disabled:!n,onChange:function(e){return D(Object.assign(Object.assign({},N),h({},t.name,e.target.value)))},required:t.required,className:"h-11"}));case"datetime":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(Hc,{htmlFor:t.name,className:"text-sm font-semibold"},t.comment||t.name,t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(yt,{id:t.name,type:"datetime-local",value:N[t.name]||"",disabled:!n,onChange:function(e){return D(Object.assign(Object.assign({},N),h({},t.name,e.target.value)))},required:t.required,className:"h-11"}));case"text":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(Hc,{htmlFor:t.name,className:"text-sm font-semibold"},t.comment||t.name,t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(dv,{value:N[t.name]||"",onChange:function(e){return D(Object.assign(Object.assign({},N),h({},t.name,e)))},disabled:!n}));case"json":case"jsonb":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(Hc,{htmlFor:t.name,className:"text-sm font-semibold"},t.comment||t.name,t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(dm,{id:t.name,value:N[t.name]||"",required:t.required,disabled:!n,onChange:function(e){return D(Object.assign(Object.assign({},N),h({},t.name,e)))}}));case"asset":return e.createElement(Op,{key:t.name,field:t,model:o,value:N[t.name]||"",disabled:!n,onChange:function(e){return D(Object.assign(Object.assign({},N),h({},t.name,e)))}});case"integer":case"float":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(Hc,{htmlFor:t.name,className:"text-sm font-semibold"},t.comment||t.name,t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(yt,{id:t.name,type:"number",value:N[t.name]||"",disabled:!n,onChange:function(e){return D(Object.assign(Object.assign({},N),h({},t.name,e.target.value)))},required:t.required,className:"h-11"}));case"relation":if(!t.relation)return null;var l=t.relation,c=l.target,u=l.displayField,d=void 0===u?"name":u,f="".concat(c,"_").concat(d),p=ee[f]||[],m=t.relation.foreignKey||"".concat(c,"_id"),g=void 0!==N[m]&&null!==N[m]?String(N[m]):"",b=p.find(function(e){return String(e.id)===g});return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(Hc,{htmlFor:t.name,className:"text-sm font-semibold"},t.comment||t.name,t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(Ky,{value:g,disabled:!n,onValueChange:function(e){var t=parseInt(e,10),n=!isNaN(t)&&String(t)===e;D(Object.assign(Object.assign({},N),h({},m,n?t:e)))}},e.createElement(Yy,{className:"h-11"},e.createElement(Zy,{placeholder:"".concat(r("data.pleaseSelect")).concat(t.comment||t.name)},b?b.label:g?"ID: ".concat(g):"".concat(r("data.pleaseSelect")).concat(t.comment||t.name))),e.createElement(Qy,null,0===p.length?e.createElement(tw,{value:"_loading",disabled:!0},r("data.loadingOptions")):p.map(function(t){return e.createElement(tw,{key:t.id,value:String(t.id)},t.label)}))));default:return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(Hc,{htmlFor:t.name,className:"text-sm font-semibold"},t.comment||t.name,t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(yt,{id:t.name,type:"email"===t.type?"email":"text",maxLength:t.maxLength,value:N[t.name]||"",disabled:!n,onChange:function(e){return D(Object.assign(Object.assign({},N),h({},t.name,e.target.value)))},required:t.required,className:"h-11"}))}};return o?e.createElement("div",{className:"min-h-[calc(100vh-4rem)] bg-gradient-to-br from-background via-background to-muted/20"},e.createElement("div",{className:"w-full py-4 space-y-4"},e.createElement("div",{className:"space-y-1"},e.createElement("div",{className:"flex items-center gap-3"},e.createElement("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-lg bg-primary/10 text-primary"},e.createElement(j,{className:"h-4 w-4"})),e.createElement("div",null,e.createElement("h1",{className:"text-2xl font-bold tracking-tight leading-tight"},o.name),e.createElement("p",{className:"text-sm text-muted-foreground"},r("data.tableName"),": ",o.table_name)))),e.createElement(Wc,{className:"border-2 shadow-lg"},e.createElement(Vc,{className:"bg-muted/30"},e.createElement("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4"},e.createElement("div",null,e.createElement($c,null,r("data.dataManagement")),e.createElement(Gc,null,r("data.viewAndManage")," ",o.name," ",r("data.ofData"))),e.createElement(vt,{onClick:function(){k(null),D({}),b(!0)},className:"w-full md:w-auto"},e.createElement(Z,{className:"h-4 w-4 mr-2"}),r("data.newRecord")))),e.createElement(Kc,{className:"space-y-4 pt-4"},e.createElement("div",{className:"flex flex-col md:flex-row md:items-center gap-3"},e.createElement("div",{className:"flex-1"},e.createElement(Hc,{htmlFor:"search",className:"sr-only"},r("common.search")),e.createElement("div",{className:"relative"},e.createElement(Y,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.createElement(yt,{id:"search",placeholder:r("data.searchData"),value:U,onChange:function(e){return q(e.target.value)},className:"pl-10 h-10"}))),e.createElement(vt,{type:"button",variant:"outline",className:"h-10",onClick:function(){return x(!0)}},e.createElement(B,{className:"h-4 w-4 mr-2"}),r("common.filter"),oe.length>0?"(".concat(oe.length,")"):"")),e.createElement("div",{className:"flex items-center justify-between p-4 rounded-lg bg-muted/50 border"},e.createElement("div",{className:"text-sm text-muted-foreground"},r("data.totalCount")," ",e.createElement("span",{className:"font-semibold text-foreground"},P)," ",r("data.records")),e.createElement(Nv,{variant:"outline"},o.name)),e.createElement("div",{className:"rounded-lg border overflow-hidden"},e.createElement(bv,null,e.createElement(vv,null,e.createElement(xv,{className:"bg-muted/50"},e.createElement(Ev,{className:"font-semibold w-20"},"ID"),o.json_schema.fields.map(function(t){return e.createElement(Ev,{key:t.name,className:"font-semibold"},t.comment||t.name)}),e.createElement(Ev,{className:"font-semibold"},r("data.createdAt")),e.createElement(Ev,{className:"font-semibold"},r("data.updatedAt")),e.createElement(Ev,{className:tt("font-semibold w-32 text-center sticky right-0 z-30 bg-background","before:content-[''] before:absolute before:inset-y-0 before:left-0 before:w-px before:bg-border","after:content-[''] after:absolute after:inset-y-0 after:left-[-16px] after:w-4 after:bg-gradient-to-l after:from-background after:to-transparent","shadow-[-10px_0_16px_-14px_rgba(0,0,0,0.35)]")},r("common.actions")))),e.createElement(yv,null,u?Array.from({length:1}).map(function(t,n){return e.createElement(xv,{key:n},e.createElement(_v,{colSpan:o.json_schema.fields.length+4},e.createElement("div",{className:"flex items-center gap-2 py-4"},e.createElement(W,{className:"h-4 w-4 animate-spin text-muted-foreground"}),e.createElement("span",{className:"text-sm text-muted-foreground"},r("common.loading")))))}):0===i.length?e.createElement(xv,null,e.createElement(_v,{colSpan:o.json_schema.fields.length+4,className:"text-center py-12"},e.createElement("div",{className:"flex flex-col items-center gap-2 text-muted-foreground"},e.createElement(Y,{className:"h-8 w-8"}),e.createElement("p",null,r("data.noData"))))):i.map(function(t,n){return e.createElement(xv,{key:t.id,className:tt("group hover:bg-muted",n%2==0?"bg-muted/20":"")},e.createElement(_v,{className:"font-mono font-medium max-w-[220px] truncate",title:String(t.id)},t.id),o.json_schema.fields.map(function(n){return e.createElement(_v,{key:n.name},function(t,n,o){if(pv(t))return hv(t,n)||"-";if("asset"===t.type)return e.createElement(Rp,{url:n,emptyText:"-",className:"w-[360px] max-w-full"});if("string"==typeof n){var a=n.trim();if(a&&Cp(a))return e.createElement(Rp,{url:a,emptyText:"-",className:"w-[360px] max-w-full"});if(a&&Ep(a))return e.createElement(Rp,{url:a,emptyText:"-",className:"w-[360px] max-w-full"})}if("boolean"===t.type)return e.createElement(Nv,{variant:n?"default":"secondary"},r(n?"data.yes":"data.no"));if("date"===t.type)return n?s(n).format("YYYY-MM-DD"):"-";if("datetime"===t.type)return n?s(n).format("YYYY-MM-DD HH:mm:ss"):"-";if("text"===t.type&&n&&n.length>50)return e.createElement("span",{className:"max-w-xs truncate block",title:n},n.substring(0,50),"...");if("json"===t.type||"jsonb"===t.type)return e.createElement(um,{value:n,title:t.comment||t.name});if("relation"===t.type&&t.relation&&o){var i=t.relation.displayField,l=void 0===i?"name":i,c=o["".concat(t.name,"_data")];if(c)return e.createElement(Nv,{variant:"outline"},c[l]||"ID: ".concat(c.id));var u=o[t.relation.foreignKey||"".concat(t.relation.target,"_id")];return u?"ID: ".concat(u):"-"}return null==n||""===n?"-":n}(n,t[n.name],t))}),e.createElement(_v,{className:"text-sm text-muted-foreground"},s(t.created_at).format("YYYY-MM-DD HH:mm")),e.createElement(_v,{className:"text-sm text-muted-foreground"},s(t.updated_at).format("YYYY-MM-DD HH:mm")),e.createElement(_v,{className:tt("sticky right-0 z-20 bg-background","before:content-[''] before:absolute before:inset-y-0 before:left-0 before:w-px before:bg-border","after:content-[''] after:absolute after:inset-y-0 after:left-[-16px] after:w-4 after:bg-gradient-to-l after:from-background after:to-transparent","shadow-[-10px_0_16px_-14px_rgba(0,0,0,0.25)]","group-hover:bg-muted")},e.createElement("div",{className:"flex items-center justify-center gap-2"},e.createElement(vt,{variant:"ghost",size:"sm",onClick:function(){return function(e){k(e);var t={};null==o||o.json_schema.fields.forEach(function(n){if("id"!==n.name)if("relation"===n.type&&n.relation){var r=n.relation.foreignKey||"".concat(n.relation.target,"_id");t[r]=e[r]}else{var o=e[n.name];"date"===n.type&&(o=o?s(o).format("YYYY-MM-DD"):""),"datetime"===n.type&&(o=o?s(o).format("YYYY-MM-DDTHH:mm"):""),"json"!==n.type&&"jsonb"!==n.type||(o=null==o||""===o?"":"string"==typeof o?o:JSON.stringify(o,null,2)),t[n.name]=o}}),D(t),b(!0)}(t)},className:"h-8 w-8 p-0"},e.createElement(Q,{className:"h-4 w-4"})),e.createElement(vt,{variant:"ghost",size:"sm",onClick:function(){return ue(t)},disabled:K===t.id,className:"h-8 w-8 p-0 text-destructive hover:text-destructive"},K===t.id?e.createElement(W,{className:"h-4 w-4 animate-spin"}):e.createElement(te,{className:"h-4 w-4"})))))})))),P>M&&e.createElement("div",{className:"flex items-center justify-between p-4 rounded-lg bg-muted/50 border"},e.createElement("div",{className:"text-sm text-muted-foreground"},r("data.page")," ",e.createElement("span",{className:"font-semibold text-foreground"},A)," ",r("data.pageOf")," ",e.createElement("span",{className:"font-semibold text-foreground"},Math.ceil(P/M))," ",r("data.pages")),e.createElement("div",{className:"flex gap-2"},e.createElement(vt,{variant:"outline",size:"sm",onClick:function(){return O(Math.max(1,A-1))},disabled:1===A||u},e.createElement(T,{className:"h-4 w-4 mr-1"}),r("data.previousPage")),e.createElement(vt,{variant:"outline",size:"sm",onClick:function(){return O(Math.min(Math.ceil(P/M),A+1))},disabled:A>=Math.ceil(P/M)||u},r("data.nextPage"),e.createElement(R,{className:"h-4 w-4 ml-1"})))))),e.createElement(Fp,{open:w,onOpenChange:x},e.createElement(Pp,{className:"max-w-3xl"},e.createElement(Ip,null,e.createElement(Bp,{className:"text-xl"},r("common.filter")),e.createElement(qp,{className:"text-sm"},o.name," - ",o.table_name)),e.createElement("div",{className:"py-2"},e.createElement(aw,{fields:o.json_schema.fields,value:oe,onChange:function(e){ae(e),O(1)}})),e.createElement(zp,{className:"gap-2"},e.createElement(vt,{variant:"outline",onClick:function(){return x(!1)}},r("common.close"))))),e.createElement(Fp,{open:m,onOpenChange:b},e.createElement(Pp,{className:"max-w-3xl max-h-[85vh] overflow-y-auto"},e.createElement(Ip,null,e.createElement(Bp,{className:"text-2xl"},r(_?"data.editRecord":"data.createRecord")),e.createElement(qp,{className:"text-base"},o.name," - ",o.table_name)),e.createElement("div",{className:"space-y-6 py-4"},o.json_schema.fields.map(function(e){return fe(e)})),e.createElement(zp,{className:"gap-2"},e.createElement(vt,{variant:"outline",onClick:function(){return b(!1)},disabled:V},r("common.cancel")),e.createElement(vt,{onClick:de,disabled:V},V?e.createElement(e.Fragment,null,e.createElement(W,{className:"h-4 w-4 mr-2 animate-spin"}),r(_?"data.updating":"data.creating")):r(_?"common.update":"common.create"))))))):e.createElement("div",{className:"min-h-[calc(100vh-4rem)] bg-gradient-to-br from-background via-background to-muted/20"},e.createElement("div",{className:"w-full py-4"},e.createElement(Wc,{className:"border-2"},e.createElement(Kc,{className:"py-16 text-center"},e.createElement(j,{className:"h-12 w-12 mx-auto mb-4 text-muted-foreground"}),e.createElement("p",{className:"text-lg text-muted-foreground"},r("data.selectModelPrompt"))))))}function cw(t){var n=t.model;return e.createElement(lw,{key:n.id,model:n})}function uw(t){return t.models.map(function(t){return{path:"/data/list-".concat(t.id),name:t.name,icon:e.createElement(ee),component:function(){return e.createElement(cw,{model:t})}}})}nw.displayName=Gy.displayName;var dw=function(t,n){var r=function(e,t){return n?n(e):t};return[{path:"/login",name:r("auth.login","登录"),icon:e.createElement($),component:ip},{name:r("data.dataManagement","内容管理"),icon:e.createElement(M),path:"/data",component:sp,routes:y(uw(t))}]},fw=J,pw=re,mw=G,hw=H;function gw(e){return bw.apply(this,arguments)}function bw(){return bw=p(g().m(function e(t){var n,r;return g().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:if(!(null===(n=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===n?void 0:n.writeText)){e.n=3;break}return e.n=2,navigator.clipboard.writeText(t);case 2:return e.a(2);case 3:(r=document.createElement("textarea")).value=t,r.style.position="fixed",r.style.left="-9999px",document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r);case 4:return e.a(2)}},e)})),bw.apply(this,arguments)}function vw(t){var n=t.inputModels,r=t.skipAuth,o=void 0!==r&&r,a=t.brandName,i=void 0===a?"super CMS":a,s=t.uploadHandler,l=rp(),c=op(),u=c.locale,d=c.setLocale,f=v(e.useState("/data"),2),h=f[0],b=f[1],w=v(e.useState([]),2);w[0],w[1];var x=v(e.useState(!1),2),E=x[0],_=x[1],k=v(e.useState(null),2),C=k[0],N=k[1],D=v(e.useState(!0),2),S=D[0],A=D[1],T=v(e.useState(null),2),R=T[0],O=T[1],F=v(e.useState([]),2),M=F[0],L=F[1],P=function(){var e=Of();if(e)return e;try{return localStorage.getItem("cms_session_id")||void 0}catch(e){return}}();e.useEffect(function(){try{var e=localStorage.getItem("cms_models_order");e&&L(JSON.parse(e))}catch(e){}},[]);var z=e.useMemo(function(){if(0===M.length)return n.models;var e=new Map(n.models.map(function(e){return[e.id,e]})),t=M.map(function(t){return e.get(t)}).filter(function(e){return void 0!==e}),r=new Set(M),o=n.models.filter(function(e){return!r.has(e.id)});return[].concat(y(t),y(o))},[n.models,M]),B=e.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Rf();return e.map(function(e){if(!(null==e?void 0:e.table_name))return e;var n=Mf(e.table_name,t);return n===e.table_name?e:Object.assign(Object.assign({},e),{table_name:n})})}(z,P)},[z,P]),q=e.useMemo(function(){return dw({models:B},l)},[B,u]);e.useEffect(function(){if(o)return _(!0),N(null),A(!1),void("/login"===h&&b("/data"));var e=function(){var e=p(g().m(function e(){var t,n;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,$f()){e.n=1;break}return _(!1),b("/login"),A(!1),e.a(2);case 1:return e.p=1,e.n=2,Hf();case 2:if(e.v.success){e.n=3;break}throw new Error("token验证失败");case 3:if(!(t=Gf())){e.n=4;break}N(t),e.n=6;break;case 4:return e.n=5,Wf();case 5:(n=e.v).success&&n.data&&(N(n.data),localStorage.setItem("cms_user",JSON.stringify(n.data)));case 6:_(!0),"/login"===h&&b("/data"),e.n=8;break;case 7:e.p=7,e.v,Vf(),_(!1),N(null),b("/login");case 8:e.n=10;break;case 9:e.p=9,e.v,_(!1),N(null),b("/login");case 10:return e.p=10,A(!1),e.f(10);case 11:return e.a(2)}},e,null,[[1,7],[0,9,10,11]])}));return function(){return e.apply(this,arguments)}}();e()},[o]);var H=function(e,t){N(t),_(!0),b("/data"),cu.success("".concat(l("auth.welcome"),", ").concat(t.username,"!"))},W=function(){var e=p(g().m(function e(){var t,n;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=null===(t=null==C?void 0:C.username)||void 0===t?void 0:t.trim()){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,gw(n);case 2:cu.success(l("settings.usernameCopied")),e.n=4;break;case 3:e.p=3,e.v,cu.error(l("settings.copyFailed"));case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),V=function(e,t){var n,r=m(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===t)return o;if(o.routes){var a=V(o.routes,t);if(a)return a}}}catch(e){r.e(e)}finally{r.f()}return null};if(S)return e.createElement("div",{className:"flex min-h-screen items-center justify-center bg-background"},e.createElement("div",{className:"space-y-4"},e.createElement(nt,{className:"h-12 w-48"}),e.createElement(nt,{className:"h-4 w-64"})));if(!E)return e.createElement(ip,{onLoginSuccess:H});var $=q.filter(function(e){return"/login"!==e.path}),G=function(t){if(!t)return j;if(e.isValidElement(t)){var n=t.type;if(n&&"function"==typeof n){var r=n.name||"";if(r.includes("Home"))return U;if(r.includes("Table"))return ee;if(r.includes("Database"))return j;if(r.includes("File"))return I}}return j},K=$.flatMap(function(e){return e.routes&&e.routes.length>0?e.routes.map(function(e){return{title:e.name,icon:G(e.icon),path:e.path}}):[{title:e.name,icon:G(e.icon),path:e.path}]}),Z=function(e){return function(t){O(e),t.dataTransfer.effectAllowed="move"}},Y=function(e){return function(t){if(t.preventDefault(),t.dataTransfer.dropEffect="move",null!==R&&R!==e){var n=q.find(function(e){return"/data"===e.path});if(null==n?void 0:n.routes){var r=y(n.routes.map(function(e){var t=e.path.match(/\/data\/list-(\d+)/);return t?parseInt(t[1],10):null}).filter(function(e){return null!==e})),o=v(r.splice(R,1),1)[0];r.splice(e,0,o),function(e){try{localStorage.setItem("cms_models_order",JSON.stringify(e)),L(e)}catch(e){}}(r),O(e)}}}},J=function(){O(null)};return e.createElement("div",{className:"we0-cms-root"},e.createElement(Tp,{uploadHandler:s},e.createElement(Gi,null,e.createElement(Ki,{variant:"inset"},e.createElement(Ji,{className:"border-b border-sidebar-border p-4"},e.createElement("div",{className:"flex items-center gap-3"},e.createElement("div",{className:"flex items-center justify-center w-12 h-12 rounded-2xl bg-primary shadow-[0_4px_12px_-2px_rgba(93,112,82,0.2)] transition-all duration-300 hover:scale-105"},e.createElement(fw,{className:"w-5 h-5 text-primary-foreground"})),e.createElement("span",{className:"font-bold text-xl text-foreground"},i))),e.createElement(Qi,null,e.createElement(es,null,e.createElement(ts,null,l("settings.navigation"),e.createElement("span",{className:"ml-2 text-xs text-muted-foreground"},l("settings.dragToReorder"))),e.createElement(ns,null,e.createElement(rs,null,K.map(function(t,n){var r,o=t.path.startsWith("/data/list-");return e.createElement(os,{key:t.path,draggable:o,onDragStart:o?Z(n):void 0,onDragOver:o?Y(n):void 0,onDragEnd:o?J:void 0,className:o&&R===n?"opacity-50":"",style:{cursor:o?"move":"default"}},e.createElement(is,{onClick:function(){return b(t.path)},isActive:(r=t.path,h===r||h.startsWith(r+"/")),tooltip:t.title},e.createElement(t.icon,{className:"w-4 h-4"}),e.createElement("span",null,t.title)))}))))),e.createElement(Xi,{className:"border-t border-sidebar-border"},e.createElement(rs,null,e.createElement(os,null,e.createElement(Ac,null,e.createElement(Tc,{asChild:!0},e.createElement(is,{tooltip:l("settings.language")},e.createElement(hw,{className:"w-4 h-4"}),e.createElement("span",null,"zh-CN"===u?"中文":"English"))),e.createElement(Fc,{align:"end",className:"w-48"},e.createElement(Mc,{onClick:function(){return d("zh-CN")},className:"zh-CN"===u?"bg-accent":""},"简体中文"),e.createElement(Mc,{onClick:function(){return d("en-US")},className:"en-US"===u?"bg-accent":""},"English")))),!o&&C&&e.createElement(e.Fragment,null,e.createElement(os,null,e.createElement(is,{onClick:function(){W()},tooltip:l("settings.copyUsername"),title:l("settings.copyUsername")},e.createElement(pw,{className:"w-4 h-4"}),e.createElement("span",{className:"truncate"},C.username))),e.createElement(os,null,e.createElement(is,{onClick:function(){window.confirm(l("auth.logoutConfirm"))&&(Vf(),localStorage.removeItem("cms_token"),localStorage.removeItem("cms_user"),_(!1),N(null),b("/login"),cu.success(l("auth.logoutSuccess")))},tooltip:l("auth.logout")},e.createElement(mw,{className:"w-4 h-4"}),e.createElement("span",null,l("auth.logout")))))))),e.createElement(Yi,null,e.createElement("header",{className:"flex h-16 items-center gap-4 border-b border-border/50 bg-background/80 backdrop-blur-sm px-6 sticky top-0 z-10"},e.createElement(Zi,null),e.createElement("h1",{className:"text-xl font-bold text-foreground"},function(){if("/login"===h)return l("auth.login");var e=V(q,h);return(null==e?void 0:e.name)||l("data.dataManagement")}())),e.createElement("main",{className:"flex-1 min-w-0 p-8 bg-gradient-to-br from-background via-background to-muted/20"},function(){if(!o&&"/login"===h)return e.createElement(ip,{onLoginSuccess:H});if(o&&"/login"===h)return e.createElement(sp,null);var t=V(q,h);if(t){var n=t.component;return e.createElement(n,null)}return e.createElement(sp,null)}())))))}function yw(t){var n=t.defaultLocale,r=_(t,["defaultLocale"]);return e.createElement(tp,{defaultLocale:n},e.createElement(vw,Object.assign({},r)))}exports.CmsLayoutShadcn=yw,exports.I18nProvider=tp,exports.RichTextEditor=dv,exports.RichTextViewer=fv,exports.cmsRoutes=dw,exports.default=yw,exports.setSessionId=zf,exports.useLocale=op,exports.useT=rp,exports.useTranslation=np;
|
|
18
|
+
const{entries:Rm,setPrototypeOf:Om,isFrozen:Fm,getPrototypeOf:Mm,getOwnPropertyDescriptor:jm}=Object;let{freeze:Lm,seal:Im,create:Pm}=Object,{apply:zm,construct:Bm}="undefined"!=typeof Reflect&&Reflect;Lm||(Lm=function(e){return e}),Im||(Im=function(e){return e}),zm||(zm=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),o=2;o<n;o++)r[o-2]=arguments[o];return e.apply(t,r)}),Bm||(Bm=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const qm=nh(Array.prototype.forEach),Um=nh(Array.prototype.lastIndexOf),Hm=nh(Array.prototype.pop),Wm=nh(Array.prototype.push),Vm=nh(Array.prototype.splice),$m=nh(String.prototype.toLowerCase),Gm=nh(String.prototype.toString),Km=nh(String.prototype.match),Zm=nh(String.prototype.replace),Ym=nh(String.prototype.indexOf),Jm=nh(String.prototype.trim),Xm=nh(Object.prototype.hasOwnProperty),Qm=nh(RegExp.prototype.test),eh=(th=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return Bm(th,t)});var th;function nh(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return zm(e,t,r)}}function rh(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:$m;Om&&Om(e,null);let r=t.length;for(;r--;){let o=t[r];if("string"==typeof o){const e=n(o);e!==o&&(Fm(t)||(t[r]=e),o=e)}e[o]=!0}return e}function oh(e){for(let t=0;t<e.length;t++){Xm(e,t)||(e[t]=null)}return e}function ah(e){const t=Pm(null);for(const[n,r]of Rm(e)){Xm(e,n)&&(Array.isArray(r)?t[n]=oh(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=ah(r):t[n]=r)}return t}function ih(e,t){for(;null!==e;){const n=jm(e,t);if(n){if(n.get)return nh(n.get);if("function"==typeof n.value)return nh(n.value)}e=Mm(e)}return function(){return null}}const sh=Lm(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),lh=Lm(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ch=Lm(["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"]),uh=Lm(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),dh=Lm(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),fh=Lm(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ph=Lm(["#text"]),mh=Lm(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),hh=Lm(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),gh=Lm(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),bh=Lm(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),vh=Im(/\{\{[\w\W]*|[\w\W]*\}\}/gm),yh=Im(/<%[\w\W]*|[\w\W]*%>/gm),wh=Im(/\$\{[\w\W]*/gm),xh=Im(/^data-[\-\w.\u00B7-\uFFFF]+$/),Eh=Im(/^aria-[\-\w]+$/),_h=Im(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),kh=Im(/^(?:\w+script|data):/i),Ch=Im(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Nh=Im(/^html$/i),Dh=Im(/^[a-z][.\w]*(-[.\w]+)+$/i);var Sh=Object.freeze({__proto__:null,ARIA_ATTR:Eh,ATTR_WHITESPACE:Ch,CUSTOM_ELEMENT:Dh,DATA_ATTR:xh,DOCTYPE_NAME:Nh,ERB_EXPR:yh,IS_ALLOWED_URI:_h,IS_SCRIPT_OR_DATA:kh,MUSTACHE_EXPR:vh,TMPLIT_EXPR:wh});const Ah=1,Th=3,Rh=7,Oh=8,Fh=9,Mh=function(){return"undefined"==typeof window?null:window};var jh=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mh();const n=t=>e(t);if(n.version="3.3.3",n.removed=[],!t||!t.document||t.document.nodeType!==Fh||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const o=r,a=o.currentScript,{DocumentFragment:i,HTMLTemplateElement:s,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:f,DOMParser:p,trustedTypes:m}=t,h=c.prototype,g=ih(h,"cloneNode"),b=ih(h,"remove"),v=ih(h,"nextSibling"),y=ih(h,"childNodes"),w=ih(h,"parentNode");if("function"==typeof s){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let x,E="";const{implementation:_,createNodeIterator:k,createDocumentFragment:C,getElementsByTagName:N}=r,{importNode:D}=o;let S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof Rm&&"function"==typeof w&&_&&void 0!==_.createHTMLDocument;const{MUSTACHE_EXPR:A,ERB_EXPR:T,TMPLIT_EXPR:R,DATA_ATTR:O,ARIA_ATTR:F,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:j,CUSTOM_ELEMENT:L}=Sh;let{IS_ALLOWED_URI:I}=Sh,P=null;const z=rh({},[...sh,...lh,...ch,...dh,...ph]);let B=null;const q=rh({},[...mh,...hh,...gh,...bh]);let U=Object.seal(Pm(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),H=null,W=null;const V=Object.seal(Pm(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let $=!0,G=!0,K=!1,Z=!0,Y=!1,J=!0,X=!1,Q=!1,ee=!1,te=!1,ne=!1,re=!1,oe=!0,ae=!1,ie=!0,se=!1,le={},ce=null;const ue=rh({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let de=null;const fe=rh({},["audio","video","img","source","image","track"]);let pe=null;const me=rh({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),he="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",be="http://www.w3.org/1999/xhtml";let ve=be,ye=!1,we=null;const xe=rh({},[he,ge,be],Gm);let Ee=rh({},["mi","mo","mn","ms","mtext"]),_e=rh({},["annotation-xml"]);const ke=rh({},["title","style","font","a","script"]);let Ce=null;const Ne=["application/xhtml+xml","text/html"];let De=null,Se=null;const Ae=r.createElement("form"),Te=function(e){return e instanceof RegExp||e instanceof Function},Re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Se||Se!==e){if(e&&"object"==typeof e||(e={}),e=ah(e),Ce=-1===Ne.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,De="application/xhtml+xml"===Ce?Gm:$m,P=Xm(e,"ALLOWED_TAGS")?rh({},e.ALLOWED_TAGS,De):z,B=Xm(e,"ALLOWED_ATTR")?rh({},e.ALLOWED_ATTR,De):q,we=Xm(e,"ALLOWED_NAMESPACES")?rh({},e.ALLOWED_NAMESPACES,Gm):xe,pe=Xm(e,"ADD_URI_SAFE_ATTR")?rh(ah(me),e.ADD_URI_SAFE_ATTR,De):me,de=Xm(e,"ADD_DATA_URI_TAGS")?rh(ah(fe),e.ADD_DATA_URI_TAGS,De):fe,ce=Xm(e,"FORBID_CONTENTS")?rh({},e.FORBID_CONTENTS,De):ue,H=Xm(e,"FORBID_TAGS")?rh({},e.FORBID_TAGS,De):ah({}),W=Xm(e,"FORBID_ATTR")?rh({},e.FORBID_ATTR,De):ah({}),le=!!Xm(e,"USE_PROFILES")&&e.USE_PROFILES,$=!1!==e.ALLOW_ARIA_ATTR,G=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,Z=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Y=e.SAFE_FOR_TEMPLATES||!1,J=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,oe=!1!==e.SANITIZE_DOM,ae=e.SANITIZE_NAMED_PROPS||!1,ie=!1!==e.KEEP_CONTENT,se=e.IN_PLACE||!1,I=e.ALLOWED_URI_REGEXP||_h,ve=e.NAMESPACE||be,Ee=e.MATHML_TEXT_INTEGRATION_POINTS||Ee,_e=e.HTML_INTEGRATION_POINTS||_e,U=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Te(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Y&&(G=!1),ne&&(te=!0),le&&(P=rh({},ph),B=Pm(null),!0===le.html&&(rh(P,sh),rh(B,mh)),!0===le.svg&&(rh(P,lh),rh(B,hh),rh(B,bh)),!0===le.svgFilters&&(rh(P,ch),rh(B,hh),rh(B,bh)),!0===le.mathMl&&(rh(P,dh),rh(B,gh),rh(B,bh))),Xm(e,"ADD_TAGS")||(V.tagCheck=null),Xm(e,"ADD_ATTR")||(V.attributeCheck=null),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?V.tagCheck=e.ADD_TAGS:(P===z&&(P=ah(P)),rh(P,e.ADD_TAGS,De))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?V.attributeCheck=e.ADD_ATTR:(B===q&&(B=ah(B)),rh(B,e.ADD_ATTR,De))),e.ADD_URI_SAFE_ATTR&&rh(pe,e.ADD_URI_SAFE_ATTR,De),e.FORBID_CONTENTS&&(ce===ue&&(ce=ah(ce)),rh(ce,e.FORBID_CONTENTS,De)),e.ADD_FORBID_CONTENTS&&(ce===ue&&(ce=ah(ce)),rh(ce,e.ADD_FORBID_CONTENTS,De)),ie&&(P["#text"]=!0),X&&rh(P,["html","head","body"]),P.table&&(rh(P,["tbody"]),delete H.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw eh('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw eh('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');x=e.TRUSTED_TYPES_POLICY,E=x.createHTML("")}else void 0===x&&(x=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const o="dompurify"+(n?"#"+n:"");try{return e.createPolicy(o,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return null}}(m,a)),null!==x&&"string"==typeof E&&(E=x.createHTML(""));Lm&&Lm(e),Se=e}},Oe=rh({},[...lh,...ch,...uh]),Fe=rh({},[...dh,...fh]),Me=function(e){Wm(n.removed,{element:e});try{w(e).removeChild(e)}catch(t){b(e)}},je=function(e,t){try{Wm(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Wm(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Me(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Le=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=Km(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ce&&ve===be&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const o=x?x.createHTML(e):e;if(ve===be)try{t=(new p).parseFromString(o,Ce)}catch(e){}if(!t||!t.documentElement){t=_.createDocument(ve,"template",null);try{t.documentElement.innerHTML=ye?E:o}catch(e){}}const a=t.body||t.documentElement;return e&&n&&a.insertBefore(r.createTextNode(n),a.childNodes[0]||null),ve===be?N.call(t,X?"html":"body")[0]:X?t.documentElement:a},Ie=function(e){return k.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Pe=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},ze=function(e){return"function"==typeof l&&e instanceof l};function Be(e,t,r){qm(e,e=>{e.call(n,t,r,Se)})}const qe=function(e){let t=null;if(Be(S.beforeSanitizeElements,e,null),Pe(e))return Me(e),!0;const r=De(e.nodeName);if(Be(S.uponSanitizeElement,e,{tagName:r,allowedTags:P}),J&&e.hasChildNodes()&&!ze(e.firstElementChild)&&Qm(/<[/\w!]/g,e.innerHTML)&&Qm(/<[/\w!]/g,e.textContent))return Me(e),!0;if(e.nodeType===Rh)return Me(e),!0;if(J&&e.nodeType===Oh&&Qm(/<[/\w]/g,e.data))return Me(e),!0;if(!(V.tagCheck instanceof Function&&V.tagCheck(r))&&(!P[r]||H[r])){if(!H[r]&&He(r)){if(U.tagNameCheck instanceof RegExp&&Qm(U.tagNameCheck,r))return!1;if(U.tagNameCheck instanceof Function&&U.tagNameCheck(r))return!1}if(ie&&!ce[r]){const t=w(e)||e.parentNode,n=y(e)||e.childNodes;if(n&&t){for(let r=n.length-1;r>=0;--r){const o=g(n[r],!0);o.__removalCount=(e.__removalCount||0)+1,t.insertBefore(o,v(e))}}}return Me(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const n=$m(e.tagName),r=$m(t.tagName);return!!we[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===be?"svg"===n:t.namespaceURI===he?"svg"===n&&("annotation-xml"===r||Ee[r]):Boolean(Oe[n]):e.namespaceURI===he?t.namespaceURI===be?"math"===n:t.namespaceURI===ge?"math"===n&&_e[r]:Boolean(Fe[n]):e.namespaceURI===be?!(t.namespaceURI===ge&&!_e[r])&&!(t.namespaceURI===he&&!Ee[r])&&!Fe[n]&&(ke[n]||!Oe[n]):!("application/xhtml+xml"!==Ce||!we[e.namespaceURI]))}(e)?(Me(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!Qm(/<\/no(script|embed|frames)/i,e.innerHTML)?(Y&&e.nodeType===Th&&(t=e.textContent,qm([A,T,R],e=>{t=Zm(t,e," ")}),e.textContent!==t&&(Wm(n.removed,{element:e.cloneNode()}),e.textContent=t)),Be(S.afterSanitizeElements,e,null),!1):(Me(e),!0)},Ue=function(e,t,n){if(W[t])return!1;if(oe&&("id"===t||"name"===t)&&(n in r||n in Ae))return!1;if(G&&!W[t]&&Qm(O,t));else if($&&Qm(F,t));else if(V.attributeCheck instanceof Function&&V.attributeCheck(t,e));else if(!B[t]||W[t]){if(!(He(e)&&(U.tagNameCheck instanceof RegExp&&Qm(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&Qm(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t,e))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&Qm(U.tagNameCheck,n)||U.tagNameCheck instanceof Function&&U.tagNameCheck(n))))return!1}else if(pe[t]);else if(Qm(I,Zm(n,j,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ym(n,"data:")||!de[e]){if(K&&!Qm(M,Zm(n,j,"")));else if(n)return!1}else;return!0},He=function(e){return"annotation-xml"!==e&&Km(e,L)},We=function(e){Be(S.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Pe(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:B,forceKeepAttr:void 0};let o=t.length;for(;o--;){const a=t[o],{name:i,namespaceURI:s,value:l}=a,c=De(i),u=l;let d="value"===i?u:Jm(u);if(r.attrName=c,r.attrValue=d,r.keepAttr=!0,r.forceKeepAttr=void 0,Be(S.uponSanitizeAttribute,e,r),d=r.attrValue,!ae||"id"!==c&&"name"!==c||(je(i,e),d="user-content-"+d),J&&Qm(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,d)){je(i,e);continue}if("attributename"===c&&Km(d,"href")){je(i,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){je(i,e);continue}if(!Z&&Qm(/\/>/i,d)){je(i,e);continue}Y&&qm([A,T,R],e=>{d=Zm(d,e," ")});const f=De(e.nodeName);if(Ue(f,c,d)){if(x&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(s);else switch(m.getAttributeType(f,c)){case"TrustedHTML":d=x.createHTML(d);break;case"TrustedScriptURL":d=x.createScriptURL(d)}if(d!==u)try{s?e.setAttributeNS(s,i,d):e.setAttribute(i,d),Pe(e)?Me(e):Hm(n.removed)}catch(t){je(i,e)}}else je(i,e)}Be(S.afterSanitizeAttributes,e,null)},Ve=function e(t){let n=null;const r=Ie(t);for(Be(S.beforeSanitizeShadowDOM,t,null);n=r.nextNode();)Be(S.uponSanitizeShadowNode,n,null),qe(n),We(n),n.content instanceof i&&e(n.content);Be(S.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,a=null,s=null,c=null;if(ye=!e,ye&&(e="\x3c!--\x3e"),"string"!=typeof e&&!ze(e)){if("function"!=typeof e.toString)throw eh("toString is not a function");if("string"!=typeof(e=e.toString()))throw eh("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Q||Re(t),n.removed=[],"string"==typeof e&&(se=!1),se){if(e.nodeName){const t=De(e.nodeName);if(!P[t]||H[t])throw eh("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)r=Le("\x3c!----\x3e"),a=r.ownerDocument.importNode(e,!0),a.nodeType===Ah&&"BODY"===a.nodeName||"HTML"===a.nodeName?r=a:r.appendChild(a);else{if(!te&&!Y&&!X&&-1===e.indexOf("<"))return x&&re?x.createHTML(e):e;if(r=Le(e),!r)return te?null:re?E:""}r&&ee&&Me(r.firstChild);const u=Ie(se?e:r);for(;s=u.nextNode();)qe(s),We(s),s.content instanceof i&&Ve(s.content);if(se)return e;if(te){if(ne)for(c=C.call(r.ownerDocument);r.firstChild;)c.appendChild(r.firstChild);else c=r;return(B.shadowroot||B.shadowrootmode)&&(c=D.call(o,c,!0)),c}let d=X?r.outerHTML:r.innerHTML;return X&&P["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&Qm(Nh,r.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+d),Y&&qm([A,T,R],e=>{d=Zm(d,e," ")}),x&&re?x.createHTML(d):d},n.setConfig=function(){Re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Q=!0},n.clearConfig=function(){Se=null,Q=!1},n.isValidAttribute=function(e,t,n){Se||Re({});const r=De(e),o=De(t);return Ue(r,o,n)},n.addHook=function(e,t){"function"==typeof t&&Wm(S[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=Um(S[e],t);return-1===n?void 0:Vm(S[e],n,1)[0]}return Hm(S[e])},n.removeHooks=function(e){S[e]=[]},n.removeAllHooks=function(){S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}(),Lh={html:!1,linkify:!0,breaks:!0};function Ih(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.filter(Boolean).join(" ")}function Ph(e,t){if(!e)return"";try{var n=function(e){return new Tm(Object.assign(Object.assign({},Lh),e||{}))}(t).render(e);return n?jh.sanitize(n):""}catch(e){return""}}function zh(t){var n=t.value,r=t.onChange,o=t.disabled,a=void 0!==o&&o,i=t.placeholder,s=t.defaultMode,l=void 0===s?"split":s,c=t.showToolbar,u=void 0===c||c,d=t.markdownOptions,f=t.previewClassName,p=Cu(),m=e.useRef(null),h=v(e.useState(l),2),g=h[0],b=h[1],y=i||p("data.markdownPlaceholder"),w=e.useCallback(function(){var e=m.current;return!e||a?null:(e.focus(),e)},[a]),x=e.useCallback(function(e){var t,o,a=w();if(a){var i=null!==(t=a.selectionStart)&&void 0!==t?t:n.length,s=null!==(o=a.selectionEnd)&&void 0!==o?o:n.length,l=e(n.slice(i,s)),c=l.text,u=l.cursorOffset,d="".concat(n.slice(0,i)).concat(c).concat(n.slice(s));r(d),window.requestAnimationFrame(function(){var e=m.current;if(e){var t="number"==typeof u?i+u:i+c.length;e.focus(),e.setSelectionRange(t,t)}})}},[w,r,n]),E=e.useCallback(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"text";x(function(r){var o=r||n,a="".concat(e).concat(o).concat(t);return{text:a,cursorOffset:r?a.length:e.length+n.length}})},[x]),_=e.useCallback(function(e,t){x(function(n){return{text:(n||t).split("\n").map(function(t){return"".concat(e).concat(t)}).join("\n")}})},[x]),k=e.useCallback(function(e,t){x(function(){return{text:e,cursorOffset:t}})},[x]),C=a&&"write"===g?"preview":g;return e.createElement("div",{className:"rounded-md border bg-background"},e.createElement("div",{className:"flex flex-wrap items-center justify-between gap-2 border-b p-2"},e.createElement("div",{className:"flex flex-wrap gap-1"},e.createElement("button",{type:"button",className:Ih("rounded border px-2 py-1 text-sm font-medium","write"===C&&"bg-muted"),disabled:a,onClick:function(){return b("write")}},p("data.markdownWrite")),e.createElement("button",{type:"button",className:Ih("rounded border px-2 py-1 text-sm font-medium","preview"===C&&"bg-muted"),onClick:function(){return b("preview")}},p("data.markdownPreview")),e.createElement("button",{type:"button",className:Ih("rounded border px-2 py-1 text-sm font-medium","split"===C&&"bg-muted"),disabled:a,onClick:function(){return b("split")}},p("data.markdownSplit"))),u&&e.createElement("div",{className:"flex flex-wrap gap-1"},e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm font-semibold disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),E("**")}},"B"),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm italic disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),E("*")}},"I"),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),_("- ","list item")}},"UL"),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),_("1. ","list item")}},"OL"),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),_("> ","quote")}},p("data.markdownQuote")),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),E("[","](https://example.com)","link text")}},p("data.markdownLink")),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),k("```\ncode\n```",8)}},p("data.markdownCode")),e.createElement("button",{type:"button",className:"rounded border px-2 py-1 text-sm disabled:cursor-not-allowed disabled:opacity-50",disabled:a||"preview"===C,onMouseDown:function(e){e.preventDefault(),r(""),w()}},p("data.markdownClear")))),e.createElement("div",{className:Ih("gap-0","split"===C&&"grid md:grid-cols-2")},"preview"!==C&&e.createElement("textarea",{ref:m,value:n||"",disabled:a,onChange:function(e){return r(e.target.value)},className:"min-h-[220px] w-full resize-y border-0 bg-transparent px-3 py-2 font-mono text-sm leading-6 outline-none",placeholder:y}),"write"!==C&&e.createElement("div",{className:Ih("min-h-[220px] border-t px-3 py-2 md:border-t-0","split"===C&&"md:border-l")},e.createElement(Bh,{value:n||"",markdownOptions:d,className:f}))))}function Bh(t){var n=t.value,r=t.markdownOptions,o=t.className,a=t.emptyText,i=Cu();if(!n)return e.createElement(e.Fragment,null,a||e.createElement("span",{className:"text-muted-foreground"},i("data.markdownEmpty")));var s=Ph(n,r);return s?e.createElement("div",{className:Ih("max-w-none break-words text-sm leading-7 text-foreground","[&_h1]:mb-4 [&_h1]:text-3xl [&_h1]:font-bold [&_h1]:leading-tight","[&_h2]:mb-3 [&_h2]:text-2xl [&_h2]:font-semibold [&_h2]:leading-tight","[&_h3]:mb-3 [&_h3]:text-xl [&_h3]:font-semibold","[&_h4]:mb-2 [&_h4]:text-lg [&_h4]:font-semibold","[&_h5]:mb-2 [&_h5]:text-base [&_h5]:font-semibold","[&_h6]:mb-2 [&_h6]:text-sm [&_h6]:font-semibold","[&_p]:my-3 [&_p]:leading-7","[&_a]:text-primary [&_a]:underline [&_a]:underline-offset-2","[&_strong]:font-semibold","[&_em]:italic","[&_blockquote]:my-4 [&_blockquote]:border-l-4 [&_blockquote]:border-border [&_blockquote]:pl-4 [&_blockquote]:text-muted-foreground","[&_ul]:my-3 [&_ul]:list-disc [&_ul]:pl-6","[&_ol]:my-3 [&_ol]:list-decimal [&_ol]:pl-6","[&_li]:my-1","[&_hr]:my-4 [&_hr]:border-border","[&_code]:rounded [&_code]:bg-muted [&_code]:px-1.5 [&_code]:py-0.5 [&_code]:font-mono [&_code]:text-[0.9em]","[&_pre]:my-4 [&_pre]:overflow-x-auto [&_pre]:rounded-md [&_pre]:bg-muted [&_pre]:p-3","[&_pre_code]:bg-transparent [&_pre_code]:p-0","[&_table]:my-4 [&_table]:w-full [&_table]:border-collapse","[&_th]:border [&_th]:border-border [&_th]:bg-muted [&_th]:px-3 [&_th]:py-2 [&_th]:text-left [&_th]:font-semibold","[&_td]:border [&_td]:border-border [&_td]:px-3 [&_td]:py-2",o),dangerouslySetInnerHTML:{__html:s}}):e.createElement("span",{className:"text-muted-foreground"},n)}function qh(e){return Array.isArray(null==e?void 0:e.enum)&&e.enum.length>0}function Uh(e){return null==e?"":String(e)}function Hh(e,t){var n,r=Uh(t);return r?(null===(n=e.enumLabels)||void 0===n?void 0:n[r])||r:""}function Wh(e,t){var n=(e.enum||[]).map(function(t){return{value:t,valueKey:Uh(t),label:Hh(e,t)}}),r=Uh(t);return r?n.some(function(e){return e.valueKey===r})?n:[].concat(y(n),[{value:"number"==typeof t||"string"==typeof t?t:r,valueKey:r,label:r}]):n}var Vh=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("div",{className:"relative w-full overflow-x-auto"},c.createElement("table",Object.assign({ref:t,className:nt("w-full min-w-max caption-bottom text-sm",n)},r)))});Vh.displayName="Table";var $h=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("thead",Object.assign({ref:t,className:nt("[&_tr]:border-b",n)},r))});$h.displayName="TableHeader";var Gh=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("tbody",Object.assign({ref:t,className:nt("[&_tr:last-child]:border-0",n)},r))});Gh.displayName="TableBody";var Kh=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("tfoot",Object.assign({ref:t,className:nt("border-t bg-muted/50 font-medium [&>tr]:last:border-b-0",n)},r))});Kh.displayName="TableFooter";var Zh=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("tr",Object.assign({ref:t,className:nt("border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted",n)},r))});Zh.displayName="TableRow";var Yh=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("th",Object.assign({ref:t,className:nt("h-12 px-4 text-left align-middle font-medium text-muted-foreground whitespace-nowrap [&:has([role=checkbox])]:pr-0",n)},r))});Yh.displayName="TableHead";var Jh=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("td",Object.assign({ref:t,className:nt("p-4 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0",n)},r))});Jh.displayName="TableCell";var Xh=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement("caption",Object.assign({ref:t,className:nt("mt-4 text-sm text-muted-foreground",n)},r))});Xh.displayName="TableCaption";var Qh=bt("inline-flex items-center rounded-full border px-3 py-1 text-xs font-bold transition-all duration-300",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground shadow-[0_2px_8px_-1px_rgba(93,112,82,0.15)] hover:scale-105",secondary:"border-transparent bg-secondary text-secondary-foreground shadow-[0_2px_8px_-1px_rgba(193,140,93,0.15)] hover:scale-105",destructive:"border-transparent bg-destructive text-destructive-foreground shadow-[0_2px_8px_-1px_rgba(168,84,72,0.15)] hover:scale-105",outline:"text-foreground border-border"}},defaultVariants:{variant:"default"}});function eg(e){var t=e.className,n=e.variant,r=_(e,["className","variant"]);return c.createElement("div",Object.assign({className:nt(Qh({variant:n}),t)},r))}function tg(e,[t,n]){return Math.min(n,Math.max(t,e))}function ng(e){const n=rg(e),r=c.forwardRef((e,r)=>{const{children:o,...a}=e,i=c.Children.toArray(o),s=i.find(ag);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}function rg(e){const t=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?at(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var og=Symbol("radix.slottable");function ag(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===og}var ig=c.createContext(void 0);function sg(e){const t=c.useContext(ig);return e||t||"ltr"}var lg=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"});c.forwardRef((e,n)=>t.jsx(zt.span,{...e,ref:n,style:{...lg,...e.style}})).displayName="VisuallyHidden";var cg=[" ","Enter","ArrowUp","ArrowDown"],ug=[" ","Enter"],dg="Select",[fg,pg,mg]=function(n){const r=n+"CollectionProvider",[o,a]=St(r),[i,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,a=e.useRef(null),s=e.useRef(new Map).current;return t.jsx(i,{scope:r,itemMap:s,collectionRef:a,children:o})};l.displayName=r;const c=n+"CollectionSlot",u=ng(c),d=e.forwardRef((e,n)=>{const{scope:r,children:o}=e,a=it(n,s(c,r).collectionRef);return t.jsx(u,{ref:a,children:o})});d.displayName=c;const f=n+"CollectionItemSlot",p="data-radix-collection-item",m=ng(f),h=e.forwardRef((n,r)=>{const{scope:o,children:a,...i}=n,l=e.useRef(null),c=it(r,l),u=s(f,o);return e.useEffect(()=>(u.itemMap.set(l,{ref:l,...i}),()=>{u.itemMap.delete(l)})),t.jsx(m,{[p]:"",ref:c,children:a})});return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(t){const r=s(n+"CollectionConsumer",t);return e.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},a]}(dg),[hg,gg]=St(dg,[mg,$a]),bg=$a(),[vg,yg]=hg(dg),[wg,xg]=hg(dg),Eg=e=>{const{__scopeSelect:n,children:r,open:o,defaultOpen:a,onOpenChange:i,value:s,defaultValue:l,onValueChange:u,dir:d,name:f,autoComplete:p,disabled:m,required:h,form:g}=e,b=bg(n),[v,y]=c.useState(null),[w,x]=c.useState(null),[E,_]=c.useState(!1),k=sg(d),[C,N]=jt({prop:o,defaultProp:a??!1,onChange:i,caller:dg}),[D,S]=jt({prop:s,defaultProp:l,onChange:u,caller:dg}),A=c.useRef(null),T=!v||(g||!!v.closest("form")),[R,O]=c.useState(new Set),F=Array.from(R).map(e=>e.props.value).join(";");return t.jsx(li,{...b,children:t.jsxs(vg,{required:h,scope:n,trigger:v,onTriggerChange:y,valueNode:w,onValueNodeChange:x,valueNodeHasChildren:E,onValueNodeHasChildrenChange:_,contentId:Ft(),value:D,onValueChange:S,open:C,onOpenChange:N,dir:k,triggerPointerDownPosRef:A,disabled:m,children:[t.jsx(fg.Provider,{scope:n,children:t.jsx(wg,{scope:e.__scopeSelect,onNativeOptionAdd:c.useCallback(e=>{O(t=>new Set(t).add(e))},[]),onNativeOptionRemove:c.useCallback(e=>{O(t=>{const n=new Set(t);return n.delete(e),n})},[]),children:r})}),T?t.jsxs(lb,{"aria-hidden":!0,required:h,tabIndex:-1,name:f,autoComplete:p,value:D,onChange:e=>S(e.target.value),disabled:m,form:g,children:[void 0===D?t.jsx("option",{value:""}):null,Array.from(R)]},F):null]})})};Eg.displayName=dg;var _g="SelectTrigger",kg=c.forwardRef((e,n)=>{const{__scopeSelect:r,disabled:o=!1,...a}=e,i=bg(r),s=yg(_g,r),l=s.disabled||o,u=it(n,s.onTriggerChange),d=pg(r),f=c.useRef("touch"),[p,m,h]=ub(e=>{const t=d().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),r=db(t,e,n);void 0!==r&&s.onValueChange(r.value)}),g=e=>{l||(s.onOpenChange(!0),h()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return t.jsx(ci,{asChild:!0,...i,children:t.jsx(zt.button,{type:"button",role:"combobox","aria-controls":s.contentId,"aria-expanded":s.open,"aria-required":s.required,"aria-autocomplete":"none",dir:s.dir,"data-state":s.open?"open":"closed",disabled:l,"data-disabled":l?"":void 0,"data-placeholder":cb(s.value)?"":void 0,...a,ref:u,onClick:Dt(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==f.current&&g(e)}),onPointerDown:Dt(a.onPointerDown,e=>{f.current=e.pointerType;const t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(g(e),e.preventDefault())}),onKeyDown:Dt(a.onKeyDown,e=>{const t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||m(e.key),t&&" "===e.key||cg.includes(e.key)&&(g(),e.preventDefault())})})})});kg.displayName=_g;var Cg="SelectValue",Ng=c.forwardRef((e,n)=>{const{__scopeSelect:r,className:o,style:a,children:i,placeholder:s="",...l}=e,c=yg(Cg,r),{onValueNodeHasChildrenChange:u}=c,d=void 0!==i,f=it(n,c.onValueNodeChange);return Tt(()=>{u(d)},[u,d]),t.jsx(zt.span,{...l,ref:f,style:{pointerEvents:"none"},children:cb(c.value)?t.jsx(t.Fragment,{children:s}):i})});Ng.displayName=Cg;var Dg=c.forwardRef((e,n)=>{const{__scopeSelect:r,children:o,...a}=e;return t.jsx(zt.span,{"aria-hidden":!0,...a,ref:n,children:o||"▼"})});Dg.displayName="SelectIcon";var Sg=e=>t.jsx(sn,{asChild:!0,...e});Sg.displayName="SelectPortal";var Ag="SelectContent",Tg=c.forwardRef((e,n)=>{const r=yg(Ag,e.__scopeSelect),[o,a]=c.useState();if(Tt(()=>{a(new DocumentFragment)},[]),!r.open){const n=o;return n?u.createPortal(t.jsx(Og,{scope:e.__scopeSelect,children:t.jsx(fg.Slot,{scope:e.__scopeSelect,children:t.jsx("div",{children:e.children})})}),n):null}return t.jsx(jg,{...e,ref:n})});Tg.displayName=Ag;var Rg=10,[Og,Fg]=hg(Ag),Mg=ng("SelectContent.RemoveScroll"),jg=c.forwardRef((e,n)=>{const{__scopeSelect:r,position:o="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:i,onPointerDownOutside:s,side:l,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:b,avoidCollisions:v,...y}=e,w=yg(Ag,r),[x,E]=c.useState(null),[_,k]=c.useState(null),C=it(n,e=>E(e)),[N,D]=c.useState(null),[S,A]=c.useState(null),T=pg(r),[R,O]=c.useState(!1),F=c.useRef(!1);c.useEffect(()=>{if(x)return ar(x)},[x]),dn();const M=c.useCallback(e=>{const[t,...n]=T().map(e=>e.ref.current),[r]=n.slice(-1),o=document.activeElement;for(const n of e){if(n===o)return;if(n?.scrollIntoView({block:"nearest"}),n===t&&_&&(_.scrollTop=0),n===r&&_&&(_.scrollTop=_.scrollHeight),n?.focus(),document.activeElement!==o)return}},[T,_]),j=c.useCallback(()=>M([N,x]),[M,N,x]);c.useEffect(()=>{R&&j()},[R,j]);const{onOpenChange:L,triggerPointerDownPosRef:I}=w;c.useEffect(()=>{if(x){let e={x:0,y:0};const t=t=>{e={x:Math.abs(Math.round(t.pageX)-(I.current?.x??0)),y:Math.abs(Math.round(t.pageY)-(I.current?.y??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():x.contains(n.target)||L(!1),document.removeEventListener("pointermove",t),I.current=null};return null!==I.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[x,L,I]),c.useEffect(()=>{const e=()=>L(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[L]);const[P,z]=ub(e=>{const t=T().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),r=db(t,e,n);r&&setTimeout(()=>r.ref.current.focus())}),B=c.useCallback((e,t,n)=>{const r=!F.current&&!n;(void 0!==w.value&&w.value===t||r)&&(D(e),r&&(F.current=!0))},[w.value]),q=c.useCallback(()=>x?.focus(),[x]),U=c.useCallback((e,t,n)=>{const r=!F.current&&!n;(void 0!==w.value&&w.value===t||r)&&A(e)},[w.value]),H="popper"===o?Ig:Lg,W=H===Ig?{side:l,sideOffset:u,align:d,alignOffset:f,arrowPadding:p,collisionBoundary:m,collisionPadding:h,sticky:g,hideWhenDetached:b,avoidCollisions:v}:{};return t.jsx(Og,{scope:r,content:x,viewport:_,onViewportChange:k,itemRefCallback:B,selectedItem:N,onItemLeave:q,itemTextRefCallback:U,focusSelectedItem:j,selectedItemText:S,position:o,isPositioned:R,searchRef:P,children:t.jsx(Xn,{as:Mg,allowPinchZoom:!0,children:t.jsx(Qt,{asChild:!0,trapped:w.open,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:Dt(a,e=>{w.trigger?.focus({preventScroll:!0}),e.preventDefault()}),children:t.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:i,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>w.onOpenChange(!1),children:t.jsx(H,{role:"listbox",id:w.contentId,"data-state":w.open?"open":"closed",dir:w.dir,onContextMenu:e=>e.preventDefault(),...y,...W,onPlaced:()=>O(!0),ref:C,style:{display:"flex",flexDirection:"column",outline:"none",...y.style},onKeyDown:Dt(y.onKeyDown,e=>{const t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||z(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=T().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){const n=e.target,r=t.indexOf(n);t=t.slice(r+1)}setTimeout(()=>M(t)),e.preventDefault()}})})})})})})});jg.displayName="SelectContentImpl";var Lg=c.forwardRef((e,n)=>{const{__scopeSelect:r,onPlaced:o,...a}=e,i=yg(Ag,r),s=Fg(Ag,r),[l,u]=c.useState(null),[d,f]=c.useState(null),p=it(n,e=>f(e)),m=pg(r),h=c.useRef(!1),g=c.useRef(!0),{viewport:b,selectedItem:v,selectedItemText:y,focusSelectedItem:w}=s,x=c.useCallback(()=>{if(i.trigger&&i.valueNode&&l&&d&&b&&v&&y){const e=i.trigger.getBoundingClientRect(),t=d.getBoundingClientRect(),n=i.valueNode.getBoundingClientRect(),r=y.getBoundingClientRect();if("rtl"!==i.dir){const o=r.left-t.left,a=n.left-o,i=e.left-a,s=e.width+i,c=Math.max(s,t.width),u=window.innerWidth-Rg,d=tg(a,[Rg,Math.max(Rg,u-c)]);l.style.minWidth=s+"px",l.style.left=d+"px"}else{const o=t.right-r.right,a=window.innerWidth-n.right-o,i=window.innerWidth-e.right-a,s=e.width+i,c=Math.max(s,t.width),u=window.innerWidth-Rg,d=tg(a,[Rg,Math.max(Rg,u-c)]);l.style.minWidth=s+"px",l.style.right=d+"px"}const a=m(),s=window.innerHeight-2*Rg,c=b.scrollHeight,u=window.getComputedStyle(d),f=parseInt(u.borderTopWidth,10),p=parseInt(u.paddingTop,10),g=parseInt(u.borderBottomWidth,10),w=f+p+c+parseInt(u.paddingBottom,10)+g,x=Math.min(5*v.offsetHeight,w),E=window.getComputedStyle(b),_=parseInt(E.paddingTop,10),k=parseInt(E.paddingBottom,10),C=e.top+e.height/2-Rg,N=s-C,D=v.offsetHeight/2,S=f+p+(v.offsetTop+D),A=w-S;if(S<=C){const e=a.length>0&&v===a[a.length-1].ref.current;l.style.bottom="0px";const t=d.clientHeight-b.offsetTop-b.offsetHeight,n=S+Math.max(N,D+(e?k:0)+t+g);l.style.height=n+"px"}else{const e=a.length>0&&v===a[0].ref.current;l.style.top="0px";const t=Math.max(C,f+b.offsetTop+(e?_:0)+D)+A;l.style.height=t+"px",b.scrollTop=S-C+b.offsetTop}l.style.margin=`${Rg}px 0`,l.style.minHeight=x+"px",l.style.maxHeight=s+"px",o?.(),requestAnimationFrame(()=>h.current=!0)}},[m,i.trigger,i.valueNode,l,d,b,v,y,i.dir,o]);Tt(()=>x(),[x]);const[E,_]=c.useState();Tt(()=>{d&&_(window.getComputedStyle(d).zIndex)},[d]);const k=c.useCallback(e=>{e&&!0===g.current&&(x(),w?.(),g.current=!1)},[x,w]);return t.jsx(Pg,{scope:r,contentWrapper:l,shouldExpandOnScrollRef:h,onScrollButtonChange:k,children:t.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:E},children:t.jsx(zt.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Lg.displayName="SelectItemAlignedPosition";var Ig=c.forwardRef((e,n)=>{const{__scopeSelect:r,align:o="start",collisionPadding:a=Rg,...i}=e,s=bg(r);return t.jsx(ui,{...s,...i,ref:n,align:o,collisionPadding:a,style:{boxSizing:"border-box",...i.style,"--radix-select-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-select-content-available-width":"var(--radix-popper-available-width)","--radix-select-content-available-height":"var(--radix-popper-available-height)","--radix-select-trigger-width":"var(--radix-popper-anchor-width)","--radix-select-trigger-height":"var(--radix-popper-anchor-height)"}})});Ig.displayName="SelectPopperPosition";var[Pg,zg]=hg(Ag,{}),Bg="SelectViewport",qg=c.forwardRef((e,n)=>{const{__scopeSelect:r,nonce:o,...a}=e,i=Fg(Bg,r),s=zg(Bg,r),l=it(n,i.onViewportChange),u=c.useRef(0);return t.jsxs(t.Fragment,{children:[t.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-select-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-select-viewport]::-webkit-scrollbar{display:none}"},nonce:o}),t.jsx(fg.Slot,{scope:r,children:t.jsx(zt.div,{"data-radix-select-viewport":"",role:"presentation",...a,ref:l,style:{position:"relative",flex:1,overflow:"hidden auto",...a.style},onScroll:Dt(a.onScroll,e=>{const t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:r}=s;if(r?.current&&n){const e=Math.abs(u.current-t.scrollTop);if(e>0){const r=window.innerHeight-2*Rg,o=parseFloat(n.style.minHeight),a=parseFloat(n.style.height),i=Math.max(o,a);if(i<r){const o=i+e,a=Math.min(r,o),s=o-a;n.style.height=a+"px","0px"===n.style.bottom&&(t.scrollTop=s>0?s:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})});qg.displayName=Bg;var Ug="SelectGroup",[Hg,Wg]=hg(Ug);c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,a=Ft();return t.jsx(Hg,{scope:r,id:a,children:t.jsx(zt.div,{role:"group","aria-labelledby":a,...o,ref:n})})}).displayName=Ug;var Vg="SelectLabel",$g=c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,a=Wg(Vg,r);return t.jsx(zt.div,{id:a.id,...o,ref:n})});$g.displayName=Vg;var Gg="SelectItem",[Kg,Zg]=hg(Gg),Yg=c.forwardRef((e,n)=>{const{__scopeSelect:r,value:o,disabled:a=!1,textValue:i,...s}=e,l=yg(Gg,r),u=Fg(Gg,r),d=l.value===o,[f,p]=c.useState(i??""),[m,h]=c.useState(!1),g=it(n,e=>u.itemRefCallback?.(e,o,a)),b=Ft(),v=c.useRef("touch"),y=()=>{a||(l.onValueChange(o),l.onOpenChange(!1))};if(""===o)throw new Error("A <Select.Item /> must have a value prop that is not an empty string. This is because the Select value can be set to an empty string to clear the selection and show the placeholder.");return t.jsx(Kg,{scope:r,value:o,disabled:a,textId:b,isSelected:d,onItemTextChange:c.useCallback(e=>{p(t=>t||(e?.textContent??"").trim())},[]),children:t.jsx(fg.ItemSlot,{scope:r,value:o,disabled:a,textValue:f,children:t.jsx(zt.div,{role:"option","aria-labelledby":b,"data-highlighted":m?"":void 0,"aria-selected":d&&m,"data-state":d?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:g,onFocus:Dt(s.onFocus,()=>h(!0)),onBlur:Dt(s.onBlur,()=>h(!1)),onClick:Dt(s.onClick,()=>{"mouse"!==v.current&&y()}),onPointerUp:Dt(s.onPointerUp,()=>{"mouse"===v.current&&y()}),onPointerDown:Dt(s.onPointerDown,e=>{v.current=e.pointerType}),onPointerMove:Dt(s.onPointerMove,e=>{v.current=e.pointerType,a?u.onItemLeave?.():"mouse"===v.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:Dt(s.onPointerLeave,e=>{e.currentTarget===document.activeElement&&u.onItemLeave?.()}),onKeyDown:Dt(s.onKeyDown,e=>{""!==u.searchRef?.current&&" "===e.key||(ug.includes(e.key)&&y()," "===e.key&&e.preventDefault())})})})})});Yg.displayName=Gg;var Jg="SelectItemText",Xg=c.forwardRef((e,n)=>{const{__scopeSelect:r,className:o,style:a,...i}=e,s=yg(Jg,r),l=Fg(Jg,r),d=Zg(Jg,r),f=xg(Jg,r),[p,m]=c.useState(null),h=it(n,e=>m(e),d.onItemTextChange,e=>l.itemTextRefCallback?.(e,d.value,d.disabled)),g=p?.textContent,b=c.useMemo(()=>t.jsx("option",{value:d.value,disabled:d.disabled,children:g},d.value),[d.disabled,d.value,g]),{onNativeOptionAdd:v,onNativeOptionRemove:y}=f;return Tt(()=>(v(b),()=>y(b)),[v,y,b]),t.jsxs(t.Fragment,{children:[t.jsx(zt.span,{id:d.textId,...i,ref:h}),d.isSelected&&s.valueNode&&!s.valueNodeHasChildren?u.createPortal(i.children,s.valueNode):null]})});Xg.displayName=Jg;var Qg="SelectItemIndicator",eb=c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return Zg(Qg,r).isSelected?t.jsx(zt.span,{"aria-hidden":!0,...o,ref:n}):null});eb.displayName=Qg;var tb="SelectScrollUpButton",nb=c.forwardRef((e,n)=>{const r=Fg(tb,e.__scopeSelect),o=zg(tb,e.__scopeSelect),[a,i]=c.useState(!1),s=it(n,o.onScrollButtonChange);return Tt(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollTop>0;i(e)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?t.jsx(ab,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});nb.displayName=tb;var rb="SelectScrollDownButton",ob=c.forwardRef((e,n)=>{const r=Fg(rb,e.__scopeSelect),o=zg(rb,e.__scopeSelect),[a,i]=c.useState(!1),s=it(n,o.onScrollButtonChange);return Tt(()=>{if(r.viewport&&r.isPositioned){let e=function(){const e=t.scrollHeight-t.clientHeight,n=Math.ceil(t.scrollTop)<e;i(n)};const t=r.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[r.viewport,r.isPositioned]),a?t.jsx(ab,{...e,ref:s,onAutoScroll:()=>{const{viewport:e,selectedItem:t}=r;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});ob.displayName=rb;var ab=c.forwardRef((e,n)=>{const{__scopeSelect:r,onAutoScroll:o,...a}=e,i=Fg("SelectScrollButton",r),s=c.useRef(null),l=pg(r),u=c.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return c.useEffect(()=>()=>u(),[u]),Tt(()=>{const e=l().find(e=>e.ref.current===document.activeElement);e?.ref.current?.scrollIntoView({block:"nearest"})},[l]),t.jsx(zt.div,{"aria-hidden":!0,...a,ref:n,style:{flexShrink:0,...a.style},onPointerDown:Dt(a.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(o,50))}),onPointerMove:Dt(a.onPointerMove,()=>{i.onItemLeave?.(),null===s.current&&(s.current=window.setInterval(o,50))}),onPointerLeave:Dt(a.onPointerLeave,()=>{u()})})}),ib=c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e;return t.jsx(zt.div,{"aria-hidden":!0,...o,ref:n})});ib.displayName="SelectSeparator";var sb="SelectArrow";c.forwardRef((e,n)=>{const{__scopeSelect:r,...o}=e,a=bg(r),i=yg(sb,r),s=Fg(sb,r);return i.open&&"popper"===s.position?t.jsx(di,{...a,...o,ref:n}):null}).displayName=sb;var lb=c.forwardRef(({__scopeSelect:e,value:n,...r},o)=>{const a=c.useRef(null),i=it(o,a),s=Tu(n);return c.useEffect(()=>{const e=a.current;if(!e)return;const t=window.HTMLSelectElement.prototype,r=Object.getOwnPropertyDescriptor(t,"value").set;if(s!==n&&r){const t=new Event("change",{bubbles:!0});r.call(e,n),e.dispatchEvent(t)}},[s,n]),t.jsx(zt.select,{...r,style:{...lg,...r.style},ref:i,defaultValue:n})});function cb(e){return""===e||void 0===e}function ub(e){const t=qt(e),n=c.useRef(""),r=c.useRef(0),o=c.useCallback(e=>{const o=n.current+e;t(o),function e(t){n.current=t,window.clearTimeout(r.current),""!==t&&(r.current=window.setTimeout(()=>e(""),1e3))}(o)},[t]),a=c.useCallback(()=>{n.current="",window.clearTimeout(r.current)},[]);return c.useEffect(()=>()=>window.clearTimeout(r.current),[]),[n,o,a]}function db(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=n?e.indexOf(n):-1;let a=(i=e,s=Math.max(o,0),i.map((e,t)=>i[(s+t)%i.length]));var i,s;1===r.length&&(a=a.filter(e=>e!==n));const l=a.find(e=>e.textValue.toLowerCase().startsWith(r.toLowerCase()));return l!==n?l:void 0}lb.displayName="SelectBubbleInput";var fb=kg,pb=Dg,mb=Sg,hb=Tg,gb=qg,bb=$g,vb=Yg,yb=Xg,wb=eb,xb=nb,Eb=ob,_b=ib,kb=Eg,Cb=Ng,Nb=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=_(e,["className","children"]);return c.createElement(fb,Object.assign({ref:t,className:nt("flex h-12 w-full items-center justify-between rounded-full border border-input bg-background px-6 py-2 text-sm ring-offset-background data-[placeholder]:text-muted-foreground focus:outline-none focus:ring-2 focus:ring-[hsl(var(--primary))]/30 focus:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 transition-all duration-300 [&>span]:line-clamp-1",n)},o),r,c.createElement(pb,{asChild:!0},c.createElement(A,{className:"h-4 w-4 opacity-50"})))});Nb.displayName=fb.displayName;var Db=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(xb,Object.assign({ref:t,className:nt("flex cursor-default items-center justify-center py-1",n)},r),c.createElement(O,{className:"h-4 w-4"}))});Db.displayName=xb.displayName;var Sb=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(Eb,Object.assign({ref:t,className:nt("flex cursor-default items-center justify-center py-1",n)},r),c.createElement(A,{className:"h-4 w-4"}))});Sb.displayName=Eb.displayName;var Ab=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=e.position,a=void 0===o?"popper":o,i=_(e,["className","children","position"]);return c.createElement(mb,null,c.createElement(hb,Object.assign({ref:t,className:nt("relative z-50 max-h-[--radix-select-content-available-height] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-2xl border bg-popover text-popover-foreground shadow-[0_10px_40px_-10px_rgba(93,112,82,0.2)] data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 origin-[--radix-select-content-transform-origin]","popper"===a&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",n),position:a},i),c.createElement(Db,null),c.createElement(gb,{className:nt("p-1","popper"===a&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)]")},r),c.createElement(Sb,null)))});Ab.displayName=hb.displayName;var Tb=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(bb,Object.assign({ref:t,className:nt("py-1.5 pl-8 pr-2 text-sm font-semibold",n)},r))});Tb.displayName=bb.displayName;var Rb=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=_(e,["className","children"]);return c.createElement(vb,Object.assign({ref:t,className:nt("relative flex w-full cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},o),c.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},c.createElement(wb,null,c.createElement(S,{className:"h-4 w-4"}))),c.createElement(yb,null,r))});Rb.displayName=vb.displayName;var Ob=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(_b,Object.assign({ref:t,className:nt("-mx-1 my-1 h-px bg-muted",n)},r))});function Fb(){return"".concat(Date.now(),"_").concat(Math.random().toString(16).slice(2))}function Mb(e,t){var n,r=(null==e?void 0:e.type)||"string",o=function(e,n){return"zh-CN"===t?e:n};return(null===(n=null==e?void 0:e.enum)||void 0===n?void 0:n.length)?[{value:"eq",label:o("等于","Equals")},{value:"neq",label:o("不等于","Not Equals")},{value:"in",label:o("属于(多个)","In List")},{value:"isNull",label:o("为空(NULL)","Is Null")}]:"integer"===r||"float"===r?[{value:"eq",label:o("等于","Equals")},{value:"neq",label:o("不等于","Not Equals")},{value:"gt",label:o("大于","Greater Than")},{value:"gte",label:o("大于等于","Greater or Equal")},{value:"lt",label:o("小于","Less Than")},{value:"lte",label:o("小于等于","Less or Equal")},{value:"in",label:o("属于(多个)","In List")},{value:"isNull",label:o("为空(NULL)","Is Null")}]:"boolean"===r?[{value:"eq",label:o("等于","Equals")},{value:"neq",label:o("不等于","Not Equals")},{value:"isNull",label:o("为空(NULL)","Is Null")}]:"date"===r||"datetime"===r?[{value:"eq",label:o("等于","Equals")},{value:"neq",label:o("不等于","Not Equals")},{value:"gt",label:o("晚于/大于","After / Greater Than")},{value:"gte",label:o("晚于等于/大于等于","After or Equal")},{value:"lt",label:o("早于/小于","Before / Less Than")},{value:"lte",label:o("早于等于/小于等于","Before or Equal")},{value:"isNull",label:o("为空(NULL)","Is Null")}]:[{value:"contains",label:o("包含","Contains")},{value:"startsWith",label:o("开头是","Starts With")},{value:"endsWith",label:o("结尾是","Ends With")},{value:"eq",label:o("等于","Equals")},{value:"neq",label:o("不等于","Not Equals")},{value:"in",label:o("属于(多个)","In List")},{value:"isNull",label:o("为空(NULL)","Is Null")}]}function jb(t){var n,r,o=Nu().locale,a=e.useMemo(function(){var e=[];e.push.apply(e,y(function(e){return[{column:"id",label:"ID",type:"id"},{column:"created_at",label:"zh-CN"===e?"创建时间":"Created At",type:"datetime"},{column:"updated_at",label:"zh-CN"===e?"更新时间":"Updated At",type:"datetime"}]}(o)));var n,r=m(t.fields||[]);try{for(r.s();!(n=r.n()).done;){var a=n.value;if((null==a?void 0:a.name)&&("json"!==a.type&&"jsonb"!==a.type))if("relation"===a.type&&a.relation){var i=a.relation.foreignKey||"".concat(a.relation.target,"_id");e.push({column:i,label:"".concat(Ku(a,o),"zh-CN"===o?"(关联)":" (Relation)"),type:"relation"})}else e.push({column:a.name,label:Ku(a,o),type:a.type,enum:qh(a)?y(a.enum||[]):void 0,enumLabels:a.enumLabels})}}catch(e){r.e(e)}finally{r.f()}var s=new Set;return e.filter(function(e){return!s.has(e.column)&&(s.add(e.column),!0)})},[o,t.fields]),i=e.useMemo(function(){return new Map(a.map(function(e){return[e.column,e]}))},[a]),s=e.useMemo(function(){return new Map(a.map(function(e){return[e.column,e.type]}))},[a]),l=v(e.useState([]),2),c=l[0],u=l[1];e.useEffect(function(){u(function(e,t){return(e||[]).map(function(e){if(t.get(e.column),"is"===e.operator&&(null===e.value||"null"===e.value))return{id:Fb(),column:e.column,operator:"isNull",value:""};if(("ilike"===e.operator||"like"===e.operator)&&"string"==typeof e.value){var n=e.value;if(n.startsWith("%")&&n.endsWith("%")&&n.length>=2)return{id:Fb(),column:e.column,operator:"contains",value:n.slice(1,-1)};if(n.endsWith("%"))return{id:Fb(),column:e.column,operator:"startsWith",value:n.slice(0,-1)};if(n.startsWith("%"))return{id:Fb(),column:e.column,operator:"endsWith",value:n.slice(1)}}if("in"===e.operator){var r=Array.isArray(e.value)?e.value:[];return{id:Fb(),column:e.column,operator:"in",value:r.join(",")}}return{id:Fb(),column:e.column,operator:["eq","neq","gt","gte","lt","lte"].includes(e.operator)?e.operator:"eq",value:void 0===e.value||null===e.value?"":String(e.value)}})}(t.value||[],s))},[JSON.stringify(t.value),a.length]);var d=function(e,t){u(function(n){return n.map(function(n){var r;if(n.id!==e)return n;var a=Object.assign(Object.assign({},n),t);if(t.column&&t.column!==n.column){var s=Mb(i.get(t.column),o);a.operator=(null===(r=s[0])||void 0===r?void 0:r.value)||"eq",a.value=""}return t.operator&&"isNull"===t.operator&&(a.value=""),a})})};return e.createElement("div",{className:"space-y-3"},e.createElement("div",{className:"flex items-center justify-between gap-3"},e.createElement(fs,{className:"text-base font-medium flex items-center gap-2"},e.createElement(q,{className:"h-4 w-4"}),"zh-CN"===o?"动态筛选":"Filters"),e.createElement("div",{className:"flex items-center gap-2"},(null===(n=t.value)||void 0===n?void 0:n.length)>0&&e.createElement(eg,{variant:"secondary"},"zh-CN"===o?"已应用 ".concat(t.value.length," 条"):"".concat(t.value.length," applied")),e.createElement(yt,{type:"button",variant:"outline",size:"sm",onClick:function(){var e=a[0];if(e){var t=Mb(e,o);u(function(n){var r;return[].concat(y(n),[{id:Fb(),column:e.column,operator:(null===(r=t[0])||void 0===r?void 0:r.value)||"eq",value:""}])})}}},e.createElement(Y,{className:"h-4 w-4 mr-1"}),"zh-CN"===o?"添加条件":"Add Filter"))),0===c.length?e.createElement("div",{className:"text-sm text-muted-foreground border rounded-lg p-3 bg-muted/20"},"zh-CN"===o?"暂无筛选条件(可添加条件后点击“应用”)":"No filters yet. Add conditions and apply them."):e.createElement("div",{className:"space-y-2"},c.map(function(t){var n,r,s=i.get(t.column),l=(null==s?void 0:s.type)||"string",c=Mb(s,o),f="isNull"!==t.operator,p=(null===(n=null==s?void 0:s.enum)||void 0===n?void 0:n.length)&&"in"!==t.operator?Wh({enum:s.enum,enumLabels:s.enumLabels},t.value):[];return e.createElement("div",{key:t.id,className:"grid grid-cols-12 gap-2 items-center"},e.createElement("div",{className:"col-span-5"},e.createElement(kb,{value:t.column,onValueChange:function(e){return d(t.id,{column:e})}},e.createElement(Nb,{className:"h-10"},e.createElement(Cb,{placeholder:"zh-CN"===o?"字段":"Field"})),e.createElement(Ab,null,a.map(function(t){return e.createElement(Rb,{key:t.column,value:t.column},t.label," (",t.column,")")})))),e.createElement("div",{className:"col-span-3"},e.createElement(kb,{value:t.operator,onValueChange:function(e){return d(t.id,{operator:e})}},e.createElement(Nb,{className:"h-10"},e.createElement(Cb,{placeholder:"zh-CN"===o?"操作符":"Operator"})),e.createElement(Ab,null,c.map(function(t){return e.createElement(Rb,{key:t.value,value:t.value},t.label)})))),e.createElement("div",{className:"col-span-3"},f?(null===(r=null==s?void 0:s.enum)||void 0===r?void 0:r.length)&&"in"!==t.operator?e.createElement(kb,{value:t.value,onValueChange:function(e){return d(t.id,{value:e})}},e.createElement(Nb,{className:"h-10"},e.createElement(Cb,{placeholder:"zh-CN"===o?"值":"Value"})),e.createElement(Ab,null,p.map(function(t){return e.createElement(Rb,{key:t.valueKey,value:t.valueKey},t.label)}))):"boolean"===l?e.createElement(kb,{value:t.value,onValueChange:function(e){return d(t.id,{value:e})}},e.createElement(Nb,{className:"h-10"},e.createElement(Cb,{placeholder:"zh-CN"===o?"值":"Value"})),e.createElement(Ab,null,e.createElement(Rb,{value:"true"},"true"),e.createElement(Rb,{value:"false"},"false"))):e.createElement(wt,{className:"h-10",placeholder:"in"===t.operator?"zh-CN"===o?"多个值用逗号分隔":"Comma-separated values":"zh-CN"===o?"值":"Value",type:"integer"===l||"float"===l?"number":"date"===l?"date":"datetime"===l?"datetime-local":"text",value:t.value,onChange:function(e){return d(t.id,{value:e.target.value})}}):e.createElement("div",{className:"h-10 flex items-center text-sm text-muted-foreground"},"zh-CN"===o?"无需填写":"No value needed")),e.createElement("div",{className:"col-span-1 flex justify-end"},e.createElement(yt,{type:"button",variant:"ghost",size:"sm",className:"h-9 w-9 p-0",onClick:function(){return e=t.id,void u(function(t){return t.filter(function(t){return t.id!==e})});var e}},e.createElement(ie,{className:"h-4 w-4"}))))})),e.createElement("div",{className:"flex items-center justify-end gap-2"},e.createElement(yt,{type:"button",variant:"outline",onClick:function(){u([]),t.onChange([])},disabled:0===c.length&&0===((null===(r=t.value)||void 0===r?void 0:r.length)||0)},"zh-CN"===o?"清空":"Clear"),e.createElement(yt,{type:"button",onClick:function(){var e=function(e,t){var n,r,o=[],a=m(e);try{for(a.s();!(r=a.n()).done;){var i=r.value,s=t.get(i.column);if(s&&i.operator)if("isNull"!==i.operator){var l=null!==(n=i.value)&&void 0!==n?n:"",c=String(l).trim();if(c)if("contains"!==i.operator)if("startsWith"!==i.operator)if("endsWith"!==i.operator)if("in"!==i.operator)o.push({column:s.column,operator:i.operator,value:c});else{var u=c.split(",").map(function(e){return e.trim()}).filter(Boolean);o.push({column:s.column,operator:"in",value:u})}else o.push({column:s.column,operator:"ilike",value:"%".concat(c)});else o.push({column:s.column,operator:"ilike",value:"".concat(c,"%")});else o.push({column:s.column,operator:"ilike",value:"%".concat(c,"%")})}else o.push({column:s.column,operator:"is",value:null})}}catch(e){a.e(e)}finally{a.f()}return o}(c,i);t.onChange(e)},disabled:0===c.length},"zh-CN"===o?"应用":"Apply")))}function Lb(){var e=eu();if(e)return e;try{return localStorage.getItem("cms_session_id")||void 0}catch(e){return}}function Ib(e,t){return e instanceof Error&&e.message?e.message:t}function Pb(t){var n=t.model,r=Cu(),o=Nu().locale,a=n,i=v(e.useState([]),2),l=i[0],c=i[1],u=v(e.useState(!1),2),d=u[0],f=u[1],m=v(e.useState(!1),2),b=m[0],y=m[1],w=v(e.useState(!1),2),x=w[0],E=w[1],_=v(e.useState(null),2),k=_[0],C=_[1],N=v(e.useState({}),2),D=N[0],S=N[1],A=v(e.useState(1),2),O=A[0],F=A[1],M=v(e.useState(10),2),j=M[0];M[1];var I=v(e.useState(0),2),P=I[0],z=I[1],B=v(e.useState(""),2),U=B[0],H=B[1],W=v(e.useState(!1),2),$=W[0],G=W[1],K=v(e.useState(null),2),Z=K[0],X=K[1],Q=v(e.useState({}),2),te=Q[0],re=Q[1],oe=v(e.useState([]),2),ae=oe[0],ie=oe[1],se=e.useMemo(function(){return ae.length?JSON.stringify(ae):""},[ae]),le=function(e){return!e.readOnly&&!1!==e.editable},ce=function(e){return Ku(e,o)},ue=Gu(a,o);e.useEffect(function(){a&&fe()},[null==a?void 0:a.table_name,O,j,U,se]);var de=function(){var e=p(g().m(function e(t){var n,o,a,i,s,l;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if("relation"===t.type&&t.relation){e.n=1;break}return e.a(2);case 1:if(n=t.relation,o=n.target,a=n.displayField,i="".concat(o,"_").concat(a||"name"),!te[i]){e.n=2;break}return e.a(2);case 2:return e.p=2,e.n=3,bu(nu(o,Lb()),{displayField:a||"name",limit:200});case 3:(s=e.v).success&&s.data&&re(function(e){return Object.assign(Object.assign({},e),h({},i,s.data))}),e.n=5;break;case 4:e.p=4,l=e.v,Os.error(Ib(l,r("data.loadFailed")));case 5:return e.a(2)}},e,null,[[2,4]])}));return function(t){return e.apply(this,arguments)}}();e.useEffect(function(){b&&a&&a.json_schema.fields.filter(function(e){return"relation"===e.type&&e.relation}).forEach(function(e){return de(e)})},[b,a]);var fe=function(){var e=p(g().m(function e(){var t,n,o,i,s;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a){e.n=1;break}return e.a(2);case 1:return f(!0),e.p=2,o={page:O,limit:j},U&&(o.search=U),ae.length>0&&(o.filters=ae),e.n=3,gu(a.table_name,o);case 3:if((i=e.v).success){e.n=4;break}return Os.error(i.message||r("data.loadFailed")),c([]),z(0),e.a(2);case 4:c((null===(t=i.data)||void 0===t?void 0:t.data)||[]),z((null===(n=i.data)||void 0===n?void 0:n.total)||0),e.n=6;break;case 5:e.p=5,s=e.v,Os.error(Ib(s,r("data.loadFailed"))),c([]),z(0);case 6:return e.p=6,f(!1),e.f(6);case 7:return e.a(2)}},e,null,[[2,5,6,7]])}));return function(){return e.apply(this,arguments)}}(),pe=function(){var e=p(g().m(function e(t){var n;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(confirm(r("data.deleteConfirmFull"))){e.n=1;break}return e.a(2);case 1:return X(t.id),e.p=2,e.n=3,wu(null==a?void 0:a.table_name,t.id);case 3:(n=e.v).success?(Os.success(r("data.deleteSuccess")),fe()):Os.error(n.message||r("data.deleteFailed")),e.n=5;break;case 4:e.p=4,e.v,Os.error(r("data.deleteFailed"));case 5:return e.p=5,X(null),e.f(5);case 6:return e.a(2)}},e,null,[[2,4,5,6]])}));return function(t){return e.apply(this,arguments)}}(),me=function(){var e=p(g().m(function e(){var t,n,o,i,s,l,c;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(a){e.n=1;break}return e.a(2);case 1:if(G(!0),e.p=2,!(t=au(a.json_schema.fields,D))){e.n=3;break}throw new Error("".concat(r("data.fieldError")," ").concat(t.comment||t.name," ").concat(r("validation.required")));case 3:if(n={},a.json_schema.fields.forEach(function(e){if("id"!==e.name&&le(e))if("relation"===e.type&&e.relation){var t=e.relation.foreignKey||"".concat(e.relation.target,"_id");n[t]=D[t]}else{var o=D[e.name];if("date"===e.type&&(o=o||null),"datetime"===e.type&&(o=o?new Date(o).toISOString():null),"json"===e.type||"jsonb"===e.type){var a=(o||"").toString().trim();if(a){var i=Fd(a);if(!i.ok)throw new Error("".concat(r("data.fieldError")," ").concat(ce(e),": ").concat(i.message));o=i.value}else o=null}n[e.name]=o}}),!k){e.n=5;break}return o=Object.assign(Object.assign({},n),{id:k.id}),e.n=4,yu(a.table_name,o);case 4:(i=e.v).success?(Os.success(r("data.updateSuccess")),y(!1),fe()):Os.error(i.message||r("data.updateFailed")),e.n=7;break;case 5:return e.n=6,vu(a.table_name,n);case 6:(s=e.v).success?(Os.success(r("data.createSuccess")),y(!1),fe()):Os.error(s.message||r("data.createFailed"));case 7:e.n=9;break;case 8:e.p=8,c=e.v,l=c instanceof Error?c.message:r("data.operationFailed"),Os.error(l);case 9:return e.p=9,G(!1),e.f(9);case 10:return e.a(2)}},e,null,[[2,8,9,10]])}));return function(){return e.apply(this,arguments)}}(),he=function(t){if("id"===t.name)return null;var n=le(t);if(qh(t)){var o=D[t.name],i=Wh(t,o),s=Uh(o);return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(fs,{htmlFor:t.name,className:"text-sm font-semibold"},ce(t),t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(kb,{value:s,disabled:!n,onValueChange:function(e){return S(Object.assign(Object.assign({},D),h({},t.name,function(e,t){var n=(e.enum||[]).find(function(e){return Uh(e)===t});return void 0!==n?n:t}(t,e))))}},e.createElement(Nb,{className:"h-11"},e.createElement(Cb,{placeholder:"".concat(r("data.pleaseSelect")," ").concat(ce(t))})),e.createElement(Ab,null,i.map(function(t){return e.createElement(Rb,{key:t.valueKey,value:t.valueKey},t.label)}))))}switch(t.type){case"boolean":return e.createElement("div",{key:t.name,className:"flex items-center space-x-3 p-4 rounded-lg border bg-card"},e.createElement(Hu,{id:t.name,checked:D[t.name]||!1,disabled:!n,onCheckedChange:function(e){return S(Object.assign(Object.assign({},D),h({},t.name,e)))}}),e.createElement(fs,{htmlFor:t.name,className:"text-sm font-semibold cursor-pointer"},ce(t),t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")));case"date":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(fs,{htmlFor:t.name,className:"text-sm font-semibold"},ce(t),t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(wt,{id:t.name,type:"date",value:D[t.name]||"",disabled:!n,onChange:function(e){return S(Object.assign(Object.assign({},D),h({},t.name,e.target.value)))},required:t.required,className:"h-11"}));case"datetime":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(fs,{htmlFor:t.name,className:"text-sm font-semibold"},ce(t),t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(wt,{id:t.name,type:"datetime-local",value:D[t.name]||"",disabled:!n,onChange:function(e){return S(Object.assign(Object.assign({},D),h({},t.name,e.target.value)))},required:t.required,className:"h-11"}));case"text":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(fs,{htmlFor:t.name,className:"text-sm font-semibold"},ce(t),t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(zh,{value:D[t.name]||"",onChange:function(e){return S(Object.assign(Object.assign({},D),h({},t.name,e)))},disabled:!n}));case"json":case"jsonb":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(fs,{htmlFor:t.name,className:"text-sm font-semibold"},ce(t),t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(Pd,{id:t.name,value:D[t.name]||"",required:t.required,disabled:!n,onChange:function(e){return S(Object.assign(Object.assign({},D),h({},t.name,e)))}}));case"asset":return e.createElement(ad,{key:t.name,field:t,model:a,value:D[t.name]||"",disabled:!n,onChange:function(e){return S(Object.assign(Object.assign({},D),h({},t.name,e)))}});case"integer":case"float":return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(fs,{htmlFor:t.name,className:"text-sm font-semibold"},ce(t),t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(wt,{id:t.name,type:"number",value:D[t.name]||"",disabled:!n,onChange:function(e){return S(Object.assign(Object.assign({},D),h({},t.name,e.target.value)))},required:t.required,className:"h-11"}));case"relation":if(!t.relation)return null;var l=t.relation,c=l.target,u=l.displayField,d=void 0===u?"name":u,f="".concat(c,"_").concat(d),p=te[f]||[],m=t.relation.foreignKey||"".concat(c,"_id"),g=void 0!==D[m]&&null!==D[m]?String(D[m]):"",b=p.find(function(e){return String(e.id)===g});return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(fs,{htmlFor:t.name,className:"text-sm font-semibold"},ce(t),t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(kb,{value:g,disabled:!n,onValueChange:function(e){var t=parseInt(e,10),n=!isNaN(t)&&String(t)===e;S(Object.assign(Object.assign({},D),h({},m,n?t:e)))}},e.createElement(Nb,{className:"h-11"},e.createElement(Cb,{placeholder:"".concat(r("data.pleaseSelect")," ").concat(ce(t))},b?b.label:g?"ID: ".concat(g):"".concat(r("data.pleaseSelect")," ").concat(ce(t)))),e.createElement(Ab,null,0===p.length?e.createElement(Rb,{value:"_loading",disabled:!0},r("data.loadingOptions")):p.map(function(t){return e.createElement(Rb,{key:t.id,value:String(t.id)},t.label)}))));default:return e.createElement("div",{key:t.name,className:"space-y-2.5"},e.createElement(fs,{htmlFor:t.name,className:"text-sm font-semibold"},ce(t),t.required&&e.createElement("span",{className:"text-destructive ml-1"},"*")),e.createElement(wt,{id:t.name,type:"email"===t.type?"email":"text",maxLength:t.maxLength,value:D[t.name]||"",disabled:!n,onChange:function(e){return S(Object.assign(Object.assign({},D),h({},t.name,e.target.value)))},required:t.required,className:"h-11"}))}};return a?e.createElement("div",{className:"min-h-[calc(100vh-4rem)] bg-gradient-to-br from-background via-background to-muted/20"},e.createElement("div",{className:"w-full py-4 space-y-4"},e.createElement("div",{className:"space-y-1"},e.createElement("div",{className:"flex items-center gap-3"},e.createElement("div",{className:"inline-flex items-center justify-center w-9 h-9 rounded-lg bg-primary/10 text-primary"},e.createElement(L,{className:"h-4 w-4"})),e.createElement("div",null,e.createElement("h1",{className:"text-2xl font-bold tracking-tight leading-tight"},ue),e.createElement("p",{className:"text-sm text-muted-foreground"},r("data.tableName"),": ",a.table_name)))),e.createElement(ps,{className:"border-2 shadow-lg"},e.createElement(ms,{className:"bg-muted/30"},e.createElement("div",{className:"flex flex-col md:flex-row md:items-center md:justify-between gap-4"},e.createElement("div",null,e.createElement(hs,null,r("data.dataManagement")),e.createElement(gs,null,r("data.viewAndManage")," ",ue," ",r("data.ofData"))),e.createElement(yt,{onClick:function(){C(null),S({}),y(!0)},className:"w-full md:w-auto"},e.createElement(Y,{className:"h-4 w-4 mr-2"}),r("data.newRecord")))),e.createElement(bs,{className:"space-y-4 pt-4"},e.createElement("div",{className:"flex flex-col md:flex-row md:items-center gap-3"},e.createElement("div",{className:"flex-1"},e.createElement(fs,{htmlFor:"search",className:"sr-only"},r("common.search")),e.createElement("div",{className:"relative"},e.createElement(J,{className:"absolute left-3 top-1/2 -translate-y-1/2 h-4 w-4 text-muted-foreground"}),e.createElement(wt,{id:"search",placeholder:r("data.searchData"),value:U,onChange:function(e){return H(e.target.value)},className:"pl-10 h-10"}))),e.createElement(yt,{type:"button",variant:"outline",className:"h-10",onClick:function(){return E(!0)}},e.createElement(q,{className:"h-4 w-4 mr-2"}),r("common.filter"),ae.length>0?" (".concat(ae.length,")"):"")),e.createElement("div",{className:"flex items-center justify-between p-4 rounded-lg bg-muted/50 border"},e.createElement("div",{className:"text-sm text-muted-foreground"},r("data.totalCount")," ",e.createElement("span",{className:"font-semibold text-foreground"},P)," ",r("data.records")),e.createElement(eg,{variant:"outline"},ue)),e.createElement("div",{className:"rounded-lg border overflow-hidden"},e.createElement(Vh,null,e.createElement($h,null,e.createElement(Zh,{className:"bg-muted/50"},e.createElement(Yh,{className:"font-semibold w-20"},"ID"),a.json_schema.fields.map(function(t){return e.createElement(Yh,{key:t.name,className:"font-semibold"},ce(t))}),e.createElement(Yh,{className:"font-semibold"},r("data.createdAt")),e.createElement(Yh,{className:"font-semibold"},r("data.updatedAt")),e.createElement(Yh,{className:nt("font-semibold w-32 text-center sticky right-0 z-30 bg-background","before:content-[''] before:absolute before:inset-y-0 before:left-0 before:w-px before:bg-border","after:content-[''] after:absolute after:inset-y-0 after:left-[-16px] after:w-4 after:bg-gradient-to-l after:from-background after:to-transparent","shadow-[-10px_0_16px_-14px_rgba(0,0,0,0.35)]")},r("common.actions")))),e.createElement(Gh,null,d?Array.from({length:1}).map(function(t,n){return e.createElement(Zh,{key:n},e.createElement(Jh,{colSpan:a.json_schema.fields.length+4},e.createElement("div",{className:"flex items-center gap-2 py-4"},e.createElement(V,{className:"h-4 w-4 animate-spin text-muted-foreground"}),e.createElement("span",{className:"text-sm text-muted-foreground"},r("common.loading")))))}):0===l.length?e.createElement(Zh,null,e.createElement(Jh,{colSpan:a.json_schema.fields.length+4,className:"text-center py-12"},e.createElement("div",{className:"flex flex-col items-center gap-2 text-muted-foreground"},e.createElement(J,{className:"h-8 w-8"}),e.createElement("p",null,r("data.noData"))))):l.map(function(t,n){return e.createElement(Zh,{key:t.id,className:nt("group hover:bg-muted",n%2==0?"bg-muted/20":"")},e.createElement(Jh,{className:"font-mono font-medium max-w-[220px] truncate",title:String(t.id)},t.id),a.json_schema.fields.map(function(n){return e.createElement(Jh,{key:n.name},function(t,n,o){if(qh(t))return Hh(t,n)||"-";if("asset"===t.type)return e.createElement(od,{url:n,emptyText:"-",className:"w-[360px] max-w-full"});if("string"==typeof n){var a=n.trim();if(a&&Xu(a))return e.createElement(od,{url:a,emptyText:"-",className:"w-[360px] max-w-full"});if(a&&Zu(a))return e.createElement(od,{url:a,emptyText:"-",className:"w-[360px] max-w-full"})}if("boolean"===t.type)return e.createElement(eg,{variant:n?"default":"secondary"},r(n?"data.yes":"data.no"));if("date"===t.type)return n?s(n).format("YYYY-MM-DD"):"-";if("datetime"===t.type)return n?s(n).format("YYYY-MM-DD HH:mm:ss"):"-";if("text"===t.type&&n&&n.length>50)return e.createElement("span",{className:"max-w-xs truncate block",title:n},n.substring(0,50),"...");if("json"===t.type||"jsonb"===t.type)return e.createElement(Id,{value:n,title:ce(t)});if("relation"===t.type&&t.relation&&o){var i=t.relation.displayField,l=void 0===i?"name":i,c=o["".concat(t.name,"_data")];if(c)return e.createElement(eg,{variant:"outline"},c[l]||"ID: ".concat(c.id));var u=o[t.relation.foreignKey||"".concat(t.relation.target,"_id")];return u?"ID: ".concat(u):"-"}return null==n||""===n?"-":n}(n,t[n.name],t))}),e.createElement(Jh,{className:"text-sm text-muted-foreground"},s(t.created_at).format("YYYY-MM-DD HH:mm")),e.createElement(Jh,{className:"text-sm text-muted-foreground"},s(t.updated_at).format("YYYY-MM-DD HH:mm")),e.createElement(Jh,{className:nt("sticky right-0 z-20 bg-background","before:content-[''] before:absolute before:inset-y-0 before:left-0 before:w-px before:bg-border","after:content-[''] after:absolute after:inset-y-0 after:left-[-16px] after:w-4 after:bg-gradient-to-l after:from-background after:to-transparent","shadow-[-10px_0_16px_-14px_rgba(0,0,0,0.25)]","group-hover:bg-muted")},e.createElement("div",{className:"flex items-center justify-center gap-2"},e.createElement(yt,{variant:"ghost",size:"sm",onClick:function(){return function(e){C(e);var t={};null==a||a.json_schema.fields.forEach(function(n){if("id"!==n.name)if("relation"===n.type&&n.relation){var r=n.relation.foreignKey||"".concat(n.relation.target,"_id");t[r]=e[r]}else{var o=e[n.name];"date"===n.type&&(o=o?s(o).format("YYYY-MM-DD"):""),"datetime"===n.type&&(o=o?s(o).format("YYYY-MM-DDTHH:mm"):""),"json"!==n.type&&"jsonb"!==n.type||(o=null==o||""===o?"":"string"==typeof o?o:JSON.stringify(o,null,2)),t[n.name]=o}}),S(t),y(!0)}(t)},className:"h-8 w-8 p-0"},e.createElement(ee,{className:"h-4 w-4"})),e.createElement(yt,{variant:"ghost",size:"sm",onClick:function(){return pe(t)},disabled:Z===t.id,className:"h-8 w-8 p-0 text-destructive hover:text-destructive"},Z===t.id?e.createElement(V,{className:"h-4 w-4 animate-spin"}):e.createElement(ne,{className:"h-4 w-4"})))))})))),P>j&&e.createElement("div",{className:"flex items-center justify-between p-4 rounded-lg bg-muted/50 border"},e.createElement("div",{className:"text-sm text-muted-foreground"},r("data.page")," ",e.createElement("span",{className:"font-semibold text-foreground"},O)," ",r("data.pageOf")," ",e.createElement("span",{className:"font-semibold text-foreground"},Math.ceil(P/j))," ",r("data.pages")),e.createElement("div",{className:"flex gap-2"},e.createElement(yt,{variant:"outline",size:"sm",onClick:function(){return F(Math.max(1,O-1))},disabled:1===O||d},e.createElement(T,{className:"h-4 w-4 mr-1"}),r("data.previousPage")),e.createElement(yt,{variant:"outline",size:"sm",onClick:function(){return F(Math.min(Math.ceil(P/j),O+1))},disabled:O>=Math.ceil(P/j)||d},r("data.nextPage"),e.createElement(R,{className:"h-4 w-4 ml-1"})))))),e.createElement(id,{open:x,onOpenChange:E},e.createElement(ud,{className:"max-w-3xl"},e.createElement(dd,null,e.createElement(pd,{className:"text-xl"},r("common.filter")),e.createElement(hd,{className:"text-sm"},ue," - ",a.table_name)),e.createElement("div",{className:"py-2"},e.createElement(jb,{fields:a.json_schema.fields,value:ae,onChange:function(e){ie(e),F(1)}})),e.createElement(fd,{className:"gap-2"},e.createElement(yt,{variant:"outline",onClick:function(){return E(!1)}},r("common.close"))))),e.createElement(id,{open:b,onOpenChange:y},e.createElement(ud,{className:"max-w-3xl max-h-[85vh] overflow-y-auto"},e.createElement(dd,null,e.createElement(pd,{className:"text-2xl"},r(k?"data.editRecord":"data.createRecord")),e.createElement(hd,{className:"text-base"},ue," - ",a.table_name)),e.createElement("div",{className:"space-y-6 py-4"},a.json_schema.fields.map(function(e){return he(e)})),e.createElement(fd,{className:"gap-2"},e.createElement(yt,{variant:"outline",onClick:function(){return y(!1)},disabled:$},r("common.cancel")),e.createElement(yt,{onClick:me,disabled:$},$?e.createElement(e.Fragment,null,e.createElement(V,{className:"h-4 w-4 mr-2 animate-spin"}),r(k?"data.updating":"data.creating")):r(k?"common.update":"common.create"))))))):e.createElement("div",{className:"min-h-[calc(100vh-4rem)] bg-gradient-to-br from-background via-background to-muted/20"},e.createElement("div",{className:"w-full py-4"},e.createElement(ps,{className:"border-2"},e.createElement(bs,{className:"py-16 text-center"},e.createElement(L,{className:"h-12 w-12 mx-auto mb-4 text-muted-foreground"}),e.createElement("p",{className:"text-lg text-muted-foreground"},r("data.selectModelPrompt"))))))}function zb(t){var n=t.model;return e.createElement(Pb,{key:n.id,model:n})}function Bb(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"zh-CN";return t.models.map(function(t){return{path:"/data/list-".concat(t.id),name:Gu(t,n),icon:e.createElement(te),component:function(){return e.createElement(zb,{model:t})}}})}Ob.displayName=_b.displayName;var qb=function(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"zh-CN",o=function(e,t){return n?n(e):t};return[{path:"/login",name:o("auth.login","登录"),icon:e.createElement(G),component:Su},{name:o("data.dataManagement","内容管理"),icon:e.createElement(j),path:"/data",component:Au,routes:y(Bb(t,r))}]};function Ub(e){const n=Hb(e),r=c.forwardRef((e,r)=>{const{children:o,...a}=e,i=c.Children.toArray(o),s=i.find(Vb);if(s){const e=s.props.children,o=i.map(t=>t===s?c.Children.count(e)>1?c.Children.only(null):c.isValidElement(e)?e.props.children:null:t);return t.jsx(n,{...a,ref:r,children:c.isValidElement(e)?c.cloneElement(e,void 0,o):null})}return t.jsx(n,{...a,ref:r,children:o})});return r.displayName=`${e}.Slot`,r}function Hb(e){const t=c.forwardRef((e,t)=>{const{children:n,...r}=e;if(c.isValidElement(n)){const e=function(e){let t=Object.getOwnPropertyDescriptor(e.props,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning;if(n)return e.ref;if(t=Object.getOwnPropertyDescriptor(e,"ref")?.get,n=t&&"isReactWarning"in t&&t.isReactWarning,n)return e.props.ref;return e.props.ref||e.ref}(n),o=function(e,t){const n={...t};for(const r in t){const o=e[r],a=t[r];/^on[A-Z]/.test(r)?o&&a?n[r]=(...e)=>{const t=a(...e);return o(...e),t}:o&&(n[r]=o):"style"===r?n[r]={...o,...a}:"className"===r&&(n[r]=[o,a].filter(Boolean).join(" "))}return{...e,...n}}(r,n.props);return n.type!==c.Fragment&&(o.ref=t?at(t,e):e),c.cloneElement(n,o)}return c.Children.count(n)>1?c.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}var Wb=Symbol("radix.slottable");function Vb(e){return c.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Wb}function $b(n){const r=n+"CollectionProvider",[o,a]=St(r),[i,s]=o(r,{collectionRef:{current:null},itemMap:new Map}),l=n=>{const{scope:r,children:o}=n,a=e.useRef(null),s=e.useRef(new Map).current;return t.jsx(i,{scope:r,itemMap:s,collectionRef:a,children:o})};l.displayName=r;const c=n+"CollectionSlot",u=Ub(c),d=e.forwardRef((e,n)=>{const{scope:r,children:o}=e,a=it(n,s(c,r).collectionRef);return t.jsx(u,{ref:a,children:o})});d.displayName=c;const f=n+"CollectionItemSlot",p="data-radix-collection-item",m=Ub(f),h=e.forwardRef((n,r)=>{const{scope:o,children:a,...i}=n,l=e.useRef(null),c=it(r,l),u=s(f,o);return e.useEffect(()=>(u.itemMap.set(l,{ref:l,...i}),()=>{u.itemMap.delete(l)})),t.jsx(m,{[p]:"",ref:c,children:a})});return h.displayName=f,[{Provider:l,Slot:d,ItemSlot:h},function(t){const r=s(n+"CollectionConsumer",t);return e.useCallback(()=>{const e=r.collectionRef.current;if(!e)return[];const t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(r.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[r.collectionRef,r.itemMap])},a]}var Gb="rovingFocusGroup.onEntryFocus",Kb={bubbles:!1,cancelable:!0},Zb="RovingFocusGroup",[Yb,Jb,Xb]=$b(Zb),[Qb,ev]=St(Zb,[Xb]),[tv,nv]=Qb(Zb),rv=c.forwardRef((e,n)=>t.jsx(Yb.Provider,{scope:e.__scopeRovingFocusGroup,children:t.jsx(Yb.Slot,{scope:e.__scopeRovingFocusGroup,children:t.jsx(ov,{...e,ref:n})})}));rv.displayName=Zb;var ov=c.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,orientation:o,loop:a=!1,dir:i,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:d,preventScrollOnEntryFocus:f=!1,...p}=e,m=c.useRef(null),h=it(n,m),g=sg(i),[b,v]=jt({prop:s,defaultProp:l??null,onChange:u,caller:Zb}),[y,w]=c.useState(!1),x=qt(d),E=Jb(r),_=c.useRef(!1),[k,C]=c.useState(0);return c.useEffect(()=>{const e=m.current;if(e)return e.addEventListener(Gb,x),()=>e.removeEventListener(Gb,x)},[x]),t.jsx(tv,{scope:r,orientation:o,dir:g,loop:a,currentTabStopId:b,onItemFocus:c.useCallback(e=>v(e),[v]),onItemShiftTab:c.useCallback(()=>w(!0),[]),onFocusableItemAdd:c.useCallback(()=>C(e=>e+1),[]),onFocusableItemRemove:c.useCallback(()=>C(e=>e-1),[]),children:t.jsx(zt.div,{tabIndex:y||0===k?-1:0,"data-orientation":o,...p,ref:h,style:{outline:"none",...e.style},onMouseDown:Dt(e.onMouseDown,()=>{_.current=!0}),onFocus:Dt(e.onFocus,e=>{const t=!_.current;if(e.target===e.currentTarget&&t&&!y){const t=new CustomEvent(Gb,Kb);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){const e=E().filter(e=>e.focusable);lv([e.find(e=>e.active),e.find(e=>e.id===b),...e].filter(Boolean).map(e=>e.ref.current),f)}}_.current=!1}),onBlur:Dt(e.onBlur,()=>w(!1))})})}),av="RovingFocusGroupItem",iv=c.forwardRef((e,n)=>{const{__scopeRovingFocusGroup:r,focusable:o=!0,active:a=!1,tabStopId:i,children:s,...l}=e,u=Ft(),d=i||u,f=nv(av,r),p=f.currentTabStopId===d,m=Jb(r),{onFocusableItemAdd:h,onFocusableItemRemove:g,currentTabStopId:b}=f;return c.useEffect(()=>{if(o)return h(),()=>g()},[o,h,g]),t.jsx(Yb.ItemSlot,{scope:r,id:d,focusable:o,active:a,children:t.jsx(zt.span,{tabIndex:p?0:-1,"data-orientation":f.orientation,...l,ref:n,onMouseDown:Dt(e.onMouseDown,e=>{o?f.onItemFocus(d):e.preventDefault()}),onFocus:Dt(e.onFocus,()=>f.onItemFocus(d)),onKeyDown:Dt(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey)return void f.onItemShiftTab();if(e.target!==e.currentTarget)return;const t=function(e,t,n){const r=function(e,t){return"rtl"!==t?e:"ArrowLeft"===e?"ArrowRight":"ArrowRight"===e?"ArrowLeft":e}(e.key,n);return"vertical"===t&&["ArrowLeft","ArrowRight"].includes(r)||"horizontal"===t&&["ArrowUp","ArrowDown"].includes(r)?void 0:sv[r]}(e,f.orientation,f.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let o=m().filter(e=>e.focusable).map(e=>e.ref.current);if("last"===t)o.reverse();else if("prev"===t||"next"===t){"prev"===t&&o.reverse();const a=o.indexOf(e.currentTarget);o=f.loop?(r=a+1,(n=o).map((e,t)=>n[(r+t)%n.length])):o.slice(a+1)}setTimeout(()=>lv(o))}var n,r}),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=b}):s})})});iv.displayName=av;var sv={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function lv(e,t=!1){const n=document.activeElement;for(const r of e){if(r===n)return;if(r.focus({preventScroll:t}),document.activeElement!==n)return}}var cv=rv,uv=iv,dv=["Enter"," "],fv=["ArrowUp","PageDown","End"],pv=["ArrowDown","PageUp","Home",...fv],mv={ltr:[...dv,"ArrowRight"],rtl:[...dv,"ArrowLeft"]},hv={ltr:["ArrowLeft"],rtl:["ArrowRight"]},gv="Menu",[bv,vv,yv]=$b(gv),[wv,xv]=St(gv,[yv,$a,ev]),Ev=$a(),_v=ev(),[kv,Cv]=wv(gv),[Nv,Dv]=wv(gv),Sv=e=>{const{__scopeMenu:n,open:r=!1,children:o,dir:a,onOpenChange:i,modal:s=!0}=e,l=Ev(n),[u,d]=c.useState(null),f=c.useRef(!1),p=qt(i),m=sg(a);return c.useEffect(()=>{const e=()=>{f.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>f.current=!1;return document.addEventListener("keydown",e,{capture:!0}),()=>{document.removeEventListener("keydown",e,{capture:!0}),document.removeEventListener("pointerdown",t,{capture:!0}),document.removeEventListener("pointermove",t,{capture:!0})}},[]),t.jsx(li,{...l,children:t.jsx(kv,{scope:n,open:r,onOpenChange:p,content:u,onContentChange:d,children:t.jsx(Nv,{scope:n,onClose:c.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:f,dir:m,modal:s,children:o})})})};Sv.displayName=gv;var Av=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e,a=Ev(r);return t.jsx(ci,{...a,...o,ref:n})});Av.displayName="MenuAnchor";var Tv="MenuPortal",[Rv,Ov]=wv(Tv,{forceMount:void 0}),Fv=e=>{const{__scopeMenu:n,forceMount:r,children:o,container:a}=e,i=Cv(Tv,n);return t.jsx(Rv,{scope:n,forceMount:r,children:t.jsx(ln,{present:r||i.open,children:t.jsx(sn,{asChild:!0,container:a,children:o})})})};Fv.displayName=Tv;var Mv="MenuContent",[jv,Lv]=wv(Mv),Iv=c.forwardRef((e,n)=>{const r=Ov(Mv,e.__scopeMenu),{forceMount:o=r.forceMount,...a}=e,i=Cv(Mv,e.__scopeMenu),s=Dv(Mv,e.__scopeMenu);return t.jsx(bv.Provider,{scope:e.__scopeMenu,children:t.jsx(ln,{present:o||i.open,children:t.jsx(bv.Slot,{scope:e.__scopeMenu,children:s.modal?t.jsx(Pv,{...a,ref:n}):t.jsx(zv,{...a,ref:n})})})})}),Pv=c.forwardRef((e,n)=>{const r=Cv(Mv,e.__scopeMenu),o=c.useRef(null),a=it(n,o);return c.useEffect(()=>{const e=o.current;if(e)return ar(e)},[]),t.jsx(qv,{...e,ref:a,trapFocus:r.open,disableOutsidePointerEvents:r.open,disableOutsideScroll:!0,onFocusOutside:Dt(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>r.onOpenChange(!1)})}),zv=c.forwardRef((e,n)=>{const r=Cv(Mv,e.__scopeMenu);return t.jsx(qv,{...e,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>r.onOpenChange(!1)})}),Bv=Ub("MenuContent.ScrollLock"),qv=c.forwardRef((e,n)=>{const{__scopeMenu:r,loop:o=!1,trapFocus:a,onOpenAutoFocus:i,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,disableOutsideScroll:g,...b}=e,v=Cv(Mv,r),y=Dv(Mv,r),w=Ev(r),x=_v(r),E=vv(r),[_,k]=c.useState(null),C=c.useRef(null),N=it(n,C,v.onContentChange),D=c.useRef(0),S=c.useRef(""),A=c.useRef(0),T=c.useRef(null),R=c.useRef("right"),O=c.useRef(0),F=g?Xn:c.Fragment,M=g?{as:Bv,allowPinchZoom:!0}:void 0,j=e=>{const t=S.current+e,n=E().filter(e=>!e.disabled),r=document.activeElement,o=n.find(e=>e.ref.current===r)?.textValue,a=function(e,t,n){const r=t.length>1&&Array.from(t).every(e=>e===t[0]),o=r?t[0]:t,a=n?e.indexOf(n):-1;let i=(s=e,l=Math.max(a,0),s.map((e,t)=>s[(l+t)%s.length]));var s,l;1===o.length&&(i=i.filter(e=>e!==n));const c=i.find(e=>e.toLowerCase().startsWith(o.toLowerCase()));return c!==n?c:void 0}(n.map(e=>e.textValue),t,o),i=n.find(e=>e.textValue===a)?.ref.current;!function e(t){S.current=t,window.clearTimeout(D.current),""!==t&&(D.current=window.setTimeout(()=>e(""),1e3))}(t),i&&setTimeout(()=>i.focus())};c.useEffect(()=>()=>window.clearTimeout(D.current),[]),dn();const L=c.useCallback(e=>R.current===T.current?.side&&function(e,t){if(!t)return!1;const n={x:e.clientX,y:e.clientY};return function(e,t){const{x:n,y:r}=e;let o=!1;for(let e=0,a=t.length-1;e<t.length;a=e++){const i=t[e],s=t[a],l=i.x,c=i.y,u=s.x,d=s.y;c>r!=d>r&&n<(u-l)*(r-c)/(d-c)+l&&(o=!o)}return o}(n,t)}(e,T.current?.area),[]);return t.jsx(jv,{scope:r,searchRef:S,onItemEnter:c.useCallback(e=>{L(e)&&e.preventDefault()},[L]),onItemLeave:c.useCallback(e=>{L(e)||(C.current?.focus(),k(null))},[L]),onTriggerLeave:c.useCallback(e=>{L(e)&&e.preventDefault()},[L]),pointerGraceTimerRef:A,onPointerGraceIntentChange:c.useCallback(e=>{T.current=e},[]),children:t.jsx(F,{...M,children:t.jsx(Qt,{asChild:!0,trapped:a,onMountAutoFocus:Dt(i,e=>{e.preventDefault(),C.current?.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:t.jsx(Gt,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:d,onPointerDownOutside:f,onFocusOutside:p,onInteractOutside:m,onDismiss:h,children:t.jsx(cv,{asChild:!0,...x,dir:y.dir,orientation:"vertical",loop:o,currentTabStopId:_,onCurrentTabStopIdChange:k,onEntryFocus:Dt(u,e=>{y.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:t.jsx(ui,{role:"menu","aria-orientation":"vertical","data-state":py(v.open),"data-radix-menu-content":"",dir:y.dir,...w,...b,ref:N,style:{outline:"none",...b.style},onKeyDown:Dt(b.onKeyDown,e=>{const t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,r=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&r&&j(e.key));const o=C.current;if(e.target!==o)return;if(!pv.includes(e.key))return;e.preventDefault();const a=E().filter(e=>!e.disabled).map(e=>e.ref.current);fv.includes(e.key)&&a.reverse(),function(e){const t=document.activeElement;for(const n of e){if(n===t)return;if(n.focus(),document.activeElement!==t)return}}(a)}),onBlur:Dt(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(D.current),S.current="")}),onPointerMove:Dt(e.onPointerMove,gy(e=>{const t=e.target,n=O.current!==e.clientX;if(e.currentTarget.contains(t)&&n){const t=e.clientX>O.current?"right":"left";R.current=t,O.current=e.clientX}}))})})})})})})});Iv.displayName=Mv;var Uv=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e;return t.jsx(zt.div,{role:"group",...o,ref:n})});Uv.displayName="MenuGroup";var Hv=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e;return t.jsx(zt.div,{...o,ref:n})});Hv.displayName="MenuLabel";var Wv="MenuItem",Vv="menu.itemSelect",$v=c.forwardRef((e,n)=>{const{disabled:r=!1,onSelect:o,...a}=e,i=c.useRef(null),s=Dv(Wv,e.__scopeMenu),l=Lv(Wv,e.__scopeMenu),u=it(n,i),d=c.useRef(!1);return t.jsx(Gv,{...a,ref:u,disabled:r,onClick:Dt(e.onClick,()=>{const e=i.current;if(!r&&e){const t=new CustomEvent(Vv,{bubbles:!0,cancelable:!0});e.addEventListener(Vv,e=>o?.(e),{once:!0}),Bt(e,t),t.defaultPrevented?d.current=!1:s.onClose()}}),onPointerDown:t=>{e.onPointerDown?.(t),d.current=!0},onPointerUp:Dt(e.onPointerUp,e=>{d.current||e.currentTarget?.click()}),onKeyDown:Dt(e.onKeyDown,e=>{const t=""!==l.searchRef.current;r||t&&" "===e.key||dv.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});$v.displayName=Wv;var Gv=c.forwardRef((e,n)=>{const{__scopeMenu:r,disabled:o=!1,textValue:a,...i}=e,s=Lv(Wv,r),l=_v(r),u=c.useRef(null),d=it(n,u),[f,p]=c.useState(!1),[m,h]=c.useState("");return c.useEffect(()=>{const e=u.current;e&&h((e.textContent??"").trim())},[i.children]),t.jsx(bv.ItemSlot,{scope:r,disabled:o,textValue:a??m,children:t.jsx(uv,{asChild:!0,...l,focusable:!o,children:t.jsx(zt.div,{role:"menuitem","data-highlighted":f?"":void 0,"aria-disabled":o||void 0,"data-disabled":o?"":void 0,...i,ref:d,onPointerMove:Dt(e.onPointerMove,gy(e=>{if(o)s.onItemLeave(e);else if(s.onItemEnter(e),!e.defaultPrevented){e.currentTarget.focus({preventScroll:!0})}})),onPointerLeave:Dt(e.onPointerLeave,gy(e=>s.onItemLeave(e))),onFocus:Dt(e.onFocus,()=>p(!0)),onBlur:Dt(e.onBlur,()=>p(!1))})})})}),Kv=c.forwardRef((e,n)=>{const{checked:r=!1,onCheckedChange:o,...a}=e;return t.jsx(ny,{scope:e.__scopeMenu,checked:r,children:t.jsx($v,{role:"menuitemcheckbox","aria-checked":my(r)?"mixed":r,...a,ref:n,"data-state":hy(r),onSelect:Dt(a.onSelect,()=>o?.(!!my(r)||!r),{checkForDefaultPrevented:!1})})})});Kv.displayName="MenuCheckboxItem";var Zv="MenuRadioGroup",[Yv,Jv]=wv(Zv,{value:void 0,onValueChange:()=>{}}),Xv=c.forwardRef((e,n)=>{const{value:r,onValueChange:o,...a}=e,i=qt(o);return t.jsx(Yv,{scope:e.__scopeMenu,value:r,onValueChange:i,children:t.jsx(Uv,{...a,ref:n})})});Xv.displayName=Zv;var Qv="MenuRadioItem",ey=c.forwardRef((e,n)=>{const{value:r,...o}=e,a=Jv(Qv,e.__scopeMenu),i=r===a.value;return t.jsx(ny,{scope:e.__scopeMenu,checked:i,children:t.jsx($v,{role:"menuitemradio","aria-checked":i,...o,ref:n,"data-state":hy(i),onSelect:Dt(o.onSelect,()=>a.onValueChange?.(r),{checkForDefaultPrevented:!1})})})});ey.displayName=Qv;var ty="MenuItemIndicator",[ny,ry]=wv(ty,{checked:!1}),oy=c.forwardRef((e,n)=>{const{__scopeMenu:r,forceMount:o,...a}=e,i=ry(ty,r);return t.jsx(ln,{present:o||my(i.checked)||!0===i.checked,children:t.jsx(zt.span,{...a,ref:n,"data-state":hy(i.checked)})})});oy.displayName=ty;var ay=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e;return t.jsx(zt.div,{role:"separator","aria-orientation":"horizontal",...o,ref:n})});ay.displayName="MenuSeparator";var iy=c.forwardRef((e,n)=>{const{__scopeMenu:r,...o}=e,a=Ev(r);return t.jsx(di,{...a,...o,ref:n})});iy.displayName="MenuArrow";var[sy,ly]=wv("MenuSub"),cy="MenuSubTrigger",uy=c.forwardRef((e,n)=>{const r=Cv(cy,e.__scopeMenu),o=Dv(cy,e.__scopeMenu),a=ly(cy,e.__scopeMenu),i=Lv(cy,e.__scopeMenu),s=c.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=i,d={__scopeMenu:e.__scopeMenu},f=c.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return c.useEffect(()=>f,[f]),c.useEffect(()=>{const e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]),t.jsx(Av,{asChild:!0,...d,children:t.jsx(Gv,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":r.open,"aria-controls":a.contentId,"data-state":py(r.open),...e,ref:at(n,a.onTriggerChange),onClick:t=>{e.onClick?.(t),e.disabled||t.defaultPrevented||(t.currentTarget.focus(),r.open||r.onOpenChange(!0))},onPointerMove:Dt(e.onPointerMove,gy(t=>{i.onItemEnter(t),t.defaultPrevented||e.disabled||r.open||s.current||(i.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{r.onOpenChange(!0),f()},100))})),onPointerLeave:Dt(e.onPointerLeave,gy(e=>{f();const t=r.content?.getBoundingClientRect();if(t){const n=r.content?.dataset.side,o="right"===n,a=o?-5:5,s=t[o?"left":"right"],c=t[o?"right":"left"];i.onPointerGraceIntentChange({area:[{x:e.clientX+a,y:e.clientY},{x:s,y:t.top},{x:c,y:t.top},{x:c,y:t.bottom},{x:s,y:t.bottom}],side:n}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>i.onPointerGraceIntentChange(null),300)}else{if(i.onTriggerLeave(e),e.defaultPrevented)return;i.onPointerGraceIntentChange(null)}})),onKeyDown:Dt(e.onKeyDown,t=>{const n=""!==i.searchRef.current;e.disabled||n&&" "===t.key||mv[o.dir].includes(t.key)&&(r.onOpenChange(!0),r.content?.focus(),t.preventDefault())})})})});uy.displayName=cy;var dy="MenuSubContent",fy=c.forwardRef((e,n)=>{const r=Ov(Mv,e.__scopeMenu),{forceMount:o=r.forceMount,...a}=e,i=Cv(Mv,e.__scopeMenu),s=Dv(Mv,e.__scopeMenu),l=ly(dy,e.__scopeMenu),u=c.useRef(null),d=it(n,u);return t.jsx(bv.Provider,{scope:e.__scopeMenu,children:t.jsx(ln,{present:o||i.open,children:t.jsx(bv.Slot,{scope:e.__scopeMenu,children:t.jsx(qv,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:d,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{s.isUsingKeyboardRef.current&&u.current?.focus(),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:Dt(e.onFocusOutside,e=>{e.target!==l.trigger&&i.onOpenChange(!1)}),onEscapeKeyDown:Dt(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:Dt(e.onKeyDown,e=>{const t=e.currentTarget.contains(e.target),n=hv[s.dir].includes(e.key);t&&n&&(i.onOpenChange(!1),l.trigger?.focus(),e.preventDefault())})})})})})});function py(e){return e?"open":"closed"}function my(e){return"indeterminate"===e}function hy(e){return my(e)?"indeterminate":e?"checked":"unchecked"}function gy(e){return t=>"mouse"===t.pointerType?e(t):void 0}fy.displayName=dy;var by=Sv,vy=Av,yy=Fv,wy=Iv,xy=Uv,Ey=Hv,_y=$v,ky=Kv,Cy=Xv,Ny=ey,Dy=oy,Sy=ay,Ay=iy,Ty=uy,Ry=fy,Oy="DropdownMenu",[Fy,My]=St(Oy,[xv]),jy=xv(),[Ly,Iy]=Fy(Oy),Py=e=>{const{__scopeDropdownMenu:n,children:r,dir:o,open:a,defaultOpen:i,onOpenChange:s,modal:l=!0}=e,u=jy(n),d=c.useRef(null),[f,p]=jt({prop:a,defaultProp:i??!1,onChange:s,caller:Oy});return t.jsx(Ly,{scope:n,triggerId:Ft(),triggerRef:d,contentId:Ft(),open:f,onOpenChange:p,onOpenToggle:c.useCallback(()=>p(e=>!e),[p]),modal:l,children:t.jsx(by,{...u,open:f,onOpenChange:p,dir:o,modal:l,children:r})})};Py.displayName=Oy;var zy="DropdownMenuTrigger",By=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,disabled:o=!1,...a}=e,i=Iy(zy,r),s=jy(r);return t.jsx(vy,{asChild:!0,...s,children:t.jsx(zt.button,{type:"button",id:i.triggerId,"aria-haspopup":"menu","aria-expanded":i.open,"aria-controls":i.open?i.contentId:void 0,"data-state":i.open?"open":"closed","data-disabled":o?"":void 0,disabled:o,...a,ref:at(n,i.triggerRef),onPointerDown:Dt(e.onPointerDown,e=>{o||0!==e.button||!1!==e.ctrlKey||(i.onOpenToggle(),i.open||e.preventDefault())}),onKeyDown:Dt(e.onKeyDown,e=>{o||(["Enter"," "].includes(e.key)&&i.onOpenToggle(),"ArrowDown"===e.key&&i.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});By.displayName=zy;var qy=e=>{const{__scopeDropdownMenu:n,...r}=e,o=jy(n);return t.jsx(yy,{...o,...r})};qy.displayName="DropdownMenuPortal";var Uy="DropdownMenuContent",Hy=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=Iy(Uy,r),i=jy(r),s=c.useRef(!1);return t.jsx(wy,{id:a.contentId,"aria-labelledby":a.triggerId,...i,...o,ref:n,onCloseAutoFocus:Dt(e.onCloseAutoFocus,e=>{s.current||a.triggerRef.current?.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:Dt(e.onInteractOutside,e=>{const t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,r=2===t.button||n;a.modal&&!r||(s.current=!0)}),style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Hy.displayName=Uy;c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(xy,{...a,...o,ref:n})}).displayName="DropdownMenuGroup";var Wy=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(Ey,{...a,...o,ref:n})});Wy.displayName="DropdownMenuLabel";var Vy=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(_y,{...a,...o,ref:n})});Vy.displayName="DropdownMenuItem";var $y=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(ky,{...a,...o,ref:n})});$y.displayName="DropdownMenuCheckboxItem";c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(Cy,{...a,...o,ref:n})}).displayName="DropdownMenuRadioGroup";var Gy=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(Ny,{...a,...o,ref:n})});Gy.displayName="DropdownMenuRadioItem";var Ky=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(Dy,{...a,...o,ref:n})});Ky.displayName="DropdownMenuItemIndicator";var Zy=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(Sy,{...a,...o,ref:n})});Zy.displayName="DropdownMenuSeparator";c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(Ay,{...a,...o,ref:n})}).displayName="DropdownMenuArrow";var Yy=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(Ty,{...a,...o,ref:n})});Yy.displayName="DropdownMenuSubTrigger";var Jy=c.forwardRef((e,n)=>{const{__scopeDropdownMenu:r,...o}=e,a=jy(r);return t.jsx(Ry,{...a,...o,ref:n,style:{...e.style,"--radix-dropdown-menu-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-dropdown-menu-content-available-width":"var(--radix-popper-available-width)","--radix-dropdown-menu-content-available-height":"var(--radix-popper-available-height)","--radix-dropdown-menu-trigger-width":"var(--radix-popper-anchor-width)","--radix-dropdown-menu-trigger-height":"var(--radix-popper-anchor-height)"}})});Jy.displayName="DropdownMenuSubContent";var Xy=qy,Qy=Hy,ew=Wy,tw=Vy,nw=$y,rw=Gy,ow=Ky,aw=Zy,iw=Yy,sw=Jy,lw=Py,cw=By,uw=c.forwardRef(function(e,t){var n=e.className,r=e.inset,o=e.children,a=_(e,["className","inset","children"]);return c.createElement(iw,Object.assign({ref:t,className:nt("flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none focus:bg-accent data-[state=open]:bg-accent [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",n)},a),o,c.createElement(R,{className:"ml-auto"}))});uw.displayName=iw.displayName;var dw=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(sw,Object.assign({ref:t,className:nt("z-50 min-w-[8rem] overflow-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-lg data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 origin-[--radix-dropdown-menu-content-transform-origin]",n)},r))});dw.displayName=sw.displayName;var fw=c.forwardRef(function(e,t){var n=e.className,r=e.sideOffset,o=void 0===r?4:r,a=_(e,["className","sideOffset"]);return c.createElement(Xy,null,c.createElement(Qy,Object.assign({ref:t,sideOffset:o,className:nt("z-50 max-h-[var(--radix-dropdown-menu-content-available-height)] min-w-[8rem] overflow-y-auto overflow-x-hidden rounded-md border bg-popover p-1 text-popover-foreground shadow-md data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-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 origin-[--radix-dropdown-menu-content-transform-origin]",n)},a)))});fw.displayName=Qy.displayName;var pw=c.forwardRef(function(e,t){var n=e.className,r=e.inset,o=_(e,["className","inset"]);return c.createElement(tw,Object.assign({ref:t,className:nt("relative flex cursor-default select-none items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:size-4 [&_svg]:shrink-0",r&&"pl-8",n)},o))});pw.displayName=tw.displayName;var mw=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=e.checked,a=_(e,["className","children","checked"]);return c.createElement(nw,Object.assign({ref:t,className:nt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n),checked:o},a),c.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},c.createElement(ow,null,c.createElement(S,{className:"h-4 w-4"}))),r)});mw.displayName=nw.displayName;var hw=c.forwardRef(function(e,t){var n=e.className,r=e.children,o=_(e,["className","children"]);return c.createElement(rw,Object.assign({ref:t,className:nt("relative flex cursor-default select-none items-center rounded-sm py-1.5 pl-8 pr-2 text-sm outline-none transition-colors focus:bg-accent focus:text-accent-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50",n)},o),c.createElement("span",{className:"absolute left-2 flex h-3.5 w-3.5 items-center justify-center"},c.createElement(ow,null,c.createElement(M,{className:"h-2 w-2 fill-current"}))),r)});hw.displayName=rw.displayName;var gw=c.forwardRef(function(e,t){var n=e.className,r=e.inset,o=_(e,["className","inset"]);return c.createElement(ew,Object.assign({ref:t,className:nt("px-2 py-1.5 text-sm font-semibold",r&&"pl-8",n)},o))});gw.displayName=ew.displayName;var bw=c.forwardRef(function(e,t){var n=e.className,r=_(e,["className"]);return c.createElement(aw,Object.assign({ref:t,className:nt("-mx-1 my-1 h-px bg-muted",n)},r))});bw.displayName=aw.displayName;var vw=[{code:"zh-CN",label:"简体中文"},{code:"en-US",label:"English"}];function yw(){var t,n=Nu(),r=n.locale,o=n.setLocale,a=vw.find(function(e){return e.code===r}),i=null!==(t=null==a?void 0:a.label)&&void 0!==t?t:"Language";return e.createElement(lw,null,e.createElement(cw,{asChild:!0},e.createElement(yt,{variant:"outline",size:"sm",className:"h-9 w-full justify-between rounded-lg border-transparent bg-sidebar-accent/28 px-3 text-[13px] font-medium text-muted-foreground shadow-none hover:scale-100 hover:border-transparent hover:bg-sidebar-accent/55 hover:text-foreground hover:shadow-none active:scale-100",title:"Switch Language / 切换语言"},e.createElement("span",{className:"flex min-w-0 items-center gap-2"},e.createElement(U,{className:"h-4 w-4 shrink-0"}),e.createElement("span",{className:"truncate"},i)),e.createElement(F,{className:"h-4 w-4 shrink-0"}))),e.createElement(fw,{align:"end",className:"w-48"},vw.map(function(t){return e.createElement(pw,{key:t.code,onClick:function(){return o(t.code)},className:r===t.code?"bg-muted":""},t.label,r===t.code&&e.createElement(S,{className:"ml-auto h-4 w-4"}))})))}var ww=X,xw=oe,Ew=K;function _w(e){return kw.apply(this,arguments)}function kw(){return kw=p(g().m(function e(t){var n,r;return g().w(function(e){for(;;)switch(e.n){case 0:if(t){e.n=1;break}return e.a(2);case 1:if(!(null===(n=null===navigator||void 0===navigator?void 0:navigator.clipboard)||void 0===n?void 0:n.writeText)){e.n=3;break}return e.n=2,navigator.clipboard.writeText(t);case 2:return e.a(2);case 3:(r=document.createElement("textarea")).value=t,r.style.position="fixed",r.style.left="-9999px",document.body.appendChild(r),r.select(),document.execCommand("copy"),document.body.removeChild(r);case 4:return e.a(2)}},e)})),kw.apply(this,arguments)}function Cw(t){var n=t.inputModels,r=t.skipAuth,o=void 0!==r&&r,a=t.brandName,i=void 0===a?"super CMS":a,s=t.uploadHandler,l=Cu(),c=Nu().locale,u=v(e.useState("/data"),2),d=u[0],f=u[1],h=v(e.useState([]),2);h[0],h[1];var b=v(e.useState(!1),2),w=b[0],x=b[1],E=v(e.useState(null),2),_=E[0],k=E[1],C=v(e.useState(!0),2),N=C[0],D=C[1],S=v(e.useState(null),2),A=S[0],T=S[1],R=v(e.useState([]),2),O=R[0],F=R[1],M=function(){var e=eu();if(e)return e;try{return localStorage.getItem("cms_session_id")||void 0}catch(e){return}}();e.useEffect(function(){try{var e=localStorage.getItem("cms_models_order");e&&F(JSON.parse(e))}catch(e){}},[]);var j=e.useMemo(function(){if(0===O.length)return n.models;var e=new Map(n.models.map(function(e){return[e.id,e]})),t=O.map(function(t){return e.get(t)}).filter(function(e){return void 0!==e}),r=new Set(O),o=n.models.filter(function(e){return!r.has(e.id)});return[].concat(y(t),y(o))},[n.models,O]),I=e.useMemo(function(){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Qc();return e.map(function(e){if(!(null==e?void 0:e.table_name))return e;var n=nu(e.table_name,t);return n===e.table_name?e:Object.assign(Object.assign({},e),{table_name:n})})}(j,M)},[j,M]),P=e.useMemo(function(){return qb({models:I},l,c)},[I,c]);e.useEffect(function(){if(o)return x(!0),k(null),D(!1),void("/login"===d&&f("/data"));var e=function(){var e=p(g().m(function e(){var t,n;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,mu()){e.n=1;break}return x(!1),f("/login"),D(!1),e.a(2);case 1:return e.p=1,e.n=2,du();case 2:if(e.v.success){e.n=3;break}throw new Error("token验证失败");case 3:if(!(t=hu())){e.n=4;break}k(t),e.n=6;break;case 4:return e.n=5,fu();case 5:(n=e.v).success&&n.data&&(k(n.data),localStorage.setItem("cms_user",JSON.stringify(n.data)));case 6:x(!0),"/login"===d&&f("/data"),e.n=8;break;case 7:e.p=7,e.v,pu(),x(!1),k(null),f("/login");case 8:e.n=10;break;case 9:e.p=9,e.v,x(!1),k(null),f("/login");case 10:return e.p=10,D(!1),e.f(10);case 11:return e.a(2)}},e,null,[[1,7],[0,9,10,11]])}));return function(){return e.apply(this,arguments)}}();e()},[o]);var B=function(e,t){k(t),x(!0),f("/data"),Os.success("".concat(l("auth.welcome"),", ").concat(t.username,"!"))},q=function(){var e=p(g().m(function e(){var t,n;return g().w(function(e){for(;;)switch(e.p=e.n){case 0:if(n=null===(t=null==_?void 0:_.username)||void 0===t?void 0:t.trim()){e.n=1;break}return e.a(2);case 1:return e.p=1,e.n=2,_w(n);case 2:Os.success(l("settings.usernameCopied")),e.n=4;break;case 3:e.p=3,e.v,Os.error(l("settings.copyFailed"));case 4:return e.a(2)}},e,null,[[1,3]])}));return function(){return e.apply(this,arguments)}}(),U=function(e,t){var n,r=m(e);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(o.path===t)return o;if(o.routes){var a=U(o.routes,t);if(a)return a}}}catch(e){r.e(e)}finally{r.f()}return null};if(N)return e.createElement("div",{className:"flex min-h-screen items-center justify-center bg-background"},e.createElement("div",{className:"space-y-4"},e.createElement(rt,{className:"h-12 w-48"}),e.createElement(rt,{className:"h-4 w-64"})));if(!w)return e.createElement(Su,{onLoginSuccess:B});var W=P.filter(function(e){return"/login"!==e.path}),V=function(t){if(!t)return L;if(e.isValidElement(t)){var n=t.type;if(n&&"function"==typeof n){var r=n.name||"";if(r.includes("Home"))return H;if(r.includes("Table"))return te;if(r.includes("Database"))return L;if(r.includes("File"))return z}}return L},$=W.flatMap(function(e){return e.routes&&e.routes.length>0?e.routes.map(function(e){return{title:e.name,icon:V(e.icon),path:e.path}}):[{title:e.name,icon:V(e.icon),path:e.path}]}),G=function(e){return function(t){T(e),t.dataTransfer.effectAllowed="move"}},K=function(e){return function(t){if(t.preventDefault(),t.dataTransfer.dropEffect="move",null!==A&&A!==e){var n=P.find(function(e){return"/data"===e.path});if(null==n?void 0:n.routes){var r=y(n.routes.map(function(e){var t=e.path.match(/\/data\/list-(\d+)/);return t?parseInt(t[1],10):null}).filter(function(e){return null!==e})),o=v(r.splice(A,1),1)[0];r.splice(e,0,o),function(e){try{localStorage.setItem("cms_models_order",JSON.stringify(e)),F(e)}catch(e){}}(r),T(e)}}}},Z=function(){T(null)};return e.createElement("div",{className:"we0-cms-root"},e.createElement(rd,{uploadHandler:s},e.createElement(Ki,null,e.createElement(Zi,{variant:"inset",className:"bg-[hsl(var(--sidebar-background))]/88 shadow-[8px_0_30px_-28px_rgba(15,23,42,0.28)]"},e.createElement(Xi,{className:"px-4 py-3"},e.createElement("div",{className:"flex min-w-0 items-center gap-3"},e.createElement("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl bg-sidebar-accent/65 text-sidebar-foreground shadow-[0_8px_18px_-16px_rgba(15,23,42,0.45)]"},e.createElement(ww,{className:"h-4 w-4"})),e.createElement("span",{className:"truncate text-sm font-semibold tracking-tight text-foreground"},i))),e.createElement(es,{className:"px-2 py-3"},e.createElement(ts,{className:"p-0"},e.createElement(ns,{className:"mb-2 h-auto justify-between px-2 text-[11px] font-semibold uppercase tracking-[0.14em] text-muted-foreground/80"},e.createElement("span",null,l("settings.navigation")),e.createElement("span",{className:"normal-case tracking-normal text-muted-foreground/60"},l("settings.dragToReorder"))),e.createElement(rs,null,e.createElement(os,{className:"gap-1.5"},$.map(function(t,n){var r,o=t.path.startsWith("/data/list-"),a=(r=t.path,d===r||d.startsWith(r+"/"));return e.createElement(as,{key:t.path,draggable:o,onDragStart:o?G(n):void 0,onDragOver:o?K(n):void 0,onDragEnd:o?Z:void 0,className:o&&A===n?"opacity-50":"",style:{cursor:o?"move":"default"}},e.createElement(ss,{onClick:function(){return f(t.path)},isActive:a,tooltip:t.title,className:["h-9 rounded-lg px-3 text-[13px] font-medium text-muted-foreground transition-colors","hover:bg-sidebar-accent/70 hover:text-foreground active:bg-sidebar-accent","data-[active=true]:bg-sidebar-accent/80 data-[active=true]:text-foreground data-[active=true]:shadow-[inset_3px_0_0_hsl(var(--primary))]"].join(" ")},e.createElement(t.icon,{className:"h-4 w-4"}),e.createElement("span",null,t.title)))}))))),e.createElement(Qi,{className:"px-3 py-3"},e.createElement("div",{className:"flex flex-col gap-2"},!o&&_&&e.createElement(os,{className:"gap-1"},e.createElement(as,null,e.createElement(ss,{onClick:function(){q()},tooltip:l("settings.copyUsername"),title:l("settings.copyUsername"),className:"h-9 rounded-lg px-3 text-[13px] text-muted-foreground hover:bg-sidebar-accent/70 hover:text-foreground"},e.createElement(xw,{className:"h-4 w-4"}),e.createElement("span",{className:"truncate"},_.username))),e.createElement(as,null,e.createElement(ss,{onClick:function(){window.confirm(l("auth.logoutConfirm"))&&(pu(),localStorage.removeItem("cms_token"),localStorage.removeItem("cms_user"),x(!1),k(null),f("/login"),Os.success(l("auth.logoutSuccess")))},tooltip:l("auth.logout"),className:"h-9 rounded-lg px-3 text-[13px] text-muted-foreground hover:bg-sidebar-accent/70 hover:text-foreground"},e.createElement(Ew,{className:"h-4 w-4"}),e.createElement("span",null,l("auth.logout"))))),e.createElement("div",null,e.createElement(yw,null))))),e.createElement(Ji,null,e.createElement("header",{className:"sticky top-0 z-10 flex h-16 items-center gap-4 bg-background/78 px-6 backdrop-blur-sm"},e.createElement(Yi,null),e.createElement("h1",{className:"text-xl font-bold text-foreground"},function(){if("/login"===d)return l("auth.login");var e=U(P,d);return(null==e?void 0:e.name)||l("data.dataManagement")}())),e.createElement("main",{className:"flex-1 min-w-0 p-8 bg-gradient-to-br from-background via-background to-muted/20"},function(){if(!o&&"/login"===d)return e.createElement(Su,{onLoginSuccess:B});if(o&&"/login"===d)return e.createElement(Au,null);var t=U(P,d);if(t){var n=t.component;return e.createElement(n,null)}return e.createElement(Au,null)}())))))}function Nw(t){var n=t.defaultLocale,r=_(t,["defaultLocale"]);return e.createElement(_u,{defaultLocale:n},e.createElement(Cw,Object.assign({},r)))}exports.CmsLayoutShadcn=Nw,exports.I18nProvider=_u,exports.RichTextEditor=zh,exports.RichTextViewer=Bh,exports.cmsRoutes=qb,exports.default=Nw,exports.setSessionId=su,exports.useLocale=Nu,exports.useT=Cu,exports.useTranslation=ku;
|
|
19
19
|
//# sourceMappingURL=index.js.map
|