@inkeep/open-knowledge 0.86.18 → 0.86.19-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/THIRD_PARTY_NOTICES.md +2 -2
- package/dist/cli.mjs +6 -6
- package/dist/constants-DTpS5DPL.mjs +1 -0
- package/dist/{dist-CbA9Te53.mjs → dist-DRgSOIS6.mjs} +468 -468
- package/dist/{dist-dkuaYp-W.mjs → dist-DyVcFCkj.mjs} +1 -1
- package/dist/index.mjs +81 -81
- package/dist/{init-CkPbFkR2.mjs → init-Cc3pxAas.mjs} +2 -2
- package/dist/init-rFslisPX.mjs +1 -0
- package/dist/{launch-json-removal-DmAd4dyj.mjs → launch-json-removal-Ca30Nixh.mjs} +1 -1
- package/dist/{loader-2OYXo10U.mjs → loader-BwPvEjuE.mjs} +1 -1
- package/dist/loader-Cy9oZb72.mjs +1 -0
- package/dist/{open-browser-foWNoVBg.mjs → open-browser-CFW5reH2.mjs} +1 -1
- package/dist/{preview-ZGsL-Uwx.mjs → preview-BKERSD2q.mjs} +1 -1
- package/dist/preview-CJewZ-WB.mjs +1 -0
- package/dist/public/assets/{AboutSection-1db6GHW2.js → AboutSection-LPELvEUl.js} +1 -1
- package/dist/public/assets/{AccountSection-nOUz0-XO.js → AccountSection-DlWsbV8D.js} +1 -1
- package/dist/public/assets/{ActivityModeContent-oDazjwS5.js → ActivityModeContent-DkGHz9Ku.js} +1 -1
- package/dist/public/assets/{AddPropertiesButton-NmSFHeqp.js → AddPropertiesButton-D__sehWQ.js} +1 -1
- package/dist/public/assets/{AgentConnectionsSection--iYEJFNT.js → AgentConnectionsSection-DhbJCdHu.js} +1 -1
- package/dist/public/assets/{AgentDiffPane-DthmBv1_.js → AgentDiffPane-xuZ1KudZ.js} +1 -1
- package/dist/public/assets/{AgentIconCluster-Ys-JZNda.js → AgentIconCluster-DYP1yNXm.js} +1 -1
- package/dist/public/assets/{AppMenubar-DDyx__mD.js → AppMenubar-ClplcAeM.js} +1 -1
- package/dist/public/assets/{AttachmentsSection-CdJEk9iY.js → AttachmentsSection-CHLjnxc0.js} +1 -1
- package/dist/public/assets/{CodeMirrorPropInput-BgNaaq8o.js → CodeMirrorPropInput-BpHUFt_h.js} +11 -11
- package/dist/public/assets/{ConfigSharingInfoTooltip-l_ayrcN2.js → ConfigSharingInfoTooltip-DSloJmkE.js} +1 -1
- package/dist/public/assets/{ConsentDialogBody-CYoQuVtn.js → ConsentDialogBody-CaPp8huq.js} +1 -1
- package/dist/public/assets/{ContentRulesSection-n5_Uq6lF.js → ContentRulesSection-wbtHcBqr.js} +1 -1
- package/dist/public/assets/{CopyButton-qKG_Y_eK.js → CopyButton-BTy3joJd.js} +1 -1
- package/dist/public/assets/{DocumentContext-DEUbe-Z2.js → DocumentContext-CQ2e0uie.js} +13 -13
- package/dist/public/assets/EditorModeToggle-B_E4wnhm.js +1 -0
- package/dist/public/assets/{ExcalidrawDocEditor-CSIWz9Xb.js → ExcalidrawDocEditor-BcoRuAVp.js} +1 -1
- package/dist/public/assets/FeedbackForm-DhJSsu3n.js +1 -0
- package/dist/public/assets/{GraphPanel-KRwmAWVK.js → GraphPanel-D1tkoAHM.js} +2 -2
- package/dist/public/assets/{HotkeysSection-BMjtAkGn.js → HotkeysSection-C9sCf3j3.js} +1 -1
- package/dist/public/assets/{ImageAttachments-BWXjEZGr.js → ImageAttachments-BDh-av0V.js} +1 -1
- package/dist/public/assets/{ImportSkillDialog-CN46mvgE.js → ImportSkillDialog-lBL0HNJp.js} +1 -1
- package/dist/public/assets/{IntegrationsSection-DoiLVCsa.js → IntegrationsSection-D3htSKMO.js} +1 -1
- package/dist/public/assets/{LinkPreviewsSection-CRyMimUF.js → LinkPreviewsSection-CULpqlH7.js} +1 -1
- package/dist/public/assets/{LintConfigEditor-DBUpKLAE.js → LintConfigEditor-6YyaXnFA.js} +1 -1
- package/dist/public/assets/{LintingSection-I4kdwFqj.js → LintingSection-DSwALvf4.js} +1 -1
- package/dist/public/assets/{ManagedArtifactProperties-DL5zmaf5.js → ManagedArtifactProperties-vvyx0y7Q.js} +1 -1
- package/dist/public/assets/ManagedArtifactProperties-wzj7pm-b.js +1 -0
- package/dist/public/assets/{McpConsentDialogBody-DKAfUcdT.js → McpConsentDialogBody-BwguVGDQ.js} +1 -1
- package/dist/public/assets/{Mermaid-BUWNFmOJ.js → Mermaid-DqNhHNi1.js} +2 -2
- package/dist/public/assets/{MermaidDocEditor-DUBLFQmb.js → MermaidDocEditor-BqqrJSxz.js} +1 -1
- package/dist/public/assets/{NetworkAccessSection-BV64VxAs.js → NetworkAccessSection-CJ-k8kEB.js} +1 -1
- package/dist/public/assets/{OkCliPathRow-XzRstb3V.js → OkCliPathRow-CIrEL7IY.js} +1 -1
- package/dist/public/assets/{OkignoreSection-CItndbA4.js → OkignoreSection-BudJQycp.js} +1 -1
- package/dist/public/assets/{OpenInAgentMenuItem-BFQfpofi.js → OpenInAgentMenuItem-DUU1-QP7.js} +1 -1
- package/dist/public/assets/{ProjectTemplatesSection-CF-P6d-M.js → ProjectTemplatesSection-DCliKsre.js} +1 -1
- package/dist/public/assets/{PropertyDisplayRow-aSFDp_7w.js → PropertyDisplayRow-Cm34goFj.js} +1 -1
- package/dist/public/assets/{PublishToGitHubDialog-DZR6cdaM.js → PublishToGitHubDialog-jx0Tzybl.js} +1 -1
- package/dist/public/assets/{ReportBugDialogBody-Cuv8swjY.js → ReportBugDialogBody-J5o6Nxwn.js} +1 -1
- package/dist/public/assets/{ReportBugMenuTrigger-DCel1VGa.js → ReportBugMenuTrigger-CAUKQKXn.js} +1 -1
- package/dist/public/assets/{RowDisclosure-gIio7LxD.js → RowDisclosure-Bj2sD4-N.js} +1 -1
- package/dist/public/assets/{SchemaConfigEditor-Dxa3qMiC.js → SchemaConfigEditor-co1_VbGJ.js} +1 -1
- package/dist/public/assets/{SearchSection-DTYxFQGg.js → SearchSection-CU6mVIBD.js} +1 -1
- package/dist/public/assets/{SessionsHost-CHxDnXNN.js → SessionsHost-Ve1-rpr4.js} +2 -2
- package/dist/public/assets/{SettingsDialogBody-nzUdIG66.js → SettingsDialogBody-Du3F7eab.js} +2 -2
- package/dist/public/assets/{SettingsSectionHeader-BiiyXKRM.js → SettingsSectionHeader-DDNA1hrR.js} +1 -1
- package/dist/public/assets/{ShareBranchSwitchDialog-cMvRsP7t.js → ShareBranchSwitchDialog-BNGZhCgr.js} +1 -1
- package/dist/public/assets/{ShareReceiveMissDialog-CT0s6SZD.js → ShareReceiveMissDialog-Bsh7llP0.js} +1 -1
- package/dist/public/assets/{SharingSection-DZKx4kGQ.js → SharingSection-Y4AD8HPt.js} +1 -1
- package/dist/public/assets/{SkillCostValue-CAF_ekD2.js → SkillCostValue-DBT6aDG-.js} +1 -1
- package/dist/public/assets/{SkillInstallMenu-Do_U4WMQ.js → SkillInstallMenu-DyKWxkEY.js} +1 -1
- package/dist/public/assets/{SkillOriginInline-RclplHSV.js → SkillOriginInline-D6YyylB6.js} +1 -1
- package/dist/public/assets/{SkillPluginBundleDialog-8mBM4DTV.js → SkillPluginBundleDialog-BmLQqQms.js} +1 -1
- package/dist/public/assets/{SkillToolbarControls-BmBSoXUZ.js → SkillToolbarControls-Dg0uH9dc.js} +1 -1
- package/dist/public/assets/{SkillsManagerSection-B5aptPCM.js → SkillsManagerSection-C0pgRzfs.js} +1 -1
- package/dist/public/assets/{SlidesPluginSection-DBHq4ZBE.js → SlidesPluginSection-B8KiQkqa.js} +1 -1
- package/dist/public/assets/{SlidesToolbarControls-BSo10McR.js → SlidesToolbarControls-DxIDubwo.js} +1 -1
- package/dist/public/assets/{SourceEditor-BKESs3iE.js → SourceEditor-BxraIyxO.js} +1 -1
- package/dist/public/assets/SpellingSettings-CElN7mrA.js +1 -0
- package/dist/public/assets/{SyncSection-DG4NKKV6.js → SyncSection-CI62AsGJ.js} +1 -1
- package/dist/public/assets/{SyncStatusBadge-DbPwIAZ6.js → SyncStatusBadge--DiNAARL.js} +1 -1
- package/dist/public/assets/{TemplateRow-C40fof6w.js → TemplateRow-DsoFn6-i.js} +1 -1
- package/dist/public/assets/{TerminalLaunchContext-CREkMahV.js → TerminalLaunchContext-DWUMDSpw.js} +1 -1
- package/dist/public/assets/{TerminalPanel-DYLjq5_k.js → TerminalPanel-ByCiyPt3.js} +1 -1
- package/dist/public/assets/{TerminalSection-Dn5Zx9la.js → TerminalSection-BWcfGvEV.js} +1 -1
- package/dist/public/assets/{TerminalWindowApp-B1S9JVI5.js → TerminalWindowApp-BXHW_7B9.js} +1 -1
- package/dist/public/assets/{TextDocEditor-t0PyPTxV.js → TextDocEditor-C8zsOMpH.js} +1 -1
- package/dist/public/assets/{ThemePluginSection-CpNh8zVh.js → ThemePluginSection-McKmY5If.js} +1 -1
- package/dist/public/assets/{ThreadView-C5kp9I_d.js → ThreadView-CjKcF5Bj.js} +1 -1
- package/dist/public/assets/{TimelineDiffPane-CY_w4ApS.js → TimelineDiffPane-BScs4tYQ.js} +1 -1
- package/dist/public/assets/{agent-connections-5LGp4_96.js → agent-connections-DSKODCmO.js} +1 -1
- package/dist/public/assets/auth-prompt-store-C_-QXZFC.js +1 -0
- package/dist/public/assets/{client-version-B5RMgZIK.js → client-version-Dyx1KpjP.js} +1 -1
- package/dist/public/assets/{cm-theme-BoQxNVQo.js → cm-theme-Dml6DrPs.js} +1 -1
- package/dist/public/assets/{comment-chips-wISZaR8q.js → comment-chips-BTYU41zd.js} +1 -1
- package/dist/public/assets/{config-provider-CLiLqORc.js → config-provider-Bu33ODD8.js} +1 -1
- package/dist/public/assets/{context-menu-DWPgomGa.js → context-menu-B5MxEep2.js} +1 -1
- package/dist/public/assets/{dist-CxQmGY4K.js → dist-BUMFJcXg.js} +13 -12
- package/dist/public/assets/{dist-ecS2llwR.js → dist-BzicVdNV.js} +1 -1
- package/dist/public/assets/{dist-UouvQIiM.js → dist-C0nuYMFu.js} +1 -1
- package/dist/public/assets/{dist-D1AbXGbs.js → dist-Cj3Bpren.js} +1 -1
- package/dist/public/assets/{dist-YVu4MRkZ2.js → dist-DXjgFhPl2.js} +1 -1
- package/dist/public/assets/dist-DjMGDcCv.js +161 -0
- package/dist/public/assets/{dist-d0R4nnoB.js → dist-d2WYntJB.js} +1 -1
- package/dist/public/assets/{doc-undo-manager-Dq0xUVqE.js → doc-undo-manager-CPZo2IhT.js} +1 -1
- package/dist/public/assets/{dropdown-menu-DtLu9NwU.js → dropdown-menu-5XqyQTVx.js} +1 -1
- package/dist/public/assets/field-controls-CCcf2ybM.js +1 -0
- package/dist/public/assets/field-controls-CKb1JSHS.js +6 -0
- package/dist/public/assets/{floating-ui.dom-DkPPH5vF.js → floating-ui.dom-BYl7JZd0.js} +1 -1
- package/dist/public/assets/globals-Cr0S8PDH.css +1 -0
- package/dist/public/assets/{ime-composition-Dvok5Aig.js → ime-composition-_BDVzXn4.js} +1 -1
- package/dist/public/assets/index-DQZmjexO.js +2209 -0
- package/dist/public/assets/{lint-plugins-B2ISAGv1.js → lint-plugins-Cv7WvUlN.js} +1 -1
- package/dist/public/assets/{markdownlint-rule-browser-Ct2gBGg7.js → markdownlint-rule-browser-BQ4c4vDN.js} +1 -1
- package/dist/public/assets/{pending-receive-nav-store-BVdZUxyv.js → pending-receive-nav-store-6bXbTZhv.js} +1 -1
- package/dist/public/assets/{popover-BNtf9SIu.js → popover-Mb1GgB61.js} +1 -1
- package/dist/public/assets/{preferred-session-events-DyF-zGVw.js → preferred-session-events-BytmLBUB.js} +1 -1
- package/dist/public/assets/preview-frame.html +9 -0
- package/dist/public/assets/{prod-tc4sAE_j.js → prod-CN58f7_5.js} +1 -1
- package/dist/public/assets/{progress-UaljIhan.js → progress-Ba4KJbjQ.js} +1 -1
- package/dist/public/assets/{project-paths-DVH_uA_B.js → project-paths-BFzGZn4G.js} +1 -1
- package/dist/public/assets/{schema-section-ayoRsG9p.js → schema-section-CalUQFIh.js} +1 -1
- package/dist/public/assets/{select-Bu4Wm3Rf.js → select-pACXgFe2.js} +1 -1
- package/dist/public/assets/{selection-context-DUCgNUF1.js → selection-context-BdkqiHSg.js} +1 -1
- package/dist/public/assets/{src-B0QKvZvz.js → src-BKxD4aGX.js} +1 -1
- package/dist/public/assets/{tag-pill-input-ez8oOC69.js → tag-pill-input-D6mNhknm.js} +1 -1
- package/dist/public/assets/{telemetry-impl-DxN46IeS.js → telemetry-impl-lt4HgP_f.js} +1 -1
- package/dist/public/assets/{telemetry-startup-D6Eiqg0a.js → telemetry-startup-COAksO_l.js} +1 -1
- package/dist/public/assets/{tooltip-DBqLYfio.js → tooltip-Bz6z4_se.js} +1 -1
- package/dist/public/assets/{typing-burst-detector-DVA93P7-.js → typing-burst-detector-Ceucd7lf.js} +1 -1
- package/dist/public/assets/{uninstall-CoAbS5TW.js → uninstall-DFTOzPT_.js} +1 -1
- package/dist/public/assets/{use-activity-panel-COfLk6p7.js → use-activity-panel-ClZw0uAV.js} +1 -1
- package/dist/public/assets/{use-installed-clis-DBO1ohE8.js → use-installed-clis-BopBqnEZ.js} +2 -2
- package/dist/public/assets/{use-open-skill-C_H2GP75.js → use-open-skill-BufHQt2J.js} +1 -1
- package/dist/public/assets/{use-terminal-enabled-B6tq2SSg.js → use-terminal-enabled-kUXuNyA3.js} +1 -1
- package/dist/public/assets/{use-timeline-entry-diff-DYB18Q1p.js → use-timeline-entry-diff-DIXfdlmY.js} +1 -1
- package/dist/public/index.html +51 -51
- package/dist/public/uninstall.html +3 -3
- package/dist/{registry-probes-BlQKMPi4.mjs → registry-probes-BzVs0MZl.mjs} +1 -1
- package/dist/{removal-file-path-D9yKcMpY.mjs → removal-file-path-DjVZJivF.mjs} +1 -1
- package/dist/{repair-launch-json-B0OX3YQi.mjs → repair-launch-json-DaJc8F0u.mjs} +1 -1
- package/dist/{repair-mcp-configs-CGq6k6H_.mjs → repair-mcp-configs-GI1XgsXr.mjs} +1 -1
- package/dist/{src-CjXfLoyT.mjs → src-CiJt-PQj.mjs} +1 -1
- package/dist/src-Dt5ff2eL.mjs +1 -0
- package/dist/{start-BbxRMheZ.mjs → start-CNmN3UB5.mjs} +3 -3
- package/dist/start-CTAc0UYC.mjs +1 -0
- package/package.json +4 -4
- package/dist/constants-DUiVsIOs.mjs +0 -1
- package/dist/init-l9cfH71w.mjs +0 -1
- package/dist/loader-YYzZ4B4e.mjs +0 -1
- package/dist/preview-B7Sklqw2.mjs +0 -1
- package/dist/public/assets/EditorModeToggle-CP1ztRWC.js +0 -1
- package/dist/public/assets/FeedbackForm-DORFfDxS.js +0 -1
- package/dist/public/assets/ManagedArtifactProperties-C-4znHTQ.js +0 -1
- package/dist/public/assets/SpellingSettings-Br-26Hbn.js +0 -1
- package/dist/public/assets/auth-prompt-store-BVF1DJFW.js +0 -1
- package/dist/public/assets/dist-JrdDgCNs.js +0 -124
- package/dist/public/assets/field-controls-CXow0RGZ.js +0 -1
- package/dist/public/assets/field-controls-DdrxD5BW.js +0 -6
- package/dist/public/assets/globals-BXqkmCJW.css +0 -1
- package/dist/public/assets/index-Cc2rvqNG.js +0 -2209
- package/dist/src-h06ZmOk0.mjs +0 -1
- package/dist/start-BdARbmeL.mjs +0 -1
- /package/dist/public/assets/{globals-IGp2_ZaI.js → globals-DHDe92Ga.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
var e=[`top`,`right`,`bottom`,`left`],t=[`start`,`end`],n=e.reduce((e,n)=>e.concat(n,n+`-`+t[0],n+`-`+t[1]),[]),r=Math.min,i=Math.max,a=Math.round,o=Math.floor,s=e=>({x:e,y:e}),c={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function l(e,t,n){return i(e,r(t,n))}function u(e,t){return typeof e==`function`?e(t):e}function d(e){return e.split(`-`)[0]}function f(e){return e.split(`-`)[1]}function p(e){return e===`x`?`y`:`x`}function m(e){return e===`y`?`height`:`width`}function h(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function g(e){return p(h(e))}function _(e,t,n){n===void 0&&(n=!1);let r=f(e),i=g(e),a=m(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=E(o)),[o,E(o)]}function v(e){let t=E(e);return[y(e),t,y(t)]}function y(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var b=[`left`,`right`],x=[`right`,`left`],S=[`top`,`bottom`],C=[`bottom`,`top`];function w(e,t,n){switch(e){case`top`:case`bottom`:return n?t?x:b:t?b:x;case`left`:case`right`:return t?S:C;default:return[]}}function T(e,t,n,r){let i=f(e),a=w(d(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(y)))),a}function E(e){let t=d(e);return c[t]+e.slice(t.length)}function D(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function O(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:D(e)}function k(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function A(e,t,n){let{reference:r,floating:i}=e,a=h(t),o=g(t),s=m(o),c=d(t),l=a===`y`,u=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,_=r[s]/2-i[s]/2,v;switch(c){case`top`:v={x:u,y:r.y-i.height};break;case`bottom`:v={x:u,y:r.y+r.height};break;case`right`:v={x:r.x+r.width,y:p};break;case`left`:v={x:r.x-i.width,y:p};break;default:v={x:r.x,y:r.y}}let y=f(t);return y&&(v[o]+=_*(y===`end`?1:-1)*(n&&l?-1:1)),v}async function j(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=u(t,e),m=O(p),h=o[f?d===`floating`?`reference`:`floating`:d],g=k(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(h))??!0?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),_=d===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(v))&&await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1},b=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:_,offsetParent:v,strategy:s}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var M=50,N=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:j},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=A(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<M&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=A(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ee=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:i,placement:a,rects:o,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=u(e,t)||{};if(p==null)return{};let _=O(h),v={x:n,y:i},y=g(a),b=m(y),x=await s.getDimensions(p),S=y===`y`,C=S?`top`:`left`,w=S?`bottom`:`right`,T=S?`clientHeight`:`clientWidth`,E=o.reference[b]+o.reference[y]-v[y]-o.floating[b],D=v[y]-o.reference[y],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),A=k?k[T]:0;(!A||!await(s.isElement==null?void 0:s.isElement(k)))&&(A=c.floating[T]||o.floating[b]);let j=E/2-D/2,M=A/2-x[b]/2-1,N=r(_[C],M),ee=r(_[w],M),te=A-x[b]-ee,P=A/2-x[b]/2+j,F=l(N,P,te),I=!d.arrow&&f(a)!=null&&P!==F&&o.reference[b]/2-(P<N?N:ee)-x[b]/2<0,L=I?P<N?P-N:P-te:0;return{[y]:v[y]+L,data:{[y]:F,centerOffset:P-F-L,...I&&{alignmentOffset:L}},reset:I}}});function te(e,t,n){return(e?[...n.filter(t=>f(t)===e),...n.filter(t=>f(t)!==e)]:n.filter(e=>d(e)===e)).filter(n=>e?f(n)===e||(t?y(n)!==n:!1):!0)}var P=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:r,middlewareData:i,placement:a,platform:o,elements:s}=t,{crossAxis:c=!1,alignment:l,allowedPlacements:p=n,autoAlignment:m=!0,...h}=u(e,t),g=l!==void 0||p===n?te(l||null,m,p):p,v=i.autoPlacement?.index||0,y=g[v];if(y==null)return{};if(a!==y)return{reset:{placement:g[0]}};let b=await o.detectOverflow(t,h),x=_(y,r,await(o.isRTL==null?void 0:o.isRTL(s.floating))),S=[b[d(y)],b[x[0]],b[x[1]]],C=[...i.autoPlacement?.overflows||[],{placement:y,overflows:S}],w=g[v+1];if(w)return{data:{index:v+1,overflows:C},reset:{placement:w}};let T=C.map(e=>{let t=f(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),E=T.filter(e=>e[2].slice(0,f(e[0])?2:3).every(e=>e<=0))[0]?.[0]||T[0][0];return E===a?{}:{data:{index:v+1,overflows:C},reset:{placement:E}}}}},F=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m=`bestFit`,fallbackAxisSideDirection:g=`none`,flipAlignment:y=!0,...b}=u(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let x=d(r),S=h(o),C=d(o)===o,w=await(s.isRTL==null?void 0:s.isRTL(c.floating)),D=p||(C||!y?[E(o)]:v(o)),O=g!==`none`;!p&&O&&D.push(...T(o,y,g,w));let k=[o,...D],A=await s.detectOverflow(t,b),j=[],M=i.flip?.overflows||[];if(l&&j.push(A[x]),f){let e=_(r,a,w);j.push(A[e[0]],A[e[1]])}if(M=[...M,{placement:r,overflows:j}],!j.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=k[e];if(t&&(!(f===`alignment`&&S!==h(t))||M.every(e=>h(e.placement)===S?e.overflows[0]>0:!0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(m){case`bestFit`:{let e=M.filter(e=>{if(O){let t=h(e.placement);return t===S||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L(t){return e.some(e=>t[e]>=0)}var ne=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=u(e,t);switch(i){case`referenceHidden`:{let e=I(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:L(e)}}}case`escaped`:{let e=I(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:L(e)}}}default:return{}}}}};function re(e){let t=r(...e.map(e=>e.left)),n=r(...e.map(e=>e.top)),a=i(...e.map(e=>e.right)),o=i(...e.map(e=>e.bottom));return{x:t,y:n,width:a-t,height:o-n}}function ie(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>k(re(e)))}var ae=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:a,rects:o,platform:s,strategy:c}=t,{padding:l=2,x:f,y:p}=u(e,t),m=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(a.reference))||[]);if(!m.length)return{};let g=ie(m),_=k(re(m)),v=O(l);function y(){if(g.length===2&&(g[0].left>g[1].right||g[1].left>g[0].right)&&f!=null&&p!=null)return g.find(e=>f>e.left-v.left&&f<e.right+v.right&&p>e.top-v.top&&p<e.bottom+v.bottom)||_;if(g.length>=2){if(h(n)===`y`){let e=g[0],t=g[g.length-1],r=d(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return k({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=d(n)===`left`,t=i(...g.map(e=>e.right)),a=r(...g.map(e=>e.left)),o=g.filter(n=>e?n.left===a:n.right===t),s=o[0].top,c=o[o.length-1].bottom;return k({x:a,y:s,width:t-a,height:c-s})}return _}let b=await s.getElementRects({reference:{getBoundingClientRect:y},floating:a.floating,strategy:c});return o.reference.x!==b.reference.x||o.reference.y!==b.reference.y||o.reference.width!==b.reference.width||o.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},oe=new Set([`left`,`top`]);async function se(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=d(n),s=f(n),c=h(n)===`y`,l=oe.has(o)?-1:1,p=a&&c?-1:1,m=u(t,e),{mainAxis:g,crossAxis:_,alignmentAxis:v}=typeof m==`number`?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof v==`number`&&(_=s===`end`?v*-1:v),c?{x:_*p,y:g*l}:{x:g*l,y:_*p}}var ce=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await se(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},le=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=u(e,t),f={x:n,y:r},m=await a.detectOverflow(t,d),g=h(i),_=p(g),v=f[_],y=f[g],b=(e,t)=>l(t+m[e===`y`?`top`:`left`],t,t-m[e===`y`?`bottom`:`right`]);o&&(v=b(_,v)),s&&(y=b(g,y));let x=c.fn({...t,[_]:v,[g]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[_]:o,[g]:s}}}}}},ue=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=u(e,t),f={x:n,y:r},m=h(i),g=p(m),_=f[g],v=f[m],y=u(s,t),b=typeof y==`number`?{mainAxis:y,crossAxis:0}:{mainAxis:y.mainAxis??0,crossAxis:y.crossAxis??0};if(c){let e=g===`y`?`height`:`width`,t=a.reference[g]-a.floating[e]+b.mainAxis,n=a.reference[g]+a.reference[e]-b.mainAxis;_<t?_=t:_>n&&(_=n)}if(l){let e=g===`y`?`width`:`height`,t=oe.has(d(i)),n=a.reference[m]-a.floating[e]+(t&&o.offset?.[m]||0)+(t?0:b.crossAxis),r=a.reference[m]+a.reference[e]+(t?0:o.offset?.[m]||0)-(t?b.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[g]:_,[m]:v}}}},de=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=u(e,t),p=await o.detectOverflow(t,l),m=d(n),g=f(n),_=h(n)===`y`,{width:v,height:y}=a.floating,b,x;m===`top`||m===`bottom`?(b=m,x=g===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(x=m,b=g===`end`?`top`:`bottom`);let S=y-p.top-p.bottom,C=v-p.left-p.right,w=r(y-p[b],S),T=r(v-p[x],C),E=t.middlewareData.shift,D=!E,O=w,k=T;E!=null&&E.enabled.x&&(k=C),E!=null&&E.enabled.y&&(O=S),D&&!g&&(_?k=v-2*i(p.left,p.right):O=y-2*i(p.top,p.bottom)),await c({...t,availableWidth:k,availableHeight:O});let A=await o.getDimensions(s.floating);return v!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function R(){return typeof window<`u`}function z(e){return fe(e)?(e.nodeName||``).toLowerCase():`#document`}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function V(e){return((fe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function fe(e){return R()?e instanceof Node||e instanceof B(e).Node:!1}function H(e){return R()?e instanceof Element||e instanceof B(e).Element:!1}function U(e){return R()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function pe(e){return!R()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}function W(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function me(e){return/^(table|td|th)$/.test(z(e))}function G(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var he=/transform|translate|scale|rotate|perspective|filter/,ge=/paint|layout|strict|content/,K=e=>!!e&&e!==`none`,_e;function ve(e){let t=H(e)?J(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!be()&&(K(t.backdropFilter)||K(t.filter))||he.test(t.willChange||``)||ge.test(t.contain||``)}function ye(e){let t=X(e);for(;U(t)&&!q(t);){if(ve(t))return t;if(G(t))return null;t=X(t)}return null}function be(){return _e??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),_e}function q(e){return/^(html|body|#document)$/.test(z(e))}function J(e){return B(e).getComputedStyle(e)}function Y(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(z(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||pe(e)&&e.host||V(e);return pe(t)?t.host:t}function xe(e){let t=X(e);return q(t)?(e.ownerDocument||e).body:U(t)&&W(t)?t:xe(t)}function Z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=xe(e),i=r===e.ownerDocument?.body,a=B(r);if(i){let e=Se(a);return t.concat(a,a.visualViewport||[],W(r)?r:[],e&&n?Z(e):[])}else return t.concat(r,Z(r,[],n))}function Se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ce(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=U(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=a(n)!==o||a(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function we(e){return H(e)?e:e.contextElement}function Q(e){let t=we(e);if(!U(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ce(t),c=(o?a(n.width):n.width)/r,l=(o?a(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var Te=s(0);function Ee(e){let t=B(e);return!be()||!t.visualViewport?Te:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function De(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===B(e)}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=we(e),o=s(1);t&&(r?H(r)&&(o=Q(r)):o=Q(e));let c=De(a,n,r)?Ee(a):s(0),l=(i.left+c.x)/o.x,u=(i.top+c.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(a&&r){let e=B(a),t=H(r)?B(r):r,n=e,i=Se(n);for(;i&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=a,u+=o,n=B(i),i=Se(n)}}return k({width:d,height:f,x:l,y:u})}function Oe(e,t){let n=Y(e).scrollLeft;return t?t.left+n:$(V(e)).left+n}function ke(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Oe(e,n),y:n.top+t.scrollTop}}function Ae(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=V(r),c=t?G(t.floating):!1;if(r===o||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=s(1),d=s(0),f=U(r);if((f||!a)&&((z(r)!==`body`||W(o))&&(l=Y(r)),f)){let e=$(r);u=Q(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=o&&!f&&!a?ke(o,l):s(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function je(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Me(e){let t=Y(e),n=e.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=i(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),o=-t.scrollLeft+Oe(e),s=-t.scrollTop;return J(n).direction===`rtl`&&(o+=i(e.clientWidth,n.clientWidth)-r),{width:r,height:a,x:o,y:s}}var Ne=25;function Pe(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=B(e),a=V(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!be()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Oe(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ne&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Fe(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Q(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ie(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Pe(e,n,t);else if(t===`document`)r=Me(V(e));else if(H(t))r=Fe(t,n);else{let n=Ee(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(r)}function Le(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>H(e)&&z(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?X(e):e;for(;H(o)&&!q(o);){let e=J(o),t=ve(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=X(o)}return t.set(e,r),r}function Re(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e,s=[...n===`clippingAncestors`?G(t)?[]:Le(t,this._c):[].concat(n),a],c=Ie(t,s[0],o),l=c.top,u=c.right,d=c.bottom,f=c.left;for(let e=1;e<s.length;e++){let n=Ie(t,s[e],o);l=i(n.top,l),u=r(n.right,u),d=r(n.bottom,d),f=i(n.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function ze(e){let{width:t,height:n}=Ce(e);return{width:t,height:n}}function Be(e,t,n){let r=U(t),i=V(t),a=n===`fixed`,o=$(e,!0,a,t),c={scrollLeft:0,scrollTop:0},l=s(0);if((r||!a)&&((z(t)!==`body`||W(i))&&(c=Y(t)),r)){let e=$(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&i&&(l.x=Oe(i));let u=i&&!r&&!a?ke(i,c):s(0);return{x:o.left+c.scrollLeft-l.x-u.x,y:o.top+c.scrollTop-l.y-u.y,width:o.width,height:o.height}}function Ve(e){return J(e).position===`static`}function He(e,t){if(!U(e)||J(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function Ue(e,t){let n=B(e);if(G(e))return n;if(!U(e)){let t=X(e);for(;t&&!q(t);){if(H(t)&&!Ve(t))return t;t=X(t)}return n}let r=He(e,t);for(;r&&me(r)&&Ve(r);)r=He(r,t);return r&&q(r)&&Ve(r)&&!ve(r)?n:r||ye(e)||n}var We=async function(e){let t=this.getOffsetParent||Ue,n=this.getDimensions,r=await n(e.floating);return{reference:Be(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ge(e){return J(e).direction===`rtl`}var Ke={convertOffsetParentRelativeRectToViewportRelativeRect:Ae,getDocumentElement:V,getClippingRect:Re,getOffsetParent:Ue,getElementRects:We,getClientRects:je,getDimensions:ze,getScale:Q,isElement:H,isRTL:Ge};function qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Je(e,t,n){let a=null,s,c=V(e);function l(){var e;clearTimeout(s),(e=a)==null||e.disconnect(),a=null}function u(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),l();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=f;if(n||t(),!h||!g)return;let _=o(m),v=o(c.clientWidth-(p+h)),y=o(c.clientHeight-(m+g)),b=o(p),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:i(0,r(1,d))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(!qe(f,e.getBoundingClientRect()))return u();if(n!==d){if(!S)return u();n?u(!1,n):s=setTimeout(()=>{u(!1,1e-7)},1e3)}S=!1}try{a=new IntersectionObserver(C,{...x,root:c.ownerDocument})}catch{a=new IntersectionObserver(C,x)}a.observe(e)}let d=B(e),f=()=>u(n);return d.addEventListener(`resize`,f),u(!0),()=>{d.removeEventListener(`resize`,f),l()}}function Ye(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=we(e),u=i||a?[...l?Z(l):[],...t?Z(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Je(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!qe(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Xe=ce,Ze=P,Qe=le,$e=F,et=de,tt=ne,nt=ee,rt=ae,it=ue,at=(e,t,n)=>{let r=new Map,i=n??{},a={...Ke,...i.platform,_c:r};return N(e,t,{...i,platform:a})};export{d as A,l as C,g as D,f as E,m as O,pe as S,o as T,H as _,$e as a,fe as b,it as c,et as d,J as f,B as g,X as h,at as i,h as j,O as k,Xe as l,Z as m,Ze as n,tt as o,z as p,Ye as r,rt as s,nt as t,Qe as u,U as v,u as w,W as x,q as y};
|
|
1
|
+
var e=[`top`,`right`,`bottom`,`left`],t=[`start`,`end`],n=e.reduce((e,n)=>e.concat(n,n+`-`+t[0],n+`-`+t[1]),[]),r=Math.min,i=Math.max,a=Math.round,o=Math.floor,s=e=>({x:e,y:e}),c={left:`right`,right:`left`,bottom:`top`,top:`bottom`};function l(e,t,n){return i(e,r(t,n))}function u(e,t){return typeof e==`function`?e(t):e}function d(e){return e.split(`-`)[0]}function f(e){return e.split(`-`)[1]}function p(e){return e===`x`?`y`:`x`}function m(e){return e===`y`?`height`:`width`}function h(e){let t=e[0];return t===`t`||t===`b`?`y`:`x`}function g(e){return p(h(e))}function _(e,t,n){n===void 0&&(n=!1);let r=f(e),i=g(e),a=m(i),o=i===`x`?r===(n?`end`:`start`)?`right`:`left`:r===`start`?`bottom`:`top`;return t.reference[a]>t.floating[a]&&(o=E(o)),[o,E(o)]}function v(e){let t=E(e);return[y(e),t,y(t)]}function y(e){return e.includes(`start`)?e.replace(`start`,`end`):e.replace(`end`,`start`)}var b=[`left`,`right`],x=[`right`,`left`],S=[`top`,`bottom`],C=[`bottom`,`top`];function w(e,t,n){switch(e){case`top`:case`bottom`:return n?t?x:b:t?b:x;case`left`:case`right`:return t?S:C;default:return[]}}function T(e,t,n,r){let i=f(e),a=w(d(e),n===`start`,r);return i&&(a=a.map(e=>e+`-`+i),t&&(a=a.concat(a.map(y)))),a}function E(e){let t=d(e);return c[t]+e.slice(t.length)}function D(e){return{top:e.top??0,right:e.right??0,bottom:e.bottom??0,left:e.left??0}}function O(e){return typeof e==`number`?{top:e,right:e,bottom:e,left:e}:D(e)}function k(e){let{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}function A(e,t,n){let{reference:r,floating:i}=e,a=h(t),o=g(t),s=m(o),c=d(t),l=a===`y`,u=r.x+r.width/2-i.width/2,p=r.y+r.height/2-i.height/2,_=r[s]/2-i[s]/2,v;switch(c){case`top`:v={x:u,y:r.y-i.height};break;case`bottom`:v={x:u,y:r.y+r.height};break;case`right`:v={x:r.x+r.width,y:p};break;case`left`:v={x:r.x-i.width,y:p};break;default:v={x:r.x,y:r.y}}let y=f(t);return y&&(v[o]+=_*(y===`end`?1:-1)*(n&&l?-1:1)),v}async function j(e,t){t===void 0&&(t={});let{x:n,y:r,platform:i,rects:a,elements:o,strategy:s}=e,{boundary:c=`clippingAncestors`,rootBoundary:l=`viewport`,elementContext:d=`floating`,altBoundary:f=!1,padding:p=0}=u(t,e),m=O(p),h=o[f?d===`floating`?`reference`:`floating`:d],g=k(await i.getClippingRect({element:await(i.isElement==null?void 0:i.isElement(h))??!0?h:h.contextElement||await(i.getDocumentElement==null?void 0:i.getDocumentElement(o.floating)),boundary:c,rootBoundary:l,strategy:s})),_=d===`floating`?{x:n,y:r,width:a.floating.width,height:a.floating.height}:a.reference,v=await(i.getOffsetParent==null?void 0:i.getOffsetParent(o.floating)),y=await(i.isElement==null?void 0:i.isElement(v))&&await(i.getScale==null?void 0:i.getScale(v))||{x:1,y:1},b=k(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:o,rect:_,offsetParent:v,strategy:s}):_);return{top:(g.top-b.top+m.top)/y.y,bottom:(b.bottom-g.bottom+m.bottom)/y.y,left:(g.left-b.left+m.left)/y.x,right:(b.right-g.right+m.right)/y.x}}var M=50,N=async(e,t,n)=>{let{placement:r=`bottom`,strategy:i=`absolute`,middleware:a=[],platform:o}=n,s=o.detectOverflow?o:{...o,detectOverflow:j},c=await(o.isRTL==null?void 0:o.isRTL(t)),l=await o.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:d}=A(l,r,c),f=r,p=0,m={};for(let n=0;n<a.length;n++){let h=a[n];if(!h)continue;let{name:g,fn:_}=h,{x:v,y,data:b,reset:x}=await _({x:u,y:d,initialPlacement:r,placement:f,strategy:i,middlewareData:m,rects:l,platform:s,elements:{reference:e,floating:t}});u=v??u,d=y??d,m[g]={...m[g],...b},x&&p<M&&(p++,typeof x==`object`&&(x.placement&&(f=x.placement),x.rects&&(l=x.rects===!0?await o.getElementRects({reference:e,floating:t,strategy:i}):x.rects),{x:u,y:d}=A(l,f,c)),n=-1)}return{x:u,y:d,placement:f,strategy:i,middlewareData:m}},ee=e=>({name:`arrow`,options:e,async fn(t){let{x:n,y:i,placement:a,rects:o,platform:s,elements:c,middlewareData:d}=t,{element:p,padding:h=0}=u(e,t)||{};if(p==null)return{};let _=O(h),v={x:n,y:i},y=g(a),b=m(y),x=await s.getDimensions(p),S=y===`y`,C=S?`top`:`left`,w=S?`bottom`:`right`,T=S?`clientHeight`:`clientWidth`,E=o.reference[b]+o.reference[y]-v[y]-o.floating[b],D=v[y]-o.reference[y],k=await(s.getOffsetParent==null?void 0:s.getOffsetParent(p)),A=k?k[T]:0;(!A||!await(s.isElement==null?void 0:s.isElement(k)))&&(A=c.floating[T]||o.floating[b]);let j=E/2-D/2,M=A/2-x[b]/2-1,N=r(_[C],M),ee=r(_[w],M),te=A-x[b]-ee,P=A/2-x[b]/2+j,F=l(N,P,te),I=!d.arrow&&f(a)!=null&&P!==F&&o.reference[b]/2-(P<N?N:ee)-x[b]/2<0,L=I?P<N?P-N:P-te:0;return{[y]:v[y]+L,data:{[y]:F,centerOffset:P-F-L,...I&&{alignmentOffset:L}},reset:I}}});function te(e,t,n){return(e?[...n.filter(t=>f(t)===e),...n.filter(t=>f(t)!==e)]:n.filter(e=>d(e)===e)).filter(n=>e?f(n)===e||(t?y(n)!==n:!1):!0)}var P=function(e){return e===void 0&&(e={}),{name:`autoPlacement`,options:e,async fn(t){let{rects:r,middlewareData:i,placement:a,platform:o,elements:s}=t,{crossAxis:c=!1,alignment:l,allowedPlacements:p=n,autoAlignment:m=!0,...h}=u(e,t),g=l!==void 0||p===n?te(l||null,m,p):p,v=i.autoPlacement?.index||0,y=g[v];if(y==null)return{};if(a!==y)return{reset:{placement:g[0]}};let b=await o.detectOverflow(t,h),x=_(y,r,await(o.isRTL==null?void 0:o.isRTL(s.floating))),S=[b[d(y)],b[x[0]],b[x[1]]],C=[...i.autoPlacement?.overflows||[],{placement:y,overflows:S}],w=g[v+1];if(w)return{data:{index:v+1,overflows:C},reset:{placement:w}};let T=C.map(e=>{let t=f(e.placement);return[e.placement,t&&c?e.overflows.slice(0,2).reduce((e,t)=>e+t,0):e.overflows[0],e.overflows]}).sort((e,t)=>e[1]-t[1]),E=T.filter(e=>e[2].slice(0,f(e[0])?2:3).every(e=>e<=0))[0]?.[0]||T[0][0];return E===a?{}:{data:{index:v+1,overflows:C},reset:{placement:E}}}}},F=function(e){return e===void 0&&(e={}),{name:`flip`,options:e,async fn(t){var n;let{placement:r,middlewareData:i,rects:a,initialPlacement:o,platform:s,elements:c}=t,{mainAxis:l=!0,crossAxis:f=!0,fallbackPlacements:p,fallbackStrategy:m=`bestFit`,fallbackAxisSideDirection:g=`none`,flipAlignment:y=!0,...b}=u(e,t);if((n=i.arrow)!=null&&n.alignmentOffset)return{};let x=d(r),S=h(o),C=d(o)===o,w=await(s.isRTL==null?void 0:s.isRTL(c.floating)),D=p||(C||!y?[E(o)]:v(o)),O=g!==`none`;!p&&O&&D.push(...T(o,y,g,w));let k=[o,...D],A=await s.detectOverflow(t,b),j=[],M=i.flip?.overflows||[];if(l&&j.push(A[x]),f){let e=_(r,a,w);j.push(A[e[0]],A[e[1]])}if(M=[...M,{placement:r,overflows:j}],!j.every(e=>e<=0)){let e=(i.flip?.index||0)+1,t=k[e];if(t&&(!(f===`alignment`&&S!==h(t))||M.every(e=>h(e.placement)===S?e.overflows[0]>0:!0)))return{data:{index:e,overflows:M},reset:{placement:t}};let n=M.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0]?.placement;if(!n)switch(m){case`bestFit`:{let e=M.filter(e=>{if(O){let t=h(e.placement);return t===S||t===`y`}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]?.[0];e&&(n=e);break}case`initialPlacement`:n=o;break}if(r!==n)return{reset:{placement:n}}}return{}}}};function I(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function L(t){return e.some(e=>t[e]>=0)}var ne=function(e){return e===void 0&&(e={}),{name:`hide`,options:e,async fn(t){let{rects:n,platform:r}=t,{strategy:i=`referenceHidden`,...a}=u(e,t);switch(i){case`referenceHidden`:{let e=I(await r.detectOverflow(t,{...a,elementContext:`reference`}),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:L(e)}}}case`escaped`:{let e=I(await r.detectOverflow(t,{...a,altBoundary:!0}),n.floating);return{data:{escapedOffsets:e,escaped:L(e)}}}default:return{}}}}};function re(e){let t=r(...e.map(e=>e.left)),n=r(...e.map(e=>e.top)),a=i(...e.map(e=>e.right)),o=i(...e.map(e=>e.bottom));return{x:t,y:n,width:a-t,height:o-n}}function ie(e){let t=e.slice().sort((e,t)=>e.y-t.y),n=[],r=null;for(let e=0;e<t.length;e++){let i=t[e];!r||i.y-r.y>r.height/2?n.push([i]):n[n.length-1].push(i),r=i}return n.map(e=>k(re(e)))}var ae=function(e){return e===void 0&&(e={}),{name:`inline`,options:e,async fn(t){let{placement:n,elements:a,rects:o,platform:s,strategy:c}=t,{padding:l=2,x:f,y:p}=u(e,t),m=Array.from(await(s.getClientRects==null?void 0:s.getClientRects(a.reference))||[]);if(!m.length)return{};let g=ie(m),_=k(re(m)),v=O(l);function y(){if(g.length===2&&(g[0].left>g[1].right||g[1].left>g[0].right)&&f!=null&&p!=null)return g.find(e=>f>e.left-v.left&&f<e.right+v.right&&p>e.top-v.top&&p<e.bottom+v.bottom)||_;if(g.length>=2){if(h(n)===`y`){let e=g[0],t=g[g.length-1],r=d(n)===`top`,i=e.top,a=t.bottom,o=r?e.left:t.left;return k({x:o,y:i,width:(r?e.right:t.right)-o,height:a-i})}let e=d(n)===`left`,t=i(...g.map(e=>e.right)),a=r(...g.map(e=>e.left)),o=g.filter(n=>e?n.left===a:n.right===t),s=o[0].top,c=o[o.length-1].bottom;return k({x:a,y:s,width:t-a,height:c-s})}return _}let b=await s.getElementRects({reference:{getBoundingClientRect:y},floating:a.floating,strategy:c});return o.reference.x!==b.reference.x||o.reference.y!==b.reference.y||o.reference.width!==b.reference.width||o.reference.height!==b.reference.height?{reset:{rects:b}}:{}}}},oe=new Set([`left`,`top`]);async function se(e,t){let{placement:n,platform:r,elements:i}=e,a=await(r.isRTL==null?void 0:r.isRTL(i.floating)),o=d(n),s=f(n),c=h(n)===`y`,l=oe.has(o)?-1:1,p=a&&c?-1:1,m=u(t,e),{mainAxis:g,crossAxis:_,alignmentAxis:v}=typeof m==`number`?{mainAxis:m,crossAxis:0,alignmentAxis:null}:{mainAxis:m.mainAxis||0,crossAxis:m.crossAxis||0,alignmentAxis:m.alignmentAxis};return s&&typeof v==`number`&&(_=s===`end`?v*-1:v),c?{x:_*p,y:g*l}:{x:g*l,y:_*p}}var ce=function(e){return e===void 0&&(e=0),{name:`offset`,options:e,async fn(t){var n;let{x:r,y:i,placement:a,middlewareData:o}=t,s=await se(t,e);return a===o.offset?.placement&&(n=o.arrow)!=null&&n.alignmentOffset?{}:{x:r+s.x,y:i+s.y,data:{...s,placement:a}}}}},le=function(e){return e===void 0&&(e={}),{name:`shift`,options:e,async fn(t){let{x:n,y:r,placement:i,platform:a}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}},...d}=u(e,t),f={x:n,y:r},m=await a.detectOverflow(t,d),g=h(i),_=p(g),v=f[_],y=f[g],b=(e,t)=>l(t+m[e===`y`?`top`:`left`],t,t-m[e===`y`?`bottom`:`right`]);o&&(v=b(_,v)),s&&(y=b(g,y));let x=c.fn({...t,[_]:v,[g]:y});return{...x,data:{x:x.x-n,y:x.y-r,enabled:{[_]:o,[g]:s}}}}}},ue=function(e){return e===void 0&&(e={}),{options:e,fn(t){let{x:n,y:r,placement:i,rects:a,middlewareData:o}=t,{offset:s=0,mainAxis:c=!0,crossAxis:l=!0}=u(e,t),f={x:n,y:r},m=h(i),g=p(m),_=f[g],v=f[m],y=u(s,t),b=typeof y==`number`?{mainAxis:y,crossAxis:0}:{mainAxis:y.mainAxis??0,crossAxis:y.crossAxis??0};if(c){let e=g===`y`?`height`:`width`,t=a.reference[g]-a.floating[e]+b.mainAxis,n=a.reference[g]+a.reference[e]-b.mainAxis;_<t?_=t:_>n&&(_=n)}if(l){let e=g===`y`?`width`:`height`,t=oe.has(d(i)),n=a.reference[m]-a.floating[e]+(t&&o.offset?.[m]||0)+(t?0:b.crossAxis),r=a.reference[m]+a.reference[e]+(t?0:o.offset?.[m]||0)-(t?b.crossAxis:0);v<n?v=n:v>r&&(v=r)}return{[g]:_,[m]:v}}}},de=function(e){return e===void 0&&(e={}),{name:`size`,options:e,async fn(t){let{placement:n,rects:a,platform:o,elements:s}=t,{apply:c=()=>{},...l}=u(e,t),p=await o.detectOverflow(t,l),m=d(n),g=f(n),_=h(n)===`y`,{width:v,height:y}=a.floating,b,x;m===`top`||m===`bottom`?(b=m,x=g===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?`start`:`end`)?`left`:`right`):(x=m,b=g===`end`?`top`:`bottom`);let S=y-p.top-p.bottom,C=v-p.left-p.right,w=r(y-p[b],S),T=r(v-p[x],C),E=t.middlewareData.shift,D=!E,O=w,k=T;E!=null&&E.enabled.x&&(k=C),E!=null&&E.enabled.y&&(O=S),D&&!g&&(_?k=v-2*i(p.left,p.right):O=y-2*i(p.top,p.bottom)),await c({...t,availableWidth:k,availableHeight:O});let A=await o.getDimensions(s.floating);return v!==A.width||y!==A.height?{reset:{rects:!0}}:{}}}};function R(){return typeof window<`u`}function z(e){return fe(e)?(e.nodeName||``).toLowerCase():`#document`}function B(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function V(e){return((fe(e)?e.ownerDocument:e.document)||window.document)?.documentElement}function fe(e){return R()?e instanceof Node||e instanceof B(e).Node:!1}function H(e){return R()?e instanceof Element||e instanceof B(e).Element:!1}function U(e){return R()?e instanceof HTMLElement||e instanceof B(e).HTMLElement:!1}function pe(e){return!R()||typeof ShadowRoot>`u`?!1:e instanceof ShadowRoot||e instanceof B(e).ShadowRoot}function W(e){let{overflow:t,overflowX:n,overflowY:r,display:i}=J(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&i!==`inline`&&i!==`contents`}function me(e){return/^(table|td|th)$/.test(z(e))}function G(e){try{if(e.matches(`:popover-open`))return!0}catch{}try{return e.matches(`:modal`)}catch{return!1}}var he=/transform|translate|scale|rotate|perspective|filter/,ge=/paint|layout|strict|content/,K=e=>!!e&&e!==`none`,_e;function ve(e){let t=H(e)?J(e):e;return K(t.transform)||K(t.translate)||K(t.scale)||K(t.rotate)||K(t.perspective)||!be()&&(K(t.backdropFilter)||K(t.filter))||he.test(t.willChange||``)||ge.test(t.contain||``)}function ye(e){let t=X(e);for(;U(t)&&!q(t);){if(ve(t))return t;if(G(t))return null;t=X(t)}return null}function be(){return _e??=typeof CSS<`u`&&CSS.supports&&CSS.supports(`-webkit-backdrop-filter`,`none`),_e}function q(e){return/^(html|body|#document)$/.test(z(e))}function J(e){return B(e).getComputedStyle(e)}function Y(e){return H(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function X(e){if(z(e)===`html`)return e;let t=e.assignedSlot||e.parentNode||pe(e)&&e.host||V(e);return pe(t)?t.host:t}function xe(e){let t=X(e);return q(t)?(e.ownerDocument||e).body:U(t)&&W(t)?t:xe(t)}function Z(e,t,n){t===void 0&&(t=[]),n===void 0&&(n=!0);let r=xe(e),i=r===e.ownerDocument?.body,a=B(r);if(i){let e=Se(a);return t.concat(a,a.visualViewport||[],W(r)?r:[],e&&n?Z(e):[])}else return t.concat(r,Z(r,[],n))}function Se(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function Ce(e){let t=J(e),n=parseFloat(t.width)||0,r=parseFloat(t.height)||0,i=U(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,c=a(n)!==o||a(r)!==s;return c&&(n=o,r=s),{width:n,height:r,$:c}}function we(e){return H(e)?e:e.contextElement}function Q(e){let t=we(e);if(!U(t))return s(1);let n=t.getBoundingClientRect(),{width:r,height:i,$:o}=Ce(t),c=(o?a(n.width):n.width)/r,l=(o?a(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!l||!Number.isFinite(l))&&(l=1),{x:c,y:l}}var Te=s(0);function Ee(e){let t=B(e);return!be()||!t.visualViewport?Te:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function De(e,t,n){return t===void 0&&(t=!1),!!n&&t&&n===B(e)}function $(e,t,n,r){t===void 0&&(t=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),a=we(e),o=s(1);t&&(r?H(r)&&(o=Q(r)):o=Q(e));let c=De(a,n,r)?Ee(a):s(0),l=(i.left+c.x)/o.x,u=(i.top+c.y)/o.y,d=i.width/o.x,f=i.height/o.y;if(a&&r){let e=B(a),t=H(r)?B(r):r,n=e,i=Se(n);for(;i&&t!==n;){let e=Q(i),t=i.getBoundingClientRect(),r=J(i),a=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,o=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;l*=e.x,u*=e.y,d*=e.x,f*=e.y,l+=a,u+=o,n=B(i),i=Se(n)}}return k({width:d,height:f,x:l,y:u})}function Oe(e,t){let n=Y(e).scrollLeft;return t?t.left+n:$(V(e)).left+n}function ke(e,t){let n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-Oe(e,n),y:n.top+t.scrollTop}}function Ae(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e,a=i===`fixed`,o=V(r),c=t?G(t.floating):!1;if(r===o||c&&a)return n;let l={scrollLeft:0,scrollTop:0},u=s(1),d=s(0),f=U(r);if((f||!a)&&((z(r)!==`body`||W(o))&&(l=Y(r)),f)){let e=$(r);u=Q(r),d.x=e.x+r.clientLeft,d.y=e.y+r.clientTop}let p=o&&!f&&!a?ke(o,l):s(0);return{width:n.width*u.x,height:n.height*u.y,x:n.x*u.x-l.scrollLeft*u.x+d.x+p.x,y:n.y*u.y-l.scrollTop*u.y+d.y+p.y}}function je(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function Me(e){let t=Y(e),n=e.ownerDocument.body,r=i(e.scrollWidth,e.clientWidth,n.scrollWidth,n.clientWidth),a=i(e.scrollHeight,e.clientHeight,n.scrollHeight,n.clientHeight),o=-t.scrollLeft+Oe(e),s=-t.scrollTop;return J(n).direction===`rtl`&&(o+=i(e.clientWidth,n.clientWidth)-r),{width:r,height:a,x:o,y:s}}var Ne=25;function Pe(e,t,n){n===void 0&&(n=`viewport`);let r=n===`layoutViewport`,i=B(e),a=V(e),o=i.visualViewport,s=a.clientWidth,c=a.clientHeight,l=0,u=0;if(o){let e=!be()||t===`fixed`;r?e||(l=-o.offsetLeft,u=-o.offsetTop):(s=o.width,c=o.height,e&&(l=o.offsetLeft,u=o.offsetTop))}if(Oe(a)<=0){let e=a.ownerDocument,t=e.body,n=getComputedStyle(t),r=e.compatMode===`CSS1Compat`&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,i=Math.abs(a.clientWidth-t.clientWidth-r),o=getComputedStyle(a).scrollbarGutter===`stable both-edges`?i/2:i;o<=Ne&&(s-=o)}return{width:s,height:c,x:l,y:u}}function Fe(e,t){let n=$(e,!0,t===`fixed`),r=n.top+e.clientTop,i=n.left+e.clientLeft,a=Q(e);return{width:e.clientWidth*a.x,height:e.clientHeight*a.y,x:i*a.x,y:r*a.y}}function Ie(e,t,n){let r;if(t===`viewport`||t===`layoutViewport`)r=Pe(e,n,t);else if(t===`document`)r=Me(V(e));else if(H(t))r=Fe(t,n);else{let n=Ee(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return k(r)}function Le(e,t){let n=t.get(e);if(n)return n;let r=Z(e,[],!1).filter(e=>H(e)&&z(e)!==`body`),i=null,a=J(e).position===`fixed`,o=a?X(e):e;for(;H(o)&&!q(o);){let e=J(o),t=ve(o),n=i?i.position:a?`fixed`:``;!t&&(n===`fixed`||n===`absolute`&&e.position===`static`)?r=r.filter(e=>e!==o):i=e,o=X(o)}return t.set(e,r),r}function Re(e){let{element:t,boundary:n,rootBoundary:a,strategy:o}=e,s=[...n===`clippingAncestors`?G(t)?[]:Le(t,this._c):[].concat(n),a],c=Ie(t,s[0],o),l=c.top,u=c.right,d=c.bottom,f=c.left;for(let e=1;e<s.length;e++){let n=Ie(t,s[e],o);l=i(n.top,l),u=r(n.right,u),d=r(n.bottom,d),f=i(n.left,f)}return{width:u-f,height:d-l,x:f,y:l}}function ze(e){let{width:t,height:n}=Ce(e);return{width:t,height:n}}function Be(e,t,n){let r=U(t),i=V(t),a=n===`fixed`,o=$(e,!0,a,t),c={scrollLeft:0,scrollTop:0},l=s(0);if((r||!a)&&((z(t)!==`body`||W(i))&&(c=Y(t)),r)){let e=$(t,!0,a,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}!r&&i&&(l.x=Oe(i));let u=i&&!r&&!a?ke(i,c):s(0);return{x:o.left+c.scrollLeft-l.x-u.x,y:o.top+c.scrollTop-l.y-u.y,width:o.width,height:o.height}}function Ve(e){return J(e).position===`static`}function He(e,t){if(!U(e)||J(e).position===`fixed`)return null;if(t)return t(e);let n=e.offsetParent;return V(e)===n&&(n=n.ownerDocument.body),n}function Ue(e,t){let n=B(e);if(G(e))return n;if(!U(e)){let t=X(e);for(;t&&!q(t);){if(H(t)&&!Ve(t))return t;t=X(t)}return n}let r=He(e,t);for(;r&&me(r)&&Ve(r);)r=He(r,t);return r&&q(r)&&Ve(r)&&!ve(r)?n:r||ye(e)||n}var We=async function(e){let t=this.getOffsetParent||Ue,n=this.getDimensions,r=await n(e.floating);return{reference:Be(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Ge(e){return J(e).direction===`rtl`}var Ke={convertOffsetParentRelativeRectToViewportRelativeRect:Ae,getDocumentElement:V,getClippingRect:Re,getOffsetParent:Ue,getElementRects:We,getClientRects:je,getDimensions:ze,getScale:Q,isElement:H,isRTL:Ge};function qe(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function Je(e,t,n){let a=null,s,c=V(e);function l(){var e;clearTimeout(s),(e=a)==null||e.disconnect(),a=null}function u(n,d){n===void 0&&(n=!1),d===void 0&&(d=1),l();let f=e.getBoundingClientRect(),{left:p,top:m,width:h,height:g}=f;if(n||t(),!h||!g)return;let _=o(m),v=o(c.clientWidth-(p+h)),y=o(c.clientHeight-(m+g)),b=o(p),x={rootMargin:-_+`px `+-v+`px `+-y+`px `+-b+`px`,threshold:i(0,r(1,d))||1},S=!0;function C(t){let n=t[0].intersectionRatio;if(!qe(f,e.getBoundingClientRect()))return u();if(n!==d){if(!S)return u();n?u(!1,n):s=setTimeout(()=>{u(!1,1e-7)},1e3)}S=!1}try{a=new IntersectionObserver(C,{...x,root:c.ownerDocument})}catch{a=new IntersectionObserver(C,x)}a.observe(e)}let d=B(e),f=()=>u(n);return d.addEventListener(`resize`,f),u(!0),()=>{d.removeEventListener(`resize`,f),l()}}function Ye(e,t,n,r){r===void 0&&(r={});let{ancestorScroll:i=!0,ancestorResize:a=!0,elementResize:o=typeof ResizeObserver==`function`,layoutShift:s=typeof IntersectionObserver==`function`,animationFrame:c=!1}=r,l=we(e),u=i||a?[...l?Z(l):[],...t?Z(t):[]]:[];u.forEach(e=>{i&&e.addEventListener(`scroll`,n),a&&e.addEventListener(`resize`,n)});let d=l&&s?Je(l,n,a):null,f=-1,p=null;o&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&t&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;(e=p)==null||e.observe(t)})),n()}),l&&!c&&p.observe(l),t&&p.observe(t));let m,h=c?$(e):null;c&&g();function g(){let t=$(e);h&&!qe(h,t)&&n(),h=t,m=requestAnimationFrame(g)}return n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener(`scroll`,n),a&&e.removeEventListener(`resize`,n)}),d?.(),(e=p)==null||e.disconnect(),p=null,c&&cancelAnimationFrame(m)}}var Xe=ce,Ze=P,Qe=le,$e=F,et=de,tt=ne,nt=ee,rt=ae,it=ue,at=(e,t,n)=>{let r=new Map,i=n??{},a={...Ke,...i.platform,_c:r};return N(e,t,{...i,platform:a})};export{O as A,pe as C,f as D,o as E,h as M,g as O,W as S,u as T,B as _,$e as a,q as b,it as c,Qe as d,et as f,X as g,Z as h,at as i,d as j,m as k,Xe as l,z as m,Ze as n,tt as o,J as p,Ye as r,rt as s,nt as t,Ke as u,H as v,l as w,fe as x,U as y};
|