Files
zen-blog/_next/static/chunks/73ee7cc830199358.js
zeekay c6530a41ca feat: add 70+ blog posts with real content
Extracted all blog posts from zen-blog Hugo git history and converted
to MDX format. Blog now includes model announcements, architecture
posts, research papers, and governance updates - real content instead
of a redirect to hanzo.ai/blog.
2026-03-01 15:41:23 -08:00

1 line
24 KiB
JavaScript

(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,93063,e=>{"use strict";let t=(0,e.i(21281).default)("chevron-down",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]);e.s(["ChevronDown",()=>t],93063)},34631,98082,54450,e=>{"use strict";let t=["top","right","bottom","left"],n=t.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]),i=Math.min,r=Math.max,l=Math.round,o=Math.floor,f=e=>({x:e,y:e}),a={left:"right",right:"left",bottom:"top",top:"bottom"},s={start:"end",end:"start"};function c(e,t,n){return r(e,i(t,n))}function u(e,t){return"function"==typeof e?e(t):e}function g(e){return e.split("-")[0]}function d(e){return e.split("-")[1]}function m(e){return"x"===e?"y":"x"}function h(e){return"y"===e?"height":"width"}let p=new Set(["top","bottom"]);function w(e){return p.has(g(e))?"y":"x"}function y(e){return m(w(e))}function v(e,t,n){void 0===n&&(n=!1);let i=d(e),r=y(e),l=h(r),o="x"===r?i===(n?"end":"start")?"right":"left":"start"===i?"bottom":"top";return t.reference[l]>t.floating[l]&&(o=O(o)),[o,O(o)]}function x(e){let t=O(e);return[b(e),t,b(t)]}function b(e){return e.replace(/start|end/g,e=>s[e])}let E=["left","right"],R=["right","left"],T=["top","bottom"],A=["bottom","top"];function L(e,t,n,i){let r=d(e),l=function(e,t,n){switch(e){case"top":case"bottom":if(n)return t?R:E;return t?E:R;case"left":case"right":return t?T:A;default:return[]}}(g(e),"start"===n,i);return r&&(l=l.map(e=>e+"-"+r),t&&(l=l.concat(l.map(b)))),l}function O(e){return e.replace(/left|right|bottom|top/g,e=>a[e])}function C(e){return"number"!=typeof e?{top:0,right:0,bottom:0,left:0,...e}:{top:e,right:e,bottom:e,left:e}}function P(e){let{x:t,y:n,width:i,height:r}=e;return{width:i,height:r,top:n,left:t,right:t+i,bottom:n+r,x:t,y:n}}function S(e,t,n){let i,{reference:r,floating:l}=e,o=w(t),f=y(t),a=h(f),s=g(t),c="y"===o,u=r.x+r.width/2-l.width/2,m=r.y+r.height/2-l.height/2,p=r[a]/2-l[a]/2;switch(s){case"top":i={x:u,y:r.y-l.height};break;case"bottom":i={x:u,y:r.y+r.height};break;case"right":i={x:r.x+r.width,y:m};break;case"left":i={x:r.x-l.width,y:m};break;default:i={x:r.x,y:r.y}}switch(d(t)){case"start":i[f]-=p*(n&&c?-1:1);break;case"end":i[f]+=p*(n&&c?-1:1)}return i}async function D(e,t){var n;void 0===t&&(t={});let{x:i,y:r,platform:l,rects:o,elements:f,strategy:a}=e,{boundary:s="clippingAncestors",rootBoundary:c="viewport",elementContext:g="floating",altBoundary:d=!1,padding:m=0}=u(t,e),h=C(m),p=f[d?"floating"===g?"reference":"floating":g],w=P(await l.getClippingRect({element:null==(n=await (null==l.isElement?void 0:l.isElement(p)))||n?p:p.contextElement||await (null==l.getDocumentElement?void 0:l.getDocumentElement(f.floating)),boundary:s,rootBoundary:c,strategy:a})),y="floating"===g?{x:i,y:r,width:o.floating.width,height:o.floating.height}:o.reference,v=await (null==l.getOffsetParent?void 0:l.getOffsetParent(f.floating)),x=await (null==l.isElement?void 0:l.isElement(v))&&await (null==l.getScale?void 0:l.getScale(v))||{x:1,y:1},b=P(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:f,rect:y,offsetParent:v,strategy:a}):y);return{top:(w.top-b.top+h.top)/x.y,bottom:(b.bottom-w.bottom+h.bottom)/x.y,left:(w.left-b.left+h.left)/x.x,right:(b.right-w.right+h.right)/x.x}}e.s(["clamp",()=>c,"createCoords",()=>f,"evaluate",()=>u,"floor",()=>o,"getAlignment",()=>d,"getAlignmentAxis",()=>y,"getAlignmentSides",()=>v,"getAxisLength",()=>h,"getExpandedPlacements",()=>x,"getOppositeAlignmentPlacement",()=>b,"getOppositeAxis",()=>m,"getOppositeAxisPlacements",()=>L,"getOppositePlacement",()=>O,"getPaddingObject",()=>C,"getSide",()=>g,"getSideAxis",()=>w,"max",()=>r,"min",()=>i,"placements",()=>n,"rectToClientRect",()=>P,"round",()=>l,"sides",()=>t],98082);let W=async(e,t,n)=>{let{placement:i="bottom",strategy:r="absolute",middleware:l=[],platform:o}=n,f=l.filter(Boolean),a=await (null==o.isRTL?void 0:o.isRTL(t)),s=await o.getElementRects({reference:e,floating:t,strategy:r}),{x:c,y:u}=S(s,i,a),g=i,d={},m=0;for(let n=0;n<f.length;n++){var h;let{name:l,fn:p}=f[n],{x:w,y:y,data:v,reset:x}=await p({x:c,y:u,initialPlacement:i,placement:g,strategy:r,middlewareData:d,rects:s,platform:{...o,detectOverflow:null!=(h=o.detectOverflow)?h:D},elements:{reference:e,floating:t}});c=null!=w?w:c,u=null!=y?y:u,d={...d,[l]:{...d[l],...v}},x&&m<=50&&(m++,"object"==typeof x&&(x.placement&&(g=x.placement),x.rects&&(s=!0===x.rects?await o.getElementRects({reference:e,floating:t,strategy:r}):x.rects),{x:c,y:u}=S(s,g,a)),n=-1)}return{x:c,y:u,placement:g,strategy:r,middlewareData:d}};function H(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function M(e){return t.some(t=>e[t]>=0)}function N(e){let t=i(...e.map(e=>e.left)),n=i(...e.map(e=>e.top));return{x:t,y:n,width:r(...e.map(e=>e.right))-t,height:r(...e.map(e=>e.bottom))-n}}let F=new Set(["left","top"]);async function k(e,t){let{placement:n,platform:i,elements:r}=e,l=await (null==i.isRTL?void 0:i.isRTL(r.floating)),o=g(n),f=d(n),a="y"===w(n),s=F.has(o)?-1:1,c=l&&a?-1:1,m=u(t,e),{mainAxis:h,crossAxis:p,alignmentAxis:y}="number"==typeof m?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return f&&"number"==typeof y&&(p="end"===f?-1*y:y),a?{x:p*c,y:h*s}:{x:h*s,y:p*c}}var B=e.i(34507);function V(e){let t=(0,B.getComputedStyle)(e),n=parseFloat(t.width)||0,i=parseFloat(t.height)||0,r=(0,B.isHTMLElement)(e),o=r?e.offsetWidth:n,f=r?e.offsetHeight:i,a=l(n)!==o||l(i)!==f;return a&&(n=o,i=f),{width:n,height:i,$:a}}function z(e){return(0,B.isElement)(e)?e:e.contextElement}function j(e){let t=z(e);if(!(0,B.isHTMLElement)(t))return f(1);let n=t.getBoundingClientRect(),{width:i,height:r,$:o}=V(t),a=(o?l(n.width):n.width)/i,s=(o?l(n.height):n.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}let K=f(0);function _(e){let t=(0,B.getWindow)(e);return(0,B.isWebKit)()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:K}function q(e,t,n,i){var r;void 0===t&&(t=!1),void 0===n&&(n=!1);let l=e.getBoundingClientRect(),o=z(e),a=f(1);t&&(i?(0,B.isElement)(i)&&(a=j(i)):a=j(e));let s=(void 0===(r=n)&&(r=!1),i&&(!r||i===(0,B.getWindow)(o))&&r)?_(o):f(0),c=(l.left+s.x)/a.x,u=(l.top+s.y)/a.y,g=l.width/a.x,d=l.height/a.y;if(o){let e=(0,B.getWindow)(o),t=i&&(0,B.isElement)(i)?(0,B.getWindow)(i):i,n=e,r=(0,B.getFrameElement)(n);for(;r&&i&&t!==n;){let e=j(r),t=r.getBoundingClientRect(),i=(0,B.getComputedStyle)(r),l=t.left+(r.clientLeft+parseFloat(i.paddingLeft))*e.x,o=t.top+(r.clientTop+parseFloat(i.paddingTop))*e.y;c*=e.x,u*=e.y,g*=e.x,d*=e.y,c+=l,u+=o,n=(0,B.getWindow)(r),r=(0,B.getFrameElement)(n)}}return P({width:g,height:d,x:c,y:u})}function I(e,t){let n=(0,B.getNodeScroll)(e).scrollLeft;return t?t.left+n:q((0,B.getDocumentElement)(e)).left+n}function U(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-I(e,n),y:n.top+t.scrollTop}}let $=new Set(["absolute","fixed"]);function G(e,t,n){var i;let l;if("viewport"===t)l=function(e,t){let n=(0,B.getWindow)(e),i=(0,B.getDocumentElement)(e),r=n.visualViewport,l=i.clientWidth,o=i.clientHeight,f=0,a=0;if(r){l=r.width,o=r.height;let e=(0,B.isWebKit)();(!e||e&&"fixed"===t)&&(f=r.offsetLeft,a=r.offsetTop)}let s=I(i);if(s<=0){let e=i.ownerDocument,t=e.body,n=getComputedStyle(t),r="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,o=Math.abs(i.clientWidth-t.clientWidth-r);o<=25&&(l-=o)}else s<=25&&(l+=s);return{width:l,height:o,x:f,y:a}}(e,n);else if("document"===t){let t,n,o,f,a,s,c;i=(0,B.getDocumentElement)(e),t=(0,B.getDocumentElement)(i),n=(0,B.getNodeScroll)(i),o=i.ownerDocument.body,f=r(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),a=r(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight),s=-n.scrollLeft+I(i),c=-n.scrollTop,"rtl"===(0,B.getComputedStyle)(o).direction&&(s+=r(t.clientWidth,o.clientWidth)-f),l={width:f,height:a,x:s,y:c}}else if((0,B.isElement)(t)){let e,i,r,o,a,s;i=(e=q(t,!0,"fixed"===n)).top+t.clientTop,r=e.left+t.clientLeft,o=(0,B.isHTMLElement)(t)?j(t):f(1),a=t.clientWidth*o.x,s=t.clientHeight*o.y,l={width:a,height:s,x:r*o.x,y:i*o.y}}else{let n=_(e);l={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return P(l)}function J(e){return"static"===(0,B.getComputedStyle)(e).position}function Q(e,t){if(!(0,B.isHTMLElement)(e)||"fixed"===(0,B.getComputedStyle)(e).position)return null;if(t)return t(e);let n=e.offsetParent;return(0,B.getDocumentElement)(e)===n&&(n=n.ownerDocument.body),n}function X(e,t){let n=(0,B.getWindow)(e);if((0,B.isTopLayer)(e))return n;if(!(0,B.isHTMLElement)(e)){let t=(0,B.getParentNode)(e);for(;t&&!(0,B.isLastTraversableNode)(t);){if((0,B.isElement)(t)&&!J(t))return t;t=(0,B.getParentNode)(t)}return n}let i=Q(e,t);for(;i&&(0,B.isTableElement)(i)&&J(i);)i=Q(i,t);return i&&(0,B.isLastTraversableNode)(i)&&J(i)&&!(0,B.isContainingBlock)(i)?n:i||(0,B.getContainingBlock)(e)||n}let Y=async function(e){let t=this.getOffsetParent||X,n=this.getDimensions,i=await n(e.floating);return{reference:function(e,t,n){let i=(0,B.isHTMLElement)(t),r=(0,B.getDocumentElement)(t),l="fixed"===n,o=q(e,!0,l,t),a={scrollLeft:0,scrollTop:0},s=f(0);if(i||!i&&!l)if(("body"!==(0,B.getNodeName)(t)||(0,B.isOverflowElement)(r))&&(a=(0,B.getNodeScroll)(t)),i){let e=q(t,!0,l,t);s.x=e.x+t.clientLeft,s.y=e.y+t.clientTop}else r&&(s.x=I(r));l&&!i&&r&&(s.x=I(r));let c=!r||i||l?f(0):U(r,a);return{x:o.left+a.scrollLeft-s.x-c.x,y:o.top+a.scrollTop-s.y-c.y,width:o.width,height:o.height}}(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}},Z={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:i,strategy:r}=e,l="fixed"===r,o=(0,B.getDocumentElement)(i),a=!!t&&(0,B.isTopLayer)(t.floating);if(i===o||a&&l)return n;let s={scrollLeft:0,scrollTop:0},c=f(1),u=f(0),g=(0,B.isHTMLElement)(i);if((g||!g&&!l)&&(("body"!==(0,B.getNodeName)(i)||(0,B.isOverflowElement)(o))&&(s=(0,B.getNodeScroll)(i)),(0,B.isHTMLElement)(i))){let e=q(i);c=j(i),u.x=e.x+i.clientLeft,u.y=e.y+i.clientTop}let d=!o||g||l?f(0):U(o,s);return{width:n.width*c.x,height:n.height*c.y,x:n.x*c.x-s.scrollLeft*c.x+u.x+d.x,y:n.y*c.y-s.scrollTop*c.y+u.y+d.y}},getDocumentElement:B.getDocumentElement,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:l,strategy:o}=e,f=[..."clippingAncestors"===n?(0,B.isTopLayer)(t)?[]:function(e,t){let n=t.get(e);if(n)return n;let i=(0,B.getOverflowAncestors)(e,[],!1).filter(e=>(0,B.isElement)(e)&&"body"!==(0,B.getNodeName)(e)),r=null,l="fixed"===(0,B.getComputedStyle)(e).position,o=l?(0,B.getParentNode)(e):e;for(;(0,B.isElement)(o)&&!(0,B.isLastTraversableNode)(o);){let t=(0,B.getComputedStyle)(o),n=(0,B.isContainingBlock)(o);n||"fixed"!==t.position||(r=null),(l?!n&&!r:!n&&"static"===t.position&&!!r&&$.has(r.position)||(0,B.isOverflowElement)(o)&&!n&&function e(t,n){let i=(0,B.getParentNode)(t);return!(i===n||!(0,B.isElement)(i)||(0,B.isLastTraversableNode)(i))&&("fixed"===(0,B.getComputedStyle)(i).position||e(i,n))}(e,o))?i=i.filter(e=>e!==o):r=t,o=(0,B.getParentNode)(o)}return t.set(e,i),i}(t,this._c):[].concat(n),l],a=f[0],s=f.reduce((e,n)=>{let l=G(t,n,o);return e.top=r(l.top,e.top),e.right=i(l.right,e.right),e.bottom=i(l.bottom,e.bottom),e.left=r(l.left,e.left),e},G(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:X,getElementRects:Y,getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){let{width:t,height:n}=V(e);return{width:t,height:n}},getScale:j,isElement:B.isElement,isRTL:function(e){return"rtl"===(0,B.getComputedStyle)(e).direction}};function ee(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function et(e,t,n,l){let f;void 0===l&&(l={});let{ancestorScroll:a=!0,ancestorResize:s=!0,elementResize:c="function"==typeof ResizeObserver,layoutShift:u="function"==typeof IntersectionObserver,animationFrame:g=!1}=l,d=z(e),m=a||s?[...d?(0,B.getOverflowAncestors)(d):[],...(0,B.getOverflowAncestors)(t)]:[];m.forEach(e=>{a&&e.addEventListener("scroll",n,{passive:!0}),s&&e.addEventListener("resize",n)});let h=d&&u?function(e,t){let n,l=null,f=(0,B.getDocumentElement)(e);function a(){var e;clearTimeout(n),null==(e=l)||e.disconnect(),l=null}return!function s(c,u){void 0===c&&(c=!1),void 0===u&&(u=1),a();let g=e.getBoundingClientRect(),{left:d,top:m,width:h,height:p}=g;if(c||t(),!h||!p)return;let w={rootMargin:-o(m)+"px "+-o(f.clientWidth-(d+h))+"px "+-o(f.clientHeight-(m+p))+"px "+-o(d)+"px",threshold:r(0,i(1,u))||1},y=!0;function v(t){let i=t[0].intersectionRatio;if(i!==u){if(!y)return s();i?s(!1,i):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==i||ee(g,e.getBoundingClientRect())||s(),y=!1}try{l=new IntersectionObserver(v,{...w,root:f.ownerDocument})}catch(e){l=new IntersectionObserver(v,w)}l.observe(e)}(!0),a}(d,n):null,p=-1,w=null;c&&(w=new ResizeObserver(e=>{let[i]=e;i&&i.target===d&&w&&(w.unobserve(t),cancelAnimationFrame(p),p=requestAnimationFrame(()=>{var e;null==(e=w)||e.observe(t)})),n()}),d&&!g&&w.observe(d),w.observe(t));let y=g?q(e):null;return g&&function t(){let i=q(e);y&&!ee(y,i)&&n(),y=i,f=requestAnimationFrame(t)}(),n(),()=>{var e;m.forEach(e=>{a&&e.removeEventListener("scroll",n),s&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=w)||e.disconnect(),w=null,g&&cancelAnimationFrame(f)}}let en=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var n,i;let{x:r,y:l,placement:o,middlewareData:f}=t,a=await k(t,e);return o===(null==(n=f.offset)?void 0:n.placement)&&null!=(i=f.arrow)&&i.alignmentOffset?{}:{x:r+a.x,y:l+a.y,data:{...a,placement:o}}}}},ei=function(e){return void 0===e&&(e={}),{name:"autoPlacement",options:e,async fn(t){var i,r,l,o;let{rects:f,middlewareData:a,placement:s,platform:c,elements:m}=t,{crossAxis:h=!1,alignment:p,allowedPlacements:w=n,autoAlignment:y=!0,...x}=u(e,t),E=void 0!==p||w===n?((o=p||null)?[...w.filter(e=>d(e)===o),...w.filter(e=>d(e)!==o)]:w.filter(e=>g(e)===e)).filter(e=>!o||d(e)===o||!!y&&b(e)!==e):w,R=await c.detectOverflow(t,x),T=(null==(i=a.autoPlacement)?void 0:i.index)||0,A=E[T];if(null==A)return{};let L=v(A,f,await (null==c.isRTL?void 0:c.isRTL(m.floating)));if(s!==A)return{reset:{placement:E[0]}};let O=[R[g(A)],R[L[0]],R[L[1]]],C=[...(null==(r=a.autoPlacement)?void 0:r.overflows)||[],{placement:A,overflows:O}],P=E[T+1];if(P)return{data:{index:T+1,overflows:C},reset:{placement:P}};let S=C.map(e=>{let t=d(e.placement);return[e.placement,t&&h?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),D=(null==(l=S.filter(e=>e[2].slice(0,d(e[0])?2:3).every(e=>e<=0))[0])?void 0:l[0])||S[0][0];return D!==s?{data:{index:T+1,overflows:C},reset:{placement:D}}:{}}}},er=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){let{x:n,y:i,placement:r,platform:l}=t,{mainAxis:o=!0,crossAxis:f=!1,limiter:a={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...s}=u(e,t),d={x:n,y:i},h=await l.detectOverflow(t,s),p=w(g(r)),y=m(p),v=d[y],x=d[p];if(o){let e="y"===y?"top":"left",t="y"===y?"bottom":"right",n=v+h[e],i=v-h[t];v=c(n,v,i)}if(f){let e="y"===p?"top":"left",t="y"===p?"bottom":"right",n=x+h[e],i=x-h[t];x=c(n,x,i)}let b=a.fn({...t,[y]:v,[p]:x});return{...b,data:{x:b.x-n,y:b.y-i,enabled:{[y]:o,[p]:f}}}}}},el=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,i,r,l,o;let{placement:f,middlewareData:a,rects:s,initialPlacement:c,platform:d,elements:m}=t,{mainAxis:h=!0,crossAxis:p=!0,fallbackPlacements:y,fallbackStrategy:b="bestFit",fallbackAxisSideDirection:E="none",flipAlignment:R=!0,...T}=u(e,t);if(null!=(n=a.arrow)&&n.alignmentOffset)return{};let A=g(f),C=w(c),P=g(c)===c,S=await (null==d.isRTL?void 0:d.isRTL(m.floating)),D=y||(P||!R?[O(c)]:x(c)),W="none"!==E;!y&&W&&D.push(...L(c,R,E,S));let H=[c,...D],M=await d.detectOverflow(t,T),N=[],F=(null==(i=a.flip)?void 0:i.overflows)||[];if(h&&N.push(M[A]),p){let e=v(f,s,S);N.push(M[e[0]],M[e[1]])}if(F=[...F,{placement:f,overflows:N}],!N.every(e=>e<=0)){let e=((null==(r=a.flip)?void 0:r.index)||0)+1,t=H[e];if(t&&("alignment"!==p||C===w(t)||F.every(e=>w(e.placement)!==C||e.overflows[0]>0)))return{data:{index:e,overflows:F},reset:{placement:t}};let n=null==(l=F.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:l.placement;if(!n)switch(b){case"bestFit":{let e=null==(o=F.filter(e=>{if(W){let t=w(e.placement);return t===C||"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:o[0];e&&(n=e);break}case"initialPlacement":n=c}if(f!==n)return{reset:{placement:n}}}return{}}}},eo=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var n,l;let o,f,{placement:a,rects:s,platform:c,elements:m}=t,{apply:h=()=>{},...p}=u(e,t),y=await c.detectOverflow(t,p),v=g(a),x=d(a),b="y"===w(a),{width:E,height:R}=s.floating;"top"===v||"bottom"===v?(o=v,f=x===(await (null==c.isRTL?void 0:c.isRTL(m.floating))?"start":"end")?"left":"right"):(f=v,o="end"===x?"top":"bottom");let T=R-y.top-y.bottom,A=E-y.left-y.right,L=i(R-y[o],T),O=i(E-y[f],A),C=!t.middlewareData.shift,P=L,S=O;if(null!=(n=t.middlewareData.shift)&&n.enabled.x&&(S=A),null!=(l=t.middlewareData.shift)&&l.enabled.y&&(P=T),C&&!x){let e=r(y.left,0),t=r(y.right,0),n=r(y.top,0),i=r(y.bottom,0);b?S=E-2*(0!==e||0!==t?e+t:r(y.left,y.right)):P=R-2*(0!==n||0!==i?n+i:r(y.top,y.bottom))}await h({...t,availableWidth:S,availableHeight:P});let D=await c.getDimensions(m.floating);return E!==D.width||R!==D.height?{reset:{rects:!0}}:{}}}},ef=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){let{rects:n,platform:i}=t,{strategy:r="referenceHidden",...l}=u(e,t);switch(r){case"referenceHidden":{let e=H(await i.detectOverflow(t,{...l,elementContext:"reference"}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:M(e)}}}case"escaped":{let e=H(await i.detectOverflow(t,{...l,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:M(e)}}}default:return{}}}}},ea=e=>({name:"arrow",options:e,async fn(t){let{x:n,y:r,placement:l,rects:o,platform:f,elements:a,middlewareData:s}=t,{element:g,padding:m=0}=u(e,t)||{};if(null==g)return{};let p=C(m),w={x:n,y:r},v=y(l),x=h(v),b=await f.getDimensions(g),E="y"===v,R=E?"clientHeight":"clientWidth",T=o.reference[x]+o.reference[v]-w[v]-o.floating[x],A=w[v]-o.reference[v],L=await (null==f.getOffsetParent?void 0:f.getOffsetParent(g)),O=L?L[R]:0;O&&await (null==f.isElement?void 0:f.isElement(L))||(O=a.floating[R]||o.floating[x]);let P=O/2-b[x]/2-1,S=i(p[E?"top":"left"],P),D=i(p[E?"bottom":"right"],P),W=O-b[x]-D,H=O/2-b[x]/2+(T/2-A/2),M=c(S,H,W),N=!s.arrow&&null!=d(l)&&H!==M&&o.reference[x]/2-(H<S?S:D)-b[x]/2<0,F=N?H<S?H-S:H-W:0;return{[v]:w[v]+F,data:{[v]:M,centerOffset:H-M-F,...N&&{alignmentOffset:F}},reset:N}}}),es=function(e){return void 0===e&&(e={}),{name:"inline",options:e,async fn(t){let{placement:n,elements:l,rects:o,platform:f,strategy:a}=t,{padding:s=2,x:c,y:d}=u(e,t),m=Array.from(await (null==f.getClientRects?void 0:f.getClientRects(l.reference))||[]),h=function(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],i=null;for(let e=0;e<t.length;e++){let r=t[e];!i||r.y-i.y>i.height/2?n.push([r]):n[n.length-1].push(r),i=r}return n.map(e=>P(N(e)))}(m),p=P(N(m)),y=C(s),v=await f.getElementRects({reference:{getBoundingClientRect:function(){if(2===h.length&&h[0].left>h[1].right&&null!=c&&null!=d)return h.find(e=>c>e.left-y.left&&c<e.right+y.right&&d>e.top-y.top&&d<e.bottom+y.bottom)||p;if(h.length>=2){if("y"===w(n)){let e=h[0],t=h[h.length-1],i="top"===g(n),r=e.top,l=t.bottom,o=i?e.left:t.left,f=i?e.right:t.right;return{top:r,bottom:l,left:o,right:f,width:f-o,height:l-r,x:o,y:r}}let e="left"===g(n),t=r(...h.map(e=>e.right)),l=i(...h.map(e=>e.left)),o=h.filter(n=>e?n.left===l:n.right===t),f=o[0].top,a=o[o.length-1].bottom;return{top:f,bottom:a,left:l,right:t,width:t-l,height:a-f,x:l,y:f}}return p}},floating:l.floating,strategy:a});return o.reference.x!==v.reference.x||o.reference.y!==v.reference.y||o.reference.width!==v.reference.width||o.reference.height!==v.reference.height?{reset:{rects:v}}:{}}}},ec=function(e){return void 0===e&&(e={}),{options:e,fn(t){let{x:n,y:i,placement:r,rects:l,middlewareData:o}=t,{offset:f=0,mainAxis:a=!0,crossAxis:s=!0}=u(e,t),c={x:n,y:i},d=w(r),h=m(d),p=c[h],y=c[d],v=u(f,t),x="number"==typeof v?{mainAxis:v,crossAxis:0}:{mainAxis:0,crossAxis:0,...v};if(a){let e="y"===h?"height":"width",t=l.reference[h]-l.floating[e]+x.mainAxis,n=l.reference[h]+l.reference[e]-x.mainAxis;p<t?p=t:p>n&&(p=n)}if(s){var b,E;let e="y"===h?"width":"height",t=F.has(g(r)),n=l.reference[d]-l.floating[e]+(t&&(null==(b=o.offset)?void 0:b[d])||0)+(t?0:x.crossAxis),i=l.reference[d]+l.reference[e]+(t?0:(null==(E=o.offset)?void 0:E[d])||0)-(t?x.crossAxis:0);y<n?y=n:y>i&&(y=i)}return{[h]:p,[d]:y}}}},eu=(e,t,n)=>{let i=new Map,r={platform:Z,...n},l={...r.platform,_c:i};return W(e,t,{...r,platform:l})};e.s(["arrow",()=>ea,"autoPlacement",()=>ei,"autoUpdate",()=>et,"computePosition",()=>eu,"flip",()=>el,"hide",()=>ef,"inline",()=>es,"limitShift",()=>ec,"offset",()=>en,"shift",()=>er,"size",()=>eo],54450);var eg=e.i(40854),ed=e.i(78830),em="u">typeof document?eg.useLayoutEffect:function(){};function eh(e,t){let n,i,r;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(!eh(e[i],t[i]))return!1;return!0}if((n=(r=Object.keys(e)).length)!==Object.keys(t).length)return!1;for(i=n;0!=i--;)if(!({}).hasOwnProperty.call(t,r[i]))return!1;for(i=n;0!=i--;){let n=r[i];if(("_owner"!==n||!e.$$typeof)&&!eh(e[n],t[n]))return!1}return!0}return e!=e&&t!=t}function ep(e){return"u"<typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function ew(e,t){let n=ep(e);return Math.round(t*n)/n}function ey(e){let t=eg.useRef(e);return em(()=>{t.current=e}),t}function ev(e){void 0===e&&(e={});let{placement:t="bottom",strategy:n="absolute",middleware:i=[],platform:r,elements:{reference:l,floating:o}={},transform:f=!0,whileElementsMounted:a,open:s}=e,[c,u]=eg.useState({x:0,y:0,strategy:n,placement:t,middlewareData:{},isPositioned:!1}),[g,d]=eg.useState(i);eh(g,i)||d(i);let[m,h]=eg.useState(null),[p,w]=eg.useState(null),y=eg.useCallback(e=>{e!==E.current&&(E.current=e,h(e))},[]),v=eg.useCallback(e=>{e!==R.current&&(R.current=e,w(e))},[]),x=l||m,b=o||p,E=eg.useRef(null),R=eg.useRef(null),T=eg.useRef(c),A=null!=a,L=ey(a),O=ey(r),C=ey(s),P=eg.useCallback(()=>{if(!E.current||!R.current)return;let e={placement:t,strategy:n,middleware:g};O.current&&(e.platform=O.current),eu(E.current,R.current,e).then(e=>{let t={...e,isPositioned:!1!==C.current};S.current&&!eh(T.current,t)&&(T.current=t,ed.flushSync(()=>{u(t)}))})},[g,t,n,O,C]);em(()=>{!1===s&&T.current.isPositioned&&(T.current.isPositioned=!1,u(e=>({...e,isPositioned:!1})))},[s]);let S=eg.useRef(!1);em(()=>(S.current=!0,()=>{S.current=!1}),[]),em(()=>{if(x&&(E.current=x),b&&(R.current=b),x&&b){if(L.current)return L.current(x,b,P);P()}},[x,b,P,L,A]);let D=eg.useMemo(()=>({reference:E,floating:R,setReference:y,setFloating:v}),[y,v]),W=eg.useMemo(()=>({reference:x,floating:b}),[x,b]),H=eg.useMemo(()=>{let e={position:n,left:0,top:0};if(!W.floating)return e;let t=ew(W.floating,c.x),i=ew(W.floating,c.y);return f?{...e,transform:"translate("+t+"px, "+i+"px)",...ep(W.floating)>=1.5&&{willChange:"transform"}}:{position:n,left:t,top:i}},[n,f,W.floating,c.x,c.y]);return eg.useMemo(()=>({...c,update:P,refs:D,elements:W,floatingStyles:H}),[c,P,D,W,H])}let ex=(e,t)=>({...en(e),options:[e,t]}),eb=(e,t)=>({...er(e),options:[e,t]}),eE=(e,t)=>({...ec(e),options:[e,t]}),eR=(e,t)=>({...el(e),options:[e,t]}),eT=(e,t)=>({...eo(e),options:[e,t]}),eA=(e,t)=>({...ef(e),options:[e,t]}),eL=(e,t)=>({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?ea({element:n.current,padding:i}).fn(t):{}:n?ea({element:n,padding:i}).fn(t):{}},options:[e,t]});e.s(["arrow",()=>eL,"flip",()=>eR,"hide",()=>eA,"limitShift",()=>eE,"offset",()=>ex,"shift",()=>eb,"size",()=>eT,"useFloating",()=>ev],34631)}]);