@nasa-terra/components 0.0.60 → 0.0.63
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/cdn/chunks/{chunk.M5HLSUC4.js → chunk.22DVIRSW.js} +11 -5
- package/{dist/chunks/chunk.D63J4RKY.js → cdn/chunks/chunk.26Y3U5MM.js} +9 -1
- package/{dist/chunks/chunk.SF6MBAEP.js → cdn/chunks/chunk.2DYHCVKO.js} +9 -0
- package/cdn/chunks/{chunk.5JW7A2AO.js → chunk.2OSE5USS.js} +13 -7
- package/cdn/chunks/{chunk.UGTZ22DI.js → chunk.3AZLGGEX.js} +14 -1
- package/cdn/chunks/{chunk.EWXWRDS2.js → chunk.4IW2ACWY.js} +15 -3
- package/cdn/chunks/chunk.4JAK7DMV.js +543 -0
- package/cdn/chunks/{chunk.4BMRBQYU.js → chunk.4K5J5VBI.js} +33 -17
- package/cdn/chunks/{chunk.PRXO3ACA.js → chunk.4VO545RN.js} +9 -1
- package/cdn/chunks/chunk.5QIMPBOI.js +19 -0
- package/cdn/chunks/{chunk.G7FG7ZK3.js → chunk.5SYTJEQ5.js} +14 -8
- package/cdn/chunks/{chunk.UP75L23G.js → chunk.5WLTVPIO.js} +9 -0
- package/cdn/chunks/{chunk.JPF7QPZA.js → chunk.6CNJJQTP.js} +9 -1
- package/cdn/chunks/{chunk.4EVDB43F.js → chunk.6WGBX3KH.js} +9 -1
- package/cdn/chunks/{chunk.4XR5KYKG.js → chunk.6YECHPFP.js} +9 -1
- package/{dist/chunks/chunk.7PAVW6KC.js → cdn/chunks/chunk.75PZH4W2.js} +9 -0
- package/cdn/chunks/{chunk.2UYVNOEX.js → chunk.7GBQEWVK.js} +22 -11
- package/{dist/chunks/chunk.UVHPNM6M.js → cdn/chunks/chunk.A4UWQ65F.js} +9 -0
- package/cdn/chunks/{chunk.HHCOVVBT.js → chunk.AQODH346.js} +9 -1
- package/cdn/chunks/{chunk.27EMK3NO.js → chunk.ARB3UVS4.js} +9 -1
- package/cdn/chunks/{chunk.IB2NB35Q.js → chunk.ASDVG6ZI.js} +14 -8
- package/cdn/chunks/chunk.BVUV4BRD.js +19 -0
- package/{dist/chunks/chunk.JUSZPVPU.js → cdn/chunks/chunk.BXZTBSH6.js} +9 -0
- package/cdn/chunks/{chunk.L7JBTN32.js → chunk.BYKT2EGD.js} +23 -17
- package/{dist/chunks/chunk.THGSR7ZK.js → cdn/chunks/chunk.C37EOONU.js} +9 -1
- package/{dist/chunks/chunk.7TBQFSZ7.js → cdn/chunks/chunk.CGUQRNUM.js} +9 -0
- package/cdn/chunks/{chunk.FPSSRS2U.js → chunk.CJDWJPSB.js} +9 -1
- package/cdn/chunks/chunk.CNKZ46WT.js +120 -0
- package/{dist/chunks/chunk.LMGJJIIS.js → cdn/chunks/chunk.CRDKTZBT.js} +9 -0
- package/cdn/chunks/chunk.CUBZ2AR7.js +313 -0
- package/cdn/chunks/{chunk.QEA4QW6G.js → chunk.CUQN55UX.js} +14 -0
- package/cdn/chunks/{chunk.Y4AJWV2R.js → chunk.DCTD747F.js} +148 -7
- package/cdn/chunks/chunk.DHVLQGDF.js +19 -0
- package/cdn/chunks/{chunk.7IG2SBOL.js → chunk.DM3VIPQI.js} +21 -15
- package/cdn/chunks/{chunk.YVSJQ4KD.js → chunk.DVOLO45B.js} +15 -2
- package/cdn/chunks/{chunk.TZK42POE.js → chunk.DX5ZMKGE.js} +9 -1
- package/cdn/chunks/chunk.E3U5WMEC.js +19 -0
- package/cdn/chunks/{chunk.OXYQWR4O.js → chunk.EGZALHQH.js} +14 -1
- package/cdn/chunks/chunk.EJTR4SHJ.js +19 -0
- package/cdn/chunks/{chunk.FKLQEDIX.js → chunk.EMLDT66I.js} +16 -3
- package/cdn/chunks/{chunk.E77UOXGG.js → chunk.EMWMMMAM.js} +18 -12
- package/cdn/chunks/chunk.ES5U5CWG.js +2419 -0
- package/cdn/chunks/{chunk.HRXWS72K.js → chunk.FEPS7FE6.js} +27 -21
- package/cdn/chunks/{chunk.CGZ2SSXS.js → chunk.GJZZSGUB.js} +9 -1
- package/cdn/chunks/chunk.GL52MTKN.js +47 -0
- package/{dist/chunks/chunk.6OAPBJRP.js → cdn/chunks/chunk.GRPID3HM.js} +9 -0
- package/cdn/chunks/{chunk.7ZUIA6ZA.js → chunk.GZDS5VE4.js} +28 -22
- package/cdn/chunks/{chunk.USC76EZL.js → chunk.H2ZXIXPU.js} +9 -1
- package/cdn/chunks/{chunk.A6BUQADK.js → chunk.H66DHE62.js} +9 -1
- package/cdn/chunks/{chunk.VZ3MBFKG.js → chunk.HMS35ZFE.js} +10 -4
- package/cdn/chunks/{chunk.WTMN7OUL.js → chunk.HRMDCVXQ.js} +9 -1
- package/cdn/chunks/chunk.HTYIBTM5.js +19 -0
- package/cdn/chunks/{chunk.6NYH4BZ2.js → chunk.HWIFPU5V.js} +9 -1
- package/cdn/chunks/{chunk.CPHER7LT.js → chunk.I4WNPQOC.js} +9 -1
- package/cdn/chunks/chunk.IA4OVO6W.js +19 -0
- package/cdn/chunks/{chunk.IT573VGX.js → chunk.IAVIA55D.js} +26 -8
- package/cdn/chunks/{chunk.3WD5HVRH.js → chunk.IIGBOCK5.js} +9 -1
- package/cdn/chunks/{chunk.Y7I2RXN6.js → chunk.J4IIXP4W.js} +16 -73
- package/cdn/chunks/{chunk.GNSDRDLV.js → chunk.J7JLAL3A.js} +22 -1
- package/cdn/chunks/{chunk.2RXDDBWK.js → chunk.JFG62QF5.js} +9 -1
- package/cdn/chunks/chunk.JSME7CPI.js +10 -0
- package/cdn/chunks/{chunk.2FFSUM6T.js → chunk.KACZXI5J.js} +51 -3
- package/cdn/chunks/{chunk.RNTD3EXL.js → chunk.KAJGV2AN.js} +568 -2
- package/cdn/chunks/chunk.KSSMNIXU.js +19 -0
- package/cdn/chunks/chunk.KVZYCETT.js +19 -0
- package/cdn/chunks/{chunk.DIXBFQJX.js → chunk.L3GGJBV6.js} +18 -12
- package/{dist/chunks/chunk.SGRUM4PP.js → cdn/chunks/chunk.L6A3MX6M.js} +9 -1
- package/cdn/chunks/{chunk.Y4WP4EBM.js → chunk.LAO4X5YG.js} +9 -1
- package/cdn/chunks/{chunk.6SFH5X34.js → chunk.LHZZXITG.js} +9 -1
- package/cdn/chunks/{chunk.PQFHJHNO.js → chunk.LL3RMB25.js} +22 -1
- package/cdn/chunks/{chunk.RR4NDIRI.js → chunk.LPP5UYKA.js} +23 -12
- package/cdn/chunks/chunk.LS7CBIGK.js +28 -0
- package/cdn/chunks/chunk.LVLBJGO2.js +127 -0
- package/cdn/chunks/{chunk.KGVVCHUS.js → chunk.LZSKCTIU.js} +1226 -11
- package/cdn/chunks/{chunk.V6VKJSEK.js → chunk.M26YYT7Q.js} +135 -1
- package/cdn/chunks/{chunk.PH7RLQK2.js → chunk.M73GHNHJ.js} +12 -0
- package/{dist/chunks/chunk.W3LS5JWV.js → cdn/chunks/chunk.MFRZUWBM.js} +9 -1
- package/cdn/chunks/{chunk.BUZ22XCE.js → chunk.MH5JS2GP.js} +9 -1
- package/cdn/chunks/{chunk.6ELCJNTL.js → chunk.MLQTKEOU.js} +22 -8
- package/{dist/chunks/chunk.33NBG3NS.js → cdn/chunks/chunk.MQXVUS5F.js} +9 -1
- package/cdn/chunks/chunk.NPSNSHLT.js +19 -0
- package/cdn/chunks/chunk.O3OTPJW5.js +19 -0
- package/cdn/chunks/{chunk.QU7QA2AS.js → chunk.O7ZKAFVG.js} +35942 -36041
- package/cdn/chunks/{chunk.UBNZ4DBW.js → chunk.OCA57Y5E.js} +9 -1
- package/cdn/chunks/chunk.OI3IKRHO.js +363 -0
- package/{dist/chunks/chunk.N37CEIC7.js → cdn/chunks/chunk.PEYTSPUQ.js} +9 -1
- package/cdn/chunks/chunk.PFJNBQ5R.js +4179 -0
- package/cdn/chunks/{chunk.74Y2IRDI.js → chunk.PJUSGZQ3.js} +9 -1
- package/{dist/chunks/chunk.POIZ6HMC.js → cdn/chunks/chunk.QDG4POCM.js} +9 -1
- package/{dist/chunks/chunk.C7PQBKKC.js → cdn/chunks/chunk.QTXUVEZ6.js} +9 -1
- package/{dist/chunks/chunk.RFZFN23E.js → cdn/chunks/chunk.R7GZ7X6A.js} +9 -1
- package/cdn/chunks/{chunk.4FXB6TO3.js → chunk.RROXLGRY.js} +24 -18
- package/cdn/chunks/chunk.RY4ZS3E5.js +45676 -0
- package/cdn/chunks/{chunk.LGPLDU7J.js → chunk.RZAYZ5CG.js} +10 -4
- package/{dist/chunks/chunk.UOCDT7HQ.js → cdn/chunks/chunk.S2GS7WAM.js} +9 -0
- package/cdn/chunks/{chunk.NWVFWXWL.js → chunk.S5LWJDD7.js} +10 -4
- package/cdn/chunks/{chunk.PSAJO4PE.js → chunk.SHDK2N2Y.js} +9 -1
- package/{dist/chunks/chunk.WNKTNBGJ.js → cdn/chunks/chunk.SNX22ZUB.js} +9 -1
- package/cdn/chunks/{chunk.X33FR7YO.js → chunk.SQJ2KJ53.js} +33 -22
- package/cdn/chunks/{chunk.ETVQD7XP.js → chunk.SSB3SIB4.js} +12 -6
- package/cdn/chunks/{chunk.6WMXHA2J.js → chunk.SU2EH44I.js} +16 -3
- package/cdn/chunks/chunk.T24K5VZW.js +303 -0
- package/cdn/chunks/{chunk.ZP2W7T3J.js → chunk.T2JGMK2I.js} +10 -4
- package/cdn/chunks/chunk.TPKJOGOH.js +91 -0
- package/cdn/chunks/{chunk.P5PLRHF4.js → chunk.TU7POBNP.js} +10 -4
- package/cdn/chunks/chunk.TUBLTX7O.js +10 -0
- package/cdn/chunks/{chunk.NJTOF6ZK.js → chunk.TZ27CWAV.js} +20 -30
- package/cdn/chunks/{chunk.CEZIPRUZ.js → chunk.UPPN2BJD.js} +13 -7
- package/cdn/chunks/{chunk.2EEOIGVN.js → chunk.V732TK5F.js} +15 -9
- package/cdn/chunks/{chunk.4UXVQKZW.js → chunk.VA2DJOCU.js} +14 -8
- package/cdn/chunks/{chunk.YVG2XG3L.js → chunk.VIFKXWLG.js} +9 -1
- package/cdn/chunks/{chunk.UA5HHAYZ.js → chunk.VLR7MGN6.js} +10 -2
- package/cdn/chunks/{chunk.EKLRAB4A.js → chunk.VPJ3RWMH.js} +12 -6
- package/cdn/chunks/{chunk.262RZKG2.js → chunk.VPW32Q52.js} +21 -3
- package/cdn/chunks/{chunk.RU6G6JLS.js → chunk.WFTS65OQ.js} +9 -1
- package/cdn/chunks/{chunk.QZV6EAIM.js → chunk.WOK6C4SG.js} +8 -2
- package/cdn/chunks/{chunk.SGS66YD4.js → chunk.WX2VNPHQ.js} +73 -281
- package/cdn/chunks/chunk.XBUKV4PL.js +193 -0
- package/cdn/chunks/chunk.XIEATAX6.js +10 -0
- package/cdn/chunks/{chunk.FLRVTZ6Q.js → chunk.XPUSLKRS.js} +57 -34
- package/{dist/chunks/chunk.NQKBKXPW.js → cdn/chunks/chunk.XTPAHWLJ.js} +9 -0
- package/cdn/chunks/{chunk.XZGF7NVJ.js → chunk.XUOBHXPV.js} +8 -2
- package/cdn/chunks/{chunk.SCFJOPPV.js → chunk.XZXJLHTQ.js} +9 -1
- package/cdn/chunks/{chunk.POKHGMEN.js → chunk.Y6ERTCCJ.js} +9 -1
- package/cdn/chunks/{chunk.EPOKVQ7Z.js → chunk.YILV227S.js} +9 -1
- package/cdn/chunks/{chunk.NYEDLELY.js → chunk.YIT2FCRS.js} +9 -1
- package/cdn/chunks/{chunk.WDU7EJPA.js → chunk.YJV2CB6J.js} +9 -1
- package/{dist/chunks/chunk.KW4TJM4C.js → cdn/chunks/chunk.YP5CFEBW.js} +9 -0
- package/cdn/chunks/{chunk.NMJ34B6C.js → chunk.YSADKTSA.js} +9 -1
- package/cdn/chunks/{chunk.VHHIJXG2.js → chunk.Z2YYVPVO.js} +9 -1
- package/{dist/chunks/chunk.UCNEPIMI.js → cdn/chunks/chunk.ZAEJJQNF.js} +9 -1
- package/cdn/chunks/{chunk.6MMTW476.js → chunk.ZEDYVCUT.js} +8 -2
- package/cdn/chunks/{chunk.UMJYDWJ4.js → chunk.ZLMXPZHX.js} +17 -11
- package/cdn/chunks/decoder.MA7G6FZ4.js +26 -0
- package/cdn/chunks/deflate.BURBL2KM.js +24 -0
- package/cdn/chunks/jpeg.BO6ANV2T.js +851 -0
- package/cdn/chunks/lerc.CMWLHIF4.js +2092 -0
- package/cdn/chunks/lzw.3P5NQWCX.js +137 -0
- package/cdn/chunks/packbits.2EIRFDUE.js +39 -0
- package/cdn/chunks/raw.Q3V3F5QM.js +21 -0
- package/cdn/chunks/webimage.EYQURDYI.js +41 -0
- package/cdn/components/accordion/accordion.component.js +18 -18
- package/cdn/components/accordion/accordion.js +19 -19
- package/cdn/components/accordion/accordion.styles.js +4 -4
- package/cdn/components/alert/alert.component.js +13 -13
- package/cdn/components/alert/alert.js +14 -14
- package/cdn/components/alert/alert.styles.js +4 -4
- package/cdn/components/browse-variables/browse-variables.component.js +46 -45
- package/cdn/components/browse-variables/browse-variables.controller.js +9 -8
- package/cdn/components/browse-variables/browse-variables.js +47 -46
- package/cdn/components/browse-variables/browse-variables.styles.js +4 -4
- package/cdn/components/browse-variables/browse-variables.types.js +10 -0
- package/cdn/components/button/button.component.js +15 -15
- package/cdn/components/button/button.js +16 -16
- package/cdn/components/button/button.styles.js +4 -4
- package/cdn/components/chip/chip.component.js +11 -11
- package/cdn/components/chip/chip.js +12 -12
- package/cdn/components/chip/chip.styles.js +4 -4
- package/cdn/components/combobox/combobox.component.js +19 -19
- package/cdn/components/combobox/combobox.js +20 -20
- package/cdn/components/combobox/combobox.styles.js +4 -4
- package/cdn/components/combobox/lib.js +2 -2
- package/cdn/components/combobox/type.js +2 -2
- package/cdn/components/data-rods/data-rods.component.js +70 -65
- package/cdn/components/data-rods/data-rods.js +71 -66
- package/cdn/components/data-rods/data-rods.styles.js +4 -4
- package/cdn/components/data-subsetter/data-subsetter.component.js +57 -56
- package/cdn/components/data-subsetter/data-subsetter.controller.js +10 -9
- package/cdn/components/data-subsetter/data-subsetter.js +58 -57
- package/cdn/components/data-subsetter/data-subsetter.styles.js +4 -4
- package/cdn/components/data-subsetter-history/data-subsetter-history.component.js +62 -61
- package/cdn/components/data-subsetter-history/data-subsetter-history.controller.js +6 -6
- package/cdn/components/data-subsetter-history/data-subsetter-history.js +63 -62
- package/cdn/components/data-subsetter-history/data-subsetter-history.styles.js +4 -4
- package/cdn/components/date-picker/date-picker.component.js +17 -17
- package/cdn/components/date-picker/date-picker.js +18 -18
- package/cdn/components/date-picker/date-picker.styles.js +4 -4
- package/cdn/components/date-range-slider/date-range-slider.component.js +14 -13
- package/cdn/components/date-range-slider/date-range-slider.js +15 -14
- package/cdn/components/date-range-slider/date-range-slider.styles.js +4 -4
- package/cdn/components/date-range-slider/noui-slider-utilities.js +2 -2
- package/cdn/components/dialog/dialog.component.js +9 -9
- package/cdn/components/dialog/dialog.js +10 -10
- package/cdn/components/dialog/dialog.styles.js +4 -4
- package/cdn/components/icon/icon.component.js +16 -16
- package/cdn/components/icon/icon.js +17 -17
- package/cdn/components/icon/icon.styles.js +4 -4
- package/cdn/components/icon/library.default.js +2 -2
- package/cdn/components/icon/library.heroicons.js +3 -3
- package/cdn/components/icon/library.js +5 -5
- package/cdn/components/loader/loader.component.js +11 -11
- package/cdn/components/loader/loader.js +12 -12
- package/cdn/components/loader/loader.styles.js +4 -4
- package/cdn/components/login/login.component.js +32 -32
- package/cdn/components/login/login.js +33 -33
- package/cdn/components/login/login.styles.js +4 -4
- package/cdn/components/map/leaflet-draw.styles.js +4 -4
- package/cdn/components/map/leaflet-utils.js +4 -4
- package/cdn/components/map/leaflet.styles.js +4 -4
- package/cdn/components/map/map.component.js +19 -19
- package/cdn/components/map/map.controller.js +4 -4
- package/cdn/components/map/map.js +20 -20
- package/cdn/components/map/map.styles.js +4 -4
- package/cdn/components/map/type.js +2 -2
- package/cdn/components/plot/plot.component.js +11 -10
- package/cdn/components/plot/plot.js +12 -11
- package/cdn/components/plot/plot.styles.js +4 -4
- package/cdn/components/plot/plot.types.js +10 -0
- package/cdn/components/plot-toolbar/plot-toolbar.component.d.ts +44 -0
- package/cdn/components/plot-toolbar/plot-toolbar.component.js +33 -0
- package/cdn/components/plot-toolbar/plot-toolbar.d.ts +8 -0
- package/cdn/components/plot-toolbar/plot-toolbar.js +34 -0
- package/cdn/components/plot-toolbar/plot-toolbar.styles.d.ts +2 -0
- package/cdn/components/plot-toolbar/plot-toolbar.styles.js +9 -0
- package/cdn/components/plot-toolbar/plot-toolbar.types.d.ts +2 -0
- package/cdn/components/plot-toolbar/plot-toolbar.types.js +10 -0
- package/cdn/components/skeleton/skeleton.component.js +18 -18
- package/cdn/components/skeleton/skeleton.js +19 -19
- package/cdn/components/skeleton/skeleton.styles.js +4 -4
- package/cdn/components/spatial-picker/spatial-picker.component.js +22 -22
- package/cdn/components/spatial-picker/spatial-picker.js +23 -23
- package/cdn/components/spatial-picker/spatial-picker.styles.js +4 -4
- package/cdn/components/time-average-map/time-average-map.component.d.ts +54 -0
- package/cdn/components/time-average-map/time-average-map.component.js +46 -0
- package/cdn/components/time-average-map/time-average-map.controller.d.ts +14 -0
- package/cdn/components/time-average-map/time-average-map.controller.js +14 -0
- package/cdn/components/time-average-map/time-average-map.d.ts +8 -0
- package/cdn/components/time-average-map/time-average-map.js +47 -0
- package/cdn/components/time-average-map/time-average-map.styles.d.ts +2 -0
- package/cdn/components/time-average-map/time-average-map.styles.js +9 -0
- package/cdn/components/time-series/time-series.component.d.ts +2 -7
- package/cdn/components/time-series/time-series.component.js +45 -40
- package/cdn/components/time-series/time-series.controller.d.ts +4 -0
- package/cdn/components/time-series/time-series.controller.js +10 -8
- package/cdn/components/time-series/time-series.js +46 -41
- package/cdn/components/time-series/time-series.styles.js +4 -4
- package/cdn/components/time-series/time-series.types.d.ts +2 -1
- package/cdn/components/time-series/time-series.types.js +10 -0
- package/cdn/components/variable-combobox/lib.js +7 -7
- package/cdn/components/variable-combobox/variable-combobox.component.js +35 -35
- package/cdn/components/variable-combobox/variable-combobox.controller.js +9 -9
- package/cdn/components/variable-combobox/variable-combobox.js +36 -36
- package/cdn/components/variable-combobox/variable-combobox.styles.js +4 -4
- package/cdn/components/variable-combobox/variable-combobox.types.js +10 -0
- package/cdn/components/variable-keyword-search/lib.js +4 -4
- package/cdn/components/variable-keyword-search/variable-keyword-search.component.js +37 -36
- package/cdn/components/variable-keyword-search/variable-keyword-search.controller.js +9 -8
- package/cdn/components/variable-keyword-search/variable-keyword-search.js +38 -37
- package/cdn/components/variable-keyword-search/variable-keyword-search.styles.js +4 -4
- package/cdn/components/variable-keyword-search/variable-keyword-search.types.js +10 -0
- package/cdn/custom-elements.json +2964 -2483
- package/cdn/data-services/harmony-data-service.d.ts +4 -1
- package/cdn/internal/indexeddb.d.ts +3 -1
- package/cdn/react/index.d.ts +7 -5
- package/cdn/react/plot-toolbar/index.d.ts +18 -0
- package/cdn/react/time-average-map/index.d.ts +3 -0
- package/cdn/terra-ui-components-autoloader.js +9 -2
- package/cdn/terra-ui-components.d.ts +2 -0
- package/cdn/terra-ui-components.js +165 -133
- package/cdn/types/vue/index.d.ts +221 -144
- package/cdn/utilities/animation-registry.js +8 -2
- package/cdn/utilities/animation.js +13 -13
- package/cdn/utilities/base-path.js +2 -2
- package/cdn/utilities/date.js +3 -2
- package/cdn/utilities/debounce.js +8 -1
- package/cdn/utilities/environment.js +2 -2
- package/cdn/utilities/form.js +3 -3
- package/cdn/utilities/icon-library.js +6 -6
- package/cdn/utilities/mimetypes.js +2 -2
- package/cdn/utilities/number.js +2 -2
- package/cdn/vscode.html-custom-data.json +178 -123
- package/cdn/web-types.json +294 -191
- package/dist/chunks/{chunk.YBVWNYOE.js → chunk.2NH3CZZZ.js} +1 -1
- package/dist/chunks/{chunk.BDGTWOXZ.js → chunk.2OG44KDU.js} +3 -3
- package/dist/chunks/{chunk.ILZSIUHL.js → chunk.33A7COJE.js} +2 -2
- package/dist/chunks/{chunk.6P5DYVP4.js → chunk.33K563J6.js} +1 -1
- package/dist/chunks/{chunk.GS325B24.js → chunk.3I3EQO4P.js} +3 -3
- package/dist/chunks/{chunk.6KVL7SY6.js → chunk.4JBTWS4S.js} +3 -3
- package/dist/chunks/{chunk.53HLVNLK.js → chunk.4PNLU545.js} +1 -1
- package/dist/chunks/chunk.4Y3U4UUC.js +183 -0
- package/dist/chunks/chunk.5DSWC3KO.js +11 -0
- package/{cdn/chunks/chunk.LQSKST7H.js → dist/chunks/chunk.5ZJEHBPS.js} +1 -1
- package/{cdn/chunks/chunk.VB7OXQA4.js → dist/chunks/chunk.6JCZMTUS.js} +1 -1
- package/dist/chunks/{chunk.HN6I5KTN.js → chunk.6YCZZJMS.js} +4 -4
- package/{cdn/chunks/chunk.UCNEPIMI.js → dist/chunks/chunk.7CMA526Q.js} +1 -1
- package/dist/chunks/{chunk.UOQOJQEV.js → chunk.7DZ3HM3P.js} +7 -7
- package/dist/chunks/{chunk.DI5KLXZI.js → chunk.7SC4FDZN.js} +1 -1
- package/{cdn/chunks/chunk.MA5S2KRL.js → dist/chunks/chunk.7TIXKERN.js} +1 -1
- package/dist/chunks/{chunk.STTT6JDX.js → chunk.7VB66VZ7.js} +11 -11
- package/dist/chunks/{chunk.3LDTADZY.js → chunk.7ZMNC2EP.js} +4 -4
- package/dist/chunks/{chunk.3WQ2LN2C.js → chunk.AOSD27P6.js} +1 -1
- package/{cdn/chunks/chunk.LX7W6IJK.js → dist/chunks/chunk.B4D2PPM4.js} +1 -1
- package/dist/chunks/{chunk.XKR223PQ.js → chunk.C4BEFLFC.js} +1 -1
- package/dist/chunks/{chunk.UA5HHAYZ.js → chunk.CIFC3RF3.js} +2 -2
- package/{cdn/chunks/chunk.SQASUHBA.js → dist/chunks/chunk.CQ6QANEC.js} +1 -1
- package/dist/chunks/chunk.D3XI3L7Y.js +55 -0
- package/dist/chunks/chunk.DG3AKJA5.js +11 -0
- package/{cdn/chunks/chunk.CUL45EP2.js → dist/chunks/chunk.DLWC7HMO.js} +1 -1
- package/dist/chunks/{chunk.SQ6OBGUE.js → chunk.EBJMNY5T.js} +1 -1
- package/dist/chunks/{chunk.K2IRF2QI.js → chunk.EC75KAKW.js} +6 -71
- package/dist/chunks/{chunk.ULQFQZHD.js → chunk.F2OKKGLF.js} +3 -3
- package/{cdn/chunks/chunk.LOSHZOGY.js → dist/chunks/chunk.FIBIMNRL.js} +1 -1
- package/dist/chunks/{chunk.PP2ELNGF.js → chunk.GCYVF6CT.js} +14 -14
- package/dist/chunks/{chunk.YENFFQDG.js → chunk.GHLTJYR4.js} +7 -7
- package/dist/chunks/{chunk.SLAI5FTD.js → chunk.GJVQB4BQ.js} +1 -1
- package/{cdn/chunks/chunk.KRO4ARQY.js → dist/chunks/chunk.GWQS2AWR.js} +1 -1
- package/dist/chunks/{chunk.MFZOXXZG.js → chunk.GXQRUGWI.js} +1 -1
- package/dist/chunks/{chunk.OPIEMOCR.js → chunk.IAA33R4X.js} +1 -1
- package/dist/chunks/chunk.JG4TFF7B.js +346 -0
- package/dist/chunks/{chunk.IYRLNGLM.js → chunk.JI5K6CEP.js} +7 -7
- package/dist/chunks/{chunk.IJCCUYTL.js → chunk.JL6YLQX2.js} +5 -5
- package/{cdn/chunks/chunk.LZ6ES3TI.js → dist/chunks/chunk.JY5KBXRE.js} +1 -1
- package/dist/chunks/{chunk.JJVTBGOK.js → chunk.KASQMBBH.js} +39 -32
- package/dist/chunks/chunk.KBQJ4D62.js +525 -0
- package/dist/chunks/{chunk.LFZXSVJS.js → chunk.KLCOAQUS.js} +1 -1
- package/dist/chunks/{chunk.CBH2YLFF.js → chunk.M54W77XC.js} +1 -1
- package/dist/chunks/{chunk.TIGYHXP4.js → chunk.NAA57UPM.js} +3 -3
- package/dist/chunks/{chunk.T5KI6OSN.js → chunk.NRHBJXFN.js} +7 -7
- package/{cdn/chunks/chunk.MLS2KGHX.js → dist/chunks/chunk.O2C2SVB7.js} +1 -1
- package/dist/chunks/{chunk.5TAH6C7E.js → chunk.PB42J5AM.js} +1 -1
- package/dist/chunks/chunk.PMFGHKD2.js +233 -0
- package/{cdn/chunks/chunk.BWBTQSTN.js → dist/chunks/chunk.QKCMDBKR.js} +1 -1
- package/dist/chunks/{chunk.UZLE6KVI.js → chunk.QOTILAAM.js} +11 -11
- package/dist/chunks/chunk.QQQ2BD4U.js +80 -0
- package/dist/chunks/{chunk.FKXB7XEU.js → chunk.RUGT5ALL.js} +4 -4
- package/dist/chunks/{chunk.VSAGY2NW.js → chunk.SIDRHQTB.js} +8 -8
- package/dist/chunks/{chunk.3XSH7MTP.js → chunk.SMJTK25M.js} +14 -14
- package/{cdn/chunks/chunk.ALG7FPS2.js → dist/chunks/chunk.SQVBCWKL.js} +1 -1
- package/dist/chunks/{chunk.DZKJA55J.js → chunk.U2R5JB5O.js} +2 -2
- package/dist/chunks/{chunk.2HPFAVOM.js → chunk.UK6REENS.js} +1 -1
- package/{cdn/chunks/chunk.2NMWP5DN.js → dist/chunks/chunk.US6MRVQM.js} +1 -1
- package/dist/chunks/{chunk.ZBDETE57.js → chunk.USQFNMWY.js} +2 -2
- package/dist/chunks/{chunk.GOAMZCJ6.js → chunk.UWIX5KQU.js} +18 -18
- package/dist/chunks/{chunk.JTV3QJGO.js → chunk.VKDQZEQL.js} +6 -6
- package/dist/chunks/chunk.VSZLMYWV.js +17 -0
- package/{cdn/chunks/chunk.Z5MRKTNC.js → dist/chunks/chunk.XGEV5XZS.js} +1 -1
- package/dist/chunks/{chunk.2DQS7YWJ.js → chunk.XJVLYIYE.js} +1 -1
- package/dist/chunks/{chunk.MWPGY5IJ.js → chunk.XS6RC2OD.js} +4 -4
- package/{cdn/chunks/chunk.R3H34254.js → dist/chunks/chunk.YKP2DA36.js} +1 -1
- package/dist/chunks/{chunk.Y4ZIWIQM.js → chunk.ZGSDVAHX.js} +51 -43
- package/{cdn/chunks/chunk.LJE2IVXS.js → dist/chunks/chunk.ZY3XITMC.js} +1 -1
- package/dist/components/accordion/accordion.component.js +12 -12
- package/dist/components/accordion/accordion.js +13 -13
- package/dist/components/accordion/accordion.styles.js +1 -1
- package/dist/components/alert/alert.component.js +7 -7
- package/dist/components/alert/alert.js +8 -8
- package/dist/components/alert/alert.styles.js +1 -1
- package/dist/components/browse-variables/browse-variables.component.js +31 -31
- package/dist/components/browse-variables/browse-variables.controller.js +5 -5
- package/dist/components/browse-variables/browse-variables.js +32 -32
- package/dist/components/browse-variables/browse-variables.styles.js +1 -1
- package/dist/components/button/button.component.js +8 -8
- package/dist/components/button/button.js +9 -9
- package/dist/components/button/button.styles.js +1 -1
- package/dist/components/chip/chip.component.js +5 -5
- package/dist/components/chip/chip.js +6 -6
- package/dist/components/chip/chip.styles.js +1 -1
- package/dist/components/combobox/combobox.component.js +8 -8
- package/dist/components/combobox/combobox.js +9 -9
- package/dist/components/combobox/combobox.styles.js +1 -1
- package/dist/components/combobox/lib.js +1 -1
- package/dist/components/combobox/type.js +1 -1
- package/dist/components/data-rods/data-rods.component.js +52 -49
- package/dist/components/data-rods/data-rods.js +53 -50
- package/dist/components/data-rods/data-rods.styles.js +1 -1
- package/dist/components/data-subsetter/data-subsetter.component.js +43 -43
- package/dist/components/data-subsetter/data-subsetter.controller.js +5 -5
- package/dist/components/data-subsetter/data-subsetter.js +44 -44
- package/dist/components/data-subsetter/data-subsetter.styles.js +1 -1
- package/dist/components/data-subsetter-history/data-subsetter-history.component.js +48 -48
- package/dist/components/data-subsetter-history/data-subsetter-history.controller.js +3 -3
- package/dist/components/data-subsetter-history/data-subsetter-history.js +49 -49
- package/dist/components/data-subsetter-history/data-subsetter-history.styles.js +1 -1
- package/dist/components/date-picker/date-picker.component.js +10 -10
- package/dist/components/date-picker/date-picker.js +11 -11
- package/dist/components/date-picker/date-picker.styles.js +1 -1
- package/dist/components/date-range-slider/date-range-slider.component.js +8 -8
- package/dist/components/date-range-slider/date-range-slider.js +9 -9
- package/dist/components/date-range-slider/date-range-slider.styles.js +1 -1
- package/dist/components/date-range-slider/noui-slider-utilities.js +1 -1
- package/dist/components/dialog/dialog.component.js +5 -5
- package/dist/components/dialog/dialog.js +6 -6
- package/dist/components/dialog/dialog.styles.js +1 -1
- package/dist/components/icon/icon.component.js +10 -10
- package/dist/components/icon/icon.js +11 -11
- package/dist/components/icon/icon.styles.js +1 -1
- package/dist/components/icon/library.default.js +1 -1
- package/dist/components/icon/library.heroicons.js +2 -2
- package/dist/components/icon/library.js +4 -4
- package/dist/components/loader/loader.component.js +5 -5
- package/dist/components/loader/loader.js +6 -6
- package/dist/components/loader/loader.styles.js +1 -1
- package/dist/components/login/login.component.js +22 -22
- package/dist/components/login/login.js +23 -23
- package/dist/components/login/login.styles.js +1 -1
- package/dist/components/map/leaflet-draw.styles.js +1 -1
- package/dist/components/map/leaflet-utils.js +3 -3
- package/dist/components/map/leaflet.styles.js +1 -1
- package/dist/components/map/map.component.js +11 -11
- package/dist/components/map/map.controller.js +3 -3
- package/dist/components/map/map.js +12 -12
- package/dist/components/map/map.styles.js +1 -1
- package/dist/components/map/type.js +1 -1
- package/dist/components/plot/plot.component.js +6 -6
- package/dist/components/plot/plot.js +7 -7
- package/dist/components/plot/plot.styles.js +1 -1
- package/dist/components/plot-toolbar/plot-toolbar.component.d.ts +44 -0
- package/dist/components/plot-toolbar/plot-toolbar.component.js +23 -0
- package/dist/components/plot-toolbar/plot-toolbar.d.ts +8 -0
- package/dist/components/plot-toolbar/plot-toolbar.js +24 -0
- package/dist/components/plot-toolbar/plot-toolbar.styles.d.ts +2 -0
- package/dist/components/plot-toolbar/plot-toolbar.styles.js +7 -0
- package/dist/components/plot-toolbar/plot-toolbar.types.d.ts +2 -0
- package/dist/components/skeleton/skeleton.component.js +6 -6
- package/dist/components/skeleton/skeleton.js +7 -7
- package/dist/components/skeleton/skeleton.styles.js +1 -1
- package/dist/components/spatial-picker/spatial-picker.component.js +14 -14
- package/dist/components/spatial-picker/spatial-picker.js +15 -15
- package/dist/components/spatial-picker/spatial-picker.styles.js +1 -1
- package/dist/components/time-average-map/time-average-map.component.d.ts +54 -0
- package/dist/components/time-average-map/time-average-map.component.js +31 -0
- package/dist/components/time-average-map/time-average-map.controller.d.ts +14 -0
- package/dist/components/time-average-map/time-average-map.controller.js +10 -0
- package/dist/components/time-average-map/time-average-map.d.ts +8 -0
- package/dist/components/time-average-map/time-average-map.js +32 -0
- package/dist/components/time-average-map/time-average-map.styles.d.ts +2 -0
- package/dist/components/time-average-map/time-average-map.styles.js +7 -0
- package/dist/components/time-series/time-series.component.d.ts +2 -7
- package/dist/components/time-series/time-series.component.js +31 -28
- package/dist/components/time-series/time-series.controller.d.ts +4 -0
- package/dist/components/time-series/time-series.controller.js +5 -4
- package/dist/components/time-series/time-series.js +32 -29
- package/dist/components/time-series/time-series.styles.js +1 -1
- package/dist/components/time-series/time-series.types.d.ts +2 -1
- package/dist/components/variable-combobox/lib.js +1 -1
- package/dist/components/variable-combobox/variable-combobox.component.js +20 -20
- package/dist/components/variable-combobox/variable-combobox.controller.js +2 -2
- package/dist/components/variable-combobox/variable-combobox.js +21 -21
- package/dist/components/variable-combobox/variable-combobox.styles.js +1 -1
- package/dist/components/variable-keyword-search/lib.js +1 -1
- package/dist/components/variable-keyword-search/variable-keyword-search.component.js +23 -23
- package/dist/components/variable-keyword-search/variable-keyword-search.controller.js +5 -5
- package/dist/components/variable-keyword-search/variable-keyword-search.js +24 -24
- package/dist/components/variable-keyword-search/variable-keyword-search.styles.js +1 -1
- package/dist/custom-elements.json +2964 -2483
- package/dist/data-services/harmony-data-service.d.ts +4 -1
- package/dist/internal/indexeddb.d.ts +3 -1
- package/dist/react/index.d.ts +7 -5
- package/dist/react/plot-toolbar/index.d.ts +18 -0
- package/dist/react/time-average-map/index.d.ts +3 -0
- package/dist/terra-ui-components-autoloader.js +1 -1
- package/dist/terra-ui-components.d.ts +2 -0
- package/dist/terra-ui-components.js +131 -117
- package/dist/{terra_ui_components-0.0.60-py3-none-any.whl → terra_ui_components-0.0.63-py3-none-any.whl} +0 -0
- package/dist/{terra_ui_components-0.0.60.tar.gz → terra_ui_components-0.0.63.tar.gz} +0 -0
- package/dist/types/vue/index.d.ts +221 -144
- package/dist/utilities/animation.js +1 -1
- package/dist/utilities/base-path.js +1 -1
- package/dist/utilities/date.js +1 -1
- package/dist/utilities/environment.js +1 -1
- package/dist/utilities/form.js +2 -2
- package/dist/utilities/icon-library.js +5 -5
- package/dist/utilities/mimetypes.js +1 -1
- package/dist/utilities/number.js +1 -1
- package/dist/vscode.html-custom-data.json +178 -123
- package/dist/web-types.json +294 -191
- package/package.json +4 -1
- package/cdn/chunks/chunk.2GMGCJJK.js +0 -751
- package/cdn/chunks/chunk.3VHYPNST.js +0 -11
- package/cdn/chunks/chunk.5EZ7BYHN.js +0 -24
- package/cdn/chunks/chunk.5YJRETV3.js +0 -21
- package/cdn/chunks/chunk.6JHIJHTB.js +0 -169
- package/cdn/chunks/chunk.BAKIP5PM.js +0 -21
- package/cdn/chunks/chunk.BDCGULKT.js +0 -24
- package/cdn/chunks/chunk.BJIE3PUY.js +0 -21
- package/cdn/chunks/chunk.CNJFQ6NQ.js +0 -21
- package/cdn/chunks/chunk.EPCDCLIV.js +0 -21
- package/cdn/chunks/chunk.EPFPY5X6.js +0 -21
- package/cdn/chunks/chunk.EXXCASW2.js +0 -21
- package/cdn/chunks/chunk.GIZVNXLK.js +0 -21
- package/cdn/chunks/chunk.GLVCGIR5.js +0 -21
- package/cdn/chunks/chunk.GROHXUKG.js +0 -11
- package/cdn/chunks/chunk.J3UZQNWY.js +0 -11
- package/cdn/chunks/chunk.L6OWRJCA.js +0 -25
- package/cdn/chunks/chunk.LXEECKS5.js +0 -21
- package/cdn/chunks/chunk.M23YOO6N.js +0 -21
- package/cdn/chunks/chunk.OT5GATLX.js +0 -25
- package/cdn/chunks/chunk.PRDCTJZW.js +0 -24
- package/cdn/chunks/chunk.S64CALLW.js +0 -24
- package/cdn/chunks/chunk.UGOGPJIK.js +0 -25
- package/cdn/chunks/chunk.UL5CQLQS.js +0 -21
- package/cdn/chunks/chunk.VGYMGE2W.js +0 -24
- package/cdn/chunks/chunk.VORUJ5MH.js +0 -0
- package/cdn/chunks/chunk.XMNR4RWY.js +0 -27
- package/cdn/chunks/chunk.XVB3T3VG.js +0 -25
- package/cdn/react/accordion/index.js +0 -24
- package/cdn/react/alert/index.js +0 -19
- package/cdn/react/browse-variables/index.js +0 -51
- package/cdn/react/button/index.js +0 -21
- package/cdn/react/chip/index.js +0 -17
- package/cdn/react/combobox/index.js +0 -25
- package/cdn/react/data-rods/index.js +0 -71
- package/cdn/react/data-subsetter/index.js +0 -62
- package/cdn/react/data-subsetter-history/index.js +0 -67
- package/cdn/react/date-picker/index.js +0 -23
- package/cdn/react/date-range-slider/index.js +0 -19
- package/cdn/react/dialog/index.js +0 -15
- package/cdn/react/icon/index.js +0 -22
- package/cdn/react/index.js +0 -188
- package/cdn/react/loader/index.js +0 -17
- package/cdn/react/login/index.js +0 -38
- package/cdn/react/map/index.js +0 -25
- package/cdn/react/plot/index.js +0 -16
- package/cdn/react/skeleton/index.js +0 -24
- package/cdn/react/spatial-picker/index.js +0 -28
- package/cdn/react/time-series/index.js +0 -46
- package/cdn/react/variable-combobox/index.js +0 -41
- package/cdn/react/variable-keyword-search/index.js +0 -42
- package/dist/chunks/chunk.2ONCBUXN.js +0 -21
- package/dist/chunks/chunk.4AE6ZL4V.js +0 -25
- package/dist/chunks/chunk.6C6EVLA7.js +0 -25
- package/dist/chunks/chunk.6GGCQUNA.js +0 -24
- package/dist/chunks/chunk.6R4564BD.js +0 -24
- package/dist/chunks/chunk.73YL47RN.js +0 -11
- package/dist/chunks/chunk.7PELJQ4O.js +0 -24
- package/dist/chunks/chunk.A67Q6UBQ.js +0 -21
- package/dist/chunks/chunk.AGNOMHH2.js +0 -11
- package/dist/chunks/chunk.B2EAMHKB.js +0 -21
- package/dist/chunks/chunk.EKB26QUP.js +0 -11
- package/dist/chunks/chunk.ERBWKL4Y.js +0 -25
- package/dist/chunks/chunk.GICLLJNS.js +0 -11
- package/dist/chunks/chunk.HAL7R4WT.js +0 -0
- package/dist/chunks/chunk.I22H5V53.js +0 -24
- package/dist/chunks/chunk.IFY6FGEC.js +0 -738
- package/dist/chunks/chunk.JWQWJXCC.js +0 -21
- package/dist/chunks/chunk.KBLRBVBP.js +0 -21
- package/dist/chunks/chunk.KLXT6L4L.js +0 -21
- package/dist/chunks/chunk.LOZBU57W.js +0 -11
- package/dist/chunks/chunk.MBFLLBV5.js +0 -11
- package/dist/chunks/chunk.MJB3C5KB.js +0 -24
- package/dist/chunks/chunk.NAL75PTO.js +0 -27
- package/dist/chunks/chunk.NLAIKPFK.js +0 -21
- package/dist/chunks/chunk.OVWYJYRM.js +0 -25
- package/dist/chunks/chunk.QHQSRPID.js +0 -21
- package/dist/chunks/chunk.QYNQGA2I.js +0 -21
- package/dist/chunks/chunk.T7DGNPEJ.js +0 -21
- package/dist/chunks/chunk.UDMUW7XK.js +0 -21
- package/dist/chunks/chunk.YH76EU7C.js +0 -21
- package/dist/react/accordion/index.js +0 -19
- package/dist/react/alert/index.js +0 -14
- package/dist/react/browse-variables/index.js +0 -38
- package/dist/react/button/index.js +0 -15
- package/dist/react/chip/index.js +0 -12
- package/dist/react/combobox/index.js +0 -15
- package/dist/react/data-rods/index.js +0 -56
- package/dist/react/data-subsetter/index.js +0 -50
- package/dist/react/data-subsetter-history/index.js +0 -55
- package/dist/react/date-picker/index.js +0 -17
- package/dist/react/date-range-slider/index.js +0 -15
- package/dist/react/dialog/index.js +0 -12
- package/dist/react/icon/index.js +0 -17
- package/dist/react/index.js +0 -172
- package/dist/react/loader/index.js +0 -12
- package/dist/react/login/index.js +0 -29
- package/dist/react/map/index.js +0 -18
- package/dist/react/plot/index.js +0 -13
- package/dist/react/skeleton/index.js +0 -13
- package/dist/react/spatial-picker/index.js +0 -21
- package/dist/react/time-series/index.js +0 -35
- package/dist/react/variable-combobox/index.js +0 -27
- package/dist/react/variable-keyword-search/index.js +0 -30
- /package/{cdn/chunks/chunk.UVHPNM6M.js → dist/chunks/chunk.2EYRPHGL.js} +0 -0
- /package/dist/chunks/{chunk.7OKJDEHN.js → chunk.3GLMJLNY.js} +0 -0
- /package/dist/chunks/{chunk.OPPQDVNB.js → chunk.3PUTIFOP.js} +0 -0
- /package/dist/chunks/{chunk.P442U2FF.js → chunk.445A7YVG.js} +0 -0
- /package/{cdn/chunks/chunk.SF6MBAEP.js → dist/chunks/chunk.4MGGBJBD.js} +0 -0
- /package/dist/chunks/{chunk.BVX3SO2F.js → chunk.5ASTHFQ2.js} +0 -0
- /package/dist/chunks/{chunk.V3YFBP3T.js → chunk.6KIVAUVU.js} +0 -0
- /package/dist/chunks/{chunk.AHWPUTXC.js → chunk.7674U7FT.js} +0 -0
- /package/dist/chunks/{chunk.62YHGVQN.js → chunk.7AEQ2LX4.js} +0 -0
- /package/dist/chunks/{chunk.N7J6PIAG.js → chunk.AQOGDZ4T.js} +0 -0
- /package/{cdn/chunks/chunk.UOCDT7HQ.js → dist/chunks/chunk.AZXB7ZHM.js} +0 -0
- /package/dist/chunks/{chunk.GR7XHOA3.js → chunk.BEDYDFXT.js} +0 -0
- /package/dist/chunks/{chunk.AUB6SKUI.js → chunk.D3DPGMVW.js} +0 -0
- /package/dist/chunks/{chunk.SK7IZCKP.js → chunk.DTUHBE3U.js} +0 -0
- /package/{cdn/chunks/chunk.HAL7R4WT.js → dist/chunks/chunk.E2WXLMWX.js} +0 -0
- /package/dist/chunks/{chunk.PR33FDVP.js → chunk.EKUWLBOP.js} +0 -0
- /package/{cdn/chunks/chunk.7TBQFSZ7.js → dist/chunks/chunk.F3KBUEPT.js} +0 -0
- /package/dist/chunks/{chunk.DLDCSRJP.js → chunk.F5AEDYTP.js} +0 -0
- /package/dist/chunks/{chunk.HJGC45MW.js → chunk.FRSW4UHB.js} +0 -0
- /package/{cdn/chunks/chunk.LMGJJIIS.js → dist/chunks/chunk.FUU57PWY.js} +0 -0
- /package/dist/chunks/{chunk.FBOXM56P.js → chunk.G6SMK5II.js} +0 -0
- /package/dist/chunks/{chunk.MGW33V5Q.js → chunk.GRGSTMOZ.js} +0 -0
- /package/dist/chunks/{chunk.LELNKRPW.js → chunk.HNQMK3PU.js} +0 -0
- /package/{cdn/chunks/chunk.6OAPBJRP.js → dist/chunks/chunk.HWZP2UTW.js} +0 -0
- /package/dist/chunks/{chunk.B5THO3EV.js → chunk.IC4T7CZD.js} +0 -0
- /package/dist/chunks/{chunk.7VUSSQRI.js → chunk.KUSRVQBO.js} +0 -0
- /package/{cdn/chunks/chunk.KW4TJM4C.js → dist/chunks/chunk.L63WM7I3.js} +0 -0
- /package/dist/chunks/{chunk.Z3GLEDYM.js → chunk.MQOXBVDK.js} +0 -0
- /package/dist/chunks/{chunk.DNBZHQCS.js → chunk.NMWP5DQX.js} +0 -0
- /package/{cdn/chunks/chunk.NQKBKXPW.js → dist/chunks/chunk.PBC3S6IG.js} +0 -0
- /package/dist/chunks/{chunk.2YRBHDWM.js → chunk.SGFD3ORP.js} +0 -0
- /package/dist/chunks/{chunk.24GW2RSV.js → chunk.TCEJ3MS6.js} +0 -0
- /package/{cdn/chunks/chunk.7PAVW6KC.js → dist/chunks/chunk.UZAIWUWC.js} +0 -0
- /package/dist/chunks/{chunk.7WL3WWGJ.js → chunk.V2Z7ZBTD.js} +0 -0
- /package/{cdn/chunks/chunk.JUSZPVPU.js → dist/chunks/chunk.V3EFWONT.js} +0 -0
- /package/dist/chunks/{chunk.KAV5L6Z5.js → chunk.V7LXD3II.js} +0 -0
- /package/dist/chunks/{chunk.2V4XFMTB.js → chunk.WJL4R4O2.js} +0 -0
- /package/dist/chunks/{chunk.KZ3ISS6V.js → chunk.XOD4KYCP.js} +0 -0
- /package/dist/chunks/{chunk.TQWLVZHQ.js → chunk.XZB6CNAL.js} +0 -0
- /package/dist/chunks/{chunk.3WKUS32S.js → chunk.YXLIUMJM.js} +0 -0
- /package/dist/chunks/{chunk.DW23TAF4.js → chunk.YY65ZHR5.js} +0 -0
- /package/dist/chunks/{chunk.APJOA6RL.js → chunk.Z4S5QPB7.js} +0 -0
- /package/{cdn/chunks/chunk.QL5C2XOW.js → dist/components/plot-toolbar/plot-toolbar.types.js} +0 -0
|
@@ -0,0 +1,2419 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __defProps = Object.defineProperties;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
9
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
10
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
11
|
+
var __knownSymbol = (name, symbol) => {
|
|
12
|
+
return (symbol = Symbol[name]) ? symbol : Symbol.for("Symbol." + name);
|
|
13
|
+
};
|
|
14
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
15
|
+
var __spreadValues = (a, b) => {
|
|
16
|
+
for (var prop in b || (b = {}))
|
|
17
|
+
if (__hasOwnProp.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
if (__getOwnPropSymbols)
|
|
20
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
21
|
+
if (__propIsEnum.call(b, prop))
|
|
22
|
+
__defNormalProp(a, prop, b[prop]);
|
|
23
|
+
}
|
|
24
|
+
return a;
|
|
25
|
+
};
|
|
26
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
27
|
+
var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
|
|
28
|
+
get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
|
|
29
|
+
}) : x)(function(x) {
|
|
30
|
+
if (typeof require !== "undefined")
|
|
31
|
+
return require.apply(this, arguments);
|
|
32
|
+
throw Error('Dynamic require of "' + x + '" is not supported');
|
|
33
|
+
});
|
|
34
|
+
var __restKey = (key) => typeof key === "symbol" ? key : key + "";
|
|
35
|
+
var __objRest = (source, exclude) => {
|
|
36
|
+
var target = {};
|
|
37
|
+
for (var prop in source)
|
|
38
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
39
|
+
target[prop] = source[prop];
|
|
40
|
+
if (source != null && __getOwnPropSymbols)
|
|
41
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
42
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
43
|
+
target[prop] = source[prop];
|
|
44
|
+
}
|
|
45
|
+
return target;
|
|
46
|
+
};
|
|
47
|
+
var __esm = (fn, res) => function __init() {
|
|
48
|
+
return fn && (res = (0, fn[__getOwnPropNames(fn)[0]])(fn = 0)), res;
|
|
49
|
+
};
|
|
50
|
+
var __commonJS = (cb, mod) => function __require2() {
|
|
51
|
+
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
52
|
+
};
|
|
53
|
+
var __export = (target, all) => {
|
|
54
|
+
for (var name in all)
|
|
55
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
56
|
+
};
|
|
57
|
+
var __copyProps = (to, from, except, desc) => {
|
|
58
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
59
|
+
for (let key of __getOwnPropNames(from))
|
|
60
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
61
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
62
|
+
}
|
|
63
|
+
return to;
|
|
64
|
+
};
|
|
65
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
66
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
67
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
68
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
69
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
70
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
71
|
+
mod
|
|
72
|
+
));
|
|
73
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
74
|
+
var result = kind > 1 ? void 0 : kind ? __getOwnPropDesc(target, key) : target;
|
|
75
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
76
|
+
if (decorator = decorators[i])
|
|
77
|
+
result = (kind ? decorator(target, key, result) : decorator(result)) || result;
|
|
78
|
+
if (kind && result)
|
|
79
|
+
__defProp(target, key, result);
|
|
80
|
+
return result;
|
|
81
|
+
};
|
|
82
|
+
var __accessCheck = (obj, member, msg) => {
|
|
83
|
+
if (!member.has(obj))
|
|
84
|
+
throw TypeError("Cannot " + msg);
|
|
85
|
+
};
|
|
86
|
+
var __privateGet = (obj, member, getter) => {
|
|
87
|
+
__accessCheck(obj, member, "read from private field");
|
|
88
|
+
return getter ? getter.call(obj) : member.get(obj);
|
|
89
|
+
};
|
|
90
|
+
var __privateAdd = (obj, member, value) => {
|
|
91
|
+
if (member.has(obj))
|
|
92
|
+
throw TypeError("Cannot add the same private member more than once");
|
|
93
|
+
member instanceof WeakSet ? member.add(obj) : member.set(obj, value);
|
|
94
|
+
};
|
|
95
|
+
var __privateSet = (obj, member, value, setter) => {
|
|
96
|
+
__accessCheck(obj, member, "write to private field");
|
|
97
|
+
setter ? setter.call(obj, value) : member.set(obj, value);
|
|
98
|
+
return value;
|
|
99
|
+
};
|
|
100
|
+
var __privateMethod = (obj, member, method) => {
|
|
101
|
+
__accessCheck(obj, member, "access private method");
|
|
102
|
+
return method;
|
|
103
|
+
};
|
|
104
|
+
var __await = function(promise, isYieldStar) {
|
|
105
|
+
this[0] = promise;
|
|
106
|
+
this[1] = isYieldStar;
|
|
107
|
+
};
|
|
108
|
+
var __asyncGenerator = (__this, __arguments, generator) => {
|
|
109
|
+
var resume = (k, v, yes, no) => {
|
|
110
|
+
try {
|
|
111
|
+
var x = generator[k](v), isAwait = (v = x.value) instanceof __await, done = x.done;
|
|
112
|
+
Promise.resolve(isAwait ? v[0] : v).then((y) => isAwait ? resume(k === "return" ? k : "next", v[1] ? { done: y.done, value: y.value } : y, yes, no) : yes({ value: y, done })).catch((e) => resume("throw", e, yes, no));
|
|
113
|
+
} catch (e) {
|
|
114
|
+
no(e);
|
|
115
|
+
}
|
|
116
|
+
};
|
|
117
|
+
var method = (k) => it[k] = (x) => new Promise((yes, no) => resume(k, x, yes, no));
|
|
118
|
+
var it = {};
|
|
119
|
+
return generator = generator.apply(__this, __arguments), it[__knownSymbol("asyncIterator")] = () => it, method("next"), method("throw"), method("return"), it;
|
|
120
|
+
};
|
|
121
|
+
var __yieldStar = (value) => {
|
|
122
|
+
var obj = value[__knownSymbol("asyncIterator")];
|
|
123
|
+
var isAwait = false;
|
|
124
|
+
var method;
|
|
125
|
+
var it = {};
|
|
126
|
+
if (obj == null) {
|
|
127
|
+
obj = value[__knownSymbol("iterator")]();
|
|
128
|
+
method = (k) => it[k] = (x) => obj[k](x);
|
|
129
|
+
} else {
|
|
130
|
+
obj = obj.call(value);
|
|
131
|
+
method = (k) => it[k] = (v) => {
|
|
132
|
+
if (isAwait) {
|
|
133
|
+
isAwait = false;
|
|
134
|
+
if (k === "throw")
|
|
135
|
+
throw v;
|
|
136
|
+
return v;
|
|
137
|
+
}
|
|
138
|
+
isAwait = true;
|
|
139
|
+
return {
|
|
140
|
+
done: false,
|
|
141
|
+
value: new __await(new Promise((resolve) => {
|
|
142
|
+
var x = obj[k](v);
|
|
143
|
+
if (!(x instanceof Object))
|
|
144
|
+
throw TypeError("Object expected");
|
|
145
|
+
resolve(x);
|
|
146
|
+
}), 1)
|
|
147
|
+
};
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
return it[__knownSymbol("iterator")] = () => it, method("next"), "throw" in obj ? method("throw") : it.throw = (x) => {
|
|
151
|
+
throw x;
|
|
152
|
+
}, "return" in obj && method("return"), it;
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
// node_modules/esbuild-plugin-polyfill-node/polyfills/__dirname.js
|
|
156
|
+
var init_dirname = __esm({
|
|
157
|
+
"node_modules/esbuild-plugin-polyfill-node/polyfills/__dirname.js"() {
|
|
158
|
+
}
|
|
159
|
+
});
|
|
160
|
+
|
|
161
|
+
// node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js
|
|
162
|
+
function dew$2() {
|
|
163
|
+
if (_dewExec$2)
|
|
164
|
+
return exports$2;
|
|
165
|
+
_dewExec$2 = true;
|
|
166
|
+
exports$2.byteLength = byteLength;
|
|
167
|
+
exports$2.toByteArray = toByteArray;
|
|
168
|
+
exports$2.fromByteArray = fromByteArray;
|
|
169
|
+
var lookup = [];
|
|
170
|
+
var revLookup = [];
|
|
171
|
+
var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
172
|
+
var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
173
|
+
for (var i = 0, len = code.length; i < len; ++i) {
|
|
174
|
+
lookup[i] = code[i];
|
|
175
|
+
revLookup[code.charCodeAt(i)] = i;
|
|
176
|
+
}
|
|
177
|
+
revLookup["-".charCodeAt(0)] = 62;
|
|
178
|
+
revLookup["_".charCodeAt(0)] = 63;
|
|
179
|
+
function getLens(b64) {
|
|
180
|
+
var len2 = b64.length;
|
|
181
|
+
if (len2 % 4 > 0) {
|
|
182
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
183
|
+
}
|
|
184
|
+
var validLen = b64.indexOf("=");
|
|
185
|
+
if (validLen === -1)
|
|
186
|
+
validLen = len2;
|
|
187
|
+
var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
|
|
188
|
+
return [validLen, placeHoldersLen];
|
|
189
|
+
}
|
|
190
|
+
function byteLength(b64) {
|
|
191
|
+
var lens = getLens(b64);
|
|
192
|
+
var validLen = lens[0];
|
|
193
|
+
var placeHoldersLen = lens[1];
|
|
194
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
195
|
+
}
|
|
196
|
+
function _byteLength(b64, validLen, placeHoldersLen) {
|
|
197
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
198
|
+
}
|
|
199
|
+
function toByteArray(b64) {
|
|
200
|
+
var tmp;
|
|
201
|
+
var lens = getLens(b64);
|
|
202
|
+
var validLen = lens[0];
|
|
203
|
+
var placeHoldersLen = lens[1];
|
|
204
|
+
var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
|
|
205
|
+
var curByte = 0;
|
|
206
|
+
var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen;
|
|
207
|
+
var i2;
|
|
208
|
+
for (i2 = 0; i2 < len2; i2 += 4) {
|
|
209
|
+
tmp = revLookup[b64.charCodeAt(i2)] << 18 | revLookup[b64.charCodeAt(i2 + 1)] << 12 | revLookup[b64.charCodeAt(i2 + 2)] << 6 | revLookup[b64.charCodeAt(i2 + 3)];
|
|
210
|
+
arr[curByte++] = tmp >> 16 & 255;
|
|
211
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
212
|
+
arr[curByte++] = tmp & 255;
|
|
213
|
+
}
|
|
214
|
+
if (placeHoldersLen === 2) {
|
|
215
|
+
tmp = revLookup[b64.charCodeAt(i2)] << 2 | revLookup[b64.charCodeAt(i2 + 1)] >> 4;
|
|
216
|
+
arr[curByte++] = tmp & 255;
|
|
217
|
+
}
|
|
218
|
+
if (placeHoldersLen === 1) {
|
|
219
|
+
tmp = revLookup[b64.charCodeAt(i2)] << 10 | revLookup[b64.charCodeAt(i2 + 1)] << 4 | revLookup[b64.charCodeAt(i2 + 2)] >> 2;
|
|
220
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
221
|
+
arr[curByte++] = tmp & 255;
|
|
222
|
+
}
|
|
223
|
+
return arr;
|
|
224
|
+
}
|
|
225
|
+
function tripletToBase64(num) {
|
|
226
|
+
return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
|
|
227
|
+
}
|
|
228
|
+
function encodeChunk(uint8, start, end) {
|
|
229
|
+
var tmp;
|
|
230
|
+
var output = [];
|
|
231
|
+
for (var i2 = start; i2 < end; i2 += 3) {
|
|
232
|
+
tmp = (uint8[i2] << 16 & 16711680) + (uint8[i2 + 1] << 8 & 65280) + (uint8[i2 + 2] & 255);
|
|
233
|
+
output.push(tripletToBase64(tmp));
|
|
234
|
+
}
|
|
235
|
+
return output.join("");
|
|
236
|
+
}
|
|
237
|
+
function fromByteArray(uint8) {
|
|
238
|
+
var tmp;
|
|
239
|
+
var len2 = uint8.length;
|
|
240
|
+
var extraBytes = len2 % 3;
|
|
241
|
+
var parts = [];
|
|
242
|
+
var maxChunkLength = 16383;
|
|
243
|
+
for (var i2 = 0, len22 = len2 - extraBytes; i2 < len22; i2 += maxChunkLength) {
|
|
244
|
+
parts.push(encodeChunk(uint8, i2, i2 + maxChunkLength > len22 ? len22 : i2 + maxChunkLength));
|
|
245
|
+
}
|
|
246
|
+
if (extraBytes === 1) {
|
|
247
|
+
tmp = uint8[len2 - 1];
|
|
248
|
+
parts.push(lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "==");
|
|
249
|
+
} else if (extraBytes === 2) {
|
|
250
|
+
tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
|
|
251
|
+
parts.push(lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "=");
|
|
252
|
+
}
|
|
253
|
+
return parts.join("");
|
|
254
|
+
}
|
|
255
|
+
return exports$2;
|
|
256
|
+
}
|
|
257
|
+
function dew$1() {
|
|
258
|
+
if (_dewExec$1)
|
|
259
|
+
return exports$1;
|
|
260
|
+
_dewExec$1 = true;
|
|
261
|
+
exports$1.read = function(buffer, offset, isLE, mLen, nBytes) {
|
|
262
|
+
var e, m;
|
|
263
|
+
var eLen = nBytes * 8 - mLen - 1;
|
|
264
|
+
var eMax = (1 << eLen) - 1;
|
|
265
|
+
var eBias = eMax >> 1;
|
|
266
|
+
var nBits = -7;
|
|
267
|
+
var i = isLE ? nBytes - 1 : 0;
|
|
268
|
+
var d = isLE ? -1 : 1;
|
|
269
|
+
var s = buffer[offset + i];
|
|
270
|
+
i += d;
|
|
271
|
+
e = s & (1 << -nBits) - 1;
|
|
272
|
+
s >>= -nBits;
|
|
273
|
+
nBits += eLen;
|
|
274
|
+
for (; nBits > 0; e = e * 256 + buffer[offset + i], i += d, nBits -= 8) {
|
|
275
|
+
}
|
|
276
|
+
m = e & (1 << -nBits) - 1;
|
|
277
|
+
e >>= -nBits;
|
|
278
|
+
nBits += mLen;
|
|
279
|
+
for (; nBits > 0; m = m * 256 + buffer[offset + i], i += d, nBits -= 8) {
|
|
280
|
+
}
|
|
281
|
+
if (e === 0) {
|
|
282
|
+
e = 1 - eBias;
|
|
283
|
+
} else if (e === eMax) {
|
|
284
|
+
return m ? NaN : (s ? -1 : 1) * Infinity;
|
|
285
|
+
} else {
|
|
286
|
+
m = m + Math.pow(2, mLen);
|
|
287
|
+
e = e - eBias;
|
|
288
|
+
}
|
|
289
|
+
return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
|
|
290
|
+
};
|
|
291
|
+
exports$1.write = function(buffer, value, offset, isLE, mLen, nBytes) {
|
|
292
|
+
var e, m, c;
|
|
293
|
+
var eLen = nBytes * 8 - mLen - 1;
|
|
294
|
+
var eMax = (1 << eLen) - 1;
|
|
295
|
+
var eBias = eMax >> 1;
|
|
296
|
+
var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
|
|
297
|
+
var i = isLE ? 0 : nBytes - 1;
|
|
298
|
+
var d = isLE ? 1 : -1;
|
|
299
|
+
var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
|
|
300
|
+
value = Math.abs(value);
|
|
301
|
+
if (isNaN(value) || value === Infinity) {
|
|
302
|
+
m = isNaN(value) ? 1 : 0;
|
|
303
|
+
e = eMax;
|
|
304
|
+
} else {
|
|
305
|
+
e = Math.floor(Math.log(value) / Math.LN2);
|
|
306
|
+
if (value * (c = Math.pow(2, -e)) < 1) {
|
|
307
|
+
e--;
|
|
308
|
+
c *= 2;
|
|
309
|
+
}
|
|
310
|
+
if (e + eBias >= 1) {
|
|
311
|
+
value += rt / c;
|
|
312
|
+
} else {
|
|
313
|
+
value += rt * Math.pow(2, 1 - eBias);
|
|
314
|
+
}
|
|
315
|
+
if (value * c >= 2) {
|
|
316
|
+
e++;
|
|
317
|
+
c /= 2;
|
|
318
|
+
}
|
|
319
|
+
if (e + eBias >= eMax) {
|
|
320
|
+
m = 0;
|
|
321
|
+
e = eMax;
|
|
322
|
+
} else if (e + eBias >= 1) {
|
|
323
|
+
m = (value * c - 1) * Math.pow(2, mLen);
|
|
324
|
+
e = e + eBias;
|
|
325
|
+
} else {
|
|
326
|
+
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
|
|
327
|
+
e = 0;
|
|
328
|
+
}
|
|
329
|
+
}
|
|
330
|
+
for (; mLen >= 8; buffer[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {
|
|
331
|
+
}
|
|
332
|
+
e = e << mLen | m;
|
|
333
|
+
eLen += mLen;
|
|
334
|
+
for (; eLen > 0; buffer[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
|
|
335
|
+
}
|
|
336
|
+
buffer[offset + i - d] |= s * 128;
|
|
337
|
+
};
|
|
338
|
+
return exports$1;
|
|
339
|
+
}
|
|
340
|
+
function dew() {
|
|
341
|
+
if (_dewExec)
|
|
342
|
+
return exports;
|
|
343
|
+
_dewExec = true;
|
|
344
|
+
const base64 = dew$2();
|
|
345
|
+
const ieee754 = dew$1();
|
|
346
|
+
const customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
|
|
347
|
+
exports.Buffer = Buffer3;
|
|
348
|
+
exports.SlowBuffer = SlowBuffer;
|
|
349
|
+
exports.INSPECT_MAX_BYTES = 50;
|
|
350
|
+
const K_MAX_LENGTH = 2147483647;
|
|
351
|
+
exports.kMaxLength = K_MAX_LENGTH;
|
|
352
|
+
Buffer3.TYPED_ARRAY_SUPPORT = typedArraySupport();
|
|
353
|
+
if (!Buffer3.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
|
|
354
|
+
console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");
|
|
355
|
+
}
|
|
356
|
+
function typedArraySupport() {
|
|
357
|
+
try {
|
|
358
|
+
const arr = new Uint8Array(1);
|
|
359
|
+
const proto = {
|
|
360
|
+
foo: function() {
|
|
361
|
+
return 42;
|
|
362
|
+
}
|
|
363
|
+
};
|
|
364
|
+
Object.setPrototypeOf(proto, Uint8Array.prototype);
|
|
365
|
+
Object.setPrototypeOf(arr, proto);
|
|
366
|
+
return arr.foo() === 42;
|
|
367
|
+
} catch (e) {
|
|
368
|
+
return false;
|
|
369
|
+
}
|
|
370
|
+
}
|
|
371
|
+
Object.defineProperty(Buffer3.prototype, "parent", {
|
|
372
|
+
enumerable: true,
|
|
373
|
+
get: function() {
|
|
374
|
+
if (!Buffer3.isBuffer(this))
|
|
375
|
+
return void 0;
|
|
376
|
+
return this.buffer;
|
|
377
|
+
}
|
|
378
|
+
});
|
|
379
|
+
Object.defineProperty(Buffer3.prototype, "offset", {
|
|
380
|
+
enumerable: true,
|
|
381
|
+
get: function() {
|
|
382
|
+
if (!Buffer3.isBuffer(this))
|
|
383
|
+
return void 0;
|
|
384
|
+
return this.byteOffset;
|
|
385
|
+
}
|
|
386
|
+
});
|
|
387
|
+
function createBuffer(length) {
|
|
388
|
+
if (length > K_MAX_LENGTH) {
|
|
389
|
+
throw new RangeError('The value "' + length + '" is invalid for option "size"');
|
|
390
|
+
}
|
|
391
|
+
const buf = new Uint8Array(length);
|
|
392
|
+
Object.setPrototypeOf(buf, Buffer3.prototype);
|
|
393
|
+
return buf;
|
|
394
|
+
}
|
|
395
|
+
function Buffer3(arg, encodingOrOffset, length) {
|
|
396
|
+
if (typeof arg === "number") {
|
|
397
|
+
if (typeof encodingOrOffset === "string") {
|
|
398
|
+
throw new TypeError('The "string" argument must be of type string. Received type number');
|
|
399
|
+
}
|
|
400
|
+
return allocUnsafe(arg);
|
|
401
|
+
}
|
|
402
|
+
return from(arg, encodingOrOffset, length);
|
|
403
|
+
}
|
|
404
|
+
Buffer3.poolSize = 8192;
|
|
405
|
+
function from(value, encodingOrOffset, length) {
|
|
406
|
+
if (typeof value === "string") {
|
|
407
|
+
return fromString(value, encodingOrOffset);
|
|
408
|
+
}
|
|
409
|
+
if (ArrayBuffer.isView(value)) {
|
|
410
|
+
return fromArrayView(value);
|
|
411
|
+
}
|
|
412
|
+
if (value == null) {
|
|
413
|
+
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
|
|
414
|
+
}
|
|
415
|
+
if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
|
|
416
|
+
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
417
|
+
}
|
|
418
|
+
if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
|
|
419
|
+
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
420
|
+
}
|
|
421
|
+
if (typeof value === "number") {
|
|
422
|
+
throw new TypeError('The "value" argument must not be of type number. Received type number');
|
|
423
|
+
}
|
|
424
|
+
const valueOf = value.valueOf && value.valueOf();
|
|
425
|
+
if (valueOf != null && valueOf !== value) {
|
|
426
|
+
return Buffer3.from(valueOf, encodingOrOffset, length);
|
|
427
|
+
}
|
|
428
|
+
const b = fromObject(value);
|
|
429
|
+
if (b)
|
|
430
|
+
return b;
|
|
431
|
+
if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
|
|
432
|
+
return Buffer3.from(value[Symbol.toPrimitive]("string"), encodingOrOffset, length);
|
|
433
|
+
}
|
|
434
|
+
throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value);
|
|
435
|
+
}
|
|
436
|
+
Buffer3.from = function(value, encodingOrOffset, length) {
|
|
437
|
+
return from(value, encodingOrOffset, length);
|
|
438
|
+
};
|
|
439
|
+
Object.setPrototypeOf(Buffer3.prototype, Uint8Array.prototype);
|
|
440
|
+
Object.setPrototypeOf(Buffer3, Uint8Array);
|
|
441
|
+
function assertSize(size) {
|
|
442
|
+
if (typeof size !== "number") {
|
|
443
|
+
throw new TypeError('"size" argument must be of type number');
|
|
444
|
+
} else if (size < 0) {
|
|
445
|
+
throw new RangeError('The value "' + size + '" is invalid for option "size"');
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
function alloc(size, fill, encoding) {
|
|
449
|
+
assertSize(size);
|
|
450
|
+
if (size <= 0) {
|
|
451
|
+
return createBuffer(size);
|
|
452
|
+
}
|
|
453
|
+
if (fill !== void 0) {
|
|
454
|
+
return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
|
|
455
|
+
}
|
|
456
|
+
return createBuffer(size);
|
|
457
|
+
}
|
|
458
|
+
Buffer3.alloc = function(size, fill, encoding) {
|
|
459
|
+
return alloc(size, fill, encoding);
|
|
460
|
+
};
|
|
461
|
+
function allocUnsafe(size) {
|
|
462
|
+
assertSize(size);
|
|
463
|
+
return createBuffer(size < 0 ? 0 : checked(size) | 0);
|
|
464
|
+
}
|
|
465
|
+
Buffer3.allocUnsafe = function(size) {
|
|
466
|
+
return allocUnsafe(size);
|
|
467
|
+
};
|
|
468
|
+
Buffer3.allocUnsafeSlow = function(size) {
|
|
469
|
+
return allocUnsafe(size);
|
|
470
|
+
};
|
|
471
|
+
function fromString(string, encoding) {
|
|
472
|
+
if (typeof encoding !== "string" || encoding === "") {
|
|
473
|
+
encoding = "utf8";
|
|
474
|
+
}
|
|
475
|
+
if (!Buffer3.isEncoding(encoding)) {
|
|
476
|
+
throw new TypeError("Unknown encoding: " + encoding);
|
|
477
|
+
}
|
|
478
|
+
const length = byteLength(string, encoding) | 0;
|
|
479
|
+
let buf = createBuffer(length);
|
|
480
|
+
const actual = buf.write(string, encoding);
|
|
481
|
+
if (actual !== length) {
|
|
482
|
+
buf = buf.slice(0, actual);
|
|
483
|
+
}
|
|
484
|
+
return buf;
|
|
485
|
+
}
|
|
486
|
+
function fromArrayLike(array) {
|
|
487
|
+
const length = array.length < 0 ? 0 : checked(array.length) | 0;
|
|
488
|
+
const buf = createBuffer(length);
|
|
489
|
+
for (let i = 0; i < length; i += 1) {
|
|
490
|
+
buf[i] = array[i] & 255;
|
|
491
|
+
}
|
|
492
|
+
return buf;
|
|
493
|
+
}
|
|
494
|
+
function fromArrayView(arrayView) {
|
|
495
|
+
if (isInstance(arrayView, Uint8Array)) {
|
|
496
|
+
const copy = new Uint8Array(arrayView);
|
|
497
|
+
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
|
|
498
|
+
}
|
|
499
|
+
return fromArrayLike(arrayView);
|
|
500
|
+
}
|
|
501
|
+
function fromArrayBuffer(array, byteOffset, length) {
|
|
502
|
+
if (byteOffset < 0 || array.byteLength < byteOffset) {
|
|
503
|
+
throw new RangeError('"offset" is outside of buffer bounds');
|
|
504
|
+
}
|
|
505
|
+
if (array.byteLength < byteOffset + (length || 0)) {
|
|
506
|
+
throw new RangeError('"length" is outside of buffer bounds');
|
|
507
|
+
}
|
|
508
|
+
let buf;
|
|
509
|
+
if (byteOffset === void 0 && length === void 0) {
|
|
510
|
+
buf = new Uint8Array(array);
|
|
511
|
+
} else if (length === void 0) {
|
|
512
|
+
buf = new Uint8Array(array, byteOffset);
|
|
513
|
+
} else {
|
|
514
|
+
buf = new Uint8Array(array, byteOffset, length);
|
|
515
|
+
}
|
|
516
|
+
Object.setPrototypeOf(buf, Buffer3.prototype);
|
|
517
|
+
return buf;
|
|
518
|
+
}
|
|
519
|
+
function fromObject(obj) {
|
|
520
|
+
if (Buffer3.isBuffer(obj)) {
|
|
521
|
+
const len = checked(obj.length) | 0;
|
|
522
|
+
const buf = createBuffer(len);
|
|
523
|
+
if (buf.length === 0) {
|
|
524
|
+
return buf;
|
|
525
|
+
}
|
|
526
|
+
obj.copy(buf, 0, 0, len);
|
|
527
|
+
return buf;
|
|
528
|
+
}
|
|
529
|
+
if (obj.length !== void 0) {
|
|
530
|
+
if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
|
|
531
|
+
return createBuffer(0);
|
|
532
|
+
}
|
|
533
|
+
return fromArrayLike(obj);
|
|
534
|
+
}
|
|
535
|
+
if (obj.type === "Buffer" && Array.isArray(obj.data)) {
|
|
536
|
+
return fromArrayLike(obj.data);
|
|
537
|
+
}
|
|
538
|
+
}
|
|
539
|
+
function checked(length) {
|
|
540
|
+
if (length >= K_MAX_LENGTH) {
|
|
541
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
|
|
542
|
+
}
|
|
543
|
+
return length | 0;
|
|
544
|
+
}
|
|
545
|
+
function SlowBuffer(length) {
|
|
546
|
+
if (+length != length) {
|
|
547
|
+
length = 0;
|
|
548
|
+
}
|
|
549
|
+
return Buffer3.alloc(+length);
|
|
550
|
+
}
|
|
551
|
+
Buffer3.isBuffer = function isBuffer(b) {
|
|
552
|
+
return b != null && b._isBuffer === true && b !== Buffer3.prototype;
|
|
553
|
+
};
|
|
554
|
+
Buffer3.compare = function compare(a, b) {
|
|
555
|
+
if (isInstance(a, Uint8Array))
|
|
556
|
+
a = Buffer3.from(a, a.offset, a.byteLength);
|
|
557
|
+
if (isInstance(b, Uint8Array))
|
|
558
|
+
b = Buffer3.from(b, b.offset, b.byteLength);
|
|
559
|
+
if (!Buffer3.isBuffer(a) || !Buffer3.isBuffer(b)) {
|
|
560
|
+
throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
|
|
561
|
+
}
|
|
562
|
+
if (a === b)
|
|
563
|
+
return 0;
|
|
564
|
+
let x = a.length;
|
|
565
|
+
let y = b.length;
|
|
566
|
+
for (let i = 0, len = Math.min(x, y); i < len; ++i) {
|
|
567
|
+
if (a[i] !== b[i]) {
|
|
568
|
+
x = a[i];
|
|
569
|
+
y = b[i];
|
|
570
|
+
break;
|
|
571
|
+
}
|
|
572
|
+
}
|
|
573
|
+
if (x < y)
|
|
574
|
+
return -1;
|
|
575
|
+
if (y < x)
|
|
576
|
+
return 1;
|
|
577
|
+
return 0;
|
|
578
|
+
};
|
|
579
|
+
Buffer3.isEncoding = function isEncoding(encoding) {
|
|
580
|
+
switch (String(encoding).toLowerCase()) {
|
|
581
|
+
case "hex":
|
|
582
|
+
case "utf8":
|
|
583
|
+
case "utf-8":
|
|
584
|
+
case "ascii":
|
|
585
|
+
case "latin1":
|
|
586
|
+
case "binary":
|
|
587
|
+
case "base64":
|
|
588
|
+
case "ucs2":
|
|
589
|
+
case "ucs-2":
|
|
590
|
+
case "utf16le":
|
|
591
|
+
case "utf-16le":
|
|
592
|
+
return true;
|
|
593
|
+
default:
|
|
594
|
+
return false;
|
|
595
|
+
}
|
|
596
|
+
};
|
|
597
|
+
Buffer3.concat = function concat(list, length) {
|
|
598
|
+
if (!Array.isArray(list)) {
|
|
599
|
+
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
600
|
+
}
|
|
601
|
+
if (list.length === 0) {
|
|
602
|
+
return Buffer3.alloc(0);
|
|
603
|
+
}
|
|
604
|
+
let i;
|
|
605
|
+
if (length === void 0) {
|
|
606
|
+
length = 0;
|
|
607
|
+
for (i = 0; i < list.length; ++i) {
|
|
608
|
+
length += list[i].length;
|
|
609
|
+
}
|
|
610
|
+
}
|
|
611
|
+
const buffer = Buffer3.allocUnsafe(length);
|
|
612
|
+
let pos = 0;
|
|
613
|
+
for (i = 0; i < list.length; ++i) {
|
|
614
|
+
let buf = list[i];
|
|
615
|
+
if (isInstance(buf, Uint8Array)) {
|
|
616
|
+
if (pos + buf.length > buffer.length) {
|
|
617
|
+
if (!Buffer3.isBuffer(buf))
|
|
618
|
+
buf = Buffer3.from(buf);
|
|
619
|
+
buf.copy(buffer, pos);
|
|
620
|
+
} else {
|
|
621
|
+
Uint8Array.prototype.set.call(buffer, buf, pos);
|
|
622
|
+
}
|
|
623
|
+
} else if (!Buffer3.isBuffer(buf)) {
|
|
624
|
+
throw new TypeError('"list" argument must be an Array of Buffers');
|
|
625
|
+
} else {
|
|
626
|
+
buf.copy(buffer, pos);
|
|
627
|
+
}
|
|
628
|
+
pos += buf.length;
|
|
629
|
+
}
|
|
630
|
+
return buffer;
|
|
631
|
+
};
|
|
632
|
+
function byteLength(string, encoding) {
|
|
633
|
+
if (Buffer3.isBuffer(string)) {
|
|
634
|
+
return string.length;
|
|
635
|
+
}
|
|
636
|
+
if (ArrayBuffer.isView(string) || isInstance(string, ArrayBuffer)) {
|
|
637
|
+
return string.byteLength;
|
|
638
|
+
}
|
|
639
|
+
if (typeof string !== "string") {
|
|
640
|
+
throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof string);
|
|
641
|
+
}
|
|
642
|
+
const len = string.length;
|
|
643
|
+
const mustMatch = arguments.length > 2 && arguments[2] === true;
|
|
644
|
+
if (!mustMatch && len === 0)
|
|
645
|
+
return 0;
|
|
646
|
+
let loweredCase = false;
|
|
647
|
+
for (; ; ) {
|
|
648
|
+
switch (encoding) {
|
|
649
|
+
case "ascii":
|
|
650
|
+
case "latin1":
|
|
651
|
+
case "binary":
|
|
652
|
+
return len;
|
|
653
|
+
case "utf8":
|
|
654
|
+
case "utf-8":
|
|
655
|
+
return utf8ToBytes(string).length;
|
|
656
|
+
case "ucs2":
|
|
657
|
+
case "ucs-2":
|
|
658
|
+
case "utf16le":
|
|
659
|
+
case "utf-16le":
|
|
660
|
+
return len * 2;
|
|
661
|
+
case "hex":
|
|
662
|
+
return len >>> 1;
|
|
663
|
+
case "base64":
|
|
664
|
+
return base64ToBytes(string).length;
|
|
665
|
+
default:
|
|
666
|
+
if (loweredCase) {
|
|
667
|
+
return mustMatch ? -1 : utf8ToBytes(string).length;
|
|
668
|
+
}
|
|
669
|
+
encoding = ("" + encoding).toLowerCase();
|
|
670
|
+
loweredCase = true;
|
|
671
|
+
}
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
Buffer3.byteLength = byteLength;
|
|
675
|
+
function slowToString(encoding, start, end) {
|
|
676
|
+
let loweredCase = false;
|
|
677
|
+
if (start === void 0 || start < 0) {
|
|
678
|
+
start = 0;
|
|
679
|
+
}
|
|
680
|
+
if (start > this.length) {
|
|
681
|
+
return "";
|
|
682
|
+
}
|
|
683
|
+
if (end === void 0 || end > this.length) {
|
|
684
|
+
end = this.length;
|
|
685
|
+
}
|
|
686
|
+
if (end <= 0) {
|
|
687
|
+
return "";
|
|
688
|
+
}
|
|
689
|
+
end >>>= 0;
|
|
690
|
+
start >>>= 0;
|
|
691
|
+
if (end <= start) {
|
|
692
|
+
return "";
|
|
693
|
+
}
|
|
694
|
+
if (!encoding)
|
|
695
|
+
encoding = "utf8";
|
|
696
|
+
while (true) {
|
|
697
|
+
switch (encoding) {
|
|
698
|
+
case "hex":
|
|
699
|
+
return hexSlice(this, start, end);
|
|
700
|
+
case "utf8":
|
|
701
|
+
case "utf-8":
|
|
702
|
+
return utf8Slice(this, start, end);
|
|
703
|
+
case "ascii":
|
|
704
|
+
return asciiSlice(this, start, end);
|
|
705
|
+
case "latin1":
|
|
706
|
+
case "binary":
|
|
707
|
+
return latin1Slice(this, start, end);
|
|
708
|
+
case "base64":
|
|
709
|
+
return base64Slice(this, start, end);
|
|
710
|
+
case "ucs2":
|
|
711
|
+
case "ucs-2":
|
|
712
|
+
case "utf16le":
|
|
713
|
+
case "utf-16le":
|
|
714
|
+
return utf16leSlice(this, start, end);
|
|
715
|
+
default:
|
|
716
|
+
if (loweredCase)
|
|
717
|
+
throw new TypeError("Unknown encoding: " + encoding);
|
|
718
|
+
encoding = (encoding + "").toLowerCase();
|
|
719
|
+
loweredCase = true;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
}
|
|
723
|
+
Buffer3.prototype._isBuffer = true;
|
|
724
|
+
function swap(b, n, m) {
|
|
725
|
+
const i = b[n];
|
|
726
|
+
b[n] = b[m];
|
|
727
|
+
b[m] = i;
|
|
728
|
+
}
|
|
729
|
+
Buffer3.prototype.swap16 = function swap16() {
|
|
730
|
+
const len = this.length;
|
|
731
|
+
if (len % 2 !== 0) {
|
|
732
|
+
throw new RangeError("Buffer size must be a multiple of 16-bits");
|
|
733
|
+
}
|
|
734
|
+
for (let i = 0; i < len; i += 2) {
|
|
735
|
+
swap(this, i, i + 1);
|
|
736
|
+
}
|
|
737
|
+
return this;
|
|
738
|
+
};
|
|
739
|
+
Buffer3.prototype.swap32 = function swap32() {
|
|
740
|
+
const len = this.length;
|
|
741
|
+
if (len % 4 !== 0) {
|
|
742
|
+
throw new RangeError("Buffer size must be a multiple of 32-bits");
|
|
743
|
+
}
|
|
744
|
+
for (let i = 0; i < len; i += 4) {
|
|
745
|
+
swap(this, i, i + 3);
|
|
746
|
+
swap(this, i + 1, i + 2);
|
|
747
|
+
}
|
|
748
|
+
return this;
|
|
749
|
+
};
|
|
750
|
+
Buffer3.prototype.swap64 = function swap64() {
|
|
751
|
+
const len = this.length;
|
|
752
|
+
if (len % 8 !== 0) {
|
|
753
|
+
throw new RangeError("Buffer size must be a multiple of 64-bits");
|
|
754
|
+
}
|
|
755
|
+
for (let i = 0; i < len; i += 8) {
|
|
756
|
+
swap(this, i, i + 7);
|
|
757
|
+
swap(this, i + 1, i + 6);
|
|
758
|
+
swap(this, i + 2, i + 5);
|
|
759
|
+
swap(this, i + 3, i + 4);
|
|
760
|
+
}
|
|
761
|
+
return this;
|
|
762
|
+
};
|
|
763
|
+
Buffer3.prototype.toString = function toString() {
|
|
764
|
+
const length = this.length;
|
|
765
|
+
if (length === 0)
|
|
766
|
+
return "";
|
|
767
|
+
if (arguments.length === 0)
|
|
768
|
+
return utf8Slice(this, 0, length);
|
|
769
|
+
return slowToString.apply(this, arguments);
|
|
770
|
+
};
|
|
771
|
+
Buffer3.prototype.toLocaleString = Buffer3.prototype.toString;
|
|
772
|
+
Buffer3.prototype.equals = function equals(b) {
|
|
773
|
+
if (!Buffer3.isBuffer(b))
|
|
774
|
+
throw new TypeError("Argument must be a Buffer");
|
|
775
|
+
if (this === b)
|
|
776
|
+
return true;
|
|
777
|
+
return Buffer3.compare(this, b) === 0;
|
|
778
|
+
};
|
|
779
|
+
Buffer3.prototype.inspect = function inspect() {
|
|
780
|
+
let str = "";
|
|
781
|
+
const max = exports.INSPECT_MAX_BYTES;
|
|
782
|
+
str = this.toString("hex", 0, max).replace(/(.{2})/g, "$1 ").trim();
|
|
783
|
+
if (this.length > max)
|
|
784
|
+
str += " ... ";
|
|
785
|
+
return "<Buffer " + str + ">";
|
|
786
|
+
};
|
|
787
|
+
if (customInspectSymbol) {
|
|
788
|
+
Buffer3.prototype[customInspectSymbol] = Buffer3.prototype.inspect;
|
|
789
|
+
}
|
|
790
|
+
Buffer3.prototype.compare = function compare(target, start, end, thisStart, thisEnd) {
|
|
791
|
+
if (isInstance(target, Uint8Array)) {
|
|
792
|
+
target = Buffer3.from(target, target.offset, target.byteLength);
|
|
793
|
+
}
|
|
794
|
+
if (!Buffer3.isBuffer(target)) {
|
|
795
|
+
throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof target);
|
|
796
|
+
}
|
|
797
|
+
if (start === void 0) {
|
|
798
|
+
start = 0;
|
|
799
|
+
}
|
|
800
|
+
if (end === void 0) {
|
|
801
|
+
end = target ? target.length : 0;
|
|
802
|
+
}
|
|
803
|
+
if (thisStart === void 0) {
|
|
804
|
+
thisStart = 0;
|
|
805
|
+
}
|
|
806
|
+
if (thisEnd === void 0) {
|
|
807
|
+
thisEnd = this.length;
|
|
808
|
+
}
|
|
809
|
+
if (start < 0 || end > target.length || thisStart < 0 || thisEnd > this.length) {
|
|
810
|
+
throw new RangeError("out of range index");
|
|
811
|
+
}
|
|
812
|
+
if (thisStart >= thisEnd && start >= end) {
|
|
813
|
+
return 0;
|
|
814
|
+
}
|
|
815
|
+
if (thisStart >= thisEnd) {
|
|
816
|
+
return -1;
|
|
817
|
+
}
|
|
818
|
+
if (start >= end) {
|
|
819
|
+
return 1;
|
|
820
|
+
}
|
|
821
|
+
start >>>= 0;
|
|
822
|
+
end >>>= 0;
|
|
823
|
+
thisStart >>>= 0;
|
|
824
|
+
thisEnd >>>= 0;
|
|
825
|
+
if (this === target)
|
|
826
|
+
return 0;
|
|
827
|
+
let x = thisEnd - thisStart;
|
|
828
|
+
let y = end - start;
|
|
829
|
+
const len = Math.min(x, y);
|
|
830
|
+
const thisCopy = this.slice(thisStart, thisEnd);
|
|
831
|
+
const targetCopy = target.slice(start, end);
|
|
832
|
+
for (let i = 0; i < len; ++i) {
|
|
833
|
+
if (thisCopy[i] !== targetCopy[i]) {
|
|
834
|
+
x = thisCopy[i];
|
|
835
|
+
y = targetCopy[i];
|
|
836
|
+
break;
|
|
837
|
+
}
|
|
838
|
+
}
|
|
839
|
+
if (x < y)
|
|
840
|
+
return -1;
|
|
841
|
+
if (y < x)
|
|
842
|
+
return 1;
|
|
843
|
+
return 0;
|
|
844
|
+
};
|
|
845
|
+
function bidirectionalIndexOf(buffer, val, byteOffset, encoding, dir) {
|
|
846
|
+
if (buffer.length === 0)
|
|
847
|
+
return -1;
|
|
848
|
+
if (typeof byteOffset === "string") {
|
|
849
|
+
encoding = byteOffset;
|
|
850
|
+
byteOffset = 0;
|
|
851
|
+
} else if (byteOffset > 2147483647) {
|
|
852
|
+
byteOffset = 2147483647;
|
|
853
|
+
} else if (byteOffset < -2147483648) {
|
|
854
|
+
byteOffset = -2147483648;
|
|
855
|
+
}
|
|
856
|
+
byteOffset = +byteOffset;
|
|
857
|
+
if (numberIsNaN(byteOffset)) {
|
|
858
|
+
byteOffset = dir ? 0 : buffer.length - 1;
|
|
859
|
+
}
|
|
860
|
+
if (byteOffset < 0)
|
|
861
|
+
byteOffset = buffer.length + byteOffset;
|
|
862
|
+
if (byteOffset >= buffer.length) {
|
|
863
|
+
if (dir)
|
|
864
|
+
return -1;
|
|
865
|
+
else
|
|
866
|
+
byteOffset = buffer.length - 1;
|
|
867
|
+
} else if (byteOffset < 0) {
|
|
868
|
+
if (dir)
|
|
869
|
+
byteOffset = 0;
|
|
870
|
+
else
|
|
871
|
+
return -1;
|
|
872
|
+
}
|
|
873
|
+
if (typeof val === "string") {
|
|
874
|
+
val = Buffer3.from(val, encoding);
|
|
875
|
+
}
|
|
876
|
+
if (Buffer3.isBuffer(val)) {
|
|
877
|
+
if (val.length === 0) {
|
|
878
|
+
return -1;
|
|
879
|
+
}
|
|
880
|
+
return arrayIndexOf(buffer, val, byteOffset, encoding, dir);
|
|
881
|
+
} else if (typeof val === "number") {
|
|
882
|
+
val = val & 255;
|
|
883
|
+
if (typeof Uint8Array.prototype.indexOf === "function") {
|
|
884
|
+
if (dir) {
|
|
885
|
+
return Uint8Array.prototype.indexOf.call(buffer, val, byteOffset);
|
|
886
|
+
} else {
|
|
887
|
+
return Uint8Array.prototype.lastIndexOf.call(buffer, val, byteOffset);
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
return arrayIndexOf(buffer, [val], byteOffset, encoding, dir);
|
|
891
|
+
}
|
|
892
|
+
throw new TypeError("val must be string, number or Buffer");
|
|
893
|
+
}
|
|
894
|
+
function arrayIndexOf(arr, val, byteOffset, encoding, dir) {
|
|
895
|
+
let indexSize = 1;
|
|
896
|
+
let arrLength = arr.length;
|
|
897
|
+
let valLength = val.length;
|
|
898
|
+
if (encoding !== void 0) {
|
|
899
|
+
encoding = String(encoding).toLowerCase();
|
|
900
|
+
if (encoding === "ucs2" || encoding === "ucs-2" || encoding === "utf16le" || encoding === "utf-16le") {
|
|
901
|
+
if (arr.length < 2 || val.length < 2) {
|
|
902
|
+
return -1;
|
|
903
|
+
}
|
|
904
|
+
indexSize = 2;
|
|
905
|
+
arrLength /= 2;
|
|
906
|
+
valLength /= 2;
|
|
907
|
+
byteOffset /= 2;
|
|
908
|
+
}
|
|
909
|
+
}
|
|
910
|
+
function read(buf, i2) {
|
|
911
|
+
if (indexSize === 1) {
|
|
912
|
+
return buf[i2];
|
|
913
|
+
} else {
|
|
914
|
+
return buf.readUInt16BE(i2 * indexSize);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
let i;
|
|
918
|
+
if (dir) {
|
|
919
|
+
let foundIndex = -1;
|
|
920
|
+
for (i = byteOffset; i < arrLength; i++) {
|
|
921
|
+
if (read(arr, i) === read(val, foundIndex === -1 ? 0 : i - foundIndex)) {
|
|
922
|
+
if (foundIndex === -1)
|
|
923
|
+
foundIndex = i;
|
|
924
|
+
if (i - foundIndex + 1 === valLength)
|
|
925
|
+
return foundIndex * indexSize;
|
|
926
|
+
} else {
|
|
927
|
+
if (foundIndex !== -1)
|
|
928
|
+
i -= i - foundIndex;
|
|
929
|
+
foundIndex = -1;
|
|
930
|
+
}
|
|
931
|
+
}
|
|
932
|
+
} else {
|
|
933
|
+
if (byteOffset + valLength > arrLength)
|
|
934
|
+
byteOffset = arrLength - valLength;
|
|
935
|
+
for (i = byteOffset; i >= 0; i--) {
|
|
936
|
+
let found = true;
|
|
937
|
+
for (let j = 0; j < valLength; j++) {
|
|
938
|
+
if (read(arr, i + j) !== read(val, j)) {
|
|
939
|
+
found = false;
|
|
940
|
+
break;
|
|
941
|
+
}
|
|
942
|
+
}
|
|
943
|
+
if (found)
|
|
944
|
+
return i;
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
return -1;
|
|
948
|
+
}
|
|
949
|
+
Buffer3.prototype.includes = function includes(val, byteOffset, encoding) {
|
|
950
|
+
return this.indexOf(val, byteOffset, encoding) !== -1;
|
|
951
|
+
};
|
|
952
|
+
Buffer3.prototype.indexOf = function indexOf(val, byteOffset, encoding) {
|
|
953
|
+
return bidirectionalIndexOf(this, val, byteOffset, encoding, true);
|
|
954
|
+
};
|
|
955
|
+
Buffer3.prototype.lastIndexOf = function lastIndexOf(val, byteOffset, encoding) {
|
|
956
|
+
return bidirectionalIndexOf(this, val, byteOffset, encoding, false);
|
|
957
|
+
};
|
|
958
|
+
function hexWrite(buf, string, offset, length) {
|
|
959
|
+
offset = Number(offset) || 0;
|
|
960
|
+
const remaining = buf.length - offset;
|
|
961
|
+
if (!length) {
|
|
962
|
+
length = remaining;
|
|
963
|
+
} else {
|
|
964
|
+
length = Number(length);
|
|
965
|
+
if (length > remaining) {
|
|
966
|
+
length = remaining;
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
const strLen = string.length;
|
|
970
|
+
if (length > strLen / 2) {
|
|
971
|
+
length = strLen / 2;
|
|
972
|
+
}
|
|
973
|
+
let i;
|
|
974
|
+
for (i = 0; i < length; ++i) {
|
|
975
|
+
const parsed = parseInt(string.substr(i * 2, 2), 16);
|
|
976
|
+
if (numberIsNaN(parsed))
|
|
977
|
+
return i;
|
|
978
|
+
buf[offset + i] = parsed;
|
|
979
|
+
}
|
|
980
|
+
return i;
|
|
981
|
+
}
|
|
982
|
+
function utf8Write(buf, string, offset, length) {
|
|
983
|
+
return blitBuffer(utf8ToBytes(string, buf.length - offset), buf, offset, length);
|
|
984
|
+
}
|
|
985
|
+
function asciiWrite(buf, string, offset, length) {
|
|
986
|
+
return blitBuffer(asciiToBytes(string), buf, offset, length);
|
|
987
|
+
}
|
|
988
|
+
function base64Write(buf, string, offset, length) {
|
|
989
|
+
return blitBuffer(base64ToBytes(string), buf, offset, length);
|
|
990
|
+
}
|
|
991
|
+
function ucs2Write(buf, string, offset, length) {
|
|
992
|
+
return blitBuffer(utf16leToBytes(string, buf.length - offset), buf, offset, length);
|
|
993
|
+
}
|
|
994
|
+
Buffer3.prototype.write = function write(string, offset, length, encoding) {
|
|
995
|
+
if (offset === void 0) {
|
|
996
|
+
encoding = "utf8";
|
|
997
|
+
length = this.length;
|
|
998
|
+
offset = 0;
|
|
999
|
+
} else if (length === void 0 && typeof offset === "string") {
|
|
1000
|
+
encoding = offset;
|
|
1001
|
+
length = this.length;
|
|
1002
|
+
offset = 0;
|
|
1003
|
+
} else if (isFinite(offset)) {
|
|
1004
|
+
offset = offset >>> 0;
|
|
1005
|
+
if (isFinite(length)) {
|
|
1006
|
+
length = length >>> 0;
|
|
1007
|
+
if (encoding === void 0)
|
|
1008
|
+
encoding = "utf8";
|
|
1009
|
+
} else {
|
|
1010
|
+
encoding = length;
|
|
1011
|
+
length = void 0;
|
|
1012
|
+
}
|
|
1013
|
+
} else {
|
|
1014
|
+
throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
|
|
1015
|
+
}
|
|
1016
|
+
const remaining = this.length - offset;
|
|
1017
|
+
if (length === void 0 || length > remaining)
|
|
1018
|
+
length = remaining;
|
|
1019
|
+
if (string.length > 0 && (length < 0 || offset < 0) || offset > this.length) {
|
|
1020
|
+
throw new RangeError("Attempt to write outside buffer bounds");
|
|
1021
|
+
}
|
|
1022
|
+
if (!encoding)
|
|
1023
|
+
encoding = "utf8";
|
|
1024
|
+
let loweredCase = false;
|
|
1025
|
+
for (; ; ) {
|
|
1026
|
+
switch (encoding) {
|
|
1027
|
+
case "hex":
|
|
1028
|
+
return hexWrite(this, string, offset, length);
|
|
1029
|
+
case "utf8":
|
|
1030
|
+
case "utf-8":
|
|
1031
|
+
return utf8Write(this, string, offset, length);
|
|
1032
|
+
case "ascii":
|
|
1033
|
+
case "latin1":
|
|
1034
|
+
case "binary":
|
|
1035
|
+
return asciiWrite(this, string, offset, length);
|
|
1036
|
+
case "base64":
|
|
1037
|
+
return base64Write(this, string, offset, length);
|
|
1038
|
+
case "ucs2":
|
|
1039
|
+
case "ucs-2":
|
|
1040
|
+
case "utf16le":
|
|
1041
|
+
case "utf-16le":
|
|
1042
|
+
return ucs2Write(this, string, offset, length);
|
|
1043
|
+
default:
|
|
1044
|
+
if (loweredCase)
|
|
1045
|
+
throw new TypeError("Unknown encoding: " + encoding);
|
|
1046
|
+
encoding = ("" + encoding).toLowerCase();
|
|
1047
|
+
loweredCase = true;
|
|
1048
|
+
}
|
|
1049
|
+
}
|
|
1050
|
+
};
|
|
1051
|
+
Buffer3.prototype.toJSON = function toJSON() {
|
|
1052
|
+
return {
|
|
1053
|
+
type: "Buffer",
|
|
1054
|
+
data: Array.prototype.slice.call(this._arr || this, 0)
|
|
1055
|
+
};
|
|
1056
|
+
};
|
|
1057
|
+
function base64Slice(buf, start, end) {
|
|
1058
|
+
if (start === 0 && end === buf.length) {
|
|
1059
|
+
return base64.fromByteArray(buf);
|
|
1060
|
+
} else {
|
|
1061
|
+
return base64.fromByteArray(buf.slice(start, end));
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
function utf8Slice(buf, start, end) {
|
|
1065
|
+
end = Math.min(buf.length, end);
|
|
1066
|
+
const res = [];
|
|
1067
|
+
let i = start;
|
|
1068
|
+
while (i < end) {
|
|
1069
|
+
const firstByte = buf[i];
|
|
1070
|
+
let codePoint = null;
|
|
1071
|
+
let bytesPerSequence = firstByte > 239 ? 4 : firstByte > 223 ? 3 : firstByte > 191 ? 2 : 1;
|
|
1072
|
+
if (i + bytesPerSequence <= end) {
|
|
1073
|
+
let secondByte, thirdByte, fourthByte, tempCodePoint;
|
|
1074
|
+
switch (bytesPerSequence) {
|
|
1075
|
+
case 1:
|
|
1076
|
+
if (firstByte < 128) {
|
|
1077
|
+
codePoint = firstByte;
|
|
1078
|
+
}
|
|
1079
|
+
break;
|
|
1080
|
+
case 2:
|
|
1081
|
+
secondByte = buf[i + 1];
|
|
1082
|
+
if ((secondByte & 192) === 128) {
|
|
1083
|
+
tempCodePoint = (firstByte & 31) << 6 | secondByte & 63;
|
|
1084
|
+
if (tempCodePoint > 127) {
|
|
1085
|
+
codePoint = tempCodePoint;
|
|
1086
|
+
}
|
|
1087
|
+
}
|
|
1088
|
+
break;
|
|
1089
|
+
case 3:
|
|
1090
|
+
secondByte = buf[i + 1];
|
|
1091
|
+
thirdByte = buf[i + 2];
|
|
1092
|
+
if ((secondByte & 192) === 128 && (thirdByte & 192) === 128) {
|
|
1093
|
+
tempCodePoint = (firstByte & 15) << 12 | (secondByte & 63) << 6 | thirdByte & 63;
|
|
1094
|
+
if (tempCodePoint > 2047 && (tempCodePoint < 55296 || tempCodePoint > 57343)) {
|
|
1095
|
+
codePoint = tempCodePoint;
|
|
1096
|
+
}
|
|
1097
|
+
}
|
|
1098
|
+
break;
|
|
1099
|
+
case 4:
|
|
1100
|
+
secondByte = buf[i + 1];
|
|
1101
|
+
thirdByte = buf[i + 2];
|
|
1102
|
+
fourthByte = buf[i + 3];
|
|
1103
|
+
if ((secondByte & 192) === 128 && (thirdByte & 192) === 128 && (fourthByte & 192) === 128) {
|
|
1104
|
+
tempCodePoint = (firstByte & 15) << 18 | (secondByte & 63) << 12 | (thirdByte & 63) << 6 | fourthByte & 63;
|
|
1105
|
+
if (tempCodePoint > 65535 && tempCodePoint < 1114112) {
|
|
1106
|
+
codePoint = tempCodePoint;
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
if (codePoint === null) {
|
|
1112
|
+
codePoint = 65533;
|
|
1113
|
+
bytesPerSequence = 1;
|
|
1114
|
+
} else if (codePoint > 65535) {
|
|
1115
|
+
codePoint -= 65536;
|
|
1116
|
+
res.push(codePoint >>> 10 & 1023 | 55296);
|
|
1117
|
+
codePoint = 56320 | codePoint & 1023;
|
|
1118
|
+
}
|
|
1119
|
+
res.push(codePoint);
|
|
1120
|
+
i += bytesPerSequence;
|
|
1121
|
+
}
|
|
1122
|
+
return decodeCodePointsArray(res);
|
|
1123
|
+
}
|
|
1124
|
+
const MAX_ARGUMENTS_LENGTH = 4096;
|
|
1125
|
+
function decodeCodePointsArray(codePoints) {
|
|
1126
|
+
const len = codePoints.length;
|
|
1127
|
+
if (len <= MAX_ARGUMENTS_LENGTH) {
|
|
1128
|
+
return String.fromCharCode.apply(String, codePoints);
|
|
1129
|
+
}
|
|
1130
|
+
let res = "";
|
|
1131
|
+
let i = 0;
|
|
1132
|
+
while (i < len) {
|
|
1133
|
+
res += String.fromCharCode.apply(String, codePoints.slice(i, i += MAX_ARGUMENTS_LENGTH));
|
|
1134
|
+
}
|
|
1135
|
+
return res;
|
|
1136
|
+
}
|
|
1137
|
+
function asciiSlice(buf, start, end) {
|
|
1138
|
+
let ret = "";
|
|
1139
|
+
end = Math.min(buf.length, end);
|
|
1140
|
+
for (let i = start; i < end; ++i) {
|
|
1141
|
+
ret += String.fromCharCode(buf[i] & 127);
|
|
1142
|
+
}
|
|
1143
|
+
return ret;
|
|
1144
|
+
}
|
|
1145
|
+
function latin1Slice(buf, start, end) {
|
|
1146
|
+
let ret = "";
|
|
1147
|
+
end = Math.min(buf.length, end);
|
|
1148
|
+
for (let i = start; i < end; ++i) {
|
|
1149
|
+
ret += String.fromCharCode(buf[i]);
|
|
1150
|
+
}
|
|
1151
|
+
return ret;
|
|
1152
|
+
}
|
|
1153
|
+
function hexSlice(buf, start, end) {
|
|
1154
|
+
const len = buf.length;
|
|
1155
|
+
if (!start || start < 0)
|
|
1156
|
+
start = 0;
|
|
1157
|
+
if (!end || end < 0 || end > len)
|
|
1158
|
+
end = len;
|
|
1159
|
+
let out = "";
|
|
1160
|
+
for (let i = start; i < end; ++i) {
|
|
1161
|
+
out += hexSliceLookupTable[buf[i]];
|
|
1162
|
+
}
|
|
1163
|
+
return out;
|
|
1164
|
+
}
|
|
1165
|
+
function utf16leSlice(buf, start, end) {
|
|
1166
|
+
const bytes = buf.slice(start, end);
|
|
1167
|
+
let res = "";
|
|
1168
|
+
for (let i = 0; i < bytes.length - 1; i += 2) {
|
|
1169
|
+
res += String.fromCharCode(bytes[i] + bytes[i + 1] * 256);
|
|
1170
|
+
}
|
|
1171
|
+
return res;
|
|
1172
|
+
}
|
|
1173
|
+
Buffer3.prototype.slice = function slice(start, end) {
|
|
1174
|
+
const len = this.length;
|
|
1175
|
+
start = ~~start;
|
|
1176
|
+
end = end === void 0 ? len : ~~end;
|
|
1177
|
+
if (start < 0) {
|
|
1178
|
+
start += len;
|
|
1179
|
+
if (start < 0)
|
|
1180
|
+
start = 0;
|
|
1181
|
+
} else if (start > len) {
|
|
1182
|
+
start = len;
|
|
1183
|
+
}
|
|
1184
|
+
if (end < 0) {
|
|
1185
|
+
end += len;
|
|
1186
|
+
if (end < 0)
|
|
1187
|
+
end = 0;
|
|
1188
|
+
} else if (end > len) {
|
|
1189
|
+
end = len;
|
|
1190
|
+
}
|
|
1191
|
+
if (end < start)
|
|
1192
|
+
end = start;
|
|
1193
|
+
const newBuf = this.subarray(start, end);
|
|
1194
|
+
Object.setPrototypeOf(newBuf, Buffer3.prototype);
|
|
1195
|
+
return newBuf;
|
|
1196
|
+
};
|
|
1197
|
+
function checkOffset(offset, ext, length) {
|
|
1198
|
+
if (offset % 1 !== 0 || offset < 0)
|
|
1199
|
+
throw new RangeError("offset is not uint");
|
|
1200
|
+
if (offset + ext > length)
|
|
1201
|
+
throw new RangeError("Trying to access beyond buffer length");
|
|
1202
|
+
}
|
|
1203
|
+
Buffer3.prototype.readUintLE = Buffer3.prototype.readUIntLE = function readUIntLE(offset, byteLength2, noAssert) {
|
|
1204
|
+
offset = offset >>> 0;
|
|
1205
|
+
byteLength2 = byteLength2 >>> 0;
|
|
1206
|
+
if (!noAssert)
|
|
1207
|
+
checkOffset(offset, byteLength2, this.length);
|
|
1208
|
+
let val = this[offset];
|
|
1209
|
+
let mul = 1;
|
|
1210
|
+
let i = 0;
|
|
1211
|
+
while (++i < byteLength2 && (mul *= 256)) {
|
|
1212
|
+
val += this[offset + i] * mul;
|
|
1213
|
+
}
|
|
1214
|
+
return val;
|
|
1215
|
+
};
|
|
1216
|
+
Buffer3.prototype.readUintBE = Buffer3.prototype.readUIntBE = function readUIntBE(offset, byteLength2, noAssert) {
|
|
1217
|
+
offset = offset >>> 0;
|
|
1218
|
+
byteLength2 = byteLength2 >>> 0;
|
|
1219
|
+
if (!noAssert) {
|
|
1220
|
+
checkOffset(offset, byteLength2, this.length);
|
|
1221
|
+
}
|
|
1222
|
+
let val = this[offset + --byteLength2];
|
|
1223
|
+
let mul = 1;
|
|
1224
|
+
while (byteLength2 > 0 && (mul *= 256)) {
|
|
1225
|
+
val += this[offset + --byteLength2] * mul;
|
|
1226
|
+
}
|
|
1227
|
+
return val;
|
|
1228
|
+
};
|
|
1229
|
+
Buffer3.prototype.readUint8 = Buffer3.prototype.readUInt8 = function readUInt8(offset, noAssert) {
|
|
1230
|
+
offset = offset >>> 0;
|
|
1231
|
+
if (!noAssert)
|
|
1232
|
+
checkOffset(offset, 1, this.length);
|
|
1233
|
+
return this[offset];
|
|
1234
|
+
};
|
|
1235
|
+
Buffer3.prototype.readUint16LE = Buffer3.prototype.readUInt16LE = function readUInt16LE(offset, noAssert) {
|
|
1236
|
+
offset = offset >>> 0;
|
|
1237
|
+
if (!noAssert)
|
|
1238
|
+
checkOffset(offset, 2, this.length);
|
|
1239
|
+
return this[offset] | this[offset + 1] << 8;
|
|
1240
|
+
};
|
|
1241
|
+
Buffer3.prototype.readUint16BE = Buffer3.prototype.readUInt16BE = function readUInt16BE(offset, noAssert) {
|
|
1242
|
+
offset = offset >>> 0;
|
|
1243
|
+
if (!noAssert)
|
|
1244
|
+
checkOffset(offset, 2, this.length);
|
|
1245
|
+
return this[offset] << 8 | this[offset + 1];
|
|
1246
|
+
};
|
|
1247
|
+
Buffer3.prototype.readUint32LE = Buffer3.prototype.readUInt32LE = function readUInt32LE(offset, noAssert) {
|
|
1248
|
+
offset = offset >>> 0;
|
|
1249
|
+
if (!noAssert)
|
|
1250
|
+
checkOffset(offset, 4, this.length);
|
|
1251
|
+
return (this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16) + this[offset + 3] * 16777216;
|
|
1252
|
+
};
|
|
1253
|
+
Buffer3.prototype.readUint32BE = Buffer3.prototype.readUInt32BE = function readUInt32BE(offset, noAssert) {
|
|
1254
|
+
offset = offset >>> 0;
|
|
1255
|
+
if (!noAssert)
|
|
1256
|
+
checkOffset(offset, 4, this.length);
|
|
1257
|
+
return this[offset] * 16777216 + (this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3]);
|
|
1258
|
+
};
|
|
1259
|
+
Buffer3.prototype.readBigUInt64LE = defineBigIntMethod(function readBigUInt64LE(offset) {
|
|
1260
|
+
offset = offset >>> 0;
|
|
1261
|
+
validateNumber(offset, "offset");
|
|
1262
|
+
const first = this[offset];
|
|
1263
|
+
const last = this[offset + 7];
|
|
1264
|
+
if (first === void 0 || last === void 0) {
|
|
1265
|
+
boundsError(offset, this.length - 8);
|
|
1266
|
+
}
|
|
1267
|
+
const lo = first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24;
|
|
1268
|
+
const hi = this[++offset] + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + last * 2 ** 24;
|
|
1269
|
+
return BigInt(lo) + (BigInt(hi) << BigInt(32));
|
|
1270
|
+
});
|
|
1271
|
+
Buffer3.prototype.readBigUInt64BE = defineBigIntMethod(function readBigUInt64BE(offset) {
|
|
1272
|
+
offset = offset >>> 0;
|
|
1273
|
+
validateNumber(offset, "offset");
|
|
1274
|
+
const first = this[offset];
|
|
1275
|
+
const last = this[offset + 7];
|
|
1276
|
+
if (first === void 0 || last === void 0) {
|
|
1277
|
+
boundsError(offset, this.length - 8);
|
|
1278
|
+
}
|
|
1279
|
+
const hi = first * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
|
|
1280
|
+
const lo = this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last;
|
|
1281
|
+
return (BigInt(hi) << BigInt(32)) + BigInt(lo);
|
|
1282
|
+
});
|
|
1283
|
+
Buffer3.prototype.readIntLE = function readIntLE(offset, byteLength2, noAssert) {
|
|
1284
|
+
offset = offset >>> 0;
|
|
1285
|
+
byteLength2 = byteLength2 >>> 0;
|
|
1286
|
+
if (!noAssert)
|
|
1287
|
+
checkOffset(offset, byteLength2, this.length);
|
|
1288
|
+
let val = this[offset];
|
|
1289
|
+
let mul = 1;
|
|
1290
|
+
let i = 0;
|
|
1291
|
+
while (++i < byteLength2 && (mul *= 256)) {
|
|
1292
|
+
val += this[offset + i] * mul;
|
|
1293
|
+
}
|
|
1294
|
+
mul *= 128;
|
|
1295
|
+
if (val >= mul)
|
|
1296
|
+
val -= Math.pow(2, 8 * byteLength2);
|
|
1297
|
+
return val;
|
|
1298
|
+
};
|
|
1299
|
+
Buffer3.prototype.readIntBE = function readIntBE(offset, byteLength2, noAssert) {
|
|
1300
|
+
offset = offset >>> 0;
|
|
1301
|
+
byteLength2 = byteLength2 >>> 0;
|
|
1302
|
+
if (!noAssert)
|
|
1303
|
+
checkOffset(offset, byteLength2, this.length);
|
|
1304
|
+
let i = byteLength2;
|
|
1305
|
+
let mul = 1;
|
|
1306
|
+
let val = this[offset + --i];
|
|
1307
|
+
while (i > 0 && (mul *= 256)) {
|
|
1308
|
+
val += this[offset + --i] * mul;
|
|
1309
|
+
}
|
|
1310
|
+
mul *= 128;
|
|
1311
|
+
if (val >= mul)
|
|
1312
|
+
val -= Math.pow(2, 8 * byteLength2);
|
|
1313
|
+
return val;
|
|
1314
|
+
};
|
|
1315
|
+
Buffer3.prototype.readInt8 = function readInt8(offset, noAssert) {
|
|
1316
|
+
offset = offset >>> 0;
|
|
1317
|
+
if (!noAssert)
|
|
1318
|
+
checkOffset(offset, 1, this.length);
|
|
1319
|
+
if (!(this[offset] & 128))
|
|
1320
|
+
return this[offset];
|
|
1321
|
+
return (255 - this[offset] + 1) * -1;
|
|
1322
|
+
};
|
|
1323
|
+
Buffer3.prototype.readInt16LE = function readInt16LE(offset, noAssert) {
|
|
1324
|
+
offset = offset >>> 0;
|
|
1325
|
+
if (!noAssert)
|
|
1326
|
+
checkOffset(offset, 2, this.length);
|
|
1327
|
+
const val = this[offset] | this[offset + 1] << 8;
|
|
1328
|
+
return val & 32768 ? val | 4294901760 : val;
|
|
1329
|
+
};
|
|
1330
|
+
Buffer3.prototype.readInt16BE = function readInt16BE(offset, noAssert) {
|
|
1331
|
+
offset = offset >>> 0;
|
|
1332
|
+
if (!noAssert)
|
|
1333
|
+
checkOffset(offset, 2, this.length);
|
|
1334
|
+
const val = this[offset + 1] | this[offset] << 8;
|
|
1335
|
+
return val & 32768 ? val | 4294901760 : val;
|
|
1336
|
+
};
|
|
1337
|
+
Buffer3.prototype.readInt32LE = function readInt32LE(offset, noAssert) {
|
|
1338
|
+
offset = offset >>> 0;
|
|
1339
|
+
if (!noAssert)
|
|
1340
|
+
checkOffset(offset, 4, this.length);
|
|
1341
|
+
return this[offset] | this[offset + 1] << 8 | this[offset + 2] << 16 | this[offset + 3] << 24;
|
|
1342
|
+
};
|
|
1343
|
+
Buffer3.prototype.readInt32BE = function readInt32BE(offset, noAssert) {
|
|
1344
|
+
offset = offset >>> 0;
|
|
1345
|
+
if (!noAssert)
|
|
1346
|
+
checkOffset(offset, 4, this.length);
|
|
1347
|
+
return this[offset] << 24 | this[offset + 1] << 16 | this[offset + 2] << 8 | this[offset + 3];
|
|
1348
|
+
};
|
|
1349
|
+
Buffer3.prototype.readBigInt64LE = defineBigIntMethod(function readBigInt64LE(offset) {
|
|
1350
|
+
offset = offset >>> 0;
|
|
1351
|
+
validateNumber(offset, "offset");
|
|
1352
|
+
const first = this[offset];
|
|
1353
|
+
const last = this[offset + 7];
|
|
1354
|
+
if (first === void 0 || last === void 0) {
|
|
1355
|
+
boundsError(offset, this.length - 8);
|
|
1356
|
+
}
|
|
1357
|
+
const val = this[offset + 4] + this[offset + 5] * 2 ** 8 + this[offset + 6] * 2 ** 16 + (last << 24);
|
|
1358
|
+
return (BigInt(val) << BigInt(32)) + BigInt(first + this[++offset] * 2 ** 8 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 24);
|
|
1359
|
+
});
|
|
1360
|
+
Buffer3.prototype.readBigInt64BE = defineBigIntMethod(function readBigInt64BE(offset) {
|
|
1361
|
+
offset = offset >>> 0;
|
|
1362
|
+
validateNumber(offset, "offset");
|
|
1363
|
+
const first = this[offset];
|
|
1364
|
+
const last = this[offset + 7];
|
|
1365
|
+
if (first === void 0 || last === void 0) {
|
|
1366
|
+
boundsError(offset, this.length - 8);
|
|
1367
|
+
}
|
|
1368
|
+
const val = (first << 24) + // Overflow
|
|
1369
|
+
this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + this[++offset];
|
|
1370
|
+
return (BigInt(val) << BigInt(32)) + BigInt(this[++offset] * 2 ** 24 + this[++offset] * 2 ** 16 + this[++offset] * 2 ** 8 + last);
|
|
1371
|
+
});
|
|
1372
|
+
Buffer3.prototype.readFloatLE = function readFloatLE(offset, noAssert) {
|
|
1373
|
+
offset = offset >>> 0;
|
|
1374
|
+
if (!noAssert)
|
|
1375
|
+
checkOffset(offset, 4, this.length);
|
|
1376
|
+
return ieee754.read(this, offset, true, 23, 4);
|
|
1377
|
+
};
|
|
1378
|
+
Buffer3.prototype.readFloatBE = function readFloatBE(offset, noAssert) {
|
|
1379
|
+
offset = offset >>> 0;
|
|
1380
|
+
if (!noAssert)
|
|
1381
|
+
checkOffset(offset, 4, this.length);
|
|
1382
|
+
return ieee754.read(this, offset, false, 23, 4);
|
|
1383
|
+
};
|
|
1384
|
+
Buffer3.prototype.readDoubleLE = function readDoubleLE(offset, noAssert) {
|
|
1385
|
+
offset = offset >>> 0;
|
|
1386
|
+
if (!noAssert)
|
|
1387
|
+
checkOffset(offset, 8, this.length);
|
|
1388
|
+
return ieee754.read(this, offset, true, 52, 8);
|
|
1389
|
+
};
|
|
1390
|
+
Buffer3.prototype.readDoubleBE = function readDoubleBE(offset, noAssert) {
|
|
1391
|
+
offset = offset >>> 0;
|
|
1392
|
+
if (!noAssert)
|
|
1393
|
+
checkOffset(offset, 8, this.length);
|
|
1394
|
+
return ieee754.read(this, offset, false, 52, 8);
|
|
1395
|
+
};
|
|
1396
|
+
function checkInt(buf, value, offset, ext, max, min) {
|
|
1397
|
+
if (!Buffer3.isBuffer(buf))
|
|
1398
|
+
throw new TypeError('"buffer" argument must be a Buffer instance');
|
|
1399
|
+
if (value > max || value < min)
|
|
1400
|
+
throw new RangeError('"value" argument is out of bounds');
|
|
1401
|
+
if (offset + ext > buf.length)
|
|
1402
|
+
throw new RangeError("Index out of range");
|
|
1403
|
+
}
|
|
1404
|
+
Buffer3.prototype.writeUintLE = Buffer3.prototype.writeUIntLE = function writeUIntLE(value, offset, byteLength2, noAssert) {
|
|
1405
|
+
value = +value;
|
|
1406
|
+
offset = offset >>> 0;
|
|
1407
|
+
byteLength2 = byteLength2 >>> 0;
|
|
1408
|
+
if (!noAssert) {
|
|
1409
|
+
const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
|
|
1410
|
+
checkInt(this, value, offset, byteLength2, maxBytes, 0);
|
|
1411
|
+
}
|
|
1412
|
+
let mul = 1;
|
|
1413
|
+
let i = 0;
|
|
1414
|
+
this[offset] = value & 255;
|
|
1415
|
+
while (++i < byteLength2 && (mul *= 256)) {
|
|
1416
|
+
this[offset + i] = value / mul & 255;
|
|
1417
|
+
}
|
|
1418
|
+
return offset + byteLength2;
|
|
1419
|
+
};
|
|
1420
|
+
Buffer3.prototype.writeUintBE = Buffer3.prototype.writeUIntBE = function writeUIntBE(value, offset, byteLength2, noAssert) {
|
|
1421
|
+
value = +value;
|
|
1422
|
+
offset = offset >>> 0;
|
|
1423
|
+
byteLength2 = byteLength2 >>> 0;
|
|
1424
|
+
if (!noAssert) {
|
|
1425
|
+
const maxBytes = Math.pow(2, 8 * byteLength2) - 1;
|
|
1426
|
+
checkInt(this, value, offset, byteLength2, maxBytes, 0);
|
|
1427
|
+
}
|
|
1428
|
+
let i = byteLength2 - 1;
|
|
1429
|
+
let mul = 1;
|
|
1430
|
+
this[offset + i] = value & 255;
|
|
1431
|
+
while (--i >= 0 && (mul *= 256)) {
|
|
1432
|
+
this[offset + i] = value / mul & 255;
|
|
1433
|
+
}
|
|
1434
|
+
return offset + byteLength2;
|
|
1435
|
+
};
|
|
1436
|
+
Buffer3.prototype.writeUint8 = Buffer3.prototype.writeUInt8 = function writeUInt8(value, offset, noAssert) {
|
|
1437
|
+
value = +value;
|
|
1438
|
+
offset = offset >>> 0;
|
|
1439
|
+
if (!noAssert)
|
|
1440
|
+
checkInt(this, value, offset, 1, 255, 0);
|
|
1441
|
+
this[offset] = value & 255;
|
|
1442
|
+
return offset + 1;
|
|
1443
|
+
};
|
|
1444
|
+
Buffer3.prototype.writeUint16LE = Buffer3.prototype.writeUInt16LE = function writeUInt16LE(value, offset, noAssert) {
|
|
1445
|
+
value = +value;
|
|
1446
|
+
offset = offset >>> 0;
|
|
1447
|
+
if (!noAssert)
|
|
1448
|
+
checkInt(this, value, offset, 2, 65535, 0);
|
|
1449
|
+
this[offset] = value & 255;
|
|
1450
|
+
this[offset + 1] = value >>> 8;
|
|
1451
|
+
return offset + 2;
|
|
1452
|
+
};
|
|
1453
|
+
Buffer3.prototype.writeUint16BE = Buffer3.prototype.writeUInt16BE = function writeUInt16BE(value, offset, noAssert) {
|
|
1454
|
+
value = +value;
|
|
1455
|
+
offset = offset >>> 0;
|
|
1456
|
+
if (!noAssert)
|
|
1457
|
+
checkInt(this, value, offset, 2, 65535, 0);
|
|
1458
|
+
this[offset] = value >>> 8;
|
|
1459
|
+
this[offset + 1] = value & 255;
|
|
1460
|
+
return offset + 2;
|
|
1461
|
+
};
|
|
1462
|
+
Buffer3.prototype.writeUint32LE = Buffer3.prototype.writeUInt32LE = function writeUInt32LE(value, offset, noAssert) {
|
|
1463
|
+
value = +value;
|
|
1464
|
+
offset = offset >>> 0;
|
|
1465
|
+
if (!noAssert)
|
|
1466
|
+
checkInt(this, value, offset, 4, 4294967295, 0);
|
|
1467
|
+
this[offset + 3] = value >>> 24;
|
|
1468
|
+
this[offset + 2] = value >>> 16;
|
|
1469
|
+
this[offset + 1] = value >>> 8;
|
|
1470
|
+
this[offset] = value & 255;
|
|
1471
|
+
return offset + 4;
|
|
1472
|
+
};
|
|
1473
|
+
Buffer3.prototype.writeUint32BE = Buffer3.prototype.writeUInt32BE = function writeUInt32BE(value, offset, noAssert) {
|
|
1474
|
+
value = +value;
|
|
1475
|
+
offset = offset >>> 0;
|
|
1476
|
+
if (!noAssert)
|
|
1477
|
+
checkInt(this, value, offset, 4, 4294967295, 0);
|
|
1478
|
+
this[offset] = value >>> 24;
|
|
1479
|
+
this[offset + 1] = value >>> 16;
|
|
1480
|
+
this[offset + 2] = value >>> 8;
|
|
1481
|
+
this[offset + 3] = value & 255;
|
|
1482
|
+
return offset + 4;
|
|
1483
|
+
};
|
|
1484
|
+
function wrtBigUInt64LE(buf, value, offset, min, max) {
|
|
1485
|
+
checkIntBI(value, min, max, buf, offset, 7);
|
|
1486
|
+
let lo = Number(value & BigInt(4294967295));
|
|
1487
|
+
buf[offset++] = lo;
|
|
1488
|
+
lo = lo >> 8;
|
|
1489
|
+
buf[offset++] = lo;
|
|
1490
|
+
lo = lo >> 8;
|
|
1491
|
+
buf[offset++] = lo;
|
|
1492
|
+
lo = lo >> 8;
|
|
1493
|
+
buf[offset++] = lo;
|
|
1494
|
+
let hi = Number(value >> BigInt(32) & BigInt(4294967295));
|
|
1495
|
+
buf[offset++] = hi;
|
|
1496
|
+
hi = hi >> 8;
|
|
1497
|
+
buf[offset++] = hi;
|
|
1498
|
+
hi = hi >> 8;
|
|
1499
|
+
buf[offset++] = hi;
|
|
1500
|
+
hi = hi >> 8;
|
|
1501
|
+
buf[offset++] = hi;
|
|
1502
|
+
return offset;
|
|
1503
|
+
}
|
|
1504
|
+
function wrtBigUInt64BE(buf, value, offset, min, max) {
|
|
1505
|
+
checkIntBI(value, min, max, buf, offset, 7);
|
|
1506
|
+
let lo = Number(value & BigInt(4294967295));
|
|
1507
|
+
buf[offset + 7] = lo;
|
|
1508
|
+
lo = lo >> 8;
|
|
1509
|
+
buf[offset + 6] = lo;
|
|
1510
|
+
lo = lo >> 8;
|
|
1511
|
+
buf[offset + 5] = lo;
|
|
1512
|
+
lo = lo >> 8;
|
|
1513
|
+
buf[offset + 4] = lo;
|
|
1514
|
+
let hi = Number(value >> BigInt(32) & BigInt(4294967295));
|
|
1515
|
+
buf[offset + 3] = hi;
|
|
1516
|
+
hi = hi >> 8;
|
|
1517
|
+
buf[offset + 2] = hi;
|
|
1518
|
+
hi = hi >> 8;
|
|
1519
|
+
buf[offset + 1] = hi;
|
|
1520
|
+
hi = hi >> 8;
|
|
1521
|
+
buf[offset] = hi;
|
|
1522
|
+
return offset + 8;
|
|
1523
|
+
}
|
|
1524
|
+
Buffer3.prototype.writeBigUInt64LE = defineBigIntMethod(function writeBigUInt64LE(value, offset = 0) {
|
|
1525
|
+
return wrtBigUInt64LE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1526
|
+
});
|
|
1527
|
+
Buffer3.prototype.writeBigUInt64BE = defineBigIntMethod(function writeBigUInt64BE(value, offset = 0) {
|
|
1528
|
+
return wrtBigUInt64BE(this, value, offset, BigInt(0), BigInt("0xffffffffffffffff"));
|
|
1529
|
+
});
|
|
1530
|
+
Buffer3.prototype.writeIntLE = function writeIntLE(value, offset, byteLength2, noAssert) {
|
|
1531
|
+
value = +value;
|
|
1532
|
+
offset = offset >>> 0;
|
|
1533
|
+
if (!noAssert) {
|
|
1534
|
+
const limit = Math.pow(2, 8 * byteLength2 - 1);
|
|
1535
|
+
checkInt(this, value, offset, byteLength2, limit - 1, -limit);
|
|
1536
|
+
}
|
|
1537
|
+
let i = 0;
|
|
1538
|
+
let mul = 1;
|
|
1539
|
+
let sub = 0;
|
|
1540
|
+
this[offset] = value & 255;
|
|
1541
|
+
while (++i < byteLength2 && (mul *= 256)) {
|
|
1542
|
+
if (value < 0 && sub === 0 && this[offset + i - 1] !== 0) {
|
|
1543
|
+
sub = 1;
|
|
1544
|
+
}
|
|
1545
|
+
this[offset + i] = (value / mul >> 0) - sub & 255;
|
|
1546
|
+
}
|
|
1547
|
+
return offset + byteLength2;
|
|
1548
|
+
};
|
|
1549
|
+
Buffer3.prototype.writeIntBE = function writeIntBE(value, offset, byteLength2, noAssert) {
|
|
1550
|
+
value = +value;
|
|
1551
|
+
offset = offset >>> 0;
|
|
1552
|
+
if (!noAssert) {
|
|
1553
|
+
const limit = Math.pow(2, 8 * byteLength2 - 1);
|
|
1554
|
+
checkInt(this, value, offset, byteLength2, limit - 1, -limit);
|
|
1555
|
+
}
|
|
1556
|
+
let i = byteLength2 - 1;
|
|
1557
|
+
let mul = 1;
|
|
1558
|
+
let sub = 0;
|
|
1559
|
+
this[offset + i] = value & 255;
|
|
1560
|
+
while (--i >= 0 && (mul *= 256)) {
|
|
1561
|
+
if (value < 0 && sub === 0 && this[offset + i + 1] !== 0) {
|
|
1562
|
+
sub = 1;
|
|
1563
|
+
}
|
|
1564
|
+
this[offset + i] = (value / mul >> 0) - sub & 255;
|
|
1565
|
+
}
|
|
1566
|
+
return offset + byteLength2;
|
|
1567
|
+
};
|
|
1568
|
+
Buffer3.prototype.writeInt8 = function writeInt8(value, offset, noAssert) {
|
|
1569
|
+
value = +value;
|
|
1570
|
+
offset = offset >>> 0;
|
|
1571
|
+
if (!noAssert)
|
|
1572
|
+
checkInt(this, value, offset, 1, 127, -128);
|
|
1573
|
+
if (value < 0)
|
|
1574
|
+
value = 255 + value + 1;
|
|
1575
|
+
this[offset] = value & 255;
|
|
1576
|
+
return offset + 1;
|
|
1577
|
+
};
|
|
1578
|
+
Buffer3.prototype.writeInt16LE = function writeInt16LE(value, offset, noAssert) {
|
|
1579
|
+
value = +value;
|
|
1580
|
+
offset = offset >>> 0;
|
|
1581
|
+
if (!noAssert)
|
|
1582
|
+
checkInt(this, value, offset, 2, 32767, -32768);
|
|
1583
|
+
this[offset] = value & 255;
|
|
1584
|
+
this[offset + 1] = value >>> 8;
|
|
1585
|
+
return offset + 2;
|
|
1586
|
+
};
|
|
1587
|
+
Buffer3.prototype.writeInt16BE = function writeInt16BE(value, offset, noAssert) {
|
|
1588
|
+
value = +value;
|
|
1589
|
+
offset = offset >>> 0;
|
|
1590
|
+
if (!noAssert)
|
|
1591
|
+
checkInt(this, value, offset, 2, 32767, -32768);
|
|
1592
|
+
this[offset] = value >>> 8;
|
|
1593
|
+
this[offset + 1] = value & 255;
|
|
1594
|
+
return offset + 2;
|
|
1595
|
+
};
|
|
1596
|
+
Buffer3.prototype.writeInt32LE = function writeInt32LE(value, offset, noAssert) {
|
|
1597
|
+
value = +value;
|
|
1598
|
+
offset = offset >>> 0;
|
|
1599
|
+
if (!noAssert)
|
|
1600
|
+
checkInt(this, value, offset, 4, 2147483647, -2147483648);
|
|
1601
|
+
this[offset] = value & 255;
|
|
1602
|
+
this[offset + 1] = value >>> 8;
|
|
1603
|
+
this[offset + 2] = value >>> 16;
|
|
1604
|
+
this[offset + 3] = value >>> 24;
|
|
1605
|
+
return offset + 4;
|
|
1606
|
+
};
|
|
1607
|
+
Buffer3.prototype.writeInt32BE = function writeInt32BE(value, offset, noAssert) {
|
|
1608
|
+
value = +value;
|
|
1609
|
+
offset = offset >>> 0;
|
|
1610
|
+
if (!noAssert)
|
|
1611
|
+
checkInt(this, value, offset, 4, 2147483647, -2147483648);
|
|
1612
|
+
if (value < 0)
|
|
1613
|
+
value = 4294967295 + value + 1;
|
|
1614
|
+
this[offset] = value >>> 24;
|
|
1615
|
+
this[offset + 1] = value >>> 16;
|
|
1616
|
+
this[offset + 2] = value >>> 8;
|
|
1617
|
+
this[offset + 3] = value & 255;
|
|
1618
|
+
return offset + 4;
|
|
1619
|
+
};
|
|
1620
|
+
Buffer3.prototype.writeBigInt64LE = defineBigIntMethod(function writeBigInt64LE(value, offset = 0) {
|
|
1621
|
+
return wrtBigUInt64LE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1622
|
+
});
|
|
1623
|
+
Buffer3.prototype.writeBigInt64BE = defineBigIntMethod(function writeBigInt64BE(value, offset = 0) {
|
|
1624
|
+
return wrtBigUInt64BE(this, value, offset, -BigInt("0x8000000000000000"), BigInt("0x7fffffffffffffff"));
|
|
1625
|
+
});
|
|
1626
|
+
function checkIEEE754(buf, value, offset, ext, max, min) {
|
|
1627
|
+
if (offset + ext > buf.length)
|
|
1628
|
+
throw new RangeError("Index out of range");
|
|
1629
|
+
if (offset < 0)
|
|
1630
|
+
throw new RangeError("Index out of range");
|
|
1631
|
+
}
|
|
1632
|
+
function writeFloat(buf, value, offset, littleEndian, noAssert) {
|
|
1633
|
+
value = +value;
|
|
1634
|
+
offset = offset >>> 0;
|
|
1635
|
+
if (!noAssert) {
|
|
1636
|
+
checkIEEE754(buf, value, offset, 4);
|
|
1637
|
+
}
|
|
1638
|
+
ieee754.write(buf, value, offset, littleEndian, 23, 4);
|
|
1639
|
+
return offset + 4;
|
|
1640
|
+
}
|
|
1641
|
+
Buffer3.prototype.writeFloatLE = function writeFloatLE(value, offset, noAssert) {
|
|
1642
|
+
return writeFloat(this, value, offset, true, noAssert);
|
|
1643
|
+
};
|
|
1644
|
+
Buffer3.prototype.writeFloatBE = function writeFloatBE(value, offset, noAssert) {
|
|
1645
|
+
return writeFloat(this, value, offset, false, noAssert);
|
|
1646
|
+
};
|
|
1647
|
+
function writeDouble(buf, value, offset, littleEndian, noAssert) {
|
|
1648
|
+
value = +value;
|
|
1649
|
+
offset = offset >>> 0;
|
|
1650
|
+
if (!noAssert) {
|
|
1651
|
+
checkIEEE754(buf, value, offset, 8);
|
|
1652
|
+
}
|
|
1653
|
+
ieee754.write(buf, value, offset, littleEndian, 52, 8);
|
|
1654
|
+
return offset + 8;
|
|
1655
|
+
}
|
|
1656
|
+
Buffer3.prototype.writeDoubleLE = function writeDoubleLE(value, offset, noAssert) {
|
|
1657
|
+
return writeDouble(this, value, offset, true, noAssert);
|
|
1658
|
+
};
|
|
1659
|
+
Buffer3.prototype.writeDoubleBE = function writeDoubleBE(value, offset, noAssert) {
|
|
1660
|
+
return writeDouble(this, value, offset, false, noAssert);
|
|
1661
|
+
};
|
|
1662
|
+
Buffer3.prototype.copy = function copy(target, targetStart, start, end) {
|
|
1663
|
+
if (!Buffer3.isBuffer(target))
|
|
1664
|
+
throw new TypeError("argument should be a Buffer");
|
|
1665
|
+
if (!start)
|
|
1666
|
+
start = 0;
|
|
1667
|
+
if (!end && end !== 0)
|
|
1668
|
+
end = this.length;
|
|
1669
|
+
if (targetStart >= target.length)
|
|
1670
|
+
targetStart = target.length;
|
|
1671
|
+
if (!targetStart)
|
|
1672
|
+
targetStart = 0;
|
|
1673
|
+
if (end > 0 && end < start)
|
|
1674
|
+
end = start;
|
|
1675
|
+
if (end === start)
|
|
1676
|
+
return 0;
|
|
1677
|
+
if (target.length === 0 || this.length === 0)
|
|
1678
|
+
return 0;
|
|
1679
|
+
if (targetStart < 0) {
|
|
1680
|
+
throw new RangeError("targetStart out of bounds");
|
|
1681
|
+
}
|
|
1682
|
+
if (start < 0 || start >= this.length)
|
|
1683
|
+
throw new RangeError("Index out of range");
|
|
1684
|
+
if (end < 0)
|
|
1685
|
+
throw new RangeError("sourceEnd out of bounds");
|
|
1686
|
+
if (end > this.length)
|
|
1687
|
+
end = this.length;
|
|
1688
|
+
if (target.length - targetStart < end - start) {
|
|
1689
|
+
end = target.length - targetStart + start;
|
|
1690
|
+
}
|
|
1691
|
+
const len = end - start;
|
|
1692
|
+
if (this === target && typeof Uint8Array.prototype.copyWithin === "function") {
|
|
1693
|
+
this.copyWithin(targetStart, start, end);
|
|
1694
|
+
} else {
|
|
1695
|
+
Uint8Array.prototype.set.call(target, this.subarray(start, end), targetStart);
|
|
1696
|
+
}
|
|
1697
|
+
return len;
|
|
1698
|
+
};
|
|
1699
|
+
Buffer3.prototype.fill = function fill(val, start, end, encoding) {
|
|
1700
|
+
if (typeof val === "string") {
|
|
1701
|
+
if (typeof start === "string") {
|
|
1702
|
+
encoding = start;
|
|
1703
|
+
start = 0;
|
|
1704
|
+
end = this.length;
|
|
1705
|
+
} else if (typeof end === "string") {
|
|
1706
|
+
encoding = end;
|
|
1707
|
+
end = this.length;
|
|
1708
|
+
}
|
|
1709
|
+
if (encoding !== void 0 && typeof encoding !== "string") {
|
|
1710
|
+
throw new TypeError("encoding must be a string");
|
|
1711
|
+
}
|
|
1712
|
+
if (typeof encoding === "string" && !Buffer3.isEncoding(encoding)) {
|
|
1713
|
+
throw new TypeError("Unknown encoding: " + encoding);
|
|
1714
|
+
}
|
|
1715
|
+
if (val.length === 1) {
|
|
1716
|
+
const code = val.charCodeAt(0);
|
|
1717
|
+
if (encoding === "utf8" && code < 128 || encoding === "latin1") {
|
|
1718
|
+
val = code;
|
|
1719
|
+
}
|
|
1720
|
+
}
|
|
1721
|
+
} else if (typeof val === "number") {
|
|
1722
|
+
val = val & 255;
|
|
1723
|
+
} else if (typeof val === "boolean") {
|
|
1724
|
+
val = Number(val);
|
|
1725
|
+
}
|
|
1726
|
+
if (start < 0 || this.length < start || this.length < end) {
|
|
1727
|
+
throw new RangeError("Out of range index");
|
|
1728
|
+
}
|
|
1729
|
+
if (end <= start) {
|
|
1730
|
+
return this;
|
|
1731
|
+
}
|
|
1732
|
+
start = start >>> 0;
|
|
1733
|
+
end = end === void 0 ? this.length : end >>> 0;
|
|
1734
|
+
if (!val)
|
|
1735
|
+
val = 0;
|
|
1736
|
+
let i;
|
|
1737
|
+
if (typeof val === "number") {
|
|
1738
|
+
for (i = start; i < end; ++i) {
|
|
1739
|
+
this[i] = val;
|
|
1740
|
+
}
|
|
1741
|
+
} else {
|
|
1742
|
+
const bytes = Buffer3.isBuffer(val) ? val : Buffer3.from(val, encoding);
|
|
1743
|
+
const len = bytes.length;
|
|
1744
|
+
if (len === 0) {
|
|
1745
|
+
throw new TypeError('The value "' + val + '" is invalid for argument "value"');
|
|
1746
|
+
}
|
|
1747
|
+
for (i = 0; i < end - start; ++i) {
|
|
1748
|
+
this[i + start] = bytes[i % len];
|
|
1749
|
+
}
|
|
1750
|
+
}
|
|
1751
|
+
return this;
|
|
1752
|
+
};
|
|
1753
|
+
const errors = {};
|
|
1754
|
+
function E(sym, getMessage, Base) {
|
|
1755
|
+
errors[sym] = class NodeError extends Base {
|
|
1756
|
+
constructor() {
|
|
1757
|
+
super();
|
|
1758
|
+
Object.defineProperty(this, "message", {
|
|
1759
|
+
value: getMessage.apply(this, arguments),
|
|
1760
|
+
writable: true,
|
|
1761
|
+
configurable: true
|
|
1762
|
+
});
|
|
1763
|
+
this.name = `${this.name} [${sym}]`;
|
|
1764
|
+
this.stack;
|
|
1765
|
+
delete this.name;
|
|
1766
|
+
}
|
|
1767
|
+
get code() {
|
|
1768
|
+
return sym;
|
|
1769
|
+
}
|
|
1770
|
+
set code(value) {
|
|
1771
|
+
Object.defineProperty(this, "code", {
|
|
1772
|
+
configurable: true,
|
|
1773
|
+
enumerable: true,
|
|
1774
|
+
value,
|
|
1775
|
+
writable: true
|
|
1776
|
+
});
|
|
1777
|
+
}
|
|
1778
|
+
toString() {
|
|
1779
|
+
return `${this.name} [${sym}]: ${this.message}`;
|
|
1780
|
+
}
|
|
1781
|
+
};
|
|
1782
|
+
}
|
|
1783
|
+
E("ERR_BUFFER_OUT_OF_BOUNDS", function(name) {
|
|
1784
|
+
if (name) {
|
|
1785
|
+
return `${name} is outside of buffer bounds`;
|
|
1786
|
+
}
|
|
1787
|
+
return "Attempt to access memory outside buffer bounds";
|
|
1788
|
+
}, RangeError);
|
|
1789
|
+
E("ERR_INVALID_ARG_TYPE", function(name, actual) {
|
|
1790
|
+
return `The "${name}" argument must be of type number. Received type ${typeof actual}`;
|
|
1791
|
+
}, TypeError);
|
|
1792
|
+
E("ERR_OUT_OF_RANGE", function(str, range, input) {
|
|
1793
|
+
let msg = `The value of "${str}" is out of range.`;
|
|
1794
|
+
let received = input;
|
|
1795
|
+
if (Number.isInteger(input) && Math.abs(input) > 2 ** 32) {
|
|
1796
|
+
received = addNumericalSeparator(String(input));
|
|
1797
|
+
} else if (typeof input === "bigint") {
|
|
1798
|
+
received = String(input);
|
|
1799
|
+
if (input > BigInt(2) ** BigInt(32) || input < -(BigInt(2) ** BigInt(32))) {
|
|
1800
|
+
received = addNumericalSeparator(received);
|
|
1801
|
+
}
|
|
1802
|
+
received += "n";
|
|
1803
|
+
}
|
|
1804
|
+
msg += ` It must be ${range}. Received ${received}`;
|
|
1805
|
+
return msg;
|
|
1806
|
+
}, RangeError);
|
|
1807
|
+
function addNumericalSeparator(val) {
|
|
1808
|
+
let res = "";
|
|
1809
|
+
let i = val.length;
|
|
1810
|
+
const start = val[0] === "-" ? 1 : 0;
|
|
1811
|
+
for (; i >= start + 4; i -= 3) {
|
|
1812
|
+
res = `_${val.slice(i - 3, i)}${res}`;
|
|
1813
|
+
}
|
|
1814
|
+
return `${val.slice(0, i)}${res}`;
|
|
1815
|
+
}
|
|
1816
|
+
function checkBounds(buf, offset, byteLength2) {
|
|
1817
|
+
validateNumber(offset, "offset");
|
|
1818
|
+
if (buf[offset] === void 0 || buf[offset + byteLength2] === void 0) {
|
|
1819
|
+
boundsError(offset, buf.length - (byteLength2 + 1));
|
|
1820
|
+
}
|
|
1821
|
+
}
|
|
1822
|
+
function checkIntBI(value, min, max, buf, offset, byteLength2) {
|
|
1823
|
+
if (value > max || value < min) {
|
|
1824
|
+
const n = typeof min === "bigint" ? "n" : "";
|
|
1825
|
+
let range;
|
|
1826
|
+
{
|
|
1827
|
+
if (min === 0 || min === BigInt(0)) {
|
|
1828
|
+
range = `>= 0${n} and < 2${n} ** ${(byteLength2 + 1) * 8}${n}`;
|
|
1829
|
+
} else {
|
|
1830
|
+
range = `>= -(2${n} ** ${(byteLength2 + 1) * 8 - 1}${n}) and < 2 ** ${(byteLength2 + 1) * 8 - 1}${n}`;
|
|
1831
|
+
}
|
|
1832
|
+
}
|
|
1833
|
+
throw new errors.ERR_OUT_OF_RANGE("value", range, value);
|
|
1834
|
+
}
|
|
1835
|
+
checkBounds(buf, offset, byteLength2);
|
|
1836
|
+
}
|
|
1837
|
+
function validateNumber(value, name) {
|
|
1838
|
+
if (typeof value !== "number") {
|
|
1839
|
+
throw new errors.ERR_INVALID_ARG_TYPE(name, "number", value);
|
|
1840
|
+
}
|
|
1841
|
+
}
|
|
1842
|
+
function boundsError(value, length, type) {
|
|
1843
|
+
if (Math.floor(value) !== value) {
|
|
1844
|
+
validateNumber(value, type);
|
|
1845
|
+
throw new errors.ERR_OUT_OF_RANGE("offset", "an integer", value);
|
|
1846
|
+
}
|
|
1847
|
+
if (length < 0) {
|
|
1848
|
+
throw new errors.ERR_BUFFER_OUT_OF_BOUNDS();
|
|
1849
|
+
}
|
|
1850
|
+
throw new errors.ERR_OUT_OF_RANGE("offset", `>= ${0} and <= ${length}`, value);
|
|
1851
|
+
}
|
|
1852
|
+
const INVALID_BASE64_RE = /[^+/0-9A-Za-z-_]/g;
|
|
1853
|
+
function base64clean(str) {
|
|
1854
|
+
str = str.split("=")[0];
|
|
1855
|
+
str = str.trim().replace(INVALID_BASE64_RE, "");
|
|
1856
|
+
if (str.length < 2)
|
|
1857
|
+
return "";
|
|
1858
|
+
while (str.length % 4 !== 0) {
|
|
1859
|
+
str = str + "=";
|
|
1860
|
+
}
|
|
1861
|
+
return str;
|
|
1862
|
+
}
|
|
1863
|
+
function utf8ToBytes(string, units) {
|
|
1864
|
+
units = units || Infinity;
|
|
1865
|
+
let codePoint;
|
|
1866
|
+
const length = string.length;
|
|
1867
|
+
let leadSurrogate = null;
|
|
1868
|
+
const bytes = [];
|
|
1869
|
+
for (let i = 0; i < length; ++i) {
|
|
1870
|
+
codePoint = string.charCodeAt(i);
|
|
1871
|
+
if (codePoint > 55295 && codePoint < 57344) {
|
|
1872
|
+
if (!leadSurrogate) {
|
|
1873
|
+
if (codePoint > 56319) {
|
|
1874
|
+
if ((units -= 3) > -1)
|
|
1875
|
+
bytes.push(239, 191, 189);
|
|
1876
|
+
continue;
|
|
1877
|
+
} else if (i + 1 === length) {
|
|
1878
|
+
if ((units -= 3) > -1)
|
|
1879
|
+
bytes.push(239, 191, 189);
|
|
1880
|
+
continue;
|
|
1881
|
+
}
|
|
1882
|
+
leadSurrogate = codePoint;
|
|
1883
|
+
continue;
|
|
1884
|
+
}
|
|
1885
|
+
if (codePoint < 56320) {
|
|
1886
|
+
if ((units -= 3) > -1)
|
|
1887
|
+
bytes.push(239, 191, 189);
|
|
1888
|
+
leadSurrogate = codePoint;
|
|
1889
|
+
continue;
|
|
1890
|
+
}
|
|
1891
|
+
codePoint = (leadSurrogate - 55296 << 10 | codePoint - 56320) + 65536;
|
|
1892
|
+
} else if (leadSurrogate) {
|
|
1893
|
+
if ((units -= 3) > -1)
|
|
1894
|
+
bytes.push(239, 191, 189);
|
|
1895
|
+
}
|
|
1896
|
+
leadSurrogate = null;
|
|
1897
|
+
if (codePoint < 128) {
|
|
1898
|
+
if ((units -= 1) < 0)
|
|
1899
|
+
break;
|
|
1900
|
+
bytes.push(codePoint);
|
|
1901
|
+
} else if (codePoint < 2048) {
|
|
1902
|
+
if ((units -= 2) < 0)
|
|
1903
|
+
break;
|
|
1904
|
+
bytes.push(codePoint >> 6 | 192, codePoint & 63 | 128);
|
|
1905
|
+
} else if (codePoint < 65536) {
|
|
1906
|
+
if ((units -= 3) < 0)
|
|
1907
|
+
break;
|
|
1908
|
+
bytes.push(codePoint >> 12 | 224, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
|
|
1909
|
+
} else if (codePoint < 1114112) {
|
|
1910
|
+
if ((units -= 4) < 0)
|
|
1911
|
+
break;
|
|
1912
|
+
bytes.push(codePoint >> 18 | 240, codePoint >> 12 & 63 | 128, codePoint >> 6 & 63 | 128, codePoint & 63 | 128);
|
|
1913
|
+
} else {
|
|
1914
|
+
throw new Error("Invalid code point");
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
return bytes;
|
|
1918
|
+
}
|
|
1919
|
+
function asciiToBytes(str) {
|
|
1920
|
+
const byteArray = [];
|
|
1921
|
+
for (let i = 0; i < str.length; ++i) {
|
|
1922
|
+
byteArray.push(str.charCodeAt(i) & 255);
|
|
1923
|
+
}
|
|
1924
|
+
return byteArray;
|
|
1925
|
+
}
|
|
1926
|
+
function utf16leToBytes(str, units) {
|
|
1927
|
+
let c, hi, lo;
|
|
1928
|
+
const byteArray = [];
|
|
1929
|
+
for (let i = 0; i < str.length; ++i) {
|
|
1930
|
+
if ((units -= 2) < 0)
|
|
1931
|
+
break;
|
|
1932
|
+
c = str.charCodeAt(i);
|
|
1933
|
+
hi = c >> 8;
|
|
1934
|
+
lo = c % 256;
|
|
1935
|
+
byteArray.push(lo);
|
|
1936
|
+
byteArray.push(hi);
|
|
1937
|
+
}
|
|
1938
|
+
return byteArray;
|
|
1939
|
+
}
|
|
1940
|
+
function base64ToBytes(str) {
|
|
1941
|
+
return base64.toByteArray(base64clean(str));
|
|
1942
|
+
}
|
|
1943
|
+
function blitBuffer(src, dst, offset, length) {
|
|
1944
|
+
let i;
|
|
1945
|
+
for (i = 0; i < length; ++i) {
|
|
1946
|
+
if (i + offset >= dst.length || i >= src.length)
|
|
1947
|
+
break;
|
|
1948
|
+
dst[i + offset] = src[i];
|
|
1949
|
+
}
|
|
1950
|
+
return i;
|
|
1951
|
+
}
|
|
1952
|
+
function isInstance(obj, type) {
|
|
1953
|
+
return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
|
|
1954
|
+
}
|
|
1955
|
+
function numberIsNaN(obj) {
|
|
1956
|
+
return obj !== obj;
|
|
1957
|
+
}
|
|
1958
|
+
const hexSliceLookupTable = function() {
|
|
1959
|
+
const alphabet = "0123456789abcdef";
|
|
1960
|
+
const table = new Array(256);
|
|
1961
|
+
for (let i = 0; i < 16; ++i) {
|
|
1962
|
+
const i16 = i * 16;
|
|
1963
|
+
for (let j = 0; j < 16; ++j) {
|
|
1964
|
+
table[i16 + j] = alphabet[i] + alphabet[j];
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
return table;
|
|
1968
|
+
}();
|
|
1969
|
+
function defineBigIntMethod(fn) {
|
|
1970
|
+
return typeof BigInt === "undefined" ? BufferBigIntNotDefined : fn;
|
|
1971
|
+
}
|
|
1972
|
+
function BufferBigIntNotDefined() {
|
|
1973
|
+
throw new Error("BigInt not supported");
|
|
1974
|
+
}
|
|
1975
|
+
return exports;
|
|
1976
|
+
}
|
|
1977
|
+
var exports$2, _dewExec$2, exports$1, _dewExec$1, exports, _dewExec;
|
|
1978
|
+
var init_chunk_DtuTasat = __esm({
|
|
1979
|
+
"node_modules/@jspm/core/nodelibs/browser/chunk-DtuTasat.js"() {
|
|
1980
|
+
init_dirname();
|
|
1981
|
+
init_buffer2();
|
|
1982
|
+
init_process2();
|
|
1983
|
+
exports$2 = {};
|
|
1984
|
+
_dewExec$2 = false;
|
|
1985
|
+
exports$1 = {};
|
|
1986
|
+
_dewExec$1 = false;
|
|
1987
|
+
exports = {};
|
|
1988
|
+
_dewExec = false;
|
|
1989
|
+
}
|
|
1990
|
+
});
|
|
1991
|
+
|
|
1992
|
+
// node_modules/@jspm/core/nodelibs/browser/buffer.js
|
|
1993
|
+
var exports2, Buffer2, INSPECT_MAX_BYTES, kMaxLength;
|
|
1994
|
+
var init_buffer = __esm({
|
|
1995
|
+
"node_modules/@jspm/core/nodelibs/browser/buffer.js"() {
|
|
1996
|
+
init_dirname();
|
|
1997
|
+
init_buffer2();
|
|
1998
|
+
init_process2();
|
|
1999
|
+
init_chunk_DtuTasat();
|
|
2000
|
+
exports2 = dew();
|
|
2001
|
+
exports2["Buffer"];
|
|
2002
|
+
exports2["SlowBuffer"];
|
|
2003
|
+
exports2["INSPECT_MAX_BYTES"];
|
|
2004
|
+
exports2["kMaxLength"];
|
|
2005
|
+
Buffer2 = exports2.Buffer;
|
|
2006
|
+
INSPECT_MAX_BYTES = exports2.INSPECT_MAX_BYTES;
|
|
2007
|
+
kMaxLength = exports2.kMaxLength;
|
|
2008
|
+
}
|
|
2009
|
+
});
|
|
2010
|
+
|
|
2011
|
+
// node_modules/esbuild-plugin-polyfill-node/polyfills/buffer.js
|
|
2012
|
+
var init_buffer2 = __esm({
|
|
2013
|
+
"node_modules/esbuild-plugin-polyfill-node/polyfills/buffer.js"() {
|
|
2014
|
+
init_buffer();
|
|
2015
|
+
}
|
|
2016
|
+
});
|
|
2017
|
+
|
|
2018
|
+
// node_modules/@jspm/core/nodelibs/browser/process.js
|
|
2019
|
+
var process_exports = {};
|
|
2020
|
+
__export(process_exports, {
|
|
2021
|
+
_debugEnd: () => _debugEnd,
|
|
2022
|
+
_debugProcess: () => _debugProcess,
|
|
2023
|
+
_events: () => _events,
|
|
2024
|
+
_eventsCount: () => _eventsCount,
|
|
2025
|
+
_exiting: () => _exiting,
|
|
2026
|
+
_fatalExceptions: () => _fatalExceptions,
|
|
2027
|
+
_getActiveHandles: () => _getActiveHandles,
|
|
2028
|
+
_getActiveRequests: () => _getActiveRequests,
|
|
2029
|
+
_kill: () => _kill,
|
|
2030
|
+
_linkedBinding: () => _linkedBinding,
|
|
2031
|
+
_maxListeners: () => _maxListeners,
|
|
2032
|
+
_preload_modules: () => _preload_modules,
|
|
2033
|
+
_rawDebug: () => _rawDebug,
|
|
2034
|
+
_startProfilerIdleNotifier: () => _startProfilerIdleNotifier,
|
|
2035
|
+
_stopProfilerIdleNotifier: () => _stopProfilerIdleNotifier,
|
|
2036
|
+
_tickCallback: () => _tickCallback,
|
|
2037
|
+
abort: () => abort,
|
|
2038
|
+
addListener: () => addListener,
|
|
2039
|
+
allowedNodeEnvironmentFlags: () => allowedNodeEnvironmentFlags,
|
|
2040
|
+
arch: () => arch,
|
|
2041
|
+
argv: () => argv,
|
|
2042
|
+
argv0: () => argv0,
|
|
2043
|
+
assert: () => assert,
|
|
2044
|
+
binding: () => binding,
|
|
2045
|
+
browser: () => browser,
|
|
2046
|
+
chdir: () => chdir,
|
|
2047
|
+
config: () => config,
|
|
2048
|
+
cpuUsage: () => cpuUsage,
|
|
2049
|
+
cwd: () => cwd,
|
|
2050
|
+
debugPort: () => debugPort,
|
|
2051
|
+
default: () => process,
|
|
2052
|
+
dlopen: () => dlopen,
|
|
2053
|
+
domain: () => domain,
|
|
2054
|
+
emit: () => emit,
|
|
2055
|
+
emitWarning: () => emitWarning,
|
|
2056
|
+
env: () => env,
|
|
2057
|
+
execArgv: () => execArgv,
|
|
2058
|
+
execPath: () => execPath,
|
|
2059
|
+
exit: () => exit,
|
|
2060
|
+
features: () => features,
|
|
2061
|
+
hasUncaughtExceptionCaptureCallback: () => hasUncaughtExceptionCaptureCallback,
|
|
2062
|
+
hrtime: () => hrtime,
|
|
2063
|
+
kill: () => kill,
|
|
2064
|
+
listeners: () => listeners,
|
|
2065
|
+
memoryUsage: () => memoryUsage,
|
|
2066
|
+
moduleLoadList: () => moduleLoadList,
|
|
2067
|
+
nextTick: () => nextTick,
|
|
2068
|
+
off: () => off,
|
|
2069
|
+
on: () => on,
|
|
2070
|
+
once: () => once,
|
|
2071
|
+
openStdin: () => openStdin,
|
|
2072
|
+
pid: () => pid,
|
|
2073
|
+
platform: () => platform,
|
|
2074
|
+
ppid: () => ppid,
|
|
2075
|
+
prependListener: () => prependListener,
|
|
2076
|
+
prependOnceListener: () => prependOnceListener,
|
|
2077
|
+
reallyExit: () => reallyExit,
|
|
2078
|
+
release: () => release,
|
|
2079
|
+
removeAllListeners: () => removeAllListeners,
|
|
2080
|
+
removeListener: () => removeListener,
|
|
2081
|
+
resourceUsage: () => resourceUsage,
|
|
2082
|
+
setSourceMapsEnabled: () => setSourceMapsEnabled,
|
|
2083
|
+
setUncaughtExceptionCaptureCallback: () => setUncaughtExceptionCaptureCallback,
|
|
2084
|
+
stderr: () => stderr,
|
|
2085
|
+
stdin: () => stdin,
|
|
2086
|
+
stdout: () => stdout,
|
|
2087
|
+
title: () => title,
|
|
2088
|
+
umask: () => umask,
|
|
2089
|
+
uptime: () => uptime,
|
|
2090
|
+
version: () => version,
|
|
2091
|
+
versions: () => versions
|
|
2092
|
+
});
|
|
2093
|
+
function unimplemented(name) {
|
|
2094
|
+
throw new Error("Node.js process " + name + " is not supported by JSPM core outside of Node.js");
|
|
2095
|
+
}
|
|
2096
|
+
function cleanUpNextTick() {
|
|
2097
|
+
if (!draining || !currentQueue)
|
|
2098
|
+
return;
|
|
2099
|
+
draining = false;
|
|
2100
|
+
if (currentQueue.length) {
|
|
2101
|
+
queue = currentQueue.concat(queue);
|
|
2102
|
+
} else {
|
|
2103
|
+
queueIndex = -1;
|
|
2104
|
+
}
|
|
2105
|
+
if (queue.length)
|
|
2106
|
+
drainQueue();
|
|
2107
|
+
}
|
|
2108
|
+
function drainQueue() {
|
|
2109
|
+
if (draining)
|
|
2110
|
+
return;
|
|
2111
|
+
var timeout = setTimeout(cleanUpNextTick, 0);
|
|
2112
|
+
draining = true;
|
|
2113
|
+
var len = queue.length;
|
|
2114
|
+
while (len) {
|
|
2115
|
+
currentQueue = queue;
|
|
2116
|
+
queue = [];
|
|
2117
|
+
while (++queueIndex < len) {
|
|
2118
|
+
if (currentQueue)
|
|
2119
|
+
currentQueue[queueIndex].run();
|
|
2120
|
+
}
|
|
2121
|
+
queueIndex = -1;
|
|
2122
|
+
len = queue.length;
|
|
2123
|
+
}
|
|
2124
|
+
currentQueue = null;
|
|
2125
|
+
draining = false;
|
|
2126
|
+
clearTimeout(timeout);
|
|
2127
|
+
}
|
|
2128
|
+
function nextTick(fun) {
|
|
2129
|
+
var args = new Array(arguments.length - 1);
|
|
2130
|
+
if (arguments.length > 1) {
|
|
2131
|
+
for (var i = 1; i < arguments.length; i++)
|
|
2132
|
+
args[i - 1] = arguments[i];
|
|
2133
|
+
}
|
|
2134
|
+
queue.push(new Item(fun, args));
|
|
2135
|
+
if (queue.length === 1 && !draining)
|
|
2136
|
+
setTimeout(drainQueue, 0);
|
|
2137
|
+
}
|
|
2138
|
+
function Item(fun, array) {
|
|
2139
|
+
this.fun = fun;
|
|
2140
|
+
this.array = array;
|
|
2141
|
+
}
|
|
2142
|
+
function noop() {
|
|
2143
|
+
}
|
|
2144
|
+
function _linkedBinding(name) {
|
|
2145
|
+
unimplemented("_linkedBinding");
|
|
2146
|
+
}
|
|
2147
|
+
function dlopen(name) {
|
|
2148
|
+
unimplemented("dlopen");
|
|
2149
|
+
}
|
|
2150
|
+
function _getActiveRequests() {
|
|
2151
|
+
return [];
|
|
2152
|
+
}
|
|
2153
|
+
function _getActiveHandles() {
|
|
2154
|
+
return [];
|
|
2155
|
+
}
|
|
2156
|
+
function assert(condition, message) {
|
|
2157
|
+
if (!condition)
|
|
2158
|
+
throw new Error(message || "assertion error");
|
|
2159
|
+
}
|
|
2160
|
+
function hasUncaughtExceptionCaptureCallback() {
|
|
2161
|
+
return false;
|
|
2162
|
+
}
|
|
2163
|
+
function uptime() {
|
|
2164
|
+
return _performance.now() / 1e3;
|
|
2165
|
+
}
|
|
2166
|
+
function hrtime(previousTimestamp) {
|
|
2167
|
+
var baseNow = Math.floor((Date.now() - _performance.now()) * 1e-3);
|
|
2168
|
+
var clocktime = _performance.now() * 1e-3;
|
|
2169
|
+
var seconds = Math.floor(clocktime) + baseNow;
|
|
2170
|
+
var nanoseconds = Math.floor(clocktime % 1 * 1e9);
|
|
2171
|
+
if (previousTimestamp) {
|
|
2172
|
+
seconds = seconds - previousTimestamp[0];
|
|
2173
|
+
nanoseconds = nanoseconds - previousTimestamp[1];
|
|
2174
|
+
if (nanoseconds < 0) {
|
|
2175
|
+
seconds--;
|
|
2176
|
+
nanoseconds += nanoPerSec;
|
|
2177
|
+
}
|
|
2178
|
+
}
|
|
2179
|
+
return [seconds, nanoseconds];
|
|
2180
|
+
}
|
|
2181
|
+
function on() {
|
|
2182
|
+
return process;
|
|
2183
|
+
}
|
|
2184
|
+
function listeners(name) {
|
|
2185
|
+
return [];
|
|
2186
|
+
}
|
|
2187
|
+
var queue, draining, currentQueue, queueIndex, title, arch, platform, env, argv, execArgv, version, versions, emitWarning, binding, umask, cwd, chdir, release, browser, _rawDebug, moduleLoadList, domain, _exiting, config, reallyExit, _kill, cpuUsage, resourceUsage, memoryUsage, kill, exit, openStdin, allowedNodeEnvironmentFlags, features, _fatalExceptions, setUncaughtExceptionCaptureCallback, _tickCallback, _debugProcess, _debugEnd, _startProfilerIdleNotifier, _stopProfilerIdleNotifier, stdout, stderr, stdin, abort, pid, ppid, execPath, debugPort, argv0, _preload_modules, setSourceMapsEnabled, _performance, nowOffset, nanoPerSec, _maxListeners, _events, _eventsCount, addListener, once, off, removeListener, removeAllListeners, emit, prependListener, prependOnceListener, process;
|
|
2188
|
+
var init_process = __esm({
|
|
2189
|
+
"node_modules/@jspm/core/nodelibs/browser/process.js"() {
|
|
2190
|
+
init_dirname();
|
|
2191
|
+
init_buffer2();
|
|
2192
|
+
init_process2();
|
|
2193
|
+
queue = [];
|
|
2194
|
+
draining = false;
|
|
2195
|
+
queueIndex = -1;
|
|
2196
|
+
Item.prototype.run = function() {
|
|
2197
|
+
this.fun.apply(null, this.array);
|
|
2198
|
+
};
|
|
2199
|
+
title = "browser";
|
|
2200
|
+
arch = "x64";
|
|
2201
|
+
platform = "browser";
|
|
2202
|
+
env = {
|
|
2203
|
+
PATH: "/usr/bin",
|
|
2204
|
+
LANG: typeof navigator !== "undefined" ? navigator.language + ".UTF-8" : void 0,
|
|
2205
|
+
PWD: "/",
|
|
2206
|
+
HOME: "/home",
|
|
2207
|
+
TMP: "/tmp"
|
|
2208
|
+
};
|
|
2209
|
+
argv = ["/usr/bin/node"];
|
|
2210
|
+
execArgv = [];
|
|
2211
|
+
version = "v16.8.0";
|
|
2212
|
+
versions = {};
|
|
2213
|
+
emitWarning = function(message, type) {
|
|
2214
|
+
console.warn((type ? type + ": " : "") + message);
|
|
2215
|
+
};
|
|
2216
|
+
binding = function(name) {
|
|
2217
|
+
unimplemented("binding");
|
|
2218
|
+
};
|
|
2219
|
+
umask = function(mask) {
|
|
2220
|
+
return 0;
|
|
2221
|
+
};
|
|
2222
|
+
cwd = function() {
|
|
2223
|
+
return "/";
|
|
2224
|
+
};
|
|
2225
|
+
chdir = function(dir) {
|
|
2226
|
+
};
|
|
2227
|
+
release = {
|
|
2228
|
+
name: "node",
|
|
2229
|
+
sourceUrl: "",
|
|
2230
|
+
headersUrl: "",
|
|
2231
|
+
libUrl: ""
|
|
2232
|
+
};
|
|
2233
|
+
browser = true;
|
|
2234
|
+
_rawDebug = noop;
|
|
2235
|
+
moduleLoadList = [];
|
|
2236
|
+
domain = {};
|
|
2237
|
+
_exiting = false;
|
|
2238
|
+
config = {};
|
|
2239
|
+
reallyExit = noop;
|
|
2240
|
+
_kill = noop;
|
|
2241
|
+
cpuUsage = function() {
|
|
2242
|
+
return {};
|
|
2243
|
+
};
|
|
2244
|
+
resourceUsage = cpuUsage;
|
|
2245
|
+
memoryUsage = cpuUsage;
|
|
2246
|
+
kill = noop;
|
|
2247
|
+
exit = noop;
|
|
2248
|
+
openStdin = noop;
|
|
2249
|
+
allowedNodeEnvironmentFlags = {};
|
|
2250
|
+
features = {
|
|
2251
|
+
inspector: false,
|
|
2252
|
+
debug: false,
|
|
2253
|
+
uv: false,
|
|
2254
|
+
ipv6: false,
|
|
2255
|
+
tls_alpn: false,
|
|
2256
|
+
tls_sni: false,
|
|
2257
|
+
tls_ocsp: false,
|
|
2258
|
+
tls: false,
|
|
2259
|
+
cached_builtins: true
|
|
2260
|
+
};
|
|
2261
|
+
_fatalExceptions = noop;
|
|
2262
|
+
setUncaughtExceptionCaptureCallback = noop;
|
|
2263
|
+
_tickCallback = noop;
|
|
2264
|
+
_debugProcess = noop;
|
|
2265
|
+
_debugEnd = noop;
|
|
2266
|
+
_startProfilerIdleNotifier = noop;
|
|
2267
|
+
_stopProfilerIdleNotifier = noop;
|
|
2268
|
+
stdout = void 0;
|
|
2269
|
+
stderr = void 0;
|
|
2270
|
+
stdin = void 0;
|
|
2271
|
+
abort = noop;
|
|
2272
|
+
pid = 2;
|
|
2273
|
+
ppid = 1;
|
|
2274
|
+
execPath = "/bin/usr/node";
|
|
2275
|
+
debugPort = 9229;
|
|
2276
|
+
argv0 = "node";
|
|
2277
|
+
_preload_modules = [];
|
|
2278
|
+
setSourceMapsEnabled = noop;
|
|
2279
|
+
_performance = {
|
|
2280
|
+
now: typeof performance !== "undefined" ? performance.now.bind(performance) : void 0,
|
|
2281
|
+
timing: typeof performance !== "undefined" ? performance.timing : void 0
|
|
2282
|
+
};
|
|
2283
|
+
if (_performance.now === void 0) {
|
|
2284
|
+
nowOffset = Date.now();
|
|
2285
|
+
if (_performance.timing && _performance.timing.navigationStart) {
|
|
2286
|
+
nowOffset = _performance.timing.navigationStart;
|
|
2287
|
+
}
|
|
2288
|
+
_performance.now = () => Date.now() - nowOffset;
|
|
2289
|
+
}
|
|
2290
|
+
nanoPerSec = 1e9;
|
|
2291
|
+
hrtime.bigint = function(time) {
|
|
2292
|
+
var diff = hrtime(time);
|
|
2293
|
+
if (typeof BigInt === "undefined") {
|
|
2294
|
+
return diff[0] * nanoPerSec + diff[1];
|
|
2295
|
+
}
|
|
2296
|
+
return BigInt(diff[0] * nanoPerSec) + BigInt(diff[1]);
|
|
2297
|
+
};
|
|
2298
|
+
_maxListeners = 10;
|
|
2299
|
+
_events = {};
|
|
2300
|
+
_eventsCount = 0;
|
|
2301
|
+
addListener = on;
|
|
2302
|
+
once = on;
|
|
2303
|
+
off = on;
|
|
2304
|
+
removeListener = on;
|
|
2305
|
+
removeAllListeners = on;
|
|
2306
|
+
emit = noop;
|
|
2307
|
+
prependListener = on;
|
|
2308
|
+
prependOnceListener = on;
|
|
2309
|
+
process = {
|
|
2310
|
+
version,
|
|
2311
|
+
versions,
|
|
2312
|
+
arch,
|
|
2313
|
+
platform,
|
|
2314
|
+
browser,
|
|
2315
|
+
release,
|
|
2316
|
+
_rawDebug,
|
|
2317
|
+
moduleLoadList,
|
|
2318
|
+
binding,
|
|
2319
|
+
_linkedBinding,
|
|
2320
|
+
_events,
|
|
2321
|
+
_eventsCount,
|
|
2322
|
+
_maxListeners,
|
|
2323
|
+
on,
|
|
2324
|
+
addListener,
|
|
2325
|
+
once,
|
|
2326
|
+
off,
|
|
2327
|
+
removeListener,
|
|
2328
|
+
removeAllListeners,
|
|
2329
|
+
emit,
|
|
2330
|
+
prependListener,
|
|
2331
|
+
prependOnceListener,
|
|
2332
|
+
listeners,
|
|
2333
|
+
domain,
|
|
2334
|
+
_exiting,
|
|
2335
|
+
config,
|
|
2336
|
+
dlopen,
|
|
2337
|
+
uptime,
|
|
2338
|
+
_getActiveRequests,
|
|
2339
|
+
_getActiveHandles,
|
|
2340
|
+
reallyExit,
|
|
2341
|
+
_kill,
|
|
2342
|
+
cpuUsage,
|
|
2343
|
+
resourceUsage,
|
|
2344
|
+
memoryUsage,
|
|
2345
|
+
kill,
|
|
2346
|
+
exit,
|
|
2347
|
+
openStdin,
|
|
2348
|
+
allowedNodeEnvironmentFlags,
|
|
2349
|
+
assert,
|
|
2350
|
+
features,
|
|
2351
|
+
_fatalExceptions,
|
|
2352
|
+
setUncaughtExceptionCaptureCallback,
|
|
2353
|
+
hasUncaughtExceptionCaptureCallback,
|
|
2354
|
+
emitWarning,
|
|
2355
|
+
nextTick,
|
|
2356
|
+
_tickCallback,
|
|
2357
|
+
_debugProcess,
|
|
2358
|
+
_debugEnd,
|
|
2359
|
+
_startProfilerIdleNotifier,
|
|
2360
|
+
_stopProfilerIdleNotifier,
|
|
2361
|
+
stdout,
|
|
2362
|
+
stdin,
|
|
2363
|
+
stderr,
|
|
2364
|
+
abort,
|
|
2365
|
+
umask,
|
|
2366
|
+
chdir,
|
|
2367
|
+
cwd,
|
|
2368
|
+
env,
|
|
2369
|
+
title,
|
|
2370
|
+
argv,
|
|
2371
|
+
execArgv,
|
|
2372
|
+
pid,
|
|
2373
|
+
ppid,
|
|
2374
|
+
execPath,
|
|
2375
|
+
debugPort,
|
|
2376
|
+
hrtime,
|
|
2377
|
+
argv0,
|
|
2378
|
+
_preload_modules,
|
|
2379
|
+
setSourceMapsEnabled
|
|
2380
|
+
};
|
|
2381
|
+
}
|
|
2382
|
+
});
|
|
2383
|
+
|
|
2384
|
+
// node_modules/esbuild-plugin-polyfill-node/polyfills/process.js
|
|
2385
|
+
var init_process2 = __esm({
|
|
2386
|
+
"node_modules/esbuild-plugin-polyfill-node/polyfills/process.js"() {
|
|
2387
|
+
init_process();
|
|
2388
|
+
}
|
|
2389
|
+
});
|
|
2390
|
+
|
|
2391
|
+
export {
|
|
2392
|
+
__spreadValues,
|
|
2393
|
+
__spreadProps,
|
|
2394
|
+
__require,
|
|
2395
|
+
__restKey,
|
|
2396
|
+
__objRest,
|
|
2397
|
+
__commonJS,
|
|
2398
|
+
__export,
|
|
2399
|
+
__toESM,
|
|
2400
|
+
__decorateClass,
|
|
2401
|
+
__privateGet,
|
|
2402
|
+
__privateAdd,
|
|
2403
|
+
__privateSet,
|
|
2404
|
+
__privateMethod,
|
|
2405
|
+
__await,
|
|
2406
|
+
__asyncGenerator,
|
|
2407
|
+
__yieldStar,
|
|
2408
|
+
init_dirname,
|
|
2409
|
+
init_process2 as init_process,
|
|
2410
|
+
dew,
|
|
2411
|
+
init_chunk_DtuTasat,
|
|
2412
|
+
Buffer2 as Buffer,
|
|
2413
|
+
init_buffer2 as init_buffer
|
|
2414
|
+
};
|
|
2415
|
+
/*! Bundled license information:
|
|
2416
|
+
|
|
2417
|
+
@jspm/core/nodelibs/browser/chunk-DtuTasat.js:
|
|
2418
|
+
(*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
2419
|
+
*/
|