cadviewer 11.16.8 → 12.2.12

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.
@@ -0,0 +1,545 @@
1
+ /*
2
+ object-assign
3
+ (c) Sindre Sorhus
4
+ @license MIT
5
+ */
6
+
7
+ /*!
8
+ * Bootstrap v5.3.8 (https://getbootstrap.com/)
9
+ * Copyright 2011-2025 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
10
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
11
+ */
12
+
13
+ /*!
14
+ * jQuery Color Animations v2.1.2
15
+ * https://github.com/jquery/jquery-color
16
+ *
17
+ * Copyright 2014 jQuery Foundation and other contributors
18
+ * Released under the MIT license.
19
+ * http://jquery.org/license
20
+ *
21
+ * Date: Wed Jan 16 08:47:09 2013 -0600
22
+ */
23
+
24
+ /*!
25
+ * jQuery JavaScript Library v3.7.1
26
+ * https://jquery.com/
27
+ *
28
+ * Copyright OpenJS Foundation and other contributors
29
+ * Released under the MIT license
30
+ * https://jquery.org/license
31
+ *
32
+ * Date: 2023-08-28T13:37Z
33
+ */
34
+
35
+ /*!
36
+ * jQuery UI Autocomplete 1.12.1
37
+ * http://jqueryui.com
38
+ *
39
+ * Copyright jQuery Foundation and other contributors
40
+ * Released under the MIT license.
41
+ * http://jquery.org/license
42
+ */
43
+
44
+ /*!
45
+ * jQuery UI Button 1.12.1
46
+ * http://jqueryui.com
47
+ *
48
+ * Copyright jQuery Foundation and other contributors
49
+ * Released under the MIT license.
50
+ * http://jquery.org/license
51
+ */
52
+
53
+ /*!
54
+ * jQuery UI Checkboxradio 1.12.1
55
+ * http://jqueryui.com
56
+ *
57
+ * Copyright jQuery Foundation and other contributors
58
+ * Released under the MIT license.
59
+ * http://jquery.org/license
60
+ */
61
+
62
+ /*!
63
+ * jQuery UI Controlgroup 1.12.1
64
+ * http://jqueryui.com
65
+ *
66
+ * Copyright jQuery Foundation and other contributors
67
+ * Released under the MIT license.
68
+ * http://jquery.org/license
69
+ */
70
+
71
+ /*!
72
+ * jQuery UI Datepicker 1.12.1
73
+ * http://jqueryui.com
74
+ *
75
+ * Copyright jQuery Foundation and other contributors
76
+ * Released under the MIT license.
77
+ * http://jquery.org/license
78
+ */
79
+
80
+ /*!
81
+ * jQuery UI Dialog 1.12.1
82
+ * http://jqueryui.com
83
+ *
84
+ * Copyright jQuery Foundation and other contributors
85
+ * Released under the MIT license.
86
+ * http://jquery.org/license
87
+ */
88
+
89
+ /*!
90
+ * jQuery UI Draggable 1.12.1
91
+ * http://jqueryui.com
92
+ *
93
+ * Copyright jQuery Foundation and other contributors
94
+ * Released under the MIT license.
95
+ * http://jquery.org/license
96
+ */
97
+
98
+ /*!
99
+ * jQuery UI Droppable 1.12.1
100
+ * http://jqueryui.com
101
+ *
102
+ * Copyright jQuery Foundation and other contributors
103
+ * Released under the MIT license.
104
+ * http://jquery.org/license
105
+ */
106
+
107
+ /*!
108
+ * jQuery UI Effects 1.12.1
109
+ * http://jqueryui.com
110
+ *
111
+ * Copyright jQuery Foundation and other contributors
112
+ * Released under the MIT license.
113
+ * http://jquery.org/license
114
+ */
115
+
116
+ /*!
117
+ * jQuery UI Focusable 1.12.1
118
+ * http://jqueryui.com
119
+ *
120
+ * Copyright jQuery Foundation and other contributors
121
+ * Released under the MIT license.
122
+ * http://jquery.org/license
123
+ */
124
+
125
+ /*!
126
+ * jQuery UI Keycode 1.12.1
127
+ * http://jqueryui.com
128
+ *
129
+ * Copyright jQuery Foundation and other contributors
130
+ * Released under the MIT license.
131
+ * http://jquery.org/license
132
+ */
133
+
134
+ /*!
135
+ * jQuery UI Position 1.12.1
136
+ * http://jqueryui.com
137
+ *
138
+ * Copyright jQuery Foundation and other contributors
139
+ * Released under the MIT license.
140
+ * http://jquery.org/license
141
+ *
142
+ * http://api.jqueryui.com/position/
143
+ */
144
+
145
+ /*!
146
+ * jQuery UI Resizable 1.12.1
147
+ * http://jqueryui.com
148
+ *
149
+ * Copyright jQuery Foundation and other contributors
150
+ * Released under the MIT license.
151
+ * http://jquery.org/license
152
+ */
153
+
154
+ /*!
155
+ * jQuery UI Spinner 1.12.1
156
+ * http://jqueryui.com
157
+ *
158
+ * Copyright jQuery Foundation and other contributors
159
+ * Released under the MIT license.
160
+ * http://jquery.org/license
161
+ */
162
+
163
+ /*!
164
+ * jQuery UI Support for jQuery core 1.7.x 1.12.1
165
+ * http://jqueryui.com
166
+ *
167
+ * Copyright jQuery Foundation and other contributors
168
+ * Released under the MIT license.
169
+ * http://jquery.org/license
170
+ *
171
+ */
172
+
173
+ /*!
174
+ * jQuery UI Tabs 1.12.1
175
+ * http://jqueryui.com
176
+ *
177
+ * Copyright jQuery Foundation and other contributors
178
+ * Released under the MIT license.
179
+ * http://jquery.org/license
180
+ */
181
+
182
+ /*!
183
+ * jQuery UI Tooltip 1.12.1
184
+ * http://jqueryui.com
185
+ *
186
+ * Copyright jQuery Foundation and other contributors
187
+ * Released under the MIT license.
188
+ * http://jquery.org/license
189
+ */
190
+
191
+ /*!
192
+ * jQuery UI Widget 1.12.1
193
+ * http://jqueryui.com
194
+ *
195
+ * Copyright jQuery Foundation and other contributors
196
+ * Released under the MIT license.
197
+ * http://jquery.org/license
198
+ */
199
+
200
+ /*! jQuery UI - v1.12.1 - 2017-03-19
201
+ * http://jqueryui.com
202
+ * Includes: widget.js, position.js, data.js, disable-selection.js, focusable.js, form-reset-mixin.js, jquery-1-7.js, keycode.js, labels.js, scroll-parent.js, tabbable.js, unique-id.js, widgets/draggable.js, widgets/droppable.js, widgets/resizable.js, widgets/selectable.js, widgets/sortable.js, widgets/accordion.js, widgets/autocomplete.js, widgets/button.js, widgets/checkboxradio.js, widgets/controlgroup.js, widgets/datepicker.js, widgets/dialog.js, widgets/menu.js, widgets/mouse.js, widgets/progressbar.js, widgets/selectmenu.js, widgets/slider.js, widgets/spinner.js, widgets/tabs.js, widgets/tooltip.js, effect.js, effects/effect-blind.js, effects/effect-bounce.js, effects/effect-clip.js, effects/effect-drop.js, effects/effect-explode.js, effects/effect-fade.js, effects/effect-fold.js, effects/effect-highlight.js, effects/effect-puff.js, effects/effect-pulsate.js, effects/effect-scale.js, effects/effect-shake.js, effects/effect-size.js, effects/effect-slide.js, effects/effect-transfer.js
203
+ * Copyright jQuery Foundation and other contributors; Licensed MIT */
204
+
205
+ /**
206
+ * @license
207
+ Copyright (c) 2008, Adobe Systems Incorporated
208
+ All rights reserved.
209
+
210
+ Redistribution and use in source and binary forms, with or without
211
+ modification, are permitted provided that the following conditions are
212
+ met:
213
+
214
+ * Redistributions of source code must retain the above copyright notice,
215
+ this list of conditions and the following disclaimer.
216
+
217
+ * Redistributions in binary form must reproduce the above copyright
218
+ notice, this list of conditions and the following disclaimer in the
219
+ documentation and/or other materials provided with the distribution.
220
+
221
+ * Neither the name of Adobe Systems Incorporated nor the names of its
222
+ contributors may be used to endorse or promote products derived from
223
+ this software without specific prior written permission.
224
+
225
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
226
+ IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
227
+ THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
228
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
229
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
230
+ EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
231
+ PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
232
+ PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
233
+ LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
234
+ NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
235
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
236
+ */
237
+
238
+ /**
239
+ * @license
240
+ *
241
+ * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb
242
+ *
243
+ * Permission is hereby granted, free of charge, to any person obtaining
244
+ * a copy of this software and associated documentation files (the
245
+ * "Software"), to deal in the Software without restriction, including
246
+ * without limitation the rights to use, copy, modify, merge, publish,
247
+ * distribute, sublicense, and/or sell copies of the Software, and to
248
+ * permit persons to whom the Software is furnished to do so, subject to
249
+ * the following conditions:
250
+ *
251
+ * The above copyright notice and this permission notice shall be
252
+ * included in all copies or substantial portions of the Software.
253
+ *
254
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
255
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
256
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
257
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
258
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
259
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
260
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
261
+ * ====================================================================
262
+ */
263
+
264
+ /**
265
+ * @license
266
+ *
267
+ * Licensed under the MIT License.
268
+ * http://opensource.org/licenses/mit-license
269
+ */
270
+
271
+ /**
272
+ * @license
273
+ * (c) Dean McNamee <dean@gmail.com>, 2013.
274
+ *
275
+ * https://github.com/deanm/omggif
276
+ *
277
+ * Permission is hereby granted, free of charge, to any person obtaining a copy
278
+ * of this software and associated documentation files (the "Software"), to
279
+ * deal in the Software without restriction, including without limitation the
280
+ * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
281
+ * sell copies of the Software, and to permit persons to whom the Software is
282
+ * furnished to do so, subject to the following conditions:
283
+ *
284
+ * The above copyright notice and this permission notice shall be included in
285
+ * all copies or substantial portions of the Software.
286
+ *
287
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
288
+ * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
289
+ * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
290
+ * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
291
+ * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
292
+ * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
293
+ * IN THE SOFTWARE.
294
+ *
295
+ * omggif is a JavaScript implementation of a GIF 89a encoder and decoder,
296
+ * including animation and compression. It does not rely on any specific
297
+ * underlying system, so should run in the browser, Node, or Plask.
298
+ */
299
+
300
+ /**
301
+ * @license
302
+ * Copyright (c) 2014 Steven Spungin (TwelveTone LLC) steven@twelvetone.tv
303
+ *
304
+ * Licensed under the MIT License.
305
+ * http://opensource.org/licenses/mit-license
306
+ */
307
+
308
+ /**
309
+ * @license
310
+ * Copyright (c) 2017 Aras Abbasi
311
+ *
312
+ * Licensed under the MIT License.
313
+ * http://opensource.org/licenses/mit-license
314
+ */
315
+
316
+ /**
317
+ * @license
318
+ * Copyright (c) 2018 Aras Abbasi
319
+ *
320
+ * Licensed under the MIT License.
321
+ * http://opensource.org/licenses/mit-license
322
+ */
323
+
324
+ /**
325
+ * @license
326
+ * Copyright (c) 2019 Aras Abbasi
327
+ *
328
+ * Licensed under the MIT License.
329
+ * http://opensource.org/licenses/mit-license
330
+ */
331
+
332
+ /**
333
+ * @license
334
+ * FPDF is released under a permissive license: there is no usage restriction.
335
+ * You may embed it freely in your application (commercial or not), with or
336
+ * without modifications.
337
+ *
338
+ * Reference: http://www.fpdf.org/en/script/script37.php
339
+ */
340
+
341
+ /**
342
+ * @license
343
+ * Joseph Myers does not specify a particular license for his work.
344
+ *
345
+ * Author: Joseph Myers
346
+ * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
347
+ *
348
+ * Modified by: Owen Leong
349
+ */
350
+
351
+ /**
352
+ * @license
353
+ * Licensed under the MIT License.
354
+ * http://opensource.org/licenses/mit-license
355
+ * Author: Owen Leong (@owenl131)
356
+ * Date: 15 Oct 2020
357
+ * References:
358
+ * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
359
+ * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
360
+ * http://www.fpdf.org/en/script/script37.php
361
+ */
362
+
363
+ /**
364
+ * @license
365
+ * Licensed under the MIT License.
366
+ * http://opensource.org/licenses/mit-license
367
+ */
368
+
369
+ /**
370
+ * @license
371
+ * Unicode Bidi Engine based on the work of Alex Shensis (@asthensis)
372
+ * MIT License
373
+ */
374
+
375
+ /**
376
+ * @license
377
+ * jsPDF fileloading PlugIn
378
+ * Copyright (c) 2018 Aras Abbasi (aras.abbasi@gmail.com)
379
+ *
380
+ * Licensed under the MIT License.
381
+ * http://opensource.org/licenses/mit-license
382
+ */
383
+
384
+ /**
385
+ * @license
386
+ * jsPDF filters PlugIn
387
+ * Copyright (c) 2014 Aras Abbasi
388
+ *
389
+ * Licensed under the MIT License.
390
+ * http://opensource.org/licenses/mit-license
391
+ */
392
+
393
+ /**
394
+ * @license
395
+ * jsPDF virtual FileSystem functionality
396
+ *
397
+ * Licensed under the MIT License.
398
+ * http://opensource.org/licenses/mit-license
399
+ */
400
+
401
+ /**
402
+ * @license React
403
+ * react.production.js
404
+ *
405
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
406
+ *
407
+ * This source code is licensed under the MIT license found in the
408
+ * LICENSE file in the root directory of this source tree.
409
+ */
410
+
411
+ /**
412
+ * A class to parse color values
413
+ * @author Stoyan Stefanov <sstoo@gmail.com>
414
+ * @link http://www.phpied.com/rgb-color-parser-in-javascript/
415
+ * @license Use it if you like it
416
+ */
417
+
418
+ /**
419
+ * A class to parse color values
420
+ * @author Stoyan Stefanov <sstoo@gmail.com>
421
+ * {@link http://www.phpied.com/rgb-color-parser-in-javascript/}
422
+ * @license Use it if you like it
423
+ */
424
+
425
+ /**
426
+ * jscolor - JavaScript Color Picker
427
+ *
428
+ * @link http://jscolor.com
429
+ * @license For open source use: GPLv3
430
+ * For commercial use: JSColor Commercial License
431
+ * @author Jan Odvarko - East Desire
432
+ *
433
+ * See usage examples at http://jscolor.com/examples/
434
+ */
435
+
436
+ /** ====================================================================
437
+ * @license
438
+ * jsPDF XMP metadata plugin
439
+ * Copyright (c) 2016 Jussi Utunen, u-jussi@suomi24.fi
440
+ *
441
+ * Permission is hereby granted, free of charge, to any person obtaining
442
+ * a copy of this software and associated documentation files (the
443
+ * "Software"), to deal in the Software without restriction, including
444
+ * without limitation the rights to use, copy, modify, merge, publish,
445
+ * distribute, sublicense, and/or sell copies of the Software, and to
446
+ * permit persons to whom the Software is furnished to do so, subject to
447
+ * the following conditions:
448
+ *
449
+ * The above copyright notice and this permission notice shall be
450
+ * included in all copies or substantial portions of the Software.
451
+ *
452
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
453
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
454
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
455
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
456
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
457
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
458
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
459
+ * ====================================================================
460
+ */
461
+
462
+ /** @license
463
+ * Copyright (c) 2017 Dominik Homberger
464
+ Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
465
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
466
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
467
+ https://webpjs.appspot.com
468
+ WebPRiffParser dominikhlbg@gmail.com
469
+ */
470
+
471
+ /** @license
472
+ *
473
+ * jsPDF - PDF Document creation from JavaScript
474
+ * Version 2.5.2 Built on 2024-09-17T13:29:57.859Z
475
+ * CommitID 00000000
476
+ *
477
+ * Copyright (c) 2010-2021 James Hall <james@parall.ax>, https://github.com/MrRio/jsPDF
478
+ * 2015-2021 yWorks GmbH, http://www.yworks.com
479
+ * 2015-2021 Lukas Holländer <lukas.hollaender@yworks.com>, https://github.com/HackbrettXXX
480
+ * 2016-2018 Aras Abbasi <aras.abbasi@gmail.com>
481
+ * 2010 Aaron Spike, https://github.com/acspike
482
+ * 2012 Willow Systems Corporation, https://github.com/willowsystems
483
+ * 2012 Pablo Hess, https://github.com/pablohess
484
+ * 2012 Florian Jenett, https://github.com/fjenett
485
+ * 2013 Warren Weckesser, https://github.com/warrenweckesser
486
+ * 2013 Youssef Beddad, https://github.com/lifof
487
+ * 2013 Lee Driscoll, https://github.com/lsdriscoll
488
+ * 2013 Stefan Slonevskiy, https://github.com/stefslon
489
+ * 2013 Jeremy Morel, https://github.com/jmorel
490
+ * 2013 Christoph Hartmann, https://github.com/chris-rock
491
+ * 2014 Juan Pablo Gaviria, https://github.com/juanpgaviria
492
+ * 2014 James Makes, https://github.com/dollaruw
493
+ * 2014 Diego Casorran, https://github.com/diegocr
494
+ * 2014 Steven Spungin, https://github.com/Flamenco
495
+ * 2014 Kenneth Glassey, https://github.com/Gavvers
496
+ *
497
+ * Permission is hereby granted, free of charge, to any person obtaining
498
+ * a copy of this software and associated documentation files (the
499
+ * "Software"), to deal in the Software without restriction, including
500
+ * without limitation the rights to use, copy, modify, merge, publish,
501
+ * distribute, sublicense, and/or sell copies of the Software, and to
502
+ * permit persons to whom the Software is furnished to do so, subject to
503
+ * the following conditions:
504
+ *
505
+ * The above copyright notice and this permission notice shall be
506
+ * included in all copies or substantial portions of the Software.
507
+ *
508
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
509
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
510
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
511
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
512
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
513
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
514
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
515
+ *
516
+ * Contributor(s):
517
+ * siefkenj, ahwolf, rickygu, Midnith, saintclair, eaparango,
518
+ * kim3er, mfo, alnorth, Flamenco
519
+ */
520
+
521
+ /** @license
522
+ * Copyright (c) 2012 Willow Systems Corporation, https://github.com/willowsystems
523
+ *
524
+ * Permission is hereby granted, free of charge, to any person obtaining
525
+ * a copy of this software and associated documentation files (the
526
+ * "Software"), to deal in the Software without restriction, including
527
+ * without limitation the rights to use, copy, modify, merge, publish,
528
+ * distribute, sublicense, and/or sell copies of the Software, and to
529
+ * permit persons to whom the Software is furnished to do so, subject to
530
+ * the following conditions:
531
+ *
532
+ * The above copyright notice and this permission notice shall be
533
+ * included in all copies or substantial portions of the Software.
534
+ *
535
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
536
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
537
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
538
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
539
+ * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
540
+ * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
541
+ * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
542
+ * ====================================================================
543
+ */
544
+
545
+ //!!!!! _clone is already in prop 6.5.14d + "_clone";
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "cadviewer",
3
- "version": "11.16.8",
3
+ "version": "12.2.12",
4
4
  "description": "CADViewer - JavaScript CAD Viewer Library for FrameWorks (ReactJS, Angular, VueJS, etc.)",
