@fudanda/admin-antd 1.20261015.1-beta.1 → 2.20261024.1-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/LICENSE +21 -21
- package/README.md +58 -42
- package/THIRD_PARTY_NOTICES.md +55 -55
- package/dist/automation.js +3 -3
- package/dist/chunks/App-DNjXLysb.js +79 -0
- package/dist/chunks/{AppModal-B_xvSaeq.js → AppModal-DJzQA6FR.js} +1 -1
- package/dist/chunks/ArcBaseAdmin-BZrHGq2f.js +1 -0
- package/dist/chunks/ConfigurableTable-DzmZDd8F.js +55 -0
- package/dist/chunks/{DashboardPage-BTLufKzi.js → DashboardPage-BohGodSl.js} +1 -1
- package/dist/chunks/DataScopePanel-B2-x8Jcz.js +1 -0
- package/dist/chunks/{DateTimeText-rk9NeYgA.js → DateTimeText-CIt0Qy45.js} +1 -1
- package/dist/chunks/DepartmentsPage-DMWY__Y_.js +1 -0
- package/dist/chunks/DictTag-2-adKbYg.js +1 -0
- package/dist/chunks/DictsPage-DILDyHi-.js +15 -0
- package/dist/chunks/EditFormModal-DNHOZHxM.js +1 -0
- package/dist/chunks/EntityContextRuntime-DMklAv-k.js +1 -0
- package/dist/chunks/{EntityContextRuntime-BrAz-aCV.js → EntityContextRuntime-sslBZqYD.js} +1 -1
- package/dist/chunks/{EntityRelationButton-C8Cl8wyh.js → EntityRelationButton-DWn1rC2J.js} +2 -2
- package/dist/chunks/{ExportButton-D4IvZKHy.js → ExportButton-AzH4D0oW.js} +1 -1
- package/dist/chunks/FileNameCell-DPyi64Rv.js +1 -0
- package/dist/chunks/FileStorageConfigsPage-CzuOgeK0.js +15 -0
- package/dist/chunks/FileTypeIcon-DIih3XQG.js +1 -0
- package/dist/chunks/{FileViewerPreviewPanel-wbXzgqxc.js → FileViewerPreviewPanel-CMqVtGCr.js} +2 -2
- package/dist/chunks/FilesPage-BaEBCOCs.js +43 -0
- package/dist/chunks/IdentitySecurityPage-BO7nY8id.js +1 -0
- package/dist/chunks/{JsonPreviewPanel-D8YpZD1A.js → JsonPreviewPanel-Dhbza-Uu.js} +1 -1
- package/dist/chunks/LogStatsScaffold-CLycj3da.js +1 -0
- package/dist/chunks/LoginLogsPage-DTmHi8u0.js +1 -0
- package/dist/chunks/LoginLogsTable-DVmHnC6V.js +1 -0
- package/dist/chunks/{MasterDetailLayout-DDVFodpX.js → MasterDetailLayout-sjPWw8BI.js} +2 -2
- package/dist/chunks/{MemberAssignmentSheet-NWm5vThg.js → MemberAssignmentSheet-Czbt6_zv.js} +1 -1
- package/dist/chunks/MenuCommandPalette-BCOzf-Kq.js +8 -0
- package/dist/chunks/MenusPage-DN8DTGB1.js +1 -0
- package/dist/chunks/{ModalFooter-vXDpmYTM.js → ModalFooter-RMlvqrO9.js} +1 -1
- package/dist/chunks/NavListPanel-vjIOIqK0.js +1 -0
- package/dist/chunks/OnlineSessionsPage-FoHYZKlR.js +1 -0
- package/dist/chunks/OperationLogsPage-BeRnGcBJ.js +1 -0
- package/dist/chunks/OperationLogsTable-COI-Lp-y.js +1 -0
- package/dist/chunks/PDFPreviewPanel-BIQuBnZZ.js +37 -0
- package/dist/chunks/PasswordInput-DGEJO9yx.js +1 -0
- package/dist/chunks/PositionsPage-DohI0luX.js +1 -0
- package/dist/chunks/PreferencesSheetBody-B9niQABW.js +43 -0
- package/dist/chunks/ProfilePage-CVTRv7xb.js +15 -0
- package/dist/chunks/RelationPanel-B1X6AVaM.js +36 -0
- package/dist/chunks/RolesPage-CtUw93L8.js +1 -0
- package/dist/chunks/{SearchToolbar-BAh56OAa.js → SearchToolbar-CvgYKUjr.js} +1 -1
- package/dist/chunks/{SessionClientTag-DafwXf-o.js → SessionClientTag-DIwnYodW.js} +2 -2
- package/dist/chunks/SessionConflictModal-BLNuDsN_.js +1 -0
- package/dist/chunks/SettingRow-DVNmTJWC.js +1 -0
- package/dist/chunks/SettingsPage-BRnCxYQm.js +26 -0
- package/dist/chunks/StatCard-Czjfs0fa.js +4 -0
- package/dist/chunks/{UserDisplay-BYhcfa84.js → UserDisplay-J0Re8z-7.js} +1 -1
- package/dist/chunks/UserGroupsPage-CNwbejx-.js +1 -0
- package/dist/chunks/{UserLogsPanels-3ZlKQsCu.js → UserLogsPanels-BHeSxWrk.js} +2 -2
- package/dist/chunks/UserTransferSelect-CAeyxdor.js +22 -0
- package/dist/chunks/UsersPage-BXt9fOru.js +36 -0
- package/dist/chunks/{archive-D0BSMQmn.js → archive-B_IKvysI.js} +4 -4
- package/dist/chunks/chart-data-DImT_Mzn.js +5 -0
- package/dist/chunks/{chart-renderer-BWLqOvLF.js → chart-renderer-k-Rd8vdL.js} +1 -1
- package/dist/chunks/{user-cC0uCe3d.js → chevron-right-EBApfX6q.js} +2 -2
- package/dist/chunks/{clipboard-BKPNFY58.js → clipboard-ERcMSMRH.js} +1 -1
- package/dist/chunks/{confirm-CC2F8XXe.js → confirm-BtBBEqk8.js} +1 -1
- package/dist/chunks/{data-DPCozzrG.js → data-B05HzECj.js} +1 -1
- package/dist/chunks/{deleteAction-NGTDhZud.js → deleteAction-CCocr5uV.js} +1 -1
- package/dist/chunks/{diagram-vBbcsoK2.js → diagram-D9cwc7QH.js} +3 -3
- package/dist/chunks/dist-Bauqz5on.js +1 -0
- package/dist/chunks/{drawing-CUAfa3D5.js → drawing-D2Qrun-P.js} +2 -2
- package/dist/chunks/{email-U025DuXM.js → email-ByshRsFv.js} +2 -2
- package/dist/chunks/{export-CCaKk9VN.js → export-DlTz5dc2.js} +5 -5
- package/dist/chunks/{eye-DNBTmA6c.js → eye-off-BtJoIT5n.js} +1 -8
- package/dist/chunks/feedback-BnjMKZpz.js +1 -0
- package/dist/chunks/file-utils-DyvnVEoH.js +1 -0
- package/dist/chunks/fit-CsnhEncA.js +1 -0
- package/dist/chunks/{form-DhQiOMvp.js → form-CQutQFiD.js} +1 -1
- package/dist/chunks/geo-DR0fL7r2.js +38 -0
- package/dist/chunks/{image-C52XMTxg.js → image-ez9hvzKT.js} +1 -1
- package/dist/chunks/{lib-DZsU27Fn.js → lib-BlRm3nk1.js} +4 -4
- package/dist/chunks/line-BV7qVRkM.js +1 -0
- package/dist/chunks/{msg-DNXH9mKo.js → msg-BzZbudMm.js} +1 -1
- package/dist/chunks/{ofd-B0_-rey2.js → ofd-C7DKqJ6Z.js} +1 -1
- package/dist/chunks/{openDocument-DW7w0HpR.js → openDocument-DGzqlyJg.js} +1 -1
- package/dist/chunks/parse-6ZQGx714.js +1 -0
- package/dist/chunks/{parser-BFNqF7wU.js → parser-DC3PvpL4.js} +1 -1
- package/dist/chunks/ppt-B0WY5Gks.js +30 -0
- package/dist/chunks/pptx-DX5KDFZ7.js +109 -0
- package/dist/chunks/{print-mask-DTiml6Ox.js → print-mask-Dguzv0rv.js} +2 -2
- package/dist/chunks/{psd-yU36O76Y.js → psd-hjeNFQZ-.js} +1 -1
- package/dist/chunks/{search-filters-BoRMIesR.js → search-filters-CRIhZ0gL.js} +1 -1
- package/dist/chunks/spreadsheet-BzbBEhmY.js +1 -0
- package/dist/chunks/{spreadsheet-DiZ31XlH.js → spreadsheet-LR3SOG-x.js} +3 -3
- package/dist/chunks/toolbar-controls-CThS0xuP.js +15 -0
- package/dist/chunks/ui-BFsHoY7a.js +1 -0
- package/dist/chunks/{useCrudOperationColumn-PObQMk2y.js → useCrudOperationColumn-D935tixd.js} +1 -1
- package/dist/chunks/useListPage-CbcOQG4m.js +1 -0
- package/dist/chunks/{useStatusToggle-B7KSIN75.js → useStatusToggle-B2qZaoc-.js} +1 -1
- package/dist/chunks/wordDoc-BZY3ZnxN.js +152 -0
- package/dist/chunks/wordDocx-Bt2mlB3C.js +77 -0
- package/dist/chunks/{xmind-B9BtGBNI.js → xmind-CF9YwkOD.js} +2 -2
- package/dist/file-viewer/flyfish-viewer-assets.json +5 -5
- package/dist/file-viewer/vendor/docx/jszip.min.js +0 -0
- package/dist/file-viewer/wasm/data/sql-wasm.wasm +0 -0
- package/dist/index.js +1 -1
- package/dist/{src-DVwjbBTf.js → src-LbWcrSWe.js} +1 -1
- package/dist/styles.css +1 -1
- package/package.json +7 -7
- package/dist/chunks/App-DX7JOOmP.js +0 -79
- package/dist/chunks/ArcBaseAdmin-CdB_roNY.js +0 -1
- package/dist/chunks/ConfigurableTable-CyfZLgG0.js +0 -55
- package/dist/chunks/DataScopePanel-CubtBhTT.js +0 -1
- package/dist/chunks/DepartmentsPage-ECexbzsK.js +0 -1
- package/dist/chunks/DictTag-BerYvaUM.js +0 -1
- package/dist/chunks/DictsPage-65kAxYFd.js +0 -15
- package/dist/chunks/DirectoryLoginModal-rRXvoqV7.js +0 -1
- package/dist/chunks/EditFormModal-D68dOnaj.js +0 -1
- package/dist/chunks/EntityContextRuntime-D9mWi5xC.js +0 -1
- package/dist/chunks/FileNameCell-C_V1k0q-.js +0 -1
- package/dist/chunks/FilePreviewModal-D7v5seXB.js +0 -1
- package/dist/chunks/FileStorageConfigsPage-D2UYESb5.js +0 -15
- package/dist/chunks/FileTypeIcon-C77EVWXZ.js +0 -1
- package/dist/chunks/FilesPage-By81A2i7.js +0 -43
- package/dist/chunks/ForgotPasswordModal-DTlunJpM.js +0 -1
- package/dist/chunks/IdentitySecurityPage-Dp5EP7aT.js +0 -1
- package/dist/chunks/LogStatsScaffold-BFwbN_MU.js +0 -1
- package/dist/chunks/LoginField-Bu4C0-Mk.js +0 -1
- package/dist/chunks/LoginLogsPage-BuMJ6U8I.js +0 -1
- package/dist/chunks/LoginLogsTable-DfAlWPZb.js +0 -1
- package/dist/chunks/MenuCommandPalette-BvW2kEU4.js +0 -8
- package/dist/chunks/MenusPage-DT3kxAfi.js +0 -1
- package/dist/chunks/NavListPanel-agMt2kc6.js +0 -1
- package/dist/chunks/OnlineSessionsPage-BJJAB2pV.js +0 -1
- package/dist/chunks/OperationLogsPage-CP-wUt_N.js +0 -1
- package/dist/chunks/OperationLogsTable-BX0vV3fT.js +0 -1
- package/dist/chunks/PDFPreviewPanel-D8-74Zqs.js +0 -30
- package/dist/chunks/PasswordInput--G8GKd5g.js +0 -1
- package/dist/chunks/PositionsPage-Cs7xq89s.js +0 -1
- package/dist/chunks/PreferencesSheetBody-CdA4Ig_g.js +0 -43
- package/dist/chunks/ProfilePage-Bt3yP6D-.js +0 -15
- package/dist/chunks/RelationPanel-B-KAfl9B.js +0 -36
- package/dist/chunks/RolesPage-DDNGkGAq.js +0 -1
- package/dist/chunks/SessionConflictModal-DgFNCU3j.js +0 -1
- package/dist/chunks/SettingRow-BIb1ruW2.js +0 -1
- package/dist/chunks/SettingsPage-rhqkPOJ9.js +0 -16
- package/dist/chunks/StatCard-BwhGDWpE.js +0 -4
- package/dist/chunks/UserGroupsPage-D3_aji58.js +0 -1
- package/dist/chunks/UserTransferSelect-S-GUw2Y9.js +0 -1
- package/dist/chunks/UsersPage-CLRJX-V9.js +0 -29
- package/dist/chunks/WorkflowPrintButton-BVa-xw-8.js +0 -1
- package/dist/chunks/chart-data-DOMSCLwj.js +0 -5
- package/dist/chunks/chevron-left-DnDEG_PI.js +0 -8
- package/dist/chunks/chevron-right-CzizTV5i.js +0 -8
- package/dist/chunks/dist-BqNhxPp5.js +0 -1
- package/dist/chunks/feedback-D4BIfDNd.js +0 -1
- package/dist/chunks/file-utils-DJ9ksj-g.js +0 -1
- package/dist/chunks/geo-Bf8ymo43.js +0 -38
- package/dist/chunks/line-DSFA8EqT.js +0 -1
- package/dist/chunks/mail-Cduf1OFr.js +0 -8
- package/dist/chunks/mono-icons-CxCoktev.js +0 -1
- package/dist/chunks/plus-Bvdn6bx1.js +0 -8
- package/dist/chunks/ppt-C9RgrmNU.js +0 -30
- package/dist/chunks/pptx-_T8ZPVQn.js +0 -109
- package/dist/chunks/printer-DL8WQci4.js +0 -8
- package/dist/chunks/shield-check-DZGK8n9u.js +0 -8
- package/dist/chunks/spreadsheet-CHFSQY8j.js +0 -1
- package/dist/chunks/table-columns-XaoxVUJN.js +0 -1
- package/dist/chunks/toolbar-controls-BFOuV86W.js +0 -8
- package/dist/chunks/ui-DoIHGuTR.js +0 -1
- package/dist/chunks/useDebouncedValue-DFoJN77o.js +0 -22
- package/dist/chunks/useListPage-1Upr_ala.js +0 -1
- package/dist/chunks/wordDoc-CtetBfzo.js +0 -152
- package/dist/chunks/wordDocx-8ak39HcF.js +0 -77
- package/dist/chunks/zoom-8Eo2fTNd.js +0 -1
- package/dist/public/monaco/vs/editor/editor.worker.js +0 -1
- package/dist/public/monaco/vs/language/css/css.worker.js +0 -66
- package/dist/public/monaco/vs/language/html/html.worker.js +0 -443
- package/dist/public/monaco/vs/language/json/json.worker.js +0 -17
- package/dist/public/monaco/vs/language/typescript/ts.worker.js +0 -67693
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{n as e,o as t,r as n,t as r}from"./rolldown-runtime-BKuNeK48.js";var i=/* @__PURE__ */ r(((e,t)=>{var n=Object.prototype.hasOwnProperty,r=`~`;function i(){}Object.create&&(i.prototype=Object.create(null),new i().__proto__||(r=!1));function a(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function o(e,t,n,i,o){if(typeof n!=`function`)throw TypeError(`The listener must be a function`);var s=new a(n,i||e,o),c=r?r+t:t;return e._events[c]?e._events[c].fn?e._events[c]=[e._events[c],s]:e._events[c].push(s):(e._events[c]=s,e._eventsCount++),e}function s(e,t){--e._eventsCount===0?e._events=new i:delete e._events[t]}function c(){this._events=new i,this._eventsCount=0}c.prototype.eventNames=function(){var e=[],t,i;if(this._eventsCount===0)return e;for(i in t=this._events)n.call(t,i)&&e.push(r?i.slice(1):i);return Object.getOwnPropertySymbols?e.concat(Object.getOwnPropertySymbols(t)):e},c.prototype.listeners=function(e){var t=r?r+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var i=0,a=n.length,o=Array(a);i<a;i++)o[i]=n[i].fn;return o},c.prototype.listenerCount=function(e){var t=r?r+e:e,n=this._events[t];return n?n.fn?1:n.length:0},c.prototype.emit=function(e,t,n,i,a,o){var s=r?r+e:e;if(!this._events[s])return!1;var c=this._events[s],l=arguments.length,u,d;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),l){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,i),!0;case 5:return c.fn.call(c.context,t,n,i,a),!0;case 6:return c.fn.call(c.context,t,n,i,a,o),!0}for(d=1,u=Array(l-1);d<l;d++)u[d-1]=arguments[d];c.fn.apply(c.context,u)}else{var f=c.length,p;for(d=0;d<f;d++)switch(c[d].once&&this.removeListener(e,c[d].fn,void 0,!0),l){case 1:c[d].fn.call(c[d].context);break;case 2:c[d].fn.call(c[d].context,t);break;case 3:c[d].fn.call(c[d].context,t,n);break;case 4:c[d].fn.call(c[d].context,t,n,i);break;default:if(!u)for(p=1,u=Array(l-1);p<l;p++)u[p-1]=arguments[p];c[d].fn.apply(c[d].context,u)}}return!0},c.prototype.on=function(e,t,n){return o(this,e,t,n,!1)},c.prototype.once=function(e,t,n){return o(this,e,t,n,!0)},c.prototype.removeListener=function(e,t,n,i){var a=r?r+e:e;if(!this._events[a])return this;if(!t)return s(this,a),this;var o=this._events[a];if(o.fn)o.fn===t&&(!i||o.once)&&(!n||o.context===n)&&s(this,a);else{for(var c=0,l=[],u=o.length;c<u;c++)(o[c].fn!==t||i&&!o[c].once||n&&o[c].context!==n)&&l.push(o[c]);l.length?this._events[a]=l.length===1?l[0]:l:s(this,a)}return this},c.prototype.removeAllListeners=function(e){var t;return e?(t=r?r+e:e,this._events[t]&&s(this,t)):(this._events=new i,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t!==void 0&&(t.exports=c)})),a;function o(){return(o=e((()=>{a=/* @__PURE__ */ t(i())})))()}var s,c=e((()=>{s=(e,t)=>Object.prototype.toString.call(e)===`[object ${t}]`})),l,u=e((()=>{c(),l=(e,t=!1)=>t?typeof e==`boolean`:!0===e||!1===e||s(e,`Boolean`)})),d,f=e((()=>{d=e=>typeof e==`function`})),p,m=e((()=>{p=e=>e==null})),h,g=e((()=>{h=e=>e!=null})),_,v=e((()=>{_=e=>{let t=typeof e;return e!==null&&t===`object`||t===`function`}})),y,b=e((()=>{y=e=>typeof e==`object`&&!!e})),x,S=e((()=>{b(),c(),x=function(e){if(!y(e)||!s(e,`Object`))return!1;if(Object.getPrototypeOf(e)===null)return!0;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}})),ee,te=e((()=>{ee=e=>e===void 0})),C,w=e((()=>{c(),C=(e,t=!1)=>{let n=typeof e;return t?n===`string`:n===`string`||s(e,`String`)}})),T,E=e((()=>{c(),T=e=>Array.isArray?Array.isArray(e):s(e,`Array`)})),ne,re=e((()=>{ne=function(e){return e!==null&&typeof e!=`function`&&Number.isFinite(e.length)}})),ie,ae=e((()=>{c(),ie=e=>s(e,`Date`)})),D,O=e((()=>{c(),D=(e,t=!1)=>{let n=typeof e;return t?n===`number`:n===`number`||s(e,`Number`)}})),oe,se=e((()=>{oe=e=>typeof e==`string`&&!isNaN(Number(e))&&!isNaN(parseFloat(e))})),k,A=e((()=>{O(),k=e=>D(e)&&Number.isFinite(e)})),ce,le=e((()=>{ce=e=>(/* @__PURE__ */ new RegExp(/^(http(s)?:\/\/)\w+[^\s]+(\.[^\s]+){1,}$/)).test(e)})),ue,de=e((()=>{ue=e=>(/* @__PURE__ */ new RegExp(/^data:image\/(?:gif|png|jpeg|bmp|webp|svg\+xml)(?:;charset=utf-8)?;base64,(?:[A-Za-z0-9]|[+/])+={0,2}/g)).test(e)})),fe,pe=e((()=>{fe=e=>({}).toString.call(e).replace(/^\[object /,``).replace(/]$/,``)})),me,he,ge=e((()=>{me=Object.prototype,he=function(e){let t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||me)}}));function _e(e){if(p(e))return!0;if(ne(e))return!e.length;let t=fe(e);if(t===`Map`||t===`Set`)return!e.size;if(he(e))return!Object.keys(e).length;for(let t in e)if(ve.call(e,t))return!1;return!0}var ve,ye=e((()=>{m(),re(),pe(),ge(),ve=Object.prototype.hasOwnProperty})),be,xe=e((()=>{w(),be=(e,t,n)=>{let r=C(t)?t.split(`.`):t;for(let t=0;t<r.length;t++)e=e?e[r[t]]:void 0;return e===void 0?n:e}})),Se,Ce,we=e((()=>{Se=Object.prototype.hasOwnProperty,Ce=(e,t)=>e!=null&&Se.call(e,t)}));function Te(e,t,n){let r;if(!h(e)||typeof e!=`object`||t&&t(e))return e;let i=T(e),a=e.length;r=i?Array(a):typeof e==`object`?{}:l(e)||D(e)||C(e)?e:ie(e)?/* @__PURE__ */ new Date(+e):void 0;let o=i?void 0:Object.keys(Object(e)),s=-1;if(r)for(;++s<(o||e).length;){let i=o?o[s]:s,a=e[i];n&&n.includes(i.toString())?r[i]=a:r[i]=Te(a,t,n)}return r}var Ee=e((()=>{E(),u(),ae(),O(),w(),g()}));function De(e,t,n=!1,r=!1){if(t){if(e===t)return;if(h(t)&&typeof t==`object`){let i=Object(t),a=[];for(let e in i)a.push(e);let{length:o}=a,s=-1;for(;o--;){let o=a[++s];!h(i[o])||typeof i[o]!=`object`||r&&T(e[o])?ke(e,o,i[o]):Oe(e,t,o,n,r)}}}}function Oe(e,t,n,r=!1,i=!1){let a=e[n],o=t[n],s=t[n],c=!0;if(T(o)){if(r)s=[];else if(T(a))s=a;else if(ne(a)){s=Array(a.length);let e=-1,t=a.length;for(;++e<t;)s[e]=a[e]}}else x(o)?(s=a??{},typeof a!=`function`&&typeof a==`object`||(s={})):c=!1;c&&De(s,o,r,i),ke(e,n,s)}function ke(e,t,n){(n!==void 0&&!Ae(e[t],n)||n===void 0&&!(t in e))&&(e[t]=n)}function Ae(e,t){return e===t||Number.isNaN(e)&&Number.isNaN(t)}function je(e,...t){let n=-1,r=t.length;for(;++n<r;)De(e,t[n],!0);return e}var Me=e((()=>{E(),re(),S(),g()}));function Ne(e,t){if(!e||!x(e))return e;let n={};return Object.keys(e).forEach((r=>{let i=e[r],a=!1;t.forEach((e=>{(C(e)&&e===r||e instanceof RegExp&&r.match(e))&&(a=!0)})),a||(n[r]=i)})),n}var Pe=e((()=>{S(),w()}));function Fe(e){return Object.prototype.toString.call(e)}function Ie(e){return Object.keys(e)}function j(e,t,n){if(e===t)return!0;if(typeof e!=typeof t||e==null||t==null)return!1;if(Number.isNaN(e)&&Number.isNaN(t))return!0;if(Fe(e)!==Fe(t))return!1;if(d(e))return!!n?.skipFunction;if(typeof e!=`object`)return!1;if(T(e)){if(e.length!==t.length)return!1;for(let r=e.length-1;r>=0;r--)if(!j(e[r],t[r],n))return!1;return!0}if(!x(e))return!1;let r=Ie(e),i=Ie(t);if(r.length!==i.length)return!1;r.sort(),i.sort();for(let e=r.length-1;e>=0;e--)if(r[e]!=i[e])return!1;for(let i=r.length-1;i>=0;i--){let a=r[i];if(!j(e[a],t[a],n))return!1}return!0}var Le=e((()=>{E(),f(),S()}));function Re(e){if(!e)return[];if(Object.keys)return Object.keys(e);let t=[];for(let n in e)e.hasOwnProperty(n)&&t.push(n);return t}function ze(e,t,n){let r=Re(t);for(let i=0;i<r.length;i++){let a=r[i];(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}return e}function Be(e,t,n=!0){if(e=`prototype`in e?e.prototype:e,t=`prototype`in t?t.prototype:t,Object.getOwnPropertyNames){let r=Object.getOwnPropertyNames(t);for(let i=0;i<r.length;i++){let a=r[i];a!==`constructor`&&(n?t[a]!=null:e[a]==null)&&(e[a]=t[a])}}else ze(e,t,n)}var Ve=e((()=>{}));function He(e){return h(e)?T(e)?e:[e]:[]}function Ue(e){if(ne(e))return e[e.length-1]}function We(e,t){if(!T(e)||!T(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}function Ge(e){return e&&T(e)?Array.from(new Set(He(e))):e}function Ke(e){if(!T(e))return[e];let t=[];for(let n of e)t.push(...Ke(n));return t}var qe,Je,Ye=e((()=>{E(),re(),g(),qe=(e,t)=>{if(e.length===0)return;let n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(t?.(i,n)??i-n)>0&&(n=i)}return n},Je=(e,t)=>{if(e.length===0)return;let n=e[0];for(let r=1;r<e.length;r++){let i=e[r];(t?.(i,n)??i-n)<0&&(n=i)}return n}}));function Xe(e,t,n){h(t)||(t=e,e=0),h(n)||(n=1);let r=-1,i=0|Math.max(0,Math.ceil((t-e)/n)),a=Array(i);for(;++r<i;)a[r]=e+r*n;return a}var Ze=e((()=>{g()}));function Qe(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}var $e=e((()=>{}));function M(e){return Number(e)}var et=e((()=>{}));function tt(e,t,n=M){let r=e.length;if(!r)return;if(t<=0||r<2)return n(e[0],0,e);if(t>=1)return n(e[r-1],r-1,e);let i=(r-1)*t,a=Math.floor(i),o=n(e[a],a,e);return o+(n(e[a+1],a+1,e)-o)*(i-a)}var nt=e((()=>{et()}));function rt(e,t,n){let r=[t].concat([].slice.call(n));it&&console[e].apply(console,r)}var it,N,at,ot=e((()=>{O(),it=typeof console<`u`,(function(e){e[e.None=0]=`None`,e[e.Error=1]=`Error`,e[e.Warn=2]=`Warn`,e[e.Info=3]=`Info`,e[e.Debug=4]=`Debug`})(N||={}),at=class e{static getInstance(t,n){return e._instance&&D(t)?e._instance.level(t):e._instance||=new e(t,n),e._instance}static setInstance(t){return e._instance=t}static setInstanceLevel(t){e._instance?e._instance.level(t):e._instance=new e(t)}static clearInstance(){e._instance=null}constructor(e=N.None,t){this._onErrorHandler=[],this._level=e,this._method=t}addErrorHandler(e){this._onErrorHandler.find((t=>t===e))||this._onErrorHandler.push(e)}removeErrorHandler(e){let t=this._onErrorHandler.findIndex((t=>t===e));t<0||this._onErrorHandler.splice(t,1)}callErrorHandler(...e){this._onErrorHandler.forEach((t=>t(...e)))}canLogInfo(){return this._level>=N.Info}canLogDebug(){return this._level>=N.Debug}canLogError(){return this._level>=N.Error}canLogWarn(){return this._level>=N.Warn}level(e){return arguments.length?(this._level=+e,this):this._level}error(...e){return this._level>=N.Error&&(this._onErrorHandler.length?this.callErrorHandler(...e):rt(this._method??`error`,`ERROR`,e)),this}warn(...e){return this._level>=N.Warn&&rt(this._method||`warn`,`WARN`,e),this}info(...e){return this._level>=N.Info&&rt(this._method||`log`,`INFO`,e),this}debug(...e){return this._level>=N.Debug&&rt(this._method||`log`,`DEBUG`,e),this}},at._instance=null}));function st(e,t,n=0,r){for(p(r)&&(r=e.length);n<r;){let i=n+r>>>1;Qe(e[i],t)>0?r=i:n=i+1}return n}var ct,lt=e((()=>{$e(),m(),ct=(e,t,n)=>{let r=e,i=t;for(;r<i;){let e=Math.floor((r+i)/2);n(e)>=0?i=e:r=e+1}return r}})),ut,dt=e((()=>{$e(),nt(),ut=(e,t)=>{let n=e;return!0!==t&&(n=e.sort(Qe)),tt(n,.5)}}));function ft(e,t,n=gt,r=ht){let i=r,a=n*Math.max(e,t);return Math.abs(e-t)<=Math.max(i,a)}function pt(e,t,n,r){return e>t&&!ft(e,t,n,r)}function mt(e,t,n,r){return e<t&&!ft(e,t,n,r)}var ht,gt,_t=e((()=>{ht=1e-10,gt=1e-10})),P,vt=e((()=>{P=e=>{let t=null,n=null;return(...r)=>(t&&r.every(((e,n)=>e===t[n]))||(t=r,n=e(...r)),n)}})),F,yt=e((()=>{F=function(e,t,n){return e<t?t:e>n?n:e}})),bt,xt=e((()=>{bt=(e,t,n)=>{let[r,i]=e;i<r&&(r=e[1],i=e[0]);let a=i-r;return a>=n-t?[t,n]:(r=Math.min(Math.max(r,t),n-a),[r,r+a])}}));function St(e,t){let n;return e>t&&(n=e,e=t,t=n),n=>Math.max(e,Math.min(t,n))}var Ct=e((()=>{}));function wt(e,t,n){let r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0,p=!t&&t!==0&&Tt;if(typeof e!=`function`)throw TypeError(`Expected a function`);function m(t){let n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n),o}function h(e,t){return p?(cancelAnimationFrame(s),requestAnimationFrame(e)):setTimeout(e,t)}function g(e){let n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function v(){let e=Date.now();if(g(e))return y(e);s=h(v,function(e){let n=e-l,r=t-(e-c);return d?Math.min(r,a-n):r}(e))}function y(e){return s=void 0,f&&r?m(e):(r=i=void 0,o)}function b(...e){let n=Date.now(),a=g(n);if(r=e,i=this,c=n,a){if(s===void 0)return function(e){return l=e,s=h(v,t),u?m(e):o}(c);if(d)return s=h(v,t),m(c)}return s===void 0&&(s=h(v,t)),o}return t=+t||0,_(n)&&(u=!!n.leading,d=`maxWait`in n,d&&(a=Math.max(k(n.maxWait)?n.maxWait:0,t)),f=`trailing`in n?!!n.trailing:f),b.cancel=function(){s!==void 0&&function(e){if(p)return cancelAnimationFrame(e);clearTimeout(e)}(s),l=0,r=c=i=s=void 0},b.flush=function(){return s===void 0?o:y(Date.now())},b.pending=function(){return s!==void 0},b}var Tt,Et=e((()=>{v(),A(),Tt=!1;try{Tt=typeof requestAnimationFrame==`function`&&typeof cancelAnimationFrame==`function`}catch{Tt=!1}Tt=!1}));function Dt(e,t,n){let r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return _(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),wt(e,t,{leading:r,trailing:i,maxWait:t})}var Ot=e((()=>{Et(),v()}));function kt(e,t){return n=>e*(1-n)+t*n}function At(e,t){return function(n){return Math.round(e*(1-n)+t*n)}}function jt(e,t){let n=e.valueOf(),r=t.valueOf(),i=/* @__PURE__ */ new Date;return e=>(i.setTime(n*(1-e)+r*e),i)}var Mt,Nt=e((()=>{Mt=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,new RegExp(Mt.source,`g`)}));function Pt(e){if(k(e))return e;let t=+e;return k(t)?t:0}var Ft=e((()=>{A()})),It=e((()=>{})),Lt,Rt,zt,Bt=e((()=>{xe(),E(),f(),Lt=e=>t=>be(t,e),Rt=(e,t={})=>{if(d(e))return e;let n=[e];return(t&&t.get||Lt)(n)},zt=(e,t={})=>{if(T(e)){let n=e.map((e=>Rt(e,t)));return e=>n.map((t=>t(e)))}return Rt(e,t)}})),Vt=e((()=>{})),Ht=e((()=>{})),Ut=e((()=>{}));function Wt(e){if(e<=0||e>=1)return 0;let t=-.00778489400243029,n=-.322396458041136,r=-2.40075827716184,i=-2.54973253934373,a=4.37466414146497,o=2.93816398269878,s=.00778469570904146,c=.32246712907004,l=2.445134137143,u=3.75440866190742,d,f;return e<.02425?(d=Math.sqrt(-2*Math.log(e)),(((((t*d+n)*d+r)*d+i)*d+a)*d+o)/((((s*d+c)*d+l)*d+u)*d+1)):e<=.97575?(d=e-.5,f=d*d,(((((-39.6968302866538*f+220.946098424521)*f-275.928510446969)*f+138.357751867269)*f-30.6647980661472)*f+2.50662827745924)*d/(((((-54.4760987982241*f+161.585836858041)*f-155.698979859887)*f+66.8013118877197)*f-13.2806815528857)*f+1)):(d=Math.sqrt(-2*Math.log(1-e)),-(((((t*d+n)*d+r)*d+i)*d+a)*d+o)/((((s*d+c)*d+l)*d+u)*d+1))}function Gt(e,t,n,r){let i=1/0,a=-1/0,o=0,s=0;for(let r=0;r<e.length;r++){let c=e[r],l=t(c),u=n(c);!p(l)&&(l=+l)>=l&&!p(u)&&(u=+u)>=u&&(l<i&&(i=l),l>a&&(a=l),o++,s+=l)}if(o===0)return{min:i,max:a,n:o,X:0,SSE:0,Sxx:0};let c=s/o,l=0,u=0;for(let i=0;i<e.length;i++){let a=e[i],o=t(a),s=n(a);if(!p(o)&&(o=+o)>=o&&!p(s)&&(s=+s)>=s){let e=s-r(o);l+=e*e;let t=o-c;u+=t*t}}return{min:i,max:a,n:o,X:c,SSE:l,Sxx:u}}function Kt(e,t){let{n,X:r,Sxx:i,SSE:a}=t,o=n>2?a/(n-2):0;return{seMean:Math.sqrt(i>0?o*(1/n+(e-r)*(e-r)/i):o/n),sePred:Math.sqrt(o*(1+1/n+(i>0?(e-r)*(e-r)/i:0)))}}var qt=e((()=>{m()}));function Jt(e,t,n,r){let i=r-e*e;if(Math.abs(i)<2**-52)return{a:t,b:0};let a=(n-e*t)/i;return{a:t-a*e,b:a}}function Yt(e,t,n,r){for(let i=0;i<e.length;i++){let a=e[i],o=t(a),s=n(a);!p(o)&&(o=+o)>=o&&!p(s)&&(s=+s)>=s&&r(o,s,i)}}function Xt(e,t,n,r,i){let a=0,o=0;for(let s=0;s<e.length;s++){let c=e[s],l=n(c);if(!p(l)&&(l=+l)>=l){let e=l-i(t(c));a+=e*e;let n=l-r;o+=n*n}}return o===0?0:1-a/o}function Zt(e,t=(e=>e.x),n=(e=>e.y),r){let i=r?.alpha??.05,a=0,o=0,s=0,c=0,l=0;Yt(e,t,n,((e,t)=>{a++,o+=(e-o)/a,s+=(t-s)/a,c+=(e*t-c)/a,l+=(e*e-l)/a}));let{a:u,b:d}=Jt(o,s,c,l),f=e=>u+d*e,p=Gt(e,t,n,f);return{coef:{a:u,b:d},predict:f,rSquared:Xt(e,t,n,s,f),evaluateGrid:function(e){let t=[];if(p.n===0||e<=0)return t;if(p.min===p.max){for(let n=0;n<e;n++)t.push({x:p.min,y:f(p.min)});return t}let n=(p.max-p.min)/(e-1);for(let r=0;r<e;r++){let i=r===e-1?p.max:p.min+n*r;t.push({x:i,y:f(i)})}return t},confidenceInterval:function(e=50){let t=[];if(p.n===0||e<=0)return t;let n=Wt(1-i/2);if(p.min===p.max){let r=f(p.min),i=Kt(p.min,p);for(let a=0;a<e;a++)t.push({x:p.min,mean:r,lower:r-n*i.seMean,upper:r+n*i.seMean,predLower:r-n*i.sePred,predUpper:r+n*i.sePred});return t}let r=(p.max-p.min)/(e-1);for(let i=0;i<e;i++){let a=i===e-1?p.max:p.min+r*i,o=f(a),s=Kt(a,p);t.push({x:a,mean:o,lower:o-n*s.seMean,upper:o+n*s.seMean,predLower:o-n*s.sePred,predUpper:o+n*s.sePred})}return t}}}var Qt=e((()=>{m(),qt()})),$t=e((()=>{})),en=e((()=>{})),tn=e((()=>{})),nn=e((()=>{})),rn=e((()=>{})),an=e((()=>{u(),f(),m(),g(),v(),b(),S(),c(),te(),w(),E(),re(),ae(),O(),se(),A(),le(),de(),ye(),xe(),we(),Ee(),Me(),Pe(),Le(),Ve(),Ye(),Ze(),nt(),lt(),dt(),_t(),vt(),yt(),xt(),Ct(),Et(),Ot(),Nt(),et(),Ft(),It(),Bt(),Vt(),Ht(),Ut(),Qt(),$t(),en(),tn(),nn(),rn()})),on=e((()=>{}));function sn(e){return e>1?0:e<-1?gn:Math.acos(e)}function cn(e){return e>=1?I:e<=-1?-I:Math.asin(e)}function ln(e,t,n,r,i){let a=n,o=r;return typeof e==`number`&&typeof n==`number`&&(a=(1-i)*e+i*n),typeof t==`number`&&typeof r==`number`&&(o=(1-i)*t+i*r),{x:a,y:o}}function un(e,t){return e[0]*t[1]-e[1]*t[0]}function dn(e,t){return _n(e[0]-t[0])+_n(e[1]-t[1])<1e-12}function fn(e,t=10){return Math.round(e*t)/t}function pn(e){let t=e.toString().split(/[eE]/),n=(t[0].split(`.`)[1]||``).length-(+t[1]||0);return n>0?n:0}function mn(e,t){return fn(e-t,10**Math.max(pn(e),pn(t)))}var hn,gn,I,L,R,_n,vn,yn,bn,xn,Sn,Cn,z,B=e((()=>{hn=1e-12,gn=Math.PI,I=gn/2,L=2*gn,R=2*Math.PI,_n=Math.abs,vn=Math.atan2,yn=Math.cos,bn=Math.max,xn=Math.min,Sn=Math.sin,Cn=Math.sqrt,z=Math.pow})),wn,Tn,En=e((()=>{O(),B(),wn=class e{constructor(e=0,t=0,n,r){this.x=0,this.y=0,this.x=e,this.y=t,this.x1=n,this.y1=r}clone(){return new e(this.x,this.y)}copyFrom(e){return this.x=e.x,this.y=e.y,this.x1=e.x1,this.y1=e.y1,this.defined=e.defined,this.context=e.context,this}set(e,t){return this.x=e,this.y=t,this}add(e){return D(e)?(this.x+=e,void(this.y+=e)):(this.x+=e.x,this.y+=e.y,this)}sub(e){return D(e)?(this.x-=e,void(this.y-=e)):(this.x-=e.x,this.y-=e.y,this)}multi(e){throw Error(`暂不支持`)}div(e){throw Error(`暂不支持`)}},Tn=class{static distancePP(e,t){return Cn(z(e.x-t.x,2)+z(e.y-t.y,2))}static distanceNN(e,t,n,r){return Cn(z(e-n,2)+z(t-r,2))}static distancePN(e,t,n){return Cn(z(t-e.x,2)+z(n-e.y,2))}static pointAtPP(e,t,n){return new wn((t.x-e.x)*n+e.x,(t.y-e.y)*n+e.y)}}})),Dn=e((()=>{}));function V(e){return Math.PI/180*e}function On(e){return 180*e/Math.PI}function kn(e,t,n){return t?{x:e.x+t*Math.cos(n),y:e.y+t*Math.sin(n)}:{x:e.x,y:e.y}}function An(e){for(;e<0;)e+=2*Math.PI;for(;e>=2*Math.PI;)e-=2*Math.PI;return e}function jn(e,t){let n=Math.abs(t-e);if(n>=2*Math.PI||2*Math.PI-n<1e-6)return[0,Math.PI/2,Math.PI,1.5*Math.PI];let r=An(Math.min(e,t)),i=r+n,a=[r,i],o=Math.floor(r/Math.PI)*Math.PI/2;for(;o<i;)o>r&&a.push(o),o+=Math.PI/2;return a}function Mn(e,t,n,r){let{x:i,y:a}=t,o=jn(n,r),{width:s,height:c}=e,l=[];return o.forEach((e=>{let t=Math.sin(e),n=Math.cos(e);t===1?l.push(c-a):t===-1?l.push(a):n===1?l.push(s-i):n===-1?l.push(i):(t>0?l.push(Math.abs((c-a)/t)):l.push(Math.abs(a/t)),n>0?l.push(Math.abs((s-i)/n)):l.push(Math.abs(i/n)))})),Math.min.apply(null,l)}function Nn(e){return(e=An(e))>0&&e<=Math.PI/2?2:e>Math.PI/2&&e<=Math.PI?3:e>Math.PI&&e<=3*Math.PI/2?4:1}var Pn,Fn,In=e((()=>{B(),Pn=(e=0)=>{if(e<0)for(;e<-L;)e+=L;else if(e>0)for(;e>L;)e-=L;return e},Fn=Pn}));function Ln(e,t,n){e[0]=t[0]-n[0],e[1]=t[1]-n[1]}function Rn(e,t,n,r){let i=e[0],a=t[0],o=n[0],s=r[0];return a<i&&([i,a]=[a,i]),s<o&&([s,o]=[o,s]),!(a<o||s<i)&&(i=e[1],a=t[1],o=n[1],s=r[1],a<i&&([i,a]=[a,i]),s<o&&([s,o]=[o,s]),!(a<o||s<i))}function zn(e,t,n,r){if(!Rn(e,t,n,r))return!1;let i=[0,0],a=[0,0],o=[0,0];if(Ln(i,t,e),Ln(a,r,n),dn(i,a))return!0;Ln(o,n,e);let s=un(o,a)/un(i,a);return s>=0&&s<=1&&[e[0]+i[0]*s,e[1]+i[1]*s]}function Bn(e,t,n){if(e===null)return t;if(t===null)return e;let{x11:r,x12:i,y11:a,y12:o,x21:s,x22:c,y21:l,y22:u}=Jn(e,t,n);return r>=c||i<=s||a>=u||o<=l?{x1:0,y1:0,x2:0,y2:0}:{x1:Math.max(r,s),y1:Math.max(a,l),x2:Math.min(i,c),y2:Math.min(o,u)}}function Vn(e,t,n){if(e&&t){if(!n)return!(e.x1>t.x2||e.x2<t.x1||e.y1>t.y2||e.y2<t.y1);let{x11:r,x12:i,y11:a,y12:o,x21:s,x22:c,y21:l,y22:u}=Jn(e,t,!0);return!(r>c||i<s||a>u||o<l)}return!0}function Hn(e,t,n){if(!t)return!0;if(!n)return e.x>=t.x1&&e.x<=t.x2&&e.y>=t.y1&&e.y<=t.y2;let r=t.x1,i=t.x2,a=t.y1,o=t.y2;return r>i&&([r,i]=[i,r]),a>o&&([a,o]=[o,a]),e.x>=r&&e.x<=i&&e.y>=a&&e.y<=o}function Un(e,t){return Math.abs(t[0]*e[0]+t[1]*e[1])}function H({x:e,y:t},n,r={x:0,y:0}){return{x:(e-r.x)*Math.cos(n)-(t-r.y)*Math.sin(n)+r.x,y:(e-r.x)*Math.sin(n)+(t-r.y)*Math.cos(n)+r.y}}function Wn(e){return{x:(e.x1+e.x2)/2,y:(e.y1+e.y2)/2}}function Gn(e,t){let n=t?V(e.angle):e.angle,r=Wn(e);return[H({x:e.x1,y:e.y1},n,r),H({x:e.x2,y:e.y1},n,r),H({x:e.x2,y:e.y2},n,r),H({x:e.x1,y:e.y2},n,r)]}function Kn(e,t,n=!1){let r=Gn(e,n),i=Gn(t,n),a=(e,t)=>[t.x-e.x,t.y-e.y],o=a(Wn(e),Wn(t)),s=a(r[0],r[1]),c=a(r[1],r[2]),l=a(i[0],i[1]),u=a(i[1],i[2]),d=n?V(e.angle):e.angle,f=n?V(90-e.angle):e.angle+I,p=n?V(t.angle):t.angle,m=n?V(90-t.angle):t.angle+I;f>R&&(f-=R),m>R&&(m-=R);let h=(e,t,n,r)=>{let i=[Math.cos(t),Math.sin(t)];return e+(Un(i,n)+Un(i,r))/2>Un(i,o)};return h((e.x2-e.x1)/2,d,l,u)&&h((e.y2-e.y1)/2,f,l,u)&&h((t.x2-t.x1)/2,p,s,c)&&h((t.y2-t.y1)/2,m,s,c)}var qn,Jn,Yn=e((()=>{In(),B(),(function(e){e[e.NONE=0]=`NONE`,e[e.BBOX1=1]=`BBOX1`,e[e.BBOX2=2]=`BBOX2`})(qn||={}),Jn=(e,t,n)=>{let r=e.x1,i=e.x2,a=e.y1,o=e.y2,s=t.x1,c=t.x2,l=t.y1,u=t.y2;return n&&(r>i&&([r,i]=[i,r]),a>o&&([a,o]=[o,a]),s>c&&([s,c]=[c,s]),l>u&&([l,u]=[u,l])),{x11:r,x12:i,y11:a,y12:o,x21:s,x22:c,y21:l,y22:u}}})),Xn=e((()=>{})),Zn=e((()=>{})),Qn=e((()=>{Yn(),Xn(),Zn()})),$n=e((()=>{}));function er(e,t,n,r,i){for(let a=0,o=i[i.length-1];a<i.length;a++){let s=i[a];if(Rn([e,t],[n,r],[s.x,s.y],[o.x,o.y]))return!0;o=s}return!1}function tr(e,t,n){let r=0,i=e[0];if(!i)return!1;for(let a=1;a<e.length;a++){let o=e[a];r+=nr(i.x,i.y,o.x,o.y,t,n),i=o}let a=e[0];return rr(i.x,a.x)&&rr(i.y,a.y)||(r+=nr(i.x,i.y,a.x,a.y,t,n)),r!==0}function nr(e,t,n,r,i,a){if(a>t&&a>r||a<t&&a<r||r===t)return 0;let o=(a-t)/(r-t),s=r<t?1:-1;o!==1&&o!==0||(s=r<t?.5:-.5);let c=o*(n-e)+e;return c===i?1/0:c>i?s:0}function rr(e,t){return Math.abs(e-t)<ar}function ir(e,t){for(let n=0;n<t.length;n++)if(tr(e,t[n].x,t[n].y)||n>0&&er(t[n-1].x,t[n-1].y,t[n].x,t[n].y,e))return!0;return!1}var ar,or=e((()=>{Qn(),ar=1e-8})),sr=e((()=>{})),cr,lr=e((()=>{cr=e=>{let t=e.charCodeAt(0),n=e.length===2?e.charCodeAt(1):0,r=t;return 55296<=t&&t<=56319&&56320<=n&&n<=57343&&(t&=1023,n&=1023,r=t<<10|n,r+=65536),r===12288||65281<=r&&r<=65376||65504<=r&&r<=65510?`F`:r===8361||65377<=r&&r<=65470||65474<=r&&r<=65479||65482<=r&&r<=65487||65490<=r&&r<=65495||65498<=r&&r<=65500||65512<=r&&r<=65518?`H`:4352<=r&&r<=4447||4515<=r&&r<=4519||4602<=r&&r<=4607||9001<=r&&r<=9002||11904<=r&&r<=11929||11931<=r&&r<=12019||12032<=r&&r<=12245||12272<=r&&r<=12283||12289<=r&&r<=12350||12353<=r&&r<=12438||12441<=r&&r<=12543||12549<=r&&r<=12589||12593<=r&&r<=12686||12688<=r&&r<=12730||12736<=r&&r<=12771||12784<=r&&r<=12830||12832<=r&&r<=12871||12880<=r&&r<=13054||13056<=r&&r<=19903||19968<=r&&r<=42124||42128<=r&&r<=42182||43360<=r&&r<=43388||44032<=r&&r<=55203||55216<=r&&r<=55238||55243<=r&&r<=55291||63744<=r&&r<=64255||65040<=r&&r<=65049||65072<=r&&r<=65106||65108<=r&&r<=65126||65128<=r&&r<=65131||110592<=r&&r<=110593||127488<=r&&r<=127490||127504<=r&&r<=127546||127552<=r&&r<=127560||127568<=r&&r<=127569||131072<=r&&r<=194367||177984<=r&&r<=196605||196608<=r&&r<=262141?`W`:32<=r&&r<=126||162<=r&&r<=163||165<=r&&r<=166||r===172||r===175||10214<=r&&r<=10221||10629<=r&&r<=10630?`Na`:r===161||r===164||167<=r&&r<=168||r===170||173<=r&&r<=174||176<=r&&r<=180||182<=r&&r<=186||188<=r&&r<=191||r===198||r===208||215<=r&&r<=216||222<=r&&r<=225||r===230||232<=r&&r<=234||236<=r&&r<=237||r===240||242<=r&&r<=243||247<=r&&r<=250||r===252||r===254||r===257||r===273||r===275||r===283||294<=r&&r<=295||r===299||305<=r&&r<=307||r===312||319<=r&&r<=322||r===324||328<=r&&r<=331||r===333||338<=r&&r<=339||358<=r&&r<=359||r===363||r===462||r===464||r===466||r===468||r===470||r===472||r===474||r===476||r===593||r===609||r===708||r===711||713<=r&&r<=715||r===717||r===720||728<=r&&r<=731||r===733||r===735||768<=r&&r<=879||913<=r&&r<=929||931<=r&&r<=937||945<=r&&r<=961||963<=r&&r<=969||r===1025||1040<=r&&r<=1103||r===1105||r===8208||8211<=r&&r<=8214||8216<=r&&r<=8217||8220<=r&&r<=8221||8224<=r&&r<=8226||8228<=r&&r<=8231||r===8240||8242<=r&&r<=8243||r===8245||r===8251||r===8254||r===8308||r===8319||8321<=r&&r<=8324||r===8364||r===8451||r===8453||r===8457||r===8467||r===8470||8481<=r&&r<=8482||r===8486||r===8491||8531<=r&&r<=8532||8539<=r&&r<=8542||8544<=r&&r<=8555||8560<=r&&r<=8569||r===8585||8592<=r&&r<=8601||8632<=r&&r<=8633||r===8658||r===8660||r===8679||r===8704||8706<=r&&r<=8707||8711<=r&&r<=8712||r===8715||r===8719||r===8721||r===8725||r===8730||8733<=r&&r<=8736||r===8739||r===8741||8743<=r&&r<=8748||r===8750||8756<=r&&r<=8759||8764<=r&&r<=8765||r===8776||r===8780||r===8786||8800<=r&&r<=8801||8804<=r&&r<=8807||8810<=r&&r<=8811||8814<=r&&r<=8815||8834<=r&&r<=8835||8838<=r&&r<=8839||r===8853||r===8857||r===8869||r===8895||r===8978||9312<=r&&r<=9449||9451<=r&&r<=9547||9552<=r&&r<=9587||9600<=r&&r<=9615||9618<=r&&r<=9621||9632<=r&&r<=9633||9635<=r&&r<=9641||9650<=r&&r<=9651||9654<=r&&r<=9655||9660<=r&&r<=9661||9664<=r&&r<=9665||9670<=r&&r<=9672||r===9675||9678<=r&&r<=9681||9698<=r&&r<=9701||r===9711||9733<=r&&r<=9734||r===9737||9742<=r&&r<=9743||9748<=r&&r<=9749||r===9756||r===9758||r===9792||r===9794||9824<=r&&r<=9825||9827<=r&&r<=9829||9831<=r&&r<=9834||9836<=r&&r<=9837||r===9839||9886<=r&&r<=9887||9918<=r&&r<=9919||9924<=r&&r<=9933||9935<=r&&r<=9953||r===9955||9960<=r&&r<=9983||r===10045||r===10071||10102<=r&&r<=10111||11093<=r&&r<=11097||12872<=r&&r<=12879||57344<=r&&r<=63743||65024<=r&&r<=65039||r===65533||127232<=r&&r<=127242||127248<=r&&r<=127277||127280<=r&&r<=127337||127344<=r&&r<=127386||917760<=r&&r<=917999||983040<=r&&r<=1048573||1048576<=r&&r<=1114109?`A`:`N`}}));function ur(e,t={},n){n||=1;let{fontStyle:r=t.fontStyle,fontVariant:i=t.fontVariant,fontWeight:a=t.fontWeight,fontSize:o=t.fontSize,fontFamily:s=t.fontFamily}=e;return(r?r+` `:``)+(i?i+` `:``)+(a?a+` `:``)+o*n+`px `+(s||`sans-serif`)}var dr=e((()=>{})),fr,pr=e((()=>{an(),lr(),dr(),fr=class e{constructor(e,t){this._numberCharSize=null,this._fullCharSize=null,this._letterCharSize=null,this._specialCharSizeMap={},this._canvas=null,this._context=null,this._contextSaved=!1,this._notSupportCanvas=!1,this._notSupportVRender=!1,this._userSpec={},this.specialCharSet=`-/: .,@%'"~`,this._option=e,this._userSpec=t??{},this.textSpec=this._initSpec(),h(e.specialCharSet)&&(this.specialCharSet=e.specialCharSet),this._standardMethod=h(e.getTextBounds)?this.fullMeasure.bind(this):this.measureWithNaiveCanvas.bind(this)}initContext(){if(this._notSupportCanvas)return!1;if(p(this._canvas)&&(h(this._option.getCanvasForMeasure)&&(this._canvas=this._option.getCanvasForMeasure()),p(this._canvas)&&typeof window<`u`&&window.document!==void 0&&globalThis&&h(globalThis.document)&&(this._canvas=globalThis.document.createElement(`canvas`))),p(this._context)&&h(this._canvas)){let e=this._canvas.getContext(`2d`);h(e)&&(e.save(),e.font=ur(this.textSpec),this._contextSaved=!0,this._context=e)}return!p(this._context)||(this._notSupportCanvas=!0,!1)}_initSpec(){let{defaultFontParams:e={}}=this._option,{fontStyle:t=e.fontStyle,fontVariant:n=e.fontVariant,fontWeight:r=e.fontWeight??`normal`,fontSize:i=e.fontSize??12,fontFamily:a=e.fontFamily??`sans-serif`,align:o,textAlign:s=o??`center`,baseline:c,textBaseline:l=c??`middle`,ellipsis:u,limit:d}=this._userSpec,{lineHeight:f=i}=this._userSpec;return C(f)&&f[f.length-1]===`%`&&(f=i*(Number.parseFloat(f.substring(0,f.length-1))/100)),{fontStyle:t,fontVariant:n,fontFamily:a,fontSize:i,fontWeight:r,textAlign:s,textBaseline:l,ellipsis:u,limit:d,lineHeight:f}}measure(e,t){switch(t){case`vrender`:case`canopus`:return this.fullMeasure(e);case`canvas`:return this.measureWithNaiveCanvas(e);case`simple`:return this.quickMeasureWithoutCanvas(e);default:return this.quickMeasure(e)}}fullMeasure(e){if(p(e))return{width:0,height:0};if(p(this._option.getTextBounds)||!this._notSupportVRender)return this.measureWithNaiveCanvas(e);let{fontFamily:t,fontSize:n,fontWeight:r,textAlign:i,textBaseline:a,ellipsis:o,limit:s,lineHeight:c}=this.textSpec,l;try{let u=this._option.getTextBounds({text:e,fontFamily:t,fontSize:n,fontWeight:r,textAlign:i,textBaseline:a,ellipsis:!!o,maxLineWidth:s||1/0,lineHeight:c});l={width:u.width(),height:u.height()}}catch{this._notSupportVRender=!0,l=this.measureWithNaiveCanvas(e)}return l}measureWithNaiveCanvas(e){return this._measureReduce(e,this._measureWithNaiveCanvas.bind(this))}_measureWithNaiveCanvas(e){if(!this.initContext())return this._quickMeasureWithoutCanvas(e);let t=this._context.measureText(e),{fontSize:n,lineHeight:r}=this.textSpec;return{width:t.width,height:r??n,fontBoundingBoxAscent:t.fontBoundingBoxAscent,fontBoundingBoxDescent:t.fontBoundingBoxDescent}}quickMeasure(e){return this._measureReduce(e,this._quickMeasure.bind(this))}_quickMeasure(t){let n={width:0,height:0};for(let r=0;r<t.length;r++){let i=t[r],a=this._measureSpecialChar(i);p(a)&&e.NUMBERS_CHAR_SET.includes(i)&&(a=this._measureNumberChar()),p(a)&&[`F`,`W`].includes(cr(i))&&(a=this._measureFullSizeChar()),p(a)&&(a=this._measureLetterChar()),n.width+=a.width,n.height=Math.max(n.height,a.height),!p(a.fontBoundingBoxAscent)&&(n.fontBoundingBoxAscent=a.fontBoundingBoxAscent),!p(a.fontBoundingBoxDescent)&&(n.fontBoundingBoxDescent=a.fontBoundingBoxDescent)}return n}quickMeasureWithoutCanvas(e){return this._measureReduce(e,this._quickMeasureWithoutCanvas.bind(this))}_quickMeasureWithoutCanvas(e){let t={width:0,height:0},{fontSize:n,lineHeight:r}=this.textSpec;for(let r=0;r<e.length;r++){let i=e[r],a=[`F`,`W`].includes(cr(i))?1:.53;t.width+=a*n}return t.height=r??n,t}_measureReduce(e,t){let{fontSize:n,lineHeight:r}=this.textSpec,i={width:0,height:0};if(p(e))return i;if(T(e)){let a=e.filter(h).map((e=>e.toString()));return a.length===0?i:a.length===1?t(a[0]):{width:a.reduce(((e,n)=>Math.max(e,t(n).width)),0),height:a.length*((r??n)+1)+1}}return t(e.toString())}_measureNumberChar(){if(p(this._numberCharSize)){let t=this._standardMethod(e.NUMBERS_CHAR_SET);this._numberCharSize={width:t.width/e.NUMBERS_CHAR_SET.length,height:t.height,fontBoundingBoxAscent:t.fontBoundingBoxAscent,fontBoundingBoxDescent:t.fontBoundingBoxDescent}}return this._numberCharSize}_measureFullSizeChar(){return p(this._fullCharSize)&&(this._fullCharSize=this._standardMethod(e.FULL_SIZE_CHAR)),this._fullCharSize}_measureLetterChar(){if(p(this._letterCharSize)){let t=this._standardMethod(e.ALPHABET_CHAR_SET);this._letterCharSize={width:t.width/e.ALPHABET_CHAR_SET.length,height:t.height,fontBoundingBoxAscent:t.fontBoundingBoxAscent,fontBoundingBoxDescent:t.fontBoundingBoxDescent}}return this._letterCharSize}_measureSpecialChar(e){return h(this._specialCharSizeMap[e])?this._specialCharSizeMap[e]:this.specialCharSet.includes(e)?(this._specialCharSizeMap[e]=this._standardMethod(e),this._specialCharSizeMap[e]):null}release(){h(this._canvas)&&(this._canvas=null),h(this._context)&&(this._contextSaved&&=(this._context.restore(),!1),this._context=null)}},fr.ALPHABET_CHAR_SET=`abcdefghijklmnopqrstuvwxyz`,fr.NUMBERS_CHAR_SET=`0123456789`,fr.FULL_SIZE_CHAR=`字`})),mr=e((()=>{})),hr=e((()=>{pr(),mr(),dr()})),gr=e((()=>{lr(),hr()})),_r,vr,yr,br=e((()=>{_r=(e,t)=>{let{x1:n,x2:r,y1:i,y2:a}=e,o=Math.abs(r-n),s=Math.abs(a-i),c=(n+r)/2,l=(i+a)/2,u=0,d=0;switch(t){case`top`:case`inside-top`:d=-.5;break;case`bottom`:case`inside-bottom`:d=.5;break;case`left`:case`inside-left`:u=-.5;break;case`right`:case`inside-right`:u=.5;break;case`top-right`:u=.5,d=-.5;break;case`top-left`:u=-.5,d=-.5;break;case`bottom-right`:u=.5,d=.5;break;case`bottom-left`:u=-.5,d=.5}return c+=u*o,l+=d*s,{x:c,y:l}},vr=(e,t)=>Math.max(t.x1-e.x2,e.x1-t.x2,t.y1-e.y2,e.y1-t.y2),yr=(e,t)=>{let n=[{x:Math.cos(e.angle),y:Math.sin(e.angle)},{x:-Math.sin(e.angle),y:Math.cos(e.angle)},{x:Math.cos(t.angle),y:Math.sin(e.angle)},{x:-Math.sin(t.angle),y:Math.cos(e.angle)}];function r(e,t,n){let r=e.getRotatedCorners().map((e=>e.x*t+e.y*n));return{min:Math.min(...r),max:Math.max(...r)}}let i=0;for(let a of n){let n=r(e,a.x,a.y),o=r(t,a.x,a.y),s;s=n.max<o.min?o.min-n.max:o.max<n.min?n.min-o.max:0,i=Math.max(i,s)}return i}})),xr=e((()=>{Dn(),Qn(),$n(),or(),sr(),gr(),br()}));function Sr(e,t,n){let{x1:r,y1:i,x2:a,y2:o}=t;return n.onlyTranslate()?(e!==t&&e.setValue(t.x1,t.y1,t.x2,t.y2),e.translate(n.e,n.f),t):(e.clear(),e.add(n.a*r+n.c*i+n.e,n.b*r+n.d*i+n.f),e.add(n.a*a+n.c*i+n.e,n.b*a+n.d*i+n.f),e.add(n.a*a+n.c*o+n.e,n.b*a+n.d*o+n.f),e.add(n.a*r+n.c*o+n.e,n.b*r+n.d*o+n.f),t)}var Cr,wr,Tr,Er=e((()=>{an(),xr(),Cr=class e{constructor(e){e?this.setValue(e.x1,e.y1,e.x2,e.y2):this.clear()}clone(){return new e(this)}clear(){return this.x1=+Number.MAX_VALUE,this.y1=+Number.MAX_VALUE,this.x2=-Number.MAX_VALUE,this.y2=-Number.MAX_VALUE,this}empty(){return this.x1===+Number.MAX_VALUE&&this.y1===+Number.MAX_VALUE&&this.x2===-Number.MAX_VALUE&&this.y2===-Number.MAX_VALUE}equals(e){return this.x1===e.x1&&this.y1===e.y1&&this.x2===e.x2&&this.y2===e.y2}setValue(e=0,t=0,n=0,r=0){return this.x1=e,this.y1=t,this.x2=n,this.y2=r,this}set(e=0,t=0,n=0,r=0){return n<e?(this.x2=e,this.x1=n):(this.x1=e,this.x2=n),r<t?(this.y2=t,this.y1=r):(this.y1=t,this.y2=r),this}add(e=0,t=0){return e<this.x1&&(this.x1=e),t<this.y1&&(this.y1=t),e>this.x2&&(this.x2=e),t>this.y2&&(this.y2=t),this}expand(e=0){return T(e)?(this.y1-=e[0],this.x2+=e[1],this.y2+=e[2],this.x1-=e[3]):(this.x1-=e,this.y1-=e,this.x2+=e,this.y2+=e),this}round(){return this.x1=Math.floor(this.x1),this.y1=Math.floor(this.y1),this.x2=Math.ceil(this.x2),this.y2=Math.ceil(this.y2),this}translate(e=0,t=0){return this.x1+=e,this.x2+=e,this.y1+=t,this.y2+=t,this}rotate(e=0,t=0,n=0){let r=this.rotatedPoints(e,t,n);return this.clear().add(r[0],r[1]).add(r[2],r[3]).add(r[4],r[5]).add(r[6],r[7])}scale(e=0,t=0,n=0,r=0){let i=this.scalePoints(e,t,n,r);return this.clear().add(i[0],i[1]).add(i[2],i[3])}union(e){return e.x1<this.x1&&(this.x1=e.x1),e.y1<this.y1&&(this.y1=e.y1),e.x2>this.x2&&(this.x2=e.x2),e.y2>this.y2&&(this.y2=e.y2),this}intersect(e){return e.x1>this.x1&&(this.x1=e.x1),e.y1>this.y1&&(this.y1=e.y1),e.x2<this.x2&&(this.x2=e.x2),e.y2<this.y2&&(this.y2=e.y2),this}encloses(e){return e&&this.x1<=e.x1&&this.x2>=e.x2&&this.y1<=e.y1&&this.y2>=e.y2}alignsWith(e){return e&&(this.x1===e.x1||this.x2===e.x2||this.y1===e.y1||this.y2===e.y2)}intersects(e){return e&&!(this.x2<e.x1||this.x1>e.x2||this.y2<e.y1||this.y1>e.y2)}contains(e=0,t=0){return!(e<this.x1||e>this.x2||t<this.y1||t>this.y2)}containsPoint(e){return!(e.x<this.x1||e.x>this.x2||e.y<this.y1||e.y>this.y2)}width(){return this.empty()?0:this.x2-this.x1}height(){return this.empty()?0:this.y2-this.y1}scaleX(e=0){return this.x1*=e,this.x2*=e,this}scaleY(e=0){return this.y1*=e,this.y2*=e,this}transformWithMatrix(e){return Sr(this,this,e),this}copy(e){return this.x1=e.x1,this.y1=e.y1,this.x2=e.x2,this.y2=e.y2,this}rotatedPoints(e,t,n){let{x1:r,y1:i,x2:a,y2:o}=this,s=Math.cos(e),c=Math.sin(e),l=t-t*s+n*c,u=n-t*c-n*s;return[s*r-c*i+l,c*r+s*i+u,s*r-c*o+l,c*r+s*o+u,s*a-c*i+l,c*a+s*i+u,s*a-c*o+l,c*a+s*o+u]}scalePoints(e,t,n,r){let{x1:i,y1:a,x2:o,y2:s}=this;return[e*i+(1-e)*n,t*a+(1-t)*r,e*o+(1-e)*n,t*s+(1-t)*r]}},wr=class extends Cr{},Tr=class e extends Cr{constructor(e,t=0){super(e),e&&(this.angle=e.angle??t)}intersects(e){return Kn(this,e)}setValue(e=0,t=0,n=0,r=0,i=0){return super.setValue(e,t,n,r),this.angle=i,this}clone(){return new e(this)}getRotatedCorners(){let e={x:(this.x1+this.x2)/2,y:(this.y1+this.y2)/2};return[H({x:this.x1,y:this.y1},this.angle,e),H({x:this.x2,y:this.y1},this.angle,e),H({x:this.x1,y:this.y2},this.angle,e),H({x:this.x2,y:this.y2},this.angle,e)]}}}));function Dr(e,t,n,r,i,a,o,s){let c=t.a,l=t.b,u=t.c,d=t.d,f=t.e,p=t.f,m=yn(o),h=Sn(o),g,_;s?(g=s[0],_=s[1]):(g=n,_=r);let v=g-n,y=_-r,b=c*m+u*h,x=l*m+d*h,S=u*m-c*h,ee=d*m-l*h;e.a=i*b,e.b=i*x,e.c=a*S,e.d=a*ee,e.e=f+c*g+u*_-b*v-S*y,e.f=p+l*g+d*_-x*v-ee*y}var Or,kr=e((()=>{In(),B(),Or=class e{constructor(e=1,t=0,n=0,r=1,i=0,a=0){this.a=e,this.b=t,this.c=n,this.d=r,this.e=i,this.f=a}equalToMatrix(e){return this.e===e.e&&this.f===e.f&&this.a===e.a&&this.d===e.d&&this.b===e.b&&this.c===e.c}equalTo(e,t,n,r,i,a){return this.e===i&&this.f===a&&this.a===e&&this.d===r&&this.b===t&&this.c===n}setValue(e,t,n,r,i,a){return this.a=e,this.b=t,this.c=n,this.d=r,this.e=i,this.f=a,this}reset(){return this.a=1,this.b=0,this.c=0,this.d=1,this.e=0,this.f=0,this}getInverse(){let t=this.a,n=this.b,r=this.c,i=this.d,a=this.e,o=this.f,s=new e,c=t*i-n*r;return s.a=i/c,s.b=-n/c,s.c=-r/c,s.d=t/c,s.e=(r*o-i*a)/c,s.f=-(t*o-n*a)/c,s}rotate(e){let t=Math.cos(e),n=Math.sin(e),r=this.a*t+this.c*n,i=this.b*t+this.d*n,a=this.a*-n+this.c*t,o=this.b*-n+this.d*t;return this.a=r,this.b=i,this.c=a,this.d=o,this}rotateByCenter(e,t,n){let r=Math.cos(e),i=Math.sin(e),a=(1-r)*t+i*n,o=(1-r)*n-i*t,s=r*this.a-i*this.b,c=i*this.a+r*this.b,l=r*this.c-i*this.d,u=i*this.c+r*this.d,d=r*this.e-i*this.f+a,f=i*this.e+r*this.f+o;return this.a=s,this.b=c,this.c=l,this.d=u,this.e=d,this.f=f,this}scale(e,t){return this.a*=e,this.b*=e,this.c*=t,this.d*=t,this}setScale(e,t){return this.b=this.b/this.a*e,this.c=this.c/this.d*t,this.a=e,this.d=t,this}transform(e,t,n,r,i,a){return this.multiply(e,t,n,r,i,a),this}translate(e,t){return this.e+=this.a*e+this.c*t,this.f+=this.b*e+this.d*t,this}transpose(){let{a:e,b:t,c:n,d:r,e:i,f:a}=this;return this.a=t,this.b=e,this.c=r,this.d=n,this.e=a,this.f=i,this}multiply(e,t,n,r,i,a){let o=this.a,s=this.b,c=this.c,l=this.d,u=o*e+c*t,d=s*e+l*t,f=o*n+c*r,p=s*n+l*r,m=o*i+c*a+this.e,h=s*i+l*a+this.f;return this.a=u,this.b=d,this.c=f,this.d=p,this.e=m,this.f=h,this}interpolate(t,n){let r=new e;return r.a=this.a+(t.a-this.a)*n,r.b=this.b+(t.b-this.b)*n,r.c=this.c+(t.c-this.c)*n,r.d=this.d+(t.d-this.d)*n,r.e=this.e+(t.e-this.e)*n,r.f=this.f+(t.f-this.f)*n,r}transformPoint(e,t){let{a:n,b:r,c:i,d:a,e:o,f:s}=this,c=n*a-r*i,l=a/c,u=-r/c,d=-i/c,f=n/c,p=(i*s-a*o)/c,m=-(n*s-r*o)/c,{x:h,y:g}=e;t.x=h*l+g*d+p,t.y=h*u+g*f+m}onlyTranslate(e=1){return this.a===e&&this.b===0&&this.c===0&&this.d===e}clone(){return new e(this.a,this.b,this.c,this.d,this.e,this.f)}toTransformAttrs(){let e=this.a,t=this.b,n=this.c,r=this.d,i=e*r-t*n,a={x:this.e,y:this.f,rotateDeg:0,scaleX:0,scaleY:0,skewX:0,skewY:0};if(e!==0||t!==0){let o=Math.sqrt(e*e+t*t);a.rotateDeg=t>0?Math.acos(e/o):-Math.acos(e/o),a.scaleX=o,a.scaleY=i/o,a.skewX=(e*n+t*r)/i,a.skewY=0}else if(n!==0||r!==0){let o=Math.sqrt(n*n+r*r);a.rotateDeg=Math.PI/2-(r>0?Math.acos(-n/o):-Math.acos(n/o)),a.scaleX=i/o,a.scaleY=o,a.skewX=0,a.skewY=(e*n+t*r)/i}return a.rotateDeg=On(a.rotateDeg),a}}})),Ar=e((()=>{on(),En(),Er(),kr()})),jr,Mr=e((()=>{jr=class{constructor(){this.CLEAN_THRESHOLD=1e3,this.L_TIME=1e3,this.R_COUNT=1,this.R_TIMESTAMP_MAX_SIZE=20}clearCache(e,t){let{CLEAN_THRESHOLD:n=this.CLEAN_THRESHOLD,L_TIME:r=this.L_TIME,R_COUNT:i=this.R_COUNT}=t;if(e.size<n)return 0;let a=0,o=t=>{a++,e.delete(t)},s=Date.now();return e.forEach(((e,t)=>{if(e.timestamp.length<i)return o(t);let n=0;for(;s-e.timestamp[e.timestamp.length-1-n]<r&&(n++,!(n>=i)););if(n<i)return o(t);for(;s-e.timestamp[0]>r;)e.timestamp.shift()})),a}addLimitedTimestamp(e,t,n){let{R_TIMESTAMP_MAX_SIZE:r=this.R_TIMESTAMP_MAX_SIZE}=n;e.timestamp.length>r&&e.timestamp.shift(),e.timestamp.push(t)}clearTimeStamp(e,t){let{L_TIME:n=this.L_TIME}=t,r=Date.now();e.forEach((e=>{for(;r-e.timestamp[0]>n;)e.timestamp.shift()}))}clearItemTimestamp(e,t){let{L_TIME:n=this.L_TIME}=t,r=Date.now();for(;r-e.timestamp[0]>n;)e.timestamp.shift()}}}));function Nr(e,t,n){t/=100,n/=100;let r=(1-Math.abs(2*n-1))*t,i=r*(1-Math.abs(e/60%2-1)),a=n-r/2,o=0,s=0,c=0;return 0<=e&&e<60?(o=r,s=i,c=0):60<=e&&e<120?(o=i,s=r,c=0):120<=e&&e<180?(o=0,s=r,c=i):180<=e&&e<240?(o=0,s=i,c=r):240<=e&&e<300?(o=i,s=0,c=r):300<=e&&e<360&&(o=r,s=0,c=i),o=Math.round(255*(o+a)),s=Math.round(255*(s+a)),c=Math.round(255*(c+a)),{r:o,g:s,b:c}}var Pr=e((()=>{}));function Fr(e,t,n){e/=255,t/=255,n/=255;let r=Math.min(e,t,n),i=Math.max(e,t,n),a=i-r,o=0,s=0,c=0;return o=a===0?0:i===e?(t-n)/a%6:i===t?(n-e)/a+2:(e-t)/a+4,o=Math.round(60*o),o<0&&(o+=360),c=(i+r)/2,s=a===0?0:a/(1-Math.abs(2*c-1)),s=+(100*s).toFixed(1),c=+(100*c).toFixed(1),{h:o,s,l:c}}var Ir=e((()=>{}));function Lr(e){return((e=Math.max(0,Math.min(255,Math.round(e)||0)))<16?`0`:``)+e.toString(16)}function Rr(e){return D(e)?new W(e>>16,e>>8&255,255&e,1):T(e)?new W(e[0],e[1],e[2]):new W(255,255,255)}function zr(e){return D(e)?new W(e>>>24,e>>>16&255,e>>>8&255,255&e):T(e)?new W(e[0],e[1],e[2],e[3]):new W(255,255,255,1)}function Br(e){return e<.04045?.0773993808*e:(.9478672986*e+.0521327014)**2.4}function Vr(e){return e<.0031308?12.92*e:1.055*e**.41666-.055}var Hr,Ur,Wr,Gr,U,W,Kr=e((()=>{an(),Pr(),Ir(),Hr=/^#([0-9a-f]{3,8})$/,Ur={transparent:4294967040},Wr={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},Gr=(e,t)=>{let n=Hr.exec(e);if(t||n){let e=parseInt(n[1],16),t=n[1].length;return t===3?new W((e>>8&15)+((e>>8&15)<<4),(e>>4&15)+((e>>4&15)<<4),(15&e)+((15&e)<<4),1):t===6?Rr(e):t===8?new W(e>>24&255,e>>16&255,e>>8&255,(255&e)/255):null}},U=class e{static Brighter(t,n=1){return n===1?t:new e(t).brighter(n).toRGBA()}static SetOpacity(t,n=1){return n===1?t:new e(t).setOpacity(n).toRGBA()}static getColorBrightness(t,n=`hsl`){let r=t instanceof e?t:new e(t);switch(n){case`hsv`:default:return r.getHSVBrightness();case`hsl`:return r.getHSLBrightness();case`lum`:return r.getLuminance();case`lum2`:return r.getLuminance2();case`lum3`:return r.getLuminance3();case`wcag`:return r.getLuminanceWCAG()}}static parseColorString(e){if(h(Ur[e]))return zr(Ur[e]);if(h(Wr[e]))return Rr(Wr[e]);let t=`${e}`.trim().toLowerCase(),n=Gr(t);if(n!==void 0)return n;if(/^(rgb|RGB|rgba|RGBA)/.test(t)){let e=t.replace(/(?:\(|\)|rgba|RGBA|rgb|RGB)*/g,``).split(`,`);return new W(parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10),parseFloat(e[3]))}if(/^(hsl|HSL|hsla|HSLA)/.test(t)){let e=t.replace(/(?:\(|\)|hsla|HSLA|hsl|HSL)*/g,``).split(`,`),n=Nr(parseInt(e[0],10),parseInt(e[1],10),parseInt(e[2],10));return new W(n.r,n.g,n.b,parseFloat(e[3]))}}constructor(t){let n=e.parseColorString(t);n?this.color=n:(console.warn(`Warn: 传入${t}无法解析为Color`),this.color=new W(255,255,255))}toRGBA(){return this.color.formatRgb()}toString(){return this.color.formatRgb()}toHex(){return this.color.formatHex()}toHsl(){return this.color.formatHsl()}brighter(e){let{r:t,g:n,b:r}=this.color;return this.color.r=Math.max(0,Math.min(255,Math.floor(t*e))),this.color.g=Math.max(0,Math.min(255,Math.floor(n*e))),this.color.b=Math.max(0,Math.min(255,Math.floor(r*e))),this}add(e){let{r:t,g:n,b:r}=this.color;return this.color.r+=Math.min(255,t+e.color.r),this.color.g+=Math.min(255,n+e.color.g),this.color.b+=Math.min(255,r+e.color.b),this}sub(e){return this.color.r=Math.max(0,this.color.r-e.color.r),this.color.g=Math.max(0,this.color.g-e.color.g),this.color.b=Math.max(0,this.color.b-e.color.b),this}multiply(e){let{r:t,g:n,b:r}=this.color;return this.color.r=Math.max(0,Math.min(255,Math.floor(t*e.color.r))),this.color.g=Math.max(0,Math.min(255,Math.floor(n*e.color.g))),this.color.b=Math.max(0,Math.min(255,Math.floor(r*e.color.b))),this}getHSVBrightness(){return Math.max(this.color.r,this.color.g,this.color.b)/255}getHSLBrightness(){return .5*(Math.max(this.color.r,this.color.g,this.color.b)/255+Math.min(this.color.r,this.color.g,this.color.b)/255)}setHsl(e,t,n){let r=this.color.opacity,i=Fr(this.color.r,this.color.g,this.color.b),a=Nr(p(e)?i.h:F(e,0,360),p(t)?i.s:t>=0&&t<=1?100*t:t,p(n)?i.l:n<=1&&n>=0?100*n:n);return this.color=new W(a.r,a.g,a.b,r),this}setRGB(e,t,n){return!p(e)&&(this.color.r=e),!p(t)&&(this.color.g=t),!p(n)&&(this.color.b=n),this}setHex(e){let t=`${e}`.trim().toLowerCase();return Gr(t,!0)??this}setColorName(e){let t=Wr[e.toLowerCase()];return t===void 0?console.warn(`THREE.Color: Unknown color `+e):this.setHex(t),this}setScalar(e){return this.color.r=e,this.color.g=e,this.color.b=e,this}setOpacity(e=1){return this.color.opacity=e,this}getLuminance(){return(.2126*this.color.r+.7152*this.color.g+.0722*this.color.b)/255}getLuminance2(){return(.2627*this.color.r+.678*this.color.g+.0593*this.color.b)/255}getLuminance3(){return(.299*this.color.r+.587*this.color.g+.114*this.color.b)/255}getLuminanceWCAG(){let e=this.color.r/255,t=this.color.g/255,n=this.color.b/255,r,i,a;return r=e<=.03928?e/12.92:((e+.055)/1.055)**2.4,i=t<=.03928?t/12.92:((t+.055)/1.055)**2.4,a=n<=.03928?n/12.92:((n+.055)/1.055)**2.4,.2126*r+.7152*i+.0722*a}clone(){return new e(this.color.toString())}copyGammaToLinear(e,t=2){return this.color.r=e.color.r**+t,this.color.g=e.color.g**+t,this.color.b=e.color.b**+t,this}copyLinearToGamma(e,t=2){let n=t>0?1/t:1;return this.color.r=e.color.r**+n,this.color.g=e.color.g**+n,this.color.b=e.color.b**+n,this}convertGammaToLinear(e){return this.copyGammaToLinear(this,e),this}convertLinearToGamma(e){return this.copyLinearToGamma(this,e),this}copySRGBToLinear(e){return this.color.r=Br(e.color.r),this.color.g=Br(e.color.g),this.color.b=Br(e.color.b),this}copyLinearToSRGB(e){return this.color.r=Vr(e.color.r),this.color.g=Vr(e.color.g),this.color.b=Vr(e.color.b),this}convertSRGBToLinear(){return this.copySRGBToLinear(this),this}convertLinearToSRGB(){return this.copyLinearToSRGB(this),this}},W=class{constructor(e,t,n,r){this.r=isNaN(+e)?255:Math.max(0,Math.min(255,+e)),this.g=isNaN(+t)?255:Math.max(0,Math.min(255,+t)),this.b=isNaN(+n)?255:Math.max(0,Math.min(255,+n)),this.opacity=h(r)?isNaN(+r)?1:Math.max(0,Math.min(1,+r)):1}formatHex(){return`#${Lr(this.r)+Lr(this.g)+Lr(this.b)+(this.opacity===1?``:Lr(255*this.opacity))}`}formatRgb(){let e=this.opacity;return`${e===1?`rgb(`:`rgba(`}${this.r},${this.g},${this.b}${e===1?`)`:`,${e})`}`}formatHsl(){let e=this.opacity,{h:t,s:n,l:r}=Fr(this.r,this.g,this.b);return`${e===1?`hsl(`:`hsla(`}${t},${n}%,${r}%${e===1?`)`:`,${e})`}`}toString(){return this.formatHex()}}}));function qr(e){let t=``,n=``,r=``,i=+(e[0]===`#`);for(let a=i;a<e.length;a++)e[a]!==`#`&&(a<i+2?t+=e[a]:a<i+4?n+=e[a]:a<i+6&&(r+=e[a]));return[parseInt(t,16),parseInt(n,16),parseInt(r,16)]}var Jr=e((()=>{}));function Yr(e,t,n){return Number((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}var Xr=e((()=>{}));function Zr(e,t){let n=e.r,r=t.r,i=e.g,a=t.g,o=e.b,s=t.b,c=e.opacity,l=t.opacity;return e=>{let t=Math.round(n*(1-e)+r*e),u=Math.round(i*(1-e)+a*e),d=Math.round(o*(1-e)+s*e);return new W(t,u,d,c*(1-e)+l*e)}}var Qr=e((()=>{Kr()})),$r=/* @__PURE__ */ n({Color:()=>U,DEFAULT_COLORS:()=>Wr,RGB:()=>W,hexToRgb:()=>qr,hslToRgb:()=>Nr,interpolateRgb:()=>Zr,rgbToHex:()=>Yr,rgbToHsl:()=>Fr}),ei=e((()=>{Kr(),Jr(),Pr(),Xr(),Ir(),Qr()})),ti=e((()=>{}));function ni(e){if(k(e))return[e,e,e,e];if(T(e)){let t=e.length;if(t===1){let t=e[0];return[t,t,t,t]}if(t===2){let[t,n]=e;return[t,n,t,n]}if(t===3){let[t,n,r]=e;return[t,n,r,n]}if(t===4)return e}if(_(e)){let{top:t=0,right:n=0,bottom:r=0,left:i=0}=e;return[t,n,r,i]}return[0,0,0,0]}var ri=e((()=>{A(),E(),v()})),ii=e((()=>{})),ai=e((()=>{})),oi=e((()=>{ii(),ai()}));function si(e,t=0,n=0){if(!e)return{width:t,height:n};let r;try{r=window==null?void 0:window.getComputedStyle}catch{r=()=>({})}let i=r(e);if(/^(\d*\.?\d+)(px)$/.exec(i.width)){let r=parseFloat(i.width)-parseFloat(i.paddingLeft)-parseFloat(i.paddingRight)||e.clientWidth-1,a=parseFloat(i.height)-parseFloat(i.paddingTop)-parseFloat(i.paddingBottom)||e.clientHeight-1;return{width:r<=0?t:r,height:a<=0?n:a}}return{width:t,height:n}}function ci(e){let{x:t,y:n}=e.getBoundingClientRect();return{x:t,y:n}}var li,ui,di=e((()=>{li=(e=``)=>{let t={};return e.split(`;`).forEach((e=>{if(e){let n=e.split(`:`);if(n.length===2){let e=n[0].trim(),r=n[1].trim();e&&r&&(t[e]=r)}}})),t},ui=e=>e.replace(/([A-Z])/g,`-$1`).toLowerCase()})),fi=e((()=>{})),pi=e((()=>{})),mi=e((()=>{})),hi=e((()=>{})),gi=e((()=>{fi(),pi(),hi(),mi()})),_i,vi=e((()=>{_i=class e{static getInstance(){return e.instance||=new e,e.instance}constructor(){this.locale_shortWeekdays=[`Sun`,`Mon`,`Tue`,`Wed`,`Thu`,`Fri`,`Sat`],this.locale_periods=[`AM`,`PM`],this.locale_weekdays=[`Sunday`,`Monday`,`Tuesday`,`Wednesday`,`Thursday`,`Friday`,`Saturday`],this.locale_shortMonths=[`Jan`,`Feb`,`Mar`,`Apr`,`May`,`Jun`,`Jul`,`Aug`,`Sep`,`Oct`,`Nov`,`Dec`],this.numberRe=/^\s*\d+/,this.pads={"-":``,_:` `,0:`0`},this.requoteRe=/[\\^$*+?|[\]().{}]/g,this.locale_months=[`January`,`February`,`March`,`April`,`May`,`June`,`July`,`August`,`September`,`October`,`November`,`December`],this.formatShortWeekday=e=>this.locale_shortWeekdays[e.getDay()],this.formatWeekday=e=>this.locale_weekdays[e.getDay()],this.formatShortMonth=e=>this.locale_shortMonths[e.getMonth()],this.formatMonth=e=>this.locale_months[e.getMonth()],this.formatDayOfMonth=(e,t)=>this.pad(e.getDate(),t,2),this.formatHour24=(e,t)=>this.pad(e.getHours(),t,2),this.formatHour12=(e,t)=>this.pad(e.getHours()%12||12,t,2),this.formatMilliseconds=(e,t)=>this.pad(e.getMilliseconds(),t,3),this.formatMonthNumber=(e,t)=>this.pad(e.getMonth()+1,t,2),this.formatMinutes=(e,t)=>this.pad(e.getMinutes(),t,2),this.formatPeriod=e=>this.locale_periods[+(e.getHours()>=12)],this.formatSeconds=(e,t)=>this.pad(e.getSeconds(),t,2),this.formatFullYear=(e,t)=>this.pad(e.getFullYear()%1e4,t,4),this.formatUTCShortWeekday=e=>this.locale_shortWeekdays[e.getUTCDay()],this.formatUTCWeekday=e=>this.locale_weekdays[e.getUTCDay()],this.formatUTCShortMonth=e=>this.locale_shortMonths[e.getUTCMonth()],this.formatUTCMonth=e=>this.locale_months[e.getUTCMonth()],this.formatUTCDayOfMonth=(e,t)=>this.pad(e.getUTCDate(),t,2),this.formatUTCHour24=(e,t)=>this.pad(e.getUTCHours(),t,2),this.formatUTCHour12=(e,t)=>this.pad(e.getUTCHours()%12||12,t,2),this.formatUTCMilliseconds=(e,t)=>this.pad(e.getUTCMilliseconds(),t,3),this.formatUTCMonthNumber=(e,t)=>this.pad(e.getUTCMonth()+1,t,2),this.formatUTCMinutes=(e,t)=>this.pad(e.getUTCMinutes(),t,2),this.formatUTCPeriod=e=>this.locale_periods[+(e.getUTCHours()>=12)],this.formatUTCSeconds=(e,t)=>this.pad(e.getUTCSeconds(),t,2),this.formatUTCFullYear=(e,t)=>this.pad(e.getUTCFullYear()%1e4,t,4),this.formats={a:this.formatShortWeekday,A:this.formatWeekday,b:this.formatShortMonth,B:this.formatMonth,d:this.formatDayOfMonth,e:this.formatDayOfMonth,H:this.formatHour24,I:this.formatHour12,L:this.formatMilliseconds,m:this.formatMonthNumber,M:this.formatMinutes,p:this.formatPeriod,S:this.formatSeconds,Y:this.formatFullYear},this.utcFormats={a:this.formatUTCShortWeekday,A:this.formatUTCWeekday,b:this.formatUTCShortMonth,B:this.formatUTCMonth,d:this.formatUTCDayOfMonth,e:this.formatUTCDayOfMonth,H:this.formatUTCHour24,I:this.formatUTCHour12,L:this.formatUTCMilliseconds,m:this.formatUTCMonthNumber,M:this.formatUTCMinutes,p:this.formatUTCPeriod,S:this.formatUTCSeconds,Y:this.formatUTCFullYear},this.parseShortWeekday=(e,t,n)=>{let r=this.shortWeekdayRe.exec(t.slice(n));return r?(e.w=this.shortWeekdayLookup.get(r[0].toLowerCase()),n+r[0].length):-1},this.parseWeekday=(e,t,n)=>{let r=this.weekdayRe.exec(t.slice(n));return r?(e.w=this.weekdayLookup.get(r[0].toLowerCase()),n+r[0].length):-1},this.parseShortMonth=(e,t,n)=>{let r=this.shortMonthRe.exec(t.slice(n));return r?(e.m=this.shortMonthLookup.get(r[0].toLowerCase()),n+r[0].length):-1},this.parseMonth=(e,t,n)=>{let r=this.monthRe.exec(t.slice(n));return r?(e.m=this.monthLookup.get(r[0].toLowerCase()),n+r[0].length):-1},this.parseDayOfMonth=(e,t,n)=>{let r=this.numberRe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1},this.parseHour24=(e,t,n)=>{let r=this.numberRe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1},this.parseMilliseconds=(e,t,n)=>{let r=this.numberRe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1},this.parseMonthNumber=(e,t,n)=>{let r=this.numberRe.exec(t.slice(n,n+2));return r?(e.m=r-1,n+r[0].length):-1},this.parseMinutes=(e,t,n)=>{let r=this.numberRe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1},this.parsePeriod=(e,t,n)=>{let r=this.periodRe.exec(t.slice(n));return r?(e.p=this.periodLookup.get(r[0].toLowerCase()),n+r[0].length):-1},this.parseSeconds=(e,t,n)=>{let r=this.numberRe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1},this.parseFullYear=(e,t,n)=>{let r=this.numberRe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1},this.parses={a:this.parseShortWeekday,A:this.parseWeekday,b:this.parseShortMonth,B:this.parseMonth,d:this.parseDayOfMonth,e:this.parseDayOfMonth,H:this.parseHour24,I:this.parseHour24,L:this.parseMilliseconds,m:this.parseMonthNumber,M:this.parseMinutes,p:this.parsePeriod,S:this.parseSeconds,Y:this.parseFullYear},this.timeFormat=(e,t)=>this.newFormat(e,this.formats)(new Date(this.getFullTimeStamp(t))),this.timeUTCFormat=(e,t)=>this.newFormat(e,this.utcFormats)(new Date(this.getFullTimeStamp(t))),this.timeParse=(e,t)=>this.newParse(e,!1)(t+``),this.requoteF=this.requote.bind(this),this.periodRe=this.formatRe(this.locale_periods),this.periodLookup=this.formatLookup(this.locale_periods),this.weekdayRe=this.formatRe(this.locale_weekdays),this.weekdayLookup=this.formatLookup(this.locale_weekdays),this.shortWeekdayRe=this.formatRe(this.locale_shortWeekdays),this.shortWeekdayLookup=this.formatLookup(this.locale_shortWeekdays),this.monthRe=this.formatRe(this.locale_months),this.monthLookup=this.formatLookup(this.locale_months),this.shortMonthRe=this.formatRe(this.locale_shortMonths),this.shortMonthLookup=this.formatLookup(this.locale_shortMonths)}requote(e){return e.replace(this.requoteRe,`\\$&`)}localDate(e){if(0<=e.y&&e.y<100){let t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}utcDate(e){if(0<=e.y&&e.y<100){let t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}newDate(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}formatRe(e){return RegExp(`^(?:`+e.map(this.requoteF).join(`|`)+`)`,`i`)}formatLookup(e){return new Map(e.map(((e,t)=>[e.toLowerCase(),t])))}pad(e,t,n){let r=e<0?`-`:``,i=(r?-e:e)+``,a=i.length;return r+(a<n?Array(n-a+1).join(t)+i:i)}parseSpecifier(e,t,n,r){let i=0,a=t.length,o=n.length,s,c;for(;i<a;){if(r>=o)return-1;if(s=t.charCodeAt(i++),s===37){if(s=t.charAt(i++),c=this.parses[s in this.pads?t.charAt(i++):s],!c||(r=c(e,n,r))<0)return-1}else if(s!==n.charCodeAt(r++))return-1}return r}newParse(e,t){let n=this;return function(r){let i=n.newDate(1900,void 0,1);return n.parseSpecifier(i,e,r+=``,0)===r.length?`Q`in i?new Date(i.Q):`s`in i?new Date(1e3*i.s+(`L`in i?i.L:0)):(t&&!(`Z`in i)&&(i.Z=0),`p`in i&&(i.H=i.H%12+12*i.p),i.m===void 0&&(i.m=`q`in i?i.q:0),`Z`in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,n.utcDate(i)):n.localDate(i)):null}}newFormat(e,t){let n=this;return function(r){let i=[],a=-1,o=0,s=e.length,c,l,u;for(r instanceof Date||(r=/* @__PURE__ */ new Date(+r));++a<s;)e.charCodeAt(a)===37&&(i.push(e.slice(o,a)),(l=n.pads[c=e.charAt(++a)])?c=e.charAt(++a):l=c===`e`?` `:`0`,u=t[c],c=u(r,l),i.push(c),o=a+1);return i.push(e.slice(o,a)),i.join(``)}}getFullTimeStamp(e){let t=parseInt(e+``,10);return String(t).length===10?1e3*t:t}}})),yi=e((()=>{})),bi=e((()=>{})),xi=e((()=>{bi(),yi()})),Si=e((()=>{})),Ci=e((()=>{})),wi=e((()=>{})),Ti=e((()=>{Si(),Ci(),wi()})),Ei=e((()=>{an(),Ar(),Mr(),B(),In(),ei(),xr(),ti(),ot(),ri(),oi(),di(),gi(),ei(),vi(),xi(),Ti()})),Di;function Oi(){return(Oi=e((()=>{Di=(e,t)=>{let{callback:n}=t;return n&&(e=e.filter(n)),e}})))()}function ki(e,t,n){let r=t[n];if(r===void 0)e[n]=null;else if(_(r)){_(e[n])||(e[n]={});for(let t in r)ki(e[n],r,t)}else e[n]=r}function Ai(e,t){if(_(t)&&e!==t)for(let n in t)ki(e,t,n)}function ji(e,...t){e||={};let n=-1,r=t.length;for(;++n<r;)Ai(e,t[n]);return e}var Mi;function Ni(){return(Ni=e((()=>{Ee(),v(),Mi=function(e,...t){return ji(Te(e),...t)}})))()}var Pi;function Fi(){return(Fi=e((()=>{(function(e){e.DSV=`dsv`,e.TREE=`tree`,e.GEO=`geo`,e.BYTE=`bytejson`,e.HEX=`hex`,e.GRAPH=`graph`,e.TABLE=`table`,e.GEO_GRATICULE=`geo-graticule`})(Pi||={})})))()}var Ii;function Li(){return(Li=e((()=>{Ii=(e,t)=>{let{fields:n,key:r,value:i,retains:a}=t,o=[];for(let t=0;t<e.length;t++)n.forEach((s=>{let c={};if(c[r]=s,c[i]=e[t][s],a)a.forEach((n=>{c[n]=e[t][n]}));else for(let r in e[t])n.indexOf(r)===-1&&(c[r]=e[t][r]);o.push(c)}));return o}})))()}function Ri(e,t,n){for(let r=0;r<n.length;r++){let i=n[r],a=0;if(i.type===`ordinal`?(i.sortIndex[t[i.key]]===void 0&&(i.sortIndex[t[i.key]]=i.sortIndexCount++),i.sortIndex[e[i.key]]===void 0&&(i.sortIndex[e[i.key]]=i.sortIndexCount++),a=i.sortIndex[e[i.key]]-i.sortIndex[t[i.key]]):i.type===`linear`&&(a=e[i.key]-t[i.key]),i.sortReverse&&(a=-a),a!==0)return a}return 0}var zi;function Bi(){return(Bi=e((()=>{g(),A(),zi=(e,t)=>{if(!t?.fields||e.length===0)return e;let n=t.fields,r=e[0],i={},a=[];for(let t in n)if(Object.prototype.hasOwnProperty.call(n,t)){let o=n[t];if(o.sort&&(k(o.sortIndex)||(o.sortIndex=0),h(o.sortReverse)||(o.sortReverse=o.sort===`desc`)),!o.type){let n=r;t in r||(n=e.find((e=>t in e))??r),o.type=typeof n[t]==`number`?`linear`:`ordinal`}let s;if(typeof o.sortIndex==`number`&&(s={key:t,type:o.type,index:o.sortIndex,sortIndex:{},sortIndexCount:0,sortReverse:!0===o.sortReverse},a.push(s)),o.domain?.length>0){if(o.type===`ordinal`){o._domainCache={},i[t]=o;let e={};o.domain.forEach(((t,n)=>{e[t]=n,o._domainCache[t]=n})),s&&(s.sortIndex=e,s.sortIndexCount=o.domain.length)}else o.domain.length>=2&&(i[t]=o)}}return Object.keys(i).length>0&&(e=e.filter((e=>{for(let t in i){let n=i[t];if(n.type===`ordinal`){if(!(e[t]in n._domainCache))return!1}else if(n.domain[0]>e[t]||n.domain[1]<e[t])return!1}return!0}))),a.sort(((e,t)=>e.index-t.index)),e.sort(((e,t)=>Ri(e,t,a))),e}})))()}function Vi(e){return Function(`d`,`return {`+e.map(function(e,t){return JSON.stringify(e)+`: d[`+t+`] || ""`}).join(`,`)+`}`)}function Hi(e,t){var n=Vi(e);return function(r,i){return t(n(r),i,e)}}function Ui(e){var t=Object.create(null),n=[];return e.forEach(function(e){for(var r in e)r in t||n.push(t[r]=r)}),n}function G(e,t){var n=e+``,r=n.length;return r<t?Array(t-r+1).join(0)+n:n}function Wi(e){return e<0?`-`+G(-e,6):e>9999?`+`+G(e,6):G(e,4)}function Gi(e){var t=e.getUTCHours(),n=e.getUTCMinutes(),r=e.getUTCSeconds(),i=e.getUTCMilliseconds();return isNaN(e)?`Invalid Date`:Wi(e.getUTCFullYear(),4)+`-`+G(e.getUTCMonth()+1,2)+`-`+G(e.getUTCDate(),2)+(i?`T`+G(t,2)+`:`+G(n,2)+`:`+G(r,2)+`.`+G(i,3)+`Z`:r?`T`+G(t,2)+`:`+G(n,2)+`:`+G(r,2)+`Z`:n||t?`T`+G(t,2)+`:`+G(n,2)+`Z`:``)}function Ki(e){var t=RegExp(`["`+e+`
|
|
2
|
+
\r]`),n=e.charCodeAt(0);function r(e,t){var n,r,a=i(e,function(e,i){if(n)return n(e,i-1);r=e,n=t?Hi(e,t):Vi(e)});return a.columns=r||[],a}function i(e,t){var r=[],i=e.length,a=0,o=0,s,c=i<=0,l=!1;e.charCodeAt(i-1)===K&&--i,e.charCodeAt(i-1)===Xi&&--i;function u(){if(c)return Ji;if(l)return l=!1,qi;var t,r=a,o;if(e.charCodeAt(r)===Yi){for(;a++<i&&e.charCodeAt(a)!==Yi||e.charCodeAt(++a)===Yi;);return(t=a)>=i?c=!0:(o=e.charCodeAt(a++))===K?l=!0:o===Xi&&(l=!0,e.charCodeAt(a)===K&&++a),e.slice(r+1,t-1).replace(/""/g,`"`)}for(;a<i;){if((o=e.charCodeAt(t=a++))===K)l=!0;else if(o===Xi)l=!0,e.charCodeAt(a)===K&&++a;else if(o!==n)continue;return e.slice(r,t)}return c=!0,e.slice(r,i)}for(;(s=u())!==Ji;){for(var d=[];s!==qi&&s!==Ji;)d.push(s),s=u();t&&(d=t(d,o++))==null||r.push(d)}return r}function a(t,n){return t.map(function(t){return n.map(function(e){return u(t[e])}).join(e)})}function o(t,n){return n??=Ui(t),[n.map(u).join(e)].concat(a(t,n)).join(`
|
|
3
|
+
`)}function s(e,t){return t??=Ui(e),a(e,t).join(`
|
|
4
|
+
`)}function c(e){return e.map(l).join(`
|
|
5
|
+
`)}function l(t){return t.map(u).join(e)}function u(e){return e==null?``:e instanceof Date?Gi(e):t.test(e+=``)?`"`+e.replace(/"/g,`""`)+`"`:e}return{parse:r,parseRows:i,format:o,formatBody:s,formatRows:c,formatRow:l,formatValue:u}}var qi,Ji,Yi,K,Xi;function Zi(){return(Zi=e((()=>{qi={},Ji={},Yi=34,K=10,Xi=13})))()}var q,Qi;function $i(){return($i=e((()=>{Zi(),q=Ki(`,`),Qi=q.parse,q.parseRows,q.format,q.formatBody,q.formatRows,q.formatRow,q.formatValue})))()}var J,ea;function ta(){return(ta=e((()=>{Zi(),J=Ki(` `),ea=J.parse,J.parseRows,J.format,J.formatBody,J.formatRows,J.formatRow,J.formatValue})))()}var na,ra,ia,aa;function oa(){return(oa=e((()=>{Zi(),$i(),ta(),w(),Fi(),Ni(),na={delimiter:`,`},ra=(e,t={},n)=>{n.type=Pi.DSV;let{delimiter:r}=Mi(na,t);if(!C(r))throw TypeError(`Invalid delimiter: must be a string!`);return Ki(r).parse(e)},ia=(e,t={},n)=>(n.type=Pi.DSV,Qi(e)),aa=(e,t={},n)=>(n.type=Pi.DSV,ea(e))})))()}var sa;function ca(){return(ca=e((()=>{u(),E(),sa=(e,t,n)=>{let r=!l(t?.dependencyUpdate)||t?.dependencyUpdate;if(!e||!T(e))throw TypeError(`Invalid data: must be DataView array!`);return T(n.rawData)&&n.rawData.forEach((e=>{e.target&&(e.target.removeListener(`change`,n.reRunAllTransform),e.target.removeListener(`markRunning`,n.markRunning))})),r&&e.forEach((e=>{e.target.addListener(`change`,n.reRunAllTransform),e.target.addListener(`markRunning`,n.markRunning)})),e}})))()}function la(e=`dataset`){return ua>da&&(ua=0),e+`_`+ua++}var ua,da;function fa(){return(fa=e((()=>{ua=0,da=1e8})))()}var pa;function ma(){return(ma=e((()=>{o(),ot(),fa(),pa=class{constructor(e){let t;this.options=e,this.isDataSet=!0,this.transformMap={},this.parserMap={},this.dataViewMap={},this.target=new a.default,t=e?.name?e.name:la(`dataset`),this.name=t,this._logger=e?.logger??at.getInstance()}setLogger(e){this._logger=e}getDataView(e){return this.dataViewMap[e]}setDataView(e,t){var n;this.dataViewMap[e]&&((n=this._logger)==null||n.error(`Error: dataView ${e} 之前已存在,请重新命名`)),this.dataViewMap[e]=t}removeDataView(e){this.dataViewMap[e]=null,delete this.dataViewMap[e]}registerParser(e,t){var n;this.parserMap[e]&&((n=this._logger)==null||n.warn(`Warn: transform ${e} 之前已注册,执行覆盖逻辑`)),this.parserMap[e]=t}removeParser(e){this.parserMap[e]=null,delete this.parserMap[e]}getParser(e){return this.parserMap[e]||this.parserMap.default}registerTransform(e,t){var n;this.transformMap[e]&&((n=this._logger)==null||n.warn(`Warn: transform ${e} 之前已注册,执行覆盖逻辑`)),this.transformMap[e]=t}removeTransform(e){this.transformMap[e]=null,delete this.transformMap[e]}getTransform(e){return this.transformMap[e]}multipleDataViewAddListener(e,t,n){this._callMap||=/* @__PURE__ */ new Map;let r=this._callMap.get(n);r||=()=>{e.some((e=>e.isRunning))||n()},e.forEach((e=>{e.target.addListener(t,r)})),this._callMap.set(n,r)}allDataViewAddListener(e,t){this.multipleDataViewAddListener(Object.values(this.dataViewMap),e,t)}multipleDataViewRemoveListener(e,t,n){if(this._callMap){let r=this._callMap.get(n);r&&e.forEach((e=>{e.target.removeListener(t,r)})),this._callMap.delete(n)}}multipleDataViewUpdateInParse(e){e.forEach((e=>this.getDataView(e.name)?.markRunning())),e.forEach((e=>this.getDataView(e.name)?.parseNewData(e.data,e.options)))}multipleDataViewUpdateInRawData(e){e.forEach((e=>this.getDataView(e.name)?.markRunning())),e.forEach((e=>this.getDataView(e.name)?.updateRawData(e.data,e.options)))}destroy(){this.transformMap=null,this.parserMap=null,this.dataViewMap=null,this._callMap=null,this.target.removeAllListeners()}}})))()}var ha;function ga(){return(ga=e((()=>{o(),Ee(),Me(),m(),Le(),fa(),Bi(),ha=class e{constructor(e,t){let n;this.dataSet=e,this.options=t,this.isDataView=!0,this.target=new a.default,this.parseOption=null,this.transformsArr=[],this.isRunning=!1,this.rawData={},this.history=!1,this.parserData={},this.latestData={},this._fields=null,this.reRunAllTransform=(e={})=>{let t=this.latestData;return this.isRunning=!0,this.resetTransformData(),this.transformsArr.forEach((t=>{this.executeTransform(t,{pushHistory:e.pushHistory,emitMessage:!1})})),this.isRunning=!1,!1===e.emitMessage||e.skipEqual&&j(t,this.latestData)||this.target.emit(`change`,{latestData:this.latestData}),this},this.markRunning=()=>{this.isRunning=!0,this.target.emit(`markRunning`,[])},n=t?.name?t.name:la(`dataview`),this.name=n,t!=null&&t.history&&(this.history=t.history,this.historyData=[]),this.dataSet.setDataView(n,this),this.setFields(t?.fields)}parse(e,t,n=!1){this.isRunning=!0,n&&this.target.emit(`beforeParse`,[]),t&&(this.parseOption=t);let r=this.cloneParseData(e,t);if(t?.type){let e=(this.dataSet.getParser(t.type)??this.dataSet.getParser(`bytejson`))(r,t.options,this);this.rawData=r,this.parserData=e,this.history&&this.historyData.push(r,e),this.latestData=e}else this.parserData=r,this.rawData=r,this.history&&this.historyData.push(r),this.latestData=r;return this.isRunning=!1,n&&this.target.emit(`afterParse`,[]),this}transform(e,t=!0){if(this.isRunning=!0,e&&e.type){let n=!0;if(e.type===`fields`){this._fields=e.options.fields;let t=this.transformsArr.findIndex((t=>t.type===e.type));t>=0&&(n=!1,this.transformsArr[t].options.fields=this._fields)}n&&this.transformsArr.push(e),t&&this.executeTransform(e)}return this.sortTransform(),this.isRunning=!1,this}sortTransform(){this.transformsArr.length>=2&&this.transformsArr.sort(((e,t)=>(e.level??0)-(t.level??0)))}executeTransform(e,t={}){let{pushHistory:n,emitMessage:r,skipEqual:i}=t,a=this.dataSet.getTransform(e.type),o=this.latestData,s=a(o,e.options);this.history&&!1!==n&&this.historyData.push(s),this.latestData=s,!1===r||i&&j(o,this.latestData)||this.target.emit(`change`,{latestData:this.latestData})}resetTransformData(){this.latestData=this.parserData,this.history&&(this.historyData.length=0,this.historyData.push(this.rawData,this.parserData))}cloneParseData(t,n){let r=!1;return t instanceof e||!0!==n?.clone||(r=!0),r?Te(t):t}parseNewData(e,t){this.parse(e,t||this.parseOption),this.reRunAllTransform()}updateRawData(e,t){let n=this.cloneParseData(e,t);this.rawData=n,this.parserData=n,this.latestData=n,this.reRunAllTransform()}getFields(){return this._fields?this._fields:this.parseOption?.type===`dataview`&&this.rawData.length===1&&this.rawData[0].getFields?this.rawData[0].getFields():null}setFields(e,t=!1){this._fields=e&&t?je({},this._fields,e):e;let n=this.transformsArr.find((e=>e.type===`fields`));!p(this._fields)&&p(n)?(this.dataSet.registerTransform(`fields`,zi),this.transform({type:`fields`,options:{fields:this._fields}},!1)):n&&(n.options.fields=this._fields)}destroy(){this.dataSet.removeDataView(this.name),this.latestData=null,this.rawData=null,this.parserData=null,this.transformsArr=null,this.target=null}}})))()}function _a(e){switch(e){case Y.Linear:case Y.Log:case Y.Pow:case Y.Sqrt:case Y.Symlog:case Y.Time:return!0;default:return!1}}function va(e){return!!ba[e]}function ya(e){switch(e){case Y.Ordinal:case Y.Point:case Y.Band:return!0;default:return!1}}var Y,ba;function X(){return(X=e((()=>{(function(e){e.Identity=`identity`,e.Linear=`linear`,e.Log=`log`,e.Pow=`pow`,e.Sqrt=`sqrt`,e.Symlog=`symlog`,e.Time=`time`,e.Quantile=`quantile`,e.Quantize=`quantize`,e.Threshold=`threshold`,e.Ordinal=`ordinal`,e.Point=`point`,e.Band=`band`})(Y||={}),ba={},Object.values(Y).forEach((e=>{ba[e]=!0}))})))()}function Z(e){return e}function xa(e,t){if(e=Number(e),t=Number(t),t-=e)return n=>(n-e)/t;let n=Number.isNaN(t)?NaN:.5;return()=>n}function Sa(e,t,n){let r=e[0],i=e[1],a=t[0],o=t[1],s,c;return i<r?(s=xa(i,r),c=n(o,a)):(s=xa(r,i),c=n(a,o)),e=>c(s(e))}function Ca(e,t,n){let r;return r=e===1?e+2*n:e-t+2*n,e?r>0?r:1:0}function wa(e,t,n,r){return n===1&&(n=0),Ca(e,n,r)*(t/(1-n))}function Ta(e,t,n,r,i){let a=Ca(e,n,r),o=t/Math.max(1,a||1);i&&(o=Math.floor(o));let s=o*(1-n);return i&&(s=Math.round(s)),s}function Ea(e,t){let n=(e[1]-e[0])/(t[1]-t[0]),r=e[0]-n*t[0];return[r,n+r]}function Da(e,t,n){let r=Math.min(e.length,t.length)-1,i=Array(r),a=Array(r),o=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++o<r;)i[o]=xa(e[o],e[o+1]),a[o]=n(t[o],t[o+1]);return function(t){let n=st(e,t,1,r)-1;return a[n](i[n](t))}}var Oa,ka,Aa,ja,Ma,Na,Pa,Fa;function Q(){return(Q=e((()=>{lt(),Oa=e=>-Math.log(-e),ka=e=>-Math.exp(-e),Aa=e=>isFinite(e)?10**e:e<0?0:e,ja=e=>e===10?Aa:e===Math.E?Math.exp:t=>e**+t,Ma=e=>e===Math.E?Math.log:e===10?Math.log10:e===2?Math.log2:(e=Math.log(e),t=>Math.log(t)/e),Na=(e,t)=>{let n=e.slice(),r=0,i=n.length-1,a=n[r],o=n[i];return o<a&&([r,i]=[i,r],[a,o]=[o,a]),n[r]=t.floor(a),n[i]=t.ceil(o),n},Pa=(e,t=!1)=>{let n=Math.floor(Math.log10(e)),r=e/10**n,i;return i=t?r<1.5?1:r<3?2:r<7?5:10:r<=1?1:r<=2?2:r<=5?5:10,i*10**n},Fa=(e,t)=>{let n,r;return t[0]<t[1]?(n=t[0],r=t[1]):(n=t[1],r=t[0]),Math.min(Math.max(e,n),r)}})))()}var Ia;function La(){return(La=e((()=>{yt(),m(),g(),Q(),Ia=class{constructor(){this._rangeFactorStart=null,this._rangeFactorEnd=null}_calculateWholeRange(e){return this._wholeRange?this._wholeRange:h(this._rangeFactorStart)&&h(this._rangeFactorEnd)&&e.length===2?(this._wholeRange=Ea(e,[this._rangeFactorStart,this._rangeFactorEnd]),this._wholeRange):e}rangeFactor(e,t,n){return e?(e.length===2&&e.every((e=>e>=0&&e<=1))&&(this._wholeRange=null,e[0]===0&&e[1]===1?(this._rangeFactorStart=null,this._rangeFactorEnd=null):(this._rangeFactorStart=e[0],this._rangeFactorEnd=e[1])),this):n?(this._wholeRange=null,this._rangeFactorStart=null,this._rangeFactorEnd=null,this):h(this._rangeFactorStart)&&h(this._rangeFactorEnd)?[this._rangeFactorStart,this._rangeFactorEnd]:null}rangeFactorStart(e,t){return p(e)?this._rangeFactorStart:(e>=0&&e<=1&&(this._wholeRange=null,e!==0||!p(this._rangeFactorEnd)&&this._rangeFactorEnd!==1?(this._rangeFactorStart=e,this._rangeFactorEnd=this._rangeFactorEnd??1):(this._rangeFactorStart=null,this._rangeFactorEnd=null)),this)}rangeFactorEnd(e,t){return p(e)?this._rangeFactorEnd:(e>=0&&e<=1&&(this._wholeRange=null,e!==0||!p(this._rangeFactorStart)&&this._rangeFactorStart!==0?(this._rangeFactorEnd=e,this._rangeFactorStart=this._rangeFactorStart??0):(this._rangeFactorStart=null,this._rangeFactorEnd=null)),this)}generateFishEyeTransform(){if(!this._fishEyeOptions)return void(this._fishEyeTransform=null);let{distortion:e=2,radiusRatio:t=.1,radius:n}=this._fishEyeOptions,r=this.range(),i=r[0],a=r[r.length-1],o=Math.min(i,a),s=Math.max(i,a),c=F(this._fishEyeOptions.focus??0,o,s),l=p(n)?(s-o)*t:n,u=Math.exp(e);u=u/(u-1)*l;let d=e/l;this._fishEyeTransform=e=>{let t=Math.abs(e-c);if(t>=l)return e;if(t<=1e-6)return c;let n=u*(1-Math.exp(-t*d))/t*.75+.25;return c+(e-c)*n}}unknown(e){return arguments.length?(this._unknown=e,this):this._unknown}get(e,t){return(this==null?void 0:this[e])??t}}})))()}var Ra,za;function Ba(){return(Ba=e((()=>{X(),La(),g(),Ra=Symbol(`implicit`),za=class e extends Ia{specified(e){return e?(this._specified=Object.assign(this._specified??{},e),this):Object.assign({},this._specified)}_getSpecifiedValue(e){if(this._specified)return this._specified[e]}constructor(){super(),this.type=Y.Ordinal,this._index=/* @__PURE__ */ new Map,this._domain=[],this._ordinalRange=[],this._unknown=Ra}clone(){let t=new e().domain(this._domain).range(this._ordinalRange).unknown(this._unknown);return this._specified&&t.specified(this._specified),t}calculateVisibleDomain(e){return h(this._rangeFactorStart)&&h(this._rangeFactorEnd)&&e.length===2?[this.invert(e[0]),this.invert(e[1])]:this._domain}scale(e){let t=`${e}`,n=this._getSpecifiedValue(t);if(n!==void 0)return n;let r=this._index.get(t);if(!r){if(this._unknown!==Ra)return this._unknown;r=this._domain.push(e),this._index.set(t,r)}let i=this._ordinalRange[(r-1)%this._ordinalRange.length];return this._fishEyeTransform?this._fishEyeTransform(i):i}invert(e){let t=0;for(;t<this._ordinalRange.length&&this._ordinalRange[t]!==e;)t++;return this._domain[(t-1)%this._domain.length]}domain(e){if(!e)return this._domain.slice();this._domain=[],this._index=/* @__PURE__ */ new Map;for(let t of e){let e=`${t}`;this._index.has(e)||this._index.set(e,this._domain.push(t))}return this}range(e){if(!e)return this._ordinalRange.slice();let t=Array.from(e);return this._ordinalRange=t,this}index(e){var t;return this._index&&(t=this._index.get(`${e}`))!=null?t:-1}}})))()}function Va(e,t,n,r){let i=[],a=e;for(;a<=t;)i.push(a),a+=n;return r&&i.reverse(),i}function Ha(e,t,n,r){let i,a;if(t=Math.floor(+t),e=Math.floor(+e),!(n=Math.floor(+n)))return[];if(e===t)return[e];if(i=t<e){let n=e;e=t,t=n}let o=St(1,t-e+1)(n);if(a=Math.floor((t-e+1)/o),!r)for(;Math.ceil((t-e+1)/a)>n&&o>1;)--o,a=Math.floor((t-e)/o);return Va(e,t,a,i)}function Ua(e,t,n){let r;if(t=Math.floor(+t),e=Math.floor(+e),n=St(1,t-e+1)(Math.floor(+n)),r=t<e){let n=e;e=t,t=n}return Va(e,t,n,r)}function Wa(){return(Wa=e((()=>{})))()}var Ga;function Ka(){return(Ka=e((()=>{_t(),O(),g(),m(),yt(),Ba(),Q(),X(),Wa(),Ga=class e extends za{constructor(e){super(),this.type=Y.Band,this._range=[0,1],this._step=void 0,this._bandwidth=void 0,this._isFixed=!1,this._round=!1,this._paddingInner=0,this._paddingOuter=0,this._align=.5,this._unknown=void 0,delete this.unknown,this.rescale(e)}rescale(e,t){if(e)return this;this._wholeRange=null;let n=this._calculateWholeRange(this._range,t),r=super.domain().length,i=n[1]<n[0],a=n[Number(i)-0],o=n[1-Number(i)],s=Ca(r,this._paddingInner,this._paddingOuter);return this._step=(o-a)/Math.max(1,s||1),this._round&&(this._step=Math.floor(this._step)),a+=(o-a-this._step*(r-this._paddingInner))*this._align,this.isBandwidthFixed()||(this._bandwidth=this._step*(1-this._paddingInner)),this._round&&(a=Math.round(a),this.isBandwidthFixed()||(this._bandwidth=Math.round(this._bandwidth))),this._bandRangeState={reverse:i,start:i?F(a+this._step*(r-1),n[1],n[0]):F(a,n[0],n[1]),min:i?n[1]:n[0],max:o,count:r},this.generateFishEyeTransform(),this}scale(e){if(!this._bandRangeState)return;let t=`${e}`,n=this._getSpecifiedValue(t);if(n!==void 0)return n;let r=this._index.get(t);if(!r){if(this._unknown!==Ra)return this._unknown;r=this._domain.push(e),this._index.set(t,r)}let{count:i,start:a,reverse:o,min:s,max:c}=this._bandRangeState,l=a+(o?-1:1)*((r-1)%i)*this._step;return F(this._fishEyeTransform?this._fishEyeTransform(l):l,s,c)}_calculateWholeRange(e,t){if(this._wholeRange)return this._wholeRange;if((this._minBandwidth||this._maxBandwidth)&&!this._isBandwidthFixedByUser()){let t;if(h(this._rangeFactorStart)&&h(this._rangeFactorEnd)&&e.length===2){let n=Ea(e,[this._rangeFactorStart,this._rangeFactorEnd]);t=Math.abs(n[1]-n[0])}else t=Math.abs(e[1]-e[0]);let n=Ta(super.domain().length,t,this._paddingInner,this._paddingOuter,this._round);n<this._minBandwidth?(this._bandwidth=this._minBandwidth,this._isFixed=!0):n>this._maxBandwidth?(this._bandwidth=this._maxBandwidth,this._isFixed=!0):(this._bandwidth=n,this._isFixed=!1)}if(this.isBandwidthFixed()){let n=wa(super.domain().length,this._bandwidth,this._paddingInner,this._paddingOuter)*Math.sign(e[1]-e[0]),r=Math.min((e[1]-e[0])/n,1);if(h(this._rangeFactorStart)&&h(this._rangeFactorEnd)){let i=this._rangeFactorStart+r<=1,a=this._rangeFactorEnd-r>=0;if(t===`rangeFactorStart`&&i?this._rangeFactorEnd=this._rangeFactorStart+r:t===`rangeFactorEnd`&&a?this._rangeFactorStart=this._rangeFactorEnd-r:e[0]<=e[1]?i?this._rangeFactorEnd=this._rangeFactorStart+r:a?this._rangeFactorStart=this._rangeFactorEnd-r:(this._rangeFactorStart=0,this._rangeFactorEnd=r):a?this._rangeFactorStart=this._rangeFactorEnd-r:i?this._rangeFactorEnd=this._rangeFactorStart+r:(this._rangeFactorStart=1-r,this._rangeFactorEnd=1),n>0){let t=e[0]-n*this._rangeFactorStart,r=t+n;this._wholeRange=[t,r]}else{let t=e[1]+n*(1-this._rangeFactorEnd),r=t-n;this._wholeRange=[r,t]}}else this._rangeFactorStart=0,this._rangeFactorEnd=r,this._wholeRange=[e[0],e[0]+n];return this._wholeRange}return super._calculateWholeRange(e)}calculateWholeRangeSize(){let e=this._calculateWholeRange(this._range);return Math.abs(e[1]-e[0])}calculateVisibleDomain(e){let t=this._domain;if(h(this._rangeFactorStart)&&h(this._rangeFactorEnd)&&t.length){let n=this._getInvertIndex(e[0]),r=this._getInvertIndex(e[1]);return t.slice(Math.min(n,r),Math.max(n,r)+1)}return t}domain(e,t){return e?(super.domain(e),this.rescale(t)):super.domain()}range(e,t){return e?(this._range=[M(e[0]),M(e[1])],this.rescale(t)):this._range}rangeRound(e,t){return this._range=[M(e[0]),M(e[1])],this._round=!0,this.rescale(t)}ticks(e=10){let t=this.calculateVisibleDomain(this._range);return e===-1?t:Ha(0,t.length-1,e,!1).map((e=>t[e]))}tickData(e=10){return this.ticks(e).map(((e,t)=>({index:t,tick:e,value:(this.scale(e)-this._range[0]+this._bandwidth/2)/(this._range[1]-this._range[0])})))}forceTicks(e=10){let t=this.calculateVisibleDomain(this._range);return Ha(0,t.length-1,e,!0).filter((e=>e<t.length)).map((e=>t[e]))}stepTicks(e){let t=this.calculateVisibleDomain(this._range);return Ua(0,t.length-1,e).map((e=>t[e]))}_getInvertIndex(e){let t=0,n=this.step()/2,r=this.bandwidth()/2,i=this._domain.length,a=this.range(),o=a[0]>a[a.length-1];for(t=0;t<i;t++){let a=this.scale(this._domain[t])+r;if(t===0&&(!o&&!pt(e,a+n)||o&&!mt(e,a-n))||t===i-1||!mt(e,a-n)&&!pt(e,a+n))break}return t>=0&&t<=i-1?t:i-1}invert(e){return this._domain[this._getInvertIndex(e)]}padding(e,t){return e===void 0?this._paddingInner:(this._paddingOuter=Math.max(0,Math.min(Array.isArray(e)?Math.min.apply(null,e):e)),this._paddingInner=this._paddingOuter,this.rescale(t))}paddingInner(e,t){return e===void 0?this._paddingInner:(this._paddingInner=Math.max(0,Math.min(1,e)),this.rescale(t))}paddingOuter(e,t){return e===void 0?this._paddingOuter:(this._paddingOuter=Math.max(0,Math.min(1,e)),this.rescale(t))}step(){return this._step}round(e,t){return e===void 0?this._round:(this._round=e,this.rescale(t))}align(e,t){return e===void 0?this._align:(this._align=Math.max(0,Math.min(1,e)),this.rescale(t))}rangeFactor(e,t){return e?(super.rangeFactor(e),this.rescale(t)):super.rangeFactor()}rangeFactorStart(e,t){return p(e)?super.rangeFactorStart():(super.rangeFactorStart(e),this.rescale(t,`rangeFactorStart`))}rangeFactorEnd(e,t){return p(e)?super.rangeFactorEnd():(super.rangeFactorEnd(e),this.rescale(t,`rangeFactorEnd`))}bandwidth(e,t){return e?(e===`auto`?(this._bandwidth=void 0,this._isFixed=!1):(this._bandwidth=e,this._isFixed=!0),this._userBandwidth=e,this.rescale(t)):this._bandwidth}maxBandwidth(e,t){return e?(this._maxBandwidth=e===`auto`?void 0:e,this.rescale(t)):this._maxBandwidth}minBandwidth(e,t){return e?(this._minBandwidth=e===`auto`?void 0:e,this.rescale(t)):this._minBandwidth}fishEye(e,t,n){return e||n?(this._fishEyeOptions=e,this._fishEyeTransform=null,this.rescale(t)):this._fishEyeOptions}isBandwidthFixed(){return this._isFixed&&!!this._bandwidth}_isBandwidthFixedByUser(){return this._isFixed&&this._userBandwidth&&D(this._userBandwidth)}clone(){return new e(!0).domain(this._domain,!0).range(this._range,!0).round(this._round,!0).paddingInner(this._paddingInner,!0).paddingOuter(this._paddingOuter,!0).align(this._align,!0).bandwidth(this._userBandwidth??`auto`,!0).maxBandwidth(this._maxBandwidth??`auto`,!0).minBandwidth(this._maxBandwidth??`auto`)}}})))()}function qa(e,t){let n=typeof t,r;if(p(t)||n===`boolean`)return()=>t;if(n===`number`)return kt(e,t);if(n===`string`){if(r=U.parseColorString(t)){let t=Ja(U.parseColorString(e),r);return e=>t(e).formatRgb()}return kt(Number(e),Number(t))}return t instanceof W?Ja(e,t):t instanceof U?Ja(e.color,t.color):t instanceof Date?jt(e,t):kt(Number(e),Number(t))}var Ja;function Ya(){return(Ya=e((()=>{m(),Nt(),ei(),{interpolateRgb:Ja}=$r})))()}var Xa;function Za(){return(Za=e((()=>{La(),Ya(),Q(),Nt(),g(),m(),Xa=class extends Ia{constructor(e=Z,t=Z){super(),this._unknown=void 0,this.transformer=e,this.untransformer=t,this._forceAlign=!0,this._domain=[0,1],this._range=[0,1],this._clamp=Z,this._piecewise=Sa,this._interpolate=qa}calculateVisibleDomain(e){return h(this._rangeFactorStart)&&h(this._rangeFactorEnd)&&e.length===2?[this.invert(e[0]),this.invert(e[1])]:this._niceDomain??this._domain}fishEye(e,t,n){return e||n?(this._fishEyeOptions=e,this._fishEyeTransform=null,this.rescale(t)):this._fishEyeOptions}scale(e){if(e=Number(e),Number.isNaN(e)||this._domainValidator&&!this._domainValidator(e))return this._unknown;this._output||=this._piecewise((this._niceDomain??this._domain).map(this.transformer),this._calculateWholeRange(this._range),this._interpolate);let t=this._output(this.transformer(this._clamp(e)));return this._fishEyeTransform?this._fishEyeTransform(t):t}invert(e){return this._input||=this._piecewise(this._calculateWholeRange(this._range),(this._niceDomain??this._domain).map(this.transformer),kt),this._clamp(this.untransformer(this._input(e)))}domain(e,t){if(!e)return(this._niceDomain??this._domain).slice();this._domainValidator=null,this._niceType=null,this._niceDomain=null;let n=Array.from(e,M);return this._domain=n,this.rescale(t)}range(e,t){if(!e)return this._range.slice();let n=Array.from(e);return this._range=n,this.rescale(t)}rangeRound(e,t){let n=Array.from(e);return this._range=n,this._interpolate=At,this.rescale(t)}rescale(e){if(e)return this;let t=this._niceDomain??this._domain,n=t.length,r=this._range.length,i=Math.min(n,r);if(n&&n<r&&this._forceAlign){let e=r-n+1,a=t[n-1],o=n>=2?(a-t[n-2])/e:0;for(let r=1;r<=e;r++)t[n-2+r]=a-o*(e-r);i=r}return this._autoClamp&&(this._clamp=St(t[0],t[i-1])),this._piecewise=i>2?Da:Sa,this._output=this._input=null,this._wholeRange=null,this.generateFishEyeTransform(),this}clamp(e,t,n){return arguments.length?(t?(this._autoClamp=!1,this._clamp=t):(this._autoClamp=!!e,this._clamp=e?void 0:Z),this.rescale(n)):this._clamp!==Z}interpolate(e,t){return arguments.length?(this._interpolate=e,this.rescale(t)):this._interpolate}ticks(e=10){return[]}tickData(e=10){return(this.ticks(e)??[]).map(((e,t)=>({index:t,tick:e,value:(this.scale(e)-this._range[0])/(this._range[1]-this._range[0])})))}rangeFactor(e,t){return e?(super.rangeFactor(e),this._output=this._input=null,this):super.rangeFactor()}rangeFactorStart(e,t){return p(e)?super.rangeFactorStart():(super.rangeFactorStart(e),this._output=this._input=null,this)}rangeFactorEnd(e,t){return p(e)?super.rangeFactorEnd():(super.rangeFactorEnd(e),this._output=this._input=null,this)}forceAlignDomainRange(e){return arguments.length?(this._forceAlign=e,this):this._forceAlign}}})))()}function Qa(e,t,n){let r=(t-e)/Math.max(0,n);return po(r)}function $a(e,t,n){let r;if(n=+n,(e=+e)==(t=+t)&&n>0)return[e];if(n<=0||(r=eo(e,t,n))===0||!isFinite(r))return[];let i=Array(n);for(let t=0;t<n;t++)i[t]=e+t*r;return i}function eo(e,t,n){return(t-e)/Math.max(1,n-1)}function to(e,t,n){let r,i,a=-1;if(n=+n,(i=(t=+t)<(e=+e))&&(r=e,e=t,t=r),!isFinite(n)||t-e<=n)return[e];let o=Math.floor((t-e)/n+1),s=Array(o);for(;++a<o;)s[a]=e+a*n;return i&&s.reverse(),s}function no(e,t=10){let n,r,i=0,a=e.length-1,o=e[i],s=e[a],c=10;for(s<o&&(r=o,o=s,s=r,r=i,i=a,a=r);c-->0;){if(r=Qa(o,s,t).step,r===n)return e[i]=o,e[a]=s,e;if(r>0)o=Math.floor(o/r)*r,s=Math.ceil(s/r)*r;else{if(!(r<0))break;o=Math.ceil(o*r)/r,s=Math.floor(s*r)/r}n=r}}function ro(e,t){let n=D(t.forceMin),r=D(t.forceMax),i=null,a=[],o=null,s=n&&r?e=>e>=t.forceMin&&e<=t.forceMax:n?e=>e>=t.forceMin:r?e=>e<=t.forceMax:null;return n?a[0]=t.forceMin:D(t.min)&&t.min<=Math.min(e[0],e[e.length-1])&&(a[0]=t.min),r?a[1]=t.forceMax:D(t.max)&&t.max>=Math.max(e[0],e[e.length-1])&&(a[1]=t.max),D(a[0])&&D(a[1])?(o=e.slice(),o[0]=a[0],o[o.length-1]=a[1]):i=D(a[0])||D(a[1])?D(a[0])?`max`:`min`:`all`,{niceType:i,niceDomain:o,niceMinMax:a,domainValidator:s}}var io,ao,oo,so,co,lo,uo,fo,$,po,mo,ho,go,_o;function vo(){return(vo=e((()=>{Ze(),vt(),O(),Q(),io=Math.sqrt(50),ao=Math.sqrt(10),oo=Math.sqrt(2),so=[1,2,5,10],co=(e,t,n)=>{let r=1,i=e,a=Math.floor((t-1)/2),o=Math.abs(e);return e>=0&&e<=Number.MIN_VALUE?i=0:e<0&&e>=-Number.MIN_VALUE?i=-(t-1):!n&&o<1?r=po(o).step:(n||o>1)&&(i=Math.floor(e)-a*r),r>0?(e>0?i=Math.max(i,0):e<0&&(i=Math.min(i,-(t-1)*r)),Xe(0,t).map((e=>i+e*r))):e>0?uo(0,-(t-1)/r,r):uo((t-1)/r,0,r)},lo=P(((e,t,n,r)=>{let i,a,o,s,c=-1;if(n=+n,(e=+e)==(t=+t)||Math.abs(e-t)<=Number.MIN_VALUE&&n>0)return[e];if((i=t<e)&&(a=e,e=t,t=a),s=Qa(e,t,n).step,!isFinite(s))return[];if(s>0){let n=Math.round(e/s),r=Math.round(t/s);for(n*s<e&&++n,r*s>t&&--r,o=Array(a=r-n+1);++c<a;)o[c]=(n+c)*s}else if(s<0&&r?.noDecimals){s=1;let n=Math.ceil(e),r=Math.floor(t);if(!(n<=r))return[];for(o=Array(a=r-n+1);++c<a;)o[c]=n+c}else{s=-s;let n=Math.round(e*s),r=Math.round(t*s);for(n/s<e&&++n,r/s>t&&--r,o=Array(a=r-n+1);++c<a;)o[c]=(n+c)/s}return i&&o.reverse(),o})),uo=(e,t,n)=>{let r,i,a=-1;if(n>0){let o=Math.floor(e/n),s=Math.ceil(t/n);for((o+1)*n<e&&++o,(s-1)*n>t&&--s,i=Array(r=s-o+1);++a<r;)i[a]=(o+a)*n}else{n=-n;let o=Math.floor(e*n),s=Math.ceil(t*n);for((o+1)/n<e&&++o,(s-1)/n>t&&--s,i=Array(r=s-o+1);++a<r;)i[a]=(o+a)/n}return i},fo=(e,t,n)=>{let r,i=e[0],a=e[e.length-1],o=t-e.length;if(a<=0){let t=[];for(r=o;r>=1;r--)t.push(i-r*n);return t.concat(e)}if(i>=0){for(r=1;r<=o;r++)e.push(a+r*n);return e}let s=[],c=[];for(r=1;r<=o;r++)r%2==0?s=[i-Math.floor(r/2)*n].concat(s):c.push(a+Math.ceil(r/2)*n);return s.concat(e).concat(c)},$=P(((e,t,n,r)=>{let i,a,o;if(n=+n,(e=+e)==(t=+t)||Math.abs(e-t)<=Number.MIN_VALUE&&n>0)return co(e,n,r?.noDecimals);(i=t<e)&&(o=e,e=t,t=o);let s=Qa(e,t,n),c=s.step;if(!isFinite(c))return[];if(c>0){let r=1,{power:i,gap:o}=s,l=o===10?2*10**i:1*10**i;for(;r<=5&&(a=uo(e,t,c),a.length>n+1)&&n>2;)c+=l,r+=1;n>2&&a.length<n-1&&(a=fo(a,n,c))}else r!=null&&r.noDecimals&&c<0&&(c=1),a=uo(e,t,c);return i&&a.reverse(),a})),po=e=>{let t=Math.floor(Math.log(e)/Math.LN10),n=e/10**t,r=so[0];return n>=io?r=so[3]:n>=ao?r=so[2]:n>=oo&&(r=so[1]),t>=0?{step:r*10**t,gap:r,power:t}:{step:-(10**-t)/r,gap:r,power:t}},mo=(e,t,n)=>Math.abs(t-e)<1?+n.toFixed(1):Math.round(+n),ho=P(((e,t,n,r,i,a,o)=>{let s=e,c=t,l=c<s;l&&([s,c]=[c,s]);let u,d,f=i(s),p=i(c),m=[];if(!(r%1)&&p-f<n){if(f=Math.floor(f),p=Math.ceil(p),s>0){for(;f<=p;++f)for(u=1;u<r;++u)if(d=f<0?u/a(-f):u*a(f),!(d<s)){if(d>c)break;m.push(d)}}else for(;f<=p;++f)for(u=r-1;u>=1;--u)if(d=f>0?u/a(-f):u*a(f),!(d<s)){if(d>c)break;m.push(d)}2*m.length<n&&(m=$(s,c,n))}else m=$(f,p,Math.min(p-f,n)).map(a);return m=m.filter((e=>e!==0)),o!=null&&o.noDecimals&&(m=Array.from(new Set(m.map((e=>Math.floor(e)))))),l?m.reverse():m})),go=P(((e,t,n,r,i,a)=>{let o=[],s={},c=i(e),l=i(t),u=[];if(Number.isInteger(r))u=$(c,l,n);else{let e=(l-c)/(n-1);for(let t=0;t<n;t++)u.push(c+t*e)}return u.forEach((n=>{let i=a(n),c=Number.isInteger(r)?mo(e,t,i):mo(e,t,Pa(i)),l=mo(e,t,Fa(c,[e,t]));!s[l]&&!isNaN(l)&&u.length>1&&(s[l]=1,o.push(l))})),o})),_o=P(((e,t,n,r,i)=>$a(r(e),r(t),n).map((e=>Pa(i(e)))))),P(((e,t,n,r,i)=>to(r(e),r(t),n).map((e=>Pa(i(e))))))})))()}var yo;function bo(){return(bo=e((()=>{X(),vo(),Za(),f(),g(),yo=class e extends Xa{constructor(){super(...arguments),this.type=Y.Linear}clone(){let t=new e;return t.domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate),this._niceType&&(t._niceType=this._niceType,t._domainValidator=this._domainValidator,t._niceDomain=this._niceDomain?.slice()),t}tickFormat(){return()=>{}}d3Ticks(e=10,t){let n=this.calculateVisibleDomain(this._range);return lo(n[0],n[n.length-1],e,t)}ticks(e=10,t){if(d(t?.customTicks))return t.customTicks(this,e);if(h(this._rangeFactorStart)&&h(this._rangeFactorEnd)&&(this._rangeFactorStart>0||this._rangeFactorEnd<1)&&this._range.length===2||!this._niceType)return this.d3Ticks(e,t);let n=this._niceDomain??this._domain,r=this._domain,i=n[0],a=n[n.length-1],o=$(r[0],r[r.length-1],e,t);if(!o.length)return o;if(this._domainValidator)o=o.filter(this._domainValidator);else if((o[0]!==i||o[o.length-1]!==a)&&this._niceType){let e=n.slice();if(this._niceType===`all`?(e[0]=o[0],e[e.length-1]=o[o.length-1],this._niceDomain=e,this.rescale()):this._niceType===`min`&&o[0]!==i?(e[0]=o[0],this._niceDomain=e,this.rescale()):this._niceType===`max`&&o[o.length-1]!==a&&(e[e.length-1]=o[o.length-1],this._niceDomain=e,this.rescale()),this._niceType!==`all`){let t=Math.min(e[0],e[e.length-1]),n=Math.max(e[0],e[e.length-1]);o=o.filter((e=>e>=t&&e<=n))}}return o}forceTicks(e=10){let t=this.calculateVisibleDomain(this._range);return $a(t[0],t[t.length-1],e)}stepTicks(e){let t=this.calculateVisibleDomain(this._range);return to(t[0],t[t.length-1],e)}nice(e=10,t){let n=this._domain,r=[];if(t){let e=ro(n,t);if(r=e.niceMinMax,this._domainValidator=e.domainValidator,this._niceType=e.niceType,e.niceDomain)return this._niceDomain=e.niceDomain,this.rescale(),this}else this._niceType=`all`;if(this._niceType){let t=no(n.slice(),e);this._niceType===`min`?t[t.length-1]=r[1]??t[t.length-1]:this._niceType===`max`&&(t[0]=r[0]??t[0]),this._niceDomain=t,this.rescale()}return this}niceMin(e=10){this._niceType=`min`;let t=this._domain[this._domain.length-1],n=no(this.domain(),e);return n&&(n[n.length-1]=t,this._niceDomain=n,this.rescale()),this}niceMax(e=10){this._niceType=`max`;let t=this._domain[0],n=no(this._domain.slice(),e);return n&&(n[0]=t,this._niceDomain=n,this.rescale()),this}}})))()}var xo;function So(){return(So=e((()=>{vo(),Q(),xo=class{nice(e=10,t){let n=this._domain,r=[],i=null;if(t){let e=ro(n,t);if(r=e.niceMinMax,this._domainValidator=e.domainValidator,i=e.niceType,e.niceDomain)return this._niceDomain=e.niceDomain,this.rescale(),this}else i=`all`;if(i){let e=Na(n.slice(),this.getNiceConfig?.call(this)??{floor:e=>Math.floor(e),ceil:e=>Math.ceil(e)});return i===`min`?e[e.length-1]=r[1]??e[e.length-1]:i===`max`&&(e[0]=r[0]??e[0]),this._niceDomain=e,this.rescale(),this}return this}niceMin(){let e=this._domain[this._domain.length-1];this.nice();let t=this._domain.slice();return this._domain&&(t[t.length-1]=e,this._niceDomain=t,this.rescale()),this}niceMax(){let e=this._domain[0];this.nice();let t=this._domain.slice();return this._domain&&(t[0]=e,this._niceDomain=t,this.rescale()),this}}})))()}function Co(e){return t=>-e(-t)}function wo(e=2**-52){return t=>Math.max(t,e)}function To(e=2**-52){return t=>Math.min(t,-e)}var Eo;function Do(){return(Do=e((()=>{vo(),Za(),X(),Q(),So(),Eo=class e extends Xa{constructor(){super(Ma(10),ja(10)),this.type=Y.Log,this._limit=wo(),this._logs=this.transformer,this._pows=this.untransformer,this._domain=[1,10],this._base=10}clone(){return new e().domain(this._domain,!0).range(this._range,!0).unknown(this._unknown).clamp(this.clamp(),null,!0).interpolate(this._interpolate,!0).base(this._base)}rescale(e){if(e)return this;super.rescale();let t=Ma(this._base),n=ja(this._base);return(this._niceDomain??this._domain)[0]<0?(this._logs=Co(t),this._pows=Co(n),this._limit=To(),this.transformer=Oa,this.untransformer=ka):(this._logs=t,this._pows=n,this._limit=wo(),this.transformer=this._logs,this.untransformer=n),this}scale(e){if(e=Number(e),Number.isNaN(e)||this._domainValidator&&!this._domainValidator(e))return this._unknown;this._output||=this._piecewise((this._niceDomain??this._domain).map(this._limit).map(this.transformer),this._calculateWholeRange(this._range),this._interpolate);let t=this._output(this.transformer(this._limit(this._clamp(e))));return this._fishEyeTransform?this._fishEyeTransform(t):t}base(e,t){return arguments.length?(this._base=e,this.rescale(t)):this._base}tickFormat(){return Z}d3Ticks(e=10,t){let n=this.domain(),r=this._limit(n[0]),i=this._limit(n[n.length-1]);return ho(r,i,e,this._base,this.transformer,this.untransformer,t)}ticks(e=10){let t=this.calculateVisibleDomain(this._range);return go(this._limit(t[0]),this._limit(t[t.length-1]),e,this._base,this.transformer,this.untransformer)}forceTicks(e=10){let t=this.calculateVisibleDomain(this._range);return _o(t[0],t[t.length-1],e,this.transformer,this.untransformer)}stepTicks(e){let t=this.calculateVisibleDomain(this._range);return _o(this._limit(t[0]),this._limit(t[t.length-1]),e,this.transformer,this.untransformer)}getNiceConfig(){return{floor:e=>this._pows(Math.floor(this._logs(this._limit(e)))),ceil:e=>Math.abs(e)>=1?Math.ceil(e):this._pows(Math.ceil(this._logs(this._limit(e))))}}},Be(Eo,xo)})))()}var Oo;function ko(){return(ko=e((()=>{X(),Ka(),Oo=class extends Ga{constructor(e){super(!1),this.type=Y.Point,this._padding=0,this.paddingInner(1,e),this.padding=this.paddingOuter,this.paddingInner=void 0,this.paddingOuter=void 0}}})))()}var Ao;function jo(){return(jo=e((()=>{m(),A(),lt(),X(),Ao=class e{constructor(){this.type=Y.Threshold,this._range=[0,1],this._domain=[.5],this.n=1}unknown(e){return arguments.length?(this._unknown=e,this):this._unknown}scale(e){return!p(e)&&k(+e)?this._range[st(this._domain,e,0,this.n)]:this._unknown}invertExtent(e){let t=this._range.indexOf(e);return[this._domain[t-1],this._domain[t]]}domain(e){return e?(this._domain=Array.from(e),this.n=Math.min(this._domain.length,this._range.length-1),this):this._domain.slice()}range(e){return e?(this._range=Array.from(e),this.n=Math.min(this._domain.length,this._range.length-1),this):this._range.slice()}clone(){return new e().domain(this._domain).range(this._range).unknown(this._unknown)}}})))()}export{Fr as $,we as $n,gn as $t,zi as A,at as An,f as Ar,H as At,vi as B,Ge as Bn,En as Bt,ma as C,pt as Cn,x as Cr,ir as Ct,ra as D,ut as Dn,h as Dr,Vn as Dt,ia as E,dt as En,g as Er,Yn as Et,Oi as F,Ke as Fn,In as Ft,li as G,Pe as Gn,yn as Gt,ci as H,Be as Hn,sn as Ht,a as I,Ye as In,An as It,qr as J,Me as Jn,pn as Jt,ri as K,Ne as Kn,un as Kt,Ei as L,Ue as Ln,kn as Lt,Ii as M,ot as Mn,u as Mr,Fn as Mt,Li as N,He as Nn,l as Nr,Nn as Nt,oa as O,ct as On,m as Or,Kn as Ot,Di as P,We as Pn,V as Pt,Ir as Q,Ce as Qn,xn as Qt,o as R,qe as Rn,wn as Rt,pa as S,_t as Sn,S as Sr,tr as St,ca as T,ft as Tn,_ as Tr,Bn as Tt,di as U,Le as Un,cn as Ut,si as V,Ve as Vn,_n as Vt,ui as W,j as Wn,vn as Wt,U as X,Te as Xn,B as Xt,Jr as Y,je as Yn,I as Yt,Kr as Z,Ee as Zn,bn as Zt,_a as _,Ct as _n,T as _r,pr as _t,Eo as a,L as an,ue as ar,kr as at,ha as b,F as bn,te as br,or as bt,bo as c,zt as cn,A as cr,Cr as ct,za as d,Pt as dn,oe as dr,Sr as dt,R as en,be as er,Nr as et,Ba as f,Ot as fn,O as fr,vr as ft,X as g,St as gn,E as gr,fr as gt,Y as h,Et as hn,re as hr,yr as ht,ko as i,Cn as in,de as ir,Or as it,Bi as j,N as jn,d as jr,Mn as jt,aa as k,lt as kn,p as kr,Hn as kt,Ga as l,Bt as ln,k as lr,Tr as lt,wa as m,wt as mn,ae as mr,br as mt,jo as n,mn as nn,ye as nr,jr as nt,Do as o,Qt as on,le as or,Dr as ot,Q as p,Dt as pn,D as pr,_r as pt,ni as q,De as qn,hn as qt,Oo as r,Sn as rn,_e as rr,Mr as rt,yo as s,Zt as sn,ce as sr,wr as st,Ao as t,ln as tn,xe as tr,Pr as tt,Ka as u,Ft as un,se as ur,Er as ut,ya as v,bt as vn,w as vr,ur as vt,sa as w,mt as wn,v as wr,zn as wt,ga as x,yt as xn,ee as xr,nr as xt,va as y,xt as yn,C as yr,dr as yt,_i as z,Je as zn,Tn as zt};
|