@colijnit/sharedcomponents 257.1.13 → 257.1.15
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/bundles/colijnit-sharedcomponents.umd.js +64 -20
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/docsign/docsign.component.js +33 -12
- package/esm2015/lib/components/preferred-planning/preferred-planning.component.js +12 -4
- package/esm2015/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.js +3 -1
- package/esm2015/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.js +3 -1
- package/esm2015/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.js +41 -39
- package/esm2015/lib/components/send-method-dialog/components/send-method-purchase/send-method-purchase.component.js +2 -2
- package/esm2015/lib/components/send-method-dialog/send-method-dialog.component.js +8 -1
- package/esm2015/lib/res/dictionary/dictionaries.js +3 -3
- package/fesm2015/colijnit-sharedcomponents.js +97 -55
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/docsign/docsign.component.d.ts +9 -4
- package/lib/components/send-method-dialog/components/send-method-email/send-method-email.component.d.ts +1 -0
- package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts +1 -0
- package/lib/components/send-method-dialog/components/send-method-printer/send-method-printer.component.d.ts +1 -0
- package/lib/components/send-method-dialog/send-method-dialog.component.d.ts +1 -0
- package/lib/res/dictionary/dictionaries.d.ts +14 -0
- package/package.json +1 -1
- package/358.645812766f7a400d0d38.js +0 -1
- package/3rdpartylicenses.txt +0 -2222
- package/863.171601b3075f2e971ba6.js +0 -1
- package/977.bd6291f9ee6f6ddf91f1.js +0 -1
- package/favicon.ico +0 -0
- package/index.html +0 -12
- package/main.973c97608665a9a1bb7b.js +0 -1
- package/polyfills.907fe9d1887c5de17993.js +0 -1
- package/runtime.02acc449826706ac63c8.js +0 -1
- package/styles.05b2d77e8d8f96afc17c.css +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter } from '@angular/core';
|
|
2
2
|
import { PDFDocument } from "pdf-lib";
|
|
3
3
|
export interface TextDimension {
|
|
4
4
|
x: number;
|
|
@@ -8,6 +8,7 @@ export interface TextDimension {
|
|
|
8
8
|
page: number;
|
|
9
9
|
}
|
|
10
10
|
export declare class DocsignComponent {
|
|
11
|
+
private _changeDetector;
|
|
11
12
|
iframe: ElementRef;
|
|
12
13
|
/**
|
|
13
14
|
* Load an existing [[PDFDocument]]. The input data can be provided in
|
|
@@ -64,9 +65,11 @@ export declare class DocsignComponent {
|
|
|
64
65
|
set pdf(value: any);
|
|
65
66
|
get pdf(): any;
|
|
66
67
|
firstSignatureLabel: string;
|
|
67
|
-
firstSignatureField: string;
|
|
68
|
+
set firstSignatureField(value: string);
|
|
69
|
+
get firstSignatureField(): string;
|
|
68
70
|
secondSignatureLabel: string;
|
|
69
|
-
secondSignatureField: string;
|
|
71
|
+
set secondSignatureField(value: string);
|
|
72
|
+
get secondSignatureField(): string;
|
|
70
73
|
saveButtonLabel: string;
|
|
71
74
|
clearButtonLabel: string;
|
|
72
75
|
signDocumentButtonLabel: string;
|
|
@@ -82,6 +85,9 @@ export declare class DocsignComponent {
|
|
|
82
85
|
showSignatures: boolean;
|
|
83
86
|
pdfDoc: PDFDocument;
|
|
84
87
|
private _pdf;
|
|
88
|
+
private _firstSignatureField;
|
|
89
|
+
private _secondSignatureField;
|
|
90
|
+
constructor(_changeDetector: ChangeDetectorRef);
|
|
85
91
|
saveFirstSignature(sig: string): void;
|
|
86
92
|
saveSecondSignature(sig: string): void;
|
|
87
93
|
private _openPDF;
|
|
@@ -89,6 +95,5 @@ export declare class DocsignComponent {
|
|
|
89
95
|
private _checkSignatures;
|
|
90
96
|
private _getPositionSignature;
|
|
91
97
|
private _saveSignature;
|
|
92
|
-
private _handlePdfData;
|
|
93
98
|
private _preparePDF;
|
|
94
99
|
}
|
|
@@ -8,6 +8,7 @@ export declare class SendMethodEmailComponent implements OnInit {
|
|
|
8
8
|
layouts: ReportLayoutSelectionEmail[];
|
|
9
9
|
pdfDoc: any;
|
|
10
10
|
disablePdfPreview: boolean;
|
|
11
|
+
transactionType: string;
|
|
11
12
|
emailUnsignedPossible: boolean;
|
|
12
13
|
showFilePreview: EventEmitter<number>;
|
|
13
14
|
loadDefaultPrinterName: EventEmitter<number>;
|
package/lib/components/send-method-dialog/components/send-method-pdf/send-method-pdf.component.d.ts
CHANGED
|
@@ -6,6 +6,7 @@ export declare class SendMethodPdfComponent {
|
|
|
6
6
|
layouts: ReportLayoutSelectionPrint[];
|
|
7
7
|
pdfDoc: any;
|
|
8
8
|
disablePdfPreview: boolean;
|
|
9
|
+
transactionType: string;
|
|
9
10
|
showFilePreview: EventEmitter<number>;
|
|
10
11
|
loadDefaultPrinterName: EventEmitter<number>;
|
|
11
12
|
showClass(): boolean;
|
|
@@ -16,6 +16,7 @@ export declare class SendMethodPrinterComponent {
|
|
|
16
16
|
isAdditionalDocEnabled: boolean;
|
|
17
17
|
pdfDoc: any;
|
|
18
18
|
disablePdfPreview: boolean;
|
|
19
|
+
transactionType: string;
|
|
19
20
|
additionalFileContents: any;
|
|
20
21
|
additionalFileName: string;
|
|
21
22
|
additionalFileChangeEvent: EventEmitter<CoDocument>;
|
|
@@ -45,6 +45,7 @@ export declare class SendMethodDialogComponent implements OnInit, OnDestroy {
|
|
|
45
45
|
additionalFileContents: any;
|
|
46
46
|
pdfDoc: any;
|
|
47
47
|
disablePdfPreview: boolean;
|
|
48
|
+
transactionType: string;
|
|
48
49
|
emailUnsignedPossible: boolean;
|
|
49
50
|
usePurchaseSendMethod: boolean;
|
|
50
51
|
reportingDocumentPrintRequestChange: EventEmitter<ReportingDocumentPrintSignDocBaseRequest>;
|
|
@@ -4576,6 +4576,7 @@ export declare class Dictionaries {
|
|
|
4576
4576
|
MULTIPLE_INTERBRANCH_LINES_MESSAGE: string;
|
|
4577
4577
|
MULTIPLE_PURCHASEORDERS: string;
|
|
4578
4578
|
MULTIPLE_RESERVATIONS: string;
|
|
4579
|
+
MULTIPLE_SESSIONS_ARE_NOT_ALLOWED: string;
|
|
4579
4580
|
MULTI_BUY: string;
|
|
4580
4581
|
MULTI_FACTORIELE_INTAKE: string;
|
|
4581
4582
|
MULTI_FACTOR_AUTHENTICATION_TOO_LONG: string;
|
|
@@ -8677,6 +8678,7 @@ export declare class Dictionaries {
|
|
|
8677
8678
|
OVERVIEW: string;
|
|
8678
8679
|
OVERVIEW_AND_PAYMENT: string;
|
|
8679
8680
|
OVERVIEW_TRANSFERS: string;
|
|
8681
|
+
OVERVIEW_OF: string;
|
|
8680
8682
|
OVER_COVERAGE_PERCENTAGE: string;
|
|
8681
8683
|
OWED_VAT: string;
|
|
8682
8684
|
OWED_VAT_LAYOUT_CODE: string;
|
|
@@ -8929,6 +8931,7 @@ export declare class Dictionaries {
|
|
|
8929
8931
|
SPHERECODE: string;
|
|
8930
8932
|
SPHERES: string;
|
|
8931
8933
|
SPHERE_IMAGES: string;
|
|
8934
|
+
SPLIT_BOOKING_LINE: string;
|
|
8932
8935
|
STABLE: string;
|
|
8933
8936
|
STACKABLE: string;
|
|
8934
8937
|
STAFF_DOCTOR: string;
|
|
@@ -9695,6 +9698,7 @@ export declare class Dictionaries {
|
|
|
9695
9698
|
DEBET: string;
|
|
9696
9699
|
DEBETCREDIT: string;
|
|
9697
9700
|
DEBIT_CREDIT: string;
|
|
9701
|
+
DEBIT_CREDIT2: string;
|
|
9698
9702
|
DEBIT_CREDIT_ERROR_MESSAGE: string;
|
|
9699
9703
|
DEBIT_CREDIT_SHORT: string;
|
|
9700
9704
|
DEBTOR_NUMBER: string;
|
|
@@ -11966,6 +11970,7 @@ export declare class Dictionaries {
|
|
|
11966
11970
|
ARTICLES_MUST_DIFFER: string;
|
|
11967
11971
|
ARTICLES_NOT_IN_DATE_RANGE: string;
|
|
11968
11972
|
ARTICLES_NOT_IN_LIST_RANGE: string;
|
|
11973
|
+
ARTICLE_ADDED_TO_CART: string;
|
|
11969
11974
|
ARTICLE_ALREADY_LINKED: string;
|
|
11970
11975
|
ARTICLE_ALREADY_PICKED_CONTINUE_ANYWAY: string;
|
|
11971
11976
|
ARTICLE_ALREADY_PRESENT: string;
|
|
@@ -13225,6 +13230,7 @@ export declare class Dictionaries {
|
|
|
13225
13230
|
DEBETCREDIT: string;
|
|
13226
13231
|
DEBIT_CREDIT_ERROR_MESSAGE: string;
|
|
13227
13232
|
DEBIT_CREDIT: string;
|
|
13233
|
+
DEBIT_CREDIT2: string;
|
|
13228
13234
|
DEBIT_CREDIT_SHORT: string;
|
|
13229
13235
|
DEBTOR_NUMBER: string;
|
|
13230
13236
|
DEBUG_LEVEL: string;
|
|
@@ -14409,6 +14415,7 @@ export declare class Dictionaries {
|
|
|
14409
14415
|
HOME_CATALOG: string;
|
|
14410
14416
|
HOME_CATALOG_PICTURE: string;
|
|
14411
14417
|
HOME_CATALOG_TITLE: string;
|
|
14418
|
+
HOME_DECO_HUB_SESSIONS: string;
|
|
14412
14419
|
HOTKEY_BLOCKED_PROCESS_BUSY: string;
|
|
14413
14420
|
HOURLY_RATE: string;
|
|
14414
14421
|
HOURS: string;
|
|
@@ -14870,6 +14877,7 @@ export declare class Dictionaries {
|
|
|
14870
14877
|
LOCATION: string;
|
|
14871
14878
|
LOCATIONS: string;
|
|
14872
14879
|
LOCATION_ADVICE: string;
|
|
14880
|
+
LOCATION_ARTICLE: string;
|
|
14873
14881
|
LOCATION_FROM: string;
|
|
14874
14882
|
LOCATION_INVENTORY: string;
|
|
14875
14883
|
LOCATION_IS_NOT_VALID_WITHIN_WAREHOUSE: string;
|
|
@@ -15165,6 +15173,7 @@ export declare class Dictionaries {
|
|
|
15165
15173
|
MESSAGE_ERROR_IMAGE: string;
|
|
15166
15174
|
MESSAGE_ERROR_LIST_PRINTER: string;
|
|
15167
15175
|
MESSAGE_ERROR_LOADING_FILTER: string;
|
|
15176
|
+
MESSAGE_ERROR_LOADING_HOME_DECO_HUB_SESSIONS: string;
|
|
15168
15177
|
MESSAGE_ERROR_LOADING_LOGINS: string;
|
|
15169
15178
|
MESSAGE_ERROR_LOADING_MODULE: string;
|
|
15170
15179
|
MESSAGE_ERROR_LOADING_MODULE_TITLE: string;
|
|
@@ -15414,6 +15423,7 @@ export declare class Dictionaries {
|
|
|
15414
15423
|
MULTIPLE_INTERBRANCH_LINES_MESSAGE: string;
|
|
15415
15424
|
MULTIPLE_PURCHASEORDERS: string;
|
|
15416
15425
|
MULTIPLE_RESERVATIONS: string;
|
|
15426
|
+
MULTIPLE_SESSIONS_ARE_NOT_ALLOWED: string;
|
|
15417
15427
|
MULTI_BUY: string;
|
|
15418
15428
|
MULTI_FACTORIELE_INTAKE: string;
|
|
15419
15429
|
MULTI_FACTOR_AUTHENTICATION_TOO_LONG: string;
|
|
@@ -16138,6 +16148,7 @@ export declare class Dictionaries {
|
|
|
16138
16148
|
OVERVIEW: string;
|
|
16139
16149
|
OVERVIEW_AND_PAYMENT: string;
|
|
16140
16150
|
OVERVIEW_TRANSFERS: string;
|
|
16151
|
+
OVERVIEW_OF: string;
|
|
16141
16152
|
OVERRULE_VIA_EMAIL: string;
|
|
16142
16153
|
OVERRULE_VIA_EDI: string;
|
|
16143
16154
|
OVERRULE_VIA_PRINT: string;
|
|
@@ -17060,6 +17071,7 @@ export declare class Dictionaries {
|
|
|
17060
17071
|
REMINDER_ORDER_FORM: string;
|
|
17061
17072
|
REMOVE_AMOUNT: string;
|
|
17062
17073
|
REMOVE_ARTICLE: string;
|
|
17074
|
+
REMOVE_DIRECT_SELL: string;
|
|
17063
17075
|
REMOVE_EDI_STRUCTURE_CONNECTION: string;
|
|
17064
17076
|
REMOVE_ENDDATE_FROM_CURRENT_WORKFLOW: string;
|
|
17065
17077
|
REMOVE_FROM_RESOURCE: string;
|
|
@@ -17917,6 +17929,7 @@ export declare class Dictionaries {
|
|
|
17917
17929
|
SPHERECODE: string;
|
|
17918
17930
|
SPHERES: string;
|
|
17919
17931
|
SPHERE_IMAGES: string;
|
|
17932
|
+
SPLIT_BOOKING_LINE: string;
|
|
17920
17933
|
STABLE: string;
|
|
17921
17934
|
STACKABLE: string;
|
|
17922
17935
|
STAFF_DOCTOR: string;
|
|
@@ -18364,6 +18377,7 @@ export declare class Dictionaries {
|
|
|
18364
18377
|
TO_BE_PICKED: string;
|
|
18365
18378
|
TO_BE_PICKED_DETAILS: string;
|
|
18366
18379
|
TO_BE_PLANNED: string;
|
|
18380
|
+
TO_BE_RESERVED: string;
|
|
18367
18381
|
TO_BE_TRANSPORTED: string;
|
|
18368
18382
|
TO_BE_USED: string;
|
|
18369
18383
|
TO_BE_USED_VOLUME: string;
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
(self.webpackChunk_colijnit_sharedcomponents=self.webpackChunk_colijnit_sharedcomponents||[]).push([[358],{23358:function(ht){ht.exports=function(){"use strict";function w(a){return(w="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n})(a)}function j(a,n){return(j=Object.setPrototypeOf||function(s,c){return s.__proto__=c,s})(a,n)}function Et(){if("undefined"==typeof Reflect||!Reflect.construct||Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(a){return!1}}function Z(a,n,o){return(Z=Et()?Reflect.construct:function(c,b,y){var D=[null];D.push.apply(D,b);var X=new(Function.bind.apply(c,D));return y&&j(X,y.prototype),X}).apply(null,arguments)}function R(a){return function(a){if(Array.isArray(a))return ce(a)}(a)||function(a){if("undefined"!=typeof Symbol&&null!=a[Symbol.iterator]||null!=a["@@iterator"])return Array.from(a)}(a)||function(a,n){if(a){if("string"==typeof a)return ce(a,n);var o=Object.prototype.toString.call(a).slice(8,-1);if("Object"===o&&a.constructor&&(o=a.constructor.name),"Map"===o||"Set"===o)return Array.from(a);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ce(a,n)}}(a)||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 ce(a,n){(null==n||n>a.length)&&(n=a.length);for(var o=0,s=new Array(n);o<n;o++)s[o]=a[o];return s}var bt=Object.hasOwnProperty,ze=Object.setPrototypeOf,Ot=Object.isFrozen,Rt=Object.getPrototypeOf,Lt=Object.getOwnPropertyDescriptor,E=Object.freeze,g=Object.seal,Mt=Object.create,Ge="undefined"!=typeof Reflect&&Reflect,J=Ge.apply,me=Ge.construct;J||(J=function(n,o,s){return n.apply(o,s)}),E||(E=function(n){return n}),g||(g=function(n){return n}),me||(me=function(n,o){return Z(n,R(o))});var a,Dt=S(Array.prototype.forEach),We=S(Array.prototype.pop),Y=S(Array.prototype.push),Q=S(String.prototype.toLowerCase),pe=S(String.prototype.toString),Be=S(String.prototype.match),L=S(String.prototype.replace),Nt=S(String.prototype.indexOf),wt=S(String.prototype.trim),_=S(RegExp.prototype.test),de=(a=TypeError,function(){for(var n=arguments.length,o=new Array(n),s=0;s<n;s++)o[s]=arguments[s];return me(a,o)});function S(a){return function(n){for(var o=arguments.length,s=new Array(o>1?o-1:0),c=1;c<o;c++)s[c-1]=arguments[c];return J(a,n,s)}}function l(a,n,o){var s;o=null!==(s=o)&&void 0!==s?s:Q,ze&&ze(a,null);for(var c=n.length;c--;){var b=n[c];if("string"==typeof b){var y=o(b);y!==b&&(Ot(n)||(n[c]=y),b=y)}a[b]=!0}return a}function x(a){var o,n=Mt(null);for(o in a)!0===J(bt,a,[o])&&(n[o]=a[o]);return n}function ee(a,n){for(;null!==a;){var o=Lt(a,n);if(o){if(o.get)return S(o.get);if("function"==typeof o.value)return S(o.value)}a=Rt(a)}return function(c){return console.warn("fallback value for",c),null}}var $e=E(["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"]),Te=E(["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"]),_e=E(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),It=E(["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"]),ve=E(["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"]),xt=E(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),je=E(["#text"]),Ye=E(["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"]),he=E(["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"]),Xe=E(["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"]),te=E(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),kt=g(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Pt=g(/<%[\w\W]*|[\w\W]*%>/gm),Ft=g(/\${[\w\W]*}/gm),Ut=g(/^data-[\-\w.\u00B7-\uFFFF]+$/),Ht=g(/^aria-[\-\w]+$/),zt=g(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Gt=g(/^(?:\w+script|data):/i),Wt=g(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Bt=g(/^html$/i),$t=g(/^[a-z][.\w]*(-[.\w]+)+$/i),jt=function(){return"undefined"==typeof window?null:window},Yt=function(n,o){if("object"!==w(n)||"function"!=typeof n.createPolicy)return null;var s=null,c="data-tt-policy-suffix";o.currentScript&&o.currentScript.hasAttribute(c)&&(s=o.currentScript.getAttribute(c));var b="dompurify"+(s?"#"+s:"");try{return n.createPolicy(b,{createHTML:function(D){return D},createScriptURL:function(D){return D}})}catch(y){return console.warn("TrustedTypes policy "+b+" could not be created."),null}};return function Ve(){var a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:jt(),n=function(e){return Ve(e)};if(n.version="2.5.8",n.removed=[],!a||!a.document||9!==a.document.nodeType)return n.isSupported=!1,n;var o=a.document,s=a.document,c=a.DocumentFragment,b=a.HTMLTemplateElement,y=a.Node,D=a.Element,k=a.NodeFilter,X=a.NamedNodeMap,Vt=void 0===X?a.NamedNodeMap||a.MozNamedAttrMap:X,qt=a.HTMLFormElement,Kt=a.DOMParser,re=a.trustedTypes,ae=D.prototype,Zt=ee(ae,"cloneNode"),Jt=ee(ae,"nextSibling"),Qt=ee(ae,"childNodes"),Ee=ee(ae,"parentNode");if("function"==typeof b){var Ae=s.createElement("template");Ae.content&&Ae.content.ownerDocument&&(s=Ae.content.ownerDocument)}var M=Yt(re,o),ye=M?M.createHTML(""):"",ge=s.implementation,er=s.createNodeIterator,tr=s.createDocumentFragment,rr=s.getElementsByTagName,ar=o.importNode,qe={};try{qe=x(s).documentMode?s.documentMode:{}}catch(i){}var N={};n.isSupported="function"==typeof Ee&&ge&&void 0!==ge.createHTMLDocument&&9!==qe;var F,T,Se=kt,be=Pt,Oe=Ft,nr=Ut,ir=Ht,or=Gt,Ke=Wt,lr=$t,Re=zt,p=null,Ze=l({},[].concat(R($e),R(Te),R(_e),R(ve),R(je))),d=null,Je=l({},[].concat(R(Ye),R(he),R(Xe),R(te))),f=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}})),V=null,Le=null,Qe=!0,Me=!0,et=!1,tt=!0,H=!1,De=!0,P=!1,Ne=!1,we=!1,z=!1,ie=!1,oe=!1,rt=!0,at=!1,sr="user-content-",Ce=!0,q=!1,G={},W=null,nt=l({},["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"]),it=null,ot=l({},["audio","video","img","source","image","track"]),Ie=null,lt=l({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),le="http://www.w3.org/1998/Math/MathML",se="http://www.w3.org/2000/svg",C="http://www.w3.org/1999/xhtml",B=C,xe=!1,ke=null,ur=l({},[le,se,C],pe),fr=["application/xhtml+xml","text/html"],cr="text/html",$=null,mr=s.createElement("form"),st=function(e){return e instanceof RegExp||e instanceof Function},Pe=function(e){$&&$===e||((!e||"object"!==w(e))&&(e={}),e=x(e),F=F=-1===fr.indexOf(e.PARSER_MEDIA_TYPE)?cr:e.PARSER_MEDIA_TYPE,T="application/xhtml+xml"===F?pe:Q,p="ALLOWED_TAGS"in e?l({},e.ALLOWED_TAGS,T):Ze,d="ALLOWED_ATTR"in e?l({},e.ALLOWED_ATTR,T):Je,ke="ALLOWED_NAMESPACES"in e?l({},e.ALLOWED_NAMESPACES,pe):ur,Ie="ADD_URI_SAFE_ATTR"in e?l(x(lt),e.ADD_URI_SAFE_ATTR,T):lt,it="ADD_DATA_URI_TAGS"in e?l(x(ot),e.ADD_DATA_URI_TAGS,T):ot,W="FORBID_CONTENTS"in e?l({},e.FORBID_CONTENTS,T):nt,V="FORBID_TAGS"in e?l({},e.FORBID_TAGS,T):{},Le="FORBID_ATTR"in e?l({},e.FORBID_ATTR,T):{},G="USE_PROFILES"in e&&e.USE_PROFILES,Qe=!1!==e.ALLOW_ARIA_ATTR,Me=!1!==e.ALLOW_DATA_ATTR,et=e.ALLOW_UNKNOWN_PROTOCOLS||!1,tt=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,H=e.SAFE_FOR_TEMPLATES||!1,De=!1!==e.SAFE_FOR_XML,P=e.WHOLE_DOCUMENT||!1,z=e.RETURN_DOM||!1,ie=e.RETURN_DOM_FRAGMENT||!1,oe=e.RETURN_TRUSTED_TYPE||!1,we=e.FORCE_BODY||!1,rt=!1!==e.SANITIZE_DOM,at=e.SANITIZE_NAMED_PROPS||!1,Ce=!1!==e.KEEP_CONTENT,q=e.IN_PLACE||!1,Re=e.ALLOWED_URI_REGEXP||Re,B=e.NAMESPACE||C,f=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(f.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&st(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(f.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(f.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),H&&(Me=!1),ie&&(z=!0),G&&(p=l({},R(je)),d=[],!0===G.html&&(l(p,$e),l(d,Ye)),!0===G.svg&&(l(p,Te),l(d,he),l(d,te)),!0===G.svgFilters&&(l(p,_e),l(d,he),l(d,te)),!0===G.mathMl&&(l(p,ve),l(d,Xe),l(d,te))),e.ADD_TAGS&&(p===Ze&&(p=x(p)),l(p,e.ADD_TAGS,T)),e.ADD_ATTR&&(d===Je&&(d=x(d)),l(d,e.ADD_ATTR,T)),e.ADD_URI_SAFE_ATTR&&l(Ie,e.ADD_URI_SAFE_ATTR,T),e.FORBID_CONTENTS&&(W===nt&&(W=x(W)),l(W,e.FORBID_CONTENTS,T)),Ce&&(p["#text"]=!0),P&&l(p,["html","head","body"]),p.table&&(l(p,["tbody"]),delete V.tbody),E&&E(e),$=e)},ut=l({},["mi","mo","mn","ms","mtext"]),ft=l({},["annotation-xml"]),pr=l({},["title","style","font","a","script"]),ue=l({},Te);l(ue,_e),l(ue,It);var Fe=l({},ve);l(Fe,xt);var dr=function(e){var t=Ee(e);(!t||!t.tagName)&&(t={namespaceURI:B,tagName:"template"});var r=Q(e.tagName),u=Q(t.tagName);return!!ke[e.namespaceURI]&&(e.namespaceURI===se?t.namespaceURI===C?"svg"===r:t.namespaceURI===le?"svg"===r&&("annotation-xml"===u||ut[u]):Boolean(ue[r]):e.namespaceURI===le?t.namespaceURI===C?"math"===r:t.namespaceURI===se?"math"===r&&ft[u]:Boolean(Fe[r]):e.namespaceURI===C?!(t.namespaceURI===se&&!ft[u]||t.namespaceURI===le&&!ut[u])&&!Fe[r]&&(pr[r]||!ue[r]):!("application/xhtml+xml"!==F||!ke[e.namespaceURI]))},O=function(e){Y(n.removed,{element:e});try{e.parentNode.removeChild(e)}catch(t){try{e.outerHTML=ye}catch(r){e.remove()}}},fe=function(e,t){try{Y(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(r){Y(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e&&!d[e])if(z||ie)try{O(t)}catch(r){}else try{t.setAttribute(e,"")}catch(r){}},ct=function(e){var t,r;if(we)e="<remove></remove>"+e;else{var u=Be(e,/^[\r\n\t ]+/);r=u&&u[0]}"application/xhtml+xml"===F&&B===C&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");var A=M?M.createHTML(e):e;if(B===C)try{t=(new Kt).parseFromString(A,F)}catch(v){}if(!t||!t.documentElement){t=ge.createDocument(B,"template",null);try{t.documentElement.innerHTML=xe?ye:A}catch(v){}}var h=t.body||t.documentElement;return e&&r&&h.insertBefore(s.createTextNode(r),h.childNodes[0]||null),B===C?rr.call(t,P?"html":"body")[0]:P?t.documentElement:h},mt=function(e){return er.call(e.ownerDocument||e,e,k.SHOW_ELEMENT|k.SHOW_COMMENT|k.SHOW_TEXT|k.SHOW_PROCESSING_INSTRUCTION|k.SHOW_CDATA_SECTION,null,!1)},Ue=function(e){return e instanceof qt&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof Vt)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},K=function(e){return"object"===w(y)?e instanceof y:e&&"object"===w(e)&&"number"==typeof e.nodeType&&"string"==typeof e.nodeName},I=function(e,t,r){!N[e]||Dt(N[e],function(u){u.call(n,t,r,$)})},pt=function(e){var t;if(I("beforeSanitizeElements",e,null),Ue(e)||_(/[\u0080-\uFFFF]/,e.nodeName))return O(e),!0;var r=T(e.nodeName);if(I("uponSanitizeElement",e,{tagName:r,allowedTags:p}),e.hasChildNodes()&&!K(e.firstElementChild)&&(!K(e.content)||!K(e.content.firstElementChild))&&_(/<[/\w]/g,e.innerHTML)&&_(/<[/\w]/g,e.textContent)||"select"===r&&_(/<template/i,e.innerHTML)||7===e.nodeType||De&&8===e.nodeType&&_(/<[/\w]/g,e.data))return O(e),!0;if(!p[r]||V[r]){if(!V[r]&&Tt(r)&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,r)||f.tagNameCheck instanceof Function&&f.tagNameCheck(r)))return!1;if(Ce&&!W[r]){var u=Ee(e)||e.parentNode,A=Qt(e)||e.childNodes;if(A&&u)for(var v=A.length-1;v>=0;--v){var U=Zt(A[v],!0);U.__removalCount=(e.__removalCount||0)+1,u.insertBefore(U,Jt(e))}}return O(e),!0}return e instanceof D&&!dr(e)||("noscript"===r||"noembed"===r||"noframes"===r)&&_(/<\/no(script|embed|frames)/i,e.innerHTML)?(O(e),!0):(H&&3===e.nodeType&&(t=L(t=e.textContent,Se," "),t=L(t,be," "),t=L(t,Oe," "),e.textContent!==t&&(Y(n.removed,{element:e.cloneNode()}),e.textContent=t)),I("afterSanitizeElements",e,null),!1)},dt=function(e,t,r){if(rt&&("id"===t||"name"===t)&&(r in s||r in mr))return!1;if((!Me||Le[t]||!_(nr,t))&&(!Qe||!_(ir,t)))if(!d[t]||Le[t]){if(!(Tt(e)&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,e)||f.tagNameCheck instanceof Function&&f.tagNameCheck(e))&&(f.attributeNameCheck instanceof RegExp&&_(f.attributeNameCheck,t)||f.attributeNameCheck instanceof Function&&f.attributeNameCheck(t))||"is"===t&&f.allowCustomizedBuiltInElements&&(f.tagNameCheck instanceof RegExp&&_(f.tagNameCheck,r)||f.tagNameCheck instanceof Function&&f.tagNameCheck(r))))return!1}else if(!Ie[t]&&!_(Re,L(r,Ke,""))&&("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Nt(r,"data:")||!it[e])&&(!et||_(or,L(r,Ke,"")))&&r)return!1;return!0},Tt=function(e){return"annotation-xml"!==e&&Be(e,lr)},_t=function(e){var t,r,u,A;I("beforeSanitizeAttributes",e,null);var h=e.attributes;if(h&&!Ue(e)){var v={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:d};for(A=h.length;A--;){var m=(t=h[A]).name,He=t.namespaceURI;if(r="value"===m?t.value:wt(t.value),u=T(m),v.attrName=u,v.attrValue=r,v.keepAttr=!0,v.forceKeepAttr=void 0,I("uponSanitizeAttribute",e,v),r=v.attrValue,!v.forceKeepAttr&&(fe(m,e),v.keepAttr)){if(!tt&&_(/\/>/i,r)){fe(m,e);continue}H&&(r=L(r,Se," "),r=L(r,be," "),r=L(r,Oe," "));var vt=T(e.nodeName);if(dt(vt,u,r)){if(at&&("id"===u||"name"===u)&&(fe(m,e),r=sr+r),De&&_(/((--!?|])>)|<\/(style|title)/i,r)){fe(m,e);continue}if(M&&"object"===w(re)&&"function"==typeof re.getAttributeType&&!He)switch(re.getAttributeType(vt,u)){case"TrustedHTML":r=M.createHTML(r);break;case"TrustedScriptURL":r=M.createScriptURL(r)}try{He?e.setAttributeNS(He,m,r):e.setAttribute(m,r),Ue(e)?O(e):We(n.removed)}catch(_r){}}}}I("afterSanitizeAttributes",e,null)}},Tr=function i(e){var t,r=mt(e);for(I("beforeSanitizeShadowDOM",e,null);t=r.nextNode();)I("uponSanitizeShadowNode",t,null),pt(t),_t(t),t.content instanceof c&&i(t.content);I("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(i){var t,r,u,A,h,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if((xe=!i)&&(i="\x3c!--\x3e"),"string"!=typeof i&&!K(i)){if("function"!=typeof i.toString)throw de("toString is not a function");if("string"!=typeof(i=i.toString()))throw de("dirty is not a string, aborting")}if(!n.isSupported){if("object"===w(a.toStaticHTML)||"function"==typeof a.toStaticHTML){if("string"==typeof i)return a.toStaticHTML(i);if(K(i))return a.toStaticHTML(i.outerHTML)}return i}if(Ne||Pe(e),n.removed=[],"string"==typeof i&&(q=!1),q){if(i.nodeName){var v=T(i.nodeName);if(!p[v]||V[v])throw de("root node is forbidden and cannot be sanitized in-place")}}else if(i instanceof y)1===(r=(t=ct("\x3c!----\x3e")).ownerDocument.importNode(i,!0)).nodeType&&"BODY"===r.nodeName||"HTML"===r.nodeName?t=r:t.appendChild(r);else{if(!z&&!H&&!P&&-1===i.indexOf("<"))return M&&oe?M.createHTML(i):i;if(!(t=ct(i)))return z?null:oe?ye:""}t&&we&&O(t.firstChild);for(var U=mt(q?i:t);u=U.nextNode();)3===u.nodeType&&u===A||(pt(u),_t(u),u.content instanceof c&&Tr(u.content),A=u);if(A=null,q)return i;if(z){if(ie)for(h=tr.call(t.ownerDocument);t.firstChild;)h.appendChild(t.firstChild);else h=t;return(d.shadowroot||d.shadowrootmod)&&(h=ar.call(o,h,!0)),h}var m=P?t.outerHTML:t.innerHTML;return P&&p["!doctype"]&&t.ownerDocument&&t.ownerDocument.doctype&&t.ownerDocument.doctype.name&&_(Bt,t.ownerDocument.doctype.name)&&(m="<!DOCTYPE "+t.ownerDocument.doctype.name+">\n"+m),H&&(m=L(m,Se," "),m=L(m,be," "),m=L(m,Oe," ")),M&&oe?M.createHTML(m):m},n.setConfig=function(i){Pe(i),Ne=!0},n.clearConfig=function(){$=null,Ne=!1},n.isValidAttribute=function(i,e,t){$||Pe({});var r=T(i),u=T(e);return dt(r,u,t)},n.addHook=function(i,e){"function"==typeof e&&(N[i]=N[i]||[],Y(N[i],e))},n.removeHook=function(i){if(N[i])return We(N[i])},n.removeHooks=function(i){N[i]&&(N[i]=[])},n.removeAllHooks=function(){N={}},n}()}()}}]);
|