5
- "main": "./dist/cadviewer_11.16.8.min.js",
5
+ "main": "./dist/cadviewer_12.2.12.min.js",
6
6
  "types": "./dist/cadviewer.d.ts",
7
7
  "scripts": {
8
8
  "test": "echo \"Use test samples on Github https://github.com/CADViewer/cadviewer-testapp-react-01 and https://github.com/CADViewer/cadviewer-testapp-angular-v02 \" && exit 1"
@@ -1,2 +0,0 @@
1
- /*! For license information please see 838.cadviewer_11.16.8.min.js.LICENSE.txt */
2
- (self.webpackChunkcadviewer=self.webpackChunkcadviewer||[]).push([[838],{2838(e){e.exports=function(){"use strict";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(t)}function t(e,n){return t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},t(e,n)}function n(e,r,o){return n=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}()?Reflect.construct:function(e,n,r){var o=[null];o.push.apply(o,n);var a=new(Function.bind.apply(e,o));return r&&t(a,r.prototype),a},n.apply(null,arguments)}function r(e){return function(e){if(Array.isArray(e))return o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var a=Object.hasOwnProperty,i=Object.setPrototypeOf,l=Object.isFrozen,c=Object.getPrototypeOf,s=Object.getOwnPropertyDescriptor,u=Object.freeze,m=Object.seal,f=Object.create,p="undefined"!=typeof Reflect&&Reflect,d=p.apply,h=p.construct;d||(d=function(e,t,n){return e.apply(t,n)}),u||(u=function(e){return e}),m||(m=function(e){return e}),h||(h=function(e,t){return n(e,r(t))});var g,y=k(Array.prototype.forEach),b=k(Array.prototype.pop),v=k(Array.prototype.push),T=k(String.prototype.toLowerCase),N=k(String.prototype.toString),E=k(String.prototype.match),A=k(String.prototype.replace),w=k(String.prototype.indexOf),S=k(String.prototype.trim),_=k(RegExp.prototype.test),x=(g=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return h(g,t)});function k(e){return function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return d(e,t,r)}}function O(e,t,n){var r;n=null!==(r=n)&&void 0!==r?r:T,i&&i(e,null);for(var o=t.length;o--;){var a=t[o];if("string"==typeof a){var c=n(a);c!==a&&(l(t)||(t[o]=c),a=c)}e[a]=!0}return e}function C(e){var t,n=f(null);for(t in e)!0===d(a,e,[t])&&(n[t]=e[t]);return n}function L(e,t){for(;null!==e;){var n=s(e,t);if(n){if(n.get)return k(n.get);if("function"==typeof n.value)return k(n.value)}e=c(e)}return function(e){return console.warn("fallback value for",e),null}}var R=u(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),D=u(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),M=u(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),I=u(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),F=u(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),U=u(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),H=u(["#text"]),z=u(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","xmlns","slot"]),P=u(["accent-height","accumulate","additive","alignment-baseline","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),B=u(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),j=u(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),G=m(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=m(/<%[\w\W]*|[\w\W]*%>/gm),q=m(/\${[\w\W]*}/gm),$=m(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=m(/^aria-[\-\w]+$/),K=m(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),V=m(/^(?:\w+script|data):/i),X=m(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Z=m(/^html$/i),J=m(/^[a-z][.\w]*(-[.\w]+)+$/i),Q=function(){return"undefined"==typeof window?null:window};return function t(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Q(),o=function(e){return t(e)};if(o.version="2.5.9",o.removed=[],!n||!n.document||9!==n.document.nodeType)return o.isSupported=!1,o;var a=n.document,i=n.document,l=n.DocumentFragment,c=n.HTMLTemplateElement,s=n.Node,m=n.Element,f=n.NodeFilter,p=n.NamedNodeMap,d=void 0===p?n.NamedNodeMap||n.MozNamedAttrMap:p,h=n.HTMLFormElement,g=n.DOMParser,k=n.trustedTypes,ee=m.prototype,te=L(ee,"cloneNode"),ne=L(ee,"nextSibling"),re=L(ee,"childNodes"),oe=L(ee,"parentNode");if("function"==typeof c){var ae=i.createElement("template");ae.content&&ae.content.ownerDocument&&(i=ae.content.ownerDocument)}var ie=function(t,n){if("object"!==e(t)||"function"!=typeof t.createPolicy)return null;var r=null,o="data-tt-policy-suffix";n.currentScript&&n.currentScript.hasAttribute(o)&&(r=n.currentScript.getAttribute(o));var a="dompurify"+(r?"#"+r:"");try{return t.createPolicy(a,{createHTML:function(e){return e},createScriptURL:function(e){return e}})}catch(e){return console.warn("TrustedTypes policy "+a+" could not be created."),null}}(k,a),le=ie?ie.createHTML(""):"",ce=i,se=ce.implementation,ue=ce.createNodeIterator,me=ce.createDocumentFragment,fe=ce.getElementsByTagName,pe=a.importNode,de={};try{de=C(i).documentMode?i.documentMode:{}}catch(e){}var he={};o.isSupported="function"==typeof oe&&se&&void 0!==se.createHTMLDocument&&9!==de;var ge,ye,be=G,ve=W,Te=q,Ne=$,Ee=Y,Ae=V,we=X,Se=J,_e=K,xe=null,ke=O({},[].concat(r(R),r(D),r(M),r(F),r(H))),Oe=null,Ce=O({},[].concat(r(z),r(P),r(B),r(j))),Le=Object.seal(Object.create(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Re=null,De=null,Me=!0,Ie=!0,Fe=!1,Ue=!0,He=!1,ze=!0,Pe=!1,Be=!1,je=!1,Ge=!1,We=!1,qe=!1,$e=!0,Ye=!1,Ke=!0,Ve=!1,Xe={},Ze=null,Je=O({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Qe=null,et=O({},["audio","video","img","source","image","track"]),tt=null,nt=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),rt="http://www.w3.org/1998/Math/MathML",ot="http://www.w3.org/2000/svg",at="http://www.w3.org/1999/xhtml",it=at,lt=!1,ct=null,st=O({},[rt,ot,at],N),ut=["application/xhtml+xml","text/html"],mt=null,ft=i.createElement("form"),pt=function(e){return e instanceof RegExp||e instanceof Function},dt=function(t){mt&&mt===t||(t&&"object"===e(t)||(t={}),t=C(t),ge=ge=-1===ut.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,ye="application/xhtml+xml"===ge?N:T,xe="ALLOWED_TAGS"in t?O({},t.ALLOWED_TAGS,ye):ke,Oe="ALLOWED_ATTR"in t?O({},t.ALLOWED_ATTR,ye):Ce,ct="ALLOWED_NAMESPACES"in t?O({},t.ALLOWED_NAMESPACES,N):st,tt="ADD_URI_SAFE_ATTR"in t?O(C(nt),t.ADD_URI_SAFE_ATTR,ye):nt,Qe="ADD_DATA_URI_TAGS"in t?O(C(et),t.ADD_DATA_URI_TAGS,ye):et,Ze="FORBID_CONTENTS"in t?O({},t.FORBID_CONTENTS,ye):Je,Re="FORBID_TAGS"in t?O({},t.FORBID_TAGS,ye):{},De="FORBID_ATTR"in t?O({},t.FORBID_ATTR,ye):{},Xe="USE_PROFILES"in t&&t.USE_PROFILES,Me=!1!==t.ALLOW_ARIA_ATTR,Ie=!1!==t.ALLOW_DATA_ATTR,Fe=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ue=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,He=t.SAFE_FOR_TEMPLATES||!1,ze=!1!==t.SAFE_FOR_XML,Pe=t.WHOLE_DOCUMENT||!1,Ge=t.RETURN_DOM||!1,We=t.RETURN_DOM_FRAGMENT||!1,qe=t.RETURN_TRUSTED_TYPE||!1,je=t.FORCE_BODY||!1,$e=!1!==t.SANITIZE_DOM,Ye=t.SANITIZE_NAMED_PROPS||!1,Ke=!1!==t.KEEP_CONTENT,Ve=t.IN_PLACE||!1,_e=t.ALLOWED_URI_REGEXP||_e,it=t.NAMESPACE||at,Le=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Le.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&pt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Le.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Le.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),He&&(Ie=!1),We&&(Ge=!0),Xe&&(xe=O({},r(H)),Oe=[],!0===Xe.html&&(O(xe,R),O(Oe,z)),!0===Xe.svg&&(O(xe,D),O(Oe,P),O(Oe,j)),!0===Xe.svgFilters&&(O(xe,M),O(Oe,P),O(Oe,j)),!0===Xe.mathMl&&(O(xe,F),O(Oe,B),O(Oe,j))),t.ADD_TAGS&&(xe===ke&&(xe=C(xe)),O(xe,t.ADD_TAGS,ye)),t.ADD_ATTR&&(Oe===Ce&&(Oe=C(Oe)),O(Oe,t.ADD_ATTR,ye)),t.ADD_URI_SAFE_ATTR&&O(tt,t.ADD_URI_SAFE_ATTR,ye),t.FORBID_CONTENTS&&(Ze===Je&&(Ze=C(Ze)),O(Ze,t.FORBID_CONTENTS,ye)),Ke&&(xe["#text"]=!0),Pe&&O(xe,["html","head","body"]),xe.table&&(O(xe,["tbody"]),delete Re.tbody),u&&u(t),mt=t)},ht=O({},["mi","mo","mn","ms","mtext"]),gt=O({},["annotation-xml"]),yt=O({},["title","style","font","a","script"]),bt=O({},D);O(bt,M),O(bt,I);var vt=O({},F);O(vt,U);var Tt=function(e){v(o.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=le}catch(t){e.remove()}}},Nt=function(e,t){try{v(o.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){v(o.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!Oe[e])if(Ge||We)try{Tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Et=function(e){var t,n;if(je)e="<remove></remove>"+e;else{var r=E(e,/^[\r\n\t ]+/);n=r&&r[0]}"application/xhtml+xml"===ge&&it===at&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var o=ie?ie.createHTML(e):e;if(it===at)try{t=(new g).parseFromString(o,ge)}catch(e){}if(!t||!t.documentElement){t=se.createDocument(it,"template",null);try{t.documentElement.innerHTML=lt?le:o}catch(e){}}var a=t.body||t.documentElement;return e&&n&&a.insertBefore(i.createTextNode(n),a.childNodes[0]||null),it===at?fe.call(t,Pe?"html":"body")[0]:Pe?t.documentElement:a},At=function(e){return ue.call(e.ownerDocument||e,e,f.SHOW_ELEMENT|f.SHOW_COMMENT|f.SHOW_TEXT|f.SHOW_PROCESSING_INSTRUCTION|f.SHOW_CDATA_SECTION,null,!1)},wt=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},St=function(t){return"object"===e(s)?t instanceof s:t&&"object"===e(t)&&"number"==typeof t.nodeType&&"string"==typeof t.nodeName},_t=function(e,t,n){he[e]&&y(he[e],function(e){e.call(o,t,n,mt)})},xt=function(e){var t;if(_t("beforeSanitizeElements",e,null),wt(e))return Tt(e),!0;if(_(/[\u0080-\uFFFF]/,e.nodeName))return Tt(e),!0;var n=ye(e.nodeName);if(_t("uponSanitizeElement",e,{tagName:n,allowedTags:xe}),e.hasChildNodes()&&!St(e.firstElementChild)&&(!St(e.content)||!St(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent))return Tt(e),!0;if("select"===n&&_(/<template/i,e.innerHTML))return Tt(e),!0;if(7===e.nodeType)return Tt(e),!0;if(ze&&8===e.nodeType&&_(/<[/\w]/g,e.data))return Tt(e),!0;if(!xe[n]||Re[n]){if(!Re[n]&&Ot(n)){if(Le.tagNameCheck instanceof RegExp&&_(Le.tagNameCheck,n))return!1;if(Le.tagNameCheck instanceof Function&&Le.tagNameCheck(n))return!1}if(Ke&&!Ze[n]){var r=oe(e)||e.parentNode,a=re(e)||e.childNodes;if(a&&r)for(var i=a.length-1;i>=0;--i){var l=te(a[i],!0);l.__removalCount=(e.__removalCount||0)+1,r.insertBefore(l,ne(e))}}return Tt(e),!0}return e instanceof m&&!function(e){var t=oe(e);t&&t.tagName||(t={namespaceURI:it,tagName:"template"});var n=T(e.tagName),r=T(t.tagName);return!!ct[e.namespaceURI]&&(e.namespaceURI===ot?t.namespaceURI===at?"svg"===n:t.namespaceURI===rt?"svg"===n&&("annotation-xml"===r||ht[r]):Boolean(bt[n]):e.namespaceURI===rt?t.namespaceURI===at?"math"===n:t.namespaceURI===ot?"math"===n&&gt[r]:Boolean(vt[n]):e.namespaceURI===at?!(t.namespaceURI===ot&&!gt[r])&&!(t.namespaceURI===rt&&!ht[r])&&!vt[n]&&(yt[n]||!bt[n]):!("application/xhtml+xml"!==ge||!ct[e.namespaceURI]))}(e)?(Tt(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!_(/<\/no(script|embed|frames)/i,e.innerHTML)?(He&&3===e.nodeType&&(t=e.textContent,t=A(t,be," "),t=A(t,ve," "),t=A(t,Te," "),e.textContent!==t&&(v(o.removed,{element:e.cloneNode()}),e.textContent=t)),_t("afterSanitizeElements",e,null),!1):(Tt(e),!0)},kt=function(e,t,n){if($e&&("id"===t||"name"===t)&&(n in i||n in ft))return!1;if(Ie&&!De[t]&&_(Ne,t));else if(Me&&_(Ee,t));else if(!Oe[t]||De[t]){if(!(Ot(e)&&(Le.tagNameCheck instanceof RegExp&&_(Le.tagNameCheck,e)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(e))&&(Le.attributeNameCheck instanceof RegExp&&_(Le.attributeNameCheck,t)||Le.attributeNameCheck instanceof Function&&Le.attributeNameCheck(t))||"is"===t&&Le.allowCustomizedBuiltInElements&&(Le.tagNameCheck instanceof RegExp&&_(Le.tagNameCheck,n)||Le.tagNameCheck instanceof Function&&Le.tagNameCheck(n))))return!1}else if(tt[t]);else if(_(_e,A(n,we,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==w(n,"data:")||!Qe[e])if(Fe&&!_(Ae,A(n,we,"")));else if(n)return!1;return!0},Ot=function(e){return"annotation-xml"!==e&&E(e,Se)},Ct=function(t){var n,r,a,i;_t("beforeSanitizeAttributes",t,null);var l=t.attributes;if(l&&!wt(t)){var c={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Oe};for(i=l.length;i--;){var s=n=l[i],u=s.name,m=s.namespaceURI;if(r="value"===u?n.value:S(n.value),a=ye(u),c.attrName=a,c.attrValue=r,c.keepAttr=!0,c.forceKeepAttr=void 0,_t("uponSanitizeAttribute",t,c),r=c.attrValue,!c.forceKeepAttr&&(Nt(u,t),c.keepAttr))if(Ue||!_(/\/>/i,r)){He&&(r=A(r,be," "),r=A(r,ve," "),r=A(r,Te," "));var f=ye(t.nodeName);if(kt(f,a,r))if(!Ye||"id"!==a&&"name"!==a||(Nt(u,t),r="user-content-"+r),ze&&_(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,r))Nt(u,t);else{if(ie&&"object"===e(k)&&"function"==typeof k.getAttributeType)if(m);else switch(k.getAttributeType(f,a)){case"TrustedHTML":r=ie.createHTML(r);break;case"TrustedScriptURL":r=ie.createScriptURL(r)}try{m?t.setAttributeNS(m,u,r):t.setAttribute(u,r),wt(t)?Tt(t):b(o.removed)}catch(e){}}}else Nt(u,t)}_t("afterSanitizeAttributes",t,null)}},Lt=function e(t){var n,r=At(t);for(_t("beforeSanitizeShadowDOM",t,null);n=r.nextNode();)_t("uponSanitizeShadowNode",n,null),xt(n),Ct(n),n.content instanceof l&&e(n.content);_t("afterSanitizeShadowDOM",t,null)};return o.sanitize=function(t){var r,i,c,u,m,f=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((lt=!t)&&(t="\x3c!--\x3e"),"string"!=typeof t&&!St(t)){if("function"!=typeof t.toString)throw x("toString is not a function");if("string"!=typeof(t=t.toString()))throw x("dirty is not a string, aborting")}if(!o.isSupported){if("object"===e(n.toStaticHTML)||"function"==typeof n.toStaticHTML){if("string"==typeof t)return n.toStaticHTML(t);if(St(t))return n.toStaticHTML(t.outerHTML)}return t}if(Be||dt(f),o.removed=[],"string"==typeof t&&(Ve=!1),Ve){if(t.nodeName){var p=ye(t.nodeName);if(!xe[p]||Re[p])throw x("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof s)1===(i=(r=Et("\x3c!----\x3e")).ownerDocument.importNode(t,!0)).nodeType&&"BODY"===i.nodeName||"HTML"===i.nodeName?r=i:r.appendChild(i);else{if(!Ge&&!He&&!Pe&&-1===t.indexOf("<"))return ie&&qe?ie.createHTML(t):t;if(!(r=Et(t)))return Ge?null:qe?le:""}r&&je&&Tt(r.firstChild);for(var d=At(Ve?t:r);c=d.nextNode();)3===c.nodeType&&c===u||(xt(c),Ct(c),c.content instanceof l&&Lt(c.content),u=c);if(u=null,Ve)return t;if(Ge){if(We)for(m=me.call(r.ownerDocument);r.firstChild;)m.appendChild(r.firstChild);else m=r;return(Oe.shadowroot||Oe.shadowrootmod)&&(m=pe.call(a,m,!0)),m}var h=Pe?r.outerHTML:r.innerHTML;return Pe&&xe["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&_(Z,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),He&&(h=A(h,be," "),h=A(h,ve," "),h=A(h,Te," ")),ie&&qe?ie.createHTML(h):h},o.setConfig=function(e){dt(e),Be=!0},o.clearConfig=function(){mt=null,Be=!1},o.isValidAttribute=function(e,t,n){mt||dt({});var r=ye(e),o=ye(t);return kt(r,o,n)},o.addHook=function(e,t){"function"==typeof t&&(he[e]=he[e]||[],v(he[e],t))},o.removeHook=function(e){if(he[e])return b(he[e])},o.removeHooks=function(e){he[e]&&(he[e]=[])},o.removeAllHooks=function(){he={}},o}()}()}}]);
@@ -1 +0,0 @@
1
- /*! @license DOMPurify 2.5.9 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/2.5.9/LICENSE */