PageSourceSearch

https://schnucks.com/_next/static/chunks/12ccb605.58c90937a1b03cfb.js

js schnucks.com collected 2026-10-01 11:36:58 UTC 1,768,726 bytes, 554 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[69767],{8558:function(e,t,n){let i,a,o,s,l;n.r(t),n.d(t,{$:function(){return CY},A:function(){return Kk},B:function(){return K_},C:function(){return bO},D:function(){return yA},E:function(){return bH},F:function(){return KT},G:function(){return KE},H:function(){return kn},I:function(){return kr},J:function(){return ki},K:function(){return ks},L:function(){return kl},M:function(){return kt},N:function(){return ku},O:function(){return kc},P:function(){return wh},Q:function(){return kd},R:function(){return zX},S:function(){return wb},T:function(){return ej},U:function(){return kp},V:function(){return kh},W:function(){return km},X:function(){return kf},Y:function(){return kg},Z:function(){return Cq},_:function(){return CW},a:function(){return MS},a$:function(){return iN},a0:function(){return CG},a1:function(){return MR},a2:function(){return ML},a3:function(){return MO},a4:function(){return MB},a5:function(){return Mj},a6:function(){return CH},a7:function(){return MF},a8:function(){return MM},a9:function(){return MP},aA:function(){return Bk},aB:function(){return B_},aC:function(){return BT},aD:function(){return BE},aE:function(){return BS},aF:function(){return BA},aG:function(){return BC},aH:function(){return BN},aI:function(){return BI},aJ:function(){return BM},aK:function(){return BP},aL:function(){return BR},aM:function(){return BD},aN:function(){return O9},aO:function(){return Be},aP:function(){return Bt},aQ:function(){return O2},aR:function(){return O5},aS:function(){return O8},aT:function(){return BL},aU:function(){return BO},aV:function(){return BB},aW:function(){return Bj},aX:function(){return ju},aY:function(){return jc},aZ:function(){return iA},a_:function(){return iC},aa:function(){return MI},ab:function(){return M$},ac:function(){return MJ},ad:function(){return M0},ae:function(){return M1},af:function(){return O6},ag:function(){return Bn},ah:function(){return Br},ai:function(){return Bi},aj:function(){return Ba},ak:function(){return Bo},al:function(){return Bs},am:function(){return Bl},an:function(){return Bu},ao:function(){return Bc},ap:function(){return Bd},aq:function(){return Bp},ar:function(){return Bh},as:function(){return Bm},at:function(){return Bf},au:function(){return Bg},av:function(){return Bx},aw:function(){return Bv},ax:function(){return By},ay:function(){return Bb},az:function(){return Bw},b:function(){return Md},b$:function(){return Yu},b0:function(){return iI},b1:function(){return iM},b2:function(){return iP},b3:function(){return iR},b4:function(){return iD},b5:function(){return iL},b6:function(){return ik},b7:function(){return i_},b8:function(){return jg},b9:function(){return jx},bA:function(){return Wm},bB:function(){return Wf},bC:function(){return Wg},bD:function(){return Wx},bE:function(){return Wv},bF:function(){return Wy},bG:function(){return Wb},bH:function(){return Ww},bI:function(){return W_},bJ:function(){return WT},bK:function(){return WE},bL:function(){return WS},bM:function(){return WN},bN:function(){return WI},bO:function(){return WM},bP:function(){return WP},bQ:function(){return WR},bR:function(){return WD},bS:function(){return WL},bT:function(){return WO},bU:function(){return Ye},bV:function(){return Yt},bW:function(){return Yn},bX:function(){return Yr},bY:function(){return Yi},bZ:function(){return Ys},b_:function(){return Yl},ba:function(){return jv},bb:function(){return jy},bc:function(){return jb},bd:function(){return jw},be:function(){return jk},bf:function(){return j_},bg:function(){return jT},bh:function(){return jE},bi:function(){return jS},bj:function(){return jA},bk:function(){return jC},bl:function(){return jN},bm:function(){return jI},bn:function(){return VR},bo:function(){return VD},bp:function(){return VU},bq:function(){return VG},br:function(){return Vq},bs:function(){return VV},bt:function(){return VW},bu:function(){return VY},bv:function(){return VK},bw:function(){return VZ},bx:function(){return V$},by:function(){return Wd},bz:function(){return Wh},c:function(){return j},c$:function(){return Kg},c0:function(){return Yc},c1:function(){return Yd},c2:function(){return Yp},c3:function(){return Yh},c4:function(){return Ym},c5:function(){return Yf},c6:function(){return Yg},c7:function(){return Yx},c8:function(){return Yv},c9:function(){return Yy},cA:function(){return YZ},cB:function(){return Y$},cC:function(){return YJ},cD:function(){return Y0},cE:function(){return Y1},cF:function(){return Y2},cG:function(){return Y4},cH:function(){return Y5},cI:function(){return Y3},cJ:function(){return Y6},cK:function(){return Y7},cL:function(){return Y8},cM:function(){return Y9},cN:function(){return Ke},cO:function(){return Kt},cP:function(){return Kn},cQ:function(){return Kr},cR:function(){return Ki},cS:function(){return Ka},cT:function(){return Ko},cU:function(){return Ks},cV:function(){return Kl},cW:function(){return Ku},cX:function(){return Kc},cY:function(){return Kd},cZ:function(){return Km},c_:function(){return Kf},ca:function(){return Yb},cb:function(){return Yw},cc:function(){return Yk},cd:function(){return Y_},ce:function(){return YT},cf:function(){return YE},cg:function(){return YS},ch:function(){return YA},ci:function(){return YC},cj:function(){return YN},ck:function(){return YR},cl:function(){return YD},cm:function(){return YL},cn:function(){return YO},co:function(){return YB}
1,cp:function(){return Yj},cq:function(){return Yz},cr:function(){return YF},cs:function(){return YH},ct:function(){return YU},cu:function(){return YG},cv:function(){return Yq},cw:function(){return YY},cx:function(){return YK},cy:function(){return YX},cz:function(){return YQ},d:function(){return Fo},d0:function(){return Kx},d1:function(){return Kv},d2:function(){return Ky},d3:function(){return cr},e:function(){return zC},f:function(){return zN},g:function(){return z},h:function(){return zI},i:function(){return Fn},j:function(){return U},k:function(){return z9},l:function(){return yT},m:function(){return wv},n:function(){return Fe},o:function(){return wy},p:function(){return wd},q:function(){return bX},r:function(){return zY},s:function(){return zh},t:function(){return eH},u:function(){return yE},v:function(){return iB},w:function(){return wc},x:function(){return bG},y:function(){return bW},z:function(){return Kw}});var u,c,d,p,h,m,f,g,x,v,b,w,k,_,T,E,A,C,N,I=n(67294),M=n(68710),P=n(73935),R=n(34155),D=n(48764).lW,L=Object.defineProperty,O=(e,t,n)=>t in e?L(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t,n)=>O(e,"symbol"!=typeof t?t+"":t,n),j="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{};function z(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var F={exports:{}},H={};F.exports=function(){if(r2)return H;r2=1;var e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),n=Object.prototype.hasOwnProperty,i=I.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,a={key:!0,ref:!0,__self:!0,__source:!0};function o(t,o,s){var l,u={},c=null,d=null;for(l in void 0!==s&&(c=""+s),void 0!==o.key&&(c=""+o.key),void 0!==o.ref&&(d=o.ref),o)n.call(o,l)&&!a.hasOwnProperty(l)&&(u[l]=o[l]);if(t&&t.defaultProps)for(l in o=t.defaultProps)void 0===u[l]&&(u[l]=o[l]);return{$$typeof:e,type:t,key:c,ref:d,props:u,_owner:i.current}}return H.Fragment=t,H.jsx=o,H.jsxs=o,H}();var U=F.exports;let G=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),q=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),V=e=>{let t=q(e);return t.charAt(0).toUpperCase()+t.slice(1)},W=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),Y=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var K={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let X=(0,I.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:o,iconNode:s,...l},u)=>(0,I.createElement)("svg",{ref:u,...K,width:t,height:t,stroke:e,strokeWidth:i?24*Number(n)/Number(t):n,className:W("lucide",a),...!o&&!Y(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>(0,I.createElement)(e,t)),...Array.isArray(o)?o:[o]])),Q=(e,t)=>{let n=(0,I.forwardRef)(({className:n,...i},a)=>(0,I.createElement)(X,{ref:a,iconNode:t,className:W(`lucide-${G(V(e))}`,`lucide-${e}`,n),...i}));return n.displayName=V(e),n},Z=Q("arrow-down",[["path",{d:"M12 5v14",key:"s699le"}],["path",{d:"m19 12-7 7-7-7",key:"1idqje"}]]),$=Q("arrow-left",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),J=Q("arrow-right",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]),ee=Q("book",[["path",{d:"M4 19.5v-15A2.5 2.5 0 0 1 6.5 2H19a1 1 0 0 1 1 1v18a1 1 0 0 1-1 1H6.5a1 1 0 0 1 0-5H20",key:"k3hazp"}]]),et=Q("bookmark",[["path",{d:"m19 21-7-4-7 4V5a2 2 0 0 1 2-2h10a2 2 0 0 1 2 2v16z",key:"1fy3hk"}]]),en=Q("brain",[["path",{d:"M12 18V5",key:"adv99a"}],["path",{d:"M15 13a4.17 4.17 0 0 1-3-4 4.17 4.17 0 0 1-3 4",key:"1e3is1"}],["path",{d:"M17.598 6.5A3 3 0 1 0 12 5a3 3 0 1 0-5.598 1.5",key:"1gqd8o"}],["path",{d:"M17.997 5.125a4 4 0 0 1 2.526 5.77",key:"iwvgf7"}],["path",{d:"M18 18a4 4 0 0 0 2-7.464",key:"efp6ie"}],["path",{d:"M19.967 17.483A4 4 0 1 1 12 18a4 4 0 1 1-7.967-.517",key:"1gq6am"}],["path",{d:"M6 18a4 4 0 0 1-2-7.464",key:"k1g0md"}],["path",{d:"M6.003 5.125a4 4 0 0 0-2.526 5.77",key:"q97ue3"}]]),er=Q("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),ei=Q("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),ea=Q("chevron-left",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),eo=Q("chevron-right",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),es=Q("chevron-up",[["path",{d:"m18 15-6-6-6 6",key:"153udz"}]]),el=Q("chevrons-up-down",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),eu=Q("circle-alert",[["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"}]]),ec=Q("circle-check-big",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),ed=Q("circle-x",[["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"}]]),ep=Q("circle",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]]),eh=Q("clock",[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}
1]]),em=Q("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),ef=Q("corner-down-left",[["path",{d:"M20 4v7a4 4 0 0 1-4 4H4",key:"6o5b7l"}],["path",{d:"m9 10-5 5 5 5",key:"1kshq7"}]]),eg=Q("dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]),ex=Q("external-link",[["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"}]]),ev=Q("file-question-mark",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M12 17h.01",key:"p32p05"}],["path",{d:"M9.1 9a3 3 0 0 1 5.82 1c0 2-3 3-3 3",key:"mhlwft"}]]),ey=Q("file-text",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}],["path",{d:"M10 9H8",key:"b1mrlr"}],["path",{d:"M16 13H8",key:"t4e002"}],["path",{d:"M16 17H8",key:"z1uh3a"}]]),eb=Q("file",[["path",{d:"M6 22a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h8a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8v12a2 2 0 0 1-2 2z",key:"1oefj6"}],["path",{d:"M14 2v5a1 1 0 0 0 1 1h5",key:"wfsgrz"}]]),ew=Q("image",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",ry:"2",key:"1m3agn"}],["circle",{cx:"9",cy:"9",r:"2",key:"af1f0g"}],["path",{d:"m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21",key:"1xmnt7"}]]),ek=Q("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),e_=Q("message-circle",[["path",{d:"M2.992 16.342a2 2 0 0 1 .094 1.167l-1.065 3.29a1 1 0 0 0 1.236 1.168l3.413-.998a2 2 0 0 1 1.099.092 10 10 0 1 0-4.777-4.719",key:"1sd12s"}]]),eT=Q("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]]),eE=Q("music",[["path",{d:"M9 18V5l12-2v13",key:"1jmyc2"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["circle",{cx:"18",cy:"16",r:"3",key:"1hluhg"}]]),eS=Q("paperclip",[["path",{d:"m16 6-8.414 8.586a2 2 0 0 0 2.829 2.829l8.414-8.586a4 4 0 1 0-5.657-5.657l-8.379 8.551a6 6 0 1 0 8.485 8.485l8.379-8.551",key:"1miecu"}]]),eA=Q("plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),eC=Q("search",[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]]),eN=Q("send",[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]]),eI=Q("square",[["rect",{width:"18",height:"18",x:"3",y:"3",rx:"2",key:"afitv7"}]]),eM=Q("users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]]),eP=Q("utensils-crossed",[["path",{d:"m16 2-2.3 2.3a3 3 0 0 0 0 4.2l1.8 1.8a3 3 0 0 0 4.2 0L22 8",key:"n7qcjb"}],["path",{d:"M15 15 3.3 3.3a4.2 4.2 0 0 0 0 6l7.3 7.3c.7.7 2 .7 2.8 0L15 15Zm0 0 7 7",key:"d0u48b"}],["path",{d:"m2.1 21.8 6.4-6.3",key:"yn04lh"}],["path",{d:"m19 5-7 7",key:"194lzd"}]]),eR=Q("video",[["path",{d:"m16 13 5.223 3.482a.5.5 0 0 0 .777-.416V7.87a.5.5 0 0 0-.752-.432L16 10.5",key:"ftymec"}],["rect",{x:"2",y:"6",width:"14",height:"12",rx:"2",key:"158x01"}]]),eD=Q("wrench",[["path",{d:"M14.7 6.3a1 1 0 0 0 0 1.4l1.6 1.6a1 1 0 0 0 1.4 0l3.106-3.105c.32-.322.863-.22.983.218a6 6 0 0 1-8.259 7.057l-7.91 7.91a1 1 0 0 1-2.999-3l7.91-7.91a6 6 0 0 1 7.057-8.259c.438.12.54.662.219.984z",key:"1ngwbx"}]]),eL=Q("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),eO={"input-streaming":{label:"Preparing",icon:U.jsx(ek,{size:12,className:"animate-spin",style:{animation:"spin 1s linear infinite"}}),color:"#6b7280",bgColor:"#f3f4f6"},"input-available":{label:"Running",icon:U.jsx(eh,{size:12}),color:"#2563eb",bgColor:"#dbeafe"}
1,"output-available":{label:"Completed",icon:U.jsx(ec,{size:12}),color:"#16a34a",bgColor:"#dcfce7"},"output-error":{label:"Error",icon:U.jsx(ed,{size:12}),color:"#dc2626",bgColor:"#fee2e2"}},eB={container:{marginBottom:"8px",borderRadius:"8px",border:"1px solid #e5e5e5",overflow:"hidden",backgroundColor:"#ffffff"},header:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:"10px 12px",cursor:"pointer",backgroundColor:"#fafafa",transition:"background-color 0.15s"},headerOpen:{borderBottom:"1px solid #e5e5e5"},headerLeft:{display:"flex",alignItems:"center",gap:"8px"},toolIcon:{color:"#6b7280",flexShrink:0},toolName:{fontWeight:500,fontSize:"13px",color:"#374151"},badge:e=>({display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 8px",borderRadius:"9999px",fontSize:"11px",fontWeight:500,color:eO[e].color,backgroundColor:eO[e].bgColor}),chevron:e=>({color:"#9ca3af",transition:"transform 0.2s",transform:e?"rotate(180deg)":"rotate(0deg)"}),content:{padding:"12px",backgroundColor:"#ffffff"},section:{marginBottom:"12px"},sectionLast:{marginBottom:0},sectionLabel:{fontSize:"10px",fontWeight:600,textTransform:"uppercase",letterSpacing:"0.05em",color:"#9ca3af",marginBottom:"6px"},codeBlock:{padding:"8px 10px",backgroundColor:"#f9fafb",borderRadius:"6px",fontSize:"12px",fontFamily:"ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace",color:"#374151",whiteSpace:"pre-wrap",wordBreak:"break-word",overflow:"auto",maxHeight:"150px"},errorBlock:{padding:"8px 10px",backgroundColor:"#fef2f2",borderRadius:"6px",fontSize:"12px",color:"#dc2626"}};function ej({tool:e,defaultOpen:t=!1}){let[n,i]=(0,I.useState)(t),a=eO[e.state],o=void 0!==e.output||e.errorText;return U.jsxs("div",{style:eB.container,children:[U.jsxs("div",{style:{...eB.header,...n?eB.headerOpen:{}},onClick:()=>i(!n),onKeyDown:e=>"Enter"===e.key&&i(!n),role:"button",tabIndex:0,children:[U.jsxs("div",{style:eB.headerLeft,children:[U.jsx(eD,{size:14,style:eB.toolIcon}),U.jsx("span",{style:eB.toolName,children:e.toolName.replace(/_/g," ").replace(/([a-z])([A-Z])/g,"$1 $2").replace(/^./,e=>e.toUpperCase())}),U.jsxs("span",{style:eB.badge(e.state),children:[a.icon,a.label]})]}),U.jsx(ei,{size:16,style:eB.chevron(n)})]}),n&&U.jsxs("div",{style:eB.content,children:[e.input&&Object.keys(e.input).length>0&&U.jsxs("div",{style:o?eB.section:eB.sectionLast,children:[U.jsx("div",{style:eB.sectionLabel,children:"Parameters"}),U.jsx("div",{style:eB.codeBlock,children:function(e){if(!e)return"{}";try{let t=JSON.stringify(e);return t.length<60?t:JSON.stringify(e,null,2)}catch{return"{}"}}(e.input)})]}),e.errorText&&U.jsxs("div",{style:eB.sectionLast,children:[U.jsx("div",{style:eB.sectionLabel,children:"Error"}),U.jsx("div",{style:eB.errorBlock,children:e.errorText})]}),void 0!==e.output&&!e.errorText&&U.jsxs("div",{style:eB.sectionLast,children:[U.jsx("div",{style:eB.sectionLabel,children:"Result"}),U.jsx("div",{style:eB.codeBlock,children:"string"==typeof e.output?e.output:JSON.stringify(e.output,null,2)})]})]})]})}let ez=`
2@keyframes spin {
3  from { transform: rotate(0deg); }
4  to { transform: rotate(360deg); }
5}
6`,eF={header:{display:"flex",alignItems:"center",gap:"12px",padding:"16px 20px",background:"var(--vitality-primary, #00d47b)",color:"white",position:"relative"},avatar:{width:"44px",height:"44px",borderRadius:"12px",objectFit:"cover",border:"2px solid rgba(255, 255, 255, 0.4)",flexShrink:0},headerTextGroup:{display:"flex",flexDirection:"column",gap:"2px",minWidth:0,flex:1},title:{fontSize:"16px",fontWeight:700,lineHeight:1.2,letterSpacing:"0.3px"},subtitle:{fontSize:"12px",fontWeight:400,opacity:.85,lineHeight:1.3},closeButton:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",background:"rgba(255, 255, 255, 0.15)",border:"none",borderRadius:"50%",color:"white",cursor:"pointer",transition:"all 0.2s ease",flexShrink:0}};function eH({title:e,subtitle:t,avatarUrl:n,personas:i=[],currentPersonaId:a,onClose:o}){let s=i.find(e=>e.id===a)||i.find(e=>e.defaultPersona)||i[0],l=(null==s?void 0:s.name)||e,u=t||(null==s?void 0:s.tagline)||"Get help, ask a question, and more!",c=(null==s?void 0:s.profilePicture)||n;return U.jsxs("div",{style:eF.header,children:[c&&U.jsx("img",{src:c,alt:l,style:eF.avatar}),U.jsxs("div",{style:eF.headerTextGroup,children:[U.jsx("span",{style:eF.title,children:l}),U.jsx("span",{style:eF.subtitle,children:u})]}),o&&U.jsx("button",{type:"button",style:eF.closeButton,onClick:o,onMouseOver:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.3)"},onFocus:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.3)"},onMouseOut:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.15)"},onBlur:e=>{e.currentTarget.style.background="rgba(255, 255, 255, 0.15)"},"aria-label":"Close",children:U.jsx(eL,{size:18})})]})}function eU(e,t){if("function"==typeof e)return e(t);null!=e&&(e.current=t)}function eG(...e){return t=>{let n=!1,i=e.map(e=>{let i=eU(e,t);return n||"function"!=typeof i||(n=!0),i});if(n)return()=>{for(let t=0;t<i.length;t++){let n=i[t];"function"==typeof n?n():eU(e[t],null)}}}}function eq(...e){return I.useCallback(eG(...e),e)}var eV=Symbol.for("react.lazy"),eW=(r1||(r1=n.t(I,2)))[" use ".trim().toString()];function eY(e){var t;return null!=e&&"object"==typeof e&&"$$typeof"in e&&e.$$typeof===eV&&"_payload"in e&&"object"==typeof(t=e._payload)&&null!==t&&"then"in t}function eK(e){let t=function(e){let t=I.forwardRef((e,t)=>
6{let{children:n,...i}=e;if(eY(n)&&"function"==typeof eW&&(n=eW(n._payload)),I.isValidElement(n)){var a,o,s;let e,l;let u=(e=null==(o=Object.getOwnPropertyDescriptor((a=n).props,"ref"))?void 0:o.get)&&"isReactWarning"in e&&e.isReactWarning?a.ref:(e=null==(s=Object.getOwnPropertyDescriptor(a,"ref"))?void 0:s.get)&&"isReactWarning"in e&&e.isReactWarning?a.props.ref:a.props.ref||a.ref,c=function(e,t){let n={...t};for(let i in t){let a=e[i],o=t[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==I.Fragment&&(c.ref=t?eG(t,u):u),I.cloneElement(n,c)}return I.Children.count(n)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=I.forwardRef((e,n)=>{let{children:i,...a}=e;eY(i)&&"function"==typeof eW&&(i=eW(i._payload));let o=I.Children.toArray(i),s=o.find(eZ);if(s){let e=s.props.children,i=o.map(t=>t===s?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t);return U.jsx(t,{...a,ref:n,children:I.isValidElement(e)?I.cloneElement(e,void 0,i):null})}return U.jsx(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var eX=eK("Slot"),eQ=Symbol("radix.slottable");function eZ(e){return I.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===eQ}function e$(){for(var e,t,n=0,i="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=function e(t){var n,i,a="";if("string"==typeof t||"number"==typeof t)a+=t;else if("object"==typeof t){if(Array.isArray(t)){var o=t.length;for(n=0;n<o;n++)t[n]&&(i=e(t[n]))&&(a&&(a+=" "),a+=i)}else for(i in t)t[i]&&(a&&(a+=" "),a+=i)}return a}(e))&&(i&&(i+=" "),i+=t);return i}let eJ=e=>"boolean"==typeof e?`${e}`:0===e?"0":e,e0=(e,t)=>n=>{var i;if((null==t?void 0:t.variants)==null)return e$(e,null==n?void 0:n.class,null==n?void 0:n.className);let{variants:a,defaultVariants:o}=t,s=Object.keys(a).map(e=>{let t=null==n?void 0:n[e],i=null==o?void 0:o[e];if(null===t)return null;let s=eJ(t)||eJ(i);return a[e][s]}),l=n&&Object.entries(n).reduce((e,t)=>{let[n,i]=t;return void 0===i||(e[n]=i),e},{});return e$(e,s,null==t||null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce((e,t)=>{let{class:n,className:i,...a}=t;return Object.entries(a).every(e=>{let[t,n]=e;return Array.isArray(n)?n.includes({...o,...l}[t]):({...o,...l})[t]===n})?[...e,n,i]:e},[]),null==n?void 0:n.class,null==n?void 0:n.className)},e1=(e,t)=>{let n=Array(e.length+t.length);for(let t=0;t<e.length;t++)n[t]=e[t];for(let i=0;i<t.length;i++)n[e.length+i]=t[i];return n},e2=(e,t)=>({classGroupId:e,validator:t}),e4=(e=new Map,t=null,n)=>({nextPart:e,validators:t,classGroupId:n}),e5=[],e3=e=>{let t=e8(e),{conflictingClassGroups:n,conflictingClassGroupModifiers:i}=e;return{getClassGroupId:e=>{if(e.startsWith("[")&&e.endsWith("]"))return e7(e);let n=e.split("-"),i=""===n[0]&&n.length>1?1:0;return e6(n,i,t)},getConflictingClassGroupIds:(e,t)=>{if(t){let t=i[e],a=n[e];return t?a?e1(a,t):t:a||e5}return n[e]||e5}}},e6=(e,t,n)=>{if(e.length-t==0)return n.classGroupId;let i=e[t],a=n.nextPart.get(i);if(a){let n=e6(e,t+1,a);if(n)return n}let o=n.validators;if(null===o)return;let s=0===t?e.join("-"):e.slice(t).join("-"),l=o.length;for(let e=0;e<l;e++){let t=o[e];if(t.validator(s))return t.classGroupId}},e7=e=>-1===e.slice(1,-1).indexOf(":")?void 0:(()=>{let t=e.slice(1,-1),n=t.indexOf(":"),i=t.slice(0,n);return i?"arbitrary.."+i:void 0})(),e8=e=>{let{theme:t,classGroups:n}=e;return e9(n,t)},e9=(e,t)=>{let n=e4();for(let i in e)te(e[i],n,i,t);return n},te=(e,t,n,i)=>{let a=e.length;for(let o=0;o<a;o++)tt(e[o],t,n,i)},tt=(e,t,n,i)=>{if("string"==typeof e){tn(e,t,n);return}if("function"==typeof e){tr(e,t,n,i);return}ti(e,t,n,i)},tn=(e,t,n)=>{(""===e?t:ta(t,e)).classGroupId=n},tr=(e,t,n,i)=>{if(to(e)){te(e(i),t,n,i);return}null===t.validators&&(t.validators=[]),t.validators.push(e2(n,e))},ti=(e,t,n,i)=>{let a=Object.entries(e),o=a.length;for(let e=0;e<o;e++){let[o,s]=a[e];te(s,ta(t,o),n,i)}},ta=(e,t)=>{let n=e,i=t.split("-"),a=i.length;for(let e=0;e<a;e++){let t=i[e],a=n.nextPart.get(t);a||(a=e4(),n.nextPart.set(t,a)),n=a}return n},to=e=>"isThemeGetter"in e&&!0===e.isThemeGetter,ts=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,n=Object.create(null),i=Object.create(null),a=(a,o)=>{n[a]=o,++t>e&&(t=0,i=n,n=Object.create(null))};return{get(e){let t=n[e];return void 0!==t?t:void 0!==(t=i[e])?(a(e,t),t):void 0},set(e,t){e in n?n[e]=t:a(e,t)}}},tl=[],tu=(e,t,n,i,a)=>({modifiers:e,hasImportantModifier:t,baseClassName:n,maybePostfixModifierPosition:i,isExternal:a}),tc=e=>{let{prefix:t,experimentalParseClassName:n}=e,i=e=>{let t=[],n=0,i=0,a=0,o,s=e.length;for(let l=0;l<s;l++){let s=e[l];
6if(0===n&&0===i){if(":"===s){t.push(e.slice(a,l)),a=l+1;continue}if("/"===s){o=l;continue}}"["===s?n++:"]"===s?n--:"("===s?i++:")"===s&&i--}let l=0===t.length?e:e.slice(a),u=l,c=!1;return l.endsWith("!")?(u=l.slice(0,-1),c=!0):l.startsWith("!")&&(u=l.slice(1),c=!0),tu(t,c,u,o&&o>a?o-a:void 0)};if(t){let e=t+":",n=i;i=t=>t.startsWith(e)?n(t.slice(e.length)):tu(tl,!1,t,void 0,!0)}if(n){let e=i;i=t=>n({className:t,parseClassName:e})}return i},td=e=>{let t=new Map;return e.orderSensitiveModifiers.forEach((e,n)=>{t.set(e,1e6+n)}),e=>{let n=[],i=[];for(let a=0;a<e.length;a++){let o=e[a],s="["===o[0],l=t.has(o);s||l?(i.length>0&&(i.sort(),n.push(...i),i=[]),n.push(o)):i.push(o)}return i.length>0&&(i.sort(),n.push(...i)),n}},tp=e=>({cache:ts(e.cacheSize),parseClassName:tc(e),sortModifiers:td(e),...e3(e)}),th=/\s+/,tm=(e,t)=>{let{parseClassName:n,getClassGroupId:i,getConflictingClassGroupIds:a,sortModifiers:o}=t,s=[],l=e.trim().split(th),u="";for(let e=l.length-1;e>=0;e-=1){let t=l[e],{isExternal:c,modifiers:d,hasImportantModifier:p,baseClassName:h,maybePostfixModifierPosition:m}=n(t);if(c){u=t+(u.length>0?" "+u:u);continue}let f=!!m,g=i(f?h.substring(0,m):h);if(!g){if(!f||!(g=i(h))){u=t+(u.length>0?" "+u:u);continue}f=!1}let x=0===d.length?"":1===d.length?d[0]:o(d).join(":"),v=p?x+"!":x,b=v+g;if(s.indexOf(b)>-1)continue;s.push(b);let w=a(g,f);for(let e=0;e<w.length;++e){let t=w[e];s.push(v+t)}u=t+(u.length>0?" "+u:u)}return u},tf=(...e)=>{let t=0,n,i,a="";for(;t<e.length;)(n=e[t++])&&(i=tg(n))&&(a&&(a+=" "),a+=i);return a},tg=e=>{if("string"==typeof e)return e;let t,n="";for(let i=0;i<e.length;i++)e[i]&&(t=tg(e[i]))&&(n&&(n+=" "),n+=t);return n},tx=[],tv=e=>{let t=t=>t[e]||tx;return t.isThemeGetter=!0,t},ty=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,tb=/^\((?:(\w[\w-]*):)?(.+)\)$/i,tw=/^\d+\/\d+$/,tk=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,t_=/\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$/,tT=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,tE=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,tS=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,tA=e=>tw.test(e),tC=e=>!!e&&!Number.isNaN(Number(e)),tN=e=>!!e&&Number.isInteger(Number(e)),tI=e=>e.endsWith("%")&&tC(e.slice(0,-1)),tM=e=>tk.test(e),tP=()=>!0,tR=e=>t_.test(e)&&!tT.test(e),tD=()=>!1,tL=e=>tE.test(e),tO=e=>tS.test(e),tB=e=>!tz(e)&&!tV(e),tj=e=>t$(e,t2,tD),tz=e=>ty.test(e),tF=e=>t$(e,t4,tR),tH=e=>t$(e,t5,tC),tU=e=>t$(e,t0,tD),tG=e=>t$(e,t1,tO),tq=e=>t$(e,t6,tL),tV=e=>tb.test(e),tW=e=>tJ(e,t4),tY=e=>tJ(e,t3),tK=e=>tJ(e,t0),tX=e=>tJ(e,t2),tQ=e=>tJ(e,t1),tZ=e=>tJ(e,t6,!0),t$=(e,t,n)=>{let i=ty.exec(e);return!!i&&(i[1]?t(i[1]):n(i[2]))},tJ=(e,t,n=!1)=>{let i=tb.exec(e);return!!i&&(i[1]?t(i[1]):n)},t0=e=>"position"===e||"percentage"===e,t1=e=>"image"===e||"url"===e,t2=e=>"length"===e||"size"===e||"bg-size"===e,t4=e=>"length"===e,t5=e=>"number"===e,t3=e=>"family-name"===e,t6=e=>"shadow"===e,t7=((e,...t)=>{let n,i,a,o;let s=e=>{let t=i(e);if(t)return t;let o=tm(e,n);return a(e,o),o};return o=l=>(i=(n=tp(t.reduce((e,t)=>t(e),e()))).cache.get,a=n.cache.set,o=s,s(l)),(...e)=>o(tf(...e))})(()=>{let e=tv("color"),t=tv("font"),n=tv("text"),i=tv("font-weight"),a=tv("tracking"),o=tv("leading"),s=tv("breakpoint"),l=tv("container"),u=tv("spacing"),c=tv("radius"),d=tv("shadow"),p=tv("inset-shadow"),h=tv("text-shadow"),m=tv("drop-shadow"),f=tv("blur"),g=tv("perspective"),x=tv("aspect"),v=tv("ease"),b=tv("animate"),w=()=>["auto","avoid","all","avoid-page","page","left","right","column"],k=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"],_=()=>[...k(),tV,tz],T=()=>["auto","hidden","clip","visible","scroll"],E=()=>["auto","contain","none"],A=()=>[tV,tz,u],C=()=>[tA,"full","auto",...A()],N=()=>[tN,"none","subgrid",tV,tz],I=()=>["auto",{span:["full",tN,tV,tz]},tN,tV,tz],M=()=>[tN,"auto",tV,tz],P=()=>["auto","min","max","fr",tV,tz],R=()=>["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"],D=()=>["start","end","center","stretch","center-safe","end-safe"],L=()=>["auto",...A()],O=()=>[tA,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",...A()],B=()=>[e,tV,tz],j=()=>[...k(),tK,tU,{position:[tV,tz]}],z=()=>["no-repeat",{repeat:["","x","y","space","round"]}],F=()=>["auto","cover","contain",tX,tj,{size:[tV,tz]}],H=()=>[tI,tW,tF],U=()=>["","none","full",c,tV,tz],G=()=>["",tC,tW,tF],q=()=>["solid","dashed","dotted","double"],V=()=>["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"],W=()=>[tC,tI,tK,tU],Y=()=>["","none",f,tV,tz],K=()=>["none",tC,tV,tz],X=()=>["none",tC,tV,tz],Q=()=>[tC,tV,tz],Z=()=>[tA,"full",...A()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[tM],breakpoint:[tM],color:[tP],container:[tM],"drop-shadow":[tM],ease:["in","out","in-out"],font:[tB],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[tM],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[tM],shadow:[tM],spacing:["px",tC],text:[tM],"text-shadow":[tM],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",tA,tz,tV,x]}
vendor: 5,617 bytes, line 6
6],container:["container"],columns:[{columns:[tC,tz,tV,l]}],"break-after":[{"break-after":w()}],"break-before":[{"break-before":w()}],"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"],sr:["sr-only","not-sr-only"],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:_()}],overflow:[{overflow:T()}],"overflow-x":[{"overflow-x":T()}],"overflow-y":[{"overflow-y":T()}],overscroll:[{overscroll:E()}],"overscroll-x":[{"overscroll-x":E()}],"overscroll-y":[{"overscroll-y":E()}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:C()}],"inset-x":[{"inset-x":C()}],"inset-y":[{"inset-y":C()}],start:[{start:C()}],end:[{end:C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:["visible","invisible","collapse"],z:[{z:[tN,"auto",tV,tz]}],basis:[{basis:[tA,"full","auto",l,...A()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[tC,tA,"auto","initial","none",tz]}],grow:[{grow:["",tC,tV,tz]}],shrink:[{shrink:["",tC,tV,tz]}],order:[{order:[tN,"first","last","none",tV,tz]}],"grid-cols":[{"grid-cols":N()}],"col-start-end":[{col:I()}],"col-start":[{"col-start":M()}],"col-end":[{"col-end":M()}],"grid-rows":[{"grid-rows":N()}],"row-start-end":[{row:I()}],"row-start":[{"row-start":M()}],"row-end":[{"row-end":M()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":P()}],"auto-rows":[{"auto-rows":P()}],gap:[{gap:A()}],"gap-x":[{"gap-x":A()}],"gap-y":[{"gap-y":A()}],"justify-content":[{justify:[...R(),"normal"]}],"justify-items":[{"justify-items":[...D(),"normal"]}],"justify-self":[{"justify-self":["auto",...D()]}],"align-content":[{content:["normal",...R()]}],"align-items":[{items:[...D(),{baseline:["","last"]}]}],"align-self":[{self:["auto",...D(),{baseline:["","last"]}]}],"place-content":[{"place-content":R()}],"place-items":[{"place-items":[...D(),"baseline"]}],"place-self":[{"place-self":["auto",...D()]}],p:[{p:A()}],px:[{px:A()}],py:[{py:A()}],ps:[{ps:A()}],pe:[{pe:A()}],pt:[{pt:A()}],pr:[{pr:A()}],pb:[{pb:A()}],pl:[{pl:A()}],m:[{m:L()}],mx:[{mx:L()}],my:[{my:L()}],ms:[{ms:L()}],me:[{me:L()}],mt:[{mt:L()}],mr:[{mr:L()}],mb:[{mb:L()}],ml:[{ml:L()}],"space-x":[{"space-x":A()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":A()}],"space-y-reverse":["space-y-reverse"],size:[{size:O()}],w:[{w:[l,"screen",...O()]}],"min-w":[{"min-w":[l,"screen","none",...O()]}],"max-w":[{"max-w":[l,"screen","none","prose",{screen:[s]},...O()]}],h:[{h:["screen","lh",...O()]}],"min-h":[{"min-h":["screen","lh","none",...O()]}],"max-h":[{"max-h":["screen","lh",...O()]}],"font-size":[{text:["base",n,tW,tF]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[i,tV,tH]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",tI,tz]}],"font-family":[{font:[tY,tz,t]}],"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:[a,tV,tz]}],"line-clamp":[{"line-clamp":[tC,"none",tV,tH]}],leading:[{leading:[o,...A()]}],"list-image":[{"list-image":["none",tV,tz]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",tV,tz]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:B()}],"text-color":[{text:B()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:[...q(),"wavy"]}],"text-decoration-thickness":[{decoration:[tC,"from-font","auto",tV,tF]}],"text-decoration-color":[{decoration:B()}],"underline-offset":[{"underline-offset":[tC,"auto",tV,tz]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:A()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",tV,tz]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",tV,tz]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:j()}],"bg-repeat":[{bg:z()}],"bg-size":[{bg:F()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},tN,tV,tz],radial:["",tV,tz],conic:[tN,tV,tz]},tQ,tG]}],"bg-color":[{bg:B()}],"gradient-from-pos":[{from:H()}
6],"gradient-via-pos":[{via:H()}],"gradient-to-pos":[{to:H()}],"gradient-from":[{from:B()}],"gradient-via":[{via:B()}],"gradient-to":[{to:B()}],rounded:[{rounded:U()}],"rounded-s":[{"rounded-s":U()}],"rounded-e":[{"rounded-e":U()}],"rounded-t":[{"rounded-t":U()}],"rounded-r":[{"rounded-r":U()}],"rounded-b":[{"rounded-b":U()}],"rounded-l":[{"rounded-l":U()}],"rounded-ss":[{"rounded-ss":U()}],"rounded-se":[{"rounded-se":U()}],"rounded-ee":[{"rounded-ee":U()}],"rounded-es":[{"rounded-es":U()}],"rounded-tl":[{"rounded-tl":U()}],"rounded-tr":[{"rounded-tr":U()}],"rounded-br":[{"rounded-br":U()}],"rounded-bl":[{"rounded-bl":U()}],"border-w":[{border:G()}],"border-w-x":[{"border-x":G()}],"border-w-y":[{"border-y":G()}],"border-w-s":[{"border-s":G()}],"border-w-e":[{"border-e":G()}],"border-w-t":[{"border-t":G()}],"border-w-r":[{"border-r":G()}],"border-w-b":[{"border-b":G()}],"border-w-l":[{"border-l":G()}],"divide-x":[{"divide-x":G()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":G()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:[...q(),"hidden","none"]}],"divide-style":[{divide:[...q(),"hidden","none"]}],"border-color":[{border:B()}],"border-color-x":[{"border-x":B()}],"border-color-y":[{"border-y":B()}],"border-color-s":[{"border-s":B()}],"border-color-e":[{"border-e":B()}],"border-color-t":[{"border-t":B()}],"border-color-r":[{"border-r":B()}],"border-color-b":[{"border-b":B()}],"border-color-l":[{"border-l":B()}
vendor: 5,715 bytes, line 6
6],"divide-color":[{divide:B()}],"outline-style":[{outline:[...q(),"none","hidden"]}],"outline-offset":[{"outline-offset":[tC,tV,tz]}],"outline-w":[{outline:["",tC,tW,tF]}],"outline-color":[{outline:B()}],shadow:[{shadow:["","none",d,tZ,tq]}],"shadow-color":[{shadow:B()}],"inset-shadow":[{"inset-shadow":["none",p,tZ,tq]}],"inset-shadow-color":[{"inset-shadow":B()}],"ring-w":[{ring:G()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:B()}],"ring-offset-w":[{"ring-offset":[tC,tF]}],"ring-offset-color":[{"ring-offset":B()}],"inset-ring-w":[{"inset-ring":G()}],"inset-ring-color":[{"inset-ring":B()}],"text-shadow":[{"text-shadow":["none",h,tZ,tq]}],"text-shadow-color":[{"text-shadow":B()}],opacity:[{opacity:[tC,tV,tz]}],"mix-blend":[{"mix-blend":[...V(),"plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":V()}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[tC]}],"mask-image-linear-from-pos":[{"mask-linear-from":W()}],"mask-image-linear-to-pos":[{"mask-linear-to":W()}],"mask-image-linear-from-color":[{"mask-linear-from":B()}],"mask-image-linear-to-color":[{"mask-linear-to":B()}],"mask-image-t-from-pos":[{"mask-t-from":W()}],"mask-image-t-to-pos":[{"mask-t-to":W()}],"mask-image-t-from-color":[{"mask-t-from":B()}],"mask-image-t-to-color":[{"mask-t-to":B()}],"mask-image-r-from-pos":[{"mask-r-from":W()}],"mask-image-r-to-pos":[{"mask-r-to":W()}],"mask-image-r-from-color":[{"mask-r-from":B()}],"mask-image-r-to-color":[{"mask-r-to":B()}],"mask-image-b-from-pos":[{"mask-b-from":W()}],"mask-image-b-to-pos":[{"mask-b-to":W()}],"mask-image-b-from-color":[{"mask-b-from":B()}],"mask-image-b-to-color":[{"mask-b-to":B()}],"mask-image-l-from-pos":[{"mask-l-from":W()}],"mask-image-l-to-pos":[{"mask-l-to":W()}],"mask-image-l-from-color":[{"mask-l-from":B()}],"mask-image-l-to-color":[{"mask-l-to":B()}],"mask-image-x-from-pos":[{"mask-x-from":W()}],"mask-image-x-to-pos":[{"mask-x-to":W()}],"mask-image-x-from-color":[{"mask-x-from":B()}],"mask-image-x-to-color":[{"mask-x-to":B()}],"mask-image-y-from-pos":[{"mask-y-from":W()}],"mask-image-y-to-pos":[{"mask-y-to":W()}],"mask-image-y-from-color":[{"mask-y-from":B()}],"mask-image-y-to-color":[{"mask-y-to":B()}],"mask-image-radial":[{"mask-radial":[tV,tz]}],"mask-image-radial-from-pos":[{"mask-radial-from":W()}],"mask-image-radial-to-pos":[{"mask-radial-to":W()}],"mask-image-radial-from-color":[{"mask-radial-from":B()}],"mask-image-radial-to-color":[{"mask-radial-to":B()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":k()}],"mask-image-conic-pos":[{"mask-conic":[tC]}],"mask-image-conic-from-pos":[{"mask-conic-from":W()}],"mask-image-conic-to-pos":[{"mask-conic-to":W()}],"mask-image-conic-from-color":[{"mask-conic-from":B()}],"mask-image-conic-to-color":[{"mask-conic-to":B()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:j()}],"mask-repeat":[{mask:z()}],"mask-size":[{mask:F()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",tV,tz]}],filter:[{filter:["","none",tV,tz]}],blur:[{blur:Y()}],brightness:[{brightness:[tC,tV,tz]}],contrast:[{contrast:[tC,tV,tz]}],"drop-shadow":[{"drop-shadow":["","none",m,tZ,tq]}],"drop-shadow-color":[{"drop-shadow":B()}],grayscale:[{grayscale:["",tC,tV,tz]}],"hue-rotate":[{"hue-rotate":[tC,tV,tz]}],invert:[{invert:["",tC,tV,tz]}],saturate:[{saturate:[tC,tV,tz]}],sepia:[{sepia:["",tC,tV,tz]}],"backdrop-filter":[{"backdrop-filter":["","none",tV,tz]}],"backdrop-blur":[{"backdrop-blur":Y()}],"backdrop-brightness":[{"backdrop-brightness":[tC,tV,tz]}],"backdrop-contrast":[{"backdrop-contrast":[tC,tV,tz]}],"backdrop-grayscale":[{"backdrop-grayscale":["",tC,tV,tz]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[tC,tV,tz]}],"backdrop-invert":[{"backdrop-invert":["",tC,tV,tz]}],"backdrop-opacity":[{"backdrop-opacity":[tC,tV,tz]}],"backdrop-saturate":[{"backdrop-saturate":[tC,tV,tz]}],"backdrop-sepia":[{"backdrop-sepia":["",tC,tV,tz]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":A()}],"border-spacing-x":[{"border-spacing-x":A()}],"border-spacing-y":[{"border-spacing-y":A()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",tV,tz]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[tC,"initial",tV,tz]}],ease:[{ease:["linear","initial",v,tV,tz]}],delay:[{delay:[tC,tV,tz]}],animate:[{animate:["none",b,tV,tz]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[g,tV,tz]}],"perspective-origin":[{"perspective-origin":_()}],rotate:[{rotate:K()}],"rotate-x":[{"rotate-x":K()}],"rotate-y":[{"rotate-y":K()}],"rotate-z":[{"rotate-z":K()}],scale:[{scale:X()}],"scale-x":[{"scale-x":X()}],"scale-y":[{"scale-y":X()}],"scale-z":[{"scale-z":X()}],"scale-3d":["scale-3d"],skew:[{skew:Q()}],"skew-x":[{"skew-x":Q()}],"skew-y":[{"skew-y":Q()}],transform:[{transform:[tV,tz,"","none","gpu","cpu"]}],"transform-origin":[{origin:_()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:Z()}],"translate-x":[{"translate-x":Z()}],"translate-y":[{"translate-y":Z()}],"translate-z":[{"translate-z":Z()}],"translate-none":["translate-none"],accent:[{accent:B()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:B()}
vendor: 5,975 bytes, line 6
6],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],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",tV,tz]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":A()}],"scroll-mx":[{"scroll-mx":A()}],"scroll-my":[{"scroll-my":A()}],"scroll-ms":[{"scroll-ms":A()}],"scroll-me":[{"scroll-me":A()}],"scroll-mt":[{"scroll-mt":A()}],"scroll-mr":[{"scroll-mr":A()}],"scroll-mb":[{"scroll-mb":A()}],"scroll-ml":[{"scroll-ml":A()}],"scroll-p":[{"scroll-p":A()}],"scroll-px":[{"scroll-px":A()}],"scroll-py":[{"scroll-py":A()}],"scroll-ps":[{"scroll-ps":A()}],"scroll-pe":[{"scroll-pe":A()}],"scroll-pt":[{"scroll-pt":A()}],"scroll-pr":[{"scroll-pr":A()}],"scroll-pb":[{"scroll-pb":A()}],"scroll-pl":[{"scroll-pl":A()}],"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",tV,tz]}],fill:[{fill:["none",...B()]}],"stroke-w":[{stroke:[tC,tW,tF,tH]}],stroke:[{stroke:["none",...B()]}],"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-x","border-w-y","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-x","border-color-y","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"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"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"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}});function t8(...e){return t7(e$(e))}let t9=e0("inline-flex items-center justify-center gap-2 whitespace-nowrap rounded-md text-sm font-medium transition-all disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4 shrink-0 [&_svg]:shrink-0 outline-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",{variants:{variant:{default:"bg-primary text-primary-foreground hover:bg-primary/90",destructive:"bg-destructive text-white hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"border bg-background shadow-xs hover:bg-accent hover:text-accent-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50",secondary:"bg-secondary text-secondary-foreground hover:bg-secondary/80",ghost:"hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",link:"text-primary underline-offset-4 hover:underline"},size:{default:"h-9 px-4 py-2 has-[>svg]:px-3",sm:"h-8 rounded-md gap-1.5 px-3 has-[>svg]:px-2.5",lg:"h-10 rounded-md px-6 has-[>svg]:px-4",icon:"size-9","icon-sm":"size-8","icon-lg":"size-10"}},defaultVariants:{variant:"default",size:"default"}});function ne({className:e,variant:t="default",size:n="default",asChild:i=!1,...a}){return U.jsx(i?eX:"button",{"data-slot":"button","data-variant":t,"data-size":n,className:t8(t9({variant:t,size:n,className:e})),...a}
6)}function nt(e,t,{checkForDefaultPrevented:n=!0}={}){return function(i){if(null==e||e(i),!1===n||!i.defaultPrevented)return null==t?void 0:t(i)}}function nn(e,t=[]){let n=[],i=()=>{let t=n.map(e=>I.createContext(e));return function(n){let i=(null==n?void 0:n[e])||t;return I.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let a=I.createContext(i),o=n.length;n=[...n,i];let s=t=>{var n;let{scope:i,children:s,...l}=t,u=(null==(n=null==i?void 0:i[e])?void 0:n[o])||a,c=I.useMemo(()=>l,Object.values(l));return U.jsx(u.Provider,{value:c,children:s})};return s.displayName=t+"Provider",[s,function(n,s){var l;let u=(null==(l=null==s?void 0:s[e])?void 0:l[o])||a,c=I.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:i})=>{let a=n(e)[`__scope${i}`];return{...t,...a}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}var nr=null!=globalThis&&globalThis.document?I.useLayoutEffect:()=>{},ni=(r1||(r1=n.t(I,2)))[" useInsertionEffect ".trim().toString()]||nr;function na({prop:e,defaultProp:t,onChange:n=()=>{},caller:i}){let[a,o,s]=function({defaultProp:e,onChange:t}){let[n,i]=I.useState(e),a=I.useRef(n),o=I.useRef(t);return ni(()=>{o.current=t},[t]),I.useEffect(()=>{var e;a.current!==n&&(null==(e=o.current)||e.call(o,n),a.current=n)},[n,a]),[n,i,o]}({defaultProp:t,onChange:n}),l=void 0!==e,u=l?e:a;{let t=I.useRef(void 0!==e);I.useEffect(()=>{let e=t.current;e!==l&&console.warn(`${i} is changing from ${e?"controlled":"uncontrolled"} to ${l?"controlled":"uncontrolled"}. Components should not switch from controlled to uncontrolled (or vice versa). Decide between using a controlled or uncontrolled value for the lifetime of the component.`),t.current=l},[l,i])}return[u,I.useCallback(t=>{var n;if(l){let i="function"==typeof t?t(e):t;i!==e&&(null==(n=s.current)||n.call(s,i))}else o(t)},[l,e,o,s])]}let no=["top","right","bottom","left"],ns=Math.min,nl=Math.max,nu=Math.round,nc=Math.floor,nd=e=>({x:e,y:e}),np={left:"right",right:"left",bottom:"top",top:"bottom"},nh={start:"end",end:"start"};function nm(e,t){return"function"==typeof e?e(t):e}function nf(e){return e.split("-")[0]}function ng(e){return e.split("-")[1]}function nx(e){return"x"===e?"y":"x"}function nv(e){return"y"===e?"height":"width"}let ny=new Set(["top","bottom"]);function nb(e){return ny.has(nf(e))?"y":"x"}function nw(e){return e.replace(/start|end/g,e=>nh[e])}let nk=["left","right"],n_=["right","left"],nT=["top","bottom"],nE=["bottom","top"];function nS(e){return e.replace(/left|right|bottom|top/g,e=>np[e])}function nA(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function nC(e){let{x:t,y:n,width:i,height:a}=e;return{width:i,height:a,top:n,left:t,right:t+i,bottom:n+a,x:t,y:n}}function nN(e,t,n){let i,{reference:a,floating:o}=e,s=nb(t),l=nx(nb(t)),u=nv(l),c=nf(t),d="y"===s,p=a.x+a.width/2-o.width/2,h=a.y+a.height/2-o.height/2,m=a[u]/2-o[u]/2;switch(c){case"top":i={x:p,y:a.y-o.height};break;case"bottom":i={x:p,y:a.y+a.height};break;case"right":i={x:a.x+a.width,y:h};break;case"left":i={x:a.x-o.width,y:h};break;default:i={x:a.x,y:a.y}}switch(ng(t)){case"start":i[l]-=m*(n&&d?-1:1);break;case"end":i[l]+=m*(n&&d?-1:1)}return i}let nI=async(e,t,n)=>{let{placement:i="bottom",strategy:a="absolute",middleware:o=[],platform:s}=n,l=o.filter(Boolean),u=await (null==s.isRTL?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:a}),{x:d,y:p}=nN(c,i,u),h=i,m={},f=0;for(let n=0;n<l.length;n++){let{name:o,fn:g}=l[n],{x:x,y:v,data:b,reset:w}=await g({x:d,y:p,initialPlacement:i,placement:h,strategy:a,middlewareData:m,rects:c,platform:s,elements:{reference:e,floating:t}});d=x??d,p=v??p,m={...m,[o]:{...m[o],...b}},w&&f<=50&&(f++,"object"==typeof w&&(w.placement&&(h=w.placement),w.rects&&(c=!0===w.rects?await s.getElementRects({reference:e,floating:t,strategy:a}):w.rects),{x:d,y:p}=nN(c,h,u)),n=-1)}return{x:d,y:p,placement:h,strategy:a,middlewareData:m}};async function nM(e,t){var n;void 0===t&&(t={});let{x:i,y:a,platform:o,rects:s,elements:l,strategy:u}=e,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:h=!1,padding:m=0}=nm(t,e),f=nA(m),g=l[h?"floating"===p?"reference":"floating":p],x=nC(await o.getClippingRect
6({element:null==(n=await (null==o.isElement?void 0:o.isElement(g)))||n?g:g.contextElement||await (null==o.getDocumentElement?void 0:o.getDocumentElement(l.floating)),boundary:c,rootBoundary:d,strategy:u})),v="floating"===p?{x:i,y:a,width:s.floating.width,height:s.floating.height}:s.reference,b=await (null==o.getOffsetParent?void 0:o.getOffsetParent(l.floating)),w=await (null==o.isElement?void 0:o.isElement(b))&&await (null==o.getScale?void 0:o.getScale(b))||{x:1,y:1},k=nC(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:l,rect:v,offsetParent:b,strategy:u}):v);return{top:(x.top-k.top+f.top)/w.y,bottom:(k.bottom-x.bottom+f.bottom)/w.y,left:(x.left-k.left+f.left)/w.x,right:(k.right-x.right+f.right)/w.x}}function nP(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function nR(e){return no.some(t=>e[t]>=0)}let nD=new Set(["left","top"]);async function nL(e,t){let{placement:n,platform:i,elements:a}=e,o=await (null==i.isRTL?void 0:i.isRTL(a.floating)),s=nf(n),l=ng(n),u="y"===nb(n),c=nD.has(s)?-1:1,d=o&&u?-1:1,p=nm(t,e),{mainAxis:h,crossAxis:m,alignmentAxis:f}="number"==typeof p?{mainAxis:p,crossAxis:0,alignmentAxis:null}:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return l&&"number"==typeof f&&(m="end"===l?-1*f:f),u?{x:m*d,y:h*c}:{x:h*c,y:m*d}}function nO(){return"u">typeof window}function nB(e){return nF(e)?(e.nodeName||"").toLowerCase():"#document"}function nj(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function nz(e){var t;return null==(t=(nF(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function nF(e){return!!nO()&&(e instanceof Node||e instanceof nj(e).Node)}function nH(e){return!!nO()&&(e instanceof Element||e instanceof nj(e).Element)}function nU(e){return!!nO()&&(e instanceof HTMLElement||e instanceof nj(e).HTMLElement)}function nG(e){return!(!nO()||typeof ShadowRoot>"u")&&(e instanceof ShadowRoot||e instanceof nj(e).ShadowRoot)}let nq=new Set(["inline","contents"]);function nV(e){let{overflow:t,overflowX:n,overflowY:i,display:a}=n2(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+n)&&!nq.has(a)}let nW=new Set(["table","td","th"]),nY=[":popover-open",":modal"];function nK(e){return nY.some(t=>{try{return e.matches(t)}catch{return!1}})}let nX=["transform","translate","scale","rotate","perspective"],nQ=["transform","translate","scale","rotate","perspective","filter"],nZ=["paint","layout","strict","content"];function n$(e){let t=nJ(),n=nH(e)?n2(e):e;return nX.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||nQ.some(e=>(n.willChange||"").includes(e))||nZ.some(e=>(n.contain||"").includes(e))}function nJ(){return!(typeof CSS>"u")&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let n0=new Set(["html","body","#document"]);function n1(e){return n0.has(nB(e))}function n2(e){return nj(e).getComputedStyle(e)}function n4(e){return nH(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function n5(e){if("html"===nB(e))return e;let t=e.assignedSlot||e.parentNode||nG(e)&&e.host||nz(e);return nG(t)?t.host:t}function n3(e,t,n){var i;void 0===t&&(t=[]),void 0===n&&(n=!0);let a=function e(t){let n=n5(t);return n1(n)?t.ownerDocument?t.ownerDocument.body:t.body:nU(n)&&nV(n)?n:e(n)}(e),o=a===(null==(i=e.ownerDocument)?void 0:i.body),s=nj(a);if(o){let e=n6(s);return t.concat(s,s.visualViewport||[],nV(a)?a:[],e&&n?n3(e):[])}return t.concat(a,n3(a,[],n))}function n6(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function n7(e){let t=n2(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,a=nU(e),o=a?e.offsetWidth:n,s=a?e.offsetHeight:i,l=nu(n)!==o||nu(i)!==s;return l&&(n=o,i=s),{width:n,height:i,$:l}}function n8(e){return nH(e)?e:e.contextElement}function n9(e){let t=n8(e);if(!nU(t))return nd(1);let n=t.getBoundingClientRect(),{width:i,height:a,$:o}=n7(t),s=(o?nu(n.width):n.width)/i,l=(o?nu(n.height):n.height)/a;return s&&Number.isFinite(s)||(s=1),l&&Number.isFinite(l)||(l=1),{x:s,y:l}}let re=nd(0);function rt(e){let t=nj(e);
6return nJ()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:re}function rn(e,t,n,i){var a;void 0===t&&(t=!1),void 0===n&&(n=!1);let o=e.getBoundingClientRect(),s=n8(e),l=nd(1);t&&(i?nH(i)&&(l=n9(i)):l=n9(e));let u=(void 0===(a=n)&&(a=!1),i&&(!a||i===nj(s))&&a)?rt(s):nd(0),c=(o.left+u.x)/l.x,d=(o.top+u.y)/l.y,p=o.width/l.x,h=o.height/l.y;if(s){let e=nj(s),t=i&&nH(i)?nj(i):i,n=e,a=n6(n);for(;a&&i&&t!==n;){let e=n9(a),t=a.getBoundingClientRect(),i=n2(a),o=t.left+(a.clientLeft+parseFloat(i.paddingLeft))*e.x,s=t.top+(a.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,d*=e.y,p*=e.x,h*=e.y,c+=o,d+=s,a=n6(n=nj(a))}}return nC({width:p,height:h,x:c,y:d})}function rr(e,t){let n=n4(e).scrollLeft;return t?t.left+n:rn(nz(e)).left+n}function ri(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-rr(e,n),y:n.top+t.scrollTop}}let ra=new Set(["absolute","fixed"]);function ro(e,t,n){let i;if("viewport"===t)i=function(e,t){let n=nj(e),i=nz(e),a=n.visualViewport,o=i.clientWidth,s=i.clientHeight,l=0,u=0;if(a){o=a.width,s=a.height;let e=nJ();(!e||e&&"fixed"===t)&&(l=a.offsetLeft,u=a.offsetTop)}let c=rr(i);if(c<=0){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),a="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(i.clientWidth-t.clientWidth-a);s<=25&&(o-=s)}else c<=25&&(o+=c);return{width:o,height:s,x:l,y:u}}(e,n);else if("document"===t)i=function(e){let t=nz(e),n=n4(e),i=e.ownerDocument.body,a=nl(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),o=nl(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),s=-n.scrollLeft+rr(e),l=-n.scrollTop;return"rtl"===n2(i).direction&&(s+=nl(t.clientWidth,i.clientWidth)-a),{width:a,height:o,x:s,y:l}}(nz(e));else if(nH(t))i=function(e,t){let n=rn(e,!0,"fixed"===t),i=n.top+e.clientTop,a=n.left+e.clientLeft,o=nU(e)?n9(e):nd(1),s=e.clientWidth*o.x;return{width:s,height:e.clientHeight*o.y,x:a*o.x,y:i*o.y}}(t,n);else{let n=rt(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return nC(i)}function rs(e){return"static"===n2(e).position}function rl(e,t){if(!nU(e)||"fixed"===n2(e).position)return null;if(t)return t(e);let n=e.offsetParent;return nz(e)===n&&(n=n.ownerDocument.body),n}function ru(e,t){var n;let i=nj(e);if(nK(e))return i;if(!nU(e)){let t=n5(e);for(;t&&!n1(t);){if(nH(t)&&!rs(t))return t;t=n5(t)}return i}let a=rl(e,t);for(;a&&(n=a,nW.has(nB(n)))&&rs(a);)a=rl(a,t);return a&&n1(a)&&rs(a)&&!n$(a)?i:a||function(e){let t=n5(e);for(;nU(t)&&!n1(t);){if(n$(t))return t;if(nK(t))break;t=n5(t)}return null}(e)||i}let rc=async function(e){let t=this.getOffsetParent||ru,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=nU(t),a=nz(t),o="fixed"===n,s=rn(e,!0,o,t),l={scrollLeft:0,scrollTop:0},u=nd(0);if(i||!i&&!o){if(("body"!==nB(t)||nV(a))&&(l=n4(t)),i){let e=rn(t,!0,o,t);u.x=e.x+t.clientLeft,u.y=e.y+t.clientTop}else a&&(u.x=rr(a))}o&&!i&&a&&(u.x=rr(a));let c=!a||i||o?nd(0):ri(a,l);return{x:s.left+l.scrollLeft-u.x-c.x,y:s.top+l.scrollTop-u.y-c.y,width:s.width,height:s.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},rd={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:a}=e,o="fixed"===a,s=nz(i),l=!!t&&nK(t.floating);if(i===s||l&&o)return n;let u={scrollLeft:0,scrollTop:0},c=nd(1),d=nd(0),p=nU(i);if((p||!p&&!o)&&(("body"!==nB(i)||nV(s))&&(u=n4(i)),nU(i))){let e=rn(i);c=n9(i),d.x=e.x+i.clientLeft,d.y=e.y+i.clientTop}let h=!s||p||o?nd(0):ri(s,u);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-u.scrollLeft*c.x+d.x+h.x,y:n.y*c.y-u.scrollTop*c.y+d.y+h.y}},getDocumentElement:nz,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:i,strategy:a}=e,o=[..."clippingAncestors"===n?nK(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=n3(e,[],!1).filter(e=>nH(e)&&"body"!==nB(e)),a=null,o="fixed"===n2(e).position,s=o?n5(e):e;for(;nH(s)&&!n1(s);){let t=n2(s),n=n$(s);n||"fixed"!==t.position||(a=null),(o?!n&&!a:!n&&"static"===t.position&&!!a&&ra.has(a.position)||nV(s)&&!n&&function e(t,n){let i=n5(t);return!(i===n||!nH(i)||n1(i))&&("fixed"===n2(i).position||e(i,n))}(e,s))?i=i.filter(e=>e!==s):a=t,s=n5(s)}return t.set(e,i),i}(t,this._c):[].concat(n),i],s=o[0],l=o.reduce((e,n)=>{let i=ro(t,n,a);return e.top=nl(i.top,e.top),e.right=ns(i.right,e.right),e.bottom=ns(i.bottom,e.bottom),e.left=nl(i.left,e.left),e},ro(t,s,a));return{width:l.right-l.left,height:l.bottom-l.top,x:l.left,y:l.top}},getOffsetParent:ru,getElementRects:rc,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=n7(e);return{width:t,height:n}},getScale:n9,isElement:nH,isRTL:function(e){return"rtl"===n2(e).direction}};function rp(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}let rh=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:i,placement:a,rects:o,platform:s,elements:l,middlewareData:u}=t,{element:c,padding:d=0}=nm(e,t)||{};if(null==c)return{};let p=nA(d),h={x:n,y:i},m=nx(nb(a)),f=nv(m),g=await s.getDimensions(c),x="y"===m,v=x?"clientHeight":"clientWidth",b=o.reference[f]+o.reference[m]-h[m]-o.floating[f],w=h[m]-o.reference[m],k=await (null==s.getOffsetParent?void 0:s.getOffsetParent(c)),_=k?k[v]:0;_&&await (null==s.isElement?void 0:s.isElement(k))||(_=l.floating[v]||o.floating[f]);let T=_/2-g[f]/2-1,E=ns(p[x?"top":"left"],T),A=ns(p[x?"bottom":"right"],T),C=_-g[f]-A,N=_/2-g[f]/2+(b/2-w/2),I=nl(E,ns(N,C)),M=!u.arrow&&null!=ng(a)&&N!==I&&o.reference[f]/2-(N<E?E:A)-g[f]/2<0,P=M?N<E?N-E:N-C:0;return{[m]:h[m]+P,data:{[m]:I,centerOffset:N-I-P,...M&&{alignmentOffset:P}},reset:M}}}
6),rm=(e,t,n)=>{let i=new Map,a={platform:rd,...n},o={...a.platform,_c:i};return nI(e,t,{...a,platform:o})};var rf="u">typeof document?I.useLayoutEffect:function(){};function rg(e,t){let n,i,a;if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if((n=e.length)!==t.length)return!1;for(i=n;0!=i--;)if(!rg(e[i],t[i]))return!1;return!0}if((n=(a=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(t,a[i]))return!1;for(i=n;0!=i--;){let n=a[i];if(!("_owner"===n&&e.$$typeof)&&!rg(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function rx(e){return typeof window>"u"?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function rv(e,t){let n=rx(e);return Math.round(t*n)/n}function ry(e){let t=I.useRef(e);return rf(()=>{t.current=e}),t}let rb=e=>({name:"arrow",options:e,fn(t){let{element:n,padding:i}="function"==typeof e?e(t):e;return n&&({}).hasOwnProperty.call(n,"current")?null!=n.current?rh({element:n.current,padding:i}).fn(t):{}:n?rh({element:n,padding:i}).fn(t):{}}}),rw=(e,t)=>{var n;return{...(void 0===(n=e)&&(n=0),{name:"offset",options:n,async fn(e){var t,i;let{x:a,y:o,placement:s,middlewareData:l}=e,u=await nL(e,n);return s===(null==(t=l.offset)?void 0:t.placement)&&null!=(i=l.arrow)&&i.alignmentOffset?{}:{x:a+u.x,y:o+u.y,data:{...u,placement:s}}}}),options:[e,t]}},rk=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"shift",options:n,async fn(e){let{x:t,y:i,placement:a}=e,{mainAxis:o=!0,crossAxis:s=!1,limiter:l={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...u}=nm(n,e),c={x:t,y:i},d=await nM(e,u),p=nb(nf(a)),h=nx(p),m=c[h],f=c[p];if(o){let e="y"===h?"top":"left",t="y"===h?"bottom":"right",n=m+d[e],i=m-d[t];m=nl(n,ns(m,i))}
6if(s){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=f+d[e],i=f-d[t];f=nl(n,ns(f,i))}let g=l.fn({...e,[h]:m,[p]:f});return{...g,data:{x:g.x-t,y:g.y-i,enabled:{[h]:o,[p]:s}}}}}),options:[e,t]}},r_=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{options:n,fn(e){let{x:t,y:i,placement:a,rects:o,middlewareData:s}=e,{offset:l=0,mainAxis:u=!0,crossAxis:c=!0}=nm(n,e),d={x:t,y:i},p=nb(a),h=nx(p),m=d[h],f=d[p],g=nm(l,e),x="number"==typeof g?{mainAxis:g,crossAxis:0}:{mainAxis:0,crossAxis:0,...g};if(u){let e="y"===h?"height":"width",t=o.reference[h]-o.floating[e]+x.mainAxis,n=o.reference[h]+o.reference[e]-x.mainAxis;m<t?m=t:m>n&&(m=n)}if(c){var v,b;let e="y"===h?"width":"height",t=nD.has(nf(a)),n=o.reference[p]-o.floating[e]+(t&&(null==(v=s.offset)?void 0:v[p])||0)+(t?0:x.crossAxis),i=o.reference[p]+o.reference[e]+(t?0:(null==(b=s.offset)?void 0:b[p])||0)-(t?x.crossAxis:0);f<n?f=n:f>i&&(f=i)}return{[h]:m,[p]:f}}}),options:[e,t]}},rT=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"flip",options:n,async fn(e){var t,i,a,o,s;let{placement:l,middlewareData:u,rects:c,initialPlacement:d,platform:p,elements:h}=e,{mainAxis:m=!0,crossAxis:f=!0,fallbackPlacements:g,fallbackStrategy:x="bestFit",fallbackAxisSideDirection:v="none",flipAlignment:b=!0,...w}=nm(n,e);if(null!=(t=u.arrow)&&t.alignmentOffset)return{};let k=nf(l),_=nb(d),T=nf(d)===d,E=await (null==p.isRTL?void 0:p.isRTL(h.floating)),A=g||(T||!b?[nS(d)]:function(e){let t=nS(e);return[nw(e),t,nw(t)]}(d)),C="none"!==v;!g&&C&&A.push(...function(e,t,n,i){let a=ng(e),o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?n_:nk:t?nk:n_;case"left":case"right":return t?nT:nE;default:return[]}}(nf(e),"start"===n,i);return a&&(o=o.map(e=>e+"-"+a),t&&(o=o.concat(o.map(nw)))),o}(d,b,v,E));let N=[d,...A],I=await nM(e,w),M=[],P=(null==(i=u.flip)?void 0:i.overflows)||[];if(m&&M.push(I[k]),f){let e=function(e,t,n){void 0===n&&(n=!1);let i=ng(e),a=nx(nb(e)),o=nv(a),s="x"===a?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=nS(s)),[s,nS(s)]}(l,c,E);M.push(I[e[0]],I[e[1]])}if(P=[...P,{placement:l,overflows:M}],!M.every(e=>e<=0)){let e=((null==(a=u.flip)?void 0:a.index)||0)+1,t=N[e];if(t&&(!("alignment"===f&&_!==nb(t))||P.every(e=>nb(e.placement)!==_||e.overflows[0]>0)))return{data:{index:e,overflows:P},reset:{placement:t}};let n=null==(o=P.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:o.placement;if(!n)switch(x){case"bestFit":{let e=null==(s=P.filter(e=>{if(C){let t=nb(e.placement);return t===_||"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:s[0];e&&(n=e);break}case"initialPlacement":n=d}if(l!==n)return{reset:{placement:n}}}return{}}}),options:[e,t]}},rE=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"size",options:n,async fn(e){var t,i;let a,o;let{placement:s,rects:l,platform:u,elements:c}=e,{apply:d=()=>{},...p}=nm(n,e),h=await nM(e,p),m=nf(s),f=ng(s),g="y"===nb(s),{width:x,height:v}=l.floating;"top"===m||"bottom"===m?(a=m,o=f===(await (null==u.isRTL?void 0:u.isRTL(c.floating))?"start":"end")?"left":"right"):(o=m,a="end"===f?"top":"bottom");let b=v-h.top-h.bottom,w=x-h.left-h.right,k=ns(v-h[a],b),_=ns(x-h[o],w),T=!e.middlewareData.shift,E=k,A=_;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(A=w),null!=(i=e.middlewareData.shift)&&i.enabled.y&&(E=b),T&&!f){let e=nl(h.left,0),t=nl(h.right,0),n=nl(h.top,0),i=nl(h.bottom,0);g?A=x-2*(0!==e||0!==t?e+t:nl(h.left,h.right)):E=v-2*(0!==n||0!==i?n+i:nl(h.top,h.bottom))}await d({...e,availableWidth:A,availableHeight:E});let C=await u.getDimensions(c.floating);return x!==C.width||v!==C.height?{reset:{rects:!0}}:{}}}),options:[e,t]}},rS=(e,t)=>{var n;return{...(void 0===(n=e)&&(n={}),{name:"hide",options:n,async fn(e){let{rects:t}=e,{strategy:i="referenceHidden",...a}=nm(n,e);switch(i){case"referenceHidden":{let n=nP(await nM(e,{...a,elementContext:"reference"}),t.reference);return{data:{referenceHiddenOffsets:n,referenceHidden:nR(n)}}}case"escaped":{let n=nP(await nM(e,{...a,altBoundary:!0}),t.floating);return{data:{escapedOffsets:n,escaped:nR(n)}}}default:return{}}}}),options:[e,t]}},rA=(e,t)=>
6({...rb(e),options:[e,t]});var rC=Symbol("radix.slottable");function rN(e){return I.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===rC}var rI=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=function(e){let t=function(e){let t=I.forwardRef((e,t)=>{let{children:n,...i}=e;if(I.isValidElement(n)){var a,o;let e,s;let l=(e=null==(a=Object.getOwnPropertyDescriptor(n.props,"ref"))?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null==(o=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:o.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let i in t){let a=e[i],o=t[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==I.Fragment&&(u.ref=t?eG(t,l):l),I.cloneElement(n,u)}return I.Children.count(n)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=I.forwardRef((e,n)=>{let{children:i,...a}=e,o=I.Children.toArray(i),s=o.find(rN);if(s){let e=s.props.children,i=o.map(t=>t===s?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t);return U.jsx(t,{...a,ref:n,children:I.isValidElement(e)?I.cloneElement(e,void 0,i):null})}return U.jsx(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}(`Primitive.${t}`),i=I.forwardRef((e,i)=>{let{asChild:a,...o}=e,s=a?n:t;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),U.jsx(s,{...o,ref:i}
6)});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{});function rM(e,t){e&&P.flushSync(()=>e.dispatchEvent(t))}var rP=I.forwardRef((e,t)=>{let{children:n,width:i=10,height:a=5,...o}=e;return U.jsx(rI.svg,{...o,ref:t,width:i,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none",children:e.asChild?n:U.jsx("polygon",{points:"0,0 30,0 15,10"})})});function rR(e){let t=I.useRef(e);return I.useEffect(()=>{t.current=e}),I.useMemo(()=>(...e)=>{var n;return null==(n=t.current)?void 0:n.call(t,...e)},[])}rP.displayName="Arrow";var rD="Popper",[rL,rO]=nn(rD),[rB,rj]=rL(rD),rz=e=>{let{__scopePopper:t,children:n}=e,[i,a]=I.useState(null);return U.jsx(rB,{scope:t,anchor:i,onAnchorChange:a,children:n})};rz.displayName=rD;var rF="PopperAnchor",rH=I.forwardRef((e,t)=>{let{__scopePopper:n,virtualRef:i,...a}=e,o=rj(rF,n),s=I.useRef(null),l=eq(t,s),u=I.useRef(null);return I.useEffect(()=>{let e=u.current;u.current=(null==i?void 0:i.current)||s.current,e!==u.current&&o.onAnchorChange(u.current)}),i?null:U.jsx(rI.div,{...a,ref:l})});rH.displayName=rF;var rU="PopperContent",[rG,rq]=rL(rU),rV=I.forwardRef((e,t)=>{var n,i,a,o,s,l;let{__scopePopper:u,side:c="bottom",sideOffset:d=0,align:p="center",alignOffset:h=0,arrowPadding:m=0,avoidCollisions:f=!0,collisionBoundary:g=[],collisionPadding:x=0,sticky:v="partial",hideWhenDetached:b=!1,updatePositionStrategy:w="optimized",onPlaced:k,..._}=e,T=rj(rU,u),[E,A]=I.useState(null),C=eq(t,e=>A(e)),[N,M]=I.useState(null),R=function(e){let[t,n]=I.useState(void 0);return nr(()=>{if(e){n({width:e.offsetWidth,height:e.offsetHeight});let t=new ResizeObserver(t=>{let i,a;if(!Array.isArray(t)||!t.length)return;let o=t[0];if("borderBoxSize"in o){let e=o.borderBoxSize,t=Array.isArray(e)?e[0]:e;i=t.inlineSize,a=t.blockSize}else i=e.offsetWidth,a=e.offsetHeight;n({width:i,height:a})});return t.observe(e,{box:"border-box"}),()=>t.unobserve(e)}n(void 0)},[e]),t}(N),D=(null==R?void 0:R.width)??0,L=(null==R?void 0:R.height)??0,O="number"==typeof x?x:{top:0,right:0,bottom:0,left:0,...x},B=Array.isArray(g)?g:[g],j=B.length>0,z={padding:O,boundary:B.filter(rX),altBoundary:j},{refs:F,floatingStyles:H,placement:G,isPositioned:q,middlewareData:V}=function(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:a,elements:{reference:o,floating:s}={},transform:l=!0,whileElementsMounted:u,open:c}=e,[d,p]=I.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[h,m]=I.useState(i);rg(h,i)||m(i);let[f,g]=I.useState(null),[x,v]=I.useState(null),b=I.useCallback(e=>{e!==T.current&&(T.current=e,g(e))},[]),w=I.useCallback(e=>{e!==E.current&&(E.current=e,v(e))},[]),k=o||f,_=s||x,T=I.useRef(null),E=I.useRef(null),A=I.useRef(d),C=null!=u,N=ry(u),M=ry(a),R=ry(c),D=I.useCallback(()=>{if(!T.current||!E.current)return;let e={placement:t,strategy:n,middleware:h};M.current&&(e.platform=M.current),rm(T.current,E.current,e).then(e=>{let t={...e,isPositioned:!1!==R.current};L.current&&!rg(A.current,t)&&(A.current=t,P.flushSync(()=>{p(t)}))})},[h,t,n,M,R]);rf(()=>{!1===c&&A.current.isPositioned&&(A.current.isPositioned=!1,p(e=>({...e,isPositioned:!1})))},[c]);let L=I.useRef(!1);rf(()=>(L.current=!0,()=>{L.current=!1}),[]),rf(()=>{if(k&&(T.current=k),_&&(E.current=_),k&&_){if(N.current)return N.current(k,_,D);D()}},[k,_,D,N,C]);let O=I.useMemo(()=>({reference:T,floating:E,setReference:b,setFloating:w}),[b,w]),B=I.useMemo(()=>({reference:k,floating:_}),[k,_]),j=I.useMemo(()=>{let e={position:n,left:0,top:0};if(!B.floating)return e;let t=rv(B.floating,d.x),i=rv(B.floating,d.y);return l?{...e,transform:"translate("+t+"px, "+i+"px)",...rx(B.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:i}},[n,l,B.floating,d.x,d.y]);return I.useMemo(()=>({...d,update:D,refs:O,elements:B,floatingStyles:j}),[d,D,O,B,j])}({strategy:"fixed",placement:c+("center"!==p?"-"+p:""),whileElementsMounted:(...e)=>(function(e,t,n,i){void 0===i&&(i={});let{ancestorScroll:a=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:l="function"==typeof IntersectionObserver,animationFrame:u=!1}=i,c=n8(e),d=a||o?[...c?n3(c):[],...n3(t)]:[];
6d.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});let p=c&&l?function(e,t){let n=null,i,a=nz(e);function o(){var e;clearTimeout(i),null==(e=n)||e.disconnect(),n=null}return function s(l,u){void 0===l&&(l=!1),void 0===u&&(u=1),o();let c=e.getBoundingClientRect(),{left:d,top:p,width:h,height:m}=c;if(l||t(),!h||!m)return;let f=nc(p),g={rootMargin:-f+"px "+-nc(a.clientWidth-(d+h))+"px "+-nc(a.clientHeight-(p+m))+"px "+-nc(d)+"px",threshold:nl(0,ns(1,u))||1},x=!0;function v(t){let n=t[0].intersectionRatio;if(n!==u){if(!x)return s();n?s(!1,n):i=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==n||rp(c,e.getBoundingClientRect())||s(),x=!1}try{n=new IntersectionObserver(v,{...g,root:a.ownerDocument})}catch{n=new IntersectionObserver(v,g)}n.observe(e)}(!0),o}(c,n):null,h=-1,m=null;s&&(m=new ResizeObserver(e=>{let[i]=e;i&&i.target===c&&m&&(m.unobserve(t),cancelAnimationFrame(h),h=requestAnimationFrame(()=>{var e;null==(e=m)||e.observe(t)})),n()}),c&&!u&&m.observe(c),m.observe(t));let f,g=u?rn(e):null;return u&&function t(){let i=rn(e);g&&!rp(g,i)&&n(),g=i,f=requestAnimationFrame(t)}(),n(),()=>{var e;d.forEach(e=>{a&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==p||p(),null==(e=m)||e.disconnect(),m=null,u&&cancelAnimationFrame(f)}})(...e,{animationFrame:"always"===w}),elements:{reference:T.anchor},middleware:[rw({mainAxis:d+L,alignmentAxis:h}),f&&rk({mainAxis:!0,crossAxis:!1,limiter:"partial"===v?r_():void 0,...z}),f&&rT({...z}),rE({...z,apply:({elements:e,rects:t,availableWidth:n,availableHeight:i})=>{let{width:a,height:o}=t.reference,s=e.floating.style;s.setProperty("--radix-popper-available-width",`${n}px`),s.setProperty("--radix-popper-available-height",`${i}px`),s.setProperty("--radix-popper-anchor-width",`${a}px`),s.setProperty("--radix-popper-anchor-height",`${o}px`)}}),N&&rA({element:N,padding:m}),rQ({arrowWidth:D,arrowHeight:L}),b&&rS({strategy:"referenceHidden",...z})]}),[W,Y]=rZ(G),K=rR(k);nr(()=>{q&&(null==K||K())},[q,K]);let X=null==(n=V.arrow)?void 0:n.x,Q=null==(i=V.arrow)?void 0:i.y,Z=(null==(a=V.arrow)?void 0:a.centerOffset)!==0,[$,J]=I.useState();return nr(()=>{E&&J(window.getComputedStyle(E).zIndex)},[E]),U.jsx("div",{ref:F.setFloating,"data-radix-popper-content-wrapper":"",style:{...H,transform:q?H.transform:"translate(0, -200%)",minWidth:"max-content",zIndex:$,"--radix-popper-transform-origin":[null==(o=V.transformOrigin)?void 0:o.x,null==(s=V.transformOrigin)?void 0:s.y].join(" "),...(null==(l=V.hide)?void 0:l.referenceHidden)&&{visibility:"hidden",pointerEvents:"none"}},dir:e.dir,children:U.jsx(rG,{scope:u,placedSide:W,onArrowChange:M,arrowX:X,arrowY:Q,shouldHideArrow:Z,children:U.jsx(rI.div,{"data-side":W,"data-align":Y,..._,ref:C,style:{..._.style,animation:q?void 0:"none"}})})})});rV.displayName=rU;var rW="PopperArrow",rY={top:"bottom",right:"left",bottom:"top",left:"right"},rK=I.forwardRef(function(e,t){let{__scopePopper:n,...i}=e,a=rq(rW,n),o=rY[a.placedSide];return U.jsx("span",{ref:a.onArrowChange,style:{position:"absolute",left:a.arrowX,top:a.arrowY,[o]: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:U.jsx(rP,{...i,ref:t,style:{...i.style,display:"block"}})})});function rX(e){return null!==e}rK.displayName=rW;var rQ=e=>({name:"transformOrigin",options:e,fn(t){var n,i,a;let{placement:o,rects:s,middlewareData:l}=t,u=(null==(n=l.arrow)?void 0:n.centerOffset)!==0,c=u?0:e.arrowWidth,d=u?0:e.arrowHeight,[p,h]=rZ(o),m={start:"0%",center:"50%",end:"100%"}[h],f=((null==(i=l.arrow)?void 0:i.x)??0)+c/2,g=((null==(a=l.arrow)?void 0:a.y)??0)+d/2,x="",v="";return"bottom"===p?(x=u?m:`${f}px`,v=`${-d}px`):"top"===p?(x=u?m:`${f}px`,v=`${s.floating.height+d}px`):"right"===p?(x=`${-d}px`,v=u?m:`${g}px`):"left"===p&&(x=`${s.floating.width+d}px`,v=u?m:`${g}px`),{data:{x:x,y:v}}}});function rZ(e){let[t,n="center"]=e.split("-");return[t,n]}var r$=I.forwardRef((e,t)=>
6{var n;let{container:i,...a}=e,[o,s]=I.useState(!1);nr(()=>s(!0),[]);let l=i||o&&(null==(n=null==globalThis?void 0:globalThis.document)?void 0:n.body);return l?P.createPortal(U.jsx(rI.div,{...a,ref:t}),l):null});r$.displayName="Portal";var rJ=e=>{var t,n;let i,a;let{present:o,children:s}=e,l=function(e){var t,n;let[i,a]=I.useState(),o=I.useRef(null),s=I.useRef(e),l=I.useRef("none"),[u,c]=(t=e?"mounted":"unmounted",n={mounted:{UNMOUNT:"unmounted",ANIMATION_OUT:"unmountSuspended"},unmountSuspended:{MOUNT:"mounted",ANIMATION_END:"unmounted"},unmounted:{MOUNT:"mounted"}},I.useReducer((e,t)=>n[e][t]??e,t));return I.useEffect(()=>{let e=r0(o.current);l.current="mounted"===u?e:"none"},[u]),nr(()=>{let t=o.current,n=s.current;if(n!==e){let i=l.current,a=r0(t);e?c("MOUNT"):"none"===a||(null==t?void 0:t.display)==="none"?c("UNMOUNT"):c(n&&i!==a?"ANIMATION_OUT":"UNMOUNT"),s.current=e}},[e,c]),nr(()=>{if(i){let e;let t=i.ownerDocument.defaultView??window,n=n=>{let a=r0(o.current).includes(CSS.escape(n.animationName));if(n.target===i&&a&&(c("ANIMATION_END"),!s.current)){let n=i.style.animationFillMode;i.style.animationFillMode="forwards",e=t.setTimeout(()=>{"forwards"===i.style.animationFillMode&&(i.style.animationFillMode=n)})}},a=e=>{e.target===i&&(l.current=r0(o.current))};return i.addEventListener("animationstart",a),i.addEventListener("animationcancel",n),i.addEventListener("animationend",n),()=>{t.clearTimeout(e),i.removeEventListener("animationstart",a),i.removeEventListener("animationcancel",n),i.removeEventListener("animationend",n)}}c("ANIMATION_END")},[i,c]),{isPresent:["mounted","unmountSuspended"].includes(u),ref:I.useCallback(e=>{o.current=e?getComputedStyle(e):null,a(e)},[])}}(o),u="function"==typeof s?s({present:l.isPresent}):I.Children.only(s),c=eq(l.ref,(i=null==(t=Object.getOwnPropertyDescriptor(u.props,"ref"))?void 0:t.get)&&"isReactWarning"in i&&i.isReactWarning?u.ref:(i=null==(n=Object.getOwnPropertyDescriptor(u,"ref"))?void 0:n.get)&&"isReactWarning"in i&&i.isReactWarning?u.props.ref:u.props.ref||u.ref);return"function"==typeof s||l.isPresent?I.cloneElement(u,{ref:c}):null};function r0(e){return(null==e?void 0:e.animationName)||"none"}rJ.displayName="Presence";var r1,r2,r4,r5="dismissableLayer.update",r3=I.createContext({layers:new Set,layersWithOutsidePointerEventsDisabled:new Set,branches:new Set}),r6=I.forwardRef((e,t)=>{let{disableOutsidePointerEvents:n=!1,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,onDismiss:l,...u}=e,c=I.useContext(r3),[d,p]=I.useState(null),h=(null==d?void 0:d.ownerDocument)??(null==globalThis?void 0:globalThis.document),[,m]=I.useState({}),f=eq(t,e=>p(e)),g=Array.from(c.layers),[x]=[...c.layersWithOutsidePointerEventsDisabled].slice(-1),v=g.indexOf(x),b=d?g.indexOf(d):-1,w=c.layersWithOutsidePointerEventsDisabled.size>0,k=b>=v,_=function(e,t=null==globalThis?void 0:globalThis.document){let n=rR(e),i=I.useRef(!1),a=I.useRef(()=>{});return I.useEffect(()=>{let e=e=>{if(e.target&&!i.current){let i=function(){r8("dismissableLayer.pointerDownOutside",n,o,{discrete:!0})},o={originalEvent:e};"touch"===e.pointerType?(t.removeEventListener("click",a.current),a.current=i,t.addEventListener("click",a.current,{once:!0})):i()}else t.removeEventListener("click",a.current);i.current=!1},o=window.setTimeout(()=>{t.addEventListener("pointerdown",e)},0);return()=>{window.clearTimeout(o),t.removeEventListener("pointerdown",e),t.removeEventListener("click",a.current)}},[t,n]),{onPointerDownCapture:()=>i.current=!0}}(e=>{let t=e.target,n=[...c.branches].some(e=>e.contains(t));!k||n||(null==a||a(e),null==s||s(e),e.defaultPrevented||null==l||l())},h),T=function(e,t=null==globalThis?void 0:globalThis.document){let n=rR(e),i=I.useRef(!1);return I.useEffect(()=>{let e=e=>{e.target&&!i.current&&r8("dismissableLayer.focusOutside",n,{originalEvent:e},{discrete:!1})};return t.addEventListener("focusin",e),()=>t.removeEventListener("focusin",e)},[t,n]),{onFocusCapture:()=>i.current=!0,onBlurCapture:()=>i.current=!1}}(e=>{let t=e.target;[...c.branches].some(e=>e.contains(t))||(null==o||o(e),null==s||s(e),e.defaultPrevented||null==l||l())},h);return function(e,t=null==globalThis?void 0:globalThis.document){let n=rR(e);I.useEffect(()=>{let e=e=>{"Escape"===e.key&&n(e)};return t.addEventListener("keydown",e,{capture:!0}),()=>t.removeEventListener("keydown",e,{capture:!0})},[n,t])}(e=>{b===c.layers.size-1&&(null==i||i(e),!e.defaultPrevented&&l&&(e.preventDefault(),l()))},h),I.useEffect(()=>{if(d)return n&&(0===c.layersWithOutsidePointerEventsDisabled.size&&(r4=h.body.style.pointerEvents,h.body.style.pointerEvents="none"),c.layersWithOutsidePointerEventsDisabled.add(d)),c.layers.add(d),r7(),()=>{n&&1===c.layersWithOutsidePointerEventsDisabled.size&&(h.body.style.pointerEvents=r4)}},[d,h,n,c]),I.useEffect(()=>()=>
6{d&&(c.layers.delete(d),c.layersWithOutsidePointerEventsDisabled.delete(d),r7())},[d,c]),I.useEffect(()=>{let e=()=>m({});return document.addEventListener(r5,e),()=>document.removeEventListener(r5,e)},[]),U.jsx(rI.div,{...u,ref:f,style:{pointerEvents:w?k?"auto":"none":void 0,...e.style},onFocusCapture:nt(e.onFocusCapture,T.onFocusCapture),onBlurCapture:nt(e.onBlurCapture,T.onBlurCapture),onPointerDownCapture:nt(e.onPointerDownCapture,_.onPointerDownCapture)})});function r7(){let e=new CustomEvent(r5);document.dispatchEvent(e)}function r8(e,t,n,{discrete:i}){let a=n.originalEvent.target,o=new CustomEvent(e,{bubbles:!1,cancelable:!0,detail:n});t&&a.addEventListener(e,t,{once:!0}),i?rM(a,o):a.dispatchEvent(o)}r6.displayName="DismissableLayer",I.forwardRef((e,t)=>{let n=I.useContext(r3),i=I.useRef(null),a=eq(t,i);return I.useEffect(()=>{let e=i.current;if(e)return n.branches.add(e),()=>{n.branches.delete(e)}},[n.branches]),U.jsx(rI.div,{...e,ref:a})}).displayName="DismissableLayerBranch";var r9,ie="HoverCard",[it]=nn(ie,[rO]),ir=rO(),[ii,ia]=it(ie),io=e=>{let{__scopeHoverCard:t,children:n,open:i,defaultOpen:a,onOpenChange:o,openDelay:s=700,closeDelay:l=300}=e,u=ir(t),c=I.useRef(0),d=I.useRef(0),p=I.useRef(!1),h=I.useRef(!1),[m,f]=na({prop:i,defaultProp:a??!1,onChange:o,caller:ie}),g=I.useCallback(()=>{clearTimeout(d.current),c.current=window.setTimeout(()=>f(!0),s)},[s,f]),x=I.useCallback(()=>{clearTimeout(c.current),p.current||h.current||(d.current=window.setTimeout(()=>f(!1),l))},[l,f]),v=I.useCallback(()=>f(!1),[f]);return I.useEffect(()=>()=>{clearTimeout(c.current),clearTimeout(d.current)},[]),U.jsx(ii,{scope:t,open:m,onOpenChange:f,onOpen:g,onClose:x,onDismiss:v,hasSelectionRef:p,isPointerDownOnContentRef:h,children:U.jsx(rz,{...u,children:n})})};io.displayName=ie;var is="HoverCardTrigger",il=I.forwardRef((e,t)=>{let{__scopeHoverCard:n,...i}=e,a=ia(is,n),o=ir(n);return U.jsx(rH,{asChild:!0,...o,children:U.jsx(rI.a,{"data-state":a.open?"open":"closed",...i,ref:t,onPointerEnter:nt(e.onPointerEnter,ix(a.onOpen)),onPointerLeave:nt(e.onPointerLeave,ix(a.onClose)),onFocus:nt(e.onFocus,a.onOpen),onBlur:nt(e.onBlur,a.onClose),onTouchStart:nt(e.onTouchStart,e=>e.preventDefault())})})});il.displayName=is;var iu="HoverCardPortal",[ic,id]=it(iu,{forceMount:void 0}),ip=e=>{let{__scopeHoverCard:t,forceMount:n,children:i,container:a}=e,o=ia(iu,t);return U.jsx(ic,{scope:t,forceMount:n,children:U.jsx(rJ,{present:n||o.open,children:U.jsx(r$,{asChild:!0,container:a,children:i})})})};ip.displayName=iu;var ih="HoverCardContent",im=I.forwardRef((e,t)=>{let n=id(ih,e.__scopeHoverCard),{forceMount:i=n.forceMount,...a}=e,o=ia(ih,e.__scopeHoverCard);return U.jsx(rJ,{present:i||o.open,children:U.jsx(ig,{"data-state":o.open?"open":"closed",...a,onPointerEnter:nt(e.onPointerEnter,ix(o.onOpen)),onPointerLeave:nt(e.onPointerLeave,ix(o.onClose)),ref:t})})});im.displayName=ih;var ig=I.forwardRef((e,t)=>{let{__scopeHoverCard:n,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:o,onInteractOutside:s,...l}=e,u=ia(ih,n),c=ir(n),d=I.useRef(null),p=eq(t,d),[h,m]=I.useState(!1);return I.useEffect(()=>{if(h){let e=document.body;return r9=e.style.userSelect||e.style.webkitUserSelect,e.style.userSelect="none",e.style.webkitUserSelect="none",()=>{e.style.userSelect=r9,e.style.webkitUserSelect=r9}}},[h]),I.useEffect(()=>{if(d.current){let e=()=>{m(!1),u.isPointerDownOnContentRef.current=!1,setTimeout(()=>{var e;
6(null==(e=document.getSelection())?void 0:e.toString())!==""&&(u.hasSelectionRef.current=!0)})};return document.addEventListener("pointerup",e),()=>{document.removeEventListener("pointerup",e),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!1}}},[u.isPointerDownOnContentRef,u.hasSelectionRef]),I.useEffect(()=>{d.current&&(function(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>e.tabIndex>=0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP});for(;n.nextNode();)t.push(n.currentNode);return t})(d.current).forEach(e=>e.setAttribute("tabindex","-1"))}),U.jsx(r6,{asChild:!0,disableOutsidePointerEvents:!1,onInteractOutside:s,onEscapeKeyDown:i,onPointerDownOutside:a,onFocusOutside:nt(o,e=>{e.preventDefault()}),onDismiss:u.onDismiss,children:U.jsx(rV,{...c,...l,onPointerDown:nt(l.onPointerDown,e=>{e.currentTarget.contains(e.target)&&m(!0),u.hasSelectionRef.current=!1,u.isPointerDownOnContentRef.current=!0}),ref:p,style:{...l.style,userSelect:h?"text":void 0,WebkitUserSelect:h?"text":void 0,"--radix-hover-card-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-hover-card-content-available-width":"var(--radix-popper-available-width)","--radix-hover-card-content-available-height":"var(--radix-popper-available-height)","--radix-hover-card-trigger-width":"var(--radix-popper-anchor-width)","--radix-hover-card-trigger-height":"var(--radix-popper-anchor-height)"}})})});function ix(e){return t=>"touch"===t.pointerType?void 0:e()}function iv({...e}){return U.jsx(io,{"data-slot":"hover-card",...e})}function iy({...e}){return U.jsx(il,{"data-slot":"hover-card-trigger",...e})}function ib({className:e,align:t="center",sideOffset:n=4,...i}){return U.jsx(ip,{"data-slot":"hover-card-portal",children:U.jsx(im,{"data-slot":"hover-card-content",align:t,sideOffset:n,className:t8("bg-popover text-popover-foreground 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 z-50 w-64 origin-(--radix-hover-card-content-transform-origin) rounded-md border p-4 shadow-md outline-hidden",e),...i})})}I.forwardRef((e,t)=>{let{__scopeHoverCard:n,...i}=e,a=ir(n);return U.jsx(rK,{...a,...i,ref:t})}).displayName="HoverCardArrow";let iw=I.useContext;function ik(e){if("type"in e&&"source"===e.type)return"source";let t=e.mediaType||"";return t.startsWith("image/")?"image":t.startsWith("video/")?"video":t.startsWith("audio/")?"audio":t.startsWith("application/pdf")||t.startsWith("text/")||t.includes("document")||t.includes("spreadsheet")?"document":"unknown"}function i_(e){if("type"in e&&"source"===e.type)return e.title||"Source Document";if(e.filename)return e.filename;switch(ik(e)){case"image":return"Image";case"video":return"Video";
6case"audio":return"Audio";case"document":return"Document";default:return"Attachment"}}function iT(e){switch(e){case"image":return U.jsx(ew,{className:"size-4"});case"video":return U.jsx(eR,{className:"size-4"});case"audio":return U.jsx(eE,{className:"size-4"});case"document":return U.jsx(ey,{className:"size-4"});case"source":return U.jsx(eb,{className:"size-4"});default:return U.jsx(ev,{className:"size-4"})}}let iE=(0,I.createContext)(null);function iS(){let e=(0,I.useContext)(iE);if(!e)throw Error("Attachment components must be used within <Attachment>");return e}function iA({variant:e="grid",className:t,children:n,...i}){return U.jsx("div",{className:t8("flex flex-wrap gap-2","grid"===e&&"grid grid-cols-[repeat(auto-fill,minmax(96px,1fr))] gap-2","inline"===e&&"flex-row items-center","list"===e&&"flex-col",t),"data-variant":e,...i,children:n})}function iC({data:e,onRemove:t,isUploading:n,className:i,children:a,...o}){let s=o["data-variant"]||"grid";return U.jsx(iE.Provider,{value:{data:e,onRemove:t,variant:s,isUploading:n},children:U.jsx("div",{className:t8("group relative","grid"===s&&"size-24 overflow-hidden rounded-lg bg-muted","inline"===s&&"flex items-center gap-2 rounded-full bg-muted px-3 py-1.5 text-sm","list"===s&&"flex items-center gap-3 rounded-lg bg-muted p-3",n&&"opacity-60",i),...o,children:a})})}function iN({fallbackIcon:e,className:t,...n}){let{data:i,variant:a,isUploading:o}=iS();if(!i)return null;let s=ik(i),l="image"===s,u=i.url;if(o)return U.jsx("div",{className:t8("flex items-center justify-center text-muted-foreground","grid"===a&&"size-full","inline"===a&&"size-4","list"===a&&"size-10",t),...n,children:U.jsx(ek,{className:"size-4 animate-spin"})});if(l&&u)return U.jsx("img",{alt:i_(i),className:t8("object-cover","grid"===a&&"size-full","inline"===a&&"size-5 rounded","list"===a&&"size-10 rounded",t),src:u,...n});let c=e||iT(s);return U.jsx("div",{className:t8("flex items-center justify-center text-muted-foreground","grid"===a&&"size-full","inline"===a&&"","list"===a&&"size-10 rounded bg-background",t),...n,children:c})}function iI({showMediaType:e=!1,className:t,...n}){let{data:i,variant:a}=iS();if(!i)return null;let o=i_(i),s=i.mediaType;return U.jsxs("div",{className:t8("flex min-w-0 flex-col","inline"===a&&"flex-row items-center gap-1",t),...n,children:[U.jsx("span",{className:"truncate text-sm font-medium",children:o}),e&&s&&U.jsx("span",{className:"truncate text-xs text-muted-foreground",children:s})]})}function iM({label:e="Remove",className:t,...n}){let{onRemove:i,variant:a}=iS();return i?U.jsxs(ne,{"aria-label":e,className:t8("shrink-0 transition-opacity","grid"===a&&"absolute right-1 top-1 size-6 rounded-full bg-background/80 p-0 opacity-0 backdrop-blur-sm hover:bg-background group-hover:opacity-100 [&>svg]:size-3","inline"===a&&"size-4 rounded-full p-0 hover:bg-transparent [&>svg]:size-3","list"===a&&"size-6 rounded-full p-0 opacity-0 group-hover:opacity-100 [&>svg]:size-3",t),onClick:e=>{e.stopPropagation(),i()},size:"icon",type:"button",variant:"ghost",...n,children:[U.jsx(eL,{}),U.jsx("span",{className:"sr-only",children:e})]}):null}function iP({openDelay:e=200,closeDelay:t=100,...n}){return U.jsx(iv,{openDelay:e,closeDelay:t,...n})}function iR(e){return U.jsx(iy,{...e})}function iD({align:e="center",className:t,data:n,...i}){let a=iw(iE),o=n||(null==a?void 0:a.data);if(!o)return null;let s=ik(o),l="image"===s,u=o.url;return U.jsx(ib,{align:e,className:t8("w-64 p-2",t),...i,children:l&&u?U.jsx("img",{alt:i_(o),className:"w-full rounded object-cover",src:u}):U.jsxs("div",{className:"flex items-center gap-2 p-2",children:[iT(s),U.jsx("span",{className:"text-sm",children:i_(o)})]})})}function iL({className:e,children:t,...n}){return U.jsx("div",{className:t8("flex items-center justify-center rounded-lg border border-dashed p-4 text-sm text-muted-foreground",e),...n,children:t||"No attachments"})}let iO={footer:{borderTop:"1px solid #f0f0f0",padding:"12px 14px",backgroundColor:"#ffffff"},poweredBy:{fontSize:"11px",color:"#9ca3af",marginBottom:"6px",textAlign:"center"},poweredByLink:{color:"#9ca3af",textDecoration:"none"},inputForm:{display:"flex",flexDirection:"column",gap:"8px"}
6,attachmentsWrapper:{marginBottom:"4px"},inputRow:{display:"flex",gap:"8px",alignItems:"center"},inputWrapper:{flex:1,display:"flex",alignItems:"center",gap:"8px",padding:"8px 14px",minHeight:"44px",backgroundColor:"#f9fafb",borderRadius:"12px",border:"1px solid #e5e5e5",transition:"border-color 0.2s, box-shadow 0.2s"},attachButton:{width:"32px",height:"32px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"transparent",border:"none",borderRadius:"8px",cursor:"pointer",color:"#6b7280",padding:0,flexShrink:0,transition:"color 0.2s"},textarea:{flex:1,border:"none",background:"transparent",resize:"none",fontSize:"14px",lineHeight:"1.5",outline:"none",minHeight:"24px",maxHeight:"120px",color:"#1f2937"},submitButton:e=>({width:"44px",height:"44px",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:e?"#86efac":"#00d47b",border:"none",borderRadius:"12px",cursor:e?"not-allowed":"pointer",color:"white",flexShrink:0,transition:"background-color 0.2s, transform 0.1s"}),hiddenFileInput:{display:"none"}};function iB({value:e,onChange:t,onSubmit:n,isLoading:i,placeholder:a="Ask about products, recipes, deals...",showPoweredBy:o=!0,pendingFiles:s=[],onFileUpload:l,onFileRemove:u,isUploadingFile:c=!1,enableFileAttachments:d=!0}){let p=(0,I.useRef)(null),h=(0,I.useRef)(null);(0,I.useEffect)(()=>{p.current&&(p.current.style.height="auto",p.current.style.height=`${p.current.scrollHeight}px`)},[e]),(0,I.useEffect)(()=>{let e=setTimeout(()=>{var e;null==(e=p.current)||e.focus()},100);return()=>clearTimeout(e)},[]);let m=async e=>{let t=e.target.files;if(!(!t||0===t.length||!l)){for(let e of Array.from(t))await l(e);h.current&&(h.current.value="")}},f=s.some(e=>"complete"===e.uploadStatus),g=i||!e.trim()&&!f,x=M.qL.join(",");return U.jsxs("div",{style:iO.footer,children:[o&&U.jsx("div",{style:iO.poweredBy,children:U.jsx("a",{href:"https://vitalityip.ai",target:"_blank",rel:"noreferrer",style:iO.poweredByLink,children:"powered by VitalityIP"})}),U.jsxs("form",{style:iO.inputForm,onSubmit:t=>{t.preventDefault(),(e.trim()||s.some(e=>"complete"===e.uploadStatus))&&!i&&n(t)},children:[s.length>
60&&U.jsx("div",{style:iO.attachmentsWrapper,children:U.jsx(iA,{variant:"inline",children:s.map(e=>{let t={type:"file",id:e.fileId,filename:e.filename,mediaType:e.contentType,url:e.previewUrl||e.url},n="uploading"===e.uploadStatus;return U.jsxs(iP,{children:[U.jsx(iR,{asChild:!0,children:U.jsx("div",{children:U.jsxs(iC,{data:t,onRemove:u?()=>u(e.fileId):void 0,isUploading:n,className:"error"===e.uploadStatus?"border border-destructive":"",title:e.errorMessage||e.filename,children:[U.jsx(iN,{}),U.jsx(iI,{}),U.jsx(iM,{})]})})}),U.jsx(iD,{data:t})]},e.fileId)})})}),U.jsxs("div",{style:iO.inputRow,children:[U.jsxs("div",{style:iO.inputWrapper,children:[d&&l&&U.jsx("button",{type:"button",style:iO.attachButton,onClick:()=>{var e;null==(e=h.current)||e.click()},disabled:i||c,"aria-label":"Attach file",title:"Attach image or PDF",children:c?U.jsx(ek,{size:18,className:"animate-spin"}):U.jsx(eS,{size:18})}),U.jsx("textarea",{ref:p,style:iO.textarea,value:e,onChange:t,onKeyDown:t=>{if("Enter"===t.key&&!t.shiftKey&&(t.preventDefault(),(e.trim()||s.some(e=>"complete"===e.uploadStatus))&&!i)){let e=t.currentTarget.form;e&&e.requestSubmit()}},placeholder:a,rows:1})]}),U.jsx("button",{type:"submit",style:iO.submitButton(g),disabled:g,"aria-label":"Send message",children:U.jsx(eN,{size:20})})]}),U.jsx("input",{ref:h,type:"file",accept:x,multiple:!0,onChange:m,style:iO.hiddenFileInput})]})]})}let ij=function(e){if(null==e)return iF;if("function"==typeof e)return iz(e);if("object"==typeof e)return Array.isArray(e)?function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=ij(e[n]);return iz(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e):iz(function(t){let n;for(n in e)if(t[n]!==e[n])return!1;return!0});if("string"==typeof e)return iz(function(t){return t&&t.type===e});throw Error("Expected function, string, or object as test")};function iz(e){return function(t,n,i){return!!(null!==t&&"object"==typeof t&&"type"in t&&e.call(this,t,"number"==typeof n?n:void 0,i||void 0))}}function iF(){return!0}let iH=[],iU="skip";function iG(e,t,n,i){let a;"function"==typeof t&&"function"!=typeof n?(i=n,n=t):a=t;let o=ij(a),s=i?-1:1;(function e(a,l,u){let c=a&&"object"==typeof a?a:{};if("string"==typeof c.type){let e="string"==typeof c.tagName?c.tagName:"string"==typeof c.name?c.name:void 0;Object.defineProperty(d,"name",{value:"node ("+a.type+(e?"<"+e+">":"")+")"})}return d;function d(){var c;let d=iH,p,h,m;if((!t||o(a,l,u[u.length-1]||void 0))&&!1===(d=Array.isArray(c=n(a,u))?c:"number"==typeof c?[!0,c]:null==c?iH:[c])[0])return d;if("children"in a&&a.children&&a.children&&d[0]!==iU)for(h=(i?a.children.length:-1)+s,m=u.concat(a);h>-1&&h<a.children.length;){if(!1===(p=e(a.children[h],h,m)())[0])return p;h="number"==typeof p[1]?p[1]:h+s}return d}})(e,void 0,[])()}function iq(e,t,n,i){let a,o,s;"function"==typeof t&&"function"!=typeof n?(o=void 0,s=t,a=n):(o=t,s=n,a=i),iG(e,o,function(e,t){let n=t[t.length-1],i=n?n.children.indexOf(e):void 0;return s(e,i,n)},a)}function iV(e,t){if("string"!=typeof e)return null;try{return new URL(e)}catch{if(t)try{return new URL(e,t)}catch{return null}if(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"))try{return new URL(e,"http://example.com")}catch{}return null}}let iW=new Set(["https:","http:","irc:","ircs:","mailto:","xmpp:","blob:"]),iY=new Set(["javascript:","data:","file:","vbscript:"]);function iK(e,t,n,i=!1,a=!1,o=[]){if(!e)return null;if("string"==typeof e&&e.startsWith("#")&&!a)try{if(new URL(e,"http://example.com").hash===e)return e}catch{}if("string"==typeof e&&e.startsWith("data:"))return a&&i&&e.startsWith("data:image/")?e:null;if("string"==typeof e&&e.startsWith("blob:")){try{if("blob:"===new URL(e).protocol&&e.length>5){let t=e.substring(5);if(t&&t.length>0&&"invalid"!==t)return e}}catch{}return null}let s=iV(e,n);if(!s||iY.has(s.protocol)||!(iW.has(s.protocol)||o.includes(s.protocol)||o.includes("*")))return null;if("mailto:"===s.protocol||!s.protocol.match(/^https?:$/))return s.href;let l="string"==typeof e&&(e.startsWith("/")||e.startsWith("./")||e.startsWith("../"));return s&&t.some(e=>{let t=iV(e,n);return!!t&&t.origin===s.origin&&s.href.startsWith(t.href)})?l?s.pathname+s.search+s.hash:s.href:t.includes("*")?"https:"!==s.protocol&&"http:"!==s.protocol?null:l?s.pathname+s.search+s.hash:s.href:null}let iX=Symbol("node-seen"),iQ=(e,t,n,i,a,o,s)=>{let l=(u,c,d)=>
6{if("element"!==u.type||u[iX])return!0;if("a"===u.tagName){let n=iK(u.properties.href,t,e,!1,!1,a);return null===n?(u[iX]=!0,iq(u,l),d&&"number"==typeof c&&(d.children[c]={type:"element",tagName:"span",properties:{title:"Blocked URL: "+String(u.properties.href),class:s},children:[...u.children,{type:"text",value:" [blocked]"}]}),iU):(u.properties.href=n,u.properties.target="_blank",u.properties.rel="noopener noreferrer",!0)}if("img"===u.tagName){let t=iK(u.properties.src,n,e,i,!0,a);return null===t?(u[iX]=!0,iq(u,l),d&&"number"==typeof c&&(d.children[c]={type:"element",tagName:"span",properties:{class:o},children:[{type:"text",value:"[Image blocked: "+String(u.properties.alt||"No description")+"]"}]}),iU):(u.properties.src=t,!0)}return!0};return l};class iZ{constructor(e,t,n){this.normal=t,this.property=e,n&&(this.space=n)}}function i$(e,t){let n={},i={};for(let t of e)Object.assign(n,t.property),Object.assign(i,t.normal);return new iZ(n,i,t)}function iJ(e){return e.toLowerCase()}iZ.prototype.normal={},iZ.prototype.property={},iZ.prototype.space=void 0;class i0{constructor(e,t){this.attribute=t,this.property=e}}i0.prototype.attribute="",i0.prototype.booleanish=!1,i0.prototype.boolean=!1,i0.prototype.commaOrSpaceSeparated=!1,i0.prototype.commaSeparated=!1,i0.prototype.defined=!1,i0.prototype.mustUseProperty=!1,i0.prototype.number=!1,i0.prototype.overloadedBoolean=!1,i0.prototype.property="",i0.prototype.spaceSeparated=!1,i0.prototype.space=void 0;let i1=0,i2=i9(),i4=i9(),i5=i9(),i3=i9(),i6=i9(),i7=i9(),i8=i9();function i9(){return 2**++i1}let ae=Object.freeze(Object.defineProperty({__proto__:null,boolean:i2,booleanish:i4,commaOrSpaceSeparated:i8,commaSeparated:i7,number:i3,overloadedBoolean:i5,spaceSeparated:i6},Symbol.toStringTag,{value:"Module"})),at=Object.keys(ae);class an extends i0{constructor(e,t,n,i){var a,o;let s=-1;if(super(e,t),i&&(this.space=i),"number"==typeof n)for(;++s<at.length;){let e=at[s];a=at[s],(o=(n&ae[e])===ae[e])&&(this[a]=o)}}}function ar(e){let t={},n={};for(let[i,a]of Object.entries(e.properties)){let o=new an(i,e.transform(e.attributes||{},i),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(i)&&(o.mustUseProperty=!0),t[i]=o,n[iJ(i)]=i,n[iJ(o.attribute)]=i}return new iZ(t,n,e.space)}an.prototype.defined=!0;let ai=ar({properties:{ariaActiveDescendant:null,ariaAtomic:i4,ariaAutoComplete:null,ariaBusy:i4,ariaChecked:i4,ariaColCount:i3,ariaColIndex:i3,ariaColSpan:i3,ariaControls:i6,ariaCurrent:null,ariaDescribedBy:i6,ariaDetails:null,ariaDisabled:i4,ariaDropEffect:i6,ariaErrorMessage:null,ariaExpanded:i4,ariaFlowTo:i6,ariaGrabbed:i4,ariaHasPopup:null,ariaHidden:i4,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:i6,ariaLevel:i3,ariaLive:null,ariaModal:i4,ariaMultiLine:i4,ariaMultiSelectable:i4,ariaOrientation:null,ariaOwns:i6,ariaPlaceholder:null,ariaPosInSet:i3,ariaPressed:i4,ariaReadOnly:i4,ariaRelevant:null,ariaRequired:i4,ariaRoleDescription:i6,ariaRowCount:i3,ariaRowIndex:i3,ariaRowSpan:i3,ariaSelected:i4,ariaSetSize:i3,ariaSort:null,ariaValueMax:i3,ariaValueMin:i3,ariaValueNow:i3,ariaValueText:null,role:null},transform:(e,t)=>"role"===t?t:"aria-"+t.slice(4).toLowerCase()});function aa(e,t){return t in e?e[t]:t}function ao(e,t){return aa(e,t.toLowerCase())}let as=ar({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:i7,acceptCharset:i6,accessKey:i6,action:null,allow:null,allowFullScreen:i2,allowPaymentRequest:i2,allowUserMedia:i2,alt:null,as:null,async:i2,autoCapitalize:null,autoComplete:i6,autoFocus:i2,autoPlay:i2,blocking:i6,capture:null,charSet:null,checked:i2,cite:null,className:i6,cols:i3,colSpan:null,content:null,contentEditable:i4,controls:i2,controlsList:i6,coords:i3|i7,crossOrigin:null,data:null,dateTime:null,decoding:null,default:i2,defer:i2,dir:null,dirName:null,disabled:i2,download:i5,draggable:i4,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:i2,formTarget:null,headers:i6,height:i3,hidden:i5,high:i3,href:null,hrefLang:null,htmlFor:i6,httpEquiv:i6,id:null,imageSizes:null,imageSrcSet:null,inert:i2,inputMode:null,integrity:null,is:null,isMap:i2,itemId:null,itemProp:i6,itemRef:i6,itemScope:i2,itemType:i6,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:i2,low:i3,manifest:null,max:null,maxLength:i3,media:null,method:null,min:null,minLength:i3,multiple:i2,muted:i2,name:null,nonce:null,noModule:i2,noValidate:i2,onAbort:null,onAfterPrint:null,onAuxCl
6ick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:i2,optimum:i3,pattern:null,ping:i6,placeholder:null,playsInline:i2,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:i2,referrerPolicy:null,rel:i6,required:i2,reversed:i2,rows:i3,rowSpan:i3,sandbox:i6,scope:null,scoped:i2,seamless:i2,selected:i2,shadowRootClonable:i2,shadowRootDelegatesFocus:i2,shadowRootMode:null,shape:null,size:i3,sizes:null,slot:null,span:i3,spellCheck:i4,src:null,srcDoc:null,srcLang:null,srcSet:null,start:i3,step:null,style:null,tabIndex:i3,target:null,title:null,translate:null,type:null,typeMustMatch:i2,useMap:null,value:i4,width:i3,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:i6,axis:null,background:null,bgColor:null,border:i3,borderColor:null,bottomMargin:i3,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:i2,declare:i2,event:null,face:null,frame:null,frameBorder:null,hSpace:i3,leftMargin:i3,link:null,longDesc:null,lowSrc:null,marginHeight:i3,marginWidth:i3,noResize:i2,noHref:i2,noShade:i2,noWrap:i2,object:null,profile:null,prompt:null,rev:null,rightMargin:i3,rules:null,scheme:null,scrolling:i4,standby:null,summary:null,text:null,topMargin:i3,valueType:null,version:null,vAlign:null,vLink:null,vSpace:i3,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:i2,disableRemotePlayback:i2,prefix:null,property:null,results:i3,security:null,unselectable:null},space:"html",transform:ao}),al=ar({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav
6-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:i8,accentHeight:i3,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:i3,amplitude:i3,arabicForm:null,ascent:i3,attributeName:null,attributeType:null,azimuth:i3,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:i3,by:null,calcMode:null,capHeight:i3,className:i6,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:i3,diffuseConstant:i3,direction:null,display:null,dur:null,divisor:i3,dominantBaseline:null,download:i2,dx:null,dy:null,edgeMode:null,editable:null,elevation:i3,enableBackground:null,end:null,event:null,exponent:i3,externalResourcesRequired:null,fill:null,fillOpacity:i3,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:i7,g2:i7,glyphName:i7,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:i3,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:i3,horizOriginX:i3,horizOriginY:i3,id:null,ideographic:i3,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:i3,k:i3,k1:i3,k2:i3,k3:i3,k4:i3,kernelMatrix:i8,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:i3,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:i3,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,on
6Zoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:i3,overlineThickness:i3,paintOrder:null,panose1:null,path:null,pathLength:i3,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:i6,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:i3,pointsAtY:i3,pointsAtZ:i3,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:i8,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:i8,rev:i8,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:i8,requiredFeatures:i8,requiredFonts:i8,requiredFormats:i8,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:i3,specularExponent:i3,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:i3,strikethroughThickness:i3,string:null,stroke:null,strokeDashArray:i8,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:i3,strokeOpacity:i3,strokeWidth:null,style:null,surfaceScale:i3,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:i8,tabIndex:i3,tableValues:null,target:null,targetX:i3,targetY:i3,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:i8,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:i3,underlineThickness:i3,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:i3,values:null,vAlphabetic:i3,vMathematical:i3,vectorEffect:null,vHanging:i3,vIdeographic:i3,version:null,vertAdvY:i3,vertOriginX:i3,vertOriginY:i3,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:i3,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:aa}),au=ar({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform:(e,t)=>"xlink:"+t.slice(5).toLowerCase()}),ac=ar({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:ao}),ad=ar({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform:(e,t)=>"xml:"+t.slice(3).toLowerCase()}),ap={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"},ah=/[A-Z]/g,am=/-[a-z]/g,af=/^data[-\w.:]+$/i;function ag(e,t){let n=iJ(t),i=t,a=i0;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&"data"===n.slice(0,4)&&af.test(t)){if("-"===t.charAt(4)){let e=t.slice(5).replace(am,av);i="data"+e.charAt(0).toUpperCase()+e.slice(1)}else{let e=t.slice(4);if(!am.test(e)){let n=e.replace(ah,ax);"-"!==n.charAt(0)&&(n="-"+n),t="data"+n}}a=an}return new a(i,t)}function ax(e){return"-"+e.toLowerCase()}function av(e){return e.charAt(1).toUpperCase()}let ay=i$([ai,as,au,ac,ad],"html"),ab=i$([ai,al,au,ac,ad],"svg");function aw(e){let t=[],n=String(e||""),i=n.indexOf(","),a=0,o=!1;for(;!o;){-1===i&&(i=n.length,o=!0);let e=n.slice(a,i).trim();(e||!o)&&t.push(e),a=i+1,i=n.indexOf(",",a)}return t}function ak(e,t){let n=t||{};return(""===e[e.length-1]?[...e,""]:e).join((n.padRight?" ":"")+","+(!1===n.padLeft?"":" ")).trim()}let a_=/[#.]/g;function aT(e){let t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function aE(e){return e.join(" ").trim()}function aS(e,t,n){let i=n?function(e){let t=new Map;for(let n of e)t.set(n.toLowerCase(),n);return t}(n):void 0;return function(n,a,...o){let s;if(null==n)s={type:"root",children:[]},o.unshift(a);else{let l=(s=function(e,t){let n=e||"",i={},a=0,o,s;for(;a<n.length;){a_.lastIndex=a;let e=a_.exec(n),t=n.slice(a,e?e.index:n.length);t&&(o?"#"===o?i.id=t:Array.isArray(i.className)?i.className.push(t):i.className=[t]:s=t,a+=t.length),e&&(o=e[0],a++)}return{type:"element",tagName:s||t||"div",properties:i,children:[]}}(n,t)).tagName.toLowerCase(),u=i?i.get(l):void 0;if(s.tagName=u||l,function(e){if(null===e||"object"!=typeof e||Array.isArray(e))return!0;
6if("string"!=typeof e.type)return!1;for(let t of Object.keys(e)){let n=e[t];if(n&&"object"==typeof n){if(!Array.isArray(n))return!0;for(let e of n)if("number"!=typeof e&&"string"!=typeof e)return!0}}return!!("children"in e&&Array.isArray(e.children))}(a))o.unshift(a);else for(let[t,n]of Object.entries(a))!function(e,t,n,i){let a;let o=ag(e,n);if(null!=i){if("number"==typeof i){if(Number.isNaN(i))return;a=i}else a="boolean"==typeof i?i:"string"==typeof i?o.spaceSeparated?aT(i):o.commaSeparated?aw(i):o.commaOrSpaceSeparated?aT(aw(i).join(" ")):aA(o,o.property,i):Array.isArray(i)?[...i]:"style"===o.property?function(e){let t=[];for(let[n,i]of Object.entries(e))t.push([n,i].join(": "));return t.join("; ")}(i):String(i);if(Array.isArray(a)){let e=[];for(let t of a)e.push(aA(o,o.property,t));a=e}"className"===o.property&&Array.isArray(t.className)&&(a=t.className.concat(a)),t[o.property]=a}}(e,s.properties,t,n)}for(let e of o)!function e(t,n){if(null!=n){if("number"==typeof n||"string"==typeof n)t.push({type:"text",value:String(n)});else if(Array.isArray(n))for(let i of n)e(t,i);else if("object"==typeof n&&"type"in n)"root"===n.type?e(t,n.children):t.push(n);else throw Error("Expected node, nodes, or string, got `"+n+"`")}}(s.children,e);return"element"===s.type&&"template"===s.tagName&&(s.content={type:"root",children:s.children},s.children=[]),s}}function aA(e,t,n){if("string"==typeof n){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(""===n||iJ(n)===iJ(t)))return!0}return n}let aC=aS(ay,"div"),aN=aS(ab,"g",["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"]),aI={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function aM(e,t){let n=function(e,t){switch(e.nodeType){case 1:return function(e,t){let n=e.namespaceURI,i=n===aI.svg?aN:aC,a=n===aI.html?e.tagName.toLowerCase():e.tagName,o=n===aI.html&&"template"===a?e.content:e,s=e.getAttributeNames(),l={},u=-1;for(;++u<s.length;)l[s[u]]=e.getAttribute(s[u])||"";return i(a,l,aP(o,t))}(e,t);case 3:return{type:"text",value:e.nodeValue||""};case 8:return{type:"comment",value:e.nodeValue||""};case 9:case 11:return{type:"root",children:aP(e,t)};case 10:return{type:"doctype"};default:return}}(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function aP(e,t){let n=e.childNodes,i=[],a=-1;for(;++a<n.length;){let e=aM(n[a],t);void 0!==e&&i.push(e)}return i}new DOMParser;let aR=function(e,t,n){let i=ij(n);if(!e||!e.type||!e.children)throw Error("Expected parent node");if("number"==typeof t){if(t<0||t===Number.POSITIVE_INFINITY)throw Error("Expected positive finite number as index")}else if((t=e.children.indexOf(t))<0)throw Error("Expected child node or index");for(;++t<e.children.length;)if(i(e.children[t],t,e))return e.children[t]},aD=function(e){if(null==e)return aO;if("string"==typeof e)return aL(function(t){return t.tagName===e});if("object"==typeof e)return function(e){let t=[],n=-1;for(;++n<e.length;)t[n]=aD(e[n]);return aL(function(...e){let n=-1;for(;++n<t.length;)if(t[n].apply(this,e))return!0;return!1})}(e);if("function"==typeof e)return aL(e);throw Error("Expected function, string, or array as `test`")};function aL(e){return function(t,n,i){return!!(null!==t&&"object"==typeof t&&"type"in t&&"tagName"in t&&e.call(this,t,"number"==typeof n?n:void 0,i||void 0))}}function aO(e){return!!(e&&"object"==typeof e&&"type"in e&&"element"===e.type&&"tagName"in e&&"string"==typeof e.tagName)}let aB=/\n/g,aj=/[\t ]+/g,az=aD("br"),aF=aD(function(e){return"td"===e.tagName||"th"===e.tagName}),aH=aD("p"),aU=aD("tr"),aG=aD(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",function(e){return!!(e.properties||{}).hidden},function(e){return"dialog"===e.tagName&&!(e.properties||{}).open}]),aq=aD(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function aV(e,t){let n=String(e.value),i=[],a=[],o=0;for(;o<=n.length;){aB.lastIndex=o;let e=aB.exec(n),a=e&&"index"in e?e.index:n.length;i.push(function(e,t,n){let i=[],a=0,o;for(;a<e.length;){aj.lastIndex=a;let n=aj.exec(e);o=n?n.index:e.length,a||o||!n||t||i.push(""),a!==o&&i.push(e.slice(a,o)),a=n?o+n[0].length:o}return a===o||n||i.push(""),i.join(" ")}(n.slice(o,a).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),0!==o||t.breakBefore,a!==n.length||t.breakAfter)),o=a+1}let s=-1,l;for(;++s<i.length;
6)8203===i[s].charCodeAt(i[s].length-1)||s<i.length-1&&8203===i[s+1].charCodeAt(0)?(a.push(i[s]),l=void 0):i[s]?("number"==typeof l&&a.push(l),a.push(i[s]),l=0):(0===s||s===i.length-1)&&a.push(0);return a}function aW(e,t){if("element"===e.type){let n=e.properties||{};switch(e.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return n.wrap?"pre-wrap":"pre";case"td":case"th":return n.noWrap?"nowrap":t.whitespace;case"textarea":return"pre-wrap"}}return t.whitespace}class aY{constructor(e,t,n){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=e,this.start=t,this.end=n}static range(e,t){return t?e&&e.loc&&t.loc&&e.loc.lexer===t.loc.lexer?new aY(e.loc.lexer,e.loc.start,t.loc.end):null:e&&e.loc}}class aK{constructor(e,t){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=e,this.loc=t}range(e,t){return new aK(t,aY.range(this,e))}}class aX{constructor(e,t){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var n,i,a="KaTeX parse error: "+e,o=t&&t.loc;if(o&&o.start<=o.end){var s=o.lexer.input;n=o.start,i=o.end,n===s.length?a+=" at end of input: ":a+=" at position "+(n+1)+": ";var l=s.slice(n,i).replace(/[^]/g,"$&̲");a+=(n>15?"…"+s.slice(n-15,n):s.slice(0,n))+l+(i+15<s.length?s.slice(i,i+15)+"…":s.slice(i))}var u=Error(a);return u.name="ParseError",u.__proto__=aX.prototype,u.position=n,null!=n&&null!=i&&(u.length=i-n),u.rawMessage=e,u}}aX.prototype.__proto__=Error.prototype;var aQ=/([A-Z])/g,aZ={"&":"&amp;",">":"&gt;","<":"&lt;",'"':"&quot;","'":"&#x27;"},a$=/[&><"']/g,aJ=function e(t){return"ordgroup"===t.type||"color"===t.type?1===t.body.length?e(t.body[0]):t:"font"===t.type?e(t.body):t},a0=function(e){if(!e)throw Error("Expected non-null, but got "+String(e));return e},a1={deflt:function(e,t){return void 0===e?t:e},escape:function(e){return String(e).replace(a$,e=>aZ[e])},hyphenate:function(e){return e.replace(aQ,"-$1").toLowerCase()},getBaseElem:aJ,isCharacterBox:function(e){var t=aJ(e);return"mathord"===t.type||"textord"===t.type||"atom"===t.type},protocolFromUrl:function(e){var t=/^[\x00-\x20]*([^\\/#?]*?)(:|&#0*58|&#x0*3a|&colon)/i.exec(e);return t?":"===t[2]&&/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(t[1])?t[1].toLowerCase():null:"_relative"}},a2={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand <n>",cliProcessor:e=>"Infinity"===e?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};class a4{constructor(e){for(var t in this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,e=e||{},a2)if(a2.hasOwnProperty(t)){var n=a2[t];this[t]=void 0!==e[t]?n.processor?n.processor(e[t]):e[t]:function(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if("string"!=typeof n)return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}(n)}}reportNonstrict(e,t,n){var i=this.strict;if("function"==typeof i&&(i=i(e,t,n)),!(!i||"ignore"===i)){if(!0===i||"error"===i)throw new aX("LaTeX-incompatible input and strict mode is set to 'error': "+t+" ["+e+"]",n);"warn"===i?"u">typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"u">typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t)+" ["+e+"]")}}useStrictBehavior(e,t,n){var i=this.strict;if("function"==typeof i)try{i=i(e,t,n)}catch{i="error"}return!!i&&"ignore"!==i&&(!0===i||"error"===i||("warn"===i?"u">typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+t+" ["+e+"]"):"u">typeof console&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+t)+" ["+e+"]"),!1))}isTrusted(e){if(e.url&&!e.protocol){var t=a1.protocolFromUrl(e.url);if(null==t)return!1;e.protocol=t}return!!("function"==typeof this.trust?this.trust(e):this.trust)}}let a5=class{constructor(e,t,n){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=e,this.size=t,this.cramped=n}sup(){return a3[a6[this.id]]}sub(){return a3[a7[this.id]]}fracNum(){return a3[a8[this.id]]}fracDen(){return a3[a9[this.id]]}cramp(){return a3[oe[this.id]]}text(){return a3[ot[this.id]]}isTight(){return this.size>=2}};var a3=[new a5(0,0,!1),new a5(1,0,!0),new a5(2,1,!1),new a5(3,1,!0),new a5(4,2,!1),new a5(5,2,!0),new a5(6,3,!1),new a5(7,3,!0)],a6=[4,5,4,5,6,7,
66,7],a7=[5,5,5,5,7,7,7,7],a8=[2,3,4,5,6,7,6,7],a9=[3,3,5,5,7,7,7,7],oe=[1,1,3,3,5,5,7,7],ot=[0,1,2,3,2,3,2,3],on={DISPLAY:a3[0],TEXT:a3[2],SCRIPT:a3[4],SCRIPTSCRIPT:a3[6]},or=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}],oi=[];function oa(e){for(var t=0;t<oi.length;t+=2)if(e>=oi[t]&&e<=oi[t+1])return!0;return!1}or.forEach(e=>e.blocks.forEach(e=>oi.push(...e)));var oo=function(e,t,n){t*=1e3;var i,a,o,s,l,u,c="";switch(e){case"sqrtMain":c="M95,"+(622+(i=t)+80)+`
7c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
8c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
9c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
10s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
11c69,-144,104.5,-217.7,106.5,-221
12l`+i/2.075+" -"+i+`
13c5.3,-9.3,12,-14,20,-14
14H400000v`+(40+i)+`H845.2724
15s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
16c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
17M`+(834+i)+" 80h400000v"+(40+i)+"h-400000z";break;case"sqrtSize1":c="M263,"+(601+(a=t)+80)+`c0.7,0,18,39.7,52,119
18c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
19c340,-704.7,510.7,-1060.3,512,-1067
20l`+a/2.084+" -"+a+`
21c4.7,-7.3,11,-11,19,-11
22H40000v`+(40+a)+`H1012.3
23s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
24c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
25s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
26c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
27M`+(1001+a)+" 80h400000v"+(40+a)+"h-400000z";break;case"sqrtSize2":c="M983 "+(10+(o=t)+80)+`
28l`+o/3.13+" -"+o+`
29c4,-6.7,10,-10,18,-10 H400000v`+(40+o)+`
30H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
31s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
32c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
33c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
34c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
35c53.7,-170.3,84.5,-266.8,92.5,-289.5z
36M`+(1001+o)+" 80h400000v"+(40+o)+"h-400000z";break;case"sqrtSize3":c="M424,"+(2398+(s=t)+80)+`
37c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
38c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
39s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
40s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
41l`+s/4.223+" -"+s+`c4,-6.7,10,-10,18,-10 H400000
42v`+(40+s)+`H1014.6
43s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
44c-2,6,-10,9,-24,9
45c-8,0,-12,-0.7,-12,-2z M`+(1001+s)+" 80"+`
46h400000v`+(40+s)+"h-400000z";break;case"sqrtSize4":c="M473,"+(2713+(l=t)+80)+`
47c339.3,-1799.3,509.3,-2700,510,-2702 l`+l/5.298+" -"+l+`
48c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+l)+`H1017.7
49s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
50c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
51c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
52s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
53606zM`+(1001+l)+" 80h400000v"+(40+l)+"H1017.7z";break;case"sqrtTall":c="M702 "+((u=t)+80)+"H400000"+(40+u)+`
54H742v`+(n-54-80-u)+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
55h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
56c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
57219 661 l218 661zM702 `+"80H400000v"+(40+u)+"H742z"}return c},os=function(e,t){switch(e){case"⎜":return"M291 0 H417 V"+t+" H291z M291 0 H417 V"+t+" H291z";case"∣":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z";case"∥":return"M145 0 H188 V"+t+" H145z M145 0 H188 V"+t+" H145z"+("M367 0 H410 V"+t)+" H367z M367 0 H410 V"+t+" H367z";case"⎟":return"M457 0 H583 V"+t+" H457z M457 0 H583 V"+t+" H457z";case"⎢":return"M319 0 H403 V"+t+" H319z M319 0 H403 V"+t+" H319z";case"⎥":return"M263 0 H347 V"+t+" H263z M263 0 H347 V"+t+" H263z";case"⎪":return"M384 0 H504 V"+t+" H384z M384 0 H504 V"+t+" H384z";case"⏐":return"M312 0 H355 V"+t+" H312z M312 0 H355 V"+t+" H312z";case"‖":return"M257 0 H300 V"+t+" H257z M257 0 H300 V"+t+" H257z"+("M478 0 H521 V"+t)+" H478z M478 0 H521 V"+t+" H478z";default:return""}},ol
vendor: 15,381 bytes, lines 57-232
57={doubleleftarrow:`M262 157
58l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
59 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
60 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
61c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
62 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
63-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
64-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
65m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
66-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
67 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
68-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
69-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
70-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
71c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
72-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
73 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
74-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
75c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
76 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
77 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
78 l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
79-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
80 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
81 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
82 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
83-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
84H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
85 435 0h399565z`,leftgroupunder:`M400000 262
86H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
87 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
88-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
89-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
90-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
91 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
92-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
93-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
94m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
95 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
96 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
97-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
98 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
99-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
100v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
101-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
102-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
103 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
104M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
105M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
106-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
107c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
108 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
109M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
110c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
111-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
112 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
113 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
114c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
115 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
116 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
117-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
118-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
119m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
12060.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
121-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
122m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
123c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
124-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
125m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
12685.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
127-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
128m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
129c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
130-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
131 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
132 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
133-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
134-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
135 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
136-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
137s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
138c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
139 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
140-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
141 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
142 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
143-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
144-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
145 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
146-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
147 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
148m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
149 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
150-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
151-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
152 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
153 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
154-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
155m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
156 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
157-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
158 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
159M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
160 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
161-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
162-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
163 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
164-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
165-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
166-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
167 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
168c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
169 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
170 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
171-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
172 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
173-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
174 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
175 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
176-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
177-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
178 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
179c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
180 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
181-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
182 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
183 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
184 -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
185-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
186 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
187 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
188 -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
1893.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
19010.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
191-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
192-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
193H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
194c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
195c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
196-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
197-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
198-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
199-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
200-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
201-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
202-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
203c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
204c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
205s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
206121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
207s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
208c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
209M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
210-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
21113.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
212-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
213-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
214-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
215151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
216c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
217c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
218c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
219c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
220M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
221c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
222-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
223c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
224M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
225c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
2261c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
227-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
228M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
229c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
230-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
231c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
232M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},
232ou=function(e,t){switch(e){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v1759 h347 v-84
233H403z M403 1759 V0 H319 V1759 v`+t+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v1759 H0 v84 H347z
234M347 1759 V0 H263 V1759 v`+t+" v1759 h84z";case"vert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
235c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
236c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+" v585 h43z";case"doublevert":return"M145 15 v585 v"+t+` v585 c2.667,10,9.667,15,21,15
237c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
238c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+t+` v585 h43z
239M367 15 v585 v`+t+` v585 c2.667,10,9.667,15,21,15
240c10,0,16.667,-5,20,-15 v-585 v`+-t+` v-585 c-2.667,-10,-9.667,-15,-21,-15
241c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+t+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+t+` v1715 h263 v84 H319z
242MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+t+` v1799 H0 v-84 H319z
243MM319 602 V0 H403 V602 v`+t+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+t+` v602 h84z
244M403 1759 V0 H319 V1759 v`+t+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+t+` v602 h84z
245M347 1759 V0 h-84 V1759 v`+t+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
246c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
247-36,557 l0,`+(t+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
248949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
249c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
250-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
251l0,-`+(t+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
252-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
25363,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
254c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(t+9)+`
255c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
256c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
257c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
258c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
259l0,-`+(t+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
260-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw Error("Unknown stretchy delimiter.")}};let oc=class{constructor(e){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=e,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(e){return this.classes.includes(e)}toNode(){for(var e=document.createDocumentFragment(),t=0;t<this.children.length;t++)e.appendChild(this.children[t].toNode());return e}toMarkup(){for(var e="",t=0;t<this.children.length;t++)e+=this.children[t].toMarkup();return e}toText(){return this.children.map(e=>e.toText()).join("")}};var od
vendor: 50,671 bytes, line 260
260={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-
260.00099,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-.00099,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-.00099,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-.00099,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[
2600,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,
2600,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},op={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},oh={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function om(e,t){od[e]=t}function of(e,t,n){if(!od[t])throw Error("Font metrics not found for font: "+t+".");var i=e.charCodeAt(0),a=od[t][i];if(!a&&e[0]in oh&&(i=oh[e[0]].charCodeAt(0),a=od[t][i]),!a&&"text"===n&&oa(i)&&(a=od[t][77]),a)return{depth:a[0],height:a[1],italic:a[2],skew:a[3],width:a[4]}}var og={},ox=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],ov=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],oy=function(e,t){return t.size<2?e:ox[e-1][t.size-1]};class ob{constructor(e){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=e.style,this.color=e.color,this.size=e.size||ob.BASESIZE,this.textSize=e.textSize||this.size,this.phantom=!!e.phantom,this.font=e.font||"",this.fontFamily=e.fontFamily||"",this.fontWeight=e.fontWeight||"",this.fontShape=e.fontShape||"",this.sizeMultiplier=ov[this.size-1],this.maxSize=e.maxSize,this.minRuleThickness=e.minRuleThickness,this._fontMetrics=void 0}extend(e){var t={style:this.style,size:this.size,textSize:this.textSize,color:this.color,ph
260antom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return new ob(t)}havingStyle(e){return this.style===e?this:this.extend({style:e,size:oy(this.textSize,e)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(e){return this.size===e&&this.textSize===e?this:this.extend({style:this.style.text(),size:e,textSize:e,sizeMultiplier:ov[e-1]})}havingBaseStyle(e){e=e||this.style.text();var t=oy(ob.BASESIZE,e);return this.size===t&&this.textSize===ob.BASESIZE&&this.style===e?this:this.extend({style:e,size:t})}havingBaseSizing(){var e;switch(this.style.id){case 4:case 5:e=3;break;case 6:case 7:e=1;break;default:e=6}return this.extend({style:this.style.text(),size:e})}withColor(e){return this.extend({color:e})}withPhantom(){return this.extend({phantom:!0})}withFont(e){return this.extend({font:e})}withTextFontFamily(e){return this.extend({fontFamily:e,font:""})}withTextFontWeight(e){return this.extend({fontWeight:e,font:""})}withTextFontShape(e){return this.extend({fontShape:e,font:""})}sizingClasses(e){return e.size!==this.size?["sizing","reset-size"+e.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==ob.BASESIZE?["sizing","reset-size"+this.size,"size"+ob.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=function(e){var t;if(!og[t=e>=5?0:e>=3?1:2]){var n=og[t]={cssEmPerMu:op.quad[t]/18};for(var i in op)op.hasOwnProperty(i)&&(n[i]=op[i][t])}return og[t]}(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}ob.BASESIZE=6;var ow={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:1.00375,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:1.00375},ok={ex:!0,em:!0,mu:!0},o_=function(e){return"string"!=typeof e&&(e=e.unit),e in ow||e in ok||"ex"===e},oT=function(e,t){var n,i;if(e.unit in ow)n=ow[e.unit]/t.fontMetrics().ptPerEm/t.sizeMultiplier;else if("mu"===e.unit)n=t.fontMetrics().cssEmPerMu;else{if(i=t.style.isTight()?t.havingStyle(t.style.text()):t,"ex"===e.unit)n=i.fontMetrics().xHeight;else if("em"===e.unit)n=i.fontMetrics().quad;else throw new aX("Invalid unit: '"+e.unit+"'");i!==t&&(n*=i.sizeMultiplier/t.sizeMultiplier)}return Math.min(e.number*n,t.maxSize)},oE=function(e){return+e.toFixed(4)+"em"},oS=function(e){return e.filter(e=>e).join(" ")},oA=function(e,t,n){if(this.classes=e||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=n||{},t){t.style.isTight()&&this.classes.push("mtight");var i=t.getColor();i&&(this.style.color=i)}},oC=function(e){var t=document.createElement(e);for(var n in t.className=oS(this.classes),this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&t.setAttribute(i,this.attributes[i]);for(var a=0;a<this.children.length;a++)t.appendChild(this.children[a].toNode());return t},oN=/[\s"'>/=\x00-\x1f]/,oI=function(e){var t="<"+e;this.classes.length&&(t+=' class="'+a1.escape(oS(this.classes))+'"');var n="";for(var i in this.style)this.style.hasOwnProperty(i)&&(n+=a1.hyphenate(i)+":"+this.style[i]+";");for(var a in n&&(t+=' style="'+a1.escape(n)+'"'),this.attributes)if(this.attributes.hasOwnProperty(a)){if(oN.test(a))throw new aX("Invalid attribute name '"+a+"'");t+=" "+a+'="'+a1.escape(this.attributes[a])+'"'}t+=">";for(var o=0;o<this.children.length;o++)t+=this.children[o].toMarkup();return t+"</"+e+">"};class oM{constructor(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,oA.call(this,e,n,i),this.children=t||[]}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return oC.call(this,"span")}toMarkup(){return oI.call(this,"span")}}class oP{constructor(e,t,n,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,oA.call(this,t,i),this.children=n||[],this.setAttribute("href",e)}setAttribute(e,t){this.attributes[e]=t}hasClass(e){return this.classes.includes(e)}toNode(){return oC.call(this,"a")}toMarkup(){return oI.call(this,"a")}}class oR{constructor(e,t,n){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=t,this.src=e,this.classes=["mord"],this.style=n}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createElement("img");for(var t in e.src=this.src,e.alt=this.alt,e.className="mord",this.style)this.style.hasOwnProperty(t)&&(e.style[t]=this.style[t]);return e}toMarkup(){var e='<img src="'+a1.escape(this.src)+'" alt="'+a1.escape(this.alt)+'"',t="";for(var n in this.style)this.style.hasOwnProperty(n)&&(t+=a1.hyphenate(n)+":"+this.style[n]+";");return t&&(e+=' style="'+a1.escape(t)+'"'),e+="'/>"}}var oD={î:"ı̂",ï:"ı̈",í:"ı́",ì:"ı̀"};class oL{constructor(e,t,n,i,a,o,s,l){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=e,this.height=t||0,this.depth=n||0,this.italic=i||0,this.skew=a||0,this.width=o||0,this.classes=s||[],this.style=l||{},this.maxFontSize=0;var u=function(e){for(var t=0;t<or.length;t++)for(var n=or[t],i=0;i<n.blocks.length;i++){var a=n.blocks[i];if(e>=a[0]&&e<=a[1])return n.name}return null}(this.text.charCodeAt(0));u&&this.classes.push(u+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=oD[this.text])}hasClass(e){return this.classes.includes(e)}toNode(){var e=document.createTextNode(this.text),t=null;for(var n in this.italic>0&&((t=document.createElement("span")).style.marginRight=oE(this.italic)),this.classes.length>0&&((t=t||document.createElement("span")).className=oS(this.classes)),this.style)this.style.hasOwnProperty(n)&&((t=t||document.createElement("span")).style[n]=this.style[n]);return t?(t.appendChild(e),t):e}toMarkup(){var e=!1,t="<span";this.classes.length&&(e=!0,t+=' class="'+a1.escape(oS(this.classes))+'"');var n="";for(var i in this.italic>0&&(n+="margin-right:"+this.italic+"em;"),this.style)this.style.hasOwnProperty(i)&&(n+=a1.hyphenate(i)+":"+this.style[i]+";");n&&(e=!0,t+=' style="'+a1.escape(n)+'"');var a=a1.escape(this.text);return e?t+=">"+a+"</span>":a}}class oO{constructor(e,t){this.children=void 0,this.attributes=void 0,this.children=e||[],this.attributes=t||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","svg");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);for(var n=0;n<this.children.length;n++)e.appendChild(this.children[n].toNode());return e}toMarkup(){var e='<svg xmlns="http://www.w3.org/2000/svg"';for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+a1.escape(this.attributes[t])+'"');e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</svg>"}}class oB{constructor(e,t){this.pathName=void 0,this.alternate=void 0,this.pathName=e,this.alternate=t}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","path");return this.alternate?e.setAttribute("d",this.alternate):e.setAttribute("d",ol[this.pathName]),e}toMarkup(){return this.alternate?'<path d="'+a1.escape(this.alternate)+'"/>':'<path d="'+a1.escape(ol[this.pathName])+'"/>'}}class oj{constructor(e){this.attributes=void 0,this.attributes=e||{}}toNode(){var e=document.createElementNS("http://www.w3.org/2000/svg","line");for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);return e}toMarkup(){var e="<line";for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+a1.escape(this.attributes[t])+'"');return e+"/>"}}function oz(e){if(e instanceof oL)return e;throw Error("Expected symbolNode but got "+String(e)+".")}var oF={bin:1,close:1,inner:1,open:1,punct:1,rel:1},oH={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},oU={math:{},text:{}};function oG(e,t,n,i,a,o){oU[e][a]={font:t,group:n,replace:i},o&&i&&(oU[e][i]=oU[e][a])}var oq="math",oV="text",oW="main",oY="accent-token",oK="close",oX="inner",oQ="mathord",oZ="op-token",o$="open",oJ="punct",o0="spacing",o1="textord";oG(oq,oW,"rel","≡","\\equiv",!0),oG(oq,oW,"rel","≺","\\prec",!0),oG(oq,oW,"rel","≻","\\succ",!0),oG(oq,oW,"rel","∼","\\sim",!0),oG(oq,oW,"rel","⊥","\\perp"),oG(oq,oW,"rel","⪯","\\preceq",!0),oG(oq,oW,"rel","⪰","\\succeq",!0),oG(oq,oW,"rel","≃","\\simeq",!0),oG(oq,oW,"rel","∣","\\mid",!0),oG(oq,oW,"rel","≪","\\ll",!0),oG(oq,oW,"rel","≫","\\gg",!0),oG(oq,oW,"rel","≍","\\asymp",!0),oG(oq,oW,"rel","∥","\\parallel"),oG(oq,oW,"rel","⋈","\\bowtie",!0),oG(oq,oW,"rel","⌣","\\smile",!0),oG(oq,oW,"rel","⊑","\\sqsubseteq",!0),oG(oq,oW,"rel","⊒","\\sqsupseteq",!0),oG(oq,oW,"rel","≐","\\doteq",!0),oG(oq,oW,"rel","⌢","\\frown",!0),oG(oq,oW,"rel","∋","\\ni",!0),oG(oq,oW,"rel","∝","\\propto",!0),oG(oq,oW,"rel","⊢","\\vdash",!0),oG(oq,oW,"rel","⊣","\\dashv",!0),oG(oq,oW,"rel","∋","\\owns"),oG(oq,oW,oJ,".","\\ldotp"),oG(oq,oW,oJ,"⋅","\\cdotp"),oG(oq,oW,o1,"#","\\#"),oG(oV,oW,o1,"#","\\#"),oG(oq,oW,o1,"&","\\&"),oG(oV,oW,o1,"&","\\&"),oG(oq,oW,o1,"ℵ","\\aleph",!0),oG(oq,oW,o1,"∀","\\forall",!0),oG(oq,oW,o1,"ℏ","\\hbar",!0),oG(oq,oW,o1,"∃","\\exists",!0),oG(oq,oW,o1,"∇","\\nabla",!0),oG(oq,oW,o1,"♭","\\flat",!0),oG(oq,oW,o1,"ℓ","\\ell",!0),oG(oq,oW,o1,"♮","\\natural",!0),oG(oq,oW,o1,"♣","\\clubsuit",!0),oG(oq,oW,o1,"℘","\\wp",!0),oG(oq,oW,o1,"♯","\\sharp",!0),oG(oq,oW,o1,"♢","\\diamondsuit",!0),oG(oq,oW,o1,"ℜ","\\Re",!0),oG(oq,oW,o1,"♡","\\heartsuit",!0),oG(oq,oW,o1,"ℑ","\\Im",!0),oG(oq,oW,o1,"♠","\\spadesuit",!0),oG(oq,oW,o1,"\xa7","\\S",!0),oG(oV,oW,o1,"\xa7","\\S"),oG(oq,oW,o1,"\xb6","\\P",!0),oG(oV,oW,o1,"\xb6","\\P"),oG(oq,oW,o1,"†","\\dag"),oG(oV,oW,o1,"†","\\dag"),oG(oV,oW,o1,"†","\\textdagger"),oG(oq,oW,o1,"‡","\\ddag"),oG(oV,oW,o1,"‡","\\ddag"),oG(oV,oW,o1,"‡","\\textdaggerdbl"),oG(oq,oW,oK,"⎱","\\rmoustache",!0),oG(oq,oW,o$,"⎰","\\lmoustache",!0),oG(oq,oW,oK,"⟯","\\rgroup",!0),oG(oq,oW,o$,"⟮","\\lgroup",!0),oG(oq,oW,"bin","∓","\\mp",!0),oG(oq,oW,"bin","⊖","\\ominus",!0),oG(oq,oW,"bin","⊎","\\uplus",!0),oG(oq,oW,"bin","⊓","\\sqcap",!0),oG(oq,oW,"bin","∗","\\ast"),oG(oq,oW,"bin","⊔","\\sqcup",!0),oG(oq,oW,"bin","◯","\\bigcirc",!0),oG(oq,oW,"bin","∙","\\bullet",!0),oG(oq,oW,"bin","‡","\\ddagger"),oG(oq,oW,"bin","≀","\\wr",!0),oG(oq,oW,"bin","⨿","\\amalg"),oG(oq,oW,"bin","&","\\And"),oG(oq,oW,"rel","⟵","\\longleftarrow",!0),oG(oq,oW,"rel","⇐","\\Leftarrow",!0),oG(oq,oW,"rel","⟸","\\Longleftarrow",!0),oG(oq,oW,"rel","⟶","\\longrightarrow",!0),oG(oq,oW,"rel","⇒","\\Rightarrow",!0),oG(oq,oW,"rel","⟹","\\Longrightarrow",!0),oG(oq,oW,"rel","↔","\\leftrightarrow",!0),oG(oq,oW,"rel","⟷","\\longleftrightarrow",!0),oG(oq,oW,"rel","⇔","\\Leftrightarrow",!0),oG(oq,oW,"rel","⟺","\\Longleftrightarrow",!0),oG(oq,oW,"rel","↦","\\mapsto",!0),oG(oq,oW,"rel","⟼","\\longmapsto",!0),oG(oq,oW,"rel","↗","\\nearrow",!0),oG(oq,oW,"rel","↩","\\hookleftarrow",!0),oG(oq,oW,"rel","↪","\\hookrightarrow",!0),oG(oq,oW,"rel","↘","\\searrow",!0),oG(oq,oW,"rel","↼","\\leftharpoonup",!0),oG(oq,oW,"rel","⇀","\\rightharpoonup",!0),oG(oq,oW,"rel","↙","\\swarrow",!0),oG(oq,oW,"rel","↽","\\leftharpoondown",!0),oG(oq,oW,"rel","⇁","\\rightharpoondown",!0),oG(oq,oW,"rel","↖","\\nwarrow",!0),oG(oq,oW,"rel","⇌","\\rightleftharpoons",!0),oG(oq,"ams","rel","≮","\\nless",!0),oG(oq,"ams","rel","","\\@nleqslant"),oG(oq,"ams","rel","","\\@nleqq"),oG(oq,"ams","rel","⪇","\\lneq",!0),oG(oq,"ams","rel","≨","\\lneqq",!0),oG(oq,"ams","rel","î€
260Œ","\\@lvertneqq"),oG(oq,"ams","rel","⋦","\\lnsim",!0),oG(oq,"ams","rel","⪉","\\lnapprox",!0),oG(oq,"ams","rel","⊀","\\nprec",!0),oG(oq,"ams","rel","⋠","\\npreceq",!0),oG(oq,"ams","rel","⋨","\\precnsim",!0),oG(oq,"ams","rel","⪹","\\precnapprox",!0),oG(oq,"ams","rel","≁","\\nsim",!0),oG(oq,"ams","rel","","\\@nshortmid"),oG(oq,"ams","rel","∤","\\nmid",!0),oG(oq,"ams","rel","⊬","\\nvdash",!0),oG(oq,"ams","rel","⊭","\\nvDash",!0),oG(oq,"ams","rel","⋪","\\ntriangleleft"),oG(oq,"ams","rel","⋬","\\ntrianglelefteq",!0),oG(oq,"ams","rel","⊊","\\subsetneq",!0),oG(oq,"ams","rel","","\\@varsubsetneq"),oG(oq,"ams","rel","⫋","\\subsetneqq",!0),oG(oq,"ams","rel","","\\@varsubsetneqq"),oG(oq,"ams","rel","≯","\\ngtr",!0),oG(oq,"ams","rel","","\\@ngeqslant"),oG(oq,"ams","rel","","\\@ngeqq"),oG(oq,"ams","rel","⪈","\\gneq",!0),oG(oq,"ams","rel","≩","\\gneqq",!0),oG(oq,"ams","rel","","\\@gvertneqq"),oG(oq,"ams","rel","⋧","\\gnsim",!0),oG(oq,"ams","rel","⪊","\\gnapprox",!0),oG(oq,"ams","rel","⊁","\\nsucc",!0),oG(oq,"ams","rel","⋡","\\nsucceq",!0),oG(oq,"ams","rel","⋩","\\succnsim",!0),oG(oq,"ams","rel","⪺","\\succnapprox",!0),oG(oq,"ams","rel","≆","\\ncong",!0),oG(oq,"ams","rel","","\\@nshortparallel"),oG(oq,"ams","rel","∦","\\nparallel",!0),oG(oq,"ams","rel","⊯","\\nVDash",!0),oG(oq,"ams","rel","⋫","\\ntriangleright"),oG(oq,"ams","rel","⋭","\\ntrianglerighteq",!0),oG(oq,"ams","rel","","\\@nsupseteqq"),oG(oq,"ams","rel","⊋","\\supsetneq",!0),oG(oq,"ams","rel","","\\@varsupsetneq"),oG(oq,"ams","rel","⫌","\\supsetneqq",!0),oG(oq,"ams","rel","","\\@varsupsetneqq"),oG(oq,"ams","rel","⊮","\\nVdash",!0),oG(oq,"ams","rel","⪵","\\precneqq",!0),oG(oq,"ams","rel","⪶","\\succneqq",!0),oG(oq,"ams","rel","","\\@nsubseteqq"),oG(oq,"ams","bin","⊴","\\unlhd"),oG(oq,"ams","bin","⊵","\\unrhd"),oG(oq,"ams","rel","↚","\\nleftarrow",!0),oG(oq,"ams","rel","↛","\\nrightarrow",!0),oG(oq,"ams","rel","⇍","\\nLeftarrow",!0),oG(oq,"ams","rel","⇏","\\nRightarrow",!0),oG(oq,"ams","rel","↮","\\nleftrightarrow",!0),oG(oq,"ams","rel","⇎","\\nLeftrightarrow",!0),oG(oq,"ams","rel","△","\\vartriangle"),oG(oq,"ams",o1,"ℏ","\\hslash"),oG(oq,"ams",o1,"▽","\\triangledown"),oG(oq,"ams",o1,"◊","\\lozenge"),oG(oq,"ams",o1,"Ⓢ","\\circledS"),oG(oq,"ams",o1,"\xae","\\circledR"),oG(oV,"ams",o1,"\xae","\\circledR"),oG(oq,"ams",o1,"∡","\\measuredangle",!0),oG(oq,"ams",o1,"∄","\\nexists"),oG(oq,"ams",o1,"℧","\\mho"),oG(oq,"ams",o1,"Ⅎ","\\Finv",!0),oG(oq,"ams",o1,"⅁","\\Game",!0),oG(oq,"ams",o1,"‵","\\backprime"),oG(oq,"ams",o1,"▲","\\blacktriangle"),oG(oq,"ams",o1,"▼","\\blacktriangledown"),oG(oq,"ams",o1,"■","\\blacksquare"),oG(oq,"ams",o1,"â§«","\\blacklozenge"),oG(oq,"ams",o1,"★","\\bigstar"),oG(oq,"ams",o1,"∢","\\sphericalangle",!0),oG(oq,"ams",o1,"∁","\\complement",!0),oG(oq,"ams",o1,"\xf0","\\eth",!0),oG(oV,oW,o1,"\xf0","\xf0"),oG(oq,"ams",o1,"╱","\\diagup"),oG(oq,"ams",o1,"╲","\\diagdown"),oG(oq,"ams",o1,"□","\\square"),oG(oq,"ams",o1,"□","\\Box"),oG(oq,"ams",o1,"◊","\\Diamond"),oG(oq,"ams",o1,"\xa5","\\yen",!0),oG(oV,"ams",o1,"\xa5","\\yen",!0),oG(oq,"ams",o1,"✓","\\checkmark",!0),oG(oV,"ams",o1,"✓","\\checkmark"),oG(oq,"ams",o1,"ℶ","\\beth",!0),oG(oq,"ams",o1,"ℸ","\\daleth",!0),oG(oq,"ams",o1,"ℷ","\\gimel",!0),oG(oq,"ams",o1,"ϝ","\\digamma",!0),oG(oq,"ams",o1,"ϰ","\\varkappa"),oG(oq,"ams",o$,"┌","\\@ulcorner",!0),oG(oq,"ams",oK,"┐","\\@urcorner",!0),oG(oq,"ams",o$,"└","\\@llcorner",!0),oG(oq,"ams",oK,"┘","\\@lrcorner",!0),oG(oq,"ams","rel","≦","\\leqq",!0),oG(oq,"ams","rel","⩽","\\leqslant",!0),oG(oq,"ams","rel","⪕","\\eqslantless",!0),oG(oq,"ams","rel","≲","\\lesssim",!0),oG(oq,"ams","rel","⪅","\\lessapprox",!0),oG(oq,"ams","rel","≊","\\approxeq",!0),oG(oq,"ams","bin","⋖","\\lessdot"),oG(oq,"ams","rel","⋘","\\lll",!0),oG(oq,"ams","rel","≶","\\lessgtr",!0),oG(oq,"ams","rel","⋚","\\lesseqgtr",!0),oG(oq,"ams","rel","⪋","\\lesseqqgtr",!0),oG(oq,"ams","rel","≑","\\doteqdot"),oG(oq,"ams","rel","≓","\\risingdotseq",!0),oG(oq,"ams","rel","≒","\\fallingdotseq",!0),oG(oq,"ams","rel","∽","\\backsim",!0),oG(oq,"ams","rel","⋍","\\backsimeq",!0),oG(oq,"ams","rel","⫅","\\subseteqq",!0),oG(oq,"ams","rel","⋐","\\Subset",!0),oG(oq,"ams","rel","⊏","\\sqsubset",!0),oG(oq,"ams","rel","≼","\\preccurlyeq",!0),oG(oq,"ams","rel","⋞","\\curlyeqprec",!0),oG(oq,"ams","rel","≾","\\precsim",!0),oG(oq,"ams","rel","⪷","\\precapprox",!0),oG(oq,"ams","rel","⊲","\\vartriangleleft"),oG(oq,"ams","rel","⊴","\\trianglelefteq"),oG(oq,"ams","rel","⊨","\\vDash",!0),oG(oq,"ams","rel","⊪","\\Vvdash",!0),oG(oq,"ams","rel","⌣","\\smallsmile"),oG(oq,"ams","rel","⌢","\\smallfrown"),oG(oq,"ams","rel","≏","\\bumpeq",!0),oG(oq,"ams","rel","≎","\\Bumpeq",!0),oG(oq,"ams","rel","≧","\\geqq",!0),oG(oq,"ams","rel","⩾","\\geqslant",!0),oG(oq,"ams","rel","⪖","\\eqslantgtr",!0),oG(oq,"ams","rel","≳","\\gtrsim",!0),oG(oq,"ams","rel","⪆","\\gtrapprox",!0),oG(oq,"ams","bin","⋗","\\gtrdot"),oG(oq,"ams","rel","⋙","\\ggg",!0),oG(oq,"ams","rel","≷","\\gtrless",!0),oG(oq,"ams","rel","⋛","\\gtreqless",!0),oG(oq,"ams","rel","⪌","\\gtreqqless",!0),oG(oq,"ams","rel","≖","\\eqcirc",!0),oG(oq,"ams","rel","≗","\\circeq",!0),oG(oq,"ams","rel","≜","\\triangleq",!0),oG(oq,"ams","rel","∼","\\thicksim"),oG(oq,"ams","rel","≈","\\thickapprox"),oG(oq,"ams","rel","⫆","\\supseteqq",!0),oG(oq,"ams","rel","⋑","\\Supset",!0),oG(oq,"ams","rel","⊐","\\sqsupset",!0),oG(oq,"ams","rel","≽","\\succcurlyeq",!0),oG(oq,"ams","rel","⋟","\\curlyeqsucc",!0),oG(oq,"ams","rel","≿","\\succsim",!0),oG(oq,"ams","rel","⪸","\\succapprox",!0),oG(oq,"ams","rel","⊳","\\vartriangleright"),oG(oq,"ams","rel","⊵","\\trianglerighteq"),oG(oq,"ams","rel","⊩","\\Vdash",!0),oG(oq,"ams","rel","∣","\\shortmid"),oG(oq,"ams","rel","∥","\\shortparallel"),oG(oq,"ams","rel","≬","\\between",!0),oG(oq,"ams","rel","⋔","\\pitchfork",!0),oG(oq,"ams","rel","∝","\\varpropto"),oG(oq,"ams","rel","◀","\\blacktriangleleft"),oG(oq,"ams","rel","∴","\\therefore",!0),oG(oq,"ams","rel","∍","\\backepsilon"),oG(oq,"ams","rel","▶","\\blacktriangleright"),oG(oq,"ams","rel","∵","\\because",!0),oG(oq,"ams","rel","⋘","\\llless"),oG(oq,"ams","rel","⋙","\\gggtr"),oG(oq,"ams","bin","⊲","\\lhd"),oG(oq,"ams","bin","⊳","\\rhd"),oG(oq,"ams","rel","≂","\\eqsim",!0),oG(oq,oW,"rel","⋈","\\Join"),oG(oq,"ams","rel","≑","\\Doteq",!0),oG(oq,"ams","bin","∔","\\dotplus",!0),oG(oq,"ams","bin","∖","\\smallsetminus"),oG(oq,"ams","bin","⋒","\\Cap",!0),oG(oq,"ams","bin","⋓","\\Cup",!0),oG(oq,"ams","bin","⩞","\\doublebarwedge",!0),oG(oq,"ams","bin","⊟","\\boxminus",!0),oG(oq,"ams","bin","⊞","\\boxplus",!0),oG(oq,"ams","bin","⋇","\\divi
260deontimes",!0),oG(oq,"ams","bin","⋉","\\ltimes",!0),oG(oq,"ams","bin","⋊","\\rtimes",!0),oG(oq,"ams","bin","⋋","\\leftthreetimes",!0),oG(oq,"ams","bin","⋌","\\rightthreetimes",!0),oG(oq,"ams","bin","⋏","\\curlywedge",!0),oG(oq,"ams","bin","⋎","\\curlyvee",!0),oG(oq,"ams","bin","⊝","\\circleddash",!0),oG(oq,"ams","bin","⊛","\\circledast",!0),oG(oq,"ams","bin","⋅","\\centerdot"),oG(oq,"ams","bin","⊺","\\intercal",!0),oG(oq,"ams","bin","⋒","\\doublecap"),oG(oq,"ams","bin","⋓","\\doublecup"),oG(oq,"ams","bin","⊠","\\boxtimes",!0),oG(oq,"ams","rel","⇢","\\dashrightarrow",!0),oG(oq,"ams","rel","⇠","\\dashleftarrow",!0),oG(oq,"ams","rel","⇇","\\leftleftarrows",!0),oG(oq,"ams","rel","⇆","\\leftrightarrows",!0),oG(oq,"ams","rel","⇚","\\Lleftarrow",!0),oG(oq,"ams","rel","↞","\\twoheadleftarrow",!0),oG(oq,"ams","rel","↢","\\leftarrowtail",!0),oG(oq,"ams","rel","↫","\\looparrowleft",!0),oG(oq,"ams","rel","⇋","\\leftrightharpoons",!0),oG(oq,"ams","rel","↶","\\curvearrowleft",!0),oG(oq,"ams","rel","↺","\\circlearrowleft",!0),oG(oq,"ams","rel","↰","\\Lsh",!0),oG(oq,"ams","rel","⇈","\\upuparrows",!0),oG(oq,"ams","rel","↿","\\upharpoonleft",!0),oG(oq,"ams","rel","⇃","\\downharpoonleft",!0),oG(oq,oW,"rel","⊶","\\origof",!0),oG(oq,oW,"rel","⊷","\\imageof",!0),oG(oq,"ams","rel","⊸","\\multimap",!0),oG(oq,"ams","rel","↭","\\leftrightsquigarrow",!0),oG(oq,"ams","rel","⇉","\\rightrightarrows",!0),oG(oq,"ams","rel","⇄","\\rightleftarrows",!0),oG(oq,"ams","rel","↠","\\twoheadrightarrow",!0),oG(oq,"ams","rel","↣","\\rightarrowtail",!0),oG(oq,"ams","rel","↬","\\looparrowright",!0),oG(oq,"ams","rel","↷","\\curvearrowright",!0),oG(oq,"ams","rel","↻","\\circlearrowright",!0),oG(oq,"ams","rel","↱","\\Rsh",!0),oG(oq,"ams","rel","⇊","\\downdownarrows",!0),oG(oq,"ams","rel","↾","\\upharpoonright",!0),oG(oq,"ams","rel","⇂","\\downharpoonright",!0),oG(oq,"ams","rel","⇝","\\rightsquigarrow",!0),oG(oq,"ams","rel","⇝","\\leadsto"),oG(oq,"ams","rel","⇛","\\Rrightarrow",!0),oG(oq,"ams","rel","↾","\\restriction"),oG(oq,oW,o1,"‘","`"),oG(oq,oW,o1,"$","\\$"),oG(oV,oW,o1,"$","\\$"),oG(oV,oW,o1,"$","\\textdollar"),oG(oq,oW,o1,"%","\\%"),oG(oV,oW,o1,"%","\\%"),oG(oq,oW,o1,"_","\\_"),oG(oV,oW,o1,"_","\\_"),oG(oV,oW,o1,"_","\\textunderscore"),oG(oq,oW,o1,"∠","\\angle",!0),oG(oq,oW,o1,"∞","\\infty",!0),oG(oq,oW,o1,"′","\\prime"),oG(oq,oW,o1,"△","\\triangle"),oG(oq,oW,o1,"Γ","\\Gamma",!0),oG(oq,oW,o1,"Δ","\\Delta",!0),oG(oq,oW,o1,"Θ","\\Theta",!0),oG(oq,oW,o1,"Λ","\\Lambda",!0),oG(oq,oW,o1,"Ξ","\\Xi",!0),oG(oq,oW,o1,"Π","\\Pi",!0),oG(oq,oW,o1,"Σ","\\Sigma",!0),oG(oq,oW,o1,"Υ","\\Upsilon",!0),oG(oq,oW,o1,"Φ","\\Phi",!0),oG(oq,oW,o1,"Ψ","\\Psi",!0),oG(oq,oW,o1,"Ω","\\Omega",!0),oG(oq,oW,o1,"A","Α"),oG(oq,oW,o1,"B","Β"),oG(oq,oW,o1,"E","Ε"),oG(oq,oW,o1,"Z","Ζ"),oG(oq,oW,o1,"H","Η"),oG(oq,oW,o1,"I","Ι"),oG(oq,oW,o1,"K","Κ"),oG(oq,oW,o1,"M","Μ"),oG(oq,oW,o1,"N","Ν"),oG(oq,oW,o1,"O","Ο"),oG(oq,oW,o1,"P","Ρ"),oG(oq,oW,o1,"T","Τ"),oG(oq,oW,o1,"X","Χ"),oG(oq,oW,o1,"\xac","\\neg",!0),oG(oq,oW,o1,"\xac","\\lnot"),oG(oq,oW,o1,"⊤","\\top"),oG(oq,oW,o1,"⊥","\\bot"),oG(oq,oW,o1,"∅","\\emptyset"),oG(oq,"ams",o1,"∅","\\varnothing"),oG(oq,oW,oQ,"α","\\alpha",!0),oG(oq,oW,oQ,"β","\\beta",!0),oG(oq,oW,oQ,"γ","\\gamma",!0),oG(oq,oW,oQ,"δ","\\delta",!0),oG(oq,oW,oQ,"ϵ","\\epsilon",!0),oG(oq,oW,oQ,"ζ","\\zeta",!0),oG(oq,oW,oQ,"η","\\eta",!0),oG(oq,oW,oQ,"θ","\\theta",!0),oG(oq,oW,oQ,"ι","\\iota",!0),oG(oq,oW,oQ,"κ","\\kappa",!0),oG(oq,oW,oQ,"λ","\\lambda",!0),oG(oq,oW,oQ,"μ","\\mu",!0),oG(oq,oW,oQ,"ν","\\nu",!0),oG(oq,oW,oQ,"ξ","\\xi",!0),oG(oq,oW,oQ,"ο","\\omicron",!0),oG(oq,oW,oQ,"π","\\pi",!0),oG(oq,oW,oQ,"ρ","\\rho",!0),oG(oq,oW,oQ,"σ","\\sigma",!0),oG(oq,oW,oQ,"τ","\\tau",!0),oG(oq,oW,oQ,"υ","\\upsilon",!0),oG(oq,oW,oQ,"ϕ","\\phi",!0),oG(oq,oW,oQ,"χ","\\chi",!0),oG(oq,oW,oQ,"ψ","\\psi",!0),oG(oq,oW,oQ,"ω","\\omega",!0),oG(oq,oW,oQ,"ε","\\varepsilon",!0),oG(oq,oW,oQ,"ϑ","\\vartheta",!0),oG(oq,oW,oQ,"ϖ","\\varpi",!0),oG(oq,oW,oQ,"ϱ","\\varrho",!0),oG(oq,oW,oQ,"ς","\\varsigma",!0),oG(oq,oW,oQ,"φ","\\varphi",!0),oG(oq,oW,"bin","∗","*",!0),oG(oq,oW,"bin","+","+"),oG(oq,oW,"bin","−","-",!0),oG(oq,oW,"bin","⋅","\\cdot",!0),oG(oq,oW,"bin","∘","\\circ",!0),oG(oq,oW,"bin","\xf7","\\div",!0),oG(oq,oW,"bin","\xb1","\\pm",!0),oG(oq,oW,"bin","\xd7","\\times",!0),oG(oq,oW,"bin","∩","\\cap",!0),oG(oq,oW,"bin","∪","\\cup",!0),oG(oq,oW,"bin","∖","\\setminus",!0),oG(oq,oW,"bin","∧","\\land"),oG(oq,oW,"bin","∨","\\lor"),oG(oq,oW,"bin","∧","\\wedge",!0),oG(oq,oW,"bin","∨","\\vee",!0),oG(oq,oW,o1,"√","\\surd"),oG(oq,oW,o$,"⟨","\\langle",!0),oG(oq,oW,o$,"∣","\\lvert"),oG(oq,oW,o$,"∥","\\lVert"),oG(oq,oW,oK,"?","?"),oG(oq,oW,oK,"!","!"),oG(oq,oW,oK,"⟩","\\rangle",!0),oG(oq,oW,oK,"∣","\\rvert"),oG(oq,oW,oK,"∥","\\rVert"),oG(oq,oW,"rel","=","="),oG(oq,oW,"rel",":",":"),oG(oq,oW,"rel","≈","\\approx",!0),oG(oq,oW,"rel","≅","\\cong",!0),oG(oq,oW,"rel","≥","\\ge"),oG(oq,oW,"rel","≥","\\geq",!0),oG(oq,oW,"rel","←","\\gets"),oG(oq,oW,"rel",">","\\gt",!0),oG(oq,oW,"rel","∈","\\in",!0),oG(oq,oW,"rel","","\\@not"),oG(oq,oW,"rel","⊂","\\subset",!0),oG(oq,oW,"rel","⊃","\\supset",!0),oG(oq,oW,"rel","⊆","\\subseteq",!0),oG(oq,oW,"rel","⊇","\\supseteq",!0),oG(oq,"ams","rel","⊈","\\nsubseteq",!0),oG(oq,"ams","rel","⊉","\\nsupseteq",!0),oG(oq,oW,"rel","⊨","\\models"),oG(oq,oW,"rel","←","\\leftarrow",!0),oG(oq,oW,"rel","≤","\\le"),oG(oq,oW,"rel","≤","\\leq",!0),oG(oq,oW,"rel","<","\\lt",!0),oG(oq,oW,"rel","→","\\rightarrow",!0),oG(oq,oW,"rel","→","\\to"),oG(oq,"ams","rel","≱","\\ngeq",!0),oG(oq,"ams","rel","≰","\\nleq",!0),oG(oq,oW,o0,"\xa0","\\ "),oG(oq,oW,o0,"\xa0","\\space"),oG(oq,oW,o0,"\xa0","\\nobreakspace"),oG(oV,oW,o0,"\xa0","\\ "),oG(oV,oW,o0,"\xa0"," "),oG(oV,oW,o0,"\xa0","\\space"),oG(oV,oW,o0,"\xa0","\\nobreakspace"),oG(oq,oW,o0,null,"\\nobreak"),oG(oq,oW,o0,null,"\\allowbreak"),oG(oq,oW,oJ,",",","),oG(oq,oW,oJ,";",";"),oG(oq,"ams","bin","⊼","\\barwedge",!0),oG(oq,"ams","bin","⊻","\\veebar",!0),oG(oq,oW,"bin","⊙","\\odot",!0),oG(oq,oW,"bin","⊕","\\oplus",!0),oG(oq,oW,"bin","⊗","\\otimes",!0),oG(oq,oW,o1,"∂","\\partial",!0),oG(oq,oW,"bin","⊘","\\oslash",!0),oG(oq,"ams","bin","⊚","\\circledcirc",!0),oG(oq,"ams","bin","⊡","\\boxdot",!0),oG(oq,oW,"bin","△","\\bigtri
260angleup"),oG(oq,oW,"bin","▽","\\bigtriangledown"),oG(oq,oW,"bin","†","\\dagger"),oG(oq,oW,"bin","⋄","\\diamond"),oG(oq,oW,"bin","⋆","\\star"),oG(oq,oW,"bin","◃","\\triangleleft"),oG(oq,oW,"bin","▹","\\triangleright"),oG(oq,oW,o$,"{","\\{"),oG(oV,oW,o1,"{","\\{"),oG(oV,oW,o1,"{","\\textbraceleft"),oG(oq,oW,oK,"}","\\}"),oG(oV,oW,o1,"}","\\}"),oG(oV,oW,o1,"}","\\textbraceright"),oG(oq,oW,o$,"{","\\lbrace"),oG(oq,oW,oK,"}","\\rbrace"),oG(oq,oW,o$,"[","\\lbrack",!0),oG(oV,oW,o1,"[","\\lbrack",!0),oG(oq,oW,oK,"]","\\rbrack",!0),oG(oV,oW,o1,"]","\\rbrack",!0),oG(oq,oW,o$,"(","\\lparen",!0),oG(oq,oW,oK,")","\\rparen",!0),oG(oV,oW,o1,"<","\\textless",!0),oG(oV,oW,o1,">","\\textgreater",!0),oG(oq,oW,o$,"⌊","\\lfloor",!0),oG(oq,oW,oK,"⌋","\\rfloor",!0),oG(oq,oW,o$,"⌈","\\lceil",!0),oG(oq,oW,oK,"⌉","\\rceil",!0),oG(oq,oW,o1,"\\","\\backslash"),oG(oq,oW,o1,"∣","|"),oG(oq,oW,o1,"∣","\\vert"),oG(oV,oW,o1,"|","\\textbar",!0),oG(oq,oW,o1,"∥","\\|"),oG(oq,oW,o1,"∥","\\Vert"),oG(oV,oW,o1,"∥","\\textbardbl"),oG(oV,oW,o1,"~","\\textasciitilde"),oG(oV,oW,o1,"\\","\\textbackslash"),oG(oV,oW,o1,"^","\\textasciicircum"),oG(oq,oW,"rel","↑","\\uparrow",!0),oG(oq,oW,"rel","⇑","\\Uparrow",!0),oG(oq,oW,"rel","↓","\\downarrow",!0),oG(oq,oW,"rel","⇓","\\Downarrow",!0),oG(oq,oW,"rel","↕","\\updownarrow",!0),oG(oq,oW,"rel","⇕","\\Updownarrow",!0),oG(oq,oW,oZ,"∐","\\coprod"),oG(oq,oW,oZ,"⋁","\\bigvee"),oG(oq,oW,oZ,"⋀","\\bigwedge"),oG(oq,oW,oZ,"⨄","\\biguplus"),oG(oq,oW,oZ,"⋂","\\bigcap"),oG(oq,oW,oZ,"⋃","\\bigcup"),oG(oq,oW,oZ,"∫","\\int"),oG(oq,oW,oZ,"∫","\\intop"),oG(oq,oW,oZ,"∬","\\iint"),oG(oq,oW,oZ,"∭","\\iiint"),oG(oq,oW,oZ,"∏","\\prod"),oG(oq,oW,oZ,"∑","\\sum"),oG(oq,oW,oZ,"⨂","\\bigotimes"),oG(oq,oW,oZ,"⨁","\\bigoplus"),oG(oq,oW,oZ,"⨀","\\bigodot"),oG(oq,oW,oZ,"∮","\\oint"),oG(oq,oW,oZ,"∯","\\oiint"),oG(oq,oW,oZ,"∰","\\oiiint"),oG(oq,oW,oZ,"⨆","\\bigsqcup"),oG(oq,oW,oZ,"∫","\\smallint"),oG(oV,oW,oX,"…","\\textellipsis"),oG(oq,oW,oX,"…","\\mathellipsis"),oG(oV,oW,oX,"…","\\ldots",!0),oG(oq,oW,oX,"…","\\ldots",!0),oG(oq,oW,oX,"⋯","\\@cdots",!0),oG(oq,oW,oX,"⋱","\\ddots",!0),oG(oq,oW,o1,"⋮","\\varvdots"),oG(oV,oW,o1,"⋮","\\varvdots"),oG(oq,oW,oY,"ˊ","\\acute"),oG(oq,oW,oY,"ˋ","\\grave"),oG(oq,oW,oY,"\xa8","\\ddot"),oG(oq,oW,oY,"~","\\tilde"),oG(oq,oW,oY,"ˉ","\\bar"),oG(oq,oW,oY,"˘","\\breve"),oG(oq,oW,oY,"ˇ","\\check"),oG(oq,oW,oY,"^","\\hat"),oG(oq,oW,oY,"⃗","\\vec"),oG(oq,oW,oY,"˙","\\dot"),oG(oq,oW,oY,"˚","\\mathring"),oG(oq,oW,oQ,"","\\@imath"),oG(oq,oW,oQ,"","\\@jmath"),oG(oq,oW,o1,"ı","ı"),oG(oq,oW,o1,"ȷ","ȷ"),oG(oV,oW,o1,"ı","\\i",!0),oG(oV,oW,o1,"ȷ","\\j",!0),oG(oV,oW,o1,"\xdf","\\ss",!0),oG(oV,oW,o1,"\xe6","\\ae",!0),oG(oV,oW,o1,"œ","\\oe",!0),oG(oV,oW,o1,"\xf8","\\o",!0),oG(oV,oW,o1,"\xc6","\\AE",!0),oG(oV,oW,o1,"Œ","\\OE",!0),oG(oV,oW,o1,"\xd8","\\O",!0),oG(oV,oW,oY,"ˊ","\\'"),oG(oV,oW,oY,"ˋ","\\`"),oG(oV,oW,oY,"ˆ","\\^"),oG(oV,oW,oY,"˜","\\~"),oG(oV,oW,oY,"ˉ","\\="),oG(oV,oW,oY,"˘","\\u"),oG(oV,oW,oY,"˙","\\."),oG(oV,oW,oY,"\xb8","\\c"),oG(oV,oW,oY,"˚","\\r"),oG(oV,oW,oY,"ˇ","\\v"),oG(oV,oW,oY,"\xa8",'\\"'),oG(oV,oW,oY,"˝","\\H"),oG(oV,oW,oY,"◯","\\textcircled");var o2={"--":!0,"---":!0,"``":!0,"''":!0};oG(oV,oW,o1,"–","--",!0),oG(oV,oW,o1,"–","\\textendash"),oG(oV,oW,o1,"—","---",!0),oG(oV,oW,o1,"—","\\textemdash"),oG(oV,oW,o1,"‘","`",!0),oG(oV,oW,o1,"‘","\\textquoteleft"),oG(oV,oW,o1,"’","'",!0),oG(oV,oW,o1,"’","\\textquoteright"),oG(oV,oW,o1,"“","``",!0),oG(oV,oW,o1,"“","\\textquotedblleft"),oG(oV,oW,o1,"”","''",!0),oG(oV,oW,o1,"”","\\textquotedblright"),oG(oq,oW,o1,"\xb0","\\degree",!0),oG(oV,oW,o1,"\xb0","\\degree"),oG(oV,oW,o1,"\xb0","\\textdegree",!0),oG(oq,oW,o1,"\xa3","\\pounds"),oG(oq,oW,o1,"\xa3","\\mathsterling",!0),oG(oV,oW,o1,"\xa3","\\pounds"),oG(oV,oW,o1,"\xa3","\\textsterling",!0),oG(oq,"ams",o1,"✠","\\maltese"),oG(oV,"ams",o1,"✠","\\maltese");for(var o4='0123456789/@."',o5=0;o5<o4.length;o5++){var o3=o4.charAt(o5);oG(oq,oW,o1,o3,o3)}for(var o6='0123456789!@*()-=+";:?/.,',o7=0;o7<o6.length;o7++){var o8=o6.charAt(o7);oG(oV,oW,o1,o8,o8)}for(var o9="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",se=0;se<o9.length;se++){var st=o9.charAt(se);oG(oq,oW,oQ,st,st),oG(oV,oW,o1,st,st)}oG(oq,"ams",o1,"C","ℂ"),oG(oV,"ams",o1,"C","ℂ"),oG(oq,"ams",o1,"H","ℍ"),oG(oV,"ams",o1,"H","ℍ"),oG(oq,"ams",o1,"N","ℕ"),oG(oV,"ams",o1,"N","ℕ"),oG(oq,"ams",o1,"P","ℙ"),oG(oV,"ams",o1,"P","ℙ"),oG(oq,"ams",o1,"Q","ℚ"),oG(oV,"ams",o1,"Q","ℚ"),oG(oq,"ams",o1,"R","ℝ"),oG(oV,"ams",o1,"R","ℝ"),oG(oq,"ams",o1,"Z","ℤ"),oG(oV,"ams",o1,"Z","ℤ"),oG(oq,oW,oQ,"h","ℎ"),oG(oV,oW,oQ,"h","ℎ");for(var sn="",sr=0;sr<o9.length;sr++){var si=o9.charAt(sr);oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56320+sr)),oG(oV,oW,o1,si,sn),oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56372+sr)),oG(oV,oW,o1,si,sn),oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56424+sr)),oG(oV,oW,o1,si,sn),oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56580+sr)),oG(oV,oW,o1,si,sn),oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56684+sr)),oG(oV,oW,o1,si,sn),oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56736+sr)),oG(oV,oW,o1,si,sn),oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56788+sr)),oG(oV,oW,o1,si,sn),oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56840+sr)),oG(oV,oW,o1,si,sn),oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56944+sr)),oG(oV,oW,o1,si,sn),sr<26&&
260(oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56632+sr)),oG(oV,oW,o1,si,sn),oG(oq,oW,oQ,si,sn=String.fromCharCode(55349,56476+sr)),oG(oV,oW,o1,si,sn))}oG(oq,oW,oQ,"k",sn="\uD835\uDD5C"),oG(oV,oW,o1,"k",sn);for(var sa=0;sa<10;sa++){var so=sa.toString();oG(oq,oW,oQ,so,sn=String.fromCharCode(55349,57294+sa)),oG(oV,oW,o1,so,sn),oG(oq,oW,oQ,so,sn=String.fromCharCode(55349,57314+sa)),oG(oV,oW,o1,so,sn),oG(oq,oW,oQ,so,sn=String.fromCharCode(55349,57324+sa)),oG(oV,oW,o1,so,sn),oG(oq,oW,oQ,so,sn=String.fromCharCode(55349,57334+sa)),oG(oV,oW,o1,so,sn)}for(var ss="\xd0\xde\xfe",sl=0;sl<ss.length;sl++){var su=ss.charAt(sl);oG(oq,oW,oQ,su,su),oG(oV,oW,o1,su,su)}var sc=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],sd=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],sp=function(e,t){var n=(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320)+65536,i="math"===t?0:1;if(119808<=n&&n<120484){var a=Math.floor((n-119808)/26);return[sc[a][2],sc[a][i]]}if(120782<=n&&n<=120831){var o=Math.floor((n-120782)/10);return[sd[o][2],sd[o][i]]}if(120485===n||120486===n)return[sc[0][2],sc[0][i]];if(120486<n&&n<120782)return["",""];throw new aX("Unsupported character: "+e)},sh=function(e,t,n){return oU[n][e]&&oU[n][e].replace&&(e=oU[n][e].replace),{value:e,metrics:of(e,t,n)}},sm=function(e,t,n,i,a){var o,s=sh(e,t,n),l=s.metrics;if(e=s.value,l){var u=l.italic;("text"===n||i&&"mathit"===i.font)&&(u=0),o=new oL(e,l.height,l.depth,u,l.skew,l.width,a)}else"u">typeof console&&console.warn("No character metrics "+("for '"+e+"' in style '"+t)+"' and mode '"+n+"'"),o=new oL(e,0,0,0,0,0,a);if(i){o.maxFontSize=i.sizeMultiplier,i.style.isTight()&&o.classes.push("mtight");var c=i.getColor();c&&(o.style.color=c)}return o},sf=(e,t)=>{if(oS(e.classes)!==oS(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(1===e.classes.length){var n=e.classes[0];if("mbin"===n||"mord"===n)return!1}for(var i in e.style)if(e.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;for(var a in t.style)if(t.style.hasOwnProperty(a)&&e.style[a]!==t.style[a])return!1;return!0},sg=function(e){for(var t=0,n=0,i=0,a=0;a<e.children.length;a++){var o=e.children[a];o.height>t&&(t=o.height),o.depth>n&&(n=o.depth),o.maxFontSize>i&&(i=o.maxFontSize)}e.height=t,e.depth=n,e.maxFontSize=i},sx=function(e,t,n,i){var a=new oM(e,t,n,i);return sg(a),a},sv=(e,t,n,i)=>new oM(e,t,n,i),sy=function(e){var t=new oc(e);return sg(t),t},sb=function(e){if("individualShift"===e.positionType){for(var t,n=e.children,i=[n[0]],a=-n[0].shift-n[0].elem.depth,o=a,s=1;s<n.length;s++){var l=-n[s].shift-o-n[s].elem.depth,u=l-(n[s-1].elem.height+n[s-1].elem.depth);o+=l,i.push({type:"kern",size:u}),i.push(n[s])}return{children:i,depth:a}}if("top"===e.positionType){for(var c=e.positionData,d=0;d<e.children.length;d++){var p=e.children[d];c-="kern"===p.type?p.size:p.elem.height+p.elem.depth}t=c}else if("bottom"===e.positionType)t=-e.positionData;else{var h=e.children[0];if("elem"!==h.type)throw Error('First child must have type "elem".');if("shift"===e.positionType)t=-h.elem.depth-e.positionData;else if("firstBaseline"===e.positionType)t=-h.elem.depth;else throw Error("Invalid positionType "+e.positionType+".")}return{children:e.children,depth:t}},sw=function(e,t,n){var i="";switch(e){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=e}return i+"-"+("textbf"===t&&"textit"===n?"BoldItalic":"textbf"===t?"Bold":"textit"===t?"Italic":"Regular")},sk={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},s_={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]}
260,sT={fontMap:sk,makeSymbol:sm,mathsym:function(e,t,n,i){return void 0===i&&(i=[]),"boldsymbol"===n.font&&sh(e,"Main-Bold",t).metrics?sm(e,"Main-Bold",t,n,i.concat(["mathbf"])):"\\"===e||"main"===oU[t][e].font?sm(e,"Main-Regular",t,n,i):sm(e,"AMS-Regular",t,n,i.concat(["amsrm"]))},makeSpan:sx,makeSvgSpan:sv,makeLineSpan:function(e,t,n){var i=sx([e],[],t);return i.height=Math.max(n||t.fontMetrics().defaultRuleThickness,t.minRuleThickness),i.style.borderBottomWidth=oE(i.height),i.maxFontSize=1,i},makeAnchor:function(e,t,n,i){var a=new oP(e,t,n,i);return sg(a),a},makeFragment:sy,wrapFragment:function(e,t){return e instanceof oc?sx([],[e],t):e},makeVList:function(e,t){for(var n,{children:i,depth:a}=sb(e),o=0,s=0;s<i.length;s++){var l=i[s];if("elem"===l.type){var u=l.elem;o=Math.max(o,u.maxFontSize,u.height)}}o+=2;var c=sx(["pstrut"],[]);c.style.height=oE(o);for(var d=[],p=a,h=a,m=a,f=0;f<i.length;f++){var g=i[f];if("kern"===g.type)m+=g.size;else{var x=g.elem,v=sx(g.wrapperClasses||[],[c,x],void 0,g.wrapperStyle||{});v.style.top=oE(-o-m-x.depth),g.marginLeft&&(v.style.marginLeft=g.marginLeft),g.marginRight&&(v.style.marginRight=g.marginRight),d.push(v),m+=x.height+x.depth}p=Math.min(p,m),h=Math.max(h,m)}var b=sx(["vlist"],d);if(b.style.height=oE(h),p<0){var w=sx([],[]),k=sx(["vlist"],[w]);k.style.height=oE(-p);var _=sx(["vlist-s"],[new oL("​")]);n=[sx(["vlist-r"],[b,_]),sx(["vlist-r"],[k])]}else n=[sx(["vlist-r"],[b])];var T=sx(["vlist-t"],n);return 2===n.length&&T.classes.push("vlist-t2"),T.height=h,T.depth=-p,T},makeOrd:function(e,t,n){var i,a,o=e.mode,s=e.text,l=["mord"],u="math"===o||"text"===o&&t.font,c=u?t.font:t.fontFamily,d="",p="";if(55349===s.charCodeAt(0)&&([d,p]=sp(s,o)),d.length>0)return sm(s,d,o,t,l.concat(p));if(c){if("boldsymbol"===c){var h="textord"!==n&&sh(s,"Math-BoldItalic",o).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"};i=h.fontName,a=[h.fontClass]}else u?(i=sk[c].fontName,a=[c]):(i=sw(c,t.fontWeight,t.fontShape),a=[c,t.fontWeight,t.fontShape]);if(sh(s,i,o).metrics)return sm(s,i,o,t,l.concat(a));if(o2.hasOwnProperty(s)&&"Typewriter"===i.slice(0,10)){for(var m=[],f=0;f<s.length;f++)m.push(sm(s[f],i,o,t,l.concat(a)));return sy(m)}}if("mathord"===n)return sm(s,"Math-Italic",o,t,l.concat(["mathnormal"]));if("textord"===n){var g=oU[o][s]&&oU[o][s].font;if("ams"===g)return sm(s,sw("amsrm",t.fontWeight,t.fontShape),o,t,l.concat("amsrm",t.fontWeight,t.fontShape));if("main"===g||!g)return sm(s,sw("textrm",t.fontWeight,t.fontShape),o,t,l.concat(t.fontWeight,t.fontShape));var x=sw(g,t.fontWeight,t.fontShape);return sm(s,x,o,t,l.concat(x,t.fontWeight,t.fontShape))}throw Error("unexpected type: "+n+" in makeOrd")},makeGlue:(e,t)=>{var n=sx(["mspace"],[],t),i=oT(e,t);return n.style.marginRight=oE(i),n},staticSvg:function(e,t){var[n,i,a]=s_[e],o=sv(["overlay"],[new oO([new oB(n)],{width:oE(i),height:oE(a),style:"width:"+oE(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"})],t);return o.height=a,o.style.height=oE(a),o.style.width=oE(i),o},svgData:s_,tryCombineChars:e=>{for(var t=0;t<e.length-1;t++){var n=e[t],i=e[t+1];n instanceof oL&&i instanceof oL&&sf(n,i)&&(n.text+=i.text,n.height=Math.max(n.height,i.height),n.depth=Math.max(n.depth,i.depth),n.italic=i.italic,e.splice(t+1,1),t--)}return e}},sE={number:3,unit:"mu"},sS={number:4,unit:"mu"},sA={number:5,unit:"mu"},sC={mord:{mop:sE,mbin:sS,mrel:sA,minner:sE},mop:{mord:sE,mop:sE,mrel:sA,minner:sE},mbin:{mord:sS,mop:sS,mopen:sS,minner:sS},mrel:{mord:sA,mop:sA,mopen:sA,minner:sA},mopen:{},mclose:{mop:sE,mbin:sS,mrel:sA,minner:sE},mpunct:{mord:sE,mop:sE,mrel:sA,mopen:sE,mclose:sE,mpunct:sE,minner:sE},minner:{mord:sE,mop:sE,mbin:sS,mrel:sA,mopen:sE,mpunct:sE,minner:sE}},sN={mord:{mop:sE},mop:{mord:sE,mop:sE},mbin:{},mrel:{},mopen:{},mclose:{mop:sE},mpunct:{},minner:{mop:sE}},sI={},sM={},sP={};function sR(e){for(var{type:t,names:n,props:i,handler:a,htmlBuilder:o,mathmlBuilder:s}=e,l={type:t,numArgs:i.numArgs,argTypes:i.argTypes,allowedInArgument:!!i.allowedInArgument,allowedInText:!!i.allowedInText,allowedInMath:void 0===i.allowedInMath||i.allowedInMath,numOptionalArgs:i.numOptionalArgs||0,infix:!!i.infi
260x,primitive:!!i.primitive,handler:a},u=0;u<n.length;++u)sI[n[u]]=l;t&&(o&&(sM[t]=o),s&&(sP[t]=s))}function sD(e){var{type:t,htmlBuilder:n,mathmlBuilder:i}=e;sR({type:t,names:[],props:{numArgs:0},handler(){throw Error("Should never be called.")},htmlBuilder:n,mathmlBuilder:i})}var sL=function(e){return"ordgroup"===e.type&&1===e.body.length?e.body[0]:e},sO=function(e){return"ordgroup"===e.type?e.body:[e]},sB=sT.makeSpan,sj=["leftmost","mbin","mopen","mrel","mop","mpunct"],sz=["rightmost","mrel","mclose","mpunct"],sF={display:on.DISPLAY,text:on.TEXT,script:on.SCRIPT,scriptscript:on.SCRIPTSCRIPT},sH={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},sU=function(e,t,n,i){void 0===i&&(i=[null,null]);for(var a=[],o=0;o<e.length;o++){var s=sK(e[o],t);if(s instanceof oc){var l=s.children;a.push(...l)}else a.push(s)}if(sT.tryCombineChars(a),!n)return a;var u=t;if(1===e.length){var c=e[0];"sizing"===c.type?u=t.havingSize(c.size):"styling"===c.type&&(u=t.havingStyle(sF[c.style]))}var d=sB([i[0]||"leftmost"],[],t),p=sB([i[1]||"rightmost"],[],t),h="root"===n;return sG(a,(e,t)=>{var n=t.classes[0],i=e.classes[0];"mbin"===n&&sz.includes(i)?t.classes[0]="mord":"mbin"===i&&sj.includes(n)&&(e.classes[0]="mord")},{node:d},p,h),sG(a,(e,t)=>{var n=sW(t),i=sW(e),a=n&&i?e.hasClass("mtight")?sN[n][i]:sC[n][i]:null;if(a)return sT.makeGlue(a,u)},{node:d},p,h),a},sG=function e(t,n,i,a,o){a&&t.push(a);for(var s=0;s<t.length;s++){let a;var l=t[s],u=sq(l);if(u){e(u.children,n,i,null,o);continue}var c=!l.hasClass("mspace");if(c){var d=n(l,i.node);d&&(i.insertAfter?i.insertAfter(d):(t.unshift(d),s++))}c?i.node=l:o&&l.hasClass("newline")&&(i.node=sB(["leftmost"])),i.insertAfter=(a=s,e=>{t.splice(a+1,0,e),s++})}a&&t.pop()},sq=function(e){return e instanceof oc||e instanceof oP||e instanceof oM&&e.hasClass("enclosing")?e:null},sV=function e(t,n){var i=sq(t);if(i){var a=i.children;if(a.length){if("right"===n)return e(a[a.length-1],"right");if("left"===n)return e(a[0],"left")}}return t},sW=function(e,t){return e?(t&&(e=sV(e,t)),sH[e.classes[0]]||null):null},sY=function(e,t){var n=["nulldelimiter"].concat(e.baseSizingClasses());return sB(t.concat(n))},sK=function(e,t,n){if(!e)return sB();if(sM[e.type]){var i=sM[e.type](e,t);if(n&&t.size!==n.size){i=sB(t.sizingClasses(n),[i],t);var a=t.sizeMultiplier/n.sizeMultiplier;i.height*=a,i.depth*=a}return i}throw new aX("Got group of unknown type: '"+e.type+"'")};function sX(e,t){var n=sB(["base"],e,t),i=sB(["strut"]);return i.style.height=oE(n.height+n.depth),n.depth&&(i.style.verticalAlign=oE(-n.depth)),n.children.unshift(i),n}function sQ(e,t){var n,i=null;1===e.length&&"tag"===e[0].type&&(i=e[0].tag,e=e[0].body);var a,o=sU(e,t,"root");2===o.length&&o[1].hasClass("tag")&&(a=o.pop());for(var s=[],l=[],u=0;u<o.length;u++)if(l.push(o[u]),o[u].hasClass("mbin")||o[u].hasClass("mrel")||o[u].hasClass("allowbreak")){for(var c=!1;u<o.length-1&&o[u+1].hasClass("mspace")&&!o[u+1].hasClass("newline");)u++,l.push(o[u]),o[u].hasClass("nobreak")&&(c=!0);c||(s.push(sX(l,t)),l=[])}else o[u].hasClass("newline")&&(l.pop(),l.length>0&&(s.push(sX(l,t)),l=[]),s.push(o[u]));l.length>0&&s.push(sX(l,t)),i?((n=sX(sU(i,t,!0))).classes=["tag"],s.push(n)):a&&s.push(a);var d=sB(["katex-html"],s);if(d.setAttribute("aria-hidden","true"),n){var p=n.children[0];p.style.height=oE(d.height+d.depth),d.depth&&(p.style.verticalAlign=oE(-d.depth))}return d}function sZ(e){return new oc(e)}class s${constructor(e,t,n){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=e,this.attributes={},this.children=t||[],this.classes=n||[]}setAttribute(e,t){this.attributes[e]=t}getAttribute(e){return this.attributes[e]}toNode(){var e=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&e.setAttribute(t,this.attributes[t]);this.classes.length>0&&(e.className=oS(this.classes));for(var n=0;n<this.children.length;n++)if(this.children[n]instanceof sJ&&this.children[n+1]instanceof sJ){for(var i=this.children[n].toText()+this.children[++n].toText();this.children[n+1]instanceof sJ;)i+=this.children[++n].toText();e.appendChild(new sJ(i).toNode())}
260else e.appendChild(this.children[n].toNode());return e}toMarkup(){var e="<"+this.type;for(var t in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,t)&&(e+=" "+t+'="'+a1.escape(this.attributes[t])+'"');this.classes.length>0&&(e+=' class ="'+a1.escape(oS(this.classes))+'"'),e+=">";for(var n=0;n<this.children.length;n++)e+=this.children[n].toMarkup();return e+"</"+this.type+">"}toText(){return this.children.map(e=>e.toText()).join("")}}class sJ{constructor(e){this.text=void 0,this.text=e}toNode(){return document.createTextNode(this.text)}toMarkup(){return a1.escape(this.toText())}toText(){return this.text}}class s0{constructor(e){this.width=void 0,this.character=void 0,this.width=e,e>=.05555&&e<=.05556?this.character=" ":e>=.1666&&e<=.1667?this.character=" ":e>=.2222&&e<=.2223?this.character=" ":e>=.2777&&e<=.2778?this.character="  ":e>=-.05556&&e<=-.05555?this.character=" ⁣":e>=-.1667&&e<=-.1666?this.character=" ⁣":e>=-.2223&&e<=-.2222?this.character=" ⁣":e>=-.2778&&e<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var e=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return e.setAttribute("width",oE(this.width)),e}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+oE(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var s1={MathNode:s$,TextNode:sJ,SpaceNode:s0,newDocumentFragment:sZ},s2=function(e,t,n){return oU[t][e]&&oU[t][e].replace&&55349!==e.charCodeAt(0)&&!(o2.hasOwnProperty(e)&&n&&(n.fontFamily&&"tt"===n.fontFamily.slice(4,6)||n.font&&"tt"===n.font.slice(4,6)))&&(e=oU[t][e].replace),new s1.TextNode(e)},s4=function(e){return 1===e.length?e[0]:new s1.MathNode("mrow",e)},s5=function(e,t){if("texttt"===t.fontFamily)return"monospace";if("textsf"===t.fontFamily)return"textit"===t.fontShape&&"textbf"===t.fontWeight?"sans-serif-bold-italic":"textit"===t.fontShape?"sans-serif-italic":"textbf"===t.fontWeight?"bold-sans-serif":"sans-serif";if("textit"===t.fontShape&&"textbf"===t.fontWeight)return"bold-italic";if("textit"===t.fontShape)return"italic";if("textbf"===t.fontWeight)return"bold";var n=t.font;if(!n||"mathnormal"===n)return null;var i=e.mode;if("mathit"===n)return"italic";if("boldsymbol"===n)return"textord"===e.type?"bold":"bold-italic";if("mathbf"===n)return"bold";if("mathbb"===n)return"double-struck";if("mathsfit"===n)return"sans-serif-italic";if("mathfrak"===n)return"fraktur";if("mathscr"===n||"mathcal"===n)return"script";if("mathsf"===n)return"sans-serif";if("mathtt"===n)return"monospace";var a=e.text;return["\\imath","\\jmath"].includes(a)?null:(oU[i][a]&&oU[i][a].replace&&(a=oU[i][a].replace),of(a,sT.fontMap[n].fontName,i)?sT.fontMap[n].variant:null)};function s3(e){if(!e)return!1;if("mi"===e.type&&1===e.children.length){var t=e.children[0];return t instanceof sJ&&"."===t.text}if("mo"!==e.type||1!==e.children.length||"true"!==e.getAttribute("separator")||"0em"!==e.getAttribute("lspace")||"0em"!==e.getAttribute("rspace"))return!1;var n=e.children[0];return n instanceof sJ&&","===n.text}var s6=function(e,t,n){if(1===e.length){var i=s8(e[0],t);return n&&i instanceof s$&&"mo"===i.type&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a,o=[],s=0;s<e.length;s++){var l=s8(e[s],t);
260if(l instanceof s$&&a instanceof s$){if("mtext"===l.type&&"mtext"===a.type&&l.getAttribute("mathvariant")===a.getAttribute("mathvariant")||"mn"===l.type&&"mn"===a.type){a.children.push(...l.children);continue}if(s3(l)&&"mn"===a.type){a.children.push(...l.children);continue}if("mn"===l.type&&s3(a))l.children=[...a.children,...l.children],o.pop();else if(("msup"===l.type||"msub"===l.type)&&l.children.length>=1&&("mn"===a.type||s3(a))){var u=l.children[0];u instanceof s$&&"mn"===u.type&&(u.children=[...a.children,...u.children],o.pop())}else if("mi"===a.type&&1===a.children.length){var c=a.children[0];if(c instanceof sJ&&"̸"===c.text&&("mo"===l.type||"mi"===l.type||"mn"===l.type)){var d=l.children[0];d instanceof sJ&&d.text.length>0&&(d.text=d.text.slice(0,1)+"̸"+d.text.slice(1),o.pop())}}}o.push(l),a=l}return o},s7=function(e,t,n){return s4(s6(e,t,n))},s8=function(e,t){if(!e)return new s1.MathNode("mrow");if(sP[e.type])return sP[e.type](e,t);throw new aX("Got group of unknown type: '"+e.type+"'")};function s9(e,t,n,i,a){var o,s=s6(e,n);o=1===s.length&&s[0]instanceof s$&&["mrow","mtable"].includes(s[0].type)?s[0]:new s1.MathNode("mrow",s);var l=new s1.MathNode("annotation",[new s1.TextNode(t)]);l.setAttribute("encoding","application/x-tex");var u=new s1.MathNode("semantics",[o,l]),c=new s1.MathNode("math",[u]);return c.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),i&&c.setAttribute("display","block"),sT.makeSpan([a?"katex":"katex-mathml"],[c])}var le=function(e){return new ob({style:e.displayMode?on.DISPLAY:on.TEXT,maxSize:e.maxSize,minRuleThickness:e.minRuleThickness})},lt=function(e,t){if(t.displayMode){var n=["katex-display"];t.leqno&&n.push("leqno"),t.fleqn&&n.push("fleqn"),e=sT.makeSpan(n,[e])}return e},ln=function(e,t,n){var i,a=le(n);if("mathml"===n.output)return s9(e,t,a,n.displayMode,!0);if("html"===n.output){var o=sQ(e,a);i=sT.makeSpan(["katex"],[o])}else{var s=s9(e,t,a,n.displayMode,!1),l=sQ(e,a);i=sT.makeSpan(["katex"],[s,l])}return lt(i,n)},lr=function(e,t,n){var i=sQ(e,le(n));return lt(sT.makeSpan(["katex"],[i]),n)},li={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},la={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]}
260,lo={encloseSpan:function(e,t,n,i,a){var o,s=e.height+e.depth+n+i;if(/fbox|color|angl/.test(t)){if(o=sT.makeSpan(["stretchy",t],[],a),"fbox"===t){var l=a.color&&a.getColor();l&&(o.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(t)&&u.push(new oj({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(t)&&u.push(new oj({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new oO(u,{width:"100%",height:oE(s)});o=sT.makeSvgSpan([],[c],a)}return o.height=s,o.style.height=oE(s),o},mathMLnode:function(e){var t=new s1.MathNode("mo",[new s1.TextNode(li[e.replace(/^\\/,"")])]);return t.setAttribute("stretchy","true"),t},svgSpan:function(e,t){var{span:n,minWidth:i,height:a}=function(){var n=4e5,i=e.label.slice(1);if(["widehat","widecheck","widetilde","utilde"].includes(i)){var a,o,s,l,u="ordgroup"===(a=e.base).type?a.body.length:1;if(u>5)"widehat"===i||"widecheck"===i?(o=420,n=2364,l=.42,s=i+"4"):(o=312,n=2340,l=.34,s="tilde4");else{var c=[1,1,2,2,3,3][u];"widehat"===i||"widecheck"===i?(n=[0,1062,2364,2364,2364][c],o=[0,239,300,360,420][c],l=[0,.24,.3,.3,.36,.42][c],s=i+c):(n=[0,600,1033,2339,2340][c],o=[0,260,286,306,312][c],l=[0,.26,.286,.3,.306,.34][c],s="tilde"+c)}var d=new oO([new oB(s)],{width:"100%",height:oE(l),viewBox:"0 0 "+n+" "+o,preserveAspectRatio:"none"});return{span:sT.makeSvgSpan([],[d],t),minWidth:0,height:l}}var p,h,m=[],f=la[i],[g,x,v]=f,b=v/1e3,w=g.length;if(1===w)p=["hide-tail"],h=[f[3]];else if(2===w)p=["halfarrow-left","halfarrow-right"],h=["xMinYMin","xMaxYMin"];else if(3===w)p=["brace-left","brace-center","brace-right"],h=["xMinYMin","xMidYMin","xMaxYMin"];else throw Error(`Correct katexImagesData or update code here to support
261                    `+w+" children.");for(var k=0;k<w;k++){var _=new oO([new oB(g[k])],{width:"400em",height:oE(b),viewBox:"0 0 "+n+" "+v,preserveAspectRatio:h[k]+" slice"}),T=sT.makeSvgSpan([p[k]],[_],t);if(1===w)return{span:T,minWidth:x,height:b};T.style.height=oE(b),m.push(T)}return{span:sT.makeSpan(["stretchy"],m,t),minWidth:x,height:b}}();return n.height=a,n.style.height=oE(a),i>0&&(n.style.minWidth=oE(i)),n}};function ls(e,t){if(!e||e.type!==t)throw Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function ll(e){var t=lu(e);if(!t)throw Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function lu(e){return e&&("atom"===e.type||oH.hasOwnProperty(e.type))?e:null}var lc=(e,t)=>{e&&"supsub"===e.type?(o=(s=ls(e.base,"accent")).base,e.base=o,l=function(e){if(e instanceof oM)return e;throw Error("Expected span<HtmlDomNode> but got "+String(e)+".")}(sK(e,t)),e.base=s):o=(s=ls(e,"accent")).base;var n=sK(o,t.havingCrampedStyle()),i=s.isShifty&&a1.isCharacterBox(o),a=0;i&&(a=oz(sK(a1.getBaseElem(o),t.havingCrampedStyle())).skew);var o,s,l,u,c="\\c"===s.label,d=c?n.height+n.depth:Math.min(n.height,t.fontMetrics().xHeight);if(s.isStretchy)u=lo.svgSpan(s,t),u=sT.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"elem",elem:u,wrapperClasses:["svg-align"],wrapperStyle:a>0?{width:"calc(100% - "+oE(2*a)+")",marginLeft:oE(2*a)}:void 0}]},t);else{"\\vec"===s.label?(p=sT.staticSvg("vec",t),h=sT.svgData.vec[1]):((p=oz(p=sT.makeOrd({mode:s.mode,text:s.label},t,"textord"))).italic=0,h=p.width,c&&(d+=p.depth)),u=sT.makeSpan(["accent-body"],[p]);var p,h,m="\\textcircled"===s.label;m&&(u.classes.push("accent-full"),d=n.height);var f=a;m||(f-=h/2),u.style.left=oE(f),"\\textcircled"===s.label&&(u.style.top=".2em"),u=sT.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:-d},{type:"elem",elem:u}]},t)}var g=sT.makeSpan(["mord","accent"],[u],t);return l?(l.children[0]=g,l.height=Math.max(g.height,l.height),l.classes[0]="mord",l):g},ld=(e,t)=>{var n=e.isStretchy?lo.mathMLnode(e.label):new s1.MathNode("mo",[s2(e.label,e.mode)]),i=new s1.MathNode("mover",[s8(e.base,t),n]);return i.setAttribute("accent","true"),i},lp=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));sR({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=sL(t[0]),i=!lp.test(e.funcName),a=!i||"\\widehat"===e.funcName||"\\widetilde"===e.funcName||"\\widecheck"===e.funcName;return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:i,isShifty:a,base:n}},htmlBuilder:lc,mathmlBuilder:ld}),sR({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],i=e.parser.mode;return"math"===i&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),i="text"),{type:"accent",mode:i,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:lc,mathmlBuilder:ld}),sR({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=t[0];return{type:"accentUnder",mode:n.mode,label:i,base:a}},htmlBuilder:(e,t)=>{var n=sK(e.base,t),i=lo.svgSpan(e,t),a="\\utilde"===e.label?.12:0,o=sT.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:i,wrapperClasses:["svg-align"]},{type:"kern",size:a},{type:"elem",elem:n}]},t);return sT.makeSpan(["mord","accentunder"],[o],t)},mathmlBuilder:(e,t)=>{var n=lo.mathMLnode(e.label),i=new s1.MathNode("munder",[s8(e.base,t),n]);return i.setAttribute("accentunder","true"),i}});var lh=e=>{var t=new s1.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};sR({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i,funcName:a}=e;return{type:"xArrow",mode:i.mode,label:a,body:t[0],below:n[0]}},htmlBuilder(e,t){var n,i,a=t.style,o=t.havingStyle(a.sup()),s=sT.wrapFragment(sK(e.body,o,t),t),l="\\x"===e.label.slice(0,2)?"x":"cd";s.classes.push(l+"-arrow-pad"),e.below&&(o=t.havingStyle(a.sub()),(n=sT.wrapFragment(sK(e.below,o,t),t)).classes.push(l+"-arrow-pad"));var u=lo.svgSpan(e,t),c=-t.fontMetrics().axisHeight+.5*u.height,d=-t.fontMetrics().axisHeight-.5*u.height-.111;if((s.depth>.25||"\\xleftequilibrium"===e.label)&&(d-=s.depth),n){var p=-t.fontMetrics().axisHeight+n.height+.5*u.height+.111;i=sT.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:d},{type:"elem",elem:u,shift:c},{type:"elem",elem:n,shift:p}]},t)}else i=sT.makeVList({positionType:"individualShift",children:[{type:"elem",elem:s,shift:d},{type:"elem",elem:u,shift:c}]},t);return i.children[0].children[0].children[1].classes.push("svg-align"),sT.makeSpan(["mrel","x-arrow"],[i],t)},mathmlBuilder(e,t){var n,i=lo.mathMLnode(e.label);if(i.setAttribute("minsize","x"===e.label.charAt(0)?"1.75em":"3.0em"),e.body){var a=lh(s8(e.body,t));if(e.below){var o=lh(s8(e.below,t));n=new s1.MathNode("munderover",[i,o,a])}else n=new s1.MathNode("mover",[i,a])}else if(e.below){var s=lh(s8(e.below,t));n=new s1.MathNode("munder",[i,s])}else n=lh(),n=new s1.MathNode("mover",[i,n]);return n}});var lm=sT.makeSpan;function lf(e,t){var n=sU(e.body,t,!0);return lm([e.mclass],n,t)}function lg(e,t){var n,i=s6(e.body,t);return"minner"===e.mclass?n=new s1.MathNode("mpadded",i):"mord"===e.mclass?e.isCharacterBox?(n=i[0]).type="mi":n=new s1.MathNode("mi",i):(e.isCharacterBox?(n=i[0]).type="mo":n=new s1.MathNode("mo",i),"mbin"===e.mclass?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):"mpunct"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):"mopen"===e.mclass||"mclose"===e.mclass?(n.attributes.lspace="0em",n.attributes.rspace="0em"):"minner"===e.mclass&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}sR({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:i}=e,a=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+i.slice(5),body:sO(a),isCharacterBox:a1.isCharacterBox(a)}},htmlBuilder:lf,mathmlBuilder:lg});var lx=e=>{var t="ordgroup"===e.type&&e.body.length?e.body[0]:e;
261return"atom"===t.type&&("bin"===t.family||"rel"===t.family)?"m"+t.family:"mord"};sR({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:lx(t[0]),body:sO(t[1]),isCharacterBox:a1.isCharacterBox(t[1])}}}),sR({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var n,{parser:i,funcName:a}=e,o=t[1],s=t[0];n="\\stackrel"!==a?lx(o):"mrel";var l={type:"op",mode:o.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:"\\stackrel"!==a,body:sO(o)},u={type:"supsub",mode:s.mode,base:l,sup:"\\underset"===a?null:s,sub:"\\underset"===a?s:null};return{type:"mclass",mode:i.mode,mclass:n,body:[u],isCharacterBox:a1.isCharacterBox(u)}},htmlBuilder:lf,mathmlBuilder:lg}),sR({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:lx(t[0]),body:sO(t[0])}},htmlBuilder(e,t){var n=sU(e.body,t,!0),i=sT.makeSpan([e.mclass],n,t);return i.style.textShadow="0.02em 0.01em 0.04px",i},mathmlBuilder(e,t){var n=s6(e.body,t),i=new s1.MathNode("mstyle",n);return i.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),i}});var lv={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},ly=()=>({type:"styling",body:[],mode:"math",style:"display"}),lb=e=>"textord"===e.type&&"@"===e.text,lw=(e,t)=>("mathord"===e.type||"atom"===e.type)&&e.text===t;sR({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"cdlabel",mode:n.mode,side:i.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),i=sT.wrapFragment(sK(e.label,n,t),t);return i.classes.push("cd-label-"+e.side),i.style.bottom=oE(.8-i.depth),i.height=0,i.depth=0,i},mathmlBuilder(e,t){var n=new s1.MathNode("mrow",[s8(e.label,t)]);return(n=new s1.MathNode("mpadded",[n])).setAttribute("width","0"),"left"===e.side&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),(n=new s1.MathNode("mstyle",[n])).setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}}),sR({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=sT.wrapFragment(sK(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder:(e,t)=>new s1.MathNode("mrow",[s8(e.fragment,t)])}),sR({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,i=ls(t[0],"ordgroup"),a=i.body,o="",s=0;s<a.length;s++)o+=ls(a[s],"textord").text;var l,u=parseInt(o);if(isNaN(u))throw new aX("\\@char has non-numeric argument "+o);if(u<0||u>=1114111)throw new aX("\\@char with invalid code point "+o);return u<=65535?l=String.fromCharCode(u):(u-=65536,l=String.fromCharCode((u>>10)+55296,(1023&u)+56320)),{type:"textord",mode:n.mode,text:l}}});var lk=(e,t)=>{var n=sU(e.body,t.withColor(e.color),!1);return sT.makeFragment(n)},l_=(e,t)=>{var n=s6(e.body,t.withColor(e.color)),i=new s1.MathNode("mstyle",n);return i.setAttribute("mathcolor",e.color),i};sR({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,i=ls(t[0],"color-token").color,a=t[1];return{type:"color",mode:n.mode,color:i,body:sO(a)}},htmlBuilder:lk,mathmlBuilder:l_}),sR({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:i}=e,a=ls(t[0],"color-token").color;n.gullet.macros.set("\\current@color",a);var o=n.parseExpression(!0,i);return{type:"color",mode:n.mode,color:a,body:o}},htmlBuilder:lk,mathmlBuilder:l_}),sR({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:i}=e,a="["===i.gullet.future().text?i.parseSizeGroup(!0):null,o=!i.settings.displayMode||!i.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:i.mode,newLine:o,size:a&&ls(a,"size").value}},htmlBuilder(e,t){var n=sT.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=oE(oT(e.size,t)))),n},mathmlBuilder(e,t){var n=new s1.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",oE(oT(e.size,t)))),n}});var lT={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef"
261:"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},lE=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new aX("Expected a control sequence",e);return t},lS=e=>{var t=e.gullet.popToken();return"="===t.text&&" "===(t=e.gullet.popToken()).text&&(t=e.gullet.popToken()),t},lA=(e,t,n,i)=>{var a=e.gullet.macros.get(n.text);null==a&&(n.noexpand=!0,a={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,a,i)};sR({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var i=t.fetch();if(lT[i.text])return("\\global"===n||"\\\\globallong"===n)&&(i.text=lT[i.text]),ls(t.parseFunction(),"internal");throw new aX("Invalid token after macro prefix",i)}}),sR({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=t.gullet.popToken(),a=i.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(a))throw new aX("Expected a control sequence",i);for(var o,s=0,l=[[]];"{"!==t.gullet.future().text;)if("#"===(i=t.gullet.popToken()).text){if("{"===t.gullet.future().text){o=t.gullet.future(),l[s].push("{");break}if(i=t.gullet.popToken(),!/^[1-9]$/.test(i.text))throw new aX('Invalid argument number "'+i.text+'"');if(parseInt(i.text)!==s+1)throw new aX('Argument number "'+i.text+'" out of order');s++,l.push([])}else{if("EOF"===i.text)throw new aX("Expected a macro definition");l[s].push(i.text)}var{tokens:u}=t.gullet.consumeArg();return o&&u.unshift(o),("\\edef"===n||"\\xdef"===n)&&(u=t.gullet.expandTokens(u)).reverse(),t.gullet.macros.set(a,{tokens:u,numArgs:s,delimiters:l},n===lT[n]),{type:"internal",mode:t.mode}}}),sR({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=lE(t.gullet.popToken());t.gullet.consumeSpaces();var a=lS(t);return lA(t,i,a,"\\\\globallet"===n),{type:"internal",mode:t.mode}}}),sR({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,i=lE(t.gullet.popToken()),a=t.gullet.popToken(),o=t.gullet.popToken();return lA(t,i,o,"\\\\globalfuture"===n),t.gullet.pushToken(o),t.gullet.pushToken(a),{type:"internal",mode:t.mode}}});var lC=function(e,t,n){var i=of(oU.math[e]&&oU.math[e].replace||e,t,n);if(!i)throw Error("Unsupported symbol "+e+" and font size "+t+".");return i},lN=function(e,t,n,i){var a=n.havingBaseStyle(t),o=sT.makeSpan(i.concat(a.sizingClasses(n)),[e],n),s=a.sizeMultiplier/n.sizeMultiplier;return o.height*=s,o.depth*=s,o.maxFontSize=a.sizeMultiplier,o},lI=function(e,t,n){var i=t.havingBaseStyle(n),a=(1-t.sizeMultiplier/i.sizeMultiplier)*t.fontMetrics().axisHeight;e.classes.push("delimcenter"),e.style.top=oE(a),e.height-=a,e.depth+=a},lM=function(e,t,n,i,a,o){var s=lN(sT.makeSymbol(e,"Main-Regular",a,i),t,i,o);return n&&lI(s,i,t),s},lP=function(e,t,n,i,a,o){var s=sT.makeSymbol(e,"Size"+t+"-Regular",a,i),l=lN(sT.makeSpan(["delimsizing","size"+t],[s],i),on.TEXT,i,o);return n&&lI(l,i,on.TEXT),l},lR=function(e,t,n){var i;return i="Size1-Regular"===t?"delim-size1":"delim-size4",{type:"elem",elem:sT.makeSpan(["delimsizinginner",i],[sT.makeSpan([],[sT.makeSymbol(e,t,n)])])}},lD=function(e,t,n){var i=od["Size4-Regular"][e.charCodeAt(0)]?od["Size4-Regular"][e.charCodeAt(0)][4]:od["Size1-Regular"][e.charCodeAt(0)][4],a=new oO([new oB("inner",os(e,Math.round(1e3*t)))],{width:oE(i),height:oE(t),style:"width:"+oE(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*t),preserveAspectRatio:"xMinYMin"}),o=sT.makeSvgSpan([],[a],n);return o.height=t,o.style.height=oE(t),o.style.width=oE(i),{type:"elem",elem:o}},lL={type:"kern",size:-.008},lO=["|","\\lvert","\\rvert","\\vert"],lB=["\\|","\\lVert","\\rVert","\\Vert"],lj=function(e,t,n,i,a,o){var s,l,u,c,d="",p=0;s=u=c=e,l=null;var h="Size1-Regular";"\\uparrow"===e?u=c="⏐":"\\Uparrow"===e?u=c="‖":"\\downarrow"===e?s=u="⏐":"\\Downarrow"===e?s=u="‖":"\\updownarrow"===e?(s="\\uparrow",u="⏐",c="\\downarrow"):"\\Updownarrow"===e?(s="\\Uparrow",u="‖",c="\\Downarrow"):lO.includes(e)?(u="∣",d="vert",p=333):lB.includes(e)?(u="∥",d="doublevert",p=556):"["===e||"\\lbrack"===e?(s="⎡",u="⎢",c="⎣",h="Size4-Regular",d="lbrack",p=667):"]"===e||"\\rbrack"===e?(s="⎤",u="⎥",c="⎦",h="Size4-Regular",d="rbrack",p=667):"\\lfloor"===e||"⌊"===e?(u=s="⎢",c="⎣",h="Size4-Regular",d="lfloor",p=667):"\\lceil"===e||"⌈"===e?(s="⎡",u=c="⎢",h="Size4-Regular",d="lceil",p=667):"\\rfloor"===e||"⌋"===e?(u=s="⎥",c="⎦",h="Size4-Regular",d="rfloor",p=667):"\\rceil"===e||"⌉"===e?(s="⎤",u=c="⎥",h="Size4-Regular",d="rceil",p=667):"("===e||"\\lparen"===e?(s="⎛",u="⎜",c="⎝",h="Size4-Regular",d="lparen",p=875):")"===e||"\\rparen"===e?(s="⎞",u="⎟",c="⎠",h="Size4-Regular",d="rparen",p=875):"\\{"===e||"\\lbrace"===e?(s="⎧",l="⎨",c="⎩",u="⎪",h="Size4-Regular"):"\\}"===e||"\\rbrace"===e?(s="⎫",l="⎬",c="⎭",u="⎪",h="Size4-Regular"):"\\lgroup"===e||"⟮"===e?(s="⎧",c="⎩",u="⎪",h="Size4-Regular"):"\\rgroup"===e||"⟯"===e?(s="⎫",c="⎭",u="⎪",h="Size4-Regular"):"\\lmou
261stache"===e||"⎰"===e?(s="⎧",c="⎭",u="⎪",h="Size4-Regular"):("\\rmoustache"===e||"⎱"===e)&&(s="⎫",c="⎩",u="⎪",h="Size4-Regular");var m=lC(s,h,a),f=m.height+m.depth,g=lC(u,h,a),x=g.height+g.depth,v=lC(c,h,a),b=v.height+v.depth,w=0,k=1;if(null!==l){var _=lC(l,h,a);w=_.height+_.depth,k=2}var T=f+b+w,E=Math.max(0,Math.ceil((t-T)/(k*x))),A=T+E*k*x,C=i.fontMetrics().axisHeight;n&&(C*=i.sizeMultiplier);var N=A/2-C,I=[];if(d.length>0){var M=Math.round(1e3*A),P=ou(d,Math.round(1e3*(A-f-b))),R=new oB(d,P),D=(p/1e3).toFixed(3)+"em",L=(M/1e3).toFixed(3)+"em",O=new oO([R],{width:D,height:L,viewBox:"0 0 "+p+" "+M}),B=sT.makeSvgSpan([],[O],i);B.height=M/1e3,B.style.width=D,B.style.height=L,I.push({type:"elem",elem:B})}else{if(I.push(lR(c,h,a)),I.push(lL),null===l)I.push(lD(u,A-f-b+.016,i));else{var j=(A-f-b-w)/2+.016;I.push(lD(u,j,i)),I.push(lL),I.push(lR(l,h,a)),I.push(lL),I.push(lD(u,j,i))}I.push(lL),I.push(lR(s,h,a))}var z=i.havingBaseStyle(on.TEXT),F=sT.makeVList({positionType:"bottom",positionData:N,children:I},z);return lN(sT.makeSpan(["delimsizing","mult"],[F],z),on.TEXT,i,o)},lz=function(e,t,n,i,a){var o=oo(e,i,n),s=new oO([new oB(e,o)],{width:"400em",height:oE(t),viewBox:"0 0 400000 "+n,preserveAspectRatio:"xMinYMin slice"});return sT.makeSvgSpan(["hide-tail"],[s],a)},lF=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],lH=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],lU=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],lG=[0,1.2,1.8,2.4,3],lq=[{type:"small",style:on.SCRIPTSCRIPT},{type:"small",style:on.SCRIPT},{type:"small",style:on.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],lV=[{type:"small",style:on.SCRIPTSCRIPT},{type:"small",style:on.SCRIPT},{type:"small",style:on.TEXT},{type:"stack"}],lW=[{type:"small",style:on.SCRIPTSCRIPT},{type:"small",style:on.SCRIPT},{type:"small",style:on.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],lY=function(e){if("small"===e.type)return"Main-Regular";if("large"===e.type)return"Size"+e.size+"-Regular";if("stack"===e.type)return"Size4-Regular";throw Error("Add support for delim type '"+e.type+"' here.")},lK=function(e,t,n,i){for(var a=Math.min(2,3-i.style.size),o=a;o<n.length&&"stack"!==n[o].type;o++){var s=lC(e,lY(n[o]),"math"),l=s.height+s.depth;if("small"===n[o].type&&(l*=i.havingBaseStyle(n[o].style).sizeMultiplier),l>t)return n[o]}return n[n.length-1]},lX=function(e,t,n,i,a,o){"<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),s=lU.includes(e)?lq:lF.includes(e)?lW:lV;var s,l=lK(e,t,s,i);return"small"===l.type?lM(e,l.style,n,i,a,o):"large"===l.type?lP(e,l.size,n,i,a,o):lj(e,t,n,i,a,o)},lQ={sqrtImage:function(e,t){var n,i,a=t.havingBaseSizing(),o=lK("\\surd",e*a.sizeMultiplier,lW,a),s=a.sizeMultiplier,l=Math.max(0,t.minRuleThickness-t.fontMetrics().sqrtRuleThickness),u=0,c=0,d=0;return"small"===o.type?(d=1e3+1e3*l+80,e<1?s=1:e<1.4&&(s=.7),u=(1+l+.08)/s,c=(1+l)/s,(n=lz("sqrtMain",u,d,l,t)).style.minWidth="0.853em",i=.833/s):"large"===o.type?(d=1080*lG[o.size],c=(lG[o.size]+l)/s,u=(lG[o.size]+l+.08)/s,(n=lz("sqrtSize"+o.size,u,d,l,t)).style.minWidth="1.02em",i=1/s):(u=e+l+.08,c=e+l,(n=lz("sqrtTall",u,d=Math.floor(1e3*e+l)+80,l,t)).style.minWidth="0.742em",i=1.056),n.height=c,n.style.height=oE(u),{span:n,advanceWidth:i,ruleWidth:(t.fontMetrics().sqrtRuleThickness+l)*s}},sizedDelim:function(e,t,n,i,a){if("<"===e||"\\lt"===e||"⟨"===e?e="\\langle":(">"===e||"\\gt"===e||"⟩"===e)&&(e="\\rangle"),lF.includes(e)||lU.includes(e))return lP(e,t,!1,n,i,a);if(lH.includes(e))return lj(e,lG[t],!1,n,i,a);throw new aX("Illegal delimiter: '"+e+"'")},sizeToMaxHeight:lG,customSizedDelim:lX,leftRightDelim:function(e,t,n,i,a,o){var s=i.fontMetrics().axisHeight*i.sizeMultiplier,l=5/i.fontMetrics().ptPerEm,u=Math.max(t-s,n+s);return lX(e,Math.max(u/500*901,2*u-l),!0,i,a,o)}},lZ={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},l$=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function lJ(e,t){var n=lu(e);
261if(n&&l$.includes(n.text))return n;throw n?new aX("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new aX("Invalid delimiter type '"+e.type+"'",e)}function l0(e){if(!e.body)throw Error("Bug: The leftright ParseNode wasn't fully parsed.")}sR({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=lJ(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:lZ[e.funcName].size,mclass:lZ[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>"."===e.delim?sT.makeSpan([e.mclass]):lQ.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];"."!==e.delim&&t.push(s2(e.delim,e.mode));var n=new s1.MathNode("mo",t);"mopen"===e.mclass||"mclose"===e.mclass?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var i=oE(lQ.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",i),n.setAttribute("maxsize",i),n}}),sR({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");
vendor: 7,816 bytes, line 261
261if(n&&"string"!=typeof n)throw new aX("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:lJ(t[0],e).text,color:n}}}),sR({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=lJ(t[0],e),i=e.parser;++i.leftrightDepth;var a=i.parseExpression(!1);--i.leftrightDepth,i.expect("\\right",!1);var o=ls(i.parseFunction(),"leftright-right");return{type:"leftright",mode:i.mode,body:a,left:n.text,right:o.delim,rightColor:o.color}},htmlBuilder:(e,t)=>{l0(e);for(var n,i,a=sU(e.body,t,!0,["mopen","mclose"]),o=0,s=0,l=!1,u=0;u<a.length;u++)a[u].isMiddle?l=!0:(o=Math.max(a[u].height,o),s=Math.max(a[u].depth,s));if(o*=t.sizeMultiplier,s*=t.sizeMultiplier,n="."===e.left?sY(t,["mopen"]):lQ.leftRightDelim(e.left,o,s,t,e.mode,["mopen"]),a.unshift(n),l)for(var c=1;c<a.length;c++){var d=a[c].isMiddle;d&&(a[c]=lQ.leftRightDelim(d.delim,o,s,d.options,e.mode,[]))}if("."===e.right)i=sY(t,["mclose"]);else{var p=e.rightColor?t.withColor(e.rightColor):t;i=lQ.leftRightDelim(e.right,o,s,p,e.mode,["mclose"])}return a.push(i),sT.makeSpan(["minner"],a,t)},mathmlBuilder:(e,t)=>{l0(e);var n=s6(e.body,t);if("."!==e.left){var i=new s1.MathNode("mo",[s2(e.left,e.mode)]);i.setAttribute("fence","true"),n.unshift(i)}if("."!==e.right){var a=new s1.MathNode("mo",[s2(e.right,e.mode)]);a.setAttribute("fence","true"),e.rightColor&&a.setAttribute("mathcolor",e.rightColor),n.push(a)}return s4(n)}}),sR({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=lJ(t[0],e);if(!e.parser.leftrightDepth)throw new aX("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if("."===e.delim)n=sY(t,[]);else{n=lQ.sizedDelim(e.delim,1,t,e.mode,[]);var i={delim:e.delim,options:t};n.isMiddle=i}return n},mathmlBuilder:(e,t)=>{var n="\\vert"===e.delim||"|"===e.delim?s2("|","text"):s2(e.delim,e.mode),i=new s1.MathNode("mo",[n]);return i.setAttribute("fence","true"),i.setAttribute("lspace","0.05em"),i.setAttribute("rspace","0.05em"),i}});var l1=(e,t)=>{var n,i,a=sT.wrapFragment(sK(e.body,t),t),o=e.label.slice(1),s=t.sizeMultiplier,l=0,u=a1.isCharacterBox(e.body);if("sout"===o)(i=sT.makeSpan(["stretchy","sout"])).height=t.fontMetrics().defaultRuleThickness/s,l=-.5*t.fontMetrics().xHeight;else if("phase"===o){var c=oT({number:.6,unit:"pt"},t),d=oT({number:.35,unit:"ex"},t);s/=t.havingBaseSizing().sizeMultiplier;var p=a.height+a.depth+c+d;a.style.paddingLeft=oE(p/2+c);var h=Math.floor(1e3*p*s),m=new oO([new oB("phase","M400000 "+h+" H0 L"+h/2+" 0 l65 45 L145 "+(h-80)+" H400000z")],{width:"400em",height:oE(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});(i=sT.makeSvgSpan(["hide-tail"],[m],t)).style.height=oE(p),l=a.depth+c+d}else{/cancel/.test(o)?u||a.classes.push("cancel-pad"):"angl"===o?a.classes.push("anglpad"):a.classes.push("boxpad");var f=0,g=0,x=0;/box/.test(o)?(x=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),g=f=t.fontMetrics().fboxsep+("colorbox"===o?0:x)):"angl"===o?(f=4*(x=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness)),g=Math.max(0,.25-a.depth)):g=f=u?.2:0,i=lo.encloseSpan(a,o,f,g,t),/fbox|boxed|fcolorbox/.test(o)?(i.style.borderStyle="solid",i.style.borderWidth=oE(x)):"angl"===o&&.049!==x&&(i.style.borderTopWidth=oE(x),i.style.borderRightWidth=oE(x)),l=a.depth+g,e.backgroundColor&&(i.style.backgroundColor=e.backgroundColor,e.borderColor&&(i.style.borderColor=e.borderColor))}if(e.backgroundColor)n=sT.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:l},{type:"elem",elem:a,shift:0}]},t);else{var v=/cancel|phase/.test(o)?["svg-align"]:[];n=sT.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:0},{type:"elem",elem:i,shift:l,wrapperClasses:v}]},t)}return/cancel/.test(o)&&(n.height=a.height,n.depth=a.depth),/cancel/.test(o)&&!u?sT.makeSpan(["mord","cancel-lap"],[n],t):sT.makeSpan(["mord"],[n],t)},l2=(e,t)=>{var n=0,i=new s1.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[s8(e.body,t)]);switch(e.label){case"\\cancel":i.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":i.setAttribute("notation","downdiagonalstrike");break;case"\\phase":i.setAttribute("notation","phasorangle");break;case"\\sout":i.setAttribute("notation","horizontalstrike");break;case"\\fbox":i.setAttribute("notation","box");break;case"\\angl":i.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,i.setAttribute("width","+"+2*n+"pt"),i.setAttribute("height","+"+2*n+"pt"),i.setAttribute("lspace",n+"pt"),i.setAttribute("voffset",n+"pt"),"\\fcolorbox"===e.label){var a=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);i.setAttribute("style","border: "+a+"em solid "+String(e.borderColor))}break;case"\\xcancel":i.setAttribute("notation","updiagonalstrike downdiagonalstrike")}return e.backgroundColor&&i.setAttribute("mathbackground",e.backgroundColor),i};sR({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:i,funcName:a}=e,o=ls(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:i.mode,label:a,backgroundColor:o,body:s}},htmlBuilder:l1,mathmlBuilder:l2}),sR({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:i,funcName:a}=e,o=ls(t[0],"color-token").color,s=ls(t[1],"color-token").color,l=t[2];return{type:"enclose",mode:i.mode,label:a,backgroundColor:s,borderColor:o,body:l}},htmlBuilder:l1,mathmlBuilder:l2}),sR({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}}),sR({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e,a=t[0];return{type:"enclose",mode:n.mode,label:i,body:a}},htmlBuilder:l1,mathmlBuilder:l2}),sR({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var l4={};function l5(e){for(var{type:t,names:n,props:i,handler:a,htmlBuilder:o,mathmlBuilder:s}=e,l={type:t,numArgs:i.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:a},u=0;u<n.length;++u)l4[n[u]]=l;o&&(sM[t]=o),s&&(sP[t]=s)}var l3={};function l6(e,t){l3[e]=t}function l7(e){var t=[];e.consumeSpaces();var n=e.fetch().text;for("\\relax"===n&&(e.consume(),e.consumeSpaces(),n=e.fetch().text);"\\hline"===n||"\\hdashline"===n;)e.consume(),t.push("\\hdashline"===n),e.consumeSpaces(),n=e.fetch().text;return t}var l8=e=>{if(!e.parser.settings.displayMode)throw new aX("{"+e.envName+"} can be used only in display mode.")};function l9(e){if(-1===e.indexOf("ed"))return -1===e.indexOf("*")}function ue(e,t,n){var{hskipBeforeAndAfter:i,addJot:a,cols:o,arraystretch:s,colSeparationType:l,autoTag:u,singleRow:c,emptySingleRow:d,maxNumCols:p,leqno:h}=t;if(e.gullet.beginGroup(),c||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var m=e.gullet.expandMacroAsText("\\arraystretch");if(null==m)s=1;else if(!(s=parseFloat(m))||s<0)throw new aX("Invalid \\arraystretch: "+m)}e.gullet.beginGroup();var f=[],g=[f],x=[],v=[],b=null!=u?[]:void 0;function w(){u&&e.gullet.macros.set("\\@eqnsw","1",!0)}function k(){b&&(e.gullet.macros.get("\\df@tag")?(b.push(e.subparse([new aK("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):b.push(!!u&&"1"===e.gullet.macros.get("\\@eqnsw")))}for(w(),v.push(l7(e));;){var _=e.parseExpression(!1,c?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),_={type:"ordgroup",mode:e.mode,body:_},n&&(_={type:"styling",mode:e.mode,style:n,body:[_]}
vendor: 6,500 bytes, line 261
261),f.push(_);var T=e.fetch().text;if("&"===T){if(p&&f.length===p){if(c||l)throw new aX("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if("\\end"===T){k(),1===f.length&&"styling"===_.type&&0===_.body[0].body.length&&(g.length>1||!d)&&g.pop(),v.length<g.length+1&&v.push([]);break}else if("\\\\"===T){e.consume();var E=void 0;" "!==e.gullet.future().text&&(E=e.parseSizeGroup(!0)),x.push(E?E.value:null),k(),v.push(l7(e)),f=[],g.push(f),w()}else throw new aX("Expected & or \\\\ or \\cr or \\end",e.nextToken)}return e.gullet.endGroup(),e.gullet.endGroup(),{type:"array",mode:e.mode,addJot:a,arraystretch:s,body:g,cols:o,rowGaps:x,hskipBeforeAndAfter:i,hLinesBeforeRow:v,colSeparationType:l,tags:b,leqno:h}}function ut(e){return"d"===e.slice(0,1)?"display":"text"}var un=function(e,t){var n,i,a=e.body.length,o=e.hLinesBeforeRow,s=0,l=Array(a),u=[],c=Math.max(t.fontMetrics().arrayRuleWidth,t.minRuleThickness),d=1/t.fontMetrics().ptPerEm,p=5*d;e.colSeparationType&&"small"===e.colSeparationType&&(p=t.havingStyle(on.SCRIPT).sizeMultiplier/t.sizeMultiplier*.2778);var h="CD"===e.colSeparationType?oT({number:3,unit:"ex"},t):12*d,m=3*d,f=e.arraystretch*h,g=.7*f,x=.3*f,v=0;function b(e){for(var t=0;t<e.length;++t)t>0&&(v+=.25),u.push({pos:v,isDashed:e[t]})}for(b(o[0]),n=0;n<e.body.length;++n){var w=e.body[n],k=g,_=x;s<w.length&&(s=w.length);var T=Array(w.length);for(i=0;i<w.length;++i){var E=sK(w[i],t);_<E.depth&&(_=E.depth),k<E.height&&(k=E.height),T[i]=E}var A=e.rowGaps[n],C=0;A&&(C=oT(A,t))>0&&(_<(C+=x)&&(_=C),C=0),e.addJot&&(_+=m),T.height=k,T.depth=_,v+=k,T.pos=v,v+=_+C,l[n]=T,b(o[n+1])}var N,I,M=v/2+t.fontMetrics().axisHeight,P=e.cols||[],R=[],D=[];if(e.tags&&e.tags.some(e=>e))for(n=0;n<a;++n){var L=l[n],O=L.pos-M,B=e.tags[n],j=void 0;(j=!0===B?sT.makeSpan(["eqn-num"],[],t):!1===B?sT.makeSpan([],[],t):sT.makeSpan([],sU(B,t,!0),t)).depth=L.depth,j.height=L.height,D.push({type:"elem",elem:j,shift:O})}for(i=0,I=0;i<s||I<P.length;++i,++I){for(var z=P[I]||{},F=!0;"separator"===z.type;){if(F||((N=sT.makeSpan(["arraycolsep"],[])).style.width=oE(t.fontMetrics().doubleRuleSep),R.push(N)),"|"===z.separator||":"===z.separator){var H="|"===z.separator?"solid":"dashed",U=sT.makeSpan(["vertical-separator"],[],t);U.style.height=oE(v),U.style.borderRightWidth=oE(c),U.style.borderRightStyle=H,U.style.margin="0 "+oE(-c/2);var G=v-M;G&&(U.style.verticalAlign=oE(-G)),R.push(U)}else throw new aX("Invalid separator type: "+z.separator);z=P[++I]||{},F=!1}if(!(i>=s)){var q=void 0;(i>0||e.hskipBeforeAndAfter)&&0!==(q=a1.deflt(z.pregap,p))&&((N=sT.makeSpan(["arraycolsep"],[])).style.width=oE(q),R.push(N));var V=[];for(n=0;n<a;++n){var W=l[n],Y=W[i];if(Y){var K=W.pos-M;Y.depth=W.depth,Y.height=W.height,V.push({type:"elem",elem:Y,shift:K})}}V=sT.makeVList({positionType:"individualShift",children:V},t),V=sT.makeSpan(["col-align-"+(z.align||"c")],[V]),R.push(V),(i<s-1||e.hskipBeforeAndAfter)&&0!==(q=a1.deflt(z.postgap,p))&&((N=sT.makeSpan(["arraycolsep"],[])).style.width=oE(q),R.push(N))}}if(l=sT.makeSpan(["mtable"],R),u.length>0){for(var X=sT.makeLineSpan("hline",t,c),Q=sT.makeLineSpan("hdashline",t,c),Z=[{type:"elem",elem:l,shift:0}];u.length>0;){var $=u.pop(),J=$.pos-M;$.isDashed?Z.push({type:"elem",elem:Q,shift:J}):Z.push({type:"elem",elem:X,shift:J})}l=sT.makeVList({positionType:"individualShift",children:Z},t)}if(0===D.length)return sT.makeSpan(["mord"],[l],t);var ee=sT.makeVList({positionType:"individualShift",children:D},t);return ee=sT.makeSpan(["tag"],[ee],t),sT.makeFragment([l,ee])},ur={c:"center ",l:"left ",r:"right "},ui=function(e,t){for(var n=[],i=new s1.MathNode("mtd",[],["mtr-glue"]),a=new s1.MathNode("mtd",[],["mml-eqn-num"]),o=0;o<e.body.length;o++){for(var s=e.body[o],l=[],u=0;u<s.length;u++)l.push(new s1.MathNode("mtd",[s8(s[u],t)]));e.tags&&e.tags[o]&&(l.unshift(i),l.push(i),e.leqno?l.unshift(a):l.push(a)),n.push(new s1.MathNode("mtr",l))}var c=new s1.MathNode("mtable",n),d=.5===e.arraystretch?.1:.16+e.arraystretch-1+(e.addJot?.09:0);c.setAttribute("rowspacing",oE(d));var p="",h="";if(e.cols&&e.cols.length>0){var m=e.cols,f="",g=!1,x=0,v=m.length;"separator"===m[0].type&&(p+="top ",x=1),"separator"===m[m.length-1].type&&(p+="bottom ",v-=1);for(var b=x;b<v;b++)"align"===m[b].type?(h+=ur[m[b].align],g&&(f+="none "),g=!0):"separator"===m[b].type&&g&&(f+="|"===m[b].separator?"solid ":"dashed ",g=!1);c.setAttribute("columnalign",h.trim()),/[sd]/.test(f)&&c.setAttribute("columnlines",f.trim())}if("align"===e.colSeparationType){for(var w=e.cols||[],k="",_=1;_<w.length;_++)k+=_%2?"0em ":"1em ";c.setAttribute("columnspacing",k.trim())}else"alignat"===e.colSeparationType||"gather"===e.colSeparationType?c.setAttribute("columnspacing","0em"):"small"===e.colSeparationType?c.setAttribute("columnspacing","0.2778em"):"CD"===e.colSeparationType?c.setAttribute("columnspacing","0.5em"):c.setAttribute("columnspacing","1em");var T="",E=e.hLinesBeforeRow;p+=(E[0].length>0?"left ":"")+(E[E.length-1].length>0?"right ":"");for(var A=1;A<E.length-1;A++)T+=0===E[A].length?"none ":E[A][0]?"dashed ":"solid ";return/[sd]/.test(T)&&c.setAttribute("rowlines",T.trim()),""!==p&&(c=new s1.MathNode("menclose",[c])).setAttribute("notation",p.trim()),e.arraystretch&&e.arraystretch<1&&(c=new s1.MathNode("mstyle",[c])).setAttribute("scriptlevel","1"),c},ua=function(e,t){-1===e.envName.indexOf("ed")&&l8(e);var n,i=[],a=e.envName.indexOf("at")>-1?"alignat":"align",o="split"===e.envName,s=ue(e.parser,{cols:i,addJot:!0,autoTag:o?void 0:l9(e.envName),emptySingleRow:!0,colSeparationType:a,maxNumCols:o?2:void 0,leqno:e.parser.settings.leqno},"display"),l=0,u={type:"ordgroup",mode:e.mode,body:[]};if(t[0]&&"ordgroup"===t[0].type){for(var c="",d=0;d<t[0].body.length;d++)c+=ls(t[0].body[d],"textord").text;l=2*(n=Number(c))}var p=!l;s.body.forEach(function(e){for(var t=1;t<e.length;t+=2){var i=ls(e[t],"styling");ls(i.body[0],"ordgroup").body.unshift(u)}if(p)l<e.length&&(l=e.length);else{var a=e.length/2;if(n<a)throw new aX("Too many math in a row: expected "+n+", but got "+a,e[0])}});for(var h=0;h<l;++h){var m="r",f=0;h%2==1?m="l":h>0&&p&&(f=1),i[h]={type:"align",align:m,pregap:f,postgap:0}}return s.colSeparationType=p?"align":"alignat",s};l5({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=(lu(t[0])?[t[0]]:ls(t[0],"ordgroup").body).map(function(e){var t=ll(e).text;if(-1!=="lcr".indexOf(t))return{type:"align",align:t};
261if("|"===t)return{type:"separator",separator:"|"};if(":"===t)return{type:"separator",separator:":"};throw new aX("Unknown column alignment: "+t,e)}),i={cols:n,hskipBeforeAndAfter:!0,maxNumCols:n.length};return ue(e.parser,i,ut(e.envName))},htmlBuilder:un,mathmlBuilder:ui}),l5({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",i={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if("*"===e.envName.charAt(e.envName.length-1)){var a=e.parser;if(a.consumeSpaces(),"["===a.fetch().text){if(a.consume(),a.consumeSpaces(),n=a.fetch().text,-1==="lcr".indexOf(n))throw new aX("Expected l or c or r",a.nextToken);a.consume(),a.consumeSpaces(),a.expect("]"),a.consume(),i.cols=[{type:"align",align:n}]}}var o=ue(e.parser,i,ut(e.envName)),s=Math.max(0,...o.body.map(e=>e.length));return o.cols=Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[o],left:t[0],right:t[1],rightColor:void 0}:o},htmlBuilder:un,mathmlBuilder:ui}),l5({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t=ue(e.parser,{arraystretch:.5},"script");return t.colSeparationType="small",t},htmlBuilder:un,mathmlBuilder:ui}),l5({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=(lu(t[0])?[t[0]]:ls(t[0],"ordgroup").body).map(function(e){var t=ll(e).text;if(-1!=="lc".indexOf(t))return{type:"align",align:t};throw new aX("Unknown column alignment: "+t,e)});if(n.length>1)throw new aX("{subarray} can contain only one column");var i={cols:n,hskipBeforeAndAfter:!1,arraystretch:.5};if((i=ue(e.parser,i,"script")).body.length>0&&i.body[0].length>1)throw new aX("{subarray} can contain only one column");return i},htmlBuilder:un,mathmlBuilder:ui}),l5({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t=ue(e.parser,{arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},ut(e.envName));return{type:"leftright",mode:e.mode,body:[t],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:un,mathmlBuilder:ui}),l5({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:ua,htmlBuilder:un,mathmlBuilder:ui}),l5({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){["gather","gather*"].includes(e.envName)&&l8(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:l9(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return ue(e.parser,t,"display")},htmlBuilder:un,mathmlBuilder:ui}),l5({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:ua,htmlBuilder:un,mathmlBuilder:ui}),l5({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){l8(e);var t={autoTag:l9(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return ue(e.parser,t,"display")},htmlBuilder:un,mathmlBuilder:ui}),l5({type:"array",names:["CD"],props:{numArgs:0},handler:e=>(l8(e),function(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if("&"===n||"\\\\"===n)e.consume();else if("\\end"===n){0===t[t.length-1].length&&t.pop();break}else throw new aX("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var i=[],a=[i],o=0;o<t.length;o++){for(var s=t[o],l=ly(),u=0;u<s.length;u++)if(lb(s[u])){i.push(l);var c=ll(s[u+=1]).text,d=[,,];if(d[0]={type:"ordgroup",mode:"math",body:[]},d[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(c)>-1)){if("<>AV".indexOf(c)>-1)for(var p=0;p<2;p++){for(var h=!0,m=u+1;m<s.length;m++){if(lw(s[m],c)){h=!1,u=m;break}if(lb(s[m]))throw new aX("Missing a "+c+" character to complete a CD arrow.",s[m]);d[p].body.push(s[m])}if(h)throw new aX("Missing a "+c+" character to complete a CD arrow.",s[u])}else throw new aX('Expected one of "<>AV=|." after @',s[u])}var f={type:"styling",body:[function(e,t,n){var i=lv[e];switch(i){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(i,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":var a=n.callFunction("\\\\cdleft",[t[0]],[]),o=n.callFunction("\\Big",[{type:"atom",text:i,mode:"math",family:"rel"}],[]),s=n.callFunction("\\\\cdright",[t[1]],[]);return n.callFunction("\\\\cdparent",[{type:"ordgroup",mode:"math",body:[a,o,s]}],[]);case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);
vendor: 11,184 bytes, line 261
261case"\\Vert":return n.callFunction("\\Big",[{type:"textord",text:"\\Vert",mode:"math"}],[]);default:return{type:"textord",text:" ",mode:"math"}}}(c,d,e)],mode:"math",style:"display"};i.push(f),l=ly()}else l.body.push(s[u]);o%2==0?i.push(l):i.shift(),i=[],a.push(i)}e.gullet.endGroup(),e.gullet.endGroup();var g=Array(a[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:a,arraystretch:1,addJot:!0,rowGaps:[null],cols:g,colSeparationType:"CD",hLinesBeforeRow:Array(a.length+1).fill([])}}(e.parser)),htmlBuilder:un,mathmlBuilder:ui}),l6("\\nonumber","\\gdef\\@eqnsw{0}"),l6("\\notag","\\nonumber"),sR({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new aX(e.funcName+" valid only within array environment")}}),sR({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:i}=e,a=t[0];if("ordgroup"!==a.type)throw new aX("Invalid environment name",a);for(var o="",s=0;s<a.body.length;++s)o+=ls(a.body[s],"textord").text;if("\\begin"===i){if(!l4.hasOwnProperty(o))throw new aX("No such environment: "+o,a);var l=l4[o],{args:u,optArgs:c}=n.parseArguments("\\begin{"+o+"}",l),d={mode:n.mode,envName:o,parser:n},p=l.handler(d,u,c);n.expect("\\end",!1);var h=n.nextToken,m=ls(n.parseFunction(),"environment");if(m.name!==o)throw new aX("Mismatch: \\begin{"+o+"} matched by \\end{"+m.name+"}",h);return p}return{type:"environment",mode:n.mode,name:o,nameGroup:a}}});var uo=(e,t)=>{var n=e.font,i=t.withFont(n);return sK(e.body,i)},us=(e,t)=>{var n=e.font,i=t.withFont(n);return s8(e.body,i)},ul={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};sR({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=sL(t[0]),o=i;return o in ul&&(o=ul[o]),{type:"font",mode:n.mode,font:o.slice(1),body:a}},htmlBuilder:uo,mathmlBuilder:us}),sR({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,i=t[0],a=a1.isCharacterBox(i);return{type:"mclass",mode:n.mode,mclass:lx(i),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:i}],isCharacterBox:a}}}),sR({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,breakOnTokenText:a}=e,{mode:o}=n,s=n.parseExpression(!0,a);return{type:"font",mode:o,font:"math"+i.slice(1),body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:uo,mathmlBuilder:us});var uu=(e,t)=>{var n=t;return"display"===e?n=n.id>=on.SCRIPT.id?n.text():on.DISPLAY:"text"===e&&n.size===on.DISPLAY.size?n=on.TEXT:"script"===e?n=on.SCRIPT:"scriptscript"===e&&(n=on.SCRIPTSCRIPT),n},uc=(e,t)=>{var n,i,a,o,s,l,u,c,d=uu(e.size,t.style),p=d.fracNum(),h=d.fracDen();c=t.havingStyle(p);var m=sK(e.numer,c,t);if(e.continued){var f=8.5/t.fontMetrics().ptPerEm,g=3.5/t.fontMetrics().ptPerEm;m.height=m.height<f?f:m.height,m.depth=m.depth<g?g:m.depth}c=t.havingStyle(h);var x,v,b,w=sK(e.denom,c,t);if(e.hasBarLine?(e.barSize?(v=oT(e.barSize,t),x=sT.makeLineSpan("frac-line",t,v)):x=sT.makeLineSpan("frac-line",t),v=x.height,b=x.height):(x=null,v=0,b=t.fontMetrics().defaultRuleThickness),d.size===on.DISPLAY.size||"display"===e.size?(n=t.fontMetrics().num1,i=v>0?3*b:7*b,a=t.fontMetrics().denom1):(v>0?(n=t.fontMetrics().num2,i=b):(n=t.fontMetrics().num3,i=3*b),a=t.fontMetrics().denom2),x){var k=t.fontMetrics().axisHeight;n-m.depth-(k+.5*v)<i&&(n+=i-(n-m.depth-(k+.5*v))),k-.5*v-(w.height-a)<i&&(a+=i-(k-.5*v-(w.height-a)));var _=-(k-.5*v);o=sT.makeVList({positionType:"individualShift",children:[{type:"elem",elem:w,shift:a},{type:"elem",elem:x,shift:_},{type:"elem",elem:m,shift:-n}]},t)}else{var T=n-m.depth-(w.height-a);T<i&&(n+=.5*(i-T),a+=.5*(i-T)),o=sT.makeVList({positionType:"individualShift",children:[{type:"elem",elem:w,shift:a},{type:"elem",elem:m,shift:-n}]},t)}return c=t.havingStyle(d),o.height*=c.sizeMultiplier/t.sizeMultiplier,o.depth*=c.sizeMultiplier/t.sizeMultiplier,s=d.size===on.DISPLAY.size?t.fontMetrics().delim1:d.size===on.SCRIPTSCRIPT.size?t.havingStyle(on.SCRIPT).fontMetrics().delim2:t.fontMetrics().delim2,l=null==e.leftDelim?sY(t,["mopen"]):lQ.customSizedDelim(e.leftDelim,s,!0,t.havingStyle(d),e.mode,["mopen"]),u=e.continued?sT.makeSpan([]):null==e.rightDelim?sY(t,["mclose"]):lQ.customSizedDelim(e.rightDelim,s,!0,t.havingStyle(d),e.mode,["mclose"]),sT.makeSpan(["mord"].concat(c.sizingClasses(t)),[l,sT.makeSpan(["mfrac"],[o]),u],t)},ud=(e,t)=>{var n=new s1.MathNode("mfrac",[s8(e.numer,t),s8(e.denom,t)]);if(e.hasBarLine){if(e.barSize){var i=oT(e.barSize,t);n.setAttribute("linethickness",oE(i))}}else n.setAttribute("linethickness","0px");var a=uu(e.size,t.style);if(a.size!==t.style.size){n=new s1.MathNode("mstyle",[n]);var o=a.size===on.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",o),n.setAttribute("scriptlevel","0")}if(null!=e.leftDelim||null!=e.rightDelim){var s=[];if(null!=e.leftDelim){var l=new s1.MathNode("mo",[new s1.TextNode(e.leftDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}if(s.push(n),null!=e.rightDelim){var u=new s1.MathNode("mo",[new s1.TextNode(e.rightDelim.replace("\\",""))]);u.setAttribute("fence","true"),s.push(u)}return s4(s)}return n};sR({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var n,{parser:i,funcName:a}=e,o=t[0],s=t[1],l=null,u=null,c="auto";switch(a){case"\\dfrac":case"\\frac":case"\\tfrac":n=!0;break;case"\\\\atopfrac":n=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":n=!1,l="(",u=")";break;case"\\\\bracefrac":n=!1,l="\\{",u="\\}";break;case"\\\\brackfrac":n=!1,l="[",u="]";break;default:throw Error("Unrecognized genfrac command")}switch(a){case"\\dfrac":case"\\dbinom":c="display";break;case"\\tfrac":case"\\tbinom":c="text"}return{type:"genfrac",mode:i.mode,continued:!1,numer:o,denom:s,hasBarLine:n,leftDelim:l,rightDelim:u,size:c,barSize:null}},htmlBuilder:uc,mathmlBuilder:ud}),sR({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=t[0],o=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:a,denom:o,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),sR({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var t,{parser:n,funcName:i,token:a}=e;switch(i){case"\\over":t="\\frac";break;case"\\choose":t="\\binom";break;case"\\atop":t="\\\\atopfrac";break;case"\\brace":t="\\\\bracefrac";break;case"\\brack":t="\\\\brackfrac";break;default:throw Error("Unrecognized infix genfrac command")}return{type:"infix",mode:n.mode,replaceWith:t,token:a}}});var up=["display","text","script","scriptscript"],uh=function(e){var t=null;return e.length>0&&(t="."===(t=e)?null:t),t};sR({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var n,{parser:i}=e,a=t[4],o=t[5],s=sL(t[0]),l="atom"===s.type&&"open"===s.family?uh(s.text):null,u=sL(t[1]),c="atom"===u.type&&"close"===u.family?uh(u.text):null,d=ls(t[2],"size"),p=null;n=!!d.isBlank||(p=d.value).number>0;var h="auto",m=t[3];return"ordgroup"===m.type?m.body.length>0&&(h=up[Number(ls(m.body[0],"textord").text)]):h=up[Number((m=ls(m,"textord")).text)],{type:"genfrac",mode:i.mode,numer:a,denom:o,continued:!1,hasBarLine:n,barSize:p,leftDelim:l,rightDelim:c,size:h}},htmlBuilder:uc,mathmlBuilder:ud}),sR({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:i,token:a}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:ls(t[0],"size").value,token:a}}}),sR({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=t[0],o=a0(ls(t[1],"infix").size),s=t[2],l=o.number>0;return{type:"genfrac",mode:n.mode,numer:a,denom:s,continued:!1,hasBarLine:l,barSize:o,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:uc,mathmlBuilder:ud});var um=(e,t)=>{var n,i,a=t.style;"supsub"===e.type?(n=e.sup?sK(e.sup,t.havingStyle(a.sup()),t):sK(e.sub,t.havingStyle(a.sub()),t),i=ls(e.base,"horizBrace")):i=ls(e,"horizBrace");var o,s=sK(i.base,t.havingBaseStyle(on.DISPLAY)),l=lo.svgSpan(i,t);if(i.isOver?(o=sT.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:l}]},t)).children[0].children[0].children[1].classes.push("svg-align"):(o=sT.makeVList({positionType:"bottom",positionData:s.depth+.1+l.height,children:[{type:"elem",elem:l},{type:"kern",size:.1},{type:"elem",elem:s}]},t)).children[0].children[0].children[0].classes.push("svg-align"),n){var u=sT.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);o=i.isOver?sT.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:u},{type:"kern",size:.2},{type:"elem",elem:n}]},t):sT.makeVList({positionType:"bottom",positionData:u.depth+.2+n.height+n.depth,children:[{type:"elem",elem:n},{type:"kern",size:.2},{type:"elem",elem:u}]},t)}return sT.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)};sR({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:i}=e;return{type:"horizBrace",mode:n.mode,label:i,isOver:/^\\over/.test(i),base:t[0]}},htmlBuilder:um,mathmlBuilder:(e,t)=>{var n=lo.mathMLnode(e.label);return new s1.MathNode(e.isOver?"mover":"munder",[s8(e.base,t),n])}}),sR({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[1],a=ls(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:a})?{type:"href",mode:n.mode,href:a,body:sO(i)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=sU(e.body,t,!1);return sT.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=s7(e.body,t);return n instanceof s$||(n=new s$("mrow",[n])),n.setAttribute("href",e.href),n}}),sR({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=ls(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:i}))return n.formatUnsupportedCmd("\\url");for(var a=[],o=0;o<i.length;o++){var s=i[o];"~"===s&&(s="\\textasciitilde"),a.push({type:"textord",mode:"text",text:s})}var l={type:"text",mode:n.mode,font:"\\texttt",body:a};return{type:"href",mode:n.mode,href:i,body:sO(l)}}}),sR({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(e,t){var{parser:n}=e;return{type:"hbox",mode:n.mode,body:sO(t[0])}},htmlBuilder(e,t){var n=sU(e.body,t,!1);return sT.makeFragment(n)},mathmlBuilder:(e,t)=>new s1.MathNode("mrow",s6(e.body,t))}),sR({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i,token:a}
261=e,o=ls(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var l,u={};switch(i){case"\\htmlClass":u.class=o,l={command:"\\htmlClass",class:o};break;case"\\htmlId":u.id=o,l={command:"\\htmlId",id:o};break;case"\\htmlStyle":u.style=o,l={command:"\\htmlStyle",style:o};break;case"\\htmlData":for(var c=o.split(","),d=0;d<c.length;d++){var p=c[d],h=p.indexOf("=");if(h<0)throw new aX("\\htmlData key/value '"+p+"' missing equals sign");var m=p.slice(0,h),f=p.slice(h+1);u["data-"+m.trim()]=f}l={command:"\\htmlData",attributes:u};break;default:throw Error("Unrecognized html command")}return n.settings.isTrusted(l)?{type:"html",mode:n.mode,attributes:u,body:sO(s)}:n.formatUnsupportedCmd(i)},htmlBuilder:(e,t)=>{var n=sU(e.body,t,!1),i=["enclosing"];e.attributes.class&&i.push(...e.attributes.class.trim().split(/\s+/));var a=sT.makeSpan(i,n,t);for(var o in e.attributes)"class"!==o&&e.attributes.hasOwnProperty(o)&&a.setAttribute(o,e.attributes[o]);return a},mathmlBuilder:(e,t)=>s7(e.body,t)}),sR({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:sO(t[0]),mathml:sO(t[1])}},htmlBuilder:(e,t)=>{var n=sU(e.html,t,!1);return sT.makeFragment(n)},mathmlBuilder:(e,t)=>s7(e.mathml,t)});var uf=function(e){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(e))return{number:+e,unit:"bp"};var t=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(e);if(!t)throw new aX("Invalid size: '"+e+"' in \\includegraphics");var n={number:+(t[1]+t[2]),unit:t[3]};if(!o_(n))throw new aX("Invalid unit: '"+n.unit+"' in \\includegraphics.");return n};sR({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:i}=e,a={number:0,unit:"em"},o={number:.9,unit:"em"},s={number:0,unit:"em"},l="";if(n[0])for(var u=ls(n[0],"raw").string,c=u.split(","),d=0;d<c.length;d++){var p=c[d].split("=");if(2===p.length){var h=p[1].trim();switch(p[0].trim()){case"alt":l=h;break;case"width":a=uf(h);break;case"height":o=uf(h);break;case"totalheight":s=uf(h);break;default:throw new aX("Invalid key: '"+p[0]+"' in \\includegraphics.")}}}var m=ls(t[0],"url").url;return""===l&&(l=(l=(l=m).replace(/^.*[\\/]/,"")).substring(0,l.lastIndexOf("."))),i.settings.isTrusted({command:"\\includegraphics",url:m})?{type:"includegraphics",mode:i.mode,alt:l,width:a,height:o,totalheight:s,src:m}:i.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(e,t)=>{var n=oT(e.height,t),i=0;e.totalheight.number>0&&(i=oT(e.totalheight,t)-n);var a=0;e.width.number>0&&(a=oT(e.width,t));var o={height:oE(n+i)};a>0&&(o.width=oE(a)),i>0&&(o.verticalAlign=oE(-i));var s=new oR(e.src,e.alt,o);return s.height=n,s.depth=i,s},mathmlBuilder:(e,t)=>{var n=new s1.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var i=oT(e.height,t),a=0;if(e.totalheight.number>0&&(a=oT(e.totalheight,t)-i,n.setAttribute("valign",oE(-a))),n.setAttribute("height",oE(i+a)),e.width.number>0){var o=oT(e.width,t);n.setAttribute("width",oE(o))}return n.setAttribute("src",e.src),n}}),sR({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,a=ls(t[0],"size");if(n.settings.strict){var o="m"===i[1],s="mu"===a.value.unit;o?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" supports only mu units, not "+a.value.unit+" units"),"math"!==n.mode&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+i+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:a.value}},htmlBuilder:(e,t)=>sT.makeGlue(e.dimension,t),mathmlBuilder(e,t){var n=oT(e.dimension,t);return new s1.SpaceNode(n)}}),sR({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=t[0];return{type:"lap",mode:n.mode,alignment:i.slice(5),body:a}},htmlBuilder:(e,t)=>{"clap"===e.alignment?(n=sT.makeSpan([],[sK(e.body,t)]),n=sT.makeSpan(["inner"],[n],t)):n=sT.makeSpan(["inner"],[sK(e.body,t)]);var n,i=sT.makeSpan(["fix"],[]),a=sT.makeSpan([e.alignment],[n,i],t),o=sT.makeSpan(["strut"]);return o.style.height=oE(a.height+a.depth),a.depth&&(o.style.verticalAlign=oE(-a.depth)),a.children.unshift(o),a=sT.makeSpan(["thinbox"],[a],t),sT.makeSpan(["mord","vbox"],[a],t)},mathmlBuilder:(e,t)=>{var n=new s1.MathNode("mpadded",[s8(e.body,t)]);
vendor: 13,633 bytes, line 261
261if("rlap"!==e.alignment){var i="llap"===e.alignment?"-1":"-0.5";n.setAttribute("lspace",i+"width")}return n.setAttribute("width","0px"),n}}),sR({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:i}=e,a=i.mode;i.switchMode("math");var o="\\("===n?"\\)":"$",s=i.parseExpression(!1,o);return i.expect(o),i.switchMode(a),{type:"styling",mode:i.mode,style:"text",body:s}}}),sR({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new aX("Mismatched "+e.funcName)}});var ug=(e,t)=>{switch(t.style.size){case on.DISPLAY.size:return e.display;case on.TEXT.size:return e.text;case on.SCRIPT.size:return e.script;case on.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};sR({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:sO(t[0]),text:sO(t[1]),script:sO(t[2]),scriptscript:sO(t[3])}},htmlBuilder:(e,t)=>{var n=sU(ug(e,t),t,!1);return sT.makeFragment(n)},mathmlBuilder:(e,t)=>s7(ug(e,t),t)});var ux=(e,t,n,i,a,o,s)=>{e=sT.makeSpan([],[e]);var l,u,c,d=n&&a1.isCharacterBox(n);if(t){var p=sK(t,i.havingStyle(a.sup()),i);c={elem:p,kern:Math.max(i.fontMetrics().bigOpSpacing1,i.fontMetrics().bigOpSpacing3-p.depth)}}if(n){var h=sK(n,i.havingStyle(a.sub()),i);u={elem:h,kern:Math.max(i.fontMetrics().bigOpSpacing2,i.fontMetrics().bigOpSpacing4-h.height)}}if(c&&u){var m=i.fontMetrics().bigOpSpacing5+u.elem.height+u.elem.depth+u.kern+e.depth+s;l=sT.makeVList({positionType:"bottom",positionData:m,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:oE(-o)},{type:"kern",size:u.kern},{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:oE(o)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}else if(u){var f=e.height-s;l=sT.makeVList({positionType:"top",positionData:f,children:[{type:"kern",size:i.fontMetrics().bigOpSpacing5},{type:"elem",elem:u.elem,marginLeft:oE(-o)},{type:"kern",size:u.kern},{type:"elem",elem:e}]},i)}else{if(!c)return e;var g=e.depth+s;l=sT.makeVList({positionType:"bottom",positionData:g,children:[{type:"elem",elem:e},{type:"kern",size:c.kern},{type:"elem",elem:c.elem,marginLeft:oE(o)},{type:"kern",size:i.fontMetrics().bigOpSpacing5}]},i)}var x=[l];if(u&&0!==o&&!d){var v=sT.makeSpan(["mspace"],[],i);v.style.marginRight=oE(o),x.unshift(v)}return sT.makeSpan(["mop","op-limits"],x,i)},uv=["\\smallint"],uy=(e,t)=>{var n,i,a,o,s=!1;"supsub"===e.type?(i=e.sup,a=e.sub,o=ls(e.base,"op"),s=!0):o=ls(e,"op");var l=t.style,u=!1;if(l.size===on.DISPLAY.size&&o.symbol&&!uv.includes(o.name)&&(u=!0),o.symbol){var c=u?"Size2-Regular":"Size1-Regular",d="";if(("\\oiint"===o.name||"\\oiiint"===o.name)&&(d=o.name.slice(1),o.name="oiint"===d?"\\iint":"\\iiint"),n=sT.makeSymbol(o.name,c,"math",t,["mop","op-symbol",u?"large-op":"small-op"]),d.length>0){var p=n.italic,h=sT.staticSvg(d+"Size"+(u?"2":"1"),t);n=sT.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:h,shift:u?.08:0}]},t),o.name="\\"+d,n.classes.unshift("mop"),n.italic=p}}else if(o.body){var m=sU(o.body,t,!0);1===m.length&&m[0]instanceof oL?(n=m[0]).classes[0]="mop":n=sT.makeSpan(["mop"],m,t)}else{for(var f=[],g=1;g<o.name.length;g++)f.push(sT.mathsym(o.name[g],o.mode,t));n=sT.makeSpan(["mop"],f,t)}var x=0,v=0;return(n instanceof oL||"\\oiint"===o.name||"\\oiiint"===o.name)&&!o.suppressBaseShift&&(x=(n.height-n.depth)/2-t.fontMetrics().axisHeight,v=n.italic),s?ux(n,i,a,t,l,v,x):(x&&(n.style.position="relative",n.style.top=oE(x)),n)},ub=(e,t)=>{var n;if(e.symbol)n=new s$("mo",[s2(e.name,e.mode)]),uv.includes(e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new s$("mo",s6(e.body,t));else{n=new s$("mi",[new sJ(e.name.slice(1))]);var i=new s$("mo",[s2("⁡","text")]);n=e.parentIsSupSub?new s$("mrow",[n,i]):sZ([n,i])}return n},uw={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};sR({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=i;return 1===a.length&&(a=uw[a]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:a}},htmlBuilder:uy,mathmlBuilder:ub}),sR({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:sO(i)}},htmlBuilder:uy,mathmlBuilder:ub});var uk={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};sR({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:uy,mathmlBuilder:ub}),sR({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:uy,mathmlBuilder:ub}),sR({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0,allowedInArgument:!0},handler(e){var{parser:t,funcName:n}=e,i=n;return 1===i.length&&(i=uk[i]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:uy,mathmlBuilder:ub});var u_=(e,t)=>{var n,i,a,o,s=!1;if("supsub"===e.type?(i=e.sup,a=e.sub,o=ls(e.base,"operatorname"),s=!0):o=ls(e,"operatorname"),o.body.length>0){for(var l=o.body.map(e=>{var t=e.text;return"string"==typeof t?{type:"textord",mode:e.mode,text:t}:e}),u=sU(l,t.withFont("mathrm"),!0),c=0;c<u.length;c++){var d=u[c];d instanceof oL&&(d.text=d.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}n=sT.makeSpan(["mop"],u,t)}else n=sT.makeSpan(["mop"],[],t);return s?ux(n,i,a,t,t.style,0,0):n};function uT(e,t,n){for(var i=sU(e,t,!1),a=t.sizeMultiplier/n.sizeMultiplier,o=0;o<i.length;o++){var s=i[o].classes.indexOf("sizing");s<0?Array.prototype.push.apply(i[o].classes,t.sizingClasses(n)):i[o].classes[s+1]==="reset-size"+t.size&&(i[o].classes[s+1]="reset-size"+n.size),i[o].height*=a,i[o].depth*=a}return sT.makeFragment(i)}sR({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:i}=e,a=t[0];return{type:"operatorname",mode:n.mode,body:sO(a),alwaysHandleSupSub:"\\operatornamewithlimits"===i,limits:!1,parentIsSupSub:!1}},htmlBuilder:u_,mathmlBuilder:(e,t)=>{for(var n=s6(e.body,t.withFont("mathrm")),i=!0,a=0;a<n.length;a++){var o=n[a];if(!(o instanceof s1.SpaceNode)){if(o instanceof s1.MathNode)switch(o.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":var s=o.children[0];1===o.children.length&&s instanceof s1.TextNode?s.text=s.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):i=!1;break;default:i=!1}else i=!1}}if(i){var l=n.map(e=>e.toText()).join("");n=[new s1.TextNode(l)]}var u=new s1.MathNode("mi",n);u.setAttribute("mathvariant","normal");var c=new s1.MathNode("mo",[s2("⁡","text")]);return e.parentIsSupSub?new s1.MathNode("mrow",[u,c]):s1.newDocumentFragment([u,c])}}),l6("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),sD({type:"ordgroup",htmlBuilder:(e,t)=>e.semisimple?sT.makeFragment(sU(e.body,t,!1)):sT.makeSpan(["mord"],sU(e.body,t,!0),t),mathmlBuilder:(e,t)=>s7(e.body,t,!0)}),sR({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,i=t[0];return{type:"overline",mode:n.mode,body:i}},htmlBuilder(e,t){var n=sK(e.body,t.havingCrampedStyle()),i=sT.makeLineSpan("overline-line",t),a=t.fontMetrics().defaultRuleThickness,o=sT.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*a},{type:"elem",elem:i},{type:"kern",size:a}]},t);return sT.makeSpan(["mord","overline"],[o],t)},mathmlBuilder(e,t){var n=new s1.MathNode("mo",[new s1.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new s1.MathNode("mover",[s8(e.body,t),n]);return i.setAttribute("accent","true"),i}}),sR({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"phantom",mode:n.mode,body:sO(i)}},htmlBuilder:(e,t)=>{var n=sU(e.body,t.withPhantom(),!1);return sT.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=s6(e.body,t);return new s1.MathNode("mphantom",n)}}),sR({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"hphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=sT.makeSpan([],[sK(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var i=0;i<n.children.length;i++)n.children[i].height=0,n.children[i].depth=0;return n=sT.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t),sT.makeSpan(["mord"],[n],t)},mathmlBuilder:(e,t)=>{var n=s6(sO(e.body),t),i=new s1.MathNode("mphantom",n),a=new s1.MathNode("mpadded",[i]);return a.setAttribute("height","0px"),a.setAttribute("depth","0px"),a}}),sR({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,i=t[0];return{type:"vphantom",mode:n.mode,body:i}},htmlBuilder:(e,t)=>{var n=sT.makeSpan(["inner"],[sK(e.body,t.withPhantom())]),i=sT.makeSpan(["fix"],[]);return sT.makeSpan(["mord","rlap"],[n,i],t)},mathmlBuilder:(e,t)=>{var n=s6(sO(e.body),t),i=new s1.MathNode("mphantom",n),a=new s1.MathNode("mpadded",[i]);return a.setAttribute("width","0px"),a}}),sR({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,i=ls(t[0],"size").value,a=t[1];return{type:"raisebox",mode:n.mode,dy:i,body:a}},htmlBuilder(e,t){var n=sK(e.body,t),i=oT(e.dy,t);return sT.makeVList({positionType:"shift",positionData:-i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new s1.MathNode("mpadded",[s8(e.body,t)]),i=e.dy.number+e.dy.unit;return n.setAttribute("voffset",i),n}}),sR({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0,allowedInArgument:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}}),sR({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(e,t,n){var{parser:i}=e,a=n[0],o=ls(t[0],"size"),s=ls(t[1],"size");return{type:"rule",mode:i.mode,shift:a&&ls(a,"size").value,width:o.value,height:s.value}},htmlBuilder(e,t){var n=sT.makeSpan(["mord","rule"],[],t),i=oT(e.width,t),a=oT(e.height,t),o=e.shift?oT(e.shift,t):0;return n.style.borderRightWidth=oE(i),n.style.borderTopWidth=oE(a),n.style.bottom=oE(o),n.width=i,n.height=a+o,n.depth=-o,n.maxFontSize=1.125*a*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=oT(e.width,t),i=oT(e.height,t),a=e.shift?oT(e.shift,t):0,o=t.color&&t.getColor()||"black",s=new s1.MathNode("mspace");s.setAttribute("mathbackground",o),s.setAttribute("width",oE(n)),s.setAttribute("height",oE(i));var l=new s1.MathNode("mpadded",[s]);return a>=0?l.setAttribute("height",oE(a)):(l.setAttribute("height",oE(a)),l.setAttribute("depth",oE(-a))),l.setAttribute("voffset",oE(a)),l}});var uE=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"];sR({type:"sizing",names:uE,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:i,parser:a}=e,o=a.parseExpression(!1,n);return{type:"sizing",mode:a.mode,size:uE.indexOf(i)+1,body:o}},htmlBuilder:(e,t)=>{var n=t.havingSize(e.size);return uT(e.body,n,t)},mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),i=s6(e.body,n),a=new s1.MathNode("mstyle",i);return a.setAttribute("mathsize",oE(n.sizeMultiplier)),a}}),sR({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:i}=e,a=!1,o=!1,s=n[0]&&ls(n[0],"ordgroup");if(s)for(var l="",u=0;u<s.body.length;++u)if("t"===(l=s.body[u].text))a=!0;else if("b"===l)o=!0;else{a=!1,o=!1;break}else a=!0,o=!0;var c=t[0];return{type:"smash",mode:i.mode,body:c,smashHeight:a,smashDepth:o}},htmlBuilder:(e,t)=>{var n=sT.makeSpan([],[sK(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var i=0;i<n.children.length;i++)n.children[i].height=0;if(e.smashDepth&&(n.depth=0,n.children))for(var a=0;a<n.children.length;a++)n.children[a].depth=0;var o=sT.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n}]},t);return sT.makeSpan(["mord"],[o],t)},mathmlBuilder:(e,t)=>{var n=new s1.MathNode("mpadded",[s8(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}}),sR({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:i}=e,a=n[0],o=t[0];return{type:"sqrt",mode:i.mode,body:o,index:a}},htmlBuilder(e,t){var n=sK(e.body,t.havingCrampedStyle());0===n.height&&(n.height=t.fontMetrics().xHeight),n=sT.wrapFragment(n,t);var i=t.fontMetrics().defaultRuleThickness,a=i;
261t.style.id<on.TEXT.id&&(a=t.fontMetrics().xHeight);var o=i+a/4,s=n.height+n.depth+o+i,{span:l,ruleWidth:u,advanceWidth:c}=lQ.sqrtImage(s,t),d=l.height-u;d>n.height+n.depth+o&&(o=(o+d-n.height-n.depth)/2);var p=l.height-n.height-o-u;n.style.paddingLeft=oE(c);var h=sT.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(!e.index)return sT.makeSpan(["mord","sqrt"],[h],t);var m=t.havingStyle(on.SCRIPTSCRIPT),f=sK(e.index,m,t),g=.6*(h.height-h.depth),x=sT.makeVList({positionType:"shift",positionData:-g,children:[{type:"elem",elem:f}]},t),v=sT.makeSpan(["root"],[x]);return sT.makeSpan(["mord","sqrt"],[v,h],t)},mathmlBuilder(e,t){var{body:n,index:i}=e;return i?new s1.MathNode("mroot",[s8(n,t),s8(i,t)]):new s1.MathNode("msqrt",[s8(n,t)])}});var uS={display:on.DISPLAY,text:on.TEXT,script:on.SCRIPT,scriptscript:on.SCRIPTSCRIPT};sR({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:i,parser:a}=e,o=a.parseExpression(!0,n),s=i.slice(1,i.length-5);return{type:"styling",mode:a.mode,style:s,body:o}},htmlBuilder(e,t){var n=uS[e.style],i=t.havingStyle(n).withFont("");return uT(e.body,i,t)},mathmlBuilder(e,t){var n=uS[e.style],i=t.havingStyle(n),a=s6(e.body,i),o=new s1.MathNode("mstyle",a),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]}[e.style];return o.setAttribute("scriptlevel",s[0]),o.setAttribute("displaystyle",s[1]),o}});var uA=function(e,t){var n=e.base;return n?"op"===n.type?n.limits&&(t.style.size===on.DISPLAY.size||n.alwaysHandleSupSub)?uy:null:"operatorname"===n.type?n.alwaysHandleSupSub&&(t.style.size===on.DISPLAY.size||n.limits)?u_:null:"accent"===n.type?a1.isCharacterBox(n.base)?lc:null:"horizBrace"===n.type&&!e.sub===n.isOver?um:null:null};sD({type:"supsub",htmlBuilder(e,t){var n,i,a=uA(e,t);if(a)return a(e,t);var o,s,{base:l,sup:u,sub:c}=e,d=sK(l,t),p=t.fontMetrics(),h=0,m=0,f=l&&a1.isCharacterBox(l);if(u){var g=t.havingStyle(t.style.sup());o=sK(u,g,t),f||(h=d.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(c){var x=t.havingStyle(t.style.sub());s=sK(c,x,t),f||(m=d.depth+x.fontMetrics().subDrop*x.sizeMultiplier/t.sizeMultiplier)}n=t.style===on.DISPLAY?p.sup1:t.style.cramped?p.sup3:p.sup2;var v=t.sizeMultiplier,b=oE(.5/p.ptPerEm/v),w=null;if(s){var k=e.base&&"op"===e.base.type&&e.base.name&&("\\oiint"===e.base.name||"\\oiiint"===e.base.name);(d instanceof oL||k)&&(w=oE(-d.italic))}if(o&&s){h=Math.max(h,n,o.depth+.25*p.xHeight),m=Math.max(m,p.sub2);var _=4*p.defaultRuleThickness;if(h-o.depth-(s.height-m)<_){m=_-(h-o.depth)+s.height;var T=.8*p.xHeight-(h-o.depth);T>0&&(h+=T,m-=T)}var E=[{type:"elem",elem:s,shift:m,marginRight:b,marginLeft:w},{type:"elem",elem:o,shift:-h,marginRight:b}];i=sT.makeVList({positionType:"individualShift",children:E},t)}else if(s){m=Math.max(m,p.sub1,s.height-.8*p.xHeight);var A=[{type:"elem",elem:s,marginLeft:w,marginRight:b}];i=sT.makeVList({positionType:"shift",positionData:m,children:A},t)}else if(o)h=Math.max(h,n,o.depth+.25*p.xHeight),i=sT.makeVList({positionType:"shift",positionData:-h,children:[{type:"elem",elem:o,marginRight:b}]},t);else throw Error("supsub must have either sup or sub.");var C=sW(d,"right")||"mord";return sT.makeSpan([C],[d,sT.makeSpan(["msupsub"],[i])],t)},mathmlBuilder(e,t){var n,i,a=!1;e.base&&"horizBrace"===e.base.type&&!!e.sup===e.base.isOver&&(a=!0,i=e.base.isOver),e.base&&("op"===e.base.type||"operatorname"===e.base.type)&&(e.base.parentIsSupSub=!0);var o=[s8(e.base,t)];if(e.sub&&o.push(s8(e.sub,t)),e.sup&&o.push(s8(e.sup,t)),a)n=i?"mover":"munder";else if(e.sub){if(e.sup){var s=e.base;n=s&&"op"===s.type&&s.limits&&t.style===on.DISPLAY||s&&"operatorname"===s.type&&s.alwaysHandleSupSub&&(t.style===on.DISPLAY||s.limits)?"munderover":"msubsup"}else{var l=e.base;n=l&&"op"===l.type&&l.limits&&(t.style===on.DISPLAY||l.alwaysHandleSupSub)||l&&"operatorname"===l.type&&l.alwaysHandleSupSub&&(l.limits||t.style===on.DISPLAY)?"munder":"msub"}}else{var u=e.base;n=u&&"op"===u.type&&u.limits&&(t.style===on.DISPLAY||u.alwaysHandleSupSub)||u&&"operatorname"===u.type&&u.alwaysHandleSupSub&&(u.limits||t.style===on.DISPLAY)?"mover":"msup"}return new s1.MathNode(n,o)}}),sD({type:"atom",htmlBuilder:(e,t)=>sT.mathsym(e.text,e.mode,t,["m"+e.family]),mathmlBuilder(e,t){var n=new s1.MathNode("mo",[s2(e.text,e.mode)]);if("bin"===e.family){var i=s5(e,t);"bold-italic"===i&&n.setAttribute("mathvariant",i)}else"punct"===e.family?n.setAttribute("separator","true"):("open"===e.family||"close"===e.family)&&n.setAttribute("stretchy","false");return n}});var uC={mi:"italic",mn:"normal",mtext:"normal"};sD({type:"mathord",htmlBuilder:(e,t)=>sT.makeOrd(e,t,"mathord"),mathmlBuilder(e,t){var n=new s1.MathNode("mi",[s2(e.text,e.mode,t)]),i=s5(e,t)||"italic";return i!==uC[n.type]&&n.setAttribute("mathvariant",i),n}}),sD({type:"textord",htmlBuilder:(e,t)=>sT.makeOrd(e,t,"textord"),mathmlBuilder(e,t){var n,i=s2(e.text,e.mode,t),a=s5(e,t)||"normal";return a!==uC[(n="text"===e.mode?new s1.MathNode("mtext",[i]):/[0-9]/.test(e.text)?new s1.MathNode("mn",[i]):"\\prime"===e.text?new s1.MathNode("mo",[i]):new s1.MathNode("mi",[i])).type]&&n.setAttribute("mathvariant",a),n}});
261var uN={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},uI={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};sD({type:"spacing",htmlBuilder(e,t){if(uI.hasOwnProperty(e.text)){var n=uI[e.text].className||"";if("text"!==e.mode)return sT.makeSpan(["mspace",n],[sT.mathsym(e.text,e.mode,t)],t);var i=sT.makeOrd(e,t,"textord");return i.classes.push(n),i}if(uN.hasOwnProperty(e.text))return sT.makeSpan(["mspace",uN[e.text]],[],t);throw new aX('Unknown type of space "'+e.text+'"')},mathmlBuilder(e,t){var n;if(uI.hasOwnProperty(e.text))n=new s1.MathNode("mtext",[new s1.TextNode("\xa0")]);else{if(uN.hasOwnProperty(e.text))return new s1.MathNode("mspace");throw new aX('Unknown type of space "'+e.text+'"')}return n}});var uM=()=>{var e=new s1.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};sD({type:"tag",mathmlBuilder(e,t){var n=new s1.MathNode("mtable",[new s1.MathNode("mtr",[uM(),new s1.MathNode("mtd",[s7(e.body,t)]),uM(),new s1.MathNode("mtd",[s7(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var uP={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},uR={"\\textbf":"textbf","\\textmd":"textmd"},uD={"\\textit":"textit","\\textup":"textup"},uL=(e,t)=>{var n=e.font;return n?uP[n]?t.withTextFontFamily(uP[n]):uR[n]?t.withTextFontWeight(uR[n]):"\\emph"===n?"textit"===t.fontShape?t.withTextFontShape("textup"):t.withTextFontShape("textit"):t.withTextFontShape(uD[n]):t};sR({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:i}=e,a=t[0];return{type:"text",mode:n.mode,body:sO(a),font:i}},htmlBuilder(e,t){var n=uL(e,t),i=sU(e.body,n,!0);return sT.makeSpan(["mord","text"],i,n)},mathmlBuilder(e,t){var n=uL(e,t);return s7(e.body,n)}}),sR({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=sK(e.body,t),i=sT.makeLineSpan("underline-line",t),a=t.fontMetrics().defaultRuleThickness,o=sT.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:a},{type:"elem",elem:i},{type:"kern",size:3*a},{type:"elem",elem:n}]},t);return sT.makeSpan(["mord","underline"],[o],t)},mathmlBuilder(e,t){var n=new s1.MathNode("mo",[new s1.TextNode("‾")]);n.setAttribute("stretchy","true");var i=new s1.MathNode("munder",[s8(e.body,t),n]);return i.setAttribute("accentunder","true"),i}}),sR({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=sK(e.body,t),i=t.fontMetrics().axisHeight,a=.5*(n.height-i-(n.depth+i));return sT.makeVList({positionType:"shift",positionData:a,children:[{type:"elem",elem:n}]},t)},mathmlBuilder:(e,t)=>new s1.MathNode("mpadded",[s8(e.body,t)],["vcenter"])}),sR({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new aX("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=uO(e),i=[],a=t.havingStyle(t.style.text()),o=0;o<n.length;o++){var s=n[o];"~"===s&&(s="\\textasciitilde"),i.push(sT.makeSymbol(s,"Typewriter-Regular",e.mode,a,["mord","texttt"]))}return sT.makeSpan(["mord","text"].concat(a.sizingClasses(t)),sT.tryCombineChars(i),a)},mathmlBuilder(e,t){var n=new s1.TextNode(uO(e)),i=new s1.MathNode("mtext",[n]);return i.setAttribute("mathvariant","monospace"),i}});var uO=e=>e.body.replace(/ /g,e.star?"␣":"\xa0"),uB=`[ \r
262	]`,uj=`\\\\(
263|[ \r	]+
264?)[ \r	]*`,uz="[̀-ͯ]",uF=RegExp(uz+"+$"),uH="("+uB+"+)|"+uj+"|([!-\\[\\]-‧‪-퟿豈-￿]"+uz+"*|[\uD800-\uDBFF][\uDC00-\uDFFF]"+uz+"*|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5|(\\\\[a-zA-Z@]+)"+uB+"*|\\\\[^\uD800-\uDFFF])";class uU{constructor(e,t){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=e,this.settings=t,this.tokenRegex=RegExp(uH,"g"),this.catcodes={"%":14,"~":13}}
264setCatcode(e,t){this.catcodes[e]=t}lex(){var e=this.input,t=this.tokenRegex.lastIndex;if(t===e.length)return new aK("EOF",new aY(this,t,t));var n=this.tokenRegex.exec(e);if(null===n||n.index!==t)throw new aX("Unexpected character: '"+e[t]+"'",new aK(e[t],new aY(this,t,t+1)));var i=n[6]||n[3]||(n[2]?"\\ ":" ");if(14===this.catcodes[i]){var a=e.indexOf(`
265`,this.tokenRegex.lastIndex);return -1===a?(this.tokenRegex.lastIndex=e.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new aK(i,new aY(this,t,this.tokenRegex.lastIndex))}}class uG{constructor(e,t){void 0===e&&(e={}),void 0===t&&(t={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=t,this.builtins=e,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(0===this.undefStack.length)throw new aX("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var e=this.undefStack.pop();for(var t in e)e.hasOwnProperty(t)&&(null==e[t]?delete this.current[t]:this.current[t]=e[t])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(e){return this.current.hasOwnProperty(e)||this.builtins.hasOwnProperty(e)}get(e){return this.current.hasOwnProperty(e)?this.current[e]:this.builtins[e]}set(e,t,n){if(void 0===n&&(n=!1),n){for(var i=0;i<this.undefStack.length;i++)delete this.undefStack[i][e];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][e]=t)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(e)&&(a[e]=this.current[e])}null==t?delete this.current[e]:this.current[e]=t}}l6("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}}),l6("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}}),l6("\\@firstoftwo",function(e){return{tokens:e.consumeArgs(2)[0],numArgs:0}}),l6("\\@secondoftwo",function(e){return{tokens:e.consumeArgs(2)[1],numArgs:0}}),l6("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return 1===t[0].length&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}}),l6("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),l6("\\TextOrMath",function(e){var t=e.consumeArgs(2);return"text"===e.mode?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var uq={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};l6("\\char",function(e){var t,n,i=e.popToken(),a="";if("'"===i.text)n=8,i=e.popToken();else if('"'===i.text)n=16,i=e.popToken();else if("`"===i.text){if("\\"===(i=e.popToken()).text[0])a=i.text.charCodeAt(1);else{if("EOF"===i.text)throw new aX("\\char` missing argument");a=i.text.charCodeAt(0)}}else n=10;if(n){if(null==(a=uq[i.text])||a>=n)throw new aX("Invalid base-"+n+" digit "+i.text);for(;null!=(t=uq[e.future().text])&&t<n;)a*=n,a+=t,e.popToken()}return"\\@char{"+a+"}"});var uV=(e,t,n,i)=>{var a=e.consumeArg().tokens;if(1!==a.length)throw new aX("\\newcommand's first argument must be a macro name");var o=a[0].text,s=e.isDefined(o);if(s&&!t)throw new aX("\\newcommand{"+o+"} attempting to redefine "+o+"; use \\renewcommand");if(!s&&!n)throw new aX("\\renewcommand{"+o+"} when command "+o+" does not yet exist; use \\newcommand");var l=0;if(1===(a=e.consumeArg().tokens).length&&"["===a[0].text){for(var u="",c=e.expandNextToken();"]"!==c.text&&"EOF"!==c.text;)u+=c.text,c=e.expandNextToken();if(!u.match(/^\s*[0-9]+\s*$/))throw new aX("Invalid number of arguments: "+u);l=parseInt(u),a=e.consumeArg().tokens}return s&&i||e.macros.set(o,{tokens:a,numArgs:l}),""};l6("\\newcommand",e=>uV(e,!1,!0,!1)),l6("\\renewcommand",e=>uV(e,!0,!1,!1)),l6("\\providecommand",e=>uV(e,!0,!0,!0)),l6("\\message",e=>(console.log(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),"")),l6("\\errmessage",e=>(console.error(e.consumeArgs(1)[0].reverse().map(e=>e.text).join("")),"")),l6("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),sI[n],oU.math[n],oU.text[n]),""}),l6("\\bgroup","{"),l6("\\egroup","}
265"),l6("~","\\nobreakspace"),l6("\\lq","`"),l6("\\rq","'"),l6("\\aa","\\r a"),l6("\\AA","\\r A"),l6("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xa9}"),l6("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),l6("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xae}"),l6("ℬ","\\mathscr{B}"),l6("ℰ","\\mathscr{E}"),l6("ℱ","\\mathscr{F}"),l6("ℋ","\\mathscr{H}"),l6("ℐ","\\mathscr{I}"),l6("ℒ","\\mathscr{L}"),l6("ℳ","\\mathscr{M}"),l6("ℛ","\\mathscr{R}"),l6("ℭ","\\mathfrak{C}"),l6("ℌ","\\mathfrak{H}"),l6("ℨ","\\mathfrak{Z}"),l6("\\Bbbk","\\Bbb{k}"),l6("\xb7","\\cdotp"),l6("\\llap","\\mathllap{\\textrm{#1}}"),l6("\\rlap","\\mathrlap{\\textrm{#1}}"),l6("\\clap","\\mathclap{\\textrm{#1}}"),l6("\\mathstrut","\\vphantom{(}"),l6("\\underbar","\\underline{\\text{#1}}"),l6("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),l6("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}"),l6("\\ne","\\neq"),l6("≠","\\neq"),l6("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}"),l6("∉","\\notin"),l6("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}"),l6("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}"),l6("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}"),l6("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}"),l6("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}"),l6("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}"),l6("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}"),l6("⟂","\\perp"),l6("‼","\\mathclose{!\\mkern-0.8mu!}"),l6("∌","\\notni"),l6("⌜","\\ulcorner"),l6("⌝","\\urcorner"),l6("⌞","\\llcorner"),l6("⌟","\\lrcorner"),l6("\xa9","\\copyright"),l6("\xae","\\textregistered"),l6("️","\\textregistered"),l6("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),l6("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),l6("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),l6("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),l6("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),l6("⋮","\\vdots"),l6("\\varGamma","\\mathit{\\Gamma}"),l6("\\varDelta","\\mathit{\\Delta}"),l6("\\varTheta","\\mathit{\\Theta}"),l6("\\varLambda","\\mathit{\\Lambda}"),l6("\\varXi","\\mathit{\\Xi}"),l6("\\varPi","\\mathit{\\Pi}"),l6("\\varSigma","\\mathit{\\Sigma}"),l6("\\varUpsilon","\\mathit{\\Upsilon}"),l6("\\varPhi","\\mathit{\\Phi}"),l6("\\varPsi","\\mathit{\\Psi}"),l6("\\varOmega","\\mathit{\\Omega}"),l6("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),l6("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),l6("\\boxed","\\fbox{$\\displaystyle{#1}$}"),l6("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),l6("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),l6("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),l6("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),l6("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var uW={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};l6("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in uW?t=uW[n]:("\\not"===n.slice(0,4)||n in oU.math&&["bin","rel"].includes(oU.math[n].group))&&(t="\\dotsb"),t});var uY={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};l6("\\dotso",function(e){return e.future().text in uY?"\\ldots\\,":"\\ldots"}),l6("\\dotsc",function(e){var t=e.future().text;return t in uY&&","!==t?"\\ldots\\,":"\\ldots"}),l6("\\cdots",function(e){return e.future().text in uY?"\\@cdots\\,":"\\@cdots"}),l6("\\dotsb","\\cdots"),l6("\\dotsm","\\cdots"),l6("\\dotsi","\\!\\cdots"),l6("\\dotsx","\\ldots\\,"),l6("\\DOTSI","\\relax"),l6("\\DOTSB","\\relax"),l6("\\DOTSX","\\relax"),l6("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),l6("\\,","\\tmspace+{3mu}{.1667em}"),l6("\\thinspace","\\,"),l6("\\>","\\mskip{4mu}"),l6("\\:","\\tmspace+{4mu}{.2222em}"),l6("\\medspace","\\:"),l6("\\;","\\tmspace+{5mu}{.2777em}"),l6("\\thickspace","\\;"),l6("\\!","\\tmspace-{3mu}{.1667em}"),l6("\\negthinspace","\\!"),l6("\\negmedspace","\\tmspace-{4mu}{.2222em}"),l6("\\negthickspace","\\tmspace-{5mu}{.277em}"),l6("\\enspace","\\kern.5em "),l6("\\enskip","\\hskip.5em\\relax"),l6("\\quad","\\hskip1em\\relax"),l6("\\qquad","\\hskip2em\\relax"),l6("\\tag","\\@ifstar\\tag@literal\\tag@paren"),l6("\\tag@paren","\\tag@literal{({#1})}"),l6("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new aX("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),l6("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),l6("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),l6("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),l6("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),l6("\\newline","\\\\\\relax"),l6("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var uK=oE(od["Main-Regular"][84][1]-.7*od["Main-Regular"][65][1]);l6("\\LaTeX","\\textrm{\\html@mathml{L\\kern-.36em\\raisebox{"+u
265K+"}{\\scriptstyle A}\\kern-.15em\\TeX}{LaTeX}}"),l6("\\KaTeX","\\textrm{\\html@mathml{K\\kern-.17em\\raisebox{"+uK+"}{\\scriptstyle A}\\kern-.15em\\TeX}{KaTeX}}"),l6("\\hspace","\\@ifstar\\@hspacer\\@hspace"),l6("\\@hspace","\\hskip #1\\relax"),l6("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),l6("\\ordinarycolon",":"),l6("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),l6("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),l6("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),l6("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),l6("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),l6("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),l6("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),l6("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),l6("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),l6("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),l6("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),l6("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),l6("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),l6("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),l6("∷","\\dblcolon"),l6("∹","\\eqcolon"),l6("≔","\\coloneqq"),l6("≕","\\eqqcolon"),l6("⩴","\\Coloneqq"),l6("\\ratio","\\vcentcolon"),l6("\\coloncolon","\\dblcolon"),l6("\\colonequals","\\coloneqq"),l6("\\coloncolonequals","\\Coloneqq"),l6("\\equalscolon","\\eqqcolon"),l6("\\equalscoloncolon","\\Eqqcolon"),l6("\\colonminus","\\coloneq"),l6("\\coloncolonminus","\\Coloneq"),l6("\\minuscolon","\\eqcolon"),l6("\\minuscoloncolon","\\Eqcolon"),l6("\\coloncolonapprox","\\Colonapprox"),l6("\\coloncolonsim","\\Colonsim"),l6("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),l6("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),l6("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),l6("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),l6("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}"),l6("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),l6("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),l6("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),l6("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),l6("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),l6("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),l6("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),l6("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),l6("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}"),l6("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}"),l6("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}"),l6("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}"),l6("\\nleqq","\\html@mathml{\\@nleqq}{≰}"),l6("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}"),l6("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}"),l6("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}"),l6("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}"),l6("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}"),l6("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}"),l6("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}"),l6("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}"),l6("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}"),l6("\\imath","\\html@mathml{\\@imath}{ı}"),l6("\\jmath","\\html@mathml{\\@jmath}{ȷ}"),l6("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}
265{\\mathopen{\\char`⟦}}"),l6("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}"),l6("⟦","\\llbracket"),l6("⟧","\\rrbracket"),l6("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}"),l6("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}"),l6("⦃","\\lBrace"),l6("⦄","\\rBrace"),l6("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}"),l6("⦵","\\minuso"),l6("\\darr","\\downarrow"),l6("\\dArr","\\Downarrow"),l6("\\Darr","\\Downarrow"),l6("\\lang","\\langle"),l6("\\rang","\\rangle"),l6("\\uarr","\\uparrow"),l6("\\uArr","\\Uparrow"),l6("\\Uarr","\\Uparrow"),l6("\\N","\\mathbb{N}"),l6("\\R","\\mathbb{R}"),l6("\\Z","\\mathbb{Z}"),l6("\\alef","\\aleph"),l6("\\alefsym","\\aleph"),l6("\\Alpha","\\mathrm{A}"),l6("\\Beta","\\mathrm{B}"),l6("\\bull","\\bullet"),l6("\\Chi","\\mathrm{X}"),l6("\\clubs","\\clubsuit"),l6("\\cnums","\\mathbb{C}"),l6("\\Complex","\\mathbb{C}"),l6("\\Dagger","\\ddagger"),l6("\\diamonds","\\diamondsuit"),l6("\\empty","\\emptyset"),l6("\\Epsilon","\\mathrm{E}"),l6("\\Eta","\\mathrm{H}"),l6("\\exist","\\exists"),l6("\\harr","\\leftrightarrow"),l6("\\hArr","\\Leftrightarrow"),l6("\\Harr","\\Leftrightarrow"),l6("\\hearts","\\heartsuit"),l6("\\image","\\Im"),l6("\\infin","\\infty"),l6("\\Iota","\\mathrm{I}"),l6("\\isin","\\in"),l6("\\Kappa","\\mathrm{K}"),l6("\\larr","\\leftarrow"),l6("\\lArr","\\Leftarrow"),l6("\\Larr","\\Leftarrow"),l6("\\lrarr","\\leftrightarrow"),l6("\\lrArr","\\Leftrightarrow"),l6("\\Lrarr","\\Leftrightarrow"),l6("\\Mu","\\mathrm{M}"),l6("\\natnums","\\mathbb{N}"),l6("\\Nu","\\mathrm{N}"),l6("\\Omicron","\\mathrm{O}"),l6("\\plusmn","\\pm"),l6("\\rarr","\\rightarrow"),l6("\\rArr","\\Rightarrow"),l6("\\Rarr","\\Rightarrow"),l6("\\real","\\Re"),l6("\\reals","\\mathbb{R}"),l6("\\Reals","\\mathbb{R}"),l6("\\Rho","\\mathrm{P}"),l6("\\sdot","\\cdot"),l6("\\sect","\\S"),l6("\\spades","\\spadesuit"),l6("\\sub","\\subset"),l6("\\sube","\\subseteq"),l6("\\supe","\\supseteq"),l6("\\Tau","\\mathrm{T}"),l6("\\thetasym","\\vartheta"),l6("\\weierp","\\wp"),l6("\\Zeta","\\mathrm{Z}"),l6("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),l6("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),l6("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),l6("\\bra","\\mathinner{\\langle{#1}|}"),l6("\\ket","\\mathinner{|{#1}\\rangle}"),l6("\\braket","\\mathinner{\\langle{#1}\\rangle}"),l6("\\Bra","\\left\\langle#1\\right|"),l6("\\Ket","\\left|#1\\right\\rangle");var uX=e=>t=>{var n=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,o=t.consumeArg().tokens,s=t.macros.get("|"),l=t.macros.get("\\|");t.macros.beginGroup();var u=t=>n=>{e&&(n.macros.set("|",s),a.length&&n.macros.set("\\|",l));var o=t;return!t&&a.length&&"|"===n.future().text&&(n.popToken(),o=!0),{tokens:o?a:i,numArgs:0}};t.macros.set("|",u(!1)),a.length&&t.macros.set("\\|",u(!0));var c=t.consumeArg().tokens,d=t.expandTokens([...o,...c,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};l6("\\bra@ket",uX(!1)),l6("\\bra@set",uX(!0)),l6("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),l6("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),l6("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),l6("\\angln","{\\angl n}"),l6("\\blue","\\textcolor{##6495ed}{#1}"),l6("\\orange","\\textcolor{##ffa500}{#1}"),l6("\\pink","\\textcolor{##ff00af}{#1}"),l6("\\red","\\textcolor{##df0030}{#1}"),l6("\\green","\\textcolor{##28ae7b}{#1}"),l6("\\gray","\\textcolor{gray}{#1}"),l6("\\purple","\\textcolor{##9d38bd}{#1}"),l6("\\blueA","\\textcolor{##ccfaff}{#1}"),l6("\\blueB","\\textcolor{##80f6ff}{#1}"),l6("\\blueC","\\textcolor{##63d9ea}{#1}"),l6("\\blueD","\\textcolor{##11accd}{#1}"),l6("\\blueE","\\textcolor{##0c7f99}{#1}"),l6("\\tealA","\\textcolor{##94fff5}{#1}"),l6("\\tealB","\\textcolor{##26edd5}{#1}"),l6("\\tealC","\\textcolor{##01d1c1}{#1}"),l6("\\tealD","\\textcolor{##01a995}{#1}"),l6("\\tealE","\\textcolor{##208170}{#1}"),l6("\\greenA","\\textcolor{##b6ffb0}{#1}
265"),l6("\\greenB","\\textcolor{##8af281}{#1}"),l6("\\greenC","\\textcolor{##74cf70}{#1}"),l6("\\greenD","\\textcolor{##1fab54}{#1}"),l6("\\greenE","\\textcolor{##0d923f}{#1}"),l6("\\goldA","\\textcolor{##ffd0a9}{#1}"),l6("\\goldB","\\textcolor{##ffbb71}{#1}"),l6("\\goldC","\\textcolor{##ff9c39}{#1}"),l6("\\goldD","\\textcolor{##e07d10}{#1}"),l6("\\goldE","\\textcolor{##a75a05}{#1}"),l6("\\redA","\\textcolor{##fca9a9}{#1}"),l6("\\redB","\\textcolor{##ff8482}{#1}"),l6("\\redC","\\textcolor{##f9685d}{#1}"),l6("\\redD","\\textcolor{##e84d39}{#1}"),l6("\\redE","\\textcolor{##bc2612}{#1}"),l6("\\maroonA","\\textcolor{##ffbde0}{#1}"),l6("\\maroonB","\\textcolor{##ff92c6}{#1}"),l6("\\maroonC","\\textcolor{##ed5fa6}{#1}"),l6("\\maroonD","\\textcolor{##ca337c}{#1}"),l6("\\maroonE","\\textcolor{##9e034e}{#1}"),l6("\\purpleA","\\textcolor{##ddd7ff}{#1}"),l6("\\purpleB","\\textcolor{##c6b9fc}{#1}"),l6("\\purpleC","\\textcolor{##aa87ff}{#1}"),l6("\\purpleD","\\textcolor{##7854ab}{#1}"),l6("\\purpleE","\\textcolor{##543b78}{#1}"),l6("\\mintA","\\textcolor{##f5f9e8}{#1}"),l6("\\mintB","\\textcolor{##edf2df}{#1}"),l6("\\mintC","\\textcolor{##e0e5cc}{#1}"),l6("\\grayA","\\textcolor{##f6f7f7}{#1}"),l6("\\grayB","\\textcolor{##f0f1f2}{#1}"),l6("\\grayC","\\textcolor{##e3e5e6}{#1}"),l6("\\grayD","\\textcolor{##d6d8da}{#1}"),l6("\\grayE","\\textcolor{##babec2}{#1}"),l6("\\grayF","\\textcolor{##888d93}{#1}"),l6("\\grayG","\\textcolor{##626569}{#1}"),l6("\\grayH","\\textcolor{##3b3e40}{#1}"),l6("\\grayI","\\textcolor{##21242c}{#1}"),l6("\\kaBlue","\\textcolor{##314453}{#1}"),l6("\\kaGreen","\\textcolor{##71B307}{#1}");var uQ={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class uZ{constructor(e,t,n){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=t,this.expansionCount=0,this.feed(e),this.macros=new uG(l3,t.macros),this.mode=n,this.stack=[]}feed(e){this.lexer=new uU(e,this.settings)}switchMode(e){this.mode=e}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return 0===this.stack.length&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(e){this.stack.push(e)}pushTokens(e){this.stack.push(...e)}scanArgument(e){var t,n,i;if(e){if(this.consumeSpaces(),"["!==this.future().text)return null;t=this.popToken(),{tokens:i,end:n}=this.consumeArg(["]"])}else({tokens:i,start:t,end:n}=this.consumeArg());return this.pushToken(new aK("EOF",n.loc)),this.pushTokens(i),new aK("",aY.range(t,n))}consumeSpaces(){for(;;)if(" "===this.future().text)this.stack.pop();else break}consumeArg(e){var t=[],n=e&&e.length>0;n||this.consumeSpaces();var i,a=this.future(),o=0,s=0;do{if(i=this.popToken(),t.push(i),"{"===i.text)++o;else if("}"===i.text){if(-1==--o)throw new aX("Extra }",i)}else if("EOF"===i.text)throw new aX("Unexpected end of input in a macro argument, expected '"+(e&&n?e[s]:"}")+"'",i);
265if(e&&n){if((0===o||1===o&&"{"===e[s])&&i.text===e[s]){if(++s===e.length){t.splice(-s,s);break}}else s=0}}while(0!==o||n);return"{"===a.text&&"}"===t[t.length-1].text&&(t.pop(),t.shift()),t.reverse(),{tokens:t,start:a,end:i}}consumeArgs(e,t){if(t){if(t.length!==e+1)throw new aX("The length of delimiters doesn't match the number of args!");for(var n=t[0],i=0;i<n.length;i++){var a=this.popToken();if(n[i]!==a.text)throw new aX("Use of the macro doesn't match its definition",a)}}for(var o=[],s=0;s<e;s++)o.push(this.consumeArg(t&&t[s+1]).tokens);return o}countExpansion(e){if(this.expansionCount+=e,this.expansionCount>this.settings.maxExpand)throw new aX("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(e){var t=this.popToken(),n=t.text,i=t.noexpand?null:this._getExpansion(n);if(null==i||e&&i.unexpandable){if(e&&null==i&&"\\"===n[0]&&!this.isDefined(n))throw new aX("Undefined control sequence: "+n);return this.pushToken(t),!1}this.countExpansion(1);var a=i.tokens,o=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var s=a.length-1;s>=0;--s){var l=a[s];if("#"===l.text){if(0===s)throw new aX("Incomplete placeholder at end of macro body",l);if("#"===(l=a[--s]).text)a.splice(s+1,1);else if(/^[1-9]$/.test(l.text))a.splice(s,2,...o[+l.text-1]);else throw new aX("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(!1===this.expandOnce()){var e=this.stack.pop();return e.treatAsRelax&&(e.text="\\relax"),e}throw Error()}expandMacro(e){return this.macros.has(e)?this.expandTokens([new aK(e)]):void 0}expandTokens(e){var t=[],n=this.stack.length;for(this.pushTokens(e);this.stack.length>n;)if(!1===this.expandOnce(!0)){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),t.push(i)}return this.countExpansion(t.length),t}expandMacroAsText(e){var t=this.expandMacro(e);return t&&t.map(e=>e.text).join("")}_getExpansion(e){var t=this.macros.get(e);if(null==t)return t;if(1===e.length){var n=this.lexer.catcodes[e];if(null!=n&&13!==n)return}var i="function"==typeof t?t(this):t;if("string"==typeof i){var a=0;if(-1!==i.indexOf("#"))for(var o=i.replace(/##/g,"");-1!==o.indexOf("#"+(a+1));)++a;for(var s=new uU(i,this.settings),l=[],u=s.lex();"EOF"!==u.text;)l.push(u),u=s.lex();return l.reverse(),{tokens:l,numArgs:a}}return i}isDefined(e){return this.macros.has(e)||sI.hasOwnProperty(e)||oU.math.hasOwnProperty(e)||oU.text.hasOwnProperty(e)||uQ.hasOwnProperty(e)}isExpandable(e){var t=this.macros.get(e);return null!=t?"string"==typeof t||"function"==typeof t||!t.unexpandable:sI.hasOwnProperty(e)&&!sI[e].primitive}}var u$=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,uJ=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9",ₐ:"a",ₑ:"e",ₕ:"h",áµ¢:"i",â±¼:"j",ₖ:"k",ₗ:"l",ₘ:"m",ₙ:"n",ₒ:"o",ₚ:"p",áµ£:"r",ₛ:"s",ₜ:"t",ᵤ:"u",áµ¥:"v",ₓ:"x",ᵦ:"β",áµ§:"γ",ᵨ:"ρ",ᵩ:"ϕ",ᵪ:"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","\xb9":"1","\xb2":"2","\xb3":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9",á´¬:"A",á´®:"B",á´°:"D",á´±:"E",á´³:"G",á´´:"H",á´µ:"I",á´¶:"J",á´·:"K",á´¸:"L",á´¹:"M",á´º:"N",á´¼:"O",á´¾:"P",á´¿:"R",ᵀ:"T",ᵁ:"U",â±½:"V",ᵂ:"W",ᵃ:"a",ᵇ:"b",ᶜ:"c",ᵈ:"d",ᵉ:"e",á¶ :"f",ᵍ:"g",ʰ:"h",ⁱ:"i",ʲ:"j",ᵏ:"k",Ë¡:"l",ᵐ:"m",ⁿ:"n",ᵒ:"o",ᵖ:"p",ʳ:"r",Ë¢:"s",ᵗ:"t",ᵘ:"u",ᵛ:"v",Ê·:"w",Ë£:"x",ʸ:"y",á¶»:"z",ᵝ:"β",ᵞ:"γ",ᵟ:"δ",áµ :"ϕ",ᵡ:"χ",á¶¿:"θ"}),u0={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},u1={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",Ç¡:"ǡ",Ã¥:"å",Ç»:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"eÌ
265§Ì†",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",È©:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",Ä¡:"ġ",Ä£:"ģ",ḧ:"ḧ",ȟ:"ȟ",Ä¥:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",Ä©:"ĩ",Ä«:"ī",Ä­:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",Ç©:"ǩ",Ä·:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",È«:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",È­:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",á¹¥:"ṥ",Å¡:"š",á¹§:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",Å¥:"ť",ṫ:"ṫ",Å£:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",Å©:"ũ",á¹¹:"ṹ",Å«:"ū",á¹»:"ṻ",Å­:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",á¹½:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",Å·:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ç :"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ç´:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ä :"Ġ",Ä¢:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ä´:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ä»:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",È®:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Å :"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",á¹ :"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Å¢:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Å®:"Ů",Ű:"Ű",á¹¼:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Å´:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Å»:"Ż",ά:"ά",á½°:"ὰ",á¾±:"ᾱ",á¾°:"ᾰ",έ:"έ",á½²:"ὲ",ή:"ή",á½´:"ὴ",ί:"ί",á½¶:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",á¿¢:"ῢ",á¿¡:"ῡ",á¿ :"ῠ",ώ:"ώ",á½¼:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",á¿©:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};let u2=class e{constructor(e,t){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new uZ(e,t,this.mode),this.settings=t,this.leftrightDepth=0}expect(e,t){if(void 0===t&&(t=!0),this.fetch().text!==e)throw new aX("Expected '"+e+"', got '"+this.fetch().text+"'",this.fetch());t&&this.consume()}consume(){this.nextToken=null}fetch(){return null==this.nextToken&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(e){this.mode=e,this.gullet.switchMode(e)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var e=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),e}finally{this.gullet.endGroups()}}subparse(e){var t=this.nextToken;this.consume(),this.gullet.pushToken(new aK("}")),this.gullet.pushTokens(e);var n=this.parseExpression(!1);return this.expect("}"),this.nextToken=t,n}parseExpression(t,n){for(var i=[];;){"math"===this.mode&&this.consumeSpaces();var a=this.fetch();if(-1!==e.endOfExpression.indexOf(a.text)||n&&a.text===n||t&&sI[a.text]&&sI[a.text].infix)break;var o=this.parseAtom(n);if(o){if("internal"===o.type)continue}else break;i.push(o)}return"text"===this.mode&&this.formLigatures(i),this.handleInfixNodes(i)}handleInfixNodes(e){for(var t,n=-1,i=0;i<e.length;i++)if("infix"===e[i].type){if(-1!==n)throw new aX("only one infix operator per group",e[i].token);n=i,t=e[i].replaceWith}if(-1===n||!t)return e;var a,o,s=e.slice(0,n),l=e.slice(n+1);return a=1===s.length&&"ordgroup"===s[0].type?s[0]:{type:"ordgroup",mode:this.mode,body:s},o=1===l.length&&"ordgroup"===l[0].type?l[0]:{type:"ordgroup",mode:this.mode,body:l},["\\\\abovefrac"===t?this.callFunction(t,[a,e[n],o],[]):this.callFunction(t,[a,o],[])]}handleSupSubscript(e){var t,n=this.fetch(),i=n.text;this.consume(),this.consumeSpaces();do t=this.parseGroup(e);while((null==t?void 0:t.type)==="internal");if(!t)throw new aX("Expected group after '"+i+"'",n);return t}formatUnsupportedCmd(e){for(var t=[],n=0;n<e.length;n++)t.push({type:"textord",mode:"text",text:e[n]});var i={type:"text",mode:this.mode,body:t};return{type:"color",mode:this.mode,color:this.settings.errorColor,body:[i]}}parseAtom(e){var t,n,i=this.parseGroup("atom",e);if((null==i?void 0:i.type)==="internal"||"text"===this.mode)return i;for(;;){this.consumeSpaces();var a=this.fetch();if("\\limits"===a.text||"\\nolimits"===a.text){if(i&&"op"===i.type){var o="\\limits"===a.text;i.limits=o,i.alwaysHandleSupSub=!0}else if(i&&"operatorname"===i.type)i.alwaysHandleSupSub&&(i.limits="\\limits"===a.text);else throw new aX("Limit controls must follow a math operator",a);this.consume()}else if("^"===a.text){if(t)throw new aX("Double superscript",a);t=this.handleSupSubscript("superscript")}else if("_"===a.text){if(n)throw new aX("Double subscript",a);n=this.handleSupSubscript("subscript")}else if("'"===a.text){if(t)throw new aX("Double superscript",a);var s={type:"textord",mode:this.mode,text:"\\prime"},l=[s];for(this.consume();"'"===this.fetch().text;)l.push(s),this.consume();"^"===this.fetch().text&&l.push(this.handleSupSubscript("superscript")),t={type:"ordgroup",mode:this.mode,body:l}}else if(uJ[a.text]){var u=u$.test(a.text),c=[];for(c.push(new aK(uJ[a.text])),this.consume();;){var d=this.fetch().text;if(!uJ[d]||u$.test(d)!==u)break;c.unshift(new aK(uJ[d])),this.consume()}var p=this.subparse(c);u?n={type:"ordgroup",mode:"math",body:p}:t={type:"ordgroup",mode:"math",body:p}}else break}return t||n?{type:"supsub",mode:this.mode,base:i,sup:t,sub:n}:i}parseFunction(e,t){var n=this.fetch(),i=n.text,a=sI[i];if(!a)return null;if(this.consume(),t&&"atom"!==t&&!a.allowedInArgument)throw new aX("Got function '"+i+"' with no arguments"+(t?" as "+t:""),n);if("text"===this.mode&&!a.allowedInText)throw new aX("Can't use function '"+i+"' in text mode",n);if("math"===this.mode&&!1===a.allowedInMath)throw new aX("Can't use function '"+i+"' in math mode",n);var{args:o,optArgs:s}=this.parseArguments(i,a);return this.callFunction(i,o,s,n,e)}callFunction(e,t,n,i,a){var o=sI[e];if(o&&o.handler)return o.handler({funcName:e,parser:this,token:i,breakOnTokenText:a},t,n);throw new aX("No function handler for "+e)}parseArguments(e,t){var n=t.numArgs+t.numOptionalArgs;if(0===n)return{args:[],optArgs:[]};for(var i=[],a=[],o=0;o<n;o++){var s=t.argTypes&&t.argTypes[o],l=o<t.numOptionalArgs;(t.primitive&&null==s||"sqrt"===t.type&&1===o&&null==a[0])&&(s="primitive");var u=this.parseGroupOfType("argument to '"+e+"'",s,l);if(l)a.push(u);else if(null!=u)i.push(u);else throw new aX("Null argument, please report this as a bug")}return{args:i,optArgs:a}}parseGroupOfType(e,t,n){switch(t){case"color":return this.parseColorGroup(n);case"size":return this.parseSizeGroup(n);case"url":return this.parseUrlGroup(n);case"math":case"text":return this.parseArgumentGroup(n,t);case"hbox":var i=this.parseArgumentGroup(n,"text");return null!=i?{type:"styling",mode:i.mode,body:[i],style:"text"}:null;case"raw":var a=this.parseStringGroup("raw",n);return null!=a?{type:"raw",mode:"text",string:a.text}:null;case"primitive":if(n)throw new aX("A primitive argument cannot be optional");var o=this.parseGroup(e);if(null==o)throw new aX("Expected group as "+e,this.fetch());return o;case"original":case null:case void 0:return this.parseArgumentGroup(n);default:throw new aX("Unknown group type as "+e,this.fetch())}}consumeSpaces(){for(;" "===this.fetch().text;)this.consume()}parseStringGroup(e,t){var n=this.gullet.scanArgument(t);if(null==n)return null;for(var i,a="";"EOF"!==(i=this.fetch()).text;)a+=i.text,this.consume();return this.consume(),n.text=a,n}parseRegexGroup(e,t){for(var n,i=this.fetch(),a=i,o="";"EOF"!==(n=this.fetch()).text&&e.test(o+n.text);)o+=(a=n).text,this.consume();if(""===o)throw new aX("Invalid "+t+": '"+i.text+"'",i);return i.range(a,o)}parseColorGroup(e){var t=this.parseStringGroup("color",e);if(null==t)return null;var n=/^(#[a-f0-9]{3,4}|#[a-f0-9]{6}|#[a-f0-9]{8}|[a-f0-9]{6}|[a-z]+)$/i.exec(t.text);if(!n)throw new aX("Invalid color: '"+t.text+"'",t);var i=n[0];return/^[0-9a-f]{6}$/i.test(i)&&(i="#"+i),{type:"color-token",mode:this.mode,color:i}}parseSizeGroup(e){var t,n=!1;if(this.gullet.consumeSpaces(),!(t=e||"{"===this.gullet.future().text?this.parseStringGroup("size",e):this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size")))return null;e||0!==t.text.length||(t.text="0pt",n=!0);var i=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t.text);if(!i)throw new aX("Invalid size: '"+t.text+"'",t);var a={number:+(i[1]+i[2]),unit:i[3]};if(!o_(a))throw new aX("Invalid unit: '"+a.unit+"'",t);return{type:"size",mode:this.mode,value:a,isBlank:n}}parseUrlGroup(e){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var t=this.parseStringGroup("url",e);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),null==t)return null;var n=t.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:n}}parseArgumentGroup(e,t){var n=this.gullet.scanArgument(e);
265if(null==n)return null;var i=this.mode;t&&this.switchMode(t),this.gullet.beginGroup();var a=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var o={type:"ordgroup",mode:this.mode,loc:n.loc,body:a};return t&&this.switchMode(i),o}parseGroup(e,t){var n,i=this.fetch(),a=i.text;if("{"===a||"\\begingroup"===a){this.consume();var o="{"===a?"}":"\\endgroup";this.gullet.beginGroup();var s=this.parseExpression(!1,o),l=this.fetch();this.expect(o),this.gullet.endGroup(),n={type:"ordgroup",mode:this.mode,loc:aY.range(i,l),body:s,semisimple:"\\begingroup"===a||void 0}}else if(null==(n=this.parseFunction(t,e)||this.parseSymbol())&&"\\"===a[0]&&!uQ.hasOwnProperty(a)){if(this.settings.throwOnError)throw new aX("Undefined control sequence: "+a,i);n=this.formatUnsupportedCmd(a),this.consume()}return n}formLigatures(e){for(var t=e.length-1,n=0;n<t;++n){var i=e[n],a=i.text;"-"===a&&"-"===e[n+1].text&&(n+1<t&&"-"===e[n+2].text?(e.splice(n,3,{type:"textord",mode:"text",loc:aY.range(i,e[n+2]),text:"---"}),t-=2):(e.splice(n,2,{type:"textord",mode:"text",loc:aY.range(i,e[n+1]),text:"--"}),t-=1)),("'"===a||"`"===a)&&e[n+1].text===a&&(e.splice(n,2,{type:"textord",mode:"text",loc:aY.range(i,e[n+1]),text:a+a}),t-=1)}}parseSymbol(){var e=this.fetch(),t=e.text;if(/^\\verb[^a-zA-Z]/.test(t)){this.consume();var n=t.slice(5),i="*"===n.charAt(0);if(i&&(n=n.slice(1)),n.length<2||n.charAt(0)!==n.slice(-1))throw new aX(`\\verb assertion failed --
266                    please report what input caused this bug`);return{type:"verb",mode:"text",body:n=n.slice(1,-1),star:i}}u1.hasOwnProperty(t[0])&&!oU[this.mode][t[0]]&&(this.settings.strict&&"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+t[0]+'" used in math mode',e),t=u1[t[0]]+t.slice(1));var a=uF.exec(t);if(a&&("i"===(t=t.substring(0,a.index))?t="ı":"j"===t&&(t="ȷ")),oU[this.mode][t]){this.settings.strict&&"math"===this.mode&&ss.indexOf(t)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+t[0]+'" used in math mode',e);var o,s=oU[this.mode][t].group,l=aY.range(e);o=oF.hasOwnProperty(s)?{type:"atom",mode:this.mode,family:s,loc:l,text:t}:{type:s,mode:this.mode,loc:l,text:t}}else{if(!(t.charCodeAt(0)>=128))return null;this.settings.strict&&(oa(t.charCodeAt(0))?"math"===this.mode&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+t[0]+'" used in math mode',e):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+t[0]+'" ('+t.charCodeAt(0)+")",e)),o={type:"textord",mode:"text",loc:aY.range(e),text:t}}if(this.consume(),a)for(var u=0;u<a[0].length;u++){var c=a[0][u];if(!u0[c])throw new aX("Unknown accent ' "+c+"'",e);var d=u0[c][this.mode]||u0[c].text;if(!d)throw new aX("Accent "+c+" unsupported in "+this.mode+" mode",e);o={type:"accent",mode:this.mode,loc:aY.range(e),label:d,isStretchy:!1,isShifty:!0,base:o}}return o}};u2.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var u4=function(e,t){if(!("string"==typeof e||e instanceof String))throw TypeError("KaTeX can only parse string typed expression");var n=new u2(e,t);delete n.gullet.macros.current["\\df@tag"];var i=n.parse();if(delete n.gullet.macros.current["\\current@color"],delete n.gullet.macros.current["\\color"],n.gullet.macros.get("\\df@tag")){if(!t.displayMode)throw new aX("\\tag works only in display equations");i=[{type:"tag",mode:"text",body:i,tag:n.subparse([new aK("\\df@tag")])}]}return i},u5=function(e,t,n){t.textContent="";var i=u8(e,n).toNode();t.appendChild(i)};"u">typeof document&&"CSS1Compat"!==document.compatMode&&("u">typeof console&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),u5=function(){throw new aX("KaTeX doesn't work in quirks mode.")});var u3=function(e,t){return u8(e,t).toMarkup()},u6=function(e,t){return u4(e,new a4(t))},u7=function(e,t,n){if(n.throwOnError||!(e instanceof aX))throw e;var i=sT.makeSpan(["katex-error"],[new oL(t)]);return i.setAttribute("title",e.toString()),i.setAttribute("style","color:"+n.errorColor),i},u8=function(e,t){var n=new a4(t);try{var i=u4(e,n);return ln(i,e,n)}catch(t){return u7(t,e,n)}},u9=function(e,t){var n=new a4(t);try{var i=u4(e,n);return lr(i,e,n)}catch(t){return u7(t,e,n)}},ce="0.16.27",ct={Span:oM,Anchor:oP,SymbolNode:oL,SvgNode:oO,PathNode:oB,LineNode:oj},cn={version:ce,render:u5,renderToString:u3,ParseError:aX,SETTINGS_SCHEMA:a2,__parse:u6,__renderToDomTree:u8,__renderToHTMLTree:u9,__setFontMetrics:om,__defineSymbol
266:oG,__defineFunction:sR,__defineMacro:l6,__domTree:ct};let cr=Object.freeze(Object.defineProperty({__proto__:null,ParseError:aX,SETTINGS_SCHEMA:a2,__defineFunction:sR,__defineMacro:l6,__defineSymbol:oG,__domTree:ct,__parse:u6,__renderToDomTree:u8,__renderToHTMLTree:u9,__setFontMetrics:om,default:cn,get render(){return u5},renderToString:u3,version:ce},Symbol.toStringTag,{value:"Module"})),ci={},ca=[];function co(e){let t=e||ci;return function(e,n){iG(e,"element",function(e,i){let a;let o=Array.isArray(e.properties.className)?e.properties.className:ca,s=o.includes("language-math"),l=o.includes("math-display"),u=o.includes("math-inline"),c=l;if(!s&&!l&&!u)return;let d=i[i.length-1],p=e;if("code"===e.tagName&&s&&d&&"element"===d.type&&"pre"===d.tagName&&(p=d,d=i[i.length-2],c=!0),!d)return;let h=function(e,t){let n;let i="children"in e?e.children:[],a=aq(e),o=aW(e,{whitespace:(t||{}).whitespace||"normal"}),s=[];("text"===e.type||"comment"===e.type)&&s.push(...aV(e,{breakBefore:!0,breakAfter:!0}));let l=-1;for(;++l<i.length;)s.push(...function e(t,n,i){return"element"===t.type?function(t,n,i){let a,o;let s=aW(t,i),l=t.children||[],u=-1,c=[];if(aG(t))return c;for(az(t)||aU(t)&&aR(n,t,aU)?o=`
267`:aH(t)?(a=2,o=2):aq(t)&&(a=1,o=1);++u<l.length;)c=c.concat(e(l[u],t,{whitespace:s,breakBefore:u?void 0:a,breakAfter:u<l.length-1?az(l[u+1]):o}));return aF(t)&&aR(n,t,aF)&&c.push("	"),a&&c.unshift(a),o&&c.push(o),c}(t,n,i):"text"===t.type?"normal"===i.whitespace?aV(t,i):[String(t.value)]:[]}(i[l],e,{whitespace:o,breakBefore:l?void 0:a,breakAfter:l<i.length-1?az(i[l+1]):a}));let u=[];for(l=-1;++l<s.length;){let e=s[l];"number"==typeof e?void 0!==n&&e>n&&(n=e):e&&(void 0!==n&&n>-1&&u.push(`
268`.repeat(n)||" "),n=-1,u.push(e))}return u.join("")}(p,{whitespace:"pre"});try{a=cn.renderToString(h,{...t,displayMode:c,throwOnError:!0})}catch(s){let o=s.name.toLowerCase();n.message("Could not render math with KaTeX",{ancestors:[...i,e],cause:s,place:e.position,ruleId:o,source:"rehype-katex"});try{a=cn.renderToString(h,{...t,displayMode:c,strict:"ignore",throwOnError:!1})}catch{a=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(t.errorColor||"#cc0000"),title:String(s)},children:[{type:"text",value:h}]}]}}"string"==typeof a&&(a=(aM(function(e){let t=document.createElement("template");return t.innerHTML=e,t.content}(a),{})||{type:"root",children:[]}).children);let m=d.children.indexOf(p);return d.children.splice(m,1,...a),iU})}}let cs="object"==typeof self?self:globalThis,cl=(e,t)=>{let n=(t,n)=>(e.set(n,t),t),i=a=>{if(e.has(a))return e.get(a);let[o,s]=t[a];switch(o){case 0:case -1:return n(s,a);case 1:{let e=n([],a);for(let t of s)e.push(i(t));return e}case 2:{let e=n({},a);for(let[t,n]of s)e[i(t)]=i(n);return e}case 3:return n(new Date(s),a);case 4:{let{source:e,flags:t}=s;return n(new RegExp(e,t),a)}case 5:{let e=n(new Map,a);for(let[t,n]of s)e.set(i(t),i(n));return e}case 6:{let e=n(new Set,a);for(let t of s)e.add(i(t));return e}case 7:{let{name:e,message:t}=s;return n(new cs[e](t),a)}case 8:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{let{buffer:e}=new Uint8Array(s);return n(new DataView(e),s)}}return n(new cs[o](s),a)};return i},cu=e=>cl(new Map,e)(0),{toString:cc}={},{keys:cd}=Object,cp=e=>{let t=typeof e;if("object"!==t||!e)return[0,t];let n=cc.call(e).slice(8,-1);switch(n){case"Array":return[1,""];case"Object":return[2,""];case"Date":return[3,""];case"RegExp":return[4,""];case"Map":return[5,""];case"Set":return[6,""];case"DataView":return[1,n]}return n.includes("Array")?[1,n]:n.includes("Error")?[7,n]:[2,n]},ch=([e,t])=>0===e&&("function"===t||"symbol"===t),cm=(e,t,n,i)=>{let a=(e,t)=>{let a=i.push(e)-1;return n.set(t,a),a},o=i=>{if(n.has(i))return n.get(i);let[s,l]=cp(i);switch(s){case 0:{let t=i;switch(l){case"bigint":s=8,t=i.toString();break;case"function":case"symbol":if(e)throw TypeError("unable to serialize "+l);t=null;break;case"undefined":return a([-1],i)}return a([s,t],i)}case 1:{if(l){let e=i;return"DataView"===l?e=new Uint8Array(i.buffer):"ArrayBuffer"===l&&(e=new Uint8Array(i)),a([l,[...e]],i)}let e=[],t=a([s,e],i);for(let t of i)e.push(o(t));return t}case 2:{if(l)switch(l){case"BigInt":return a([l,i.toString()],i);case"Boolean":case"Number":case"String":return a([l,i.valueOf()],i)}
268if(t&&"toJSON"in i)return o(i.toJSON());let n=[],u=a([s,n],i);for(let t of cd(i))(e||!ch(cp(i[t])))&&n.push([o(t),o(i[t])]);return u}case 3:return a([s,i.toISOString()],i);case 4:{let{source:e,flags:t}=i;return a([s,{source:e,flags:t}],i)}case 5:{let t=[],n=a([s,t],i);for(let[n,a]of i)(e||!(ch(cp(n))||ch(cp(a))))&&t.push([o(n),o(a)]);return n}case 6:{let t=[],n=a([s,t],i);for(let n of i)(e||!ch(cp(n)))&&t.push(o(n));return n}}let{message:u}=i;return a([s,{name:l,message:u}],i)};return o},cf=(e,{json:t,lossy:n}={})=>{let i=[];return cm(!(t||n),!!t,new Map,i)(e),i},cg="function"==typeof structuredClone?(e,t)=>t&&("json"in t||"lossy"in t)?cu(cf(e,t)):structuredClone(e):(e,t)=>cu(cf(e,t));function cx(e,t){let n=e.indexOf("\r",t),i=e.indexOf(`
269`,t);return -1===i?n:-1===n||n+1===i?i:n<i?n:i}let cv={}.hasOwnProperty,cy=Object.prototype;function cb(e,t){let n;switch(t.nodeName){case"#comment":return n={type:"comment",value:t.data},ck(e,t,n),n;case"#document":case"#document-fragment":{let i="mode"in t&&("quirks"===t.mode||"limited-quirks"===t.mode);if(n={type:"root",children:cw(e,t.childNodes),data:{quirksMode:i}},e.file&&e.location){let t=String(e.file),i=function(e){let t=String(e),n=[];return{toOffset:function(e){if(e&&"number"==typeof e.line&&"number"==typeof e.column&&!Number.isNaN(e.line)&&!Number.isNaN(e.column)){for(;n.length<e.line;){let e=n[n.length-1],i=cx(t,e),a=-1===i?t.length+1:i+1;if(e===a)break;n.push(a)}let i=(e.line>1?n[e.line-2]:0)+e.column-1;if(i<n[e.line-1])return i}},toPoint:function(e){if("number"==typeof e&&e>-1&&e<=t.length){let i=0;for(;;){let a=n[i];if(void 0===a){let e=cx(t,n[i-1]);a=-1===e?t.length+1:e+1,n[i]=a}if(a>e)return{line:i+1,column:e-(i>0?n[i-1]:0)+1,offset:e};i++}}}}}(t),a=i.toPoint(0),o=i.toPoint(t.length);n.position={start:a,end:o}}return n}case"#documentType":return ck(e,t,n={type:"doctype"}),n;case"#text":return n={type:"text",value:t.value},ck(e,t,n),n;default:return function(e,t){let n=e.schema;e.schema=t.namespaceURI===aI.svg?ab:ay;let i=-1,a={};for(;++i<t.attrs.length;){let e=t.attrs[i],n=(e.prefix?e.prefix+":":"")+e.name;cv.call(cy,n)||(a[n]=e.value)}let o=("svg"===e.schema.space?aN:aC)(t.tagName,a,cw(e,t.childNodes));if(ck(e,t,o),"template"===o.tagName){let n=t.sourceCodeLocation,i=n&&n.startTag&&c_(n.startTag),a=n&&n.endTag&&c_(n.endTag),s=cb(e,t.content);i&&a&&e.file&&(s.position={start:i.end,end:a.start}),o.content=s}return e.schema=n,o}(e,t)}}function cw(e,t){let n=-1,i=[];for(;++n<t.length;){let a=cb(e,t[n]);i.push(a)}return i}function ck(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){let i=function(e,t,n){let i=c_(n);if("element"===t.type){let a=t.children[t.children.length-1];if(i&&!n.endTag&&a&&a.position&&a.position.end&&(i.end=Object.assign({},a.position.end)),e.verbose){let i;let a={};if(n.attrs)for(i in n.attrs)cv.call(n.attrs,i)&&(a[ag(e.schema,i).property]=c_(n.attrs[i]));n.startTag;let o=c_(n.startTag),s=n.endTag?c_(n.endTag):void 0,l={opening:o};s&&(l.closing=s),l.properties=a,t.data={position:l}}}return i}(e,n,t.sourceCodeLocation);i&&(e.location=!0,n.position=i)}}function c_(e){let t=cT({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=cT({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function cT(e){return e.line&&e.column?e:void 0}let cE={}.hasOwnProperty;function cS(e,t){let n=t||{};function i(t,...n){let a=i.invalid,o=i.handlers;if(t&&cE.call(t,e)){let n=String(t[e]);a=cE.call(o,n)?o[n]:i.unknown}if(a)return a.call(this,t,...n)}return i.handlers=n.handlers||{},i.invalid=n.invalid,i.unknown=n.unknown,i}let cA={}.hasOwnProperty,cC=cS("type",{handlers:{root:function(e,t){let n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=cN(e.children,n,t),cI(e,n),n},element:function(e,t){let n;let i=t;"element"===e.type&&"svg"===e.tagName.toLowerCase()&&"html"===t.space&&(i=ab);let a=[];if(e.properties){for(n in e.properties)if("children"!==n&&cA.call(e.properties,n)){let t=function(e,t,n){let i=ag(e,t);if(!1===n||null==n||"number"==typeof n&&Number.isNaN(n)||!n&&i.boolean)return;Array.isArray(n)&&(n=i.commaSeparated?ak(n):aE(n));let a={name:i.attribute,value:!0===n?"":String(n)};if(i.space&&"html"!==i.space&&"svg"!==i.space){let e=a.name.indexOf(":");e<0?a.prefix="":(a.name=a.name.slice(e+1),a.prefix=i.attribute.slice(0,e)),a.namespace=aI[i.space]}return a}(i,n,e.properties[n]);t&&a.push(t)}}let o=i.space,s={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:aI[o],childNodes:[],parentNode:null};return s.childNodes=cN(e.children,s,i),cI(e,s),"template"===e.tagName&&e.content&&(s.content=function(e,t){let n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=cN(e.children,n,t),cI(e,n),n}(e.content,i)),s},text:function(e){let t={nodeName:"#text",value:e.value,parentNode:null};return cI(e,t),t},comment:function(e){let t={nodeName:"#comment",data:e.value,parentNode:null};return cI(e,t),t},doctype:function(e){let t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return cI(e,t),t}}});function cN(e,t,n){let i=-1,a=[];if(e)for(;++i<e.length;){let o=cC(e[i],n);o.parentNode=t,a.push(o)}return a}function cI(e,t){let n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}let cM=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","
269image","img","input","keygen","link","meta","param","source","track","wbr"],cP=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]);(vK=ye||(ye={}))[vK.EOF=-1]="EOF",vK[vK.NULL=0]="NULL",vK[vK.TABULATION=9]="TABULATION",vK[vK.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",vK[vK.LINE_FEED=10]="LINE_FEED",vK[vK.FORM_FEED=12]="FORM_FEED",vK[vK.SPACE=32]="SPACE",vK[vK.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",vK[vK.QUOTATION_MARK=34]="QUOTATION_MARK",vK[vK.AMPERSAND=38]="AMPERSAND",vK[vK.APOSTROPHE=39]="APOSTROPHE",vK[vK.HYPHEN_MINUS=45]="HYPHEN_MINUS",vK[vK.SOLIDUS=47]="SOLIDUS",vK[vK.DIGIT_0=48]="DIGIT_0",vK[vK.DIGIT_9=57]="DIGIT_9",vK[vK.SEMICOLON=59]="SEMICOLON",vK[vK.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",vK[vK.EQUALS_SIGN=61]="EQUALS_SIGN",vK[vK.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",vK[vK.QUESTION_MARK=63]="QUESTION_MARK",vK[vK.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",vK[vK.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",vK[vK.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",vK[vK.GRAVE_ACCENT=96]="GRAVE_ACCENT",vK[vK.LATIN_SMALL_A=97]="LATIN_SMALL_A",vK[vK.LATIN_SMALL_Z=122]="LATIN_SMALL_Z";let cR={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function cD(e){return e>=55296&&e<=57343}function cL(e){return 32!==e&&10!==e&&13!==e&&9!==e&&12!==e&&e>=1&&e<=31||e>=127&&e<=159}function cO(e){return e>=64976&&e<=65007||cP.has(e)}(vX=yt||(yt={})).controlCharacterInInputStream="control-character-in-input-stream",vX.noncharacterInInputStream="noncharacter-in-input-stream",vX.surrogateInInputStream="surrogate-in-input-stream",vX.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",vX.endTagWithAttributes="end-tag-with-attributes",vX.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",vX.unexpectedSolidusInTag="unexpected-solidus-in-tag",vX.unexpectedNullCharacter="unexpected-null-character",vX.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",vX.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",vX.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",vX.missingEndTagName="missing-end-tag-name",vX.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",vX.unknownNamedCharacterReference="unknown-named-character-reference",vX.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",vX.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",vX.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",vX.eofBeforeTagName="eof-before-tag-name",vX.eofInTag="eof-in-tag",vX.missingAttributeValue="missing-attribute-value",vX.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",vX.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",vX.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",vX.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",vX.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",vX.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",vX.missingDoctypePublicIdentifier="missing-doctype-public-identifier",vX.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",vX.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",vX.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",vX.cdataInHtmlContent="cdata-in-html-content",vX.incorrectlyOpenedComment="incorrectly-opened-comment",vX.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",vX.eofInDoctype="eof-in-doctype",vX.nestedComment="nested-comment",vX.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",vX.eofInComment="eof-in-comment",vX.incorrectlyClosedComment="incorrectly-closed-comment",vX.eofInCdata="eof-in-cdata",vX.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",vX.nullCharacterReference="null-character-reference",vX.surrogateCharacterReference="surrogate-character-reference",vX.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",vX.controlCharacterReference="control-character-reference",vX.noncharacterCharacterReference="noncharacter-character-reference",vX.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",vX.missingDoctypeName="missing-doctype-name",vX.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",vX.duplicateAttribute="duplicate-attribute",vX.nonConformingDoctype="non-conforming-doctype",vX.missingDoctype="missing-doctype",vX.misplacedDoctype="misplaced-doctype",vX.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",vX.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",vX.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",vX.openElementsLeftAfterEof="open-elements-left-after-eof",vX.abandonedHeadElementChild="abandoned-head-element-child",vX.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",vX.nestedNoscriptInHead="nested-noscript-in-head",vX.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text";class cB{constructor(e){this.handler=e,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=65536,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(e,t){let{line:n,col:i,offset:a}=this,o=i+t,s=a+t;return{code:e,startLine:n,endLine:n,startCol:o,endCol:o,startOffset:s,endOffset:s}}_err(e){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(e,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(e){if(this.pos!==this.html.length-1){let t=this.html.charCodeAt(this.pos+1);if(t>=56320&&t<=57343)return this.pos++,this._addGap(),(e-55296)*1024+9216+t}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ye.EOF;return this._err(yt.surrogateInInputStream),e}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(e,t){this.html.length>0?this.html+=e:this.html=e,this.endOfChunkHit=!1,this.lastChunkWritten=t}insertHtmlAtCurrentPos(e){this.html=this.html.substring(0,this.pos+1)+e+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(e,t){if(this.pos+e.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(t)return this.html.startsWith(e,this.pos);for(let t=0;t<e.length;t++)if((32|this.html.charCodeAt(this.pos+t))!==e.charCodeAt(t))return!1;return!0}peek(e){let t=this.pos+e;if(t>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ye.EOF;let n=this.html.charCodeAt(t);return n===ye.CARRIAGE_RETURN?ye.LINE_FEED:n}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ye.EOF;let e=this.html.charCodeAt(this.pos);return e===ye.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ye.LINE_FEED):e===ye.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,cD(e)&&(e=this._processSurrogate(e)),null===this.handler.onParseError||e>31&&e<127||e===ye.LINE_FEED||e===ye.CARRIAGE_RETURN||e>159&&e<64976||this._checkForProblematicCharacters(e),e)}_checkForProblematicCharacters(e){cL(e)?this._err(yt.controlCharacterInInputStream):cO(e)&&this._err(yt.nonch
vendor: 6,641 bytes, line 269
269aracterInInputStream)}retreat(e){for(this.pos-=e;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}function cj(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}(vQ=yn||(yn={}))[vQ.CHARACTER=0]="CHARACTER",vQ[vQ.NULL_CHARACTER=1]="NULL_CHARACTER",vQ[vQ.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",vQ[vQ.START_TAG=3]="START_TAG",vQ[vQ.END_TAG=4]="END_TAG",vQ[vQ.COMMENT=5]="COMMENT",vQ[vQ.DOCTYPE=6]="DOCTYPE",vQ[vQ.EOF=7]="EOF",vQ[vQ.HIBERNATION=8]="HIBERNATION";let cz=new Uint16Array('ᵁ<\xd5ıʊҝջאٵ۞ޢߖࠏ੊ઑඡ๭༉༦჊ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ὾⁠↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms\x7f\x84\x8b\x90\x95\x98\xa6\xb3\xb9\xc8\xcflig耻\xc6䃆P耻&䀦cute耻\xc1䃁reve;䄂Āiyx}rc耻\xc2䃂;䐐r;쀀\uD835\uDD04rave耻\xc0䃀pha;䎑acr;䄀d;橓Āgp\x9d\xa1on;䄄f;쀀\uD835\uDD38plyFunction;恡ing耻\xc5䃅Ācs\xbe\xc3r;쀀\uD835\uDC9Cign;扔ilde耻\xc3䃃ml耻\xc4䃄Ѐaceforsu\xe5\xfb\xfeėĜĢħĪĀcr\xea\xf2kslash;或Ŷ\xf6\xf8;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀\uD835\uDD05pf;쀀\uD835\uDD39eve;䋘c\xf2ēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻\xa9䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻\xc7䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷\xf2ſ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;쀀\uD835\uDC9EpĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀\uD835\uDD07Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀\uD835\uDD3Bƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲ΂ϏϢϸontourIntegra\xecȹoɴ͹\0\0ͻ\xbb͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔e\xe5ˊ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;쀀\uD835\uDC9Frok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻\xd0䃐cute耻\xc9䃉ƀaiyӒӗӜron;䄚rc耻\xca䃊;䐭ot;䄖r;쀀\uD835\uDD08rave耻\xc8䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀\uD835\uDD3Csilon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՗՚r;愰m;橳a;䎗ml耻\xcb䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲ׌y;䐤r;쀀\uD835\uDD09lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀\uD835\uDD3DAll;戀riertrf;愱c\xf2׋؀JTabcdfgorstר׬ׯ׺؀ؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d׷׸䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀\uD835\uDD0A;拙pf;쀀\uD835\uDD3Eeater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀\uD835\uDCA2;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅ\xf2کrok;䄦mpńېۘownHum\xf0įqual;扏܀EJOacdfgmnostuۺ۾܃܇܎ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻\xcd䃍Āiyܓܘrc耻\xce䃎;䐘ot;䄰r;愑rave耻\xcc䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lie\xf3ϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀\uD835\uDD40a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻\xcf䃏ʀcfosuެ޷޼߂ߐĀiyޱ޵rc;䄴;䐙r;쀀\uD835\uDD0Dpf;쀀\uD835\uDD41ǣ߇\0ߌr;쀀\uD835\uDCA5rcy;䐈kcy;䐄΀HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶߻dil;䄶;䐚r;쀀\uD835\uDD0Epf;쀀\uD835\uDD42cr;쀀\uD835\uDCA6ր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\xe1Μs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀\uD835\uDD0FĀ;eঽা拘ftarrow;懚idot;䄿ƀnpw৔ਖਛgȀLRlr৞৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊight\xe1οight\xe1ϊf;쀀\uD835\uDD43erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂ\xf2ࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼੝੠੷੼અઋ઎p;椅y;䐜Ādl੥੯iumSpace;恟lintrf;愳r;쀀\uD835\uDD10nusPlus;戓pf;쀀\uD835\uDD44c\xf2੶;䎜ҀJacefostuણધભીଔଙඑ඗ඞcy;䐊cute;䅃ƀaey઴હાron;䅇dil;䅅;䐝ƀgswે૰଎ativeƀMTV૓૟૨ediumSpace;怋hiĀcn૦૘\xeb૙eryThi\xee૙tedĀGL૸ଆreaterGreate\xf2ٳessLes\xf3ੈLine;䀊r;쀀\uD835\uDD11ȀBnptଢନଷ଺reak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪୼஡௫ఄ౞಄ದ೘ൡඅ櫬Āou୛୤ngruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊ஛ement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater΀;EFGLSTஶஷ஽௉௓௘௥扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲௽ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ೒拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨೹setĀ;E೰ೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀\uD835\uDCA9ilde耻\xd1䃑;䎝܀Eacdfgmoprstuvලෂ෉෕ෛ෠෧෼ขภยา฿ไlig;䅒cute耻\xd3䃓Āiy෎ීrc耻\xd4䃔;䐞blac;䅐r;쀀\uD835\uDD12rave耻\xd2䃒ƀaei෮ෲ෶cr;䅌ga;䎩cron;䎟pf;쀀\uD835\uDD46enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀\uD835\uDCAAash耻\xd8䃘iŬื฼de耻\xd5䃕es;樷ml耻\xd6䃖erĀBP๋๠Āar๐๓r;怾acĀek๚๜;揞et;掴arenthesis;
269揜Ҁacfhilors๿ງຊຏຒດຝະ໼rtialD;戂y;䐟r;쀀\uD835\uDD13i;䎦;䎠usMinus;䂱Āipຢອncareplan\xe5ڝf;愙Ȁ;eio຺ູ໠໤檻cedesȀ;EST່້໏໚扺qual;檯lantEqual;扼ilde;找me;怳Ādp໩໮uct;戏ortionĀ;aȥ໹l;戝Āci༁༆r;쀀\uD835\uDCAB;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀\uD835\uDD14pf;愚cr;쀀\uD835\uDCAC؀BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻\xae䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r\xbbཹ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;쀀\uD835\uDD16ortȀDLRUᄪᄴᄾᅉownArrow\xbbОeftArrow\xbb࢚ightArrow\xbb࿝pArrow;憑gma;䎣allCircle;战pf;쀀\uD835\uDD4Aɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀\uD835\uDCAEar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Th\xe1ྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et\xbbሓրHRSacfhiorsሾቄ቉ቕ቞ቱቶኟዂወዑORN耻\xde䃞ADE;愢ĀHc቎ቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀\uD835\uDD17Āeiቻ኉Dzኀ\0ኇefore;戴a;䎘Ācn኎ኘkSpace;쀀  Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀\uD835\uDD4BipleDot;惛Āctዖዛr;쀀\uD835\uDCAFrok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0᏿ᐄᐊᐐĀcrዻጁute耻\xda䃚rĀ;oጇገ憟cir;楉rǣጓ\0጖y;䐎ve;䅬Āiyጞጣrc耻\xdb䃛;䐣blac;䅰r;쀀\uD835\uDD18rave耻\xd9䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻፿on;䅲f;쀀\uD835\uDD4CЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥own\xe1ϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀\uD835\uDCB0ilde;䅨ml耻\xdc䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀\uD835\uDD19pf;쀀\uD835\uDD4Dcr;쀀\uD835\uDCB1dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀\uD835\uDD1Apf;쀀\uD835\uDD4Ecr;쀀\uD835\uDCB2Ȁfiosᓋᓐᓒᓘr;쀀\uD835\uDD1B;䎞pf;쀀\uD835\uDD4Fcr;쀀\uD835\uDCB3ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻\xdd䃝Āiyᔉᔍrc;䅶;䐫r;쀀\uD835\uDD1Cpf;쀀\uD835\uDD50cr;쀀\uD835\uDCB4ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidt\xe8૙a;䎖r;愨pf;愤cr;쀀\uD835\uDCB5௡ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻\xe1䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻\xe2䃢te肻\xb4̆;䐰lig耻\xe6䃦Ā;r\xb2ᖺ;쀀\uD835\uDD1Erave耻\xe0䃠ĀepᗊᗖĀfpᗏᗔsym;愵\xe8ᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚΀;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e\xbbᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢\xbb\xb9arr;捼Āgpᙣᙧon;䄅f;쀀\uD835\uDD52΀;Eaeiop዁ᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;e዁ᚒ\xf1ᚃing耻\xe5䃥ƀctyᚡᚦᚨr;쀀\uD835\uDCB6;䀪mpĀ;e዁ᚯ\xf1ʈilde耻\xe3䃣ml耻\xe4䃤Āciᛂᛈonin\xf4ɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰ᜼ᝃᝈ᝸᝽០៦ᠹᡐᜍ᤽᥈ᥰot;櫭Ācrᛶ᜞kȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e᜚᜛戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e\xbbᜭrkĀ;t፜᜷brk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓ᝛ᝡᝤᝨausĀ;eĊĉptyv;榰s\xe9ᜌno\xf5ēƀahwᝯ᝱ᝳ;䎲;愶een;扬r;쀀\uD835\uDD1Fg΀costuvwឍឝឳេ៕៛៞ƀaiuបពរ\xf0ݠrc;旯p\xbb፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄e\xe5ᑄ\xe5ᒭarow;植ƀako៭ᠦᠵĀcn៲ᠣkƀlst៺֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘᠝斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀\uD835\uDD53Ā;tᏋᡣom\xbbᏌtie;拈؀DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬ᣿ᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教΀;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ᣷᣹᣻᣽;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ᤟;敛;敘;攘;攔΀;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģ᥂bar耻\xa6䂦Ȁceioᥑᥖᥚᥠr;쀀\uD835\uDCB7mi;恏mĀ;e᜚᜜lƀ;bhᥨᥩᥫ䁜;槅sub;柈Ŭᥴ᥾lĀ;e᥹᥺怢t\xbb᥺pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭍᭒\0᯽\0ᰌƀcpr᦭ᦲ᧝ute;䄇̀;abcdsᦿᧀᧄ᧊᧕᧙戩nd;橄rcup;橉Āau᧏᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁\xeeړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;
269䄍dil耻\xe7䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻\xb8ƭptyv;榲t脀\xa2;eᨭᨮ䂢r\xe4Ʋr;쀀\uD835\uDD20ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark\xbbᩈ;䏇r΀;Ecefms᩟᩠ᩢᩫ᪤᪪᪮旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖᪚᪟\xbbཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it\xbb᪼ˬ᫇᫔᫺\0ᬊonĀ;eᫍᫎ䀺Ā;q\xc7\xc6ɭ᫙\0\0᫢aĀ;t᫞᫟䀬;䁀ƀ;fl᫨᫩᫫戁\xeeᅠeĀmx᫱᫶ent\xbb᫩e\xf3ɍǧ᫾\0ᬇĀ;dኻᬂot;橭n\xf4Ɇƀfryᬐᬔᬗ;쀀\uD835\uDD54o\xe4ɔ脀\xa9;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀\uD835\uDCB8Ā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\xe3᭳u\xe3᭵ee;拎edge;拏en耻\xa4䂤earrowĀlrᯮ᯳eft\xbbᮀight\xbbᮽe\xe4ᯝĀciᰁᰇonin\xf4Ƿnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰸᰻᰿ᱝᱩᱵᲊᲞᲬᲷ᳻᳿ᴍᵻᶑᶫᶻ᷆᷍r\xf2΁ar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸\xf2ᄳhĀ;vᱚᱛ怐\xbbऊūᱡᱧarow;椏a\xe3̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻\xb0䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀\uD835\uDD21arĀlrᲳᲵ\xbbࣜ\xbbသʀaegsv᳂͸᳖᳜᳠mƀ;oș᳊᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀\xf7;o᳧ᳰntimes;拇n\xf8᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀\uD835\uDD55ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedg\xe5\xfanƀadhᄮᵝᵧownarrow\xf3ᲃarpoonĀlrᵲᵶef\xf4Ჴigh\xf4ᲶŢᵿᶅkaro\xf7གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀\uD835\uDCB9;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃r\xf2Щa\xf2ྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄ὎὚ĀDoḆᴴo\xf4ᲉĀcsḎḔute耻\xe9䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻\xea䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀\uD835\uDD22ƀ;rsṐṑṗ檚ave耻\xe8䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et\xbbẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀\uD835\uDD56ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on\xbbớ;䏵ȀcsuvỪỳἋἣĀioữḱrc\xbbḮɩỹ\0\0ỻ\xedՈantĀglἂἆtr\xbbṝess\xbbṺƀaeiἒ἖Ἒls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯o\xf4͒ĀahὉὋ;䎷耻\xf0䃰Āmrὓὗl耻\xeb䃫o;悬ƀcipὡὤὧl;䀡s\xf4ծĀeoὬὴctatio\xeeՙnential\xe5չৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotse\xf1Ṅy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀\uD835\uDD23lig;耀filig;쀀fjƀaltῙ῜ῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀\uD835\uDD57ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao‌⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧‪‬\0‮耻\xbd䂽;慓耻\xbc䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻\xbe䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀\uD835\uDCBBࢀEabcdefgijlnorstv₂₉₟₥₰₴⃰⃵⃺⃿℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕ₝ute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽⃉ƀ;qsؾٌ⃄lan\xf4٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀\uD835\uDD24Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox\xbbℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀\uD835\uDD58Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqr׮ⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0↎pro\xf8₞r;楸qĀlqؿ↖les\xf3₈i\xed٫Āen↣↭rtneqq;쀀≩︀\xc5↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽r\xf2ΠȀilmr⇐⇔⇗⇛rs\xf0ᒄf\xbb․il\xf4کĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it\xbb∊lip;怦con;抹r;쀀\uD835\uDD25sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀\uD835\uDD59bar;怕ƀclt≯≴≸r;쀀\uD835\uDCBDas\xe8⇴rok;䄧Ābp⊂⊇ull;恃hen\xbbᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻\xed䃭ƀ;
269iyݱ⊰⊵rc耻\xee䃮;䐸Ācx⊼⊿y;䐵cl耻\xa1䂡ĀfrΟ⋉;쀀\uD835\uDD26rave耻\xec䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓in\xe5ގar\xf4ܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝do\xf4⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙er\xf3ᕣ\xe3⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀\uD835\uDD5Aa;䎹uest耻\xbf䂿Āci⎊⎏r;쀀\uD835\uDCBEnʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻\xef䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀\uD835\uDD27ath;䈷pf;쀀\uD835\uDD5Bǣ⏬\0⏱r;쀀\uD835\uDCBFrcy;䑘kcy;䑔Ѐacfghjos␋␖␢␧␭␱␵␻ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀\uD835\uDD28reen;䄸cy;䑅cy;䑜pf;쀀\uD835\uDD5Ccr;쀀\uD835\uDCC0஀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼r\xf2৆\xf2Εail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴ra\xeeࡌbda;䎻gƀ;dlࢎⓁⓃ;榑\xe5ࢎ;檅uo耻\xab䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝\xeb≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼\xecࢰ\xe2┩;
269䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□a\xe9⓶arpoonĀdu▯▴own\xbbњp\xbb०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoon\xf3྘quigarro\xf7⇰hreetimes;拋ƀ;qs▋ও◺lan\xf4বʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋ppro\xf8Ⓠot;拖qĀgq♃♅\xf4উgt\xf2⒌\xf4ছi\xedলƀilr♕࣡♚sht;楼;쀀\uD835\uDD29Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖r\xf2◁orne\xf2ᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che\xbb⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox\xbb⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽r\xebࣁgƀlmr⛿✍✔eftĀar০✇ight\xe1৲apsto;柼ight\xe1৽parrowĀlr✥✩ef\xf4⓭ight;憬ƀafl✶✹✽r;榅;쀀\uD835\uDD5Dus;樭imes;樴š❋❏st;戗\xe1ፎƀ;ef❗❘᠀旊nge\xbb❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇r\xf2ࢨorne\xf2ᶌarĀ;d྘➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀\uD835\uDCC1mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹re\xe5◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ᠛旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀\xc5⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻\xaf䂯Āet⡗⡙;時Ā;e⡞⡟朠se\xbb⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻ow\xeeҌef\xf4ए\xf0Ꮡker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle\xbbᘦr;쀀\uD835\uDD2Ao;愧ƀcdn⢯⢴⣉ro耻\xb5䂵Ȁ;acdᑤ⢽⣀⣄s\xf4ᚧir;櫰ot肻\xb7Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛\xf2−\xf0ઁĀdp⣩⣮els;抧f;쀀\uD835\uDD5EĀct⣸⣽r;쀀\uD835\uDCC2pos\xbbᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐௏쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la\xbb˞ute;䅄g;쀀∠⃒ʀ;Eiop඄⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉ro\xf8඄urĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻\xa0ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓΀;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸ui\xf6ୣĀei⩊⩎ar;椨\xed஘istĀ;s஠டr;쀀\uD835\uDD2BȀEest௅⩦⩹⩼ƀ;qs஼⩭௡ƀ;qs஼௅⩴lan\xf4௢i\xed௪Ā;rஶ⪁\xbbஷƀAap⪊⪍⪑r\xf2⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚΀AEadest⪷⪺⪾⫂⫅⫶⫹r\xf2⥦;쀀≦̸rr;憚r;急Ȁ;fqs఻⫎⫣⫯tĀar⫔⫙rro\xf7⫁ightarro\xf7⪐ƀ;qs఻⪺⫪lan\xf4ౕĀ;sౕ⫴\xbbశi\xedౝĀ;rవ⫾iĀ;eచథi\xe4ඐĀpt⬌⬑f;쀀\uD835\uDD5F膀\xac;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast୻⭕⭚⭟lle\xec୻l;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳u\xe5ಥĀ;cಘ⭸Ā;eಒ⭽\xf1ಘȀAait⮈⮋⮝⮧r\xf2⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow\xbb⮕riĀ;eೋೖ΀chimpqu⮽⯍⯙⬄୸⯤⯯Ȁ;cerല⯆ഷ⯉u\xe5൅;쀀\uD835\uDCC3ortɭ⬅\0\0⯖ar\xe1⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭\xe5೸\xe5ഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗ\xf1സȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇ\xecௗlde耻\xf1䃱\xe7ృiangleĀlrⱒⱜeftĀ;eచⱚ\xf1దightĀ;eೋⱥ\xf1೗Ā;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耻\xf3䃳ĀiyⴼⵅrĀ;c᪞ⵂ耻\xf4䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācr⵩⵭ir;榿;쀀\uD835\uDD2Cͯ⵹\0\0⵼\0ⶂn;䋛ave耻\xf2䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕ⶘ⶥⶨr\xf2᪀Āir⶝ⶠr;榾oss;榻n\xe5๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀\uD835\uDD60ƀaelⷔ⷗ǒr;榷rp;榹΀;adiosvⷪⷫⷮ⸈⸍⸐⸖戨r\xf2᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f\xbbⷿ耻\xaa䂪耻\xba䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧\xf2⸁ash耻\xf8䃸l;折iŬⸯ⸴de耻\xf5䃵esĀ;aǛ⸺s;樶ml耻\xf6䃶bar;挽ૡ⹞\0⹽\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;
269astЃ⹧⹲຅脀\xb6;l⹭⹮䂶le\xecЃɩ⹸\0\0⹻m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀\uD835\uDD2Dƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕ma\xf4੶ne;明ƀ;tv⺿⻀⻈䏀chfork\xbb´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎\xf6⇴sҀ;abcdemst⻳⻴ᤈ⻹⻽⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻\xb1ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀\uD835\uDD61nd耻\xa3䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷u\xe5໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾ppro\xf8⽃urlye\xf1໙\xf1໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨i\xedໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺\xf0⽵ƀdfp໬⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t໻⾴\xef໻rel;抰Āci⿀⿅r;쀀\uD835\uDCC5;䏈ncsp;怈̀fiopsu⿚⋢⿟⿥⿫⿱r;쀀\uD835\uDD2Epf;쀀\uD835\uDD62rime;恗cr;쀀\uD835\uDCC6ƀaeo⿸〉〓tĀei⿾々rnion\xf3ڰnt;樖stĀ;e【】䀿\xf1Ἑ\xf4༔઀ABHabcdefhilmnoprstux぀けさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがr\xf2Ⴓ\xf2ϝail;検ar\xf2ᱥar;楤΀cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕i\xe3ᅮmptyv;榳gȀ;del࿑らるろ;榒;榥\xe5࿑uo耻\xbb䂻rր;abcfhlpstw࿜ガクシスゼゾダッデナp;極Ā;f࿠ゴs;椠;椳s;椞\xeb≝\xf0✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶al\xf3༞ƀabrョリヮr\xf2៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes㄂㄄;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗\xec࿲\xe2ヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜn\xe5Ⴛar\xf4ྩt;断ƀilrㅩဣㅮsht;楽;쀀\uD835\uDD2FĀaoㅷㆆrĀduㅽㅿ\xbbѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘㇤㇮rrowĀ;t࿜ㆭa\xe9トarpoonĀduㆻㆿow\xeeㅾp\xbb႒eftĀah㇊㇐rrow\xf3࿪arpoon\xf3Ցightarrows;應quigarro\xf7ニhreetimes;拌g;䋚ingdotse\xf1ἲƀahm㈍㈐㈓r\xf2࿪a\xf2Ց;怏oustĀ;a㈞㈟掱che\xbb㈟mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾r\xebဃƀafl㉇㉊㉎r;榆;쀀\uD835\uDD63us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒ar\xf2㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀\uD835\uDCC7Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠re\xe5ㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛qu\xef➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡u\xe5ᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓i\xedሄ;䑁otƀ;be㌴ᵇ㌵担;橦΀Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒\xeb∨Ā;oਸ਼਴t耻\xa7䂧i;䀻war;椩mĀin㍩\xf0nu\xf3\xf1t;朶rĀ;o㍶⁕쀀\uD835\uDD30Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜i\xe4ᑤara\xec⹯耻\xad䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;q኱ኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲ar\xf2ᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetm\xe9㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀\uD835\uDD64aĀdr㑍ЂesĀ;u㑔㑕晠it\xbb㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍\xf1ᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝\xf1ᆮƀ;afᅻ㒦ְrť㒫ֱ\xbbᅼar\xf2ᅈȀcemt㒹㒾㓂㓅r;쀀\uD835\uDCC8tm\xee\xf1i\xec㐕ar\xe6ᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psilo\xeeỠh\xe9⺯s\xbb⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦ppro\xf8㋺urlye\xf1ᇾ\xf1ᇳƀaes㖂㖈㌛ppro\xf8㌚q\xf1㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻\xb9䂹耻\xb2䂲耻\xb3䂳;櫆Ā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㘦㘨\xeb∮Ā;oਫ਩war;椪lig耻\xdf䃟௡㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄r\xeb๟ƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀\uD835\uDD31Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮ppro\xf8዁im\xbbኬs\xf0ኞĀas㚺㚮\xf0዁rn耻\xfe䃾Ǭ̟㛆⋧es膀\xd7;bd㛏㛐㛘䃗Ā;
269aᤏ㛕r;樱;樰ƀeps㛡㛣㜀\xe1⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀\uD835\uDD65rk;櫚\xe1㍢rime;怴ƀaip㜏㜒㝤d\xe5ቈ΀adempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own\xbbᶻeftĀ;e⠀㜾\xf1म;扜ightĀ;e㊪㝋\xf1ၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀\uD835\uDCC9;䑆cy;䑛rok;䅧Āio㞋㞎x\xf4᝷headĀlr㞗㞠eftarro\xf7ࡏightarrow\xbbཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶r\xf2ϭar;楣Ācr㟜㟢ute耻\xfa䃺\xf2ᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻\xfb䃻;䑃ƀabh㠃㠆㠋r\xf2Ꭽlac;䅱a\xf2ᏃĀir㠓㠘sht;楾;쀀\uD835\uDD32rave耻\xf9䃹š㠧㠱rĀlr㠬㠮\xbbॗ\xbbႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r\xbb㡆op;挏ri;旸Āal㡖㡚cr;䅫肻\xa8͉Āgp㡢㡦on;䅳f;쀀\uD835\uDD66̀adhlsuᅋ㡸㡽፲㢑㢠own\xe1ᎳarpoonĀlr㢈㢌ef\xf4㠭igh\xf4㠯iƀ;hl㢙㢚㢜䏅\xbbᏺon\xbb㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r\xbb㢽op;挎ng;䅯ri;旹cr;쀀\uD835\uDCCAƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨\xbb᠓Āam㣯㣲r\xf2㢨l耻\xfc䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠r\xf2ϷarĀ;v㤦㤧櫨;櫩as\xe8ϡĀnr㤲㤷grt;榜΀eknprst㓣㥆㥋㥒㥝㥤㦖app\xe1␕othin\xe7ẖƀhir㓫⻈㥙op\xf4⾵Ā;hᎷ㥢\xefㆍĀiu㥩㥭gm\xe1㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟et\xe1㚜iangleĀlr㦪㦯eft\xbbथight\xbbၑy;䐲ash\xbbံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨa\xf2ᑩr;쀀\uD835\uDD33tr\xe9㦮suĀbp㧯㧱\xbbജ\xbb൙pf;쀀\uD835\uDD67ro\xf0໻tr\xe9㦴Ācu㨆㨋r;쀀\uD835\uDCCBĀbp㨐㨘nĀEe㦀㨖\xbb㥾nĀEe㦒㨞\xbb㦐igzag;榚΀cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀\uD835\uDD34pf;쀀\uD835\uDD68Ā;eᑹ㩦at\xe8ᑹcr;쀀\uD835\uDCCCૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜ៟tr\xe9៑r;쀀\uD835\uDD35ĀAa㪔㪗r\xf2σr\xf2৶;䎾ĀAa㪡㪤r\xf2θr\xf2৫a\xf0✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀\uD835\uDD69im\xe5ឲĀAa㫇㫊r\xf2ώr\xf2ਁĀcq㫒ីr;쀀\uD835\uDCCDĀpt៖㫜r\xe9។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻\xfd䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻\xa5䂥r;쀀\uD835\uDD36cy;䑗pf;쀀\uD835\uDD6Acr;쀀\uD835\uDCCEĀcm㬦㬩y;䑎l耻\xff䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡tr\xe6ᕟa;䎶r;쀀\uD835\uDD37cy;䐶grarr;懝pf;쀀\uD835\uDD6Bcr;쀀\uD835\uDCCFĀjn㮅㮇;怍j;怌'.split("").map(e=>e.charCodeAt(0))),cF=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]]);function cH(e){return e>=yr.ZERO&&e<=yr.NINE}(vZ=yr||(yr={}))[vZ.NUM=35]="NUM",vZ[vZ.SEMI=59]="SEMI",vZ[vZ.EQUALS=61]="EQUALS",vZ[vZ.ZERO=48]="ZERO",vZ[vZ.NINE=57]="NINE",vZ[vZ.LOWER_A=97]="LOWER_A",vZ[vZ.LOWER_F=102]="LOWER_F",vZ[vZ.LOWER_X=120]="LOWER_X",vZ[vZ.LOWER_Z=122]="LOWER_Z",vZ[vZ.UPPER_A=65]="UPPER_A",vZ[vZ.UPPER_F=70]="UPPER_F",vZ[vZ.UPPER_Z=90]="UPPER_Z",(v$=yi||(yi={}))[v$.VALUE_LENGTH=49152]="VALUE_LENGTH",v$[v$.BRANCH_LENGTH=16256]="BRANCH_LENGTH",v$[v$.JUMP_TABLE=127]="JUMP_TABLE",(vJ=ya||(ya={}))[vJ.EntityStart=0]="EntityStart",vJ[vJ.NumericStart=1]="NumericStart",vJ[vJ.NumericDecimal=2]="NumericDecimal",vJ[vJ.NumericHex=3]="NumericHex",vJ[vJ.NamedEntity=4]="NamedEntity",(v0=yo||(yo={}))[v0.Legacy=0]="Legacy",v0[v0.Strict=1]="Strict",v0[v0.Attribute=2]="Attribute";class cU{constructor(e,t,n){this.decodeTree=e,this.emitCodePoint=t,this.errors=n,this.state=ya.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=yo.Strict}startEntity(e){this.decodeMode=e,this.state=ya.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(e,t){switch(this.state){case ya.EntityStart:return e.charCodeAt(t)===yr.NUM?(this.state=ya.NumericStart,this.consumed+=1,this.stateNumericStart(e,t+1)):(this.state=ya.NamedEntity,this.stateNamedEntity(e,t));case ya.NumericStart:return this.stateNumericStart(e,t);case ya.NumericDecimal:return this.stateNumericDecimal(e,t);case ya.NumericHex:return this.stateNumericHex(e,t);case ya.NamedEntity:return this.stateNamedEntity(e,t)}}stateNumericStart(e,t){return t>=e.length?-1:(32|e.charCodeAt(t))===yr.LOWER_X?(this.state=ya.NumericHex,this.consumed+=1,this.stateNumericHex(e,t+1)):(this.state=ya.NumericDecimal,this.stateNumericDecimal(e,t))}addToNumericResult(e,t,n,i){if(t!==n){let a=n-t;this.result=this.result*Math.pow(i,a)+Number.parseInt(e.substr(t,a),i),this.consumed+=a}}stateNumericHex(e,t){let n=t;for(;t<e.length;){var i;let a=e.charCodeAt(t);if(!cH(a)&&(!((i=a)>=yr.UPPER_A)||!(i<=yr.UPPER_F))&&(!(i>=yr.LOWER_A)||!(i<=yr.LOWER_F)))return this.addToNumericResult(e,n,t,16),this.emitNumericEntity(a,3);t+=1}return this.addToNumericResult(e,n,t,16),-1}stateNumericDecimal(e,t){let n=t;for(;t<e.length;){let i=e.charCodeAt(t);if(!cH(i))return this.addToNumericResult(e,n,t,10),this.emitNumericEntity(i,2);t+=1}return this.addToNumericResult(e,n,t,10),-1}emitNumericEntity(e,t){var n,i,a;if(this.consumed<=t)return null===(n=this.errors)||void 0===n||n.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(e===yr.SEMI)this.consumed+=1;else if(this.decodeMode===yo.Strict)return 0;return this.emitCodePoint((i=this.result)>=55296&&i<=57343||i>1114111?65533:null!==(a=cF.get(i))&&void 0!==a?a:i,this.consumed),this.errors&&(e!==yr.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(e,t){let{decodeTree:n}=this,i=n[this.treeIndex],a=(i&yi.VALUE_LENGTH)>>14;for(;t<e.length;t++,this.excess++){let o=e.charCodeAt(t);if(this.treeIndex=function(e,t,n,i){let a=(t&yi.BRANCH_LENGTH)>>7,o=t&yi.JUMP_TABLE;if(0===a)return 0!==o&&i===o?n:-1;if(o){let t=i-o;return t<0||t>=a?-1:e[n+t]-1}let s=n,l=s+a-1;for(;s<=l;){let t=s+l>>>1,n=e[t];if(n<i)s=t+1;else{if(!(n>i))return e[t+a];l=t-1}}return -1}(n,i,this.treeIndex+Math.max(1,a),o),this.treeIndex<0)return 0===this.result||this.decodeMode===yo.Attribute&&(0===a||function(e){var t;return e===yr.EQUALS||(t=e)>=yr.UPPER_A&&t<=yr.UPPER_Z||t>=yr.LOWER_A&&t<=yr.LOWER_Z||cH(t)}(o))?0:this.emitNotTerminatedNamedEntity();if(0!=(a=((i=n[this.treeIndex])&yi.VALUE_LENGTH)>>14)){if(o===yr.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==yo.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return -1}emitNotTerminatedNamedEntity(){var e;let{result:t,decodeTree:n}=this,i=(n[t]&yi.VALUE_LENGTH)>>14;return this.emitNamedEntityData(t,i,this.consumed),null===(e=this.errors)||void 0===e||e.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(e,t,n){let{decodeTree:i}=this;return this.emitCodePoint(1===t?i[e]&~yi.VALUE_LENGTH:i[e+1],n),3===t&&this.emitCodePoint(i[e+2],n),n}end(){var e;switch(this.state){case ya.NamedEntity:return 0!==this.result&&(this.decodeMode!==yo.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case ya.NumericDecimal:return this.emitNumericEntity(0,2);case ya.NumericHex:return this.emitNumericEntity(0,3);case ya.NumericStart:return null===(e=this.errors)||void 0===e||e.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case ya.EntityStart:return 0}}}(v1=ys||(ys={})).HTML="http://www.w3.org/1999/xhtml",v1.MATHML="http://www.w3.org/1998/Math/MathML",v1.SVG="http://www.w3.org/2000/svg",v1.XLINK="http://www.w3.org/1999/xlink",v1.XML="http://www.w3.org/XML/1998/namespace",v
2691.XMLNS="http://www.w3.org/2000/xmlns/",(v2=yl||(yl={})).TYPE="type",v2.ACTION="action",v2.ENCODING="encoding",v2.PROMPT="prompt",v2.NAME="name",v2.COLOR="color",v2.FACE="face",v2.SIZE="size",(v4=yu||(yu={})).NO_QUIRKS="no-quirks",v4.QUIRKS="quirks",v4.LIMITED_QUIRKS="limited-quirks",(v5=yc||(yc={})).A="a",v5.ADDRESS="address",v5.ANNOTATION_XML="annotation-xml",v5.APPLET="applet",v5.AREA="area",v5.ARTICLE="article",v5.ASIDE="aside",v5.B="b",v5.BASE="base",v5.BASEFONT="basefont",v5.BGSOUND="bgsound",v5.BIG="big",v5.BLOCKQUOTE="blockquote",v5.BODY="body",v5.BR="br",v5.BUTTON="button",v5.CAPTION="caption",v5.CENTER="center",v5.CODE="code",v5.COL="col",v5.COLGROUP="colgroup",v5.DD="dd",v5.DESC="desc",v5.DETAILS="details",v5.DIALOG="dialog",v5.DIR="dir",v5.DIV="div",v5.DL="dl",v5.DT="dt",v5.EM="em",v5.EMBED="embed",v5.FIELDSET="fieldset",v5.FIGCAPTION="figcaption",v5.FIGURE="figure",v5.FONT="font",v5.FOOTER="footer",v5.FOREIGN_OBJECT="foreignObject",v5.FORM="form",v5.FRAME="frame",v5.FRAMESET="frameset",v5.H1="h1",v5.H2="h2",v5.H3="h3",v5.H4="h4",v5.H5="h5",v5.H6="h6",v5.HEAD="head",v5.HEADER="header",v5.HGROUP="hgroup",v5.HR="hr",v5.HTML="html",v5.I="i",v5.IMG="img",v5.IMAGE="image",v5.INPUT="input",v5.IFRAME="iframe",v5.KEYGEN="keygen",v5.LABEL="label",v5.LI="li",v5.LINK="link",v5.LISTING="listing",v5.MAIN="main",v5.MALIGNMARK="malignmark",v5.MARQUEE="marquee",v5.MATH="math",v5.MENU="menu",v5.META="meta",v5.MGLYPH="mglyph",v5.MI="mi",v5.MO="mo",v5.MN="mn",v5.MS="ms",v5.MTEXT="mtext",v5.NAV="nav",v5.NOBR="nobr",v5.NOFRAMES="noframes",v5.NOEMBED="noembed",v5.NOSCRIPT="noscript",v5.OBJECT="object",v5.OL="ol",v5.OPTGROUP="optgroup",v5.OPTION="option",v5.P="p",v5.PARAM="param",v5.PLAINTEXT="plaintext",v5.PRE="pre",v5.RB="rb",v5.RP="rp",v5.RT="rt",v5.RTC="rtc",v5.RUBY="ruby",v5.S="s",v5.SCRIPT="script",v5.SEARCH="search",v5.SECTION="section",v5.SELECT="select",v5.SOURCE="source",v5.SMALL="small",v5.SPAN="span",v5.STRIKE="strike",v5.STRONG="strong",v5.STYLE="style",v5.SUB="sub",v5.SUMMARY="summary",v5.SUP="sup",v5.TABLE="table",v5.TBODY="tbody",v5.TEMPLATE="template",v5.TEXTAREA="textarea",v5.TFOOT="tfoot",v5.TD="td",v5.TH="th",v5.THEAD="thead",v5.TITLE="title",v5.TR="tr",v5.TRACK="track",v5.TT="tt",v5.U="u",v5.UL="ul",v5.SVG="svg",v5.VAR="var",v5.WBR="wbr",v5.XMP="xmp",(v3=yd||(yd={}))[v3.UNKNOWN=0]="UNKNOWN",v3[v3.A=1]="A",v3[v3.ADDRESS=2]="ADDRESS",v3[v3.ANNOTATION_XML=3]="ANNOTATION_XML",v3[v3.APPLET=4]="APPLET",v3[v3.AREA=5]="AREA",v3[v3.ARTICLE=6]="ARTICLE",v3[v3.ASIDE=7]="ASIDE",v3[v3.B=8]="B",v3[v3.BASE=9]="BASE",v3[v3.BASEFONT=10]="BASEFONT",v3[v3.BGSOUND=11]="BGSOUND",v3[v3.BIG=12]="BIG",v3[v3.BLOCKQUOTE=13]="BLOCKQUOTE",v3[v3.BODY=14]="BODY",v3[v3.BR=15]="BR",v3[v3.BUTTON=16]="BUTTON",v3[v3.CAPTION=17]="CAPTION",v3[v3.CENTER=18]="CENTER",v3[v3.CODE=19]="CODE",v3[v3.COL=20]="COL",v3[v3.COLGROUP=21]="COLGROUP",v3[v3.DD=22]="DD",v3[v3.DESC=23]="DESC",v3[v3.DETAILS=24]="DETAILS",v3[v3.DIALOG=25]="DIALOG",v3[v3.DIR=26]="DIR",v3[v3.DIV=27]="DIV",v3[v3.DL=28]="DL",v3[v3.DT=29]="DT",v3[v3.EM=30]="EM",v3[v3.EMBED=31]="EMBED",v3[v3.FIELDSET=32]="FIELDSET",v3[v3.FIGCAPTION=33]="FIGCAPTION",v3[v3.FIGURE=34]="FIGURE",v3[v3.FONT=35]="FONT",v3[v3.FOOTER=36]="FOOTER",v3[v3.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",v3[v3.FORM=38]="FORM",v3[v3.FRAME=39]="FRAME",v3[v3.FRAMESET=40]="FRAMESET",v3[v3.H1=41]="H1",v3[v3.H2=42]="H2",v3[v3.H3=43]="H3",v3[v3.H4=44]="H4",v3[v3.H5=45]="H5",v3[v3.H6=46]="H6",v3[v3.HEAD=47]="HEAD",v3[v3.HEADER=48]="HEADER",v3[v3.HGROUP=49]="HGROUP",v3[v3.HR=50]="HR",v3[v3.HTML=51]="HTML",v3[v3.I=52]="I",v3[v3.IMG=53]="IMG",v3[v3.IMAGE=54]="IMAGE",v3[v3.INPUT=55]="INPUT",v3[v3.IFRAME=56]="IFRAME",v3[v3.KEYGEN=57]="KEYGEN",v3[v3.LABEL=58]="LABEL",v3[v3.LI=59]="LI",v3[v3.LINK=60]="LINK",v3[v3.LISTING=61]="LISTING",v3[v3.MAIN=62]="MAIN",v3[v3.MALIGNMARK=63]="MALIGNMARK",v3[v3.MARQUEE=64]="MARQUEE",v3[v3.MATH=65]="MATH",v3[v3.MENU=66]="MENU",v3[v3.META=67]="META",v3[v3.MGLYPH=68]="MGLYPH",v3[v3.MI=69]="MI",v3[v3.MO=70]="MO",v3[v3.MN=71]="MN",v3[v3.MS=72]="MS",v3[v3.MTEXT=73]="MTEXT",v3[v3.NAV=74]="NAV",v3[v3.NOBR=75]="NOBR",v3[v3.NOFRAMES=76]="NOFRAMES",v3[v3.NOEMBED=77]="NOEMBED",v3[v3.NOSCRIPT=78]="NOSCRIPT",v3[v3.OBJECT=79]="OBJECT",v3[v3.OL=80]="OL",v3[v3.OPTGROUP=81]="OPTGROUP",v3[v3.OPTION=82]="OPTION",v3[v3.P=83]="P",v3[v3.PARAM=84]="PARAM",v3[v3.PLAINTEXT=85]="PLAINTEXT",v3[v3.PRE=86]="PRE",v3[v3.RB=87]="RB",v3[v3.RP=88]="RP",v3[v3.RT=89]="RT",v3[v3.RTC=90]="RTC",v3[v3.RUBY=91]="RUBY",v3[v3.S=92]="S",v3[v3.SCR
269IPT=93]="SCRIPT",v3[v3.SEARCH=94]="SEARCH",v3[v3.SECTION=95]="SECTION",v3[v3.SELECT=96]="SELECT",v3[v3.SOURCE=97]="SOURCE",v3[v3.SMALL=98]="SMALL",v3[v3.SPAN=99]="SPAN",v3[v3.STRIKE=100]="STRIKE",v3[v3.STRONG=101]="STRONG",v3[v3.STYLE=102]="STYLE",v3[v3.SUB=103]="SUB",v3[v3.SUMMARY=104]="SUMMARY",v3[v3.SUP=105]="SUP",v3[v3.TABLE=106]="TABLE",v3[v3.TBODY=107]="TBODY",v3[v3.TEMPLATE=108]="TEMPLATE",v3[v3.TEXTAREA=109]="TEXTAREA",v3[v3.TFOOT=110]="TFOOT",v3[v3.TD=111]="TD",v3[v3.TH=112]="TH",v3[v3.THEAD=113]="THEAD",v3[v3.TITLE=114]="TITLE",v3[v3.TR=115]="TR",v3[v3.TRACK=116]="TRACK",v3[v3.TT=117]="TT",v3[v3.U=118]="U",v3[v3.UL=119]="UL",v3[v3.SVG=120]="SVG",v3[v3.VAR=121]="VAR",v3[v3.WBR=122]="WBR",v3[v3.XMP=123]="XMP";let cG=new Map([[yc.A,yd.A],[yc.ADDRESS,yd.ADDRESS],[yc.ANNOTATION_XML,yd.ANNOTATION_XML],[yc.APPLET,yd.APPLET],[yc.AREA,yd.AREA],[yc.ARTICLE,yd.ARTICLE],[yc.ASIDE,yd.ASIDE],[yc.B,yd.B],[yc.BASE,yd.BASE],[yc.BASEFONT,yd.BASEFONT],[yc.BGSOUND,yd.BGSOUND],[yc.BIG,yd.BIG],[yc.BLOCKQUOTE,yd.BLOCKQUOTE],[yc.BODY,yd.BODY],[yc.BR,yd.BR],[yc.BUTTON,yd.BUTTON],[yc.CAPTION,yd.CAPTION],[yc.CENTER,yd.CENTER],[yc.CODE,yd.CODE],[yc.COL,yd.COL],[yc.COLGROUP,yd.COLGROUP],[yc.DD,yd.DD],[yc.DESC,yd.DESC],[yc.DETAILS,yd.DETAILS],[yc.DIALOG,yd.DIALOG],[yc.DIR,yd.DIR],[yc.DIV,yd.DIV],[yc.DL,yd.DL],[yc.DT,yd.DT],[yc.EM,yd.EM],[yc.EMBED,yd.EMBED],[yc.FIELDSET,yd.FIELDSET],[yc.FIGCAPTION,yd.FIGCAPTION],[yc.FIGURE,yd.FIGURE],[yc.FONT,yd.FONT],[yc.FOOTER,yd.FOOTER],[yc.FOREIGN_OBJECT,yd.FOREIGN_OBJECT],[yc.FORM,yd.FORM],[yc.FRAME,yd.FRAME],[yc.FRAMESET,yd.FRAMESET],[yc.H1,yd.H1],[yc.H2,yd.H2],[yc.H3,yd.H3],[yc.H4,yd.H4],[yc.H5,yd.H5],[yc.H6,yd.H6],[yc.HEAD,yd.HEAD],[yc.HEADER,yd.HEADER],[yc.HGROUP,yd.HGROUP],[yc.HR,yd.HR],[yc.HTML,yd.HTML],[yc.I,yd.I],[yc.IMG,yd.IMG],[yc.IMAGE,yd.IMAGE],[yc.INPUT,yd.INPUT],[yc.IFRAME,yd.IFRAME],[yc.KEYGEN,yd.KEYGEN],[yc.LABEL,yd.LABEL],[yc.LI,yd.LI],[yc.LINK,yd.LINK],[yc.LISTING,yd.LISTING],[yc.MAIN,yd.MAIN],[yc.MALIGNMARK,yd.MALIGNMARK],[yc.MARQUEE,yd.MARQUEE],[yc.MATH,yd.MATH],[yc.MENU,yd.MENU],[yc.META,yd.META],[yc.MGLYPH,yd.MGLYPH],[yc.MI,yd.MI],[yc.MO,yd.MO],[yc.MN,yd.MN],[yc.MS,yd.MS],[yc.MTEXT,yd.MTEXT],[yc.NAV,yd.NAV],[yc.NOBR,yd.NOBR],[yc.NOFRAMES,yd.NOFRAMES],[yc.NOEMBED,yd.NOEMBED],[yc.NOSCRIPT,yd.NOSCRIPT],[yc.OBJECT,yd.OBJECT],[yc.OL,yd.OL],[yc.OPTGROUP,yd.OPTGROUP],[yc.OPTION,yd.OPTION],[yc.P,yd.P],[yc.PARAM,yd.PARAM],[yc.PLAINTEXT,yd.PLAINTEXT],[yc.PRE,yd.PRE],[yc.RB,yd.RB],[yc.RP,yd.RP],[yc.RT,yd.RT],[yc.RTC,yd.RTC],[yc.RUBY,yd.RUBY],[yc.S,yd.S],[yc.SCRIPT,yd.SCRIPT],[yc.SEARCH,yd.SEARCH],[yc.SECTION,yd.SECTION],[yc.SELECT,yd.SELECT],[yc.SOURCE,yd.SOURCE],[yc.SMALL,yd.SMALL],[yc.SPAN,yd.SPAN],[yc.STRIKE,yd.STRIKE],[yc.STRONG,yd.STRONG],[yc.STYLE,yd.STYLE],[yc.SUB,yd.SUB],[yc.SUMMARY,yd.SUMMARY],[yc.SUP,yd.SUP],[yc.TABLE,yd.TABLE],[yc.TBODY,yd.TBODY],[yc.TEMPLATE,yd.TEMPLATE],[yc.TEXTAREA,yd.TEXTAREA],[yc.TFOOT,yd.TFOOT],[yc.TD,yd.TD],[yc.TH,yd.TH],[yc.THEAD,yd.THEAD],[yc.TITLE,yd.TITLE],[yc.TR,yd.TR],[yc.TRACK,yd.TRACK],[yc.TT,yd.TT],[yc.U,yd.U],[yc.UL,yd.UL],[yc.SVG,yd.SVG],[yc.VAR,yd.VAR],[yc.WBR,yd.WBR],[yc.XMP,yd.XMP]]);function cq(e){var t;return null!==(t=cG.get(e))&&void 0!==t?t:yd.UNKNOWN}let cV=yd,cW={[ys.HTML]:new Set([cV.ADDRESS,cV.APPLET,cV.AREA,cV.ARTICLE,cV.ASIDE,cV.BASE,cV.BASEFONT,cV.BGSOUND,cV.BLOCKQUOTE,cV.BODY,cV.BR,cV.BUTTON,cV.CAPTION,cV.CENTER,cV.COL,cV.COLGROUP,cV.DD,cV.DETAILS,cV.DIR,cV.DIV,cV.DL,cV.DT,cV.EMBED,cV.FIELDSET,cV.FIGCAPTION,cV.FIGURE,cV.FOOTER,cV.FORM,cV.FRAME,cV.FRAMESET,cV.H1,cV.H2,cV.H3,cV.H4,cV.H5,cV.H6,cV.HEAD,cV.HEADER,cV.HGROUP,cV.HR,cV.HTML,cV.IFRAME,cV.IMG,cV.INPUT,cV.LI,cV.LINK,cV.LISTING,cV.MAIN,cV.MARQUEE,cV.MENU,cV.META,cV.NAV,cV.NOEMBED,cV.NOFRAMES,cV.NOSCRIPT,cV.OBJECT,cV.OL,cV.P,cV.PARAM,cV.PLAINTEXT,cV.PRE,cV.SCRIPT,cV.SECTION,cV.SELECT,cV.SOURCE,cV.STYLE,cV.SUMMARY,cV.TABLE,cV.TBODY,cV.TD,cV.TEMPLATE,cV.TEXTAREA,cV.TFOOT,cV.TH,cV.THEAD,cV.TITLE,cV.TR,cV.TRACK,cV.UL,cV.WBR,cV.XMP]),[ys.MATHML]:new Set([cV.MI,cV.MO,cV.MN,cV.MS,cV.MTEXT,cV.ANNOTATION_XML]),[ys.SVG]:new Set([cV.TITLE,cV.FOREIGN_OBJECT,cV.DESC]),[ys.XLINK]:new Set,[ys.XML]:new Set,[ys.XMLNS]:new Set}
vendor: 7,955 bytes, line 269
269,cY=new Set([cV.H1,cV.H2,cV.H3,cV.H4,cV.H5,cV.H6]);yc.STYLE,yc.SCRIPT,yc.XMP,yc.IFRAME,yc.NOEMBED,yc.NOFRAMES,yc.PLAINTEXT,(v6=yp||(yp={}))[v6.DATA=0]="DATA",v6[v6.RCDATA=1]="RCDATA",v6[v6.RAWTEXT=2]="RAWTEXT",v6[v6.SCRIPT_DATA=3]="SCRIPT_DATA",v6[v6.PLAINTEXT=4]="PLAINTEXT",v6[v6.TAG_OPEN=5]="TAG_OPEN",v6[v6.END_TAG_OPEN=6]="END_TAG_OPEN",v6[v6.TAG_NAME=7]="TAG_NAME",v6[v6.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",v6[v6.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",v6[v6.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",v6[v6.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",v6[v6.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",v6[v6.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",v6[v6.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",v6[v6.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",v6[v6.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",v6[v6.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",v6[v6.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",v6[v6.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",v6[v6.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",v6[v6.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",v6[v6.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",v6[v6.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",v6[v6.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",v6[v6.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",v6[v6.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",v6[v6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",v6[v6.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",v6[v6.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",v6[v6.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",v6[v6.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",v6[v6.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",v6[v6.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",v6[v6.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",v6[v6.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",v6[v6.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",v6[v6.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",v6[v6.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",v6[v6.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",v6[v6.BOGUS_COMMENT=40]="BOGUS_COMMENT",v6[v6.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",v6[v6.COMMENT_START=42]="COMMENT_START",v6[v6.COMMENT_START_DASH=43]="COMMENT_START_DASH",v6[v6.COMMENT=44]="COMMENT",v6[v6.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",v6[v6.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",v6[v6.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",v6[v6.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",v6[v6.COMMENT_END_DASH=49]="COMMENT_END_DASH",v6[v6.COMMENT_END=50]="COMMENT_END",v6[v6.COMMENT_END_BANG=51]="COMMENT_END_BANG",v6[v6.DOCTYPE=52]="DOCTYPE",v6[v6.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",v6[v6.DOCTYPE_NAME=54]="DOCTYPE_NAME",v6[v6.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",v6[v6.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",v6[v6.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",v6[v6.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",v6[v6.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",v6[v6.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",v6[v6.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",v6[v6.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",v6[v6.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",v6[v6.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",v6[v6.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",v6[v6.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",v6[v6.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",v6[v6.CDATA_SECTION=68]="CDATA_SECTION",v6[v6.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",v6[v6.CDATA_SECTION_END=70]="CDATA_SECTION_END",v6[v6.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",v6[v6.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND";let cK={DATA:yp.DATA,RCDATA:yp.RCDATA,RAWTEXT:yp.RAWTEXT,SCRIPT_DATA:yp.SCRIPT_DATA,PLAINTEXT:yp.PLAINTEXT,CDATA_SECTION:yp.CDATA_SECTION};function cX(e){return e>=ye.LATIN_CAPITAL_A&&e<=ye.LATIN_CAPITAL_Z}function cQ(e){return e>=ye.LATIN_SMALL_A&&e<=ye.LATIN_SMALL_Z||cX(e)}function cZ(e){return cQ(e)||e>=ye.DIGIT_0&&e<=ye.DIGIT_9}function c$(e){return e===ye.SPACE||e===ye.LINE_FEED||e===ye.TABULATION||e===ye.FORM_FEED}function cJ(e){return c$(e)||e===ye.SOLIDUS||e===ye.GREATER_THAN_SIGN}class c0{constructor(e,t){this.options=e,this.handler=t,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=yp.DATA,this.returnState=yp.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new cB(t),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new cU(cz,(e,t)=>{this.preprocessor.pos=this.entityStartPos+t-1,this._flushCodePointConsumedAsCharacterReference(e)},t.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(yt.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:e=>{this._err(yt.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+e)},validateNumericCharacterReference:e=>{let t=e===ye.NULL?yt.nullCharacterReference:e>1114111?yt.characterReferenceOutsideUnicodeRange:cD(e)?yt.surrogateCharacterReference:cO(e)?yt.noncharacterCharacterReference:cL(e)||e===ye.CARRIAGE_RETURN?yt.controlCharacterReference:null;t&&this._err(t,1)}}:void 0)}_err(e,t=0){var n,i;null===(i=(n=this.handler).onParseError)||void 0===i||i.call(n,this.preprocessor.getError(e,t))}getCurrentLocation(e){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-e,startOffset:this.preprocessor.offset-e,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;let e=this._consume();this._ensureHibernation()||this._callState(e)}this.inLoop=!1}}pause(){this.paused=!0}resume(e){if(!this.paused)throw Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||null==e||e())}write(e,t,n){this.active=!0,this.preprocessor.write(e,t),this._runParsingLoop(),this.paused||null==n||n()}insertHtmlAtCurrentPos(e){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(e),this._runParsingLoop()}_ensureHibernation(){return!!this.preprocessor.endOfChunkHit&&(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0)}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(e){this.consumedAfterSnapshot+=e;for(let t=0;t<e;t++)this.preprocessor.advance()}_consumeSequenceIfMatch(e,t){return!!this.preprocessor.startsWith(e,t)&&(this._advanceBy(e.length-1),!0)}_createStartTagToken(){this.currentToken={type:yn.START_TAG,tagName:"",tagID:yd.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:yn.END_TAG,tagName:"",tagID:yd.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(e){this.currentToken={type:yn.COMMENT,data:"",location:this.getCurrentLocation(e)}}_createDoctypeToken(e){this.currentToken={type:yn.DOCTYPE,name:e,forceQuirks:!1,publicId:null,
269systemId:null,location:this.currentLocation}}_createCharacterToken(e,t){this.currentCharacterToken={type:e,chars:t,location:this.currentLocation}}_createAttr(e){this.currentAttr={name:e,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var e,t;let n=this.currentToken;null===cj(n,this.currentAttr.name)?(n.attrs.push(this.currentAttr),n.location&&this.currentLocation&&((null!==(e=(t=n.location).attrs)&&void 0!==e?e:t.attrs=Object.create(null))[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue())):this._err(yt.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(e){this._emitCurrentCharacterToken(e.location),this.currentToken=null,e.location&&(e.location.endLine=this.preprocessor.line,e.location.endCol=this.preprocessor.col+1,e.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){let e=this.currentToken;this.prepareToken(e),e.tagID=cq(e.tagName),e.type===yn.START_TAG?(this.lastStartTagName=e.tagName,this.handler.onStartTag(e)):(e.attrs.length>0&&this._err(yt.endTagWithAttributes),e.selfClosing&&this._err(yt.endTagWithTrailingSolidus),this.handler.onEndTag(e)),this.preprocessor.dropParsedChunk()}emitCurrentComment(e){this.prepareToken(e),this.handler.onComment(e),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(e){this.prepareToken(e),this.handler.onDoctype(e),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(e){if(this.currentCharacterToken){switch(e&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=e.startLine,this.currentCharacterToken.location.endCol=e.startCol,this.currentCharacterToken.location.endOffset=e.startOffset),this.currentCharacterToken.type){case yn.CHARACTER:this.handler.onCharacter(this.currentCharacterToken);break;case yn.NULL_CHARACTER:this.handler.onNullCharacter(this.currentCharacterToken);break;case yn.WHITESPACE_CHARACTER:this.handler.onWhitespaceCharacter(this.currentCharacterToken)}this.currentCharacterToken=null}}_emitEOFToken(){let e=this.getCurrentLocation(0);e&&(e.endLine=e.startLine,e.endCol=e.startCol,e.endOffset=e.startOffset),this._emitCurrentCharacterToken(e),this.handler.onEof({type:yn.EOF,location:e}),this.active=!1}_appendCharToCurrentCharacterToken(e,t){if(this.currentCharacterToken){if(this.currentCharacterToken.type===e){this.currentCharacterToken.chars+=t;return}this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk()}this._createCharacterToken(e,t)}_emitCodePoint(e){let t=c$(e)?yn.WHITESPACE_CHARACTER:e===ye.NULL?yn.NULL_CHARACTER:yn.CHARACTER;this._appendCharToCurrentCharacterToken(t,String.fromCodePoint(e))}_emitChars(e){this._appendCharToCurrentCharacterToken(yn.CHARACTER,e)}_startCharacterReference(){this.returnState=this.state,this.state=yp.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?yo.Attribute:yo.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===yp.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===yp.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===yp.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(e){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(e):this._emitCodePoint(e)}_callState(e){switch(this.state){case yp.DATA:this._stateData(e);break;case yp.RCDATA:this._stateRcdata(e);break;case yp.RAWTEXT:this._stateRawtext(e);break;case yp.SCRIPT_DATA:this._stateScriptData(e);break;case yp.PLAINTEXT:this._statePlaintext(e);break;case yp.TAG_OPEN:this._stateTagOpen(e);break;case yp.END_TAG_OPEN:this._stateEndTagOpen(e);break;case yp.TAG_NAME:this._stateTagName(e);break;case yp.RCDATA_LESS_THAN_SIGN:this._stateRcdataLessThanSign(e);break;case yp.RCDATA_END_TAG_OPEN:this._stateRcdataEndTagOpen(e);break;case yp.RCDATA_END_TAG_NAME:this._stateRcdataEndTagName(e);break;case yp.RAWTEXT_LESS_THAN_SIGN:this._stateRawtextLessThanSign(e);break;case yp.RAWTEXT_END_TAG_OPEN:this._stateRawtextEndTagOpen(e);break;case yp.RAWTEXT_END_TAG_NAME:this._stateRawtextEndTagName(e);break;case yp.SCRIPT_DATA_LESS_THAN_SIGN:this._stateScriptDataLessThanSign(e);break;case yp.SCRIPT_DATA_END_TAG_OPEN:this._stateScriptDataEndTagOpen(e);break;case yp.SCRIPT_DATA_END_TAG_NAME:this._stateScriptDataEndTagName(e);break;case yp.SCRIPT_DATA_ESCAPE_START:this._stateScriptDataEscapeStart(e);break;case yp.SCRIPT_DATA_ESCAPE_START_DASH:this._stateScriptDataEscapeStartDash(e);break;case yp.SCRIPT_DATA_ESCAPED:this._stateScriptDataEscaped(e);break;case yp.SCRIPT_DATA_ESCAPED_DASH:this._stateScriptDataEscapedDash(e);break;case yp.SCRIPT_DATA_ESCAPED_DASH_DASH:this._stateScriptDataEscapedDashDash(e);break;case yp.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataEscapedLessThanSign(e);break;case yp.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:this._stateScriptDataEscapedEndTagOpen(e);break;case yp.SCRIPT_DATA_ESCAPED_END_TAG_NAME:this._stateScriptDataEscapedEndTagName(e);break;case yp.SCRIPT_DATA_DOUBLE_ESCAPE_START:this._stateScriptDataDoubleEscape
vendor: 32,619 bytes, line 269
269Start(e);break;case yp.SCRIPT_DATA_DOUBLE_ESCAPED:this._stateScriptDataDoubleEscaped(e);break;case yp.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:this._stateScriptDataDoubleEscapedDash(e);break;case yp.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:this._stateScriptDataDoubleEscapedDashDash(e);break;case yp.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:this._stateScriptDataDoubleEscapedLessThanSign(e);break;case yp.SCRIPT_DATA_DOUBLE_ESCAPE_END:this._stateScriptDataDoubleEscapeEnd(e);break;case yp.BEFORE_ATTRIBUTE_NAME:this._stateBeforeAttributeName(e);break;case yp.ATTRIBUTE_NAME:this._stateAttributeName(e);break;case yp.AFTER_ATTRIBUTE_NAME:this._stateAfterAttributeName(e);break;case yp.BEFORE_ATTRIBUTE_VALUE:this._stateBeforeAttributeValue(e);break;case yp.ATTRIBUTE_VALUE_DOUBLE_QUOTED:this._stateAttributeValueDoubleQuoted(e);break;case yp.ATTRIBUTE_VALUE_SINGLE_QUOTED:this._stateAttributeValueSingleQuoted(e);break;case yp.ATTRIBUTE_VALUE_UNQUOTED:this._stateAttributeValueUnquoted(e);break;case yp.AFTER_ATTRIBUTE_VALUE_QUOTED:this._stateAfterAttributeValueQuoted(e);break;case yp.SELF_CLOSING_START_TAG:this._stateSelfClosingStartTag(e);break;case yp.BOGUS_COMMENT:this._stateBogusComment(e);break;case yp.MARKUP_DECLARATION_OPEN:this._stateMarkupDeclarationOpen(e);break;case yp.COMMENT_START:this._stateCommentStart(e);break;case yp.COMMENT_START_DASH:this._stateCommentStartDash(e);break;case yp.COMMENT:this._stateComment(e);break;case yp.COMMENT_LESS_THAN_SIGN:this._stateCommentLessThanSign(e);break;case yp.COMMENT_LESS_THAN_SIGN_BANG:this._stateCommentLessThanSignBang(e);break;case yp.COMMENT_LESS_THAN_SIGN_BANG_DASH:this._stateCommentLessThanSignBangDash(e);break;case yp.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:this._stateCommentLessThanSignBangDashDash(e);break;case yp.COMMENT_END_DASH:this._stateCommentEndDash(e);break;case yp.COMMENT_END:this._stateCommentEnd(e);break;case yp.COMMENT_END_BANG:this._stateCommentEndBang(e);break;case yp.DOCTYPE:this._stateDoctype(e);break;case yp.BEFORE_DOCTYPE_NAME:this._stateBeforeDoctypeName(e);break;case yp.DOCTYPE_NAME:this._stateDoctypeName(e);break;case yp.AFTER_DOCTYPE_NAME:this._stateAfterDoctypeName(e);break;case yp.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._stateAfterDoctypePublicKeyword(e);break;case yp.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:this._stateBeforeDoctypePublicIdentifier(e);break;case yp.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypePublicIdentifierDoubleQuoted(e);break;case yp.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypePublicIdentifierSingleQuoted(e);break;case yp.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:this._stateAfterDoctypePublicIdentifier(e);break;case yp.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:this._stateBetweenDoctypePublicAndSystemIdentifiers(e);break;case yp.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._stateAfterDoctypeSystemKeyword(e);break;case yp.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:this._stateBeforeDoctypeSystemIdentifier(e);break;case yp.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:this._stateDoctypeSystemIdentifierDoubleQuoted(e);break;case yp.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:this._stateDoctypeSystemIdentifierSingleQuoted(e);break;case yp.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:this._stateAfterDoctypeSystemIdentifier(e);break;case yp.BOGUS_DOCTYPE:this._stateBogusDoctype(e);break;case yp.CDATA_SECTION:this._stateCdataSection(e);break;case yp.CDATA_SECTION_BRACKET:this._stateCdataSectionBracket(e);break;case yp.CDATA_SECTION_END:this._stateCdataSectionEnd(e);break;case yp.CHARACTER_REFERENCE:this._stateCharacterReference();break;case yp.AMBIGUOUS_AMPERSAND:this._stateAmbiguousAmpersand(e);break;default:throw Error("Unknown state")}}_stateData(e){switch(e){case ye.LESS_THAN_SIGN:this.state=yp.TAG_OPEN;break;case ye.AMPERSAND:this._startCharacterReference();break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this._emitCodePoint(e);break;case ye.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRcdata(e){switch(e){case ye.AMPERSAND:this._startCharacterReference();break;case ye.LESS_THAN_SIGN:this.state=yp.RCDATA_LESS_THAN_SIGN;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this._emitChars("�");break;case ye.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateRawtext(e){switch(e){case ye.LESS_THAN_SIGN:this.state=yp.RAWTEXT_LESS_THAN_SIGN;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this._emitChars("�");break;case ye.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptData(e){switch(e){case ye.LESS_THAN_SIGN:this.state=yp.SCRIPT_DATA_LESS_THAN_SIGN;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this._emitChars("�");break;case ye.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_statePlaintext(e){switch(e){case ye.NULL:this._err(yt.unexpectedNullCharacter),this._emitChars("�");break;case ye.EOF:this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateTagOpen(e){if(cQ(e))this._createStartTagToken(),this.state=yp.TAG_NAME,this._stateTagName(e);else switch(e){case ye.EXCLAMATION_MARK:this.state=yp.MARKUP_DECLARATION_OPEN;break;case ye.SOLIDUS:this.state=yp.END_TAG_OPEN;break;case ye.QUESTION_MARK:this._err(yt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=yp.BOGUS_COMMENT,this._stateBogusComment(e);break;case ye.EOF:this._err(yt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break;default:this._err(yt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=yp.DATA,this._stateData(e)}}_stateEndTagOpen(e){if(cQ(e))this._createEndTagToken(),this.state=yp.TAG_NAME,this._stateTagName(e);else switch(e){case ye.GREATER_THAN_SIGN:this._err(yt.missingEndTagName),this.state=yp.DATA;break;case ye.EOF:this._err(yt.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break;default:this._err(yt.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=yp.BOGUS_COMMENT,this._stateBogusComment(e)}}_stateTagName(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:this.state=yp.BEFORE_ATTRIBUTE_NAME;break;case ye.SOLIDUS:this.state=yp.SELF_CLOSING_START_TAG;break;case ye.GREATER_THAN_SIGN:this.state=yp.DATA,this.emitCurrentTagToken();break;case ye.NULL:this._err(yt.unexpectedNullCharacter),t.tagName+="�";break;case ye.EOF:this._err(yt.eofInTag),this._emitEOFToken();break;default:t.tagName+=String.fromCodePoint(cX(e)?e+32:e)}}_stateRcdataLessThanSign(e){e===ye.SOLIDUS?this.state=yp.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=yp.RCDATA,this._stateRcdata(e))}_stateRcdataEndTagOpen(e){cQ(e)?(this.state=yp.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(e)):(this._emitChars("</"),this.state=yp.RCDATA,this._stateRcdata(e))}handleSpecialEndTag(e){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();switch(this._createEndTagToken(),this.currentToken.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=yp.BEFORE_ATTRIBUTE_NAME,!1;case ye.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=yp.SELF_CLOSING_START_TAG,!1;case ye.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=yp.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=yp.RCDATA,this._stateRcdata(e))}_stateRawtextLessThanSign(e){e===ye.SOLIDUS?this.state=yp.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=yp.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagOpen(e){cQ(e)?(this.state=yp.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(e)):(this._emitChars("</"),this.state=yp.RAWTEXT,this._stateRawtext(e))}_stateRawtextEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=yp.RAWTEXT,this._stateRawtext(e))}_stateScriptDataLessThanSign(e){switch(e){case ye.SOLIDUS:this.state=yp.SCRIPT_DATA_END_TAG_OPEN;break;case ye.EXCLAMATION_MARK:this.state=yp.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break;default:this._emitChars("<"),this.state=yp.SCRIPT_DATA,this._stateScriptData(e)}}_stateScriptDataEndTagOpen(e){cQ(e)?(this.state=yp.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(e)):(this._emitChars("</"),this.state=yp.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=yp.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStart(e){e===ye.HYPHEN_MINUS?(this.state=yp.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=yp.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscapeStartDash(e){e===ye.HYPHEN_MINUS?(this.state=yp.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=yp.SCRIPT_DATA,this._stateScriptData(e))}_stateScriptDataEscaped(e){switch(e){case ye.HYPHEN_MINUS:this.state=yp.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break;case ye.LESS_THAN_SIGN:this.state=yp.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this._emitChars("�");break;case ye.EOF:this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataEscapedDash(e){switch(e){case ye.HYPHEN_MINUS:this.state=yp.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break;case ye.LESS_THAN_SIGN:this.state=yp.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this.state=yp.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case ye.EOF:this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=yp.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedDashDash(e){switch(e){case ye.HYPHEN_MINUS:this._emitChars("-");break;case ye.LESS_THAN_SIGN:this.state=yp.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break;case ye.GREATER_THAN_SIGN:this.state=yp.SCRIPT_DATA,this._emitChars(">");break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this.state=yp.SCRIPT_DATA_ESCAPED,this._emitChars("�");break;case ye.EOF:this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=yp.SCRIPT_DATA_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataEscapedLessThanSign(e){e===ye.SOLIDUS?this.state=yp.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:cQ(e)?(this._emitChars("<"),this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(e)):(this._emitChars("<"),this.state=yp.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagOpen(e){cQ(e)?(this.state=yp.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(e)):(this._emitChars("</"),this.state=yp.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataEscapedEndTagName(e){this.handleSpecialEndTag(e)&&(this._emitChars("</"),this.state=yp.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscapeStart(e){if(this.preprocessor.startsWith(cR.SCRIPT,!1)&&cJ(this.preprocessor.peek(cR.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<cR.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=yp.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(e))}_stateScriptDataDoubleEscaped(e){switch(e){case ye.HYPHEN_MINUS:this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break;case ye.LESS_THAN_SIGN:this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this._emitChars("�");break;case ye.EOF:this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDash(e){switch(e){case ye.HYPHEN_MINUS:this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break;case ye.LESS_THAN_SIGN:this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case ye.EOF:this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedDashDash(e){switch(e){case ye.HYPHEN_MINUS:this._emitChars("-");break;case ye.LESS_THAN_SIGN:this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break;case ye.GREATER_THAN_SIGN:this.state=yp.SCRIPT_DATA,this._emitChars(">");break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars("�");break;case ye.EOF:this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break;default:this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(e)}}_stateScriptDataDoubleEscapedLessThanSign(e){e===ye.SOLIDUS?(this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateScriptDataDoubleEscapeEnd(e){if(this.preprocessor.startsWith(cR.SCRIPT,!1)&&cJ(this.preprocessor.peek(cR.SCRIPT.length))){this._emitCodePoint(e);for(let e=0;e<cR.SCRIPT.length;e++)this._emitCodePoint(this._consume());this.state=yp.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=yp.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(e))}_stateBeforeAttributeName(e){switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.SOLIDUS:case ye.GREATER_THAN_SIGN:case ye.EOF:this.state=yp.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case ye.EQUALS_SIGN:this._err(yt.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=yp.ATTRIBUTE_NAME;break;default:this._createAttr(""),this.state=yp.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateAttributeName(e){switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:case ye.SOLIDUS:case ye.GREATER_THAN_SIGN:case ye.EOF:this._leaveAttrName(),this.state=yp.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(e);break;case ye.EQUALS_SIGN:this._leaveAttrName(),this.state=yp.BEFORE_ATTRIBUTE_VALUE;break;case ye.QUOTATION_MARK:case ye.APOSTROPHE:case ye.LESS_THAN_SIGN:this._err(yt.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(e);break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this.currentAttr.name+="�";break;default:this.currentAttr.name+=String.fromCodePoint(cX(e)?e+32:e)}}_stateAfterAttributeName(e){switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.SOLIDUS:this.state=yp.SELF_CLOSING_START_TAG;break;case ye.EQUALS_SIGN:this.state=yp.BEFORE_ATTRIBUTE_VALUE;break;case ye.GREATER_THAN_SIGN:this.state=yp.DATA,this.emitCurrentTagToken();break;case ye.EOF:this._err(yt.eofInTag),this._emitEOFToken();break;default:this._createAttr(""),this.state=yp.ATTRIBUTE_NAME,this._stateAttributeName(e)}}_stateBeforeAttributeValue(e){switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.QUOTATION_MARK:this.state=yp.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break;case ye.APOSTROPHE:this.state=yp.ATTRIBUTE_VALUE_SINGLE_QUOTED;break;case ye.GREATER_THAN_SIGN:this._err(yt.missingAttributeValue),this.state=yp.DATA,this.emitCurrentTagToken();break;default:this.state=yp.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(e)}}_stateAttributeValueDoubleQuoted(e){switch(e){case ye.QUOTATION_MARK:this.state=yp.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case ye.AMPERSAND:this._startCharacterReference();break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this.currentAttr.value+="�";break;case ye.EOF:this._err(yt.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueSingleQuoted(e){switch(e){case ye.APOSTROPHE:this.state=yp.AFTER_ATTRIBUTE_VALUE_QUOTED;break;case ye.AMPERSAND:this._startCharacterReference();break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this.currentAttr.value+="�";break;case ye.EOF:this._err(yt.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAttributeValueUnquoted(e){switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:this._leaveAttrValue(),this.state=yp.BEFORE_ATTRIBUTE_NAME;break;case ye.AMPERSAND:this._startCharacterReference();break;case ye.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=yp.DATA,this.emitCurrentTagToken();break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this.currentAttr.value+="�";break;case ye.QUOTATION_MARK:case ye.APOSTROPHE:case ye.LESS_THAN_SIGN:case ye.EQUALS_SIGN:case ye.GRAVE_ACCENT:this._err(yt.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(e);break;case ye.EOF:this._err(yt.eofInTag),this._emitEOFToken();break;default:this.currentAttr.value+=String.fromCodePoint(e)}}_stateAfterAttributeValueQuoted(e){switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:this._leaveAttrValue(),this.state=yp.BEFORE_ATTRIBUTE_NAME;break;case ye.SOLIDUS:this._leaveAttrValue(),this.state=yp.SELF_CLOSING_START_TAG;break;case ye.GREATER_THAN_SIGN:this._leaveAttrValue(),this.state=yp.DATA,this.emitCurrentTagToken();break;case ye.EOF:this._err(yt.eofInTag),this._emitEOFToken();break;default:this._err(yt.missingWhitespaceBetweenAttributes),this.state=yp.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateSelfClosingStartTag(e){switch(e){case ye.GREATER_THAN_SIGN:this.currentToken.selfClosing=!0,this.state=yp.DATA,this.emitCurrentTagToken();break;case ye.EOF:this._err(yt.eofInTag),this._emitEOFToken();break;default:this._err(yt.unexpectedSolidusInTag),this.state=yp.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(e)}}_stateBogusComment(e){let t=this.currentToken;switch(e){case ye.GREATER_THAN_SIGN:this.state=yp.DATA,this.emitCurrentComment(t);break;case ye.EOF:this.emitCurrentComment(t),this._emitEOFToken();break;case ye.NULL:this._err(yt.unexpectedNullCharacter),t.data+="�";break;default:t.data+=String.fromCodePoint(e)}}_stateMarkupDeclarationOpen(e){this._consumeSequenceIfMatch(cR.DASH_DASH,!0)?(this._createCommentToken(cR.DASH_DASH.length+1),this.state=yp.COMMENT_START):this._consumeSequenceIfMatch(cR.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(cR.DOCTYPE.length+1),this.state=yp.DOCTYPE):this._consumeSequenceIfMatch(cR.CDATA_START,!0)?this.inForeignNode?this.state=yp.CDATA_SECTION:(this._err(yt.cdataInHtmlContent),this._createCommentToken(cR.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=yp.BOGUS_COMMENT):this._ensureHibernation()||(this._err(yt.incorrectlyOpenedComment),this._createCommentToken(2),this.state=yp.BOGUS_COMMENT,this._stateBogusComment(e))}_stateCommentStart(e){switch(e){case ye.HYPHEN_MINUS:this.state=yp.COMMENT_START_DASH;break;case ye.GREATER_THAN_SIGN:{this._err(yt.abruptClosingOfEmptyComment),this.state=yp.DATA;let e=this.currentToken;this.emitCurrentComment(e);break}default:this.state=yp.COMMENT,this._stateComment(e)}}_stateCommentStartDash(e){let t=this.currentToken;switch(e){case ye.HYPHEN_MINUS:this.state=yp.COMMENT_END;break;case ye.GREATER_THAN_SIGN:this._err(yt.abruptClosingOfEmptyComment),this.state=yp.DATA,this.emitCurrentComment(t);break;case ye.EOF:this._err(yt.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=yp.COMMENT,this._stateComment(e)}}_stateComment(e){let t=this.currentToken;switch(e){case ye.HYPHEN_MINUS:this.state=yp.COMMENT_END_DASH;break;case ye.LESS_THAN_SIGN:t.data+="<",this.state=yp.COMMENT_LESS_THAN_SIGN;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),t.data+="�";break;case ye.EOF:this._err(yt.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+=String.fromCodePoint(e)}}_stateCommentLessThanSign(e){let t=this.currentToken;switch(e){case ye.EXCLAMATION_MARK:t.data+="!",this.state=yp.COMMENT_LESS_THAN_SIGN_BANG;break;case ye.LESS_THAN_SIGN:t.data+="<";break;default:this.state=yp.COMMENT,this._stateComment(e)}}_stateCommentLessThanSignBang(e){e===ye.HYPHEN_MINUS?this.state=yp.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=yp.COMMENT,this._stateComment(e))}_stateCommentLessThanSignBangDash(e){e===ye.HYPHEN_MINUS?this.state=yp.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=yp.COMMENT_END_DASH,this._stateCommentEndDash(e))}_stateCommentLessThanSignBangDashDash(e){e!==ye.GREATER_THAN_SIGN&&e!==ye.EOF&&this._err(yt.nestedComment),this.state=yp.COMMENT_END,this._stateCommentEnd(e)}_stateCommentEndDash(e){let t=this.currentToken;switch(e){case ye.HYPHEN_MINUS:this.state=yp.COMMENT_END;break;case ye.EOF:this._err(yt.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="-",this.state=yp.COMMENT,this._stateComment(e)}}_stateCommentEnd(e){let t=this.currentToken;switch(e){case ye.GREATER_THAN_SIGN:this.state=yp.DATA,this.emitCurrentComment(t);break;case ye.EXCLAMATION_MARK:this.state=yp.COMMENT_END_BANG;break;case ye.HYPHEN_MINUS:t.data+="-";break;case ye.EOF:this._err(yt.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--",this.state=yp.COMMENT,this._stateComment(e)}}_stateCommentEndBang(e){let t=this.currentToken;switch(e){case ye.HYPHEN_MINUS:t.data+="--!",this.state=yp.COMMENT_END_DASH;break;case ye.GREATER_THAN_SIGN:this._err(yt.incorrectlyClosedComment),this.state=yp.DATA,this.emitCurrentComment(t);break;case ye.EOF:this._err(yt.eofInComment),this.emitCurrentComment(t),this._emitEOFToken();break;default:t.data+="--!",this.state=yp.COMMENT,this._stateComment(e)}}_stateDoctype(e){switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:this.state=yp.BEFORE_DOCTYPE_NAME;break;case ye.GREATER_THAN_SIGN:this.state=yp.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e);break;case ye.EOF:{this._err(yt.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._err(yt.missingWhitespaceBeforeDoctypeName),this.state=yp.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(e)}}_stateBeforeDoctypeName(e){if(cX(e))this._createDoctypeToken(String.fromCharCode(e+32)),this.state=yp.DOCTYPE_NAME;else switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.NULL:this._err(yt.unexpectedNullCharacter),this._createDoctypeToken("�"),this.state=yp.DOCTYPE_NAME;break;case ye.GREATER_THAN_SIGN:{this._err(yt.missingDoctypeName),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this.state=yp.DATA;break}case ye.EOF:{this._err(yt.eofInDoctype),this._createDoctypeToken(null);let e=this.currentToken;e.forceQuirks=!0,this.emitCurrentDoctype(e),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(e)),this.state=yp.DOCTYPE_NAME}}_stateDoctypeName(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:this.state=yp.AFTER_DOCTYPE_NAME;break;case ye.GREATER_THAN_SIGN:this.state=yp.DATA,this.emitCurrentDoctype(t);break;case ye.NULL:this._err(yt.unexpectedNullCharacter),t.name+="�";break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.name+=String.fromCodePoint(cX(e)?e+32:e)}}_stateAfterDoctypeName(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.GREATER_THAN_SIGN:this.state=yp.DATA,this.emitCurrentDoctype(t);break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._consumeSequenceIfMatch(cR.PUBLIC,!1)?this.state=yp.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(cR.SYSTEM,!1)?this.state=yp.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(yt.invalidCharacterSequenceAfterDoctypeName),t.forceQuirks=!0,this.state=yp.BOGUS_DOCTYPE,this._stateBogusDoctype(e))}}_stateAfterDoctypePublicKeyword(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:this.state=yp.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break;case ye.QUOTATION_MARK:this._err(yt.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=yp.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case ye.APOSTROPHE:this._err(yt.missingWhitespaceAfterDoctypePublicKeyword),t.publicId="",this.state=yp.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case ye.GREATER_THAN_SIGN:this._err(yt.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=yp.DATA,this.emitCurrentDoctype(t);break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yt.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=yp.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.QUOTATION_MARK:t.publicId="",this.state=yp.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break;case ye.APOSTROPHE:t.publicId="",this.state=yp.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break;case ye.GREATER_THAN_SIGN:this._err(yt.missingDoctypePublicIdentifier),t.forceQuirks=!0,this.state=yp.DATA,this.emitCurrentDoctype(t);break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yt.missingQuoteBeforeDoctypePublicIdentifier),t.forceQuirks=!0,this.state=yp.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypePublicIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case ye.QUOTATION_MARK:this.state=yp.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),t.publicId+="�";break;case ye.GREATER_THAN_SIGN:this._err(yt.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=yp.DATA;break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateDoctypePublicIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case ye.APOSTROPHE:this.state=yp.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),t.publicId+="�";break;case ye.GREATER_THAN_SIGN:this._err(yt.abruptDoctypePublicIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=yp.DATA;break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.publicId+=String.fromCodePoint(e)}}_stateAfterDoctypePublicIdentifier(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:this.state=yp.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break;case ye.GREATER_THAN_SIGN:this.state=yp.DATA,this.emitCurrentDoctype(t);break;case ye.QUOTATION_MARK:this._err(yt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=yp.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ye.APOSTROPHE:this._err(yt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),t.systemId="",this.state=yp.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yt.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=yp.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBetweenDoctypePublicAndSystemIdentifiers(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=yp.DATA;break;case ye.QUOTATION_MARK:t.systemId="",this.state=yp.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ye.APOSTROPHE:t.systemId="",this.state=yp.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yt.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=yp.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateAfterDoctypeSystemKeyword(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:this.state=yp.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break;case ye.QUOTATION_MARK:this._err(yt.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=yp.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ye.APOSTROPHE:this._err(yt.missingWhitespaceAfterDoctypeSystemKeyword),t.systemId="",this.state=yp.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ye.GREATER_THAN_SIGN:this._err(yt.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=yp.DATA,this.emitCurrentDoctype(t);break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yt.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=yp.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBeforeDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.QUOTATION_MARK:t.systemId="",this.state=yp.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break;case ye.APOSTROPHE:t.systemId="",this.state=yp.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break;case ye.GREATER_THAN_SIGN:this._err(yt.missingDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=yp.DATA,this.emitCurrentDoctype(t);break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yt.missingQuoteBeforeDoctypeSystemIdentifier),t.forceQuirks=!0,this.state=yp.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateDoctypeSystemIdentifierDoubleQuoted(e){let t=this.currentToken;switch(e){case ye.QUOTATION_MARK:this.state=yp.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),t.systemId+="�";break;case ye.GREATER_THAN_SIGN:this._err(yt.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=yp.DATA;break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateDoctypeSystemIdentifierSingleQuoted(e){let t=this.currentToken;switch(e){case ye.APOSTROPHE:this.state=yp.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break;case ye.NULL:this._err(yt.unexpectedNullCharacter),t.systemId+="�";break;case ye.GREATER_THAN_SIGN:this._err(yt.abruptDoctypeSystemIdentifier),t.forceQuirks=!0,this.emitCurrentDoctype(t),this.state=yp.DATA;break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:t.systemId+=String.fromCodePoint(e)}}_stateAfterDoctypeSystemIdentifier(e){let t=this.currentToken;switch(e){case ye.SPACE:case ye.LINE_FEED:case ye.TABULATION:case ye.FORM_FEED:break;case ye.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=yp.DATA;break;case ye.EOF:this._err(yt.eofInDoctype),t.forceQuirks=!0,this.emitCurrentDoctype(t),this._emitEOFToken();break;default:this._err(yt.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=yp.BOGUS_DOCTYPE,this._stateBogusDoctype(e)}}_stateBogusDoctype(e){let t=this.currentToken;switch(e){case ye.GREATER_THAN_SIGN:this.emitCurrentDoctype(t),this.state=yp.DATA;break;case ye.NULL:this._err(yt.unexpectedNullCharacter);break;case ye.EOF:this.emitCurrentDoctype(t),this._emitEOFToken()}}_stateCdataSection(e){switch(e){case ye.RIGHT_SQUARE_BRACKET:this.state=yp.CDATA_SECTION_BRACKET;break;case ye.EOF:this._err(yt.eofInCdata),this._emitEOFToken();break;default:this._emitCodePoint(e)}}_stateCdataSectionBracket(e){e===ye.RIGHT_SQUARE_BRACKET?this.state=yp.CDATA_SECTION_END:(this._emitChars("]"),this.state=yp.CDATA_SECTION,this._stateCdataSection(e))}_stateCdataSectionEnd(e){switch(e){case ye.GREATER_THAN_SIGN:this.state=yp.DATA;break;case ye.RIGHT_SQUARE_BRACKET:this._emitChars("]");break;default:this._emitChars("]]"),this.state=yp.CDATA_SECTION,this._stateCdataSection(e)}}_stateCharacterReference(){let e=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(e<0){if(this.preprocessor.lastChunkWritten)e=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}}
vendor: 4,175 bytes, line 269
2690===e?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(ye.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&cZ(this.preprocessor.peek(1))?yp.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(e){cZ(e)?this._flushCodePointConsumedAsCharacterReference(e):(e===ye.SEMICOLON&&this._err(yt.unknownNamedCharacterReference),this.state=this.returnState,this._callState(e))}}let c1=new Set([yd.DD,yd.DT,yd.LI,yd.OPTGROUP,yd.OPTION,yd.P,yd.RB,yd.RP,yd.RT,yd.RTC]),c2=new Set([...c1,yd.CAPTION,yd.COLGROUP,yd.TBODY,yd.TD,yd.TFOOT,yd.TH,yd.THEAD,yd.TR]),c4=new Set([yd.APPLET,yd.CAPTION,yd.HTML,yd.MARQUEE,yd.OBJECT,yd.TABLE,yd.TD,yd.TEMPLATE,yd.TH]),c5=new Set([...c4,yd.OL,yd.UL]),c3=new Set([...c4,yd.BUTTON]),c6=new Set([yd.ANNOTATION_XML,yd.MI,yd.MN,yd.MO,yd.MS,yd.MTEXT]),c7=new Set([yd.DESC,yd.FOREIGN_OBJECT,yd.TITLE]),c8=new Set([yd.TR,yd.TEMPLATE,yd.HTML]),c9=new Set([yd.TBODY,yd.TFOOT,yd.THEAD,yd.TEMPLATE,yd.HTML]),de=new Set([yd.TABLE,yd.TEMPLATE,yd.HTML]),dt=new Set([yd.TD,yd.TH]);class dn{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(e,t,n){this.treeAdapter=t,this.handler=n,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=yd.UNKNOWN,this.current=e}_indexOf(e){return this.items.lastIndexOf(e,this.stackTop)}_isInTemplate(){return this.currentTagId===yd.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ys.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(e,t){this.stackTop++,this.items[this.stackTop]=e,this.current=e,this.tagIDs[this.stackTop]=t,this.currentTagId=t,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(e,t,!0)}pop(){let e=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!0)}replace(e,t){let n=this._indexOf(e);this.items[n]=t,n===this.stackTop&&(this.current=t)}insertAfter(e,t,n){let i=this._indexOf(e)+1;this.items.splice(i,0,t),this.tagIDs.splice(i,0,n),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.current&&void 0!==this.currentTagId&&this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(e){let t=this.stackTop+1;do t=this.tagIDs.lastIndexOf(e,t-1);while(t>0&&this.treeAdapter.getNamespaceURI(this.items[t])!==ys.HTML);this.shortenToLength(Math.max(t,0))}shortenToLength(e){for(;this.stackTop>=e;){let t=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,this.stackTop<e)}}popUntilElementPopped(e){let t=this._indexOf(e);this.shortenToLength(Math.max(t,0))}popUntilPopped(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(Math.max(n,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(cY,ys.HTML)}popUntilTableCellPopped(){this.popUntilPopped(dt,ys.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(e,t){for(let n=this.stackTop;n>=0;n--)if(e.has(this.tagIDs[n])&&this.treeAdapter.getNamespaceURI(this.items[n])===t)return n;return -1}clearBackTo(e,t){let n=this._indexOfTagNames(e,t);this.shortenToLength(n+1)}clearBackToTableContext(){this.clearBackTo(de,ys.HTML)}clearBackToTableBodyContext(){this.clearBackTo(c9,ys.HTML)}clearBackToTableRowContext(){this.clearBackTo(c8,ys.HTML)}remove(e){let t=this._indexOf(e);t>=0&&(t===this.stackTop?this.pop():(this.items.splice(t,1),this.tagIDs.splice(t,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(e,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===yd.BODY?this.items[1]:null}contains(e){return this._indexOf(e)>-1}getCommonAncestor(e){let t=this._indexOf(e)-1;return t>=0?this.items[t]:null}isRootHtmlElementCurrent(){return 0===this.stackTop&&this.tagIDs[0]===yd.HTML}hasInDynamicScope(e,t){for(let n=this.stackTop;n>=0;n--){let i=this.tagIDs[n];switch(this.treeAdapter.getNamespaceURI(this.items[n])){case ys.HTML:if(i===e)return!0;
vendor: 13,834 bytes, line 269
269if(t.has(i))return!1;break;case ys.SVG:if(c7.has(i))return!1;break;case ys.MATHML:if(c6.has(i))return!1}}return!0}hasInScope(e){return this.hasInDynamicScope(e,c4)}hasInListItemScope(e){return this.hasInDynamicScope(e,c5)}hasInButtonScope(e){return this.hasInDynamicScope(e,c3)}hasNumberedHeaderInScope(){for(let e=this.stackTop;e>=0;e--){let t=this.tagIDs[e];switch(this.treeAdapter.getNamespaceURI(this.items[e])){case ys.HTML:if(cY.has(t))return!0;if(c4.has(t))return!1;break;case ys.SVG:if(c7.has(t))return!1;break;case ys.MATHML:if(c6.has(t))return!1}}return!0}hasInTableScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ys.HTML)switch(this.tagIDs[t]){case e:return!0;case yd.TABLE:case yd.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let e=this.stackTop;e>=0;e--)if(this.treeAdapter.getNamespaceURI(this.items[e])===ys.HTML)switch(this.tagIDs[e]){case yd.TBODY:case yd.THEAD:case yd.TFOOT:return!0;case yd.TABLE:case yd.HTML:return!1}return!0}hasInSelectScope(e){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===ys.HTML)switch(this.tagIDs[t]){case e:return!0;case yd.OPTION:case yd.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;void 0!==this.currentTagId&&c1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;void 0!==this.currentTagId&&c2.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(e){for(;void 0!==this.currentTagId&&this.currentTagId!==e&&c2.has(this.currentTagId);)this.pop()}}(v7=yh||(yh={}))[v7.Marker=0]="Marker",v7[v7.Element=1]="Element";let dr={type:yh.Marker};class di{constructor(e){this.treeAdapter=e,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(e,t){let n=[],i=t.length,a=this.treeAdapter.getTagName(e),o=this.treeAdapter.getNamespaceURI(e);for(let e=0;e<this.entries.length;e++){let t=this.entries[e];if(t.type===yh.Marker)break;let{element:s}=t;if(this.treeAdapter.getTagName(s)===a&&this.treeAdapter.getNamespaceURI(s)===o){let t=this.treeAdapter.getAttrList(s);t.length===i&&n.push({idx:e,attrs:t})}}return n}_ensureNoahArkCondition(e){if(this.entries.length<3)return;let t=this.treeAdapter.getAttrList(e),n=this._getNoahArkConditionCandidates(e,t);if(n.length<3)return;let i=new Map(t.map(e=>[e.name,e.value])),a=0;for(let e=0;e<n.length;e++){let t=n[e];t.attrs.every(e=>i.get(e.name)===e.value)&&(a+=1)>=3&&this.entries.splice(t.idx,1)}}insertMarker(){this.entries.unshift(dr)}pushElement(e,t){this._ensureNoahArkCondition(e),this.entries.unshift({type:yh.Element,element:e,token:t})}insertElementAfterBookmark(e,t){let n=this.entries.indexOf(this.bookmark);this.entries.splice(n,0,{type:yh.Element,element:e,token:t})}removeEntry(e){let t=this.entries.indexOf(e);-1!==t&&this.entries.splice(t,1)}clearToLastMarker(){let e=this.entries.indexOf(dr);-1===e?this.entries.length=0:this.entries.splice(0,e+1)}getElementEntryInScopeWithTagName(e){let t=this.entries.find(t=>t.type===yh.Marker||this.treeAdapter.getTagName(t.element)===e);return t&&t.type===yh.Element?t:null}getElementEntry(e){return this.entries.find(t=>t.type===yh.Element&&t.element===e)}}let da={createDocument:()=>({nodeName:"#document",mode:yu.NO_QUIRKS,childNodes:[]}),createDocumentFragment:()=>({nodeName:"#document-fragment",childNodes:[]}),createElement:(e,t,n)=>({nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}),createCommentNode:e=>({nodeName:"#comment",data:e,parentNode:null}),createTextNode:e=>({nodeName:"#text",value:e,parentNode:null}),appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){let i=e.childNodes.indexOf(n);e.childNodes.splice(i,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent:e=>e.content,setDocumentType(e,t,n,i){let a=e.childNodes.find(e=>"#documentType"===e.nodeName);a?(a.name=t,a.publicId=n,a.systemId=i):da.appendChild(e,{nodeName:"#documentType",name:t,publicId:n,systemId:i,parentNode:null})},setDocumentMode(e,t){e.mode=t},getDocumentMode:e=>e.mode,detachNode(e){if(e.parentNode){let t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){let n=e.childNodes[e.childNodes.length-1];if(da.isTextNode(n)){n.value+=t;return}}da.appendChild(e,da.createTextNode(t))},insertTextBefore(e,t,n){let i=e.childNodes[e.childNodes.indexOf(n)-1];i&&da.isTextNode(i)?i.value+=t:da.insertBefore(e,da.createTextNode(t),n)},adoptAttributes(e,t){let n=new Set(e.attrs.map(e=>e.name));for(let i=0;i<t.length;i++)n.has(t[i].name)||e.attrs.push(t[i])},getFirstChild:e=>e.childNodes[0],getChildNodes:e=>e.childNodes,getParentNode:e=>e.parentNode,getAttrList:e=>e.attrs,getTagName:e=>e.tagName,getNamespaceURI:e=>e.namespaceURI,getTextNodeContent:e=>e.value,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName:e=>e.name,getDocumentTypeNodePublicId:e=>e.publicId,getDocumentTypeNodeSystemId:e=>e.systemId,isTextNode:e=>"#text"===e.nodeName,isCommentNode:e=>"#comment"===e.nodeName,isDocumentTypeNode:e=>"#documentType"===e.nodeName,isElementNode:e=>Object.prototype.hasOwnProperty.call(e,"tagName"),setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},ds="html",dl=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],du=[...dl,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],dc=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),dd=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],dp=[...dd,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function dh(e,t){return t.some(t=>e.startsWith(t))}let dm={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},df=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(e=>[e.toLowerCase(),e])),dg=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ys.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ys.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ys.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ys.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ys.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ys.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ys.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:ys.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ys.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ys.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ys.XMLNS}]]),dx=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(e=>[e.toLowerCase(),e])),dv=new Set([yd.B,yd.BIG,yd.BLOCKQUOTE,yd.BODY,yd.BR,yd.CENTER,yd.CODE,yd.DD,yd.DIV,yd.DL,yd.DT,yd.EM,yd.EMBED,yd.H1,yd.H2,yd.H3,yd.H4,yd.H5,yd.H6,yd.HEAD,yd.HR,yd.I,yd.IMG,yd.LI,yd.LISTING,yd.MENU,yd.META,yd.NOBR,yd.OL,yd.P,yd.PRE,yd.RUBY,yd.S,yd.SMALL,yd.SPAN,yd.STRONG,yd.STRIKE,yd.SUB,yd.SUP,yd.TABLE,yd.TT,yd.U,yd.UL,yd.VAR]);function dy(e){for(let t=0;t<e.attrs.length;t++)if("definitionurl"===e.attrs[t].name){e.attrs[t].name="definitionURL";break}}function db(e){for(let t=0;t<e.attrs.length;t++){let n=df.get(e.attrs[t].name);null!=n&&(e.attrs[t].name=n)}}function dw(e){for(let t=0;t<e.attrs.length;t++){let n=dg.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}(v8=ym||(ym={}))[v8.INITIAL=0]="INITIAL",v8[v8.BEFORE_HTML=1]="BEFORE_HTML",v8[v8.BEFORE_HEAD=2]="BEFORE_HEAD",v8[v8.IN_HEAD=3]="IN_HEAD",v8[v8.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",v8[v8.AFTER_HEAD=5]="AFTER_HEAD",v8[v8.IN_BODY=6]="IN_BODY",v8[v8.TEXT=7]="TEXT",v8[v8.IN_TABLE=8]="IN_TABLE",v8[v8.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",v8[v8.IN_CAPTION=10]="IN_CAPTION",v8[v8.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",v8[v8.IN_TABLE_BODY=12]="IN_TABLE_BODY",v8[v8.IN_ROW=13]="IN_ROW",v8[v8.IN_CELL=14]="IN_CELL",v8[v8.IN_SELECT=15]="IN_SELECT",v8[v8.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",v8[v8.IN_TEMPLATE=17]="IN_TEMPLATE",v8[v8.AFTER_BODY=18]="AFTER_BODY",v8[v8.IN_FRAMESET=19]="IN_FRAMESET",v8[v8.AFTER_FRAMESET=20]="AFTER_FRAMESET",v8[v8.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",v8[v8.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET";let dk={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},d_=new Set([yd.TABLE,yd.TBODY,yd.TFOOT,yd.THEAD,yd.TR]),dT={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:da,onParseError:null};class dE{constructor(e,t,n=null,i=null){this.fragmentContext=n,this.scriptHandler=i,this.currentToken=null,this.stopped=!1,this.insertionMode=ym.INITIAL,this.originalInsertionMode=ym.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...dT,...e},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=t??this.treeAdapter.createDocument(),this.tokenizer=new c0(this.options,this),this.activeFormattingElements=new di(this.treeAdapter),this.fragmentContextID=n?cq(this.treeAdapter.getTagName(n)):yd.UNKNOWN,this._setContextModes(n??this.document,this.fragmentContextID),this.openElements=new dn(this.document,this.treeAdapter,this)}static parse(e,t){let n=new this(t);return n.tokenizer.write(e,!0),n.document}static getFragmentParser(e,t){let n={...dT,...t};e??(e=n.treeAdapter.createElement(yc.TEMPLATE,ys.HTML,[]));let i=n.treeAdapter.createElement("documentmock",ys.HTML,[]),a=new this(n,i,e);return a.fragmentContextID===yd.TEMPLATE&&a.tmplInsertionModeStack.unshift(ym.IN_TEMPLATE),a._initTokenizerForFragmentParsing(),a._insertFakeRootElement(),a._resetInsertionMode(),a._findFormInFragmentContext(),a}getFragment(){let e=this.treeAdapter.getFirstChild(this.document),t=this.treeAdapter.createDocumentFragment();return this._adoptNodes(e,t),t}_err(e,t,n){var i;if(!this.onParseError)return;let a=null!==(i=e.location)&&void 0!==i?i:dk,o={code:t,startLine:a.startLine,startCol:a.startCol,startOffset:a.startOffset,endLine:n?a.startLine:a.endLine,endCol:n?a.startCol:a.endCol,endOffset:n?a.startOffset:a.endOffset};this.onParseError(o)}
269onItemPush(e,t,n){var i,a;null===(a=(i=this.treeAdapter).onItemPush)||void 0===a||a.call(i,e),n&&this.openElements.stackTop>0&&this._setContextModes(e,t)}onItemPop(e,t){var n,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(e,this.currentToken),null===(i=(n=this.treeAdapter).onItemPop)||void 0===i||i.call(n,e,this.openElements.current),t){let e,t;0===this.openElements.stackTop&&this.fragmentContext?(e=this.fragmentContext,t=this.fragmentContextID):{current:e,currentTagId:t}=this.openElements,this._setContextModes(e,t)}}_setContextModes(e,t){let n=e===this.document||e&&this.treeAdapter.getNamespaceURI(e)===ys.HTML;this.currentNotInHTML=!n,this.tokenizer.inForeignNode=!n&&void 0!==e&&void 0!==t&&!this._isIntegrationPoint(t,e)}_switchToTextParsing(e,t){this._insertElement(e,ys.HTML),this.tokenizer.state=t,this.originalInsertionMode=this.insertionMode,this.insertionMode=ym.TEXT}switchToPlaintextParsing(){this.insertionMode=ym.TEXT,this.originalInsertionMode=ym.IN_BODY,this.tokenizer.state=cK.PLAINTEXT}_getAdjustedCurrentElement(){return 0===this.openElements.stackTop&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let e=this.fragmentContext;for(;e;){if(this.treeAdapter.getTagName(e)===yc.FORM){this.formElement=e;break}e=this.treeAdapter.getParentNode(e)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ys.HTML))switch(this.fragmentContextID){case yd.TITLE:case yd.TEXTAREA:this.tokenizer.state=cK.RCDATA;break;case yd.STYLE:case yd.XMP:case yd.IFRAME:case yd.NOEMBED:case yd.NOFRAMES:case yd.NOSCRIPT:this.tokenizer.state=cK.RAWTEXT;break;case yd.SCRIPT:this.tokenizer.state=cK.SCRIPT_DATA;break;case yd.PLAINTEXT:this.tokenizer.state=cK.PLAINTEXT}}_setDocumentType(e){let t=e.name||"",n=e.publicId||"",i=e.systemId||"";if(this.treeAdapter.setDocumentType(this.document,t,n,i),e.location){let t=this.treeAdapter.getChildNodes(this.document).find(e=>this.treeAdapter.isDocumentTypeNode(e));t&&this.treeAdapter.setNodeSourceCodeLocation(t,e.location)}}_attachElementToTree(e,t){if(this.options.sourceCodeLocationInfo){let n=t&&{...t,startTag:t};this.treeAdapter.setNodeSourceCodeLocation(e,n)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(e);else{let t=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(t??this.document,e)}}_appendElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location)}_insertElement(e,t){let n=this.treeAdapter.createElement(e.tagName,t,e.attrs);this._attachElementToTree(n,e.location),this.openElements.push(n,e.tagID)}_insertFakeElement(e,t){let n=this.treeAdapter.createElement(e,ys.HTML,[]);this._attachElementToTree(n,null),this.openElements.push(n,t)}_insertTemplate(e){let t=this.treeAdapter.createElement(e.tagName,ys.HTML,e.attrs),n=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(t,n),this._attachElementToTree(t,e.location),this.openElements.push(t,e.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,null)}_insertFakeRootElement(){let e=this.treeAdapter.createElement(yc.HTML,ys.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(e,null),this.treeAdapter.appendChild(this.openElements.current,e),this.openElements.push(e,yd.HTML)}_appendCommentNode(e,t){let n=this.treeAdapter.createCommentNode(e.data);this.treeAdapter.appendChild(t,n),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(n,e.location)}_insertCharacters(e){let t,n;if(this._shouldFosterParentOnInsertion()?({parent:t,beforeElement:n}=this._findFosterParentingLocation(),n?this.treeAdapter.insertTextBefore(t,e.chars,n):this.treeAdapter.insertText(t,e.chars)):(t=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(t,e.chars)),!e.location)return;let i=this.treeAdapter.getChildNodes(t),a=n?i.lastIndexOf(n):i.length,o=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(o)){let{endLine:t,endCol:n,endOffset:i}=e.location;this.treeAdapter.updateNodeSourceCodeLocation(o,{endLine:t,endCol:n,endOffset:i})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(o,e.location)}_adoptNodes(e,t){for(let n=this.treeAdapter.getFirstChild(e);n;n=this.treeAdapter.getFirstChild(e))this.treeAdapter.detachNode(n),this.treeAdapter.appendChild(t,n)}_setEndLocation(e,t){if(this.treeAdapter.getNodeSourceCodeLocation(e)&&t.location){let n=t.location,i=this.treeAdapter.getTagName(e),a=t.type===yn.END_TAG&&i===t.tagName?{endTag:{...n},endLine:n.endLine,endCol:n.endCol,endOffset:n.endOffset}:{endLine:n.startLine,endCol:n.startCol,endOffset:n.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(e,a)}}shouldProcessStartTagTokenInForeignContent(e){let t,n;return!!this.currentNotInHTML&&(0===this.openElements.stackTop&&this.fragmentContext?(t=this.fragmentContext,n=this.fragmentContextID):{current:t,currentTagId:n}=this.openElements,(e.tagID!==yd.SVG||this.treeAdapter.getTagName(t)!==yc.ANNOTATION_XML||this.treeAdapter.getNamespaceURI(t)!==ys.MATHML)&&(this.tokenizer.inForeignNode||(e.tagID===yd.MGLYPH||e.tagID===yd.MALIGNMARK)&&void 0!==n&&!this._isIntegrationPoint(n,t,ys.HTML)))}_processToken(e){switch(e.type){case yn.CHARACTER:this.onCharacter(e);break;case yn.NULL_CHARACTER:this.onNullCharacter(e);break;case yn.COMMENT:this.onComment(e);break;case yn.DOCTYPE:this.onDoctype(e);break;case yn.START_TAG:this._processStartTag(e);break;case yn.END_TAG:this.onEndTag(e);break;case yn.EOF:this.onEof(e);break;case yn.WHITESPACE_CHARACTER:this.onWhitespaceCharacter(e)}}_isIntegrationPoint(e,t,n){let i=this.treeAdapter.getNamespaceURI(t),a=this.treeAdapter.getAttrList(t);return(!n||n===ys.HTML)&&function(e,t,n){if(t===ys.MATHML&&e===yd.ANNOTATION_XML){for(let e=0;e<n.length;e++)if(n[e].name===yl.ENCODING){let t=n[e].value.toLowerCase();return t===dm.TEXT_HTML||t===dm.APPLICATION_XML}}return t===ys.SVG&&(e===yd.FOREIGN_OBJECT||e===yd.DESC||e===yd.TITLE)}(e,i,a)||(!n||n===ys.MATHML)&&i===ys.MATHML&&(e===yd.MI||e===yd.MO||e===yd.MN||e===yd.MS||e===yd.MTEXT)}_reconstructActiveFormattingElements(){let e=this.activeFormattingElements.entries.length;if(e){let t=this.activeFormattingElements.entries.findIndex(e=>e.type===yh.Marker||this.openElements.contains(e.element)),n=-1===t?e-1:t-1;for(let e=n;e>=0;e--){let t=this.activeFormattingElements.entries[e];this._insertElement(t.token,this.treeAdapter.getNamespaceURI(t.element)),t.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=ym.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(yd.P),this.openElements.popUntilTagNamePopped(yd.P)}_resetInsertionMode(){for(let e=this.openElements.stackTop;e>=0;e--)switch(0===e&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[e]){case yd.TR:this.insertionMode=ym.IN_ROW;return;case yd.TBODY:case yd.THEAD:case yd.TFOOT:this.insertionMode=ym.IN_TABLE_BODY;return;case yd.CAPTION:this.insertionMode=ym.IN_CAPTION;return;case yd.COLGROUP:this.insertionMode=ym.IN_COLUMN_GROUP;return;case yd.TABLE:this.insertionMode=ym.IN_TABLE;return;case yd.BODY:this.insertionMode=ym.IN_BODY;return;case yd.FRAMESET:this.insertionMode=ym.IN_FRAMESET;return;case yd.SELECT:this._resetInsertionModeForSelect(e);return;case yd.TEMPLATE:this.insertionMode=this.tmplInsertionModeStack[0];return;case yd.HTML:this.insertionMode=this.headElement?ym.AFTER_HEAD:ym.BEFORE_HEAD;return;case yd.TD:case yd.TH:if(e>0){this.insertionMode=ym.IN_CELL;return}break;case yd.HEAD:if(e>0){this.insertionMode=ym.IN_HEAD;return}}this.insertionMode=ym.IN_BODY}_resetInsertionModeForSelect(e){if(e>0)for(let t=e-1;t>0;t--){let e=this.openElements.tagIDs[t];if(e===yd.TEMPLATE)break;if(e===yd.TABLE){this.insertionMode=ym.IN_SELECT_IN_TABLE;return}}this.insertionMode=ym.IN_SELECT}_isElementCausesFosterParenting(e){return d_.has(e)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&void 0!==this.openElements.currentTagId&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let e=this.openElements.stackTop;e>=0;e--){let t=this.openElements.items[e];switch(this.openElements.tagIDs[e]){case yd.TEMPLATE:if(this.treeAdapter.getNamespaceURI(t)===ys.HTML)return{parent:this.treeAdapter.getTemplateContent(t),beforeElement:null};break;case yd.TABLE:{let n=this.treeAdapter.getParentNode(t);return n?{parent:n,beforeElement:t}:{parent:this.openElements.items[e-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(e){let t=this._findFosterParentingLocation();t.beforeElement?this.treeAdapter.insertBefore(t.parent,e,t.beforeElement):this.treeAdapter.appendChild(t.parent,e)}_isSpecialElement(e,t){return cW[this.treeAdapter.getNamespaceURI(e)].has(t)}onCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){this._insertCharacters(e),this.framesetOk=!1;return}switch(this.insertionMode){case ym.INITIAL:dN(this,e);break;case ym.BEFORE_HTML:dI(this,e);break;case ym.BEFORE_HEAD:dM(this,e);break;case ym.IN_HEAD:dD(this,e);break;case ym.IN_HEAD_NO_SCRIPT:dL(this,e);break;case ym.AFTER_HEAD:dO(this,e);break;case ym.IN_BODY:case ym.IN_CAPTION:case ym.IN_CELL:case ym.IN_TEMPLATE:dz(this,e);break;case ym.TEXT:case ym.IN_SELECT:case ym.IN_SELECT_IN_TABLE:this._insertCharacters(e);break;case ym.IN_TABLE:case ym.IN_TABLE_BODY:case ym.IN_ROW:dK(this,e);break;case ym.IN_TABLE_TEXT:dJ(this,e);break;case ym.IN_COLUMN_GROUP:d4(this,e);break;case ym.AFTER_BODY:pn(this,e);break;case ym.AFTER_AFTER_BODY:pr(this,e)}}onNullCharacter(e){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){e.chars="�",this._insertCharacters(e);return}switch(this.insertionMode){case ym.INITIAL:dN(this,e);break;case ym.BEFORE_HTML:dI(this,e);break;case ym.BEFORE_HEAD:dM(this,e);break;case ym.IN_HEAD:dD(this,e);break;case ym.IN_HEAD_NO_SCRIPT:dL(this,e);break;case ym.AFTER_HEAD:dO(this,e);break;case ym.TEXT:this._insertCharacters(e);break;case ym.IN_TABLE:case ym.IN_TABLE_BODY:case ym.IN_ROW:dK(this,e);break;case ym.IN_COLUMN_GROUP:d4(this,e);break;case ym.AFTER_BODY:pn(this,e);break;case ym.AFTER_AFTER_BODY:pr(this,e)}}onComment(e){if(this.skipNextNewLine=!1,this.currentNotInHTML){dA(this,e);return}switch(this.insertionMode){case ym.INITIAL:case ym.BEFORE_HTML:case ym.BEFORE_HEAD:case ym.IN_HEAD:case ym.IN_HEAD_NO_SCRIPT:case ym.AFTER_HEAD:case ym.IN_BODY:case ym.IN_TABLE:case ym.IN_CAPTION:case ym.IN_COLUMN_GROUP:case ym.IN_TABLE_BODY:case ym.IN_ROW:case ym.IN_CELL:case ym.IN_SELECT:case ym.IN_SELECT_IN_TABLE:case ym.IN_TEMPLATE:case ym.IN_FRAMESET:case ym.AFTER_FRAMESET:dA(this,e);break;case ym.IN_TABLE_TEXT:d0(this,e);break;case ym.AFTER_BODY:!function(e,t){e._appendCommentNode(t,e.openElements.items[0])}(this,e);break;case ym.AFTER_AFTER_BODY:case ym.AFTER_AFTER_FRAMESET:!function(e,t){e._appendCommentNode(t,e.document)}(this,e)}}onDoctype(e){switch(this.skipNextNewLine=!1,this.insertionMode){case ym.INITIAL:!function(e,t){e._setDocumentType(t);let n=t.forceQuirks?yu.QUIRKS:function(e){if(e.name!==ds)return yu.QUIRKS;let{systemId:t}=e;if(t&&"http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd"===t.toLowerCase())return yu.QUIRKS;let{publicId:n}=e;if(null!==n){if(n=n.toLowerCase(),dc.has(n))return yu.QUIRKS;let e=null===t?du:dl;
269if(dh(n,e))return yu.QUIRKS;if(dh(n,e=null===t?dd:dp))return yu.LIMITED_QUIRKS}return yu.NO_QUIRKS}(t);t.name===ds&&null===t.publicId&&(null===t.systemId||"about:legacy-compat"===t.systemId)||e._err(t,yt.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=ym.BEFORE_HTML}(this,e);break;case ym.BEFORE_HEAD:case ym.IN_HEAD:case ym.IN_HEAD_NO_SCRIPT:case ym.AFTER_HEAD:this._err(e,yt.misplacedDoctype);break;case ym.IN_TABLE_TEXT:d0(this,e)}}onStartTag(e){this.skipNextNewLine=!1,this.currentToken=e,this._processStartTag(e),e.selfClosing&&!e.ackSelfClosing&&this._err(e,yt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(e){this.shouldProcessStartTagTokenInForeignContent(e)?function(e,t){if(function(e){let t=e.tagID;return t===yd.FONT&&e.attrs.some(({name:e})=>e===yl.COLOR||e===yl.SIZE||e===yl.FACE)||dv.has(t)}(t))pi(e),e._startTagOutsideForeignContent(t);else{let n=e._getAdjustedCurrentElement(),i=e.treeAdapter.getNamespaceURI(n);i===ys.MATHML?dy(t):i===ys.SVG&&(function(e){let t=dx.get(e.tagName);null!=t&&(e.tagName=t,e.tagID=cq(e.tagName))}(t),db(t)),dw(t),t.selfClosing?e._appendElement(t,i):e._insertElement(t,i),t.ackSelfClosing=!0}}(this,e):this._startTagOutsideForeignContent(e)}_startTagOutsideForeignContent(e){switch(this.insertionMode){case ym.INITIAL:dN(this,e);break;case ym.BEFORE_HTML:e.tagID===yd.HTML?(this._insertElement(e,ys.HTML),this.insertionMode=ym.BEFORE_HEAD):dI(this,e);break;case ym.BEFORE_HEAD:!function(e,t){switch(t.tagID){case yd.HTML:dq(e,t);break;case yd.HEAD:e._insertElement(t,ys.HTML),e.headElement=e.openElements.current,e.insertionMode=ym.IN_HEAD;break;default:dM(e,t)}}(this,e);break;case ym.IN_HEAD:dP(this,e);break;case ym.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case yd.HTML:dq(e,t);break;case yd.BASEFONT:case yd.BGSOUND:case yd.HEAD:case yd.LINK:case yd.META:case yd.NOFRAMES:case yd.STYLE:dP(e,t);break;case yd.NOSCRIPT:e._err(t,yt.nestedNoscriptInHead);break;default:dL(e,t)}}(this,e);break;case ym.AFTER_HEAD:!function(e,t){switch(t.tagID){case yd.HTML:dq(e,t);break;case yd.BODY:e._insertElement(t,ys.HTML),e.framesetOk=!1,e.insertionMode=ym.IN_BODY;break;case yd.FRAMESET:e._insertElement(t,ys.HTML),e.insertionMode=ym.IN_FRAMESET;break;case yd.BASE:case yd.BASEFONT:case yd.BGSOUND:case yd.LINK:case yd.META:case yd.NOFRAMES:case yd.SCRIPT:case yd.STYLE:case yd.TEMPLATE:case yd.TITLE:e._err(t,yt.abandonedHeadElementChild),e.openElements.push(e.headElement,yd.HEAD),dP(e,t),e.openElements.remove(e.headElement);break;case yd.HEAD:e._err(t,yt.misplacedStartTagForHeadElement);break;default:dO(e,t)}}(this,e);break;case ym.IN_BODY:dq(this,e);break;case ym.IN_TABLE:dX(this,e);break;case ym.IN_TABLE_TEXT:d0(this,e);break;case ym.IN_CAPTION:!function(e,t){let n=t.tagID;d1.has(n)?e.openElements.hasInTableScope(yd.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(yd.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ym.IN_TABLE,dX(e,t)):dq(e,t)}(this,e);break;case ym.IN_COLUMN_GROUP:d2(this,e);break;case ym.IN_TABLE_BODY:d5(this,e);break;case ym.IN_ROW:d6(this,e);break;case ym.IN_CELL:!function(e,t){let n=t.tagID;d1.has(n)?(e.openElements.hasInTableScope(yd.TD)||e.openElements.hasInTableScope(yd.TH))&&(e._closeTableCell(),d6(e,t)):dq(e,t)}(this,e);break;case ym.IN_SELECT:d8(this,e);break;case ym.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===yd.CAPTION||n===yd.TABLE||n===yd.TBODY||n===yd.TFOOT||n===yd.THEAD||n===yd.TR||n===yd.TD||n===yd.TH?(e.openElements.popUntilTagNamePopped(yd.SELECT),e._resetInsertionMode(),e._processStartTag(t)):d8(e,t)}(this,e);break;case ym.IN_TEMPLATE:!function(e,t){switch(t.tagID){case yd.BASE:case yd.BASEFONT:case yd.BGSOUND:case yd.LINK:case yd.META:case yd.NOFRAMES:case yd.SCRIPT:case yd.STYLE:case yd.TEMPLATE:case yd.TITLE:dP(e,t);break;case yd.CAPTION:case yd.COLGROUP:case yd.TBODY:case yd.TFOOT:case yd.THEAD:e.tmplInsertionModeStack[0]=ym.IN_TABLE,e.insertionMode=ym.IN_TABLE,dX(e,t);break;case yd.COL:e.tmplInsertionModeStack[0]=ym.IN_COLUMN_GROUP,e.insertionMode=ym.IN_COLUMN_GROUP,d2(e,t);break;case yd.TR:e.tmplInsertionModeStack[0]=ym.IN_TABLE_BODY,e.insertionMode=ym.IN_TABLE_BODY,d5(e,t);break;case yd.TD:case yd.TH:e.tmplInsertionModeStack[0]=ym.IN_ROW,e.insertionMode=ym.IN_ROW,d6(e,t);break;default:e.tmplInsertionModeStack[0]=ym.IN_BODY,e.insertionMode=ym.IN_BODY,dq(e,t)}}(this,e);break;case ym.AFTER_BODY:e.tagID===yd.HTML?dq(this,e):pn(this,e);break;case ym.IN_FRAMESET:!function(e,t){switch(t.tagID){case yd.HTML:dq(e,t);break;case yd.FRAMESET:e._insertElement(t,ys.HTML);break;case yd.FRAME:e._appendElement(t,ys.HTML),t.ackSelfClosing=!0;break;case yd.NOFRAMES:dP(e,t)}}(this,e);break;case ym.AFTER_FRAMESET:!function(e,t){switch(t.tagID){case yd.HTML:dq(e,t);break;case yd.NOFRAMES:dP(e,t)}}(this,e);break;case ym.AFTER_AFTER_BODY:e.tagID===yd.HTML?dq(this,e):pr(this,e);break;case ym.AFTER_AFTER_FRAMESET:!function(e,t){switch(t.tagID){case yd.HTML:dq(e,t);break;case yd.NOFRAMES:dP(e,t)}}(this,e)}}onEndTag(e){this.skipNextNewLine=!1,this.currentToken=e,this.currentNotInHTML?function(e,t){if(t.tagID===yd.P||t.tagID===yd.BR){pi(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){let i=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(i)===ys.HTML){e._endTagOutsideForeignContent(t);break}let a=e.treeAdapter.getTagName(i);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLe
269ngth(n);break}}}(this,e):this._endTagOutsideForeignContent(e)}_endTagOutsideForeignContent(e){var t;switch(this.insertionMode){case ym.INITIAL:dN(this,e);break;case ym.BEFORE_HTML:!function(e,t){let n=t.tagID;(n===yd.HTML||n===yd.HEAD||n===yd.BODY||n===yd.BR)&&dI(e,t)}(this,e);break;case ym.BEFORE_HEAD:!function(e,t){let n=t.tagID;n===yd.HEAD||n===yd.BODY||n===yd.HTML||n===yd.BR?dM(e,t):e._err(t,yt.endTagWithoutMatchingOpenElement)}(this,e);break;case ym.IN_HEAD:!function(e,t){switch(t.tagID){case yd.HEAD:e.openElements.pop(),e.insertionMode=ym.AFTER_HEAD;break;case yd.BODY:case yd.BR:case yd.HTML:dD(e,t);break;case yd.TEMPLATE:dR(e,t);break;default:e._err(t,yt.endTagWithoutMatchingOpenElement)}}(this,e);break;case ym.IN_HEAD_NO_SCRIPT:!function(e,t){switch(t.tagID){case yd.NOSCRIPT:e.openElements.pop(),e.insertionMode=ym.IN_HEAD;break;case yd.BR:dL(e,t);break;default:e._err(t,yt.endTagWithoutMatchingOpenElement)}}(this,e);break;case ym.AFTER_HEAD:!function(e,t){switch(t.tagID){case yd.BODY:case yd.HTML:case yd.BR:dO(e,t);break;case yd.TEMPLATE:dR(e,t);break;default:e._err(t,yt.endTagWithoutMatchingOpenElement)}}(this,e);break;case ym.IN_BODY:dW(this,e);break;case ym.TEXT:e.tagID===yd.SCRIPT&&(null===(t=this.scriptHandler)||void 0===t||t.call(this,this.openElements.current)),this.openElements.pop(),this.insertionMode=this.originalInsertionMode;break;case ym.IN_TABLE:dQ(this,e);break;case ym.IN_TABLE_TEXT:d0(this,e);break;case ym.IN_CAPTION:!function(e,t){let n=t.tagID;switch(n){case yd.CAPTION:case yd.TABLE:e.openElements.hasInTableScope(yd.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(yd.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ym.IN_TABLE,n===yd.TABLE&&dQ(e,t));break;case yd.BODY:case yd.COL:case yd.COLGROUP:case yd.HTML:case yd.TBODY:case yd.TD:case yd.TFOOT:case yd.TH:case yd.THEAD:case yd.TR:break;default:dW(e,t)}}(this,e);break;case ym.IN_COLUMN_GROUP:!function(e,t){switch(t.tagID){case yd.COLGROUP:e.openElements.currentTagId===yd.COLGROUP&&(e.openElements.pop(),e.insertionMode=ym.IN_TABLE);break;case yd.TEMPLATE:dR(e,t);break;case yd.COL:break;default:d4(e,t)}}(this,e);break;case ym.IN_TABLE_BODY:d3(this,e);break;case ym.IN_ROW:d7(this,e);break;case ym.IN_CELL:!function(e,t){let n=t.tagID;switch(n){case yd.TD:case yd.TH:e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=ym.IN_ROW);break;case yd.TABLE:case yd.TBODY:case yd.TFOOT:case yd.THEAD:case yd.TR:e.openElements.hasInTableScope(n)&&(e._closeTableCell(),d7(e,t));break;case yd.BODY:case yd.CAPTION:case yd.COL:case yd.COLGROUP:case yd.HTML:break;default:dW(e,t)}}(this,e);break;case ym.IN_SELECT:d9(this,e);break;case ym.IN_SELECT_IN_TABLE:!function(e,t){let n=t.tagID;n===yd.CAPTION||n===yd.TABLE||n===yd.TBODY||n===yd.TFOOT||n===yd.THEAD||n===yd.TR||n===yd.TD||n===yd.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(yd.SELECT),e._resetInsertionMode(),e.onEndTag(t)):d9(e,t)}(this,e);break;case ym.IN_TEMPLATE:e.tagID===yd.TEMPLATE&&dR(this,e);break;case ym.AFTER_BODY:pt(this,e);break;case ym.IN_FRAMESET:e.tagID!==yd.FRAMESET||this.openElements.isRootHtmlElementCurrent()||(this.openElements.pop(),this.fragmentContext||this.openElements.currentTagId===yd.FRAMESET||(this.insertionMode=ym.AFTER_FRAMESET));break;case ym.AFTER_FRAMESET:e.tagID===yd.HTML&&(this.insertionMode=ym.AFTER_AFTER_FRAMESET);break;case ym.AFTER_AFTER_BODY:pr(this,e)}}onEof(e){switch(this.insertionMode){case ym.INITIAL:dN(this,e);break;case ym.BEFORE_HTML:dI(this,e);break;case ym.BEFORE_HEAD:dM(this,e);break;case ym.IN_HEAD:dD(this,e);break;case ym.IN_HEAD_NO_SCRIPT:dL(this,e);break;case ym.AFTER_HEAD:dO(this,e);break;case ym.IN_BODY:case ym.IN_TABLE:case ym.IN_CAPTION:case ym.IN_COLUMN_GROUP:case ym.IN_TABLE_BODY:case ym.IN_ROW:case ym.IN_CELL:case ym.IN_SELECT:case ym.IN_SELECT_IN_TABLE:dY(this,e);break;case ym.TEXT:this._err(e,yt.eofInElementThatCanContainOnlyText),this.openElements.pop(),this.insertionMode=this.originalInsertionMode,this.onEof(e);break;case ym.IN_TABLE_TEXT:d0(this,e);break;case ym.IN_TEMPLATE:pe(this,e);break;case ym.AFTER_BODY:case ym.IN_FRAMESET:case ym.AFTER_FRAMESET:case ym.AFTER_AFTER_BODY:case ym.AFTER_AFTER_FRAMESET:dC(this,e)}}onWhitespaceCharacter(e){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,e.chars.charCo
269deAt(0)===ye.LINE_FEED)){if(1===e.chars.length)return;e.chars=e.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(e);return}switch(this.insertionMode){case ym.IN_HEAD:case ym.IN_HEAD_NO_SCRIPT:case ym.AFTER_HEAD:case ym.TEXT:case ym.IN_COLUMN_GROUP:case ym.IN_SELECT:case ym.IN_SELECT_IN_TABLE:case ym.IN_FRAMESET:case ym.AFTER_FRAMESET:this._insertCharacters(e);break;case ym.IN_BODY:case ym.IN_CAPTION:case ym.IN_CELL:case ym.IN_TEMPLATE:case ym.AFTER_BODY:case ym.AFTER_AFTER_BODY:case ym.AFTER_AFTER_FRAMESET:dj(this,e);break;case ym.IN_TABLE:case ym.IN_TABLE_BODY:case ym.IN_ROW:dK(this,e);break;case ym.IN_TABLE_TEXT:d$(this,e)}}}function dS(e,t){for(let n=0;n<8;n++){let n=function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);return n?e.openElements.contains(n.element)?e.openElements.hasInScope(t.tagID)||(n=null):(e.activeFormattingElements.removeEntry(n),n=null):dV(e,t),n}(e,t);if(!n)break;let i=function(e,t){let n=null,i=e.openElements.stackTop;for(;i>=0;i--){let a=e.openElements.items[i];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[i])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(i,0)),e.activeFormattingElements.removeEntry(t)),n}(e,n);if(!i)break;e.activeFormattingElements.bookmark=n;let a=function(e,t,n){let i=t,a=e.openElements.getCommonAncestor(t);for(let o=0,s=a;s!==n;o++,s=a){a=e.openElements.getCommonAncestor(s);let n=e.activeFormattingElements.getElementEntry(s),l=n&&o>=3;!n||l?(l&&e.activeFormattingElements.removeEntry(n),e.openElements.remove(s)):(s=function(e,t){let n=e.treeAdapter.getNamespaceURI(t.element),i=e.treeAdapter.createElement(t.token.tagName,n,t.token.attrs);return e.openElements.replace(t.element,i),t.element=i,i}(e,n),i===t&&(e.activeFormattingElements.bookmark=n),e.treeAdapter.detachNode(i),e.treeAdapter.appendChild(s,i),i=s)}return i}(e,i,n.element),o=e.openElements.getCommonAncestor(n.element);e.treeAdapter.detachNode(a),o&&function(e,t,n){let i=cq(e.treeAdapter.getTagName(t));if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{let a=e.treeAdapter.getNamespaceURI(t);i===yd.TEMPLATE&&a===ys.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}(e,o,a),function(e,t,n){let i=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,i,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}(e,i,n)}}function dA(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function dC(e,t){if(e.stopped=!0,t.location){let n=e.fragmentContext?0:2;for(let i=e.openElements.stackTop;i>=n;i--)e._setEndLocation(e.openElements.items[i],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){let n=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(n);if(i&&!i.endTag&&(e._setEndLocation(n,t),e.openElements.stackTop>=1)){let n=e.openElements.items[1],i=e.treeAdapter.getNodeSourceCodeLocation(n);i&&!i.endTag&&e._setEndLocation(n,t)}}}}function dN(e,t){e._err(t,yt.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,yu.QUIRKS),e.insertionMode=ym.BEFORE_HTML,e._processToken(t)}function dI(e,t){e._insertFakeRootElement(),e.insertionMode=ym.BEFORE_HEAD,e._processToken(t)}function dM(e,t){e._insertFakeElement(yc.HEAD,yd.HEAD),e.headElement=e.openElements.current,e.insertionMode=ym.IN_HEAD,e._processToken(t)}function dP(e,t){switch(t.tagID){case yd.HTML:dq(e,t);break;case yd.BASE:case yd.BASEFONT:case yd.BGSOUND:case yd.LINK:case yd.META:e._appendElement(t,ys.HTML),t.ackSelfClosing=!0;break;case yd.TITLE:e._switchToTextParsing(t,cK.RCDATA);break;case yd.NOSCRIPT:e.options.scriptingEnabled?e._switchToTextParsing(t,cK.RAWTEXT):(e._insertElement(t,ys.HTML),e.insertionMode=ym.IN_HEAD_NO_SCRIPT);break;case yd.NOFRAMES:case yd.STYLE:e._switchToTextParsing(t,cK.RAWTEXT);break;case yd.SCRIPT:e._switchToTextParsing(t,cK.SCRIPT_DATA);break;case yd.TEMPLATE:e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=ym.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(ym.IN_TEMPLATE);break;case yd.HEAD:e._err(t,yt.misplacedStartTagForHeadElement);break;default:dD(e,t)}}function dR(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==yd.TEMPLATE&&e._err(t,yt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(yd.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,yt.endTagWithoutMatchingOpenElement)}function dD(e,t){e.openElements.pop(),e.insertionMode=ym.AFTER_HEAD,e._processToken(t)}function dL(e,t){let n=t.type===yn.EOF?yt.openElementsLeftAfterEof:yt.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=ym.IN_HEAD,e._processToken(t)}function dO(e,t){e._insertFakeElement(yc.BODY,yd.BODY),e.insertionMode=ym.IN_BODY,dB(e,t)}function dB(e,t){switch(t.type){case yn.CHARACTER:dz(e,t);break;case yn.WHITESPACE_CHARACTER:dj(e,t);break;case yn.COMMENT:dA(e,t);break;case yn.START_TAG:dq(e,t);break;case yn.END_TAG:dW(e,t);break;case yn.EOF:dY(e,t)}}function dj(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function dz(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function dF(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ys.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function dH(e){let t=cj(e,yl.TYPE);return null!=t&&"hidden"===t.toLowerCase()}function dU(e,t){e._switchToTextParsing(t,cK.RAWTEXT)}function dG(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ys.HTML)}function dq(e,t){switch(t.tagID){case yd.I:case yd.S:case yd.B:case yd.U:case yd.EM:case yd.TT:case yd.BIG:case yd.CODE:case yd.FONT:case yd.SMALL:case yd.STRIKE:case yd.STRONG:e._reconstructActiveFormattingElements(),e._insertElement(t,ys.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case yd.A:!function(e,t){let n=e.activeFormattingElements.getElementEntryInScopeWithTagName(yc.A);
269n&&(dS(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ys.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}(e,t);break;case yd.H1:case yd.H2:case yd.H3:case yd.H4:case yd.H5:case yd.H6:e.openElements.hasInButtonScope(yd.P)&&e._closePElement(),void 0!==e.openElements.currentTagId&&cY.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ys.HTML);break;case yd.P:case yd.DL:case yd.OL:case yd.UL:case yd.DIV:case yd.DIR:case yd.NAV:case yd.MAIN:case yd.MENU:case yd.ASIDE:case yd.CENTER:case yd.FIGURE:case yd.FOOTER:case yd.HEADER:case yd.HGROUP:case yd.DIALOG:case yd.DETAILS:case yd.ADDRESS:case yd.ARTICLE:case yd.SEARCH:case yd.SECTION:case yd.SUMMARY:case yd.FIELDSET:case yd.BLOCKQUOTE:case yd.FIGCAPTION:e.openElements.hasInButtonScope(yd.P)&&e._closePElement(),e._insertElement(t,ys.HTML);break;case yd.LI:case yd.DD:case yd.DT:!function(e,t){e.framesetOk=!1;let n=t.tagID;for(let t=e.openElements.stackTop;t>=0;t--){let i=e.openElements.tagIDs[t];if(n===yd.LI&&i===yd.LI||(n===yd.DD||n===yd.DT)&&(i===yd.DD||i===yd.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==yd.ADDRESS&&i!==yd.DIV&&i!==yd.P&&e._isSpecialElement(e.openElements.items[t],i))break}e.openElements.hasInButtonScope(yd.P)&&e._closePElement(),e._insertElement(t,ys.HTML)}(e,t);break;case yd.BR:case yd.IMG:case yd.WBR:case yd.AREA:case yd.EMBED:case yd.KEYGEN:dF(e,t);break;case yd.HR:e.openElements.hasInButtonScope(yd.P)&&e._closePElement(),e._appendElement(t,ys.HTML),e.framesetOk=!1,t.ackSelfClosing=!0;break;case yd.RB:case yd.RTC:e.openElements.hasInScope(yd.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ys.HTML);break;case yd.RT:case yd.RP:e.openElements.hasInScope(yd.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(yd.RTC),e._insertElement(t,ys.HTML);break;case yd.PRE:case yd.LISTING:e.openElements.hasInButtonScope(yd.P)&&e._closePElement(),e._insertElement(t,ys.HTML),e.skipNextNewLine=!0,e.framesetOk=!1;break;case yd.XMP:e.openElements.hasInButtonScope(yd.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,cK.RAWTEXT);break;case yd.SVG:e._reconstructActiveFormattingElements(),db(t),dw(t),t.selfClosing?e._appendElement(t,ys.SVG):e._insertElement(t,ys.SVG),t.ackSelfClosing=!0;break;case yd.HTML:0===e.openElements.tmplCount&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs);break;case yd.BASE:case yd.LINK:case yd.META:case yd.STYLE:case yd.TITLE:case yd.SCRIPT:case yd.BGSOUND:case yd.BASEFONT:case yd.TEMPLATE:dP(e,t);break;case yd.BODY:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&0===e.openElements.tmplCount&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}(e,t);break;case yd.FORM:!function(e,t){let n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(yd.P)&&e._closePElement(),e._insertElement(t,ys.HTML),n||(e.formElement=e.openElements.current))}(e,t);break;case yd.NOBR:e._reconstructActiveFormattingElements(),e.openElements.hasInScope(yd.NOBR)&&(dS(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ys.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t);break;case yd.MATH:e._reconstructActiveFormattingElements(),dy(t),dw(t),t.selfClosing?e._appendElement(t,ys.MATHML):e._insertElement(t,ys.MATHML),t.ackSelfClosing=!0;break;case yd.TABLE:e.treeAdapter.getDocumentMode(e.document)!==yu.QUIRKS&&e.openElements.hasInButtonScope(yd.P)&&e._closePElement(),e._insertElement(t,ys.HTML),e.framesetOk=!1,e.insertionMode=ym.IN_TABLE;break;case yd.INPUT:e._reconstructActiveFormattingElements(),e._appendElement(t,ys.HTML),dH(t)||(e.framesetOk=!1),t.ackSelfClosing=!0;break;case yd.PARAM:case yd.TRACK:case yd.SOURCE:e._appendElement(t,ys.HTML),t.ackSelfClosing=!0;break;case yd.IMAGE:t.tagName=yc.IMG,t.tagID=yd.IMG,dF(e,t);break;case yd.BUTTON:e.openElements.hasInScope(yd.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(yd.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ys.HTML),e.framesetOk=!1;break;case yd.APPLET:case yd.OBJECT:case yd.MARQUEE:e._reconstructActiveFormattingElements(),e._insertElement(t,ys.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1;break;case yd.IFRAME:e.framesetOk=!1,e._switchToTextParsing(t,cK.RAWTEXT);break;case yd.SELECT:e._reconstructActiveFormattingElements(),e._insertElement(t,ys.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===ym.IN_TABLE||e.insertionMode===ym.IN_CAPTION||e.insertionMode===ym.IN_TABLE_BODY||e.insertionMode===ym.IN_ROW||e.insertionMode===ym.IN_CELL?ym.IN_SELECT_IN_TABLE:ym.IN_SELECT;break;case yd.OPTION:case yd.OPTGROUP:e.openElements.currentTagId===yd.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ys.HTML);break;
269case yd.NOEMBED:case yd.NOFRAMES:dU(e,t);break;case yd.FRAMESET:!function(e,t){let n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ys.HTML),e.insertionMode=ym.IN_FRAMESET)}(e,t);break;case yd.TEXTAREA:e._insertElement(t,ys.HTML),e.skipNextNewLine=!0,e.tokenizer.state=cK.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=ym.TEXT;break;case yd.NOSCRIPT:e.options.scriptingEnabled?dU(e,t):dG(e,t);break;case yd.PLAINTEXT:e.openElements.hasInButtonScope(yd.P)&&e._closePElement(),e._insertElement(t,ys.HTML),e.tokenizer.state=cK.PLAINTEXT;break;case yd.COL:case yd.TH:case yd.TD:case yd.TR:case yd.HEAD:case yd.FRAME:case yd.TBODY:case yd.TFOOT:case yd.THEAD:case yd.CAPTION:case yd.COLGROUP:break;default:dG(e,t)}}function dV(e,t){let n=t.tagName,i=t.tagID;for(let t=e.openElements.stackTop;t>0;t--){let a=e.openElements.items[t],o=e.openElements.tagIDs[t];if(i===o&&(i!==yd.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.stackTop>=t&&e.openElements.shortenToLength(t);break}if(e._isSpecialElement(a,o))break}}function dW(e,t){switch(t.tagID){case yd.A:case yd.B:case yd.I:case yd.S:case yd.U:case yd.EM:case yd.TT:case yd.BIG:case yd.CODE:case yd.FONT:case yd.NOBR:case yd.SMALL:case yd.STRIKE:case yd.STRONG:dS(e,t);break;case yd.P:e.openElements.hasInButtonScope(yd.P)||e._insertFakeElement(yc.P,yd.P),e._closePElement();break;case yd.DL:case yd.UL:case yd.OL:case yd.DIR:case yd.DIV:case yd.NAV:case yd.PRE:case yd.MAIN:case yd.MENU:case yd.ASIDE:case yd.BUTTON:case yd.CENTER:case yd.FIGURE:case yd.FOOTER:case yd.HEADER:case yd.HGROUP:case yd.DIALOG:case yd.ADDRESS:case yd.ARTICLE:case yd.DETAILS:case yd.SEARCH:case yd.SECTION:case yd.SUMMARY:case yd.LISTING:case yd.FIELDSET:case yd.BLOCKQUOTE:case yd.FIGCAPTION:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case yd.LI:e.openElements.hasInListItemScope(yd.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(yd.LI),e.openElements.popUntilTagNamePopped(yd.LI));break;case yd.DD:case yd.DT:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}(e,t);break;case yd.H1:case yd.H2:case yd.H3:case yd.H4:case yd.H5:case yd.H6:e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped());break;case yd.BR:e._reconstructActiveFormattingElements(),e._insertFakeElement(yc.BR,yd.BR),e.openElements.pop(),e.framesetOk=!1;break;case yd.BODY:!function(e,t){if(e.openElements.hasInScope(yd.BODY)&&(e.insertionMode=ym.AFTER_BODY,e.options.sourceCodeLocationInfo)){let n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}(e,t);break;case yd.HTML:e.openElements.hasInScope(yd.BODY)&&(e.insertionMode=ym.AFTER_BODY,pt(e,t));break;case yd.FORM:!function(e){let t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(yd.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(yd.FORM):n&&e.openElements.remove(n))}(e);break;case yd.APPLET:case yd.OBJECT:case yd.MARQUEE:!function(e,t){let n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}(e,t);break;case yd.TEMPLATE:dR(e,t);break;default:dV(e,t)}}function dY(e,t){e.tmplInsertionModeStack.length>0?pe(e,t):dC(e,t)}function dK(e,t){if(void 0!==e.openElements.currentTagId&&d_.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=ym.IN_TABLE_TEXT,t.type){case yn.CHARACTER:dJ(e,t);break;case yn.WHITESPACE_CHARACTER:d$(e,t)}else dZ(e,t)}function dX(e,t){switch(t.tagID){case yd.TD:case yd.TH:case yd.TR:e.openElements.clearBackToTableContext(),e._insertFakeElement(yc.TBODY,yd.TBODY),e.insertionMode=ym.IN_TABLE_BODY,d5(e,t);break;case yd.STYLE:case yd.SCRIPT:case yd.TEMPLATE:dP(e,t);break;case yd.COL:e.openElements.clearBackToTableContext(),e._insertFakeElement(yc.COLGROUP,yd.COLGROUP),e.insertionMode=ym.IN_COLUMN_GROUP,d2(e,t);break;case yd.FORM:e.formElement||0!==e.openElements.tmplCount||(e._insertElement(t,ys.HTML),e.formElement=e.openElements.current,e.openElements.pop());break;case yd.TABLE:e.openElements.hasInTableScope(yd.TABLE)&&(e.openElements.popUntilTagNamePopped(yd.TABLE),e._resetInsertionMode(),e._processStartTag(t));break;case yd.TBODY:case yd.TFOOT:case yd.THEAD:e.openElements.clearBackToTableContext(),e._insertElement(t,ys.HTML),e.insertionMode=ym.IN_TABLE_BODY;break;case yd.INPUT:dH(t)?e._appendElement(t,ys.HTML):dZ(e,t),t.ackSelfClosing=!0;break;case yd.CAPTION:e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ys.HTML),e.insertionMode=ym.IN_CAPTION;break;case yd.COLGROUP:e.openElements.clearBackToTableContext(),e._insertElement(t,ys.HTML),e.insertionMode=ym.IN_COLUMN_GROUP;break;default:dZ(e,t)}}function dQ(e,t){switch(t.tagID){case yd.TABLE:e.openElements.hasInTableScope(yd.TABLE)&&(e.openElements.popUntilTagNamePopped(yd.TABLE),e._resetInsertionMode());break;case yd.TEMPLATE:dR(e,t);break;case yd.BODY:case yd.CAPTION:case yd.COL:case yd.COLGROUP:case yd.HTML:case yd.TBODY:case yd.TD:case yd.TFOOT:case yd.TH:case yd.THEAD:case yd.TR:break;default:dZ(e,t)}}function dZ(e,t){let n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,dB(e,t),e.fosterParentingEnabled=n}
vendor: 5,304 bytes, line 269
269function d$(e,t){e.pendingCharacterTokens.push(t)}function dJ(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function d0(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)dZ(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}let d1=new Set([yd.CAPTION,yd.COL,yd.COLGROUP,yd.TBODY,yd.TD,yd.TFOOT,yd.TH,yd.THEAD,yd.TR]);function d2(e,t){switch(t.tagID){case yd.HTML:dq(e,t);break;case yd.COL:e._appendElement(t,ys.HTML),t.ackSelfClosing=!0;break;case yd.TEMPLATE:dP(e,t);break;default:d4(e,t)}}function d4(e,t){e.openElements.currentTagId===yd.COLGROUP&&(e.openElements.pop(),e.insertionMode=ym.IN_TABLE,e._processToken(t))}function d5(e,t){switch(t.tagID){case yd.TR:e.openElements.clearBackToTableBodyContext(),e._insertElement(t,ys.HTML),e.insertionMode=ym.IN_ROW;break;case yd.TH:case yd.TD:e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(yc.TR,yd.TR),e.insertionMode=ym.IN_ROW,d6(e,t);break;case yd.CAPTION:case yd.COL:case yd.COLGROUP:case yd.TBODY:case yd.TFOOT:case yd.THEAD:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ym.IN_TABLE,dX(e,t));break;default:dX(e,t)}}function d3(e,t){let n=t.tagID;switch(t.tagID){case yd.TBODY:case yd.TFOOT:case yd.THEAD:e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ym.IN_TABLE);break;case yd.TABLE:e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=ym.IN_TABLE,dQ(e,t));break;case yd.BODY:case yd.CAPTION:case yd.COL:case yd.COLGROUP:case yd.HTML:case yd.TD:case yd.TH:case yd.TR:break;default:dQ(e,t)}}function d6(e,t){switch(t.tagID){case yd.TH:case yd.TD:e.openElements.clearBackToTableRowContext(),e._insertElement(t,ys.HTML),e.insertionMode=ym.IN_CELL,e.activeFormattingElements.insertMarker();break;case yd.CAPTION:case yd.COL:case yd.COLGROUP:case yd.TBODY:case yd.TFOOT:case yd.THEAD:case yd.TR:e.openElements.hasInTableScope(yd.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ym.IN_TABLE_BODY,d5(e,t));break;default:dX(e,t)}}function d7(e,t){switch(t.tagID){case yd.TR:e.openElements.hasInTableScope(yd.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ym.IN_TABLE_BODY);break;case yd.TABLE:e.openElements.hasInTableScope(yd.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ym.IN_TABLE_BODY,d3(e,t));break;case yd.TBODY:case yd.TFOOT:case yd.THEAD:(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(yd.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=ym.IN_TABLE_BODY,d3(e,t));break;case yd.BODY:case yd.CAPTION:case yd.COL:case yd.COLGROUP:case yd.HTML:case yd.TD:case yd.TH:break;default:dQ(e,t)}}function d8(e,t){switch(t.tagID){case yd.HTML:dq(e,t);break;case yd.OPTION:e.openElements.currentTagId===yd.OPTION&&e.openElements.pop(),e._insertElement(t,ys.HTML);break;case yd.OPTGROUP:e.openElements.currentTagId===yd.OPTION&&e.openElements.pop(),e.openElements.currentTagId===yd.OPTGROUP&&e.openElements.pop(),e._insertElement(t,ys.HTML);break;case yd.HR:e.openElements.currentTagId===yd.OPTION&&e.openElements.pop(),e.openElements.currentTagId===yd.OPTGROUP&&e.openElements.pop(),e._appendElement(t,ys.HTML),t.ackSelfClosing=!0;break;case yd.INPUT:case yd.KEYGEN:case yd.TEXTAREA:case yd.SELECT:e.openElements.hasInSelectScope(yd.SELECT)&&(e.openElements.popUntilTagNamePopped(yd.SELECT),e._resetInsertionMode(),t.tagID!==yd.SELECT&&e._processStartTag(t));break;case yd.SCRIPT:case yd.TEMPLATE:dP(e,t)}}function d9(e,t){switch(t.tagID){case yd.OPTGROUP:e.openElements.stackTop>0&&e.openElements.currentTagId===yd.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===yd.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===yd.OPTGROUP&&e.openElements.pop();break;case yd.OPTION:e.openElements.currentTagId===yd.OPTION&&e.openElements.pop();break;case yd.SELECT:e.openElements.hasInSelectScope(yd.SELECT)&&(e.openElements.popUntilTagNamePopped(yd.SELECT),e._resetInsertionMode());break;case yd.TEMPLATE:dR(e,t)}}function pe(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(yd.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):dC(e,t)}function pt(e,t){var n;if(t.tagID===yd.HTML){if(e.fragmentContext||(e.insertionMode=ym.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===yd.HTML){e._setEndLocation(e.openElements.items[0],t);let i=e.openElements.items[1];i&&!(!(null===(n=e.treeAdapter.getNodeSourceCodeLocation(i))||void 0===n)&&n.endTag)&&e._setEndLocation(i,t)}}else pn(e,t)}function pn(e,t){e.insertionMode=ym.IN_BODY,dB(e,t)}function pr(e,t){e.insertionMode=ym.IN_BODY,dB(e,t)}function pi(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ys.HTML&&void 0!==e.openElements.currentTagId&&!e._isIntegrationPoint(e.openElements.currentTagId,e.o
269penElements.current);)e.openElements.pop()}yc.AREA,yc.BASE,yc.BASEFONT,yc.BGSOUND,yc.BR,yc.COL,yc.EMBED,yc.FRAME,yc.HR,yc.IMG,yc.INPUT,yc.KEYGEN,yc.LINK,yc.META,yc.PARAM,yc.SOURCE,yc.TRACK,yc.WBR;let pa=ps("end"),po=ps("start");function ps(e){return function(t){let n=t&&t.position&&t.position[e]||{};if("number"==typeof n.line&&n.line>0&&"number"==typeof n.column&&n.column>0)return{line:n.line,column:n.column,offset:"number"==typeof n.offset&&n.offset>-1?n.offset:void 0}}}function pl(e){let t=po(e),n=pa(e);if(t&&n)return{start:t,end:n}}let pu=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,pc=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),pd={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function pp(e,t){let n=function(e){let t="root"===e.type?e.children[0]:e;return!!(t&&("doctype"===t.type||"element"===t.type&&"html"===t.tagName.toLowerCase()))}(e),i=cS("type",{handlers:{root:pm,element:pf,text:pg,comment:pv,doctype:px,raw:py},unknown:pb}),a={parser:n?new dE(pd):dE.getFragmentParser(void 0,pd),handle(e){i(e,a)},stitches:!1,options:t||{}};i(e,a),pw(a,po());let o=function(e,t){let n=t||{};return cb({file:n.file||void 0,location:!1,schema:"svg"===n.space?ab:ay,verbose:n.verbose||!1},e)}(n?a.parser.document:a.parser.getFragment(),{file:a.options.file});return a.stitches&&iq(o,"comment",function(e,t,n){if(e.value.stitch&&n&&void 0!==t)return n.children[t]=e.value.stitch,t}),"root"===o.type&&1===o.children.length&&o.children[0].type===e.type?o.children[0]:o}function ph(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function pm(e,t){ph(e.children,t)}function pf(e,t){(function(e,t){let n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===cK.PLAINTEXT)return;pw(t,po(e));let i=t.parser.openElements.current,a="namespaceURI"in i?i.namespaceURI:aI.html;a===aI.html&&"svg"===n&&(a=aI.svg);let o=cC({...e,children:[]},"svg"===({space:a===aI.svg?"svg":"html"}).space?ab:ay),s={type:yn.START_TAG,tagName:n,tagID:cq(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:p_(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n})(e,t),ph(e.children,t),function(e,t){let n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&cM.includes(n)||t.parser.tokenizer.state===cK.PLAINTEXT)return;pw(t,pa(e));let i={type:yn.END_TAG,tagName:n,tagID:cq(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:p_(e)};t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===cK.RCDATA||t.parser.tokenizer.state===cK.RAWTEXT||t.parser.tokenizer.state===cK.SCRIPT_DATA)&&(t.parser.tokenizer.state=cK.DATA)}(e,t)}function pg(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);let n={type:yn.CHARACTER,chars:e.value,location:p_(e)};pw(t,po(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function px(e,t){let n={type:yn.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:p_(e)};pw(t,po(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function pv(e,t){let n=e.value,i={type:yn.COMMENT,data:n,location:p_(e)};pw(t,po(e)),t.parser.currentToken=i,t.parser._processToken(t.parser.currentToken)}function py(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,pk(t,po(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(pu,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),72===t.parser.tokenizer.state||78===t.parser.tokenizer.state){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;let e=t.parser.tokenizer._consume();t.parser.tokenizer._callState(e)}}function pb(e,t){if(t.options.passThrough&&t.options.passThrough.includes(e.type))!function(e,t){t.stitches=!0;let n="children"in e?cg({...e,children:[]}):cg(e);if("children"in e&&"children"in n){let i=pp({type:"root",children:e.children},t.options);n.children=i.children}pv({type:"comment",value:{stitch:n}},t)}(e,t);else{let t="";
269throw pc.has(e.type)&&(t=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),Error("Cannot compile `"+e.type+"` node"+t)}}function pw(e,t){pk(e,t);let n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=cK.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function pk(e,t){if(t&&void 0!==t.offset){let n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function p_(e){let t=po(e)||{line:void 0,column:void 0,offset:void 0},n=pa(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}let pT=["ariaDescribedBy","ariaLabel","ariaLabelledBy"],pE={ancestors:{tbody:["table"],td:["table"],th:["table"],thead:["table"],tfoot:["table"],tr:["table"]},attributes:{a:[...pT,"dataFootnoteBackref","dataFootnoteRef",["className","data-footnote-backref"],"href"],blockquote:["cite"],code:[["className",/^language-./]],del:["cite"],div:["itemScope","itemType"],dl:[...pT],h2:[["className","sr-only"]],img:[...pT,"longDesc","src"],input:[["disabled",!0],["type","checkbox"]],ins:["cite"],li:[["className","task-list-item"]],ol:[...pT,["className","contains-task-list"]],q:["cite"],section:["dataFootnotes",["className","footnotes"]],source:["srcSet"],summary:[...pT],table:[...pT],ul:[...pT,["className","contains-task-list"]],"*":["abbr","accept","acceptCharset","accessKey","action","align","alt","axis","border","cellPadding","cellSpacing","char","charOff","charSet","checked","clear","colSpan","color","cols","compact","coords","dateTime","dir","encType","frame","hSpace","headers","height","hrefLang","htmlFor","id","isMap","itemProp","label","lang","maxLength","media","method","multiple","name","noHref","noShade","noWrap","open","prompt","readOnly","rev","rowSpan","rows","rules","scope","selected","shape","size","span","start","summary","tabIndex","title","useMap","vAlign","value","width"]},clobber:["ariaDescribedBy","ariaLabelledBy","id","name"],clobberPrefix:"user-content-",protocols:{cite:["http","https"],href:["http","https","irc","ircs","mailto","xmpp"],longDesc:["http","https"],src:["http","https"]},required:{input:{disabled:!0,type:"checkbox"}},strip:["script"],tagNames:["a","b","blockquote","br","code","dd","del","details","div","dl","dt","em","h1","h2","h3","h4","h5","h6","hr","i","img","input","ins","kbd","li","ol","p","picture","pre","q","rp","rt","ruby","s","samp","section","source","span","strike","strong","sub","summary","sup","table","tbody","td","tfoot","th","thead","tr","tt","ul","var"]},pS={}.hasOwnProperty;function pA(e,t){if(t&&"object"==typeof t)switch("string"==typeof t.type?t.type:""){case"comment":return function(e,t){if(e.schema.allowComments){let e="string"==typeof t.value?t.value:"",n=e.indexOf("-->"),i={type:"comment",value:n<0?e:e.slice(0,n)};return pM(i,t),i}}(e,t);case"doctype":return function(e,t){if(e.schema.allowDoctypes){let e={type:"doctype"};return pM(e,t),e}}(e,t);case"element":return function(e,t){let n="string"==typeof t.tagName?t.tagName:"";e.stack.push(n);let i=pC(e,t.children),a=function(e,t){let n;let i=e.stack[e.stack.length-1],a=e.schema.attributes,o=e.schema.required,s=a&&pS.call(a,i)?a[i]:void 0,l=a&&pS.call(a,"*")?a["*"]:void 0,u=t&&"object"==typeof t?t:{},c={};for(n in u)if(pS.call(u,n)){let t=u[n],i=pN(e,pP(s,n),n,t);null==i&&(i=pN(e,pP(l,n),n,t)),null!=i&&(c[n]=i)}if(o&&pS.call(o,i)){let e=o[i];for(n in e)pS.call(e,n)&&!pS.call(c,n)&&(c[n]=e[n])}return c}(e,t.properties);e.stack.pop();let o=!1;if(n&&"*"!==n&&(!e.schema.tagNames||e.schema.tagNames.includes(n))&&(o=!0,e.schema.ancestors&&pS.call(e.schema.ancestors,n))){let t=e.schema.ancestors[n],i=-1;for(o=!1;++i<t.length;)e.stack.includes(t[i])&&(o=!0)}if(!o)return e.schema.strip&&!e.schema.strip.includes(n)?i:void 0;let s={type:"element",tagName:n,properties:a,children:i};return pM(s,t),s}(e,t);case"root":return function(e,t){let n={type:"root",children:pC(e,t.children)};return pM(n,t),n}(e,t);case"text":return function(e,t){let n={type:"text",value:"string"==typeof t.value?t.value:""};return pM(n,t),n}(0,t)}}function pC(e,t){let n=[];if(Array.isArray(t)){let i=-1;for(;++i<t.length;){let a=pA(e,t[i]);a&&(Array.isArray(a)?n.push(...a):n.push(a))}}return n}function pN(e,t,n,i){return t?Array.isArray(i)?function(e,t,n,i){let a=-1,o=[];for(;++a<i.length;){let s=pI(e,t,n,i[a]);("number"==typeof s||"string"==typeof s)&&o.push(s)}return o}(e,t,n,i):pI(e,t,n,i):void 0}function pI(e,t,n,i){if(!("boolean"!=typeof i&&"number"!=typeof i&&"string"!=typeof i)&&function(e,t,n){let i=e.sc
269hema.protocols&&pS.call(e.schema.protocols,t)?e.schema.protocols[t]:void 0;if(!i||0===i.length)return!0;let a=String(n),o=a.indexOf(":"),s=a.indexOf("?"),l=a.indexOf("#"),u=a.indexOf("/");if(o<0||u>-1&&o>u||s>-1&&o>s||l>-1&&o>l)return!0;let c=-1;for(;++c<i.length;){let e=i[c];if(o===e.length&&a.slice(0,e.length)===e)return!0}return!1}(e,n,i)){if("object"==typeof t&&t.length>1){let e=!1,n=0;for(;++n<t.length;){let a=t[n];if(a&&"object"==typeof a&&"flags"in a){if(a.test(String(i))){e=!0;break}}else if(a===i){e=!0;break}}if(!e)return}return e.schema.clobber&&e.schema.clobberPrefix&&e.schema.clobber.includes(n)?e.schema.clobberPrefix+i:i}}function pM(e,t){let n=pl(t);t.data&&(e.data=cg(t.data)),n&&(e.position=n)}function pP(e,t){let n,i=-1;if(e)for(;++i<e.length;){let a=e[i],o="string"==typeof a?a:a[0];if(o===t)return a;"data*"===o&&(n=a)}if(t.length>4&&"data"===t.slice(0,4).toLowerCase())return n}let pR={eof:null,asterisk:42,underscore:95,tilde:126},pD={attentionSideAfter:2,characterGroupPunctuation:2,characterGroupWhitespace:1},pL={data:"data",characterEscape:"characterEscape",emphasis:"emphasis",emphasisSequence:"emphasisSequence",emphasisText:"emphasisText",strong:"strong",strongSequence:"strongSequence",strongText:"strongText"},pO=pK(/[A-Za-z]/),pB=pK(/[\dA-Za-z]/),pj=pK(/[#-'*+\--9=?A-Z^-~]/);function pz(e){return null!==e&&(e<32||127===e)}let pF=pK(/\d/),pH=pK(/[\dA-Fa-f]/),pU=pK(/[!-/:-@[-`{-~]/);function pG(e){return null!==e&&e<-2}function pq(e){return null!==e&&(e<0||32===e)}function pV(e){return -2===e||-1===e||32===e}let pW=pK(RegExp("\\p{P}|\\p{S}","u")),pY=pK(/\s/);function pK(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCharCode(t))}}var pX=Object.defineProperty,pQ=(e,t,n)=>t in e?pX(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,pZ=(e,t,n)=>pQ(e,t+"",n),p$=p0(RegExp("\\p{P}|\\p{S}","u")),pJ=p0(/\s/);function p0(e){return function(t){return null!==t&&t>-1&&e.test(String.fromCodePoint(t))}}function p1(e){if(e===pR.eof||pq(e)||pJ(e))return pD.characterGroupWhitespace;let t=0;if(e>=4352){if(null!==e&&e>=65024&&e<=65038)return yf.nonEmojiGeneralUseVS;switch(function(e){if(!e||e<4352)return!1;switch(function(e){if(!Number.isSafeInteger(e))throw TypeError(`Expected a code point, got \`${typeof e}\`.`)}(e),161===e||164===e||167===e||168===e||170===e||173===e||174===e||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||198===e||208===e||215===e||216===e||e>=222&&e<=225||230===e||e>=232&&e<=234||236===e||237===e||240===e||242===e||243===e||e>=247&&e<=250||252===e||254===e||257===e||273===e||275===e||283===e||294===e||295===e||299===e||e>=305&&e<=307||312===e||e>=319&&e<=322||324===e||e>=328&&e<=331||333===e||338===e||339===e||358===e||359===e||363===e||462===e||464===e||466===e||468===e||470===e||472===e||474===e||476===e||593===e||609===e||708===e||711===e||e>=713&&e<=715||717===e||720===e||e>=728&&e<=731||733===e||735===e||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||1025===e||e>=1040&&e<=1103||1105===e||8208===e||e>=8211&&e<=8214||8216===e||8217===e||8220===e||8221===e||e>=8224&&e<=8226||e>=8228&&e<=8231||8240===e||8242===e||8243===e||8245===e||8251===e||8254===e||8308===e||8319===e||e>=8321&&e<=8324||8364===e||8451===e||8453===e||8457===e||8467===e||8470===e||8481===e||8482===e||8486===e||8491===e||8531===e||8532===e||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||8585===e||e>=8592&&e<=8601||8632===e||8633===e||8658===e||8660===e||8679===e||8704===e||8706===e||8707===e||8711===e||8712===e||8715===e||8719===e||8721===e||8725===e||8730===e||e>=8733&&e<=8736||8739===e||8741===e||e>=8743&&e<=8748||8750===e||e>=8756&&e<=8759||8764===e||8765===e||8776===e||8780===e||8786===e||8800===e||8801===e||e>=8804&&e<=8807||8810===e||8811===e||8814===e||8815===e||8834===e||8835===e||8838===e||8839===e||8853===e||8857===e||8869===e||8895===e||8978===e||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||9632===e||9633===e||e>=9635&&e<=9641||9650===e||9651===e||9654===e||9655===e||9660===e||9661===e||9664===e||9665===e||e>=9670&&e<=9672||9675===e||e>=9678&&e<=9681||e>=9698&&e<=9701||9711===e||9733===e||9734===e||9737===e||9742===e||9743===e||9756===e||9758===e||9792===e||9794===e||9824===e||9825===e||e>=9827&&e<=9829||e>=9831&&e<=9834||9836===e||9837===e||9839===e||9886===e||9887===e||9919===e||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||9955===e||9960===e||9961===e||e>=9963&&e<=9969||9972===e||e>=9974&&e<=9977||9979===e||9980===e||9982===e||9983===e||10045===e||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||65533===e||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||127375===e||127376===e||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109?"ambiguous":12288===e||e>=65281&&e<=65376||e>=65504&&e<=65510?"fullwidth":8361===e||e>=65377&&e<=65470||e>=65474&&e<=65479||e>=65482&&e<=65487||e>=65490&&e<=65495||e>=65498&&e<=65500||e>=65512&&e<=65518?"halfwidth":e>=32&&e<=126||162===e||163===e||165===e||166===e||172===e||175===e||e>=10214&&e<=10221||10629===e||10630===e?"narrow":e>=4352&&e<=4447||8986===e||8987===e||9001===e||9002===e||e>=9193&&e<=9196||9200===e||9203===e||9725===e||9726===e||9748===e||9749===e||e>=9776&&e<=9783||e>=9800&&e<=9811||9855===e||e>=9866&&e<=9871||9875===e||9889===e||9898===e||9899===e||9917===e||9918===e||9924===e||9925===e||9934===e||9940===e||9962===e||9970===e||9971===e||9973===e||9978===e||9981===e||9989===e||9994===e||9995===e||10024===e||10060===e||10062===e||e>=10067&&e<=10069||10071===e||e>=10133&&e<=10135||10160===e||10175===e||11035===e||11036===e||11088===e||11093===e||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||110589===e||110590===e||e>=110592&&e<=110882||110898===e||e>=110928&&e<=110930||110933===e||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||126980===e||127183===e||127374===e||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>
269=127552&&e<=127560||127568===e||127569===e||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||127988===e||e>=127992&&e<=128062||128064===e||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||128378===e||128405===e||128406===e||128420===e||e>=128507&&e<=128591||e>=128640&&e<=128709||128716===e||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||128747===e||128748===e||e>=128756&&e<=128764||e>=128992&&e<=129003||129008===e||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||129736===e||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141?"wide":"neutral"){case"fullwidth":case"halfwidth":return!0;case"wide":return!RegExp("^\\p{Emoji_Presentation}","u").test(String.fromCodePoint(e));case"narrow":return!1;case"ambiguous":return 917760<=e&&e<=917999&&null;case"neutral":return RegExp("^\\p{sc=Hangul}","u").test(String.fromCodePoint(e))}}(e)){case null:return yf.ivs;case!0:t|=yf.cjk}}return p$(e)&&(t|=pD.characterGroupPunctuation),t}function p2(e,t,n){if(e!==yf.nonEmojiGeneralUseVS)return e;let i=t(),a=p1(i);return!i||p4(a)?e:65025===n&&i&&!(i<8216)&&(8216===i||8217===i||8220===i||8221===i)?yf.cjkPunctuation:a&~yf.ivs}function p4(e){return!!(e&pD.characterGroupWhitespace)}function p5(e){return(e&yf.cjkPunctuation)===pD.characterGroupPunctuation}function p3(e){return!!(e&yf.cjk)}function p6(e){return!!(e&yf.spaceOrPunctuation)}function p7(e){return!!(e&&e>=55296&&e<=56319)}function p8(e){return!!(e&&e>=56320&&e<=57343)}function p9(e,t,n){if(t._bufferIndex<2)return e;let i=n({start:{...t,_bufferIndex:t._bufferIndex-2},end:t}).codePointAt(0);return i&&i>=65536?i:e}(v9=yf||(yf={})).spaceOrPunctuation=3,v9.cjk=4096,v9.cjkPunctuation=4098,v9.ivs=8192,v9.cjkOrIvs=12288,v9.nonEmojiGeneralUseVS=16384,v9.variationSelector=24576,v9.ivsToCjkRightShift=1;var he=class{constructor(e,t,n){this.previousCode=e,this.nowPoint=t,this.sliceSerialize=n,pZ(this,"cachedValue")}value(){return void 0===this.cachedValue&&(this.cachedValue=function(e,t,n){let i=e>=65536?2:1;if(t._bufferIndex<1+i)return null;let a=t._bufferIndex-i-2,o=n({start:{...t,_bufferIndex:a>=0?a:0},end:{...t,_bufferIndex:t._bufferIndex-i}}),s=o.charCodeAt(o.length-1);if(Number.isNaN(s))return null;if(o.length<2||s<56320||57343<s)return s;let l=o.codePointAt(0);return l&&l>=65536?l:s}(this.previousCode,this.nowPoint,this.sliceSerialize)),this.cachedValue}};function ht(e,t,n){let i=n({start:t,end:{...t,_bufferIndex:t._bufferIndex+2}}).codePointAt(0);return i&&i>=65536?i:e}function hn(e,t,n,i){let a=e.length,o=0,s;if(t=t<0?-t>a?0:a+t:t>a?a:t,n=n>0?n:0,i.length<1e4)(s=Array.from(i)).unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);o<i.length;)(s=i.slice(o,o+1e4)).unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function hr(e,t){return e.length>0?(hn(e,e.length,0,t),e):t}function hi(e,t,n){let i=[],a=-1;for(;++a<e.length;){let o=e[a].resolveAll;o&&!i.includes(o)&&(t=o(t,n),i.push(o))}return t}var ha={name:"attention",resolveAll:function(e,t){let n=-1,i,a,o,s,l,u,c,d;for(;++n<e.length;)if("enter"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._close){for(i=n;i--;)if("exit"===e[i][0]&&"attentionSequence"===e[i][1].type&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let p={...e[i][1].end},h={...e[n][1].start};ho(p,-u),ho(h,u),s={type:u>1?pL.strongSequence:pL.emphasisSequence,start:p,end:{...e[i][1].end}},l={type:u>1?pL.strongSequence:pL.emphasisSequence,start:{...e[n][1].start},end:h},o={type:u>1?pL.strongText:pL.emphasisText,start:{...e[i][1].end},end:{...e[n][1].start}},a={type:u>1?pL.strong:pL.emphasis,start:{...s.start},end:{...l.end}},e[i][1].end={...s.start},e[n][1].start={...l.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=hr(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=hr(c,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",o,t]]),t.parser.constructs.insideSpan.null,c=hr(c,hi(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),c=hr(c,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",a,t]]
269),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=hr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,hn(e,i-1,n-i+3,c),n=i+c.length-d-2;break}}for(n=-1;++n<e.length;)"attentionSequence"===e[n][1].type&&(e[n][1].type="data");return e},tokenize:function(e,t){let n;let i=this.parser.constructs.attentionMarkers.null,{now:a,sliceSerialize:o,previous:s}=this,l=p8(s)?p9(s,a(),o):s,u=p1(l),c=new he(l,a(),o),d=p2(u,c.value.bind(c),l);return function(s){return n=s,e.enter("attentionSequence"),function s(u){if(u===n)return e.consume(u),s;let c=e.exit("attentionSequence"),p=p1(p7(u)?ht(u,a(),o):u),h=p5(d),m=h||p4(d),f=p5(p),g=f||p4(p),x=!!(d&yf.cjkOrIvs),v=!g||f&&(m||x)||i.includes(u),b=!m||h&&(g||p3(p))||i.includes(l);return c._open=!!(n===pR.asterisk?v:v&&(p6(d)||!b)),c._close=!!(n===pR.asterisk?b:b&&(p6(p)||!v)),t(u)}(s)}}};function ho(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function hs(e,t){let n=String(e);if("string"!=typeof t)throw TypeError("Expected character");let i=0,a=n.indexOf(t);for(;-1!==a;)i++,a=n.indexOf(t,a+t.length);return i}let hl="phrasing",hu=["autolink","link","image","label"];function hc(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function hd(e){this.config.enter.autolinkProtocol.call(this,e)}function hp(e){this.config.exit.autolinkProtocol.call(this,e)}function hh(e){this.config.exit.data.call(this,e);let t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function hm(e){this.config.exit.autolinkEmail.call(this,e)}function hf(e){this.exit(e)}function hg(e){!function(e,t,n){let i=ij((n||{}).ignore||[]),a=function(e){let t=[];if(!Array.isArray(e))throw TypeError("Expected find and replace tuple or list of tuples");let n=!e[0]||Array.isArray(e[0])?e:[e],i=-1;for(;++i<n.length;){var a;let e=n[i];t.push(["string"==typeof(a=e[0])?RegExp(function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}(a),"g"):a,function(e){return"function"==typeof e?e:function(){return e}}(e[1])])}return t}(t),o=-1;for(;++o<a.length;)iG(e,"text",s);function s(e,t){let n=-1,s;for(;++n<t.length;){let e=t[n],a=s?s.children:void 0;if(i(e,a?a.indexOf(e):void 0,s))return;s=e}if(s)return function(e,t){let n=t[t.length-1],i=a[o][0],s=a[o][1],l=0,u=n.children.indexOf(e),c=!1,d=[];i.lastIndex=0;let p=i.exec(e.value);for(;p;){let n=p.index,a={index:p.index,input:p.input,stack:[...t,e]},o=s(...p,a);if("string"==typeof o&&(o=o.length>0?{type:"text",value:o}:void 0),!1===o?i.lastIndex=n+1:(l!==n&&d.push({type:"text",value:e.value.slice(l,n)}),Array.isArray(o)?d.push(...o):o&&d.push(o),l=n+p[0].length,c=!0),!i.global)break;p=i.exec(e.value)}return c?(l<e.value.length&&d.push({type:"text",value:e.value.slice(l)}),n.children.splice(u,1,...d)):d=[e],u+d.length}(e,t)}}(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,hx],[RegExp("(?<=^|\\s|\\p{P}|\\p{S})([-.\\w+]+)@([-\\w]+(?:\\.[-\\w]+)+)","gu"),hv]],{ignore:["link","linkReference"]})}function hx(e,t,n,i,a){let o="";if(!hy(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!function(e){let t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}(n)))return!1;let s=function(e){let t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],i=n.indexOf(")"),a=hs(e,"("),o=hs(e,")");for(;-1!==i&&a>o;)e+=n.slice(0,i+1),i=(n=n.slice(i+1)).indexOf(")"),o++;return[e,n]}(n+i);if(!s[0])return!1;let l={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[l,{type:"text",value:s[1]}]:l}function hv(e,t,n,i){return!(!hy(i,!0)||/[-\d_]$/.test(n))&&{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function hy(e,t){let n=e.input.charCodeAt(e.index-1);return(0===e.index||pY(n)||pW(n))&&(!t||47!==n)}function hb(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}function hw(){this.buffer()}function hk(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function h_(){this.buffer()}function hT(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function hE(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hb(this.sliceSerialize(e)).toLowerCase(),n.label=t}function hS(e){this.exit(e)}function hA(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=hb(this.sliceSerialize(e)).toLowerCase(),n.label=t}function hC(e){this.exit(e)}function hN(e,t,n,i){let a=n.createTracker(i),o=a.move("[^"),s=n.enter("footnoteReference"),l=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),l(),s(),o+=a.move("]")}
269function hI(e,t,n){return 0===t?e:hM(e,t,n)}function hM(e,t,n){return(n?"":"    ")+e}hN.peek=function(){return"["};let hP=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];function hR(e){this.enter({type:"delete",children:[]},e)}function hD(e){this.exit(e)}function hL(e,t,n,i){let a=n.createTracker(i),o=n.enter("strikethrough"),s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"})+a.move("~~"),o(),s}function hO(e){return e.length}function hB(e){let t="string"==typeof e?e.codePointAt(0):0;return 67===t||99===t?99:76===t||108===t?108:82===t||114===t?114:0}hL.peek=function(){return"~"};function hj(e){return null===e||pq(e)||pY(e)?1:pW(e)?2:void 0}let hz={};function hF(e,t){return hH(e,"boolean"!=typeof hz.includeImageAlt||hz.includeImageAlt,"boolean"!=typeof hz.includeHtml||hz.includeHtml)}function hH(e,t,n){if(e&&"object"==typeof e){if("value"in e)return"html"!==e.type||n?e.value:"";if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return hU(e.children,t,n)}return Array.isArray(e)?hU(e,t,n):""}function hU(e,t,n){let i=[],a=-1;for(;++a<e.length;)i[a]=hH(e[a],t,n);return i.join("")}function hG(e,t,n){let i=e.value||"",a="`",o=-1;for(;RegExp("(^|[^`])"+a+"([^`]|$)").test(i);)a+="`";for(/[^ \r\n]/.test(i)&&(/^[ \r\n]/.test(i)&&/[ \r\n]$/.test(i)||/^`|`$/.test(i))&&(i=" "+i+" ");++o<n.unsafe.length;){let e;let t=n.unsafe[o],a=n.compilePattern(t);if(t.atBreak)for(;e=a.exec(i);){let t=e.index;10===i.charCodeAt(t)&&13===i.charCodeAt(t-1)&&t--,i=i.slice(0,t)+" "+i.slice(e.index+1)}}return a+i+a}hG.peek=function(){return"`"},ij(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);let hq=function(e,t,n,i){let a=function(e){let t=e.options.listItemIndent||"one";if("tab"!==t&&"one"!==t&&"mixed"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}(n),o=n.bulletCurrent||function(e){let t=e.options.bullet||"*";if("*"!==t&&"+"!==t&&"-"!==t)throw Error("Cannot serialize items with `"+t+"` for `options.bullet`, expected `*`, `+`, or `-`");return t}(n);t&&"list"===t.type&&t.ordered&&(o=("number"==typeof t.start&&t.start>-1?t.start:1)+(!1===n.options.incrementListMarker?0:t.children.indexOf(e))+o);let s=o.length+1;("tab"===a||"mixed"===a&&(t&&"list"===t.type&&t.spread||e.spread))&&(s=4*Math.ceil(s/4));let l=n.createTracker(i);l.move(o+" ".repeat(s-o.length)),l.shift(s);let u=n.enter("listItem"),c=n.indentLines(n.containerFlow(e,l.current()),function(e,t,n){return t?(n?"":" ".repeat(s))+e:(n?o:o+" ".repeat(s-o.length))+e});return u(),c},hV=document.createElement("i");function hW(e){let t="&"+e+";";hV.innerHTML=t;let n=hV.textContent;return(59!==n.charCodeAt(n.length-1)||"semi"===e)&&n!==t&&n}function hY(e,t){let n=Number.parseInt(e,t);return n<9||11===n||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(65535&n)==65535||(65535&n)==65534||n>1114111?"�":String.fromCodePoint(n)}let hK=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function hX(e,t,n){if(t)return t;if(35===n.charCodeAt(0)){let e=n.charCodeAt(1),t=120===e||88===e;return hY(n.slice(t?2:1),t?16:10)}return hW(n)||e}function hQ(e){let t=e._align;this.enter({type:"table",align:t.map(function(e){return"none"===e?null:e}),children:[]},e),this.data.inTable=!0}function hZ(e){this.exit(e),this.data.inTable=void 0}function h$(e){this.enter({type:"tableRow",children:[]},e)}function hJ(e){this.exit(e)}function h0(e){this.enter({type:"tableCell",children:[]},e)}function h1(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,h2));let n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function h2(e,t){return"|"===t?t:e}function h4(e){let t=this.stack[this.stack.length-2];t.type,t.checked="taskListCheckValueChecked"===e.type}function h5(e){let t=this.stack[this.stack.length-2];if(t&&"listItem"===t.type&&"boolean"==typeof t.checked){let e=this.stack[this.stack.length-1];e.type;let n=e.children[0];if(n&&"text"===n.type){let i=t.children,a=-1,o;for(;++a<i.length;){let e=i[a];if("paragraph"===e.type){o=e;break}}o===e&&(n.value=n.value.slice(1),0===n.value.length?e.children.shift():e.position&&n.position&&"number"==typeof n.position.start.offset&&(n.position.start.column++,n.position.start.offset++,e.position.start=Object.assign({},n.position.start)))}}this.exit(e)}function h3(e,t,n,i){let a=e.children[0],o="boolean"==typeof e.checked&&a&&"paragraph"===a.type,s="["+(e.checked?"x":" ")+"] ",l=n.createTracker(i);o&&l.move(s);let u=hq(e,t,n,{...i,...l.current()});return o&&(u=u.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,function(e){return e+s})),u}let h6={}.hasOwnProperty;function h7(e){let t={},n=-1;for(;++n<e.length;)!function(e,t){let n;for(n in t){let i;let a=(h6.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];if(o)for(i in o){h6.call(a,i)||(a[i]=[]);let e=o[i];!function(e,t){let n=-1,i=[];for(;++n<t.length;)("after"===t[n].add?e:i).push(t[n]);hn(e,0,0,i)}(a[i],Array.isArray(e)?e:e?[e]:[])}}}(t,e[n]);return t}let h8={tokenize:function(e,t,n){let i=0;return function t(o){return(87===o||119===o)&&i<3?(i++,e.consume(o),t):46===o&&3===i?(e.consume(o),a):n(o)};function a(e){return null===e?n(e):t(e)}},partial:!0},h9={tokenize:function(e,t,n){let i,a,o;return s;function s(t){return 46===t||95===t?e.check(mt,u,l)(t):null===t||pq(t)||pY(t)||45!==t&&pW(t)?u(t):(o=!0,e.consume(t),s)}function l(t){return 95===t?i=!0:(a=i,i=void 0),e.consume(t),s}function u(e){return a||i||!o?n(e):t(e)}},partial:!0},me={tokenize:function(e,t){let n=0,i=0;return a;function a(s){return 40===s?(n++,e.consume(s),a):41===s&&i<n?o(s):33===s||34===s||38===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||60===s||63===s||93===s||95===s||126===s?e.check(mt,t,o)(s):null===s||pq(s)||pY(s)?t(s):(e.consume(s),a)}function o(t){return 41===t&&i++,e.consume(t),a}},partial:!0},mt={tokenize:function(e,t,n){return i;function i(s){return 33===s||34===s||39===s||41===s||42===s||44===s||46===s||58===s||59===s||63===s||95===s||126===s?(e.consume(s),i):38===s?(e.consume(s),o):93===s?(e.consume(s),a):60===s||null===s||pq(s)||pY(s)?t(s):n(s)}function a(e){return null===e||40===e||91===e||pq(e)||pY(e)?t(e):i(e)}function o(t){return pO(t)?function t(a){return 59===a?(e.consume(a),i):pO(a)?(e.consume(a),t):n(a)}(t):n(t)}},partial:!0},mn={tokenize:function(e,t,n){return function(t){return e.consume(t),i};function i(e){return pB(e)?n(e):t(e)}},partial:!0},mr={name:"wwwAutolink",tokenize:function(e,t,n){let i=this;return function(t){return 87!==t&&119!==t||!ml.call(i,i.previous)||mp(i.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(h8,e.attempt(h9,e.attempt(me,a),n),n)(t))};function a(n){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(n)}},previous:ml},mi={name:"protocolAutolink",tokenize:function(e,t,n){let i=this,a="",o=!1;return function(t){return(72===t||104===t)&&mu.call(i,i.previous)&&!mp(i.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(t),e.consume(t),s):n(t)};function s(t){if(pO(t)&&a.length<5)return a+=String.fromCodePoint(t),e.consume(t),s;if(58===t){let n=a.toLowerCase();if("http"===n||"https"===n)return e.consume(t),l}return n(t)}function l(t){return 47===t?(e.consume(t),o?u:(o=!0,l)):n(t)}function u(t){return null===t||pz(t)||pq(t)||pY(t)||pW(t)?n(t):e.attempt(h9,e.attempt(me,c),n)(t)}function c(n){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(n)}},previous:mu},ma={name:"emailAutolink",tokenize:function(e,t,n){let i,a;let o=this;return function(t){return!md(t)||!mc.call(o,o.previous)||mp(o.events)?n(t):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),function t(i){return md(i)?(e.consume(i),t):64===i?(e.consume(i),s):n(i)}(t))};function s(t){return 46===t?e.check(mn,u,l)(t):45===t||95===t||pB(t)?(a=!0,e.consume(t),s):u(t)}function l(t){return e.consume(t),i=!0,s}function u(s){return a&&i&&pO(o.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(s)):n(s)}},previous:mc},mo={},ms=48;for(;ms<123;)mo[ms]=ma,58==++ms?ms=65:91===ms&&(ms=97);function ml(e){return null===e||40===e||42===e||95===e||91===e||93===e||126===e||pq(e)}function mu(e){return!pO(e)}function mc(e){return!(47===e||md(e))}function md(e){return 43===e||45===e||46===e||95===e||pB(e)}function mp(e){let t=e.length,n=!1;for(;t--;){let i=e[t][1];
269if(("labelLink"===i.type||"labelImage"===i.type)&&!i._balanced){n=!0;break}if(i._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}function mh(e){let t=[],n=-1,i=0,a=0;for(;++n<e.length;){let o=e.charCodeAt(n),s="";if(37===o&&pB(e.charCodeAt(n+1))&&pB(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){let t=e.charCodeAt(n+1);o<56320&&t>56319&&t<57344?(s=String.fromCharCode(o,t),a=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(i,n),encodeURIComponent(s)),i=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(i)}mo[43]=ma,mo[45]=ma,mo[46]=ma,mo[95]=ma,mo[72]=[ma,mi],mo[104]=[ma,mi],mo[87]=[ma,mr],mo[119]=[ma,mr];let mm={name:"attention",resolveAll:function(e,t){let n=-1,i,a,o,s,l,u,c,d;for(;++n<e.length;)if("enter"===e[n][0]&&"attentionSequence"===e[n][1].type&&e[n][1]._close){for(i=n;i--;)if("exit"===e[i][0]&&"attentionSequence"===e[i][1].type&&e[i][1]._open&&t.sliceSerialize(e[i][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[i][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[i][1].end.offset-e[i][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;u=e[i][1].end.offset-e[i][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;let p={...e[i][1].end},h={...e[n][1].start};mf(p,-u),mf(h,u),s={type:u>1?"strongSequence":"emphasisSequence",start:p,end:{...e[i][1].end}},l={type:u>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:h},o={type:u>1?"strongText":"emphasisText",start:{...e[i][1].end},end:{...e[n][1].start}},a={type:u>1?"strong":"emphasis",start:{...s.start},end:{...l.end}},e[i][1].end={...s.start},e[n][1].start={...l.end},c=[],e[i][1].end.offset-e[i][1].start.offset&&(c=hr(c,[["enter",e[i][1],t],["exit",e[i][1],t]])),c=hr(c,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",o,t]]),c=hr(c,hi(t.parser.constructs.insideSpan.null,e.slice(i+1,n),t)),c=hr(c,[["exit",o,t],["enter",l,t],["exit",l,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,c=hr(c,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,hn(e,i-1,n-i+3,c),n=i+c.length-d-2;break}}for(n=-1;++n<e.length;)"attentionSequence"===e[n][1].type&&(e[n][1].type="data");return e},tokenize:function(e,t){let n;let i=this.parser.constructs.attentionMarkers.null,a=this.previous,o=hj(a);return function(s){return n=s,e.enter("attentionSequence"),function s(l){if(l===n)return e.consume(l),s;let u=e.exit("attentionSequence"),c=hj(l),d=!c||2===c&&o||i.includes(l),p=!o||2===o&&c||i.includes(a);return u._open=!!(42===n?d:d&&(o||!p)),u._close=!!(42===n?p:p&&(c||!d)),t(l)}(s)}}};function mf(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}function mg(e,t,n,i){let a=i?i-1:Number.POSITIVE_INFINITY,o=0;return function(i){return pV(i)?(e.enter(n),function i(s){return pV(s)&&o++<a?(e.consume(s),i):(e.exit(n),t(s))}(i)):t(i)}}let mx={partial:!0,tokenize:function(e,t,n){return function(t){return pV(t)?mg(e,i,"linePrefix")(t):i(t)};function i(e){return null===e||pG(e)?t(e):n(e)}}},mv={continuation:{tokenize:function(e,t,n){let i=this;return function(t){return pV(t)?mg(e,a,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):a(t)};function a(i){return e.attempt(mv,t,n)(i)}}},exit:function(e){e.exit("blockQuote")},name:"blockQuote",tokenize:function(e,t,n){let i=this;return function(t){if(62===t){let n=i.containerState;return n.open||(e.enter("blockQuote",{_container:!0}),n.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(t),e.exit("blockQuoteMarker"),a}return n(t)};function a(n){return pV(n)?(e.enter("blockQuotePrefixWhitespace"),e.consume(n),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(n))}}},my={name:"characterEscape",tokenize:function(e,t,n){return function(t){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(t),e.exit("escapeMarker"),i};function i(i){return pU(i)?(e.enter("characterEscapeValue"),e.consume(i),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(i)}}},mb={name:"characterReference",tokenize:function(e,t,n){let i=this,a=0,o,s;return function(t){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(t),e.exit("characterReferenceMarker"),l};function l(t){return 35===t?(e.enter("characterReferenceMarkerNumeric"),e.consume(t),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=pB,c(t))}function u(t){return 88===t||120===t?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(t),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=pH,c):(e.enter("characterReferenceValue"),o=7,s=pF,c(t))}function c(l){if(59===l&&a){let a=e.exit("characterReferenceValue");return s!==pB||hW(i.sliceSerialize(a))?(e.enter("characterReferenceMarker"),e.consume(l),e.exit("characterReferenceMarker"),e.exit("characterReference"),t):n(l)}return s(l)&&a++<o?(e.consume(l),c):n(l)}}},mw={partial:!0,tokenize:function(e,t,n){let i=this;return function(t){return null===t?n(t):(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a)};function a(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}},mk={concrete:!0,name:"codeFenced",tokenize:function(e,t,n){let i=this,a={partial:!0,tokenize:function(e,t,n){let a=0;return function(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),o};
269function o(t){return e.enter("codeFencedFence"),pV(t)?mg(e,u,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):u(t)}function u(t){return t===l?(e.enter("codeFencedFenceSequence"),function t(i){return i===l?(a++,e.consume(i),t):a>=s?(e.exit("codeFencedFenceSequence"),pV(i)?mg(e,c,"whitespace")(i):c(i)):n(i)}(t)):n(t)}function c(i){return null===i||pG(i)?(e.exit("codeFencedFence"),t(i)):n(i)}}},o=0,s=0,l;return function(t){return function(t){let a=i.events[i.events.length-1];return o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,l=t,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),function t(i){return i===l?(s++,e.consume(i),t):s<3?n(i):(e.exit("codeFencedFenceSequence"),pV(i)?mg(e,u,"whitespace")(i):u(i))}(t)}(t)};function u(a){return null===a||pG(a)?(e.exit("codeFencedFence"),i.interrupt?t(a):e.check(mw,d,f)(a)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||pG(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),u(i)):pV(i)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),mg(e,c,"whitespace")(i)):96===i&&i===l?n(i):(e.consume(i),t)}(a))}function c(t){return null===t||pG(t)?u(t):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||pG(i)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),u(i)):96===i&&i===l?n(i):(e.consume(i),t)}(t))}function d(t){return e.attempt(a,f,p)(t)}function p(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),h}function h(t){return o>0&&pV(t)?mg(e,m,"linePrefix",o+1)(t):m(t)}function m(t){return null===t||pG(t)?e.check(mw,d,f)(t):(e.enter("codeFlowValue"),function t(n){return null===n||pG(n)?(e.exit("codeFlowValue"),m(n)):(e.consume(n),t)}(t))}function f(n){return e.exit("codeFenced"),t(n)}}},m_={name:"codeIndented",tokenize:function(e,t,n){let i=this;return function(t){return e.enter("codeIndented"),mg(e,a,"linePrefix",5)(t)};function a(t){let a=i.events[i.events.length-1];return a&&"linePrefix"===a[1].type&&a[2].sliceSerialize(a[1],!0).length>=4?function t(n){return null===n?o(n):pG(n)?e.attempt(mT,t,o)(n):(e.enter("codeFlowValue"),function n(i){return null===i||pG(i)?(e.exit("codeFlowValue"),t(i)):(e.consume(i),n)}(n))}(t):n(t)}function o(n){return e.exit("codeIndented"),t(n)}}},mT={partial:!0,tokenize:function(e,t,n){let i=this;return a;function a(t){return i.parser.lazy[i.now().line]?n(t):pG(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):mg(e,o,"linePrefix",5)(t)}function o(e){let o=i.events[i.events.length-1];return o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(e):pG(e)?a(e):n(e)}}};class mE{constructor(e){this.left=e?[...e]:[],this.right=[]}get(e){if(e<0||e>=this.left.length+this.right.length)throw RangeError("Cannot access index `"+e+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return e<this.left.length?this.left[e]:this.right[this.right.length-e+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(e,t){let n=t??Number.POSITIVE_INFINITY;return n<this.left.length?this.left.slice(e,n):e>this.left.length?this.right.slice(this.right.length-n+this.left.length,this.right.length-e+this.left.length).reverse():this.left.slice(e).concat(this.right.slice(this.right.length-n+this.left.length).reverse())}splice(e,t,n){this.setCursor(Math.trunc(e));let i=this.right.splice(this.right.length-(t||0),Number.POSITIVE_INFINITY);return n&&mS(this.left,n),i.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(e){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(e)}pushMany(e){this.setCursor(Number.POSITIVE_INFINITY),mS(this.left,e)}unshift(e){this.setCursor(0),this.right.push(e)}unshiftMany(e){this.setCursor(0),mS(this.right,e.reverse())}setCursor(e){if(!(e===this.left.length||e>this.left.length&&0===this.right.length||e<0&&0===this.left.length)){if(e<this.left.length){let t=this.left.splice(e,Number.POSITIVE_INFINITY);mS(this.right,t.reverse())}else{let t=this.right.splice(this.left.length+this.right.length-e,Number.POSITIVE_INFINITY);mS(this.left,t.reverse())}}}}function mS(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function mA(e){let t={},n=-1,i,a,o,s,l,u,c,d=new mE(e);for(;++n<d.length;){for(;(n in t);)n=t[n];if(i=d.get(n),n&&"chunkFlow"===i[1].type&&"listItemPrefix"===d.get(n-1)[1].type&&((o=0)<(u=i[1]._tokenizer.events).length&&"lineEndingBlank"===u[o][1].type&&(o+=2),o<u.length&&"content"===u[o][1].type))for(;++o<u.length&&"content"!==u[o][1].type;)"chunkText"===u[o][1].type&&(u[o][1]._isInFirstContentOfListItem=!0,o++);if("enter"===i[0])i[1].contentType&&(Object.assign(t,function(e,t){let n=e.get(t)[1],i=e.get(t)[2],a=t-1,o=[],s=n._tokenizer;s||(s=i.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._c
269ontentTypeTextTrailing=!0));let l=s.events,u=[],c={},d,p,h=-1,m=n,f=0,g=0,x=[0];for(;m;){for(;e.get(++a)[1]!==m;);o.push(a),m._tokenizer||(d=i.sliceStream(m),m.next||d.push(null),p&&s.defineSkip(m.start),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(d),m._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),p=m,m=m.next}for(m=n;++h<l.length;)"exit"===l[h][0]&&"enter"===l[h-1][0]&&l[h][1].type===l[h-1][1].type&&l[h][1].start.line!==l[h][1].end.line&&(g=h+1,x.push(g),m._tokenizer=void 0,m.previous=void 0,m=m.next);for(s.events=[],m?(m._tokenizer=void 0,m.previous=void 0):x.pop(),h=x.length;h--;){let t=l.slice(x[h],x[h+1]),n=o.pop();u.push([n,n+t.length-1]),e.splice(n,2,t)}for(u.reverse(),h=-1;++h<u.length;)c[f+u[h][0]]=f+u[h][1],f+=u[h][1]-u[h][0]-1;return c}(d,n)),n=t[n],c=!0);else if(i[1]._container){for(o=n,a=void 0;o--;)if("lineEnding"===(s=d.get(o))[1].type||"lineEndingBlank"===s[1].type)"enter"===s[0]&&(a&&(d.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=o);else if(!("linePrefix"===s[1].type||"listItemIndent"===s[1].type))break;a&&(i[1].end={...d.get(a)[1].start},(l=d.slice(a,n)).unshift(i),d.splice(a,n-a+1,l))}}return hn(e,0,Number.POSITIVE_INFINITY,d.slice(0)),!c}let mC={resolve:function(e){return mA(e),e},tokenize:function(e,t){let n;return function(t){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),i(t)};function i(t){return null===t?a(t):pG(t)?e.check(mN,o,a)(t):(e.consume(t),i)}function a(n){return e.exit("chunkContent"),e.exit("content"),t(n)}function o(t){return e.consume(t),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,i}}},mN={partial:!0,tokenize:function(e,t,n){let i=this;return function(t){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),mg(e,a,"linePrefix")};function a(a){if(null===a||pG(a))return n(a);let o=i.events[i.events.length-1];return!i.parser.constructs.disable.null.includes("codeIndented")&&o&&"linePrefix"===o[1].type&&o[2].sliceSerialize(o[1],!0).length>=4?t(a):e.interrupt(i.parser.constructs.flow,n,t)(a)}}};function mI(e,t,n,i,a,o,s,l,u){let c=u||Number.POSITIVE_INFINITY,d=0;return function(t){return 60===t?(e.enter(i),e.enter(a),e.enter(o),e.consume(t),e.exit(o),p):null===t||32===t||41===t||pz(t)?n(t):(e.enter(i),e.enter(s),e.enter(l),e.enter("chunkString",{contentType:"string"}),f(t))};function p(n){return 62===n?(e.enter(o),e.consume(n),e.exit(o),e.exit(a),e.exit(i),t):(e.enter(l),e.enter("chunkString",{contentType:"string"}),h(n))}function h(t){return 62===t?(e.exit("chunkString"),e.exit(l),p(t)):null===t||60===t||pG(t)?n(t):(e.consume(t),92===t?m:h)}function m(t){return 60===t||62===t||92===t?(e.consume(t),h):h(t)}function f(a){return!d&&(null===a||41===a||pq(a))?(e.exit("chunkString"),e.exit(l),e.exit(s),e.exit(i),t(a)):d<c&&40===a?(e.consume(a),d++,f):41===a?(e.consume(a),d--,f):null===a||32===a||40===a||pz(a)?n(a):(e.consume(a),92===a?g:f)}function g(t){return 40===t||41===t||92===t?(e.consume(t),f):f(t)}}function mM(e,t,n,i,a,o){let s=this,l=0,u;return function(t){return e.enter(i),e.enter(a),e.consume(t),e.exit(a),e.enter(o),c};function c(p){return l>999||null===p||91===p||93===p&&!u||94===p&&!l&&"_hiddenFootnoteSupport"in s.parser.constructs?n(p):93===p?(e.exit(o),e.enter(a),e.consume(p),e.exit(a),e.exit(i),t):pG(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(t){return null===t||91===t||93===t||pG(t)||l++>999?(e.exit("chunkString"),c(t)):(e.consume(t),u||(u=!pV(t)),92===t?p:d)}function p(t){return 91===t||92===t||93===t?(e.consume(t),l++,d):d(t)}}function mP(e,t,n,i,a,o){let s;return function(t){return 34===t||39===t||40===t?(e.enter(i),e.enter(a),e.consume(t),e.exit(a),s=40===t?41:t,l):n(t)};function l(n){return n===s?(e.enter(a),e.consume(n),e.exit(a),e.exit(i),t):(e.enter(o),u(n))}function u(t){return t===s?(e.exit(o),l(s)):null===t?n(t):pG(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),mg(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(t))}function c(t){return t===s||null===t||pG(t)?(e.exit("chunkString"),u(t)):(e.consume(t),92===t?d:c)}function d(t){return t===s||92===t?(e.consume(t),c):c(t)}}function mR(e,t){let n;return function i(a){return pG(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,i):pV(a)?mg(e,i,n?"linePrefix":"lineSuffix")(a):t(a)}}let mD={partial:!0,tokenize:function(e,t,n){return function(t){return pq(t)?mR(e,i)(t):n(t)};function i(t){return mP(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(t)}function a(t){return pV(t)?mg(e,o,"whitespace")(t):o(t)}function o(e){return null===e||pG(e)?t(e):n(e)}}},mL=["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"],mO=["pre","script","style","textarea"],mB={partial:!0,tokenize:function(e,t,n){return function(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(mx,t,n)}}},mj={partial:!0,tokenize:function(e,t,n){let i=this;return function(t){return pG(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),a):n(t)};function a(e){return i.parser.lazy[i.now().line]?n(e):t(e)}}},mz={name:"labelEnd",resolveAll:function(e){let t=-1,n=[];for(;++t<e.length;){let i=e[t][1];
269if(n.push(e[t]),"labelImage"===i.type||"labelLink"===i.type||"labelEnd"===i.type){let e="labelImage"===i.type?4:2;i.type="data",t+=e}}return e.length!==n.length&&hn(e,0,e.length,n),e},resolveTo:function(e,t){let n=e.length,i=0,a,o,s,l;for(;n--;)if(a=e[n][1],o){if("link"===a.type||"labelLink"===a.type&&a._inactive)break;"enter"===e[n][0]&&"labelLink"===a.type&&(a._inactive=!0)}else if(s){if("enter"===e[n][0]&&("labelImage"===a.type||"labelLink"===a.type)&&!a._balanced&&(o=n,"labelLink"!==a.type)){i=2;break}}else"labelEnd"===a.type&&(s=n);let u={type:"labelLink"===e[o][1].type?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},c={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},d={type:"labelText",start:{...e[o+i+2][1].end},end:{...e[s-2][1].start}};return l=hr(l=[["enter",u,t],["enter",c,t]],e.slice(o+1,o+i+3)),l=hr(l,[["enter",d,t]]),l=hr(l,hi(t.parser.constructs.insideSpan.null,e.slice(o+i+4,s-3),t)),l=hr(l,[["exit",d,t],e[s-2],e[s-1],["exit",c,t]]),l=hr(l,e.slice(s+1)),l=hr(l,[["exit",u,t]]),hn(e,o,e.length,l),e},tokenize:function(e,t,n){let i=this,a=i.events.length,o,s;for(;a--;)if(("labelImage"===i.events[a][1].type||"labelLink"===i.events[a][1].type)&&!i.events[a][1]._balanced){o=i.events[a][1];break}return function(t){return o?o._inactive?d(t):(s=i.parser.defined.includes(hb(i.sliceSerialize({start:o.end,end:i.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelEnd"),l):n(t)};function l(t){return 40===t?e.attempt(mF,c,s?c:d)(t):91===t?e.attempt(mH,c,s?u:d)(t):s?c(t):d(t)}function u(t){return e.attempt(mU,c,d)(t)}function c(e){return t(e)}function d(e){return o._balanced=!0,n(e)}}},mF={tokenize:function(e,t,n){return function(t){return e.enter("resource"),e.enter("resourceMarker"),e.consume(t),e.exit("resourceMarker"),i};function i(t){return pq(t)?mR(e,a)(t):a(t)}function a(t){return 41===t?c(t):mI(e,o,s,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(t)}function o(t){return pq(t)?mR(e,l)(t):c(t)}function s(e){return n(e)}function l(t){return 34===t||39===t||40===t?mP(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(t):c(t)}function u(t){return pq(t)?mR(e,c)(t):c(t)}function c(i){return 41===i?(e.enter("resourceMarker"),e.consume(i),e.exit("resourceMarker"),e.exit("resource"),t):n(i)}}},mH={tokenize:function(e,t,n){let i=this;return function(t){return mM.call(i,e,a,o,"reference","referenceMarker","referenceString")(t)};function a(e){return i.parser.defined.includes(hb(i.sliceSerialize(i.events[i.events.length-1][1]).slice(1,-1)))?t(e):n(e)}function o(e){return n(e)}}},mU={tokenize:function(e,t,n){return function(t){return e.enter("reference"),e.enter("referenceMarker"),e.consume(t),e.exit("referenceMarker"),i};function i(i){return 93===i?(e.enter("referenceMarker"),e.consume(i),e.exit("referenceMarker"),e.exit("reference"),t):n(i)}}},mG={name:"labelStartImage",resolveAll:mz.resolveAll,tokenize:function(e,t,n){let i=this;return function(t){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(t),e.exit("labelImageMarker"),a};function a(t){return 91===t?(e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelImage"),o):n(t)}function o(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}}},mq={name:"labelStartLink",resolveAll:mz.resolveAll,tokenize:function(e,t,n){let i=this;return function(t){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(t),e.exit("labelMarker"),e.exit("labelLink"),a};function a(e){return 94===e&&"_hiddenFootnoteSupport"in i.parser.constructs?n(e):t(e)}}},mV={name:"lineEnding",tokenize:function(e,t){return function(n){return e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),mg(e,t,"linePrefix")}}},mW={name:"thematicBreak",tokenize:function(e,t,n){let i=0,a;return function(o){return e.enter("thematicBreak"),a=o,function o(s){return s===a?(e.enter("thematicBreakSequence"),function t(n){return n===a?(e.consume(n),i++,t):(e.exit("thematicBreakSequence"),pV(n)?mg(e,o,"whitespace")(n):o(n))}(s)):i>=3&&(null===s||pG(s))?(e.exit("thematicBreak"),t(s)):n(s)}(o)}}},mY={continuation:{tokenize:function(e,t,n){let i=this;return i.containerState._closeFlow=void 0,e.check(mx,function(n){return i.containerState.furtherBlankLines=i.containerState.furtherBlankLines||i.c
269ontainerState.initialBlankLine,mg(e,t,"listItemIndent",i.containerState.size+1)(n)},function(n){return i.containerState.furtherBlankLines||!pV(n)?(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,a(n)):(i.containerState.furtherBlankLines=void 0,i.containerState.initialBlankLine=void 0,e.attempt(mX,t,a)(n))});function a(a){return i.containerState._closeFlow=!0,i.interrupt=void 0,mg(e,e.attempt(mY,t,n),"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(a)}}},exit:function(e){e.exit(this.containerState.type)},name:"list",tokenize:function(e,t,n){let i=this,a=i.events[i.events.length-1],o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,s=0;return function(t){let a=i.containerState.type||(42===t||43===t||45===t?"listUnordered":"listOrdered");if("listUnordered"===a?!i.containerState.marker||t===i.containerState.marker:pF(t)){if(i.containerState.type||(i.containerState.type=a,e.enter(a,{_container:!0})),"listUnordered"===a)return e.enter("listItemPrefix"),42===t||45===t?e.check(mW,n,l)(t):l(t);if(!i.interrupt||49===t)return e.enter("listItemPrefix"),e.enter("listItemValue"),function t(a){return pF(a)&&++s<10?(e.consume(a),t):(!i.interrupt||s<2)&&(i.containerState.marker?a===i.containerState.marker:41===a||46===a)?(e.exit("listItemValue"),l(a)):n(a)}(t)}return n(t)};function l(t){return e.enter("listItemMarker"),e.consume(t),e.exit("listItemMarker"),i.containerState.marker=i.containerState.marker||t,e.check(mx,i.interrupt?n:u,e.attempt(mK,d,c))}
269function u(e){return i.containerState.initialBlankLine=!0,o++,d(e)}function c(t){return pV(t)?(e.enter("listItemPrefixWhitespace"),e.consume(t),e.exit("listItemPrefixWhitespace"),d):n(t)}function d(n){return i.containerState.size=o+i.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(n)}}},mK={partial:!0,tokenize:function(e,t,n){let i=this;return mg(e,function(e){let a=i.events[i.events.length-1];return!pV(e)&&a&&"listItemPrefixWhitespace"===a[1].type?t(e):n(e)},"listItemPrefixWhitespace",i.parser.constructs.disable.null.includes("codeIndented")?void 0:5)}},mX={partial:!0,tokenize:function(e,t,n){let i=this;return mg(e,function(e){let a=i.events[i.events.length-1];return a&&"listItemIndent"===a[1].type&&a[2].sliceSerialize(a[1],!0).length===i.containerState.size?t(e):n(e)},"listItemIndent",i.containerState.size+1)}},mQ={name:"setextUnderline",resolveTo:function(e,t){let n=e.length,i,a,o;for(;n--;)if("enter"===e[n][0]){if("content"===e[n][1].type){i=n;break}"paragraph"===e[n][1].type&&(a=n)}else"content"===e[n][1].type&&e.splice(n,1),o||"definition"!==e[n][1].type||(o=n);let s={type:"setextHeading",start:{...e[i][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",s,t]),e.splice(o+1,0,["exit",e[i][1],t]),e[i][1].end={...e[o][1].end}):e[i][1]=s,e.push(["exit",s,t]),e},tokenize:function(e,t,n){let i;let a=this;return function(t){let s=a.events.length,l;for(;s--;)if("lineEnding"!==a.events[s][1].type&&"linePrefix"!==a.events[s][1].type&&"content"!==a.events[s][1].type){l="paragraph"===a.events[s][1].type;break}return!a.parser.lazy[a.now().line]&&(a.interrupt||l)?(e.enter("setextHeadingLine"),i=t,e.enter("setextHeadingLineSequence"),function t(n){return n===i?(e.consume(n),t):(e.exit("setextHeadingLineSequence"),pV(n)?mg(e,o,"lineSuffix")(n):o(n))}(t)):n(t)};function o(i){return null===i||pG(i)?(e.exit("setextHeadingLine"),t(i)):n(i)}}},mZ={tokenize:function(e,t,n){let i=this;return mg(e,function(e){let a=i.events[i.events.length-1];return a&&"gfmFootnoteDefinitionIndent"===a[1].type&&4===a[2].sliceSerialize(a[1],!0).length?t(e):n(e)},"gfmFootnoteDefinitionIndent",5)},partial:!0};function m$(e,t,n){let i;let a=this,o=a.events.length,s=a.parser.gfmFootnotes||(a.parser.gfmFootnotes=[]);for(;o--;){let e=a.events[o][1];if("labelImage"===e.type){i=e;break}if("gfmFootnoteCall"===e.type||"labelLink"===e.type||"label"===e.type||"image"===e.type||"link"===e.type)break}return function(o){if(!i||!i._balanced)return n(o);let l=hb(a.sliceSerialize({start:i.end,end:a.now()}));return 94===l.codePointAt(0)&&s.includes(l.slice(1))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(o),e.exit("gfmFootnoteCallLabelMarker"),t(o)):n(o)}}function mJ(e,t){let n=e.length;for(;n--;)if("labelImage"===e[n][1].type&&"enter"===e[n][0]){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";let i={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;let o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},l=[e[n+1],e[n+2],["enter",i,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",i,t]];return e.splice(n,e.length-n+1,...l),e}function m0(e,t,n){let i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o=0,s;return function(t){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(t),e.exit("gfmFootnoteCallLabelMarker"),l};function l(t){return 94!==t?n(t):(e.enter("gfmFootnoteCallMarker"),e.consume(t),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(l){if(o>999||93===l&&!s||null===l||91===l||pq(l))return n(l);if(93===l){e.exit("chunkString");let o=e.exit("gfmFootnoteCallString");return a.includes(hb(i.sliceSerialize(o)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(l)}return pq(l)||(s=!0),o++,e.consume(l),92===l?c:u}function c(t){return 91===t||92===t||93===t?(e.consume(t),o++,u):u(t)}}function m1(e,t,n){let i=this,a=i.parser.gfmFootnotes||(i.parser.gfmFootnotes=[]),o,s=0,l;return function(t){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),u};function u(t){return 94===t?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(t)}function c(t){if(s>999||93===t&&!l||null===t||91===t||pq(t))return n(t);if(93===t){e.exit("chunkString");let n=e.exit("gfmFootnoteDefinitionLabelString");return o=hb(i.sliceSerialize(n)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(t),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return pq(t)||(l=!0),s++,e.consume(t),92===t?d:c}function d(t){return 91===t||92===t||93===t?(e.consume(t),s++,c):c(t)}function p(t){return 58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),a.includes(o)||a.push(o),mg(e,h,"gfmFootnoteDefinitionWhitespace")):n(t)}function h(e){return t(e)}}function m2(e,t,n){return e.check(mx,t,e.attempt(mZ,t,n))}function m4(e){e.exit("gfmFootnoteDefinition")}class m5{constructor(){this.map=[]}add(e,t,n){!function(e,t,n,i){let a=0;if(!(0===n&&0===i.length)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...i);return}a+=1}e.map.push([t,n,i])}}(this,e,t,n)}consume(e){if(this.map.sort(function(e,t){return e[0]-t[0]}),0===this.map.length)return;let t=this.map.length,n=[];for(;t>0;)t-=1,n.push(e.slice(this.map[t][0]+this.map[t][1]),this.map[t][2]),e.length=this.map[t][0];n.push(e.slice()),e.length=0;let i=n.pop();for(;i;){for(let t of i)e.push(t);i=n.pop()}this.map.length=0}}function m3(e,t,n){let i=this,a=0,o=0,s;return function(e){let t=i.events.length-1;for(;t>-1;){let e=i.events[t][1].type;if("lineEnding"===e||"linePrefix"===e)t--;else break}let a=t>-1?i.events[t][1].type:null,o="tableHead"===a||"tableRow"===a?b:l;return o===b&&i.parser.lazy[i.now().line]?n(e):o(e)};function l(t){return e.enter("tableHead"),e.enter("tableRow"),124===t||(s=!0,o+=1),u(t)}function u(t){return null===t?n(t):pG(t)?o>1?(o=0,i.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),p):n(t):pV(t)?mg(e,u,"whitespace")(t):(o+=1,s&&(s=!1,a+=1),124===t?(e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),s=!0,u):(e.enter("data"),c(t)))}function c(t){return null===t||124===t||pq(t)?(e.exit("data"),u(t)):(e.consume(t),92===t?d:c)}function d(t){return 92===t||124===t?(e.consume(t),c):c(t)}function p(t){return i.interrupt=!1,i.parser.lazy[i.now().line]?n(t):(e.enter("tableDelimiterRow"),s=!1,pV(t)?mg(e,h,"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):h(t))}function h(t){return 45===t||58===t?f(t):124===t?(s=!0,e.enter("tableCellDivider"),e.consume(t),e.exit("tableCellDivider"),m):n(t)}function m(t){return pV(t)?mg(e,f,"whitespace")(t):f(t)}
269function f(t){return 58===t?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(t),e.exit("tableDelimiterMarker"),g):45===t?(o+=1,g(t)):null===t||pG(t)?v(t):n(t)}function g(t){return 45===t?(e.enter("tableDelimiterFiller"),function t(n){return 45===n?(e.consume(n),t):58===n?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(n),e.exit("tableDelimiterMarker"),x):(e.exit("tableDelimiterFiller"),x(n))}(t)):n(t)}function x(t){return pV(t)?mg(e,v,"whitespace")(t):v(t)}function v(i){return 124===i?h(i):(null===i||pG(i))&&s&&a===o?(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(i)):n(i)}function b(t){return e.enter("tableRow"),w(t)}function w(n){return 124===n?(e.enter("tableCellDivider"),e.consume(n),e.exit("tableCellDivider"),w):null===n||pG(n)?(e.exit("tableRow"),t(n)):pV(n)?mg(e,w,"whitespace")(n):(e.enter("data"),k(n))}function k(t){return null===t||124===t||pq(t)?(e.exit("data"),w(t)):(e.consume(t),92===t?_:k)}function _(t){return 92===t||124===t?(e.consume(t),k):k(t)}}function m6(e,t){let n=-1,i=!0,a=0,o=[0,0,0,0],s=[0,0,0,0],l=!1,u=0,c,d,p,h=new m5;for(;++n<e.length;){let m=e[n],f=m[1];"enter"===m[0]?"tableHead"===f.type?(l=!1,0!==u&&(m8(h,t,u,c,d),d=void 0,u=0),c={type:"table",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(n,0,[["enter",c,t]])):"tableRow"===f.type||"tableDelimiterRow"===f.type?(i=!0,p=void 0,o=[0,0,0,0],s=[0,n+1,0,0],l&&(l=!1,d={type:"tableBody",start:Object.assign({},f.start),end:Object.assign({},f.end)},h.add(n,0,[["enter",d,t]])),a="tableDelimiterRow"===f.type?2:d?3:1):a&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)?(i=!1,0===s[2]&&(0!==o[1]&&(s[0]=s[1],p=m7(h,t,o,a,void 0,p),o=[0,0,0,0]),s[2]=n)):"tableCellDivider"===f.type&&(i?i=!1:(0!==o[1]&&(s[0]=s[1],p=m7(h,t,o,a,void 0,p)),s=[(o=s)[1],n,0,0])):"tableHead"===f.type?(l=!0,u=n):"tableRow"===f.type||"tableDelimiterRow"===f.type?(u=n,0!==o[1]?(s[0]=s[1],p=m7(h,t,o,a,n,p)):0!==s[1]&&(p=m7(h,t,s,a,n,p)),a=0):a&&("data"===f.type||"tableDelimiterMarker"===f.type||"tableDelimiterFiller"===f.type)&&(s[3]=n)}for(0!==u&&m8(h,t,u,c,d),h.consume(t.events),n=-1;++n<t.events.length;){let e=t.events[n];"enter"===e[0]&&"table"===e[1].type&&(e[1]._align=function(e,t){let n=!1,i=[];for(;t<e.length;){let a=e[t];if(n){if("enter"===a[0])"tableContent"===a[1].type&&i.push("tableDelimiterMarker"===e[t+1][1].type?"left":"none");else if("tableContent"===a[1].type){if("tableDelimiterMarker"===e[t-1][1].type){let e=i.length-1;i[e]="left"===i[e]?"center":"right"}}else if("tableDelimiterRow"===a[1].type)break}else"enter"===a[0]&&"tableDelimiterRow"===a[1].type&&(n=!0);t+=1}return i}(t.events,n))}return e}function m7(e,t,n,i,a,o){0!==n[0]&&(o.end=Object.assign({},m9(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));let s=m9(t.events,n[1]);if(o={type:1===i?"tableHeader":2===i?"tableDelimiter":"tableData",start:Object.assign({},s),end:Object.assign({},s)},e.add(n[1],0,[["enter",o,t]]),0!==n[2]){let a=m9(t.events,n[2]),o=m9(t.events,n[3]),s={type:"tableContent",start:Object.assign({},a),end:Object.assign({},o)};if(e.add(n[2],0,[["enter",s,t]]),2!==i){let i=t.events[n[2]],a=t.events[n[3]];if(i[1].end=Object.assign({},a[1].end),i[1].type="chunkText",i[1].contentType="text",n[3]>n[2]+1){let t=n[2]+1,i=n[3]-n[2]-1;e.add(t,i,[])}}e.add(n[3]+1,0,[["exit",s,t]])}return void 0!==a&&(o.end=Object.assign({},m9(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function m8(e,t,n,i,a){let o=[],s=m9(t.events,n);a&&(a.end=Object.assign({},s),o.push(["exit",a,t])),i.end=Object.assign({},s),o.push(["exit",i,t]),e.add(n+1,0,o)}function m9(e,t){let n=e[t],i="enter"===n[0]?"start":"end";return n[1][i]}let fe={name:"tasklistCheck",tokenize:function(e,t,n){let i=this;return function(t){return null===i.previous&&i._gfmTasklistFirstContentOfListItem?(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),a):n(t)};function a(t){return pq(t)?(e.enter("taskListCheckValueUnchecked"),e.consume(t),e.exit("taskListCheckValueUnchecked"),o):88===t||120===t?(e.enter("taskListCheckValueChecked"),e.consume(t),e.exit("taskListCheckValueChecked"),o):n(t)}function o(t){return 93===t?(e.enter("taskListCheckMarker"),e.consume(t),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),s):n(t)}function s(i){return pG(i)?t(i):pV(i)?e.check({tokenize:ft},t,n)(i):n(i)}}};function ft(e,t,n){return mg(e,function(e){return null===e?n(e):t(e)},"whitespace")}let fn={},fr={tokenize:function(e,t,n){let i=this,a=i.events[i.events.length-1],o=a&&"linePrefix"===a[1].type?a[2].sliceSerialize(a[1],!0).length:0,s=0;return function(t){return e.enter("mathFlow"),e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(i){return 36===i?(e.consume(i),s++,t):s<2?n(i):(e.exit("mathFlowFenceSequence"),mg(e,l,"whitespace")(i))}(t)};function l(t){return null===t||pG(t)?u(t):(e.enter("mathFlowFenceMeta"),e.enter("chunkString",{contentType:"string"}),function t(i){return null===i||pG(i)?(e.exit("chunkString"),e.exit("mathFlowFenceMeta"),u(i)):36===i?n(i):(e.consume(i),t)}(t))}function u(n){return e.exit("mathFlowFence"),i.interrupt?t(n):e.attempt(fi,c,h)(n)}function c(t){return e.attempt({tokenize:m,partial:!0},h,d)(t)}function d(t){return(o?mg(e,p,"linePrefix",o+1):p)(t)}function p(t){return null===t?h(t):pG(t)?e.attempt(fi,c,h)(t):(e.enter("mathFlowValue"),function t(n){return null===n||pG(n)?(e.exit("mathFlowValue"),p(n)):(e.consume(n),t)}(t))}function h(n){return e.exit("mathFlow"),t(n)}function m(e,t,n){let a=0;return mg(e,function(t){return e.enter("mathFlowFence"),e.enter("mathFlowFenceSequence"),function t(i){return 36===i?(a++,e.consume(i),t):a<s?n(i):(e.exit("mathFlowFenceSequence"),mg(e,o,"whitespace")(i))}(t)},"linePrefix",i.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function o(i){return null===i||pG(i)?(e.exit("mathFlowFence"),t(i)):n(i)}}},concrete:!0,name:"mathFlow"},fi={tokenize:function(e,t,n){let i=this;return function(n){return null===n?t(n):(e.enter("lineEnding"),e.consume(n),e.exit("lineEnding"),a)};function a(e){return i.parser.lazy[i.now().line]?n(e):t(e)}},partial:!0};function fa(e){let t=e.length-4,n=3,i,a;if(("lineEnding"===e[3][1].type||"space"===e[n][1].type)&&("lineEnding"===e[t][1].type||"space"===e[t][1].type)){for(i=n;++i<t;)if("mathTextData"===e[i][1].type){e[t][1].type="mathTextPadding",e[n][1].type="mathTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)void 0===a?i!==t&&"lineEnding"!==e[i][1].type&&(a=i):(i===t||"lineEnding"===e[i][1].type)&&(e[a][1].type="mathTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e}function fo(e){return 36!==e||"characterEscape"===this.events[this.events.length-1][1].type}let fs={};function fl(e){let t;let n=e||fs,i=this.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push({flow:{36:fr},text:{36:(null==(t=(n||{}).singleDollarTextMath)&&(t=!0),{tokenize:function(e,n,i){let a=0,o,s;return function(n){return e.enter("mathText"),e.enter("mathTextSequence"),function n(o){return 36===o?(e.consume(o),a++,n):a<2&&!t?i(o):(e.exit("mathTextSequence"),l(o))}(n)};function l(t){return null===t?i(t):36===t?(s=e.enter("mathTextSequence"),o=0,function t(i){return 36===i?(e.consume(i),o++,t):o===a?(e.exit("mathTextSequence"),e.exit("mathText"),n(i)):(s.type="mathTextData",u(i))}(t)):32===t?(e.enter("space"),e.consume(t),e.exit("space"),l):pG(t)?(e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),l):(e.enter("mathTextData"),u(t))}function u(t){return null===t||32===t||36===t||pG(t)?(e.exit("mathTextData"),l(t)):(e.consume(t),u)}},resolve:fa,previous:fo,name:"mathText"})}}),o.push(function(){return{enter:{mathFlow:function(e){this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[{type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]}]}},e)},mathFlowFenceMeta:function(){this.buffer()},mathText:function(e){this.enter({type:"inlineMath",value:"",data:{hName:"
269code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},e),this.buffer()}},exit:{mathFlow:function(e){let t=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t;let i=n.data.hChildren[0];i.type,i.tagName,i.children.push({type:"text",value:t}),this.data.mathFlowInside=void 0},mathFlowFence:function(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)},mathFlowFenceMeta:function(){let e=this.resume(),t=this.stack[this.stack.length-1];t.type,t.meta=e},mathFlowValue:e,mathText:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.type,this.exit(e),n.value=t,n.data.hChildren.push({type:"text",value:t})},mathTextData:e}};function e(e){this.config.enter.data.call(this,e),this.config.exit.data.call(this,e)}}()),s.push(function(e){let t=(e||{}).singleDollarTextMath;return null==t&&(t=!0),n.peek=function(){return"$"},{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
270`,inConstruct:"mathFlowMeta"},{character:"$",after:t?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:function(e,t,n,i){let a=e.value||"",o=n.createTracker(i),s="$".repeat(Math.max(function(e,t){let n=String(e),i=n.indexOf("$"),a=i,o=0,s=0;for(;-1!==i;)i===a?++o>s&&(s=o):o=1,a=i+t.length,i=n.indexOf(t,a);return s}(a,"$")+1,2)),l=n.enter("mathFlow"),u=o.move(s);if(e.meta){let t=n.enter("mathFlowMeta");u+=o.move(n.safe(e.meta,{after:`
271`,before:u,encode:["$"],...o.current()})),t()}return u+=o.move(`
272`),a&&(u+=o.move(a+`
273`)),u+=o.move(s),l(),u},inlineMath:n}};function n(e,n,i){let a=e.value||"",o=1;for(t||o++;RegExp("(^|[^$])"+"\\$".repeat(o)+"([^$]|$)").test(a);)o++;let s="$".repeat(o);/[^ \r\n]/.test(a)&&(/^[ \r\n]/.test(a)&&/[ \r\n]$/.test(a)||/^\$|\$$/.test(a))&&(a=" "+a+" ");let l=-1;for(;++l<i.unsafe.length;){let e;let t=i.unsafe[l];if(!t.atBreak)continue;let n=i.compilePattern(t);for(;e=n.exec(a);){let t=e.index;10===a.codePointAt(t)&&13===a.codePointAt(t-1)&&t--,a=a.slice(0,t)+" "+a.slice(e.index+1)}}return s+a+s}}(n))}var fu=/(\*\*)([^*]*?)$/,fc=/(__)([^_]*?)$/,fd=/(\*\*\*)([^*]*?)$/,fp=/(\*)([^*]*?)$/,fh=/(_)([^_]*?)$/,fm=/(`)([^`]*?)$/,ff=/(~~)([^~]*?)$/,fg=/^[\s_~*`]*$/,fx=/^[\s]*[-*+][\s]+$/,fv=/[\p{L}\p{N}_]/u,fy=/^```[^`\n]*```?$/,fb=/^\*{4,}$/,fw=e=>{if(!e)return!1;let t=e.charCodeAt(0);return t>=48&&t<=57||t>=65&&t<=90||t>=97&&t<=122||95===t||fv.test(e)},fk=e=>{let t=(e.match(/```/g)||[]).length;return t>0&&t%2==0&&e.includes(`
274`)},f_=(e,t)=>{let n=1;for(let i=t-1;i>=0;i-=1)if("]"===e[i])n+=1;else if("["===e[i]&&0==(n-=1))return i;return -1},fT=(e,t)=>{let n=1;for(let i=t+1;i<e.length;i+=1)if("["===e[i])n+=1;else if("]"===e[i]&&0==(n-=1))return i;return -1},fE=(e,t)=>{let n=!1,i=!1;for(let a=0;a<e.length&&a<t;a+=1){if("\\"===e[a]&&"$"===e[a+1]){a+=1;continue}"$"===e[a]&&("$"===e[a+1]?(i=!i,a+=1,n=!1):i||(n=!n))}return n||i},fS=(e,t,n)=>{if(" "!==n&&"	"!==n)return!1;let i=0;for(let n=t-1;n>=0;n-=1)if(e[n]===`
275`){i=n+1;break}for(let n=i;n<t;n+=1)if(" "!==e[n]&&"	"!==e[n])return!1;return!0},fA=(e,t,n,i)=>!!("\\"===n||"*"===n||"*"===i||n&&i&&fw(n)&&fw(i)||fS(e,t,i)),fC=e=>{let t=0,n=e.length;for(let i=0;i<n;i+=1){if("*"!==e[i])continue;let a=i>0?e[i-1]:"",o=i<n-1?e[i+1]:"";fA(e,i,a,o)||(t+=1)}return t},fN=(e,t,n,i)=>!!("\\"===n||e.includes("$")&&fE(e,t)||"_"===n||"_"===i||n&&i&&fw(n)&&fw(i)),fI=e=>{let t=0,n=e.length;for(let i=0;i<n;i+=1){if("_"!==e[i])continue;let a=i>0?e[i-1]:"",o=i<n-1?e[i+1]:"";fN(e,i,a,o)||(t+=1)}return t},fM=e=>{let t=0,n=0;for(let i=0;i<e.length;i+=1)"*"===e[i]?n+=1:(n>=3&&(t+=Math.floor(n/3)),n=0);return n>=3&&(t+=Math.floor(n/3)),t},fP=e=>{if(fk(e))return e;let t=e.match(fu);if(t){let n=t[2];if(!n||fg.test(n))return e;let i=e.lastIndexOf(t[1]),a=e.substring(0,i).lastIndexOf(`
276`),o=e.substring(-1===a?0:a+1,i);if(fx.test(o)&&n.includes(`
277`))return e;if((e.match(/\*\*/g)||[]).length%2==1)return`${e}**`}return e},fR=e=>{let t=e.match(fc);if(t){let n=t[2];if(!n||fg.test(n))return e;let i=e.lastIndexOf(t[1]),a=e.substring(0,i).lastIndexOf(`
278`),o=e.substring(-1===a?0:a+1,i);if(fx.test(o)&&n.includes(`
279`))return e;if((e.match(/__/g)||[]).length%2==1)return`${e}__`}return e},fD=e=>{for(let t=0;t<e.length;t+=1)if("*"===e[t]&&"*"!==e[t-1]&&"*"!==e[t+1]&&"\\"!==e[t-1]){let n=t>0?e[t-1]:"",i=t<e.length-1?e[t+1]:"";if(n&&i&&fw(n)&&fw(i))continue;return t}return -1},fL=e=>{if(fk(e)||!e.match(fp))return e;let t=fD(e);if(-1===t)return e;let n=e.substring(t+1);return!n||fg.test(n)?e:fC(e)%2==1?`${e}*`:e},fO=e=>{for(let t=0;t<e.length;t+=1)if("_"===e[t]&&"_"!==e[t-1]&&"_"!==e[t+1]&&"\\"!==e[t-1]&&!fE(e,t)){let n=t>0?e[t-1]:"",i=t<e.length-1?e[t+1]:"";if(n&&i&&fw(n)&&fw(i))continue;return t}return -1},fB=e=>{let t=e.length;for(;t>0&&e[t-1]===`
280`;)t-=1;if(t<e.length){let n=e.slice(0,t),i=e.slice(t);return`${n}_${i}`}return`${e}_`},fj=e=>{if(fk(e)||!e.match(fh))return e;let t=fO(e);if(-1===t)return e;let n=e.substring(t+1);return!n||fg.test(n)?e:fI(e)%2==1?fB(e):e},fz=e=>{if(fk(e)||fb.test(e))return e;let t=e.match(fd);if(t){let n=t[2];if(!n||fg.test(n))return e;if(fM(e)%2==1)return`${e}***`}return e},fF=(e,t)=>{let n=!1,i=!1;for(let a=0;a<t;a+=1){if("```"===e.substring(a,a+3)){i=!i,a+=2;continue}i||"`"!==e[a]||(n=!n)}return n||i},fH=(e,t)=>{let n="```"===e.substring(t,t+3),i=t>0&&"```"===e.substring(t-1,t+2),a=t>1&&"```"===e.substring(t-2,t+1);return n||i||a},fU=e=>{let t=0;for(let n=0;n<e.length;n+=1)"`"!==e[n]||fH(e,n)||(t+=1);return t},fG=e=>!e.match(fy)||e.includes(`
281`)?null:e.endsWith("``")&&!e.endsWith("```")?`${e}\``:e,fq=e=>{let t=(e.match(/```/g)||[]).length;return!!(t>0&&t%2==0&&e.includes(`
282`)||(e.endsWith("```\n")||e.endsWith("```"))&&t%2==0)},fV=e=>(e.match(/```/g)||[]).length%2==1,fW=e=>{let t=fG(e);if(null!==t)return t;if(fq(e))return e;let n=e.match(fm);if(n&&!fV(e)){let t=n[2];if(!t||fg.test(t))return e;if(fU(e)%2==1)return`${e}\``}return e},fY=e=>{if((e.match(/\$\$/g)||[]).length%2==0)return e;let t=e.indexOf("$$");return -1===t||-1===e.indexOf(`
283`,t)||e.endsWith(`
284`)?`${e}$$`:`${e}
285$$`},fK=(e,t)=>{if(e.substring(t+2).includes(")"))return null;let n=f_(e,t);if(-1===n||fF(e,n))return null;let i=n>0&&"!"===e[n-1],a=e.substring(0,i?n-1:n);if(i)return a;let o=e.substring(n+1,t);return`${a}[${o}](streamdown:incomplete-link)`},fX=(e,t)=>{let n=t>0&&"!"===e[t-1],i=n?t-1:t;if(!e.substring(t+1).includes("]")){let t=e.substring(0,i);return n?t:`${e}
285](streamdown:incomplete-link)`}if(-1===fT(e,t)){let t=e.substring(0,i);return n?t:`${e}](streamdown:incomplete-link)`}return null},fQ=e=>{let t=e.lastIndexOf("](");if(-1!==t&&!fF(e,t)){let n=fK(e,t);if(null!==n)return n}for(let t=e.length-1;t>=0;t-=1)if("["===e[t]&&!fF(e,t)){let n=fX(e,t);if(null!==n)return n}return e},fZ=e=>{let t=e.match(ff);if(t){let n=t[2];if(!n||fg.test(n))return e;if((e.match(/~~/g)||[]).length%2==1)return`${e}~~`}return e},f$=e=>{if(!e||"string"!=typeof e)return e;let t=e,n=fQ(t);return n.endsWith("](streamdown:incomplete-link)")?n:t=fY(t=fZ(t=fW(t=fj(t=fL(t=fR(t=fP(t=fz(t=n))))))))};let fJ=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),f0=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),f1=e=>{let t=f0(e);return t.charAt(0).toUpperCase()+t.slice(1)},f2=(...e)=>e.filter((e,t,n)=>!!e&&""!==e.trim()&&n.indexOf(e)===t).join(" ").trim(),f4=e=>{for(let t in e)if(t.startsWith("aria-")||"role"===t||"title"===t)return!0};var f5={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};let f3=(0,I.forwardRef)(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a="",children:o,iconNode:s,...l},u)=>(0,I.createElement)("svg",{ref:u,...f5,width:t,height:t,stroke:e,strokeWidth:i?24*Number(n)/Number(t):n,className:f2("lucide",a),...!o&&!f4(l)&&{"aria-hidden":"true"},...l},[...s.map(([e,t])=>(0,I.createElement)(e,t)),...Array.isArray(o)?o:[o]])),f6=(e,t)=>{let n=(0,I.forwardRef)(({className:n,...i},a)=>(0,I.createElement)(f3,{ref:a,iconNode:t,className:f2(`lucide-${fJ(f1(e))}`,`lucide-${e}`,n),...i}));return n.displayName=f1(e),n},f7=f6("check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),f8=f6("copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),f9=f6("download",[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]]),ge=f6("loader-circle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),gt=f6("maximize-2",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"m21 3-7 7",key:"1l2asr"}],["path",{d:"m3 21 7-7",key:"tjx5ai"}],["path",{d:"M9 21H3v-6",key:"wtvkvv"}]]),gn=f6("rotate-ccw",[["path",{d:"M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"1357e3"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}]]),gr=f6("x",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),gi=f6("zoom-in",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"11",x2:"11",y1:"8",y2:"14",key:"1vmskp"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),ga=f6("zoom-out",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["line",{x1:"21",x2:"16.65",y1:"21",y2:"16.65",key:"13gj7c"}],["line",{x1:"8",x2:"14",y1:"11",y2:"11",key:"durymu"}]]),go=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gs=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,gl={};function gu(e,t){return(gl.jsx?gs:go).test(e)}let gc=/[ \t\n\f\r]/g;function gd(e){return"object"==typeof e?"text"===e.type&&gp(e.value):gp(e)}function gp(e){return""===e.replace(gc,"")}var gh={},gm=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,gf=/\n/g,gg=/^\s*/,gx=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,gv=/^:\s*/,gy=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,gb=/^[;\s]*/,gw=/^\s+|\s+$/g,gk=`
286`;function g_(e){return e?e.replace(gw,""):""}var gT=j&&j.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(gh,"__esModule",{value:!0}),gh.default=function(e,t){let n=null;if(!e||"string"!=typeof e)return n;let i=(0,gE.default)(e),a="function"==typeof t;return i.forEach(e=>{if("declaration"!==e.type)return;let{property:i,value:o}=e;a?t(i,o,e):o&&((n=n||{})[i]=o)}),n};let gE=gT(function(e,t){if("string"!=typeof e)throw TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,i=1;function a(e){var t=e.match(gf);t&&(n+=t.length);var a=e.lastIndexOf(gk);i=~a?e.length-a:i+e.length}function o(){var e={line:n,column:i};return function(t){return t.position=new s(e),u(gg),t}}function s(e){this.start=e,this.end={line:n,column:i},this.source=t.source}function l(a){var o=Error(t.source+":"+n+":"+i+": "+a);if(o.reason=a,o.filename=t.source,o.line=n,o.column=i,o.source=e,!t.silent)throw o}function u(t){var n=t.exec(e);if(n){var i=n[0];return a(i),e=e.slice(i.length),n}}function c(e){var t;for(e=e||[];t=d();)!1!==t&&e.push(t);return e}function d(){var t=o();if(!("/"!=e.charAt(0)||"*"!=e.charAt(1))){for(var n=2;""!=e.charAt(n)&&("*"!=e.charAt(n)||"/"!=e.charAt(n+1));)++n;if(n+=2,""===e.charAt(n-1))return l("End of comment missing");var s=e.slice(2,n-2);return i+=2,a(s),e=e.slice(n),i+=2,t({type:"comment",comment:s})}}
286return s.prototype.content=e,u(gg),function(){var e,t=[];for(c(t);e=function(){var e=o(),t=u(gx);if(t){if(d(),!u(gv))return l("property missing ':'");var n=u(gy),i=e({type:"declaration",property:g_(t[0].replace(gm,"")),value:n?g_(n[0].replace(gm,"")):""});return u(gb),i}}();)!1!==e&&(t.push(e),c(t));return t}()});var gS={};Object.defineProperty(gS,"__esModule",{value:!0}),gS.camelCase=void 0;var gA=/^--[a-zA-Z0-9_-]+$/,gC=/-([a-z])/g,gN=/^[^-]+$/,gI=/^-(webkit|moz|ms|o|khtml)-/,gM=/^-(ms)-/,gP=function(e,t){return t.toUpperCase()},gR=function(e,t){return"".concat(t,"-")};gS.camelCase=function(e,t){var n;return void 0===t&&(t={}),!(n=e)||gN.test(n)||gA.test(n)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(gM,gR):e.replace(gI,gR)).replace(gC,gP))};var gD=(j&&j.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(gh);function gL(e,t){var n={};return e&&"string"==typeof e&&(0,gD.default)(e,function(e,i){e&&i&&(n[(0,gS.camelCase)(e,t)]=i)}),n}gL.default=gL;let gO=z(gL);function gB(e){return e&&"object"==typeof e?"position"in e||"type"in e?gz(e.position):"start"in e||"end"in e?gz(e):"line"in e||"column"in e?gj(e):"":""}function gj(e){return gF(e&&e.line)+":"+gF(e&&e.column)}function gz(e){return gj(e&&e.start)+"-"+gj(e&&e.end)}function gF(e){return e&&"number"==typeof e?e:1}
286class gH extends Error{constructor(e,t,n){super(),"string"==typeof t&&(n=t,t=void 0);let i="",a={},o=!1;if(t&&(a="line"in t&&"column"in t?{place:t}:"start"in t&&"end"in t?{place:t}:"type"in t?{ancestors:[t],place:t.position}:{...t}),"string"==typeof e?i=e:!a.cause&&e&&(o=!0,i=e.message,a.cause=e),!a.ruleId&&!a.source&&"string"==typeof n){let e=n.indexOf(":");-1===e?a.ruleId=n:(a.source=n.slice(0,e),a.ruleId=n.slice(e+1))}if(!a.place&&a.ancestors&&a.ancestors){let e=a.ancestors[a.ancestors.length-1];e&&(a.place=e.position)}let s=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=s?s.column:void 0,this.fatal=void 0,this.file="",this.message=i,this.line=s?s.line:void 0,this.name=gB(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=o&&a.cause&&"string"==typeof a.cause.stack?a.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}gH.prototype.file="",gH.prototype.name="",gH.prototype.reason="",gH.prototype.message="",gH.prototype.stack="",gH.prototype.column=void 0,gH.prototype.line=void 0,gH.prototype.ancestors=void 0,gH.prototype.cause=void 0,gH.prototype.fatal=void 0,gH.prototype.place=void 0,gH.prototype.ruleId=void 0,gH.prototype.source=void 0;let gU={}.hasOwnProperty,gG=new Map,gq=/[A-Z]/g,gV=new Set(["table","tbody","thead","tfoot","tr"]),gW=new Set(["td","th"]),gY="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function gK(e,t,n){return"element"===t.type?function(e,t,n){let i=e.schema,a=i;"svg"===t.tagName.toLowerCase()&&"html"===i.space&&(a=ab,e.schema=a),e.ancestors.push(t);let o=g$(e,t.tagName,!1),s=function(e,t){let n,i;let a={};for(i in t.properties)if("children"!==i&&gU.call(t.properties,i)){let o=function(e,t,n){let i=ag(e.schema,t);if(!(null==n||"number"==typeof n&&Number.isNaN(n))){if(Array.isArray(n)&&(n=i.commaSeparated?ak(n):aE(n)),"style"===i.property){let t="object"==typeof n?n:function(e,t){try{return gO(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};let t=new gH("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:n,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw t.file=e.filePath||void 0,t.url=gY+"#cannot-parse-style-attribute",t}}(e,String(n));return"css"===e.stylePropertyNameCase&&(t=function(e){let t;let n={};for(t in e)gU.call(e,t)&&(n[function(e){let t=e.replace(gq,g0);return"ms-"===t.slice(0,3)&&(t="-"+t),t}(t)]=e[t]);return n}(t)),["style",t]}return["react"===e.elementAttributeNameCase&&i.space?ap[i.property]||i.property:i.attribute,n]}}(e,i,t.properties[i]);if(o){let[i,s]=o;e.tableCellAlignToStyle&&"align"===i&&"string"==typeof s&&gW.has(t.tagName)?n=s:a[i]=s}}return n&&((a.style||(a.style={}))["css"===e.stylePropertyNameCase?"text-align":"textAlign"]=n),a}(e,t),l=gZ(e,t);return gV.has(t.tagName)&&(l=l.filter(function(e){return"string"!=typeof e||!gd(e)})),gX(e,s,o,t),gQ(s,l),e.ancestors.pop(),e.schema=i,e.create(t,o,s,n)}(e,t,n):"mdxFlowExpression"===t.type||"mdxTextExpression"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater){let n=t.data.estree.body[0];return n.type,e.evaluater.evaluateExpression(n.expression)}gJ(e,t.position)}(e,t):"mdxJsxFlowElement"===t.type||"mdxJsxTextElement"===t.type?function(e,t,n){let i=e.schema,a=i;"svg"===t.name&&"html"===i.space&&(a=ab,e.schema=a),e.ancestors.push(t);let o=null===t.name?e.Fragment:g$(e,t.name,!0),s=function(e,t){let n={};for(let i of t.attributes)if("mdxJsxExpressionAttribute"===i.type){if(i.data&&i.data.estree&&e.evaluater){let t=i.data.estree.body[0];t.type;let a=t.expression;a.type;let o=a.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else gJ(e,t.position)}else{let a;let o=i.name;if(i.value&&"object"==typeof i.value){if(i.value.data&&i.value.data.estree&&e.evaluater){let t=i.value.data.estree.body[0];t.type,a=e.evaluater.evaluateExpression(t.expression)}else gJ(e,t.position)}else a=null===i.value||i.value;n[o]=a}return n}(e,t),l=gZ(e,t);return gX(e,s,o,t),gQ(s,l),e.ancestors.pop(),e.schema=i,e.create(t,o,s,n)}
286(e,t,n):"mdxjsEsm"===t.type?function(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);gJ(e,t.position)}(e,t):"root"===t.type?function(e,t,n){let i={};return gQ(i,gZ(e,t)),e.create(t,e.Fragment,i,n)}(e,t,n):"text"===t.type?t.value:void 0}function gX(e,t,n,i){"string"!=typeof n&&n!==e.Fragment&&e.passNode&&(t.node=i)}function gQ(e,t){if(t.length>0){let n=t.length>1?t:t[0];n&&(e.children=n)}}function gZ(e,t){let n=[],i=-1,a=e.passKeys?new Map:gG;for(;++i<t.children.length;){let o;let s=t.children[i];if(e.passKeys){let e="element"===s.type?s.tagName:"mdxJsxFlowElement"===s.type||"mdxJsxTextElement"===s.type?s.name:void 0;if(e){let t=a.get(e)||0;o=e+"-"+t,a.set(e,t+1)}}let l=gK(e,s,o);void 0!==l&&n.push(l)}return n}function g$(e,t,n){let i;if(n){if(t.includes(".")){let e=t.split("."),n=-1,a;for(;++n<e.length;){let t=gu(e[n])?{type:"Identifier",name:e[n]}:{type:"Literal",value:e[n]};a=a?{type:"MemberExpression",object:a,property:t,computed:!!(n&&"Literal"===t.type),optional:!1}:t}i=a}else i=gu(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t}}else i={type:"Literal",value:t};if("Literal"===i.type){let t=i.value;return gU.call(e.components,t)?e.components[t]:t}if(e.evaluater)return e.evaluater.evaluateExpression(i);gJ(e)}function gJ(e,t){let n=new gH("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=gY+"#cannot-handle-mdx-estrees-without-createevaluater",n}function g0(e){return"-"+e.toLowerCase()}let g1={tokenize:function(e){let t;let n=e.attempt(this.parser.constructs.contentInitial,function(t){if(null===t){e.consume(t);return}return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),mg(e,n,"linePrefix")},function(n){return e.enter("paragraph"),function n(i){let a=e.enter("chunkText",{contentType:"text",previous:t});return t&&(t.next=a),t=a,function t(i){if(null===i){e.exit("chunkText"),e.exit("paragraph"),e.consume(i);return}return pG(i)?(e.consume(i),e.exit("chunkText"),n):(e.consume(i),t)}(i)}(n)});return n}},g2={tokenize:function(e){let t=this,n=[],i=0,a,o,s;return l;function l(a){if(i<n.length){let o=n[i];return t.containerState=o[1],e.attempt(o[0].continuation,u,c)(a)}return c(a)}function u(e){if(i++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&v();let n=t.events.length,o=n,s;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){s=t.events[o][1].end;break}x(i);let l=n;for(;l<t.events.length;)t.events[l][1].end={...s},l++;return hn(t.events,o+1,0,t.events.slice(n)),t.events.length=l,c(e)}return l(e)}function c(o){if(i===n.length){if(!a)return h(o);if(a.currentConstruct&&a.currentConstruct.concrete)return f(o);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(g4,d,p)(o)}function d(e){return a&&v(),x(i),h(e)}function p(e){return t.parser.lazy[t.now().line]=i!==n.length,s=t.now().offset,f(e)}function h(n){return t.containerState={},e.attempt(g4,m,f)(n)}function m(e){return i++,n.push([t.currentConstruct,t.containerState]),h(e)}function f(n){if(null===n){a&&v(),x(0),e.consume(n);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),function n(a){if(null===a){g(e.exit("chunkFlow"),!0),x(0),e.consume(a);return}return pG(a)?(e.consume(a),g(e.exit("chunkFlow")),i=0,t.interrupt=void 0,l):(e.consume(a),n)}(n)}function g(e,n){let l=t.sliceStream(e);if(n&&l.push(null),e.previous=o,o&&(o.next=e),o=e,a.defineSkip(e.start),a.write(l),t.parser.lazy[e.start.line]){let e=a.events.length;for(;e--;)if(a.events[e][1].start.offset<s&&(!a.events[e][1].end||a.events[e][1].end.offset>s))return;let n=t.events.length,o=n,l,u;for(;o--;)if("exit"===t.events[o][0]&&"chunkFlow"===t.events[o][1].type){if(l){u=t.events[o][1].end;break}l=!0}for(x(i),e=n;e<t.events.length;)t.events[e][1].end={...u},e++;hn(t.events,o+1,0,t.events.slice(n)),t.events.length=e}}function x(i){let a=n.length;for(;a-- >i;){let i=n[a];t.containerState=i[1],i[0].exit.call(t,e)}n.length=i}function v(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}},g4={tokenize:function(e,t,n){return mg(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}},g5={tokenize:function(e){let t=this,n=e.attempt(mx,function(i){if(null===i){e.consume(i);return}return e.enter("lineEndingBlank"),e.consume(i),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n},e.attempt(this.parser.constructs.flowInitial,i,mg(e,e.attempt(this.parser.constructs.flow,i,e.attempt(mC,i)),"linePrefix")));return n;function i(i){if(null===i){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),t.currentConstruct=void 0,n}}},g3={resolveAll:g9()},g6=g8("string"),g7=g8("text");function g8(e){return{resolveAll:g9("text"===e?xe:void 0),tokenize:function(t){let n=this,i=this.parser.constructs[e],a=t.attempt(i,o,s);return o;function o(e){return u(e)?a(e):s(e)}function s(e){if(null===e){t.consume(e);return}return t.enter("data"),t.consume(e),l}function l(e){return u(e)?(t.exit("data"),a(e)):(t.consume(e),l)}function u(e){if(null===e)return!0;let t=i[e],a=-1;if(t)for(;++a<t.length;){let e=t[a];if(!e.previous||e.previous.call(n,n.previous))return!0}return!1}}}}function g9(e){return function(t,n){let i=-1,a;for(;++i<=t.length;)void 0===a?t[i]&&"data"===t[i][1].type&&(a=i,i++):t[i]&&"data"===t[i][1].type||(i!==a+2&&(t[a][1].end=t[i-1][1].end,t.splice(a+2,i-a-2),i=a+2),a=void 0);return e?e(t,n):t}}function xe(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||"lineEnding"===e[n][1].type)&&"data"===e[n-1][1].type){let i=e[n-1][1],a=t.sliceStream(i),o=a.length,s=-1,l=0,u;
286for(;o--;){let e=a[o];if("string"==typeof e){for(s=e.length;32===e.charCodeAt(s-1);)l++,s--;if(s)break;s=-1}else if(-2===e)u=!0,l++;else if(-1!==e){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(l=0),l){let a={type:n===e.length||u||l<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:i.start._bufferIndex+s,_index:i.start._index+o,line:i.end.line,column:i.end.column-l,offset:i.end.offset-l},end:{...i.end}};i.end={...a.start},i.start.offset===i.end.offset?Object.assign(i,a):(e.splice(n,0,["enter",a,t],["exit",a,t]),n+=2)}n++}return e}let xt=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:{null:[42,95]},contentInitial:{91:{name:"definition",tokenize:function(e,t,n){let i;let a=this;return function(t){return e.enter("definition"),mM.call(a,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(t)};function o(t){return i=hb(a.sliceSerialize(a.events[a.events.length-1][1]).slice(1,-1)),58===t?(e.enter("definitionMarker"),e.consume(t),e.exit("definitionMarker"),s):n(t)}function s(t){return pq(t)?mR(e,l)(t):l(t)}function l(t){return mI(e,u,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(t)}function u(t){return e.attempt(mD,c,c)(t)}function c(t){return pV(t)?mg(e,d,"whitespace")(t):d(t)}function d(o){return null===o||pG(o)?(e.exit("definition"),a.parser.defined.push(i),t(o)):n(o)}}}},disable:{null:[]},document:{42:mY,43:mY,45:mY,48:mY,49:mY,50:mY,51:mY,52:mY,53:mY,54:mY,55:mY,56:mY,57:mY,62:mv},flow:{35:{name:"headingAtx",resolve:function(e,t){let n=e.length-2,i=3,a,o;return"whitespace"===e[3][1].type&&(i+=2),n-2>i&&"whitespace"===e[n][1].type&&(n-=2),"atxHeadingSequence"===e[n][1].type&&(i===n-1||n-4>i&&"whitespace"===e[n-2][1].type)&&(n-=i+1===n?2:4),n>i&&(a={type:"atxHeadingText",start:e[i][1].start,end:e[n][1].end},o={type:"chunkText",start:e[i][1].start,end:e[n][1].end,contentType:"text"},hn(e,i,n-i+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e},tokenize:function(e,t,n){let i=0;return function(a){return e.enter("atxHeading"),e.enter("atxHeadingSequence"),function a(o){return 35===o&&i++<6?(e.consume(o),a):null===o||pq(o)?(e.exit("atxHeadingSequence"),function n(i){return 35===i?(e.enter("atxHeadingSequence"),function t(i){return 35===i?(e.consume(i),t):(e.exit("atxHeadingSequence"),n(i))}(i)):null===i||pG(i)?(e.exit("atxHeading"),t(i)):pV(i)?mg(e,n,"whitespace")(i):(e.enter("atxHeadingText"),function t(i){return null===i||35===i||pq(i)?(e.exit("atxHeadingText"),n(i)):(e.consume(i),t)}(i))}(o)):n(o)}(a)}}},42:mW,45:[mQ,mW],60:{concrete:!0,name:"htmlFlow",resolveTo:function(e){let t=e.length;for(;t--&&!("enter"===e[t][0]&&"htmlFlow"===e[t][1].type););return t>1&&"linePrefix"===e[t-2][1].type&&(e[t][1].start=e[t-2][1].start,e[t+1][1].start=e[t-2][1].start,e.splice(t-2,2)),e},tokenize:function(e,t,n){let i,a,o,s,l;let u=this;return function(t){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(t),c};function c(s){return 33===s?(e.consume(s),d):47===s?(e.consume(s),a=!0,m):63===s?(e.consume(s),i=3,u.interrupt?t:L):pO(s)?(e.consume(s),o=String.fromCharCode(s),f):n(s)}function d(a){return 45===a?(e.consume(a),i=2,p):91===a?(e.consume(a),i=5,s=0,h):pO(a)?(e.consume(a),i=4,u.interrupt?t:L):n(a)}function p(i){return 45===i?(e.consume(i),u.interrupt?t:L):n(i)}function h(i){let a="CDATA[";return i===a.charCodeAt(s++)?(e.consume(i),s===a.length?u.interrupt?t:A:h):n(i)}function m(t){return pO(t)?(e.consume(t),o=String.fromCharCode(t),f):n(t)}function f(s){if(null===s||47===s||62===s||pq(s)){let l=47===s,c=o.toLowerCase();return!l&&!a&&mO.includes(c)?(i=1,u.interrupt?t(s):A(s)):mL.includes(o.toLowerCase())?(i=6,l?(e.consume(s),g):u.interrupt?t(s):A(s)):(i=7,u.interrupt&&!u.parser.lazy[u.now().line]?n(s):a?function t(n){return pV(n)?(e.consume(n),t):T(n)}(s):x(s))}return 45===s||pB(s)?(e.consume(s),o+=String.fromCharCode(s),f):n(s)}function g(i){return 62===i?(e.consume(i),u.interrupt?t:A):n(i)}function x(t){return 47===t?(e.consume(t),T):58===t||95===t||pO(t)?(e.consume(t),v):pV(t)?(e.consume(t),x):T(t)}function v(t){return 45===t||46===t||58===t||95===t||pB(t)?(e.consume(t),v):b(t)}
286function b(t){return 61===t?(e.consume(t),w):pV(t)?(e.consume(t),b):x(t)}function w(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),l=t,k):pV(t)?(e.consume(t),w):function t(n){return null===n||34===n||39===n||47===n||60===n||61===n||62===n||96===n||pq(n)?b(n):(e.consume(n),t)}(t)}function k(t){return t===l?(e.consume(t),l=null,_):null===t||pG(t)?n(t):(e.consume(t),k)}function _(e){return 47===e||62===e||pV(e)?x(e):n(e)}function T(t){return 62===t?(e.consume(t),E):n(t)}function E(t){return null===t||pG(t)?A(t):pV(t)?(e.consume(t),E):n(t)}function A(t){return 45===t&&2===i?(e.consume(t),M):60===t&&1===i?(e.consume(t),P):62===t&&4===i?(e.consume(t),O):63===t&&3===i?(e.consume(t),L):93===t&&5===i?(e.consume(t),D):pG(t)&&(6===i||7===i)?(e.exit("htmlFlowData"),e.check(mB,B,C)(t)):null===t||pG(t)?(e.exit("htmlFlowData"),C(t)):(e.consume(t),A)}function C(t){return e.check(mj,N,B)(t)}function N(t){return e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),I}function I(t){return null===t||pG(t)?C(t):(e.enter("htmlFlowData"),A(t))}function M(t){return 45===t?(e.consume(t),L):A(t)}function P(t){return 47===t?(e.consume(t),o="",R):A(t)}function R(t){if(62===t){let n=o.toLowerCase();return mO.includes(n)?(e.consume(t),O):A(t)}return pO(t)&&o.length<8?(e.consume(t),o+=String.fromCharCode(t),R):A(t)}function D(t){return 93===t?(e.consume(t),L):A(t)}function L(t){return 62===t?(e.consume(t),O):45===t&&2===i?(e.consume(t),L):A(t)}function O(t){return null===t||pG(t)?(e.exit("htmlFlowData"),B(t)):(e.consume(t),O)}function B(n){return e.exit("htmlFlow"),t(n)}}},61:mQ,95:mW,96:mk,126:mk},flowInitial:{[-2]:m_,[-1]:m_,32:m_},insideSpan:{null:[mm,g3]},string:{38:mb,92:my},text:{[-5]:mV,[-4]:mV,[-3]:mV,33:mG,38:mb,42:mm,60:[{name:"autolink",tokenize:function(e,t,n){let i=0;return function(t){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(t),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),a};function a(t){return pO(t)?(e.consume(t),o):64===t?n(t):l(t)}function o(t){return 43===t||45===t||46===t||pB(t)?(i=1,function t(n){return 58===n?(e.consume(n),i=0,s):(43===n||45===n||46===n||pB(n))&&i++<32?(e.consume(n),t):(i=0,l(n))}(t)):l(t)}function s(i){return 62===i?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(i),e.exit("autolinkMarker"),e.exit("autolink"),t):null===i||32===i||60===i||pz(i)?n(i):(e.consume(i),s)}function l(t){return 64===t?(e.consume(t),u):pj(t)?(e.consume(t),l):n(t)}function u(a){return pB(a)?function a(o){return 46===o?(e.consume(o),i=0,u):62===o?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(o),e.exit("autolinkMarker"),e.exit("autolink"),t):function t(o){if((45===o||pB(o))&&i++<63){let n=45===o?t:a;return e.consume(o),n}return n(o)}(o)}(a):n(a)}}},{name:"htmlText",tokenize:function(e,t,n){let i,a,o;let s=this;return function(t){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(t),l};function l(t){return 33===t?(e.consume(t),u):47===t?(e.consume(t),k):63===t?(e.consume(t),b):pO(t)?(e.consume(t),T):n(t)}function u(t){return 45===t?(e.consume(t),c):91===t?(e.consume(t),a=0,m):pO(t)?(e.consume(t),v):n(t)}function c(t){return 45===t?(e.consume(t),h):n(t)}function d(t){return null===t?n(t):45===t?(e.consume(t),p):pG(t)?(o=d,R(t)):(e.consume(t),d)}function p(t){return 45===t?(e.consume(t),h):d(t)}function h(e){return 62===e?P(e):45===e?p(e):d(e)}function m(t){let i="CDATA[";return t===i.charCodeAt(a++)?(e.consume(t),a===i.length?f:m):n(t)}function f(t){return null===t?n(t):93===t?(e.consume(t),g):pG(t)?(o=f,R(t)):(e.consume(t),f)}function g(t){return 93===t?(e.consume(t),x):f(t)}function x(t){return 62===t?P(t):93===t?(e.consume(t),x):f(t)}function v(t){return null===t||62===t?P(t):pG(t)?(o=v,R(t)):(e.consume(t),v)}function b(t){return null===t?n(t):63===t?(e.consume(t),w):pG(t)?(o=b,R(t)):(e.consume(t),b)}function w(e){return 62===e?P(e):b(e)}function k(t){return pO(t)?(e.consume(t),_):n(t)}function _(t){return 45===t||pB(t)?(e.consume(t),_):function t(n){return pG(n)?(o=t,R(n)):pV(n)?(e.consume(n),t):P(n)}(t)}function T(t){return 45===t||pB(t)?(e.consume(t),T):47===t||62===t||pq(t)?E(t):n(t)}function E(t){return 47===t?(e.consume(t),P):58===t||95===t||pO(t)?(e.consume(t),A):pG(t)?(o=E,R(t)):pV(t)?(e.consume(t),E):P(t)}function A(t){return 45===t||46===t||58===t||95===t||pB(t)?(e.consume(t),A):function t(n){return 61===n?(e.consume(n),C):pG(n)?(o=t,R(n)):pV(n)?(e.consume(n),t):E(n)}(t)}function C(t){return null===t||60===t||61===t||62===t||96===t?n(t):34===t||39===t?(e.consume(t),i=t,N):pG(t)?(o=C,R(t)):pV(t)?(e.consume(t),C):(e.consume(t),I)}function N(t){return t===i?(e.consume(t),i=void 0,M):null===t?n(t):pG(t)?(o=N,R(t)):(e.consume(t),N)}function I(t){return null===t||34===t||39===t||60===t||61===t||96===t?n(t):47===t||62===t||pq(t)?E(t):(e.consume(t),I)}function M(e){return 47===e||62===e||pq(e)?E(e):n(e)}function P(i){return 62===i?(e.consume(i),e.exit("htmlTextData"),e.exit("htmlText"),t):n(i)}function R(t){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(t),e.exit("lineEnding"),D}function D(t){return pV(t)?mg(e,L,"linePrefix",s.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(t):L(t)}function L(t){return e.enter("htmlTextData"),o(t)}}}],91:mq,92:[{name:"hardBreakEscape",tokenize:function(e,t,n){return function(t){return e.enter("hardBreakEscape"),e.consume(t),i};function i(i){return pG(i)?(e.exit("hardBreakEscape"),t(i)):n(i)}}},my],93:mz,95:mm,96:{name:"codeText",previous:function(e){return 96!==e||"characterEscape"===this.events[this.events.length-1][1].type},resolve:function(e){let t=e.length-4,n=3,i,a;if(("lineEnding"===e[3][1].type||"space"===e[n][1].type)&&("lineEnding"===e[t][1].type||"space"===e[t][1].type)){for(i=n;++i<t;)if("codeTextData"===e[i][1].type){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(i=n-1,t++;++i<=t;)void 0===a?i!==t&&"lineEnding"!==e[i][1].type&&(a=i):(i===t||"lineEnding"===e[i][1].type)&&(e[a][1].type="codeTextData",i!==a+2&&(e[a][1].end=e[i-1][1].end,e.splice(a+2,i-a-2),t-=i-a-2,i=a+2),a=void 0);return e},tokenize:function(e,t,n){let i=0,a,o;
286return function(t){return e.enter("codeText"),e.enter("codeTextSequence"),function t(n){return 96===n?(e.consume(n),i++,t):(e.exit("codeTextSequence"),s(n))}(t)};function s(u){return null===u?n(u):32===u?(e.enter("space"),e.consume(u),e.exit("space"),s):96===u?(o=e.enter("codeTextSequence"),a=0,function n(s){return 96===s?(e.consume(s),a++,n):a===i?(e.exit("codeTextSequence"),e.exit("codeText"),t(s)):(o.type="codeTextData",l(s))}(u)):pG(u)?(e.enter("lineEnding"),e.consume(u),e.exit("lineEnding"),s):(e.enter("codeTextData"),l(u))}function l(t){return null===t||32===t||96===t||pG(t)?(e.exit("codeTextData"),s(t)):(e.consume(t),l)}}}}},Symbol.toStringTag,{value:"Module"})),xn=/[\0\t\n\r]/g,xr={}.hasOwnProperty;function xi(e){return{line:e.line,column:e.column,offset:e.offset}}function xa(e,t){throw e?Error("Cannot close `"+e.type+"` ("+gB({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+gB({start:t.start,end:t.end})+") is open"):Error("Cannot close document, a token (`"+t.type+"`, "+gB({start:t.start,end:t.end})+") is still open")}function xo(e){let t=this;t.parser=function(n){var i,a;let o,s,l,u;return"string"!=typeof(i={...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})&&(a=i,i=void 0),(function(e){let t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:i(v),autolinkProtocol:c,autolinkEmail:c,atxHeading:i(f),blockQuote:i(function(){return{type:"blockquote",children:[]}}),characterEscape:c,characterReference:c,codeFenced:i(m),codeFencedFenceInfo:a,codeFencedFenceMeta:a,codeIndented:i(m,a),codeText:i(function(){return{type:"inlineCode",value:""}},a),codeTextData:c,data:c,codeFlowValue:c,definition:i(function(){return{type:"definition",identifier:"",label:null,title:null,url:""}}),definitionDestinationString:a,definitionLabelString:a,definitionTitleString:a,emphasis:i(function(){return{type:"emphasis",children:[]}}),hardBreakEscape:i(g),hardBreakTrailing:i(g),htmlFlow:i(x,a),htmlFlowData:c,htmlText:i(x,a),htmlTextData:c,image:i(function(){return{type:"image",title:null,url:"",alt:null}}),label:a,link:i(v),listItem:i(function(e){return{type:"listItem",spread:e._spread,checked:null,children:[]}}),listItemValue:function(e){this.data.expectingFirstListItemValue&&(this.stack[this.stack.length-2].start=Number.parseInt(this.sliceSerialize(e),10),this.data.expectingFirstListItemValue=void 0)},listOrdered:i(b,function(){this.data.expectingFirstListItemValue=!0}),listUnordered:i(b),paragraph:i(function(){return{type:"paragraph",children:[]}}),reference:function(){this.data.referenceType="collapsed"},referenceString:a,resourceDestinationString:a,resourceTitleString:a,setextHeading:i(f),strong:i(function(){return{type:"strong",children:[]}}),thematicBreak:i(function(){return{type:"thematicBreak"}})},exit:{atxHeading:s(),atxHeadingSequence:function(e){let t=this.stack[this.stack.length-1];if(!t.depth){let n=this.sliceSerialize(e).length;t.depth=n}},autolink:s(),autolinkEmail:function(e){d.call(this,e),this.stack[this.stack.length-1].url="mailto:"+this.sliceSerialize(e)},autolinkProtocol:function(e){d.call(this,e),this.stack[this.stack.length-1].url=this.sliceSerialize(e)},blockQuote:s(),characterEscapeValue:d,characterReferenceMarkerHexadecimal:h,characterReferenceMarkerNumeric:h,characterReferenceValue:function(e){let t;let n=this.sliceSerialize(e),i=this.data.characterReferenceType;i?(t=hY(n,"characterReferenceMarkerNumeric"===i?10:16),this.data.characterReferenceType=void 0):t=hW(n);let a=this.stack[this.stack.length-1];a.value+=t},characterReference:function(e){this.stack.pop().position.end=xi(e.end)},codeFenced:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}),codeFencedFence:function(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)},codeFencedFenceInfo:function(){let e=this.resume();this.stack[this.stack.length-1].lang=e},codeFencedFenceMeta:function(){let e=this.resume();this.stack[this.stack.length-1].meta=e},codeFlowValue:d,codeIndented:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e.replace(/(\r?\n|\r)$/g,"")}),codeText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),codeTextData:d,data:d,definition:s(),definitionDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},definitionLabelString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=hb(this.sliceSerialize(e)).toLowerCase()},definitionTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e}
286,emphasis:s(),hardBreakEscape:s(p),hardBreakTrailing:s(p),htmlFlow:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlFlowData:d,htmlText:s(function(){let e=this.resume();this.stack[this.stack.length-1].value=e}),htmlTextData:d,image:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),label:function(){let e=this.stack[this.stack.length-1],t=this.resume(),n=this.stack[this.stack.length-1];if(this.data.inReference=!0,"link"===n.type){let t=e.children;n.children=t}else n.alt=t},labelText:function(e){let t=this.sliceSerialize(e),n=this.stack[this.stack.length-2];n.label=t.replace(hK,hX),n.identifier=hb(t).toLowerCase()},lineEnding:function(e){let n=this.stack[this.stack.length-1];if(this.data.atHardBreak){n.children[n.children.length-1].position.end=xi(e.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(n.type)&&(c.call(this,e),d.call(this,e))},link:s(function(){let e=this.stack[this.stack.length-1];if(this.data.inReference){let t=this.data.referenceType||"shortcut";e.type+="Reference",e.referenceType=t,delete e.url,delete e.title}else delete e.identifier,delete e.label;this.data.referenceType=void 0}),listItem:s(),listOrdered:s(),listUnordered:s(),paragraph:s(),referenceString:function(e){let t=this.resume(),n=this.stack[this.stack.length-1];n.label=t,n.identifier=hb(this.sliceSerialize(e)).toLowerCase(),this.data.referenceType="full"},resourceDestinationString:function(){let e=this.resume();this.stack[this.stack.length-1].url=e},resourceTitleString:function(){let e=this.resume();this.stack[this.stack.length-1].title=e},resource:function(){this.data.inReference=void 0},setextHeading:s(function(){this.data.setextHeadingSlurpLineEnding=void 0}),setextHeadingLineSequence:function(e){this.stack[this.stack.length-1].depth=61===this.sliceSerialize(e).codePointAt(0)?1:2},setextHeadingText:function(){this.data.setextHeadingSlurpLineEnding=!0},strong:s(),thematicBreak:s()}};(function e(t,n){let i=-1;for(;++i<n.length;){let a=n[i];Array.isArray(a)?e(t,a):function(e,t){let n;for(n in t)if(xr.call(t,n))switch(n){case"canContainEols":{let i=t[n];i&&e[n].push(...i);break}case"transforms":{let i=t[n];i&&e[n].push(...i);break}case"enter":case"exit":{let i=t[n];i&&Object.assign(e[n],i)}}}(t,a)}})(t,(e||{}).mdastExtensions||[]);let n={};return function(e){let i={type:"root",children:[]},s={stack:[i],tokenStack:[],config:t,enter:o,exit:l,buffer:a,resume:u,data:n},c=[],d=-1;for(;++d<e.length;)("listOrdered"===e[d][1].type||"listUnordered"===e[d][1].type)&&("enter"===e[d][0]?c.push(d):d=function(e,t,n){let i=t-1,a=-1,o=!1,s,l,u,c;for(;++i<=n;){let t=e[i];switch(t[1].type){case"listUnordered":case"listOrdered":case"blockQuote":"enter"===t[0]?a++:a--,c=void 0;break;case"lineEndingBlank":"enter"===t[0]&&(!s||c||a||u||(u=i),c=void 0);break;case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:c=void 0}if(!a&&"enter"===t[0]&&"listItemPrefix"===t[1].type||-1===a&&"exit"===t[0]&&("listUnordered"===t[1].type||"listOrdered"===t[1].type)){if(s){let a=i;for(l=void 0;a--;){let t=e[a];if("lineEnding"===t[1].type||"lineEndingBlank"===t[1].type){if("exit"===t[0])continue;l&&(e[l][1].type="lineEndingBlank",o=!0),t[1].type="lineEnding",l=a}else if(!("linePrefix"===t[1].type||"blockQuotePrefix"===t[1].type||"blockQuotePrefixWhitespace"===t[1].type||"blockQuoteMarker"===t[1].type||"listItemIndent"===t[1].type))break}u&&(!l||u<l)&&(s._spread=!0),s.end=Object.assign({},l?e[l][1].start:t[1].end),e.splice(l||i,0,["exit",s,t[2]]),i++,n++}if("listItemPrefix"===t[1].type){let a={type:"listItem",_spread:!1,start:Object.assign({},t[1].start),end:void 0};s=a,e.splice(i,0,["enter",a,t[2]]),i++,n++,u=void 0,c=!0}}}return e[t][1]._spread=o,n}(e,c.pop(),d));for(d=-1;++d<e.length;){let n=t[e[d][0]];xr.call(n,e[d][1].type)&&n[e[d][1].type].call(Object.assign({sliceSerialize:e[d][2].sliceSerialize},s),e[d][1])}if(s.tokenStack.length>0){let e=s.tokenStack[s.tokenStack.length-1];(e[1]||xa).call(s,void 0,e[0])}for(i.position={start:xi(e.length>0?e[0][1].start:{line:1,column:1,offset:0}),end:xi(e.length>0?e[e.length-2][1].end:{line:1,column:1,offset:0})},d=-1;++d<t.transforms.length;)i=t.transforms[d](i)||i;return i};function i(e,t){return function(n){o.call(this,e(n),n),t&&t.call(this,n)}}function a(){this.stack.push({type:"fragment",children:[]})}function o(e,t,n){this.stack[this.stack.length-1].children.push(e),this.stack.push(e),this.tokenStack.push([t,n||void 0]),e.position={start:xi(t.start),end:void 0}}function s(e){return function(t){e&&e.call(this,t),l.call(this,t)}}function l(e,t){let n=this.stack.pop(),i=this.tokenStack.pop();if(i)i[0].type!==e.type&&(t?t.call(this,e,i[0]):(i[1]||xa).call(this,e,i[0]));else throw Error("Cannot close `"+e.type+"` ("+gB({start:e.start,end:e.end})+"): it’s not open");n.position.end=xi(e.end)}function u(){return hF(this.stack.pop())}function c(e){let t=this.stack[this.stack.length-1].children,n=t[t.length-1];n&&"text"===n.type||((n={type:"text",value:""}).position={start:xi(e.start),end:void 0},t.push(n)),this.stack.push(n)}function d(e){let t=this.stack.pop();t.value+=this.sliceSerialize(e),t.position.end=xi(e.end)}function p(){this.data.atHardBreak=!0}function h(e){this.data.characterReferenceType=e.type}function m(){return{type:"code",lang:null,meta:null,value:""}}function f(){return{type:"heading",depth:0,children:[]}}function g(){return{type:"break"}}function x(){return{type:"html",value:""}}function v(){return{type:"link",title:null,url:"",children:[]}}function b(e){return{type:"list",ordered:"listOrdered"===e.type,start:null,spread:e._spread,children:[]}}})(a)(function(e){for(;!mA(e););return e}((function(e){let t={constructs:h7([xt,...(e||{}).extensions||[]]),content:n(g1),defined:[],document:n(g2),flow:n(g5),lazy:{},string:n(g6),text:n(g7)};return t;function n(e){return function(n){return function(e,t,n){let i={_bufferIndex:-1,_index:0,line:n&&n.line||1,c
286olumn:n&&n.column||1,offset:n&&n.offset||0},a={},o=[],s=[],l=[],u={attempt:f(function(e,t){g(e,t.from)}),check:f(m),consume:function(e){pG(e)?(i.line++,i.column=1,i.offset+=-3===e?2:1,x()):-1!==e&&(i.column++,i.offset++),i._bufferIndex<0?i._index++:(i._bufferIndex++,i._bufferIndex===s[i._index].length&&(i._bufferIndex=-1,i._index++)),c.previous=e},enter:function(e,t){let n=t||{};return n.type=e,n.start=h(),c.events.push(["enter",n,c]),l.push(n),n},exit:function(e){let t=l.pop();return t.end=h(),c.events.push(["exit",t,c]),t},interrupt:f(m,{interrupt:!0})},c={code:null,containerState:{},defineSkip:function(e){a[e.line]=e.column,x()},events:[],now:h,parser:e,previous:null,sliceSerialize:function(e,t){return function(e,t){let n,i=-1,a=[];for(;++i<e.length;){let o;let s=e[i];if("string"==typeof s)o=s;else switch(s){case -5:o="\r";break;case -4:o=`
287`;break;case -3:o=`\r
288`;break;case -2:o=t?" ":"	";break;case -1:if(!t&&n)continue;o=" ";break;default:o=String.fromCharCode(s)}n=-2===s,a.push(o)}return a.join("")}(p(e),t)},sliceStream:p,write:function(e){return s=hr(s,e),function(){let e;for(;i._index<s.length;){let n=s[i._index];if("string"==typeof n)for(e=i._index,i._bufferIndex<0&&(i._bufferIndex=0);i._index===e&&i._bufferIndex<n.length;){var t;t=n.charCodeAt(i._bufferIndex),d=d(t)}else d=d(n)}}(),null!==s[s.length-1]?[]:(g(t,0),c.events=hi(o,c.events,c),c.events)}},d=t.tokenize.call(c,u);return t.resolveAll&&o.push(t),c;function p(e){return function(e,t){let n;let i=t.start._index,a=t.start._bufferIndex,o=t.end._index,s=t.end._bufferIndex;if(i===o)n=[e[i].slice(a,s)];else{if(n=e.slice(i,o),a>-1){let e=n[0];"string"==typeof e?n[0]=e.slice(a):n.shift()}s>0&&n.push(e[o].slice(0,s))}return n}(s,e)}function h(){let{_bufferIndex:e,_index:t,line:n,column:a,offset:o}=i;return{_bufferIndex:e,_index:t,line:n,column:a,offset:o}}function m(e,t){t.restore()}function f(e,t){return function(n,a,o){let s,d,p,m;return Array.isArray(n)?f(n):"tokenize"in n?f([n]):function(e){let t=null!==e&&n[e],i=null!==e&&n.null;return f([...Array.isArray(t)?t:t?[t]:[],...Array.isArray(i)?i:i?[i]:[]])(e)};function f(e){return s=e,d=0,0===e.length?o:g(e[d])}function g(e){return function(n){return m=function(){let e=h(),t=c.previous,n=c.currentConstruct,a=c.events.length,o=Array.from(l);return{from:a,restore:function(){i=e,c.previous=t,c.currentConstruct=n,c.events.length=a,l=o,x()}}}(),p=e,e.partial||(c.currentConstruct=e),e.name&&c.parser.constructs.disable.null.includes(e.name)?b():e.tokenize.call(t?Object.assign(Object.create(c),t):c,u,v,b)(n)}}function v(t){return e(p,m),a}function b(e){return m.restore(),++d<s.length?g(s[d]):o}}}function g(e,t){e.resolveAll&&!o.includes(e)&&o.push(e),e.resolve&&hn(c.events,t,c.events.length-t,e.resolve(c.events.slice(t),c)),e.resolveTo&&(c.events=e.resolveTo(c.events,c))}function x(){i.line in a&&i.column<2&&(i.column=a[i.line],i.offset+=a[i.line]-1)}}(t,e,n)}}})(a).document().write((o=1,s="",l=!0,function(e,t,n){let i,a,c,d,p;let h=[];for(e=s+("string"==typeof e?e.toString():new TextDecoder(t||void 0).decode(e)),c=0,s="",l&&(65279===e.charCodeAt(0)&&c++,l=void 0);c<e.length;){if(xn.lastIndex=c,d=(i=xn.exec(e))&&void 0!==i.index?i.index:e.length,p=e.charCodeAt(d),!i){s=e.slice(c);break}if(10===p&&c===d&&u)h.push(-3),u=void 0;else switch(u&&(h.push(-5),u=void 0),c<d&&(h.push(e.slice(c,d)),o+=d-c),p){case 0:h.push(65533),o++;break;case 9:for(a=4*Math.ceil(o/4),h.push(-2);o++<a;)h.push(-1);break;case 10:h.push(-4),o=1;break;default:u=!0,o=1}c=d+1}return n&&(u&&h.push(-5),s&&h.push(s),h.push(null)),h})(n,i,!0))))}}function xs(e,t){let n=t.referenceType,i="]";if("collapsed"===n?i+="[]":"full"===n&&(i+="["+(t.label||t.identifier)+"]"),"imageReference"===t.type)return[{type:"text",value:"!["+t.alt+i}];let a=e.all(t),o=a[0];o&&"text"===o.type?o.value="["+o.value:a.unshift({type:"text",value:"["});let s=a[a.length-1];return s&&"text"===s.type?s.value+=i:a.push({type:"text",value:i}),a}function xl(e){return e.spread??e.children.length>1}function xu(e,t,n){let i=0,a=e.length;if(t){let t=e.codePointAt(i);for(;9===t||32===t;)i++,t=e.codePointAt(i)}if(n){let t=e.codePointAt(a-1);for(;9===t||32===t;)a--,t=e.codePointAt(a-1)}return a>i?e.slice(i,a):""}let xc={blockquote:function(e,t){let n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)},break:function(e,t){let n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
289`}]},code:function(e,t){let n=t.value?t.value+`
290`:"",i={},a=t.lang?t.lang.split(/\s+/):[];a.length>0&&(i.className=["language-"+a[0]]);let o={type:"element",tagName:"code",properties:i,children:[{type:"text",value:n}]};return t.meta&&(o.data={meta:t.meta}),e.patch(t,o),o={type:"element",tagName:"pre",properties:{},children:[o=e.applyData(t,o)]},e.patch(t,o),o},delete:function(e,t){let n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},emphasis:function(e,t){let n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}
290,footnoteReference:function(e,t){let n="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",i=String(t.identifier).toUpperCase(),a=mh(i.toLowerCase()),o=e.footnoteOrder.indexOf(i),s,l=e.footnoteCounts.get(i);void 0===l?(l=0,e.footnoteOrder.push(i),s=e.footnoteOrder.length):s=o+1,l+=1,e.footnoteCounts.set(i,l);let u={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(l>1?"-"+l:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,u);let c={type:"element",tagName:"sup",properties:{},children:[u]};return e.patch(t,c),e.applyData(t,c)},heading:function(e,t){let n={type:"element",tagName:"h"+t.depth,properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},html:function(e,t){if(e.options.allowDangerousHtml){let n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}},imageReference:function(e,t){let n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return xs(e,t);let a={src:mh(i.url||""),alt:t.alt};null!==i.title&&void 0!==i.title&&(a.title=i.title);let o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)},image:function(e,t){let n={src:mh(t.url)};null!==t.alt&&void 0!==t.alt&&(n.alt=t.alt),null!==t.title&&void 0!==t.title&&(n.title=t.title);let i={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,i),e.applyData(t,i)},inlineCode:function(e,t){let n={type:"text",value:t.value.replace(/\r?\n|\r/g," ")};e.patch(t,n);let i={type:"element",tagName:"code",properties:{},children:[n]};return e.patch(t,i),e.applyData(t,i)},linkReference:function(e,t){let n=String(t.identifier).toUpperCase(),i=e.definitionById.get(n);if(!i)return xs(e,t);let a={href:mh(i.url||"")};null!==i.title&&void 0!==i.title&&(a.title=i.title);let o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)},link:function(e,t){let n={href:mh(t.url)};null!==t.title&&void 0!==t.title&&(n.title=t.title);let i={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,i),e.applyData(t,i)},listItem:function(e,t,n){let i=e.all(t),a=n?function(e){let t=!1;if("list"===e.type){t=e.spread||!1;let n=e.children,i=-1;for(;!t&&++i<n.length;)t=xl(n[i])}return t}(n):xl(t),o={},s=[];if("boolean"==typeof t.checked){let e;let n=i[0];n&&"element"===n.type&&"p"===n.tagName?e=n:(e={type:"element",tagName:"p",properties:{},children:[]},i.unshift(e)),e.children.length>0&&e.children.unshift({type:"text",value:" "}),e.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let l=-1;for(;++l<i.length;){let e=i[l];(a||0!==l||"element"!==e.type||"p"!==e.tagName)&&s.push({type:"text",value:`
291`}),"element"!==e.type||"p"!==e.tagName||a?s.push(e):s.push(...e.children)}let u=i[i.length-1];u&&(a||"element"!==u.type||"p"!==u.tagName)&&s.push({type:"text",value:`
292`});let c={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,c),e.applyData(t,c)},list:function(e,t){let n={},i=e.all(t),a=-1;for("number"==typeof t.start&&1!==t.start&&(n.start=t.start);++a<i.length;){let e=i[a];if("element"===e.type&&"li"===e.tagName&&e.properties&&Array.isArray(e.properties.className)&&e.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}let o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(i,!0)};return e.patch(t,o),e.applyData(t,o)},paragraph:function(e,t){let n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},root:function(e,t){let n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)},strong:function(e,t){let n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},table:function(e,t){let n=e.all(t),i=n.shift(),a=[];if(i){let n={type:"element",tagName:"thead",properties:{},children:e.wrap([i],!0)};e.patch(t.children[0],n),a.push(n)}if(n.length>0){let i={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=po(t.children[1]),s=pa(t.children[t.children.length-1]);o&&s&&(i.position={start:o,end:s}),a.push(i)}let o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)},tableCell:function(e,t){let n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)},tableRow:function(e,t,n){let i=n?n.children:void 0,a=(i?i.indexOf(t):1)===0?"th":"td",o=n&&"table"===n.type?n.align:void 0,s=o?o.length:t.children.length,l=-1,u=[];for(;++l<s;){let n=t.children[l],i={},s=o?o[l]:void 0;s&&(i.align=s);let c={type:"element",tagName:a,properties:i,children:[]};n&&(c.children=e.all(n),e.patch(n,c),c=e.applyData(n,c)),u.push(c)}let c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)},text:function(e,t){let n={type:"text",value:function(e){let t=String(e),n=/\r?\n|\r/g,i=n.exec(t),a=0,o=[];for(;i;)o.push(xu(t.slice(a,i.index),a>0,!0),i[0]),a=i.index+i[0].length,i=n.exec(t);return o.push(xu(t.slice(a),a>0,!1)),o.join("")}(String(t.value))};return e.patch(t,n),e.applyData(t,n)},thematicBreak:function(e,t){let n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}
292,toml:xd,yaml:xd,definition:xd,footnoteDefinition:xd};function xd(){}function xp(e,t){let n=[{type:"text",value:"↩"}];return t>1&&n.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(t)}]}),n}function xh(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}let xm={}.hasOwnProperty,xf={};function xg(e,t){e.position&&(t.position=pl(e))}function xx(e,t){let n=t;if(e&&e.data){let t=e.data.hName,i=e.data.hChildren,a=e.data.hProperties;"string"==typeof t&&("element"===n.type?n.tagName=t:n={type:"element",tagName:t,properties:{},children:"children"in n?n.children:[n]}),"element"===n.type&&a&&Object.assign(n.properties,cg(a)),"children"in n&&n.children&&null!=i&&(n.children=i)}return n}function xv(e,t){let n=[],i=-1;for(t&&n.push({type:"text",value:`
293`});++i<e.length;)i&&n.push({type:"text",value:`
294`}),n.push(e[i]);return t&&e.length>0&&n.push({type:"text",value:`
295`}),n}function xy(e){let t=0,n=e.charCodeAt(t);for(;9===n||32===n;)t++,n=e.charCodeAt(t);return e.slice(t)}function xb(e,t){let n=function(e,t){let n=t||xf,i=new Map,a=new Map,o={all:function(e){let t=[];if("children"in e){let n=e.children,i=-1;for(;++i<n.length;){let a=o.one(n[i],e);if(a){if(i&&"break"===n[i-1].type&&(Array.isArray(a)||"text"!==a.type||(a.value=xy(a.value)),!Array.isArray(a)&&"element"===a.type)){let e=a.children[0];e&&"text"===e.type&&(e.value=xy(e.value))}Array.isArray(a)?t.push(...a):t.push(a)}}}return t},applyData:xx,definitionById:i,footnoteById:a,footnoteCounts:new Map,footnoteOrder:[],handlers:{...xc,...n.handlers},one:function(e,t){let n=e.type,i=o.handlers[n];if(xm.call(o.handlers,n)&&i)return i(o,e,t);if(o.options.passThrough&&o.options.passThrough.includes(n)){if("children"in e){let{children:t,...n}=e,i=cg(n);return i.children=o.all(e),i}return cg(e)}return(o.options.unknownHandler||function(e,t){let n=t.data||{},i="value"in t&&!(xm.call(n,"hProperties")||xm.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,i),e.applyData(t,i)})(o,e,t)},options:n,patch:xg,wrap:xv};return iq(e,function(e){if("definition"===e.type||"footnoteDefinition"===e.type){let t="definition"===e.type?i:a,n=String(e.identifier).toUpperCase();t.has(n)||t.set(n,e)}}),o}(e,t),i=n.one(e,void 0),a=function(e){let t="string"==typeof e.options.clobberPrefix?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||xp,i=e.options.footnoteBackLabel||xh,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},l=[],u=-1;for(;++u<e.footnoteOrder.length;){let a=e.footnoteById.get(e.footnoteOrder[u]);if(!a)continue;let o=e.all(a),s=String(a.identifier).toUpperCase(),c=mh(s.toLowerCase()),d=0,p=[],h=e.footnoteCounts.get(s);for(;void 0!==h&&++d<=h;){p.length>0&&p.push({type:"text",value:" "});let e="string"==typeof n?n:n(u,d);"string"==typeof e&&(e={type:"text",value:e}),p.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+c+(d>1?"-"+d:""),dataFootnoteBackref:"",ariaLabel:"string"==typeof i?i:i(u,d),className:["data-footnote-backref"]},children:Array.isArray(e)?e:[e]})}let m=o[o.length-1];if(m&&"element"===m.type&&"p"===m.tagName){let e=m.children[m.children.length-1];e&&"text"===e.type?e.value+=" ":m.children.push({type:"text",value:" "}),m.children.push(...p)}else o.push(...p);let f={type:"element",tagName:"li",properties:{id:t+"fn-"+c},children:e.wrap(o,!0)};e.patch(a,f),l.push(f)}if(0!==l.length)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...cg(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
296`},{type:"element",tagName:"ol",properties:{},children:e.wrap(l,!0)},{type:"text",value:`
297`}]}}(n),o=Array.isArray(i)?{type:"root",children:i}:i||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
298`},a),o}function xw(e,t){return e&&"run"in e?async function(n,i){let a=xb(n,{file:i,...t});await e.run(a,i)}:function(n,i){return xb(n,{file:i,...e||t})}}function xk(e){if(e)throw e}var x_=Object.prototype.hasOwnProperty,xT=Object.prototype.toString,xE=Object.defineProperty,xS=Object.getOwnPropertyDescriptor,xA=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===xT.call(e)},xC=function(e){if(!e||"[object Object]"!==xT.call(e))return!1;var t,n=x_.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&x_.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!n&&!i)return!1;for(t in e);return typeof t>"u"||x_.call(e,t)},xN=function(e,t){xE&&"__proto__"===t.name?xE(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},xI=function(e,t){if("__proto__"===t){if(!x_.call(e,t))return;if(xS)return xS(e,t).value}return e[t]};let xM=z(function e(){var t,n,i,a,o,s,l=arguments[0],u=1,c=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},u=2),(null==l||"object"!=typeof l&&"function"!=typeof l)&&(l={});u<c;++u)if(t=arguments[u],null!=t)for(n in t)i=xI(l,n),l!==(a=xI(t,n))&&(d&&a&&(xC(a)||(o=xA(a)))?(o?(o=!1,s=i&&xA(i)?i:[]):s=i&&xC(i)?i:{},xN(l,{name:n,newValue:e(d,s,a)})):"u">typeof a&&xN(l,{name:n,newValue:a}));return l});function xP(e){if("object"!=typeof e||null===e)return!1;let t=Object.getPrototypeOf(e);return(null===t||t===Object.prototype||null===Object.getPrototypeOf(t))&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)}let xR={basename:function(e,t){if(void 0!==t&&"string"!=typeof t)throw TypeError('"ext" argument must be a string');xD(e);let n=0,i=-1,a=e.length,o;if(void 0===t||0===t.length||t.length>e.length){for(;a--;)if(47===e.codePointAt(a)){if(o){n=a+1;break}}else i<0&&(o=!0,i=a+1);return i<0?"":e.slice(n,i)}if(t===e)return"";let s=-1,l=t.length-1;for(;a--;)if(47===e.codePointAt(a)){if(o){n=a+1;break}}else s<0&&(o=!0,s=a+1),l>-1&&(e.codePointAt(a)===t.codePointAt(l--)?l<0&&(i=a):(l=-1,i=s));return n===i?i=s:i<0&&(i=e.length),e.slice(n,i)},dirname:function(e){if(xD(e),0===e.length)return".";let t=-1,n=e.length,i;for(;--n;)if(47===e.codePointAt(n)){if(i){t=n;break}}else i||(i=!0);return t<0?47===e.codePointAt(0)?"/":".":1===t&&47===e.codePointAt(0)?"//":e.slice(0,t)},extname:function(e){xD(e);let t=e.length,n=-1,i=0,a=-1,o=0,s;for(;t--;){let l=e.codePointAt(t);if(47===l){if(s){i=t+1;break}continue}n<0&&(s=!0,n=t+1),46===l?a<0?a=t:1!==o&&(o=1):a>-1&&(o=-1)}return a<0||n<0||0===o||1===o&&a===n-1&&a===i+1?"":e.slice(a,n)},join:function(...e){let t=-1,n;for(;++t<e.length;)xD(e[t]),e[t]&&(n=void 0===n?e[t]:n+"/"+e[t]);return void 0===n?".":function(e){xD(e);let t=47===e.codePointAt(0),n=function(e,t){let n="",i=0,a=-1,o=0,s=-1,l,u;for(;++s<=e.length;){if(s<e.length)l=e.codePointAt(s);else{if(47===l)break;l=47}if(47===l){if(!(a===s-1||1===o)){if(a!==s-1&&2===o){if(n.length<2||2!==i||46!==n.codePointAt(n.length-1)||46!==n.codePointAt(n.length-2)){if(n.length>2){if((u=n.lastIndexOf("/"))!==n.length-1){u<0?(n="",i=0):i=(n=n.slice(0,u)).length-1-n.lastIndexOf("/"),a=s,o=0;continue}}else if(n.length>0){n="",i=0,a=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",i=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),i=s-a-1}a=s,o=0}else 46===l&&o>-1?o++:o=-1}return n}(e,!t);return 0!==n.length||t||(n="."),n.length>0&&47===e.codePointAt(e.length-1)&&(n+="/"),t?"/"+n:n}(n)},sep:"/"};function xD(e){if("string"!=typeof e)throw TypeError("Path must be a string. Received "+JSON.stringify(e))}let xL={cwd:function(){return"/"}};function xO(e){return!!(null!==e&&"object"==typeof e&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&void 0===e.auth)}let xB=["history","path","basename","stem","extname","dirname"];class xj{constructor(e){let t,n;t=e?xO(e)?{path:e}:"string"==typeof e||e&&"object"==typeof e&&"byteLength"in e&&"byteOffset"in e?{value:e}:e:{},this.cwd="cwd"in t?"":xL.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let i=-1;for(;++i<xB.length;){let e=xB[i];e in t&&void 0!==t[e]&&null!==t[e]&&(this[e]="history"===e?[...t[e]]:t[e])}for(n in t)xB.includes(n)||(this[n]=t[n])}get basename(){return"string"==typeof this.path?xR.basename(this.path):void 0}
298set basename(e){xF(e,"basename"),xz(e,"basename"),this.path=xR.join(this.dirname||"",e)}get dirname(){return"string"==typeof this.path?xR.dirname(this.path):void 0}set dirname(e){xH(this.basename,"dirname"),this.path=xR.join(e||"",this.basename)}get extname(){return"string"==typeof this.path?xR.extname(this.path):void 0}set extname(e){if(xz(e,"extname"),xH(this.dirname,"extname"),e){if(46!==e.codePointAt(0))throw Error("`extname` must start with `.`");if(e.includes(".",1))throw Error("`extname` cannot contain multiple dots")}this.path=xR.join(this.dirname,this.stem+(e||""))}get path(){return this.history[this.history.length-1]}set path(e){xO(e)&&(e=function(e){if("string"==typeof e)e=new URL(e);else if(!xO(e)){let t=TypeError('The "path" argument must be of type string or an instance of URL. Received `'+e+"`");throw t.code="ERR_INVALID_ARG_TYPE",t}if("file:"!==e.protocol){let e=TypeError("The URL must be of scheme file");throw e.code="ERR_INVALID_URL_SCHEME",e}return function(e){if(""!==e.hostname){let e=TypeError('File URL host must be "localhost" or empty on darwin');throw e.code="ERR_INVALID_FILE_URL_HOST",e}let t=e.pathname,n=-1;for(;++n<t.length;)if(37===t.codePointAt(n)&&50===t.codePointAt(n+1)){let e=t.codePointAt(n+2);if(70===e||102===e){let e=TypeError("File URL path must not include encoded / characters");throw e.code="ERR_INVALID_FILE_URL_PATH",e}}return decodeURIComponent(t)}(e)}(e)),xF(e,"path"),this.path!==e&&this.history.push(e)}get stem(){return"string"==typeof this.path?xR.basename(this.path,this.extname):void 0}set stem(e){xF(e,"stem"),xz(e,"stem"),this.path=xR.join(this.dirname||"",e+(this.extname||""))}fail(e,t,n){let i=this.message(e,t,n);throw i.fatal=!0,i}info(e,t,n){let i=this.message(e,t,n);return i.fatal=void 0,i}message(e,t,n){let i=new gH(e,t,n);return this.path&&(i.name=this.path+":"+i.name,i.file=this.path),i.fatal=!1,this.messages.push(i),i}toString(e){return void 0===this.value?"":"string"==typeof this.value?this.value:new TextDecoder(e||void 0).decode(this.value)}}function xz(e,t){if(e&&e.includes(xR.sep))throw Error("`"+t+"` cannot be a path: did not expect `"+xR.sep+"`")}function xF(e,t){if(!e)throw Error("`"+t+"` cannot be empty")}function xH(e,t){if(!e)throw Error("Setting `"+t+"` requires `path` to be set too")}let xU=function(e){let t=this.constructor.prototype,n=t[e],i=function(){return n.apply(i,arguments)};return Object.setPrototypeOf(i,t),i},xG={}.hasOwnProperty;class xq extends xU{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=function(){let e=[],t={run:function(...t){let n=-1,i=t.pop();if("function"!=typeof i)throw TypeError("Expected function as last argument, not "+i);(function a(o,...s){let l=e[++n],u=-1;if(o){i(o);return}for(;++u<t.length;)(null===s[u]||void 0===s[u])&&(s[u]=t[u]);t=s,l?(function(e,t){let n;return function(...t){let o;let s=e.length>t.length;s&&t.push(i);try{o=e.apply(this,t)}catch(e){if(s&&n)throw e;return i(e)}s||(o&&o.then&&"function"==typeof o.then?o.then(a,i):o instanceof Error?i(o):a(o))};function i(e,...a){n||(n=!0,t(e,...a))}function a(e){i(null,e)}})(l,a)(...s):i(null,...s)})(null,...t)},use:function(n){if("function"!=typeof n)throw TypeError("Expected `middelware` to be a function, not "+n);return e.push(n),t}};return t}()}copy(){let e=new xq,t=-1;for(;++t<this.attachers.length;){let n=this.attachers[t];e.use(...n)}return e.data(xM(!0,{},this.namespace)),e}data(e,t){return"string"==typeof e?2==arguments.length?(xK("data",this.frozen),this.namespace[e]=t,this):xG.call(this.namespace,e)&&this.namespace[e]||void 0:e?(xK("data",this.frozen),this.namespace=e,this):this.namespace}freeze(){if(this.frozen)return this;for(;++this.freezeIndex<this.attachers.length;){let[e,...t]=this.attachers[this.freezeIndex];if(!1===t[0])continue;!0===t[0]&&(t[0]=void 0);let n=e.call(this,...t);"function"==typeof n&&this.transformers.use(n)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(e){this.freeze();let t=xZ(e),n=this.parser||this.Parser;return xW("parse",n),n(String(t),t)}process(e,t){let n=this;return this.freeze(),xW("process",this.parser||this.Parser),xY("process",this.compiler||this.Compiler),t?i(void 0,t):new Promise(i);function i(i,a){let o=xZ(e),s=n.parse(o);function l(e,n){e||!n?a(e):i?i(n):t(void 0,n)}n.run(s,o,function(e,t,i){if(e||!t||!i)return l(e);let a=n.stringify(t,i);"string"==typeof a||a&&"object"==typeof a&&"byteLength"in a&&"byteOffset"in a?i.value=a:i.result=a,l(e,i)})}}processSync(e){let t=!1,n;return this.freeze(),xW("processSync",this.parser||this.Parser),xY("processSync",this.compiler||this.Compiler),this.process(e,function(e,i){t=!0,xk(e),n=i}),xQ("processSync","process",t),n}
298run(e,t,n){xX(e),this.freeze();let i=this.transformers;return n||"function"!=typeof t||(n=t,t=void 0),n?a(void 0,n):new Promise(a);function a(a,o){let s=xZ(t);i.run(e,s,function(t,i,s){let l=i||e;t?o(t):a?a(l):n(void 0,l,s)})}}runSync(e,t){let n=!1,i;return this.run(e,t,function(e,t){xk(e),i=t,n=!0}),xQ("runSync","run",n),i}stringify(e,t){this.freeze();let n=xZ(t),i=this.compiler||this.Compiler;return xY("stringify",i),xX(e),i(e,n)}use(e,...t){let n=this.attachers,i=this.namespace;if(xK("use",this.frozen),null!=e){if("function"==typeof e)s(e,t);else if("object"==typeof e)Array.isArray(e)?o(e):a(e);else throw TypeError("Expected usable value, not `"+e+"`")}return this;function a(e){if(!("plugins"in e)&&!("settings"in e))throw Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");o(e.plugins),e.settings&&(i.settings=xM(!0,i.settings,e.settings))}function o(e){let t=-1;if(null!=e){if(Array.isArray(e))for(;++t<e.length;)!function(e){if("function"==typeof e)s(e,[]);else if("object"==typeof e){if(Array.isArray(e)){let[t,...n]=e;s(t,n)}else a(e)}else throw TypeError("Expected usable value, not `"+e+"`")}(e[t]);else throw TypeError("Expected a list of plugins, not `"+e+"`")}}function s(e,t){let i=-1,a=-1;for(;++i<n.length;)if(n[i][0]===e){a=i;break}if(-1===a)n.push([e,...t]);else if(t.length>0){let[i,...o]=t,s=n[a][1];xP(s)&&xP(i)&&(i=xM(!0,s,i)),n[a]=[e,i,...o]}}}}let xV=new xq().freeze();function xW(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `parser`")}function xY(e,t){if("function"!=typeof t)throw TypeError("Cannot `"+e+"` without `compiler`")}function xK(e,t){if(t)throw Error("Cannot call `"+e+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function xX(e){if(!xP(e)||"string"!=typeof e.type)throw TypeError("Expected node, got `"+e+"`")}function xQ(e,t,n){if(!n)throw Error("`"+e+"` finished async. Use `"+t+"` instead")}function xZ(e){return e&&"object"==typeof e&&"message"in e&&"messages"in e?e:new xj(e)}function x$(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}}var xJ=x$(),x0={exec:()=>null};function x1(e,t=""){let n="string"==typeof e?e:e.source,i={replace:(e,t)=>{let a="string"==typeof t?t:t.source;return a=a.replace(x4.caret,"$1"),n=n.replace(e,a),i},getRegex:()=>new RegExp(n,t)};return i}var x2=(()=>{try{return RegExp("(?<=1)(?<!1)"),!0}catch{return!1}})(),x4={codeRemoveIndent:/^(?: {1,4}| {0,3}\t)/gm,outputLinkReplace:/\\([\[\]])/g,indentCodeCompensation:/^(\s+)(?:```)/,beginningSpace:/^\s+/,endingHash:/#$/,startingSpaceChar:/^ /,endingSpaceChar:/ $/,nonSpaceChar:/[^ ]/,newLineCharGlobal:/\n/g,tabCharGlobal:/\t/g,multipleSpaceGlobal:/\s+/g,blankLine:/^[ \t]*$/,doubleBlankLine:/\n[ \t]*\n[ \t]*$/,blockquoteStart:/^ {0,3}>/,blockquoteSetextReplace:/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,blockquoteSetextReplace2:/^ {0,3}>[ \t]?/gm,listReplaceTabs:/^\t+/,listReplaceNesting:/^ {1,4}(?=( {4})*[^ ])/g,listIsTask:/^\[[ xX]\] /,listReplaceTask:/^\[[ xX]\] +/,anyLine:/\n.*\n/,hrefBrackets:/^<(.*)>$/,tableDelimiter:/[:|]/,tableAlignChars:/^\||\| *$/g,tableRowBlankLine:/\n[ \t]*$/,tableAlignRight:/^ *-+: *$/,tableAlignCenter:/^ *:-+: *$/,tableAlignLeft:/^ *:-+ *$/,startATag:/^<a /i,endATag:/^<\/a>/i,startPreScriptTag:/^<(pre|code|kbd|script)(\s|>)/i,endPreScriptTag:/^<\/(pre|code|kbd|script)(\s|>)/i,startAngleBracket:/^</,endAngleBracket:/>$/,pedanticHrefTitle:/^([^'"]*[^\s])\s+(['"])(.*)\2/,unicodeAlphaNumeric:/[\p{L}\p{N}]/u,escapeTest:/[&<>"']/,escapeReplace:/[&<>"']/g,escapeTestNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,escapeReplaceNoEncode:/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/g,unescapeTest:/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig,caret:/(^|[^\[])\^/g,percentDecode:/%25/g,findPipe:/\|/g,splitPipe:/ \|/,slashPipe:/\\\|/g,carriageReturn:/\r\n|\r/g,spaceLine:/^ +$/gm,notSpaceStart:/^\S*/,endingNewline:/\n$/,listItemRegex:e=>RegExp(`^( {0,3}${e})((?:[	 ][^\\n]*)?(?:\\n|$))`),nextBulletRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ 	][^\\n]*)?(?:\\n|$))`),hrRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),fencesBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}(?:\`\`\`|~~~)`),headingBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}#`),htmlBeginRegex:e=>RegExp(`^ {0,${Math.min(3,e-1)}}<(?:[a-z].*>|!--)`,"i")},x5=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,x3=/(?:[*+-]|\d{1,9}[.)])/,x6=/^(?!bull |blockCode|fences|blockquote|heading|html|table)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html|table))+?)\n {0,3}(=+|-+) *(?:\n+|$)/,x7=x1(x6).replace(/bull/g,x3).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/\|table/g,"").getRegex(),x8=x1(x6).replace(/bull/g,x3).replace(/blockCode/g,/(?: {4}| {0,3}\t)/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).replace(/table/g,/ {0,3}\|?(?:[:\- ]*\|)+[\:\- ]*\n/).getRegex(),x9=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,ve=/(?!\s*\])(?:\\[\s\S]|[^\[\]\\])+/,vt=x1(/^ {0,3}\[(label)\]: *(?:\n[ \t]*)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n[ \t]*)?| *\n[ \t]*)(title))? *(?:\n+|$)/).replace("label",ve).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),vn=x1(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,x3).getRegex(),vr="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|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",vi=/<!--(?:-?>|[\s\S]*?(?:-->|$))/,va=x1("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>
298)[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n[ 	]*)+\\n|$))","i").replace("comment",vi).replace("tag",vr).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),vo=x1(x9).replace("hr",x5).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vr).getRegex(),vs={blockquote:x1(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",vo).getRegex(),code:/^((?: {4}| {0,3}\t)[^\n]+(?:\n(?:[ \t]*(?:\n|$))*)?)+/,def:vt,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:x5,html:va,lheading:x7,list:vn,newline:/^(?:[ \t]*(?:\n|$))+/,paragraph:vo,table:x0,text:/^[^\n]+/},vl=x1("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",x5).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code","(?: {4}| {0,3}	)[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vr).getRegex(),vu={...vs,lheading:x8,table:vl,paragraph:x1(x9).replace("hr",x5).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",vl).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html","</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag",vr).getRegex()},vc={...vs,html:x1(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment",vi).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:x0,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:x1(x9).replace("hr",x5).replace("heading",` *#{1,6} *[^
299]`).replace("lheading",x7).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},vd=/^( {2,}|\\)\n(?!\s*$)/,vp=/[\p{P}\p{S}]/u,vh=/[\s\p{P}\p{S}]/u,vm=/[^\s\p{P}\p{S}]/u,vf=x1(/^((?![*_])punctSpace)/,"u").replace(/punctSpace/g,vh).getRegex(),vg=/(?!~)[\p{P}\p{S}]/u,vx=x1(/link|precode-code|html/,"g").replace("link",/\[(?:[^\[\]`]|(?<a>`+)[^`]+\k<a>(?!`))*?\]\((?:\\[\s\S]|[^\\\(\)]|\((?:\\[\s\S]|[^\\\(\)])*\))*\)/).replace("precode-",x2?"(?<!`)()":"(^^|[^`])").replace("code",/(?<b>`+)[^`]+\k<b>(?!`)/).replace("html",/<(?! )[^<>]*?>/).getRegex(),vv=/^(?:\*+(?:((?!\*)punct)|[^\s*]))|^_+(?:((?!_)punct)|([^\s_]))/,vy=x1(vv,"u").replace(/punct/g,vp).getRegex(),vb=x1(vv,"u").replace(/punct/g,vg).getRegex(),vw="^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)punct(\\*+)(?=[\\s]|$)|notPunctSpace(\\*+)(?!\\*)(?=punctSpace|$)|(?!\\*)punctSpace(\\*+)(?=notPunctSpace)|[\\s](\\*+)(?!\\*)(?=punct)|(?!\\*)punct(\\*+)(?!\\*)(?=punct)|notPunctSpace(\\*+)(?=notPunctSpace)",vk=x1(vw,"gu").replace(/notPunctSpace/g,vm).replace(/punctSpace/g,vh).replace(/punct/g,vp).getRegex(),v_=x1(vw,"gu").replace(/notPunctSpace/g,/(?:[^\s\p{P}\p{S}]|~)/u).replace(/punctSpace/g,/(?!~)[\s\p{P}\p{S}]/u).replace(/punct/g,vg).getRegex(),vT=x1("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)punct(_+)(?=[\\s]|$)|notPunctSpace(_+)(?!_)(?=punctSpace|$)|(?!_)punctSpace(_+)(?=notPunctSpace)|[\\s](_+)(?!_)(?=punct)|(?!_)punct(_+)(?!_)(?=punct)","gu").replace(/notPunctSpace/g,vm).replace(/punctSpace/g,vh).replace(/punct/g,vp).getRegex(),vE=x1(/\\(punct)/,"gu").replace(/punct/g,vp).getRegex(),vS=x1(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[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])?)+(?![-_])/).getRegex(),vA=x1(vi).replace("(?:-->|$)","-->").getRegex(),vC=x1("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment",vA).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),vN=/(?:\[(?:\\[\s\S]|[^\[\]\\])*\]|\\[\s\S]|`+[^`]*?`+(?!`)|[^\[\]\\`])*?/,vI=x1(/^!?\[(label)\]\(\s*(href)(?:(?:[ \t]*(?:\n[ \t]*)?)(title))?\s*\)/).replace("label",vN).replace("href",/<(?:\\.|[^\n<>\\])+>|[^ \t\n\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),vM=x1(/^!?\[(label)\]\[(ref)\]/).replace("label",vN).replace("ref",ve).getRegex(),vP=x1(/^!?\[(ref)\](?:\[\])?/).replace("ref",ve).getRegex(),vR=x1("reflink|nolink(?!\\()","g").replace("reflink",vM).replace("nolink",vP).getRegex(),vD=/[hH][tT][tT][pP][sS]?|[fF][tT][pP]/,vL={_backpedal:x0,anyPunctuation:vE,autolink:vS,blockSkip:vx,br:vd,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:x0,emStrongLDelim:vy,emStrongRDelimAst:vk,emStrongRDelimUnd:vT,escape:/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,link:vI,nolink:vP,punctuation:vf,reflink:vM,reflinkSearch:vR,tag:vC,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/,url:x0},vO={...vL,link:x1(/^!?\[(label)\]\((.*?)\)/).replace("label",vN).getRegex(),reflink:x1(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label",vN).getRegex()},vB={...vL,emStrongRDelimAst:v_,emStrongLDelim:vb,url:x1(/^((?:protocol):\/\/|www\.)(?:[a-zA-Z0-9\-]+\.?)+[^\s<]*|^email/).replace("protocol",vD).replace("email",/[A-Za-z0-9._+-]+(@)[a-zA-Z0-9-_]+(?:\.[a-zA-Z0-9-_]*[a-zA-Z0-9])+(?![-_])/).getRegex(),_backpedal:/(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,del:/^(~~?)(?=[^\s~])((?:\\[\s\S]|[^\\])*?(?:\\[\s\S]|[^\s~\\]))\1(?=[^~]|$)/,text:x1(/^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|protocol:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/).replace("protocol",vD).getRegex()},vj={...vB,br:x1(vd).replace("{2,}","*").getRegex(),text:x1(vB.text).replace("\\b_","\\b_| {2,}\\n").replace(/\{2,\}/g,"*").getRegex()},vz={normal:vs,gfm:vu,pedantic:vc},vF={normal:vL,gfm:vB,breaks:vj,pedantic:vO},vH={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},vU=e=>vH[e];function vG(e,t){if(t){if(x4.escapeTest.test(e))return e.replace(x4.escapeReplace,vU)}else if(x4.escapeTestNoEncode.test(e))return e.replace(x4.escapeReplaceNoEncode,vU);return e}function vq(e){try{e=encodeURI(e).replace(x4.percentDecode,"%")}catch{return null}return e}function vV(e,t){var n;let i=e.replace(x4.findPipe,(e,t,n)=>{let i=!1,a=t;for(;--a>=0&&"\\"===n[a];)i=!i;return i?"|":" |"}).split(x4.splitPipe),a=0;if(i[0].trim()||i.shift(),i.length>0&&!(null!=(n=i.at(-1))&&n.trim())&&i.pop(),t){if(i.length>t)i.splice(t);else for(;i.length<t;)i.push("")}for(;a<i.length;a++)i[a]=i[a].trim().replace(x4.slashPipe,"|");return i}function vW(e,t,n){let i=e.length;if(0===i)return"";let a=0;for(;a<i&&e.charAt(i-a-1)===t;)a++;return e.slice(0,i-a)}function vY(e,t,n,i,a){let o=t.href,s=t.title||null,l=e[1].replace(a.other.outputLinkReplace,"$1");i.state.inLink=!0;let u={type:"!"===e[0].charAt(0)?"image":"link",raw:n,href:o,title:s,text:l,tokens:i.inl
299ineTokens(l)};return i.state.inLink=!1,u}var vK,vX,vQ,vZ,v$,vJ,v0,v1,v2,v4,v5,v3,v6,v7,v8,v9,ye,yt,yn,yr,yi,ya,yo,ys,yl,yu,yc,yd,yp,yh,ym,yf,yg,yx=class{constructor(e){B(this,"options"),B(this,"rules"),B(this,"lexer"),this.options=e||xJ}space(e){let t=this.rules.block.newline.exec(e);if(t&&t[0].length>0)return{type:"space",raw:t[0]}}code(e){let t=this.rules.block.code.exec(e);if(t){let e=t[0].replace(this.rules.other.codeRemoveIndent,"");return{type:"code",raw:t[0],codeBlockStyle:"indented",text:this.options.pedantic?e:vW(e,`
300`)}}}fences(e){let t=this.rules.block.fences.exec(e);if(t){let e=t[0],n=function(e,t,n){let i=e.match(n.other.indentCodeCompensation);if(null===i)return t;let a=i[1];return t.split(`
301`).map(e=>{let t=e.match(n.other.beginningSpace);if(null===t)return e;let[i]=t;return i.length>=a.length?e.slice(a.length):e}).join(`
302`)}(e,t[3]||"",this.rules);return{type:"code",raw:e,lang:t[2]?t[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):t[2],text:n}}}heading(e){let t=this.rules.block.heading.exec(e);if(t){let e=t[2].trim();if(this.rules.other.endingHash.test(e)){let t=vW(e,"#");(this.options.pedantic||!t||this.rules.other.endingSpaceChar.test(t))&&(e=t.trim())}return{type:"heading",raw:t[0],depth:t[1].length,text:e,tokens:this.lexer.inline(e)}}}hr(e){let t=this.rules.block.hr.exec(e);if(t)return{type:"hr",raw:vW(t[0],`
303`)}}blockquote(e){let t=this.rules.block.blockquote.exec(e);if(t){let e=vW(t[0],`
304`).split(`
305`),n="",i="",a=[];for(;e.length>0;){let t=!1,o=[],s;for(s=0;s<e.length;s++)if(this.rules.other.blockquoteStart.test(e[s]))o.push(e[s]),t=!0;else if(t)break;else o.push(e[s]);e=e.slice(s);let l=o.join(`
306`),u=l.replace(this.rules.other.blockquoteSetextReplace,`
307    $1`).replace(this.rules.other.blockquoteSetextReplace2,"");n=n?`${n}
308${l}`:l,i=i?`${i}
309${u}`:u;let c=this.lexer.state.top;if(this.lexer.state.top=!0,this.lexer.blockTokens(u,a,!0),this.lexer.state.top=c,0===e.length)break;let d=a.at(-1);if((null==d?void 0:d.type)==="code")break;if((null==d?void 0:d.type)==="blockquote"){let t=d.raw+`
310`+e.join(`
311`),o=this.blockquote(t);a[a.length-1]=o,n=n.substring(0,n.length-d.raw.length)+o.raw,i=i.substring(0,i.length-d.text.length)+o.text;break}if((null==d?void 0:d.type)==="list"){let t=d.raw+`
312`+e.join(`
313`),o=this.list(t);a[a.length-1]=o,n=n.substring(0,n.length-d.raw.length)+o.raw,i=i.substring(0,i.length-d.raw.length)+o.raw,e=t.substring(a.at(-1).raw.length).split(`
314`);continue}}return{type:"blockquote",raw:n,tokens:a,text:i}}}list(e){let t=this.rules.block.list.exec(e);if(t){let n=t[1].trim(),i=n.length>1,a={type:"list",raw:"",ordered:i,start:i?+n.slice(0,-1):"",loose:!1,items:[]};n=i?`\\d{1,9}\\${n.slice(-1)}`:`\\${n}`,this.options.pedantic&&(n=i?n:"[*+-]");let o=this.rules.other.listItemRegex(n),s=!1;for(;e;){let n=!1,i="",l="";if(!(t=o.exec(e))||this.rules.block.hr.test(e))break;i=t[0],e=e.substring(i.length);let u=t[2].split(`
315`,1)[0].replace(this.rules.other.listReplaceTabs,e=>" ".repeat(3*e.length)),c=e.split(`
316`,1)[0],d=!u.trim(),p=0;if(this.options.pedantic?(p=2,l=u.trimStart()):d?p=t[1].length+1:(p=(p=t[2].search(this.rules.other.nonSpaceChar))>4?1:p,l=u.slice(p),p+=t[1].length),d&&this.rules.other.blankLine.test(c)&&(i+=c+`
317`,e=e.substring(c.length+1),n=!0),!n){let t=this.rules.other.nextBulletRegex(p),n=this.rules.other.hrRegex(p),a=this.rules.other.fencesBeginRegex(p),o=this.rules.other.headingBeginRegex(p),s=this.rules.other.htmlBeginRegex(p);for(;e;){let h=e.split(`
318`,1)[0],m;if(c=h,m=this.options.pedantic?c=c.replace(this.rules.other.listReplaceNesting,"  "):c.replace(this.rules.other.tabCharGlobal,"    "),a.test(c)||o.test(c)||s.test(c)||t.test(c)||n.test(c))break;if(m.search(this.rules.other.nonSpaceChar)>=p||!c.trim())l+=`
319`+m.slice(p);else{if(d||u.replace(this.rules.other.tabCharGlobal,"    ").search(this.rules.other.nonSpaceChar)>=4||a.test(u)||o.test(u)||n.test(u))break;l+=`
320`+c}d||c.trim()||(d=!0),i+=h+`
321`,e=e.substring(h.length+1),u=m.slice(p)}}a.loose||(s?a.loose=!0:this.rules.other.doubleBlankLine.test(i)&&(s=!0));let h=null,m;this.options.gfm&&(h=this.rules.other.listIsTask.exec(l))&&(m="[ ] "!==h[0],l=l.replace(this.rules.other.listReplaceTask,"")),a.items.push({type:"list_item",raw:i,task:!!h,checked:m,loose:!1,text:l,tokens:[]}),a.raw+=i}let l=a.items.at(-1);if(!l)return;l.raw=l.raw.trimEnd(),l.text=l.text.trimEnd(),a.raw=a.raw.trimEnd();for(let e=0;e<a.items.length;e++)if(this.lexer.state.top=!1,a.items[e].tokens=this.lexer.blockTokens(a.items[e].text,[]),!a.loose){let t=a.items[e].tokens.filter(e=>
vendor: 6,825 bytes, lines 321-324
321"space"===e.type),n=t.length>0&&t.some(e=>this.rules.other.anyLine.test(e.raw));a.loose=n}if(a.loose)for(let e=0;e<a.items.length;e++)a.items[e].loose=!0;return a}}html(e){let t=this.rules.block.html.exec(e);if(t)return{type:"html",block:!0,raw:t[0],pre:"pre"===t[1]||"script"===t[1]||"style"===t[1],text:t[0]}}def(e){let t=this.rules.block.def.exec(e);if(t){let e=t[1].toLowerCase().replace(this.rules.other.multipleSpaceGlobal," "),n=t[2]?t[2].replace(this.rules.other.hrefBrackets,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",i=t[3]?t[3].substring(1,t[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):t[3];return{type:"def",tag:e,raw:t[0],href:n,title:i}}}table(e){var t;let n=this.rules.block.table.exec(e);if(!n||!this.rules.other.tableDelimiter.test(n[2]))return;let i=vV(n[1]),a=n[2].replace(this.rules.other.tableAlignChars,"").split("|"),o=null!=(t=n[3])&&t.trim()?n[3].replace(this.rules.other.tableRowBlankLine,"").split(`
322`):[],s={type:"table",raw:n[0],header:[],align:[],rows:[]};if(i.length===a.length){for(let e of a)this.rules.other.tableAlignRight.test(e)?s.align.push("right"):this.rules.other.tableAlignCenter.test(e)?s.align.push("center"):this.rules.other.tableAlignLeft.test(e)?s.align.push("left"):s.align.push(null);for(let e=0;e<i.length;e++)s.header.push({text:i[e],tokens:this.lexer.inline(i[e]),header:!0,align:s.align[e]});for(let e of o)s.rows.push(vV(e,s.header.length).map((e,t)=>({text:e,tokens:this.lexer.inline(e),header:!1,align:s.align[t]})));return s}}lheading(e){let t=this.rules.block.lheading.exec(e);if(t)return{type:"heading",raw:t[0],depth:"="===t[2].charAt(0)?1:2,text:t[1],tokens:this.lexer.inline(t[1])}}paragraph(e){let t=this.rules.block.paragraph.exec(e);if(t){let e=t[1].charAt(t[1].length-1)===`
323`?t[1].slice(0,-1):t[1];return{type:"paragraph",raw:t[0],text:e,tokens:this.lexer.inline(e)}}}text(e){let t=this.rules.block.text.exec(e);if(t)return{type:"text",raw:t[0],text:t[0],tokens:this.lexer.inline(t[0])}}escape(e){let t=this.rules.inline.escape.exec(e);if(t)return{type:"escape",raw:t[0],text:t[1]}}tag(e){let t=this.rules.inline.tag.exec(e);if(t)return!this.lexer.state.inLink&&this.rules.other.startATag.test(t[0])?this.lexer.state.inLink=!0:this.lexer.state.inLink&&this.rules.other.endATag.test(t[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&this.rules.other.startPreScriptTag.test(t[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&this.rules.other.endPreScriptTag.test(t[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:t[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:t[0]}}link(e){let t=this.rules.inline.link.exec(e);if(t){let e=t[2].trim();if(!this.options.pedantic&&this.rules.other.startAngleBracket.test(e)){if(!this.rules.other.endAngleBracket.test(e))return;let t=vW(e.slice(0,-1),"\\");if((e.length-t.length)%2==0)return}else{let e=function(e,t){if(-1===e.indexOf(")"))return -1;let n=0;for(let t=0;t<e.length;t++)if("\\"===e[t])t++;else if("("===e[t])n++;else if(")"===e[t]&&--n<0)return t;return n>0?-2:-1}(t[2],"()");if(-2===e)return;if(e>-1){let n=(0===t[0].indexOf("!")?5:4)+t[1].length+e;t[2]=t[2].substring(0,e),t[0]=t[0].substring(0,n).trim(),t[3]=""}}let n=t[2],i="";if(this.options.pedantic){let e=this.rules.other.pedanticHrefTitle.exec(n);e&&(n=e[1],i=e[3])}else i=t[3]?t[3].slice(1,-1):"";return n=n.trim(),this.rules.other.startAngleBracket.test(n)&&(n=this.options.pedantic&&!this.rules.other.endAngleBracket.test(e)?n.slice(1):n.slice(1,-1)),vY(t,{href:n&&n.replace(this.rules.inline.anyPunctuation,"$1"),title:i&&i.replace(this.rules.inline.anyPunctuation,"$1")},t[0],this.lexer,this.rules)}}reflink(e,t){let n;if((n=this.rules.inline.reflink.exec(e))||(n=this.rules.inline.nolink.exec(e))){let e=t[(n[2]||n[1]).replace(this.rules.other.multipleSpaceGlobal," ").toLowerCase()];if(!e){let e=n[0].charAt(0);return{type:"text",raw:e,text:e}}return vY(n,e,n[0],this.lexer,this.rules)}}emStrong(e,t,n=""){let i=this.rules.inline.emStrongLDelim.exec(e);if(!(!i||i[3]&&n.match(this.rules.other.unicodeAlphaNumeric))&&(!(i[1]||i[2])||!n||this.rules.inline.punctuation.exec(n))){let n=[...i[0]].length-1,a,o,s=n,l=0,u="*"===i[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(u.lastIndex=0,t=t.slice(-1*e.length+n);null!=(i=u.exec(t));){if(!(a=i[1]||i[2]||i[3]||i[4]||i[5]||i[6]))continue;if(o=[...a].length,i[3]||i[4]){s+=o;continue}if((i[5]||i[6])&&n%3&&!((n+o)%3)){l+=o;continue}if((s-=o)>0)continue;o=Math.min(o,o+s+l);let t=[...i[0]][0].length,u=e.slice(0,n+i.index+t+o);if(Math.min(n,o)%2){let e=u.slice(1,-1);return{type:"em",raw:u,text:e,tokens:this.lexer.inlineTokens(e)}}let c=u.slice(2,-2);return{type:"strong",raw:u,text:c,tokens:this.lexer.inlineTokens(c)}}}}codespan(e){let t=this.rules.inline.code.exec(e);if(t){let e=t[2].replace(this.rules.other.newLineCharGlobal," "),n=this.rules.other.nonSpaceChar.test(e),i=this.rules.other.startingSpaceChar.test(e)&&this.rules.other.endingSpaceChar.test(e);return n&&i&&(e=e.substring(1,e.length-1)),{type:"codespan",raw:t[0],text:e}}}br(e){let t=this.rules.inline.br.exec(e);if(t)return{type:"br",raw:t[0]}}del(e){let t=this.rules.inline.del.exec(e);if(t)return{type:"del",raw:t[0],text:t[2],tokens:this.lexer.inlineTokens(t[2])}}autolink(e){let t=this.rules.inline.autolink.exec(e);if(t){let e,n;return n="@"===t[2]?"mailto:"+(e=t[1]):e=t[1],{type:"link",raw:t[0],text:e,href:n,tokens:[{type:"text",raw:e,text:e}]}}}url(e){var t;let n;if(n=this.rules.inline.url.exec(e)){let e,i;if("@"===n[2])i="mailto:"+(e=n[0]);else{let a;do a=n[0],n[0]=(null==(t=this.rules.inline._backpedal.exec(n[0]))?void 0:t[0])??"";while(a!==n[0]);e=n[0],i="www."===n[1]?"http://"+n[0]:n[0]}return{type:"link",raw:n[0],text:e,href:i,tokens:[{type:"text",raw:e,text:e}]}}}inlineText(e){let t=this.rules.inline.text.exec(e);if(t){let e=this.lexer.state.inRawBlock;return{type:"text",raw:t[0],text:t[0],escaped:e}}}},yv=class e{constructor(e){B(this,"tokens"),B(this,"options"),B(this,"state"),B(this,"tokenizer"),B(this,"inlineQueue"),this.tokens=[],this.tokens.links=Object.create(null),this.options=e||xJ,this.options.tokenizer=this.options.tokenizer||new yx,this.tokenizer=this.options.tokenizer,this.tokenizer.options=this.options,this.tokenizer.lexer=this,this.inlineQueue=[],this.state={inLink:!1,inRawBlock:!1,top:!0};let t={other:x4,block:vz.normal,inline:vF.normal};this.options.pedantic?(t.block=vz.pedantic,t.inline=vF.pedantic):this.options.gfm&&(t.block=vz.gfm,this.options.breaks?t.inline=vF.breaks:t.inline=vF.gfm),this.tokenizer.rules=t}static get rules(){return{block:vz,inline:vF}}static lex(t,n){return new e(n).lex(t)}static lexInline(t,n){return new e(n).inlineTokens(t)}lex(e){e=e.replace(x4.carriageReturn,`
324`),this.blockTokens(e,this.tokens);for(let e=0;
324e<this.inlineQueue.length;e++){let t=this.inlineQueue[e];this.inlineTokens(t.src,t.tokens)}return this.inlineQueue=[],this.tokens}blockTokens(e,t=[],n=!1){var i,a,o;for(this.options.pedantic&&(e=e.replace(x4.tabCharGlobal,"    ").replace(x4.spaceLine,""));e;){let s;if(null!=(a=null==(i=this.options.extensions)?void 0:i.block)&&a.some(n=>!!(s=n.call({lexer:this},e,t))&&(e=e.substring(s.raw.length),t.push(s),!0)))continue;if(s=this.tokenizer.space(e)){e=e.substring(s.raw.length);let n=t.at(-1);1===s.raw.length&&void 0!==n?n.raw+=`
325`:t.push(s);continue}if(s=this.tokenizer.code(e)){e=e.substring(s.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith(`
326`)?"":`
327`)+s.raw,n.text+=`
328`+s.text,this.inlineQueue.at(-1).src=n.text):t.push(s);continue}if((s=this.tokenizer.fences(e))||(s=this.tokenizer.heading(e))||(s=this.tokenizer.hr(e))||(s=this.tokenizer.blockquote(e))||(s=this.tokenizer.list(e))||(s=this.tokenizer.html(e))){e=e.substring(s.raw.length),t.push(s);continue}if(s=this.tokenizer.def(e)){e=e.substring(s.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="paragraph"||(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith(`
329`)?"":`
330`)+s.raw,n.text+=`
331`+s.raw,this.inlineQueue.at(-1).src=n.text):this.tokens.links[s.tag]||(this.tokens.links[s.tag]={href:s.href,title:s.title},t.push(s));continue}if((s=this.tokenizer.table(e))||(s=this.tokenizer.lheading(e))){e=e.substring(s.raw.length),t.push(s);continue}let l=e;if(null!=(o=this.options.extensions)&&o.startBlock){let t=1/0,n=e.slice(1),i;this.options.extensions.startBlock.forEach(e=>{"number"==typeof(i=e.call({lexer:this},n))&&i>=0&&(t=Math.min(t,i))}),t<1/0&&t>=0&&(l=e.substring(0,t+1))}if(this.state.top&&(s=this.tokenizer.paragraph(l))){let i=t.at(-1);n&&(null==i?void 0:i.type)==="paragraph"?(i.raw+=(i.raw.endsWith(`
332`)?"":`
333`)+s.raw,i.text+=`
334`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=i.text):t.push(s),n=l.length!==e.length,e=e.substring(s.raw.length);continue}if(s=this.tokenizer.text(e)){e=e.substring(s.raw.length);let n=t.at(-1);(null==n?void 0:n.type)==="text"?(n.raw+=(n.raw.endsWith(`
335`)?"":`
336`)+s.raw,n.text+=`
337`+s.text,this.inlineQueue.pop(),this.inlineQueue.at(-1).src=n.text):t.push(s);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return this.state.top=!0,t}inline(e,t=[]){return this.inlineQueue.push({src:e,tokens:t}),t}inlineTokens(e,t=[]){var n,i,a,o,s;let l;let u=e,c=null;if(this.tokens.links){let e=Object.keys(this.tokens.links);if(e.length>0)for(;null!=(c=this.tokenizer.rules.inline.reflinkSearch.exec(u));)e.includes(c[0].slice(c[0].lastIndexOf("[")+1,-1))&&(u=u.slice(0,c.index)+"["+"a".repeat(c[0].length-2)+"]"+u.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(c=this.tokenizer.rules.inline.anyPunctuation.exec(u));)u=u.slice(0,c.index)+"++"+u.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;null!=(c=this.tokenizer.rules.inline.blockSkip.exec(u));)l=c[2]?c[2].length:0,u=u.slice(0,c.index+l)+"["+"a".repeat(c[0].length-l-2)+"]"+u.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);u=(null==(i=null==(n=this.options.hooks)?void 0:n.emStrongMask)?void 0:i.call({lexer:this},u))??u;let d=!1,p="";for(;e;){let n;if(d||(p=""),d=!1,null!=(o=null==(a=this.options.extensions)?void 0:a.inline)&&o.some(i=>!!(n=i.call({lexer:this},e,t))&&(e=e.substring(n.raw.length),t.push(n),!0)))continue;if((n=this.tokenizer.escape(e))||(n=this.tokenizer.tag(e))||(n=this.tokenizer.link(e))){e=e.substring(n.raw.length),t.push(n);continue}if(n=this.tokenizer.reflink(e,this.tokens.links)){e=e.substring(n.raw.length);let i=t.at(-1);"text"===n.type&&(null==i?void 0:i.type)==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if((n=this.tokenizer.emStrong(e,u,p))||(n=this.tokenizer.codespan(e))||(n=this.tokenizer.br(e))||(n=this.tokenizer.del(e))||(n=this.tokenizer.autolink(e))||!this.state.inLink&&(n=this.tokenizer.url(e))){e=e.substring(n.raw.length),t.push(n);continue}let i=e;if(null!=(s=this.options.extensions)&&s.startInline){let t=1/0,n=e.slice(1),a;
337this.options.extensions.startInline.forEach(e=>{"number"==typeof(a=e.call({lexer:this},n))&&a>=0&&(t=Math.min(t,a))}),t<1/0&&t>=0&&(i=e.substring(0,t+1))}if(n=this.tokenizer.inlineText(i)){e=e.substring(n.raw.length),"_"!==n.raw.slice(-1)&&(p=n.raw.slice(-1)),d=!0;let i=t.at(-1);(null==i?void 0:i.type)==="text"?(i.raw+=n.raw,i.text+=n.text):t.push(n);continue}if(e){let t="Infinite loop on byte: "+e.charCodeAt(0);if(this.options.silent){console.error(t);break}throw Error(t)}}return t}},yy=class{constructor(e){B(this,"options"),B(this,"parser"),this.options=e||xJ}space(e){return""}code({text:e,lang:t,escaped:n}){var i;let a=null==(i=(t||"").match(x4.notSpaceStart))?void 0:i[0],o=e.replace(x4.endingNewline,"")+`
338`;return a?'<pre><code class="language-'+vG(a)+'">'+(n?o:vG(o,!0))+`</code></pre>
339`:"<pre><code>"+(n?o:vG(o,!0))+`</code></pre>
340`}blockquote({tokens:e}){return`<blockquote>
341${this.parser.parse(e)}</blockquote>
342`}html({text:e}){return e}def(e){return""}heading({tokens:e,depth:t}){return`<h${t}>${this.parser.parseInline(e)}</h${t}>
343`}hr(e){return`<hr>
344`}list(e){let t=e.ordered,n=e.start,i="";for(let t=0;t<e.items.length;t++){let n=e.items[t];i+=this.listitem(n)}let a=t?"ol":"ul";return"<"+a+(t&&1!==n?' start="'+n+'"':"")+`>
345`+i+"</"+a+`>
346`}listitem(e){var t;let n="";if(e.task){let i=this.checkbox({checked:!!e.checked});e.loose?(null==(t=e.tokens[0])?void 0:t.type)==="paragraph"?(e.tokens[0].text=i+" "+e.tokens[0].text,e.tokens[0].tokens&&e.tokens[0].tokens.length>0&&"text"===e.tokens[0].tokens[0].type&&(e.tokens[0].tokens[0].text=i+" "+vG(e.tokens[0].tokens[0].text),e.tokens[0].tokens[0].escaped=!0)):e.tokens.unshift({type:"text",raw:i+" ",text:i+" ",escaped:!0}):n+=i+" "}return n+=this.parser.parse(e.tokens,!!e.loose),`<li>${n}</li>
347`}checkbox({checked:e}){return"<input "+(e?'checked="" ':"")+'disabled="" type="checkbox">'}paragraph({tokens:e}){return`<p>${this.parser.parseInline(e)}</p>
348`}table(e){let t="",n="";for(let t=0;t<e.header.length;t++)n+=this.tablecell(e.header[t]);t+=this.tablerow({text:n});let i="";for(let t=0;t<e.rows.length;t++){let a=e.rows[t];n="";for(let e=0;e<a.length;e++)n+=this.tablecell(a[e]);i+=this.tablerow({text:n})}return i&&(i=`<tbody>${i}</tbody>`),`<table>
349<thead>
350`+t+`</thead>
351`+i+`</table>
352`}tablerow({text:e}){return`<tr>
353${e}</tr>
354`}tablecell(e){let t=this.parser.parseInline(e.tokens),n=e.header?"th":"td";return(e.align?`<${n} align="${e.align}">`:`<${n}>`)+t+`</${n}>
355`}strong({tokens:e}){return`<strong>${this.parser.parseInline(e)}</strong>`}em({tokens:e}){return`<em>${this.parser.parseInline(e)}</em>`}codespan({text:e}){return`<code>${vG(e,!0)}</code>`}br(e){return"<br>"}del({tokens:e}){return`<del>${this.parser.parseInline(e)}</del>`}link({href:e,title:t,tokens:n}){let i=this.parser.parseInline(n),a=vq(e);if(null===a)return i;let o='<a href="'+(e=a)+'"';return t&&(o+=' title="'+vG(t)+'"'),o+=">"+i+"</a>"}image({href:e,title:t,text:n,tokens:i}){i&&(n=this.parser.parseInline(i,this.parser.textRenderer));let a=vq(e);if(null===a)return vG(n);e=a;let o=`<img src="${e}" alt="${n}"`;return t&&(o+=` title="${vG(t)}"`),o+=">"}text(e){return"tokens"in e&&e.tokens?this.parser.parseInline(e.tokens):"escaped"in e&&e.escaped?e.text:vG(e.text)}},yb=class{strong({text:e}){return e}em({text:e}){return e}codespan({text:e}){return e}del({text:e}){return e}html({text:e}){return e}text({text:e}){return e}link({text:e}){return""+e}image({text:e}){return""+e}br(){return""}},yw=class e{constructor(e){B(this,"options"),B(this,"renderer"),B(this,"textRenderer"),this.options=e||xJ,this.options.renderer=this.options.renderer||new yy,this.renderer=this.options.renderer,this.renderer.options=this.options,this.renderer.parser=this,this.textRenderer=new yb}static parse(t,n){return new e(n).parse(t)}static parseInline(t,n){return new e(n).parseInline(t)}parse(e,t=!0){var n,i;let a="";for(let o=0;o<e.length;o++){let s=e[o];if(null!=(i=null==(n=this.options.extensions)?void 0:n.renderers)&&i[s.type]){let e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["space","hr","heading","code","table","blockquote","list","html","def","paragraph","text"].includes(s.type)){a+=e||"";continue}}switch(s.type){case"space":a+=this.renderer.space(s);continue;case"hr":a+=this.renderer.hr(s);continue;case"heading":a+=this.renderer.heading(s);continue;case"code":a+=this.renderer.code(s);continue;case"table":a+=this.renderer.table(s);continue;case"blockquote":a+=this.renderer.blockquote(s);continue;case"list":a+=this.renderer.list(s);continue;case"html":a+=this.renderer.html(s);continue;case"def":a+=this.renderer.def(s);continue;case"paragraph":a+=this.renderer.paragraph(s);continue;case"text":{let n=s,i=this.renderer.text(n);for(;o+1<e.length&&"text"===e[o+1].type;)n=e[++o],i+=`
356`+this.renderer.text(n);t?a+=this.renderer.paragraph({type:"paragraph",raw:i,text:i,tokens:[{type:"text",raw:i,text:i,escaped:!0}]}):a+=i;continue}default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return a}parseInline(e,t=this.renderer){var n,i;let a="";for(let o=0;o<e.length;o++){let s=e[o];if(null!=(i=null==(n=this.options.extensions)?void 0:n.renderers)&&i[s.type]){let e=this.options.extensions.renderers[s.type].call({parser:this},s);if(!1!==e||!["escape","html","link","image","strong","em","codespan","br","del","text"].includes(s.type)){a+=e||"";continue}}switch(s.type){case"escape":case"text":a+=t.text(s);break;case"html":a+=t.html(s);break;case"link":a+=t.link(s);break;case"image":a+=t.image(s);break;case"strong":a+=t.strong(s);break;case"em":a+=t.em(s);break;case"codespan":a+=t.codespan(s);break;case"br":a+=t.br(s);break;case"del":a+=t.del(s);break;default:{let e='Token with "'+s.type+'" type was not found.';if(this.options.silent)return console.error(e),"";throw Error(e)}}}return a}},yk=(yg=class{constructor(e){B(this,"options"),B(this,"block"),this.options=e||xJ}preprocess(e){return e}postprocess(e){return e}processAllTokens(e){return e}emStrongMask(e){return e}provideLexer(){return this.block?yv.lex:yv.lexInline}provideParser(){return this.block?yw.parse:yw.parseInline}},B(yg,"passThroughHooks",new Set(["preprocess","postprocess","processAllTokens","emStrongMask"])),B(yg,"passThroughHooksRespectAsync",new Set(["preprocess","postprocess","processAllTokens"])),yg),y_=new class{constructor(...e){B(this,"defaults",x$()),B(this,"options",this.setOptions),B(this,"parse",this.parseMarkdown(!0)),B(this,"parseInline",this.parseMarkdown(!1)),B(this,"Parser",yw),B(this,"Renderer",yy),B(this,"TextRenderer",yb),B(this,"Lexer",yv),B(this,"Tokenizer",yx),B(this,"Hooks",yk),this.use(...e)}walkTokens(e,t){var n,i;let a=[];for(let o of e)switch(a=a.concat(t.call(this,o)),o.type){case"table":for(let e of o.header)a=a.concat(this.walkTokens(e.tokens,t));for(let e of o.rows)for(let n of e)a=a.concat(this.walkTokens(n.tokens,t));break;case"list":a=a.concat(this.walkTokens(o.items,t));break;default:{let e=o;null!=(i=null==(n=this.defaults.extensions)?void 0:n.childTokens)&&i[e.type]?this.defaults.extensions.childTokens[e.type].forEach(n=>{let i=e[n].flat(1/0);a=a.concat(this.walkTokens(i,t))}):e.tokens&&(a=a.concat(this.walkTokens(e.tokens,t)))}}return a}use(...e){let t=this.defaults.extensions||{renderers:{},childTokens:{}};
356return e.forEach(e=>{let n={...e};if(n.async=this.defaults.async||n.async||!1,e.extensions&&(e.extensions.forEach(e=>{if(!e.name)throw Error("extension name required");if("renderer"in e){let n=t.renderers[e.name];n?t.renderers[e.name]=function(...t){let i=e.renderer.apply(this,t);return!1===i&&(i=n.apply(this,t)),i}:t.renderers[e.name]=e.renderer}if("tokenizer"in e){if(!e.level||"block"!==e.level&&"inline"!==e.level)throw Error("extension level must be 'block' or 'inline'");let n=t[e.level];n?n.unshift(e.tokenizer):t[e.level]=[e.tokenizer],e.start&&("block"===e.level?t.startBlock?t.startBlock.push(e.start):t.startBlock=[e.start]:"inline"===e.level&&(t.startInline?t.startInline.push(e.start):t.startInline=[e.start]))}"childTokens"in e&&e.childTokens&&(t.childTokens[e.name]=e.childTokens)}),n.extensions=t),e.renderer){let t=this.defaults.renderer||new yy(this.defaults);for(let n in e.renderer){if(!(n in t))throw Error(`renderer '${n}' does not exist`);if(["options","parser"].includes(n))continue;let i=e.renderer[n],a=t[n];t[n]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n||""}}n.renderer=t}if(e.tokenizer){let t=this.defaults.tokenizer||new yx(this.defaults);for(let n in e.tokenizer){if(!(n in t))throw Error(`tokenizer '${n}' does not exist`);if(["options","rules","lexer"].includes(n))continue;let i=e.tokenizer[n],a=t[n];t[n]=(...e)=>{let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.tokenizer=t}if(e.hooks){let t=this.defaults.hooks||new yk;for(let n in e.hooks){if(!(n in t))throw Error(`hook '${n}' does not exist`);if(["options","block"].includes(n))continue;let i=e.hooks[n],a=t[n];yk.passThroughHooks.has(n)?t[n]=e=>{if(this.defaults.async&&yk.passThroughHooksRespectAsync.has(n))return(async()=>{let n=await i.call(t,e);return a.call(t,n)})();let o=i.call(t,e);return a.call(t,o)}:t[n]=(...e)=>{if(this.defaults.async)return(async()=>{let n=await i.apply(t,e);return!1===n&&(n=await a.apply(t,e)),n})();let n=i.apply(t,e);return!1===n&&(n=a.apply(t,e)),n}}n.hooks=t}if(e.walkTokens){let t=this.defaults.walkTokens,i=e.walkTokens;n.walkTokens=function(e){let n=[];return n.push(i.call(this,e)),t&&(n=n.concat(t.call(this,e))),n}}this.defaults={...this.defaults,...n}}),this}setOptions(e){return this.defaults={...this.defaults,...e},this}lexer(e,t){return yv.lex(e,t??this.defaults)}parser(e,t){return yw.parse(e,t??this.defaults)}parseMarkdown(e){return(t,n)=>{let i={...n},a={...this.defaults,...i},o=this.onError(!!a.silent,!!a.async);if(!0===this.defaults.async&&!1===i.async)return o(Error("marked(): The async option was set to true by an extension. Remove async: false from the parse options object to return a Promise."));if(typeof t>"u"||null===t)return o(Error("marked(): input parameter is undefined or null"));if("string"!=typeof t)return o(Error("marked(): input parameter is of type "+Object.prototype.toString.call(t)+", string expected"));if(a.hooks&&(a.hooks.options=a,a.hooks.block=e),a.async)return(async()=>{let n=a.hooks?await a.hooks.preprocess(t):t,i=await (a.hooks?await a.hooks.provideLexer():e?yv.lex:yv.lexInline)(n,a),o=a.hooks?await a.hooks.processAllTokens(i):i;a.walkTokens&&await Promise.all(this.walkTokens(o,a.walkTokens));let s=await (a.hooks?await a.hooks.provideParser():e?yw.parse:yw.parseInline)(o,a);return a.hooks?await a.hooks.postprocess(s):s})().catch(o);try{a.hooks&&(t=a.hooks.preprocess(t));let n=(a.hooks?a.hooks.provideLexer():e?yv.lex:yv.lexInline)(t,a);a.hooks&&(n=a.hooks.processAllTokens(n)),a.walkTokens&&this.walkTokens(n,a.walkTokens);let i=(a.hooks?a.hooks.provideParser():e?yw.parse:yw.parseInline)(n,a);return a.hooks&&(i=a.hooks.postprocess(i)),i}catch(e){return o(e)}}}onError(e,t){return n=>{if(n.message+=`
357Please report this to https://github.com/markedjs/marked.`,e){let e="<p>An error occurred:</p><pre>"+vG(n.message+"",!0)+"</pre>";return t?Promise.resolve(e):e}if(t)return Promise.reject(n);throw n}}};function yT(e,t){return y_.parse(e,t)}yT.options=yT.setOptions=function(e){return y_.setOptions(e),yT.defaults=y_.defaults,xJ=yT.defaults,yT},yT.getDefaults=x$,yT.defaults=xJ,yT.use=function(...e){return y_.use(...e),yT.defaults=y_.defaults,xJ=yT.defaults,yT},yT.walkTokens=function(e,t){return y_.walkTokens(e,t)},yT.parseInline=y_.parseInline,yT.Parser=yw,yT.parser=yw.parse,yT.Renderer=yy,yT.TextRenderer=yb,yT.Lexer=yv,yT.lexer=yv.lex,yT.Tokenizer=yx,yT.Hooks=yk,yT.parse=yT,yT.options,yT.setOptions,yT.use,yT.walkTokens,yT.parseInline,yw.parse,yv.lex;var yE=(...e)=>t7(e$(e)),yS=(e,t,n)=>{let i="string"==typeof t?new Blob([t],{type:n}):t,a=URL.createObjectURL(i),o=document.createElement("a");o.href=a,o.download=e,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL(a)},yA=(0,I.createContext)({code:""}),yC=()=>(0,I.useContext)(yA),yN=({onCopy:e,onError:t,timeout:n=2e3,children:i,className:a,code:o,...s})=>{let[l,u]=(0,I.useState)(!1),c=(0,I.useRef)(0),{code:d}=yC(),{isAnimating:p}=(0,I.useContext)(bO),h=o??d,m=async()=>{var i;if(typeof window>"u"||!(null!=(i=null==navigator?void 0:navigator.clipboard)&&i.writeText)){null==t||t(Error("Clipboard API not available"));return}try{l||(await navigator.clipboard.writeText(h),u(!0),null==e||e(),c.current=window.setTimeout(()=>u(!1),n))}catch(e){null==t||t(e)}};return(0,I.useEffect)(()=>()=>{window.clearTimeout(c.current)},[]),U.jsx("button",{className:yE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-copy-button",disabled:p,onClick:m,title:"Copy Code",type:"button",...s,children:i??U.jsx(l?f7:f8,{size:14})})},yI={"1c":"1c","1c-query":"1cq",abap:"abap","actionscript-3":"as",ada:"ada",adoc:"adoc","angular-html":"html","angular-ts":"ts",apache:"conf",apex:"cls",apl:"apl",applescript:"applescript",ara:"ara",asciidoc:"adoc",asm:"asm",astro:"astro",awk:"awk",ballerina:"bal",bash:"sh",bat:"bat",batch:"bat",be:"be",beancount:"beancount",berry:"berry",bibtex:"bib",bicep:"bicep",blade:"blade.php",bsl:"bsl",c:"c","c#":"cs","c++":"cpp",cadence:"cdc",cairo:"cairo",cdc:"cdc",clarity:"clar",clj:"clj",clojure:"clj","closure-templates":"soy",cmake:"cmake",cmd:"cmd",cobol:"cob",codeowners:"CODEOWNERS",codeql:"ql",coffee:"coffee",coffeescript:"coffee","common-lisp":"lisp",console:"sh",coq:"v",cpp:"cpp",cql:"cql",crystal:"cr",cs:"cs",csharp:"cs",css:"css",csv:"csv",cue:"cue",cypher:"cql",d:"d",dart:"dart",da
357x:"dax",desktop:"desktop",diff:"diff",docker:"dockerfile",dockerfile:"dockerfile",dotenv:"env","dream-maker":"dm",edge:"edge",elisp:"el",elixir:"ex",elm:"elm","emacs-lisp":"el",erb:"erb",erl:"erl",erlang:"erl",f:"f","f#":"fs",f03:"f03",f08:"f08",f18:"f18",f77:"f77",f90:"f90",f95:"f95",fennel:"fnl",fish:"fish",fluent:"ftl",for:"for","fortran-fixed-form":"f","fortran-free-form":"f90",fs:"fs",fsharp:"fs",fsl:"fsl",ftl:"ftl",gdresource:"tres",gdscript:"gd",gdshader:"gdshader",genie:"gs",gherkin:"feature","git-commit":"gitcommit","git-rebase":"gitrebase",gjs:"js",gleam:"gleam","glimmer-js":"js","glimmer-ts":"ts",glsl:"glsl",gnuplot:"plt",go:"go",gql:"gql",graphql:"graphql",groovy:"groovy",gts:"gts",hack:"hack",haml:"haml",handlebars:"hbs",haskell:"hs",haxe:"hx",hbs:"hbs",hcl:"hcl",hjson:"hjson",hlsl:"hlsl",hs:"hs",html:"html","html-derivative":"html",http:"http",hxml:"hxml",hy:"hy",imba:"imba",ini:"ini",jade:"jade",java:"java",javascript:"js",jinja:"jinja",jison:"jison",jl:"jl",js:"js",json:"json",json5:"json5",jsonc:"jsonc",jsonl:"jsonl",jsonnet:"jsonnet",jssm:"jssm",jsx:"jsx",julia:"jl",kotlin:"kt",kql:"kql",kt:"kt",kts:"kts",kusto:"kql",latex:"tex",lean:"lean",lean4:"lean",less:"less",liquid:"liquid",lisp:"lisp",lit:"lit",llvm:"ll",log:"log",logo:"logo",lua:"lua",luau:"luau",make:"mak",makefile:"mak",markdown:"md",marko:"marko",matlab:"m",md:"md",mdc:"mdc",mdx:"mdx",mediawiki:"wiki",mermaid:"mmd",mips:"s",mipsasm:"s",mmd:"mmd",mojo:"mojo",move:"move",nar:"nar",narrat:"narrat",nextflow:"nf",nf:"nf",nginx:"conf",nim:"nim",nix:"nix",nu:"nu",nushell:"nu",objc:"m","objective-c":"m","objective-cpp":"mm",ocaml:"ml",pascal:"pas",perl:"pl",perl6:"p6",php:"php",plsql:"pls",po:"po",polar:"polar",postcss:"pcss",pot:"pot",potx:"potx",powerquery:"pq",powershell:"ps1",prisma:"prisma",prolog:"pl",properties:"properties",proto:"proto",protobuf:"proto",ps:"ps",ps1:"ps1",pug:"pug",puppet:"pp",purescript:"purs",py:"py",python:"py",ql:"ql",qml:"qml",qmldir:"qmldir",qss:"qss",r:"r",racket:"rkt",raku:"raku",razor:"cshtml",rb:"rb",reg:"reg",regex:"regex",regexp:"regexp",rel:"rel",riscv:"s",rs:"rs",rst:"rst",ruby:"rb",rust:"rs",sas:"sas",sass:"sass",scala:"scala",scheme:"scm",scss:"scss",sdbl:"sdbl",sh:"sh",shader:"shader",shaderlab:"shader",shell:"sh",shellscript:"sh",shellsession:"sh",smalltalk:"st",solidity:"sol",soy:"soy",sparql:"rq",spl:"spl",splunk:"spl",sql:"sql","ssh-config":"config",stata:"do",styl:"styl",stylus:"styl",svelte:"svelte",swift:"swift","system-verilog":"sv",systemd:"service",talon:"talon",talonscript:"talon",tasl:"tasl",tcl:"tcl",templ:"templ",terraform:"tf",tex:"tex",tf:"tf",tfvars:"tfvars",toml:"toml",ts:"ts","ts-tags":"ts",tsp:"tsp",tsv:"tsv",tsx:"tsx",turtle:"ttl",twig:"twig",typ:"typ",typescript:"ts",typespec:"tsp",typst:"typ",v:"v",vala:"vala",vb:"vb",verilog:"v",vhdl:"vhdl",vim:"vim",viml:"vim",vimscript:"vim",vue:"vue","vue-html":"html","vue-vine":"vine",vy:"vy",vyper:"vy",wasm:"wasm",wenyan:"wy",wgsl:"wgsl",wiki:"wiki",wikitext:"wiki",wit:"wit",wl:"wl",wolfram:"wl",xml:"xml",xsl:"xsl",yaml:"yaml",yml:"yml",zenscript:"zs",zig:"zig",zsh:"zsh",文言:"wy"},yM=({onDownload:e,onError:t,language:n,children:i,className:a,code:o,...s})=>{let{code:l}=yC(),{isAnimating:u}=(0,I.useContext)(bO),c=o??l,d=`file.${n&&n in yI?yI[n]:"txt"}`;return U.jsx("button",{className:yE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),"data-streamdown":"code-block-download-button",disabled:u,onClick:()=>{try{yS(d,c,"text/plain"),null==e||e()}catch(e){null==t||t(e)}},title:"Download file",type:"button",...s,children:i??U.jsx(f9,{size:14})})},yP=()=>U.jsxs("div",{className:"w-full divide-y divide-border overflow-hidden rounded-xl border border-border",children:[U.jsx("div",{className:"h-[46px] w-full bg-muted/80"}),U.jsx("div",{className:"flex w-full items-center justify-center p-4",children:U.jsx(ge,{className:"size-4 animate-spin"})})]}),yR=/\.[^/.]+$/,yD=async e=>{let t={startOnLoad:!1,theme:"default",securityLevel:"strict",fontFamily:"monospace",suppressErrorRendering:!0,...e},i=(await n.e(40084).then(n.bind(n,48713)).then(e=>e.bn)).default;return i.initialize(t),i},yL=(e,t)=>new Promise((t,n)=>{let i="data:image/svg+xml;base64,"+btoa(unescape(encodeURIComponent(e))),a=new Image;a.crossOrigin="anonymous",a.onload=()=>{let e=document.createElement("canvas"),i=5*a.width,o=5*a.height;e.width=i,e.height=o;let s=e.getContext("2d");if(!s){n(Error("Failed to create 2D canvas context for PNG export"));return}s.drawImage(a,0,0,i,o),e.toBlob(e=>{if(!e){n(Error("Failed to create PNG blob"));return}t(e)},"image/png")},a.onerror=()=>n(Error("Failed to load SVG image")),a.src=i}),yO=({chart:e,children:t,className:n,onDownload:i,config:a,onError:o})=>{let[s,l]=(0,I.useState)(!1),u=(0,I.useRef)(null),{isAnimating:c}=(0,I.useContext)(bO),d=async t=>{try{if("mmd"===t){yS("diagram.mmd",e,"text/plain"),l(!1),null==i||i(t);return}let n=await yD(a),s=e.split("").reduce((e,t)=>
357(e<<5)-e+t.charCodeAt(0)|0,0),u=`mermaid-${Math.abs(s)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:c}=await n.render(u,e);if(!c){null==o||o(Error("SVG not found. Please wait for the diagram to render."));return}if("svg"===t){yS("diagram.svg",c,"image/svg+xml"),l(!1),null==i||i(t);return}if("png"===t){let e=await yL(c);yS("diagram.png",e,"image/png"),null==i||i(t),l(!1);return}}catch(e){null==o||o(e)}};return(0,I.useEffect)(()=>{let e=e=>{u.current&&!u.current.contains(e.target)&&l(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),U.jsxs("div",{className:"relative",ref:u,children:[U.jsx("button",{className:yE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",n),disabled:c,onClick:()=>l(!s),title:"Download diagram",type:"button",children:t??U.jsx(f9,{size:14})}),s&&U.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("svg"),title:"Download diagram as SVG",type:"button",children:"SVG"}),U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("png"),title:"Download diagram as PNG",type:"button",children:"PNG"}),U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>d("mmd"),title:"Download diagram as MMD",type:"button",children:"MMD"})]})]})},yB=0,yj=()=>{1===(yB+=1)&&(document.body.style.overflow="hidden")},yz=()=>{0===(yB=Math.max(0,yB-1))&&(document.body.style.overflow="")},yF=({chart:e,config:t,onFullscreen:n,onExit:i,className:a,...o})=>{let[s,l]=(0,I.useState)(!1),{isAnimating:u,controls:c}=(0,I.useContext)(bO),d=(()=>{if("boolean"==typeof c)return c;let e=c.mermaid;return!1!==e&&(!0===e||void 0===e||!1!==e.panZoom)})(),p=()=>{l(!s)};return(0,I.useEffect)(()=>{if(s){yj();let e=e=>{"Escape"===e.key&&l(!1)};return document.addEventListener("keydown",e),()=>{document.removeEventListener("keydown",e),yz()}}},[s]),(0,I.useEffect)(()=>{s?null==n||n():i&&i()},[s,n,i]),U.jsxs(U.Fragment,{children:[U.jsx("button",{className:yE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",a),disabled:u,onClick:p,title:"View fullscreen",type:"button",...o,children:U.jsx(gt,{size:14})}),s&&U.jsxs("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-background/95 backdrop-blur-sm",onClick:p,onKeyDown:e=>{"Escape"===e.key&&p()},role:"button",tabIndex:0,children:[U.jsx("button",{className:"absolute top-4 right-4 z-10 rounded-md p-2 text-muted-foreground transition-all hover:bg-muted hover:text-foreground",onClick:p,title:"Exit fullscreen",type:"button",children:U.jsx(gr,{size:20})}),U.jsx("div",{className:"flex h-full w-full items-center justify-center p-4",onClick:e=>e.stopPropagation(),onKeyDown:e=>e.stopPropagation(),role:"presentation",children:U.jsx(bH,{chart:e,className:"h-full w-full [&>div]:h-full [&>div]:overflow-hidden [&_svg]:h-auto [&_svg]:w-auto",config:t,fullscreen:!0,showControls:d})})]})]})},yH=e=>{var t,n;let i=[],a=[];for(let n of e.querySelectorAll("thead th"))i.push((null==(t=n.textContent)?void 0:t.trim())||"");for(let t of e.querySelectorAll("tbody tr")){let e=[];
357for(let i of t.querySelectorAll("td"))e.push((null==(n=i.textContent)?void 0:n.trim())||"");a.push(e)}return{headers:i,rows:a}},yU=e=>{let{headers:t,rows:n}=e,i=e=>{let t=!1,n=!1;for(let i=0;i<e.length;i+=1){let a=e[i];if('"'===a){t=!0,n=!0;break}(","===a||a===`
358`)&&(t=!0)}return t?n?`"${e.replace(/"/g,'""')}"`:`"${e}"`:e},a=Array(t.length>0?n.length+1:n.length),o=0;for(let e of(t.length>0&&(a[o]=t.map(i).join(","),o+=1),n))a[o]=e.map(i).join(","),o+=1;return a.join(`
359`)},yG=e=>{let{headers:t,rows:n}=e,i=e=>{let t=!1;for(let n=0;n<e.length;n+=1){let i=e[n];if("	"===i||i===`
360`||"\r"===i){t=!0;break}}if(!t)return e;let n=[];for(let t=0;t<e.length;t+=1){let i=e[t];"	"===i?n.push("\\t"):i===`
361`?n.push("\\n"):"\r"===i?n.push("\\r"):n.push(i)}return n.join("")},a=Array(t.length>0?n.length+1:n.length),o=0;for(let e of(t.length>0&&(a[o]=t.map(i).join("	"),o+=1),n))a[o]=e.map(i).join("	"),o+=1;return a.join(`
362`)},yq=e=>{let t=!1;for(let n=0;n<e.length;n+=1){let i=e[n];if("\\"===i||"|"===i){t=!0;break}}if(!t)return e;let n=[];for(let t=0;t<e.length;t+=1){let i=e[t];"\\"===i?n.push("\\\\"):"|"===i?n.push("\\|"):n.push(i)}return n.join("")},yV=e=>{let{headers:t,rows:n}=e;if(0===t.length)return"";let i=Array(n.length+2),a=0,o=t.map(e=>yq(e));i[a]=`| ${o.join(" | ")} |`,a+=1;let s=Array(t.length);for(let e=0;e<t.length;e+=1)s[e]="---";for(let e of(i[a]=`| ${s.join(" | ")} |`,a+=1,n))if(e.length<t.length){let n=Array(t.length);for(let i=0;i<t.length;i+=1)n[i]=i<e.length?yq(e[i]):"";i[a]=`| ${n.join(" | ")} |`,a+=1}else{let t=e.map(e=>yq(e));i[a]=`| ${t.join(" | ")} |`,a+=1}return i.join(`
363`)},yW=({children:e,className:t,onCopy:n,onError:i,timeout:a=2e3})=>{let[o,s]=(0,I.useState)(!1),[l,u]=(0,I.useState)(!1),c=(0,I.useRef)(null),d=(0,I.useRef)(0),{isAnimating:p}=(0,I.useContext)(bO),h=async e=>{var t,o;if(typeof window>"u"||!(null!=(t=null==navigator?void 0:navigator.clipboard)&&t.write)){null==i||i(Error("Clipboard API not available"));return}try{let t=null==(o=c.current)?void 0:o.closest('[data-streamdown="table-wrapper"]'),l=null==t?void 0:t.querySelector("table");if(!l){null==i||i(Error("Table not found"));return}let p=yH(l),h="csv"===e?yU(p):yG(p),m=new ClipboardItem({"text/plain":new Blob([h],{type:"text/plain"}),"text/html":new Blob([l.outerHTML],{type:"text/html"})});await navigator.clipboard.write([m]),u(!0),s(!1),null==n||n(e),d.current=window.setTimeout(()=>u(!1),a)}catch(e){null==i||i(e)}};return(0,I.useEffect)(()=>{let e=e=>{c.current&&!c.current.contains(e.target)&&s(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e),window.clearTimeout(d.current)}},[]),U.jsxs("div",{className:"relative",ref:c,children:[U.jsx("button",{className:yE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:p,onClick:()=>s(!o),title:"Copy table",type:"button",children:e??U.jsx(l?f7:f8,{size:14})}),o&&U.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("csv"),title:"Copy table as CSV",type:"button",children:"CSV"}),U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>h("tsv"),title:"Copy table as TSV",type:"button",children:"TSV"})]})]})},yY=({children:e,className:t,onDownload:n,onError:i})=>{let[a,o]=(0,I.useState)(!1),s=(0,I.useRef)(null),{isAnimating:l}=(0,I.useContext)(bO),u=e=>{var t;try{let a=null==(t=s.current)?void 0:t.closest('[data-streamdown="table-wrapper"]'),l=null==a?void 0:a.querySelector("table");if(!l){null==i||i(Error("Table not found"));return}let u=yH(l),c="csv"===e?yU(u):yV(u);yS(`table.${"csv"===e?"csv":"md"}`,c,"csv"===e?"text/csv":"text/markdown"),o(!1),null==n||n(e)}catch(e){null==i||i(e)}};return(0,I.useEffect)(()=>{let e=e=>{s.current&&!s.current.contains(e.target)&&o(!1)};return document.addEventListener("mousedown",e),()=>{document.removeEventListener("mousedown",e)}},[]),U.jsxs("div",{className:"relative",ref:s,children:[U.jsx("button",{className:yE("cursor-pointer p-1 text-muted-foreground transition-all hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",t),disabled:l,onClick:()=>o(!a),title:"Download table",type:"button",children:e??U.jsx(f9,{size:14})}),a&&U.jsxs("div",{className:"absolute top-full right-0 z-10 mt-1 min-w-[120px] overflow-hidden rounded-md border border-border bg-background shadow-lg",children:[U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("csv"),title:"Download table as CSV",type:"button",children:"CSV"}),U.jsx("button",{className:"w-full px-3 py-2 text-left text-sm transition-colors hover:bg-muted/40",onClick:()=>u("markdown"),title:"Download table as Markdown",type:"button",children:"Markdown"})]})]})},yK=({children:e,className:t,showControls:n,...i})=>U.jsxs("div",{className:"my-4 flex flex-col space-y-2","data-streamdown":"table-wrapper",children:[n&&U.jsxs("div",{className:"flex items-center justify-end gap-1",children:[U.jsx(yW,{}),U.jsx(yY,{})]}),U.jsx("div",{className:"overflow-x-auto",children:U.jsx("table",{className:yE("w-full border-collapse border border-border",t),"data-streamdown":"table",...i,children:e})})]}),yX=(0,I.lazy)(()=>n.e(64992).then(n.bind(n,64992)).then(e=>({default:e.CodeBlock}))),yQ=(0,I.lazy)(()=>n.e(20178).then(n.bind(n,20178)).then(e=>({default:e.Mermaid}))),yZ=/language-([^\s]+)/;function y$(e,t){if(!(null!=e&&e.position||null!=t&&t.position))return!0;
363if(!(null!=e&&e.position&&null!=t&&t.position))return!1;let n=e.position.start,i=t.position.start,a=e.position.end,o=t.position.end;return(null==n?void 0:n.line)===(null==i?void 0:i.line)&&(null==n?void 0:n.column)===(null==i?void 0:i.column)&&(null==a?void 0:a.line)===(null==o?void 0:o.line)&&(null==a?void 0:a.column)===(null==o?void 0:o.column)}function yJ(e,t){return e.className===t.className&&y$(e.node,t.node)}var y0=(e,t)=>"boolean"==typeof e?e:!1!==e[t],y1=(e,t)=>{if("boolean"==typeof e)return e;let n=e.mermaid;return!1!==n&&(!0===n||void 0===n||!1!==n[t])},y2=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("ol",{className:yE("list-inside list-decimal whitespace-normal",t),"data-streamdown":"ordered-list",...i,children:e}),(e,t)=>yJ(e,t));y2.displayName="MarkdownOl";var y4=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("li",{className:yE("py-1 [&>p]:inline",t),"data-streamdown":"list-item",...i,children:e}),(e,t)=>e.className===t.className&&y$(e.node,t.node));y4.displayName="MarkdownLi";var y5=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("ul",{className:yE("list-inside list-disc whitespace-normal",t),"data-streamdown":"unordered-list",...i,children:e}),(e,t)=>yJ(e,t));y5.displayName="MarkdownUl";var y3=(0,I.memo)(({className:e,node:t,...n})=>U.jsx("hr",{className:yE("my-6 border-border",e),"data-streamdown":"horizontal-rule",...n}),(e,t)=>yJ(e,t));y3.displayName="MarkdownHr";var y6=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("span",{className:yE("font-semibold",t),"data-streamdown":"strong",...i,children:e}),(e,t)=>yJ(e,t));y6.displayName="MarkdownStrong";var y7=(0,I.memo)(({children:e,className:t,href:n,node:i,...a})=>U.jsx("a",{className:yE("wrap-anywhere font-medium text-primary underline",t),"data-incomplete":"streamdown:incomplete-link"===n,"data-streamdown":"link",href:n,rel:"noreferrer",target:"_blank",...a,children:e}),(e,t)=>yJ(e,t)&&e.href===t.href);y7.displayName="MarkdownA";var y8=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("h1",{className:yE("mt-6 mb-2 font-semibold text-3xl",t),"data-streamdown":"heading-1",...i,children:e}),(e,t)=>yJ(e,t));y8.displayName="MarkdownH1";var y9=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("h2",{className:yE("mt-6 mb-2 font-semibold text-2xl",t),"data-streamdown":"heading-2",...i,children:e}),(e,t)=>yJ(e,t));y9.displayName="MarkdownH2";var be=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("h3",{className:yE("mt-6 mb-2 font-semibold text-xl",t),"data-streamdown":"heading-3",...i,children:e}),(e,t)=>yJ(e,t));be.displayName="MarkdownH3";var bt=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("h4",{className:yE("mt-6 mb-2 font-semibold text-lg",t),"data-streamdown":"heading-4",...i,children:e}),(e,t)=>yJ(e,t));bt.displayName="MarkdownH4";var bn=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("h5",{className:yE("mt-6 mb-2 font-semibold text-base",t),"data-streamdown":"heading-5",...i,children:e}),(e,t)=>yJ(e,t));bn.displayName="MarkdownH5";var br=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("h6",{className:yE("mt-6 mb-2 font-semibold text-sm",t),"data-streamdown":"heading-6",...i,children:e}),(e,t)=>yJ(e,t));br.displayName="MarkdownH6";var bi=(0,I.memo)(({children:e,className:t,node:n,...i})=>{let{controls:a}=(0,I.useContext)(bO),o=y0(a,"table");return U.jsx(yK,{className:t,"data-streamdown":"table-wrapper",showControls:o,...i,children:e})},(e,t)=>yJ(e,t));bi.displayName="MarkdownTable";var ba=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("thead",{className:yE("bg-muted/80",t),"data-streamdown":"table-header",...i,children:e}),(e,t)=>yJ(e,t));ba.displayName="MarkdownThead";var bo=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("tbody",{className:yE("divide-y divide-border bg-muted/40",t),"data-streamdown":"table-body",...i,children:e}),(e,t)=>yJ(e,t));bo.displayName="MarkdownTbody";var bs=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("tr",{className:yE("border-border border-b",t),"data-streamdown":"table-row",...i,children:e}),(e,t)=>yJ(e,t));bs.displayName="MarkdownTr";var bl=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("th",{className:yE("whitespace-nowrap px-4 py-2 text-left font-semibold text-sm",t),"data-streamdown":"table-header-cell",...i,children:e}),(e,t)=>yJ(e,t));bl.displayName="MarkdownTh";var bu=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("td",{className:yE("px-4 py-2 text-sm",t),"data-streamdown":"table-cell",...i,children:e}),(e,t)=>yJ(e,t));bu.displayName="MarkdownTd";var bc=(0,I.memo)(({children:e,className:t,node:n,...i})=>
363U.jsx("blockquote",{className:yE("my-4 border-muted-foreground/30 border-l-4 pl-4 text-muted-foreground italic",t),"data-streamdown":"blockquote",...i,children:e}),(e,t)=>yJ(e,t));bc.displayName="MarkdownBlockquote";var bd=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("sup",{className:yE("text-sm",t),"data-streamdown":"superscript",...i,children:e}),(e,t)=>yJ(e,t));bd.displayName="MarkdownSup";var bp=(0,I.memo)(({children:e,className:t,node:n,...i})=>U.jsx("sub",{className:yE("text-sm",t),"data-streamdown":"subscript",...i,children:e}),(e,t)=>yJ(e,t));bp.displayName="MarkdownSub";var bh=(0,I.memo)(({children:e,className:t,node:n,...i})=>{if("data-footnotes"in i){let n=e=>{var t,n;if(!(0,I.isValidElement)(e))return!1;let i=Array.isArray(e.props.children)?e.props.children:[e.props.children],a=!1,o=!1;for(let e of i)if(e){if("string"==typeof e)""!==e.trim()&&(a=!0);else if((0,I.isValidElement)(e)){if((null==(t=e.props)?void 0:t["data-footnote-backref"])!==void 0)o=!0;else for(let t of Array.isArray(e.props.children)?e.props.children:[e.props.children])if("string"==typeof t&&""!==t.trim()||(0,I.isValidElement)(t)&&(null==(n=t.props)?void 0:n["data-footnote-backref"])===void 0){a=!0;break}}}return o&&!a},a=Array.isArray(e)?e.map(e=>{if(!(0,I.isValidElement)(e))return e;if(e.type===y2){let t=(Array.isArray(e.props.children)?e.props.children:[e.props.children]).filter(e=>!n(e));return 0===t.length?null:{...e,props:{...e.props,children:t}}}return e}):e;return(Array.isArray(a)?a.some(e=>null!==e):null!==a)?U.jsx("section",{className:t,...i,children:a}):null}return U.jsx("section",{className:t,...i,children:e})},(e,t)=>yJ(e,t));bh.displayName="MarkdownSection";var bm=(0,I.memo)(({node:e,className:t,children:n,...i})=>{var a,o,s;let l=(null==(a=null==e?void 0:e.position)?void 0:a.start.line)===(null==(o=null==e?void 0:e.position)?void 0:o.end.line),{mermaid:u,controls:c}=(0,I.useContext)(bO);if(l)return U.jsx("code",{className:yE("rounded bg-muted px-1.5 py-0.5 font-mono text-sm",t),"data-streamdown":"inline-code",...i,children:n});let d=null==t?void 0:t.match(yZ),p=null!=(s=null==d?void 0:d.at(1))?s:"",h="";if((0,I.isValidElement)(n)&&n.props&&"object"==typeof n.props&&"children"in n.props&&"string"==typeof n.props.children?h=n.props.children:"string"==typeof n&&(h=n),"mermaid"===p){let e=y0(c,"mermaid"),n=y1(c,"download"),i=y1(c,"copy"),a=y1(c,"fullscreen"),o=y1(c,"panZoom");return U.jsx(I.Suspense,{fallback:U.jsx(yP,{}),children:U.jsxs("div",{className:yE("group relative my-4 h-auto rounded-xl border p-4",t),"data-streamdown":"mermaid-block",children:[e&&(n||i||a)&&U.jsxs("div",{className:"flex items-center justify-end gap-2",children:[n&&U.jsx(yO,{chart:h,config:null==u?void 0:u.config}),i&&U.jsx(yN,{code:h}),a&&U.jsx(yF,{chart:h,config:null==u?void 0:u.config})]}),U.jsx(yQ,{chart:h,config:null==u?void 0:u.config,showControls:o})]})})}let m=y0(c,"code");return U.jsx(I.Suspense,{fallback:U.jsx(yP,{}),children:U.jsx(yX,{className:yE("overflow-x-auto border-border border-t",t),code:h,language:p,children:m&&U.jsxs(U.Fragment,{children:[U.jsx(yM,{code:h,language:p}),U.jsx(yN,{})]})})})},(e,t)=>e.className===t.className&&y$(e.node,t.node));bm.displayName="MarkdownCode";var bf=(0,I.memo)(({node:e,className:t,src:n,alt:i,...a})=>{let o=async()=>{if(n)try{let e=await (await fetch(n)).blob(),t=new URL(n,window.location.origin).pathname.split("/").pop()||"",a=t.split(".").pop(),o=t.includes(".")&&void 0!==a&&a.length<=4,s="";if(o)s=t;else{let n=e.type,a="png";n.includes("jpeg")||n.includes("jpg")?a="jpg":n.includes("png")?a="png":n.includes("svg")?a="svg":n.includes("gif")?a="gif":n.includes("webp")&&(a="webp"),s=`${(i||t||"image").replace(yR,"")}.${a}`}yS(s,e,e.type)}catch(e){console.error("Failed to download image:",e)}};return n?U.jsxs("div",{className:"group relative my-4 inline-block","data-streamdown":"image-wrapper",children:[U.jsx("img",{alt:i,className:yE("max-w-full rounded-lg",t),"data-streamdown":"image",src:n,...a}),U.jsx("div",{className:"pointer-events-none absolute inset-0 hidden rounded-lg bg-black/10 group-hover:block"}),U.jsx("button",{className:yE("absolute right-2 bottom-2 flex h-8 w-8 cursor-pointer items-center justify-center rounded-md border border-border bg-background/90 shadow-sm backdrop-blur-sm transition-all duration-200 hover:bg-background","opacity-0 group-hover:opacity-100"),onClick:o,title:"Download image",type:"button",children:U.jsx(f9,{size:14})})]}):null},(e,t)=>e.className===t.className&&y$(e.node,t.node));bf.displayName="MarkdownImg";var bg=(0,I.memo)(({children:e,className:t,node:n,...i})=>{var a;let o=(Array.isArray(e)?e:[e]).filter(e=>null!=e&&""!==e);return 1===o.length&&(0,I.isValidElement)(o[0])&&(null==(a=o[0].props.node)?void 0:a.tagName)==="img"?U.jsx(U.Fragment,{children:e}):U.jsx("p",{className:t,...i,children:e})},(e,t)=>yJ(e,t));bg.displayName="MarkdownParagraph";var bx={ol:y2,li:y4,ul:y5,hr:y3,strong:y6,a:y7,h1:y8,h2:y9,h3:be,h4:bt,h5:bn,h6:br,table:bi,thead:ba,tbody:bo,tr:bs,th:bl,td:bu,blockquote:bc,code:bm,img:bf,pre:({children:e})=>e,sup:bd,sub:bp,p:bg,section:bh},bv=[],by={allowDangerousHtml:!0},bb=new WeakMap,bw=new class{constructor(){this.cache=new Map,this.keyCache=new WeakMap,this.maxSize=100}generateCacheKey(e){let t=this.keyCache.get(e);if(t)return t;let n=e.rehypePlugins,i=e.remarkPlugins,a=e.remarkRehypeOptions;if(!(n||i||a)){let t="default";return this.keyCache.set(e,t),t}let o=e=>{if(!e||0===e.length)return"";let t="";for(let n=0;n<e.length;n+=1){let i=e[n];if(n>0&&(t+=","),Array.isArray(i)){let[e,n]=i;if("function"==typeof e){let n=bb.get(e);n||(n=e.name,bb.set(e,n)),t+=n}else t+=String(e);t+=":"+JSON.stringify(n)}else if("function"==typeof i){let e=bb.get(i);e||(e=i.name,bb.set(i,e)),t+=e}else t+=String(i)}return t},s=o(n),l=o(i),u=a?JSON.stringify(a):"",c=`${l}::${s}::${u}`;return this.keyCache.set(e,c),c}get(e){let t=this.generateCacheKey(e),n=this.cache.get(t);return n&&(this.cache.delete(t),this.cache.set(t,n)),n}set(e,t){let n=this.generateCacheKey(e);if(this.cache.size>=this.maxSize){let e=this.cache.keys().next().value;e&&this.cache.delete(e)}this.cache.set(n,t)}clear(){this.cache.clear()}},bk=e=>{let t=b_(e),n=e.children||"";return bE(t.runSync(t.parse(n),n),e)},b_=e=>{let t=bw.get(e);if(t)return t;let n=bT(e);return bw.set(e,n),n},bT=e=>{let t=e.rehypePlugins||bv,n=e.remarkPlugins||bv,i=e.remarkRehypeOptions?{...by,...e.remarkRehypeOptions}:by;return xV().use(xo).use(n).use(xw,i).use(t)},bE=(e,t)=>(function(e,t){var n,i,a;let o;if(!t||void 0===t.Fragment)throw TypeError("Expected `Fragment` in options");let s=t.filePath||void 0;if(t.development){if("function"!=typeof t.jsxDEV)throw TypeError("Expected `jsxDEV` in options when `development: true`");n=t.jsxDEV,o=function(e,t,i,a){let o=Array.isArray(i.children),l=po(e);return n(t,i,a,o,{columnNumber:l?l.column-1:void 0,fileName:s,lineNumber:l?l.line:void 0},void 0)}}else{if("function"!=typeof t.jsx)throw TypeError("Expected `jsx` in production options");
363if("function"!=typeof t.jsxs)throw TypeError("Expected `jsxs` in production options");i=t.jsx,a=t.jsxs,o=function(e,t,n,o){let s=Array.isArray(n.children)?a:i;return o?s(t,n,o):s(t,n)}}let l={Fragment:t.Fragment,ancestors:[],components:t.components||{},create:o,elementAttributeNameCase:t.elementAttributeNameCase||"react",evaluater:t.createEvaluater?t.createEvaluater():void 0,filePath:s,ignoreInvalidStyle:t.ignoreInvalidStyle||!1,passKeys:!1!==t.passKeys,passNode:t.passNode||!1,schema:"svg"===t.space?ab:ay,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:!1!==t.tableCellAlignToStyle},u=gK(l,e,void 0);return u&&"string"!=typeof u?u:l.create(e,l.Fragment,{children:u||void 0},void 0)})(e,{Fragment:U.Fragment,components:t.components,ignoreInvalidStyle:!0,jsx:U.jsx,jsxs:U.jsxs,passKeys:!0,passNode:!0}),bS=/\[\^[^\]\s]{1,200}\](?!:)/,bA=/\[\^[^\]\s]{1,200}\]:/,bC=/<\/(\w+)>/,bN=/<(\w+)[\s>]/,bI=e=>{let t=0;for(;t<e.length&&(" "===e[t]||"	"===e[t]||e[t]===`
364`||"\r"===e[t]);)t+=1;return t+1<e.length&&"$"===e[t]&&"$"===e[t+1]},bM=e=>{let t=e.length-1;for(;t>=0&&(" "===e[t]||"	"===e[t]||e[t]===`
365`||"\r"===e[t]);)t-=1;return t>=1&&"$"===e[t]&&"$"===e[t-1]},bP=e=>{let t=0;for(let n=0;n<e.length-1;n+=1)"$"===e[n]&&"$"===e[n+1]&&(t+=1,n+=1);return t},bR=e=>{let t=bS.test(e),n=bA.test(e);
365if(t||n)return[e];let i=yv.lex(e,{gfm:!0}),a=[],o=[];for(let e of i){let t=e.raw,n=a.length;if(o.length>0){if(a[n-1]+=t,"html"===e.type){let e=t.match(bC);if(e){let t=e[1];o.at(-1)===t&&o.pop()}}continue}if("html"===e.type&&e.block){let e=t.match(bN);if(e){let n=e[1];t.includes(`</${n}>`)||o.push(n)}}if("$$"===t.trim()&&n>0){let e=a[n-1],i=bI(e),o=bP(e);if(i&&o%2==1){a[n-1]=e+t;continue}}if(n>0&&bM(t)){let e=a[n-1],i=bI(e),o=bP(e),s=bP(t);if(i&&o%2==1&&!bI(t)&&1===s){a[n-1]=e+t;continue}}a.push(t)}return a},bD=Object.values({raw:function(e){return function(t,n){return pp(t,{...e,file:n})}},katex:[co,{errorColor:"var(--color-muted-foreground)"}],sanitize:[function(e){return function(t){return function(e,t){let n={type:"root",children:[]},i=pA({schema:t?{...pE,...t}:pE,stack:[]},e);return i&&(Array.isArray(i)?1===i.length?n=i[0]:n.children=i:n=i),n}(t,e)}},{}],harden:[function({defaultOrigin:e="",allowedLinkPrefixes:t=[],allowedImagePrefixes:n=[],allowDataImages:i=!1,allowedProtocols:a=[],blockedImageClass:o="inline-block bg-gray-200 dark:bg-gray-700 text-gray-600 dark:text-gray-400 px-3 py-1 rounded text-sm",blockedLinkClass:s="text-gray-500"}){let l=t.length&&!t.every(e=>"*"===e),u=n.length&&!n.every(e=>"*"===e);if(!e&&(l||u))throw Error("defaultOrigin is required when allowedLinkPrefixes or allowedImagePrefixes are provided");return l=>{iq(l,iQ(e,t,n,i,a,o,s))}},{allowedImagePrefixes:["*"],allowedLinkPrefixes:["*"],allowedProtocols:["*"],defaultOrigin:void 0,allowDataImages:!0}]}),bL=Object.values({gfm:[function(e){let t;let n=e||fn,i=this.data(),a=i.micromarkExtensions||(i.micromarkExtensions=[]),o=i.fromMarkdownExtensions||(i.fromMarkdownExtensions=[]),s=i.toMarkdownExtensions||(i.toMarkdownExtensions=[]);a.push(h7([{text:mo},{document:{91:{name:"gfmFootnoteDefinition",tokenize:m1,continuation:{tokenize:m2},exit:m4}},text:{91:{name:"gfmFootnoteCall",tokenize:m0},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:m$,resolveTo:mJ}}},function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,i){let a=this.previous,o=this.events,s=0;return function(l){return 126===a&&"characterEscape"!==o[o.length-1][1].type?i(l):(e.enter("strikethroughSequenceTemporary"),function o(l){let u=hj(a);if(126===l)return s>1?i(l):(e.consume(l),s++,o);if(s<2&&!t)return i(l);let c=e.exit("strikethroughSequenceTemporary"),d=hj(l);return c._open=!d||2===d&&!!u,c._close=!u||2===u&&!!d,n(l)}(l))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let i=n;for(;i--;)if("exit"===e[i][0]&&"strikethroughSequenceTemporary"===e[i][1].type&&e[i][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[i][1].end.offset-e[i][1].start.offset){e[n][1].type="strikethroughSequence",e[i][1].type="strikethroughSequence";let a={type:"strikethrough",start:Object.assign({},e[i][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",a,t],["enter",e[i][1],t],["exit",e[i][1],t],["enter",o,t]],l=t.parser.constructs.insideSpan.null;l&&hn(s,s.length,0,hi(l,e.slice(i+1,n),t)),hn(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]),hn(e,i-1,n-i+3,s),n=i+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type="data");return e}};return null==t&&(t=!0),{text:{126:n},insideSpan:{null:[n]},attentionMarkers:{null:[126]}}}(n),{flow:{null:{name:"table",tokenize:m3,resolveAll:m6}}},{text:{91:fe}}])),o.push([{transforms:[hg],enter:{literalAutolink:hc,literalAutolinkEmail:hd,literalAutolinkHttp:hd,literalAutolinkWww:hd},exit:{literalAutolink:hf,literalAutolinkEmail:hm,literalAutolinkHttp:hp,literalAutolinkWww:hh}},{enter:{gfmFootnoteCallString:hw,gfmFootnoteCall:hk,gfmFootnoteDefinitionLabelString:h_,gfmFootnoteDefinition:hT},exit:{gfmFootnoteCallString:hE,gfmFootnoteCall:hS,gfmFootnoteDefinitionLabelString:hA,gfmFootnoteDefinition:hC}},{canContainEols:["delete"],enter:{strikethrough:hR},exit:{strikethrough:hD}}
365,{enter:{table:hQ,tableData:h0,tableHeader:h0,tableRow:h$},exit:{codeText:h1,table:hZ,tableData:hJ,tableHeader:hJ,tableRow:hJ}},{exit:{taskListCheckValueChecked:h4,taskListCheckValueUnchecked:h4,paragraph:h5}}]),s.push({extensions:[{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:hl,notInConstruct:hu},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:hl,notInConstruct:hu},{character:":",before:"[ps]",after:"\\/",inConstruct:hl,notInConstruct:hu}]},(t=!1,n&&n.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:function(e,n,i,a){let o=i.createTracker(a),s=o.move("[^"),l=i.enter("footnoteDefinition"),u=i.enter("label");return s+=o.move(i.safe(i.associationId(e),{before:s,after:"]"})),u(),s+=o.move("]:"),e.children&&e.children.length>0&&(o.shift(4),s+=o.move((t?`
366`:" ")+i.indentLines(i.containerFlow(e,o.current()),t?hM:hI))),l(),s},footnoteReference:hN},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]}),{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:hP}],handlers:{delete:hL}},function(e){let t=e||{},n=t.tableCellPadding,i=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
367`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[	 :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:function(e,t,n){let i=hG(e,t,n);return n.stack.includes("tableCell")&&(i=i.replace(/\|/g,"\\$&")),i},table:function(e,t,n,i){return l(function(e,t,n){let i=e.children,a=-1,o=[],s=t.enter("table");for(;++a<i.length;)o[a]=u(i[a],t,n);return s(),o}(e,n,i),e.align)},tableCell:s,tableRow:function(e,t,n,i){let a=l([u(e,n,i)]);return a.slice(0,a.indexOf(`
368`))}}};function s(e,t,n,i){let a=n.enter("tableCell"),s=n.enter("phrasing"),l=n.containerPhrasing(e,{...i,before:o,after:o});return s(),a(),l}function l(e,t){return function(e,t){let n=t||{},i=(n.align||[]).concat(),a=n.stringLength||hO,o=[],s=[],l=[],u=[],c=0,d=-1;for(;++d<e.length;){let t=[],i=[],o=-1;for(e[d].length>c&&(c=e[d].length);++o<e[d].length;){var p;let s=null==(p=e[d][o])?"":String(p);if(!1!==n.alignDelimiters){let e=a(s);i[o]=e,(void 0===u[o]||e>u[o])&&(u[o]=e)}t.push(s)}s[d]=t,l[d]=i}let h=-1;if("object"==typeof i&&"length"in i)for(;++h<c;)o[h]=hB(i[h]);else{let e=hB(i);for(;++h<c;)o[h]=e}h=-1;let m=[],f=[];for(;++h<c;){let e=o[h],t="",i="";99===e?(t=":",i=":"):108===e?t=":":114===e&&(i=":");let a=!1===n.alignDelimiters?1:Math.max(1,u[h]-t.length-i.length),s=t+"-".repeat(a)+i;!1!==n.alignDelimiters&&((a=t.length+a+i.length)>u[h]&&(u[h]=a),f[h]=a),m[h]=s}s.splice(1,0,m),l.splice(1,0,f),d=-1;let g=[];for(;++d<s.length;){let e=s[d],t=l[d];h=-1;let i=[];for(;++h<c;){let a=e[h]||"",s="",l="";if(!1!==n.alignDelimiters){let e=u[h]-(t[h]||0),n=o[h];114===n?s=" ".repeat(e):99===n?e%2?(s=" ".repeat(e/2+.5),l=" ".repeat(e/2-.5)):l=s=" ".repeat(e/2):l=" ".repeat(e)}!1===n.delimiterStart||h||i.push("|"),!1!==n.padding&&!(!1===n.alignDelimiters&&""===a)&&(!1!==n.delimiterStart||h)&&i.push(" "),!1!==n.alignDelimiters&&i.push(s),i.push(a),!1!==n.alignDelimiters&&i.push(l),!1!==n.padding&&i.push(" "),(!1!==n.delimiterEnd||h!==c-1)&&i.push("|")}g.push(!1===n.delimiterEnd?i.join("").replace(/ +$/,""):i.join(""))}return g.join(`
369`)}(e,{align:t,alignDelimiters:i,padding:n,stringLength:a})}function u(e,t,n){let i=e.children,a=-1,o=[],l=t.enter("tableRow");for(;++a<i.length;)o[a]=s(i[a],e,t,n);return l(),o}}(n),{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:h3}}]})},{}],math:[fl,{singleDollarTextMath:!1}],cjkFriendly:[function(){let e=this.data();(e.micromarkExtensions||(e.micromarkExtensions=[])).push({text:{[pR.asterisk]:ha,[pR.underscore]:ha},insideSpan:{null:[ha]}})},{}],cjkFriendlyGfmStrikethrough:[function(e){let t=this.data();(t.micromarkExtensions||(t.micromarkExtensions=[])).push(function(e){let t=(e||{}).singleTilde,n={name:"strikethrough",tokenize:function(e,n,i){let{now:a,sliceSerialize:o,previous:s}=this,l=p8(s)?p9(s,a(),o):s,u=p1(l),c=new he(l,a(),o),d=p2(u,c.value.bind(c),l),p=this.events,h=0;return function(s){return l===pR.tilde&&p[p.length-1][1].type!==pL.characterEscape?i(s):(e.enter("strikethroughSequenceTemporary"),function s(u){let c=p1(l);if(u===pR.tilde)return h>1?i(u):(e.consume(u),h++,s);if(h<2&&!t)return i(u);let p=e.exit("strikethroughSequenceTemporary"),m=p1(p7(u)?ht(u,a(),o):u),f=p5(d)||p4(d),g=p5(m)||p4(m),x=p3(d)||c===yf.ivs;return p._open=!g||m===pD.attentionSideAfter&&(f||x),p._close=!f||c===pD.attentionSideAfter&&(g||p3(m)),n(u)}(s))}},resolveAll:function(e,t){let n=-1;for(;++n<e.length;)if("enter"===e[n][0]&&"strikethroughSequenceTemporary"===e[n][1].type&&e[n][1]._close){let i=n;for(;i--;)if("exit"===e[i][0]&&"strikethroughSequenceTemporary"===e[i][1].type&&e[i][1]._open&&e[n][1].end.offset-e[n][1].start.offset==e[i][1].end.offset-e[i][1].start.offset){e[n][1].type="strikethroughSequence",e[i][1].type="strikethroughSequence";let a={type:"strikethrough",start:Object.assign({},e[i][1].start),end:Object.assign({},e[n][1].end)},o={type:"strikethroughText",start:Object.assign({},e[i][1].end),end:Object.assign({},e[n][1].start)},s=[["enter",a,t],["enter",e[i][1],t],["exit",e[i][1],t],["enter",o,t]],l=t.parser.constructs.insideSpan.null;l&&hn(s,s.length,0,hi(l,e.slice(i+1,n),t)),hn(s,s.length,0,[["exit",o,t],["enter",e[n][1],t],["exit",e[n][1],t],["exit",a,t]]
369),hn(e,i-1,n-i+3,s),n=i+s.length-2;break}}for(n=-1;++n<e.length;)"strikethroughSequenceTemporary"===e[n][1].type&&(e[n][1].type=pL.data);return e}};return null==t&&(t=!0),{text:{[pR.tilde]:n},insideSpan:{null:[n]},attentionMarkers:{null:[pR.tilde]}}}(e))},{}]}),bO=(0,I.createContext)({shikiTheme:["github-light","github-dark"],controls:!0,isAnimating:!1,mode:"streaming",mermaid:void 0}),bB=(0,I.memo)(({content:e,shouldParseIncompleteMarkdown:t,...n})=>{let i=(0,I.useMemo)(()=>"string"==typeof e&&t?f$(e.trim()):e,[e,t]);return U.jsx(bk,{...n,children:i})},(e,t)=>{if(e.content!==t.content||e.shouldParseIncompleteMarkdown!==t.shouldParseIncompleteMarkdown||e.index!==t.index)return!1;if(e.components!==t.components){let n=Object.keys(e.components||{}),i=Object.keys(t.components||{});if(n.length!==i.length||n.some(n=>{var i,a;return(null==(i=e.components)?void 0:i[n])!==(null==(a=t.components)?void 0:a[n])}))return!1}return!(e.rehypePlugins!==t.rehypePlugins||e.remarkPlugins!==t.remarkPlugins)});bB.displayName="Block";var bj=["github-light","github-dark"],bz=(0,I.memo)(({children:e,mode:t="streaming",parseIncompleteMarkdown:n=!0,components:i,rehypePlugins:a=bD,remarkPlugins:o=bL,className:s,shikiTheme:l=bj,mermaid:u,controls:c=!0,isAnimating:d=!1,BlockComponent:p=bB,parseMarkdownIntoBlocksFn:h=bR,...m})=>{let f=(0,I.useId)(),[g,x]=(0,I.useTransition)(),[v,b]=(0,I.useState)([]),w=(0,I.useMemo)(()=>h("string"==typeof e?e:""),[e,h]);(0,I.useEffect)(()=>{"streaming"===t?x(()=>{b(w)}):b(w)},[w,t]);let k="streaming"===t?v:w,_=(0,I.useMemo)(()=>k.map((e,t)=>`${f}-${t}`),[k.length,f]),T=(0,I.useMemo)(()=>({shikiTheme:l,controls:c,isAnimating:d,mode:t,mermaid:u}),[l,c,d,t,u]),E=(0,I.useMemo)(()=>({...bx,...i}),[i]);return(0,I.useEffect)(()=>{if(!(Array.isArray(a)&&a.some(e=>Array.isArray(e)?e[0]===co:e===co)))return;let t=!1;if(Array.isArray(o)){let e=o.find(e=>Array.isArray(e)?e[0]===fl:e===fl);e&&Array.isArray(e)&&e[1]&&(t=!0===e[1].singleDollarTextMath)}let n="string"==typeof e?e:"",i=n.includes("$$"),s=t&&(/[^$]\$[^$]/.test(n)||/^\$[^$]/.test(n)||/[^$]\$$/.test(n));(i||s)&&Promise.resolve({})},[a,o,e]),"static"===t?U.jsx(bO.Provider,{value:T,children:U.jsx("div",{className:yE("space-y-4 whitespace-normal",s),children:U.jsx(bk,{components:E,rehypePlugins:a,remarkPlugins:o,...m,children:e})})}):U.jsx(bO.Provider,{value:T,children:U.jsx("div",{className:yE("space-y-4 whitespace-normal",s),children:k.map((e,t)=>U.jsx(p,{components:E,content:e,index:t,rehypePlugins:a,remarkPlugins:o,shouldParseIncompleteMarkdown:n,...m},_[t]))})})},(e,t)=>e.children===t.children&&e.shikiTheme===t.shikiTheme&&e.isAnimating===t.isAnimating&&e.mode===t.mode);bz.displayName="Streamdown";var bF=({children:e,className:t,minZoom:n=.5,maxZoom:i=3,zoomStep:a=.1,showControls:o=!0,initialZoom:s=1,fullscreen:l=!1})=>{let u=(0,I.useRef)(null),c=(0,I.useRef)(null),[d,p]=(0,I.useState)(s),[h,m]=(0,I.useState)({x:0,y:0}),[f,g]=(0,I.useState)(!1),[x,v]=(0,I.useState)({x:0,y:0}),[b,w]=(0,I.useState)({x:0,y:0}),k=(0,I.useCallback)(e=>{p(t=>Math.max(n,Math.min(i,t+e)))},[n,i]),_=(0,I.useCallback)(()=>{k(a)},[k,a]),T=(0,I.useCallback)(()=>{k(-a)},[k,a]),E=(0,I.useCallback)(()=>{p(s),m({x:0,y:0})},[s]),A=(0,I.useCallback)(e=>{e.preventDefault(),k(e.deltaY>0?-a:a)},[k,a]),C=(0,I.useCallback)(e=>{if(0!==e.button||!1===e.isPrimary)return;g(!0),v({x:e.clientX,y:e.clientY}),w(h);let t=e.currentTarget;t instanceof HTMLElement&&t.setPointerCapture(e.pointerId)},[h]),N=(0,I.useCallback)(e=>{if(!f)return;e.preventDefault();let t=e.clientX-x.x,n=e.clientY-x.y;m({x:b.x+t,y:b.y+n})},[f,x,b]),M=(0,I.useCallback)(e=>{g(!1);let t=e.currentTarget;t instanceof HTMLElement&&t.releasePointerCapture(e.pointerId)},[]);return(0,I.useEffect)(()=>{let e=u.current;if(e)return e.addEventListener("wheel",A,{passive:!1}),()=>{e.removeEventListener("wheel",A)}},[A]),(0,I.useEffect)(()=>{let e=c.current;if(e&&f)return document.body.style.userSelect="none",e.addEventListener("pointermove",N,{passive:!1}),e.addEventListener("pointerup",M),e.addEventListener("pointercancel",M),()=>{document.body.style.userSelect="",e.removeEventListener("pointermove",N),e.removeEventListener("pointerup",M),e.removeEventListener("pointercancel",M)}},[f,N,M]),U.jsxs("div",{className:yE("relative",l?"h-full w-full":"w-full",t),ref:u,style:{cursor:f?"grabbing":"grab"},children:[o&&U.jsxs("div",{className:yE("absolute z-10 flex flex-col gap-1 rounded-md border border-border bg-background/90 p-1 shadow-sm backdrop-blur-sm",l?"bottom-4 left-4":"bottom-2 left-2"),children:[U.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:d>=i,onClick:_,title:"Zoom in",type:"button",children:U.jsx(gi,{size:16})}),U.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground disabled:cursor-not-allowed disabled:opacity-50",disabled:d<=n,onClick:T,title:"Zoom out",type:"button",children:U.jsx(ga,{size:16})}),U.jsx("button",{className:"flex items-center justify-center rounded p-1.5 text-muted-foreground transition-colors hover:bg-muted hover:text-foreground",onClick:E,title:"Reset zoom and pan",type:"button",children:U.jsx(gn,{size:16})})]}),U.jsx("div",{className:yE("origin-center transition-transform duration-150 ease-out",l&&"flex w-full items-center justify-center"),onPointerDown:C,ref:c,role:"application",style:{transform:`translate(${h.x}px, ${h.y}px) scale(${d})`,transformOrigin:"center center",touchAction:"none",willChange:"transform"},children:e})]})},bH=({chart:e,className:t,config:n,fullscreen:i=!1,showControls:a=!0})=>{let[o,s]=(0,I.useState)(null),[l,u]=(0,I.useState)(!0),[c,d]=(0,I.useState)(""),[p,h]=(0,I.useState)(""),[m,f]=(0,I.useState)(0),{mermaid:g}=(0,I.useContext)(bO),x=null==g?void 0:g.errorComponent;return((0,I.useEffect)(()=>{(async()=>{try{s(null),u(!0);let t=await yD(n),i=e.split("").reduce((e,t)=>
369(e<<5)-e+t.charCodeAt(0)|0,0),a=`mermaid-${Math.abs(i)}-${Date.now()}-${Math.random().toString(36).substring(2,9)}`,{svg:o}=await t.render(a,e);d(o),h(o)}catch(e){p||c||s(e instanceof Error?e.message:"Failed to render Mermaid chart")}finally{u(!1)}})()},[e,n,m]),!l||c||p)?!o||c||p?U.jsx(bF,{className:yE(i?"h-full w-full overflow-hidden":"my-4 overflow-hidden",t),fullscreen:i,maxZoom:3,minZoom:.5,showControls:a,zoomStep:.1,children:U.jsx("div",{"aria-label":"Mermaid chart",className:yE("flex justify-center",i&&"h-full w-full items-center"),dangerouslySetInnerHTML:{__html:c||p},role:"img"})}):x?U.jsx(x,{chart:e,error:o,retry:()=>f(e=>e+1)}):U.jsxs("div",{className:yE("rounded-lg border border-red-200 bg-red-50 p-4",t),children:[U.jsxs("p",{className:"font-mono text-red-700 text-sm",children:["Mermaid Error: ",o]}),U.jsxs("details",{className:"mt-2",children:[U.jsx("summary",{className:"cursor-pointer text-red-600 text-xs",children:"Show Code"}),U.jsx("pre",{className:"mt-2 overflow-x-auto rounded bg-red-100 p-2 text-red-800 text-xs",children:e})]})]}):U.jsx("div",{className:yE("my-4 flex justify-center p-4",t),children:U.jsxs("div",{className:"flex items-center space-x-2 text-muted-foreground",children:[U.jsx("div",{className:"h-4 w-4 animate-spin rounded-full border-current border-b-2"}),U.jsx("span",{className:"text-sm",children:"Loading diagram..."})]})})};let bU={container:{marginBottom:"8px"},trigger:{display:"flex",alignItems:"center",gap:"8px",padding:"8px 12px",backgroundColor:"#fef3c7",borderRadius:"8px",cursor:"pointer",fontSize:"13px",color:"#92400e",border:"none",width:"100%",textAlign:"left"},content:{marginTop:"8px",padding:"12px",backgroundColor:"#fffbeb",borderRadius:"8px",fontSize:"13px",color:"#78350f",lineHeight:"1.5"}};function bG({reasoning:e,isThinking:t}){let[n,i]=(0,I.useState)(!0);return U.jsxs("div",{style:bU.container,children:[U.jsxs("button",{style:bU.trigger,onClick:()=>i(!n),type:"button",children:[U.jsx(en,{size:16}),U.jsx("span",{style:{flex:1},children:t?"Thinking...":"Thought process"}),U.jsx(ei,{size:16,style:{transform:n?"rotate(180deg)":"rotate(0deg)",transition:"transform 0.2s"}})]}),n&&e&&U.jsx("div",{style:bU.content,children:e})]})}let bq={display:"flex",gap:"4px",padding:"4px 0"},bV={width:"8px",height:"8px",borderRadius:"50%",backgroundColor:"#9ca3af",animation:"pulse 1.5s infinite"};function bW(){return U.jsxs("div",{style:bq,children:[U.jsx("span",{style:{...bV,animationDelay:"0ms"}}),U.jsx("span",{style:{...bV,animationDelay:"200ms"}}),U.jsx("span",{style:{...bV,animationDelay:"400ms"}})]})}function bY(e){return"object"==typeof e&&null!==e}let bK={container:{borderRadius:"12px",border:"1px solid #e5e7eb",overflow:"hidden",backgroundColor:"#ffffff",margin:"8px 0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)"},header:e=>({display:"flex",alignItems:"center",gap:"12px",padding:"12px",cursor:"pointer",backgroundColor:e?"#ecfdf5":"#ffffff",borderBottom:e?"1px solid #e5e7eb":"none",transition:"background-color 0.2s"}),thumbnail:{width:"60px",height:"60px",borderRadius:"8px",objectFit:"cover",flexShrink:0,backgroundColor:"#f3f4f6"},thumbnailPlaceholder:{width:"60px",height:"60px",borderRadius:"8px",backgroundColor:"#fee2e2",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:"#dc2626"},headerContent:{flex:1,minWidth:0},title:{fontSize:"15px",fontWeight:600,color:"#1f2937",margin:0,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},meta:{display:"flex",alignItems:"center",gap:"12px",marginTop:"4px",fontSize:"13px",color:"#6b7280"},metaItem:{display:"flex",alignItems:"center",gap:"4px"},chevron:e=>({color:"#9ca3af",transition:"transform 0.2s",transform:e?"rotate(180deg)":"rotate(0deg)",flexShrink:0}),content:{padding:"16px",backgroundColor:"#fafafa"},sectionTitle:{fontSize:"14px",fontWeight:600,color:"#374151",marginBottom:"12px",display:"flex",alignItems:"center",gap:"8px"},ingredientsList:{display:"flex",flexDirection:"column",gap:"12px"},ingredientRow:{backgroundColor:"#ffffff",borderRadius:"8px",padding:"12px",border:"1px solid #e5e7eb"},ingredientName:{fontSize:"13px",color:"#6b7280",marginBottom:"8px",fontStyle:"italic"},productsGrid:{display:"flex",flexDirection:"column",gap:"8px"},productCard:{display:"flex",alignItems:"center",gap:"10px",padding:"8px",backgroundColor:"#f9fafb",borderRadius:"8px",border:"1px solid #e5e7eb"},productImage:{width:"48px",height:"48px",borderRadius:"6px",objectFit:"contain",backgroundColor:"#ffffff",border:"1px solid #e5e7eb",flexShrink:0},productImagePlaceholder:{width:"48px",height:"48px",borderRadius:"6px",backgroundColor:"#f3f4f6",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,color:"#9ca3af",fontSize:"20px"},productInfo:{flex:1,minWidth:0},productName:{fontSize:"13px",fontWeight:500,color:"#1f2937",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},productMeta:{fontSize:"12px",color:"#6b7280",marginTop:"2px"},productPrice:{fontSize:"14px",fontWeight:600,color:"#1f2937",marginTop:"2px"},dealPrice:{color:"#dc2626"},regularPrice:{fontSize:"12px",color:"#9ca3af",textDecoration:"line-through",marginLeft:"6px"},addButton:{display:"flex",alignItems:"center",justifyContent:"center",width:"32px",height:"32px",borderRadius:"6px",backgroundColor:"#dc2626",border:"none",color:"#ffffff",cursor:"pointer",flexShrink:0,transition:"background-color 0.2s"},noProducts:{fontSize:"12px",color:"#9ca3af",fontStyle:"italic"},loading:{display:"flex",alignItems:"center",justifyContent:"center",padding:"24px",color:"#6b7280",gap:"8px"},error:{display:"flex",alignItems:"center",justifyContent:"center",padding:"16px",color:"#dc2626",gap:"8px",fontSize:"13px"},footer:{padding:"12px 16px",borderTop:"1px solid #e5e7eb",backgroundColor:"#ffffff",display:"flex",justifyContent:"space-between",alignItems:"center"},addAllButton:{display:"flex",alignItems:"center",gap:"8px",padding:"10px 16px",borderRadius:"8px",backgroundColor:"#dc2626",border:"none",color:"#ffffff",fontSize:"14px",fontWeight:500,cursor:"pointer",transition:"background-color 0.2s"},ingredientCount:{fontSize:"13px",color:"#6b7280"}};
369function bX({id:e,displayName:t,note:n,defaultExpanded:i=!1,variant:a="default"}){let[o,s]=(0,I.useState)(i),[l,u]=(0,I.useState)(null),[c,d]=(0,I.useState)(!1),[p,h]=(0,I.useState)(null),[m,f]=(0,I.useState)(new Set),g="carousel"===a,{resourceEndpoint:x,apiBaseUrl:v,authToken:b,onAddToCart:w}=(0,M.hl)();async function k(){let n=x?(0,M.vM)(x,"recipe",e):null,i=v?`${v}/recipes/${encodeURIComponent(e)}?name=${encodeURIComponent(t)}`:null;if(!n&&!i){h("API not configured");return}d(!0),h(null);try{let a=n?await fetch(n,{headers:(0,M.us)({authToken:b,includeContentType:!1})}):await fetch(i);if(!a.ok)throw Error("Recipe not found");let o=await a.json();u(function(e,t,n){let i=bY(e)&&bY(e.data)?e.data:e;if("imageUrl"in i&&"ingredients"in i)return i;let a=i.servings_from,o=i.servings_to,s=a&&o&&a!==o?`${a}-${o}`:a??o,l=i.total_time_minutes??i.cook_time_minutes;return{id:String(i.id??i.slug??t),title:i.title??n,path:i.slug?`/recipe/${i.slug}`:"",imageUrl:i.image_url??null,cookTime:l?`${l} min`:"",servings:s?String(s):"",tags:i.category??"",ingredients:(i.ingredients??[]).map(e=>({description:function(e){var t;let n="number"==typeof e.amount?`${e.amount}`:"",i=(null==(t=e.unit)?void 0:t.trim())??"";return[n,i,e.name.trim()].filter(Boolean).join(" ")}(e),products:[]}))}}(o,e,t))}catch(e){h(e instanceof Error?e.message:"Failed to load recipe")}finally{d(!1)}}function _(e){w&&(w(e,1),f(t=>new Set(t).add(e)))}function T(){if(!l||!w)return;let e=[];for(let t of l.ingredients)t.products.length>0&&e.push(t.products[0].id);e.forEach(e=>{w(e,1),f(t=>new Set(t).add(e))})}(0,I.useEffect)(()=>{!o||l||c||k()},[o]),(0,I.useEffect)(()=>{!g||l||c||k()},[g,c,l]);let E=(null==l?void 0:l.ingredients.filter(e=>e.products.length>0).length)??0,A=(null==l?void 0:l.title)||t,C=(null==l?void 0:l.cookTime)||n,N=null==l?void 0:l.servings;return g?U.jsxs("div",{style:{borderRadius:"16px",border:"1px solid #e5e7eb",overflow:"hidden",backgroundColor:"#ffffff",boxShadow:"0 6px 18px rgba(15, 23, 42, 0.08)"},children:[U.jsxs("div",{role:"button",tabIndex:0,onClick:()=>s(!o),onKeyDown:e=>"Enter"===e.key&&s(!o),style:{cursor:"pointer",outline:"none"},children:[U.jsx("div",{style:{position:"relative",height:"150px",background:null!=l&&l.imageUrl?"#f3f4f6":"linear-gradient(135deg, #fde8ec 0%, #fff7ed 100%)",display:"flex",alignItems:"center",justifyContent:"center"},children:null!=l&&l.imageUrl?U.jsx("img",{src:l.imageUrl,alt:A,style:{width:"100%",height:"100%",objectFit:"cover",display:"block"}}):U.jsx("div",{style:{fontSize:"44px",color:c?"#6b7280":"#dc2626"},children:c?"⏳":"\uD83C\uDF7D️"})}),U.jsxs("div",{style:{padding:"14px 16px 16px"},children:[U.jsx("div",{style:{fontSize:"15px",fontWeight:700,color:"#111827",lineHeight:1.25,minHeight:"38px",marginBottom:"10px",overflow:"hidden",display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:2},children:A}),(C||N)&&U.jsxs("div",{style:{display:"flex",alignItems:"center",gap:"14px",color:"#6b7280",fontSize:"13px"},children:[C&&U.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"5px"},children:[U.jsx(eh,{size:15}),C]}),N&&U.jsxs("span",{style:{display:"inline-flex",alignItems:"center",gap:"5px"},children:[U.jsx(eM,{size:15}),`Serves ${N}`]})]}),U.jsx("button",{type:"button",onClick:e=>{e.stopPropagation(),s(!o)},style:{width:"100%",marginTop:"14px",padding:"10px 14px",borderRadius:"10px",border:"2px solid #10b981",backgroundColor:"#ffffff",color:"#10b981",fontSize:"14px",fontWeight:700,cursor:"pointer"},children:o?"Hide Recipe":"View Recipe"})]})]}),o&&U.jsxs(U.Fragment,{children:[U.jsx("div",{style:bK.content,children:c?U.jsxs("div",{style:bK.loading,children:[U.jsx(ek,{size:20,className:"animate-spin",style:{animation:"spin 1s linear infinite"}}),"Loading ingredients..."]}):p?U.jsxs("div",{style:bK.error,children:[U.jsx(eu,{size:18}),p]}):l?U.jsxs(U.Fragment,{children:[U.jsxs("div",{style:bK.sectionTitle,children:["Shop Ingredients (",l.ingredients.length,")"]}),U.jsx("div",{style:bK.ingredientsList,children:l.ingredients.map((e,t)=>U.jsxs("div",{style:bK.ingredientRow,children:[U.jsx("div",{style:bK.ingredientName,children:e.description}),e.products.length>0?U.jsx("div",{style:bK.productsGrid,children:e.products.slice(0,2).map(e=>U.jsxs("div",{style:bK.productCard,children:[e.imageUrl?U.jsx("img",{src:e.imageUrl,alt:e.name,style:bK.productImage}):U.jsx("div",{style:bK.productImagePlaceholder,children:"\uD83D\uDCE6"}),U.jsxs("div",{style:bK.productInfo,children:[U.jsx("div",{style:bK.productName,children:e.name}),U.jsxs("div",{style:bK.productMeta,children:[e.brand&&`${e.brand} • `,e.size]}),U.jsxs("div",{style:{...bK.productPrice,...e.dealPrice?bK.dealPrice:{}},children:[e.price,e.dealPrice&&U.jsx("span",{style:bK.regularPrice,children:e.regularPrice})]})]}),w&&U.jsx("button",{style:{...bK.addButton,backgroundColor:m.has(e.id)?"#16a34a":"#dc2626"},onClick:t=>{t.stopPropagation(),_(e.id)},title:m.has(e.id)?"Added!":"Add to cart",children:m.has(e.id)?"✓":U.jsx(eA,{size:18})})]},e.id))}):U.jsx("div",{style:bK.noProducts,children:"No matching products available"})]},t))})]}):null}),l&&E>0&&w&&U.jsxs("div",{style:bK.footer,children:[U.jsxs("span",{style:bK.ingredientCount,children:[E," of ",l.ingredients.length," ingredients available"]}),U.jsx("button",{style:bK.addAllButton,onClick:e=>{e.stopPropagation(),T()},onMouseOver:e=>e.currentTarget.style.backgroundColor="#b91c1c",onMouseOut:e=>e.currentTarget.style.backgroundColor="#dc2626",children:"Add All to Cart"})]})]}),U.jsx("style",{children:`
370          @keyframes spin {
371            from { transform: rotate(0deg); }
372            to { transform: rotate(360deg); }
373          }
374        `})]}):U.jsxs("div",{style:bK.container,children:[U.jsxs("div",{style:bK.header(o),onClick:()=>s(!o),role:"button",tabIndex:0,onKeyDown:e=>"Enter"===e.key&&s(!o),children:[null!=l&&l.imageUrl?U.jsx("img",{src:l.imageUrl,alt:t,style:bK.thumbnail}):U.jsx("div",{style:bK.thumbnailPlaceholder,children:U.jsx(eP,{size:24})}),U.jsxs("div",{style:bK.headerContent,children:[U.jsx("h4",{style:bK.title,children:(null==l?void 0:l.title)||t}),U.jsxs("div",{style:bK.meta,children:[((null==l?void 0:l.cookTime)||n)&&U.jsxs("span",{style:bK.metaItem,children:[U.jsx(eh,{size:14}),(null==l?void 0:l.cookTime)||n]}),(null==l?void 0:l.servings)&&U.jsxs("span",{style:bK.metaItem,children:[U.jsx(eM,{size:14}),"Serves ",l.servings]}),!l&&!c&&U.jsx("span",{style:bK.metaItem,children:"Click to see ingredients"})]})]}),U.jsx(ei,{size:20,style:bK.chevron(o)})]}),o&&U.jsxs(U.Fragment,{children:[U.jsx("div",{style:bK.content,children:c?U.jsxs("div",{style:bK.loading,children:[U.jsx(ek,{size:20,className:"animate-spin",style:{animation:"spin 1s linear infinite"}}),"Loading ingredients..."]}):p?U.jsxs("div",{style:bK.error,children:[U.jsx(eu,{size:18}),p]}):l?U.jsxs(U.Fragment,{children:[U.jsxs("div",{style:bK.sectionTitle,children:["Shop Ingredients (",l.ingredients.length,")"]}),U.jsx("div",{style:bK.ingredientsList,children:l.ingredients.map((e,t)=>U.jsxs("div",{style:bK.ingredientRow,children:[U.jsx("div",{style:bK.ingredientName,children:e.description}),e.products.length>0?U.jsx("div",{style:bK.productsGrid,children:e.products.slice(0,2).map(e=>U.jsxs("div",{style:bK.productCard,children:[e.imageUrl?U.jsx("img",{src:e.imageUrl,alt:e.name,style:bK.productImage}):U.jsx("div",{style:bK.productImagePlaceholder,children:"\uD83D\uDCE6"}),U.jsxs("div",{style:bK.productInfo,children:[U.jsx("div",{style:bK.productName,children:e.name}),U.jsxs("div",{style:bK.productMeta,children:[e.brand&&`${e.brand} • `,e.size]}),U.jsxs("div",{style:{...bK.productPrice,...e.dealPrice?bK.dealPrice:{}},children:[e.price,e.dealPrice&&U.jsx("span",{style:bK.regularPrice,children:e.regularPrice})]})]}),w&&U.jsx("button",{style:{...bK.addButton,backgroundColor:m.has(e.id)?"#16a34a":"#dc2626"},onClick:t=>{t.stopPropagation(),_(e.id)},title:m.has(e.id)?"Added!":"Add to cart",children:m.has(e.id)?"✓":U.jsx(eA,{size:18})})]},e.id))}):U.jsx("div",{style:bK.noProducts,children:"No matching products available"})]},t))})]}):null}),l&&E>0&&w&&U.jsxs("div",{style:bK.footer,children:[U.jsxs("span",{style:bK.ingredientCount,children:[E," of ",l.ingredients.length," ingredients available"]}),U.jsx("button",{style:bK.addAllButton,onClick:e=>{e.stopPropagation(),T()},onMouseOver:e=>e.currentTarget.style.backgroundColor="#b91c1c",onMouseOut:e=>e.currentTarget.style.backgroundColor="#dc2626",children:"Add All to Cart"})]})]}),U.jsx("style",{children:`
375        @keyframes spin {
376          from { transform: rotate(0deg); }
377          to { transform: rotate(360deg); }
378        }
379      `})]})}let bQ={display:"flex",alignItems:"center",gap:"12px",padding:"12px",margin:"8px 0",borderRadius:"12px",backgroundColor:"#ffffff",border:"1px solid #e5e7eb",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.1)",fontFamily:"system-ui, sans-serif"},bZ={...bQ,opacity:.8},b$={width:"64px",height:"64px",borderRadius:"8px",objectFit:"contain",backgroundColor:"#f9fafb",border:"1px solid #e5e7eb",flexShrink:0},bJ={...b$,display:"flex",alignItems:"center",justifyContent:"center",fontSize:"24px",color:"#9ca3af"},b0={flex:1,minWidth:0},b1={fontSize:"14px",fontWeight:600,color:"#1f2937",marginBottom:"2px",overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},b2={fontSize:"12px",color:"#6b7280",marginBottom:"4px"},b4={fontSize:"15px",fontWeight:700,color:"#1f2937"},b5={...b4,color:"#dc2626"},b3={fontSize:"12px",color:"#9ca3af",textDecoration:"line-through",marginLeft:"6px",fontWeight:400},b6={display:"flex",alignItems:"center",justifyContent:"center",width:"36px",height:"36px",borderRadius:"8px",backgroundColor:"#dc2626",border:"none",color:"#ffffff",cursor:"pointer",flexShrink:0,fontSize:"18px",fontWeight:"bold",transition:"background-color 0.2s"},b7={display:"inline-flex",alignItems:"center",gap:"6px",padding:"4px 10px",borderRadius:"16px",backgroundColor:"#f3f4f6",border:"1px solid #e5e7eb",color:"#374151",fontSize:"13px",fontFamily:"system-ui, sans-serif",curs
379or:"pointer",transition:"background-color 0.2s"},b8={...b7,opacity:.7},b9={width:"20px",height:"20px",borderRadius:"4px",objectFit:"contain"},we={fontWeight:600,color:"#1f2937"},wt={background:"linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%)",backgroundSize:"200% 100%",animation:"shimmer 1.5s infinite"};function wn({id:e,displayName:t,note:n}){let{product:i,isLoading:a}=(0,M.MW)(e),{onAddToCart:o}=(0,M.hl)(),s=(null==i?void 0:i.name)||t,l=null==i?void 0:i.price,u=null==i?void 0:i.dealPrice,c=null==i?void 0:i.regularPrice,d=null==i?void 0:i.imageUrl,p=null==i?void 0:i.brand,h=null==i?void 0:i.size;return U.jsxs("div",{style:a?bZ:bQ,children:[d?U.jsx("img",{src:d,alt:s,style:b$}):U.jsx("div",{style:bJ,children:a?U.jsx("span",{style:{opacity:.5},children:"⏳"}):"\uD83D\uDCE6"}),U.jsxs("div",{style:b0,children:[U.jsx("div",{style:b1,title:s,children:s}),(p||h||n)&&U.jsxs("div",{style:b2,children:[p&&U.jsx("span",{children:p}),p&&h&&U.jsx("span",{children:" • "}),h&&U.jsx("span",{children:h}),n&&!p&&!h&&U.jsx("span",{children:n})]}),l?U.jsxs("div",{style:u?b5:b4,children:[l,u&&c&&U.jsx("span",{style:b3,children:c})]}):a?U.jsx("div",{style:{...b2,...wt,width:"50px",height:"16px",borderRadius:"4px"}}):null]}),o&&U.jsx("button",{style:b6,onClick:()=>{o&&o(e,1)},title:"Add to cart",onMouseOver:e=>e.currentTarget.style.backgroundColor="#b91c1c",onMouseOut:e=>e.currentTarget.style.backgroundColor="#dc2626",children:"+"}),U.jsx("style",{children:`
380        @keyframes shimmer {
381          0% { background-position: 200% 0; }
382          100% { background-position: -200% 0; }
383        }
384      `})]})}function wr({id:e,displayName:t}){let{product:n,isLoading:i}=(0,M.MW)(e),a=(null==n?void 0:n.name)||t,o=null==n?void 0:n.price,s=null==n?void 0:n.imageUrl;return U.jsxs("span",{style:i?b8:b7,title:n?`${a} - ${o}`:`Loading ${t}...`,children:[s?U.jsx("img",{src:s,alt:"",style:b9}):U.jsx("span",{style:{fontSize:"14px"},children:i?"⏳":"\uD83D\uDCE6"}),U.jsx("span",{children:a}),o&&U.jsx("span",{style:we,children:o})]})}
384function wi({id:e,displayName:t,note:n}){return U.jsx(bX,{id:e,displayName:t,note:n})}function wa({id:e,displayName:t,note:n}){return U.jsx(bX,{id:e,displayName:t,note:n,variant:"carousel"})}function wo({id:e,displayName:t}){return U.jsx(bX,{id:e,displayName:t})}let ws={messagesContainer:{flex:1,overflowY:"auto",padding:"16px",display:"flex",flexDirection:"column",gap:"16px"},emptyState:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"flex-start",padding:"24px 32px 32px",paddingTop:"0",textAlign:"center",color:"#6b7280",overflowY:"auto",background:"linear-gradient(180deg, #f0fdf8 0%, #ffffff 40%)"},message:e=>({display:"flex",flexDirection:"column",maxWidth:"85%",alignSelf:e?"flex-end":"flex-start"}),messageContent:e=>({padding:"12px 16px",borderRadius:e?"16px 16px 4px 16px":"16px 16px 16px 4px",backgroundColor:e?"#00d47b":"#f5f5f5",color:e?"white":"#1f2937",fontSize:"14px",lineHeight:"1.6",boxShadow:e?"0 1px 3px rgba(0, 212, 123, 0.15)":"0 1px 2px rgba(0, 0, 0, 0.04)"}),messageGroup:{display:"flex",flexDirection:"column",gap:"12px",maxWidth:"100%",alignSelf:"stretch"},assistantSegment:{display:"flex",flexDirection:"column",maxWidth:"100%",alignSelf:"stretch"},carouselSection:{display:"flex",flexDirection:"column",gap:"8px",width:"100%"},carouselTitle:{fontSize:"13px",fontWeight:700,color:"#4b5563",paddingLeft:"4px"},carouselTrack:{display:"flex",gap:"12px",width:"100%",overflowX:"auto",paddingBottom:"4px"},carouselItem:{flex:"0 0 min(280px, 80vw)",minWidth:"240px"}};function wl(e,t,n,i,a,o){return t||!a&&i?U.jsx("div",{style:ws.message(n),children:U.jsx("div",{style:ws.messageContent(n),className:n?void 0:"vitality-assistant-message",children:t?n?t:U.jsx(bz,{className:"vitality-streamdown-assistant",components:o,isAnimating:!1,mode:"streaming",parseIncompleteMarkdown:!0,children:t}):!a&&i&&U.jsx(bW,{})})},e):null}function wu(e,t){return t.renderProductCard?t.renderProductCard(e):U.jsx(wn,{...e})}function wc({messages:e,isLoading:t,catalogRenderers:n={},onSendMessage:i,suggestions:a=["\uD83C\uDF77 Plan a menu for entertaining","\uD83E\uDD57 Find heart-healthy recipes","⏱️ Quick 30-minute dinners","\uD83C\uDFF7️ Show me this week's deals"]}){var o;let s=(0,I.useRef)(null),l=(0,I.useRef)(0),u=function(e){let{renderProductCard:t,renderProductChip:n,renderRecipeCard:i,renderRecipeChip:a}=e;return{p:({children:e})=>I.Children.toArray(e).some(e=>{if(I.isValidElement(e)){let t=e.props;return!!("string"==typeof(null==t?void 0:t.src)&&(0,M.E2)(t.src))||"div"===e.type||"string"==typeof(null==t?void 0:t.className)&&t.className.includes("vitality-widget-catalog")}return!1})?U.jsx("div",{className:"vitality-widget-markdown-block",children:e}):U.jsx("p",{children:e}),img:({src:e,alt:n,title:a})=>{if(e&&(0,M.E2)(e)){let o=(0,M.i1)(e);if(!o)return null;let{type:s,id:l}=o,u=n||l;if("product"===s){let e=t?t({id:l,displayName:u,note:a}
384):U.jsx(wn,{id:l,displayName:u,note:a});return U.jsx("div",{className:"vitality-widget-catalog-card",children:e})}if("recipe"===s){let e=i?i({id:l,displayName:u,note:a}):U.jsx(wi,{id:l,displayName:u,note:a});return U.jsx("div",{className:"vitality-widget-catalog-card",children:e},`recipe-${l}`)}}return U.jsx("img",{src:e,alt:n,title:a,style:{maxWidth:"100%"}})},a:({href:e,children:t})=>{if(e&&(0,M.E2)(e)){let i=(0,M.i1)(e);if(!i)return null;let{type:o,id:s}=i,l="string"==typeof t?t:Array.isArray(t)?t.map(e=>"string"==typeof e?e:"").join(""):s;if("product"===o)return n?U.jsx(U.Fragment,{children:n({id:s,displayName:l})}):U.jsx(wr,{id:s,displayName:l});if("recipe"===o)return a?U.jsx(U.Fragment,{children:a({id:s,displayName:l})}):U.jsx(wo,{id:s,displayName:l})}return U.jsx("a",{href:e,target:"_blank",rel:"noopener noreferrer",children:t})}}}(n);return(0,I.useEffect)(()=>{var t;e.length>l.current&&(null==(t=s.current)||t.scrollIntoView({behavior:"smooth"})),l.current=e.length},[e]),0===e.length?U.jsxs("div",{style:ws.emptyState,children:[U.jsx("div",{style:{width:"calc(100% + 64px)",marginLeft:"-32px",marginRight:"-32px",marginBottom:"20px",display:"flex",justifyContent:"center"},children:U.jsx("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAXQAAACcCAYAAABvA1AIAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAUGVYSWZNTQAqAAAACAACARIAAwAAAAEAAQAAh2kABAAAAAEAAAAmAAAAAAADoAEAAwAAAAEAAQAAoAIABAAAAAEAAAF0oAMABAAAAAEAAACcAAAAAL0hxF8AAAIzaVRYdFhNTDpjb20uYWRvYmUueG1wAAAAAAA8eDp4bXBtZXRhIHhtbG5zOng9ImFkb2JlOm5zOm1ldGEvIiB4OnhtcHRrPSJYTVAgQ29yZSA2LjAuMCI+CiAgIDxyZGY6UkRGIHhtbG5zOnJkZj0iaHR0cDovL3d3dy53My5vcmcvMTk5OS8wMi8yMi1yZGYtc3ludGF4LW5zIyI+CiAgICAgIDxyZGY6RGVzY3JpcHRpb24gcmRmOmFib3V0PSIiCiAgICAgICAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczp0aWZmPSJodHRwOi8vbnMuYWRvYmUuY29tL3RpZmYvMS4wLyI+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj41NTk8L2V4aWY6UGl4ZWxZRGltZW5zaW9uPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MTAyNDwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOkNvbG9yU3BhY2U+MTwvZXhpZjpDb2xvclNwYWNlPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVudGF0aW9uPgogICAgICA8L3JkZjpEZXNjcmlwdGlvbj4KICAgPC9yZGY6UkRGPgo8L3g6eG1wbWV0YT4KuUU8xQAAQABJREFUeAHsXQeAFEXafZsjm1jiLssuS0YyCJIUERQFBXM+FAyYTj3DGc583OlvOHNAxRwwZ0EBAZGcM0tcwuYcZvP871XPwJJUEHSBqqVnerqrq6q/GV59/eoLPoWFhW7YYiVgJWAlYCVwxEvA94i/A3sDVgJWAlYCVgJGAhbQ7Q/BSsBKwErgKJGABfSj5Iu0t2ElYCVgJWAB3f4GrASsBKwEjhIJWEA/Sr5IextWAlYCVgIW0O1vwErASsBK4CiRgAX0o+SLtLdhJWAlYCVgAd3+BqwErASsBI4SCVhAP0q+SHsbVgJWAlYCFtDtb8BKwErASuAokYAF9KPki7S3YSVgJWAlYAHd/gasBKwErASOEglYQD9Kvkh7G1YCVgJWAhbQ7W/ASsBKwErgKJGABfSj5Iu0t2ElYCVgJeBvRWAlcLRIoKqqCus3b8aqNWtQ43YjMDAQ0dFR6Nm5C4KDgo6W27T3YSWwXwlYQN+vaOyJui6B3IICnDbyMuSmrkJmZqYz3MgEBLdNQFiAH3JqqoFfZvG4k8PF398fl/39Ztw46m9o2bx5Xb89Oz4rgQOWgAX0AxaZveCvlEBNTQ3ufPwpjB/3MGriG+G2Mdfg+O63I75JE0TUC0dIWBgCgoIBHx/41LjhcpWipLQUaWlpWL5yBT77aQa6dezI0z548b33ceHpQ+HLfVusBI4GCfjYFHRHw9d49N+DmxTKnY8+gZfGPYRTL74M11x+Kbp36ojGDRsi0M+vlgCkje8boKmvIyMvH2vXr8dXX3+Npx560Fw3Y85cdGnfrlYbdtdK4MiUgAX0I/N7O6ZGnZ6VhV49eqCkVUu8/+DDGNh/AKLDQnbKoJrUSg2qCeNu+BL4neKDGh83jxPeeUir/34+fnD7mj2UVJVjwdLleOHVCfjopRdw3vU34NX/jNvPVOBp0r5ZCdRxCVhAr+Nf0LE+vO+mTMUFI0fgHw8/grFjRiG5cRwp8RrUVLvhQ2x2+wiyxbA4WrlXN+dZw5x79XVf7tS4qwn7An7+Edz9fAKQV16Bz778CqPPPxcJCQlYvnz5zrbUbjHpmvHvfoBlvyzipxId2lli27fHJWcMQ+d2bXe7ZmcFu2Ml8CdLwAL6nyxw293vl8BV/3oAHz79JF774EOMHD4c0aEhqKpyEch9CcZc/jGITqQ2qE10J5prV8UAu/eDOeLmOR7QBOBm3Rpq8OTj/bh4qilh0sxZOP2cS+ATFYD3Hn8CV1xwAcrLyyGq56yLL0bz5oloHp+AkJBguHi8oLgYWzZtxJsvPG9aj+h9POa9/S6aNmpkPtsXK4G/QgIW0P8Kqds+f1MC4z/6CP8YPRo/zvwZg/r1oXZdRQCuhp+HL5eWTRKFm1cn30+TxHAD5J7T0uQF0irar66uNouimiRmLVmKAX8bjZqKSoy7+Qb07dULSXGNERUejEAutPr5BrA3af5Oi9WVlcjIzcXylBR89tXXeP2xx1C/V18s+uRDREdEeHq0b1YCf54ELKD/ebK2Pf1OCcyYOw/DBp+KKbN/xsm9e5NhqUCVB8x3USu7A7pA2nuudjcGemtp6rUB3VtP17qrKuAXGIyZ8+djwPHHY+n6DeiU3MLQNL4i4QXknsnBTCZ8OhCtI0ZepYQ28EtXriIn/xrefe4ZfDd1KvqS97fFSuDPlIDfXXfd9cCf2aHty0rg1ySQun07+lEz/nrqTzi1f19q5RWs7gtfXz+jHTsauThwAboXTne1uBeo1wJz1drrvI6Z41xWralEUrPm6HR8D3z92cc46cQTqb1zYZWcvZv0jADdVzSPKaJsOBHwuA/PB/j5IKFxE/Qf0A/xyS1x6TnnIIuOTaf26eOpb9+sBA6/BKwd+uGXse3BIwFpwqvWpWD9mtX4+OOPUVKy+yKjq0VLzHrlJdx5/zgMPmmAh9jwJwirgd2RWeCqY16A1rvRtJ0TOrnPojp7FV1LoPaBP5dMgZGnD0MAJ4u0tHQ0T2hO4C7nhCIg94K504K/ny/BnqDO8YkOcle70ID0zFWjL0dkTAxGnT0S4QGBeOimG/fq0h6wEjgcErCUy+GQqm1zNwlMmDABEydOxNawcFw68CS0TW6FmMhIBPoHEEDdKK2qRG5+ESZP+wkfzZiO9d9/g+Rm8agiv+1HzRwGZndr0vOBIOygvfm8T7De12X7POYFeoedp+KNSnLkQUEBBOwq5+mAi6mGwjHXE8XNJKIPmnGoqfvQfJJavo+vPyrdAfj4y69x6YgzMYn3dUL3buYq+2IlcDglYDX0wyndY7htgeu3336L6667Dv948BE88eJLSE5KRGR4OLXfvYs043WrV+P1++8zYF5TXUZgpN24tPA9NOO9r/59RzSm2hPA7lcR0EmvmEVPoTlLUJC/sW/fWY+4bRR8YTnVcm3OkitHb3h22boHoYZ8epBfNS48azjSn38Jw4YMRnZ29q/0vbMHu2Ml8IcksPsz5B9qyl5sJeBIYMHyFWjTpg1m8X0KY6n888br0KvjcYglmPvTFlxarLbqai520sHHTQuW/IJcgn0ghp16stMIKRCRII6+LOB0Nh9RIzs3HXPKntq5gHvfm0Bd2rijke9Wx/TBU2yfZLkzmbAdZyTOfxVTX6PyDGnn9TKFdGsCYm0/UjecE/RscdG5I9F68GA88Jxj3uiM1r5aCRweCVjK5fDI9Zht9TGa7j3yyCN4beLHOGvY6agfQo9ONwFcSqxsx+Xh4wFTCUlArIXG8upKFJWW0NwvUgc9YK4aAtZdwC0A3VfZE9D3riMQ3tW3U782ZeNo5bqudlv7689p3wH5va+h4xPvgAQ75wZfvPn5Zxh70cXIyMjgGPY9fqc9+2ol8McksOsX+cfasVdbCeDtt982YP7pt9/h4vPOQWRwICorSg1++5JX3hPMhG065qaViPj02IhoBwR1jOcEsYJg1fFuBy9mkjeOUr6fJgS0u296EjjYopa8pQWtXsrKgGmzFPnRFiuBwyeBg//FHr4x2ZaPQAksW7sW1z/yBL6lueHIoafBj+aGPqRSAgLJmBPd3NSOFVvFgWjvDXqAWhYkRFtZiijyofPHOuY6b939v9fWqPdfa/czzgRR+1htMHdonV0A79RTP7s2Ddn5XLuVnftmJuLCKqelkOAQjLj2Stz3xoSdp+2OlcDhkIAF9MMh1WOsTXlbDqDt+KvPPIahA0+kUYrX+1KLijTto6Zr1g9rq617yEgAK9NAA7Q8J1CvxczsUdsBUx38PWDu1e7ZxR5lrwPmvBZif7tdIfauss8+2GFVlWOp075NW2DN2l0X2D0rgcMgAWvlchiEeqw1efPNN2PUjTfivOHDzK3LYsWPNt27UxwCQJr2qYZB1t0BUYf3LKauqu0bd/esXuuzNP9aH3fu6uBv96unBK/2ve92dja4jx314e3cBxWVXPil+WOzuHgUFRXto749ZCVw6CRgAf3QyfKYbEna+VtvvYUZ8+YhgmnequlC7+sfaAjwXWC4L1T2gp4jNi/MOpDLT/yn5VAHG71npZE7NXSVQFd97Fub9ra/61rTqAF0bxs8Z9rTGdmRyxvUB4XFpQijRY6sznmAxwXw6tHbpvZVdFCj1LuzdOscIfvPdnwZ0dFV6iKoVyMiKgqbNm0ircRnFuOkpOttsRI4tBKwlMuhlecx19rz73+A864Ziw4dOhD0qghWgjYCo7Bv58YdIa+oF/3trrp7ZOatrMscDdm41pu6hEm533v3d0rZWTY1TXv4eVmy6LNTHKDViJzNsWRRO84QdFyn+Lmmiju+yMrJwYat2zh+jVfnHZDXqPbaVMXbr7kzPZvQVcqMVe0B+bmFnOC4jkCvUlN2Dc75bF+tBA6hBCygH0JhHotNzf3uW5x12qmIpHlitRxyaL/tFA9Y7iEUL9e8x+GdcCnQlJYsqxhfP3ppyr5bx2QGaGrVvtJ7TH0y1gs1Ysf6W5+9IO6tLzB36gm4nX40vTjJMUDb8eLyKqzdtA3+BGA9upL991zDt30U750673w1tugKB8Br/YKQw+xIecx7GsqwvxWlNHNhKa9QbBpbrAQOjwT0y7bFSuAPSaBdy1YGIh3A5MKmWquliToasVcz11n97PbcBOSCYb6zynbmAHVVODFUqoWQLLteBbTaVNSe6dF8cl5U06ntvKuu97O3mnOdCbzFsZZVVGHNxi0oq/ZBJb2C9OeMR/V1rbfPWu+mQu2+WJMf/XwDUeQqw+Zt2+HLAF2iWHI8Saxb0R59308o3nHZdyuBg5eABfSDl5290iOByEgn9rfstgVoKrUhtrZW7mCgF9yduubVc53AU5RLelY2lq9ai2ICrZxzFPNFfw64Ou/OnLH7sV3n1apzza4ruecZoK5i0iOCbQAqq2qwbsMmFJW4DD2Sl19IJyeGHmBGI4f28dI9arN28YyI7ZhoAXxCUFTIAl6bsmkzqtiXP9cV8vPzkc00evf973n45RXg2gcerN2I3bcSOGQSsIB+yER5bDZU3aAxaoz3J+9fVImoj93g3JGLF0hrS2k3zZ3gJzqa9LOB7ZCQMGTl5RHUV5G2IA/NycIsTpqzegAwkMxPgnrPRg5fPL4D4ARh
384o1Wrnrco1K3DcWsy8OdE4WIyi42btqKwtJxUiz83ea26sX7LdrioqfuT9lHRWLWgWXvMymMqzV3jkhYu3T2TNIvAvIzmikp2J20/NXULgkOCcNrQobjrmmvx/lNP0tHIoWDUti1WAodKAhbQD5Ukj8F2BG7Tl61EenaWk4DCE//EgeRdQKp6v1UcEHZeVTcgKJAgGGIAcc369UjLzDJ5RH0ZPkBcuXh2Q5d4QNuAt8OiCH3NEGqDr7NQyfY5EQh8ReNkZOVg9ep1KCwqQQB58yDSI24CcSATXWTlFXEyWcNF0mzakleaTEl+5NkNty9+X5sP63MspTRLTOdi6up167F+42aa4Tuu/1T8GbGxCuFh9dClazdmQqpA9249MeD8S3DW3ff8lkjseSuBA5aANVs8YJHZC2pLwLVoDsGsgFsu4hs0MNYi0p4NhHsWNEXAiEhRcV615wV55128ublKFiKs5UtNOSg4FKH16sFVUkw+Og35eYVoHFsfEZH1CMAEdnOFNG5eQQ1eQK4/H9OvuHw2qn+mU0dfd1XUcLEyC5mkdIrJcwdQA1eI3tCwMGzcsgXZmdno3LkrzxWjsKQUq1I2IpzadRTNDsMVXEz9ckKoIlBXlFUgn/FncplftJyavswUg2iyWU0DF0cCjlVPbEwsP8vfil6jIYEY1PcEfDT+Jc+4zeAkEFusBP6wBCyg/2ERHtsNNGzYEAXUcNenplGzDUID8umKomjCmBvt2XkIFPg6cO4Fcq/cnM9iUBSO1nE9Ym1qt8HBwSiRTXhoPYJkJXKKS1DgKkVweiAiwkMRFRlutGpp1/7+snLhgqSAne9Oq34mpnoFNehiTgp55K/zS8pQUlbOin40bAmia74vwhgQbEdGGp596UXceettCOCTRjDPu/3DzCRRwpAExZy0/POLzeygOOm6K9E31ZxEanizftTutdBbRrU8QGPhn7IZGZtzPg2Y6YVjC2a9hIQErFixwiTH8HNmG68w7LuVwB+SgAX0PyQ+e7HifGdQq42PT8LKDZvRpV1LRJMqqaFdt0BVQO5Lhx0VB2TNQfPZvBhtWvVEobgJsjQfpOYr3jwoLALTfvoOLgLw8JEjEUrgLikqRDk16+zCIvjSEkZZg6StC/yDuQAZYGgRJn8mCMvtvpyLqqXkq8vZRhU1ZFmd+LOOJg9/atM+jDWzZO1KjBp+Kca98hiat2yBYt6TiTvDsfmR4gk05pPUufUEQHD242Ipb4qaOtvjzOPLekrGUU2AVzLpinJOGKwbxAnOTDLsy/E+Vao6fz5hMKIkSxqjL8Y3aWL27YuVwKGQgKM+HYqWbBvHnATmLl6MqshYrFy5Gv4BTNpG4FtDHjmrIJ+aKT+TZ1bxWB068jGLmTuh3YC8gFJEiy81Wy1SrueiYomrgguHLvTocwI+/2kKnnn2aeQQzIOoTfsFhcA3IMhs1YbDrkFuYQnSsnOxlZPL9oxsUir5yMktombuIraSvgkKI90h709hsQ+i6kejlLTKl19+ilFnDAFaN8WGzZuwcOliA/JRsbEICA1FDU3bK+n9Khf+Sj4laNNkoSeGGtI3PjRzFGUTyDGFMCNT6pbNmPTt1wbIRT3VcBJR0cKptxitXce8B+y7lcAhkoCNh36IBHksNnP22Wej++ChaNO6HerHNiC/HcPQ5y6CWBUaN2iIpo0bMXOPwyNTZzaLmI6cCGUEOOI4QY2mftrniZzCAmygxUlJOSkNauMCwYCQYGrjhbjrX/dgFTXacTfehE6duiCqHoFdFivUjDUhqDG1YyxhOIO4BaTeiYL0ifhtfy60+gT6I5sLnctXLMOHEz/E/O++wcU33WJoo28mvAJ06ILLhwxG7z590Kx5c0TXi6BG70cAlwWNtHQ9aVD7Zq7QINqbu5kcusjFySRtB2bP+QXjv/oKb/17nMlFWkIOXqDtHZfuPaJeOJauXoFLzxhKCijPLLbquC1WAodCAhbQD4UUj8E25BUaM3gQJj76P7SITyDXXciY5gRN8sTVpCEU4yWMYNyAIB8ZQa6b5+REKmpFXLOKdFdpsC7abWcW5CArP49WLQR30hzVNB0UEFbSuSiUC5L5RQX45z/vxPIfJyFp0BBcNPxM9OjSFXFNm1DzDjVctQPiNdSiq7nVGLD0J4D7cVKpqiynxUoulq5chUlTp+LHN8abMdz+36cw4KSBHBUtdmZOw8eTJmPTj9+bcy3pAduvYxc0b5aIaC7GhlIDDwoOMu3WsA9XUTFSt2/FypR1+HziJ2jR6Tg88/AjaNYkDoW8Fw7K3K15AjGTgRthYSGYOn0aHrrl79ixY8dumrvp1L5YCfwBCVhA/wPCO5Yv/XHOHHz49TcYO+ZaBBllmKQJAcxNQDd22QTIStIUMi1UGJMw8uqh5Ll9+UHOOgJ8cdzinivKK4w5IZV1XiXNXUBeRbCvRjBpjwIuhs6Y/hP+++TjuPD881BIjf3bN98w4h82+mp06dQZMQTcerRUocJsKB42zeIm/16K3LxcbKEt+IccczmTUKNrb4wdfgZOPPEkNGnaFGUMoBWusVHrzsnPRUrKWixYshifzJ6Fsp9nmn72+9K1O9onJmHU0NNxYv9+qEeNvoRPGlV8StF96MlDC6dVpF9oIm/Kk88+ifT1SzHtm2n7bdaesBI4GAlYQD8YqdlrcNlll6ELNeUzTjsdVQREJXSmTyclIx2c2jXpkCAuECp0bGFJoQE1iU0Ln7IJVxGXLO1ZsVMCAxhulzo71xk5IfgikEkh3NTq1zJxxsQPP8SXb7yGM0eNxnU33MgJoRrr163DnAUL8N6b7wJ56aa933rpOHwETuk/gLbg3ah1N+f84UZBbq6xkPFjXxUVjIrIBUs/rgeUuFw0YczElk2bsIOLr5lZmaRqslinwiy+NmnSGHHNmuHHGT/T2iYSj953H5N6MDcqJ5sAXi9A15OInJG0PiAzx6DQSKxeuwZjRgzFL/Pn4TjFSLfFSuAQSsBauRxCYR5rTck2W6AsF3eZ3xnNnIDsz31Ze2zbvh1BNC+MIZ8uIKwhD11NoDMOQeK5zR/hn/OAKG9/PzoTkZIQoOYX5WPWzNn41xtvoGbmDFx2460YNepKAj/BkguSPbv3QKfO3XDeOecjjdRFZlYG0tLTuRCaTe1eZoV+zJbkj5iYGDSNi0OjeG5N45izNAohnDwqaDvuKilCo6h6jFXe1CzqyuokKzsPJVTvA0njNG3chFtTVLA/V7nLPHHIFDGQliqhocFmEXQj7dQX0Zs1nx6iAXzC0IRVwScL+cxqapOHq540wsMjuHBbgA8/+9iYLXZo3eZY+7nY+/0TJGAB/U8Q8tHahagToTExzIC6lj+lo1MdJ7j70ya7DP975kUM6DcAnY7rhPr16yOQNuXS4sUrm+QPBHkBXglNFV3F+cgl5bExdRM++XEy1n3zNdCrJ8aNn0DNeiD8eU0RuXrCJsqLK+FPs8D4xo2pbSdwGFx2JfBWULN2oj4qroovKR7y+tS+BbSidypLS1FEKiiMx5ISE9CoYayYHjOmqOYJSGB76fRKTaMXaWlJibkjPzo5RdC5yIdrAnp60DoBB40q9hVJmmd1ygYUM3lFVJRs8A1pZGgmH96bvFrrRUWjpKIMn37xKX548zUsWr7cTH6mW/tiJXAIJWAB/RAK81hqKoSceE5uHrVXUgsEOB9qrm7GdDG8MVc/y+gA1IZa6M3XXI//Pf8s7rv2GvS9/DL0oet7A1rEBNIevEy0Bj02FbhKWvYkAh2WLDBi9O19Aq67536cdtpQtEhORjXND8vpHCRnnsaNYgnWPsiku31uTjHBmk8E5L9lj+5HrlpLrtKkZWteQYuZYnL0lRynrgmjrbq8TZsSyMMJ0G5ZymjjhKCJJoyWMMnN4lgnlpNHKc0eS+g16iIFU8r7E/Rz4mBdUUl+rBsVRZvyLeto6+5CtG+Uc//smzMBnxCoxYeHMb5LDt7/dCJe++RT/Oe559GS1jO2WAkcDglYDv1wSPUYaDOVAPyvJ5/B1WOuQbhswsmLK06KNFhl/vFRwC7iWijjmFRQk1/FhcbJU6fg3a++oJcmvSpXE7z3KA169cGJXbqgMxc5lTBDmncwgbqEFi4VtFIJIN/ejBp0QwKy4FfhdQu5YJpHJ6Ni8vjlBFmZTCrolplkWEeu+gJ6xWkJJ7hG1gtDPfLzxpiSnLdwnCNl0avztKF3RU3Uu0o5Mw4pTktZdaUBftEpJr4LLV5+/mUO7hgzCh9NmY7kxESGA6iEjz8Bn/KQh+r6lBS8N/EDTPvgfTz28iu45sILrHZupGpfDocErIZ+OKR6DLTZjB6OS374DjtOPx1tk9sQyKgBk5qQvbk4dBEPYiZKSouNw1Gn9h3QlTFS+lDzvv7223D7E0+jVYtklNAd34+0SDBNAiMYNiA6OppmiMHGWqWYC4x5pEjCqVVHR0cgjguRkTynuACKsBhGLjyMHHkjbpXUisvKywi0VbxW4yAc811gHsB6ol90zPD2NDeR5YlRynlUx3xrHPA2IM5dLbwK4mW/7kfNPojaeFkp71E3peMEfMVtiaaDkkp2fgEa8kmggE8tuXnZ2Lx1M36eMxs/vv22mVTWrt+AJg0bmLr2xUrgcEnAAvrhkuxR3q4WQEfSHX/2LzOR2DyJfLZihztgLkCVIYubQCjP/gpqtuW0y46gl2ejmPrA5g2MxRKG7j16wJWvxMk0U+QF4rnFgxfLrZ/qfT0CuaxJ5LBUj5q1ivowoXP5NOBw+NKyCbgCXdJAuxcHws0EYKgVQjQPabHSR2PjR0cvZ9gBB93N5eY865kpQE8dfNoICCQnXybNX5EeFXHGuEQxkiLHNeBkPM+8qisydtA7iveT4nDkoQzCNXvhQrRv2dKMcfex/bmfPvr6a1x/5ZU7w/ZKZnF9TsSEcQ+jZ5dOxub/zx2R7e1wSMAC+uGQ6jHS5t333IOGjLDYuXMX9OvTF9V0ENI6qULTCiAF0M5GgOfxMvLZ1aQvSIQgg6aANTTlE+QKpGtIT1RzsT
384KApiLRkWFoGBON+rSiCQtSPHKBtwPchsrxwrABYQe0HS9OziJqkSAsvkfUiOlA9XXYfFB9FueQs69XHfaAuq6uXfwI4or/Ynh5avpaJ9CfrHWCOOmInGlGTf2Gc85EP05ScXx6MU8EnvZqt/VX7K9OWY/RF4/GW59/TIueeA7BF9u3b8PUn6Zi8In9zZBuuud+3Hz1aMRGR/0VQ7R9HiIJOM+Ph6gx28yxJQGZEL5P56L/e3U8Fi9fhmBSJn4E5BqvNixbRHlsEiFNDgwCvTRav86dkUVLkkoGzHLLjJEavB9pkBZxjXB8pw7o2KYVEho1QBjNDpW8ubqmnFqywFqTgVR/oi9Vf2mZwky9q+z8vHNfxE8t5Ja2rXP73NiWqno3dmPmBc1ELArKVU5KRSFwRevIKaqCYxegV6dsxoAe3XHxiBFIiI83FJJ3TObiv/jl2jGj8crE9004g9BQRqoMC0a3zp1w9113Yc7qFIz/6DOs3rwVLWjlE3HKYHw7Y4aZiP/iYdvuD0ICVkM/CKHZS3ZJYGi/vginpnrrcy/iuksuRffuXbnmSdf9SgcIZeInYKzhuyiMcHpS9kpKNN6bolXMBECHnhBSNk1oeRLKCUGasJtau9Ro0StkR8y+QW8Dx/rMsx6wdT7tevWCqcOX69VUdiqYD84EsOsKgbcmjN2LY/nC6zkjiXMv5xMF/JzYMdLABe6K8khff3qHypyy7hV55C5mELWWLZORsT0VRYVypApAQIFs6cNRjxr5wJMG4MS+/bD5xuswadJ3uHDYMHMj5197HR654zZj8VP37syOaF8SsIC+L6nYYwckgf79++O1Ro1x8dkj0f/s8zDo5JMZYyWOccxDaXHiUBVyKKqklu3mAqVompRtWwi0bsYHJ/dODT2Qi5c7gZiA7ksQNYq4GYkeJAXCziTh7O8aohewHdrFqWN4dl6jNv0Ivs5kcOAPpN4eZaKopVjBvjYz6TAKo8L99kpMxNrU1F0DqkN7L7/zDoaPuhrRdKAqpplnZL1Y+ASINnKTAqtAKZ2pJGdZBjUkbXT16DG44LzzsXjJEnzy+edo3aIFfEh/Tf7iK/Ts1NFy7XXou93XUCyg70sq9tgBS6BT61ZYTjvyF154AaPPGoZhXIDrwbRrjRo2MjbnMuErZPjb7WkZWL9jO4oJ2lX06PSjR6lAVzSNwtLSetsBX0OjCDqJNlpZ3aN4U8qJJ5d9OV9YY+96uqycwCtPVTkclbFPxSuv4Lvc841rPsHNa9XCllh2TQLSxBVPJoeLt+WkWnxZV16wQeT2uU5qTDBbJybi57mO/by5vA69fERP20uvuQGB5Lx8SJFl8D6mT5/GBenuSE5M8jhiOQvNWQxtoABnUdExGEBuvSuftq4ecxUWMMTC4P79zF396z//we3XX1+H7tAOpbYELKDXlobd/0MSEDBfz//s1113HeYtW4EXnnwcM8jH5jJeis7JJFHhAsLIoRcyfnkxw8vKMUcwXk5wdeKfEE4Jog7bzXetshJEhesG3gneIm9kTugt0qKV17OQ4QKKaJeekyuHozykp2egoDCfnp8Z2MJJpJDu/oW0oNlIR6Z0eZwqUXNpAWPB5HLf2xrf+/UB0rYDG7Y4B1u3Rdtm8Qx9Syud+rF8+miKRrS+iW/SCDENmyCM4Q0quSBc14q08EWLFmFcu1ZGs3bTrHTWnJ/x9P334uYHx6F1UrIBcB96zRbQvFRmmMG00c9nWF9toWGhSEpKoINYMs4cdjoU//6Wcf/F05NmYOsXH5jvtK7d87E+Hgvox/ov4DDcv8C7V+eO6PXmm/tsXbyuYqwU07vSRCKk5isrFsNR84oaLqTKEJ3NONp3Lc1bmr2yJBXm5yOTsVtSSXVs2LQRm7ZuxXwG8tq4bAlAm/Ddin886vduh4T6kWhAQO7foiVBOJx8fj3DgStBRRCtWJQ6LpDmkR9+8yV6DDgJXY87DpkZmcgpyEMWJ4GC/EJs3ZaKr76bDOzY5HQRGgP07o6mEUF4lUHERp9/fp0BukzKyZ1wHBowTaDkXMzJbtv2NAwZfS1akEpRCeCi7lY6iV389xtw3Tnn4dxzz6UfQIhxnCpnuAIXHbqCybmHBoaSZx+At55ogMuHnYYZjFx54gknODKwr3VGAhbQ68xXcewMRI5EvXv3prZcYLhcfWakFQa/Yuo2Fi2UeksFAVwRDHcw2uFqRlict3AR3p/0IzJ+meGt4rwTfE9lKNtT+vZHfQJYVGSUCWUbRqsaxXzxJQeu0L3+cn7yaPlmcZAceCABK5y0SiStdH6iKV9Duuzfc9vtaMYFw5IqLYgyxrrMKmnZIm9UFxNDu+iZqtAHaZnpWLN+Lb6dPh23XnUVbn32ZXz91GPo37OHHir+0nL/08/i6guHc5E6AKXky3dwAszk01IkZdOYAcmqSHFVc9F58dIlGEqwzuSkZRaCJR/KJZhOXOa+ec+ldNpSHJxQymno5aMx8avPLaD/pd/uvju3gL5vudijh1kC4qYLSIvUkMsmwpKTVpTFIEOrZOXmY2t6GjZt3oLFy5bh49mzkfLl586ImrfDib17YMQ9DzKKIikPavqKZBhGbVuaZTDB2EdB0UmnK5aLDzVTk1+UU4aoGVnbmMVV0Tg8In69qLiIE0Ya1q5ehZlTfsTD995nvEs3bqejECcUzgQGnBXoy4+LugL+WMZ6aZGYyNAE/kwSfQbGMJzwwiVL8fgrr2LYoJMxfMw1eOGh+xHJJ4G/qqQwnvvFDDdcxvWDItJbKbRHzyft1DIxCfU4Llr/MyRwLrbtSEc9RqHs2q4NE3CEM1plKSeuGkyfNBmJyS0QzzDB+o7KGWpBdNYyptm7+4pL/qrbsv3+igQsoP+KcOypwyuBQvLY/rSJ9iP9nJudg43r1iNlzVp8N/1nzP3OA+AcwiVMEXflq69jI8Px9u7VG4kJzbnIx0Bc1CSFy6LZDWhT46yk45KZJEjhqIjeqRCdQ1qnnI5LlYrqqGBbDPRVTHArY1hcLbAGkN9pQuub/xs3DlE05ytgOFyZToqHVjRIdWSmhFK+sj/ti6pRWIIQhvyNiYnCWUOGoGfXznj3pJNw943X46up3+O7CW+hb9euZix/5osiS86fPx+3x8cxcBiTfDDp9oZNW8wTSmMGRwul9q25TSEKKmRTX16CjlzboDRJwwTjx6nT8eA9T+Kya8/F5Zdextyp1ZRVOWPTrMP26VNw8Ref/Jm3Y/v6nRKwgP47BWWrHWIJRDVimNzN+GXuL1i5YiWeYwo3rHICdvU6azge+N9TNJPrjNbJLRFFsKTKjI2bNpPiyIIvH/8L+fhfRo2xmmDtIkgXMSpiOTVRAZlBXL4bIKaGLeAVrSOqxZ/BvpQqT6F8wxOaOZo9Y5tHhoYxq1KoWZgVbxxATl0kvixo5BilNrU2wH/GMkaLtbKvd1Wy/1xy9tyU7q4R6Z6brh+LdtR2b/73oxh60Wh89+6r6Nu92yEW4K83N2XmTDTsP5C5XusbR6h8rjlsy86kwZCvWdSVPEoJ4ls5SaZT6+5DR6MYmifK3DOHT0gLl6/EGZePQAcm4YjkBKfwwHkM3/D2l5/hxnv+5ZiC/voQ7Nm/QAIW0P8CodsugfikOLz30094i5YwKudfMRqD7r7TaIkNmVw6nJRAMEG1gpYoCl1bVVRtYp83JWCWucpRSh5b8dRFrSihhbheBcwSLUKjar5zkZNbECcCZU5StMUAgrm0epkqSsOWNY3MF8upecojtZx9CbsFdqJa5AhlTHB4zMF0ZR9iEZLTDJCWlgbk/diPwgBU8Olgy9YdqB8djjMGDaIVTBPc9tA4DB14EiZM/BjnnDZEV/8pZdybb+HSUwcjhI5PeVwkVnjiHFritG0WR5CPNp6g+XklWLZyLTJpTtqhQ3v4chJ088ln+YrVcHE/pLwUXRj90p8yk9np2rUpSJ89B/fTO9iWuikBC+h183s5qkf1Aq1fPnzuWXQ+5VRc/vIr9C7twSw+zbjgFmKAuZTad2ZaurEbF7hq8VJAXFjEyI2UjDTuCHqcmiBgQlodpOps6BECqzw4d9Il1KyrCdil3ITPcg2Spq2itHkyj1S8GTUhXt+YSfJ6IbjgWxEbzXWs4wV1A+isr886WSOAZ5OaAHzJ3+fSVLKcVE6X9u3xzH//jb9z7Fecfy6if/gBJ/fqZa46nC+Sw+JPPsYto65AAAFaTyqbyXuHcWJLJAVTj2sAlXyy2Mw1imnzFmHkwH5owuxMuv+8giIsoKljKWmp/n16ca2gAbXzAmZyysb733yPUXfcabJGHc7x27YPXgIW0A9edvbKA5SAgHMAvUqXcaHzrQ8n4qSTT0K4wIWAU0SON4NWGAIjgbi8OxX6VqhpkmcwvK2vgJjnvQmmHYgVDcLjBqQJ1zwvL06jPnvHR0D1oK/xUVJ8Fy2YsjInBR+CHjVycz0vYCxztSte3kuxsKYZl7R2N8eh9ndp+eqbFdQc/7Tj60erEoYzWL85FcmMj/L0uIcxqqAAIwZfgIystQgh7344SxYtWVSSkhIZS4f8OGPm7MjKNpEs27RqbWzNCwuKsWL5UhMZsuN1V/PpJYDx3quxlhY725nGL4QTWc8ex5sE3vlFJVi4dDFSp/+AJz+fyJZtqasSsIBeV7+Zo2xcAuH4+HgkE9CXTPwIndu0Rh4XRZWkuYqmgeK+A+jYIs7aaNoGPAm8AlpZqxjUFLAKm3Vc2rQAlJv2eVwTQZC0eWn1nBBEqbAia3uvEXizLttSffWpcyoKuCWzRJMWj8dFoSgAl97VtdoKJm0j6sbZgkwfLj5NuEgJaSLR5OAURqmhpl5FGmfTxg20+U7Ck/9+BAO/HYyzrhqLSUxD531K8FxwSN9efuttnHfd9SZapauwGKXFLvy4fiOGMIxvcmIL0lCBjOlSiC+mzUDjPgNMRqhK3msBMzTNX7QQ6Xz
384CuHDQYGrtTemMVQDZs//vvXcx/t13GXWSk58tdVYCFtDr7Fdz9AxMAN2uXTv0HHIqXnvmabQgsG/dtp05R5XdJ5DATLpCoEzqQnVVDBhzX58NwPPdaOgCTW5a4AykfbnAW3VlY+7VzquoXhsXf3Lsom9KuJUSdEtJ2VSRenG5yozlRwE/F9BztJhmi4UEOHmSZhXkYwcXEPNYr5iLruR9OGfUoHFEBNpx3HHk95V0ukViItq3aoeGjRohiFmZKsXzsz8TZpd5RfXnS3v6GoYt2LolFd0Zc/ytz17F5SPPxJRZV+CUfv0P2xc849tvcP61Y83k6EP5ZHIhuXpZCnqddx4dq+rzCacKO7ZtRcGSuTjvn/cglkHRJHUl9V6+LgUB5Ms70TFMjkVav1jEmO4+q1fj/OHDD9uYbcOHRgIW0A+NHG0r+5GAwPi0005DdVw8XnriCQPmm2jfzeghtOkOMVq224eri/zs1Vp1jezHxekaYFdd0i9e0JZmrRyhpaQStCBaRDqjgE5K+dyyMjNpV15s7K0zSTOk0yFpIwNQbadFDQ3b9zNKensmRIOeSFxEDEIUtfBo30DEMjG0M9EoCnANZm2gid+8hUS+DGbtYOiAFm0wasSZOOXkk83ioXKIVtICR9y84dl5jT8nrGrSL3kc1+mnnYJr7rgL5595Fu2/c5wJaj8j+qOHGzZqSOufUmZyqiJQbwMKtjFDVAvGn6H9f2k5VhOggQbo1q0rF6BDOemVY83aNVgybwWuvepC1G9Q39icb9y0ES9Q4//i2+/1oGJLHZeABfQ6/gUd6cN7YvxrmE3HoJnzF6BlUiLWbN5MRxwtdDqLdVLPBeiiQYzLP+kVfzrryFpFKSpkiihgyqNXptzvc0jRZBCgtW1KF1hnYjNt2JHGTdo0qQ7yKkxmSp6aAN2IYBVJkO7U7jj4d+xM+/UAThQCXEqWk4aeDqTZawS7AnVRX9U587Agesd5ImhIc0d/5jn1oVm5jpXSKuaNSZPwxpP/h6sJ1JdccgkTSMSZZNYKBCb6iOlVDUVTTKucsPAw/O3SS/DyY//BF99Pwsihpx22rzfIP4gp8+jdScubrt264b4nnkEjRsSUk1Een0Jmzp2LAecM4neSjIjgcMZuKcKUX2YDTWLRt19fM5nuoGx//nkWAnZsxUBmX7Kl7kvAAnrd/46O2BFuo6XKQ7fditff+wDH9+iOdVtT4aJmHRzoSbJMmsW44bsJlATwIIKwm0Avb8ZtqVuNZ+PSpUuxcNF8LJ46tZYc+LNNaomI2ChEUYtuy2QYQXRlF4BKo/aqkl6qRuCqdHVl5bQZ17MBwVhZlQyzbkDbucSrgRoAZx0V5zRBnYuhFeUO5+7MBTWcHHzQhYueNbQceeWtdzGZ7v8vPvMMWicmooZWLro3MfiKJKmF0tzsPDSnNc+NDzyMUUwWfRYDYOkp5HCUrVu20swzzmSFSuAko36VUKSMtFAq6ZaUWdNx8VNPowEjK4pS2kDtfM2S+bjib1egRVIL5NCDdDufpCa+9Dx+mTf/cAzRtnkYJGAB/TAI1TYpBddtsuJcfuNNGHHWmcjJzoWLKegCSWcYLCXQEe+kHhvQjIyKMa7lv8ybhy8nfY+3p/0ErE+lwXoTtGZkw+7DzmKj1OaJsNKoFYfEgK20Z/6JEnEb7lp96xtwoFh7KgJpb33ns445YGooHh30XKK6exU2aoCe76qmPiv5RKBPqt6T4Qi28Knh7ocexP/++x8kMCJjBeO9qIYallVNZTXt5jnOwScNxLMPuLFi7To+ObTdq6s/euCEIUMx/v0PGMMliFx/kmMOWlVmzCqrK6oYEz0Cdz36KOPp0IqFbv6aCFetWwlGIsOggbQ8Cg7FjrI0rF6+zDxJHde2zR8dkr3+T5KADxeDPD/jP6lH280xIYFPv5+MUbS9/oU2zV2O68hItKnwYZAoBw4dEThASq2aFMgSauKvTHgd0z/9BOjeE10IiMG0m64kRVDARc1C0htaFBUsB1KbD6Xpn653igPqXiDedXxvUbv1VMB2TN9CYhW14913juzz1XvdzpOcVAzIExCrqYVH0Nt0HiM+XnHGUNx2060MJ6CwwBUEUjJBpF6qayqY9COcC41VuPLWW2nP7Y9vXn1pZ3OHakf31ozxVwZeeAlt/HsimaESYhvWN2PwlcVQABehleSCaxG+HHcoA5htp8moJt3unbvR0qcKi1euwNVnj8B00mVdO3Q4VEOz7RxmCVgN/TAL+Fht/soLz8d1t9+O4+hco2iJyvgjYKMSbUBdlIebQEicw1effIL7b/k70K0nup/O9GcE7GJGB1zPhcMALuK1bxKPLtTSI2hp4kseW3TMlm3bjK26SYrh0Zp3yZpIKqwW3hvMrvVBYK6K3nfPvqmmfZY9Jwbv59rnzD7HZhpjg0okrXDAPanNTnjsMZzUdwBO6H0C48pwIhKton8+/sahp14kPUlPOhH3/f167KDjUVO65x/KovEuXroMbZl0RE8uSujRxt0CTcmhywdKjkaVDEpmok/yHlz0vG3asCmaxyUYK6CMvALmiF1u5CDnKFuOHAlYQD9yvqsjZqSbCLZaYBx+xjBm9wlCUWa28JPYVw3FLayhlqiwrSQi8BFjiP/njtvR5dShjJLohxJq5NLGw+myPrhLVzRv3pxeoWFEWZolsk3ViWZkQMVELyGACizFjxtHIUrI6Yedaac2Sns+GDD3SlJ1PEV7uz55j+77mPesFm01PWiikpIvL9MqareB3brjpTcmoC3BMIrhZt1MsWcsdFhT9+6mVhzfrAnQ5jiMuZ3hDpKTcC7zePZgPJXak4e3n4N5b1A/BumkgPr2OcM4FikEQnRkJC1awmiJo/FoYZihDwjuuotKUjIBDGdQTkpmdUoKXuQT1id08T9U4zmYe7DXHLgE9Fu0xUrgkErgNYJ0t6HDcBxjlOcwjkg11XJphqIlhKFB5HZjaA89g7FcBObdTj+DIO4iteLC2qwsJDZuzJRnA9ClXQc0CK9HqsBZgAyS9QtHms8MQ4VM1iAbdCGpAR2264CPdna/HR136ux+Qp+82+5XOJ8E/t4JQDRG7c9ODUGhR+PXOPhXwsmoc3wCZn/2CVavXW1iissLUzb2Ct0rjVn26lExkWCsWhPW9sWPPsGgAf0ZljcSy4w54b5Gc+DH5Gk7d+73mLJwOVK3bzUhCkI4wSimuS+tfYppqphfxLjudPfPoTdoVmEJNm7dhnlcxwjOLtiZdu7Ae7ZX/FUSsBr6XyX5o7jf5x5+GA8/+QQiQsKwlQkgpJ3K29OPIFJFcA+pF8IgVtvxd8YFOY5afBWB0I/ei+LKR/Ttx4W85iaDkMtVROCheSODX5XmM60cTRdzGPFve1YmqRd5hwpiyYnzVWlHHV3ZEaxJ1OCRsann0cYd0PecqPUm6keThXKGCprlISobeFnfiLtXT0p0QUQ2/YouMv2adnXegX5NXG7eJ1dJMWfeXBxPO+8Q0kQ+jObrI7NKtkHqHeFhTMDBpxBpzLO++wYuBsh69oUX0Y+xXt7//AuccfLAWqM7+F3d79iRp2HJ6nU4j5y4ng5yGRlyC4F789Ytho4JZdq5IG5yIlq2bCmmffAOtjOYly1HngQsoB9531mdHrGCOoka6dy5q+GLBaaiRZxws4pz4kO7chfeZzZ6kuImXks5+XK52Q/q0xdJiUmo4nlaCRp79e1pO7B+wyak0jGnmE4yij9ej4ksFOvFBNIysLpLJAIwB1o9xwSw2vVo0HtUr3UhAZd4S9aEdBBjgguEuZ+dmYMCcsz+nJQaM+6M8myWkn8W/PvXasw7UeipwUUP02Ty4otoJVJIp6fQBg04VkV0NCPhpFbJDEnhOJkWLl/Mn2fk1b9HD7R7/HG0bJGEi0acxexMKcYrddcAD35vO+30O7ZqYezgd9BrdA5t0B+bMAH+61YjKSlpt4ZPPOtsfEZPWVuOTAlYQD8yv7c6O+p0emeqyD2+gi7mJvaHwFQATUALIN2ybsN6PP/pp+jUqiVNGSuoGbrQrV17tG7VmvxuORNGhJn0dIuZlHj5+vWIYDajSAJppBphEdAKoA2eOhi5i24xNXROJxzNWZOKrpTWzinF1NjzRdXlnaq6ykokh6ZUAuGJJ52ApsmJcDHOydp5i
3845GxLRPRDWNM7JfabXgBXcdEq0RzvPMmT0XOP3LRnM5ILsZr15hlZVNZVWmsdNq1bo0vXnsZ69esQ/PYhrSSCcL1V1+FRStXo1OHM7lOMMdzX7V7OrB9dokvxr+Md8mHK7F2CifHx556FE/d/xBGX3TRgTVma9d5CVhAr/Nf0ZE1wHe++AItTjmV5nlcfKMTkVl8I8AJTGXvXEntdBEDQIGP9DVc8KxmHUUfbNEy2cCvTOgyuZg3dcZPyCUINoyNNR6kCg4grVwWGtJ0HYccB6gdZOerwftd9IcyEak4xwXwDq1idvhiqBjPuyFuWEXtKlCVTCz/dsdYNOnYBgHBASZwV/KJPbDk26mY9c1PSIxrQrpCMdj3niCcCYSDKcpBGu+FQnD60oIo+5MFvax3msXFm6HI+7WK1ddv2YQmTeNw05VjSHucjNXrNzBeTEtT52Bf5i5eAndcB3TgekYuk1zP+Xk27hh7owXzgxVoHb9u719jHR+wHV7dlsCy9RvRIynRJFaQA5DxlqRWKhU5kIuDSkSxYvkKxk6Jc3CYCGeAmuBLvMPW1FRM/nEKPRqrEEPX/RqicTUvX8ts9auW0Ztx6w5qwLSWEZDyWmmg4q/Nn/lsDhghSWvetQmy2cH+ChtSXHMfAu26dZvQd8SpaNa7K9L9yrGVcVtSywvgqh+G7mcPRetOrZDPxV5/0jLeSUED0b42P7ZRJb48No6JmTPMk4k5z+7FxwdwYvMj9dSI8VZUttEqqJxPM9UE/rS0DJobtsUZF43Cc2+/s7/R/q7jGsuZTKrxzCP/ZM7QSOwgffXZ+Odx53Vjf9f1ttKRJwEL6Efed1ZnR5xJu/HJE15FA2aVpwWcoSUMd04gc4COZomMcLhs/To0Y3JnIbpAXtlwFixYgFkzZ+CL774jsLsZBtffuOfLrC6TttxDRg7BBfeMxWmXDENJkC8KZd8tQKW2Ttwy4L5TMAa3dx3cqaH/Cp5LaxZvX8Jkym06tEBM+5bIriplYC0mseZCqOiYIlcJqsMC0WlQf6Rm5RgTSm+f6k1F92lC7uoAJyRFOqykKaBXk1doAkVk1GODElyrKA58FbV9N0MglOmdTj+9+x2Pd59+yrRnKh3Eyw6uO5TR6qY7c5pWkEJasHih8fxUHB1bjk4J2G/26Pxe/9S7WrpqNU4bdDJN9oiIPhHM0xmKamqgSs6sxUQBrjjqEFpSiAVZTa21Y2Iy0Y/aN/8UZ1yLdQomFUMzRaOVE6hLCdrlBO9Lbx6DmNZJqOQsIT07qWdnTHrlHaRl5TMiYji1Xt6uAJQWHHozDwQ7wZtH2M9OO3VV8BbPvjR3M0ZeWExA79SzPXwI3K4KF6+VVYueMNQGgxYyUFhofCO0btMc5YwzHkSHqSpq16zgaZVaPimmai2chocgLTuT9+Ey6fDc5M6lQSnNmxaOZYYZ2b67SUhdyYVUSoqOVuyPW7OEBAPmCukbyYnhYMo1/3oQF15zLRo0bGQ8QZ+d9C2ef+1189RyMO3Za+q+BKyGXve/ozo9wi+mTkX/3r3w+Muv4M2JpAjchQbkhLIODUJ4EofucWCRRQu2pTM5hFeXEJi6uUgYzIQMSlIsWCM1QbPEVMbwHnj26Yju0BI7qhirvKwEGeXFCEuMw9ArLyHHXmS0amm/DjvtEZUa2HPTKXOML0JvbZ4iWkbJKaQ5C05DoyMZJEyTDeGVKF6ldx7XOkAlAd6Hi5cNm8ebWOs+HKdTTONm15g5ckKKpTVOakYaY7F7bOZ51oQF1gTDiU0JOlo3j0M6n2yUWCOAFjLslmsGVSYJhRpbsJIxVg6iSOYzaH54+umM6MjvYim59KqfZuLsM04/iNbsJUeKBLy/xiNlvHacdUgCuTRvu3zkSHw6eTKuvORixgtpYEYnxyGBmkDTySokc0C3se4oo0kiszyzngOoXo5b+Co7bzc1e3HTJXRyad6rPWLaJSOtvIimhMQlswDpgxxmq49oEY9Bpw7Eph0Z8OcCpjRk9Wn6Vevq22y19j297oJeKd4ezZpta9FWmY5qxIFzHFpSJS6bScPZ5/hUPdAfwdERfAIh0Gvi0lMI371FTyGiXcKovS8mJ+6i1q/FYY1HRf/p6BLFEfvQYzQOi3LyjIepqBAT2pf8e6msYliUWehgylc//AiS/ejO0Lk5uVmYMm0a/JNameBoB9OevebIkIAF9CPje6qTozzvnHPw3Btv49TBpyCzIBdZdPrxFsGbNkGYwNy8S8vVDqkUAZ4XdHlEjIYBV50W+NUw1G3j1omoCQsil24Q0mjJZuGSlUtqKhHTIoFcuwcodT0vVpumP/Xp+az2HRh1ngZq96uBmc+8WH0HkP4p4kRlAlexH00y0s7Fr0vTrVb7qql9zzW63nTGKhqDioA/kBNNFemlYq4byNJFN6lrTax0PonI4crw6HmFJiCWbNgD6GBVXsYY8LR9V1GKu4Mp1466A4/fdjMzFMXSjj8FX/0yFy8/8oD5Tg6mPXvNkSEBC+hHxvdU50aZRRvtdVWBGHzKKSYjvLIFKYGDiqgLWaF4tV9BpQDOWL0QxIhs1NwFuA4Q6l11pYEL1JSdSBpxFFOjmQiNrCYqxnDrrCfGmkuVCIyKoLt8OMGXNAiPG2BWmyyqr2POGPb9M1d9s4DJ+hqbwFuceMEOeqK6GOqXurSj9Xuu1xhZN4A2lDXk+2u42Cm+3Gwao9O1bo+F4MwY6CTlUcJN7agP9WfisxuZ+HDdlPz45tUooKdoAGknnVOmJZP1iCMwk5maO4BSzEmgpGQjTuzXxyyGptIrFykrMIKZo2w5uiWw71/60X3P9u4OgQTuufsu3HDxCIRyATQ9LZMcNEHco/8JU/2kgXo+O2nkSKnQ3NAkoGjQyAEqAR83Yp0HjKX48ipq3dW09AjgoqEAXuDmq4VJoryzuElQp4ZcExRAuoURDMk573T197S56xZ3/4l7Qd4Bek8tjlf9KpF1ICeTrPVbUcVYJsGcmNRcAF/1LnAVLVJN7TmDpo1y3a+hFYyPJ1aNWjOTFO9c2G6sSXhzLsaoMfb4PGZAnchfxa1SjucBuXAAAEAASURBVFe08lFx0aGqjNY+29LSUMXF3UAm7kBIpJncTIUDeHmFKePO/NuVSGIIhUxa42zYlIoOp5xGeTp9HUBTtuoRJoHdf+1H2ODtcP86Cbjo3ZncIolUQTk9QmlqRy9ENzVsFZn+yQFIoCnzRW1aDCTc0QuTdUKCaRniAXddQPVdXqSKMyJCQ/UCAsSjF5nAXIZvJpjq3Vfv3KQVa+HU8Oqy+eZn9eAUL6o7QGw+sQ9nMnDGIbqkxhkYNX/SKuqb7YgmKab1yvblaxDlE4QQxmUxlAtbl/17qF8gti5fjZULViM8IpzmhpxMCPdqVWCtd+9kYcbmH2ASUuuMRmN6Vz3ebxUnIkcuzKBHB6TNW7cZ+3t/xXrnJAFXFmIYHuFAy/89+ADO4dpGFfvZtmMbXv/uB/zv3rsPtBlb/wiUgNfU4Agcuh3yXy2BCDqrlFJbld10JcGjWqo2i8sljlwARmgm1rodkw4CNmOkSKuW9yfrGuAjbrnFxxjA0yuBlmAvT8psprCrYfuB5NErfMlzsJoBde5w+oBvJaGWOTMVOVB0h64VYKqiehfNoePeYs6zDVOX7xwiJwjnKk1G+quixh3frDGmfDMFCUmJSOzRAXnVTEYtMGc/2as24uePvkWrNkkcJ8cgm3I9Lagx9ukFc+6Y8Yo7V5RJjc7QLmZM7JOyqGGbMmVUyWHALHHnetIwWE6tXqU3FzUPpCxngo0SLqh2pGdoNlPcpWzYACyfj55dOh1IM7buESoBqVT6tdliJXDAEhA1oqzy0nx96C7vLxBjUUJk0RfaiHH6Z4roCNmit6OHJHHUYJ5OCM+9QChzO2mugUzsvJwRAisLio0Nt7RdpndmH4R0AmgwwbU6t5CeldnMvkPOnW0LUk3hvgFyB2OdQ16o92jq/jW+ZKjJ19N80p8LkZoAxKGLvvHhRNGY8WOeefQZzJ/4FcpWbkb1mm3Y8O0MfP38G6gfHIbgAFnyOE8IvHszfu89GGxXrzsHZIbgyGLnvbI/3mulZMSia3XfShEnb9pV61aZYxEHYIMu+Z7Upw9ueeAR1Dfx0NMxedp03PLgg86TjGcY9u3olYA09NXclDTQEmxH7/d8WO6sxGiR5LwFztwCtQgYF2esXeTKrsVNUQvEX4I26RYCoKxIIhmPu4AaqeHLCWQO7yz8cwgX8jFGk2egbuxYsgqdExPoQVluNFpx6v4E5XB6Va5M2WwWR/0J6GUEQ8Phsz+570sb3gmsgmvNKjrmedeMIlq+jHbxpWUMlkU+XCOQbi9HIX9q1m1iYvHJm58a/juSedsKCbTJiU3hxws1Zo1FE5AzcuG1Gte7Q7+YPXXMTYCtMAg6ZjR10jsepkiXGMAVjx7MyWVbaipe/uBt3Pufx8x1psJvvGhCS0pMRGVce6zhRPgRs0BV0vRy0ttv4p0cJ2DabzRhTx8FEhCgP83tGm4duXElxhYrgd8ngYyMTLRrW2kW9rTgGUC+uC2jJqYQkEpoaeHk/ZQG6oCYQDCAFEWjmPpYlZ4NhkYhfBL8VIPnhH2iHAR40lTbtGmL2dNmoXFSIuKOa2M8RwWgQVyATVu6BvPnLkTrZKZN4wRg+Gq2ob7Ej1e6qWmrQbWpXvjPAV8flBM4FeUxn8DdqnlTNCWY53Dy8OMkweqsSs2Zmyap41o053WiVnyRwPtTth8zGaieAXN1yTGbK3nMMwa9azRU+Wk5E0Qw5+yhe+SfmYDoParFXjZtSgg18XAmuMhlrPcpkycxUtcmjL7kQufk73j997PPI7Z1c5zftS0WLJyK28a8haZ9+8GnY8edTkq/oxlb5ciWQKU/zabeYaLoYv74x/JH2IPvoUf2PdnR/1kSyEzPxI5t2xEZE2UsKBRwqiWTE389hcG1ystQj5ETqwloRGgDZOLGQ+k92TyhGXJ/nosEmh06ZoOEQyEpX4wWS5ATqGvNskFgKCa++CZOPWMwmnIRtoxPBSvXrMWsn2YhkrSLm2AunloatZx7CstdyM4qRAOCaCm9L5Wb1MXJIZCLrBHBgQgKobt9UlO0IlA3ZYzw5m1amZR2M9/7HF9+OQ2dmBqunJORPEfFfVfyej+2XSU6poITB+9EWr4moQCj7u8ubTOJCLh5vRZ+ORswiUU9Og45XLk/JwWdKykhlaRgZeLQ2/VkBqMYmn9m4bNPPsIP77+DDxm1sj4B/veWZx95CA/ccTEGto3F6S37YdWAYszd6MLns5Yzp2sRoiIOLnzA7+3f1vtrJcDfVBnxewFpT7PzMUG9iPvXclj9uf3+X9Jfex+2979MAiEGXEsYJzyXNuhNmDYulBmK4gn
384oSN3CeOKVu0zuDFjTjpzgJqCOobMLg7fAndiMtAO1Xyqvsht3uBuCugcQtZYKWpHEh9bDN+98TlDmAyXPyQqleZOGjFpIoGWbUpQDZD9OMG/WKhHnDB+Cct8asziouOaaNJSLNITWNUEhgfCPDEMgbeZ9aPLo4tiC/KpNvJVItsEODJhrEvKt0STB2Fw86qsFUAI4h2+K10TT+bT7q5Ru1RNNhEaxBOtoyoOUEQHel7FptGhcRLn5cD1hOx2PurRvhS+/+gLfvzqBV1bg6x+nYMDxPXdv9Fc+rd24EWVxsejcKBju9fMRlrcDPWIS4N8yGp/zumk//4yRpw/9lRbsqSNcAkUE81ncnhHlIo2BFk7ub4uKipSqRO5+8kBw/Li5Y4uVwJ4SCE5uhu2M5kelleaDQYwqmIeYaB9ERTkRBAvpui83el+q2cJl1uICIDPNE2DrK8t9QQ6PUdulC6bXbd5ZXFVdWo04hIU+wE0NOzmuqQFm/k7h04DaL9sRtSLgFZEhIBZ3LgCObZuIwhAuerKOOW8Q1tTgCycVRk+UCWJxpQuNgsKQvmIdfvx8Mjq1bkMtnFY75onC/L8w/XuB3OHANTqnqNl9FVnwKLFHJq1NBh/XDrENYlFO8063u9L0uz09h4vJnBxI+WzJTEMN1xXWbU/FWx+/j+GnDHJCA++r4X0c0xjOv+9B3HE6tfzqIuRtWsS1hBoTXSG3LN5cMfzUIfu40h46SiSQzf8TPxDDn09JSZnHn79TeMAdERExi++PssK73LbyjPN/0VvJvlsJeCRwyeBBWLp2HZMcizqg1kvAru1Ao9RrAlpp0MYrVIuQ3ERlxNSPJupGk9JwAJnQtpdcBdzeTScrqO2KvlHgKiVZlgos+kN/Yj4q+EQQRjrnl2Ur8POnXyO0XCF46XpPAPcnQAeyfhABP4g0RwBtzYOprSc3iENQQQVmUvuPDY9AJUPNitTWaDRX7Nz0mdfvWTQ+PTHsVXhMDkpFTHh9Qo+eqE/zzhqaV/pw/UA2+ltIU7Ebk+x6xcLF6Nu6FRZ/8AFGDBn8m2DuKivHuGeeRVRsFKI6H4fBF1+OYAYtaxkbjoqiPIQ07Qi/hB4oiW2HlelFaHXRxWZy2WuM9sCRLgH98LbxN/g+14/GkTr/pUePHpVGQ699ZzyxMicn5wmu4GfwR3wpz7XipmdRW6wEdkpAERY3zpiCvIsuQGyscma6jUYeFhZu6mzZQguUXj1oukidgL8y+U4aSCTYNWrUCPXatkKpyAxp8Tyxy+mHl+8DJL2AaqgZtqUiSNfSo5kY+Lm6xIU20fXx3WsfwZ+A3p3USxwXPWvYfw3NK1VXEwDZGD4p1CB73RZ888pbSE3ZhsbRUcxlSr6cmrUWWNWfmVA0ag1wP8WMpNZ4RSnpuiBy9tiwDsf37EETSz8UsqIPTSSzGShLE181x5O2fTupp1SMZWAz7/3tpxtz+KdfZjNhxalA91646z//Z3Kavk+zSldlAbJcjcROYXOmD3JFM9G8YWGeL8Zdff6vNWnPHYES4G9FjEoKKUwp3u9ERkZu8d7GXoCuE/Xr199GUH+BP+w0fhzNi7qxESdQh/dK+35MS0DA16FDB/AxDy2Skol5ziKgFj3RLAmr16xheFlacogbJ5gJ5ATr4pEb0BzwlI7H4bMVy9E2kto6KRDDlbCuU293TK8Ndg52EpalMeuDh9eW85LMGatLK9E2qQW+/nAytjDD0eALR6BxmxYIYYgCac1KJFGUnYt1zA/62RsT6cZfyWTMDUi1kPPnPclyZWcYAY5Y3fyeonFrTLIrj2BMljmr1uFvd95uUuu5GMslJCQUhVxs3ZGWZRJNywY9Zd0603SLeIca+bV+cvLyDZiPvedeXD1mNBpzUpTM+vXuj1OvugLvzU1BEeWYOnPermaatsOMuQsw4pSTNS3ZcnRIwEUgX8Lf2ivE56/Iqoi73Fn2Ceg6S1AvZBaZ91q1apXOC6/kD/ZkHeZmfxsSkC34/MsvmaW+PZISEo25orjnUDkOtW+HNRs2IJtxvsNCQxAcpFgshHNSHkRMJnwOw4BeJ+CzF8cj/OyzUFpDflkchP45iL1TurXBfOdBz09QVIspZodenuTFTfhbzg/HJTZBwfYsPHHlnYjr1Q5JtGWP4NMDF/+xnGBbkJrOcbaCfwxjuBDkFXfFaPC1ENzbvrebXf07exqbd7zaly14BG3siwoY8pYTxCUXXIhAavs1dFQKohwyNqdycbSaAbnCUMDIlF/R6efKv99qngj2bHvPz936n4mzr74WN990I2Jp4pidnY0KAngzxmW/hf08df+9SD7hBDz68nj07tndjGXegsW48/nx2JqXi48f/++eTdrPR54EBN4zub1EJmUGf3OOO3Gt+9gvoKuOOBm+TcrNzd1B7WUbGxjBzwncfvU6nrflGJCAEjhfP+4hPPzqq7jloguZiLgjIskXd6b9+AfPv4qMG9LRkDHSgwKDybMHcUGGtAc1Ux8CUZdOXYCk5iZ+imKoSHvfEzgFkvsuRH7VNto/Fzn5yRA6nDBkM+4jc0NXFeqFh6JT3260KCnB6nkrDAAG0MqlSWQEkrs2IO9Ol35y8lxFNMDsjdAoINeirOmfXYlLrz04rzausamOzBM1kUQRzPOKirBu2iS89dW3SIxPgKuowOTzTMvMQCafDELDQk389q1rU7Fjzs8Y++JzauZXSwbBOy91CcaMegENSQ3lMBqj4sbXiFqpCkB4Pcco7d47/4l+9BSl0Q4COYG0ad8BUYzbfs3552PVNWP+cMLpXx2kPXk4JUBdwZ1KxfpL/t5eDwsLW853/afZq/wuYGbM5uXFxcWP0ZV7Mxu6mI135LulYPYS57F34D83XEvoq8aTd9+Bzmechf49expNF+HBTPi8DYktWjK+eAFiSCuUkN6QAl5RWcbAXs0x5uwRePXND9Crf29kFtEqhgDtS/Q01i4Gyx0uuzaaejVivXtxlr9FA8hOTBjx5fyt8/oKgrUPt1DGjwlr4FjfuDUJ8LyLfLtmAjn8eNvURc4Dgumckw2PcDzVPlzQ5FdreH5WUCIMlSpmr5ZlTSTpHGVimjtjNtC0Ed747HP06NYFpYyrHhoahvwCgjwdhRRSOIABxSpqKjBv8QL4t+uONsktTFu/9vLq+x+i98iz0al9e2ymTGfNnY3eBO6GTC2XSY/bH2bMRHeGxu1CJyIX5WgCezEcb3BoMDn8nhg5+iqcwQXXjRs3OpPUr3Vmz9UpCfC3LS18FX+j79Ah7qPY2FguvOy/SLn5XSU8PDyDfM0rbPghzhRf8SItmu5zlvhdDdpKR40E/nvD9chlIKjhA/rh5X8/iE8+/oI8OjPxrFhhIv5lUsPMpvt5IDMZifOWw47Yl7OZIIMG3sgjDRJEUK6Rx6f+CHwGQfXrdLBzP7ISpHuKkNj8GnkBr1dCCgG9ijxJvVs1AV78tUOn8Lya4GbqevqToaU2/Rmw1+TBpwhNIdX8yVfRC1VOVBHUtgXQ8xcvw7JNG3DrzWMx5Y3X0YfURxWzMoWSWiqiVcuK1Wv5JMBAXFo4pkXQls2b8e0bE/Dh4w+b8f3Wy9KZ03FKr14I5VPO+o2bccMll+L5F1/BD1N/wptvTsCczyfi+muupvNQuCe8gj/HRRt9avDKHnU8LW3y+P3wJn+rK3u+bkkgk7+/7/n/4QFi76u/BeYa+kF9w+Qh27CjS/mfYCTbaMmN/1NtsRLYJYElK1dhwJgr8faT/6OyHooqLpC2a9+GpoRcmCRFoVjggQTE6dNn4przzkWHkwYjgAuHJQQhxYAR3y5OWipzbSceA7Cebrwctz7udtxAr+O6z92dP3L92NWmF+i97+Zaw6t48d0gvPFaVZT3AGr1PqI4eK0clQppU75jRxqwdg3Q8wTcd8lFGHjSSVxcbUxApbc/qRx/0ky55MlXMfqhuQNeG8gQAyVMjDF+/KuYn5aKvJ+mmsVkz+3s802TSAdSJ3//1304dchpWEtAX752NR567nUzGSIrDxedPxwP3vtPTor0wypnJlT2pWiOiknjxzWNmbSOuebcs5GWns41DesIvk9B162Doro3cPuCv9G3qUyv5vvvUp5/F+Wy571ytlhLXv3xwMDANaRhBOy9WIfmCrZYCTgS6NyhPeK5ODh39hwMPPkUFDEUwKrVa9CqJRcilcCCWnI5Qb5///54/NXXGXvkSrQacjqdk+qhnNqwiwuVAlp5jZr0b9Iuub8TnfcQ9C5wVhVex/OsvbO69h2g457aZXtqW08DcgKSRhtIu3VNJOpGC6yibMoIzql0nS/KK6CJIUG8fhR6HNcBQ8/siRNPeRrJiUloEBlFG3c/gr0LldTyfdnODoJnCjVx9Sttnsq+oYKmT5+Ged9+hnmLFv8mmPNSY/a5bds2bNmxHas3bTKTQoB/IBpG1UOrpg3gd5w/Bg062Sw6yyNWE4A0cWOeqYmI+4F8KlCpPemZA/alzkmA31EBf5MLSBu+xe/uGy5+7mbF8lsDPihAV6Pk1QvY
384+fvU1lPY8eXcH8r3ZnxnyD1bjnUJCFDf//gT9D/7AiQltaSten1k5OainKDetk1rhgkIMg5CWtgbyWQMimUy5oF7gckrGAT8BHQmPxzsT82e2rzjvk9gF9KyOK9m13nRcQNiDmg5YEa9nly32ee7zCplta7JRC3ITFHtVdBJKb/IhW2kRui2SQ/WbbsaTmwLv8Yx6EdLkuT+fZCUmMh7SUJCswTeTywCGSqgmjFaqsifV7MPOVGVFJWaDE7ZuXkwiSrYl4A2lJrxbLrgv/O/x3HvuEfRtmXyrn72s6e1gC6dO5OXT8BcWqwc37sfqrmgPGnyZISTWt28Ywv6dj2eC7IByMjIQgOOSROlCQTGNjVZBdKRSty9KZSBLXVWAtLAU4mhk/m9T+AkvohmwfSgO7By0ICubti5BjGPAfW3chAi7s/l567corjZcoxLoFO7tgjOTcePP0zG6cOGUXOlYw0XSNesS0E7Alo0g3MJUKuZ/eiUk07EvI8/w/wFC/DFD5Mw+aeZwHaGfU1ORCO6ztdjsK1QusjXzlXK35+RMH93fCdwkqPWn97l0FRO70yF1S1iHwWMn0IOhO6ZNCksZYyVQAI7E2fQKB7xTRrhRMaVSRoyELGMBNmkaVPEMt5MZFQ0QxlEMrhWqInjrpR40uodEHeRPikxiToqGJogl3biudTiSxmjReabARyvFicVgCuM3PaSxQvxzHtvo9dll+GOG8b+5i9DTwfxHEeTnn0xolUyPn/9FeTS67Oabf789fcYMnwA1tN5iweoefsw41EuQsIjCeLM6MQx+nEMnM0MuJcWFxtNXZ60ttRJCfBHiRWcgCdy+4STfy2t4sDG+4cA3dsVzWjS+J/qFcaCWcL3i3l8CP+zNee79TD1CukYfBfgfvDpZxjBwFCJiUnocfzxXKSrItBWYE3KOjTnwqmCeimkrpsac2JcUwb3GoG+A/rjmo0bsYFRFVMI/us2bMZG0h3rM/n0KfBmCAABmSnSPj3Azob4i+MDIjXnRuSrG0XWowdoBEgRogEnhYbcoqMjCdRRiKDpoqIgatPiZSht5ZUgWiGAA8ThEyQFir4KACYtnH1qQVVaM9Vgat2cG6jV5+bkIp8TRRkpIrn2+7J/P0Pb0PacSTr8OQktWbwID770InyiYzH5ud82U0ynWWLr5BboNuQMTHj+OcbLqTKA/slXX3L8MWjTvQ3i6ZCb41/F5NJFHFclA6RVICw3B3GN6vOpxlnMDaZs/DjQtLQ0A+g75XQM/hbr6C3zh4wt3KaRun6noKBgXrNmzfayLT+QsR8SQFeH/M+rwf1CUE8hqC/i/nncFDJO9mKOKsUdW44tCZzcry+6XnghPvlxMuITmtNcMZGu70Wo5CLkus1bkEnno2bURGPq10dBabEBzWDSIh3btkXbFsmoOpWUi7w7i4uYiMJF+oU5TAmsyu4jsBLgysPTj2Aq5yDFGg/g5yACq2LMKBa5YrfonB/bNewDwdgk15A2L3AmSAsUtXBbDfbh+YpEXWhSUtuKXV5FuqNUkRKLihnqNhfFjKui6/1IeQSHBsomxsSOqeG9BRHISxh/ZjFNDF+87140pVnhSsZrUXv7K3rS+OqHH3DpuefiJnqE3n7LzSYZiIstf/jjFFww9hYkxDdAx0hfNA+pxBZfJpUm+LvKSxFCp6mt27fxocOfdu+Mk+PLJB0019Q4f+Q6xhW337q/bu3xv0YCuex2CX97H/Ep7gsqHVyg+eNl/7+uP9A2f5i+nG268vHhIjajyI3J3IL/QJP20iNYAuJ1xe8OuOASnHvWCC58RjEsQIkByqpqOsfwfAS15FimTZM2LRA2bvgESLG/svsWH+xrgJtaOEFRP1wTBZHvwkgTYsDISHQLLT1oJmgSP2uhkECpZNZsjiuTvJ7FeK2yFZ0z+1xANC7//KxkHRqTUsEpi5CLC7oKE6ykHS7mOOUpXkNt3EPBiHiUw5SclPw5eVTQLDN1yxbMnjkLUz96F2NuuwNPEtR/rSjU7imDBmHZsmV499NPMWLYcLZXYWKku9lPCBdex7/wCh667Vb8/cIBaBfjgznbSvHGtB24/7//QuuW7RjOuIzjqkGTWDpzhQVyATUES5Ysw/UXnIMly5ejRfPmvzYEe+5PkAAn9Ar+5jZym8zu3uXvXW78B8yV72+oh0xDr90BByhufSFtXzfwP+JCfha33ptbI27O/yju2HJsSEC8t5IVJxFQQklDnHHGMONRWkpN15dp6/z83aQOXCgo3Eog92XckyCE0aQxgkkZtIWIO+dxIamAWiBcO+aKPjuKr5CdYOsFas0GLAJnaehaFqWLpcF1gb7MHjXZVDIoVyW17wrSKuWMuChwLePTgOKWa1FW5n9q1TwJ0MJEDlCGftFY+MffN/xI9/iTl89mhMV58+bio+efMX2/9fHHjKI4xOzv60Vj+9udd+CLl1/B9XfejQ8//hRtyZln0ykphxErZTGjEMO5zA61lmaSLVrHIYEufdHuQrRrGImgBn6Y+dMMJCW2pJ2/v3nSyOBTT1AJ86Qy/+p33082PL4F831J/089Rn3BJ4O/1YXcPiwtLf2+SZMmWYd6BIcF0L2DjI6O5ioUZAmzkO9ncxvKrSM3LZryv5Mtx4oE6kdHm8XQtgwV62Kc8EGDGQmR3qNuLlxqkVGZfPSLqCZ4FtBVP5cmjzITVFILmd2F0+OyXni44beVnUiLjdLaPUhuxChgV9EryRQD5AoGJkDWew01b9EmsprxAnU5+9Y5N5NGa3FR9ts7kz/zycCPE04AKRVx5mq+houSitwoCxpx//7MglTJazKzs7Bm1UrMW7gQy779Gnf8+9+4c+xYM14zqD1eBOS33v8QXn/6SZx07gWYMnsuQ+12Z5hfX2xPS0cptf2AAHqgkmIKIp2yaslyfDj+FVw28kREB1QisIbJPOpF4IrebfDS0nVI/vknDObE4VvN5Nkcpx/HNX/OHHw94WUsWblyj97txz9TAvxdFhLMV/M7l5PQRwsXLlw7cOBAaQmHvBxWQPeOlo8V61auXPkkCf+ZvLnzeVMDeS6Z+9bLwSukY+C9aeNGSM9ghh6a4k1Zvgw30WqjQ8dOiOQCpbwalbZOJHeQf4gDngRK+ftUVbmRl19sNpEt0vgF5m755ktb98iuNqAryYSjMXjPOpX06CiNWmaMOk8KnPtyZOKDI6vysDkv8DbOOdLuec6XHqGqo011ZEVTROuRjG1bsHZ9ChauXmUWezfRK3bz1q2I2U/6uEo+BZx55nDMmjULaJ6Efz/zPK684goG9QphXtNsJqYgbcJ70wTHKYj8Px2s+Dd7HnWihkCHBkGI9nPBn64nwQwh0C6+MQaWR2Ai6Z1irk307tmHfH4YNi3fiEf/+28MGHUFWiiLlC1/hQS0HLOJ3+dPXPOZSNf9eY0bNy45nANxfvOHs4c92iYNE8XH31N4+Gz+B+zD/1xN+W5t1/eQ09H+8YlXx+PBW/+BEy+6CAP6DkBcHJNNkH+WBiwXeZkeasFT/LlxAKLmapCbaOqFcIXMFVzrRywwN4DOd/HpvqQbBLxgHbXl7MsSXROBXj2ALjqFjQg01a6Omus9k4Z4cjZGPp20DLXlQqbby2Yi5y1bUml5swPzM7YjPMAXrWIbmkXS3h264Lm77tzt61N/0+bMxSVnjzRp8Ubf/A+0YzLt264ZjU+nTMPAAQMYZ2UDaZsAs5jq4xmvPyeREHLhG7ZsQ/+rbsE5Td04LzkEUUVb+cRArj80Fut9YvHKygI0qM/okqStMosLmDs1CGu/+xr/3955AFZZnnv8n70nSYAkZBCSsPdQFBAXCla4Iu6qrXZce70djmqrVrR11Kp1tbV1Va+1ImjRijgARxVlCaLsERIySMg+2cnJ/T3vCV7KrbZFQULOC2++cb7zjff7zv99vv/7PP9n6Ow5evexR7iew/4z/7vr74EL2BMBxdz3lYD5AqavEyD0pdMr/6hdD4uFvv+Bu2iY+U1NTStbW1tncuHTqSO56GS241frLz2hBa66/Fu64usXq39Wlt565hlNOec8DRsyhOX+LsgoJBw6g4QQoDH/bdQRUMIgN87bJbSwkRhb7YDfLG6TCoAKYTNL6mwFnxP3uQE2xr57ugy4gXsW6BhM
384dItBxKBA3AsB5QA6AXCS4xElyhtDdW0Vruu10CmVquDNYveeUm0t242rIg4J8PwZSXHKS4rgDaJZVZ5CEnaE/V1i58LiYl171VVaunSpmgcO1S9u/6WOHz9WI0cNV1FRia7mLD78cJ3yoaGM/zZvGqc8addibwZcTCec/5pV66T3l2nwd89UGMksOnlj8RJ92snYQnl1hzZu2Kqrf/t9BmJLNPeuhxUzOFXrN21WZmpfjuAvh7EFzL6oBM8+pr7MOM0LAPlO5u3pOyzlK+26AfGgmpqaYfRis7joqVzxEGoi9Ss9r8PS8v6DfNoCG7du0ynf+a7qVpGcYcQ4nX38sUrL6EfMT4qMew+DD3bgDqh3MBDpxL2CzZY2EIeWcQ+Mb3DS7PdPnx73gY8bN5A2+9s+tHnzgDGL2/bi7QhQYwOeLKTTq8KXu6auRhVMS/eWq5ABxlqs80Q6mLCQToWHGndux22Vx1uj2oBm9hOorLA0Ilvj9dGO3QrYsN5dW+yxx+vKr83Q5IkTNRSL3KJhfS6XTSouKdOIM87V9PEj9fNbb1YsHUQLg7PWofBbcJ42kagldkIH/fSmWzTv1d/qvllnqG9LiUJwUwwiwqM+IV3PbvKoCF+DmaecrJex9uMYTF7wwH1+q/zTp+vwzIBlNdy3zWCZ+ZQ/D838EctGuRzWckQAJ40RijbMGAa6ZnH1U1geSGPEMn9EnN9hvSM99GDcc2cVL1i0SFfcea+8haVKHj5QSbgzJsZFY/nGO3CPJvenBQJFwDmHkhkoGJrCOG4r/JjMLMfEJggIa90GQJ0QGAOMjUSjNjU1qtX8yD11qkOnvJ4w/eqaelUgolVaTTxHIN5j0VjsBCUl4sMdY4FG0C0G3m3t5qPeiksifuoMSHYSkdlB9cIW9g3JUAmWclN9m743c6ZGDx6iofjRZ/bLVCJBTMFY03W4PdZzDo2ME5hrYURUrG697Q49/NBjevXtxRpM5GwDqpMWCWqA3o5ffGR0lPN7n3HWOcoIqdLFE/IU11RGcmmyK0WGqDgkSY+v8ygmMV2FVXXytLdo+0sv8Lbi/9m4B+Iw/OG5recw23j23mb6AkJaq7h/h5Qn/7zLOuyUyz86GRrA/DCX0zhr8V8/FvcwA/bjee3M5TNfksp/9EX/uqOmBQzEzP/8AnRdzp81Cyu5TiPPuxBmI1iFFaXaULpD1a3oreDCFxUaRZ7OcJdSLgLePQIvGLO0rVPwqQzSOQB6jYhlteK9EgJ1U9HskTYVSR7iOYIIgY8j7J9I0t5otcThGpmUEos0biNBRR6+i9Xd6VE9PvKddA6djMxaoI7ROmbld3biHgjVEx0Yo+SQPvioezU0MUE33nENOuijFE1HwGsAAN+o4rJSrHKAn+tznjG4T3Z4AWu0XY45doIe/uUdKthZoDEMFLfhLtlOxKxdBy8Nn6pOeugE6gPCeFMIUIS5eZLhqS0kTtv3thGgBeXDW8oeXBzLlizyg/lh+kVwjxp5ZndQ32P+BWIWlpu+1WE6/Gce5ogA9H1nR+NY2OtS8pmuwlqfzPJMlidQs6l+YKcRekLhvisBL5E0OOzIvrh2eJqUGB2gPuFolWDtWrLlThcgZPQJVnMH1jOuhwbqzl/dfNmxrCMjjSaJhScP0ejkOGWfl8/nWMgh7QqH4rBMP1s2l+FxUoJFHCJPW7lagqp8sUfk6wyB1jE3m04bIKXhneSvIhUDtRIZFAW/3qj1RcgR1LZpypxjCe7JlQdgrUKsy0DZecTw3QCjh9iPJciw4COjezhhjRg61N3Ot998U9OnnepcJO0twLaNxlXR3i7KkRWwdH0L583TxrwMtZERKpSs19UVrfq4MkjhSBO///x8tFz2+N5QesID8tVeo2HULp7RFdSF3Oe3SNLMQ3BklCP63Qz/9V4002SqDZyOpfFymI85MprOfxaHsgVee/sdnX0G8WiZvZU7JFue1r3YzljXwa1w1eFEieIBA4BbdQOmjmrBMGbqA1NjXkhCEZaq3VAhl8zO0ogJyfDkBWyOH3dYNHRLo3YXtahgQ7vWf9wCDdKi8tZdlnsZXXOsfkDZBlpJsa5oADwxtJd4H9BOvEka31+rsOFj9fsb52r1KoS3brpJf33nfQ3Oy4OTJ/oVt0ZHfWA924hYAElVzc/dLHvjhSJ5s2in47rr3l/rd3fcrr8sXaZxY8YQ5NQEsAfhseLBu2UXbxkd2lO8Wz+49Sa+59XJA7MUweBtRSP7gxr64JXFbrtkxhr85ZC2QAMYVMCztQZ6ZTFHWmJJfw7pEQ9i50eUhX7g+TOwYD3fCwycvkkjHkdjzmA6jukA1vs59gMb7ChYNjA+Dd2T5cuX6+Z770e1MFy/gxdOSsxSX6WprqVKFW0VAHmjy+MJrBmCO2g3KxoIBpAtfB+3RS/+7N5mNda3kLi5gmClanRhCuHg4+Cm0TnftY39pDPQGUVADmJapMrNiO4vD4OOHtLkBYHsocFhSoxIUgvc+5ailQicejVxyrk676Ef6oQTpygtNU3NpH2z8tHmDRo6dJCCsfabOS6mNv9dl+M6GRuM3Tdo24r1jbO5TmEw0wD9N489pl8NyIdOCtOO7TtVimukefME8TbSG9GyW669Tm+TDKQCrxtWqxW+f/sbS1ROZGo4VJW/HJoW4Hn0AOQ72fsq6ivMvwmQHxYXxIO5oiMa0PddUHx8PPmz9FeomLfxYT+W+TOoRsUYxx7H9Ih+0+D8/OVfaIE9gNPI4cOVPeF4LX7zLY2beByJHcoQ9lqi4oZa7dm6Ft47XoNSMwDsZtW0VgFurQqE5wbDHdcNZY51jCgXY+pR4dHCkUXxBCrtKW5UfnsiQTdx0CtYuOV74aiJa2uPZL4F1UWSWLOTLQV7FREbpYyYXviet2tvQ51KFr0l9UlCNfIiTbvmNI0bN4HsRCm4D+I5g2dKTn97cQzRqtUr9PXz5jhqxfnR8+syN0vrpAyEbWqWulnpXgN6fOBHjByhex59VD+67DL9vn++03OpJx+oiYHBLrlEG96Wdg3KH6K0vhlauPAFvYg1n5KVqQraCwPnX2hZ/yYH0QJ13C/jyFdA573CW9M7/26yiYM45hf+SrcEwvLy8uiIiIjxDJqeQYOPpxVyqUbP+NwdvnCz+HdwuFvA8o7mDRiAnslPdTV64b379lEVEgHLsEovPGO6rr/nbo0C/P701NP6y3vvSE3QL6npSjPdF3zI2+CeGxlstKTNNmiKG7kq6ARGZaa4Qcu6xjqdfHqSEtM65WE9OIv1HqmirV5t3hhExGpv5Q/vrYA2r9a+X6TXlu1URu9YZXMeZ82arX6AaXa/dMXjedJBB9JkLo+MXJpWewUa69fdfItenDdff1v+lnKIzKxnUNcA3KgXsNyMdd8fm6GG4ENu65s50WIClO6+5z69Pm+hfvzLW0jsPF7NyB9YZ2CBURGk5qut9pCub5meuv9u/ez2X+mq7337cN+innA8uyU8WHJADr4sgiV4D4yp6S4X3y0s9AMbMyUlBZcFLeUHsxy5XgtKmsbyMTT8QKYWTYGbgb90lxZ4d+VqnX7SVD34+JP6xgXnw0QEqGzvHtK5hZG2bou7jOPHj9Ppx03SiEGDdPmOXfDWq7RmzSqt37FTWzYRRo+uSd7gibgIelULYPdPD9CpQ/urF7K8n3xYrnWr2/XKS3VE2wcj49sL6zwA/pyozz2W4zQEjG1RUFixUrN6a/TYk6FOtuie789X6ElRGjxsmMYMGqpWeO16NGbwe0FfBk+ZIBJoIKFrnPcItnnxD3/Q8395EaXE6epNgoyAYJP1xSoHwC3WyYihDjoBE/ayhBj2RlJWVuHkfWd87Wsqr63RnU88oZ9AxYwZOcZpsJuHzbbtOzT/ry9p9cLn9eRzz2nWNHvc/eVLbAHTVTE+fCv1AyzyVwHz1Tw7CAp1r9ItAX1fE/NDsRFnc3dcAbDnMj2FdZNYZ+4DGdQoqr8cwS1wOxIAtyMB8Pj8Bbpw9llomZCAuboSXjsc3fRWrdm0yZ19Tj901HFFtHRveTkDlJOToxkE7dRW1uBT7lEhFv6j85/RxxU7CExK1ODRCQqPblVlBcMwgR2qhMYYkNZH5bu9em/dbjE6qpyMfHy925WbHaaFb6wlQChG3vG71NxQqmOnTdSdC76NwNbvdcoFF2kVQJqXna1WNNODzfIGngnYdN41XqiTNHjuOKiYzVu2aeOWHdoTu1cpKUl404QjsoWrItuYL3xdXYNqa+tdR2DDpZY+rp2BT2hFnY3LZunjj+u2X92rG6+5WplZ/RlLeFePEmFK3jt9+PEnnHO/I/hudrtTawYzdkNbWba1vzF9lWQ9m8GQwx4Q9GW1XLekXD7v4kmHl0rvOpkbdDLbkZBR/anxVD/ZSCMcSeW5lxfpsvPP0xNQFWfPma1qxKk8aHoH4XseiifHhq07NP2iS3T+SVPQAn8I5cFm7Qa4zYnQINWSWUShSBiCT/dfXn1FV8y9SV+fk6khY8LhqOGX4c4/Wdekp+a9rVknTIdrj9PCpRt14vCRcOZRWop3SmqvIE06tT+DpdX6459ex7NmsEYdz+OC33l+7gztxPvlmq/9TBdfdY1umztXQeiqNwLqlrjaGJFQ9FaaW9v18fYCPfHEk3p5zUrdf91PFMMbQ0tLk4tyDcTKNldF49VNvtd4bwvz5yKw1o1jR7q3o0VR0TH0M4165s9/0kck/whDoKts+du69ue/0HXfu+LTAKoj6R5203Mxf/EC6kdUi+xcSodaBJBzR7t3OepAjh62hMGLP6NudhU/nOu5PY8A7kbPFHDDcD3wlyOhBZ5fvNiB+e/+9GfNPvss/KhLtRfLlbAaqIZOKJcqbdrGG/DOzTpx6hSCh4Id2LnMQ/DkIQBpANRFKLIAG7es1xVY99Mmp2CZRxBMtMUNPlaUtiEhu1MXzZmq3v1DCVbaq441a3XeORfokku/odxecdpcUK3iwhL1yQzSDTfMUGlxs0p3NcHF12vjpgXqNzBCV9x3pZ68+y6tWLNaXo5rYgNeOhxDZMNoCxiKJzhp4MA8af2HKi3f41LPheCxYokwXGo6k+HFYyacpBMhwfDn1htQjV6yVHUJ8Ym8GTRq59atvHHUq3rlcmKfwrRuwwbd8N9X+sH8iz+06FOKVzO9Aw48wfQG6g/hyB9HX2rX0QDmXA9+Wkdp6YraegMgfxNZgbzQ0NApWO7HAfKDWJfFZfut9q/o3r+zcoUuPecc3f3wIzrvvHPRTSlXE6HxwYBeB3xzFcE0eyqrVVha6s5w2LChzo3Ji1kcihufASkOJqRYC9XOkmL96v5fSyNz4LpJOh1YSoi+mb6YYDtKNfW0HEX1ClHJ
384jnrt2FWqBCI5M/qmkkAjXNNOPk2rfv0AAO5R76w25Q+N0ZkX5aqkZBdSuCbTW0+k5woNHT8cFf8UvbBggQYO6I8/C3YQbocWyOTlfI0rj4oIVf/sTM4tXEUlu5Wbn+/80J1yJO4qpu9oXYBlQXLjo1jpPJM2PorF36gNGz7WwsWv6OPXcXFGOmAxniwT0Uf3ly/cAmaNF1I3U983a9zj8Wz6ork7v/BZHaIdHLWAvq+96HltwGODVWQFngXUx7FuKnUU8+b2aIOo/vR4+xrsEE8rycQz46ST9YMbf6ZvXXopPHmD+IG5sH/YB2iVdvJalBGV6dW6teskVApT+/QlmxAwDTVhCZw72CYCS7e2uUE3z/2ZXntmnk77zskKj23Hg6UO6zhQ9Q3l6pcXodheXtz7atRQE6OCFRt06TevRRsmFjmATg3KG6Tpk47T4m3vKrO8n2rw8Y6K9SihN1oqFhwEdO+pXKeEqDCkbyfqqbm/1gXnnqP8nFx1OE0WdNQBZPM1D0VTJhWf9AFTJ2nj5o2aPGkydFCYWi3vKB2RUTRwLfDpvuQc7Wi2mIrjdizyBW+8od1vvyGNP07PvfhXnTplkhtIPcS34mjefSu/6zIMt51US/FmcSzLeXsvZ57e/ugtRz2g73/rCNE1l6RXuclLGEQdwE12Vjs3OZ/1Zl6Z62OPahOu97AVOlDlZGXp1Au+rmt/8AMaulOV5eVogIcB1hZnEwjw1sJJo8OC1brsz0/rku9diQxAPADd6MLmTSzLZGX5cer1ZUsA82c1dtZMJWV41Blcjd95I4OVEQoAOFGkpbMguXRdlCpL6deT8jRqxGhFE6UZjviWeaLMmPE1Lbr9fRVtb1VKGlIBiH61d9Tiq85bAK8BbS0BqukoUhLui1ZWr16lIYOGENGJ26KBtJ03FFAo1EovcqIeT7TnE/feoQYSY/fq009efNkDscSNnG2hE6jk+kxPffOWzXru1SXS9g06ds65eopEzqMHD/IDuTXywRVr4mp+y4U8Z1sMwJlfxnOyhWmPoVp7JHhxg81q32SVhBvPwsva4OkkgH4U0xyquRL4KRka4cssZ199lbwEDt11043qmxivHYS028Cm19xFjJuGkK4G8ALhmGvrfFHVgwfmQ02EqBJOvY1IyyAiQIMBT16dte7DDyX0TQJCGhWXglNgCDlKveTgJMTe8nBi5GMhh6qyMFR/W1ugs6aerkEDBykcazoUSz+lVzy6LgN1y3ev1U0/+RYSticAwEHqk5EMPYKFTtBSSHAL+2tQVAKOJifnaOErr2nmrP9AiTEMwOcxwtLneXIWeijgPQhQNrqnAus7JwdOvZ1EzzVVKiwo0OaPN+hl0zbfYEGH0m0PPajLzjkXAbKwL7OZe9K+eHBkroXFVNMdXwuYv8t0JUBuuuT2eY8qPRLQ97/DXQk33mLdW7z69+GBGMv88dRh1GxqOjWaavaYvxxkC8x76SW98cijmo887vD8XJURqem1KEcbVWQSgC+3BePU1XkY6IzSXrxZrOTmDrSP1YKcbCfWuRdT3n6lDVA1Jkil9nBolXbFJBhPDT8Nx24CWKG4AwZ0xKi6KFTrVzagE5Gq06adTsBnEnrmIQQeNSsRi7qxsV3HQnV87/s/10O33aAd28Zp7MQYZQ5MVEgE+UYD6sHndsUmhGrchHwtuGOtkxDolZ6pdo+Ns3E+uCRaVKflRu3dt696nXCi1n+ygXR75fpkxzZ9sGSpVF4mZQ3QxTNn6JuPPKBRQwb7rXFa7yBLA8aXDbDswhJfT+e+3CrjZiWAON1pzy09HtD3v/VoNPCr0195WBY1NzdnkrXmGJYn8tDYQGoGtS8PjPm2+8F9/4b7J/MN6JBffuGFuvaGWwiKOR36pAFNFkSosJQtQYUBteUJ9RAdSRtDNQeprGtANDMjw+fvbTDOdh1ue6MvWtE7QVIjIkKJKdArYS3w7C1Y1NGAerTaPFEq3OzV6veqtevNNZr7m0eUkZGmKKgWexOwX30nFn/flBRygBbrhKknoPFyt+567I8quH2lsk8cqtFj0pWY3kuhMfD30ZFQMiGg9m7toSMZbNY31+EA3fgirHSz2ONQQxxOpOhOshV9sGGjRmaka+711+u0yZOUj+a5X6v8nzwsn/2xxZzYa1sRdSO/ww+Y/o3fbAHzJr/tL7SAH9D/wWPAA2J83E6rAMwCvGQGIOdrEgNj+SyPdUbJpFLNcjcD0l8+owXMmp54xmz36eWXXqJmeOlCePNggLWNgUfzxw42eUPWNwLoMfiHh+KHvq1wl3qPP0ZJ0CLGPZvqYQiRoxZKb1rhLVAuDQC4gr1sg6Z5TDtBScGEzIerurRDG9Y16G9/JoIUzL35gd84l8JIuOzg0CComzaAFYqHUdhguPZkpHWrttWgST5ev/lZtlbiMvj4iy9r59LFvqs6KVmj0yoJP4Z3GTteH3ywShPGjnPJNUxSN4DOqB0/c9N+iQmLVH56Py176o96Bz/3EXm5n9Ey/tX/QgtYRLgZWUapbOV39yFv0MtJX7k5NTW18V/4fo/bxA/o/+SWd/X+zktm1apVT+fl5WXzYI3FajfVx4F83cA9jRpL9YM7jbB/2bxjh3aufFfzkXlNy8nQxq2b4MBDFWSjGDSXGbeheKXUEFLfQMBOXFwCQTbtWg5lcf7JJzAgGssgqfHYUBvmu03pwLLmDUqllXUEIIWqsTZcuzY1I7IVoF0FtXpvDX3x+lKdcfG3NX36GQxWximWdG6pffo47t2RNnDs3EOolxY8bELhu/trZ0Ehx4/FL36Ozpx1purQYy8p2+sEwkpKi9x5JIPpJWUlLvtRONQNAOOoE6N5WhgoDQkLVEZWtjvPUIv395d/pwWs/6+nlvK7203b2oDmat58VkCNbmPerHR/+ZwW8AP65zTOgR+NHTvWSFMTF9kCwDyLG2QGOh5jmDfr3WiZdB66PtRE5kMP/H5PXJ44dqz6jDtGkeTTrGioR8wKUCXUvRE5WlMUbLWMQAD4nqq9bjmShA21lbxZb/1Yw6/8LhRJmBrRCDfwNVrDuC7z7bZB0XakAFpRO/zjL57CZDcsoBwzVudNnaNxPxqvzMwBoH8Hg6CdykxLR+fKBko72Jfbi3MnNPbM3CEjI0OVn98f7h6feCgiS3GXnNAfwbB8J5LVbN4zgHcCHU4MLpMRQeQANSlHioG6Ve65O68+qfbyFqgn8Vu//cfXuG38fz6zBYz9qqaW8bsxS3wTbbkaH/0PioqKduXm5voa+TO/7v9g/xbwA/r+rfFvzPPw2YOIKehomeehZVLxliECRSOpg/ncce7M92Y+ih97j7PeF76xhOHEeJURgj99wnh9/7bbdc6ZZyk9LU3BAG0rVIqpI1YSIWo1JAAPFRrMg+6KlSz4c2s0s8wtQtQA3YCT9nQAX48y4sDkZJ141k/Ul8HI+KTeiqPjSMaDJpBIzhYSP8cnxKlPb8S4bIedZCuyjsEdxbTKmbNXBIqXziEIoO+X1hdNF7IgwdEzhuLSwgVAB4XjXWPRoamJvWS+Ew24VQZYwFDX9+2cbE+2nJgQr6lz5ui115fqtmuvdufrDuL/41qANrL0beUsGIibJb6J+/Ih93hNeHh4MevMcPKXg2gBP6AfRKMd+BUeQOMCdnfVRSbvi4WRx0M6iofXXCJzmKaynQUxJVJDqEd1MXC75OzZuuLqa/WNyy7X4jeW6kYkX+/7yfW69bd/0CknnqAUwNGSITfUlzs+G49DMvS0aA+h81aS4catmH64A3TgvR0unXZ069vWr9WZJFq+6KKvO4GuVtwfLYFyABx5dEyUYvqk4uMeil6KpYSD4wGJfd/0/TXw3bcv81Kx+Q548DBylFrgkhXb0qx6o4E64e9byPtpA7kBuFvSC/i2MTBnX9ZZWOcTFxOtYYMGatlzz7rPe/of2pWkT501tIMBuHmn7GB5PfMf8qa1kfiQGuZ9PWtPb6wveP1+QP+CDfiPvt4l77uGz9bw4AYxiJNKyPdwHtqRWCODmBrnnmKV+Ti2OeoA/gM0U8yaPnf2LI3Ny8FqTdCY8aP0LLkxb/zPb2nBjJn6McFFo0aOJDNQJwkp4LOx2o1e2Y0+uJVkAn+sp2wD9B2ygq4mVRtEqL0P4Bm4iIpGxCpYLY2Mn+HLHk9yipgIXA4BcrPEO9qJKQFwgwIIY+I4jj+3nVNsmfZ3QGxTt44t2gFqc0F06+hM+KpPaR/KxvKCBkEVtTEI6vvGvv1AsmDhmw98JJ432XDyVvZWVX/aMbkVPeOP9XT2mlVBG+OKpBKmZoWvxblgLcnAd9O2fs+UQ/As+AH9EDTq/rvkwbWH21ytrL7Mgx2Jv3s280O6ai5TI10dwDONo3b7+3Luf8zUt678gcYMGw4/XkmIv0ejhwzRsJvn6tSTTtH377hL558yVf916206Zsw4RKvC1QnNUYcMwK6i3RIZeqIQvGpug/rAagYIfAALaIZiQZvlbSUQcI9A3Cp3QLbTSbH8oiZn29LaaOjvS9TsBl8xAH1jqu57+wB839S30mfBm9hWZFQsHL2XCldv2TKgd+ihnB+8uU+a+6H9M9XHAKgYm2c14wAclmnv3n3YZYheXrZMl/KmcjQXe8Z5rm0w08DbUSlMt1NNlvYTrPCtDGrW
384sZ3fCqdRDmXp9sBxKBvnUOybhxqk0SddVUbPREZGmueMA3is2n36Mkls04vt4/msW4USVlRViQhcnXvObGet7gbQQwHsxrp656Z44qQperH/AM1/foHuue4aPXfSNF04bZqOm3AMAB2idzaihTJ0IFrlUXiWQJe4G2HWMTMAqYF7ENy7FYs0tajPNlwYvei9eAH0UDTIw4KjcIvsANgBYzZ1XzXENYu7yxrfN7X9mOUeYBY785HI2G7fWaCXFi3WWASyRo8YrjZ02t1rgp2EAbcDcJsxOVwq/+ycHMiznzjkCoaSG3UtXj1HW6Hd2ngmzQK3nL8G4uZauIPqAJxneCtytLVs57t1fOAvh6cF/IB+eNr5M4/SRc+sZwOrlicyBjqhPz+GgdALlrQjh/m+THvxsass2yCrG+ez7xxpZe6DD2r8GTM1bMQI1TR4XKi+/bTNo8ULlQEFpXSSP3zn8stI4pCp+x59VPdc+yMVXPYdtLiGqra8QgMmHuOs9hYXvGMw6wNlOA2fRwnAbCUIQA0xBUb0yxuwzL10CEWIe61/f4VykA0w6iOQ7/h6hf8Dc/fl/f4YlWLeM9bxWMKMH153vd5/caE0fIRee/QPLm9oC3oyIbwR2LXY0R2Xbpa6dRD8dxrnrDd/9IjIaA3HB/3Zp5/Wr6//6X5H6nazdqkWmWmeKAbglczbIMdO6hbqJuSqbeoHcBrhqy5+QP+q78ABx09OTq5nFYIfrhrPG4K125dBVgP3XKyfPD7LoCZTDeATWB8PqIQz7zNbmfmqioVfv+FaAAAIw0lEQVTmP3X33Xro8ScUGxMDH14M5w09AixYgmQXQwR1YRRMLaH+KQmJuu4//1srRo/TI3f+3Hfa6dnKIDjHstnX11RjAXddlgEzVrZFZBo/b6UTK9yiTE3G1njzenzB73vwAS343W8VPWKMXn3maaWn9sHjpcGJaH1WE5nrohU7kln6ddUYoEHI+Xy0TnsrK5Wd3d9x7n/XMXBMOzfj9H1dDt9nuQlrPpiOIbNfuhoKdzvaJhj6pzsUniMGHVTLM7UPwPeyrojr2mbUCZ9tqaurKz5a5We7wz36vHP0A/rntc4R8Bk/JkYEnZ5zIdMldkq4SMYB8FkAWy4/tP7UTH6AzoOG7Y2isZrAfBSbH1Yk+WTzFgd8x0yYoGY8QhqpkTYkABCbqRdglAczFu5fg6ui6aDHRkTrlFOnafDwYVq2dIleevT36kNIvj2cZoibPK2ZwNZZdBLdGUR0qEugzNoWOHbzQjE4jiSZ8l601Bf8z9OafO75evvZZ4jO97gky81Y3c7NkO0OLI5uMXCmNhGwFBcbqwdJaPHA/b/RCWRLGjqEfKL4zQfZeVin4s7n//ZCWzv9GJMU6GSwtBU/+8AQZAVS7ZbARRQVKS8ry80fQX+syYz+M8u6mmuoscqyyc7as2YcuAH4dixw80Lx9Xis8JcjtwX8gH7k3pvPPLOu5B37W/EBNTU15i3TD7omix9fFl+2aRrTXqzH1HSDrbGsi2H5kFnzt957t2ZfApXSLwMLvNZZ5l60vy1c37n5GShDb5j2eYOnBYojkqxs8N6A5IDsAaoeWa2X2LQvGuiGIBZABLHuLHLOnWUv4Im2iiE9xSJG3b7xcDGd9PTUNN39wP266huX6sobb3KWfjPWuQ102je4dve9A/8A5+i7MAjK37rGeg3IG6Bf/up2oljDnF96B5K+5qduxc7D9uez1n3naDSSF0rJtwHulVj58bhlKj1Lr775jvIuzfJ99tX8tQEAe/OzgUmzvg24q5g375NdzBdA7xXQ1rsAb5OgpdH9pTu2gB/Qu+NdO+Cc+QEaStmP1Or6fR+XlJREIiOayo81E4oig+3SmKYxTabGMe8Anu1NtsBqJPWgLXoDy9eenadH/udPiomKIDkEmi1I31pCZcNRYBBqxOev3eRpUhOcdEQYfQvgSKI2kka0qAZ6wwqdFmvoAwDuQHMbYQdmoQcy8Gh0C+fvtqv31KkJ5cRQ1ndAxYQgI3AW+uhTjtvqKJ9wjm9eKjaQavv6FIXdt23JB/DWcdi5sWNHkbQQ3GQa59YZ8AbkG/C0j61jYBvXMXAKpgnTQQfThAXfQcdlLo1e3hjM7T0Gzfax48chHVDSdbRDOrH+z0LjHXAztUHLffNGm9hJFNN2hVxPAR3h7qSkJA/rfQ3Ah/7S/VvAD+jd/x5+5hV0CRhtYwOrnxbAKIoAmT74xu8D+DTWpbOBRbWa22S0bcO8qzbPOqvmL+9DUmYOLNXosRjYjoA6cRsZ8AKKDijdC7sBISAKl15TV818h0tW0QkQmiBXE8slJolLmH5CfKyjZlxOTuPIDXDZn6GPgboBdHBGFp4zvmO2w4FbEmkTyzIA7p1kQUvtDFC2gtHWCdg3rfLXTuKA4s6RdTY4Gsz2IQyuGjAbP/7/FBK7Ohfbj71dWNCRuVYGmK87/SEvCwrkTSIqNEK5mVl6kqQYd7Et7XnAUf+9Rb7fRhs0MUVyzGTHfJXzMGA2y9sy8hRz/cVcewkdeTH3uASXwXrWuzvw7x3Rv3V3awE/oHe3O/YlnG8XIBhHavXTsnXr1jDczXpFREQ4n3is1hTAwYKfUgASW2fcfDTL+wA+gvkI1llYZfhjC+ZH5U6eGpDmUsZBUeBOaCjirGCwzGgSw9Jm/M33krDCcnFagI7x4WGAdE1llVZu3678kaMUHRXpCygCHB1ZYlhINWA3TRYT1Jo8bJgT9TJ4DrTITQDT/lmmIQNYK5wff9nCDvx3y27BrbPPwHHbvSvmvcJoq2/eOgLbLyBv+7HdcL3umkzK17ZqwDo3nRcTGXOF7c19MowAowxkDprvvcu3/nP+cp62qxb23cx8k01ZNo7bPEwaWGdT47JNKN58vStsyrpy7s0eYhvK/QOVtEgPL35A7+EPwP6X3yWEZK/m/48jADgM76J4VU9C48QseedlA5gkAPoJTBN/f+edF1/wzctiTSHR02ReJaZ/Agg7mAUImQ9B1Kq6qtSFyAc7btz4cLhrALho1y4V4v992sQJ+JFDleDiaCBqgO7zETe6BnwFUG3ffdEa31RU6MA0GqrD6A7OC1rE/MHdV92fLij3rTBEtjmmZnnb1Irbv32JdfZtc0GMRKDLimmvm0SBFa7Tgbl9z+aNcmmFx/d91QDfzpfiqCWixbrkC1hfTjsZYLdwjg6wbco+HIAzbeRzR5uxjXmYWN0H3uVY3BV+S9sa1l8+rwX8gP55reP/7NMWAHwM+Uyf2moB9e/KvHnzgsrKyr4xMHcAyTYVUA8HjfaJmbYGnEwh5wHaxsaGgCoy+QQBht725gADReOvK5s82oA2S8C2DWT8mRRg4fxsC3WBxwhHNsvcyH3UUqA0cFFkX8lx8QHPPPyw2uC5O42rR7PFgnzsYG4ggGMaXhvIWnHTLsB1J8SxbQMHxnzOWbJ3zhMwN9pk2RuvC8W/zqknnohmenJXJGoXYPO9QKx3kxZo8ng6g+0kTUeGf3acDqie5vr2zijOyy4fad5F/bMz10GD1HLNNVyzgbcDbparGTMwK9z3WsAH/uJvgYNpAXuW/cXfAl9JCwB8gQRSESgbGQ3ARQN20YBbFJZqOMvhTMMAuTDWhdt0/3lOOIzvWw1mu0C2CeJzH+Yb7vsGd5GJ6bSPbdmqFWOBcFsPgOkxRPctM+1g3b5l+6yd5X0WtZuyGzdln/uWm9muhfVNnLvHKuft4S2m4aOPPmqcOnWqj/dh5/7ibwF/C/hbwN8C/hbwt4C/Bf7lFvhfjAp2Xc9WJTgAAAAASUVORK5CYII=",alt:"AI Chef Assistant",style:{width:"100%",maxWidth:"280px",height:"auto",objectFit:"cover",filter:"drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08))"}})}),U.jsx("h3",{style:{fontSize:"20px",fontWeight:700,marginBottom:"6px",color:"#1f2937",letterSpacing:"-0.01em"},children:"Welcome!"}),U.jsx("p",{style:{fontSize:"14px",marginBottom:"24px",color:"#6b7280",lineHeight:"1.5"},children:"Ask me anything about products, prices, or deals."}),i&&U.jsx("div",{style:{display:"flex",flexDirection:"column",gap:"8px",width:"100%",maxWidth:"320px"},children:a.map(e=>U.jsx("button",{onClick:()=>i(e),type:"button",style:{padding:"10px 16px",fontSize:"13px",fontWeight:500,color:"#374151",backgroundColor:"#ffffff",border:"1px solid #e5e5e5",borderRadius:"12px",cursor:"pointer",transition:"all 0.2s ease",textAlign:"left",boxShadow:"0 1px 2px rgba(0, 0, 0, 0.04)"},onMouseOver:e=>{e.currentTarget.style.borderColor="#00d47b",e.currentTarget.style.backgroundColor="#f0fdf8",e.currentTarget.style.color="#047857"},onMouseOut:e=>{e.currentTarget.style.borderColor="#e5e5e5",e.currentTarget.style.backgroundColor="#ffffff",e.currentTarget.style.color="#374151"},onFocus:e=>{e.currentTarget.style.borderColor="#00d47b",e.currentTarget.style.backgroundColor="#f0fdf8",e.currentTarget.style.color="#047857"},onBlur:e=>{e.currentTarget.style.borderColor="#e5e5e5",e.currentTarget.style.backgroundColor="#ffffff",e.currentTarget.style.color="#374151"},children:e},e))})]}):U.jsxs("div",{style:ws.messagesContainer,children:[e.map(e=>{var i;let a=(0,M.UD)(e),o=(0,M.f1)(e),s=(0,M.FX)(e),l=(0,M.iZ)(e),c="user"===e.role,d=!c&&t?(0,M.Oq)((0,M.pq)(a)):a,p=c?[]:(0,M.k4)((0,M.nw)(d)),h=!c&&t&&!l&&(0===p.length||(null==(i=p[p.length-1])?void 0:i.type)!=="text");return U.jsxs("div",{style:ws.messageGroup,children:[!c&&s.length>0&&U.jsx("div",{style:{marginBottom:s.length>0?"8px":0},children:s.map(e=>U.jsx(ej,{tool:e},e.toolCallId))}),!c&&o&&U.jsx(bG,{reasoning:o,isThinking:l}),c?wl(`${e.id}-user`,d,!0,t,l,u):p.map(e=>"text"===e.type?wl(e.id,e.content,!1,!1,l,u):"catalog-item"===e.type?function(e,t){var n;let i=(0,M.K2)(e.item,e.itemType)?wu(e.item,t):(n=e.item,t.renderRecipeCard?t.renderRecipeCard(n):U.jsx(wi,{...n}));return U.jsx("div",{style:ws.message(!1),children:i},e.id)}(e,n):function(e,t){var n,i;let a="product"===e.carouselType?t.renderProductCarousel?t.renderProductCarousel(e.carousel):(n=e.carousel,U.jsxs("div",{style:ws.carouselSection,children:[n.title&&U.jsx("div",{style:ws.carouselTitle,children:n.title}),U.jsx("div",{style:ws.carouselTrack,children:n.items.map(e=>U.jsx("div",{style:ws.carouselItem,children:wu(e,t)},e.id))})]})):t.renderRecipeCarousel?t.renderRecipeCarousel(e.carousel):(i=e.carousel,U.jsxs("div",{style:ws.carouselSection,children:[i.title&&U.jsx("div",{style:ws.carouselTitle,children:i.title}),U.jsx("div",{style:ws.carouselTrack,children:i.items.map(e=>U.jsx("div",{style:ws.carouselItem,children:U.jsx(wa,{...e})},e.id))})]}));return U.jsx("div",{style:ws.assistantSegment,children:a},e.id)}(e,n)),!c&&h&&wl(`${e.id}-assistant-typing`,"",!1,!0,l,u)]},e.id)}),t&&e.length>0&&(null==(o=e[e.length-1])?void 0:o.role)==="user"&&U.jsx("div",{style:ws.message(!1),children:U.jsx("div",{style:ws.messageContent(!1),children:U.jsx(bW,{})})}),U.jsx("div",{ref:s})]})}function wd({conversations:e,currentConversationId:t,isLoading:n,onSelect:i,onDelete:a,onNewConversation:o}){return U.jsxs("div",{className:"vitality-widget-history-panel",children:[U.jsx("div",{className:"vitality-widget-history-header",children:U.jsx("h3",{children:"Conversations"})}),o&&U.jsxs("button",{onClick:o,className:"vitality-widget-history-new",type:"button",children:[U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"
384currentColor",width:"16",height:"16",children:U.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}),U.jsx("span",{children:"New Conversation"})]}),U.jsx("div",{className:"vitality-widget-history-list",children:n?U.jsx("div",{className:"vitality-widget-history-loading",children:U.jsxs("div",{className:"vitality-widget-typing",children:[U.jsx("span",{}),U.jsx("span",{}),U.jsx("span",{})]})}):0===e.length?U.jsx("div",{className:"vitality-widget-history-empty",children:U.jsx("p",{children:"No previous conversations"})}):e.map(e=>U.jsxs("div",{className:`vitality-widget-history-item ${e.id===t?"vitality-widget-history-item-active":""}`,children:[U.jsxs("button",{onClick:()=>i(e.id),className:"vitality-widget-history-item-content",type:"button",children:[U.jsx("div",{className:"vitality-widget-history-item-title",children:e.title||"Untitled conversation"}),U.jsxs("div",{className:"vitality-widget-history-item-meta",children:[U.jsxs("span",{children:[e.messageCount," messages"]}),U.jsx("span",{children:"•"}),U.jsx("span",{children:function(e){let t=new Date(e),n=new Date().getTime()-t.getTime(),i=Math.floor(n/6e4),a=Math.floor(n/36e5),o=Math.floor(n/864e5);return i<1?"Just now":i<60?`${i}m ago`:a<24?`${a}h ago`:o<7?`${o}d ago`:t.toLocaleDateString()}(e.updatedAt)})]}),e.preview&&U.jsx("div",{className:"vitality-widget-history-item-preview",children:e.preview})]}),U.jsx("button",{onClick:t=>{t.stopPropagation(),a(e.id)},className:"vitality-widget-history-item-delete","aria-label":"Delete conversation",type:"button",children:U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"16",height:"16",children:U.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})})})]},e.id))})]})}let wp=[{value:"dietary",label:"\uD83E\uDD57 Dietary"},{value:"health",label:"\uD83D\uDCAA Health"},{value:"diagnostics",label:"\uD83E\uDDEC Diagnostics"},{value:"preferences",label:"⭐ Preferences"},{value:"household",label:"\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC67‍\uD83D\uDC66 Household"},{value:"shopping",label:"\uD83D\uDED2 Shopping"},{value:"other",label:"\uD83D\uDCDD Other"}];function wh({items:e,stats:t,isLoading:n,onDeleteItem:i,onDeleteAll:a,onAddItem:o}){let[s,l]=(0,I.useState)(!1),[u,c]=(0,I.useState)(!1),[d,p]=(0,I.useState)(""),[h,m]=(0,I.useState)("other"),f=()=>{d.trim()&&(o(d.trim(),h),p(""),m("other"),c(!1))};return U.jsxs("div",{className:"vitality-widget-profile-panel",children:[U.jsx("div",{className:"vitality-widget-profile-header",children:U.jsxs("h3",{children:["What I Know About You",t&&t.active>0&&` (${t.active} item${1!==t.active?"s":""})`]})}),u?U.jsxs("div",{className:"vitality-widget-profile-add-form",children:[U.jsx("textarea",{value:d,onChange:e=>p(e.target.value),placeholder:"e.g., I'm vegetarian, I prefer organic products... (you can paste lab results, genetic profiles, or any health data here)",className:"vitality-widget-profile-add-input",rows:3,autoFocus:!0,onKeyDown:e=>{"Enter"===e.key&&e.metaKey&&d.trim()?f():"Escape"===e.key&&(c(!1),p(""))}}),U.jsx("select",{value:h,onChange:e=>m(e.target.value),className:"vitality-widget-profile-add-select",children:wp.map(e=>U.jsx("option",{value:e.value,children:e.label},e.value))}),U.jsxs("div",{className:"vitality-widget-profile-add-buttons",children:[U.jsx("button",{onClick:()=>{c(!1),p("")},className:"vitality-widget-profile-cancel",type:"button",children:"Cancel"}),U.jsx("button",{onClick:f,className:"vitality-widget-profile-add-submit",type:"button",disabled:!d.trim(),children:"Add"})]})]}):U.jsxs("button",{onClick:()=>c(!0),className:"vitality-widget-profile-add-button",type:"button",children:[U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"16",height:"16",children:U.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"})}),U.jsx("span",{children:"Add a profile item"})]}),U.jsx("div",{className:"vitality-widget-profile-list",children:n?U.jsx("div",{className:"vitality-widget-profile-loading",children:U.jsxs("div",{className:"vitality-widget-typing",children:[U.jsx("span",{}),U.jsx("span",{}),U.jsx("span",{})]})}):0===e.length?U.jsxs("div",{className:"vitality-widget-profile-empty",children:[U.jsx("div",{className:"vitality-widget-profile-empty-icon",children:"\uD83E\uDDE0"}
384),U.jsx("p",{children:"No profile items yet"}),U.jsx("p",{className:"vitality-widget-profile-empty-hint",children:"As we chat, I'll remember your preferences, dietary needs, and shopping habits to personalize your experience."})]}):e.map(e=>U.jsxs("div",{className:"vitality-widget-profile-item",children:[U.jsx("div",{className:"vitality-widget-profile-item-icon",children:{dietary:"\uD83E\uDD57",preferences:"⭐",allergies:"⚠️",health:"\uD83D\uDCAA",diagnostics:"\uD83E\uDDEC",household:"\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC67‍\uD83D\uDC66",family:"\uD83D\uDC68‍\uD83D\uDC69‍\uD83D\uDC67‍\uD83D\uDC66",shopping:"\uD83D\uDED2",budget:"\uD83D\uDCB0",lifestyle:"\uD83C\uDFC3"}[e.category.toLowerCase()]||"\uD83D\uDCDD"}),U.jsxs("div",{className:"vitality-widget-profile-item-content",children:[U.jsx("div",{className:"vitality-widget-profile-item-text",children:e.text}),U.jsxs("div",{className:"vitality-widget-profile-item-meta",children:[U.jsx("span",{className:"vitality-widget-profile-item-category",children:e.category}),U.jsx("span",{children:"•"}),U.jsx("span",{children:function(e){if(!e)return"Recently";let t=new Date(e);if(isNaN(t.getTime()))return"Recently";let n=new Date().getTime()-t.getTime(),i=Math.floor(n/6e4),a=Math.floor(n/36e5),o=Math.floor(n/864e5);return i<1?"Just now":i<60?`${i}m ago`:a<24?`${a}h ago`:o<7?`${o}d ago`:t.toLocaleDateString()}(e.learnedAt)})]})]}),U.jsx("button",{onClick:()=>i(e.id),className:"vitality-widget-history-item-delete","aria-label":"Delete profile item",type:"button",style:{borderLeft:"none",marginLeft:"4px",height:"32px",width:"32px"},children:U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"16",height:"16",children:U.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})})})]},e.id))}),e.length>0&&U.jsx("div",{className:"vitality-widget-profile-footer",children:s?U.jsxs("div",{className:"vitality-widget-profile-confirm",children:[U.jsx("p",{children:"Delete all profile items? This cannot be undone."}),U.jsxs("div",{className:"vitality-widget-profile-confirm-buttons",children:[U.jsx("button",{onClick:()=>l(!1),className:"vitality-widget-profile-cancel",type:"button",children:"Cancel"}),U.jsx("button",{onClick:()=>{a(),l(!1)},className:"vitality-widget-profile-delete-confirm",type:"button",children:"Delete All"})]})]}):U.jsxs("button",{onClick:()=>l(!0),className:"vitality-widget-profile-delete-all",type:"button",children:[U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"16",height:"16",children:U.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"})}),U.jsx("span",{children:"Clear All Profile Items"})]})})]})}let wm=(e,t)=>({display:"flex",flexDirection:"column",backgroundColor:"#ffffff",border:e||t?"none":"1px solid #e5e5e5",borderRadius:e||t?"0":"20px",boxShadow:e||t?"none":"0 12px 48px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04)",overflow:"hidden",transition:"all 0.3s ease",...e?{width:"100%",height:"100%",position:"absolute",top:0,left:0,right:0,bottom:0}:t?{position:"fixed",inset:0,width:"100%",height:"100%",maxWidth:"none",maxHeight:"none",zIndex:50}:{width:"480px",maxWidth:"calc(100vw - 32px)",height:"600px",maxHeight:"80vh"}}),wf={flex:1,overflow:"hidden",display:"flex",flexDirection:"column",position:"relative"},wg={container:{display:"flex",alignItems:"center",justifyContent:"center",gap:"4px",padding:"10px 16px",borderBottom:"1px solid #f0f0f0",backgroundColor:"#ffffff"},tab:e=>({padding:"7px 20px",fontSize:"14px",fontWeight:e?600:500,color:e?"#ffffff":"#6b7280",backgroundColor:e?"var(--vitality-primary, #00d47b)":"transparent",border:"none",borderRadius:"20px",cursor:"pointer",transition:"all 0.25s ease",whiteSpace:"nowrap",fontFamily:"inherit"})},wx=`
385        @keyframes pulse {
386          0%, 100% { opacity: 0.4; }
387          50% { opacity: 1; }
388        }
389        ${ez}
390
391        @keyframes vitality-tab-enter {
392          from {
393            opacity: 0;
394            transform: translateY(6px);
395          }
396          to {
397            opacity: 1;
398            transform: translateY(0);
399          }
400        }
401
402        .vitality-tab-content {
403          animation: vitality-tab-enter 0.25s ease-out;
404        }
405        
406        /* Markdown styles for assistant messages */
407        .vitality-assistant-message p {
408          margin: 0 0 0.75em 0;
409        }
410        .vitality-assistant-message p:last-child {
411          margin-bottom: 0;
412        }
413        .vitality-assistant-message ul,
414        .vitality-assistant-message ol {
415          margin: 0.5em 0 0.75em 0;
416          padding-left: 1.5em;
417        }
418        .vitality-assistant-message ul {
419          list-style-type: disc;
420        }
421        .vitality-assistant-message ol {
422          list-style-type: decimal;
423        }
424        .vitality-assistant-message li {
425          margin: 0.25em 0;
426          padding-left: 0.25em;
427        }
428        .vitality-assistant-message li > ul,
429        .vitality-assistant-message li > ol {
430          margin: 0.25em 0 0.25em 0;
431        }
432        .vitality-assistant-message strong {
433          font-weight: 600;
434        }
435        .vitality-assistant-message em {
436          font-style: italic;
437        }
438        .vitality-assistant-message hr {
439          border: none;
440          border-top: 1px solid #d1d5db;
441          margin: 1em 0;
442        }
443        .vitality-assistant-message h1,
444        .vitality-assistant-message h2,
445        .vitality-assistant-message h3,
446        .vitality-assistant-message h4 {
447          margin: 0.75em 0 0.5em 0;
448          font-weight: 600;
449          line-height: 1.3;
450        }
451        .vitality-assistant-message h1:first-child,
452        .vitality-assistant-message h2:first-child,
453        .vitality-assistant-message h3:first-child,
454        .vitality-assistant-message h4:first-child {
455          margin-top: 0;
456        }
457        .vitality-assistant-message code {
458          background: rgba(0, 0, 0, 0.06);
459          padding: 0.15em 0.4em;
460          border-radius: 4px;
461          font-size: 0.9em;
462          font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
463        }
464        .vitality-assistant-message pre {
465          background: rgba(0, 0, 0, 0.06);
466          padding: 0.75em;
467          border-radius: 6px;
468          overflow-x: auto;
469          margin: 0.5em 0;
470        }
471        .vitality-assistant-message pre code {
472          background: none;
473          padding: 0;
474        }
475        .vitality-assistant-message blockquote {
476          border-left: 3px solid #d1d5db;
477          margin: 0.5em 0;
478          padding-left: 1em;
479          color: #6b7280;
480        }
481        .vitality-assistant-message a {
482          color: var(--vitality-primary, #00d47b);
483          text-decoration: underline;
484        }
485        .vitality-assistant-message a:hover {
486          text-decoration: none;
487        }
488`;function wv({messages:e,input:t,onInputChange:n,onSubmit:i,isLoading:a,status:o="ready",onClose:s,title:l="Harmony Hannah",avatarUrl:u,subtitle:c,catalogRenderers:d={},resourceEndpoint:p,catalogApiBaseUrl:h,authToken:m,onAddToCart:f,productInfoFetcher:g,conversations:x=[],currentConversationId:v,isLoadingConversations:b=!1,onSelectConversation:w,onNewConversation:k,onDeleteConversation:_,onLoadConversations:T,profileItems:E=[],profileStats:A=null,isLoadingProfile:C=!1,onLoadProfile:N,onDeleteAllProfileItems:P,onDeleteProfileItem:R,onAddProfileItem:D,personas:L=[],currentPersonaId:O,onPersonaChange:B,onSendMessage:j,suggestions:z,isLoadingSuggestions:F=!1,onLoadSuggestions:H,embedded:G=!1,pendingFiles:q=[],onFileUpload:V,onFileRemove:W,isUploadingFile:Y=!1,enableFileAttachments:K=!0}){let[X,Q]=(0,I.useState)("chat"),[Z,$]=(0,I.useState)(!1),J=(0,I.useRef)(null),ee=(0,I.useRef)(null);(0,I.useEffect)(()=>{let e=window.matchMedia("(max-width: 640px)"),t=e=>{$(e.matches)};return t(e),e.addEventListener("change",t),()=>e.removeEventListener("change",t)},[]);let et=!!(w&&k),en=!!(N&&P);(0,I.useEffect)(()=>{0===e.length&&(ee.current=null)},[e.length]),(0,I.useEffect)(()=>
488{if("chat"!==X||!H||0===e.length||a)return;let t=v??"current";ee.current!==t&&(ee.current=t,H())},[X,v,a,e.length,H]);let er=e=>{e!==X&&("history"===e&&T&&T(),"profile"===e&&N&&N(),Q(e))};return U.jsx(M.tt,{fetcher:g,children:U.jsx(M.bo,{config:{resourceEndpoint:p,apiBaseUrl:h,authToken:m,onAddToCart:f,renderers:d},children:U.jsxs("div",{style:wm(G,Z),children:[U.jsx(eH,{title:l,avatarUrl:u,subtitle:c,personas:L,currentPersonaId:O,onPersonaChange:B,onClose:s}),U.jsxs("div",{style:wg.container,children:[U.jsx("button",{type:"button",style:wg.tab("chat"===X),onClick:()=>er("chat"),onMouseOver:e=>{"chat"!==X&&(e.currentTarget.style.backgroundColor="#f3f4f6",e.currentTarget.style.color="#374151")},onFocus:e=>{"chat"!==X&&(e.currentTarget.style.backgroundColor="#f3f4f6",e.currentTarget.style.color="#374151")},onMouseOut:e=>{"chat"!==X&&(e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="#6b7280")},onBlur:e=>{"chat"!==X&&(e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="#6b7280")},children:"Chat"}),et&&U.jsx("button",{type:"button",style:wg.tab("history"===X),onClick:()=>er("history"),onMouseOver:e=>{"history"!==X&&(e.currentTarget.style.backgroundColor="#f3f4f6",e.currentTarget.style.color="#374151")},onFocus:e=>{"history"!==X&&(e.currentTarget.style.backgroundColor="#f3f4f6",e.currentTarget.style.color="#374151")},onMouseOut:e=>{"history"!==X&&(e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="#6b7280")},onBlur:e=>{"history"!==X&&(e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="#6b7280")},children:"History"}),en&&U.jsx("button",{type:"button",style:wg.tab("profile"===X),onClick:()=>er("profile"),onMouseOver:e=>{"profile"!==X&&(e.currentTarget.style.backgroundColor="#f3f4f6",e.currentTarget.style.color="#374151")},onFocus:e=>{"profile"!==X&&(e.currentTarget.style.backgroundColor="#f3f4f6",e.currentTarget.style.color="#374151")},onMouseOut:e=>{"profile"!==X&&(e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="#6b7280")},onBlur:e=>{"profile"!==X&&(e.currentTarget.style.backgroundColor="transparent",e.currentTarget.style.color="#6b7280")},children:"Profile"})]}),U.jsx("div",{style:wf,children:U.jsx("div",{ref:J,className:"vitality-tab-content",style:{display:"flex",flexDirection:"column",flex:1,overflow:"hidden"},children:"history"===X&&et?U.jsx(wd,{conversations:x,currentConversationId:v||null,isLoading:b,onSelect:e=>{null==w||w(e),Q("chat")},onDelete:_||(()=>{}),onNewConversation:()=>{null==k||k(),Q("chat")}}):"profile"===X&&en?U.jsx(wh,{items:E,stats:A,isLoading:C,onDeleteItem:R||(()=>{}),onDeleteAll:()=>{null==P||P()},onAddItem:D||(()=>{})}):U.jsx(wc,{messages:e,isLoading:a,catalogRenderers:d,onSendMessage:j,suggestions:z&&z.length>0?z:void 0})},X)}),"chat"===X&&U.jsx(iB,{value:t,onChange:n,onSubmit:i,isLoading:a,pendingFiles:q,onFileUpload:V,onFileRemove:W,isUploadingFile:Y,enableFileAttachments:K}),U.jsx("style",{children:wx})]})})})}function wy({onClick:e,isOpen:t}){return U.jsx("button",{onClick:e,className:`vitality-widget-bubble ${t?"vitality-widget-bubble-open":""}`,"aria-label":t?"Close chat":"Open chat",children:t?U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"24",height:"24",children:U.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})}):U.jsxs(U.Fragment,{children:[U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",width:"22",height:"22",className:"vitality-widget-bubble-icon",children:U.jsx("path",{d:"M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2zm0 14H6l-2 2V4h16v12z"})}),U.jsx("span",{className:"vitality-widget-bubble-text",children:"Shop with AI"}),U.jsx("span",{className:"vitality-widget-bubble-vip",children:"VIP"})]})})}function wb({endpoint:e,authToken:t,position:n="bottom-right",theme:i={},title:a="Harmony Hannah",avatarUrl:o,defaultOpen:s=!1,embedded:l=!1,onError:u,catalogApiBaseUrl:c,onAddToCart:d,productInfoFetcher:p,renderProductCard:h,renderProductChip:m,renderRecipeCard:f,renderRecipeChip:g,renderProductCarousel:x,renderRecipeCarousel:v,personas:b,currentPersonaId:w,onPersonaChange:k}){let[_,T]=(0,I.useState)(l||s),{messages:E,input:A,handleInputChange:C,handleSubmit:N,isLoading:P,status:R,conversations:D,conversationId:L,isLoadingConversations:O,loadConversations:B,selectConversation:j,startNewConversation:z,deleteConversation:F,suggestions:H,isLoadingSuggestions:G,loadSuggestions:q,profileItems:V,profileStats:W,isLoadingProfile:Y,loadProfile:K,deleteAllProfileItems:X,deleteProfileItem:Q,addProfileItem:Z,sendMessage:$,pendingFiles:J,isUploadingFile:ee,uploadFile:et,removeFile:en}=(0,M.fC)({endpoint:e,authToken:t,personaId:w,onError:u}),er=(0,I.useMemo)(()=>({renderProductCard:h,renderProductChip:m,renderRecipeCard:f,renderRecipeChip:g,renderProductCarousel:x,renderRecipeCarousel:v}),[h,m,f,g,x,v]),ei=l?{position:"absolute",top:0,left:0,right:0,bottom:0,zIndex:1,"--vitality-primary":i.primaryColor||"#00d47b","--vitality-bg":i.backgroundColor||"#ffffff","--vitality-text":i.textColor||"#1a1a1a","--vitality-font":i.fontFamily||"system-ui, -apple-system, sans-serif","--vitality-radius":i.borderRadius||"12px","--color-primary":i.primaryColor||"#00d47b"}
488:{position:"fixed",zIndex:9999,...{"bottom-right":{bottom:"16px",right:"16px"},"bottom-left":{bottom:"16px",left:"16px"},"top-right":{top:"16px",right:"16px"},"top-left":{top:"16px",left:"16px"}}[n],"--vitality-primary":i.primaryColor||"#00d47b","--vitality-bg":i.backgroundColor||"#ffffff","--vitality-text":i.textColor||"#1a1a1a","--vitality-font":i.fontFamily||"system-ui, -apple-system, sans-serif","--vitality-radius":i.borderRadius||"12px","--color-primary":i.primaryColor||"#00d47b"};return U.jsxs("div",{style:ei,children:[_&&U.jsx(wv,{messages:E,input:A,onInputChange:C,onSubmit:N,isLoading:P,status:R,onClose:()=>{l&&window.parent!==window?window.parent.postMessage({type:"close",source:"vip-widget"},"*"):T(!1)},title:a,avatarUrl:o,catalogRenderers:er,resourceEndpoint:e,catalogApiBaseUrl:c,authToken:t,onAddToCart:d,productInfoFetcher:p,conversations:D,currentConversationId:L,isLoadingConversations:O,onSelectConversation:j,onNewConversation:z,onDeleteConversation:F,onLoadConversations:B,suggestions:H,isLoadingSuggestions:G,onLoadSuggestions:q,profileItems:V,profileStats:W,isLoadingProfile:Y,onLoadProfile:K,onDeleteAllProfileItems:X,onDeleteProfileItem:Q,onAddProfileItem:Z,personas:b,currentPersonaId:w,onPersonaChange:k,onSendMessage:$,embedded:l,pendingFiles:J,onFileUpload:et,onFileRemove:en,isUploadingFile:ee}),!l&&!_&&U.jsx(wy,{onClick:()=>T(!0),isOpen:!1})]})}var ww=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=eK(`Primitive.${t}`),i=I.forwardRef((e,i)=>{let{asChild:a,...o}=e,s=a?n:t;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),U.jsx(s,{...o,ref:i}
488)});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),wk="horizontal",w_=["horizontal","vertical"],wT=I.forwardRef((e,t)=>{let{decorative:n,orientation:i=wk,...a}=e,o=w_.includes(i)?i:wk,s=n?{role:"none"}:{"aria-orientation":"vertical"===o?o:void 0,role:"separator"};return U.jsx(ww.div,{"data-orientation":o,...s,...a,ref:t})});function wE({className:e,orientation:t="horizontal",decorative:n=!0,...i}){return U.jsx(wT,{"data-slot":"separator",decorative:n,orientation:t,className:t8("bg-border shrink-0 data-[orientation=horizontal]:h-px data-[orientation=horizontal]:w-full data-[orientation=vertical]:h-full data-[orientation=vertical]:w-px",e),...i})}wT.displayName="Separator";let wS=e0("flex w-fit items-stretch [&>*]:focus-visible:z-10 [&>*]:focus-visible:relative [&>[data-slot=select-trigger]:not([class*='w-'])]:w-fit [&>input]:flex-1 has-[select[aria-hidden=true]:last-child]:[&>[data-slot=select-trigger]:last-of-type]:rounded-r-md has-[>[data-slot=button-group]]:gap-2",{variants:{orientation:{horizontal:"[&>*:not(:first-child)]:rounded-l-none [&>*:not(:first-child)]:border-l-0 [&>*:not(:last-child)]:rounded-r-none",vertical:"flex-col [&>*:not(:first-child)]:rounded-t-none [&>*:not(:first-child)]:border-t-0 [&>*:not(:last-child)]:rounded-b-none"}},defaultVariants:{orientation:"horizontal"}});function wA({className:e,orientation:t,...n}){return U.jsx("div",{role:"group","data-slot":"button-group","data-orientation":t,className:t8(wS({orientation:t}),e),...n})}function wC({className:e,asChild:t=!1,...n}){return U.jsx(t?eX:"div",{className:t8("bg-muted flex items-center gap-2 rounded-md border px-4 text-sm font-medium shadow-xs [&_svg]:pointer-events-none [&_svg:not([class*='size-'])]:size-4",e),...n})}var wN=(r1||(r1=n.t(I,2)))[" useId ".trim().toString()]||(()=>{}),wI=0;function wM(e){let[t,n]=I.useState(wN());return nr(()=>{n(e=>e??String(wI++))},[e]),e||(t?`radix-${t}`:"")}var wP=Symbol("radix.slottable"),wR=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"}),wD=I.forwardRef((e,t)=>U.jsx(rI.span,{...e,ref:t,style:{...wR,...e.style}}));wD.displayName="VisuallyHidden";var[wL]=nn("Tooltip",[rO]),wO=rO(),wB="TooltipProvider",wj="tooltip.open",[wz,wF]=wL(wB),wH=e=>{let{__scopeTooltip:t,delayDuration:n=700,skipDelayDuration:i=300,disableHoverableContent:a=!1,children:o}=e,s=I.useRef(!0),l=I.useRef(!1),u=I.useRef(0);return I.useEffect(()=>{let e=u.current;return()=>window.clearTimeout(e)},[]),U.jsx(wz,{scope:t,isOpenDelayedRef:s,delayDuration:n,onOpen:I.useCallback(()=>{window.clearTimeout(u.current),s.current=!1},[]),onClose:I.useCallback(()=>{window.clearTimeout(u.current),u.current=window.setTimeout(()=>s.current=!0,i)},[i]),isPointerInTransitRef:l,onPointerInTransitChange:I.useCallback(e=>{l.current=e},[]),disableHoverableContent:a,children:o})};wH.displayName=wB;var wU="Tooltip",[wG,wq]=wL(wU),wV=e=>{let{__scopeTooltip:t,children:n,open:i,defaultOpen:a,onOpenChange:o,disableHoverableContent:s,delayDuration:l}=e,u=wF(wU,e.__scopeTooltip),c=wO(t),[d,p]=I.useState(null),h=wM(),m=I.useRef(0),f=s??u.disableHoverableContent,g=l??u.delayDuration,x=I.useRef(!1),[v,b]=na({prop:i,defaultProp:a??!1,onChange:e=>{e?(u.onOpen(),document.dispatchEvent(new CustomEvent(wj))):u.onClose(),null==o||o(e)},caller:wU}),w=I.useMemo(()=>v?x.current?"delayed-open":"instant-open":"closed",[v]),k=I.useCallback(()=>{window.clearTimeout(m.current),m.current=0,x.current=!1,b(!0)},[b]),_=I.useCallback(()=>{window.clearTimeout(m.current),m.current=0,b(!1)},[b]),T=I.useCallback(()=>{window.clearTimeout(m.current),m.current=window.setTimeout(()=>{x.current=!0,b(!0),m.current=0},g)},[g,b]);return I.useEffect(()=>()=>{m.current&&(window.clearTimeout(m.current),m.current=0)},[]),U.jsx(rz,{...c,children:U.jsx(wG,{scope:t,contentId:h,open:v,stateAttribute:w,trigger:d,onTriggerChange:p,onTriggerEnter:I.useCallback(()=>{u.isOpenDelayedRef.current?T():k()},[u.isOpenDelayedRef,T,k]),onTriggerLeave:I.useCallback(()=>{f?_():(window.clearTimeout(m.current),m.current=0)},[_,f]),onOpen:k,onClose:_,disableHoverableContent:f,children:n})})};wV.displayName=wU;var wW="TooltipTrigger",wY=I.forwardRef((e,t)=>
488{let{__scopeTooltip:n,...i}=e,a=wq(wW,n),o=wF(wW,n),s=wO(n),l=eq(t,I.useRef(null),a.onTriggerChange),u=I.useRef(!1),c=I.useRef(!1),d=I.useCallback(()=>u.current=!1,[]);return I.useEffect(()=>()=>document.removeEventListener("pointerup",d),[d]),U.jsx(rH,{asChild:!0,...s,children:U.jsx(rI.button,{"aria-describedby":a.open?a.contentId:void 0,"data-state":a.stateAttribute,...i,ref:l,onPointerMove:nt(e.onPointerMove,e=>{"touch"===e.pointerType||c.current||o.isPointerInTransitRef.current||(a.onTriggerEnter(),c.current=!0)}),onPointerLeave:nt(e.onPointerLeave,()=>{a.onTriggerLeave(),c.current=!1}),onPointerDown:nt(e.onPointerDown,()=>{a.open&&a.onClose(),u.current=!0,document.addEventListener("pointerup",d,{once:!0})}),onFocus:nt(e.onFocus,()=>{u.current||a.onOpen()}),onBlur:nt(e.onBlur,a.onClose),onClick:nt(e.onClick,a.onClose)})})});wY.displayName=wW;var wK="TooltipPortal",[wX,wQ]=wL(wK,{forceMount:void 0}),wZ=e=>{let{__scopeTooltip:t,forceMount:n,children:i,container:a}=e,o=wq(wK,t);return U.jsx(wX,{scope:t,forceMount:n,children:U.jsx(rJ,{present:n||o.open,children:U.jsx(r$,{asChild:!0,container:a,children:i})})})};wZ.displayName=wK;var w$="TooltipContent",wJ=I.forwardRef((e,t)=>{let n=wQ(w$,e.__scopeTooltip),{forceMount:i=n.forceMount,side:a="top",...o}=e,s=wq(w$,e.__scopeTooltip);return U.jsx(rJ,{present:i||s.open,children:s.disableHoverableContent?U.jsx(w5,{side:a,...o,ref:t}):U.jsx(w0,{side:a,...o,ref:t})})}),w0=I.forwardRef((e,t)=>{let n=wq(w$,e.__scopeTooltip),i=wF(w$,e.__scopeTooltip),a=I.useRef(null),o=eq(t,a),[s,l]=I.useState(null),{trigger:u,onClose:c}=n,d=a.current,{onPointerInTransitChange:p}=i,h=I.useCallback(()=>{l(null),p(!1)},[p]),m=I.useCallback((e,t)=>{let n=e.currentTarget,i={x:e.clientX,y:e.clientY},a=function(e,t){let n=Math.abs(t.top-e.y),i=Math.abs(t.bottom-e.y),a=Math.abs(t.right-e.x),o=Math.abs(t.left-e.x);switch(Math.min(n,i,a,o)){case o:return"left";case a:return"right";case n:return"top";case i:return"bottom";default:throw Error("unreachable")}}(i,n.getBoundingClientRect());l(function(e){let 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();let t=[];for(let n=0;n<e.length;n++){let i=e[n];for(;t.length>=2;){let e=t[t.length-1],n=t[t.length-2];if((e.x-n.x)*(i.y-n.y)>=(e.y-n.y)*(i.x-n.x))t.pop();else break}t.push(i)}t.pop();let n=[];for(let t=e.length-1;t>=0;t--){let i=e[t];for(;n.length>=2;){let e=n[n.length-1],t=n[n.length-2];if((e.x-t.x)*(i.y-t.y)>=(e.y-t.y)*(i.x-t.x))n.pop();else break}n.push(i)}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)}([...function(e,t,n=5){let i=[];switch(t){case"top":i.push({x:e.x-n,y:e.y+n},{x:e.x+n,y:e.y+n});break;case"bottom":i.push({x:e.x-n,y:e.y-n},{x:e.x+n,y:e.y-n});break;case"left":i.push({x:e.x+n,y:e.y-n},{x:e.x+n,y:e.y+n});break;case"right":i.push({x:e.x-n,y:e.y-n},{x:e.x-n,y:e.y+n})}return i}(i,a),...function(e){let{top:t,right:n,bottom:i,left:a}=e;return[{x:a,y:t},{x:n,y:t},{x:n,y:i},{x:a,y:i}]}(t.getBoundingClientRect())])),p(!0)},[p]);return I.useEffect(()=>()=>h(),[h]),I.useEffect(()=>{if(u&&d){let e=e=>m(e,d),t=e=>m(e,u);return u.addEventListener("pointerleave",e),d.addEventListener("pointerleave",t),()=>{u.removeEventListener("pointerleave",e),d.removeEventListener("pointerleave",t)}}},[u,d,m,h]),I.useEffect(()=>{if(s){let e=e=>{let t=e.target,n={x:e.clientX,y:e.clientY},i=(null==u?void 0:u.contains(t))||(null==d?void 0:d.contains(t)),a=!function(e,t){let{x:n,y:i}=e,a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e],l=t[o],u=s.x,c=s.y,d=l.x,p=l.y;c>i!=p>i&&n<(d-u)*(i-c)/(p-c)+u&&(a=!a)}return a}(n,s);i?h():a&&(h(),c())};return document.addEventListener("pointermove",e),()=>document.removeEventListener("pointermove",e)}},[u,d,s,c,h]),U.jsx(w5,{...e,ref:o})}),[w1,w2]=wL(wU,{isInside:!1}),w4=function(e){let t=({children:e})=>U.jsx(U.Fragment,{children:e});return t.displayName=`${e}.Slottable`,t.__radixId=wP,t}("TooltipContent"),w5=I.forwardRef((e,t)=>{let{__scopeTooltip:n,children:i,"aria-label":a,onEscapeKeyDown:o,onPointerDownOutside:s,...l}=e,u=wq(w$,n),c=wO(n),{onClose:d}=u;return I.useEffect(()=>(document.addEventListener(wj,d),()=>document.removeEventListener(wj,d)),[d]),I.useEffect(()=>{if(u.trigger){let e=e=>{let t=e.target;null!=t&&t.contains(u.trigger)&&d()};return window.addEventListener("scroll",e,{capture:!0}),()=>window.removeEventListener("scroll",e,{capture:!0})}},[u.trigger,d]),U.jsx(r6,{asChild:!0,disableOutsidePointerEvents:!1,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:d,children:U.jsxs(rV,{"data-state":u.stateAttribute,...c,...l,ref:t,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:[U.jsx(w4,{children:i}),U.jsx(w1,{scope:n,isInside:!0,children:U.jsx(wD,{id:u.contentId,role:"tooltip",children:a||i})})]})})});wJ.displayName=w$;var w3="TooltipArrow",w6=I.forwardRef((e,t)=>
488{let{__scopeTooltip:n,...i}=e,a=wO(n);return w2(w3,n).isInside?null:U.jsx(rK,{...a,...i,ref:t})});function w7({delayDuration:e=0,...t}){return U.jsx(wH,{"data-slot":"tooltip-provider",delayDuration:e,...t})}function w8({...e}){return U.jsx(w7,{children:U.jsx(wV,{"data-slot":"tooltip",...e})})}function w9({...e}){return U.jsx(wY,{"data-slot":"tooltip-trigger",...e})}function ke({className:e,sideOffset:t=0,children:n,...i}){return U.jsx(wZ,{children:U.jsxs(wJ,{"data-slot":"tooltip-content",sideOffset:t,className:t8("bg-foreground text-background 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 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",e),...i,children:[n,U.jsx(w6,{className:"bg-foreground fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]})})}w6.displayName=w3;let kt=({className:e,from:t,...n})=>U.jsx("div",{className:t8("group flex w-full max-w-[95%] flex-col gap-2","user"===t?"is-user ml-auto justify-end":"is-assistant",e),...n}),kn=({children:e,className:t,...n})=>U.jsx("div",{className:t8("is-user:dark flex w-fit max-w-full min-w-0 flex-col gap-2 overflow-hidden text-sm","group-[.is-user]:ml-auto group-[.is-user]:rounded-lg group-[.is-user]:bg-secondary group-[.is-user]:px-4 group-[.is-user]:py-3 group-[.is-user]:text-foreground","group-[.is-assistant]:text-foreground",t),...n,children:e}),kr=({className:e,children:t,...n})=>U.jsx("div",{className:t8("flex items-center gap-1",e),...n,children:t}),ki=({tooltip:e,children:t,label:n,variant:i="ghost",size:a="icon-sm",...o})=>{let s=U.jsxs(ne,{size:a,type:"button",variant:i,...o,children:[t,U.jsx("span",{className:"sr-only",children:n||e})]});return e?U.jsx(w7,{children:U.jsxs(w8,{children:[U.jsx(w9,{asChild:!0,children:s}),U.jsx(ke,{children:U.jsx("p",{children:e})})]})}):s},ka=(0,I.createContext)(null),ko=()=>{let e=(0,I.useContext)(ka);if(!e)throw Error("MessageBranch components must be used within MessageBranch");return e},ks=({defaultBranch:e=0,onBranchChange:t,className:n,...i})=>{let[a,o]=(0,I.useState)(e),[s,l]=(0,I.useState)([]),u=e=>{o(e),null==t||t(e)},c={currentBranch:a,totalBranches:s.length,goToPrevious:()=>{u(a>0?a-1:s.length-1)},goToNext:()=>{u(a<s.length-1?a+1:0)},branches:s,setBranches:l};return U.jsx(ka.Provider,{value:c,children:U.jsx("div",{className:t8("grid w-full gap-2 [&>div]:pb-0",n),...i})})},kl=({children:e,...t})=>{let{currentBranch:n,setBranches:i,branches:a}=ko(),o=Array.isArray(e)?e:[e];return(0,I.useEffect)(()=>{a.length!==o.length&&i(o)},[o,a,i]),o.map((e,i)=>U.jsx("div",{className:t8("grid gap-2 overflow-hidden [&>div]:pb-0",i===n?"block":"hidden"),...t,children:e},e.key))},ku=({className:e,from:t,...n})=>{let{totalBranches:i}=ko();return i<=1?null:U.jsx(wA,{className:"[&>*:not(:first-child)]:rounded-l-md [&>*:not(:last-child)]:rounded-r-md",orientation:"horizontal",...n})},kc=({children:e,...t})=>{let{goToPrevious:n,totalBranches:i}=ko();return U.jsx(ne,{"aria-label":"Previous branch",disabled:i<=1,onClick:n,size:"icon-sm",type:"button",variant:"ghost",...t,children:e??U.jsx(ea,{size:14})})},kd=({children:e,className:t,...n})=>{let{goToNext:i,totalBranches:a}=ko();return U.jsx(ne,{"aria-label":"Next branch",disabled:a<=1,onClick:i,size:"icon-sm",type:"button",variant:"ghost",...n,children:e??U.jsx(eo,{size:14})})},kp=({className:e,...t})=>{let{currentBranch:n,totalBranches:i}=ko();return U.jsxs(wC,{className:t8("border-none bg-transparent text-muted-foreground shadow-none",e),...t,children:[n+1," of ",i]})},kh=(0,I.memo)(({className:e,isAnimating:t=!1,mode:n="streaming",parseIncompleteMarkdown:i=!0,...a})=>U.jsx(bz,{className:t8("size-full [&>*:first-child]:mt-0 [&>*:last-child]:mb-0",e),isAnimating:t,mode:n,parseIncompleteMarkdown:i,...a}),(e,t)=>e.children===t.children);function km({data:e,className:t,onRemove:n,...i}){var a;let o=e.filename||"",s=(null!=(a=e.mediaType)&&a.startsWith("image/")&&e.url?"image":"file")=="image",l=o||(s?"Image":"Attachment");return U.jsx("div",{className:t8("group relative size-24 overflow-hidden rounded-lg",t),...i,children:s?U.jsxs(U.Fragment,{children:[U.jsx("img",{alt:o||"attachment",className:"size-full object-cover",height:100,src:e.url,width:100}),n&&U.jsxs(ne,{"aria-label":"Remove attachment",className:"absolute top-2 right-2 size-6 rounded-full bg-background/80 p-0 opacity-0 backdrop-blur-sm transition-opacity hover:bg-background group-hover:opacity-100 [&>svg]:size-3",onClick:e=>{e.stopPropagation(),n()},type:"button",variant:"ghost",children:[U.jsx(eL,{}),U.jsx("span",{className:"sr-only",children:"Remove"})]})]}):U.jsxs(U.Fragment,{children:[U.jsxs(w8,{children:[U.jsx(w9,{asChild:!0,children:U.jsx("div",{className:"flex size-full shrink-0 items-center justify-center rounded-lg bg-muted text-muted-foreground",children:U.jsx(eS,{className:"size-4"})})}),U.jsx(ke,{children:U.jsx("p",{children:l})})]}),n&&U.jsxs(ne,{"aria-label":"Remove attachment",className:"size-6 shrink-0 rounded-full p-0 o
488pacity-0 transition-opacity hover:bg-accent group-hover:opacity-100 [&>svg]:size-3",onClick:e=>{e.stopPropagation(),n()},type:"button",variant:"ghost",children:[U.jsx(eL,{}),U.jsx("span",{className:"sr-only",children:"Remove"})]})]})})}function kf({children:e,className:t,...n}){return e?U.jsx("div",{className:t8("ml-auto flex w-fit flex-wrap items-start gap-2",t),...n,children:e}):null}kh.displayName="MessageResponse";let kg=({className:e,children:t,...n})=>U.jsx("div",{className:t8("mt-4 flex w-full items-center justify-between gap-4",e),...n,children:t});var kx="Collapsible",[kv]=nn(kx),[ky,kb]=kv(kx),kw=I.forwardRef((e,t)=>{let{__scopeCollapsible:n,open:i,defaultOpen:a,disabled:o,onOpenChange:s,...l}=e,[u,c]=na({prop:i,defaultProp:a??!1,onChange:s,caller:kx});return U.jsx(ky,{scope:n,disabled:o,contentId:wM(),open:u,onOpenToggle:I.useCallback(()=>c(e=>!e),[c]),children:U.jsx(rI.div,{"data-state":kA(u),"data-disabled":o?"":void 0,...l,ref:t})})});kw.displayName=kx;var kk="CollapsibleTrigger",k_=I.forwardRef((e,t)=>{let{__scopeCollapsible:n,...i}=e,a=kb(kk,n);return U.jsx(rI.button,{type:"button","aria-controls":a.contentId,"aria-expanded":a.open||!1,"data-state":kA(a.open),"data-disabled":a.disabled?"":void 0,disabled:a.disabled,...i,ref:t,onClick:nt(e.onClick,a.onOpenToggle)})});k_.displayName=kk;var kT="CollapsibleContent",kE=I.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=kb(kT,e.__scopeCollapsible);return U.jsx(rJ,{present:n||a.open,children:({present:e})=>U.jsx(kS,{...i,ref:t,present:e})})});kE.displayName=kT;var kS=I.forwardRef((e,t)=>{let{__scopeCollapsible:n,present:i,children:a,...o}=e,s=kb(kT,n),[l,u]=I.useState(i),c=I.useRef(null),d=eq(t,c),p=I.useRef(0),h=p.current,m=I.useRef(0),f=m.current,g=s.open||l,x=I.useRef(g),v=I.useRef(void 0);return I.useEffect(()=>{let e=requestAnimationFrame(()=>x.current=!1);return()=>cancelAnimationFrame(e)},[]),nr(()=>{let e=c.current;if(e){v.current=v.current||{transitionDuration:e.style.transitionDuration,animationName:e.style.animationName},e.style.transitionDuration="0s",e.style.animationName="none";let t=e.getBoundingClientRect();p.current=t.height,m.current=t.width,x.current||(e.style.transitionDuration=v.current.transitionDuration,e.style.animationName=v.current.animationName),u(i)}},[s.open,i]),U.jsx(rI.div,{"data-state":kA(s.open),"data-disabled":s.disabled?"":void 0,id:s.contentId,hidden:!g,...o,ref:d,style:{"--radix-collapsible-content-height":h?`${h}px`:void 0,"--radix-collapsible-content-width":f?`${f}px`:void 0,...e.style},children:g&&a})});function kA(e){return e?"open":"closed"}function kC({...e}){return U.jsx(kw,{"data-slot":"collapsible",...e})}function kN({...e}){return U.jsx(k_,{"data-slot":"collapsible-trigger",...e})}function kI({...e}){return U.jsx(kE,{"data-slot":"collapsible-content",...e})}let kM=(0,I.createContext)({}),kP="u">typeof window,kR=kP?I.useLayoutEffect:I.useEffect,kD=(0,I.createContext)(null);function kL(e,t){-1===e.indexOf(t)&&e.push(t)}function kO(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}let kB=(e,t,n)=>n>t?t:n<e?e:n;function kj(e,t){return t?`${e}. For more information and steps for solving, visit https://motion.dev/troubleshooting/${t}`:e}let kz=()=>{},kF=()=>{};"u">typeof R&&(null==R.env?void 0:"production")!=="production"&&(kz=(e,t,n)=>{!e&&"u">typeof console&&console.warn(kj(t,n))},kF=(e,t,n)=>{if(!e)throw Error(kj(t,n))});let kH={},kU=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function kG(e){return"object"==typeof e&&null!==e}let kq=e=>/^0[^.\s]+$/u.test(e);function kV(e){let t;return()=>(void 0===t&&(t=e()),t)}let kW=e=>e,kY=(e,t)=>n=>t(e(n)),kK=(...e)=>e.reduce(kY),kX=(e,t,n)=>{let i=t-e;return 0===i?1:(n-e)/i};class kQ{constructor(){this.subscriptions=[]}add(e){return kL(this.subscriptions,e),()=>kO(this.subscriptions,e)}notify(e,t,n){let i=this.subscriptions.length;if(i){if(1===i)this.subscriptions[0](e,t,n);else for(let a=0;a<i;a++){let i=this.subscriptions[a];i&&i(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}let kZ=e=>1e3*e,k$=e=>e/1e3,kJ=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e;function k0(e,t,n,i){if(e===t&&n===i)return kW;let a=t=>(function(e,t,n,i,a){let o,s,l=0;do(o=kJ(s=t+(n-t)/2,i,a)-e)>0?n=s:t=s;while(Math.abs(o)>1e-7&&++l<12);return s})(t,0,1,e,n);return e=>0===e||1===e?e:kJ(a(e),t,i)}let k1=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,k2=e=>t=>1-e(1-t),k4=k0(.33,1.53,.69,.99),k5=k2(k4),k3=k1(k5),k6=e=>(e*=2)<1?.5*k5(e):.5*(2-Math.pow(2,-10*(e-1))),k7=e=>1-Math.sin(Math.acos(e)),k8=k2(k7),k9=k1(k7),_e=k0(.42,0,1,1),_t=k0(0,0,.58,1),_n=k0(.42,0,.58,1),_r=e=>Array.isArray(e)&&"number"!=typeof e[0],_i=e=>Array.isArray(e)&&"number"==typeof e[0],_a={linear:kW,easeIn:_e,easeInOut:_n,easeOut:_t,circIn:k7,circInOut:k9,circOut:k8,backIn:k5,backInOut:k3,backOut:k4,anticipate:k6},_o=e=>"string"==typeof e,_s=e=>{if(_i(e)){kF(4===e.length,"Cubic bezier arrays must contain four numerical values.","cubic-bezier-length");let[t,n,i,a]=e;return k0(t,n,i,a)}return _o(e)?(kF(void 0!==_a[e],`Invalid easing type '${e}
488'`,"invalid-easing-type"),_a[e]):e},_l=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function _u(e,t){let n=!1,i=!0,a={delta:0,timestamp:0,isProcessing:!1},o=()=>n=!0,s=_l.reduce((e,t)=>(e[t]=function(e,t){let n=new Set,i=new Set,a=!1,o=!1,s=new WeakSet,l={delta:0,timestamp:0,isProcessing:!1};function u(t){s.has(t)&&(c.schedule(t),e()),t(l)}let c={schedule:(e,t=!1,o=!1)=>{let l=o&&a?n:i;return t&&s.add(e),l.has(e)||l.add(e),e},cancel:e=>{i.delete(e),s.delete(e)},process:e=>{if(l=e,a){o=!0;return}a=!0,[n,i]=[i,n],n.forEach(u),n.clear(),a=!1,o&&(o=!1,c.process(e))}};return c}(o),e),{}),{setup:l,read:u,resolveKeyframes:c,preUpdate:d,update:p,preRender:h,render:m,postRender:f}=s,g=()=>{let o=kH.useManualTiming?a.timestamp:performance.now();n=!1,kH.useManualTiming||(a.delta=i?1e3/60:Math.max(Math.min(o-a.timestamp,40),1)),a.timestamp=o,a.isProcessing=!0,l.process(a),u.process(a),c.process(a),d.process(a),p.process(a),h.process(a),m.process(a),f.process(a),a.isProcessing=!1,n&&t&&(i=!1,e(g))},x=()=>{n=!0,i=!0,a.isProcessing||e(g)};return{schedule:_l.reduce((e,t)=>{let i=s[t];return e[t]=(e,t=!1,a=!1)=>(n||x(),i.schedule(e,t,a)),e},{}),cancel:e=>{for(let t=0;t<_l.length;t++)s[_l[t]].cancel(e)},state:a,steps:s}}let{schedule:_c,cancel:_d,state:_p,steps:_h}=_u("u">typeof requestAnimationFrame?requestAnimationFrame:kW,!0);function _m(){i=void 0}let _f={now:()=>(void 0===i&&_f.set(_p.isProcessing||kH.useManualTiming?_p.timestamp:performance.now()),i),set:e=>{i=e,queueMicrotask(_m)}},_g=e=>t=>"string"==typeof t&&t.startsWith(e),_x=_g("--"),_v=_g("var(--"),_y=e=>!!_v(e)&&_b.test(e.split("/*")[0].trim()),_b=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function _w(e){return"string"==typeof e&&e.split("/*")[0].includes("var(--")}let _k={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},__={..._k,transform:e=>kB(0,1,e)},_T={..._k,default:1},_E=e=>Math.round(1e5*e)/1e5,_S=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,_A=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,_C=(e,t)=>n=>!!("string"==typeof n&&_A.test(n)&&n.startsWith(e)||t&&null!=n&&Object.prototype.hasOwnProperty.call(n,t)),_N=(e,t,n)=>i=>{if("string"!=typeof i)return i;let[a,o,s,l]=i.match(_S);return{[e]:parseFloat(a),[t]:parseFloat(o),[n]:parseFloat(s),alpha:void 0!==l?parseFloat(l):1}},_I=e=>kB(0,255,e),_M={..._k,transform:e=>Math.round(_I(e))},_P={test:_C("rgb","red"),parse:_N("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:i=1})=>"rgba("+_M.transform(e)+", "+_M.transform(t)+", "+_M.transform(n)+", "+_E(__.transform(i))+")"},_R={test:_C("#"),parse:function(e){let t="",n="",i="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),i=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),i=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,i+=i,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(i,16),alpha:a?parseInt(a,16)/255:1}},transform:_P.transform},_D=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),_L=_D("deg"),_O=_D("%"),_B=_D("px"),_j=_D("vh"),_z=_D("vw"),_F={..._O,parse:e=>_O.parse(e)/100,transform:e=>_O.transform(100*e)},_H={test:_C("hsl","hue"),parse:_N("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:i=1})=>"hsla("+Math.round(e)+", "+_O.transform(_E(t))+", "+_O.transform(_E(n))+", "+_E(__.transform(i))+")"},_U={test:e=>_P.test(e)||_R.test(e)||_H.test(e),parse:e=>_P.test(e)?_P.parse(e):_H.test(e)?_H.parse(e):_R.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?_P.transform(e):_H.transform(e),getAnimatableNone:e=>{let t=_U.parse(e);return t.alpha=0,_U.transform(t)}},_G=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,_q="number",_V="color",_W=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function _Y(e){let t=e.toString(),n=[],i={color:[],number:[],var:[]},a=[],o=0,s=t.replace(_W,e=>(_U.test(e)?(i.color.push(o),a.push(_V),n.push(_U.parse(e))):e.startsWith("var(")?(i.var.push(o),a.push("var"),n.push(e)):(i.number.push(o),a.push(_q),n.push(parseFloat(e))),++o,"${}")).split("${}");return{values:n,split:s,indexes:i,types:a}}function _K(e){return _Y(e).values}function _X(e){let{split:t,types:n}=_Y(e),i=t.length;return e=>{let a="";for(let o=0;o<i;o++)if(a+=t[o],void 0!==e[o]){let t=n[o];t===_q?a+=_E(e[o]):t===_V?a+=_U.transform(e[o]):a+=e[o]}return a}}let _Q=e=>"number"==typeof e?0:_U.test(e)?_U.getAnimatableNone(e):e,_Z={test:function(e){var t,n;return isNaN(e)&&"string"==typeof e&&((null==(t=e.match(_S))?void 0:t.length)||0)+((null==(n=e.match(_G))?void 0:n.length)||0)>0},parse:_K,createTransformer:_X,getAnimatableNone:function(e){let t=_K(e);return _X(e)(t.map(_Q))}};function _$(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function _J(e,t){return n=>n>0?t:e}let _0=(e,t,n)=>e+(t-e)*n,_1=(e,t,n)=>{let i=e*e,a=n*(t*t-i)+i;return a<0?0:Math.sqrt(a)},_2=[_R,_P,_H],_4=e=>_2.find(t=>t.test(e));function _5(e){let t=_4(e);if(kz(!!t,`'${e}' is not an animatable color. Use the equivalent color code instead.`,"color-not-animatable"),!t)return!1;let n=t.parse(e);return t===_H&&(n=function({hue:e,saturation:t,lightness:n,alpha:i}
488){e/=360,t/=100,n/=100;let a=0,o=0,s=0;if(t){let i=n<.5?n*(1+t):n+t-n*t,l=2*n-i;a=_$(l,i,e+1/3),o=_$(l,i,e),s=_$(l,i,e-1/3)}else a=o=s=n;return{red:Math.round(255*a),green:Math.round(255*o),blue:Math.round(255*s),alpha:i}}(n)),n}let _3=(e,t)=>{let n=_5(e),i=_5(t);if(!n||!i)return _J(e,t);let a={...n};return e=>(a.red=_1(n.red,i.red,e),a.green=_1(n.green,i.green,e),a.blue=_1(n.blue,i.blue,e),a.alpha=_0(n.alpha,i.alpha,e),_P.transform(a))},_6=new Set(["none","hidden"]);function _7(e,t){return n=>_0(e,t,n)}function _8(e){return"number"==typeof e?_7:"string"==typeof e?_y(e)?_J:_U.test(e)?_3:Tt:Array.isArray(e)?_9:"object"==typeof e?_U.test(e)?_3:Te:_J}function _9(e,t){let n=[...e],i=n.length,a=e.map((e,n)=>_8(e)(e,t[n]));return e=>{for(let t=0;t<i;t++)n[t]=a[t](e);return n}}function Te(e,t){let n={...e,...t},i={};for(let a in n)void 0!==e[a]&&void 0!==t[a]&&(i[a]=_8(e[a])(e[a],t[a]));return e=>{for(let t in i)n[t]=i[t](e);return n}}let Tt=(e,t)=>{let n=_Z.createTransformer(t),i=_Y(e),a=_Y(t);return i.indexes.var.length===a.indexes.var.length&&i.indexes.color.length===a.indexes.color.length&&i.indexes.number.length>=a.indexes.number.length?_6.has(e)&&!a.values.length||_6.has(t)&&!i.values.length?_6.has(e)?n=>n<=0?e:t:n=>n>=1?t:e:kK(_9(function(e,t){let n=[],i={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){let o=t.types[a],s=e.indexes[o][i[o]],l=e.values[s]??0;n[a]=l,i[o]++}return n}(i,a),a.values),n):(kz(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`,"complex-values-different"),_J(e,t))};function Tn(e,t,n){return"number"==typeof e&&"number"==typeof t&&"number"==typeof n?_0(e,t,n):_8(e)(e,t)}let Tr=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>_c.update(t,e),stop:()=>_d(t),now:()=>_p.isProcessing?_p.timestamp:_f.now()}},Ti=(e,t,n=10)=>{let i="",a=Math.max(Math.round(t/n),2);for(let t=0;t<a;t++)i+=Math.round(1e4*e(t/(a-1)))/1e4+", ";return`linear(${i.substring(0,i.length-2)})`};function Ta(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function To(e,t,n){var i,a;let o=Math.max(t-5,0);return i=n-e(o),(a=t-o)?1e3/a*i:0}let Ts={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1};function Tl(e,t){return e*Math.sqrt(1-t*t)}let Tu=["duration","bounce"],Tc=["stiffness","damping","mass"];function Td(e,t){return t.some(t=>void 0!==e[t])}function Tp(e=Ts.visualDuration,t=Ts.bounce){let n;let i="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e,{restSpeed:a,restDelta:o}=i,s=i.keyframes[0],l=i.keyframes[i.keyframes.length-1],u={done:!1,value:s},{stiffness:c,damping:d,mass:p,duration:h,velocity:m,isResolvedFromDuration:f}=function(e){let t={velocity:Ts.velocity,stiffness:Ts.stiffness,damping:Ts.damping,mass:Ts.mass,isResolvedFromDuration:!1,...e};if(!Td(e,Tc)&&Td(e,Tu)){if(e.visualDuration){let n=2*Math.PI/(1.2*e.visualDuration),i=n*n,a=2*kB(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:Ts.mass,stiffness:i,damping:a}}else{let n=function({duration:e=Ts.duration,bounce:t=Ts.bounce,velocity:n=Ts.velocity,mass:i=Ts.mass}){let a,o;kz(e<=kZ(Ts.maxDuration),"Spring duration must be 10 seconds or less","spring-duration-limit");let s=1-t;s=kB(Ts.minDamping,Ts.maxDamping,s),e=kB(Ts.minDuration,Ts.maxDuration,k$(e)),s<1?(a=t=>{let i=t*s,a=i*e;return .001-(i-n)/Tl(t,s)*Math.exp(-a)},o=t=>{let i=t*s*e,o=Math.pow(s,2)*Math.pow(t,2)*e,l=Tl(Math.pow(t,2),s);return(-a(t)+.001>0?-1:1)*((i*n+n-o)*Math.exp(-i))/l}):(a=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),o=t=>e*e*(n-t)*Math.exp(-t*e));let l=function(e,t,n){let i=n;for(let n=1;n<12;n++)i-=e(i)/t(i);return i}(a,o,5/e);if(e=kZ(e),isNaN(l))return{stiffness:Ts.stiffness,damping:Ts.damping,duration:e};{let t=Math.pow(l,2)*i;return{stiffness:t,damping:2*s*Math.sqrt(i*t),duration:e}}}(e);(t={...t,...n,mass:Ts.mass}).isResolvedFromDuration=!0}}return t}({...i,velocity:-k$(i.velocity||0)}),g=m||0,x=d/(2*Math.sqrt(c*p)),v=l-s,b=k$(Math.sqrt(c/p)),w=5>Math.abs(v);if(a||(a=w?Ts.restSpeed.granular:Ts.restSpeed.default),o||(o=w?Ts.restDelta.granular:Ts.restDelta.default),x<1){let e=Tl(b,x);n=t=>
488l-Math.exp(-x*b*t)*((g+x*b*v)/e*Math.sin(e*t)+v*Math.cos(e*t))}else if(1===x)n=e=>l-Math.exp(-b*e)*(v+(g+b*v)*e);else{let e=b*Math.sqrt(x*x-1);n=t=>{let n=Math.exp(-x*b*t),i=Math.min(e*t,300);return l-n*((g+x*b*v)*Math.sinh(i)+e*v*Math.cosh(i))/e}}let k={calculatedDuration:f&&h||null,next:e=>{let t=n(e);if(f)u.done=e>=h;else{let i=0===e?g:0;x<1&&(i=0===e?kZ(g):To(n,e,t));let s=Math.abs(i)<=a,c=Math.abs(l-t)<=o;u.done=s&&c}return u.value=u.done?l:t,u},toString:()=>{let e=Math.min(Ta(k),2e4),t=Ti(t=>k.next(e*t).value,e,30);return e+"ms "+t},toTransition:()=>{}};return k}function Th({keyframes:e,velocity:t=0,power:n=.8,timeConstant:i=325,bounceDamping:a=10,bounceStiffness:o=500,modifyTarget:s,min:l,max:u,restDelta:c=.5,restSpeed:d}){let p,h;let m=e[0],f={done:!1,value:m},g=e=>void 0!==l&&e<l||void 0!==u&&e>u,x=e=>void 0===l?u:void 0===u||Math.abs(l-e)<Math.abs(u-e)?l:u,v=n*t,b=m+v,w=void 0===s?b:s(b);w!==b&&(v=w-m);let k=e=>-v*Math.exp(-e/i),_=e=>w+k(e),T=e=>{let t=k(e),n=_(e);f.done=Math.abs(t)<=c,f.value=f.done?w:n},E=e=>{g(f.value)&&(p=e,h=Tp({keyframes:[f.value,x(f.value)],velocity:To(_,e,f.value),damping:a,stiffness:o,restDelta:c,restSpeed:d}))};return E(0),{calculatedDuration:null,next:e=>{let t=!1;return h||void 0!==p||(t=!0,T(e),E(e)),void 0!==p&&e>=p?h.next(e-p):(t||T(e),f)}}}function Tm({duration:e=300,keyframes:t,times:n,ease:i="easeInOut"}){let a=_r(i)?i.map(_s):_s(i),o={done:!1,value:t[0]},s=function(e,t,{clamp:n=!0,ease:i,mixer:a}={}){let o=e.length;if(kF(o===t.length,"Both input and output ranges must be the same length","range-length"),1===o)return()=>t[0];if(2===o&&t[0]===t[1])return()=>t[1];let s=e[0]===e[1];e[0]>e[o-1]&&(e=[...e].reverse(),t=[...t].reverse());let l=function(e,t,n){let i=[],a=n||kH.mix||Tn,o=e.length-1;for(let n=0;n<o;n++){let o=a(e[n],e[n+1]);t&&(o=kK(Array.isArray(t)?t[n]||kW:t,o)),i.push(o)}return i}(t,i,a),u=l.length,c=n=>{if(s&&n<e[0])return t[0];let i=0;if(u>1)for(;i<e.length-2&&!(n<e[i+1]);i++);let a=kX(e[i],e[i+1],n);return l[i](a)};return n?t=>c(kB(e[0],e[o-1],t)):c}((n&&n.length===t.length?n:function(e){let t=[0];return function(e,t){let n=e[e.length-1];for(let i=1;i<=t;i++){let a=kX(0,t,i);e.push(_0(n,1,a))}}(t,e.length-1),t}(t)).map(t=>t*e),t,{ease:Array.isArray(a)?a:t.map(()=>a||_n).splice(0,t.length-1)});return{calculatedDuration:e,next:t=>(o.value=s(t),o.done=t>=e,o)}}Tp.applyToOptions=e=>{let t=function(e,t=100,n){let i=n({...e,keyframes:[0,t]}),a=Math.min(Ta(i),2e4);return{type:"keyframes",ease:e=>i.next(a*e).value/t,duration:k$(a)}}(e,100,Tp);return e.ease=t.ease,e.duration=kZ(t.duration),e.type="keyframes",e};let Tf=e=>null!==e;function Tg(e,{repeat:t,repeatType:n="loop"},i,a=1){let o=e.filter(Tf),s=a<0||t&&"loop"!==n&&t%2==1?0:o.length-1;return s&&void 0!==i?i:o[s]}let Tx={decay:Th,inertia:Th,tween:Tm,keyframes:Tm,spring:Tp};function Tv(e){"string"==typeof e.type&&(e.type=Tx[e.type])}class Ty{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}}let Tb=e=>e/100;class Tw extends Ty{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var e,t;let{motionValue:n}=this.options;n&&n.updatedAt!==_f.now()&&this.tick(_f.now()),this.isStopped=!0,"idle"!==this.state&&(this.teardown(),null==(t=(e=this.options).onStop)||t.call(e))},this.options=e,this.initAnimation(),this.play(),!1===e.autoplay&&this.pause()}initAnimation(){let{options:e}=this;Tv(e);let{type:t=Tm,repeat:n=0,repeatDelay:i=0,repeatType:a,velocity:o=0}=e,{keyframes:s}=e,l=t||Tm;l!==Tm&&"number"!=typeof s[0]&&(this.mixKeyframes=kK(Tb,Tn(s[0],s[1])),s=[0,100]);let u=l({...e,keyframes:s});"mirror"===a&&(this.mirroredGenerator=l({...e,keyframes:[...s].reverse(),velocity:-o})),null===u.calculatedDuration&&(u.calculatedDuration=Ta(u));let{calculatedDuration:c}=u;this.calculatedDuration=c,this.resolvedDuration=c+i,this.totalDuration=this.resolvedDuration*(n+1)-i,this.generator=u}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=t}tick(e,t=!1){let{generator:n,totalDuration:i,mixKeyframes:a,mirroredGenerator:o,resolvedDuration:s,calculatedDuration:l}=this;if(null===this.startTime)return n.next(0);let{delay:u=0,keyframes:c,repeat:d,repeatType:p,repeatDelay:h,type:m,onUpdate:f,finalKeyframe:g}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-i/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let x=this.currentTime-u*(this.playbackSpeed>=0?1:-1),v=this.playbackSpeed>=0?x<0:x>i;
488this.currentTime=Math.max(x,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=i);let b=this.currentTime,w=n;if(d){let e=Math.min(this.currentTime,i)/s,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),1===n&&t--,(t=Math.min(t,d+1))%2&&("reverse"===p?(n=1-n,h&&(n-=h/s)):"mirror"===p&&(w=o)),b=kB(0,1,n)*s}let k=v?{done:!1,value:c[0]}:w.next(b);a&&(k.value=a(k.value));let{done:_}=k;v||null===l||(_=this.playbackSpeed>=0?this.currentTime>=i:this.currentTime<=0);let T=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return T&&m!==Th&&(k.value=Tg(c,this.options,g,this.speed)),f&&f(k.value),T&&this.finish(),k}then(e,t){return this.finished.then(e,t)}get duration(){return k$(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+k$(e)}get time(){return k$(this.currentTime)}set time(e){var t;e=kZ(e),this.currentTime=e,null===this.startTime||null!==this.holdTime||0===this.playbackSpeed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),null==(t=this.driver)||t.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(_f.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=k$(this.currentTime))}play(){var e,t;if(this.isStopped)return;let{driver:n=Tr,startTime:i}=this.options;this.driver||(this.driver=n(e=>this.tick(e))),null==(t=(e=this.options).onPlay)||t.call(e);let a=this.driver.now();"finished"===this.state?(this.updateFinished(),this.startTime=a):null!==this.holdTime?this.startTime=a-this.holdTime:this.startTime||(this.startTime=i??a),"finished"===this.state&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(_f.now()),this.holdTime=this.currentTime}complete(){"running"!==this.state&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,t;this.notifyFinished(),this.teardown(),this.state="finished",null==(t=(e=this.options).onComplete)||t.call(e)}cancel(){var e,t;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),null==(t=(e=this.options).onCancel)||t.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var t;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),null==(t=this.driver)||t.stop(),e.observe(this)}}let Tk=e=>180*e/Math.PI,T_=e=>TE(Tk(Math.atan2(e[1],e[0]))),TT={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:T_,rotateZ:T_,skewX:e=>Tk(Math.atan(e[1])),skewY:e=>Tk(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},TE=e=>((e%=360)<0&&(e+=360),e),TS=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),TA=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),TC={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:TS,scaleY:TA,scale:e=>(TS(e)+TA(e))/2,rotateX:e=>TE(Tk(Math.atan2(e[6],e[5]))),rotateY:e=>TE(Tk(Math.atan2(-e[2],e[0]))),rotateZ:T_,rotate:T_,skewX:e=>Tk(Math.atan(e[4])),skewY:e=>Tk(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function TN(e){return e.includes("scale")?1:0}function TI(e,t){let n,i;if(!e||"none"===e)return TN(t);let a=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);if(a)n=TC,i=a;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);n=TT,i=t}if(!i)return TN(t);let o=n[t],s=i[1].split(",").map(TP);return"function"==typeof o?o(s):s[o]}let TM=(e,t)=>{let{transform:n="none"}=getComputedStyle(e);return TI(n,t)};function TP(e){return parseFloat(e.trim())}let TR=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],TD=new Set(TR),TL=e=>e===_k||e===_B,TO=new Set(["x","y","z"]),TB=TR.filter(e=>!TO.has(e)),Tj={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>TI(t,"x"),y:(e,{transform:t})=>TI(t,"y")};Tj.translateX=Tj.x,Tj.translateY=Tj.y;let Tz=new Set,TF=!1,TH=!1,TU=!1;
488function TG(){if(TH){let e=Array.from(Tz).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;t.forEach(e=>{let t=function(e){let t=[];return TB.forEach(n=>{let i=e.getValue(n);void 0!==i&&(t.push([n,i.get()]),i.set(n.startsWith("scale")?1:0))}),t}(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{var i;null==(i=e.getValue(t))||i.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)})}TH=!1,TF=!1,Tz.forEach(e=>e.complete(TU)),Tz.clear()}function Tq(){Tz.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(TH=!0)})}class TV{constructor(e,t,n,i,a,o=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=i,this.element=a,this.isAsync=o}scheduleResolve(){this.state="scheduled",this.isAsync?(Tz.add(this),TF||(TF=!0,_c.read(Tq),_c.resolveKeyframes(TG))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:i}=this;if(null===e[0]){let a=null==i?void 0:i.get(),o=e[e.length-1];if(void 0!==a)e[0]=a;else if(n&&t){let i=n.readValue(t,o);null!=i&&(e[0]=i)}void 0===e[0]&&(e[0]=o),i&&void 0===a&&i.set(e[0])}!function(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),Tz.delete(this)}cancel(){"scheduled"===this.state&&(Tz.delete(this),this.state="pending")}resume(){"pending"===this.state&&this.scheduleResolve()}}let TW=e=>e.startsWith("--"),TY=kV(()=>void 0!==window.ScrollTimeline),TK={},TX=function(e,t){let n=kV(e);return()=>TK[t]??n()}(()=>{try{document.createElement("div").animate({opacity:0}
488,{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),TQ=([e,t,n,i])=>`cubic-bezier(${e}, ${t}, ${n}, ${i})`,TZ={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:TQ([0,.65,.55,1]),circOut:TQ([.55,0,1,.45]),backIn:TQ([.31,.01,.66,-.59]),backOut:TQ([.33,1.53,.69,.99])};function T$(e){return"function"==typeof e&&"applyToOptions"in e}class TJ extends Ty{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:i,pseudoElement:a,allowFlatten:o=!1,finalKeyframe:s,onComplete:l}=e;this.isPseudoElement=!!a,this.allowFlatten=o,this.options=e,kF("string"!=typeof e.type,'Mini animate() doesn\'t support "type" as a string.',"mini-spring");let u=function({type:e,...t}){return T$(e)&&TX()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}(e);this.animation=function(e,t,n,{delay:i=0,duration:a=300,repeat:o=0,repeatType:s="loop",ease:l="easeOut",times:u}={},c){let d={[t]:n};u&&(d.offset=u);let p=function e(t,n){if(t)return"function"==typeof t?TX()?Ti(t,n):"ease-out":_i(t)?TQ(t):Array.isArray(t)?t.map(t=>e(t,n)||TZ.easeOut):TZ[t]}(l,a);Array.isArray(p)&&(d.easing=p);let h={delay:i,duration:a,easing:Array.isArray(p)?"linear":p,fill:"both",iterations:o+1,direction:"reverse"===s?"alternate":"normal"};return c&&(h.pseudoElement=c),e.animate(d,h)}(t,n,i,u,a),!1===u.autoplay&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!a){let e=Tg(i,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(e):TW(n)?t.style.setProperty(n,e):t.style[n]=e,this.animation.cancel()}null==l||l(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),"finished"===this.state&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,t;null==(t=(e=this.animation).finish)||t.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;"idle"===e||"finished"===e||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,t,n;let i=null==(e=this.options)?void 0:e.element;!this.isPseudoElement&&null!=i&&i.isConnected&&(null==(n=(t=this.animation).commitStyles)||n.call(t))}get duration(){var e,t;return k$(Number((null==(t=null==(e=this.animation.effect)?void 0:e.getComputedTiming)?void 0:t.call(e).duration)||0))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+k$(e)}get time(){return k$(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=kZ(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return null!==this.finishedTime?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){var n;return this.allowFlatten&&(null==(n=this.animation.effect)||n.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&TY()?(this.animation.timeline=e,kW):t(this)}}let T0={anticipate:k6,backInOut:k3,circInOut:k9};class T1 extends TJ{constructor(e){"string"==typeof e.ease&&e.ease in T0&&(e.ease=T0[e.ease]),Tv(e),super(e),void 0!==e.startTime&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:i,element:a,...o}=this.options;if(!t)return;if(void 0!==e){t.set(e);return}let s=new Tw({...o,autoplay:!1}),l=Math.max(10,_f.now()-this.startTime),u=kB(0,10,l-10);t.setWithVelocity(s.sample(Math.max(0,l-u)).value,s.sample(l).value,u),s.stop()}}let T2=(e,t)=>"zIndex"!==t&&!!("number"==typeof e||Array.isArray(e)||"string"==typeof e&&(_Z.test(e)||"0"===e)&&!e.startsWith("url("));function T4(e){e.duration=0,e.type="keyframes"}let T5=new Set(["opacity","clipPath","filter","transform"]),T3=kV(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));class T6 extends Ty{constructor({autoplay:e=!0,delay:t=0,type:n="keyframes",repeat:i=0,repeatDelay:a=0,repeatType:
488o="loop",keyframes:s,name:l,motionValue:u,element:c,...d}){var p;super(),this.stop=()=>{var e,t;this._animation&&(this._animation.stop(),null==(e=this.stopTimeline)||e.call(this)),null==(t=this.keyframeResolver)||t.cancel()},this.createdAt=_f.now();let h={autoplay:e,delay:t,type:n,repeat:i,repeatDelay:a,repeatType:o,name:l,motionValue:u,element:c,...d},m=(null==c?void 0:c.KeyframeResolver)||TV;this.keyframeResolver=new m(s,(e,t,n)=>this.onKeyframesResolved(e,t,h,!n),l,u,c),null==(p=this.keyframeResolver)||p.scheduleResolve()}onKeyframesResolved(e,t,n,i){var a,o;this.keyframeResolver=void 0;let{name:s,type:l,velocity:u,delay:c,isHandoff:d,onUpdate:p}=n;this.resolvedAt=_f.now(),function(e,t,n,i){let a=e[0];if(null===a)return!1;if("display"===t||"visibility"===t)return!0;let o=e[e.length-1],s=T2(a,t),l=T2(o,t);return kz(s===l,`You are trying to animate ${t} from "${a}" to "${o}". "${s?o:a}" is not an animatable value.`,"value-not-animatable"),!!s&&!!l&&(function(e){let t=e[0];if(1===e.length)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}(e)||("spring"===n||T$(n))&&i)}(e,s,l,u)||((kH.instantAnimations||!c)&&(null==p||p(Tg(e,n,t))),e[0]=e[e.length-1],T4(n),n.repeat=0);let h={startTime:i?this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},m=!d&&function(e){var t;let{motionValue:n,name:i,repeatDelay:a,repeatType:o,damping:s,type:l}=e;if(!((null==(t=null==n?void 0:n.owner)?void 0:t.current)instanceof HTMLElement))return!1;let{onUpdate:u,transformTemplate:c}=n.owner.getProps();return T3()&&i&&T5.has(i)&&("transform"!==i||!c)&&!u&&!a&&"mirror"!==o&&0!==s&&"inertia"!==l}(h),f=null==(o=null==(a=h.motionValue)?void 0:a.owner)?void 0:o.current,g=m?new T1({...h,element:f}):new Tw(h);g.finished.then(()=>{this.notifyFinished()}).catch(kW),this.pendingTimeline&&(this.stopTimeline=g.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=g}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||(null==(e=this.keyframeResolver)||e.resume(),TU=!0,Tq(),TG(),TU=!1),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),null==(e=this.keyframeResolver)||e.cancel()}}function T7(e,t,n,i=0,a=1){let o=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),s=e.size,l=(s-1)*i;return"function"==typeof n?n(o,s):1===a?o*i:l-o*i}let T8=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u,T9={type:"spring",stiffness:500,damping:25,restSpeed:10},Ee=e=>({type:"spring",stiffness:550,damping:0===e?2*Math.sqrt(550):30,restSpeed:10}),Et={type:"keyframes",duration:.8},En={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Er=(e,{keyframes:t})=>t.length>2?Et:TD.has(e)?e.startsWith("scale")?Ee(t[1]):T9:En,Ei=e=>null!==e;function Ea(e,t){return(null==e?void 0:e[t])??(null==e?void 0:e.default)??e}let Eo=(e,t,n,i={},a,o)=>s=>{let l=Ea(i,e)||{},u=l.delay||i.delay||0,{elapsed:c=0}=i;c-=kZ(u);let d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...l,delay:-c,onUpdate:e=>{t.set(e),l.onUpdate&&l.onUpdate(e)},onComplete:()=>{s(),l.onComplete&&l.onComplete()},name:e,motionValue:t,element:o?void 0:a};(function({when:e,delay:t,delayChildren:n,staggerChildren:i,staggerDirection:a,repeat:o,repeatType:s,repeatDelay:l,from:u,elapsed:c,...d}){return!!Object.keys(d).length})(l)||Object.assign(d,Er(e,d)),d.duration&&(d.duration=kZ(d.duration)),d.repeatDelay&&(d.repeatDelay=kZ(d.repeatDelay)),void 0!==d.from&&(d.keyframes[0]=d.from);let p=!1;if(!1!==d.type&&(0!==d.duration||d.repeatDelay)||(T4(d),0!==d.delay||(p=!0)),(kH.instantAnimations||kH.skipAnimations||null!=a&&a.shouldSkipAnimations)&&(p=!0,T4(d),d.delay=0),d.allowFlatten=!l.type&&!l.ease,p&&!o&&void 0!==t.get()){let e=function(e,{repeat:t,repeatType:n="loop"},i){let a=e.filter(Ei),o=t&&"loop"!==n&&t%2==1?0:a.length-1;return a[o]}(d.keyframes,l);if(void 0!==e){_c.update(()=>{d.onUpdate(e),d.onComplete()});return}}return l.isSync?new Tw(d):new T6(d)};function Es(e){let t=[{},{}];
488return null==e||e.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function El(e,t,n,i){if("function"==typeof t){let[a,o]=Es(i);t=t(void 0!==n?n:e.custom,a,o)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){let[a,o]=Es(i);t=t(void 0!==n?n:e.custom,a,o)}return t}function Eu(e,t,n){let i=e.getProps();return El(i,t,void 0!==n?n:i.custom,e)}let Ec=new Set(["width","height","top","left","right","bottom",...TR]),Ed=e=>!isNaN(parseFloat(e));class Ep{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{var t;let n=_f.now();if(this.updatedAt!==n&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(null==(t=this.events.change)||t.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=_f.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=Ed(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new kQ);let n=this.events[e].add(t);return"change"===e?()=>{n(),_c.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;null==(e=this.events.change)||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){var e;let t=_f.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;let n=Math.min(this.updatedAt-this.prevUpdatedAt,30);return e=parseFloat(this.current)-parseFloat(this.prevFrameValue),n?1e3/n*e:0}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,t;null==(e=this.dependents)||e.clear(),null==(t=this.events.destroy)||t.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Eh(e,t){return new Ep(e,t)}let Em=e=>Array.isArray(e),Ef=e=>!!(e&&e.getVelocity);function Eg(e,t){let n=e.getValue("willChange");if(Ef(n)&&n.add)return n.add(t);if(!n&&kH.WillChange){let n=new kH.WillChange("auto");e.addValue("willChange",n),n.add(t)}}function Ex(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}let Ev="data-"+Ex("framerAppearId");function Ey(e,t,{delay:n=0,transitionOverride:i,type:a}={}){let{transition:o=e.getDefaultTransition(),transitionEnd:s,...l}=t,u=null==o?void 0:o.reduceMotion;i&&(o=i);let c=[],d=a&&e.animationState&&e.animationState.getState()[a];for(let t in l){let i=e.getValue(t,e.latestValues[t]??null),a=l[t];if(void 0===a||d&&function({protectedKeys:e,needsAnimating:t},n){let i=e.hasOwnProperty(n)&&!0!==t[n];return t[n]=!1,i}(d,t))continue;let s={delay:n,...Ea(o||{},t)},p=i.get();if(void 0!==p&&!i.isAnimating&&!Array.isArray(a)&&a===p&&!s.velocity)continue;let h=!1;if(window.MotionHandoffAnimation){let n=e.props[Ev];if(n){let e=window.MotionHandoffAnimation(n,t,_c);null!==e&&(s.startTime=e,h=!0)}}Eg(e,t);let m=u??e.shouldReduceMotion;i.start(Eo(t,i,a,m&&Ec.has(t)?{type:!1}:s,e,h));let f=i.animation;f&&c.push(f)}return s&&Promise.all(c).then(()=>{_c.update(()=>{s&&function(e,t){let{transitionEnd:n={},transition:i={},...a}=Eu(e,t)||{};for(let t in a={...a,...n}){var o;let n=Em(o=a[t])?o[o.length-1]||0:o;e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Eh(n))}}(e,s)})}),c}function Eb(e,t,n={}){var i;let a=Eu(e,t,"exit"===n.type?null==(i=e.presenceContext)?void 0:i.custom:void 0),{transition:o=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(o=n.transitionOverride);let s=a?()=>Promise.all(Ey(e,a,n)):()=>Promise.resolve(),l=e.variantChildren&&e.variantChildren.size?(i=0)=>{let{delayChildren:a=0,staggerChildren:s,staggerDirection:l}=o;return function(e,t,n=0,i=0,a=0,o=1,s){let l=[];for(let u of e.variantChildren)u.notify("AnimationStart",t),l.push(Eb(u,t,{...s,delay:n+("function"==typeof i?0:i)+T7(e.variantChildren,u,i,a,o)}).then(()=>u.notify("AnimationComplete",t)));return Promise.all(l)}(e,t,i,a,s,l,n)}:()=>Promise.resolve(),{when:u}=o;if(!u)return Promise.all([s(),l(n.delay)]);{let[e,t]="beforeChildren"===u?[s,l]:[l,s];return e().then(()=>t())}}let Ew=e=>t=>t.test(e),Ek=[_k,_B,_O,_L,_z,_j,{test:e=>"auto"===e,parse:e=>e}],E_=e=>Ek.find(Ew(e)),ET=new Set(["brightness","contrast","saturate","opacity"]);function EE(e){let[t,n]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;let[i]=n.match(_S)||[];if(!i)return e;let a=n.replace(i,""),o=ET.has(t)?1:0;return i!==n&&(o*=100),t+"("+o+a+")"}let ES=/\b([a-z-]*)\(.*?\)/gu,EA={..._Z,getAnimatableNone:e=>{let t=e.match(ES);return t?t.map(EE).join(" "):e}},EC={..._k,transform:Math.round},EN={borderWidth:_B,borderTopWidth:_B,borderRightWidth:_B,borderBottomWidth:_B,borderLeftWidth:_B,borderRadius:_B,borderTopLeftRadius:_B,borderTopRightRadius:_B,borderBottomRightRadius:_B,borderBottomLeftRadius:_B,width:_B,maxWidth:_B,height:_B,maxHeight:_B,top:_B,right:_B,bottom:_B,left:_B,inset:_B,insetBlock:_B,insetBlockStart:_B,insetBlockEnd:_B,insetInline:_B,insetInlineStart:_B,insetInlineEnd:_B,padding:_B,paddingTop:_B,paddingRight:_B,paddingBottom:_B,paddingLeft:_B,paddingBlock:_B,paddingBlockStart:_B,paddingBlockEnd:_B,paddingInline:_B,paddingInlineStart:_B,paddingInlineEnd:_B,margin:_B,marginTop:_B,marginRight:_B,marginBottom:_B,marginLeft:_B,marginBlock:_B,marginBlockStart:_B,marginBlockEnd:_B,marginInline:_B,marginInlineStart:_B,marginInlineEnd:_B,fontSize:_B,backgroundPositionX:_B,backgroundPositionY:_B,rotate:_L,rotateX:_L,rotateY:_L,rotateZ:_L,scale:_T,scaleX:_T,scaleY:_T,scaleZ:_T,skew:_L,skewX:_L,skewY:_L,distance:_B,translateX:_B,translateY:_B,translateZ:_B,x:_B,y:_B,z:_B,perspective:_B,transformPerspective:_B,opacity:__,originX:_F,originY:_F,originZ:_B,zIndex:EC,fillOpacity:__,strokeOpacity:__,numOctaves:EC},EI={...EN,color:_U,backgroundColor:_U,outlineColor:_U,fill:_U,stroke:_U,borderColor:_U,borderTopColor:_U,borderRightColor:_U,borderBottomColor:_U,borderLeftColor:_U,filter:EA,WebkitFilter:EA},EM=e=>EI[e];function EP(e,t){let n=EM(e);return n!==EA&&(n=_Z),n.getAnimatableNone?n.getAnimatableNone(t):void 0}
488let ER=new Set(["auto","none","0"]);class ED extends TV{constructor(e,t,n,i,a){super(e,t,n,i,a,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let i=e[n];if("string"==typeof i&&_y(i=i.trim())){let a=function e(t,n,i=1){kF(i<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`,"max-css-var-depth");let[a,o]=function(e){let t=T8.exec(e);if(!t)return[,];let[,n,i,a]=t;return[`--${n??i}`,a]}(t);if(!a)return;let s=window.getComputedStyle(n).getPropertyValue(a);if(s){let e=s.trim();return kU(e)?parseFloat(e):e}return _y(o)?e(o,n,i+1):o}(i,t.current);void 0!==a&&(e[n]=a),n===e.length-1&&(this.finalKeyframe=i)}}if(this.resolveNoneKeyframes(),!Ec.has(n)||2!==e.length)return;let[i,a]=e,o=E_(i),s=E_(a);if(_w(i)!==_w(a)&&Tj[n]){this.needsMeasurement=!0;return}if(o!==s){if(TL(o)&&TL(s))for(let t=0;t<e.length;t++){let n=e[t];"string"==typeof n&&(e[t]=parseFloat(n))}else Tj[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++){var i;(null===e[t]||("number"==typeof(i=e[t])?0===i:null===i||"none"===i||"0"===i||kq(i)))&&n.push(t)}n.length&&function(e,t,n){let i=0,a;for(;i<e.length&&!a;){let t=e[i];"string"==typeof t&&!ER.has(t)&&_Y(t).values.length&&(a=e[i]),i++}if(a&&n)for(let i of t)e[i]=EP(n,a)}(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;"height"===n&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Tj[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let i=t[t.length-1];void 0!==i&&e.getValue(n,i).jump(i,!1)}measureEndState(){var e;let{element:t,name:n,unresolvedKeyframes:i}=this;if(!t||!t.current)return;let a=t.getValue(n);a&&a.jump(this.measuredOrigin,!1);let o=i.length-1,s=i[o];i[o]=Tj[n](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==s&&void 0===this.finalKeyframe&&(this.finalKeyframe=s),null!=(e=this.removedTransforms)&&e.length&&this.removedTransforms.forEac
488h(([e,n])=>{t.getValue(e).set(n)}),this.resolveNoneKeyframes()}}let EL=(e,t)=>t&&"number"==typeof e?t.transform(e):e,{schedule:EO}=_u(queueMicrotask,!1),EB={x:!1,y:!1};function Ej(e,t){let n=function(e,t,n){if(null==e)return[];if(e instanceof EventTarget)return[e];if("string"==typeof e){let t=document,n=(void 0)??t.querySelectorAll(e);return n?Array.from(n):[]}return Array.from(e).filter(e=>null!=e)}(e),i=new AbortController;return[n,{passive:!0,...t,signal:i.signal},()=>i.abort()]}function Ez(e){return!("touch"===e.pointerType||EB.x||EB.y)}let EF=(e,t)=>!!t&&(e===t||EF(e,t.parentElement)),EH=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,EU=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),EG=new Set(["INPUT","SELECT","TEXTAREA"]),Eq=new WeakSet;function EV(e){return t=>{"Enter"===t.key&&e(t)}}function EW(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}let EY=(e,t)=>{let n=e.currentTarget;if(!n)return;let i=EV(()=>{if(Eq.has(n))return;EW(n,"down");let e=EV(()=>{EW(n,"up")});n.addEventListener("keyup",e,t),n.addEventListener("blur",()=>EW(n,"cancel"),t)});n.addEventListener("keydown",i,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",i),t)};function EK(e){return EH(e)&&!(EB.x||EB.y)}function EX(e){return kG(e)&&"ownerSVGElement"in e}let EQ=[...Ek,_U,_Z],EZ=e=>EQ.find(Ew(e)),E$=()=>({translate:0,scale:1,origin:0,originPoint:0}),EJ=()=>({x:E$(),y:E$()}),E0=()=>({min:0,max:0}),E1=()=>({x:E0(),y:E0()}),E2={current:null},E4={current:!1},E5="u">typeof window,E3=new WeakMap;function E6(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}function E7(e){return"string"==typeof e||Array.isArray(e)}let E8=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],E9=["initial",...E8];function Se(e){return E6(e.animate)||E9.some(t=>E7(e[t]))}function St(e){return!!(Se(e)||e.variants)}let Sn=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],Sr={};class Si{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:i,skipAnimations:a,blockInitialAnimation:o,visualState:s},l={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=TV,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=_f.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,_c.render(this.render,!1,!0))};let{latestValues:u,renderState:c}=s;this.latestValues=u,this.baseTarget={...u},this.initialValues=t.initial?{...u}:{},this.renderState=c,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=i,this.skipAnimationsConfig=a,this.options=l,this.blockInitialAnimation=!!o,this.isControllingVariants=Se(t),this.isVariantNode=St(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:d,...p}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in p){let t=p[e];void 0!==u[e]&&Ef(t)&&t.set(u[e])}}mount(e){var t;this.current=e,E3.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((e,t)=>this.bindToMotionValue(t,e)),"never"===this.reducedMotionConfig?this.shouldReduceMotion=!1:"always"===this.reducedMotionConfig?this.shouldReduceMotion=!0:(E4.current||function(){if(E4.current=!0,E5){if(window.matchMedia){let e=window.matchMedia("(prefers-reduced-motion)"),t=()=>E2.current=e.matches;e.addEventListener("change",t),t()}else E2.current=!1}}(),this.shouldReduceMotion=E2.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,null==(t=this.parent)||t.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;
488for(let t in this.projection&&this.projection.unmount(),_d(this.notifyUpdate),_d(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),null==(e=this.parent)||e.removeChild(this),this.events)this.events[t].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){let n;this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let i=TD.has(e);i&&this.onBindTransform&&this.onBindTransform();let a=t.on("change",t=>{this.latestValues[e]=t,this.props.onUpdate&&_c.preRender(this.notifyUpdate),i&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});"u">typeof window&&window.MotionCheckAppearSync&&(n=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{a(),n&&n(),t.owner&&t.stop()})}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in Sr){let t=Sr[e];if(!t)continue;let{isEnabled:n,Feature:i}=t;if(!this.features[e]&&i&&n(this.props)&&(this.features[e]=new i(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):E1()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<Sn.length;t++){let n=Sn[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let i=e["on"+n];i&&(this.propEventSubscriptions[n]=this.on(n,i))}this.prevMotionValues=function(e,t,n){for(let i in t){let a=t[i],o=n[i];if(Ef(a))e.addValue(i,a);else if(Ef(o))e.addValue(i,Eh(a,{owner:e}));else if(o!==a){if(e.hasValue(i)){let t=e.getValue(i);!0===t.liveStyle?t.jump(a):t.hasAnimated||t.set(a)}else{let t=e.getStaticValue(i);e.addValue(i,Eh(void 0!==t?t:a,{owner:e}))}}}for(let i in n)void 0===t[i]&&e.removeValue(i);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return void 0===n&&void 0!==t&&(n=Eh(null===t?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=void 0===this.latestValues[e]&&this.current?this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(kU(n)||kq(n))?n=parseFloat(n):!EZ(n)&&_Z.test(t)&&(n=EP(e,t)),this.setBaseTarget(e,Ef(n)?n.get():n)),Ef(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;let n;let{initial:i}=this.props;if("string"==typeof i||"object"==typeof i){let a=El(this.props,i,null==(t=this.presenceContext)?void 0:t.custom);a&&(n=a[e])}if(i&&void 0!==n)return n;let a=this.getBaseTargetFromProps(this.props,e);return void 0===a||Ef(a)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:a}on(e,t){return this.events[e]||(this.events[e]=new kQ),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){EO.render(this.render)}}class Sa extends Si{constructor(){super(...arguments),this.KeyframeResolver=ED}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;Ef(e)&&(this.childSubscription=e.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class So{constructor(e){this.isMounted=!1,this.node=e}update(){}}function Ss({top:e,left:t,right:n,bottom:i}){return{x:{min:t,max:n},y:{min:e,max:i}}}function Sl(e){return void 0===e||1===e}function Su({scale:e,scaleX:t,scaleY:n}){return!Sl(e)||!Sl(t)||!Sl(n)}function Sc(e){return Su(e)||Sd(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Sd(e){var t,n;
488return(t=e.x)&&"0%"!==t||(n=e.y)&&"0%"!==n}function Sp(e,t,n,i,a){return void 0!==a&&(e=i+a*(e-i)),i+n*(e-i)+t}function Sh(e,t=0,n=1,i,a){e.min=Sp(e.min,t,n,i,a),e.max=Sp(e.max,t,n,i,a)}function Sm(e,{x:t,y:n}){Sh(e.x,t.translate,t.scale,t.originPoint),Sh(e.y,n.translate,n.scale,n.originPoint)}function Sf(e,t){e.min=e.min+t,e.max=e.max+t}function Sg(e,t,n,i,a=.5){let o=_0(e.min,e.max,a);Sh(e,t,n,o,i)}function Sx(e,t){Sg(e.x,t.x,t.scaleX,t.scale,t.originX),Sg(e.y,t.y,t.scaleY,t.scale,t.originY)}function Sv(e,t){return Ss(function(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),i=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:i.y,right:i.x}}(e.getBoundingClientRect(),t))}let Sy={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Sb=TR.length;function Sw(e,t,n){let{style:i,vars:a,transformOrigin:o}=e,s=!1,l=!1;for(let e in t){let n=t[e];if(TD.has(e)){s=!0;continue}if(_x(e)){a[e]=n;continue}{let t=EL(n,EN[e]);e.startsWith("origin")?(l=!0,o[e]=t):i[e]=t}}if(t.transform||(s||n?i.transform=function(e,t,n){let i="",a=!0;for(let o=0;o<Sb;o++){let s=TR[o],l=e[s];if(void 0===l)continue;let u=!0;if("number"==typeof l)u=l===(s.startsWith("scale")?1:0);else{let e=parseFloat(l);u=s.startsWith("scale")?1===e:0===e}if(!u||n){let e=EL(l,EN[s]);if(!u){a=!1;let t=Sy[s]||s;i+=`${t}(${e}) `}n&&(t[s]=e)}}return i=i.trim(),n?i=n(t,a?"":i):a&&(i="none"),i}(t,e.transform,n):i.transform&&(i.transform="none")),l){let{originX:e="50%",originY:t="50%",originZ:n=0}=o;i.transformOrigin=`${e} ${t} ${n}`}}function Sk(e,{style:t,vars:n},i,a){let o;let s=e.style;for(o in t)s[o]=t[o];for(o in null==a||a.applyProjectionStyles(s,i),n)s.setProperty(o,n[o])}function S_(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}let ST={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!_B.test(e))return e;e=parseFloat(e)}let n=S_(e,t.target.x),i=S_(e,t.target.y);return`${n}% ${i}%`}},SE={borderRadius:{...ST,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:ST,borderTopRightRadius:ST,borderBottomLeftRadius:ST,borderBottomRightRadius:ST,boxShadow:{correct:(e,{treeScale:t,projectionDelta:n})=>{let i=_Z.parse(e);if(i.length>5)return e;let a=_Z.createTransformer(e),o="number"!=typeof i[0]?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=l;let u=_0(s,l,.5);return"number"==typeof i[2+o]&&(i[2+o]/=u),"number"==typeof i[3+o]&&(i[3+o]/=u),a(i)}}};function SS(e,{layout:t,layoutId:n}){return TD.has(e)||e.startsWith("origin")||(t||void 0!==n)&&(!!SE[e]||"opacity"===e)}function SA(e,t,n){var i;let a=e.style,o=null==t?void 0:t.style,s={};if(!a)return s;for(let t in a)(Ef(a[t])||o&&Ef(o[t])||SS(t,e)||(null==(i=null==n?void 0:n.getValue(t))?void 0:i.liveStyle)!==void 0)&&(s[t]=a[t]);return s}class SC extends Sa{constructor(){super(...arguments),this.type="html",this.renderInstance=Sk}readValueFromInstance(e,t){var n;if(TD.has(t))return null!=(n=this.projection)&&n.isProjecting?TN(t):TM(e,t);{let n=window.getComputedStyle(e),i=(_x(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof i?i.trim():i}}measureInstanceViewportBox(e,{transformPagePoint:t}){return Sv(e,t)}build(e,t,n){Sw(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return SA(e,t,n)}}let SN={offset:"stroke-dashoffset",array:"stroke-dasharray"},SI={offset:"strokeDashoffset",array:"strokeDasharray"},SM=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function SP(e,{attrX:t,attrY:n,attrScale:i,pathLength:a,pathSpacing:o=1,pathOffset:s=0,...l},u,c,d){if(Sw(e,l,c),u){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:p,style:h}=e;for(let e of(p.transform&&(h.transform=p.transform,delete p.transform),(h.transform||p.transformOrigin)&&(h.transformOrigin=p.transformOrigin??"50% 50%",delete p.transformOrigin),h.transform&&(h.transformBox=(null==d?void 0:d.transformBox)??"fill-box",delete p.transformBox),SM))void 0!==p[e]&&(h[e]=p[e],delete p[e]);void 0!==t&&(p.x=t),void 0!==n&&(p.y=n),void 0!==i&&(p.scale=i),void 0!==a&&function(e,t,n=1,i=0,a=!0){e.pathLength=1;let o=a?SN:SI;e[o.offset]=`${-i}`,e[o.array]=`${t} ${n}`}(p,a,o,s,!1)}let SR=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),SD=e=>"string"==typeof e&&"svg"===e.toLowerCase();function SL(e,t,n){let i=SA(e,t,n);for(let n in e)(Ef(e[n])||Ef(t[n]))&&(i[-1!==TR.indexOf(n)?"attr"+n.charAt(0).toUpperCase()+n.substring(1):n]=e[n]);return i}class SO extends Sa{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=E1}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(TD.has(t)){let e=EM(t);return e&&e.default||0}return t=SR.has(t)?t:Ex(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return SL(e,t,n)}
488build(e,t,n){SP(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,i){!function(e,t,n,i){for(let n in Sk(e,t,void 0,i),t.attrs)e.setAttribute(SR.has(n)?n:Ex(n),t.attrs[n])}(e,t,0,i)}mount(e){this.isSVGTag=SD(e.tagName),super.mount(e)}}let SB=E9.length;function Sj(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let i=0;i<n;i++)if(t[i]!==e[i])return!1;return!0}let Sz=[...E8].reverse(),SF=E8.length;function SH(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function SU(){return{animate:SH(!0),whileInView:SH(),whileHover:SH(),whileTap:SH(),whileDrag:SH(),whileFocus:SH(),exit:SH()}}function SG(e,t){e.min=t.min,e.max=t.max}function Sq(e,t){SG(e.x,t.x),SG(e.y,t.y)}function SV(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function SW(e){return e.max-e.min}function SY(e,t,n,i=.5){e.origin=i,e.originPoint=_0(t.min,t.max,e.origin),e.scale=SW(n)/SW(t),e.translate=_0(n.min,n.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function SK(e,t,n,i){SY(e.x,t.x,n.x,i?i.originX:void 0),SY(e.y,t.y,n.y,i?i.originY:void 0)}function SX(e,t,n){e.min=n.min+t.min,e.max=e.min+SW(t)}function SQ(e,t,n){e.min=t.min-n.min,e.max=e.min+SW(t)}function SZ(e,t,n){SQ(e.x,t.x,n.x),SQ(e.y,t.y,n.y)}function S$(e,t,n,i,a){return e-=t,e=i+1/n*(e-i),void 0!==a&&(e=i+1/a*(e-i)),e}function SJ(e,t,[n,i,a],o,s){!function(e,t=0,n=1,i=.5,a,o=e,s=e){if(_O.test(t)&&(t=parseFloat(t),t=_0(s.min,s.max,t/100)-s.min),"number"!=typeof t)return;let l=_0(o.min,o.max,i);e===o&&(l-=t),e.min=S$(e.min,t,n,l,a),e.max=S$(e.max,t,n,l,a)}(e,t[n],t[i],t[a],t.scale,o,s)}let S0=["x","scaleX","originX"],S1=["y","scaleY","originY"];function S2(e,t,n,i){SJ(e.x,t,S0,n?n.x:void 0,i?i.x:void 0),SJ(e.y,t,S1,n?n.y:void 0,i?i.y:void 0)}function S4(e){return 0===e.translate&&1===e.scale}function S5(e){return S4(e.x)&&S4(e.y)}function S3(e,t){return e.min===t.min&&e.max===t.max}function S6(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function S7(e,t){return S6(e.x,t.x)&&S6(e.y,t.y)}function S8(e){return SW(e.x)/SW(e.y)}function S9(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function Ae(e){return[e("x"),e("y")]}let At=["TopLeft","TopRight","BottomLeft","BottomRight"],An=At.length,Ar=e=>"string"==typeof e?parseFloat(e):e,Ai=e=>"number"==typeof e||_B.test(e);function Aa(e,t){return void 0!==e[t]?e[t]:e.borderRadius}let Ao=Al(0,.5,k8),As=Al(.5,.95,kW);function Al(e,t,n){return i=>i<e?0:i>t?1:n(kX(e,t,i))}function Au(e,t,n,i={passive:!0}){return e.addEventListener(t,n,i),()=>e.removeEventListener(t,n)}let Ac=(e,t)=>e.depth-t.depth;class Ad{constructor(){this.children=[],this.isDirty=!1}add(e){kL(this.children,e),this.isDirty=!0}remove(e){kO(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(Ac),this.isDirty=!1,this.children.forEach(e)}}function Ap(e){return Ef(e)?e.get():e}class Ah{constructor(){this.members=[]}add(e){kL(this.members,e),e.scheduleRender()}remove(e){if(kO(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t;let n=this.members.findIndex(t=>e===t);if(0===n)return!1;for(let e=n;e>=0;e--){let n=this.members[e];if(!1!==n.isPresent){t=n;break}}return!!t&&(this.promote(t),!0)}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();let i=n.options.layoutDependency,a=e.options.layoutDependency;void 0!==i&&void 0!==a&&i===a||(e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));let{crossfade:o}=e.options;!1===o&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}
488scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}let Am={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Af=["","X","Y","Z"],Ag=0;function Ax(e,t,n,i){let{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),i&&(i[e]=0))}function Av({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:i,resetTransform:a}){return class{constructor(e={},n=null==t?void 0:t()){this.id=Ag++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(Aw),this.nodes.forEach(AC),this.nodes.forEach(AN),this.nodes.forEach(Ak)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new Ad)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new kQ),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=EX(t)&&!(EX(t)&&"svg"===t.tagName),this.instance=t;let{layoutId:n,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(i||n)&&(this.isLayoutDirty=!0),e){let n,i=0,a=()=>this.root.updateBlockedByResize=!1;_c.read(()=>{i=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==i&&(i=e,this.root.updateBlockedByResize=!0,n&&n(),n=function(e,t){let n=_f.now(),i=({timestamp:t})=>{let a=t-n;a>=250&&(_d(i),e(a-250))};return _c.setup(i,!0),()=>_d(i)}(a,0),Am.hasAnimatedSinceResize&&(Am.hasAnimatedSinceResize=!1,this.nodes.forEach(AA)))})}n&&this.root.registerSharedNode(n,this),!1!==this.options.animate&&a&&(n||i)&&this.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:i})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let o=this.options.transition||a.getDefaultTransition()||AL,{onLayoutAnimationStart:s,onLayoutAnimationComplete:l}=a.getProps(),u=!this.targetLayout||!S7(this.targetLayout,i),c=!t&&n;if(this.options.layoutRoot||this.resumeFrom||c||t&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...Ea(o,"layout"),onPlay:s,onComplete:l};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,c)}else t||AA(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=i})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),_d(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEac
488h(AI),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&function e(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;let{visualElement:n}=t.options;if(!n)return;let i=n.props[Ev];if(window.MotionHasOptimisedAnimation(i,"transform")){let{layout:e,layoutId:n}=t.options;window.MotionCancelOptimisedAnimation(i,"transform",_c,!(e||n))}let{parent:a}=t;a&&!a.hasCheckedOptimisedAppear&&e(a)}(this),this.root.isUpdating||this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(void 0===t&&!n)return;let i=this.getTransformTemplate();this.prevTransformTemplateValue=i?i(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(AT);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(AE);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(AS),this.nodes.forEach(Ay),this.nodes.forEach(Ab)):this.nodes.forEach(AE),this.clearAllSnapshots();let e=_f.now();_p.delta=kB(0,1e3/60,e-_p.timestamp),_p.timestamp=e,_p.isProcessing=!0,_h.update.process(_p),_h.preRender.process(_p),_h.render.process(_p),_p.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,EO.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(A_),this.sharedNodes.forEach(AM)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,_c.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){_c.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||SW(this.snapshot.measuredBox.x)||SW(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=E1(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=i(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!a)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!S5(this.projectionDelta),n=this.getTransformTemplate(),i=n?n(this.latestValues,""):void 0,o=i!==this.prevTransformTemplateValue;e&&this.instance&&(t||Sc(this.latestValues)||o)&&(a(this.instance,i),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){var t;let n=this.measurePageBox(),i=this.removeElementScroll(n);return e&&(i=this.removeTransform(i)),Aj((t=i).x),Aj(t.y),{animationId:this.root.animationId,measuredBox:n,layoutBox:i,latestValues:{},source:this.id}}measurePageBox(){var e;let{visualElement:t}=this.options;if(!t)return E1();let n=t.measureViewportBox();if(!((null==(e=this.scroll)?void 0:e.wasRoot)||this.path.some(AF))){let{scroll:e}=this.root;e&&(Sf(n.x,e.offset.x),Sf(n.y,e.offset.y))}return n}removeElementScroll(e){var t;let n=E1();if(Sq(n,e),null!=(t=this.scroll)&&t.wasRoot)return n;for(let t=0;t<this.path.length;t++){let i=this.path[t],{scroll:a,options:o}=i;i!==this.root&&a&&o.layoutScroll&&(a.wasRoot&&Sq(n,e),Sf(n.x,a.offset.x),Sf(n.y,a.offset.y))}return n}applyTransform(e,t=!1){let n=E1();Sq(n,e);for(let e=0;e<this.path.length;e++){let i=this.path[e];!t&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Sx(n,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),Sc(i.latestValues)&&Sx(n,i.latestValues)}return Sc(this.latestValues)&&Sx(n,this.latestValues),n}removeTransform(e){let t=E1();Sq(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!Sc(n.latestValues))continue;Su(n.latestValues)&&n.updateSnapshot();let i=E1();Sq(i,n.measurePageBox()),S2(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,i)}return Sc(this.latestValues)&&S2(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==_p.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t,n,i,a;let o=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=o.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=o.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=o.isSharedProjectionDirty);let s=!!this.resumingFrom||this!==o;if(!(e||s&&this.isSharedProjectionDirty||this.isProjectionDirty||null!=(t=this.parent)&&t.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:l,layoutId:u}=this.options;if(!this.layout||!(l||u))return;this.resolvedRelativeTargetAt=_p.timestamp;let c=this.getClosestProjectingParent();c&&this.linkedParentVersion!==c.layoutVersion&&!c.options.layoutRoot&&this.removeRelativeTarget(),this.targetDelta||this.relativeTarget||(c&&c.layout?this.createRelativeTarget(c,this.layout.layoutBox,c.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=E1(),this.targetWithTransforms=E1()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),n=this.target,i=this.relativeTarget,a=this.relativeParent.target,SX(n.x,i.x,a.x),SX(n.y,i.y,a.y)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Sq(this.target,this.layout.layoutBox),Sm(this.target,this.targetDelta)):Sq(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,c&&!!c.resumingFrom==!!this.resumingFrom&&!c.options.layoutScroll&&c.target&&1!==this.animationProgress?this.createRelativeTarget(c,this.target,c.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Su(this.parent.latestValues)||Sd(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=E1(),this.relativeTargetOrigin=E1(),SZ(this.relativeTargetOrigin,t,n),Sq(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var e;let t=this.getLead(),n=!!this.resumingFrom||this!==t,i=!0;if((this.isProjectionDirty||null!=(e=this.parent)&&e.isProjectionDirty)&&
488(i=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(i=!1),this.resolvedRelativeTargetAt===_p.timestamp&&(i=!1),i)return;let{layout:a,layoutId:o}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(a||o))return;Sq(this.layoutCorrected,this.layout.layoutBox);let s=this.treeScale.x,l=this.treeScale.y;(function(e,t,n,i=!1){let a,o;let s=n.length;if(s){t.x=t.y=1;for(let l=0;l<s;l++){o=(a=n[l]).projectionDelta;let{visualElement:s}=a.options;s&&s.props.style&&"contents"===s.props.style.display||(i&&a.options.layoutScroll&&a.scroll&&a!==a.root&&Sx(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,Sm(e,o)),i&&Sc(a.latestValues)&&Sx(e,a.latestValues))}t.x<1.0000000000001&&t.x>.999999999999&&(t.x=1),t.y<1.0000000000001&&t.y>.999999999999&&(t.y=1)}})(this.layoutCorrected,this.treeScale,this.path,n),t.layout&&!t.target&&(1!==this.treeScale.x||1!==this.treeScale.y)&&(t.target=t.layout.layoutBox,t.targetWithTransforms=E1());let{target:u}=t;if(!u){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}this.projectionDelta&&this.prevProjectionDelta?(SV(this.prevProjectionDelta.x,this.projectionDelta.x),SV(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),SK(this.projectionDelta,this.layoutCorrected,u,this.latestValues),this.treeScale.x===s&&this.treeScale.y===l&&S9(this.projectionDelta.x,this.prevProjectionDelta.x)&&S9(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",u))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null==(t=this.options.visualElement)||t.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=EJ(),this.projectionDelta=EJ(),this.projectionDeltaWithTransform=EJ()}setAnimationOrigin(e,t=!1){let n;let i=this.snapshot,a=i?i.latestValues:{},o={...this.latestValues},s=EJ();this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let l=E1(),u=(i?i.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),d=!c||c.members.length<=1,p=!!(u&&!d&&!0===this.options.crossfade&&!this.path.some(AD));this.animationProgress=0,this.mixTargetDelta=t=>{var i,c,h,m;let f=t/1e3;AP(s.x,e.x,f),AP(s.y,e.y,f),this.setTargetDelta(s),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(SZ(l,this.layout.layoutBox,this.relativeParent.layout.layoutBox),h=this.relativeTarget,m=this.relativeTargetOrigin,AR(h.x,m.x,l.x,f),AR(h.y,m.y,l.y,f),n&&(i=this.relativeTarget,c=n,S3(i.x,c.x)&&S3(i.y,c.y))&&(this.isProjectionDirty=!1),n||(n=E1()),Sq(n,this.relativeTarget)),u&&(this.animationValues=o,function(e,t,n,i,a,o){a?(e.opacity=_0(0,n.opacity??1,Ao(i)),e.opacityExit=_0(t.opacity??1,0,As(i))):o&&(e.opacity=_0(t.opacity??1,n.opacity??1,i));for(let a=0;a<An;a++){let o=`border${At[a]}Radius`,s=Aa(t,o),l=Aa(n,o);(void 0!==s||void 0!==l)&&(s||(s=0),l||(l=0),0===s||0===l||Ai(s)===Ai(l)?(e[o]=Math.max(_0(Ar(s),Ar(l),i),0),(_O.test(l)||_O.test(s))&&(e[o]+="%")):e[o]=l)}(t.rotate||n.rotate)&&(e.rotate=_0(t.rotate||0,n.rotate||0,i))}(o,a,this.latestValues,f,p,d)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=f},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){var t,n,i;this.notifyListeners("animationStart"),null==(t=this.currentAnimation)||t.stop(),null==(i=null==(n=this.resumingFrom)?void 0:n.currentAnimation)||i.stop(),this.pendingAnimation&&(_d(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=_c.update(()=>{Am.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Eh(0)),this.currentAnimation=function(e,t,n){let i=Ef(e)?e:Eh(e);return i.start(Eo("",i,t,n)),i.animation}(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:i,latestValues:a}=e;
488if(!(!t||!n||!i)){if(this!==e&&this.layout&&i&&Az(this.options.animationType,this.layout.layoutBox,i.layoutBox)){n=this.target||E1();let t=SW(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let i=SW(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+i}Sq(t,n),Sx(t,a),SK(this.projectionDeltaWithTransform,this.layoutCorrected,t,a)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ah),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){var e;let{layoutId:t}=this.options;return t&&(null==(e=this.getStack())?void 0:e.lead)||this}getPrevLead(){var e;let{layoutId:t}=this.options;return t?null==(e=this.getStack())?void 0:e.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let i=this.getStack();i&&i.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let i={};n.z&&Ax("z",e,i,this.animationValues);for(let t=0;t<Af.length;t++)Ax(`rotate${Af[t]}`,e,i,this.animationValues),Ax(`skew${Af[t]}`,e,i,this.animationValues);for(let t in e.render(),i)e.setStaticValue(t,i[t]),this.animationValues&&(this.animationValues[t]=i[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility="hidden";return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility="",e.opacity="",e.pointerEvents=Ap(null==t?void 0:t.pointerEvents)||"",e.transform=n?n(this.latestValues,""):"none";return}let i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){this.options.layoutId&&(e.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,e.pointerEvents=Ap(null==t?void 0:t.pointerEvents)||""),this.hasProjected&&!Sc(this.latestValues)&&(e.transform=n?n({},""):"none",this.hasProjected=!1);return}e.visibility="";let a=i.animationValues||i.latestValues;this.applyTransformsToTarget();
488let o=function(e,t,n){let i="",a=e.x.translate/t.x,o=e.y.translate/t.y,s=(null==n?void 0:n.z)||0;if((a||o||s)&&(i=`translate3d(${a}px, ${o}px, ${s}px) `),(1!==t.x||1!==t.y)&&(i+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:a,rotateY:o,skewX:s,skewY:l}=n;e&&(i=`perspective(${e}px) ${i}`),t&&(i+=`rotate(${t}deg) `),a&&(i+=`rotateX(${a}deg) `),o&&(i+=`rotateY(${o}deg) `),s&&(i+=`skewX(${s}deg) `),l&&(i+=`skewY(${l}deg) `)}let l=e.x.scale*t.x,u=e.y.scale*t.y;return(1!==l||1!==u)&&(i+=`scale(${l}, ${u})`),i||"none"}(this.projectionDeltaWithTransform,this.treeScale,a);n&&(o=n(a,o)),e.transform=o;let{x:s,y:l}=this.projectionDelta;for(let t in e.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?e.opacity=i===this?a.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:e.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0,SE){if(void 0===a[t])continue;let{correct:n,applyTo:s,isCSSVariable:l}=SE[t],u="none"===o?a[t]:n(a[t],i);if(s){let t=s.length;for(let n=0;n<t;n++)e[s[n]]=u}else l?this.options.visualElement.renderState.vars[t]=u:e[t]=u}this.options.layoutId&&(e.pointerEvents=i===this?Ap(null==t?void 0:t.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(e=>{var t;return null==(t=e.currentAnimation)?void 0:t.stop()}),this.root.nodes.forEach(AT),this.root.sharedNodes.clear()}}}function Ay(e){e.updateLayout()}function Ab(e){var t;let n=(null==(t=e.resumeFrom)?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){let{layoutBox:t,measuredBox:i}=e.layout,{animationType:a}=e.options,o=n.source!==e.layout.source;"size"===a?Ae(e=>{let i=o?n.measuredBox[e]:n.layoutBox[e],a=SW(i);i.min=t[e].min,i.max=i.min+a}):Az(a,n.layoutBox,t)&&Ae(i=>{let a=o?n.measuredBox[i]:n.layoutBox[i],s=SW(t[i]);a.max=a.min+s,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[i].max=e.relativeTarget[i].min+s)});let s=EJ();SK(s,t,n.layoutBox);let l=EJ();o?SK(l,e.applyTransform(i,!0),n.measuredBox):SK(l,t,n.layoutBox);let u=!S5(s),c=!1;if(!e.resumeFrom){let i=e.getClosestProjectingParent();if(i&&!i.resumeFrom){let{snapshot:a,layout:o}=i;if(a&&o){let s=E1();SZ(s,n.layoutBox,a.layoutBox);let l=E1();SZ(l,t,o.layoutBox),S7(s,l)||(c=!0),i.options.layoutRoot&&(e.relativeTarget=l,e.relativeTargetOrigin=s,e.relativeParent=i)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:n,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:c})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Aw(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Ak(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function A_(e){e.clearSnapshot()}function AT(e){e.clearMeasurements()}function AE(e){e.isLayoutDirty=!1}function AS(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function AA(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function AC(e){e.resolveTargetDelta()}function AN(e){e.calcProjection()}function AI(e){e.resetSkewAndRotation()}function AM(e){e.removeLeadSnapshot()}function AP(e,t,n){e.translate=_0(t.translate,0,n),e.scale=_0(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function AR(e,t,n,i){e.min=_0(t.min,n.min,i),e.max=_0(t.max,n.max,i)}function AD(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}let AL={duration:.45,ease:[.4,0,.1,1]},AO=e=>"u">typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),AB=AO("applewebkit/")&&!AO("chrome/")?Math.round:kW;function Aj(e){e.min=AB(e.min),e.max=AB(e.max)}function Az(e,t,n){return"position"===e||"preserve-aspect"===e&&!(.2>=Math.abs(S8(t)-S8(n)))}function AF(e){var t;return e!==e.root&&(null==(t=e.scroll)?void 0:t.wasRoot)}let AH=Av({attachResizeListener:(e,t)=>Au(e,"resize",t),measureScroll:()=>{var e,t;
488return{x:document.documentElement.scrollLeft||(null==(e=document.body)?void 0:e.scrollLeft)||0,y:document.documentElement.scrollTop||(null==(t=document.body)?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),AU={current:void 0},AG=Av({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!AU.current){let e=new AH({});e.mount(window),e.setOptions({layoutScroll:!0}),AU.current=e}return AU.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>"fixed"===window.getComputedStyle(e).position}),Aq=(0,I.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"}),AV=(0,I.createContext)({strict:!1}),AW={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},AY=!1;function AK(){return function(){if(AY)return;let e={};for(let t in AW)e[t]={isEnabled:e=>AW[t].some(t=>!!e[t])};Sr=e,AY=!0}(),Sr}let AX=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function AQ(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||AX.has(e)}let AZ=e=>!AQ(e);try{Nb=require("@emotion/is-prop-valid").default,"function"==typeof Nb&&(AZ=e=>e.startsWith("on")?!AQ(e):Nb(e))}catch{}let A$=(0,I.createContext)({});function AJ(e){return Array.isArray(e)?e.join(" "):e}let A0=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function A1(e,t,n){for(let i in t)Ef(t[i])||SS(i,n)||(e[i]=t[i])}let A2=()=>({...A0(),attrs:{}}),A4=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function A5(e){return!("string"!=typeof e||e.includes("-"))&&!!(A4.indexOf(e)>-1||/[A-Z]/u.test(e))}let A3=e=>(t,n)=>{let i=(0,I.useContext)(A$),a=(0,I.useContext)(kD),o=()=>(function({scrapeMotionValuesFromProps:e,createRenderState:t},n,i,a){return{latestValues:function(e,t,n,i){let a={},o=i(e,{});for(let e in o)a[e]=Ap(o[e]);let{initial:s,animate:l}=e,u=Se(e),c=St(e);t&&c&&!u&&!1!==e.inherit&&(void 0===s&&(s=t.initial),void 0===l&&(l=t.animate));let d=!!n&&!1===n.initial,p=(d=d||!1===s)?l:s;if(p&&"boolean"!=typeof p&&!E6(p)){let t=Array.isArray(p)?p:[p];for(let n=0;n<t.length;n++){let i=El(e,t[n]);if(i){let{transitionEnd:e,transition:t,...n}=i;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=d?t.length-1:0;t=t[e]}null!==t&&(a[e]=t)}for(let t in e)a[t]=e[t]}}}return a}(n,i,a,e),renderState:t()}})(e,t,i,a);return n?o():function(e){let t=(0,I.useRef)(null);return null===t.current&&(t.current=e()),t.current}(o)},A6=A3({scrapeMotionValuesFromProps:SA,createRenderState:A0}),A7=A3({scrapeMotionValuesFromProps:SL,createRenderState:A2}),A8=Symbol.for("motionComponentSymbol"),A9=(0,I.createContext)({});function Ce(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function Ct(e,{forwardMotionProps:t=!1,type:n}={},i,a){i&&function(e){let t=AK();for(let n in e)t[n]={...t[n],...e[n]};Sr=t}(i);let o=n?"svg"===n:A5(e),s=o?A7:A6;function l(n,i){let l;let u={...(0,I.useContext)(Aq),...n,layoutId:function({layoutId:e}){let t=(0,I.useContext)(kM).id;return t&&void 0!==e?t+"-"+e:e}(n)},{isStatic:c}=u,d=function(e){let{initial:t,animate:n}=function(e,t){if(Se(e)){let{initial:t,animate:n}=e;return{initial:!1===t||E7(t)?t:void 0,animate:E7(n)?n:void 0}}return!1!==e.inherit?t:{}}(e,(0,I.useContext)(A$));return(0,I.useMemo)(()=>({initial:t,animate:n}),[AJ(t),AJ(n)])}(n),p=s(n,c);if(!c&&kP){(0,I.useContext)(AV).strict;let t=function(e){let{drag:t,layout:n}=AK();if(!t&&!n)return{};let i={...t,...n};return{MeasureLayout:null!=t&&t.isEnabled(e)||null!=n&&n.isEnabled(e)?i.MeasureLayout:void 0,ProjectionNode:i.ProjectionNode}}
488(u);l=t.MeasureLayout,d.visualElement=function(e,t,n,i,a,o){var s,l;let{visualElement:u}=(0,I.useContext)(A$),c=(0,I.useContext)(AV),d=(0,I.useContext)(kD),p=(0,I.useContext)(Aq),h=p.reducedMotion,m=p.skipAnimations,f=(0,I.useRef)(null),g=(0,I.useRef)(!1);i=i||c.renderer,!f.current&&i&&(f.current=i(e,{visualState:t,parent:u,props:n,presenceContext:d,blockInitialAnimation:!!d&&!1===d.initial,reducedMotionConfig:h,skipAnimations:m,isSVG:o}),g.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let x=f.current,v=(0,I.useContext)(A9);x&&!x.projection&&a&&("html"===x.type||"svg"===x.type)&&function(e,t,n,i){let{layoutId:a,layout:o,drag:s,dragConstraints:l,layoutScroll:u,layoutRoot:c,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:function e(t){if(t)return!1!==t.options.allowProjection?t.projection:e(t.parent)}(e.parent)),e.projection.setOptions({layoutId:a,layout:o,alwaysMeasureLayout:!!s||l&&Ce(l),visualElement:e,animationType:"string"==typeof o?o:"both",initialPromotionConfig:i,crossfade:d,layoutScroll:u,layoutRoot:c})}(f.current,n,a,v);let b=(0,I.useRef)(!1);(0,I.useInsertionEffect)(()=>{x&&b.current&&x.update(n,d)});let w=n[Ev],k=(0,I.useRef)(!!w&&!(null!=(s=window.MotionHandoffIsComplete)&&s.call(window,w))&&(null==(l=window.MotionHasOptimisedAnimation)?void 0:l.call(window,w)));return kR(()=>{g.current=!0,x&&(b.current=!0,window.MotionIsMounted=!0,x.updateFeatures(),x.scheduleRenderMicrotask(),k.current&&x.animationState&&x.animationState.animateChanges())}),(0,I.useEffect)(()=>{x&&(!k.current&&x.animationState&&x.animationState.animateChanges(),k.current&&(queueMicrotask(()=>{var e;null==(e=window.MotionHandoffMarkAsComplete)||e.call(window,w)}),k.current=!1),x.enteringChildren=void 0)}),x}(e,p,u,a,t.ProjectionNode,o)}return U.jsxs(A$.Provider,{value:d,children:[l&&d.visualElement?U.jsx(l,{visualElement:d.visualElement,...u}):null,function(e,t,n,{latestValues:i},a,o=!1,s){let l=(s??A5(e)?function(e,t,n,i){let a=(0,I.useMemo)(()=>{let n=A2();return SP(n,t,SD(i),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};A1(t,e.style,e),a.style={...t,...a.style}}return a}:function(e,t){let n={},i=function(e,t){let n=e.style||{},i={};return A1(i,n,e),Object.assign(i,function({transformTemplate:e},t){return(0,I.useMemo)(()=>{let n=A0();return Sw(n,t,e),Object.assign({},n.vars,n.style)},[t])}(e,t)),i}(e,t);return e.drag&&!1!==e.dragListener&&(n.draggable=!1,i.userSelect=i.WebkitUserSelect=i.WebkitTouchCallout="none",i.touchAction=!0===e.drag?"none":`pan-${"x"===e.drag?"y":"x"}`),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=i,n})(t,i,a,e),u=function(e,t,n){let i={};for(let a in e)"values"===a&&"object"==typeof e.values||(AZ(a)||!0===n&&AQ(a)||!t&&!AQ(a)||e.draggable&&a.startsWith("onDrag"))&&(i[a]=e[a]);return i}(t,"string"==typeof e,o),c=e!==I.Fragment?{...u,...l,ref:n}:{},{children:d}=t,p=(0,I.useMemo)(()=>Ef(d)?d.get():d,[d]);return(0,I.createElement)(e,{...c,children:p})}(e,n,function(e,t,n){let i=(0,I.useRef)(n);(0,I.useInsertionEffect)(()=>{i.current=n});let a=(0,I.useRef)(null);return(0,I.useCallback)(n=>{var o;n&&(null==(o=e.onMount)||o.call(e,n)),t&&(n?t.mount(n):t.unmount());let s=i.current;if("function"==typeof s){if(n){let e=s(n);"function"==typeof e&&(a.current=e)}else a.current?(a.current(),a.current=null):s(n)}else s&&(s.current=n)},[t])}(p,d.visualElement,i),p,c,t,o)]})}l.displayName=`motion.${"string"==typeof e?e:`create(${e.displayName??e.name??""})`}`;let u=(0,I.forwardRef)(l);return u[A8]=e,u}class Cn extends So{constructor(e){super(e),e.animationState||(e.animationState=function(e){let t=t=>Promise.all(t.map(({animation:t,options:n})=>(function(e,t,n={}){let i;if(e.notify("AnimationStart",t),Array.isArray(t))i=Promise.all(t.map(t=>Eb(e,t,n)));else if("string"==typeof t)i=Eb(e,t,n);else{let a="function"==typeof t?Eu(e,t,n.custom):t;i=Promise.all(Ey(e,a,n))}return i.then(()=>{e.notify("AnimationComplete",t)})})(e,t,n))),n=SU(),i=!0,a=t=>(n,i)=>{var a;let o=Eu(e,i,"exit"===t?null==(a=e.presenceContext)?void 0:a.custom:void 0);if(o){let{transition:e,transitionEnd:t,...i}=o;n={...n,...i,...t}}return n};function o(o){let{props:s}=e,l=function e(t){if(!t)return;if(!t.isControllingVariants){let n=t.parent&&e(t.parent)||{};return void 0!==t.props.initial&&(n.initial=t.props.initial),n}let n={};for(let e=0;e<SB;e++){let i=E9[e],a=t.props[i];(E7(a)||!1===a)&&(n[i]=a)}return n}(e.parent)||{},u=[],c=new Set,d={},p=1/0;for(let t=0;t<SF;t++){var h;let m=Sz[t],f=n[m],g=void 0!==s[m]?s[m]:l[m],x=E7(g),v=m===o?f.isActive:null;!1===v&&(p=t);let b=g===l[m]&&g!==s[m]&&x;if(b&&i&&e.manuallyAnimateOnMount&&(b=!1),f.protectedKeys={...d},!f.isActive&&null===v||!g&&!f.prevProp||E6(g)||"boolean"==typeof g)continue;let w=(h=f.prevProp,"string"==typeof g?g!==h:!!Array.isArray(g)&&!Sj(g,h)),k=w||m===o&&f.isActive&&!b&&x||t>p&&x,_=!1,T=Array.isArray(g)?g:[g],E=T.reduce(a(m),{});!1===v&&(E={});let{prevResolvedValues:A={}}=f,C={...A,...E},N=t=>{k=!0,c.has(t)&&(_=!0,c.delete(t)),f.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in C){let t=E[e],n=A[e];
488if(!d.hasOwnProperty(e))(Em(t)&&Em(n)?Sj(t,n):t===n)?void 0!==t&&c.has(e)?N(e):f.protectedKeys[e]=!0:null!=t?N(e):c.add(e)}f.prevProp=g,f.prevResolvedValues=E,f.isActive&&(d={...d,...E}),i&&e.blockInitialAnimation&&(k=!1);let I=b&&w;k&&(!I||_)&&u.push(...T.map(t=>{let n={type:m};if("string"==typeof t&&i&&!I&&e.manuallyAnimateOnMount&&e.parent){let{parent:i}=e,a=Eu(i,t);if(i.enteringChildren&&a){let{delayChildren:t}=a.transition||{};n.delay=T7(i.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(c.size){let t={};if("boolean"!=typeof s.initial){let n=Eu(e,Array.isArray(s.initial)?s.initial[0]:s.initial);n&&n.transition&&(t.transition=n.transition)}c.forEach(n=>{let i=e.getBaseTarget(n),a=e.getValue(n);a&&(a.liveStyle=!0),t[n]=i??null}),u.push({animation:t})}let m=!!u.length;return i&&(!1===s.initial||s.initial===s.animate)&&!e.manuallyAnimateOnMount&&(m=!1),i=!1,m?t(u):Promise.resolve()}return{animateChanges:o,setActive:function(t,i){var a;if(n[t].isActive===i)return Promise.resolve();null==(a=e.variantChildren)||a.forEach(e=>{var n;return null==(n=e.animationState)?void 0:n.setActive(t,i)}),n[t].isActive=i;let s=o(t);for(let e in n)n[e].protectedKeys={};return s},setAnimateFunction:function(n){t=n(e)},getState:()=>n,reset:()=>{n=SU()}}}(e))}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();E6(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null==(e=this.unmountControls)||e.call(this)}}let Cr=0;class Ci extends So{constructor(){super(...arguments),this.id=Cr++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let i=this.node.animationState.setActive("exit",!e);t&&!e&&i.then(()=>{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}function Ca(e){return{point:{x:e.pageX,y:e.pageY}}}let Co=e=>t=>EH(t)&&e(t,Ca(t));function Cs(e,t,n,i){return Au(e,t,Co(n),i)}let Cl=({current:e})=>e?e.ownerDocument.defaultView:null,Cu=(e,t)=>Math.abs(e-t),Cc=new Set(["auto","scroll"]);class Cd{constructor(e,t,{transformPagePoint:n,contextWindow:i=window,dragSnapToOrigin:a=!1,distanceThreshold:o=3,element:s}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{var e,t;if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let n=Cm(this.lastMoveEventInfo,this.history),i=null!==this.startEvent,a=(e=n.offset,t={x:0,y:0},Math.sqrt(Cu(e.x,t.x)**2+Cu(e.y,t.y)**2)>=this.distanceThreshold);if(!i&&!a)return;let{point:o}=n,{timestamp:s}=_p;this.history.push({...o,timestamp:s});let{onStart:l,onMove:u}=this.handlers;
488i||(l&&l(this.lastMoveEvent,n),this.startEvent=this.lastMoveEvent),u&&u(this.lastMoveEvent,n)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=Cp(t,this.transformPagePoint),_c.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:i,resumeAnimation:a}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&a&&a(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let o=Cm("pointercancel"===e.type?this.lastMoveEventInfo:Cp(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,o),i&&i(e,o)},!EH(e))return;this.dragSnapToOrigin=a,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=o,this.contextWindow=i||window;let l=Cp(Ca(e),this.transformPagePoint),{point:u}=l,{timestamp:c}=_p;this.history=[{...u,timestamp:c}];let{onSessionStart:d}=t;d&&d(e,Cm(l,this.history)),this.removeListeners=kK(Cs(this.contextWindow,"pointermove",this.handlePointerMove),Cs(this.contextWindow,"pointerup",this.handlePointerUp),Cs(this.contextWindow,"pointercancel",this.handlePointerUp)),s&&this.startScrollTracking(s)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(Cc.has(e.overflowX)||Cc.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,i=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},a={x:i.x-t.x,y:i.y-t.y};0===a.x&&0===a.y||(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=a.x,this.lastMoveEventInfo.point.y+=a.y):this.history.length>0&&(this.history[0].x-=a.x,this.history[0].y-=a.y),this.scrollPositions.set(e,i),_c.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),_d(this.updatePoint)}}function Cp(e,t){return t?{point:t(e.point)}:e}function Ch(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Cm({point:e},t){return{point:e,delta:Ch(e,Cf(t)),offset:Ch(e,t[0]),velocity:function(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,i=null,a=Cf(e);for(;n>=0&&(i=e[n],!(a.timestamp-i.timestamp>kZ(.1)));)n--;if(!i)return{x:0,y:0};let o=k$(a.timestamp-i.timestamp);if(0===o)return{x:0,y:0};let s={x:(a.x-i.x)/o,y:(a.y-i.y)/o};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}(t,0)}}function Cf(e){return e[e.length-1]}function Cg(e,t,n){return{min:void 0!==t?e.min+t:void 0,max:void 0!==n?e.max+n-(e.max-e.min):void 0}}function Cx(e,t){let n=t.min-e.min,i=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,i]=[i,n]),{min:n,max:i}}function Cv(e,t,n){return{min:Cy(e,t),max:Cy(e,n)}}function Cy(e,t){return"number"==typeof e?e:e[t]||0}let Cb=new WeakMap;class Cw{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=E1(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:i}=this.visualElement;if(i&&!1===i.isPresent)return;let{dragSnapToOrigin:a}=this.getProps();this.panSession=new Cd(e,{onSessionStart:e=>{t?(this.stopAnimation(),this.snapToCursor(Ca(e).point)):this.pauseAnimation()},onStart:(e,t)=>{this.stopAnimation();let{drag:n,dragPropagation:i,onDragStart:a}=this.getProps();if(n&&!i&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===n||"y"===n?EB[n]?null:(EB[n]=!0,()=>{EB[n]=!1}):EB.x||EB.y?null:(EB.x=EB.y=!0,()=>{EB.x=EB.y=!1}),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Ae(e=>{let t=this.getAxisMotionValue(e).get()||0;if(_O.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let i=n.layout.layoutBox[e];i&&(t=SW(i)*(parseFloat(t)/100))}}this.originPoint[e]=t}),a&&_c.update(()=>a(e,t),!1,!0),Eg(this.visualElement,"transform");let{animationState:o}=this.visualElement;o&&o.setActive("whileDrag",!0)},onMove:(e,t)=>
488{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:i,onDirectionLock:a,onDrag:o}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:s}=t;if(i&&null===this.currentDirection){this.currentDirection=function(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}(s),null!==this.currentDirection&&a&&a(this.currentDirection);return}this.updateAxis("x",t.point,s),this.updateAxis("y",t.point,s),this.visualElement.render(),o&&_c.update(()=>o(e,t),!1,!0)},onSessionEnd:(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},resumeAnimation:()=>Ae(e=>{var t;return"paused"===this.getAnimationState(e)&&(null==(t=this.getAxisMotionValue(e).animation)?void 0:t.play())})},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:a,distanceThreshold:n,contextWindow:Cl(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,i=t||this.latestPanInfo,a=this.isDragging;if(this.cancel(),!a||!i||!n)return;let{velocity:o}=i;this.startAnimation(o);let{onDragEnd:s}=this.getProps();s&&_c.postRender(()=>s(n,i))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:i}=this.getProps();if(!n||!Ck(e,i,this.currentDirection))return;let a=this.getAxisMotionValue(e),o=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(o=function(e,{min:t,max:n},i){return void 0!==t&&e<t?e=i?_0(t,e,i.min):Math.max(e,t):void 0!==n&&e>n&&(e=i?_0(n,e,i.max):Math.min(e,n)),e}(o,this.constraints[e],this.elastic[e])),a.set(o)}resolveConstraints(){var e;let{dragConstraints:t,dragElastic:n}=this.getProps(),i=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null==(e=this.visualElement.projection)?void 0:e.layout,a=this.constraints;t&&Ce(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&i?this.constraints=function(e,{top:t,left:n,bottom:i,right:a}){return{x:Cg(e.x,n,a),y:Cg(e.y,t,i)}}(i.layoutBox,t):this.constraints=!1,this.elastic=function(e=.35){return!1===e?e=0:!0===e&&(e=.35),{x:Cv(e,"left","right"),y:Cv(e,"top","bottom")}}(n),a!==this.constraints&&i&&this.constraints&&!this.hasMutatedConstraints&&Ae(e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){let n={};return void 0!==t.min&&(n.min=t.min-e.min),void 0!==t.max&&(n.max=t.max-e.min),n}(i.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){var e;let{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ce(t))return!1;let i=t.current;kF(null!==i,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.","drag-constraints-ref");let{projection:a}=this.visualElement;if(!a||!a.layout)return!1;let o=function(e,t,n){let i=Sv(e,n),{scroll:a}=t;return a&&(Sf(i.x,a.offset.x),Sf(i.y,a.offset.y)),i}(i,a.root,this.visualElement.getTransformPagePoint()),s={x:Cx((e=a.layout.layoutBox).x,o.x),y:Cx(e.y,o.y)};if(n){let e=n(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(s));this.hasMutatedConstraints=!!e,e&&(s=Ss(e))}return s}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:i,dragTransition:a,dragSnapToOrigin:o,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{};return Promise.all(Ae(s=>{if(!Ck(s,t,this.currentDirection))return;let u=l&&l[s]||{};o&&(u={min:0,max:0});let c={type:"inertia",velocity:n?e[s]:0,bounceStiffness:i?200:1e6,bounceDamping:i?40:1e7,timeConstant:750,restDelta:1,restSpeed:10,...a,...u};return this.startAxisValueAnimation(s,c)})).then(s)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return Eg(this.visualElement,e),n.start(Eo(e,n,0,t,this.visualElement,!1))}stopAnimation(){Ae(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){Ae(e=>{var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.pause()})}getAnimationState(e){var t;return null==(t=this.getAxisMotionValue(e).animation)?void 0:t.state}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){Ae(t=>{let{drag:n}=this.getProps();if(!Ck(t,n,this.currentDirection))return;let{projection:i}=this.visualElement,a=this.getAxisMotionValue(t);if(i&&i.layout){let{min:n,max:o}=i.layout.layoutBox[t],s=a.get()||0;a.set(e[t]-_0(n,o,.5)+s)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!Ce(t)||!n||!this.constraints)return;this.stopAnimation();let i={x:0,y:0};Ae(e=>{let t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){let n=t.get();i[e]=function(e,t){let n=.5,i=SW(e),a=SW(t);return a>i?n=kX(t.min,t.max-i,e.min):i>a&&(n=kX(e.min,e.max-a,t.min)),kB(0,1,n)}({min:n,max:n},this.constraints[e])}});let{transformTemplate:a}=this.visualElement.getProps();this.visualElement.current.style.transform=a?a({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Ae(t=>{if(!Ck(t,e,null))return;let n=this.getAxisMotionValue(t),{min:a,max:o}=this.constraints[t];n.set(_0(a,o,i[t]))})}addListeners(){if(!this.visualElement.current)return;Cb.set(this.visualElement,this);let e=this.visualElement.current,t=Cs(e,"pointerdown",t=>{let{drag:n,dragListener:i=!0}=this.getProps(),a=t.target,o=a!==e&&(EG.has(a.tagName)||!0===a.isContentEditable);n&&i&&!o&&this.start(t)}),n=()=>{let{dragConstraints:e}=this.getProps();Ce(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:i}=this.visualElement,a=i.addEventListener("measure",n);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),_c.read(n);let o=Au(window,"resize",()=>this.scalePositionWithinConstraints()),s=i.addEventListener("didUpdate",({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(Ae(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())});return()=>{o(),t(),a(),s&&s()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:i=!1,dragConstraints:a=!1,dragElastic:o=.35,dragMomentum:s=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:i,dragConstraints:a,dragElastic:o,dragMomentum:s}}}function Ck(e,t,n){return(!0===t||t===e)&&(null===n||n===e)}class C_ extends So{constructor(e){super(e),this.removeGroupControls=kW,this.removeListeners=kW,this.controls=new Cw(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||kW}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}let CT=e=>(t,n)=>{e&&_c.update(()=>e(t,n),!1,!0)};class CE extends So{constructor(){super(...arguments),this.removePointerDownListener=kW}onPointerDown(e){this.session=new Cd(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Cl(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:i}=this.node.getProps();return{onSessionStart:CT(e),onStart:CT(t),onMove:CT(n),onEnd:(e,t)=>{delete this.session,i&&_c.postRender(()=>i(e,t))}}}mount(){this.removePointerDownListener=Cs(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let CS=!1;class CA extends I.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:i}=this.props,{projection:a}=e;a&&(t.group&&t.group.add(a),n&&n.register&&i&&n.register(a),CS&&a.root.didUpdate(),a.addEventListener("animationComplete",()=>{this.safeToRemove()}),a.setOptions({...a.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),Am.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:i,isPresent:a}=this.props,{projection:o}=n;return o&&(o.isPresent=a,e.layoutDependency!==t&&o.setOptions({...o.options,layoutDependency:t}),CS=!0,i||e.layoutDependency!==t||void 0===t||e.isPresent!==a?o.willUpdate():this.safeToRemove(),e.isPresent!==a&&(a?o.promote():o.relegate()||_c.postRender(()=>{let e=o.getStack();e&&e.members.length||this.safeToRemove()}))),null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),EO.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:i}=e;CS=!0,i&&(i.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(i),n&&n.deregister&&n.deregister(i))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}}function CC(e){let[t,n]=function(e=!0){let t=(0,I.useContext)(kD);if(null===t)return[!0,null];let{isPresent:n,onExitComplete:i,register:a}=t,o=(0,I.useId)();(0,I.useEffect)(()=>
488{if(e)return a(o)},[e]);let s=(0,I.useCallback)(()=>e&&i&&i(o),[o,i,e]);return!n&&i?[!1,s]:[!0]}(),i=(0,I.useContext)(kM);return U.jsx(CA,{...e,layoutGroup:i,switchLayoutGroup:(0,I.useContext)(A9),isPresent:t,safeToRemove:n})}function CN(e,t,n){let{props:i}=e;e.animationState&&i.whileHover&&e.animationState.setActive("whileHover","Start"===n);let a=i["onHover"+n];a&&_c.postRender(()=>a(t,Ca(t)))}class CI extends So{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[i,a,o]=Ej(e,n),s=e=>{if(!Ez(e))return;let{target:n}=e,i=t(n,e);if("function"!=typeof i||!n)return;let o=e=>{Ez(e)&&(i(e),n.removeEventListener("pointerleave",o))};n.addEventListener("pointerleave",o,a)};return i.forEach(e=>{e.addEventListener("pointerenter",s,a)}),o}(e,(e,t)=>(CN(this.node,t,"Start"),e=>CN(this.node,e,"End"))))}unmount(){}}class CM extends So{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=kK(Au(this.node.current,"focus",()=>this.onFocus()),Au(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function CP(e,t,n){let{props:i}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&i.whileTap&&e.animationState.setActive("whileTap","Start"===n);let a=i["onTap"+("End"===n?"":n)];a&&_c.postRender(()=>a(t,Ca(t)))}class CR extends So{mount(){let{current:e}=this.node;e&&(this.unmount=function(e,t,n={}){let[i,a,o]=Ej(e,n),s=e=>{let i=e.currentTarget;if(!EK(e))return;Eq.add(i);let o=t(i,e),s=(e,t)=>{window.removeEventListener("pointerup",l),window.removeEventListener("pointercancel",u),Eq.has(i)&&Eq.delete(i),EK(e)&&"function"==typeof o&&o(e,{success:t})},l=e=>{s(e,i===window||i===document||n.useGlobalTarget||EF(i,e.target))},u=e=>{s(e,!1)};window.addEventListener("pointerup",l,a),window.addEventListener("pointercancel",u,a)};return i.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener("pointerdown",s,a),kG(e)&&"offsetHeight"in e&&(e.addEventListener("focus",e=>EY(e,a)),EU.has(e.tagName)||!0===e.isContentEditable||e.hasAttribute("tabindex")||(e.tabIndex=0))}),o}(e,(e,t)=>(CP(this.node,t,"Start"),(e,{success:t})=>CP(this.node,e,t?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}let CD=new WeakMap,CL=new WeakMap,CO=e=>{let t=CD.get(e.target);t&&t(e)},CB=e=>{e.forEach(CO)},Cj={some:0,all:1};class Cz extends So{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:i="some",once:a}=e,o={root:t?t.current:void 0,rootMargin:n,threshold:"number"==typeof i?i:Cj[i]};return function(e,t,n){let i=function({root:e,...t}){let n=e||document;CL.has(n)||CL.set(n,{});let i=CL.get(n),a=JSON.stringify(t);return i[a]||(i[a]=new IntersectionObserver(CB,{root:e,...t})),i[a]}(t);return CD.set(e,n),i.observe(e),()=>{CD.delete(e),i.unobserve(e)}}(this.node.current,o,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,a&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);let{onViewportEnter:n,onViewportLeave:i}=this.node.getProps(),o=t?n:i;o&&o(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;let{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}(e,t))&&this.startObserver()}unmount(){}}let CF=function(e,t){if(typeof Proxy>"u")return Ct;let n=new Map,i=(n,i)=>Ct(n,i,e,t);return new Proxy((e,t)=>i(e,t),{get:(a,o)=>"create"===o?i:(n.has(o)||n.set(o,Ct(o,void 0,e,t)),n.get(o))})}({animation:{Feature:Cn},exit:{Feature:Ci},inView:{Feature:Cz},tap:{Feature:CR},focus:{Feature:CM},hover:{Feature:CI},pan:{Feature:CE},drag:{Feature:C_,ProjectionNode:AG,MeasureLayout:CC},layout:{ProjectionNode:AG,MeasureLayout:CC}},(e,t)=>t.isSVG??A5(e)?new SO(t):new SC(t,{allowProjection:e!==I.Fragment})),CH=(0,I.memo)(({children:e="Loading...",as:t="p",className:n,duration:i=2,spread:a=2})=>{let o=CF.create(t),s=(0,I.useMemo)(()=>((null==e?void 0:e.length)??0)*a,[e,a]);return U.jsx(o,{animate:{backgroundPosition:"0% center"},className:t8("relative inline-block bg-[length:250%_100%,auto] bg-clip-text text-transparent","[--bg:linear-gradient(90deg,#0000_calc(50%-var(--spread)),var(--color-background),#0000_calc(50%+var(--spread)))] [background-repeat:no-repeat,padding-box]",n),initial:{backgroundPosition:"100% center"},style:{"--spread":`${s}px`,backgroundImage:"var(--bg), linear-gradient(var(--color-muted-foreground), var(--color-muted-foreground))"},transition:{repeat:Number.POSITIVE_INFINITY,duration:i,ease:"linear"},children:e})}),CU=(0,I.createContext)(null),CG=()=>{let e=(0,I.useContext)(CU);if(!e)throw Error("Reasoning components must be used within Reasoning");return e},Cq=(0,I.memo)(({className:e,isStreaming:t=!1,open:n,defaultOpen:i=!0,onOpenChange:a,duration:o,children:s,...l})=>{let[u,c]=na({prop:n,defaultProp:i,onChange:a}),[d,p]=na({prop:o,defaultProp:void 0}),[h,m]=(0,I.useState)(!1),[f,g]=(0,I.useState)(null);return(0,I.useEffect)(()=>
488{t?null===f&&g(Date.now()):null!==f&&(p(Math.ceil((Date.now()-f)/1e3)),g(null))},[t,f,p]),(0,I.useEffect)(()=>{if(i&&!t&&u&&!h){let e=setTimeout(()=>{c(!1),m(!0)},1e3);return()=>clearTimeout(e)}},[t,u,i,c,h]),U.jsx(CU.Provider,{value:{isStreaming:t,isOpen:u,setIsOpen:c,duration:d},children:U.jsx(kC,{className:t8("not-prose mb-4",e),onOpenChange:e=>{c(e)},open:u,...l,children:s})})}),CV=(e,t)=>e||0===t?U.jsx(CH,{duration:1,children:"Thinking..."}):void 0===t?U.jsx("p",{children:"Thought for a few seconds"}):U.jsxs("p",{children:["Thought for ",t," seconds"]}),CW=(0,I.memo)(({className:e,children:t,getThinkingMessage:n=CV,...i})=>{let{isStreaming:a,isOpen:o,duration:s}=CG();return U.jsx(kN,{className:t8("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...i,children:t??U.jsxs(U.Fragment,{children:[U.jsx(en,{className:"size-4"}),n(a,s),U.jsx(ei,{className:t8("size-4 transition-transform",o?"rotate-180":"rotate-0")})]})})}),CY=(0,I.memo)(({className:e,children:t,...n})=>U.jsx(kI,{className:t8("mt-4 text-sm","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-muted-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n,children:U.jsx(bz,{isAnimating:!1,mode:"streaming",parseIncompleteMarkdown:!0,children:t})}));Cq.displayName="Reasoning",CW.displayName="ReasoningTrigger",CY.displayName="ReasoningContent";let CK=e0("inline-flex items-center justify-center rounded-full border px-2 py-0.5 text-xs font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden",{variants:{variant:{default:"border-transparent bg-primary text-primary-foreground [a&]:hover:bg-primary/90",secondary:"border-transparent bg-secondary text-secondary-foreground [a&]:hover:bg-secondary/90",destructive:"border-transparent bg-destructive text-white [a&]:hover:bg-destructive/90 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/60",outline:"text-foreground [a&]:hover:bg-accent [a&]:hover:text-accent-foreground"}},defaultVariants:{variant:"default"}});function CX({className:e,variant:t,asChild:n=!1,...i}){return U.jsx(n?eX:"span",{"data-slot":"badge",className:t8(CK({variant:t}),e),...i})}let CQ=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function CZ(e,...t){return t.forEach(t=>{for(let n in t)e[n]=t[n]}),e}var C$=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,CJ=class{static hasCaptures(e){return null!==e&&(C$.lastIndex=0,C$.test(e))}static replaceCaptures(e,t,n){return e.replace(C$,(e,i,a,o)=>{let s=n[parseInt(i||a,10)];if(!s)return e;{let e=t.substring(s.start,s.end);for(;"."===e[0];)e=e.substring(1);switch(o){case"downcase":return e.toLowerCase();case"upcase":return e.toUpperCase();default:return e}}})}};function C0(e,t){if(null===e&&null===t)return 0;if(!e)return -1;if(!t)return 1;let n=e.length,i=t.length;if(n===i){for(let i=0;i<n;i++){var a,o;let n=(a=e[i])<(o=t[i])?-1:a>o?1:0;if(0!==n)return n}return 0}return n-i}function C1(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function C2(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var C4=class{constructor(e){B(this,"cache",new Map),this.fn=e}get(e){if(this.cache.has(e))return this.cache.get(e);let t=this.fn(e);return this.cache.set(e,t),t}},C5=class{constructor(e,t,n){B(this,"_cachedMatchRoot",new C4(e=>this._root.match(e))),this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(function(e){if(!e||!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],i=0;for(let e=0,a=t.length;e<a;e++){let a,o=t[e];if(!o.settings)continue;if("string"==typeof o.scope){let e=o.scope;a=(e=(e=e.replace(/^[,]+/,"")).replace(/[,]+$/,"")).split(",")}else a=Array.isArray(o.scope)?o.scope:[""];let s=-1;if("string"==typeof o.settings.fontStyle){s=0;let e=o.settings.fontStyle.split(" ");for(let t=0,n=e.length;t<n;t++)switch(e[t]){case"italic":s|=1;break;case"bold":s|=2;break;case"underline":s|=4;break;case"strikethrough":s|=8}}let l=null;"string"==typeof o.settings.foreground&&C1(o.settings.foreground)&&
488(l=o.settings.foreground);let u=null;"string"==typeof o.settings.background&&C1(o.settings.background)&&(u=o.settings.background);for(let t=0,o=a.length;t<o;t++){let o=a[t].trim().split(" "),c=o[o.length-1],d=null;o.length>1&&(d=o.slice(0,o.length-1)).reverse(),n[i++]=new C7(c,d,e,s,l,u)}}return n}(e),t)}static createFromParsedTheme(e,t){return function(e,t){e.sort((e,t)=>{var n,i;let a=(n=e.scope)<(i=t.scope)?-1:n>i?1:0;return 0!==a||0!==(a=C0(e.parentScopes,t.parentScopes))?a:e.index-t.index});let n=0,i="#000000",a="#ffffff";for(;e.length>=1&&""===e[0].scope;){let t=e.shift();-1!==t.fontStyle&&(n=t.fontStyle),null!==t.foreground&&(i=t.foreground),null!==t.background&&(a=t.background)}let o=new C9(t),s=new C6(n,o.getId(i),o.getId(a)),l=new Nn(new Nt(0,null,-1,0,0),[]);for(let t=0,n=e.length;t<n;t++){let n=e[t];l.insert(0,n.scope,n.parentScopes,n.fontStyle,o.getId(n.foreground),o.getId(n.background))}return new C5(o,s,l)}(e,t)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(null===e)return this._defaults;let t=e.scopeName,n=this._cachedMatchRoot.get(t).find(t=>(function(e,t){if(0===t.length)return!0;for(let a=0;a<t.length;a++){var n,i;let o=t[a],s=!1;if(">"===o){if(a===t.length-1)return!1;o=t[++a],s=!0}for(;e&&(n=e.scopeName,!((i=o)===n||n.startsWith(i)&&"."===n[i.length]));){if(s)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0})(e.parent,t.parentScopes));return n?new C6(n.fontStyle,n.foreground,n.background):null}},C3=class e{constructor(e,t){this.parent=e,this.scopeName=t}static push(t,n){for(let i of n)t=new e(t,i);return t}static from(...t){let n=null;for(let i=0;i<t.length;i++)n=new e(n,t[i]);return n}push(t){return new e(this,t)}getSegments(){let e=this,t=[];for(;e;)t.push(e.scopeName),e=e.parent;return t.reverse(),t}toString(){return this.getSegments().join(" ")}extends(e){return this===e||null!==this.parent&&this.parent.extends(e)}getExtensionIfDefined(e){let t=[],n=this;for(;n&&n!==e;)t.push(n.scopeName),n=n.parent;return n===e?t.reverse():void 0}},C6=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}},C7=class{constructor(e,t,n,i,a,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=i,this.foreground=a,this.background=o}},C8=((s=C8||{})[s.NotSet=-1]="NotSet",s[s.None=0]="None",s[s.Italic=1]="Italic",s[s.Bold=2]="Bold",s[s.Underline=4]="Underline",s[s.Strikethrough=8]="Strikethrough",s),C9=class{constructor(e){if(B(this,"_isFrozen"),B(this,"_lastColorId"),B(this,"_id2color"),B(this,"_color2id"),this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(null===e)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},Ne=Object.freeze([]),Nt=class e{constructor(e,t,n,i,a){B(this,"scopeDepth"),B(this,"parentScopes"),B(this,"fontStyle"),B(this,"foreground"),B(this,"background"),this.scopeDepth=e,this.parentScopes=t||Ne,this.fontStyle=n,this.foreground=i,this.background=a}clone(){return new e(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(e){let t=[];for(let n=0,i=e.length;n<i;n++)t[n]=e[n].clone();return t}acceptOverwrite(e,t,n,i){this.scopeDepth>e?console.log("how did this happen?"):this.scopeDepth=e,-1!==t&&(this.fontStyle=t),0!==n&&(this.foreground=n),0!==i&&(this.background=i)}},Nn=class e{constructor(e,t=[],n={}){B(this,"_rulesWithParentScopes"),this._mainRule=e,this._children=n,this._rulesWithParentScopes=t}static _cmpBySpecificity(e,t){if(e.scopeDepth!==t.scopeDepth)return t.scopeDepth-e.scopeDepth;let n=0,i=0;for(;">"===e.parentScopes[n]&&n++,">"===t.parentScopes[i]&&i++,!(n>=e.parentScopes.length||i>=t.parentScopes.length);){let a=t.parentScopes[i].length-e.parentScopes[n].length;if(0!==a)return a;n++,i++}return t.parentScopes.length-e.parentScopes.length}match(t){if(""!==t){let e=t.indexOf("."),n,i;if(-1===e?(n=t,i=""):(n=t.substring(0,e),i=t.substring(e+1)),this._children.hasOwnProperty(n))return this._children[n].match(i)}let n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(e._cmpBySpecificity),n}insert(t,n,i,a,o,s){let l;if(""===n){this._doInsertHere(t,i,a,o,s);return}let u=n.indexOf("."),c,d;-1===u?(c=n,d=""):(c=n.substring(0,u),d=n.substring(u+1)),this._children.hasOwnProperty(c)?l=this._children[c]:(l=new e(this._mainRule.clone(),Nt.cloneArr(this._rulesWithParentScopes)),this._children[c]=l),l.insert(t+1,d,i,a,o,s)}_doInsertHere(e,t,n,i,a){if(null===t){this._mainRule.acceptOverwrite(e,n,i,a);return}for(let o=0,s=this._rulesWithParentScopes.length;o<s;o++){let s=this._rulesWithParentScopes[o];if(0===C0(s.parentScopes,t)){s.acceptOverwrite(e,n,i,a);return}}-1===n&&(n=this._mainRule.fontStyle),0===i&&(i=this._mainRule.foreground),0===a&&(a=this._mainRule.background),this._rulesWithParentScopes.push(new Nt(e,t,n,i,a))}},Nr=class e{static toBinaryStr(e){return e.toString(2).padStart(32,"0")}
488static print(t){let n=e.getLanguageId(t),i=e.getTokenType(t);console.log({languageId:n,tokenType:i,fontStyle:e.getFontStyle(t),foreground:e.getForeground(t),background:e.getBackground(t)})}static getLanguageId(e){return(255&e)>>>0}static getTokenType(e){return(768&e)>>>8}static containsBalancedBrackets(e){return(1024&e)!=0}static getFontStyle(e){return(30720&e)>>>11}static getForeground(e){return(16744448&e)>>>15}static getBackground(e){return(4278190080&e)>>>24}static set(t,n,i,a,o,s,l){let u=e.getLanguageId(t),c=e.getTokenType(t),d=e.containsBalancedBrackets(t)?1:0,p=e.getFontStyle(t),h=e.getForeground(t),m=e.getBackground(t);return 0!==n&&(u=n),8!==i&&(c=i),null!==a&&(d=a?1:0),-1!==o&&(p=o),0!==s&&(h=s),0!==l&&(m=l),(u<<0|c<<8|d<<10|p<<11|h<<15|m<<24)>>>0}};function Ni(e,t){let n,i;let a=[],o=(i=(n=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g).exec(e),{next:()=>{if(!i)return null;let t=i[0];return i=n.exec(e),t}}),s=o.next();for(;null!==s;){let e=0;if(2===s.length&&":"===s.charAt(1)){switch(s.charAt(0)){case"R":e=1;break;case"L":e=-1;break;default:console.log(`Unknown priority ${s} in scope selector`)}s=o.next()}let t=u();if(a.push({matcher:t,priority:e}),","!==s)break;s=o.next()}return a;function l(){if("-"===s){s=o.next();let e=l();return t=>!!e&&!e(t)}if("("===s){s=o.next();let e=function(){let e=[],t=u();for(;t&&(e.push(t),"|"===s||","===s);){do s=o.next();while("|"===s||","===s);t=u()}return t=>e.some(e=>e(t))}();return")"===s&&(s=o.next()),e}if(Na(s)){let e=[];do e.push(s),s=o.next();while(Na(s));return n=>t(e,n)}return null}function u(){let e=[],t=l();for(;t;)e.push(t),t=l();return t=>e.every(e=>e(t))}}function Na(e){return!!e&&!!e.match(/[\w\.:]+/)}function No(e){"function"==typeof e.dispose&&e.dispose()}var Ns=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},Nl=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},Nu=class{constructor(){B(this,"_references",[]),B(this,"_seenReferenceKeys",new Set),B(this,"visitedRule",new Set)}get references(){return this._references}add(e){let t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},Nc=class{constructor(e,t){B(this,"seenFullScopeRequests",new Set),B(this,"seenPartialScopeRequests",new Set),B(this,"Q"),this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ns(this.initialScopeName)]}processQueue(){let e=this.Q;this.Q=[];let t=new Nu;for(let n of e)!function(e,t,n,i){let a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw Error(`No grammar provided for <${t}>`);return}let o=n.lookup(t);e instanceof Ns?Np({baseGrammar:o,selfGrammar:a},i):Nd(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},i);let s=n.injections(e.scopeName);if(s)for(let e of s)i.add(new Ns(e))}(n,this.initialScopeName,this.repo,t);for(let e of t.references)if(e instanceof Ns){if(this.seenFullScopeRequests.has(e.scopeName))continue;this.seenFullScopeRequests.add(e.scopeName),this.Q.push(e)}else{if(this.seenFullScopeRequests.has(e.scopeName)||this.seenPartialScopeRequests.has(e.toKey()))continue;this.seenPartialScopeRequests.add(e.toKey()),this.Q.push(e)}}};function Nd(e,t,n){t.repository&&t.repository[e]&&Nh([t.repository[e]],t,n)}function Np(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Nh(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Nh(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Nh(e,t,n){for(let i of e){if(n.visitedRule.has(i))continue;n.visitedRule.add(i);let e=i.repository?CZ({},t.repository,i.repository):t.repository;Array.isArray(i.patterns)&&Nh(i.patterns,{...t,repository:e},n);let a=i.include;if(!a)continue;let o=Ny(a);switch(o.kind){case 0:Np({...t,selfGrammar:t.baseGrammar},n);break;case 1:Np(t,n);break;case 2:Nd(o.ruleName,{...t,repository:e},n);break;case 3:case 4:let s=o.scopeName===t.selfGrammar.scopeName?t.selfGrammar:o.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(s){let i={baseGrammar:t.baseGrammar,selfGrammar:s,repository:e};4===o.kind?Nd(o.ruleName,i,n):Np(i,n)}else 4===o.kind?n.add(new Nl(o.scopeName,o.ruleName)):n.add(new Ns(o.scopeName))}}}var Nm=class{constructor(){B(this,"kind",0)}},Nf=class{constructor(){B(this,"kind",1)}},Ng=class{constructor(e){B(this,"kind",2),this.ruleName=e}},Nx=class{constructor(e){B(this,"kind",3),this.scopeName=e}},Nv=class{constructor(e,t){B(this,"kind",4),this.scopeName=e,this.ruleName=t}};
488function Ny(e){if("$base"===e)return new Nm;if("$self"===e)return new Nf;let t=e.indexOf("#");return -1===t?new Nx(e):0===t?new Ng(e.substring(1)):new Nv(e.substring(0,t),e.substring(t+1))}var Nb,Nw,Nk=/\\(\d+)/,N_=/\\(\d+)/g,NT=class{constructor(e,t,n,i){B(this,"$location"),B(this,"id"),B(this,"_nameIsCapturing"),B(this,"_name"),B(this,"_contentNameIsCapturing"),B(this,"_contentName"),this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=CJ.hasCaptures(this._name),this._contentName=i||null,this._contentNameIsCapturing=CJ.hasCaptures(this._contentName)}get debugName(){let e=this.$location?`${function e(t){let n=~t.lastIndexOf("/")||~t.lastIndexOf("\\");return 0===n?t:~n==t.length-1?e(t.substring(0,t.length-1)):t.substr(~n+1)}(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return this._nameIsCapturing&&null!==this._name&&null!==e&&null!==t?CJ.replaceCaptures(this._name,e,t):this._name}getContentName(e,t){return this._contentNameIsCapturing&&null!==this._contentName?CJ.replaceCaptures(this._contentName,e,t):this._contentName}},NE=class extends NT{constructor(e,t,n,i,a){super(e,t,n,i),B(this,"retokenizeCapturedWithRuleId"),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw Error("Not supported!")}compile(e,t){throw Error("Not supported!")}compileAG(e,t,n,i){throw Error("Not supported!")}},NS=class extends NT{constructor(e,t,n,i,a){super(e,t,n,null),B(this,"_match"),B(this,"captures"),B(this,"_cachedCompiledPatterns"),this._match=new NM(i,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new NP,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},NA=class extends NT{constructor(e,t,n,i,a){super(e,t,n,i),B(this,"hasMissingPatterns"),B(this,"patterns"),B(this,"_cachedCompiledPatterns"),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(let n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new NP,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},NC=class extends NT{constructor(e,t,n,i,a,o,s,l,u,c){super(e,t,n,i),B(this,"_begin"),B(this,"beginCaptures"),B(this,"_end"),B(this,"endHasBackReferences"),B(this,"endCaptures"),B(this,"applyEndPatternLast"),B(this,"hasMissingPatterns"),B(this,"patterns"),B(this,"_cachedCompiledPatterns"),this._begin=new NM(a,this.id),this.beginCaptures=o,this._end=new NM(s||"ï¿¿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=l,this.applyEndPatternLast=u||!1,this.patterns=c.patterns,this.hasMissingPatterns=c.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,i)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){for(let t of(this._cachedCompiledPatterns=new NP,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},NN=class extends NT{constructor(e,t,n,i,a,o,s,l,u){super(e,t,n,i),B(this,"_begin"),B(this,"beginCaptures"),B(this,"whileCaptures"),B(this,"_while"),B(this,"whileHasBackReferences"),B(this,"hasMissingPatterns"),B(this,"patterns"),B(this,"_cachedCompiledPatterns"),B(this,"_cachedCompiledWhilePatterns"),this._begin=new NM(a,this.id),this.beginCaptures=o,this.whileCaptures=l,this._while=ne
488w NM(s,-2),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,i){return this._getCachedCompiledPatterns(e).compileAG(e,n,i)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns)for(let t of(this._cachedCompiledPatterns=new NP,this.patterns))e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns);return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,i){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,i)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new NP,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"ï¿¿"),this._cachedCompiledWhilePatterns}
488},NI=class e{static createCaptureRule(e,t,n,i,a){return e.registerRule(e=>new NE(t,e,n,i,a))}static getCompiledRuleId(t,n,i){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new NS(t.$vscodeTextmateLocation,t.id,t.name,t.match,e._compileCaptures(t.captures,n,i));if(typeof t.begin>"u"){t.repository&&(i=CZ({},i,t.repository));let a=t.patterns;return typeof a>"u"&&t.include&&(a=[{include:t.include}]),new NA(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,e._compilePatterns(a,n,i))}return t.while?new NN(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.while,e._compileCaptures(t.whileCaptures||t.captures,n,i),e._compilePatterns(t.patterns,n,i)):new NC(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,e._compileCaptures(t.beginCaptures||t.captures,n,i),t.end,e._compileCaptures(t.endCaptures||t.captures,n,i),t.applyEndPatternLast,e._compilePatterns(t.patterns,n,i))}),t.id}static _compileCaptures(t,n,i){let a=[];if(t){let o=0;for(let e in t){if("$vscodeTextmateLocation"===e)continue;let t=parseInt(e,10);t>o&&(o=t)}for(let e=0;e<=o;e++)a[e]=null;for(let o in t){if("$vscodeTextmateLocation"===o)continue;let s=parseInt(o,10),l=0;t[o].patterns&&(l=e.getCompiledRuleId(t[o],n,i)),a[s]=e.createCaptureRule(n,t[o].$vscodeTextmateLocation,t[o].name,t[o].contentName,l)}}return a}static _compilePatterns(t,n,i){let a=[];if(t)for(let o=0,s=t.length;o<s;o++){let s=t[o],l=-1;if(s.include){let t=Ny(s.include);switch(t.kind){case 0:case 1:l=e.getCompiledRuleId(i[s.include],n,i);break;case 2:let a=i[t.ruleName];a&&(l=e.getCompiledRuleId(a,n,i));break;case 3:case 4:let o=t.scopeName,u=4===t.kind?t.ruleName:null,c=n.getExternalGrammar(o,i);if(c){if(u){let t=c.repository[u];t&&(l=e.getCompiledRuleId(t,n,c.repository))}else l=e.getCompiledRuleId(c.repository.$self,n,c.repository)}}}else l=e.getCompiledRuleId(s,n,i);if(-1!==l){let e=n.getRule(l),t=!1;if((e instanceof NA||e instanceof NC||e instanceof NN)&&e.hasMissingPatterns&&0===e.patterns.length&&(t=!0),t)continue;a.push(l)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},NM=class e{constructor(e,t){if(B(this,"source"),B(this,"ruleId"),B(this,"hasAnchor"),B(this,"hasBackReferences"),B(this,"_anchorCache"),e&&"string"==typeof e){let t=e.length,n=0,i=[],a=!1;for(let o=0;o<t;o++)if("\\"===e.charAt(o)&&o+1<t){let t=e.charAt(o+1);"z"===t?(i.push(e.substring(n,o)),i.push("$(?!\\n)(?<!\\n)"),n=o+2):("A"===t||"G"===t)&&(a=!0),o++}this.hasAnchor=a,0===n?this.source=e:(i.push(e.substring(n,t)),this.source=i.join(""))}else this.hasAnchor=!1,this.source=e;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=t,"string"==typeof this.source?this.hasBackReferences=Nk.test(this.source):this.hasBackReferences=!1}clone(){return new e(this.source,this.ruleId)}setSource(e){this.source!==e&&(this.source=e,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(e,t){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let n=t.map(t=>e.substring(t.start,t.end));return N_.lastIndex=0,this.source.replace(N_,(e,t)=>C2(n[parseInt(t,10)]||""))}_buildAnchorCache(){if("string"!=typeof this.source)throw Error("This method should only be called if the source is a string");let e=[],t=[],n=[],i=[],a,o,s,l;for(a=0,o=this.source.length;a<o;a++)s=this.source.charAt(a),e[a]=s,t[a]=s,n[a]=s,i[a]=s,"\\"===s&&a+1<o&&("A"===(l=this.source.charAt(a+1))?(e[a+1]="ï¿¿",t[a+1]="ï¿¿",n[a+1]="A",i[a+1]="A"):"G"===l?(e[a+1]="ï¿¿",t[a+1]="G",n[a+1]="ï¿¿",i[a+1]="G"):(e[a+1]=l,t[a+1]=l,n[a+1]=l,i[a+1]=l),a++);return{A0_G0:e.join(""),A0_G1:t.join(""),A1_G0:n.join(""),A1_G1:i.join("")}}resolveAnchors(e,t){return this.hasAnchor&&this._anchorCache&&"string"==typeof this.source?e?t?this._anchorCache.A1_G1:this._anchorCache.A1_G0:t?this._anchorCache.A0_G1:this._anchorCache.A0_G0:this.source}},NP=class{constructor(){B(this,"_items"),B(this,"_hasAnchors"),B(this,"_cached"),B(this,"_anchorCache"),this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}
488push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(e=>e.source);this._cached=new NR(e,t,this._items.map(e=>e.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){return new NR(e,this._items.map(e=>e.resolveAnchors(t,n)),this._items.map(e=>e.ruleId))}},NR=class{constructor(e,t,n){B(this,"scanner"),this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}dispose(){"function"==typeof this.scanner.dispose&&this.scanner.dispose()}toString(){let e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push("   - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
489`)}findNextMatchSync(e,t,n){let i=this.scanner.findNextMatchSync(e,t,n);return i?{ruleId:this.rules[i.index],captureIndices:i.captureIndices}:null}},ND=class{constructor(e,t){this.languageId=e,this.tokenType=t}},NL=(Nw=class{constructor(e,t){B(this,"_defaultAttributes"),B(this,"_embeddedLanguagesMatcher"),B(this,"_getBasicScopeAttributes",new C4(e=>new ND(this._scopeToLanguage(e),this._toStandardTokenType(e)))),this._defaultAttributes=new ND(e,8),this._embeddedLanguagesMatcher=new NO(Object.entries(t||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(e){return null===e?Nw._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(e)}_scopeToLanguage(e){return this._embeddedLanguagesMatcher.match(e)||0}_toStandardTokenType(e){let t=e.match(Nw.STANDARD_TOKEN_TYPE_REGEXP);if(!t)return 8;switch(t[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw Error("Unexpected match for standard token type!")}},B(Nw,"_NULL_SCOPE_METADATA",new ND(0,0)),B(Nw,"STANDARD_TOKEN_TYPE_REGEXP",/\b(comment|string|regex|meta\.embedded)\b/),Nw),NO=class{constructor(e){if(B(this,"values"),B(this,"scopesRegExp"),0===e.length)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);let t=e.map(([e,t])=>C2(e));t.sort(),t.reverse(),this.scopesRegExp=RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;let t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};"u">typeof R&&R.env.VSCODE_TEXTMATE_DEBUG;var NB=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Nj(e,t,n,i,a,o,s,l){let u=t.content.length,c=!1,d=-1;if(s){let s=function(e,t,n,i,a,o){let s=a.beginRuleCapturedEOL?0:-1,l=[];for(let t=a;t;t=t.pop()){let n=t.getRule(e);n instanceof NN&&l.push({rule:n,stack:t})}for(let h=l.pop();h;h=l.pop()){var u,c,d,p;let{ruleScanner:l,findOptions:m}=(u=h.rule,c=h.stack.endRule,d=n,p=i===s,{ruleScanner:u.compileWhileAG(e,c,d,p),findOptions:0}),f=l.findNextMatchSync(t,i,m);if(f){if(-2!==f.ruleId){a=h.stack.pop();break}f.captureIndices&&f.captureIndices.length&&(o.produce(h.stack,f.captureIndices[0].start),NF(e,t,n,h.stack,o,h.rule.whileCaptures,f.captureIndices),o.produce(h.stack,f.captureIndices[0].end),s=f.captureIndices[0].end,f.captureIndices[0].end>i&&(i=f.captureIndices[0].end,n=!1))}else{a=h.stack.pop();break}}return{stack:a,linePos:i,anchorPosition:s,isFirstLine:n}}(e,t,n,i,a,o);a=s.stack,i=s.linePos,n=s.isFirstLine,d=s.anchorPosition}let p=Date.now();for(;!c;){if(0!==l&&Date.now()-p>l)return new NB(a,!0);!function(){let s=function(e,t,n,i,a,o){let s=function(e,t,n,i,a,o){let{ruleScanner:s,findOptions:l}=Nz(a.getRule(e),e,a.endRule,n,i===o),u=s.findNextMatchSync(t,i,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}(e,t,n,i,a,o),l=e.getInjections();if(0===l.length)return s;let u=function(e,t,n,i,a,o,s){let l=Number.MAX_VALUE,u=null,c,d=0,p=o.contentNameScopesList.getScopeNames();for(let o=0,h=e.length;o<h;o++){let h=e[o];if(!h.matcher(p))continue;let{ruleScanner:m,findOptions:f}=Nz(t.getRule(h.ruleId),t,null,i,a===s),g=m.findNextMatchSync(n,a,f);if(!g)continue;let x=g.captureIndices[0].start;if(!(x>=l)&&(l=x,u=g.captureIndices,c=g.ruleId,d=h.priority,l===a))break}return u?{priorityMatch:-1===d,captureIndices:u,matchedRuleId:c}:null}(l,e,t,n,i,a,o);if(!u)return s;if(!s)return u;
489let c=s.captureIndices[0].start,d=u.captureIndices[0].start;return d<c||u.priorityMatch&&d===c?u:s}(e,t,n,i,a,d);if(!s){o.produce(a,u),c=!0;return}let l=s.captureIndices,p=s.matchedRuleId,h=!!l&&l.length>0&&l[0].end>i;if(-1===p){let s=a.getRule(e);o.produce(a,l[0].start),a=a.withContentNameScopesList(a.nameScopesList),NF(e,t,n,a,o,s.endCaptures,l),o.produce(a,l[0].end);let p=a;if(a=a.parent,d=p.getAnchorPos(),!h&&p.getEnterPos()===i){a=p,o.produce(a,u),c=!0;return}}else{let s=e.getRule(p);o.produce(a,l[0].start);let m=a,f=s.getName(t.content,l),g=a.contentNameScopesList.pushAttributed(f,e);if(a=a.push(p,i,d,l[0].end===u,null,g,g),s instanceof NC){NF(e,t,n,a,o,s.beginCaptures,l),o.produce(a,l[0].end),d=l[0].end;let i=s.getContentName(t.content,l),p=g.pushAttributed(i,e);if(a=a.withContentNameScopesList(p),s.endHasBackReferences&&(a=a.withEndRule(s.getEndWithResolvedBackReferences(t.content,l))),!h&&m.hasSameRuleAs(a)){a=a.pop(),o.produce(a,u),c=!0;return}}else if(s instanceof NN){NF(e,t,n,a,o,s.beginCaptures,l),o.produce(a,l[0].end),d=l[0].end;let i=s.getContentName(t.content,l),p=g.pushAttributed(i,e);if(a=a.withContentNameScopesList(p),s.whileHasBackReferences&&(a=a.withEndRule(s.getWhileWithResolvedBackReferences(t.content,l))),!h&&m.hasSameRuleAs(a)){a=a.pop(),o.produce(a,u),c=!0;return}}else if(NF(e,t,n,a,o,s.captures,l),o.produce(a,l[0].end),a=a.pop(),!h){a=a.safePop(),o.produce(a,u),c=!0;return}}l[0].end>i&&(i=l[0].end,n=!1)}()}return new NB(a,!1)}function Nz(e,t,n,i,a){return{ruleScanner:e.compileAG(t,n,i,a),findOptions:0}}function NF(e,t,n,i,a,o,s){if(0===o.length)return;let l=t.content,u=Math.min(o.length,s.length),c=[],d=s[0].end;for(let t=0;t<u;t++){let u=o[t];if(null===u)continue;let p=s[t];if(0===p.length)continue;if(p.start>d)break;for(;c.length>0&&c[c.length-1].endPos<=p.start;
489)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop();if(c.length>0?a.produceFromScopes(c[c.length-1].scopes,p.start):a.produce(i,p.start),u.retokenizeCapturedWithRuleId){let t=u.getName(l,s),o=i.contentNameScopesList.pushAttributed(t,e),c=u.getContentName(l,s),d=o.pushAttributed(c,e),h=i.push(u.retokenizeCapturedWithRuleId,p.start,-1,!1,null,o,d),m=e.createOnigString(l.substring(0,p.end));Nj(e,m,n&&0===p.start,p.start,h,a,!1,0),No(m);continue}let h=u.getName(l,s);if(null!==h){let t=(c.length>0?c[c.length-1].scopes:i.contentNameScopesList).pushAttributed(h,e);c.push(new NH(t,p.end))}}for(;c.length>0;)a.produceFromScopes(c[c.length-1].scopes,c[c.length-1].endPos),c.pop()}var NH=class{constructor(e,t){B(this,"scopes"),B(this,"endPos"),this.scopes=e,this.endPos=t}};function NU(e,t,n,i,a){let o=Ni(t,NG),s=NI.getCompiledRuleId(n,i,a.repository);for(let n of o)e.push({debugSelector:t,matcher:n.matcher,ruleId:s,grammar:a,priority:n.priority})}function NG(e,t){if(t.length<e.length)return!1;let n=0;return e.every(e=>{for(let i=n;i<t.length;i++)if(function(e,t){if(!e)return!1;if(e===t)return!0;let n=t.length;return e.length>n&&e.substr(0,n)===t&&"."===e[n]}(t[i],e))return n=i+1,!0;return!1})}var Nq=class{constructor(e,t,n,i,a,o,s,l){if(B(this,"_rootId"),B(this,"_lastRuleId"),B(this,"_ruleId2desc"),B(this,"_includedGrammars"),B(this,"_grammarRepository"),B(this,"_grammar"),B(this,"_injections"),B(this,"_basicScopeAttributesProvider"),B(this,"_tokenTypeMatchers"),this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=l,this._basicScopeAttributesProvider=new NL(n,i),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=NV(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(let e of Object.keys(a))for(let t of Ni(e,NG))this._tokenTypeMatchers.push({matcher:t.matcher,type:a[e]})}get themeProvider(){return this._grammarRepository}dispose(){for(let e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){let e=[],t=this._rootScopeName,n=({lookup:e=>e===this._rootScopeName?this._grammar:this.getExternalGrammar(e),injections:e=>this._grammarRepository.injections(e)}).lookup(t);if(n){let i=n.injections;if(i)for(let t in i)NU(e,t,i[t],this,n);let a=this._grammarRepository.injections(t);a&&a.forEach(t=>{let n=this.getExternalGrammar(t);if(n){let t=n.injectionSelector;t&&NU(e,t,n,this,n)}})}return e.sort((e,t)=>e.priority-t.priority),e}getInjections(){return null===this._injections&&(this._injections=this._collectInjections()),this._injections}registerRule(e){let t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){let n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=NV(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){let i=this._tokenize(e,t,!1,n);return{tokens:i.lineTokens.getResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}tokenizeLine2(e,t,n=0){let i=this._tokenize(e,t,!0,n);return{tokens:i.lineTokens.getBinaryResult(i.ruleStack,i.lineLength),ruleStack:i.ruleStack,stoppedEarly:i.stoppedEarly}}_tokenize(e,t,n,i){let a;if(-1===this._rootId&&(this._rootId=NI.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections()),t&&t!==NK.NULL)a=!1,t.reset();else{let e;a=!0;let n=this._basicScopeAttributesProvider.getDefaultAttributes(),i=this.themeProvider.getDefaults(),o=Nr.set(0,n.languageId,n.tokenType,null,i.fontStyle,i.foregroundId,i.backgroundId),s=this.getRule(this._rootId).getName(null,null);e=s?NY.createRootAndLookUpScopeName(s,o,this):NY.createRoot("unknown",o),t=new NK(null,this._rootId,-1,-1,!1,null,e,e)}e+=`
490`;let o=this.createOnigString(e),s=o.content.length,l=new NQ(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),u=Nj(this,o,a,0,t,l,!0,i);return No(o),{lineLength:s,lineTokens:l,ruleStack:u.stack,stoppedEarly:u.stoppedEarly}}};function NV(e,t){return(e=function e(t){return Array.isArray(t)?function(t){let n=[];for(let i=0,a=t.length;i<a;i++)n[i]=e(t[i]);return n}(t):t instanceof RegExp?t:"object"==typeof t?function(t){let n={};for(let i in t)n[i]=e(t[i]);return n}(t):t}(e)).repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName}
490,e.repository.$base=t||e.repository.$self,e}var NW,NY=class e{constructor(e,t,n){this.parent=e,this.scopePath=t,this.tokenAttributes=n}static fromExtension(t,n){let i=t,a=(null==t?void 0:t.scopePath)??null;for(let t of n)i=new e(i,a=C3.push(a,t.scopeNames),t.encodedTokenAttributes);return i}static createRoot(t,n){return new e(null,new C3(null,t),n)}static createRootAndLookUpScopeName(t,n,i){let a=i.getMetadataForScope(t),o=new C3(null,t),s=i.themeProvider.themeMatch(o),l=e.mergeAttributes(n,a,s);return new e(null,o,l)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return e.equals(this,t)}static equals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.scopeName!==t.scopeName||e.tokenAttributes!==t.tokenAttributes)return!1;e=e.parent,t=t.parent}}static mergeAttributes(e,t,n){let i=-1,a=0,o=0;return null!==n&&(i=n.fontStyle,a=n.foregroundId,o=n.backgroundId),Nr.set(e,t.languageId,t.tokenType,null,i,a,o)}pushAttributed(t,n){if(null===t)return this;if(-1===t.indexOf(" "))return e._pushAttributed(this,t,n);let i=t.split(/ /g),a=this;for(let t of i)a=e._pushAttributed(a,t,n);return a}static _pushAttributed(t,n,i){let a=i.getMetadataForScope(n),o=t.scopePath.push(n),s=i.themeProvider.themeMatch(o),l=e.mergeAttributes(t.tokenAttributes,a,s);return new e(t,o,l)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(e){var t;let n=[],i=this;for(;i&&i!==e;)n.push({encodedTokenAttributes:i.tokenAttributes,scopeNames:i.scopePath.getExtensionIfDefined((null==(t=i.parent)?void 0:t.scopePath)??null)}),i=i.parent;return i===e?n.reverse():void 0}},NK=(NW=class{constructor(e,t,n,i,a,o,s,l){B(this,"_stackElementBrand"),B(this,"_enterPos"),B(this,"_anchorPos"),B(this,"depth"),this.parent=e,this.ruleId=t,this.beginRuleCapturedEOL=a,this.endRule=o,this.nameScopesList=s,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=n,this._anchorPos=i}equals(e){return null!==e&&NW._equals(this,e)}static _equals(e,t){return e===t||!!this._structuralEquals(e,t)&&NY.equals(e.contentNameScopesList,t.contentNameScopesList)}static _structuralEquals(e,t){for(;;){if(e===t||!e&&!t)return!0;if(!e||!t||e.depth!==t.depth||e.ruleId!==t.ruleId||e.endRule!==t.endRule)return!1;e=e.parent,t=t.parent}}clone(){return this}static _reset(e){for(;e;)e._enterPos=-1,e._anchorPos=-1,e=e.parent}reset(){NW._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(e,t,n,i,a,o,s){return new NW(this,e,t,n,i,a,o,s)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(e){return e.getRule(this.ruleId)}toString(){let e=[];return this._writeString(e,0),"["+e.join(",")+"]"}_writeString(e,t){var n,i;return this.parent&&(t=this.parent._writeString(e,t)),e[t++]=`(${this.ruleId}, ${null==(n=this.nameScopesList)?void 0:n.toString()}, ${null==(i=this.contentNameScopesList)?void 0:i.toString()})`,t}withContentNameScopesList(e){return this.contentNameScopesList===e?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,e)}withEndRule(e){return this.endRule===e?this:new NW(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,e,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(e){let t=this;for(;t&&t._enterPos===e._enterPos;){if(t.ruleId===e.ruleId)return!0;t=t.parent}return!1}toStateStackFrame(){var e,t,n;return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:(null==(t=this.nameScopesList)?void 0:t.getExtensionIfDefined((null==(e=this.parent)?void 0:e.nameScopesList)??null))??[],contentNameScopesList:(null==(n=this.contentNameScopesList)?void 0:n.getExtensionIfDefined(this.nameScopesList))??[]}}static pushFrame(e,t){let n=NY.fromExtension((null==e?void 0:e.nameScopesList)??null,t.nameScopesList);return new NW(e,t.ruleId,t.enterPos??-1,t.anchorPos??-1,t.beginRuleCapturedEOL,t.endRule,n,NY.fromExtension(n,t.contentNameScopesList))}},B(NW,"NULL",new NW(null,0,0,0,!1,null,null,null)),NW),NX=class{constructor(e,t){B(this,"balancedBracketScopes"),B(this,"unbalancedBracketScopes"),B(this,"allowAny",!1),this.balancedBracketScopes=e.flatMap(e=>"*"===e?(this.allowAny=!0,[]):Ni(e,NG).map(e=>e.matcher)),this.unbalancedBracketScopes=t.flatMap(e=>Ni(e,NG).map(e=>e.matcher))}get matchesAlways(){return this.allowAny&&0===this.unbalancedBracketScopes.length}get matchesNever(){return 0===this.balancedBracketScopes.length&&!this.allowAny}match(e){for(let t of this.unbalancedBracketScopes)if(t(e))return!1;for(let t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},NQ=class{constructor(e,t,n,i){B(this,"_emitBinaryTokens"),B(this,"_lineText"),B(this,"_tokens"),B(this,"_binaryTokens"),B(this,"_lastTokenEndIndex"),B(this,"_tokenTypeOverrides"),this.balancedBracketSelectors=i,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){var n;if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let i=(null==e?void 0:e.tokenAttributes)??0,a=!1;if(null!=(n=this.balancedBracketSelectors)&&n.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>
4900||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){let t=(null==e?void 0:e.getScopeNames())??[];for(let e of this._tokenTypeOverrides)e.matcher(t)&&(i=Nr.set(i,0,e.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(t))}if(a&&(i=Nr.set(i,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===i){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(i),this._lastTokenEndIndex=t;return}let i=(null==e?void 0:e.getScopeNames())??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:i}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),0===this._tokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),0===this._binaryTokens.length&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);let n=new Uint32Array(this._binaryTokens.length);for(let e=0,t=this._binaryTokens.length;e<t;e++)n[e]=this._binaryTokens[e];return n}},NZ=class{constructor(e,t){B(this,"_grammars",new Map),B(this,"_rawGrammars",new Map),B(this,"_injectionGrammars",new Map),B(this,"_theme"),this._onigLib=t,this._theme=e}dispose(){for(let e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,i,a){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,new Nq(e,o,t,n,i,a,this,this._onigLib))}return this._grammars.get(e)}},N$=class{constructor(e){B(this,"_options"),B(this,"_syncRegistry"),B(this,"_ensureGrammarCache"),this._options=e,this._syncRegistry=new NZ(C5.createFromRawTheme(e.theme,e.colorMap),e.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(e,t){this._syncRegistry.setTheme(C5.createFromRawTheme(e,t))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(e,t,n){return this.loadGrammarWithConfiguration(e,t,{embeddedLanguages:n})}loadGrammarWithConfiguration(e,t,n){return this._loadGrammar(e,t,n.embeddedLanguages,n.tokenTypes,new NX(n.balancedBracketSelectors||[],n.unbalancedBracketSelectors||[]))}loadGrammar(e){return this._loadGrammar(e,0,null,null,null)}_loadGrammar(e,t,n,i,a){let o=new Nc(this._syncRegistry,e);for(;o.Q.length>0;)o.Q.map(e=>this._loadSingleGrammar(e.scopeName)),o.processQueue();return this._grammarForScopeName(e,t,n,i,a)}_loadSingleGrammar(e){this._ensureGrammarCache.has(e)||(this._doLoadSingleGrammar(e),this._ensureGrammarCache.set(e,!0))}_doLoadSingleGrammar(e){let t=this._options.loadGrammar(e);if(t){let n="function"==typeof this._options.getInjections?this._options.getInjections(e):void 0;this._syncRegistry.addGrammar(t,n)}}addGrammar(e,t=[],n=0,i=null){return this._syncRegistry.addGrammar(e,t),this._grammarForScopeName(e.scopeName,n,i)}_grammarForScopeName(e,t=0,n=null,i=null,a=null){return this._syncRegistry.grammarForScopeName(e,t,n,i,a)}},NJ=NK.NULL;let N0=/["&'<>`]/g,N1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,N2=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,N4=/[|\\{}()[\]^$+*?.]/g,N5=new WeakMap,N3=/[\dA-Fa-f]/,N6=/\d/,N7=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslas
490h","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],N8={nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub
490:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},N9=["cent","copy","divide","gt","lt","not","para","times"],Ie={}.hasOwnProperty,It={};for(a in N8)Ie.call(N8,a)&&(It[N8[a]]=a);let In=/[^\dA-Za-z]/;function Ir(e,t,n){let i=function(e,t,n){let i="&#x"+e.toString(16).toUpperCase();return n&&t&&!N3.test(String.fromCharCode(t))?i:i+";"}(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=function(e,t,n,i){let a=String.fromCharCode(e);if(Ie.call(It,a)){let e=It[a],o="&"+e;return n&&N7.includes(e)&&!N9.includes(e)&&(!i||t&&61!==t&&In.test(String.fromCharCode(t)))?o:o+";"}return""}(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){let a=function(e,t,n){let i="&#"+String(e);return n&&t&&!N6.test(String.fromCharCode(t))?i:i+";"}(e,t,n.omitOptionalSemicolons);a.length<i.length&&(i=a)}return a&&(!n.useShortestReferences||a.length<i.length)?a:i}function Ii(e,t){return function(e,t){var n;let i;if(e=e.replace(t.subset?(n=t.subset,(i=N5.get(n))||(i=function(e){let t=[],n=-1;for(;++n<e.length;)t.push(e[n].replace(N4,"\\$&"));return RegExp("(?:"+t.join("|")+")","g")}(n),N5.set(n,i)),i):N0,a),t.subset||t.escapeOnly)return e;return e.replace(N1,function(e,n,i){return t.format((e.charCodeAt(0)-55296)*1024+e.charCodeAt(1)-56320+65536,i.charCodeAt(n+2),t)}).replace(N2,a);function a(e,n,i){return t.format(e.charCodeAt(0),i.charCodeAt(n+1),t)}}(e,Object.assign({format:Ir},t))}let Ia=/^>|^->|<!--|-->|--!>|<!-$/g,Io=[">"],Is=["<",">"],Il=Id(1),Iu=Id(-1),Ic=[];function Id(e){return function(t,n,i){let a=t?t.children:Ic,o=(n||0)+e,s=a[o];if(!i)for(;s&&gd(s);)o+=e,s=a[o];return s}}let Ip={}.hasOwnProperty;function Ih(e){return function(t,n,i){return Ip.call(e,t.tagName)&&e[t.tagName](t,n,i)}}let Im=Ih({body:function(e,t,n){let i=Il(n,t);return!i||"comment"!==i.type},caption:If,colgroup:If,dd:function(e,t,n){let i=Il(n,t);return!i||"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName)},dt:function(e,t,n){let i=Il(n,t);return!!(i&&"element"===i.type&&("dt"===i.tagName||"dd"===i.tagName))},head:If,html:function(e,t,n){let i=Il(n,t);return!i||"comment"!==i.type},li:function(e,t,n){let i=Il(n,t);return!i||"element"===i.type&&"li"===i.tagName},optgroup:function(e,t,n){let i=Il(n,t);return!i||"element"===i.type&&"optgroup"===i.tagName},option:function(e,t,n){let i=Il(n,t);return!i||"element"===i.type&&("option"===i.tagName||"optgroup"===i.tagName)},p:function(e,t,n){let i=Il(n,t);return i?"element"===i.type&&("address"===i.tagName||"article"===i.tagName||"aside"===i.tagName||"blockquote"===i.tagName||"details"===i.tagName||"div"===i.tagName||"dl"===i.tagName||"fieldset"===i.tagName||"figcaption"===i.tagName||"figure"===i.tagName||"footer"===i.tagName||"form"===i.tagName||"h1"===i.tagName||"h2"===i.tagName||"h3"===i.tagName||"h4"===i.tagName||"h5"===i.tagName||"h6"===i.tagName||"header"===i.tagName||"hgroup"===i.tagName||"hr"===i.tagName||"main"===i.tagName||"menu"===i.tagName||"nav"===i.tagName||"ol"===i.tagName||"p"===i.tagName||"pre"===i.tagName||"section"===i.tagName||"table"===i.tagName||"ul"===i.tagName):!n||!("element"===n.type&&("a"===n.tagName||"audio"===n.tagName||"del"===n.tagName||"ins"===n.tagName||"map"===n.tagName||"noscript"===n.tagName||"video"===n.tagName))},rp:Ig,rt:Ig,tbody:function(e,t,n){let i=Il(n,t);return!i||"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName)},td:Ix,tfoot:function(e,t,n){return!Il(n,t)},th:Ix,thead:function(e,t,n){let i=Il(n,t);return!!(i&&"element"===i.type&&("tbody"===i.tagName||"tfoot"===i.tagName))},tr:function(e,t,n){let i=Il(n,t);return!i||"element"===i.type&&"tr"===i.tagName}});function If(e,t,n){let i=Il(n,t,!0);return!i||"comment"!==i.type&&!("text"===i.type&&gd(i.value.charAt(0)))}function Ig(e,t,n){let i=Il(n,t);return!i||"element"===i.type&&("rp"===i.tagName||"rt"===i.tagName)}
490function Ix(e,t,n){let i=Il(n,t);return!i||"element"===i.type&&("td"===i.tagName||"th"===i.tagName)}let Iv=Ih({body:function(e){let t=Il(e,-1,!0);return!t||"comment"!==t.type&&!("text"===t.type&&gd(t.value.charAt(0)))&&!("element"===t.type&&("meta"===t.tagName||"link"===t.tagName||"script"===t.tagName||"style"===t.tagName||"template"===t.tagName))},colgroup:function(e,t,n){let i=Iu(n,t),a=Il(e,-1,!0);return!(n&&i&&"element"===i.type&&"colgroup"===i.tagName&&Im(i,n.children.indexOf(i),n))&&!!(a&&"element"===a.type&&"col"===a.tagName)},head:function(e){let t=new Set;for(let n of e.children)if("element"===n.type&&("base"===n.tagName||"title"===n.tagName)){if(t.has(n.tagName))return!1;t.add(n.tagName)}let n=e.children[0];return!n||"element"===n.type},html:function(e){let t=Il(e,-1);return!t||"comment"!==t.type},tbody:function(e,t,n){let i=Iu(n,t),a=Il(e,-1);return!(n&&i&&"element"===i.type&&("thead"===i.tagName||"tbody"===i.tagName)&&Im(i,n.children.indexOf(i),n))&&!!(a&&"element"===a.type&&"tr"===a.tagName)}}),Iy={name:[[`	
491\f\r &/=>`.split(""),`	
492\f\r "&'/=>\``.split("")],[`\0	
493\f\r "&'/<=>`.split(""),`\0	
494\f\r "&'/<=>\``.split("")]],unquoted:[[`	
495\f\r &>`.split(""),`\0	
496\f\r "&'<=>\``.split("")],[`\0	
497\f\r "&'<=>\``.split(""),`\0	
498\f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]},Ib=["<","&"];function Iw(e,t,n,i){return n&&"element"===n.type&&("script"===n.tagName||"style"===n.tagName)?e.value:Ii(e.value,Object.assign({},i.settings.characterReferences,{subset:Ib}))}let Ik=cS("type",{invalid:function(e){throw Error("Expected node, not `"+e+"`")},unknown:function(e){throw Error("Cannot compile unknown node `"+e.type+"`")},handlers:{comment:function(e,t,n,i){return i.settings.bogusComments?"<?"+Ii(e.value,Object.assign({},i.settings.characterReferences,{subset:Io}))+">":"<!--"+e.value.replace(Ia,function(e){return Ii(e,Object.assign({},i.settings.characterReferences,{subset:Is}))})+"-->"},doctype:function(e,t,n,i){return"<!"+(i.settings.upperDoctype?"DOCTYPE":"doctype")+(i.settings.tightDoctype?"":" ")+"html>"},element:function(e,t,n,i){let a;let o=i.schema,s="svg"!==o.space&&i.settings.omitOptionalTags,l="svg"===o.space?i.settings.closeEmptyElements:i.settings.voids.includes(e.tagName.toLowerCase()),u=[];"html"===o.space&&"svg"===e.tagName&&(i.schema=ab);let c=function(e,t){let n=[],i=-1,a;if(t){for(a in t)if(null!==t[a]&&void 0!==t[a]){let i=function(e,t,n){let i=ag(e.schema,t),a=e.settings.allowParseErrors&&"html"===e.schema.space?0:1,o=e.settings.allowDangerousCharacters?0:1,s=e.quote,l;if(i.overloadedBoolean&&(n===i.attribute||""===n)?n=!0:(i.boolean||i.overloadedBoolean)&&("string"!=typeof n||n===i.attribute||""===n)&&(n=!!n),null==n||!1===n||"number"==typeof n&&Number.isNaN(n))return"";let u=Ii(i.attribute,Object.assign({},e.settings.characterReferences,{subset:Iy.name[a][o]}));return!0===n||(n=Array.isArray(n)?(i.commaSeparated?ak:aE)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?u:(e.settings.preferUnquoted&&(l=Ii(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Iy.unquoted[a][o]}))),l!==n&&(e.settings.quoteSmart&&hs(n,s)>hs(n,e.alternative)&&(s=e.alternative),l=s+Ii(n,Object.assign({},e.settings.characterReferences,{subset:("'"===s?Iy.single:Iy.double)[a][o],attribute:!0}))+s),u+(l&&"="+l))}(e,a,t[a]);i&&n.push(i)}}for(;++i<n.length;){let t=e.settings.tightAttributes?n[i].charAt(n[i].length-1):void 0;i!==n.length-1&&'"'!==t&&"'"!==t&&(n[i]+=" ")}return n.join("")}(i,e.properties),d=i.all("html"===o.space&&"template"===e.tagName?e.content:e);return i.schema=o,d&&(l=!1),!c&&s&&Iv(e,t,n)||(u.push("<",e.tagName,c?" "+c:""),l&&("svg"===o.space||i.settings.closeSelfClosing)&&(a=c.charAt(c.length-1),(!i.settings.tightSelfClosing||"/"===a||a&&'"'!==a&&"'"!==a)&&u.push(" "),u.push("/")),u.push(">")),u.push(d),l||s&&Im(e,t,n)||u.push("</"+e.tagName+">"),u.join("")},raw:function(e,t,n,i){return i.settings.allowDangerousHtml?e.value:Iw(e,t,n,i)},root:function(e,t,n,i){return i.all(e)},text:Iw}}),I_={},IT={},IE=[];function IS(e,t,n){return Ik(e,t,n,this)}function IA(e){let t=[],n=e&&e.children||IE,i=-1;for(;++i<n.length;)t[i]=this.one(n[i],i,e);return t.join("")}function IC(e,t){let n="string"==typeof e?{}:{...e.colorReplacements},i="string"==typeof e?e:e.name;for(let[e,a]of Object.entries((null==t?void 0:t.colorReplacements)||{}))"string"==typeof a?n[e]=a:e===i&&Object.assign(n,a);return n}function IN(e,t){return e&&((null==t?void 0:t[null==e?void 0:e.toLowerCase()])||e)}async function II(e){return Promise.resolve("function"==typeof e?e():e).then(e=>e.default||e)}function IM(e){return!e||["plaintext","txt","text","plain"].includes(e)}function IP(e){return"ansi"===e||IM(e)}function IR(e){return"none"===e}function ID(e,t){var n;if(!t)return e;for(let i of(e.properties||(e.properties={}),(n=e.properties).class||(n.class=[]),"string"==typeof e.properties.class&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]),Array.isArray(t)?t:t.split(/\s+/g)))i&&!e.properties.class.includes(i)&&e.properties.class.push(i);return e}function IL(e,t=!1){var n;if(0===e.length)return[["",0]];let i=e.split(/(\r?\n)/g),a=0,o=[];for(let e=0;e<i.length;e+=2){let s=t?i[e]+(i[e+1]||""):i[e];o.push([s,a]),a+=i[e].length+((null==(n=i[e+1])?void 0:n.length)||0)}return o}let IO="light-dark()",IB=["color","background-color"];function Ij(e){let t={};if(e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle){e.fontStyle&C8.Italic&&(t["font-style"]="italic"),e.fontStyle&C8.Bold&&(t["font-weight"]="bold");let n=[];e.fontStyle&C8.Underline&&n.push("underline"),e.fontStyle&C8.Strikethrough&&n.push("line-through"),n.length&&(t["text-decoration"]=n.join(" "))}return t}function Iz(e){return"string"==typeof e?e:Object.entries(e).map(([e,t])=>`${e}:${t}`).join(";")}let IF=new WeakMap;function IH(e,t){IF.set(e,t)}function IU(e){return IF.get(e)}class IG{constructor(...e){if(B(this,"_stacks",{}),B(this,"lang"),2===e.length){let[t,n]=e;this.lang=n,this._stacks=t}else{let[t,n,i]=e;this.lang=n,this._stacks={[i]:t}}}get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(e,t){return new IG(Object.fromEntries((Array.isArray(t)?t:[t]).map(e=>[e,NJ])),e)}getInternalStack(e=this.theme){return this._stacks[e]}getScopes(e=this.theme){return function(e){let t=[],n=new Set;return function e(i){var a;if(n.has(i))return;n.add(i);let o=null==(a=null==i?void 0:i.nameScopesList)?void 0:a.scopeName;o&&t.push(o),i.parent&&e(i.parent)}(e),t}(this._stacks[e])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.getScopes()}}}let Iq=[function(){let e=new WeakMap;function t(t){if(!e.has(t.meta)){let n=function(e){if("number"==typeof e){if(e<0||e>t.source.length)throw new CQ(`Invalid decoration offset: ${e}. Code length: ${t.source.length}`);return{...i.indexToPos(e),offset:e}}{let t=i.lines[e.line];if(void 0===t)throw new CQ(`Invalid decoration position ${JSON.stringify(e)}. Lines length: ${i.lines.length}`);let n=e.character;if(n<0&&(n=t.length+n),n<0||n>t.length)throw new CQ(`Invalid decoration position ${JSON.stringify(e)}. Line ${e.line} length: ${t.length}`);return{...e,character:n,offset:i.posToIndex(e.line,n)}}},i=function(e){let t=IL(e,!0).map(([e])=>e);return{lines:t,indexToPos:function(n){if(n===e.length)return{line:t.length-1,character:t[t.length-1].length};let i=n,a=0;for(let e of t){if(i<e.length)break;i-=e.length,a++}return{line:a,character:i}},posToIndex:function(e,n){let i=0;for(let n=0;n<e;n++)i+=t[n].length;return i+n}}}(t.source),a=(t.options.decorations||[]).map(e=>({...e,start:n(e.start),end:n(e.end)}));(function(e){for(let t=0;t<e.length;t++){let n=e[t];if(n.start.offset>n.end.offset)throw new CQ(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let i=t+1;i<e.length;i++){let t=e[i],a=n.start.offset<=t.start.offset&&t.start.offset<n.end.offset,o=n.start.offset<t.end.offset&&t.end.offset<=n.end.offset,s=t.start.offset<=n.start.offset&&n.start.offset<t.end.offset,l=t.start.offset<n.end.offset&&n.end.offset<=t.end.offset;if(a||o||s||l){if(a&&o||s&&l||s&&n.start.offset===n.end.offset||o&&t.start.offset===t.end.offset)continue;throw new CQ(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(t.start)} intersect.`)}}}})(a),e.set(t.meta,{decorations:a,converter:i,source:t.source})}return e.get(t.meta)}return{name:"shiki:decorations",tokens(e){var n;if(null!=(n=this.options.decorations)&&n.length)return function(e,t){let n=Array.from(t instanceof Set?t:new Set(t)).sort((e,t)=>
498e-t);return n.length?e.map(e=>e.flatMap(e=>{let t=n.filter(t=>e.offset<t&&t<e.offset+e.content.length).map(t=>t-e.offset).sort((e,t)=>e-t);return t.length?function(e,t){let n=0,i=[];for(let a of t)a>n&&i.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&i.push({...e,content:e.content.slice(n),offset:e.offset+n}),i}(e,t):e})):e}(e,t(this).decorations.flatMap(e=>[e.start.offset,e.end.offset]))},code(e){var n;if(!(null!=(n=this.options.decorations)&&n.length))return;let i=t(this),a=Array.from(e.children).filter(e=>"element"===e.type&&"span"===e.tagName);if(a.length!==i.converter.lines.length)throw new CQ(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${i.converter.lines.length}). Failed to apply decorations.`);function o(e,t,n,i){let o=a[e],l="",u=-1,c=-1;if(0===t&&(u=0),0===n&&(c=0),n===Number.POSITIVE_INFINITY&&(c=o.children.length),-1===u||-1===c)for(let e=0;e<o.children.length;e++)l+=function e(t){return"text"===t.type?t.value:"element"===t.type?t.children.map(e).join(""):""}(o.children[e]),-1===u&&l.length===t&&(u=e+1),-1===c&&l.length===n&&(c=e+1);if(-1===u)throw new CQ(`Failed to find start index for decoration ${JSON.stringify(i.start)}`);if(-1===c)throw new CQ(`Failed to find end index for decoration ${JSON.stringify(i.end)}`);let d=o.children.slice(u,c);if(i.alwaysWrap||d.length!==o.children.length){if(i.alwaysWrap||1!==d.length||"element"!==d[0].type){let e={type:"element",tagName:"span",properties:{},children:d};s(e,i,"wrapper"),o.children.splice(u,d.length,e)}else s(d[0],i,"token")}else s(o,i,"line")}function s(e,t,n){var i;let a=t.properties||{},o=t.transform||(e=>e);return e.tagName=t.tagName||"span",e.properties={...e.properties,...a,class:e.properties.class},null!=(i=t.properties)&&i.class&&ID(e,t.properties.class),e=o(e,n)||e}let l=[];for(let e of i.decorations.sort((e,t)=>t.start.offset-e.start.offset||e.end.offset-t.end.offset)){let{start:t,end:n}=e;if(t.line===n.line)o(t.line,t.character,n.character,e);else if(t.line<n.line){o(t.line,t.character,Number.POSITIVE_INFINITY,e);for(let i=t.line+1;i<n.line;i++)l.unshift(()=>{var t;a[t=i]=s(a[t],e,"line")});o(n.line,0,n.character,e)}}l.forEach(e=>e())}}}()];function IV(e){let t=function(e){let t=[],n=[],i=[];for(let a of e)switch(a.enforce){case"pre":t.push(a);break;case"post":n.push(a);break;default:i.push(a)}return{pre:t,post:n,normal:i}}(e.transformers||[]);return[...t.pre,...t.normal,...t.post,...Iq]}var IW=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],IY={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",8:"hidden",9:"strikethrough"};function IK(e){let t=e.shift();if("2"===t){let t=e.splice(0,3).map(e=>Number.parseInt(e));return 3!==t.length||t.some(e=>Number.isNaN(e))?void 0:{type:"rgb",rgb:t}}if("5"===t){let t=e.shift();if(t)return{type:"table",index:Number(t)}}}var IX={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};let IQ={black:"#000000",red:"#cd3131",green:"#0DBC79",yellow:"#E5E510",blue:"#2472C8",magenta:"#BC3FBC",cyan:"#11A8CD",white:"#E5E5E5",brightBlack:"#666666",brightRed:"#F14C4C",brightGreen:"#23D18B",brightYellow:"#F5F543",brightBlue:"#3B8EEA",brightMagenta:"#D670D6",brightCyan:"#29B8DB",brightWhite:"#FFFFFF"};function IZ(e,t,n={}){let{theme:i=e.getLoadedThemes()[0]}=n,a=e.resolveLangAlias(n.lang||"text");if(IM(a)||IR(i))return IL(t).map(e=>[{content:e[0],offset:e[1]}]);
498let{theme:o,colorMap:s}=e.setTheme(i);if("ansi"===a)return function(e,t,n){let i,a,o;let s=IC(e,n),l=IL(t),u=function(e=IX){let t;function n(e){return`#${e.map(e=>Math.max(0,Math.min(e,255)).toString(16).padStart(2,"0")).join("")}`}return{value:function(i){switch(i.type){case"named":return e[i.name];case"rgb":return n(i.rgb);case"table":var a;return a=i.index,function(){if(t)return t;t=[];for(let n=0;n<IW.length;n++)t.push(e[IW[n]]);let i=[0,95,135,175,215,255];for(let e=0;e<6;e++)for(let a=0;a<6;a++)for(let o=0;o<6;o++)t.push(n([i[e],i[a],i[o]]));let a=8;for(let e=0;e<24;e++,a+=10)t.push(n([a,a,a]));return t}()[a]}}}}(Object.fromEntries(IW.map(t=>{var n;let i=`terminal.ansi${t[0].toUpperCase()}${t.substring(1)}`;return[t,(null==(n=e.colors)?void 0:n[i])||IQ[t]]}))),c=(i=null,a=null,o=new Set,{parse(e){let t=[],n=0;do{let s=function(e,t){let n=e.indexOf("\x1b",t);if(-1!==n&&"["===e[n+1]){let t=e.indexOf("m",n);if(-1!==t)return{sequence:e.substring(n+2,t).split(";"),startPosition:n,position:t+1}}return{position:e.length}}(e,n),l=s.sequence?e.substring(n,s.startPosition):e.substring(n);if(l.length>0&&t.push({value:l,foreground:i,background:a,decorations:new Set(o)}),s.sequence){let e=function(e){let t=[];for(;e.length>0;){let n=e.shift();if(!n)continue;let i=Number.parseInt(n);if(!Number.isNaN(i)){if(0===i)t.push({type:"resetAll"});else if(i<=9)IY[i]&&t.push({type:"setDecoration",value:IY[i]});else if(i<=29){let e=IY[i-20];e&&(t.push({type:"resetDecoration",value:e}),"dim"===e&&t.push({type:"resetDecoration",value:"bold"}))}else if(i<=37)t.push({type:"setForegroundColor",value:{type:"named",name:IW[i-30]}});else if(38===i){let n=IK(e);n&&t.push({type:"setForegroundColor",value:n})}else if(39===i)t.push({type:"resetForegroundColor"});else if(i<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:IW[i-40]}});else if(48===i){let n=IK(e);n&&t.push({type:"setBackgroundColor",value:n})}else 49===i?t.push({type:"resetBackgroundColor"}):53===i?t.push({type:"setDecoration",value:"overline"}):55===i?t.push({type:"resetDecoration",value:"overline"}):i>=90&&i<=97?t.push({type:"setForegroundColor",value:{type:"named",name:IW[i-90+8]}}):i>=100&&i<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:IW[i-100+8]}})}}return t}(s.sequence);for(let t of e)"resetAll"===t.type?(i=null,a=null,o.clear()):"resetForegroundColor"===t.type?i=null:"resetBackgroundColor"===t.type?a=null:"resetDecoration"===t.type&&o.delete(t.value);for(let t of e)"setForegroundColor"===t.type?i=t.value:"setBackgroundColor"===t.type?a=t.value:"setDecoration"===t.type&&o.add(t.value)}n=s.position}while(n<e.length);return t}});return l.map(t=>c.parse(t[0]).map(n=>{let i,a;n.decorations.has("reverse")?(i=n.background?u.value(n.background):e.bg,a=n.foreground?u.value(n.foreground):e.fg):(i=n.foreground?u.value(n.foreground):e.fg,a=n.background?u.value(n.background):void 0),i=IN(i,s),a=IN(a,s),n.decorations.has("dim")&&(i=function(e){let t=e.match(/#([0-9a-f]{3,8})/i);if(t){let e=t[1];if(8===e.length){let t=Math.round(Number.parseInt(e.slice(6,8),16)/2).toString(16).padStart(2,"0");return`#${e.slice(0,6)}${t}`}if(6===e.length)return`#${e}80`;if(4===e.length){let t=e[0],n=e[1],i=e[2],a=e[3],o=Math.round(Number.parseInt(`${a}${a}`,16)/2).toString(16).padStart(2,"0");return`#${t}${t}${n}${n}${i}${i}${o}`}if(3===e.length){let t=e[0],n=e[1],i=e[2];return`#${t}${t}${n}${n}${i}${i}80`}}let n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}(i));let o=C8.None;return n.decorations.has("bold")&&(o|=C8.Bold),n.decorations.has("italic")&&(o|=C8.Italic),n.decorations.has("underline")&&(o|=C8.Underline),n.decorations.has("strikethrough")&&(o|=C8.Strikethrough),{content:n.value,offset:t[1],color:i,bgColor:a,fontStyle:o}}))}(o,t,n);let l=e.getLanguage(n.lang||"text");if(n.grammarState){if(n.grammarState.lang!==l.name)throw new CQ(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${l.name}"`);if(!n.grammarState.themes.includes(o.name))throw new CQ(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return function(e,t,n,i,a){let o=I$(e,t,n,i,a),s=new IG(o.stateStack,t.name,n.name);return IH(o.tokens,s),o.tokens}(t,l,o,s,n)}function I$(e,t,n,i,a){let o=IC(n,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:l=500}=a,u=IL(e),c=a.grammarState?function(e,t){if(!(e instanceof IG))throw new CQ("Invalid grammar state");return e.getInternalStack(t)}(a.grammarState,n.name)??NJ:null!=a.grammarContextCode?I$(a.grammarContextCode,t,n,i,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:NJ,d=[],p=[];for(let e=0,h=u.length;e<h;e++){let h,m;let[f,g]=u[e];
498if(""===f){d=[],p.push([]);continue}if(s>0&&f.length>=s){d=[],p.push([{content:f,offset:g,color:"",fontStyle:0}]);continue}a.includeExplanation&&(h=t.tokenizeLine(f,c,l).tokens,m=0);let x=t.tokenizeLine2(f,c,l),v=x.tokens.length/2;for(let e=0;e<v;e++){let t=x.tokens[2*e],s=e+1<v?x.tokens[2*e+2]:f.length;if(t===s)continue;let l=x.tokens[2*e+1],u=IN(i[Nr.getForeground(l)],o),c=Nr.getFontStyle(l),p={content:f.substring(t,s),offset:g+t,color:u,fontStyle:c};if(a.includeExplanation){let e=[];if("scopeName"!==a.includeExplanation)for(let t of n.settings){let n;switch(typeof t.scope){case"string":n=t.scope.split(/,/).map(e=>e.trim());break;case"object":n=t.scope;break;default:continue}e.push({settings:t,selectors:n.map(e=>e.split(/ /))})}p.explanation=[];let i=0;for(;t+i<s;){let t=h[m],n=f.substring(t.startIndex,t.endIndex);i+=n.length,p.explanation.push({content:n,scopes:"scopeName"===a.includeExplanation?t.scopes.map(e=>({scopeName:e})):function(e,t){let n=[];for(let i=0,a=t.length;i<a;i++){let a=t[i];n[i]={scopeName:a,themeMatches:function(e,t,n){let i=[];for(let{selectors:a,settings:o}of e)for(let e of a)if(function(e,t,n){if(!IJ(e[e.length-1],t))return!1;let i=e.length-2,a=n.length-1;for(;i>=0&&a>=0;)IJ(e[i],n[a])&&(i-=1),a-=1;return -1===i}(e,t,n)){i.push(o);break}return i}(e,a,t.slice(0,i))}}return n}(e,t.scopes)}),m+=1}}d.push(p)}p.push(d),d=[],c=x.ruleStack}return{tokens:p,stateStack:c}}function IJ(e,t){return e===t||t.substring(0,e.length)===e&&"."===t[e.length]}function I0(e,t,n){let i=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})),a=i.map(i=>{let a=IZ(e,t,{...n,theme:i.theme}),o=IU(a);return{tokens:a,state:o,theme:"string"==typeof i.theme?i.theme:i.theme.name}}),o=function(...e){let t=e.map(()=>[]),n=e.length;for(let i=0;i<e[0].length;i++){let a=e.map(e=>e[i]),o=t.map(()=>[]);t.forEach((e,t)=>e.push(o[t]));let s=a.map(()=>0),l=a.map(e=>e[0]);for(;l.every(e=>e);){let e=Math.min(...l.map(e=>e.content.length));for(let t=0;t<n;t++){let n=l[t];n.content.length===e?(o[t].push(n),s[t]+=1,l[t]=a[t][s[t]]):(o[t].push({...n,content:n.content.slice(0,e)}),l[t]={...n,content:n.content.slice(e),offset:n.offset+e})}}}return t}(...a.map(e=>e.tokens)),s=o[0].map((e,t)=>e.map((e,a)=>{let s={content:e.content,variants:{},offset:e.offset};return"includeExplanation"in n&&n.includeExplanation&&(s.explanation=e.explanation),o.forEach((e,n)=>{let{content:o,explanation:l,offset:u,...c}=e[t][a];s.variants[i[n].color]=c}),s})),l=a[0].state?new IG(Object.fromEntries(a.map(e=>{var t;return[e.theme,null==(t=e.state)?void 0:t.getInternalStack(e.theme)]})),a[0].state.lang):void 0;return l&&IH(s,l),s}function I1(e,t,n){let i,a,o,s,l,u;if("themes"in n){let{defaultColor:c="light",cssVariablePrefix:d="--shiki-",colorsRendering:p="css-vars"}=n,h=Object.entries(n.themes).filter(e=>e[1]).map(e=>({color:e[0],theme:e[1]})).sort((e,t)=>e.color===c?-1:t.color===c?1:0);if(0===h.length)throw new CQ("`themes` option must not be empty");let m=I0(e,t,n);if(u=IU(m),c&&IO!==c&&!h.find(e=>e.color===c))throw new CQ(`\`themes\` option must contain the defaultColor key \`${c}\``);let f=h.map(t=>e.getTheme(t.theme)),g=h.map(e=>e.color);o=m.map(e=>e.map(e=>(function(e,t,n,i,a="css-vars"){let o={content:e.content,explanation:e.explanation,offset:e.offset},s=t.map(t=>Ij(e.variants[t])),l=new Set(s.flatMap(e=>Object.keys(e))),u={},c=(e,i)=>{let a="color"===i?"":"background-color"===i?"-bg":`-${i}`;
498return n+t[e]+("color"===i?"":a)};return s.forEach((e,n)=>{for(let o of l){let l=e[o]||"inherit";if(0===n&&i&&IB.includes(o)){if(i===IO&&s.length>1){let e=t.findIndex(e=>"light"===e),i=t.findIndex(e=>"dark"===e);if(-1===e||-1===i)throw new CQ('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let d=s[e][o]||"inherit",p=s[i][o]||"inherit";u[o]=`light-dark(${d}, ${p})`,"css-vars"===a&&(u[c(n,o)]=l)}else u[o]=l}else"css-vars"===a&&(u[c(n,o)]=l)}}),o.htmlStyle=u,o})(e,g,d,c,p))),u&&IH(o,u);let x=h.map(e=>IC(e.theme,n));a=I2(h,f,x,d,c,"fg",p),i=I2(h,f,x,d,c,"bg",p),s=`shiki-themes ${f.map(e=>e.name).join(" ")}`,l=c?void 0:[a,i].join(";")}else if("theme"in n){let l=IC(n.theme,n);o=IZ(e,t,n);let c=e.getTheme(n.theme);i=IN(c.bg,l),a=IN(c.fg,l),s=c.name,u=IU(o)}else throw new CQ("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:i,themeName:s,rootStyle:l,grammarState:u}}function I2(e,t,n,i,a,o,s){return e.map((l,u)=>{let c=IN(t[u][o],n[u])||"inherit",d=`${i+l.color}${"bg"===o?"-bg":""}:${c}`;if(0===u&&a){if(a===IO&&e.length>1){let i=e.findIndex(e=>"light"===e.color),a=e.findIndex(e=>"dark"===e.color);if(-1===i||-1===a)throw new CQ('When using `defaultColor: "light-dark()"`, you must provide both `light` and `dark` themes');let s=IN(t[i][o],n[i])||"inherit",l=IN(t[a][o],n[a])||"inherit";return`light-dark(${s}, ${l});${d}`}return c}return"css-vars"===s?d:null}).filter(e=>!!e).join(";")}function I4(e,t,n,i={meta:{},options:n,codeToHast:(t,n)=>I4(e,t,n),codeToTokens:(t,n)=>I1(e,t,n)}){var a,o;let s=t;for(let e of IV(n))s=(null==(a=e.preprocess)?void 0:a.call(i,s,n))||s;let{tokens:l,fg:u,bg:c,themeName:d,rootStyle:p,grammarState:h}=I1(e,s,n),{mergeWhitespaces:m=!0,mergeSameStyleTokens:f=!1}=n;!0===m?l=l.map(e=>{let t=[],n="",i;return e.forEach((a,o)=>{let s=!(a.fontStyle&&(a.fontStyle&C8.Underline||a.fontStyle&C8.Strikethrough));s&&a.content.match(/^\s+$/)&&e[o+1]?(void 0===i&&(i=a.offset),n+=a.content):n?(s?t.push({...a,offset:i,content:n+a.content}):t.push({content:n,offset:i},a),i=void 0,n=""):t.push(a)}),t}):"never"===m&&(l=l.map(e=>e.flatMap(e=>{if(e.content.match(/^\s+$/))return e;let t=e.content.match(/^(\s*)(.*?)(\s*)$/);if(!t)return e;let[,n,i,a]=t;if(!n&&!a)return e;let o=[{...e,offset:e.offset+n.length,content:i}];return n&&o.unshift({content:n,offset:e.offset}),a&&o.push({content:a,offset:e.offset+n.length+i.length}),o}))),f&&(l=l.map(e=>{let t=[];for(let n of e){if(0===t.length){t.push({...n});continue}let e=t[t.length-1],i=Iz(e.htmlStyle||Ij(e)),a=Iz(n.htmlStyle||Ij(n)),o=e.fontStyle&&(e.fontStyle&C8.Underline||e.fontStyle&C8.Strikethrough),s=n.fontStyle&&(n.fontStyle&C8.Underline||n.fontStyle&C8.Strikethrough);o||s||i!==a?t.push({...n}):e.content+=n.content}return t}));let g={...i,get source(){return s}};for(let e of IV(n))l=(null==(o=e.tokens)?void 0:o.call(g,l))||l;return function(e,t,n,i=IU(e)){var a,o,s,l;let u=IV(t),c=[],d={type:"root",children:[]},{structure:p="classic",tabindex:h="0"}=t,m={class:`shiki ${t.themeName||""}`};for(let[e,n]of(!1!==t.rootStyle&&(null!=t.rootStyle?m.style=t.rootStyle:m.style=`background-color:${t.bg};color:${t.fg}`),!1!==h&&null!=h&&(m.tabindex=h.toString()),Object.entries(t.meta||{})))e.startsWith("_")||(m[e]=n);let f={type:"element",tagName:"pre",properties:m,children:[],data:t.data},g={type:"element",tagName:"code",properties:{},children:c},x=[],v={...n,structure:p,addClassToHast:ID,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return d},get pre(){return f},get code(){return g},get lines(){return x}};if(e.forEach((e,t)=>{var n,i;t&&("inline"===p?d.children.push({type:"element",tagName:"br",properties:{},children:[]}):"classic"===p&&c.push({type:"text",value:`
499`}));let a={type:"element",tagName:"span",properties:{class:"line"},children:[]},o=0;for(let i of e){let e={type:"element",tagName:"span",properties:{...i.htmlAttrs},children:[{type:"text",value:i.content}]},s=Iz(i.htmlStyle||Ij(i));for(let l of(s&&(e.properties.style=s),u))e=(null==(n=null==l?void 0:l.span)?void 0:n.call(v,e,t+1,o,a,i))||e;"inline"===p?d.children.push(e):"classic"===p&&a.children.push(e),o+=i.content.length}if("classic"===p){for(let e of u)a=(null==(i=null==e?void 0:e.line)?void 0:i.call(v,a,t+1))||a;x.push(a),c.push(a)}else"inline"===p&&x.push(a)}),"classic"===p){for(let e of u)g=(null==(a=null==e?void 0:e.code)?void 0:a.call(v,g))||g;for(let e of(f.children.push(g),u))f=(null==(o=null==e?void 0:e.pre)?void 0:o.call(v,f))||f;d.children.push(f)}else if("inline"===p){let e=[],t={type:"element",tagName:"span",properties:{class:"line"}
499,children:[]};for(let n of d.children)"element"===n.type&&"br"===n.tagName?(e.push(t),t={type:"element",tagName:"span",properties:{class:"line"},children:[]}):("element"===n.type||"text"===n.type)&&t.children.push(n);e.push(t);let n={type:"element",tagName:"code",properties:{},children:e};for(let e of u)n=(null==(s=null==e?void 0:e.code)?void 0:s.call(v,n))||n;d.children=[];for(let e=0;e<n.children.length;e++){e>0&&d.children.push({type:"element",tagName:"br",properties:{},children:[]});let t=n.children[e];"element"===t.type&&d.children.push(...t.children)}}let b=d;for(let e of u)b=(null==(l=null==e?void 0:e.root)?void 0:l.call(v,b))||b;return i&&IH(b,i),b}(l,{...n,fg:u,bg:c,themeName:d,rootStyle:!1!==n.rootStyle&&(n.rootStyle??p)},g,h)}let I5=function(e,t){let n=t||I_,i=n.quote||'"';if('"'!==i&&"'"!==i)throw Error("Invalid quote `"+i+"`, expected `'` or `\"`");return({one:IS,all:IA,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||cM,characterReferences:n.characterReferences||IT,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:"svg"===n.space?ab:ay,quote:i,alternative:'"'===i?"'":'"'}).one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)},I3={light:"#333333",dark:"#bbbbbb"},I6={light:"#fffffe",dark:"#1e1e1e"},I7="__shiki_resolved";function I8(e){var t,n,i,a,o;if(null!=e&&e[I7])return e;let s={...e};s.tokenColors&&!s.settings&&(s.settings=s.tokenColors,delete s.tokenColors),s.type||(s.type="dark"),s.colorReplacements={...s.colorReplacements},s.settings||(s.settings=[]);let{bg:l,fg:u}=s;if(!l||!u){let e=s.settings?s.settings.find(e=>!e.name&&!e.scope):void 0;null!=(t=null==e?void 0:e.settings)&&t.foreground&&(u=e.settings.foreground),null!=(n=null==e?void 0:e.settings)&&n.background&&(l=e.settings.background),!u&&null!=(i=null==s?void 0:s.colors)&&i["editor.foreground"]&&(u=s.colors["editor.foreground"]),!l&&null!=(a=null==s?void 0:s.colors)&&a["editor.background"]&&(l=s.colors["editor.background"]),u||(u="light"===s.type?I3.light:I3.dark),l||(l="light"===s.type?I6.light:I6.dark),s.fg=u,s.bg=l}s.settings[0]&&s.settings[0].settings&&!s.settings[0].scope||s.settings.unshift({settings:{foreground:s.fg,background:s.bg}});let c=0,d=new Map;function p(e){var t;if(d.has(e))return d.get(e);c+=1;let n=`#${c.toString(16).padStart(8,"0").toLowerCase()}`;return null!=(t=s.colorReplacements)&&t[`#${n}`]?p(e):(d.set(e,n),n)}for(let e of(s.settings=s.settings.map(e=>{var t,n;let i=(null==(t=e.settings)?void 0:t.foreground)&&!e.settings.foreground.startsWith("#"),a=(null==(n=e.settings)?void 0:n.background)&&!e.settings.background.startsWith("#");if(!i&&!a)return e;let o={...e,settings:{...e.settings}};if(i){let t=p(e.settings.foreground);s.colorReplacements[t]=e.settings.foreground,o.settings.foreground=t}if(a){let t=p(e.settings.background);s.colorReplacements[t]=e.settings.background,o.settings.background=t}return o}),Object.keys(s.colors||{})))if(("editor.foreground"===e||"editor.background"===e||e.startsWith("terminal.ansi"))&&!(null!=(o=s.colors[e])&&o.startsWith("#"))){let t=p(s.colors[e]);s.colorReplacements[t]=s.colors[e],s.colors[e]=t}return Object.defineProperty(s,I7,{enumerable:!1,writable:!1,value:!0}),s}async function I9(e){return Array.from(new Set((await Promise.all(e.filter(e=>!IP(e)).map(async e=>await II(e).then(e=>Array.isArray(e)?e:[e])))).flat()))}async function Me(e){return(await Promise.all(e.map(async e=>IR(e)?null:I8(await II(e))))).filter(e=>!!e)}let Mt=class extends Error{constructor(e){super(e),this.name="ShikiError"}};function Mn(e,t){if(!t)return e;if(t[e]){let n=new Set([e]);for(;t[e];){if(e=t[e],n.has(e))throw new Mt(`Circular alias \`${Array.from(n).join(" -> ")} -> ${e}\``);n.add(e)}}return e}class Mr extends N${constructor(e,t,n,i={}){super(e),B(this,"_resolvedThemes",new Map),B(this,"_resolvedGrammars",new Map),B(this,"_langMap",new Map),B(this,"_langGraph",new Map),B(this,"_textmateThemeCache",new WeakMap),B(this,"_loadedThemesCache",null),B(this,"_loadedLanguagesCache",null),this._resolver=e,this._themes=t,this._langs=n,this._alias=i,this._themes.map(e=>this.loadTheme(e)),this.loadLanguages(this._langs)}getTheme(e){return"string"==typeof e?this._resolvedThemes.get(e):this.loadTheme(e)}loadTheme(e){let t=I8(e);return t.name&&(this._resolvedThemes.set(t.name,t),this._loadedThemesCache=null),t}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(e){let t=this._textmateThemeCache.get(e);t||(t=C5.createFromRawTheme(e),this._textmateThemeCache.set(e,t)),this._syncRegistry.setTheme(t)}getGrammar(e){return e=Mn(e,this._alias),this._resolvedGrammars.get(e)}loadLanguage(e){var t,n,i,a;if(this.getGrammar(e.name))return;let o=new Set([...this._langMap.values()].filter(t=>{var n;return null==(n=t.embeddedLangsLazy)?void 0:n.includes(e.name)}));this._resolver.addLanguage(e);let s={balancedBracketSelectors:e.balancedBracketSelectors||["*"],unbalancedBracketSelectors:e.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(e.scopeName,e);let l=this.loadGrammarWithConfiguration(e.scopeName,1,s);if(l.name=e.name,this._resolvedGrammars.set(e.name,l),e.aliases&&e.aliases.forEac
499h(t=>{this._alias[t]=e.name}),this._loadedLanguagesCache=null,o.size)for(let e of o)this._resolvedGrammars.delete(e.name),this._loadedLanguagesCache=null,null==(n=null==(t=this._syncRegistry)?void 0:t._injectionGrammars)||n.delete(e.scopeName),null==(a=null==(i=this._syncRegistry)?void 0:i._grammars)||a.delete(e.scopeName),this.loadLanguage(this._langMap.get(e.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(e){for(let t of e)this.resolveEmbeddedLanguages(t);let t=Array.from(this._langGraph.entries()),n=t.filter(([e,t])=>!t);if(n.length){let e=t.filter(([e,t])=>{if(!t)return!1;let i=t.embeddedLanguages||t.embeddedLangs;return null==i?void 0:i.some(e=>n.map(([e])=>e).includes(e))}).filter(e=>!n.includes(e));throw new Mt(`Missing languages ${n.map(([e])=>`\`${e}\``).join(", ")}, required by ${e.map(([e])=>`\`${e}\``).join(", ")}`)}for(let[e,n]of t)this._resolver.addLanguage(n);for(let[e,n]of t)this.loadLanguage(n)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(e){this._langMap.set(e.name,e),this._langGraph.set(e.name,e);let t=e.embeddedLanguages??e.embeddedLangs;if(t)for(let e of t)this._langGraph.set(e,this._langMap.get(e))}}class Mi{constructor(e,t){B(this,"_langs",new Map),B(this,"_scopeToLang",new Map),B(this,"_injections",new Map),B(this,"_onigLib"),this._onigLib={createOnigScanner:t=>e.createScanner(t),createOnigString:t=>e.createString(t)},t.forEach(e=>this.addLanguage(e))}get onigLib(){return this._onigLib}getLangRegistration(e){return this._langs.get(e)}loadGrammar(e){return this._scopeToLang.get(e)}addLanguage(e){this._langs.set(e.name,e),e.aliases&&e.aliases.forEach(t=>{this._langs.set(t,e)}),this._scopeToLang.set(e.scopeName,e),e.injectTo&&e.injectTo.forEach(t=>{this._injections.get(t)||this._injections.set(t,[]),this._injections.get(t).push(e.scopeName)})}getInjections(e){let t=e.split("."),n=[];for(let e=1;e<=t.length;e++){let i=t.slice(0,e).join(".");n=[...n,...this._injections.get(i)||[]]}return n}}let Ma=0;async function Mo(e){e.engine||function(e,t=3){t>3||console.trace(`[SHIKI DEPRECATE]: ${e}`)}("`engine` option is required. Use `createOnigurumaEngine` or `createJavaScriptRegexEngine` to create an engine.");let[t,n,i]=await Promise.all([Me(e.themes||[]),I9(e.langs||[]),e.engine]);return function(e){let t;Ma+=1,!1!==e.warnings&&Ma>=10&&Ma%10==0&&console.warn(`[Shiki] ${Ma} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let n=!1;if(!e.engine)throw new Mt("`engine` option is required for synchronous mode");let i=(e.langs||[]).flat(1),a=(e.themes||[]).flat(1).map(I8),o=new Mr(new Mi(e.engine,i),a,i,e.langAlias);function s(e){if("none"===e)return{bg:"",fg:"",name:"none",settings:[],type:"dark"};c();let t=o.getTheme(e);if(!t)throw new Mt(`Theme \`${e}\` not found, you may need to load it first`);return t}function l(...e){c(),o.loadLanguages(e.flat(1))}function u(...e){for(let t of(c(),e.flat(1)))o.loadTheme(t)}function c(){if(n)throw new Mt("Shiki instance has been disposed")}function d(){n||(n=!0,o.dispose(),Ma-=1)}return{setTheme:function(e){c();let n=s(e);return t!==e&&(o.setTheme(n),t=e),{theme:n,colorMap:o.getColorMap()}},getTheme:s,getLanguage:function(e){c();let t=o.getGrammar("string"==typeof e?e:e.name);if(!t)throw new Mt(`Language \`${e}\` not found, you may need to load it first`);return t},getLoadedThemes:function(){return c(),o.getLoadedThemes()},getLoadedLanguages:function(){return c(),o.getLoadedLanguages()},resolveLangAlias:function(t){return Mn(t,e.langAlias)},loadLanguage:async function(...e){return l(await I9(e))},loadLanguageSync:l,loadTheme:async function(...e){return c(),u(await Me(e))},loadThemeSync:u,dispose:d,[Symbol.dispose]:d}}({...e,themes:t,langs:n,engine:i})}async function Ms(e){let t=await Mo(e);return{getLastGrammarState:(...e)=>(function(...e){if(2===e.length)return IU(e[1]);let[t,n,i={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=i;if(IM(a)||IR(o))throw new CQ("Plain language does not have grammar state");if("ansi"===a)throw new CQ("ANSI language does not have grammar state");let{theme:s,colorMap:l}=t.setTheme(o),u=t.getLanguage(a);return new IG(I$(n,u,s,l,i).stateStack,u.name,s.name)}
499)(t,...e),codeToTokensBase:(e,n)=>IZ(t,e,n),codeToTokensWithThemes:(e,n)=>I0(t,e,n),codeToTokens:(e,n)=>I1(t,e,n),codeToHast:(e,n)=>I4(t,e,n),codeToHtml:(e,n)=>(function(e,t,n){var i;let a={meta:{},options:n,codeToHast:(t,n)=>I4(e,t,n),codeToTokens:(t,n)=>I1(e,t,n)},o=I5(I4(e,t,n,a));for(let e of IV(n))o=(null==(i=e.postprocess)?void 0:i.call(a,o,n))||o;return o})(t,e,n),getBundledLanguages:()=>({}),getBundledThemes:()=>({}),...t,getInternalContext:()=>t}}let Ml=[{id:"abap",name:"ABAP",import:()=>n.e(77402).then(n.bind(n,77402))},{id:"actionscript-3",name:"ActionScript",import:()=>n.e(98310).then(n.bind(n,98310))},{id:"ada",name:"Ada",import:()=>n.e(21235).then(n.bind(n,21235))},{id:"angular-html",name:"Angular HTML",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(33734)]).then(n.bind(n,33734)).then(e=>e.f)},{id:"angular-ts",name:"Angular TypeScript",import:()=>Promise.all([n.e(35056),n.e(52217),n.e(55302),n.e(34702),n.e(15569),n.e(33734)]).then(n.bind(n,62245))},{id:"apache",name:"Apache Conf",import:()=>n.e(53498).then(n.bind(n,53498))},{id:"apex",name:"Apex",import:()=>n.e(23978).then(n.bind(n,23978))},{id:"apl",name:"APL",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(90492),n.e(49106)]).then(n.bind(n,49106))},{id:"applescript",name:"AppleScript",import:()=>n.e(17874).then(n.bind(n,17874))},{id:"ara",name:"Ara",import:()=>n.e(12488).then(n.bind(n,12488))},{id:"asciidoc",name:"AsciiDoc",aliases:["adoc"],import:()=>n.e(49474).then(n.bind(n,49474))},{id:"asm",name:"Assembly",import:()=>n.e(90140).then(n.bind(n,90140))},{id:"astro",name:"Astro",import:()=>Promise.all([n.e(35056),n.e(91864),n.e(62362),n.e(55302),n.e(59640)]).then(n.bind(n,59640))},{id:"awk",name:"AWK",import:()=>n.e(97881).then(n.bind(n,97881))},{id:"ballerina",name:"Ballerina",import:()=>n.e(12776).then(n.bind(n,12776))},{id:"bat",name:"Batch File",aliases:["batch"],import:()=>n.e(58043).then(n.bind(n,58043))},{id:"beancount",name:"Beancount",import:()=>n.e(71301).then(n.bind(n,71301))},{id:"berry",name:"Berry",aliases:["be"],import:()=>n.e(55973).then(n.bind(n,55973))},{id:"bibtex",name:"BibTeX",import:()=>n.e(28131).then(n.bind(n,28131))},{id:"bicep",name:"Bicep",import:()=>n.e(64711).then(n.bind(n,64711))},{id:"blade",name:"Blade",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(90492),n.e(6857),n.e(3625)]).then(n.bind(n,3625))},{id:"bsl",name:"1C (Enterprise)",aliases:["1c"],import:()=>n.e(59414).then(n.bind(n,59414))},{id:"c",name:"C",import:()=>n.e(34074).then(n.bind(n,34074))},{id:"c3",name:"C3",import:()=>n.e(33486).then(n.bind(n,33486))},{id:"cadence",name:"Cadence",aliases:["cdc"],import:()=>n.e(84811).then(n.bind(n,84811))},{id:"cairo",name:"Cairo",import:()=>Promise.all([n.e(41795),n.e(85495)]).then(n.bind(n,85495))},{id:"clarity",name:"Clarity",import:()=>n.e(88256).then(n.bind(n,88256))},{id:"clojure",name:"Clojure",aliases:["clj"],import:()=>n.e(59498).then(n.bind(n,59498))},{id:"cmake",name:"CMake",import:()=>n.e(46978).then(n.bind(n,51490))},{id:"cobol",name:"COBOL",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(90492),n.e(29310)]).then(n.bind(n,29310))},{id:"codeowners",name:"CODEOWNERS",import:()=>n.e(72953).then(n.bind(n,72953))},{id:"codeql",name:"CodeQL",aliases:["ql"],import:()=>n.e(42100).then(n.bind(n,42100))},{id:"coffee",name:"CoffeeScript",aliases:["coffeescript"],import:()=>Promise.all([n.e(35056),n.e(98415)]).then(n.bind(n,98415))},{id:"common-lisp",name:"Common Lisp",aliases:["lisp"],import:()=>n.e(41234).then(n.bind(n,41234))},{id:"coq",name:"Coq",import:()=>n.e(20190).then(n.bind(n,20190))},{id:"cpp",name:"C++",aliases:["c++"],import:()=>Promise.all([n.e(19246),n.e(6857),n.e(34074),n.e(11152)]).then(n.bind(n,25008))},{id:"crystal",name:"Crystal",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(6857),n.e(34074),n.e(8240),n.e(38797)]).then(n.bind(n,38797))},{id:"csharp",name:"C#",aliases:["c#","cs"],import:()=>n.e(72377).then(n.bind(n,72377))},{id:"css",name:"CSS",import:()=>n.e(55302).then(n.bind(n,55302))},{id:"csv",name:"CSV",import:()=>n.e(94929).then(n.bind(n,94929))},{id:"cue",name:"CUE",import:()=>n.e(16291).then(n.bind(n,16291))},{id:"cypher",name:"Cypher",aliases:["cql"],import:()=>n.e(73195).then(n.bind(n,73195))},{id:"d",name:"D",import:()=>n.e(17584).then(n.bind(n,17584))},{id:"dart",name:"Dart",import:()=>n.e(8460).then(n.bind(n,8460))},{id:"dax",name:"DAX",import:()=>n.e(37619).then(n.bind(n,37619))},{id:"desktop",name:"Desktop",import:()=>n.e(48793).then(n.bind(n,10984))},{id:"diff",name:"Diff",import:()=>n.e(54636).then(n.bind(n,54636))},{id:"docker",name:"Dockerfile",aliases:["dockerfile"],import:()=>n.e(54918).then(n.bind(n,54918))},{id:"dotenv",name:"dotEnv",import:()=>n.e(89413).then(n.bind(n,89413))},{id:"dream-maker",name:"Dream Maker",import:()=>n.e(28936).then(n.bind(n,28936))},{id:"edge",name:"Edge",import:()=>Promise.all([n.e(35056),n.e(91864),n.e(55302),n.e(34702),n.e(35845)]).then(n.bind(n,35845))},{id:"elixir",name:"Elixir",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(64621)]).then(n.bind(n,64621))},{id:"elm",name:"Elm",import:()=>Promise.all([n.e(34074),n.e(20886)]).then(n.bind(n,20886))},{id:"emacs-lisp",name:"Emacs Lisp",aliases:["elisp"],import:()=>n.e(71278).then(n.bind(n,49814))},{id:"erb",name:"ERB",import:()=>Promise.all([n.e(35056),n.e(91864),n.e(62362),n.e(21267),n.e(19246),n.e(55302),n.e(34702),n.e(90492),n.e(6857),n.e(34074),n.e(8240),n.e(4622),n.e(3490)]).then(n.bind(n,3490))},{id:"erlang",name:"Erlang",aliases:["erl"],import:()=>Promise.all([n.e(5080),n.e(18722)]).then(n.bind(n,18722))},{id:"fennel",name:"Fennel",import:()=>n.e(88188).then(n.bind(n,88188))},{id:"fish",name:"Fish",import:()=>n.e(26965).then(n.bind(n,26965))},{id:"fluent",name:"Fluent",aliases:["ftl"],import:()=>n.e(93315).then(n.bind(n,93315))},{id:"fortran-fixed-form",name:"Fortran (Fixed Form)",aliases:["f","for","f77"],import:()=>Promise.all([n.e(13165),n.e(51149)]).then(n.bind(n,51149))},{id:"fortran-free-form",name:"Fortran (Free Form)",aliases:["f90","f95","f03","f08","f18"],import:()=>n.e(13165).then(n.bind(n,13165))},{id:"fsharp",name:"F#",aliases:["f#","fs"],import:()=>Promise.all([n.e(5080),n.e(33843)]).then(n.bind(n,33843))}
499,{id:"gdresource",name:"GDResource",aliases:["tscn","tres"],import:()=>n.e(817).then(n.bind(n,817))},{id:"gdscript",name:"GDScript",aliases:["gd"],import:()=>n.e(48967).then(n.bind(n,48967))},{id:"gdshader",name:"GDShader",import:()=>n.e(5944).then(n.bind(n,5944))},{id:"genie",name:"Genie",import:()=>n.e(88602).then(n.bind(n,88602))},{id:"gherkin",name:"Gherkin",import:()=>n.e(9243).then(n.bind(n,9243))},{id:"git-commit",name:"Git Commit Message",import:()=>n.e(79545).then(n.bind(n,79545))},{id:"git-rebase",name:"Git Rebase Message",import:()=>Promise.all([n.e(8240),n.e(20594)]).then(n.bind(n,20594))},{id:"gleam",name:"Gleam",import:()=>n.e(69708).then(n.bind(n,69708))},{id:"glimmer-js",name:"Glimmer JS",aliases:["gjs"],import:()=>Promise.all([n.e(35056),n.e(91864),n.e(55302),n.e(34702),n.e(61138)]).then(n.bind(n,61138))},{id:"glimmer-ts",name:"Glimmer TS",aliases:["gts"],import:()=>Promise.all([n.e(35056),n.e(91864),n.e(55302),n.e(34702),n.e(63417)]).then(n.bind(n,63417))},{id:"glsl",name:"GLSL",import:()=>Promise.all([n.e(34074),n.e(37768)]).then(n.bind(n,37768))},{id:"gn",name:"GN",import:()=>n.e(70368).then(n.bind(n,70368))},{id:"gnuplot",name:"Gnuplot",import:()=>n.e(72614).then(n.bind(n,72614))},{id:"go",name:"Go",import:()=>n.e(90425).then(n.bind(n,90425))},{id:"graphql",name:"GraphQL",aliases:["gql"],import:()=>Promise.all([n.e(35056),n.e(91864),n.e(62362),n.e(21267),n.e(3564)]).then(n.bind(n,3564))},{id:"groovy",name:"Groovy",import:()=>n.e(80527).then(n.bind(n,80527))},{id:"hack",name:"Hack",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(6857),n.e(68992)]).then(n.bind(n,68992))},{id:"haml",name:"Ruby Haml",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(55643)]).then(n.bind(n,55643))},{id:"handlebars",name:"Handlebars",aliases:["hbs"],import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(66427)]).then(n.bind(n,66427))},{id:"haskell",name:"Haskell",aliases:["hs"],import:()=>n.e(81041).then(n.bind(n,81041))},{id:"haxe",name:"Haxe",import:()=>n.e(60747).then(n.bind(n,60747))},{id:"hcl",name:"HashiCorp HCL",import:()=>n.e(75412).then(n.bind(n,75412))},{id:"hjson",name:"Hjson",import:()=>n.e(76131).then(n.bind(n,76131))},{id:"hlsl",name:"HLSL",import:()=>n.e(53516).then(n.bind(n,53516))},{id:"html",name:"HTML",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702)]).then(n.bind(n,34702))},{id:"html-derivative",name:"HTML (Derivative)",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(32132)]).then(n.bind(n,32132))},{id:"http",name:"HTTP",import:()=>Promise.all([n.e(35056),n.e(91864),n.e(62362),n.e(21267),n.e(90492),n.e(8240),n.e(13766)]).then(n.bind(n,13766))},{id:"hurl",name:"Hurl",import:()=>Promise.all([n.e(35056),n.e(91864),n.e(62362),n.e(21267),n.e(90492),n.e(39278)]).then(n.bind(n,39278))},{id:"hxml",name:"HXML",import:()=>n.e(7661).then(n.bind(n,7661))},{id:"hy",name:"Hy",import:()=>n.e(61944).then(n.bind(n,61944))},{id:"imba",name:"Imba",import:()=>n.e(39643).then(n.bind(n,39643))},{id:"ini",name:"INI",aliases:["properties"],import:()=>n.e(78100).then(n.bind(n,78100))},{id:"java",name:"Java",import:()=>n.e(90492).then(n.bind(n,90492))},{id:"javascript",name:"JavaScript",aliases:["js","cjs","mjs"],import:()=>n.e(35056).then(n.bind(n,13342))},{id:"jinja",name:"Jinja",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(52278)]).then(n.bind(n,52278))},{id:"jison",name:"Jison",import:()=>Promise.all([n.e(35056),n.e(77637)]).then(n.bind(n,77637))},{id:"json",name:"JSON",import:()=>n.e(29098).then(n.bind(n,29098))},{id:"json5",name:"JSON5",import:()=>n.e(94917).then(n.bind(n,94917))},{id:"jsonc",name:"JSON with Comments",import:()=>n.e(8580).then(n.bind(n,8580))},{id:"jsonl",name:"JSON Lines",import:()=>n.e(25237).then(n.bind(n,25237))},{id:"jsonnet",name:"Jsonnet",import:()=>n.e(20825).then(n.bind(n,20825))},{id:"jssm",name:"JSSM",aliases:["fsl"],import:()=>n.e(95698).then(n.bind(n,95698))},{id:"jsx",name:"JSX",import:()=>n.e(21267).then(n.bind(n,4389))},{id:"julia",name:"Julia",aliases:["jl"],import:()=>Promise.all([n.e(35056),n.e(19246),n.e(6857),n.e(34074),n.e(41795),n.e(86195)]).then(n.bind(n,37716))},{id:"kdl",name:"KDL",import:()=>n.e(92954).then(n.bind(n,92954))},{id:"kotlin",name:"Kotlin",aliases:["kt","kts"],import:()=>n.e(8843).then(n.bind(n,8843))},{id:"kusto",name:"Kusto",aliases:["kql"],import:()=>n.e(92728).then(n.bind(n,92728))},{id:"latex",name:"LaTeX",import:()=>n.e(28109).then(n.bind(n,28109))},{id:"lean",name:"Lean 4",aliases:["lean4"],import:()=>n.e(15107).then(n.bind(n,15107))},{id:"less",name:"Less",import:()=>n.e(60282).then(n.bind(n,60282))},{id:"liquid",name:"Liquid",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(82898)]).then(n.bind(n,82898))},{id:"llvm",name:"LLVM IR",import:()=>n.e(76362).then(n.bind(n,76362))},{id:"log",name:"Log file",import:()=>n.e(14340).then(n.bind(n,14340))},{id:"logo",name:"Logo",import:()=>n.e(46839).then(n.bind(n,46839))},{id:"lua",name:"Lua",import:()=>Promise.all([n.e(34074),n.e(36888)]).then(n.bind(n,36888))}
499,{id:"luau",name:"Luau",import:()=>n.e(28234).then(n.bind(n,28234))},{id:"make",name:"Makefile",aliases:["makefile"],import:()=>n.e(63554).then(n.bind(n,63554))},{id:"markdown",name:"Markdown",aliases:["md"],import:()=>n.e(5080).then(n.bind(n,5080))},{id:"marko",name:"Marko",import:()=>Promise.all([n.e(91864),n.e(55302),n.e(15569),n.e(60282),n.e(35760)]).then(n.bind(n,35760))},{id:"matlab",name:"MATLAB",import:()=>n.e(90223).then(n.bind(n,90223))},{id:"mdc",name:"MDC",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(5080),n.e(10935)]).then(n.bind(n,10935))},{id:"mdx",name:"MDX",import:()=>n.e(77796).then(n.bind(n,77796))},{id:"mermaid",name:"Mermaid",aliases:["mmd"],import:()=>n.e(83893).then(n.bind(n,83893))},{id:"mipsasm",name:"MIPS Assembly",aliases:["mips"],import:()=>n.e(98206).then(n.bind(n,98206))},{id:"mojo",name:"Mojo",import:()=>n.e(62954).then(n.bind(n,62954))},{id:"moonbit",name:"MoonBit",aliases:["mbt","mbti"],import:()=>n.e(65039).then(n.bind(n,65039))},{id:"move",name:"Move",import:()=>n.e(74914).then(n.bind(n,74914))},{id:"narrat",name:"Narrat Language",aliases:["nar"],import:()=>n.e(29172).then(n.bind(n,29172))},{id:"nextflow",name:"Nextflow",aliases:["nf"],import:()=>n.e(39571).then(n.bind(n,39571))},{id:"nginx",name:"Nginx",import:()=>Promise.all([n.e(34074),n.e(17845)]).then(n.bind(n,17845))},{id:"nim",name:"Nim",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(90492),n.e(34074),n.e(5080),n.e(76443)]).then(n.bind(n,76443))},{id:"nix",name:"Nix",import:()=>n.e(33572).then(n.bind(n,33572))},{id:"nushell",name:"nushell",aliases:["nu"],import:()=>n.e(2174).then(n.bind(n,2174))},{id:"objective-c",name:"Objective-C",aliases:["objc"],import:()=>n.e(13760).then(n.bind(n,13760))},{id:"objective-cpp",name:"Objective-C++",import:()=>n.e(63243).then(n.bind(n,65247))},{id:"ocaml",name:"OCaml",import:()=>n.e(21954).then(n.bind(n,21954))},{id:"odin",name:"Odin",import:()=>n.e(83910).then(n.bind(n,83910))},{id:"openscad",name:"OpenSCAD",aliases:["scad"],import:()=>n.e(77180).then(n.bind(n,77180))},{id:"pascal",name:"Pascal",import:()=>n.e(33147).then(n.bind(n,33147))},{id:"perl",name:"Perl",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(90492),n.e(6857),n.e(12506)]).then(n.bind(n,12506))},{id:"php",name:"PHP",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(90492),n.e(6857),n.e(18247),n.e(91523)]).then(n.bind(n,18247))},{id:"pkl",name:"Pkl",import:()=>n.e(1357).then(n.bind(n,1357))},{id:"plsql",name:"PL/SQL",import:()=>n.e(21316).then(n.bind(n,21316))},{id:"po",name:"Gettext PO",aliases:["pot","potx"],import:()=>n.e(4944).then(n.bind(n,4944))},{id:"polar",name:"Polar",import:()=>n.e(87684).then(n.bind(n,87684))},{id:"postcss",name:"PostCSS",import:()=>n.e(42162).then(n.bind(n,42162))},{id:"powerquery",name:"PowerQuery",import:()=>n.e(28054).then(n.bind(n,28054))},{id:"powershell",name:"PowerShell",aliases:["ps","ps1"],import:()=>n.e(7514).then(n.bind(n,7514))},{id:"prisma",name:"Prisma",import:()=>n.e(74978).then(n.bind(n,74978))},{id:"prolog",name:"Prolog",import:()=>n.e(60422).then(n.bind(n,60422))},{id:"proto",name:"Protocol Buffer 3",aliases:["protobuf"],import:()=>n.e(48356).then(n.bind(n,48356))},{id:"pug",name:"Pug",aliases:["jade"],import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(65958)]).then(n.bind(n,65958))},{id:"puppet",name:"Puppet",import:()=>n.e(57025).then(n.bind(n,57025))},{id:"purescript",name:"PureScript",import:()=>n.e(78828).then(n.bind(n,78828))},{id:"python",name:"Python",aliases:["py"],import:()=>n.e(41795).then(n.bind(n,41795))},{id:"qml",name:"QML",import:()=>Promise.all([n.e(35056),n.e(53459)]).then(n.bind(n,53459))},{id:"qmldir",name:"QML Directory",import:()=>n.e(42525).then(n.bind(n,42525))},{id:"qss",name:"Qt Style Sheets",import:()=>n.e(26093).then(n.bind(n,26093))},{id:"r",name:"R",import:()=>n.e(51161).then(n.bind(n,51161))},{id:"racket",name:"Racket",import:()=>n.e(9645).then(n.bind(n,9645))},{id:"raku",name:"Raku",aliases:["perl6"],import:()=>n.e(53101).then(n.bind(n,53101))},{id:"razor",name:"ASP.NET Razor",import:()=>
499Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(72377),n.e(21870)]).then(n.bind(n,21870))},{id:"reg",name:"Windows Registry Script",import:()=>n.e(79665).then(n.bind(n,79665))},{id:"regexp",name:"RegExp",aliases:["regex"],import:()=>n.e(74706).then(n.bind(n,74706))},{id:"rel",name:"Rel",import:()=>n.e(57173).then(n.bind(n,57173))},{id:"riscv",name:"RISC-V",import:()=>n.e(85784).then(n.bind(n,85784))},{id:"ron",name:"RON",import:()=>n.e(94256).then(n.bind(n,94256))},{id:"rosmsg",name:"ROS Interface",import:()=>n.e(92549).then(n.bind(n,92549))},{id:"rst",name:"reStructuredText",import:()=>Promise.all([n.e(35056),n.e(91864),n.e(62362),n.e(21267),n.e(19246),n.e(55302),n.e(34702),n.e(90492),n.e(6857),n.e(34074),n.e(8240),n.e(41795),n.e(4622),n.e(5924)]).then(n.bind(n,5924))},{id:"ruby",name:"Ruby",aliases:["rb"],import:()=>Promise.all([n.e(35056),n.e(91864),n.e(62362),n.e(21267),n.e(19246),n.e(55302),n.e(34702),n.e(90492),n.e(6857),n.e(34074),n.e(8240),n.e(4622)]).then(n.bind(n,8457))},{id:"rust",name:"Rust",aliases:["rs"],import:()=>n.e(33710).then(n.bind(n,33710))},{id:"sas",name:"SAS",import:()=>Promise.all([n.e(6857),n.e(22098)]).then(n.bind(n,22098))},{id:"sass",name:"Sass",import:()=>n.e(39284).then(n.bind(n,39284))},{id:"scala",name:"Scala",import:()=>n.e(91652).then(n.bind(n,91652))},{id:"scheme",name:"Scheme",import:()=>n.e(46662).then(n.bind(n,46662))},{id:"scss",name:"SCSS",import:()=>Promise.all([n.e(55302),n.e(15569)]).then(n.bind(n,15569))},{id:"sdbl",name:"1C (Query)",aliases:["1c-query"],import:()=>n.e(57779).then(n.bind(n,57779))},{id:"shaderlab",name:"ShaderLab",aliases:["shader"],import:()=>n.e(72081).then(n.bind(n,72081))},{id:"shellscript",name:"Shell",aliases:["bash","sh","shell","zsh"],import:()=>n.e(8240).then(n.bind(n,8240))},{id:"shellsession",name:"Shell Session",aliases:["console"],import:()=>Promise.all([n.e(8240),n.e(83214)]).then(n.bind(n,83214))},{id:"smalltalk",name:"Smalltalk",import:()=>n.e(93932).then(n.bind(n,93932))},{id:"solidity",name:"Solidity",import:()=>n.e(51258).then(n.bind(n,51258))},{id:"soy",name:"Closure Templates",aliases:["closure-templates"],import:()=>Promise.all([n.e(35056),n.e(55302),n.e(34702),n.e(421)]).then(n.bind(n,421))},{id:"sparql",name:"SPARQL",import:()=>n.e(3506).then(n.bind(n,3506))},{id:"splunk",name:"Splunk Query Language",aliases:["spl"],import:()=>n.e(13984).then(n.bind(n,13984))},{id:"sql",name:"SQL",import:()=>n.e(6857).then(n.bind(n,6857))},{id:"ssh-config",name:"SSH Config",import:()=>n.e(29756).then(n.bind(n,29756))},{id:"stata",name:"Stata",import:()=>Promise.all([n.e(6857),n.e(2440)]).then(n.bind(n,2440))},{id:"stylus",name:"Stylus",aliases:["styl"],import:()=>n.e(88889).then(n.bind(n,88889))},{id:"surrealql",name:"SurrealQL",aliases:["surql"],import:()=>Promise.all([n.e(35056),n.e(16668)]).then(n.bind(n,16668))},{id:"svelte",name:"Svelte",import:()=>Promise.all([n.e(35056),n.e(91864),n.e(55302),n.e(41770)]).then(n.bind(n,41770))},{id:"swift",name:"Swift",import:()=>n.e(69918).then(n.bind(n,69918))},{id:"system-verilog",name:"SystemVerilog",import:()=>n.e(83238).then(n.bind(n,83238))},{id:"systemd",name:"Systemd Units",import:()=>n.e(89571).then(n.bind(n,89571))},{id:"talonscript",name:"TalonScript",aliases:["talon"],import:()=>n.e(64530).then(n.bind(n,64530))},{id:"tasl",name:"Tasl",import:()=>n.e(79132).then(n.bind(n,79132))},{id:"tcl",name:"Tcl",import:()=>n.e(1961).then(n.bind(n,1961))},{id:"templ",name:"Templ",import:()=>Promise.all([n.e(35056),n.e(55302),n.e(90425),n.e(9898)]).then(n.bind(n,9898))},{id:"terraform",name:"Terraform",aliases:["tf","tfvars"],import:()=>n.e(80414).then(n.bind(n,80414))}
499,{id:"tex",name:"TeX",import:()=>n.e(70922).then(n.bind(n,70922))},{id:"toml",name:"TOML",import:()=>n.e(93451).then(n.bind(n,93451))},{id:"ts-tags",name:"TypeScript with Tags",aliases:["lit"],import:()=>Promise.all([n.e(35056),n.e(91864),n.e(55302),n.e(34702),n.e(90492),n.e(6857),n.e(34074),n.e(46638)]).then(n.bind(n,46638))},{id:"tsv",name:"TSV",import:()=>n.e(52567).then(n.bind(n,52567))},{id:"tsx",name:"TSX",import:()=>n.e(62362).then(n.bind(n,33716))},{id:"turtle",name:"Turtle",import:()=>n.e(30973).then(n.bind(n,30973))},{id:"twig",name:"Twig",import:()=>Promise.all([n.e(35056),n.e(91864),n.e(62362),n.e(21267),n.e(19246),n.e(55302),n.e(34702),n.e(90492),n.e(6857),n.e(34074),n.e(8240),n.e(41795),n.e(15569),n.e(4622),n.e(18247),n.e(18660)]).then(n.bind(n,18660))},{id:"typescript",name:"TypeScript",aliases:["ts","cts","mts"],import:()=>n.e(91864).then(n.bind(n,91948))},{id:"typespec",name:"TypeSpec",aliases:["tsp"],import:()=>n.e(96644).then(n.bind(n,96644))},{id:"typst",name:"Typst",aliases:["typ"],import:()=>n.e(44583).then(n.bind(n,44583))}
499,{id:"v",name:"V",import:()=>n.e(94474).then(n.bind(n,94474))},{id:"vala",name:"Vala",import:()=>n.e(24219).then(n.bind(n,24219))},{id:"vb",name:"Visual Basic",aliases:["cmd"],import:()=>n.e(37696).then(n.bind(n,37696))},{id:"verilog",name:"Verilog",import:()=>n.e(52841).then(n.bind(n,52841))},{id:"vhdl",name:"VHDL",import:()=>n.e(49056).then(n.bind(n,49056))},{id:"viml",name:"Vim Script",aliases:["vim","vimscript"],import:()=>n.e(5293).then(n.bind(n,5293))},{id:"vue",name:"Vue",import:()=>Promise.all([n.e(35056),n.e(91864),n.e(55302),n.e(34702),n.e(28890)]).then(n.bind(n,28890))},{id:"vue-html",name:"Vue HTML",import:()=>Promise.all([n.e(35056),n.e(79534)]).then(n.bind(n,79534))},{id:"vue-vine",name:"Vue Vine",import:()=>Promise.all([n.e(35056),n.e(53554),n.e(55302),n.e(15569),n.e(60282),n.e(13457)]).then(n.bind(n,92137))},{id:"vyper",name:"Vyper",aliases:["vy"],import:()=>n.e(83561).then(n.bind(n,83561))},{id:"wasm",name:"WebAssembly",import:()=>n.e(17516).then(n.bind(n,17516))},{id:"wenyan",name:"Wenyan",aliases:["文言"],import:()=>n.e(4761).then(n.bind(n,4761))},{id:"wgsl",name:"WGSL",import:()=>n.e(20165).then(n.bind(n,20165))},{id:"wikitext",name:"Wikitext",aliases:["mediawiki","wiki"],import:()=>n.e(57594).then(n.bind(n,57594))},{id:"wit",name:"WebAssembly Interface Types",import:()=>n.e(25231).then(n.bind(n,25231))},{id:"wolfram",name:"Wolfram",aliases:["wl"],import:()=>n.e(76276).then(n.bind(n,10858))},{id:"xml",name:"XML",import:()=>Promise.all([n.e(90492),n.e(67946)]).then(n.bind(n,91523))},{id:"xsl",name:"XSL",import:()=>Promise.all([n.e(90492),n.e(78889)]).then(n.bind(n,78889))},{id:"yaml",name:"YAML",aliases:["yml"],import:()=>n.e(30281).then(n.bind(n,30281))},{id:"zenscript",name:"ZenScript",import:()=>n.e(54075).then(n.bind(n,54075))},{id:"zig",name:"Zig",import:()=>n.e(59202).then(n.bind(n,59202))}],Mu=Object.fromEntries(Ml.map(e=>[e.id,e.import])),Mc=Object.fromEntries(Ml.flatMap(e=>{var t;return(null==(t=e.aliases)?void 0:t.map(t=>[t,e.import]))||[]})),Md={...Mu,...Mc},Mp=Object.fromEntries([{id:"andromeeda",displayName:"Andromeeda",type:"dark",import:()=>n.e(80354).then(n.bind(n,80354))},{id:"aurora-x",displayName:"Aurora X",type:"dark",import:()=>n.e(45306).then(n.bind(n,17924))},{id:"ayu-dark",displayName:"Ayu Dark",type:"dark",import:()=>n.e(60427).then(n.bind(n,60427))},{id:"ayu-light",displayName:"Ayu Light",type:"light",import:()=>n.e(12852).then(n.bind(n,12852))},{id:"ayu-mirage",displayName:"Ayu Mirage",type:"dark",import:()=>n.e(63457).then(n.bind(n,63457))},{id:"catppuccin-frappe",displayName:"Catppuccin Frapp\xe9",type:"dark",import:()=>n.e(13789).then(n.bind(n,13789))},{id:"catppuccin-latte",displayName:"Catppuccin Latte",type:"light",import:()=>n.e(32869).then(n.bind(n,32869))},{id:"catppuccin-macchiato",displayName:"Catppuccin Macchiato",type:"dark",import:()=>n.e(29408).then(n.bind(n,29408))},{id:"catppuccin-mocha",displayName:"Catppuccin Mocha",type:"dark",import:()=>n.e(81475).then(n.bind(n,81475))},{id:"dark-plus",displayName:"Dark Plus",type:"dark",import:()=>n.e(86314).then(n.bind(n,86314))},{id:"dracula",displayName:"Dracula Theme",type:"dark",import:()=>n.e(16632).then(n.bind(n,16632))},{id:"dracula-soft",displayName:"Dracula Theme Soft",type:"dark",import:()=>n.e(61573).then(n.bind(n,61573))},{id:"everforest-dark",displayName:"Everforest Dark",type:"dark",import:()=>n.e(82196).then(n.bind(n,82196))},{id:"everforest-light",displayName:"Everforest Light",type:"light",import:()=>n.e(61796).then(n.bind(n,61796))},{id:"github-dark",displayName:"GitHub Dark",type:"dark",import:()=>n.e(25015).then(n.bind(n,25015))},{id:"github-dark-default",displayName:"GitHub Dark Default",type:"dark",import:()=>n.e(69711).then(n.bind(n,69711))},{id:"github-dark-dimmed",displayName:"GitHub Dark Dimmed",type:"dark",import:()=>n.e(8449).then(n.bind(n,8449))},{id:"github-dark-high-contrast",displayName:"GitHub Dark High Contrast",type:"dark",import:()=>n.e(84585).then(n.bind(n,20270))},{id:"github-light",displayName:"GitHub Light",type:"light",import:()=>n.e(78051).then(n.bind(n,78051))},{id:"github-light-default",displayName:"GitHub Light Default",type:"light",import:()=>n.e(91054).then(n.bind(n,91054))},{id:"github-light-high-contrast",displayName:"GitHub Light High Contrast",type:"light",import:()=>n.e(59758).then(n.bind(n,59758))},{id:"gruvbox-dark-hard",displayName:"Gruvbox Dark Hard",type:"dark",import:()=>n.e(7450).then(n.bind(n,7450))},{id:"gruvbox-dark-medium",displayName:"Gruvbox Dark Medium",type:"dark",import:()=>n.e(85598).then(n.bind(n,85598))},{id:"gruvbox-dark-soft",displayName:"Gruvbox Dark Soft",type:"dark",import:()=>n.e(18026).then(n.bind(n,18026))},{id:"gruvbox-light-hard",displayName:"Gruvbox Light Hard",type:"light",import:()=>n.e(62074).then(n.bind(n,62074))},{id:"gruvbox-light-medium",displayName:"Gruvbox Light Medium",type:"light",import:()=>n.e(31737).then(n.bind(n,31737))},{id:"gruvbox-light-soft",displayName:"Gruvbox Light Soft",type:"light",import:()=>n.e(51297).then(n.bind(n,51297))},{id:"horizon",displayName:"Horizon",type:"dark",import:()=>n.e(45059).then(n.bind(n,45059))},{id:"houston",displayName:"Houston",type:"dark",import:()=>n.e(33488).then(n.bind(n,33488))},{id:"kanagawa-dragon",displayName:"Kanagawa Dragon",type:"dark",import:()=>n.e(76622).then(n.bind(n,76622))},{id:"kanagawa-lotus",displayName:"Kanagawa Lotus",type:"light",import:()=>n.e(4670).then(n.bind(n,4670))},{id:"kanagawa-wave",displayName:"Kanagawa Wave",type:"dark",import:()=>n.e(46301).then(n.bind(n,46301))},{id:"laserwave",displayName:"LaserWave",type:"dark",import:()=>n.e(20572).then(n.bind(n,20572))},{id:"light-plus",displayName:"Light Plus",type:"light",import:()=>n.e(22831).then(n.bind(n,22831))},{id:"material-theme",displayName:"Material Theme",type:"dark",import:()=>n.e(99049).then(n.bind(n,99049))},{id:"material-theme-darker",displayName:"Material Theme Darker",type:"dark",import:()=>n.e(57082).then(n.bind(n,57082))},{id:"material-theme-lighter",displayName:"Material Theme Lighter",type:"light",import:()=>n.e(877).then(n.bind(n,877))},{id:"material-theme-ocean",displayName:"Material Theme Ocean",type:"dark",import:()=>n.e(18117).then(n.bind(n,18117))},{id:"material-theme-palenight",displayName:"Material Theme Palenight",type:"dark",import:()=>n.e(40265).then(n.bind(n,40265))},{id:"min-dark",displayName:"Min Dark",type:"dark",import:()=>n.e(79128).then(n.bind(n,79128))},{id:"min-light",displayName:"Min Light",type:"light",import:()=>n.e(66101).then(n.bind(n,66101))},{id:"monokai",displayName:"Monokai",type:"dark",import:()=>n.e(84650).then(n.bind(n,84650))},{id:"night-owl",displayName:"Night Owl",type:"dark",import:()=>n.e(3082).then(n.bind(n,3082))},{id:"night-owl-light",displayName:"Night Owl Light",type:"light",import:()=>n.e(40484).then(n.bind(n,40484))},{id:"nord",displayName:"Nord",type:"dark",import:()=>n.e(89109).then(n.bind(n,89109))},{id:"one-dark-pro",displayName:"One Dark Pro",type:"dark",import:()=>n.e(77694).then(n.bind(n,77694))},{id:"one-light",displayName:"One Light",type:"light",import:()=>n.e(51678).then(n.bind(n,51678))},{id:"plastic",displayName:"Plastic",type:"dark",import:()=>n.e(28570).then(n.bind(n,28570))},{id:"poimandres",displayName:"Poimandres",type:"dark",import:()=>n.e(13479).then(n.bind(n,13479))},{id:"red",displayName:"Red",type:"dark",import:()=>n.e(91950).then(n.bind(n,91950))},{id:"rose-pine",displayName:"Ros\xe9 Pine",type:"dark",import:()=>n.e(77259).then(n.bind(n,77259))},{id:"rose-pine-dawn",displayName:"Ros\xe9 Pine Dawn",type:"light",import:()=>n.e(96288).then(n.bind(n,96288))},{id:"rose-pine-moon",displayName:"Ros\xe9 Pine Moon",type:"dark",import:()=>n.e(59560).then(n.bind(n,59560))},{id:"slack-dark",displayName:"Slack Dark",type:"dark",import:()=>n.e(30816).then(n.bind(n,30816))},{id:"slack-ochin",displayName:"Slack Ochin",type:"light",import:()=>n.e(71120).then(n.bind(n,71120))},{id:"snazzy-light",displayName:"Snazzy Light",type:"light",import:()=>n.e(78573).then(n.bind(n,78573))},{id:"solarized-dark",displayName:"Solarized Dark",type:"dark",import:()=>n.e(53356).then(n.bind(n,53356))},{id:"solarized-light",displayName:"Solarized Light",type:"light",import:()=>n.e(85028).then(n.bind(n,85028))}
499,{id:"synthwave-84",displayName:"Synthwave '84",type:"dark",import:()=>n.e(91566).then(n.bind(n,18700))},{id:"tokyo-night",displayName:"Tokyo Night",type:"dark",import:()=>n.e(91510).then(n.bind(n,91510))},{id:"vesper",displayName:"Vesper",type:"dark",import:()=>n.e(31986).then(n.bind(n,31986))},{id:"vitesse-black",displayName:"Vitesse Black",type:"dark",import:()=>n.e(3940).then(n.bind(n,3940))},{id:"vitesse-dark",displayName:"Vitesse Dark",type:"dark",import:()=>n.e(90944).then(n.bind(n,90944))},{id:"vitesse-light",displayName:"Vitesse Light",type:"light",import:()=>n.e(8840).then(n.bind(n,8840))}].map(e=>[e.id,e.import]));class Mh extends Error{constructor(e){super(e),this.name="ShikiError"}}function Mm(){return"u">typeof performance?performance.now():Date.now()}let Mf=(e,t)=>e+(t-e%t)%t;async function Mg(e){let t,n;let i={};function a(e){n=e,i.HEAPU8=new Uint8Array(e),i.HEAPU32=new Uint32Array(e)}let o="u">typeof TextDecoder?new TextDecoder("utf8"):void 0;function s(e,t){return e?function(e,t,n=1024){let i=t+n,a=t;for(;e[a]&&!(a>=i);)++a;if(a-t>16&&e.buffer&&o)return o.decode(e.subarray(t,a));let s="";for(;t<a;){let n=e[t++];if(!(128&n)){s+=String.fromCharCode(n);continue}let i=63&e[t++];if((224&n)==192){s+=String.fromCharCode((31&n)<<6|i);continue}let a=63&e[t++];if((n=(240&n)==224?(15&n)<<12|i<<6|a:(7&n)<<18|i<<12|a<<6|63&e[t++])<65536)s+=String.fromCharCode(n);else{let e=n-65536;s+=String.fromCharCode(55296|e>>10,56320|1023&e)}}return s}(i.HEAPU8,e,t):""}let l={emscripten_get_now:Mm,emscripten_memcpy_big:function(e,t,n){i.HEAPU8.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){let o=i.HEAPU8.length;if((e>>>=0)>2147483648)return!1;for(let i=1;i<=4;i*=2){let s=o*(1+.2/i);if(s=Math.min(s,e+100663296),function(e){try{return t.grow(e-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}(Math.min(2147483648,Mf(Math.max(e,s),65536))))return!0}return!1},fd_write:()=>0};async function u(){let n=await e({env:l,wasi_snapshot_preview1:l});a((t=n.memory).buffer),Object.assign(i,n),i.UTF8ToString=s}return await u(),i}var Mx=Object.defineProperty,Mv=(e,t,n)=>t in e?Mx(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,My=(e,t,n)=>Mv(e,"symbol"!=typeof t?t+"":t,n);let Mb=null;class Mw{constructor(e){My(this,"utf16Length"),My(this,"utf8Length"),My(this,"utf16Value"),My(this,"utf8Value"),My(this,"utf16OffsetToUtf8"),My(this,"utf8OffsetToUtf16");let t=e.length,n=Mw._utf8ByteLength(e),i=n!==t,a=i?new Uint32Array(t+1):null;i&&(a[t]=n);let o=i?new Uint32Array(n+1):null;i&&(o[n]=t);let s=new Uint8Array(n),l=0;for(let n=0;n<t;n++){let u=e.charCodeAt(n),c=u,d=!1;if(u>=55296&&u<=56319&&n+1<t){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(c=(u-55296<<10)+65536|t-56320,d=!0)}i&&(a[n]=l,d&&(a[n+1]=l),c<=127?o[l+0]=n:c<=2047?(o[l+0]=n,o[l+1]=n):c<=65535?(o[l+0]=n,o[l+1]=n,o[l+2]=n):(o[l+0]=n,o[l+1]=n,o[l+2]=n,o[l+3]=n)),c<=127?s[l++]=c:(c<=2047?s[l++]=192|(1984&c)>>>6:(c<=65535?s[l++]=224|(61440&c)>>>12:(s[l++]=240|(1835008&c)>>>18,s[l++]=128|(258048&c)>>>12),s[l++]=128|(4032&c)>>>6),s[l++]=128|(63&c)>>>0),d&&n++}this.utf16Length=t,this.utf8Length=n,this.utf16Value=e,this.utf8Value=s,this.utf16OffsetToUtf8=a,this.utf8OffsetToUtf16=o}static _utf8ByteLength(e){let t=0;for(let n=0,i=e.length;n<i;n++){let a=e.charCodeAt(n),o=a,s=!1;if(a>=55296&&a<=56319&&n+1<i){let t=e.charCodeAt(n+1);t>=56320&&t<=57343&&(o=(a-55296<<10)+65536|t-56320,s=!0)}o<=127?t+=1:o<=2047?t+=2:o<=65535?t+=3:t+=4,s&&n++}return t}createString(e){let t=e.omalloc(this.utf8Length);return e.HEAPU8.set(this.utf8Value,t),t}}let Mk=class e{constructor(t){if(My(this,"id",++e.LAST_ID),My(this,"_onigBinding"),My(this,"content"),My(this,"utf16Length"),My(this,"utf8Length"),My(this,"utf16OffsetToUtf8"),My(this,"utf8OffsetToUtf16"),My(this,"ptr"),!Mb)throw new Mh("Must invoke loadWasm first.");this._onigBinding=Mb,this.content=t;let n=new Mw(t);this.utf16Length=n.utf16Length,this.utf8Length=n.utf8Length,this.utf16OffsetToUtf8=n.utf16OffsetToUtf8,this.utf8OffsetToUtf16=n.utf8OffsetToUtf16,this.utf8Length<1e4&&!e._sharedPtrInUse?(e._sharedPtr||(e._sharedPtr=Mb.omalloc(1e4)),e._sharedPtrInUse=!0,Mb.HEAPU8.set(n.utf8Value,e._sharedPtr),this.ptr=e._sharedPtr):this.ptr=n.createString(Mb)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===e._sharedPtr?e._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};My(Mk,"LAST_ID",0),My(Mk,"_sharedPtr",0),My(Mk,"_sharedPtrInUse",!1);class M_{constructor(e){if(My(this,"_onigBinding"),My(this,"_ptr"),!Mb)throw new Mh("Must invoke loadWasm first.");let t=[],n=[];for(let i=0,a=e.length;i<a;i++){let a=new Mw(e[i]);t[i]=a.createString(Mb),n[i]=a.utf8Length}let i=Mb.omalloc(4*e.length);Mb.HEAPU32.set(t,i/4);let a=Mb.omalloc(4*e.length);Mb.HEAPU32.set(n,a/4);let o=Mb.createOnigScanner(i,a,e.length);for(let n=0,i=e.length;n<i;n++)Mb.ofree(t[n]);Mb.ofree(a),Mb.ofree(i),0===o&&function(e){throw new Mh(e.UTF8ToString(e.getLastO
499nigError()))}(Mb),this._onigBinding=Mb,this._ptr=o}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(e,t,n){let i=0;if("number"==typeof n&&(i=n),"string"==typeof e){e=new Mk(e);let n=this._findNextMatchSync(e,t,!1,i);return e.dispose(),n}return this._findNextMatchSync(e,t,!1,i)}_findNextMatchSync(e,t,n,i){let a=this._onigBinding,o=a.findNextOnigScannerMatch(this._ptr,e.id,e.ptr,e.utf8Length,e.convertUtf16OffsetToUtf8(t),i);if(0===o)return null;let s=a.HEAPU32,l=o/4,u=s[l++],c=s[l++],d=[];for(let t=0;t<c;t++){let n=e.convertUtf8OffsetToUtf16(s[l++]),i=e.convertUtf8OffsetToUtf16(s[l++]);d[t]={start:n,end:i,length:i-n}}return{index:u,captureIndices:d}}}function MT(e){return t=>WebAssembly.instantiate(e,t)}async function ME(e){return e&&await (o||(o=async function(){Mb=await Mg(async t=>{var n,i,a,o,s;let l=e;return"function"==typeof(l=await l)&&(l=await l(t)),"function"==typeof l&&(l=await l(t)),"function"==typeof l.instantiator?l=await l.instantiator(t):"function"==typeof l.default?l=await l.default(t):("u">typeof l.data&&(l=l.data),(n=l,"u">typeof Response&&n instanceof Response)?"function"==typeof WebAssembly.instantiateStreaming?l=await (o=l,e=>WebAssembly.instantiateStreaming(o,e))(t):l=await (s=l,async e=>{let t=await s.arrayBuffer();return WebAssembly.instantiate(t,e)})(t):(i=l,"u">typeof ArrayBuffer&&(i instanceof ArrayBuffer||ArrayBuffer.isView(i))||"u">typeof D&&(null==(a=D.isBuffer)?void 0:a.call(D,i))||"u">typeof SharedArrayBuffer&&i instanceof SharedArrayBuffer||"u">typeof Uint32Array&&i instanceof Uint32Array)?l=await MT(l)(t):l instanceof WebAssembly.Module?l=await MT(l)(t):"default"in l&&l.default instanceof WebAssembly.Module&&(l=await MT(l.default)(t))),"instance"in l&&(l=l.instance),"exports"in l&&(l=l.exports),l})}())),{createScanner:e=>new M_(e.map(e=>"string"==typeof e?e:e.source)),createString:e=>new Mk(e)}}let MS=function(e){let t=e.langs,n=e.themes,i=e.engine;return async function(e){function a(n){var i;if("string"==typeof n){if(IP(n=(null==(i=e.langAlias)?void 0:i[n])||n))return[];let a=t[n];if(!a)throw new CQ(`Language \`${n}\` is not included in this bundle. You may want to load it from external source.`);return a}return n}function o(e){if(IR(e))return"none";if("string"==typeof e){let t=n[e];if(!t)throw new CQ(`Theme \`${e}\` is not included in this bundle. You may want to load it from external source.`);return t}return e}let s=(e.themes??[]).map(e=>o(e)),l=(e.langs??[]).map(e=>a(e)),u=await Ms({engine:e.engine??i(),...e,themes:s,langs:l});return{...u,loadLanguage:(...e)=>u.loadLanguage(...e.map(a)),loadTheme:(...e)=>u.loadTheme(...e.map(o)),getBundledLanguages:()=>t,getBundledThemes:()=>n}}}({langs:Md,themes:Mp,engine:()=>ME(n.e(762).then(n.bind(n,66871)))}),{codeToHtml:MA}=function(e,t){let n;let i=async function(t={}){if(n){let e=await n;return await Promise.all([e.loadTheme(...t.themes||[]),e.loadLanguage(...t.langs||[])]),e}{n=e({...t,themes:[],langs:[]});let i=await n;return await Promise.all([i.loadTheme(...t.themes||[]),i.loadLanguage(...t.langs||[])]),i}};async function a(e,n){var a;let o=await i({langs:[n.lang],themes:"theme"in n?[n.theme]:Object.values(n.themes)}),s=await (null==(a=null==t?void 0:t.guessEmbeddedLanguages)?void 0:a.call(t,e,n.lang,o));return s&&await o.loadLanguage(...s),o}return{getSingletonHighlighter:e=>i(e),codeToHtml:async(e,t)=>(await a(e,t)).codeToHtml(e,t),codeToHast:async(e,t)=>(await a(e,t)).codeToHast(e,t),codeToTokens:async(e,t)=>(await a(e,t)).codeToTokens(e,t),codeToTokensBase:async(e,t)=>(await a(e,t)).codeToTokensBase(e,t),codeToTokensWithThemes:async(e,t)=>(await a(e,t)).codeToTokensWithThemes(e,t),getLastGrammarState:async(e,t)=>(await i({langs:[t.lang],themes:[t.theme]})).getLastGrammarState(e,t)}}(MS,{guessEmbeddedLanguages:function(e,t,n){let i=new Set;for(let t of e.matchAll(/:?lang=["']([^"']+)["']/g)){let e=t[1].toLowerCase().trim();e&&i.add(e)}for(let t of e.matchAll(/(?:```|~~~)([\w-]+)/g)){let e=t[1].toLowerCase().trim();e&&i.add(e)}for(let t of e.matchAll(/\\begin\{([\w-]+)\}/g)){let e=t[1].toLowerCase().trim();e&&i.add(e)}for(let t of e.matchAll(/<script\s+(?:type|lang)=["']([^"']+)["']/gi)){let e=t[1].toLowerCase().trim(),n=e.includes("/")?e.split("/").pop():e;n&&i.add(n)}if(!n)return Array.from(i);let a=n.getBundledLanguages();return Array.from(i).filter(e=>e&&a[e])}}),MC=(0,I.createContext)({code:""}),MN={name:"line-numbers",line(e,t){e.children.unshift({type:"element",tagName:"span",properties:{className:["inline-block","min-w-10","mr-4","text-right","select-none","text-muted-foreground"]},children:[{type:"text",value:String(t)}]})}};async function MI(e,t,n=!1){let i=n?[MN]:[];return await Promise.all([MA(e,{lang:t,theme:"one-light",transformers:i}),MA(e,{lang:t,theme:"one-dark-pro",transformers:i})])}let MM=({code:e,language:t,showLineNumbers:n=!1,className:i,children:a,...o})=>{let[s,l]=(0,I.useState)(""),[u,c]=(0,I.useState)(""),d=(0,I.useRef)(!1);return(0,I.useEffect)(()=>(MI(e,t,n).then(([e,t])=>{d.current||(l(e),c(t),d.current=!0)}),()=>{d.current=!1}),[e,t,n]),U.jsx(MC.Provider,{value:{code:e},children:U.jsx("div",{className:t8("group relative w-full overflow-hidden rounded-md border bg-background text-foreground",i),...o,children:U.jsxs("div",{className:"relative",children:[U.jsx("div",{className:"overflow-auto dark:hidden [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:p-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm",dangerouslySetInnerHTML:{__html:s}}),U.jsx("div",{className:"hidden overflow-auto dark:block [&>pre]:m-0 [&>pre]:bg-background! [&>pre]:p-4 [&>pre]:text-foreground! [&>pre]:text-sm [&_code]:font-mono [&_code]:text-sm",dangerouslySetInnerHTML:{__html:u}}),a&&U.jsx("div",{className:"absolute top-2 right-2 flex items-center gap-2",children:a})]})})})},MP=({onCopy:e,onError:t,timeout:n=2e3,children:i,className:a,...o})=>{let[s,l]=(0,I.useState)(!1),{code:u}=(0,I.useContext)(MC),c=async()=>{var i;if(typeof window>"u"||!(null!=(i=null==navigator?void 0:navigator.clipboard)&&i.writeText)){null==t||t(Error("Clipboard API not available"));return}try{await navigator.clipboard.writeText(u),l(!0),null==e||e(),setTimeout(()=>l(!1),n)}catch(e){null==t||t(e)}};return U.jsx(ne,{className:t8("shrink-0",a),onClick:c,size:"icon",variant:"ghost",...o,children:i??U.jsx(s?er:em,{size:14})})},MR=({className:e,...t})=>U.jsx(kC,{className:t8("not-prose mb-4 w-full rounded-md border",e),...t}),MD=e=>{let t={"input-streaming":U.jsx(ep,{className:"size-4"}),"input-available":U.jsx(eh,{className:"size-4 animate-pulse"}),"approval-requested":U.jsx(eh,{className:"size-4 text-yellow-600"}),"approval-responded":U.jsx(ec,{className:"size-4 text-blue-600"}
499),"output-available":U.jsx(ec,{className:"size-4 text-green-600"}),"output-error":U.jsx(ed,{className:"size-4 text-red-600"}),"output-denied":U.jsx(ed,{className:"size-4 text-orange-600"})};return U.jsxs(CX,{className:"gap-1.5 rounded-full text-xs",variant:"secondary",children:[t[e],{"input-streaming":"Pending","input-available":"Running","approval-requested":"Awaiting Approval","approval-responded":"Responded","output-available":"Completed","output-error":"Error","output-denied":"Denied"}[e]]})},ML=({className:e,title:t,type:n,state:i,...a})=>U.jsxs(kN,{className:t8("flex w-full items-center justify-between gap-4 p-3",e),...a,children:[U.jsxs("div",{className:"flex items-center gap-2",children:[U.jsx(eD,{className:"size-4 text-muted-foreground"}),U.jsx("span",{className:"font-medium text-sm",children:t??n.split("-").slice(1).join("-")}),MD(i)]}),U.jsx(ei,{className:"size-4 text-muted-foreground transition-transform group-data-[state=open]:rotate-180"})]}),MO=({className:e,...t})=>U.jsx(kI,{className:t8("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}),MB=({className:e,input:t,...n})=>U.jsxs("div",{className:t8("space-y-2 overflow-hidden p-4",e),...n,children:[U.jsx("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:"Parameters"}),U.jsx("div",{className:"rounded-md bg-muted/50",children:U.jsx(MM,{code:JSON.stringify(t,null,2),language:"json"})})]}),Mj=({className:e,output:t,errorText:n,...i})=>{if(!(t||n))return null;let a=U.jsx("div",{children:t});return"object"!=typeof t||(0,I.isValidElement)(t)?"string"==typeof t&&(a=U.jsx(MM,{code:t,language:"json"})):a=U.jsx(MM,{code:JSON.stringify(t,null,2),language:"json"}),U.jsxs("div",{className:t8("space-y-2 p-4",e),...i,children:[U.jsx("h4",{className:"font-medium text-muted-foreground text-xs uppercase tracking-wide",children:n?"Error":"Result"}),U.jsxs("div",{className:t8("overflow-x-auto rounded-md text-xs [&_table]:w-full",n?"bg-destructive/10 text-destructive":"bg-muted/50 text-foreground"),children:[n&&U.jsx("div",{children:n}),a]})]})},Mz=({size:e=16})=>U.jsxs("svg",{height:e,strokeLinejoin:"round",style:{color:"currentcolor"},viewBox:"0 0 16 16",width:e,children:[U.jsx("title",{children:"Loader"}),U.jsxs("g",{clipPath:"url(#clip0_2393_1490)",children:[U.jsx("path",{d:"M8 0V4",stroke:"currentColor",strokeWidth:"1.5"}),U.jsx("path",{d:"M8 16V12",opacity:"0.5",stroke:"currentColor",strokeWidth:"1.5"}),U.jsx("path",{d:"M3.29773 1.52783L5.64887 4.7639",opacity:"0.9",stroke:"currentColor",strokeWidth:"1.5"}),U.jsx("path",{d:"M12.7023 1.52783L10.3511 4.7639",opacity:"0.1",stroke:"currentColor",strokeWidth:"1.5"}),U.jsx("path",{d:"M12.7023 14.472L10.3511 11.236",opacity:"0.4",stroke:"currentColor",strokeWidth:"1.5"}),U.jsx("path",{d:"M3.29773 14.472L5.64887 11.236",opacity:"0.6",stroke:"currentColor",strokeWidth:"1.5"}),U.jsx("path",{d:"M15.6085 5.52783L11.8043 6.7639",opacity:"0.2",stroke:"currentColor",strokeWidth:"1.5"}),U.jsx("path",{d:"M0.391602 10.472L4.19583 9.23598",opacity:"0.7",stroke:"currentColor",strokeWidth:"1.5"}),U.jsx("path",{d:"M15.6085 10.4722L11.8043 9.2361",opacity:"0.3",stroke:"currentColor",strokeWidth:"1.5"}),U.jsx("path",{d:"M0.391602 5.52783L4.19583 6.7639",opacity:"0.8",stroke:"currentColor",strokeWidth:"1.5"})]}),U.jsx("defs",{children:U.jsx("clipPath",{id:"clip0_2393_1490",children:U.jsx("rect",{fill:"white",height:"16",width:"16"})})})]}),MF=({className:e,size:t=16,...n})=>U.jsx("div",{className:t8("inline-flex animate-spin items-center justify-center",e),...n,children:U.jsx(Mz,{size:t})}),MH={damping:.7,stiffness:.05,mass:1.25},MU=1e3/60,MG=!1;null==(Fw=globalThis.document)||Fw.addEventListener("mousedown",()=>{MG=!0}),null==(Fk=globalThis.document)||Fk.addEventListener("mouseup",()=>{MG=!1}),null==(F_=globalThis.document)||F_.addEventListener("click",()=>{MG=!1});let Mq=(e={})=>{let[t,n]=(0,I.useState)(!1),[i,a]=(0,I.useState)(!1!==e.initial),[o,s]=(0,I.useState)(!1),l=(0,I.useRef)(null);l.current=e;let u=(0,I.useCallback)(()=>{var e;if(!MG)return!1;let t=window.getSelection();if(!t||!t.rangeCount)return!1;let n=t.getRangeAt(0);return n.commonAncestorContainer.contains(x.current)||(null==(e=x.current)?void 0:e.contains(n.commonAncestorContainer))},[]),c=(0,I.useCallback)(e=>{p.isAtBottom=e,a(e)},[]),d=(0,I.useCallback)(e=>{p.escapedFromLock=e,n(e)},[]),p=(0,I.useMemo)(()=>{let n;return{escapedFromLock:t,isAtBottom:i,resizeDifference:0,accumulated:0,velocity:0,listeners:new Set,get scrollTop(){var a;return(null==(a=x.current)?void 0:a.scrollTop)??0},set scrollTop(y){x.current&&(x.current.scrollTop=y,p.ignoreScrollToTop=x.current.scrollTop)},get targetScrollTop(){return x.current&&v.current?x.current.scrollHeight-1-x.current.clientHeight:0},get calculatedTargetScrollTop(){if(!x.current||!v.current)return 0;let{targetScrollTop:t}=this;if(!e.targetScrollTop)return t;if((null==n?void 0:n.targetScrollTop)===t)return n.calculatedScrollTop;let i=Math.max(Math.min(e.targetScrollTop(t,{scrollElement:x.current,contentElement:v.current}),t),0);return n={targetScrollTop:t,calculatedScrollTop:i},requestAnimationFrame(()=>{n=void 0}),i},get scrollDifference(){return this.calculatedTargetScrollTop-this.scrollTop},get isNearBottom(){return this.scrollDifference<=70}}},[]),h=(0,I.useCallback)((e={})=>{var t;"string"==typeof e&&(e={animation:e}),e.preserveScrollPosition||c(!0);let n=Date.now()+(Number(e.wait)||0),i=MY(l.current,e.animation),{ignoreEscapes:a=!1}=e,o,s=p.calculatedTargetScrollTop;e.duration instanceof Promise?e.duration.finally(()=>{o=Date.now()}):o=n+(e.duration??0);let d=async()=>{let e=new Promise(requestAnimationFrame).then(()=>{var t;if(!p.isAtBottom)return p.animation=void 0,!1;let{scrollTop:c}=p,m=performance.now(),f=(m-(p.lastTick??m))/MU;if(p.animation||(p.animation={behavior:i,promise:e,ignoreEscapes:a}),p.animation.behavior===i&&(p.lastTick=m),u()||n>Date.now())return d();
499if(c<Math.min(s,p.calculatedTargetScrollTop)){if((null==(t=p.animation)?void 0:t.behavior)===i){if("instant"===i)return p.scrollTop=p.calculatedTargetScrollTop,d();p.velocity=(i.damping*p.velocity+i.stiffness*p.scrollDifference)/i.mass,p.accumulated+=p.velocity*f,p.scrollTop+=p.accumulated,p.scrollTop!==c&&(p.accumulated=0)}return d()}return o>Date.now()?(s=p.calculatedTargetScrollTop,d()):(p.animation=void 0,p.scrollTop<p.calculatedTargetScrollTop?h({animation:MY(l.current,l.current.resize),ignoreEscapes:a,duration:Math.max(0,o-Date.now())||void 0}):p.isAtBottom)});return e.then(e=>(requestAnimationFrame(()=>{p.animation||(p.lastTick=void 0,p.velocity=0)}),e))};return!0!==e.wait&&(p.animation=void 0),(null==(t=p.animation)?void 0:t.behavior)===i?p.animation.promise:d()},[c,u,p]),m=(0,I.useCallback)(()=>{d(!0),c(!1)},[d,c]),f=(0,I.useCallback)(({target:e})=>{if(e!==x.current)return;let{scrollTop:t,ignoreScrollToTop:n}=p,{lastScrollTop:i=t}=p;p.lastScrollTop=t,p.ignoreScrollToTop=void 0,n&&n>t&&(i=n),s(p.isNearBottom),setTimeout(()=>{var e;if(p.resizeDifference||t===n)return;if(u()){d(!0),c(!1);return}let a=t>i,o=t<i;if(null!=(e=p.animation)&&e.ignoreEscapes){p.scrollTop=i;return}o&&(d(!0),c(!1)),a&&d(!1),!p.escapedFromLock&&p.isNearBottom&&c(!0)},1)},[d,c,u,p]),g=(0,I.useCallback)(({target:e,deltaY:t})=>{var n;let i=e;for(;!["scroll","auto"].includes(getComputedStyle(i).overflow);){if(!i.parentElement)return;i=i.parentElement}i===x.current&&t<0&&x.current.scrollHeight>x.current.clientHeight&&!(null!=(n=p.animation)&&n.ignoreEscapes)&&(d(!0),c(!1))},[d,c,p]),x=MV(e=>{var t,n;null==(t=x.current)||t.removeEventListener("scroll",f),null==(n=x.current)||n.removeEventListener("wheel",g),null==e||e.addEventListener("scroll",f,{passive:!0}),null==e||e.addEventListener("wheel",g,{passive:!0})},[]),v=MV(e=>{var t,n;let i;null==(t=p.resizeObserver)||t.disconnect(),e&&(p.resizeObserver=new ResizeObserver(([e])=>{let{height:t}=e.contentRect,n=t-(i??t);if(p.resizeDifference=n,p.scrollTop>p.targetScrollTop&&(p.scrollTop=p.targetScrollTop),s(p.isNearBottom),n>=0){let e=MY(l.current,i?l.current.resize:l.current.initial);h({animation:e,wait:!0,preserveScrollPosition:!0,duration:"instant"===e?void 0:350})}else p.isNearBottom&&(d(!1),c(!0));i=t,requestAnimationFrame(()=>{setTimeout(()=>{p.resizeDifference===n&&(p.resizeDifference=0)},1)})}),null==(n=p.resizeObserver)||n.observe(e))},[]);return{contentRef:v,scrollRef:x,scrollToBottom:h,stopScroll:m,isAtBottom:i||o,isNearBottom:o,escapedFromLock:t,state:p}};function MV(e,t){let n=(0,I.useCallback)(t=>(n.current=t,e(t)),t);return n}let MW=new Map;function MY(...e){let t={...MH},n=!1;for(let i of e){if("instant"===i){n=!0;continue}"object"==typeof i&&(n=!1,t.damping=i.damping??t.damping,t.stiffness=i.stiffness??t.stiffness,t.mass=i.mass??t.mass)}let i=JSON.stringify(t);return MW.has(i)||MW.set(i,Object.freeze(t)),n?"instant":MW.get(i)}let MK=(0,I.createContext)(null),MX="u">typeof window?I.useLayoutEffect:I.useEffect;function MQ({instance:e,children:t,resize:n,initial:i,mass:a,damping:o,stiffness:s,targetScrollTop:l,contextRef:u,...c}){let d=(0,I.useRef)(null),p=Mq({mass:a,damping:o,stiffness:s,resize:n,initial:i,targetScrollTop:I.useCallback((e,t)=>{let n=(null==w?void 0:w.targetScrollTop)??l;return(null==n?void 0:n(e,t))??e},[l])}),{scrollRef:h,contentRef:m,scrollToBottom:f,stopScroll:g,isAtBottom:x,escapedFromLock:v,state:b}=e??p,w=(0,I.useMemo)(()=>({scrollToBottom:f,stopScroll:g,scrollRef:h,isAtBottom:x,escapedFromLock:v,contentRef:m,state:b,get targetScrollTop(){return d.current},set targetScrollTop(S){d.current=S}}),[f,x,m,h,g,v,b]);return(0,I.useImperativeHandle)(u,()=>w,[w]),MX(()=>{h.current&&"visible"===getComputedStyle(h.current).overflow&&(h.current.style.overflow="auto")},[]),I.createElement(MK.Provider,{value:w},I.createElement("div",{...c},"function"==typeof t?t(w):t))}function MZ(){let e=(0,I.useContext)(MK);if(!e)throw Error("use-stick-to-bottom component context must be used within a StickToBottom component");return e}(MQ||(MQ={})).Content=function({children:e,scrollClassName:t,...n}){let i=MZ();return I.createElement("div",{ref:i.scrollRef,style:{height:"100%",width:"100%",scrollbarGutter:"stable both-edges"},className:t},I.createElement("div",{...n,ref:i.contentRef},"function"==typeof e?e(i):e))};let M$=({className:e,...t})=>U.jsx(MQ,{className:t8("relative flex-1 overflow-y-hidden",e),initial:"smooth",resize:"smooth",role:"log",...t}),MJ=({className:e,...t})=>U.jsx(MQ.Content,{className:t8("flex flex-col gap-8 p-4",e),...t}),M0=({className:e,title:t="No messages yet",description:n="Start a conversation to see messages here",icon:i,children:a,...o})=>U.jsx("div",{className:t8("flex size-full flex-col items-center justify-center gap-3 p-8 text-center",e),...o,children:a??U.jsxs(U.Fragment,{children:[i&&U.jsx("div",{className:"text-muted-foreground",children:i}),U.jsxs("div",{className:"space-y-1",children:[U.jsx("h3",{className:"font-medium text-sm",children:t}),n&&U.jsx("p",{className:"text-muted-foreground text-sm",children:n})]})]})}),M1=({className:e,...t})=>{let{isAtBottom:n,scrollToBottom:i}=MZ(),a=(0,I.useCallback)(()=>{i()},[i]);return!n&&U.jsx(ne,{className:t8("absolute bottom-4 left-[50%] translate-x-[-50%] rounded-full",e),onClick:a,size:"icon",type:"button",variant:"outline",...t,children:U.jsx(Z,{className:"size-4"})})};var M2=/[\\\/_+.#"@\[\(\{&]/,M4=/[\\\/_+.#"@\[\(\{&]/g,M5=/[\s-]/,M3=/[\s-]/g;function M6(e){return e.toLowerCase().replace(M3," ")}var M7="focusScope.autoFocusOnMount",M8="focusScope.autoFocusOnUnmount",M9={bubbles:!1,cancelable:!0},Pe=I.forwardRef((e,t)=>
499{let{loop:n=!1,trapped:i=!1,onMountAutoFocus:a,onUnmountAutoFocus:o,...s}=e,[l,u]=I.useState(null),c=rR(a),d=rR(o),p=I.useRef(null),h=eq(t,e=>u(e)),m=I.useRef({paused:!1,pause(){this.paused=!0},resume(){this.paused=!1}}).current;I.useEffect(()=>{if(i){let e=function(e){if(m.paused||!l)return;let t=e.target;l.contains(t)?p.current=t:Pr(p.current,{select:!0})},t=function(e){if(m.paused||!l)return;let t=e.relatedTarget;null!==t&&(l.contains(t)||Pr(p.current,{select:!0}))};document.addEventListener("focusin",e),document.addEventListener("focusout",t);let n=new MutationObserver(function(e){if(document.activeElement===document.body)for(let t of e)t.removedNodes.length>0&&Pr(l)});return l&&n.observe(l,{childList:!0,subtree:!0}),()=>{document.removeEventListener("focusin",e),document.removeEventListener("focusout",t),n.disconnect()}}},[i,l,m.paused]),I.useEffect(()=>{if(l){Pi.add(m);let e=document.activeElement;if(!l.contains(e)){let t=new CustomEvent(M7,M9);l.addEventListener(M7,c),l.dispatchEvent(t),t.defaultPrevented||(function(e,{select:t=!1}={}){let n=document.activeElement;for(let i of e)if(Pr(i,{select:t}),document.activeElement!==n)return}(Pt(l).filter(e=>"A"!==e.tagName),{select:!0}),document.activeElement===e&&Pr(l))}return()=>{l.removeEventListener(M7,c),setTimeout(()=>{let t=new CustomEvent(M8,M9);l.addEventListener(M8,d),l.dispatchEvent(t),t.defaultPrevented||Pr(e??document.body,{select:!0}),l.removeEventListener(M8,d),Pi.remove(m)},0)}}},[l,c,d,m]);let f=I.useCallback(e=>{if(!n&&!i||m.paused)return;let t="Tab"===e.key&&!e.altKey&&!e.ctrlKey&&!e.metaKey,a=document.activeElement;if(t&&a){let t=e.currentTarget,[i,o]=function(e){let t=Pt(e);return[Pn(t,e),Pn(t.reverse(),e)]}(t);i&&o?e.shiftKey||a!==o?e.shiftKey&&a===i&&(e.preventDefault(),n&&Pr(o,{select:!0})):(e.preventDefault(),n&&Pr(i,{select:!0})):a===t&&e.preventDefault()}},[n,i,m.paused]);return U.jsx(rI.div,{tabIndex:-1,...s,ref:h,onKeyDown:f})});function Pt(e){let t=[],n=document.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,{acceptNode:e=>{let 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 Pn(e,t){for(let n of e)if(!function(e,{upTo:t}){if("hidden"===getComputedStyle(e).visibility)return!0;for(;e&&(void 0===t||e!==t);){if("none"===getComputedStyle(e).display)return!0;e=e.parentElement}return!1}(n,{upTo:t}))return n}function Pr(e,{select:t=!1}={}){if(e&&e.focus){var n;let i=document.activeElement;e.focus({preventScroll:!0}),e!==i&&(n=e)instanceof HTMLInputElement&&"select"in n&&t&&e.select()}}Pe.displayName="FocusScope";var Pi=(l=[],{add(e){let t=l[0];e!==t&&(null==t||t.pause()),(l=Pa(l,e)).unshift(e)},remove(e){var t;null==(t=(l=Pa(l,e))[0])||t.resume()}});function Pa(e,t){let n=[...e],i=n.indexOf(t);return -1!==i&&n.splice(i,1),n}var Po=0;function Ps(){I.useEffect(()=>{let e=document.querySelectorAll("[data-radix-focus-guard]");return document.body.insertAdjacentElement("afterbegin",e[0]??Pl()),document.body.insertAdjacentElement("beforeend",e[1]??Pl()),Po++,()=>{1===Po&&document.querySelectorAll("[data-radix-focus-guard]").forEach(e=>e.remove()),Po--}},[])}function Pl(){let 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 Pu=function(){return(Pu=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var a in t=arguments[n])Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}).apply(this,arguments)};function Pc(e,t){var n={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&0>t.indexOf(i)&&(n[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols)for(var a=0,i=Object.getOwnPropertySymbols(e);a<i.length;a++)0>t.indexOf(i[a])&&Object.prototype.propertyIsEnumerable.call(e,i[a])&&(n[i[a]]=e[i[a]]);return n}var Pd="right-scroll-bar-position",Pp="width-before-scroll-bar";function Ph(e,t){return"function"==typeof e?e(t):e&&(e.current=t),e}var Pm="u">typeof window?I.useLayoutEffect:I.useEffect,Pf=new WeakMap,Pg=function(e){var t=e.sideCar,n=Pc(e,["sideCar"]);if(!t)throw Error("Sidecar: please provide `sideCar` property to import the right car");var i=t.read();if(!i)throw Error("Sidecar medium not found");return I.createElement(i,Pu({},n))};
499Pg.isSideCarExport=!0;var Px=(void 0===Ff&&(Ff={}),(void 0===Fg&&(Fg=function(e){return e}),Fx=[],Fv=!1,Fy={read:function(){if(Fv)throw Error("Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.");return Fx.length?Fx[Fx.length-1]:null},useMedium:function(e){var t=Fg(e,Fv);return Fx.push(t),function(){Fx=Fx.filter(function(e){return e!==t})}},assignSyncMedium:function(e){for(Fv=!0;Fx.length;){var t=Fx;Fx=[],t.forEach(e)}Fx={push:function(t){return e(t)},filter:function(){return Fx}}},assignMedium:function(e){Fv=!0;var t=[];if(Fx.length){var n=Fx;Fx=[],n.forEach(e),t=Fx}var i=function(){var n=t;t=[],n.forEach(e)},a=function(){return Promise.resolve().then(i)};a(),Fx={push:function(e){t.push(e),a()},filter:function(e){return t=t.filter(e),Fx}}}}).options=Pu({async:!0,ssr:!1},Ff),Fy),Pv=function(){},Py=I.forwardRef(function(e,t){var n,i,a,o,s=I.useRef(null),l=I.useState({onScrollCapture:Pv,onWheelCapture:Pv,onTouchMoveCapture:Pv}),u=l[0],c=l[1],d=e.forwardProps,p=e.children,h=e.className,m=e.removeScrollBar,f=e.enabled,g=e.shards,x=e.sideCar,v=e.noRelative,b=e.noIsolation,w=e.inert,k=e.allowPinchZoom,_=e.as,T=e.gapMode,E=Pc(e,["forwardProps","children","className","removeScrollBar","enabled","shards","sideCar","noRelative","noIsolation","inert","allowPinchZoom","as","gapMode"]),A=(n=[s,t],i=function(e){return n.forEach(function(t){return Ph(t,e)})},(a=(0,I.useState)(function(){return{value:null,callback:i,facade:{get current(){return a.value},set current(r){var e=a.value;e!==r&&(a.value=r,a.callback(r,e))}}}})[0]).callback=i,o=a.facade,Pm(function(){var e=Pf.get(o);if(e){var t=new Set(e),i=new Set(n),a=o.current;t.forEach(function(e){i.has(e)||Ph(e,null)}),i.forEach(function(e){t.has(e)||Ph(e,a)})}Pf.set(o,n)},[n]),o),C=Pu(Pu({},E),u);return I.createElement(I.Fragment,null,f&&I.createElement(x,{sideCar:Px,removeScrollBar:m,shards:g,noRelative:v,noIsolation:b,inert:w,setCallbacks:c,allowPinchZoom:!!k,lockRef:s,gapMode:T}),d?I.cloneElement(I.Children.only(p),Pu(Pu({},C),{ref:A})):I.createElement(void 0===_?"div":_,Pu({},C,{className:h,ref:A}),p))});Py.defaultProps={enabled:!0,removeScrollBar:!0,inert:!1},Py.classNames={fullWidth:Pp,zeroRight:Pd};var Pb=function(){var e=0,t=null;return{add:function(i){var a,o;0==e&&(t=function(){if(!document)return null;var e=document.createElement("style");e.type="text/css";var t=n.nc;return t&&e.setAttribute("nonce",t),e}())&&((a=t).styleSheet?a.styleSheet.cssText=i:a.appendChild(document.createTextNode(i)),o=t,(document.head||document.getElementsByTagName("head")[0]).appendChild(o)),e++},remove:function(){--e||!t||(t.parentNode&&t.parentNode.removeChild(t),t=null)}}},Pw=function(){var e=Pb();return function(t,n){I.useEffect(function(){return e.add(t),function(){e.remove()}},[t&&n])}},Pk=function(){var e=Pw();return function(t){return e(t.styles,t.dynamic),null}},P_={left:0,top:0,right:0,gap:0},PT=function(e){return parseInt(e||"",10)||0},PE=function(e){var t=window.getComputedStyle(document.body),n=t["padding"===e?"paddingLeft":"marginLeft"],i=t["padding"===e?"paddingTop":"marginTop"],a=t["padding"===e?"paddingRight":"marginRight"];return[PT(n),PT(i),PT(a)]},PS=function(e){if(void 0===e&&(e="margin"),typeof window>"u")return P_;var t=PE(e),n=document.documentElement.clientWidth,i=window.innerWidth;return{left:t[0],top:t[1],right:t[2],gap:Math.max(0,i-n+t[2]-t[0])}},PA=Pk(),PC="data-scroll-locked",PN=function(e,t,n,i){var a=e.left,o=e.top,s=e.right,l=e.gap;return void 0===n&&(n="margin"),`
500  .`.concat("with-scroll-bars-hidden",` {
501   overflow: hidden `).concat(i,`;
502   padding-right: `).concat(l,"px ").concat(i,`;
503  }
504  body[`).concat(PC,`] {
505    overflow: hidden `).concat(i,`;
506    overscroll-behavior: contain;
507    `).concat([t&&"position: relative ".concat(i,";"),"margin"===n&&`
508    padding-left: `.concat(a,`px;
509    padding-top: `).concat(o,`px;
510    padding-right: `).concat(s,`px;
511    margin-left:0;
512    margin-top:0;
513    margin-right: `).concat(l,"px ").concat(i,`;
514    `),"padding"===n&&"padding-right: ".concat(l,"px ").concat(i,";")].filter(Boolean).join(""),`
515  }
516  
517  .`).concat(Pd,` {
518    right: `).concat(l,"px ").concat(i,`;
519  }
520  
521  .`).concat(Pp,` {
522    margin-right: `).concat(l,"px ").concat(i,`;
523  }
524  
525  .`).concat(Pd," .").concat(Pd,` {
526    right: 0 `).concat(i,`;
527  }
528  
529  .`).concat(Pp," .").concat(Pp,` {
530    margin-right: 0 `).concat(i,`;
531  }
532  
533  body[`).concat(PC,`] {
534    `).concat("--removed-body-scroll-bar-size",": ").concat(l,`px;
535  }
536`)},PI=function(){var e=parseInt(document.body.getAttribute(PC)||"0",10);return isFinite(e)?e:0},PM=function(){I.useEffect(function(){return document.body.setAttribute(PC,(PI()+1).toString()),function(){var e=PI()-1;e<=0?document.body.removeAttribute(PC):document.body.setAttribute(PC,e.toString())}},[])},PP=function(e){var t=e.noRelative,n=e.noImportant,i=e.gapMode,a=void 0===i?"margin":i;PM();var o=I.useMemo(function(){return PS(a)},[a]);return I.createElement(PA,{styles:PN(o,!t,a,n?"":"!important")})},PR=!1;if("u">typeof window)try{var PD=Object.defineProperty({},"passive",{get:function(){return PR=!0,!0}});window.addEventListener("test",PD,PD),window.removeEventListener("test",PD,PD)}catch{PR=!1}var PL=!!PR&&{passive:!1},PO=function(e,t){if(!(e instanceof Element))return!1;var n=window.getComputedStyle(e);return"hidden"!==n[t]&&!(n.overflowY===n.overflowX&&"TEXTAREA"!==e.tagName&&"visible"===n[t])},PB=function(e,t){var n=t.ownerDocument,i=t;do{if("u">typeof ShadowRoot&&i instanceof ShadowRoot&&(i=i.host),Pj(e,i)){var a=Pz(e,i);if(a[1]>a[2])return!0}i=i.parentNode}while(i&&i!==n.body);return!1},Pj=function(e,t){return"v"===e?PO(t,"overflowY"):PO(t,"overflowX")},Pz=function(e,t){return"v"===e?[t.scrollTop,t.scrollHeight,t.clientHeight]:[t.scrollLeft,t.scrollWidth,t.clientWidth]},PF=function(e,t,n,i,a){var o,s=(o=window.getComputedStyle(t).direction,"h"===e&&"rtl"===o?-1:1),l=n.target,u=t.contains(l),c=!1,d=s*i>0,p=0,h=0;
536do{if(!l)break;var m=Pz(e,l),f=m[0],g=m[1]-m[2]-s*f;(f||g)&&Pj(e,l)&&(p+=g,h+=f);var x=l.parentNode;l=x&&x.nodeType===Node.DOCUMENT_FRAGMENT_NODE?x.host:x}while(!u&&l!==document.body||u&&(t.contains(l)||t===l));return(d&&1>Math.abs(p)||!d&&1>Math.abs(h))&&(c=!0),c},PH=function(e){return"changedTouches"in e?[e.changedTouches[0].clientX,e.changedTouches[0].clientY]:[0,0]},PU=function(e){return[e.deltaX,e.deltaY]},PG=function(e){return e&&"current"in e?e.current:e},Pq=0,PV=[];let PW=(Fb=function(e){var t=I.useRef([]),n=I.useRef([0,0]),i=I.useRef(),a=I.useState(Pq++)[0],o=I.useState(Pk)[0],s=I.useRef(e);I.useEffect(function(){s.current=e},[e]),I.useEffect(function(){if(e.inert){document.body.classList.add("block-interactivity-".concat(a));var t=(function(e,t,n){if(n||2==arguments.length)for(var i,a=0,o=t.length;a<o;a++)!i&&a in t||(i||(i=Array.prototype.slice.call(t,0,a)),i[a]=t[a]);return e.concat(i||Array.prototype.slice.call(t))})([e.lockRef.current],(e.shards||[]).map(PG),!0).filter(Boolean);return t.forEach(function(e){return e.classList.add("allow-interactivity-".concat(a))}),function(){document.body.classList.remove("block-interactivity-".concat(a)),t.forEach(function(e){return e.classList.remove("allow-interactivity-".concat(a))})}}},[e.inert,e.lockRef.current,e.shards]);var l=I.useCallback(function(e,t){if("touches"in e&&2===e.touches.length||"wheel"===e.type&&e.ctrlKey)return!s.current.allowPinchZoom;var a,o=PH(e),l=n.current,u="deltaX"in e?e.deltaX:l[0]-o[0],c="deltaY"in e?e.deltaY:l[1]-o[1],d=e.target,p=Math.abs(u)>Math.abs(c)?"h":"v";if("touches"in e&&"h"===p&&"range"===d.type)return!1;var h=window.getSelection(),m=h&&h.anchorNode;if(m&&(m===d||m.contains(d)))return!1;var f=PB(p,d);if(!f)return!0;if(f?a=p:(a="v"===p?"h":"v",f=PB(p,d)),!f)return!1;if(!i.current&&"changedTouches"in e&&(u||c)&&(i.current=a),!a)return!0;var g=i.current||a;return PF(g,t,e,"h"===g?u:c)},[]),u=I.useCallback(function(e){if(!(!PV.length||PV[PV.length-1]!==o)){var n="deltaY"in e?PU(e):PH(e),i=t.current.filter(function(t){var i;return t.name===e.type&&(t.target===e.target||e.target===t.shadowParent)&&(i=t.delta)[0]===n[0]&&i[1]===n[1]})[0];if(i&&i.should){e.cancelable&&e.preventDefault();return}
536if(!i){var a=(s.current.shards||[]).map(PG).filter(Boolean).filter(function(t){return t.contains(e.target)});(a.length>0?l(e,a[0]):!s.current.noIsolation)&&e.cancelable&&e.preventDefault()}}},[]),c=I.useCallback(function(e,n,i,a){var o={name:e,delta:n,target:i,should:a,shadowParent:function(e){for(var t=null;null!==e;)e instanceof ShadowRoot&&(t=e.host,e=e.host),e=e.parentNode;return t}(i)};t.current.push(o),setTimeout(function(){t.current=t.current.filter(function(e){return e!==o})},1)},[]),d=I.useCallback(function(e){n.current=PH(e),i.current=void 0},[]),p=I.useCallback(function(t){c(t.type,PU(t),t.target,l(t,e.lockRef.current))},[]),h=I.useCallback(function(t){c(t.type,PH(t),t.target,l(t,e.lockRef.current))},[]);I.useEffect(function(){return PV.push(o),e.setCallbacks({onScrollCapture:p,onWheelCapture:p,onTouchMoveCapture:h}),document.addEventListener("wheel",u,PL),document.addEventListener("touchmove",u,PL),document.addEventListener("touchstart",d,PL),function(){PV=PV.filter(function(e){return e!==o}),document.removeEventListener("wheel",u,PL),document.removeEventListener("touchmove",u,PL),document.removeEventListener("touchstart",d,PL)}},[]);var m=e.removeScrollBar,f=e.inert;return I.createElement(I.Fragment,null,f?I.createElement(o,{styles:`
537  .block-interactivity-`.concat(a,` {pointer-events: none;}
538  .allow-interactivity-`).concat(a,` {pointer-events: all;}
539`)}):null,m?I.createElement(PP,{noRelative:e.noRelative,gapMode:e.gapMode}):null)},Px.useMedium(Fb),Pg);var PY=I.forwardRef(function(e,t){return I.createElement(Py,Pu({},e,{ref:t,sideCar:PW}))});PY.classNames=Py.classNames;var PK=new WeakMap,PX=new WeakMap,PQ={},PZ=0,P$=function(e){return e&&(e.host||P$(e.parentNode))},PJ=function(e,t,n,i){var a=(Array.isArray(e)?e:[e]).map(function(e){if(t.contains(e))return e;var n=P$(e);return n&&t.contains(n)?n:(console.error("aria-hidden",e,"in not contained inside",t,". Doing nothing"),null)}).filter(function(e){return!!e});PQ[n]||(PQ[n]=new WeakMap);var o=PQ[n],s=[],l=new Set,u=new Set(a),c=function(e){!e||l.has(e)||(l.add(e),c(e.parentNode))};a.forEach(c);var d=function(e){!e||u.has(e)||Array.prototype.forEach.call(e.children,function(e){if(l.has(e))d(e);else try{var t=e.getAttribute(i),a=null!==t&&"false"!==t,u=(PK.get(e)||0)+1,c=(o.get(e)||0)+1;PK.set(e,u),o.set(e,c),s.push(e),1===u&&a&&PX.set(e,!0),1===c&&e.setAttribute(n,"true"),a||e.setAttribute(i,"true")}catch(t){console.error("aria-hidden: cannot operate on ",e,t)}})};return d(t),l.clear(),PZ++,function(){s.forEach(function(e){var t=PK.get(e)-1,a=o.get(e)-1;PK.set(e,t),o.set(e,a),t||(PX.has(e)||e.removeAttribute(i),PX.delete(e)),a||e.removeAttribute(n)}),--PZ||(PK=new WeakMap,PK=new WeakMap,PX=new WeakMap,PQ={})}},P0=function(e,t,n){void 0===n&&(n="data-aria-hidden");var i=Array.from(Array.isArray(e)?e:[e]),a=typeof document>"u"?null:(Array.isArray(e)?e[0]:e).ownerDocument.body;return a?(i.push.apply(i,Array.from(a.querySelectorAll("[aria-live], script"))),PJ(i,a,n,"aria-hidden")):function(){return null}},P1=Symbol("radix.slottable");function P2(e){return I.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===P1}var P4="Dialog",[P5]=nn(P4),[P3,P6]=P5(P4),P7=e=>{let{__scopeDialog:t,children:n,open:i,defaultOpen:a,onOpenChange:o,modal:s=!0}=e,l=I.useRef(null),u=I.useRef(null),[c,d]=na({prop:i,defaultProp:a??!1,onChange:o,caller:P4});return U.jsx(P3,{scope:t,triggerRef:l,contentRef:u,contentId:wM(),titleId:wM(),descriptionId:wM(),open:c,onOpenChange:d,onOpenToggle:I.useCallback(()=>d(e=>!e),[d]),modal:s,children:n})};P7.displayName=P4;var P8="DialogTrigger",P9=I.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=P6(P8,n),o=eq(t,a.triggerRef);return U.jsx(rI.button,{type:"button","aria-haspopup":"dialog","aria-expanded":a.open,"aria-controls":a.contentId,"data-state":Ry(a.open),...i,ref:o,onClick:nt(e.onClick,a.onOpenToggle)})});P9.displayName=P8;var Re="DialogPortal",[Rt,Rn]=P5(Re,{forceMount:void 0}),Rr=e=>{let{__scopeDialog:t,forceMount:n,children:i,container:a}=e,o=P6(Re,t);return U.jsx(Rt,{scope:t,forceMount:n,children:I.Children.map(i,e=>U.jsx(rJ,{present:n||o.open,children:U.jsx(r$,{asChild:!0,container:a,children:e})}))})};Rr.displayName=Re;var Ri="DialogOverlay",Ra=I.forwardRef((e,t)=>
539{let n=Rn(Ri,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,o=P6(Ri,e.__scopeDialog);return o.modal?U.jsx(rJ,{present:i||o.open,children:U.jsx(Rs,{...a,ref:t})}):null});Ra.displayName=Ri;var Ro=function(e){let t=function(e){let t=I.forwardRef((e,t)=>{let{children:n,...i}=e;if(I.isValidElement(n)){var a,o;let e,s;let l=(e=null==(a=Object.getOwnPropertyDescriptor(n.props,"ref"))?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null==(o=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:o.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let i in t){let a=e[i],o=t[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==I.Fragment&&(u.ref=t?eG(t,l):l),I.cloneElement(n,u)}return I.Children.count(n)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=I.forwardRef((e,n)=>{let{children:i,...a}=e,o=I.Children.toArray(i),s=o.find(P2);if(s){let e=s.props.children,i=o.map(t=>t===s?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t);return U.jsx(t,{...a,ref:n,children:I.isValidElement(e)?I.cloneElement(e,void 0,i):null})}return U.jsx(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}("DialogOverlay.RemoveScroll"),Rs=I.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=P6(Ri,n);return U.jsx(PY,{as:Ro,allowPinchZoom:!0,shards:[a.contentRef],children:U.jsx(rI.div,{"data-state":Ry(a.open),...i,ref:t,style:{pointerEvents:"auto",...i.style}})})}),Rl="DialogContent",Ru=I.forwardRef((e,t)=>{let n=Rn(Rl,e.__scopeDialog),{forceMount:i=n.forceMount,...a}=e,o=P6(Rl,e.__scopeDialog);return U.jsx(rJ,{present:i||o.open,children:o.modal?U.jsx(Rc,{...a,ref:t}):U.jsx(Rd,{...a,ref:t})})});Ru.displayName=Rl;var Rc=I.forwardRef((e,t)=>{let n=P6(Rl,e.__scopeDialog),i=I.useRef(null),a=eq(t,n.contentRef,i);return I.useEffect(()=>{let e=i.current;if(e)return P0(e)},[]),U.jsx(Rp,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:nt(e.onCloseAutoFocus,e=>{var t;e.preventDefault(),null==(t=n.triggerRef.current)||t.focus()}),onPointerDownOutside:nt(e.onPointerDownOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey;(2===t.button||n)&&e.preventDefault()}),onFocusOutside:nt(e.onFocusOutside,e=>e.preventDefault())})}),Rd=I.forwardRef((e,t)=>{let n=P6(Rl,e.__scopeDialog),i=I.useRef(!1),a=I.useRef(!1);return U.jsx(Rp,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:t=>{var o,s;null==(o=e.onCloseAutoFocus)||o.call(e,t),t.defaultPrevented||(i.current||null==(s=n.triggerRef.current)||s.focus(),t.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:t=>{var o,s;null==(o=e.onInteractOutside)||o.call(e,t),t.defaultPrevented||(i.current=!0,"pointerdown"===t.detail.originalEvent.type&&(a.current=!0));let l=t.target;(null==(s=n.triggerRef.current)?void 0:s.contains(l))&&t.preventDefault(),"focusin"===t.detail.originalEvent.type&&a.current&&t.preventDefault()}})}),Rp=I.forwardRef((e,t)=>{let{__scopeDialog:n,trapFocus:i,onOpenAutoFocus:a,onCloseAutoFocus:o,...s}=e,l=P6(Rl,n),u=I.useRef(null),c=eq(t,u);return Ps(),U.jsxs(U.Fragment,{children:[U.jsx(Pe,{asChild:!0,loop:!0,trapped:i,onMountAutoFocus:a,onUnmountAutoFocus:o,children:U.jsx(r6,{role:"dialog",id:l.contentId,"aria-describedby":l.descriptionId,"aria-labelledby":l.titleId,"data-state":Ry(l.open),...s,ref:c,onDismiss:()=>l.onOpenChange(!1)})}),U.jsxs(U.Fragment,{children:[U.jsx(R_,{titleId:l.titleId}),U.jsx(RT,{contentRef:u,descriptionId:l.descriptionId})]})]})}),Rh="DialogTitle",Rm=I.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=P6(Rh,n);return U.jsx(rI.h2,{id:a.titleId,...i,ref:t})});Rm.displayName=Rh;var Rf="DialogDescription",Rg=I.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=P6(Rf,n);return U.jsx(rI.p,{id:a.descriptionId,...i,ref:t})});Rg.displayName=Rf;var Rx="DialogClose",Rv=I.forwardRef((e,t)=>{let{__scopeDialog:n,...i}=e,a=P6(Rx,n);return U.jsx(rI.button,{type:"button",...i,ref:t,onClick:nt(e.onClick,()=>a.onOpenChange(!1))})});function Ry(e){return e?"open":"closed"}Rv.displayName=Rx;var Rb="DialogTitleWarning",[Rw,Rk]=function(e,t){let n=I.createContext(t),i=e=>{let{children:t,...i}=e,a=I.useMemo(()=>i,Object.values(i));return U.jsx(n.Provider,{value:a,children:t})};return i.displayName=e+"Provider",[i,function(i){let a=I.useContext(n);if(a)return a;
539if(void 0!==t)return t;throw Error(`\`${i}\` must be used within \`${e}\``)}]}(Rb,{contentName:Rl,titleName:Rh,docsSlug:"dialog"}),R_=({titleId:e})=>{let t=Rk(Rb),n=`\`${t.contentName}\` requires a \`${t.titleName}\` for the component to be accessible for screen reader users.
540
541If you want to hide the \`${t.titleName}\`, you can wrap it with our VisuallyHidden component.
542
543For more information, see https://radix-ui.com/primitives/docs/components/${t.docsSlug}`;return I.useEffect(()=>{e&&(document.getElementById(e)||console.error(n))},[n,e]),null},RT=({contentRef:e,descriptionId:t})=>{let n=`Warning: Missing \`Description\` or \`aria-describedby={undefined}\` for {${Rk("DialogDescriptionWarning").contentName}}.`;return I.useEffect(()=>{var i;let a=null==(i=e.current)?void 0:i.getAttribute("aria-describedby");t&&a&&(document.getElementById(t)||console.warn(n))},[n,e,t]),null},RE='[cmdk-group=""]',RS='[cmdk-group-items=""]',RA='[cmdk-item=""]',RC=`${RA}:not([aria-disabled="true"])`,RN="cmdk-item-select",RI="data-value",RM=(e,t,n)=>{var i;return i=e,function e(t,n,i,a,o,s,l){if(s===n.length)return o===t.length?1:.99;var u=`${o},${s}`;if(void 0!==l[u])return l[u];for(var c,d,p,h,m=a.charAt(s),f=i.indexOf(m,o),g=0;f>=0;)(c=e(t,n,i,a,f+1,s+1,l))>g&&(f===o?c*=1:M2.test(t.charAt(f-1))?(c*=.8,(p=t.slice(o,f-1).match(M4))&&o>0&&(c*=Math.pow(.999,p.length))):M5.test(t.charAt(f-1))?(c*=.9,(h=t.slice(o,f-1).match(M3))&&o>0&&(c*=Math.pow(.999,h.length))):(c*=.17,o>0&&(c*=Math.pow(.999,f-o))),t.charAt(f)!==n.charAt(s)&&(c*=.9999)),(c<.1&&i.charAt(f-1)===a.charAt(s+1)||a.charAt(s+1)===a.charAt(s)&&i.charAt(f-1)!==a.charAt(s))&&.1*(d=e(t,n,i,a,f+1,s+2,l))>c&&(c=.1*d),c>g&&(g=c),f=i.indexOf(m,f+1);return l[u]=g,g}(i=n&&n.length>0?`${i+" "+n.join(" ")}`:i,t,M6(i),M6(t),0,0,{})},RP=I.createContext(void 0),RR=()=>I.useContext(RP),RD=I.createContext(void 0),RL=()=>I.useContext(RD),RO=I.createContext(void 0),RB=I.forwardRef((e,t)=>{let n=RY(()=>{var t,n;return{search:"",value:null!=(n=null!=(t=e.value)?t:e.defaultValue)?n:"",selectedItemId:void 0,filtered:{count:0,items:new Map,groups:new Set}}}),i=RY(()=>new Set),a=RY(()=>new Map),o=RY(()=>new Map),s=RY(()=>new Set),l=RV(e),{label:u,children:c,value:d,onValueChange:p,filter:h,shouldFilter:m,loop:f,disablePointerSelection:g=!1,vimBindings:x=!0,...v}=e,b=wM(),w=wM(),k=wM(),_=I.useRef(null),T=RQ();RW(()=>{if(void 0!==d){let e=d.trim();n.current.value=e,E.emit()}},[d]),RW(()=>{T(6,R)},[]);let E=I.useMemo(()=>({subscribe:e=>(s.current.add(e),()=>s.current.delete(e)),snapshot:()=>n.current,setState:(e,t,i)=>{var a,o,s,u;if(!Object.is(n.current[e],t)){if(n.current[e]=t,"search"===e)P(),N(),T(1,M);else if("value"===e){if(document.activeElement.hasAttribute("cmdk-input")||document.activeElement.hasAttribute("cmdk-root")){let e=document.getElementById(k);e?e.focus():null==(a=document.getElementById(b))||a.focus()}if(T(7,()=>{var e;n.current.selectedItemId=null==(e=D())?void 0:e.id,E.emit()}),i||T(5,R),(null==(o=l.current)?void 0:o.value)!==void 0){null==(u=(s=l.current).onValueChange)||u.call(s,t??"");return}}E.emit()}},emit:()=>{s.current.forEach(e=>e())}}),[]),A=I.useMemo(()=>({value:(e,t,i)=>{var a;t!==(null==(a=o.current.get(e))?void 0:a.value)&&(o.current.set(e,{value:t,keywords:i}),n.current.filtered.items.set(e,C(t,i)),T(2,()=>{N(),E.emit()}))},item:(e,t)=>(i.current.add(e),t&&(a.current.has(t)?a.current.get(t).add(e):a.current.set(t,new Set([e]))),T(3,()=>{P(),N(),n.current.value||M(),E.emit()}),()=>{o.current.delete(e),i.current.delete(e),n.current.filtered.items.delete(e);let t=D();T(4,()=>{P(),(null==t?void 0:t.getAttribute("id"))===e&&M(),E.emit()})}),group:e=>(a.current.has(e)||a.current.set(e,new Set),()=>{o.current.delete(e),a.current.delete(e)}),filter:()=>l.current.shouldFilter,label:u||e["aria-label"],getDisablePointerSelection:()=>l.current.disablePointerSelection,listId:b,inputId:k,labelId:w,listInnerRef:_}),[]);function C(e,t){var i,a;let o=null!=(a=null==(i=l.current)?void 0:i.filter)?a:RM;return e?o(e,n.current.search,t):0}function N(){if(!n.current.search||!1===l.current.shouldFilter)return;let e=n.current.filtered.items,t=[];n.current.filtered.groups.forEach(n=>{let i=a.current.get(n),o=0;
543i.forEach(t=>{o=Math.max(e.get(t),o)}),t.push([n,o])});let i=_.current;L().sort((t,n)=>{var i,a;let o=t.getAttribute("id"),s=n.getAttribute("id");return(null!=(i=e.get(s))?i:0)-(null!=(a=e.get(o))?a:0)}).forEach(e=>{let t=e.closest(RS);t?t.appendChild(e.parentElement===t?e:e.closest(`${RS} > *`)):i.appendChild(e.parentElement===i?e:e.closest(`${RS} > *`))}),t.sort((e,t)=>t[1]-e[1]).forEach(e=>{var t;let n=null==(t=_.current)?void 0:t.querySelector(`${RE}[${RI}="${encodeURIComponent(e[0])}"]`);null==n||n.parentElement.appendChild(n)})}function M(){let e=L().find(e=>"true"!==e.getAttribute("aria-disabled")),t=null==e?void 0:e.getAttribute(RI);E.setState("value",t||void 0)}function P(){var e,t,s,u;if(!n.current.search||!1===l.current.shouldFilter){n.current.filtered.count=i.current.size;return}n.current.filtered.groups=new Set;let c=0;for(let a of i.current){let i=C(null!=(t=null==(e=o.current.get(a))?void 0:e.value)?t:"",null!=(u=null==(s=o.current.get(a))?void 0:s.keywords)?u:[]);n.current.filtered.items.set(a,i),i>0&&c++}for(let[e,t]of a.current)for(let i of t)if(n.current.filtered.items.get(i)>0){n.current.filtered.groups.add(e);break}n.current.filtered.count=c}function R(){var e,t,n;let i=D();i&&((null==(e=i.parentElement)?void 0:e.firstChild)===i&&(null==(n=null==(t=i.closest(RE))?void 0:t.querySelector('[cmdk-group-heading=""]'))||n.scrollIntoView({block:"nearest"})),i.scrollIntoView({block:"nearest"}))}function D(){var e;return null==(e=_.current)?void 0:e.querySelector(`${RA}[aria-selected="true"]`)}function L(){var e;return Array.from((null==(e=_.current)?void 0:e.querySelectorAll(RC))||[])}function O(e){let t=L()[e];t&&E.setState("value",t.getAttribute(RI))}function B(e){var t;let n=D(),i=L(),a=i.findIndex(e=>e===n),o=i[a+e];null!=(t=l.current)&&t.loop&&(o=a+e<0?i[i.length-1]:a+e===i.length?i[0]:i[a+e]),o&&E.setState("value",o.getAttribute(RI))}function j(e){let t=D(),n=null==t?void 0:t.closest(RE),i;for(;n&&!i;)i=null==(n=e>0?function(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return n;n=n.nextElementSibling}}(n,RE):function(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return n;n=n.previousElementSibling}}(n,RE))?void 0:n.querySelector(RC);i?E.setState("value",i.getAttribute(RI)):B(e)}let z=()=>O(L().length-1),F=e=>{e.preventDefault(),e.metaKey?z():e.altKey?j(1):B(1)},H=e=>{e.preventDefault(),e.metaKey?O(0):e.altKey?j(-1):B(-1)};return I.createElement(rI.div,{ref:t,tabIndex:-1,...v,"cmdk-root":"",onKeyDown:e=>{var t;null==(t=v.onKeyDown)||t.call(v,e);let n=e.nativeEvent.isComposing||229===e.keyCode;if(!(e.defaultPrevented||n))switch(e.key){case"n":case"j":x&&e.ctrlKey&&F(e);break;case"ArrowDown":F(e);break;case"p":case"k":x&&e.ctrlKey&&H(e);break;case"ArrowUp":H(e);break;case"Home":e.preventDefault(),O(0);break;case"End":e.preventDefault(),z();break;case"Enter":{e.preventDefault();let t=D();if(t){let e=new Event(RN);t.dispatchEvent(e)}}}}},I.createElement("label",{"cmdk-label":"",htmlFor:A.inputId,id:A.labelId,style:R$},u),RZ(e,e=>I.createElement(RD.Provider,{value:E},I.createElement(RP.Provider,{value:A},e))))}),Rj=I.forwardRef((e,t)=>{var n,i;let a=wM(),o=I.useRef(null),s=I.useContext(RO),l=RR(),u=RV(e),c=null!=(i=null==(n=u.current)?void 0:n.forceMount)?i:null==s?void 0:s.forceMount;RW(()=>{if(!c)return l.item(a,null==s?void 0:s.id)},[c]);let d=RX(a,o,[e.value,e.children,o],e.keywords),p=RL(),h=RK(e=>e.value&&e.value===d.current),m=RK(e=>!!c||!1===l.filter()||!e.search||e.filtered.items.get(a)>0);function f(){var e,t;g(),null==(t=(e=u.current).onSelect)||t.call(e,d.current)}function g(){p.setState("value",d.current,!0)}if(I.useEffect(()=>{let t=o.current;if(!(!t||e.disabled))return t.addEventListener(RN,f),()=>t.removeEventListener(RN,f)},[m,e.onSelect,e.disabled]),!m)return null;let{disabled:x,value:v,onSelect:b,forceMount:w,keywords:k,..._}=e;return I.createElement(rI.div,{ref:eG(o,t),..._,id:a,"cmdk-item":"",role:"option","aria-disabled":!!x,"aria-selected":!!h,"data-disabled":!!x,"data-selected":!!h,onPointerMove:x||l.getDisablePointerSelection()?void 0:g,onClick:x?void 0:f},e.children)}),Rz=I.forwardRef((e,t)=>
543{let{heading:n,children:i,forceMount:a,...o}=e,s=wM(),l=I.useRef(null),u=I.useRef(null),c=wM(),d=RR(),p=RK(e=>!!a||!1===d.filter()||!e.search||e.filtered.groups.has(s));RW(()=>d.group(s),[]),RX(s,l,[e.value,e.heading,u]);let h=I.useMemo(()=>({id:s,forceMount:a}),[a]);return I.createElement(rI.div,{ref:eG(l,t),...o,"cmdk-group":"",role:"presentation",hidden:!p||void 0},n&&I.createElement("div",{ref:u,"cmdk-group-heading":"","aria-hidden":!0,id:c},n),RZ(e,e=>I.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":n?c:void 0},I.createElement(RO.Provider,{value:h},e))))}),RF=I.forwardRef((e,t)=>{let{alwaysRender:n,...i}=e,a=I.useRef(null),o=RK(e=>!e.search);return n||o?I.createElement(rI.div,{ref:eG(a,t),...i,"cmdk-separator":"",role:"separator"}):null}),RH=I.forwardRef((e,t)=>{let{onValueChange:n,...i}=e,a=null!=e.value,o=RL(),s=RK(e=>e.search),l=RK(e=>e.selectedItemId),u=RR();return I.useEffect(()=>{null!=e.value&&o.setState("search",e.value)},[e.value]),I.createElement(rI.input,{ref:t,...i,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":u.listId,"aria-labelledby":u.labelId,"aria-activedescendant":l,id:u.inputId,type:"text",value:a?e.value:s,onChange:e=>{a||o.setState("search",e.target.value),null==n||n(e.target.value)}})}),RU=I.forwardRef((e,t)=>{let{children:n,label:i="Suggestions",...a}=e,o=I.useRef(null),s=I.useRef(null),l=RK(e=>e.selectedItemId),u=RR();return I.useEffect(()=>{if(s.current&&o.current){let e=s.current,t=o.current,n,i=new ResizeObserver(()=>{n=requestAnimationFrame(()=>{let n=e.offsetHeight;t.style.setProperty("--cmdk-list-height",n.toFixed(1)+"px")})});return i.observe(e),()=>{cancelAnimationFrame(n),i.unobserve(e)}}},[]),I.createElement(rI.div,{ref:eG(o,t),...a,"cmdk-list":"",role:"listbox",tabIndex:-1,"aria-activedescendant":l,"aria-label":i,id:u.listId},RZ(e,e=>I.createElement("div",{ref:eG(s,u.listInnerRef),"cmdk-list-sizer":""},e)))}),RG=I.forwardRef((e,t)=>{let{open:n,onOpenChange:i,overlayClassName:a,contentClassName:o,container:s,...l}=e;return I.createElement(P7,{open:n,onOpenChange:i},I.createElement(Rr,{container:s},I.createElement(Ra,{"cmdk-overlay":"",className:a}),I.createElement(Ru,{"aria-label":e.label,"cmdk-dialog":"",className:o},I.createElement(RB,{ref:t,...l}))))}),Rq=Object.assign(RB,{List:RU,Item:Rj,Input:RH,Group:Rz,Separator:RF,Dialog:RG,Empty:I.forwardRef((e,t)=>RK(e=>0===e.filtered.count)?I.createElement(rI.div,{ref:t,...e,"cmdk-empty":"",role:"presentation"}):null),Loading:I.forwardRef((e,t)=>{let{progress:n,children:i,label:a="Loading...",...o}=e;return I.createElement(rI.div,{ref:t,...o,"cmdk-loading":"",role:"progressbar","aria-valuenow":n,"aria-valuemin":0,"aria-valuemax":100,"aria-label":a},RZ(e,e=>I.createElement("div",{"aria-hidden":!0},e)))})});function RV(e){let t=I.useRef(e);return RW(()=>{t.current=e}),t}var RW=typeof window>"u"?I.useEffect:I.useLayoutEffect;function RY(e){let t=I.useRef();return void 0===t.current&&(t.current=e()),t}function RK(e){let t=RL(),n=()=>e(t.snapshot());return I.useSyncExternalStore(t.subscribe,n,n)}function RX(e,t,n,i=[]){let a=I.useRef(),o=RR();return RW(()=>{var s;let l=(()=>{var e;for(let t of n){if("string"==typeof t)return t.trim();if("object"==typeof t&&"current"in t)return t.current?null==(e=t.current.textContent)?void 0:e.trim():a.current}})(),u=i.map(e=>e.trim());o.value(e,l,u),null==(s=t.current)||s.setAttribute(RI,l),a.current=l}),a}var RQ=()=>
543{let[e,t]=I.useState(),n=RY(()=>new Map);return RW(()=>{n.current.forEach(e=>e()),n.current=new Map},[e]),(e,i)=>{n.current.set(e,i),t({})}};function RZ({asChild:e,children:t},n){let i;return e&&I.isValidElement(t)?I.cloneElement("function"==typeof(i=t.type)?i(t.props):"render"in i?i.render(t.props):t,{ref:t.ref},n(t.props.children)):n(t)}var R$={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};function RJ({...e}){return U.jsx(P7,{"data-slot":"dialog",...e})}function R0({...e}){return U.jsx(P9,{"data-slot":"dialog-trigger",...e})}function R1({...e}){return U.jsx(Rr,{"data-slot":"dialog-portal",...e})}function R2({className:e,...t}){return U.jsx(Ra,{"data-slot":"dialog-overlay",className:t8("data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 fixed inset-0 z-50 bg-black/50",e),...t})}function R4({className:e,children:t,showCloseButton:n=!0,...i}){return U.jsxs(R1,{"data-slot":"dialog-portal",children:[U.jsx(R2,{}),U.jsxs(Ru,{"data-slot":"dialog-content",className:t8("bg-background 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 fixed top-[50%] left-[50%] z-50 grid w-full max-w-[calc(100%-2rem)] translate-x-[-50%] translate-y-[-50%] gap-4 rounded-lg border p-6 shadow-lg duration-200 outline-none sm:max-w-lg",e),...i,children:[t,n&&U.jsxs(Rv,{"data-slot":"dialog-close",className:"ring-offset-background focus:ring-ring data-[state=open]:bg-accent data-[state=open]:text-muted-foreground absolute top-4 right-4 rounded-xs opacity-70 transition-opacity hover:opacity-100 focus:ring-2 focus:ring-offset-2 focus:outline-hidden disabled:pointer-events-none [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",children:[U.jsx(eL,{}),U.jsx("span",{className:"sr-only",children:"Close"})]})]})]})}function R5({className:e,...t}){return U.jsx("div",{"data-slot":"dialog-header",className:t8("flex flex-col gap-2 text-center sm:text-left",e),...t})}function R3({className:e,...t}){return U.jsx(Rm,{"data-slot":"dialog-title",className:t8("text-lg leading-none font-semibold",e),...t})}function R6({className:e,...t}){return U.jsx(Rg,{"data-slot":"dialog-description",className:t8("text-muted-foreground text-sm",e),...t})}function R7({className:e,...t}){return U.jsx(Rq,{"data-slot":"command",className:t8("bg-popover text-popover-foreground flex h-full w-full flex-col overflow-hidden rounded-md",e),...t})}function R8({title:e="Command Palette",description:t="Search for a command to run...",children:n,className:i,showCloseButton:a=!0,...o}){return U.jsxs(RJ,{...o,children:[U.jsxs(R5,{className:"sr-only",children:[U.jsx(R3,{children:e}),U.jsx(R6,{children:t})]}),U.jsx(R4,{className:t8("overflow-hidden p-0",i),showCloseButton:a,children:U.jsx(R7,{className:"[&_[cmdk-group-heading]]:text-muted-foreground **:data-[slot=command-input-wrapper]:h-12 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group]]:px-2 [&_[cmdk-group]:not([hidden])_~[cmdk-group]]:pt-0 [&_[cmdk-input-wrapper]_svg]:h-5 [&_[cmdk-input-wrapper]_svg]:w-5 [&_[cmdk-input]]:h-12 [&_[cmdk-item]]:px-2 [&_[cmdk-item]]:py-3 [&_[cmdk-item]_svg]:h-5 [&_[cmdk-item]_svg]:w-5",children:n})})]})}function R9({className:e,...t}){return U.jsxs("div",{"data-slot":"command-input-wrapper",className:"flex h-9 items-center gap-2 border-b px-3",children:[U.jsx(eC,{className:"size-4 shrink-0 opacity-50"}),U.jsx(Rq.Input,{"data-slot":"command-input",className:t8("placeholder:text-muted-foreground flex h-10 w-full rounded-md bg-transparent py-3 text-sm outline-hidden disabled:cursor-not-allowed disabled:opacity-50",e),...t})]})}function De({className:e,...t}){return U.jsx(Rq.List,{"data-slot":"command-list",className:t8("max-h-[300px] scroll-py-1 overflow-x-hidden overflow-y-auto",e),...t})}function Dt({...e}){return U.jsx(Rq.Empty,{"data-slot":"command-empty",className:"py-6 text-center text-sm",...e})}function Dn({className:e,...t}){return U.jsx(Rq.Group,{"data-slot":"command-group",className:t8("text-foreground [&_[cmdk-group-heading]]:text-muted-foreground overflow-hidden p-1 [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium",e),...t})}function Dr({className:e,...t}){return U.jsx(Rq.Separator,{"data-slot":"command-separator",className:t8("bg-border -mx-1 h-px",e),...t})}function Di({className:e,...t}){return U.jsx(Rq.Item,{"data-slot":"command-item",className:t8("data-[selected=true]:bg-accent data-[selected=true]:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled=true]:pointer-events-none data-[disabled=true]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...t})}function Da({className:e,...t}){return U.jsx("span",{"data-slot":"command-shortcut",className:t8("text-muted-foreground ml-auto text-xs tracking-widest",e),...t})}function Do(e){let t=function(e){let t=I.forwardRef((e,t)=>
543{let{children:n,...i}=e;if(I.isValidElement(n)){var a,o;let e,s;let l=(e=null==(a=Object.getOwnPropertyDescriptor(n.props,"ref"))?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null==(o=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:o.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let i in t){let a=e[i],o=t[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==I.Fragment&&(u.ref=t?eG(t,l):l),I.cloneElement(n,u)}return I.Children.count(n)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=I.forwardRef((e,n)=>{let{children:i,...a}=e,o=I.Children.toArray(i),s=o.find(Dl);if(s){let e=s.props.children,i=o.map(t=>t===s?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t);return U.jsx(t,{...a,ref:n,children:I.isValidElement(e)?I.cloneElement(e,void 0,i):null})}return U.jsx(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}var Ds=Symbol("radix.slottable");function Dl(e){return I.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===Ds}function Du(e){let t=e+"CollectionProvider",[n,i]=nn(t),[a,o]=n(t,{collectionRef:{current:null},itemMap:new Map}),s=e=>{let{scope:t,children:n}=e,i=I.useRef(null),o=I.useRef(new Map).current;return U.jsx(a,{scope:t,itemMap:o,collectionRef:i,children:n})};s.displayName=t;let l=e+"CollectionSlot",u=Do(l),c=I.forwardRef((e,t)=>{let{scope:n,children:i}=e,a=eq(t,o(l,n).collectionRef);return U.jsx(u,{ref:a,children:i})});c.displayName=l;let d=e+"CollectionItemSlot",p="data-radix-collection-item",h=Do(d),m=I.forwardRef((e,t)=>{let{scope:n,children:i,...a}=e,s=I.useRef(null),l=eq(t,s),u=o(d,n);return I.useEffect(()=>(u.itemMap.set(s,{ref:s,...a}),()=>void u.itemMap.delete(s))),U.jsx(h,{[p]:"",ref:l,children:i})});return m.displayName=d,[{Provider:s,Slot:c,ItemSlot:m},function(t){let n=o(e+"CollectionConsumer",t);return I.useCallback(()=>{let e=n.collectionRef.current;if(!e)return[];let t=Array.from(e.querySelectorAll(`[${p}]`));return Array.from(n.itemMap.values()).sort((e,n)=>t.indexOf(e.ref.current)-t.indexOf(n.ref.current))},[n.collectionRef,n.itemMap])},i]}var Dc=I.createContext(void 0);function Dd(e){let t=I.useContext(Dc);return e||t||"ltr"}var Dp="rovingFocusGroup.onEntryFocus",Dh={bubbles:!1,cancelable:!0},Dm="RovingFocusGroup",[Df,Dg,Dx]=Du(Dm),[Dv,Dy]=nn(Dm,[Dx]),[Db,Dw]=Dv(Dm),Dk=I.forwardRef((e,t)=>U.jsx(Df.Provider,{scope:e.__scopeRovingFocusGroup,children:U.jsx(Df.Slot,{scope:e.__scopeRovingFocusGroup,children:U.jsx(D_,{...e,ref:t})})}));Dk.displayName=Dm;var D_=I.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,orientation:i,loop:a=!1,dir:o,currentTabStopId:s,defaultCurrentTabStopId:l,onCurrentTabStopIdChange:u,onEntryFocus:c,preventScrollOnEntryFocus:d=!1,...p}=e,h=I.useRef(null),m=eq(t,h),f=Dd(o),[g,x]=na({prop:s,defaultProp:l??null,onChange:u,caller:Dm}),[v,b]=I.useState(!1),w=rR(c),k=Dg(n),_=I.useRef(!1),[T,E]=I.useState(0);return I.useEffect(()=>{let e=h.current;if(e)return e.addEventListener(Dp,w),()=>e.removeEventListener(Dp,w)},[w]),U.jsx(Db,{scope:n,orientation:i,dir:f,loop:a,currentTabStopId:g,onItemFocus:I.useCallback(e=>x(e),[x]),onItemShiftTab:I.useCallback(()=>b(!0),[]),onFocusableItemAdd:I.useCallback(()=>E(e=>e+1),[]),onFocusableItemRemove:I.useCallback(()=>E(e=>e-1),[]),children:U.jsx(rI.div,{tabIndex:v||0===T?-1:0,"data-orientation":i,...p,ref:m,style:{outline:"none",...e.style},onMouseDown:nt(e.onMouseDown,()=>{_.current=!0}),onFocus:nt(e.onFocus,e=>{let t=!_.current;if(e.target===e.currentTarget&&t&&!v){let t=new CustomEvent(Dp,Dh);if(e.currentTarget.dispatchEvent(t),!t.defaultPrevented){let e=k().filter(e=>e.focusable);DA([e.find(e=>e.active),e.find(e=>e.id===g),...e].filter(Boolean).map(e=>e.ref.current),d)}}_.current=!1}),onBlur:nt(e.onBlur,()=>b(!1))})})}),DT="RovingFocusGroupItem",DE=I.forwardRef((e,t)=>{let{__scopeRovingFocusGroup:n,focusable:i=!0,active:a=!1,tabStopId:o,children:s,...l}=e,u=wM(),c=o||u,d=Dw(DT,n),p=d.currentTabStopId===c,h=Dg(n),{onFocusableItemAdd:m,onFocusableItemRemove:f,currentTabStopId:g}=d;return I.useEffect(()=>{if(i)return m(),()=>f()},[i,m,f]),U.jsx(Df.ItemSlot,{scope:n,id:c,focusable:i,active:a,children:U.jsx(rI.span,{tabIndex:p?0:-1,"data-orientation":d.orientation,...l,ref:t,onMouseDown:nt(e.onMouseDown,e=>{i?d.onItemFocus(c):e.preventDefault()}),onFocus:nt(e.onFocus,()=>d.onItemFocus(c)),onKeyDown:nt(e.onKeyDown,e=>{if("Tab"===e.key&&e.shiftKey){d.onItemShiftTab();return}if(e.target!==e.currentTarget)return;let t=function(e,t,n){var i;let a=(i=e.key,"rtl"!==n?i:"ArrowLeft"===i?"ArrowRight":"ArrowRight"===i?"ArrowLeft":i);if(!("vertical"===t&&["ArrowLeft","ArrowRight"].includes(a))&&!("horizontal"===t&&["ArrowUp","ArrowDown"].includes(a)))return DS[a]}(e,d.orientation,d.dir);if(void 0!==t){if(e.metaKey||e.ctrlKey||e.altKey||e.shiftKey)return;e.preventDefault();let a=h().filter(e=>
543e.focusable).map(e=>e.ref.current);if("last"===t)a.reverse();else if("prev"===t||"next"===t){var n,i;"prev"===t&&a.reverse();let o=a.indexOf(e.currentTarget);a=d.loop?(n=a,i=o+1,n.map((e,t)=>n[(i+t)%n.length])):a.slice(o+1)}setTimeout(()=>DA(a))}}),children:"function"==typeof s?s({isCurrentTabStop:p,hasTabStop:null!=g}):s})})});DE.displayName=DT;var DS={ArrowLeft:"prev",ArrowUp:"prev",ArrowRight:"next",ArrowDown:"next",PageUp:"first",Home:"first",PageDown:"last",End:"last"};function DA(e,t=!1){let n=document.activeElement;for(let i of e)if(i===n||(i.focus({preventScroll:t}),document.activeElement!==n))return}var DC=Symbol("radix.slottable");function DN(e){return I.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===DC}var DI=["Enter"," "],DM=["ArrowUp","PageDown","End"],DP=["ArrowDown","PageUp","Home",...DM],DR={ltr:[...DI,"ArrowRight"],rtl:[...DI,"ArrowLeft"]},DD={ltr:["ArrowLeft"],rtl:["ArrowRight"]},DL="Menu",[DO,DB,Dj]=Du(DL),[Dz,DF]=nn(DL,[Dj,rO,Dy]),DH=rO(),DU=Dy(),[DG,Dq]=Dz(DL),[DV,DW]=Dz(DL),DY=e=>{let{__scopeMenu:t,open:n=!1,children:i,dir:a,onOpenChange:o,modal:s=!0}=e,l=DH(t),[u,c]=I.useState(null),d=I.useRef(!1),p=rR(o),h=Dd(a);return I.useEffect(()=>{let e=()=>{d.current=!0,document.addEventListener("pointerdown",t,{capture:!0,once:!0}),document.addEventListener("pointermove",t,{capture:!0,once:!0})},t=()=>d.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})}},[]),U.jsx(rz,{...l,children:U.jsx(DG,{scope:t,open:n,onOpenChange:p,content:u,onContentChange:c,children:U.jsx(DV,{scope:t,onClose:I.useCallback(()=>p(!1),[p]),isUsingKeyboardRef:d,dir:h,modal:s,children:i})})})};DY.displayName=DL;var DK=I.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e,a=DH(n);return U.jsx(rH,{...a,...i,ref:t})});DK.displayName="MenuAnchor";var DX="MenuPortal",[DQ,DZ]=Dz(DX,{forceMount:void 0}),D$=e=>{let{__scopeMenu:t,forceMount:n,children:i,container:a}=e,o=Dq(DX,t);return U.jsx(DQ,{scope:t,forceMount:n,children:U.jsx(rJ,{present:n||o.open,children:U.jsx(r$,{asChild:!0,container:a,children:i})})})};D$.displayName=DX;var DJ="MenuContent",[D0,D1]=Dz(DJ),D2=I.forwardRef((e,t)=>{let n=DZ(DJ,e.__scopeMenu),{forceMount:i=n.forceMount,...a}=e,o=Dq(DJ,e.__scopeMenu),s=DW(DJ,e.__scopeMenu);return U.jsx(DO.Provider,{scope:e.__scopeMenu,children:U.jsx(rJ,{present:i||o.open,children:U.jsx(DO.Slot,{scope:e.__scopeMenu,children:s.modal?U.jsx(D4,{...a,ref:t}):U.jsx(D5,{...a,ref:t})})})})}),D4=I.forwardRef((e,t)=>{let n=Dq(DJ,e.__scopeMenu),i=I.useRef(null),a=eq(t,i);return I.useEffect(()=>{let e=i.current;if(e)return P0(e)},[]),U.jsx(D6,{...e,ref:a,trapFocus:n.open,disableOutsidePointerEvents:n.open,disableOutsideScroll:!0,onFocusOutside:nt(e.onFocusOutside,e=>e.preventDefault(),{checkForDefaultPrevented:!1}),onDismiss:()=>n.onOpenChange(!1)})}),D5=I.forwardRef((e,t)=>{let n=Dq(DJ,e.__scopeMenu);return U.jsx(D6,{...e,ref:t,trapFocus:!1,disableOutsidePointerEvents:!1,disableOutsideScroll:!1,onDismiss:()=>n.onOpenChange(!1)})}),D3=function(e){let t=function(e){let t=I.forwardRef((e,t)=>{let{children:n,...i}=e;if(I.isValidElement(n)){var a,o;let e,s;let l=(e=null==(a=Object.getOwnPropertyDescriptor(n.props,"ref"))?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null==(o=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:o.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let i in t){let a=e[i],o=t[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==I.Fragment&&(u.ref=t?eG(t,l):l),I.cloneElement(n,u)}return I.Children.count(n)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=I.forwardRef((e,n)=>{let{children:i,...a}=e,o=I.Children.toArray(i),s=o.find(DN);if(s){let e=s.props.children,i=o.map(t=>t===s?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t);return U.jsx(t,{...a,ref:n,children:I.isValidElement(e)?I.cloneElement(e,void 0,i):null})}return U.jsx(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}("MenuContent.ScrollLock"),D6=I.forwardRef((e,t)=>
543{let{__scopeMenu:n,loop:i=!1,trapFocus:a,onOpenAutoFocus:o,onCloseAutoFocus:s,disableOutsidePointerEvents:l,onEntryFocus:u,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,onDismiss:m,disableOutsideScroll:f,...g}=e,x=Dq(DJ,n),v=DW(DJ,n),b=DH(n),w=DU(n),k=DB(n),[_,T]=I.useState(null),E=I.useRef(null),A=eq(t,E,x.onContentChange),C=I.useRef(0),N=I.useRef(""),M=I.useRef(0),P=I.useRef(null),R=I.useRef("right"),D=I.useRef(0),L=f?PY:I.Fragment,O=e=>{var t,n;let i=N.current+e,a=k().filter(e=>!e.disabled),o=document.activeElement,s=null==(t=a.find(e=>e.ref.current===o))?void 0:t.textValue,l=function(e,t,n){var i;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(i=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(i+n)%e.length]));1===a.length&&(o=o.filter(e=>e!==n));let s=o.find(e=>e.toLowerCase().startsWith(a.toLowerCase()));return s!==n?s:void 0}(a.map(e=>e.textValue),i,s),u=null==(n=a.find(e=>e.textValue===l))?void 0:n.ref.current;(function e(t){N.current=t,window.clearTimeout(C.current),""!==t&&(C.current=window.setTimeout(()=>e(""),1e3))})(i),u&&setTimeout(()=>u.focus())};I.useEffect(()=>()=>window.clearTimeout(C.current),[]),Ps();let B=I.useCallback(e=>{var t,n,i;return R.current===(null==(t=P.current)?void 0:t.side)&&!!(i=null==(n=P.current)?void 0:n.area)&&function(e,t){let{x:n,y:i}=e,a=!1;for(let e=0,o=t.length-1;e<t.length;o=e++){let s=t[e],l=t[o],u=s.x,c=s.y,d=l.x,p=l.y;c>i!=p>i&&n<(d-u)*(i-c)/(p-c)+u&&(a=!a)}return a}({x:e.clientX,y:e.clientY},i)},[]);return U.jsx(D0,{scope:n,searchRef:N,onItemEnter:I.useCallback(e=>{B(e)&&e.preventDefault()},[B]),onItemLeave:I.useCallback(e=>{var t;B(e)||(null==(t=E.current)||t.focus(),T(null))},[B]),onTriggerLeave:I.useCallback(e=>{B(e)&&e.preventDefault()},[B]),pointerGraceTimerRef:M,onPointerGraceIntentChange:I.useCallback(e=>{P.current=e},[]),children:U.jsx(L,{...f?{as:D3,allowPinchZoom:!0}:void 0,children:U.jsx(Pe,{asChild:!0,trapped:a,onMountAutoFocus:nt(o,e=>{var t;e.preventDefault(),null==(t=E.current)||t.focus({preventScroll:!0})}),onUnmountAutoFocus:s,children:U.jsx(r6,{asChild:!0,disableOutsidePointerEvents:l,onEscapeKeyDown:c,onPointerDownOutside:d,onFocusOutside:p,onInteractOutside:h,onDismiss:m,children:U.jsx(Dk,{asChild:!0,...w,dir:v.dir,orientation:"vertical",loop:i,currentTabStopId:_,onCurrentTabStopIdChange:T,onEntryFocus:nt(u,e=>{v.isUsingKeyboardRef.current||e.preventDefault()}),preventScrollOnEntryFocus:!0,children:U.jsx(rV,{role:"menu","aria-orientation":"vertical","data-state":Lk(x.open),"data-radix-menu-content":"",dir:v.dir,...b,...g,ref:A,style:{outline:"none",...g.style},onKeyDown:nt(g.onKeyDown,e=>{let t=e.target.closest("[data-radix-menu-content]")===e.currentTarget,n=e.ctrlKey||e.altKey||e.metaKey,i=1===e.key.length;t&&("Tab"===e.key&&e.preventDefault(),!n&&i&&O(e.key));let a=E.current;if(e.target!==a||!DP.includes(e.key))return;e.preventDefault();let o=k().filter(e=>!e.disabled).map(e=>e.ref.current);DM.includes(e.key)&&o.reverse(),function(e){let t=document.activeElement;for(let n of e)if(n===t||(n.focus(),document.activeElement!==t))return}(o)}),onBlur:nt(e.onBlur,e=>{e.currentTarget.contains(e.target)||(window.clearTimeout(C.current),N.current="")}),onPointerMove:nt(e.onPointerMove,LE(e=>{let t=e.target,n=D.current!==e.clientX;if(e.currentTarget.contains(t)&&n){let t=e.clientX>D.current?"right":"left";R.current=t,D.current=e.clientX}}))})})})})})})});D2.displayName=DJ;var D7=I.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e;return U.jsx(rI.div,{role:"group",...i,ref:t})});D7.displayName="MenuGroup";var D8=I.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e;return U.jsx(rI.div,{...i,ref:t})});D8.displayName="MenuLabel";var D9="MenuItem",Le="menu.itemSelect",Lt=I.forwardRef((e,t)=>{let{disabled:n=!1,onSelect:i,...a}=e,o=I.useRef(null),s=DW(D9,e.__scopeMenu),l=D1(D9,e.__scopeMenu),u=eq(t,o),c=I.useRef(!1);return U.jsx(Ln,{...a,ref:u,disabled:n,onClick:nt(e.onClick,()=>{let e=o.current;if(!n&&e){let t=new CustomEvent(Le,{bubbles:!0,cancelable:!0});e.addEventListener(Le,e=>null==i?void 0:i(e),{once:!0}),rM(e,t),t.defaultPrevented?c.current=!1:s.onClose()}}),onPointerDown:t=>{var n;null==(n=e.onPointerDown)||n.call(e,t),c.current=!0},onPointerUp:nt(e.onPointerUp,e=>{var t;c.current||null==(t=e.currentTarget)||t.click()}),onKeyDown:nt(e.onKeyDown,e=>{let t=""!==l.searchRef.current;
543n||t&&" "===e.key||DI.includes(e.key)&&(e.currentTarget.click(),e.preventDefault())})})});Lt.displayName=D9;var Ln=I.forwardRef((e,t)=>{let{__scopeMenu:n,disabled:i=!1,textValue:a,...o}=e,s=D1(D9,n),l=DU(n),u=I.useRef(null),c=eq(t,u),[d,p]=I.useState(!1),[h,m]=I.useState("");return I.useEffect(()=>{let e=u.current;e&&m((e.textContent??"").trim())},[o.children]),U.jsx(DO.ItemSlot,{scope:n,disabled:i,textValue:a??h,children:U.jsx(DE,{asChild:!0,...l,focusable:!i,children:U.jsx(rI.div,{role:"menuitem","data-highlighted":d?"":void 0,"aria-disabled":i||void 0,"data-disabled":i?"":void 0,...o,ref:c,onPointerMove:nt(e.onPointerMove,LE(e=>{i?s.onItemLeave(e):(s.onItemEnter(e),e.defaultPrevented||e.currentTarget.focus({preventScroll:!0}))})),onPointerLeave:nt(e.onPointerLeave,LE(e=>s.onItemLeave(e))),onFocus:nt(e.onFocus,()=>p(!0)),onBlur:nt(e.onBlur,()=>p(!1))})})})}),Lr=I.forwardRef((e,t)=>{let{checked:n=!1,onCheckedChange:i,...a}=e;return U.jsx(Ld,{scope:e.__scopeMenu,checked:n,children:U.jsx(Lt,{role:"menuitemcheckbox","aria-checked":L_(n)?"mixed":n,...a,ref:t,"data-state":LT(n),onSelect:nt(a.onSelect,()=>null==i?void 0:i(!!L_(n)||!n),{checkForDefaultPrevented:!1})})})});Lr.displayName="MenuCheckboxItem";var Li="MenuRadioGroup",[La,Lo]=Dz(Li,{value:void 0,onValueChange:()=>{}}),Ls=I.forwardRef((e,t)=>{let{value:n,onValueChange:i,...a}=e,o=rR(i);return U.jsx(La,{scope:e.__scopeMenu,value:n,onValueChange:o,children:U.jsx(D7,{...a,ref:t})})});Ls.displayName=Li;var Ll="MenuRadioItem",Lu=I.forwardRef((e,t)=>{let{value:n,...i}=e,a=Lo(Ll,e.__scopeMenu),o=n===a.value;return U.jsx(Ld,{scope:e.__scopeMenu,checked:o,children:U.jsx(Lt,{role:"menuitemradio","aria-checked":o,...i,ref:t,"data-state":LT(o),onSelect:nt(i.onSelect,()=>{var e;return null==(e=a.onValueChange)?void 0:e.call(a,n)},{checkForDefaultPrevented:!1})})})});Lu.displayName=Ll;var Lc="MenuItemIndicator",[Ld,Lp]=Dz(Lc,{checked:!1}),Lh=I.forwardRef((e,t)=>{let{__scopeMenu:n,forceMount:i,...a}=e,o=Lp(Lc,n);return U.jsx(rJ,{present:i||L_(o.checked)||!0===o.checked,children:U.jsx(rI.span,{...a,ref:t,"data-state":LT(o.checked)})})});Lh.displayName=Lc;var Lm=I.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e;return U.jsx(rI.div,{role:"separator","aria-orientation":"horizontal",...i,ref:t})});Lm.displayName="MenuSeparator";var Lf=I.forwardRef((e,t)=>{let{__scopeMenu:n,...i}=e,a=DH(n);return U.jsx(rK,{...a,...i,ref:t})});Lf.displayName="MenuArrow";var[Lg,Lx]=Dz("MenuSub"),Lv="MenuSubTrigger",Ly=I.forwardRef((e,t)=>{let n=Dq(Lv,e.__scopeMenu),i=DW(Lv,e.__scopeMenu),a=Lx(Lv,e.__scopeMenu),o=D1(Lv,e.__scopeMenu),s=I.useRef(null),{pointerGraceTimerRef:l,onPointerGraceIntentChange:u}=o,c={__scopeMenu:e.__scopeMenu},d=I.useCallback(()=>{s.current&&window.clearTimeout(s.current),s.current=null},[]);return I.useEffect(()=>d,[d]),I.useEffect(()=>{let e=l.current;return()=>{window.clearTimeout(e),u(null)}},[l,u]),U.jsx(DK,{asChild:!0,...c,children:U.jsx(Ln,{id:a.triggerId,"aria-haspopup":"menu","aria-expanded":n.open,"aria-controls":a.contentId,"data-state":Lk(n.open),...e,ref:eG(t,a.onTriggerChange),onClick:t=>{var i;null==(i=e.onClick)||i.call(e,t),!(e.disabled||t.defaultPrevented)&&(t.currentTarget.focus(),n.open||n.onOpenChange(!0))},onPointerMove:nt(e.onPointerMove,LE(t=>{o.onItemEnter(t),t.defaultPrevented||e.disabled||n.open||s.current||(o.onPointerGraceIntentChange(null),s.current=window.setTimeout(()=>{n.onOpenChange(!0),d()},100))})),onPointerLeave:nt(e.onPointerLeave,LE(e=>{var t,i;d();let a=null==(t=n.content)?void 0:t.getBoundingClientRect();if(a){let t=null==(i=n.content)?void 0:i.dataset.side,s="right"===t,u=a[s?"left":"right"],c=a[s?"right":"left"];o.onPointerGraceIntentChange({area:[{x:e.clientX+(s?-5:5),y:e.clientY},{x:u,y:a.top},{x:c,y:a.top},{x:c,y:a.bottom},{x:u,y:a.bottom}],side:t}),window.clearTimeout(l.current),l.current=window.setTimeout(()=>o.onPointerGraceIntentChange(null),300)}else{if(o.onTriggerLeave(e),e.defaultPrevented)return;o.onPointerGraceIntentChange(null)}})),onKeyDown:nt(e.onKeyDown,t=>{var a;let s=""!==o.searchRef.current;e.disabled||s&&" "===t.key||DR[i.dir].includes(t.key)&&(n.onOpenChange(!0),null==(a=n.content)||a.focus(),t.preventDefault())})})})});Ly.displayName=Lv;var Lb="MenuSubContent",Lw=I.forwardRef((e,t)=>
543{let n=DZ(DJ,e.__scopeMenu),{forceMount:i=n.forceMount,...a}=e,o=Dq(DJ,e.__scopeMenu),s=DW(DJ,e.__scopeMenu),l=Lx(Lb,e.__scopeMenu),u=I.useRef(null),c=eq(t,u);return U.jsx(DO.Provider,{scope:e.__scopeMenu,children:U.jsx(rJ,{present:i||o.open,children:U.jsx(DO.Slot,{scope:e.__scopeMenu,children:U.jsx(D6,{id:l.contentId,"aria-labelledby":l.triggerId,...a,ref:c,align:"start",side:"rtl"===s.dir?"left":"right",disableOutsidePointerEvents:!1,disableOutsideScroll:!1,trapFocus:!1,onOpenAutoFocus:e=>{var t;s.isUsingKeyboardRef.current&&(null==(t=u.current)||t.focus()),e.preventDefault()},onCloseAutoFocus:e=>e.preventDefault(),onFocusOutside:nt(e.onFocusOutside,e=>{e.target!==l.trigger&&o.onOpenChange(!1)}),onEscapeKeyDown:nt(e.onEscapeKeyDown,e=>{s.onClose(),e.preventDefault()}),onKeyDown:nt(e.onKeyDown,e=>{var t;let n=e.currentTarget.contains(e.target),i=DD[s.dir].includes(e.key);n&&i&&(o.onOpenChange(!1),null==(t=l.trigger)||t.focus(),e.preventDefault())})})})})})});function Lk(e){return e?"open":"closed"}function L_(e){return"indeterminate"===e}function LT(e){return L_(e)?"indeterminate":e?"checked":"unchecked"}function LE(e){return t=>"mouse"===t.pointerType?e(t):void 0}Lw.displayName=Lb;var LS="DropdownMenu",[LA]=nn(LS,[DF]),LC=DF(),[LN,LI]=LA(LS),LM=e=>{let{__scopeDropdownMenu:t,children:n,dir:i,open:a,defaultOpen:o,onOpenChange:s,modal:l=!0}=e,u=LC(t),c=I.useRef(null),[d,p]=na({prop:a,defaultProp:o??!1,onChange:s,caller:LS});return U.jsx(LN,{scope:t,triggerId:wM(),triggerRef:c,contentId:wM(),open:d,onOpenChange:p,onOpenToggle:I.useCallback(()=>p(e=>!e),[p]),modal:l,children:U.jsx(DY,{...u,open:d,onOpenChange:p,dir:i,modal:l,children:n})})};LM.displayName=LS;var LP="DropdownMenuTrigger",LR=I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,disabled:i=!1,...a}=e,o=LI(LP,n),s=LC(n);return U.jsx(DK,{asChild:!0,...s,children:U.jsx(rI.button,{type:"button",id:o.triggerId,"aria-haspopup":"menu","aria-expanded":o.open,"aria-controls":o.open?o.contentId:void 0,"data-state":o.open?"open":"closed","data-disabled":i?"":void 0,disabled:i,...a,ref:eG(t,o.triggerRef),onPointerDown:nt(e.onPointerDown,e=>{!i&&0===e.button&&!1===e.ctrlKey&&(o.onOpenToggle(),o.open||e.preventDefault())}),onKeyDown:nt(e.onKeyDown,e=>{i||(["Enter"," "].includes(e.key)&&o.onOpenToggle(),"ArrowDown"===e.key&&o.onOpenChange(!0),["Enter"," ","ArrowDown"].includes(e.key)&&e.preventDefault())})})})});LR.displayName=LP;var LD=e=>{let{__scopeDropdownMenu:t,...n}=e,i=LC(t);return U.jsx(D$,{...i,...n})};LD.displayName="DropdownMenuPortal";var LL="DropdownMenuContent",LO=I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LI(LL,n),o=LC(n),s=I.useRef(!1);return U.jsx(D2,{id:a.contentId,"aria-labelledby":a.triggerId,...o,...i,ref:t,onCloseAutoFocus:nt(e.onCloseAutoFocus,e=>{var t;s.current||null==(t=a.triggerRef.current)||t.focus(),s.current=!1,e.preventDefault()}),onInteractOutside:nt(e.onInteractOutside,e=>{let t=e.detail.originalEvent,n=0===t.button&&!0===t.ctrlKey,i=2===t.button||n;(!a.modal||i)&&(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)"}})});LO.displayName=LL,I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(D7,{...a,...i,ref:t})}).displayName="DropdownMenuGroup";var LB=I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(D8,{...a,...i,ref:t})});LB.displayName="DropdownMenuLabel";var Lj=I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(Lt,{...a,...i,ref:t})});Lj.displayName="DropdownMenuItem",I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(Lr,{...a,...i,ref:t})}).displayName="DropdownMenuCheckboxItem",I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(Ls,{...a,...i,ref:t})}).displayName="DropdownMenuRadioGroup",I.forwardRef((e,t)=>
543{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(Lu,{...a,...i,ref:t})}).displayName="DropdownMenuRadioItem",I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(Lh,{...a,...i,ref:t})}).displayName="DropdownMenuItemIndicator";var Lz=I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(Lm,{...a,...i,ref:t})});function LF({...e}){return U.jsx(LM,{"data-slot":"dropdown-menu",...e})}function LH({...e}){return U.jsx(LR,{"data-slot":"dropdown-menu-trigger",...e})}function LU({className:e,sideOffset:t=4,...n}){return U.jsx(LD,{children:U.jsx(LO,{"data-slot":"dropdown-menu-content",sideOffset:t,className:t8("bg-popover text-popover-foreground 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 z-50 max-h-(--radix-dropdown-menu-content-available-height) min-w-[8rem] origin-(--radix-dropdown-menu-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border p-1 shadow-md",e),...n})})}function LG({className:e,inset:t,variant:n="default",...i}){return U.jsx(Lj,{"data-slot":"dropdown-menu-item","data-inset":t,"data-variant":n,className:t8("focus:bg-accent focus:text-accent-foreground data-[variant=destructive]:text-destructive data-[variant=destructive]:focus:bg-destructive/10 dark:data-[variant=destructive]:focus:bg-destructive/20 data-[variant=destructive]:focus:text-destructive data-[variant=destructive]:*:[svg]:!text-destructive [&_svg:not([class*='text-'])]:text-muted-foreground relative flex cursor-default items-center gap-2 rounded-sm px-2 py-1.5 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 data-[inset]:pl-8 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i})}function Lq({className:e,inset:t,...n}){return U.jsx(LB,{"data-slot":"dropdown-menu-label","data-inset":t,className:t8("px-2 py-1.5 text-sm font-medium data-[inset]:pl-8",e),...n})}function LV({className:e,...t}){return U.jsx(Lz,{"data-slot":"dropdown-menu-separator",className:t8("bg-border -mx-1 my-1 h-px",e),...t})}function LW({className:e,type:t,...n}){return U.jsx("input",{type:t,"data-slot":"input",className:t8("file:text-foreground placeholder:text-muted-foreground selection:bg-primary selection:text-primary-foreground dark:bg-input/30 border-input h-9 w-full min-w-0 rounded-md border bg-transparent px-3 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 md:text-sm","focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px]","aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive",e),...n})}function LY({className:e,...t}){return U.jsx("textarea",{"data-slot":"textarea",className:t8("border-input placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-transparent px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 md:text-sm",e),...t})}function LK({className:e,...t}){return U.jsx("div",{"data-slot":"input-group",role:"group",className:t8("group/input-group border-input dark:bg-input/30 relative flex w-full items-center rounded-md border shadow-xs transition-[color,box-shadow] outline-none","h-9 min-w-0 has-[>textarea]:h-auto","has-[>[data-align=inline-start]]:[&>input]:pl-2","has-[>[data-align=inline-end]]:[&>input]:pr-2","has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3","has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3","has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-[3px]","has-[[data-slot][aria-invalid=true]]:ring-destructive/20 has-[[data-slot][aria-invalid=true]]:border-destructive dark:has-[[data-slot][aria-invalid=true]]:ring-destructive/40",e),...t})}Lz.displayName="DropdownMenuSeparator",I.forwardRef((e,t)=>
543{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(Lf,{...a,...i,ref:t})}).displayName="DropdownMenuArrow",I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(Ly,{...a,...i,ref:t})}).displayName="DropdownMenuSubTrigger",I.forwardRef((e,t)=>{let{__scopeDropdownMenu:n,...i}=e,a=LC(n);return U.jsx(Lw,{...a,...i,ref:t,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)"}})}).displayName="DropdownMenuSubContent";let LX=e0("text-muted-foreground flex h-auto cursor-text items-center justify-center gap-2 py-1.5 text-sm font-medium select-none [&>svg:not([class*='size-'])]:size-4 [&>kbd]:rounded-[calc(var(--radius)-5px)] group-data-[disabled=true]/input-group:opacity-50",{variants:{align:{"inline-start":"order-first pl-3 has-[>button]:ml-[-0.45rem] has-[>kbd]:ml-[-0.35rem]","inline-end":"order-last pr-3 has-[>button]:mr-[-0.45rem] has-[>kbd]:mr-[-0.35rem]","block-start":"order-first w-full justify-start px-3 pt-3 [.border-b]:pb-3 group-has-[>input]/input-group:pt-2.5","block-end":"order-last w-full justify-start px-3 pb-3 [.border-t]:pt-3 group-has-[>input]/input-group:pb-2.5"}},defaultVariants:{align:"inline-start"}});function LQ({className:e,align:t="inline-start",...n}){return U.jsx("div",{role:"group","data-slot":"input-group-addon","data-align":t,className:t8(LX({align:t}),e),onClick:e=>{var t,n;e.target.closest("button")||null==(n=null==(t=e.currentTarget.parentElement)?void 0:t.querySelector("input"))||n.focus()},...n})}let LZ=e0("text-sm shadow-none flex gap-2 items-center",{variants:{size:{xs:"h-6 gap-1 px-2 rounded-[calc(var(--radius)-5px)] [&>svg:not([class*='size-'])]:size-3.5 has-[>svg]:px-2",sm:"h-8 px-2.5 gap-1.5 rounded-md has-[>svg]:px-2.5","icon-xs":"size-6 rounded-[calc(var(--radius)-5px)] p-0 has-[>svg]:p-0","icon-sm":"size-8 p-0 has-[>svg]:p-0"}},defaultVariants:{size:"xs"}});function L$({className:e,type:t="button",variant:n="ghost",size:i="xs",...a}){return U.jsx(ne,{type:t,"data-size":i,variant:n,className:t8(LZ({size:i}),e),...a})}function LJ({className:e,...t}){return U.jsx(LY,{"data-slot":"input-group-control",className:t8("flex-1 resize-none rounded-none border-0 bg-transparent py-3 shadow-none focus-visible:ring-0 dark:bg-transparent",e),...t})}function L0(e,[t,n]){return Math.min(n,Math.max(t,e))}var L1=Symbol("radix.slottable");function L2(e){return I.isValidElement(e)&&"function"==typeof e.type&&"__radixId"in e.type&&e.type.__radixId===L1}var L4=[" ","Enter","ArrowUp","ArrowDown"],L5=[" ","Enter"],L3="Select",[L6,L7,L8]=Du(L3),[L9]=nn(L3,[L8,rO]),Oe=rO(),[Ot,On]=L9(L3),[Or,Oi]=L9(L3),Oa=e=>{let{__scopeSelect:t,children:n,open:i,defaultOpen:a,onOpenChange:o,value:s,defaultValue:l,onValueChange:u,dir:c,name:d,autoComplete:p,disabled:h,required:m,form:f}=e,g=Oe(t),[x,v]=I.useState(null),[b,w]=I.useState(null),[k,_]=I.useState(!1),T=Dd(c),[E,A]=na({prop:i,defaultProp:a??!1,onChange:o,caller:L3}),[C,N]=na({prop:s,defaultProp:l,onChange:u,caller:L3}),M=I.useRef(null),P=!x||f||!!x.closest("form"),[R,D]=I.useState(new Set),L=Array.from(R).map(e=>e.props.value).join(";");return U.jsx(rz,{...g,children:U.jsxs(Ot,{required:m,scope:t,trigger:x,onTriggerChange:v,valueNode:b,onValueNodeChange:w,valueNodeHasChildren:k,onValueNodeHasChildrenChange:_,contentId:wM(),value:C,onValueChange:N,open:E,onOpenChange:A,dir:T,triggerPointerDownPosRef:M,disabled:h,children:[U.jsx(L6.Provider,{scope:t,children:U.jsx(Or,{scope:e.__scopeSelect,onNativeOptionAdd:I.useCallback(e=>{D(t=>new Set(t).add(e))},[]),onNativeOptionRemove:I.useCallback(e=>{D(t=>{let n=new Set(t);return n.delete(e),n})},[]),children:n})}),P?U.jsxs(OU,{"aria-hidden":!0,required:m,tabIndex:-1,name:d,autoComplete:p,value:C,onChange:e=>N(e.target.value),disabled:h,form:f,children:[void 0===C?U.jsx("option",{value:""}):null,Array.from(R)]},L):null]})})};Oa.displayName=L3;var Oo="SelectTrigger",Os=I.forwardRef((e,t)=>
543{let{__scopeSelect:n,disabled:i=!1,...a}=e,o=Oe(n),s=On(Oo,n),l=s.disabled||i,u=eq(t,s.onTriggerChange),c=L7(n),d=I.useRef("touch"),[p,h,m]=Oq(e=>{let t=c().filter(e=>!e.disabled),n=t.find(e=>e.value===s.value),i=OV(t,e,n);void 0!==i&&s.onValueChange(i.value)}),f=e=>{l||(s.onOpenChange(!0),m()),e&&(s.triggerPointerDownPosRef.current={x:Math.round(e.pageX),y:Math.round(e.pageY)})};return U.jsx(rH,{asChild:!0,...o,children:U.jsx(rI.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":OG(s.value)?"":void 0,...a,ref:u,onClick:nt(a.onClick,e=>{e.currentTarget.focus(),"mouse"!==d.current&&f(e)}),onPointerDown:nt(a.onPointerDown,e=>{d.current=e.pointerType;let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),0===e.button&&!1===e.ctrlKey&&"mouse"===e.pointerType&&(f(e),e.preventDefault())}),onKeyDown:nt(a.onKeyDown,e=>{let t=""!==p.current;e.ctrlKey||e.altKey||e.metaKey||1!==e.key.length||h(e.key),!(t&&" "===e.key)&&L4.includes(e.key)&&(f(),e.preventDefault())})})})});Os.displayName=Oo;var Ol="SelectValue",Ou=I.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:a,children:o,placeholder:s="",...l}=e,u=On(Ol,n),{onValueNodeHasChildrenChange:c}=u,d=void 0!==o,p=eq(t,u.onValueNodeChange);return nr(()=>{c(d)},[c,d]),U.jsx(rI.span,{...l,ref:p,style:{pointerEvents:"none"},children:OG(u.value)?U.jsx(U.Fragment,{children:s}):o})});Ou.displayName=Ol;var Oc=I.forwardRef((e,t)=>{let{__scopeSelect:n,children:i,...a}=e;return U.jsx(rI.span,{"aria-hidden":!0,...a,ref:t,children:i||"▼"})});Oc.displayName="SelectIcon";var Od=e=>U.jsx(r$,{asChild:!0,...e});Od.displayName="SelectPortal";var Op="SelectContent",Oh=I.forwardRef((e,t)=>{let n=On(Op,e.__scopeSelect),[i,a]=I.useState();return(nr(()=>{a(new DocumentFragment)},[]),n.open)?U.jsx(Ox,{...e,ref:t}):i?P.createPortal(U.jsx(Om,{scope:e.__scopeSelect,children:U.jsx(L6.Slot,{scope:e.__scopeSelect,children:U.jsx("div",{children:e.children})})}),i):null});Oh.displayName=Op;var[Om,Of]=L9(Op),Og=function(e){let t=function(e){let t=I.forwardRef((e,t)=>{let{children:n,...i}=e;if(I.isValidElement(n)){var a,o;let e,s;let l=(e=null==(a=Object.getOwnPropertyDescriptor(n.props,"ref"))?void 0:a.get)&&"isReactWarning"in e&&e.isReactWarning?n.ref:(e=null==(o=Object.getOwnPropertyDescriptor(n,"ref"))?void 0:o.get)&&"isReactWarning"in e&&e.isReactWarning?n.props.ref:n.props.ref||n.ref,u=function(e,t){let n={...t};for(let i in t){let a=e[i],o=t[i];/^on[A-Z]/.test(i)?a&&o?n[i]=(...e)=>{let t=o(...e);return a(...e),t}:a&&(n[i]=a):"style"===i?n[i]={...a,...o}:"className"===i&&(n[i]=[a,o].filter(Boolean).join(" "))}return{...e,...n}}(i,n.props);return n.type!==I.Fragment&&(u.ref=t?eG(t,l):l),I.cloneElement(n,u)}return I.Children.count(n)>1?I.Children.only(null):null});return t.displayName=`${e}.SlotClone`,t}(e),n=I.forwardRef((e,n)=>{let{children:i,...a}=e,o=I.Children.toArray(i),s=o.find(L2);if(s){let e=s.props.children,i=o.map(t=>t===s?I.Children.count(e)>1?I.Children.only(null):I.isValidElement(e)?e.props.children:null:t);return U.jsx(t,{...a,ref:n,children:I.isValidElement(e)?I.cloneElement(e,void 0,i):null})}return U.jsx(t,{...a,ref:n,children:i})});return n.displayName=`${e}.Slot`,n}("SelectContent.RemoveScroll"),Ox=I.forwardRef((e,t)=>{let{__scopeSelect:n,position:i="item-aligned",onCloseAutoFocus:a,onEscapeKeyDown:o,onPointerDownOutside:s,side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:f,hideWhenDetached:g,avoidCollisions:x,...v}=e,b=On(Op,n),[w,k]=I.useState(null),[_,T]=I.useState(null),E=eq(t,e=>k(e)),[A,C]=I.useState(null),[N,M]=I.useState(null),P=L7(n),[R,D]=I.useState(!1),L=I.useRef(!1);I.useEffect(()=>{if(w)return P0(w)},[w]),Ps();let O=I.useCallback(e=>{let[t,...n]=P().map(e=>e.ref.current),[i]=n.slice(-1),a=document.activeElement;for(let n of e)if(n===a||(null==n||n.scrollIntoView({block:"nearest"}),n===t&&_&&(_.scrollTop=0),n===i&&_&&(_.scrollTop=_.scrollHeight),null==n||n.focus(),document.activeElement!==a))return},[P,_]),B=I.useCallback(()=>O([A,w]),[O,A,w]);I.useEffect(()=>{R&&B()},[R,B]);let{onOpenChange:j,triggerPointerDownPosRef:z}=b;I.useEffect(()=>{if(w){let e={x:0,y:0},t=t=>{var n,i;e={x:Math.abs(Math.round(t.pageX)-((null==(n=z.current)?void 0:n.x)??0)),y:Math.abs(Math.round(t.pageY)-((null==(i=z.current)?void 0:i.y)??0))}},n=n=>{e.x<=10&&e.y<=10?n.preventDefault():w.contains(n.target)||j(!1),document.removeEventListener("pointermove",t),z.current=null};return null!==z.current&&(document.addEventListener("pointermove",t),document.addEventListener("pointerup",n,{capture:!0,once:!0})),()=>{document.removeEventListener("pointermove",t),document.removeEventListener("pointerup",n,{capture:!0})}}},[w,j,z]),I.useEffect(()=>{let e=()=>j(!1);return window.addEventListener("blur",e),window.addEventListener("resize",e),()=>{window.removeEventListener("blur",e),window.removeEventListener("resize",e)}},[j]);let[F,H]=Oq(e=>{let t=P().filter(e=>!e.disabled),n=t.find(e=>e.ref.current===document.activeElement),i=OV(t,e,n);i&&setTimeout(()=>i.ref.current.focus())}),G=I.useCallback((e,t,n)=>{let i=!L.current&&!n;(void 0!==b.value&&b.value===t||i)&&(C(e),i&&(L.current=!0))},[b.value]),q=I.useCallback(()=>null==w?void 0:w.focus(),[w]),V=I.useCallback((e,t,n)=>{let i=!L.current&&!n;(void 0!==b.value&&b.value===t||i)&&M(e)},[b.value]),W="popper"===i?Oy:Ov,Y=W===Oy?{side:l,sideOffset:u,align:c,alignOffset:d,arrowPadding:p,collisionBoundary:h,collisionPadding:m,sticky:f,hideWhenDetached:g,avoidCollisions:x}:{};return U.jsx(Om,{scope:n,content:w,viewport:_,onViewportChange:T,itemRefCallback:G,selectedItem:A,onItemLeave:q,itemTextRefCallback:V,focusSelectedItem:B,selectedItemText:N,position:i,isPositioned:R,searchRef:F,children:U.jsx(PY,{as:Og,allowPinchZoom:!0,children:U.jsx(Pe,{asChild:!0,trapped:b.o
543pen,onMountAutoFocus:e=>{e.preventDefault()},onUnmountAutoFocus:nt(a,e=>{var t;null==(t=b.trigger)||t.focus({preventScroll:!0}),e.preventDefault()}),children:U.jsx(r6,{asChild:!0,disableOutsidePointerEvents:!0,onEscapeKeyDown:o,onPointerDownOutside:s,onFocusOutside:e=>e.preventDefault(),onDismiss:()=>b.onOpenChange(!1),children:U.jsx(W,{role:"listbox",id:b.contentId,"data-state":b.open?"open":"closed",dir:b.dir,onContextMenu:e=>e.preventDefault(),...v,...Y,onPlaced:()=>D(!0),ref:E,style:{display:"flex",flexDirection:"column",outline:"none",...v.style},onKeyDown:nt(v.onKeyDown,e=>{let t=e.ctrlKey||e.altKey||e.metaKey;if("Tab"===e.key&&e.preventDefault(),t||1!==e.key.length||H(e.key),["ArrowUp","ArrowDown","Home","End"].includes(e.key)){let t=P().filter(e=>!e.disabled).map(e=>e.ref.current);if(["ArrowUp","End"].includes(e.key)&&(t=t.slice().reverse()),["ArrowUp","ArrowDown"].includes(e.key)){let n=e.target,i=t.indexOf(n);t=t.slice(i+1)}setTimeout(()=>O(t)),e.preventDefault()}})})})})})})});Ox.displayName="SelectContentImpl";var Ov=I.forwardRef((e,t)=>{let{__scopeSelect:n,onPlaced:i,...a}=e,o=On(Op,n),s=Of(Op,n),[l,u]=I.useState(null),[c,d]=I.useState(null),p=eq(t,e=>d(e)),h=L7(n),m=I.useRef(!1),f=I.useRef(!0),{viewport:g,selectedItem:x,selectedItemText:v,focusSelectedItem:b}=s,w=I.useCallback(()=>{if(o.trigger&&o.valueNode&&l&&c&&g&&x&&v){let e=o.trigger.getBoundingClientRect(),t=c.getBoundingClientRect(),n=o.valueNode.getBoundingClientRect(),a=v.getBoundingClientRect();if("rtl"!==o.dir){let i=a.left-t.left,o=n.left-i,s=e.left-o,u=e.width+s,c=Math.max(u,t.width),d=L0(o,[10,Math.max(10,window.innerWidth-10-c)]);l.style.minWidth=u+"px",l.style.left=d+"px"}else{let i=t.right-a.right,o=window.innerWidth-n.right-i,s=window.innerWidth-e.right-o,u=e.width+s,c=Math.max(u,t.width),d=L0(o,[10,Math.max(10,window.innerWidth-10-c)]);l.style.minWidth=u+"px",l.style.right=d+"px"}let s=h(),u=window.innerHeight-20,d=g.scrollHeight,p=window.getComputedStyle(c),f=parseInt(p.borderTopWidth,10),b=parseInt(p.paddingTop,10),w=parseInt(p.borderBottomWidth,10),k=f+b+d+parseInt(p.paddingBottom,10)+w,_=Math.min(5*x.offsetHeight,k),T=window.getComputedStyle(g),E=parseInt(T.paddingTop,10),A=parseInt(T.paddingBottom,10),C=e.top+e.height/2-10,N=x.offsetHeight/2,I=f+b+(x.offsetTop+N);if(I<=C){let e=s.length>0&&x===s[s.length-1].ref.current;l.style.bottom="0px";let t=c.clientHeight-g.offsetTop-g.offsetHeight;l.style.height=I+Math.max(u-C,N+(e?A:0)+t+w)+"px"}else{let e=s.length>0&&x===s[0].ref.current;l.style.top="0px";let t=Math.max(C,f+g.offsetTop+(e?E:0)+N)+(k-I);l.style.height=t+"px",g.scrollTop=I-C+g.offsetTop}l.style.margin="10px 0",l.style.minHeight=_+"px",l.style.maxHeight=u+"px",null==i||i(),requestAnimationFrame(()=>m.current=!0)}},[h,o.trigger,o.valueNode,l,c,g,x,v,o.dir,i]);nr(()=>w(),[w]);let[k,_]=I.useState();nr(()=>{c&&_(window.getComputedStyle(c).zIndex)},[c]);let T=I.useCallback(e=>{e&&!0===f.current&&(w(),null==b||b(),f.current=!1)},[w,b]);return U.jsx(Ob,{scope:n,contentWrapper:l,shouldExpandOnScrollRef:m,onScrollButtonChange:T,children:U.jsx("div",{ref:u,style:{display:"flex",flexDirection:"column",position:"fixed",zIndex:k},children:U.jsx(rI.div,{...a,ref:p,style:{boxSizing:"border-box",maxHeight:"100%",...a.style}})})})});Ov.displayName="SelectItemAlignedPosition";var Oy=I.forwardRef((e,t)=>{let{__scopeSelect:n,align:i="start",collisionPadding:a=10,...o}=e,s=Oe(n);return U.jsx(rV,{...s,...o,ref:t,align:i,collisionPadding:a,style:{boxSizing:"border-box",...o.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)"}})});Oy.displayName="SelectPopperPosition";var[Ob,Ow]=L9(Op,{}),Ok="SelectViewport",O_=I.forwardRef((e,t)=>{let{__scopeSelect:n,nonce:i,...a}=e,o=Of(Ok,n),s=Ow(Ok,n),l=eq(t,o.onViewportChange),u=I.useRef(0);return U.jsxs(U.Fragment,{children:[U.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:i}),U.jsx(L6.Slot,{scope:n,children:U.jsx(rI.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=>{let t=e.currentTarget,{contentWrapper:n,shouldExpandOnScrollRef:i}=s;if(null!=i&&i.current&&n){let e=Math.abs(u.current-t.scrollTop);if(e>0){let i=window.innerHeight-20,a=Math.max(parseFloat(n.style.minHeight),parseFloat(n.style.height));if(a<i){let o=a+e,s=Math.min(i,o),l=o-s;n.style.height=s+"px","0px"===n.style.bottom&&(t.scrollTop=l>0?l:0,n.style.justifyContent="flex-end")}}}u.current=t.scrollTop})})})]})});O_.displayName=Ok;var OT="SelectGroup",[OE,OS]=L9(OT);I.forwardRef((e,t)=>
543{let{__scopeSelect:n,...i}=e,a=wM();return U.jsx(OE,{scope:n,id:a,children:U.jsx(rI.div,{role:"group","aria-labelledby":a,...i,ref:t})})}).displayName=OT;var OA="SelectLabel";I.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e,a=OS(OA,n);return U.jsx(rI.div,{id:a.id,...i,ref:t})}).displayName=OA;var OC="SelectItem",[ON,OI]=L9(OC),OM=I.forwardRef((e,t)=>{let{__scopeSelect:n,value:i,disabled:a=!1,textValue:o,...s}=e,l=On(OC,n),u=Of(OC,n),c=l.value===i,[d,p]=I.useState(o??""),[h,m]=I.useState(!1),f=eq(t,e=>{var t;return null==(t=u.itemRefCallback)?void 0:t.call(u,e,i,a)}),g=wM(),x=I.useRef("touch"),v=()=>{a||(l.onValueChange(i),l.onOpenChange(!1))};if(""===i)throw 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 U.jsx(ON,{scope:n,value:i,disabled:a,textId:g,isSelected:c,onItemTextChange:I.useCallback(e=>{p(t=>t||((null==e?void 0:e.textContent)??"").trim())},[]),children:U.jsx(L6.ItemSlot,{scope:n,value:i,disabled:a,textValue:d,children:U.jsx(rI.div,{role:"option","aria-labelledby":g,"data-highlighted":h?"":void 0,"aria-selected":c&&h,"data-state":c?"checked":"unchecked","aria-disabled":a||void 0,"data-disabled":a?"":void 0,tabIndex:a?void 0:-1,...s,ref:f,onFocus:nt(s.onFocus,()=>m(!0)),onBlur:nt(s.onBlur,()=>m(!1)),onClick:nt(s.onClick,()=>{"mouse"!==x.current&&v()}),onPointerUp:nt(s.onPointerUp,()=>{"mouse"===x.current&&v()}),onPointerDown:nt(s.onPointerDown,e=>{x.current=e.pointerType}),onPointerMove:nt(s.onPointerMove,e=>{var t;x.current=e.pointerType,a?null==(t=u.onItemLeave)||t.call(u):"mouse"===x.current&&e.currentTarget.focus({preventScroll:!0})}),onPointerLeave:nt(s.onPointerLeave,e=>{var t;e.currentTarget===document.activeElement&&(null==(t=u.onItemLeave)||t.call(u))}),onKeyDown:nt(s.onKeyDown,e=>{var t;(null==(t=u.searchRef)?void 0:t.current)!==""&&" "===e.key||(L5.includes(e.key)&&v()," "===e.key&&e.preventDefault())})})})})});OM.displayName=OC;var OP="SelectItemText",OR=I.forwardRef((e,t)=>{let{__scopeSelect:n,className:i,style:a,...o}=e,s=On(OP,n),l=Of(OP,n),u=OI(OP,n),c=Oi(OP,n),[d,p]=I.useState(null),h=eq(t,e=>p(e),u.onItemTextChange,e=>{var t;return null==(t=l.itemTextRefCallback)?void 0:t.call(l,e,u.value,u.disabled)}),m=null==d?void 0:d.textContent,f=I.useMemo(()=>U.jsx("option",{value:u.value,disabled:u.disabled,children:m},u.value),[u.disabled,u.value,m]),{onNativeOptionAdd:g,onNativeOptionRemove:x}=c;return nr(()=>(g(f),()=>x(f)),[g,x,f]),U.jsxs(U.Fragment,{children:[U.jsx(rI.span,{id:u.textId,...o,ref:h}),u.isSelected&&s.valueNode&&!s.valueNodeHasChildren?P.createPortal(o.children,s.valueNode):null]})});OR.displayName=OP;var OD="SelectItemIndicator",OL=I.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e;return OI(OD,n).isSelected?U.jsx(rI.span,{"aria-hidden":!0,...i,ref:t}):null});OL.displayName=OD;var OO="SelectScrollUpButton",OB=I.forwardRef((e,t)=>{let n=Of(OO,e.__scopeSelect),i=Ow(OO,e.__scopeSelect),[a,o]=I.useState(!1),s=eq(t,i.onScrollButtonChange);return nr(()=>{if(n.viewport&&n.isPositioned){let e=function(){o(t.scrollTop>0)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?U.jsx(OF,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop-t.offsetHeight)}}):null});OB.displayName=OO;var Oj="SelectScrollDownButton",Oz=I.forwardRef((e,t)=>{let n=Of(Oj,e.__scopeSelect),i=Ow(Oj,e.__scopeSelect),[a,o]=I.useState(!1),s=eq(t,i.onScrollButtonChange);return nr(()=>{if(n.viewport&&n.isPositioned){let e=function(){let e=t.scrollHeight-t.clientHeight;o(Math.ceil(t.scrollTop)<e)},t=n.viewport;return e(),t.addEventListener("scroll",e),()=>t.removeEventListener("scroll",e)}},[n.viewport,n.isPositioned]),a?U.jsx(OF,{...e,ref:s,onAutoScroll:()=>{let{viewport:e,selectedItem:t}=n;e&&t&&(e.scrollTop=e.scrollTop+t.offsetHeight)}}):null});Oz.displayName=Oj;var OF=I.forwardRef((e,t)=>{let{__scopeSelect:n,onAutoScroll:i,...a}=e,o=Of("SelectScrollButton",n),s=I.useRef(null),l=L7(n),u=I.useCallback(()=>{null!==s.current&&(window.clearInterval(s.current),s.current=null)},[]);return I.useEffect(()=>()=>u(),[u]),nr(()=>{var e;let t=l().find(e=>e.ref.current===document.activeElement);null==(e=null==t?void 0:t.ref.current)||e.scrollIntoView({block:"nearest"})},[l]),U.jsx(rI.div,{"aria-hidden":!0,...a,ref:t,style:{flexShrink:0,...a.style},onPointerDown:nt(a.onPointerDown,()=>{null===s.current&&(s.current=window.setInterval(i,50))}),onPointerMove:nt(a.onPointerMove,()=>{var e;null==(e=o.onItemLeave)||e.call(o),null===s.current&&(s.current=window.setInterval(i,50))}),onPointerLeave:nt(a.onPointerLeave,()=>{u()})})});I.forwardRef((e,t)=>
543{let{__scopeSelect:n,...i}=e;return U.jsx(rI.div,{"aria-hidden":!0,...i,ref:t})}).displayName="SelectSeparator";var OH="SelectArrow";I.forwardRef((e,t)=>{let{__scopeSelect:n,...i}=e,a=Oe(n),o=On(OH,n),s=Of(OH,n);return o.open&&"popper"===s.position?U.jsx(rK,{...a,...i,ref:t}):null}).displayName=OH;var OU=I.forwardRef(({__scopeSelect:e,value:t,...n},i)=>{let a=I.useRef(null),o=eq(i,a),s=function(e){let t=I.useRef({value:e,previous:e});return I.useMemo(()=>(t.current.value!==e&&(t.current.previous=t.current.value,t.current.value=e),t.current.previous),[e])}(t);return I.useEffect(()=>{let e=a.current;if(!e)return;let n=Object.getOwnPropertyDescriptor(window.HTMLSelectElement.prototype,"value").set;if(s!==t&&n){let i=new Event("change",{bubbles:!0});n.call(e,t),e.dispatchEvent(i)}},[s,t]),U.jsx(rI.select,{...n,style:{...wR,...n.style},ref:o,defaultValue:t})});function OG(e){return""===e||void 0===e}function Oq(e){let t=rR(e),n=I.useRef(""),i=I.useRef(0),a=I.useCallback(e=>{let a=n.current+e;t(a),function e(t){n.current=t,window.clearTimeout(i.current),""!==t&&(i.current=window.setTimeout(()=>e(""),1e3))}(a)},[t]),o=I.useCallback(()=>{n.current="",window.clearTimeout(i.current)},[]);return I.useEffect(()=>()=>window.clearTimeout(i.current),[]),[n,a,o]}function OV(e,t,n){var i;let a=t.length>1&&Array.from(t).every(e=>e===t[0])?t[0]:t,o=(i=Math.max(n?e.indexOf(n):-1,0),e.map((t,n)=>e[(i+n)%e.length]));1===a.length&&(o=o.filter(e=>e!==n));let s=o.find(e=>e.textValue.toLowerCase().startsWith(a.toLowerCase()));return s!==n?s:void 0}function OW({...e}){return U.jsx(Oa,{"data-slot":"select",...e})}function OY({...e}){return U.jsx(Ou,{"data-slot":"select-value",...e})}function OK({className:e,size:t="default",children:n,...i}){return U.jsxs(Os,{"data-slot":"select-trigger","data-size":t,className:t8("border-input data-[placeholder]:text-muted-foreground [&_svg:not([class*='text-'])]:text-muted-foreground focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:bg-input/30 dark:hover:bg-input/50 flex w-fit items-center justify-between gap-2 rounded-md border bg-transparent px-3 py-2 text-sm whitespace-nowrap shadow-xs transition-[color,box-shadow] outline-none focus-visible:ring-[3px] disabled:cursor-not-allowed disabled:opacity-50 data-[size=default]:h-9 data-[size=sm]:h-8 *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-2 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4",e),...i,children:[n,U.jsx(Oc,{asChild:!0,children:U.jsx(ei,{className:"size-4 opacity-50"})})]})}function OX({className:e,children:t,position:n="item-aligned",align:i="center",...a}){return U.jsx(Od,{children:U.jsxs(Oh,{"data-slot":"select-content",className:t8("bg-popover text-popover-foreground 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 relative z-50 max-h-(--radix-select-content-available-height) min-w-[8rem] origin-(--radix-select-content-transform-origin) overflow-x-hidden overflow-y-auto rounded-md border shadow-md","popper"===n&&"data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1",e),position:n,align:i,...a,children:[U.jsx(OZ,{}),U.jsx(O_,{className:t8("p-1","popper"===n&&"h-[var(--radix-select-trigger-height)] w-full min-w-[var(--radix-select-trigger-width)] scroll-my-1"),children:t}),U.jsx(O$,{})]})})}function OQ({className:e,children:t,...n}){return U.jsxs(OM,{"data-slot":"select-item",className:t8("focus:bg-accent focus:text-accent-foreground [&_svg:not([class*='text-'])]:text-muted-foreground relative flex w-full cursor-default items-center gap-2 rounded-sm py-1.5 pr-8 pl-2 text-sm outline-hidden select-none data-[disabled]:pointer-events-none data-[disabled]:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4 *:[span]:last:flex *:[span]:last:items-center *:[span]:last:gap-2",e),...n,children:[U.jsx("span",{"data-slot":"select-item-indicator",className:"absolute right-2 flex size-3.5 items-center justify-center",children:U.jsx(OL,{children:U.jsx(er,{className:"size-4"})})}),U.jsx(OR,{children:t})]})}function OZ({className:e,...t}){return U.jsx(OB,{"data-slot":"select-scroll-up-button",className:t8("flex cursor-default items-center justify-center py-1",e),...t,children:U.jsx(es,{className:"size-4"})})}function O$({className:e,...t}){return U.jsx(Oz,{"data-slot":"select-scroll-down-button",className:t8("flex cursor-default items-center justify-center py-1",e),...t,children:U.jsx(ei,{className:"size-4"})})}OU.displayName="SelectBubbleInput";let OJ=(e=21)=>{let t="",n=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&n[e]];return t},O0=(0,I.createContext)(null),O1=(0,I.createContext)(null),O2=()=>{let e=(0,I.useContext)(O0);if(!e)throw Error("Wrap your component inside <PromptInputProvider> to use usePromptInputController().");return e},O4=()=>(0,I.useContext)(O0),O5=()=>{let e=(0,I.useContext)(O1);if(!e)throw Error("Wrap your component inside <PromptInputProvider> to use useProviderAttachments().");return e},O3=()=>(0,I.useContext)(O1);function O6({initialInput:e="",children:t}){let[n,i]=(0,I.useState)(e),a=(0,I.useCallback)(()=>i(""),[]),[o,s]=(0,I.useState)([]),l=(0,I.useRef)(null),u=(0,I.useRef)(()=>{}),c=(0,I.useCallback)(e=>{let t=Array.from(e);0!==t.length&&s(e=>e.concat(t.map(e=>({id:OJ(),type:"file",url:URL.createObjectURL(e),mediaType:e.type,filename:e.name}))))},[]),d=(0,I.useCallback)(e=>{s(t=>{let n=t.find(t=>
543t.id===e);return null!=n&&n.url&&URL.revokeObjectURL(n.url),t.filter(t=>t.id!==e)})},[]),p=(0,I.useCallback)(()=>{s(e=>{for(let t of e)t.url&&URL.revokeObjectURL(t.url);return[]})},[]),h=(0,I.useRef)(o);h.current=o,(0,I.useEffect)(()=>()=>{for(let e of h.current)e.url&&URL.revokeObjectURL(e.url)},[]);let m=(0,I.useCallback)(()=>{var e;null==(e=u.current)||e.call(u)},[]),f=(0,I.useMemo)(()=>({files:o,add:c,remove:d,clear:p,openFileDialog:m,fileInputRef:l}),[o,c,d,p,m]),g=(0,I.useCallback)((e,t)=>{l.current=e.current,u.current=t},[]),x=(0,I.useMemo)(()=>({textInput:{value:n,setInput:i,clear:a},attachments:f,__registerFileInput:g}),[n,a,f,g]);return U.jsx(O0.Provider,{value:x,children:U.jsx(O1.Provider,{value:f,children:t})})}let O7=(0,I.createContext)(null),O8=()=>{let e=O3(),t=(0,I.useContext)(O7),n=e??t;if(!n)throw Error("usePromptInputAttachments must be used within a PromptInput or PromptInputProvider");return n};function O9({data:e,className:t,...n}){var i;let a=O8(),o=e.filename||"",s=(null!=(i=e.mediaType)&&i.startsWith("image/")&&e.url?"image":"file")=="image",l=o||(s?"Image":"Attachment");return U.jsxs(Bb,{children:[U.jsx(iy,{asChild:!0,children:U.jsxs("div",{className:t8("group relative flex h-8 cursor-pointer select-none items-center gap-1.5 rounded-md border border-border px-1.5 font-medium text-sm transition-all hover:bg-accent hover:text-accent-foreground dark:hover:bg-accent/50",t),...n,children:[U.jsxs("div",{className:"relative size-5 shrink-0",children:[U.jsx("div",{className:"absolute inset-0 flex size-5 items-center justify-center overflow-hidden rounded bg-background transition-opacity group-hover:opacity-0",children:s?U.jsx("img",{alt:o||"attachment",className:"size-5 object-cover",height:20,src:e.url,width:20}):U.jsx("div",{className:"flex size-5 items-center justify-center text-muted-foreground",children:U.jsx(eS,{className:"size-3"})})}),U.jsxs(ne,{"aria-label":"Remove attachment",className:"absolute inset-0 size-5 cursor-pointer rounded p-0 opacity-0 transition-opacity group-hover:pointer-events-auto group-hover:opacity-100 [&>svg]:size-2.5",onClick:t=>{t.stopPropagation(),a.remove(e.id)},type:"button",variant:"ghost",children:[U.jsx(eL,{}),U.jsx("span",{className:"sr-only",children:"Remove"})]})]}),U.jsx("span",{className:"flex-1 truncate",children:l})]},e.id)}),U.jsx(Bk,{className:"w-auto p-2",children:U.jsxs("div",{className:"w-auto space-y-3",children:[s&&U.jsx("div",{className:"flex max-h-96 w-96 items-center justify-center overflow-hidden rounded-md border",children:U.jsx("img",{alt:o||"attachment preview",className:"max-h-full max-w-full object-contain",height:384,src:e.url,width:448})}),U.jsx("div",{className:"flex items-center gap-2.5",children:U.jsxs("div",{className:"min-w-0 flex-1 space-y-1 px-0.5",children:[U.jsx("h4",{className:"truncate font-semibold text-sm leading-none",children:o||(s?"Image":"Attachment")}),e.mediaType&&U.jsx("p",{className:"truncate font-mono text-muted-foreground text-xs",children:e.mediaType})]})})]})})]})}function Be({children:e,className:t,...n}){let i=O8();return i.files.length?U.jsx("div",{className:t8("flex flex-wrap items-center gap-2 p-3 w-full",t),...n,children:i.files.map(t=>U.jsx(I.Fragment,{children:e(t)},t.id))}):null}let Bt=({label:e="Add photos or files",...t})=>{let n=O8();return U.jsxs(LG,{...t,onSelect:e=>{e.preventDefault(),n.openFileDialog()},children:[U.jsx(ew,{className:"mr-2 size-4"})," ",e]})},Bn=({className:e,accept:t,multiple:n,globalDrop:i,syncHiddenInput:a,maxFiles:o,maxFileSize:s,onError:l,onSubmit:u,children:c,...d})=>{let p=O4(),h=!!p,m=(0,I.useRef)(null),f=(0,I.useRef)(null),[g,x]=(0,I.useState)([]),v=h?p.attachments.files:g,b=(0,I.useRef)(v);b.current=v;let w=(0,I.useCallback)(()=>{var e;null==(e=m.current)||e.click()},[]),k=(0,I.useCallback)(e=>!t||""===t.trim()||t.split(",").map(e=>e.trim()).filter(Boolean).some(t=>{if(t.endsWith("/*")){let n=t.slice(0,-1);return e.type.startsWith(n)}return e.type===t}),[t]),_=(0,I.useCallback)(e=>{let t=Array.from(e),n=t.filter(e=>k(e));if(t.length&&0===n.length){null==l||l({code:"accept",message:"No files match the accepted types."});return}let i=n.filter(e=>!s||e.size<=s);if(n.length>0&&0===i.length){null==l||l({code:"max_file_size",message:"All files exceed the maximum size."});return}x(e=>{let t="number"==typeof o?Math.max(0,o-e.length):void 0,n="number"==typeof t?i.slice(0,t):i;"number"==typeof t&&i.length>t&&(null==l||l({code:"max_files",message:"Too many files. Some were not added."}));let a=[];for(let e of n)a.push({id:OJ(),type:"file",url:URL.createObjectURL(e),mediaType:e.type,filename:e.name});return e.concat(a)})},[k,o,s,l]),T=(0,I.useCallback)(e=>x(t=>{let n=t.find(t=>
543t.id===e);return null!=n&&n.url&&URL.revokeObjectURL(n.url),t.filter(t=>t.id!==e)}),[]),E=(0,I.useCallback)(()=>x(e=>{for(let t of e)t.url&&URL.revokeObjectURL(t.url);return[]}),[]),A=h?p.attachments.add:_,C=h?p.attachments.remove:T,N=h?p.attachments.clear:E,M=h?p.attachments.openFileDialog:w;(0,I.useEffect)(()=>{h&&p.__registerFileInput(m,()=>{var e;return null==(e=m.current)?void 0:e.click()})},[h,p]),(0,I.useEffect)(()=>{a&&m.current&&0===v.length&&(m.current.value="")},[v,a]),(0,I.useEffect)(()=>{let e=f.current;if(!e||i)return;let t=e=>{var t,n;null!=(n=null==(t=e.dataTransfer)?void 0:t.types)&&n.includes("Files")&&e.preventDefault()},n=e=>{var t,n,i;null!=(n=null==(t=e.dataTransfer)?void 0:t.types)&&n.includes("Files")&&e.preventDefault(),null!=(i=e.dataTransfer)&&i.files&&e.dataTransfer.files.length>0&&A(e.dataTransfer.files)};return e.addEventListener("dragover",t),e.addEventListener("drop",n),()=>{e.removeEventListener("dragover",t),e.removeEventListener("drop",n)}},[A,i]),(0,I.useEffect)(()=>{if(!i)return;let e=e=>{var t,n;null!=(n=null==(t=e.dataTransfer)?void 0:t.types)&&n.includes("Files")&&e.preventDefault()},t=e=>{var t,n,i;null!=(n=null==(t=e.dataTransfer)?void 0:t.types)&&n.includes("Files")&&e.preventDefault(),null!=(i=e.dataTransfer)&&i.files&&e.dataTransfer.files.length>0&&A(e.dataTransfer.files)};return document.addEventListener("dragover",e),document.addEventListener("drop",t),()=>{document.removeEventListener("dragover",e),document.removeEventListener("drop",t)}},[A,i]),(0,I.useEffect)(()=>()=>{if(!h)for(let e of b.current)e.url&&URL.revokeObjectURL(e.url)},[h]);let P=async e=>{try{let t=await (await fetch(e)).blob();return new Promise(e=>{let n=new FileReader;n.onloadend=()=>e(n.result),n.onerror=()=>e(null),n.readAsDataURL(t)})}catch{return null}},R=(0,I.useMemo)(()=>({files:v.map(e=>({...e,id:e.id})),add:A,remove:C,clear:N,openFileDialog:M,fileInputRef:m}),[v,A,C,N,M]),D=U.jsxs(U.Fragment,{children:[U.jsx("input",{accept:t,"aria-label":"Upload files",className:"hidden",multiple:n,onChange:e=>{e.currentTarget.files&&A(e.currentTarget.files),e.currentTarget.value=""},ref:m,title:"Upload files",type:"file"}),U.jsx("form",{className:t8("w-full",e),onSubmit:e=>{e.preventDefault();let t=e.currentTarget,n=h?p.textInput.value:new FormData(t).get("message")||"";h||t.reset(),Promise.all(v.map(async({id:e,...t})=>{if(t.url&&t.url.startsWith("blob:")){let e=await P(t.url);return{...t,url:e??t.url}}return t})).then(t=>{try{let i=u({text:n,files:t},e);i instanceof Promise?i.then(()=>{N(),h&&p.textInput.clear()}).catch(()=>{}):(N(),h&&p.textInput.clear())}catch{}}).catch(()=>{})},ref:f,...d,children:U.jsx(LK,{className:"overflow-hidden",children:c})})]});return h?D:U.jsx(O7.Provider,{value:R,children:D})},Br=({className:e,...t})=>U.jsx("div",{className:t8("contents",e),...t}),Bi=({onChange:e,className:t,placeholder:n="What would you like to know?",...i})=>{let a=O4(),o=O8(),[s,l]=(0,I.useState)(!1),u=a?{value:a.textInput.value,onChange:t=>{a.textInput.setInput(t.currentTarget.value),null==e||e(t)}}:{onChange:e};return U.jsx(LJ,{className:t8("field-sizing-content max-h-48 min-h-16",t),name:"message",onCompositionEnd:()=>l(!1),onCompositionStart:()=>l(!0),onKeyDown:e=>{if("Enter"===e.key){if(s||e.nativeEvent.isComposing||e.shiftKey)return;e.preventDefault();let t=e.currentTarget.form,n=null==t?void 0:t.querySelector('button[type="submit"]');if(null!=n&&n.disabled)return;null==t||t.requestSubmit()}if("Backspace"===e.key&&""===e.currentTarget.value&&o.files.length>0){e.preventDefault();let t=o.files.at(-1);t&&o.remove(t.id)}},onPaste:e=>{var t;let n=null==(t=e.clipboardData)?void 0:t.items;if(!n)return;let i=[];for(let e of n)if("file"===e.kind){let t=e.getAsFile();t&&i.push(t)}i.length>0&&(e.preventDefault(),o.add(i))},placeholder:n,...i,...u})},Ba=({className:e,...t})=>U.jsx(LQ,{align:"block-end",className:t8("order-first flex-wrap gap-1",e),...t}),Bo=({className:e,...t})=>U.jsx(LQ,{align:"block-end",className:t8("justify-between gap-1",e),...t}),Bs=({className:e,...t})=>U.jsx("div",{className:t8("flex items-center gap-1",e),...t}),Bl=({variant:e="ghost",className:t,size:n,...i})=>{let a=n??(I.Children.count(i.children)>1?"sm":"icon-sm");return U.jsx(L$,{className:t8(t),size:a,type:"button",variant:e,...i})},Bu=e=>U.jsx(LF,{...e}),Bc=({className:e,children:t,...n})=>U.jsx(LH,{asChild:!0,children:U.jsx(Bl,{className:e,...n,children:t??U.jsx(eA,{className:"size-4"})})}),Bd=({className:e,...t})=>U.jsx(LU,{align:"start",className:t8(e),...t}),Bp=({className:e,...t})=>U.jsx(LG,{className:t8(e),...t}),Bh=({className:e,variant:t="default",size:n="icon-sm",status:i,children:a,...o})=>{let s=U.jsx(ef,{className:"size-4"});return"submitted"===i?s=U.jsx(ek,{className:"size-4 animate-spin"}):"streaming"===i?s=U.jsx(eI,{className:"size-4"}):"error"===i&&(s=U.jsx(eL,{className:"size-4"})),U.jsx(L$,{"aria-label":"Submit",className:t8(e),size:n,type:"submit",variant:t,...o,children:a??s})},Bm=({className:e,textareaRef:t,onTranscriptionChange:n,...i})=>{let[a,o]=(0,I.useState)(!1),[s,l]=(0,I.useState)(null),u=(0,I.useRef)(null);(0,I.useEffect)(()=>
543{if("u">typeof window&&("SpeechRecognition"in window||"webkitSpeechRecognition"in window)){let e=new(window.SpeechRecognition||window.webkitSpeechRecognition);e.continuous=!0,e.interimResults=!0,e.lang="en-US",e.onstart=()=>{o(!0)},e.onend=()=>{o(!1)},e.onresult=e=>{var i;let a="";for(let t=e.resultIndex;t<e.results.length;t++){let n=e.results[t];n.isFinal&&(a+=(null==(i=n[0])?void 0:i.transcript)??"")}if(a&&null!=t&&t.current){let e=t.current,i=e.value,o=i+(i?" ":"")+a;e.value=o,e.dispatchEvent(new Event("input",{bubbles:!0})),null==n||n(o)}},e.onerror=e=>{console.error("Speech recognition error:",e.error),o(!1)},u.current=e,l(e)}return()=>{u.current&&u.current.stop()}},[t,n]);let c=(0,I.useCallback)(()=>{s&&(a?s.stop():s.start())},[s,a]);return U.jsx(Bl,{className:t8("relative transition-all duration-200",a&&"animate-pulse bg-accent text-accent-foreground",e),disabled:!s,onClick:c,...i,children:U.jsx(eT,{className:"size-4"})})},Bf=e=>U.jsx(OW,{...e}),Bg=({className:e,...t})=>U.jsx(OK,{className:t8("border-none bg-transparent font-medium text-muted-foreground shadow-none transition-colors","hover:bg-accent hover:text-foreground aria-expanded:bg-accent aria-expanded:text-foreground",e),...t}),Bx=({className:e,...t})=>U.jsx(OX,{className:t8(e),...t}),Bv=({className:e,...t})=>U.jsx(OQ,{className:t8(e),...t}),By=({className:e,...t})=>U.jsx(OY,{className:t8(e),...t}),Bb=({openDelay:e=0,closeDelay:t=0,...n})=>U.jsx(iv,{closeDelay:t,openDelay:e,...n}),Bw=e=>U.jsx(iy,{...e}),Bk=({align:e="start",...t})=>U.jsx(ib,{align:e,...t}),B_=({className:e,...t})=>U.jsx("div",{className:t8(e),...t}),BT=({className:e,...t})=>U.jsx("div",{className:t8(e),...t}),BE=({className:e,...t})=>U.jsx("h3",{className:t8("mb-2 px-3 font-medium text-muted-foreground text-xs",e),...t}),BS=({className:e,...t})=>U.jsx("div",{className:t8("space-y-1",e),...t}),BA=({className:e,...t})=>U.jsx("div",{className:t8("flex items-center gap-2 px-3 py-2 text-xs hover:bg-accent",e),...t}),BC=({className:e,...t})=>U.jsx(R7,{className:t8(e),...t}),BN=({className:e,...t})=>U.jsx(R9,{className:t8(e),...t}),BI=({className:e,...t})=>U.jsx(De,{className:t8(e),...t}),BM=({className:e,...t})=>U.jsx(Dt,{className:t8(e),...t}),BP=({className:e,...t})=>U.jsx(Dn,{className:t8(e),...t}),BR=({className:e,...t})=>U.jsx(Di,{className:t8(e),...t}),BD=({className:e,...t})=>U.jsx(Dr,{className:t8(e),...t}),BL=({className:e,...t})=>U.jsx(kC,{className:t8("not-prose mb-4 text-primary text-xs",e),...t}),BO=({className:e,count:t,children:n,...i})=>U.jsx(kN,{className:t8("flex items-center gap-2",e),...i,children:n??U.jsxs(U.Fragment,{children:[U.jsxs("p",{className:"font-medium",children:["Used ",t," sources"]}),U.jsx(ei,{className:"h-4 w-4"})]})}),BB=({className:e,...t})=>U.jsx(kI,{className:t8("mt-3 flex w-fit flex-col gap-2","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...t}),Bj=({href:e,title:t,children:n,...i})=>U.jsx("a",{className:"flex items-center gap-2",href:e,rel:"noreferrer",target:"_blank",...i,children:n??U.jsxs(U.Fragment,{children:[U.jsx(ee,{className:"h-4 w-4"}),U.jsx("span",{className:"block font-medium",children:t})]})});var Bz="ScrollArea",[BF]=nn(Bz),[BH,BU]=BF(Bz),BG=I.forwardRef((e,t)=>{let{__scopeScrollArea:n,type:i="hover",dir:a,scrollHideDelay:o=600,...s}=e,[l,u]=I.useState(null),[c,d]=I.useState(null),[p,h]=I.useState(null),[m,f]=I.useState(null),[g,x]=I.useState(null),[v,b]=I.useState(0),[w,k]=I.useState(0),[_,T]=I.useState(!1),[E,A]=I.useState(!1),C=eq(t,e=>u(e)),N=Dd(a);return U.jsx(BH,{scope:n,type:i,dir:N,scrollHideDelay:o,scrollArea:l,viewport:c,onViewportChange:d,content:p,onContentChange:h,scrollbarX:m,onScrollbarXChange:f,scrollbarXEnabled:_,onScrollbarXEnabledChange:T,scrollbarY:g,onScrollbarYChange:x,scrollbarYEnabled:E,onScrollbarYEnabledChange:A,onCornerWidthChange:b,onCornerHeightChange:k,children:U.jsx(rI.div,{dir:N,...s,ref:C,style:{position:"relative","--radix-scroll-area-corner-width":v+"px","--radix-scroll-area-corner-height":w+"px",...e.style}})})});BG.displayName=Bz;var Bq="ScrollAreaViewport",BV=I.forwardRef((e,t)=>
543{let{__scopeScrollArea:n,children:i,nonce:a,...o}=e,s=BU(Bq,n),l=eq(t,I.useRef(null),s.onViewportChange);return U.jsxs(U.Fragment,{children:[U.jsx("style",{dangerouslySetInnerHTML:{__html:"[data-radix-scroll-area-viewport]{scrollbar-width:none;-ms-overflow-style:none;-webkit-overflow-scrolling:touch;}[data-radix-scroll-area-viewport]::-webkit-scrollbar{display:none}"},nonce:a}),U.jsx(rI.div,{"data-radix-scroll-area-viewport":"",...o,ref:l,style:{overflowX:s.scrollbarXEnabled?"scroll":"hidden",overflowY:s.scrollbarYEnabled?"scroll":"hidden",...e.style},children:U.jsx("div",{ref:s.onContentChange,style:{minWidth:"100%",display:"table"},children:i})})]})});BV.displayName=Bq;var BW="ScrollAreaScrollbar",BY=I.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=BU(BW,e.__scopeScrollArea),{onScrollbarXEnabledChange:o,onScrollbarYEnabledChange:s}=a,l="horizontal"===e.orientation;return I.useEffect(()=>(l?o(!0):s(!0),()=>{l?o(!1):s(!1)}),[l,o,s]),"hover"===a.type?U.jsx(BK,{...i,ref:t,forceMount:n}):"scroll"===a.type?U.jsx(BX,{...i,ref:t,forceMount:n}):"auto"===a.type?U.jsx(BQ,{...i,ref:t,forceMount:n}):"always"===a.type?U.jsx(BZ,{...i,ref:t}):null});BY.displayName=BW;var BK=I.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=BU(BW,e.__scopeScrollArea),[o,s]=I.useState(!1);return I.useEffect(()=>{let e=a.scrollArea,t=0;if(e){let n=()=>{window.clearTimeout(t),s(!0)},i=()=>{t=window.setTimeout(()=>s(!1),a.scrollHideDelay)};return e.addEventListener("pointerenter",n),e.addEventListener("pointerleave",i),()=>{window.clearTimeout(t),e.removeEventListener("pointerenter",n),e.removeEventListener("pointerleave",i)}}},[a.scrollArea,a.scrollHideDelay]),U.jsx(rJ,{present:n||o,children:U.jsx(BQ,{"data-state":o?"visible":"hidden",...i,ref:t})})}),BX=I.forwardRef((e,t)=>{var n,i;let{forceMount:a,...o}=e,s=BU(BW,e.__scopeScrollArea),l="horizontal"===e.orientation,u=ja(()=>d("SCROLL_END"),100),[c,d]=(n="hidden",i={hidden:{SCROLL:"scrolling"},scrolling:{SCROLL_END:"idle",POINTER_ENTER:"interacting"},interacting:{SCROLL:"interacting",POINTER_LEAVE:"idle"},idle:{HIDE:"hidden",SCROLL:"scrolling",POINTER_ENTER:"interacting"}},I.useReducer((e,t)=>i[e][t]??e,n));return I.useEffect(()=>{if("idle"===c){let e=window.setTimeout(()=>d("HIDE"),s.scrollHideDelay);return()=>window.clearTimeout(e)}},[c,s.scrollHideDelay,d]),I.useEffect(()=>{let e=s.viewport,t=l?"scrollLeft":"scrollTop";if(e){let n=e[t],i=()=>{let i=e[t];n!==i&&(d("SCROLL"),u()),n=i};return e.addEventListener("scroll",i),()=>e.removeEventListener("scroll",i)}},[s.viewport,l,d,u]),U.jsx(rJ,{present:a||"hidden"!==c,children:U.jsx(BZ,{"data-state":"hidden"===c?"hidden":"visible",...o,ref:t,onPointerEnter:nt(e.onPointerEnter,()=>d("POINTER_ENTER")),onPointerLeave:nt(e.onPointerLeave,()=>d("POINTER_LEAVE"))})})}),BQ=I.forwardRef((e,t)=>{let n=BU(BW,e.__scopeScrollArea),{forceMount:i,...a}=e,[o,s]=I.useState(!1),l="horizontal"===e.orientation,u=ja(()=>{if(n.viewport){let e=n.viewport.offsetWidth<n.viewport.scrollWidth,t=n.viewport.offsetHeight<n.viewport.scrollHeight;s(l?e:t)}},10);return jo(n.viewport,u),jo(n.content,u),U.jsx(rJ,{present:i||o,children:U.jsx(BZ,{"data-state":o?"visible":"hidden",...a,ref:t})})}),BZ=I.forwardRef((e,t)=>{let{orientation:n="vertical",...i}=e,a=BU(BW,e.__scopeScrollArea),o=I.useRef(null),s=I.useRef(0),[l,u]=I.useState({content:0,viewport:0,scrollbar:{size:0,paddingStart:0,paddingEnd:0}}),c=je(l.viewport,l.content),d={...i,sizes:l,onSizesChange:u,hasThumb:c>0&&c<1,onThumbChange:e=>o.current=e,onThumbPointerUp:()=>s.current=0,onThumbPointerDown:e=>s.current=e};function p(e,t){return function(e,t,n,i="ltr"){let a=jt(n),o=t||a/2,s=n.scrollbar.paddingStart+o,l=n.scrollbar.size-n.scrollbar.paddingEnd-(a-o),u=n.content-n.viewport;return jr([s,l],"ltr"===i?[0,u]:[-1*u,0])(e)}(e,s.current,l,t)}return"horizontal"===n?U.jsx(B$,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=jn(a.viewport.scrollLeft,l,a.dir);o.current.style.transform=`translate3d(${e}px, 0, 0)`}},onWheelScroll:e=>{a.viewport&&(a.viewport.scrollLeft=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollLeft=p(e,a.dir))}}):"vertical"===n?U.jsx(BJ,{...d,ref:t,onThumbPositionChange:()=>{if(a.viewport&&o.current){let e=jn(a.viewport.scrollTop,l);o.current.style.transform=`translate3d(0, ${e}px, 0)`}}
543,onWheelScroll:e=>{a.viewport&&(a.viewport.scrollTop=e)},onDragScroll:e=>{a.viewport&&(a.viewport.scrollTop=p(e))}}):null}),B$=I.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...a}=e,o=BU(BW,e.__scopeScrollArea),[s,l]=I.useState(),u=I.useRef(null),c=eq(t,u,o.onScrollbarXChange);return I.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),U.jsx(B2,{"data-orientation":"horizontal",...a,ref:c,sizes:n,style:{bottom:0,left:"rtl"===o.dir?"var(--radix-scroll-area-corner-width)":0,right:"ltr"===o.dir?"var(--radix-scroll-area-corner-width)":0,"--radix-scroll-area-thumb-width":jt(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.x),onDragScroll:t=>e.onDragScroll(t.x),onWheelScroll:(t,n)=>{if(o.viewport){let i=o.viewport.scrollLeft+t.deltaX;e.onWheelScroll(i),i>0&&i<n&&t.preventDefault()}},onResize:()=>{u.current&&o.viewport&&s&&i({content:o.viewport.scrollWidth,viewport:o.viewport.offsetWidth,scrollbar:{size:u.current.clientWidth,paddingStart:B9(s.paddingLeft),paddingEnd:B9(s.paddingRight)}})}})}),BJ=I.forwardRef((e,t)=>{let{sizes:n,onSizesChange:i,...a}=e,o=BU(BW,e.__scopeScrollArea),[s,l]=I.useState(),u=I.useRef(null),c=eq(t,u,o.onScrollbarYChange);return I.useEffect(()=>{u.current&&l(getComputedStyle(u.current))},[u]),U.jsx(B2,{"data-orientation":"vertical",...a,ref:c,sizes:n,style:{top:0,right:"ltr"===o.dir?0:void 0,left:"rtl"===o.dir?0:void 0,bottom:"var(--radix-scroll-area-corner-height)","--radix-scroll-area-thumb-height":jt(n)+"px",...e.style},onThumbPointerDown:t=>e.onThumbPointerDown(t.y),onDragScroll:t=>e.onDragScroll(t.y),onWheelScroll:(t,n)=>{if(o.viewport){let i=o.viewport.scrollTop+t.deltaY;e.onWheelScroll(i),i>0&&i<n&&t.preventDefault()}},onResize:()=>{u.current&&o.viewport&&s&&i({content:o.viewport.scrollHeight,viewport:o.viewport.offsetHeight,scrollbar:{size:u.current.clientHeight,paddingStart:B9(s.paddingTop),paddingEnd:B9(s.paddingBottom)}})}})}),[B0,B1]=BF(BW),B2=I.forwardRef((e,t)=>{let{__scopeScrollArea:n,sizes:i,hasThumb:a,onThumbChange:o,onThumbPointerUp:s,onThumbPointerDown:l,onThumbPositionChange:u,onDragScroll:c,onWheelScroll:d,onResize:p,...h}=e,m=BU(BW,n),[f,g]=I.useState(null),x=eq(t,e=>g(e)),v=I.useRef(null),b=I.useRef(""),w=m.viewport,k=i.content-i.viewport,_=rR(d),T=rR(u),E=ja(p,10);function A(e){v.current&&c({x:e.clientX-v.current.left,y:e.clientY-v.current.top})}return I.useEffect(()=>{let e=e=>{let t=e.target;(null==f?void 0:f.contains(t))&&_(e,k)};return document.addEventListener("wheel",e,{passive:!1}),()=>document.removeEventListener("wheel",e,{passive:!1})},[w,f,k,_]),I.useEffect(T,[i,T]),jo(f,E),jo(m.content,E),U.jsx(B0,{scope:n,scrollbar:f,hasThumb:a,onThumbChange:rR(o),onThumbPointerUp:rR(s),onThumbPositionChange:T,onThumbPointerDown:rR(l),children:U.jsx(rI.div,{...h,ref:x,style:{position:"absolute",...h.style},onPointerDown:nt(e.onPointerDown,e=>{0===e.button&&(e.target.setPointerCapture(e.pointerId),v.current=f.getBoundingClientRect(),b.current=document.body.style.webkitUserSelect,document.body.style.webkitUserSelect="none",m.viewport&&(m.viewport.style.scrollBehavior="auto"),A(e))}),onPointerMove:nt(e.onPointerMove,A),onPointerUp:nt(e.onPointerUp,e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),document.body.style.webkitUserSelect=b.current,m.viewport&&(m.viewport.style.scrollBehavior=""),v.current=null})})})}),B4="ScrollAreaThumb",B5=I.forwardRef((e,t)=>{let{forceMount:n,...i}=e,a=B1(B4,e.__scopeScrollArea);return U.jsx(rJ,{present:n||a.hasThumb,children:U.jsx(B3,{ref:t,...i})})}),B3=I.forwardRef((e,t)=>{let{__scopeScrollArea:n,style:i,...a}=e,o=BU(B4,n),s=B1(B4,n),{onThumbPositionChange:l}=s,u=eq(t,e=>s.onThumbChange(e)),c=I.useRef(void 0),d=ja(()=>{c.current&&(c.current(),c.current=void 0)},100);return I.useEffect(()=>{let e=o.viewport;if(e){let t=()=>{if(d(),!c.current){let t=ji(e,l);c.current=t,l()}};return l(),e.addEventListener("scroll",t),()=>e.removeEventListener("scroll",t)}},[o.viewport,d,l]),U.jsx(rI.div,{"data-state":s.hasThumb?"visible":"hidden",...a,ref:u,style:{width:"var(--radix-scroll-area-thumb-width)",height:"var(--radix-scroll-area-thumb-height)",...i},onPointerDownCapture:nt(e.onPointerDownCapture,e=>{let t=e.target.getBoundingClientRect(),n=e.clientX-t.left,i=e.clientY-t.top;s.onThumbPointerDown({x:n,y:i})}),onPointerUp:nt(e.onPointerUp,s.onThumbPointerUp)})});B5.displayName=B4;var B6="ScrollAreaCorner",B7=I.forwardRef((e,t)=>
543{let n=BU(B6,e.__scopeScrollArea),i=!!(n.scrollbarX&&n.scrollbarY);return"scroll"!==n.type&&i?U.jsx(B8,{...e,ref:t}):null});B7.displayName=B6;var B8=I.forwardRef((e,t)=>{let{__scopeScrollArea:n,...i}=e,a=BU(B6,n),[o,s]=I.useState(0),[l,u]=I.useState(0),c=!!(o&&l);return jo(a.scrollbarX,()=>{var e;let t=(null==(e=a.scrollbarX)?void 0:e.offsetHeight)||0;a.onCornerHeightChange(t),u(t)}),jo(a.scrollbarY,()=>{var e;let t=(null==(e=a.scrollbarY)?void 0:e.offsetWidth)||0;a.onCornerWidthChange(t),s(t)}),c?U.jsx(rI.div,{...i,ref:t,style:{width:o,height:l,position:"absolute",right:"ltr"===a.dir?0:void 0,left:"rtl"===a.dir?0:void 0,bottom:0,...e.style}}):null});function B9(e){return e?parseInt(e,10):0}function je(e,t){let n=e/t;return isNaN(n)?0:n}function jt(e){let t=je(e.viewport,e.content),n=e.scrollbar.paddingStart+e.scrollbar.paddingEnd;return Math.max((e.scrollbar.size-n)*t,18)}function jn(e,t,n="ltr"){let i=jt(t),a=t.scrollbar.paddingStart+t.scrollbar.paddingEnd,o=t.scrollbar.size-a,s=t.content-t.viewport,l=L0(e,"ltr"===n?[0,s]:[-1*s,0]);return jr([0,s],[0,o-i])(l)}function jr(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let i=(t[1]-t[0])/(e[1]-e[0]);return t[0]+i*(n-e[0])}}var ji=(e,t=()=>{})=>{let n={left:e.scrollLeft,top:e.scrollTop},i=0;return function a(){let o={left:e.scrollLeft,top:e.scrollTop},s=n.left!==o.left,l=n.top!==o.top;(s||l)&&t(),n=o,i=window.requestAnimationFrame(a)}(),()=>window.cancelAnimationFrame(i)};function ja(e,t){let n=rR(e),i=I.useRef(0);return I.useEffect(()=>()=>window.clearTimeout(i.current),[]),I.useCallback(()=>{window.clearTimeout(i.current),i.current=window.setTimeout(n,t)},[n,t])}function jo(e,t){let n=rR(t);nr(()=>{let t=0;if(e){let i=new ResizeObserver(()=>{cancelAnimationFrame(t),t=window.requestAnimationFrame(n)});return i.observe(e),()=>{window.cancelAnimationFrame(t),i.unobserve(e)}}},[e,n])}function js({className:e,children:t,...n}){return U.jsxs(BG,{"data-slot":"scroll-area",className:t8("relative",e),...n,children:[U.jsx(BV,{"data-slot":"scroll-area-viewport",className:"focus-visible:ring-ring/50 size-full rounded-[inherit] transition-[color,box-shadow] outline-none focus-visible:ring-[3px] focus-visible:outline-1",children:t}),U.jsx(jl,{}),U.jsx(B7,{})]})}function jl({className:e,orientation:t="vertical",...n}){return U.jsx(BY,{"data-slot":"scroll-area-scrollbar",orientation:t,className:t8("flex touch-none p-px transition-colors select-none","vertical"===t&&"h-full w-2.5 border-l border-l-transparent","horizontal"===t&&"h-2.5 flex-col border-t border-t-transparent",e),...n,children:U.jsx(B5,{"data-slot":"scroll-area-thumb",className:"bg-border relative flex-1 rounded-full"})})}let ju=({className:e,children:t,...n})=>U.jsxs(js,{className:"w-full overflow-x-auto whitespace-nowrap",...n,children:[U.jsx("div",{className:t8("flex w-max flex-nowrap items-center gap-2",e),children:t}),U.jsx(jl,{className:"hidden",orientation:"horizontal"})]}),jc=({suggestion:e,onClick:t,className:n,variant:i="outline",size:a="sm",children:o,...s})=>U.jsx(ne,{className:t8("cursor-pointer rounded-full px-4",n),onClick:()=>{null==t||t(e)},size:a,type:"button",variant:i,...s,children:o||e}),jd=e0("relative w-full rounded-lg border px-4 py-3 text-sm grid has-[>svg]:grid-cols-[calc(var(--spacing)*4)_1fr] grid-cols-[0_1fr] has-[>svg]:gap-x-3 gap-y-0.5 items-start [&>svg]:size-4 [&>svg]:translate-y-0.5 [&>svg]:text-current",{variants:{variant:{default:"bg-card text-card-foreground",destructive:"text-destructive bg-card [&>svg]:text-current *:data-[slot=alert-description]:text-destructive/90"}},defaultVariants:{variant:"default"}});function jp({className:e,variant:t,...n}){return U.jsx("div",{"data-slot":"alert",role:"alert",className:t8(jd({variant:t}),e),...n})}function jh({className:e,...t}){return U.jsx("div",{"data-slot":"alert-description",className:t8("text-muted-foreground col-start-2 grid justify-items-start gap-1 text-sm [&_p]:leading-relaxed",e),...t})}let jm=(0,I.createContext)(null),jf=()=>{let e=(0,I.useContext)(jm);if(!e)throw Error("Confirmation components must be used within Confirmation");return e},jg=({className:e,approval:t,state:n,...i})=>t&&"input-streaming"!==n&&"input-available"!==n?U.jsx(jm.Provider,{value:{approval:t,state:n},children:U.jsx(jp,{className:t8("flex flex-col gap-2",e),...i})}):null,jx=({className:e,...t})=>U.jsx(jh,{className:t8("inline",e),...t}),jv=({children:e})=>{let{state:t}=jf();return"approval-requested"!==t?null:e},jy=({children:e})=>{let{approval:t,state:n}=jf();return null!=t&&t.approved&&("approval-responded"===n||"output-denied"===n||"output-
543available"===n)?e:null},jb=({children:e})=>{let{approval:t,state:n}=jf();return(null==t?void 0:t.approved)!==!1||"approval-responded"!==n&&"output-denied"!==n&&"output-available"!==n?null:e},jw=({className:e,...t})=>{let{state:n}=jf();return"approval-requested"!==n?null:U.jsx("div",{className:t8("flex items-center justify-end gap-2 self-end",e),...t})},jk=e=>U.jsx(ne,{className:"h-8 px-3 text-sm",type:"button",...e}),j_=({className:e,...t})=>U.jsx("div",{className:t8("flex flex-col overflow-hidden rounded-lg border bg-background shadow-sm",e),...t}),jT=({className:e,...t})=>U.jsx("div",{className:t8("flex items-center justify-between border-b bg-muted/50 px-4 py-3",e),...t}),jE=({className:e,children:t,size:n="sm",variant:i="ghost",...a})=>U.jsxs(ne,{className:t8("size-8 p-0 text-muted-foreground hover:text-foreground",e),size:n,type:"button",variant:i,...a,children:[t??U.jsx(eL,{className:"size-4"}),U.jsx("span",{className:"sr-only",children:"Close"})]}),jS=({className:e,...t})=>U.jsx("p",{className:t8("font-medium text-foreground text-sm",e),...t}),jA=({className:e,...t})=>U.jsx("p",{className:t8("text-muted-foreground text-sm",e),...t}),jC=({className:e,...t})=>U.jsx("div",{className:t8("flex items-center gap-1",e),...t}),jN=({tooltip:e,label:t,icon:n,children:i,className:a,size:o="sm",variant:s="ghost",...l})=>{let u=U.jsxs(ne,{className:t8("size-8 p-0 text-muted-foreground hover:text-foreground",a),size:o,type:"button",variant:s,...l,children:[n?U.jsx(n,{className:"size-4"}):i,U.jsx("span",{className:"sr-only",children:t||e})]});return e?U.jsx(w7,{children:U.jsxs(w8,{children:[U.jsx(w9,{asChild:!0,children:u}),U.jsx(ke,{children:U.jsx("p",{children:e})})]})}):u},jI=({className:e,...t})=>U.jsx("div",{className:t8("flex-1 overflow-auto p-4",e),...t});function jM(e){if("string"==typeof e||"number"==typeof e)return""+e;let t="";if(Array.isArray(e))for(let n=0,i;n<e.length;n++)""!==(i=jM(e[n]))&&(t+=(t&&" ")+i);else for(let n in e)e[n]&&(t+=(t&&" ")+n);return t}var jP={value:()=>{}};function jR(){for(var e,t=0,n=arguments.length,i={};t<n;++t){if(!(e=arguments[t]+"")||e in i||/[\s.]/.test(e))throw Error("illegal type: "+e);i[e]=[]}return new jD(i)}function jD(e){this._=e}function jL(e,t,n){for(var i=0,a=e.length;i<a;++i)if(e[i].name===t){e[i]=jP,e=e.slice(0,i).concat(e.slice(i+1));break}return null!=n&&e.push({name:t,value:n}),e}jD.prototype=jR.prototype={constructor:jD,on:function(e,t){var n,i=this._,a=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");if(n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),e&&!i.hasOwnProperty(e))throw Error("unknown type: "+e);return{type:e,name:t}}),o=-1,s=a.length;if(arguments.length<2){for(;++o<s;)if((n=(e=a[o]).type)&&(n=function(e,t){for(var n,i=0,a=e.length;i<a;++i)if((n=e[i]).name===t)return n.value}(i[n],e.name)))return n;return}if(null!=t&&"function"!=typeof t)throw Error("invalid callback: "+t);for(;++o<s;)if(n=(e=a[o]).type)i[n]=jL(i[n],e.name,t);else if(null==t)for(n in i)i[n]=jL(i[n],e.name,null);return this},copy:function(){var e={},t=this._;for(var n in t)e[n]=t[n].slice();return new jD(e)},call:function(e,t){if((n=arguments.length-2)>0)for(var n,i,a=Array(n),o=0;o<n;++o)a[o]=arguments[o+2];if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(i=this._[e],o=0,n=i.length;o<n;++o)i[o].value.apply(t,a)},apply:function(e,t,n){if(!this._.hasOwnProperty(e))throw Error("unknown type: "+e);for(var i=this._[e],a=0,o=i.length;a<o;++a)i[a].value.apply(t,n)}};var jO="http://www.w3.org/1999/xhtml";let jB={svg:"http://www.w3.org/2000/svg",xhtml:jO,xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"};function jj(e){var t=e+="",n=t.indexOf(":");return n>=0&&"xmlns"!==(t=e.slice(0,n))&&(e=e.slice(n+1)),jB.hasOwnProperty(t)?{space:jB[t],local:e}:e}function jz(e){var t=jj(e);return(t.local?function(e){return function(){return this.ownerDocument.createElementNS(e.space,e.local)}}:function(e){return function(){var t=this.ownerDocument,n=this.namespaceURI;return n===jO&&t.documentElement.namespaceURI===jO?t.createElement(e):t.createElementNS(n,e)}})(t)}function jF(){}function jH(e){return null==e?jF:function(){return this.querySelector(e)}}function jU(){return[]}function jG(e){return null==e?jU:function(){return this.querySelectorAll(e)}}function jq(e){return function(){return this.matches(e)}}function jV(e){return function(t){return t.matches(e)}}var jW=Array.prototype.find;function jY(){return this.firstElementChild}var jK=Array.prototype.filter;function jX(){return Array.from(this.children)}function jQ(e){return Array(e.length)}function jZ(e,t){this.ownerDocument=e.ownerDocument,this.namespaceURI=e.namespaceURI,this._next=null,this._parent=e,this.__data__=t}function j$(e,t,n,i,a,o){for(var s,l=0,u=t.length,c=o.length;l<c;++l)(s=t[l])?(s.__data__=o[l],i[l]=s):n[l]=new jZ(e,o[l]);for(;l<u;++l)(s=t[l])&&(a[l]=s)}function jJ(e,t,n,i,a,o,s){var l,u,c,d=new Map,p=t.length,h=o.length,m=Array(p);for(l=0;l<p;++l)(u=t[l])&&(m[l]=c=s.call(u,u.__data__,l,t)+"",d.has(c)?a[l]=u:d.set(c,u));for(l=0;l<h;++l)c=s.call(e,o[l],l,o)+"",(u=d.get(c))?(i[l]=u,u.__data__=o[l],d.delete(c)):n[l]=new jZ(e,o[l]);for(l=0;l<p;++l)(u=t[l])&&d.get(m[l])===u&&(a[l]=u)}function j0(e){return e.__data__}function j1(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function j2(e){return e.ownerDocument&&e.ownerDocument.defaultView||e.document&&e||e.defaultView}function j4(e,t){return e.style.getPropertyValue(t)||j2(e).getComputedStyle(e,null).getPropertyValue(t)}function j5(e){return e.trim().split(/^|\s+/)}function j3(e){return e.classList||new j6(e)}function j6(e){this._node=e,this._names=j5(e.getAttribute("class")||"")}function j7(e,t){for(var n=j3(e),i=-1,a=t.length;++i<a;)n.add(t[i])}function j8(e,t){for(var n=j3(e),i=-1,a=t.length;++i<a;)n.remove(t[i])}function j9(){this.textContent=""}function ze(){this.innerHTML=""}function zt(){this.nextSibling&&this.parentNode.appendChild(this)}function zn(){this.previousSibling&&this.parentNode.insertBefore(this,this.parentNode.firstChild)}function zr(){return null}function zi(){var e=this.parentNode;e&&e.removeChild(this)}function za(){var e=this.cloneNode(!1),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zo(){var e=this.cloneNode(!0),t=this.parentNode;return t?t.insertBefore(e,this.nextSibling):e}function zs(e){return function(){var t=this.__on;if(t){for(var n,i=0,a=-1,o=t.length;i<o;++i)n=t[i],e.type&&n.type!==e.type||n.name!==e.name?t[++a]=n:this.removeEventListener(n.type,n.listener,n.options);++a?t.length=a:delete this.__on}}}function zl(e,t,n){return function(){var i,a=this.__on,o=function(e){t.call(this,e,this.__data__)};if(a){for(var s=0,l=a.length;s<l;++s)if((i=a[s]).type===e.type&&i.name===e.name){this.removeEventListener(i.type,i.listener,i.options),this.addEventListener(i.type,i.listener=o,i.options=n),i.value=t;return}}this.addEventListener(e.type,o,n),i={type:e.type,name:e.name,value:t,listener:o,options:n},a?a.push(i):this.__on=[i]}}function zu(e,t,n){var i=j2(e),a=i.CustomEvent;"function"==typeof a?a=new a(t,n):(a=i.document.createEvent("Event"),n?(a.initEvent(t,n.bubbles,n.cancelable),a.detail=n.detail):a.initEvent(t,!1,!1)),e.dispatchEvent(a)}jZ.prototype={constructor:jZ,appendChild:function(e){return this._parent.insertBefore(e,this._next)},insertBefore:function(e,t){return this._parent.insertBefore(e,t)},querySelector:function(e){return this._parent.querySelector(e)},querySelectorAll:function(e){return this._parent.querySelectorAll(e)}},j6.prototype={add:function(e){0>this._names.indexOf(e)&&(this._names.push(e),this._node.setAttribute("class",this._names.join(" ")))},remove:function(e){var t=this._names.indexOf(e);t>=0&&(this._names.splice(t,1),this._node.setAttribute("class",this._names.join(" ")))},contains:function(e){return this._names.indexOf(e)>=0}};var zc=[null];function zd(e,t){this._groups=e,this._parents=t}function zp(){return new zd([[document.documentElement]],zc)}function zh(e){return"string"==typeof e?new zd([[document.querySelector(e)]],[document.documentElement]):new zd([[e]],zc)}function zm(e,t){if(e=function(e){let t;for(;t=e.sourceEvent;)e=t;return e}(e),void 0===t&&(t=e.currentTarget),t){var n=t.ownerSVGElement||t;if(n.createSVGPoint){var i=n.createSVGPoint();return i.x=e.clientX,i.y=e.clientY,[(i=i.matrixTransform(t.getScreenCTM().inverse())).x,i.y]}if(t.getBoundingClientRect){var a=t.getBoundingClientRect();return[e.clientX-a.left-t.clientLeft,e.clientY-a.top-t.clientTop]}}return[e.pageX,e.pageY]}zd.prototype=zp.prototype={constructor:zd,select:function(e){"function"!=typeof e&&(e=jH(e));for(var t=this._groups,n=t.length,i=Array(n),a=0;a<n;++a)for(var o,s,l=t[a],u=l.length,c=i[a]=Array(u),d=0;d<u;++d)(o=l[d])&&(s=e.call(o,o.__data__,d,l))&&("__data__"in o&&(s.__data__=o.__data__),c[d]=s);return new zd(i,this._parents)},selectAll:function(e){var t;"function"==typeof e?(t=e,e=function(){var e;return e=t.apply(this,arguments),null==e?[]:Array.isArray(e)?e:Array.from(e)}):e=jG(e);for(var n=this._groups,i=n.length,a=[],o=[],s=0;s<i;++s)for(var l,u=n[s],c=u.length,d=0;d<c;++d)(l=u[d])&&(a.push(e.call(l,l.__data__,d,u)),o.push(l));return new zd(a,o)},selectChild:function(e){var t;return this.select(null==e?jY:(t="function"==typeof e?e:jV(e),function(){return jW.call(this.children,t)}))},selectChildren:function(e){var t;return this.selectAll(null==e?jX:(t="function"==typeof e?e:jV(e),function(){return jK.call(this.children,t)}))},filter:function(e){"function"!=typeof e&&(e=jq(e));for(var t=this._groups,n=t.length,i=Array(n),a=0;a<n;++a)for(var o,s=t[a],l=s.length,u=i[a]=[],c=0;c<l;++c)(o=s[c])&&e.call(o,o.__data__,c,s)&&u.push(o);return new zd(i,this._parents)},data:function(e,t){if(!arguments.length)return Array.from(this,j0);var n=t?jJ:j$,i=this._parents,a=this._groups;"function"!=typeof e&&(b=e,e=function(){return b});for(var o=a.length,s=Array(o),l=Array(o),u=Array(o),c=0;c<o;++c){var d=i[c],p=a[c],h=p.length,m="object"==typeof(v=e.call(d,d&&d.__data__,c,i))&&"length"in v?v:Array.from(v),f=m.length,g=l[c]=Array(f),x=s[c]=Array(f);n(d,p,g,x,u[c]=Array(h),m,t);for(var v,b,w,k,_=0,T=0;_<f;++_)if(w=g[_]){for(_>=T&&(T=_+1);!(k=x[T])&&++T<f;);w._next=k||null}}return(s=new zd(s,i))._enter=l,s._exit=u,s},enter:function(){return new zd(this._enter||this._groups.map(jQ),this._parents)},exit:function(){return new zd(this._exit||this._groups.map(jQ),this._parents)},join:function(e,t,n){var i=this.enter(),a=this,o=this.exit();return"function"==typeof e?(i=e(i))&&(i=i.selection()):i=i.append(e+""),null!=t&&(a=t(a))&&(a=a.selection()),null==n?o.remove():n(o),i&&a?i.merge(a).order():a},merge:function(e){for(var t=e.selection?e.selection():e,n=this._groups,i=t._groups,a=n.length,o=i.length,s=Math.min(a,o),l=Array(a),u=0;u<s;++u)for(var c,d=n[u],p=i[u],h=d.length,m=l[u]=Array(h),f=0;f<h;++f)(c=d[f]||p[f])&&(m[f]=c);for(;u<a;++u)l[u]=n[u];return new zd(l,this._parents)},selection:function(){return this},order:function(){for(var e=this._groups,t=-1,n=e.length;++t<n;)for(var i,a=e[t],o=a.length-1,s=a[o];--o>=0;)(i=a[o])&&(s&&4^i.compareDocumentPosition(s)&&s.parentNode.insertBefore(i,s),s=i);return this},sort:function(e){function t(t,n){return t&&n?e(t.__data__,n.__data__):!t-!n}e||(e=j1);for(var n=this._groups,i=n.length,a=Array(i),o=0;o<i;++o){for(var s,l=n[o],u=l.length,c=a[o]=Array(u),d=0;d<u;++d)(s=l[d])&&(c[d]=s);c.sort(t)}return new zd(a,this._parents).order()},call:function(){var e=arguments[0];return arguments[0]=this,e.apply(null,arguments),this},nodes:function(){return Array.from(this)},node:function(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i=e[t],a=0,o=i.length;a<o;++a){var s=i[a];if(s)return s}return null},size:function(){let e=0;for(let t of this)++e;return e},empty:function(){return!this.node()},each:function(e){for(var t=this._groups,n=0,i=t.length;n<i;++n)for(var a,o=t[n],s=0,l=o.length;s<l;++s)(a=o[s])&&e.call(a,a.__data__,s,o);return this},attr:function(e,t){var n=jj(e);if(arguments.length<2){var i=this.node();return n.local?i.getAttributeNS(n.space,n.local):i.getAttribute(n)}return this.each((null==t?n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}}:"function"==typeof t?n.local?function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttributeNS(e.space,e.local):this.setAttributeNS(e.space,e.local,n)}}:function(e,t){return function(){var n=t.apply(this,arguments);null==n?this.removeAttribute(e):this.setAttribute(e,n)}}:n.local?function(e,t){return function(){this.setAttributeNS(e.space,e.local,t)}}:function(e,t){return function(){this.setAttribute(e,t)}})(n,t))},style:function(e,t,n){return arguments.length>1?this.each((null==t?function(e){return function(){this.style.removeProperty(e)}}:"function"==typeof t?function(e,t,n){return function(){var i=t.apply(this,arguments);null==i?this.style.removeProperty(e):this.style.setProperty(e,i,n)}}:function(e,t,n){return function(){this.style.setProperty(e,t,n)}})(e,t,n??"")):j4(this.node(),e)},property:function(e,t){return arguments.length>1?this.each((null==t?function(e){return function(){delete this[e]}}:"function"==typeof t?function(e,t){return function(){var n=t.apply(this,arguments);null==n?delete this[e]:this[e]=n}}:function(e,t){return function(){this[e]=t}})(e,t)):this.node()[e]},classed:function(e,t){var n=j5(e+"");if(arguments.length<2){for(var i=j3(this.node()),a=-1,o=n.length;++a<o;)if(!i.contains(n[a]))return!1;return!0}return this.each(("function"==typeof t?function(e,t){return function(){(t.apply(this,arguments)?j7:j8)(this,e)}}:t?function(e){return function(){j7(this,e)}}:function(e){return function(){j8(this,e)}})(n,t))},text:function(e){return arguments.length?this.each(null==e?j9:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.textContent=t??""}}:function(e){return function(){this.textContent=e}})(e)):this.node().textContent},html:function(e){return arguments.length?this.each(null==e?ze:("function"==typeof e?function(e){return function(){var t=e.apply(this,arguments);this.innerHTML=t??""}}:function(e){return function(){this.innerHTML=e}})(e)):this.node().innerHTML},raise:function(){return this.each(zt)},lower:function(){return this.each(zn)},append:function(e){var t="function"==typeof e?e:jz(e);return this.select(function(){return this.appendChild(t.apply(this,arguments))})},insert:function(e,t){var n="function"==typeof e?e:jz(e),i=null==t?zr:"function"==typeof t?t:jH(t);return this.select(function(){return this.insertBefore(n.apply(this,arguments),i.apply(this,arguments)||null)})},remove:function(){return this.each(zi)},clone:function(e){return this.select(e?zo:za)},datum:function(e){return arguments.length?this.property("__data__",e):this.node().__data__},on:function(e,t,n){var i,a,o=(e+"").trim().split(/^|\s+/).map(function(e){var t="",n=e.indexOf(".");return n>=0&&(t=e.slice(n+1),e=e.slice(0,n)),{type:e,name:t}}),s=o.length;if(arguments.length<2){var l=this.node().__on;if(l){for(var u,c=0,d=l.length;c<d;++c)for(i=0,u=l[c];i<s;++i)if((a=o[i]).type===u.type&&a.name===u.name)return u.value}return}for(l=t?zl:zs,i=0;i<s;++i)this.each(l(o[i],t,n));return this},dispatch:function(e,t){return this.each(("function"==typeof t?function(e,t){return function(){return zu(this,e,t.apply(this,arguments))}}:function(e,t){return function(){return zu(this,e,t)}})(e,t))},[Symbol.iterator]:function*(){for(var e=this._groups,t=0,n=e.length;t<n;++t)for(var i,a=e[t],o=0,s=a.length;o<s;++o)(i=a[o])&&(yield i)}};let zf={passive:!1},zg={capture:!0,passive:!1};function zx(e){e.stopImmediatePropagation()}function zv(e){e.preventDefault(),e.stopImmediatePropagation()}function zy(e){var t=e.document.documentElement,n=zh(e).on("dragstart.drag",zv,zg);"onselectstart"in t?n.on("selectstart.drag",zv,zg):(t.__noselect=t.style.MozUserSelect,t.style.MozUserSelect="none")}function zb(e,t){var n=e.document.documentElement,i=zh(e).on("dragstart.drag",null);t&&(i.on("click.drag",zv,zg),setTimeout(function(){i.on("click.drag",null)},0)),"onselectstart"in n?i.on("selectstart.drag",null):(n.style.MozUserSelect=n.__noselect,delete n.__noselect)}let zw=e=>()=>e;function zk(e,{sourceEvent:t,subject:n,target:i,identifier:a,active:o,x:s,y:l,dx:u,dy:c,dispatch:d}){Object.defineProperties(this,{type:{value:e,enumerable:!0,con
vendor: 6,392 bytes, line 543
543figurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},subject:{value:n,enumerable:!0,configurable:!0},target:{value:i,enumerable:!0,configurable:!0},identifier:{value:a,enumerable:!0,configurable:!0},active:{value:o,enumerable:!0,configurable:!0},x:{value:s,enumerable:!0,configurable:!0},y:{value:l,enumerable:!0,configurable:!0},dx:{value:u,enumerable:!0,configurable:!0},dy:{value:c,enumerable:!0,configurable:!0},_:{value:d}})}function z_(e){return!e.ctrlKey&&!e.button}function zT(){return this.parentNode}function zE(e,t){return t??{x:e.x,y:e.y}}function zS(){return navigator.maxTouchPoints||"ontouchstart"in this}function zA(){var e,t,n,i,a=z_,o=zT,s=zE,l=zS,u={},c=jR("start","drag","end"),d=0,p=0;function h(e){e.on("mousedown.drag",m).filter(l).on("touchstart.drag",x).on("touchmove.drag",v,zf).on("touchend.drag touchcancel.drag",b).style("touch-action","none").style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function m(s,l){if(!(i||!a.call(this,s,l))){var u=w(this,o.call(this,s,l),s,l,"mouse");u&&(zh(s.view).on("mousemove.drag",f,zg).on("mouseup.drag",g,zg),zy(s.view),zx(s),n=!1,e=s.clientX,t=s.clientY,u("start",s))}}function f(i){if(zv(i),!n){var a=i.clientX-e,o=i.clientY-t;n=a*a+o*o>p}u.mouse("drag",i)}function g(e){zh(e.view).on("mousemove.drag mouseup.drag",null),zb(e.view,n),zv(e),u.mouse("end",e)}function x(e,t){if(a.call(this,e,t)){var n,i,s=e.changedTouches,l=o.call(this,e,t),u=s.length;for(n=0;n<u;++n)(i=w(this,l,e,t,s[n].identifier,s[n]))&&(zx(e),i("start",e,s[n]))}}function v(e){var t,n,i=e.changedTouches,a=i.length;for(t=0;t<a;++t)(n=u[i[t].identifier])&&(zv(e),n("drag",e,i[t]))}function b(e){var t,n,a=e.changedTouches,o=a.length;for(i&&clearTimeout(i),i=setTimeout(function(){i=null},500),t=0;t<o;++t)(n=u[a[t].identifier])&&(zx(e),n("end",e,a[t]))}function w(e,t,n,i,a,o){var l,p,m,f=c.copy(),g=zm(o||n,t);if(null!=(m=s.call(e,new zk("beforestart",{sourceEvent:n,target:h,identifier:a,active:d,x:g[0],y:g[1],dx:0,dy:0,dispatch:f}),i)))return l=m.x-g[0]||0,p=m.y-g[1]||0,function n(o,s,c){var x,v=g;switch(o){case"start":u[a]=n,x=d++;break;case"end":delete u[a],--d;case"drag":g=zm(c||s,t),x=d}f.call(o,e,new zk(o,{sourceEvent:s,subject:m,target:h,identifier:a,active:x,x:g[0]+l,y:g[1]+p,dx:g[0]-v[0],dy:g[1]-v[1],dispatch:f}),i)}}return h.filter=function(e){return arguments.length?(a="function"==typeof e?e:zw(!!e),h):a},h.container=function(e){return arguments.length?(o="function"==typeof e?e:zw(e),h):o},h.subject=function(e){return arguments.length?(s="function"==typeof e?e:zw(e),h):s},h.touchable=function(e){return arguments.length?(l="function"==typeof e?e:zw(!!e),h):l},h.on=function(){var e=c.on.apply(c,arguments);return e===c?h:e},h.clickDistance=function(e){return arguments.length?(p=(e=+e)*e,h):Math.sqrt(p)},h}function zC(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function zN(e,t){var n=Object.create(e.prototype);for(var i in t)n[i]=t[i];return n}function zI(){}zk.prototype.on=function(){var e=this._.on.apply(this._,arguments);return e===this._?this:e};var zM="\\s*([+-]?\\d+)\\s*",zP="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",zR="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",zD=/^#([0-9a-f]{3,8})$/,zL=RegExp(`^rgb\\(${zM},${zM},${zM}\\)$`),zO=RegExp(`^rgb\\(${zR},${zR},${zR}\\)$`),zB=RegExp(`^rgba\\(${zM},${zM},${zM},${zP}\\)$`),zj=RegExp(`^rgba\\(${zR},${zR},${zR},${zP}\\)$`),zz=RegExp(`^hsl\\(${zP},${zR},${zR}\\)$`),zF=RegExp(`^hsla\\(${zP},${zR},${zR},${zP}\\)$`),zH={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};function zU(){return this.rgb().formatHex()}function zG(){return this.rgb().formatRgb()}function zq(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=zD.exec(e))?(n=t[1].length,t=parseInt(t[1],16),6===n?zV(t):3===n?
543new zX(t>>8&15|t>>4&240,t>>4&15|240&t,(15&t)<<4|15&t,1):8===n?zW(t>>24&255,t>>16&255,t>>8&255,(255&t)/255):4===n?zW(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|240&t,((15&t)<<4|15&t)/255):null):(t=zL.exec(e))?new zX(t[1],t[2],t[3],1):(t=zO.exec(e))?new zX(255*t[1]/100,255*t[2]/100,255*t[3]/100,1):(t=zB.exec(e))?zW(t[1],t[2],t[3],t[4]):(t=zj.exec(e))?zW(255*t[1]/100,255*t[2]/100,255*t[3]/100,t[4]):(t=zz.exec(e))?z1(t[1],t[2]/100,t[3]/100,1):(t=zF.exec(e))?z1(t[1],t[2]/100,t[3]/100,t[4]):zH.hasOwnProperty(e)?zV(zH[e]):"transparent"===e?new zX(NaN,NaN,NaN,0):null}function zV(e){return new zX(e>>16&255,e>>8&255,255&e,1)}function zW(e,t,n,i){return i<=0&&(e=t=n=NaN),new zX(e,t,n,i)}function zY(e){return e instanceof zI||(e=zq(e)),e?new zX((e=e.rgb()).r,e.g,e.b,e.opacity):new zX}function zK(e,t,n,i){return 1==arguments.length?zY(e):new zX(e,t,n,i??1)}function zX(e,t,n,i){this.r=+e,this.g=+t,this.b=+n,this.opacity=+i}function zQ(){return`#${z0(this.r)}${z0(this.g)}${z0(this.b)}`}function zZ(){let e=z$(this.opacity);return`${1===e?"rgb(":"rgba("}${zJ(this.r)}, ${zJ(this.g)}, ${zJ(this.b)}${1===e?")":`, ${e})`}`}function z$(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function zJ(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function z0(e){return((e=zJ(e))<16?"0":"")+e.toString(16)}function z1(e,t,n,i){return i<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new z4(e,t,n,i)}function z2(e){if(e instanceof z4)return new z4(e.h,e.s,e.l,e.opacity);if(e instanceof zI||(e=zq(e)),!e)return new z4;if(e instanceof z4)return e;var t=(e=e.rgb()).r/255,n=e.g/255,i=e.b/255,a=Math.min(t,n,i),o=Math.max(t,n,i),s=NaN,l=o-a,u=(o+a)/2;return l?(s=t===o?(n-i)/l+(n<i)*6:n===o?(i-t)/l+2:(t-n)/l+4,l/=u<.5?o+a:2-o-a,s*=60):l=u>0&&u<1?0:s,new z4(s,l,u,e.opacity)}function z4(e,t,n,i){this.h=+e,this.s=+t,this.l=+n,this.opacity=+i}function z5(e){return(e=(e||0)%360)<0?e+360:e}function z3(e){return Math.max(0,Math.min(1,e||0))}function z6(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}zC(zI,zq,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:zU,formatHex:zU,formatHex8:function(){return this.rgb().formatHex8()},formatHsl:function(){return z2(this).formatHsl()},formatRgb:zG,toString:zG}),zC(zX,zK,zN(zI,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new zX(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new zX(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new zX(zJ(this.r),zJ(this.g),zJ(this.b),z$(this.opacity))},displayable(){return -.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:zQ,formatHex:zQ,formatHex8:function(){return`#${z0(this.r)}${z0(this.g)}${z0(this.b)}${z0((isNaN(this.opacity)?1:this.opacity)*255)}`},formatRgb:zZ,toString:zZ})),zC(z4,function(e,t,n,i){return 1==arguments.length?z2(e):new z4(e,t,n,i??1)},zN(zI,{brighter(e){return e=null==e?1.4285714285714286:Math.pow(1.4285714285714286,e),new z4(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=null==e?.7:Math.pow(.7,e),new z4(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,i=n+(n<.5?n:1-n)*t,a=2*n-i;return new zX(z6(e>=240?e-240:e+120,a,i),z6(e,a,i),z6(e<120?e+240:e-120,a,i),this.opacity)},clamp(){return new z4(z5(this.h),z3(this.s),z3(this.l),z$(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let e=z$(this.opacity);return`${1===e?"hsl(":"hsla("}${z5(this.h)}, ${100*z3(this.s)}%, ${100*z3(this.l)}%${1===e?")":`, ${e})`}`}}));let z7=e=>()=>e;function z8(e,t){return function(n){return e+n*t}}function z9(e,t){var n=t-e;return n?z8(e,n>180||n<-180?n-360*Math.round(n/360):n):z7(isNaN(e)?t:e)}function Fe(e,t){var n=t-e;return n?z8(e,n):z7(isNaN(e)?t:e)}let Ft=function e(t){var n,i=1==(n=+(n=t))?Fe:function(e,t){var i,a,o;return t-e?(i=e,a=t,i=Math.pow(i,o=n),a=Math.pow(a,o)-i,o=1/o,function(e){return Math.pow(i+e*a,o)}):z7(isNaN(e)?t:e)};function a(e,t){var n=i((e=zK(e)).r,(t=zK(t)).r),a=i(e.g,t.g),o=i(e.b,t.b),s=Fe(e.opacity,t.opacity);return function(t){return e.r=n(t),e.g=a(t),e.b=o(t),e.opacity=s(t),e+""}}return a.gamma=e,a}(1);function Fn(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}var Fr=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Fi=RegExp(Fr.source,"g");function Fa(e,t){var n,i,a,o,s,l=Fr.lastIndex=Fi.lastIndex=0,u=-1,c=[],d=[];for(e+="",t+="";(a=Fr.exec(e))&&(o=Fi.exec(t));)(s=o.index)>l&&(s=t.slice(l,s),c[u]?c[u]+=s:c[++u]=s),(a=a[0])===(o=o[0])?c[u]?c[u]+=o:c[++u]=o:(c[++u]=null,d.push({i:u,x:Fn(a,o)})),l=Fi.lastIndex;return l<t.length&&(s=t.slice(l),c[u]?c[u]+=s:c[++u]=s),c.length<2?d[0]?(n=d[0].x,function(e){return n(e)+""}):(i=t,function(){return i}):(t=d.length,function(e){for(var n,i=0;i<t;++i)c[(n=d[i]).i]=n.x(e);return c.join("")})}function Fo(e,t){var n,i,a=typeof t;
543return null==t||"boolean"===a?z7(t):("number"===a?Fn:"string"===a?(i=zq(t))?(t=i,Ft):Fa:t instanceof zq?Ft:t instanceof Date?function(e,t){var n=new Date;return e=+e,t=+t,function(i){return n.setTime(e*(1-i)+t*i),n}}:!ArrayBuffer.isView(n=t)||n instanceof DataView?Array.isArray(t)?function(e,t){var n,i=t?t.length:0,a=e?Math.min(i,e.length):0,o=Array(a),s=Array(i);for(n=0;n<a;++n)o[n]=Fo(e[n],t[n]);for(;n<i;++n)s[n]=t[n];return function(e){for(n=0;n<a;++n)s[n]=o[n](e);return s}}:"function"!=typeof t.valueOf&&"function"!=typeof t.toString||isNaN(t)?function(e,t){var n,i={},a={};for(n in(null===e||"object"!=typeof e)&&(e={}),(null===t||"object"!=typeof t)&&(t={}),t)n in e?i[n]=Fo(e[n],t[n]):a[n]=t[n];return function(e){for(n in i)a[n]=i[n](e);return a}}:Fn:function(e,t){t||(t=[]);var n,i=e?Math.min(t.length,e.length):0,a=t.slice();return function(o){for(n=0;n<i;++n)a[n]=e[n]*(1-o)+t[n]*o;return a}})(e,t)}var Fs=180/Math.PI,Fl={translateX:0,translateY:0,rotate:0,skewX:0,scaleX:1,scaleY:1};function Fu(e,t,n,i,a,o){var s,l,u;return(s=Math.sqrt(e*e+t*t))&&(e/=s,t/=s),(u=e*n+t*i)&&(n-=e*u,i-=t*u),(l=Math.sqrt(n*n+i*i))&&(n/=l,i/=l,u/=l),e*i<t*n&&(e=-e,t=-t,u=-u,s=-s),{translateX:a,translateY:o,rotate:Math.atan2(t,e)*Fs,skewX:Math.atan(u)*Fs,scaleX:s,scaleY:l}}function Fc(e,t,n,i){function a(e){return e.length?e.pop()+" ":""}return function(o,s){var l,u,c,d,p=[],h=[];return o=e(o),s=e(s),function(e,i,a,o,s,l){if(e!==a||i!==o){var u=s.push("translate(",null,t,null,n);l.push({i:u-4,x:Fn(e,a)},{i:u-2,x:Fn(i,o)})}else(a||o)&&s.push("translate("+a+t+o+n)}(o.translateX,o.translateY,s.translateX,s.translateY,p,h),(l=o.rotate)!==(u=s.rotate)?(l-u>180?u+=360:u-l>180&&(l+=360),h.push({i:p.push(a(p)+"rotate(",null,i)-2,x:Fn(l,u)})):u&&p.push(a(p)+"rotate("+u+i),(c=o.skewX)!==(d=s.skewX)?h.push({i:p.push(a(p)+"skewX(",null,i)-2,x:Fn(c,d)}):d&&p.push(a(p)+"skewX("+d+i),function(e,t,n,i,o,s){if(e!==n||t!==i){var l=o.push(a(o)+"scale(",null,",",null,")");s.push({i:l-4,x:Fn(e,n)},{i:l-2,x:Fn(t,i)})}else(1!==n||1!==i)&&o.push(a(o)+"scale("+n+","+i+")")}(o.scaleX,o.scaleY,s.scaleX,s.scaleY,p,h),o=s=null,function(e){for(var t,n=-1,i=h.length;++n<i;)p[(t=h[n]).i]=t.x(e);return p.join("")}}}var Fd=Fc(function(e){let t=new("function"==typeof DOMMatrix?DOMMatrix:WebKitCSSMatrix)(e+"");return t.isIdentity?Fl:Fu(t.a,t.b,t.c,t.d,t.e,t.f)},"px, ","px)","deg)"),Fp=Fc(function(e){return null!=e&&(FT||(FT=document.createElementNS("http://www.w3.org/2000/svg","g")),FT.setAttribute("transform",e),e=FT.transform.baseVal.consolidate())?Fu((e=e.matrix).a,e.b,e.c,e.d,e.e,e.f):Fl},", ",")",")");function Fh(e){return((e=Math.exp(e))+1/e)/2}let Fm=function e(t,n,i){function a(e,a){var o,s,l=e[0],u=e[1],c=e[2],d=a[0],p=a[1],h=a[2],m=d-l,f=p-u,g=m*m+f*f;if(g<1e-12)s=Math.log(h/c)/t,o=function(e){return[l+e*m,u+e*f,c*Math.exp(t*e*s)]};else{var x=Math.sqrt(g),v=(h*h-c*c+i*g)/(2*c*n*x),b=(h*h-c*c-i*g)/(2*h*n*x),w=Math.log(Math.sqrt(v*v+1)-v);s=(Math.log(Math.sqrt(b*b+1)-b)-w)/t,o=function(e){var i,a,o=e*s,d=Fh(w),p=c/(n*x)*(((i=Math.exp(2*(i=t*o+w)))-1)/(i+1)*d-((a=Math.exp(a=w))-1/a)/2);return[l+p*m,u+p*f,c*d/Fh(t*o+w)]}}return o.duration=1e3*s*t/Math.SQRT2,o}return a.rho=function(t){var n=Math.max(.001,+t),i=n*n;return e(n,i,i*i)},a}(Math.SQRT2,2,4);var Ff,Fg,Fx,Fv,Fy,Fb,Fw,Fk,F_,FT,FE,FS,FA=0,FC=0,FN=0,FI=0,FM=0,FP=0,FR="object"==typeof performance&&performance.now?performance:Date,FD="object"==typeof window&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):function(e){setTimeout(e,17)};function FL(){return FM||(FD(FO),FM=FR.now()+FP)}function FO(){FM=0}function FB(){this._call=this._time=this._next=null}function Fj(e,t,n){var i=new FB;return i.restart(e,t,n),i}function Fz(){FM=(FI=FR.now())+FP,FA=FC=0;try{!function(){FL(),++FA;for(var e,t=FE;t;)(e=FM-t._time)>=0&&t._call.call(void 0,e),t=t._next;--FA}()}finally{FA=0,function(){for(var e,t,n=FE,i=1/0;n;)n._call?(i>n._time&&(i=n._time),e=n,n=n._next):(t=n._next,n._next=null,n=e?e._next=t:FE=t);FS=e,FH(i)}(),FM=0}}function FF(){var e=FR.now(),t=e-FI;t>1e3&&(FP-=t,FI=e)}function FH(e){!FA&&(FC&&(FC=clearTimeout(FC)),e-FM>24?(e<1/0&&(FC=setTimeout(Fz,e-FR.now()-FP)),FN&&(FN=clearInterval(FN))):(FN||(FI=FR.now(),FN=setInterval(FF,1e3)),FA=1,FD(Fz)))}function FU(e,t,n){var i=new FB;return t=null==t?0:+t,i.restart(n=>{i.stop(),e(n+t)},t,n),i}FB.prototype=Fj.prototype={constructor:FB,restart:function(e,t,n){if("function"!=typeof e)throw TypeError("callback is not a function");n=(null==n?FL():+n)+(null==t?0:+t),this._next||FS===this||(FS?FS._next=this:FE=this,FS=this),this._call=e,this._time=n,FH()},stop:function(){this._call&&(this._call=null,this._time=1/0,FH())}};var FG=jR("start","end","cancel","interrupt"),Fq=[];function FV(e,t,n,i,a,o){var s=e.__transition;if(s){if(n in s)return}else e.__transition={};!function(e,t,n){var i,a=e.__transition;function o(u){var c,d,p,h;if(1!==n.state)return l();for(c in a)if((h=a[c]).name===n.name){if(3===h.state)return FU(o);4===h.state?(h.state=6,h.timer.stop(),h.on.call("interrupt",e,e.__data__,h.index,h.group),delete a[c]):+c<t&&(h.state=6,h.timer.stop(),h.on.call("cancel",e,e.__data__,h.index,h.group),delete a[c])}if(FU(function(){3===n.state&&(n.state=4,n.timer.restart(s,n.delay,n.time),s(u))}),n.state=2,n.on.call("start",e,e.__data__,n.index,n.group),2===n.state){for(n.state=3,i=Array(p=n.tween.length),c=0,d=-1;c<p;++c)(h=n.tween[c].value.call(e,e.__data__,n.index,n.group))&&(i[
543++d]=h);i.length=d+1}}function s(t){for(var a=t<n.duration?n.ease.call(null,t/n.duration):(n.timer.restart(l),n.state=5,1),o=-1,s=i.length;++o<s;)i[o].call(e,a);5===n.state&&(n.on.call("end",e,e.__data__,n.index,n.group),l())}function l(){for(var i in n.state=6,n.timer.stop(),delete a[t],a)return;delete e.__transition}a[t]=n,n.timer=Fj(function(e){n.state=1,n.timer.restart(o,n.delay,n.time),n.delay<=e&&o(e-n.delay)},0,n.time)}(e,n,{name:t,index:i,group:a,on:FG,tween:Fq,time:o.time,delay:o.delay,duration:o.duration,ease:o.ease,timer:null,state:0})}function FW(e,t){var n=FK(e,t);if(n.state>0)throw Error("too late; already scheduled");return n}function FY(e,t){var n=FK(e,t);if(n.state>3)throw Error("too late; already running");return n}function FK(e,t){var n=e.__transition;if(!n||!(n=n[t]))throw Error("transition not found");return n}function FX(e,t){var n,i,a,o=e.__transition,s=!0;if(o){for(a in t=null==t?null:t+"",o){if((n=o[a]).name!==t){s=!1;continue}i=n.state>2&&n.state<5,n.state=6,n.timer.stop(),n.on.call(i?"interrupt":"cancel",e,e.__data__,n.index,n.group),delete o[a]}s&&delete e.__transition}}function FQ(e,t,n){var i=e._id;return e.each(function(){var e=FY(this,i);(e.value||(e.value={}))[t]=n.apply(this,arguments)}),function(e){return FK(e,i).value[t]}}function FZ(e,t){var n;return("number"==typeof t?Fn:t instanceof zq?Ft:(n=zq(t))?(t=n,Ft):Fa)(e,t)}var F$=zp.prototype.constructor;function FJ(e){return function(){this.style.removeProperty(e)}}var F0=0;function F1(e,t,n,i){this._groups=e,this._parents=t,this._name=n,this._id=i}var F2=zp.prototype;F1.prototype={constructor:F1,select:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=jH(e));for(var i=this._groups,a=i.length,o=Array(a),s=0;s<a;++s)for(var l,u,c=i[s],d=c.length,p=o[s]=Array(d),h=0;h<d;++h)(l=c[h])&&(u=e.call(l,l.__data__,h,c))&&("__data__"in l&&(u.__data__=l.__data__),p[h]=u,FV(p[h],t,n,h,p,FK(l,n)));return new F1(o,this._parents,t,n)},selectAll:function(e){var t=this._name,n=this._id;"function"!=typeof e&&(e=jG(e));for(var i=this._groups,a=i.length,o=[],s=[],l=0;l<a;++l)for(var u,c=i[l],d=c.length,p=0;p<d;++p)if(u=c[p]){for(var h,m=e.call(u,u.__data__,p,c),f=FK(u,n),g=0,x=m.length;g<x;++g)(h=m[g])&&FV(h,t,n,g,m,f);o.push(m),s.push(u)}return new F1(o,s,t,n)},selectChild:F2.selectChild,selectChildren:F2.selectChildren,filter:function(e){"function"!=typeof e&&(e=jq(e));for(var t=this._groups,n=t.length,i=Array(n),a=0;a<n;++a)for(var o,s=t[a],l=s.length,u=i[a]=[],c=0;c<l;++c)(o=s[c])&&e.call(o,o.__data__,c,s)&&u.push(o);return new F1(i,this._parents,this._name,this._id)},merge:function(e){if(e._id!==this._id)throw Error();for(var t=this._groups,n=e._groups,i=t.length,a=n.length,o=Math.min(i,a),s=Array(i),l=0;l<o;++l)for(var u,c=t[l],d=n[l],p=c.length,h=s[l]=Array(p),m=0;m<p;++m)(u=c[m]||d[m])&&(h[m]=u);for(;l<i;++l)s[l]=t[l];return new F1(s,this._parents,this._name,this._id)},selection:function(){return new F$(this._groups,this._parents)},transition:function(){for(var e=this._name,t=this._id,n=++F0,i=this._groups,a=i.length,o=0;o<a;++o)for(var s,l=i[o],u=l.length,c=0;c<u;++c)if(s=l[c]){var d=FK(s,t);FV(s,e,n,c,l,{time:d.time+d.delay+d.duration,delay:0,duration:d.duration,ease:d.ease})}return new F1(i,this._parents,e,n)},call:F2.call,nodes:F2.nodes,node:F2.node,size:F2.size,empty:F2.empty,each:F2.each,on:function(e,t){var n,i,a,o=this._id;return arguments.length<2?FK(this.node(),o).on.on(e):this.each((a=(e+"").trim().split(/^|\s+/).every(function(e){var t=e.indexOf(".");return t>=0&&(e=e.slice(0,t)),!e||"start"===e})?FW:FY,function(){var s=a(this,o),l=s.on;l!==n&&(i=(n=l).copy()).on(e,t),s.on=i}))},attr:function(e,t){var n=jj(e),i="transform"===n?Fp:FZ;return this.attrTween(e,"function"==typeof t?(n.local?function(e,t,n){var i,a,o;return function(){var s,l,u=n(this);return null==u?void this.removeAttributeNS(e.space,e.local):(s=this.getAttributeNS(e.space,e.local))===(l=u+"")?null:s===i&&l===a?o:(a=l,o=t(i=s,u))}}:function(e,t,n){var i,a,o;return function(){var s,l,u=n(this);return null==u?void this.removeAttribute(e):(s=this.getAttribute(e))===(l=u+"")?null:s===i&&l===a?o:(a=l,o=t(i=s,u))}})(n,i,FQ(this,"attr."+e,t)):null==t?(n.local?function(e){return function(){this.removeAttributeNS(e.space,e.local)}}:function(e){return function(){this.removeAttribute(e)}})(n):(n.local?function(e,t,n){var i,a,o=n+"";return function(){var s=this.getAttributeNS(e.space,e.local);return s===o?null:s===i?a:a=t(i=s,n)}}:function(e,t,n){var i,a,o=n+"";return function(){var s=this.getAttribute(e);return s===o?null:s===i?a:a=t(i=s,n)}})(n,i,t))},attrTween:function(e,t){var n="attr."+e;if(arguments.length<2)return(n=this.tween(n))&&n._value;if(null==t)return this.tween(n,null);if("function"!=typeof t)throw Error();var i=jj(e);return this.tween(n,(i.local?function(e,t){var n,i;
543function a(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&function(t){this.setAttributeNS(e.space,e.local,a.call(this,t))}),n}return a._value=t,a}:function(e,t){var n,i;function a(){var a=t.apply(this,arguments);return a!==i&&(n=(i=a)&&function(t){this.setAttribute(e,a.call(this,t))}),n}return a._value=t,a})(i,t))},style:function(e,t,n){var i,a,o,s,l,u,c,d,p,h,m,f,g,x,v,b,w,k,_,T,E,A="transform"==(e+="")?Fd:FZ;return null==t?this.styleTween(e,(i=e,function(){var e=j4(this,i),t=(this.style.removeProperty(i),j4(this,i));return e===t?null:e===a&&t===o?s:s=A(a=e,o=t)})).on("end.style."+e,FJ(e)):"function"==typeof t?this.styleTween(e,(l=e,u=FQ(this,"style."+e,t),function(){var e=j4(this,l),t=u(this),n=t+"";return null==t&&(this.style.removeProperty(l),n=t=j4(this,l)),e===n?null:e===c&&n===d?p:(d=n,p=A(c=e,t))})).each((h=this._id,w="end."+(b="style."+(m=e)),function(){var e=FY(this,h),t=e.on,n=null==e.value[b]?v||(v=FJ(m)):void 0;(t!==f||x!==n)&&(g=(f=t).copy()).on(w,x=n),e.on=g})):this.styleTween(e,(k=e,E=t+"",function(){var e=j4(this,k);return e===E?null:e===_?T:T=A(_=e,t)}),n).on("end.style."+e,null)},styleTween:function(e,t,n){var i="style."+(e+="");if(arguments.length<2)return(i=this.tween(i))&&i._value;if(null==t)return this.tween(i,null);if("function"!=typeof t)throw Error();return this.tween(i,function(e,t,n){var i,a;function o(){var o=t.apply(this,arguments);return o!==a&&(i=(a=o)&&function(t){this.style.setProperty(e,o.call(this,t),n)}),i}return o._value=t,o}(e,t,n??""))},text:function(e){var t,n;return this.tween("text","function"==typeof e?(t=FQ(this,"text",e),function(){var e=t(this);this.textContent=e??""}):(n=null==e?"":e+"",function(){this.textContent=n}))},textTween:function(e){var t="text";if(arguments.length<1)return(t=this.tween(t))&&t._value;if(null==e)return this.tween(t,null);if("function"!=typeof e)throw Error();return this.tween(t,function(e){var t,n;function i(){var i=e.apply(this,arguments);return i!==n&&(t=(n=i)&&function(e){this.textContent=i.call(this,e)}),t}return i._value=e,i}(e))},remove:function(){var e;return this.on("end.remove",(e=this._id,function(){var t=this.parentNode;for(var n in this.__transition)if(+n!==e)return;t&&t.removeChild(this)}))},tween:function(e,t){var n=this._id;if(e+="",arguments.length<2){for(var i,a=FK(this.node(),n).tween,o=0,s=a.length;o<s;++o)if((i=a[o]).name===e)return i.value;return null}return this.each((null==t?function(e,t){var n,i;return function(){var a=FY(this,e),o=a.tween;if(o!==n){i=n=o;for(var s=0,l=i.length;s<l;++s)if(i[s].name===t){(i=i.slice()).splice(s,1);break}}a.tween=i}}:function(e,t,n){var i,a;if("function"!=typeof n)throw Error();return function(){var o=FY(this,e),s=o.tween;if(s!==i){a=(i=s).slice();for(var l={name:t,value:n},u=0,c=a.length;u<c;++u)if(a[u].name===t){a[u]=l;break}u===c&&a.push(l)}o.tween=a}})(n,e,t))},delay:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){FW(this,e).delay=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){FW(this,e).delay=t}})(t,e)):FK(this.node(),t).delay},duration:function(e){var t=this._id;return arguments.length?this.each(("function"==typeof e?function(e,t){return function(){FY(this,e).duration=+t.apply(this,arguments)}}:function(e,t){return t=+t,function(){FY(this,e).duration=t}})(t,e)):FK(this.node(),t).duration},ease:function(e){var t=this._id;return arguments.length?this.each(function(e,t){if("function"!=typeof t)throw Error();return function(){FY(this,e).ease=t}}(t,e)):FK(this.node(),t).ease},easeVarying:function(e){var t;if("function"!=typeof e)throw Error();return this.each((t=this._id,function(){var n=e.apply(this,arguments);if("function"!=typeof n)throw Error();FY(this,t).ease=n}))},end:function(){var e,t,n=this,i=n._id,a=n.size();return new Promise(function(o,s){var l={value:s},u={value:function(){0==--a&&o()}};n.each(function(){var n=FY(this,i),a=n.on;a!==e&&((t=(e=a).copy())._.cancel.push(l),t._.interrupt.push(l),t._.end.push(u)),n.on=t}),0===a&&o()})},[Symbol.iterator]:F2[Symbol.iterator]};var F4={time:null,delay:0,duration:250,ease:function(e){return((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2}};zp.prototype.interrupt=function(e){return this.each(function(){FX(this,e)})},zp.prototype.transition=function(e){e instanceof F1?(a=e._id,e=e._name):(a=++F0,(o=
vendor: 8,302 bytes, line 543
543F4).time=FL(),e=null==e?null:e+"");for(var t=this._groups,n=t.length,i=0;i<n;++i)for(var a,o,s,l=t[i],u=l.length,c=0;c<u;++c)(s=l[c])&&FV(s,e,a,c,l,o||function(e,t){for(var n;!(n=e.__transition)||!(n=n[t]);)if(!(e=e.parentNode))throw Error(`transition ${t} not found`);return n}(s,a));return new F1(t,this._parents,e,a)};let F5=e=>()=>e;function F3(e,{sourceEvent:t,target:n,transform:i,dispatch:a}){Object.defineProperties(this,{type:{value:e,enumerable:!0,configurable:!0},sourceEvent:{value:t,enumerable:!0,configurable:!0},target:{value:n,enumerable:!0,configurable:!0},transform:{value:i,enumerable:!0,configurable:!0},_:{value:a}})}function F6(e,t,n){this.k=e,this.x=t,this.y=n}F6.prototype={constructor:F6,scale:function(e){return 1===e?this:new F6(this.k*e,this.x,this.y)},translate:function(e,t){return 0===e&0===t?this:new F6(this.k,this.x+this.k*e,this.y+this.k*t)},apply:function(e){return[e[0]*this.k+this.x,e[1]*this.k+this.y]},applyX:function(e){return e*this.k+this.x},applyY:function(e){return e*this.k+this.y},invert:function(e){return[(e[0]-this.x)/this.k,(e[1]-this.y)/this.k]},invertX:function(e){return(e-this.x)/this.k},invertY:function(e){return(e-this.y)/this.k},rescaleX:function(e){return e.copy().domain(e.range().map(this.invertX,this).map(e.invert,e))},rescaleY:function(e){return e.copy().domain(e.range().map(this.invertY,this).map(e.invert,e))},toString:function(){return"translate("+this.x+","+this.y+") scale("+this.k+")"}};var F7=new F6(1,0,0);function F8(e){for(;!e.__zoom;)if(!(e=e.parentNode))return F7;return e.__zoom}function F9(e){e.stopImmediatePropagation()}function He(e){e.preventDefault(),e.stopImmediatePropagation()}function Ht(e){return(!e.ctrlKey||"wheel"===e.type)&&!e.button}function Hn(){var e=this;return e instanceof SVGElement?(e=e.ownerSVGElement||e).hasAttribute("viewBox")?[[(e=e.viewBox.baseVal).x,e.y],[e.x+e.width,e.y+e.height]]:[[0,0],[e.width.baseVal.value,e.height.baseVal.value]]:[[0,0],[e.clientWidth,e.clientHeight]]}function Hr(){return this.__zoom||F7}function Hi(e){return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*(e.ctrlKey?10:1)}function Ha(){return navigator.maxTouchPoints||"ontouchstart"in this}function Ho(e,t,n){var i=e.invertX(t[0][0])-n[0][0],a=e.invertX(t[1][0])-n[1][0],o=e.invertY(t[0][1])-n[0][1],s=e.invertY(t[1][1])-n[1][1];return e.translate(a>i?(i+a)/2:Math.min(0,i)||Math.max(0,a),s>o?(o+s)/2:Math.min(0,o)||Math.max(0,s))}function Hs(){var e,t,n,i=Ht,a=Hn,o=Ho,s=Hi,l=Ha,u=[0,1/0],c=[[-1/0,-1/0],[1/0,1/0]],d=250,p=Fm,h=jR("start","zoom","end"),m=0,f=10;function g(e){e.property("__zoom",Hr).on("wheel.zoom",T,{passive:!1}).on("mousedown.zoom",E).on("dblclick.zoom",A).filter(l).on("touchstart.zoom",C).on("touchmove.zoom",N).on("touchend.zoom touchcancel.zoom",I).style("-webkit-tap-highlight-color","rgba(0,0,0,0)")}function x(e,t){return(t=Math.max(u[0],Math.min(u[1],t)))===e.k?e:new F6(t,e.x,e.y)}function v(e,t,n){var i=t[0]-n[0]*e.k,a=t[1]-n[1]*e.k;return i===e.x&&a===e.y?e:new F6(e.k,i,a)}function b(e){return[(+e[0][0]+ +e[1][0])/2,(+e[0][1]+ +e[1][1])/2]}function w(e,t,n,i){e.on("start.zoom",function(){k(this,arguments).event(i).start()}).on("interrupt.zoom end.zoom",function(){k(this,arguments).event(i).end()}).tween("zoom",function(){var e=arguments,o=k(this,e).event(i),s=a.apply(this,e),l=null==n?b(s):"function"==typeof n?n.apply(this,e):n,u=Math.max(s[1][0]-s[0][0],s[1][1]-s[0][1]),c=this.__zoom,d="function"==typeof t?t.apply(this,e):t,h=p(c.invert(l).concat(u/c.k),d.invert(l).concat(u/d.k));return function(e){if(1===e)e=d;else{var t=h(e),n=u/t[2];e=new F6(n,l[0]-t[0]*n,l[1]-t[1]*n)}o.zoom(null,e)}})}function k(e,t,n){return!n&&e.__zooming||new _(e,t)}function _(e,t){this.that=e,this.args=t,this.active=0,this.sourceEvent=null,this.extent=a.apply(e,t),this.taps=0}function T(e,...t){if(i.apply(this,arguments)){var n=k(this,t).event(e),a=this.__zoom,l=Math.max(u[0],Math.min(u[1],a.k*Math.pow(2,s.apply(this,arguments)))),d=zm(e);if(n.wheel)(n.mouse[0][0]!==d[0]||n.mouse[0][1]!==d[1])&&(n.mouse[1]=a.invert(n.mouse[0]=d)),clearTimeout(n.wheel);else{if(a.k===l)return;n.mouse=[d,a.invert(d)],FX(this),n.start()}He(e),n.wheel=setTimeout(function(){n.wheel=null,n.end()},150),n.zoom("mouse",o(v(x(a,l),n.mouse[0],n.mouse[1]),n.extent,c))}}function E(e,...t){if(!n&&i.apply(this,arguments)){var a=e.currentTarget,s=k(this,t,!0).event(e),l=zh(e.view).on("mousemove.zoom",function(e){if(He(e),!s.moved){var t=e.clientX-d,n=e.clientY-p;s.moved=t*t+n*n>m}s.event(e).zoom("mouse",o(v(s.that.__zoom,s.mouse[0]=zm(e,a),s.mouse[1]),s.extent,c))},!0).on("mouseup.zoom",function(e){l.on("mousemove.zoom mouseup.zoom",null),zb(e.view,s.moved),He(e),s.event(e).end()},!0),u=zm(e,a),d=e.clientX,p=e.clientY;zy(e.view),F9(e),s.mouse=[u,this.__zoom.invert(u)],FX(this),s.start()}}function A(e,...t){if(i.apply(this,arguments)){var n=this.__zoom,s=zm(e.changedTouches?e.changedTouches[0]:e,this),l=n.invert(s),u=n.k*(e.shiftKey?.5:2),p=o(v(x(n,u),s,l),a.apply(this,t),c);He(e),d>0?zh(this).transition().duration(d).call(w,p,s,e):zh(this).call(g.transform,p,s,e)}}function C(n,...a){if(i.apply(this,arguments)){var o,s,l,u,c=n.touches,d=c.length,p=k(this,a,n.changedTouches.length===d).event(n);for(F9(n),s=0;s<d;++s)u=[u=zm(l=c[s],this),this.__zoom.invert(u),l.identifier],p.touch0?p.touch1||p.touch0[2]===u[2]||(p.touch1=u,p.taps=0):(p.touch0=u,o=!0,p.taps=1+!!e);e&&(e=clearTimeout(e)),o&&(p.taps<2&&(t=u[0],e=setTimeout(function(){e=null},500)),FX(this),p.start())}}function N(e,...t){if(this.__zooming){var n,i,a,s,l=k(this,t).event(e),u=e.changedTouches,d=u.length;for(He(e),n=0;n<d;++n)a=zm(i=u[n],this),l.touch0&&l.touch0[2]===i.identifier?l.touch0[0]=a:l.touch1&&l.touch1[2]===i.identifier&&(l.touch1[0]=a);if(i=l.that.__zoom,l.touch1){var p=l.touch0[0],h=l.touch0[1],m=l.touch1[0],f=l.touch1[1],g=(g=m[0]-p[0])*g+(g=m[1]-p[1])*g,b=(b=f[0]-h[0])*b+(b=f[1]-h[1])*b;i=x(i,Math.sqrt(g/b)),a=[(p[0]+m[0])/2,(p[1]+m[1])/2],s=[(h[0]+f[0])/2,(h[1]+f[1])/2]}else{if(!l.touch0)return;a=l.touch0[0],s=l.touch0[1]}l.zoom("touch",o(v(i,a,s),l.extent,c))}}function I(e,...i){if(this.__zooming){var a,o,s=k(this,i).event(e),l=e.changedTouches,u=l.length;for(F9(e),n&&clearTimeout(n),n=setTimeout(function(){n=null},500),a=0;a<u;++a)o=l[a],s.touch0&&s.touch0[2]===o.identifier?delete s.touch0:s.touch1&&s.touch1[2]===o.identifier&&delete s.touch1;if(s.touch1&&!s.touch0&&(s.touch0=s.touch1,delete s.touch1),s.touch0)s.touch0[1]=this.__zoom.invert(s.touch0[0]);else if(s.end(),2===s.taps&&(o=zm(o,this),Math.hypot(t[0]-o[0],t[1]-o[1])<f)){var c=zh(this).on("dblclick.zoom");c&&c.apply(this,arguments)}}}return g.transform=function(e,t,n,i){var a=e.selection?e.selection():e;a.property("__zoom",Hr),e!==a?w(e,t,n,i):a.interrupt().each(function(){k(this,arguments).event(i).start().zoom(null,"function"==typeof t?t.apply(this,arguments):t).end()})},g.scaleBy=function(e,t,n,i){g.scaleTo(e,function(){var e=this.__zoom.k,n="function"==typeof t?t.apply(this,arguments):t;return e*n},n,i)},g.scaleTo=function(e,t,n,i){g.transform(e,function(){var e=a.apply(this,arguments),i=this.__zoom,s=null==n?b(e):"function"==typeof n?n.apply(this,arguments):n,l=i.invert(s),u="function"==typeof t?t.apply(this,arguments):t;return o(v(x(i,u),s,l),e,c)},n,i)},g.translateBy=function(e,t,n,i){g.transform(e,function(){return o(this.__zoom.translate("function"==typeof t?t.apply(this,arguments):t,"function"==typeof n?n.apply(this,arguments):n),a.apply(this,arguments),c)},null,i)},g.translateTo=function(e,t,n,i,s){g.transform(e,function(){var e=a.apply(this,arguments),s=this.__zoom,l=null==i?b(e):"function"==typeof i?i.apply(this,arguments):i;return o(F7.translate(l[0],l[1]).scale(s.k).translate("function"==typeof t?-t.apply(this,arguments):-t,"function"==typeof n?-n.apply(this,arguments):-n),e,c)},i,s)},_.prototype={event:function(e){return e&&(this.sourceEvent=e),this},start:function(){return 1==++this.active&&(this.that.__zooming=this,this.emit("start")),this},zoom:function(e,t){return this.mouse&&"mouse"!==e&&(this.mouse[1]=t.invert(this.mouse[0])),this.touch0&&"touch"!==e&&(this.touch0[1]=t.invert(this.touch0[0])),this.touch1&&"touch"!==e&&(this.touch1[1]=t.invert(this.touch1[0])),this.that.__zoom=t,this.emit("zoom"),this},end:function(){return 0==--this.active&&(delete this.that.__zooming,this.emit
543("end")),this},emit:function(e){var t=zh(this.that).datum();h.call(e,this.that,new F3(e,{sourceEvent:this.sourceEvent,target:g,transform:this.that.__zoom,dispatch:h}),t)}},g.wheelDelta=function(e){return arguments.length?(s="function"==typeof e?e:F5(+e),g):s},g.filter=function(e){return arguments.length?(i="function"==typeof e?e:F5(!!e),g):i},g.touchable=function(e){return arguments.length?(l="function"==typeof e?e:F5(!!e),g):l},g.extent=function(e){return arguments.length?(a="function"==typeof e?e:F5([[+e[0][0],+e[0][1]],[+e[1][0],+e[1][1]]]),g):a},g.scaleExtent=function(e){return arguments.length?(u[0]=+e[0],u[1]=+e[1],g):[u[0],u[1]]},g.translateExtent=function(e){return arguments.length?(c[0][0]=+e[0][0],c[1][0]=+e[1][0],c[0][1]=+e[0][1],c[1][1]=+e[1][1],g):[[c[0][0],c[0][1]],[c[1][0],c[1][1]]]},g.constrain=function(e){return arguments.length?(o=e,g):o},g.duration=function(e){return arguments.length?(d=+e,g):d},g.interpolate=function(e){return arguments.length?(p=e,g):p},g.on=function(){var e=h.on.apply(h,arguments);return e===h?g:e},g.clickDistance=function(e){return arguments.length?(m=(e=+e)*e,g):Math.sqrt(m)},g.tapDistance=function(e){return arguments.length?(f=+e,g):f},g}F8.prototype=F6.prototype;let Hl={error001:()=>"[React Flow]: Seems like you have not used zustand provider as an ancestor. Help: https://reactflow.dev/error#001",error003:e=>`Node type "${e}" not found. Using fallback type "default".`,error004:()=>"The React Flow parent container needs a width and a height to render the graph.",error005:()=>"Only child nodes can use a parent extent.",error006:()=>"Can't create edge. An edge needs a source and a target.",error009:e=>`Marker type "${e}" doesn't exist.`,error008:(e,{id:t,sourceHandle:n,targetHandle:i})=>`Couldn't create edge for ${e} handle id: "${"source"===e?n:i}", edge id: ${t}.`,error010:()=>"Handle: No node id found. Make sure to only use a Handle inside a custom Node.",error011:e=>`Edge type "${e}" not found. Using fallback type "default".`,error012:e=>`Node with id "${e}" does not exist, it may have been removed. This can happen when a node is deleted before the "onNodeClick" handler is called.`,error015:()=>"It seems that you are trying to drag a node that is not initialized. Please use onNodesChange as explained in the docs."},Hu=[[Number.NEGATIVE_INFINITY,Number.NEGATIVE_INFINITY],[Number.POSITIVE_INFINITY,Number.POSITIVE_INFINITY]],Hc=["Enter"," ","Escape"],Hd={"node.a11yDescription.default":"Press enter or space to select a node. Press delete to remove it and escape to cancel.","node.a11yDescription.keyboardDisabled":"Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.","node.a11yDescription.ariaLiveMessage":({direction:e,x:t,y:n})=>`Moved selected node ${e}. New position, x: ${t}, y: ${n}`,"edge.a11yDescription.default":"Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.","controls.ariaLabel":"Control Panel","controls.zoomIn.ariaLabel":"Zoom In","controls.zoomOut.ariaLabel":"Zoom Out","controls.fitView.ariaLabel":"Fit View","controls.interactive.ariaLabel":"Toggle Interactivity","minimap.ariaLabel":"Mini Map","handle.ariaLabel":"Handle"};(u=x||(x={})).Strict="strict",u.Loose="loose",(c=v||(v={})).Free="free",c.Vertical="vertical",c.Horizontal="horizontal",(d=b||(b={})).Partial="partial",d.Full="full";let Hp={inProgress:!1,isValid:null,from:null,fromHandle:null,fromPosition:null,fromNode:null,to:null,toHandle:null,toPosition:null,toNode:null,pointer:null};(p=w||(w={})).Bezier="default",p.Straight="straight",p.Step="step",p.SmoothStep="smoothstep",p.SimpleBezier="simplebezier",(h=k||(k={})).Arrow="arrow",h.ArrowClosed="arrowclosed",(m=_||(_={})).Left="left",m.Top="top",m.Right="right",m.Bottom="bottom";let Hh={[_.Left]:_.Right,[_.Right]:_.Left,[_.Top]:_.Bottom,[_.Bottom]:_.Top};function Hm(e){return null===e?null:e?"valid":"invalid"}let Hf=e=>"id"in e&&"source"in e&&"target"in e,Hg=e=>"id"in e&&"position"in e&&!("source"in e)&&!("target"in e),Hx=e=>"id"in e&&"internals"in e&&!("source"in e)&&!("target"in e),Hv=(e,t=[0,0])=>{let{width:n,height:i}=HK(e),a=e.origin??t,o=n*a[0],s=i*a[1];return{x:e.position.x-o,y:e.position.y-s}},Hy=(e,t={nodeOrigin:[0,0]})=>0===e.length?{x:0,y:0,width:0,height:0}:HR(e.reduce((e,n)=>{let i="string"==typeof n,a=t.nodeLookup||i?void 0:n;return t.nodeLookup&&(a=i?t.nodeLookup.get(n):Hx(n)?n:t.nodeLookup.get(n.id)),HM(e,a?HL(a,t.nodeOrigin):{x:0,y:0,x2:0,y2:0})},{x:1/0,y:1/0,x2:-1/0,y2:-1/0})),Hb=(e,t={})=>{let n={x:1/0,y:1/0,x2:-1/0,y2:-1/0},i=!1;
543return e.forEach(e=>{(void 0===t.filter||t.filter(e))&&(n=HM(n,HL(e)),i=!0)}),i?HR(n):{x:0,y:0,width:0,height:0}},Hw=(e,t,[n,i,a]=[0,0,1],o=!1,s=!1)=>{let l={...HU(t,[n,i,a]),width:t.width/a,height:t.height/a},u=[];for(let t of e.values()){let{measured:e,selectable:n=!0,hidden:i=!1}=t;if(s&&!n||i)continue;let a=e.width??t.width??t.initialWidth??null,c=e.height??t.height??t.initialHeight??null,d=HB(l,HD(t)),p=(a??0)*(c??0),h=o&&d>0;(!t.internals.handleBounds||h||d>=p||t.dragging)&&u.push(t)}return u},Hk=(e,t)=>{let n=new Set;return e.forEach(e=>{n.add(e.id)}),t.filter(e=>n.has(e.source)||n.has(e.target))};async function H_({nodes:e,width:t,height:n,panZoom:i,minZoom:a,maxZoom:o},s){if(0===e.size)return Promise.resolve(!0);let l=HV(Hb(function(e,t){let n=new Map,i=null!=t&&t.nodes?new Set(t.nodes.map(e=>e.id)):null;return e.forEach(e=>{e.measured.width&&e.measured.height&&((null==t?void 0:t.includeHiddenNodes)||!e.hidden)&&(!i||i.has(e.id))&&n.set(e.id,e)}),n}(e,s)),t,n,(null==s?void 0:s.minZoom)??a,(null==s?void 0:s.maxZoom)??o,(null==s?void 0:s.padding)??.1);return await i.setViewport(l,{duration:null==s?void 0:s.duration,ease:null==s?void 0:s.ease,interpolate:null==s?void 0:s.interpolate}),Promise.resolve(!0)}function HT({nodeId:e,nextPosition:t,nodeLookup:n,nodeOrigin:i=[0,0],nodeExtent:a,onError:o}){let s=n.get(e),l=s.parentId?n.get(s.parentId):void 0,{x:u,y:c}=l?l.internals.positionAbsolute:{x:0,y:0},d=s.origin??i,p=s.extent||a;if("parent"!==s.extent||s.expandParent)l&&HY(s.extent)&&(p=[[s.extent[0][0]+u,s.extent[0][1]+c],[s.extent[1][0]+u,s.extent[1][1]+c]]);else if(l){let e=l.measured.width,t=l.measured.height;e&&t&&(p=[[u,c],[u+e,c+t]])}else null==o||o("005",Hl.error005());let h=HY(p)?HA(t,p,s.measured):t;return(void 0===s.measured.width||void 0===s.measured.height)&&(null==o||o("015",Hl.error015())),{position:{x:h.x-u+(s.measured.width??0)*d[0],y:h.y-c+(s.measured.height??0)*d[1]},positionAbsolute:h}}async function HE({nodesToRemove:e=[],edgesToRemove:t=[],nodes:n,edges:i,onBeforeDelete:a}){let o=new Set(e.map(e=>e.id)),s=[];for(let e of n){if(!1===e.deletable)continue;let t=o.has(e.id),n=!t&&e.parentId&&s.find(t=>t.id===e.parentId);(t||n)&&s.push(e)}let l=new Set(t.map(e=>e.id)),u=i.filter(e=>!1!==e.deletable),c=Hk(s,u);for(let e of u)l.has(e.id)&&!c.find(t=>t.id===e.id)&&c.push(e);if(!a)return{edges:c,nodes:s};let d=await a({nodes:s,edges:c});return"boolean"==typeof d?d?{edges:c,nodes:s}:{edges:[],nodes:[]}:d}let HS=(e,t=0,n=1)=>Math.min(Math.max(e,t),n),HA=(e={x:0,y:0},t,n)=>({x:HS(e.x,t[0][0],t[1][0]-((null==n?void 0:n.width)??0)),y:HS(e.y,t[0][1],t[1][1]-((null==n?void 0:n.height)??0))});function HC(e,t,n){let{width:i,height:a}=HK(n),{x:o,y:s}=n.internals.positionAbsolute;return HA(e,[[o,s],[o+i,s+a]],t)}let HN=(e,t,n)=>e<t?HS(Math.abs(e-t),1,t)/t:e>n?-HS(Math.abs(e-n),1,t)/t:0,HI=(e,t,n=15,i=40)=>[HN(e.x,i,t.width-i)*n,HN(e.y,i,t.height-i)*n],HM=(e,t)=>({x:Math.min(e.x,t.x),y:Math.min(e.y,t.y),x2:Math.max(e.x2,t.x2),y2:Math.max(e.y2,t.y2)}),HP=({x:e,y:t,width:n,height:i})=>({x:e,y:t,x2:e+n,y2:t+i}),HR=({x:e,y:t,x2:n,y2:i})=>({x:e,y:t,width:n-e,height:i-t}),HD=(e,t=[0,0])=>{var n,i;let{x:a,y:o}=Hx(e)?e.internals.positionAbsolute:Hv(e,t);return{x:a,y:o,width:(null==(n=e.measured)?void 0:n.width)??e.width??e.initialWidth??0,height:(null==(i=e.measured)?void 0:i.height)??e.height??e.initialHeight??0}},HL=(e,t=[0,0])=>{var n,i;let{x:a,y:o}=Hx(e)?e.internals.positionAbsolute:Hv(e,t);return{x:a,y:o,x2:a+((null==(n=e.measured)?void 0:n.width)??e.width??e.initialWidth??0),y2:o+((null==(i=e.measured)?void 0:i.height)??e.height??e.initialHeight??0)}},HO=(e,t)=>HR(HM(HP(e),HP(t))),HB=(e,t)=>Math.ceil(Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*Math.max(0,Math.min(e.y+e.height,t.y+t.height)-Math.max(e.y,t.y))),Hj=e=>Hz(e.width)&&Hz(e.height)&&Hz(e.x)&&Hz(e.y),Hz=e=>!isNaN(e)&&isFinite(e),HF=(e,t)=>{},HH=(e,t=[1,1])=>({x:t[0]*Math.round(e.x/t[0]),y:t[1]*Math.round(e.y/t[1])}),HU=({x:e,y:t},[n,i,a],o=!1,s=[1,1])=>{let l={x:(e-n)/a,y:(t-i)/a};return o?HH(l,s):l},HG=({x:e,y:t},[n,i,a])=>({x:e*a+n,y:t*a+i});function Hq(e,t){if("number"==typeof e)return Math.floor((t-t/(1+e))*.5);if("string"==typeof e&&e.endsWith("px")){let t=parseFloat(e);
543if(!Number.isNaN(t))return Math.floor(t)}if("string"==typeof e&&e.endsWith("%")){let n=parseFloat(e);if(!Number.isNaN(n))return Math.floor(t*n*.01)}return console.error(`[React Flow] The padding value "${e}" is invalid. Please provide a number or a string with a valid unit (px or %).`),0}let HV=(e,t,n,i,a,o)=>{let s=function(e,t,n){if("string"==typeof e||"number"==typeof e){let i=Hq(e,n),a=Hq(e,t);return{top:i,right:a,bottom:i,left:a,x:2*a,y:2*i}}if("object"==typeof e){let i=Hq(e.top??e.y??0,n),a=Hq(e.bottom??e.y??0,n),o=Hq(e.left??e.x??0,t),s=Hq(e.right??e.x??0,t);return{top:i,right:s,bottom:a,left:o,x:o+s,y:i+a}}return{top:0,right:0,bottom:0,left:0,x:0,y:0}}(o,t,n),l=HS(Math.min((t-s.x)/e.width,(n-s.y)/e.height),i,a),u=e.x+e.width/2,c=e.y+e.height/2,d=t/2-u*l,p=n/2-c*l,h=function(e,t,n,i,a,o){let{x:s,y:l}=HG(e,[t,n,i]),{x:u,y:c}=HG({x:e.x+e.width,y:e.y+e.height},[t,n,i]);return{left:Math.floor(s),top:Math.floor(l),right:Math.floor(a-u),bottom:Math.floor(o-c)}}(e,d,p,l,t,n),m={left:Math.min(h.left-s.left,0),top:Math.min(h.top-s.top,0),right:Math.min(h.right-s.right,0),bottom:Math.min(h.bottom-s.bottom,0)};return{x:d-m.left+m.right,y:p-m.top+m.bottom,zoom:l}},HW=()=>{var e;return"u">typeof navigator&&(null==(e=null==navigator?void 0:navigator.userAgent)?void 0:e.indexOf("Mac"))>=0};function HY(e){return null!=e&&"parent"!==e}function HK(e){var t,n;return{width:(null==(t=e.measured)?void 0:t.width)??e.width??e.initialWidth??0,height:(null==(n=e.measured)?void 0:n.height)??e.height??e.initialHeight??0}}function HX(e){var t,n;return((null==(t=e.measured)?void 0:t.width)??e.width??e.initialWidth)!==void 0&&((null==(n=e.measured)?void 0:n.height)??e.height??e.initialHeight)!==void 0}function HQ(e,t={width:0,height:0},n,i,a){let o={...e},s=i.get(n);if(s){let e=s.origin||a;o.x+=s.internals.positionAbsolute.x-(t.width??0)*e[0],o.y+=s.internals.positionAbsolute.y-(t.height??0)*e[1]}return o}function HZ(e,t){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}function H$(e,{snapGrid:t=[0,0],snapToGrid:n=!1,transform:i,containerBounds:a}){let{x:o,y:s}=H5(e),l=HU({x:o-((null==a?void 0:a.left)??0),y:s-((null==a?void 0:a.top)??0)},i),{x:u,y:c}=n?HH(l,t):l;return{xSnapped:u,ySnapped:c,...l}}let HJ=e=>({width:e.offsetWidth,height:e.offsetHeight}),H0=e=>{var t;return(null==(t=null==e?void 0:e.getRootNode)?void 0:t.call(e))||(null==window?void 0:window.document)},H1=["INPUT","SELECT","TEXTAREA"];function H2(e){var t,n;let i=(null==(n=null==(t=e.composedPath)?void 0:t.call(e))?void 0:n[0])||e.target;return(null==i?void 0:i.nodeType)===1&&(H1.includes(i.nodeName)||i.hasAttribute("contenteditable")||!!i.closest(".nokey"))}let H4=e=>"clientX"in e,H5=(e,t)=>{var n,i;let a=H4(e),o=a?e.clientX:null==(n=e.touches)?void 0:n[0].clientX,s=a?e.clientY:null==(i=e.touches)?void 0:i[0].clientY;return{x:o-((null==t?void 0:t.left)??0),y:s-((null==t?void 0:t.top)??0)}},H3=(e,t,n,i,a)=>{let o=t.querySelectorAll(`.${e}`);return o&&o.length?Array.from(o).map(t=>{let o=t.getBoundingClientRect();return{id:t.getAttribute("data-handleid"),type:e,nodeId:a,position:t.getAttribute("data-handlepos"),x:(o.left-n.left)/i,y:(o.top-n.top)/i,...HJ(t)}}):null};function H6({sourceX:e,sourceY:t,targetX:n,targetY:i,sourceControlX:a,sourceControlY:o,targetControlX:s,targetControlY:l}){let u=.125*e+.375*a+.375*s+.125*n,c=.125*t+.375*o+.375*l+.125*i;return[u,c,Math.abs(u-e),Math.abs(c-t)]}function H7(e,t){return e>=0?.5*e:25*t*Math.sqrt(-e)}function H8({pos:e,x1:t,y1:n,x2:i,y2:a,c:o}){switch(e){case _.Left:return[t-H7(t-i,o),n];case _.Right:return[t+H7(i-t,o),n];case _.Top:return[t,n-H7(n-a,o)];case _.Bottom:return[t,n+H7(a-n,o)]}}function H9({sourceX:e,sourceY:t,sourcePosition:n=_.Bottom,targetX:i,targetY:a,targetPosition:o=_.Top,curvature:s=.25}){let[l,u]=H8({pos:n,x1:e,y1:t,x2:i,y2:a,c:s}),[c,d]=H8({pos:o,x1:i,y1:a,x2:e,y2:t,c:s}),[p,h,m,f]=H6({sourceX:e,sourceY:t,targetX:i,targetY:a,sourceControlX:l,sourceControlY:u,targetControlX:c,targetControlY:d});return[`M${e},${t} C${l},${u} ${c},${d} ${i},${a}`,p,h,m,f]}function Ue({sourceX:e,sourceY:t,targetX:n,targetY:i}){let a=Math.abs(n-e)/2,o=Math.abs(i-t)/2;return[n<e?n+a:n-a,i<t?i+o:i-o,a,o]}let Ut=({source:e,sourceHandle:t,target:n,targetHandle:i})=>`xy-edge__${e}${t||""}-${n}${i||""}`,Un=(e,t)=>t.some(t=>t.source===e.source&&t.target===e.target&&(t.sourceHandle===e.sourceHandle||!t.sourceHandle&&!e.sourceHandle)&&(t.targetHandle===e.targetHandle||!t.targetHandle&&!e.targetHandle)),Ur=(e,t,n={})=>{let i;if(!e.source||!e.target)return HF("006",Hl.error006()),t;let a=n.getEdgeId||Ut;return Un(i=Hf(e)?{...e}:{...e,id:a(e)},t)?t:(null===i.sourceHandle&&delete i.sourceHandle,null===i.targetHandle&&delete i.targetHandle,t.concat(i))};function Ui({sourceX:e,sourceY:t,targetX:n,targetY:i}){let[a,o,s,l]=Ue({sourceX:e,sourceY:t,targetX:n,targetY:i});return[`M ${e},${t}L ${n},${i}`,a,o,s,l]}let Ua={[_.Left]:{x:-1,y:0},[_.Right]:{x:1,y:0},[_.Top]:{x:0,y:-1},[_.Bottom]:{x:0,y:1}},Uo=({source:e,sourcePosition:t=_.Bottom,target:n})=>t===_.Left||t===_.Right?e.x<n.x?{x:1,y:0}:{x:-1,y:0}:e.y<n.y?{x:0,y:1}:{x:0,y:-1},Us=(e,t)=>Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2));function Ul({sourceX:e,sourceY:t,sourcePosition:n=_.Bottom,targetX:i,targetY:a,targetPosition:o=_.Top,borderRadius:s=5,centerX:l,centerY:u,offset:c=20,stepPosition:d=.5}){let[p,h,m,f,g]=function({source:e,sourcePosition:t=_.Bottom,target:n,targetPosition:i=_.Top,center:a,offset:o,stepPosition:s}){let l=Ua[t],u=Ua[i],c={x:e.x+l.x*o,y:e.y+l.y*o},d={x:n.x+u.x*o,y:n.y+u.y*o},p=Uo({source:c,sourcePosition:t,target:d}),h=0!==p.x?"x":"y",m=p[h],f=[],g,x,v={x:0,y:0},b={x:0,y:0},[,,w,k]=Ue({sourceX:e.x,sourceY:e.y,targetX:n.x,targetY:n.y});if(l[h]*u[h]==-1){"x"===h?(g=a.x??c.x+(d.x-c.x)*s,x=a.y??(c.y+d.y)/2):(g=a.x??(c.x+d.x)/2,x=a.y??c.y+(d.y-c.y)*s);let e=[{x:g,y:c.y},{x:g,y:d.y}],t=[{x:c.x,y:x},{x:d.x,y:x}];f=l[h]===m?"x"===h?e:t:"x"===h?t:e}else{let a=[{x:c.x,y:d.y}],s=[{x:d.x,y:c.y}];if(f="x"===h?l.x===m?s:a:l.y===m?a:s,t===i){let t=Math.abs(e[h]-n[h]);if(t<=o){let i=Math.min(o-1,o-t);l[h]===m?v[h]=(c[h]>e[h]?-1:1)*i:b[h]=(d[h]>n[h]?-1:1)*i}}if(t!==i){let e="x"===h?"y":"x",t=l[h]===u[e],n=c[e]>d[e],i=c[e]<d[e];(1===l[h]&&(!t&&n||t&&i)||1!==l[h]&&(!t&&i||t&&n))&&(f="x"===h?a:s)}let p={x:c.x+v.x,y:c.y+v.y},w={x:d.x+b.x,y:d.y+b.y};Math.max(Math.abs(p.x-f[0].x),Math.abs(w.x-f[0].x))>=Math.max(Math.abs(p.y-f[0].y),Math.abs(w.y-f[0].y))?(g=(p.x+w.x)/2,x=f[0].y):(g=f[0].x,x=(p.y+w.y)/2)}return[[e,{x:c.x+v.x,y:c.y+v.y},...f,{x:d.x+b.x,y:d.y+b.y},n],g,x,w,k]}({source:{x:e,y:t},sourcePosition:n,target:{x:i,y:a},targetPosition:o,center:{x:l,y:u},offset:c,stepPosition:d});
543return[p.reduce((e,t,n)=>e+(n>0&&n<p.length-1?function(e,t,n,i){let a=Math.min(Us(e,t)/2,Us(t,n)/2,i),{x:o,y:s}=t;if(e.x===o&&o===n.x||e.y===s&&s===n.y)return`L${o} ${s}`;if(e.y===s){let t=e.x<n.x?-1:1,i=e.y<n.y?1:-1;return`L ${o+a*t},${s}Q ${o},${s} ${o},${s+a*i}`}let l=e.x<n.x?1:-1,u=e.y<n.y?-1:1;return`L ${o},${s+a*u}Q ${o},${s} ${o+a*l},${s}`}(p[n-1],t,p[n+1],s):`${0===n?"M":"L"}${t.x} ${t.y}`),""),h,m,f,g]}function Uu(e){var t;return e&&!!(e.internals.handleBounds||null!=(t=e.handles)&&t.length)&&!!(e.measured.width||e.width||e.initialWidth)}function Uc(e){if(!e)return null;let t=[],n=[];for(let i of e)i.width=i.width??1,i.height=i.height??1,"source"===i.type?t.push(i):"target"===i.type&&n.push(i);return{source:t,target:n}}function Ud(e,t,n=_.Left,i=!1){let a=((null==t?void 0:t.x)??0)+e.internals.positionAbsolute.x,o=((null==t?void 0:t.y)??0)+e.internals.positionAbsolute.y,{width:s,height:l}=t??HK(e);if(i)return{x:a+s/2,y:o+l/2};switch((null==t?void 0:t.position)??n){case _.Top:return{x:a+s/2,y:o};case _.Right:return{x:a+s,y:o+l/2};case _.Bottom:return{x:a+s/2,y:o+l};case _.Left:return{x:a,y:o+l/2}}}function Up(e,t){return e&&(t?e.find(e=>e.id===t):e[0])||null}function Uh(e,t){return e?"string"==typeof e?e:`${t?`${t}__`:""}${Object.keys(e).sort().map(t=>`${t}=${e[t]}`).join("&")}`:""}let Um={nodeOrigin:[0,0],nodeExtent:Hu,elevateNodesOnSelect:!0,zIndexMode:"basic",defaults:{}},Uf={...Um,checkEquality:!0};function Ug(e,t){let n={...e};for(let e in t)void 0!==t[e]&&(n[e]=t[e]);return n}function Ux(e){return"manual"===e}function Uv(e,t,n,i={}){var a,o;let s=Ug(Uf,i),l={i:0},u=new Map(t),c=null!=s&&s.elevateNodesOnSelect&&!Ux(s.zIndexMode)?1e3:0,d=e.length>0;for(let p of(t.clear(),n.clear(),e)){let e=u.get(p.id);if(s.checkEquality&&p===(null==e?void 0:e.internals.userNode))t.set(p.id,e);else{let n=HA(Hv(p,s.nodeOrigin),HY(p.extent)?p.extent:s.nodeExtent,HK(p));e={...s.defaults,...p,measured:{width:null==(a=p.measured)?void 0:a.width,height:null==(o=p.measured)?void 0:o.height},internals:{positionAbsolute:n,handleBounds:function(e,t){if(!e.handles)return e.measured?null==t?void 0:t.internals.handleBounds:void 0;let n=[],i=[];for(let t of e.handles){let a={id:t.id,width:t.width??1,height:t.height??1,nodeId:e.id,x:t.x,y:t.y,position:t.position,type:t.type};"source"===t.type?n.push(a):"target"===t.type&&i.push(a)}return{source:n,target:i}}(p,e),z:Ub(p,c,s.zIndexMode),userNode:p}},t.set(p.id,e)}void 0!==e.measured&&void 0!==e.measured.width&&void 0!==e.measured.height||e.hidden||(d=!1),p.parentId&&Uy(e,t,n,i,l)}return d}function Uy(e,t,n,i,a){let{elevateNodesOnSelect:o,nodeOrigin:s,nodeExtent:l,zIndexMode:u}=Ug(Um,i),c=e.parentId,d=t.get(c);if(!d){console.warn(`Parent node ${c} not found. Please make sure that parent nodes are in front of their child nodes in the nodes array.`);return}(function(e,t){if(!e.parentId)return;let n=t.get(e.parentId);n?n.set(e.id,e):t.set(e.parentId,new Map([[e.id,e]]))})(e,n),a&&!d.parentId&&void 0===d.internals.rootParentIndex&&"auto"===u&&(d.internals.rootParentIndex=++a.i,d.internals.z=d.internals.z+10*a.i),a&&void 0!==d.internals.rootParentIndex&&(a.i=d.internals.rootParentIndex);let{x:p,y:h,z:m}=function(e,t,n,i,a,o){let{x:s,y:l}=t.internals.positionAbsolute,u=HK(e),c=Hv(e,n),d=HY(e.extent)?HA(c,e.extent,u):c,p=HA({x:s+d.x,y:l+d.y},i,u);"parent"===e.extent&&(p=HC(p,u,t));let h=Ub(e,a,o),m=t.internals.z??0;return{x:p.x,y:p.y,z:m>=h?m+1:h}}(e,d,s,l,o&&!Ux(u)?1e3:0,u),{positionAbsolute:f}=e.internals,g=p!==f.x||h!==f.y;(g||m!==e.internals.z)&&t.set(e.id,{...e,internals:{...e.internals,positionAbsolute:g?{x:p,y:h}:f,z:m}})}function Ub(e,t,n){let i=Hz(e.zIndex)?e.zIndex:0;return Ux(n)?i:i+(e.selected?t:0)}function Uw(e,t,n,i=[0,0]){var a;let o=[],s=new Map;for(let n of e){let e=t.get(n.parentId);if(!e)continue;let i=HO((null==(a=s.get(n.parentId))?void 0:a.expandedRect)??HD(e),n.rect);s.set(n.parentId,{expandedRect:i,parent:e})}return s.size>0&&s.forEach(({expandedRect:t,parent:a},s)=>{var l;let u=a.internals.positionAbsolute,c=HK(a),d=a.origin??i,p=t.x<u.x?Math.round(Math.abs(u.x-t.x)):0,h=t.y<u.y?Math.round(Math.abs(u.y-t.y)):0,m=Math.max(c.width,Math.round(t.width)),f=Math.max(c.height,Math.round(t.height)),g=(m-c.width)*d[0],x=(f-c.height)*d[1];(p>0||h>0||g||x)&&(o.push({id:s,type:"position",position:{x:a.position.x-p+g,y:a.position.y-h+x}}),null==(l=n.get(s))||l.forEach(t=>{e.some(e=>e.id===t.id)||o.push({id:t.id,type:"position",position:{x:t.position.x+p,y:t.position.y+h}})})),(c.width<t.width||c.height<t.height||p||h)&&o.push({id:s,type:"dimensions",setAttributes:!0,dimensions:{width:m+(p?d[0]*p-g:0),height:f+(h?d[1]*h-x:0)}})}),o}async function Uk({delta:e,panZoom:t,transform:n,translateExtent:i,width:a,height:o}){if(!t||!e.x&&!e.y)return Promise.resolve(!1);let s=await t.setViewportConstrained({x:n[0]+e.x,y:n[1]+e.y,zoom:n[2]},[[0,0],[a,o]],i);return Promise.resolve(!!s&&(s.x!==n[0]||s.y!==n[1]||s.k!==n[2]))}function U_(e,t,n,i,a,o){let s=a,l=i.get(s)||new Map;i.set(s,l.set(n,t)),s=`${a}-${e}`;let u=i.get(s)||new Map;if(i.set(s,u.set(n,t)),o){s=`${a}-${e}-${o}`;let l=i.get(s)||new Map;i.set(s,l.set(n,t))}}function UT(e,t,n){for(let i of(e.clear(),t.clear(),n)){let{source:n,target:a,sourceHandle:o=null,targetHandle:s=null}=i,l={edgeId:i.id,source:n,target:a,sourceHandle:o,targetHandle:s},u=`${n}-${o}--${a}-${s}`;U_("source",l,`${a}-${s}--${n}-${o}`,e,n,o),U_("target",l,u,e,a,s),t.set(i.id,i)}}function UE(e,t,n){var i;let a=e;do{if(null!=(i=null==a?void 0:a.matches)&&i.call(a,t))return!0;
543if(a===n)break;a=null==a?void 0:a.parentElement}while(a);return!1}function US({nodeId:e,dragItems:t,nodeLookup:n,dragging:i=!0}){var a,o,s;let l=[];for(let[e,o]of t){let t=null==(a=n.get(e))?void 0:a.internals.userNode;t&&l.push({...t,position:o.position,dragging:i})}if(!e)return[l[0],l];let u=null==(o=n.get(e))?void 0:o.internals.userNode;return[u?{...u,position:(null==(s=t.get(e))?void 0:s.position)||u.position,dragging:i}:l[0],l]}function UA(e,t,n,i,a,o=!1){var s,l,u;let c=i.get(e);if(!c)return null;let d="strict"===a?null==(s=c.internals.handleBounds)?void 0:s[t]:[...(null==(l=c.internals.handleBounds)?void 0:l.source)??[],...(null==(u=c.internals.handleBounds)?void 0:u.target)??[]],p=(n?null==d?void 0:d.find(e=>e.id===n):null==d?void 0:d[0])??null;return p&&o?{...p,...Ud(c,p,p.position,!0)}:p}function UC(e,t){return e||(null!=t&&t.classList.contains("target")?"target":null!=t&&t.classList.contains("source")?"source":null)}let UN=()=>!0;function UI(e,{handle:t,connectionMode:n,fromNodeId:i,fromHandleId:a,fromType:o,doc:s,lib:l,flowId:u,isValidConnection:c=UN,nodeLookup:d}){let p="target"===o,h=t?s.querySelector(`.${l}-flow__handle[data-id="${u}-${null==t?void 0:t.nodeId}-${null==t?void 0:t.id}-${null==t?void 0:t.type}"]`):null,{x:m,y:f}=H5(e),g=s.elementFromPoint(m,f),v=null!=g&&g.classList.contains(`${l}-flow__handle`)?g:h,b={handleDomNode:v,isValid:!1,connection:null,toHandle:null};if(v){let e=UC(void 0,v),t=v.getAttribute("data-nodeid"),o=v.getAttribute("data-handleid"),s=v.classList.contains("connectable"),l=v.classList.contains("connectableend");if(!t||!e)return b;let u={source:p?t:i,sourceHandle:p?o:a,target:p?i:t,targetHandle:p?a:o};b.connection=u;let h=s&&l&&(n===x.Strict?p&&"source"===e||!p&&"target"===e:t!==i||o!==a);b.isValid=h&&c(u),b.toHandle=UA(t,e,o,d,n,!0)}return b}let UM={onPointerDown:function(e,{connectionMode:t,connectionRadius:n,handleId:i,nodeId:a,edgeUpdaterType:o,isTarget:s,domNode:l,nodeLookup:u,lib:c,autoPanOnConnect:d,flowId:p,panBy:h,cancelConnection:m,onConnectStart:f,onConnect:g,onConnectEnd:x,isValidConnection:v=UN,onReconnectEnd:b,updateConnection:w,getTransform:k,getFromHandle:T,autoPanSpeed:E,dragThreshold:A=1,handleDomNode:C}){let N=H0(e.target),I=0,M,{x:P,y:R}=H5(e),D=UC(o,C),L=null==l?void 0:l.getBoundingClientRect(),O=!1;if(!L||!D)return;let B=UA(a,D,i,u,t);if(!B)return;let j=H5(e,L),z=!1,F=null,H=!1,U=null,G={...B,nodeId:a,type:D,position:B.position},q=u.get(a),V={inProgress:!0,isValid:null,from:Ud(q,G,_.Left,!0),fromHandle:G,fromPosition:G.position,fromNode:q,to:j,toHandle:null,toPosition:Hh[G.position],toNode:null,pointer:j};function W(){O=!0,w(V),null==f||f(e,{nodeId:a,handleId:i,handleType:D})}function Y(e){var o,l;let m;if(!O){let{x:t,y:n}=H5(e),i=t-P,a=n-R;if(!(i*i+a*a>A*A))return;W()}if(!T()||!G){K(e);return}let f=k();M=function(e,t,n,i){var a,o;let s=[],l=1/0;for(let u of function(e,t,n){let i=[],a={x:e.x-n,y:e.y-n,width:2*n,height:2*n};for(let e of t.values())HB(a,HD(e))>0&&i.push(e);return i}(e,n,t+250))for(let n of[...(null==(a=u.internals.handleBounds)?void 0:a.source)??[],...(null==(o=u.internals.handleBounds)?void 0:o.target)??[]]){if(i.nodeId===n.nodeId&&i.type===n.type&&i.id===n.id)continue;let{x:a,y:o}=Ud(u,n,n.position,!0),c=Math.sqrt(Math.pow(a-e.x,2)+Math.pow(o-e.y,2));c>t||(c<l?(s=[{...n,x:a,y:o}],l=c):c===l&&s.push({...n,x:a,y:o}))}if(!s.length)return null;if(s.length>1){let e="source"===i.type?"target":"source";return s.find(t=>t.type===e)??s[0]}return s[0]}(HU(j=H5(e,L),f,!1,[1,1]),n,u,G),z||(function e(){if(!d||!L)return;let[t,n]=HI(j,L,E);h({x:t,y:n}),I=requestAnimationFrame(e)}(),z=!0);let g=UI(e,{handle:M,connectionMode:t,fromNodeId:a,fromHandleId:i,fromType:s?"target":"source",isValidConnection:v,doc:N,lib:c,flowId:p,nodeLookup:u});U=g.handleDomNode,F=g.connection,o=!!M,l=g.isValid,m=null,l?m=!0:o&&!l&&(m=!1),H=m;let x=u.get(a),b=x?Ud(x,G,_.Left,!0):V.from,C={...V,from:b,isValid:H,to:g.toHandle&&H?HG({x:g.toHandle.x,y:g.toHandle.y},f):j,toHandle:g.toHandle,toPosition:H&&g.toHandle?g.toHandle.position:Hh[G.position],toNode:g.toHandle?u.get(g.toHandle.nodeId):null,pointer:j};w(C),V=C}function K(e){if(!("touches"in e&&e.touches.length>0)){if(O){(M||U)&&F&&H&&(null==g||g(F));let{inProgress:t,...n}=V,i={...n,toPosition:V.toHandle?V.toPosition:null};null==x||x(e,i),o&&(null==b||b(e,i))}m(),cancelAnimationFrame(I),z=!1,H=!1,F=null,U=null,N.removeEventListener("mousemove",Y),N.removeEventListener("mouseup",K),N.removeEventListener("touchmove",Y),N.removeEventListener("touchend",K)}}0===A&&W(),N.addEventListener("mousemove",Y),N.addEventListener("mouseup",K),N.addEventListener("touchmove",Y),N.addEventListener("touchend",K)},isValid:UI},UP=e=>({x:e.x,y:e.y,zoom:e.k}),UR=({x:e,y:t,zoom:n})=>F7.translate(e,t).scale(n),UD=(e,t)=>e.target.closest(`.${t}`),UL=(e,t)=>2===t&&Array.isArray(e)&&e.includes(2),UO=e=>((e*=2)<=1?e*e*e:(e-=2)*e*e+2)/2,UB=(e,t=0,n=UO,i=()=>{})=>{let a="number"==typeof t&&t>0;return a||i(),a?e.transition().duration(t).ease(n).on("end",i):e},Uj=e=>{let t=e.ctrlKey&&HW()?10:1;
543return-e.deltaY*(1===e.deltaMode?.05:e.deltaMode?1:.002)*t};function Uz(e){let t=e.includes("right")||e.includes("left");return{isHorizontal:t,isVertical:e.includes("bottom")||e.includes("top"),affectsX:e.includes("left"),affectsY:e.includes("top")}}function UF(e,t){return Math.max(0,t-e)}function UH(e,t){return Math.max(0,e-t)}function UU(e,t,n){return Math.max(0,t-e,e-n)}(f=T||(T={})).Line="line",f.Handle="handle";let UG={width:0,height:0,x:0,y:0},Uq={...UG,pointerX:0,pointerY:0,aspectRatio:1};var UV={exports:{}},UW={},UY={exports:{}},UK={};UV.exports=function(){if(C)return UW;C=1;var e=(A||(A=1,UY.exports=function(){if(E)return UK;E=1;var e="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},t=I.useState,n=I.useEffect,i=I.useLayoutEffect,a=I.useDebugValue;function o(t){var n=t.getSnapshot;t=t.value;try{var i=n();return!e(t,i)}catch{return!0}}var s=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?function(e,t){return t()}:function(e,s){var l=s(),u=t({inst:{value:l,getSnapshot:s}}),c=u[0].inst,d=u[1];return i(function(){c.value=l,c.getSnapshot=s,o(c)&&d({inst:c})},[e,l,s]),n(function(){return o(c)&&d({inst:c}),e(function(){o(c)&&d({inst:c})})},[e]),a(l),l};return UK.useSyncExternalStore=void 0!==I.useSyncExternalStore?I.useSyncExternalStore:s,UK}()),UY.exports),t="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},n=e.useSyncExternalStore,i=I.useRef,a=I.useEffect,o=I.useMemo,s=I.useDebugValue;return UW.useSyncExternalStoreWithSelector=function(e,l,u,c,d){var p=i(null);if(null===p.current){var h={hasValue:!1,value:null};p.current=h}else h=p.current;var m=n(e,(p=o(function(){function e(e){if(!a){if(a=!0,n=e,e=c(e),void 0!==d&&h.hasValue){var o=h.value;if(d(o,e))return i=o}return i=e}if(o=i,t(n,e))return o;var s=c(e);return void 0!==d&&d(o,s)?(n=e,o):(n=e,i=s)}var n,i,a=!1,o=void 0===u?null:u;return[function(){return e(l())},null===o?void 0:function(){return e(o())}]},[l,u,c,d]))[0],p[1]);return a(function(){h.hasValue=!0,h.value=m},[m]),s(m),m},UW}();let UX=z(UV.exports),UQ={},UZ=e=>{let t;let n=new Set,i=(e,i)=>{let a="function"==typeof e?e(t):e;if(!Object.is(a,t)){let e=t;t=i??("object"!=typeof a||null===a)?a:Object.assign({}
543,t,a),n.forEach(n=>n(t,e))}},a=()=>t,o={setState:i,getState:a,getInitialState:()=>s,subscribe:e=>(n.add(e),()=>n.delete(e)),destroy:()=>{(UQ?"production":void 0)!=="production"&&console.warn("[DEPRECATED] The `destroy` method will be unsupported in a future version. Instead use unsubscribe function returned by subscribe. Everything will be garbage-collected if store is garbage-collected."),n.clear()}},s=t=e(i,a,o);return o},U$=e=>e?UZ(e):UZ,{useDebugValue:UJ}=I,{useSyncExternalStoreWithSelector:U0}=UX,U1=e=>e;function U2(e,t=U1,n){let i=U0(e.subscribe,e.getState,e.getServerState||e.getInitialState,t,n);return UJ(i),i}let U4=(e,t)=>{let n=U$(e),i=(e,i=t)=>U2(n,e,i);return Object.assign(i,n),i},U5=(e,t)=>e?U4(e,t):U4;function U3(e,t){if(Object.is(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(let[n,i]of e)if(!Object.is(i,t.get(n)))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(let n of e)if(!t.has(n))return!1;return!0}let n=Object.keys(e);if(n.length!==Object.keys(t).length)return!1;for(let i of n)if(!Object.prototype.hasOwnProperty.call(t,i)||!Object.is(e[i],t[i]))return!1;return!0}let U6=(0,I.createContext)(null),U7=U6.Provider,U8=Hl.error001();function U9(e,t){let n=(0,I.useContext)(U6);if(null===n)throw Error(U8);return U2(n,e,t)}function Ge(){let e=(0,I.useContext)(U6);if(null===e)throw Error(U8);return(0,I.useMemo)(()=>({getState:e.getState,setState:e.setState,subscribe:e.subscribe}),[e])}let Gt={display:"none"},Gn={position:"absolute",width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"inset(100%)"},Gr="react-flow__node-desc",Gi="react-flow__edge-desc",Ga=e=>e.ariaLiveMessage,Go=e=>e.ariaLabelConfig;function Gs({rfId:e}){let t=U9(Ga);return U.jsx("div",{id:`react-flow__aria-live-${e}`,"aria-live":"assertive","aria-atomic":"true",style:Gn,children:t})}function Gl({rfId:e,disableKeyboardA11y:t}){let n=U9(Go);return U.jsxs(U.Fragment,{children:[U.jsx("div",{id:`${Gr}-${e}`,style:Gt,children:t?n["node.a11yDescription.default"]:n["node.a11yDescription.keyboardDisabled"]}),U.jsx("div",{id:`${Gi}-${e}`,style:Gt,children:n["edge.a11yDescription.default"]}),!t&&U.jsx(Gs,{rfId:e})]})}let Gu=(0,I.forwardRef)(({position:e="top-left",children:t,className:n,style:i,...a},o)=>{let s=`${e}`.split("-");return U.jsx("div",{className:jM(["react-flow__panel",n,...s]),style:i,ref:o,...a,children:t})});function Gc({proOptions:e,position:t="bottom-right"}){return null!=e&&e.hideAttribution?null:U.jsx(Gu,{position:t,className:"react-flow__attribution","data-message":"Please only hide this attribution when you are subscribed to React Flow Pro: https://pro.reactflow.dev",children:U.jsx("a",{href:"https://reactflow.dev",target:"_blank",rel:"noopener noreferrer","aria-label":"React Flow attribution",children:"React Flow"})})}Gu.displayName="Panel";let Gd=e=>{let t=[],n=[];for(let[,n]of e.nodeLookup)n.selected&&t.push(n.internals.userNode);for(let[,t]of e.edgeLookup)t.selected&&n.push(t);return{selectedNodes:t,selectedEdges:n}},Gp=e=>e.id;function Gh(e,t){return U3(e.selectedNodes.map(Gp),t.selectedNodes.map(Gp))&&U3(e.selectedEdges.map(Gp),t.selectedEdges.map(Gp))}function Gm({onSelectionChange:e}){let t=Ge(),{selectedNodes:n,selectedEdges:i}=U9(Gd,Gh);return(0,I.useEffect)(()=>{let a={nodes:n,edges:i};null==e||e(a),t.getState().onSelectionChangeHandlers.forEach(e=>e(a))},[n,i,e]),null}let Gf=e=>!!e.onSelectionChangeHandlers;function Gg({onSelectionChange:e}){let t=U9(Gf);return e||t?U.jsx(Gm,{onSelectionChange:e}):null}let Gx=[0,0],Gv={x:0,y:0,zoom:1},Gy=["nodes","edges","defaultNodes","defaultEdges","onConnect","onConnectStart","onConnectEnd","onClickConnectStart","onClickConnectEnd","nodesDraggable","autoPanOnNodeFocus","nodesConnectable","nodesFocusable","edgesFocusable","edgesReconnectable","elevateNodesOnSelect","elevateEdgesOnSelect","minZoom","maxZoom","nodeExtent","onNodesChange","onEdgesChange","elementsSelectable","connectionMode","snapGrid","snapToGri
543d","translateExtent","connectOnClick","defaultEdgeOptions","fitView","fitViewOptions","onNodesDelete","onEdgesDelete","onDelete","onNodeDrag","onNodeDragStart","onNodeDragStop","onSelectionDrag","onSelectionDragStart","onSelectionDragStop","onMoveStart","onMove","onMoveEnd","noPanClassName","nodeOrigin","autoPanOnConnect","autoPanOnNodeDrag","onError","connectionRadius","isValidConnection","selectNodesOnDrag","nodeDragThreshold","connectionDragThreshold","onBeforeDelete","debug","autoPanSpeed","ariaLabelConfig","zIndexMode","rfId"],Gb=e=>({setNodes:e.setNodes,setEdges:e.setEdges,setMinZoom:e.setMinZoom,setMaxZoom:e.setMaxZoom,setTranslateExtent:e.setTranslateExtent,setNodeExtent:e.setNodeExtent,reset:e.reset,setDefaultNodesAndEdges:e.setDefaultNodesAndEdges}),Gw={translateExtent:Hu,nodeOrigin:Gx,minZoom:.5,maxZoom:2,elementsSelectable:!0,noPanClassName:"nopan",rfId:"1"};function Gk(e){let{setNodes:t,setEdges:n,setMinZoom:i,setMaxZoom:a,setTranslateExtent:o,setNodeExtent:s,reset:l,setDefaultNodesAndEdges:u}=U9(Gb,U3),c=Ge();(0,I.useEffect)(()=>(u(e.defaultNodes,e.defaultEdges),()=>{d.current=Gw,l()}),[]);let d=(0,I.useRef)(Gw);return(0,I.useEffect)(()=>{for(let l of Gy){let u=e[l];u!==d.current[l]&&(typeof e[l]>"u"||("nodes"===l?t(u):"edges"===l?n(u):"minZoom"===l?i(u):"maxZoom"===l?a(u):"translateExtent"===l?o(u):"nodeExtent"===l?s(u):"ariaLabelConfig"===l?c.setState({ariaLabelConfig:{...Hd,...u||{}}}):"fitView"===l?c.setState({fitViewQueued:u}):"fitViewOptions"===l?c.setState({fitViewOptions:u}):c.setState({[l]:u})))}d.current=e},Gy.map(t=>e[t])),null}function G_(){return typeof window>"u"||!window.matchMedia?null:window.matchMedia("(prefers-color-scheme: dark)")}let GT="u">typeof document?document:null;function GE(e=null,t={target:GT,actInsideInputWithModifier:!0}){let[n,i]=(0,I.useState)(!1),a=(0,I.useRef)(!1),o=(0,I.useRef)(new Set([])),[s,l]=(0,I.useMemo)(()=>{if(null!==e){let t=(Array.isArray(e)?e:[e]).filter(e=>"string"==typeof e).map(e=>e.replace("+",`
544`).replace(`
545
546`,`
547+`).split(`
548`)),n=t.reduce((e,t)=>e.concat(...t),[]);return[t,n]}return[[],[]]},[e]);return(0,I.useEffect)(()=>{let n=(null==t?void 0:t.target)??GT,u=(null==t?void 0:t.actInsideInputWithModifier)??!0;if(null!==e){let e=e=>{var n,c;if(a.current=e.ctrlKey||e.metaKey||e.shiftKey||e.altKey,(!a.current||a.current&&!u)&&H2(e))return!1;let d=GA(e.code,l);if(o.current.add(e[d]),GS(s,o.current,!1)){let o=(null==(c=null==(n=e.composedPath)?void 0:n.call(e))?void 0:c[0])||e.target,s=(null==o?void 0:o.nodeName)==="BUTTON"||(null==o?void 0:o.nodeName)==="A";!1!==t.preventDefault&&(a.current||!s)&&e.preventDefault(),i(!0)}},c=e=>{let t=GA(e.code,l);GS(s,o.current,!0)?(i(!1),o.current.clear()):o.current.delete(e[t]),"Meta"===e.key&&o.current.clear(),a.current=!1},d=()=>{o.current.clear(),i(!1)};return null==n||n.addEventListener("keydown",e),null==n||n.addEventListener("keyup",c),window.addEventListener("blur",d),window.addEventListener("contextmenu",d),()=>{null==n||n.removeEventListener("keydown",e),null==n||n.removeEventListener("keyup",c),window.removeEventListener("blur",d),window.removeEventListener("contextmenu",d)}}},[e,i]),n}function GS(e,t,n){return e.filter(e=>n||e.length===t.size).some(e=>e.every(e=>t.has(e)))}function GA(e,t){return t.includes(e)?"code":"key"}let GC=()=>{let e=Ge();return(0,I.useMemo)(()=>({zoomIn:t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1.2,{duration:null==t?void 0:t.duration}):Promise.resolve(!1)},zoomOut:t=>{let{panZoom:n}=e.getState();return n?n.scaleBy(1/1.2,{duration:null==t?void 0:t.duration}):Promise.resolve(!1)},zoomTo:(t,n)=>{let{panZoom:i}=e.getState();return i?i.scaleTo(t,{duration:null==n?void 0:n.duration}):Promise.resolve(!1)},getZoom:()=>e.getState().transform[2],setViewport:async(t,n)=>{let{transform:[i,a,o],panZoom:s}=e.getState();return s?(await s.setViewport({x:t.x??i,y:t.y??a,zoom:t.zoom??o},n),Promise.resolve(!0)):Promise.resolve(!1)},getViewport:()=>{let[t,n,i]=e.getState().transform;return{x:t,y:n,zoom:i}},setCenter:async(t,n,i)=>e.getState().setCenter(t,n,i),fitBounds:async(t,n)=>
548{let{width:i,height:a,minZoom:o,maxZoom:s,panZoom:l}=e.getState(),u=HV(t,i,a,o,s,(null==n?void 0:n.padding)??.1);return l?(await l.setViewport(u,{duration:null==n?void 0:n.duration,ease:null==n?void 0:n.ease,interpolate:null==n?void 0:n.interpolate}),Promise.resolve(!0)):Promise.resolve(!1)},screenToFlowPosition:(t,n={})=>{let{transform:i,snapGrid:a,snapToGrid:o,domNode:s}=e.getState();if(!s)return t;let{x:l,y:u}=s.getBoundingClientRect(),c={x:t.x-l,y:t.y-u},d=n.snapGrid??a;return HU(c,i,n.snapToGrid??o,d)},flowToScreenPosition:t=>{let{transform:n,domNode:i}=e.getState();if(!i)return t;let{x:a,y:o}=i.getBoundingClientRect(),s=HG(t,n);return{x:s.x+a,y:s.y+o}}}),[])};function GN(e,t){let n=[],i=new Map,a=[];for(let t of e)if("add"===t.type){a.push(t);continue}else if("remove"===t.type||"replace"===t.type)i.set(t.id,[t]);else{let e=i.get(t.id);e?e.push(t):i.set(t.id,[t])}for(let e of t){let t=i.get(e.id);if(!t){n.push(e);continue}if("remove"===t[0].type)continue;if("replace"===t[0].type){n.push({...t[0].item});continue}let a={...e};for(let e of t)!function(e,t){switch(e.type){case"select":t.selected=e.selected;break;case"position":"u">typeof e.position&&(t.position=e.position),"u">typeof e.dragging&&(t.dragging=e.dragging);break;case"dimensions":"u">typeof e.dimensions&&(t.measured={...e.dimensions},e.setAttributes&&((!0===e.setAttributes||"width"===e.setAttributes)&&(t.width=e.dimensions.width),(!0===e.setAttributes||"height"===e.setAttributes)&&(t.height=e.dimensions.height))),"boolean"==typeof e.resizing&&(t.resizing=e.resizing)}}(e,a);n.push(a)}return a.length&&a.forEach(e=>{void 0!==e.index?n.splice(e.index,0,{...e.item}):n.push({...e.item})}),n}function GI(e,t){return{id:e,type:"select",selected:t}}function GM(e,t=new Set,n=!1){let i=[];for(let[a,o]of e){let e=t.has(a);(void 0!==o.selected||e)&&o.selected!==e&&(n&&(o.selected=e),i.push(GI(o.id,e)))}return i}function GP({items:e=[],lookup:t}){var n;let i=[],a=new Map(e.map(e=>[e.id,e]));for(let[a,o]of e.entries()){let e=t.get(o.id),s=(null==(n=null==e?void 0:e.internals)?void 0:n.userNode)??e;void 0!==s&&s!==o&&i.push({id:o.id,item:o,type:"replace"}),void 0===s&&i.push({item:o,type:"add",index:a})}for(let[e]of t)void 0===a.get(e)&&i.push({id:e,type:"remove"});return i}function GR(e){return{id:e.id,type:"remove"}}let GD=e=>Hg(e),GL=e=>Hf(e);function GO(e){return(0,I.forwardRef)(e)}let GB="u">typeof window?I.useLayoutEffect:I.useEffect;function Gj(e){let[t,n]=(0,I.useState)(BigInt(0)),[i]=(0,I.useState)(()=>{var e;let t;return e=()=>n(e=>e+BigInt(1)),t=[],{get:()=>t,reset:()=>{t=[]},push:n=>{t.push(n),e()}}});return GB(()=>{let t=i.get();t.length&&(e(t),i.reset())},[t]),i}let Gz=(0,I.createContext)(null);function GF({children:e}){let t=Ge(),n=Gj((0,I.useCallback)(e=>{let{nodes:n=[],setNodes:i,hasDefaultNodes:a,onNodesChange:o,nodeLookup:s,fitViewQueued:l,onNodesChangeMiddlewareMap:u}=t.getState(),c=n;for(let t of e)c="function"==typeof t?t(c):t;let d=GP({items:c,lookup:s});for(let e of u.values())d=e(d);a&&i(c),d.length>0?null==o||o(d):l&&window.requestAnimationFrame(()=>{let{fitViewQueued:e,nodes:n,setNodes:i}=t.getState();e&&i(n)})},[])),i=Gj((0,I.useCallback)(e=>{let{edges:n=[],setEdges:i,hasDefaultEdges:a,onEdgesChange:o,edgeLookup:s}=t.getState(),l=n;for(let t of e)l="function"==typeof t?t(l):t;a?i(l):o&&o(GP({items:l,lookup:s}))},[])),a=(0,I.useMemo)(()=>({nodeQueue:n,edgeQueue:i}),[]);return U.jsx(Gz.Provider,{value:a,children:e})}let GH=e=>!!e.panZoom;function GU(){let e=GC(),t=Ge(),n=function(){let e=(0,I.useContext)(Gz);if(!e)throw Error("useBatchContext must be used within a BatchProvider");return e}(),i=U9(GH),a=(0,I.useMemo)(()=>{let e=e=>t.getState().nodeLookup.get(e),i=e=>{n.nodeQueue.push(e)},a=e=>{n.edgeQueue.push(e)},o=e=>{var n,i;let{nodeLookup:a,nodeOrigin:o}=t.getState(),s=GD(e)?e:a.get(e.id),l=s.parentId?HQ(s.position,s.measured,s.parentId,a,o):s.position;return HD({...s,position:l,width:(null==(n=s.measured)?void 0:n.width)??s.width,height:(null==(i=s.measured)?void 0:i.height)??s.height})},s=(e,t,n={replace:!1})=>{i(i=>i.map(i=>{if(i.id===e){let e="function"==typeof t?t(i):t;return n.replace&&GD(e)?e:{...i,...e}}return i}))},l=(e,t,n={replace:!1})=>{a(i=>i.map(i=>{if(i.id===e){let e="function"==typeof t?t(i):t;return n.replace&&GL(e)?e:{...i,...e}}return i}))};return{getNodes:()=>t.getState().nodes.map(e=>({...e})),getNode:t=>{var n;return null==(n=e(t))?void 0:n.internals.userNode},getInternalNode:e,getEdges:()=>{let{edges:e=[]}=t.getState();return e.map(e=>({...e}))},getEdge:e=>t.getState().edgeLookup.get(e),setNodes:i,setEdges:a,addNodes:e=>{let t=Array.isArray(e)?e:[e];n.nodeQueue.push(e=>[...e,...t])},addEdges:e=>{let t=Array.isArray(e)?e:[e];n.edgeQueue.push(e=>[...e,...t])},toObject:()=>{let{nodes:e=[],edges:n=[],transform:i}=t.getState(),[a,o,s]=i;return{nodes:e.map(e=>({...e})),edges:n.map(e=>({...e})),viewport:{x:a,y:o,zoom:s}}},deleteElements:async({nodes:e=[],edges:n=[]})=>{let{nodes:i,edges:a,onNodesDelete:o,onEdgesDelete:s,triggerNodeChanges:l,triggerEdgeChanges:u,onDelete:c,onBeforeDelete:d}=t.getState(),{nodes:p,edges:h}=await HE({nodesToRemove:e,edgesToRemove:n,nodes:i,edges:a,onBeforeDelete:d}),m=h.length>0,f=p.length>0;if(m){let e=h.map(GR);null==s||s(h),u(e)}if(f){let e=p.map(GR);null==o||o(p),l(e)}return(f||m)&&(null==c||c({nodes:p,edges:h})),{deletedNodes:p,deletedEdges:h}},getIntersectingNodes:(e,n=!0,i)=>{let a=Hj(e),s=a?e:o(e),l=void 0!==i;return s?(i||t.getState().nodes).filter(i=>{let o=t.getState().nodeLookup.get(i.id);if(o&&!a&&(i.id===e.id||!o.internals.positionAbsolute))return!1;let u=HD(l?i:o),c=HB(u,s);return n&&c>0||c>=u.width*u.height||c>=s.width*s.height}):[]},isNodeIntersecting:(e,t,n=!0)=>{let i=Hj(e)?e:o(e);if(!i)return!1;let a=HB(i,t);return n&&a>0||a>=t.width*t.height||a>=i.width*i.height},updateNode:s,updateNodeData:(e,t,n={replace:!1})=>{s(e,e=>{let i="function"==typeof t?t(e):t;return n.replace?{...e,data:i}:{...e,data:{...e.data,...i}}},n)},updateEdge:l,updateEdgeData:(e,t,n={replace:!1})=>{l(e,e=>{let i="function"==typeof t?t(e):t;return n.replace?{...e,data:i}:{...e,data:{...e.data,...i}}},n)}
548,getNodesBounds:e=>{let{nodeLookup:n,nodeOrigin:i}=t.getState();return Hy(e,{nodeLookup:n,nodeOrigin:i})},getHandleConnections:({type:e,id:n,nodeId:i})=>{var a;return Array.from((null==(a=t.getState().connectionLookup.get(`${i}-${e}${n?`-${n}`:""}`))?void 0:a.values())??[])},getNodeConnections:({type:e,handleId:n,nodeId:i})=>{var a;return Array.from((null==(a=t.getState().connectionLookup.get(`${i}${e?n?`-${e}-${n}`:`-${e}`:""}`))?void 0:a.values())??[])},fitView:async e=>{let i,a;let o=t.getState().fitViewResolver??{promise:new Promise((e,t)=>{i=e,a=t}),resolve:i,reject:a};return t.setState({fitViewQueued:!0,fitViewOptions:e,fitViewResolver:o}),n.nodeQueue.push(e=>[...e]),o.promise}}},[]);return(0,I.useMemo)(()=>({...a,...e,viewportInitialized:i}),[i])}let GG=e=>e.selected,Gq="u">typeof window?window:void 0,GV={position:"absolute",width:"100%",height:"100%",top:0,left:0},GW=e=>({userSelectionActive:e.userSelectionActive,lib:e.lib,connectionInProgress:e.connection.inProgress});function GY({onPaneContextMenu:e,zoomOnScroll:t=!0,zoomOnPinch:n=!0,panOnScroll:i=!1,panOnScrollSpeed:a=.5,panOnScrollMode:o=v.Free,zoomOnDoubleClick:s=!0,panOnDrag:l=!0,defaultViewport:u,translateExtent:c,minZoom:d,maxZoom:p,zoomActivationKeyCode:h,preventScrolling:m=!0,children:f,noWheelClassName:g,noPanClassName:x,onViewportChange:b,isControlledViewport:w,paneClickDistance:k,selectionOnDrag:_}){let T=Ge(),E=(0,I.useRef)(null),{userSelectionActive:A,lib:C,connectionInProgress:N}=U9(GW,U3),M=GE(h),P=(0,I.useRef)();!function(e){let t=Ge();(0,I.useEffect)(()=>{let n=()=>{var n,i,a,o;if(!e.current||!((null==(i=(n=e.current).checkVisibility)?void 0:i.call(n))??!0))return!1;let s=HJ(e.current);(0===s.height||0===s.width)&&(null==(o=(a=t.getState()).onError)||o.call(a,"004",Hl.error004())),t.setState({width:s.width||500,height:s.height||500})};if(e.current){n(),window.addEventListener("resize",n);let t=new ResizeObserver(()=>n());return t.observe(e.current),()=>{window.removeEventListener("resize",n),t&&e.current&&t.unobserve(e.current)}}},[])}(E);let R=(0,I.useCallback)(e=>{null==b||b({x:e[0],y:e[1],zoom:e[2]}),w||T.setState({transform:e})},[b,w]);return(0,I.useEffect)(()=>{if(E.current){P.current=function({domNode:e,minZoom:t,maxZoom:n,translateExtent:i,viewport:a,onPanZoom:o,onPanZoomStart:s,onPanZoomEnd:l,onDraggingChange:u}){let c={isZoomingOrPanning:!1,usedRightMouseButton:!1,prevViewport:{},mouseButton:0,timerId:void 0,panScrollTimeout:void 0,isPanScrolling:!1},d=e.getBoundingClientRect(),p=Hs().scaleExtent([t,n]).translateExtent(i),h=zh(e).call(p);b({x:a.x,y:a.y,zoom:HS(a.zoom,t,n)},[[0,0],[d.width,d.height]],i);let m=h.on("wheel.zoom"),f=h.on("dblclick.zoom");function g(e,t){return h?new Promise(n=>{null==p||p.interpolate((null==t?void 0:t.interpolate)==="linear"?Fo:Fm).transform(UB(h,null==t?void 0:t.duration,null==t?void 0:t.ease,()=>n(!0)),e)}):Promise.resolve(!1)}function x(){p.on("zoom",null)}async function b(e,t,n){let i=UR(e),a=null==p?void 0:p.constrain()(i,t,n);return a&&await g(a),new Promise(e=>e(a))}return p.wheelDelta(Uj),{update:function({noWheelClassName:e,noPanClassName:t,onPaneContextMenu:n,userSelectionActive:i,panOnScroll:a,panOnDrag:d,panOnScrollMode:g,panOnScrollSpeed:b,preventScrolling:w,zoomOnPinch:k,zoomOnScroll:_,zoomOnDoubleClick:T,zoomActivationKeyPressed:E,lib:A,onTransformChange:C,connectionInProgress:N,paneClickDistance:I,selectionOnDrag:M}){i&&!c.isZoomingOrPanning&&x();let P=a&&!E&&!i;p.clickDistance(M?1/0:!Hz(I)||I<0?0:I);let R=P?function({zoomPanValues:e,noWheelClassName:t,d3Selection:n,d3Zoom:i,panOnScrollMode:a,panOnScrollSpeed:o,zoomOnPinch:s,onPanZoomStart:l,onPanZoom:u,onPanZoomEnd:c}){return d=>{if(UD(d,t))return d.ctrlKey&&d.preventDefault(),!1;d.preventDefault(),d.stopImmediatePropagation();let p=n.property("__zoom").k||1;if(d.ctrlKey&&s){let e=zm(d),t=Uj(d);i.scaleTo(n,p*Math.pow(2,t),e,d);return}let h=1===d.deltaMode?20:1,m=a===v.Vertical?0:d.deltaX*h,f=a===v.Horizontal?0:d.deltaY*h;!HW()&&d.shiftKey&&a!==v.Vertical&&(m=d.deltaY*h,f=0),i.translateBy(n,-(m/p)*o,-(f/p)*o,{internal:!0});let g=UP(n.property("__zoom"));clearTimeout(e.panScrollTimeout),e.isPanScrolling?(null==u||u(d,g),e.panScrollTimeout=setTimeout(()=>{null==c||c(d,g),e.isPanScrolling=!1},150)):(e.isPanScrolling=!0,null==l||l(d,g))}}({zoomPanValues:c,noWheelClassName:e,d3Selection:h,d3Zoom:p,panOnScrollMode:g,panOnScrollSpeed:b,zoomOnPinch:k,onPanZoomStart:s,onPanZoom:o,onPanZoomEnd:l}):function({noWheelClassName:e,preventScrolling:t,d3ZoomHandler:n}){return function(i,a){let o="wheel"===i.type,s=!t&&o&&!i.ctrlKey,l=UD(i,e);if(i.ctrlKey&&o&&l&&i.preventDefault(),s||l)return null;i.preventDefault(),n.call(this,i,a)}}({noWheelClassName:e,preventScrolling:w,d3ZoomHandler:m});if(h.on("wheel.zoom",R,{passive:!1}),!i){let e=function({zoomPanValues:e,onDraggingChange:t,onPanZoomStart:n}){return i=>{var a,o,s;if(null!=(a=i.sourceEvent)&&a.internal)return;let l=UP(i.transform);e.mouseButton=(null==(o=i.sourceEvent)?void 0:o.button)||0,e.isZoomingOrPanning=!0,e.prevViewport=l,(null==(s=i.sourceEvent)?void 0:s.type)==="mousedown"&&t(!0),n&&(null==n||n(i.sourceEvent,l))}}({zoomPanValues:c,onDraggingChange:u,onPanZoomStart:s});p.on("start",e);let t=function({zoomPanValues:e,panOnDrag:t,onPaneContextMenu:n,onTransformChange:i,onPanZoom:a}){return o=>{var s,l;e.usedRightMouseButton=!!(n&&UL(t,e.mouseButton??0)),null!=(s=o.sourceEvent)&&s.sync||i([o.transform.x,o.transform.y,o.transform.k]),a&&!(null!=(l=o.sourceEvent)&&l.internal)&&(null==a||a(o.sourceEvent,UP(o.transform)))}}({zoomPanValues:c,panOnDrag:d,onPaneContextMenu:!!n,onPanZoom:o,onTransformChange:C});p.on("zoom",t);let i=function({zoomPanValues:e,panOnDrag:t,panOnScroll:n,onDraggingChange:i,onPanZoomEnd:a,onPaneContextMenu:o}){return s=>{var l;if(!(null!=(l=s.sourceEvent)&&l.internal)&&(e.isZoomingOrPanning=!1,o&&UL(t,e.mouseButton??0)&&!e.usedRightMouseButton&&s.sourceEvent&&o(s.sourceEvent),e.usedRightMouseButton=!1,i(!1),a)){let t=UP(s.transform);e.prevViewport=t,clearTimeout(e.timerId),e.timerId=setTimeout(()=>{null==a||a(s.sourceEvent,t)},n?150:0)}}}({zoomPanValues:c,panOnDrag:d,panOnScroll:a,onPaneContextMenu:n,onPanZoomEnd:l,onDraggingChange:u});p.on("end",i)}let D=function({zoomActivationKeyPressed:e,zoomOnScroll:t,zoomOnPinch:n,panOnDrag:i,panOnScroll:a,zoomOnDoubleClick:o,userSelectionActive:s,noWheelClassName:l,noPanClassName:u,lib:c,connectionInProgress:d}){return p=>{var h;let m=e||t,f=n&&p.ctrlKey,g="wheel"===p.type;if(1===p.button&&"mousedown"===p.type&&(UD(p,`${c}-flow__node`)||UD(p,`${c}-flow__edge`)))return!0;
548if(!i&&!m&&!a&&!o&&!n||s||d&&!g||UD(p,l)&&g||UD(p,u)&&(!g||a&&g&&!e)||!n&&p.ctrlKey&&g)return!1;if(!n&&"touchstart"===p.type&&(null==(h=p.touches)?void 0:h.length)>1)return p.preventDefault(),!1;if(!m&&!a&&!f&&g||!i&&("mousedown"===p.type||"touchstart"===p.type)||Array.isArray(i)&&!i.includes(p.button)&&"mousedown"===p.type)return!1;let x=Array.isArray(i)&&i.includes(p.button)||!p.button||p.button<=1;return(!p.ctrlKey||g)&&x}}({zoomActivationKeyPressed:E,panOnDrag:d,zoomOnScroll:_,panOnScroll:a,zoomOnDoubleClick:T,zoomOnPinch:k,userSelectionActive:i,noPanClassName:t,noWheelClassName:e,lib:A,connectionInProgress:N});p.filter(D),T?h.on("dblclick.zoom",f):h.on("dblclick.zoom",null)},destroy:x,setViewport:async function(e,t){let n=UR(e);return await g(n,t),new Promise(e=>e(n))},setViewportConstrained:b,getViewport:function(){let e=h?F8(h.node()):{x:0,y:0,k:1};return{x:e.x,y:e.y,zoom:e.k}},scaleTo:function(e,t){return h?new Promise(n=>{null==p||p.interpolate((null==t?void 0:t.interpolate)==="linear"?Fo:Fm).scaleTo(UB(h,null==t?void 0:t.duration,null==t?void 0:t.ease,()=>n(!0)),e)}):Promise.resolve(!1)},scaleBy:function(e,t){return h?new Promise(n=>{null==p||p.interpolate((null==t?void 0:t.interpolate)==="linear"?Fo:Fm).scaleBy(UB(h,null==t?void 0:t.duration,null==t?void 0:t.ease,()=>n(!0)),e)}):Promise.resolve(!1)},setScaleExtent:function(e){null==p||p.scaleExtent(e)},setTranslateExtent:function(e){null==p||p.translateExtent(e)},syncViewport:function(e){if(h){let t=UR(e),n=h.property("__zoom");(n.k!==e.zoom||n.x!==e.x||n.y!==e.y)&&(null==p||p.transform(h,t,null,{sync:!0}))}},setClickDistance:function(e){let t=!Hz(e)||e<0?0:e;null==p||p.clickDistance(t)}}}({domNode:E.current,minZoom:d,maxZoom:p,translateExtent:c,viewport:u,onDraggingChange:e=>T.setState({paneDragging:e}),onPanZoomStart:(e,t)=>{let{onViewportChangeStart:n,onMoveStart:i}=T.getState();null==i||i(e,t),null==n||n(t)},onPanZoom:(e,t)=>{let{onViewportChange:n,onMove:i}=T.getState();null==i||i(e,t),null==n||n(t)},onPanZoomEnd:(e,t)=>{let{onViewportChangeEnd:n,onMoveEnd:i}=T.getState();null==i||i(e,t),null==n||n(t)}});let{x:e,y:t,zoom:n}=P.current.getViewport();return T.setState({panZoom:P.current,transform:[e,t,n],domNode:E.current.closest(".react-flow")}),()=>{var e;null==(e=P.current)||e.destroy()}}},[]),(0,I.useEffect)(()=>{var u;null==(u=P.current)||u.update({onPaneContextMenu:e,zoomOnScroll:t,zoomOnPinch:n,panOnScroll:i,panOnScrollSpeed:a,panOnScrollMode:o,zoomOnDoubleClick:s,panOnDrag:l,zoomActivationKeyPressed:M,preventScrolling:m,noPanClassName:x,userSelectionActive:A,noWheelClassName:g,lib:C,onTransformChange:R,connectionInProgress:N,selectionOnDrag:_,paneClickDistance:k})},[e,t,n,i,a,o,s,l,M,m,x,A,g,C,R,N,_,k]),U.jsx("div",{className:"react-flow__renderer",ref:E,style:GV,children:f})}let GK=e=>({userSelectionActive:e.userSelectionActive,userSelectionRect:e.userSelectionRect});function GX(){let{userSelectionActive:e,userSelectionRect:t}=U9(GK,U3);return e&&t?U.jsx("div",{className:"react-flow__selection react-flow__container",style:{width:t.width,height:t.height,transform:`translate(${t.x}px, ${t.y}px)`}}):null}let GQ=(e,t)=>n=>{n.target===t.current&&(null==e||e(n))},GZ=e=>({userSelectionActive:e.userSelectionActive,elementsSelectable:e.elementsSelectable,connectionInProgress:e.connection.inProgress,dragging:e.paneDragging});function G$({isSelecting:e,selectionKeyPressed:t,selectionMode:n=b.Full,panOnDrag:i,paneClickDistance:a,selectionOnDrag:o,onSelectionStart:s,onSelectionEnd:l,onPaneClick:u,onPaneContextMenu:c,onPaneScroll:d,onPaneMouseEnter:p,onPaneMouseMove:h,onPaneMouseLeave:m,children:f}){let g=Ge(),{userSelectionActive:x,elementsSelectable:v,dragging:w,connectionInProgress:k}=U9(GZ,U3),_=v&&(e||x),T=(0,I.useRef)(null),E=(0,I.useRef)(),A=(0,I.useRef)(new Set),C=(0,I.useRef)(new Set),N=(0,I.useRef)(!1),M=e=>{if(N.current||k){N.current=!1;return}null==u||u(e),g.getState().resetSelectedElements(),g.setState({nodesSelectionActive:!1})},P=!0===i||Array.isArray(i)&&i.includes(0);return U.jsxs("div",{className:jM(["react-flow__pane",{draggable:P,dragging:w,selection:e}]),onClick:_?void 0:GQ(M,T),onContextMenu:GQ(e=>{if(Array.isArray(i)&&null!=i&&i.includes(2)){e.preventDefault();return}null==c||c(e)},T),onWheel:GQ(d?e=>d(e):void 0,T),onPointerEnter:_?void 0:p,onPointerMove:_?e=>{let{userSelectionRect:i,transform:o,nodeLookup:l,edgeLookup:u,connectionLookup:c,triggerNodeChanges:d,triggerEdgeChanges:p,defaultEdgeOptions:h,resetSelectedElements:m}=g.getState();if(!E.current||!i)return;let{x:f,y:x}=H5(e.nativeEvent,E.current),{startX:v,startY:w}=i;if(!N.current){if(Math.hypot(f-v,x-w)<=(t?0:a))return;m(),null==s||s(e)}N.current=!0;let k={startX:v,startY:w,x:f<v?f:v,y:x<w?x:w,width:Math.abs(f-v),height:Math.abs(x-w)},_=A.current,T=C.current;
548A.current=new Set(Hw(l,k,o,n===b.Partial,!0).map(e=>e.id)),C.current=new Set;let I=(null==h?void 0:h.selectable)??!0;for(let e of A.current){let t=c.get(e);if(t)for(let{edgeId:e}of t.values()){let t=u.get(e);t&&(t.selectable??I)&&C.current.add(e)}}HZ(_,A.current)||d(GM(l,A.current,!0)),HZ(T,C.current)||p(GM(u,C.current)),g.setState({userSelectionRect:k,userSelectionActive:!0,nodesSelectionActive:!1})}:h,onPointerUp:_?e=>{var t,n;0===e.button&&(null==(n=null==(t=e.target)?void 0:t.releasePointerCapture)||n.call(t,e.pointerId),!x&&e.target===T.current&&g.getState().userSelectionRect&&(null==M||M(e)),g.setState({userSelectionActive:!1,userSelectionRect:null}),N.current&&(null==l||l(e),g.setState({nodesSelectionActive:A.current.size>0})))}:void 0,onPointerDownCapture:_?n=>{var i,a;let{domNode:s}=g.getState();if(E.current=null==s?void 0:s.getBoundingClientRect(),!E.current)return;let l=n.target===T.current;if(!l&&n.target.closest(".nokey")||!e||!(o&&l||t)||0!==n.button||!n.isPrimary)return;null==(a=null==(i=n.target)?void 0:i.setPointerCapture)||a.call(i,n.pointerId),N.current=!1;let{x:u,y:c}=H5(n.nativeEvent,E.current);g.setState({userSelectionRect:{width:0,height:0,startX:u,startY:c,x:u,y:c}}),l||(n.stopPropagation(),n.preventDefault())}:void 0,onClickCapture:_?e=>{N.current&&(e.stopPropagation(),N.current=!1)}:void 0,onPointerLeave:m,ref:T,style:GV,children:[f,U.jsx(GX,{})]})}function GJ({id:e,store:t,unselect:n=!1,nodeRef:i}){let{addSelectedNodes:a,unselectNodesAndEdges:o,multiSelectionActive:s,nodeLookup:l,onError:u}=t.getState(),c=l.get(e);if(!c){null==u||u("012",Hl.error012(e));return}t.setState({nodesSelectionActive:!1}),c.selected?(n||c.selected&&s)&&(o({nodes:[c],edges:[]}),requestAnimationFrame(()=>{var e;return null==(e=null==i?void 0:i.current)?void 0:e.blur()})):a([e])}function G0({nodeRef:e,disabled:t=!1,noDragClassName:n,handleSelector:i,nodeId:a,isSelectable:o,nodeClickDistance:s}){let l=Ge(),[u,c]=(0,I.useState)(!1),d=(0,I.useRef)();return(0,I.useEffect)(()=>{d.current=function({onNodeMouseDown:e,getStoreItems:t,onDragStart:n,onDrag:i,onDragStop:a}){let o={x:null,y:null},s=0,l=new Map,u=!1,c={x:0,y:0},d=null,p=!1,h=null,m=!1,f=!1,g=null;return{update:function({noDragClassName:x,handleSelector:v,domNode:b,isSelectable:w,nodeId:k,nodeClickDistance:_=0}){function T({x:e,y:n}){let{nodeLookup:a,nodeExtent:s,snapGrid:u,snapToGrid:c,nodeOrigin:d,onNodeDrag:p,onSelectionDrag:h,onError:m,updateNodePositions:x}=t();o={x:e,y:n};let v=!1,b=l.size>1,w=b&&s?HP(Hb(l)):null,_=b&&c?function({dragItems:e,snapGrid:t,x:n,y:i}){let a=e.values().next().value;if(!a)return null;let o={x:n-a.distance.x,y:i-a.distance.y},s=HH(o,t);return{x:s.x-o.x,y:s.y-o.y}}({dragItems:l,snapGrid:u,x:e,y:n}):null;for(let[t,i]of l){if(!a.has(t))continue;let o={x:e-i.distance.x,y:n-i.distance.y};c&&(o=_?{x:Math.round(o.x+_.x),y:Math.round(o.y+_.y)}:HH(o,u));let l=null;if(b&&s&&!i.extent&&w){let{positionAbsolute:e}=i.internals,t=e.x-w.x+s[0][0],n=e.x+i.measured.width-w.x2+s[1][0];l=[[t,e.y-w.y+s[0][1]],[n,e.y+i.measured.height-w.y2+s[1][1]]]}let{position:p,positionAbsolute:h}=HT({nodeId:t,nextPosition:o,nodeLookup:a,nodeExtent:l||s,nodeOrigin:d,onError:m});v=v||i.position.x!==p.x||i.position.y!==p.y,i.position=p,i.internals.positionAbsolute=h}if(f=f||v,v&&(x(l,!0),g&&(i||p||!k&&h))){let[e,t]=US({nodeId:k,dragItems:l,nodeLookup:a});null==i||i(g,l,e,t),null==p||p(g,e,t),k||null==h||h(g,t)}}async function E(){if(!d)return;let{transform:e,panBy:n,autoPanSpeed:i,autoPanOnNodeDrag:a}=t();if(!a){u=!1,cancelAnimationFrame(s);return}let[l,p]=HI(c,d,i);(0!==l||0!==p)&&(o.x=(o.x??0)-l/e[2],o.y=(o.y??0)-p/e[2],await n({x:l,y:p})&&T(o)),s=requestAnimationFrame(E)}function A(i){var a;let{nodeLookup:s,multiSelectionActive:u,nodesDraggable:c,transform:h,snapGrid:m,snapToGrid:f,selectNodesOnDrag:g,onNodeDragStart:x,onSelectionDragStart:v,unselectNodesAndEdges:b}=t();p=!0,g&&w||u||!k||null!=(a=s.get(k))&&a.selected||b(),w&&g&&k&&(null==e||e(k));let _=H$(i.sourceEvent,{transform:h,snapGrid:m,snapToGrid:f,containerBounds:d});if(o=_,(l=function(e,t,n,i){let a=new Map;for(let[o,s]of e)if((s.selected||s.id===i)&&(!s.parentId||!function e(t,n){if(!t.parentId)return!1;let i=n.get(t.parentId);return!!i&&(!!i.selected||e(i,n))}(s,e))&&(s.draggable||t&&typeof s.draggable>"u")){let t=e.get(o);t&&a.set(o,{id:o,position:t.position||{x:0,y:0},distance:{x:n.x-t.internals.positionAbsolute.x,y:n.y-t.internals.positionAbsolute.y},extent:t.extent,parentId:t.parentId,origin:t.origin,expandParent:t.expandParent,internals:{positionAbsolute:t.internals.positionAbsolute||{x:0,y:0}},measured:{width:t.measured.width??0,height:t.measured.height??0}})}return a}(s,c,_,k)).size>0&&(n||x||!k&&v)){let[e,t]=US({nodeId:k,dragItems:l,nodeLookup:s});null==n||n(i.sourceEvent,l,e,t),null==x||x(i.sourceEvent,e,t),k||null==v||v(i.sourceEvent,t)}}h=zh(b);let C=zA().clickDistance(_).on("start",e=>
548{let{domNode:n,nodeDragThreshold:i,transform:a,snapGrid:s,snapToGrid:l}=t();d=(null==n?void 0:n.getBoundingClientRect())||null,m=!1,f=!1,g=e.sourceEvent,0===i&&A(e),o=H$(e.sourceEvent,{transform:a,snapGrid:s,snapToGrid:l,containerBounds:d}),c=H5(e.sourceEvent,d)}).on("drag",e=>{let{autoPanOnNodeDrag:n,transform:i,snapGrid:a,snapToGrid:s,nodeDragThreshold:h,nodeLookup:f}=t(),x=H$(e.sourceEvent,{transform:i,snapGrid:a,snapToGrid:s,containerBounds:d});if(g=e.sourceEvent,("touchmove"===e.sourceEvent.type&&e.sourceEvent.touches.length>1||k&&!f.has(k))&&(m=!0),!m){if(!u&&n&&p&&(u=!0,E()),!p){let t=H5(e.sourceEvent,d),n=t.x-c.x,i=t.y-c.y;Math.sqrt(n*n+i*i)>h&&A(e)}(o.x!==x.xSnapped||o.y!==x.ySnapped)&&l&&p&&(c=H5(e.sourceEvent,d),T(x))}}).on("end",e=>{if(!(!p||m)&&(u=!1,p=!1,cancelAnimationFrame(s),l.size>0)){let{nodeLookup:n,updateNodePositions:i,onNodeDragStop:o,onSelectionDragStop:s}=t();if(f&&(i(l,!1),f=!1),a||o||!k&&s){let[t,i]=US({nodeId:k,dragItems:l,nodeLookup:n,dragging:!1});null==a||a(e.sourceEvent,l,t,i),null==o||o(e.sourceEvent,t,i),k||null==s||s(e.sourceEvent,i)}}}).filter(e=>{let t=e.target;return!e.button&&(!x||!UE(t,`.${x}`,b))&&(!v||UE(t,v,b))});h.call(C)},destroy:function(){null==h||h.on(".drag",null)}}}({getStoreItems:()=>l.getState(),onNodeMouseDown:t=>{GJ({id:t,store:l,nodeRef:e})},onDragStart:()=>{c(!0)},onDragStop:()=>{c(!1)}})},[]),(0,I.useEffect)(()=>{var l,u;if(t)null==(l=d.current)||l.destroy();else if(e.current)return null==(u=d.current)||u.update({noDragClassName:n,handleSelector:i,domNode:e.current,isSelectable:o,nodeId:a,nodeClickDistance:s}),()=>{var e;null==(e=d.current)||e.destroy()}},[n,i,t,o,e,a]),u}let G1=e=>t=>t.selected&&(t.draggable||e&&typeof t.draggable>"u");function G2(){let e=Ge();return(0,I.useCallback)(t=>{let{nodeExtent:n,snapToGrid:i,snapGrid:a,nodesDraggable:o,onError:s,updateNodePositions:l,nodeLookup:u,nodeOrigin:c}=e.getState(),d=new Map,p=G1(o),h=i?a[0]:5,m=i?a[1]:5,f=t.direction.x*h*t.factor,g=t.direction.y*m*t.factor;for(let[,e]of u){if(!p(e))continue;let t={x:e.internals.positionAbsolute.x+f,y:e.internals.positionAbsolute.y+g};i&&(t=HH(t,a));let{position:o,positionAbsolute:l}=HT({nodeId:e.id,nextPosition:t,nodeLookup:u,nodeExtent:n,nodeOrigin:c,onError:s});e.position=o,e.internals.positionAbsolute=l,d.set(e.id,e)}l(d)},[])}let G4=(0,I.createContext)(null),G5=G4.Provider;G4.Consumer;let G3=()=>(0,I.useContext)(G4),G6=e=>({connectOnClick:e.connectOnClick,noPanClassName:e.noPanClassName,rfId:e.rfId}),G7=(e,t,n)=>i=>{let{connectionClickStartHandle:a,connectionMode:o,connection:s}=i,{fromHandle:l,toHandle:u,isValid:c}=s,d=(null==u?void 0:u.nodeId)===e&&(null==u?void 0:u.id)===t&&(null==u?void 0:u.type)===n;return{connectingFrom:(null==l?void 0:l.nodeId)===e&&(null==l?void 0:l.id)===t&&(null==l?void 0:l.type)===n,connectingTo:d,clickConnecting:(null==a?void 0:a.nodeId)===e&&(null==a?void 0:a.id)===t&&(null==a?void 0:a.type)===n,isPossibleEndHandle:o===x.Strict?(null==l?void 0:l.type)!==n:e!==(null==l?void 0:l.nodeId)||t!==(null==l?void 0:l.id),connectionInProcess:!!l,clickConnectionInProcess:!!a,valid:d&&c}},G8=(0,I.memo)(GO(function({type:e="source",position:t=_.Top,isValidConnection:n,isConnectable:i=!0,isConnectableStart:a=!0,isConnectableEnd:o=!0,id:s,onConnect:l,children:u,className:c,onMouseDown:d,onTouchStart:p,...h},m){var f,g;let x=s||null,v="target"===e,b=Ge(),w=G3(),{connectOnClick:k,noPanClassName:T,rfId:E}=U9(G6,U3),{connectingFrom:A,connectingTo:C,clickConnecting:N,isPossibleEndHandle:I,connectionInProcess:M,clickConnectionInProcess:P,valid:R}=U9(G7(w,x,e),U3);w||null==(g=(f=b.getState()).onError)||g.call(f,"010",Hl.error010());let D=e=>{let{defaultEdgeOptions:t,onConnect:n,hasDefaultEdges:i}=b.getState(),a={...t,...e};if(i){let{edges:e,setEdges:t}=b.getState();t(Ur(a,e))}null==n||n(a),null==l||l(a)},L=e=>{if(!w)return;let t=H4(e.nativeEvent);if(a&&(t&&0===e.button||!t)){let t=b.getState();UM.onPointerDown(e.nativeEvent,{handleDomNode:e.currentTarget,autoPanOnConnect:t.autoPanOnConnect,connectionMode:t.connectionMode,connectionRadius:t.connectionRadius,domNode:t.domNode,n
548odeLookup:t.nodeLookup,lib:t.lib,isTarget:v,handleId:x,nodeId:w,flowId:t.rfId,panBy:t.panBy,cancelConnection:t.cancelConnection,onConnectStart:t.onConnectStart,onConnectEnd:t.onConnectEnd,updateConnection:t.updateConnection,onConnect:D,isValidConnection:n||t.isValidConnection,getTransform:()=>b.getState().transform,getFromHandle:()=>b.getState().connection.fromHandle,autoPanSpeed:t.autoPanSpeed,dragThreshold:t.connectionDragThreshold})}t?null==d||d(e):null==p||p(e)};return U.jsx("div",{"data-handleid":x,"data-nodeid":w,"data-handlepos":t,"data-id":`${E}-${w}-${x}-${e}`,className:jM(["react-flow__handle",`react-flow__handle-${t}`,"nodrag",T,c,{source:!v,target:v,connectable:i,connectablestart:a,connectableend:o,clickconnecting:N,connectingfrom:A,connectingto:C,valid:R,connectionindicator:i&&(!M||I)&&(M||P?o:a)}]),onMouseDown:L,onTouchStart:L,onClick:k?t=>{let{onClickConnectStart:i,onClickConnectEnd:o,connectionClickStartHandle:s,connectionMode:l,isValidConnection:u,lib:c,rfId:d,nodeLookup:p,connection:h}=b.getState();if(!w||!s&&!a)return;if(!s){null==i||i(t.nativeEvent,{nodeId:w,handleId:x,handleType:e}),b.setState({connectionClickStartHandle:{nodeId:w,type:e,id:x}});return}let m=H0(t.target),f=n||u,{connection:g,isValid:v}=UM.isValid(t.nativeEvent,{handle:{nodeId:w,id:x,type:e},connectionMode:l,fromNodeId:s.nodeId,fromHandleId:s.id||null,fromType:s.type,isValidConnection:f,flowId:d,doc:m,lib:c,nodeLookup:p});v&&g&&D(g);let k=structuredClone(h);delete k.inProgress,k.toPosition=k.toHandle?k.toHandle.position:null,null==o||o(t,k),b.setState({connectionClickStartHandle:null})}:void 0,ref:m,...h,children:u})})),G9={ArrowUp:{x:0,y:-1},ArrowDown:{x:0,y:1},ArrowLeft:{x:-1,y:0},ArrowRight:{x:1,y:0}},qe={input:function({data:e,isConnectable:t,sourcePosition:n=_.Bottom}){return U.jsxs(U.Fragment,{children:[null==e?void 0:e.label,U.jsx(G8,{type:"source",position:n,isConnectable:t})]})},default:function({data:e,isConnectable:t,targetPosition:n=_.Top,sourcePosition:i=_.Bottom}){return U.jsxs(U.Fragment,{children:[U.jsx(G8,{type:"target",position:n,isConnectable:t}),null==e?void 0:e.label,U.jsx(G8,{type:"source",position:i,isConnectable:t})]})},output:function({data:e,isConnectable:t,targetPosition:n=_.Top}){return U.jsxs(U.Fragment,{children:[U.jsx(G8,{type:"target",position:n,isConnectable:t}),null==e?void 0:e.label]})},group:function(){return null}},qt=e=>{let{width:t,height:n,x:i,y:a}=Hb(e.nodeLookup,{filter:e=>!!e.selected});return{width:Hz(t)?t:null,height:Hz(n)?n:null,userSelectionActive:e.userSelectionActive,transformString:`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]}) translate(${i}px,${a}px)`}};function qn({onSelectionContextMenu:e,noPanClassName:t,disableKeyboardA11y:n}){let i=Ge(),{width:a,height:o,transformString:s,userSelectionActive:l}=U9(qt,U3),u=G2(),c=(0,I.useRef)(null);return((0,I.useEffect)(()=>{var e;n||null==(e=c.current)||e.focus({preventScroll:!0})},[n]),G0({nodeRef:c}),!l&&a&&o)?U.jsx("div",{className:jM(["react-flow__nodesselection","react-flow__container",t]),style:{transform:s},children:U.jsx("div",{ref:c,className:"react-flow__nodesselection-rect",onContextMenu:e?t=>{e(t,i.getState().nodes.filter(e=>e.selected))}:void 0,tabIndex:n?void 0:-1,onKeyDown:n?void 0:e=>{Object.prototype.hasOwnProperty.call(G9,e.key)&&(e.preventDefault(),u({direction:G9[e.key],factor:e.shiftKey?4:1}))},style:{width:a,height:o}})}):null}let qr="u">typeof window?window:void 0,qi=e=>({nodesSelectionActive:e.nodesSelectionActive,userSelectionActive:e.userSelectionActive});function qa({children:e,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:i,onPaneMouseLeave:a,onPaneContextMenu:o,onPaneScroll:s,paneClickDistance:l,deleteKeyCode:u,selectionKeyCode:c,selectionOnDrag:d,selectionMode:p,onSelectionStart:h,onSelectionEnd:m,multiSelectionKeyCode:f,panActivationKeyCode:g,zoomActivationKeyCode:x,elementsSelectable:v,zoomOnScroll:b,zoomOnPinch:w,panOnScroll:k,panOnScrollSpeed:_,panOnScrollMode:T,zoomOnDoubleClick:E,panOnDrag:A,defaultViewport:C,translateExtent:N,minZoom:M,maxZoom:P,preventScrolling:R,onSelectionContextMenu:D,noWheelClassName:L,noPanClassName:O,disableKeyboardA11y:B,onViewportChange:j,isControlledViewport:z}){let{nodesSelectionActive:F,userSelectionActive:H}=U9(qi,U3),G=GE(c,{target:qr}),q=GE(g,{target:qr}),V=q||A,W=q||k,Y=d&&!0!==V,K=G||H||Y;return function({deleteKeyCode:e,multiSelectionKeyCode:t}){let n=Ge(),{deleteElements:i}=GU(),a=GE(e,{actInsideInputWithModifier:!1}),o=GE(t,{target:Gq});(0,I.useEffect)(()=>
548{if(a){let{edges:e,nodes:t}=n.getState();i({nodes:t.filter(GG),edges:e.filter(GG)}),n.setState({nodesSelectionActive:!1})}},[a]),(0,I.useEffect)(()=>{n.setState({multiSelectionActive:o})},[o])}({deleteKeyCode:u,multiSelectionKeyCode:f}),U.jsx(GY,{onPaneContextMenu:o,elementsSelectable:v,zoomOnScroll:b,zoomOnPinch:w,panOnScroll:W,panOnScrollSpeed:_,panOnScrollMode:T,zoomOnDoubleClick:E,panOnDrag:!G&&V,defaultViewport:C,translateExtent:N,minZoom:M,maxZoom:P,zoomActivationKeyCode:x,preventScrolling:R,noWheelClassName:L,noPanClassName:O,onViewportChange:j,isControlledViewport:z,paneClickDistance:l,selectionOnDrag:Y,children:U.jsxs(G$,{onSelectionStart:h,onSelectionEnd:m,onPaneClick:t,onPaneMouseEnter:n,onPaneMouseMove:i,onPaneMouseLeave:a,onPaneContextMenu:o,onPaneScroll:s,panOnDrag:V,isSelecting:!!K,selectionMode:p,selectionKeyPressed:G,paneClickDistance:l,selectionOnDrag:Y,children:[e,F&&U.jsx(qn,{onSelectionContextMenu:D,noPanClassName:O,disableKeyboardA11y:B})]})})}qa.displayName="FlowRenderer";let qo=(0,I.memo)(qa),qs=e=>t=>e?Hw(t.nodeLookup,{x:0,y:0,width:t.width,height:t.height},t.transform,!0).map(e=>e.id):Array.from(t.nodeLookup.keys()),ql=e=>e.updateNodeInternals;var qu=(0,I.memo)(function({id:e,onClick:t,onMouseEnter:n,onMouseMove:i,onMouseLeave:a,onContextMenu:o,onDoubleClick:s,nodesDraggable:l,elementsSelectable:u,nodesConnectable:c,nodesFocusable:d,resizeObserver:p,noDragClassName:h,noPanClassName:m,disableKeyboardA11y:f,rfId:g,nodeTypes:x,nodeClickDistance:v,onError:b}){var w,k,_,T;let{node:E,internals:A,isParent:C}=U9(t=>{let n=t.nodeLookup.get(e),i=t.parentLookup.has(e);return{node:n,internals:n.internals,isParent:i}},U3),N=E.type||"default",M=(null==x?void 0:x[N])||qe[N];void 0===M&&(null==b||b("003",Hl.error003(N)),N="default",M=(null==x?void 0:x.default)||qe.default);let P=!!(E.draggable||l&&typeof E.draggable>"u"),R=!!(E.selectable||u&&typeof E.selectable>"u"),D=!!(E.connectable||c&&typeof E.connectable>"u"),L=!!(E.focusable||d&&typeof E.focusable>"u"),O=Ge(),B=HX(E),j=function({node:e,nodeType:t,hasDimensions:n,resizeObserver:i}){let a=Ge(),o=(0,I.useRef)(null),s=(0,I.useRef)(null),l=(0,I.useRef)(e.sourcePosition),u=(0,I.useRef)(e.targetPosition),c=(0,I.useRef)(t),d=n&&!!e.internals.handleBounds;return(0,I.useEffect)(()=>{!o.current||e.hidden||d&&s.current===o.current||(s.current&&(null==i||i.unobserve(s.current)),null==i||i.observe(o.current),s.current=o.current)},[d,e.hidden]),(0,I.useEffect)(()=>()=>{s.current&&(null==i||i.unobserve(s.current),s.current=null)},[]),(0,I.useEffect)(()=>{if(o.current){let n=c.current!==t,i=l.current!==e.sourcePosition,s=u.current!==e.targetPosition;(n||i||s)&&(c.current=t,l.current=e.sourcePosition,u.current=e.targetPosition,a.getState().updateNodeInternals(new Map([[e.id,{id:e.id,nodeElement:o.current,force:!0}]])))}},[e.id,t,e.sourcePosition,e.targetPosition]),o}({node:E,nodeType:N,hasDimensions:B,resizeObserver:p}),z=G0({nodeRef:j,disabled:E.hidden||!P,noDragClassName:h,handleSelector:E.dragHandle,nodeId:e,isSelectable:R,nodeClickDistance:v}),F=G2();if(E.hidden)return null;let H=HK(E),G=void 0===E.internals.handleBounds?{width:E.width??E.initialWidth??(null==(w=E.style)?void 0:w.width),height:E.height??E.initialHeight??(null==(k=E.style)?void 0:k.height)}:{width:E.width??(null==(_=E.style)?void 0:_.width),height:E.height??(null==(T=E.style)?void 0:T.height)},q=R||P||t||n||i||a;return U.jsx("div",{className:jM(["react-flow__node",`react-flow__node-${N}`,{[m]:P},E.className,{selected:E.selected,selectable:R,parent:C,draggable:P,dragging:z}]),ref:j,style:{zIndex:A.z,transform:`translate(${A.positionAbsolute.x}px,${A.positionAbsolute.y}px)`,pointerEvents:q?"all":"none",visibility:B?"visible":"hidden",...E.style,...G},"data-id":e,"data-testid":`rf__node-${e}`,onMouseEnter:n?e=>n(e,{...A.userNode}):void 0,onMouseMove:i?e=>i(e,{...A.userNode}):void 0,onMouseLeave:a?e=>a(e,{...A.userNode}):void 0,onContextMenu:o?e=>o(e,{...A.userNode}):void 0,onClick:n=>{let{selectNodesOnDrag:i,nodeDragThreshold:a}=O.getState();R&&(!i||!P||a>0)&&GJ({id:e,store:O,nodeRef:j}),t&&t(n,{...A.userNode})},onDoubleClick:s?e=>s(e,{...A.userNode}):void 0,onKeyDown:L?t=>{if(!(H2(t.nativeEvent)||f)){if(Hc.includes(t.key)&&R)GJ({id:e,store:O,unselect:"Escape"===t.key,nodeRef:j});else if(P&&E.selected&&Object.prototype.hasOwnProperty.call(G9,t.key)){t.preventDefault();let{ariaLabelConfig:e}=O.getState();
548O.setState({ariaLiveMessage:e["node.a11yDescription.ariaLiveMessage"]({direction:t.key.replace("Arrow","").toLowerCase(),x:~~A.positionAbsolute.x,y:~~A.positionAbsolute.y})}),F({direction:G9[t.key],factor:t.shiftKey?4:1})}}}:void 0,tabIndex:L?0:void 0,onFocus:L?()=>{var t;if(f||!(null!=(t=j.current)&&t.matches(":focus-visible")))return;let{transform:n,width:i,height:a,autoPanOnNodeFocus:o,setCenter:s}=O.getState();o&&(Hw(new Map([[e,E]]),{x:0,y:0,width:i,height:a},n,!0).length>0||s(E.position.x+H.width/2,E.position.y+H.height/2,{zoom:n[2]}))}:void 0,role:E.ariaRole??(L?"group":void 0),"aria-roledescription":"node","aria-describedby":f?void 0:`${Gr}-${g}`,"aria-label":E.ariaLabel,...E.domAttributes,children:U.jsx(G5,{value:e,children:U.jsx(M,{id:e,data:E.data,type:N,positionAbsoluteX:A.positionAbsolute.x,positionAbsoluteY:A.positionAbsolute.y,selected:E.selected??!1,selectable:R,draggable:P,deletable:E.deletable??!0,isConnectable:D,sourcePosition:E.sourcePosition,targetPosition:E.targetPosition,dragging:z,dragHandle:E.dragHandle,zIndex:A.z,parentId:E.parentId,...H})})})});let qc=e=>({nodesDraggable:e.nodesDraggable,nodesConnectable:e.nodesConnectable,nodesFocusable:e.nodesFocusable,elementsSelectable:e.elementsSelectable,onError:e.onError});function qd(e){var t;let{nodesDraggable:n,nodesConnectable:i,nodesFocusable:a,elementsSelectable:o,onError:s}=U9(qc,U3),l=(t=e.onlyRenderVisibleElements,U9((0,I.useCallback)(qs(t),[t]),U3)),u=function(){let e=U9(ql),[t]=(0,I.useState)(()=>typeof ResizeObserver>"u"?null:new ResizeObserver(t=>{let n=new Map;t.forEach(e=>{let t=e.target.getAttribute("data-id");n.set(t,{id:t,nodeElement:e.target,force:!0})}),e(n)}));return(0,I.useEffect)(()=>()=>{null==t||t.disconnect()},[t]),t}();return U.jsx("div",{className:"react-flow__nodes",style:GV,children:l.map(t=>U.jsx(qu,{id:t,nodeTypes:e.nodeTypes,nodeExtent:e.nodeExtent,onClick:e.onNodeClick,onMouseEnter:e.onNodeMouseEnter,onMouseMove:e.onNodeMouseMove,onMouseLeave:e.onNodeMouseLeave,onContextMenu:e.onNodeContextMenu,onDoubleClick:e.onNodeDoubleClick,noDragClassName:e.noDragClassName,noPanClassName:e.noPanClassName,rfId:e.rfId,disableKeyboardA11y:e.disableKeyboardA11y,resizeObserver:u,nodesDraggable:n,nodesConnectable:i,nodesFocusable:a,elementsSelectable:o,nodeClickDistance:e.nodeClickDistance,onError:s},t))})}qd.displayName="NodeRenderer";let qp=(0,I.memo)(qd),qh={[k.Arrow]:({color:e="none",strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e}};return U.jsx("polyline",{className:"arrow",style:n,strokeLinecap:"round",fill:"none",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4"})},[k.ArrowClosed]:({color:e="none",strokeWidth:t=1})=>{let n={strokeWidth:t,...e&&{stroke:e,fill:e}};return U.jsx("polyline",{className:"arrowclosed",style:n,strokeLinecap:"round",strokeLinejoin:"round",points:"-5,-4 0,0 -5,4 -5,-4"})}},qm=({id:e,type:t,color:n,width:i=12.5,height:a=12.5,markerUnits:o="strokeWidth",strokeWidth:s,orient:l="auto-start-reverse"})=>{let u=function(e){let t=Ge();return(0,I.useMemo)(()=>{var n,i;return Object.prototype.hasOwnProperty.call(qh,e)?qh[e]:(null==(i=(n=t.getState()).onError)||i.call(n,"009",Hl.error009(e)),null)},[e])}(t);return u?U.jsx("marker",{className:"react-flow__arrowhead",id:e,markerWidth:`${i}`,markerHeight:`${a}`,viewBox:"-10 -10 20 20",markerUnits:o,orient:l,refX:"0",refY:"0",children:U.jsx(u,{color:n,strokeWidth:s})}):null},qf=({defaultColor:e,rfId:t})=>{let n=U9(e=>e.edges),i=U9(e=>e.defaultEdgeOptions),a=(0,I.useMemo)(()=>(function(e,{id:t,defaultColor:n,defaultMarkerStart:i,defaultMarkerEnd:a}){let o=new Set;return e.reduce((e,s)=>([s.markerStart||i,s.markerEnd||a].forEach(i=>{if(i&&"object"==typeof i){let a=Uh(i,t);o.has(a)||(e.push({id:a,color:i.color||n,...i}),o.add(a))}}),e),[]).sort((e,t)=>e.id.localeCompare(t.id))})(n,{id:t,defaultColor:e,defaultMarkerStart:null==i?void 0:i.markerStart,defaultMarkerEnd:null==i?void 0:i.markerEnd}),[n,i,t,e]);return a.length?U.jsx("svg",{className:"react-flow__marker","aria-hidden":"true",children:U.jsx("defs",{children:a.map(e=>U.jsx(qm,{id:e.id,type:e.type,color:e.color,width:e.width,height:e.height,markerUnits:e.markerUnits,strokeWidth:e.strokeWidth,orient:e.orient},e.id))})}):null};qf.displayName="MarkerDefinitions";var qg=(0,I.memo)(qf);function qx({x:e,y:t,label:n,labelStyle:i,labelShowBg:a=!0,labelBgStyle:o,labelBgPadding:s=[2,4],labelBgBorderRadius:l=2,children:u,className:c,...d}){let[p,h]=(0,I.useState)({x:1,y:0,width:0,height:0}),m=jM(["react-flow__edge-textwrapper",c]),f=(0,I.useRef)(null);return(0,I.useEffect)(()=>
548{if(f.current){let e=f.current.getBBox();h({x:e.x,y:e.y,width:e.width,height:e.height})}},[n]),n?U.jsxs("g",{transform:`translate(${e-p.width/2} ${t-p.height/2})`,className:m,visibility:p.width?"visible":"hidden",...d,children:[a&&U.jsx("rect",{width:p.width+2*s[0],x:-s[0],y:-s[1],height:p.height+2*s[1],className:"react-flow__edge-textbg",style:o,rx:l,ry:l}),U.jsx("text",{className:"react-flow__edge-text",y:p.height/2,dy:"0.3em",ref:f,style:i,children:n}),u]}):null}qx.displayName="EdgeText";let qv=(0,I.memo)(qx);function qy({path:e,labelX:t,labelY:n,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:u,interactionWidth:c=20,...d}){return U.jsxs(U.Fragment,{children:[U.jsx("path",{...d,d:e,fill:"none",className:jM(["react-flow__edge-path",d.className])}),c?U.jsx("path",{d:e,fill:"none",strokeOpacity:0,strokeWidth:c,className:"react-flow__edge-interaction"}):null,i&&Hz(t)&&Hz(n)?U.jsx(qv,{x:t,y:n,label:i,labelStyle:a,labelShowBg:o,labelBgStyle:s,labelBgPadding:l,labelBgBorderRadius:u}):null]})}function qb({pos:e,x1:t,y1:n,x2:i,y2:a}){return e===_.Left||e===_.Right?[.5*(t+i),n]:[t,.5*(n+a)]}function qw({sourceX:e,sourceY:t,sourcePosition:n=_.Bottom,targetX:i,targetY:a,targetPosition:o=_.Top}){let[s,l]=qb({pos:n,x1:e,y1:t,x2:i,y2:a}),[u,c]=qb({pos:o,x1:i,y1:a,x2:e,y2:t}),[d,p,h,m]=H6({sourceX:e,sourceY:t,targetX:i,targetY:a,sourceControlX:s,sourceControlY:l,targetControlX:u,targetControlY:c});return[`M${e},${t} C${s},${l} ${u},${c} ${i},${a}`,d,p,h,m]}function qk(e){return(0,I.memo)(({id:t,sourceX:n,sourceY:i,targetX:a,targetY:o,sourcePosition:s,targetPosition:l,label:u,labelStyle:c,labelShowBg:d,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,style:f,markerEnd:g,markerStart:x,interactionWidth:v})=>{let[b,w,k]=qw({sourceX:n,sourceY:i,sourcePosition:s,targetX:a,targetY:o,targetPosition:l}),_=e.isInternal?void 0:t;return U.jsx(qy,{id:_,path:b,labelX:w,labelY:k,label:u,labelStyle:c,labelShowBg:d,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,style:f,markerEnd:g,markerStart:x,interactionWidth:v})})}let q_=qk({isInternal:!1}),qT=qk({isInternal:!0});function qE(e){return(0,I.memo)(({id:t,sourceX:n,sourceY:i,targetX:a,targetY:o,label:s,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:p,style:h,sourcePosition:m=_.Bottom,targetPosition:f=_.Top,markerEnd:g,markerStart:x,pathOptions:v,interactionWidth:b})=>{let[w,k,T]=Ul({sourceX:n,sourceY:i,sourcePosition:m,targetX:a,targetY:o,targetPosition:f,borderRadius:null==v?void 0:v.borderRadius,offset:null==v?void 0:v.offset,stepPosition:null==v?void 0:v.stepPosition}),E=e.isInternal?void 0:t;return U.jsx(qy,{id:E,path:w,labelX:k,labelY:T,label:s,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:p,style:h,markerEnd:g,markerStart:x,interactionWidth:b})})}q_.displayName="SimpleBezierEdge",qT.displayName="SimpleBezierEdgeInternal";let qS=qE({isInternal:!1}),qA=qE({isInternal:!0});function qC(e){return(0,I.memo)(({id:t,...n})=>{var i;let a=e.isInternal?void 0:t;return U.jsx(qS,{...n,id:a,pathOptions:(0,I.useMemo)(()=>{var e;return{borderRadius:0,offset:null==(e=n.pathOptions)?void 0:e.offset}},[null==(i=n.pathOptions)?void 0:i.offset])})})}qS.displayName="SmoothStepEdge",qA.displayName="SmoothStepEdgeInternal";let qN=qC({isInternal:!1}),qI=qC({isInternal:!0});function qM(e){return(0,I.memo)(({id:t,sourceX:n,sourceY:i,targetX:a,targetY:o,label:s,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:p,style:h,markerEnd:m,markerStart:f,interactionWidth:g})=>{let[x,v,b]=Ui({sourceX:n,sourceY:i,targetX:a,targetY:o}),w=e.isInternal?void 0:t;return U.jsx(qy,{id:w,path:x,labelX:v,labelY:b,label:s,labelStyle:l,labelShowBg:u,labelBgStyle:c,labelBgPadding:d,labelBgBorderRadius:p,style:h,markerEnd:m,markerStart:f,interactionWidth:g})})}qN.displayName="StepEdge",qI.displayName="StepEdgeInternal";let qP=qM({isInternal:!1}),qR=qM({isInternal:!0});function qD(e){return(0,I.memo)(({id:t,sourceX:n,sourceY:i,targetX:a,targetY:o,sourcePosition:s=_.Bottom,targetPosition:l=_.Top,label:u,labelStyle:c,labelShowBg:d,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,style:f,markerEnd:g,markerStart:x,pathOptions:v,interactionWidth:b})=>{let[w,k,T]=H9({sourceX:n,sourceY:i,sourcePosition:s,targetX:a,targetY:o,targetPosition:l,curvature:null==v?void 0:v.curvature}),E=e.isInternal?void 0:t;return U.jsx(qy,{id:E,path:w,labelX:k,labelY:T,label:u,labelStyle:c,labelShowBg:d,labelBgStyle:p,labelBgPadding:h,labelBgBorderRadius:m,style:f,markerEnd:g,markerStart:x,interactionWidth:b})})}qP.displayName="StraightEdge",qR.displayName="StraightEdgeInternal";let qL=qD({isInternal:!1}),qO=qD({isInternal:!0});qL.displayName="BezierEdge",qO.displayName="BezierEdgeInternal";let qB={default:qO,straight:qR,step:qI,smoothstep:qA,simplebezier:qT},qj={sourceX:null,sourceY:null,targetX:null,targetY:null,sourcePosition:null,targetPosition:null},qz=(e,t,n)=>n===_.Left?e-t:n===_.Right?e+t:e,qF=(e,t,n)=>n===_.Top?e-t:n===_.Bottom?e+t:e,qH="react-flow__edgeupdater";function qU({position:e,centerX:t,centerY:n,radius:i=10,onMouseDown:a,onMouseEnter:o,onMouseOut:s,type:l}){return U.jsx("circle",{onMouseDown:a,onMouseEnter:o,onMouseOut:s,className:jM([qH,`${qH}-${l}`]),cx:qz(t,i,e),cy:qF(n,i,e),r:i,stroke:"transparent",fill:"transparent"})}function qG({isReconnectable:e,reconnectRadius:t,edge:n,sourceX:i,sourceY:a,targetX:o,targetY:s,sourcePosition:l,targetPosition:u,onReconnect:c,onReconnectStart:d,onReconnectEnd:p,setReconnecting:h,setUpdateHover:m}){let f=Ge(),g=(e,t)=>{if(0!==e.button)return;let{autoPanOnConnect:i,domNode:a,isValidConnection:o,connectionMode:s,connectionRadius:l,lib:u,onConnectStart:m,onConnectEnd:g,cancelConnection:x,nodeLookup:v,rfId:b,panBy:w,updateConnection:k}=f.getState(),_="target"===t.type;UM.onPointerDown(e.nativeEvent,{autoPanOnConnect:i,connectionMode:s,connectionRadius:l,domNode:a,handleId:t.id,nodeId:t.nodeId,nodeLookup:v,isTarget:_,edgeUpdaterType:t.type,lib:u,flowId:b,cancelConnection:x,panBy:w,isValidConnection:o,onConnect:e=>null==c?void 0:c(n,e),onConnectStart:(i,a)=>{h(!0),null==d||d(e,n,t.type),null==m||m(i,a)},onConnectEnd:g,onReconnectEnd:(e,i)=>{h(!1),null==p||p(e,n,t.type,i)},updateConnection:k,getTransform:()=>f.getState().transform,getFromHandle:()=>f.getState().connection.fromHandle,dragThreshold:f.getState().connectionDragThreshold,handleDomNo
548de:e.currentTarget})},x=()=>m(!0),v=()=>m(!1);return U.jsxs(U.Fragment,{children:[(!0===e||"source"===e)&&U.jsx(qU,{position:l,centerX:i,centerY:a,radius:t,onMouseDown:e=>g(e,{nodeId:n.target,id:n.targetHandle??null,type:"target"}),onMouseEnter:x,onMouseOut:v,type:"source"}),(!0===e||"target"===e)&&U.jsx(qU,{position:u,centerX:o,centerY:s,radius:t,onMouseDown:e=>g(e,{nodeId:n.source,id:n.sourceHandle??null,type:"source"}),onMouseEnter:x,onMouseOut:v,type:"target"})]})}var qq=(0,I.memo)(function({id:e,edgesFocusable:t,edgesReconnectable:n,elementsSelectable:i,onClick:a,onDoubleClick:o,onContextMenu:s,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,reconnectRadius:d,onReconnect:p,onReconnectStart:h,onReconnectEnd:m,rfId:f,edgeTypes:g,noPanClassName:v,onError:b,disableKeyboardA11y:w}){let k=U9(t=>t.edgeLookup.get(e)),T=U9(e=>e.defaultEdgeOptions),E=(k=T?{...T,...k}:k).type||"default",A=(null==g?void 0:g[E])||qB[E];void 0===A&&(null==b||b("011",Hl.error011(E)),E="default",A=(null==g?void 0:g.default)||qB.default);let C=!!(k.focusable||t&&typeof k.focusable>"u"),N="u">typeof p&&(k.reconnectable||n&&typeof k.reconnectable>"u"),M=!!(k.selectable||i&&typeof k.selectable>"u"),P=(0,I.useRef)(null),[R,D]=(0,I.useState)(!1),[L,O]=(0,I.useState)(!1),B=Ge(),{zIndex:j,sourceX:z,sourceY:F,targetX:H,targetY:G,sourcePosition:q,targetPosition:V}=U9((0,I.useCallback)(t=>{let n=t.nodeLookup.get(k.source),i=t.nodeLookup.get(k.target);if(!n||!i)return{zIndex:k.zIndex,...qj};let a=function(e){var t;let{sourceNode:n,targetNode:i}=e;if(!Uu(n)||!Uu(i))return null;let a=n.internals.handleBounds||Uc(n.handles),o=i.internals.handleBounds||Uc(i.handles),s=Up((null==a?void 0:a.source)??[],e.sourceHandle),l=Up(e.connectionMode===x.Strict?(null==o?void 0:o.target)??[]:((null==o?void 0:o.target)??[]).concat((null==o?void 0:o.source)??[]),e.targetHandle);if(!s||!l)return null==(t=e.onError)||t.call(e,"008",Hl.error008(s?"target":"source",{id:e.id,sourceHandle:e.sourceHandle,targetHandle:e.targetHandle})),null;let u=(null==s?void 0:s.position)||_.Bottom,c=(null==l?void 0:l.position)||_.Top,d=Ud(n,s,u),p=Ud(i,l,c);return{sourceX:d.x,sourceY:d.y,targetX:p.x,targetY:p.y,sourcePosition:u,targetPosition:c}}({id:e,sourceNode:n,targetNode:i,sourceHandle:k.sourceHandle||null,targetHandle:k.targetHandle||null,connectionMode:t.connectionMode,onError:b});return{zIndex:function({sourceNode:e,targetNode:t,selected:n=!1,zIndex:i=0,elevateOnSelect:a=!1,zIndexMode:o="basic"}){if("manual"===o)return i;let s=Math.max(e.parentId||a&&e.selected?e.internals.z:0,t.parentId||a&&t.selected?t.internals.z:0);return(a&&n?i+1e3:i)+s}({selected:k.selected,zIndex:k.zIndex,sourceNode:n,targetNode:i,elevateOnSelect:t.elevateEdgesOnSelect,zIndexMode:t.zIndexMode}),...a||qj}},[k.source,k.target,k.sourceHandle,k.targetHandle,k.selected,k.zIndex]),U3),W=(0,I.useMemo)(()=>k.markerStart?`url('#${Uh(k.markerStart,f)}')`:void 0,[k.markerStart,f]),Y=(0,I.useMemo)(()=>k.markerEnd?`url('#${Uh(k.markerEnd,f)}')`:void 0,[k.markerEnd,f]);if(k.hidden||null===z||null===F||null===H||null===G)return null;let K=o?e=>{o(e,{...k})}:void 0,X=s?e=>{s(e,{...k})}:void 0,Q=l?e=>{l(e,{...k})}:void 0,Z=u?e=>{u(e,{...k})}:void 0,$=c?e=>{c(e,{...k})}:void 0;return U.jsx("svg",{style:{zIndex:j},children:U.jsxs("g",{className:jM(["react-flow__edge",`react-flow__edge-${E}`,k.className,v,{selected:k.selected,animated:k.animated,inactive:!M&&!a,updating:R,selectable:M}]),onClick:t=>{var n;let{addSelectedEdges:i,unselectNodesAndEdges:o,multiSelectionActive:s}=B.getState();M&&(B.setState({nodesSelectionActive:!1}),k.selected&&s?(o({nodes:[],edges:[k]}),null==(n=P.current)||n.blur()):i([e])),a&&a(t,k)},onDoubleClick:K,onContextMenu:X,onMouseEnter:Q,onMouseMove:Z,onMouseLeave:$,onKeyDown:C?t=>{var n;if(!w&&Hc.includes(t.key)&&M){let{unselectNodesAndEdges:i,addSelectedEdges:a}=B.getState();"Escape"===t.key?(null==(n=P.current)||n.blur(),i({edges:[k]})):a([e])}}:void 0,tabIndex:C?0:void 0,role:k.ariaRole??(C?"group":"img"),"aria-roledescription":"edge","data-id":e,"data-testid":`rf__edge-${e}`,"aria-label":null===k.ariaLabel?void 0:k.ariaLabel||`Edge from ${k.source} to ${k.target}`,"aria-describedby":C?`${Gi}-${f}`:void 0,ref:P,...k.domAttributes,children:[!L&&U.jsx(A,{id:e,source:k.source,target:k.target,type:k.type,selected:k.selected,animated:k.animated,selectable:M,deletable:k.deletable??!0,label:k.label,labelStyle:k.labelStyle,labelShowBg:k.labelShowBg,labelBgStyle:k.labelBgStyle,labelBgPadding:k.labelBgPadding,labelBgBorderRadius:k.labelBgBorderRadius,sourceX:z,sourceY:F,targetX:H,targetY:G,sourcePosition:q,targetPosition:V,data:k.data,style:k.style,sourceHandleId:k.sourceHandle,targetHandleId:k.targetHandle,markerStart:W,markerEnd:Y,pathOptions:"pathOptions"in k?k.pathOptions:void 0,interactionWidth:k.interactionWidth}),N&&U.jsx(qG,{edge:k,isReconnectable:N,reconnectRadius:d,onReconnect:p,onReconnectStart:h,onReconnectEnd:m,sourceX:z,sourceY:F,targetX:H,targetY:G,sourcePosition:q,targetPosition:V,setUpdateHover:D,setReconnecting:O})]})})});let qV=e=>({edgesFocusable:e.edgesFocusable,edgesReconnectable:e.edgesReconnectable,elementsSelectable:e.elementsSelectable,connectionMode:e.connectionMode,onError:e.onError});function qW({defaultMarkerColor:e,onlyRenderVisibleElements:t,rfId:n,edgeTypes:i,noPanClassName:a,onReconnect:o,onEdgeContextMenu:s,onEdgeMouseEnter:l,onEdgeMouseMove:u,onEdgeMouseLeave:c,onEdgeClick:d,reconnectRadius:p,onEdgeDoubleClick:h,onReconnectStart:m,onReconnectEnd:f,disableKeyboardA11y:g}){let{edgesFocusable:x,edgesReconnectable:v,elementsSelectable:b,onError:w}=U9(qV,U3),k=U9((0,I.useCallback)(e=>{if(!t)return e.edges.map(e=>e.id);let n=[];if(e.width&&e.height)for(let t of e.edges){let i=e.nodeLookup.get(t.source),a=e.nodeLookup.get(t.target);i&&a&&function({sourceNode:e,targetNode:t,width:n,height:i,transform:a}){let o=HM(HL(e),HL(t));return o.x===o.x2&&(o.x2+=1),o.y===o.y2&&(o.y2+=1),HB({x:-a[0]/a[2],y:-a[1]/a[2],width:n/a[2],height:i/a[2]},HR(o))>0}({sourceNode:i,targetNode:a,width:e.width,height:e.height,transform:e.transform})&&n.push(t.id)}return n},[t]),U3);return U.jsxs("div",{className:"react-flow__edges",children:[U.jsx(qg,{defaultColor:e,rfId:n}),k.map(e=>U.jsx(qq,{id:e,edgesFocusable:x,edgesReconnectable:v,elementsSelectable:b,noPanClassName:a,onReconnect:o,onContextMenu:s,onMouseEnter:l,onMouseMove:u,onMouseLeave:c,onClick:d,reconnectRadius:p,onDoubleClick:h,onReconnectStart:m,onReconnectEnd:f,rfId:n,onError:w,edgeTypes:i,disableKeyboardA11y:g},e))]})}qW.displayName="EdgeRenderer";let qY=(0,I.memo)(qW),qK=e=>`translate(${e.transform[0]}px,${e.transform[1]}px) scale(${e.transform[2]})`;function qX({children:e}){let t=U9(qK);return U.jsx("div",{className:"react-flow__viewport xyflow__viewport react-flow__container",style:{transform:t},children:e})}
548let qQ=e=>{var t;return null==(t=e.panZoom)?void 0:t.syncViewport};function qZ(e){return e.connection.inProgress?{...e.connection,to:HU(e.connection.to,e.transform)}:{...e.connection}}let q$=e=>({nodesConnectable:e.nodesConnectable,isValid:e.connection.isValid,inProgress:e.connection.inProgress,width:e.width,height:e.height});function qJ({containerStyle:e,style:t,type:n,component:i}){let{nodesConnectable:a,width:o,height:s,isValid:l,inProgress:u}=U9(q$,U3);return o&&a&&u?U.jsx("svg",{style:e,width:o,height:s,className:"react-flow__connectionline react-flow__container",children:U.jsx("g",{className:jM(["react-flow__connection",Hm(l)]),children:U.jsx(q0,{style:t,type:n,CustomComponent:i,isValid:l})})}):null}let q0=({style:e,type:t=w.Bezier,CustomComponent:n,isValid:i})=>{let{inProgress:a,from:o,fromNode:s,fromHandle:l,fromPosition:u,to:c,toNode:d,toHandle:p,toPosition:h,pointer:m}=U9(qZ,U3);if(!a)return;if(n)return U.jsx(n,{connectionLineType:t,connectionLineStyle:e,fromNode:s,fromHandle:l,fromX:o.x,fromY:o.y,toX:c.x,toY:c.y,fromPosition:u,toPosition:h,connectionStatus:Hm(i),toNode:d,toHandle:p,pointer:m});let f="",g={sourceX:o.x,sourceY:o.y,sourcePosition:u,targetX:c.x,targetY:c.y,targetPosition:h};switch(t){case w.Bezier:[f]=H9(g);break;case w.SimpleBezier:[f]=qw(g);break;case w.Step:[f]=Ul({...g,borderRadius:0});break;case w.SmoothStep:[f]=Ul(g);break;default:[f]=Ui(g)}return U.jsx("path",{d:f,fill:"none",className:"react-flow__connection-path",style:e})};q0.displayName="ConnectionLine";let q1={};function q2(e=q1){(0,I.useRef)(e),Ge(),(0,I.useEffect)(()=>{},[e])}function q4({nodeTypes:e,edgeTypes:t,onInit:n,onNodeClick:i,onEdgeClick:a,onNodeDoubleClick:o,onEdgeDoubleClick:s,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:c,onNodeContextMenu:d,onSelectionContextMenu:p,onSelectionStart:h,onSelectionEnd:m,connectionLineType:f,connectionLineStyle:g,connectionLineComponent:x,connectionLineContainerStyle:v,selectionKeyCode:b,selectionOnDrag:w,selectionMode:k,multiSelectionKeyCode:_,panActivationKeyCode:T,zoomActivationKeyCode:E,deleteKeyCode:A,onlyRenderVisibleElements:C,elementsSelectable:N,defaultViewport:M,translateExtent:P,minZoom:R,maxZoom:D,preventScrolling:L,defaultMarkerColor:O,zoomOnScroll:B,zoomOnPinch:j,panOnScroll:z,panOnScrollSpeed:F,panOnScrollMode:H,zoomOnDoubleClick:G,panOnDrag:q,onPaneClick:V,onPaneMouseEnter:W,onPaneMouseMove:Y,onPaneMouseLeave:K,onPaneScroll:X,onPaneContextMenu:Q,paneClickDistance:Z,nodeClickDistance:$,onEdgeContextMenu:J,onEdgeMouseEnter:ee,onEdgeMouseMove:et,onEdgeMouseLeave:en,reconnectRadius:er,onReconnect:ei,onReconnectStart:ea,onReconnectEnd:eo,noDragClassName:es,noWheelClassName:el,noPanClassName:eu,disableKeyboardA11y:ec,nodeExtent:ed,rfId:ep,viewport:eh,onViewportChange:em}){return q2(e),q2(t),Ge(),(0,I.useRef)(!1),(0,I.useEffect)(()=>{},[]),function(e){let t=GU(),n=(0,I.useRef)(!1);(0,I.useEffect)(()=>{!n.current&&t.viewportInitialized&&e&&(setTimeout(()=>e(t),1),n.current=!0)},[e,t.viewportInitialized])}(n),function(e){let t=U9(qQ),n=Ge();(0,I.useEffect)(()=>{e&&(null==t||t(e),n.setState({transform:[e.x,e.y,e.zoom]}))},[e,t])}(eh),U.jsx(qo,{onPaneClick:V,onPaneMouseEnter:W,onPaneMouseMove:Y,onPaneMouseLeave:K,onPaneContextMenu:Q,onPaneScroll:X,paneClickDistance:Z,deleteKeyCode:A,selectionKeyCode:b,selectionOnDrag:w,selectionMode:k,onSelectionStart:h,onSelectionEnd:m,multiSelectionKeyCode:_,panActivationKeyCode:T,zoomActivationKeyCode:E,elementsSelectable:N,zoomOnScroll:B,zoomOnPinch:j,zoomOnDoubleClick:G,panOnScroll:z,panOnScrollSpeed:F,panOnScrollMode:H,panOnDrag:q,defaultViewport:M,translateExtent:P,minZoom:R,maxZoom:D,onSelectionContextMenu:p,preventScrolling:L,noDragClassName:es,noWheelClassName:el,noPanClassName:eu,disableKeyboardA11y:ec,onViewportChange:em,isControlledViewport:!!eh,children:U.jsxs(qX,{children:[U.jsx(qY,{edgeTypes:t,onEdgeClick:a,onEdgeDoubleClick:s,onReconnect:ei,onReconnectStart:ea,onReconnectEnd:eo,onlyRenderVisibleElements:C,onEdgeContextMenu:J,onEdgeMouseEnter:ee,onEdgeMouseMove:et,onEdgeMouseLeave:en,reconnectRadius:er,defaultMarkerColor:O,noPanClassName:eu,disableKeyboardA11y:ec,rfId:ep}),U.jsx(qJ,{style:g,type:f,component:x,containerStyle:v}),U.jsx("div",{className:"react-flow__edgelabel-renderer"}),U.jsx(qp,{nodeTypes:e,onNodeClick:i,onNodeDoubleClick:o,onNodeMouseEnter:l,onNodeMouseMove:u,onNodeMouseLeave:c,onNodeContextMenu:d,nodeClickDistance:$,onlyRenderVisibleElements:C,noPanClassName:eu,noDragClassName:es,disableKeyboardA11y:ec,nodeExtent:ed,rfId:ep}),U.jsx("div",{className:"react-flow__viewport-portal"})]})})}q4.displayName="GraphView";let q5=(0,I.memo)(q4),q3=({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:a,height:o,fitView:s,fitViewOptions:l,minZoom:u=.5,maxZoom:c=2,nodeOrigin:d,nodeExtent:p,zIndexMode:h="basic"}={})=>{let m=new Map,f=new Map,g=new Map,v=new Map,b=i??t??[],w=n??e??[],k=d??[0,0],_=p??Hu;UT(g,v,b);let T=Uv(w,m,f,{nodeOrigin:k,nodeExtent:_,zIndexMode:h}),E=[0,0,1];if(s&&a&&o){let{x:e,y:t,zoom:n}=HV(Hb(m,{filter:e=>!!((e.width||e.initialWidth)&&(e.height||e.initialHeight))}),a,o,u,c,(null==l?void 0:l.padding)??.1);E=[e,t,n]}return{rfId:"1",width:a??0,height:o??0,transform:E,nodes:w,nodesInitialized:T,nodeLookup:m,parentLookup:f,edges:b,edgeLookup:v,connectionLookup:g,onNodesChange:null,onEdgesChange:null,hasDefaultNodes:void 0!==n,hasDefaultEdges:void 0!==i,panZoom:null,minZoom:u,maxZoom:c,translateExtent:Hu,nodeExtent:_,nodesSelectionActive:!1,userSelectionActive:!1,userSelectionRect:null,connectionMode:x.Strict,domNode:null,paneDragging:!1,noPanClassName:"nopan",nodeOrigin:k,nodeDragThreshold:1,connectionDragThreshold:1,snapGrid:[15,15],snapToGri
548d:!1,nodesDraggable:!0,nodesConnectable:!0,nodesFocusable:!0,edgesFocusable:!0,edgesReconnectable:!0,elementsSelectable:!0,elevateNodesOnSelect:!0,elevateEdgesOnSelect:!0,selectNodesOnDrag:!0,multiSelectionActive:!1,fitViewQueued:s??!1,fitViewOptions:l,fitViewResolver:null,connection:{...Hp},connectionClickStartHandle:null,connectOnClick:!0,ariaLiveMessage:"",autoPanOnConnect:!0,autoPanOnNodeDrag:!0,autoPanOnNodeFocus:!0,autoPanSpeed:15,connectionRadius:20,onError:HF,isValidConnection:void 0,onSelectionChangeHandlers:[],lib:"react",debug:!1,ariaLabelConfig:Hd,zIndexMode:h,onNodesChangeMiddlewareMap:new Map,onEdgesChangeMiddlewareMap:new Map}},q6=({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:a,height:o,fitView:s,fitViewOptions:l,minZoom:u,maxZoom:c,nodeOrigin:d,nodeExtent:p,zIndexMode:h})=>U5((m,f)=>{async function g(){let{nodeLookup:e,panZoom:t,fitViewOptions:n,fitViewResolver:i,width:a,height:o,minZoom:s,maxZoom:l}=f();t&&(await H_({nodes:e,width:a,height:o,panZoom:t,minZoom:s,maxZoom:l},n),null==i||i.resolve(!0),m({fitViewResolver:null}))}return{...q3({nodes:e,edges:t,width:a,height:o,fitView:s,fitViewOptions:l,minZoom:u,maxZoom:c,nodeOrigin:d,nodeExtent:p,defaultNodes:n,defaultEdges:i,zIndexMode:h}),setNodes:e=>{let{nodeLookup:t,parentLookup:n,nodeOrigin:i,elevateNodesOnSelect:a,fitViewQueued:o,zIndexMode:s}=f(),l=Uv(e,t,n,{nodeOrigin:i,nodeExtent:p,elevateNodesOnSelect:a,checkEquality:!0,zIndexMode:s});o&&l?(g(),m({nodes:e,nodesInitialized:l,fitViewQueued:!1,fitViewOptions:void 0})):m({nodes:e,nodesInitialized:l})},setEdges:e=>{let{connectionLookup:t,edgeLookup:n}=f();UT(t,n,e),m({edges:e})},setDefaultNodesAndEdges:(e,t)=>{if(e){let{setNodes:t}=f();t(e),m({hasDefaultNodes:!0})}if(t){let{setEdges:e}=f();e(t),m({hasDefaultEdges:!0})}},updateNodeInternals:e=>{let{triggerNodeChanges:t,nodeLookup:n,parentLookup:i,domNode:a,nodeOrigin:o,nodeExtent:s,debug:l,fitViewQueued:u,zIndexMode:c}=f(),{changes:d,updatedInternals:p}=function(e,t,n,i,a,o,s){let l=null==i?void 0:i.querySelector(".xyflow__viewport"),u=!1;if(!l)return{changes:[],updatedInternals:u};let c=[],d=window.getComputedStyle(l),{m22:p}=new window.DOMMatrixReadOnly(d.transform),h=[];for(let i of e.values()){let e=t.get(i.id);if(!e)continue;if(e.hidden){t.set(e.id,{...e,internals:{...e.internals,handleBounds:void 0}}),u=!0;continue}let l=HJ(i.nodeElement),d=e.measured.width!==l.width||e.measured.height!==l.height;if(l.width&&l.height&&(d||!e.internals.handleBounds||i.force)){let m=i.nodeElement.getBoundingClientRect(),f=HY(e.extent)?e.extent:o,{positionAbsolute:g}=e.internals;e.parentId&&"parent"===e.extent?g=HC(g,l,t.get(e.parentId)):f&&(g=HA(g,f,l));let x={...e,measured:l,internals:{...e.internals,positionAbsolute:g,handleBounds:{source:H3("source",i.nodeElement,m,p,e.id),target:H3("target",i.nodeElement,m,p,e.id)}}};t.set(e.id,x),e.parentId&&Uy(x,t,n,{nodeOrigin:a,zIndexMode:s}),u=!0,d&&(c.push({id:e.id,type:"dimensions",dimensions:l}),e.expandParent&&e.parentId&&h.push({id:e.id,parentId:e.parentId,rect:HD(x,a)}))}}if(h.length>0){let e=Uw(h,t,n,a);c.push(...e)}return{changes:c,updatedInternals:u}}(e,n,i,a,o,s,c);p&&(function(e,t,n){let i=Ug(Um,n);for(let n of e.values())if(n.parentId)Uy(n,e,t,i);else{let e=HA(Hv(n,i.nodeOrigin),HY(n.extent)?n.extent:i.nodeExtent,HK(n));n.internals.positionAbsolute=e}}(n,i,{nodeOrigin:o,nodeExtent:s,zIndexMode:c}),u?(g(),m({fitViewQueued:!1,fitViewOptions:void 0})):m({}),(null==d?void 0:d.length)>0&&(l&&console.log("React Flow: trigger node changes",d),null==t||t(d)))},updateNodePositions:(e,t=!1)=>{let n=[],i=[],{nodeLookup:a,triggerNodeChanges:o,connection:s,updateConnection:l,onNodesChangeMiddlewareMap:u}=f();for(let[o,u]of e){let e=a.get(o),c=!!(null!=e&&e.expandParent&&null!=e&&e.parentId&&null!=u&&u.position),d={id:o,type:"position",position:c?{x:Math.max(0,u.position.x),y:Math.max(0,u.position.y)}:u.position,dragging:t};if(e&&s.inProgress&&s.fromNode.id===e.id){let t=Ud(e,s.fromHandle,_.Left,!0);l({...s,from:t})}c&&e.parentId&&n.push({id:o,parentId:e.parentId,rect:{...u.internals.positionAbsolute,width:u.measured.width??0,height:u.measured.height??0}}),i.push(d)}if(n.length>0){let{parentLookup:e,nodeOrigin:t}=f(),o=Uw(n,a,e,t);i.push(...o)}for(let e of u.values())i=e(i);o(i)},triggerNodeChanges:e=>{let{onNodesChange:t,setNodes:n,nodes:i,hasDefaultNodes:a,debug:o}=f();null!=e&&e.length&&(a&&n(GN(e,i)),o&&console.log("React Flow: trigger node changes",e),null==t||t(e))},triggerEdgeChanges:e=>{let{onEdgesChange:t,setEdges:n,edges:i,hasDefaultEdges:a,debug:o}=f();null!=e&&e.length&&(a&&n(GN(e,i)),o&&console.log("React Flow: trigger edge changes",e),null==t||t(e))},addSelectedNodes:e=>{let{multiSelectionActive:t,edgeLookup:n,nodeLookup:i,triggerNodeChanges:a,triggerEdgeChanges:o}=f();if(t){a(e.map(e=>GI(e,!0)));return}a(GM(i,new Set([...e]),!0)),o(GM(n))},addSelectedEdges:e=>{let{multiSelectionActive:t,edgeLookup:n,nodeLookup:i,triggerNodeChanges:a,triggerEdgeChanges:o}=f();if(t){o(e.map(e=>GI(e,!0)));return}o(GM(n,new Set([...e]))),a(GM(i,new Set,!0))},unselectNodesAndEdges:({nodes:e,edges:t}={})=>{let{edges:n,nodes:i,nodeLookup:a,triggerNodeChanges:o,triggerEdgeChanges:s}=f(),l=(e||i).map(e=>{let t=a.get(e.id);return t&&(t.selected=!1),GI(e.id,!1)}),u=(t||n).map(e=>GI(e.id,!1));o(l),s(u)},setMinZoom:e=>{let{panZoom:t,maxZoom:n}=f();null==t||t.setScaleExtent([e,n]),m({minZoom:e})}
548,setMaxZoom:e=>{let{panZoom:t,minZoom:n}=f();null==t||t.setScaleExtent([n,e]),m({maxZoom:e})},setTranslateExtent:e=>{var t;null==(t=f().panZoom)||t.setTranslateExtent(e),m({translateExtent:e})},resetSelectedElements:()=>{let{edges:e,nodes:t,triggerNodeChanges:n,triggerEdgeChanges:i,elementsSelectable:a}=f();if(!a)return;let o=t.reduce((e,t)=>t.selected?[...e,GI(t.id,!1)]:e,[]),s=e.reduce((e,t)=>t.selected?[...e,GI(t.id,!1)]:e,[]);n(o),i(s)},setNodeExtent:e=>{let{nodes:t,nodeLookup:n,parentLookup:i,nodeOrigin:a,elevateNodesOnSelect:o,nodeExtent:s,zIndexMode:l}=f();e[0][0]===s[0][0]&&e[0][1]===s[0][1]&&e[1][0]===s[1][0]&&e[1][1]===s[1][1]||(Uv(t,n,i,{nodeOrigin:a,nodeExtent:e,elevateNodesOnSelect:o,checkEquality:!1,zIndexMode:l}),m({nodeExtent:e}))},panBy:e=>{let{transform:t,width:n,height:i,panZoom:a,translateExtent:o}=f();return Uk({delta:e,panZoom:a,transform:t,translateExtent:o,width:n,height:i})},setCenter:async(e,t,n)=>{let{width:i,height:a,maxZoom:o,panZoom:s}=f();if(!s)return Promise.resolve(!1);let l="u">typeof(null==n?void 0:n.zoom)?n.zoom:o;return await s.setViewport({x:i/2-e*l,y:a/2-t*l,zoom:l},{duration:null==n?void 0:n.duration,ease:null==n?void 0:n.ease,interpolate:null==n?void 0:n.interpolate}),Promise.resolve(!0)},cancelConnection:()=>{m({connection:{...Hp}})},updateConnection:e=>{m({connection:e})},reset:()=>m({...q3()})}},Object.is);function q7({initialNodes:e,initialEdges:t,defaultNodes:n,defaultEdges:i,initialWidth:a,initialHeight:o,initialMinZoom:s,initialMaxZoom:l,initialFitViewOptions:u,fitView:c,nodeOrigin:d,nodeExtent:p,zIndexMode:h,children:m}){let[f]=(0,I.useState)(()=>q6({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,width:a,height:o,fitView:c,minZoom:s,maxZoom:l,fitViewOptions:u,nodeOrigin:d,nodeExtent:p,zIndexMode:h}));return U.jsx(U7,{value:f,children:U.jsx(GF,{children:m})})}function q8({children:e,nodes:t,edges:n,defaultNodes:i,defaultEdges:a,width:o,height:s,fitView:l,fitViewOptions:u,minZoom:c,maxZoom:d,nodeOrigin:p,nodeExtent:h,zIndexMode:m}){return(0,I.useContext)(U6)?U.jsx(U.Fragment,{children:e}):U.jsx(q7,{initialNodes:t,initialEdges:n,defaultNodes:i,defaultEdges:a,initialWidth:o,initialHeight:s,fitView:l,initialFitViewOptions:u,initialMinZoom:c,initialMaxZoom:d,nodeOrigin:p,nodeExtent:h,zIndexMode:m,children:e})}let q9={width:"100%",height:"100%",overflow:"hidden",position:"relative",zIndex:0};var Ve=GO(function({nodes:e,edges:t,defaultNodes:n,defaultEdges:i,className:a,nodeTypes:o,edgeTypes:s,onNodeClick:l,onEdgeClick:u,onInit:c,onMove:d,onMoveStart:p,onMoveEnd:h,onConnect:m,onConnectStart:f,onConnectEnd:g,onClickConnectStart:x,onClickConnectEnd:k,onNodeMouseEnter:_,onNodeMouseMove:T,onNodeMouseLeave:E,onNodeContextMenu:A,onNodeDoubleClick:C,onNodeDragStart:N,onNodeDrag:M,onNodeDragStop:P,onNodesDelete:R,onEdgesDelete:D,onDelete:L,onSelectionChange:O,onSelectionDragStart:B,onSelectionDrag:j,onSelectionDragStop:z,onSelectionContextMenu:F,onSelectionStart:H,onSelectionEnd:G,onBeforeDelete:q,connectionMode:V,connectionLineType:W=w.Bezier,connectionLineStyle:Y,connectionLineComponent:K,connectionLineContainerStyle:X,deleteKeyCode:Q="Backspace",selectionKeyCode:Z="Shift",selectionOnDrag:$=!1,selectionMode:J=b.Full,panActivationKeyCode:ee="Space",multiSelectionKeyCode:et=HW()?"Meta":"Control",zoomActivationKeyCode:en=HW()?"Meta":"Control",snapToGrid:er,snapGrid:ei,onlyRenderVisibleElements:ea=!1,selectNodesOnDrag:eo,nodesDraggable:es,autoPanOnNodeFocus:el,nodesConnectable:eu,nodesFocusable:ec,nodeOrigin:ed=Gx,edgesFocusable:ep,edgesReconnectable:eh,elementsSelectable:em=!0,defaultViewport:ef=Gv,minZoom:eg=.5,maxZoom:ex=2,translateExtent:ev=Hu,preventScrolling:ey=!0,nodeExtent:eb,defaultMarkerColor:ew="#b1b1b7",zoomOnScroll:ek=!0,zoomOnPinch:e_=!0,panOnScroll:eT=!1,panOnScrollSpeed:eE=.5,panOnScrollMode:eS=v.Free,zoomOnDoubleClick:eA=!0,panOnDrag:eC=!0,onPaneClick:eN,onPaneMouseEnter:eI,onPaneMouseMove:eM,onPaneMouseLeave:eP,onPaneScroll:eR,onPaneContextMenu:eD,paneClickDistance:eL=1,nodeClickDistance:eO=0,children:eB,onReconnect:ej,onReconnectStart:ez,onReconnectEnd:eF,onEdgeContextMenu:eH,onEdgeDoubleClick:eU,onEdgeMouseEnter:eG,onEdgeMouseMove:eq,onEdgeMouseLeave:eV,reconnectRadius:eW=10,onNodesChange:eY,onEdgesChange:eK,noDragClassName:eX="nodrag",noWheelClassName:eQ="nowheel",noPanClassName:eZ="nopan",fitView:e$,fitViewOptions:eJ,connectOnClick:e0,attributionPosition:e1,proOptions:e2,defaultEdgeOptions:e4,elevateNodesOnSelect:e5=!0,elevateEdgesOnSelect:e3=!1,disableKeyboardA11y:e6=!1,autoPanOnConnect:e7,autoPanOnNodeDrag:e8,autoPanSpeed:e9,connectionRadius:te,isValidConnection:tt,onError:tn,style:tr,id:ti,nodeDragThreshold:ta,connectionDragThreshold:to,viewport:ts,onViewportChange:tl,width:tu,height:tc,colorMode:td="light",debug:tp,onScroll:th,ariaLabelConfig:tm,zIndexMode:tf="basic",...tg},tx){let tv=ti||"1",ty=function(e){var t;let[n,i]=(0,I.useState)("system"===e?null:e);return(0,I.useEffect)(()=>
548{if("system"!==e){i(e);return}let t=G_(),n=()=>i(null!=t&&t.matches?"dark":"light");return n(),null==t||t.addEventListener("change",n),()=>{null==t||t.removeEventListener("change",n)}},[e]),null!==n?n:null!=(t=G_())&&t.matches?"dark":"light"}(td),tb=(0,I.useCallback)(e=>{e.currentTarget.scrollTo({top:0,left:0,behavior:"instant"}),null==th||th(e)},[th]);return U.jsx("div",{"data-testid":"rf__wrapper",...tg,onScroll:tb,style:{...tr,...q9},ref:tx,className:jM(["react-flow",a,ty]),id:ti,role:"application",children:U.jsxs(q8,{nodes:e,edges:t,width:tu,height:tc,fitView:e$,fitViewOptions:eJ,minZoom:eg,maxZoom:ex,nodeOrigin:ed,nodeExtent:eb,zIndexMode:tf,children:[U.jsx(q5,{onInit:c,onNodeClick:l,onEdgeClick:u,onNodeMouseEnter:_,onNodeMouseMove:T,onNodeMouseLeave:E,onNodeContextMenu:A,onNodeDoubleClick:C,nodeTypes:o,edgeTypes:s,connectionLineType:W,connectionLineStyle:Y,connectionLineComponent:K,connectionLineContainerStyle:X,selectionKeyCode:Z,selectionOnDrag:$,selectionMode:J,deleteKeyCode:Q,multiSelectionKeyCode:et,panActivationKeyCode:ee,zoomActivationKeyCode:en,onlyRenderVisibleElements:ea,defaultViewport:ef,translateExtent:ev,minZoom:eg,maxZoom:ex,preventScrolling:ey,zoomOnScroll:ek,zoomOnPinch:e_,zoomOnDoubleClick:eA,panOnScroll:eT,panOnScrollSpeed:eE,panOnScrollMode:eS,panOnDrag:eC,onPaneClick:eN,onPaneMouseEnter:eI,onPaneMouseMove:eM,onPaneMouseLeave:eP,onPaneScroll:eR,onPaneContextMenu:eD,paneClickDistance:eL,nodeClickDistance:eO,onSelectionContextMenu:F,onSelectionStart:H,onSelectionEnd:G,onReconnect:ej,onReconnectStart:ez,onReconnectEnd:eF,onEdgeContextMenu:eH,onEdgeDoubleClick:eU,onEdgeMouseEnter:eG,onEdgeMouseMove:eq,onEdgeMouseLeave:eV,reconnectRadius:eW,defaultMarkerColor:ew,noDragClassName:eX,noWheelClassName:eQ,noPanClassName:eZ,rfId:tv,disableKeyboardA11y:e6,nodeExtent:eb,viewport:ts,onViewportChange:tl}),U.jsx(Gk,{nodes:e,edges:t,defaultNodes:n,defaultEdges:i,onConnect:m,onConnectStart:f,onConnectEnd:g,onClickConnectStart:x,onClickConnectEnd:k,nodesDraggable:es,autoPanOnNodeFocus:el,nodesConnectable:eu,nodesFocusable:ec,edgesFocusable:ep,edgesReconnectable:eh,elementsSelectable:em,elevateNodesOnSelect:e5,elevateEdgesOnSelect:e3,minZoom:eg,maxZoom:ex,nodeExtent:eb,onNodesChange:eY,onEdgesChange:eK,snapToGrid:er,snapGrid:ei,connectionMode:V,translateExtent:ev,connectOnClick:e0,defaultEdgeOptions:e4,fitView:e$,fitViewOptions:eJ,onNodesDelete:R,onEdgesDelete:D,onDelete:L,onNodeDragStart:N,onNodeDrag:M,onNodeDragStop:P,onSelectionDrag:j,onSelectionDragStart:B,onSelectionDragStop:z,onMove:d,onMoveStart:p,onMoveEnd:h,noPanClassName:eZ,nodeOrigin:ed,rfId:tv,autoPanOnConnect:e7,autoPanOnNodeDrag:e8,autoPanSpeed:e9,onError:tn,connectionRadius:te,isValidConnection:tt,selectNodesOnDrag:eo,nodeDragThreshold:ta,connectionDragThreshold:to,onBeforeDelete:q,debug:tp,ariaLabelConfig:tm,zIndexMode:tf}),U.jsx(Gg,{onSelectionChange:O}),eB,U.jsx(Gc,{proOptions:e2,position:e1}),U.jsx(Gl,{rfId:tv,disableKeyboardA11y:e6})]})})});function Vt(e){return U9((0,I.useCallback)(t=>t.nodeLookup.get(e),[e]),U3)}function Vn({dimensions:e,lineWidth:t,variant:n,className:i}){return U.jsx("path",{strokeWidth:t,d:`M${e[0]/2} 0 V${e[1]} M0 ${e[1]/2} H${e[0]}`,className:jM(["react-flow__background-pattern",n,i])})}function Vr({radius:e,className:t}){return U.jsx("circle",{cx:e,cy:e,r:e,className:jM(["react-flow__background-pattern","dots",t])})}(g=N||(N={})).Lines="lines",g.Dots="dots",g.Cross="cross";let Vi={[N.Dots]:1,[N.Lines]:1,[N.Cross]:6},Va=e=>({transform:e.transform,patternId:`pattern-${e.rfId}`});function Vo({id:e,variant:t=N.Dots,gap:n=20,size:i,lineWidth:a=1,offset:o=0,color:s,bgColor:l,style:u,className:c,patternClassName:d}){let p=(0,I.useRef)(null),{transform:h,patternId:m}=U9(Va,U3),f=i||Vi[t],g=t===N.Dots,x=t===N.Cross,v=Array.isArray(n)?n:[n,n],b=[v[0]*h[2]||1,v[1]*h[2]||1],w=f*h[2],k=Array.isArray(o)?o:[o,o],_=x?[w,w]:b,T=[k[0]*h[2]||1+_[0]/2,k[1]*h[2]||1+_[1]/2],E=`${m}${e||""}`;return U.jsxs("svg",{className:jM(["react-flow__background",c]),style:{...u,...GV,"--xy-background-color-props":l,"--xy-background-pattern-color-props":s},ref:p,"data-testid":"rf__background",children:[U.jsx("pattern",{id:E,x:h[0]%b[0],y:h[1]%b[1],width:b[0],height:b[1],patternUnits:"userSpaceOnUse",patternTransform:`translate(-${T[0]},-${T[1]})`,children:g?U.jsx(Vr,{radius:w/2,className:d}):U.jsx(Vn,{dimensions:_,lineWidth:a,variant:t,className:d})}),U.jsx("rect",{x:"0",y:"0",width:"100%",height:"100%",fill:`url(#${E})`})]})}
548Vo.displayName="Background";let Vs=(0,I.memo)(Vo);function Vl(){return U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 32",children:U.jsx("path",{d:"M32 18.133H18.133V32h-4.266V18.133H0v-4.266h13.867V0h4.266v13.867H32z"})})}function Vu(){return U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 5",children:U.jsx("path",{d:"M0 0h32v4.2H0z"})})}function Vc(){return U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 32 30",children:U.jsx("path",{d:"M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z"})})}function Vd(){return U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:U.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0 8 0 4.571 3.429 4.571 7.619v3.048H3.048A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047zm4.724-13.866H7.467V7.619c0-2.59 2.133-4.724 4.723-4.724 2.591 0 4.724 2.133 4.724 4.724v3.048z"})})}function Vp(){return U.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 25 32",children:U.jsx("path",{d:"M21.333 10.667H19.81V7.619C19.81 3.429 16.38 0 12.19 0c-4.114 1.828-1.37 2.133.305 2.438 1.676.305 4.42 2.59 4.42 5.181v3.048H3.047A3.056 3.056 0 000 13.714v15.238A3.056 3.056 0 003.048 32h18.285a3.056 3.056 0 003.048-3.048V13.714a3.056 3.056 0 00-3.048-3.047zM12.19 24.533a3.056 3.056 0 01-3.047-3.047 3.056 3.056 0 013.047-3.048 3.056 3.056 0 013.048 3.048 3.056 3.056 0 01-3.048 3.047z"})})}function Vh({children:e,className:t,...n}){return U.jsx("button",{type:"button",className:jM(["react-flow__controls-button",t]),...n,children:e})}let Vm=e=>({isInteractive:e.nodesDraggable||e.nodesConnectable||e.elementsSelectable,minZoomReached:e.transform[2]<=e.minZoom,maxZoomReached:e.transform[2]>=e.maxZoom,ariaLabelConfig:e.ariaLabelConfig});function Vf({style:e,showZoom:t=!0,showFitView:n=!0,showInteractive:i=!0,fitViewOptions:a,onZoomIn:o,onZoomOut:s,onFitView:l,onInteractiveChange:u,className:c,children:d,position:p="bottom-left",orientation:h="vertical","aria-label":m}){let f=Ge(),{isInteractive:g,minZoomReached:x,maxZoomReached:v,ariaLabelConfig:b}=U9(Vm,U3),{zoomIn:w,zoomOut:k,fitView:_}=GU();return U.jsxs(Gu,{className:jM(["react-flow__controls","horizontal"===h?"horizontal":"vertical",c]),position:p,style:e,"data-testid":"rf__controls","aria-label":m??b["controls.ariaLabel"],children:[t&&U.jsxs(U.Fragment,{children:[U.jsx(Vh,{onClick:()=>{w(),null==o||o()},className:"react-flow__controls-zoomin",title:b["controls.zoomIn.ariaLabel"],"aria-label":b["controls.zoomIn.ariaLabel"],disabled:v,children:U.jsx(Vl,{})}),U.jsx(Vh,{onClick:()=>{k(),null==s||s()},className:"react-flow__controls-zoomout",title:b["controls.zoomOut.ariaLabel"],"aria-label":b["controls.zoomOut.ariaLabel"],disabled:x,children:U.jsx(Vu,{})})]}),n&&U.jsx(Vh,{className:"react-flow__controls-fitview",onClick:()=>{_(a),null==l||l()},title:b["controls.fitView.ariaLabel"],"aria-label":b["controls.fitView.ariaLabel"],children:U.jsx(Vc,{})}),i&&U.jsx(Vh,{className:"react-flow__controls-interactive",onClick:()=>{f.setState({nodesDraggable:!g,nodesConnectable:!g,elementsSelectable:!g}),null==u||u(!g)},title:b["controls.interactive.ariaLabel"],"aria-label":b["controls.interactive.ariaLabel"],children:g?U.jsx(Vp,{}):U.jsx(Vd,{})}),d]})}Vf.displayName="Controls";let Vg=(0,I.memo)(Vf),Vx=(0,I.memo)(function({id:e,x:t,y:n,width:i,height:a,style:o,color:s,strokeColor:l,strokeWidth:u,className:c,borderRadius:d,shapeRendering:p,selected:h,onClick:m}){let{background:f,backgroundColor:g}=o||{};return U.jsx("rect",{className:jM(["react-flow__minimap-node",{selected:h},c]),x:t,y:n,rx:d,ry:d,width:i,height:a,style:{fill:s||f||g,stroke:l,strokeWidth:u},shapeRendering:p,onClick:m?t=>m(t,e):void 0})}),Vv=e=>e.nodes.map(e=>e.id),Vy=e=>e instanceof Function?e:()=>e,Vb=(0,I.memo)(function({id:e,nodeColorFunc:t,nodeStrokeColorFunc:n,nodeClassNameFunc:i,nodeBorderRadius:a,nodeStrokeWidth:o,shapeRendering:s,NodeComponent:l,onClick:u}){let{node:c,x:d,y:p,width:h,height:m}=U9(t=>{let{internals:n}=t.nodeLookup.get(e),i=n.userNode,{x:a,y:o}=n.positionAbsolute,{width:s,height:l}
548=HK(i);return{node:i,x:a,y:o,width:s,height:l}},U3);return c&&!c.hidden&&HX(c)?U.jsx(l,{x:d,y:p,width:h,height:m,style:c.style,selected:!!c.selected,className:i(c),color:t(c),borderRadius:a,strokeColor:n(c),strokeWidth:o,shapeRendering:s,onClick:u,id:c.id}):null});var Vw=(0,I.memo)(function({nodeStrokeColor:e,nodeColor:t,nodeClassName:n="",nodeBorderRadius:i=5,nodeStrokeWidth:a,nodeComponent:o=Vx,onClick:s}){let l=U9(Vv,U3),u=Vy(t),c=Vy(e),d=Vy(n),p=typeof window>"u"||window.chrome?"crispEdges":"geometricPrecision";return U.jsx(U.Fragment,{children:l.map(e=>U.jsx(Vb,{id:e,nodeColorFunc:u,nodeStrokeColorFunc:c,nodeClassNameFunc:d,nodeBorderRadius:i,nodeStrokeWidth:a,NodeComponent:o,onClick:s,shapeRendering:p},e))})});let Vk=e=>!e.hidden,V_=e=>{let t={x:-e.transform[0]/e.transform[2],y:-e.transform[1]/e.transform[2],width:e.width/e.transform[2],height:e.height/e.transform[2]};return{viewBB:t,boundingRect:e.nodeLookup.size>0?HO(Hb(e.nodeLookup,{filter:Vk}),t):t,rfId:e.rfId,panZoom:e.panZoom,translateExtent:e.translateExtent,flowWidth:e.width,flowHeight:e.height,ariaLabelConfig:e.ariaLabelConfig}};function VT({style:e,className:t,nodeStrokeColor:n,nodeColor:i,nodeClassName:a="",nodeBorderRadius:o=5,nodeStrokeWidth:s,nodeComponent:l,bgColor:u,maskColor:c,maskStrokeColor:d,maskStrokeWidth:p,position:h="bottom-right",onClick:m,onNodeClick:f,pannable:g=!1,zoomable:x=!1,ariaLabel:v,inversePan:b,zoomStep:w=1,offsetScale:k=5}){let _=Ge(),T=(0,I.useRef)(null),{boundingRect:E,viewBB:A,rfId:C,panZoom:N,translateExtent:M,flowWidth:P,flowHeight:R,ariaLabelConfig:D}=U9(V_,U3),L=(null==e?void 0:e.width)??200,O=(null==e?void 0:e.height)??150,B=Math.max(E.width/L,E.height/O),j=B*L,z=B*O,F=k*B,H=E.x-(j-E.width)/2-F,G=E.y-(z-E.height)/2-F,q=j+2*F,V=z+2*F,W=`react-flow__minimap-desc-${C}`,Y=(0,I.useRef)(0),K=(0,I.useRef)();Y.current=B,(0,I.useEffect)(()=>{if(T.current&&N)return K.current=function({domNode:e,panZoom:t,getTransform:n,getViewScale:i}){let a=zh(e);return{update:function({translateExtent:e,width:o,height:s,zoomStep:l=1,pannable:u=!0,zoomable:c=!0,inversePan:d=!1}){let p=[0,0],h=Hs().on("start",e=>{("mousedown"===e.sourceEvent.type||"touchstart"===e.sourceEvent.type)&&(p=[e.sourceEvent.clientX??e.sourceEvent.touches[0].clientX,e.sourceEvent.clientY??e.sourceEvent.touches[0].clientY])}).on("zoom",u?a=>{let l=n();if("mousemove"!==a.sourceEvent.type&&"touchmove"!==a.sourceEvent.type||!t)return;let u=[a.sourceEvent.clientX??a.sourceEvent.touches[0].clientX,a.sourceEvent.clientY??a.sourceEvent.touches[0].clientY],c=[u[0]-p[0],u[1]-p[1]];p=u;let h=i()*Math.max(l[2],Math.log(l[2]))*(d?-1:1),m={x:l[0]-c[0]*h,y:l[1]-c[1]*h};t.setViewportConstrained({x:m.x,y:m.y,zoom:l[2]},[[0,0],[o,s]],e)}:null).on("zoom.wheel",c?e=>{if("wheel"!==e.sourceEvent.type||!t)return;let i=n(),a=e.sourceEvent.ctrlKey&&HW()?10:1,o=-e.sourceEvent.deltaY*(1===e.sourceEvent.deltaMode?.05:e.sourceEvent.deltaMode?1:.002)*l,s=i[2]*Math.pow(2,o*a);t.scaleTo(s)}:null);a.call(h,{})},destroy:function(){a.on("zoom",null)},pointer:zm}}({domNode:T.current,panZoom:N,getTransform:()=>_.getState().transform,getViewScale:()=>Y.current}),()=>{var e;null==(e=K.current)||e.destroy()}},[N]),(0,I.useEffect)(()=>{var e;null==(e=K.current)||e.update({translateExtent:M,width:P,height:R,inversePan:b,pannable:g,zoomStep:w,zoomable:x})},[g,x,b,w,M,P,R]);let X=m?e=>{var t;let[n,i]=(null==(t=K.current)?void 0:t.pointer(e))||[0,0];m(e,{x:n,y:i})}:void 0,Q=f?(0,I.useCallback)((e,t)=>{f(e,_.getState().nodeLookup.get(t).internals.userNode)},[]):void 0,Z=v??D["minimap.ariaLabel"];return U.jsx(Gu,{position:h,style:{...e,"--xy-minimap-background-color-props":"string"==typeof u?u:void 0,"--xy-minimap-mask-background-color-props":"string"==typeof c?c:void 0,"--xy-minimap-mask-stroke-color-props":"string"==typeof d?d:void 0,"--xy-minimap-mask-stroke-width-props":"number"==typeof p?p*B:void 0,"--xy-minimap-node-background-color-props":"string"==typeof i?i:void 0,"--xy-minimap-node-stroke-color-props":"string"==typeof n?n:void 0,"--xy-minimap-node-stroke-width-props":"number"==typeof s?s:void 0},className:jM(["react-flow__minimap",t]),"data-testid":"rf__minimap",children:U.jsxs("svg",{width:L,height:O,viewBox:`${H} ${G} ${q} ${V}`,className:"react-flow__minimap-svg",role:"img","aria-labelledby":W,ref:T,onClick:X,children:[Z&&U.jsx("title",{id:W,children:Z}),U.jsx(Vw,{onClick:Q,nodeColor:i,nodeStrokeColor:n,nodeBorderRadius:o,nodeClassName:a,nodeStrokeWidth:s,nodeComponent:l}),U.jsx("path",{className:"react-flow__minimap-mask",d:`M${H-F},${G-F}h${q+2*F}v${V+2*F}h${-q-2*F}z
549        M${A.x},${A.y}h${A.width}v${A.height}h${-A.width}z`,fillRule:"evenodd",pointerEvents:"none"})]})})}VT.displayName="MiniMap",(0,I.memo)(VT);let VE=e=>t=>e?`${Math.max(1/t.transform[2],1)}`:void 0,VS={[T.Line]:"right",[T.Handle]:"bottom-right"};(0,I.memo)(function({nodeId:e,position:t,variant:n=T.Handle,className:i,style:a,children:o,color:s,minWidth:l=10,minHeight:u=10,maxWidth:c=Number.MAX_VALUE,maxHeight:d=Number.MAX_VALUE,keepAspectRatio:p=!1,resizeDirection:h,autoScale:m=!0,shouldResize:f,onResizeStart:g,onResize:x,onResizeEnd:v}
549){let b=G3(),w="string"==typeof e?e:b,k=Ge(),_=(0,I.useRef)(null),E=n===T.Handle,A=U9((0,I.useCallback)(VE(E&&m),[E,m]),U3),C=(0,I.useRef)(null),N=t??VS[n];(0,I.useEffect)(()=>{if(!(!_.current||!w))return C.current||(C.current=function({domNode:e,nodeId:t,getStoreItems:n,onChange:i,onEnd:a}){let o=zh(e),s={controlDirection:Uz("bottom-right"),boundaries:{minWidth:0,minHeight:0,maxWidth:Number.MAX_VALUE,maxHeight:Number.MAX_VALUE},resizeDirection:void 0,keepAspectRatio:!1};return{update:function({controlPosition:e,boundaries:l,keepAspectRatio:u,resizeDirection:c,onResizeStart:d,onResize:p,onResizeEnd:h,shouldResize:m}){let f={...UG},g={...Uq};s={boundaries:l,resizeDirection:c,keepAspectRatio:u,controlDirection:Uz(e)};let x,v=null,b=[],w,k,_,T=!1,E=zA().on("start",e=>{var i;let{nodeLookup:a,transform:o,snapGrid:s,snapToGrid:l,nodeOrigin:u,paneDomNode:c}=n();if(!(x=a.get(t)))return;v=(null==c?void 0:c.getBoundingClientRect())??null;let{xSnapped:p,ySnapped:h}=H$(e.sourceEvent,{transform:o,snapGrid:s,snapToGrid:l,containerBounds:v});for(let[e,n]of(g={...f={width:x.measured.width??0,height:x.measured.height??0,x:x.position.x??0,y:x.position.y??0},pointerX:p,pointerY:h,aspectRatio:f.width/f.height},w=void 0,x.parentId&&("parent"===x.extent||x.expandParent)&&(k=(w=a.get(x.parentId))&&"parent"===x.extent?[[0,0],[(i=w).measured.width,i.measured.height]]:void 0),b=[],_=void 0,a))if(n.parentId===t&&(b.push({id:e,position:{...n.position},extent:n.extent}),"parent"===n.extent||n.expandParent)){let e=function(e,t,n){let i=t.position.x+e.position.x,a=t.position.y+e.position.y,o=e.measured.width??0,s=e.measured.height??0,l=n[0]*o,u=n[1]*s;return[[i-l,a-u],[i+o-l,a+s-u]]}(n,x,n.origin??u);_=_?[[Math.min(e[0][0],_[0][0]),Math.min(e[0][1],_[0][1])],[Math.max(e[1][0],_[1][0]),Math.max(e[1][1],_[1][1])]]:e}null==d||d(e,{...f})}).on("drag",e=>{let{transform:t,snapGrid:a,snapToGrid:o,nodeOrigin:l}=n(),u=H$(e.sourceEvent,{transform:t,snapGrid:a,snapToGrid:o,containerBounds:v}),c=[];if(!x)return;let{x:d,y:h,width:E,height:A}=f,C={},N=x.origin??l,{width:I,height:M,x:P,y:R}=function(e,t,n,i,a,o,s,l){var u,c,d,p;let{affectsX:h,affectsY:m}=t,{isHorizontal:f,isVertical:g}=t,x=f&&g,{xSnapped:v,ySnapped:b}=n,{minWidth:w,maxWidth:k,minHeight:_,maxHeight:T}=i,{x:E,y:A,width:C,height:N,aspectRatio:I}=e,M=Math.floor(f?v-e.pointerX:0),P=Math.floor(g?b-e.pointerY:0),R=C+(h?-M:M),D=N+(m?-P:P),L=-o[0]*C,O=-o[1]*N,B=UU(R,w,k),j=UU(D,_,T);if(s){let e=0,t=0;h&&M<0?e=UF(E+M+L,s[0][0]):!h&&M>0&&(e=UH(E+R+L,s[1][0])),m&&P<0?t=UF(A+P+O,s[0][1]):!m&&P>0&&(t=UH(A+D+O,s[1][1])),B=Math.max(B,e),j=Math.max(j,t)}if(l){let e=0,t=0;h&&M>0?e=UH(E+M,l[0][0]):!h&&M<0&&(e=UF(E+R,l[1][0])),m&&P>0?t=UH(A+P,l[0][1]):!m&&P<0&&(t=UF(A+D,l[1][1])),B=Math.max(B,e),j=Math.max(j,t)}a&&(f&&(B=Math.max(B,UU(R/I,_,T)*I),s&&(B=Math.max(B,(h||m)&&(!h||m||!x)?UF(A+O+(h?M:-M)/I,s[0][1])*I:UH(A+O+R/I,s[1][1])*I)),l&&(B=Math.max(B,(h||m)&&(!h||m||!x)?UH(A+(h?M:-M)/I,l[0][1])*I:UF(A+R/I,l[1][1])*I))),g&&(j=Math.max(j,UU(D*I,w,k)/I
549),s&&(j=Math.max(j,(h||m)&&(!m||h||!x)?UF(E+(m?P:-P)*I+L,s[0][0])/I:UH(E+D*I+L,s[1][0])/I)),l&&(j=Math.max(j,(h||m)&&(!m||h||!x)?UH(E+(m?P:-P)*I,l[0][0])/I:UF(E+D*I,l[1][0])/I)))),P+=P<0?j:-j,M+=M<0?B:-B,a&&(x?R>D*I?P=((u=h,c=m,u?!c:c)?-M:M)/I:M=((d=h,p=m,d?!p:p)?-P:P)*I:f?(P=M/I,m=h):(M=P*I,h=m));let z=h?E+M:E,F=m?A+P:A;return{width:C+(h?-M:M),height:N+(m?-P:P),x:o[0]*M*(h?-1:1)+z,y:o[1]*P*(m?-1:1)+F}}(g,s.controlDirection,u,s.boundaries,s.keepAspectRatio,N,k,_),D=I!==E,L=M!==A,O=P!==d&&D,B=R!==h&&L;if(!O&&!B&&!D&&!L)return;if((O||B||1===N[0]||1===N[1])&&(C.x=O?P:f.x,C.y=B?R:f.y,f.x=C.x,f.y=C.y,b.length>0)){let e=P-d,t=R-h;for(let n of b)n.position={x:n.position.x-e+N[0]*(I-E),y:n.position.y-t+N[1]*(M-A)},c.push(n)}if((D||L)&&(C.width=D&&(!s.resizeDirection||"horizontal"===s.resizeDirection)?I:f.width,C.height=L&&(!s.resizeDirection||"vertical"===s.resizeDirection)?M:f.height,f.width=C.width,f.height=C.height),w&&x.expandParent){let e=N[0]*(C.width??0);C.x&&C.x<e&&(f.x=e,g.x=g.x-(C.x-e));let t=N[1]*(C.height??0);C.y&&C.y<t&&(f.y=t,g.y=g.y-(C.y-t))}let j=function({width:e,prevWidth:t,height:n,prevHeight:i,affectsX:a,affectsY:o}){let s=e-t,l=n-i,u=[s>0?1:s<0?-1:0,l>0?1:l<0?-1:0];return s&&a&&(u[0]=-1*u[0]),l&&o&&(u[1]=-1*u[1]),u}({width:f.width,prevWidth:E,height:f.height,prevHeight:A,affectsX:s.controlDirection.affectsX,affectsY:s.controlDirection.affectsY}),z={...f,direction:j};(null==m?void 0:m(e,z))!==!1&&(T=!0,null==p||p(e,z),i(C,c))}).on("end",e=>{T&&(null==h||h(e,{...f}),null==a||a({...f}),T=!1)});o.call(E)},destroy:function(){o.on(".drag",null)}}}({domNode:_.current,nodeId:w,getStoreItems:()=>
549{let{nodeLookup:e,transform:t,snapGrid:n,snapToGrid:i,nodeOrigin:a,domNode:o}=k.getState();return{nodeLookup:e,transform:t,snapGrid:n,snapToGrid:i,nodeOrigin:a,paneDomNode:o}},onChange:(e,t)=>{let{triggerNodeChanges:n,nodeLookup:i,parentLookup:a,nodeOrigin:o}=k.getState(),s=[],l={x:e.x,y:e.y},u=i.get(w);if(u&&u.expandParent&&u.parentId){let t=u.origin??o,n=e.width??u.measured.width??0,c=e.height??u.measured.height??0,d=Uw([{id:u.id,parentId:u.parentId,rect:{width:n,height:c,...HQ({x:e.x??u.position.x,y:e.y??u.position.y},{width:n,height:c},u.parentId,i,t)}}],i,a,o);s.push(...d),l.x=e.x?Math.max(t[0]*n,e.x):void 0,l.y=e.y?Math.max(t[1]*c,e.y):void 0}if(void 0!==l.x&&void 0!==l.y){let e={id:w,type:"position",position:{...l}};s.push(e)}if(void 0!==e.width&&void 0!==e.height){let t={id:w,type:"dimensions",resizing:!0,setAttributes:!h||("horizontal"===h?"width":"height"),dimensions:{width:e.width,height:e.height}};s.push(t)}for(let e of t){let t={...e,type:"position"};s.push(t)}n(s)},onEnd:({width:e,height:t})=>{k.getState().triggerNodeChanges([{id:w,type:"dimensions",resizing:!1,dimensions:{width:e,height:t}}])}})),C.current.update({controlPosition:N,boundaries:{minWidth:l,minHeight:u,maxWidth:c,maxHeight:d},keepAspectRatio:p,resizeDirection:h,onResizeStart:g,onResize:x,onResizeEnd:v,shouldResize:f}),()=>{var e;null==(e=C.current)||e.destroy()}},[N,l,u,c,d,p,g,x,v,f]);let M=N.split("-");return U.jsx("div",{className:jM(["react-flow__resize-control","nodrag",...M,n,i]),ref:_,style:{...a,scale:A,...s&&{[E?"backgroundColor":"borderColor"]:s}},children:o})});let VA=e=>{var t;return null==(t=e.domNode)?void 0:t.querySelector(".react-flow__renderer")};function VC({children:e}){let t=U9(VA);return t?(0,P.createPortal)(e,t):null}let VN=(e,t)=>(null==e?void 0:e.internals.positionAbsolute.x)!==(null==t?void 0:t.internals.positionAbsolute.x)||(null==e?void 0:e.internals.positionAbsolute.y)!==(null==t?void 0:t.internals.positionAbsolute.y)||(null==e?void 0:e.measured.width)!==(null==t?void 0:t.measured.width)||(null==e?void 0:e.measured.height)!==(null==t?void 0:t.measured.height)||(null==e?void 0:e.selected)!==(null==t?void 0:t.selected)||(null==e?void 0:e.internals.z)!==(null==t?void 0:t.internals.z),VI=(e,t)=>{if(e.size!==t.size)return!1;for(let[n,i]of e)if(VN(i,t.get(n)))return!1;return!0},VM=e=>({x:e.transform[0],y:e.transform[1],zoom:e.transform[2],selectedNodesCount:e.nodes.filter(e=>e.selected).length});function VP({nodeId:e,children:t,className:n,style:i,isVisible:a,position:o=_.Top,offset:s=10,align:l="center",...u}){var c;let d=G3(),p=U9((0,I.useCallback)(t=>(Array.isArray(e)?e:[e||d||""]).reduce((e,n)=>{let i=t.nodeLookup.get(n);return i&&e.set(i.id,i),e},new Map),[e,d]),VI),{x:h,y:m,zoom:f,selectedNodesCount:g}=U9(VM,U3);if(!("boolean"==typeof a?a:1===p.size&&(null==(c=p.values().next().value)?void 0:c.selected)&&1===g)||!p.size)return null;let x=Hb(p),v=Array.from(p.values()),b=Math.max(...v.map(e=>e.internals.z+1)),w={position:"absolute",transform:function(e,t,n,i,a){let o=.5;"start"===a?o=0:"end"===a&&(o=1);let s=[(e.x+e.width*o)*t.zoom+t.x,e.y*t.zoom+t.y-i],l=[-100*o,-100];switch(n){case _.Right:s=[(e.x+e.width)*t.zoom+t.x+i,(e.y+e.height*o)*t.zoom+t.y],l=[0,-100*o];break;case _.Bottom:s[1]=(e.y+e.height)*t.zoom+t.y+i,l[1]=0;break;case _.Left:s=[e.x*t.zoom+t.x-i,(e.y+e.height*o)*t.zoom+t.y],l=[-100,-100*o]}return`translate(${s[0]}px, ${s[1]}px) translate(${l[0]}%, ${l[1]}%)`}(x,{x:h,y:m,zoom:f},o,s,l),zIndex:b,...i};return U.jsx(VC,{children:U.jsx("div",{style:w,className:jM(["react-flow__node-toolbar",n]),...u,"data-id":v.reduce((e,t)=>`${e}${t.id} `,"").trim(),children:t})})}let VR=({children:e,...t})=>U.jsxs(Ve,{deleteKeyCode:["Backspace","Delete"],fitView:!0,panOnDrag:!1,panOnScroll:!0,selectionOnDrag:!0,zoomOnDoubleClick:!1,...t,children:[U.jsx(Vs,{bgColor:"var(--sidebar)"}),e]}),VD=({className:e,...t})=>U.jsx(Gu,{className:t8("m-4 overflow-hidden rounded-md border bg-card p-1",e),...t});function VL({className:e,...t}){return U.jsx("div",{"data-slot":"card",className:t8("bg-card text-card-foreground flex flex-col gap-6 rounded-xl border py-6 shadow-sm",e),...t})}function VO({className:e,...t}){return U.jsx("div",{"data-slot":"card-header",className:t8("@container/card-header grid auto-rows-min grid-rows-[auto_auto] items-start gap-2 px-6 has-data-[slot=card-action]:grid-cols-[1fr_auto] [.border-b]:pb-6",e),...t})}function VB({className:e,...t}){return U.jsx("div",{"data-slot":"card-title",className:t8("leading-none font-semibold",e),...t})}function Vj({className:e,...t}){return U.jsx("div",{"data-slot":"card-description",className:t8("text-muted-foreground text-sm",e),...t})}function Vz({className:e,...t}){return U.jsx("div",{"data-slot":"card-action",className:t8("col-start-2 row-span-2 row-start-1 self-start justify-self-end",e),...t})}function VF({className:e,...t}){return U.jsx("div",{"data-slot":"card-content",className:t8("px-6",e),...t})}function VH({className:e,...t}){return U.jsx("div",{"data-slot":"card-footer",className:t8("flex items-center px-6 [.border-t]:pt-6",e),...t})}let VU=({handles:e,className:t,...n})=>U.jsxs(VL,{className:t8("node-container relative size-full h-auto w-sm gap-0 rounded-md p-0",t),...n,children:[e.target&&U.jsx(G8,{position:_.Left,type:"target"}),e.source&&U.jsx(G8,{position:_.Right,type:"source"}),n.children]}),VG=({className:e,...t})=>U.jsx(VO,{className:t8("gap-0.5 rounded-t-md border-b bg-secondary p-3!",e),...t}),Vq=e=>U.jsx(VB,{...e}),VV=e=>U.jsx(Vj,{...e}),VW=e=>U.jsx(Vz,{...e}),VY=({className:e,...t})=>U.jsx(VF,{className:t8("p-3",e),...t}),VK=({className:e,...t})=>U.jsx(VH,{className:t8("rounded-b-md border-t bg-secondary p-3!",e),...t}),VX=(e,t)=>{var n,i;let a=t===_.Left?"target":"source",o=null==(i=null==(n=e.internals.handleBounds)?void 0:n[a])?void 0:i.find(e=>e.position===t);if(!o)return[0,0];let s=o.width/2,l=o.height/2;switch(t){case _.Left:s=0;break;case _.Right:s=o.width;break;case _.Top:l=0;break;case _.Bottom:l=o.height;break;default:throw Error(`Invalid handle position: ${t}`)}return[e.internals.positionAbsolute.x+o.x+s,e.internals.positionAbsolute.y+o.y+l]},VQ=(e,t)=>{let n=_.Right,[i,a]=VX(e,n),o=_.Left,[s,l]=VX(t,o);return{sx:i,sy:a,tx:s,ty:l,sourcePos:n,targetPos:o}},VZ={Temporary:({id:e,sourceX:t,sourceY:n,targetX:i,targetY:a,sourcePosition:o,targetPosition:s})=>{let[l]=qw({sourceX:t,sourceY:n,sourcePosition:o,targetX:i,targetY:a,targetPosition:s});return U.jsx(qy,{className:"stroke-1 stroke-ring",id:e,path:l,style:{strokeDasharray:"5, 5"}})},Animated:({id:e,source:t,target:n,markerEnd:i,style:a})=>{let o=Vt(t),s=Vt(n);if(!(o&&s))return null;let{sx:l,sy:u,tx:c,ty:d,sourcePos:p,targetPos:h}=VQ(o,s),[m]=H9({sourceX:l,sourceY:u,sourcePosition:p,targetX:c,targetY:d,targetPosition:h});return U.jsxs(U.Fragment,{children:[U.jsx(qy,{id:e,markerEnd:i,path:m,style:a}),U.jsx("circle",{fill:"var(--primary)",r:"4",children:U.jsx("animateMotion",{dur:"2s",path:m,repeatCount:"indef
549inite"})})]})}},V$=({className:e,...t})=>U.jsx(Vg,{className:t8("gap-px overflow-hidden rounded-md border bg-card p-1 shadow-none!","[&>button]:rounded-md [&>button]:border-none! [&>button]:bg-transparent! [&>button]:hover:bg-secondary!",e),...t});var VJ=["a","button","div","form","h2","h3","img","input","label","li","nav","ol","p","select","span","svg","ul"].reduce((e,t)=>{let n=eK(`Primitive.${t}`),i=I.forwardRef((e,i)=>{let{asChild:a,...o}=e,s=a?n:t;return"u">typeof window&&(window[Symbol.for("radix-ui")]=!0),U.jsx(s,{...o,ref:i})});return i.displayName=`Primitive.${t}`,{...e,[t]:i}},{}),V0="Progress",[V1]=function(e,t=[]){let n=[],i=()=>{let t=n.map(e=>I.createContext(e));return function(n){let i=(null==n?void 0:n[e])||t;return I.useMemo(()=>({[`__scope${e}`]:{...n,[e]:i}}),[n,i])}};return i.scopeName=e,[function(t,i){let a=I.createContext(i);a.displayName=t+"Context";let o=n.length;n=[...n,i];let s=t=>{var n;let{scope:i,children:s,...l}=t,u=(null==(n=null==i?void 0:i[e])?void 0:n[o])||a,c=I.useMemo(()=>l,Object.values(l));return U.jsx(u.Provider,{value:c,children:s})};return s.displayName=t+"Provider",[s,function(n,s){var l;let u=(null==(l=null==s?void 0:s[e])?void 0:l[o])||a,c=I.useContext(u);if(c)return c;if(void 0!==i)return i;throw Error(`\`${n}\` must be used within \`${t}\``)}]},function(...e){let t=e[0];if(1===e.length)return t;let n=()=>{let n=e.map(e=>({useScope:e(),scopeName:e.scopeName}));return function(e){let i=n.reduce((t,{useScope:n,scopeName:i})=>{let a=n(e)[`__scope${i}`];return{...t,...a}},{});return I.useMemo(()=>({[`__scope${t.scopeName}`]:i}),[i])}};return n.scopeName=t.scopeName,n}(i,...t)]}(V0),[V2,V4]=V1(V0),V5=I.forwardRef((e,t)=>{var n,i;let{__scopeProgress:a,value:o=null,max:s,getValueLabel:l=V7,...u}=e;(s||0===s)&&!We(s)&&console.error((n=`${s}`,`Invalid prop \`max\` of value \`${n}\` supplied to \`Progress\`. Only numbers greater than 0 are valid max values. Defaulting to \`100\`.`));let c=We(s)?s:100;null===o||Wt(o,c)||console.error((i=`${o}`,`Invalid prop \`value\` of value \`${i}\` supplied to \`Progress\`. The \`value\` prop must be:
550  - a positive number
551  - less than the value passed to \`max\` (or 100 if no \`max\` prop is set)
552  - \`null\` or \`undefined\` if the progress is indeterminate.
553
554Defaulting to \`null\`.`));let d=Wt(o,c)?o:null,p=V9(d)?l(d,c):void 0;return U.jsx(V2,{scope:a,value:d,max:c,children:U.jsx(VJ.div,{"aria-valuemax":c,"aria-valuemin":0,"aria-valuenow":V9(d)?d:void 0,"aria-valuetext":p,role:"progressbar","data-state":V8(d,c),"data-value":d??void 0,"data-max":c,...u,ref:t})})});V5.displayName=V0;var V3="ProgressIndicator",V6=I.forwardRef((e,t)=>{let{__scopeProgress:n,...i}=e,a=V4(V3,n);return U.jsx(VJ.div,{"data-state":V8(a.value,a.max),"data-value":a.value??void 0,"data-max":a.max,...i,ref:t})});function V7(e,t){return`${Math.round(e/t*100)}%`}function V8(e,t){return null==e?"indeterminate":e===t?"complete":"loading"}function V9(e){return"number"==typeof e}function We(e){return V9(e)&&!isNaN(e)&&e>0}function Wt(e,t){return V9(e)&&!isNaN(e)&&e<=t&&e>=0}function Wn({className:e,value:t,...n}){return U.jsx(V5,{"data-slot":"progress",className:t8("bg-primary/20 relative h-2 w-full overflow-hidden rounded-full",e),...n,children:U.jsx(V6,{"data-slot":"progress-indicator",className:"bg-primary h-full w-full flex-1 transition-all",style:{transform:`translateX(-${100-(t||0)}%)`}})})}function Wr(e){if(!e)return{input:0,output:0,total:0};if("number"==typeof e.input&&"number"==typeof e.output)return{input:e.input,output:e.output,total:e.total??e.input+e.output};let t=[e.input_tokens,e.prompt_tokens,e.promptTokens,e.inputTokens].filter(e=>"number"==typeof e),n=[e.output_tokens,e.completion_tokens,e.completionTokens,e.outputTokens].filter(e=>"number"==typeof e),i=[e.total_tokens,e.totalTokens,e.totalTokens].filter(e=>"number"==typeof e),a=t[0]??0,o=n[0]??0,s=i[0];return void 0!==s?{input:a,output:o,total:s}:{input:a,output:o,total:a+o}}function Wi(e,t){var n,i;if(!t)return;let a=e.trim().toLowerCase(),o=[a];if(a.includes("/")){let e=a.indexOf("/"),t=a.slice(0,e),n=a.slice(e+1);o.push(`${t}:${n}`),o.push(`${t}:${n.replace(/(\d)\.(\d)/g,"$1-$2")}`)}if(a.includes(":")){let e=a.indexOf(":"),t=a.slice(0,e),n=a.slice(e+1);o.push(`${t}:${n.replace(/(\d)\.(\d)/g,"$1-$2")}`)}for(let e of(a.includes(":")||a.includes("/")||o.push(a.replace(/(\d)\.(\d)/g,"$1-$2")),o)){let a=e.indexOf(":");if(a>0){let i=e.slice(0,a),o=e.slice(a+1);for(let[e,a]of Wo(t))if(o){let t=null==(n=null==a?void 0:a.models)?void 0:n[o];if(t&&(e===i||i.length>0))return Wa(e,o,t,a)}}for(let[n,a]of Wo(t)){let t=null==(i=null==a?void 0:a.models)?void 0:i[e];if(t)return Wa(n,e,t,a)}}}function Wa(e,t,n,i){var a,o,s,l,u,c,d;let p=Array.isArray(null==(a=null==n?void 0:n.modalities)?void 0:a.input)?null==(o=n.modalities)?void 0:o.input
554:[],h=Array.isArray(null==(s=null==n?void 0:n.modalities)?void 0:s.output)?null==(l=n.modalities)?void 0:l.output:[],m=p.includes("text"),f=p.includes("image"),g=h.includes("text"),x="number"==typeof(null==(u=null==n?void 0:n.limit)?void 0:u.context)?n.limit.context:void 0,v="number"==typeof(null==(c=null==n?void 0:n.limit)?void 0:c.input)?n.limit.input:void 0,b="number"==typeof(null==(d=null==n?void 0:n.limit)?void 0:d.output)?n.limit.output:void 0,w=null!=n&&n.cost&&("number"==typeof n.cost.input||"number"==typeof n.cost.output||"number"==typeof n.cost.reasoning||"number"==typeof n.cost.cache_read||"number"==typeof n.cost.cache_write)?{..."number"==typeof n.cost.input?{inputPerMTokens:n.cost.input}:{},..."number"==typeof n.cost.output?{outputPerMTokens:n.cost.output}:{},..."number"==typeof n.cost.reasoning?{reasoningPerMTokens:n.cost.reasoning}:{},..."number"==typeof n.cost.cache_read?{cacheReadPerMTokens:n.cost.cache_read}:{},..."number"==typeof n.cost.cache_write?{cacheWritePerMTokens:n.cost.cache_write}:{}}:void 0;return{id:`${e}:${t}`,provider:e,vendorId:t,displayName:(null==n?void 0:n.name)||t,family:t,status:"stable",context:Object.fromEntries(Object.entries({combinedMax:x,inputMax:v,outputMax:b}).filter(([,e])=>"number"==typeof e)),modalities:m||g||f?{...m&&{textIn:!0},...g&&{textOut:!0},...f&&{imageIn:!0}}:void 0,pricing:w,pricingSource:"models.dev",aliases:[`${e}/${t}`],releasedAt:(null==n?void 0:n.release_date)||void 0,source:(null==i?void 0:i.doc)||i.docs||"https://models.dev",contextSource:(null==i?void 0:i.doc)||i.docs||void 0,verifiedAt:(null==n?void 0:n.last_updated)||void 0}}function*Wo(e){if(null!=e&&e.models){yield[e.id||"provider",e];return}for(let[t,n]of Object.entries(e))yield[t,n]}V6.displayName=V3;let Ws={alibaba:{id:"alibaba",name:"Alibaba",api:"https://dashscope-intl.aliyuncs.com/compatible-mode/v1",npm:"@ai-sdk/openai-compatible",doc:"https://www.alibabacloud.com/help/en/model-studio/models",env:["DASHSCOPE_API_KEY"],models:{"qwen3-coder-plus":{id:"qwen3-coder-plus",name:"Qwen3 Coder Plus",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:5},limit:{context:1048576,output:65536}}}},"alibaba-cn":{id:"alibaba-cn",name:"Alibaba (China)",api:"https://dashscope.aliyuncs.com/compatible-mode/v1",npm:"@ai-sdk/openai-compatible",doc:"https://www.alibabacloud.com/help/en/model-studio/models",env:["DASHSCOPE_API_KEY"],models:{"qwen3-coder-plus":{id:"qwen3-coder-plus",name:"Qwen3 Coder Plus",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:5},limit:{context:1048576,output:65536}}}},"amazon-bedrock":{id:"amazon-bedrock",name:"Amazon Bedrock",npm:"@ai-sdk/amazon-bedrock",doc:"https://docs.aws.amazon.com/bedrock/latest/userguide/models-supported.html",env:["AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_REGION"],models:{"anthropic.claude-3-5-sonnet-20241022-v2:0":{id:"anthropic.claude-3-5-sonnet-20241022-v2:0",name:"Claude Sonnet 3.5 v2",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:8192}},"cohere.command-light-text-v14":{id:"cohere.command-light-text-v14",name:"Command Light",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-08",release_date:"2023-11-01",last_updated:"2023-11-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.3,output:.6},limit:{context:4096,output:4096}},"anthropic.claude-opus-4-1-20250805-v1:0":{id:"anthropic.claude-opus-4-1-20250805-v1:0",name:"Claude Opus 4.1",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"meta.llama3-1-70b-instruct-v1:0":{id:"meta.llama3-1-70b-instruct-v1:0",name:"Llama 3.1 70B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-0
5547-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.72,output:.72},limit:{context:128e3,output:4096}},"anthropic.claude-3-haiku-20240307-v1:0":{id:"anthropic.claude-3-haiku-20240307-v1:0",name:"Claude Haiku 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-02",release_date:"2024-03-13",last_updated:"2024-03-13",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.25,output:1.25},limit:{context:2e5,output:4096}},"meta.llama3-2-3b-instruct-v1:0":{id:"meta.llama3-2-3b-instruct-v1:0",name:"Llama 3.2 3B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-09-25",last_updated:"2024-09-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.15},limit:{context:131e3,output:4096}},"anthropic.claude-3-opus-20240229-v1:0":{id:"anthropic.claude-3-opus-20240229-v1:0",name:"Claude Opus 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-08",release_date:"2024-02-29",last_updated:"2024-02-29",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75},limit:{context:2e5,output:4096}},"cohere.command-text-v14":{id:"cohere.command-text-v14",name:"Command",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-08",release_date:"2023-11-01",last_updated:"2023-11-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.5,output:2},limit:{context:4096,output:4096}},"meta.llama4-scout-17b-instruct-v1:0":{id:"meta.llama4-scout-17b-instruct-v1:0",name:"Llama 4 Scout 17B Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.17,output:.66},limit:{context:35e5,output:16384}},"amazon.nova-micro-v1:0":{id:"amazon.nova-micro-v1:0",name:"Nova Micro",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-12-03",last_updated:"2024-12-03",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.035,output:.14,cache_read:.00875},limit:{context:128e3,output:8192}},"amazon.nova-premier-v1:0":{id:"amazon.nova-premier-v1:0",name:"Nova Premier",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-12-03",last_updated:"2024-12-03",modalities:{input:["text","image","video"],output:["text"]},open_weights:!1,cost:{input:2.5,output:12.5},limit:{context:1e6,output:16384}},"anthropic.claude-v2":{id:"anthropic.claude-v2",name:"Claude 2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-08",release_date:"2023-07-11",last_updated:"2023-07-11",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:8,output:24},limit:{context:1e5,output:4096}},"anthropic.claude-3-7-sonnet-20250219-v1:0":{id:"anthropic.claude-3-7-sonnet-20250219-v1:0",name:"Claude Sonnet 3.7",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-02-19",last_updated:"2025-02-19",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:8192}},"ai21.jamba-1-5-mini-v1:0":{id:"ai21.jamba-1-5-mini-v1:0",name:"Jamba 1.5 Mini",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-08-15",last_updated:"2024-08-15",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.4},limit:{context:256e3,output:4096}},"meta.llama3-8b-instruct-v1:0":{id:"meta.llama3-8b-instruct-v1:0",name:"Llama 3 8B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-03",release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.3,output:.6},limit:{context:8192,output:2048}},"ai21.jamba-1-5-large-v1:0":{id:"ai21.jamba-1-5-large-v1:0",name:"Jamba 1.5 Large",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-08-15",last_updated:"2024-08-15",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:8},limit:{context:256e3,output:4096}},"anthropic.claude-opus-4-20250514-v1:0":{id:"anthropic.claude-opus-4-20250514-v1:0",name:"Claude Opus 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"meta.llama3-70b-instruct-v1:0":{id:"meta.llama3-70b-instruct-v1:0",name:"Llama 3 70B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-12",release_date:"2024-0
5547-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2.65,output:3.5},limit:{context:8192,output:2048}},"meta.llama4-maverick-17b-instruct-v1:0":{id:"meta.llama4-maverick-17b-instruct-v1:0",name:"Llama 4 Maverick 17B Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.24,output:.97},limit:{context:1e6,output:16384}},"amazon.nova-pro-v1:0":{id:"amazon.nova-pro-v1:0",name:"Nova Pro",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-12-03",last_updated:"2024-12-03",modalities:{input:["text","image","video"],output:["text"]},open_weights:!1,cost:{input:.8,output:3.2,cache_read:.2},limit:{context:3e5,output:8192}},"anthropic.claude-sonnet-4-20250514-v1:0":{id:"anthropic.claude-sonnet-4-20250514-v1:0",name:"Claude Sonnet 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"anthropic.claude-3-5-haiku-20241022-v1:0":{id:"anthropic.claude-3-5-haiku-20241022-v1:0",name:"Claude Haiku 3.5",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-07",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.8,output:4,cache_read:.08,cache_write:1},limit:{context:2e5,output:8192}},"amazon.nova-lite-v1:0":{id:"amazon.nova-lite-v1:0",name:"Nova Lite",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-12-03",last_updated:"2024-12-03",modalities:{input:["text","image","video"],output:["text"]},open_weights:!1,cost:{input:.06,output:.24,cache_read:.015},limit:{context:3e5,output:8192}},"meta.llama3-2-1b-instruct-v1:0":{id:"meta.llama3-2-1b-instruct-v1:0",name:"Llama 3.2 1B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-09-25",last_updated:"2024-09-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.1},limit:{context:131e3,output:4096}},"cohere.command-r-plus-v1:0":{id:"cohere.command-r-plus-v1:0",name:"Command R+",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-04-04",last_updated:"2024-04-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:3,output:15},limit:{context:128e3,output:4096}},"anthropic.claude-instant-v1":{id:"anthropic.claude-instant-v1",name:"Claude Instant",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-08",release_date:"2023-03-01",last_updated:"2023-03-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.8,output:2.4},limit:{context:1e5,output:4096}},"meta.llama3-1-8b-instruct-v1:0":{id:"meta.llama3-1-8b-instruct-v1:0",name:"Llama 3.1 8B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.22,output:.22},limit:{context:128e3,output:4096}},"anthropic.claude-3-5-sonnet-20240620-v1:0":{id:"anthropic.claude-3-5-sonnet-20240620-v1:0",name:"Claude Sonnet 3.5",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-06-20",last_updated:"2024-06-20",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:8192}},"cohere.command-r-v1:0":{id:"cohere.command-r-v1:0",name:"Command R",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-03-11",last_updated:"2024-03-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.5,output:1.5},limit:{context:128e3,output:4096}},"meta.llama3-3-70b-instruct-v1:0":{id:"meta.llama3-3-70b-instruct-v1:0",name:"Llama 3.3 70B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.72,output:.72},limit:{context:128e3,output:4096}},"meta.llama3-2-11b-instruct-v1:0":{id:"meta.llama3-2-11b-instruct-v1:0",name:"Llama 3.2 11B Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-09-25",last_updated:"2024-09-25",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.16,output:.16},limit:{context:128e3,output:4096}},"anthropic.claude-v2:1":{id:"anthropic.claude-v2:1",name:"Claude 2.1",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-08",release_date:"2023-11-21",last_updated:"2023-11-21",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:8,output:24},limit:{context:2e5,output:4096}},"meta.llama3-2-90b-instruct-v1:0":{id:"meta.llama3-2-90b-instruct-v1:0",name:"Llama 3.2 90B Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-09-25",last_updated:"2024-09-25",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.72,output:.72},limit:{context:128e3,output:4096}},"anthropic.claude-3-sonnet-20240229-v1:0":{id:"anthropic.claude-3-sonnet-20240229-v1:0",name:"Claude Sonnet 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-08",release_date:"2024-03-04",last_updated:"2024-03-04",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15},limit:{context:2e5,output:4096}},"deepseek.r1-v1:0":{id:"deepseek.r1-v1:0",name:"DeepSeek-R1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-0
5547",release_date:"2025-01-20",last_updated:"2025-05-29",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.35,output:5.4},limit:{context:128e3,output:32768}}}},anthropic:{id:"anthropic",name:"Anthropic",npm:"@ai-sdk/anthropic",doc:"https://docs.anthropic.com/en/docs/about-claude/models",env:["ANTHROPIC_API_KEY"],models:{"claude-3-7-sonnet-20250219":{id:"claude-3-7-sonnet-20250219",name:"Claude Sonnet 3.7",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10-31",release_date:"2025-02-19",last_updated:"2025-02-19",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"claude-opus-4-1-20250805":{id:"claude-opus-4-1-20250805",name:"Claude Opus 4.1",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"claude-3-haiku-20240307":{id:"claude-3-haiku-20240307",name:"Claude Haiku 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-08-31",release_date:"2024-03-13",last_updated:"2024-03-13",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.25,output:1.25,cache_read:.03,cache_write:.3},limit:{context:2e5,output:4096}},"claude-3-5-haiku-20241022":{id:"claude-3-5-haiku-20241022",name:"Claude Haiku 3.5",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-07-31",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.8,output:4,cache_read:.08,cache_write:1},limit:{context:2e5,output:8192}},"claude-opus-4-20250514":{id:"claude-opus-4-20250514",name:"Claude Opus 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"claude-3-5-sonnet-20241022":{id:"claude-3-5-sonnet-20241022",name:"Claude Sonnet 3.5 v2",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04-30",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:8192}},"claude-3-5-sonnet-20240620":{id:"claude-3-5-sonnet-20240620",name:"Claude Sonnet 3.5",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04-30",release_date:"2024-06-20",last_updated:"2024-06-20",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:8192}},"claude-3-sonnet-20240229":{id:"claude-3-sonnet-20240229",name:"Claude Sonnet 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-08-31",release_date:"2024-03-04",last_updated:"2024-03-04",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:.3},limit:{context:2e5,output:4096}},"claude-sonnet-4-20250514":{id:"claude-sonnet-4-20250514",name:"Claude Sonnet 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"claude-3-opus-20240229":{id:"claude-3-opus-20240229",name:"Claude Opus 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-08-31",release_date:"2024-02-29",last_updated:"2024-02-29",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:4096}}}},azure:{id:"azure",name:"Azure",npm:"@ai-sdk/azure",doc:"https://learn.microsoft.com/en-us
554/azure/ai-services/openai/concepts/models",env:["AZURE_RESOURCE_NAME","AZURE_API_KEY"],models:{"gpt-5-nano":{id:"gpt-5-nano",name:"GPT-5 Nano",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05-30",release_date:"2025-08-07",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.05,output:.4,cache_read:.01},limit:{context:272e3,output:128e3}},"gpt-3.5-turbo-0613":{id:"gpt-3.5-turbo-0613",name:"GPT-3.5 Turbo 0613",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2021-08",release_date:"2023-06-13",last_updated:"2023-06-13",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:4},limit:{context:16384,output:16384}},"gpt-3.5-turbo-0301":{id:"gpt-3.5-turbo-0301",name:"GPT-3.5 Turbo 0301",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2021-08",release_date:"2023-03-01",last_updated:"2023-03-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.5,output:2},limit:{context:4096,output:4096}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:1047576,output:32768}},"gpt-4-turbo":{id:"gpt-4-turbo",name:"GPT-4 Turbo",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-11",release_date:"2023-11-06",last_updated:"2024-04-09",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:10,output:30},limit:{context:128e3,output:4096}},o1:{id:"o1",name:"o1",attachment:!1,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2023-09",release_date:"2024-12-05",last_updated:"2024-12-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:60,cache_read:7.5},limit:{context:2e5,output:1e5}},"gpt-5":{id:"gpt-5",name:"GPT-5",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-09-30",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.13},limit:{context:272e3,output:128e3}},o3:{id:"o3",name:"o3",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:2e5,output:1e5}},"gpt-5-chat":{id:"gpt-5-chat",name:"GPT-5 Chat",attachment:!0,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2024-10-24",release_date:"2025-08-07",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.13},limit:{context:128e3,output:16384}},"codex-mini":{id:"codex-mini",name:"Codex Mini",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-04",release_date:"2025-05-16",last_updated:"2025-05-16",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.5,output:6,cache_read:.375},limit:{context:2e5,output:1e5}},"gpt-4-turbo-vision":{id:"gpt-4-turbo-vision",name:"GPT-4 Turbo Vision",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-11",release_date:"2023-11-06",last_updated:"2024-04-09",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:10,output:30},limit:{context:128e3,output:4096}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05-30",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.25,output:2,cache_read:.03},limit:{context:272e3,output:128e3}},"o1-preview":{id:"o1-preview",name:"o1-preview",attachment:!1,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2023-09",release_date:"2024-09-12",last_updated:"2024-09-12",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:16.5,output:66,cache_read:8.25},limit:{context:128e3,output:32768}},"gpt-3.5-turbo-1106":{id:"gpt-3.5-turbo-1106",name:"GPT-3.5 Turbo 1106",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2021-08",release_date:"2023-11-06",last_updated:"2023-11-06",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1,output:2},limit:{context:16384,output:16384}},"gpt-4o-mini":{id:"gpt-4o-mini",name:"GPT-4o mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-09",release_date:"2024-07-18",last_updated:"2024-07-18",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.15,output:.6,cache_read:.08},limit:{context:128e3,output:16384}},"gpt-4.1-nano":{id:"gpt-4.1-nano",name:"GPT-4.1 nano",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.1,output:.4,cache_read:.03},limit:{context:1047576,output:32768}},"gpt-4.1-mini":{id:"gpt-4.1-mini",name:"GPT-4.1 mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.4,output:1.6,cache_read:.1},limit:{context:1047576,output:32768}},"o1-mini":{id:"o1-mini",name:"o1-mini",attachment:!1,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2023-09",release_date:"2024-09-12",last_updated:"2024-09-12",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.55},limit:{context:128e3,output:65536}},"gpt-3.5-turbo-0125":{id:"gpt-3.5-turbo-0125",name:"GPT-3.5 Turbo 0125",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2021-08",release_date:"2024-01-25",last_updated:"2024-01-25",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.5,output:1.5},limit:{context:16384,output:16384}},"gpt-4-32k":{id:"gpt-4-32k",name:"GPT-4 32K",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-11",release_date:"2023-03-14",last_updated:"2023-03-14",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:60,output:120},limit:{context:32768,output:32768}},"gpt-3.5-turbo-instruct":{id:"gpt-3.5-turbo-instruct",name:"GPT-3.5 Turbo Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2021-08",release_date:"2023-09-21",last_updated:"2023-09-21",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.5,output:2},limit:{context:4096,output:4096}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-09",release_date:"2024-05-13",last_updated:"2024-05-13",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2.5,output:10,cache_read:1.25},limit:{context:128e3,output:16384}},"gpt-4":{id:"gpt-4",name:"GPT-4",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-11",release_date:"2023-03-14",last_updated:"2023-03-14",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:60,output:120},limit:{context:8192,output:8192}},"o4-mini":{id:"o4-mini",name:"o4-mini",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.28},limit:{context:2e5,output:1e5}},"o3-mini":{id:"o3-mini",name:"o3-mini",attachment:!1,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2024-12-20",last_updated:"2025-01-29",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.55},limit:{context:2e5,output:1e5}}}},baseten:{id:"baseten",name:"Baseten",api:"https://inference.baseten.co/v1",npm:"@ai-sdk/openai-compatible",doc:"https://docs.baseten.co/development/model-apis/overview",env:["BASETEN_API_KEY"],models:{"Qwen3/Qwen3-Coder-480B-A35B-Instruct":{id:"Qwen3/Qwen3-Coder-480B-A35B-Instruct",name:"Qwen3 Coder 480B A35B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.38,output:1.53},limit:{context:262144,output:66536}},"moonshotai/Kimi-K2-Instruct-0905":{id:"moonshotai/Kimi-K2-Instruct-0905",name:"Kimi K2 Instruct 0905",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-08",release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.5},limit:{context:262144,output:262144}}}},cerebras:{id:"cerebras",name:"Cerebras",npm:"@ai-sdk/cerebras",doc:"https://inference-docs.cerebras.ai/models/overview",env:["CEREBRAS_API_KEY"],models:{"qwen-3-235b-a22b-instruct-2507":{id:"qwen-3-235b-a22b-instruct-2507",name:"Qwen 3 235B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-22",last_updated:"2025-07-22",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:1.2},limit:{context:131e3,output:32e3}},"gpt-oss-120b":{id:"gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.25,output:.69},limit:{context:131072,output:32768}},"qwen-3-coder-480b":{id:"qwen-3-coder-480b",name:"Qwen 3 Coder 480B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:2},limit:{context:131e3,output:32e3}}}}
554,chutes:{id:"chutes",name:"Chutes",api:"https://llm.chutes.ai/v1",npm:"@ai-sdk/openai-compatible",doc:"https://llm.chutes.ai/v1/models",env:["CHUTES_API_KEY"],models:{"meituan-longcat/LongCat-Flash-Chat-FP8":{id:"meituan-longcat/LongCat-Flash-Chat-FP8",name:"LongCat Flash Chat FP8",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-09-10",last_updated:"2025-09-10",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.25,output:1},limit:{context:131072,output:131072}},"deepseek-ai/DeepSeek-R1-Distill-Llama-70B":{id:"deepseek-ai/DeepSeek-R1-Distill-Llama-70B",name:"DeepSeek R1 Distill Llama 70B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2025-01-23",last_updated:"2025-01-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.03,output:.14},limit:{context:131072,output:131072}},"deepseek-ai/DeepSeek-V3.1":{id:"deepseek-ai/DeepSeek-V3.1",name:"DeepSeek V3.1",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-08-21",last_updated:"2025-08-21",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.2,output:.8},limit:{context:163840,output:163840}},"deepseek-ai/DeepSeek-R1-0528-Qwen3-8B":{id:"deepseek-ai/DeepSeek-R1-0528-Qwen3-8B",name:"DeepSeek R1 0528 Qwen3 8B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-29",last_updated:"2025-05-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.02,output:.07},limit:{context:131072,output:131072}},"deepseek-ai/DeepSeek-V3.1:THINKING":{id:"deepseek-ai/DeepSeek-V3.1:THINKING",name:"DeepSeek V3.1 Reasoning",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-21",last_updated:"2025-08-21",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.2,output:.8},limit:{context:163840,output:163840}},"deepseek-ai/DeepSeek-V3-0324":{id:"deepseek-ai/DeepSeek-V3-0324",name:"DeepSeek V3 (0324)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-08-01",last_updated:"2025-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.18,output:.72},limit:{context:75e3,output:163840}},"deepseek-ai/DeepSeek-R1-0528":{id:"deepseek-ai/DeepSeek-R1-0528",name:"DeepSeek R1 (0528)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-01",last_updated:"2025-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.18,output:.72},limit:{context:75e3,output:163840}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.41},limit:{context:131072,output:32768}},"chutesai/Devstral-Small-2505":{id:"chutesai/Devstral-Small-2505",name:"Devstral Small (2505)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-05-21",last_updated:"2025-05-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.02,output:.08},limit:{context:32768,output:32768}},"chutesai/Mistral-Small-3.2-24B-Instruct-2506":{id:"chutesai/Mistral-Small-3.2-24B-Instruct-2506",name:"Mistral Small 3.2 24B Instruct (2506)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-06-20",last_updated:"2025-06-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.02,output:.08},limit:{context:131072,output:131072}},"Qwen/Qwen3-235B-A22B-Thinking-2507":{id:"Qwen/Qwen3-235B-A22B-Thinking-2507",name:"Qwen3-235B-A22B-Thinking-2507",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-25",last_updated:"2025-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.078,output:.312},limit:{context:262144,output:262144}},"Qwen/Qwen3-30B-A3B-Instruct-2507":{id:"Qwen/Qwen3-30B-A3B-Instruct-2507",name:"Qwen3 30B A3B Instruct 2507",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-25",last_updated:"2025-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.05,output:.2},limit:{context:262144,output:262144}}
554,"Qwen/Qwen3-30B-A3B":{id:"Qwen/Qwen3-30B-A3B",name:"Qwen3 30B A3B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-04-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.02,output:.08},limit:{context:40960,output:40960}},"Qwen/Qwen3-235B-A22B-Instruct-2507":{id:"Qwen/Qwen3-235B-A22B-Instruct-2507",name:"Qwen3 235B A22B Instruct 2507",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-07-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.078,output:.312},limit:{context:262144,output:131072}},"Qwen/Qwen3-Coder-30B-A3B-Instruct":{id:"Qwen/Qwen3-Coder-30B-A3B-Instruct",name:"Qwen3 Coder 30B A3B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-25",last_updated:"2025-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:262144}},"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8",name:"Qwen3 Coder 480B A35B Instruct (FP8)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-08-01",last_updated:"2025-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.2,output:.8},limit:{context:262144,output:262144}},"zai-org/GLM-4.5-FP8":{id:"zai-org/GLM-4.5-FP8",name:"GLM 4.5 FP8",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:131072}},"zai-org/GLM-4.5-Air":{id:"zai-org/GLM-4.5-Air",name:"GLM 4.5 Air",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:98304}},"tngtech/DeepSeek-TNG-R1T2-Chimera":{id:"tngtech/DeepSeek-TNG-R1T2-Chimera",name:"DeepSeek TNG R1T2 Chimera",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2025-07",release_date:"2025-07-08",last_updated:"2025-07-08",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.8},limit:{context:163840,output:163840}},"tngtech/DeepSeek-R1T-Chimera":{id:"tngtech/DeepSeek-R1T-Chimera",name:"DeepSeek R1T Chimera",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2025-04",release_date:"2025-04-26",last_updated:"2025-04-26",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.18,output:.72},limit:{context:163840,output:163840}},"moonshotai/Kimi-K2-Instruct-75k":{id:"moonshotai/Kimi-K2-Instruct-75k",name:"Kimi K2 Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-08-01",last_updated:"2025-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.15,output:.59},limit:{context:75e3,output:75e3}},"moonshotai/Kimi-VL-A3B-Thinking":{id:"moonshotai/Kimi-VL-A3B-Thinking",name:"Kimi VL A3B Thinking",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2024-12-01",last_updated:"2024-12-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.02499,output:.100008},limit:{context:131072,output:131072}},"moonshotai/Kimi-K2-Instruct-0905":{id:"moonshotai/Kimi-K2-Instruct-0905",name:"Kimi K2 Instruct 0905",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-09-05",last_updated:"2024-09-05",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.296176,output:1.18528},limit:{context:262144,output:262144}},"moonshotai/Kimi-Dev-72B":{id:"moonshotai/Kimi-Dev-72B",name:"Kimi Dev 72B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-12-01",last_updated:"2024-12-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.06664,output:.266688},limit:{context:131072,output:131072}}}},"cloudflare-workers-ai":{id:"cloudflare-workers-ai",name:"Cloudflare Workers AI",npm:"workers-ai-provider",doc:"https://developers.cloudflare.com/workers-ai/models/",env:["CLOUDFLARE_ACCOUNT_ID","CLOUDFLARE_API_KEY"],models:{"starling-lm-7b-beta":{id:"starling-lm-7b-beta",name:"@hf/nexusflow/starling-lm-7b-beta",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-03-19",last_updated:"2024-04-03",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"deepseek-coder-6.7b-base-awq":{id:"deepseek-coder-6.7b-base-awq",name:"@hf/thebloke/deepseek-coder-6.7b-base-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-11-05",last_updated:"2023-11-09",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"openchat-3.5-0106":{id:"openchat-3.5-0106",name:"@cf/openchat/openchat-3.5-0106",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-01-07",last_updated:"2024-05-18",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:8192}},"mistral-7b-instruct-v0.2-lora":{id:"mistral-7b-instruct-v0.2-lora",name:"@cf/mistral/mistral-7b-instruct-v0.2-lora",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-04-01",last_updated:"2024-04-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:15e3,output:15e3}},"llama-3.1-8b-instruct-awq":{id:"llama-3.1-8b-instruct-awq",name:"@cf/meta/llama-3.1-8b-instruct-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-0
5547-25",last_updated:"2024-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.12,output:.27},limit:{context:8192,output:8192}},"mistral-7b-instruct-v0.2":{id:"mistral-7b-instruct-v0.2",name:"@hf/mistral/mistral-7b-instruct-v0.2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-12-11",last_updated:"2025-07-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:3072,output:3072}},"llava-1.5-7b-hf":{id:"llava-1.5-7b-hf",name:"@cf/llava-hf/llava-1.5-7b-hf",attachment:!0,reasoning:!1,temperature:!0,tool_call:!1,release_date:"2023-12-05",last_updated:"2025-06-06",modalities:{input:["image","text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:0}},"resnet-50":{id:"resnet-50",name:"@cf/microsoft/resnet-50",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2022-03-16",last_updated:"2024-02-13",modalities:{input:["image"],output:["text"]},open_weights:!0,cost:{input:25e-7,output:0},limit:{context:0,output:0}},"deepseek-coder-6.7b-instruct-awq":{id:"deepseek-coder-6.7b-instruct-awq",name:"@hf/thebloke/deepseek-coder-6.7b-instruct-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-11-05",last_updated:"2023-11-13",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"llama-3.1-70b-instruct":{id:"llama-3.1-70b-instruct",name:"@cf/meta/llama-3.1-70b-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-07-16",last_updated:"2024-12-15",modalities:{input:["text"],output:["text"]},open_weights:!0,limit:{context:24e3,output:24e3}},"qwen1.5-0.5b-chat":{id:"qwen1.5-0.5b-chat",name:"@cf/qwen/qwen1.5-0.5b-chat",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-01-31",last_updated:"2024-04-30",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32e3,output:32e3}},"qwen1.5-14b-chat-awq":{id:"qwen1.5-14b-chat-awq",name:"@cf/qwen/qwen1.5-14b-chat-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-02-03",last_updated:"2024-04-30",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:7500,output:7500}},"llama-3.2-3b-instruct":{id:"llama-3.2-3b-instruct",name:"@cf/meta/llama-3.2-3b-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-09-18",last_updated:"2024-10-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.051,output:.34},limit:{context:128e3,output:128e3}},"gemma-7b-it-lora":{id:"gemma-7b-it-lora",name:"@cf/google/gemma-7b-it-lora",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-04-02",last_updated:"2024-04-02",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:3500,output:3500}},"gemma-3-12b-it":{id:"gemma-3-12b-it",name:"@cf/google/gemma-3-12b-it",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-03-01",last_updated:"2025-03-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.35,output:.56},limit:{context:8e4,output:8e4}},"llama-3-8b-instruct":{id:"llama-3-8b-instruct",name:"@cf/meta/llama-3-8b-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-04-17",last_updated:"2025-06-19",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.28,output:.83},limit:{context:7968,output:7968}},"gemma-7b-it":{id:"gemma-7b-it",name:"@hf/google/gemma-7b-it",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-02-13",last_updated:"2024-08-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:8192}},"qwq-32b":{id:"qwq-32b",name:"@cf/qwen/qwq-32b",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-03-05",last_updated:"2025-03-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.66,output:1},limit:{context:24e3,output:24e3}},"llama-3.2-1b-instruct":{id:"llama-3.2-1b-instruct",name:"@cf/meta/llama-3.2-1b-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-09-18",last_updated:"2024-10-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.027,output:.2},limit:{context:6e4,output:6e4}},"falcon-7b-instruct":{id:"falcon-7b-instruct",name:"@cf/tiiuae/falcon-7b-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-04-25",last_updated:"2024-10-12",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"llama-3.1-8b-instruct-fast":{id:"llama-3.1-8b-instruct-fast",name:"@cf/meta/llama-3.1-8b-instruct-fast",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-0
5547-18",last_updated:"2024-09-25",modalities:{input:["text"],output:["text"]},open_weights:!0,limit:{context:128e3,output:128e3}},"tinyllama-1.1b-chat-v1.0":{id:"tinyllama-1.1b-chat-v1.0",name:"@cf/tinyllama/tinyllama-1.1b-chat-v1.0",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-12-30",last_updated:"2024-03-17",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:2048,output:2048}},"phoenix-1.0":{id:"phoenix-1.0",name:"@cf/leonardo/phoenix-1.0",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2025-08-25",last_updated:"2025-08-25",modalities:{input:["text"],output:["image"]},open_weights:!1,cost:{input:.0058,output:.0058},limit:{context:0,output:0}},"stable-diffusion-v1-5-inpainting":{id:"stable-diffusion-v1-5-inpainting",name:"@cf/runwayml/stable-diffusion-v1-5-inpainting",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-02-27",last_updated:"2024-02-27",modalities:{input:["text"],output:["image"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:0}},"llama-3-8b-instruct-awq":{id:"llama-3-8b-instruct-awq",name:"@cf/meta/llama-3-8b-instruct-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-05-09",last_updated:"2024-05-09",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.12,output:.27},limit:{context:8192,output:8192}},"openhermes-2.5-mistral-7b-awq":{id:"openhermes-2.5-mistral-7b-awq",name:"@hf/thebloke/openhermes-2.5-mistral-7b-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-11-02",last_updated:"2023-11-09",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"llama-2-7b-chat-hf-lora":{id:"llama-2-7b-chat-hf-lora",name:"@cf/meta-llama/llama-2-7b-chat-hf-lora",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-07-13",last_updated:"2024-04-17",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:8192}},"gpt-oss-20b":{id:"gpt-oss-20b",name:"@cf/openai/gpt-oss-20b",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2025-08-04",last_updated:"2025-08-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.3},limit:{context:128e3,output:128e3}},"llama-3.1-8b-instruct-fp8":{id:"llama-3.1-8b-instruct-fp8",name:"@cf/meta/llama-3.1-8b-instruct-fp8",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-07-25",last_updated:"2024-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.29},limit:{context:32e3,output:32e3}},whisper:{id:"whisper",name:"@cf/openai/whisper",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2023-11-07",last_updated:"2024-08-12",modalities:{input:["audio"],output:["text"]},open_weights:!0,cost:{input:45e-5,output:45e-5},limit:{context:0,output:0}},"uform-gen2-qwen-500m":{id:"uform-gen2-qwen-500m",name:"@cf/unum/uform-gen2-qwen-500m",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-02-15",last_updated:"2024-04-24",modalities:{input:["image","text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:0}},"bart-large-cnn":{id:"bart-large-cnn",name:"@cf/facebook/bart-large-cnn",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2022-03-02",last_updated:"2024-02-13",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:0}},"mistral-7b-instruct-v0.1":{id:"mistral-7b-instruct-v0.1",name:"@cf/mistral/mistral-7b-instruct-v0.1",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-09-27",last_updated:"2025-07-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.11,output:.19},limit:{context:2824,output:2824}},"una-cybertron-7b-v2-bf16":{id:"una-cybertron-7b-v2-bf16",name:"@cf/fblgit/una-cybertron-7b-v2-bf16",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-12-02",last_updated:"2024-03-08",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:15e3,output:15e3}},"hermes-2-pro-mistral-7b":{id:"hermes-2-pro-mistral-7b",name:"@hf/nousresearch/hermes-2-pro-mistral-7b",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-03-11",last_updated:"2024-09-08",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:24e3,output:24e3}},"llama-2-13b-chat-awq":{id:"llama-2-13b-chat-awq",name:"@hf/thebloke/llama-2-13b-chat-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-09-19",last_updated:"2023-11-09",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"qwen2.5-coder-32b-instruct":{id:"qwen2.5-coder-32b-instruct",name:"@cf/qwen/qwen2.5-coder-32b-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-11-06",last_updated:"2025-01-12",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.66,output:1},limit:{context:32768,output:32768}}
554,"m2m100-1.2b":{id:"m2m100-1.2b",name:"@cf/meta/m2m100-1.2b",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2022-03-02",last_updated:"2023-11-16",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.34,output:.34},limit:{context:0,output:0}},melotts:{id:"melotts",name:"@cf/myshell-ai/melotts",attachment:!0,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-07-19",last_updated:"2024-07-19",modalities:{input:["text"],output:["audio"]},open_weights:!0,cost:{input:2e-4,output:0},limit:{context:0,output:0}},"stable-diffusion-xl-base-1.0":{id:"stable-diffusion-xl-base-1.0",name:"@cf/stabilityai/stable-diffusion-xl-base-1.0",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2023-07-25",last_updated:"2023-10-30",modalities:{input:["text"],output:["image"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:0}},"lucid-origin":{id:"lucid-origin",name:"@cf/leonardo/lucid-origin",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2025-08-25",last_updated:"2025-08-05",modalities:{input:["text"],output:["image"]},open_weights:!1,cost:{input:.007,output:.007},limit:{context:0,output:0}},"llama-3.1-8b-instruct":{id:"llama-3.1-8b-instruct",name:"@cf/meta/llama-3.1-8b-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-07-18",last_updated:"2024-09-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.28,output:.83},limit:{context:7968,output:7968}},"qwen1.5-7b-chat-awq":{id:"qwen1.5-7b-chat-awq",name:"@cf/qwen/qwen1.5-7b-chat-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-02-03",last_updated:"2024-04-30",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:2e4,output:2e4}},"mistral-small-3.1-24b-instruct":{id:"mistral-small-3.1-24b-instruct",name:"@cf/mistralai/mistral-small-3.1-24b-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-03-11",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.35,output:.56},limit:{context:128e3,output:128e3}},"llama-3.2-11b-vision-instruct":{id:"llama-3.2-11b-vision-instruct",name:"@cf/meta/llama-3.2-11b-vision-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-09-18",last_updated:"2024-12-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.049,output:.68},limit:{context:128e3,output:128e3}},"llama-3.3-70b-instruct-fp8-fast":{id:"llama-3.3-70b-instruct-fp8-fast",name:"@cf/meta/llama-3.3-70b-instruct-fp8-fast",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.29,output:2.25},limit:{context:24e3,output:24e3}},"phi-2":{id:"phi-2",name:"@cf/microsoft/phi-2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-12-13",last_updated:"2024-04-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:2048,output:2048}},"whisper-large-v3-turbo":{id:"whisper-large-v3-turbo",name:"@cf/openai/whisper-large-v3-turbo",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-10-01",last_updated:"2024-10-04",modalities:{input:["audio"],output:["text"]},open_weights:!0,cost:{input:51e-5,output:51e-5},limit:{context:0,output:0}},"mistral-7b-instruct-v0.1-awq":{id:"mistral-7b-instruct-v0.1-awq",name:"@hf/thebloke/mistral-7b-instruct-v0.1-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-09-27",last_updated:"2023-11-09",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"aura-1":{id:"aura-1",name:"@cf/deepgram/aura-1",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2025-08-27",last_updated:"2025-07-07",modalities:{input:["text"],output:["audio"]},open_weights:!0,cost:{input:.015,output:.015},limit:{context:0,output:0}}
554,"neural-chat-7b-v3-1-awq":{id:"neural-chat-7b-v3-1-awq",name:"@hf/thebloke/neural-chat-7b-v3-1-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-11-15",last_updated:"2023-11-17",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"gpt-oss-120b":{id:"gpt-oss-120b",name:"@cf/openai/gpt-oss-120b",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2025-08-04",last_updated:"2025-08-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.35,output:.75},limit:{context:128e3,output:128e3}},"qwen1.5-1.8b-chat":{id:"qwen1.5-1.8b-chat",name:"@cf/qwen/qwen1.5-1.8b-chat",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-01-30",last_updated:"2024-04-30",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32e3,output:32e3}},"nova-3":{id:"nova-3",name:"@cf/deepgram/nova-3",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2025-06-05",last_updated:"2025-07-08",modalities:{input:["audio"],output:["text"]},open_weights:!0,cost:{input:.0052,output:.0052},limit:{context:0,output:0}},"llama-4-scout-17b-16e-instruct":{id:"llama-4-scout-17b-16e-instruct",name:"@cf/meta/llama-4-scout-17b-16e-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-04-02",last_updated:"2025-05-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.27,output:.85},limit:{context:131e3,output:131e3}},"gemma-2b-it-lora":{id:"gemma-2b-it-lora",name:"@cf/google/gemma-2b-it-lora",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-04-02",last_updated:"2024-04-02",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:8192}},"sqlcoder-7b-2":{id:"sqlcoder-7b-2",name:"@cf/defog/sqlcoder-7b-2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-02-05",last_updated:"2024-02-12",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:1e4,output:1e4}},"deepseek-math-7b-instruct":{id:"deepseek-math-7b-instruct",name:"@cf/deepseek-ai/deepseek-math-7b-instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-02-05",last_updated:"2024-02-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"llama-2-7b-chat-fp16":{id:"llama-2-7b-chat-fp16",name:"@cf/meta/llama-2-7b-chat-fp16",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-07-26",last_updated:"2023-07-26",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.56,output:6.67},limit:{context:4096,output:4096}},"deepseek-r1-distill-qwen-32b":{id:"deepseek-r1-distill-qwen-32b",name:"@cf/deepseek-ai/deepseek-r1-distill-qwen-32b",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-01-20",last_updated:"2025-02-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.5,output:4.88},limit:{context:8e4,output:8e4}},"discolm-german-7b-v1-awq":{id:"discolm-german-7b-v1-awq",name:"@cf/thebloke/discolm-german-7b-v1-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2024-01-18",last_updated:"2024-01-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"stable-diffusion-xl-lightning":{id:"stable-diffusion-xl-lightning",name:"@cf/bytedance/stable-diffusion-xl-lightning",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-02-20",last_updated:"2024-04-03",modalities:{input:["text"],output:["image"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:0}},"whisper-tiny-en":{id:"whisper-tiny-en",name:"@cf/openai/whisper-tiny-en",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2022-09-26",last_updated:"2024-01-22",modalities:{input:["audio"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:0}},"zephyr-7b-beta-awq":{id:"zephyr-7b-beta-awq",name:"@hf/thebloke/zephyr-7b-beta-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-10-27",last_updated:"2023-11-09",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"flux-1-schnell":{id:"flux-1-schnell",name:"@cf/black-forest-labs/flux-1-schnell",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-0
5547-31",last_updated:"2024-08-16",modalities:{input:["text"],output:["image"]},open_weights:!0,cost:{input:53e-6,output:11e-5},limit:{context:2048,output:0}},"stable-diffusion-v1-5-img2img":{id:"stable-diffusion-v1-5-img2img",name:"@cf/runwayml/stable-diffusion-v1-5-img2img",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-02-27",last_updated:"2024-02-27",modalities:{input:["text"],output:["image"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:0}},"llama-2-7b-chat-int8":{id:"llama-2-7b-chat-int8",name:"@cf/meta/llama-2-7b-chat-int8",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-09-25",last_updated:"2023-09-25",modalities:{input:["text"],output:["text"]},open_weights:!0,limit:{context:8192,output:8192}},"llamaguard-7b-awq":{id:"llamaguard-7b-awq",name:"@hf/thebloke/llamaguard-7b-awq",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2023-12-11",last_updated:"2023-12-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:4096}},"llama-guard-3-8b":{id:"llama-guard-3-8b",name:"@cf/meta/llama-guard-3-8b",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,release_date:"2024-07-22",last_updated:"2024-10-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.48,output:.03},limit:{context:0,output:0}},"dreamshaper-8-lcm":{id:"dreamshaper-8-lcm",name:"@cf/lykon/dreamshaper-8-lcm",attachment:!0,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2023-12-06",last_updated:"2023-12-07",modalities:{input:["text"],output:["image"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:0}}}},deepinfra:{id:"deepinfra",name:"Deep Infra",npm:"@ai-sdk/deepinfra",doc:"https://deepinfra.com/models",env:["DEEPINFRA_API_KEY"],models:{"Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct-Turbo",name:"Qwen3 Coder 480B A35B Instruct Turbo",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.3,output:1.2},limit:{context:262144,output:66536}},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct",name:"Qwen3 Coder 480B A35B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.4,output:1.6},limit:{context:262144,output:66536}},"zai-org/GLM-4.5":{id:"zai-org/GLM-4.5",name:"GLM-4.5",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.2},limit:{context:131072,output:98304}},"moonshotai/Kimi-K2-Instruct":{id:"moonshotai/Kimi-K2-Instruct",name:"Kimi K2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-11",last_updated:"2025-07-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.5,output:2},limit:{context:131072,output:32768}}}},deepseek:{id:"deepseek",name:"DeepSeek",api:"https://api.deepseek.com",npm:"@ai-sdk/openai-compatible",doc:"https://platform.deepseek.com/api-docs/pricing",env:["DEEPSEEK_API_KEY"],models:{"deepseek-reasoner":{id:"deepseek-reasoner",name:"DeepSeek Reasoner",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-07",release_date:"2025-01-20",last_updated:"2025-08-21",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.57,output:1.68,cache_read:.07},limit:{context:128e3,output:128e3}},"deepseek-chat":{id:"deepseek-chat",name:"DeepSeek Chat",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-07",release_date:"2024-12-26",last_updated:"2025-08-21",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.57,output:1.68,cache_read:.07},limit:{context:128e3,output:8192}}}},fastrouter:{id:"fastrouter",name:"FastRouter",api:"https://go.fastrouter.ai/api/v1",npm:"@ai-sdk/openai-compatible",doc:"https://fastrouter.ai/models",env:["FASTROUTER_API_KEY"],models:{"deepseek-ai/deepseek-r1-distill-llama-70b":{id:"deepseek-ai/deepseek-r1-distill-llama-70b",name:"DeepSeek R1 Distill Llama 70B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2025-01-23",last_updated:"2025-01-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.03,output:.14},limit:{context:131072,output:131072}},"anthropic/claude-sonnet-4":{id:"anthropic/claude-sonnet-4",name:"Claude Sonnet 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"anthropic/claude-opus-4.1":{id:"anthropic/claude-opus-4.1",name:"Claude Opus 4.1",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"openai/gpt-5-nano":{id:"openai/gpt-5-nano",name:"GPT-5 Nano",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10-01",release_date:"2025-08-0
5547",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.05,output:.4,cache_read:.005},limit:{context:4e5,output:128e3}},"openai/gpt-4.1":{id:"openai/gpt-4.1",name:"GPT-4.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:1047576,output:32768}},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.05,output:.2},limit:{context:131072,output:65536}},"openai/gpt-5":{id:"openai/gpt-5",name:"GPT-5",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10-01",release_date:"2025-08-07",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.125},limit:{context:4e5,output:128e3}},"openai/gpt-5-mini":{id:"openai/gpt-5-mini",name:"GPT-5 Mini",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10-01",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.25,output:2,cache_read:.025},limit:{context:4e5,output:128e3}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.6},limit:{context:131072,output:32768}},"x-ai/grok-4":{id:"x-ai/grok-4",name:"Grok 4",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-07",release_date:"2025-07-09",last_updated:"2025-07-09",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.75,cache_write:15},limit:{context:256e3,output:64e3}},"google/gemini-2.5-pro":{id:"google/gemini-2.5-pro",name:"Gemini 2.5 Pro",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-17",last_updated:"2025-06-17",modalities:{input:["text","image","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"google/gemini-2.5-flash":{id:"google/gemini-2.5-flash",name:"Gemini 2.5 Flash",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-17",last_updated:"2025-06-17",modalities:{input:["text","image","pdf"],output:["text"]},open_weights:!1,cost:{input:.3,output:2.5,cache_read:.0375},limit:{context:1048576,output:65536}},"qwen/qwen3-coder":{id:"qwen/qwen3-coder",name:"Qwen3 Coder",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.3,output:1.2},limit:{context:262144,output:66536}},"moonshotai/kimi-k2":{id:"moonshotai/kimi-k2",name:"Kimi K2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-11",last_updated:"2025-07-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.55,output:2.2},limit:{context:131072,output:32768}}}}
554,"fireworks-ai":{id:"fireworks-ai",name:"Fireworks AI",api:"https://api.fireworks.ai/inference/v1/",npm:"@ai-sdk/openai-compatible",doc:"https://fireworks.ai/docs/",env:["FIREWORKS_API_KEY"],models:{"accounts/fireworks/models/qwen3-235b-a22b":{id:"accounts/fireworks/models/qwen3-235b-a22b",name:"Qwen3 235B-A22B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-29",last_updated:"2025-04-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.22,output:.88},limit:{context:128e3,output:16384}},"accounts/fireworks/models/gpt-oss-20b":{id:"accounts/fireworks/models/gpt-oss-20b",name:"GPT OSS 20B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.05,output:.2},limit:{context:131072,output:32768}},"accounts/fireworks/models/deepseek-v3-0324":{id:"accounts/fireworks/models/deepseek-v3-0324",name:"Deepseek V3 03-24",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-03-24",last_updated:"2025-03-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.9,output:.9},limit:{context:16e4,output:16384}},"accounts/fireworks/models/qwen3-coder-480b-a35b-instruct":{id:"accounts/fireworks/models/qwen3-coder-480b-a35b-instruct",name:"Qwen3 Coder 480B A35B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-07-22",last_updated:"2025-07-22",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.45,output:1.8},limit:{context:256e3,output:32768}},"accounts/fireworks/models/deepseek-r1-0528":{id:"accounts/fireworks/models/deepseek-r1-0528",name:"Deepseek R1 05/28",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-28",last_updated:"2025-05-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:3,output:8},limit:{context:16e4,output:16384}},"accounts/fireworks/models/glm-4p5-air":{id:"accounts/fireworks/models/glm-4p5-air",name:"GLM 4.5 Air",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-08-01",last_updated:"2025-08-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.22,output:.88},limit:{context:131072,output:131072}},"accounts/fireworks/models/kimi-k2-instruct":{id:"accounts/fireworks/models/kimi-k2-instruct",name:"Kimi K2 Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-11",last_updated:"2025-07-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:3},limit:{context:128e3,output:16384}},"accounts/fireworks/models/gpt-oss-120b":{id:"accounts/fireworks/models/gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.6},limit:{context:131072,output:32768}},"accounts/fireworks/models/glm-4p5":{id:"accounts/fireworks/models/glm-4p5",name:"GLM 4.5",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-29",last_updated:"2025-07-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.55,output:2.19},limit:{context:131072,output:131072}},"accounts/fireworks/models/deepseek-v3p1":{id:"accounts/fireworks/models/deepseek-v3p1",name:"DeepSeek V3.1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-07",release_date:"2025-08-21",last_updated:"2025-08-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.56,output:1.68},limit:{context:163840,output:163840}}}},"github-copilot":{id:"github-copilot",name:"GitHub Copilot",api:"https://api.githubcopilot.com",npm:"@ai-sdk/openai-compatible",doc:"https://docs.github.com/en/copilot",env:["GITHUB_TOKEN"],models:{"gemini-2.5-pro":{id:"gemini-2.5-pro",name:"Gemini 2.5 Pro",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-03-20",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video"],output:["text"]},open_weights:!1,limit:{context:128e3,output:64e3}},"claude-sonnet-4":{id:"claude-sonnet-4",name:"Claude Sonnet 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:128e3,output:16e3}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:128e3,output:16384}},"gemini-2.0-flash-001":{id:"gemini-2.0-flash-001",name:"Gemini 2.0 Flash",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image","audio","video"],output:["text"]},open_weights:!1,limit:{context:1e6,output:8192}},"claude-opus-4":{id:"claude-opus-4",name:"Claude Opus 4",attachment:!0,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:8e4,output:16e3}},"grok-code-fast-1":{id:"grok-code-fast-1",name:"Grok Code Fast 1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-08",release_date:"2025-08-27",last_updated:"2025-08-27",modalities:{input:["text"],output:["text"]},open_weights:!1,limit:{context:256e3,output:1e4}},"claude-opus-41":{id:"claude-opus-41",name:"Claude Opus 4.1",attachment:!0,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2025-03-31",release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:8e4,output:16e3}},"claude-3.7-sonnet-thought":{id:"claude-3.7-sonnet-thought",name:"Claude Sonnet 3.7 Thinking",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-02-19",last_updated:"2025-02-19",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:2e5,output:16384}},"gpt-5":{id:"gpt-5",name:"GPT-5",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-08-0
5547",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:128e3,output:64e3}},o3:{id:"o3",name:"o3 (Preview)",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:128e3,output:16384}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5-mini",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2025-08-13",last_updated:"2025-08-13",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:128e3,output:64e3}},"claude-3.7-sonnet":{id:"claude-3.7-sonnet",name:"Claude Sonnet 3.7",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-02-19",last_updated:"2025-02-19",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:2e5,output:16384}},"claude-3.5-sonnet":{id:"claude-3.5-sonnet",name:"Claude Sonnet 3.5",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:9e4,output:8192}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-09",release_date:"2024-05-13",last_updated:"2024-05-13",modalities:{input:["text","image"],output:["text"]},open_weights:!1,limit:{context:128e3,output:16384}},"o4-mini":{id:"o4-mini",name:"o4-mini (Preview)",attachment:!1,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2024-10",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text"],output:["text"]},open_weights:!1,limit:{context:128e3,output:65536}},"o3-mini":{id:"o3-mini",name:"o3-mini",attachment:!1,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2024-10",release_date:"2024-12-20",last_updated:"2025-01-29",modalities:{input:["text"],output:["text"]},open_weights:!1,limit:{context:128e3,output:65536}}}},"github-models":{id:"github-models",name:"GitHub Models",api:"https://models.github.ai/inference",npm:"@ai-sdk/openai-compatible",doc:"https://docs.github.com/en/github-models",env:["GITHUB_TOKEN"],models:{"deepseek/deepseek-v3-0324":{id:"deepseek/deepseek-v3-0324",name:"DeepSeek-V3-0324",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2025-03-24",last_updated:"2025-03-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"deepseek/deepseek-r1-0528":{id:"deepseek/deepseek-r1-0528",name:"DeepSeek-R1-0528",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2025-05-28",last_updated:"2025-05-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:65536,output:8192}},"deepseek/deepseek-r1":{id:"deepseek/deepseek-r1",name:"DeepSeek-R1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2025-01-20",last_updated:"2025-01-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:65536,output:8192}},"meta/meta-llama-3-8b-instruct":{id:"meta/meta-llama-3-8b-instruct",name:"Meta-Llama-3-8B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-04-18",last_updated:"2024-04-18",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:2048}},"meta/llama-3.2-90b-vision-instruct":{id:"meta/llama-3.2-90b-vision-instruct",name:"Llama-3.2-90B-Vision-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-09-25",last_updated:"2024-09-25",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"meta/llama-3.3-70b-instruct":{id:"meta/llama-3.3-70b-instruct",name:"Llama-3.3-70B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:32768}},"meta/meta-llama-3.1-70b-instruct":{id:"meta/meta-llama-3.1-70b-instruct",name:"Meta-Llama-3.1-70B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-0
5547-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:32768}},"meta/llama-4-maverick-17b-128e-instruct-fp8":{id:"meta/llama-4-maverick-17b-128e-instruct-fp8",name:"Llama 4 Maverick 17B 128E Instruct FP8",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2025-01-31",last_updated:"2025-01-31",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"meta/meta-llama-3.1-8b-instruct":{id:"meta/meta-llama-3.1-8b-instruct",name:"Meta-Llama-3.1-8B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:32768}},"meta/meta-llama-3.1-405b-instruct":{id:"meta/meta-llama-3.1-405b-instruct",name:"Meta-Llama-3.1-405B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:32768}},"meta/llama-3.2-11b-vision-instruct":{id:"meta/llama-3.2-11b-vision-instruct",name:"Llama-3.2-11B-Vision-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-09-25",last_updated:"2024-09-25",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"meta/llama-4-scout-17b-16e-instruct":{id:"meta/llama-4-scout-17b-16e-instruct",name:"Llama 4 Scout 17B 16E Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2025-01-31",last_updated:"2025-01-31",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"meta/meta-llama-3-70b-instruct":{id:"meta/meta-llama-3-70b-instruct",name:"Meta-Llama-3-70B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-04-18",last_updated:"2024-04-18",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:2048}},"xai/grok-3":{id:"xai/grok-3",name:"Grok 3",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-12-09",last_updated:"2024-12-09",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"xai/grok-3-mini":{id:"xai/grok-3-mini",name:"Grok 3 Mini",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-12-09",last_updated:"2024-12-09",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"openai/gpt-4.1":{id:"openai/gpt-4.1",name:"GPT-4.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:16384}},"openai/o1":{id:"openai/o1",name:"OpenAI o1",attachment:!1,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2023-10",release_date:"2024-09-12",last_updated:"2024-12-17",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:2e5,output:1e5}},"openai/o3":{id:"openai/o3",name:"OpenAI o3",attachment:!1,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2024-04",release_date:"2025-01-31",last_updated:"2025-01-31",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:2e5,output:1e5}},"openai/o1-preview":{id:"openai/o1-preview",name:"OpenAI o1-preview",attachment:!1,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2023-10",release_date:"2024-09-12",last_updated:"2024-09-12",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:32768}},"openai/gpt-4o-mini":{id:"openai/gpt-4o-mini",name:"GPT-4o mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-0
5547-18",last_updated:"2024-07-18",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:16384}},"openai/gpt-4.1-nano":{id:"openai/gpt-4.1-nano",name:"GPT-4.1-nano",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:16384}},"openai/gpt-4.1-mini":{id:"openai/gpt-4.1-mini",name:"GPT-4.1-mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:16384}},"openai/o1-mini":{id:"openai/o1-mini",name:"OpenAI o1-mini",attachment:!1,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2023-10",release_date:"2024-09-12",last_updated:"2024-12-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:65536}},"openai/gpt-4o":{id:"openai/gpt-4o",name:"GPT-4o",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-05-13",last_updated:"2024-05-13",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:16384}},"openai/o4-mini":{id:"openai/o4-mini",name:"OpenAI o4-mini",attachment:!1,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2024-04",release_date:"2025-01-31",last_updated:"2025-01-31",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:2e5,output:1e5}},"openai/o3-mini":{id:"openai/o3-mini",name:"OpenAI o3-mini",attachment:!1,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2024-04",release_date:"2025-01-31",last_updated:"2025-01-31",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:2e5,output:1e5}},"ai21-labs/ai21-jamba-1.5-mini":{id:"ai21-labs/ai21-jamba-1.5-mini",name:"AI21 Jamba 1.5 Mini",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2024-08-29",last_updated:"2024-08-29",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256e3,output:4096}},"ai21-labs/ai21-jamba-1.5-large":{id:"ai21-labs/ai21-jamba-1.5-large",name:"AI21 Jamba 1.5 Large",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2024-08-29",last_updated:"2024-08-29",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256e3,output:4096}},"microsoft/phi-3-medium-4k-instruct":{id:"microsoft/phi-3-medium-4k-instruct",name:"Phi-3-medium instruct (4k)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-04-23",last_updated:"2024-04-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:1024}},"microsoft/phi-3.5-vision-instruct":{id:"microsoft/phi-3.5-vision-instruct",name:"Phi-3.5-vision instruct (128k)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-08-20",last_updated:"2024-08-20",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"microsoft/phi-4-reasoning":{id:"microsoft/phi-4-reasoning",name:"Phi-4-Reasoning",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"microsoft/phi-4":{id:"microsoft/phi-4",name:"Phi-4",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:16e3,output:4096}}
554,"microsoft/phi-3-small-8k-instruct":{id:"microsoft/phi-3-small-8k-instruct",name:"Phi-3-small instruct (8k)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-04-23",last_updated:"2024-04-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:2048}},"microsoft/phi-4-mini-instruct":{id:"microsoft/phi-4-mini-instruct",name:"Phi-4-mini-instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"microsoft/phi-3-mini-128k-instruct":{id:"microsoft/phi-3-mini-128k-instruct",name:"Phi-3-mini instruct (128k)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-04-23",last_updated:"2024-04-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"microsoft/phi-3-small-128k-instruct":{id:"microsoft/phi-3-small-128k-instruct",name:"Phi-3-small instruct (128k)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-04-23",last_updated:"2024-04-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"microsoft/mai-ds-r1":{id:"microsoft/mai-ds-r1",name:"MAI-DS-R1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2025-01-20",last_updated:"2025-01-20",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:65536,output:8192}},"microsoft/phi-3.5-moe-instruct":{id:"microsoft/phi-3.5-moe-instruct",name:"Phi-3.5-MoE instruct (128k)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-08-20",last_updated:"2024-08-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"microsoft/phi-4-multimodal-instruct":{id:"microsoft/phi-4-multimodal-instruct",name:"Phi-4-multimodal-instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"microsoft/phi-4-mini-reasoning":{id:"microsoft/phi-4-mini-reasoning",name:"Phi-4-mini-reasoning",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"microsoft/phi-3.5-mini-instruct":{id:"microsoft/phi-3.5-mini-instruct",name:"Phi-3.5-mini instruct (128k)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-08-20",last_updated:"2024-08-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"microsoft/phi-3-mini-4k-instruct":{id:"microsoft/phi-3-mini-4k-instruct",name:"Phi-3-mini instruct (4k)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-04-23",last_updated:"2024-04-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:4096,output:1024}},"microsoft/phi-3-medium-128k-instruct":{id:"microsoft/phi-3-medium-128k-instruct",name:"Phi-3-medium instruct (128k)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-04-23",last_updated:"2024-04-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"mistral-ai/mistral-small-2503":{id:"mistral-ai/mistral-small-2503",name:"Mistral Small 3.1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-09",release_date:"2025-03-01",last_updated:"2025-03-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:32768}},"mistral-ai/mistral-large-2411":{id:"mistral-ai/mistral-large-2411",name:"Mistral Large 24.11",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-09",release_date:"2024-11-01",last_updated:"2024-11-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:32768}},"mistral-ai/mistral-medium-2505":{id:"mistral-ai/mistral-medium-2505",name:"Mistral Medium 3 (25.05)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-09",release_date:"2025-05-01",last_updated:"2025-05-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:32768}},"mistral-ai/ministral-3b":{id:"mistral-ai/ministral-3b",name:"Ministral 3B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"mistral-ai/mistral-nemo":{id:"mistral-ai/mistral-nemo",name:"Mistral Nemo",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2024-0
5547-18",last_updated:"2024-07-18",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"mistral-ai/codestral-2501":{id:"mistral-ai/codestral-2501",name:"Codestral 25.01",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:32e3,output:8192}},"cohere/cohere-command-r-08-2024":{id:"cohere/cohere-command-r-08-2024",name:"Cohere Command R 08-2024",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2024-08-01",last_updated:"2024-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"cohere/cohere-command-r-plus-08-2024":{id:"cohere/cohere-command-r-plus-08-2024",name:"Cohere Command R+ 08-2024",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2024-08-01",last_updated:"2024-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"cohere/cohere-command-a":{id:"cohere/cohere-command-a",name:"Cohere Command A",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2024-11-01",last_updated:"2024-11-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"cohere/cohere-command-r":{id:"cohere/cohere-command-r",name:"Cohere Command R",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2024-03-11",last_updated:"2024-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"cohere/cohere-command-r-plus":{id:"cohere/cohere-command-r-plus",name:"Cohere Command R+",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-03",release_date:"2024-04-04",last_updated:"2024-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"core42/jais-30b-chat":{id:"core42/jais-30b-chat",name:"JAIS 30b Chat",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-03",release_date:"2023-08-30",last_updated:"2023-08-30",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:2048}}}},google:{id:"google",name:"Google",npm:"@ai-sdk/google",doc:"https://ai.google.dev/gemini-api/docs/pricing",env:["GOOGLE_GENERATIVE_AI_API_KEY"],models:{"gemini-2.5-flash-preview-05-20":{id:"gemini-2.5-flash-preview-05-20",name:"Gemini 2.5 Flash Preview 05-20",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-05-20",last_updated:"2025-05-20",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.15,output:.6,cache_read:.0375},limit:{context:1048576,output:65536}},"gemini-2.5-pro":{id:"gemini-2.5-pro",name:"Gemini 2.5 Pro",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-03-20",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"gemini-1.5-flash":{id:"gemini-1.5-flash",name:"Gemini 1.5 Flash",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-05-14",last_updated:"2024-05-14",modalities:{input:["text","image","audio","video"],output:["text"]},open_weights:!1,cost:{input:.075,output:.3,cache_read:.01875},limit:{context:1e6,output:8192}},"gemini-2.0-flash-lite":{id:"gemini-2.0-flash-lite",name:"Gemini 2.0 Flash Lite",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.075,output:.3},limit:{context:1048576,output:8192}},"gemini-1.5-pro":{id:"gemini-1.5-pro",name:"Gemini 1.5 Pro",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-02-15",last_updated:"2024-02-15",modalities:{input:["text","image","audio","video"],output:["text"]},open_weights:!1,cost:{input:1.25,output:5,cache_read:.3125},limit:{context:1e6,output:8192}},"gemini-1.5-flash-8b":{id:"gemini-1.5-flash-8b",name:"Gemini 1.5 Flash-8B",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-10-03",last_updated:"2024-10-03",modalities:{input:["text","image","audio","video"],output:["text"]},open_weights:!1,cost:{input:.0375,output:.15,cache_read:.01},limit:{context:1e6,output:8192}},"gemini-2.5-flash":{id:"gemini-2.5-flash",name:"Gemini 2.5 Flash",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-03-20",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.3,output:2.5,cache_read:.075},limit:{context:1048576,output:65536}},"gemini-2.5-pro-preview-06-05":{id:"gemini-2.5-pro-preview-06-05",name:"Gemini 2.5 Pro Preview 06-05",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-05",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"gemini-2.5-pro-preview-05-06":{id:"gemini-2.5-pro-preview-05-06",name:"Gemini 2.5 Pro Preview 05-06",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-05-06",last_updated:"2025-05-06",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"gemini-2.0-flash":{id:"gemini-2.0-flash",name:"Gemini 2.0 Flash",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.1,output:.4,cache_read:.025},limit:{context:1048576,output:8192}},"gemini-2.5-flash-lite-preview-06-17":{id:"gemini-2.5-flash-lite-preview-06-17",name:"Gemini 2.5 Flash Lite Preview 06-17",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-17",last_updated:"2025-06-17",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.1,output:.4,cache_read:.025},limit:{context:65536,output:65536}},"gemini-2.5-flash-preview-04-17":{id:"gemini-2.5-flash-preview-04-17",name:"Gemini 2.5 Flash Preview 04-17",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-04-17",last_updated:"2025-04-17",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.15,output:.6,cache_read:.0375},limit:{context:1048576,output:65536}}}}
554,"google-vertex":{id:"google-vertex",name:"Vertex",npm:"@ai-sdk/google-vertex",doc:"https://cloud.google.com/vertex-ai/generative-ai/docs/models",env:["GOOGLE_VERTEX_PROJECT","GOOGLE_VERTEX_LOCATION","GOOGLE_APPLICATION_CREDENTIALS"],models:{"gemini-2.5-flash-preview-05-20":{id:"gemini-2.5-flash-preview-05-20",name:"Gemini 2.5 Flash Preview 05-20",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-05-20",last_updated:"2025-05-20",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.15,output:.6,cache_read:.0375},limit:{context:1048576,output:65536}},"gemini-2.5-pro":{id:"gemini-2.5-pro",name:"Gemini 2.5 Pro",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-03-20",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"gemini-2.0-flash-lite":{id:"gemini-2.0-flash-lite",name:"Gemini 2.0 Flash Lite",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.075,output:.3},limit:{context:1048576,output:8192}},"gemini-2.5-flash":{id:"gemini-2.5-flash",name:"Gemini 2.5 Flash",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-17",last_updated:"2025-06-17",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.3,output:2.5,cache_read:.075,cache_write:.383},limit:{context:1048576,output:65536}},"gemini-2.5-pro-preview-06-05":{id:"gemini-2.5-pro-preview-06-05",name:"Gemini 2.5 Pro Preview 06-05",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-05",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"gemini-2.5-pro-preview-05-06":{id:"gemini-2.5-pro-preview-05-06",name:"Gemini 2.5 Pro Preview 05-06",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-05-06",last_updated:"2025-05-06",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"gemini-2.0-flash":{id:"gemini-2.0-flash",name:"Gemini 2.0 Flash",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.1,output:.4,cache_read:.025},limit:{context:1048576,output:8192}},"gemini-2.5-flash-lite-preview-06-17":{id:"gemini-2.5-flash-lite-preview-06-17",name:"Gemini 2.5 Flash Lite Preview 06-17",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-17",last_updated:"2025-06-17",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.1,output:.4,cache_read:.025},limit:{context:65536,output:65536}},"gemini-2.5-flash-preview-04-17":{id:"gemini-2.5-flash-preview-04-17",name:"Gemini 2.5 Flash Preview 04-17",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-04-17",last_updated:"2025-04-17",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.15,output:.6,cache_read:.0375},limit:{context:1048576,output:65536}}}},"google-vertex-anthropic":{id:"google-vertex-anthropic",name:"Vertex",npm:"@ai-sdk/google-vertex",doc:"https://cloud.google.com/vertex-ai/generative-ai/docs/partner-models/claude",env:["GOOGLE_VERTEX_PROJECT","GOOGLE_VERTEX_LOCATION","GOOGLE_APPLICATION_CREDENTIALS"],models:{"claude-3-5-haiku@20241022":{id:"claude-3-5-haiku@20241022",name:"Claude Haiku 3.5",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-0
5547-31",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.8,output:4,cache_read:.08,cache_write:1},limit:{context:2e5,output:8192}},"claude-opus-4@20250514":{id:"claude-opus-4@20250514",name:"Claude Opus 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"claude-3-5-sonnet@20241022":{id:"claude-3-5-sonnet@20241022",name:"Claude Sonnet 3.5 v2",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04-30",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:8192}},"claude-opus-4-1@20250805":{id:"claude-opus-4-1@20250805",name:"Claude Opus 4.1",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"claude-3-7-sonnet@20250219":{id:"claude-3-7-sonnet@20250219",name:"Claude Sonnet 3.7",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10-31",release_date:"2025-02-19",last_updated:"2025-02-19",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"claude-sonnet-4@20250514":{id:"claude-sonnet-4@20250514",name:"Claude Sonnet 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}}}},groq:{id:"groq",name:"Groq",npm:"@ai-sdk/groq",doc:"https://console.groq.com/docs/models",env:["GROQ_API_KEY"],models:{"llama-3.1-8b-instant":{id:"llama-3.1-8b-instant",name:"Llama 3.1 8B Instant",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.05,output:.08},limit:{context:131072,output:8192}},"qwen-qwq-32b":{id:"qwen-qwq-32b",name:"Qwen QwQ 32B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-09",release_date:"2024-11-27",last_updated:"2024-11-27",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.29,output:.39},limit:{context:131072,output:16384}},"llama3-70b-8192":{id:"llama3-70b-8192",name:"Llama 3 70B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-03",release_date:"2024-04-18",last_updated:"2024-04-18",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.59,output:.79},limit:{context:8192,output:8192}},"deepseek-r1-distill-llama-70b":{id:"deepseek-r1-distill-llama-70b",name:"DeepSeek R1 Distill Llama 70B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-07",release_date:"2025-01-20",last_updated:"2025-01-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.75,output:.99},limit:{context:131072,output:8192}},"llama3-8b-8192":{id:"llama3-8b-8192",name:"Llama 3 8B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-03",release_date:"2024-04-18",last_updated:"2024-04-18",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.05,output:.08},limit:{context:8192,output:8192}},"gemma2-9b-it":{id:"gemma2-9b-it",name:"Gemma 2 9B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-06-27",last_updated:"2024-06-27",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.2},limit:{context:8192,output:8192}},"llama-3.3-70b-versatile":{id:"llama-3.3-70b-versatile",name:"Llama 3.3 70B Versatile",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.59,output:.79},limit:{context:131072,output:32768}},"mistral-saba-24b":{id:"mistral-saba-24b",name:"Mistral Saba 24B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-02-06",last_updated:"2025-02-06",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.79,output:.79},limit:{context:32768,output:32768}}
554,"llama-guard-3-8b":{id:"llama-guard-3-8b",name:"Llama Guard 3 8B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.2},limit:{context:8192,output:8192}},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.5},limit:{context:131072,output:32768}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.75},limit:{context:131072,output:32768}},"meta-llama/llama-guard-4-12b":{id:"meta-llama/llama-guard-4-12b",name:"Llama Guard 4 12B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.2,output:.2},limit:{context:131072,output:128}},"meta-llama/llama-4-maverick-17b-128e-instruct":{id:"meta-llama/llama-4-maverick-17b-128e-instruct",name:"Llama 4 Maverick 17B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.2,output:.6},limit:{context:131072,output:8192}},"meta-llama/llama-4-scout-17b-16e-instruct":{id:"meta-llama/llama-4-scout-17b-16e-instruct",name:"Llama 4 Scout 17B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.11,output:.34},limit:{context:131072,output:8192}},"qwen/qwen3-32b":{id:"qwen/qwen3-32b",name:"Qwen3 32B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-11-08",release_date:"2024-12-23",last_updated:"2024-12-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.29,output:.59},limit:{context:131072,output:16384}},"moonshotai/kimi-k2-instruct-0905":{id:"moonshotai/kimi-k2-instruct-0905",name:"Kimi K2 Instruct 0905",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:3},limit:{context:262144,output:16384}},"moonshotai/kimi-k2-instruct":{id:"moonshotai/kimi-k2-instruct",name:"Kimi K2 Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-14",last_updated:"2025-07-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:3},limit:{context:131072,output:16384}}}},huggingface:{id:"huggingface",name:"Hugging Face",api:"https://router.huggingface.co/v1",npm:"@ai-sdk/openai-compatible",doc:"https://huggingface.co/docs/inference-providers",env:["HF_TOKEN"],models:{"deepseek-ai/Deepseek-V3-0324":{id:"deepseek-ai/Deepseek-V3-0324",name:"DeepSeek-V3-0324",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-03-24",last_updated:"2025-03-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.25,output:1.25},limit:{context:16384,output:8192}},"deepseek-ai/DeepSeek-R1-0528":{id:"deepseek-ai/DeepSeek-R1-0528",name:"DeepSeek-R1-0528",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-28",last_updated:"2025-05-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:3,output:5},limit:{context:163840,output:163840}},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct",name:"Qwen3-Coder-480B-A35B-Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:2},limit:{context:262144,output:66536}}
554,"Qwen/Qwen3-235B-A22B-Thinking-2507":{id:"Qwen/Qwen3-235B-A22B-Thinking-2507",name:"Qwen3-235B-A22B-Thinking-2507",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-25",last_updated:"2025-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.3,output:3},limit:{context:262144,output:131072}},"zai-org/GLM-4.5-Air":{id:"zai-org/GLM-4.5-Air",name:"GLM-4.5-Air",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:1.1},limit:{context:128e3,output:96e3}},"zai-org/GLM-4.5":{id:"zai-org/GLM-4.5",name:"GLM-4.5",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.2},limit:{context:131072,output:98304}},"moonshotai/Kimi-K2-Instruct":{id:"moonshotai/Kimi-K2-Instruct",name:"Kimi-K2-Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-14",last_updated:"2025-07-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:3},limit:{context:131072,output:16384}}}},inception:{id:"inception",name:"Inception",api:"https://api.inceptionlabs.ai/v1/",npm:"@ai-sdk/openai-compatible",doc:"https://platform.inceptionlabs.ai/docs",env:["INCEPTION_API_KEY"],models:{"mercury-coder":{id:"mercury-coder",name:"Mercury Coder",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2025-02-26",last_updated:"2025-07-31",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.25,output:1,cache_read:.25,cache_write:1},limit:{context:128e3,output:16384}},mercury:{id:"mercury",name:"Mercury",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2025-06-26",last_updated:"2025-07-31",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.25,output:1,cache_read:.25,cache_write:1},limit:{context:128e3,output:16384}}}},inference:{id:"inference",name:"Inference",api:"https://inference.net/v1",npm:"@ai-sdk/openai-compatible",doc:"https://inference.net/models",env:["INFERENCE_API_KEY"],models:{"meta/llama-3.2-3b-instruct":{id:"meta/llama-3.2-3b-instruct",name:"Llama 3.2 3B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.02,output:.02},limit:{context:16e3,output:4096}},"meta/llama-3.2-1b-instruct":{id:"meta/llama-3.2-1b-instruct",name:"Llama 3.2 1B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.01,output:.01},limit:{context:16e3,output:4096}},"meta/llama-3.1-8b-instruct":{id:"meta/llama-3.1-8b-instruct",name:"Llama 3.1 8B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.025,output:.025},limit:{context:16e3,output:4096}},"meta/llama-3.2-11b-vision-instruct":{id:"meta/llama-3.2-11b-vision-instruct",name:"Llama 3.2 11B Vision Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.055,output:.055},limit:{context:16e3,output:4096}},"mistral/mistral-nemo-12b-instruct":{id:"mistral/mistral-nemo-12b-instruct",name:"Mistral Nemo 12B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.038,output:.1},limit:{context:16e3,output:4096}}
554,"google/gemma-3":{id:"google/gemma-3",name:"Google Gemma 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.15,output:.3},limit:{context:125e3,output:4096}},"osmosis/osmosis-structure-0.6b":{id:"osmosis/osmosis-structure-0.6b",name:"Osmosis Structure 0.6B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.5},limit:{context:4e3,output:2048}},"qwen/qwen-2.5-7b-vision-instruct":{id:"qwen/qwen-2.5-7b-vision-instruct",name:"Qwen 2.5 7B Vision Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.2,output:.2},limit:{context:125e3,output:4096}},"qwen/qwen3-embedding-4b":{id:"qwen/qwen3-embedding-4b",name:"Qwen 3 Embedding 4B",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,knowledge:"2024-12",release_date:"2025-01-01",last_updated:"2025-01-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.01,output:0},limit:{context:32e3,output:2048}}}},llama:{id:"llama",name:"Llama",api:"https://api.llama.com/compat/v1/",npm:"@ai-sdk/openai-compatible",doc:"https://llama.developer.meta.com/docs/models",env:["LLAMA_API_KEY"],models:{"groq-llama-4-maverick-17b-128e-instruct":{id:"groq-llama-4-maverick-17b-128e-instruct",name:"Groq-Llama-4-Maverick-17B-128E-Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"llama-3.3-70b-instruct":{id:"llama-3.3-70b-instruct",name:"Llama-3.3-70B-Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"llama-4-maverick-17b-128e-instruct-fp8":{id:"llama-4-maverick-17b-128e-instruct-fp8",name:"Llama-4-Maverick-17B-128E-Instruct-FP8",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"llama-4-scout-17b-16e-instruct-fp8":{id:"llama-4-scout-17b-16e-instruct-fp8",name:"Llama-4-Scout-17B-16E-Instruct-FP8",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"cerebras-llama-4-scout-17b-16e-instruct":{id:"cerebras-llama-4-scout-17b-16e-instruct",name:"Cerebras-Llama-4-Scout-17B-16E-Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"llama-3.3-8b-instruct":{id:"llama-3.3-8b-instruct",name:"Llama-3.3-8B-Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"cerebras-llama-4-maverick-17b-128e-instruct":{id:"cerebras-llama-4-maverick-17b-128e-instruct",name:"Cerebras-Llama-4-Maverick-17B-128E-Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}}}},lmstudio:{id:"lmstudio",name:"LMStudio",api:"http://127.0.0.1:1234/v1",npm:"@ai-sdk/openai-compatible",doc:"https://lmstudio.ai/models",env:["LMSTUDIO_API_KEY"],models:{"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:32768}},"qwen/qwen3-coder-30b":{id:"qwen/qwen3-coder-30b",name:"Qwen3 Coder 30B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:65536}},"qwen/qwen3-30b-a3b-2507":{id:"qwen/qwen3-30b-a3b-2507",name:"Qwen3 30B A3B 2507",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-30",last_updated:"2025-07-30",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:16384}}}}
554,mistral:{id:"mistral",name:"Mistral",npm:"@ai-sdk/mistral",doc:"https://docs.mistral.ai/getting-started/models/",env:["MISTRAL_API_KEY"],models:{"pixtral-large-latest":{id:"pixtral-large-latest",name:"Pixtral Large",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2024-11-01",last_updated:"2024-11-04",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:2,output:6},limit:{context:128e3,output:128e3}},"open-mixtral-8x7b":{id:"open-mixtral-8x7b",name:"Mixtral 8x7B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-01",release_date:"2023-12-11",last_updated:"2023-12-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.7,output:.7},limit:{context:32e3,output:32e3}},"codestral-latest":{id:"codestral-latest",name:"Codestral",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-05-29",last_updated:"2025-01-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.3,output:.9},limit:{context:256e3,output:4096}},"devstral-small-2505":{id:"devstral-small-2505",name:"Devstral Small 2505",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-07",last_updated:"2025-05-07",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.3},limit:{context:128e3,output:128e3}},"devstral-medium-2507":{id:"devstral-medium-2507",name:"Devstral Medium",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-07-10",last_updated:"2025-07-10",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.4,output:2},limit:{context:128e3,output:128e3}},"mistral-medium-2505":{id:"mistral-medium-2505",name:"Mistral Medium 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-07",last_updated:"2025-05-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.4,output:2},limit:{context:131072,output:131072}},"devstral-small-2507":{id:"devstral-small-2507",name:"Devstral Small",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-07-10",last_updated:"2025-07-10",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.3},limit:{context:128e3,output:128e3}},"ministral-8b-latest":{id:"ministral-8b-latest",name:"Ministral 8B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-10-01",last_updated:"2024-10-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.1},limit:{context:128e3,output:128e3}},"magistral-medium-latest":{id:"magistral-medium-latest",name:"Magistral Medium",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-06",release_date:"2025-03-17",last_updated:"2025-03-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:5},limit:{context:128e3,output:16384}},"pixtral-12b":{id:"pixtral-12b",name:"Pixtral 12B",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-09",release_date:"2024-09-01",last_updated:"2024-09-01",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.15,output:.15},limit:{context:128e3,output:128e3}},"open-mistral-7b":{id:"open-mistral-7b",name:"Mistral 7B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2023-09-27",last_updated:"2023-09-27",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.25,output:.25},limit:{context:8e3,output:8e3}},"magistral-small":{id:"magistral-small",name:"Magistral Small",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-06",release_date:"2025-03-17",last_updated:"2025-03-17",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.5,output:1.5},limit:{context:128e3,output:128e3}},"mistral-medium-2508":{id:"mistral-medium-2508",name:"Mistral Medium 3.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-08-12",last_updated:"2025-08-12",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.4,output:2},limit:{context:262144,output:262144}},"open-mixtral-8x22b":{id:"open-mixtral-8x22b",name:"Mixtral 8x22B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-04-17",last_updated:"2024-04-17",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:6},limit:{context:64e3,output:64e3}},"mistral-medium-latest":{id:"mistral-medium-latest",name:"Mistral Medium",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-07",last_updated:"2025-05-10",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.4,output:2},limit:{context:128e3,output:16384}},"mistral-small-latest":{id:"mistral-small-latest",name:"Mistral Small",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-03",release_date:"2024-09-01",last_updated:"2024-09-04",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.1,output:.3},limit:{context:128e3,output:16384}},"mistral-large-latest":{id:"mistral-large-latest",name:"Mistral Large",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2024-11-01",last_updated:"2024-11-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:6},limit:{context:131072,output:16384}},"mistral-nemo":{id:"mistral-nemo",name:"Mistral Nemo",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-0
5547",release_date:"2024-07-01",last_updated:"2024-07-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.15},limit:{context:128e3,output:128e3}},"ministral-3b-latest":{id:"ministral-3b-latest",name:"Ministral 3B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-10-01",last_updated:"2024-10-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.04,output:.04},limit:{context:128e3,output:128e3}}}},modelscope:{id:"modelscope",name:"ModelScope",api:"https://api-inference.modelscope.cn/v1",npm:"@ai-sdk/openai-compatible",doc:"https://modelscope.cn/docs/model-service/API-Inference/intro",env:["MODELSCOPE_API_KEY"],models:{"Qwen/Qwen3-30B-A3B-Thinking-2507":{id:"Qwen/Qwen3-30B-A3B-Thinking-2507",name:"Qwen3 30B A3B Thinking 2507",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-30",last_updated:"2025-07-30",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:32768}},"Qwen/Qwen3-Coder-480B-A35B-Instruct":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct",name:"Qwen3-Coder-480B-A35B-Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:66536}},"Qwen/Qwen3-235B-A22B-Thinking-2507":{id:"Qwen/Qwen3-235B-A22B-Thinking-2507",name:"Qwen3-235B-A22B-Thinking-2507",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-25",last_updated:"2025-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:131072}},"Qwen/Qwen3-30B-A3B-Instruct-2507":{id:"Qwen/Qwen3-30B-A3B-Instruct-2507",name:"Qwen3 30B A3B Instruct 2507",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-30",last_updated:"2025-07-30",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:16384}},"Qwen/Qwen3-235B-A22B-Instruct-2507":{id:"Qwen/Qwen3-235B-A22B-Instruct-2507",name:"Qwen3 235B A22B Instruct 2507",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-07-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:131072}},"Qwen/Qwen3-Coder-30B-A3B-Instruct":{id:"Qwen/Qwen3-Coder-30B-A3B-Instruct",name:"Qwen3 Coder 30B A3B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-31",last_updated:"2025-07-31",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:65536}},"ZhipuAI/GLM-4.5":{id:"ZhipuAI/GLM-4.5",name:"GLM-4.5",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:98304}},"moonshotai/Kimi-K2-Instruct":{id:"moonshotai/Kimi-K2-Instruct",name:"Kimi-K2-Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-14",last_updated:"2025-07-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:16384}}}},moonshotai:{id:"moonshotai",name:"Moonshot AI",api:"https://api.moonshot.ai/v1",npm:"@ai-sdk/openai-compatible",doc:"https://platform.moonshot.ai/docs/api/chat",env:["MOONSHOT_API_KEY"],models:{"kimi-k2-turbo-preview":{id:"kimi-k2-turbo-preview",name:"Kimi K2 Turbo",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2.4,output:10,cache_read:.6},limit:{context:262144,output:262144}},"kimi-k2-0711-preview":{id:"kimi-k2-0711-preview",name:"Kimi K2 0711",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-14",last_updated:"2025-07-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.5,cache_read:.15},limit:{context:131072,output:16384}},"kimi-k2-0905-preview":{id:"kimi-k2-0905-preview",name:"Kimi K2 0905",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.5,cache_read:.15},limit:{context:262144,output:262144}}}},"moonshotai-cn":{id:"moonshotai-cn",name:"Moonshot AI (China)",api:"https://api.moonshot.cn/v1",npm:"@ai-sdk/openai-compatible",doc:"https://platform.moonshot.cn/docs/api/chat",env:["MOONSHOT_API_KEY"],models:{"kimi-k2-0905-preview":{id:"kimi-k2-0905-preview",name:"Kimi K2 0905",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.5,cache_read:.15},limit:{context:262144,output:262144}},"kimi-k2-0711-preview":{id:"kimi-k2-0711-preview",name:"Kimi K2 0711",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-14",last_updated:"2025-07-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.5,cache_read:.15},limit:{context:131072,output:16384}},"kimi-k2-turbo-preview":{id:"kimi-k2-turbo-preview",name:"Kimi K2 Turbo",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2.4,output:10,cache_read:.6},limit:{context:262144,output:262144}}}},morph:{id:"morph",name:"Morph",api:"https://api.morphllm.com/v1",npm:"@ai-sdk/openai-compatible",doc:"https://docs.morphllm.com/api-reference/introduction",env:["MORPH_API_KEY"],models:{auto:{id:"auto",name:"Auto",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-06-01",last_updated:"2024-06-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.85,output:1.55},limit:{context:32e3,output:32e3}},"morph-v3-fast":{id:"morph-v3-fast",name:"Morph v3 Fast",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-08-15",last_updated:"2024-08-15",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.8,output:1.2},limit:{context:16e3,output:16e3}},"morph-v3-large":{id:"morph-v3-large",name:"Morph v3 Large",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-08-15",last_updated:"2024-08-15",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.9,output:1.9},limit:{context:32e3,output:32e3}}}},nvidia:{id:"nvidia",name:"Nvidia",api:"https://integrate.api.nvidia.com/v1",npm:"@ai-sdk/openai-compatible",doc:"https://docs.api.nvidia.com/nim/",env:["NVIDIA_API_KEY"],models:{"mistral-small-3.1-24b-instruct-2503":{i
554d:"mistral-small-3.1-24b-instruct-2503",name:"Mistral-Small-3.1-24B-Instruct-2503",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2025-04-01",last_updated:"2025-09-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"llama-3.3-nemotron-super-49b-v1.5":{id:"llama-3.3-nemotron-super-49b-v1.5",name:"Llama-3.3-Nemotron-Super-49B-v1.5",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2025-07-25",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:131072,output:8192}},"qwen3-235b-a22b":{id:"qwen3-235b-a22b",name:"Qwen3-235B-A22B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2024-12-01",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:131072,output:8192}},"deepseek-v3.1":{id:"deepseek-v3.1",name:"DeepSeek V3.1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-07",release_date:"2025-08-20",last_updated:"2025-08-26",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"flux_1-dev":{id:"flux_1-dev",name:"FLUX.1-dev",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2024-08",release_date:"2024-08-01",last_updated:"2025-09-05",modalities:{input:["text"],output:["image"]},open_weights:!1,cost:{input:0,output:0},limit:{context:4096,output:0}},"cosmos-nemotron-34b":{id:"cosmos-nemotron-34b",name:"Cosmos Nemotron 34B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2024-01",release_date:"2024-01-01",last_updated:"2025-09-05",modalities:{input:["text","image","video"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:131072,output:8192}},"whisper-large-v3":{id:"whisper-large-v3",name:"Whisper Large v3",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,knowledge:"2023-09",release_date:"2023-09-01",last_updated:"2025-09-05",modalities:{input:["audio"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:0,output:4096}},"qwen3-coder-480b-a35b-instruct":{id:"qwen3-coder-480b-a35b-instruct",name:"Qwen3 Coder 480B A35B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:262144,output:66536}},"phi-4-multimodal-instruct":{id:"phi-4-multimodal-instruct",name:"Phi-4-Multimodal-Instruct",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2024-12-01",last_updated:"2025-09-05",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:131072,output:8192}},"parakeet-tdt-0.6b-v2":{id:"parakeet-tdt-0.6b-v2",name:"Parakeet TDT 0.6B v2",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,knowledge:"2024-01",release_date:"2024-01-01",last_updated:"2025-09-05",modalities:{input:["audio"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:0,output:4096}},"llama-3.1-nemotron-ultra-253b-v1":{id:"llama-3.1-nemotron-ultra-253b-v1",name:"Llama-3.1-Nemotron-Ultra-253B-v1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-07",release_date:"2024-07-01",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:131072,output:8192}},"deepseek-r1":{id:"deepseek-r1",name:"DeepSeek R1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2024-11",release_date:"2024-11-01",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:131072,output:8192}},"nemoretriever-ocr-v1":{id:"nemoretriever-ocr-v1",name:"NeMo Retriever OCR v1",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,knowledge:"2024-01",release_date:"2024-01-01",last_updated:"2025-09-05",modalities:{input:["image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:0,output:4096}},"gemma-3-27b-it":{id:"gemma-3-27b-it",name:"Gemma-3-27B-IT",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2024-12-01",last_updated:"2025-09-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:131072,output:8192}}}},openai:{id:"openai",name:"OpenAI",npm:"@ai-sdk/openai",doc:"https://platform.openai.com/docs/models",env:["OPENAI_API_KEY"],models:{"gpt-5-nano":{id:"gpt-5-nano",name:"GPT-5 Nano",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05-30",release_date:"2025-08-0
5547",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.05,output:.4,cache_read:.01},limit:{context:4e5,output:128e3}},"o3-pro":{id:"o3-pro",name:"o3-pro",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2025-06-10",last_updated:"2025-06-10",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:20,output:80},limit:{context:2e5,output:1e5}},"codex-mini-latest":{id:"codex-mini-latest",name:"Codex Mini",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-04",release_date:"2025-05-16",last_updated:"2025-05-16",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.5,output:6,cache_read:.375},limit:{context:2e5,output:1e5}},"gpt-4.1":{id:"gpt-4.1",name:"GPT-4.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:1047576,output:32768}},"gpt-4-turbo":{id:"gpt-4-turbo",name:"GPT-4 Turbo",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2023-11-06",last_updated:"2024-04-09",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:10,output:30},limit:{context:128e3,output:4096}},o1:{id:"o1",name:"o1",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2023-09",release_date:"2024-12-05",last_updated:"2024-12-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:60,cache_read:7.5},limit:{context:2e5,output:1e5}},"o3-deep-research":{id:"o3-deep-research",name:"o3-deep-research",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2024-06-26",last_updated:"2024-06-26",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:10,output:40,cache_read:2.5},limit:{context:2e5,output:1e5}},"gpt-5":{id:"gpt-5",name:"GPT-5",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-09-30",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.13},limit:{context:4e5,output:128e3}},"o1-pro":{id:"o1-pro",name:"o1-pro",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2023-09",release_date:"2025-03-19",last_updated:"2025-03-19",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:150,output:600},limit:{context:2e5,output:1e5}},o3:{id:"o3",name:"o3",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:2e5,output:1e5}},"gpt-5-chat-latest":{id:"gpt-5-chat-latest",name:"GPT-5 Chat (latest)",attachment:!0,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2024-09-30",release_date:"2025-08-07",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10},limit:{context:4e5,output:128e3}},"gpt-5-mini":{id:"gpt-5-mini",name:"GPT-5 Mini",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05-30",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.25,output:2,cache_read:.03},limit:{context:4e5,output:128e3}},"o1-preview":{id:"o1-preview",name:"o1-preview",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2023-09",release_date:"2024-09-12",last_updated:"2024-09-12",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:15,output:60,cache_read:7.5},limit:{context:128e3,output:32768}},"o4-mini-deep-research":{id:"o4-mini-deep-research",name:"o4-mini-deep-research",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2024-06-26",last_updated:"2024-06-26",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:2e5,output:1e5}},"gpt-4o-mini":{id:"gpt-4o-mini",name:"GPT-4o mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-09",release_date:"2024-07-18",last_updated:"2024-07-18",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.15,output:.6,cache_read:.08},limit:{context:128e3,output:16384}},"gpt-4.1-nano":{id:"gpt-4.1-nano",name:"GPT-4.1 nano",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.1,output:.4,cache_read:.03},limit:{context:1047576,output:32768}},"gpt-4.1-mini":{id:"gpt-4.1-mini",name:"GPT-4.1 mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.4,output:1.6,cache_read:.1},limit:{context:1047576,output:32768}},"o1-mini":{id:"o1-mini",name:"o1-mini",attachment:!1,reasoning:!0,temperature:!1,tool_call:!1,knowledge:"2023-09",release_date:"2024-09-12",last_updated:"2024-09-12",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.55},limit:{context:128e3,output:65536}},"gpt-4o":{id:"gpt-4o",name:"GPT-4o",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-09",release_date:"2024-05-13",last_updated:"2024-05-13",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2.5,output:10,cache_read:1.25},limit:{context:128e3,output:16384}},"gpt-4":{id:"gpt-4",name:"GPT-4",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-11",release_date:"2023-11-06",last_updated:"2024-04-09",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:30,output:60},limit:{context:8192,output:8192}},"gpt-3.5-turbo":{id:"gpt-3.5-turbo",name:"GPT-3.5-turbo",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2021-09-01",release_date:"2023-03-01",last_updated:"2023-11-06",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.5,output:1.5,cache_read:1.25},limit:{context:16385,output:4096}},"o4-mini":{id:"o4-mini",name:"o4-mini",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.28},limit:{context:2e5,output:1e5}},"o3-mini":{id:"o3-mini",name:"o3-mini",attachment:!1,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2024-12-20",last_updated:"2025-01-29",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.55},limit:{context:2e5,output:1e5}}}},opencode:{id:"opencode",name:"opencode",api:"https://opencode.ai/zen/v1",npm:"@ai-sdk/openai-compatible",doc:"https://opencode.ai/docs",env:["OPENCODE_API_KEY"],models:{"claude-3-5-haiku":{id:"claude-3-5-haiku",name:"Claude Haiku 3.5",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-07-31",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.8,output:4,cache_read:.08,cache_write:1},limit:{context:2e5,output:8192}},"claude-sonnet-4":{id:"claude-sonnet-4",name:"Claude Sonnet 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,reasoning:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"grok-code":{id:"grok-code",name:"Grok Code Fast 1",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-20",last_updated:"2025-08-20",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0,cache_read:0,cache_write:0},limit:{context:256e3,output:32e3}},"claude-opus-4-1":{id:"claude-opus-4-1",name:"Claude Opus 4.1",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,reasoning:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"gpt-5":{id:"gpt-5",name:"GPT-5",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-09-30",release_date:"2025-08-0
5547",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,reasoning:10,cache_read:.125},limit:{context:4e5,output:128e3}},"kimi-k2":{id:"kimi-k2",name:"Kimi K2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.5},limit:{context:262144,output:262144}},"qwen3-coder":{id:"qwen3-coder",name:"Qwen3 Coder",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.45,output:1.8},limit:{context:262144,output:65536}}}},openrouter:{id:"openrouter",name:"OpenRouter",api:"https://openrouter.ai/api/v1",npm:"@ai-sdk/openai-compatible",doc:"https://openrouter.ai/models",env:["OPENROUTER_API_KEY"],models:{"deepseek/deepseek-r1-0528:free":{id:"deepseek/deepseek-r1-0528:free",name:"R1 0528 (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-28",last_updated:"2025-05-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:163840,output:163840}},"deepseek/deepseek-chat-v3.1":{id:"deepseek/deepseek-chat-v3.1",name:"DeepSeek-V3.1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-07",release_date:"2025-08-21",last_updated:"2025-08-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.8},limit:{context:163840,output:163840}},"deepseek/deepseek-r1-distill-llama-70b":{id:"deepseek/deepseek-r1-distill-llama-70b",name:"DeepSeek R1 Distill Llama 70B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2025-01-23",last_updated:"2025-01-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:8192}},"deepseek/deepseek-v3-base:free":{id:"deepseek/deepseek-v3-base:free",name:"DeepSeek V3 Base (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2025-03",release_date:"2025-03-29",last_updated:"2025-03-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:163840,output:163840}},"deepseek/deepseek-r1-0528-qwen3-8b:free":{id:"deepseek/deepseek-r1-0528-qwen3-8b:free",name:"Deepseek R1 0528 Qwen3 8B (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-29",last_updated:"2025-05-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:131072}},"deepseek/deepseek-chat-v3-0324":{id:"deepseek/deepseek-chat-v3-0324",name:"DeepSeek V3 0324",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2025-03-24",last_updated:"2025-03-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:16384,output:8192}},"deepseek/deepseek-r1:free":{id:"deepseek/deepseek-r1:free",name:"R1 (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-01-20",last_updated:"2025-01-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:163840,output:163840}},"deepseek/deepseek-r1-distill-qwen-14b":{id:"deepseek/deepseek-r1-distill-qwen-14b",name:"DeepSeek R1 Distill Qwen 14B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2025-01-29",last_updated:"2025-01-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:64e3,output:8192}},"rekaai/reka-flash-3":{id:"rekaai/reka-flash-3",name:"Reka Flash 3",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-03-12",last_updated:"2025-03-12",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:8192}},"featherless/qwerky-72b":{id:"featherless/qwerky-72b",name:"Qwerky 72B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2025-03-20",last_updated:"2025-03-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:8192}},"openrouter/horizon-beta":{id:"openrouter/horizon-beta",name:"Horizon Beta",attachment:!0,reasoning:!1,temperature:!1,tool_call:!0,knowledge:"2025-07",release_date:"2025-08-01",last_updated:"2025-08-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256e3,output:128e3}},"openrouter/cypher-alpha:free":{id:"openrouter/cypher-alpha:free",name:"Cypher Alpha (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-07",release_date:"2025-07-01",last_updated:"2025-07-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:1e6,output:1e6}},"openrouter/sonoma-dusk-alpha":{id:"openrouter/sonoma-dusk-alpha",name:"Sonoma Dusk Alpha",attachment:!0,reasoning:!1,temperature:!1,tool_call:!0,release_date:"2024-09-05",last_updated:"2024-09-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:2e6,output:2e6}},"openrouter/sonoma-sky-alpha":{id:"openrouter/sonoma-sky-alpha",name:"Sonoma Sky Alpha",attachment:!0,reasoning:!1,temperature:!1,tool_call:!0,release_date:"2024-09-05",last_updated:"2024-09-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:2e6,output:2e6}},"openrouter/horizon-alpha":{id:"openrouter/horizon-alpha",name:"Horizon Alpha",attachment:!0,reasoning:!1,temperature:!1,tool_call:!0,knowledge:"2025-07",release_date:"2025-07-30",last_updated:"2025-07-30",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:256e3,output:128e3}},"anthropic/claude-sonnet-4":{id:"anthropic/claude-sonnet-4",name:"Claude Sonnet 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"anthropic/claude-opus-4":{id:"anthropic/claude-opus-4",name:"Claude Opus 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"anthropic/claude-3.5-haiku":{id:"anthropic/claude-3.5-haiku",name:"Claude Haiku 3.5",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-0
5547-31",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.8,output:4,cache_read:.08,cache_write:1},limit:{context:2e5,output:8192}},"anthropic/claude-opus-4.1":{id:"anthropic/claude-opus-4.1",name:"Claude Opus 4.1",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"anthropic/claude-3.7-sonnet":{id:"anthropic/claude-3.7-sonnet",name:"Claude Sonnet 3.7",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-01",release_date:"2025-02-19",last_updated:"2025-02-19",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:128e3}},"openai/gpt-5-nano":{id:"openai/gpt-5-nano",name:"GPT-5 Nano",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10-01",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.05,output:.4},limit:{context:4e5,output:128e3}},"openai/gpt-4.1":{id:"openai/gpt-4.1",name:"GPT-4.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:1047576,output:32768}},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.05,output:.2},limit:{context:131072,output:32768}},"openai/gpt-5":{id:"openai/gpt-5",name:"GPT-5",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10-01",release_date:"2025-08-07",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10},limit:{context:4e5,output:128e3}},"openai/gpt-5-chat":{id:"openai/gpt-5-chat",name:"GPT-5 Chat (latest)",attachment:!0,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2024-09-30",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10},limit:{context:4e5,output:128e3}},"openai/gpt-5-mini":{id:"openai/gpt-5-mini",name:"GPT-5 Mini",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10-01",release_date:"2025-08-07",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.25,output:2},limit:{context:4e5,output:128e3}},"openai/gpt-4o-mini":{id:"openai/gpt-4o-mini",name:"GPT-4o-mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-07-18",last_updated:"2024-07-18",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.15,output:.6,cache_read:.08},limit:{context:128e3,output:16384}},"openai/gpt-4.1-mini":{id:"openai/gpt-4.1-mini",name:"GPT-4.1 Mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.4,output:1.6,cache_read:.1},limit:{context:1047576,output:32768}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.072,output:.28},limit:{context:131072,output:32768}},"openai/o4-mini":{id:"openai/o4-mini",name:"o4 Mini",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.28},limit:{context:2e5,output:1e5}},"thudm/glm-z1-32b:free":{id:"thudm/glm-z1-32b:free",name:"GLM Z1 32B (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-17",last_updated:"2025-04-17",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:32768}},"sarvamai/sarvam-m:free":{id:"sarvamai/sarvam-m:free",name:"Sarvam-M (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-25",last_updated:"2025-05-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:32768}},"x-ai/grok-code-fast-1":{id:"x-ai/grok-code-fast-1",name:"Grok Code Fast 1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-08",release_date:"2025-08-26",last_updated:"2025-08-26",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.2,output:1.5,cache_read:.02},limit:{context:256e3,output:1e4}},"x-ai/grok-3-mini-beta":{id:"x-ai/grok-3-mini-beta",name:"Grok 3 Mini Beta",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.3,output:.5,cache_read:.075,cache_write:.5},limit:{context:131072,output:8192}},"x-ai/grok-3":{id:"x-ai/grok-3",name:"Grok 3",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.75,cache_write:15},limit:{context:131072,output:8192}},"x-ai/grok-3-mini":{id:"x-ai/grok-3-mini",name:"Grok 3 Mini",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.3,output:.5,cache_read:.075,cache_write:.5},limit:{context:131072,output:8192}},"x-ai/grok-4":{id:"x-ai/grok-4",name:"Grok 4",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-07",release_date:"2025-07-09",last_updated:"2025-07-09",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.75,cache_write:15},limit:{context:256e3,output:64e3}},"x-ai/grok-3-beta":{id:"x-ai/grok-3-beta",name:"Grok 3 Beta",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.75,cache_write:15},limit:{context:131072,output:8192}},"mistralai/codestral-2508":{id:"mistralai/codestral-2508",name:"Codestral 2508",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-08-01",last_updated:"2025-08-01",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.3,output:.9},limit:{context:256e3,output:256e3}},"mistralai/mistral-medium-3":{id:"mistralai/mistral-medium-3",name:"Mistral Medium 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-07",last_updated:"2025-05-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.4,output:2},limit:{context:131072,output:131072}},"mistralai/devstral-small-2505":{id:"mistralai/devstral-small-2505",name:"Devstral Small",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-07",last_updated:"2025-05-07",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.06,output:.12},limit:{context:128e3,output:128e3}},"mistralai/mistral-small-3.2-24b-instruct:free":{id:"mistralai/mistral-small-3.2-24b-instruct:free",name:"Mistral Small 3.2 24B (free)",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-06",release_date:"2025-06-20",last_updated:"2025-06-20",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:96e3,output:96e3}},"mistralai/devstral-medium-2507":{id:"mistralai/devstral-medium-2507",name:"Devstral Medium",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-07-10",last_updated:"2025-07-10",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.4,output:2},limit:{context:131072,output:131072}},"mistralai/mistral-small-3.2-24b-instruct":{id:"mistralai/mistral-small-3.2-24b-instruct",name:"Mistral Small 3.2 24B Instru
554ct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-06-20",last_updated:"2025-06-20",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:96e3,output:8192}},"mistralai/devstral-small-2507":{id:"mistralai/devstral-small-2507",name:"Devstral Small 1.1",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-07-10",last_updated:"2025-07-10",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.3},limit:{context:131072,output:131072}},"mistralai/mistral-nemo:free":{id:"mistralai/mistral-nemo:free",name:"Mistral Nemo (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-07",release_date:"2024-07-19",last_updated:"2024-07-19",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:131072}},"mistralai/mistral-small-3.1-24b-instruct":{id:"mistralai/mistral-small-3.1-24b-instruct",name:"Mistral Small 3.1 24B Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-03-17",last_updated:"2025-03-17",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:8192}},"mistralai/mistral-7b-instruct:free":{id:"mistralai/mistral-7b-instruct:free",name:"Mistral 7B Instruct (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-05",release_date:"2024-05-27",last_updated:"2024-05-27",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:32768}},"mistralai/mistral-medium-3.1":{id:"mistralai/mistral-medium-3.1",name:"Mistral Medium 3.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-08-12",last_updated:"2025-08-12",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.4,output:2},limit:{context:262144,output:262144}},"mistralai/devstral-small-2505:free":{id:"mistralai/devstral-small-2505:free",name:"Devstral Small 2505 (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-21",last_updated:"2025-05-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:32768}},"meta-llama/llama-4-scout:free":{id:"meta-llama/llama-4-scout:free",name:"Llama 4 Scout (free)",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:64e3,output:64e3}},"meta-llama/llama-3.2-11b-vision-instruct":{id:"meta-llama/llama-3.2-11b-vision-instruct",name:"Llama 3.2 11B Vision Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-12",release_date:"2024-09-25",last_updated:"2024-09-25",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:8192}},"meta-llama/llama-3.3-70b-instruct:free":{id:"meta-llama/llama-3.3-70b-instruct:free",name:"Llama 3.3 70B Instruct (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:65536,output:65536}},"google/gemini-2.5-pro":{id:"google/gemini-2.5-pro",name:"Gemini 2.5 Pro",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-03-20",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"google/gemma-3-12b-it":{id:"google/gemma-3-12b-it",name:"Gemma 3 12B IT",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-03-13",last_updated:"2025-03-13",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:96e3,output:8192}},"google/gemini-2.0-flash-001":{id:"google/gemini-2.0-flash-001",name:"Gemini 2.0 Flash",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.1,output:.4,cache_read:.025},limit:{context:1048576,output:8192}},"google/gemini-2.0-flash-exp:free":{id:"google/gemini-2.0-flash-exp:free",name:"Gemini 2.0 Flash Experimental (free)",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:0,output:0},limit:{context:1048576,output:1048576}},"google/gemma-3n-e4b-it:free":{id:"google/gemma-3n-e4b-it:free",name:"Gemma 3n 4B (free)",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-20",last_updated:"2025-05-20",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:8192}},"google/gemma-2-9b-it:free":{id:"google/gemma-2-9b-it:free",name:"Gemma 2 9B (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-06-28",last_updated:"2024-06-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:8192}},"google/gemini-2.5-flash":{id:"google/gemini-2.5-flash",name:"Gemini 2.5 Flash",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-07-17",last_updated:"2025-07-17",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.3,output:2.5,cache_read:.0375},limit:{context:1048576,output:65536}},"google/gemini-2.5-pro-preview-06-05":{id:"google/gemini-2.5-pro-preview-06-05",name:"Gemini 2.5 Pro Preview 06-05",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-05",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"google/gemini-2.5-pro-preview-05-06":{id:"google/gemini-2.5-pro-preview-05-06",name:"Gemini 2.5 Pro Preview 05-06",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-05-06",last_updated:"2025-05-06",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"google/gemma-3n-e4b-it":{id:"google/gemma-3n-e4b-it",name:"Gemma 3n E4B IT",attachment:!0,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2025-05-20",last_updated:"2025-05-20",modalities:{input:["text","image","audio"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:8192}},"google/gemma-3-27b-it":{id:"google/gemma-3-27b-it",name:"Gemma 3 27B IT",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-03-12",last_updated:"2025-03-12",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:96e3,output:8192}},"microsoft/mai-ds-r1:free":{id:"microsoft/mai-ds-r1:free",name:"MAI DS R1 (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-21",last_updated:"2025-04-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:163840,output:163840}},"z-ai/glm-4.5-air:free":{id:"z-ai/glm-4.5-air:free",name:"GLM 4.5 Air (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:96e3}},"z-ai/glm-4.5-air":{id:"z-ai/glm-4.5-air",name:"GLM 4.5 Air",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:1.1},limit:{context:128e3,output:96e3}}
554,"z-ai/glm-4.5v":{id:"z-ai/glm-4.5v",name:"GLM 4.5V",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-08-11",last_updated:"2025-08-11",modalities:{input:["text","image","video"],output:["text"]},open_weights:!0,cost:{input:.6,output:1.8},limit:{context:64e3,output:16384}},"z-ai/glm-4.5":{id:"z-ai/glm-4.5",name:"GLM 4.5",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.2},limit:{context:128e3,output:96e3}},"cognitivecomputations/dolphin3.0-mistral-24b":{id:"cognitivecomputations/dolphin3.0-mistral-24b",name:"Dolphin3.0 Mistral 24B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-02-13",last_updated:"2025-02-13",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:8192}},"cognitivecomputations/dolphin3.0-r1-mistral-24b":{id:"cognitivecomputations/dolphin3.0-r1-mistral-24b",name:"Dolphin3.0 R1 Mistral 24B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-02-13",last_updated:"2025-02-13",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:8192}},"qwen/qwen2.5-vl-72b-instruct":{id:"qwen/qwen2.5-vl-72b-instruct",name:"Qwen2.5 VL 72B Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2025-02-01",last_updated:"2025-02-01",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:8192}},"qwen/qwen3-coder:free":{id:"qwen/qwen3-coder:free",name:"Qwen3 Coder 480B A35B Instruct (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:66536}},"qwen/qwen3-235b-a22b-thinking-2507":{id:"qwen/qwen3-235b-a22b-thinking-2507",name:"Qwen3 235B A22B Thinking 2507",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-25",last_updated:"2025-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.078,output:.312},limit:{context:262144,output:81920}},"qwen/qwen3-30b-a3b:free":{id:"qwen/qwen3-30b-a3b:free",name:"Qwen3 30B A3B (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-04-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:40960,output:40960}},"qwen/qwen3-32b:free":{id:"qwen/qwen3-32b:free",name:"Qwen3 32B (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-04-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:40960,output:40960}},"qwen/qwen3-max":{id:"qwen/qwen3-max",name:"Qwen3 Max",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.2,output:6},limit:{context:262144,output:32768}},"qwen/qwen3-235b-a22b:free":{id:"qwen/qwen3-235b-a22b:free",name:"Qwen3 235B A22B (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-04-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:131072}},"qwen/qwen3-30b-a3b-instruct-2507":{id:"qwen/qwen3-30b-a3b-instruct-2507",name:"Qwen3 30B A3B Instruct 2507",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2025-04",release_date:"2025-07-29",last_updated:"2025-07-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.8},limit:{context:131072,output:33e3}},"qwen/qwen-2.5-coder-32b-instruct":{id:"qwen/qwen-2.5-coder-32b-instruct",name:"Qwen2.5 Coder 32B Instru
554ct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2024-11-11",last_updated:"2024-11-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:8192}},"qwen/qwen2.5-vl-72b-instruct:free":{id:"qwen/qwen2.5-vl-72b-instruct:free",name:"Qwen2.5 VL 72B Instruct (free)",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-02",release_date:"2025-02-01",last_updated:"2025-02-01",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:32768}},"qwen/qwen3-235b-a22b-07-25:free":{id:"qwen/qwen3-235b-a22b-07-25:free",name:"Qwen3 235B A22B Instruct 2507 (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-07-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:262144,output:131072}},"qwen/qwq-32b:free":{id:"qwen/qwq-32b:free",name:"QwQ 32B (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03",release_date:"2025-03-05",last_updated:"2025-03-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32768,output:32768}},"qwen/qwen2.5-vl-32b-instruct:free":{id:"qwen/qwen2.5-vl-32b-instruct:free",name:"Qwen2.5 VL 32B Instruct (free)",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-03",release_date:"2025-03-24",last_updated:"2025-03-24",modalities:{input:["text","image","video"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:8192,output:8192}},"qwen/qwen3-coder":{id:"qwen/qwen3-coder",name:"Qwen3 Coder",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.3,output:1.2},limit:{context:262144,output:66536}},"qwen/qwen3-8b:free":{id:"qwen/qwen3-8b:free",name:"Qwen3 8B (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-04-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:40960,output:40960}},"qwen/qwen3-235b-a22b-07-25":{id:"qwen/qwen3-235b-a22b-07-25",name:"Qwen3 235B A22B Instruct 2507",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-07-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.85},limit:{context:262144,output:131072}},"qwen/qwen3-next-80b-a3b-instruct":{id:"qwen/qwen3-next-80b-a3b-instruct",name:"Qwen3 Next 80B A3B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-09-11",last_updated:"2025-09-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.14,output:1.4},limit:{context:262144,output:262144}},"qwen/qwen3-14b:free":{id:"qwen/qwen3-14b:free",name:"Qwen3 14B (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-04-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:40960,output:40960}},"tngtech/deepseek-r1t2-chimera:free":{id:"tngtech/deepseek-r1t2-chimera:free",name:"DeepSeek R1T2 Chimera (free)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2025-07",release_date:"2025-07-08",last_updated:"2025-07-08",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:163840,output:163840}},"nousresearch/hermes-4-405b":{id:"nousresearch/hermes-4-405b",name:"Hermes 4 405B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2025-08-25",last_updated:"2025-08-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:3},limit:{context:131072,output:131072}},"nousresearch/hermes-4-70b":{id:"nousresearch/hermes-4-70b",name:"Hermes 4 70B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2025-08-25",last_updated:"2025-08-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.13,output:.4},limit:{context:131072,output:131072}},"nousresearch/deephermes-3-llama-3-8b-preview":{id:"nousresearch/deephermes-3-llama-3-8b-preview",name:"DeepHermes 3 Llama 3 8B Preview",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-02-28",last_updated:"2025-02-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:8192}},"moonshotai/kimi-k2-0905":{id:"moonshotai/kimi-k2-0905",name:"Kimi K2 Instruct 0905",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.5},limit:{context:262144,output:16384}},"moonshotai/kimi-k2:free":{id:"moonshotai/kimi-k2:free",name:"Kimi K2 (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-11",last_updated:"2025-07-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:32800,output:32800}},"moonshotai/kimi-k2":{id:"moonshotai/kimi-k2",name:"Kimi K2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-11",last_updated:"2025-07-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.55,output:2.2},limit:{context:131072,output:32768}},"moonshotai/kimi-dev-72b:free":{id:"moonshotai/kimi-dev-72b:free",name:"Kimi Dev 72b (free)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-06",release_date:"2025-06-16",last_updated:"2025-06-16",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:131072,output:131072}}}},perplexity:{id:"perplexity",name:"Perplexity",npm:"@perplexity-ai/sdk",doc:"https://docs.perplexity.ai",env:["PERPLEXITY_API_KEY"],models:{"sonar-pro":{
554id:"sonar-pro",name:"Sonar Pro",attachment:!0,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2025-09-01",release_date:"2024-01-01",last_updated:"2025-09-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15},limit:{context:2e5,output:8192}},sonar:{id:"sonar",name:"Sonar",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2025-09-01",release_date:"2024-01-01",last_updated:"2025-09-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1,output:1},limit:{context:128e3,output:4096}},"sonar-reasoning":{id:"sonar-reasoning",name:"Sonar Reasoning",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2025-09-01",release_date:"2024-01-01",last_updated:"2025-09-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1,output:5},limit:{context:128e3,output:4096}},"sonar-reasoning-pro":{id:"sonar-reasoning-pro",name:"Sonar Reasoning Pro",attachment:!0,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2025-09-01",release_date:"2024-01-01",last_updated:"2025-09-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8},limit:{context:128e3,output:4096}}}},requesty:{id:"requesty",name:"Requesty",npm:"@requesty/ai-sdk",doc:"https://requesty.ai/solution/llm-routing/models",env:["REQUESTY_API_KEY"],models:{"anthropic/claude-opus-4":{id:"anthropic/claude-opus-4",name:"Claude Opus 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"anthropic/claude-opus-4-1-20250805":{id:"anthropic/claude-opus-4-1-20250805",name:"Claude Opus 4.1",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"anthropic/claude-3-7-sonnet":{id:"anthropic/claude-3-7-sonnet",name:"Claude Sonnet 3.7",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-01",release_date:"2025-02-19",last_updated:"2025-02-19",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"anthropic/claude-4-sonnet-20250522":{id:"anthropic/claude-4-sonnet-20250522",name:"Claude Sonnet 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"openai/gpt-5-nano":{id:"openai/gpt-5-nano",name:"GPT-5 Nano",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05-30",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.05,output:.4,cache_read:.01},limit:{context:16e3,output:4e3}},"openai/gpt-4.1":{id:"openai/gpt-4.1",name:"GPT-4.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:1047576,output:32768}},"openai/gpt-5":{id:"openai/gpt-5",name:"GPT-5",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-09-30",release_date:"2025-08-07",last_updated:"2025-08-07",modalities:{input:["text","audio","image","video"],output:["text","audio","image"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.13},limit:{context:4e5,output:128e3}},"openai/gpt-5-mini":{id:"openai/gpt-5-mini",name:"GPT-5 Mini",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05-30",release_date:"2025-08-07",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.25,output:2,cache_read:.03},limit:{context:128e3,output:32e3}},"openai/gpt-4o-mini":{id:"openai/gpt-4o-mini",name:"GPT-4o Mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-07-18",last_updated:"2024-07-18",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.15,output:.6,cache_read:.08},limit:{context:128e3,output:16384}},"openai/gpt-4.1-mini":{id:"openai/gpt-4.1-mini",name:"GPT-4.1 Mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.4,output:1.6,cache_read:.1},limit:{context:1047576,output:32768}},"openai/o4-mini":{id:"openai/o4-mini",name:"o4 Mini",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.28},limit:{context:2e5,output:1e5}},"google/gemini-2.5-pro":{id:"google/gemini-2.5-pro",name:"Gemini 2.5 Pro",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-17",last_updated:"2025-06-17",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31,cache_write:2.375},limit:{context:1048576,output:65536}},"google/gemini-2.5-flash":{id:"google/gemini-2.5-flash",name:"Gemini 2.5 Flash",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-06-17",last_updated:"2025-06-17",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.3,output:2.5,cache_read:.075,cache_write:.55},limit:{context:1048576,output:65536}}}},submodel:{id:"submodel",name:"submodel",api:"https://llm.submodel.ai/v1",npm:"@ai-sdk/openai-compatible",doc:"https://submodel.gitbook.io",env:["SUBMODEL_INSTAGEN_ACCESS_KEY"],models:{"deepseek-ai/DeepSeek-V3.1":{id:"deepseek-ai/DeepSeek-V3.1",name:"DeepSeek V3.1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-23",last_updated:"2025-08-23",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.2,output:.8},limit:{context:75e3,output:163840}},"deepseek-ai/DeepSeek-V3-0324":{id:"deepseek-ai/DeepSeek-V3-0324",name:"DeepSeek V3 0324",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-08-23",last_updated:"2025-08-23",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.2,output:.8},limit:{context:75e3,output:163840}},"deepseek-ai/DeepSeek-R1-0528":{id:"deepseek-ai/DeepSeek-R1-0528",name:"DeepSeek R1 0528",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-23",last_updated:"2025-08-23",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.5,output:2.15},limit:{context:75e3,output:163840}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-23",last_updated:"2025-08-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.5},limit:{context:131072,output:32768}}
554,"Qwen/Qwen3-235B-A22B-Thinking-2507":{id:"Qwen/Qwen3-235B-A22B-Thinking-2507",name:"Qwen3 235B A22B Thinking 2507",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-23",last_updated:"2025-08-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.6},limit:{context:262144,output:131072}},"Qwen/Qwen3-235B-A22B-Instruct-2507":{id:"Qwen/Qwen3-235B-A22B-Instruct-2507",name:"Qwen3 235B A22B Instruct 2507",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-08-23",last_updated:"2025-08-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.3},limit:{context:262144,output:131072}},"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8",name:"Qwen3 Coder 480B A35B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-08-23",last_updated:"2025-08-23",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.2,output:.8},limit:{context:262144,output:262144}},"zai-org/GLM-4.5-FP8":{id:"zai-org/GLM-4.5-FP8",name:"GLM 4.5 FP8",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.8},limit:{context:131072,output:131072}},"zai-org/GLM-4.5-Air":{id:"zai-org/GLM-4.5-Air",name:"GLM 4.5 Air",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.5},limit:{context:131072,output:131072}}}},synthetic:{id:"synthetic",name:"Synthetic",api:"https://api.synthetic.new/v1",npm:"@ai-sdk/openai-compatible",doc:"https://synthetic.new/pricing",env:["SYNTHETIC_API_KEY"],models:{"hf:meta-llama/Llama-3.1-405B-Instruct":{id:"hf:meta-llama/Llama-3.1-405B-Instruct",name:"Llama-3.1-405B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:3,output:3},limit:{context:128e3,output:32768}},"hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8":{id:"hf:meta-llama/Llama-4-Maverick-17B-128E-Instruct-FP8",name:"Llama-4-Maverick-17B-128E-Instruct-FP8",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.22,output:.88},limit:{context:524e3,output:4096}},"hf:meta-llama/Llama-3.1-70B-Instruct":{id:"hf:meta-llama/Llama-3.1-70B-Instruct",name:"Llama-3.1-70B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.9,output:.9},limit:{context:128e3,output:32768}},"hf:meta-llama/Llama-4-Scout-17B-16E-Instruct":{id:"hf:meta-llama/Llama-4-Scout-17B-16E-Instruct",name:"Llama-4-Scout-17B-16E-Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.15,output:.6},limit:{context:328e3,output:4096}},"hf:meta-llama/Llama-3.3-70B-Instruct":{id:"hf:meta-llama/Llama-3.3-70B-Instruct",name:"Llama-3.3-70B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.9,output:.9},limit:{context:128e3,output:32768}},"hf:meta-llama/Llama-3.1-8B-Instruct":{id:"hf:meta-llama/Llama-3.1-8B-Instruct",name:"Llama-3.1-8B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.2},limit:{context:128e3,output:32768}},"hf:deepseek-ai/DeepSeek-V3.1":{id:"hf:deepseek-ai/DeepSeek-V3.1",name:"DeepSeek V3.1",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-08-21",last_updated:"2025-08-21",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.56,output:1.68},limit:{context:128e3,output:128e3}},"hf:deepseek-ai/DeepSeek-V3":{id:"hf:deepseek-ai/DeepSeek-V3",name:"DeepSeek V3",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-0
5547",release_date:"2025-01-20",last_updated:"2025-05-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.25,output:1.25},limit:{context:128e3,output:128e3}},"hf:deepseek-ai/DeepSeek-V3-0324":{id:"hf:deepseek-ai/DeepSeek-V3-0324",name:"DeepSeek V3 (0324)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,release_date:"2025-08-01",last_updated:"2025-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.2,output:1.2},limit:{context:128e3,output:128e3}},"hf:deepseek-ai/DeepSeek-R1":{id:"hf:deepseek-ai/DeepSeek-R1",name:"DeepSeek R1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-01-20",last_updated:"2025-01-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.55,output:2.19},limit:{context:128e3,output:128e3}},"hf:deepseek-ai/DeepSeek-R1-0528":{id:"hf:deepseek-ai/DeepSeek-R1-0528",name:"DeepSeek R1 (0528)",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-01",last_updated:"2025-08-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:8},limit:{context:128e3,output:128e3}},"hf:zai-org/GLM-4.5":{id:"hf:zai-org/GLM-4.5",name:"GLM 4.5",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.55,output:2.19},limit:{context:128e3,output:96e3}},"hf:moonshotai/Kimi-K2-Instruct":{id:"hf:moonshotai/Kimi-K2-Instruct",name:"Kimi K2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-11",last_updated:"2025-07-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.5},limit:{context:128e3,output:32768}},"hf:moonshotai/Kimi-K2-Instruct-0905":{id:"hf:moonshotai/Kimi-K2-Instruct-0905",name:"Kimi K2 0905",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-09-05",last_updated:"2025-09-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.2,output:1.2},limit:{context:262144,output:32768}},"hf:Qwen/Qwen2.5-Coder-32B-Instruct":{id:"hf:Qwen/Qwen2.5-Coder-32B-Instruct",name:"Qwen2.5-Coder-32B-Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2024-10",release_date:"2024-11-11",last_updated:"2024-11-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.8,output:.8},limit:{context:32768,output:32768}},"hf:Qwen/Qwen3-Coder-480B-A35B-Instruct":{id:"hf:Qwen/Qwen3-Coder-480B-A35B-Instruct",name:"Qwen 3 Coder 480B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:2},limit:{context:256e3,output:32e3}},"hf:Qwen/Qwen3-235B-A22B-Thinking-2507":{id:"hf:Qwen/Qwen3-235B-A22B-Thinking-2507",name:"Qwen3 235B A22B Thinking 2507",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-25",last_updated:"2025-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.65,output:3},limit:{context:256e3,output:32e3}},"hf:Qwen/Qwen3-235B-A22B-Instruct-2507":{id:"hf:Qwen/Qwen3-235B-A22B-Instruct-2507",name:"Qwen 3 235B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-07-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:.6},limit:{context:256e3,output:32e3}},"hf:openai/gpt-oss-120b":{id:"hf:openai/gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.1},limit:{context:128e3,output:32768}}}},togetherai:{id:"togetherai",name:"Together AI",npm:"@ai-sdk/togetherai",doc:"https://docs.together.ai/docs/serverless-models",env:["TOGETHER_API_KEY"],models:{"deepseek-ai/DeepSeek-V3":{id:"deepseek-ai/DeepSeek-V3",name:"DeepSeek V3",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-0
5547",release_date:"2025-01-20",last_updated:"2025-05-29",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.25,output:1.25},limit:{context:131072,output:12288}},"deepseek-ai/DeepSeek-R1":{id:"deepseek-ai/DeepSeek-R1",name:"DeepSeek R1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2024-07",release_date:"2024-12-26",last_updated:"2025-03-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:3,output:7},limit:{context:163839,output:12288}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.6},limit:{context:131072,output:131072}},"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct-FP8",name:"Qwen3 Coder 480B A35B Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:2},limit:{context:262144,output:66536}},"meta-llama/Llama-3.3-70B-Instruct-Turbo":{id:"meta-llama/Llama-3.3-70B-Instruct-Turbo",name:"Llama 3.3 70B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.88,output:.88},limit:{context:131072,output:66536}},"moonshotai/Kimi-K2-Instruct":{id:"moonshotai/Kimi-K2-Instruct",name:"Kimi K2 Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-14",last_updated:"2025-07-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:3},limit:{context:131072,output:32768}}}},upstage:{id:"upstage",name:"Upstage",api:"https://api.upstage.ai",npm:"@ai-sdk/openai-compatible",doc:"https://developers.upstage.ai/docs/apis/chat",env:["UPSTAGE_API_KEY"],models:{"solar-pro2":{id:"solar-pro2",name:"solar-pro2",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03",release_date:"2025-05-20",last_updated:"2025-05-20",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.25,output:.25},limit:{context:65536,output:8192}},"solar-mini":{id:"solar-mini",name:"solar-mini",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-09",release_date:"2024-06-12",last_updated:"2025-04-22",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.15,output:.15},limit:{context:32768,output:4096}}}},v0:{id:"v0",name:"v0",npm:"@ai-sdk/vercel",doc:"https://sdk.vercel.ai/providers/ai-sdk-providers/vercel",env:["V0_API_KEY"],models:{"v0-1.5-md":{id:"v0-1.5-md",name:"v0-1.5-md",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-06-09",last_updated:"2025-06-09",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15},limit:{context:128e3,output:32e3}},"v0-1.0-md":{id:"v0-1.0-md",name:"v0-1.0-md",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15},limit:{context:128e3,output:32e3}},"v0-1.5-lg":{id:"v0-1.5-lg",name:"v0-1.5-lg",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-06-09",last_updated:"2025-06-09",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75},limit:{context:512e3,output:32e3}}}},venice:{id:"venice",name:"Venice AI",api:"https://api.venice.ai/api/v1",npm:"@ai-sdk/openai-compatible",doc:"https://docs.venice.ai",env:["VENICE_API_KEY"],models:{"qwen-2.5-coder-32b":{id:"qwen-2.5-coder-32b",n
554ame:"Qwen 2.5 Coder 32B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-10",release_date:"2025-06-14",last_updated:"2025-06-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.5,output:2},limit:{context:32768,output:8192}},"venice-uncensored":{id:"venice-uncensored",name:"Venice Uncensored 1.1",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-10",release_date:"2025-07-15",last_updated:"2025-07-15",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.5,output:2},limit:{context:32768,output:8192}},"deepseek-coder-v2-lite":{id:"deepseek-coder-v2-lite",name:"DeepSeek Coder V2 Lite",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2021-09",release_date:"2025-06-22",last_updated:"2025-06-22",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.5,output:2},limit:{context:131072,output:8192}},"dolphin-2.9.2-qwen2-72b":{id:"dolphin-2.9.2-qwen2-72b",name:"Dolphin 72B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2021-09",release_date:"2025-05-21",last_updated:"2025-05-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.7,output:2.8},limit:{context:32768,output:8192}},"qwen3-4b":{id:"qwen3-4b",name:"Venice Small",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-07",release_date:"2025-07-27",last_updated:"2025-07-27",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.6},limit:{context:32768,output:8192}},"qwen-2.5-vl":{id:"qwen-2.5-vl",name:"Qwen 2.5 VL 72B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-10",release_date:"2025-06-09",last_updated:"2025-06-09",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.7,output:2.8},limit:{context:32768,output:8192}},"llama-3.3-70b":{id:"llama-3.3-70b",name:"Llama 3.3 70B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2025-06-09",last_updated:"2025-06-09",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.7,output:2.8},limit:{context:65536,output:8192}},"llama-3.1-405b":{id:"llama-3.1-405b",name:"Llama 3.1 405B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!1,knowledge:"2023-12",release_date:"2025-06-30",last_updated:"2025-06-30",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.5,output:6},limit:{context:65536,output:8192}},"llama-3.2-3b":{id:"llama-3.2-3b",name:"Llama 3.2 3B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2025-05-23",last_updated:"2025-05-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.15,output:.6},limit:{context:131072,output:8192}},"deepseek-r1-671b":{id:"deepseek-r1-671b",name:"DeepSeek R1 671B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2023-10",release_date:"2025-06-05",last_updated:"2025-06-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:3.5,output:14},limit:{context:131072,output:8192}},"qwen-2.5-qwq-32b":{id:"qwen-2.5-qwq-32b",name:"Venice Reasoning",attachment:!1,reasoning:!0,temperature:!0,tool_call:!1,knowledge:"2023-10",release_date:"2025-07-08",last_updated:"2025-07-08",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.5,output:2},limit:{context:32768,output:8192}},"qwen3-235b":{id:"qwen3-235b",name:"Venice Large",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-27",last_updated:"2025-07-27",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.5,output:6},limit:{context:131072,output:8192}},"mistral-31-24b":{id:"mistral-31-24b",name:"Venice Medium",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2025-07-15",last_updated:"2025-07-15",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.5,output:2},limit:{context:131072,output:8192}}}},vercel:{id:"vercel",name:"Vercel AI Gateway",npm:"@ai-sdk/gateway",doc:"https://github.com/vercel/ai/tree/5eb85cc45a259553501f535b8ac79a77d0e79223/packages/gateway",env:["AI_GATEWAY_API_KEY"],models:{"deepseek/deepseek-r1":{id:"deepseek/deepseek-r1",name:"DeepSeek-R1",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-0
5547",release_date:"2025-01-20",last_updated:"2025-05-29",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.35,output:5.4},limit:{context:128e3,output:32768}},"deepseek/deepseek-r1-distill-llama-70b":{id:"deepseek/deepseek-r1-distill-llama-70b",name:"DeepSeek R1 Distill Llama 70B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-07",release_date:"2025-01-20",last_updated:"2025-01-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.75,output:.99},limit:{context:131072,output:8192}},"meta/llama-4-scout":{id:"meta/llama-4-scout",name:"Llama-4-Scout-17B-16E-Instruct-FP8",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"meta/llama-3.3-70b":{id:"meta/llama-3.3-70b",name:"Llama-3.3-70B-Instruct",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"meta/llama-4-maverick":{id:"meta/llama-4-maverick",name:"Llama-4-Maverick-17B-128E-Instruct-FP8",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2025-04-05",last_updated:"2025-04-05",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:128e3,output:4096}},"xai/grok-3-mini-fast":{id:"xai/grok-3-mini-fast",name:"Grok 3 Mini Fast",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.6,output:4,reasoning:4,cache_read:.15},limit:{context:131072,output:8192}},"xai/grok-4":{id:"xai/grok-4",name:"Grok 4",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-07",release_date:"2025-07-09",last_updated:"2025-07-09",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:15,reasoning:15,cache_read:.75},limit:{context:256e3,output:64e3}},"xai/grok-3-fast":{id:"xai/grok-3-fast",name:"Grok 3 Fast",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:5,output:25,cache_read:1.25},limit:{context:131072,output:8192}},"xai/grok-2-vision":{id:"xai/grok-2-vision",name:"Grok 2 Vision",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-08-20",last_updated:"2024-08-20",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:10,cache_read:2},limit:{context:8192,output:4096}},"xai/grok-2":{id:"xai/grok-2",name:"Grok 2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-08-20",last_updated:"2024-08-20",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:2,output:10,cache_read:2},limit:{context:131072,output:8192}},"xai/grok-3-mini":{id:"xai/grok-3-mini",name:"Grok 3 Mini",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.3,output:.5,reasoning:.5,cache_read:.075},limit:{context:131072,output:8192}},"xai/grok-3":{id:"xai/grok-3",name:"Grok 3",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.75},limit:{context:131072,output:8192}},"cerebras/qwen3-coder":{id:"cerebras/qwen3-coder",name:"Qwen 3 Coder 480B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:2},limit:{context:131e3,output:32e3}},"anthropic/claude-4-opus":{id:"anthropic/claude-4-opus",name:"Claude Opus 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}},"anthropic/claude-3.5-sonnet":{id:"anthropic/claude-3.5-sonnet",name:"Claude Sonnet 3.5 v2",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04-30",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:8192}},"anthropic/claude-3.7-sonnet":{id:"anthropic/claude-3.7-sonnet",name:"Claude Sonnet 3.7",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-10-31",release_date:"2025-02-19",last_updated:"2025-02-19",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"anthropic/claude-4-sonnet":{id:"anthropic/claude-4-sonnet",name:"Claude Sonnet 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.3,cache_write:3.75},limit:{context:2e5,output:64e3}},"anthropic/claude-3-haiku":{id:"anthropic/claude-3-haiku",name:"Claude Haiku 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-08-31",release_date:"2024-03-13",last_updated:"2024-03-13",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.25,output:1.25,cache_read:.03,cache_write:.3},limit:{context:2e5,output:4096}},"anthropic/claude-3-opus":{id:"anthropic/claude-3-opus",name:"Claude Opus 3",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-08-31",release_date:"2024-02-29",last_updated:"2024-02-29",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:4096}},"anthropic/claude-4-1-opus":{id:"anthropic/claude-4-1-opus",name:"Claude Opus 4",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-03-31",release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:75,cache_read:1.5,cache_write:18.75},limit:{context:2e5,output:32e3}}
554,"anthropic/claude-3-5-haiku":{id:"anthropic/claude-3-5-haiku",name:"Claude Haiku 3.5",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-07-31",release_date:"2024-10-22",last_updated:"2024-10-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.8,output:4,cache_read:.08,cache_write:1},limit:{context:2e5,output:8192}},"openai/gpt-oss-20b":{id:"openai/gpt-oss-20b",name:"GPT OSS 20B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.07,output:.3},limit:{context:131072,output:32768}},"openai/gpt-oss-120b":{id:"openai/gpt-oss-120b",name:"GPT OSS 120B",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-08-05",last_updated:"2025-08-05",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.5},limit:{context:131072,output:32768}},"openai/o3-mini":{id:"openai/o3-mini",name:"o3-mini",attachment:!1,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2024-12-20",last_updated:"2025-01-29",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.55},limit:{context:2e5,output:1e5}},"openai/o4-mini":{id:"openai/o4-mini",name:"o4-mini",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.1,output:4.4,cache_read:.28},limit:{context:2e5,output:1e5}},"openai/gpt-4o":{id:"openai/gpt-4o",name:"GPT-4o",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-09",release_date:"2024-05-13",last_updated:"2024-05-13",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2.5,output:10,cache_read:1.25},limit:{context:128e3,output:16384}},"openai/gpt-4.1-mini":{id:"openai/gpt-4.1-mini",name:"GPT-4.1 mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.4,output:1.6,cache_read:.1},limit:{context:1047576,output:32768}},"openai/gpt-4.1-nano":{id:"openai/gpt-4.1-nano",name:"GPT-4.1 nano",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.1,output:.4,cache_read:.03},limit:{context:1047576,output:32768}},"openai/gpt-4o-mini":{id:"openai/gpt-4o-mini",name:"GPT-4o mini",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-09",release_date:"2024-07-18",last_updated:"2024-07-18",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.15,output:.6,cache_read:.08},limit:{context:128e3,output:16384}},"openai/gpt-5-mini":{id:"openai/gpt-5-mini",name:"GPT-5 Mini",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05-30",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.25,output:2,cache_read:.03},limit:{context:4e5,output:128e3}},"openai/o3":{id:"openai/o3",name:"o3",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05",release_date:"2025-04-16",last_updated:"2025-04-16",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:2e5,output:1e5}},"openai/gpt-5":{id:"openai/gpt-5",name:"GPT-5",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-09-30",release_date:"2025-08-07",last_updated:"2025-08-07",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.13},limit:{context:4e5,output:128e3}},"openai/o1":{id:"openai/o1",name:"o1",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2023-09",release_date:"2024-12-05",last_updated:"2024-12-05",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:15,output:60,cache_read:7.5},limit:{context:2e5,output:1e5}},"openai/gpt-4-turbo":{id:"openai/gpt-4-turbo",name:"GPT-4 Turbo",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2023-11-06",last_updated:"2024-04-09",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:10,output:30},limit:{context:128e3,output:4096}},"openai/gpt-4.1":{id:"openai/gpt-4.1",name:"GPT-4.1",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2025-04-14",last_updated:"2025-04-14",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:8,cache_read:.5},limit:{context:1047576,output:32768}},"openai/gpt-5-nano":{id:"openai/gpt-5-nano",name:"GPT-5 Nano",attachment:!0,reasoning:!0,temperature:!1,tool_call:!0,knowledge:"2024-05-30",release_date:"2025-08-07",last_updated:"2025-08-0
5547",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:.05,output:.4,cache_read:.01},limit:{context:4e5,output:128e3}},"mistral/mixtral-8x22b-instruct":{id:"mistral/mixtral-8x22b-instruct",name:"Mixtral 8x22B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-04",release_date:"2024-04-17",last_updated:"2024-04-17",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:6},limit:{context:64e3,output:64e3}},"mistral/mistral-small":{id:"mistral/mistral-small",name:"Mistral Small",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-03",release_date:"2024-09-01",last_updated:"2024-09-04",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.1,output:.3},limit:{context:128e3,output:16384}},"mistral/pixtral-large":{id:"mistral/pixtral-large",name:"Pixtral Large",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2024-11-01",last_updated:"2024-11-04",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:2,output:6},limit:{context:128e3,output:128e3}},"mistral/ministral-3b":{id:"mistral/ministral-3b",name:"Ministral 3B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-10-01",last_updated:"2024-10-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.04,output:.04},limit:{context:128e3,output:128e3}},"mistral/magistral-medium":{id:"mistral/magistral-medium",name:"Magistral Medium",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-06",release_date:"2025-03-17",last_updated:"2025-03-20",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:5},limit:{context:128e3,output:16384}},"mistral/magistral-small":{id:"mistral/magistral-small",name:"Magistral Small",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-06",release_date:"2025-03-17",last_updated:"2025-03-17",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.5,output:1.5},limit:{context:128e3,output:128e3}},"mistral/pixtral-12b":{id:"mistral/pixtral-12b",name:"Pixtral 12B",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-09",release_date:"2024-09-01",last_updated:"2024-09-01",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.15,output:.15},limit:{context:128e3,output:128e3}},"mistral/codestral":{id:"mistral/codestral",name:"Codestral",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-05-29",last_updated:"2025-01-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.3,output:.9},limit:{context:256e3,output:4096}},"mistral/ministral-8b":{id:"mistral/ministral-8b",name:"Ministral 8B",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-10-01",last_updated:"2024-10-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.1},limit:{context:128e3,output:128e3}},"mistral/mistral-large":{id:"mistral/mistral-large",name:"Mistral Large",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2024-11-01",last_updated:"2024-11-04",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:2,output:6},limit:{context:131072,output:16384}},"vercel/v0-1.0-md":{id:"vercel/v0-1.0-md",name:"v0-1.0-md",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-05-22",last_updated:"2025-05-22",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15},limit:{context:128e3,output:32e3}},"vercel/v0-1.5-md":{id:"vercel/v0-1.5-md",name:"v0-1.5-md",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,release_date:"2025-06-09",last_updated:"2025-06-09",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:3,output:15},limit:{context:128e3,output:32e3}},"google/gemini-2.0-flash":{id:"google/gemini-2.0-flash",name:"Gemini 2.0 Flash",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.1,output:.4,cache_read:.025},limit:{context:1048576,output:8192}},"google/gemini-2.5-flash":{id:"google/gemini-2.5-flash",name:"Gemini 2.5 Flash",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-03-20",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.3,output:2.5,cache_read:.075},limit:{context:1048576,output:65536}},"google/gemini-2.0-flash-lite":{id:"google/gemini-2.0-flash-lite",name:"Gemini 2.0 Flash Lite",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-06",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:.075,output:.3},limit:{context:1048576,output:8192}},"google/gemini-2.5-pro":{id:"google/gemini-2.5-pro",name:"Gemini 2.5 Pro",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-01",release_date:"2025-03-20",last_updated:"2025-06-05",modalities:{input:["text","image","audio","video","pdf"],output:["text"]},open_weights:!1,cost:{input:1.25,output:10,cache_read:.31},limit:{context:1048576,output:65536}},"amazon/nova-micro":{id:"amazon/nova-micro",name:"Nova Micro",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-12-03",last_updated:"2024-12-03",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.035,output:.14,cache_read:.00875},limit:{context:128e3,output:8192}},"amazon/nova-lite":{id:"amazon/nova-lite",name:"Nova Lite",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-12-03",last_updated:"2024-12-03",modalities:{input:["text","image","video"],output:["text"]},open_weights:!1,cost:{input:.06,output:.24,cache_read:.015},limit:{context:3e5,output:8192}},"amazon/nova-pro":{id:"amazon/nova-pro",name:"Nova Pro",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2024-12-03",last_updated:"2024-12-03",modalities:{input:["text","image","video"],output:["text"]},open_weights:!1,cost:{input:.8,output:3.2,cache_read:.2},limit:{context:3e5,output:8192}},"morph/morph-v3-large":{id:"morph/morph-v3-large",name:"Morph v3 Large",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-08-15",last_updated:"2024-08-15",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.9,output:1.9},limit:{context:32e3,output:32e3}},"morph/morph-v3-fast":{id:"morph/morph-v3-fast",name:"Morph v3 Fast",attachment:!1,reasoning:!1,temperature:!1,tool_call:!1,release_date:"2024-08-15",last_updated:"2024-08-15",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.8,output:1.2},limit:{context:16e3,output:16e3}},"moonshotai/kimi-k2":{id:"moonshotai/kimi-k2",name:"Kimi K2 Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-14",last_updated:"2025-07-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:3},limit:{context:131072,output:16384}}}},wandb:{id:"wandb",name:"Weights & Biases",api:"https://api.inference.wandb.ai/v1",npm:"@ai-sdk/openai-compatible",doc:"https://weave-docs.wandb.ai/guides/integrations/inference/",env:["WANDB_API_KEY"],models:{"deepseek-ai/DeepSeek-V3-0324":{id:"deepseek-ai/DeepSeek-V3-0324",name:"DeepSeek-V3-0324",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-03-24",last_updated:"2025-03-24",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.14,output:2.75},limit:{context:161e3,output:8192}},"deepseek-ai/DeepSeek-R1-0528":{id:"deepseek-ai/DeepSeek-R1-0528",name:"DeepSeek-R1-0528",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-05",release_date:"2025-05-28",last_updated:"2025-05-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.35,output:5.4},limit:{context:161e3,output:163840}}
554,"Qwen/Qwen3-Coder-480B-A35B-Instruct":{id:"Qwen/Qwen3-Coder-480B-A35B-Instruct",name:"Qwen3-Coder-480B-A35B-Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-23",last_updated:"2025-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1,output:1.5},limit:{context:262144,output:66536}},"Qwen/Qwen3-235B-A22B-Thinking-2507":{id:"Qwen/Qwen3-235B-A22B-Thinking-2507",name:"Qwen3-235B-A22B-Thinking-2507",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-25",last_updated:"2025-07-25",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.1},limit:{context:262144,output:131072}},"Qwen/Qwen3-235B-A22B-Instruct-2507":{id:"Qwen/Qwen3-235B-A22B-Instruct-2507",name:"Qwen3 235B A22B Instruct 2507",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-04-28",last_updated:"2025-07-21",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.1,output:.1},limit:{context:262144,output:131072}},"meta-llama/Llama-4-Scout-17B-16E-Instruct":{id:"meta-llama/Llama-4-Scout-17B-16E-Instruct",name:"Llama 4 Scout 17B 16E Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-12",release_date:"2025-01-31",last_updated:"2025-01-31",modalities:{input:["text","image"],output:["text"]},open_weights:!0,cost:{input:.17,output:.66},limit:{context:64e3,output:8192}},"meta-llama/Llama-3.3-70B-Instruct":{id:"meta-llama/Llama-3.3-70B-Instruct",name:"Llama-3.3-70B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-12-06",last_updated:"2024-12-06",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.71,output:.71},limit:{context:128e3,output:32768}},"meta-llama/Llama-3.1-8B-Instruct":{id:"meta-llama/Llama-3.1-8B-Instruct",name:"Meta-Llama-3.1-8B-Instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-12",release_date:"2024-07-23",last_updated:"2024-07-23",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.22,output:.22},limit:{context:128e3,output:32768}},"microsoft/Phi-4-mini-instruct":{id:"microsoft/Phi-4-mini-instruct",name:"Phi-4-mini-instruct",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2023-10",release_date:"2024-12-11",last_updated:"2024-12-11",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.08,output:.35},limit:{context:128e3,output:4096}},"moonshotai/Kimi-K2-Instruct":{id:"moonshotai/Kimi-K2-Instruct",name:"Kimi-K2-Instruct",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-10",release_date:"2025-07-14",last_updated:"2025-07-14",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:1.35,output:4},limit:{context:128e3,output:16384}}}},xai:{id:"xai",name:"xAI",npm:"@ai-sdk/xai",doc:"https://docs.x.ai/docs/models",env:["XAI_API_KEY"],models:{"grok-3-mini-fast-latest":{id:"grok-3-mini-fast-latest",name:"Grok 3 Mini Fast Latest",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.6,output:4,reasoning:4,cache_read:.15},limit:{context:131072,output:8192}},"grok-3-mini-latest":{id:"grok-3-mini-latest",name:"Grok 3 Mini Latest",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.3,output:.5,reasoning:.5,cache_read:.075},limit:{context:131072,output:8192}},"grok-beta":{id:"grok-beta",name:"Grok Beta",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-11-01",last_updated:"2024-11-01",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:5,output:15,cache_read:5},limit:{context:131072,output:4096}},"grok-3-fast-latest":{id:"grok-3-fast-latest",name:"Grok 3 Fast Latest",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:5,output:25,cache_read:1.25},limit:{context:131072,output:8192}},"grok-3":{id:"grok-3",name:"Grok 3",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.75},limit:{context:131072,output:8192}},"grok-3-mini":{id:"grok-3-mini",name:"Grok 3 Mini",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.3,output:.5,reasoning:.5,cache_read:.075},limit:{context:131072,output:8192}},"grok-2-vision-1212":{id:"grok-2-vision-1212",name:"Grok 2 Vision (1212)",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-08-20",last_updated:"2024-12-12",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:10,cache_read:2},limit:{context:8192,output:4096}},"grok-2":{id:"grok-2",name:"Grok 2",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-08-20",last_updated:"2024-08-20",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:2,output:10,cache_read:2},limit:{context:131072,output:8192}},"grok-2-vision-latest":{id:"grok-2-vision-latest",name:"Grok 2 Vision Latest",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-08-20",last_updated:"2024-12-12",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:10,cache_read:2},limit:{context:8192,output:4096}},"grok-3-latest":{id:"grok-3-latest",name:"Grok 3 Latest",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:15,cache_read:.75},limit:{context:131072,output:8192}},"grok-2-vision":{id:"grok-2-vision",name:"Grok 2 Vision",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-08-20",last_updated:"2024-08-20",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:2,output:10,cache_read:2},limit:{context:8192,output:4096}},"grok-2-latest":{id:"grok-2-latest",name:"Grok 2 Latest",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-08-20",last_updated:"2024-12-12",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:2,output:10,cache_read:2},limit:{context:131072,output:8192}},"grok-3-fast":{id:"grok-3-fast",name:"Grok 3 Fast",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:5,output:25,cache_read:1.25},limit:{context:131072,output:8192}},"grok-2-1212":{id:"grok-2-1212",name:"Grok 2 (1212)",attachment:!1,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-12-12",last_updated:"2024-12-12",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:2,output:10,cache_read:2},limit:{context:131072,output:8192}},"grok-4":{id:"grok-4",name:"Grok 4",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-07",release_date:"2025-07-09",last_updated:"2025-07-09",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:3,output:15,reasoning:15,cache_read:.75},limit:{context:256e3,output:64e3}},"grok-vision-beta":{id:"grok-vision-beta",name:"Grok Vision Beta",attachment:!0,reasoning:!1,temperature:!0,tool_call:!0,knowledge:"2024-08",release_date:"2024-11-01",last_updated:"2024-11-01",modalities:{input:["text","image"],output:["text"]},open_weights:!1,cost:{input:5,output:15,cache_read:5},limit:{context:8192,output:4096}},"grok-3-mini-fast":{id:"grok-3-mini-fast",name:"Grok 3 Mini Fast",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2024-11",release_date:"2025-02-17",last_updated:"2025-02-17",modalities:{input:["text"],output:["text"]},open_weights:!1,cost:{input:.6,output:4,reasoning:4,cache_read:.15},limit:{context:131072,output:8192}}}},zai:{id:"zai",name:"Z.AI",api:"https://api.z.ai/api/paas/v4",npm:"@ai-sdk/openai-compatible",doc:"https://docs.z.ai/guides/overview/pricing",env:["ZHIPU_API_KEY"],models:{"glm-4.5-air":{id:"glm-4.5-air",name:"GLM-4.5-Air",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:1.1,cache_read:.03,cache_write:0},limit:{context:131072,output:98304}}
554,"glm-4.5v":{id:"glm-4.5v",name:"GLM 4.5V",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-08-11",last_updated:"2025-08-11",modalities:{input:["text","image","video"],output:["text"]},open_weights:!0,cost:{input:.6,output:1.8},limit:{context:64e3,output:16384}},"glm-4.5-flash":{id:"glm-4.5-flash",name:"GLM-4.5-Flash",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0,cache_read:0,cache_write:0},limit:{context:131072,output:98304}},"glm-4.5":{id:"glm-4.5",name:"GLM-4.5",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.2,cache_read:.11,cache_write:0},limit:{context:131072,output:98304}}}},"zai-coding-plan":{id:"zai-coding-plan",name:"Z.AI Coding Plan",api:"https://api.z.ai/api/coding/paas/v4",npm:"@ai-sdk/openai-compatible",doc:"https://docs.z.ai/devpack/overview",env:["ZHIPU_API_KEY"],models:{"glm-4.5-air":{id:"glm-4.5-air",name:"GLM-4.5-Air",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0,cache_read:0,cache_write:0},limit:{context:131072,output:98304}},"glm-4.5v":{id:"glm-4.5v",name:"GLM 4.5V",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-08-11",last_updated:"2025-08-11",modalities:{input:["text","image","video"],output:["text"]},open_weights:!0,cost:{input:0,output:0},limit:{context:64e3,output:16384}},"glm-4.5-flash":{id:"glm-4.5-flash",name:"GLM-4.5-Flash",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0,cache_read:0,cache_write:0},limit:{context:131072,output:98304}},"glm-4.5":{id:"glm-4.5",name:"GLM-4.5",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0,cache_read:0,cache_write:0},limit:{context:131072,output:98304}}}},zhipuai:{id:"zhipuai",name:"Zhipu AI",api:"https://open.bigmodel.cn/api/paas/v4",npm:"@ai-sdk/openai-compatible",doc:"https://docs.z.ai/guides/overview/pricing",env:["ZHIPU_API_KEY"],models:{"glm-4.5":{id:"glm-4.5",name:"GLM-4.5",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.6,output:2.2,cache_read:.11,cache_write:0},limit:{context:131072,output:98304}},"glm-4.5-flash":{id:"glm-4.5-flash",name:"GLM-4.5-Flash",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:0,output:0,cache_read:0,cache_write:0},limit:{context:131072,output:98304}},"glm-4.5v":{id:"glm-4.5v",name:"GLM 4.5V",attachment:!0,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-08-11",last_updated:"2025-08-11",modalities:{input:["text","image","video"],output:["text"]},open_weights:!0,cost:{input:.6,output:1.8},limit:{context:64e3,output:16384}},"glm-4.5-air":{id:"glm-4.5-air",name:"GLM-4.5-Air",attachment:!1,reasoning:!0,temperature:!0,tool_call:!0,knowledge:"2025-04",release_date:"2025-07-28",last_updated:"2025-07-28",modalities:{input:["text"],output:["text"]},open_weights:!0,cost:{input:.2,output:1.1,cache_read:.03,cache_write:0},limit:{context:131072,output:98304}}}}};function Wl(e){return function(e,t,n,i){let a="string"==typeof e?e:e.modelId,o="string"==typeof e?void 0:e.usage,s="string"==typeof e?void 0:e.providers;return{context:function(e,t){var n,i,a;let o=Wi("string"==typeof e?e:e.modelId,"string"==typeof e?t:e.providers),s=null==(n=null==o?void 0:o.context)?void 0:n.inputMax,l=null==(i=null==o?void 0:o.context)?void 0:i.outputMax,u=null==(a=null==o?void 0:o.context)?void 0:a.combinedMax;
554return{inputMax:s,outputMax:l,combinedMax:u,totalMax:u,maxInput:s,maxOutput:l,maxTotal:u}}(a,s),costUSD:function(e,t,n){let i="string"==typeof e?e:e.modelId,a=("string"==typeof e?t:e.usage)??{},o=Wi(i,"string"==typeof e?n:e.providers);if(!(null!=o&&o.pricing))return{};let s=Wr(a),l=function(e){var t,n,i;if(!e)return{input:0,output:0,total:0,cacheReads:0,cacheWrites:0,reasoningTokens:0};if("number"==typeof e.input&&"number"==typeof e.output&&("cacheReads"in e||"cacheWrites"in e||"total"in e))return{input:e.input,output:e.output,total:e.total??e.input+e.output,cacheReads:e.cacheReads,cacheWrites:e.cacheWrites,reasoningTokens:e.reasoningTokens};let a=Wr(e),o=[e.cache_read_input_tokens,e.cache_read_tokens,e.prompt_cache_hit_tokens,null==(t=e.prompt_tokens_details)?void 0:t.cached_tokens,null==(n=e.promptTokensDetails)?void 0:n.cachedTokens,e.cachedInputTokens,e.cacheReads].filter(e=>"number"==typeof e),s=[e.cache_creation_input_tokens,e.cache_creation_tokens,e.prompt_cache_write_tokens,null==(i=e.promptTokensDetails)?void 0:i.cacheCreationTokens,e.cacheWrites].filter(e=>"number"==typeof e),l=o[0],u=s[0],c=[e.reasoning_tokens,e.reasoningTokens].filter(e=>"number"==typeof e)[0];return{...a,cacheReads:l,cacheWrites:u,reasoningTokens:c}}(a),u=void 0!==o.pricing.inputPerMTokens?s.input/1e6*o.pricing.inputPerMTokens:void 0,c=void 0!==o.pricing.outputPerMTokens?s.output/1e6*o.pricing.outputPerMTokens:void 0,d=void 0!==o.pricing.reasoningPerMTokens&&"number"==typeof l.reasoningTokens?l.reasoningTokens/1e6*o.pricing.reasoningPerMTokens:void 0,p=void 0!==o.pricing.cacheReadPerMTokens&&"number"==typeof l.cacheReads?l.cacheReads/1e6*o.pricing.cacheReadPerMTokens:void 0,h=void 0!==o.pricing.cacheWritePerMTokens&&"number"==typeof l.cacheWrites?l.cacheWrites/1e6*o.pricing.cacheWritePerMTokens:void 0,m=[u,c,d,p,h].filter(e=>"number"==typeof e),f={inputUSD:u,outputUSD:c,reasoningUSD:d,cacheReadUSD:p,cacheWriteUSD:h,totalUSD:m.length?m.reduce((e,t)=>e+t,0):void 0};return{...f,inputTokenUSD:f.inputUSD,outputTokenUSD:f.outputUSD,reasoningTokenUSD:f.reasoningUSD,cacheReadsUSD:f.cacheReadUSD,cacheWritesUSD:f.cacheWriteUSD}}(a,o,s)}}({modelId:e.modelId,usage:e.usage,providers:e.providers??Ws,reserveOutput:e.reserveOutput})}let Wu=(0,I.createContext)(null),Wc=()=>{let e=(0,I.useContext)(Wu);if(!e)throw Error("Context components must be used within Context");return e},Wd=({usedTokens:e,maxTokens:t,usage:n,modelId:i,...a})=>U.jsx(Wu.Provider,{value:{usedTokens:e,maxTokens:t,usage:n,modelId:i},children:U.jsx(iv,{closeDelay:0,openDelay:0,...a})}),Wp=()=>{let{usedTokens:e,maxTokens:t}=Wc(),n=2*Math.PI*10;return U.jsxs("svg",{"aria-label":"Model context usage",height:"20",role:"img",style:{color:"currentcolor"},viewBox:"0 0 24 24",width:"20",children:[U.jsx("circle",{cx:12,cy:12,fill:"none",opacity:"0.25",r:10,stroke:"currentColor",strokeWidth:2}),U.jsx("circle",{cx:12,cy:12,fill:"none",opacity:"0.7",r:10,stroke:"currentColor",strokeDasharray:`${n} ${n}`,strokeDashoffset:n*(1-e/t),strokeLinecap:"round",strokeWidth:2,style:{transformOrigin:"center",transform:"rotate(-90deg)"}})]})},Wh=({children:e,...t})=>{let{usedTokens:n,maxTokens:i}=Wc(),a=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}).format(n/i);return U.jsx(iy,{asChild:!0,children:e??U.jsxs(ne,{type:"button",variant:"ghost",...t,children:[U.jsx("span",{className:"font-medium text-muted-foreground",children:a}),U.jsx(Wp,{})]})})},Wm=({className:e,...t})=>U.jsx(ib,{className:t8("min-w-60 divide-y overflow-hidden p-0",e),...t}),Wf=({children:e,className:t,...n})=>{let{usedTokens:i,maxTokens:a}=Wc(),o=i/a,s=new Intl.NumberFormat("en-US",{style:"percent",maximumFractionDigits:1}).format(o),l=new Intl.NumberFormat("en-US",{notation:"compact"}).format(i),u=new Intl.NumberFormat("en-US",{notation:"compact"}).format(a);return U.jsx("div",{className:t8("w-full space-y-2 p-3",t),...n,children:e??U.jsxs(U.Fragment,{children:[U.jsxs("div",{className:"flex items-center justify-between gap-3 text-xs",children:[U.jsx("p",{children:s}),U.jsxs("p",{className:"font-mono text-muted-foreground",children:[l," / ",u]})]}),U.jsx("div",{className:"space-y-2",children:U.jsx(Wn,{className:"bg-muted",value:100*o})})]})})},Wg=({children:e,className:t,...n})=>U.jsx("div",{className:t8("w-full p-3",t),...n,children:e}),Wx=({children:e,className:t,...n})=>{var i;let{modelId:a,usage:o}=Wc(),s=a?null==(i=Wl({modelId:a,usage:{input:(null==o?void 0:o.inputTokens)??0,output:(null==o?void 0:o.outputTokens)??0}}).costUSD)?void 0:i.totalUSD:void 0,l=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(s??0);return U.jsx("div",{className:t8("flex w-full items-center justify-between gap-3 bg-secondary p-3 text-xs",t),...n,children:e??U.jsxs(U.Fragment,{children:[U.jsx("span",{className:"text-muted-foreground",children:"Total cost"}),U.jsx("span",{children:l})]})})},Wv=({className:e,children:t,...n})=>{var i;let{usage:a,modelId:o}=Wc(),s=(null==a?void 0:a.inputTokens)??0;if(t)return t;if(!s)return null;let l=o?null==(i=Wl({modelId:o,usage:{input:s,output:0}}).costUSD)?void 0:i.totalUSD:void 0,u=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l??0);return U.jsxs("div",{className:t8("flex items-center justify-between text-xs",e),...n,children:[U.jsx("span",{className:"text-muted-foreground",children:"Input"}),U.jsx(Wk,{costText:u,tokens:s})]})},Wy=({className:e,children:t,...n})=>{var i;let{usage:a,modelId:o}=Wc(),s=(null==a?void 0:a.outputTokens)??0;if(t)return t;if(!s)return null;let l=o?null==(i=Wl({modelId:o,usage:{input:0,output:s}}).costUSD)?void 0:i.totalUSD:void 0,u=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l??0);return U.jsxs("div",{className:t8("flex items-center justify-between text-xs",e),...n,children:[U.jsx("span",{className:"text-muted-foreground",children:"Output"}),U.jsx(Wk,{costText:u,tokens:s})]})},Wb=({className:e,children:t,...n})=>{var i;let{usage:a,modelId:o}=Wc(),s=(null==a?void 0:a.reasoningTokens)??0;if(t)return t;if(!s)return null;let l=o?null==(i=Wl({modelId:o,usage:{reasoningTokens:s}}).costUSD)?void 0:i.totalUSD:void 0,u=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l??0);return U.jsxs("div",{className:t8("flex items-center justify-between text-xs",e),...n,children:[U.jsx("span",{className:"text-muted-foreground",children:"Reasoning"}),U.jsx(Wk,{costText:u,tokens:s})]})},Ww=({className:e,children:t,...n})=>{var i;let{usage:a,modelId:o}=Wc(),s=(null==a?void 0:a.cachedInputTokens)??0;if(t)return t;if(!s)return null;let l=o?null==(i=Wl({modelId:o,usage:{cacheReads:s,input:0,output:0}}).costUSD)?void 0:i.totalUSD:void 0,u=new Intl.NumberFormat("en-US",{style:"currency",currency:"USD"}).format(l??0);return U.jsxs("div",{className:t8("flex items-center justify-between text-xs",e),...n,children:[U.jsx("span",{className:"text-muted-foreground",children:"Cache"}),U.jsx(Wk,{costText:u,tokens:s})]})},Wk=({tokens:e,costText:t})=>U.jsxs("span",{children:[void 0===e?"—":new Intl.NumberFormat("en-US",{notation:"compact"}).format(e),t?U.jsxs("span",{className:"ml-2 text-muted-foreground",children:["• ",t]}):null]}),W_=({fromX:e,fromY:t,toX:n,toY:i})=>U.jsxs("g",{children:[U.jsx("path",{className:"animated",d:`M${e},${t} C ${e+(n-e)*.5},${t} ${e+(n-e)*.5},${i} ${n},${i}`,fill:"none",stroke:"var(--color-ring)",strokeWidth:1}),U.jsx("circle",{cx:n,cy:i,fill:"#fff",r:3,stroke:"var(--color-ring)",strokeWidth:1})]}),WT=({className:e,children:t,...n})=>U.jsxs("div",{className:t8("flex items-center gap-0.5 text-muted-foreground overflow-hidden",e),...n,children:[t,U.jsx(wE,{})]}),WE=({className:e,children:t,...n})=>t??U.jsx(et,{className:t8("size-4 shrink-0",e),...n}),WS=({children:e,className:t,variant:n="ghost",size:i="sm",tooltip:a,...o})=>a?U.jsxs(w8,{children:[U.jsx(w9,{asChild:!0,children:U.jsx(ne,{size:i,type:"button",variant:n,...o,children:e})}),U.jsx(ke,{align:"start",side:"bottom",children:a})]}):U.jsx(ne,{size:i,type:"button",variant:n,...o,children:e}),WA=(0,I.createContext)(null),WC=()=>{let e=(0,I.useContext)(WA);if(!e)throw Error("ChainOfThought components must be used within ChainOfThought");return e},WN=(0,I.memo)(({className:e,open:t,defaultOpen:n=!1,onOpenChange:i,children:a,...o})=>{let[s,l]=na({prop:t,defaultProp:n,onChange:i}),u=(0,I.useMemo)(()=>({isOpen:s,setIsOpen:l}),[s,l]);return U.jsx(WA.Provider,{value:u,children:U.jsx("div",{className:t8("not-prose max-w-prose space-y-4",e),...o,children:a})})}),WI=(0,I.memo)(({className:e,children:t,...n})=>{let{isOpen:i,setIsOpen:a}=WC();return U.jsx(kC,{onOpenChange:a,open:i,children:U.jsxs(kN,{className:t8("flex w-full items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",e),...n,children:[U.jsx(en,{className:"size-4"}),U.jsx("span",{className:"flex-1 text-left",children:t??"Chain of Thought"}),U.jsx(ei,{className:t8("size-4 transition-transform",i?"rotate-180":"rotate-0")})]})})}),WM=(0,I.memo)(({className:e,icon:t=eg,label:n,description:i,status:a="complete",children:o,...s})=>U.jsxs("div",{className:t8("flex gap-2 text-sm",{complete:"text-muted-foreground",active:"text-foreground",pending:"text-muted-foreground
554/50"}[a],"fade-in-0 slide-in-from-top-2 animate-in",e),...s,children:[U.jsxs("div",{className:"relative mt-0.5",children:[U.jsx(t,{className:"size-4"}),U.jsx("div",{className:"-mx-px absolute top-7 bottom-0 left-1/2 w-px bg-border"})]}),U.jsxs("div",{className:"flex-1 space-y-2 overflow-hidden",children:[U.jsx("div",{children:n}),i&&U.jsx("div",{className:"text-muted-foreground text-xs",children:i}),o]})]})),WP=(0,I.memo)(({className:e,...t})=>U.jsx("div",{className:t8("flex flex-wrap items-center gap-2",e),...t})),WR=(0,I.memo)(({className:e,children:t,...n})=>U.jsx(CX,{className:t8("gap-1 px-2 py-0.5 font-normal text-xs",e),variant:"secondary",...n,children:t})),WD=(0,I.memo)(({className:e,children:t,...n})=>{let{isOpen:i}=WC();return U.jsx(kC,{open:i,children:U.jsx(kI,{className:t8("mt-2 space-y-3","data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",e),...n,children:t})})}),WL=(0,I.memo)(({className:e,children:t,caption:n,...i})=>U.jsxs("div",{className:t8("mt-2 space-y-2",e),...i,children:[U.jsx("div",{className:"relative flex max-h-[22rem] items-center justify-center overflow-hidden rounded-lg bg-muted p-3",children:t}),n&&U.jsx("p",{className:"text-muted-foreground text-xs",children:n})]}));WN.displayName="ChainOfThought",WI.displayName="ChainOfThoughtHeader",WM.displayName="ChainOfThoughtStep",WP.displayName="ChainOfThoughtSearchResults",WR.displayName="ChainOfThoughtSearchResult",WD.displayName="ChainOfThoughtContent",WL.displayName="ChainOfThoughtImage";let WO=({base64:e,uint8Array:t,mediaType:n,...i})=>U.jsx("img",{...i,alt:i.alt,className:t8("h-auto max-w-full overflow-hidden rounded-md",i.className),src:`data:${n};base64,${e}`});function WB(e){return"[object Object]"===Object.prototype.toString.call(e)||Array.isArray(e)}function Wj(e,t){let n=Object.keys(e),i=Object.keys(t);return n.length===i.length&&JSON.stringify(Object.keys(e.breakpoints||{}))===JSON.stringify(Object.keys(t.breakpoints||{}))&&n.every(n=>{let i=e[n],a=t[n];return"function"==typeof i?`${i}`==`${a}`:WB(i)&&WB(a)?Wj(i,a):i===a})}function Wz(e){return e.concat().sort((e,t)=>e.name>t.name?1:-1).map(e=>e.options)}function WF(e){return"number"==typeof e}function WH(e){return"string"==typeof e}function WU(e){return"boolean"==typeof e}function WG(e){return"[object Object]"===Object.prototype.toString.call(e)}function Wq(e){return Math.abs(e)}function WV(e){return Math.sign(e)}function WW(e){return WQ(e).map(Number)}function WY(e){return e[WK(e)]}function WK(e){return Math.max(0,e.length-1)}function WX(e,t=0){return Array.from(Array(e),(e,n)=>t+n)}function WQ(e){return Object.keys(e)}function WZ(e,t){return"u">typeof t.MouseEvent&&e instanceof t.MouseEvent}function W$(){let e=[],t={add:function(n,i,a,o={passive:!0}){let s;return"addEventListener"in n?(n.addEventListener(i,a,o),s=()=>n.removeEventListener(i,a,o)):(n.addListener(a),s=()=>n.removeListener(a)),e.push(s),t},clear:function(){e=e.filter(e=>e())}};return t}function WJ(e=0,t=0){let n=Wq(e-t);function i(n){return n<e||n>t}return{length:n,max:t,min:e,constrain:function(n){return i(n)?n<e?e:t:n},reachedAny:i,reachedMax:function(e){return e>t},reachedMin:function(t){return t<e},removeOffset:function(e){return n?e-n*Math.ceil((e-t)/n):e}}}function W0(e){let t=e;function n(e){return WF(e)?e:e.get()}return{get:function(){return t},set:function(e){t=n(e)},add:function(e){t+=n(e)},subtract:function(e){t-=n(e)}}}function W1(e,t){let n="x"===e.scroll?function(e){return`translate3d(${e}px,0px,0px)`}:function(e){return`translate3d(0px,${e}px,0px)`},i=t.style,a=null,o=!1;return{clear:function(){o||(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))},to:function(t){if(o)return;let s=Math.round(100*e.direction(t))/100;s!==a&&(i.transform=n(s),a=s)},toggleActive:function(e){o=!e}}}let W2={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function W4(e,t,n){let i;let a=e.ownerDocument,o=a.defaultView,s=function(e){function t(e,t){return function e(t,n){return[t,n].reduce((t,n)=>
554(WQ(n).forEach(i=>{let a=t[i],o=n[i],s=WG(a)&&WG(o);t[i]=s?e(a,o):o}),t),{})}(e,t||{})}return{mergeOptions:t,optionsAtMedia:function(n){let i=n.breakpoints||{},a=WQ(i).filter(t=>e.matchMedia(t).matches).map(e=>i[e]).reduce((e,n)=>t(e,n),{});return t(n,a)},optionsMediaQueries:function(t){return t.map(e=>WQ(e.breakpoints||{})).reduce((e,t)=>e.concat(t),[]).map(e.matchMedia)}}}(o),l=(i=[],{init:function(e,t){return(i=t.filter(({options:e})=>!1!==s.optionsAtMedia(e).active)).forEach(t=>t.init(e,s)),t.reduce((e,t)=>Object.assign(e,{[t.name]:t}),{})},destroy:function(){i=i.filter(e=>e.destroy())}}),u=W$(),c=function(){let e={},t,n={init:function(e){t=e},emit:function(i){return(e[i]||[]).forEach(e=>e(t,i)),n},off:function(t,i){return e[t]=(e[t]||[]).filter(e=>e!==i),n},on:function(t,i){return e[t]=(e[t]||[]).concat([i]),n},clear:function(){e={}}};return n}(),{mergeOptions:d,optionsAtMedia:p,optionsMediaQueries:h}=s,{on:m,off:f,emit:g}=c,x=!1,v,b=d(W2,W4.globalOptions),w=d(b),k=[],_,T,E;function A(t,n){x||(w=p(b=d(b,t)),k=n||k,function(){let{container:t,slides:n}=w;T=(WH(t)?e.querySelector(t):t)||e.children[0];let i=WH(n)?T.querySelectorAll(n):n;E=[].slice.call(i||T.children)}(),v=function t(n){let i=function(e,t,n,i,a,o,s){let l,u;let{align:c,axis:d,direction:p,startIndex:h,loop:m,duration:f,dragFree:g,dragThreshold:x,inViewThreshold:v,slidesToScroll:b,skipSnaps:w,containScroll:k,watchResize:_,watchSlides:T,watchDrag:E,watchFocus:A}=o,C={measure:function(e){let{offsetTop:t,offsetLeft:n,offsetWidth:i,offsetHeight:a}=e;return{top:t,right:n+i,bottom:t+a,left:n,width:i,height:a}}},N=C.measure(t),I=n.map(C.measure),M=function(e,t){let n="rtl"===t,i="y"===e,a=!i&&n?-1:1;return{scroll:i?"y":"x",cross:i?"x":"y",startEdge:i?"top":n?"right":"left",endEdge:i?"bottom":n?"left":"right",measureSize:function(e){let{height:t,width:n}=e;return i?t:n},direction:function(e){return e*a}}}(d,p),P=M.measureSize(N),R={measure:function(e){return e/100*P}},D=function(e,t){let n={start:function(){return 0},center:function(e){return(t-e)/2},end:function(e){return t-e}};return{measure:function(i,a){return WH(e)?n[e](i):e(t,i,a)}}}(c,P),L=!m&&!!k,{slideSizes:O,slideSizesWithGaps:B,startGap:j,endGap:z}=function(e,t,n,i,a,o){let{measureSize:s,startEdge:l,endEdge:u}=e,c=n[0]&&a,d=function(){if(!c)return 0;let e=n[0];return Wq(t[l]-e[l])}(),p=c?parseFloat(o.getComputedStyle(WY(i)).getPropertyValue(`margin-${u}`)):0,h=n.map(s),m=n.map((e,t,n)=>{let i=t===WK(n);return t?i?h[t]+p:n[t+1][l]-e[l]:h[t]+d}).map(Wq);return{slideSizes:h,slideSizesWithGaps:m,startGap:d,endGap:p}}(M,N,I,n,m||!!k,a),F=function(e,t,n,i,a,o,s,l,u){let{startEdge:c,endEdge:d,direction:p}=e,h=WF(n);return{groupSlides:function(e){return h?WW(e).filter(e=>e%n==0).map(t=>e.slice(t,t+n)):e.length?WW(e).reduce((n,u,h)=>{let m=WY(n)||0,f=u===WK(e),g=a[c]-o[m][c],x=a[c]-o[u][d],v=i||0!==m?0:p(s),b=Wq(x-(!i&&f?p(l):0)-(g+v));return h&&b>t+2&&n.push(u),f&&n.push(e.length),n},[]).map((t,n,i)=>{let a=Math.max(i[n-1]||0);return e.slice(a,t)}):[]}}}(M,P,b,m,N,I,j,z,0),{snaps:H,snapsAligned:U}=function(e,t,n,i,a){let{startEdge:o,endEdge:s}=e,{groupSlides:l}=a,u=l(i).map(e=>WY(e)[s]-e[0][o]).map(Wq).map(t.measure),c=i.map(e=>n[o]-e[o]).map(e=>-Wq(e)),d=l(c).map(e=>e[0]).map((e,t)=>e+u[t]);return{snaps:c,snapsAligned:d}}(M,D,N,I,F),G=-WY(H)+WY(B),{snapsContained:q,scrollContainLimit:V}=function(e,t,n,i,a){let o=WJ(-t+e,0),s=n.map((e,t)=>{let{min:i,max:a}=o,s=o.constrain(e),l=t===WK(n);return t?l||1>=Wq(i-s)?i:1>=Wq(a-s)?a:s:a}).map(e=>parseFloat(e.toFixed(3))),l=function(){let e=s[0],t=WY(s);return WJ(s.lastIndexOf(e),s.indexOf(t)+1)}();return{snapsContained:function(){if(t<=e+2)return[o.max];if("keepSnaps"===i)return s;let{min:n,max:a}=l;return s.slice(n,a)}(),scrollContainLimit:l}}(P,G,U,k,0),W=L?q:U,{limit:Y}=function(e,t,n){let i=t[0];return{limit:WJ(n?i-e:WY(t),i)}}(G,W,m),K=function e(t,n,i){let{constrain:a}=WJ(0,t),o=t+1,s=l(n);function l(e){return i?Wq((o+e)%o):a(e)}function u(){return e(t,s,i)}let c={get:function(){return s},set:function(e){return s=l(e),c},add:function(e){return u().set(s+e)},clone:u};return c}(WK(W),h,m),X=K.clone(),Q=WW(n),Z=({dragHandler:e,scrollBody:t,scrollBounds:n,options:{loop:i}})=>{i||n.constrain(e.pointerDown()),t.seek()},$=({scrollBody:e,translate:t,location:n,offsetLocation:i,previousLocation:a,scrollLooper:o,slideLooper:s,dragHandler:l,animation:u,eventHandler:c,scrollBounds:d,options:{loop:p}},h)=>{let m=e.settled(),f=!d.shouldConstrain(),g=p?m:m&&f,x=g&&!l.pointerDown();x&&u.stop();let v=n.get()*h+a.get()*(1-h);i.set(v),p&&(o.loop(e.direction()),s.loop()),t.to(i.get()),x&&c.emit("settle"),g||c.emit("scroll")},J=function(e,t,n,i){let a=W$(),o=1e3/60,s=null,l=0,u=0;function c(e){if(!u)return;s||(s=e,n(),n());let a=e-s;for(s=e,l+=a;l>=o;)n(),l-=o;i(l/o),u&&(u=t.requestAnimationFrame(c))}function d(){t.cancelAnimationFrame(u),s=null,l=0,u=0}return{init:function(){a.add(e,"visibilitychange",()=>{e.hidden&&(s=null,l=0)})},destroy:function(){d(),a.clear()},start:function(){u||(u=t.requestAnimationFrame(c))},stop:d,update:n,render:i}}(i,a,()=>Z(eh),e=>$(eh,e)),ee=W[K.get()],et=W0(ee),en=W0(ee),er=W0(ee),ei=W0(ee),ea=function(e,t,n,i,a,o){let s=0,l=0,u=a,c=.68,d=e.get(),p=0;function h(e){return u=e,f}function m(e){return c=e,f}let f={direction:function(){return l},duration:function(){return u},velocity:function(){return s},seek:function(){let t=i.get()-e.get(),a=0;return u?(n.set(e),s+=t/u,s*=c,d+=s,e.add(s),a=d-p):(s=0,n.set(i),e.set(i),a=t),l=WV(a),p=d,f},settled:function(){return .001>Wq(i.get()-t.get())},useBaseFriction:function(){return m(.68)},useBaseDuration:function(){return h(a)},useFriction:m,useDuration:h};return f}(et,er,en,ei,f,0),eo=function(e,t,n,i,a){let{reachedAny:o,removeOffset:s,constrain:l}=i;function u(e){return e.concat().sort((e,t)=>
554Wq(e)-Wq(t))[0]}function c(t,i){let a=[t,t+n,t-n];if(!e)return t;if(!i)return u(a);let o=a.filter(e=>WV(e)===i);return o.length?u(o):WY(a)-n}return{byDistance:function(n,i){let u=a.get()+n,{index:d,distance:p}=function(n){let i=e?s(n):l(n),{index:a}=t.map((e,t)=>({diff:c(e-i,0),index:t})).sort((e,t)=>Wq(e.diff)-Wq(t.diff))[0];return{index:a,distance:i}}(u),h=!e&&o(u);if(!i||h)return{index:d,distance:n};let m=n+c(t[d]-p,0);return{index:d,distance:m}},byIndex:function(e,n){let i=c(t[e]-a.get(),n);return{index:e,distance:i}},shortcut:c}}(m,W,G,Y,ei),es=function(e,t,n,i,a,o,s){function l(a){let l=a.distance,u=a.index!==t.get();o.add(l),l&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),u&&(n.set(t.get()),t.set(a.index),s.emit("select"))}return{distance:function(e,t){l(a.byDistance(e,t))},index:function(e,n){let i=t.clone().set(e);l(a.byIndex(i.get(),n))}}}(J,K,X,ea,eo,ei,s),el=function(e){let{max:t,length:n}=e;return{get:function(e){return n?-((e-t)/n):0}}}(Y),eu=W$(),ec=function(e,t,n,i){let a={},o=null,s=null,l,u=!1;return{init:function(){l=new IntersectionObserver(e=>{u||(e.forEach(e=>{a[t.indexOf(e.target)]=e}),o=null,s=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:i}),t.forEach(e=>l.observe(e))},destroy:function(){l&&l.disconnect(),u=!0},get:function(e=!0){if(e&&o)return o;if(!e&&s)return s;let t=WQ(a).reduce((t,n)=>{let i=parseInt(n),{isIntersecting:o}=a[i];return(e&&o||!e&&!o)&&t.push(i),t},[]);return e&&(o=t),e||(s=t),t}}}(t,n,s,v),{slideRegistry:ed}=function(e,t,n,i,a,o){let{groupSlides:s}=a,{min:l,max:u}=i;return{slideRegistry:function(){let i=s(o);return 1===n.length?[o]:e&&"keepSnaps"!==t?i.slice(l,u).map((e,t,n)=>{let i=t===WK(n);return t?i?WX(WK(o)-WY(n)[0]+1,WY(n)[0]):e:WX(WY(n[0])+1)}):i}()}}(L,k,W,V,F,Q),ep=function(e,t,n,i,a,o,s,l){let u={passive:!0,capture:!0},c=0;function d(e){"Tab"===e.code&&(c=new Date().getTime())}return{init:function(p){l&&(o.add(document,"keydown",d,!1),t.forEach((t,d)=>{o.add(t,"focus",t=>{(WU(l)||l(p,t))&&function(t){if(new Date().getTime()-c>10)return;s.emit("slideFocusStart"),e.scrollLeft=0;let o=n.findIndex(e=>e.includes(t));WF(o)&&(a.useDuration(0),i.index(o,0),s.emit("slideFocus"))}(d)},u)}))}}}(e,n,ed,es,ea,eu,s,A),eh={ownerDocument:i,ownerWindow:a,eventHandler:s,containerRect:N,slideRects:I,animation:J,axis:M,dragHandler:function(e,t,n,i,a,o,s,l,u,c,d,p,h,m,f,g,x,v,b){let{cross:w,direction:k}=e,_=["INPUT","SELECT","TEXTAREA"],T={passive:!1},E=W$(),A=W$(),C=WJ(50,225).constrain(m.measure(20)),N={mouse:300,touch:400},I={mouse:500,touch:600},M=f?43:25,P=!1,R=0,D=0,L=!1,O=!1,B=!1,j=!1;function z(e){if(!WZ(e,i)&&e.touches.length>=2)return F(e);let t=o.readPoint(e),n=o.readPoint(e,w),s=Wq(t-R),u=Wq(n-D);if(!O&&!j&&(!e.cancelable||!(O=s>u)))return F(e);let d=o.pointerMove(e);s>g&&(B=!0),c.useFriction(.3).useDuration(.75),l.start(),a.add(k(d)),e.preventDefault()}function F(e){let t=d.byDistance(0,!1).index!==p.get(),n=o.pointerUp(e)*(f?I:N)[j?"mouse":"touch"],i=function(e,t){let n=p.add(-1*WV(e)),i=d.byDistance(e,!f).distance;return f||Wq(e)<C?i:x&&t?.5*i:d.byIndex(n.get(),0).distance}(k(n),t),a=function(e,t){var n,i;if(0===e||0===t||Wq(e)<=Wq(t))return 0;let a=(n=Wq(e),i=Wq(t),Wq(n-i));return Wq(a/e)}(n,i);O=!1,L=!1,A.clear(),c.useDuration(M-10*a).useFriction(.68+a/50),u.distance(i,!f),j=!1,h.emit("pointerUp")}function H(e){B&&(e.stopPropagation(),e.preventDefault(),B=!1)}return{init:function(e){b&&E.add(t,"dragstart",e=>e.preventDefault(),T).add(t,"touchmove",()=>{},T).add(t,"touchend",()=>{}).add(t,"touchstart",l).add(t,"mousedown",l).add(t,"touchcancel",F).add(t,"contextmenu",F).add(t,"click",H,!0);function l(l){(WU(b)||b(e,l))&&function(e){let l=WZ(e,i);j=l,B=f&&l&&!e.buttons&&P,P=Wq(a.get()-s.get())>=2,!(l&&0!==e.button)&&(function(e){let t=e.nodeName||"";return _.includes(t)}(e.target)||(L=!0,o.pointerDown(e),c.useFriction(0).useDuration(0),a.set(s),function(){let e=j?n:t;A.add(e,"touchmove",z,T).add(e,"touchend",F).add(e,"mousemove",z,T).add(e,"mouseup",F)}(),R=o.readPoint(e),D=o.readPoint(e,w),h.emit("pointerDown")))}(l)}},destroy:function(){E.clear(),A.clear()},pointerDown:function(){return L}}}(M,e,i,a,ei,function(e,t){let n,i;function a(e){return e.timeStamp}function o(n,i){let a=`client${"x"===(i||e.scroll)?"X":"Y"}`;return(WZ(n,t)?n:n.touches[0])[a]}return{pointerDown:function(e){return n=e,i=e,o(e)},pointerMove:function(e){let t=o(e)-o(i),s=a(e)-a(n)>170;return i=e,s&&(n=e),t},pointerUp:function(e){if(!n||!i)return 0;let t=o(i)-o(n),s=a(e)-a(n),l=a(e)-a(i)>170,u=t/s;return s&&!l&&Wq(u)>.1?u:0},readPoint:o}}(M,a),et,J,es,ea,eo,K,s,R,g,x,w,0,E),eventStore:eu,percentOfView:R,index:K,indexPrevious:X,limit:Y,location:et,offsetLocation:er,previousLocation:en,options:o,resizeHandler:function(e,t,n,i,a,o,s){let l=[e].concat(i),u,c,d=[],p=!1;function h(e){return a.measureSize(s.measure(e))}return{init:function(a){o&&(c=h(e),d=i.map(h),u=new ResizeObserver(n=>{(WU(o)||o(a,n))&&function(n){for(let o of n){if(p)return;let n=o.target===e,s=i.indexOf(o.target),l=n?c:d[s];if(Wq(h(n?e:i[s])-l)>=.5){a.reInit(),t.emit("resize");break}}}(n)}),n.requestAnimationFrame(()=>
554{l.forEach(e=>u.observe(e))}))},destroy:function(){p=!0,u&&u.disconnect()}}}(t,s,a,n,M,_,C),scrollBody:ea,scrollBounds:function(e,t,n,i,a){let o=a.measure(10),s=a.measure(50),l=WJ(.1,.99),u=!1;function c(){return!(u||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}return{shouldConstrain:c,constrain:function(a){if(!c())return;let u=e.reachedMin(t.get())?"min":"max",d=Wq(e[u]-t.get()),p=n.get()-t.get(),h=l.constrain(d/s);n.subtract(p*h),!a&&Wq(p)<o&&(n.set(e.constrain(n.get())),i.useDuration(25).useBaseFriction())},toggleActive:function(e){u=!e}}}(Y,er,ei,ea,R),scrollLooper:function(e,t,n,i){let{reachedMin:a,reachedMax:o}=WJ(t.min+.1,t.max+.1);return{loop:function(t){if(!(1===t?o(n.get()):-1===t&&a(n.get())))return;let s=-1*t*e;i.forEach(e=>e.add(s))}}}(G,Y,er,[et,er,en,ei]),scrollProgress:el,scrollSnapList:W.map(el.get),scrollSnaps:W,scrollTarget:eo,scrollTo:es,slideLooper:function(e,t,n,i,a,o,s,l,u){let c=WW(a),d=m(h(WW(a).reverse(),s[0]),n,!1).concat(m(h(c,t-s[0]-1),-n,!0));function p(e,t){return e.reduce((e,t)=>e-a[t],t)}function h(e,t){return e.reduce((e,n)=>p(e,t)>0?e.concat([n]):e,[])}function m(a,s,c){let d=o.map((e,n)=>({start:e-i[n]+.5+s,end:e+t-.5+s}));return a.map(t=>{let i=c?0:-n,a=c?n:0,o=d[t][c?"end":"start"];return{index:t,loopPoint:o,slideLocation:W0(-1),translate:W1(e,u[t]),target:()=>l.get()>o?i:a}})}return{canLoop:function(){return d.every(({index:e})=>.1>=p(c.filter(t=>t!==e),t))},clear:function(){d.forEach(e=>e.translate.clear())},loop:function(){d.forEach(e=>{let{target:t,translate:n,slideLocation:i}=e,a=t();a!==i.get()&&(n.to(a),i.set(a))})},loopPoints:d}}(M,P,G,O,B,H,W,er,n),slideFocus:ep,slidesHandler:(u=!1,{init:function(e){T&&(l=new MutationObserver(t=>{u||(WU(T)||T(e,t))&&function(t){for(let n of t)if("childList"===n.type){e.reInit(),s.emit("slidesChanged");break}}(t)})).observe(t,{childList:!0})},destroy:function(){l&&l.disconnect(),u=!0}}),slidesInView:ec,slideIndexes:Q,slideRegistry:ed,slidesToScroll:F,target:ei,translate:W1(M,t)};return eh}(e,T,E,a,o,n,c);return n.loop&&!i.slideLooper.canLoop()?t(Object.assign({},n,{loop:!1})):i}(w),h([b,...k.map(({options:e})=>e)]).forEach(e=>u.add(e,"change",C)),w.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(P),v.eventHandler.init(P),v.resizeHandler.init(P),v.slidesHandler.init(P),v.options.loop&&v.slideLooper.loop(),T.offsetParent&&E.length&&v.dragHandler.init(P),_=l.init(P,k)))}function C(e,t){let n=M();N(),A(d({startIndex:n},e),t),c.emit("reInit")}function N(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),l.destroy(),u.clear()}function I(e,t,n){!w.active||x||(v.scrollBody.useBaseFriction().useDuration(!0===t?0:w.duration),v.scrollTo.index(e,n||0))}function M(){return v.index.get()}let P={canScrollNext:function(){return v.index.add(1).get()!==M()},canScrollPrev:function(){return v.index.add(-1).get()!==M()},containerNode:function(){return T},internalEngine:function(){return v},destroy:function(){x||(x=!0,u.clear(),N(),c.emit("destroy"),c.clear())},off:f,on:m,emit:g,plugins:function(){return _},previousScrollSnap:function(){return v.indexPrevious.get()},reInit:C,rootNode:function(){return e},scrollNext:function(e){I(v.index.add(1).get(),e,-1)},scrollPrev:function(e){I(v.index.add(-1).get(),e,1)},scrollProgress:function(){return v.scrollProgress.get(v.offsetLocation.get())},scrollSnapList:function(){return v.scrollSnapList},scrollTo:I,selectedScrollSnap:M,slideNodes:function(){return E},slidesInView:function(){return v.slidesInView.get()},slidesNotInView:function(){return v.slidesInView.get(!1)}};return A(t,n),setTimeout(()=>c.emit("init"),0),P}function W5(e={},t=[]){let n=(0,I.useRef)(e),i=(0,I.useRef)(t),[a,o]=(0,I.useState)(),[s,l]=(0,I.useState)(),u=(0,I.useCallback)(()=>{a&&a.reInit(n.current,i.current)},[a]);return(0,I.useEffect)(()=>{Wj(n.current,e)||(n.current=e,u())},[e,u]),(0,I.useEffect)(()=>{(function(e,t){if(e.length!==t.length)return!1;let n=Wz(e),i=Wz(t);return n.every((e,t)=>Wj(e,i[t]))})(i.current,t)||(i.current=t,u())},[t,u]),(0,I.useEffect)(()=>
554{if("u">typeof window&&window.document&&window.document.createElement&&s){W4.globalOptions=W5.globalOptions;let e=W4(s,n.current,i.current);return o(e),()=>e.destroy()}o(void 0)},[s,o]),[l,a]}W4.globalOptions=void 0,W5.globalOptions=void 0;let W3=I.createContext(null);function W6(){let e=I.useContext(W3);if(!e)throw Error("useCarousel must be used within a <Carousel />");return e}function W7({orientation:e="horizontal",opts:t,setApi:n,plugins:i,className:a,children:o,...s}){let[l,u]=W5({...t,axis:"horizontal"===e?"x":"y"},i),[c,d]=I.useState(!1),[p,h]=I.useState(!1),m=I.useCallback(e=>{e&&(d(e.canScrollPrev()),h(e.canScrollNext()))},[]),f=I.useCallback(()=>{null==u||u.scrollPrev()},[u]),g=I.useCallback(()=>{null==u||u.scrollNext()},[u]),x=I.useCallback(e=>{"ArrowLeft"===e.key?(e.preventDefault(),f()):"ArrowRight"===e.key&&(e.preventDefault(),g())},[f,g]);return I.useEffect(()=>{u&&n&&n(u)},[u,n]),I.useEffect(()=>{if(u)return m(u),u.on("reInit",m),u.on("select",m),()=>{null==u||u.off("select",m)}},[u,m]),U.jsx(W3.Provider,{value:{carouselRef:l,api:u,opts:t,orientation:e||((null==t?void 0:t.axis)==="y"?"vertical":"horizontal"),scrollPrev:f,scrollNext:g,canScrollPrev:c,canScrollNext:p},children:U.jsx("div",{onKeyDownCapture:x,className:t8("relative",a),role:"region","aria-roledescription":"carousel","data-slot":"carousel",...s,children:o})})}function W8({className:e,...t}){let{carouselRef:n,orientation:i}=W6();return U.jsx("div",{ref:n,className:"overflow-hidden","data-slot":"carousel-content",children:U.jsx("div",{className:t8("flex","horizontal"===i?"-ml-4":"-mt-4 flex-col",e),...t})})}function W9({className:e,...t}){let{orientation:n}=W6();return U.jsx("div",{role:"group","aria-roledescription":"slide","data-slot":"carousel-item",className:t8("min-w-0 shrink-0 grow-0 basis-full","horizontal"===n?"pl-4":"pt-4",e),...t})}let Ye=({className:e,...t})=>U.jsx("span",{className:t8("group inline items-center gap-1",e),...t}),Yt=({className:e,...t})=>U.jsx("span",{className:t8("transition-colors group-hover:bg-accent",e),...t}),Yn=e=>U.jsx(iv,{closeDelay:0,openDelay:0,...e}),Yr=({sources:e,className:t,...n})=>U.jsx(iy,{asChild:!0,children:U.jsx(CX,{className:t8("ml-1 rounded-full",t),variant:"secondary",...n,children:e[0]?U.jsxs(U.Fragment,{children:[new URL(e[0]).hostname," ",e.length>1&&`+${e.length-1}`]}):"unknown"})}),Yi=({className:e,...t})=>U.jsx(ib,{className:t8("relative w-80 p-0",e),...t}),Ya=(0,I.createContext)(void 0),Yo=()=>(0,I.useContext)(Ya),Ys=({className:e,children:t,...n})=>{let[i,a]=(0,I.useState)();return U.jsx(Ya.Provider,{value:i,children:U.jsx(W7,{className:t8("w-full",e),setApi:a,...n,children:t})})},Yl=e=>U.jsx(W8,{...e}),Yu=({className:e,...t})=>U.jsx(W9,{className:t8("w-full space-y-2 p-4 pl-8",e),...t}),Yc=({className:e,...t})=>U.jsx("div",{className:t8("flex items-center justify-between gap-2 rounded-t-md bg-secondary p-2",e),...t}),Yd=({children:e,className:t,...n})=>{let i=Yo(),[a,o]=(0,I.useState)(0),[s,l]=(0,I.useState)(0);return(0,I.useEffect)(()=>{i&&(l(i.scrollSnapList().length),o(i.selectedScrollSnap()+1),i.on("select",()=>{o(i.selectedScrollSnap()+1)}))},[i]),U.jsx("div",{className:t8("flex flex-1 items-center justify-end px-3 py-1 text-muted-foreground text-xs",t),...n,children:e??`${a}/${s}`})},Yp=({className:e,...t})=>{let n=Yo(),i=(0,I.useCallback)(()=>{n&&n.scrollPrev()},[n]);return U.jsx("button",{"aria-label":"Previous",className:t8("shrink-0",e),onClick:i,type:"button",...t,children:U.jsx($,{className:"size-4 text-muted-foreground"})})},Yh=({className:e,...t})=>{let n=Yo(),i=(0,I.useCallback)(()=>{n&&n.scrollNext()},[n]);return U.jsx("button",{"aria-label":"Next",className:t8("shrink-0",e),onClick:i,type:"button",...t,children:U.jsx(J,{className:"size-4 text-muted-foreground"})})},Ym=({title:e,url:t,description:n,className:i,children:a,...o})=>U.jsxs("div",{className:t8("space-y-1",i),...o,children:[e&&U.jsx("h4",{className:"truncate font-medium text-sm leading-tight",children:e}),t&&U.jsx("p",{className:"truncate break-all text-muted-foreground text-xs",children:t}),n&&U.jsx("p",{className:"line-clamp-3 text-muted-foreground text-sm leading-relaxed",children:n}),a]}),Yf=({children:e,className:t,...n})=>U.jsx("blockquote",{className:t8("border-muted border-l-2 pl-3 text-muted-foreground text-sm italic",t),...n,children:e}),Yg=e=>U.jsx(RJ,{...e}),Yx=e=>U.jsx(R0,{...e}),Yv=({className:e,children:t,title:n="Model Selector",...i})=>U.jsxs(R4,{className:t8("p-0",e),...i,children:[U.jsx(R3,{className:"sr-only",children:n}),U.jsx(R7,{className:"**:data-[slot=command-input-wrapper]:h-auto",children:t})]}),Yy=e=>U.jsx(R8,{...e}),Yb=({className:e,...t})=>U.jsx(R9,{className:t8("h-auto py-3.5",e),...t}),Yw=e=>U.jsx(De,{...e}),Yk=e=>U.jsx(Dt,{...e}),Y_=e=>U.jsx(Dn,{...e}),YT=e=>U.jsx(Di,{...e}),YE=e=>U.jsx(Da,{...e}),YS=e=>U.jsx(Dr,{...e}),YA=({provider:e,className:t,...n})=>U.jsx("img",{...n,alt:`${e} logo`,className:t8("size-3 dark:invert",t),height:12,src:`https://models.dev/logos/${e}.svg`,width:12}),YC=({className:e,...t})=>U.jsx("div",{className:t8("-space-x-1 flex shrink-0 items-center [&>img]:rounded-full [&>img]:bg-background [&>img]:p-px [&>img]:ring-1 dark:[&>img]:bg-foreground",e),...t}),YN=({className:e,...t})=>U.jsx("span",{className:t8("flex-1 truncate text-left",e),...t}),YI={scira:{title:"Open in Scira",createUrl:e=>`https://scira.ai/?${new URLSearchParams({q:e})}`,icon:U.jsxs("svg",{fill:"none",height:"934",viewBox:"0 0 910 934",width:"910",xmlns:"http://www.w3.org/2000/svg",children:[U.jsx("title",{children:"Scira AI"}),U.jsx("path",{d:"M647.664 197.775C569.13 189.049 525.5 145.419 516.774 66.8849C508.048 145.419 464.418 189.049 385.884 197.775C464.418 206.501 508.048 250.131 516.774 328.665C525.5 250.131 569.13 206.501 647.664 197.775Z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"8"}),U.jsx("path",{d:"M516.774 304.217C510.299 275.491 498.208 252.087 480.335 234.214C462.462 216.341 439.058 204.251 410.333 197.775C439.059 191.3 462.462 179.209 480.335 161.336C498.208 143.463 510.299 120.06 516.774 91.334C523.25 120.059 535.34 143.463 553.213 161.336C571.086 179.209 594.49 191.3 623.216 197.775C594.49 204.251 571.086 216.341 553.213 234.214C535.34 252.087 523.25 275.491 516.774 304.217Z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"8"}),U.jsx("path",{d:"M857.5 508.116C763.259 497.644 710.903 445.288 700.432 351.047C689.961 445.288 637.605 497.644 543.364 508.116C637.605 518.587 689.961 570.943 700.432 665.184C710.903 570.943 763.259 518.587 857.5 508.116Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"20"}),U.jsx("path",{d:"M700.432 615.957C691.848 589.05 678.575 566.357 660.383 548.165C642.191 529.973 619.499 516.7 592.593 508.116C619.499 499.533 642.191 486.258 660.383 468.066C678.575 449.874 691.848 427.181 700.432 400.274C709.015 427.181 722.289 449.874 740.481 468.066C758.673 486.258 781.365 499.533 808.271 508.116C781.365 516.7 758.673 529.973 740.481 548.165C722.289 566.357 709.015 589.05 700.432 615.957Z",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"20"}),U.jsx("path",{d:"M889.949 121.237C831.049 114.692 798.326 81.9698 791.782 23.0692C785.237 81.9698 752.515 114.692 693.614 121.237C752.515 127.781 785.237 160.504 791.782 219.404C798.326 160.504 831.049 127.781 889.949 121.237Z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"8"}),U.jsx("path",{d:"M791.782 196.795C786.697 176.937 777.869 160.567 765.16 147.858C752.452 135.15 736.082 126.322 716.226 121.237C736.082 116.152 752.452 107.324 765.16 94.6152C777.869 81.9065 786.697 65.5368 791.782 45.6797C796.867 65.5367 805.695 81.9066 818.403 94.6152C831.112 107.324 847.481 116.152 867.338 121.237C847.481 126.322 831.112 135.15 818.403 147.858C805.694 160.567 796.867 176.937 791.782 196.795Z",fill:"currentColor",stroke:"currentColor",strokeLinejoin:"round",strokeWidth:"8"}),U.jsx("path",{d:"M760.632 764.337C720.719 814.616 669.835 855.1 611.872 882.692C553.91 910.285 490.404 924.255 426.213 923.533C362.022 922.812 298.846 907.419 241.518 878.531C184.19 849.643 134.228 808.026 95.4548 756.863C56.6815 705.7 30.1238 646.346 17.8129 583.343C5.50207 520.339 7.76433 455.354 24.4266 393.359C41.089 331.364 71.7099 274.001 113.947 225.658C156.184 177.315 208.919 139.273 268.117 114.442",stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"30"})]})}
554,chatgpt:{title:"Open in ChatGPT",createUrl:e=>`https://chatgpt.com/?${new URLSearchParams({hints:"search",prompt:e})}`,icon:U.jsxs("svg",{fill:"currentColor",role:"img",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg",children:[U.jsx("title",{children:"OpenAI"}),U.jsx("path",{d:"M22.2819 9.8211a5.9847 5.9847 0 0 0-.5157-4.9108 6.0462 6.0462 0 0 0-6.5098-2.9A6.0651 6.0651 0 0 0 4.9807 4.1818a5.9847 5.9847 0 0 0-3.9977 2.9 6.0462 6.0462 0 0 0 .7427 7.0966 5.98 5.98 0 0 0 .511 4.9107 6.051 6.051 0 0 0 6.5146 2.9001A5.9847 5.9847 0 0 0 13.2599 24a6.0557 6.0557 0 0 0 5.7718-4.2058 5.9894 5.9894 0 0 0 3.9977-2.9001 6.0557 6.0557 0 0 0-.7475-7.0729zm-9.022 12.6081a4.4755 4.4755 0 0 1-2.8764-1.0408l.1419-.0804 4.7783-2.7582a.7948.7948 0 0 0 .3927-.6813v-6.7369l2.02 1.1686a.071.071 0 0 1 .038.052v5.5826a4.504 4.504 0 0 1-4.4945 4.4944zm-9.6607-4.1254a4.4708 4.4708 0 0 1-.5346-3.0137l.142.0852 4.783 2.7582a.7712.7712 0 0 0 .7806 0l5.8428-3.3685v2.3324a.0804.0804 0 0 1-.0332.0615L9.74 19.9502a4.4992 4.4992 0 0 1-6.1408-1.6464zM2.3408 7.8956a4.485 4.485 0 0 1 2.3655-1.9728V11.6a.7664.7664 0 0 0 .3879.6765l5.8144 3.3543-2.0201 1.1685a.0757.0757 0 0 1-.071 0l-4.8303-2.7865A4.504 4.504 0 0 1 2.3408 7.872zm16.5963 3.8558L13.1038 8.364 15.1192 7.2a.0757.0757 0 0 1 .071 0l4.8303 2.7913a4.4944 4.4944 0 0 1-.6765 8.1042v-5.6772a.79.79 0 0 0-.407-.667zm2.0107-3.0231l-.142-.0852-4.7735-2.7818a.7759.7759 0 0 0-.7854 0L9.409 9.2297V6.8974a.0662.0662 0 0 1 .0284-.0615l4.8303-2.7866a4.4992 4.4992 0 0 1 6.6802 4.66zM8.3065 12.863l-2.02-1.1638a.0804.0804 0 0 1-.038-.0567V6.0742a4.4992 4.4992 0 0 1 7.3757-3.4537l-.142.0805L8.704 5.459a.7948.7948 0 0 0-.3927.6813zm1.0976-2.3654l2.602-1.4998 2.6069 1.4998v2.9994l-2.5974 1.4997-2.6067-1.4997Z"})]})},claude:{title:"Open in Claude",createUrl:e=>`https://claude.ai/new?${new URLSearchParams({q:e})}`,icon:U.jsxs("svg",{fill:"currentColor",role:"img",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",children:[U.jsx("title",{children:"Claude"}),U.jsx("path",{clipRule:"evenodd",d:"M2.3545 7.9775L4.7145 6.654L4.7545 6.539L4.7145 6.475H4.6L4.205 6.451L2.856 6.4145L1.6865 6.366L0.5535 6.305L0.268 6.2445L0 5.892L0.0275 5.716L0.2675 5.5555L0.6105 5.5855L1.3705 5.637L2.5095 5.716L3.3355 5.7645L4.56 5.892H4.7545L4.782 5.8135L4.715 5.7645L4.6635 5.716L3.4845 4.918L2.2085 4.074L1.5405 3.588L1.1785 3.3425L0.9965 3.1115L0.9175 2.6075L1.2455 2.2465L1.686 2.2765L1.7985 2.307L2.245 2.65L3.199 3.388L4.4445 4.3045L4.627 4.4565L4.6995 4.405L4.709 4.3685L4.627 4.2315L3.9495 3.0085L3.2265 1.7635L2.9045 1.2475L2.8195 0.938C2.78711 0.819128 2.76965 0.696687 2.7675 0.5735L3.1415 0.067L3.348 0L3.846 0.067L4.056 0.249L4.366 0.956L4.867 2.0705L5.6445 3.5855L5.8725 4.0345L5.994 4.4505L6.0395 4.578H6.1185V4.505L6.1825 3.652L6.301 2.6045L6.416 1.257L6.456 0.877L6.644 0.422L7.0175 0.176L7.3095 0.316L7.5495 0.6585L7.516 0.8805L7.373 1.806L7.0935 3.2575L6.9115 4.2285H7.0175L7.139 4.1075L7.6315 3.4545L8.4575 2.4225L8.8225 2.0125L9.2475 1.5605L9.521 1.345H10.0375L10.4175 1.9095L10.2475 2.4925L9.7155 3.166L9.275 3.737L8.643 4.587L8.248 5.267L8.2845 5.322L8.3785 5.312L9.8065 5.009L10.578 4.869L11.4985 4.7115L11.915 4.9055L11.9605 5.103L11.7965 5.5065L10.812 5.7495L9.6575 5.9805L7.938 6.387L7.917 6.402L7.9415 6.4325L8.716 6.5055L9.047 6.5235H9.858L11.368 6.636L11.763 6.897L12 7.216L11.9605 7.4585L11.353 7.7685L10.533 7.574L8.6185 7.119L7.9625 6.9545H7.8715V7.0095L8.418 7.5435L9.421 8.4485L10.6755 9.6135L10.739 9.9025L10.578 10.13L10.408 10.1055L9.3055 9.277L8.88 8.9035L7.917 8.0935H7.853V8.1785L8.075 8.503L9.2475 10.2635L9.3085 10.8035L9.2235 10.98L8.9195 11.0865L8.5855 11.0255L7.8985 10.063L7.191 8.9795L6.6195 8.008L6.5495 8.048L6.2125 11.675L6.0545 11.86L5.69 12L5.3865 11.7695L5.2255 11.396L5.3865 10.658L5.581 9.696L5.7385 8.931L5.8815 7.981L5.9665 7.665L5.9605 7.644L5.8905 7.653L5.1735 8.6365L4.0835 10.109L3.2205 11.0315L3.0135 11.1135L2.655 10.9285L2.6885 10.5975L2.889 10.303L4.083 8.785L4.803 7.844L5.268 7.301L5.265 7.222H5.2375L2.066 9.28L1.501 9.353L1.2575 9.125L1.288 8.752L1.4035 8.6305L2.3575 7.9745L2.3545 7.9775Z",fillRule:"evenodd"})]})},t3:{title:"Open in T3 Chat",createUrl:e=>`https://t3.chat/new?${new URLSearchParams({q:e})}`,icon:U.jsx(e_,{})},v0:{title:"Open in v0",createUrl:e=>`https://v0.app?${new URLSearchParams({q:e})}`,icon:U.jsxs("svg",{fill:"currentColor",viewBox:"0 0 147 70",xmlns:"http://www.w3.org/2000/svg",children:[U.jsx("title",{children:"v0"}),U.jsx("path",{d:"M56 50.2031V14H70V60.1562C70 65.5928 65.5928 70 60.1562 70C57.5605 70 54.9982 68.9992 53.1562 67.1573L0 14H19.7969L56 50.2031Z"}),U.jsx("path",{d:"M147 56H133V23.9531L100.953 56H133V70H96.6875C85.8144 70 77 61.
5541856 77 50.3125V14H91V46.1562L123.156 14H91V0H127.312C138.186 0 147 8.81439 147 19.6875V56Z"})]})},cursor:{title:"Open in Cursor",createUrl:e=>{let t=new URL("https://cursor.com/link/prompt");return t.searchParams.set("text",e),t.toString()},icon:U.jsxs("svg",{version:"1.1",viewBox:"0 0 466.73 532.09",xmlns:"http://www.w3.org/2000/svg",children:[U.jsx("title",{children:"Cursor"}),U.jsx("path",{d:"M457.43,125.94L244.42,2.96c-6.84-3.95-15.28-3.95-22.12,0L9.3,125.94c-5.75,3.32-9.3,9.46-9.3,16.11v247.99c0,6.65,3.55,12.79,9.3,16.11l213.01,122.98c6.84,3.95,15.28,3.95,22.12,0l213.01-122.98c5.75-3.32,9.3-9.46,9.3-16.11v-247.99c0-6.65-3.55-12.79-9.3-16.11h-.01ZM444.05,151.99l-205.63,356.16c-1.39,2.4-5.06,1.42-5.06-1.36v-233.21c0-4.66-2.49-8.97-6.53-11.31L24.87,145.67c-2.4-1.39-1.42-5.06,1.36-5.06h411.26c5.84,0,9.49,6.33,6.57,11.39h-.01Z",fill:"currentColor"})]})}},YM=(0,I.createContext)(void 0),YP=()=>{let e=(0,I.useContext)(YM);if(!e)throw Error("OpenIn components must be used within an OpenIn provider");return e},YR=({query:e,...t})=>U.jsx(YM.Provider,{value:{query:e},children:U.jsx(LF,{...t})}),YD=({className:e,...t})=>U.jsx(LU,{align:"start",className:t8("w-[240px]",e),...t}),YL=e=>U.jsx(LG,{...e}),YO=e=>U.jsx(Lq,{...e}),YB=e=>U.jsx(LV,{...e}),Yj=({children:e,...t})=>U.jsx(LH,{...t,asChild:!0,children:e??U.jsxs(ne,{type:"button",variant:"outline",children:["Open in chat",U.jsx(ei,{className:"size-4"})]})}),Yz=e=>{let{query:t}=YP();return U.jsx(LG,{asChild:!0,...e,children:U.jsxs("a",{className:"flex items-center gap-2",href:YI.chatgpt.createUrl(t),rel:"noopener",target:"_blank",children:[U.jsx("span",{className:"shrink-0",children:YI.chatgpt.icon}),U.jsx("span",{className:"flex-1",children:YI.chatgpt.title}),U.jsx(ex,{className:"size-4 shrink-0"})]})})},YF=e=>{let{query:t}=YP();return U.jsx(LG,{asChild:!0,...e,children:U.jsxs("a",{className:"flex items-center gap-2",href:YI.claude.createUrl(t),rel:"noopener",target:"_blank",children:[U.jsx("span",{className:"shrink-0",children:YI.claude.icon}),U.jsx("span",{className:"flex-1",children:YI.claude.title}),U.jsx(ex,{className:"size-4 shrink-0"})]})})},YH=e=>{let{query:t}=YP();return U.jsx(LG,{asChild:!0,...e,children:U.jsxs("a",{className:"flex items-center gap-2",href:YI.t3.createUrl(t),rel:"noopener",target:"_blank",children:[U.jsx("span",{className:"shrink-0",children:YI.t3.icon}),U.jsx("span",{className:"flex-1",children:YI.t3.title}),U.jsx(ex,{className:"size-4 shrink-0"})]})})},YU=e=>{let{query:t}=YP();return U.jsx(LG,{asChild:!0,...e,children:U.jsxs("a",{className:"flex items-center gap-2",href:YI.scira.createUrl(t),rel:"noopener",target:"_blank",children:[U.jsx("span",{className:"shrink-0",children:YI.scira.icon}),U.jsx("span",{className:"flex-1",children:YI.scira.title}),U.jsx(ex,{className:"size-4 shrink-0"})]})})},YG=e=>{let{query:t}=YP();return U.jsx(LG,{asChild:!0,...e,children:U.jsxs("a",{className:"flex items-center gap-2",href:YI.v0.createUrl(t),rel:"noopener",target:"_blank",children:[U.jsx("span",{className:"shrink-0",children:YI.v0.icon}),U.jsx("span",{className:"flex-1",children:YI.v0.title}),U.jsx(ex,{className:"size-4 shrink-0"})]})})},Yq=e=>{let{query:t}=YP();return U.jsx(LG,{asChild:!0,...e,children:U.jsxs("a",{className:"flex items-center gap-2",href:YI.cursor.createUrl(t),rel:"noopener",target:"_blank",children:[U.jsx("span",{className:"shrink-0",children:YI.cursor.icon}),U.jsx("span",{className:"flex-1",children:YI.cursor.title}),U.jsx(ex,{className:"size-4 shrink-0"})]})})},YV=(0,I.createContext)(null),YW=()=>{let e=(0,I.useContext)(YV);if(!e)throw Error("Plan components must be used within Plan");return e},YY=({className:e,isStreaming:t=!1,children:n,...i})=>U.jsx(YV.Provider,{value:{isStreaming:t},children:U.jsx(kC,{asChild:!0,"data-slot":"plan",...i,children:U.jsx(VL,{className:t8("shadow-none",e),children:n})})}),YK=({className:e,...t})=>U.jsx(VO,{className:t8("flex items-start justify-between",e),"data-slot":"plan-header",...t}),YX=({children:e,...t})=>{let{isStreaming:n}=YW();return U.jsx(VB,{"data-slot":"plan-title",...t,children:n?U.jsx(CH,{children:e}):e})},YQ=({className:e,children:t,...n})=>{let{isStreaming:i}=YW();return U.jsx(Vj,{className:t8("text-balance",e),"data-slot":"plan-description",...n,children:i?U.jsx(CH,{children:t}):t})},YZ=e=>U.jsx(Vz,{"data-slot":"plan-action",...e}),Y$=e=>U.jsx(kI,{asChild:!0,children:U.jsx(VF,{"data-slot":"plan-content",...e})}),YJ=e=>U.jsx(VH,{"data-slot":"plan-footer",...e}),Y0=({className:e,...t})=>U.jsx(kN,{asChild:!0,children:U.jsxs(ne,{className:t8("size-8",e),"data-slot":"plan-trigger",size:"icon",variant:"ghost",...t,children:[U.jsx(el,{className:"size-4"}),U.jsx("span",{className:"sr-only",children:"Toggle plan"})]})}),Y1=({className:e,...t})=>U.jsx("li",{className:t8("group flex flex-col gap-1 rounded-md px-3 py-1 text-sm transition-colors hover:bg-muted",e),...t}),Y2=({completed:e=!1,className:t,...n})=>U.jsx("span",{className:t8("mt-0.5 inline-block size-2.5 rounded-full border",e?"border-muted-foreground
554/20 bg-muted-foreground/10":"border-muted-foreground/50",t),...n}),Y4=({completed:e=!1,className:t,...n})=>U.jsx("span",{className:t8("line-clamp-1 grow break-words",e?"text-muted-foreground/50 line-through":"text-muted-foreground",t),...n}),Y5=({completed:e=!1,className:t,...n})=>U.jsx("div",{className:t8("ml-6 text-xs",e?"text-muted-foreground/40 line-through":"text-muted-foreground",t),...n}),Y3=({className:e,...t})=>U.jsx("div",{className:t8("flex gap-1",e),...t}),Y6=({className:e,...t})=>U.jsx(ne,{className:t8("size-auto rounded p-1 text-muted-foreground opacity-0 transition-opacity hover:bg-muted-foreground/10 hover:text-foreground group-hover:opacity-100",e),size:"icon",type:"button",variant:"ghost",...t}),Y7=({className:e,...t})=>U.jsx("div",{className:t8("mt-1 flex flex-wrap gap-2",e),...t}),Y8=({className:e,...t})=>U.jsx("img",{alt:"",className:t8("h-8 w-8 rounded border object-cover",e),height:32,width:32,...t}),Y9=({children:e,className:t,...n})=>U.jsxs("span",{className:t8("flex items-center gap-1 rounded border bg-muted px-2 py-1 text-xs",t),...n,children:[U.jsx(eS,{size:12}),U.jsx("span",{className:"max-w-[100px] truncate",children:e})]}),Ke=({children:e,className:t,...n})=>U.jsx(js,{className:t8("-mb-1 mt-2",t),...n,children:U.jsx("div",{className:"max-h-40 pr-4",children:U.jsx("ul",{children:e})})}),Kt=({className:e,defaultOpen:t=!0,...n})=>U.jsx(kC,{className:t8(e),defaultOpen:t,...n}),Kn=({children:e,className:t,...n})=>U.jsx(kN,{asChild:!0,children:U.jsx("button",{className:t8("group flex w-full items-center justify-between rounded-md bg-muted/40 px-3 py-2 text-left font-medium text-muted-foreground text-sm transition-colors hover:bg-muted",t),type:"button",...n,children:e})}),Kr=({count:e,label:t,icon:n,className:i,...a})=>U.jsxs("span",{className:t8("flex items-center gap-2",i),...a,children:[U.jsx(ei,{className:"group-data-[state=closed]:-rotate-90 size-4 transition-transform"}),n,U.jsxs("span",{children:[e," ",t]})]}),Ki=({className:e,...t})=>U.jsx(kI,{className:t8(e),...t}),Ka=({className:e,...t})=>U.jsx("div",{className:t8("flex flex-col gap-2 rounded-xl border border-border bg-background px-3 pt-2 pb-2 shadow-xs",e),...t}),Ko=({children:e,className:t,...n})=>U.jsx("div",{className:t8("inline-flex items-center gap-1 rounded-md border bg-secondary px-1.5 py-0.5 text-foreground text-xs",t),...n,children:e}),Ks=({children:e,className:t,...n})=>U.jsx("div",{className:t8("text-muted-foreground text-sm",t),...n,children:e}),Kl=({defaultOpen:e=!0,className:t,...n})=>U.jsx(kC,{className:t8(t),defaultOpen:e,...n}),Ku=({children:e,className:t,title:n,...i})=>U.jsx(kN,{asChild:!0,className:t8("group",t),...i,children:e??U.jsxs("div",{className:"flex w-full cursor-pointer items-center gap-2 text-muted-foreground text-sm transition-colors hover:text-foreground",children:[U.jsx(eC,{className:"size-4"}),U.jsx("p",{className:"text-sm",children:n}),U.jsx(ei,{className:"size-4 transition-transform group-data-[state=open]:rotate-180"})]})}),Kc=({children:e,className:t,...n})=>U.jsx(kI,{className:t8("data-[state=closed]:fade-out-0 data-[state=closed]:slide-out-to-top-2 data-[state=open]:slide-in-from-top-2 text-popover-foreground outline-none data-[state=closed]:animate-out data-[state=open]:animate-in",t),...n,children:U.jsx("div",{className:"mt-4 space-y-2 border-muted border-l-2 pl-4",children:e})}),Kd=({className:e,...t})=>U.jsx(VP,{className:t8("flex items-center gap-1 rounded-sm border bg-background p-1.5",e),position:_.Bottom,...t}),Kp=(0,I.createContext)(null),Kh=()=>{let e=(0,I.useContext)(Kp);if(!e)throw Error("WebPreview components must be used within a WebPreview");return e},Km=({className:e,children:t,defaultUrl:n="",onUrlChange:i,...a})=>{let[o,s]=(0,I.useState)(n),[l,u]=(0,I.useState)(!1);return U.jsx(Kp.Provider,{value:{url:o,setUrl:e=>{s(e),null==i||i(e)},consoleOpen:l,setConsoleOpen:u},children:U.jsx("div",{className:t8("flex size-full flex-col rounded-lg border bg-card",e),...a,children:t})})},Kf=({className:e,children:t,...n})=>U.jsx("div",{className:t8("flex items-center gap-1 border-b p-2",e),...n,children:t}),Kg=({onClick:e,disabled:t,tooltip:n,children:i,...a})=>U.jsx(w7,{children:U.jsxs(w8,{children:[U.jsx(w9,{asChild:!0,children:U.jsx(ne,{className:"h-8 w-8 p-0 hover:text-foreground",disabled:t,onClick:e,size:"sm",variant:"ghost",...a,children:i})}),U.jsx(ke,{children:U.jsx("p",{children:n})})]})}
554),Kx=({value:e,onChange:t,onKeyDown:n,...i})=>{let{url:a,setUrl:o}=Kh(),[s,l]=(0,I.useState)(a);return(0,I.useEffect)(()=>{l(a)},[a]),U.jsx(LW,{className:"h-8 flex-1 text-sm",onChange:t??(e=>{l(e.target.value),null==t||t(e)}),onKeyDown:e=>{"Enter"===e.key&&o(e.target.value),null==n||n(e)},placeholder:"Enter URL...",value:e??s,...i})},Kv=({className:e,loading:t,src:n,...i})=>{let{url:a}=Kh();return U.jsxs("div",{className:"flex-1",children:[U.jsx("iframe",{className:t8("size-full",e),sandbox:"allow-scripts allow-same-origin allow-forms allow-popups allow-presentation",src:(n??a)||void 0,title:"Preview",...i}),t]})},Ky=({className:e,logs:t=[],children:n,...i})=>{let{consoleOpen:a,setConsoleOpen:o}=Kh();return U.jsxs(kC,{className:t8("border-t bg-muted/50 font-mono text-sm",e),onOpenChange:o,open:a,...i,children:[U.jsx(kN,{asChild:!0,children:U.jsxs(ne,{className:"flex w-full items-center justify-between p-4 text-left font-medium hover:bg-muted/50",variant:"ghost",children:["Console",U.jsx(ei,{className:t8("h-4 w-4 transition-transform duration-200",a&&"rotate-180")})]})}),U.jsx(kI,{className:t8("px-4 pb-4","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 outline-none data-[state=closed]:animate-out data-[state=open]:animate-in"),children:U.jsxs("div",{className:"max-h-48 space-y-1 overflow-y-auto",children:[0===t.length?U.jsx("p",{className:"text-muted-foreground",children:"No console output"}):t.map((e,t)=>U.jsxs("div",{className:t8("text-xs","error"===e.level&&"text-destructive","warn"===e.level&&"text-yellow-600","log"===e.level&&"text-foreground"),children:[U.jsx("span",{className:"text-muted-foreground",children:e.timestamp.toLocaleTimeString()})," ",e.message]},`${e.timestamp.getTime()}-${t}`)),n]})})]})},Kb=new Map;function Kw(e,t){Kb.has(e)&&console.warn(`[VIP Widget] Adapter "${e}" already registered, overwriting`),Kb.set(e,t)}function Kk(e){let t=Kb.get(e);return t?t():null}function K_(e){return Kb.has(e)}function KT(){return Array.from(Kb.keys())}Kw("schnucks",function(){let e,t,n=null,i=null,a=null,o=[],s=(...e)=>{null==t||t.log(...e)},l=()=>{let t={"X-SCHNUCKS-CLIENT-TYPE":(null==e?void 0:e.clientType)||"WEB_EXT","X-SCHNUCKS-CLIENT-ID":localStorage.getItem("schnucks-client-id")||""};return n&&(t.Authorization=n),i&&(t["X-SCHNUCKS-ANALYTICS-ID"]=i),t},u=async(e,t={})=>{let n={...l(),...t.headers};return fetch(e,{...t,headers:n,credentials:t.credentials??"include"})},c=e=>{var t;let n=(null==(t=null==e?void 0:e.data)?void 0:t.content)||(null==e?void 0:e.data)||(null==e?void 0:e.orders)||[],i=Array.isArray(n)?n[0]:null;return i?i.orderId??i.id??i.orderID??null:null},d=async()=>{let e=performance.now();for(let t of["/api/user/orders?status=NEW&page=0&size=1","/api/user/orders?page=0&size=1"])try{let n=await u(t);if(s("Orders response",t,n.status),!n.ok)continue;let i=await n.json().catch(()=>null),a=c(i);if(a)return s("Order lookup time",`${Math.round(performance.now()-e)}ms`),a}catch(e){s("Order lookup error",t,e)}return s("Order lookup time",`${Math.round(performance.now()-e)}ms (not found)`),null},p=async()=>{var e;let n=performance.now();if(a||(a=await d()),!a)return s("Cart refresh time",`${Math.round(performance.now()-n)}ms (no order)`),[];try{let i=await u(`/api/user/orders/${a}?preview=true`);return i.ok?(o=((null==(e=(await i.json()).data)?void 0:e.items)||[]).map(e=>({upcId:e.upcId??e.upc,quantity:e.quantity,orderItemId:e.id})),null==t||t.onCartUpdated({items:o,orderId:a}),s("Cart refresh time",`${Math.round(performance.now()-n)}ms`),o):(s("Cart refresh time",`${Math.round(performance.now()-n)}ms (failed)`),[])}catch(e){return s("Cart refresh error",e),[]}},h=async(e,t)=>{var n,i;let a=`${e.status} ${e.statusText}`.trim();try{let o=await e.json(),s=(null==(n=null==o?void 0:o.messages)?void 0:n[0])||(null==o?void 0:o.message)||(null==o?void 0:o.error)||(null==(i=null==o?void 0:o.codes)?void 0:i[0]);if(s)return Error(`${t}: ${s} (${a})`)}catch{}return Error(`${t} (${a})`)},m=()=>{let e=window;if(e.__vipSchnucksHeaderCapture)return;e.__vipSchnucksHeaderCapture=!0;let t=e.__vipNativeFetch||window.fetch;e.__vipNativeFetch||(e.__vipNativeFetch=t);let a=async function(e,a){if(("string"==typeof e?e:(null==e?void 0:e.url)||"").includes("/api/")&&null!=a&&a.headers){let e=a.headers,t=t=>e instanceof Headers?e.get(t):e[t]||null,o=t("Authorization");o&&!n&&(n=o,s("Captured Authorization token"));let l=t("X-SCHNUCKS-ANALYTICS-ID");l&&!i&&(i=l,s("Captured Analytics ID"))}return t.apply(this,arguments)};a.__vipWrapped=!0,Object.defineProperty(window,"fetch",{get:()=>a,set:e=>{e===a||null!=e&&e.__vipWrapped},configurable:!0});let o=window.XMLHttpRequest,l=o.prototype.open,u=o.prototype.setRequestHeader;o.prototype.open=function(e,t){return this._vipUrl=t.toString(),l.apply(this,arguments)},o.prototype.setRequestHeader=function(e,t){let a=this._vipUrl;return null!=a&&a.includes("/api/")&&("Authorization"!==e||n||(n=t,s("Captured Authorization token (XHR)")),"X-SCHNUCKS-ANALYTICS-ID"!==e||i||(i=t,s("Captured Analytics ID (XHR)"))),u.a
554pply(this,arguments)}},f={name:"schnucks",setup(n,i){e=n,t=i,s("Schnucks adapter initializing"),m(),s("Schnucks adapter ready")},getCartState:async()=>(await p(),{items:o,orderId:a}),async addToCart(e,t=1){let n=performance.now();if(a||(a=await d()),!a)return s("Cannot add to cart: no order ID"),!1;if(!Number.isFinite(e))throw Error("Invalid UPC ID");await p();let i=o.find(t=>t.upcId===e);if(null!=i&&i.orderItemId){let a=await f.updateQuantity(e,i.quantity+t);return s("Add-to-cart (update existing) time",`${Math.round(performance.now()-n)}ms`),a}try{let i=await u(`/api/user/orders/${a}/order-items`,{method:"POST",headers:{"Content-Type":"text/plain;charset=UTF-8"},body:JSON.stringify([{upcId:e,quantity:t}])});if(!i.ok)throw await h(i,"Add to cart failed");return await p(),s("Add-to-cart (new) time",`${Math.round(performance.now()-n)}ms`),!0}catch(e){throw s("Add to cart error",e),e}},async updateQuantity(e,t){let n=performance.now();if(t<=0)return f.removeFromCart(e);let i=o.find(t=>t.upcId===e);if(!(null!=i&&i.orderItemId)&&(await p(),!(null!=(i=o.find(t=>t.upcId===e))&&i.orderItemId)))return s("Cannot update: item not in cart"),!1;try{let e=await u(`/api/user/order-items/${i.orderItemId}`,{method:"PUT",headers:{"Content-Type":"text/plain;charset=UTF-8"},body:JSON.stringify({quantity:t,unitOfMeasure:"EACH",replacementPreference:"SHOPPER_CHOICE",replacementUpcIds:[]})});return e.ok?(await p(),s("Update quantity time",`${Math.round(performance.now()-n)}ms`),!0):(s("Update quantity failed",e.status),!1)}catch(e){return s("Update quantity error",e),!1}},async removeFromCart(e){let t=performance.now(),n=o.find(t=>t.upcId===e);if(!(null!=n&&n.orderItemId)&&(await p(),!(null!=(n=o.find(t=>t.upcId===e))&&n.orderItemId)))return s("Cannot remove: item not in cart"),!1;try{let e=await u(`/api/user/order-items/${n.orderItemId}`,{method:"DELETE"});return e.ok?(await p(),s("Remove item time",`${Math.round(performance.now()-t)}ms`),!0):(s("Remove from cart failed",e.status),!1)}catch(e){return s("Remove item error",e),!1}},async addMultipleToCart(e){let t=performance.now();if(a||(a=await d()),!a)return s("Cannot add to cart: no order ID"),!1;await p();let n=[];for(let t of e){let e=Number(t.upcId);if(!Number.isFinite(e))throw Error("Invalid UPC ID");let i=o.find(t=>t.upcId===e);null!=i&&i.orderItemId?await f.updateQuantity(e,i.quantity+t.quantity):n.push({upcId:e,quantity:t.quantity})}if(n.length>0)try{let e=await u(`/api/user/orders/${a}/order-items`,{method:"POST",headers:{"Content-Type":"text/plain;charset=UTF-8"},body:JSON.stringify(n)});if(!e.ok)return s("Add multiple failed",e.status),!1}catch(e){return s("Add multiple error",e),!1}return await p(),s("Add multiple time",`${Math.round(performance.now()-t)}ms`),!0},async getProductInfo(t){let n=performance.now();if(0===t.length)return[];s("Fetching product info for",t.length,"products");try{let i=localStorage.getItem("fulfillmentStore")||(null==e?void 0:e.storeId)||"744",a=(null==e?void 0:e.fulfillmentType)||"PICKUP",o=(null==e?void 0:e.serviceProvider)||"INSTACART",l=(null==e?void 0:e.includeInactive)??!0,c=t.join(","),d=`/api/item-catalog-api/v1/items?upc-ids=${encodeURIComponent(c)}&store=${i}&includeInactive=${l}&fulfillmentType=${a}&size=${Math.max(t.length,50)}&serviceProvider=${o}`;s("Product info URL:",d);let p=await u(d);if(!p.ok)return s("Product info fetch failed",p.status),[];let h=await p.json(),m=h.data,f=Array.isArray(m)?m:(null==m?void 0:m.content)||h.content||h.items||h.products||[];s("Parsed products:",f.length),f.length>0&&s("Sample product fields:",Object.keys(f[0]));let g=f.map(e=>{var t,n;let i=e.priceString,a=e.regularAmount,o=e.adAmount,s=e=>e?"number"==typeof e?`$${e.toFixed(2)}`:"string"==typeof e?e.startsWith("$")?e:`$${e}`:"":"",l=i||s(o??a),u=s(a),c=o?s(o):null,d=e.mainImageUrl,p=e.images,h=d??(null==(t=null==p?void 0:p[0])?void 0:t.url)??(null==(n=null==p?void 0:p[0])?void 0:n.src)??e.imageUrl??e.image??null,m=e.packageSizeMeasure,f=e.packageSizeUom,g=m&&f?`${m} ${f}`:e.size??e.packageSize??"";return{id:String(e.upcId??e.upc??e.id),name:e.name??e.description??e.title??"",brand:e.brandName??e.brand??null,price:l,regularPrice:u,dealPrice:c,size:g,imageUrl:h,inStock:e.inStock??e.available??!0,metadata:{upcId:e.upcId??e.upc,
554categories:e.categories,aisle:e.aisle}}});return s("Product info fetch time",`${Math.round(performance.now()-n)}ms`,`(${g.length}/${t.length} found)`),g}catch(e){return s("Product info fetch error",e),[]}}};return f});let KE={getItem:e=>localStorage.getItem(e),setItem:(e,t)=>localStorage.setItem(e,t),removeItem:e=>localStorage.removeItem(e)}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.