order-detail-508b9b8d.js 70 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389
  1. import {
  2. d as G,
  3. q as Le,
  4. e as Ue,
  5. a as l,
  6. A as B,
  7. I as te,
  8. F as pe,
  9. x as qe,
  10. P as ye,
  11. C as Ae,
  12. Q as rt,
  13. R as q,
  14. M as Y,
  15. D as O,
  16. S as ke,
  17. r as Oe,
  18. w as st,
  19. y as je,
  20. z as at,
  21. U as it,
  22. V as Pe,
  23. E as le
  24. } from './index-20bdb712.js';
  25. import { C as j } from './index-a4ff0f6f.js';
  26. import { T as ze } from './index-b0472578.js';
  27. import { M as ut } from './index-10f99a75.js';
  28. import { R as lt, a as Fe } from './index-c497da86.js';
  29. import { C as Be } from './index-6930c802.js';
  30. import { O as ct } from './index-a25e1c12.js';
  31. import { O as dt } from './index-29cade8a.js';
  32. import { F as ft } from './index-61a6f012.js';
  33. import { F as ve } from './index-7f161d6e.js';
  34. import { q as gt } from './base-aba1ba3e.js';
  35. import { O as ht } from './index-7c8aab9e.js';
  36. import { I as mt } from './index-730bdae4.js';
  37. import './Checker-65584c7b.js';
  38. import './index-c814200a.js';
  39. const pt = '_cartConfirm_1q6j7_1',
  40. yt = '_cartConfirmBox_1q6j7_9',
  41. wt = '_cartItem_1q6j7_15',
  42. Ct = '_mlr13_1q6j7_24',
  43. _t = '_protocol_1q6j7_28',
  44. Et = '_paymentContainer_1q6j7_36',
  45. At = '_needPrice_1q6j7_48',
  46. Bt = '_allPrice_1q6j7_64',
  47. Nt = '_cellItem_1q6j7_72',
  48. It = '_img_1q6j7_77',
  49. St = '_cellPrice_1q6j7_85',
  50. Tt = '_numFont_1q6j7_91',
  51. bt = '_numPrefix_1q6j7_94',
  52. Pt = '_goodsContent_1q6j7_98',
  53. Ft = '_goodsNum_1q6j7_98',
  54. vt = '_goodsPrice_1q6j7_104',
  55. Mt = '_free_1q6j7_110',
  56. Dt = '_goodsNums_1q6j7_113',
  57. Rt = '_brandName_1q6j7_128',
  58. Lt = '_model_1q6j7_137',
  59. Ut = '_popupCode_1q6j7_143',
  60. qt = '_codeContainer_1q6j7_147',
  61. kt = '_codeClose_1q6j7_150',
  62. Ot = '_codeImg_1q6j7_160',
  63. jt = '_codeTitle_1q6j7_167',
  64. zt = '_codeName_1q6j7_175',
  65. Vt = '_codeQr_1q6j7_182',
  66. Ht = '_codeBtnText_1q6j7_195',
  67. xt = '_codeTips_1q6j7_206',
  68. Gt = '_tipsTitle_1q6j7_220',
  69. Qt = '_close_1q6j7_226',
  70. Yt = '_codeBottom_1q6j7_231',
  71. Jt = '_title_1q6j7_238',
  72. Kt = '_shareImg_1q6j7_253',
  73. Zt = '_shareText_1q6j7_257',
  74. Xt = '_freight_1q6j7_263',
  75. Wt = '_submitBtn_1q6j7_275',
  76. I = {
  77. cartConfirm: pt,
  78. cartConfirmBox: yt,
  79. cartItem: wt,
  80. mlr13: Ct,
  81. protocol: _t,
  82. paymentContainer: Et,
  83. needPrice: At,
  84. allPrice: Bt,
  85. cellItem: Nt,
  86. img: It,
  87. cellPrice: St,
  88. numFont: Tt,
  89. numPrefix: bt,
  90. goodsContent: Pt,
  91. goodsNum: Ft,
  92. goodsPrice: vt,
  93. free: Mt,
  94. goodsNums: Dt,
  95. brandName: Rt,
  96. model: Lt,
  97. popupCode: Ut,
  98. codeContainer: qt,
  99. codeClose: kt,
  100. codeImg: Ot,
  101. codeTitle: jt,
  102. codeName: zt,
  103. codeQr: Vt,
  104. codeBtnText: Ht,
  105. codeTips: xt,
  106. tipsTitle: Gt,
  107. close: Qt,
  108. codeBottom: Yt,
  109. title: Jt,
  110. shareImg: Kt,
  111. shareText: Zt,
  112. freight: Xt,
  113. submitBtn: Wt
  114. },
  115. $t = '_cellEntry_1kuxn_1',
  116. en = '_cell_1kuxn_1',
  117. tn = '_userName_1kuxn_36',
  118. nn = '_phone_1kuxn_41',
  119. on = '_addressInfo_1kuxn_46',
  120. rn = '_emtry_1kuxn_51',
  121. k = {
  122. cellEntry: $t,
  123. cell: en,
  124. userName: tn,
  125. phone: nn,
  126. addressInfo: on,
  127. emtry: rn
  128. },
  129. sn =
  130. 'data:image/png;base64,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',
  131. an = G({
  132. name: 'cart-address',
  133. props: {
  134. item: { type: Object, default: () => ({}) },
  135. isLink: { type: Boolean, default: !0 },
  136. setAddress: { type: Function, default: e => {} }
  137. },
  138. setup(e) {
  139. const n = Le(),
  140. t = Ue(() =>
  141. [
  142. e.item.provinceName,
  143. e.item.cityName,
  144. e.item.regionName,
  145. e.item.detailAddress
  146. ].join('')
  147. ),
  148. s = () => {
  149. e.isLink && n.push('/shopAddress');
  150. };
  151. return () =>
  152. l(pe, null, [
  153. e.item && e.item.phoneNumber
  154. ? l(
  155. j,
  156. {
  157. class: k.cell,
  158. 'is-link': e.isLink,
  159. onClick: () => s(),
  160. titleStyle: { marginLeft: '0' }
  161. },
  162. {
  163. title: () =>
  164. l('div', null, [
  165. l('span', { class: k.userName }, [e.item.name]),
  166. l('span', { class: k.phone }, [
  167. e.item &&
  168. e.item.phoneNumber &&
  169. e.item.phoneNumber.replace(
  170. /^(\d{3})\d{4}(\d+)/,
  171. '$1****$2'
  172. )
  173. ]),
  174. e.item.defaultStatus &&
  175. l(
  176. ze,
  177. {
  178. type: 'primary',
  179. color:
  180. 'linear-gradient(90deg, #FF8633 0%, #FFB047 100%)',
  181. round: !0,
  182. style: {
  183. 'vertical-align': 'text-top',
  184. marginLeft: '10px',
  185. padding: '1px 8px'
  186. }
  187. },
  188. { default: () => [B('默认')] }
  189. )
  190. ]),
  191. label: () => l('span', { class: k.addressInfo }, [t.value])
  192. }
  193. )
  194. : l(
  195. j,
  196. { class: k.cell, 'is-link': e.isLink, onClick: () => s() },
  197. {
  198. icon: () => l(te, { name: sn, size: 28 }, null),
  199. title: () =>
  200. l('div', { class: k.emtry }, [B('去填写收货地址')])
  201. }
  202. )
  203. ]);
  204. }
  205. }),
  206. un = '_payment_1ot0l_1',
  207. ln = '_title_1ot0l_13',
  208. cn = '_payAmount_1ot0l_21',
  209. dn = '_amount_1ot0l_31',
  210. fn = '_blank_1ot0l_38',
  211. gn = '_payTypeRe_1ot0l_41',
  212. hn = '_recommend_1ot0l_45',
  213. mn = '_payBtn_1ot0l_54',
  214. R = {
  215. payment: un,
  216. title: ln,
  217. payAmount: cn,
  218. amount: dn,
  219. blank: fn,
  220. payTypeRe: gn,
  221. recommend: hn,
  222. payBtn: mn
  223. },
  224. pn = G({
  225. name: 'payment',
  226. props: { paymentConfig: { type: Object, default: {} } },
  227. emits: ['backOut', 'close', 'confirm'],
  228. setup(e, { slots: n, attrs: t, emit: s }) {
  229. const o = qe({ payType: 'wx', pay_channel: '' }),
  230. r = () => {
  231. rt({
  232. message: '是否放弃本次付款',
  233. confirmButtonText: '继续付款',
  234. cancelButtonText: '放弃',
  235. showCancelButton: !0
  236. }).catch(async () => {
  237. await a(), s('backOut'), s('close');
  238. });
  239. },
  240. a = async d => {},
  241. u = async () => {
  242. const d = o.payType;
  243. q().weixin
  244. ? d == 'zfb'
  245. ? ((o.pay_channel = 'alipay_qr'), i('qrCode'))
  246. : d == 'wx' && ((o.pay_channel = 'wx_pub'), i('pay'))
  247. : q().alipay
  248. ? d == 'zfb'
  249. ? ((o.pay_channel = 'alipay_wap'), i('pay'))
  250. : d == 'wx' && ((o.pay_channel = 'wx_pub'), i('qrCode'))
  251. : (d == 'zfb'
  252. ? (o.pay_channel = 'alipay_qr')
  253. : d == 'wx' && (o.pay_channel = 'wx_pub'),
  254. i('qrCode'));
  255. },
  256. i = d => {
  257. const f = d == 'qrCode' ? 'payCenter' : 'payResult';
  258. s('confirm', { payCode: f, pay_channel: o.pay_channel });
  259. };
  260. return () =>
  261. l('div', { class: R.payment }, [
  262. l(te, { onClick: r, name: 'cross', size: 20 }, null),
  263. l('div', { class: [R.title] }, [B('选择支付方式')]),
  264. l('div', { class: R.payAmount }, [
  265. l('p', null, [B('应付金额')]),
  266. l('div', { class: R.amount }, [
  267. l('span', null, [B('¥ ')]),
  268. ye(e.paymentConfig.currentPrice)
  269. ])
  270. ]),
  271. l(
  272. lt,
  273. {
  274. modelValue: o.payType,
  275. 'onUpdate:modelValue': d => (o.payType = d)
  276. },
  277. {
  278. default: () => [
  279. l(
  280. Be,
  281. { border: !1 },
  282. {
  283. default: () => [
  284. l(
  285. j,
  286. {
  287. border: !0,
  288. center: !0,
  289. onClick: () => {
  290. o.payType = 'wx';
  291. }
  292. },
  293. {
  294. icon: () =>
  295. l(
  296. te,
  297. {
  298. name: 'wechat-pay',
  299. color: '#15c434',
  300. size: 22
  301. },
  302. null
  303. ),
  304. 'right-icon': () => l(Fe, { name: 'wx' }, null),
  305. title: () =>
  306. l('div', { class: R.payTypeRe }, [
  307. B('微信支付 '),
  308. l('span', { class: R.recommend }, [B('推荐')])
  309. ])
  310. }
  311. ),
  312. l(
  313. j,
  314. {
  315. title: '支付宝支付',
  316. border: !0,
  317. center: !0,
  318. onClick: () => {
  319. o.payType = 'zfb';
  320. }
  321. },
  322. {
  323. icon: () =>
  324. l(
  325. te,
  326. { name: 'alipay', color: '#009fe9', size: 22 },
  327. null
  328. ),
  329. 'right-icon': () => l(Fe, { name: 'zfb' }, null)
  330. }
  331. )
  332. ]
  333. }
  334. )
  335. ]
  336. }
  337. ),
  338. l('div', { class: R.blank }, null),
  339. l(
  340. Ae,
  341. {
  342. type: 'primary',
  343. class: R.payBtn,
  344. block: !0,
  345. round: !0,
  346. onClick: u
  347. },
  348. { default: () => [B('确认支付')] }
  349. )
  350. ]);
  351. }
  352. }),
  353. yn = '_userAuth_1wdij_1',
  354. wn = '_cellGroup_1wdij_6',
  355. Cn = '_btnGroup_1wdij_38',
  356. _n = '_otherBtn_1wdij_42',
  357. ce = { userAuth: yn, cellGroup: wn, btnGroup: Cn, otherBtn: _n },
  358. En = G({
  359. name: 'UserAuth',
  360. props: {
  361. onSuccess: { type: Function, default: () => {} },
  362. hideHeader: { type: Boolean, default: !1 }
  363. },
  364. data() {
  365. return { form: { realName: '', idCardNo: '' } };
  366. },
  367. mounted() {
  368. const e = Y.user.data;
  369. this.form.realName = e == null ? void 0 : e.account.realName;
  370. },
  371. methods: {
  372. async onSubmit() {
  373. try {
  374. const e = '/edu-app/sysAccount/realNameAuth';
  375. await O.post(e, { data: { ...this.form, contract: !0, save: !0 } }),
  376. (Y.user.data.account.realName = this.form.realName),
  377. (Y.user.data.account.idCardNo = this.form.idCardNo),
  378. this.onSuccess();
  379. } catch (e) {}
  380. }
  381. },
  382. render() {
  383. return l(
  384. ft,
  385. { class: ce.userAuth, onSubmit: this.onSubmit },
  386. {
  387. default: () => [
  388. !this.hideHeader && l(ke, { title: '实名认证' }, null),
  389. l(
  390. Be,
  391. { inset: !0, class: ce.cellGroup },
  392. {
  393. default: () => [
  394. l(
  395. ve,
  396. {
  397. required: !0,
  398. label: '真实姓名',
  399. modelValue: this.form.realName,
  400. 'onUpdate:modelValue': e => (this.form.realName = e),
  401. rules: [{ required: !0, message: '请填写真实姓名' }],
  402. name: 'realName',
  403. placeholder: '请填写真实姓名',
  404. autocomplete: 'off',
  405. maxlength: '50'
  406. },
  407. null
  408. ),
  409. l(
  410. ve,
  411. {
  412. required: !0,
  413. label: '身份证号',
  414. modelValue: this.form.idCardNo,
  415. 'onUpdate:modelValue': e => (this.form.idCardNo = e),
  416. maxlength: 18,
  417. autocomplete: 'off',
  418. rules: [
  419. { required: !0, message: '请输入身份证号' },
  420. {
  421. pattern:
  422. /^[1-9]\d{5}(18|19|20)\d{2}((0[1-9])|(1[0-2]))(([0-2][1-9])|10|20|30|31)\d{3}[0-9Xx]$/,
  423. message: '请输入正确的身份证号'
  424. }
  425. ],
  426. placeholder: '请输入身份证号'
  427. },
  428. null
  429. )
  430. ]
  431. }
  432. ),
  433. l('div', { class: ['btnGroup'] }, [
  434. l(
  435. Ae,
  436. {
  437. block: !0,
  438. round: !0,
  439. type: 'primary',
  440. 'native-type': 'submit',
  441. class: ce.otherBtn
  442. },
  443. { default: () => [B('确定')] }
  444. )
  445. ])
  446. ]
  447. }
  448. );
  449. }
  450. }),
  451. An = {
  452. WAIT_PAY: '待支付',
  453. PAYING: '支付中',
  454. PAID: '已付款',
  455. TIMEOUT: '已关闭',
  456. FAIL: '支付失败',
  457. CLOSED: '已关闭',
  458. REFUNDING: '退款中',
  459. REFUNDED: '已退款'
  460. },
  461. Bn = '_saveShareImage_1vhog_1',
  462. Nn = '_tips_1vhog_5',
  463. In = '_tipsTitle_1vhog_11',
  464. Sn = '_tipsContent_1vhog_17',
  465. Tn = '_previewSection_1vhog_23',
  466. bn = '_topImage_1vhog_30',
  467. Pn = '_shareContaienr_1vhog_37',
  468. Fn = '_schoolName_1vhog_45',
  469. vn = '_shareType_1vhog_51',
  470. Mn = '_qrcodeSection_1vhog_60',
  471. Dn = '_memo_1vhog_68',
  472. M = {
  473. saveShareImage: Bn,
  474. tips: Nn,
  475. tipsTitle: In,
  476. tipsContent: Sn,
  477. previewSection: Tn,
  478. topImage: bn,
  479. shareContaienr: Pn,
  480. schoolName: Fn,
  481. shareType: vn,
  482. qrcodeSection: Mn,
  483. memo: Dn
  484. },
  485. Rn = '' + new URL('smallLogo-517ff5bd.png', import.meta.url).href;
  486. var Z = {},
  487. Ln = function () {
  488. return (
  489. typeof Promise == 'function' &&
  490. Promise.prototype &&
  491. Promise.prototype.then
  492. );
  493. },
  494. Ve = {},
  495. T = {};
  496. let Ne;
  497. const Un = [
  498. 0, 26, 44, 70, 100, 134, 172, 196, 242, 292, 346, 404, 466, 532, 581, 655,
  499. 733, 815, 901, 991, 1085, 1156, 1258, 1364, 1474, 1588, 1706, 1828, 1921,
  500. 2051, 2185, 2323, 2465, 2611, 2761, 2876, 3034, 3196, 3362, 3532, 3706
  501. ];
  502. T.getSymbolSize = function (n) {
  503. if (!n) throw new Error('"version" cannot be null or undefined');
  504. if (n < 1 || n > 40)
  505. throw new Error('"version" should be in range from 1 to 40');
  506. return n * 4 + 17;
  507. };
  508. T.getSymbolTotalCodewords = function (n) {
  509. return Un[n];
  510. };
  511. T.getBCHDigit = function (e) {
  512. let n = 0;
  513. for (; e !== 0; ) n++, (e >>>= 1);
  514. return n;
  515. };
  516. T.setToSJISFunction = function (n) {
  517. if (typeof n != 'function')
  518. throw new Error('"toSJISFunc" is not a valid function.');
  519. Ne = n;
  520. };
  521. T.isKanjiModeEnabled = function () {
  522. return typeof Ne < 'u';
  523. };
  524. T.toSJIS = function (n) {
  525. return Ne(n);
  526. };
  527. var re = {};
  528. (function (e) {
  529. (e.L = { bit: 1 }),
  530. (e.M = { bit: 0 }),
  531. (e.Q = { bit: 3 }),
  532. (e.H = { bit: 2 });
  533. function n(t) {
  534. if (typeof t != 'string') throw new Error('Param is not a string');
  535. switch (t.toLowerCase()) {
  536. case 'l':
  537. case 'low':
  538. return e.L;
  539. case 'm':
  540. case 'medium':
  541. return e.M;
  542. case 'q':
  543. case 'quartile':
  544. return e.Q;
  545. case 'h':
  546. case 'high':
  547. return e.H;
  548. default:
  549. throw new Error('Unknown EC Level: ' + t);
  550. }
  551. }
  552. (e.isValid = function (s) {
  553. return s && typeof s.bit < 'u' && s.bit >= 0 && s.bit < 4;
  554. }),
  555. (e.from = function (s, o) {
  556. if (e.isValid(s)) return s;
  557. try {
  558. return n(s);
  559. } catch (r) {
  560. return o;
  561. }
  562. });
  563. })(re);
  564. function He() {
  565. (this.buffer = []), (this.length = 0);
  566. }
  567. He.prototype = {
  568. get: function (e) {
  569. const n = Math.floor(e / 8);
  570. return ((this.buffer[n] >>> (7 - (e % 8))) & 1) === 1;
  571. },
  572. put: function (e, n) {
  573. for (let t = 0; t < n; t++) this.putBit(((e >>> (n - t - 1)) & 1) === 1);
  574. },
  575. getLengthInBits: function () {
  576. return this.length;
  577. },
  578. putBit: function (e) {
  579. const n = Math.floor(this.length / 8);
  580. this.buffer.length <= n && this.buffer.push(0),
  581. e && (this.buffer[n] |= 128 >>> this.length % 8),
  582. this.length++;
  583. }
  584. };
  585. var qn = He;
  586. function X(e) {
  587. if (!e || e < 1)
  588. throw new Error('BitMatrix size must be defined and greater than 0');
  589. (this.size = e),
  590. (this.data = new Uint8Array(e * e)),
  591. (this.reservedBit = new Uint8Array(e * e));
  592. }
  593. X.prototype.set = function (e, n, t, s) {
  594. const o = e * this.size + n;
  595. (this.data[o] = t), s && (this.reservedBit[o] = !0);
  596. };
  597. X.prototype.get = function (e, n) {
  598. return this.data[e * this.size + n];
  599. };
  600. X.prototype.xor = function (e, n, t) {
  601. this.data[e * this.size + n] ^= t;
  602. };
  603. X.prototype.isReserved = function (e, n) {
  604. return this.reservedBit[e * this.size + n];
  605. };
  606. var kn = X,
  607. xe = {};
  608. (function (e) {
  609. const n = T.getSymbolSize;
  610. (e.getRowColCoords = function (s) {
  611. if (s === 1) return [];
  612. const o = Math.floor(s / 7) + 2,
  613. r = n(s),
  614. a = r === 145 ? 26 : Math.ceil((r - 13) / (2 * o - 2)) * 2,
  615. u = [r - 7];
  616. for (let i = 1; i < o - 1; i++) u[i] = u[i - 1] - a;
  617. return u.push(6), u.reverse();
  618. }),
  619. (e.getPositions = function (s) {
  620. const o = [],
  621. r = e.getRowColCoords(s),
  622. a = r.length;
  623. for (let u = 0; u < a; u++)
  624. for (let i = 0; i < a; i++)
  625. (u === 0 && i === 0) ||
  626. (u === 0 && i === a - 1) ||
  627. (u === a - 1 && i === 0) ||
  628. o.push([r[u], r[i]]);
  629. return o;
  630. });
  631. })(xe);
  632. var Ge = {};
  633. const On = T.getSymbolSize,
  634. Me = 7;
  635. Ge.getPositions = function (n) {
  636. const t = On(n);
  637. return [
  638. [0, 0],
  639. [t - Me, 0],
  640. [0, t - Me]
  641. ];
  642. };
  643. var Qe = {};
  644. (function (e) {
  645. e.Patterns = {
  646. PATTERN000: 0,
  647. PATTERN001: 1,
  648. PATTERN010: 2,
  649. PATTERN011: 3,
  650. PATTERN100: 4,
  651. PATTERN101: 5,
  652. PATTERN110: 6,
  653. PATTERN111: 7
  654. };
  655. const n = { N1: 3, N2: 3, N3: 40, N4: 10 };
  656. (e.isValid = function (o) {
  657. return o != null && o !== '' && !isNaN(o) && o >= 0 && o <= 7;
  658. }),
  659. (e.from = function (o) {
  660. return e.isValid(o) ? parseInt(o, 10) : void 0;
  661. }),
  662. (e.getPenaltyN1 = function (o) {
  663. const r = o.size;
  664. let a = 0,
  665. u = 0,
  666. i = 0,
  667. d = null,
  668. f = null;
  669. for (let A = 0; A < r; A++) {
  670. (u = i = 0), (d = f = null);
  671. for (let y = 0; y < r; y++) {
  672. let h = o.get(A, y);
  673. h === d ? u++ : (u >= 5 && (a += n.N1 + (u - 5)), (d = h), (u = 1)),
  674. (h = o.get(y, A)),
  675. h === f ? i++ : (i >= 5 && (a += n.N1 + (i - 5)), (f = h), (i = 1));
  676. }
  677. u >= 5 && (a += n.N1 + (u - 5)), i >= 5 && (a += n.N1 + (i - 5));
  678. }
  679. return a;
  680. }),
  681. (e.getPenaltyN2 = function (o) {
  682. const r = o.size;
  683. let a = 0;
  684. for (let u = 0; u < r - 1; u++)
  685. for (let i = 0; i < r - 1; i++) {
  686. const d =
  687. o.get(u, i) +
  688. o.get(u, i + 1) +
  689. o.get(u + 1, i) +
  690. o.get(u + 1, i + 1);
  691. (d === 4 || d === 0) && a++;
  692. }
  693. return a * n.N2;
  694. }),
  695. (e.getPenaltyN3 = function (o) {
  696. const r = o.size;
  697. let a = 0,
  698. u = 0,
  699. i = 0;
  700. for (let d = 0; d < r; d++) {
  701. u = i = 0;
  702. for (let f = 0; f < r; f++)
  703. (u = ((u << 1) & 2047) | o.get(d, f)),
  704. f >= 10 && (u === 1488 || u === 93) && a++,
  705. (i = ((i << 1) & 2047) | o.get(f, d)),
  706. f >= 10 && (i === 1488 || i === 93) && a++;
  707. }
  708. return a * n.N3;
  709. }),
  710. (e.getPenaltyN4 = function (o) {
  711. let r = 0;
  712. const a = o.data.length;
  713. for (let i = 0; i < a; i++) r += o.data[i];
  714. return Math.abs(Math.ceil((r * 100) / a / 5) - 10) * n.N4;
  715. });
  716. function t(s, o, r) {
  717. switch (s) {
  718. case e.Patterns.PATTERN000:
  719. return (o + r) % 2 === 0;
  720. case e.Patterns.PATTERN001:
  721. return o % 2 === 0;
  722. case e.Patterns.PATTERN010:
  723. return r % 3 === 0;
  724. case e.Patterns.PATTERN011:
  725. return (o + r) % 3 === 0;
  726. case e.Patterns.PATTERN100:
  727. return (Math.floor(o / 2) + Math.floor(r / 3)) % 2 === 0;
  728. case e.Patterns.PATTERN101:
  729. return ((o * r) % 2) + ((o * r) % 3) === 0;
  730. case e.Patterns.PATTERN110:
  731. return (((o * r) % 2) + ((o * r) % 3)) % 2 === 0;
  732. case e.Patterns.PATTERN111:
  733. return (((o * r) % 3) + ((o + r) % 2)) % 2 === 0;
  734. default:
  735. throw new Error('bad maskPattern:' + s);
  736. }
  737. }
  738. (e.applyMask = function (o, r) {
  739. const a = r.size;
  740. for (let u = 0; u < a; u++)
  741. for (let i = 0; i < a; i++) r.isReserved(i, u) || r.xor(i, u, t(o, i, u));
  742. }),
  743. (e.getBestMask = function (o, r) {
  744. const a = Object.keys(e.Patterns).length;
  745. let u = 0,
  746. i = 1 / 0;
  747. for (let d = 0; d < a; d++) {
  748. r(d), e.applyMask(d, o);
  749. const f =
  750. e.getPenaltyN1(o) +
  751. e.getPenaltyN2(o) +
  752. e.getPenaltyN3(o) +
  753. e.getPenaltyN4(o);
  754. e.applyMask(d, o), f < i && ((i = f), (u = d));
  755. }
  756. return u;
  757. });
  758. })(Qe);
  759. var se = {};
  760. const L = re,
  761. W = [
  762. 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 2, 2, 1, 2, 2, 4, 1, 2, 4, 4, 2, 4, 4, 4, 2,
  763. 4, 6, 5, 2, 4, 6, 6, 2, 5, 8, 8, 4, 5, 8, 8, 4, 5, 8, 11, 4, 8, 10, 11, 4,
  764. 9, 12, 16, 4, 9, 16, 16, 6, 10, 12, 18, 6, 10, 17, 16, 6, 11, 16, 19, 6, 13,
  765. 18, 21, 7, 14, 21, 25, 8, 16, 20, 25, 8, 17, 23, 25, 9, 17, 23, 34, 9, 18,
  766. 25, 30, 10, 20, 27, 32, 12, 21, 29, 35, 12, 23, 34, 37, 12, 25, 34, 40, 13,
  767. 26, 35, 42, 14, 28, 38, 45, 15, 29, 40, 48, 16, 31, 43, 51, 17, 33, 45, 54,
  768. 18, 35, 48, 57, 19, 37, 51, 60, 19, 38, 53, 63, 20, 40, 56, 66, 21, 43, 59,
  769. 70, 22, 45, 62, 74, 24, 47, 65, 77, 25, 49, 68, 81
  770. ],
  771. $ = [
  772. 7, 10, 13, 17, 10, 16, 22, 28, 15, 26, 36, 44, 20, 36, 52, 64, 26, 48, 72,
  773. 88, 36, 64, 96, 112, 40, 72, 108, 130, 48, 88, 132, 156, 60, 110, 160, 192,
  774. 72, 130, 192, 224, 80, 150, 224, 264, 96, 176, 260, 308, 104, 198, 288, 352,
  775. 120, 216, 320, 384, 132, 240, 360, 432, 144, 280, 408, 480, 168, 308, 448,
  776. 532, 180, 338, 504, 588, 196, 364, 546, 650, 224, 416, 600, 700, 224, 442,
  777. 644, 750, 252, 476, 690, 816, 270, 504, 750, 900, 300, 560, 810, 960, 312,
  778. 588, 870, 1050, 336, 644, 952, 1110, 360, 700, 1020, 1200, 390, 728, 1050,
  779. 1260, 420, 784, 1140, 1350, 450, 812, 1200, 1440, 480, 868, 1290, 1530, 510,
  780. 924, 1350, 1620, 540, 980, 1440, 1710, 570, 1036, 1530, 1800, 570, 1064,
  781. 1590, 1890, 600, 1120, 1680, 1980, 630, 1204, 1770, 2100, 660, 1260, 1860,
  782. 2220, 720, 1316, 1950, 2310, 750, 1372, 2040, 2430
  783. ];
  784. se.getBlocksCount = function (n, t) {
  785. switch (t) {
  786. case L.L:
  787. return W[(n - 1) * 4 + 0];
  788. case L.M:
  789. return W[(n - 1) * 4 + 1];
  790. case L.Q:
  791. return W[(n - 1) * 4 + 2];
  792. case L.H:
  793. return W[(n - 1) * 4 + 3];
  794. default:
  795. return;
  796. }
  797. };
  798. se.getTotalCodewordsCount = function (n, t) {
  799. switch (t) {
  800. case L.L:
  801. return $[(n - 1) * 4 + 0];
  802. case L.M:
  803. return $[(n - 1) * 4 + 1];
  804. case L.Q:
  805. return $[(n - 1) * 4 + 2];
  806. case L.H:
  807. return $[(n - 1) * 4 + 3];
  808. default:
  809. return;
  810. }
  811. };
  812. var Ye = {},
  813. ae = {};
  814. const J = new Uint8Array(512),
  815. ne = new Uint8Array(256);
  816. (function () {
  817. let n = 1;
  818. for (let t = 0; t < 255; t++)
  819. (J[t] = n), (ne[n] = t), (n <<= 1), n & 256 && (n ^= 285);
  820. for (let t = 255; t < 512; t++) J[t] = J[t - 255];
  821. })();
  822. ae.log = function (n) {
  823. if (n < 1) throw new Error('log(' + n + ')');
  824. return ne[n];
  825. };
  826. ae.exp = function (n) {
  827. return J[n];
  828. };
  829. ae.mul = function (n, t) {
  830. return n === 0 || t === 0 ? 0 : J[ne[n] + ne[t]];
  831. };
  832. (function (e) {
  833. const n = ae;
  834. (e.mul = function (s, o) {
  835. const r = new Uint8Array(s.length + o.length - 1);
  836. for (let a = 0; a < s.length; a++)
  837. for (let u = 0; u < o.length; u++) r[a + u] ^= n.mul(s[a], o[u]);
  838. return r;
  839. }),
  840. (e.mod = function (s, o) {
  841. let r = new Uint8Array(s);
  842. for (; r.length - o.length >= 0; ) {
  843. const a = r[0];
  844. for (let i = 0; i < o.length; i++) r[i] ^= n.mul(o[i], a);
  845. let u = 0;
  846. for (; u < r.length && r[u] === 0; ) u++;
  847. r = r.slice(u);
  848. }
  849. return r;
  850. }),
  851. (e.generateECPolynomial = function (s) {
  852. let o = new Uint8Array([1]);
  853. for (let r = 0; r < s; r++) o = e.mul(o, new Uint8Array([1, n.exp(r)]));
  854. return o;
  855. });
  856. })(Ye);
  857. const Je = Ye;
  858. function Ie(e) {
  859. (this.genPoly = void 0),
  860. (this.degree = e),
  861. this.degree && this.initialize(this.degree);
  862. }
  863. Ie.prototype.initialize = function (n) {
  864. (this.degree = n), (this.genPoly = Je.generateECPolynomial(this.degree));
  865. };
  866. Ie.prototype.encode = function (n) {
  867. if (!this.genPoly) throw new Error('Encoder not initialized');
  868. const t = new Uint8Array(n.length + this.degree);
  869. t.set(n);
  870. const s = Je.mod(t, this.genPoly),
  871. o = this.degree - s.length;
  872. if (o > 0) {
  873. const r = new Uint8Array(this.degree);
  874. return r.set(s, o), r;
  875. }
  876. return s;
  877. };
  878. var jn = Ie,
  879. Ke = {},
  880. U = {},
  881. Se = {};
  882. Se.isValid = function (n) {
  883. return !isNaN(n) && n >= 1 && n <= 40;
  884. };
  885. var F = {};
  886. const Ze = '[0-9]+',
  887. zn = '[A-Z $%*+\\-./:]+';
  888. let K =
  889. '(?:[u3000-u303F]|[u3040-u309F]|[u30A0-u30FF]|[uFF00-uFFEF]|[u4E00-u9FAF]|[u2605-u2606]|[u2190-u2195]|u203B|[u2010u2015u2018u2019u2025u2026u201Cu201Du2225u2260]|[u0391-u0451]|[u00A7u00A8u00B1u00B4u00D7u00F7])+';
  890. K = K.replace(/u/g, '\\u');
  891. const Vn =
  892. '(?:(?![A-Z0-9 $%*+\\-./:]|' +
  893. K +
  894. `)(?:.|[\r
  895. ]))+`;
  896. F.KANJI = new RegExp(K, 'g');
  897. F.BYTE_KANJI = new RegExp('[^A-Z0-9 $%*+\\-./:]+', 'g');
  898. F.BYTE = new RegExp(Vn, 'g');
  899. F.NUMERIC = new RegExp(Ze, 'g');
  900. F.ALPHANUMERIC = new RegExp(zn, 'g');
  901. const Hn = new RegExp('^' + K + '$'),
  902. xn = new RegExp('^' + Ze + '$'),
  903. Gn = new RegExp('^[A-Z0-9 $%*+\\-./:]+$');
  904. F.testKanji = function (n) {
  905. return Hn.test(n);
  906. };
  907. F.testNumeric = function (n) {
  908. return xn.test(n);
  909. };
  910. F.testAlphanumeric = function (n) {
  911. return Gn.test(n);
  912. };
  913. (function (e) {
  914. const n = Se,
  915. t = F;
  916. (e.NUMERIC = { id: 'Numeric', bit: 1, ccBits: [10, 12, 14] }),
  917. (e.ALPHANUMERIC = { id: 'Alphanumeric', bit: 2, ccBits: [9, 11, 13] }),
  918. (e.BYTE = { id: 'Byte', bit: 4, ccBits: [8, 16, 16] }),
  919. (e.KANJI = { id: 'Kanji', bit: 8, ccBits: [8, 10, 12] }),
  920. (e.MIXED = { bit: -1 }),
  921. (e.getCharCountIndicator = function (r, a) {
  922. if (!r.ccBits) throw new Error('Invalid mode: ' + r);
  923. if (!n.isValid(a)) throw new Error('Invalid version: ' + a);
  924. return a >= 1 && a < 10
  925. ? r.ccBits[0]
  926. : a < 27
  927. ? r.ccBits[1]
  928. : r.ccBits[2];
  929. }),
  930. (e.getBestModeForData = function (r) {
  931. return t.testNumeric(r)
  932. ? e.NUMERIC
  933. : t.testAlphanumeric(r)
  934. ? e.ALPHANUMERIC
  935. : t.testKanji(r)
  936. ? e.KANJI
  937. : e.BYTE;
  938. }),
  939. (e.toString = function (r) {
  940. if (r && r.id) return r.id;
  941. throw new Error('Invalid mode');
  942. }),
  943. (e.isValid = function (r) {
  944. return r && r.bit && r.ccBits;
  945. });
  946. function s(o) {
  947. if (typeof o != 'string') throw new Error('Param is not a string');
  948. switch (o.toLowerCase()) {
  949. case 'numeric':
  950. return e.NUMERIC;
  951. case 'alphanumeric':
  952. return e.ALPHANUMERIC;
  953. case 'kanji':
  954. return e.KANJI;
  955. case 'byte':
  956. return e.BYTE;
  957. default:
  958. throw new Error('Unknown mode: ' + o);
  959. }
  960. }
  961. e.from = function (r, a) {
  962. if (e.isValid(r)) return r;
  963. try {
  964. return s(r);
  965. } catch (u) {
  966. return a;
  967. }
  968. };
  969. })(U);
  970. (function (e) {
  971. const n = T,
  972. t = se,
  973. s = re,
  974. o = U,
  975. r = Se,
  976. a = 7973,
  977. u = n.getBCHDigit(a);
  978. function i(y, h, _) {
  979. for (let c = 1; c <= 40; c++) if (h <= e.getCapacity(c, _, y)) return c;
  980. }
  981. function d(y, h) {
  982. return o.getCharCountIndicator(y, h) + 4;
  983. }
  984. function f(y, h) {
  985. let _ = 0;
  986. return (
  987. y.forEach(function (c) {
  988. const m = d(c.mode, h);
  989. _ += m + c.getBitsLength();
  990. }),
  991. _
  992. );
  993. }
  994. function A(y, h) {
  995. for (let _ = 1; _ <= 40; _++)
  996. if (f(y, _) <= e.getCapacity(_, h, o.MIXED)) return _;
  997. }
  998. (e.from = function (h, _) {
  999. return r.isValid(h) ? parseInt(h, 10) : _;
  1000. }),
  1001. (e.getCapacity = function (h, _, c) {
  1002. if (!r.isValid(h)) throw new Error('Invalid QR Code version');
  1003. typeof c > 'u' && (c = o.BYTE);
  1004. const m = n.getSymbolTotalCodewords(h),
  1005. g = t.getTotalCodewordsCount(h, _),
  1006. C = (m - g) * 8;
  1007. if (c === o.MIXED) return C;
  1008. const p = C - d(c, h);
  1009. switch (c) {
  1010. case o.NUMERIC:
  1011. return Math.floor((p / 10) * 3);
  1012. case o.ALPHANUMERIC:
  1013. return Math.floor((p / 11) * 2);
  1014. case o.KANJI:
  1015. return Math.floor(p / 13);
  1016. case o.BYTE:
  1017. default:
  1018. return Math.floor(p / 8);
  1019. }
  1020. }),
  1021. (e.getBestVersionForData = function (h, _) {
  1022. let c;
  1023. const m = s.from(_, s.M);
  1024. if (Array.isArray(h)) {
  1025. if (h.length > 1) return A(h, m);
  1026. if (h.length === 0) return 1;
  1027. c = h[0];
  1028. } else c = h;
  1029. return i(c.mode, c.getLength(), m);
  1030. }),
  1031. (e.getEncodedBits = function (h) {
  1032. if (!r.isValid(h) || h < 7) throw new Error('Invalid QR Code version');
  1033. let _ = h << 12;
  1034. for (; n.getBCHDigit(_) - u >= 0; ) _ ^= a << (n.getBCHDigit(_) - u);
  1035. return (h << 12) | _;
  1036. });
  1037. })(Ke);
  1038. var Xe = {};
  1039. const we = T,
  1040. We = 1335,
  1041. Qn = 21522,
  1042. De = we.getBCHDigit(We);
  1043. Xe.getEncodedBits = function (n, t) {
  1044. const s = (n.bit << 3) | t;
  1045. let o = s << 10;
  1046. for (; we.getBCHDigit(o) - De >= 0; ) o ^= We << (we.getBCHDigit(o) - De);
  1047. return ((s << 10) | o) ^ Qn;
  1048. };
  1049. var $e = {};
  1050. const Yn = U;
  1051. function z(e) {
  1052. (this.mode = Yn.NUMERIC), (this.data = e.toString());
  1053. }
  1054. z.getBitsLength = function (n) {
  1055. return 10 * Math.floor(n / 3) + (n % 3 ? (n % 3) * 3 + 1 : 0);
  1056. };
  1057. z.prototype.getLength = function () {
  1058. return this.data.length;
  1059. };
  1060. z.prototype.getBitsLength = function () {
  1061. return z.getBitsLength(this.data.length);
  1062. };
  1063. z.prototype.write = function (n) {
  1064. let t, s, o;
  1065. for (t = 0; t + 3 <= this.data.length; t += 3)
  1066. (s = this.data.substr(t, 3)), (o = parseInt(s, 10)), n.put(o, 10);
  1067. const r = this.data.length - t;
  1068. r > 0 &&
  1069. ((s = this.data.substr(t)), (o = parseInt(s, 10)), n.put(o, r * 3 + 1));
  1070. };
  1071. var Jn = z;
  1072. const Kn = U,
  1073. de = [
  1074. '0',
  1075. '1',
  1076. '2',
  1077. '3',
  1078. '4',
  1079. '5',
  1080. '6',
  1081. '7',
  1082. '8',
  1083. '9',
  1084. 'A',
  1085. 'B',
  1086. 'C',
  1087. 'D',
  1088. 'E',
  1089. 'F',
  1090. 'G',
  1091. 'H',
  1092. 'I',
  1093. 'J',
  1094. 'K',
  1095. 'L',
  1096. 'M',
  1097. 'N',
  1098. 'O',
  1099. 'P',
  1100. 'Q',
  1101. 'R',
  1102. 'S',
  1103. 'T',
  1104. 'U',
  1105. 'V',
  1106. 'W',
  1107. 'X',
  1108. 'Y',
  1109. 'Z',
  1110. ' ',
  1111. '$',
  1112. '%',
  1113. '*',
  1114. '+',
  1115. '-',
  1116. '.',
  1117. '/',
  1118. ':'
  1119. ];
  1120. function V(e) {
  1121. (this.mode = Kn.ALPHANUMERIC), (this.data = e);
  1122. }
  1123. V.getBitsLength = function (n) {
  1124. return 11 * Math.floor(n / 2) + 6 * (n % 2);
  1125. };
  1126. V.prototype.getLength = function () {
  1127. return this.data.length;
  1128. };
  1129. V.prototype.getBitsLength = function () {
  1130. return V.getBitsLength(this.data.length);
  1131. };
  1132. V.prototype.write = function (n) {
  1133. let t;
  1134. for (t = 0; t + 2 <= this.data.length; t += 2) {
  1135. let s = de.indexOf(this.data[t]) * 45;
  1136. (s += de.indexOf(this.data[t + 1])), n.put(s, 11);
  1137. }
  1138. this.data.length % 2 && n.put(de.indexOf(this.data[t]), 6);
  1139. };
  1140. var Zn = V,
  1141. Xn = function (n) {
  1142. for (var t = [], s = n.length, o = 0; o < s; o++) {
  1143. var r = n.charCodeAt(o);
  1144. if (r >= 55296 && r <= 56319 && s > o + 1) {
  1145. var a = n.charCodeAt(o + 1);
  1146. a >= 56320 &&
  1147. a <= 57343 &&
  1148. ((r = (r - 55296) * 1024 + a - 56320 + 65536), (o += 1));
  1149. }
  1150. if (r < 128) {
  1151. t.push(r);
  1152. continue;
  1153. }
  1154. if (r < 2048) {
  1155. t.push((r >> 6) | 192), t.push((r & 63) | 128);
  1156. continue;
  1157. }
  1158. if (r < 55296 || (r >= 57344 && r < 65536)) {
  1159. t.push((r >> 12) | 224),
  1160. t.push(((r >> 6) & 63) | 128),
  1161. t.push((r & 63) | 128);
  1162. continue;
  1163. }
  1164. if (r >= 65536 && r <= 1114111) {
  1165. t.push((r >> 18) | 240),
  1166. t.push(((r >> 12) & 63) | 128),
  1167. t.push(((r >> 6) & 63) | 128),
  1168. t.push((r & 63) | 128);
  1169. continue;
  1170. }
  1171. t.push(239, 191, 189);
  1172. }
  1173. return new Uint8Array(t).buffer;
  1174. };
  1175. const Wn = Xn,
  1176. $n = U;
  1177. function H(e) {
  1178. (this.mode = $n.BYTE),
  1179. typeof e == 'string' && (e = Wn(e)),
  1180. (this.data = new Uint8Array(e));
  1181. }
  1182. H.getBitsLength = function (n) {
  1183. return n * 8;
  1184. };
  1185. H.prototype.getLength = function () {
  1186. return this.data.length;
  1187. };
  1188. H.prototype.getBitsLength = function () {
  1189. return H.getBitsLength(this.data.length);
  1190. };
  1191. H.prototype.write = function (e) {
  1192. for (let n = 0, t = this.data.length; n < t; n++) e.put(this.data[n], 8);
  1193. };
  1194. var eo = H;
  1195. const to = U,
  1196. no = T;
  1197. function x(e) {
  1198. (this.mode = to.KANJI), (this.data = e);
  1199. }
  1200. x.getBitsLength = function (n) {
  1201. return n * 13;
  1202. };
  1203. x.prototype.getLength = function () {
  1204. return this.data.length;
  1205. };
  1206. x.prototype.getBitsLength = function () {
  1207. return x.getBitsLength(this.data.length);
  1208. };
  1209. x.prototype.write = function (e) {
  1210. let n;
  1211. for (n = 0; n < this.data.length; n++) {
  1212. let t = no.toSJIS(this.data[n]);
  1213. if (t >= 33088 && t <= 40956) t -= 33088;
  1214. else if (t >= 57408 && t <= 60351) t -= 49472;
  1215. else
  1216. throw new Error(
  1217. 'Invalid SJIS character: ' +
  1218. this.data[n] +
  1219. `
  1220. Make sure your charset is UTF-8`
  1221. );
  1222. (t = ((t >>> 8) & 255) * 192 + (t & 255)), e.put(t, 13);
  1223. }
  1224. };
  1225. var oo = x,
  1226. et = { exports: {} };
  1227. (function (e) {
  1228. var n = {
  1229. single_source_shortest_paths: function (t, s, o) {
  1230. var r = {},
  1231. a = {};
  1232. a[s] = 0;
  1233. var u = n.PriorityQueue.make();
  1234. u.push(s, 0);
  1235. for (var i, d, f, A, y, h, _, c, m; !u.empty(); ) {
  1236. (i = u.pop()), (d = i.value), (A = i.cost), (y = t[d] || {});
  1237. for (f in y)
  1238. y.hasOwnProperty(f) &&
  1239. ((h = y[f]),
  1240. (_ = A + h),
  1241. (c = a[f]),
  1242. (m = typeof a[f] > 'u'),
  1243. (m || c > _) && ((a[f] = _), u.push(f, _), (r[f] = d)));
  1244. }
  1245. if (typeof o < 'u' && typeof a[o] > 'u') {
  1246. var g = ['Could not find a path from ', s, ' to ', o, '.'].join('');
  1247. throw new Error(g);
  1248. }
  1249. return r;
  1250. },
  1251. extract_shortest_path_from_predecessor_list: function (t, s) {
  1252. for (var o = [], r = s; r; ) o.push(r), t[r], (r = t[r]);
  1253. return o.reverse(), o;
  1254. },
  1255. find_path: function (t, s, o) {
  1256. var r = n.single_source_shortest_paths(t, s, o);
  1257. return n.extract_shortest_path_from_predecessor_list(r, o);
  1258. },
  1259. PriorityQueue: {
  1260. make: function (t) {
  1261. var s = n.PriorityQueue,
  1262. o = {},
  1263. r;
  1264. t = t || {};
  1265. for (r in s) s.hasOwnProperty(r) && (o[r] = s[r]);
  1266. return (o.queue = []), (o.sorter = t.sorter || s.default_sorter), o;
  1267. },
  1268. default_sorter: function (t, s) {
  1269. return t.cost - s.cost;
  1270. },
  1271. push: function (t, s) {
  1272. var o = { value: t, cost: s };
  1273. this.queue.push(o), this.queue.sort(this.sorter);
  1274. },
  1275. pop: function () {
  1276. return this.queue.shift();
  1277. },
  1278. empty: function () {
  1279. return this.queue.length === 0;
  1280. }
  1281. }
  1282. };
  1283. e.exports = n;
  1284. })(et);
  1285. var ro = et.exports;
  1286. (function (e) {
  1287. const n = U,
  1288. t = Jn,
  1289. s = Zn,
  1290. o = eo,
  1291. r = oo,
  1292. a = F,
  1293. u = T,
  1294. i = ro;
  1295. function d(g) {
  1296. return unescape(encodeURIComponent(g)).length;
  1297. }
  1298. function f(g, C, p) {
  1299. const w = [];
  1300. let E;
  1301. for (; (E = g.exec(p)) !== null; )
  1302. w.push({ data: E[0], index: E.index, mode: C, length: E[0].length });
  1303. return w;
  1304. }
  1305. function A(g) {
  1306. const C = f(a.NUMERIC, n.NUMERIC, g),
  1307. p = f(a.ALPHANUMERIC, n.ALPHANUMERIC, g);
  1308. let w, E;
  1309. return (
  1310. u.isKanjiModeEnabled()
  1311. ? ((w = f(a.BYTE, n.BYTE, g)), (E = f(a.KANJI, n.KANJI, g)))
  1312. : ((w = f(a.BYTE_KANJI, n.BYTE, g)), (E = [])),
  1313. C.concat(p, w, E)
  1314. .sort(function (S, b) {
  1315. return S.index - b.index;
  1316. })
  1317. .map(function (S) {
  1318. return { data: S.data, mode: S.mode, length: S.length };
  1319. })
  1320. );
  1321. }
  1322. function y(g, C) {
  1323. switch (C) {
  1324. case n.NUMERIC:
  1325. return t.getBitsLength(g);
  1326. case n.ALPHANUMERIC:
  1327. return s.getBitsLength(g);
  1328. case n.KANJI:
  1329. return r.getBitsLength(g);
  1330. case n.BYTE:
  1331. return o.getBitsLength(g);
  1332. }
  1333. }
  1334. function h(g) {
  1335. return g.reduce(function (C, p) {
  1336. const w = C.length - 1 >= 0 ? C[C.length - 1] : null;
  1337. return w && w.mode === p.mode
  1338. ? ((C[C.length - 1].data += p.data), C)
  1339. : (C.push(p), C);
  1340. }, []);
  1341. }
  1342. function _(g) {
  1343. const C = [];
  1344. for (let p = 0; p < g.length; p++) {
  1345. const w = g[p];
  1346. switch (w.mode) {
  1347. case n.NUMERIC:
  1348. C.push([
  1349. w,
  1350. { data: w.data, mode: n.ALPHANUMERIC, length: w.length },
  1351. { data: w.data, mode: n.BYTE, length: w.length }
  1352. ]);
  1353. break;
  1354. case n.ALPHANUMERIC:
  1355. C.push([w, { data: w.data, mode: n.BYTE, length: w.length }]);
  1356. break;
  1357. case n.KANJI:
  1358. C.push([w, { data: w.data, mode: n.BYTE, length: d(w.data) }]);
  1359. break;
  1360. case n.BYTE:
  1361. C.push([{ data: w.data, mode: n.BYTE, length: d(w.data) }]);
  1362. }
  1363. }
  1364. return C;
  1365. }
  1366. function c(g, C) {
  1367. const p = {},
  1368. w = { start: {} };
  1369. let E = ['start'];
  1370. for (let N = 0; N < g.length; N++) {
  1371. const S = g[N],
  1372. b = [];
  1373. for (let D = 0; D < S.length; D++) {
  1374. const P = S[D],
  1375. Q = '' + N + D;
  1376. b.push(Q), (p[Q] = { node: P, lastCount: 0 }), (w[Q] = {});
  1377. for (let ue = 0; ue < E.length; ue++) {
  1378. const v = E[ue];
  1379. p[v] && p[v].node.mode === P.mode
  1380. ? ((w[v][Q] =
  1381. y(p[v].lastCount + P.length, P.mode) -
  1382. y(p[v].lastCount, P.mode)),
  1383. (p[v].lastCount += P.length))
  1384. : (p[v] && (p[v].lastCount = P.length),
  1385. (w[v][Q] =
  1386. y(P.length, P.mode) + 4 + n.getCharCountIndicator(P.mode, C)));
  1387. }
  1388. }
  1389. E = b;
  1390. }
  1391. for (let N = 0; N < E.length; N++) w[E[N]].end = 0;
  1392. return { map: w, table: p };
  1393. }
  1394. function m(g, C) {
  1395. let p;
  1396. const w = n.getBestModeForData(g);
  1397. if (((p = n.from(C, w)), p !== n.BYTE && p.bit < w.bit))
  1398. throw new Error(
  1399. '"' +
  1400. g +
  1401. '" cannot be encoded with mode ' +
  1402. n.toString(p) +
  1403. `.
  1404. Suggested mode is: ` +
  1405. n.toString(w)
  1406. );
  1407. switch ((p === n.KANJI && !u.isKanjiModeEnabled() && (p = n.BYTE), p)) {
  1408. case n.NUMERIC:
  1409. return new t(g);
  1410. case n.ALPHANUMERIC:
  1411. return new s(g);
  1412. case n.KANJI:
  1413. return new r(g);
  1414. case n.BYTE:
  1415. return new o(g);
  1416. }
  1417. }
  1418. (e.fromArray = function (C) {
  1419. return C.reduce(function (p, w) {
  1420. return (
  1421. typeof w == 'string'
  1422. ? p.push(m(w, null))
  1423. : w.data && p.push(m(w.data, w.mode)),
  1424. p
  1425. );
  1426. }, []);
  1427. }),
  1428. (e.fromString = function (C, p) {
  1429. const w = A(C, u.isKanjiModeEnabled()),
  1430. E = _(w),
  1431. N = c(E, p),
  1432. S = i.find_path(N.map, 'start', 'end'),
  1433. b = [];
  1434. for (let D = 1; D < S.length - 1; D++) b.push(N.table[S[D]].node);
  1435. return e.fromArray(h(b));
  1436. }),
  1437. (e.rawSplit = function (C) {
  1438. return e.fromArray(A(C, u.isKanjiModeEnabled()));
  1439. });
  1440. })($e);
  1441. const ie = T,
  1442. fe = re,
  1443. so = qn,
  1444. ao = kn,
  1445. io = xe,
  1446. uo = Ge,
  1447. Ce = Qe,
  1448. _e = se,
  1449. lo = jn,
  1450. oe = Ke,
  1451. co = Xe,
  1452. fo = U,
  1453. ge = $e;
  1454. function go(e, n) {
  1455. const t = e.size,
  1456. s = uo.getPositions(n);
  1457. for (let o = 0; o < s.length; o++) {
  1458. const r = s[o][0],
  1459. a = s[o][1];
  1460. for (let u = -1; u <= 7; u++)
  1461. if (!(r + u <= -1 || t <= r + u))
  1462. for (let i = -1; i <= 7; i++)
  1463. a + i <= -1 ||
  1464. t <= a + i ||
  1465. ((u >= 0 && u <= 6 && (i === 0 || i === 6)) ||
  1466. (i >= 0 && i <= 6 && (u === 0 || u === 6)) ||
  1467. (u >= 2 && u <= 4 && i >= 2 && i <= 4)
  1468. ? e.set(r + u, a + i, !0, !0)
  1469. : e.set(r + u, a + i, !1, !0));
  1470. }
  1471. }
  1472. function ho(e) {
  1473. const n = e.size;
  1474. for (let t = 8; t < n - 8; t++) {
  1475. const s = t % 2 === 0;
  1476. e.set(t, 6, s, !0), e.set(6, t, s, !0);
  1477. }
  1478. }
  1479. function mo(e, n) {
  1480. const t = io.getPositions(n);
  1481. for (let s = 0; s < t.length; s++) {
  1482. const o = t[s][0],
  1483. r = t[s][1];
  1484. for (let a = -2; a <= 2; a++)
  1485. for (let u = -2; u <= 2; u++)
  1486. a === -2 || a === 2 || u === -2 || u === 2 || (a === 0 && u === 0)
  1487. ? e.set(o + a, r + u, !0, !0)
  1488. : e.set(o + a, r + u, !1, !0);
  1489. }
  1490. }
  1491. function po(e, n) {
  1492. const t = e.size,
  1493. s = oe.getEncodedBits(n);
  1494. let o, r, a;
  1495. for (let u = 0; u < 18; u++)
  1496. (o = Math.floor(u / 3)),
  1497. (r = (u % 3) + t - 8 - 3),
  1498. (a = ((s >> u) & 1) === 1),
  1499. e.set(o, r, a, !0),
  1500. e.set(r, o, a, !0);
  1501. }
  1502. function he(e, n, t) {
  1503. const s = e.size,
  1504. o = co.getEncodedBits(n, t);
  1505. let r, a;
  1506. for (r = 0; r < 15; r++)
  1507. (a = ((o >> r) & 1) === 1),
  1508. r < 6
  1509. ? e.set(r, 8, a, !0)
  1510. : r < 8
  1511. ? e.set(r + 1, 8, a, !0)
  1512. : e.set(s - 15 + r, 8, a, !0),
  1513. r < 8
  1514. ? e.set(8, s - r - 1, a, !0)
  1515. : r < 9
  1516. ? e.set(8, 15 - r - 1 + 1, a, !0)
  1517. : e.set(8, 15 - r - 1, a, !0);
  1518. e.set(s - 8, 8, 1, !0);
  1519. }
  1520. function yo(e, n) {
  1521. const t = e.size;
  1522. let s = -1,
  1523. o = t - 1,
  1524. r = 7,
  1525. a = 0;
  1526. for (let u = t - 1; u > 0; u -= 2)
  1527. for (u === 6 && u--; ; ) {
  1528. for (let i = 0; i < 2; i++)
  1529. if (!e.isReserved(o, u - i)) {
  1530. let d = !1;
  1531. a < n.length && (d = ((n[a] >>> r) & 1) === 1),
  1532. e.set(o, u - i, d),
  1533. r--,
  1534. r === -1 && (a++, (r = 7));
  1535. }
  1536. if (((o += s), o < 0 || t <= o)) {
  1537. (o -= s), (s = -s);
  1538. break;
  1539. }
  1540. }
  1541. }
  1542. function wo(e, n, t) {
  1543. const s = new so();
  1544. t.forEach(function (i) {
  1545. s.put(i.mode.bit, 4),
  1546. s.put(i.getLength(), fo.getCharCountIndicator(i.mode, e)),
  1547. i.write(s);
  1548. });
  1549. const o = ie.getSymbolTotalCodewords(e),
  1550. r = _e.getTotalCodewordsCount(e, n),
  1551. a = (o - r) * 8;
  1552. for (
  1553. s.getLengthInBits() + 4 <= a && s.put(0, 4);
  1554. s.getLengthInBits() % 8 !== 0;
  1555. )
  1556. s.putBit(0);
  1557. const u = (a - s.getLengthInBits()) / 8;
  1558. for (let i = 0; i < u; i++) s.put(i % 2 ? 17 : 236, 8);
  1559. return Co(s, e, n);
  1560. }
  1561. function Co(e, n, t) {
  1562. const s = ie.getSymbolTotalCodewords(n),
  1563. o = _e.getTotalCodewordsCount(n, t),
  1564. r = s - o,
  1565. a = _e.getBlocksCount(n, t),
  1566. u = s % a,
  1567. i = a - u,
  1568. d = Math.floor(s / a),
  1569. f = Math.floor(r / a),
  1570. A = f + 1,
  1571. y = d - f,
  1572. h = new lo(y);
  1573. let _ = 0;
  1574. const c = new Array(a),
  1575. m = new Array(a);
  1576. let g = 0;
  1577. const C = new Uint8Array(e.buffer);
  1578. for (let S = 0; S < a; S++) {
  1579. const b = S < i ? f : A;
  1580. (c[S] = C.slice(_, _ + b)),
  1581. (m[S] = h.encode(c[S])),
  1582. (_ += b),
  1583. (g = Math.max(g, b));
  1584. }
  1585. const p = new Uint8Array(s);
  1586. let w = 0,
  1587. E,
  1588. N;
  1589. for (E = 0; E < g; E++)
  1590. for (N = 0; N < a; N++) E < c[N].length && (p[w++] = c[N][E]);
  1591. for (E = 0; E < y; E++) for (N = 0; N < a; N++) p[w++] = m[N][E];
  1592. return p;
  1593. }
  1594. function _o(e, n, t, s) {
  1595. let o;
  1596. if (Array.isArray(e)) o = ge.fromArray(e);
  1597. else if (typeof e == 'string') {
  1598. let d = n;
  1599. if (!d) {
  1600. const f = ge.rawSplit(e);
  1601. d = oe.getBestVersionForData(f, t);
  1602. }
  1603. o = ge.fromString(e, d || 40);
  1604. } else throw new Error('Invalid data');
  1605. const r = oe.getBestVersionForData(o, t);
  1606. if (!r)
  1607. throw new Error('The amount of data is too big to be stored in a QR Code');
  1608. if (!n) n = r;
  1609. else if (n < r)
  1610. throw new Error(
  1611. `
  1612. The chosen QR Code version cannot contain this amount of data.
  1613. Minimum version required to store current data is: ` +
  1614. r +
  1615. `.
  1616. `
  1617. );
  1618. const a = wo(n, t, o),
  1619. u = ie.getSymbolSize(n),
  1620. i = new ao(u);
  1621. return (
  1622. go(i, n),
  1623. ho(i),
  1624. mo(i, n),
  1625. he(i, t, 0),
  1626. n >= 7 && po(i, n),
  1627. yo(i, a),
  1628. isNaN(s) && (s = Ce.getBestMask(i, he.bind(null, i, t))),
  1629. Ce.applyMask(s, i),
  1630. he(i, t, s),
  1631. {
  1632. modules: i,
  1633. version: n,
  1634. errorCorrectionLevel: t,
  1635. maskPattern: s,
  1636. segments: o
  1637. }
  1638. );
  1639. }
  1640. Ve.create = function (n, t) {
  1641. if (typeof n > 'u' || n === '') throw new Error('No input text');
  1642. let s = fe.M,
  1643. o,
  1644. r;
  1645. return (
  1646. typeof t < 'u' &&
  1647. ((s = fe.from(t.errorCorrectionLevel, fe.M)),
  1648. (o = oe.from(t.version)),
  1649. (r = Ce.from(t.maskPattern)),
  1650. t.toSJISFunc && ie.setToSJISFunction(t.toSJISFunc)),
  1651. _o(n, o, s, r)
  1652. );
  1653. };
  1654. var tt = {},
  1655. Te = {};
  1656. (function (e) {
  1657. function n(t) {
  1658. if ((typeof t == 'number' && (t = t.toString()), typeof t != 'string'))
  1659. throw new Error('Color should be defined as hex string');
  1660. let s = t.slice().replace('#', '').split('');
  1661. if (s.length < 3 || s.length === 5 || s.length > 8)
  1662. throw new Error('Invalid hex color: ' + t);
  1663. (s.length === 3 || s.length === 4) &&
  1664. (s = Array.prototype.concat.apply(
  1665. [],
  1666. s.map(function (r) {
  1667. return [r, r];
  1668. })
  1669. )),
  1670. s.length === 6 && s.push('F', 'F');
  1671. const o = parseInt(s.join(''), 16);
  1672. return {
  1673. r: (o >> 24) & 255,
  1674. g: (o >> 16) & 255,
  1675. b: (o >> 8) & 255,
  1676. a: o & 255,
  1677. hex: '#' + s.slice(0, 6).join('')
  1678. };
  1679. }
  1680. (e.getOptions = function (s) {
  1681. s || (s = {}), s.color || (s.color = {});
  1682. const o =
  1683. typeof s.margin > 'u' || s.margin === null || s.margin < 0
  1684. ? 4
  1685. : s.margin,
  1686. r = s.width && s.width >= 21 ? s.width : void 0,
  1687. a = s.scale || 4;
  1688. return {
  1689. width: r,
  1690. scale: r ? 4 : a,
  1691. margin: o,
  1692. color: {
  1693. dark: n(s.color.dark || '#000000ff'),
  1694. light: n(s.color.light || '#ffffffff')
  1695. },
  1696. type: s.type,
  1697. rendererOpts: s.rendererOpts || {}
  1698. };
  1699. }),
  1700. (e.getScale = function (s, o) {
  1701. return o.width && o.width >= s + o.margin * 2
  1702. ? o.width / (s + o.margin * 2)
  1703. : o.scale;
  1704. }),
  1705. (e.getImageWidth = function (s, o) {
  1706. const r = e.getScale(s, o);
  1707. return Math.floor((s + o.margin * 2) * r);
  1708. }),
  1709. (e.qrToImageData = function (s, o, r) {
  1710. const a = o.modules.size,
  1711. u = o.modules.data,
  1712. i = e.getScale(a, r),
  1713. d = Math.floor((a + r.margin * 2) * i),
  1714. f = r.margin * i,
  1715. A = [r.color.light, r.color.dark];
  1716. for (let y = 0; y < d; y++)
  1717. for (let h = 0; h < d; h++) {
  1718. let _ = (y * d + h) * 4,
  1719. c = r.color.light;
  1720. if (y >= f && h >= f && y < d - f && h < d - f) {
  1721. const m = Math.floor((y - f) / i),
  1722. g = Math.floor((h - f) / i);
  1723. c = A[u[m * a + g] ? 1 : 0];
  1724. }
  1725. (s[_++] = c.r), (s[_++] = c.g), (s[_++] = c.b), (s[_] = c.a);
  1726. }
  1727. });
  1728. })(Te);
  1729. (function (e) {
  1730. const n = Te;
  1731. function t(o, r, a) {
  1732. o.clearRect(0, 0, r.width, r.height),
  1733. r.style || (r.style = {}),
  1734. (r.height = a),
  1735. (r.width = a),
  1736. (r.style.height = a + 'px'),
  1737. (r.style.width = a + 'px');
  1738. }
  1739. function s() {
  1740. try {
  1741. return document.createElement('canvas');
  1742. } catch (o) {
  1743. throw new Error('You need to specify a canvas element');
  1744. }
  1745. }
  1746. (e.render = function (r, a, u) {
  1747. let i = u,
  1748. d = a;
  1749. typeof i > 'u' && (!a || !a.getContext) && ((i = a), (a = void 0)),
  1750. a || (d = s()),
  1751. (i = n.getOptions(i));
  1752. const f = n.getImageWidth(r.modules.size, i),
  1753. A = d.getContext('2d'),
  1754. y = A.createImageData(f, f);
  1755. return (
  1756. n.qrToImageData(y.data, r, i), t(A, d, f), A.putImageData(y, 0, 0), d
  1757. );
  1758. }),
  1759. (e.renderToDataURL = function (r, a, u) {
  1760. let i = u;
  1761. typeof i > 'u' && (!a || !a.getContext) && ((i = a), (a = void 0)),
  1762. i || (i = {});
  1763. const d = e.render(r, a, i),
  1764. f = i.type || 'image/png',
  1765. A = i.rendererOpts || {};
  1766. return d.toDataURL(f, A.quality);
  1767. });
  1768. })(tt);
  1769. var nt = {};
  1770. const Eo = Te;
  1771. function Re(e, n) {
  1772. const t = e.a / 255,
  1773. s = n + '="' + e.hex + '"';
  1774. return t < 1 ? s + ' ' + n + '-opacity="' + t.toFixed(2).slice(1) + '"' : s;
  1775. }
  1776. function me(e, n, t) {
  1777. let s = e + n;
  1778. return typeof t < 'u' && (s += ' ' + t), s;
  1779. }
  1780. function Ao(e, n, t) {
  1781. let s = '',
  1782. o = 0,
  1783. r = !1,
  1784. a = 0;
  1785. for (let u = 0; u < e.length; u++) {
  1786. const i = Math.floor(u % n),
  1787. d = Math.floor(u / n);
  1788. !i && !r && (r = !0),
  1789. e[u]
  1790. ? (a++,
  1791. (u > 0 && i > 0 && e[u - 1]) ||
  1792. ((s += r ? me('M', i + t, 0.5 + d + t) : me('m', o, 0)),
  1793. (o = 0),
  1794. (r = !1)),
  1795. (i + 1 < n && e[u + 1]) || ((s += me('h', a)), (a = 0)))
  1796. : o++;
  1797. }
  1798. return s;
  1799. }
  1800. nt.render = function (n, t, s) {
  1801. const o = Eo.getOptions(t),
  1802. r = n.modules.size,
  1803. a = n.modules.data,
  1804. u = r + o.margin * 2,
  1805. i = o.color.light.a
  1806. ? '<path ' +
  1807. Re(o.color.light, 'fill') +
  1808. ' d="M0 0h' +
  1809. u +
  1810. 'v' +
  1811. u +
  1812. 'H0z"/>'
  1813. : '',
  1814. d =
  1815. '<path ' +
  1816. Re(o.color.dark, 'stroke') +
  1817. ' d="' +
  1818. Ao(a, r, o.margin) +
  1819. '"/>',
  1820. f = 'viewBox="0 0 ' + u + ' ' + u + '"',
  1821. y =
  1822. '<svg xmlns="http://www.w3.org/2000/svg" ' +
  1823. (o.width ? 'width="' + o.width + '" height="' + o.width + '" ' : '') +
  1824. f +
  1825. ' shape-rendering="crispEdges">' +
  1826. i +
  1827. d +
  1828. `</svg>
  1829. `;
  1830. return typeof s == 'function' && s(null, y), y;
  1831. };
  1832. const Bo = Ln,
  1833. Ee = Ve,
  1834. ot = tt,
  1835. No = nt;
  1836. function be(e, n, t, s, o) {
  1837. const r = [].slice.call(arguments, 1),
  1838. a = r.length,
  1839. u = typeof r[a - 1] == 'function';
  1840. if (!u && !Bo()) throw new Error('Callback required as last argument');
  1841. if (u) {
  1842. if (a < 2) throw new Error('Too few arguments provided');
  1843. a === 2
  1844. ? ((o = t), (t = n), (n = s = void 0))
  1845. : a === 3 &&
  1846. (n.getContext && typeof o > 'u'
  1847. ? ((o = s), (s = void 0))
  1848. : ((o = s), (s = t), (t = n), (n = void 0)));
  1849. } else {
  1850. if (a < 1) throw new Error('Too few arguments provided');
  1851. return (
  1852. a === 1
  1853. ? ((t = n), (n = s = void 0))
  1854. : a === 2 && !n.getContext && ((s = t), (t = n), (n = void 0)),
  1855. new Promise(function (i, d) {
  1856. try {
  1857. const f = Ee.create(t, s);
  1858. i(e(f, n, s));
  1859. } catch (f) {
  1860. d(f);
  1861. }
  1862. })
  1863. );
  1864. }
  1865. try {
  1866. const i = Ee.create(t, s);
  1867. o(null, e(i, n, s));
  1868. } catch (i) {
  1869. o(i);
  1870. }
  1871. }
  1872. Z.create = Ee.create;
  1873. Z.toCanvas = be.bind(null, ot.render);
  1874. Z.toDataURL = be.bind(null, ot.renderToDataURL);
  1875. Z.toString = be.bind(null, function (e, n, t) {
  1876. return No.render(e, t);
  1877. });
  1878. const Io = '_qrcode_izshm_1',
  1879. So = '_qrcodeCanvas_izshm_4',
  1880. To = '_qrcodeLogo_izshm_8',
  1881. bo = '_small_izshm_18',
  1882. ee = { qrcode: Io, qrcodeCanvas: So, qrcodeLogo: To, small: bo },
  1883. Po = G({
  1884. props: {
  1885. text: { type: String, default: '' },
  1886. size: { type: String, default: '200px' },
  1887. logoSize: { type: String, default: 'default' }
  1888. },
  1889. setup(e) {
  1890. const n = Oe(),
  1891. t = () => {
  1892. Z.toCanvas(n.value, e.text, { margin: 1 }, s => {
  1893. s && console.log(s), console.log('success');
  1894. });
  1895. };
  1896. return (
  1897. st(
  1898. () => e.text,
  1899. () => {
  1900. t();
  1901. }
  1902. ),
  1903. je(() => {
  1904. at(() => {
  1905. t();
  1906. });
  1907. }),
  1908. () =>
  1909. l(
  1910. 'div',
  1911. { class: ee.qrcode, style: { width: e.size, height: e.size } },
  1912. [
  1913. l('canvas', { ref: n, class: ee.qrcodeCanvas }, null),
  1914. l(
  1915. 'img',
  1916. {
  1917. src: Rn,
  1918. class: [ee.qrcodeLogo, e.logoSize === 'small' && ee.small]
  1919. },
  1920. null
  1921. )
  1922. ]
  1923. )
  1924. );
  1925. }
  1926. }),
  1927. Fo = G({
  1928. name: 'qrcode-payment',
  1929. props: {
  1930. url: { type: String, default: '' },
  1931. pay_channel: { type: String, default: 'wx_pub' },
  1932. orderType: { type: String, default: '' }
  1933. },
  1934. setup(e) {
  1935. return () =>
  1936. l('div', { class: [M.saveShareImage] }, [
  1937. l('div', { class: [M.shareContaienr] }, [
  1938. l('div', { class: M.schoolName }, [
  1939. e.orderType === 'VIP' ? '会员购买' : '报名缴费'
  1940. ]),
  1941. l('div', { class: M.shareType }, [
  1942. B('请截图下方二维码'),
  1943. l('span', null, [
  1944. B('登录'),
  1945. e.pay_channel === 'wx_pub' ? '微信' : '支付宝',
  1946. B('扫码支付')
  1947. ])
  1948. ]),
  1949. l('div', { class: M.qrcodeSection }, [
  1950. l(Po, { text: e.url, logoSize: 'small', size: '100%' }, null)
  1951. ]),
  1952. l('div', { class: M.memo }, [B('请在30分钟内扫码支付')])
  1953. ]),
  1954. l('div', { class: [M.tips] }, [
  1955. l('div', { class: M.tipsTitle }, [B('使用说明:')]),
  1956. l('div', { class: M.tipsContent }, [
  1957. B('1.打开'),
  1958. e.pay_channel === 'wx_pub' ? '微信' : '支付宝',
  1959. B('扫一扫'),
  1960. l('br', null, null),
  1961. B('2.选择相册中的二维码'),
  1962. l('br', null, null),
  1963. B('3.请在30分钟内扫码支付')
  1964. ])
  1965. ])
  1966. ]);
  1967. }
  1968. }),
  1969. vo = e => {
  1970. let n = 'qrCode';
  1971. return (
  1972. q().weixin
  1973. ? e == 'alipay_qr' || e == 'alipay_wap'
  1974. ? (n = 'qrCode')
  1975. : e == 'wx_pub' && (n = 'pay')
  1976. : q().alipay && e == 'alipay_wap'
  1977. ? (n = 'pay')
  1978. : (n = 'qrCode'),
  1979. n == 'qrCode' ? 'payDefine' : 'payResult'
  1980. );
  1981. },
  1982. Yo = G({
  1983. name: 'order-detail',
  1984. setup() {
  1985. const e = it(),
  1986. n = Le(),
  1987. t = qe({
  1988. paymentType: 'adapay',
  1989. orderTimer: null,
  1990. paymentStatus: !1,
  1991. showQrcode: !1,
  1992. qrCodeUrl: '',
  1993. pay_channel: '',
  1994. orderNo: e.query.orderNo,
  1995. orderInfo: {},
  1996. goodsInfos: [],
  1997. config: e.query.config ? JSON.parse(e.query.config) : {},
  1998. hasFreight: !e.query.hf,
  1999. freight: '',
  2000. agreeStatus: !0,
  2001. showHeader: !1,
  2002. authShow: !1,
  2003. selectGoodsId: null,
  2004. currentPrice: 0,
  2005. dialogStatus: !1,
  2006. dialogMessage: '',
  2007. submitStatus: !1
  2008. }),
  2009. s = Ue(() => t.orderInfo.orderType),
  2010. o = Oe({}),
  2011. r = async () => {
  2012. try {
  2013. const { data: c } = await O.get(
  2014. '/edu-app/userPaymentOrder/detail/' + t.orderNo
  2015. ),
  2016. m = c.goodsInfos || [];
  2017. t.orderInfo = c;
  2018. let g = !1;
  2019. m.forEach(C => {
  2020. const p = C.goodsUrl ? C.goodsUrl.split(',')[0] : '';
  2021. (C.goodsUrl = p), C.goodsType === 'INSTRUMENTS' && (g = !0);
  2022. }),
  2023. (t.goodsInfos = m),
  2024. o.value.id || (o.value = c.addresses || {}),
  2025. g ? (t.freight = '到付') : (t.freight = '免运费'),
  2026. c.status !== 'WAIT_PAY' &&
  2027. c.status !== 'PAYING' &&
  2028. ((t.dialogStatus = !0),
  2029. (t.dialogMessage = '订单' + An[c.status]));
  2030. } catch (c) {}
  2031. },
  2032. a = c => {
  2033. const m = t.config;
  2034. t.pay_channel = c.pay_channel;
  2035. const g = gt.stringify({
  2036. pay_channel: c.pay_channel,
  2037. wxAppId: m.wxAppId,
  2038. body: m.body,
  2039. price: m.price,
  2040. orderNo: m.merOrderNo,
  2041. userId: m.userId
  2042. });
  2043. c.payCode === 'payResult'
  2044. ? (window.location.href =
  2045. window.location.origin + '/classroom-app/#/payResult?' + g)
  2046. : ((t.qrCodeUrl =
  2047. window.location.origin + '/classroom-app/#/payDefine?' + g),
  2048. (t.showQrcode = !0),
  2049. (t.paymentStatus = !1),
  2050. setTimeout(() => {
  2051. u();
  2052. }, 300));
  2053. },
  2054. u = async () => {
  2055. const c = setInterval(async () => {
  2056. if (e.name != 'order-detail') {
  2057. clearInterval(c);
  2058. return;
  2059. }
  2060. t.orderTimer = c;
  2061. try {
  2062. const { data: m } = await O.post(
  2063. '/edu-app/open/userOrder/paymentStatus/' + t.orderNo,
  2064. { hideLoading: !0 }
  2065. );
  2066. m.status !== 'WAIT_PAY' &&
  2067. m.status !== 'PAYING' &&
  2068. ((t.showQrcode = !1),
  2069. clearInterval(t.orderTimer),
  2070. setTimeout(() => {
  2071. y();
  2072. }, 100));
  2073. } catch (m) {
  2074. clearInterval(t.orderTimer);
  2075. }
  2076. }, 5e3);
  2077. },
  2078. i = async () => {
  2079. clearInterval(t.orderTimer), s.value === 'VIP' ? f(d) : A(d);
  2080. },
  2081. d = () => {
  2082. const c = t.pay_channel;
  2083. if (c) {
  2084. const m = vo(t.pay_channel);
  2085. a({ payCode: m, pay_channel: c });
  2086. } else
  2087. s.value === 'VIP'
  2088. ? (t.paymentStatus = !0)
  2089. : a({ payCode: 'payResult', pay_channel: 'wx_pub' });
  2090. },
  2091. f = async c => {
  2092. try {
  2093. if (!t.agreeStatus) {
  2094. le('请先阅读并同意《音乐数字课堂服务协议》');
  2095. return;
  2096. }
  2097. const m = Y.user.data;
  2098. if (
  2099. !(m != null && m.account.realName) ||
  2100. !(m != null && m.account.idCardNo)
  2101. ) {
  2102. t.authShow = !0;
  2103. return;
  2104. }
  2105. t.submitStatus = !0;
  2106. const { data: g } = await O.post(
  2107. '/edu-app/userPaymentOrder/updateReceiveAddress',
  2108. {
  2109. hideLoading: !1,
  2110. data: { orderNo: t.orderNo, orderType: 'VIP' }
  2111. }
  2112. );
  2113. (t.pay_channel = g.paymentChannel),
  2114. g.status !== 'WAIT_PAY' && g.status !== 'PAYING'
  2115. ? n.replace({
  2116. path: '/payment-result',
  2117. query: { orderNo: t.orderNo }
  2118. })
  2119. : (c && c(), (t.submitStatus = !1));
  2120. } catch (m) {
  2121. t.submitStatus = !1;
  2122. }
  2123. },
  2124. A = async c => {
  2125. if (!o.value.id) {
  2126. le('请选择收货地址');
  2127. return;
  2128. }
  2129. if (!t.agreeStatus) {
  2130. le('请先阅读并同意《音乐数字课堂服务协议》');
  2131. return;
  2132. }
  2133. const m = Y.user.data;
  2134. if (
  2135. !(m != null && m.account.realName) ||
  2136. !(m != null && m.account.idCardNo)
  2137. ) {
  2138. t.authShow = !0;
  2139. return;
  2140. }
  2141. t.submitStatus = !0;
  2142. try {
  2143. const { data: g } = await O.post(
  2144. '/edu-app/userPaymentOrder/updateReceiveAddress',
  2145. {
  2146. hideLoading: !1,
  2147. data: {
  2148. orderNo: t.orderNo,
  2149. orderType: 'SCHOOL_REGISTER',
  2150. receiveAddress: o.value.id
  2151. }
  2152. }
  2153. );
  2154. (t.pay_channel = g.paymentChannel),
  2155. g.status !== 'WAIT_PAY' && g.status !== 'PAYING'
  2156. ? y()
  2157. : (c && c(), (t.submitStatus = !1));
  2158. } catch (g) {
  2159. t.submitStatus = !1;
  2160. }
  2161. },
  2162. y = () => {
  2163. n.replace({ path: '/payment-result', query: { orderNo: t.orderNo } });
  2164. },
  2165. h = async () => {
  2166. try {
  2167. await O.post(
  2168. '/edu-app/userPaymentOrder/cancelPayment/' + t.orderNo
  2169. ),
  2170. n.back();
  2171. } catch (c) {}
  2172. },
  2173. _ = () => {
  2174. (t.authShow = !1), i();
  2175. };
  2176. return (
  2177. je(() => {
  2178. q().isApp ? (t.showHeader = !0) : (t.showHeader = !1);
  2179. let c = sessionStorage.getItem('addressDetails');
  2180. (c = c ? JSON.parse(c) : {}),
  2181. (o.value = c),
  2182. sessionStorage.removeItem('addressDetails'),
  2183. r();
  2184. }),
  2185. () =>
  2186. l(pe, null, [
  2187. q().isApp && l(ke, { border: !1 }, null),
  2188. l('div', { class: I.cartConfirm }, [
  2189. s.value === 'SCHOOL_REGISTER' &&
  2190. l('div', { class: I.cartConfirmBox }, [
  2191. l(an, { item: o.value }, null)
  2192. ]),
  2193. l(
  2194. Be,
  2195. { style: { margin: 0 } },
  2196. {
  2197. default: () => [
  2198. t.goodsInfos &&
  2199. t.goodsInfos.map(c =>
  2200. l(
  2201. j,
  2202. { class: I.cellItem },
  2203. {
  2204. icon: () =>
  2205. l(mt, { class: I.img, src: c.goodsUrl }, null),
  2206. title: () =>
  2207. l('div', { class: I.goodsContent }, [
  2208. l('h2', null, [
  2209. l('span', null, [c.goodsName]),
  2210. l('span', { class: I.goodsNum }, [
  2211. B('x '),
  2212. c.goodsNum
  2213. ])
  2214. ]),
  2215. l('div', { class: I.goodsPrice }, [
  2216. l(
  2217. ze,
  2218. { class: I.brandName },
  2219. {
  2220. default: () => [
  2221. c.goodsType === 'VIP'
  2222. ? '12个月'
  2223. : c.brandName
  2224. ]
  2225. }
  2226. ),
  2227. l(
  2228. 'span',
  2229. {
  2230. class: [
  2231. I.goodsNums,
  2232. c.paymentCashAmount > 0
  2233. ? I.numFont
  2234. : I.free
  2235. ]
  2236. },
  2237. [
  2238. c.paymentCashAmount > 0
  2239. ? l(pe, null, [
  2240. l('span', { class: I.numPrefix }, [
  2241. B('¥ ')
  2242. ]),
  2243. ye(c.paymentCashAmount)
  2244. ])
  2245. : '免费'
  2246. ]
  2247. )
  2248. ]),
  2249. l('p', { class: I.model }, [c.description])
  2250. ])
  2251. }
  2252. )
  2253. )
  2254. ]
  2255. }
  2256. ),
  2257. s.value === 'SCHOOL_REGISTER' &&
  2258. l(
  2259. j,
  2260. { class: I.freight, title: '运费', value: t.freight },
  2261. null
  2262. )
  2263. ]),
  2264. l(
  2265. ut,
  2266. { position: 'bottom' },
  2267. {
  2268. default: () => [
  2269. l('div', { class: I.protocol }, [
  2270. l(
  2271. ct,
  2272. {
  2273. modelValue: t.agreeStatus,
  2274. 'onUpdate:modelValue': c => (t.agreeStatus = c),
  2275. showHeader: t.showHeader,
  2276. style: { paddingTop: 0, paddingBottom: 0 }
  2277. },
  2278. null
  2279. )
  2280. ]),
  2281. l('div', { class: I.paymentContainer }, [
  2282. l('div', { class: I.payemntPrice }, [
  2283. l('p', { class: I.needPrice }, [
  2284. B('支付金额:'),
  2285. l('span', null, [
  2286. l('i', null, [B('¥')]),
  2287. ye(t.orderInfo.currentPrice)
  2288. ])
  2289. ])
  2290. ]),
  2291. l('div', { class: I.paymentBtn }, [
  2292. l(
  2293. Ae,
  2294. {
  2295. round: !0,
  2296. class: [I.submitBtn],
  2297. onClick: i,
  2298. loading: t.submitStatus,
  2299. disabled: t.submitStatus
  2300. },
  2301. { default: () => [B('提交')] }
  2302. )
  2303. ])
  2304. ])
  2305. ]
  2306. }
  2307. ),
  2308. l(
  2309. Pe,
  2310. {
  2311. show: t.paymentStatus,
  2312. closeOnClickOverlay: !1,
  2313. position: 'bottom',
  2314. round: !0,
  2315. closeOnPopstate: !0,
  2316. safeAreaInsetBottom: !0,
  2317. style: { minHeight: '30%' }
  2318. },
  2319. {
  2320. default: () => [
  2321. l(
  2322. pn,
  2323. {
  2324. paymentConfig: t.orderInfo,
  2325. onClose: () => (t.paymentStatus = !1),
  2326. onBackOut: h,
  2327. onConfirm: c => a(c)
  2328. },
  2329. null
  2330. )
  2331. ]
  2332. }
  2333. ),
  2334. l(
  2335. Pe,
  2336. {
  2337. show: t.showQrcode,
  2338. 'onUpdate:show': c => (t.showQrcode = c),
  2339. round: !0,
  2340. onClose: () => {
  2341. clearInterval(t.orderTimer);
  2342. }
  2343. },
  2344. {
  2345. default: () => [
  2346. l(
  2347. Fo,
  2348. {
  2349. url: t.qrCodeUrl,
  2350. pay_channel: t.pay_channel,
  2351. orderType: s.value
  2352. },
  2353. null
  2354. )
  2355. ]
  2356. }
  2357. ),
  2358. l(
  2359. dt,
  2360. {
  2361. modelValue: t.authShow,
  2362. 'onUpdate:modelValue': c => (t.authShow = c)
  2363. },
  2364. {
  2365. default: () => [
  2366. l(En, { onSuccess: _, hideHeader: !q().isApp }, null)
  2367. ]
  2368. }
  2369. ),
  2370. l(
  2371. ht,
  2372. {
  2373. title: '提示',
  2374. show: t.dialogStatus,
  2375. 'onUpdate:show': c => (t.dialogStatus = c),
  2376. message: t.dialogMessage,
  2377. confirmButtonText: '确定',
  2378. onConfirm: () => {
  2379. y();
  2380. }
  2381. },
  2382. null
  2383. )
  2384. ])
  2385. );
  2386. }
  2387. });
  2388. export { Yo as default };