hfs 3.3.0-alpha1 → 3.3.0-beta2
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/admin/assets/AccountsPage-DB7ljNHT.js +3 -0
- package/admin/assets/ArrayField-Qj2iHD7I.js +2 -0
- package/admin/assets/ConfigFilePage-TErmt0PK.js +4 -0
- package/admin/assets/CustomHtmlPage-CVmk-_JS.js +2 -0
- package/admin/assets/DataTable-DmnQXyFO.js +119 -0
- package/admin/assets/DateTimeField-BUWd2w9-.js +1 -0
- package/admin/assets/EventManager-9vwKg8as.js +1 -0
- package/admin/assets/FileField-DoBaSTxF.js +117 -0
- package/admin/assets/InternetPage-Biuer1tb.js +8 -0
- package/admin/assets/LangPage-Vd24DNK5.js +2 -0
- package/admin/assets/LogsPage-BdvttEqM.js +3 -0
- package/admin/assets/MenuButton-CHLgqU5W.js +1 -0
- package/admin/assets/MonitorPage-DlXkZUmT.js +2 -0
- package/admin/assets/OptionsPage-Zi8FmrjE.js +3 -0
- package/admin/assets/PluginsPage-BzwEIFt5.js +1 -0
- package/admin/assets/Tabs-CVipqhB9.js +1 -0
- package/admin/assets/TextEditor-BeS-mR2I.css +1 -0
- package/admin/assets/TextEditor-clbVugYM.js +34 -0
- package/admin/assets/VfsPathField-YUCV9PfL.js +1 -0
- package/admin/assets/{af-CevhRske.js → af-B1Gi_bpo.js} +1 -1
- package/admin/assets/agentIcons-DW9QViyx.js +1 -0
- package/admin/assets/{am-4ouVTwuo.js → am-B-dZnhsM.js} +1 -1
- package/admin/assets/{ar-71cK8dbb.js → ar-DsQGp6kZ.js} +1 -1
- package/admin/assets/{ar-dz-CO7oh1gG.js → ar-dz-CxlYiKtP.js} +1 -1
- package/admin/assets/{ar-iq-CjG6db8J.js → ar-iq-y4_Puo4B.js} +1 -1
- package/admin/assets/{ar-kw-DMsdR225.js → ar-kw-DTOZ0VC7.js} +1 -1
- package/admin/assets/{ar-ly-ZhxIwUOA.js → ar-ly-lPV9gApv.js} +1 -1
- package/admin/assets/{ar-ma-Bo3Z1RyK.js → ar-ma-DZqLSpeB.js} +1 -1
- package/admin/assets/{ar-sa-Db44biae.js → ar-sa-v-5vsIOR.js} +1 -1
- package/admin/assets/{ar-tn-DNWRixE0.js → ar-tn-a4q8lhXy.js} +1 -1
- package/admin/assets/{az-B6LcmVzB.js → az-Cj4yq-j-.js} +1 -1
- package/admin/assets/baseUrl-Do5CYuBZ.js +2 -0
- package/admin/assets/{be-Dp0KhO5x.js → be-B-3QlFM8.js} +1 -1
- package/admin/assets/{bg-TsOJJvBm.js → bg-A8-93xdK.js} +1 -1
- package/admin/assets/{bi-DstczOGo.js → bi-bwwEWGG2.js} +1 -1
- package/admin/assets/{bm-Bf09NN15.js → bm-DpLmtYXC.js} +1 -1
- package/admin/assets/{bn-Da3tHLgx.js → bn-DPL_BgLw.js} +1 -1
- package/admin/assets/{bn-bd-CeSalisC.js → bn-bd-DukmY_R5.js} +1 -1
- package/admin/assets/{bo-Ctxe0IKQ.js → bo-68KDEKGI.js} +1 -1
- package/admin/assets/{br-Y3dPq3Tj.js → br-gA86uwqY.js} +1 -1
- package/admin/assets/{bs-BbAlSeZx.js → bs-SfthSp42.js} +1 -1
- package/admin/assets/{ca-8-Nn97gi.js → ca-8qUtZKFe.js} +1 -1
- package/admin/assets/{cs-BD5ArFNW.js → cs-CTHcqPCX.js} +1 -1
- package/admin/assets/{cv-CdMFVXGr.js → cv-BhBW7hcO.js} +1 -1
- package/admin/assets/{cy-B3QEYlIT.js → cy-BYTS4PNY.js} +1 -1
- package/admin/assets/{da-Bju2YQ9G.js → da-BiwfOrRd.js} +1 -1
- package/admin/assets/{de-DdzCTquR.js → de-BFqyDxvo.js} +1 -1
- package/admin/assets/{de-at-DgyKCkPl.js → de-at-C7zUXXVL.js} +1 -1
- package/admin/assets/{de-ch-Dk9qkzvn.js → de-ch-BVHosAzt.js} +1 -1
- package/admin/assets/dist-DC2A6cD2.js +1 -0
- package/admin/assets/{dv-C5KWK8o4.js → dv-dvig99nB.js} +1 -1
- package/admin/assets/{el-BDL_lPlM.js → el-BtJcYjoT.js} +1 -1
- package/admin/assets/en-B26lXzkx.js +1 -0
- package/admin/assets/{en-au-CgltfNUb.js → en-au-CWzJ565h.js} +1 -1
- package/admin/assets/{en-ca-DEsKzbWO.js → en-ca-nou5bZ6q.js} +1 -1
- package/admin/assets/{en-in-C7Kv4c3w.js → en-gb-kl3giCnh.js} +1 -1
- package/admin/assets/{en-ie-aN3g-yqK.js → en-ie-C55e3apX.js} +1 -1
- package/admin/assets/{en-il-CZl2d7NK.js → en-il-HYabE6j7.js} +1 -1
- package/admin/assets/{en-tt-B5vDLhL7.js → en-in-Bri93cNM.js} +1 -1
- package/admin/assets/{en-nz-DA_sIaGR.js → en-nz-BqhpzeuX.js} +1 -1
- package/admin/assets/{en-sg-CP5PJpZf.js → en-sg-q8xv-C8V.js} +1 -1
- package/admin/assets/{en-gb-21AYC3Ik.js → en-tt-BqzQXPA5.js} +1 -1
- package/admin/assets/{eo-VE1KDD1u.js → eo-5Y962E4S.js} +1 -1
- package/admin/assets/{es-SUzi5oTU.js → es-DOQ7swrW.js} +1 -1
- package/admin/assets/{es-do-Iri0eWm8.js → es-do-Diob7juh.js} +1 -1
- package/admin/assets/{es-mx-DwneKeOc.js → es-mx-miy7RFDh.js} +1 -1
- package/admin/assets/{es-pr-C4zPUdA1.js → es-pr-CZa5Iw2n.js} +1 -1
- package/admin/assets/{es-us-BPS67etc.js → es-us-BX03CBQf.js} +1 -1
- package/admin/assets/{esm-CyNQ7bBW.js → esm-Dtaf0rWK.js} +1 -1
- package/admin/assets/{et-Ciqbfae0.js → et-DGWOmMlC.js} +1 -1
- package/admin/assets/{eu-CGhOwQpe.js → eu-D1Qj8RMh.js} +1 -1
- package/admin/assets/{fa-BWZiAv_E.js → fa--TfwKnl9.js} +1 -1
- package/admin/assets/{fi-DJmgkVsJ.js → fi-Dcbkv925.js} +1 -1
- package/admin/assets/{fo-DVez5N-g.js → fo-BPGX_WF4.js} +1 -1
- package/admin/assets/{fr-D206itJo.js → fr-CNsDHzNh.js} +1 -1
- package/admin/assets/{fr-ca-C6JiEHfi.js → fr-ca-BsNs3KIJ.js} +1 -1
- package/admin/assets/{fr-ch-DUTEuSU_.js → fr-ch-BBmdtvlB.js} +1 -1
- package/admin/assets/{fy-C_r06zH-.js → fy-q3UE-mqp.js} +1 -1
- package/admin/assets/{ga-CrdQqAN5.js → ga-C-DOgnYh.js} +1 -1
- package/admin/assets/{gd-iWHfhKAH.js → gd-mLMfry_l.js} +1 -1
- package/admin/assets/{gl-zgfy-pQ0.js → gl-CO8Bj9I_.js} +1 -1
- package/admin/assets/{gom-latn-CMZ7Vj7V.js → gom-latn-myglMmHV.js} +1 -1
- package/admin/assets/{gu-DNqIMjZc.js → gu-Bdz1OpMU.js} +1 -1
- package/admin/assets/{he-OJBbYFzL.js → he-C4lqk2AA.js} +1 -1
- package/admin/assets/{hi-ByrMhKpX.js → hi-h0Byc_UN.js} +1 -1
- package/admin/assets/{hr-CfRZXzCu.js → hr-CZV7Za1n.js} +1 -1
- package/admin/assets/{ht-DDrMtLzJ.js → ht-Dg2blNvl.js} +1 -1
- package/admin/assets/{hu-Ckeq3R6_.js → hu-DbOVhd9K.js} +1 -1
- package/admin/assets/{hy-am-OpZy7Nvg.js → hy-am-E48Q7kWE.js} +1 -1
- package/admin/assets/icons-3rupj9Xr.js +1 -0
- package/admin/assets/{id-BE8-Ys79.js → id-Cd4yWevW.js} +1 -1
- package/admin/assets/{index-eeRX25da.css → index-11n5z0Ez.css} +1 -1
- package/admin/assets/index-Dsq-sVu9.js +477 -0
- package/admin/assets/{is-BOxJcH5N.js → is-BJZYSfrA.js} +1 -1
- package/admin/assets/{it-BFlrIXvP.js → it-BRaqqFz4.js} +1 -1
- package/admin/assets/{it-ch-ILAp-lZZ.js → it-ch-BkLqxaff.js} +1 -1
- package/admin/assets/{ja-CbbYAYyn.js → ja-X_I-25cD.js} +1 -1
- package/admin/assets/{jv-CuLkRQCH.js → jv-BBBx3R3v.js} +1 -1
- package/admin/assets/{ka-BFeRDN-I.js → ka-D9Yrujqk.js} +1 -1
- package/admin/assets/{kk-CMvQxaPk.js → kk-Bz450_o8.js} +1 -1
- package/admin/assets/{km-BdQbDUNF.js → km-CKOAqvHM.js} +1 -1
- package/admin/assets/{kn-CE5AS6Nx.js → kn-k2xTBR7a.js} +1 -1
- package/admin/assets/{ko-Ctl1mHOt.js → ko-BCvoCYib.js} +1 -1
- package/admin/assets/{ku-Blbo7opr.js → ku-D6Rloctr.js} +1 -1
- package/admin/assets/{ky-iCha_cZX.js → ky-C54qnEzk.js} +1 -1
- package/admin/assets/{lb-BaP0S6h1.js → lb-y3rkrWB2.js} +1 -1
- package/admin/assets/{lo-B_Q4zUMa.js → lo-nA_dPnOU.js} +1 -1
- package/admin/assets/{lt-BOaP1KGX.js → lt-hjPmCCML.js} +1 -1
- package/admin/assets/{lv-S1XMSUX1.js → lv-Bh4qmUa_.js} +1 -1
- package/admin/assets/{me-ChOLVJHC.js → me-e32suC_n.js} +1 -1
- package/admin/assets/{mi-CnoIUOGl.js → mi-Dwbsuyr9.js} +1 -1
- package/admin/assets/{mk-BoEaxVXE.js → mk-DjUXwKRn.js} +1 -1
- package/admin/assets/{ml-BuvmVn6P.js → ml-CWjFAViF.js} +1 -1
- package/admin/assets/{mn-2bvGd1HI.js → mn-BU4qTvEl.js} +1 -1
- package/admin/assets/{mr-BAoAWQmy.js → mr-Bvnduzfb.js} +1 -1
- package/admin/assets/{ms-C2eT9r-f.js → ms-XuKVAni7.js} +1 -1
- package/admin/assets/{ms-my-D2ZXdcAf.js → ms-my-CDbnYp0g.js} +1 -1
- package/admin/assets/{mt-BL5JZC4T.js → mt-PDuxJf8J.js} +1 -1
- package/admin/assets/{my-CuJ4L0Ji.js → my-7N6SHnsD.js} +1 -1
- package/admin/assets/{nb-CjE6cT80.js → nb-Cu3KUtTR.js} +1 -1
- package/admin/assets/{ne-BL9I0cb1.js → ne-CYW0uI2a.js} +1 -1
- package/admin/assets/{nl-Dt3mtMln.js → nl-DL7cw699.js} +1 -1
- package/admin/assets/{nl-be-Am1mjZK9.js → nl-be-B3NSF-2w.js} +1 -1
- package/admin/assets/{nn-ChSewyYy.js → nn-BHITVkGB.js} +1 -1
- package/admin/assets/{oc-lnc-x6_ChCE9.js → oc-lnc-dp3c4Bty.js} +1 -1
- package/admin/assets/{pa-in-DVyN8o2P.js → pa-in-BxgIlP1T.js} +1 -1
- package/admin/assets/{pl-CqcuAUGV.js → pl-GrG6yjkB.js} +1 -1
- package/admin/assets/{pt-br-oBVRyUzP.js → pt-br-BxTgeF95.js} +1 -1
- package/admin/assets/{pt-B2BPpD7K.js → pt-cVbj6hL6.js} +1 -1
- package/admin/assets/{rn-B3e3nkfp.js → rn-DiVJ2_Jy.js} +1 -1
- package/admin/assets/{ro-C2tWFx0Q.js → ro-D1WeRyXR.js} +1 -1
- package/admin/assets/rolldown-runtime-CacB07dV.js +1 -0
- package/admin/assets/routing-Cjyek7O_.js +1 -0
- package/admin/assets/{ru-CCsEUnFL.js → ru-DZCu4V9W.js} +1 -1
- package/admin/assets/{rw-CaCkWlGA.js → rw-DfFpVc_g.js} +1 -1
- package/admin/assets/{sd-90Zixcez.js → sd-yDyBYxtQ.js} +1 -1
- package/admin/assets/{se-DaZXpLsK.js → se-EJKibocp.js} +1 -1
- package/admin/assets/sha512-DJtGRwVu.js +1 -0
- package/admin/assets/{si-CSoBAkgi.js → si-BCBV00rO.js} +1 -1
- package/admin/assets/{sk-pgQaqa2z.js → sk-B2VvG_mo.js} +1 -1
- package/admin/assets/{sl-Cr5kSdA7.js → sl-BTYmt65M.js} +1 -1
- package/admin/assets/{sq-Pxi2MZOP.js → sq-BaLGKAHu.js} +1 -1
- package/admin/assets/{sr-Fdc9-lC-.js → sr-DarE-95b.js} +1 -1
- package/admin/assets/{sr-cyrl-06jNWqpg.js → sr-cyrl-CrwXFtkw.js} +1 -1
- package/admin/assets/{ss-BjEzSMit.js → ss-CbBe1RUs.js} +1 -1
- package/admin/assets/{sv-CqWqUpcA.js → sv-Baw7Je9j.js} +1 -1
- package/admin/assets/{sv-fi-CsO2xQHd.js → sv-fi-CVHORXkw.js} +1 -1
- package/admin/assets/{sw-xQUdgYhn.js → sw-k1H_OzIi.js} +1 -1
- package/admin/assets/{ta-epbFrZ1M.js → ta-Bc4ZaZT9.js} +1 -1
- package/admin/assets/{te-DusTwU6q.js → te-ClciACZi.js} +1 -1
- package/admin/assets/{tet-ylc9v4gl.js → tet-B75w1oSG.js} +1 -1
- package/admin/assets/{tg-2QfVTAJf.js → tg-CuH2ARRk.js} +1 -1
- package/admin/assets/{th-QIm0Mh7I.js → th-LvExAoJ6.js} +1 -1
- package/admin/assets/{tk-140KMZeW.js → tk-2CFwTMKo.js} +1 -1
- package/admin/assets/{tl-ph-S7IZkbx3.js → tl-ph-CNJ_lViV.js} +1 -1
- package/admin/assets/{tlh-C2fYb34-.js → tlh-9UbKQkHo.js} +1 -1
- package/admin/assets/{tr-Be-IM6i4.js → tr-Cu4P4OMe.js} +1 -1
- package/admin/assets/{tzl-DMy30zde.js → tzl-D97WsZW-.js} +1 -1
- package/admin/assets/{tzm-Cu882cHO.js → tzm-CURkYgMY.js} +1 -1
- package/admin/assets/{tzm-latn-BYxpYHet.js → tzm-latn-BRGsWK-9.js} +1 -1
- package/admin/assets/{ug-cn-Cl8Jqk2E.js → ug-cn-Cd4exKOc.js} +1 -1
- package/admin/assets/{uk-B-8XymtC.js → uk-DEXM3PIH.js} +1 -1
- package/admin/assets/{ur-ChGuAlvQ.js → ur-DpUycj07.js} +1 -1
- package/admin/assets/{uz-QbfaW7fT.js → uz-CznjzufA.js} +1 -1
- package/admin/assets/{uz-latn-DIQivLCy.js → uz-latn-Baga58FN.js} +1 -1
- package/admin/assets/{vi-C2CmYlDu.js → vi-BrZWcL2C.js} +1 -1
- package/admin/assets/{x-pseudo-BWgm1XlP.js → x-pseudo-BY6J4I7_.js} +1 -1
- package/admin/assets/{yo-8bNbPP6u.js → yo-Dkeaym0x.js} +1 -1
- package/admin/assets/{zh-CeNSRZ4r.js → zh-C2fOZUKR.js} +1 -1
- package/admin/assets/{zh-cn-BlbF5C_X.js → zh-cn-CiA7hMZm.js} +1 -1
- package/admin/assets/{zh-hk-kg1c_VSK.js → zh-hk-EkoniWh0.js} +1 -1
- package/admin/assets/{zh-tw-BCl4UsPA.js → zh-tw-KDgos-kB.js} +1 -1
- package/admin/index.html +3 -2
- package/frontend/assets/{dist-legacy-DYE1EOcc.js → dist-legacy-BNFW04Ss.js} +1 -1
- package/frontend/assets/index-legacy-2akkos6t.js +1 -0
- package/frontend/assets/{lib-legacy-C4Gw_0kX.js → lib-legacy-CO5spnaN.js} +1 -1
- package/frontend/assets/{sha512-legacy-D3RbPSpl.js → sha512-legacy-BuJAJxVV.js} +1 -1
- package/frontend/index.html +1 -1
- package/npm-shrinkwrap.json +6 -6
- package/package.json +1 -1
- package/src/api.get_file_list.js +10 -8
- package/src/api.vfs.js +4 -8
- package/src/basicWeb.js +2 -1
- package/src/consoleLog.js +9 -11
- package/src/const.js +1 -1
- package/src/cross.js +5 -1
- package/src/index.js +1 -0
- package/src/plugins.js +2 -1
- package/src/serveGuiFiles.js +2 -1
- package/src/vfs.js +39 -6
- package/src/webdav.js +30 -30
- package/admin/assets/dist-KY_8edrw.js +0 -1
- package/admin/assets/en-Ds3H1Wec.js +0 -1
- package/admin/assets/index-34fRsXFH.js +0 -765
- package/admin/assets/sha512-DlGRFb_l.js +0 -1
- package/frontend/assets/index-legacy-Br-Lpsst.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-legacy-Br-Lpsst.js"],(function(t,i){var h,s,e,r,o,a;return{setters:[function(t){h=t.t}],execute:function(){s=h((function(t,i){!function(t){function h(t,i){return this instanceof h?(this._low=0,this._high=0,this.remainder=null,void 0===i?e.call(this,t):"string"==typeof t?r.call(this,t,i):void s.call(this,t,i)):new h(t,i)}function s(t,i){return this._low=0|t,this._high=0|i,this}function e(t){return this._low=65535&t,this._high=t>>>16,this}function r(t,i){var h=parseInt(t,i||10);return this._low=65535&h,this._high=h>>>16,this}h(Math.pow(36,5)),h(Math.pow(16,7)),h(Math.pow(10,9)),h(Math.pow(2,30)),h(36),h(16),h(10),h(2),h.prototype.fromBits=s,h.prototype.fromNumber=e,h.prototype.fromString=r,h.prototype.toNumber=function(){return 65536*this._high+this._low},h.prototype.toString=function(t){return this.toNumber().toString(t||10)},h.prototype.add=function(t){var i=this._low+t._low,h=i>>>16;return h+=this._high+t._high,this._low=65535&i,this._high=65535&h,this},h.prototype.subtract=function(t){return this.add(t.clone().negate())},h.prototype.multiply=function(t){var i,h=this._high,s=this._low,e=t._high,r=t._low,o=s*r;return i=o>>>16,i+=h*r,i&=65535,i+=s*e,this._low=65535&o,this._high=65535&i,this},h.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new h(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new h(0),this._low=1,this._high=0,this;for(var i=t.clone(),s=-1;!this.lt(i);)i.shiftLeft(1,!0),s++;for(this.remainder=this.clone(),this._low=0,this._high=0;s>=0;s--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),s>=16?this._high|=1<<s-16:this._low|=1<<s);return this},h.prototype.negate=function(){var t=1+(65535&~this._low);return this._low=65535&t,this._high=~this._high+(t>>>16)&65535,this},h.prototype.equals=h.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},h.prototype.greaterThan=h.prototype.gt=function(t){return this._high>t._high||!(this._high<t._high)&&this._low>t._low},h.prototype.lessThan=h.prototype.lt=function(t){return this._high<t._high||!(this._high>t._high)&&this._low<t._low},h.prototype.or=function(t){return this._low|=t._low,this._high|=t._high,this},h.prototype.and=function(t){return this._low&=t._low,this._high&=t._high,this},h.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},h.prototype.xor=function(t){return this._low^=t._low,this._high^=t._high,this},h.prototype.shiftRight=h.prototype.shiftr=function(t){return t>16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},h.prototype.shiftLeft=h.prototype.shiftl=function(t,i){return t>16?(this._high=this._low<<t-16,this._low=0,i||(this._high&=65535)):16==t?(this._high=this._low,this._low=0):(this._high=this._high<<t|this._low>>16-t,this._low=this._low<<t&65535,i||(this._high&=65535)),this},h.prototype.rotateLeft=h.prototype.rotl=function(t){var i=this._high<<16|this._low;return i=i<<t|i>>>32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.rotateRight=h.prototype.rotr=function(t){var i=this._high<<16|this._low;return i=i>>>t|i<<32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.clone=function(){return new h(this._low,this._high)},"undefined"!=typeof define&&define.amd?define([],(function(){return h})):void 0!==i&&i.exports?i.exports=h:t.UINT32=h}(t)})),e=h((function(t,i){!function(t){var h={16:e(Math.pow(16,5)),10:e(Math.pow(10,5)),2:e(Math.pow(2,5))},s={16:e(16),10:e(10),2:e(2)};function e(t,i,h,s){return this instanceof e?(this.remainder=null,"string"==typeof t?a.call(this,t,i):void 0===i?o.call(this,t):void r.apply(this,arguments)):new e(t,i,h,s)}function r(t,i,h,s){return void 0===h?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&i,this._a48=i>>>16,this):(this._a00=0|t,this._a16=0|i,this._a32=0|h,this._a48=0|s,this)}function o(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function a(t,i){i=i||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var s=h[i]||new e(Math.pow(i,5)),r=0,o=t.length;r<o;r+=5){var a=Math.min(5,o-r),m=parseInt(t.slice(r,r+a),i);this.multiply(a<5?new e(Math.pow(i,a)):s).add(new e(m))}return this}e.prototype.fromBits=r,e.prototype.fromNumber=o,e.prototype.fromString=a,e.prototype.toNumber=function(){return 65536*this._a16+this._a00},e.prototype.toString=function(t){var i=s[t=t||10]||new e(t);if(!this.gt(i))return this.toNumber().toString(t);for(var h=this.clone(),r=new Array(64),o=63;o>=0&&(h.div(i),r[o]=h.remainder.toNumber().toString(t),h.gt(i));o--);return r[o-1]=h.toNumber().toString(t),r.join("")},e.prototype.add=function(t){var i=this._a00+t._a00,h=i>>>16,s=(h+=this._a16+t._a16)>>>16,e=(s+=this._a32+t._a32)>>>16;return e+=this._a48+t._a48,this._a00=65535&i,this._a16=65535&h,this._a32=65535&s,this._a48=65535&e,this},e.prototype.subtract=function(t){return this.add(t.clone().negate())},e.prototype.multiply=function(t){var i=this._a00,h=this._a16,s=this._a32,e=this._a48,r=t._a00,o=t._a16,a=t._a32,m=i*r,n=m>>>16,_=(n+=i*o)>>>16;n&=65535,_+=(n+=h*r)>>>16;var l=(_+=i*a)>>>16;return _&=65535,l+=(_+=h*o)>>>16,_&=65535,l+=(_+=s*r)>>>16,l+=i*t._a48,l&=65535,l+=h*a,l&=65535,l+=s*o,l&=65535,l+=e*r,this._a00=65535&m,this._a16=65535&n,this._a32=65535&_,this._a48=65535&l,this},e.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new e(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new e(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var i=t.clone(),h=-1;!this.lt(i);)i.shiftLeft(1,!0),h++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;h>=0;h--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),h>=48?this._a48|=1<<h-48:h>=32?this._a32|=1<<h-32:h>=16?this._a16|=1<<h-16:this._a00|=1<<h);return this},e.prototype.negate=function(){var t=1+(65535&~this._a00);return this._a00=65535&t,t=(65535&~this._a16)+(t>>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},e.prototype.greaterThan=e.prototype.gt=function(t){return this._a48>t._a48||!(this._a48<t._a48)&&(this._a32>t._a32||!(this._a32<t._a32)&&(this._a16>t._a16||!(this._a16<t._a16)&&this._a00>t._a00))},e.prototype.lessThan=e.prototype.lt=function(t){return this._a48<t._a48||!(this._a48>t._a48)&&(this._a32<t._a32||!(this._a32>t._a32)&&(this._a16<t._a16||!(this._a16>t._a16)&&this._a00<t._a00))},e.prototype.or=function(t){return this._a00|=t._a00,this._a16|=t._a16,this._a32|=t._a32,this._a48|=t._a48,this},e.prototype.and=function(t){return this._a00&=t._a00,this._a16&=t._a16,this._a32&=t._a32,this._a48&=t._a48,this},e.prototype.xor=function(t){return this._a00^=t._a00,this._a16^=t._a16,this._a32^=t._a32,this._a48^=t._a48,this},e.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},e.prototype.shiftRight=e.prototype.shiftr=function(t){return(t%=64)>=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},e.prototype.shiftLeft=e.prototype.shiftl=function(t,i){return(t%=64)>=48?(this._a48=this._a00<<t-48,this._a32=0,this._a16=0,this._a00=0):t>=32?(t-=32,this._a48=this._a16<<t|this._a00>>16-t,this._a32=this._a00<<t&65535,this._a16=0,this._a00=0):t>=16?(t-=16,this._a48=this._a32<<t|this._a16>>16-t,this._a32=65535&(this._a16<<t|this._a00>>16-t),this._a16=this._a00<<t&65535,this._a00=0):(this._a48=this._a48<<t|this._a32>>16-t,this._a32=65535&(this._a32<<t|this._a16>>16-t),this._a16=65535&(this._a16<<t|this._a00>>16-t),this._a00=this._a00<<t&65535),i||(this._a48&=65535),this},e.prototype.rotateLeft=e.prototype.rotl=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h<<t|s>>>32-t,r=s<<t|h>>>32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.rotateRight=e.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h>>>t|s<<32-t,r=s>>>t|h<<32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.clone=function(){return new e(this._a00,this._a16,this._a32,this._a48)},"undefined"!=typeof define&&define.amd?define([],(function(){return e})):void 0!==i&&i.exports?i.exports=e:t.UINT64=e}(t)})),r=h((function(t){t.UINT32=s(),t.UINT64=e()})),o=h((function(t,i){var h=r().UINT32;h.prototype.xxh_update=function(t,i){var h,r=e._low,o=e._high,a=t*r;h=a>>>16,h+=i*r,h&=65535,h+=t*o;var m=this._low+(65535&a),n=m>>>16,_=(n+=this._high+(65535&h))<<16|65535&m;n=(_=_<<13|_>>>19)>>>16,h=(a=(m=65535&_)*(r=s._low))>>>16,h+=n*r,h&=65535,h+=m*(o=s._high),this._low=65535&a,this._high=65535&h};var s=h("2654435761"),e=h("2246822519"),o=h("3266489917"),a=h("668265263"),m=h("374761393");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,h="string"==typeof t;h&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),h=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var s=0,e=t.length,r=s+e;if(0==e)return this;if(this.total_len+=e,0==this.memsize&&(this.memory=h?"":i?new Uint8Array(16):new Buffer(16)),this.memsize+e<16)return h?this.memory+=t:i?this.memory.set(t.subarray(0,e),this.memsize):t.copy(this.memory,this.memsize,0,e),this.memsize+=e,this;if(this.memsize>0){h?this.memory+=t.slice(0,16-this.memsize):i?this.memory.set(t.subarray(0,16-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,16-this.memsize);var o=0;h?(this.v1.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v2.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v3.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v4.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2))):(this.v1.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v2.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v3.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v4.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2])),s+=16-this.memsize,this.memsize=0,h&&(this.memory="")}if(s<=r-16){var a=r-16;do{h?(this.v1.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v2.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v3.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v4.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2))):(this.v1.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v2.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v3.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v4.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2])),s+=4}while(s<=a)}return s<r&&(h?this.memory+=t.slice(s):i?this.memory.set(t.subarray(s,r),this.memsize):t.copy(this.memory,this.memsize,s,r),this.memsize=r-s),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for((t=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(m)).add(d.fromNumber(this.total_len));_<=l-4;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2]),t.add(d.multiply(o)).rotl(17).multiply(a),_+=4;for(;_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0),t.add(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(15),t.xor(i).multiply(e),i=t.clone().shiftRight(13),t.xor(i).multiply(o),i=t.clone().shiftRight(16),t.xor(i),this.init(this.seed),t},i.exports=n})),a=h((function(t,i){var h=r().UINT64,s=h("11400714785074694791"),e=h("14029467366897019727"),o=h("1609587929392839161"),a=h("9650029242287828579"),m=h("2870177450012600261");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,r="string"==typeof t;r&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),r=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var o=0,a=t.length,m=o+a;if(0==a)return this;if(this.total_len+=a,0==this.memsize&&(this.memory=r?"":i?new Uint8Array(32):new Buffer(32)),this.memsize+a<32)return r?this.memory+=t:i?this.memory.set(t.subarray(0,a),this.memsize):t.copy(this.memory,this.memsize,0,a),this.memsize+=a,this;if(this.memsize>0){r?this.memory+=t.slice(0,32-this.memsize):i?this.memory.set(t.subarray(0,32-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,32-this.memsize);var n=0;if(r){var _=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6));this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)}else _=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s);o+=32-this.memsize,this.memsize=0,r&&(this.memory="")}if(o<=m-32){var l=m-32;do{r?(_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v1.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)):(_=h(t[o+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s)),o+=8}while(o<=l)}return o<m&&(r?this.memory+=t.slice(o):i?this.memory.set(t.subarray(o,m),this.memsize):t.copy(this.memory,this.memsize,o,m),this.memsize=m-o),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for(this.total_len>=32?((t=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),t.add(this.v3.clone().rotl(12)),t.add(this.v4.clone().rotl(18)),t.xor(this.v1.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v2.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v3.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v4.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a)):t=this.seed.clone().add(m),t.add(d.fromNumber(this.total_len));_<=l-8;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),r.charCodeAt(_+5)<<8|r.charCodeAt(_+4),r.charCodeAt(_+7)<<8|r.charCodeAt(_+6)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],r[_+5]<<8|r[_+4],r[_+7]<<8|r[_+6]),d.multiply(e).rotl(31).multiply(s),t.xor(d).rotl(27).multiply(s).add(a),_+=8;for(_+4<=l&&(n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),0,0):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],0,0),t.xor(d.multiply(s)).rotl(23).multiply(e).add(o),_+=4);_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0,0,0),t.xor(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(33),t.xor(i).multiply(e),i=t.clone().shiftRight(29),t.xor(i).multiply(o),i=t.clone().shiftRight(32),t.xor(i),this.init(this.seed),t},i.exports=n})),t("default",h((function(t,i){i.exports={h32:o(),h64:a()}}))())}}}));
|
|
1
|
+
System.register(["./index-legacy-2akkos6t.js"],(function(t,i){var h,s,e,r,o,a;return{setters:[function(t){h=t.t}],execute:function(){s=h((function(t,i){!function(t){function h(t,i){return this instanceof h?(this._low=0,this._high=0,this.remainder=null,void 0===i?e.call(this,t):"string"==typeof t?r.call(this,t,i):void s.call(this,t,i)):new h(t,i)}function s(t,i){return this._low=0|t,this._high=0|i,this}function e(t){return this._low=65535&t,this._high=t>>>16,this}function r(t,i){var h=parseInt(t,i||10);return this._low=65535&h,this._high=h>>>16,this}h(Math.pow(36,5)),h(Math.pow(16,7)),h(Math.pow(10,9)),h(Math.pow(2,30)),h(36),h(16),h(10),h(2),h.prototype.fromBits=s,h.prototype.fromNumber=e,h.prototype.fromString=r,h.prototype.toNumber=function(){return 65536*this._high+this._low},h.prototype.toString=function(t){return this.toNumber().toString(t||10)},h.prototype.add=function(t){var i=this._low+t._low,h=i>>>16;return h+=this._high+t._high,this._low=65535&i,this._high=65535&h,this},h.prototype.subtract=function(t){return this.add(t.clone().negate())},h.prototype.multiply=function(t){var i,h=this._high,s=this._low,e=t._high,r=t._low,o=s*r;return i=o>>>16,i+=h*r,i&=65535,i+=s*e,this._low=65535&o,this._high=65535&i,this},h.prototype.div=function(t){if(0==t._low&&0==t._high)throw Error("division by zero");if(0==t._high&&1==t._low)return this.remainder=new h(0),this;if(t.gt(this))return this.remainder=this.clone(),this._low=0,this._high=0,this;if(this.eq(t))return this.remainder=new h(0),this._low=1,this._high=0,this;for(var i=t.clone(),s=-1;!this.lt(i);)i.shiftLeft(1,!0),s++;for(this.remainder=this.clone(),this._low=0,this._high=0;s>=0;s--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),s>=16?this._high|=1<<s-16:this._low|=1<<s);return this},h.prototype.negate=function(){var t=1+(65535&~this._low);return this._low=65535&t,this._high=~this._high+(t>>>16)&65535,this},h.prototype.equals=h.prototype.eq=function(t){return this._low==t._low&&this._high==t._high},h.prototype.greaterThan=h.prototype.gt=function(t){return this._high>t._high||!(this._high<t._high)&&this._low>t._low},h.prototype.lessThan=h.prototype.lt=function(t){return this._high<t._high||!(this._high>t._high)&&this._low<t._low},h.prototype.or=function(t){return this._low|=t._low,this._high|=t._high,this},h.prototype.and=function(t){return this._low&=t._low,this._high&=t._high,this},h.prototype.not=function(){return this._low=65535&~this._low,this._high=65535&~this._high,this},h.prototype.xor=function(t){return this._low^=t._low,this._high^=t._high,this},h.prototype.shiftRight=h.prototype.shiftr=function(t){return t>16?(this._low=this._high>>t-16,this._high=0):16==t?(this._low=this._high,this._high=0):(this._low=this._low>>t|this._high<<16-t&65535,this._high>>=t),this},h.prototype.shiftLeft=h.prototype.shiftl=function(t,i){return t>16?(this._high=this._low<<t-16,this._low=0,i||(this._high&=65535)):16==t?(this._high=this._low,this._low=0):(this._high=this._high<<t|this._low>>16-t,this._low=this._low<<t&65535,i||(this._high&=65535)),this},h.prototype.rotateLeft=h.prototype.rotl=function(t){var i=this._high<<16|this._low;return i=i<<t|i>>>32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.rotateRight=h.prototype.rotr=function(t){var i=this._high<<16|this._low;return i=i>>>t|i<<32-t,this._low=65535&i,this._high=i>>>16,this},h.prototype.clone=function(){return new h(this._low,this._high)},"undefined"!=typeof define&&define.amd?define([],(function(){return h})):void 0!==i&&i.exports?i.exports=h:t.UINT32=h}(t)})),e=h((function(t,i){!function(t){var h={16:e(Math.pow(16,5)),10:e(Math.pow(10,5)),2:e(Math.pow(2,5))},s={16:e(16),10:e(10),2:e(2)};function e(t,i,h,s){return this instanceof e?(this.remainder=null,"string"==typeof t?a.call(this,t,i):void 0===i?o.call(this,t):void r.apply(this,arguments)):new e(t,i,h,s)}function r(t,i,h,s){return void 0===h?(this._a00=65535&t,this._a16=t>>>16,this._a32=65535&i,this._a48=i>>>16,this):(this._a00=0|t,this._a16=0|i,this._a32=0|h,this._a48=0|s,this)}function o(t){return this._a00=65535&t,this._a16=t>>>16,this._a32=0,this._a48=0,this}function a(t,i){i=i||10,this._a00=0,this._a16=0,this._a32=0,this._a48=0;for(var s=h[i]||new e(Math.pow(i,5)),r=0,o=t.length;r<o;r+=5){var a=Math.min(5,o-r),m=parseInt(t.slice(r,r+a),i);this.multiply(a<5?new e(Math.pow(i,a)):s).add(new e(m))}return this}e.prototype.fromBits=r,e.prototype.fromNumber=o,e.prototype.fromString=a,e.prototype.toNumber=function(){return 65536*this._a16+this._a00},e.prototype.toString=function(t){var i=s[t=t||10]||new e(t);if(!this.gt(i))return this.toNumber().toString(t);for(var h=this.clone(),r=new Array(64),o=63;o>=0&&(h.div(i),r[o]=h.remainder.toNumber().toString(t),h.gt(i));o--);return r[o-1]=h.toNumber().toString(t),r.join("")},e.prototype.add=function(t){var i=this._a00+t._a00,h=i>>>16,s=(h+=this._a16+t._a16)>>>16,e=(s+=this._a32+t._a32)>>>16;return e+=this._a48+t._a48,this._a00=65535&i,this._a16=65535&h,this._a32=65535&s,this._a48=65535&e,this},e.prototype.subtract=function(t){return this.add(t.clone().negate())},e.prototype.multiply=function(t){var i=this._a00,h=this._a16,s=this._a32,e=this._a48,r=t._a00,o=t._a16,a=t._a32,m=i*r,n=m>>>16,_=(n+=i*o)>>>16;n&=65535,_+=(n+=h*r)>>>16;var l=(_+=i*a)>>>16;return _&=65535,l+=(_+=h*o)>>>16,_&=65535,l+=(_+=s*r)>>>16,l+=i*t._a48,l&=65535,l+=h*a,l&=65535,l+=s*o,l&=65535,l+=e*r,this._a00=65535&m,this._a16=65535&n,this._a32=65535&_,this._a48=65535&l,this},e.prototype.div=function(t){if(0==t._a16&&0==t._a32&&0==t._a48){if(0==t._a00)throw Error("division by zero");if(1==t._a00)return this.remainder=new e(0),this}if(t.gt(this))return this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0,this;if(this.eq(t))return this.remainder=new e(0),this._a00=1,this._a16=0,this._a32=0,this._a48=0,this;for(var i=t.clone(),h=-1;!this.lt(i);)i.shiftLeft(1,!0),h++;for(this.remainder=this.clone(),this._a00=0,this._a16=0,this._a32=0,this._a48=0;h>=0;h--)i.shiftRight(1),this.remainder.lt(i)||(this.remainder.subtract(i),h>=48?this._a48|=1<<h-48:h>=32?this._a32|=1<<h-32:h>=16?this._a16|=1<<h-16:this._a00|=1<<h);return this},e.prototype.negate=function(){var t=1+(65535&~this._a00);return this._a00=65535&t,t=(65535&~this._a16)+(t>>>16),this._a16=65535&t,t=(65535&~this._a32)+(t>>>16),this._a32=65535&t,this._a48=~this._a48+(t>>>16)&65535,this},e.prototype.equals=e.prototype.eq=function(t){return this._a48==t._a48&&this._a00==t._a00&&this._a32==t._a32&&this._a16==t._a16},e.prototype.greaterThan=e.prototype.gt=function(t){return this._a48>t._a48||!(this._a48<t._a48)&&(this._a32>t._a32||!(this._a32<t._a32)&&(this._a16>t._a16||!(this._a16<t._a16)&&this._a00>t._a00))},e.prototype.lessThan=e.prototype.lt=function(t){return this._a48<t._a48||!(this._a48>t._a48)&&(this._a32<t._a32||!(this._a32>t._a32)&&(this._a16<t._a16||!(this._a16>t._a16)&&this._a00<t._a00))},e.prototype.or=function(t){return this._a00|=t._a00,this._a16|=t._a16,this._a32|=t._a32,this._a48|=t._a48,this},e.prototype.and=function(t){return this._a00&=t._a00,this._a16&=t._a16,this._a32&=t._a32,this._a48&=t._a48,this},e.prototype.xor=function(t){return this._a00^=t._a00,this._a16^=t._a16,this._a32^=t._a32,this._a48^=t._a48,this},e.prototype.not=function(){return this._a00=65535&~this._a00,this._a16=65535&~this._a16,this._a32=65535&~this._a32,this._a48=65535&~this._a48,this},e.prototype.shiftRight=e.prototype.shiftr=function(t){return(t%=64)>=48?(this._a00=this._a48>>t-48,this._a16=0,this._a32=0,this._a48=0):t>=32?(t-=32,this._a00=65535&(this._a32>>t|this._a48<<16-t),this._a16=this._a48>>t&65535,this._a32=0,this._a48=0):t>=16?(t-=16,this._a00=65535&(this._a16>>t|this._a32<<16-t),this._a16=65535&(this._a32>>t|this._a48<<16-t),this._a32=this._a48>>t&65535,this._a48=0):(this._a00=65535&(this._a00>>t|this._a16<<16-t),this._a16=65535&(this._a16>>t|this._a32<<16-t),this._a32=65535&(this._a32>>t|this._a48<<16-t),this._a48=this._a48>>t&65535),this},e.prototype.shiftLeft=e.prototype.shiftl=function(t,i){return(t%=64)>=48?(this._a48=this._a00<<t-48,this._a32=0,this._a16=0,this._a00=0):t>=32?(t-=32,this._a48=this._a16<<t|this._a00>>16-t,this._a32=this._a00<<t&65535,this._a16=0,this._a00=0):t>=16?(t-=16,this._a48=this._a32<<t|this._a16>>16-t,this._a32=65535&(this._a16<<t|this._a00>>16-t),this._a16=this._a00<<t&65535,this._a00=0):(this._a48=this._a48<<t|this._a32>>16-t,this._a32=65535&(this._a32<<t|this._a16>>16-t),this._a16=65535&(this._a16<<t|this._a00>>16-t),this._a00=this._a00<<t&65535),i||(this._a48&=65535),this},e.prototype.rotateLeft=e.prototype.rotl=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h<<t|s>>>32-t,r=s<<t|h>>>32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.rotateRight=e.prototype.rotr=function(t){if(0==(t%=64))return this;if(t>=32){var i=this._a00;if(this._a00=this._a32,this._a32=i,i=this._a48,this._a48=this._a16,this._a16=i,32==t)return this;t-=32}var h=this._a48<<16|this._a32,s=this._a16<<16|this._a00,e=h>>>t|s<<32-t,r=s>>>t|h<<32-t;return this._a00=65535&r,this._a16=r>>>16,this._a32=65535&e,this._a48=e>>>16,this},e.prototype.clone=function(){return new e(this._a00,this._a16,this._a32,this._a48)},"undefined"!=typeof define&&define.amd?define([],(function(){return e})):void 0!==i&&i.exports?i.exports=e:t.UINT64=e}(t)})),r=h((function(t){t.UINT32=s(),t.UINT64=e()})),o=h((function(t,i){var h=r().UINT32;h.prototype.xxh_update=function(t,i){var h,r=e._low,o=e._high,a=t*r;h=a>>>16,h+=i*r,h&=65535,h+=t*o;var m=this._low+(65535&a),n=m>>>16,_=(n+=this._high+(65535&h))<<16|65535&m;n=(_=_<<13|_>>>19)>>>16,h=(a=(m=65535&_)*(r=s._low))>>>16,h+=n*r,h&=65535,h+=m*(o=s._high),this._low=65535&a,this._high=65535&h};var s=h("2654435761"),e=h("2246822519"),o=h("3266489917"),a=h("668265263"),m=h("374761393");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,h="string"==typeof t;h&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),h=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var s=0,e=t.length,r=s+e;if(0==e)return this;if(this.total_len+=e,0==this.memsize&&(this.memory=h?"":i?new Uint8Array(16):new Buffer(16)),this.memsize+e<16)return h?this.memory+=t:i?this.memory.set(t.subarray(0,e),this.memsize):t.copy(this.memory,this.memsize,0,e),this.memsize+=e,this;if(this.memsize>0){h?this.memory+=t.slice(0,16-this.memsize):i?this.memory.set(t.subarray(0,16-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,16-this.memsize);var o=0;h?(this.v1.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v2.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v3.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2)),o+=4,this.v4.xxh_update(this.memory.charCodeAt(o+1)<<8|this.memory.charCodeAt(o),this.memory.charCodeAt(o+3)<<8|this.memory.charCodeAt(o+2))):(this.v1.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v2.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v3.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2]),o+=4,this.v4.xxh_update(this.memory[o+1]<<8|this.memory[o],this.memory[o+3]<<8|this.memory[o+2])),s+=16-this.memsize,this.memsize=0,h&&(this.memory="")}if(s<=r-16){var a=r-16;do{h?(this.v1.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v2.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v3.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2)),s+=4,this.v4.xxh_update(t.charCodeAt(s+1)<<8|t.charCodeAt(s),t.charCodeAt(s+3)<<8|t.charCodeAt(s+2))):(this.v1.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v2.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v3.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2]),s+=4,this.v4.xxh_update(t[s+1]<<8|t[s],t[s+3]<<8|t[s+2])),s+=4}while(s<=a)}return s<r&&(h?this.memory+=t.slice(s):i?this.memory.set(t.subarray(s,r),this.memsize):t.copy(this.memory,this.memsize,s,r),this.memsize=r-s),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for((t=this.total_len>=16?this.v1.rotl(1).add(this.v2.rotl(7).add(this.v3.rotl(12).add(this.v4.rotl(18)))):this.seed.clone().add(m)).add(d.fromNumber(this.total_len));_<=l-4;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2]),t.add(d.multiply(o)).rotl(17).multiply(a),_+=4;for(;_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0),t.add(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(15),t.xor(i).multiply(e),i=t.clone().shiftRight(13),t.xor(i).multiply(o),i=t.clone().shiftRight(16),t.xor(i),this.init(this.seed),t},i.exports=n})),a=h((function(t,i){var h=r().UINT64,s=h("11400714785074694791"),e=h("14029467366897019727"),o=h("1609587929392839161"),a=h("9650029242287828579"),m=h("2870177450012600261");function n(){return 2==arguments.length?new n(arguments[1]).update(arguments[0]).digest():this instanceof n?void _.call(this,arguments[0]):new n(arguments[0])}function _(t){return this.seed=t instanceof h?t.clone():h(t),this.v1=this.seed.clone().add(s).add(e),this.v2=this.seed.clone().add(e),this.v3=this.seed.clone(),this.v4=this.seed.clone().subtract(s),this.total_len=0,this.memsize=0,this.memory=null,this}n.prototype.init=_,n.prototype.update=function(t){var i,r="string"==typeof t;r&&(t=function(t){for(var i=[],h=0,s=t.length;h<s;h++){var e=t.charCodeAt(h);e<128?i.push(e):e<2048?i.push(192|e>>6,128|63&e):e<55296||e>=57344?i.push(224|e>>12,128|e>>6&63,128|63&e):(h++,e=65536+((1023&e)<<10|1023&t.charCodeAt(h)),i.push(240|e>>18,128|e>>12&63,128|e>>6&63,128|63&e))}return new Uint8Array(i)}(t),r=!1,i=!0),"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer&&(i=!0,t=new Uint8Array(t));var o=0,a=t.length,m=o+a;if(0==a)return this;if(this.total_len+=a,0==this.memsize&&(this.memory=r?"":i?new Uint8Array(32):new Buffer(32)),this.memsize+a<32)return r?this.memory+=t:i?this.memory.set(t.subarray(0,a),this.memsize):t.copy(this.memory,this.memsize,0,a),this.memsize+=a,this;if(this.memsize>0){r?this.memory+=t.slice(0,32-this.memsize):i?this.memory.set(t.subarray(0,32-this.memsize),this.memsize):t.copy(this.memory,this.memsize,0,32-this.memsize);var n=0;if(r){var _=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6));this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory.charCodeAt(n+1)<<8|this.memory.charCodeAt(n),this.memory.charCodeAt(n+3)<<8|this.memory.charCodeAt(n+2),this.memory.charCodeAt(n+5)<<8|this.memory.charCodeAt(n+4),this.memory.charCodeAt(n+7)<<8|this.memory.charCodeAt(n+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)}else _=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),n+=8,_=h(this.memory[n+1]<<8|this.memory[n],this.memory[n+3]<<8|this.memory[n+2],this.memory[n+5]<<8|this.memory[n+4],this.memory[n+7]<<8|this.memory[n+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s);o+=32-this.memsize,this.memsize=0,r&&(this.memory="")}if(o<=m-32){var l=m-32;do{r?(_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v1.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v2.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v3.add(_.multiply(e)).rotl(31).multiply(s),o+=8,_=h(t.charCodeAt(o+1)<<8|t.charCodeAt(o),t.charCodeAt(o+3)<<8|t.charCodeAt(o+2),t.charCodeAt(o+5)<<8|t.charCodeAt(o+4),t.charCodeAt(o+7)<<8|t.charCodeAt(o+6)),this.v4.add(_.multiply(e)).rotl(31).multiply(s)):(_=h(t[o+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v1.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v2.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v3.add(_.multiply(e)).rotl(31).multiply(s),_=h(t[(o+=8)+1]<<8|t[o],t[o+3]<<8|t[o+2],t[o+5]<<8|t[o+4],t[o+7]<<8|t[o+6]),this.v4.add(_.multiply(e)).rotl(31).multiply(s)),o+=8}while(o<=l)}return o<m&&(r?this.memory+=t.slice(o):i?this.memory.set(t.subarray(o,m),this.memsize):t.copy(this.memory,this.memsize,o,m),this.memsize=m-o),this},n.prototype.digest=function(){var t,i,r=this.memory,n="string"==typeof r,_=0,l=this.memsize,d=new h;for(this.total_len>=32?((t=this.v1.clone().rotl(1)).add(this.v2.clone().rotl(7)),t.add(this.v3.clone().rotl(12)),t.add(this.v4.clone().rotl(18)),t.xor(this.v1.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v2.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v3.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a),t.xor(this.v4.multiply(e).rotl(31).multiply(s)),t.multiply(s).add(a)):t=this.seed.clone().add(m),t.add(d.fromNumber(this.total_len));_<=l-8;)n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),r.charCodeAt(_+5)<<8|r.charCodeAt(_+4),r.charCodeAt(_+7)<<8|r.charCodeAt(_+6)):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],r[_+5]<<8|r[_+4],r[_+7]<<8|r[_+6]),d.multiply(e).rotl(31).multiply(s),t.xor(d).rotl(27).multiply(s).add(a),_+=8;for(_+4<=l&&(n?d.fromBits(r.charCodeAt(_+1)<<8|r.charCodeAt(_),r.charCodeAt(_+3)<<8|r.charCodeAt(_+2),0,0):d.fromBits(r[_+1]<<8|r[_],r[_+3]<<8|r[_+2],0,0),t.xor(d.multiply(s)).rotl(23).multiply(e).add(o),_+=4);_<l;)d.fromBits(n?r.charCodeAt(_++):r[_++],0,0,0),t.xor(d.multiply(m)).rotl(11).multiply(s);return i=t.clone().shiftRight(33),t.xor(i).multiply(e),i=t.clone().shiftRight(29),t.xor(i).multiply(o),i=t.clone().shiftRight(32),t.xor(i),this.init(this.seed),t},i.exports=n})),t("default",h((function(t,i){i.exports={h32:o(),h64:a()}}))())}}}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["./index-legacy-Br-Lpsst.js"],(function(h,t){var i;return{setters:[function(h){i=h.t}],execute:function(){h("default",i((function(h,t){!function(){var h="input is invalid type",i="object"==typeof window,s=i?window:{};s.JS_SHA512_NO_WINDOW&&(i=!1);var e=!i&&"object"==typeof self;!s.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?s=global:e&&(s=self);var r=!s.JS_SHA512_NO_COMMON_JS&&"object"==typeof t&&t.exports,n="function"==typeof define&&define.amd,o=!s.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),l=[-2147483648,8388608,32768,128],f=[24,16,8,0],c=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u=["hex","array","digest","arrayBuffer"],y=[];!s.JS_SHA512_NO_NODE_JS&&Array.isArray||(Array.isArray=function(h){return"[object Array]"===Object.prototype.toString.call(h)}),!o||!s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(h){return"object"==typeof h&&h.buffer&&h.buffer.constructor===ArrayBuffer});var p=function(h,t){return function(i){return new A(t,!0).update(i)[h]()}},d=function(h){var t=p("hex",h);t.create=function(){return new A(h)},t.update=function(h){return t.create().update(h)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=p(s,h)}return t},b=function(h,t){return function(i,s){return new v(i,t,!0).update(s)[h]()}},w=function(h){var t=b("hex",h);t.create=function(t){return new v(t,h)},t.update=function(h,i){return t.create(h).update(i)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=b(s,h)}return t};function A(h,t){t?(y[0]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=y[16]=y[17]=y[18]=y[19]=y[20]=y[21]=y[22]=y[23]=y[24]=y[25]=y[26]=y[27]=y[28]=y[29]=y[30]=y[31]=y[32]=0,this.blocks=y):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==h?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==h?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==h?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=h,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function v(t,i,s){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);e=!0}var n=t.length;if(!e){for(var a,l=[],f=(n=t.length,0),c=0;c<n;++c)(a=t.charCodeAt(c))<128?l[f++]=a:a<2048?(l[f++]=192|a>>6,l[f++]=128|63&a):a<55296||a>=57344?(l[f++]=224|a>>12,l[f++]=128|a>>6&63,l[f++]=128|63&a):(a=65536+((1023&a)<<10|1023&t.charCodeAt(++c)),l[f++]=240|a>>18,l[f++]=128|a>>12&63,l[f++]=128|a>>6&63,l[f++]=128|63&a);t=l}t.length>128&&(t=new A(i,!0).update(t).array());var u=[],y=[];for(c=0;c<128;++c){var p=t[c]||0;u[c]=92^p,y[c]=54^p}A.call(this,i,s),this.update(y),this.oKeyPad=u,this.inner=!0,this.sharedMemory=s}A.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var i,s=typeof t;if("string"!==s){if("object"!==s)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);i=!0}for(var e,r,n=0,a=t.length,l=this.blocks;n<a;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=l[16]=l[17]=l[18]=l[19]=l[20]=l[21]=l[22]=l[23]=l[24]=l[25]=l[26]=l[27]=l[28]=l[29]=l[30]=l[31]=l[32]=0),i)for(r=this.start;n<a&&r<128;++n)l[r>>2]|=t[n]<<f[3&r++];else for(r=this.start;n<a&&r<128;++n)(e=t.charCodeAt(n))<128?l[r>>2]|=e<<f[3&r++]:e<2048?(l[r>>2]|=(192|e>>6)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):e<55296||e>=57344?(l[r>>2]|=(224|e>>12)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++n)),l[r>>2]|=(240|e>>18)<<f[3&r++],l[r>>2]|=(128|e>>12&63)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=128?(this.block=l[32],this.start=r-128,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var h=this.blocks,t=this.lastByteIndex;h[32]=this.block,h[t>>2]|=l[3&t],this.block=h[32],t>=112&&(this.hashed||this.hash(),h[0]=this.block,h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=h[16]=h[17]=h[18]=h[19]=h[20]=h[21]=h[22]=h[23]=h[24]=h[25]=h[26]=h[27]=h[28]=h[29]=h[30]=h[31]=h[32]=0),h[30]=this.hBytes<<3|this.bytes>>>29,h[31]=this.bytes<<3,this.hash()}},A.prototype.hash=function(){var h,t,i,s,e,r,n,o,a,l,f,u,y,p,d,b,w,A,v,_,B,U,g,S,k,z=this.h0h,x=this.h0l,E=this.h1h,O=this.h1l,j=this.h2h,N=this.h2l,J=this.h3h,m=this.h3l,H=this.h4h,I=this.h4l,R=this.h5h,V=this.h5l,C=this.h6h,K=this.h6l,P=this.h7h,D=this.h7l,F=this.blocks;for(h=32;h<160;h+=2)t=((_=F[h-30])>>>1|(B=F[h-29])<<31)^(_>>>8|B<<24)^_>>>7,i=(B>>>1|_<<31)^(B>>>8|_<<24)^(B>>>7|_<<25),s=((_=F[h-4])>>>19|(B=F[h-3])<<13)^(B>>>29|_<<3)^_>>>6,e=(B>>>19|_<<13)^(_>>>29|B<<3)^(B>>>6|_<<26),_=F[h-32],B=F[h-31],a=((U=F[h-14])>>>16)+(_>>>16)+(t>>>16)+(s>>>16)+((o=(65535&U)+(65535&_)+(65535&t)+(65535&s)+((n=((g=F[h-13])>>>16)+(B>>>16)+(i>>>16)+(e>>>16)+((r=(65535&g)+(65535&B)+(65535&i)+(65535&e))>>>16))>>>16))>>>16),F[h]=a<<16|65535&o,F[h+1]=n<<16|65535&r;var M=z,T=x,W=E,Y=O,q=j,G=N,L=J,Q=m,X=H,Z=I,$=R,hh=V,th=C,ih=K,sh=P,eh=D;for(b=W&q,w=Y&G,h=0;h<160;h+=8)t=(M>>>28|T<<4)^(T>>>2|M<<30)^(T>>>7|M<<25),i=(T>>>28|M<<4)^(M>>>2|T<<30)^(M>>>7|T<<25),s=(X>>>14|Z<<18)^(X>>>18|Z<<14)^(Z>>>9|X<<23),e=(Z>>>14|X<<18)^(Z>>>18|X<<14)^(X>>>9|Z<<23),A=(l=M&W)^M&q^b,v=(f=T&Y)^T&G^w,S=X&$^~X&th,k=Z&hh^~Z&ih,_=F[h],B=F[h+1],_=(a=((U=c[h])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(sh>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&sh)+((n=((g=c[h+1])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(eh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&eh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,sh=(a=(L>>>16)+(_>>>16)+((o=(65535&L)+(65535&_)+((n=(Q>>>16)+(B>>>16)+((r=(65535&Q)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,eh=n<<16|65535&r,t=((L=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Q=n<<16|65535&r)<<4)^(Q>>>2|L<<30)^(Q>>>7|L<<25),i=(Q>>>28|L<<4)^(L>>>2|Q<<30)^(L>>>7|Q<<25),s=(sh>>>14|eh<<18)^(sh>>>18|eh<<14)^(eh>>>9|sh<<23),e=(eh>>>14|sh<<18)^(eh>>>18|sh<<14)^(sh>>>9|eh<<23),A=(u=L&M)^L&W^l,v=(y=Q&T)^Q&Y^f,S=sh&X^~sh&$,k=eh&Z^~eh&hh,_=F[h+2],B=F[h+3],_=(a=((U=c[h+2])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(th>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&th)+((n=((g=c[h+3])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(ih>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&ih))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,th=(a=(q>>>16)+(_>>>16)+((o=(65535&q)+(65535&_)+((n=(G>>>16)+(B>>>16)+((r=(65535&G)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,ih=n<<16|65535&r,t=((q=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(G=n<<16|65535&r)<<4)^(G>>>2|q<<30)^(G>>>7|q<<25),i=(G>>>28|q<<4)^(q>>>2|G<<30)^(q>>>7|G<<25),s=(th>>>14|ih<<18)^(th>>>18|ih<<14)^(ih>>>9|th<<23),e=(ih>>>14|th<<18)^(ih>>>18|th<<14)^(th>>>9|ih<<23),A=(p=q&L)^q&M^u,v=(d=G&Q)^G&T^y,S=th&sh^~th&X,k=ih&eh^~ih&Z,_=F[h+4],B=F[h+5],_=(a=((U=c[h+4])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+($>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&$)+((n=((g=c[h+5])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(hh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&hh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,$=(a=(W>>>16)+(_>>>16)+((o=(65535&W)+(65535&_)+((n=(Y>>>16)+(B>>>16)+((r=(65535&Y)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,hh=n<<16|65535&r,t=((W=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Y=n<<16|65535&r)<<4)^(Y>>>2|W<<30)^(Y>>>7|W<<25),i=(Y>>>28|W<<4)^(W>>>2|Y<<30)^(W>>>7|Y<<25),s=($>>>14|hh<<18)^($>>>18|hh<<14)^(hh>>>9|$<<23),e=(hh>>>14|$<<18)^(hh>>>18|$<<14)^($>>>9|hh<<23),A=(b=W&q)^W&L^p,v=(w=Y&G)^Y&Q^d,S=$&th^~$&sh,k=hh&ih^~hh&eh,_=F[h+6],B=F[h+7],_=(a=((U=c[h+6])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(X>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&X)+((n=((g=c[h+7])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(Z>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&Z))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,X=(a=(M>>>16)+(_>>>16)+((o=(65535&M)+(65535&_)+((n=(T>>>16)+(B>>>16)+((r=(65535&T)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,Z=n<<16|65535&r,M=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,T=n<<16|65535&r;a=(z>>>16)+(M>>>16)+((o=(65535&z)+(65535&M)+((n=(x>>>16)+(T>>>16)+((r=(65535&x)+(65535&T))>>>16))>>>16))>>>16),this.h0h=a<<16|65535&o,this.h0l=n<<16|65535&r,a=(E>>>16)+(W>>>16)+((o=(65535&E)+(65535&W)+((n=(O>>>16)+(Y>>>16)+((r=(65535&O)+(65535&Y))>>>16))>>>16))>>>16),this.h1h=a<<16|65535&o,this.h1l=n<<16|65535&r,a=(j>>>16)+(q>>>16)+((o=(65535&j)+(65535&q)+((n=(N>>>16)+(G>>>16)+((r=(65535&N)+(65535&G))>>>16))>>>16))>>>16),this.h2h=a<<16|65535&o,this.h2l=n<<16|65535&r,a=(J>>>16)+(L>>>16)+((o=(65535&J)+(65535&L)+((n=(m>>>16)+(Q>>>16)+((r=(65535&m)+(65535&Q))>>>16))>>>16))>>>16),this.h3h=a<<16|65535&o,this.h3l=n<<16|65535&r,a=(H>>>16)+(X>>>16)+((o=(65535&H)+(65535&X)+((n=(I>>>16)+(Z>>>16)+((r=(65535&I)+(65535&Z))>>>16))>>>16))>>>16),this.h4h=a<<16|65535&o,this.h4l=n<<16|65535&r,a=(R>>>16)+($>>>16)+((o=(65535&R)+(65535&$)+((n=(V>>>16)+(hh>>>16)+((r=(65535&V)+(65535&hh))>>>16))>>>16))>>>16),this.h5h=a<<16|65535&o,this.h5l=n<<16|65535&r,a=(C>>>16)+(th>>>16)+((o=(65535&C)+(65535&th)+((n=(K>>>16)+(ih>>>16)+((r=(65535&K)+(65535&ih))>>>16))>>>16))>>>16),this.h6h=a<<16|65535&o,this.h6l=n<<16|65535&r,a=(P>>>16)+(sh>>>16)+((o=(65535&P)+(65535&sh)+((n=(D>>>16)+(eh>>>16)+((r=(65535&D)+(65535&eh))>>>16))>>>16))>>>16),this.h7h=a<<16|65535&o,this.h7l=n<<16|65535&r},A.prototype.hex=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,l=this.h4h,f=this.h4l,c=this.h5h,u=this.h5l,y=this.h6h,p=this.h6l,d=this.h7h,b=this.h7l,w=this.bits,A=a[h>>28&15]+a[h>>24&15]+a[h>>20&15]+a[h>>16&15]+a[h>>12&15]+a[h>>8&15]+a[h>>4&15]+a[15&h]+a[t>>28&15]+a[t>>24&15]+a[t>>20&15]+a[t>>16&15]+a[t>>12&15]+a[t>>8&15]+a[t>>4&15]+a[15&t]+a[i>>28&15]+a[i>>24&15]+a[i>>20&15]+a[i>>16&15]+a[i>>12&15]+a[i>>8&15]+a[i>>4&15]+a[15&i]+a[s>>28&15]+a[s>>24&15]+a[s>>20&15]+a[s>>16&15]+a[s>>12&15]+a[s>>8&15]+a[s>>4&15]+a[15&s]+a[e>>28&15]+a[e>>24&15]+a[e>>20&15]+a[e>>16&15]+a[e>>12&15]+a[e>>8&15]+a[e>>4&15]+a[15&e]+a[r>>28&15]+a[r>>24&15]+a[r>>20&15]+a[r>>16&15]+a[r>>12&15]+a[r>>8&15]+a[r>>4&15]+a[15&r]+a[n>>28&15]+a[n>>24&15]+a[n>>20&15]+a[n>>16&15]+a[n>>12&15]+a[n>>8&15]+a[n>>4&15]+a[15&n];return w>=256&&(A+=a[o>>28&15]+a[o>>24&15]+a[o>>20&15]+a[o>>16&15]+a[o>>12&15]+a[o>>8&15]+a[o>>4&15]+a[15&o]),w>=384&&(A+=a[l>>28&15]+a[l>>24&15]+a[l>>20&15]+a[l>>16&15]+a[l>>12&15]+a[l>>8&15]+a[l>>4&15]+a[15&l]+a[f>>28&15]+a[f>>24&15]+a[f>>20&15]+a[f>>16&15]+a[f>>12&15]+a[f>>8&15]+a[f>>4&15]+a[15&f]+a[c>>28&15]+a[c>>24&15]+a[c>>20&15]+a[c>>16&15]+a[c>>12&15]+a[c>>8&15]+a[c>>4&15]+a[15&c]+a[u>>28&15]+a[u>>24&15]+a[u>>20&15]+a[u>>16&15]+a[u>>12&15]+a[u>>8&15]+a[u>>4&15]+a[15&u]),512==w&&(A+=a[y>>28&15]+a[y>>24&15]+a[y>>20&15]+a[y>>16&15]+a[y>>12&15]+a[y>>8&15]+a[y>>4&15]+a[15&y]+a[p>>28&15]+a[p>>24&15]+a[p>>20&15]+a[p>>16&15]+a[p>>12&15]+a[p>>8&15]+a[p>>4&15]+a[15&p]+a[d>>28&15]+a[d>>24&15]+a[d>>20&15]+a[d>>16&15]+a[d>>12&15]+a[d>>8&15]+a[d>>4&15]+a[15&d]+a[b>>28&15]+a[b>>24&15]+a[b>>20&15]+a[b>>16&15]+a[b>>12&15]+a[b>>8&15]+a[b>>4&15]+a[15&b]),A},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,a=this.h4h,l=this.h4l,f=this.h5h,c=this.h5l,u=this.h6h,y=this.h6l,p=this.h7h,d=this.h7l,b=this.bits,w=[h>>24&255,h>>16&255,h>>8&255,255&h,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n];return b>=256&&w.push(o>>24&255,o>>16&255,o>>8&255,255&o),b>=384&&w.push(a>>24&255,a>>16&255,a>>8&255,255&a,l>>24&255,l>>16&255,l>>8&255,255&l,f>>24&255,f>>16&255,f>>8&255,255&f,c>>24&255,c>>16&255,c>>8&255,255&c),512==b&&w.push(u>>24&255,u>>16&255,u>>8&255,255&u,y>>24&255,y>>16&255,y>>8&255,255&y,p>>24&255,p>>16&255,p>>8&255,255&p,d>>24&255,d>>16&255,d>>8&255,255&d),w},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var h=this.bits,t=new ArrayBuffer(h/8),i=new DataView(t);return i.setUint32(0,this.h0h),i.setUint32(4,this.h0l),i.setUint32(8,this.h1h),i.setUint32(12,this.h1l),i.setUint32(16,this.h2h),i.setUint32(20,this.h2l),i.setUint32(24,this.h3h),h>=256&&i.setUint32(28,this.h3l),h>=384&&(i.setUint32(32,this.h4h),i.setUint32(36,this.h4l),i.setUint32(40,this.h5h),i.setUint32(44,this.h5l)),512==h&&(i.setUint32(48,this.h6h),i.setUint32(52,this.h6l),i.setUint32(56,this.h7h),i.setUint32(60,this.h7l)),t},A.prototype.clone=function(){var h=new A(this.bits,!1);return this.copyTo(h),h},A.prototype.copyTo=function(h){var t=0,i=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<i.length;++t)h[i[t]]=this[i[t]];for(t=0;t<this.blocks.length;++t)h.blocks[t]=this.blocks[t]},v.prototype=new A,v.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var h=this.array();A.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(h),A.prototype.finalize.call(this)}},v.prototype.clone=function(){var h=new v([],this.bits,!1);this.copyTo(h),h.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)h.oKeyPad[t]=this.oKeyPad[t];return h};var _=d(512);_.sha512=_,_.sha384=d(384),_.sha512_256=d(256),_.sha512_224=d(224),_.sha512.hmac=w(512),_.sha384.hmac=w(384),_.sha512_256.hmac=w(256),_.sha512_224.hmac=w(224),r?t.exports=_:(s.sha512=_.sha512,s.sha384=_.sha384,s.sha512_256=_.sha512_256,s.sha512_224=_.sha512_224,n&&define((function(){return _})))}()}))())}}}));
|
|
1
|
+
System.register(["./index-legacy-2akkos6t.js"],(function(h,t){var i;return{setters:[function(h){i=h.t}],execute:function(){h("default",i((function(h,t){!function(){var h="input is invalid type",i="object"==typeof window,s=i?window:{};s.JS_SHA512_NO_WINDOW&&(i=!1);var e=!i&&"object"==typeof self;!s.JS_SHA512_NO_NODE_JS&&"object"==typeof process&&process.versions&&process.versions.node?s=global:e&&(s=self);var r=!s.JS_SHA512_NO_COMMON_JS&&"object"==typeof t&&t.exports,n="function"==typeof define&&define.amd,o=!s.JS_SHA512_NO_ARRAY_BUFFER&&"undefined"!=typeof ArrayBuffer,a="0123456789abcdef".split(""),l=[-2147483648,8388608,32768,128],f=[24,16,8,0],c=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],u=["hex","array","digest","arrayBuffer"],y=[];!s.JS_SHA512_NO_NODE_JS&&Array.isArray||(Array.isArray=function(h){return"[object Array]"===Object.prototype.toString.call(h)}),!o||!s.JS_SHA512_NO_ARRAY_BUFFER_IS_VIEW&&ArrayBuffer.isView||(ArrayBuffer.isView=function(h){return"object"==typeof h&&h.buffer&&h.buffer.constructor===ArrayBuffer});var p=function(h,t){return function(i){return new A(t,!0).update(i)[h]()}},d=function(h){var t=p("hex",h);t.create=function(){return new A(h)},t.update=function(h){return t.create().update(h)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=p(s,h)}return t},b=function(h,t){return function(i,s){return new v(i,t,!0).update(s)[h]()}},w=function(h){var t=b("hex",h);t.create=function(t){return new v(t,h)},t.update=function(h,i){return t.create(h).update(i)};for(var i=0;i<u.length;++i){var s=u[i];t[s]=b(s,h)}return t};function A(h,t){t?(y[0]=y[1]=y[2]=y[3]=y[4]=y[5]=y[6]=y[7]=y[8]=y[9]=y[10]=y[11]=y[12]=y[13]=y[14]=y[15]=y[16]=y[17]=y[18]=y[19]=y[20]=y[21]=y[22]=y[23]=y[24]=y[25]=y[26]=y[27]=y[28]=y[29]=y[30]=y[31]=y[32]=0,this.blocks=y):this.blocks=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],384==h?(this.h0h=3418070365,this.h0l=3238371032,this.h1h=1654270250,this.h1l=914150663,this.h2h=2438529370,this.h2l=812702999,this.h3h=355462360,this.h3l=4144912697,this.h4h=1731405415,this.h4l=4290775857,this.h5h=2394180231,this.h5l=1750603025,this.h6h=3675008525,this.h6l=1694076839,this.h7h=1203062813,this.h7l=3204075428):256==h?(this.h0h=573645204,this.h0l=4230739756,this.h1h=2673172387,this.h1l=3360449730,this.h2h=596883563,this.h2l=1867755857,this.h3h=2520282905,this.h3l=1497426621,this.h4h=2519219938,this.h4l=2827943907,this.h5h=3193839141,this.h5l=1401305490,this.h6h=721525244,this.h6l=746961066,this.h7h=246885852,this.h7l=2177182882):224==h?(this.h0h=2352822216,this.h0l=424955298,this.h1h=1944164710,this.h1l=2312950998,this.h2h=502970286,this.h2l=855612546,this.h3h=1738396948,this.h3l=1479516111,this.h4h=258812777,this.h4l=2077511080,this.h5h=2011393907,this.h5l=79989058,this.h6h=1067287976,this.h6l=1780299464,this.h7h=286451373,this.h7l=2446758561):(this.h0h=1779033703,this.h0l=4089235720,this.h1h=3144134277,this.h1l=2227873595,this.h2h=1013904242,this.h2l=4271175723,this.h3h=2773480762,this.h3l=1595750129,this.h4h=1359893119,this.h4l=2917565137,this.h5h=2600822924,this.h5l=725511199,this.h6h=528734635,this.h6l=4215389547,this.h7h=1541459225,this.h7l=327033209),this.bits=h,this.block=this.start=this.bytes=this.hBytes=0,this.finalized=this.hashed=!1}function v(t,i,s){var e,r=typeof t;if("string"!==r){if("object"!==r)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);e=!0}var n=t.length;if(!e){for(var a,l=[],f=(n=t.length,0),c=0;c<n;++c)(a=t.charCodeAt(c))<128?l[f++]=a:a<2048?(l[f++]=192|a>>6,l[f++]=128|63&a):a<55296||a>=57344?(l[f++]=224|a>>12,l[f++]=128|a>>6&63,l[f++]=128|63&a):(a=65536+((1023&a)<<10|1023&t.charCodeAt(++c)),l[f++]=240|a>>18,l[f++]=128|a>>12&63,l[f++]=128|a>>6&63,l[f++]=128|63&a);t=l}t.length>128&&(t=new A(i,!0).update(t).array());var u=[],y=[];for(c=0;c<128;++c){var p=t[c]||0;u[c]=92^p,y[c]=54^p}A.call(this,i,s),this.update(y),this.oKeyPad=u,this.inner=!0,this.sharedMemory=s}A.prototype.update=function(t){if(this.finalized)throw new Error("finalize already called");var i,s=typeof t;if("string"!==s){if("object"!==s)throw new Error(h);if(null===t)throw new Error(h);if(o&&t.constructor===ArrayBuffer)t=new Uint8Array(t);else if(!(Array.isArray(t)||o&&ArrayBuffer.isView(t)))throw new Error(h);i=!0}for(var e,r,n=0,a=t.length,l=this.blocks;n<a;){if(this.hashed&&(this.hashed=!1,l[0]=this.block,l[1]=l[2]=l[3]=l[4]=l[5]=l[6]=l[7]=l[8]=l[9]=l[10]=l[11]=l[12]=l[13]=l[14]=l[15]=l[16]=l[17]=l[18]=l[19]=l[20]=l[21]=l[22]=l[23]=l[24]=l[25]=l[26]=l[27]=l[28]=l[29]=l[30]=l[31]=l[32]=0),i)for(r=this.start;n<a&&r<128;++n)l[r>>2]|=t[n]<<f[3&r++];else for(r=this.start;n<a&&r<128;++n)(e=t.charCodeAt(n))<128?l[r>>2]|=e<<f[3&r++]:e<2048?(l[r>>2]|=(192|e>>6)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):e<55296||e>=57344?(l[r>>2]|=(224|e>>12)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]):(e=65536+((1023&e)<<10|1023&t.charCodeAt(++n)),l[r>>2]|=(240|e>>18)<<f[3&r++],l[r>>2]|=(128|e>>12&63)<<f[3&r++],l[r>>2]|=(128|e>>6&63)<<f[3&r++],l[r>>2]|=(128|63&e)<<f[3&r++]);this.lastByteIndex=r,this.bytes+=r-this.start,r>=128?(this.block=l[32],this.start=r-128,this.hash(),this.hashed=!0):this.start=r}return this.bytes>4294967295&&(this.hBytes+=this.bytes/4294967296|0,this.bytes=this.bytes%4294967296),this},A.prototype.finalize=function(){if(!this.finalized){this.finalized=!0;var h=this.blocks,t=this.lastByteIndex;h[32]=this.block,h[t>>2]|=l[3&t],this.block=h[32],t>=112&&(this.hashed||this.hash(),h[0]=this.block,h[1]=h[2]=h[3]=h[4]=h[5]=h[6]=h[7]=h[8]=h[9]=h[10]=h[11]=h[12]=h[13]=h[14]=h[15]=h[16]=h[17]=h[18]=h[19]=h[20]=h[21]=h[22]=h[23]=h[24]=h[25]=h[26]=h[27]=h[28]=h[29]=h[30]=h[31]=h[32]=0),h[30]=this.hBytes<<3|this.bytes>>>29,h[31]=this.bytes<<3,this.hash()}},A.prototype.hash=function(){var h,t,i,s,e,r,n,o,a,l,f,u,y,p,d,b,w,A,v,_,B,U,g,S,k,z=this.h0h,x=this.h0l,E=this.h1h,O=this.h1l,j=this.h2h,N=this.h2l,J=this.h3h,m=this.h3l,H=this.h4h,I=this.h4l,R=this.h5h,V=this.h5l,C=this.h6h,K=this.h6l,P=this.h7h,D=this.h7l,F=this.blocks;for(h=32;h<160;h+=2)t=((_=F[h-30])>>>1|(B=F[h-29])<<31)^(_>>>8|B<<24)^_>>>7,i=(B>>>1|_<<31)^(B>>>8|_<<24)^(B>>>7|_<<25),s=((_=F[h-4])>>>19|(B=F[h-3])<<13)^(B>>>29|_<<3)^_>>>6,e=(B>>>19|_<<13)^(_>>>29|B<<3)^(B>>>6|_<<26),_=F[h-32],B=F[h-31],a=((U=F[h-14])>>>16)+(_>>>16)+(t>>>16)+(s>>>16)+((o=(65535&U)+(65535&_)+(65535&t)+(65535&s)+((n=((g=F[h-13])>>>16)+(B>>>16)+(i>>>16)+(e>>>16)+((r=(65535&g)+(65535&B)+(65535&i)+(65535&e))>>>16))>>>16))>>>16),F[h]=a<<16|65535&o,F[h+1]=n<<16|65535&r;var M=z,T=x,W=E,Y=O,q=j,G=N,L=J,Q=m,X=H,Z=I,$=R,hh=V,th=C,ih=K,sh=P,eh=D;for(b=W&q,w=Y&G,h=0;h<160;h+=8)t=(M>>>28|T<<4)^(T>>>2|M<<30)^(T>>>7|M<<25),i=(T>>>28|M<<4)^(M>>>2|T<<30)^(M>>>7|T<<25),s=(X>>>14|Z<<18)^(X>>>18|Z<<14)^(Z>>>9|X<<23),e=(Z>>>14|X<<18)^(Z>>>18|X<<14)^(X>>>9|Z<<23),A=(l=M&W)^M&q^b,v=(f=T&Y)^T&G^w,S=X&$^~X&th,k=Z&hh^~Z&ih,_=F[h],B=F[h+1],_=(a=((U=c[h])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(sh>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&sh)+((n=((g=c[h+1])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(eh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&eh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,sh=(a=(L>>>16)+(_>>>16)+((o=(65535&L)+(65535&_)+((n=(Q>>>16)+(B>>>16)+((r=(65535&Q)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,eh=n<<16|65535&r,t=((L=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Q=n<<16|65535&r)<<4)^(Q>>>2|L<<30)^(Q>>>7|L<<25),i=(Q>>>28|L<<4)^(L>>>2|Q<<30)^(L>>>7|Q<<25),s=(sh>>>14|eh<<18)^(sh>>>18|eh<<14)^(eh>>>9|sh<<23),e=(eh>>>14|sh<<18)^(eh>>>18|sh<<14)^(sh>>>9|eh<<23),A=(u=L&M)^L&W^l,v=(y=Q&T)^Q&Y^f,S=sh&X^~sh&$,k=eh&Z^~eh&hh,_=F[h+2],B=F[h+3],_=(a=((U=c[h+2])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(th>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&th)+((n=((g=c[h+3])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(ih>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&ih))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,th=(a=(q>>>16)+(_>>>16)+((o=(65535&q)+(65535&_)+((n=(G>>>16)+(B>>>16)+((r=(65535&G)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,ih=n<<16|65535&r,t=((q=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(G=n<<16|65535&r)<<4)^(G>>>2|q<<30)^(G>>>7|q<<25),i=(G>>>28|q<<4)^(q>>>2|G<<30)^(q>>>7|G<<25),s=(th>>>14|ih<<18)^(th>>>18|ih<<14)^(ih>>>9|th<<23),e=(ih>>>14|th<<18)^(ih>>>18|th<<14)^(th>>>9|ih<<23),A=(p=q&L)^q&M^u,v=(d=G&Q)^G&T^y,S=th&sh^~th&X,k=ih&eh^~ih&Z,_=F[h+4],B=F[h+5],_=(a=((U=c[h+4])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+($>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&$)+((n=((g=c[h+5])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(hh>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&hh))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,$=(a=(W>>>16)+(_>>>16)+((o=(65535&W)+(65535&_)+((n=(Y>>>16)+(B>>>16)+((r=(65535&Y)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,hh=n<<16|65535&r,t=((W=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o)>>>28|(Y=n<<16|65535&r)<<4)^(Y>>>2|W<<30)^(Y>>>7|W<<25),i=(Y>>>28|W<<4)^(W>>>2|Y<<30)^(W>>>7|Y<<25),s=($>>>14|hh<<18)^($>>>18|hh<<14)^(hh>>>9|$<<23),e=(hh>>>14|$<<18)^(hh>>>18|$<<14)^($>>>9|hh<<23),A=(b=W&q)^W&L^p,v=(w=Y&G)^Y&Q^d,S=$&th^~$&sh,k=hh&ih^~hh&eh,_=F[h+6],B=F[h+7],_=(a=((U=c[h+6])>>>16)+(_>>>16)+(S>>>16)+(s>>>16)+(X>>>16)+((o=(65535&U)+(65535&_)+(65535&S)+(65535&s)+(65535&X)+((n=((g=c[h+7])>>>16)+(B>>>16)+(k>>>16)+(e>>>16)+(Z>>>16)+((r=(65535&g)+(65535&B)+(65535&k)+(65535&e)+(65535&Z))>>>16))>>>16))>>>16))<<16|65535&o,B=n<<16|65535&r,U=(a=(A>>>16)+(t>>>16)+((o=(65535&A)+(65535&t)+((n=(v>>>16)+(i>>>16)+((r=(65535&v)+(65535&i))>>>16))>>>16))>>>16))<<16|65535&o,g=n<<16|65535&r,X=(a=(M>>>16)+(_>>>16)+((o=(65535&M)+(65535&_)+((n=(T>>>16)+(B>>>16)+((r=(65535&T)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,Z=n<<16|65535&r,M=(a=(U>>>16)+(_>>>16)+((o=(65535&U)+(65535&_)+((n=(g>>>16)+(B>>>16)+((r=(65535&g)+(65535&B))>>>16))>>>16))>>>16))<<16|65535&o,T=n<<16|65535&r;a=(z>>>16)+(M>>>16)+((o=(65535&z)+(65535&M)+((n=(x>>>16)+(T>>>16)+((r=(65535&x)+(65535&T))>>>16))>>>16))>>>16),this.h0h=a<<16|65535&o,this.h0l=n<<16|65535&r,a=(E>>>16)+(W>>>16)+((o=(65535&E)+(65535&W)+((n=(O>>>16)+(Y>>>16)+((r=(65535&O)+(65535&Y))>>>16))>>>16))>>>16),this.h1h=a<<16|65535&o,this.h1l=n<<16|65535&r,a=(j>>>16)+(q>>>16)+((o=(65535&j)+(65535&q)+((n=(N>>>16)+(G>>>16)+((r=(65535&N)+(65535&G))>>>16))>>>16))>>>16),this.h2h=a<<16|65535&o,this.h2l=n<<16|65535&r,a=(J>>>16)+(L>>>16)+((o=(65535&J)+(65535&L)+((n=(m>>>16)+(Q>>>16)+((r=(65535&m)+(65535&Q))>>>16))>>>16))>>>16),this.h3h=a<<16|65535&o,this.h3l=n<<16|65535&r,a=(H>>>16)+(X>>>16)+((o=(65535&H)+(65535&X)+((n=(I>>>16)+(Z>>>16)+((r=(65535&I)+(65535&Z))>>>16))>>>16))>>>16),this.h4h=a<<16|65535&o,this.h4l=n<<16|65535&r,a=(R>>>16)+($>>>16)+((o=(65535&R)+(65535&$)+((n=(V>>>16)+(hh>>>16)+((r=(65535&V)+(65535&hh))>>>16))>>>16))>>>16),this.h5h=a<<16|65535&o,this.h5l=n<<16|65535&r,a=(C>>>16)+(th>>>16)+((o=(65535&C)+(65535&th)+((n=(K>>>16)+(ih>>>16)+((r=(65535&K)+(65535&ih))>>>16))>>>16))>>>16),this.h6h=a<<16|65535&o,this.h6l=n<<16|65535&r,a=(P>>>16)+(sh>>>16)+((o=(65535&P)+(65535&sh)+((n=(D>>>16)+(eh>>>16)+((r=(65535&D)+(65535&eh))>>>16))>>>16))>>>16),this.h7h=a<<16|65535&o,this.h7l=n<<16|65535&r},A.prototype.hex=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,l=this.h4h,f=this.h4l,c=this.h5h,u=this.h5l,y=this.h6h,p=this.h6l,d=this.h7h,b=this.h7l,w=this.bits,A=a[h>>28&15]+a[h>>24&15]+a[h>>20&15]+a[h>>16&15]+a[h>>12&15]+a[h>>8&15]+a[h>>4&15]+a[15&h]+a[t>>28&15]+a[t>>24&15]+a[t>>20&15]+a[t>>16&15]+a[t>>12&15]+a[t>>8&15]+a[t>>4&15]+a[15&t]+a[i>>28&15]+a[i>>24&15]+a[i>>20&15]+a[i>>16&15]+a[i>>12&15]+a[i>>8&15]+a[i>>4&15]+a[15&i]+a[s>>28&15]+a[s>>24&15]+a[s>>20&15]+a[s>>16&15]+a[s>>12&15]+a[s>>8&15]+a[s>>4&15]+a[15&s]+a[e>>28&15]+a[e>>24&15]+a[e>>20&15]+a[e>>16&15]+a[e>>12&15]+a[e>>8&15]+a[e>>4&15]+a[15&e]+a[r>>28&15]+a[r>>24&15]+a[r>>20&15]+a[r>>16&15]+a[r>>12&15]+a[r>>8&15]+a[r>>4&15]+a[15&r]+a[n>>28&15]+a[n>>24&15]+a[n>>20&15]+a[n>>16&15]+a[n>>12&15]+a[n>>8&15]+a[n>>4&15]+a[15&n];return w>=256&&(A+=a[o>>28&15]+a[o>>24&15]+a[o>>20&15]+a[o>>16&15]+a[o>>12&15]+a[o>>8&15]+a[o>>4&15]+a[15&o]),w>=384&&(A+=a[l>>28&15]+a[l>>24&15]+a[l>>20&15]+a[l>>16&15]+a[l>>12&15]+a[l>>8&15]+a[l>>4&15]+a[15&l]+a[f>>28&15]+a[f>>24&15]+a[f>>20&15]+a[f>>16&15]+a[f>>12&15]+a[f>>8&15]+a[f>>4&15]+a[15&f]+a[c>>28&15]+a[c>>24&15]+a[c>>20&15]+a[c>>16&15]+a[c>>12&15]+a[c>>8&15]+a[c>>4&15]+a[15&c]+a[u>>28&15]+a[u>>24&15]+a[u>>20&15]+a[u>>16&15]+a[u>>12&15]+a[u>>8&15]+a[u>>4&15]+a[15&u]),512==w&&(A+=a[y>>28&15]+a[y>>24&15]+a[y>>20&15]+a[y>>16&15]+a[y>>12&15]+a[y>>8&15]+a[y>>4&15]+a[15&y]+a[p>>28&15]+a[p>>24&15]+a[p>>20&15]+a[p>>16&15]+a[p>>12&15]+a[p>>8&15]+a[p>>4&15]+a[15&p]+a[d>>28&15]+a[d>>24&15]+a[d>>20&15]+a[d>>16&15]+a[d>>12&15]+a[d>>8&15]+a[d>>4&15]+a[15&d]+a[b>>28&15]+a[b>>24&15]+a[b>>20&15]+a[b>>16&15]+a[b>>12&15]+a[b>>8&15]+a[b>>4&15]+a[15&b]),A},A.prototype.toString=A.prototype.hex,A.prototype.digest=function(){this.finalize();var h=this.h0h,t=this.h0l,i=this.h1h,s=this.h1l,e=this.h2h,r=this.h2l,n=this.h3h,o=this.h3l,a=this.h4h,l=this.h4l,f=this.h5h,c=this.h5l,u=this.h6h,y=this.h6l,p=this.h7h,d=this.h7l,b=this.bits,w=[h>>24&255,h>>16&255,h>>8&255,255&h,t>>24&255,t>>16&255,t>>8&255,255&t,i>>24&255,i>>16&255,i>>8&255,255&i,s>>24&255,s>>16&255,s>>8&255,255&s,e>>24&255,e>>16&255,e>>8&255,255&e,r>>24&255,r>>16&255,r>>8&255,255&r,n>>24&255,n>>16&255,n>>8&255,255&n];return b>=256&&w.push(o>>24&255,o>>16&255,o>>8&255,255&o),b>=384&&w.push(a>>24&255,a>>16&255,a>>8&255,255&a,l>>24&255,l>>16&255,l>>8&255,255&l,f>>24&255,f>>16&255,f>>8&255,255&f,c>>24&255,c>>16&255,c>>8&255,255&c),512==b&&w.push(u>>24&255,u>>16&255,u>>8&255,255&u,y>>24&255,y>>16&255,y>>8&255,255&y,p>>24&255,p>>16&255,p>>8&255,255&p,d>>24&255,d>>16&255,d>>8&255,255&d),w},A.prototype.array=A.prototype.digest,A.prototype.arrayBuffer=function(){this.finalize();var h=this.bits,t=new ArrayBuffer(h/8),i=new DataView(t);return i.setUint32(0,this.h0h),i.setUint32(4,this.h0l),i.setUint32(8,this.h1h),i.setUint32(12,this.h1l),i.setUint32(16,this.h2h),i.setUint32(20,this.h2l),i.setUint32(24,this.h3h),h>=256&&i.setUint32(28,this.h3l),h>=384&&(i.setUint32(32,this.h4h),i.setUint32(36,this.h4l),i.setUint32(40,this.h5h),i.setUint32(44,this.h5l)),512==h&&(i.setUint32(48,this.h6h),i.setUint32(52,this.h6l),i.setUint32(56,this.h7h),i.setUint32(60,this.h7l)),t},A.prototype.clone=function(){var h=new A(this.bits,!1);return this.copyTo(h),h},A.prototype.copyTo=function(h){var t=0,i=["h0h","h0l","h1h","h1l","h2h","h2l","h3h","h3l","h4h","h4l","h5h","h5l","h6h","h6l","h7h","h7l","start","bytes","hBytes","finalized","hashed","lastByteIndex"];for(t=0;t<i.length;++t)h[i[t]]=this[i[t]];for(t=0;t<this.blocks.length;++t)h.blocks[t]=this.blocks[t]},v.prototype=new A,v.prototype.finalize=function(){if(A.prototype.finalize.call(this),this.inner){this.inner=!1;var h=this.array();A.call(this,this.bits,this.sharedMemory),this.update(this.oKeyPad),this.update(h),A.prototype.finalize.call(this)}},v.prototype.clone=function(){var h=new v([],this.bits,!1);this.copyTo(h),h.inner=this.inner;for(var t=0;t<this.oKeyPad.length;++t)h.oKeyPad[t]=this.oKeyPad[t];return h};var _=d(512);_.sha512=_,_.sha384=d(384),_.sha512_256=d(256),_.sha512_224=d(224),_.sha512.hmac=w(512),_.sha384.hmac=w(384),_.sha512_256.hmac=w(256),_.sha512_224.hmac=w(224),r?t.exports=_:(s.sha512=_.sha512,s.sha384=_.sha384,s.sha512_256=_.sha512_256,s.sha512_224=_.sha512_224,n&&define((function(){return _})))}()}))())}}}));
|
package/frontend/index.html
CHANGED
|
@@ -25,6 +25,6 @@
|
|
|
25
25
|
document.getElementById('root').innerHTML = 'Loading...'
|
|
26
26
|
</script>
|
|
27
27
|
<script crossorigin id="vite-legacy-polyfill" src="/assets/polyfills-legacy-uhvhjQSD.js"></script>
|
|
28
|
-
<script crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-
|
|
28
|
+
<script crossorigin id="vite-legacy-entry" data-src="/assets/index-legacy-2akkos6t.js">System.import(document.getElementById('vite-legacy-entry').getAttribute('data-src'))</script>
|
|
29
29
|
</body>
|
|
30
30
|
</html>
|
package/npm-shrinkwrap.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "hfs",
|
|
3
|
-
"version": "3.3.0-
|
|
3
|
+
"version": "3.3.0-beta2",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "hfs",
|
|
9
|
-
"version": "3.3.0-
|
|
9
|
+
"version": "3.3.0-beta2",
|
|
10
10
|
"license": "GPL-3.0",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@gregoranders/csv": "^0.0.13",
|
|
@@ -385,13 +385,13 @@
|
|
|
385
385
|
"license": "MIT"
|
|
386
386
|
},
|
|
387
387
|
"node_modules/axios": {
|
|
388
|
-
"version": "1.
|
|
389
|
-
"resolved": "https://registry.npmjs.org/axios/-/axios-1.
|
|
390
|
-
"integrity": "sha512-
|
|
388
|
+
"version": "1.19.0",
|
|
389
|
+
"resolved": "https://registry.npmjs.org/axios/-/axios-1.19.0.tgz",
|
|
390
|
+
"integrity": "sha512-ht/iuYZXEjFxLH/Hkezgd7m6JKlHHXEUSneaDz8uZe1Gj5QZtCnpyDsckvAiEnT89OEbCLmnte4R4sn7P0EKFw==",
|
|
391
391
|
"license": "MIT",
|
|
392
392
|
"dependencies": {
|
|
393
393
|
"follow-redirects": "^1.16.0",
|
|
394
|
-
"form-data": "^4.0.
|
|
394
|
+
"form-data": "^4.0.6",
|
|
395
395
|
"https-proxy-agent": "^5.0.1",
|
|
396
396
|
"proxy-from-env": "^2.1.0"
|
|
397
397
|
}
|
package/package.json
CHANGED
package/src/api.get_file_list.js
CHANGED
|
@@ -112,14 +112,16 @@ const get_file_list = async ({ uri = '/', offset, limit, c, onlyFolders, onlyFil
|
|
|
112
112
|
const name = (0, vfs_1.getNodeName)(node);
|
|
113
113
|
const isFolder = (0, vfs_1.nodeIsFolder)(node);
|
|
114
114
|
try {
|
|
115
|
-
const [web, comment, st] =
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
115
|
+
const [web, comment, st] = node.see_without_probing
|
|
116
|
+
? [undefined, node.comment, undefined]
|
|
117
|
+
: await Promise.all([
|
|
118
|
+
(0, vfs_1.getDefaultFile)(node, ctx).then(x => x ? true : undefined),
|
|
119
|
+
node.comment ?? (0, comments_1.getCommentFor)(source),
|
|
120
|
+
(0, vfs_1.nodeStats)(node).catch(e => {
|
|
121
|
+
if (!isFolder || !node.children?.length) // folders with virtual children, keep them
|
|
122
|
+
throw e;
|
|
123
|
+
})
|
|
124
|
+
]);
|
|
123
125
|
// permissions of entries are sent as a difference with permissions of parent
|
|
124
126
|
const pl = node.can_list === misc_1.WHO_NO_ONE ? 'l'
|
|
125
127
|
: !(0, vfs_1.hasPermission)(node, 'can_list', ctx) ? 'L'
|
package/src/api.vfs.js
CHANGED
|
@@ -107,7 +107,7 @@ exports.default = {
|
|
|
107
107
|
return {};
|
|
108
108
|
},
|
|
109
109
|
// legacy – not currently used by the UI
|
|
110
|
-
async add_vfs({ parent, source, name, ...rest }) {
|
|
110
|
+
async add_vfs({ parent, source, name, skip_source_check, ...rest }) {
|
|
111
111
|
if (!source && !name)
|
|
112
112
|
return new apiMiddleware_1.ApiError(const_1.HTTP_BAD_REQUEST, 'name or source required');
|
|
113
113
|
if (name && !(0, misc_1.isValidFileName)(name))
|
|
@@ -119,16 +119,12 @@ exports.default = {
|
|
|
119
119
|
return new apiMiddleware_1.ApiError(const_1.HTTP_NOT_ACCEPTABLE, 'parent not a folder');
|
|
120
120
|
if ((0, misc_1.isWindowsDrive)(source))
|
|
121
121
|
source += '\\'; // slash must be included, otherwise it will refer to the cwd of that drive
|
|
122
|
-
const isFolder = source && await (0, misc_1.isDirectory)(source);
|
|
123
|
-
if (source && isFolder === undefined)
|
|
122
|
+
const isFolder = source && (skip_source_check ? (0, misc_1.hasFinalSlash)(source) : await (0, misc_1.isDirectory)(source));
|
|
123
|
+
if (source && !skip_source_check && isFolder === undefined)
|
|
124
124
|
return new apiMiddleware_1.ApiError(const_1.HTTP_NOT_FOUND, 'source not found');
|
|
125
125
|
const child = { source, name, ...sanitizeVfsProps(rest) };
|
|
126
126
|
name = (0, vfs_1.getNodeName)(child); // could be not given as input
|
|
127
|
-
|
|
128
|
-
const noExt = ext ? name.slice(0, -ext.length) : name;
|
|
129
|
-
let idx = 2;
|
|
130
|
-
while (parentNode.children?.find((0, vfs_1.isSameFilenameAs)(name)))
|
|
131
|
-
name = `${noExt} ${idx++}${ext}`;
|
|
127
|
+
name = (0, vfs_1.getFreeVfsName)(parentNode.children, name);
|
|
132
128
|
child.name = name;
|
|
133
129
|
simplifyName(child);
|
|
134
130
|
(parentNode.children ||= []).unshift(child);
|
package/src/basicWeb.js
CHANGED
|
@@ -41,7 +41,8 @@ function basicWeb(ctx, node) {
|
|
|
41
41
|
const stream = (0, misc_1.asyncGeneratorToReadable)((0, misc_1.filterMapGenerator)(walker, async (el) => {
|
|
42
42
|
const isFolder = (0, vfs_1.nodeIsFolder)(el);
|
|
43
43
|
const name = (0, vfs_1.getNodeName)(el) + (isFolder ? '/' : '');
|
|
44
|
-
|
|
44
|
+
const forceThis = isFolder && (el.see_without_probing || !await (0, vfs_1.getDefaultFile)(el, ctx)) ? force : '';
|
|
45
|
+
return `<li>${a((0, misc_1.pathEncode)(name) + forceThis, name)}\n`;
|
|
45
46
|
}));
|
|
46
47
|
ctx.body = stream;
|
|
47
48
|
stream.push(`<meta name="viewport" content="width=device-width" />`);
|
package/src/consoleLog.js
CHANGED
|
@@ -28,19 +28,17 @@ for (const k of ['log', 'warn', 'error', 'debug']) {
|
|
|
28
28
|
const original = console[k];
|
|
29
29
|
console[k] = (...args) => {
|
|
30
30
|
const ts = new Date();
|
|
31
|
+
const msg = safeJoin(args); // if args contains a symbol, join will throw
|
|
31
32
|
if (k === 'debug')
|
|
32
33
|
args.unshift('DBG');
|
|
33
|
-
else
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
if (k !== 'log')
|
|
42
|
-
args.unshift('!');
|
|
43
|
-
}
|
|
34
|
+
else if (k !== 'log')
|
|
35
|
+
args.unshift('!');
|
|
36
|
+
const rec = { ts, k, msg };
|
|
37
|
+
exports.consoleLog.push(rec);
|
|
38
|
+
if (exports.consoleLog.length > 100_000) // limit to avoid infinite space
|
|
39
|
+
exports.consoleLog.splice(0, 1_000);
|
|
40
|
+
events_1.default.emit('console', rec);
|
|
41
|
+
f?.write(`${(0, cross_1.formatTimestamp)(ts)} [${k}] ${msg}\n`);
|
|
44
42
|
if (!terminalOutputBroken) {
|
|
45
43
|
try {
|
|
46
44
|
return original((0, cross_1.formatTime)(ts), ...args);
|
package/src/const.js
CHANGED
|
@@ -49,7 +49,7 @@ const path_1 = require("path");
|
|
|
49
49
|
const cross_1 = require("./cross");
|
|
50
50
|
const argv_1 = require("./argv");
|
|
51
51
|
__exportStar(require("./cross-const"), exports);
|
|
52
|
-
exports.API_VERSION = 13.
|
|
52
|
+
exports.API_VERSION = 13.2;
|
|
53
53
|
exports.COMPATIBLE_API_VERSION = 1; // the day we break with the past, we'll update this
|
|
54
54
|
// you can add arguments with this file, currently used for the update process on mac/linux.
|
|
55
55
|
// we are using homedir because it's the only stable path both the old and new process can agree on (open() doesn't preserve cwd)
|
package/src/cross.js
CHANGED
|
@@ -26,6 +26,7 @@ exports.join = join;
|
|
|
26
26
|
exports.wait = wait;
|
|
27
27
|
exports.haveTimeout = haveTimeout;
|
|
28
28
|
exports.objFromKeys = objFromKeys;
|
|
29
|
+
exports.hasFinalSlash = hasFinalSlash;
|
|
29
30
|
exports.enforceFinal = enforceFinal;
|
|
30
31
|
exports.removeFinal = removeFinal;
|
|
31
32
|
exports.enforceStarting = enforceStarting;
|
|
@@ -139,7 +140,7 @@ exports.defaultPerms = {
|
|
|
139
140
|
};
|
|
140
141
|
exports.PERM_KEYS = typedKeys(exports.defaultPerms);
|
|
141
142
|
exports.VFS_STORED_KEYS = ['name', 'source', 'masks', 'default', 'accept', 'rename',
|
|
142
|
-
'mime', 'url', 'target', 'comment', 'icon', 'order', 'children', ...exports.PERM_KEYS];
|
|
143
|
+
'mime', 'url', 'target', 'comment', 'icon', 'order', 'see_without_probing', 'children', ...exports.PERM_KEYS];
|
|
143
144
|
function isWhoObject(v) {
|
|
144
145
|
return v !== null && typeof v === 'object' && !Array.isArray(v);
|
|
145
146
|
}
|
|
@@ -183,6 +184,9 @@ function haveTimeout(ms, job, error) {
|
|
|
183
184
|
function objFromKeys(src, getValue) {
|
|
184
185
|
return Object.fromEntries(src.map(k => [k, getValue(k)]));
|
|
185
186
|
}
|
|
187
|
+
function hasFinalSlash(s) {
|
|
188
|
+
return /[\\/]$/.test(s);
|
|
189
|
+
}
|
|
186
190
|
function enforceFinal(sub, s = '', evenEmpty = false) {
|
|
187
191
|
return (s ? !s.endsWith(sub) : evenEmpty) ? s + sub : s;
|
|
188
192
|
}
|
package/src/index.js
CHANGED
|
@@ -72,6 +72,7 @@ function errorHandler(err) {
|
|
|
72
72
|
|| code === 'ERR_STREAM_WRITE_AFTER_END' // happens disconnecting uploads, don't care
|
|
73
73
|
|| code === 'ERR_STREAM_PREMATURE_CLOSE' // happens when many files are sent (not locally), but I checked that the files are written completely. Introduced after node18.5.0 and is thrown by pipeline() used by PUT method handler.
|
|
74
74
|
|| code === 'ERR_SSL_SSL/TLS_ALERT_BAD_RECORD_MAC' // tls peers/proxies can abort encrypted streams after headers are already sent
|
|
75
|
+
|| code === 'ERR_SSL_DECRYPTION_FAILED_OR_BAD_RECORD_MAC' // corrupted TLS records come from the peer/network, not server logic
|
|
75
76
|
|| code?.startsWith('HPE'))
|
|
76
77
|
return; // malformed client/probe HTTP parser errors, not internal failures
|
|
77
78
|
console.error('Server error', err);
|
package/src/plugins.js
CHANGED
|
@@ -364,6 +364,7 @@ class Plugin {
|
|
|
364
364
|
get depend() { return this.data?.depend; }
|
|
365
365
|
get afterPlugin() { return this.data?.afterPlugin; }
|
|
366
366
|
get beforePlugin() { return this.data?.beforePlugin; }
|
|
367
|
+
get disableDefaultStyle() { return this.data?.disableDefaultStyle; }
|
|
367
368
|
get middleware() {
|
|
368
369
|
return this.data?.middleware;
|
|
369
370
|
}
|
|
@@ -567,7 +568,7 @@ function watchPlugin(id, path) {
|
|
|
567
568
|
throw Error(pluginData.badApi);
|
|
568
569
|
await alreadyRunning?.unload(true);
|
|
569
570
|
console.debug("Starting plugin", id);
|
|
570
|
-
const storageDir = (0, path_1.resolve)(exports.PATH, id, exports.STORAGE_FOLDER) +
|
|
571
|
+
const storageDir = (0, path_1.resolve)(exports.PATH, id, exports.STORAGE_FOLDER) + path_1.sep;
|
|
571
572
|
await (0, promises_1.mkdir)(storageDir, { recursive: true });
|
|
572
573
|
const openDbs = [];
|
|
573
574
|
const subbedConfigs = [];
|
package/src/serveGuiFiles.js
CHANGED
|
@@ -137,6 +137,7 @@ async function treatIndex(ctx, filesUri, body) {
|
|
|
137
137
|
proxyDetected: Boolean((0, middlewares_1.getProxyDetected)()),
|
|
138
138
|
dontOverwriteUploading: upload_1.dontOverwriteUploading.get(),
|
|
139
139
|
splitUploads: splitUploads.get(),
|
|
140
|
+
disableDefaultStyle: (0, plugins_1.mapPlugins)(p => p.disableDefaultStyle).some(Boolean),
|
|
140
141
|
kb: size1024.compiled(),
|
|
141
142
|
forceTheme: (0, plugins_1.mapPlugins)(p => lodash_1.default.isString(p.isTheme) ? p.isTheme : undefined).find(Boolean),
|
|
142
143
|
customHtml: lodash_1.default.omit((0, customHtml_1.getAllSections)(), ['top', 'bottom', 'htmlHead', 'style']), // exclude the sections we already apply in this phase
|
|
@@ -206,7 +207,7 @@ function serveProxied(port, uri) {
|
|
|
206
207
|
import('koa-better-http-proxy').then(lib => // dynamic import to avoid having this in final distribution
|
|
207
208
|
proxy = lib.default('127.0.0.1:' + port, {
|
|
208
209
|
parseReqBody: false, // the dev GUI proxy serves app/assets, so avoid koa-better-http-proxy trying to reread ctx.req
|
|
209
|
-
proxyReqPathResolver: (ctx) => shouldServeApp(ctx) ? '/' : ctx.
|
|
210
|
+
proxyReqPathResolver: (ctx) => shouldServeApp(ctx) ? '/' : ctx.url,
|
|
210
211
|
userResDecorator(_res, data, ctx) {
|
|
211
212
|
return shouldServeApp(ctx) ? treatIndex(ctx, uri, String(data))
|
|
212
213
|
: adjustBundlerLinks(ctx, uri, data);
|
package/src/vfs.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.saveVfs = exports.vfs = void 0;
|
|
|
8
8
|
exports.permsFromParent = permsFromParent;
|
|
9
9
|
exports.isSameFilenameAs = isSameFilenameAs;
|
|
10
10
|
exports.normalizeFilename = normalizeFilename;
|
|
11
|
+
exports.getFreeVfsName = getFreeVfsName;
|
|
11
12
|
exports.applyParentToChild = applyParentToChild;
|
|
12
13
|
exports.urlToNode = urlToNode;
|
|
13
14
|
exports.nodeStats = nodeStats;
|
|
@@ -85,6 +86,14 @@ function isSameFilenameAs(name) {
|
|
|
85
86
|
function normalizeFilename(x) {
|
|
86
87
|
return (const_1.IS_WINDOWS || const_1.IS_MAC ? x.toLocaleLowerCase() : x).normalize();
|
|
87
88
|
}
|
|
89
|
+
function getFreeVfsName(siblings, name) {
|
|
90
|
+
const ext = (0, path_1.extname)(name);
|
|
91
|
+
const noExt = ext ? name.slice(0, -ext.length) : name;
|
|
92
|
+
let idx = 2;
|
|
93
|
+
while (siblings?.find(isSameFilenameAs(name)))
|
|
94
|
+
name = `${noExt} ${idx++}${ext}`;
|
|
95
|
+
return name;
|
|
96
|
+
}
|
|
88
97
|
async function applyParentToChild(child, parent, name) {
|
|
89
98
|
name ||= child ? getNodeName(child) : '';
|
|
90
99
|
const ret = setVfsPath({
|
|
@@ -174,10 +183,12 @@ const smartUncFolderDetection = (0, config_1.defineConfig)(misc_1.CFG.smart_unc_
|
|
|
174
183
|
async function setIsFolder(node) {
|
|
175
184
|
if (!node.source)
|
|
176
185
|
return;
|
|
177
|
-
const isFolder =
|
|
186
|
+
const isFolder = (0, misc_1.hasFinalSlash)(node.source)
|
|
178
187
|
|| smartUncFolderDetection.get() && (0, misc_1.getUncHost)(node.source) && !(0, path_1.basename)(node.source).includes('.') // no dot = folder; not very reliable but fast for unreachable unc hosts, and it's an opt-in
|
|
179
188
|
|| await nodeStats(node).then(x => x?.isDirectory(), () => undefined);
|
|
180
189
|
(0, misc_1.setHidden)(node, { isFolder });
|
|
190
|
+
if (isFolder)
|
|
191
|
+
persistFolderMarker(node);
|
|
181
192
|
return isFolder;
|
|
182
193
|
}
|
|
183
194
|
// compiled is the stable mutable tree, while get() may return a fresh clone of the default
|
|
@@ -190,8 +201,18 @@ async function reviewVfs() {
|
|
|
190
201
|
await (async function recur(node) {
|
|
191
202
|
if (node.source && !node.children?.length && node.isFolder === undefined)
|
|
192
203
|
await setIsFolder(node);
|
|
193
|
-
if (node.children)
|
|
194
|
-
|
|
204
|
+
if (!node.children)
|
|
205
|
+
return;
|
|
206
|
+
// we rename your node in case you got 2 nodes with the same name
|
|
207
|
+
const usedNames = new Set();
|
|
208
|
+
for (const child of node.children) {
|
|
209
|
+
const name = getNodeName(child);
|
|
210
|
+
const normalized = normalizeFilename(name);
|
|
211
|
+
if (usedNames.has(normalized))
|
|
212
|
+
child.name = getFreeVfsName(node.children, name);
|
|
213
|
+
usedNames.add(normalizeFilename(getNodeName(child)));
|
|
214
|
+
}
|
|
215
|
+
await Promise.allSettled(node.children.map(recur));
|
|
195
216
|
})(exports.vfs.compiled());
|
|
196
217
|
}
|
|
197
218
|
exports.saveVfs = (0, misc_1.debounceAsync)(async () => {
|
|
@@ -228,12 +249,24 @@ function nodeIsFolder(node) {
|
|
|
228
249
|
function reconsider() {
|
|
229
250
|
// a networked source may be offline at startup, and become online later: recalculate in the background
|
|
230
251
|
nodeStats(node).then(s => {
|
|
231
|
-
if (s)
|
|
232
|
-
|
|
252
|
+
if (s) {
|
|
253
|
+
const isFolder = s.isDirectory();
|
|
254
|
+
(0, misc_1.setHidden)(node.original || node, { isFolder });
|
|
255
|
+
if (isFolder)
|
|
256
|
+
persistFolderMarker(node);
|
|
257
|
+
}
|
|
233
258
|
}, () => { });
|
|
234
259
|
return undefined;
|
|
235
260
|
}
|
|
236
261
|
}
|
|
262
|
+
// we mark folder paths with a final slash – the UI already does so, but the config may be modified
|
|
263
|
+
function persistFolderMarker(node) {
|
|
264
|
+
const stored = node.original || node; // temporary VFS nodes must update their stored original for saveVfs to persist the marker
|
|
265
|
+
if (!stored.source || (0, misc_1.hasFinalSlash)(stored.source))
|
|
266
|
+
return;
|
|
267
|
+
stored.source += path_1.sep;
|
|
268
|
+
void (0, exports.saveVfs)();
|
|
269
|
+
}
|
|
237
270
|
async function getDefaultFile(node, ctx) {
|
|
238
271
|
return node.default && nodeIsFolder(node) && await urlToNode(node.default, ctx, node) || undefined;
|
|
239
272
|
}
|
|
@@ -313,7 +346,7 @@ async function* walkNode(parent, { ctx, depth = Infinity, prefixPath = '', requi
|
|
|
313
346
|
const item = setVfsPath({ ...child, original: child, name, parent }, name, parent);
|
|
314
347
|
if (await cantSee(item))
|
|
315
348
|
return;
|
|
316
|
-
if (item.source && !item.children?.length) // real items must be accessible, unless
|
|
349
|
+
if (item.source && !item.children?.length && !item.see_without_probing) // real items must be accessible, unless probing was explicitly disabled
|
|
317
350
|
try {
|
|
318
351
|
await promises_1.default.access(item.source);
|
|
319
352
|
}
|