@mescius/wijmo.barcode.composite 5.20232.939
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/COMMERCIAL-LICENSE.html +485 -0
- package/README.md +363 -0
- package/es2015-commonjs.js +14 -0
- package/es2015-esm.js +14 -0
- package/es5-esm.js +14 -0
- package/index.d.ts +989 -0
- package/index.js +14 -0
- package/package.json +45 -0
package/README.md
ADDED
|
@@ -0,0 +1,363 @@
|
|
|
1
|
+
[English](#wijmo) | [日本語](#wijmo-jp) | [中文](#wijmo-cn) | [한국어](#wijmo-kr)
|
|
2
|
+
|
|
3
|
+
# Wijmo
|
|
4
|
+
|
|
5
|
+
Wijmo is a complete set of [JavaScript UI components](https://developer.mescius.com/wijmo?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm) for enterprise development. It includes a powerful data grid, charts, pivot tools, inputs, and much more and is available in your favorite framework, including [Angular](https://developer.mescius.com/wijmo/angular-ui-components?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm), [React](https://developer.mescius.com/wijmo/react-ui-components?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm), and [Vue](https://developer.mescius.com/wijmo/vue-ui-components?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm).
|
|
6
|
+
|
|
7
|
+
Cut your development time in half with Wijmo's lightweight, high-performance JavaScript UI components.
|
|
8
|
+
|
|
9
|
+
Check out our popular [FlexGrid data grid](https://developer.mescius.com/wijmo/flexgrid-javascript-data-grid?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm) control.
|
|
10
|
+
|
|
11
|
+
Read more about [Wijmo NPM Packages](https://developer.mescius.com/wijmo/docs/GettingStarted/Referencing-Wijmo-NPM?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
12
|
+
|
|
13
|
+
---
|
|
14
|
+
|
|
15
|
+
## The BEST DataGrid for JavaScript, Angular, React and Vue
|
|
16
|
+
|
|
17
|
+
A great datagrid starts with a fundamentally sound grid. FlexGrid includes only the essential vital features and offers everything else through an extensibility model. Basic Excel-like features like sorting, grouping, and editing are built-in, while the bells and whistles are optional.
|
|
18
|
+
|
|
19
|
+

|
|
20
|
+
|
|
21
|
+
The result is a small, fast, familiar, flexible grid. Learn more about FlexGrid for your favorite framework:
|
|
22
|
+
|
|
23
|
+
- [JavaScript datagrid](https://developer.mescius.com/wijmo/flexgrid-javascript-data-grid?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
24
|
+
- [Angular datagrid](https://developer.mescius.com/wijmo/angular-ui-components/flexgrid-angular-data-grid?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
25
|
+
- [React datagrid](https://developer.mescius.com/wijmo/react-ui-components/flexgrid-react-data-grid?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
26
|
+
- [Vue datagrid](https://developer.mescius.com/wijmo/vue-ui-components/flexgrid-vue-data-grid?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
## Get What You're Missing From NPM!
|
|
31
|
+
|
|
32
|
+
Make sure to download Wijmo to get the full developer pack. NPM only includes our JS components, but our developer pack includes hundreds of samples with source code for every JS framework, real-world reference applications, and much more!
|
|
33
|
+
|
|
34
|
+
**[Download the Wijmo Developer Pack](https://developer.mescius.com/wijmo/npm?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm) to jump-start your project.**
|
|
35
|
+
|
|
36
|
+
---
|
|
37
|
+
|
|
38
|
+
## Samples
|
|
39
|
+
|
|
40
|
+
Over 450 feature samples available in any JavaScript framework
|
|
41
|
+
|
|
42
|
+
- [JavaScript Samples](https://developer.mescius.com/wijmo/demos/Grid/Overview/purejs?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
43
|
+
- [Angular Samples](https://developer.mescius.com/wijmo/demos/Grid/Overview/angular?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
44
|
+
- [React Samples](https://developer.mescius.com/wijmo/demos/Grid/Overview/react?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
45
|
+
- [Vue Samples](https://developer.mescius.com/wijmo/demos/Grid/Overview/vue?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
46
|
+
|
|
47
|
+
We also have real-world reference applications available in any JavaScript framework
|
|
48
|
+
|
|
49
|
+
- [JavaScript Reference Applications](https://developer.mescius.com/wijmo/demos/reference-samples/fw-purejs?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
50
|
+
- [Angular Reference Applications](https://developer.mescius.com/wijmo/demos/reference-samples/fw-angular?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
51
|
+
- [React Reference Applications](https://developer.mescius.com/wijmo/demos/reference-samples/fw-react?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
52
|
+
- [React Redux Reference Applications](https://developer.mescius.com/wijmo/demos/reference-samples/fw-react-redux?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
53
|
+
- [Vue Reference Applications](https://developer.mescius.com/wijmo/demos/reference-samples/fw-vue?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
54
|
+
|
|
55
|
+
Sample source code available with our [Wijmo Developer Pack](https://developer.mescius.com/wijmo/npm?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm).
|
|
56
|
+
|
|
57
|
+
## Installation
|
|
58
|
+
|
|
59
|
+
### To install latest release version:
|
|
60
|
+
|
|
61
|
+
```sh
|
|
62
|
+
npm install @grapecity/wijmo.all
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### To install latest nightly build:
|
|
66
|
+
|
|
67
|
+
```sh
|
|
68
|
+
npm install @grapecity/wijmo.all@nightly
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### To install latest RC build:
|
|
72
|
+
|
|
73
|
+
```sh
|
|
74
|
+
npm install @grapecity/wijmo.all@rc
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Documentation
|
|
78
|
+
|
|
79
|
+
On-line documentation is available here:
|
|
80
|
+
|
|
81
|
+
- [API Reference](https://developer.mescius.com/wijmo/api/?utm_source=wijmonpm&utm_medium=npm&utm_campaign=wijmonpm&utm_content=api)
|
|
82
|
+
- [Documentation Guides](https://developer.mescius.com/wijmo/docs/?utm_source=wijmonpm&utm_medium=npm&utm_campaign=wijmonpm&utm_content=docs)
|
|
83
|
+
|
|
84
|
+
## Licensing
|
|
85
|
+
|
|
86
|
+
Wijmo is commercially licensed per developer.
|
|
87
|
+
|
|
88
|
+
Read more about [Wijmo Licensing](https://developer.mescius.com/licensing/wijmo?utm_source=wijmonpm&utm_medium=npm&utm_campaign=wijmonpm&utm_content=licensing).
|
|
89
|
+
|
|
90
|
+
## Resources
|
|
91
|
+
|
|
92
|
+
- [Quick Start Guide](https://developer.mescius.com/wijmo/docs/GettingStarted/QuickStart/QuickStart-PureJS?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
93
|
+
- [About Wijmo](https://developer.mescius.com/wijmo?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
94
|
+
- [Blogs](https://developer.mescius.com/blogs/tags/wijmo?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
95
|
+
- [Knowledge Base](https://developer.mescius.com/kb/wijmo?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
96
|
+
|
|
97
|
+
Wijmo Exclusive [Developer Pack Available Here](https://developer.mescius.com/wijmo/npm?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
98
|
+
|
|
99
|
+
## Support
|
|
100
|
+
|
|
101
|
+
**Wijmo Support You Need, When You Need It**
|
|
102
|
+
|
|
103
|
+
Whether it is through documentation and how-tos, support tickets, or phone assistance, we have one mission: to help you be even more successful.
|
|
104
|
+
With our Customer Engagement Team, you get direct access to the developers building Wijmo, who will work with you to resolve any issue. You will be in good hands: our current customer satisfaction rating is 85%.
|
|
105
|
+
|
|
106
|
+
- 24 hour response time in our [ticketing system](https://developer.mescius.com/support/contact?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
107
|
+
- Access to our US-based [phone support](https://developer.mescius.com/contact?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm) team (9AM-5PM EST)
|
|
108
|
+
- Elevated priority in the support queue
|
|
109
|
+
|
|
110
|
+
Support plans available with a [MESCIUS Wijmo](https://developer.mescius.com/wijmo?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm) license
|
|
111
|
+
|
|
112
|
+
Product support is available through the following mediums:
|
|
113
|
+
|
|
114
|
+
- [Submit a Ticket](https://developer.mescius.com/support/contact?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
115
|
+
- [Wijmo Forum](https://developer.mescius.com/forums/wijmo?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
116
|
+
|
|
117
|
+
## Questions and Feedback
|
|
118
|
+
|
|
119
|
+
We value your feedback and utilize suggestions to help create product roadmaps. Tell us what you think.
|
|
120
|
+
|
|
121
|
+
Submit questions to our team of [Wijmo Experts](https://developer.mescius.com/forums/wijmo?utm_source=npmwebsite&utm_medium=prospects&utm_campaign=wijmo_npm)
|
|
122
|
+
|
|
123
|
+
## Wijmo JP
|
|
124
|
+
|
|
125
|
+
[Wijmo](https://developer.mescius.jp/wijmo)は、Webアプリケーション開発に最適な数多くのUIを搭載するJavaScriptコンポーネントセットです。高速・軽量であり、開発工数の削減に大きく寄与します。データグリッド、チャート、ピボットテーブル、入力など、業務アプリケーション開発に必要となるコントロールを多数収録し、またAngularやReact、Vue.jsといったJavaScriptフレームワークにも対応しています。
|
|
126
|
+
|
|
127
|
+
なお、日本語版での動作保証は日本語版サイトで公開しているバージョンのみとなります。
|
|
128
|
+
また、日本語版を使用する場合は、日本語版のソフトウェア使用許諾契約書が適用されます。日本語版のソフトウェア使用許諾契約書は以下をご覧ください。
|
|
129
|
+
|
|
130
|
+
- [ソフトウェア使用許諾契約書](https://download.mescius.jp/license/wijmo/wijmo-userlicense.pdf)
|
|
131
|
+
|
|
132
|
+
## サンプル
|
|
133
|
+
|
|
134
|
+
[オンラインデモ](https://developer.mescius.jp/wijmo#demo)では、Wijmoの各コントロールの基本機能や使い方をご紹介しています。
|
|
135
|
+
|
|
136
|
+
また、[トライアル版](https://developer.mescius.jp/download#javascript)をダウンロードして、実際の機能や動作をご確認いただけます。
|
|
137
|
+
|
|
138
|
+
## インストール方法
|
|
139
|
+
|
|
140
|
+
[npmによるWijmoの参照](https://demo.mescius.jp/wijmo/docs/GettingStarted/Referencing-Wijmo-NPM)をご覧ください。
|
|
141
|
+
|
|
142
|
+
## ドキュメント
|
|
143
|
+
|
|
144
|
+
製品の各種ドキュメントは、下記をご参照ください。
|
|
145
|
+
|
|
146
|
+
- [製品ヘルプ](https://demo.mescius.jp/wijmo/docs/GettingStarted/Introduction)
|
|
147
|
+
- [APIリファレンス](https://demo.mescius.jp/wijmo/api/)
|
|
148
|
+
|
|
149
|
+
## 製品情報
|
|
150
|
+
|
|
151
|
+
製品の詳細や価格、ライセンスについては、下記をご参照ください。
|
|
152
|
+
|
|
153
|
+
- [製品情報](https://developer.mescius.jp/wijmo)
|
|
154
|
+
|
|
155
|
+
## サポート
|
|
156
|
+
|
|
157
|
+
ヘルプやデモに加え、ナレッジベースでは製品の技術情報を公開しております。また、サブスクリプションをご契約中のお客様は、E-mailによる技術サポートをご利用いただけます。
|
|
158
|
+
|
|
159
|
+
- [サポート&サービス](https://developer.mescius.jp/support)
|
|
160
|
+
- [サブスクリプションサービス利用規約](https://download.mescius.jp/license/other/componentone-subscriptionservice.pdf)
|
|
161
|
+
|
|
162
|
+
## Wijmo CN
|
|
163
|
+
|
|
164
|
+
Wijmo 是一套完整的企业级 JavaScript UI 开发组件。 它包括强大的表格、图表、数据透视、输入等组件,并且可以支持各类主流前端框架,包括 Angular、React 和 Vue。
|
|
165
|
+
|
|
166
|
+
Wijmo 的轻量级、高性能 JavaScript UI 组件可以将您的开发时间缩短一半。
|
|
167
|
+
|
|
168
|
+
查看我们 [FlexGrid 表格](https://demo.grapecity.com.cn/wijmo/demos/Grid/Overview/purejs) 组件.
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
---
|
|
172
|
+
|
|
173
|
+
## 从 NPM 获取您所缺少的开发包!
|
|
174
|
+
|
|
175
|
+
请务必下载 Wijmo 以获得完整的开发包。 NPM 仅包含我们的 JS 组件,但我们的开发包包含数百个示例,其中包含每个 JS 框架的源代码、实际参考应用程序等等!
|
|
176
|
+
|
|
177
|
+
**[下载 Wijmo 开发包](https://www.grapecity.com.cn/developer/wijmojs/download) 以启动您的项目。**
|
|
178
|
+
|
|
179
|
+
---
|
|
180
|
+
|
|
181
|
+
## 示例
|
|
182
|
+
|
|
183
|
+
每种 JavaScript 框架中都提供超过 450 个功能示例
|
|
184
|
+
|
|
185
|
+
- [JavaScript 示例](https://demo.grapecity.com.cn/wijmo/demos/Grid/Overview/purejs)
|
|
186
|
+
- [Vue 示例](https://demo.grapecity.com.cn/wijmo/demos/Grid/Overview/vue)
|
|
187
|
+
- [Angular 示例](https://demo.grapecity.com.cn/wijmo/demos/Grid/Overview/angular)
|
|
188
|
+
- [React 示例](https://demo.grapecity.com.cn/wijmo/demos/Grid/Overview/react)
|
|
189
|
+
|
|
190
|
+
我们还提供了 JavaScript 框架中可用的实际应用示例
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
- [Vue 参考应用](https://www.grapecity.com/wijmo/demos/reference-samples/#GeoDashboard)
|
|
194
|
+
- [Angular 参考应用](https://demos.wijmo.com/5/SampleExplorer/SampleExplorer/Sample/WealthHealth)
|
|
195
|
+
- [React 参考应用](https://www.grapecity.com/wijmo/demos/reference-samples/#GeoDashboard)
|
|
196
|
+
- [React Redux 参考应用](https://www.grapecity.com/wijmo/demos/reference-samples/#CryptoCurrencyTracking)
|
|
197
|
+
|
|
198
|
+
[Wijmo 开发包](https://www.grapecity.com.cn/developer/wijmojs/download) 中提供了示例源代码。
|
|
199
|
+
|
|
200
|
+
## 安装
|
|
201
|
+
|
|
202
|
+
### 安装最新版本:
|
|
203
|
+
|
|
204
|
+
```sh
|
|
205
|
+
npm install @grapecity/wijmo.all
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
### 安装最新的 nightly 版本:
|
|
209
|
+
```sh
|
|
210
|
+
npm install @grapecity/wijmo.all@nightly
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
### 安装最新的 RC 版本:
|
|
214
|
+
|
|
215
|
+
```sh
|
|
216
|
+
npm install @grapecity/wijmo.all@rc
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
## 文档
|
|
220
|
+
|
|
221
|
+
在线文档可在此处获取:
|
|
222
|
+
|
|
223
|
+
- [API Reference](https://demo.grapecity.com.cn/wijmo/api/)
|
|
224
|
+
- [Documentation Guides](https://demo.grapecity.com.cn/wijmo/docs/GettingStarted/Introduction)
|
|
225
|
+
|
|
226
|
+
## 许可
|
|
227
|
+
|
|
228
|
+
Wijmo授权由开发授权和部署授权组成
|
|
229
|
+
|
|
230
|
+
了解 [WijmoJS 价格与授权方式](https://www.grapecity.com.cn/developer/wijmojs#price).
|
|
231
|
+
|
|
232
|
+
## 资源
|
|
233
|
+
|
|
234
|
+
- [快速入门指南](https://demo.grapecity.com.cn/wijmo/docs/GettingStarted/QuickStart/QuickStart-PureJS)
|
|
235
|
+
- [Wijmo 产品介绍](https://www.grapecity.com.cn/developer/wijmojs)
|
|
236
|
+
- [博客](https://www.grapecity.com.cn/blogs/tags/wijmo)
|
|
237
|
+
- [论坛](https://gcdn.grapecity.com.cn/showforum-140-1.html)
|
|
238
|
+
|
|
239
|
+
Wijmo 开发包可以从 [这里](https://www.grapecity.com.cn/developer/wijmojs/download) 下载
|
|
240
|
+
|
|
241
|
+
## 支持
|
|
242
|
+
|
|
243
|
+
**Wijmo 随时为您提供支持**
|
|
244
|
+
|
|
245
|
+
提供多种售前支持方式。您可以通过电话热线、邮件、售前顾问、在线咨询、添加企业微信等方式获取获取售前咨询、产品解决方案、产品选型等1V1服务。帮您快速了解产品特性,助您POC验证成功,节省时间成本。
|
|
246
|
+
|
|
247
|
+
- [联系我们](https://www.grapecity.com.cn/support#goumaizixun)
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
## 问题反馈
|
|
251
|
+
|
|
252
|
+
我们重视您的反馈并利用建议来帮助创建产品路线图。 告诉我们你的想法。
|
|
253
|
+
|
|
254
|
+
[提交您的问题和反馈建议](https://gcdn.grapecity.com.cn/showforum-173-1.html)
|
|
255
|
+
|
|
256
|
+
# Wijmo KR
|
|
257
|
+
|
|
258
|
+
Wijmo(위즈모)는 고성능의 Web App 개발을 위한 완전한 JavaScript UI 컴포넌트 세트입니다. 강력한 데이터 그리드(DataGrid), 차트(Chart), 피벗 도구(OLAP/Pivop), 입력(Input) 등 개발에 필요한 100+의 다양한 컨트롤이 포함되어 있습니다.
|
|
259
|
+
|
|
260
|
+
또한, Wijmo는 Angular, React 및 Vue 등 개발자가 빠른 웹 개발과 효율적인 코드 유지 관리를 쉽게 할 수 있도록 JavaScript 프레임워크에 대한 지원을 제공합니다.
|
|
261
|
+
|
|
262
|
+
Wijmo의 경량 고성능 JavaScript UI 컴포넌트로 개발 시간을 절반으로 줄이십시오.
|
|
263
|
+
|
|
264
|
+
**[한국 Wijmo 공식 홈페이지 방문하기](https://mescius.co.kr/wijmo)**
|
|
265
|
+
|
|
266
|
+
## 개발자 패키지를 다운받아 보세요.
|
|
267
|
+
|
|
268
|
+
Wijmo 개발자 패키지를 아래 링크를 통해서 다운받아 보세요. NPM은 JS 라이브러리만 제공하지만, 개발자 패키지는 인기 있는 JS 프레임워크(Angular, React, Vue..)를 위한, 수백개의 샘플과 소스코드를 제공합니다.
|
|
269
|
+
|
|
270
|
+
**[Wijmo 개발자 패키지](https://mescius.co.kr/wijmo/download)를 다운로드하여 여러분의 개발 프로젝트를 시작해보세요.**
|
|
271
|
+
|
|
272
|
+
## 튜토리얼 | Demo & Sample
|
|
273
|
+
|
|
274
|
+
450가지 이상의 다양한 기능 샘플을 통해, 직접 사용해보고 소스코드를 보면서 Wijmo의 모든 기능을 여러분의 App에 쉽고 빠르게 적용해볼 수 있습니다.
|
|
275
|
+
|
|
276
|
+
모든 샘플은 한국어가 지원됩니다.
|
|
277
|
+
|
|
278
|
+
**[Wijmo 튜토리얼 페이지 바로가기](https://mescius.co.kr/wijmo/tutorial)**
|
|
279
|
+
|
|
280
|
+
아래의 링크를 통해 원하시는 JS 프레임워크의 튜토리얼 사이트로 바로 이동할 수 있습니다.
|
|
281
|
+
|
|
282
|
+
- [JavaScript 샘플](https://wijmo-js-demo.web.app/)
|
|
283
|
+
- [JavaScript 샘플 (SystemJS/CommonJS 모듈 기반)](https://demo.mescius.co.kr/wijmo/learn-wijmo/Grid/Overview/purejs)
|
|
284
|
+
- [Angular 샘플](https://demo.mescius.co.kr/wijmo/learn-wijmo/Grid/Overview/angular)
|
|
285
|
+
- [React 샘플](https://demo.mescius.co.kr/wijmo/learn-wijmo/Grid/Overview/react)
|
|
286
|
+
- [Vue 샘플](https://demo.mescius.co.kr/wijmo/learn-wijmo/Grid/Overview/vue)
|
|
287
|
+
|
|
288
|
+
JavaScript(SystemJS/CommonJS 모듈 기반), Angular, React, Vue 샘플은 모두 [Wijmo 개발자 패키지](https://mescius.co.kr/wijmo/download)에 포함되어 있습니다.
|
|
289
|
+
|
|
290
|
+
## 설치하기
|
|
291
|
+
|
|
292
|
+
Wijmo 라이브러리를 사용하기 위해서는 아래와 같이 2가지 방법을 통해 JS 라이브러리를 얻으실 수 있습니다.
|
|
293
|
+
|
|
294
|
+
#### 개발자 패키지
|
|
295
|
+
|
|
296
|
+
가장 권장 드리는 방법으로, 홈페이지에서 한국 정식 버전의 [개발자 패키지를 다운로드](https://mescius.co.kr/wijmo/download)하여, 필요하신 Wijmo의 JS 라이브러리를 여러분의 어플리케이션으로 가져오시면 됩니다.
|
|
297
|
+
|
|
298
|
+
#### WIJMO NPM
|
|
299
|
+
|
|
300
|
+
Wijmo는 또한 NPM을 지원합니다. 이를 통해 최신 버전의 Wijmo 라이브러리를 사용하실 수 있습니다.
|
|
301
|
+
|
|
302
|
+
**[최신 정식 버전]**
|
|
303
|
+
|
|
304
|
+
```sh
|
|
305
|
+
npm install @grapecity/wijmo.all
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
**[Nightly 버전]**
|
|
309
|
+
|
|
310
|
+
```sh
|
|
311
|
+
npm install @grapecity/wijmo.all@nightly
|
|
312
|
+
```
|
|
313
|
+
|
|
314
|
+
**[RC 버전]**
|
|
315
|
+
|
|
316
|
+
```sh
|
|
317
|
+
npm install @grapecity/wijmo.all@rc
|
|
318
|
+
```
|
|
319
|
+
|
|
320
|
+
## 빠른시작 가이드
|
|
321
|
+
|
|
322
|
+
개발자 패키지 또는 NPM을 통해 Wijmo 라이브러리를 가져오셨다면, 아래의 가이드를 통해서 Wijmo 개발을 시작할 수 있습니다.
|
|
323
|
+
|
|
324
|
+
- [PureJS](https://wijmo-js-demo.web.app/00-QuickStart)
|
|
325
|
+
- [PureJS (JS 모듈 로더 사용시)](https://demo.mescius.co.kr/wijmo/docs/GettingStarted/QuickStart/QuickStart-PureJS)
|
|
326
|
+
- [Angular](https://demo.mescius.co.kr/wijmo/docs/GettingStarted/QuickStart/QuickStart-Angular)
|
|
327
|
+
- [React](https://demo.mescius.co.kr/wijmo/docs/GettingStarted/QuickStart/QuickStart-React)
|
|
328
|
+
- [Vue](https://demo.mescius.co.kr/wijmo/docs/GettingStarted/QuickStart/QuickStart-Vue)
|
|
329
|
+
|
|
330
|
+
## 라이선싱
|
|
331
|
+
|
|
332
|
+
Wijmo 라이브러리를 상업용으로 개발하고 배포하기 위해서는 **개발자 라이선스**와 **배포 라이선스**를 반드시 구매하셔야 합니다.
|
|
333
|
+
|
|
334
|
+
- [가격 및 라이선스](https://www.mescius.co.kr/wijmo#price)
|
|
335
|
+
- [배포 라이선싱 등록 방법](https://dev.mescius.co.kr/bbs/board.php?bo_table=wijmo_faq&wr_id=1)
|
|
336
|
+
|
|
337
|
+
## 개발자 문서
|
|
338
|
+
|
|
339
|
+
개발 시에 온라인 개발자 문서를 참고할 수 있습니다.
|
|
340
|
+
|
|
341
|
+
- [개발자 도움말](https://demo.mescius.co.kr/wijmo/docs/GettingStarted/Introduction)
|
|
342
|
+
- [API 참조](https://demo.mescius.co.kr/wijmo/api/)
|
|
343
|
+
|
|
344
|
+
## 기술 지원
|
|
345
|
+
|
|
346
|
+
Wijmo를 사용하시다가 어려움이 있으실 경우, 언제든지 아래의 개발자 포럼을 통해 질문을 남겨주세요.
|
|
347
|
+
|
|
348
|
+
한국 지사의 전문 기술팀의 지원을 받아 보실 수 있습니다.
|
|
349
|
+
|
|
350
|
+
- [Wijmo 질문하기](https://dev.mescius.co.kr/bbs/board.php?bo_table=wijmo_qna)
|
|
351
|
+
|
|
352
|
+
## 더 많은 소식을 받아 보세요.
|
|
353
|
+
|
|
354
|
+
MESCIUS KOREA 개발자 포럼에서 Wijmo에 대한 신규 버전 출시 소식 및 다양한 블로그 컨텐츠를 확인해보세요.
|
|
355
|
+
|
|
356
|
+
- [새로운 소식](https://dev.mescius.co.kr/bbs/board.php?bo_table=wijmo_news)
|
|
357
|
+
- [블로그 & Tips](https://dev.mescius.co.kr/bbs/board.php?bo_table=wijmo_bntips)
|
|
358
|
+
- [온라인 스터디](https://dev.mescius.co.kr/bbs/board.php?bo_table=wijmo_o_study)
|
|
359
|
+
- [FAQ](https://dev.mescius.co.kr/bbs/board.php?bo_table=wijmo_faq)
|
|
360
|
+
|
|
361
|
+
MESCIUS KOREA 카카오톡 친구 추가를 하시면, 더욱 빠르게 최신 소식, 이벤트 및 세미나 정보를 받아보실 수 있습니다
|
|
362
|
+
|
|
363
|
+
- [카카오톡 친구 추가하기](https://pf.kakao.com/_ClxiWxb)
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
*
|
|
3
|
+
* Wijmo Library 5.20232.939
|
|
4
|
+
* https://developer.mescius.com/wijmo
|
|
5
|
+
*
|
|
6
|
+
* Copyright(c) MESCIUS inc. All rights reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the End-User License Agreement For MESCIUS Wijmo Software.
|
|
9
|
+
* us.sales@mescius.com
|
|
10
|
+
* https://developer.mescius.com/wijmo/licensing
|
|
11
|
+
*
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
"use strict";var __importStar=this&&this.__importStar||function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);t.default=e;return t};Object.defineProperty(exports,"__esModule",{value:!0});const wijmo_1=require("@mescius/wijmo"),wijmo_barcode_1=require("@mescius/wijmo.barcode"),selfModule=__importStar(require("@mescius/wijmo.barcode.composite"));class ISO646Encoder{constructor(e){this.bitBuffer=e}static isISO646Only(e){return ISO646Encoder.ISO646.indexOf(e)>-1}encode(e){let t=ISO646Encoder.Table[e];if(t)this.bitBuffer.putBits(t);else{const t=e.charCodeAt(0);if(t>=48&&t<=57)this.bitBuffer.put(t-43,5);else if(e>="A"&&e<="Z")this.bitBuffer.put(t-1,7);else{if(!(e>="a"&&e<="z"))throw new wijmo_barcode_1.InvalidCharacterException(e);this.bitBuffer.put(t-7,7)}}}FNC1NumericLatch(){this.bitBuffer.putBits(ISO646Encoder.Table.FNC1NumericLatch)}NumericLatch(){this.bitBuffer.putBits(ISO646Encoder.Table.NumericLatch)}AlphanumericLatch(){this.bitBuffer.putBits(ISO646Encoder.Table.AlphanumericLatch)}}ISO646Encoder.Table={"!":"11101000",'"':"11101001","%":"11101010","&":"11101011","'":"11101100","(":"11101101",")":"11101110","*":"11101111","+":"11110000",",":"11110001","-":"11110010",".":"11110011","/":"11110100",":":"11110101",";":"11110110","<":"11110111","=":"11111000",">":"11111001","?":"11111010",_:"11111011"," ":"11111100",FNC1NumericLatch:"01111",NumericLatch:"000",AlphanumericLatch:"00100"};ISO646Encoder.ISO646="abcdefghijklmnopqrstuvwxyz!\"%&'()+:;<=>?_ ";exports.ISO646Encoder=ISO646Encoder;class AlphanumericEncoder{constructor(e){this.bitBuffer=e}static isUpperCase(e){return e>="A"&&e<="Z"}static isLowerCase(e){return e>="a"&&e<="z"}encode(e){let t=AlphanumericEncoder.Table[e];if(t)this.bitBuffer.putBits(t);else{const t=e.charCodeAt(0);if(t>=48&&t<=57)this.bitBuffer.put(t-43,5);else{if(!AlphanumericEncoder.isUpperCase(e))throw new wijmo_barcode_1.InvalidCharacterException(e);this.bitBuffer.put(t-33,6)}}}FNC1NumericLatch(){this.bitBuffer.putBits(AlphanumericEncoder.Table.FNC1NumericLatch)}NumericLatch(){this.bitBuffer.putBits(AlphanumericEncoder.Table.NumericLatch)}ISO646Latch(){this.bitBuffer.putBits(AlphanumericEncoder.Table.ISO646Latch)}}AlphanumericEncoder.Table={"*":"111010",",":"111011","-":"111100",".":"111101","/":"111110",FNC1NumericLatch:"01111",NumericLatch:"000",ISO646Latch:"00100"};exports.AlphanumericEncoder=AlphanumericEncoder;class NumericEncoder{static isNumericOrFNC1(e){const t=e.charCodeAt(0);return e===wijmo_barcode_1.Constants.FNC1||t>=48&&t<=57}static isNumeric(e){const t=e.charCodeAt(0);return t>=48&&t<=57}constructor(e){this.bitBuffer=e}encode(e,t){let r,o;const i=11*(r=e===wijmo_barcode_1.Constants.FNC1?10:e.charCodeAt(0)-48)+(o=t===wijmo_barcode_1.Constants.FNC1?10:t.charCodeAt(0)-48)+8;this.bitBuffer.put(i,7)}encodeOne(e){let t;t=e===wijmo_barcode_1.Constants.FNC1?10:e.charCodeAt(0)-48+1;this.bitBuffer.put(t,4)}AlphanumericLatch(){this.bitBuffer.put(0,4)}}exports.NumericEncoder=NumericEncoder;class GS1GeneralPurposeDataEncodation{constructor(e,t=!1){this.text="";this.mode=GS1GeneralPurposeDataEncodation.EncodeMod.Numeric;this.bitBuffer=e;this.needExtraPadding=t}encodeGeneralData(e){if(!e)return;const{bitBuffer:t}=this;let r=GS1GeneralPurposeDataEncodation.EncodeMod.Numeric;for(let o=e.length,i=0;o>0;o=e.length-i){const n=e[i];switch(r){case GS1GeneralPurposeDataEncodation.EncodeMod.Numeric:{const a=new NumericEncoder(t),s=t.length;if(1===o)if(NumericEncoder.isNumeric(n)){s>24&&s%12<=8&&s%12>5?a.encodeOne(n):a.encode(n,wijmo_barcode_1.Constants.FNC1);i++}else{a.AlphanumericLatch();r=GS1GeneralPurposeDataEncodation.EncodeMod.Alphanumeric}else if(NumericEncoder.isNumericOrFNC1(n)&&NumericEncoder.isNumericOrFNC1(e[i+1])&&(n!==wijmo_barcode_1.Constants.FNC1||e[i+1]!==wijmo_barcode_1.Constants.FNC1)){a.encode(n,e[i+1]);i+=2}else{a.AlphanumericLatch();r=GS1GeneralPurposeDataEncodation.EncodeMod.Alphanumeric}break}case GS1GeneralPurposeDataEncodation.EncodeMod.Alphanumeric:{const o=new AlphanumericEncoder(t);if(n===wijmo_barcode_1.Constants.FNC1){o.FNC1NumericLatch();r=GS1GeneralPurposeDataEncodation.EncodeMod.Numeric;i++}else if(NumericEncoder.isNumeric(n)){let t=i+1;for(;t<e.length&&NumericEncoder.isNumeric(e[t]);t++);if(t-i>=6||t-i>=4&&t===e.length){o.NumericLatch();r=GS1GeneralPurposeDataEncodation.EncodeMod.Numeric}else{o.encode(n);i++}}else if(ISO646Encoder.isISO646Only(n)){o.ISO646Latch();r=GS1GeneralPurposeDataEncodation.EncodeMod.ISO646}else{o.encode(n);i++}break}case GS1GeneralPurposeDataEncodation.EncodeMod.ISO646:{const o=new ISO646Encoder(t);if(NumericEncoder.isNumericOrFNC1(n)){let t=i+1;for(;t<e.length&&NumericEncoder.isNumericOrFNC1(e[t]);t++);if(t-i>=4){for(;t<e.length&&!ISO646Encoder.isISO646Only(e[t]);t++);if(t==e.length||t-i>10){o.NumericLatch();r=GS1GeneralPurposeDataEncodation.EncodeMod.Numeric;break}}}else{let t=i;for(;t<e.length&&!ISO646Encoder.isISO646Only(e[t]);t++);if(t-i>10){o.AlphanumericLatch();r=GS1GeneralPurposeDataEncodation.EncodeMod.Alphanumeric;break}}if(n===wijmo_barcode_1.Constants.FNC1){o.FNC1NumericLatch();r=GS1GeneralPurposeDataEncodation.EncodeMod.Numeric;i++}else{o.encode(n);i++}break}}}this.mode=r}padTo(e){const{bitBuffer:t}=this,r=e-t.length;this._pad(r)}_pad(e){const{bitBuffer:t}=this;for(;e>0;)if(this.mode===GS1GeneralPurposeDataEncodation.EncodeMod.Numeric){this.mode=GS1GeneralPurposeDataEncodation.EncodeMod.Alphanumeric;if(e>=4){t.put(0,4);e-=4}else{t.put(0,e);e=0}}else if(e>=5){t.put(4,5);e-=5}else{4===e?t.put(2,e):3===e?t.put(1,e):t.put(0,e);e=0}}encode(e=""){const{bitBuffer:t,needExtraPadding:r}=this;this.encodeGeneralData(e);let o,i=~~((t.length+11)/12);o=12*(i=i<3?3:i)-t.length;r&&(o+=12);this._pad(o)}}GS1GeneralPurposeDataEncodation.EncodeMod={Numeric:"Numeric",Alphanumeric:"Alphanumeric",ISO646:"ISO646"};exports.GS1GeneralPurposeDataEncodation=GS1GeneralPurposeDataEncodation;const mb=new wijmo_barcode_1.MatrixBuilder(69,7),pwr928=mb.toMatrix();function init928(){let e,t,r,o=wijmo_barcode_1.Utils.fillArray(new Array(7),0);o[6]=1;for(e=0;e<7;e++)pwr928[0][e]=o[e];for(t=1;t<69;t++){for(r=0,e=6;e>=1;e--){r=2*o[e]+~~(r/928);pwr928[t][e]=o[e]=r%928}pwr928[t][0]=o[0]=2*o[0]+~~(r/928)}}init928();function getBit(e,t){return 0==(e[~~(t/16)]&32768>>t%16)?0:1}function encode928(e,t,r){let o,i,n,a,s,c,d;for(s=d=n=0;n<r;n+=69,s+=7){d+=c=1+~~((a=Math.min(r-n,69))/10);for(o=0;o<c;o++)t[s+o]=0;for(o=0;o<a;o++)if(getBit(e,n+a-o-1))for(i=0;i<c;i++)t[s+i]+=pwr928[o][i+7-c];for(o=c-1;o>0;o--){t[s+o-1]+=~~(t[s+o]/928);t[s+o]%=928}}return d}exports.encode928=encode928;function makeRange_CCA(e,t){const r=[];let o=0,i=e;for(;o<t;){i>52&&(i%=52);r.push(i);o++;i++}return r}function findVersionTable_CCA(e,t){for(let r=0,o=e.length;r<o;r++){let o=e[r];const[i,n,a,s,c,d,l]=o,u=n*i;if(t(o={rows:n,cols:i,total:u,ecCws:a,nonEcCw:u-a,bits:s})){o.rowAssignment={left:makeRange_CCA(c,n),right:makeRange_CCA(d,n),center:l?makeRange_CCA(l,n):null};const e=[];let t=0;for(;t<=n;){const r=(c+t-1)%3;e.push(r);t++}o.cluster=e;return o}}return null}exports.findVersionTable_CCA=findVersionTable_CCA;function getVersionVariant_CCA(e,t){return findVersionTable_CCA([[2,5,4,59,39,19],[2,6,4,78,1,33],[2,7,5,88,32,12],[2,8,5,108,8,40],[2,9,6,118,14,46],[2,10,6,138,43,23],[2,12,7,167,20,52],[3,4,4,78,11,23,43],[3,5,5,98,1,13,33],[3,6,6,118,3,17,37],[3,7,7,138,15,27,47],[3,8,7,167,21,33,1],[4,3,4,78,40,52,20],[4,4,5,108,43,3,23],[4,5,6,138,46,6,26],[4,6,7,167,34,46,14],[4,7,8,197,29,41,9]],r=>r.cols===e&&r.bits>=t)}exports.getVersionVariant_CCA=getVersionVariant_CCA;const SupportedUppercaseAlphabetic="BDHIJKLNPQRSTVWZ";function getSupportedUppercaseAlphabetic(e){const t=SupportedUppercaseAlphabetic.indexOf(e);if(-1===t)return null;const r=wijmo_barcode_1.Utils.convertRadix(t);return wijmo_barcode_1.Utils.strPadStart(r,4,"0")}exports.getSupportedUppercaseAlphabetic=getSupportedUppercaseAlphabetic;const EncodeMod=GS1GeneralPurposeDataEncodation.EncodeMod;class GeneralPurposeDataEncodation extends GS1GeneralPurposeDataEncodation{encodeGeneralData(e,t){if(!e)return;const{bitBuffer:r}=this;let o=EncodeMod.Numeric;for(let i=e.length,n=0;i>0;i=e.length-n){const a=e[n];switch(o){case EncodeMod.Numeric:{const s=new NumericEncoder(r),c=a[0].charCodeAt(0);if(1===i)if(NumericEncoder.isNumeric(a)){const e=getVersionVariant_CCA(t,r.length);if(!e)throw new wijmo_barcode_1.TextTooLongException;const o=e.bits-r.length;if(o>=4&&o<=6){s.encodeOne(a);r.put(0,o-4)}else r.put(11*(c-48)+10+8,7);n++}else{s.AlphanumericLatch();o=EncodeMod.Alphanumeric}else if(NumericEncoder.isNumericOrFNC1(a)&&NumericEncoder.isNumericOrFNC1(e[n+1])&&(a!==wijmo_barcode_1.Constants.FNC1||e[n+1]!==wijmo_barcode_1.Constants.FNC1)){s.encode(a,e[n+1]);n+=2}else{s.AlphanumericLatch();o=EncodeMod.Alphanumeric}break}case EncodeMod.Alphanumeric:{const t=new AlphanumericEncoder(r);if(a===wijmo_barcode_1.Constants.FNC1){t.FNC1NumericLatch();o=EncodeMod.Numeric;n++}else if(NumericEncoder.isNumeric(a)){let r=n+1;for(;r<e.length&&NumericEncoder.isNumericOrFNC1(e[r]);r++);if(r-n>=6||r-n>=4&&r===e.length){t.NumericLatch();o=EncodeMod.Numeric}else{t.encode(a);n++}}else if(ISO646Encoder.isISO646Only(a)){t.ISO646Latch();o=EncodeMod.ISO646}else{t.encode(a);n++}break}case EncodeMod.ISO646:{const t=new ISO646Encoder(r);if(NumericEncoder.isNumericOrFNC1(a)){let r=n+1;for(;r<e.length&&NumericEncoder.isNumericOrFNC1(e[r]);r++);if(r-n>=4){for(;r<e.length&&!ISO646Encoder.isISO646Only(e[r]);r++);if(r==e.length||r-n>10){t.NumericLatch();o=EncodeMod.Numeric;break}}}else{let r=n;for(;r<e.length&&!ISO646Encoder.isISO646Only(e[r]);r++);if(r-n>10){t.AlphanumericLatch();o=EncodeMod.Alphanumeric;break}}if(a===wijmo_barcode_1.Constants.FNC1){t.FNC1NumericLatch();o=EncodeMod.Numeric;n++}else{t.encode(a);n++}break}}}this.mode=o}}exports.GeneralPurposeDataEncodation=GeneralPurposeDataEncodation;const EccCoefficientTable=[[27,917],[522,568,723,809],[237,308,436,284,646,653,428,379],[274,562,232,755,599,524,801,132,295,116,442,428,295,42,176,65],[361,575,922,525,176,586,640,321,536,742,677,742,687,284,193,517,273,494,263,147,593,800,571,320,803,133,231,390,685,330,63,410],[539,422,6,93,862,771,453,106,610,287,107,505,733,877,381,612,723,476,462,172,430,609,858,822,543,376,511,400,672,762,283,184,440,35,519,31,460,594,225,535,517,352,605,158,651,201,488,502,648,733,717,83,404,97,280,771,840,629,4,381,843,623,264,543],[521,310,864,547,858,580,296,379,53,779,897,444,400,925,749,415,822,93,217,208,928,244,583,620,246,148,447,631,292,908,490,704,516,258,457,907,594,723,674,292,272,96,684,432,686,606,860,569,193,219,129,186,236,287,192,775,278,173,40,379,712,463,646,776,171,491,297,763,156,732,95,270,447,90,507,48,228,821,808,898,784,663,627,378,382,262,380,602,754,336,89,614,87,432,670,616,157,374,242,726,600,269,375,898,845,454,354,130,814,587,804,34,211,330,539,297,827,865,37,517,834,315,550,86,801,4,108,539],[524,894,75,766,882,857,74,204,82,586,708,250,905,786,138,720,858,194,311,913,275,190,375,850,438,733,194,280,201,280,828,757,710,814,919,89,68,569,11,204,796,605,540,913,801,700,799,137,439,418,592,668,353,859,370,694,325,240,216,257,284,549,209,884,315,70,329,793,490,274,877,162,749,812,684,461,334,376,849,521,307,291,803,712,19,358,399,908,103,511,51,8,517,225,289,470,637,731,66,255,917,269,463,830,730,433,848,585,136,538,906,90,2,290,743,199,655,903,329,49,802,580,355,588,188,462,10,134,628,320,479,130,739,71,263,318,374,601,192,605,142,673,687,234,722,384,177,752,607,640,455,193,689,707,805,641,48,60,732,621,895,544,261,852,655,309,697,755,756,60,231,773,434,421,726,528,503,118,49,795,32,144,500,238,836,394,280,566,319,9,647,550,73,914,342,126,32,681,331,792,620,60,609,441,180,791,893,754,605,383,228,749,760,213,54,297,134,54,834,299,922,191,910,532,609,829,189,20,167,29,872,449,83,402,41,656,505,579,481,173,404,251,688,95,497,555,642,543,307,159,924,558,648,55,497,10],[352,77,373,504,35,599,428,207,409,574,118,498,285,380,350,492,197,265,920,155,914,299,229,643,294,871,306,88,87,193,352,781,846,75,327,520,435,543,203,666,249,346,781,621,640,268,794,534,539,781,408,390,644,102,476,499,290,632,545,37,858,916,552,41,542,289,122,272,383,800,485,98,752,472,761,107,784,860,658,741,290,204,681,407,855,85,99,62,482,180,20,297,451,593,913,142,808,684,287,536,561,76,653,899,729,567,744,390,513,192,516,258,240,518,794,395,768,848,51,610,384,168,190,826,328,596,786,303,570,381,415,641,156,237,151,429,531,207,676,710,89,168,304,402,40,708,575,162,864,229,65,861,841,512,164,477,221,92,358,785,288,357,850,836,827,736,707,94,8,494,114,521,2,499,851,543,152,729,771,95,248,361,578,323,856,797,289,51,684,466,533,820,669,45,902,452,167,342,244,173,35,463,651,51,699,591,452,578,37,124,298,332,552,43,427,119,662,777,475,850,764,364,578,911,283,711,472,420,245,288,594,394,511,327,589,777,699,688,43,408,842,383,721,521,560,644,714,559,62,145,873,663,713,159,672,729,624,59,193,417,158,209,563,564,343,693,109,608,563,365,181,772,677,310,248,353,708,410,579,870,617,841,632,860,289,536,35,777,618,586,424,833,77,597,346,269,757,632,695,751,331,247,184,45,787,680,18,66,407,369,54,492,228,613,830,922,437,519,644,905,789,420,305,441,207,300,892,827,141,537,381,662,513,56,252,341,242,797,838,837,720,224,307,631,61,87,560,310,756,665,397,808,851,309,473,795,378,31,647,915,459,806,590,731,425,216,548,249,321,881,699,535,673,782,210,815,905,303,843,922,281,73,469,791,660,162,498,308,155,422,907,817,187,62,16,425,535,336,286,437,375,273,610,296,183,923,116,667,751,353,62,366,691,379,687,842,37,357,720,742,330,5,39,923,311,424,242,749,321,54,669,316,342,299,534,105,667,488,640,672,576,540,316,486,721,610,46,656,447,171,616,464,190,531,297,321,762,752,533,175,134,14,381,433,717,45,111,20,596,284,736,138,646,411,877,669,141,919,45,780,407,164,332,899,165,726,600,325,498,655,357,752,768,223,849,647,63,310,863,251,366,304,282,738,675,410,389,244,31,121,303,263]],MicroEccCoefficientTable=[[890,351,200],[809,723,568,522],[566,155,460,919,427],[766,17,803,19,285,861],[437,691,784,597,537,925,76],[379,428,653,646,284,436,308,237],[205,441,501,362,289,257,622,527,567],[612,266,691,818,841,826,244,64,457,377],[904,602,327,68,15,213,825,708,565,45,462],[851,69,7,388,127,347,684,646,201,757,864,597],[692,394,184,204,678,592,322,583,606,384,342,713,764],[215,105,833,691,915,478,354,274,286,241,187,154,677,669],[642,868,147,575,550,74,80,5,230,664,904,109,476,829,460],[65,176,42,295,428,442,116,295,132,801,524,599,755,232,562,274],[573,760,756,233,321,560,202,312,297,120,739,275,855,37,624,315,577,279],[568,259,193,165,347,691,310,610,624,693,763,716,422,553,681,425,129,534,781,519,108],[169,764,847,131,858,325,454,441,245,699,893,446,830,159,121,269,608,331,760,477,93,788,544,887,284,443],[410,63,330,685,390,231,133,803,320,571,800,593,147,263,494,273,517,193,284,687,742,677,742,536,321,640,586,176,525,922,575,361],[518,117,125,231,289,554,771,920,689,95,229,745,658,284,32,812,233,614,595,245,680,445,684,388,586,738,159,280,322,788,721,529,703,133,848,438,228,234],[285,82,730,339,436,572,271,103,758,231,560,31,213,272,267,569,773,3,21,446,706,413,97,376,60,714,436,417,405,632,25,109,876,470,915,157,840,764,64,678,848,659,36,476],[435,718,820,427,876,920,477,211,244,71,127,246,739,10,146,766,623,579,26,865,593,919,233,264,102,575,96,534,230,637,155,909,535,188,303,205,50,778,416,411,874,257,81,63,706,156,875,576,797,923]];MicroEccCoefficientTable.forEach(e=>e.reverse());function encode(e,t,r){let o=wijmo_barcode_1.Utils.fillArray(new Array(t),0);e.forEach(e=>{let i,n,a=e+o[t-1];for(let e=t-1;e>0;--e){n=929-(i=a*r[e]%929);o[e]=(o[e-1]+n)%929}n=929-(i=a*r[0]%929);o[0]=n%929});o.forEach((e,t)=>{0!=e&&(o[t]=929-e)});return o.reverse()}function generateECC(e,t){const r=EccCoefficientTable[t];return encode(e,Math.pow(2,t+1),r)}exports.generateECC=generateECC;function generateECCForMicro(e,t){let r,o=0;for(;o<MicroEccCoefficientTable.length;){const e=MicroEccCoefficientTable[o];if(e.length===t){r=e;break}o++}return encode(e,t,r)}exports.generateECCForMicro=generateECCForMicro;exports.SymbolVersion={ColumnPriorAuto:"columnPriorAuto",RowPriorAuto:"rowPriorAuto",V1X11:"1*11",V1X14:"1*14",V1X17:"1*17",V1X20:"1*20",V1X24:"1*24",V1X28:"1*28",V2X8:"2*8",V2X11:"2*11",V2X14:"2*14",V2X17:"2*17",V2X20:"2*20",V2X23:"2*23",V2X26:"2*26",V3X6:"3*6",V3X8:"3*8",V3X10:"3*10",V3X12:"3*12",V3X15:"3*15",V3X20:"3*20",V3X26:"3*26",V3X32:"3*32",V3X38:"3*38",V3X44:"3*44",V4X4:"4*4",V4X6:"4*6",V4X8:"4*8",V4X10:"4*10",V4X12:"4*12",V4X15:"4*15",V4X20:"4*20",V4X26:"4*26",V4X32:"4*32",V4X38:"4*38",V4X44:"4*44"};wijmo_barcode_1.Utils.makeEnums(exports.SymbolVersion);exports.CompactionMode={Auto:"auto",Text:"text",Byte:"byte",Numeric:"numeric"};wijmo_barcode_1.Utils.makeEnums(exports.CompactionMode);exports.CLUSTERS=[[120256,125680,128380,120032,125560,128318,108736,119920,108640,86080,108592,86048,110016,120560,125820,109792,120440,125758,88256,109680,88160,89536,110320,120700,89312,110200,120638,89200,110140,89840,110460,89720,110398,89980,128506,119520,125304,128190,107712,119408,125244,107616,119352,84032,107568,119324,84e3,107544,83984,108256,119672,125374,85184,108144,119612,85088,108088,119582,85040,108060,85728,108408,119742,85616,108348,85560,108318,85880,108478,85820,85790,107200,119152,125116,107104,119096,125086,83008,107056,119068,82976,107032,82960,82952,83648,107376,119228,83552,107320,119198,83504,107292,83480,83468,83824,107452,83768,107422,83740,83900,106848,118968,125022,82496,106800,118940,82464,106776,118926,82448,106764,82440,106758,82784,106936,119006,82736,106908,82712,106894,82700,82694,106974,82830,82240,106672,118876,82208,106648,118862,82192,106636,82184,106630,82180,82352,82328,82316,82080,118830,106572,106566,82050,117472,124280,127678,103616,117360,124220,103520,117304,124190,75840,103472,75808,104160,117624,124350,76992,104048,117564,76896,103992,76848,76824,77536,104312,117694,77424,104252,77368,77340,77688,104382,77628,77758,121536,126320,128700,121440,126264,128670,111680,121392,126236,111648,121368,126222,111632,121356,103104,117104,124092,112320,103008,117048,124062,112224,121656,126366,93248,74784,102936,117006,93216,112152,93200,75456,103280,117180,93888,75360,103224,117150,93792,112440,121758,93744,75288,93720,75632,103356,94064,75576,103326,94008,112542,93980,75708,94140,75678,94110,121184,126136,128606,111168,121136,126108,111136,121112,126094,111120,121100,111112,111108,102752,116920,123998,111456,102704,116892,91712,74272,121244,116878,91680,74256,102668,91664,111372,102662,74244,74592,102840,116958,92e3,74544,102812,91952,111516,102798,91928,74508,74502,74680,102878,92088,74652,92060,74638,92046,92126,110912,121008,126044,110880,120984,126030,110864,120972,110856,120966,110852,110850,74048,102576,116828,90944,74016,102552,116814,90912,111e3,121038,90896,73992,102534,90888,110982,90884,74160,102620,91056,74136,102606,91032,111054,91020,74118,91014,91100,91086,110752,120920,125998,110736,120908,110728,120902,110724,110722,73888,102488,116782,90528,73872,102476,90512,110796,102470,90504,73860,90500,73858,73944,90584,90572,90566,120876,120870,110658,102444,73800,90312,90308,90306,101056,116080,123580,100960,116024,70720,100912,115996,70688,100888,70672,70664,71360,101232,116156,71264,101176,116126,71216,101148,71192,71180,71536,101308,71480,101278,71452,71612,71582,118112,124600,127838,105024,118064,124572,104992,118040,124558,104976,118028,104968,118022,100704,115896,123486,105312,100656,115868,79424,70176,118172,115854,79392,105240,100620,79376,70152,79368,70496,100792,115934,79712,70448,118238,79664,105372,100750,79640,70412,79628,70584,100830,79800,70556,79772,70542,70622,79838,122176,126640,128860,122144,126616,128846,122128,126604,122120,126598,122116,104768,117936,124508,113472,104736,126684,124494,113440,122264,126670,113424,104712,117894,113416,122246,104706,69952,100528,115804,78656,69920,100504,115790,96064,78624,104856,117966,96032,113560,122318,100486,96016,78600,104838,96008,69890,70064,100572,78768,70040,100558,96176,78744,104910,96152,113614,70022,78726,70108,78812,70094,96220,78798,122016,126552,128814,122e3,126540,121992,126534,121988,121986,104608,117848,124462,113056,104592,126574,113040,122060,117830,113032,104580,113028,104578,113026,69792,100440,115758,78240,69776,100428,95136,78224,104652,100422,95120,113100,69764,95112,78212,69762,78210,69848,100462,78296,69836,95192,78284,69830,95180,78278,69870,95214,121936,126508,121928,126502,121924,121922,104528,117804,112848,104520,117798,112840,121958,112836,104514,112834,69712,100396,78032,69704,100390,94672,78024,104550,94664,112870,69698,94660,78018,94658,78060,94700,94694,126486,121890,117782,104484,104482,69672,77928,94440,69666,77922,99680,68160,99632,68128,99608,115342,68112,99596,68104,99590,68448,99768,115422,68400,99740,68376,99726,68364,68358,68536,99806,68508,68494,68574,101696,116400,123740,101664,116376,101648,116364,101640,116358,101636,67904,99504,115292,72512,67872,116444,115278,72480,101784,116430,72464,67848,99462,72456,101766,67842,68016,99548,72624,67992,99534,72600,101838,72588,67974,68060,72668,68046,72654,118432,124760,127918,118416,124748,118408,124742,118404,118402,101536,116312,105888,101520,116300,105872,118476,116294,105864,101508,105860,101506,105858,67744,99416,72096,67728,116334,80800,72080,101580,99398,80784,105932,67716,80776,72068,67714,72066,67800,99438,72152,67788,80856,72140,67782,80844,72134,67822,72174,80878,126800,128940,126792,128934,126788,126786,118352,124716,122576,126828,124710,122568,126822,122564,118338,122562,101456,116268,105680,101448,116262,114128,105672,118374,114120,122598,101442,114116,105666,114114,67664,99372,71888,67656,99366,80336,71880,101478,97232,80328,105702,67650,97224,114150,71874,97220,67692,71916,67686,80364,71910,97260,80358,97254,126760,128918,126756,126754,118312,124694,122472,126774,122468,118306,122466,101416,116246,105576,101412,113896,105572,101410,113892,105570,113890,67624,99350,71784,101430,80104,71780,67618,96744,80100,71778,96740,80098,96738,71798,96758,126738,122420,122418,105524,113780,113778,71732,79988,96500,96498,66880,66848,98968,66832,66824,66820,66992,66968,66956,66950,67036,67022,1e5,99984,115532,99976,115526,99972,99970,66720,98904,69024,100056,98892,69008,100044,69e3,100038,68996,66690,68994,66776,98926,69080,100078,69068,66758,69062,66798,69102,116560,116552,116548,116546,99920,102096,116588,115494,102088,116582,102084,99906,102082,66640,68816,66632,98854,73168,68808,66628,73160,68804,66626,73156,68802,66668,68844,66662,73196,68838,73190,124840,124836,124834,116520,118632,124854,118628,116514,118626,99880,115478,101992,116534,106216,101988,99874,106212,101986,106210,66600,98838,68712,99894,72936,68708,66594,81384,72932,68706,81380,72930,66614,68726,72950,81398,128980,128978,124820,126900,124818,126898,116500,118580,116498,122740,118578,122738,99860,101940,99858,106100,101938,114420],[128352,129720,125504,128304,129692,125472,128280,129678,125456,128268,125448,128262,125444,125792,128440,129758,120384,125744,128412,120352,125720,128398,120336,125708,120328,125702,120324,120672,125880,128478,110144,120624,125852,110112,120600,125838,110096,120588,110088,120582,110084,110432,120760,125918,89664,110384,120732,89632,110360,120718,89616,110348,89608,110342,89952,110520,120798,89904,110492,89880,110478,89868,90040,110558,90012,89998,125248,128176,129628,125216,128152,129614,125200,128140,125192,128134,125188,125186,119616,125360,128220,119584,125336,128206,119568,125324,119560,125318,119556,119554,108352,119728,125404,108320,119704,125390,108304,119692,108296,119686,108292,108290,85824,108464,119772,85792,108440,119758,85776,108428,85768,108422,85764,85936,108508,85912,108494,85900,85894,85980,85966,125088,128088,129582,125072,128076,125064,128070,125060,125058,119200,125144,128110,119184,125132,119176,125126,119172,119170,107424,119256,125166,107408,119244,107400,119238,107396,107394,83872,107480,119278,83856,107468,83848,107462,83844,83842,83928,107502,83916,83910,83950,125008,128044,125e3,128038,124996,124994,118992,125036,118984,125030,118980,118978,106960,119020,106952,119014,106948,106946,82896,106988,82888,106982,82884,82882,82924,82918,124968,128022,124964,124962,118888,124982,118884,118882,106728,118902,106724,106722,82408,106742,82404,82402,124948,124946,118836,118834,106612,106610,124224,127664,129372,124192,127640,129358,124176,127628,124168,127622,124164,124162,117568,124336,127708,117536,124312,127694,117520,124300,117512,124294,117508,117506,104256,117680,124380,104224,117656,124366,104208,117644,104200,117638,104196,104194,77632,104368,117724,77600,104344,117710,77584,104332,77576,104326,77572,77744,104412,77720,104398,77708,77702,77788,77774,128672,129880,93168,128656,129868,92664,128648,129862,92412,128644,128642,124064,127576,129326,126368,124048,129902,126352,128716,127558,126344,124036,126340,124034,126338,117152,124120,127598,121760,117136,124108,121744,126412,124102,121736,117124,121732,117122,121730,103328,117208,124142,112544,103312,117196,112528,121804,117190,112520,103300,112516,103298,112514,75680,103384,117230,94112,75664,103372,94096,112588,103366,94088,75652,94084,75650,75736,103406,94168,75724,94156,75718,94150,75758,128592,129836,91640,128584,129830,91388,128580,91262,128578,123984,127532,126160,123976,127526,126152,128614,126148,123970,126146,116944,124012,121296,116936,124006,121288,126182,121284,116930,121282,102864,116972,111568,102856,116966,111560,121318,111556,102850,111554,74704,102892,92112,74696,102886,92104,111590,92100,74690,92098,74732,92140,74726,92134,128552,129814,90876,128548,90750,128546,123944,127510,126056,128566,126052,123938,126050,116840,123958,121064,116836,121060,116834,121058,102632,116854,111080,121078,111076,102626,111074,74216,102646,91112,74212,91108,74210,91106,74230,91126,128532,90494,128530,123924,126004,123922,126002,116788,120948,116786,120946,102516,110836,102514,110834,73972,90612,73970,90610,128522,123914,125978,116762,120890,102458,110714,123552,127320,129198,123536,127308,123528,127302,123524,123522,116128,123608,127342,116112,123596,116104,123590,116100,116098,101280,116184,123630,101264,116172,101256,116166,101252,101250,71584,101336,116206,71568,101324,71560,101318,71556,71554,71640,101358,71628,71622,71662,127824,129452,79352,127816,129446,79100,127812,78974,127810,123472,127276,124624,123464,127270,124616,127846,124612,123458,124610,115920,123500,118224,115912,123494,118216,124646,118212,115906,118210,100816,115948,105424,100808,115942,105416,118246,105412,100802,105410,70608,100844,79824,70600,100838,79816,105446,79812,70594,79810,70636,79852,70630,79846,129960,95728,113404,129956,95480,113278,129954,95356,95294,127784,129430,78588,128872,129974,95996,78462,128868,127778,95870,128866,123432,127254,124520,123428,126696,128886,123426,126692,124514,126690,115816,123446,117992,115812,122344,117988,115810,122340,117986,122338,100584,115830,104936,100580,113640,104932,100578,113636,104930,113634,70120,100598,78824,70116,96232,78820,70114,96228,78818,96226,70134,78838,129940,94968,113022,129938,94844,94782,127764,78206,128820,127762,95102,128818,123412,124468,123410,126580,124466,126578,115764,117876,115762,122100,117874,122098,100468,104692,100466,113140,104690,113138,69876,78324,69874,95220,78322,95218,129930,94588,94526,127754,128794,123402,124442,126522,115738,117818,121978,100410,104570,112890,69754,78074,94714,94398,123216,127148,123208,127142,123204,123202,115408,123244,115400,123238,115396,115394,99792,115436,99784,115430,99780,99778,68560,99820,68552,99814,68548,68546,68588,68582,127400,129238,72444,127396,72318,127394,123176,127126,123752,123172,123748,123170,123746,115304,123190,116456,115300,116452,115298,116450,99560,115318,101864,99556,101860,99554,101858,68072,99574,72680,68068,72676,68066,72674,68086,72694,129492,80632,105854,129490,80508,80446,127380,72062,127924,127378,80766,127922,123156,123700,123154,124788,123698,124786,115252,116340,115250,118516,116338,118514,99444,101620,99442,105972,101618,105970,67828,72180,67826,80884,72178,80882,97008,114044,96888,113982,96828,96798,129482,80252,130010,97148,80190,97086,127370,127898,128954,123146,123674,124730,126842,115226,116282,118394,122618,99386,101498,105722,114170,67706,71930,80378,96632,113854,96572,96542,80062,96702,96444,96414,96350,123048,123044,123042,115048,123062,115044,115042,99048,115062,99044,99042,67048,99062,67044,67042,67062,127188,68990,127186,123028,123316,123026,123314,114996,115572,114994,115570,98932,100084,98930,100082,66804,69108,66802,69106,129258,73084,73022,127178,127450,123018,123290,123834,114970,115514,116602,98874,99962,102138,66682,68858,73210,81272,106174,81212,81182,72894,81342,97648,114364,97592,114334,97564,97550,81084,97724,81054,97694,97464,114270,97436,97422,80990,97502,97372,97358,97326,114868,114866,98676,98674,66292,66290,123098,114842,115130,98618,99194,66170,67322,69310,73404,73374,81592,106334,81564,81550,73310,81630,97968,114524,97944,114510,97932,97926,81500,98012,81486,97998,97880,114478,97868,97862,81454,97902,97836,97830,69470,73564,73550,81752,106414,81740,81734,73518,81774,81708,81702],[109536,120312,86976,109040,120060,86496,108792,119934,86256,108668,86136,129744,89056,110072,129736,88560,109820,129732,88312,109694,129730,88188,128464,129772,89592,128456,129766,89340,128452,89214,128450,125904,128492,125896,128486,125892,125890,120784,125932,120776,125926,120772,120770,110544,120812,110536,120806,110532,84928,108016,119548,84448,107768,119422,84208,107644,84088,107582,84028,129640,85488,108284,129636,85240,108158,129634,85116,85054,128232,129654,85756,128228,85630,128226,125416,128246,125412,125410,119784,125430,119780,119778,108520,119798,108516,108514,83424,107256,119166,83184,107132,83064,107070,83004,82974,129588,83704,107390,129586,83580,83518,128116,83838,128114,125172,125170,119284,119282,107508,107506,82672,106876,82552,106814,82492,82462,129562,82812,82750,128058,125050,119034,82296,106686,82236,82206,82366,82108,82078,76736,103920,117500,76256,103672,117374,76016,103548,75896,103486,75836,129384,77296,104188,129380,77048,104062,129378,76924,76862,127720,129398,77564,127716,77438,127714,124392,127734,124388,124386,117736,124406,117732,117730,104424,117750,104420,104418,112096,121592,126334,92608,111856,121468,92384,111736,121406,92272,111676,92216,111646,92188,75232,103160,117118,93664,74992,103036,93424,112252,102974,93304,74812,93244,74782,93214,129332,75512,103294,129908,129330,93944,75388,129906,93820,75326,93758,127604,75646,128756,127602,94078,128754,124148,126452,124146,126450,117236,121844,117234,121842,103412,103410,91584,111344,121212,91360,111224,121150,91248,111164,91192,111134,91164,91150,74480,102780,91888,74360,102718,91768,111422,91708,74270,91678,129306,74620,129850,92028,74558,91966,127546,128634,124026,126202,116986,121338,102906,90848,110968,121022,90736,110908,90680,110878,90652,90638,74104,102590,91e3,74044,90940,74014,90910,74174,91070,90480,110780,90424,110750,90396,90382,73916,90556,73886,90526,90296,110686,90268,90254,73822,90334,90204,90190,71136,101112,116094,70896,100988,70776,100926,70716,70686,129204,71416,101246,129202,71292,71230,127348,71550,127346,123636,123634,116212,116210,101364,101362,79296,105200,118140,79072,105080,118078,78960,105020,78904,104990,78876,78862,70384,100732,79600,70264,100670,79480,105278,79420,70174,79390,129178,70524,129466,79740,70462,79678,127290,127866,123514,124666,115962,118266,100858,113376,122232,126654,95424,113264,122172,95328,113208,122142,95280,113180,95256,113166,95244,78560,104824,117950,95968,78448,104764,95856,113468,104734,95800,78364,95772,78350,95758,70008,100542,78712,69948,96120,78652,69918,96060,78622,96030,70078,78782,96190,94912,113008,122044,94816,112952,122014,94768,112924,94744,112910,94732,94726,78192,104636,95088,78136,104606,95032,113054,95004,78094,94990,69820,78268,69790,95164,78238,95134,94560,112824,121950,94512,112796,94488,112782,94476,94470,78008,104542,94648,77980,94620,77966,94606,69726,78046,94686,94384,112732,94360,112718,94348,94342,77916,94428,77902,94414,94296,112686,94284,94278,77870,94318,94252,94246,68336,99708,68216,99646,68156,68126,68476,68414,127162,123258,115450,99834,72416,101752,116414,72304,101692,72248,101662,72220,72206,67960,99518,72568,67900,72508,67870,72478,68030,72638,80576,105840,118460,80480,105784,118430,80432,105756,80408,105742,80396,80390,72048,101564,80752,71992,101534,80696,71964,80668,71950,80654,67772,72124,67742,80828,72094,80798,114016,122552,126814,96832,113968,122524,96800,113944,122510,96784,113932,96776,113926,96772,80224,105656,118366,97120,80176,105628,97072,114076,105614,97048,80140,97036,80134,97030,71864,101470,80312,71836,97208,80284,71822,97180,80270,97166,67678,71902,80350,97246,96576,113840,122460,96544,113816,122446,96528,113804,96520,113798,96516,96514,80048,105564,96688,80024,105550,96664,113870,96652,80006,96646,71772,80092,71758,96732,80078,96718,96416,113752,122414,96400,113740,96392,113734,96388,96386,79960,105518,96472,79948,96460,79942,96454,71726,79982,96494,96336,113708,96328,113702,96324,96322,79916,96364,79910,96358,96296,113686,96292,96290,79894,96310,66936,99006,66876,66846,67006,68976,100028,68920,99998,68892,68878,66748,69052,66718,69022,73056,102072,116574,73008,102044,72984,102030,72972,72966,68792,99934,73144,68764,73116,68750,73102,66654,68830,73182,81216,106160,118620,81184,106136,118606,81168,106124,81160,106118,81156,81154,72880,101980,81328,72856,101966,81304,106190,81292,72838,81286,68700,72924,68686,81372,72910,81358,114336,122712,126894,114320,122700,114312,122694,114308,114306,81056,106072,118574,97696,81040,106060,97680,114380,106054,97672,81028,97668,81026,97666,72792,101934,81112,72780,97752,81100,72774,97740,81094,97734,68654,72814,81134,97774,114256,122668,114248,122662,114244,114242,80976,106028,97488,80968,106022,97480,114278,97476,80962,97474,72748,81004,72742,97516,80998,97510,114216,122646,114212,114210,80936,106006,97384,80932,97380,80930,97378,72726,80950,97398,114196,114194,80916,97332,80914,97330,66236,66206,67256,99166,67228,67214,66142,67294,69296,100188,69272,100174,69260,69254,67164,69340,67150,69326,73376,102232,116654,73360,102220,73352,102214,73348,73346,69208,100142,73432,102254,73420,69190,73414,67118,69230,73454,106320,118700,106312,118694,106308,106306,73296,102188,81616,106348,102182,81608,73284,81604,73282,81602,69164,73324,69158,81644,73318,81638,122792,126934,122788,122786,106280,118678,114536,106276,114532,106274,114530,73256,102166,81512,73252,98024,81508,73250,98020,81506,98018,69142,73270,81526,98038,122772,122770,106260,114484,106258,114482,73236,81460,73234,97908,81458,97906,122762,106250,114458,73226,81434,97850,66396,66382,67416,99246,67404,67398,66350,67438,69456,100268,69448,100262,69444,69442,67372,69484,67366,69478,102312,116694,102308,102306,69416,100246,73576,102326,73572,69410,73570,67350,69430,73590,118740,118738,102292,106420,102290,106418,69396,73524,69394,81780,73522,81778,118730,102282,106394,69386,73498,81722,66476,66470,67496,99286,67492,67490,66454,67510,100308,100306,67476,69556,67474,69554,116714]];const mode_ll=" ",mode_ps=" ",mode_ml=" ",mode_al=" ",mode_pl=" ",mode_as=" ";exports.subModeMap={ll:" ",ps:" ",ml:" ",al:" ",pl:" ",as:" "};const TEXT_MAP=["ABCDEFGHIJKLMNOPQRSTUVWXYZ ","abcdefghijklmnopqrstuvwxyz ","0123456789&\r\t,:#-.$/+%*=^ ",";<>@[\\]_`~!\r\t,:\n-.$/\"|*()?{}' "];exports.MODE_TC=900,exports.MODE_BC=901,exports.MODE_NC=902,exports.MODE_BC6=924,exports.MODE_BC_SHIFT=913;function isAlpha(e){return TEXT_MAP[0].indexOf(e)>-1}function isLower(e){return TEXT_MAP[1].indexOf(e)>-1}function isMixed(e){return TEXT_MAP[2].indexOf(e)>-1}function isPunctuation(e){return TEXT_MAP[3].indexOf(e)>-1}function isTC(e){return isAlpha(e)||isLower(e)||isMixed(e)||isPunctuation(e)}function nextTC(e,t){let r=t,o=e.length,i=0;for(;r<o;){e[r]>="0"&&e[r]<="9"?i++:i=0;if(!isTC(e[r]))break;if(i>=13){r-=--i;break}r++}return e.substring(t,r)}function nextNC(e,t){let r=t,o=e.length;for(;r<o&&!(e[r]<"0"||e[r]>"9");)r++;return e.substring(t,r)}function nextBC(e,t){let r=t,o=e.length,i=0,n=0,a=!1;for(;r<o;){if(e[r]>="0"&&e[r]<="9"){i++;if(a){n=0;a=!1}}else if(isTC(e[r])){n++;if(!a){i=0;a=!0}}if(n>=5){r-=--n;break}if(i>=13){r-=--i;break}r++}return e.substring(t,r)}function compaction(e,t=exports.CompactionMode.Auto){let r=[];if(t===exports.CompactionMode.Text)r=[{mode:exports.MODE_TC,text:e}];else if(t===exports.CompactionMode.Byte)r=[{mode:e.length%6==0?exports.MODE_BC6:exports.MODE_BC,text:e}];else if(t===exports.CompactionMode.Numeric)r=[{mode:exports.MODE_NC,text:e}];else{let t=0,o=e.length,i={mode:exports.MODE_TC,text:""};for(;t<o;){let o=nextNC(e,t);if(o.length>=13){i={mode:exports.MODE_NC,text:o};r.push(i);t+=o.length}else{let o=nextTC(e,t);if(o.length>=5){i={mode:exports.MODE_TC,text:o};r.push(i);t+=o.length}else{let o=nextBC(e,t);if(1===o.length&&i.mode==exports.MODE_TC){i={mode:exports.MODE_BC_SHIFT,text:o};r.push(i)}else{i=o.length%6==0?{mode:exports.MODE_BC6,text:o}:{mode:exports.MODE_BC,text:o};r.push(i)}t+=o.length}}}}r.forEach(e=>{if(e.mode==exports.MODE_TC){let t={mode:"al",text:""},r=[t];e.subModes=r;for(let o=0,i=e.text.length;o<i;o++){let i=e.text[o];if(isAlpha(i))if(0===o||"al"===t.mode)t.text+=i;else{t=isAlpha(e.text[o+1])?{mode:"al",text:i}:"ll"===t.mode?{mode:"as",text:i}:{mode:"al",text:i};r.push(t)}else if(isLower(i))if("ll"===t.mode)t.text+=i;else{t={mode:"ll",text:i};r.push(t)}else if(isMixed(i))if("pl"===t.mode&&isPunctuation(i))t.text+=i;else if("ml"===t.mode)t.text+=i;else{t={mode:"ml",text:i};r.push(t)}else if(isPunctuation(i))if("pl"===t.mode)t.text+=i;else{t=isPunctuation(e.text[o+1])?{mode:"pl",text:i}:{mode:"ps",text:i};r.push(t)}}}});return r}exports.compaction=compaction;function getIndicator(e,t,r,o,i){let n,a=~~(e/3),s=~~((t-1)/3),c=3*r+(t-1)%3,d=o-1;switch(e%3*3){case 0:n=i?d:s;break;case 3:n=i?s:c;break;case 6:n=i?c:d}return 30*a+n}exports.getIndicator=getIndicator;function getPattern_PDF417(e,t){return exports.CLUSTERS[e%3][t]}exports.getPattern_PDF417=getPattern_PDF417;function getTCValue(e,t){let r;switch(t){case"ll":r=TEXT_MAP[1].indexOf(e);break;case"ml":r=TEXT_MAP[2].indexOf(e);break;case"al":case"as":r=TEXT_MAP[0].indexOf(e);break;case"pl":case"ps":r=TEXT_MAP[3].indexOf(e)}return r}exports.getTCValue=getTCValue;const subModeTable={al:{ll:[27],ml:[28],pl:[28,25]},ll:{al:[28,28],ml:[28],pl:[28,25]},ml:{al:[28],ll:[27],pl:[25]},pl:{al:[29],ll:[29,27],ml:[29,28]}};function getTCSubModeValue(e,t){let r=getTCValue(exports.subModeMap[e],t);return r>-1?[r]:subModeTable[t][e]}exports.getTCSubModeValue=getTCSubModeValue;function createModules(e,t){let r=[];for(let o=0;o<e;o++)r.push(wijmo_barcode_1.Utils.fillArray(new Array(t),null));return r}exports.createModules=createModules;function getAutoECL(e){const t=e.length;return t<=40?2:t<=160?3:t<=320?4:5}exports.getAutoECL=getAutoECL;function getAutoRowAndCol(e){let t,r,o=31;do{o--;r=(t=Math.ceil(e/o))/o;if(o<2)break}while(r<4);t<3&&(t=3);return{col:o,row:t}}exports.getAutoRowAndCol=getAutoRowAndCol;const LRRowAddressPatterns=["221311","311311","312211","222211","213211","214111","223111","313111","322111","412111","421111","331111","241111","232111","231211","321211","411211","411121","411112","321112","312112","311212","311221","311131","311122","311113","221113","221122","221131","221221","222121","312121","321121","231121","231112","222112","213112","212212","212221","212131","212122","212113","211213","211123","211132","211141","211231","211222","211312","211321","211411","212311"],CRowAddressPatterns=["112231","121231","122131","131131","131221","132121","141121","141211","142111","133111","132211","131311","122311","123211","124111","115111","114211","114121","123121","123112","122212","122221","121321","121411","112411","113311","113221","113212","113122","122122","131122","131113","122113","113113","112213","112222","112312","112321","111421","111331","111322","111232","111223","111133","111124","111214","112114","121114","121123","121132","112132","112141"],VersionTable=[[1,11,7,1,9],[1,14,7,8,8],[1,17,7,36,36],[1,20,8,19,19],[1,24,8,9,17],[1,28,8,25,33],[2,8,8,1,1],[2,11,9,1,9],[2,14,9,8,8],[2,17,10,36,36],[2,20,11,19,19],[2,23,13,9,17],[2,26,15,27,35],[3,6,12,1,1,1],[3,8,14,7,7,7],[3,10,16,15,15,15],[3,12,18,25,25,25],[3,15,21,37,37,37],[3,20,26,1,33,17],[3,26,32,1,17,9],[3,32,38,21,37,29],[3,38,44,15,47,31],[3,44,50,1,9,49],[4,4,8,47,43,19],[4,6,12,1,1,1],[4,8,14,7,7,7],[4,10,16,15,15,15],[4,12,18,25,25,25],[4,15,21,37,37,37],[4,20,26,1,33,17],[4,26,32,1,17,9],[4,32,38,21,37,29],[4,38,44,15,47,31],[4,44,50,1,9,49]];function makeRange(e,t){const r=[];let o=0,i=e;for(;o<t;){i>52&&(i%=52);r.push(i);o++;i++}return r}function findVersionTable(e,t){for(let r=0,o=e.length;r<o;r++){let o=e[r];const[i,n,a,s,c,d]=o,l=n*i,u=n*i-a-2;if(t(o={rows:n,cols:i,total:l,ecCws:a,nonEcCw:l-a,bits:8*(6*~~(u/5)+u%5)})){o.rowAssignment={left:makeRange(s,n),right:makeRange(c,n),center:d?makeRange(d,n):null};const e=[];let t=0;for(;t<=n;){const r=(s+t-1)%3;e.push(r);t++}o.cluster=e;return o}}return null}exports.findVersionTable=findVersionTable;function getVersionVariantColPrior(e){let t=1,r=null;for(;t<=4;){const o=findVersionTable(VersionTable,r=>r.cols===t&&r.nonEcCw>=e);r?o&&o.rows>r.rows&&(r=o):r=o;t++}return r}exports.getVersionVariantColPrior=getVersionVariantColPrior;function getVersionVariantRowPrior(e){return findVersionTable(VersionTable,t=>4===t.cols&&t.nonEcCw>=e)}exports.getVersionVariantRowPrior=getVersionVariantRowPrior;function getVersionVariant(e,t){return findVersionTable(VersionTable,r=>r.cols===t&&r.rows===e)}exports.getVersionVariant=getVersionVariant;function getVersionVariantByCol(e,t){return findVersionTable(VersionTable,r=>r.cols===e&&r.nonEcCw>=t)}exports.getVersionVariantByCol=getVersionVariantByCol;function getECCBVersionVariantByCol(e,t){return findVersionTable(VersionTable,r=>r.cols===e&&r.bits>=t)}exports.getECCBVersionVariantByCol=getECCBVersionVariantByCol;function getRowAddressPatterns(e,t,r){let o;switch(t){case"L":o=LRRowAddressPatterns[e.left[r]-1];break;case"R":o=LRRowAddressPatterns[e.right[r]-1];break;default:o=CRowAddressPatterns[e.center[r]-1]}return wijmo_barcode_1.Utils.toZeroOnePattern(wijmo_barcode_1.Utils.str2Array(o),!0)}exports.getRowAddressPatterns=getRowAddressPatterns;function getPattern(e,t){return exports.CLUSTERS[e][t]}exports.getPattern=getPattern;const testDigit=function(e){return/^\d$/.test(e)},abs=function(e){var t;if(void 0!==e){(t=new BigNumber(e)).sign=1;return t}},isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},isValidType=function(e){return["number"==typeof e,"string"==typeof e&&e.length>0,isArray(e)&&e.length>0,e instanceof BigNumber].some((function(e){return!0===e}))},errors={invalid:"Invalid Number","division by zero":"Invalid Number - Division By Zero"};class BigNumber{constructor(e){var t;this.number=[];this.sign=1;this.rest=0;if(isValidType(e))if(isArray(e)){if(e.length&&"-"===e[0]||"+"===e[0]){this.sign="+"===e[0]?1:-1;e.shift(0)}for(t=e.length-1;t>=0;t--)if(!this.addDigit(e[t]))return}else{if("-"===(e=e.toString()).charAt(0)||"+"===e.charAt(0)){this.sign="+"===e.charAt(0)?1:-1;e=e.substring(1)}for(t=e.length-1;t>=0;t--)if(!this.addDigit(parseInt(e.charAt(t),10)))return}else this.number=errors.invalid}addDigit(e){if(!testDigit(e)){this.number=errors.invalid;return!1}this.number.push(e);return this}isEven(){return this.number[0]%2==0}_compare(e){var t,r;if(!isValidType(e))return null;t=new BigNumber(e);if(this.sign!==t.sign)return this.sign;if(this.number.length>t.number.length)return this.sign;if(this.number.length<t.number.length)return-1*this.sign;for(r=this.number.length-1;r>=0;r--){if(this.number[r]>t.number[r])return this.sign;if(this.number[r]<t.number[r])return-1*this.sign}return 0}gt(e){return this._compare(e)>0}gte(e){return this._compare(e)>=0}equals(e){return 0===this._compare(e)}lte(e){return this._compare(e)<=0}lt(e){return this._compare(e)<0}add(e){var t;if(void 0===e)return this;t=new BigNumber(e);if(this.sign!==t.sign){if(this.sign>0){t.sign=1;return this.minus(t)}this.sign=1;return t.minus(this)}this.number=BigNumber._add(this,t);return this}minus(e){var t;if(void 0===e)return this;t=new BigNumber(e);if(this.sign!==t.sign){this.number=BigNumber._add(this,t);return this}this.sign=this.lt(t)?-1:1;this.number=abs(this).lt(abs(t))?BigNumber._subtract(t,this):BigNumber._subtract(this,t);return this}static _add(e,t){var r,o=0,i=Math.max(e.number.length,t.number.length);for(r=0;r<i||o>0;r++){e.number[r]=(o+=(e.number[r]||0)+(t.number[r]||0))%10;o=Math.floor(o/10)}return e.number}static _subtract(e,t){var r,o=0,i=e.number.length;for(r=0;r<i;r++){e.number[r]-=(t.number[r]||0)+o;e.number[r]+=10*(o=e.number[r]<0?1:0)}r=0;i=e.number.length-1;for(;0===e.number[i-r]&&i-r>0;)r++;r>0&&e.number.splice(-r);return e.number}multiply(e){if(void 0===e)return this;var t,r,o=new BigNumber(e),i=0,n=[];if(this.isZero()||o.isZero())return new BigNumber(0);this.sign*=o.sign;for(t=0;t<this.number.length;t++)for(i=0,r=0;r<o.number.length||i>0;r++){n[t+r]=(i+=(n[t+r]||0)+this.number[t]*(o.number[r]||0))%10;i=Math.floor(i/10)}this.number=n;return this}divide(e){if(void 0===e)return this;var t,r,o=new BigNumber(e),i=[],n=new BigNumber(0);if(o.isZero()){this.number=errors["division by zero"];return this}if(this.isZero()){this.rest=new BigNumber(0);return this}this.sign*=o.sign;o.sign=1;if(1===o.number.length&&1===o.number[0]){this.rest=new BigNumber(0);return this}for(t=this.number.length-1;t>=0;t--){n.multiply(10);n.number[0]=this.number[t];i[t]=0;for(;o.lte(n);){i[t]++;n.minus(o)}}t=0;r=i.length-1;for(;0===i[r-t]&&r-t>0;)t++;t>0&&i.splice(-t);this.rest=n;this.number=i;return this}mod(e){return this.divide(e).rest}power(e){if(void 0!==e){var t,r;if(isValidType(e)){if((r=new BigNumber(e)).isZero())return new BigNumber(1);if("1"===r.val())return this;t=new BigNumber(this);this.number=[1];for(;r.gt(0);)if(r.isEven()){t.multiply(t);r.div(2)}else{this.multiply(t);r.subtract(1)}return this}this.number=errors.invalid}}abs(){this.sign=1;return this}isZero(){var e;for(e=0;e<this.number.length;e++)if(0!==this.number[e])return!1;return!0}toString(){var e,t="";if("string"==typeof this.number)return this.number;for(e=this.number.length-1;e>=0;e--)t+=this.number[e];return this.sign>0?t:"-"+t}}exports.BigNumber=BigNumber;class PDF417Base extends wijmo_barcode_1.TwoDimensionalBarcode{validate(){const{text:e}=this.encodeConfig;if(!/^[\x00-\xFF]+$/.test(e))throw new wijmo_barcode_1.InvalidTextException(e)}encodeNC(e){let t=e.text,r=[];wijmo_barcode_1.Utils.sliceString(t,44,e=>{let t=new BigNumber("1"+e);const o=[];for(;;){let e=new BigNumber(t).mod(900);t.divide(new BigNumber(900));o.unshift(+e.toString());if(t.lt(1))break}r=r.concat(o)});r.unshift(exports.MODE_NC);return r}encodeBC(e){let t=e.text,r=[];wijmo_barcode_1.Utils.sliceString(t,6,e=>{if(6===e.length){let t=5,o=0;const i=[];wijmo_barcode_1.Utils.sliceString(e,1,e=>{o+=e.charCodeAt(0)*Math.pow(256,t--)});let n=0,a=Math.floor(o/Math.pow(900,n))%900;do{i.unshift(a);a=Math.floor(o/Math.pow(900,++n))%900}while(a>0);for(;i.length<5;)i.unshift(0);r=r.concat(i)}else wijmo_barcode_1.Utils.sliceString(e,1,e=>{r.push(e.charCodeAt(0))})});r.unshift(e.mode);return r}encodeTC(e){let t=[],r="al";e.subModes.forEach(e=>{r!==e.mode&&(t=t.concat(getTCSubModeValue(e.mode,r)));wijmo_barcode_1.Utils.sliceString(e.text,1,r=>{t.push(getTCValue(r,e.mode))});"ps"!==e.mode&&"as"!==e.mode&&(r=e.mode)});let o=[exports.MODE_TC];wijmo_barcode_1.Utils.sliceArray(t,2,e=>{2===e.length?o.push(30*e[0]+e[1]):o.push(30*e[0]+29)});return o}encode(e){let t=[];e.forEach(e=>{switch(e.mode){case exports.MODE_TC:t=t.concat(this.encodeTC(e));break;case exports.MODE_BC:case exports.MODE_BC6:case exports.MODE_BC_SHIFT:t=t.concat(this.encodeBC(e));break;case exports.MODE_NC:t=t.concat(this.encodeNC(e))}});return t}convertToShape(e,t){const{height:r,quietZone:o}=this.encodeConfig,i=r/e.length,n=e[0].reduce((e,t)=>e+=t.length,0)+o.right+o.left,a=e.length*i+o.top+o.bottom,s=new wijmo_barcode_1.VerticalLayoutArea,c=new wijmo_barcode_1.MatrixSymbolArea(n,a,i);c.setStyle({padding:{top:o.top,right:o.right,bottom:o.bottom,left:o.left}});s.append(c);if(!t){e.forEach(e=>{e.forEach(e=>{wijmo_barcode_1.Utils.combineTruthy(e).forEach(e=>{0!==e?c.append(e,i):c.space()})})});this.shapes=s.toShapes()}this.mainArea=s;this.size=s.getSize()}adjustDesiredSize(){const{width:e}=this.size;let{desiredSize:t,containerWidth:r}=this.encodeConfig,o=r/e;t.forceRounding&&(o=(o=~~o)<1?1:o);this.applyDesiredSize(o)}getMainArea(){return this.mainArea}}PDF417Base.PAD=900;exports.PDF417Base=PDF417Base;class PDF417Encoder extends PDF417Base{constructor(e){e.merge(PDF417Encoder.DefaultConfig);super(e);let{errorCorrectionLevel:t,columns:r,rows:o,compact:i}=this.config,{text:n}=this.encodeConfig;this.text=n;this.ecl="auto"===t?t:+t;this.columns="auto"===r?r:+r;this.rows="auto"===o?o:+o;this.compact=!!i}validate(){super.validate();const{errorCorrectionLevel:e,rows:t,columns:r}=this.config;if(wijmo_barcode_1.Utils.isNumberLike(e)&&(e<0||e>8))throw new wijmo_barcode_1.InvalidOptionsException({errorCorrectionLevel:e},"ErrorCorrectionLevel is from 0 - 8.");if(wijmo_barcode_1.Utils.isNumberLike(t)&&(t<3||t>90))throw new wijmo_barcode_1.InvalidOptionsException({rows:t},"Rows is from 3 - 90.");if(wijmo_barcode_1.Utils.isNumberLike(r)&&(r<1||r>30))throw new wijmo_barcode_1.InvalidOptionsException({columns:r},"Columns is from 1 - 30.")}genEcc(){let{data:e,ecl:t,columns:r,rows:o}=this;e[0]===exports.MODE_TC&&e.shift();"auto"===t&&(this.ecl=t=getAutoECL(e));let i=Math.pow(2,t+1),n=e.length+1+i;if("auto"===o&&"auto"===r){let{col:e,row:t}=getAutoRowAndCol(n);this.columns=r=e;this.rows=o=t}else if("auto"===o){if((o=Math.ceil(n/r))>90)throw new wijmo_barcode_1.InvalidOptionsException({columns:r},"Columns is not large enough");o=o<3?3:o;this.rows=o}else if("auto"===r){if((r=Math.ceil(n/o))>30)throw new wijmo_barcode_1.InvalidOptionsException({rows:o},"Rows is not large enough");this.columns=r}let a=r*o-i;e.unshift(a);if(e.length>PDF417Encoder.MAX_DATA_NUM||e.length>a)throw new wijmo_barcode_1.TextTooLongException;for(;e.length<a;)e.push(PDF417Base.PAD);this.ecc=generateECC(e,this.ecl)}calculateData(){let e=compaction(this.text);this.data=this.encode(e);this.genEcc();let{data:t,ecc:r,columns:o,rows:i,ecl:n,compact:a}=this,s=t.concat(r),c=createModules(i,o);s.forEach((e,t)=>{let r=Math.floor(t/o),i=t%o;c[r][i]=getPattern_PDF417(r,e)});let d=[];c.forEach((e,t)=>{let r=getPattern_PDF417(t,getIndicator(t,i,n,o)),s=getPattern_PDF417(t,getIndicator(t,i,n,o,!0)),c=[PDF417Encoder.START,r.toString(2)];e.forEach(e=>{c.push(e.toString(2))});if(a)c.push(PDF417Encoder.COMPACT_END);else{c.push(s.toString(2));c.push(PDF417Encoder.END)}d.push(c)});return d}}PDF417Encoder.DefaultConfig={errorCorrectionLevel:"auto",columns:"auto",rows:"auto",compact:!1,height:60,quietZone:{top:2,left:2,right:2,bottom:2}};PDF417Encoder.START="11111111010101000";PDF417Encoder.END="111111101000101001";PDF417Encoder.COMPACT_END="1";PDF417Encoder.MAX_DATA_NUM=925;exports.PDF417Encoder=PDF417Encoder;class MicroPDF417Encoder extends PDF417Base{constructor(e){e.merge(MicroPDF417Encoder.DefaultConfig);super(e);let{symbolVersion:t,compactionMode:r,segmentIndex:o,fileID:i,structuredAppend:n,optionalFields:a}=this.config,{text:s}=this.encodeConfig;this.text=s;this.symbolVersion=t;this.versionMeta=null;this.compactionMode=r;this.structuredAppendEnabled=n;this.segmentIndex=o;this.fileID=i;this.optionalFields=a;this.segmentCount=0;this.structuredAppendCws=[]}validate(){super.validate();const{compactionMode:e,symbolVersion:t,segmentIndex:r,fileID:o}=this.config,{text:i}=this.encodeConfig;if(e===exports.CompactionMode.Numeric&&!/^[\d]*$/.test(i))throw new wijmo_barcode_1.InvalidOptionsException({compactionMode:e,text:i},"CompactionMode is numeric, but the text is not.");if(!exports.CompactionMode.has(e))throw new wijmo_barcode_1.InvalidOptionsException({compactionMode:e});if(!exports.SymbolVersion.has(t))throw new wijmo_barcode_1.InvalidOptionsException({symbolVersion:t});if(r<0||r>99998||o<0||o>899)throw new wijmo_barcode_1.InvalidOptionsException({segmentIndex:r},"SegmentIndex should in range 0 - 99998")}_buildRow(e,t){const{columns:r,versionMeta:{rowAssignment:o,cluster:i}}=this;let n=getRowAddressPatterns(o,"L",t),a=getRowAddressPatterns(o,"R",t),s=[n];const c=i[t],d=e.map(e=>getPattern(c,e));switch(r){case 1:s.push(d[0].toString(2));break;case 2:s.push(d[0].toString(2));s.push(d[1].toString(2));break;case 3:s.push(d[0].toString(2));s.push(getRowAddressPatterns(o,"C",t));s.push(d[1].toString(2));s.push(d[2].toString(2));break;default:s.push(d[0].toString(2));s.push(d[1].toString(2));s.push(getRowAddressPatterns(o,"C",t));s.push(d[2].toString(2));s.push(d[3].toString(2))}return s=[...s,a,MicroPDF417Encoder.StopBar]}_buildStructAppend(){const{segmentIndex:e,segmentCount:t,fileID:r,optionalFields:o}=this;let i=[MicroPDF417Encoder.StructuredAppendMarker],n=this.encodeNC({text:wijmo_barcode_1.Utils.strPadStart(e+"",5,"0")});n.shift();i.push(...n);i.push(r);if(o.segmentCount){i.push(MicroPDF417Encoder.StructuredAppendOptionalFieldsMarker);i.push(MicroPDF417Encoder.StructuredAppendOptionalFieldTags.SegmentCount);let e=this.encodeNC({text:wijmo_barcode_1.Utils.strPadStart(t+"",5,"0")});e.shift();i.push(...e)}e===t-1&&i.push(MicroPDF417Encoder.StructuredAppendTerminator);return i}_splitStruct(e){let t,{symbolVersion:r,segmentIndex:o}=this;if(r===exports.SymbolVersion.RowPriorAuto||r===exports.SymbolVersion.ColumnPriorAuto)t=getVersionVariant(44,4);else{let[e,o]=r.split("*");t=getVersionVariant(+o,+e)}const i=this._buildStructAppend(),n=t.nonEcCw-i.length;if(n<0)throw new wijmo_barcode_1.TextTooLongException;let a=Math.ceil(e.length/n);e.length-n*(a-1)===n&&a++;if(o>=a)throw new wijmo_barcode_1.InvalidOptionsException({segmentIndex:o},`The max segment index is ${a-1}.`);if(a>99999)throw new wijmo_barcode_1.TextTooLongException;let s;s=o===a-1?e.slice(n*o):e.slice(n*o,n*(o+1));this.segmentCount=a;return s}genEcc(){let e,{data:t,symbolVersion:r,structuredAppendCws:o}=this,i=t.length+o.length;if(r===exports.SymbolVersion.RowPriorAuto)e=getVersionVariantRowPrior(i);else if(r===exports.SymbolVersion.ColumnPriorAuto)e=getVersionVariantColPrior(i);else{let[t,o]=r.split("*");e=getVersionVariant(+o,+t)}const n=e.rows*e.cols-e.ecCws;if(n<i)throw new wijmo_barcode_1.TextTooLongException;let a=n-i;for(;a>0;){t.push(PDF417Base.PAD);a--}this.versionMeta=e;this.ecc=generateECCForMicro([...t,...o],e.ecCws);this.rows=e.rows;this.columns=e.cols}calculateData(){let e=compaction(this.text,this.compactionMode),t=this.encode(e);if(this.structuredAppendEnabled){this.data=this._splitStruct(t);this.structuredAppendCws=this._buildStructAppend()}else this.data=t;this.genEcc();let{data:r,ecc:o,columns:i,rows:n,structuredAppendCws:a}=this,s=r.concat(a).concat(o),c=createModules(n,i);s.forEach((e,t)=>{let r=Math.floor(t/i),o=t%i;c[r][o]=e});let d=[];c.forEach((e,t)=>{d.push(this._buildRow(e,t))});return d}}MicroPDF417Encoder.DefaultConfig={symbolVersion:exports.SymbolVersion.ColumnPriorAuto,compactionMode:exports.CompactionMode.Auto,structuredAppend:!1,segmentIndex:0,fileID:0,height:60,quietZone:{top:1,left:1,right:1,bottom:1},optionalFields:{segmentCount:!0}};MicroPDF417Encoder.StopBar="1";MicroPDF417Encoder.StructuredAppendMarker=928;MicroPDF417Encoder.StructuredAppendOptionalFieldsMarker=923;MicroPDF417Encoder.StructuredAppendTerminator=922;MicroPDF417Encoder.StructuredAppendOptionalFieldTags={SegmentCount:1};exports.MicroPDF417Encoder=MicroPDF417Encoder;wijmo_barcode_1.Barcode.registerEncoder("PDF417",PDF417Encoder);wijmo_barcode_1.Barcode.registerEncoder("MicroPDF417",MicroPDF417Encoder);class CCA extends PDF417Base{constructor(e,t=4,r=1,o){const i={text:e,unitSize:r,quietZone:{top:0,right:0,left:0,bottom:0}};o&&(i.height=o);super(new wijmo_barcode_1.Option(i));this.columns=t;let{text:n}=this.encodeConfig;this.text=n.replace(/\(|\)/g,"");this.bitBuffer=new wijmo_barcode_1.BitBuffer;this._gpdEncodation=new GeneralPurposeDataEncodation(this.bitBuffer);const a=n.split(/\(|\)/);a.shift();let s=0;const c=[];for(;s<a.length;)c.push({ai:a[s++],data:a[s++]});this.aiGroup=c;this.autoHeight=!o}_buildRow(e,t){const{columns:r,versionMeta:{rowAssignment:o,cluster:i}}=this;let n=getRowAddressPatterns(o,"L",t),a=getRowAddressPatterns(o,"R",t),s=3===r?[]:[n];const c=i[t],d=e.map(e=>getPattern(c,e));switch(r){case 2:s.push(d[0].toString(2));s.push(d[1].toString(2));break;case 3:s.push(d[0].toString(2));s.push(getRowAddressPatterns(o,"C",t));s.push(d[1].toString(2));s.push(d[2].toString(2));break;default:s.push(d[0].toString(2));s.push(d[1].toString(2));s.push(getRowAddressPatterns(o,"C",t));s.push(d[2].toString(2));s.push(d[3].toString(2))}return s=[...s,a,MicroPDF417Encoder.StopBar]}_encode_10Date(e){const{bitBuffer:t,text:r}=this,o=384*+e.substr(0,2)+32*(+e.substr(2,2)-1)+ +e.substr(4,2);if(isNaN(o))throw new wijmo_barcode_1.InvalidTextException(r,"The text doesn't contains a vaild product date or expire date");t.put(o,16)}_getMethod_11Mode(e){let t=0,r=0;for(let o=0,i=e.length;o<i;o++){const i=e[o];if("*,-./".indexOf(i)>-1)return"Alphanumeric";i>="A"&&i<="Z"&&t++;i>="0"&&i<="9"&&r++}return t>r?"Alpha":"Numeric"}_encode_11(){const{bitBuffer:e,aiGroup:t}=this;let r="";const o=t[0];e.putBits("11");const i=/^([1-9][0-9]?[0-9]?)?([A-Z][0-9A-Z*,-./]*)/.exec(o.data);let n=i[1]||"",a=i[2][0];const s=n+a;n=n?+n:0;const c=o.data.substr(s.length);switch(this._getMethod_11Mode(c)){case"Alphanumeric":e.putBits("0");break;case"Alpha":e.putBits("11");break;case"Numeric":e.putBits("10")}const d=t[1];if(d)switch(d.ai){case"21":r=c+wijmo_barcode_1.Constants.FNC1+d.data;e.putBits("10");break;case"8004":r=c+wijmo_barcode_1.Constants.FNC1+d.data;e.putBits("11");break;default:r=c+wijmo_barcode_1.Constants.FNC1+d.ai+d.data;e.putBits("0")}else{r=c;e.putBits("0")}t.length>2&&wijmo_barcode_1.Utils.loop(e=>{const o=t[e];r=r+wijmo_barcode_1.Constants.FNC1+o.ai+o.data},{from:2,to:t.length-1});const l=getSupportedUppercaseAlphabetic(a);if(n<31&&l){e.putBit(n,5);e.putBits(l)}else{e.putBits("11111");e.put(n,10);e.put(a.charCodeAt(0)-65,5)}return r}_encode_10(){const{bitBuffer:e,aiGroup:t}=this;let r="";const o=t[0];e.putBits("10");if("11"===o.ai||"17"===o.ai){this._encode_10Date(o.data);e.putBit("17"===o.ai);if(t.length>1){if(t[1]&&"10"===t[1].ai){r=t[1].data;t.length>2&&wijmo_barcode_1.Utils.loop(e=>{const o=t[e];r=r+wijmo_barcode_1.Constants.FNC1+o.ai+o.data},{from:2,to:t.length-1})}else{r=wijmo_barcode_1.Constants.FNC1;wijmo_barcode_1.Utils.loop(e=>{const o=t[e];r=r+o.ai+o.data},{from:1,to:t.length-1})}}else r=wijmo_barcode_1.Constants.FNC1}else if("10"===o.ai){e.putBits("11");r=o.data;t.length>1&&wijmo_barcode_1.Utils.loop(e=>{const o=t[e];r=r+wijmo_barcode_1.Constants.FNC1+o.ai+o.data},{from:1,to:t.length-1})}return r}_encode_0(){const{bitBuffer:e,aiGroup:t,text:r}=this;e.putBits("0");if(!t.length)return r;let o="";o=t[0].ai+t[0].data;t.length>1&&wijmo_barcode_1.Utils.loop(e=>{const r=t[e];o=o+wijmo_barcode_1.Constants.FNC1+r.ai+r.data},{from:1,to:t.length-1});return o}_encodeMethod(){const{text:e,aiGroup:t}=this,r=t[0];if(r)if("10"===r.ai||"11"===r.ai||"17"===r.ai)this.method="10";else if("90"===r.ai){const t=/^90(?:[1-9][0-9]?[0-9]?)?[A-Z]/.test(e);this.method=t?"11":"0"}else this.method="0";else this.method="0"}getVersionVariant(){const{bitBuffer:e,columns:t}=this;this.versionMeta=getVersionVariant_CCA(t,e.length)}_encode(){this._encodeMethod();const{method:e,columns:t}=this;let r="";switch(e){case"10":r=this._encode_10();break;case"11":r=this._encode_11();break;case"0":r=this._encode_0()}this._gpdEncodation.encodeGeneralData(r,t);this.getVersionVariant();if(!this.versionMeta)throw new wijmo_barcode_1.TextTooLongException;this._gpdEncodation.padTo(this.versionMeta.bits)}genEcc(){const{bitBuffer:e,versionMeta:t}=this,r=[];encode928(e.getGroupedBits(16),r,e.length);this.data=r;this.ecc=generateECCForMicro(r,t.ecCws);this.rows=t.rows;this.autoHeight&&(this.encodeConfig.height=2*t.rows)}calculateData(){this._encode();this.genEcc();let{data:e,ecc:t,columns:r,rows:o}=this,i=e.concat(t),n=createModules(o,r);i.forEach((e,t)=>{let o=Math.floor(t/r),i=t%r;n[o][i]=e});let a=[];n.forEach((e,t)=>{a.push(this._buildRow(e,t))});return a}}exports.CCA=CCA;class CCBInnerEncoder extends CCA{getVersionVariant(){const{bitBuffer:e,columns:t}=this;this.versionMeta=getECCBVersionVariantByCol(t,e.length)}getBytes(){this._encode();return this.bitBuffer.getGroupedBits(8)}}class CCB extends MicroPDF417Encoder{constructor(e,t=4,r=1,o){const i={text:e,unitSize:r,compactionMode:"byte",quietZone:{top:0,right:0,left:0,bottom:0}};o&&(i.height=o);super(new wijmo_barcode_1.Option(i));this.columns=t;const n=new CCBInnerEncoder(e,t,r,o);this.bytes=n.getBytes();this.autoHeight=!o}genEcc(){let{data:e,columns:t}=this,r=e.length;const o=getVersionVariantByCol(t,r),i=o.rows*o.cols-o.ecCws;if(i<r)throw new wijmo_barcode_1.TextTooLongException;let n=i-r;for(;n>0;){e.push(PDF417Base.PAD);n--}this.versionMeta=o;this.ecc=generateECCForMicro(e,o.ecCws);this.rows=o.rows;this.columns=o.cols;this.autoHeight&&(this.encodeConfig.height=2*o.rows)}encode(){const{bytes:e}=this;let t=[];wijmo_barcode_1.Utils.sliceArray(e,6,e=>{if(6===e.length){let r=5,o=0;const i=[];e.forEach(e=>{o+=e*Math.pow(256,r--)});let n=0,a=Math.floor(o/Math.pow(900,n))%900;do{i.unshift(a);a=Math.floor(o/Math.pow(900,++n))%900}while(a>0);for(;i.length<5;)i.unshift(0);t=t.concat(i)}else e.forEach(e=>{t.push(e)})});t.unshift(e.length%6==0?exports.MODE_BC6:exports.MODE_BC);t.unshift(920);return t}calculateData(){this.data=this.encode();this.genEcc();let{data:e,ecc:t,columns:r,rows:o}=this,i=e.concat(t),n=createModules(o,r);i.forEach((e,t)=>{let o=Math.floor(t/r),i=t%r;n[o][i]=e});let a=[];n.forEach((e,t)=>{a.push(this._buildRow(e,t))});return a}}exports.CCB=CCB;const LinkageVersion={CCA:"CCA",CCB:"CCB"};class GS1DataBarBase extends wijmo_barcode_1.OneDimensionalBarcode{constructor(e){e.merge(GS1DataBarBase.DefaultConfig);super(e);let{config:{linkage:t,hideLinkageText:r,hideAIText:o}}=this;this.linkageText=t;this.linkage=!!t;this.hideLinkageText=r;this.hideAIText=o}static combins(e,t){let r,o,i,n,a;if(e-t>t){n=t;i=e-t}else{n=e-t;i=t}a=1;o=1;for(r=e;r>i;r--){a*=r;if(o<=n){a/=o;o++}}for(;o<=n;o++)a/=o;return a}static getRSSwidths(e,t,r,o,i){let n,a,s,c,d,l=0;const u=[];for(n=0;n<r-1;n++){for(a=1,l|=1<<n;;a++,l&=~(1<<n)){c=GS1DataBarBase.combins(t-a-1,r-n-2);!i&&0==l&&t-a-(r-n-1)>=r-n-1&&(c-=GS1DataBarBase.combins(t-a-(r-n),r-n-2));if(r-n-1>1){d=0;for(s=t-a-(r-n-2);s>o;s--)d+=GS1DataBarBase.combins(t-a-s-1,r-n-3);c-=d*(r-1-n)}else t-a>o&&c--;if((e-=c)<0)break}e+=c;t-=a;u[n]=a}u[n]=t;return u}static getRSSvalue(e,t,r,o){let i,n,a,s,c,d,l,u=0,h=0;for(i=s=0;s<t;s++)i+=e[s];for(n=0;n<t-1;n++){for(a=1,h|=1<<n;a<e[n];a++,h&=~(1<<n))d=GS1DataBarBase.combins(i-a-1,t-n-2);!o&&0==h&&i-a-(t-n-1)>=t-n-1&&(d-=GS1DataBarBase.combins(i-a-(t-n),t-n-2));if(t-n-1>1){l=0;for(c=i-a-(t-n-2);c>r;c--)l+=GS1DataBarBase.combins(i-a-c-1,t-n-3);d-=l*(t-1-n)}else i-a>r&&(u+=--d);i-=a}return u}static getGroup(e,t){for(let r=0,o=e.length;r<o;r++){const o=e[r];if(t>=o[0]&&t<=o[1])return{range:{from:o[0],to:o[1]},preTotal:o[2],oddModules:o[3],evenModules:o[4],oddElements:o[5],evenElements:o[6],oddTotal:o[7],evenTotal:o[8]}}}static getChecksum(e,t){return e.reduce((e,r,o)=>e+=r*t[o],0)}static makeComplementPattern(e){let t="";wijmo_barcode_1.Utils.loop(r=>{t+="1"===e[r]?"0":"1"},e.length);return t}static makeAlternatePattern(e,t){let r="",o=!t;wijmo_barcode_1.Utils.loop(()=>{r+=o?"1":"0";o=!o},e);return r}static makeComplexPattern(e){let t="",r="",o=!1;wijmo_barcode_1.Utils.loop(i=>{if("0"===e[i]){if(o){t+=wijmo_barcode_1.Utils.strRepeat("0",r.length);r=""}r+="0";o=!1}else{if(!o){t+=GS1DataBarBase.makeAlternatePattern(r.length);r=""}r+="1";o=!0}},e.length);return t+=o?wijmo_barcode_1.Utils.strRepeat("0",r.length):GS1DataBarBase.makeAlternatePattern(r.length)}convertToShape(e,t){this.linkage?this._convertToShapeForLinkage(e,t):super.convertToShape(e,t)}getLinkageOffset(e,t){}getLinkageSepPattern(e){}_convertToShapeForLinkage(e,t){let{label:r,encodeConfig:{quietZone:o,isLabelBottom:i,height:n,showLabel:a,fontSizeInUnit:s},style:{textAlign:c,unitValue:d},linkageText:l,config:{linkageVersion:u,linkageHeight:h},linkageColumnCnt:m}=this;const p=u===LinkageVersion.CCA?new CCA(l,m,d,h):new CCB(l,m,d,h);p.toSymbol();const g=p.getMainArea(),f=this.getLinkageSepPattern(e),_=g.getSize();let b=0;r&&a&&(b=s);n=n-_.height-1;const w=e.length,C=n,x=this.getLinkageOffset(e,_.width),S=new wijmo_barcode_1.VerticalLayoutArea,B=new wijmo_barcode_1.SymbolArea(w,C),E=new wijmo_barcode_1.SymbolArea(w,1);S.setStyle({padding:{top:o.top,right:o.right,bottom:o.bottom,left:o.left}});B.setStyle({margin:{left:x.symbolOffset}});E.setStyle({margin:{left:x.symbolOffset}});g.setStyle({margin:{left:x.linkageOffset}});const D=B.getSize(),P=new wijmo_barcode_1.LabelArea(D.width,b,c);if(i){S.append(g);S.append(E);S.append(B);S.append(P)}else{S.append(P);S.append(g);S.append(E);S.append(B)}if(!t){E.fromPattern(f);B.fromPattern(e);P.append({text:r});this.shapes=S.toShapes()}this.size=S.getSize()}}GS1DataBarBase.DefaultConfig={linkage:"",linkageVersion:"CCA",hideLinkageText:!1,hideAIText:!1};GS1DataBarBase.LinkageVersion=LinkageVersion;exports.GS1DataBarBase=GS1DataBarBase;class Expanded extends GS1DataBarBase{constructor(e){super(e);let{encodeConfig:{text:t},linkage:r,hideLinkageText:o,linkageText:i,hideAIText:n}=this;this.text=t.replace(/\(|\)/g,"");this.label=t;r&&!o&&(this.label+=i);n&&(this.label=this.label.replace(/\(\w*\)/g,""));this._bitBuffer=new wijmo_barcode_1.BitBuffer;this._gpdEncodation=new GS1GeneralPurposeDataEncodation(this._bitBuffer);this.finderPatternSeq=null;this.symbolContentSize=null;this.linkageColumnCnt=4}static getFinderPatternSeq(e){const t=~~((e-3)/2);return Expanded.FinderPatternSeq[t]}static isVersion1Finder(e){return["A1","B1","C1","D1","E1","F1"].indexOf(e)>-1}_getSubsetWidth(e,t=!1){const r=GS1DataBarBase.getGroup(Expanded.Group,e),o=~~((e-r.preTotal)/r.evenTotal),i=(e-r.preTotal)%r.evenTotal,n=GS1DataBarBase.getRSSwidths(o,r.oddModules,4,r.oddElements,!1),a=GS1DataBarBase.getRSSwidths(i,r.evenModules,4,r.evenElements,!0),s=[];wijmo_barcode_1.Utils.loop(e=>{s.push(n[e]);s.push(a[e])},4);return t?s:s.reverse()}_getChecksum(e){let t=0;e.forEach((e,r)=>{let o,i;if(0===r){o=this.finderPatternSeq[0];i=!1}else{const e=r-1;o=this.finderPatternSeq[1+~~(e/2)];i=wijmo_barcode_1.Utils.isEven(e)}let n=Expanded.ChecksumWeight[o][i?"left":"right"];n=i?n:n.concat().reverse();t+=GS1DataBarBase.getChecksum(e,n)});return t=t%211+211*(this.symbolContentSize-4)}_getContent(e){const t=[];e.forEach((e,r)=>{if(wijmo_barcode_1.Utils.isEven(r)){t.push(...e);const o=this.finderPatternSeq[~~(r/2)];t.push(...Expanded.FinderPattern[o])}else t.push(...e)});return t}_addLength(e){const{_bitBuffer:t}=this,r=1+~~((t.length+11)/12);t.putBitAt(!wijmo_barcode_1.Utils.isEven(r),1+e);t.putBitAt(r>14,2+e)}_encode(){const{text:e}=this;Expanded.MethodReg_0100.test(e)?this._encode_0100():Expanded.MethodReg_0101.test(e)?this._encode_0101():Expanded.MethodReg_0111000_0111111.test(e)?this._encode_0111000_0111111():Expanded.MethodReg_01100.test(e)?this._encode_01100():Expanded.MethodReg_01101.test(e)?this._encode_01101():Expanded.MethodReg_1.test(e)?this._encode_1():this._encode_00()}_encode_1(){const{text:e,_bitBuffer:t,_gpdEncodation:r}=this,o=Expanded.MethodReg_1.exec(e),i=o[2];t.putBits("1");t.putBits("00");t.put(+i[0],4);wijmo_barcode_1.Utils.sliceString(i.substr(1),3,e=>{t.put(+e,10)});r.encode(o[4]);this._addLength(1)}_encode_0100(){const{text:e,_bitBuffer:t}=this,r=Expanded.MethodReg_0100.exec(e),o=r[2],i=+r[4];if(i>32767)throw new wijmo_barcode_1.InvalidTextException(e,"With method 0100, the weight should not larger than 32767.");t.putBits("0100");wijmo_barcode_1.Utils.sliceString(o,3,e=>{t.put(+e,10)});t.put(i,15)}_encode_0101(){const{text:e,_bitBuffer:t}=this,r=Expanded.MethodReg_0101.exec(e),o=r[2],i="2"==r[4][0],n=+r[5];if(i&&n>999||!i&&n>22767)throw new wijmo_barcode_1.InvalidTextException(e,`With method 0101, the weight should not larger than ${n}.`);t.putBits("0101");wijmo_barcode_1.Utils.sliceString(o,3,e=>{t.put(+e,10)});t.put(i?n:n+1e4,15)}_encode_0111000_0111111(){const{text:e,_bitBuffer:t}=this,r=Expanded.MethodReg_0111000_0111111.exec(e),o=r[2];let i=+r[6][1];"1"===r[4][1]&&i--;i+=56;t.put(i,7);wijmo_barcode_1.Utils.sliceString(o,3,e=>{t.put(+e,10)});t.put(+(r[4][3]+r[5]),20);const n=/^(\d{2})(\d{2})(\d{2})$/.exec(r[7]);t.put(384*+n[1]+32*(+n[2]-1)+ +n[3],16)}_encode_01100(){const{text:e,_bitBuffer:t,_gpdEncodation:r}=this,o=Expanded.MethodReg_01100.exec(e),i=o[2];t.putBits("01100");t.putBits("00");wijmo_barcode_1.Utils.sliceString(i,3,e=>{t.put(+e,10)});t.put(+o[4],2);r.encode(o[5]);this._addLength(5)}_encode_01101(){const{text:e,_bitBuffer:t,_gpdEncodation:r}=this,o=Expanded.MethodReg_01101.exec(e),i=o[2];t.putBits("01101");t.putBits("00");wijmo_barcode_1.Utils.sliceString(i,3,e=>{t.put(+e,10)});t.put(+o[4],2);t.put(+o[5],10);r.encode(o[6]);this._addLength(5)}_encode_00(){const{text:e,_bitBuffer:t,_gpdEncodation:r}=this;t.putBits("00");t.putBits("00");r.encode(e);this._addLength(2)}makeDataWidth(){const{_bitBuffer:e,linkage:t}=this;e.putBit(t);this._encode();const r=1+~~((e.length+11)/12),o=e.getGroupedBits(12).map((e,t)=>this._getSubsetWidth(e,!wijmo_barcode_1.Utils.isEven(t)));this.finderPatternSeq=Expanded.getFinderPatternSeq(r);this.symbolContentSize=r;const i=this._getChecksum(o),n=this._getSubsetWidth(i,!0);o.unshift(n);return this._getContent(o)}calculateData(){let e=this.makeDataWidth();e=[...Expanded.Guard,...e,...Expanded.Guard];return wijmo_barcode_1.Utils.toZeroOnePattern(e)}getLinkageSepPattern(e){const t=e.substr(2,e.length-4);let r="";wijmo_barcode_1.Utils.sliceString(t,49,(e,t)=>{const o=this.finderPatternSeq[t],i=Expanded.FinderPattern[o];r+=GS1DataBarBase.makeComplementPattern(e.substr(0,17));if(Expanded.isVersion1Finder(o)){const t=i[0]+i[1]+i[2],o=i[3]+i[4];r+=GS1DataBarBase.makeComplexPattern(e.substr(17,t));r+=GS1DataBarBase.makeComplementPattern(e.substr(17+t,o))}else{const t=i[0]+i[1],o=i[2]+i[3]+i[4];r+=GS1DataBarBase.makeComplementPattern(e.substr(17,t));r+=GS1DataBarBase.makeComplexPattern(e.substr(17+t,o))}49===e.length&&(r+=GS1DataBarBase.makeComplementPattern(e.substr(32,17)))});return"0000"+r.substr(2,r.length-4)+"0000"}getLinkageOffset(e){let t=1;for(;"1"===e[t];)t++;return{linkageOffset:t,symbolOffset:0}}}Expanded.Guard=[1,1];Expanded.Group=[[0,347,0,12,5,7,2,87,4],[348,1387,348,10,7,5,4,52,20],[1388,2947,1388,8,9,4,5,30,52],[2948,3987,2948,6,11,3,6,10,104],[3988,4191,3988,4,13,1,8,1,204]];Expanded.FinderPattern={A1:[1,8,4,1,1],B1:[3,6,4,1,1],C1:[3,4,6,1,1],D1:[3,2,8,1,1],E1:[2,6,5,1,1],F1:[2,2,9,1,1],A2:[1,1,4,8,1],B2:[1,1,4,6,3],C2:[1,1,6,4,3],D2:[1,1,8,2,3],E2:[1,1,5,6,2],F2:[1,1,9,2,2]};Expanded.ChecksumWeight={A1:{right:[1,3,9,27,81,32,96,77]},A2:{left:[20,60,180,118,143,7,21,63],right:[189,145,13,39,117,140,209,205]},B1:{left:[193,157,49,147,19,57,171,91],right:[62,186,136,197,169,85,44,132]},B2:{left:[185,133,188,142,4,12,36,108],right:[113,128,173,97,80,29,87,50]},C1:{left:[150,28,84,41,123,158,52,156],right:[46,138,203,187,139,206,196,166]},C2:{left:[76,17,51,153,37,111,122,155],right:[43,129,176,106,107,110,119,146]},D1:{left:[16,48,144,10,30,90,59,177],right:[109,116,137,200,178,112,125,164]},D2:{left:[70,210,208,202,184,130,179,115],right:[134,191,151,31,93,68,204,190]},E1:{left:[148,22,66,198,172,94,71,2],right:[6,18,54,162,64,192,154,40]},E2:{left:[120,149,25,75,14,42,126,167],right:[79,26,78,23,69,207,199,175]},F1:{left:[103,98,83,38,114,131,182,124],right:[161,61,183,127,170,88,53,159]},F2:{left:[55,165,73,8,24,72,5,15],right:[45,135,194,160,58,174,100,89]}};Expanded.FinderPatternSeq=[["A1","A2"],["A1","B2","B1"],["A1","C2","B1","D2"],["A1","E2","B1","D2","C1"],["A1","E2","B1","D2","D1","F2"],["A1","E2","B1","D2","E1","F2","F1"],["A1","A2","B1","B2","C1","C2","D1","D2"],["A1","A2","B1","B2","C1","C2","D1","E2","E1"],["A1","A2","B1","B2","C1","C2","D1","E2","F1","F2"],["A1","A2","B1","B2","C1","C2","D1","E2","E1","F2","F1"]];Expanded.MethodReg_0100=/^([01])19([0-9]{12})(.)3103([0-9]{6})$/;Expanded.MethodReg_0101=/^([01])19([0-9]{12})(.)320([23])0([0-9]{5})$/;Expanded.MethodReg_0111000_0111111=/^([01])19([0-9]{12})(.)(3[12]0[0-9])0([0-9]{5})(1[1357])([0-9]{6})$/;Expanded.MethodReg_01100=/^([01])19([0-9]{12})(.)392([0-3])(.+)$/;Expanded.MethodReg_01101=/^([01])19([0-9]{12})(.)393([0-3])([0-9]{3})(.+)$/;Expanded.MethodReg_1=/([01])1([0-9]{13})(.)(.*)$/;exports.Expanded=Expanded;class GS1DataBarFirstType extends GS1DataBarBase{constructor(e){super(e);let{encodeConfig:{text:t,hideExtraChecksum:r},hideLinkageText:o,linkageText:i,linkage:n,hideAIText:a}=this;this.label=t;if(t.length<18){t+=this._getCheckDigit(t);r||(this.label=t)}n&&!o&&(this.label+=i);a&&(this.label=this.label.replace(/\(\w*\)/g,""));this.text=t;this.linkageColumnCnt=4}validate(){const{text:e}=this.encodeConfig;if(!/^\(01\)(\d{13}|\d{14})$/.test(e))throw new wijmo_barcode_1.InvalidTextException(e,"Text should be numbers. The length should be 17 or 18.");if(18===e.length){if(this._getCheckDigit(e)!=e[17])throw new wijmo_barcode_1.InvalidTextException(e,"Check digit is invalid.")}}_getCheckDigit(e){let t=wijmo_barcode_1.Utils.str2Array(e.substr(4,13)).reduce((e,t,r)=>{t=+t;return e+=wijmo_barcode_1.Utils.isOdd(r)?t:3*t},0)%10;return 0===t?0:10-t}_getSubsetWidth(e,t){const r=t?GS1DataBarFirstType.Group.InSide:GS1DataBarFirstType.Group.OutSide,o=GS1DataBarBase.getGroup(r,e),i=t?o.oddTotal:o.evenTotal;let n,a;if(t){a=~~((e-o.preTotal)/i);n=(e-o.preTotal)%i}else{n=~~((e-o.preTotal)/i);a=(e-o.preTotal)%i}const s=GS1DataBarBase.getRSSwidths(n,o.oddModules,4,o.oddElements,!t),c=GS1DataBarBase.getRSSwidths(a,o.evenModules,4,o.evenElements,t),d=[];wijmo_barcode_1.Utils.loop(e=>{d.push(s[e]);d.push(c[e])},4);return d}_getFinderPatternWidth(e){const t=GS1DataBarFirstType.FinderPattern[e];let r="";wijmo_barcode_1.Utils.loop(e=>{r+=t[e]},5);return wijmo_barcode_1.Utils.str2Array(r)}_getChecksum({width1:e,width2:t,width3:r,width4:o}){let i=0;i+=GS1DataBarBase.getChecksum(e,GS1DataBarFirstType.ChecksumWeight[0]);i+=GS1DataBarBase.getChecksum(t,GS1DataBarFirstType.ChecksumWeight[1]);i+=GS1DataBarBase.getChecksum(r,GS1DataBarFirstType.ChecksumWeight[2]);i+=GS1DataBarBase.getChecksum(o,GS1DataBarFirstType.ChecksumWeight[3]);(i%=79)>=8&&i++;i>=72&&i++;return i}_getSymbolCharacterWidth(e){const t=~~(e/4537077),r=e%4537077,o=~~(t/1597),i=t%1597,n=~~(r/1597),a=r%1597;return{width1:this._getSubsetWidth(o,!1),width2:this._getSubsetWidth(i,!0),width3:this._getSubsetWidth(n,!1),width4:this._getSubsetWidth(a,!0)}}getSymbolStructure(){const{text:e,linkage:t}=this,r=e.substr(4,13),o=t?+r+1e13:+r,i=this._getSymbolCharacterWidth(o),n=this._getChecksum(i),a=~~(n/9),s=n%9,c=this._getFinderPatternWidth(a),d=this._getFinderPatternWidth(s),{width1:l,width2:u,width3:h,width4:m}=i;return{width1:l,width2:u,width3:h,width4:m,leftFinderPattern:c,rightFinderPattern:d}}getLinkageSepPattern(e){let t="";t+=GS1DataBarBase.makeComplementPattern(e.substr(2,16));t+=GS1DataBarBase.makeComplexPattern(e.substr(18,13));t+=GS1DataBarBase.makeComplementPattern(e.substr(31,34));t+=GS1DataBarBase.makeComplexPattern(e.substr(65,13));return"0000"+(t+=GS1DataBarBase.makeComplementPattern(e.substr(78,16))).substr(2,t.length-2)+"0000"}calculateData(){const{width1:e,width2:t,width3:r,width4:o,leftFinderPattern:i,rightFinderPattern:n}=this.getSymbolStructure(),a=[...e,...i,...t.reverse(),...o,...n.reverse(),...r.reverse()];return GS1DataBarFirstType.LeftGuard+wijmo_barcode_1.Utils.toZeroOnePattern(a)+GS1DataBarFirstType.RightGuard}}GS1DataBarFirstType.LeftGuard="01";GS1DataBarFirstType.RightGuard="01";GS1DataBarFirstType.Group={OutSide:[[0,160,0,12,4,8,1,161,1],[161,960,161,10,6,6,3,80,10],[961,2014,961,8,8,4,5,31,34],[2015,2714,2015,6,10,3,6,10,70],[2715,2840,2715,4,12,1,8,1,126]],InSide:[[0,335,0,5,10,2,7,4,84],[336,1035,336,7,8,4,5,20,35],[1036,1515,1036,9,6,6,3,48,10],[1516,1596,1516,11,4,8,1,81,1]]};GS1DataBarFirstType.ChecksumWeight=[[1,3,9,27,2,6,18,54],[4,12,36,29,8,24,72,58],[16,48,65,37,32,17,51,74],[64,34,23,69,49,68,46,59]];GS1DataBarFirstType.FinderPattern=[[3,8,2,1,1],[3,5,5,1,1],[3,3,7,1,1],[3,1,9,1,1],[2,7,4,1,1],[2,5,6,1,1],[2,3,8,1,1],[1,5,7,1,1],[1,3,9,1,1]];exports.GS1DataBarFirstType=GS1DataBarFirstType;class Limited extends GS1DataBarFirstType{constructor(){super(...arguments);this.linkageColumnCnt=3}_getSubsetWidth(e){const t=GS1DataBarBase.getGroup(Limited.Group,e),r=~~((e-t.preTotal)/t.evenTotal),o=(e-t.preTotal)%t.evenTotal,i=GS1DataBarBase.getRSSwidths(r,t.oddModules,7,t.oddElements,!0),n=GS1DataBarBase.getRSSwidths(o,t.evenModules,7,t.evenElements,!1),a=[];wijmo_barcode_1.Utils.loop(e=>{a.push(i[e]);a.push(n[e])},7);return a}_getChecksum({leftWidth:e,rightWidth:t}){let r=0;r+=GS1DataBarBase.getChecksum(e,Limited.ChecksumWeight[0]);r+=GS1DataBarBase.getChecksum(t,Limited.ChecksumWeight[1]);return r%=89}_getSymbolCharacterWidth(e){const t=~~(e/2013571),r=e%2013571;return{leftWidth:this._getSubsetWidth(t),rightWidth:this._getSubsetWidth(r)}}getLinkageSepPattern(e){e=e.substr(0,e.length-5);const t=GS1DataBarBase.makeComplementPattern(e);return"0000"+t.substr(4,t.length-8)+"0000"}getSymbolStructure(){const{text:e,linkage:t}=this,r=e.substr(4,13),o=t?+r+2015133531096:+r,i=this._getSymbolCharacterWidth(o),n=this._getChecksum(i),a=Limited.ChecksumWidth[n],{leftWidth:s,rightWidth:c}=i;return{leftWidth:s,rightWidth:c,checksumWidth:a}}getLinkageOffset(e,t){let r=e.length-1-5;for(;"1"===e[r];)r--;return{linkageOffset:0,symbolOffset:t-r-1}}calculateData(){const{leftWidth:e,rightWidth:t,checksumWidth:r}=this.getSymbolStructure(),o=[...e,...r,...t];return Limited.LeftGuard+wijmo_barcode_1.Utils.toZeroOnePattern(o)+Limited.RightGuard}}Limited.LeftGuard="01";Limited.RightGuard="0100000";Limited.Group=[[0,183063,0,17,9,6,3,6538,28],[183064,820063,183064,13,13,5,4,875,728],[820064,1000775,820064,9,17,3,6,28,6454],[1000776,1491020,1000776,15,11,5,4,2415,203],[1491021,1979844,1491021,11,15,4,5,203,2408],[1979845,1996938,1979845,19,7,8,1,17094,1],[1996939,2013570,1996939,7,19,1,8,1,16632]];Limited.ChecksumWeight=[[1,3,9,27,81,65,17,51,64,14,42,37,22,66],[20,60,2,6,18,54,73,41,34,13,39,28,84,74]];Limited.ChecksumWidth=[[1,1,1,1,1,1,1,1,1,1,3,3,1,1],[1,1,1,1,1,1,1,1,1,2,3,2,1,1],[1,1,1,1,1,1,1,1,1,3,3,1,1,1],[1,1,1,1,1,1,1,2,1,1,3,2,1,1],[1,1,1,1,1,1,1,2,1,2,3,1,1,1],[1,1,1,1,1,1,1,3,1,1,3,1,1,1],[1,1,1,1,1,2,1,1,1,1,3,2,1,1],[1,1,1,1,1,2,1,1,1,2,3,1,1,1],[1,1,1,1,1,2,1,2,1,1,3,1,1,1],[1,1,1,1,1,3,1,1,1,1,3,1,1,1],[1,1,1,2,1,1,1,1,1,1,3,2,1,1],[1,1,1,2,1,1,1,1,1,2,3,1,1,1],[1,1,1,2,1,1,1,2,1,1,3,1,1,1],[1,1,1,2,1,2,1,1,1,1,3,1,1,1],[1,1,1,3,1,1,1,1,1,1,3,1,1,1],[1,2,1,1,1,1,1,1,1,1,3,2,1,1],[1,2,1,1,1,1,1,1,1,2,3,1,1,1],[1,2,1,1,1,1,1,2,1,1,3,1,1,1],[1,2,1,1,1,2,1,1,1,1,3,1,1,1],[1,2,1,2,1,1,1,1,1,1,3,1,1,1],[1,3,1,1,1,1,1,1,1,1,3,1,1,1],[1,1,1,1,1,1,1,1,2,1,2,3,1,1],[1,1,1,1,1,1,1,1,2,2,2,2,1,1],[1,1,1,1,1,1,1,1,2,3,2,1,1,1],[1,1,1,1,1,1,1,2,2,1,2,2,1,1],[1,1,1,1,1,1,1,2,2,2,2,1,1,1],[1,1,1,1,1,1,1,3,2,1,2,1,1,1],[1,1,1,1,1,2,1,1,2,1,2,2,1,1],[1,1,1,1,1,2,1,1,2,2,2,1,1,1],[1,1,1,1,1,2,1,2,2,1,2,1,1,1],[1,1,1,1,1,3,1,1,2,1,2,1,1,1],[1,1,1,2,1,1,1,1,2,1,2,2,1,1],[1,1,1,2,1,1,1,1,2,2,2,1,1,1],[1,1,1,2,1,1,1,2,2,1,2,1,1,1],[1,1,1,2,1,2,1,1,2,1,2,1,1,1],[1,1,1,3,1,1,1,1,2,1,2,1,1,1],[1,2,1,1,1,1,1,1,2,1,2,2,1,1],[1,2,1,1,1,1,1,1,2,2,2,1,1,1],[1,2,1,1,1,1,1,2,2,1,2,1,1,1],[1,2,1,1,1,2,1,1,2,1,2,1,1,1],[1,2,1,2,1,1,1,1,2,1,2,1,1,1],[1,3,1,1,1,1,1,1,2,1,2,1,1,1],[1,1,1,1,1,1,1,1,3,1,1,3,1,1],[1,1,1,1,1,1,1,1,3,2,1,2,1,1],[1,1,1,1,1,1,1,2,3,1,1,2,1,1],[1,1,1,2,1,1,1,1,3,1,1,2,1,1],[1,2,1,1,1,1,1,1,3,1,1,2,1,1],[1,1,1,1,1,1,2,1,1,1,2,3,1,1],[1,1,1,1,1,1,2,1,1,2,2,2,1,1],[1,1,1,1,1,1,2,1,1,3,2,1,1,1],[1,1,1,1,1,1,2,2,1,1,2,2,1,1],[1,1,1,2,1,1,2,1,1,1,2,2,1,1],[1,1,1,2,1,1,2,1,1,2,2,1,1,1],[1,1,1,2,1,1,2,2,1,1,2,1,1,1],[1,1,1,2,1,2,2,1,1,1,2,1,1,1],[1,1,1,3,1,1,2,1,1,1,2,1,1,1],[1,2,1,1,1,1,2,1,1,1,2,2,1,1],[1,2,1,1,1,1,2,1,1,2,2,1,1,1],[1,2,1,2,1,1,2,1,1,1,2,1,1,1],[1,1,1,1,2,1,1,1,1,1,2,3,1,1],[1,1,1,1,2,1,1,1,1,2,2,2,1,1],[1,1,1,1,2,1,1,1,1,3,2,1,1,1],[1,1,1,1,2,1,1,2,1,1,2,2,1,1],[1,1,1,1,2,1,1,2,1,2,2,1,1,1],[1,1,1,1,2,2,1,1,1,1,2,2,1,1],[1,2,1,1,2,1,1,1,1,1,2,2,1,1],[1,2,1,1,2,1,1,1,1,2,2,1,1,1],[1,2,1,1,2,1,1,2,1,1,2,1,1,1],[1,2,1,1,2,2,1,1,1,1,2,1,1,1],[1,2,1,2,2,1,1,1,1,1,2,1,1,1],[1,3,1,1,2,1,1,1,1,1,2,1,1,1],[1,1,2,1,1,1,1,1,1,1,2,3,1,1],[1,1,2,1,1,1,1,1,1,2,2,2,1,1],[1,1,2,1,1,1,1,1,1,3,2,1,1,1],[1,1,2,1,1,1,1,2,1,1,2,2,1,1],[1,1,2,1,1,1,1,2,1,2,2,1,1,1],[1,1,2,1,1,1,1,3,1,1,2,1,1,1],[1,1,2,1,1,2,1,1,1,1,2,2,1,1],[1,1,2,1,1,2,1,1,1,2,2,1,1,1],[1,1,2,2,1,1,1,1,1,1,2,2,1,1],[2,1,1,1,1,1,1,1,1,2,2,2,1,1],[2,1,1,1,1,1,1,1,1,3,2,1,1,1],[2,1,1,1,1,1,1,2,1,1,2,2,1,1],[2,1,1,1,1,1,1,2,1,2,2,1,1,1],[2,1,1,1,1,1,1,3,1,1,2,1,1,1],[2,1,1,1,1,2,1,1,1,2,2,1,1,1],[2,1,1,1,1,2,1,2,1,1,2,1,1,1],[2,1,1,2,1,1,1,1,1,2,2,1,1,1],[2,1,1,1,1,1,1,1,2,2,1,2,1,1]];exports.Limited=Limited;class StackedBase extends GS1DataBarFirstType{constructor(e){e.merge(StackedBase.DefaultConfig);super(e);this.linkageColumnCnt=2}calculateData(){const{width1:e,width2:t,width3:r,width4:o,leftFinderPattern:i,rightFinderPattern:n}=this.getSymbolStructure();let a=[...e,...i,...t.reverse()],s=[...o,...n.reverse(),...r.reverse()];return{topRow:a=GS1DataBarFirstType.LeftGuard+wijmo_barcode_1.Utils.toZeroOnePattern(a)+StackedBase.RightGuard,bottomRow:s=StackedBase.LeftGuard+wijmo_barcode_1.Utils.toZeroOnePattern(s,!0)+GS1DataBarFirstType.RightGuard,separators:this.getSeparator(a,s)}}getLinkageSepPattern(e){let t="";t+=GS1DataBarBase.makeComplementPattern(e.substr(2,16));t+=GS1DataBarBase.makeComplexPattern(e.substr(18,13));return"0000"+(t+=GS1DataBarBase.makeComplementPattern(e.substr(31,15))).substr(2,t.length-2)+"0000"}convertToShape(e,t){this.linkage?this._convertToShapeForLinkage(e,t):this._convertToShape(e,t)}getLinkageOffset(e){let t=0;for(;"1"===e[t];)t++;return{linkageOffset:++t,symbolOffset:0}}_convertToShapeForLinkage(e,t){let{label:r,encodeConfig:{quietZone:o,isLabelBottom:i,height:n,showLabel:a,fontSizeInUnit:s},config:{ratio:c},style:{textAlign:d,unitValue:l},linkageText:u,config:{linkageVersion:h,linkageHeight:m},linkageColumnCnt:p}=this;const g=h===GS1DataBarBase.LinkageVersion.CCA?new CCA(u,p,l,m):new CCB(u,p,l,m);g.toSymbol();const f=g.getMainArea(),_=this.getLinkageSepPattern(e.topRow);let b=0;r&&a&&(b=s);const w=e.separators.length,C=this.getLinkageOffset(e),x=new wijmo_barcode_1.VerticalLayoutArea,S=new wijmo_barcode_1.LabelArea(50,b,d),B=new wijmo_barcode_1.SymbolArea(50,(n-w)*c),E=new wijmo_barcode_1.SymbolArea(50,(n-w)*(1-c)),D=new wijmo_barcode_1.SymbolArea(50,1);x.setStyle({padding:{top:o.top,right:o.right,bottom:o.bottom,left:o.left}});f.setStyle({margin:{left:C.linkageOffset}});i||x.append(S);x.append(f);x.append(D);x.append(B);const P=[];e.separators.forEach(()=>{const e=new wijmo_barcode_1.SymbolArea(50,1);P.push(e);x.append(e)});x.append(E);i&&x.append(S);if(!t){D.fromPattern(_);B.fromPattern(e.topRow);E.fromPattern(e.bottomRow);P.forEach((t,r)=>{t.fromPattern(e.separators[r])});S.append({text:r});this.shapes=x.toShapes()}this.size=x.getSize()}_convertToShape(e,t){let{label:r,encodeConfig:{quietZone:o,isLabelBottom:i,height:n,showLabel:a,fontSizeInUnit:s},config:{ratio:c},style:{textAlign:d}}=this,l=0;r&&a&&(l=s);const u=e.separators.length,h=new wijmo_barcode_1.VerticalLayoutArea;h.setStyle({padding:{top:o.top,right:o.right,bottom:o.bottom,left:o.left}});const m=new wijmo_barcode_1.LabelArea(50,l,d),p=new wijmo_barcode_1.SymbolArea(50,(n-u)*c),g=new wijmo_barcode_1.SymbolArea(50,(n-u)*(1-c));i||h.append(m);h.append(p);const f=[];e.separators.forEach(()=>{const e=new wijmo_barcode_1.SymbolArea(50,1);f.push(e);h.append(e)});h.append(g);i&&h.append(m);if(!t){m.append({text:r});p.fromPattern(e.topRow);g.fromPattern(e.bottomRow);f.forEach((t,r)=>{t.fromPattern(e.separators[r])});this.shapes=h.toShapes()}this.size=h.getSize()}}StackedBase.DefaultConfig={showLabel:!1,ratio:.4};StackedBase.RightGuard="10";StackedBase.LeftGuard="10";exports.StackedBase=StackedBase;class ExpandedStacked extends Expanded{constructor(e){e.merge(ExpandedStacked.DefaultConfig);super(e);let{config:{rowCount:t}}=this;this.rowCount=t;this._hasExtraPadding=!1;this.linkageColumnCnt=4}_makeStacked(e){const t=this.symbolContentSize;if(!this._hasExtraPadding){const r=~~(e.length/ExpandedStacked.SegmentSize);let o;if("auto"===this.rowCount){let e=2;e>r&&(e=r);o=Math.ceil(r/e);this.rowCount=e}else{let e=this.rowCount;o=Math.ceil(r/e)}if(this.rowCount>11)throw new wijmo_barcode_1.TextTooLongException;const i=t%(2*o);this.rowSegmentCount=o;if(1===i){this._bitBuffer=new wijmo_barcode_1.BitBuffer;this._gpdEncodation=new GS1GeneralPurposeDataEncodation(this._bitBuffer,!0);this._hasExtraPadding=!0;return this.calculateData()}}const r=this.rowSegmentCount,o=Math.ceil(t%(2*r)/2),i=wijmo_barcode_1.Utils.isEven(r),n=r*ExpandedStacked.SegmentSize,a=[];wijmo_barcode_1.Utils.sliceArray(e,n,(e,t)=>{const r=[...Expanded.Guard,...e,...Expanded.Guard];let s;if(wijmo_barcode_1.Utils.isEven(t))s=wijmo_barcode_1.Utils.toZeroOnePattern(r);else if(i)if(e.length<n&&wijmo_barcode_1.Utils.isOdd(o))s="0"+wijmo_barcode_1.Utils.toZeroOnePattern(r);else{r.reverse();s=wijmo_barcode_1.Utils.toZeroOnePattern(r,!0)}else s=wijmo_barcode_1.Utils.toZeroOnePattern(r,!0);a.push({pattern:s,role:"row"})});this.rowCount=a.length;const s=[];let c=1;for(;c<a.length;){const e=a[c-1],t=a[c];s.push(e);const r=this._getSeparators(e.pattern,t.pattern,c-1);s.push(...r);c++}s.push(a[c-1]);return s}_isVersion1Finder(e,t){const r=this.finderPatternSeq[~~((e+1+t)/2)];return["A1","B1","C1","D1","E1","F1"].indexOf(r)>-1}_makeSepPattern(e,t){const r=Math.ceil((e.length-4)/ExpandedStacked.SegmentWidth);e=e.substring(2,e.length-2);let o="",i=0,n=0;for(;i<r;){const r=n,a=n+ExpandedStacked.SegmentWidth;let s=r+17;this._isVersion1Finder(t,i)||(s+=2);o+=GS1DataBarBase.makeComplementPattern(e.substr(r,s-r));o+=GS1DataBarBase.makeComplexPattern(e.substr(s,13));o+=GS1DataBarBase.makeComplementPattern(e.substr(s+13,a-s-13));i++;n=a}return o=o.replace(/^(.){2}|(.){2}$/g,"0000")}_getSeparators(e,t,r){const o=r*((e.length-4)/ExpandedStacked.SegmentWidth);return[{pattern:this._makeSepPattern(e,o)},{pattern:"0000"+StackedBase.makeAlternatePattern(e.length-8,!0)+"0000"},{pattern:this._makeSepPattern(t,o)}]}calculateData(){const e=this.makeDataWidth();return this._makeStacked(e)}getLinkageOffset(e){let t=1;for(;"1"===e[t];)t++;return{linkageOffset:t,symbolOffset:0}}convertToShape(e,t){this.linkage?this._convertToShapeForLinkage(e,t):this._convertToShape(e,t)}_convertToShapeForLinkage(e,t){let{label:r,encodeConfig:{quietZone:o,isLabelBottom:i,height:n,showLabel:a,fontSizeInUnit:s},rowCount:c,style:{textAlign:d,unitValue:l},linkageText:u,config:{linkageVersion:h,linkageHeight:m},linkageColumnCnt:p}=this;const g=h===GS1DataBarBase.LinkageVersion.CCA?new CCA(u,p,l,m):new CCB(u,p,l,m);g.toSymbol();const f=g.getMainArea(),_=this.getLinkageSepPattern(e[0].pattern),b=f.getSize(),w=(n-3*(c-1)-1-b.height)/c,C=e[0].pattern.length;let x=0;r&&a&&(x=s);const S=this.getLinkageOffset(e[0].pattern),B=new wijmo_barcode_1.VerticalLayoutArea,E=new wijmo_barcode_1.SymbolArea(C,1),D=new wijmo_barcode_1.LabelArea(C,x,d);B.setStyle({padding:{top:o.top,right:o.right,bottom:o.bottom,left:o.left}});E.setStyle({margin:{left:S.symbolOffset}});f.setStyle({margin:{left:S.linkageOffset}});i||B.append(D);B.append(f);B.append(E);const P=[];e.forEach(e=>{const t=new wijmo_barcode_1.SymbolArea(C,"row"===e.role?w:1);B.append(t);P.push({area:t,pattern:e.pattern})});i&&B.append(D);if(!t){E.fromPattern(_);D.append({text:r});P.forEach(e=>{e.area.fromPattern(e.pattern)});this.shapes=B.toShapes()}this.size=B.getSize()}_convertToShape(e,t){let{label:r,encodeConfig:{quietZone:o,isLabelBottom:i,height:n,showLabel:a,fontSizeInUnit:s},rowCount:c,style:{textAlign:d}}=this;const l=(n-3*(c-1))/c,u=e[0].pattern.length;let h=0;r&&a&&(h=s);const m=new wijmo_barcode_1.VerticalLayoutArea;m.setStyle({padding:{top:o.top,right:o.right,bottom:o.bottom,left:o.left}});const p=new wijmo_barcode_1.LabelArea(u,h,d);i||m.append(p);const g=[];e.forEach(e=>{const t=new wijmo_barcode_1.SymbolArea(u,"row"===e.role?l:1);m.append(t);g.push({area:t,pattern:e.pattern})});i&&m.append(p);if(!t){p.append({text:r});g.forEach(e=>{e.area.fromPattern(e.pattern)});this.shapes=m.toShapes()}this.size=m.getSize()}}ExpandedStacked.DefaultConfig={rowCount:"auto"};ExpandedStacked.SegmentWidth=49;ExpandedStacked.SegmentSize=21;exports.ExpandedStacked=ExpandedStacked;class StackedOmnidirectional extends StackedBase{getSeparator(e,t){const r=[];let o="0000";o+=GS1DataBarBase.makeComplementPattern(e.substr(4,14));o+=GS1DataBarBase.makeComplexPattern(e.substr(18,13));o+=GS1DataBarBase.makeComplementPattern(e.substr(31,15));o+="0000";r.push(o);o="0000";o+=GS1DataBarBase.makeAlternatePattern(42,!0);o+="0000";r.push(o);o="0000";o+=GS1DataBarBase.makeComplementPattern(t.substr(4,15));o+=GS1DataBarBase.makeComplexPattern(t.substr(19,13));o+=GS1DataBarBase.makeComplementPattern(t.substr(32,14));o+="0000";r.push(o);return r}}exports.StackedOmnidirectional=StackedOmnidirectional;class Stacked extends StackedBase{constructor(e){e.merge(Stacked.DefaultConfig);super(e)}getSeparator(e,t){let r="",o=0;wijmo_barcode_1.Utils.loop(i=>{if(e[i]!==t[i])if(1===o){r+="0";o=0}else{r+="1";o=1}else if("0"===e[i]){r+="1";o=1}else{r+="0";o=0}},{from:4,to:e.length-4});return["0000"+r+"0000"]}}Stacked.DefaultConfig={height:13};exports.Stacked=Stacked;class Omnidirectional extends GS1DataBarFirstType{getLinkageOffset(e,t){let r=e.length-1;for(;"1"===e[r];)r--;return{linkageOffset:0,symbolOffset:t-r-1}}}exports.Omnidirectional=Omnidirectional;class Truncated extends Omnidirectional{constructor(e){e.merge(Truncated.DefaultConfig);super(e)}}Truncated.DefaultConfig={height:13,showLabel:!1};exports.Truncated=Truncated;wijmo_barcode_1.Barcode.registerEncoder("GS1 DataBar Omnidirectional",Omnidirectional);wijmo_barcode_1.Barcode.registerEncoder("GS1 DataBar Truncated",Truncated);wijmo_barcode_1.Barcode.registerEncoder("GS1 DataBar Stacked",Stacked);wijmo_barcode_1.Barcode.registerEncoder("GS1 DataBar StackedOmnidirectional",StackedOmnidirectional);wijmo_barcode_1.Barcode.registerEncoder("GS1 DataBar Limited",Limited);wijmo_barcode_1.Barcode.registerEncoder("GS1 DataBar Expanded",Expanded);wijmo_barcode_1.Barcode.registerEncoder("GS1 DataBar Expanded Stacked",ExpandedStacked);var Gs1DataBarLinkageVersion,MicroPdfCompactionMode,MicroPdfDimensions;!function(e){e[e.Cca=0]="Cca";e[e.Ccb=1]="Ccb"}(Gs1DataBarLinkageVersion=exports.Gs1DataBarLinkageVersion||(exports.Gs1DataBarLinkageVersion={}));!function(e){e[e.Auto=0]="Auto";e[e.Text=1]="Text";e[e.Numeric=2]="Numeric";e[e.Byte=3]="Byte"}(MicroPdfCompactionMode=exports.MicroPdfCompactionMode||(exports.MicroPdfCompactionMode={}));!function(e){e[e.ColumnPriority=0]="ColumnPriority";e[e.RowPriority=1]="RowPriority";e[e.Dim1x11=2]="Dim1x11";e[e.Dim1x14=3]="Dim1x14";e[e.Dim1x17=4]="Dim1x17";e[e.Dim1x20=5]="Dim1x20";e[e.Dim1x24=6]="Dim1x24";e[e.Dim1x28=7]="Dim1x28";e[e.Dim2x8=8]="Dim2x8";e[e.Dim2x11=9]="Dim2x11";e[e.Dim2x14=10]="Dim2x14";e[e.Dim2x17=11]="Dim2x17";e[e.Dim2x20=12]="Dim2x20";e[e.Dim2x23=13]="Dim2x23";e[e.Dim2x26=14]="Dim2x26";e[e.Dim3x6=15]="Dim3x6";e[e.Dim3x8=16]="Dim3x8";e[e.Dim3x10=17]="Dim3x10";e[e.Dim3x12=18]="Dim3x12";e[e.Dim3x15=19]="Dim3x15";e[e.Dim3x20=20]="Dim3x20";e[e.Dim3x26=21]="Dim3x26";e[e.Dim3x32=22]="Dim3x32";e[e.Dim3x38=23]="Dim3x38";e[e.Dim3x44=24]="Dim3x44";e[e.Dim4x4=25]="Dim4x4";e[e.Dim4x6=26]="Dim4x6";e[e.Dim4x8=27]="Dim4x8";e[e.Dim4x10=28]="Dim4x10";e[e.Dim4x12=29]="Dim4x12";e[e.Dim4x15=30]="Dim4x15";e[e.Dim4x20=31]="Dim4x20";e[e.Dim4x26=32]="Dim4x26";e[e.Dim4x32=33]="Dim4x32";e[e.Dim4x38=34]="Dim4x38";e[e.Dim4x44=35]="Dim4x44"}(MicroPdfDimensions=exports.MicroPdfDimensions||(exports.MicroPdfDimensions={}));class _LinkageVersionConvertor{static stringToEnum(e){switch(e){case"CCA":return Gs1DataBarLinkageVersion.Cca;case"CCB":return Gs1DataBarLinkageVersion.Ccb}throw`Unknown Barcode internal linkageVersion '${e}'`}static enumToString(e){return Gs1DataBarLinkageVersion[wijmo_1.asEnum(e,Gs1DataBarLinkageVersion)].toUpperCase()}}exports._LinkageVersionConvertor=_LinkageVersionConvertor;class _CompactionModeConvertor{static stringToEnum(e){switch(e){case"auto":return MicroPdfCompactionMode.Auto;case"text":return MicroPdfCompactionMode.Text;case"numeric":return MicroPdfCompactionMode.Numeric;case"byte":return MicroPdfCompactionMode.Byte}throw`Unknown Barcode internal compactionMode '${e}'`}static enumToString(e){return MicroPdfCompactionMode[wijmo_1.asEnum(e,MicroPdfCompactionMode)].toLowerCase()}}exports._CompactionModeConvertor=_CompactionModeConvertor;function _MicroPdfDimensionsConvertor(e){switch(e){case"ColumnPriority":return"columnPriorAuto";case"RowPriority":return"rowPriorAuto";default:return e.substr("Dim".length).replace("x","*")}}exports._MicroPdfDimensionsConvertor=_MicroPdfDimensionsConvertor;class Gs1DataBarBase extends wijmo_barcode_1.BarcodeBase{constructor(e,t){super(e,t);wijmo_1.addClass(this.hostElement,"wj-barcode-gs1databar")}static _getClassDefaults(){let e=super._getClassDefaults();e.showLabel=!0;return e}get showLabel(){return this._getProp("showLabel")}set showLabel(e){this._setProp("showLabel",e)}get labelPosition(){return wijmo_barcode_1._LabelPositionConvertor.stringToEnum(this._getProp("labelPosition"))}set labelPosition(e){this._setProp("labelPosition",wijmo_barcode_1._LabelPositionConvertor.enumToString(e))}get linkage(){return this._getProp("linkage")}set linkage(e){this._setProp("linkage",e)}get linkageVersion(){return _LinkageVersionConvertor.stringToEnum(this._getProp("linkageVersion"))}set linkageVersion(e){this._setProp("linkageVersion",_LinkageVersionConvertor.enumToString(e))}get linkageHeight(){return this._getProp("linkageHeight")}set linkageHeight(e){this._setProp("linkageHeight",e)}get hideLinkageText(){return this._getProp("hideLinkageText")}set hideLinkageText(e){this._setProp("hideLinkageText",e)}get hideAiText(){return this._getProp("hideAIText")}set hideAiText(e){this._setProp("hideAIText",e)}}exports.Gs1DataBarBase=Gs1DataBarBase;class Gs1DataBarOmnidirectional extends Gs1DataBarBase{constructor(e,t){super(e,t);wijmo_1.addClass(this.hostElement,"wj-barcode-gs1databar-omnidirectional")}}Gs1DataBarOmnidirectional.type="GS1 DataBar Omnidirectional";exports.Gs1DataBarOmnidirectional=Gs1DataBarOmnidirectional;class Gs1DataBarTruncated extends Gs1DataBarBase{constructor(e,t){super(e,t);wijmo_1.addClass(this.hostElement,"wj-barcode-gs1databar-truncated")}}Gs1DataBarTruncated.type="GS1 DataBar Truncated";exports.Gs1DataBarTruncated=Gs1DataBarTruncated;class Gs1DataBarStacked extends Gs1DataBarBase{constructor(e,t){super(e,t);wijmo_1.addClass(this.hostElement,"wj-barcode-gs1databar-stacked")}get ratio(){return this._getProp("ratio")}set ratio(e){this._setProp("ratio",e)}}Gs1DataBarStacked.type="GS1 DataBar Stacked";exports.Gs1DataBarStacked=Gs1DataBarStacked;class Gs1DataBarStackedOmnidirectional extends Gs1DataBarBase{constructor(e,t){super(e,t);wijmo_1.addClass(this.hostElement,"wj-barcode-gs1databar-stacked-omnidirectional")}get ratio(){return this._getProp("ratio")}set ratio(e){this._setProp("ratio",e)}}Gs1DataBarStackedOmnidirectional.type="GS1 DataBar StackedOmnidirectional";exports.Gs1DataBarStackedOmnidirectional=Gs1DataBarStackedOmnidirectional;class Gs1DataBarLimited extends Gs1DataBarBase{constructor(e,t){super(e,t);wijmo_1.addClass(this.hostElement,"wj-barcode-gs1databar-limited")}}Gs1DataBarLimited.type="GS1 DataBar Limited";exports.Gs1DataBarLimited=Gs1DataBarLimited;class Gs1DataBarExpanded extends Gs1DataBarBase{constructor(e,t){super(e);wijmo_1.addClass(this.hostElement,"wj-barcode-gs1databar-expanded");this._setAw(!0);this.initialize(t)}get autoWidth(){return this._getAw()}set autoWidth(e){this._setAw(e)}get autoWidthZoom(){return this._getWzoom()}set autoWidthZoom(e){this._setWzoom(e)}}Gs1DataBarExpanded.type="GS1 DataBar Expanded";exports.Gs1DataBarExpanded=Gs1DataBarExpanded;class Gs1DataBarExpandedStacked extends Gs1DataBarBase{constructor(e,t){super(e);wijmo_1.addClass(this.hostElement,"wj-barcode-gs1databar-expanded-stacked");this._setAw(!0);this.initialize(t)}get autoWidth(){return this._getAw()}set autoWidth(e){this._setAw(e)}get autoWidthZoom(){return this._getWzoom()}set autoWidthZoom(e){this._setWzoom(e)}get rowCount(){let e=this._getProp("rowCount");return"auto"===e?null:e}set rowCount(e){this._setProp("rowCount",null==e?"auto":e)}}Gs1DataBarExpandedStacked.type="GS1 DataBar Expanded Stacked";exports.Gs1DataBarExpandedStacked=Gs1DataBarExpandedStacked;class Pdf417 extends wijmo_barcode_1.BarcodeBase{constructor(e,t){super(e);wijmo_1.addClass(this.hostElement,"wj-barcode-pdf417");this._setAw(!0);this.initialize(t)}get autoWidth(){return this._getAw()}set autoWidth(e){this._setAw(e)}get autoWidthZoom(){return this._getWzoom()}set autoWidthZoom(e){this._setWzoom(e)}get errorCorrectionLevel(){let e=this._getProp("errorCorrectionLevel");return"auto"===e?null:e}set errorCorrectionLevel(e){this._setProp("errorCorrectionLevel",null==e?"auto":e)}get columns(){let e=this._getProp("columns");return"auto"===e?null:e}set columns(e){this._setProp("columns",null==e?"auto":e)}get rows(){let e=this._getProp("rows");return"auto"===e?null:e}set rows(e){this._setProp("rows",null==e?"auto":e)}get compact(){return this._getProp("compact")}set compact(e){this._setProp("compact",e)}}Pdf417.type="PDF417";exports.Pdf417=Pdf417;class MicroPdf417 extends wijmo_barcode_1.BarcodeBase{constructor(e,t){MicroPdf417._getEnumDictionary();super(e,t);wijmo_1.addClass(this.hostElement,"wj-barcode-micropdf417")}static _getEnumDictionary(){MicroPdf417._dimensionsDictionary||(MicroPdf417._dimensionsDictionary=new wijmo_barcode_1._EnumDictionary(MicroPdfDimensions,_MicroPdfDimensionsConvertor))}get dimensions(){return MicroPdf417._dimensionsDictionary.getEnumByString(this._getProp("symbolVersion"))}set dimensions(e){this._setProp("symbolVersion",MicroPdf417._dimensionsDictionary.getStringByEnum(e))}get compactionMode(){return _CompactionModeConvertor.stringToEnum(this._getProp("compactionMode"))}set compactionMode(e){this._setProp("compactionMode",_CompactionModeConvertor.enumToString(e))}get structuredAppend(){return this._getProp("structuredAppend")}set structuredAppend(e){this._setProp("structuredAppend",e)}get segmentIndex(){return this._getProp("segmentIndex")}set segmentIndex(e){this._setProp("segmentIndex",e)}get fileId(){return this._getProp("fileID")}set fileId(e){this._setProp("fileID",e)}get optionalFields(){return this._getProp("optionalFields")}set optionalFields(e){this._setProp("optionalFields",e)}}MicroPdf417.type="MicroPDF417";exports.MicroPdf417=MicroPdf417;wijmo_1._registerModule("wijmo.barcode.composite",selfModule);
|