docx 8.2.0 → 8.2.2
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/README.md +0 -3
- package/build/export/formatter.spec.d.ts +1 -0
- package/build/export/packer/image-replacer.spec.d.ts +1 -0
- package/build/export/packer/next-compiler.spec.d.ts +1 -0
- package/build/export/packer/packer.spec.d.ts +1 -0
- package/build/file/border/border.spec.d.ts +1 -0
- package/build/file/checkbox/checkbox-util.spec.d.ts +1 -0
- package/build/file/checkbox/checkbox.spec.d.ts +1 -0
- package/build/file/content-types/content-types.spec.d.ts +1 -0
- package/build/file/core-properties/properties.spec.d.ts +1 -0
- package/build/file/custom-properties/custom-properties.spec.d.ts +1 -0
- package/build/file/document/body/body.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/columns.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/doc-grid.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/header-footer-reference.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-borders.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-size.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/page-text-direction.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/properties/section-type.spec.d.ts +1 -0
- package/build/file/document/body/section-properties/section-properties.spec.d.ts +1 -0
- package/build/file/document/document-background/document-background.spec.d.ts +1 -0
- package/build/file/document/document.spec.d.ts +1 -0
- package/build/file/document-wrapper.spec.d.ts +1 -0
- package/build/file/drawing/anchor/anchor.spec.d.ts +1 -0
- package/build/file/drawing/doc-properties/doc-properties-children.spec.d.ts +1 -0
- package/build/file/drawing/drawing.spec.d.ts +1 -0
- package/build/file/drawing/floating/align.spec.d.ts +1 -0
- package/build/file/drawing/floating/horizontal-position.spec.d.ts +1 -0
- package/build/file/drawing/floating/position-offset.spec.d.ts +1 -0
- package/build/file/drawing/floating/simple-pos.spec.d.ts +1 -0
- package/build/file/drawing/floating/vertical-position.spec.d.ts +1 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/form.spec.d.ts +1 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.d.ts +4 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/no-fill.spec.d.ts +1 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.d.ts +4 -0
- package/build/file/drawing/inline/graphic/graphic-data/pic/shape-properties/outline/outline.spec.d.ts +1 -0
- package/build/file/file.spec.d.ts +1 -0
- package/build/file/footer/footer.spec.d.ts +1 -0
- package/build/file/footer/index.d.ts +1 -0
- package/build/file/footer-wrapper.spec.d.ts +1 -0
- package/build/file/footnotes/footnote/footnote.spec.d.ts +1 -0
- package/build/file/footnotes-wrapper.spec.d.ts +1 -0
- package/build/file/header/header.spec.d.ts +1 -0
- package/build/file/header/index.d.ts +1 -0
- package/build/file/header-wrapper.spec.d.ts +1 -0
- package/build/file/media/media.spec.d.ts +1 -0
- package/build/file/numbering/abstract-numbering.spec.d.ts +1 -0
- package/build/file/numbering/concrete-numbering.spec.d.ts +1 -0
- package/build/file/numbering/level.spec.d.ts +1 -0
- package/build/file/numbering/numbering.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/alignment.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/border.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/break.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/indent.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/spacing.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/style.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/tab-stop.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/unordered-list.spec.d.ts +1 -0
- package/build/file/paragraph/formatting/width.d.ts +0 -0
- package/build/file/paragraph/formatting/word-wrap.spec.d.ts +1 -0
- package/build/file/paragraph/frame/frame-properties.spec.d.ts +1 -0
- package/build/file/paragraph/links/bookmark.spec.d.ts +1 -0
- package/build/file/paragraph/links/hyperlink.spec.d.ts +1 -0
- package/build/file/paragraph/links/outline-level.spec.d.ts +1 -0
- package/build/file/paragraph/links/pageref-field-instruction.spec.d.ts +1 -0
- package/build/file/paragraph/links/pageref.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-angled-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-beginning-character.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-bracket-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-curly-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-ending-character.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-round-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/brackets/math-square-brackets.spec.d.ts +1 -0
- package/build/file/paragraph/math/fraction/math-denominator.spec.d.ts +1 -0
- package/build/file/paragraph/math/fraction/math-fraction.spec.d.ts +1 -0
- package/build/file/paragraph/math/fraction/math-numerator.spec.d.ts +1 -0
- package/build/file/paragraph/math/function/math-function-name.spec.d.ts +1 -0
- package/build/file/paragraph/math/function/math-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/function/math-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/math-run.spec.d.ts +1 -0
- package/build/file/paragraph/math/math-text.spec.d.ts +1 -0
- package/build/file/paragraph/math/math.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-accent-character.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-base.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-integral.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-limit-location.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-n-ary-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-sub-script-hide.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-sub-script.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-sum.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-super-script-hide.spec.d.ts +1 -0
- package/build/file/paragraph/math/n-ary/math-super-script.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-degree-hide.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-degree.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-radical-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/radical/math-radical.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/pre-sub-super-script/math-pre-sub-super-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-script/math-sub-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/sub-super-script/math-sub-super-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/super-script/math-super-script-function-properties.spec.d.ts +1 -0
- package/build/file/paragraph/math/script/super-script/math-super-script-function.spec.d.ts +1 -0
- package/build/file/paragraph/paragraph.spec.d.ts +1 -0
- package/build/file/paragraph/properties.spec.d.ts +1 -0
- package/build/file/paragraph/run/break.spec.d.ts +1 -0
- package/build/file/paragraph/run/comment-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/emphasis-mark.spec.d.ts +1 -0
- package/build/file/paragraph/run/empty-children.spec.d.ts +1 -0
- package/build/file/paragraph/run/formatting.spec.d.ts +1 -0
- package/build/file/paragraph/run/image-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/language.spec.d.ts +1 -0
- package/build/file/paragraph/run/page-number.spec.d.ts +1 -0
- package/build/file/paragraph/run/positional-tab.spec.d.ts +1 -0
- package/build/file/paragraph/run/run-components/symbol.spec.d.ts +1 -0
- package/build/file/paragraph/run/run-components/text.spec.d.ts +1 -0
- package/build/file/paragraph/run/run-fonts.spec.d.ts +1 -0
- package/build/file/paragraph/run/run.spec.d.ts +1 -0
- package/build/file/paragraph/run/script.spec.d.ts +1 -0
- package/build/file/paragraph/run/sequential-identifier.spec.d.ts +1 -0
- package/build/file/paragraph/run/simple-field.spec.d.ts +1 -0
- package/build/file/paragraph/run/symbol-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/text-run.spec.d.ts +1 -0
- package/build/file/paragraph/run/underline.spec.d.ts +1 -0
- package/build/file/relationships/relationships.spec.d.ts +1 -0
- package/build/file/settings/compatibility-setting/compatibility-setting.spec.d.ts +1 -0
- package/build/file/settings/compatibility.spec.d.ts +1 -0
- package/build/file/settings/settings.spec.d.ts +1 -0
- package/build/file/shading/shading.spec.d.ts +1 -0
- package/build/file/styles/defaults/document-defaults.spec.d.ts +1 -0
- package/build/file/styles/external-styles-factory.spec.d.ts +1 -0
- package/build/file/styles/latent-styles/exceptions.d.ts +20 -0
- package/build/file/styles/latent-styles/exceptions.spec.d.ts +1 -0
- package/build/file/styles/latent-styles/index.d.ts +1 -0
- package/build/file/styles/latent-styles/latent-styles.d.ts +5 -0
- package/build/file/styles/latent-styles/latent-styles.spec.d.ts +1 -0
- package/build/file/styles/sample/default-style.d.ts +1 -0
- package/build/file/styles/sample/default-style.spec.d.ts +1 -0
- package/build/file/styles/sample/index.d.ts +1 -0
- package/build/file/styles/style/character-style.spec.d.ts +1 -0
- package/build/file/styles/style/components.spec.d.ts +1 -0
- package/build/file/styles/style/default-styles.spec.d.ts +1 -0
- package/build/file/styles/style/paragraph-style.spec.d.ts +1 -0
- package/build/file/styles/style/style.spec.d.ts +1 -0
- package/build/file/styles/styles.spec.d.ts +1 -0
- package/build/file/table/grid.spec.d.ts +1 -0
- package/build/file/table/table-cell/table-cell-properties.spec.d.ts +1 -0
- package/build/file/table/table-cell/table-cell.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-borders.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-cell-margin.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-float-properties.spec.d.ts +1 -0
- package/build/file/table/table-properties/table-properties.spec.d.ts +1 -0
- package/build/file/table/table-row/table-row-properties.spec.d.ts +1 -0
- package/build/file/table/table-row/table-row.spec.d.ts +1 -0
- package/build/file/table/table.spec.d.ts +1 -0
- package/build/file/table-of-contents/table-of-contents.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/deleted-page-number.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/deleted-text-run.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/deleted-text.spec.d.ts +1 -0
- package/build/file/track-revision/track-revision-components/inserted-text-run.spec.d.ts +1 -0
- package/build/file/xml-components/attribute.spec.d.ts +1 -0
- package/build/file/xml-components/imported-xml-component.spec.d.ts +1 -0
- package/build/file/xml-components/simple-elements.spec.d.ts +1 -0
- package/build/file/xml-components/xml-component.spec.d.ts +1 -0
- package/build/index.cjs +1002 -1002
- package/build/index.iife.js +1002 -1002
- package/build/index.js +1002 -1002
- package/build/index.spec.d.ts +1 -0
- package/build/{index.umd.cjs → index.umd.js} +1002 -1002
- package/build/patcher/content-types-manager.spec.d.ts +1 -0
- package/build/patcher/from-docx.d.ts +1 -1
- package/build/patcher/from-docx.spec.d.ts +1 -0
- package/build/patcher/paragraph-split-inject.spec.d.ts +1 -0
- package/build/patcher/paragraph-token-replacer.spec.d.ts +1 -0
- package/build/patcher/relationship-manager.spec.d.ts +1 -0
- package/build/patcher/replacer.spec.d.ts +1 -0
- package/build/patcher/run-renderer.spec.d.ts +1 -0
- package/build/patcher/traverser.spec.d.ts +1 -0
- package/build/patcher/util.spec.d.ts +1 -0
- package/build/tests/utility.d.ts +3 -0
- package/build/util/convenience-functions.spec.d.ts +1 -0
- package/build/util/values.spec.d.ts +1 -0
- package/package.json +7 -11
package/build/index.iife.js
CHANGED
|
@@ -112,448 +112,843 @@ var __publicField = (obj, key, value) => {
|
|
|
112
112
|
function getDefaultExportFromCjs(x) {
|
|
113
113
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
114
114
|
}
|
|
115
|
-
var
|
|
116
|
-
var
|
|
117
|
-
var
|
|
118
|
-
function
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
115
|
+
var sax$1 = {};
|
|
116
|
+
var events = { exports: {} };
|
|
117
|
+
var R = typeof Reflect === "object" ? Reflect : null;
|
|
118
|
+
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
119
|
+
return Function.prototype.apply.call(target, receiver, args);
|
|
120
|
+
};
|
|
121
|
+
var ReflectOwnKeys;
|
|
122
|
+
if (R && typeof R.ownKeys === "function") {
|
|
123
|
+
ReflectOwnKeys = R.ownKeys;
|
|
124
|
+
} else if (Object.getOwnPropertySymbols) {
|
|
125
|
+
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
126
|
+
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
127
|
+
};
|
|
128
|
+
} else {
|
|
129
|
+
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
130
|
+
return Object.getOwnPropertyNames(target);
|
|
131
|
+
};
|
|
132
|
+
}
|
|
133
|
+
function ProcessEmitWarning(warning) {
|
|
134
|
+
if (console && console.warn)
|
|
135
|
+
console.warn(warning);
|
|
136
|
+
}
|
|
137
|
+
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
138
|
+
return value !== value;
|
|
139
|
+
};
|
|
140
|
+
function EventEmitter() {
|
|
141
|
+
EventEmitter.init.call(this);
|
|
142
|
+
}
|
|
143
|
+
events.exports = EventEmitter;
|
|
144
|
+
events.exports.once = once;
|
|
145
|
+
EventEmitter.EventEmitter = EventEmitter;
|
|
146
|
+
EventEmitter.prototype._events = void 0;
|
|
147
|
+
EventEmitter.prototype._eventsCount = 0;
|
|
148
|
+
EventEmitter.prototype._maxListeners = void 0;
|
|
149
|
+
var defaultMaxListeners = 10;
|
|
150
|
+
function checkListener(listener) {
|
|
151
|
+
if (typeof listener !== "function") {
|
|
152
|
+
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
132
153
|
}
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
154
|
+
}
|
|
155
|
+
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
156
|
+
enumerable: true,
|
|
157
|
+
get: function() {
|
|
158
|
+
return defaultMaxListeners;
|
|
159
|
+
},
|
|
160
|
+
set: function(arg) {
|
|
161
|
+
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
162
|
+
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
139
163
|
}
|
|
140
|
-
|
|
141
|
-
if (validLen === -1)
|
|
142
|
-
validLen = len2;
|
|
143
|
-
var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
|
|
144
|
-
return [validLen, placeHoldersLen];
|
|
164
|
+
defaultMaxListeners = arg;
|
|
145
165
|
}
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
166
|
+
});
|
|
167
|
+
EventEmitter.init = function() {
|
|
168
|
+
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
169
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
170
|
+
this._eventsCount = 0;
|
|
151
171
|
}
|
|
152
|
-
|
|
153
|
-
|
|
172
|
+
this._maxListeners = this._maxListeners || void 0;
|
|
173
|
+
};
|
|
174
|
+
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
175
|
+
if (typeof n !== "number" || n < 0 || NumberIsNaN(n)) {
|
|
176
|
+
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + ".");
|
|
154
177
|
}
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
+
this._maxListeners = n;
|
|
179
|
+
return this;
|
|
180
|
+
};
|
|
181
|
+
function _getMaxListeners(that) {
|
|
182
|
+
if (that._maxListeners === void 0)
|
|
183
|
+
return EventEmitter.defaultMaxListeners;
|
|
184
|
+
return that._maxListeners;
|
|
185
|
+
}
|
|
186
|
+
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
187
|
+
return _getMaxListeners(this);
|
|
188
|
+
};
|
|
189
|
+
EventEmitter.prototype.emit = function emit(type) {
|
|
190
|
+
var args = [];
|
|
191
|
+
for (var i = 1; i < arguments.length; i++)
|
|
192
|
+
args.push(arguments[i]);
|
|
193
|
+
var doError = type === "error";
|
|
194
|
+
var events2 = this._events;
|
|
195
|
+
if (events2 !== void 0)
|
|
196
|
+
doError = doError && events2.error === void 0;
|
|
197
|
+
else if (!doError)
|
|
198
|
+
return false;
|
|
199
|
+
if (doError) {
|
|
200
|
+
var er;
|
|
201
|
+
if (args.length > 0)
|
|
202
|
+
er = args[0];
|
|
203
|
+
if (er instanceof Error) {
|
|
204
|
+
throw er;
|
|
178
205
|
}
|
|
179
|
-
|
|
206
|
+
var err = new Error("Unhandled error." + (er ? " (" + er.message + ")" : ""));
|
|
207
|
+
err.context = er;
|
|
208
|
+
throw err;
|
|
180
209
|
}
|
|
181
|
-
|
|
182
|
-
|
|
210
|
+
var handler = events2[type];
|
|
211
|
+
if (handler === void 0)
|
|
212
|
+
return false;
|
|
213
|
+
if (typeof handler === "function") {
|
|
214
|
+
ReflectApply(handler, this, args);
|
|
215
|
+
} else {
|
|
216
|
+
var len = handler.length;
|
|
217
|
+
var listeners = arrayClone(handler, len);
|
|
218
|
+
for (var i = 0; i < len; ++i)
|
|
219
|
+
ReflectApply(listeners[i], this, args);
|
|
183
220
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
221
|
+
return true;
|
|
222
|
+
};
|
|
223
|
+
function _addListener(target, type, listener, prepend) {
|
|
224
|
+
var m;
|
|
225
|
+
var events2;
|
|
226
|
+
var existing;
|
|
227
|
+
checkListener(listener);
|
|
228
|
+
events2 = target._events;
|
|
229
|
+
if (events2 === void 0) {
|
|
230
|
+
events2 = target._events = /* @__PURE__ */ Object.create(null);
|
|
231
|
+
target._eventsCount = 0;
|
|
232
|
+
} else {
|
|
233
|
+
if (events2.newListener !== void 0) {
|
|
234
|
+
target.emit(
|
|
235
|
+
"newListener",
|
|
236
|
+
type,
|
|
237
|
+
listener.listener ? listener.listener : listener
|
|
238
|
+
);
|
|
239
|
+
events2 = target._events;
|
|
190
240
|
}
|
|
191
|
-
|
|
241
|
+
existing = events2[type];
|
|
192
242
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
243
|
+
if (existing === void 0) {
|
|
244
|
+
existing = events2[type] = listener;
|
|
245
|
+
++target._eventsCount;
|
|
246
|
+
} else {
|
|
247
|
+
if (typeof existing === "function") {
|
|
248
|
+
existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
|
|
249
|
+
} else if (prepend) {
|
|
250
|
+
existing.unshift(listener);
|
|
251
|
+
} else {
|
|
252
|
+
existing.push(listener);
|
|
201
253
|
}
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
);
|
|
254
|
+
m = _getMaxListeners(target);
|
|
255
|
+
if (m > 0 && existing.length > m && !existing.warned) {
|
|
256
|
+
existing.warned = true;
|
|
257
|
+
var w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
258
|
+
w.name = "MaxListenersExceededWarning";
|
|
259
|
+
w.emitter = target;
|
|
260
|
+
w.type = type;
|
|
261
|
+
w.count = existing.length;
|
|
262
|
+
ProcessEmitWarning(w);
|
|
212
263
|
}
|
|
213
|
-
return parts.join("");
|
|
214
264
|
}
|
|
215
|
-
return
|
|
265
|
+
return target;
|
|
216
266
|
}
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
267
|
+
EventEmitter.prototype.addListener = function addListener(type, listener) {
|
|
268
|
+
return _addListener(this, type, listener, false);
|
|
269
|
+
};
|
|
270
|
+
EventEmitter.prototype.on = EventEmitter.prototype.addListener;
|
|
271
|
+
EventEmitter.prototype.prependListener = function prependListener(type, listener) {
|
|
272
|
+
return _addListener(this, type, listener, true);
|
|
273
|
+
};
|
|
274
|
+
function onceWrapper() {
|
|
275
|
+
if (!this.fired) {
|
|
276
|
+
this.target.removeListener(this.type, this.wrapFn);
|
|
277
|
+
this.fired = true;
|
|
278
|
+
if (arguments.length === 0)
|
|
279
|
+
return this.listener.call(this.target);
|
|
280
|
+
return this.listener.apply(this.target, arguments);
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
function _onceWrap(target, type, listener) {
|
|
284
|
+
var state2 = { fired: false, wrapFn: void 0, target, type, listener };
|
|
285
|
+
var wrapped = onceWrapper.bind(state2);
|
|
286
|
+
wrapped.listener = listener;
|
|
287
|
+
state2.wrapFn = wrapped;
|
|
288
|
+
return wrapped;
|
|
289
|
+
}
|
|
290
|
+
EventEmitter.prototype.once = function once2(type, listener) {
|
|
291
|
+
checkListener(listener);
|
|
292
|
+
this.on(type, _onceWrap(this, type, listener));
|
|
293
|
+
return this;
|
|
294
|
+
};
|
|
295
|
+
EventEmitter.prototype.prependOnceListener = function prependOnceListener(type, listener) {
|
|
296
|
+
checkListener(listener);
|
|
297
|
+
this.prependListener(type, _onceWrap(this, type, listener));
|
|
298
|
+
return this;
|
|
299
|
+
};
|
|
300
|
+
EventEmitter.prototype.removeListener = function removeListener(type, listener) {
|
|
301
|
+
var list, events2, position, i, originalListener;
|
|
302
|
+
checkListener(listener);
|
|
303
|
+
events2 = this._events;
|
|
304
|
+
if (events2 === void 0)
|
|
305
|
+
return this;
|
|
306
|
+
list = events2[type];
|
|
307
|
+
if (list === void 0)
|
|
308
|
+
return this;
|
|
309
|
+
if (list === listener || list.listener === listener) {
|
|
310
|
+
if (--this._eventsCount === 0)
|
|
311
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
312
|
+
else {
|
|
313
|
+
delete events2[type];
|
|
314
|
+
if (events2.removeListener)
|
|
315
|
+
this.emit("removeListener", type, list.listener || listener);
|
|
251
316
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
|
|
260
|
-
var i = isLE ? 0 : nBytes - 1;
|
|
261
|
-
var d = isLE ? 1 : -1;
|
|
262
|
-
var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
|
|
263
|
-
value = Math.abs(value);
|
|
264
|
-
if (isNaN(value) || value === Infinity) {
|
|
265
|
-
m = isNaN(value) ? 1 : 0;
|
|
266
|
-
e = eMax;
|
|
267
|
-
} else {
|
|
268
|
-
e = Math.floor(Math.log(value) / Math.LN2);
|
|
269
|
-
if (value * (c = Math.pow(2, -e)) < 1) {
|
|
270
|
-
e--;
|
|
271
|
-
c *= 2;
|
|
272
|
-
}
|
|
273
|
-
if (e + eBias >= 1) {
|
|
274
|
-
value += rt / c;
|
|
275
|
-
} else {
|
|
276
|
-
value += rt * Math.pow(2, 1 - eBias);
|
|
277
|
-
}
|
|
278
|
-
if (value * c >= 2) {
|
|
279
|
-
e++;
|
|
280
|
-
c /= 2;
|
|
281
|
-
}
|
|
282
|
-
if (e + eBias >= eMax) {
|
|
283
|
-
m = 0;
|
|
284
|
-
e = eMax;
|
|
285
|
-
} else if (e + eBias >= 1) {
|
|
286
|
-
m = (value * c - 1) * Math.pow(2, mLen);
|
|
287
|
-
e = e + eBias;
|
|
288
|
-
} else {
|
|
289
|
-
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
|
|
290
|
-
e = 0;
|
|
317
|
+
} else if (typeof list !== "function") {
|
|
318
|
+
position = -1;
|
|
319
|
+
for (i = list.length - 1; i >= 0; i--) {
|
|
320
|
+
if (list[i] === listener || list[i].listener === listener) {
|
|
321
|
+
originalListener = list[i].listener;
|
|
322
|
+
position = i;
|
|
323
|
+
break;
|
|
291
324
|
}
|
|
292
325
|
}
|
|
293
|
-
|
|
326
|
+
if (position < 0)
|
|
327
|
+
return this;
|
|
328
|
+
if (position === 0)
|
|
329
|
+
list.shift();
|
|
330
|
+
else {
|
|
331
|
+
spliceOne(list, position);
|
|
294
332
|
}
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
333
|
+
if (list.length === 1)
|
|
334
|
+
events2[type] = list[0];
|
|
335
|
+
if (events2.removeListener !== void 0)
|
|
336
|
+
this.emit("removeListener", type, originalListener || listener);
|
|
337
|
+
}
|
|
338
|
+
return this;
|
|
339
|
+
};
|
|
340
|
+
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
|
341
|
+
EventEmitter.prototype.removeAllListeners = function removeAllListeners(type) {
|
|
342
|
+
var listeners, events2, i;
|
|
343
|
+
events2 = this._events;
|
|
344
|
+
if (events2 === void 0)
|
|
345
|
+
return this;
|
|
346
|
+
if (events2.removeListener === void 0) {
|
|
347
|
+
if (arguments.length === 0) {
|
|
348
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
349
|
+
this._eventsCount = 0;
|
|
350
|
+
} else if (events2[type] !== void 0) {
|
|
351
|
+
if (--this._eventsCount === 0)
|
|
352
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
353
|
+
else
|
|
354
|
+
delete events2[type];
|
|
298
355
|
}
|
|
299
|
-
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
var hasRequiredBuffer;
|
|
310
|
-
function requireBuffer() {
|
|
311
|
-
if (hasRequiredBuffer)
|
|
312
|
-
return buffer;
|
|
313
|
-
hasRequiredBuffer = 1;
|
|
314
|
-
(function(exports2) {
|
|
315
|
-
var base64 = requireBase64Js();
|
|
316
|
-
var ieee7542 = requireIeee754();
|
|
317
|
-
var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
|
|
318
|
-
exports2.Buffer = Buffer2;
|
|
319
|
-
exports2.SlowBuffer = SlowBuffer;
|
|
320
|
-
exports2.INSPECT_MAX_BYTES = 50;
|
|
321
|
-
var K_MAX_LENGTH = 2147483647;
|
|
322
|
-
exports2.kMaxLength = K_MAX_LENGTH;
|
|
323
|
-
Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport();
|
|
324
|
-
if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
|
|
325
|
-
console.error(
|
|
326
|
-
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
327
|
-
);
|
|
356
|
+
return this;
|
|
357
|
+
}
|
|
358
|
+
if (arguments.length === 0) {
|
|
359
|
+
var keys = Object.keys(events2);
|
|
360
|
+
var key;
|
|
361
|
+
for (i = 0; i < keys.length; ++i) {
|
|
362
|
+
key = keys[i];
|
|
363
|
+
if (key === "removeListener")
|
|
364
|
+
continue;
|
|
365
|
+
this.removeAllListeners(key);
|
|
328
366
|
}
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
}
|
|
367
|
+
this.removeAllListeners("removeListener");
|
|
368
|
+
this._events = /* @__PURE__ */ Object.create(null);
|
|
369
|
+
this._eventsCount = 0;
|
|
370
|
+
return this;
|
|
371
|
+
}
|
|
372
|
+
listeners = events2[type];
|
|
373
|
+
if (typeof listeners === "function") {
|
|
374
|
+
this.removeListener(type, listeners);
|
|
375
|
+
} else if (listeners !== void 0) {
|
|
376
|
+
for (i = listeners.length - 1; i >= 0; i--) {
|
|
377
|
+
this.removeListener(type, listeners[i]);
|
|
341
378
|
}
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
379
|
+
}
|
|
380
|
+
return this;
|
|
381
|
+
};
|
|
382
|
+
function _listeners(target, type, unwrap) {
|
|
383
|
+
var events2 = target._events;
|
|
384
|
+
if (events2 === void 0)
|
|
385
|
+
return [];
|
|
386
|
+
var evlistener = events2[type];
|
|
387
|
+
if (evlistener === void 0)
|
|
388
|
+
return [];
|
|
389
|
+
if (typeof evlistener === "function")
|
|
390
|
+
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
|
391
|
+
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
392
|
+
}
|
|
393
|
+
EventEmitter.prototype.listeners = function listeners(type) {
|
|
394
|
+
return _listeners(this, type, true);
|
|
395
|
+
};
|
|
396
|
+
EventEmitter.prototype.rawListeners = function rawListeners(type) {
|
|
397
|
+
return _listeners(this, type, false);
|
|
398
|
+
};
|
|
399
|
+
EventEmitter.listenerCount = function(emitter, type) {
|
|
400
|
+
if (typeof emitter.listenerCount === "function") {
|
|
401
|
+
return emitter.listenerCount(type);
|
|
402
|
+
} else {
|
|
403
|
+
return listenerCount.call(emitter, type);
|
|
404
|
+
}
|
|
405
|
+
};
|
|
406
|
+
EventEmitter.prototype.listenerCount = listenerCount;
|
|
407
|
+
function listenerCount(type) {
|
|
408
|
+
var events2 = this._events;
|
|
409
|
+
if (events2 !== void 0) {
|
|
410
|
+
var evlistener = events2[type];
|
|
411
|
+
if (typeof evlistener === "function") {
|
|
412
|
+
return 1;
|
|
413
|
+
} else if (evlistener !== void 0) {
|
|
414
|
+
return evlistener.length;
|
|
365
415
|
}
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
416
|
+
}
|
|
417
|
+
return 0;
|
|
418
|
+
}
|
|
419
|
+
EventEmitter.prototype.eventNames = function eventNames() {
|
|
420
|
+
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
421
|
+
};
|
|
422
|
+
function arrayClone(arr, n) {
|
|
423
|
+
var copy = new Array(n);
|
|
424
|
+
for (var i = 0; i < n; ++i)
|
|
425
|
+
copy[i] = arr[i];
|
|
426
|
+
return copy;
|
|
427
|
+
}
|
|
428
|
+
function spliceOne(list, index) {
|
|
429
|
+
for (; index + 1 < list.length; index++)
|
|
430
|
+
list[index] = list[index + 1];
|
|
431
|
+
list.pop();
|
|
432
|
+
}
|
|
433
|
+
function unwrapListeners(arr) {
|
|
434
|
+
var ret = new Array(arr.length);
|
|
435
|
+
for (var i = 0; i < ret.length; ++i) {
|
|
436
|
+
ret[i] = arr[i].listener || arr[i];
|
|
437
|
+
}
|
|
438
|
+
return ret;
|
|
439
|
+
}
|
|
440
|
+
function once(emitter, name) {
|
|
441
|
+
return new Promise(function(resolve2, reject) {
|
|
442
|
+
function errorListener(err) {
|
|
443
|
+
emitter.removeListener(name, resolver);
|
|
444
|
+
reject(err);
|
|
376
445
|
}
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
return fromString(value, encodingOrOffset);
|
|
381
|
-
}
|
|
382
|
-
if (ArrayBuffer.isView(value)) {
|
|
383
|
-
return fromArrayView(value);
|
|
384
|
-
}
|
|
385
|
-
if (value == null) {
|
|
386
|
-
throw new TypeError(
|
|
387
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
|
|
388
|
-
);
|
|
389
|
-
}
|
|
390
|
-
if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
|
|
391
|
-
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
392
|
-
}
|
|
393
|
-
if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
|
|
394
|
-
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
395
|
-
}
|
|
396
|
-
if (typeof value === "number") {
|
|
397
|
-
throw new TypeError(
|
|
398
|
-
'The "value" argument must not be of type number. Received type number'
|
|
399
|
-
);
|
|
400
|
-
}
|
|
401
|
-
var valueOf = value.valueOf && value.valueOf();
|
|
402
|
-
if (valueOf != null && valueOf !== value) {
|
|
403
|
-
return Buffer2.from(valueOf, encodingOrOffset, length);
|
|
404
|
-
}
|
|
405
|
-
var b = fromObject(value);
|
|
406
|
-
if (b)
|
|
407
|
-
return b;
|
|
408
|
-
if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
|
|
409
|
-
return Buffer2.from(
|
|
410
|
-
value[Symbol.toPrimitive]("string"),
|
|
411
|
-
encodingOrOffset,
|
|
412
|
-
length
|
|
413
|
-
);
|
|
446
|
+
function resolver() {
|
|
447
|
+
if (typeof emitter.removeListener === "function") {
|
|
448
|
+
emitter.removeListener("error", errorListener);
|
|
414
449
|
}
|
|
415
|
-
|
|
416
|
-
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
|
|
417
|
-
);
|
|
450
|
+
resolve2([].slice.call(arguments));
|
|
418
451
|
}
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
Object.setPrototypeOf(Buffer2.prototype, Uint8Array.prototype);
|
|
423
|
-
Object.setPrototypeOf(Buffer2, Uint8Array);
|
|
424
|
-
function assertSize(size) {
|
|
425
|
-
if (typeof size !== "number") {
|
|
426
|
-
throw new TypeError('"size" argument must be of type number');
|
|
427
|
-
} else if (size < 0) {
|
|
428
|
-
throw new RangeError('The value "' + size + '" is invalid for option "size"');
|
|
429
|
-
}
|
|
452
|
+
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
453
|
+
if (name !== "error") {
|
|
454
|
+
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
430
455
|
}
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
459
|
+
if (typeof emitter.on === "function") {
|
|
460
|
+
eventTargetAgnosticAddListener(emitter, "error", handler, flags);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
function eventTargetAgnosticAddListener(emitter, name, listener, flags) {
|
|
464
|
+
if (typeof emitter.on === "function") {
|
|
465
|
+
if (flags.once) {
|
|
466
|
+
emitter.once(name, listener);
|
|
467
|
+
} else {
|
|
468
|
+
emitter.on(name, listener);
|
|
469
|
+
}
|
|
470
|
+
} else if (typeof emitter.addEventListener === "function") {
|
|
471
|
+
emitter.addEventListener(name, function wrapListener(arg) {
|
|
472
|
+
if (flags.once) {
|
|
473
|
+
emitter.removeEventListener(name, wrapListener);
|
|
438
474
|
}
|
|
439
|
-
|
|
475
|
+
listener(arg);
|
|
476
|
+
});
|
|
477
|
+
} else {
|
|
478
|
+
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
var eventsExports = events.exports;
|
|
482
|
+
var inherits_browser = { exports: {} };
|
|
483
|
+
if (typeof Object.create === "function") {
|
|
484
|
+
inherits_browser.exports = function inherits2(ctor, superCtor) {
|
|
485
|
+
if (superCtor) {
|
|
486
|
+
ctor.super_ = superCtor;
|
|
487
|
+
ctor.prototype = Object.create(superCtor.prototype, {
|
|
488
|
+
constructor: {
|
|
489
|
+
value: ctor,
|
|
490
|
+
enumerable: false,
|
|
491
|
+
writable: true,
|
|
492
|
+
configurable: true
|
|
493
|
+
}
|
|
494
|
+
});
|
|
440
495
|
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
496
|
+
};
|
|
497
|
+
} else {
|
|
498
|
+
inherits_browser.exports = function inherits2(ctor, superCtor) {
|
|
499
|
+
if (superCtor) {
|
|
500
|
+
ctor.super_ = superCtor;
|
|
501
|
+
var TempCtor = function() {
|
|
502
|
+
};
|
|
503
|
+
TempCtor.prototype = superCtor.prototype;
|
|
504
|
+
ctor.prototype = new TempCtor();
|
|
505
|
+
ctor.prototype.constructor = ctor;
|
|
447
506
|
}
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
507
|
+
};
|
|
508
|
+
}
|
|
509
|
+
var inherits_browserExports = inherits_browser.exports;
|
|
510
|
+
var buffer = {};
|
|
511
|
+
var base64Js = {};
|
|
512
|
+
var hasRequiredBase64Js;
|
|
513
|
+
function requireBase64Js() {
|
|
514
|
+
if (hasRequiredBase64Js)
|
|
515
|
+
return base64Js;
|
|
516
|
+
hasRequiredBase64Js = 1;
|
|
517
|
+
base64Js.byteLength = byteLength;
|
|
518
|
+
base64Js.toByteArray = toByteArray;
|
|
519
|
+
base64Js.fromByteArray = fromByteArray;
|
|
520
|
+
var lookup = [];
|
|
521
|
+
var revLookup = [];
|
|
522
|
+
var Arr = typeof Uint8Array !== "undefined" ? Uint8Array : Array;
|
|
523
|
+
var code = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
|
|
524
|
+
for (var i = 0, len = code.length; i < len; ++i) {
|
|
525
|
+
lookup[i] = code[i];
|
|
526
|
+
revLookup[code.charCodeAt(i)] = i;
|
|
527
|
+
}
|
|
528
|
+
revLookup["-".charCodeAt(0)] = 62;
|
|
529
|
+
revLookup["_".charCodeAt(0)] = 63;
|
|
530
|
+
function getLens(b64) {
|
|
531
|
+
var len2 = b64.length;
|
|
532
|
+
if (len2 % 4 > 0) {
|
|
533
|
+
throw new Error("Invalid string. Length must be a multiple of 4");
|
|
468
534
|
}
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
535
|
+
var validLen = b64.indexOf("=");
|
|
536
|
+
if (validLen === -1)
|
|
537
|
+
validLen = len2;
|
|
538
|
+
var placeHoldersLen = validLen === len2 ? 0 : 4 - validLen % 4;
|
|
539
|
+
return [validLen, placeHoldersLen];
|
|
540
|
+
}
|
|
541
|
+
function byteLength(b64) {
|
|
542
|
+
var lens = getLens(b64);
|
|
543
|
+
var validLen = lens[0];
|
|
544
|
+
var placeHoldersLen = lens[1];
|
|
545
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
546
|
+
}
|
|
547
|
+
function _byteLength(b64, validLen, placeHoldersLen) {
|
|
548
|
+
return (validLen + placeHoldersLen) * 3 / 4 - placeHoldersLen;
|
|
549
|
+
}
|
|
550
|
+
function toByteArray(b64) {
|
|
551
|
+
var tmp;
|
|
552
|
+
var lens = getLens(b64);
|
|
553
|
+
var validLen = lens[0];
|
|
554
|
+
var placeHoldersLen = lens[1];
|
|
555
|
+
var arr = new Arr(_byteLength(b64, validLen, placeHoldersLen));
|
|
556
|
+
var curByte = 0;
|
|
557
|
+
var len2 = placeHoldersLen > 0 ? validLen - 4 : validLen;
|
|
558
|
+
var i2;
|
|
559
|
+
for (i2 = 0; i2 < len2; i2 += 4) {
|
|
560
|
+
tmp = revLookup[b64.charCodeAt(i2)] << 18 | revLookup[b64.charCodeAt(i2 + 1)] << 12 | revLookup[b64.charCodeAt(i2 + 2)] << 6 | revLookup[b64.charCodeAt(i2 + 3)];
|
|
561
|
+
arr[curByte++] = tmp >> 16 & 255;
|
|
562
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
563
|
+
arr[curByte++] = tmp & 255;
|
|
476
564
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
|
|
481
|
-
}
|
|
482
|
-
return fromArrayLike(arrayView);
|
|
565
|
+
if (placeHoldersLen === 2) {
|
|
566
|
+
tmp = revLookup[b64.charCodeAt(i2)] << 2 | revLookup[b64.charCodeAt(i2 + 1)] >> 4;
|
|
567
|
+
arr[curByte++] = tmp & 255;
|
|
483
568
|
}
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
569
|
+
if (placeHoldersLen === 1) {
|
|
570
|
+
tmp = revLookup[b64.charCodeAt(i2)] << 10 | revLookup[b64.charCodeAt(i2 + 1)] << 4 | revLookup[b64.charCodeAt(i2 + 2)] >> 2;
|
|
571
|
+
arr[curByte++] = tmp >> 8 & 255;
|
|
572
|
+
arr[curByte++] = tmp & 255;
|
|
573
|
+
}
|
|
574
|
+
return arr;
|
|
575
|
+
}
|
|
576
|
+
function tripletToBase64(num) {
|
|
577
|
+
return lookup[num >> 18 & 63] + lookup[num >> 12 & 63] + lookup[num >> 6 & 63] + lookup[num & 63];
|
|
578
|
+
}
|
|
579
|
+
function encodeChunk(uint8, start, end) {
|
|
580
|
+
var tmp;
|
|
581
|
+
var output = [];
|
|
582
|
+
for (var i2 = start; i2 < end; i2 += 3) {
|
|
583
|
+
tmp = (uint8[i2] << 16 & 16711680) + (uint8[i2 + 1] << 8 & 65280) + (uint8[i2 + 2] & 255);
|
|
584
|
+
output.push(tripletToBase64(tmp));
|
|
585
|
+
}
|
|
586
|
+
return output.join("");
|
|
587
|
+
}
|
|
588
|
+
function fromByteArray(uint8) {
|
|
589
|
+
var tmp;
|
|
590
|
+
var len2 = uint8.length;
|
|
591
|
+
var extraBytes = len2 % 3;
|
|
592
|
+
var parts = [];
|
|
593
|
+
var maxChunkLength = 16383;
|
|
594
|
+
for (var i2 = 0, len22 = len2 - extraBytes; i2 < len22; i2 += maxChunkLength) {
|
|
595
|
+
parts.push(encodeChunk(uint8, i2, i2 + maxChunkLength > len22 ? len22 : i2 + maxChunkLength));
|
|
596
|
+
}
|
|
597
|
+
if (extraBytes === 1) {
|
|
598
|
+
tmp = uint8[len2 - 1];
|
|
599
|
+
parts.push(
|
|
600
|
+
lookup[tmp >> 2] + lookup[tmp << 4 & 63] + "=="
|
|
601
|
+
);
|
|
602
|
+
} else if (extraBytes === 2) {
|
|
603
|
+
tmp = (uint8[len2 - 2] << 8) + uint8[len2 - 1];
|
|
604
|
+
parts.push(
|
|
605
|
+
lookup[tmp >> 10] + lookup[tmp >> 4 & 63] + lookup[tmp << 2 & 63] + "="
|
|
606
|
+
);
|
|
607
|
+
}
|
|
608
|
+
return parts.join("");
|
|
609
|
+
}
|
|
610
|
+
return base64Js;
|
|
611
|
+
}
|
|
612
|
+
var ieee754 = {};
|
|
613
|
+
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
614
|
+
var hasRequiredIeee754;
|
|
615
|
+
function requireIeee754() {
|
|
616
|
+
if (hasRequiredIeee754)
|
|
617
|
+
return ieee754;
|
|
618
|
+
hasRequiredIeee754 = 1;
|
|
619
|
+
ieee754.read = function(buffer2, offset, isLE, mLen, nBytes) {
|
|
620
|
+
var e, m;
|
|
621
|
+
var eLen = nBytes * 8 - mLen - 1;
|
|
622
|
+
var eMax = (1 << eLen) - 1;
|
|
623
|
+
var eBias = eMax >> 1;
|
|
624
|
+
var nBits = -7;
|
|
625
|
+
var i = isLE ? nBytes - 1 : 0;
|
|
626
|
+
var d = isLE ? -1 : 1;
|
|
627
|
+
var s = buffer2[offset + i];
|
|
628
|
+
i += d;
|
|
629
|
+
e = s & (1 << -nBits) - 1;
|
|
630
|
+
s >>= -nBits;
|
|
631
|
+
nBits += eLen;
|
|
632
|
+
for (; nBits > 0; e = e * 256 + buffer2[offset + i], i += d, nBits -= 8) {
|
|
633
|
+
}
|
|
634
|
+
m = e & (1 << -nBits) - 1;
|
|
635
|
+
e >>= -nBits;
|
|
636
|
+
nBits += mLen;
|
|
637
|
+
for (; nBits > 0; m = m * 256 + buffer2[offset + i], i += d, nBits -= 8) {
|
|
638
|
+
}
|
|
639
|
+
if (e === 0) {
|
|
640
|
+
e = 1 - eBias;
|
|
641
|
+
} else if (e === eMax) {
|
|
642
|
+
return m ? NaN : (s ? -1 : 1) * Infinity;
|
|
643
|
+
} else {
|
|
644
|
+
m = m + Math.pow(2, mLen);
|
|
645
|
+
e = e - eBias;
|
|
646
|
+
}
|
|
647
|
+
return (s ? -1 : 1) * m * Math.pow(2, e - mLen);
|
|
648
|
+
};
|
|
649
|
+
ieee754.write = function(buffer2, value, offset, isLE, mLen, nBytes) {
|
|
650
|
+
var e, m, c;
|
|
651
|
+
var eLen = nBytes * 8 - mLen - 1;
|
|
652
|
+
var eMax = (1 << eLen) - 1;
|
|
653
|
+
var eBias = eMax >> 1;
|
|
654
|
+
var rt = mLen === 23 ? Math.pow(2, -24) - Math.pow(2, -77) : 0;
|
|
655
|
+
var i = isLE ? 0 : nBytes - 1;
|
|
656
|
+
var d = isLE ? 1 : -1;
|
|
657
|
+
var s = value < 0 || value === 0 && 1 / value < 0 ? 1 : 0;
|
|
658
|
+
value = Math.abs(value);
|
|
659
|
+
if (isNaN(value) || value === Infinity) {
|
|
660
|
+
m = isNaN(value) ? 1 : 0;
|
|
661
|
+
e = eMax;
|
|
662
|
+
} else {
|
|
663
|
+
e = Math.floor(Math.log(value) / Math.LN2);
|
|
664
|
+
if (value * (c = Math.pow(2, -e)) < 1) {
|
|
665
|
+
e--;
|
|
666
|
+
c *= 2;
|
|
667
|
+
}
|
|
668
|
+
if (e + eBias >= 1) {
|
|
669
|
+
value += rt / c;
|
|
496
670
|
} else {
|
|
497
|
-
|
|
671
|
+
value += rt * Math.pow(2, 1 - eBias);
|
|
498
672
|
}
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
function fromObject(obj) {
|
|
503
|
-
if (Buffer2.isBuffer(obj)) {
|
|
504
|
-
var len = checked(obj.length) | 0;
|
|
505
|
-
var buf = createBuffer(len);
|
|
506
|
-
if (buf.length === 0) {
|
|
507
|
-
return buf;
|
|
508
|
-
}
|
|
509
|
-
obj.copy(buf, 0, 0, len);
|
|
510
|
-
return buf;
|
|
673
|
+
if (value * c >= 2) {
|
|
674
|
+
e++;
|
|
675
|
+
c /= 2;
|
|
511
676
|
}
|
|
512
|
-
if (
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
677
|
+
if (e + eBias >= eMax) {
|
|
678
|
+
m = 0;
|
|
679
|
+
e = eMax;
|
|
680
|
+
} else if (e + eBias >= 1) {
|
|
681
|
+
m = (value * c - 1) * Math.pow(2, mLen);
|
|
682
|
+
e = e + eBias;
|
|
683
|
+
} else {
|
|
684
|
+
m = value * Math.pow(2, eBias - 1) * Math.pow(2, mLen);
|
|
685
|
+
e = 0;
|
|
517
686
|
}
|
|
518
|
-
|
|
519
|
-
|
|
687
|
+
}
|
|
688
|
+
for (; mLen >= 8; buffer2[offset + i] = m & 255, i += d, m /= 256, mLen -= 8) {
|
|
689
|
+
}
|
|
690
|
+
e = e << mLen | m;
|
|
691
|
+
eLen += mLen;
|
|
692
|
+
for (; eLen > 0; buffer2[offset + i] = e & 255, i += d, e /= 256, eLen -= 8) {
|
|
693
|
+
}
|
|
694
|
+
buffer2[offset + i - d] |= s * 128;
|
|
695
|
+
};
|
|
696
|
+
return ieee754;
|
|
697
|
+
}
|
|
698
|
+
/*!
|
|
699
|
+
* The buffer module from node.js, for the browser.
|
|
700
|
+
*
|
|
701
|
+
* @author Feross Aboukhadijeh <https://feross.org>
|
|
702
|
+
* @license MIT
|
|
703
|
+
*/
|
|
704
|
+
var hasRequiredBuffer;
|
|
705
|
+
function requireBuffer() {
|
|
706
|
+
if (hasRequiredBuffer)
|
|
707
|
+
return buffer;
|
|
708
|
+
hasRequiredBuffer = 1;
|
|
709
|
+
(function(exports2) {
|
|
710
|
+
var base64 = requireBase64Js();
|
|
711
|
+
var ieee7542 = requireIeee754();
|
|
712
|
+
var customInspectSymbol = typeof Symbol === "function" && typeof Symbol["for"] === "function" ? Symbol["for"]("nodejs.util.inspect.custom") : null;
|
|
713
|
+
exports2.Buffer = Buffer2;
|
|
714
|
+
exports2.SlowBuffer = SlowBuffer;
|
|
715
|
+
exports2.INSPECT_MAX_BYTES = 50;
|
|
716
|
+
var K_MAX_LENGTH = 2147483647;
|
|
717
|
+
exports2.kMaxLength = K_MAX_LENGTH;
|
|
718
|
+
Buffer2.TYPED_ARRAY_SUPPORT = typedArraySupport();
|
|
719
|
+
if (!Buffer2.TYPED_ARRAY_SUPPORT && typeof console !== "undefined" && typeof console.error === "function") {
|
|
720
|
+
console.error(
|
|
721
|
+
"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."
|
|
722
|
+
);
|
|
723
|
+
}
|
|
724
|
+
function typedArraySupport() {
|
|
725
|
+
try {
|
|
726
|
+
var arr = new Uint8Array(1);
|
|
727
|
+
var proto = { foo: function() {
|
|
728
|
+
return 42;
|
|
729
|
+
} };
|
|
730
|
+
Object.setPrototypeOf(proto, Uint8Array.prototype);
|
|
731
|
+
Object.setPrototypeOf(arr, proto);
|
|
732
|
+
return arr.foo() === 42;
|
|
733
|
+
} catch (e) {
|
|
734
|
+
return false;
|
|
520
735
|
}
|
|
521
736
|
}
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
737
|
+
Object.defineProperty(Buffer2.prototype, "parent", {
|
|
738
|
+
enumerable: true,
|
|
739
|
+
get: function() {
|
|
740
|
+
if (!Buffer2.isBuffer(this))
|
|
741
|
+
return void 0;
|
|
742
|
+
return this.buffer;
|
|
525
743
|
}
|
|
526
|
-
|
|
744
|
+
});
|
|
745
|
+
Object.defineProperty(Buffer2.prototype, "offset", {
|
|
746
|
+
enumerable: true,
|
|
747
|
+
get: function() {
|
|
748
|
+
if (!Buffer2.isBuffer(this))
|
|
749
|
+
return void 0;
|
|
750
|
+
return this.byteOffset;
|
|
751
|
+
}
|
|
752
|
+
});
|
|
753
|
+
function createBuffer(length) {
|
|
754
|
+
if (length > K_MAX_LENGTH) {
|
|
755
|
+
throw new RangeError('The value "' + length + '" is invalid for option "size"');
|
|
756
|
+
}
|
|
757
|
+
var buf = new Uint8Array(length);
|
|
758
|
+
Object.setPrototypeOf(buf, Buffer2.prototype);
|
|
759
|
+
return buf;
|
|
527
760
|
}
|
|
528
|
-
function
|
|
529
|
-
if (
|
|
530
|
-
|
|
761
|
+
function Buffer2(arg, encodingOrOffset, length) {
|
|
762
|
+
if (typeof arg === "number") {
|
|
763
|
+
if (typeof encodingOrOffset === "string") {
|
|
764
|
+
throw new TypeError(
|
|
765
|
+
'The "string" argument must be of type string. Received type number'
|
|
766
|
+
);
|
|
767
|
+
}
|
|
768
|
+
return allocUnsafe(arg);
|
|
531
769
|
}
|
|
532
|
-
return
|
|
770
|
+
return from(arg, encodingOrOffset, length);
|
|
533
771
|
}
|
|
534
|
-
Buffer2.
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
if (
|
|
772
|
+
Buffer2.poolSize = 8192;
|
|
773
|
+
function from(value, encodingOrOffset, length) {
|
|
774
|
+
if (typeof value === "string") {
|
|
775
|
+
return fromString(value, encodingOrOffset);
|
|
776
|
+
}
|
|
777
|
+
if (ArrayBuffer.isView(value)) {
|
|
778
|
+
return fromArrayView(value);
|
|
779
|
+
}
|
|
780
|
+
if (value == null) {
|
|
543
781
|
throw new TypeError(
|
|
544
|
-
|
|
782
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
|
|
545
783
|
);
|
|
546
784
|
}
|
|
547
|
-
if (
|
|
548
|
-
return
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
785
|
+
if (isInstance(value, ArrayBuffer) || value && isInstance(value.buffer, ArrayBuffer)) {
|
|
786
|
+
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
787
|
+
}
|
|
788
|
+
if (typeof SharedArrayBuffer !== "undefined" && (isInstance(value, SharedArrayBuffer) || value && isInstance(value.buffer, SharedArrayBuffer))) {
|
|
789
|
+
return fromArrayBuffer(value, encodingOrOffset, length);
|
|
790
|
+
}
|
|
791
|
+
if (typeof value === "number") {
|
|
792
|
+
throw new TypeError(
|
|
793
|
+
'The "value" argument must not be of type number. Received type number'
|
|
794
|
+
);
|
|
795
|
+
}
|
|
796
|
+
var valueOf = value.valueOf && value.valueOf();
|
|
797
|
+
if (valueOf != null && valueOf !== value) {
|
|
798
|
+
return Buffer2.from(valueOf, encodingOrOffset, length);
|
|
799
|
+
}
|
|
800
|
+
var b = fromObject(value);
|
|
801
|
+
if (b)
|
|
802
|
+
return b;
|
|
803
|
+
if (typeof Symbol !== "undefined" && Symbol.toPrimitive != null && typeof value[Symbol.toPrimitive] === "function") {
|
|
804
|
+
return Buffer2.from(
|
|
805
|
+
value[Symbol.toPrimitive]("string"),
|
|
806
|
+
encodingOrOffset,
|
|
807
|
+
length
|
|
808
|
+
);
|
|
809
|
+
}
|
|
810
|
+
throw new TypeError(
|
|
811
|
+
"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof value
|
|
812
|
+
);
|
|
813
|
+
}
|
|
814
|
+
Buffer2.from = function(value, encodingOrOffset, length) {
|
|
815
|
+
return from(value, encodingOrOffset, length);
|
|
816
|
+
};
|
|
817
|
+
Object.setPrototypeOf(Buffer2.prototype, Uint8Array.prototype);
|
|
818
|
+
Object.setPrototypeOf(Buffer2, Uint8Array);
|
|
819
|
+
function assertSize(size) {
|
|
820
|
+
if (typeof size !== "number") {
|
|
821
|
+
throw new TypeError('"size" argument must be of type number');
|
|
822
|
+
} else if (size < 0) {
|
|
823
|
+
throw new RangeError('The value "' + size + '" is invalid for option "size"');
|
|
824
|
+
}
|
|
825
|
+
}
|
|
826
|
+
function alloc(size, fill, encoding) {
|
|
827
|
+
assertSize(size);
|
|
828
|
+
if (size <= 0) {
|
|
829
|
+
return createBuffer(size);
|
|
830
|
+
}
|
|
831
|
+
if (fill !== void 0) {
|
|
832
|
+
return typeof encoding === "string" ? createBuffer(size).fill(fill, encoding) : createBuffer(size).fill(fill);
|
|
833
|
+
}
|
|
834
|
+
return createBuffer(size);
|
|
835
|
+
}
|
|
836
|
+
Buffer2.alloc = function(size, fill, encoding) {
|
|
837
|
+
return alloc(size, fill, encoding);
|
|
838
|
+
};
|
|
839
|
+
function allocUnsafe(size) {
|
|
840
|
+
assertSize(size);
|
|
841
|
+
return createBuffer(size < 0 ? 0 : checked(size) | 0);
|
|
842
|
+
}
|
|
843
|
+
Buffer2.allocUnsafe = function(size) {
|
|
844
|
+
return allocUnsafe(size);
|
|
845
|
+
};
|
|
846
|
+
Buffer2.allocUnsafeSlow = function(size) {
|
|
847
|
+
return allocUnsafe(size);
|
|
848
|
+
};
|
|
849
|
+
function fromString(string, encoding) {
|
|
850
|
+
if (typeof encoding !== "string" || encoding === "") {
|
|
851
|
+
encoding = "utf8";
|
|
852
|
+
}
|
|
853
|
+
if (!Buffer2.isEncoding(encoding)) {
|
|
854
|
+
throw new TypeError("Unknown encoding: " + encoding);
|
|
855
|
+
}
|
|
856
|
+
var length = byteLength(string, encoding) | 0;
|
|
857
|
+
var buf = createBuffer(length);
|
|
858
|
+
var actual = buf.write(string, encoding);
|
|
859
|
+
if (actual !== length) {
|
|
860
|
+
buf = buf.slice(0, actual);
|
|
861
|
+
}
|
|
862
|
+
return buf;
|
|
863
|
+
}
|
|
864
|
+
function fromArrayLike(array) {
|
|
865
|
+
var length = array.length < 0 ? 0 : checked(array.length) | 0;
|
|
866
|
+
var buf = createBuffer(length);
|
|
867
|
+
for (var i = 0; i < length; i += 1) {
|
|
868
|
+
buf[i] = array[i] & 255;
|
|
869
|
+
}
|
|
870
|
+
return buf;
|
|
871
|
+
}
|
|
872
|
+
function fromArrayView(arrayView) {
|
|
873
|
+
if (isInstance(arrayView, Uint8Array)) {
|
|
874
|
+
var copy = new Uint8Array(arrayView);
|
|
875
|
+
return fromArrayBuffer(copy.buffer, copy.byteOffset, copy.byteLength);
|
|
876
|
+
}
|
|
877
|
+
return fromArrayLike(arrayView);
|
|
878
|
+
}
|
|
879
|
+
function fromArrayBuffer(array, byteOffset, length) {
|
|
880
|
+
if (byteOffset < 0 || array.byteLength < byteOffset) {
|
|
881
|
+
throw new RangeError('"offset" is outside of buffer bounds');
|
|
882
|
+
}
|
|
883
|
+
if (array.byteLength < byteOffset + (length || 0)) {
|
|
884
|
+
throw new RangeError('"length" is outside of buffer bounds');
|
|
885
|
+
}
|
|
886
|
+
var buf;
|
|
887
|
+
if (byteOffset === void 0 && length === void 0) {
|
|
888
|
+
buf = new Uint8Array(array);
|
|
889
|
+
} else if (length === void 0) {
|
|
890
|
+
buf = new Uint8Array(array, byteOffset);
|
|
891
|
+
} else {
|
|
892
|
+
buf = new Uint8Array(array, byteOffset, length);
|
|
893
|
+
}
|
|
894
|
+
Object.setPrototypeOf(buf, Buffer2.prototype);
|
|
895
|
+
return buf;
|
|
896
|
+
}
|
|
897
|
+
function fromObject(obj) {
|
|
898
|
+
if (Buffer2.isBuffer(obj)) {
|
|
899
|
+
var len = checked(obj.length) | 0;
|
|
900
|
+
var buf = createBuffer(len);
|
|
901
|
+
if (buf.length === 0) {
|
|
902
|
+
return buf;
|
|
903
|
+
}
|
|
904
|
+
obj.copy(buf, 0, 0, len);
|
|
905
|
+
return buf;
|
|
906
|
+
}
|
|
907
|
+
if (obj.length !== void 0) {
|
|
908
|
+
if (typeof obj.length !== "number" || numberIsNaN(obj.length)) {
|
|
909
|
+
return createBuffer(0);
|
|
910
|
+
}
|
|
911
|
+
return fromArrayLike(obj);
|
|
912
|
+
}
|
|
913
|
+
if (obj.type === "Buffer" && Array.isArray(obj.data)) {
|
|
914
|
+
return fromArrayLike(obj.data);
|
|
915
|
+
}
|
|
916
|
+
}
|
|
917
|
+
function checked(length) {
|
|
918
|
+
if (length >= K_MAX_LENGTH) {
|
|
919
|
+
throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + K_MAX_LENGTH.toString(16) + " bytes");
|
|
920
|
+
}
|
|
921
|
+
return length | 0;
|
|
922
|
+
}
|
|
923
|
+
function SlowBuffer(length) {
|
|
924
|
+
if (+length != length) {
|
|
925
|
+
length = 0;
|
|
926
|
+
}
|
|
927
|
+
return Buffer2.alloc(+length);
|
|
928
|
+
}
|
|
929
|
+
Buffer2.isBuffer = function isBuffer(b) {
|
|
930
|
+
return b != null && b._isBuffer === true && b !== Buffer2.prototype;
|
|
931
|
+
};
|
|
932
|
+
Buffer2.compare = function compare(a, b) {
|
|
933
|
+
if (isInstance(a, Uint8Array))
|
|
934
|
+
a = Buffer2.from(a, a.offset, a.byteLength);
|
|
935
|
+
if (isInstance(b, Uint8Array))
|
|
936
|
+
b = Buffer2.from(b, b.offset, b.byteLength);
|
|
937
|
+
if (!Buffer2.isBuffer(a) || !Buffer2.isBuffer(b)) {
|
|
938
|
+
throw new TypeError(
|
|
939
|
+
'The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array'
|
|
940
|
+
);
|
|
941
|
+
}
|
|
942
|
+
if (a === b)
|
|
943
|
+
return 0;
|
|
944
|
+
var x = a.length;
|
|
945
|
+
var y = b.length;
|
|
946
|
+
for (var i = 0, len = Math.min(x, y); i < len; ++i) {
|
|
947
|
+
if (a[i] !== b[i]) {
|
|
948
|
+
x = a[i];
|
|
949
|
+
y = b[i];
|
|
950
|
+
break;
|
|
951
|
+
}
|
|
557
952
|
}
|
|
558
953
|
if (x < y)
|
|
559
954
|
return -1;
|
|
@@ -1736,626 +2131,231 @@ var __publicField = (obj, key, value) => {
|
|
|
1736
2131
|
}
|
|
1737
2132
|
return byteArray;
|
|
1738
2133
|
}
|
|
1739
|
-
function utf16leToBytes(str, units) {
|
|
1740
|
-
var c, hi, lo;
|
|
1741
|
-
var byteArray = [];
|
|
1742
|
-
for (var i = 0; i < str.length; ++i) {
|
|
1743
|
-
if ((units -= 2) < 0)
|
|
1744
|
-
break;
|
|
1745
|
-
c = str.charCodeAt(i);
|
|
1746
|
-
hi = c >> 8;
|
|
1747
|
-
lo = c % 256;
|
|
1748
|
-
byteArray.push(lo);
|
|
1749
|
-
byteArray.push(hi);
|
|
1750
|
-
}
|
|
1751
|
-
return byteArray;
|
|
1752
|
-
}
|
|
1753
|
-
function base64ToBytes(str) {
|
|
1754
|
-
return base64.toByteArray(base64clean(str));
|
|
1755
|
-
}
|
|
1756
|
-
function blitBuffer(src2, dst, offset, length) {
|
|
1757
|
-
for (var i = 0; i < length; ++i) {
|
|
1758
|
-
if (i + offset >= dst.length || i >= src2.length)
|
|
1759
|
-
break;
|
|
1760
|
-
dst[i + offset] = src2[i];
|
|
1761
|
-
}
|
|
1762
|
-
return i;
|
|
1763
|
-
}
|
|
1764
|
-
function isInstance(obj, type) {
|
|
1765
|
-
return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
|
|
1766
|
-
}
|
|
1767
|
-
function numberIsNaN(obj) {
|
|
1768
|
-
return obj !== obj;
|
|
1769
|
-
}
|
|
1770
|
-
var hexSliceLookupTable = function() {
|
|
1771
|
-
var alphabet = "0123456789abcdef";
|
|
1772
|
-
var table = new Array(256);
|
|
1773
|
-
for (var i = 0; i < 16; ++i) {
|
|
1774
|
-
var i16 = i * 16;
|
|
1775
|
-
for (var j = 0; j < 16; ++j) {
|
|
1776
|
-
table[i16 + j] = alphabet[i] + alphabet[j];
|
|
1777
|
-
}
|
|
1778
|
-
}
|
|
1779
|
-
return table;
|
|
1780
|
-
}();
|
|
1781
|
-
})(buffer);
|
|
1782
|
-
return buffer;
|
|
1783
|
-
}
|
|
1784
|
-
var bufferExports = requireBuffer();
|
|
1785
|
-
var browser$1 = { exports: {} };
|
|
1786
|
-
var process = browser$1.exports = {};
|
|
1787
|
-
var cachedSetTimeout;
|
|
1788
|
-
var cachedClearTimeout;
|
|
1789
|
-
function defaultSetTimout() {
|
|
1790
|
-
throw new Error("setTimeout has not been defined");
|
|
1791
|
-
}
|
|
1792
|
-
function defaultClearTimeout() {
|
|
1793
|
-
throw new Error("clearTimeout has not been defined");
|
|
1794
|
-
}
|
|
1795
|
-
(function() {
|
|
1796
|
-
try {
|
|
1797
|
-
if (typeof setTimeout === "function") {
|
|
1798
|
-
cachedSetTimeout = setTimeout;
|
|
1799
|
-
} else {
|
|
1800
|
-
cachedSetTimeout = defaultSetTimout;
|
|
1801
|
-
}
|
|
1802
|
-
} catch (e) {
|
|
1803
|
-
cachedSetTimeout = defaultSetTimout;
|
|
1804
|
-
}
|
|
1805
|
-
try {
|
|
1806
|
-
if (typeof clearTimeout === "function") {
|
|
1807
|
-
cachedClearTimeout = clearTimeout;
|
|
1808
|
-
} else {
|
|
1809
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
1810
|
-
}
|
|
1811
|
-
} catch (e) {
|
|
1812
|
-
cachedClearTimeout = defaultClearTimeout;
|
|
1813
|
-
}
|
|
1814
|
-
})();
|
|
1815
|
-
function runTimeout(fun) {
|
|
1816
|
-
if (cachedSetTimeout === setTimeout) {
|
|
1817
|
-
return setTimeout(fun, 0);
|
|
1818
|
-
}
|
|
1819
|
-
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
1820
|
-
cachedSetTimeout = setTimeout;
|
|
1821
|
-
return setTimeout(fun, 0);
|
|
1822
|
-
}
|
|
1823
|
-
try {
|
|
1824
|
-
return cachedSetTimeout(fun, 0);
|
|
1825
|
-
} catch (e) {
|
|
1826
|
-
try {
|
|
1827
|
-
return cachedSetTimeout.call(null, fun, 0);
|
|
1828
|
-
} catch (e2) {
|
|
1829
|
-
return cachedSetTimeout.call(this, fun, 0);
|
|
1830
|
-
}
|
|
1831
|
-
}
|
|
1832
|
-
}
|
|
1833
|
-
function runClearTimeout(marker) {
|
|
1834
|
-
if (cachedClearTimeout === clearTimeout) {
|
|
1835
|
-
return clearTimeout(marker);
|
|
1836
|
-
}
|
|
1837
|
-
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
1838
|
-
cachedClearTimeout = clearTimeout;
|
|
1839
|
-
return clearTimeout(marker);
|
|
1840
|
-
}
|
|
1841
|
-
try {
|
|
1842
|
-
return cachedClearTimeout(marker);
|
|
1843
|
-
} catch (e) {
|
|
1844
|
-
try {
|
|
1845
|
-
return cachedClearTimeout.call(null, marker);
|
|
1846
|
-
} catch (e2) {
|
|
1847
|
-
return cachedClearTimeout.call(this, marker);
|
|
1848
|
-
}
|
|
1849
|
-
}
|
|
1850
|
-
}
|
|
1851
|
-
var queue = [];
|
|
1852
|
-
var draining = false;
|
|
1853
|
-
var currentQueue;
|
|
1854
|
-
var queueIndex = -1;
|
|
1855
|
-
function cleanUpNextTick() {
|
|
1856
|
-
if (!draining || !currentQueue) {
|
|
1857
|
-
return;
|
|
1858
|
-
}
|
|
1859
|
-
draining = false;
|
|
1860
|
-
if (currentQueue.length) {
|
|
1861
|
-
queue = currentQueue.concat(queue);
|
|
1862
|
-
} else {
|
|
1863
|
-
queueIndex = -1;
|
|
1864
|
-
}
|
|
1865
|
-
if (queue.length) {
|
|
1866
|
-
drainQueue();
|
|
1867
|
-
}
|
|
1868
|
-
}
|
|
1869
|
-
function drainQueue() {
|
|
1870
|
-
if (draining) {
|
|
1871
|
-
return;
|
|
1872
|
-
}
|
|
1873
|
-
var timeout = runTimeout(cleanUpNextTick);
|
|
1874
|
-
draining = true;
|
|
1875
|
-
var len = queue.length;
|
|
1876
|
-
while (len) {
|
|
1877
|
-
currentQueue = queue;
|
|
1878
|
-
queue = [];
|
|
1879
|
-
while (++queueIndex < len) {
|
|
1880
|
-
if (currentQueue) {
|
|
1881
|
-
currentQueue[queueIndex].run();
|
|
1882
|
-
}
|
|
1883
|
-
}
|
|
1884
|
-
queueIndex = -1;
|
|
1885
|
-
len = queue.length;
|
|
1886
|
-
}
|
|
1887
|
-
currentQueue = null;
|
|
1888
|
-
draining = false;
|
|
1889
|
-
runClearTimeout(timeout);
|
|
1890
|
-
}
|
|
1891
|
-
process.nextTick = function(fun) {
|
|
1892
|
-
var args = new Array(arguments.length - 1);
|
|
1893
|
-
if (arguments.length > 1) {
|
|
1894
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
1895
|
-
args[i - 1] = arguments[i];
|
|
1896
|
-
}
|
|
1897
|
-
}
|
|
1898
|
-
queue.push(new Item(fun, args));
|
|
1899
|
-
if (queue.length === 1 && !draining) {
|
|
1900
|
-
runTimeout(drainQueue);
|
|
1901
|
-
}
|
|
1902
|
-
};
|
|
1903
|
-
function Item(fun, array) {
|
|
1904
|
-
this.fun = fun;
|
|
1905
|
-
this.array = array;
|
|
1906
|
-
}
|
|
1907
|
-
Item.prototype.run = function() {
|
|
1908
|
-
this.fun.apply(null, this.array);
|
|
1909
|
-
};
|
|
1910
|
-
process.title = "browser";
|
|
1911
|
-
process.browser = true;
|
|
1912
|
-
process.env = {};
|
|
1913
|
-
process.argv = [];
|
|
1914
|
-
process.version = "";
|
|
1915
|
-
process.versions = {};
|
|
1916
|
-
function noop() {
|
|
1917
|
-
}
|
|
1918
|
-
process.on = noop;
|
|
1919
|
-
process.addListener = noop;
|
|
1920
|
-
process.once = noop;
|
|
1921
|
-
process.off = noop;
|
|
1922
|
-
process.removeListener = noop;
|
|
1923
|
-
process.removeAllListeners = noop;
|
|
1924
|
-
process.emit = noop;
|
|
1925
|
-
process.prependListener = noop;
|
|
1926
|
-
process.prependOnceListener = noop;
|
|
1927
|
-
process.listeners = function(name) {
|
|
1928
|
-
return [];
|
|
1929
|
-
};
|
|
1930
|
-
process.binding = function(name) {
|
|
1931
|
-
throw new Error("process.binding is not supported");
|
|
1932
|
-
};
|
|
1933
|
-
process.cwd = function() {
|
|
1934
|
-
return "/";
|
|
1935
|
-
};
|
|
1936
|
-
process.chdir = function(dir) {
|
|
1937
|
-
throw new Error("process.chdir is not supported");
|
|
1938
|
-
};
|
|
1939
|
-
process.umask = function() {
|
|
1940
|
-
return 0;
|
|
1941
|
-
};
|
|
1942
|
-
var browserExports = browser$1.exports;
|
|
1943
|
-
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
1944
|
-
(function(Object2) {
|
|
1945
|
-
function get() {
|
|
1946
|
-
var _global2 = this || self;
|
|
1947
|
-
delete Object2.prototype.__magic__;
|
|
1948
|
-
return _global2;
|
|
1949
|
-
}
|
|
1950
|
-
if (typeof globalThis === "object") {
|
|
1951
|
-
return globalThis;
|
|
1952
|
-
}
|
|
1953
|
-
if (this) {
|
|
1954
|
-
return get();
|
|
1955
|
-
} else {
|
|
1956
|
-
Object2.defineProperty(Object2.prototype, "__magic__", {
|
|
1957
|
-
configurable: true,
|
|
1958
|
-
get
|
|
1959
|
-
});
|
|
1960
|
-
var _global = __magic__;
|
|
1961
|
-
return _global;
|
|
1962
|
-
}
|
|
1963
|
-
})(Object);
|
|
1964
|
-
var sax$1 = {};
|
|
1965
|
-
var events = { exports: {} };
|
|
1966
|
-
var R = typeof Reflect === "object" ? Reflect : null;
|
|
1967
|
-
var ReflectApply = R && typeof R.apply === "function" ? R.apply : function ReflectApply2(target, receiver, args) {
|
|
1968
|
-
return Function.prototype.apply.call(target, receiver, args);
|
|
1969
|
-
};
|
|
1970
|
-
var ReflectOwnKeys;
|
|
1971
|
-
if (R && typeof R.ownKeys === "function") {
|
|
1972
|
-
ReflectOwnKeys = R.ownKeys;
|
|
1973
|
-
} else if (Object.getOwnPropertySymbols) {
|
|
1974
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1975
|
-
return Object.getOwnPropertyNames(target).concat(Object.getOwnPropertySymbols(target));
|
|
1976
|
-
};
|
|
1977
|
-
} else {
|
|
1978
|
-
ReflectOwnKeys = function ReflectOwnKeys2(target) {
|
|
1979
|
-
return Object.getOwnPropertyNames(target);
|
|
1980
|
-
};
|
|
1981
|
-
}
|
|
1982
|
-
function ProcessEmitWarning(warning) {
|
|
1983
|
-
if (console && console.warn)
|
|
1984
|
-
console.warn(warning);
|
|
1985
|
-
}
|
|
1986
|
-
var NumberIsNaN = Number.isNaN || function NumberIsNaN2(value) {
|
|
1987
|
-
return value !== value;
|
|
1988
|
-
};
|
|
1989
|
-
function EventEmitter() {
|
|
1990
|
-
EventEmitter.init.call(this);
|
|
1991
|
-
}
|
|
1992
|
-
events.exports = EventEmitter;
|
|
1993
|
-
events.exports.once = once;
|
|
1994
|
-
EventEmitter.EventEmitter = EventEmitter;
|
|
1995
|
-
EventEmitter.prototype._events = void 0;
|
|
1996
|
-
EventEmitter.prototype._eventsCount = 0;
|
|
1997
|
-
EventEmitter.prototype._maxListeners = void 0;
|
|
1998
|
-
var defaultMaxListeners = 10;
|
|
1999
|
-
function checkListener(listener) {
|
|
2000
|
-
if (typeof listener !== "function") {
|
|
2001
|
-
throw new TypeError('The "listener" argument must be of type Function. Received type ' + typeof listener);
|
|
2002
|
-
}
|
|
2003
|
-
}
|
|
2004
|
-
Object.defineProperty(EventEmitter, "defaultMaxListeners", {
|
|
2005
|
-
enumerable: true,
|
|
2006
|
-
get: function() {
|
|
2007
|
-
return defaultMaxListeners;
|
|
2008
|
-
},
|
|
2009
|
-
set: function(arg) {
|
|
2010
|
-
if (typeof arg !== "number" || arg < 0 || NumberIsNaN(arg)) {
|
|
2011
|
-
throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received ' + arg + ".");
|
|
2012
|
-
}
|
|
2013
|
-
defaultMaxListeners = arg;
|
|
2014
|
-
}
|
|
2015
|
-
});
|
|
2016
|
-
EventEmitter.init = function() {
|
|
2017
|
-
if (this._events === void 0 || this._events === Object.getPrototypeOf(this)._events) {
|
|
2018
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
2019
|
-
this._eventsCount = 0;
|
|
2020
|
-
}
|
|
2021
|
-
this._maxListeners = this._maxListeners || void 0;
|
|
2022
|
-
};
|
|
2023
|
-
EventEmitter.prototype.setMaxListeners = function setMaxListeners(n) {
|
|
2024
|
-
if (typeof n !== "number" || n < 0 || NumberIsNaN(n)) {
|
|
2025
|
-
throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received ' + n + ".");
|
|
2026
|
-
}
|
|
2027
|
-
this._maxListeners = n;
|
|
2028
|
-
return this;
|
|
2029
|
-
};
|
|
2030
|
-
function _getMaxListeners(that) {
|
|
2031
|
-
if (that._maxListeners === void 0)
|
|
2032
|
-
return EventEmitter.defaultMaxListeners;
|
|
2033
|
-
return that._maxListeners;
|
|
2034
|
-
}
|
|
2035
|
-
EventEmitter.prototype.getMaxListeners = function getMaxListeners() {
|
|
2036
|
-
return _getMaxListeners(this);
|
|
2037
|
-
};
|
|
2038
|
-
EventEmitter.prototype.emit = function emit(type) {
|
|
2039
|
-
var args = [];
|
|
2040
|
-
for (var i = 1; i < arguments.length; i++)
|
|
2041
|
-
args.push(arguments[i]);
|
|
2042
|
-
var doError = type === "error";
|
|
2043
|
-
var events2 = this._events;
|
|
2044
|
-
if (events2 !== void 0)
|
|
2045
|
-
doError = doError && events2.error === void 0;
|
|
2046
|
-
else if (!doError)
|
|
2047
|
-
return false;
|
|
2048
|
-
if (doError) {
|
|
2049
|
-
var er;
|
|
2050
|
-
if (args.length > 0)
|
|
2051
|
-
er = args[0];
|
|
2052
|
-
if (er instanceof Error) {
|
|
2053
|
-
throw er;
|
|
2134
|
+
function utf16leToBytes(str, units) {
|
|
2135
|
+
var c, hi, lo;
|
|
2136
|
+
var byteArray = [];
|
|
2137
|
+
for (var i = 0; i < str.length; ++i) {
|
|
2138
|
+
if ((units -= 2) < 0)
|
|
2139
|
+
break;
|
|
2140
|
+
c = str.charCodeAt(i);
|
|
2141
|
+
hi = c >> 8;
|
|
2142
|
+
lo = c % 256;
|
|
2143
|
+
byteArray.push(lo);
|
|
2144
|
+
byteArray.push(hi);
|
|
2145
|
+
}
|
|
2146
|
+
return byteArray;
|
|
2054
2147
|
}
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
throw err;
|
|
2058
|
-
}
|
|
2059
|
-
var handler = events2[type];
|
|
2060
|
-
if (handler === void 0)
|
|
2061
|
-
return false;
|
|
2062
|
-
if (typeof handler === "function") {
|
|
2063
|
-
ReflectApply(handler, this, args);
|
|
2064
|
-
} else {
|
|
2065
|
-
var len = handler.length;
|
|
2066
|
-
var listeners = arrayClone(handler, len);
|
|
2067
|
-
for (var i = 0; i < len; ++i)
|
|
2068
|
-
ReflectApply(listeners[i], this, args);
|
|
2069
|
-
}
|
|
2070
|
-
return true;
|
|
2071
|
-
};
|
|
2072
|
-
function _addListener(target, type, listener, prepend) {
|
|
2073
|
-
var m;
|
|
2074
|
-
var events2;
|
|
2075
|
-
var existing;
|
|
2076
|
-
checkListener(listener);
|
|
2077
|
-
events2 = target._events;
|
|
2078
|
-
if (events2 === void 0) {
|
|
2079
|
-
events2 = target._events = /* @__PURE__ */ Object.create(null);
|
|
2080
|
-
target._eventsCount = 0;
|
|
2081
|
-
} else {
|
|
2082
|
-
if (events2.newListener !== void 0) {
|
|
2083
|
-
target.emit(
|
|
2084
|
-
"newListener",
|
|
2085
|
-
type,
|
|
2086
|
-
listener.listener ? listener.listener : listener
|
|
2087
|
-
);
|
|
2088
|
-
events2 = target._events;
|
|
2148
|
+
function base64ToBytes(str) {
|
|
2149
|
+
return base64.toByteArray(base64clean(str));
|
|
2089
2150
|
}
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
existing = events2[type] = prepend ? [listener, existing] : [existing, listener];
|
|
2098
|
-
} else if (prepend) {
|
|
2099
|
-
existing.unshift(listener);
|
|
2100
|
-
} else {
|
|
2101
|
-
existing.push(listener);
|
|
2151
|
+
function blitBuffer(src2, dst, offset, length) {
|
|
2152
|
+
for (var i = 0; i < length; ++i) {
|
|
2153
|
+
if (i + offset >= dst.length || i >= src2.length)
|
|
2154
|
+
break;
|
|
2155
|
+
dst[i + offset] = src2[i];
|
|
2156
|
+
}
|
|
2157
|
+
return i;
|
|
2102
2158
|
}
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
existing.warned = true;
|
|
2106
|
-
var w = new Error("Possible EventEmitter memory leak detected. " + existing.length + " " + String(type) + " listeners added. Use emitter.setMaxListeners() to increase limit");
|
|
2107
|
-
w.name = "MaxListenersExceededWarning";
|
|
2108
|
-
w.emitter = target;
|
|
2109
|
-
w.type = type;
|
|
2110
|
-
w.count = existing.length;
|
|
2111
|
-
ProcessEmitWarning(w);
|
|
2159
|
+
function isInstance(obj, type) {
|
|
2160
|
+
return obj instanceof type || obj != null && obj.constructor != null && obj.constructor.name != null && obj.constructor.name === type.name;
|
|
2112
2161
|
}
|
|
2113
|
-
|
|
2114
|
-
|
|
2162
|
+
function numberIsNaN(obj) {
|
|
2163
|
+
return obj !== obj;
|
|
2164
|
+
}
|
|
2165
|
+
var hexSliceLookupTable = function() {
|
|
2166
|
+
var alphabet = "0123456789abcdef";
|
|
2167
|
+
var table = new Array(256);
|
|
2168
|
+
for (var i = 0; i < 16; ++i) {
|
|
2169
|
+
var i16 = i * 16;
|
|
2170
|
+
for (var j = 0; j < 16; ++j) {
|
|
2171
|
+
table[i16 + j] = alphabet[i] + alphabet[j];
|
|
2172
|
+
}
|
|
2173
|
+
}
|
|
2174
|
+
return table;
|
|
2175
|
+
}();
|
|
2176
|
+
})(buffer);
|
|
2177
|
+
return buffer;
|
|
2115
2178
|
}
|
|
2116
|
-
|
|
2117
|
-
|
|
2118
|
-
};
|
|
2119
|
-
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
function onceWrapper() {
|
|
2124
|
-
if (!this.fired) {
|
|
2125
|
-
this.target.removeListener(this.type, this.wrapFn);
|
|
2126
|
-
this.fired = true;
|
|
2127
|
-
if (arguments.length === 0)
|
|
2128
|
-
return this.listener.call(this.target);
|
|
2129
|
-
return this.listener.apply(this.target, arguments);
|
|
2130
|
-
}
|
|
2179
|
+
requireBuffer();
|
|
2180
|
+
var browser$1 = { exports: {} };
|
|
2181
|
+
var process = browser$1.exports = {};
|
|
2182
|
+
var cachedSetTimeout;
|
|
2183
|
+
var cachedClearTimeout;
|
|
2184
|
+
function defaultSetTimout() {
|
|
2185
|
+
throw new Error("setTimeout has not been defined");
|
|
2131
2186
|
}
|
|
2132
|
-
function
|
|
2133
|
-
|
|
2134
|
-
var wrapped = onceWrapper.bind(state2);
|
|
2135
|
-
wrapped.listener = listener;
|
|
2136
|
-
state2.wrapFn = wrapped;
|
|
2137
|
-
return wrapped;
|
|
2187
|
+
function defaultClearTimeout() {
|
|
2188
|
+
throw new Error("clearTimeout has not been defined");
|
|
2138
2189
|
}
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
checkListener(listener);
|
|
2146
|
-
this.prependListener(type, _onceWrap(this, type, listener));
|
|
2147
|
-
return this;
|
|
2148
|
-
};
|
|
2149
|
-
EventEmitter.prototype.removeListener = function removeListener(type, listener) {
|
|
2150
|
-
var list, events2, position, i, originalListener;
|
|
2151
|
-
checkListener(listener);
|
|
2152
|
-
events2 = this._events;
|
|
2153
|
-
if (events2 === void 0)
|
|
2154
|
-
return this;
|
|
2155
|
-
list = events2[type];
|
|
2156
|
-
if (list === void 0)
|
|
2157
|
-
return this;
|
|
2158
|
-
if (list === listener || list.listener === listener) {
|
|
2159
|
-
if (--this._eventsCount === 0)
|
|
2160
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
2161
|
-
else {
|
|
2162
|
-
delete events2[type];
|
|
2163
|
-
if (events2.removeListener)
|
|
2164
|
-
this.emit("removeListener", type, list.listener || listener);
|
|
2165
|
-
}
|
|
2166
|
-
} else if (typeof list !== "function") {
|
|
2167
|
-
position = -1;
|
|
2168
|
-
for (i = list.length - 1; i >= 0; i--) {
|
|
2169
|
-
if (list[i] === listener || list[i].listener === listener) {
|
|
2170
|
-
originalListener = list[i].listener;
|
|
2171
|
-
position = i;
|
|
2172
|
-
break;
|
|
2173
|
-
}
|
|
2190
|
+
(function() {
|
|
2191
|
+
try {
|
|
2192
|
+
if (typeof setTimeout === "function") {
|
|
2193
|
+
cachedSetTimeout = setTimeout;
|
|
2194
|
+
} else {
|
|
2195
|
+
cachedSetTimeout = defaultSetTimout;
|
|
2174
2196
|
}
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2197
|
+
} catch (e) {
|
|
2198
|
+
cachedSetTimeout = defaultSetTimout;
|
|
2199
|
+
}
|
|
2200
|
+
try {
|
|
2201
|
+
if (typeof clearTimeout === "function") {
|
|
2202
|
+
cachedClearTimeout = clearTimeout;
|
|
2203
|
+
} else {
|
|
2204
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
2181
2205
|
}
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
if (events2.removeListener !== void 0)
|
|
2185
|
-
this.emit("removeListener", type, originalListener || listener);
|
|
2206
|
+
} catch (e) {
|
|
2207
|
+
cachedClearTimeout = defaultClearTimeout;
|
|
2186
2208
|
}
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
return
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
delete events2[type];
|
|
2209
|
+
})();
|
|
2210
|
+
function runTimeout(fun) {
|
|
2211
|
+
if (cachedSetTimeout === setTimeout) {
|
|
2212
|
+
return setTimeout(fun, 0);
|
|
2213
|
+
}
|
|
2214
|
+
if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {
|
|
2215
|
+
cachedSetTimeout = setTimeout;
|
|
2216
|
+
return setTimeout(fun, 0);
|
|
2217
|
+
}
|
|
2218
|
+
try {
|
|
2219
|
+
return cachedSetTimeout(fun, 0);
|
|
2220
|
+
} catch (e) {
|
|
2221
|
+
try {
|
|
2222
|
+
return cachedSetTimeout.call(null, fun, 0);
|
|
2223
|
+
} catch (e2) {
|
|
2224
|
+
return cachedSetTimeout.call(this, fun, 0);
|
|
2204
2225
|
}
|
|
2205
|
-
return this;
|
|
2206
2226
|
}
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
key = keys[i];
|
|
2212
|
-
if (key === "removeListener")
|
|
2213
|
-
continue;
|
|
2214
|
-
this.removeAllListeners(key);
|
|
2215
|
-
}
|
|
2216
|
-
this.removeAllListeners("removeListener");
|
|
2217
|
-
this._events = /* @__PURE__ */ Object.create(null);
|
|
2218
|
-
this._eventsCount = 0;
|
|
2219
|
-
return this;
|
|
2227
|
+
}
|
|
2228
|
+
function runClearTimeout(marker) {
|
|
2229
|
+
if (cachedClearTimeout === clearTimeout) {
|
|
2230
|
+
return clearTimeout(marker);
|
|
2220
2231
|
}
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
}
|
|
2225
|
-
|
|
2226
|
-
|
|
2232
|
+
if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {
|
|
2233
|
+
cachedClearTimeout = clearTimeout;
|
|
2234
|
+
return clearTimeout(marker);
|
|
2235
|
+
}
|
|
2236
|
+
try {
|
|
2237
|
+
return cachedClearTimeout(marker);
|
|
2238
|
+
} catch (e) {
|
|
2239
|
+
try {
|
|
2240
|
+
return cachedClearTimeout.call(null, marker);
|
|
2241
|
+
} catch (e2) {
|
|
2242
|
+
return cachedClearTimeout.call(this, marker);
|
|
2227
2243
|
}
|
|
2228
2244
|
}
|
|
2229
|
-
return this;
|
|
2230
|
-
};
|
|
2231
|
-
function _listeners(target, type, unwrap) {
|
|
2232
|
-
var events2 = target._events;
|
|
2233
|
-
if (events2 === void 0)
|
|
2234
|
-
return [];
|
|
2235
|
-
var evlistener = events2[type];
|
|
2236
|
-
if (evlistener === void 0)
|
|
2237
|
-
return [];
|
|
2238
|
-
if (typeof evlistener === "function")
|
|
2239
|
-
return unwrap ? [evlistener.listener || evlistener] : [evlistener];
|
|
2240
|
-
return unwrap ? unwrapListeners(evlistener) : arrayClone(evlistener, evlistener.length);
|
|
2241
2245
|
}
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
2249
|
-
|
|
2250
|
-
|
|
2246
|
+
var queue = [];
|
|
2247
|
+
var draining = false;
|
|
2248
|
+
var currentQueue;
|
|
2249
|
+
var queueIndex = -1;
|
|
2250
|
+
function cleanUpNextTick() {
|
|
2251
|
+
if (!draining || !currentQueue) {
|
|
2252
|
+
return;
|
|
2253
|
+
}
|
|
2254
|
+
draining = false;
|
|
2255
|
+
if (currentQueue.length) {
|
|
2256
|
+
queue = currentQueue.concat(queue);
|
|
2251
2257
|
} else {
|
|
2252
|
-
|
|
2258
|
+
queueIndex = -1;
|
|
2253
2259
|
}
|
|
2254
|
-
|
|
2255
|
-
|
|
2256
|
-
function listenerCount(type) {
|
|
2257
|
-
var events2 = this._events;
|
|
2258
|
-
if (events2 !== void 0) {
|
|
2259
|
-
var evlistener = events2[type];
|
|
2260
|
-
if (typeof evlistener === "function") {
|
|
2261
|
-
return 1;
|
|
2262
|
-
} else if (evlistener !== void 0) {
|
|
2263
|
-
return evlistener.length;
|
|
2264
|
-
}
|
|
2260
|
+
if (queue.length) {
|
|
2261
|
+
drainQueue();
|
|
2265
2262
|
}
|
|
2266
|
-
return 0;
|
|
2267
|
-
}
|
|
2268
|
-
EventEmitter.prototype.eventNames = function eventNames() {
|
|
2269
|
-
return this._eventsCount > 0 ? ReflectOwnKeys(this._events) : [];
|
|
2270
|
-
};
|
|
2271
|
-
function arrayClone(arr, n) {
|
|
2272
|
-
var copy = new Array(n);
|
|
2273
|
-
for (var i = 0; i < n; ++i)
|
|
2274
|
-
copy[i] = arr[i];
|
|
2275
|
-
return copy;
|
|
2276
|
-
}
|
|
2277
|
-
function spliceOne(list, index) {
|
|
2278
|
-
for (; index + 1 < list.length; index++)
|
|
2279
|
-
list[index] = list[index + 1];
|
|
2280
|
-
list.pop();
|
|
2281
2263
|
}
|
|
2282
|
-
function
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
ret[i] = arr[i].listener || arr[i];
|
|
2264
|
+
function drainQueue() {
|
|
2265
|
+
if (draining) {
|
|
2266
|
+
return;
|
|
2286
2267
|
}
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2290
|
-
|
|
2291
|
-
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
if (typeof emitter.removeListener === "function") {
|
|
2297
|
-
emitter.removeListener("error", errorListener);
|
|
2268
|
+
var timeout = runTimeout(cleanUpNextTick);
|
|
2269
|
+
draining = true;
|
|
2270
|
+
var len = queue.length;
|
|
2271
|
+
while (len) {
|
|
2272
|
+
currentQueue = queue;
|
|
2273
|
+
queue = [];
|
|
2274
|
+
while (++queueIndex < len) {
|
|
2275
|
+
if (currentQueue) {
|
|
2276
|
+
currentQueue[queueIndex].run();
|
|
2298
2277
|
}
|
|
2299
|
-
resolve2([].slice.call(arguments));
|
|
2300
|
-
}
|
|
2301
|
-
eventTargetAgnosticAddListener(emitter, name, resolver, { once: true });
|
|
2302
|
-
if (name !== "error") {
|
|
2303
|
-
addErrorHandlerIfEventEmitter(emitter, errorListener, { once: true });
|
|
2304
2278
|
}
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
function addErrorHandlerIfEventEmitter(emitter, handler, flags) {
|
|
2308
|
-
if (typeof emitter.on === "function") {
|
|
2309
|
-
eventTargetAgnosticAddListener(emitter, "error", handler, flags);
|
|
2279
|
+
queueIndex = -1;
|
|
2280
|
+
len = queue.length;
|
|
2310
2281
|
}
|
|
2282
|
+
currentQueue = null;
|
|
2283
|
+
draining = false;
|
|
2284
|
+
runClearTimeout(timeout);
|
|
2311
2285
|
}
|
|
2312
|
-
function
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
emitter.on(name, listener);
|
|
2286
|
+
process.nextTick = function(fun) {
|
|
2287
|
+
var args = new Array(arguments.length - 1);
|
|
2288
|
+
if (arguments.length > 1) {
|
|
2289
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
2290
|
+
args[i - 1] = arguments[i];
|
|
2318
2291
|
}
|
|
2319
|
-
} else if (typeof emitter.addEventListener === "function") {
|
|
2320
|
-
emitter.addEventListener(name, function wrapListener(arg) {
|
|
2321
|
-
if (flags.once) {
|
|
2322
|
-
emitter.removeEventListener(name, wrapListener);
|
|
2323
|
-
}
|
|
2324
|
-
listener(arg);
|
|
2325
|
-
});
|
|
2326
|
-
} else {
|
|
2327
|
-
throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type ' + typeof emitter);
|
|
2328
2292
|
}
|
|
2293
|
+
queue.push(new Item(fun, args));
|
|
2294
|
+
if (queue.length === 1 && !draining) {
|
|
2295
|
+
runTimeout(drainQueue);
|
|
2296
|
+
}
|
|
2297
|
+
};
|
|
2298
|
+
function Item(fun, array) {
|
|
2299
|
+
this.fun = fun;
|
|
2300
|
+
this.array = array;
|
|
2329
2301
|
}
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
writable: true,
|
|
2341
|
-
configurable: true
|
|
2342
|
-
}
|
|
2343
|
-
});
|
|
2344
|
-
}
|
|
2345
|
-
};
|
|
2346
|
-
} else {
|
|
2347
|
-
inherits_browser.exports = function inherits2(ctor, superCtor) {
|
|
2348
|
-
if (superCtor) {
|
|
2349
|
-
ctor.super_ = superCtor;
|
|
2350
|
-
var TempCtor = function() {
|
|
2351
|
-
};
|
|
2352
|
-
TempCtor.prototype = superCtor.prototype;
|
|
2353
|
-
ctor.prototype = new TempCtor();
|
|
2354
|
-
ctor.prototype.constructor = ctor;
|
|
2355
|
-
}
|
|
2356
|
-
};
|
|
2302
|
+
Item.prototype.run = function() {
|
|
2303
|
+
this.fun.apply(null, this.array);
|
|
2304
|
+
};
|
|
2305
|
+
process.title = "browser";
|
|
2306
|
+
process.browser = true;
|
|
2307
|
+
process.env = {};
|
|
2308
|
+
process.argv = [];
|
|
2309
|
+
process.version = "";
|
|
2310
|
+
process.versions = {};
|
|
2311
|
+
function noop() {
|
|
2357
2312
|
}
|
|
2358
|
-
|
|
2313
|
+
process.on = noop;
|
|
2314
|
+
process.addListener = noop;
|
|
2315
|
+
process.once = noop;
|
|
2316
|
+
process.off = noop;
|
|
2317
|
+
process.removeListener = noop;
|
|
2318
|
+
process.removeAllListeners = noop;
|
|
2319
|
+
process.emit = noop;
|
|
2320
|
+
process.prependListener = noop;
|
|
2321
|
+
process.prependOnceListener = noop;
|
|
2322
|
+
process.listeners = function(name) {
|
|
2323
|
+
return [];
|
|
2324
|
+
};
|
|
2325
|
+
process.binding = function(name) {
|
|
2326
|
+
throw new Error("process.binding is not supported");
|
|
2327
|
+
};
|
|
2328
|
+
process.cwd = function() {
|
|
2329
|
+
return "/";
|
|
2330
|
+
};
|
|
2331
|
+
process.chdir = function(dir) {
|
|
2332
|
+
throw new Error("process.chdir is not supported");
|
|
2333
|
+
};
|
|
2334
|
+
process.umask = function() {
|
|
2335
|
+
return 0;
|
|
2336
|
+
};
|
|
2337
|
+
var browserExports = browser$1.exports;
|
|
2338
|
+
const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
|
|
2339
|
+
(function(Object2) {
|
|
2340
|
+
function get() {
|
|
2341
|
+
var _global2 = this || self;
|
|
2342
|
+
delete Object2.prototype.__magic__;
|
|
2343
|
+
return _global2;
|
|
2344
|
+
}
|
|
2345
|
+
if (typeof globalThis === "object") {
|
|
2346
|
+
return globalThis;
|
|
2347
|
+
}
|
|
2348
|
+
if (this) {
|
|
2349
|
+
return get();
|
|
2350
|
+
} else {
|
|
2351
|
+
Object2.defineProperty(Object2.prototype, "__magic__", {
|
|
2352
|
+
configurable: true,
|
|
2353
|
+
get
|
|
2354
|
+
});
|
|
2355
|
+
var _global = __magic__;
|
|
2356
|
+
return _global;
|
|
2357
|
+
}
|
|
2358
|
+
})(Object);
|
|
2359
2359
|
var streamBrowser;
|
|
2360
2360
|
var hasRequiredStreamBrowser;
|
|
2361
2361
|
function requireStreamBrowser() {
|
|
@@ -7133,7 +7133,7 @@ var __publicField = (obj, key, value) => {
|
|
|
7133
7133
|
}
|
|
7134
7134
|
});
|
|
7135
7135
|
SAXStream.prototype.write = function(data) {
|
|
7136
|
-
if (typeof
|
|
7136
|
+
if (typeof Buffer === "function" && typeof Buffer.isBuffer === "function" && Buffer.isBuffer(data)) {
|
|
7137
7137
|
if (!this._decoder) {
|
|
7138
7138
|
var SD = requireString_decoder().StringDecoder;
|
|
7139
7139
|
this._decoder = new SD("utf8");
|
|
@@ -9082,7 +9082,7 @@ var __publicField = (obj, key, value) => {
|
|
|
9082
9082
|
};
|
|
9083
9083
|
var js2xml$1 = js2xml$2;
|
|
9084
9084
|
var json2xml$1 = function(json, options2) {
|
|
9085
|
-
if (json instanceof
|
|
9085
|
+
if (json instanceof Buffer) {
|
|
9086
9086
|
json = json.toString();
|
|
9087
9087
|
}
|
|
9088
9088
|
var js = null;
|
|
@@ -15777,19 +15777,19 @@ var __publicField = (obj, key, value) => {
|
|
|
15777
15777
|
this._helper.resume();
|
|
15778
15778
|
}, t.exports = n;
|
|
15779
15779
|
}, { "../utils": 32, "readable-stream": 16 }], 14: [function(e, t, r) {
|
|
15780
|
-
t.exports = { isNode: "undefined" != typeof
|
|
15781
|
-
if (
|
|
15782
|
-
return
|
|
15780
|
+
t.exports = { isNode: "undefined" != typeof Buffer, newBufferFrom: function(e2, t2) {
|
|
15781
|
+
if (Buffer.from && Buffer.from !== Uint8Array.from)
|
|
15782
|
+
return Buffer.from(e2, t2);
|
|
15783
15783
|
if ("number" == typeof e2)
|
|
15784
15784
|
throw new Error('The "data" argument must not be a number');
|
|
15785
|
-
return new
|
|
15785
|
+
return new Buffer(e2, t2);
|
|
15786
15786
|
}, allocBuffer: function(e2) {
|
|
15787
|
-
if (
|
|
15788
|
-
return
|
|
15789
|
-
var t2 = new
|
|
15787
|
+
if (Buffer.alloc)
|
|
15788
|
+
return Buffer.alloc(e2);
|
|
15789
|
+
var t2 = new Buffer(e2);
|
|
15790
15790
|
return t2.fill(0), t2;
|
|
15791
15791
|
}, isBuffer: function(e2) {
|
|
15792
|
-
return
|
|
15792
|
+
return Buffer.isBuffer(e2);
|
|
15793
15793
|
}, isStream: function(e2) {
|
|
15794
15794
|
return e2 && "function" == typeof e2.on && "function" == typeof e2.pause && "function" == typeof e2.resume;
|
|
15795
15795
|
} };
|
|
@@ -16143,7 +16143,7 @@ var __publicField = (obj, key, value) => {
|
|
|
16143
16143
|
i3.set(t3[r3], n3), n3 += t3[r3].length;
|
|
16144
16144
|
return i3;
|
|
16145
16145
|
case "nodebuffer":
|
|
16146
|
-
return
|
|
16146
|
+
return Buffer.concat(t3);
|
|
16147
16147
|
default:
|
|
16148
16148
|
throw new Error("concat : unsupported type '" + e4 + "'");
|
|
16149
16149
|
}
|
|
@@ -16191,7 +16191,7 @@ var __publicField = (obj, key, value) => {
|
|
|
16191
16191
|
return new o(this, { objectMode: "nodebuffer" !== this._outputType }, e2);
|
|
16192
16192
|
} }, t.exports = f;
|
|
16193
16193
|
}, { "../base64": 1, "../external": 6, "../nodejs/NodejsStreamOutputAdapter": 13, "../support": 30, "../utils": 32, "./ConvertWorker": 24, "./GenericWorker": 28 }], 30: [function(e, t, r) {
|
|
16194
|
-
if (r.base64 = true, r.array = true, r.string = true, r.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array, r.nodebuffer = "undefined" != typeof
|
|
16194
|
+
if (r.base64 = true, r.array = true, r.string = true, r.arraybuffer = "undefined" != typeof ArrayBuffer && "undefined" != typeof Uint8Array, r.nodebuffer = "undefined" != typeof Buffer, r.uint8array = "undefined" != typeof Uint8Array, "undefined" == typeof ArrayBuffer)
|
|
16195
16195
|
r.blob = false;
|
|
16196
16196
|
else {
|
|
16197
16197
|
var n = new ArrayBuffer(0);
|
|
@@ -19146,7 +19146,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19146
19146
|
const binaryContentMap = /* @__PURE__ */ new Map();
|
|
19147
19147
|
for (const [key, value] of Object.entries(zipContent.files)) {
|
|
19148
19148
|
if (!key.endsWith(".xml") && !key.endsWith(".rels")) {
|
|
19149
|
-
binaryContentMap.set(key, await value.async("
|
|
19149
|
+
binaryContentMap.set(key, await value.async("uint8array"));
|
|
19150
19150
|
continue;
|
|
19151
19151
|
}
|
|
19152
19152
|
const json = toJson(await value.async("text"));
|
|
@@ -19261,7 +19261,7 @@ var __publicField = (obj, key, value) => {
|
|
|
19261
19261
|
zip.file(`word/media/${fileName}`, stream);
|
|
19262
19262
|
}
|
|
19263
19263
|
return zip.generateAsync({
|
|
19264
|
-
type: "
|
|
19264
|
+
type: "uint8array",
|
|
19265
19265
|
mimeType: "application/vnd.openxmlformats-officedocument.wordprocessingml.document",
|
|
19266
19266
|
compression: "DEFLATE"
|
|
19267
19267
|
});
|