nc-lib-gui-daily 0.251.3-pr-9140-20240807-1322 → 0.251.3-pr-9140-20240807-1349
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/lib/dist/200.html +78 -78
- package/lib/dist/404.html +78 -78
- package/lib/dist/_nuxt/{BECNAICj.js → -4t4xnv8.js} +1 -1
- package/lib/dist/_nuxt/{B9wWUMeH.js → 0i0s40zL.js} +1 -1
- package/lib/dist/_nuxt/{ClrSNVKi.js → 2DrjKvbb.js} +1 -1
- package/lib/dist/_nuxt/{BWYKlc03.js → 3joeZ-MH.js} +1 -1
- package/lib/dist/_nuxt/{BjOAkC1I.js → 3v3fVjjF.js} +2 -2
- package/lib/dist/_nuxt/{C0Gqhynn.js → 4TzZ_5zC.js} +1 -1
- package/lib/dist/_nuxt/{CQPSFno8.js → 4XAL69Ip.js} +1 -1
- package/lib/dist/_nuxt/{Bu5HFIT4.js → 5d2JKIpI.js} +2 -2
- package/lib/dist/_nuxt/{CaoTQXu2.js → 5nCkSrke.js} +1 -1
- package/lib/dist/_nuxt/{Ek7a6tav.js → 5wn80Wdx.js} +1 -1
- package/lib/dist/_nuxt/6U1p19-U.js +1 -0
- package/lib/dist/_nuxt/{Bu9W_1Kn.js → 75R1pBVU.js} +2 -2
- package/lib/dist/_nuxt/{WDDKUx4k.js → 7_p21RjN.js} +1 -1
- package/lib/dist/_nuxt/{CZztu25l.js → 8K2eSNBm.js} +3 -3
- package/lib/dist/_nuxt/8YSh_QYU.js +1 -0
- package/lib/dist/_nuxt/{CLa-GND5.js → 9ZzieOOa.js} +1 -1
- package/lib/dist/_nuxt/{DGmT4XJW.js → 9j5A48K7.js} +1 -1
- package/lib/dist/_nuxt/{Cf37dmb0.js → A1VS529Y.js} +2 -2
- package/lib/dist/_nuxt/{CnUzkPPI.js → AoMdM-MP.js} +1 -1
- package/lib/dist/_nuxt/{5dTVPtqf.js → B-MIOvj6.js} +1 -1
- package/lib/dist/_nuxt/{Xvj7w1oq.js → B0gfXKmM.js} +1 -1
- package/lib/dist/_nuxt/{DBfDNbQe.js → B0y7Q991.js} +2 -2
- package/lib/dist/_nuxt/{COSuR5gX.js → B12ilfKh.js} +1 -1
- package/lib/dist/_nuxt/{DLcCozgP.js → B1R2-rCU.js} +2 -2
- package/lib/dist/_nuxt/{CMITlXbV.js → B1h49W-1.js} +2 -2
- package/lib/dist/_nuxt/{CkCKzP-b.js → B2NO182c.js} +1 -1
- package/lib/dist/_nuxt/{DKgzeeDD.js → B33qDdnq.js} +1 -1
- package/lib/dist/_nuxt/{Dr_t1CQX.js → B3AUipTz.js} +1 -1
- package/lib/dist/_nuxt/{CVmH__0I.js → B3JDEiCa.js} +2 -2
- package/lib/dist/_nuxt/{BUd0o8q2.js → B3TBCQg9.js} +1 -1
- package/lib/dist/_nuxt/{CHRxsLpF.js → B4rH_4ZN.js} +1 -1
- package/lib/dist/_nuxt/{M4L2Leg7.js → B4rimoYw.js} +1 -1
- package/lib/dist/_nuxt/{BnbA25UM.js → B5FLXBR1.js} +1 -1
- package/lib/dist/_nuxt/{CqcwF_4v.js → B5NtOENv.js} +1 -1
- package/lib/dist/_nuxt/{BaaPy9e4.js → B74kAxrX.js} +2 -2
- package/lib/dist/_nuxt/{Cf4R9mtz.js → B78zylNk.js} +1 -1
- package/lib/dist/_nuxt/{CqFm4PeH.js → B8Ch0bfd.js} +2 -2
- package/lib/dist/_nuxt/{BbFx5cgg.js → B9aNdXy_.js} +2 -2
- package/lib/dist/_nuxt/{DEWywo6s.js → B9dOhF-2.js} +1 -1
- package/lib/dist/_nuxt/{BOYXVEfo.js → BBA0nfaW.js} +1 -1
- package/lib/dist/_nuxt/{C9TR8pMm.js → BBW1h0ks.js} +1 -1
- package/lib/dist/_nuxt/{EohHWhQi.js → BC6xG-3q.js} +1 -1
- package/lib/dist/_nuxt/{D-3pY83G.js → BDlHzTvk.js} +1 -1
- package/lib/dist/_nuxt/{DglPsyiE.js → BE4MlnZf.js} +1 -1
- package/lib/dist/_nuxt/{DQRX9Xt5.js → BEZkcRcL.js} +1 -1
- package/lib/dist/_nuxt/{CDbcx2MC.js → BGugcrMS.js} +1 -1
- package/lib/dist/_nuxt/{DkSSi9ve.js → BHNEB9HJ.js} +1 -1
- package/lib/dist/_nuxt/{_fB9sOmQ.js → BHXU4B_2.js} +2 -2
- package/lib/dist/_nuxt/{BaXP97h1.js → BIHLSlqp.js} +1 -1
- package/lib/dist/_nuxt/BIo3okPc.js +1 -0
- package/lib/dist/_nuxt/{CokApUov.js → BLBtvxjT.js} +1 -1
- package/lib/dist/_nuxt/{CaoUireh.js → BLJJDzIX.js} +3 -3
- package/lib/dist/_nuxt/{wogaDWws.js → BLNSv8WU.js} +1 -1
- package/lib/dist/_nuxt/{BSnfz81Y.js → BMpULef7.js} +2 -2
- package/lib/dist/_nuxt/{CYG3uB4k.js → BNhTB5D3.js} +1 -1
- package/lib/dist/_nuxt/{D5LCiDa8.js → BNv598XD.js} +1 -1
- package/lib/dist/_nuxt/{CaKL5hX5.js → BPBo3uNz.js} +1 -1
- package/lib/dist/_nuxt/{tuC3W76x.js → BPS1H-Sz.js} +1 -1
- package/lib/dist/_nuxt/{DRPzkOuH.js → BPXkp7pR.js} +1 -1
- package/lib/dist/_nuxt/{CEaqjIiA.js → BPaH70bH.js} +1 -1
- package/lib/dist/_nuxt/{DQvo0yED.js → BPfa9v3p.js} +1 -1
- package/lib/dist/_nuxt/{DpJilvje.js → BPxXddiW.js} +1 -1
- package/lib/dist/_nuxt/{K69OaLqe.js → BQTbXctc.js} +1 -1
- package/lib/dist/_nuxt/{DQrwfJfV.js → BT6OdjOC.js} +1 -1
- package/lib/dist/_nuxt/{BtbkYOXM.js → BTPzUNVG.js} +1 -1
- package/lib/dist/_nuxt/{CZqfRZSO.js → BTX_9KaN.js} +2 -2
- package/lib/dist/_nuxt/{BF-z5sdC.js → BUWWmS1v.js} +1 -1
- package/lib/dist/_nuxt/{DSt1bB14.js → BUa3Jukl.js} +1 -1
- package/lib/dist/_nuxt/{Dpt9sRgQ.js → BUjHox0o.js} +2 -2
- package/lib/dist/_nuxt/{DEqhUnZ-.js → BV-KNIgj.js} +1 -1
- package/lib/dist/_nuxt/BV0H6cZy.js +2 -0
- package/lib/dist/_nuxt/{DFA4S6bS.js → BV5fkeNl.js} +1 -1
- package/lib/dist/_nuxt/{CgIyTi2b.js → BW3iYn6v.js} +1 -1
- package/lib/dist/_nuxt/{DvN7jpPi.js → BWALYZJv.js} +1 -1
- package/lib/dist/_nuxt/{D3V1uXBy.js → BWgRi_b3.js} +1 -1
- package/lib/dist/_nuxt/{D5LgkGGj.js → BWn3cSKa.js} +1 -1
- package/lib/dist/_nuxt/{Csj74Kwp.js → BWsrBkPc.js} +2 -2
- package/lib/dist/_nuxt/{CHMw6lkg.js → BXoKLvWd.js} +2 -2
- package/lib/dist/_nuxt/{CDnEKjsz.js → BXzZkUYy.js} +1 -1
- package/lib/dist/_nuxt/{DmDx5TyZ.js → BZdJF2g5.js} +1 -1
- package/lib/dist/_nuxt/{BipOdpcd.js → BZfcRRAG.js} +1 -1
- package/lib/dist/_nuxt/{D3pPrsLQ.js → B_FyKctL.js} +1 -1
- package/lib/dist/_nuxt/B_LFFdI9.js +1 -0
- package/lib/dist/_nuxt/{DPUW3H0R.js → BadBS-yn.js} +2 -2
- package/lib/dist/_nuxt/{BmApFhTv.js → BbCrTQHD.js} +1 -1
- package/lib/dist/_nuxt/{DCn9KvFr.js → BcquqdOq.js} +1 -1
- package/lib/dist/_nuxt/{Cadw426x.js → Bdxi8XdN.js} +2 -2
- package/lib/dist/_nuxt/{BTEJrFxq.js → Be6wJwW7.js} +1 -1
- package/lib/dist/_nuxt/{Dgf6zkFW.js → Bey_B0Pg.js} +1 -1
- package/lib/dist/_nuxt/{ov8xLaHe.js → Bf-Jn9fN.js} +1 -1
- package/lib/dist/_nuxt/{DPPtI03V.js → Bf_oJAxP.js} +1 -1
- package/lib/dist/_nuxt/{uUj38y4-.js → BgtuIwr8.js} +1 -1
- package/lib/dist/_nuxt/{CiBbHMre.js → Bh7NKnnJ.js} +1 -1
- package/lib/dist/_nuxt/{D1_wgH1i.js → Bh8L_8vr.js} +1 -1
- package/lib/dist/_nuxt/{CGTkNfNg.js → BhE3_y96.js} +1 -1
- package/lib/dist/_nuxt/{DMRRjwxM.js → BhLSFmBI.js} +2 -2
- package/lib/dist/_nuxt/BhZrVUuE.js +1 -0
- package/lib/dist/_nuxt/{3jIF1AyF.js → Bi74c53l.js} +2 -2
- package/lib/dist/_nuxt/{Wfb3YMK3.js → BjIWxehG.js} +1 -1
- package/lib/dist/_nuxt/{BKIlBt-6.js → Bjh8Jc00.js} +2 -2
- package/lib/dist/_nuxt/{CYDrr8e0.js → BkA6Hv4O.js} +1 -1
- package/lib/dist/_nuxt/{tEU5SOvF.js → Bn3JgSEE.js} +1 -1
- package/lib/dist/_nuxt/{BhRzGy_7.js → BnhkHttA.js} +1 -1
- package/lib/dist/_nuxt/{yUmIs97a.js → BnjAp9hj.js} +1 -1
- package/lib/dist/_nuxt/{DdiY6i5M.js → Bp5oHXSc.js} +1 -1
- package/lib/dist/_nuxt/{CZPLvSl2.js → BpLvq4Ij.js} +2 -2
- package/lib/dist/_nuxt/{B0oPZzHj.js → Bpjzp6Vo.js} +1 -1
- package/lib/dist/_nuxt/{Bj3GBQrH.js → BqKbedJW.js} +1 -1
- package/lib/dist/_nuxt/{CP29yz9Z.js → BqjTSgjN.js} +1 -1
- package/lib/dist/_nuxt/{CXqu_veX.js → Bqoh1mnx.js} +1 -1
- package/lib/dist/_nuxt/{Ccy4fxMp.js → Br4sW-aN.js} +2 -2
- package/lib/dist/_nuxt/{DsK9Oi2B.js → BsNs6tYV.js} +1 -1
- package/lib/dist/_nuxt/{CjnsQ0f3.js → BsdyC_c2.js} +1 -1
- package/lib/dist/_nuxt/{izr94Pxw.js → BsepGfVv.js} +2 -2
- package/lib/dist/_nuxt/{BSOsTxoF.js → BtRkeQ7z.js} +1 -1
- package/lib/dist/_nuxt/{45BtyJEq.js → BtYrspp1.js} +1 -1
- package/lib/dist/_nuxt/{DqQodY25.js → BtzsCl9b.js} +1 -1
- package/lib/dist/_nuxt/{BLd8XNte.js → BuNVIA4o.js} +1 -1
- package/lib/dist/_nuxt/{BIs2Ub4q.js → BuvUqaUR.js} +1 -1
- package/lib/dist/_nuxt/{BmZeKA3g.js → BvJHFs9-.js} +1 -1
- package/lib/dist/_nuxt/{SUjsexOK.js → BvdnmSRl.js} +1 -1
- package/lib/dist/_nuxt/{DU4YOMw-.js → BxlEsFh4.js} +2 -2
- package/lib/dist/_nuxt/{C10-KGd5.js → ByJ4I0p_.js} +1 -1
- package/lib/dist/_nuxt/{CxCKV_Px.js → BycyOgkZ.js} +1 -1
- package/lib/dist/_nuxt/{BVTg5uiQ.js → C-_nHsP3.js} +2 -2
- package/lib/dist/_nuxt/{DoClxtqO.js → C0Cjsdmx.js} +1 -1
- package/lib/dist/_nuxt/{BFdtwV5O.js → C0aGyUZt.js} +1 -1
- package/lib/dist/_nuxt/{BTBhJ3yz.js → C0cVOb1Y.js} +1 -1
- package/lib/dist/_nuxt/{DzBWyRMo.js → C0mEOfI4.js} +1 -1
- package/lib/dist/_nuxt/{BwxlFrx3.js → C0o-ksvC.js} +1 -1
- package/lib/dist/_nuxt/{CXPckVUD.js → C0vKFrOr.js} +1 -1
- package/lib/dist/_nuxt/{CQ3cJtsQ.js → C0x2Mtrn.js} +2 -2
- package/lib/dist/_nuxt/{DSo-2nFJ.js → C17-0Owd.js} +1 -1
- package/lib/dist/_nuxt/{C77-d5Nm.js → C24V68J3.js} +1 -1
- package/lib/dist/_nuxt/{UJDZNh8e.js → C2y2A27G.js} +1 -1
- package/lib/dist/_nuxt/{BPWyQanZ.js → C4FX_vFj.js} +1 -1
- package/lib/dist/_nuxt/{DVJ1H8-2.js → C4NvFsmx.js} +1 -1
- package/lib/dist/_nuxt/{Dj7AODgl.js → C5Fh5dLw.js} +1 -1
- package/lib/dist/_nuxt/{DGN1FUOe.js → C5LZc7bi.js} +1 -1
- package/lib/dist/_nuxt/{TGNXCWG6.js → C5YDuKgZ.js} +1 -1
- package/lib/dist/_nuxt/{DHL8lIZa.js → C6c9Dspn.js} +1 -1
- package/lib/dist/_nuxt/{Bj1Tr8na.js → C8Qc_SsI.js} +1 -1
- package/lib/dist/_nuxt/{C5QeThbn.js → C8UZPp3_.js} +1 -1
- package/lib/dist/_nuxt/{DcjeHTDt.js → C8_ndKXt.js} +2 -2
- package/lib/dist/_nuxt/{D31WRIha.js → C9Uj1v8v.js} +1 -1
- package/lib/dist/_nuxt/{BUCNUONm.js → CB02C89T.js} +1 -1
- package/lib/dist/_nuxt/{C7hcWPKb.js → CB3a7P0t.js} +2 -2
- package/lib/dist/_nuxt/{Dy33QHkd.js → CCIDjjGj.js} +3 -3
- package/lib/dist/_nuxt/CCSHPfQT.js +1 -0
- package/lib/dist/_nuxt/{DXGgVe0f.js → CDptPd_U.js} +3 -3
- package/lib/dist/_nuxt/{B82t3bcZ.js → CEZpXdoB.js} +1 -1
- package/lib/dist/_nuxt/{Cv1taij4.js → CFW-eKdT.js} +2 -2
- package/lib/dist/_nuxt/{DHbZD8lm.js → CGJkgYAS.js} +1 -1
- package/lib/dist/_nuxt/{C1P8Zhm3.js → CHf2540r.js} +1 -1
- package/lib/dist/_nuxt/{BJTGqbe7.js → CI_vGZBR.js} +1 -1
- package/lib/dist/_nuxt/{bCkRhWD-.js → CJFAfeQm.js} +1 -1
- package/lib/dist/_nuxt/{DourgGBB.js → CJnTHSo6.js} +1 -1
- package/lib/dist/_nuxt/{eM235LmA.js → CKjn3He-.js} +1 -1
- package/lib/dist/_nuxt/{BswdcBt-.js → CM94AsjQ.js} +1 -1
- package/lib/dist/_nuxt/{CrYOZ6xG.js → CMLvVVCa.js} +2 -2
- package/lib/dist/_nuxt/{scxxAgRq.js → CNurVxTA.js} +1 -1
- package/lib/dist/_nuxt/{BeT-kB3R.js → COR1mRIv.js} +1 -1
- package/lib/dist/_nuxt/{B0Sm2Utn.js → CPghe2bF.js} +2 -2
- package/lib/dist/_nuxt/{_dwjyJHh.js → CPmrHRfD.js} +1 -1
- package/lib/dist/_nuxt/{Cwun9h-Y.js → CPq1MIkE.js} +2 -2
- package/lib/dist/_nuxt/{DjcxKpIM.js → CQaV3CAE.js} +1 -1
- package/lib/dist/_nuxt/{CD37t5Sv.js → CS3cYx35.js} +2 -2
- package/lib/dist/_nuxt/{BbQblmCC.js → CTrYGv0V.js} +1 -1
- package/lib/dist/_nuxt/{CAp-kO3G.js → CU2qgEB0.js} +2 -2
- package/lib/dist/_nuxt/{Cnd_RIW1.js → CVNIqWCz.js} +2 -2
- package/lib/dist/_nuxt/{BwNtMX7v.js → CVziAYYM.js} +1 -1
- package/lib/dist/_nuxt/{xVsvxyFN.js → CXV9y0ij.js} +1 -1
- package/lib/dist/_nuxt/{Bmo45vb1.js → CXjFiOva.js} +1 -1
- package/lib/dist/_nuxt/{COzZ75BE.js → CYRe9VEh.js} +1 -1
- package/lib/dist/_nuxt/{Dy7Fxfea.js → CZfW7u7e.js} +1 -1
- package/lib/dist/_nuxt/C_0MCAHg.js +2 -0
- package/lib/dist/_nuxt/{DHhzMvUY.js → C_KncATK.js} +1 -1
- package/lib/dist/_nuxt/{BHvFET_1.js → C_r_z2w4.js} +1 -1
- package/lib/dist/_nuxt/{DuTGHMTZ.js → Ca68hr9N.js} +1 -1
- package/lib/dist/_nuxt/{B5XOKBjI.js → CaQmYARh.js} +1 -1
- package/lib/dist/_nuxt/{B4w8tHEf.js → Caap6ad5.js} +1 -1
- package/lib/dist/_nuxt/Can5iqu7.js +1 -0
- package/lib/dist/_nuxt/{CumiqXf7.js → CbXnLsg7.js} +1 -1
- package/lib/dist/_nuxt/{BkVBsUs7.js → Cc8KviHt.js} +2 -2
- package/lib/dist/_nuxt/{C2LFvZUN.js → CcKY7-rX.js} +2 -2
- package/lib/dist/_nuxt/{BqrLXvNe.js → Ccf8GJao.js} +1 -1
- package/lib/dist/_nuxt/{CLuKe_fT.js → Cd87RhmG.js} +1 -1
- package/lib/dist/_nuxt/{CGoFBv-S.js → CdAW-Pmn.js} +1 -1
- package/lib/dist/_nuxt/{CoJTDitE.js → CeOTGq8S.js} +2 -2
- package/lib/dist/_nuxt/{CpYnnah9.js → CeUvd5CG.js} +1 -1
- package/lib/dist/_nuxt/{CYpSrlPh.js → Ch8L35kx.js} +1 -1
- package/lib/dist/_nuxt/{DeiJLuN8.js → ChOVvzZi.js} +1 -1
- package/lib/dist/_nuxt/{DS9TSCsw.js → ChvF81cy.js} +1 -1
- package/lib/dist/_nuxt/{Bnayetoi.js → CjJR9ku8.js} +1 -1
- package/lib/dist/_nuxt/{qcgVJISv.js → CjLxSPxU.js} +1 -1
- package/lib/dist/_nuxt/{CUiPrnOA.js → CjiyXwOk.js} +1 -1
- package/lib/dist/_nuxt/{4p5F9hBn.js → Ck8SavWn.js} +1 -1
- package/lib/dist/_nuxt/{CY-umpv2.js → Ckrtr2Si.js} +1 -1
- package/lib/dist/_nuxt/{BvZfIYOw.js → ClgX2jSX.js} +1 -1
- package/lib/dist/_nuxt/{DxP-nfEC.js → CmHIFce4.js} +1 -1
- package/lib/dist/_nuxt/{BiyCj6F9.js → Cmi92uvW.js} +4 -4
- package/lib/dist/_nuxt/{Tog_yjwe.js → Cno1xGGH.js} +1 -1
- package/lib/dist/_nuxt/{DTIgeuov.js → CoIVRkRs.js} +2 -2
- package/lib/dist/_nuxt/{Dp03Bz--.js → CpVxdhe3.js} +1 -1
- package/lib/dist/_nuxt/{3fdRvCCy.js → CpWeSecD.js} +1 -1
- package/lib/dist/_nuxt/CpydMTRh.js +2 -0
- package/lib/dist/_nuxt/{BDWmjfg6.js → CqocAHnv.js} +1 -1
- package/lib/dist/_nuxt/CrsolQNu.js +2 -0
- package/lib/dist/_nuxt/{DID7jAGh.js → CsMB6UJB.js} +1 -1
- package/lib/dist/_nuxt/{CjWKi8WI.js → CtiXmthf.js} +1 -1
- package/lib/dist/_nuxt/{BiKFdSE2.js → CtrRzeqn.js} +2 -2
- package/lib/dist/_nuxt/{DYOpadwh.js → CvJ6cBZg.js} +1 -1
- package/lib/dist/_nuxt/{BLZezBti.js → CvJQycOH.js} +1 -1
- package/lib/dist/_nuxt/{RgrGrVar.js → CveN6MY0.js} +1 -1
- package/lib/dist/_nuxt/{BdAcoDOD.js → Cvf4IlAF.js} +1 -1
- package/lib/dist/_nuxt/{COkSW75E.js → CwXGZkgw.js} +1 -1
- package/lib/dist/_nuxt/{BfcNiwJm.js → Cwg1qVG3.js} +2 -2
- package/lib/dist/_nuxt/{lA0REAhs.js → CwglIeux.js} +1 -1
- package/lib/dist/_nuxt/{CnxZEFWN.js → CwzcEVHI.js} +1 -1
- package/lib/dist/_nuxt/{cjY5Hf50.js → Cx74SJIJ.js} +2 -2
- package/lib/dist/_nuxt/{DxIWAeh5.js → CyEUDpIZ.js} +1 -1
- package/lib/dist/_nuxt/{yluqkvFW.js → CzuZWkKi.js} +2 -2
- package/lib/dist/_nuxt/{BsCG6_t5.js → D-ULZAvr.js} +1 -1
- package/lib/dist/_nuxt/{Bg5wwbYB.js → D0MWYD9u.js} +2 -2
- package/lib/dist/_nuxt/{B_u_YqcL.js → D0MdXf-I.js} +1 -1
- package/lib/dist/_nuxt/{Vezsq5pc.js → D0lTgCiL.js} +1 -1
- package/lib/dist/_nuxt/D13Jpe71.js +1 -0
- package/lib/dist/_nuxt/{DAjBmuY8.js → D1WSfdBz.js} +2 -2
- package/lib/dist/_nuxt/{BzA-S3rc.js → D2hUzAIJ.js} +1 -1
- package/lib/dist/_nuxt/{DfZdmYLx.js → D2v4gSXy.js} +3 -3
- package/lib/dist/_nuxt/{C9siHYBR.js → D3yE50jn.js} +2 -2
- package/lib/dist/_nuxt/{BMcEsnd8.js → D4XRaUrE.js} +1 -1
- package/lib/dist/_nuxt/{BLXy3y_A.js → D58OV0x2.js} +1 -1
- package/lib/dist/_nuxt/{BuhJ4rY4.js → D7raIqCw.js} +1 -1
- package/lib/dist/_nuxt/{CRMJPIbJ.js → D86M42wR.js} +2 -2
- package/lib/dist/_nuxt/{B8QKymay.js → D87Esdzw.js} +1 -1
- package/lib/dist/_nuxt/{OslaI-1o.js → D8KkEwuG.js} +2 -2
- package/lib/dist/_nuxt/{BDxJYdK6.js → D8mGg8p3.js} +2 -2
- package/lib/dist/_nuxt/D8y_QymV.js +1 -0
- package/lib/dist/_nuxt/{D9eajlYc.js → DAE0H6cn.js} +2 -2
- package/lib/dist/_nuxt/DANQtblt.js +2 -0
- package/lib/dist/_nuxt/{BP0PseId.js → DAYX7_s6.js} +1 -1
- package/lib/dist/_nuxt/{DJ1Y7z-I.js → DBEHU1i8.js} +1 -1
- package/lib/dist/_nuxt/{BcwBv9GB.js → DDUq96bI.js} +1 -1
- package/lib/dist/_nuxt/{o2Vywl-H.js → DDncg9QB.js} +1 -1
- package/lib/dist/_nuxt/{DsJrb1nI.js → DEDBCwhz.js} +1 -1
- package/lib/dist/_nuxt/{CjEhR2ws.js → DEpLw3WP.js} +2 -2
- package/lib/dist/_nuxt/DEwjid9p.js +1 -0
- package/lib/dist/_nuxt/{Cr8Q8tPu.js → DFLo1Tyf.js} +1 -1
- package/lib/dist/_nuxt/{Dt1XZ-dT.js → DHne9z0s.js} +1 -1
- package/lib/dist/_nuxt/{B-IoKwno.js → DHwwmVq4.js} +1 -1
- package/lib/dist/_nuxt/{DeLYsJ35.js → DIwUs3Ba.js} +1 -1
- package/lib/dist/_nuxt/{D9V7WJRV.js → DIxWEKmp.js} +2 -2
- package/lib/dist/_nuxt/{BOjB8Iur.js → DKZtAEbi.js} +1 -1
- package/lib/dist/_nuxt/{N5zD6OYu.js → DK_LjI_d.js} +2 -2
- package/lib/dist/_nuxt/{DCyCGspM.js → DLgZMh7k.js} +2 -2
- package/lib/dist/_nuxt/{DNyOCYge.js → DNVg-DAK.js} +2 -2
- package/lib/dist/_nuxt/DOhAGoXx.js +1 -0
- package/lib/dist/_nuxt/{wE2b238O.js → DOhTCpLP.js} +1 -1
- package/lib/dist/_nuxt/DPIrVNpu.js +2 -0
- package/lib/dist/_nuxt/{BFGeur5y.js → DPiZHWmv.js} +1 -1
- package/lib/dist/_nuxt/{DhCfdE-S.js → DPvwYIe4.js} +2 -2
- package/lib/dist/_nuxt/{DQYlfQhI.js → DR3-ZZ6f.js} +2 -2
- package/lib/dist/_nuxt/DRw_Dh4U.js +1 -0
- package/lib/dist/_nuxt/{yd4iXUAH.js → DShHkyiK.js} +1 -1
- package/lib/dist/_nuxt/{CgemNdgi.js → DTBGgeX5.js} +1 -1
- package/lib/dist/_nuxt/{DgWM9QND.js → DTWPCMsX.js} +1 -1
- package/lib/dist/_nuxt/{BYeAlzmH.js → DThQY4jW.js} +2 -2
- package/lib/dist/_nuxt/{kHdMm7Ia.js → DV4c1hol.js} +1 -1
- package/lib/dist/_nuxt/{DhjCIkTM.js → DVo2fInm.js} +1 -1
- package/lib/dist/_nuxt/{Cf9rATwN.js → DW2SxN4U.js} +1 -1
- package/lib/dist/_nuxt/{Cyv2J_Eh.js → DW4mS2-E.js} +1 -1
- package/lib/dist/_nuxt/{Dm22wCnj.js → DWgfP12k.js} +2 -2
- package/lib/dist/_nuxt/{BWiEf5Q8.js → DWhMxXig.js} +1 -1
- package/lib/dist/_nuxt/{BcAgrix2.js → DYHT9W45.js} +2 -2
- package/lib/dist/_nuxt/{8nelJp1H.js → DYk50ONW.js} +1 -1
- package/lib/dist/_nuxt/{CW0qxcUd.js → DZ3fQXBC.js} +2 -2
- package/lib/dist/_nuxt/{DK5KFoxg.js → DZg_OLF6.js} +1 -1
- package/lib/dist/_nuxt/{ClM36jHa.js → D_bFc41P.js} +2 -2
- package/lib/dist/_nuxt/{D_qsPe1a.js → DaSR3TNr.js} +2 -2
- package/lib/dist/_nuxt/{DEtZQrqc.js → DaZBDg2f.js} +1 -1
- package/lib/dist/_nuxt/{B5Tmc1nh.js → DauyJKz3.js} +1 -1
- package/lib/dist/_nuxt/{DrHVm0_b.js → DbCVM54P.js} +3 -3
- package/lib/dist/_nuxt/{DLdhkiR1.js → DbGbCtZA.js} +1 -1
- package/lib/dist/_nuxt/{CjhAMb0e.js → DbQ8PEQZ.js} +1 -1
- package/lib/dist/_nuxt/{Doul1WC1.js → DePuxtA_.js} +1 -1
- package/lib/dist/_nuxt/{D0Ixu-2d.js → De_R8rrE.js} +1 -1
- package/lib/dist/_nuxt/{CdEISqkr.js → De_RKAA3.js} +2 -2
- package/lib/dist/_nuxt/{Du4GQqsD.js → DgD9_KW9.js} +2 -2
- package/lib/dist/_nuxt/{DmMnX8Ap.js → DgkuvGlL.js} +2 -2
- package/lib/dist/_nuxt/{Dl7beGcU.js → Diky6b8B.js} +1 -1
- package/lib/dist/_nuxt/{CR_iTixR.js → DjFxLMdW.js} +1 -1
- package/lib/dist/_nuxt/{C8D7ZQoo.js → DkhnRb2B.js} +1 -1
- package/lib/dist/_nuxt/{BzcRdSjL.js → Dl_k7PcY.js} +1 -1
- package/lib/dist/_nuxt/{Cyvv3q_1.js → Dl_zFQLa.js} +1 -1
- package/lib/dist/_nuxt/{CmrZvHjC.js → Dm1YWlhs.js} +1 -1
- package/lib/dist/_nuxt/{BEWPFIwa.js → Dm6wi6No.js} +1 -1
- package/lib/dist/_nuxt/{BE7ip4Qt.js → Dme6Ir5a.js} +2 -2
- package/lib/dist/_nuxt/{BmoKdN2h.js → DnFxlRi4.js} +1 -1
- package/lib/dist/_nuxt/{MmcLEC5o.js → DqHVb7w6.js} +1 -1
- package/lib/dist/_nuxt/{BLJLyCJW.js → Dqd3UFGy.js} +1 -1
- package/lib/dist/_nuxt/{D7y3R7Ve.js → DqyL5Uhs.js} +1 -1
- package/lib/dist/_nuxt/{DrKBqNbB.js → DsHvRxpH.js} +1 -1
- package/lib/dist/_nuxt/{BBl0m-42.js → DsURLYvZ.js} +2 -2
- package/lib/dist/_nuxt/{C4JQ9OHi.js → DtawBFI-.js} +2 -2
- package/lib/dist/_nuxt/{CxsGCxm3.js → DvgZT7js.js} +1 -1
- package/lib/dist/_nuxt/{nK1_ybEV.js → DvnUxboW.js} +1 -1
- package/lib/dist/_nuxt/{zErPCtcB.js → DxRO0DFU.js} +1 -1
- package/lib/dist/_nuxt/{Buq-jeAD.js → Dy4meA85.js} +1 -1
- package/lib/dist/_nuxt/{280IOBLC.js → DyjEoH9B.js} +2 -2
- package/lib/dist/_nuxt/{Dovr4y_N.js → Dz5Y7G3v.js} +1 -1
- package/lib/dist/_nuxt/{CfSPTPvX.js → EsjoHwle.js} +1 -1
- package/lib/dist/_nuxt/{Dw6QZof-.js → FJzXgD1q.js} +1 -1
- package/lib/dist/_nuxt/HgF9ENQO.js +1 -0
- package/lib/dist/_nuxt/{O2LGllLZ.js → INibGBS3.js} +1 -1
- package/lib/dist/_nuxt/{C-Bnpd2e.js → IyW17NS0.js} +1 -1
- package/lib/dist/_nuxt/{u2QnTgop.js → J2s5CnRS.js} +1 -1
- package/lib/dist/_nuxt/{CP1s9025.js → KY60TpFQ.js} +1 -1
- package/lib/dist/_nuxt/{Bg-tZGz_.js → L9TIwNpK.js} +1 -1
- package/lib/dist/_nuxt/{BPu-in_i.js → LAEswO5v.js} +1 -1
- package/lib/dist/_nuxt/{QpmejnYJ.js → LAiD9eOm.js} +1 -1
- package/lib/dist/_nuxt/{BWKx5AMV.js → LK2GcfhS.js} +3 -3
- package/lib/dist/_nuxt/{CKkNNjlN.js → LLghMu9r.js} +1 -1
- package/lib/dist/_nuxt/{_xiY6FSW.js → LMDDbn5I.js} +1 -1
- package/lib/dist/_nuxt/{VwKRn_Ub.js → LMIBhNmZ.js} +2 -2
- package/lib/dist/_nuxt/{CJL5s59L.js → LrQ3PXSl.js} +1 -1
- package/lib/dist/_nuxt/{Dty0Z0z-.js → Lu06hHio.js} +1 -1
- package/lib/dist/_nuxt/{CE_eotpK.js → Lv_gHbcP.js} +2 -2
- package/lib/dist/_nuxt/{M_38KAtu.js → MWyA65x_.js} +1 -1
- package/lib/dist/_nuxt/{D0skW1jq.js → NHZFd8bQ.js} +6 -6
- package/lib/dist/_nuxt/{CieNK_Hy.js → NuKLqi_C.js} +1 -1
- package/lib/dist/_nuxt/{B9joLcm_.js → P0QkPGdf.js} +2 -2
- package/lib/dist/_nuxt/{CSqy6vht.js → P1U7Y6XL.js} +1 -1
- package/lib/dist/_nuxt/{C4ETrJi7.js → QWjz_-lm.js} +1 -1
- package/lib/dist/_nuxt/QujOlhZj.js +2 -0
- package/lib/dist/_nuxt/{BSzJ4FxO.js → RCSYvIJN.js} +1 -1
- package/lib/dist/_nuxt/{Bx6zLbPy.js → ReAu2ibT.js} +1 -1
- package/lib/dist/_nuxt/{BTW1NQFl.js → TlYMG5Lb.js} +7 -7
- package/lib/dist/_nuxt/U6Yv1qW2.js +2 -0
- package/lib/dist/_nuxt/{BmU5H8v_.js → X3VQ5PkD.js} +2 -2
- package/lib/dist/_nuxt/{ugJET5xs.js → XZK4lLIj.js} +1 -1
- package/lib/dist/_nuxt/{DOx4axN9.js → Y45Pvb6W.js} +1 -1
- package/lib/dist/_nuxt/{BIgDKQss.js → ZJoY4cv8.js} +1 -1
- package/lib/dist/_nuxt/{CZK_s1tg.js → Zbz8jq1G.js} +1 -1
- package/lib/dist/_nuxt/aCruzJXG.js +1 -0
- package/lib/dist/_nuxt/{Bw11haZJ.js → aJ7vL21_.js} +1 -1
- package/lib/dist/_nuxt/{DOtEMrYm.js → bQDfPeIU.js} +1 -1
- package/lib/dist/_nuxt/builds/latest.json +1 -1
- package/lib/dist/_nuxt/builds/meta/4d3455d9-8566-4611-8871-432defb7e328.json +1 -0
- package/lib/dist/_nuxt/{C2Y5XRar.js → cBorlqEK.js} +2 -2
- package/lib/dist/_nuxt/{D48FTZfZ.js → cI3AFhs3.js} +1 -1
- package/lib/dist/_nuxt/{aDq49son.js → d-tLNYlP.js} +1 -1
- package/lib/dist/_nuxt/{CDSEzxpf.js → dHKlbiDl.js} +1 -1
- package/lib/dist/_nuxt/{C8vzQM9F.js → eKjPor-g.js} +2 -2
- package/lib/dist/_nuxt/{43F7ME7I.js → eskGEf7B.js} +1 -1
- package/lib/dist/_nuxt/{CxqNjWIa.js → euJqEUdj.js} +1 -1
- package/lib/dist/_nuxt/{CZ1dfjxk.js → gfY1oWFn.js} +1 -1
- package/lib/dist/_nuxt/{jdd8DREa.js → gkkS3OdB.js} +1 -1
- package/lib/dist/_nuxt/{BIaf71U6.js → hK_vol2i.js} +1 -1
- package/lib/dist/_nuxt/{Dyq8wlm2.js → iP1ZjiJa.js} +2 -2
- package/lib/dist/_nuxt/{BVg_3UXa.js → iSAFOGha.js} +2 -2
- package/lib/dist/_nuxt/{xZsSy3RW.js → ijWpAKHL.js} +1 -1
- package/lib/dist/_nuxt/{D5ELxc-k.js → jxmEYLWk.js} +1 -1
- package/lib/dist/_nuxt/{DUyMuvWw.js → kMYqkelq.js} +1 -1
- package/lib/dist/_nuxt/kgA_spNm.js +1 -0
- package/lib/dist/_nuxt/{Dyb0u-HW.js → kv4-NDtx.js} +3 -3
- package/lib/dist/_nuxt/{clwBgde6.js → l2p4hKoB.js} +1 -1
- package/lib/dist/_nuxt/{ClX7IuYy.js → lt6VDLdz.js} +1 -1
- package/lib/dist/_nuxt/{BkeBYOsG.js → m-_0Ui4u.js} +1 -1
- package/lib/dist/_nuxt/{EPaHYVRO.js → m9SI53XN.js} +1 -1
- package/lib/dist/_nuxt/{LWWX4jJK.js → mFTJNPpO.js} +2 -2
- package/lib/dist/_nuxt/{ebEXfNSo.js → natIdR_4.js} +1 -1
- package/lib/dist/_nuxt/{COU5RsPn.js → nhJGrFyW.js} +1 -1
- package/lib/dist/_nuxt/{tryzmhi-.js → oU1_jzX3.js} +2 -2
- package/lib/dist/_nuxt/{l5kmItbI.js → qMnjxg1z.js} +2 -2
- package/lib/dist/_nuxt/{D3xcU-9s.js → qUZV8ckr.js} +1 -1
- package/lib/dist/_nuxt/{BGeyVyh0.js → qq4q0aR6.js} +1 -1
- package/lib/dist/_nuxt/{Czkqqtnx.js → rLJJko6s.js} +2 -2
- package/lib/dist/_nuxt/{mMZq6K4Q.js → rNQe47vo.js} +1 -1
- package/lib/dist/_nuxt/{Ct1oIb_4.js → s-MsS4iB.js} +1 -1
- package/lib/dist/_nuxt/{DXFidnjK.js → s0RDr8Yh.js} +1 -1
- package/lib/dist/_nuxt/{BlXcT63I.js → tIh8AlSR.js} +1 -1
- package/lib/dist/_nuxt/{CWxOTqy6.js → uzC90Djt.js} +1 -1
- package/lib/dist/_nuxt/{Cupjn1oo.js → vLzSHf6u.js} +1 -1
- package/lib/dist/_nuxt/{CdLRqnlg.js → vMzl2isH.js} +2 -2
- package/lib/dist/_nuxt/{CA9orR1m.js → w_XtQjYV.js} +1 -1
- package/lib/dist/_nuxt/{spkU7cBe.js → wlN_Lind.js} +1 -1
- package/lib/dist/_nuxt/{DQ_P5qhG.js → xrjPLgbZ.js} +2 -2
- package/lib/dist/_nuxt/{BBNdAyDm.js → yYBIpa2d.js} +2 -2
- package/lib/dist/_nuxt/{CGnFnNNP.js → yvNBUCYV.js} +2 -2
- package/lib/dist/index.html +78 -78
- package/package.json +1 -1
- package/lib/dist/_nuxt/5k15r58b.js +0 -2
- package/lib/dist/_nuxt/6hwpPwDU.js +0 -1
- package/lib/dist/_nuxt/BOcIFZYZ.js +0 -1
- package/lib/dist/_nuxt/BRDmg5de.js +0 -1
- package/lib/dist/_nuxt/BWn7t3Vo.js +0 -1
- package/lib/dist/_nuxt/BieqjKAc.js +0 -1
- package/lib/dist/_nuxt/BkmIs3tY.js +0 -1
- package/lib/dist/_nuxt/C-eSTurT.js +0 -1
- package/lib/dist/_nuxt/CCLf8Ov5.js +0 -1
- package/lib/dist/_nuxt/CJLrQ8Hb.js +0 -2
- package/lib/dist/_nuxt/CPE_7hUe.js +0 -1
- package/lib/dist/_nuxt/CZhg4TfM.js +0 -2
- package/lib/dist/_nuxt/Cde3ly4N.js +0 -1
- package/lib/dist/_nuxt/Cng_fVI_.js +0 -1
- package/lib/dist/_nuxt/D64AfRxx.js +0 -1
- package/lib/dist/_nuxt/D7AJ3OTd.js +0 -1
- package/lib/dist/_nuxt/DG6rkk6h.js +0 -2
- package/lib/dist/_nuxt/DaW8Mwua.js +0 -1
- package/lib/dist/_nuxt/KYUg3rcO.js +0 -1
- package/lib/dist/_nuxt/VaTSRx_Q.js +0 -2
- package/lib/dist/_nuxt/builds/meta/78ffa04d-dc42-4d55-af86-caabed101676.json +0 -1
- package/lib/dist/_nuxt/mkTWPTBO.js +0 -2
- package/lib/dist/_nuxt/nQ8h8-3-.js +0 -2
- package/lib/dist/_nuxt/pBpIB2qI.js +0 -2
@@ -1,5 +1,5 @@
|
|
1
|
-
const __vite__fileDeps=["./
|
2
|
-
import{aQ as Rr,k as q,a8 as xe,F as Pr,G as Mr,a9 as J,bx as Br,by as Fr,e as an,aF as on,r as Et,p as B,bi as nr,l as Ne,b1 as Ee,ay as Ct,aT as Oe,z as de,m as _e,aS as ot,bA as fn,cp as un,aH as sn,aU as ir,aB as cn,aC as ln,aD as gt,aI as ar,aL as hn,aW as dn,bX as vn,cP as xn,cL as pn,aX as gn,aA as yt}from"./D0skW1jq.js";import{_ as yn,a as _n}from"./BVTg5uiQ.js";import{_ as An}from"./BDWmjfg6.js";import{u as wn}from"./CmrZvHjC.js";import{u as En}from"./CnUzkPPI.js";import{F as Cn}from"./DSo-2nFJ.js";import{_ as mn}from"./3fdRvCCy.js";import{_ as In}from"./D-3pY83G.js";import{_ as Sn}from"./CgemNdgi.js";import"./ugJET5xs.js";import"./BkmIs3tY.js";import"./DJYXGfCo.js";import"./TGNXCWG6.js";import"./DRPzkOuH.js";import"./DKgzeeDD.js";import"./boyBAVNN.js";import"./D5LgkGGj.js";import"./clwBgde6.js";import"./Wfb3YMK3.js";import"./BbQblmCC.js";import"./BmoKdN2h.js";import"./CKkNNjlN.js";import"./CxsGCxm3.js";import"./BipOdpcd.js";import"./D64AfRxx.js";function On(r,e){var t=Object.setPrototypeOf;t?t(r,e):r.__proto__=e}function Tn(r,e){e===void 0&&(e=r.constructor);var t=Error.captureStackTrace;t&&t(r,e)}var bn=function(){var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},r(t,n)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Dn=function(r){bn(e,r);function e(t,n){var i=this.constructor,a=r.call(this,t,n)||this;return Object.defineProperty(a,"name",{value:i.name,enumerable:!1,configurable:!0}),On(a,i.prototype),Tn(a),a}return e}(Error),Nn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),le=function(r){Nn(e,r);function e(t){t===void 0&&(t=void 0);var n=r.call(this,t)||this;return n.message=t,n}return e.prototype.getKind=function(){var t=this.constructor;return t.kind},e.kind="Exception",e}(Dn),Rn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),me=function(r){Rn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ArgumentException",e}(le),Pn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),P=function(r){Pn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e}(le),Mn=function(){function r(e){if(this.binarizer=e,e===null)throw new P("Binarizer must be non-null.")}return r.prototype.getWidth=function(){return this.binarizer.getWidth()},r.prototype.getHeight=function(){return this.binarizer.getHeight()},r.prototype.getBlackRow=function(e,t){return this.binarizer.getBlackRow(e,t)},r.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},r.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},r.prototype.crop=function(e,t,n,i){var a=this.binarizer.getLuminanceSource().crop(e,t,n,i);return new r(this.binarizer.createBinarizer(a))},r.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},r.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new r(this.binarizer.createBinarizer(e))},r.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new r(this.binarizer.createBinarizer(e))},r.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},r}(),Bn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),oe=function(r){Bn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(le),Fn=function(){function r(e){this.source=e}return r.prototype.getLuminanceSource=function(){return this.source},r.prototype.getWidth=function(){return this.source.getWidth()},r.prototype.getHeight=function(){return this.source.getHeight()},r}(),$=function(){function r(){}return r.arraycopy=function(e,t,n,i,a){for(;a--;)n[i++]=e[t++]},r.currentTimeMillis=function(){return Date.now()},r}(),Ln=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xt=function(r){Ln(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e}(le),kn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),or=function(r){kn(e,r);function e(t,n){t===void 0&&(t=void 0),n===void 0&&(n=void 0);var i=r.call(this,n)||this;return i.index=t,i.message=n,i}return e.kind="ArrayIndexOutOfBoundsException",e}(Xt),Un=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ge=function(){function r(){}return r.fill=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n]=t},r.fillWithin=function(e,t,n,i){r.rangeCheck(e.length,t,n);for(var a=t;a<n;a++)e[a]=i},r.rangeCheck=function(e,t,n){if(t>n)throw new P("fromIndex("+t+") > toIndex("+n+")");if(t<0)throw new or(t);if(n>e)throw new or(n)},r.asList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},r.create=function(e,t,n){var i=Array.from({length:e});return i.map(function(a){return Array.from({length:t}).fill(n)})},r.createInt32Array=function(e,t,n){var i=Array.from({length:e});return i.map(function(a){return Int32Array.from({length:t}).fill(n)})},r.equals=function(e,t){if(!e||!t||!e.length||!t.length||e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0},r.hashCode=function(e){var t,n;if(e===null)return 0;var i=1;try{for(var a=Un(e),o=a.next();!o.done;o=a.next()){var f=o.value;i=31*i+f}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},r.fillUint8Array=function(e,t){for(var n=0;n!==e.length;n++)e[n]=t},r.copyOf=function(e,t){return e.slice(0,t)},r.copyOfUint8Array=function(e,t){if(e.length<=t){var n=new Uint8Array(t);return n.set(e),n}return e.slice(0,t)},r.copyOfRange=function(e,t,n){var i=n-t,a=new Int32Array(i);return $.arraycopy(e,t,a,0,i),a},r.binarySearch=function(e,t,n){n===void 0&&(n=r.numberComparator);for(var i=0,a=e.length-1;i<=a;){var o=a+i>>1,f=n(t,e[o]);if(f>0)i=o+1;else if(f<0)a=o-1;else return o}return-i-1},r.numberComparator=function(e,t){return e-t},r}(),L=function(){function r(){}return r.numberOfTrailingZeros=function(e){var t;if(e===0)return 32;var n=31;return t=e<<16,t!==0&&(n-=16,e=t),t=e<<8,t!==0&&(n-=8,e=t),t=e<<4,t!==0&&(n-=4,e=t),t=e<<2,t!==0&&(n-=2,e=t),n-(e<<1>>>31)},r.numberOfLeadingZeros=function(e){if(e===0)return 32;var t=1;return e>>>16||(t+=16,e<<=16),e>>>24||(t+=8,e<<=8),e>>>28||(t+=4,e<<=4),e>>>30||(t+=2,e<<=2),t-=e>>>31,t},r.toHexString=function(e){return e.toString(16)},r.toBinaryString=function(e){return String(parseInt(String(e),2))},r.bitCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e=e+(e>>>8),e=e+(e>>>16),e&63},r.truncDivision=function(e,t){return Math.trunc(e/t)},r.parseInt=function(e,t){return t===void 0&&(t=void 0),parseInt(e,t)},r.MIN_VALUE_32_BITS=-2147483648,r.MAX_VALUE=Number.MAX_SAFE_INTEGER,r}(),ie=function(){function r(e,t){e===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,t==null?this.bits=r.makeArray(e):this.bits=t)}return r.prototype.getSize=function(){return this.size},r.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},r.prototype.ensureCapacity=function(e){if(e>this.bits.length*32){var t=r.makeArray(e);$.arraycopy(this.bits,0,t,0,this.bits.length),this.bits=t}},r.prototype.get=function(e){return(this.bits[Math.floor(e/32)]&1<<(e&31))!==0},r.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(e&31)},r.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(e&31)},r.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,i=Math.floor(e/32),a=n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return t;a=n[i]}var f=i*32+L.numberOfTrailingZeros(a);return f>t?t:f},r.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,i=Math.floor(e/32),a=~n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return t;a=~n[i]}var f=i*32+L.numberOfTrailingZeros(a);return f>t?t:f},r.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},r.prototype.setRange=function(e,t){if(t<e||e<0||t>this.size)throw new P;if(t!==e){t--;for(var n=Math.floor(e/32),i=Math.floor(t/32),a=this.bits,o=n;o<=i;o++){var f=o>n?0:e&31,u=o<i?31:t&31,s=(2<<u)-(1<<f);a[o]|=s}}},r.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,n=0;n<e;n++)t[n]=0},r.prototype.isRange=function(e,t,n){if(t<e||e<0||t>this.size)throw new P;if(t===e)return!0;t--;for(var i=Math.floor(e/32),a=Math.floor(t/32),o=this.bits,f=i;f<=a;f++){var u=f>i?0:e&31,s=f<a?31:t&31,c=(2<<s)-(1<<u)&4294967295;if((o[f]&c)!==(n?c:0))return!1}return!0},r.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},r.prototype.appendBits=function(e,t){if(t<0||t>32)throw new P("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);for(var n=t;n>0;n--)this.appendBit((e>>n-1&1)===1)},r.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);for(var n=0;n<t;n++)this.appendBit(e.get(n))},r.prototype.xor=function(e){if(this.size!==e.size)throw new P("Sizes don't match");for(var t=this.bits,n=0,i=t.length;n<i;n++)t[n]^=e.bits[n]},r.prototype.toBytes=function(e,t,n,i){for(var a=0;a<i;a++){for(var o=0,f=0;f<8;f++)this.get(e)&&(o|=1<<7-f),e++;t[n+a]=o}},r.prototype.getBitArray=function(){return this.bits},r.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),t=Math.floor((this.size-1)/32),n=t+1,i=this.bits,a=0;a<n;a++){var o=i[a];o=o>>1&1431655765|(o&1431655765)<<1,o=o>>2&858993459|(o&858993459)<<2,o=o>>4&252645135|(o&252645135)<<4,o=o>>8&16711935|(o&16711935)<<8,o=o>>16&65535|(o&65535)<<16,e[t-a]=o}if(this.size!==n*32){for(var f=n*32-this.size,u=e[0]>>>f,a=1;a<n;a++){var s=e[a];u|=s<<32-f,e[a-1]=u,u=s>>>f}e[n-1]=u}this.bits=e},r.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.size===t.size&&ge.equals(this.bits,t.bits)},r.prototype.hashCode=function(){return 31*this.size+ge.hashCode(this.bits)},r.prototype.toString=function(){for(var e="",t=0,n=this.size;t<n;t++)t&7||(e+=" "),e+=this.get(t)?"X":".";return e},r.prototype.clone=function(){return new r(this.size,this.bits.slice())},r}(),Dt;(function(r){r[r.OTHER=0]="OTHER",r[r.PURE_BARCODE=1]="PURE_BARCODE",r[r.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",r[r.TRY_HARDER=3]="TRY_HARDER",r[r.CHARACTER_SET=4]="CHARACTER_SET",r[r.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",r[r.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",r[r.ASSUME_GS1=7]="ASSUME_GS1",r[r.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",r[r.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",r[r.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"})(Dt||(Dt={}));const Q=Dt;var Vn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),T=function(r){Vn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(le),Hn=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},G;(function(r){r[r.Cp437=0]="Cp437",r[r.ISO8859_1=1]="ISO8859_1",r[r.ISO8859_2=2]="ISO8859_2",r[r.ISO8859_3=3]="ISO8859_3",r[r.ISO8859_4=4]="ISO8859_4",r[r.ISO8859_5=5]="ISO8859_5",r[r.ISO8859_6=6]="ISO8859_6",r[r.ISO8859_7=7]="ISO8859_7",r[r.ISO8859_8=8]="ISO8859_8",r[r.ISO8859_9=9]="ISO8859_9",r[r.ISO8859_10=10]="ISO8859_10",r[r.ISO8859_11=11]="ISO8859_11",r[r.ISO8859_13=12]="ISO8859_13",r[r.ISO8859_14=13]="ISO8859_14",r[r.ISO8859_15=14]="ISO8859_15",r[r.ISO8859_16=15]="ISO8859_16",r[r.SJIS=16]="SJIS",r[r.Cp1250=17]="Cp1250",r[r.Cp1251=18]="Cp1251",r[r.Cp1252=19]="Cp1252",r[r.Cp1256=20]="Cp1256",r[r.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",r[r.UTF8=22]="UTF8",r[r.ASCII=23]="ASCII",r[r.Big5=24]="Big5",r[r.GB18030=25]="GB18030",r[r.EUC_KR=26]="EUC_KR"})(G||(G={}));var re=function(){function r(e,t,n){for(var i,a,o=[],f=3;f<arguments.length;f++)o[f-3]=arguments[f];this.valueIdentifier=e,this.name=n,typeof t=="number"?this.values=Int32Array.from([t]):this.values=t,this.otherEncodingNames=o,r.VALUE_IDENTIFIER_TO_ECI.set(e,this),r.NAME_TO_ECI.set(n,this);for(var u=this.values,s=0,c=u.length;s!==c;s++){var l=u[s];r.VALUES_TO_ECI.set(l,this)}try{for(var d=Hn(o),h=d.next();!h.done;h=d.next()){var v=h.value;r.NAME_TO_ECI.set(v,this)}}catch(p){i={error:p}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}return r.prototype.getValueIdentifier=function(){return this.valueIdentifier},r.prototype.getName=function(){return this.name},r.prototype.getValue=function(){return this.values[0]},r.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new T("incorect value");var t=r.VALUES_TO_ECI.get(e);if(t===void 0)throw new T("incorect value");return t},r.getCharacterSetECIByName=function(e){var t=r.NAME_TO_ECI.get(e);if(t===void 0)throw new T("incorect value");return t},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.getName()===t.getName()},r.VALUE_IDENTIFIER_TO_ECI=new Map,r.VALUES_TO_ECI=new Map,r.NAME_TO_ECI=new Map,r.Cp437=new r(G.Cp437,Int32Array.from([0,2]),"Cp437"),r.ISO8859_1=new r(G.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),r.ISO8859_2=new r(G.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),r.ISO8859_3=new r(G.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),r.ISO8859_4=new r(G.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),r.ISO8859_5=new r(G.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),r.ISO8859_6=new r(G.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),r.ISO8859_7=new r(G.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),r.ISO8859_8=new r(G.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),r.ISO8859_9=new r(G.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),r.ISO8859_10=new r(G.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),r.ISO8859_11=new r(G.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),r.ISO8859_13=new r(G.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),r.ISO8859_14=new r(G.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),r.ISO8859_15=new r(G.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),r.ISO8859_16=new r(G.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),r.SJIS=new r(G.SJIS,20,"SJIS","Shift_JIS"),r.Cp1250=new r(G.Cp1250,21,"Cp1250","windows-1250"),r.Cp1251=new r(G.Cp1251,22,"Cp1251","windows-1251"),r.Cp1252=new r(G.Cp1252,23,"Cp1252","windows-1252"),r.Cp1256=new r(G.Cp1256,24,"Cp1256","windows-1256"),r.UnicodeBigUnmarked=new r(G.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),r.UTF8=new r(G.UTF8,26,"UTF8","UTF-8"),r.ASCII=new r(G.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),r.Big5=new r(G.Big5,28,"Big5"),r.GB18030=new r(G.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),r.EUC_KR=new r(G.EUC_KR,30,"EUC_KR","EUC-KR"),r}(),Gn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ht=function(r){Gn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e}(le),be=function(){function r(){}return r.decode=function(e,t){var n=this.encodingName(t);return this.customDecoder?this.customDecoder(e,n):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(n)?this.decodeFallback(e,n):new TextDecoder(n).decode(e)},r.shouldDecodeOnFallback=function(e){return!r.isBrowser()&&e==="ISO-8859-1"},r.encode=function(e,t){var n=this.encodingName(t);return this.customEncoder?this.customEncoder(e,n):typeof TextEncoder>"u"?this.encodeFallback(e):new TextEncoder().encode(e)},r.isBrowser=function(){return typeof window<"u"&&{}.toString.call(window)==="[object Window]"},r.encodingName=function(e){return typeof e=="string"?e:e.getName()},r.encodingCharacterSet=function(e){return e instanceof re?e:re.getCharacterSetECIByName(e)},r.decodeFallback=function(e,t){var n=this.encodingCharacterSet(t);if(r.isDecodeFallbackSupported(n)){for(var i="",a=0,o=e.length;a<o;a++){var f=e[a].toString(16);f.length<2&&(f="0"+f),i+="%"+f}return decodeURIComponent(i)}if(n.equals(re.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new ht("Encoding "+this.encodingName(t)+" not supported by fallback.")},r.isDecodeFallbackSupported=function(e){return e.equals(re.UTF8)||e.equals(re.ISO8859_1)||e.equals(re.ASCII)},r.encodeFallback=function(e){for(var t=btoa(unescape(encodeURIComponent(e))),n=t.split(""),i=[],a=0;a<n.length;a++)i.push(n[a].charCodeAt(0));return new Uint8Array(i)},r}(),j=function(){function r(){}return r.castAsNonUtf8Char=function(e,t){t===void 0&&(t=null);var n=t?t.getName():this.ISO88591;return be.decode(new Uint8Array([e]),n)},r.guessEncoding=function(e,t){if(t!=null&&t.get(Q.CHARACTER_SET)!==void 0)return t.get(Q.CHARACTER_SET).toString();for(var n=e.length,i=!0,a=!0,o=!0,f=0,u=0,s=0,c=0,l=0,d=0,h=0,v=0,p=0,y=0,_=0,g=e.length>3&&e[0]===239&&e[1]===187&&e[2]===191,w=0;w<n&&(i||a||o);w++){var E=e[w]&255;o&&(f>0?E&128?f--:o=!1:E&128&&(E&64?(f++,E&32?(f++,E&16?(f++,E&8?o=!1:c++):s++):u++):o=!1)),i&&(E>127&&E<160?i=!1:E>159&&(E<192||E===215||E===247)&&_++),a&&(l>0?E<64||E===127||E>252?a=!1:l--:E===128||E===160||E>239?a=!1:E>160&&E<224?(d++,v=0,h++,h>p&&(p=h)):E>127?(l++,h=0,v++,v>y&&(y=v)):(h=0,v=0))}return o&&f>0&&(o=!1),a&&l>0&&(a=!1),o&&(g||u+s+c>0)?r.UTF8:a&&(r.ASSUME_SHIFT_JIS||p>=3||y>=3)?r.SHIFT_JIS:i&&a?p===2&&d===2||_*10>=n?r.SHIFT_JIS:r.ISO88591:i?r.ISO88591:a?r.SHIFT_JIS:o?r.UTF8:r.PLATFORM_DEFAULT_ENCODING},r.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=-1;function a(f,u,s,c,l,d){if(f==="%%")return"%";if(t[++i]!==void 0){f=c?parseInt(c.substr(1)):void 0;var h=l?parseInt(l.substr(1)):void 0,v;switch(d){case"s":v=t[i];break;case"c":v=t[i][0];break;case"f":v=parseFloat(t[i]).toFixed(f);break;case"p":v=parseFloat(t[i]).toPrecision(f);break;case"e":v=parseFloat(t[i]).toExponential(f);break;case"x":v=parseInt(t[i]).toString(h||16);break;case"d":v=parseFloat(parseInt(t[i],h||10).toPrecision(f)).toFixed(0);break}v=typeof v=="object"?JSON.stringify(v):(+v).toString(h);for(var p=parseInt(s),y=s&&s[0]+""=="0"?"0":" ";v.length<p;)v=u!==void 0?v+y:y+v;return v}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(o,a)},r.getBytes=function(e,t){return be.encode(e,t)},r.getCharCode=function(e,t){return t===void 0&&(t=0),e.charCodeAt(t)},r.getCharAt=function(e){return String.fromCharCode(e)},r.SHIFT_JIS=re.SJIS.getName(),r.GB2312="GB2312",r.ISO88591=re.ISO8859_1.getName(),r.EUC_JP="EUC_JP",r.UTF8=re.UTF8.getName(),r.PLATFORM_DEFAULT_ENCODING=r.UTF8,r.ASSUME_SHIFT_JIS=!1,r}(),z=function(){function r(e){e===void 0&&(e=""),this.value=e}return r.prototype.enableDecoding=function(e){return this.encoding=e,this},r.prototype.append=function(e){return typeof e=="string"?this.value+=e.toString():this.encoding?this.value+=j.castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},r.prototype.appendChars=function(e,t,n){for(var i=t;t<t+n;i++)this.append(e[i]);return this},r.prototype.length=function(){return this.value.length},r.prototype.charAt=function(e){return this.value.charAt(e)},r.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},r.prototype.setCharAt=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+1)},r.prototype.substring=function(e,t){return this.value.substring(e,t)},r.prototype.setLengthToZero=function(){this.value=""},r.prototype.toString=function(){return this.value},r.prototype.insert=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+t.length)},r}(),De=function(){function r(e,t,n,i){if(this.width=e,this.height=t,this.rowSize=n,this.bits=i,t==null&&(t=e),this.height=t,e<1||t<1)throw new P("Both dimensions must be greater than 0");n==null&&(n=Math.floor((e+31)/32)),this.rowSize=n,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return r.parseFromBooleanArray=function(e){for(var t=e.length,n=e[0].length,i=new r(n,t),a=0;a<t;a++)for(var o=e[a],f=0;f<n;f++)o[f]&&i.set(f,a);return i},r.parseFromString=function(e,t,n){if(e===null)throw new P("stringRepresentation cannot be null");for(var i=new Array(e.length),a=0,o=0,f=-1,u=0,s=0;s<e.length;)if(e.charAt(s)===`
|
1
|
+
const __vite__fileDeps=["./Bf-Jn9fN.js","./NHZFd8bQ.js","./entry.6uu-XYG8.css","./9j5A48K7.js","./Cy50pBgZ.js","./BE4MlnZf.js","./LrQ3PXSl.js","./BQQOEPN4.js","./BZfcRRAG.js","./BV5fkeNl.js","./B4rH_4ZN.js","./Ckrtr2Si.js","./links.C8uCzV-l.css","./BjIWxehG.js","./RichText.M7uMQ9pA.css","./Cx74SJIJ.js","./B33qDdnq.js","./VirtualCell.CJyadweO.css","./Bi74c53l.js","./l2p4hKoB.js","./C5YDuKgZ.js","./BPXkp7pR.js","./boyBAVNN.js","./BWn3cSKa.js","./Cell.DfaUiQpP.css","./BUa3Jukl.js","./DivDataCell.1yCNpUg3.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
2
|
+
import{aQ as Rr,k as q,a8 as xe,F as Pr,G as Mr,a9 as J,bx as Br,by as Fr,e as an,aF as on,r as Et,p as B,bi as nr,l as Ne,b1 as Ee,ay as Ct,aT as Oe,z as de,m as _e,aS as ot,bA as fn,cp as un,aH as sn,aU as ir,aB as cn,aC as ln,aD as gt,aI as ar,aL as hn,aW as dn,bX as vn,cP as xn,cL as pn,aX as gn,aA as yt}from"./NHZFd8bQ.js";import{_ as yn,a as _n}from"./C-_nHsP3.js";import{_ as An}from"./CqocAHnv.js";import{u as wn}from"./Dm1YWlhs.js";import{u as En}from"./AoMdM-MP.js";import{F as Cn}from"./C17-0Owd.js";import{_ as mn}from"./CpWeSecD.js";import{_ as In}from"./BDlHzTvk.js";import{_ as Sn}from"./DTBGgeX5.js";import"./XZK4lLIj.js";import"./aCruzJXG.js";import"./DJYXGfCo.js";import"./C5YDuKgZ.js";import"./BPXkp7pR.js";import"./B33qDdnq.js";import"./boyBAVNN.js";import"./BWn3cSKa.js";import"./l2p4hKoB.js";import"./BjIWxehG.js";import"./CTrYGv0V.js";import"./DnFxlRi4.js";import"./LLghMu9r.js";import"./DvgZT7js.js";import"./BZfcRRAG.js";import"./B_LFFdI9.js";function On(r,e){var t=Object.setPrototypeOf;t?t(r,e):r.__proto__=e}function Tn(r,e){e===void 0&&(e=r.constructor);var t=Error.captureStackTrace;t&&t(r,e)}var bn=function(){var r=function(t,n){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,a){i.__proto__=a}||function(i,a){for(var o in a)Object.prototype.hasOwnProperty.call(a,o)&&(i[o]=a[o])},r(t,n)};return function(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Dn=function(r){bn(e,r);function e(t,n){var i=this.constructor,a=r.call(this,t,n)||this;return Object.defineProperty(a,"name",{value:i.name,enumerable:!1,configurable:!0}),On(a,i.prototype),Tn(a),a}return e}(Error),Nn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),le=function(r){Nn(e,r);function e(t){t===void 0&&(t=void 0);var n=r.call(this,t)||this;return n.message=t,n}return e.prototype.getKind=function(){var t=this.constructor;return t.kind},e.kind="Exception",e}(Dn),Rn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),me=function(r){Rn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ArgumentException",e}(le),Pn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),P=function(r){Pn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IllegalArgumentException",e}(le),Mn=function(){function r(e){if(this.binarizer=e,e===null)throw new P("Binarizer must be non-null.")}return r.prototype.getWidth=function(){return this.binarizer.getWidth()},r.prototype.getHeight=function(){return this.binarizer.getHeight()},r.prototype.getBlackRow=function(e,t){return this.binarizer.getBlackRow(e,t)},r.prototype.getBlackMatrix=function(){return(this.matrix===null||this.matrix===void 0)&&(this.matrix=this.binarizer.getBlackMatrix()),this.matrix},r.prototype.isCropSupported=function(){return this.binarizer.getLuminanceSource().isCropSupported()},r.prototype.crop=function(e,t,n,i){var a=this.binarizer.getLuminanceSource().crop(e,t,n,i);return new r(this.binarizer.createBinarizer(a))},r.prototype.isRotateSupported=function(){return this.binarizer.getLuminanceSource().isRotateSupported()},r.prototype.rotateCounterClockwise=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise();return new r(this.binarizer.createBinarizer(e))},r.prototype.rotateCounterClockwise45=function(){var e=this.binarizer.getLuminanceSource().rotateCounterClockwise45();return new r(this.binarizer.createBinarizer(e))},r.prototype.toString=function(){try{return this.getBlackMatrix().toString()}catch{return""}},r}(),Bn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),oe=function(r){Bn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getChecksumInstance=function(){return new e},e.kind="ChecksumException",e}(le),Fn=function(){function r(e){this.source=e}return r.prototype.getLuminanceSource=function(){return this.source},r.prototype.getWidth=function(){return this.source.getWidth()},r.prototype.getHeight=function(){return this.source.getHeight()},r}(),$=function(){function r(){}return r.arraycopy=function(e,t,n,i,a){for(;a--;)n[i++]=e[t++]},r.currentTimeMillis=function(){return Date.now()},r}(),Ln=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Xt=function(r){Ln(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IndexOutOfBoundsException",e}(le),kn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),or=function(r){kn(e,r);function e(t,n){t===void 0&&(t=void 0),n===void 0&&(n=void 0);var i=r.call(this,n)||this;return i.index=t,i.message=n,i}return e.kind="ArrayIndexOutOfBoundsException",e}(Xt),Un=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},ge=function(){function r(){}return r.fill=function(e,t){for(var n=0,i=e.length;n<i;n++)e[n]=t},r.fillWithin=function(e,t,n,i){r.rangeCheck(e.length,t,n);for(var a=t;a<n;a++)e[a]=i},r.rangeCheck=function(e,t,n){if(t>n)throw new P("fromIndex("+t+") > toIndex("+n+")");if(t<0)throw new or(t);if(n>e)throw new or(n)},r.asList=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e},r.create=function(e,t,n){var i=Array.from({length:e});return i.map(function(a){return Array.from({length:t}).fill(n)})},r.createInt32Array=function(e,t,n){var i=Array.from({length:e});return i.map(function(a){return Int32Array.from({length:t}).fill(n)})},r.equals=function(e,t){if(!e||!t||!e.length||!t.length||e.length!==t.length)return!1;for(var n=0,i=e.length;n<i;n++)if(e[n]!==t[n])return!1;return!0},r.hashCode=function(e){var t,n;if(e===null)return 0;var i=1;try{for(var a=Un(e),o=a.next();!o.done;o=a.next()){var f=o.value;i=31*i+f}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return i},r.fillUint8Array=function(e,t){for(var n=0;n!==e.length;n++)e[n]=t},r.copyOf=function(e,t){return e.slice(0,t)},r.copyOfUint8Array=function(e,t){if(e.length<=t){var n=new Uint8Array(t);return n.set(e),n}return e.slice(0,t)},r.copyOfRange=function(e,t,n){var i=n-t,a=new Int32Array(i);return $.arraycopy(e,t,a,0,i),a},r.binarySearch=function(e,t,n){n===void 0&&(n=r.numberComparator);for(var i=0,a=e.length-1;i<=a;){var o=a+i>>1,f=n(t,e[o]);if(f>0)i=o+1;else if(f<0)a=o-1;else return o}return-i-1},r.numberComparator=function(e,t){return e-t},r}(),L=function(){function r(){}return r.numberOfTrailingZeros=function(e){var t;if(e===0)return 32;var n=31;return t=e<<16,t!==0&&(n-=16,e=t),t=e<<8,t!==0&&(n-=8,e=t),t=e<<4,t!==0&&(n-=4,e=t),t=e<<2,t!==0&&(n-=2,e=t),n-(e<<1>>>31)},r.numberOfLeadingZeros=function(e){if(e===0)return 32;var t=1;return e>>>16||(t+=16,e<<=16),e>>>24||(t+=8,e<<=8),e>>>28||(t+=4,e<<=4),e>>>30||(t+=2,e<<=2),t-=e>>>31,t},r.toHexString=function(e){return e.toString(16)},r.toBinaryString=function(e){return String(parseInt(String(e),2))},r.bitCount=function(e){return e=e-(e>>>1&1431655765),e=(e&858993459)+(e>>>2&858993459),e=e+(e>>>4)&252645135,e=e+(e>>>8),e=e+(e>>>16),e&63},r.truncDivision=function(e,t){return Math.trunc(e/t)},r.parseInt=function(e,t){return t===void 0&&(t=void 0),parseInt(e,t)},r.MIN_VALUE_32_BITS=-2147483648,r.MAX_VALUE=Number.MAX_SAFE_INTEGER,r}(),ie=function(){function r(e,t){e===void 0?(this.size=0,this.bits=new Int32Array(1)):(this.size=e,t==null?this.bits=r.makeArray(e):this.bits=t)}return r.prototype.getSize=function(){return this.size},r.prototype.getSizeInBytes=function(){return Math.floor((this.size+7)/8)},r.prototype.ensureCapacity=function(e){if(e>this.bits.length*32){var t=r.makeArray(e);$.arraycopy(this.bits,0,t,0,this.bits.length),this.bits=t}},r.prototype.get=function(e){return(this.bits[Math.floor(e/32)]&1<<(e&31))!==0},r.prototype.set=function(e){this.bits[Math.floor(e/32)]|=1<<(e&31)},r.prototype.flip=function(e){this.bits[Math.floor(e/32)]^=1<<(e&31)},r.prototype.getNextSet=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,i=Math.floor(e/32),a=n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return t;a=n[i]}var f=i*32+L.numberOfTrailingZeros(a);return f>t?t:f},r.prototype.getNextUnset=function(e){var t=this.size;if(e>=t)return t;var n=this.bits,i=Math.floor(e/32),a=~n[i];a&=~((1<<(e&31))-1);for(var o=n.length;a===0;){if(++i===o)return t;a=~n[i]}var f=i*32+L.numberOfTrailingZeros(a);return f>t?t:f},r.prototype.setBulk=function(e,t){this.bits[Math.floor(e/32)]=t},r.prototype.setRange=function(e,t){if(t<e||e<0||t>this.size)throw new P;if(t!==e){t--;for(var n=Math.floor(e/32),i=Math.floor(t/32),a=this.bits,o=n;o<=i;o++){var f=o>n?0:e&31,u=o<i?31:t&31,s=(2<<u)-(1<<f);a[o]|=s}}},r.prototype.clear=function(){for(var e=this.bits.length,t=this.bits,n=0;n<e;n++)t[n]=0},r.prototype.isRange=function(e,t,n){if(t<e||e<0||t>this.size)throw new P;if(t===e)return!0;t--;for(var i=Math.floor(e/32),a=Math.floor(t/32),o=this.bits,f=i;f<=a;f++){var u=f>i?0:e&31,s=f<a?31:t&31,c=(2<<s)-(1<<u)&4294967295;if((o[f]&c)!==(n?c:0))return!1}return!0},r.prototype.appendBit=function(e){this.ensureCapacity(this.size+1),e&&(this.bits[Math.floor(this.size/32)]|=1<<(this.size&31)),this.size++},r.prototype.appendBits=function(e,t){if(t<0||t>32)throw new P("Num bits must be between 0 and 32");this.ensureCapacity(this.size+t);for(var n=t;n>0;n--)this.appendBit((e>>n-1&1)===1)},r.prototype.appendBitArray=function(e){var t=e.size;this.ensureCapacity(this.size+t);for(var n=0;n<t;n++)this.appendBit(e.get(n))},r.prototype.xor=function(e){if(this.size!==e.size)throw new P("Sizes don't match");for(var t=this.bits,n=0,i=t.length;n<i;n++)t[n]^=e.bits[n]},r.prototype.toBytes=function(e,t,n,i){for(var a=0;a<i;a++){for(var o=0,f=0;f<8;f++)this.get(e)&&(o|=1<<7-f),e++;t[n+a]=o}},r.prototype.getBitArray=function(){return this.bits},r.prototype.reverse=function(){for(var e=new Int32Array(this.bits.length),t=Math.floor((this.size-1)/32),n=t+1,i=this.bits,a=0;a<n;a++){var o=i[a];o=o>>1&1431655765|(o&1431655765)<<1,o=o>>2&858993459|(o&858993459)<<2,o=o>>4&252645135|(o&252645135)<<4,o=o>>8&16711935|(o&16711935)<<8,o=o>>16&65535|(o&65535)<<16,e[t-a]=o}if(this.size!==n*32){for(var f=n*32-this.size,u=e[0]>>>f,a=1;a<n;a++){var s=e[a];u|=s<<32-f,e[a-1]=u,u=s>>>f}e[n-1]=u}this.bits=e},r.makeArray=function(e){return new Int32Array(Math.floor((e+31)/32))},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.size===t.size&&ge.equals(this.bits,t.bits)},r.prototype.hashCode=function(){return 31*this.size+ge.hashCode(this.bits)},r.prototype.toString=function(){for(var e="",t=0,n=this.size;t<n;t++)t&7||(e+=" "),e+=this.get(t)?"X":".";return e},r.prototype.clone=function(){return new r(this.size,this.bits.slice())},r}(),Dt;(function(r){r[r.OTHER=0]="OTHER",r[r.PURE_BARCODE=1]="PURE_BARCODE",r[r.POSSIBLE_FORMATS=2]="POSSIBLE_FORMATS",r[r.TRY_HARDER=3]="TRY_HARDER",r[r.CHARACTER_SET=4]="CHARACTER_SET",r[r.ALLOWED_LENGTHS=5]="ALLOWED_LENGTHS",r[r.ASSUME_CODE_39_CHECK_DIGIT=6]="ASSUME_CODE_39_CHECK_DIGIT",r[r.ASSUME_GS1=7]="ASSUME_GS1",r[r.RETURN_CODABAR_START_END=8]="RETURN_CODABAR_START_END",r[r.NEED_RESULT_POINT_CALLBACK=9]="NEED_RESULT_POINT_CALLBACK",r[r.ALLOWED_EAN_EXTENSIONS=10]="ALLOWED_EAN_EXTENSIONS"})(Dt||(Dt={}));const Q=Dt;var Vn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),T=function(r){Vn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getFormatInstance=function(){return new e},e.kind="FormatException",e}(le),Hn=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},G;(function(r){r[r.Cp437=0]="Cp437",r[r.ISO8859_1=1]="ISO8859_1",r[r.ISO8859_2=2]="ISO8859_2",r[r.ISO8859_3=3]="ISO8859_3",r[r.ISO8859_4=4]="ISO8859_4",r[r.ISO8859_5=5]="ISO8859_5",r[r.ISO8859_6=6]="ISO8859_6",r[r.ISO8859_7=7]="ISO8859_7",r[r.ISO8859_8=8]="ISO8859_8",r[r.ISO8859_9=9]="ISO8859_9",r[r.ISO8859_10=10]="ISO8859_10",r[r.ISO8859_11=11]="ISO8859_11",r[r.ISO8859_13=12]="ISO8859_13",r[r.ISO8859_14=13]="ISO8859_14",r[r.ISO8859_15=14]="ISO8859_15",r[r.ISO8859_16=15]="ISO8859_16",r[r.SJIS=16]="SJIS",r[r.Cp1250=17]="Cp1250",r[r.Cp1251=18]="Cp1251",r[r.Cp1252=19]="Cp1252",r[r.Cp1256=20]="Cp1256",r[r.UnicodeBigUnmarked=21]="UnicodeBigUnmarked",r[r.UTF8=22]="UTF8",r[r.ASCII=23]="ASCII",r[r.Big5=24]="Big5",r[r.GB18030=25]="GB18030",r[r.EUC_KR=26]="EUC_KR"})(G||(G={}));var re=function(){function r(e,t,n){for(var i,a,o=[],f=3;f<arguments.length;f++)o[f-3]=arguments[f];this.valueIdentifier=e,this.name=n,typeof t=="number"?this.values=Int32Array.from([t]):this.values=t,this.otherEncodingNames=o,r.VALUE_IDENTIFIER_TO_ECI.set(e,this),r.NAME_TO_ECI.set(n,this);for(var u=this.values,s=0,c=u.length;s!==c;s++){var l=u[s];r.VALUES_TO_ECI.set(l,this)}try{for(var d=Hn(o),h=d.next();!h.done;h=d.next()){var v=h.value;r.NAME_TO_ECI.set(v,this)}}catch(p){i={error:p}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}}return r.prototype.getValueIdentifier=function(){return this.valueIdentifier},r.prototype.getName=function(){return this.name},r.prototype.getValue=function(){return this.values[0]},r.getCharacterSetECIByValue=function(e){if(e<0||e>=900)throw new T("incorect value");var t=r.VALUES_TO_ECI.get(e);if(t===void 0)throw new T("incorect value");return t},r.getCharacterSetECIByName=function(e){var t=r.NAME_TO_ECI.get(e);if(t===void 0)throw new T("incorect value");return t},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.getName()===t.getName()},r.VALUE_IDENTIFIER_TO_ECI=new Map,r.VALUES_TO_ECI=new Map,r.NAME_TO_ECI=new Map,r.Cp437=new r(G.Cp437,Int32Array.from([0,2]),"Cp437"),r.ISO8859_1=new r(G.ISO8859_1,Int32Array.from([1,3]),"ISO-8859-1","ISO88591","ISO8859_1"),r.ISO8859_2=new r(G.ISO8859_2,4,"ISO-8859-2","ISO88592","ISO8859_2"),r.ISO8859_3=new r(G.ISO8859_3,5,"ISO-8859-3","ISO88593","ISO8859_3"),r.ISO8859_4=new r(G.ISO8859_4,6,"ISO-8859-4","ISO88594","ISO8859_4"),r.ISO8859_5=new r(G.ISO8859_5,7,"ISO-8859-5","ISO88595","ISO8859_5"),r.ISO8859_6=new r(G.ISO8859_6,8,"ISO-8859-6","ISO88596","ISO8859_6"),r.ISO8859_7=new r(G.ISO8859_7,9,"ISO-8859-7","ISO88597","ISO8859_7"),r.ISO8859_8=new r(G.ISO8859_8,10,"ISO-8859-8","ISO88598","ISO8859_8"),r.ISO8859_9=new r(G.ISO8859_9,11,"ISO-8859-9","ISO88599","ISO8859_9"),r.ISO8859_10=new r(G.ISO8859_10,12,"ISO-8859-10","ISO885910","ISO8859_10"),r.ISO8859_11=new r(G.ISO8859_11,13,"ISO-8859-11","ISO885911","ISO8859_11"),r.ISO8859_13=new r(G.ISO8859_13,15,"ISO-8859-13","ISO885913","ISO8859_13"),r.ISO8859_14=new r(G.ISO8859_14,16,"ISO-8859-14","ISO885914","ISO8859_14"),r.ISO8859_15=new r(G.ISO8859_15,17,"ISO-8859-15","ISO885915","ISO8859_15"),r.ISO8859_16=new r(G.ISO8859_16,18,"ISO-8859-16","ISO885916","ISO8859_16"),r.SJIS=new r(G.SJIS,20,"SJIS","Shift_JIS"),r.Cp1250=new r(G.Cp1250,21,"Cp1250","windows-1250"),r.Cp1251=new r(G.Cp1251,22,"Cp1251","windows-1251"),r.Cp1252=new r(G.Cp1252,23,"Cp1252","windows-1252"),r.Cp1256=new r(G.Cp1256,24,"Cp1256","windows-1256"),r.UnicodeBigUnmarked=new r(G.UnicodeBigUnmarked,25,"UnicodeBigUnmarked","UTF-16BE","UnicodeBig"),r.UTF8=new r(G.UTF8,26,"UTF8","UTF-8"),r.ASCII=new r(G.ASCII,Int32Array.from([27,170]),"ASCII","US-ASCII"),r.Big5=new r(G.Big5,28,"Big5"),r.GB18030=new r(G.GB18030,29,"GB18030","GB2312","EUC_CN","GBK"),r.EUC_KR=new r(G.EUC_KR,30,"EUC_KR","EUC-KR"),r}(),Gn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ht=function(r){Gn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="UnsupportedOperationException",e}(le),be=function(){function r(){}return r.decode=function(e,t){var n=this.encodingName(t);return this.customDecoder?this.customDecoder(e,n):typeof TextDecoder>"u"||this.shouldDecodeOnFallback(n)?this.decodeFallback(e,n):new TextDecoder(n).decode(e)},r.shouldDecodeOnFallback=function(e){return!r.isBrowser()&&e==="ISO-8859-1"},r.encode=function(e,t){var n=this.encodingName(t);return this.customEncoder?this.customEncoder(e,n):typeof TextEncoder>"u"?this.encodeFallback(e):new TextEncoder().encode(e)},r.isBrowser=function(){return typeof window<"u"&&{}.toString.call(window)==="[object Window]"},r.encodingName=function(e){return typeof e=="string"?e:e.getName()},r.encodingCharacterSet=function(e){return e instanceof re?e:re.getCharacterSetECIByName(e)},r.decodeFallback=function(e,t){var n=this.encodingCharacterSet(t);if(r.isDecodeFallbackSupported(n)){for(var i="",a=0,o=e.length;a<o;a++){var f=e[a].toString(16);f.length<2&&(f="0"+f),i+="%"+f}return decodeURIComponent(i)}if(n.equals(re.UnicodeBigUnmarked))return String.fromCharCode.apply(null,new Uint16Array(e.buffer));throw new ht("Encoding "+this.encodingName(t)+" not supported by fallback.")},r.isDecodeFallbackSupported=function(e){return e.equals(re.UTF8)||e.equals(re.ISO8859_1)||e.equals(re.ASCII)},r.encodeFallback=function(e){for(var t=btoa(unescape(encodeURIComponent(e))),n=t.split(""),i=[],a=0;a<n.length;a++)i.push(n[a].charCodeAt(0));return new Uint8Array(i)},r}(),j=function(){function r(){}return r.castAsNonUtf8Char=function(e,t){t===void 0&&(t=null);var n=t?t.getName():this.ISO88591;return be.decode(new Uint8Array([e]),n)},r.guessEncoding=function(e,t){if(t!=null&&t.get(Q.CHARACTER_SET)!==void 0)return t.get(Q.CHARACTER_SET).toString();for(var n=e.length,i=!0,a=!0,o=!0,f=0,u=0,s=0,c=0,l=0,d=0,h=0,v=0,p=0,y=0,_=0,g=e.length>3&&e[0]===239&&e[1]===187&&e[2]===191,w=0;w<n&&(i||a||o);w++){var E=e[w]&255;o&&(f>0?E&128?f--:o=!1:E&128&&(E&64?(f++,E&32?(f++,E&16?(f++,E&8?o=!1:c++):s++):u++):o=!1)),i&&(E>127&&E<160?i=!1:E>159&&(E<192||E===215||E===247)&&_++),a&&(l>0?E<64||E===127||E>252?a=!1:l--:E===128||E===160||E>239?a=!1:E>160&&E<224?(d++,v=0,h++,h>p&&(p=h)):E>127?(l++,h=0,v++,v>y&&(y=v)):(h=0,v=0))}return o&&f>0&&(o=!1),a&&l>0&&(a=!1),o&&(g||u+s+c>0)?r.UTF8:a&&(r.ASSUME_SHIFT_JIS||p>=3||y>=3)?r.SHIFT_JIS:i&&a?p===2&&d===2||_*10>=n?r.SHIFT_JIS:r.ISO88591:i?r.ISO88591:a?r.SHIFT_JIS:o?r.UTF8:r.PLATFORM_DEFAULT_ENCODING},r.format=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=-1;function a(f,u,s,c,l,d){if(f==="%%")return"%";if(t[++i]!==void 0){f=c?parseInt(c.substr(1)):void 0;var h=l?parseInt(l.substr(1)):void 0,v;switch(d){case"s":v=t[i];break;case"c":v=t[i][0];break;case"f":v=parseFloat(t[i]).toFixed(f);break;case"p":v=parseFloat(t[i]).toPrecision(f);break;case"e":v=parseFloat(t[i]).toExponential(f);break;case"x":v=parseInt(t[i]).toString(h||16);break;case"d":v=parseFloat(parseInt(t[i],h||10).toPrecision(f)).toFixed(0);break}v=typeof v=="object"?JSON.stringify(v):(+v).toString(h);for(var p=parseInt(s),y=s&&s[0]+""=="0"?"0":" ";v.length<p;)v=u!==void 0?v+y:y+v;return v}}var o=/%(-)?(0?[0-9]+)?([.][0-9]+)?([#][0-9]+)?([scfpexd%])/g;return e.replace(o,a)},r.getBytes=function(e,t){return be.encode(e,t)},r.getCharCode=function(e,t){return t===void 0&&(t=0),e.charCodeAt(t)},r.getCharAt=function(e){return String.fromCharCode(e)},r.SHIFT_JIS=re.SJIS.getName(),r.GB2312="GB2312",r.ISO88591=re.ISO8859_1.getName(),r.EUC_JP="EUC_JP",r.UTF8=re.UTF8.getName(),r.PLATFORM_DEFAULT_ENCODING=r.UTF8,r.ASSUME_SHIFT_JIS=!1,r}(),z=function(){function r(e){e===void 0&&(e=""),this.value=e}return r.prototype.enableDecoding=function(e){return this.encoding=e,this},r.prototype.append=function(e){return typeof e=="string"?this.value+=e.toString():this.encoding?this.value+=j.castAsNonUtf8Char(e,this.encoding):this.value+=String.fromCharCode(e),this},r.prototype.appendChars=function(e,t,n){for(var i=t;t<t+n;i++)this.append(e[i]);return this},r.prototype.length=function(){return this.value.length},r.prototype.charAt=function(e){return this.value.charAt(e)},r.prototype.deleteCharAt=function(e){this.value=this.value.substr(0,e)+this.value.substring(e+1)},r.prototype.setCharAt=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+1)},r.prototype.substring=function(e,t){return this.value.substring(e,t)},r.prototype.setLengthToZero=function(){this.value=""},r.prototype.toString=function(){return this.value},r.prototype.insert=function(e,t){this.value=this.value.substr(0,e)+t+this.value.substr(e+t.length)},r}(),De=function(){function r(e,t,n,i){if(this.width=e,this.height=t,this.rowSize=n,this.bits=i,t==null&&(t=e),this.height=t,e<1||t<1)throw new P("Both dimensions must be greater than 0");n==null&&(n=Math.floor((e+31)/32)),this.rowSize=n,i==null&&(this.bits=new Int32Array(this.rowSize*this.height))}return r.parseFromBooleanArray=function(e){for(var t=e.length,n=e[0].length,i=new r(n,t),a=0;a<t;a++)for(var o=e[a],f=0;f<n;f++)o[f]&&i.set(f,a);return i},r.parseFromString=function(e,t,n){if(e===null)throw new P("stringRepresentation cannot be null");for(var i=new Array(e.length),a=0,o=0,f=-1,u=0,s=0;s<e.length;)if(e.charAt(s)===`
|
3
3
|
`||e.charAt(s)==="\r"){if(a>o){if(f===-1)f=a-o;else if(a-o!==f)throw new P("row lengths do not match");o=a,u++}s++}else if(e.substring(s,s+t.length)===t)s+=t.length,i[a]=!0,a++;else if(e.substring(s,s+n.length)===n)s+=n.length,i[a]=!1,a++;else throw new P("illegal character encountered: "+e.substring(s));if(a>o){if(f===-1)f=a-o;else if(a-o!==f)throw new P("row lengths do not match");u++}for(var c=new r(f,u),l=0;l<a;l++)i[l]&&c.set(Math.floor(l%f),Math.floor(l/f));return c},r.prototype.get=function(e,t){var n=t*this.rowSize+Math.floor(e/32);return(this.bits[n]>>>(e&31)&1)!==0},r.prototype.set=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]|=1<<(e&31)&4294967295},r.prototype.unset=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]&=~(1<<(e&31)&4294967295)},r.prototype.flip=function(e,t){var n=t*this.rowSize+Math.floor(e/32);this.bits[n]^=1<<(e&31)&4294967295},r.prototype.xor=function(e){if(this.width!==e.getWidth()||this.height!==e.getHeight()||this.rowSize!==e.getRowSize())throw new P("input matrix dimensions do not match");for(var t=new ie(Math.floor(this.width/32)+1),n=this.rowSize,i=this.bits,a=0,o=this.height;a<o;a++)for(var f=a*n,u=e.getRow(a,t).getBitArray(),s=0;s<n;s++)i[f+s]^=u[s]},r.prototype.clear=function(){for(var e=this.bits,t=e.length,n=0;n<t;n++)e[n]=0},r.prototype.setRegion=function(e,t,n,i){if(t<0||e<0)throw new P("Left and top must be nonnegative");if(i<1||n<1)throw new P("Height and width must be at least 1");var a=e+n,o=t+i;if(o>this.height||a>this.width)throw new P("The region must fit inside the matrix");for(var f=this.rowSize,u=this.bits,s=t;s<o;s++)for(var c=s*f,l=e;l<a;l++)u[c+Math.floor(l/32)]|=1<<(l&31)&4294967295},r.prototype.getRow=function(e,t){t==null||t.getSize()<this.width?t=new ie(this.width):t.clear();for(var n=this.rowSize,i=this.bits,a=e*n,o=0;o<n;o++)t.setBulk(o*32,i[a+o]);return t},r.prototype.setRow=function(e,t){$.arraycopy(t.getBitArray(),0,this.bits,e*this.rowSize,this.rowSize)},r.prototype.rotate180=function(){for(var e=this.getWidth(),t=this.getHeight(),n=new ie(e),i=new ie(e),a=0,o=Math.floor((t+1)/2);a<o;a++)n=this.getRow(a,n),i=this.getRow(t-1-a,i),n.reverse(),i.reverse(),this.setRow(a,i),this.setRow(t-1-a,n)},r.prototype.getEnclosingRectangle=function(){for(var e=this.width,t=this.height,n=this.rowSize,i=this.bits,a=e,o=t,f=-1,u=-1,s=0;s<t;s++)for(var c=0;c<n;c++){var l=i[s*n+c];if(l!==0){if(s<o&&(o=s),s>u&&(u=s),c*32<a){for(var d=0;!(l<<31-d&4294967295);)d++;c*32+d<a&&(a=c*32+d)}if(c*32+31>f){for(var d=31;!(l>>>d);)d--;c*32+d>f&&(f=c*32+d)}}}return f<a||u<o?null:Int32Array.from([a,o,f-a+1,u-o+1])},r.prototype.getTopLeftOnBit=function(){for(var e=this.rowSize,t=this.bits,n=0;n<t.length&&t[n]===0;)n++;if(n===t.length)return null;for(var i=n/e,a=n%e*32,o=t[n],f=0;!(o<<31-f&4294967295);)f++;return a+=f,Int32Array.from([a,i])},r.prototype.getBottomRightOnBit=function(){for(var e=this.rowSize,t=this.bits,n=t.length-1;n>=0&&t[n]===0;)n--;if(n<0)return null;for(var i=Math.floor(n/e),a=Math.floor(n%e)*32,o=t[n],f=31;!(o>>>f);)f--;return a+=f,Int32Array.from([a,i])},r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.getRowSize=function(){return this.rowSize},r.prototype.equals=function(e){if(!(e instanceof r))return!1;var t=e;return this.width===t.width&&this.height===t.height&&this.rowSize===t.rowSize&&ge.equals(this.bits,t.bits)},r.prototype.hashCode=function(){var e=this.width;return e=31*e+this.width,e=31*e+this.height,e=31*e+this.rowSize,e=31*e+ge.hashCode(this.bits),e},r.prototype.toString=function(e,t,n){return e===void 0&&(e="X "),t===void 0&&(t=" "),n===void 0&&(n=`
|
4
4
|
`),this.buildToString(e,t,n)},r.prototype.buildToString=function(e,t,n){for(var i=new z,a=0,o=this.height;a<o;a++){for(var f=0,u=this.width;f<u;f++)i.append(this.get(f,a)?e:t);i.append(n)}return i.toString()},r.prototype.clone=function(){return new r(this.width,this.height,this.rowSize,this.bits.slice())},r}(),Xn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),C=function(r){Xn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.getNotFoundInstance=function(){return new e},e.kind="NotFoundException",e}(le),Wn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),zn=function(r){Wn(e,r);function e(t){var n=r.call(this,t)||this;return n.luminances=e.EMPTY,n.buckets=new Int32Array(e.LUMINANCE_BUCKETS),n}return e.prototype.getBlackRow=function(t,n){var i=this.getLuminanceSource(),a=i.getWidth();n==null||n.getSize()<a?n=new ie(a):n.clear(),this.initArrays(a);for(var o=i.getRow(t,this.luminances),f=this.buckets,u=0;u<a;u++)f[(o[u]&255)>>e.LUMINANCE_SHIFT]++;var s=e.estimateBlackPoint(f);if(a<3)for(var u=0;u<a;u++)(o[u]&255)<s&&n.set(u);else for(var c=o[0]&255,l=o[1]&255,u=1;u<a-1;u++){var d=o[u+1]&255;(l*4-c-d)/2<s&&n.set(u),c=l,l=d}return n},e.prototype.getBlackMatrix=function(){var t=this.getLuminanceSource(),n=t.getWidth(),i=t.getHeight(),a=new De(n,i);this.initArrays(n);for(var o=this.buckets,f=1;f<5;f++)for(var u=Math.floor(i*f/5),s=t.getRow(u,this.luminances),c=Math.floor(n*4/5),l=Math.floor(n/5);l<c;l++){var d=s[l]&255;o[d>>e.LUMINANCE_SHIFT]++}for(var h=e.estimateBlackPoint(o),v=t.getMatrix(),f=0;f<i;f++)for(var p=f*n,l=0;l<n;l++){var d=v[p+l]&255;d<h&&a.set(l,f)}return a},e.prototype.createBinarizer=function(t){return new e(t)},e.prototype.initArrays=function(t){this.luminances.length<t&&(this.luminances=new Uint8ClampedArray(t));for(var n=this.buckets,i=0;i<e.LUMINANCE_BUCKETS;i++)n[i]=0},e.estimateBlackPoint=function(t){for(var n=t.length,i=0,a=0,o=0,f=0;f<n;f++)t[f]>o&&(a=f,o=t[f]),t[f]>i&&(i=t[f]);for(var u=0,s=0,f=0;f<n;f++){var c=f-a,l=t[f]*c*c;l>s&&(u=f,s=l)}if(a>u){var d=a;a=u,u=d}if(u-a<=n/16)throw new C;for(var h=u-1,v=-1,f=u-1;f>a;f--){var p=f-a,l=p*p*(u-f)*(i-t[f]);l>v&&(h=f,v=l)}return h<<e.LUMINANCE_SHIFT},e.LUMINANCE_BITS=5,e.LUMINANCE_SHIFT=8-e.LUMINANCE_BITS,e.LUMINANCE_BUCKETS=1<<e.LUMINANCE_BITS,e.EMPTY=Uint8ClampedArray.from([0]),e}(Fn),Yn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),jn=function(r){Yn(e,r);function e(t){var n=r.call(this,t)||this;return n.matrix=null,n}return e.prototype.getBlackMatrix=function(){if(this.matrix!==null)return this.matrix;var t=this.getLuminanceSource(),n=t.getWidth(),i=t.getHeight();if(n>=e.MINIMUM_DIMENSION&&i>=e.MINIMUM_DIMENSION){var a=t.getMatrix(),o=n>>e.BLOCK_SIZE_POWER;n&e.BLOCK_SIZE_MASK&&o++;var f=i>>e.BLOCK_SIZE_POWER;i&e.BLOCK_SIZE_MASK&&f++;var u=e.calculateBlackPoints(a,o,f,n,i),s=new De(n,i);e.calculateThresholdForBlock(a,o,f,n,i,u,s),this.matrix=s}else this.matrix=r.prototype.getBlackMatrix.call(this);return this.matrix},e.prototype.createBinarizer=function(t){return new e(t)},e.calculateThresholdForBlock=function(t,n,i,a,o,f,u){for(var s=o-e.BLOCK_SIZE,c=a-e.BLOCK_SIZE,l=0;l<i;l++){var d=l<<e.BLOCK_SIZE_POWER;d>s&&(d=s);for(var h=e.cap(l,2,i-3),v=0;v<n;v++){var p=v<<e.BLOCK_SIZE_POWER;p>c&&(p=c);for(var y=e.cap(v,2,n-3),_=0,g=-2;g<=2;g++){var w=f[h+g];_+=w[y-2]+w[y-1]+w[y]+w[y+1]+w[y+2]}var E=_/25;e.thresholdBlock(t,p,d,E,a,u)}}},e.cap=function(t,n,i){return t<n?n:t>i?i:t},e.thresholdBlock=function(t,n,i,a,o,f){for(var u=0,s=i*o+n;u<e.BLOCK_SIZE;u++,s+=o)for(var c=0;c<e.BLOCK_SIZE;c++)(t[s+c]&255)<=a&&f.set(n+c,i+u)},e.calculateBlackPoints=function(t,n,i,a,o){for(var f=o-e.BLOCK_SIZE,u=a-e.BLOCK_SIZE,s=new Array(i),c=0;c<i;c++){s[c]=new Int32Array(n);var l=c<<e.BLOCK_SIZE_POWER;l>f&&(l=f);for(var d=0;d<n;d++){var h=d<<e.BLOCK_SIZE_POWER;h>u&&(h=u);for(var v=0,p=255,y=0,_=0,g=l*a+h;_<e.BLOCK_SIZE;_++,g+=a){for(var w=0;w<e.BLOCK_SIZE;w++){var E=t[g+w]&255;v+=E,E<p&&(p=E),E>y&&(y=E)}if(y-p>e.MIN_DYNAMIC_RANGE)for(_++,g+=a;_<e.BLOCK_SIZE;_++,g+=a)for(var w=0;w<e.BLOCK_SIZE;w++)v+=t[g+w]&255}var m=v>>e.BLOCK_SIZE_POWER*2;if(y-p<=e.MIN_DYNAMIC_RANGE&&(m=p/2,c>0&&d>0)){var I=(s[c-1][d]+2*s[c][d-1]+s[c-1][d-1])/4;p<I&&(m=I)}s[c][d]=m}}return s},e.BLOCK_SIZE_POWER=3,e.BLOCK_SIZE=1<<e.BLOCK_SIZE_POWER,e.BLOCK_SIZE_MASK=e.BLOCK_SIZE-1,e.MINIMUM_DIMENSION=e.BLOCK_SIZE*5,e.MIN_DYNAMIC_RANGE=24,e}(zn),_t=function(){function r(e,t){this.width=e,this.height=t}return r.prototype.getWidth=function(){return this.width},r.prototype.getHeight=function(){return this.height},r.prototype.isCropSupported=function(){return!1},r.prototype.crop=function(e,t,n,i){throw new ht("This luminance source does not support cropping.")},r.prototype.isRotateSupported=function(){return!1},r.prototype.rotateCounterClockwise=function(){throw new ht("This luminance source does not support rotation by 90 degrees.")},r.prototype.rotateCounterClockwise45=function(){throw new ht("This luminance source does not support rotation by 45 degrees.")},r.prototype.toString=function(){for(var e=new Uint8ClampedArray(this.width),t=new z,n=0;n<this.height;n++){for(var i=this.getRow(n,e),a=0;a<this.width;a++){var o=i[a]&255,f=void 0;o<64?f="#":o<128?f="+":o<192?f=".":f=" ",t.append(f)}t.append(`
|
5
5
|
`)}return t.toString()},r}(),$n=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Wt=function(r){$n(e,r);function e(t){var n=r.call(this,t.getWidth(),t.getHeight())||this;return n.delegate=t,n}return e.prototype.getRow=function(t,n){for(var i=this.delegate.getRow(t,n),a=this.getWidth(),o=0;o<a;o++)i[o]=255-(i[o]&255);return i},e.prototype.getMatrix=function(){for(var t=this.delegate.getMatrix(),n=this.getWidth()*this.getHeight(),i=new Uint8ClampedArray(n),a=0;a<n;a++)i[a]=255-(t[a]&255);return i},e.prototype.isCropSupported=function(){return this.delegate.isCropSupported()},e.prototype.crop=function(t,n,i,a){return new e(this.delegate.crop(t,n,i,a))},e.prototype.isRotateSupported=function(){return this.delegate.isRotateSupported()},e.prototype.invert=function(){return this.delegate},e.prototype.rotateCounterClockwise=function(){return new e(this.delegate.rotateCounterClockwise())},e.prototype.rotateCounterClockwise45=function(){return new e(this.delegate.rotateCounterClockwise45())},e}(_t),Zn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Kn=function(r){Zn(e,r);function e(t){var n=r.call(this,t.width,t.height)||this;return n.canvas=t,n.tempCanvasElement=null,n.buffer=e.makeBufferFromCanvasImageData(t),n}return e.makeBufferFromCanvasImageData=function(t){var n=t.getContext("2d").getImageData(0,0,t.width,t.height);return e.toGrayscaleBuffer(n.data,t.width,t.height)},e.toGrayscaleBuffer=function(t,n,i){for(var a=new Uint8ClampedArray(n*i),o=0,f=0,u=t.length;o<u;o+=4,f++){var s=void 0,c=t[o+3];if(c===0)s=255;else{var l=t[o],d=t[o+1],h=t[o+2];s=306*l+601*d+117*h+512>>10}a[f]=s}return a},e.prototype.getRow=function(t,n){if(t<0||t>=this.getHeight())throw new P("Requested row is outside the image: "+t);var i=this.getWidth(),a=t*i;return n===null?n=this.buffer.slice(a,a+i):(n.length<i&&(n=new Uint8ClampedArray(i)),n.set(this.buffer.slice(a,a+i))),n},e.prototype.getMatrix=function(){return this.buffer},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(t,n,i,a){return r.prototype.crop.call(this,t,n,i,a),this},e.prototype.isRotateSupported=function(){return!0},e.prototype.rotateCounterClockwise=function(){return this.rotate(-90),this},e.prototype.rotateCounterClockwise45=function(){return this.rotate(-45),this},e.prototype.getTempCanvasElement=function(){if(this.tempCanvasElement===null){var t=this.canvas.ownerDocument.createElement("canvas");t.width=this.canvas.width,t.height=this.canvas.height,this.tempCanvasElement=t}return this.tempCanvasElement},e.prototype.rotate=function(t){var n=this.getTempCanvasElement(),i=n.getContext("2d"),a=t*e.DEGREE_TO_RADIANS,o=this.canvas.width,f=this.canvas.height,u=Math.ceil(Math.abs(Math.cos(a))*o+Math.abs(Math.sin(a))*f),s=Math.ceil(Math.abs(Math.sin(a))*o+Math.abs(Math.cos(a))*f);return n.width=u,n.height=s,i.translate(u/2,s/2),i.rotate(a),i.drawImage(this.canvas,o/-2,f/-2),this.buffer=e.makeBufferFromCanvasImageData(n),this},e.prototype.invert=function(){return new Wt(this)},e.DEGREE_TO_RADIANS=Math.PI/180,e}(_t),qn=function(){function r(e,t,n){this.deviceId=e,this.label=t,this.kind="videoinput",this.groupId=n||void 0}return r.prototype.toJSON=function(){return{kind:this.kind,groupId:this.groupId,deviceId:this.deviceId,label:this.label}},r}(),se=function(r,e,t,n){function i(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function f(c){try{s(n.next(c))}catch(l){o(l)}}function u(c){try{s(n.throw(c))}catch(l){o(l)}}function s(c){c.done?a(c.value):i(c.value).then(f,u)}s((n=n.apply(r,e||[])).next())})},ce=function(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(s){return function(c){return u([s,c])}}function u(s){if(n)throw new TypeError("Generator is already executing.");for(;t;)try{if(n=1,i&&(a=s[0]&2?i.return:s[0]?i.throw||((a=i.return)&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;switch(i=0,a&&(s=[s[0]&2,a.value]),s[0]){case 0:case 1:a=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,i=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){t.label=s[1];break}if(s[0]===6&&t.label<a[1]){t.label=a[1],a=s;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(s);break}a[2]&&t.ops.pop(),t.trys.pop();continue}s=e.call(r,t)}catch(c){s=[6,c],i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}},Qn=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ye=function(){function r(e,t,n){t===void 0&&(t=500),this.reader=e,this.timeBetweenScansMillis=t,this._hints=n,this._stopContinuousDecode=!1,this._stopAsyncDecode=!1,this._timeBetweenDecodingAttempts=0}return Object.defineProperty(r.prototype,"hasNavigator",{get:function(){return typeof navigator<"u"},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"isMediaDevicesSuported",{get:function(){return this.hasNavigator&&!!navigator.mediaDevices},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canEnumerateDevices",{get:function(){return!!(this.isMediaDevicesSuported&&navigator.mediaDevices.enumerateDevices)},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"timeBetweenDecodingAttempts",{get:function(){return this._timeBetweenDecodingAttempts},set:function(e){this._timeBetweenDecodingAttempts=e<0?0:e},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hints",{get:function(){return this._hints},set:function(e){this._hints=e||null},enumerable:!1,configurable:!0}),r.prototype.listVideoInputDevices=function(){return se(this,void 0,void 0,function(){var e,t,n,i,a,o,f,u,s,c,l,d;return ce(this,function(h){switch(h.label){case 0:if(!this.hasNavigator)throw new Error("Can't enumerate devices, navigator is not present.");if(!this.canEnumerateDevices)throw new Error("Can't enumerate devices, method not supported.");return[4,navigator.mediaDevices.enumerateDevices()];case 1:e=h.sent(),t=[];try{for(n=Qn(e),i=n.next();!i.done;i=n.next())a=i.value,o=a.kind==="video"?"videoinput":a.kind,o==="videoinput"&&(f=a.deviceId||a.id,u=a.label||"Video device "+(t.length+1),s=a.groupId,c={deviceId:f,label:u,kind:o,groupId:s},t.push(c))}catch(v){l={error:v}}finally{try{i&&!i.done&&(d=n.return)&&d.call(n)}finally{if(l)throw l.error}}return[2,t]}})})},r.prototype.getVideoInputDevices=function(){return se(this,void 0,void 0,function(){var e;return ce(this,function(t){switch(t.label){case 0:return[4,this.listVideoInputDevices()];case 1:return e=t.sent(),[2,e.map(function(n){return new qn(n.deviceId,n.label)})]}})})},r.prototype.findDeviceById=function(e){return se(this,void 0,void 0,function(){var t;return ce(this,function(n){switch(n.label){case 0:return[4,this.listVideoInputDevices()];case 1:return t=n.sent(),t?[2,t.find(function(i){return i.deviceId===e})]:[2,null]}})})},r.prototype.decodeFromInputVideoDevice=function(e,t){return se(this,void 0,void 0,function(){return ce(this,function(n){switch(n.label){case 0:return[4,this.decodeOnceFromVideoDevice(e,t)];case 1:return[2,n.sent()]}})})},r.prototype.decodeOnceFromVideoDevice=function(e,t){return se(this,void 0,void 0,function(){var n,i;return ce(this,function(a){switch(a.label){case 0:return this.reset(),e?n={deviceId:{exact:e}}:n={facingMode:"environment"},i={video:n},[4,this.decodeOnceFromConstraints(i,t)];case 1:return[2,a.sent()]}})})},r.prototype.decodeOnceFromConstraints=function(e,t){return se(this,void 0,void 0,function(){var n;return ce(this,function(i){switch(i.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return n=i.sent(),[4,this.decodeOnceFromStream(n,t)];case 2:return[2,i.sent()]}})})},r.prototype.decodeOnceFromStream=function(e,t){return se(this,void 0,void 0,function(){var n,i;return ce(this,function(a){switch(a.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return n=a.sent(),[4,this.decodeOnce(n)];case 2:return i=a.sent(),[2,i]}})})},r.prototype.decodeFromInputVideoDeviceContinuously=function(e,t,n){return se(this,void 0,void 0,function(){return ce(this,function(i){switch(i.label){case 0:return[4,this.decodeFromVideoDevice(e,t,n)];case 1:return[2,i.sent()]}})})},r.prototype.decodeFromVideoDevice=function(e,t,n){return se(this,void 0,void 0,function(){var i,a;return ce(this,function(o){switch(o.label){case 0:return e?i={deviceId:{exact:e}}:i={facingMode:"environment"},a={video:i},[4,this.decodeFromConstraints(a,t,n)];case 1:return[2,o.sent()]}})})},r.prototype.decodeFromConstraints=function(e,t,n){return se(this,void 0,void 0,function(){var i;return ce(this,function(a){switch(a.label){case 0:return[4,navigator.mediaDevices.getUserMedia(e)];case 1:return i=a.sent(),[4,this.decodeFromStream(i,t,n)];case 2:return[2,a.sent()]}})})},r.prototype.decodeFromStream=function(e,t,n){return se(this,void 0,void 0,function(){var i;return ce(this,function(a){switch(a.label){case 0:return this.reset(),[4,this.attachStreamToVideo(e,t)];case 1:return i=a.sent(),[4,this.decodeContinuously(i,n)];case 2:return[2,a.sent()]}})})},r.prototype.stopAsyncDecode=function(){this._stopAsyncDecode=!0},r.prototype.stopContinuousDecode=function(){this._stopContinuousDecode=!0},r.prototype.attachStreamToVideo=function(e,t){return se(this,void 0,void 0,function(){var n;return ce(this,function(i){switch(i.label){case 0:return n=this.prepareVideoElement(t),this.addVideoSource(n,e),this.videoElement=n,this.stream=e,[4,this.playVideoOnLoadAsync(n)];case 1:return i.sent(),[2,n]}})})},r.prototype.playVideoOnLoadAsync=function(e){var t=this;return new Promise(function(n,i){return t.playVideoOnLoad(e,function(){return n()})})},r.prototype.playVideoOnLoad=function(e,t){var n=this;this.videoEndedListener=function(){return n.stopStreams()},this.videoCanPlayListener=function(){return n.tryPlayVideo(e)},e.addEventListener("ended",this.videoEndedListener),e.addEventListener("canplay",this.videoCanPlayListener),e.addEventListener("playing",t),this.tryPlayVideo(e)},r.prototype.isVideoPlaying=function(e){return e.currentTime>0&&!e.paused&&!e.ended&&e.readyState>2},r.prototype.tryPlayVideo=function(e){return se(this,void 0,void 0,function(){return ce(this,function(t){switch(t.label){case 0:if(this.isVideoPlaying(e))return console.warn("Trying to play video that is already playing."),[2];t.label=1;case 1:return t.trys.push([1,3,,4]),[4,e.play()];case 2:return t.sent(),[3,4];case 3:return t.sent(),console.warn("It was not possible to play the video."),[3,4];case 4:return[2]}})})},r.prototype.getMediaElement=function(e,t){var n=document.getElementById(e);if(!n)throw new me("element with id '"+e+"' not found");if(n.nodeName.toLowerCase()!==t.toLowerCase())throw new me("element with id '"+e+"' must be an "+t+" element");return n},r.prototype.decodeFromImage=function(e,t){if(!e&&!t)throw new me("either imageElement with a src set or an url must be provided");return t&&!e?this.decodeFromImageUrl(t):this.decodeFromImageElement(e)},r.prototype.decodeFromVideo=function(e,t){if(!e&&!t)throw new me("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrl(t):this.decodeFromVideoElement(e)},r.prototype.decodeFromVideoContinuously=function(e,t,n){if(e===void 0&&t===void 0)throw new me("Either an element with a src set or an URL must be provided");return t&&!e?this.decodeFromVideoUrlContinuously(t,n):this.decodeFromVideoElementContinuously(e,n)},r.prototype.decodeFromImageElement=function(e){if(!e)throw new me("An image element must be provided.");this.reset();var t=this.prepareImageElement(e);this.imageElement=t;var n;return this.isImageLoaded(t)?n=this.decodeOnce(t,!1,!0):n=this._decodeOnLoadImage(t),n},r.prototype.decodeFromVideoElement=function(e){var t=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideo(t)},r.prototype.decodeFromVideoElementContinuously=function(e,t){var n=this._decodeFromVideoElementSetup(e);return this._decodeOnLoadVideoContinuously(n,t)},r.prototype._decodeFromVideoElementSetup=function(e){if(!e)throw new me("A video element must be provided.");this.reset();var t=this.prepareVideoElement(e);return this.videoElement=t,t},r.prototype.decodeFromImageUrl=function(e){if(!e)throw new me("An URL must be provided.");this.reset();var t=this.prepareImageElement();this.imageElement=t;var n=this._decodeOnLoadImage(t);return t.src=e,n},r.prototype.decodeFromVideoUrl=function(e){if(!e)throw new me("An URL must be provided.");this.reset();var t=this.prepareVideoElement(),n=this.decodeFromVideoElement(t);return t.src=e,n},r.prototype.decodeFromVideoUrlContinuously=function(e,t){if(!e)throw new me("An URL must be provided.");this.reset();var n=this.prepareVideoElement(),i=this.decodeFromVideoElementContinuously(n,t);return n.src=e,i},r.prototype._decodeOnLoadImage=function(e){var t=this;return new Promise(function(n,i){t.imageLoadedListener=function(){return t.decodeOnce(e,!1,!0).then(n,i)},e.addEventListener("load",t.imageLoadedListener)})},r.prototype._decodeOnLoadVideo=function(e){return se(this,void 0,void 0,function(){return ce(this,function(t){switch(t.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return t.sent(),[4,this.decodeOnce(e)];case 2:return[2,t.sent()]}})})},r.prototype._decodeOnLoadVideoContinuously=function(e,t){return se(this,void 0,void 0,function(){return ce(this,function(n){switch(n.label){case 0:return[4,this.playVideoOnLoadAsync(e)];case 1:return n.sent(),this.decodeContinuously(e,t),[2]}})})},r.prototype.isImageLoaded=function(e){return!(!e.complete||e.naturalWidth===0)},r.prototype.prepareImageElement=function(e){var t;return typeof e>"u"&&(t=document.createElement("img"),t.width=200,t.height=200),typeof e=="string"&&(t=this.getMediaElement(e,"img")),e instanceof HTMLImageElement&&(t=e),t},r.prototype.prepareVideoElement=function(e){var t;return!e&&typeof document<"u"&&(t=document.createElement("video"),t.width=200,t.height=200),typeof e=="string"&&(t=this.getMediaElement(e,"video")),e instanceof HTMLVideoElement&&(t=e),t.setAttribute("autoplay","true"),t.setAttribute("muted","true"),t.setAttribute("playsinline","true"),t},r.prototype.decodeOnce=function(e,t,n){var i=this;t===void 0&&(t=!0),n===void 0&&(n=!0),this._stopAsyncDecode=!1;var a=function(o,f){if(i._stopAsyncDecode){f(new C("Video stream has ended before any code could be detected.")),i._stopAsyncDecode=void 0;return}try{var u=i.decode(e);o(u)}catch(d){var s=t&&d instanceof C,c=d instanceof oe||d instanceof T,l=c&&n;if(s||l)return setTimeout(a,i._timeBetweenDecodingAttempts,o,f);f(d)}};return new Promise(function(o,f){return a(o,f)})},r.prototype.decodeContinuously=function(e,t){var n=this;this._stopContinuousDecode=!1;var i=function(){if(n._stopContinuousDecode){n._stopContinuousDecode=void 0;return}try{var a=n.decode(e);t(a,null),setTimeout(i,n.timeBetweenScansMillis)}catch(u){t(null,u);var o=u instanceof oe||u instanceof T,f=u instanceof C;(o||f)&&setTimeout(i,n._timeBetweenDecodingAttempts)}};i()},r.prototype.decode=function(e){var t=this.createBinaryBitmap(e);return this.decodeBitmap(t)},r.prototype._isHTMLVideoElement=function(e){var t=e;return t.videoWidth!==0},r.prototype.createBinaryBitmap=function(e){this.getCaptureCanvasContext(e),this._isHTMLVideoElement(e)?this.drawFrameOnCanvas(e):this.drawImageOnCanvas(e);var t=this.getCaptureCanvas(e),n=new Kn(t),i=new jn(n);return new Mn(i)},r.prototype.getCaptureCanvasContext=function(e){if(!this.captureCanvasContext){var t=this.getCaptureCanvas(e),n=void 0;try{n=t.getContext("2d",{willReadFrequently:!0})}catch{n=t.getContext("2d")}this.captureCanvasContext=n}return this.captureCanvasContext},r.prototype.getCaptureCanvas=function(e){if(!this.captureCanvas){var t=this.createCaptureCanvas(e);this.captureCanvas=t}return this.captureCanvas},r.prototype.drawFrameOnCanvas=function(e,t,n){t===void 0&&(t={sx:0,sy:0,sWidth:e.videoWidth,sHeight:e.videoHeight,dx:0,dy:0,dWidth:e.videoWidth,dHeight:e.videoHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},r.prototype.drawImageOnCanvas=function(e,t,n){t===void 0&&(t={sx:0,sy:0,sWidth:e.naturalWidth,sHeight:e.naturalHeight,dx:0,dy:0,dWidth:e.naturalWidth,dHeight:e.naturalHeight}),n===void 0&&(n=this.captureCanvasContext),n.drawImage(e,t.sx,t.sy,t.sWidth,t.sHeight,t.dx,t.dy,t.dWidth,t.dHeight)},r.prototype.decodeBitmap=function(e){return this.reader.decode(e,this._hints)},r.prototype.createCaptureCanvas=function(e){if(typeof document>"u")return this._destroyCaptureCanvas(),null;var t=document.createElement("canvas"),n,i;return typeof e<"u"&&(e instanceof HTMLVideoElement?(n=e.videoWidth,i=e.videoHeight):e instanceof HTMLImageElement&&(n=e.naturalWidth||e.width,i=e.naturalHeight||e.height)),t.style.width=n+"px",t.style.height=i+"px",t.width=n,t.height=i,t},r.prototype.stopStreams=function(){this.stream&&(this.stream.getVideoTracks().forEach(function(e){return e.stop()}),this.stream=void 0),this._stopAsyncDecode===!1&&this.stopAsyncDecode(),this._stopContinuousDecode===!1&&this.stopContinuousDecode()},r.prototype.reset=function(){this.stopStreams(),this._destroyVideoElement(),this._destroyImageElement(),this._destroyCaptureCanvas()},r.prototype._destroyVideoElement=function(){this.videoElement&&(typeof this.videoEndedListener<"u"&&this.videoElement.removeEventListener("ended",this.videoEndedListener),typeof this.videoPlayingEventListener<"u"&&this.videoElement.removeEventListener("playing",this.videoPlayingEventListener),typeof this.videoCanPlayListener<"u"&&this.videoElement.removeEventListener("loadedmetadata",this.videoCanPlayListener),this.cleanVideoSource(this.videoElement),this.videoElement=void 0)},r.prototype._destroyImageElement=function(){this.imageElement&&(this.imageLoadedListener!==void 0&&this.imageElement.removeEventListener("load",this.imageLoadedListener),this.imageElement.src=void 0,this.imageElement.removeAttribute("src"),this.imageElement=void 0)},r.prototype._destroyCaptureCanvas=function(){this.captureCanvasContext=void 0,this.captureCanvas=void 0},r.prototype.addVideoSource=function(e,t){try{e.srcObject=t}catch{e.src=URL.createObjectURL(t)}},r.prototype.cleanVideoSource=function(e){try{e.srcObject=null}catch{e.src=""}this.videoElement.removeAttribute("src")},r}(),ye=function(){function r(e,t,n,i,a,o){n===void 0&&(n=t==null?0:8*t.length),o===void 0&&(o=$.currentTimeMillis()),this.text=e,this.rawBytes=t,this.numBits=n,this.resultPoints=i,this.format=a,this.timestamp=o,this.text=e,this.rawBytes=t,n==null?this.numBits=t==null?0:8*t.length:this.numBits=n,this.resultPoints=i,this.format=a,this.resultMetadata=null,o==null?this.timestamp=$.currentTimeMillis():this.timestamp=o}return r.prototype.getText=function(){return this.text},r.prototype.getRawBytes=function(){return this.rawBytes},r.prototype.getNumBits=function(){return this.numBits},r.prototype.getResultPoints=function(){return this.resultPoints},r.prototype.getBarcodeFormat=function(){return this.format},r.prototype.getResultMetadata=function(){return this.resultMetadata},r.prototype.putMetadata=function(e,t){this.resultMetadata===null&&(this.resultMetadata=new Map),this.resultMetadata.set(e,t)},r.prototype.putAllMetadata=function(e){e!==null&&(this.resultMetadata===null?this.resultMetadata=e:this.resultMetadata=new Map(e))},r.prototype.addResultPoints=function(e){var t=this.resultPoints;if(t===null)this.resultPoints=e;else if(e!==null&&e.length>0){var n=new Array(t.length+e.length);$.arraycopy(t,0,n,0,t.length),$.arraycopy(e,0,n,t.length,e.length),this.resultPoints=n}},r.prototype.getTimestamp=function(){return this.timestamp},r.prototype.toString=function(){return this.text},r}(),Nt;(function(r){r[r.AZTEC=0]="AZTEC",r[r.CODABAR=1]="CODABAR",r[r.CODE_39=2]="CODE_39",r[r.CODE_93=3]="CODE_93",r[r.CODE_128=4]="CODE_128",r[r.DATA_MATRIX=5]="DATA_MATRIX",r[r.EAN_8=6]="EAN_8",r[r.EAN_13=7]="EAN_13",r[r.ITF=8]="ITF",r[r.MAXICODE=9]="MAXICODE",r[r.PDF_417=10]="PDF_417",r[r.QR_CODE=11]="QR_CODE",r[r.RSS_14=12]="RSS_14",r[r.RSS_EXPANDED=13]="RSS_EXPANDED",r[r.UPC_A=14]="UPC_A",r[r.UPC_E=15]="UPC_E",r[r.UPC_EAN_EXTENSION=16]="UPC_EAN_EXTENSION"})(Nt||(Nt={}));const M=Nt;var Rt;(function(r){r[r.OTHER=0]="OTHER",r[r.ORIENTATION=1]="ORIENTATION",r[r.BYTE_SEGMENTS=2]="BYTE_SEGMENTS",r[r.ERROR_CORRECTION_LEVEL=3]="ERROR_CORRECTION_LEVEL",r[r.ISSUE_NUMBER=4]="ISSUE_NUMBER",r[r.SUGGESTED_PRICE=5]="SUGGESTED_PRICE",r[r.POSSIBLE_COUNTRY=6]="POSSIBLE_COUNTRY",r[r.UPC_EAN_EXTENSION=7]="UPC_EAN_EXTENSION",r[r.PDF417_EXTRA_METADATA=8]="PDF417_EXTRA_METADATA",r[r.STRUCTURED_APPEND_SEQUENCE=9]="STRUCTURED_APPEND_SEQUENCE",r[r.STRUCTURED_APPEND_PARITY=10]="STRUCTURED_APPEND_PARITY"})(Rt||(Rt={}));const fe=Rt;var At=function(){function r(e,t,n,i,a,o){a===void 0&&(a=-1),o===void 0&&(o=-1),this.rawBytes=e,this.text=t,this.byteSegments=n,this.ecLevel=i,this.structuredAppendSequenceNumber=a,this.structuredAppendParity=o,this.numBits=e==null?0:8*e.length}return r.prototype.getRawBytes=function(){return this.rawBytes},r.prototype.getNumBits=function(){return this.numBits},r.prototype.setNumBits=function(e){this.numBits=e},r.prototype.getText=function(){return this.text},r.prototype.getByteSegments=function(){return this.byteSegments},r.prototype.getECLevel=function(){return this.ecLevel},r.prototype.getErrorsCorrected=function(){return this.errorsCorrected},r.prototype.setErrorsCorrected=function(e){this.errorsCorrected=e},r.prototype.getErasures=function(){return this.erasures},r.prototype.setErasures=function(e){this.erasures=e},r.prototype.getOther=function(){return this.other},r.prototype.setOther=function(e){this.other=e},r.prototype.hasStructuredAppend=function(){return this.structuredAppendParity>=0&&this.structuredAppendSequenceNumber>=0},r.prototype.getStructuredAppendParity=function(){return this.structuredAppendParity},r.prototype.getStructuredAppendSequenceNumber=function(){return this.structuredAppendSequenceNumber},r}(),et=function(){function r(){}return r.prototype.exp=function(e){return this.expTable[e]},r.prototype.log=function(e){if(e===0)throw new P;return this.logTable[e]},r.addOrSubtract=function(e,t){return e^t},r}(),Be=function(){function r(e,t){if(t.length===0)throw new P;this.field=e;var n=t.length;if(n>1&&t[0]===0){for(var i=1;i<n&&t[i]===0;)i++;i===n?this.coefficients=Int32Array.from([0]):(this.coefficients=new Int32Array(n-i),$.arraycopy(t,i,this.coefficients,0,this.coefficients.length))}else this.coefficients=t}return r.prototype.getCoefficients=function(){return this.coefficients},r.prototype.getDegree=function(){return this.coefficients.length-1},r.prototype.isZero=function(){return this.coefficients[0]===0},r.prototype.getCoefficient=function(e){return this.coefficients[this.coefficients.length-1-e]},r.prototype.evaluateAt=function(e){if(e===0)return this.getCoefficient(0);var t=this.coefficients,n;if(e===1){n=0;for(var i=0,a=t.length;i!==a;i++){var o=t[i];n=et.addOrSubtract(n,o)}return n}n=t[0];for(var f=t.length,u=this.field,i=1;i<f;i++)n=et.addOrSubtract(u.multiply(e,n),t[i]);return n},r.prototype.addOrSubtract=function(e){if(!this.field.equals(e.field))throw new P("GenericGFPolys do not have same GenericGF field");if(this.isZero())return e;if(e.isZero())return this;var t=this.coefficients,n=e.coefficients;if(t.length>n.length){var i=t;t=n,n=i}var a=new Int32Array(n.length),o=n.length-t.length;$.arraycopy(n,0,a,0,o);for(var f=o;f<n.length;f++)a[f]=et.addOrSubtract(t[f-o],n[f]);return new r(this.field,a)},r.prototype.multiply=function(e){if(!this.field.equals(e.field))throw new P("GenericGFPolys do not have same GenericGF field");if(this.isZero()||e.isZero())return this.field.getZero();for(var t=this.coefficients,n=t.length,i=e.coefficients,a=i.length,o=new Int32Array(n+a-1),f=this.field,u=0;u<n;u++)for(var s=t[u],c=0;c<a;c++)o[u+c]=et.addOrSubtract(o[u+c],f.multiply(s,i[c]));return new r(f,o)},r.prototype.multiplyScalar=function(e){if(e===0)return this.field.getZero();if(e===1)return this;for(var t=this.coefficients.length,n=this.field,i=new Int32Array(t),a=this.coefficients,o=0;o<t;o++)i[o]=n.multiply(a[o],e);return new r(n,i)},r.prototype.multiplyByMonomial=function(e,t){if(e<0)throw new P;if(t===0)return this.field.getZero();for(var n=this.coefficients,i=n.length,a=new Int32Array(i+e),o=this.field,f=0;f<i;f++)a[f]=o.multiply(n[f],t);return new r(o,a)},r.prototype.divide=function(e){if(!this.field.equals(e.field))throw new P("GenericGFPolys do not have same GenericGF field");if(e.isZero())throw new P("Divide by 0");for(var t=this.field,n=t.getZero(),i=this,a=e.getCoefficient(e.getDegree()),o=t.inverse(a);i.getDegree()>=e.getDegree()&&!i.isZero();){var f=i.getDegree()-e.getDegree(),u=t.multiply(i.getCoefficient(i.getDegree()),o),s=e.multiplyByMonomial(f,u),c=t.buildMonomial(f,u);n=n.addOrSubtract(c),i=i.addOrSubtract(s)}return[n,i]},r.prototype.toString=function(){for(var e="",t=this.getDegree();t>=0;t--){var n=this.getCoefficient(t);if(n!==0){if(n<0?(e+=" - ",n=-n):e.length>0&&(e+=" + "),t===0||n!==1){var i=this.field.log(n);i===0?e+="1":i===1?e+="a":(e+="a^",e+=i)}t!==0&&(t===1?e+="x":(e+="x^",e+=t))}}return e},r}(),Jn=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Lr=function(r){Jn(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ArithmeticException",e}(le),ei=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),pe=function(r){ei(e,r);function e(t,n,i){var a=r.call(this)||this;a.primitive=t,a.size=n,a.generatorBase=i;for(var o=new Int32Array(n),f=1,u=0;u<n;u++)o[u]=f,f*=2,f>=n&&(f^=t,f&=n-1);a.expTable=o;for(var s=new Int32Array(n),u=0;u<n-1;u++)s[o[u]]=u;return a.logTable=s,a.zero=new Be(a,Int32Array.from([0])),a.one=new Be(a,Int32Array.from([1])),a}return e.prototype.getZero=function(){return this.zero},e.prototype.getOne=function(){return this.one},e.prototype.buildMonomial=function(t,n){if(t<0)throw new P;if(n===0)return this.zero;var i=new Int32Array(t+1);return i[0]=n,new Be(this,i)},e.prototype.inverse=function(t){if(t===0)throw new Lr;return this.expTable[this.size-this.logTable[t]-1]},e.prototype.multiply=function(t,n){return t===0||n===0?0:this.expTable[(this.logTable[t]+this.logTable[n])%(this.size-1)]},e.prototype.getSize=function(){return this.size},e.prototype.getGeneratorBase=function(){return this.generatorBase},e.prototype.toString=function(){return"GF(0x"+L.toHexString(this.primitive)+","+this.size+")"},e.prototype.equals=function(t){return t===this},e.AZTEC_DATA_12=new e(4201,4096,1),e.AZTEC_DATA_10=new e(1033,1024,1),e.AZTEC_DATA_6=new e(67,64,1),e.AZTEC_PARAM=new e(19,16,1),e.QR_CODE_FIELD_256=new e(285,256,0),e.DATA_MATRIX_FIELD_256=new e(301,256,1),e.AZTEC_DATA_8=e.DATA_MATRIX_FIELD_256,e.MAXICODE_FIELD_64=e.AZTEC_DATA_6,e}(et),ti=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),ft=function(r){ti(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="ReedSolomonException",e}(le),ri=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),it=function(r){ri(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="IllegalStateException",e}(le),wt=function(){function r(e){this.field=e}return r.prototype.decode=function(e,t){for(var n=this.field,i=new Be(n,e),a=new Int32Array(t),o=!0,f=0;f<t;f++){var u=i.evaluateAt(n.exp(f+n.getGeneratorBase()));a[a.length-1-f]=u,u!==0&&(o=!1)}if(!o)for(var s=new Be(n,a),c=this.runEuclideanAlgorithm(n.buildMonomial(t,1),s,t),l=c[0],d=c[1],h=this.findErrorLocations(l),v=this.findErrorMagnitudes(d,h),f=0;f<h.length;f++){var p=e.length-1-n.log(h[f]);if(p<0)throw new ft("Bad error location");e[p]=pe.addOrSubtract(e[p],v[f])}},r.prototype.runEuclideanAlgorithm=function(e,t,n){if(e.getDegree()<t.getDegree()){var i=e;e=t,t=i}for(var a=this.field,o=e,f=t,u=a.getZero(),s=a.getOne();f.getDegree()>=(n/2|0);){var c=o,l=u;if(o=f,u=s,o.isZero())throw new ft("r_{i-1} was zero");f=c;for(var d=a.getZero(),h=o.getCoefficient(o.getDegree()),v=a.inverse(h);f.getDegree()>=o.getDegree()&&!f.isZero();){var p=f.getDegree()-o.getDegree(),y=a.multiply(f.getCoefficient(f.getDegree()),v);d=d.addOrSubtract(a.buildMonomial(p,y)),f=f.addOrSubtract(o.multiplyByMonomial(p,y))}if(s=d.multiply(u).addOrSubtract(l),f.getDegree()>=o.getDegree())throw new it("Division algorithm failed to reduce polynomial?")}var _=s.getCoefficient(0);if(_===0)throw new ft("sigmaTilde(0) was zero");var g=a.inverse(_),w=s.multiplyScalar(g),E=f.multiplyScalar(g);return[w,E]},r.prototype.findErrorLocations=function(e){var t=e.getDegree();if(t===1)return Int32Array.from([e.getCoefficient(1)]);for(var n=new Int32Array(t),i=0,a=this.field,o=1;o<a.getSize()&&i<t;o++)e.evaluateAt(o)===0&&(n[i]=a.inverse(o),i++);if(i!==t)throw new ft("Error locator degree does not match number of roots");return n},r.prototype.findErrorMagnitudes=function(e,t){for(var n=t.length,i=new Int32Array(n),a=this.field,o=0;o<n;o++){for(var f=a.inverse(t[o]),u=1,s=0;s<n;s++)if(o!==s){var c=a.multiply(t[s],f),l=c&1?c&-2:c|1;u=a.multiply(u,l)}i[o]=a.multiply(e.evaluateAt(f),a.inverse(u)),a.getGeneratorBase()!==0&&(i[o]=a.multiply(i[o],f))}return i},r}(),ae;(function(r){r[r.UPPER=0]="UPPER",r[r.LOWER=1]="LOWER",r[r.MIXED=2]="MIXED",r[r.DIGIT=3]="DIGIT",r[r.PUNCT=4]="PUNCT",r[r.BINARY=5]="BINARY"})(ae||(ae={}));var fr=function(){function r(){}return r.prototype.decode=function(e){this.ddata=e;var t=e.getBits(),n=this.extractBits(t),i=this.correctBits(n),a=r.convertBoolArrayToByteArray(i),o=r.getEncodedData(i),f=new At(a,o,null,null);return f.setNumBits(i.length),f},r.highLevelDecode=function(e){return this.getEncodedData(e)},r.getEncodedData=function(e){for(var t=e.length,n=ae.UPPER,i=ae.UPPER,a="",o=0;o<t;)if(i===ae.BINARY){if(t-o<5)break;var f=r.readCode(e,o,5);if(o+=5,f===0){if(t-o<11)break;f=r.readCode(e,o,11)+31,o+=11}for(var u=0;u<f;u++){if(t-o<8){o=t;break}var s=r.readCode(e,o,8);a+=j.castAsNonUtf8Char(s),o+=8}i=n}else{var c=i===ae.DIGIT?4:5;if(t-o<c)break;var s=r.readCode(e,o,c);o+=c;var l=r.getCharacter(i,s);l.startsWith("CTRL_")?(n=i,i=r.getTable(l.charAt(5)),l.charAt(6)==="L"&&(n=i)):(a+=l,i=n)}return a},r.getTable=function(e){switch(e){case"L":return ae.LOWER;case"P":return ae.PUNCT;case"M":return ae.MIXED;case"D":return ae.DIGIT;case"B":return ae.BINARY;case"U":default:return ae.UPPER}},r.getCharacter=function(e,t){switch(e){case ae.UPPER:return r.UPPER_TABLE[t];case ae.LOWER:return r.LOWER_TABLE[t];case ae.MIXED:return r.MIXED_TABLE[t];case ae.PUNCT:return r.PUNCT_TABLE[t];case ae.DIGIT:return r.DIGIT_TABLE[t];default:throw new it("Bad table")}},r.prototype.correctBits=function(e){var t,n;this.ddata.getNbLayers()<=2?(n=6,t=pe.AZTEC_DATA_6):this.ddata.getNbLayers()<=8?(n=8,t=pe.AZTEC_DATA_8):this.ddata.getNbLayers()<=22?(n=10,t=pe.AZTEC_DATA_10):(n=12,t=pe.AZTEC_DATA_12);var i=this.ddata.getNbDatablocks(),a=e.length/n;if(a<i)throw new T;for(var o=e.length%n,f=new Int32Array(a),u=0;u<a;u++,o+=n)f[u]=r.readCode(e,o,n);try{var s=new wt(t);s.decode(f,a-i)}catch(y){throw new T(y)}for(var c=(1<<n)-1,l=0,u=0;u<i;u++){var d=f[u];if(d===0||d===c)throw new T;(d===1||d===c-1)&&l++}for(var h=new Array(i*n-l),v=0,u=0;u<i;u++){var d=f[u];if(d===1||d===c-1)h.fill(d>1,v,v+n-1),v+=n-1;else for(var p=n-1;p>=0;--p)h[v++]=(d&1<<p)!==0}return h},r.prototype.extractBits=function(e){var t=this.ddata.isCompact(),n=this.ddata.getNbLayers(),i=(t?11:14)+n*4,a=new Int32Array(i),o=new Array(this.totalBitsInLayer(n,t));if(t)for(var f=0;f<a.length;f++)a[f]=f;else for(var u=i+1+2*L.truncDivision(L.truncDivision(i,2)-1,15),s=i/2,c=L.truncDivision(u,2),f=0;f<s;f++){var l=f+L.truncDivision(f,15);a[s-f-1]=c-l-1,a[s+f]=c+l+1}for(var f=0,d=0;f<n;f++){for(var h=(n-f)*4+(t?9:12),v=f*2,p=i-1-v,y=0;y<h;y++)for(var _=y*2,g=0;g<2;g++)o[d+_+g]=e.get(a[v+g],a[v+y]),o[d+2*h+_+g]=e.get(a[v+y],a[p-g]),o[d+4*h+_+g]=e.get(a[p-g],a[p-y]),o[d+6*h+_+g]=e.get(a[p-y],a[v+g]);d+=h*8}return o},r.readCode=function(e,t,n){for(var i=0,a=t;a<t+n;a++)i<<=1,e[a]&&(i|=1);return i},r.readByte=function(e,t){var n=e.length-t;return n>=8?r.readCode(e,t,8):r.readCode(e,t,n)<<8-n},r.convertBoolArrayToByteArray=function(e){for(var t=new Uint8Array((e.length+7)/8),n=0;n<t.length;n++)t[n]=r.readByte(e,8*n);return t},r.prototype.totalBitsInLayer=function(e,t){return((t?88:112)+16*e)*e},r.UPPER_TABLE=["CTRL_PS"," ","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","CTRL_LL","CTRL_ML","CTRL_DL","CTRL_BS"],r.LOWER_TABLE=["CTRL_PS"," ","a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z","CTRL_US","CTRL_ML","CTRL_DL","CTRL_BS"],r.MIXED_TABLE=["CTRL_PS"," ","\\1","\\2","\\3","\\4","\\5","\\6","\\7","\b"," ",`
|
@@ -18,4 +18,4 @@ import{aQ as Rr,k as q,a8 as xe,F as Pr,G as Mr,a9 as J,bx as Br,by as Fr,e as a
|
|
18
18
|
`),e.append(`>>
|
19
19
|
`),e.toString()},r.prototype.setMode=function(e){this.mode=e},r.prototype.setECLevel=function(e){this.ecLevel=e},r.prototype.setVersion=function(e){this.version=e},r.prototype.setMaskPattern=function(e){this.maskPattern=e},r.prototype.setMatrix=function(e){this.matrix=e},r.isValidMaskPattern=function(e){return e>=0&&e<r.NUM_MASK_PATTERNS},r.NUM_MASK_PATTERNS=8,r}(),po=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Z=function(r){po(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.kind="WriterException",e}(le),br=function(){function r(){}return r.clearMatrix=function(e){e.clear(255)},r.buildMatrix=function(e,t,n,i,a){r.clearMatrix(a),r.embedBasicPatterns(n,a),r.embedTypeInfo(t,i,a),r.maybeEmbedVersionInfo(n,a),r.embedDataBits(e,i,a)},r.embedBasicPatterns=function(e,t){r.embedPositionDetectionPatternsAndSeparators(t),r.embedDarkDotAtLeftBottomCorner(t),r.maybeEmbedPositionAdjustmentPatterns(e,t),r.embedTimingPatterns(t)},r.embedTypeInfo=function(e,t,n){var i=new ie;r.makeTypeInfoBits(e,t,i);for(var a=0,o=i.getSize();a<o;++a){var f=i.get(i.getSize()-1-a),u=r.TYPE_INFO_COORDINATES[a],s=u[0],c=u[1];if(n.setBoolean(s,c,f),a<8){var l=n.getWidth()-a-1,d=8;n.setBoolean(l,d,f)}else{var l=8,d=n.getHeight()-7+(a-8);n.setBoolean(l,d,f)}}},r.maybeEmbedVersionInfo=function(e,t){if(!(e.getVersionNumber()<7)){var n=new ie;r.makeVersionInfoBits(e,n);for(var i=6*3-1,a=0;a<6;++a)for(var o=0;o<3;++o){var f=n.get(i);i--,t.setBoolean(a,t.getHeight()-11+o,f),t.setBoolean(t.getHeight()-11+o,a,f)}}},r.embedDataBits=function(e,t,n){for(var i=0,a=-1,o=n.getWidth()-1,f=n.getHeight()-1;o>0;){for(o===6&&(o-=1);f>=0&&f<n.getHeight();){for(var u=0;u<2;++u){var s=o-u;if(r.isEmpty(n.get(s,f))){var c=void 0;i<e.getSize()?(c=e.get(i),++i):c=!1,t!==255&&nt.getDataMaskBit(t,s,f)&&(c=!c),n.setBoolean(s,f,c)}}f+=a}a=-a,f+=a,o-=2}if(i!==e.getSize())throw new Z("Not all bits consumed: "+i+"/"+e.getSize())},r.findMSBSet=function(e){return 32-L.numberOfLeadingZeros(e)},r.calculateBCHCode=function(e,t){if(t===0)throw new P("0 polynomial");var n=r.findMSBSet(t);for(e<<=n-1;r.findMSBSet(e)>=n;)e^=t<<r.findMSBSet(e)-n;return e},r.makeTypeInfoBits=function(e,t,n){if(!Gt.isValidMaskPattern(t))throw new Z("Invalid mask pattern");var i=e.getBits()<<3|t;n.appendBits(i,5);var a=r.calculateBCHCode(i,r.TYPE_INFO_POLY);n.appendBits(a,10);var o=new ie;if(o.appendBits(r.TYPE_INFO_MASK_PATTERN,15),n.xor(o),n.getSize()!==15)throw new Z("should not happen but we got: "+n.getSize())},r.makeVersionInfoBits=function(e,t){t.appendBits(e.getVersionNumber(),6);var n=r.calculateBCHCode(e.getVersionNumber(),r.VERSION_INFO_POLY);if(t.appendBits(n,12),t.getSize()!==18)throw new Z("should not happen but we got: "+t.getSize())},r.isEmpty=function(e){return e===255},r.embedTimingPatterns=function(e){for(var t=8;t<e.getWidth()-8;++t){var n=(t+1)%2;r.isEmpty(e.get(t,6))&&e.setNumber(t,6,n),r.isEmpty(e.get(6,t))&&e.setNumber(6,t,n)}},r.embedDarkDotAtLeftBottomCorner=function(e){if(e.get(8,e.getHeight()-8)===0)throw new Z;e.setNumber(8,e.getHeight()-8,1)},r.embedHorizontalSeparationPattern=function(e,t,n){for(var i=0;i<8;++i){if(!r.isEmpty(n.get(e+i,t)))throw new Z;n.setNumber(e+i,t,0)}},r.embedVerticalSeparationPattern=function(e,t,n){for(var i=0;i<7;++i){if(!r.isEmpty(n.get(e,t+i)))throw new Z;n.setNumber(e,t+i,0)}},r.embedPositionAdjustmentPattern=function(e,t,n){for(var i=0;i<5;++i)for(var a=r.POSITION_ADJUSTMENT_PATTERN[i],o=0;o<5;++o)n.setNumber(e+o,t+i,a[o])},r.embedPositionDetectionPattern=function(e,t,n){for(var i=0;i<7;++i)for(var a=r.POSITION_DETECTION_PATTERN[i],o=0;o<7;++o)n.setNumber(e+o,t+i,a[o])},r.embedPositionDetectionPatternsAndSeparators=function(e){var t=r.POSITION_DETECTION_PATTERN[0].length;r.embedPositionDetectionPattern(0,0,e),r.embedPositionDetectionPattern(e.getWidth()-t,0,e),r.embedPositionDetectionPattern(0,e.getWidth()-t,e);var n=8;r.embedHorizontalSeparationPattern(0,n-1,e),r.embedHorizontalSeparationPattern(e.getWidth()-n,n-1,e),r.embedHorizontalSeparationPattern(0,e.getWidth()-n,e);var i=7;r.embedVerticalSeparationPattern(i,0,e),r.embedVerticalSeparationPattern(e.getHeight()-i-1,0,e),r.embedVerticalSeparationPattern(i,e.getHeight()-i,e)},r.maybeEmbedPositionAdjustmentPatterns=function(e,t){if(!(e.getVersionNumber()<2))for(var n=e.getVersionNumber()-1,i=r.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE[n],a=0,o=i.length;a!==o;a++){var f=i[a];if(f>=0)for(var u=0;u!==o;u++){var s=i[u];s>=0&&r.isEmpty(t.get(s,f))&&r.embedPositionAdjustmentPattern(s-2,f-2,t)}}},r.POSITION_DETECTION_PATTERN=Array.from([Int32Array.from([1,1,1,1,1,1,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,1,1,1,0,1]),Int32Array.from([1,0,0,0,0,0,1]),Int32Array.from([1,1,1,1,1,1,1])]),r.POSITION_ADJUSTMENT_PATTERN=Array.from([Int32Array.from([1,1,1,1,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,0,1,0,1]),Int32Array.from([1,0,0,0,1]),Int32Array.from([1,1,1,1,1])]),r.POSITION_ADJUSTMENT_PATTERN_COORDINATE_TABLE=Array.from([Int32Array.from([-1,-1,-1,-1,-1,-1,-1]),Int32Array.from([6,18,-1,-1,-1,-1,-1]),Int32Array.from([6,22,-1,-1,-1,-1,-1]),Int32Array.from([6,26,-1,-1,-1,-1,-1]),Int32Array.from([6,30,-1,-1,-1,-1,-1]),Int32Array.from([6,34,-1,-1,-1,-1,-1]),Int32Array.from([6,22,38,-1,-1,-1,-1]),Int32Array.from([6,24,42,-1,-1,-1,-1]),Int32Array.from([6,26,46,-1,-1,-1,-1]),Int32Array.from([6,28,50,-1,-1,-1,-1]),Int32Array.from([6,30,54,-1,-1,-1,-1]),Int32Array.from([6,32,58,-1,-1,-1,-1]),Int32Array.from([6,34,62,-1,-1,-1,-1]),Int32Array.from([6,26,46,66,-1,-1,-1]),Int32Array.from([6,26,48,70,-1,-1,-1]),Int32Array.from([6,26,50,74,-1,-1,-1]),Int32Array.from([6,30,54,78,-1,-1,-1]),Int32Array.from([6,30,56,82,-1,-1,-1]),Int32Array.from([6,30,58,86,-1,-1,-1]),Int32Array.from([6,34,62,90,-1,-1,-1]),Int32Array.from([6,28,50,72,94,-1,-1]),Int32Array.from([6,26,50,74,98,-1,-1]),Int32Array.from([6,30,54,78,102,-1,-1]),Int32Array.from([6,28,54,80,106,-1,-1]),Int32Array.from([6,32,58,84,110,-1,-1]),Int32Array.from([6,30,58,86,114,-1,-1]),Int32Array.from([6,34,62,90,118,-1,-1]),Int32Array.from([6,26,50,74,98,122,-1]),Int32Array.from([6,30,54,78,102,126,-1]),Int32Array.from([6,26,52,78,104,130,-1]),Int32Array.from([6,30,56,82,108,134,-1]),Int32Array.from([6,34,60,86,112,138,-1]),Int32Array.from([6,30,58,86,114,142,-1]),Int32Array.from([6,34,62,90,118,146,-1]),Int32Array.from([6,30,54,78,102,126,150]),Int32Array.from([6,24,50,76,102,128,154]),Int32Array.from([6,28,54,80,106,132,158]),Int32Array.from([6,32,58,84,110,136,162]),Int32Array.from([6,26,54,82,110,138,166]),Int32Array.from([6,30,58,86,114,142,170])]),r.TYPE_INFO_COORDINATES=Array.from([Int32Array.from([8,0]),Int32Array.from([8,1]),Int32Array.from([8,2]),Int32Array.from([8,3]),Int32Array.from([8,4]),Int32Array.from([8,5]),Int32Array.from([8,7]),Int32Array.from([8,8]),Int32Array.from([7,8]),Int32Array.from([5,8]),Int32Array.from([4,8]),Int32Array.from([3,8]),Int32Array.from([2,8]),Int32Array.from([1,8]),Int32Array.from([0,8])]),r.VERSION_INFO_POLY=7973,r.TYPE_INFO_POLY=1335,r.TYPE_INFO_MASK_PATTERN=21522,r}(),go=function(){function r(e,t){this.dataBytes=e,this.errorCorrectionBytes=t}return r.prototype.getDataBytes=function(){return this.dataBytes},r.prototype.getErrorCorrectionBytes=function(){return this.errorCorrectionBytes},r}(),Dr=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(){function r(){}return r.calculateMaskPenalty=function(e){return nt.applyMaskPenaltyRule1(e)+nt.applyMaskPenaltyRule2(e)+nt.applyMaskPenaltyRule3(e)+nt.applyMaskPenaltyRule4(e)},r.encode=function(e,t,n){n===void 0&&(n=null);var i=r.DEFAULT_BYTE_MODE_ENCODING,a=n!==null&&n.get(ct.CHARACTER_SET)!==void 0;a&&(i=n.get(ct.CHARACTER_SET).toString());var o=this.chooseMode(e,i),f=new ie;if(o===K.BYTE&&(a||r.DEFAULT_BYTE_MODE_ENCODING!==i)){var u=re.getCharacterSetECIByName(i);u!==void 0&&this.appendECI(u,f)}this.appendModeInfo(o,f);var s=new ie;this.appendBytes(e,o,s,i);var c;if(n!==null&&n.get(ct.QR_VERSION)!==void 0){var l=Number.parseInt(n.get(ct.QR_VERSION).toString(),10);c=He.getVersionForNumber(l);var d=this.calculateBitsNeeded(o,f,s,c);if(!this.willFit(d,c,t))throw new Z("Data too big for requested version")}else c=this.recommendVersion(t,o,f,s);var h=new ie;h.appendBitArray(f);var v=o===K.BYTE?s.getSizeInBytes():e.length;this.appendLengthInfo(v,c,o,h),h.appendBitArray(s);var p=c.getECBlocksForLevel(t),y=c.getTotalCodewords()-p.getTotalECCodewords();this.terminateBits(y,h);var _=this.interleaveWithECBytes(h,c.getTotalCodewords(),y,p.getNumBlocks()),g=new Gt;g.setECLevel(t),g.setMode(o),g.setVersion(c);var w=c.getDimensionForVersion(),E=new xo(w,w),m=this.chooseMaskPattern(_,t,c,E);return g.setMaskPattern(m),br.buildMatrix(_,t,c,m,E),g.setMatrix(E),g},r.recommendVersion=function(e,t,n,i){var a=this.calculateBitsNeeded(t,n,i,He.getVersionForNumber(1)),o=this.chooseVersion(a,e),f=this.calculateBitsNeeded(t,n,i,o);return this.chooseVersion(f,e)},r.calculateBitsNeeded=function(e,t,n,i){return t.getSize()+e.getCharacterCountBits(i)+n.getSize()},r.getAlphanumericCode=function(e){return e<r.ALPHANUMERIC_TABLE.length?r.ALPHANUMERIC_TABLE[e]:-1},r.chooseMode=function(e,t){if(t===void 0&&(t=null),re.SJIS.getName()===t&&this.isOnlyDoubleByteKanji(e))return K.KANJI;for(var n=!1,i=!1,a=0,o=e.length;a<o;++a){var f=e.charAt(a);if(r.isDigit(f))n=!0;else if(this.getAlphanumericCode(f.charCodeAt(0))!==-1)i=!0;else return K.BYTE}return i?K.ALPHANUMERIC:n?K.NUMERIC:K.BYTE},r.isOnlyDoubleByteKanji=function(e){var t;try{t=be.encode(e,re.SJIS)}catch{return!1}var n=t.length;if(n%2!==0)return!1;for(var i=0;i<n;i+=2){var a=t[i]&255;if((a<129||a>159)&&(a<224||a>235))return!1}return!0},r.chooseMaskPattern=function(e,t,n,i){for(var a=Number.MAX_SAFE_INTEGER,o=-1,f=0;f<Gt.NUM_MASK_PATTERNS;f++){br.buildMatrix(e,t,n,f,i);var u=this.calculateMaskPenalty(i);u<a&&(a=u,o=f)}return o},r.chooseVersion=function(e,t){for(var n=1;n<=40;n++){var i=He.getVersionForNumber(n);if(r.willFit(e,i,t))return i}throw new Z("Data too big")},r.willFit=function(e,t,n){var i=t.getTotalCodewords(),a=t.getECBlocksForLevel(n),o=a.getTotalECCodewords(),f=i-o,u=(e+7)/8;return f>=u},r.terminateBits=function(e,t){var n=e*8;if(t.getSize()>n)throw new Z("data bits cannot fit in the QR Code"+t.getSize()+" > "+n);for(var i=0;i<4&&t.getSize()<n;++i)t.appendBit(!1);var a=t.getSize()&7;if(a>0)for(var i=a;i<8;i++)t.appendBit(!1);for(var o=e-t.getSizeInBytes(),i=0;i<o;++i)t.appendBits(i&1?17:236,8);if(t.getSize()!==n)throw new Z("Bits size does not equal capacity")},r.getNumDataBytesAndNumECBytesForBlockID=function(e,t,n,i,a,o){if(i>=n)throw new Z("Block ID too large");var f=e%n,u=n-f,s=Math.floor(e/n),c=s+1,l=Math.floor(t/n),d=l+1,h=s-l,v=c-d;if(h!==v)throw new Z("EC bytes mismatch");if(n!==u+f)throw new Z("RS blocks mismatch");if(e!==(l+h)*u+(d+v)*f)throw new Z("Total bytes mismatch");i<u?(a[0]=l,o[0]=h):(a[0]=d,o[0]=v)},r.interleaveWithECBytes=function(e,t,n,i){var a,o,f,u;if(e.getSizeInBytes()!==n)throw new Z("Number of bits and data bytes does not match");for(var s=0,c=0,l=0,d=new Array,h=0;h<i;++h){var v=new Int32Array(1),p=new Int32Array(1);r.getNumDataBytesAndNumECBytesForBlockID(t,n,i,h,v,p);var y=v[0],_=new Uint8Array(y);e.toBytes(8*s,_,0,y);var g=r.generateECBytes(_,p[0]);d.push(new go(_,g)),c=Math.max(c,y),l=Math.max(l,g.length),s+=v[0]}if(n!==s)throw new Z("Data bytes does not match offset");for(var w=new ie,h=0;h<c;++h)try{for(var E=(a=void 0,Dr(d)),m=E.next();!m.done;m=E.next()){var I=m.value,_=I.getDataBytes();h<_.length&&w.appendBits(_[h],8)}}catch(b){a={error:b}}finally{try{m&&!m.done&&(o=E.return)&&o.call(E)}finally{if(a)throw a.error}}for(var h=0;h<l;++h)try{for(var O=(f=void 0,Dr(d)),S=O.next();!S.done;S=O.next()){var I=S.value,g=I.getErrorCorrectionBytes();h<g.length&&w.appendBits(g[h],8)}}catch(b){f={error:b}}finally{try{S&&!S.done&&(u=O.return)&&u.call(O)}finally{if(f)throw f.error}}if(t!==w.getSizeInBytes())throw new Z("Interleaving error: "+t+" and "+w.getSizeInBytes()+" differ.");return w},r.generateECBytes=function(e,t){for(var n=e.length,i=new Int32Array(n+t),a=0;a<n;a++)i[a]=e[a]&255;new jr(pe.QR_CODE_FIELD_256).encode(i,t);for(var o=new Uint8Array(t),a=0;a<t;a++)o[a]=i[n+a];return o},r.appendModeInfo=function(e,t){t.appendBits(e.getBits(),4)},r.appendLengthInfo=function(e,t,n,i){var a=n.getCharacterCountBits(t);if(e>=1<<a)throw new Z(e+" is bigger than "+((1<<a)-1));i.appendBits(e,a)},r.appendBytes=function(e,t,n,i){switch(t){case K.NUMERIC:r.appendNumericBytes(e,n);break;case K.ALPHANUMERIC:r.appendAlphanumericBytes(e,n);break;case K.BYTE:r.append8BitBytes(e,n,i);break;case K.KANJI:r.appendKanjiBytes(e,n);break;default:throw new Z("Invalid mode: "+t)}},r.getDigit=function(e){return e.charCodeAt(0)-48},r.isDigit=function(e){var t=r.getDigit(e);return t>=0&&t<=9},r.appendNumericBytes=function(e,t){for(var n=e.length,i=0;i<n;){var a=r.getDigit(e.charAt(i));if(i+2<n){var o=r.getDigit(e.charAt(i+1)),f=r.getDigit(e.charAt(i+2));t.appendBits(a*100+o*10+f,10),i+=3}else if(i+1<n){var o=r.getDigit(e.charAt(i+1));t.appendBits(a*10+o,7),i+=2}else t.appendBits(a,4),i++}},r.appendAlphanumericBytes=function(e,t){for(var n=e.length,i=0;i<n;){var a=r.getAlphanumericCode(e.charCodeAt(i));if(a===-1)throw new Z;if(i+1<n){var o=r.getAlphanumericCode(e.charCodeAt(i+1));if(o===-1)throw new Z;t.appendBits(a*45+o,11),i+=2}else t.appendBits(a,6),i++}},r.append8BitBytes=function(e,t,n){var i;try{i=be.encode(e,n)}catch(u){throw new Z(u)}for(var a=0,o=i.length;a!==o;a++){var f=i[a];t.appendBits(f,8)}},r.appendKanjiBytes=function(e,t){var n;try{n=be.encode(e,re.SJIS)}catch(l){throw new Z(l)}for(var i=n.length,a=0;a<i;a+=2){var o=n[a]&255,f=n[a+1]&255,u=o<<8&4294967295|f,s=-1;if(u>=33088&&u<=40956?s=u-33088:u>=57408&&u<=60351&&(s=u-49472),s===-1)throw new Z("Invalid byte sequence");var c=(s>>8)*192+(s&255);t.appendBits(c,13)}},r.appendECI=function(e,t){t.appendBits(K.ECI.getBits(),4),t.appendBits(e.getValue(),8)},r.ALPHANUMERIC_TABLE=Int32Array.from([-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,36,-1,-1,-1,37,38,-1,-1,-1,-1,39,40,-1,41,42,43,0,1,2,3,4,5,6,7,8,9,44,-1,-1,-1,-1,-1,-1,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,-1,-1,-1,-1,-1]),r.DEFAULT_BYTE_MODE_ENCODING=re.UTF8.getName(),r})();var yo=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();(function(r){yo(e,r);function e(t,n,i,a,o,f,u,s){var c=r.call(this,f,u)||this;if(c.yuvData=t,c.dataWidth=n,c.dataHeight=i,c.left=a,c.top=o,a+f>n||o+u>i)throw new P("Crop rectangle does not fit within image data.");return s&&c.reverseHorizontal(f,u),c}return e.prototype.getRow=function(t,n){if(t<0||t>=this.getHeight())throw new P("Requested row is outside the image: "+t);var i=this.getWidth();(n==null||n.length<i)&&(n=new Uint8ClampedArray(i));var a=(t+this.top)*this.dataWidth+this.left;return $.arraycopy(this.yuvData,a,n,0,i),n},e.prototype.getMatrix=function(){var t=this.getWidth(),n=this.getHeight();if(t===this.dataWidth&&n===this.dataHeight)return this.yuvData;var i=t*n,a=new Uint8ClampedArray(i),o=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return $.arraycopy(this.yuvData,o,a,0,i),a;for(var f=0;f<n;f++){var u=f*t;$.arraycopy(this.yuvData,o,a,u,t),o+=this.dataWidth}return a},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(t,n,i,a){return new e(this.yuvData,this.dataWidth,this.dataHeight,this.left+t,this.top+n,i,a,!1)},e.prototype.renderThumbnail=function(){for(var t=this.getWidth()/e.THUMBNAIL_SCALE_FACTOR,n=this.getHeight()/e.THUMBNAIL_SCALE_FACTOR,i=new Int32Array(t*n),a=this.yuvData,o=this.top*this.dataWidth+this.left,f=0;f<n;f++){for(var u=f*t,s=0;s<t;s++){var c=a[o+s*e.THUMBNAIL_SCALE_FACTOR]&255;i[u+s]=4278190080|c*65793}o+=this.dataWidth*e.THUMBNAIL_SCALE_FACTOR}return i},e.prototype.getThumbnailWidth=function(){return this.getWidth()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.getThumbnailHeight=function(){return this.getHeight()/e.THUMBNAIL_SCALE_FACTOR},e.prototype.reverseHorizontal=function(t,n){for(var i=this.yuvData,a=0,o=this.top*this.dataWidth+this.left;a<n;a++,o+=this.dataWidth)for(var f=o+t/2,u=o,s=o+t-1;u<f;u++,s--){var c=i[u];i[u]=i[s],i[s]=c}},e.prototype.invert=function(){return new Wt(this)},e.THUMBNAIL_SCALE_FACTOR=2,e})(_t);var _o=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();(function(r){_o(e,r);function e(t,n,i,a,o,f,u){var s=r.call(this,n,i)||this;if(s.dataWidth=a,s.dataHeight=o,s.left=f,s.top=u,t.BYTES_PER_ELEMENT===4){for(var c=n*i,l=new Uint8ClampedArray(c),d=0;d<c;d++){var h=t[d],v=h>>16&255,p=h>>7&510,y=h&255;l[d]=(v+p+y)/4&255}s.luminances=l}else s.luminances=t;if(a===void 0&&(s.dataWidth=n),o===void 0&&(s.dataHeight=i),f===void 0&&(s.left=0),u===void 0&&(s.top=0),s.left+n>s.dataWidth||s.top+i>s.dataHeight)throw new P("Crop rectangle does not fit within image data.");return s}return e.prototype.getRow=function(t,n){if(t<0||t>=this.getHeight())throw new P("Requested row is outside the image: "+t);var i=this.getWidth();(n==null||n.length<i)&&(n=new Uint8ClampedArray(i));var a=(t+this.top)*this.dataWidth+this.left;return $.arraycopy(this.luminances,a,n,0,i),n},e.prototype.getMatrix=function(){var t=this.getWidth(),n=this.getHeight();if(t===this.dataWidth&&n===this.dataHeight)return this.luminances;var i=t*n,a=new Uint8ClampedArray(i),o=this.top*this.dataWidth+this.left;if(t===this.dataWidth)return $.arraycopy(this.luminances,o,a,0,i),a;for(var f=0;f<n;f++){var u=f*t;$.arraycopy(this.luminances,o,a,u,t),o+=this.dataWidth}return a},e.prototype.isCropSupported=function(){return!0},e.prototype.crop=function(t,n,i,a){return new e(this.luminances,i,a,this.dataWidth,this.dataHeight,this.left+t,this.top+n)},e.prototype.invert=function(){return new Wt(this)},e})(_t);var Ao=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}();(function(r){Ao(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.forName=function(t){return this.getCharacterSetECIByName(t)},e})(re);(function(){function r(){}return r.ISO_8859_1=re.ISO8859_1,r})();var wo=function(){function r(){}return r.prototype.isCompact=function(){return this.compact},r.prototype.setCompact=function(e){this.compact=e},r.prototype.getSize=function(){return this.size},r.prototype.setSize=function(e){this.size=e},r.prototype.getLayers=function(){return this.layers},r.prototype.setLayers=function(e){this.layers=e},r.prototype.getCodeWords=function(){return this.codeWords},r.prototype.setCodeWords=function(e){this.codeWords=e},r.prototype.getMatrix=function(){return this.matrix},r.prototype.setMatrix=function(e){this.matrix=e},r}(),Nr=function(){function r(){}return r.singletonList=function(e){return[e]},r.min=function(e,t){return e.sort(t)[0]},r}(),Eo=function(){function r(e){this.previous=e}return r.prototype.getPrevious=function(){return this.previous},r}(),Co=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Zt=function(r){Co(e,r);function e(t,n,i){var a=r.call(this,t)||this;return a.value=n,a.bitCount=i,a}return e.prototype.appendTo=function(t,n){t.appendBits(this.value,this.bitCount)},e.prototype.add=function(t,n){return new e(this,t,n)},e.prototype.addBinaryShift=function(t,n){return console.warn("addBinaryShift on SimpleToken, this simply returns a copy of this token"),new e(this,t,n)},e.prototype.toString=function(){var t=this.value&(1<<this.bitCount)-1;return t|=1<<this.bitCount,"<"+L.toBinaryString(t|1<<this.bitCount).substring(1)+">"},e}(Eo),mo=function(){var r=function(e,t){return r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,i){n.__proto__=i}||function(n,i){for(var a in i)i.hasOwnProperty(a)&&(n[a]=i[a])},r(e,t)};return function(e,t){r(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}}(),Io=function(r){mo(e,r);function e(t,n,i){var a=r.call(this,t,0,0)||this;return a.binaryShiftStart=n,a.binaryShiftByteCount=i,a}return e.prototype.appendTo=function(t,n){for(var i=0;i<this.binaryShiftByteCount;i++)(i===0||i===31&&this.binaryShiftByteCount<=62)&&(t.appendBits(31,5),this.binaryShiftByteCount>62?t.appendBits(this.binaryShiftByteCount-31,16):i===0?t.appendBits(Math.min(this.binaryShiftByteCount,31),5):t.appendBits(this.binaryShiftByteCount-31,5)),t.appendBits(n[this.binaryShiftStart+i],8)},e.prototype.addBinaryShift=function(t,n){return new e(this,t,n)},e.prototype.toString=function(){return"<"+this.binaryShiftStart+"::"+(this.binaryShiftStart+this.binaryShiftByteCount-1)+">"},e}(Zt);function So(r,e,t){return new Io(r,e,t)}function Je(r,e,t){return new Zt(r,e,t)}var Oo=["UPPER","LOWER","DIGIT","MIXED","PUNCT"],Fe=0,pt=1,we=2,$r=3,Te=4,To=new Zt(null,0,0),Tt=[Int32Array.from([0,(5<<16)+28,(5<<16)+30,(5<<16)+29,656318]),Int32Array.from([(9<<16)+480+14,0,(5<<16)+30,(5<<16)+29,656318]),Int32Array.from([(4<<16)+14,(9<<16)+448+28,0,(9<<16)+448+29,932798]),Int32Array.from([(5<<16)+29,(5<<16)+28,656318,0,(5<<16)+30]),Int32Array.from([(5<<16)+31,656380,656382,656381,0])],bo=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function Do(r){var e,t;try{for(var n=bo(r),i=n.next();!i.done;i=n.next()){var a=i.value;ge.fill(a,-1)}}catch(o){e={error:o}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(e)throw e.error}}return r[Fe][Te]=0,r[pt][Te]=0,r[pt][Fe]=28,r[$r][Te]=0,r[we][Te]=0,r[we][Fe]=15,r}var Zr=Do(ge.createInt32Array(6,6)),No=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Ro=function(){function r(e,t,n,i){this.token=e,this.mode=t,this.binaryShiftByteCount=n,this.bitCount=i}return r.prototype.getMode=function(){return this.mode},r.prototype.getToken=function(){return this.token},r.prototype.getBinaryShiftByteCount=function(){return this.binaryShiftByteCount},r.prototype.getBitCount=function(){return this.bitCount},r.prototype.latchAndAppend=function(e,t){var n=this.bitCount,i=this.token;if(e!==this.mode){var a=Tt[this.mode][e];i=Je(i,a&65535,a>>16),n+=a>>16}var o=e===we?4:5;return i=Je(i,t,o),new r(i,e,0,n+o)},r.prototype.shiftAndAppend=function(e,t){var n=this.token,i=this.mode===we?4:5;return n=Je(n,Zr[this.mode][e],i),n=Je(n,t,5),new r(n,this.mode,0,this.bitCount+i+5)},r.prototype.addBinaryShiftChar=function(e){var t=this.token,n=this.mode,i=this.bitCount;if(this.mode===Te||this.mode===we){var a=Tt[n][Fe];t=Je(t,a&65535,a>>16),i+=a>>16,n=Fe}var o=this.binaryShiftByteCount===0||this.binaryShiftByteCount===31?18:this.binaryShiftByteCount===62?9:8,f=new r(t,n,this.binaryShiftByteCount+1,i+o);return f.binaryShiftByteCount===2078&&(f=f.endBinaryShift(e+1)),f},r.prototype.endBinaryShift=function(e){if(this.binaryShiftByteCount===0)return this;var t=this.token;return t=So(t,e-this.binaryShiftByteCount,this.binaryShiftByteCount),new r(t,this.mode,0,this.bitCount)},r.prototype.isBetterThanOrEqualTo=function(e){var t=this.bitCount+(Tt[this.mode][e.mode]>>16);return this.binaryShiftByteCount<e.binaryShiftByteCount?t+=r.calculateBinaryShiftCost(e)-r.calculateBinaryShiftCost(this):this.binaryShiftByteCount>e.binaryShiftByteCount&&e.binaryShiftByteCount>0&&(t+=10),t<=e.bitCount},r.prototype.toBitArray=function(e){for(var t,n,i=[],a=this.endBinaryShift(e.length).token;a!==null;a=a.getPrevious())i.unshift(a);var o=new ie;try{for(var f=No(i),u=f.next();!u.done;u=f.next()){var s=u.value;s.appendTo(o,e)}}catch(c){t={error:c}}finally{try{u&&!u.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return o},r.prototype.toString=function(){return j.format("%s bits=%d bytes=%d",Oo[this.mode],this.bitCount,this.binaryShiftByteCount)},r.calculateBinaryShiftCost=function(e){return e.binaryShiftByteCount>62?21:e.binaryShiftByteCount>31?20:e.binaryShiftByteCount>0?10:0},r.INITIAL_STATE=new r(To,Fe,0,0),r}();function Po(r){var e=j.getCharCode(" "),t=j.getCharCode("."),n=j.getCharCode(",");r[Fe][e]=1;for(var i=j.getCharCode("Z"),a=j.getCharCode("A"),o=a;o<=i;o++)r[Fe][o]=o-a+2;r[pt][e]=1;for(var f=j.getCharCode("z"),u=j.getCharCode("a"),o=u;o<=f;o++)r[pt][o]=o-u+2;r[we][e]=1;for(var s=j.getCharCode("9"),c=j.getCharCode("0"),o=c;o<=s;o++)r[we][o]=o-c+2;r[we][n]=12,r[we][t]=13;for(var l=["\0"," ","","","","","","","\x07","\b"," ",`
|
20
20
|
`,"\v","\f","\r","\x1B","","","","","@","\\","^","_","`","|","~",""],d=0;d<l.length;d++)r[$r][j.getCharCode(l[d])]=d;for(var h=["\0","\r","\0","\0","\0","\0","!","'","#","$","%","&","'","(",")","*","+",",","-",".","/",":",";","<","=",">","?","[","]","{","}"],d=0;d<h.length;d++)j.getCharCode(h[d])>0&&(r[Te][j.getCharCode(h[d])]=d);return r}var bt=Po(ge.createInt32Array(5,256)),lt=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")},Mo=function(){function r(e){this.text=e}return r.prototype.encode=function(){for(var e=j.getCharCode(" "),t=j.getCharCode(`
|
21
|
-
`),n=Nr.singletonList(Ro.INITIAL_STATE),i=0;i<this.text.length;i++){var a=void 0,o=i+1<this.text.length?this.text[i+1]:0;switch(this.text[i]){case j.getCharCode("\r"):a=o===t?2:0;break;case j.getCharCode("."):a=o===e?3:0;break;case j.getCharCode(","):a=o===e?4:0;break;case j.getCharCode(":"):a=o===e?5:0;break;default:a=0}a>0?(n=r.updateStateListForPair(n,i,a),i++):n=this.updateStateListForChar(n,i)}var f=Nr.min(n,function(u,s){return u.getBitCount()-s.getBitCount()});return f.toBitArray(this.text)},r.prototype.updateStateListForChar=function(e,t){var n,i,a=[];try{for(var o=lt(e),f=o.next();!f.done;f=o.next()){var u=f.value;this.updateStateForChar(u,t,a)}}catch(s){n={error:s}}finally{try{f&&!f.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r.simplifyStates(a)},r.prototype.updateStateForChar=function(e,t,n){for(var i=this.text[t]&255,a=bt[e.getMode()][i]>0,o=null,f=0;f<=Te;f++){var u=bt[f][i];if(u>0){if(o==null&&(o=e.endBinaryShift(t)),!a||f===e.getMode()||f===we){var s=o.latchAndAppend(f,u);n.push(s)}if(!a&&Zr[e.getMode()][f]>=0){var c=o.shiftAndAppend(f,u);n.push(c)}}}if(e.getBinaryShiftByteCount()>0||bt[e.getMode()][i]===0){var l=e.addBinaryShiftChar(t);n.push(l)}},r.updateStateListForPair=function(e,t,n){var i,a,o=[];try{for(var f=lt(e),u=f.next();!u.done;u=f.next()){var s=u.value;this.updateStateForPair(s,t,n,o)}}catch(c){i={error:c}}finally{try{u&&!u.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return this.simplifyStates(o)},r.updateStateForPair=function(e,t,n,i){var a=e.endBinaryShift(t);if(i.push(a.latchAndAppend(Te,n)),e.getMode()!==Te&&i.push(a.shiftAndAppend(Te,n)),n===3||n===4){var o=a.latchAndAppend(we,16-n).latchAndAppend(we,1);i.push(o)}if(e.getBinaryShiftByteCount()>0){var f=e.addBinaryShiftChar(t).addBinaryShiftChar(t+1);i.push(f)}},r.simplifyStates=function(e){var t,n,i,a,o=[];try{for(var f=lt(e),u=f.next();!u.done;u=f.next()){var s=u.value,c=!0,l=function(y){if(y.isBetterThanOrEqualTo(s))return c=!1,"break";s.isBetterThanOrEqualTo(y)&&(o=o.filter(function(_){return _!==y}))};try{for(var d=(i=void 0,lt(o)),h=d.next();!h.done;h=d.next()){var v=h.value,p=l(v);if(p==="break")break}}catch(y){i={error:y}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}c&&o.push(s)}}catch(y){t={error:y}}finally{try{u&&!u.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return o},r}(),Bo=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(){function r(){}return r.encodeBytes=function(e){return r.encode(e,r.DEFAULT_EC_PERCENT,r.DEFAULT_AZTEC_LAYERS)},r.encode=function(e,t,n){var i=new Mo(e).encode(),a=L.truncDivision(i.getSize()*t,100)+11,o=i.getSize()+a,f,u,s,c,l;if(n!==r.DEFAULT_AZTEC_LAYERS){if(f=n<0,u=Math.abs(n),u>(f?r.MAX_NB_BITS_COMPACT:r.MAX_NB_BITS))throw new P(j.format("Illegal value %s for layers",n));s=r.totalBitsInLayer(u,f),c=r.WORD_SIZE[u];var d=s-s%c;if(l=r.stuffBits(i,c),l.getSize()+a>d)throw new P("Data to large for user specified layer");if(f&&l.getSize()>c*64)throw new P("Data to large for user specified layer")}else{c=0,l=null;for(var h=0;;h++){if(h>r.MAX_NB_BITS)throw new P("Data too large for an Aztec code");if(f=h<=3,u=f?h+1:h,s=r.totalBitsInLayer(u,f),!(o>s)){(l==null||c!==r.WORD_SIZE[u])&&(c=r.WORD_SIZE[u],l=r.stuffBits(i,c));var d=s-s%c;if(!(f&&l.getSize()>c*64)&&l.getSize()+a<=d)break}}}var v=r.generateCheckWords(l,s,c),p=l.getSize()/c,y=r.generateModeMessage(f,u,p),_=(f?11:14)+u*4,g=new Int32Array(_),w;if(f){w=_;for(var h=0;h<g.length;h++)g[h]=h}else{w=_+1+2*L.truncDivision(L.truncDivision(_,2)-1,15);for(var E=L.truncDivision(_,2),m=L.truncDivision(w,2),h=0;h<E;h++){var I=h+L.truncDivision(h,15);g[E-h-1]=m-I-1,g[E+h]=m+I+1}}for(var O=new De(w),h=0,S=0;h<u;h++){for(var R=(u-h)*4+(f?9:12),b=0;b<R;b++)for(var X=b*2,F=0;F<2;F++)v.get(S+X+F)&&O.set(g[h*2+F],g[h*2+b]),v.get(S+R*2+X+F)&&O.set(g[h*2+b],g[_-1-h*2-F]),v.get(S+R*4+X+F)&&O.set(g[_-1-h*2-F],g[_-1-h*2-b]),v.get(S+R*6+X+F)&&O.set(g[_-1-h*2-b],g[h*2+F]);S+=R*8}if(r.drawModeMessage(O,f,w,y),f)r.drawBullsEye(O,L.truncDivision(w,2),5);else{r.drawBullsEye(O,L.truncDivision(w,2),7);for(var h=0,b=0;h<L.truncDivision(_,2)-1;h+=15,b+=16)for(var F=L.truncDivision(w,2)&1;F<w;F+=2)O.set(L.truncDivision(w,2)-b,F),O.set(L.truncDivision(w,2)+b,F),O.set(F,L.truncDivision(w,2)-b),O.set(F,L.truncDivision(w,2)+b)}var Y=new wo;return Y.setCompact(f),Y.setSize(w),Y.setLayers(u),Y.setCodeWords(p),Y.setMatrix(O),Y},r.drawBullsEye=function(e,t,n){for(var i=0;i<n;i+=2)for(var a=t-i;a<=t+i;a++)e.set(a,t-i),e.set(a,t+i),e.set(t-i,a),e.set(t+i,a);e.set(t-n,t-n),e.set(t-n+1,t-n),e.set(t-n,t-n+1),e.set(t+n,t-n),e.set(t+n,t-n+1),e.set(t+n,t+n-1)},r.generateModeMessage=function(e,t,n){var i=new ie;return e?(i.appendBits(t-1,2),i.appendBits(n-1,6),i=r.generateCheckWords(i,28,4)):(i.appendBits(t-1,5),i.appendBits(n-1,11),i=r.generateCheckWords(i,40,4)),i},r.drawModeMessage=function(e,t,n,i){var a=L.truncDivision(n,2);if(t)for(var o=0;o<7;o++){var f=a-3+o;i.get(o)&&e.set(f,a-5),i.get(o+7)&&e.set(a+5,f),i.get(20-o)&&e.set(f,a+5),i.get(27-o)&&e.set(a-5,f)}else for(var o=0;o<10;o++){var f=a-5+o+L.truncDivision(o,5);i.get(o)&&e.set(f,a-7),i.get(o+10)&&e.set(a+7,f),i.get(29-o)&&e.set(f,a+7),i.get(39-o)&&e.set(a-7,f)}},r.generateCheckWords=function(e,t,n){var i,a,o=e.getSize()/n,f=new jr(r.getGF(n)),u=L.truncDivision(t,n),s=r.bitsToWords(e,n,u);f.encode(s,u-o);var c=t%n,l=new ie;l.appendBits(0,c);try{for(var d=Bo(Array.from(s)),h=d.next();!h.done;h=d.next()){var v=h.value;l.appendBits(v,n)}}catch(p){i={error:p}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}return l},r.bitsToWords=function(e,t,n){var i=new Int32Array(n),a,o;for(a=0,o=e.getSize()/t;a<o;a++){for(var f=0,u=0;u<t;u++)f|=e.get(a*t+u)?1<<t-u-1:0;i[a]=f}return i},r.getGF=function(e){switch(e){case 4:return pe.AZTEC_PARAM;case 6:return pe.AZTEC_DATA_6;case 8:return pe.AZTEC_DATA_8;case 10:return pe.AZTEC_DATA_10;case 12:return pe.AZTEC_DATA_12;default:throw new P("Unsupported word size "+e)}},r.stuffBits=function(e,t){for(var n=new ie,i=e.getSize(),a=(1<<t)-2,o=0;o<i;o+=t){for(var f=0,u=0;u<t;u++)(o+u>=i||e.get(o+u))&&(f|=1<<t-1-u);(f&a)===a?(n.appendBits(f&a,t),o--):f&a?n.appendBits(f,t):(n.appendBits(f|1,t),o--)}return n},r.totalBitsInLayer=function(e,t){return((t?88:112)+16*e)*e},r.DEFAULT_EC_PERCENT=33,r.DEFAULT_AZTEC_LAYERS=0,r.MAX_NB_BITS=32,r.MAX_NB_BITS_COMPACT=4,r.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]),r})();const Fo={name:"stream-barcode-reader",data(){return{isLoading:!0,codeReader:new co,isMediaStreamAPISupported:navigator&&navigator.mediaDevices&&"enumerateDevices"in navigator.mediaDevices}},mounted(){if(!this.isMediaStreamAPISupported)throw new le("Media Stream API is not supported");this.start(),this.$refs.scanner.oncanplay=r=>{this.isLoading=!1,this.$emit("loaded")}},beforeUnmount(){this.codeReader.reset()},methods:{start(){this.codeReader.decodeFromVideoDevice(void 0,this.$refs.scanner,(r,e)=>{r&&(this.$emit("decode",r.text),this.$emit("result",r))})}}},Kr=r=>(Br("data-v-1495fc40"),r=r(),Fr(),r),Lo={class:"scanner-container"},ko={poster:"data:image/gif,AAAA",ref:"scanner"},Uo=Kr(()=>J("div",{class:"overlay-element"},null,-1)),Vo=Kr(()=>J("div",{class:"laser"},null,-1));function Ho(r,e,t,n,i,a){return q(),xe("div",Lo,[Pr(J("div",null,[J("video",ko,null,512),Uo,Vo],512),[[Mr,!i.isLoading]])])}const Go=Rr(Fo,[["render",Ho],["__scopeId","data-v-1495fc40"]]),Xo=gt(()=>yt(()=>import("./ov8xLaHe.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url).then(r=>r.default||r)),Wo=gt(()=>yt(()=>import("./cjY5Hf50.js"),__vite__mapDeps([15,1,2,16,13,17]),import.meta.url).then(r=>r.default||r)),zo=gt(()=>yt(()=>import("./3jIF1AyF.js"),__vite__mapDeps([18,1,2,19,20,21,16,22,23,13,24]),import.meta.url).then(r=>r.default||r)),Yo=gt(()=>yt(()=>import("./DSt1bB14.js"),__vite__mapDeps([25,1,2,26]),import.meta.url).then(r=>r.default||r)),jo=r=>(Br("data-v-7be48f93"),r=r(),Fr(),r),$o={class:"h-full flex flex-col items-center w-full max-w-[max(33%,688px)] mx-auto"},Zo={class:"transition-all duration-300 ease-in relative flex flex-col justify-center gap-2 w-full my-6 bg-white dark:bg-transparent rounded-3xl border-1 border-gray-200 px-4 py-8 lg:p-12 md:p-8 md:dark:bg-slate-700"},Ko={class:"text-2xl font-bold text-gray-900 mb-4"},qo={key:0},Qo={key:1,class:"flex justify-center"},Jo={key:0,class:"w-full"},e1={key:1},t1={key:0,class:"mt-16 w-full flex justify-between items-center flex-wrap gap-3"},r1={key:0,class:"text-sm text-gray-500 dark:text-slate-300 m-0"},n1={class:"flex-1 self-end flex justify-end"},i1={class:"relative flex flex-col h-full"},a1={class:"w-full h-full flex items-center justify-center"},o1={class:"nc-form-wrapper"},f1={class:"nc-form h-full"},u1={class:"flex flex-col gap-3 md:gap-6"},s1=["data-testid"],c1={class:"nc-form-column-label text-sm font-semibold text-gray-800"},l1={key:0,class:"text-red-500 text-base leading-[18px]"},h1={key:0,class:"nc-form-column-description text-gray-500 text-sm"},d1={class:"flex items-center gap-1"},v1={class:"flex justify-between items-center mt-6"},x1={class:"inline-block"},p1=jo(()=>J("div",null," ",-1)),g1=an({__name:"index",setup(r){const{sharedFormView:e,submitForm:t,clearForm:n,formState:i,notFound:a,formColumns:o,submitted:f,secondsRemain:u,isLoading:s,progress:c,validateInfos:l,validate:d,fieldMappings:h}=wn(),{isMobileMode:v}=on(En());function p(S,R=!1){var X;let b=S;return b.uidt===ar.LinkToAnotherRecord&&b.colOptions&&b.colOptions.type===hn.BELONGS_TO&&(b=(X=o.value)==null?void 0:X.find(F=>F.id===b.colOptions.fk_child_column_id)),!!(R||b&&b.rqd&&!b.cdf)}const y=Et(""),_=Et(!1),g=Et(!1),w=async()=>{_.value=!0},E=S=>{g.value=!0,y.value=S},m=S=>{var R;return(R=o.value)==null?void 0:R.find(b=>b.title===S)},I=S=>{switch(S){case ar.Number:return R=>parseInt(R);default:return R=>R}},O=async S=>{if(g.value)try{const R=m(y.value);if(R==null)throw new Error(`Field with title ${y.value} not found`);const b=I(R.uidt)(S)||S;i.value[y.value]=b,y.value="",g.value=!1}catch(R){console.error(R)}};return(S,R)=>{var Kt,qt,Qt;const b=yn,X=Xo,F=mn,Y=dn,he=vn,Se=xn,je=An,$e=Wo,Ze=zo,qr=pn,Qr=Yo,Jr=In,en=gn,tn=Cn,rn=Sn,nn=_n;return q(),xe("div",$o,[B(e)&&!("parseProp"in S?S.parseProp:B(nr))((Kt=B(e))==null?void 0:Kt.meta).hide_banner?(q(),Ne(b,{key:0,"banner-image-url":B(e).banner_image_url,class:"flex-none dark:border-none"},null,8,["banner-image-url"])):Ee("",!0),J("div",Zo,[B(e)?(q(),xe(Ct,{key:0},[J("div",null,[J("h1",Ko,Oe(B(e).heading),1),B(e).subheading?(q(),xe("div",qo,[de(X,{value:B(e).subheading,class:"font-medium text-base text-gray-500 dark:text-slate-300 !h-auto mb-4 -ml-1","is-form-field":"","read-only":"","sync-value-change":""},null,8,["value"])])):Ee("",!0)]),B(a)?(q(),Ne(F,{key:0,type:"warning",class:"!mt-2 !mb-4 text-center",message:"Not found"})):B(f)?(q(),xe("div",Qo,[B(e)?(q(),xe("div",Jo,[de(F,{class:"nc-shared-form-success-msg !mt-2 !mb-4 !py-4 text-left !rounded-lg",type:"success",outlined:""},{message:_e(()=>{var N,at,Ke;return[(at=(N=B(e))==null?void 0:N.success_msg)!=null&&at.trim()?(q(),Ne(X,{key:0,value:(Ke=B(e))==null?void 0:Ke.success_msg,class:"!h-auto -ml-1","is-form-field":"","read-only":"","sync-value-change":""},null,8,["value"])):(q(),xe("span",e1,Oe(S.$t("msg.successfullySubmittedFormData")),1))]}),_:1}),B(e).show_blank_form||B(e).submit_another_form?(q(),xe("div",t1,[(qt=B(e))!=null&&qt.show_blank_form?(q(),xe("p",r1,Oe(S.$t("labels.newFormLoaded"))+" "+Oe(B(u))+" "+Oe(S.$t("general.seconds").toLowerCase()),1)):Ee("",!0),J("div",n1,[(Qt=B(e))!=null&&Qt.submit_another_form?(q(),Ne(Y,{key:0,type:"secondary",size:B(v)?"medium":"small",onClick:R[0]||(R[0]=N=>f.value=!1)},{default:_e(()=>[ot(Oe(S.$t("activity.submitAnotherForm")),1)]),_:1},8,["size"])):Ee("",!0)])])):Ee("",!0)])):Ee("",!0)])):(q(),xe(Ct,{key:2},[de(he,{visible:g.value,"onUpdate:visible":R[1]||(R[1]=N=>g.value=N),closable:!1,width:"28rem",centered:"",footer:null,"wrap-class-name":"nc-modal-generate-token","destroy-on-close":"",onCancel:R[2]||(R[2]=N=>_.value=!1)},{default:_e(()=>[J("div",i1,[Pr(de(B(Go),{onDecode:O,onLoaded:w},null,512),[[Mr,_.value]])])]),_:1},8,["visible"]),de(je,{class:"bg-gray-50/75 rounded-3xl","model-value":B(s),inline:"",transition:""},{default:_e(()=>[J("div",a1,[de(Se,{size:"large"})])]),_:1},8,["model-value"]),J("div",o1,[de(tn,{model:B(i)},{default:_e(()=>[J("div",f1,[J("div",u1,[(q(!0),xe(Ct,null,fn(B(o),(N,at)=>{var Ke;return q(),xe("div",{key:at,class:"flex flex-col gap-2","data-testid":`nc-shared-form-item-${(Ke=N.title)==null?void 0:Ke.replace(" ","")}`},[J("div",c1,[J("span",null,Oe(N.label||N.title),1),p(N,N.required)?(q(),xe("span",l1," *")):Ee("",!0)]),N!=null&&N.description?(q(),xe("div",h1,[de(X,{value:N==null?void 0:N.description,class:"!h-auto -ml-1","is-form-field":"","read-only":"","sync-value-change":""},null,8,["value"])])):Ee("",!0),J("div",null,[de(en,{disabled:!(N!=null&&N.read_only)},{title:_e(()=>[ot(Oe(S.$t("activity.preFilledFields.lockedFieldTooltip")),1)]),default:_e(()=>[N.title&&B(h)[N.title]?(q(),Ne(Jr,un({key:0,name:B(h)[N.title],class:"!my-0 nc-input-required-error",ref_for:!0},B(l)[B(h)[N.title]]),{default:_e(()=>[de(Qr,{class:"flex relative"},{default:_e(()=>{var Jt,er,tr;return[B(sn)(N)?(q(),Ne($e,{key:0,"model-value":null,class:ir(["mt-0 nc-input nc-cell",[`nc-form-input-${(Jt=N.title)==null?void 0:Jt.replaceAll(" ","")}`,{readonly:N==null?void 0:N.read_only}]]),"data-testid":`nc-form-input-cell-${N.label||N.title}`,column:N,"read-only":N==null?void 0:N.read_only},null,8,["data-testid","class","column","read-only"])):(q(),Ne(Ze,{key:1,modelValue:B(i)[N.title],"onUpdate:modelValue":[rr=>B(i)[N.title]=rr,()=>{B(d)(B(h)[N.title])}],class:ir(["nc-input truncate",[`nc-form-input-${(er=N.title)==null?void 0:er.replaceAll(" ","")}`,{"layout-list":(tr=("parseProp"in S?S.parseProp:B(nr))(N==null?void 0:N.meta))==null?void 0:tr.isList,readonly:N==null?void 0:N.read_only}]]),"data-testid":`nc-form-input-cell-${N.label||N.title}`,column:N,"edit-enabled":!(N!=null&&N.read_only),"read-only":N==null?void 0:N.read_only},null,8,["modelValue","onUpdate:modelValue","data-testid","class","column","edit-enabled","read-only"])),N.enable_scanner?(q(),Ne(qr,{key:2,class:"nc-btn-fill-form-column-by-scan nc-toolbar-btn",alt:S.$t("activity.fillByCodeScan"),onClick:rr=>E(N.title)},{default:_e(()=>[J("div",d1,[(q(),Ne(cn(("iconMap"in S?S.iconMap:B(ln)).qrCodeScan),{class:"h-5 w-5"}))])]),_:2},1032,["alt","onClick"])):Ee("",!0)]}),_:2},1024)]),_:2},1040,["name"])):Ee("",!0)]),_:2},1032,["disabled"])])],8,s1)}),128))]),J("div",v1,[de(Y,{"html-type":"reset",type:"secondary",size:B(v)?"medium":"small",disabled:B(s),class:"nc-shared-form-button shared-form-clear-button","data-testid":"shared-form-clear-button",onClick:B(n)},{default:_e(()=>[ot(Oe(S.$t("activity.clearForm")),1)]),_:1},8,["size","disabled","onClick"]),de(Y,{disabled:B(c),type:"primary",size:B(v)?"medium":"small",class:"nc-shared-form-button shared-form-submit-button","data-testid":"shared-form-submit-button",onClick:B(t)},{default:_e(()=>[ot(Oe(S.$t("general.submit")),1)]),_:1},8,["disabled","size","onClick"])])])]),_:1},8,["model"])]),J("div",null,[de(rn,{class:"!my-6 !md:my-8"}),J("div",x1,[de(nn)])])],64))],64)):Ee("",!0)]),p1])}}}),X1=Rr(g1,[["__scopeId","data-v-7be48f93"]]);export{X1 as default};
|
21
|
+
`),n=Nr.singletonList(Ro.INITIAL_STATE),i=0;i<this.text.length;i++){var a=void 0,o=i+1<this.text.length?this.text[i+1]:0;switch(this.text[i]){case j.getCharCode("\r"):a=o===t?2:0;break;case j.getCharCode("."):a=o===e?3:0;break;case j.getCharCode(","):a=o===e?4:0;break;case j.getCharCode(":"):a=o===e?5:0;break;default:a=0}a>0?(n=r.updateStateListForPair(n,i,a),i++):n=this.updateStateListForChar(n,i)}var f=Nr.min(n,function(u,s){return u.getBitCount()-s.getBitCount()});return f.toBitArray(this.text)},r.prototype.updateStateListForChar=function(e,t){var n,i,a=[];try{for(var o=lt(e),f=o.next();!f.done;f=o.next()){var u=f.value;this.updateStateForChar(u,t,a)}}catch(s){n={error:s}}finally{try{f&&!f.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r.simplifyStates(a)},r.prototype.updateStateForChar=function(e,t,n){for(var i=this.text[t]&255,a=bt[e.getMode()][i]>0,o=null,f=0;f<=Te;f++){var u=bt[f][i];if(u>0){if(o==null&&(o=e.endBinaryShift(t)),!a||f===e.getMode()||f===we){var s=o.latchAndAppend(f,u);n.push(s)}if(!a&&Zr[e.getMode()][f]>=0){var c=o.shiftAndAppend(f,u);n.push(c)}}}if(e.getBinaryShiftByteCount()>0||bt[e.getMode()][i]===0){var l=e.addBinaryShiftChar(t);n.push(l)}},r.updateStateListForPair=function(e,t,n){var i,a,o=[];try{for(var f=lt(e),u=f.next();!u.done;u=f.next()){var s=u.value;this.updateStateForPair(s,t,n,o)}}catch(c){i={error:c}}finally{try{u&&!u.done&&(a=f.return)&&a.call(f)}finally{if(i)throw i.error}}return this.simplifyStates(o)},r.updateStateForPair=function(e,t,n,i){var a=e.endBinaryShift(t);if(i.push(a.latchAndAppend(Te,n)),e.getMode()!==Te&&i.push(a.shiftAndAppend(Te,n)),n===3||n===4){var o=a.latchAndAppend(we,16-n).latchAndAppend(we,1);i.push(o)}if(e.getBinaryShiftByteCount()>0){var f=e.addBinaryShiftChar(t).addBinaryShiftChar(t+1);i.push(f)}},r.simplifyStates=function(e){var t,n,i,a,o=[];try{for(var f=lt(e),u=f.next();!u.done;u=f.next()){var s=u.value,c=!0,l=function(y){if(y.isBetterThanOrEqualTo(s))return c=!1,"break";s.isBetterThanOrEqualTo(y)&&(o=o.filter(function(_){return _!==y}))};try{for(var d=(i=void 0,lt(o)),h=d.next();!h.done;h=d.next()){var v=h.value,p=l(v);if(p==="break")break}}catch(y){i={error:y}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}c&&o.push(s)}}catch(y){t={error:y}}finally{try{u&&!u.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}return o},r}(),Bo=function(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],n=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&n>=r.length&&(r=void 0),{value:r&&r[n++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};(function(){function r(){}return r.encodeBytes=function(e){return r.encode(e,r.DEFAULT_EC_PERCENT,r.DEFAULT_AZTEC_LAYERS)},r.encode=function(e,t,n){var i=new Mo(e).encode(),a=L.truncDivision(i.getSize()*t,100)+11,o=i.getSize()+a,f,u,s,c,l;if(n!==r.DEFAULT_AZTEC_LAYERS){if(f=n<0,u=Math.abs(n),u>(f?r.MAX_NB_BITS_COMPACT:r.MAX_NB_BITS))throw new P(j.format("Illegal value %s for layers",n));s=r.totalBitsInLayer(u,f),c=r.WORD_SIZE[u];var d=s-s%c;if(l=r.stuffBits(i,c),l.getSize()+a>d)throw new P("Data to large for user specified layer");if(f&&l.getSize()>c*64)throw new P("Data to large for user specified layer")}else{c=0,l=null;for(var h=0;;h++){if(h>r.MAX_NB_BITS)throw new P("Data too large for an Aztec code");if(f=h<=3,u=f?h+1:h,s=r.totalBitsInLayer(u,f),!(o>s)){(l==null||c!==r.WORD_SIZE[u])&&(c=r.WORD_SIZE[u],l=r.stuffBits(i,c));var d=s-s%c;if(!(f&&l.getSize()>c*64)&&l.getSize()+a<=d)break}}}var v=r.generateCheckWords(l,s,c),p=l.getSize()/c,y=r.generateModeMessage(f,u,p),_=(f?11:14)+u*4,g=new Int32Array(_),w;if(f){w=_;for(var h=0;h<g.length;h++)g[h]=h}else{w=_+1+2*L.truncDivision(L.truncDivision(_,2)-1,15);for(var E=L.truncDivision(_,2),m=L.truncDivision(w,2),h=0;h<E;h++){var I=h+L.truncDivision(h,15);g[E-h-1]=m-I-1,g[E+h]=m+I+1}}for(var O=new De(w),h=0,S=0;h<u;h++){for(var R=(u-h)*4+(f?9:12),b=0;b<R;b++)for(var X=b*2,F=0;F<2;F++)v.get(S+X+F)&&O.set(g[h*2+F],g[h*2+b]),v.get(S+R*2+X+F)&&O.set(g[h*2+b],g[_-1-h*2-F]),v.get(S+R*4+X+F)&&O.set(g[_-1-h*2-F],g[_-1-h*2-b]),v.get(S+R*6+X+F)&&O.set(g[_-1-h*2-b],g[h*2+F]);S+=R*8}if(r.drawModeMessage(O,f,w,y),f)r.drawBullsEye(O,L.truncDivision(w,2),5);else{r.drawBullsEye(O,L.truncDivision(w,2),7);for(var h=0,b=0;h<L.truncDivision(_,2)-1;h+=15,b+=16)for(var F=L.truncDivision(w,2)&1;F<w;F+=2)O.set(L.truncDivision(w,2)-b,F),O.set(L.truncDivision(w,2)+b,F),O.set(F,L.truncDivision(w,2)-b),O.set(F,L.truncDivision(w,2)+b)}var Y=new wo;return Y.setCompact(f),Y.setSize(w),Y.setLayers(u),Y.setCodeWords(p),Y.setMatrix(O),Y},r.drawBullsEye=function(e,t,n){for(var i=0;i<n;i+=2)for(var a=t-i;a<=t+i;a++)e.set(a,t-i),e.set(a,t+i),e.set(t-i,a),e.set(t+i,a);e.set(t-n,t-n),e.set(t-n+1,t-n),e.set(t-n,t-n+1),e.set(t+n,t-n),e.set(t+n,t-n+1),e.set(t+n,t+n-1)},r.generateModeMessage=function(e,t,n){var i=new ie;return e?(i.appendBits(t-1,2),i.appendBits(n-1,6),i=r.generateCheckWords(i,28,4)):(i.appendBits(t-1,5),i.appendBits(n-1,11),i=r.generateCheckWords(i,40,4)),i},r.drawModeMessage=function(e,t,n,i){var a=L.truncDivision(n,2);if(t)for(var o=0;o<7;o++){var f=a-3+o;i.get(o)&&e.set(f,a-5),i.get(o+7)&&e.set(a+5,f),i.get(20-o)&&e.set(f,a+5),i.get(27-o)&&e.set(a-5,f)}else for(var o=0;o<10;o++){var f=a-5+o+L.truncDivision(o,5);i.get(o)&&e.set(f,a-7),i.get(o+10)&&e.set(a+7,f),i.get(29-o)&&e.set(f,a+7),i.get(39-o)&&e.set(a-7,f)}},r.generateCheckWords=function(e,t,n){var i,a,o=e.getSize()/n,f=new jr(r.getGF(n)),u=L.truncDivision(t,n),s=r.bitsToWords(e,n,u);f.encode(s,u-o);var c=t%n,l=new ie;l.appendBits(0,c);try{for(var d=Bo(Array.from(s)),h=d.next();!h.done;h=d.next()){var v=h.value;l.appendBits(v,n)}}catch(p){i={error:p}}finally{try{h&&!h.done&&(a=d.return)&&a.call(d)}finally{if(i)throw i.error}}return l},r.bitsToWords=function(e,t,n){var i=new Int32Array(n),a,o;for(a=0,o=e.getSize()/t;a<o;a++){for(var f=0,u=0;u<t;u++)f|=e.get(a*t+u)?1<<t-u-1:0;i[a]=f}return i},r.getGF=function(e){switch(e){case 4:return pe.AZTEC_PARAM;case 6:return pe.AZTEC_DATA_6;case 8:return pe.AZTEC_DATA_8;case 10:return pe.AZTEC_DATA_10;case 12:return pe.AZTEC_DATA_12;default:throw new P("Unsupported word size "+e)}},r.stuffBits=function(e,t){for(var n=new ie,i=e.getSize(),a=(1<<t)-2,o=0;o<i;o+=t){for(var f=0,u=0;u<t;u++)(o+u>=i||e.get(o+u))&&(f|=1<<t-1-u);(f&a)===a?(n.appendBits(f&a,t),o--):f&a?n.appendBits(f,t):(n.appendBits(f|1,t),o--)}return n},r.totalBitsInLayer=function(e,t){return((t?88:112)+16*e)*e},r.DEFAULT_EC_PERCENT=33,r.DEFAULT_AZTEC_LAYERS=0,r.MAX_NB_BITS=32,r.MAX_NB_BITS_COMPACT=4,r.WORD_SIZE=Int32Array.from([4,6,6,8,8,8,8,8,8,10,10,10,10,10,10,10,10,10,10,10,10,10,10,12,12,12,12,12,12,12,12,12,12]),r})();const Fo={name:"stream-barcode-reader",data(){return{isLoading:!0,codeReader:new co,isMediaStreamAPISupported:navigator&&navigator.mediaDevices&&"enumerateDevices"in navigator.mediaDevices}},mounted(){if(!this.isMediaStreamAPISupported)throw new le("Media Stream API is not supported");this.start(),this.$refs.scanner.oncanplay=r=>{this.isLoading=!1,this.$emit("loaded")}},beforeUnmount(){this.codeReader.reset()},methods:{start(){this.codeReader.decodeFromVideoDevice(void 0,this.$refs.scanner,(r,e)=>{r&&(this.$emit("decode",r.text),this.$emit("result",r))})}}},Kr=r=>(Br("data-v-1495fc40"),r=r(),Fr(),r),Lo={class:"scanner-container"},ko={poster:"data:image/gif,AAAA",ref:"scanner"},Uo=Kr(()=>J("div",{class:"overlay-element"},null,-1)),Vo=Kr(()=>J("div",{class:"laser"},null,-1));function Ho(r,e,t,n,i,a){return q(),xe("div",Lo,[Pr(J("div",null,[J("video",ko,null,512),Uo,Vo],512),[[Mr,!i.isLoading]])])}const Go=Rr(Fo,[["render",Ho],["__scopeId","data-v-1495fc40"]]),Xo=gt(()=>yt(()=>import("./Bf-Jn9fN.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14]),import.meta.url).then(r=>r.default||r)),Wo=gt(()=>yt(()=>import("./Cx74SJIJ.js"),__vite__mapDeps([15,1,2,16,13,17]),import.meta.url).then(r=>r.default||r)),zo=gt(()=>yt(()=>import("./Bi74c53l.js"),__vite__mapDeps([18,1,2,19,20,21,16,22,23,13,24]),import.meta.url).then(r=>r.default||r)),Yo=gt(()=>yt(()=>import("./BUa3Jukl.js"),__vite__mapDeps([25,1,2,26]),import.meta.url).then(r=>r.default||r)),jo=r=>(Br("data-v-7be48f93"),r=r(),Fr(),r),$o={class:"h-full flex flex-col items-center w-full max-w-[max(33%,688px)] mx-auto"},Zo={class:"transition-all duration-300 ease-in relative flex flex-col justify-center gap-2 w-full my-6 bg-white dark:bg-transparent rounded-3xl border-1 border-gray-200 px-4 py-8 lg:p-12 md:p-8 md:dark:bg-slate-700"},Ko={class:"text-2xl font-bold text-gray-900 mb-4"},qo={key:0},Qo={key:1,class:"flex justify-center"},Jo={key:0,class:"w-full"},e1={key:1},t1={key:0,class:"mt-16 w-full flex justify-between items-center flex-wrap gap-3"},r1={key:0,class:"text-sm text-gray-500 dark:text-slate-300 m-0"},n1={class:"flex-1 self-end flex justify-end"},i1={class:"relative flex flex-col h-full"},a1={class:"w-full h-full flex items-center justify-center"},o1={class:"nc-form-wrapper"},f1={class:"nc-form h-full"},u1={class:"flex flex-col gap-3 md:gap-6"},s1=["data-testid"],c1={class:"nc-form-column-label text-sm font-semibold text-gray-800"},l1={key:0,class:"text-red-500 text-base leading-[18px]"},h1={key:0,class:"nc-form-column-description text-gray-500 text-sm"},d1={class:"flex items-center gap-1"},v1={class:"flex justify-between items-center mt-6"},x1={class:"inline-block"},p1=jo(()=>J("div",null," ",-1)),g1=an({__name:"index",setup(r){const{sharedFormView:e,submitForm:t,clearForm:n,formState:i,notFound:a,formColumns:o,submitted:f,secondsRemain:u,isLoading:s,progress:c,validateInfos:l,validate:d,fieldMappings:h}=wn(),{isMobileMode:v}=on(En());function p(S,R=!1){var X;let b=S;return b.uidt===ar.LinkToAnotherRecord&&b.colOptions&&b.colOptions.type===hn.BELONGS_TO&&(b=(X=o.value)==null?void 0:X.find(F=>F.id===b.colOptions.fk_child_column_id)),!!(R||b&&b.rqd&&!b.cdf)}const y=Et(""),_=Et(!1),g=Et(!1),w=async()=>{_.value=!0},E=S=>{g.value=!0,y.value=S},m=S=>{var R;return(R=o.value)==null?void 0:R.find(b=>b.title===S)},I=S=>{switch(S){case ar.Number:return R=>parseInt(R);default:return R=>R}},O=async S=>{if(g.value)try{const R=m(y.value);if(R==null)throw new Error(`Field with title ${y.value} not found`);const b=I(R.uidt)(S)||S;i.value[y.value]=b,y.value="",g.value=!1}catch(R){console.error(R)}};return(S,R)=>{var Kt,qt,Qt;const b=yn,X=Xo,F=mn,Y=dn,he=vn,Se=xn,je=An,$e=Wo,Ze=zo,qr=pn,Qr=Yo,Jr=In,en=gn,tn=Cn,rn=Sn,nn=_n;return q(),xe("div",$o,[B(e)&&!("parseProp"in S?S.parseProp:B(nr))((Kt=B(e))==null?void 0:Kt.meta).hide_banner?(q(),Ne(b,{key:0,"banner-image-url":B(e).banner_image_url,class:"flex-none dark:border-none"},null,8,["banner-image-url"])):Ee("",!0),J("div",Zo,[B(e)?(q(),xe(Ct,{key:0},[J("div",null,[J("h1",Ko,Oe(B(e).heading),1),B(e).subheading?(q(),xe("div",qo,[de(X,{value:B(e).subheading,class:"font-medium text-base text-gray-500 dark:text-slate-300 !h-auto mb-4 -ml-1","is-form-field":"","read-only":"","sync-value-change":""},null,8,["value"])])):Ee("",!0)]),B(a)?(q(),Ne(F,{key:0,type:"warning",class:"!mt-2 !mb-4 text-center",message:"Not found"})):B(f)?(q(),xe("div",Qo,[B(e)?(q(),xe("div",Jo,[de(F,{class:"nc-shared-form-success-msg !mt-2 !mb-4 !py-4 text-left !rounded-lg",type:"success",outlined:""},{message:_e(()=>{var N,at,Ke;return[(at=(N=B(e))==null?void 0:N.success_msg)!=null&&at.trim()?(q(),Ne(X,{key:0,value:(Ke=B(e))==null?void 0:Ke.success_msg,class:"!h-auto -ml-1","is-form-field":"","read-only":"","sync-value-change":""},null,8,["value"])):(q(),xe("span",e1,Oe(S.$t("msg.successfullySubmittedFormData")),1))]}),_:1}),B(e).show_blank_form||B(e).submit_another_form?(q(),xe("div",t1,[(qt=B(e))!=null&&qt.show_blank_form?(q(),xe("p",r1,Oe(S.$t("labels.newFormLoaded"))+" "+Oe(B(u))+" "+Oe(S.$t("general.seconds").toLowerCase()),1)):Ee("",!0),J("div",n1,[(Qt=B(e))!=null&&Qt.submit_another_form?(q(),Ne(Y,{key:0,type:"secondary",size:B(v)?"medium":"small",onClick:R[0]||(R[0]=N=>f.value=!1)},{default:_e(()=>[ot(Oe(S.$t("activity.submitAnotherForm")),1)]),_:1},8,["size"])):Ee("",!0)])])):Ee("",!0)])):Ee("",!0)])):(q(),xe(Ct,{key:2},[de(he,{visible:g.value,"onUpdate:visible":R[1]||(R[1]=N=>g.value=N),closable:!1,width:"28rem",centered:"",footer:null,"wrap-class-name":"nc-modal-generate-token","destroy-on-close":"",onCancel:R[2]||(R[2]=N=>_.value=!1)},{default:_e(()=>[J("div",i1,[Pr(de(B(Go),{onDecode:O,onLoaded:w},null,512),[[Mr,_.value]])])]),_:1},8,["visible"]),de(je,{class:"bg-gray-50/75 rounded-3xl","model-value":B(s),inline:"",transition:""},{default:_e(()=>[J("div",a1,[de(Se,{size:"large"})])]),_:1},8,["model-value"]),J("div",o1,[de(tn,{model:B(i)},{default:_e(()=>[J("div",f1,[J("div",u1,[(q(!0),xe(Ct,null,fn(B(o),(N,at)=>{var Ke;return q(),xe("div",{key:at,class:"flex flex-col gap-2","data-testid":`nc-shared-form-item-${(Ke=N.title)==null?void 0:Ke.replace(" ","")}`},[J("div",c1,[J("span",null,Oe(N.label||N.title),1),p(N,N.required)?(q(),xe("span",l1," *")):Ee("",!0)]),N!=null&&N.description?(q(),xe("div",h1,[de(X,{value:N==null?void 0:N.description,class:"!h-auto -ml-1","is-form-field":"","read-only":"","sync-value-change":""},null,8,["value"])])):Ee("",!0),J("div",null,[de(en,{disabled:!(N!=null&&N.read_only)},{title:_e(()=>[ot(Oe(S.$t("activity.preFilledFields.lockedFieldTooltip")),1)]),default:_e(()=>[N.title&&B(h)[N.title]?(q(),Ne(Jr,un({key:0,name:B(h)[N.title],class:"!my-0 nc-input-required-error",ref_for:!0},B(l)[B(h)[N.title]]),{default:_e(()=>[de(Qr,{class:"flex relative"},{default:_e(()=>{var Jt,er,tr;return[B(sn)(N)?(q(),Ne($e,{key:0,"model-value":null,class:ir(["mt-0 nc-input nc-cell",[`nc-form-input-${(Jt=N.title)==null?void 0:Jt.replaceAll(" ","")}`,{readonly:N==null?void 0:N.read_only}]]),"data-testid":`nc-form-input-cell-${N.label||N.title}`,column:N,"read-only":N==null?void 0:N.read_only},null,8,["data-testid","class","column","read-only"])):(q(),Ne(Ze,{key:1,modelValue:B(i)[N.title],"onUpdate:modelValue":[rr=>B(i)[N.title]=rr,()=>{B(d)(B(h)[N.title])}],class:ir(["nc-input truncate",[`nc-form-input-${(er=N.title)==null?void 0:er.replaceAll(" ","")}`,{"layout-list":(tr=("parseProp"in S?S.parseProp:B(nr))(N==null?void 0:N.meta))==null?void 0:tr.isList,readonly:N==null?void 0:N.read_only}]]),"data-testid":`nc-form-input-cell-${N.label||N.title}`,column:N,"edit-enabled":!(N!=null&&N.read_only),"read-only":N==null?void 0:N.read_only},null,8,["modelValue","onUpdate:modelValue","data-testid","class","column","edit-enabled","read-only"])),N.enable_scanner?(q(),Ne(qr,{key:2,class:"nc-btn-fill-form-column-by-scan nc-toolbar-btn",alt:S.$t("activity.fillByCodeScan"),onClick:rr=>E(N.title)},{default:_e(()=>[J("div",d1,[(q(),Ne(cn(("iconMap"in S?S.iconMap:B(ln)).qrCodeScan),{class:"h-5 w-5"}))])]),_:2},1032,["alt","onClick"])):Ee("",!0)]}),_:2},1024)]),_:2},1040,["name"])):Ee("",!0)]),_:2},1032,["disabled"])])],8,s1)}),128))]),J("div",v1,[de(Y,{"html-type":"reset",type:"secondary",size:B(v)?"medium":"small",disabled:B(s),class:"nc-shared-form-button shared-form-clear-button","data-testid":"shared-form-clear-button",onClick:B(n)},{default:_e(()=>[ot(Oe(S.$t("activity.clearForm")),1)]),_:1},8,["size","disabled","onClick"]),de(Y,{disabled:B(c),type:"primary",size:B(v)?"medium":"small",class:"nc-shared-form-button shared-form-submit-button","data-testid":"shared-form-submit-button",onClick:B(t)},{default:_e(()=>[ot(Oe(S.$t("general.submit")),1)]),_:1},8,["disabled","size","onClick"])])])]),_:1},8,["model"])]),J("div",null,[de(rn,{class:"!my-6 !md:my-8"}),J("div",x1,[de(nn)])])],64))],64)):Ee("",!0)]),p1])}}}),X1=Rr(g1,[["__scopeId","data-v-7be48f93"]]);export{X1 as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{u as m}from"./
|
1
|
+
import{u as m}from"./C5YDuKgZ.js";import{a as v}from"./BPXkp7pR.js";import{r as S,f as o,p}from"./NHZFd8bQ.js";const[M,h]=m(a=>{const t=S(a),s=o({get:()=>{var e,r;return((r=(e=t.value)==null?void 0:e.rowMeta)==null?void 0:r.ltarState)??{}},set:e=>{t.value&&(t.value.rowMeta||(t.value.rowMeta={}),t.value.rowMeta.ltarState=e)}}),l=o(()=>{var e;return((e=p(a).rowMeta)==null?void 0:e.new)??!1}),{addLTARRef:u,removeLTARRef:n,syncLTARRefs:R,loadRow:c,clearLTARCell:w,cleaMMCell:f}=v();return{row:a,state:s,isNew:l,addLTARRef:(...e)=>u(t.value,...e),removeLTARRef:(...e)=>n(t.value,...e),syncLTARRefs:(...e)=>R(t.value,...e),loadRow:(...e)=>c(t.value,...e),currentRow:t,clearLTARCell:(...e)=>w(t.value,...e),cleaMMCell:(...e)=>f(t.value,...e)}},"smartsheet-row-store");function d(){const a=h();if(a==null)throw new Error("Please call `useSmartsheetRowStore` on the appropriate parent component");return a}export{d as a,M as u};
|
@@ -1 +1 @@
|
|
1
|
-
import Ye from"./D1_wgH1i.js";import ze from"./C9TR8pMm.js";import{e as Ke,S as D,r as N,bU as Pe,cH as He,cX as Qe,bP as Xe,af as qe,cO as We,bG as Je,f as Y,d9 as Ze,bf as ea,bd as aa,bH as sa,c8 as Ie,bO as d,dT as ve,bi as fe,b as Ce,aI as _e,aR as ta,k as r,l as f,m as c,a9 as g,c6 as E,p as a,a8 as A,aT as x,z as w,b_ as Z,ay as ee,bA as Le,aU as z,aB as V,b1 as I,aS as M,aC as X,F as Ne,an as la,bo as oa,bq as ia,am as na,aH as ra,aV as da,aW as ca,aX as ua,cw as pa,bx as ma,by as va,aQ as fa}from"./D0skW1jq.js";import{_ as _a}from"./EPaHYVRO.js";import{_ as wa}from"./CieNK_Hy.js";import{_ as ga}from"./CpYnnah9.js";import{_ as ya}from"./COU5RsPn.js";import{u as ba}from"./BzcRdSjL.js";import{u as xa}from"./Dp03Bz--.js";import{o as ha}from"./Wfb3YMK3.js";import{u as ka}from"./BPu-in_i.js";import{_ as Aa}from"./Cng_fVI_.js";import{D as Ia}from"./DeiJLuN8.js";import"./DglPsyiE.js";import{I as Ca}from"./CJL5s59L.js";import{S as La,_ as Na}from"./CP1s9025.js";import"./DKgzeeDD.js";import"./BmZeKA3g.js";import"./BipOdpcd.js";import"./TGNXCWG6.js";import"./DFA4S6bS.js";import"./CHRxsLpF.js";import"./BQQOEPN4.js";import"./CY-umpv2.js";import"./D64AfRxx.js";import"./COzZ75BE.js";const Me=q=>(ma("data-v-02231247"),q=q(),va(),q),Ma={class:"flex items-center gap-1"},Sa={class:"flex items-center gap-2"},Oa={key:2,class:"text-capitalize !text-[13px] font-medium"},Ra={key:0,class:"bg-brand-50 text-brand-500 py-1 px-2 text-md rounded-md"},$a={key:0,class:"flex items-center gap-2 px-2 mb-4 w-80"},Ea={class:"pl-2 flex text-sm select-none text-gray-600"},Fa={class:"flex-1 nc-dropdown-cover-image-wrapper flex items-stretch border-1 border-gray-200 rounded-lg transition-all duration-0.3s max-w-[206px]"},Da={class:"w-full flex gap-2 items-center justify-between max-w-[400px]"},Va={class:"flex items-center px-2 border-l-1 border-gray-200 cursor-pointer"},ja={class:"flex flex-col mt-2 pb-2 nc-scrollbar-thin max-h-[47vh] px-2"},Ba={class:"nc-fields-list"},Ua={key:0,class:"px-2 py-6 text-gray-500 flex flex-col items-center gap-6 text-center"},Ga=Me(()=>g("img",{src:Aa,class:"!w-[164px] flex-none",alt:"No search results found"},null,-1)),Ta=["data-testid"],Ya=["onClick"],za={key:0,class:"flex mr-2"},Ka=Me(()=>g("div",{class:"flex-1"},null,-1)),Pa={key:1,class:"flex px-2 gap-2 py-2"},Ha=Ke({__name:"FieldsMenu",setup(q){const l=D(Pe,N()),we=D(He,N()),j=D(Qe,void 0),ae=D(Xe,void 0),{isMobileMode:Se}=qe(),Oe=D(We,N(!1)),ge=D(Je,N(!1)),Re=D(Ze,Y(()=>!1)),{$api:K,$e:ye}=la(),{t:be}=ea(),{metas:xe,getMeta:$e}=aa(),{showSystemFields:W,fields:p,filteredFieldList:se,numberOfHiddenFields:te,filterQuery:B,showAll:le,hideAll:oe,saveOrUpdate:Ee,metaColumnById:U,loadViewColumns:ie,toggleFieldStyles:ne,toggleFieldVisibility:Fe,isLocalMode:De}=ba(),{eventBus:Ve,isDefaultView:je}=xa(),{addUndo:G,defineViewScope:T}=sa();Ve.on(e=>{(e===Ie.FIELD_RELOAD||e===Ie.MAPPED_BY_COLUMN_CHANGE)&&ie()});const Be=Y(()=>{var t,o,n,u;if(((t=l.value)==null?void 0:t.type)!==d.GRID&&((o=l.value)==null?void 0:o.type)!==d.CALENDAR)return null;const e=(n=Object.values(U.value))==null?void 0:n.find(m=>m==null?void 0:m.pv);return(u=se.value)==null?void 0:u.find(m=>m.fk_column_id===(e==null?void 0:e.id))}),re=async(e,t=!1)=>{try{if(!p.value||(t||G({undo:{fn:()=>{if(!p.value)return;const o=p.value[e.moved.newIndex];p.value[e.moved.newIndex]=p.value[e.moved.oldIndex],p.value[e.moved.oldIndex]=o,re({moved:{newIndex:e.moved.oldIndex,oldIndex:e.moved.newIndex}},!0)},args:[]},redo:{fn:()=>{if(!p.value)return;const o=p.value[e.moved.oldIndex];p.value[e.moved.oldIndex]=p.value[e.moved.newIndex],p.value[e.moved.newIndex]=o,re(e,!0)},args:[]},scope:T({view:l.value})}),p.value.length<2))return;await Promise.all(p.value.map(async(o,n)=>{o.order!==n+1&&(o.order=n+1,await Ee(o,n,!0,!!je.value))})),await ie(),ye("a:fields:reorder")}catch(o){oa.error(await ia(o))}},P=N([]),de=async e=>{var t,o,n,u,m,h,i,y,C,_,L,b,O;(((t=l.value)==null?void 0:t.type)===d.GALLERY||((o=l.value)==null?void 0:o.type)===d.KANBAN||((n=l.value)==null?void 0:n.type)===d.CALENDAR)&&((u=l.value)!=null&&u.id)&&((m=l.value)!=null&&m.view)&&(((h=l.value)==null?void 0:h.type)===d.GALLERY?(await K.dbView.galleryUpdate((i=l.value)==null?void 0:i.id,{fk_cover_image_col_id:e}),l.value.view.fk_cover_image_col_id=e):((y=l.value)==null?void 0:y.type)===d.KANBAN?(await K.dbView.kanbanUpdate((C=l.value)==null?void 0:C.id,{fk_cover_image_col_id:e}),l.value.view.fk_cover_image_col_id=e):((_=l.value)==null?void 0:_.type)===d.CALENDAR&&(await K.dbView.calendarUpdate((L=l.value)==null?void 0:L.id,{fk_cover_image_col_id:e}),l.value.view.fk_cover_image_col_id=e),await(j==null?void 0:j.trigger()),e&&!((O=(b=p.value)==null?void 0:b.find(k=>k.fk_column_id===e))!=null&&O.show)&&await(ae==null?void 0:ae.trigger({shouldShowLoading:!1})))},S=Y({get:()=>{var t,o,n,u,m;const e=(((t=l.value)==null?void 0:t.type)===d.GALLERY||((o=l.value)==null?void 0:o.type)===d.KANBAN)&&((n=l.value)!=null&&n.view)?((u=l.value)==null?void 0:u.view).fk_cover_image_col_id:void 0;return(m=P.value)!=null&&m.find(h=>h.value===e)?e:e===null?null:void 0},set:async e=>{e!==S.value&&(G({undo:{fn:await de,args:[S.value]},redo:{fn:await de,args:[e]},scope:T({view:l.value})}),await de(e))}}),ce=async e=>{var t,o,n,u,m,h,i,y,C,_,L;if(!(![d.GALLERY,d.KANBAN].includes((t=l.value)==null?void 0:t.type)||!((o=l.value)!=null&&o.id)||!((n=l.value)!=null&&n.view))){if(((u=l.value)==null?void 0:u.type)===d.GALLERY){const b={...fe((h=(m=l.value)==null?void 0:m.view)==null?void 0:h.meta),fk_cover_image_object_fit:e};await K.dbView.galleryUpdate((i=l.value)==null?void 0:i.id,{meta:b}),l.value.view.meta=b}else if(((y=l.value)==null?void 0:y.type)===d.KANBAN){const b={...fe((_=(C=l.value)==null?void 0:C.view)==null?void 0:_.meta),fk_cover_image_object_fit:e};await K.dbView.kanbanUpdate((L=l.value)==null?void 0:L.id,{meta:b}),l.value.view.meta=b}await(j==null?void 0:j.trigger())}},Ue=[{value:ve.FIT,label:be("labels.fitImage")},{value:ve.COVER,label:be("labels.coverImageArea")}],F=N({isOpen:!1,isSaving:null}),H=Y({get:()=>{var e,t,o,n,u;return[d.GALLERY,d.KANBAN].includes((e=l.value)==null?void 0:e.type)&&((t=l.value)!=null&&t.view)?((u=fe((n=(o=l.value)==null?void 0:o.view)==null?void 0:n.meta))==null?void 0:u.fk_cover_image_object_fit)||ve.FIT:void 0},set:async e=>{e!==H.value&&(F.value.isSaving=e,G({undo:{fn:ce,args:[H.value]},redo:{fn:ce,args:[e]},scope:T({view:l.value})}),await ce(e)),F.value.isSaving=null,F.value.isOpen=!1}}),Ge=()=>{G({undo:{fn:async()=>{await oe()},args:[]},redo:{fn:async()=>{await le()},args:[]},scope:T({view:l.value})}),le()},Te=()=>{G({undo:{fn:async()=>{await le()},args:[]},redo:{fn:async()=>{await oe()},args:[]},scope:T({view:l.value})}),oe()},ue=Y({get:()=>{var e;return(e=se.value)==null?void 0:e.every(t=>t.show)},set:async e=>{e?await Ge():await Te()}}),he=e=>na(ra(e)?Ye:ze,{columnMeta:e}),Q=N(!1),pe=Y({get:()=>W.value,set:e=>{G({undo:{fn:t=>{W.value=!t},args:[e]},redo:{fn:t=>{W.value=t},args:[e]},scope:T({view:l.value})}),W.value=e}}),me=N(!1),ke=N();return Ce(Q,e=>{e&&(B.value="",setTimeout(()=>{var t;(t=ke.value)==null||t.focus()},100))}),Ce(p,async e=>{var h;if(!e||ge.value||![d.GALLERY,d.KANBAN].includes((h=l.value)==null?void 0:h.type))return;const t=e.filter(i=>i.fk_column_id&&U.value[i.fk_column_id].uidt===_e.Attachment).map(i=>({value:i.fk_column_id,label:i.title}))??[];P.value=[{value:null,label:"No Image"},...t];const o=e.filter(i=>i.fk_column_id&&U.value[i.fk_column_id].uidt===_e.Lookup).map(i=>U.value[i.fk_column_id]),n=new Set,u=async(i,y,C)=>{var L,b,O,k,R,$,s;const _=C||(L=we.value)!=null&&L.id?(k=(O=xe.value[C||((b=we.value)==null?void 0:b.id)])==null?void 0:O.columns)==null?void 0:k.find(v=>{var J;return v.id===((J=y==null?void 0:y.colOptions)==null?void 0:J.fk_relation_column_id)}):void 0;if((R=_==null?void 0:_.colOptions)!=null&&R.fk_related_model_id){await $e(_.colOptions.fk_related_model_id);const v=(s=($=xe.value[_.colOptions.fk_related_model_id])==null?void 0:$.columns)==null?void 0:s.find(J=>{var Ae;return J.id===((Ae=y==null?void 0:y.colOptions)==null?void 0:Ae.fk_lookup_column_id)});v&&ha(v)?n.add(i.id):v&&(v==null?void 0:v.uidt)===_e.Lookup&&await u(i,v,_.colOptions.fk_related_model_id)}};await Promise.allSettled(o.map(i=>u(i,i)));const m=o.filter(i=>n.has(i==null?void 0:i.id)).map(i=>({value:i.id,label:i.title}));P.value=[...P.value,...m]},{immediate:!0}),ka(Q),(e,t)=>{const o=da,n=ca,u=ua,m=La,h=Na,i=pa,y=_a,C=wa,_=ga,L=Ca,b=ya,O=ta("e");return r(),f(_,{visible:a(Q),"onUpdate:visible":t[14]||(t[14]=k=>Z(Q)?Q.value=k:null),trigger:["click"],class:"!xs:hidden","overlay-class-name":"nc-dropdown-fields-menu nc-toolbar-dropdown"},{overlay:c(()=>{var k,R,$;return[g("div",{class:"pt-2 bg-white w-full min-w-72 max-w-80 rounded-lg nc-table-toolbar-menu","data-testid":"nc-fields-menu",onClick:t[13]||(t[13]=E(()=>{},["stop"]))},[!a(ge)&&(((k=a(l))==null?void 0:k.type)===a(d).GALLERY||((R=a(l))==null?void 0:R.type)===a(d).KANBAN)?(r(),A("div",$a,[g("div",Ea,x(e.$t("labels.coverImageField")),1),g("div",Fa,[w(h,{value:a(S),"onUpdate:value":t[0]||(t[0]=s=>Z(S)?S.value=s:null),class:"flex-1 max-w-[calc(100%_-_33px)]","dropdown-class-name":"nc-dropdown-cover-image !rounded-lg",bordered:!1,onClick:t[1]||(t[1]=E(()=>{},["stop"]))},{suffixIcon:c(()=>[w(o,{class:"text-gray-700",icon:"arrowDown"})]),default:c(()=>[(r(!0),A(ee,null,Le(a(P),s=>(r(),f(m,{key:s.value,value:s.value},{default:c(()=>[g("div",Da,[g("div",{class:z(["flex-1 flex items-center gap-1",{"max-w-[calc(100%_-_20px)]":a(S)===s.value,"max-w-full":a(S)!==s.value}])},[s.value?(r(),f(V(he(a(U)[s.value])),{key:0,class:"!w-3.5 !h-3.5 !text-gray-700 !ml-0"})):I("",!0),w(u,{class:"flex-1 max-w-[calc(100%_-_20px)] truncate","show-on-truncate-only":""},{title:c(()=>[M(x(s.label),1)]),default:c(()=>[M(x(s.label),1)]),_:2},1024)],2),a(S)===s.value?(r(),f(o,{key:0,id:"nc-selected-item-icon",icon:"check",class:"flex-none text-primary w-4 h-4"})):I("",!0)])]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),a(H)?(r(),f(_,{key:0,visible:a(F).isOpen,"onUpdate:visible":t[2]||(t[2]=s=>a(F).isOpen=s),placement:"bottomRight"},{overlay:c(()=>[w(C,{class:"nc-cover-image-object-fit-dropdown-menu min-w-[168px]"},{default:c(()=>[(r(),A(ee,null,Le(Ue,s=>w(y,{key:s.value,class:"!children:w-full",onClick:E(v=>H.value=s.value,["stop"])},{default:c(()=>[g("span",null,x(s.label),1),s.value===a(F).isSaving?(r(),f(i,{key:0,size:"regular",class:"flex-none"})):s.value===a(H)?(r(),f(o,{key:1,icon:"check",class:"flex-none text-primary w-4 h-4"})):I("",!0)]),_:2},1032,["onClick"])),64))]),_:1})]),default:c(()=>[g("button",Va,[w(o,{icon:"settings",class:z(["h-4 w-4",{"!text-brand-500":a(F).isOpen}])},null,8,["class"])])]),_:1},8,["visible"])):I("",!0)])])):I("",!0),g("div",{class:"px-2",onClick:t[4]||(t[4]=E(()=>{},["stop"]))},[w(L,{ref_key:"fieldsMenuSearchRef",ref:ke,value:a(B),"onUpdate:value":t[3]||(t[3]=s=>Z(B)?B.value=s:null),placeholder:e.$t("placeholder.searchFields"),class:"nc-toolbar-dropdown-search-field-input"},{prefix:c(()=>[w(o,{icon:"search",class:"nc-search-icon h-3.5 w-3.5 mr-1"})]),_:1},8,["value","placeholder"])]),g("div",ja,[g("div",Ba,[($=a(p))!=null&&$.filter(s=>s.title.toLowerCase().includes(a(B).toLowerCase())).length?I("",!0):(r(),A("div",Ua,[Ga,M(" "+x(e.$t("title.noResultsMatchedYourSearch")),1)])),w(a(Ia),{modelValue:a(p),"onUpdate:modelValue":t[7]||(t[7]=s=>Z(p)?p.value=s:null),"item-key":"id","ghost-class":"nc-fields-menu-items-ghost",onChange:t[8]||(t[8]=s=>re(s)),onStart:t[9]||(t[9]=s=>me.value=!0),onEnd:t[10]||(t[10]=s=>me.value=!1)},{item:c(({element:s})=>[a(se).filter(v=>a(l).type!==a(d).CALENDAR?v!==a(Be):!0).includes(s)?(r(),A("div",{key:s.id,"data-testid":`nc-fields-menu-${s.title}`,class:"pl-2 flex flex-row items-center rounded-md hover:bg-gray-100",onClick:t[6]||(t[6]=E(()=>{},["stop"]))},[(r(),f(V(("iconMap"in e?e.iconMap:a(X)).drag),{class:"cursor-move !h-3.75 text-gray-600 mr-1"})),Ne((r(),A("div",{class:"flex flex-row items-center w-full cursor-pointer truncate ml-1 py-[5px] pr-2",onClick:()=>{s.show=!s.show,a(Fe)(s.show,s)}},[(r(),f(V(he(a(U)[s.fk_column_id])),{class:"!w-3.5 !h-3.5 !text-gray-500"})),w(u,{class:"flex-1 pl-1 pr-2 truncate","show-on-truncate-only":"",disabled:a(me)},{title:c(()=>[M(x(s.title),1)]),default:c(()=>[M(x(s.title),1)]),_:2},1032,["disabled"]),a(l).type===a(d).CALENDAR?(r(),A("div",za,[w(n,{class:z([{"!bg-gray-800 !text-white":s.bold},"!rounded-r-none !w-5 !h-5"]),size:"xxsmall",type:"secondary",onClick:E(v=>a(ne)(s,"bold",!s.bold),["stop"])},{default:c(()=>[(r(),f(V(("iconMap"in e?e.iconMap:a(X)).bold),{class:"!w-3 !h-3"}))]),_:2},1032,["class","onClick"]),w(n,{class:z([{"!bg-gray-800 !text-white":s.italic},"!rounded-x-none !border-x-0 !w-5 !h-5"]),size:"xxsmall",type:"secondary",onClick:E(v=>a(ne)(s,"italic",!s.italic),["stop"])},{default:c(()=>[(r(),f(V(("iconMap"in e?e.iconMap:a(X)).italic),{class:"!w-3 !h-3"}))]),_:2},1032,["class","onClick"]),w(n,{class:z([{"!bg-gray-800 !text-white":s.underline},"!rounded-l-none !w-5 !h-5"]),size:"xxsmall",type:"secondary",onClick:E(v=>a(ne)(s,"underline",!s.underline),["stop"])},{default:c(()=>[(r(),f(V(("iconMap"in e?e.iconMap:a(X)).underline),{class:"!w-3 !h-3"}))]),_:2},1032,["class","onClick"])])):I("",!0),w(b,{checked:s.show,disabled:s.isViewEssentialField,size:"xsmall",onChange:t[5]||(t[5]=v=>a(ye)("a:fields:show-hide"))},null,8,["checked","disabled"])],8,Ya)),[[O,["a:fields:show-hide"]]]),Ka],8,Ta)):I("",!0)]),_:1},8,["modelValue"])])]),a(B)?I("",!0):(r(),A("div",Pa,[w(n,{class:"nc-fields-show-all-fields",size:"small",type:"ghost",onClick:t[11]||(t[11]=s=>ue.value=!a(ue))},{default:c(()=>[M(x(a(ue)?e.$t("general.hideAll"):e.$t("general.showAll"))+" "+x(e.$t("objects.fields").toLowerCase()),1)]),_:1}),a(De)?I("",!0):(r(),f(n,{key:0,class:"nc-fields-show-system-fields",size:"small",type:"ghost",onClick:t[12]||(t[12]=s=>pe.value=!a(pe))},{default:c(()=>[M(x(a(pe)?e.$t("title.hideSystemFields"):e.$t("activity.showSystemFields")),1)]),_:1}))]))])]}),default:c(()=>[g("div",{class:z({"nc-active-btn":a(te)})},[Ne((r(),f(n,{disabled:a(Oe),class:"nc-fields-menu-btn nc-toolbar-btn !h-7 !border-0",size:"small",type:"secondary"},{default:c(()=>{var k,R,$,s;return[g("div",Ma,[g("div",Sa,[((k=a(l))==null?void 0:k.type)===a(d).KANBAN||((R=a(l))==null?void 0:R.type)===a(d).GALLERY?(r(),f(o,{key:0,class:"h-4 w-4",icon:"creditCard"})):(r(),f(V(("iconMap"in e?e.iconMap:a(X)).fields),{key:1,class:"h-4 w-4"})),!a(Se)&&!a(Re)?(r(),A("span",Oa,[(($=a(l))==null?void 0:$.type)===a(d).KANBAN||((s=a(l))==null?void 0:s.type)===a(d).GALLERY?(r(),A(ee,{key:0},[M(x(e.$t("title.editCards")),1)],64)):(r(),A(ee,{key:1},[M(x(e.$t("objects.fields")),1)],64))])):I("",!0)]),a(te)?(r(),A("span",Ra,x(a(te)),1)):I("",!0)])]}),_:1},8,["disabled"])),[[O,["c:fields"]]])],2)]),_:1},8,["visible"])}}}),bs=fa(Ha,[["__scopeId","data-v-02231247"]]);export{bs as default};
|
1
|
+
import Ye from"./Bh8L_8vr.js";import ze from"./BBW1h0ks.js";import{e as Ke,S as D,r as N,bU as Pe,cH as He,cX as Qe,bP as Xe,af as qe,cO as We,bG as Je,f as Y,d9 as Ze,bf as ea,bd as aa,bH as sa,c8 as Ie,bO as d,dT as ve,bi as fe,b as Ce,aI as _e,aR as ta,k as r,l as f,m as c,a9 as g,c6 as E,p as a,a8 as A,aT as x,z as w,b_ as Z,ay as ee,bA as Le,aU as z,aB as V,b1 as I,aS as M,aC as X,F as Ne,an as la,bo as oa,bq as ia,am as na,aH as ra,aV as da,aW as ca,aX as ua,cw as pa,bx as ma,by as va,aQ as fa}from"./NHZFd8bQ.js";import{_ as _a}from"./m9SI53XN.js";import{_ as wa}from"./NuKLqi_C.js";import{_ as ga}from"./CeUvd5CG.js";import{_ as ya}from"./nhJGrFyW.js";import{u as ba}from"./Dl_k7PcY.js";import{u as xa}from"./CpVxdhe3.js";import{o as ha}from"./BjIWxehG.js";import{u as ka}from"./LAEswO5v.js";import{_ as Aa}from"./BhZrVUuE.js";import{D as Ia}from"./ChOVvzZi.js";import"./BE4MlnZf.js";import{I as Ca}from"./LrQ3PXSl.js";import{S as La,_ as Na}from"./KY60TpFQ.js";import"./B33qDdnq.js";import"./BvJHFs9-.js";import"./BZfcRRAG.js";import"./C5YDuKgZ.js";import"./BV5fkeNl.js";import"./B4rH_4ZN.js";import"./BQQOEPN4.js";import"./Ckrtr2Si.js";import"./B_LFFdI9.js";import"./CYRe9VEh.js";const Me=q=>(ma("data-v-02231247"),q=q(),va(),q),Ma={class:"flex items-center gap-1"},Sa={class:"flex items-center gap-2"},Oa={key:2,class:"text-capitalize !text-[13px] font-medium"},Ra={key:0,class:"bg-brand-50 text-brand-500 py-1 px-2 text-md rounded-md"},$a={key:0,class:"flex items-center gap-2 px-2 mb-4 w-80"},Ea={class:"pl-2 flex text-sm select-none text-gray-600"},Fa={class:"flex-1 nc-dropdown-cover-image-wrapper flex items-stretch border-1 border-gray-200 rounded-lg transition-all duration-0.3s max-w-[206px]"},Da={class:"w-full flex gap-2 items-center justify-between max-w-[400px]"},Va={class:"flex items-center px-2 border-l-1 border-gray-200 cursor-pointer"},ja={class:"flex flex-col mt-2 pb-2 nc-scrollbar-thin max-h-[47vh] px-2"},Ba={class:"nc-fields-list"},Ua={key:0,class:"px-2 py-6 text-gray-500 flex flex-col items-center gap-6 text-center"},Ga=Me(()=>g("img",{src:Aa,class:"!w-[164px] flex-none",alt:"No search results found"},null,-1)),Ta=["data-testid"],Ya=["onClick"],za={key:0,class:"flex mr-2"},Ka=Me(()=>g("div",{class:"flex-1"},null,-1)),Pa={key:1,class:"flex px-2 gap-2 py-2"},Ha=Ke({__name:"FieldsMenu",setup(q){const l=D(Pe,N()),we=D(He,N()),j=D(Qe,void 0),ae=D(Xe,void 0),{isMobileMode:Se}=qe(),Oe=D(We,N(!1)),ge=D(Je,N(!1)),Re=D(Ze,Y(()=>!1)),{$api:K,$e:ye}=la(),{t:be}=ea(),{metas:xe,getMeta:$e}=aa(),{showSystemFields:W,fields:p,filteredFieldList:se,numberOfHiddenFields:te,filterQuery:B,showAll:le,hideAll:oe,saveOrUpdate:Ee,metaColumnById:U,loadViewColumns:ie,toggleFieldStyles:ne,toggleFieldVisibility:Fe,isLocalMode:De}=ba(),{eventBus:Ve,isDefaultView:je}=xa(),{addUndo:G,defineViewScope:T}=sa();Ve.on(e=>{(e===Ie.FIELD_RELOAD||e===Ie.MAPPED_BY_COLUMN_CHANGE)&&ie()});const Be=Y(()=>{var t,o,n,u;if(((t=l.value)==null?void 0:t.type)!==d.GRID&&((o=l.value)==null?void 0:o.type)!==d.CALENDAR)return null;const e=(n=Object.values(U.value))==null?void 0:n.find(m=>m==null?void 0:m.pv);return(u=se.value)==null?void 0:u.find(m=>m.fk_column_id===(e==null?void 0:e.id))}),re=async(e,t=!1)=>{try{if(!p.value||(t||G({undo:{fn:()=>{if(!p.value)return;const o=p.value[e.moved.newIndex];p.value[e.moved.newIndex]=p.value[e.moved.oldIndex],p.value[e.moved.oldIndex]=o,re({moved:{newIndex:e.moved.oldIndex,oldIndex:e.moved.newIndex}},!0)},args:[]},redo:{fn:()=>{if(!p.value)return;const o=p.value[e.moved.oldIndex];p.value[e.moved.oldIndex]=p.value[e.moved.newIndex],p.value[e.moved.newIndex]=o,re(e,!0)},args:[]},scope:T({view:l.value})}),p.value.length<2))return;await Promise.all(p.value.map(async(o,n)=>{o.order!==n+1&&(o.order=n+1,await Ee(o,n,!0,!!je.value))})),await ie(),ye("a:fields:reorder")}catch(o){oa.error(await ia(o))}},P=N([]),de=async e=>{var t,o,n,u,m,h,i,y,C,_,L,b,O;(((t=l.value)==null?void 0:t.type)===d.GALLERY||((o=l.value)==null?void 0:o.type)===d.KANBAN||((n=l.value)==null?void 0:n.type)===d.CALENDAR)&&((u=l.value)!=null&&u.id)&&((m=l.value)!=null&&m.view)&&(((h=l.value)==null?void 0:h.type)===d.GALLERY?(await K.dbView.galleryUpdate((i=l.value)==null?void 0:i.id,{fk_cover_image_col_id:e}),l.value.view.fk_cover_image_col_id=e):((y=l.value)==null?void 0:y.type)===d.KANBAN?(await K.dbView.kanbanUpdate((C=l.value)==null?void 0:C.id,{fk_cover_image_col_id:e}),l.value.view.fk_cover_image_col_id=e):((_=l.value)==null?void 0:_.type)===d.CALENDAR&&(await K.dbView.calendarUpdate((L=l.value)==null?void 0:L.id,{fk_cover_image_col_id:e}),l.value.view.fk_cover_image_col_id=e),await(j==null?void 0:j.trigger()),e&&!((O=(b=p.value)==null?void 0:b.find(k=>k.fk_column_id===e))!=null&&O.show)&&await(ae==null?void 0:ae.trigger({shouldShowLoading:!1})))},S=Y({get:()=>{var t,o,n,u,m;const e=(((t=l.value)==null?void 0:t.type)===d.GALLERY||((o=l.value)==null?void 0:o.type)===d.KANBAN)&&((n=l.value)!=null&&n.view)?((u=l.value)==null?void 0:u.view).fk_cover_image_col_id:void 0;return(m=P.value)!=null&&m.find(h=>h.value===e)?e:e===null?null:void 0},set:async e=>{e!==S.value&&(G({undo:{fn:await de,args:[S.value]},redo:{fn:await de,args:[e]},scope:T({view:l.value})}),await de(e))}}),ce=async e=>{var t,o,n,u,m,h,i,y,C,_,L;if(!(![d.GALLERY,d.KANBAN].includes((t=l.value)==null?void 0:t.type)||!((o=l.value)!=null&&o.id)||!((n=l.value)!=null&&n.view))){if(((u=l.value)==null?void 0:u.type)===d.GALLERY){const b={...fe((h=(m=l.value)==null?void 0:m.view)==null?void 0:h.meta),fk_cover_image_object_fit:e};await K.dbView.galleryUpdate((i=l.value)==null?void 0:i.id,{meta:b}),l.value.view.meta=b}else if(((y=l.value)==null?void 0:y.type)===d.KANBAN){const b={...fe((_=(C=l.value)==null?void 0:C.view)==null?void 0:_.meta),fk_cover_image_object_fit:e};await K.dbView.kanbanUpdate((L=l.value)==null?void 0:L.id,{meta:b}),l.value.view.meta=b}await(j==null?void 0:j.trigger())}},Ue=[{value:ve.FIT,label:be("labels.fitImage")},{value:ve.COVER,label:be("labels.coverImageArea")}],F=N({isOpen:!1,isSaving:null}),H=Y({get:()=>{var e,t,o,n,u;return[d.GALLERY,d.KANBAN].includes((e=l.value)==null?void 0:e.type)&&((t=l.value)!=null&&t.view)?((u=fe((n=(o=l.value)==null?void 0:o.view)==null?void 0:n.meta))==null?void 0:u.fk_cover_image_object_fit)||ve.FIT:void 0},set:async e=>{e!==H.value&&(F.value.isSaving=e,G({undo:{fn:ce,args:[H.value]},redo:{fn:ce,args:[e]},scope:T({view:l.value})}),await ce(e)),F.value.isSaving=null,F.value.isOpen=!1}}),Ge=()=>{G({undo:{fn:async()=>{await oe()},args:[]},redo:{fn:async()=>{await le()},args:[]},scope:T({view:l.value})}),le()},Te=()=>{G({undo:{fn:async()=>{await le()},args:[]},redo:{fn:async()=>{await oe()},args:[]},scope:T({view:l.value})}),oe()},ue=Y({get:()=>{var e;return(e=se.value)==null?void 0:e.every(t=>t.show)},set:async e=>{e?await Ge():await Te()}}),he=e=>na(ra(e)?Ye:ze,{columnMeta:e}),Q=N(!1),pe=Y({get:()=>W.value,set:e=>{G({undo:{fn:t=>{W.value=!t},args:[e]},redo:{fn:t=>{W.value=t},args:[e]},scope:T({view:l.value})}),W.value=e}}),me=N(!1),ke=N();return Ce(Q,e=>{e&&(B.value="",setTimeout(()=>{var t;(t=ke.value)==null||t.focus()},100))}),Ce(p,async e=>{var h;if(!e||ge.value||![d.GALLERY,d.KANBAN].includes((h=l.value)==null?void 0:h.type))return;const t=e.filter(i=>i.fk_column_id&&U.value[i.fk_column_id].uidt===_e.Attachment).map(i=>({value:i.fk_column_id,label:i.title}))??[];P.value=[{value:null,label:"No Image"},...t];const o=e.filter(i=>i.fk_column_id&&U.value[i.fk_column_id].uidt===_e.Lookup).map(i=>U.value[i.fk_column_id]),n=new Set,u=async(i,y,C)=>{var L,b,O,k,R,$,s;const _=C||(L=we.value)!=null&&L.id?(k=(O=xe.value[C||((b=we.value)==null?void 0:b.id)])==null?void 0:O.columns)==null?void 0:k.find(v=>{var J;return v.id===((J=y==null?void 0:y.colOptions)==null?void 0:J.fk_relation_column_id)}):void 0;if((R=_==null?void 0:_.colOptions)!=null&&R.fk_related_model_id){await $e(_.colOptions.fk_related_model_id);const v=(s=($=xe.value[_.colOptions.fk_related_model_id])==null?void 0:$.columns)==null?void 0:s.find(J=>{var Ae;return J.id===((Ae=y==null?void 0:y.colOptions)==null?void 0:Ae.fk_lookup_column_id)});v&&ha(v)?n.add(i.id):v&&(v==null?void 0:v.uidt)===_e.Lookup&&await u(i,v,_.colOptions.fk_related_model_id)}};await Promise.allSettled(o.map(i=>u(i,i)));const m=o.filter(i=>n.has(i==null?void 0:i.id)).map(i=>({value:i.id,label:i.title}));P.value=[...P.value,...m]},{immediate:!0}),ka(Q),(e,t)=>{const o=da,n=ca,u=ua,m=La,h=Na,i=pa,y=_a,C=wa,_=ga,L=Ca,b=ya,O=ta("e");return r(),f(_,{visible:a(Q),"onUpdate:visible":t[14]||(t[14]=k=>Z(Q)?Q.value=k:null),trigger:["click"],class:"!xs:hidden","overlay-class-name":"nc-dropdown-fields-menu nc-toolbar-dropdown"},{overlay:c(()=>{var k,R,$;return[g("div",{class:"pt-2 bg-white w-full min-w-72 max-w-80 rounded-lg nc-table-toolbar-menu","data-testid":"nc-fields-menu",onClick:t[13]||(t[13]=E(()=>{},["stop"]))},[!a(ge)&&(((k=a(l))==null?void 0:k.type)===a(d).GALLERY||((R=a(l))==null?void 0:R.type)===a(d).KANBAN)?(r(),A("div",$a,[g("div",Ea,x(e.$t("labels.coverImageField")),1),g("div",Fa,[w(h,{value:a(S),"onUpdate:value":t[0]||(t[0]=s=>Z(S)?S.value=s:null),class:"flex-1 max-w-[calc(100%_-_33px)]","dropdown-class-name":"nc-dropdown-cover-image !rounded-lg",bordered:!1,onClick:t[1]||(t[1]=E(()=>{},["stop"]))},{suffixIcon:c(()=>[w(o,{class:"text-gray-700",icon:"arrowDown"})]),default:c(()=>[(r(!0),A(ee,null,Le(a(P),s=>(r(),f(m,{key:s.value,value:s.value},{default:c(()=>[g("div",Da,[g("div",{class:z(["flex-1 flex items-center gap-1",{"max-w-[calc(100%_-_20px)]":a(S)===s.value,"max-w-full":a(S)!==s.value}])},[s.value?(r(),f(V(he(a(U)[s.value])),{key:0,class:"!w-3.5 !h-3.5 !text-gray-700 !ml-0"})):I("",!0),w(u,{class:"flex-1 max-w-[calc(100%_-_20px)] truncate","show-on-truncate-only":""},{title:c(()=>[M(x(s.label),1)]),default:c(()=>[M(x(s.label),1)]),_:2},1024)],2),a(S)===s.value?(r(),f(o,{key:0,id:"nc-selected-item-icon",icon:"check",class:"flex-none text-primary w-4 h-4"})):I("",!0)])]),_:2},1032,["value"]))),128))]),_:1},8,["value"]),a(H)?(r(),f(_,{key:0,visible:a(F).isOpen,"onUpdate:visible":t[2]||(t[2]=s=>a(F).isOpen=s),placement:"bottomRight"},{overlay:c(()=>[w(C,{class:"nc-cover-image-object-fit-dropdown-menu min-w-[168px]"},{default:c(()=>[(r(),A(ee,null,Le(Ue,s=>w(y,{key:s.value,class:"!children:w-full",onClick:E(v=>H.value=s.value,["stop"])},{default:c(()=>[g("span",null,x(s.label),1),s.value===a(F).isSaving?(r(),f(i,{key:0,size:"regular",class:"flex-none"})):s.value===a(H)?(r(),f(o,{key:1,icon:"check",class:"flex-none text-primary w-4 h-4"})):I("",!0)]),_:2},1032,["onClick"])),64))]),_:1})]),default:c(()=>[g("button",Va,[w(o,{icon:"settings",class:z(["h-4 w-4",{"!text-brand-500":a(F).isOpen}])},null,8,["class"])])]),_:1},8,["visible"])):I("",!0)])])):I("",!0),g("div",{class:"px-2",onClick:t[4]||(t[4]=E(()=>{},["stop"]))},[w(L,{ref_key:"fieldsMenuSearchRef",ref:ke,value:a(B),"onUpdate:value":t[3]||(t[3]=s=>Z(B)?B.value=s:null),placeholder:e.$t("placeholder.searchFields"),class:"nc-toolbar-dropdown-search-field-input"},{prefix:c(()=>[w(o,{icon:"search",class:"nc-search-icon h-3.5 w-3.5 mr-1"})]),_:1},8,["value","placeholder"])]),g("div",ja,[g("div",Ba,[($=a(p))!=null&&$.filter(s=>s.title.toLowerCase().includes(a(B).toLowerCase())).length?I("",!0):(r(),A("div",Ua,[Ga,M(" "+x(e.$t("title.noResultsMatchedYourSearch")),1)])),w(a(Ia),{modelValue:a(p),"onUpdate:modelValue":t[7]||(t[7]=s=>Z(p)?p.value=s:null),"item-key":"id","ghost-class":"nc-fields-menu-items-ghost",onChange:t[8]||(t[8]=s=>re(s)),onStart:t[9]||(t[9]=s=>me.value=!0),onEnd:t[10]||(t[10]=s=>me.value=!1)},{item:c(({element:s})=>[a(se).filter(v=>a(l).type!==a(d).CALENDAR?v!==a(Be):!0).includes(s)?(r(),A("div",{key:s.id,"data-testid":`nc-fields-menu-${s.title}`,class:"pl-2 flex flex-row items-center rounded-md hover:bg-gray-100",onClick:t[6]||(t[6]=E(()=>{},["stop"]))},[(r(),f(V(("iconMap"in e?e.iconMap:a(X)).drag),{class:"cursor-move !h-3.75 text-gray-600 mr-1"})),Ne((r(),A("div",{class:"flex flex-row items-center w-full cursor-pointer truncate ml-1 py-[5px] pr-2",onClick:()=>{s.show=!s.show,a(Fe)(s.show,s)}},[(r(),f(V(he(a(U)[s.fk_column_id])),{class:"!w-3.5 !h-3.5 !text-gray-500"})),w(u,{class:"flex-1 pl-1 pr-2 truncate","show-on-truncate-only":"",disabled:a(me)},{title:c(()=>[M(x(s.title),1)]),default:c(()=>[M(x(s.title),1)]),_:2},1032,["disabled"]),a(l).type===a(d).CALENDAR?(r(),A("div",za,[w(n,{class:z([{"!bg-gray-800 !text-white":s.bold},"!rounded-r-none !w-5 !h-5"]),size:"xxsmall",type:"secondary",onClick:E(v=>a(ne)(s,"bold",!s.bold),["stop"])},{default:c(()=>[(r(),f(V(("iconMap"in e?e.iconMap:a(X)).bold),{class:"!w-3 !h-3"}))]),_:2},1032,["class","onClick"]),w(n,{class:z([{"!bg-gray-800 !text-white":s.italic},"!rounded-x-none !border-x-0 !w-5 !h-5"]),size:"xxsmall",type:"secondary",onClick:E(v=>a(ne)(s,"italic",!s.italic),["stop"])},{default:c(()=>[(r(),f(V(("iconMap"in e?e.iconMap:a(X)).italic),{class:"!w-3 !h-3"}))]),_:2},1032,["class","onClick"]),w(n,{class:z([{"!bg-gray-800 !text-white":s.underline},"!rounded-l-none !w-5 !h-5"]),size:"xxsmall",type:"secondary",onClick:E(v=>a(ne)(s,"underline",!s.underline),["stop"])},{default:c(()=>[(r(),f(V(("iconMap"in e?e.iconMap:a(X)).underline),{class:"!w-3 !h-3"}))]),_:2},1032,["class","onClick"])])):I("",!0),w(b,{checked:s.show,disabled:s.isViewEssentialField,size:"xsmall",onChange:t[5]||(t[5]=v=>a(ye)("a:fields:show-hide"))},null,8,["checked","disabled"])],8,Ya)),[[O,["a:fields:show-hide"]]]),Ka],8,Ta)):I("",!0)]),_:1},8,["modelValue"])])]),a(B)?I("",!0):(r(),A("div",Pa,[w(n,{class:"nc-fields-show-all-fields",size:"small",type:"ghost",onClick:t[11]||(t[11]=s=>ue.value=!a(ue))},{default:c(()=>[M(x(a(ue)?e.$t("general.hideAll"):e.$t("general.showAll"))+" "+x(e.$t("objects.fields").toLowerCase()),1)]),_:1}),a(De)?I("",!0):(r(),f(n,{key:0,class:"nc-fields-show-system-fields",size:"small",type:"ghost",onClick:t[12]||(t[12]=s=>pe.value=!a(pe))},{default:c(()=>[M(x(a(pe)?e.$t("title.hideSystemFields"):e.$t("activity.showSystemFields")),1)]),_:1}))]))])]}),default:c(()=>[g("div",{class:z({"nc-active-btn":a(te)})},[Ne((r(),f(n,{disabled:a(Oe),class:"nc-fields-menu-btn nc-toolbar-btn !h-7 !border-0",size:"small",type:"secondary"},{default:c(()=>{var k,R,$,s;return[g("div",Ma,[g("div",Sa,[((k=a(l))==null?void 0:k.type)===a(d).KANBAN||((R=a(l))==null?void 0:R.type)===a(d).GALLERY?(r(),f(o,{key:0,class:"h-4 w-4",icon:"creditCard"})):(r(),f(V(("iconMap"in e?e.iconMap:a(X)).fields),{key:1,class:"h-4 w-4"})),!a(Se)&&!a(Re)?(r(),A("span",Oa,[(($=a(l))==null?void 0:$.type)===a(d).KANBAN||((s=a(l))==null?void 0:s.type)===a(d).GALLERY?(r(),A(ee,{key:0},[M(x(e.$t("title.editCards")),1)],64)):(r(),A(ee,{key:1},[M(x(e.$t("objects.fields")),1)],64))])):I("",!0)]),a(te)?(r(),A("span",Ra,x(a(te)),1)):I("",!0)])]}),_:1},8,["disabled"])),[[O,["c:fields"]]])],2)]),_:1},8,["visible"])}}}),bs=fa(Ha,[["__scopeId","data-v-02231247"]]);export{bs as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{e as t,k as n,a8 as a,z as o,m as r,a9 as l,n as c,cp as m,cq as _,bC as i}from"./
|
1
|
+
import{e as t,k as n,a8 as a,z as o,m as r,a9 as l,n as c,cp as m,cq as _,bC as i}from"./NHZFd8bQ.js";const p={class:"nc-menu-item-inner"},y=t({inheritAttrs:!1,__name:"MenuItem",props:{style:{type:[Boolean,null,String,Object,Array]}},setup(u){return(e,d)=>{const s=i;return n(),a("div",{class:"w-full",style:_(e.style)},[o(s,m(e.$attrs,{class:"nc-menu-item"}),{default:r(()=>[l("div",p,[c(e.$slots,"default")])]),_:3},16)],4)}}});export{y as _};
|
@@ -1,2 +1,2 @@
|
|
1
|
-
const __vite__fileDeps=["./
|
2
|
-
import{e as oe,S as i,aJ as ae,d1 as ne,d0 as le,ar as se,d2 as re,bV as ie,r as m,c2 as ue,d3 as me,bF as ce,cE as pe,f as R,bZ as de,b as z,k as s,l as v,m as M,p as t,b_ as g,b1 as p,a9 as O,a8 as y,ay as P,bA as _e,c6 as V,z as ve,aD as b,aA as A,aV as fe,aQ as ye}from"./
|
1
|
+
const __vite__fileDeps=["./BWsrBkPc.js","./NHZFd8bQ.js","./entry.6uu-XYG8.css","./gfY1oWFn.js","./KY60TpFQ.js","./B_LFFdI9.js","./BQQOEPN4.js","./CYRe9VEh.js","./BV5fkeNl.js","./BZfcRRAG.js","./Pagination.D7qN7qzC.css","./DqHVb7w6.js","./C5YDuKgZ.js","./Dm1YWlhs.js","./BPXkp7pR.js","./B33qDdnq.js","./boyBAVNN.js","./BWn3cSKa.js","./l2p4hKoB.js","./BjIWxehG.js","./CTrYGv0V.js","./DnFxlRi4.js","./C17-0Owd.js","./BDlHzTvk.js","./DvgZT7js.js","./DxRO0DFU.js","./BE4MlnZf.js","./LrQ3PXSl.js","./B4rH_4ZN.js","./Ckrtr2Si.js","./DEDBCwhz.js","./D7raIqCw.js","./BhE3_y96.js","./CVziAYYM.js","./LinkedItems.CkC9vxER.css","./P0QkPGdf.js","./s0RDr8Yh.js","./UnLinkedItems.BHRDUwM3.css","./DAYX7_s6.js","./CeUvd5CG.js","./LinkRecordDropdown.wdjSyEoY.css"],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
|
2
|
+
import{e as oe,S as i,aJ as ae,d1 as ne,d0 as le,ar as se,d2 as re,bV as ie,r as m,c2 as ue,d3 as me,bF as ce,cE as pe,f as R,bZ as de,b as z,k as s,l as v,m as M,p as t,b_ as g,b1 as p,a9 as O,a8 as y,ay as P,bA as _e,c6 as V,z as ve,aD as b,aA as A,aV as fe,aQ as ye}from"./NHZFd8bQ.js";import{_ as ke}from"./Lv_gHbcP.js";import{a as he}from"./l2p4hKoB.js";import{u as we}from"./DqHVb7w6.js";import{u as Ce}from"./Y45Pvb6W.js";import"./BqKbedJW.js";import"./C5YDuKgZ.js";import"./BWn3cSKa.js";import"./BjIWxehG.js";import"./BPXkp7pR.js";import"./B33qDdnq.js";import"./boyBAVNN.js";import"./Dm1YWlhs.js";import"./CTrYGv0V.js";import"./DnFxlRi4.js";import"./C17-0Owd.js";import"./BDlHzTvk.js";import"./B_LFFdI9.js";import"./BZfcRRAG.js";import"./DvgZT7js.js";const xe=b(()=>A(()=>import("./BWsrBkPc.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34]),import.meta.url).then(l=>l.default||l)),Ie=b(()=>A(()=>import("./P0QkPGdf.js"),__vite__mapDeps([35,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,36,26,27,28,29,30,31,33,37]),import.meta.url).then(l=>l.default||l)),Le=b(()=>A(()=>import("./DAYX7_s6.js"),__vite__mapDeps([38,39,1,2,40]),import.meta.url).then(l=>l.default||l)),Re={class:"nc-cell-field flex items-center gap-1 w-full chips-wrapper min-h-4"},ge={class:"chips flex items-center img-container flex-1 hm-items flex-nowrap min-w-0 overflow-hidden"},Ve={key:0,class:"flex justify-end gap-1 min-h-4 items-center"},be=oe({__name:"ManyToMany",async setup(l){let T,E;const d=i(ae),B=i(ne),c=i(le),S=i(re,se()),F=i(ie),N=i(ue,m(!1)),k=i(me,m(!1)),o=m(!1),n=m(!1),u=m(!1),f=m(!1),{isUIAllowed:H}=ce(),{state:h,isNew:w,removeLTARRef:$}=he(),{relatedTableMeta:G,loadRelatedTableMeta:J,relatedTableDisplayValueProp:C,unlink:K}=we(d,B,w,S.trigger);[T,E]=pe(()=>J()),await T,E();const j=R(()=>{var e;return c!=null&&c.value?(c==null?void 0:c.value)??[]:w.value?((e=h==null?void 0:h.value)==null?void 0:e[d==null?void 0:d.value.title])??[]:[]}),x=R(()=>j.value.reduce((e,a)=>{if(!C.value)return e;const _=a[C.value];return[...e,{value:_,item:a}]},[])),Q=async e=>{w.value?await $(e,d.value):await K(e)},Z=()=>{n.value=!1,o.value=!0,f.value=!1},q=()=>{o.value=!1,n.value=!0},D=()=>{k.value||(n.value=!0,o.value=!1,u.value=!0,f.value=!1)},W=()=>{k.value||(o.value=!0,n.value=!1,u.value=!0,f.value=!0)};Ce(i(de,m(!1)),e=>{switch(e.key){case"Enter":o.value=!0,e.stopPropagation();break}});const I=R(()=>{var e,a;return(a=(e=G.value)==null?void 0:e.columns)==null?void 0:a.find(_=>_.title===C.value)});return z([n,o],()=>{u.value=n.value||o.value}),z(u,e=>{e||(o.value=!1,n.value=!1)},{flush:"post"}),(e,a)=>{const _=ke,U=fe,X=xe,Y=Ie,ee=Le;return s(),v(ee,{"is-open":t(u),"onUpdate:isOpen":a[2]||(a[2]=r=>g(u)?u.value=r:null)},{overlay:M(()=>[t(n)?(s(),v(X,{key:0,modelValue:t(n),"onUpdate:modelValue":a[0]||(a[0]=r=>g(n)?n.value=r:null),"cell-value":t(j),column:t(I),onAttachRecord:Z},null,8,["modelValue","cell-value","column"])):p("",!0),t(o)?(s(),v(Y,{key:1,modelValue:t(o),"onUpdate:modelValue":a[1]||(a[1]=r=>g(o)?o.value=r:null),column:t(I),"hide-back-btn":t(f),onAttachLinkedRecord:q},null,8,["modelValue","column","hide-back-btn"])):p("",!0)]),default:M(()=>{var r;return[O("div",Re,[O("div",ge,[t(x)?(s(),y(P,{key:0},[(s(!0),y(P,null,_e(t(x),(L,te)=>(s(),v(_,{key:te,item:L.item,value:L.value,column:t(I),"show-unlink-button":!0,onUnlink:Ae=>Q(L.item)},null,8,["item","value","column","onUnlink"]))),128)),((r=t(x))==null?void 0:r.length)===10?(s(),y("span",{key:0,class:"caption pointer ml-1 grey--text",onClick:V(D,["stop"])}," more... ")):p("",!0)],64)):p("",!0)]),!t(k)||t(F)?(s(),y("div",Ve,[ve(U,{icon:"expand",class:"text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-arrow-expand",onClick:V(D,["stop"])}),!t(N)&&t(H)("dataEdit")?(s(),v(U,{key:0,icon:"plus",class:"text-sm nc-action-icon text-gray-500/50 hover:text-gray-500 nc-plus",onClick:V(W,["stop"])})):p("",!0)])):p("",!0)])]}),_:1},8,["is-open"])}}}),qe=ye(be,[["__scopeId","data-v-b1571e6f"]]);export{qe as default};
|
@@ -1 +1 @@
|
|
1
|
-
import{_ as W}from"./
|
1
|
+
import{_ as W}from"./BPxXddiW.js";import{gx as q,e as j,b7 as z,r as G,v as X,_ as h,A as Q,dp as J,z as l,aj as U,H as _,aa as K,u as Y,k as C,a8 as B,ay as Z,bA as ee,m as y,p as b,l as V,aB as D,aC as P,a9 as E,aT as te,aW as oe,aQ as ae}from"./NHZFd8bQ.js";import{_ as R,s as ne}from"./KY60TpFQ.js";import"./BE4MlnZf.js";import{I as le}from"./LrQ3PXSl.js";import{_ as ue}from"./BDlHzTvk.js";import"./L9TIwNpK.js";import"./BPS1H-Sz.js";import"./BZfcRRAG.js";import"./B_LFFdI9.js";import"./BQQOEPN4.js";import"./CYRe9VEh.js";import"./BV5fkeNl.js";import"./B4rH_4ZN.js";import"./Ckrtr2Si.js";var f=function(){return null};f.isSelectOption=!0;f.displayName="AAutoCompleteOption";var O=function(){return null};O.isSelectOptGroup=!0;O.displayName="AAutoCompleteOptGroup";function re(o){var t,c;return(o==null||(t=o.type)===null||t===void 0?void 0:t.isSelectOption)||(o==null||(c=o.type)===null||c===void 0?void 0:c.isSelectOptGroup)}var se=function(){return _(_({},U(ne(),["loading","mode","optionLabelProp","labelInValue"])),{},{dataSource:Array,dropdownMenuStyle:{type:Object,default:void 0},dropdownMatchSelectWidth:{type:[Number,Boolean],default:!0},prefixCls:String,showSearch:{type:Boolean,default:void 0},transitionName:String,choiceTransitionName:{type:String,default:"zoom"},autofocus:{type:Boolean,default:void 0},backfill:{type:Boolean,default:void 0},filterOption:{type:[Boolean,Function],default:!1},defaultActiveFirstOption:{type:Boolean,default:!0}})},F=j({compatConfig:{MODE:3},name:"AAutoComplete",inheritAttrs:!1,props:se(),slots:["option"],setup:function(t,c){var n=c.slots,d=c.attrs,A=c.expose;z(!("dataSource"in n),"AutoComplete","`dataSource` slot is deprecated, please use props `options` instead."),z(!("options"in n),"AutoComplete","`options` slot is deprecated, please use props `options` instead.");var g=G(),x=function(){var e,p=K((e=n.default)===null||e===void 0?void 0:e.call(n)),v=p.length?p[0]:void 0;return v},M=function(){var e;(e=g.value)===null||e===void 0||e.focus()},a=function(){var e;(e=g.value)===null||e===void 0||e.blur()};A({focus:M,blur:a});var S=X("select",t),m=S.prefixCls;return function(){var u,e,p=t.size,v=t.dataSource,i=t.notFoundContent,k=i===void 0?(u=n.notFoundContent)===null||u===void 0?void 0:u.call(n):i,r,$=d.class,H=(e={},h(e,$,!!$),h(e,"".concat(m.value,"-lg"),p==="large"),h(e,"".concat(m.value,"-sm"),p==="small"),h(e,"".concat(m.value,"-show-search"),!0),h(e,"".concat(m.value,"-auto-complete"),!0),e);if(t.options===void 0){var w,I,N=((w=n.dataSource)===null||w===void 0?void 0:w.call(n))||((I=n.options)===null||I===void 0?void 0:I.call(n))||[];N.length&&re(N[0])?r=N:r=v?v.map(function(s){if(Q(s))return s;switch(J(s)){case"string":return l(f,{key:s,value:s},{default:function(){return[s]}});case"object":return l(f,{key:s.value,value:s.value},{default:function(){return[s.text]}});default:throw new Error("AutoComplete[dataSource] only supports type `string[] | Object[]`.")}}):[]}var T=U(_(_(_({},t),d),{},{mode:R.SECRET_COMBOBOX_MODE_DO_NOT_USE,getInputElement:x,notFoundContent:k,class:H,ref:g}),["dataSource","loading"]);return l(R,T,_({default:function(){return[r]}},U(n,["default","dataSource","options"])))}}});const ie=q(F,{Option:f,OptGroup:O,install:function(t){return t.component(F.name,F),t.component(f.displayName,f),t.component(O.displayName,O),t}}),ce={class:"flex flex-col py-3 gap-1.5 w-full"},de={class:"mt-1.5"},pe={class:"flex flex-row items-center gap-x-2"},ve={"data-rec":"true"},fe=j({__name:"Headers",props:{modelValue:{}},emits:["update:modelValue"],setup(o,{emit:t}){const d=Y(o,"modelValue",t),A=G([{value:"A-IM"},{value:"Accept"},{value:"Accept-Charset"},{value:"Accept-Encoding"},{value:"Accept-Language"},{value:"Accept-Datetime"},{value:"Access-Control-Request-Method"},{value:"Access-Control-Request-Headers"},{value:"Authorization"},{value:"Cache-Control"},{value:"Connection"},{value:"Content-Length"},{value:"Content-Type"},{value:"Cookie"},{value:"Date"},{value:"Expect"},{value:"Forwarded"},{value:"From"},{value:"Host"},{value:"If-Match"},{value:"If-Modified-Since"},{value:"If-None-Match"},{value:"If-Range"},{value:"If-Unmodified-Since"},{value:"Max-Forwards"},{value:"Origin"},{value:"Pragma"},{value:"Proxy-Authorization"},{value:"Range"},{value:"Referer"},{value:"TE"},{value:"User-Agent"},{value:"Upgrade"},{value:"Via"},{value:"Warning"},{value:"Non-standard headers"},{value:"Dnt"},{value:"X-Requested-With"},{value:"X-CSRF-Token"}]),g=()=>d.value.push({}),x=a=>d.value.splice(a,1),M=(a,S)=>S.value.toUpperCase().includes(a.toUpperCase());return(a,S)=>{const m=W,u=ue,e=ie,p=le,v=oe;return C(),B("div",ce,[(C(!0),B(Z,null,ee(b(d),(i,k)=>(C(),B("div",{key:k,class:"flex relative items-center w-full"},[l(u,{class:"form-item w-8"},{default:y(()=>[l(m,{checked:i.enabled,"onUpdate:checked":r=>i.enabled=r,size:"large",class:"nc-hook-header-checkbox"},null,8,["checked","onUpdate:checked"])]),_:2},1024),l(u,{class:"form-item w-3/6"},{default:y(()=>[l(e,{value:i.name,"onUpdate:value":r=>i.name=r,class:"!rounded-l-lg !rounded-r-0 nc-input-hook-header-key hover:!border-x-0 !border-gray-200",options:b(A),placeholder:a.$t("placeholder.key"),"filter-option":M,"dropdown-class-name":"border-1 border-gray-200"},null,8,["value","onUpdate:value","options","placeholder"])]),_:2},1024),l(u,{class:"form-item w-3/6"},{default:y(()=>[l(p,{value:i.value,"onUpdate:value":r=>i.value=r,placeholder:a.$t("placeholder.value"),class:"nc-webhook-header-value-input !border-x-0 hover:!border-x-0 !border-gray-200 !rounded-none"},null,8,["value","onUpdate:value","placeholder"])]),_:2},1024),l(v,{class:"!rounded-l-none delete-btn !border-gray-200 !shadow-none",type:"secondary",size:"small",disabled:b(d).length===1,onClick:r=>x(k)},{default:y(()=>[(C(),V(D(("iconMap"in a?a.iconMap:b(P)).deleteListItem)))]),_:2},1032,["disabled","onClick"])]))),128)),E("div",de,[l(v,{size:"small",type:"secondary",class:"nc-btn-focus",onClick:g},{default:y(()=>[E("div",pe,[(C(),V(D(("iconMap"in a?a.iconMap:b(P)).plus),{class:"flex-none"})),E("div",ve,te(a.$t("general.add")),1)])]),_:1})])])}}}),Ne=ae(fe,[["__scopeId","data-v-32d339f1"]]);export{Ne as default};
|