@syncfusion/ej2-office-common 35.1.37
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/.eslintrc.json +263 -0
- package/.prettierrc.json +5 -0
- package/README.md +167 -0
- package/api-extractor.json +35 -0
- package/core.js +4 -0
- package/dist/ej2-office-common.umd.min.js +11 -0
- package/dist/ej2-office-common.umd.min.js.map +1 -0
- package/dist/es6/ej2-office-common.es2015.js +6585 -0
- package/dist/es6/ej2-office-common.es2015.js.map +1 -0
- package/dist/es6/ej2-office-common.es5.js +7955 -0
- package/dist/es6/ej2-office-common.es5.js.map +1 -0
- package/dist/global/ej2-office-common.min.js +11 -0
- package/dist/global/ej2-office-common.min.js.map +1 -0
- package/dist/global/index.d.ts +14 -0
- package/encryption.js +4 -0
- package/features.js +4 -0
- package/global.json +6 -0
- package/index.js +4 -0
- package/license +10 -0
- package/nuget.config +7 -0
- package/package.json +23 -0
- package/src/all.d.ts +41 -0
- package/src/all.js +38 -0
- package/src/core/index.d.ts +6 -0
- package/src/core/index.js +6 -0
- package/src/core/xml/index.d.ts +7 -0
- package/src/core/xml/index.js +6 -0
- package/src/core/xml/model.d.ts +71 -0
- package/src/core/xml/model.js +20 -0
- package/src/encryption/agile-constants.d.ts +61 -0
- package/src/encryption/agile-constants.js +71 -0
- package/src/encryption/agile-encryption-info.d.ts +46 -0
- package/src/encryption/agile-encryption-info.js +333 -0
- package/src/encryption/agile-password.d.ts +8 -0
- package/src/encryption/agile-password.js +58 -0
- package/src/encryption/cfb-reader.d.ts +11 -0
- package/src/encryption/cfb-reader.js +345 -0
- package/src/encryption/crypto-primitives.d.ts +74 -0
- package/src/encryption/crypto-primitives.js +302 -0
- package/src/encryption/decrypt-encrypted-package.d.ts +16 -0
- package/src/encryption/decrypt-encrypted-package.js +138 -0
- package/src/encryption/encryption-info-xml.d.ts +21 -0
- package/src/encryption/encryption-info-xml.js +282 -0
- package/src/encryption/errors.d.ts +66 -0
- package/src/encryption/errors.js +124 -0
- package/src/encryption/index.d.ts +35 -0
- package/src/encryption/index.js +100 -0
- package/src/features/diagrams/constants.d.ts +83 -0
- package/src/features/diagrams/constants.js +101 -0
- package/src/features/diagrams/diagram-data-model.d.ts +148 -0
- package/src/features/diagrams/diagram-data-model.js +446 -0
- package/src/features/diagrams/diagram-parsers.d.ts +28 -0
- package/src/features/diagrams/diagram-parsers.js +182 -0
- package/src/features/diagrams/diagram-serializers.d.ts +20 -0
- package/src/features/diagrams/diagram-serializers.js +110 -0
- package/src/features/diagrams/diagram-views.d.ts +60 -0
- package/src/features/diagrams/diagram-views.js +213 -0
- package/src/features/diagrams/element-tree.d.ts +55 -0
- package/src/features/diagrams/element-tree.js +197 -0
- package/src/features/diagrams/errors.d.ts +17 -0
- package/src/features/diagrams/errors.js +59 -0
- package/src/features/diagrams/index.d.ts +17 -0
- package/src/features/diagrams/index.js +17 -0
- package/src/features/diagrams/smart-art-catalog.d.ts +107 -0
- package/src/features/diagrams/smart-art-catalog.js +422 -0
- package/src/features/diagrams/smart-art-diagram.d.ts +96 -0
- package/src/features/diagrams/smart-art-diagram.js +258 -0
- package/src/features/index.d.ts +11 -0
- package/src/features/index.js +11 -0
- package/src/features/ink/constants.d.ts +54 -0
- package/src/features/ink/constants.js +54 -0
- package/src/features/ink/index.d.ts +18 -0
- package/src/features/ink/index.js +15 -0
- package/src/features/ink/ink-effects.d.ts +35 -0
- package/src/features/ink/ink-effects.js +45 -0
- package/src/features/ink/ink-model.d.ts +237 -0
- package/src/features/ink/ink-model.js +406 -0
- package/src/features/ink/ink-parser.d.ts +59 -0
- package/src/features/ink/ink-parser.js +671 -0
- package/src/features/ink/ink-serializer.d.ts +16 -0
- package/src/features/ink/ink-serializer.js +281 -0
- package/src/features/ink/ink-units.d.ts +33 -0
- package/src/features/ink/ink-units.js +92 -0
- package/src/features/ink/ink-xml.d.ts +26 -0
- package/src/features/ink/ink-xml.js +165 -0
- package/src/features/ink/trace-codec.d.ts +127 -0
- package/src/features/ink/trace-codec.js +266 -0
- package/src/features/mathml/constants.d.ts +47 -0
- package/src/features/mathml/constants.js +47 -0
- package/src/features/mathml/errors.d.ts +50 -0
- package/src/features/mathml/errors.js +69 -0
- package/src/features/mathml/index.d.ts +30 -0
- package/src/features/mathml/index.js +22 -0
- package/src/features/mathml/math-factory.d.ts +26 -0
- package/src/features/mathml/math-factory.js +568 -0
- package/src/features/mathml/model/controls.d.ts +896 -0
- package/src/features/mathml/model/controls.js +1541 -0
- package/src/features/mathml/model/enums.d.ts +153 -0
- package/src/features/mathml/model/enums.js +133 -0
- package/src/features/mathml/model/math-element.d.ts +173 -0
- package/src/features/mathml/model/math-element.js +315 -0
- package/src/features/mathml/model/roots.d.ts +82 -0
- package/src/features/mathml/model/roots.js +177 -0
- package/src/features/mathml/openxml.d.ts +56 -0
- package/src/features/mathml/openxml.js +87 -0
- package/src/features/mathml/parse/math-parser.d.ts +43 -0
- package/src/features/mathml/parse/math-parser.js +636 -0
- package/src/features/mathml/serialize/math-serializer.d.ts +34 -0
- package/src/features/mathml/serialize/math-serializer.js +749 -0
- package/src/features/smart-art/diagram-xml.d.ts +63 -0
- package/src/features/smart-art/diagram-xml.js +459 -0
- package/src/features/smart-art/errors.d.ts +24 -0
- package/src/features/smart-art/errors.js +47 -0
- package/src/features/smart-art/index.d.ts +26 -0
- package/src/features/smart-art/index.js +26 -0
- package/src/features/smart-art/minimal-samples.d.ts +18 -0
- package/src/features/smart-art/minimal-samples.js +40 -0
- package/src/features/smart-art/mutators.d.ts +60 -0
- package/src/features/smart-art/mutators.js +566 -0
- package/src/features/smart-art/namespaces.d.ts +153 -0
- package/src/features/smart-art/namespaces.js +163 -0
- package/src/features/smart-art/package-graph.d.ts +61 -0
- package/src/features/smart-art/package-graph.js +413 -0
- package/src/features/smart-art/parse-colors.d.ts +19 -0
- package/src/features/smart-art/parse-colors.js +39 -0
- package/src/features/smart-art/parse-data.d.ts +21 -0
- package/src/features/smart-art/parse-data.js +121 -0
- package/src/features/smart-art/parse-layout.d.ts +20 -0
- package/src/features/smart-art/parse-layout.js +40 -0
- package/src/features/smart-art/parse-rel-ids.d.ts +71 -0
- package/src/features/smart-art/parse-rel-ids.js +233 -0
- package/src/features/smart-art/parse-style.d.ts +19 -0
- package/src/features/smart-art/parse-style.js +39 -0
- package/src/features/smart-art/point-text.d.ts +80 -0
- package/src/features/smart-art/point-text.js +424 -0
- package/src/features/smart-art/register.d.ts +33 -0
- package/src/features/smart-art/register.js +95 -0
- package/src/features/smart-art/serialize.d.ts +40 -0
- package/src/features/smart-art/serialize.js +48 -0
- package/src/features/smart-art/types.d.ts +403 -0
- package/src/features/smart-art/types.js +28 -0
- package/src/global.js +1 -0
- package/src/index.d.ts +21 -0
- package/src/index.js +22 -0
- package/tsconfig.build.json +13 -0
- package/tsconfig.harness.json +32 -0
- package/tslint.json +111 -0
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* filename: ej2-office-common.min.js
|
|
3
|
+
* version : 35.1.37
|
|
4
|
+
* Copyright Syncfusion Inc. 2001 - 2025. All rights reserved.
|
|
5
|
+
* Use of this code is subject to the terms of our license.
|
|
6
|
+
* A copy of the current license can be obtained at any time by e-mailing
|
|
7
|
+
* licensing@syncfusion.com. Any infringement will be prosecuted under
|
|
8
|
+
* applicable laws.
|
|
9
|
+
*/
|
|
10
|
+
this.ej=this.ej||{},this.ej.officecommon=function(e){"use strict";function r(e){return gn[e]}function t(e){if(0===e.length)return{prefix:void 0,raw:e};var r=e.charAt(0);return r===Pn?{prefix:"absolute",raw:e.slice(1)}:r===_n?{prefix:"first",raw:e.slice(1)}:r===xn?{prefix:"second",raw:e.slice(1)}:{prefix:void 0,raw:e}}function n(e){if(0!==e.length){var r=Number(e);return Number.isFinite(r)?r:void 0}}function i(e){var r,i,o=e.trim();if(0===o.length)return{channelRows:[],points:[],stats:{packetCount:0,channelValueCount:0,pointCount:0}};var a=o.split(","),s=[],u=[],c=0,l=[],p=[],f="absolute";try{for(var h=wn(a),d=h.next();!d.done;d=h.next()){var v=d.value.trim().split(/\s+/).filter(function(e){return e.length>0});if(0!==v.length){for(var y=f,m=[],b=0;b<v.length;b++){var g=v[b];if(void 0!==g){var w=t(g),P=w.prefix,_=w.raw;void 0!==P&&(y=P,f=P);var x=n(_);if(c+=1,void 0!==x){var S=void 0;if("absolute"===y)S=x,p[b]=0;else if("first"===y)S=(O=null!=l[b]?l[b]:0)+x,p[b]=x;else{var M=(null!=p[b]?p[b]:0)+x;p[b]=M;var O=null!=l[b]?l[b]:0;S=O+M}m[b]=S}}}s.push(m),l=m.slice();var k=m[0],E=m[1];void 0!==k&&void 0!==E&&u.push({x:k,y:E})}}}catch(e){r={error:e}}finally{try{d&&!d.done&&(i=h.return)&&i.call(h)}finally{if(r)throw r.error}}return{channelRows:s,points:u,stats:{packetCount:s.length,channelValueCount:c,pointCount:u.length}}}function o(e){return 0===e.length?"":e.map(function(e){return a(e.x)+" "+a(e.y)}).join(", ")}function a(e){return Number.isInteger(e),String(e)}function s(e){var r=e[0];if(void 0===r)return{minX:0,minY:0,maxX:0,maxY:0};for(var t=r.x,n=r.y,i=t,o=n,a=1;a<e.length;a++){var s=e[a];void 0!==s&&(s.x<t&&(t=s.x),s.y<n&&(n=s.y),s.x>i&&(i=s.x),s.y>o&&(o=s.y))}return{minX:t,minY:n,maxX:i,maxY:o}}function u(e,r){if(0===e.length)return[];var t=s(e),n=t.maxX-t.minX,i=t.maxY-t.minY,o=n>0?r.width/n:0,a=i>0?r.height/i:0,u=n>0&&i>0?Math.min(o,a):n>0?o:i>0?a:0;return e.map(function(e){return{x:e.x*u,y:e.y*u}})}function c(e,r){if(0===e.length)return[];var t=s(e),n=t.maxX-t.minX,i=t.maxY-t.minY,o=n>0?r.width/n:0,a=i>0?r.height/i:0;return e.map(function(e){return{x:n>0?(e.x-t.minX)*o:0,y:i>0?(e.y-t.minY)*a:0}})}function l(e){return"none"===e||"pencil"===e||"rainbow"===e||"galaxy"===e||"lava"===e||"ocean"===e||"roseGold"===e||"gold"===e||"silver"===e||"bronze"===e}function p(e,r){var t={color:e.color,size:{width:e.size.width,height:e.size.height},units:e.units,inkEffect:e.inkEffect,ignorePressure:e.ignorePressure,id:r};return void 0!==e.tip&&(t.tip=e.tip),void 0!==e.rasterOp&&(t.rasterOp=e.rasterOp),void 0!==e.anchorX&&(t.anchorX=e.anchorX),void 0!==e.anchorY&&(t.anchorY=e.anchorY),void 0!==e.scaleFactor&&(t.scaleFactor=e.scaleFactor),void 0!==e.transparency&&(t.transparency=e.transparency),void 0!==e.antiAliased&&(t.antiAliased=e.antiAliased),void 0!==e.fitToCurve&&(t.fitToCurve=e.fitToCurve),t}function f(e){var r={id:e.id,channels:e.channels.map(function(e){var r={name:e.name};return void 0!==e.type&&(r.type=e.type),void 0!==e.min&&(r.min=e.min),void 0!==e.max&&(r.max=e.max),void 0!==e.units&&(r.units=e.units),r})};return void 0!==e.inkSourceId&&(r.inkSourceId=e.inkSourceId),r}function h(e){return{color:Cn,size:{width:An,height:An},units:Ln,inkEffect:"none",ignorePressure:!0,id:e}}function d(e,r){void 0!==r.color&&(e.color=r.color),void 0!==r.size&&(e.size={width:r.size.width,height:r.size.height}),void 0!==r.units&&(e.units=r.units),void 0!==r.inkEffect&&l(r.inkEffect)&&(e.inkEffect=r.inkEffect),void 0!==r.ignorePressure&&(e.ignorePressure=r.ignorePressure),void 0!==r.tip&&(e.tip=r.tip),void 0!==r.rasterOp&&(e.rasterOp=r.rasterOp),void 0!==r.anchorX&&(e.anchorX=r.anchorX),void 0!==r.anchorY&&(e.anchorY=r.anchorY),void 0!==r.scaleFactor&&(e.scaleFactor=r.scaleFactor)}function v(e){for(var r=new Set(e.map(function(e){return e.id})),t=0;;){var n="#br"+String(t);if(!r.has(n))return n;t+=1}}function y(e){var r=e;return Object.defineProperty(r,En,{value:!0,enumerable:!1,configurable:!1,writable:!1}),r}function m(e){return y(Sn({traces:e.traces,brushes:e.brushes,scaleMode:"decoded"},void 0!==e.contexts?{contexts:e.contexts}:{},void 0!==e.traceTree?{traceTree:e.traceTree}:{}))}function b(){return y({traces:[],brushes:[],scaleMode:"authored"})}function g(e,r,t){if(!x(e))throw new TypeError("addInkTrace: expected OfficeInk from createInk/cloneInk");var n,i=e,o=r.map(function(e){return{x:e.x,y:e.y}}),a=i.traces[i.traces.length-1];void 0!==a&&(n=i.brushes.find(function(e){return e.id===a.brushRef}));var s=v(i.brushes),u=void 0!==n?p(n,s):h(s);void 0!==t&&d(u,t),i.brushes.push(u);var c={points:o,brushRef:u.id,contextRef:Tn},l=i.traces.length;return i.traces.push(c),void 0!==i.traceTree&&(i.traceTree=On(i.traceTree,[{kind:"trace",traceIndex:l}])),c}function w(e){if(!x(e))throw new TypeError("cloneInk: expected OfficeInk from createInk/cloneInk");var r=e,t=r.brushes.map(function(e){return p(e,e.id)}),n={traces:r.traces.map(function(e){var r={points:e.points.map(function(e){return{x:e.x,y:e.y}}),brushRef:e.brushRef,contextRef:e.contextRef};return void 0!==e.timeOffset&&(r.timeOffset=e.timeOffset),r}),brushes:t,scaleMode:r.scaleMode};return void 0!==r.contexts&&(n.contexts=r.contexts.map(f)),void 0!==r.traceTree&&(n.traceTree=P(r.traceTree)),y(n)}function P(e){return e.map(function(e){return"trace"===e.kind?{kind:"trace",traceIndex:e.traceIndex}:{kind:"group",children:P(e.children)}})}function _(e,r){var t,n,i,o,a,s;if(!x(e))throw new TypeError("inkPathPoints: expected OfficeInk from createInk/cloneInk");var l=e,p=[];try{for(var f=kn(l.traces),h=f.next();!h.done;h=f.next()){_=h.value;try{for(var d=kn(_.points),v=d.next();!v.done;v=d.next()){var y=v.value;p.push(y)}}catch(e){i={error:e}}finally{try{v&&!v.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}catch(e){t={error:e}}finally{try{h&&!h.done&&(n=f.return)&&n.call(f)}finally{if(t)throw t.error}}if(0===p.length)return l.traces.map(function(){return[]});var m="decoded"===l.scaleMode?u(p,r):c(p,r),b=0,g=[];try{for(var w=kn(l.traces),P=w.next();!P.done;P=w.next()){var _=P.value,S=m.slice(b,b+_.points.length);b+=_.points.length,g.push(On(S))}}catch(e){a={error:e}}finally{try{P&&!P.done&&(s=w.return)&&s.call(w)}finally{if(a)throw a.error}}return g}function x(e){return null!==e&&"object"==typeof e&&!0===e[En]}function S(e,r){var t;switch((null!=r?r:"cm").trim().toLowerCase()){case"pt":t=e;break;case"mm":t=e/25.4*72;break;case"px":t=e/4*3;break;case"in":t=72*e;break;case"cm":t=e/2.54*72;break;case"emu":default:t=e/Un}return k(t)}function M(e,r){switch((null!=r?r:"cm").trim().toLowerCase()){case"pt":return e;case"mm":return 25.4*e/72;case"px":return 96*e/72;case"in":return e/72;case"cm":return 2.54*e/72;case"emu":return e*Un;default:return 2.54*e/72}}function O(e){if(!Number.isFinite(e))return"0";var r=e.toFixed(3);return-1===r.indexOf(".")?r:r.replace(/\.?0+$/,"")}function k(e){return Math.round(100*e)/100}function E(e,r,t,n){return void 0===r&&(r=[]),void 0===t&&(t=[]),void 0===n&&(n=[]),{kind:"element",namespaceUri:bn,localName:e,prefix:jn,attributes:r,namespaceDeclarations:n,children:t}}function A(e,r){return{namespaceUri:"",localName:e,prefix:"",value:r}}function C(e){return{namespaceUri:Nn,localName:"id",prefix:"xml",value:e}}function L(e){return{kind:"text",value:e}}function T(){return{prefix:jn,namespaceUri:bn}}function N(e,r,t){var n,i,o,a;try{for(var s=In(e.attributes),u=s.next();!u.done;u=s.next())if((p=u.value).localName===r&&(void 0===t||p.namespaceUri===t))return p.value}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}if("id"===r)try{for(var c=In(e.attributes),l=c.next();!l.done;l=c.next()){var p=l.value;if("id"===p.localName&&("xml"===p.prefix||p.namespaceUri===Nn))return p.value}}catch(e){o={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}}function U(e){var r,t,n="";try{for(var i=In(e.children),o=i.next();!o.done;o=i.next()){var a=o.value;"text"===a.kind?n+=a.value:n+=U(a)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return n}function I(e){return e.namespaceUri===bn||""===e.namespaceUri}function j(){return Zn}function B(e){var r,t,n,i,o=[],a=0,s=0,u=0,c=[],l=[],p=[],f=[];if(!R(e))return Zn={items:o,traceCount:0,packetCount:0,pointCount:0,channelValueCount:0},m({traces:[],brushes:[]});var h=!1;try{for(var d=Rn(e.children),v=d.next();!v.done;v=d.next())if("element"===(w=v.value).kind&&I(w)){var y=w.localName;if(!Dn.has(y)&&"definitions"===y){if(h)continue;h=!0,F(w,c,l)}}}catch(e){r={error:e}}finally{try{v&&!v.done&&(t=d.return)&&t.call(d)}finally{if(r)throw r.error}}try{for(var b=Rn(e.children),g=b.next();!g.done;g=b.next()){var w=g.value;if("element"===w.kind&&I(w)){var P=w.localName;if(!Dn.has(P)&&"definitions"!==P)if("trace"===P){var _=V(w,p.length),x=_.trace,S=_.node,M=_.stats,O=_.diagnostic;p.push(x),f.push(S),a+=M.packetCount,s+=M.pointCount,u+=M.channelValueCount,void 0!==O&&o.push(O)}else if("traceGroup"===P){var k=X(w,p,o,function(e){a+=e.packetCount,s+=e.pointCount,u+=e.channelValueCount});k.children.length>0&&f.push(k)}}}}catch(e){n={error:e}}finally{try{g&&!g.done&&(i=b.return)&&i.call(b)}finally{if(n)throw n.error}}return Zn={items:o,traceCount:p.length,packetCount:a,pointCount:s,channelValueCount:u},m(Bn({traces:p,brushes:c},l.length>0?{contexts:l}:{},p.length>0?{traceTree:f}:{}))}function R(e){return"ink"===e.localName&&(I(e)||e.namespaceUri===bn)}function F(e,r,t){var n,i;try{for(var o=Rn(e.children),a=o.next();!a.done;a=o.next()){var s=a.value;if("element"===s.kind&&I(s)&&!Dn.has(s.localName))if("brush"===s.localName)r.push(D(s));else if("context"===s.localName){var u=H(s);void 0!==u&&t.push(u)}}}catch(e){n={error:e}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}}function H(e){var r,t,n=Y(e);if(void 0!==n&&0!==n.length){var i,o=q(n),a=[];try{for(var s=Rn(e.children),u=s.next();!u.done;u=s.next()){var c=u.value;if("element"===c.kind&&I(c)&&!Dn.has(c.localName))if("inkSource"===c.localName){var l=Y(c);void 0!==l&&l.length>0&&(i=l),z(c,a)}else"traceFormat"===c.localName&&z(c,a)}}catch(e){r={error:e}}finally{try{u&&!u.done&&(t=s.return)&&t.call(s)}finally{if(r)throw r.error}}var p={id:o,channels:a};return void 0!==i&&(p.inkSourceId=i),p}}function z(e,r){var t,n;try{for(var i=Rn(e.children),o=i.next();!o.done;o=i.next())!function(e){if("element"!==e.kind||!I(e))return"continue";if("traceFormat"===e.localName)return z(e,r),"continue";if("channel"!==e.localName)return"continue";var t=function(){var r=N(e,"name");return null!=r?r:""}();if(!Hn.has(t))return"continue";var n={name:t},i=N(e,"type");void 0!==i&&(n.type=i);var o=N(e,"min");void 0!==o&&(n.min=o);var a=N(e,"max");void 0!==a&&(n.max=a);var s=N(e,"units");void 0!==s&&zn.has(s)?n.units=s:void 0!==s&&(n.units=s),r.push(n)}(o.value)}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}function D(e){var r,t,n,i,o,a,s,u,c=function(){var r=Y(e);return null!=r?r:""}(),l=q(c.length>0?c:"br0"),p=S(Yn,"cm"),f=S(qn,"cm"),h="cm",d=Kn,v=Gn,y=Jn,m=!1,b="none",g=!1,w=!1;try{for(var P=Rn(e.children),_=P.next();!_.done;_=P.next())!function(e){if("element"!==e.kind||!I(e))return"continue";if("brushProperty"!==e.localName)return"continue";var r=N(e,"name");if(void 0===r)return"continue";var t=r.trim().toLowerCase();if(!Vn.has(t))return"continue";var c=function(){var r=N(e,"value");return null!=r?r:""}(),l=N(e,"units");switch(t){case"width":void 0!==(O=K(c))&&(p=S(O,P=null!=l?l:"cm"),w||(h=P),g=!0,h=P);break;case"height":if(void 0!==(O=K(c))){var P=null!=l?l:h;f=S(O,P),w=!0,void 0!==l&&(h=l)}break;case"color":var _=G(c);void 0!==_&&(d=_);break;case"tip":c.length>0&&(v=c);break;case"rasterop":c.length>0&&(y=c);break;case"ignorepressure":m=J(c);break;case"inkeffects":var x=c.trim().toLowerCase().replace(/[_\s-]/g,""),M=Xn.get(x);void 0!==M&&(b=M);break;case"anchorx":n=c;break;case"anchory":i=c;break;case"scalefactor":o=c;break;case"transparency":var O=Number(c);Number.isFinite(O)&&(a=O);break;case"antialiased":s=J(c);break;case"fittocurve":u=J(c)}}(_.value)}catch(e){r={error:e}}finally{try{_&&!_.done&&(t=P.return)&&t.call(P)}finally{if(r)throw r.error}}g||w||(h="cm");var x={id:l,color:d,size:{width:p,height:f},units:h,inkEffect:b,ignorePressure:m,tip:v,rasterOp:y};return void 0!==n&&(x.anchorX=n),void 0!==i&&(x.anchorY=i),void 0!==o&&(x.scaleFactor=o),void 0!==a&&(x.transparency=a),void 0!==s&&(x.antiAliased=s),void 0!==u&&(x.fitToCurve=u),x}function V(e,r){var t,n=function(){var r=N(e,"brushRef");return null!=r?r:""}(),o=function(){var r=N(e,"contextRef");return null!=r?r:""}(),a=N(e,"timeOffset"),s=U(e).trim(),u=i(s);s.length>0&&0===u.points.length&&(t={code:Fn,message:"malformed or untokenizable ink trace text",traceIndex:r});var c={points:u.points.map(function(e){return{x:e.x,y:e.y}}),brushRef:n.length>0?q(n.replace(/^#/,"")):"",contextRef:o.length>0?q(o.replace(/^#/,"")):Wn};return n.length>0&&(c.brushRef=n.startsWith("#")?n:q(n)),void 0!==a&&(c.timeOffset=a),{trace:c,node:{kind:"trace",traceIndex:r},stats:{packetCount:u.stats.packetCount,pointCount:u.stats.pointCount,channelValueCount:u.stats.channelValueCount},diagnostic:t}}function X(e,r,t,n){var i,o,a=[];try{for(var s=Rn(e.children),u=s.next();!u.done;u=s.next()){var c=u.value;if("element"===c.kind&&I(c)&&!Dn.has(c.localName))if("trace"===c.localName){var l=V(c,r.length),p=l.trace,f=l.node,h=l.stats,d=l.diagnostic;r.push(p),a.push(f),n(h),void 0!==d&&t.push(d)}else if("traceGroup"===c.localName){var v=X(c,r,t,n);v.children.length>0&&a.push(v)}}}catch(e){i={error:e}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}return{kind:"group",children:a}}function Y(e){var r=N(e,"id",Nn);return void 0!==r?r:N(e,"id")}function q(e){return e.startsWith("#")?e:"#"+e}function K(e){var r=e.trim();if(0!==r.length){r.startsWith(".")&&(r="0"+r);var t=Number(r);return Number.isFinite(t)?t:void 0}}function G(e){var r=e.trim();if(0!==r.length&&(r.startsWith("#")||(r="#"+r),/^#[0-9A-Fa-f]{6}$/.test(r)||/^#[0-9A-Fa-f]{3}$/.test(r))){if(4===r.length){var t=r.charAt(1),n=r.charAt(2),i=r.charAt(3);return("#"+t+t+n+n+i+i).toUpperCase()}return r.toUpperCase()}}function J(e){var r=e.trim().toLowerCase();return"1"===r||"true"===r}function W(e){var r,t,n,i,o,a,s,u;if(!x(e))throw new TypeError("serializeInkXml: expected OfficeInk from parseInkXml/createInk");var c=[],l=[],p=e.traces.some(function(e){return e.contextRef===ti||""===e.contextRef||e.contextRef==="#"+ri})||e.traces.length>0,f=null!=e.contexts?e.contexts:[],h=!1;try{for(var d=$n(f),v=d.next();!v.done;v=d.next()){var y=v.value;l.push($(y)),ae(y.id)===ri&&(h=!0)}}catch(e){r={error:e}}finally{try{v&&!v.done&&(t=d.return)&&t.call(d)}finally{if(r)throw r.error}}p&&!h&&l.push($(Z()));var m=ei(e.brushes).sort(function(e,r){return e.id<r.id?-1:e.id>r.id?1:0});try{for(var b=$n(m),g=b.next();!g.done;g=b.next()){var w=g.value;l.push(ee(w))}}catch(e){n={error:e}}finally{try{g&&!g.done&&(i=b.return)&&i.call(b)}finally{if(n)throw n.error}}if(l.length>0&&c.push(E("definitions",[],l)),void 0!==e.traceTree&&e.traceTree.length>0)try{for(var P=$n(e.traceTree),_=P.next();!_.done;_=P.next()){var S=_.value;c.push.apply(c,ei(ie(S,e.traces)))}}catch(e){o={error:e}}finally{try{_&&!_.done&&(a=P.return)&&a.call(P)}finally{if(o)throw o.error}}else try{for(var M=$n(e.traces),O=M.next();!O.done;O=M.next()){var k=O.value;c.push(oe(k))}}catch(e){s={error:e}}finally{try{O&&!O.done&&(u=M.return)&&u.call(M)}finally{if(s)throw s.error}}return E("ink",[],c,[T()])}function Z(){return{id:ti,inkSourceId:ni,channels:[{name:"X",type:"integer",min:ii,max:oi,units:ai},{name:"Y",type:"integer",min:ii,max:oi,units:ai}]}}function $(e){var r=ae(e.id),t=ae(null!=e.inkSourceId?e.inkSourceId:ni),n=E("traceFormat",[],(e.channels.length>0?e.channels:Z().channels).map(function(e){return Q(e)})),i=E("inkSource",[C(t)],[n]);return E("context",[C(r)],[i])}function Q(e){var r=[A("name",e.name)];return void 0!==e.type&&r.push(A("type",e.type)),void 0!==e.min&&r.push(A("min",e.min)),void 0!==e.max&&r.push(A("max",e.max)),void 0!==e.units&&r.push(A("units",e.units)),E("channel",r,[])}function ee(e){var r=ae(e.id),t=[],n=e.units.length>0?e.units:"cm",i=M(e.size.width,n),o=M(e.size.height,n);t.push(re("width",O(i),n),re("height",O(o),n));var a=te(e);t.push(re("color",a.startsWith("#")?a:"#"+a));var s=e.inkEffect;return t.push(re("ignorePressure",e.ignorePressure?"1":"0")),"pencil"!==s&&void 0!==e.rasterOp&&e.rasterOp.length>0&&(t.push(re("tip",null!=e.tip?e.tip:"ellipse")),t.push(re("rasterOp",e.rasterOp))),"none"!==s&&(t.push(re("inkEffects",ne(s))),"pencil"!==s&&(t.push(re("anchorX",null!=e.anchorX?e.anchorX:"0")),t.push(re("anchorY",null!=e.anchorY?e.anchorY:"0")),t.push(re("scaleFactor",null!=e.scaleFactor?e.scaleFactor:"0.5")))),E("brush",[C(r)],t)}function re(e,r,t){var n=[A("name",e),A("value",r)];return void 0!==t&&n.push(A("units",t)),E("brushProperty",n,[])}function te(e){var t=r(e.inkEffect);return void 0!==t?t.toUpperCase():e.color.toUpperCase()}function ne(e){return"roseGold"===e?"roseGold":e}function ie(e,r){var t,n;if("trace"===e.kind){var i=r[e.traceIndex];return void 0===i?[]:[oe(i)]}var o=[];try{for(var a=$n(e.children),s=a.next();!s.done;s=a.next()){var u=s.value;o.push.apply(o,ei(ie(u,r)))}}catch(e){t={error:e}}finally{try{s&&!s.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}return[E("traceGroup",[],o)]}function oe(e){var r=[],t=e.contextRef.length>0?se(e.contextRef):ti;r.push(A("contextRef",t)),e.brushRef.length>0&&r.push(A("brushRef",se(e.brushRef))),void 0!==e.timeOffset&&r.push(A("timeOffset",e.timeOffset));var n=o(e.points);return E("trace",r,n.length>0?[L(n)]:[])}function ae(e){return e.startsWith("#")?e.slice(1):e}function se(e){return e.startsWith("#")?e:"#"+e}function ue(e){return-1!==pi.indexOf(e)?e:void 0}function ce(e){return-1!==fi.indexOf(e)?e:void 0}function le(e){return-1!==hi.indexOf(e)?e:void 0}function pe(e){return-1!==di.indexOf(e)?e:void 0}function fe(e){return-1!==vi.indexOf(e)?e:void 0}function he(e){return-1!==yi.indexOf(e)?e:void 0}function de(e){return-1!==mi.indexOf(e)?e:void 0}function ve(e){return-1!==bi.indexOf(e)?e:void 0}function ye(e){return-1!==gi.indexOf(e)?e:void 0}function me(e){return Number.isInteger(e)&&e>=-2&&e<=2}function be(e){return Number.isInteger(e)&&e>=1&&e<=255}function ge(e){return Number.isInteger(e)&&e>=0}function we(e){return Number.isInteger(e)&&e>=0&&e<=4}function Pe(e){if(void 0!==e){var r=e.toLowerCase();return"1"===r||"true"===r||"on"===r||"0"!==r&&"false"!==r&&"off"!==r&&void 0}}function _e(e){return e?"1":"0"}function xe(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return new Ci({},e)}function Se(e){return Object.freeze(Fi({},e))}function Me(e){return e instanceof Ci?e:new Ci({},e)}function Oe(e,r,t,n){return{kind:"element",namespaceUri:e,localName:r,prefix:t,attributes:function(){var e=null==n?void 0:n.attributes;return null!=e?e:[]}(),namespaceDeclarations:function(){var e=null==n?void 0:n.namespaceDeclarations;return null!=e?e:[]}(),children:function(){var e=null==n?void 0:n.children;return null!=e?e:[]}()}}function ke(e){return{kind:"text",value:e}}function Ee(e){return e.children.filter(function(e){return"element"===e.kind})}function Ae(e,r){return function(){var t=e.attributes.find(function(e){return e.localName===r});return null==t?void 0:t.value}()}function Ce(e,r,t){return function(){var n=e.attributes.find(function(e){return e.namespaceUri===r&&e.localName===t});return null==n?void 0:n.value}()}function Le(e){var r,t,n="";try{for(var i=co(e.children),o=i.next();!o.done;o=i.next()){var a=o.value;"text"===a.kind&&(n+=a.value)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return n}function Te(e){return e.namespaceUri===si}function Ne(e,r){return Ee(e).find(function(e){return Te(e)&&e.localName===r})}function Ue(e,r){return Ee(e).filter(function(e){return Te(e)&&e.localName===r})}function Ie(e){if(e)return Ae(e,"val")}function je(e,r){if(e){var t=Ne(e,r);if(t){var n=Ae(t,"val");return void 0===n||Pe(n)}}}function Be(e,r){if(e)return Ie(Ne(e,r))}function Re(e){if(e)return Ne(e,"ctrlPr")}function Fe(e,r,t,n,i){return function(){var i=null==n?void 0:n.onDiagnostic;null==i||i({path:r,message:t,localName:e.localName})}(),i.markPreserveOnly(e),i}function He(e){if(!e)return{};var r=Ie(Ne(e,"argSz"));if(void 0===r)return{};var t=Number(r);return Number.isFinite(t)&&me(t)?{argSz:t}:{}}function ze(e,r){var t,n;if(!e)return new Ci;var i=He(Ne(e,"argPr")),o=Ne(e,"ctrlPr"),a=[];try{for(var s=po(Ee(e)),u=s.next();!u.done;u=s.next()){var c=u.value;Te(c)&&("argPr"!==c.localName&&"ctrlPr"!==c.localName&&a.push(ur(c,r)))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return new Ci(i,a,o)}function De(e,r,t){return Ue(e,r).map(function(e){return ze(e,t)})}function Ve(e){var r=Be(e,"chr"),t=Re(e);return lo({},void 0!==r?{chr:r}:{},void 0!==t?{ctrlPr:t}:{})}function Xe(e){var r=Be(e,"pos"),t=void 0!==r?fe(r):void 0,n=Re(e);return lo({},void 0!==t?{pos:t}:{},void 0!==n?{ctrlPr:n}:{})}function Ye(e){var r=je(e,"opEmu"),t=je(e,"noBreak"),n=je(e,"diff"),i=je(e,"aln"),o=Re(e);return lo({},void 0!==r?{isOperatorEmulated:r}:{},void 0!==t?{isNoBreak:t}:{},void 0!==n?{isDifferential:n}:{},void 0!==i?{isAligned:i}:{},void 0!==o?{ctrlPr:o}:{})}function qe(e){var r,t,n={};try{for(var i=po(ho),o=i.next();!o.done;o=i.next()){var a=fo(o.value,2),s=a[0],u=a[1],c=je(e,s);void 0!==c&&(n[u]=c)}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}var l=Re(e);return void 0!==l&&(n.ctrlPr=l),n}function Ke(e){var r=Be(e,"begChr"),t=Be(e,"sepChr"),n=Be(e,"endChr"),i=je(e,"grow"),o=Be(e,"shp"),a=void 0!==o?le(o):void 0,s=Re(e);return lo({},void 0!==r?{begChr:r}:{},void 0!==t?{sepChr:t}:{},void 0!==n?{endChr:n}:{},void 0!==i?{canGrow:i}:{},void 0!==a?{shp:a}:{},void 0!==s?{ctrlPr:s}:{})}function Ge(e){var r=Be(e,"baseJc"),t=je(e,"maxDist"),n=je(e,"objDist"),i=Re(e);return lo({},void 0!==r?{baseJc:r}:{},void 0!==t?{hasMaxDistance:t}:{},void 0!==n?{hasObjectDistance:n}:{},void 0!==i?{ctrlPr:i}:{})}function Je(e){var r=Be(e,"type"),t=void 0!==r?ce(r):void 0,n=Re(e);return lo({},void 0!==t?{type:t}:{},void 0!==n?{ctrlPr:n}:{})}function We(e){var r=Re(e);return lo({},void 0!==r?{ctrlPr:r}:{})}function Ze(e){var r=Be(e,"chr"),t=Be(e,"pos"),n=void 0!==t?fe(t):void 0,i=Be(e,"vertJc"),o=void 0!==i?fe(i):void 0,a=Re(e);return lo({},void 0!==r?{chr:r}:{},void 0!==n?{pos:n}:{},void 0!==o?{vertJc:o}:{},void 0!==a?{ctrlPr:a}:{})}function $e(e){var r=Re(e);return lo({},void 0!==r?{ctrlPr:r}:{})}function Qe(e){var r=Be(e,"baseJc"),t=je(e,"plcHide"),n=Re(e);return lo({},void 0!==r?{baseJc:r}:{},void 0!==t?{isPlaceholderHidden:t}:{},void 0!==n?{ctrlPr:n}:{})}function er(e){var r=Be(e,"chr"),t=Be(e,"limLoc"),n=void 0!==t?pe(t):void 0,i=je(e,"grow"),o=je(e,"subHide"),a=je(e,"supHide"),s=Re(e);return lo({},void 0!==r?{chr:r}:{},void 0!==n?{limLoc:n}:{},void 0!==i?{canGrow:i}:{},void 0!==o?{isSubscriptHidden:o}:{},void 0!==a?{isSuperscriptHidden:a}:{},void 0!==s?{ctrlPr:s}:{})}function rr(e){var r=je(e,"show"),t=je(e,"zeroWid"),n=je(e,"zeroAsc"),i=je(e,"zeroDesc"),o=je(e,"transp"),a=Re(e);return lo({},void 0!==r?{isShown:r}:{},void 0!==t?{isZeroWidth:t}:{},void 0!==n?{isZeroAscender:n}:{},void 0!==i?{isZeroDescender:i}:{},void 0!==o?{isTransparent:o}:{},void 0!==a?{ctrlPr:a}:{})}function tr(e){var r=je(e,"degHide"),t=Re(e);return lo({},void 0!==r?{isDegreeHidden:r}:{},void 0!==t?{ctrlPr:t}:{})}function nr(e){var r=je(e,"alnScr"),t=Re(e);return lo({},void 0!==r?{isScriptAligned:r}:{},void 0!==t?{ctrlPr:t}:{})}function ir(e){if(!e)return{};var r=je(e,"lit"),t=je(e,"nor"),n=Be(e,"scr"),i=Be(e,"sty"),o=void 0!==n?ve(n):void 0,a=void 0!==i?ye(i):void 0,s=je(e,"aln"),u=Be(e,"brk"),c=void 0!==u?Number(u):void 0,l=void 0!==c&&Number.isFinite(c)?c:void 0;return lo({},void 0!==r?{isLiteral:r}:{},void 0!==t?{isNormal:t}:{},void 0!==o?{scr:o}:{},void 0!==a?{sty:a}:{},void 0!==s?{isAligned:s}:{},void 0!==l?{brk:l}:{})}function or(e){var r=Ce(e,li,"space"),t="preserve"===r||"default"===r?r:void 0;return new Ai(Le(e),t)}function ar(e,r){var t,n,i,o=ir(Ne(e,"rPr")),a=[],s=[];try{for(var u=po(Ee(e)),c=u.next();!c.done;c=u.next()){var l=c.value;Te(l)&&"rPr"===l.localName||(l.namespaceUri!==ci||"rPr"!==l.localName?Te(l)&&"t"===l.localName?a.push(or(l)):Te(l)?a.push(ur(l,r)):s.push(l):i=l)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return new uo(a,o,i,s)}function sr(e,r){return new Qi(De(e,"e",r))}function ur(e,r){if(!Te(e))return new Li(e.localName,e);switch(e.localName){case"oMathPara":return lr(e,r);case"oMath":return cr(e,r);case"t":return or(e);case"r":return ar(e,r);case"acc":t=Ne(e,"accPr");return new Di(Ve(t),ze(Ne(e,"e"),r));case"bar":t=Ne(e,"barPr");return new Vi(Xe(t),ze(Ne(e,"e"),r));case"box":t=Ne(e,"boxPr");return new Xi(Ye(t),ze(Ne(e,"e"),r));case"borderBox":t=Ne(e,"borderBoxPr");return new Yi(qe(t),ze(Ne(e,"e"),r));case"d":t=Ne(e,"dPr");return(n=De(e,"e",r)).length<1?Fe(e,"d","m:d missing required m:e",r,new qi(Ke(t),[])):new qi(Ke(t),n);case"eqArr":var t=Ne(e,"eqArrPr"),n=De(e,"e",r);return n.length<1?Fe(e,"eqArr","m:eqArr missing required m:e",r,new Ki(Ge(t),[])):new Ki(Ge(t),n);case"f":var t=Ne(e,"fPr"),i=Ne(e,"num"),o=Ne(e,"den");return i&&o?new Gi(Je(t),ze(i,r),ze(o,r)):Fe(e,"f","m:f missing required m:num and/or m:den",r,new Gi(Je(t),ze(i,r),ze(o,r)));case"func":t=Ne(e,"funcPr");return new Ji(We(t),ze(Ne(e,"fName"),r),ze(Ne(e,"e"),r));case"groupChr":t=Ne(e,"groupChrPr");return new Wi(Ze(t),ze(Ne(e,"e"),r));case"limLow":t=Ne(e,"limLowPr");return new Zi($e(t),ze(Ne(e,"e"),r),ze(Ne(e,"lim"),r));case"limUpp":t=Ne(e,"limUppPr");return new $i($e(t),ze(Ne(e,"e"),r),ze(Ne(e,"lim"),r));case"m":var t=Ne(e,"mPr"),a=Ue(e,"mr").map(function(e){return sr(e,r)});return a.length<1?Fe(e,"m","m:m missing required m:mr",r,new eo(Qe(t),[])):new eo(Qe(t),a);case"mr":return sr(e,r);case"nary":t=Ne(e,"naryPr");return new ro(er(t),ze(Ne(e,"sub"),r),ze(Ne(e,"sup"),r),ze(Ne(e,"e"),r));case"phant":t=Ne(e,"phantPr");return new to(rr(t),ze(Ne(e,"e"),r));case"rad":t=Ne(e,"radPr");return new no(tr(t),ze(Ne(e,"deg"),r),ze(Ne(e,"e"),r));case"sPre":t=Ne(e,"sPrePr");return new io(nr(t),ze(Ne(e,"sub"),r),ze(Ne(e,"sup"),r),ze(Ne(e,"e"),r));case"sSub":t=Ne(e,"sSubPr");return new oo(nr(t),ze(Ne(e,"e"),r),ze(Ne(e,"sub"),r));case"sSubSup":t=Ne(e,"sSubSupPr");return new ao(nr(t),ze(Ne(e,"e"),r),ze(Ne(e,"sub"),r),ze(Ne(e,"sup"),r));case"sSup":t=Ne(e,"sSupPr");return new so(nr(t),ze(Ne(e,"e"),r),ze(Ne(e,"sup"),r));default:return new Li(e.localName,e)}}function cr(e,r){var t,n,i=[];try{for(var o=po(Ee(e)),a=o.next();!a.done;a=o.next()){var s=a.value;Te(s)?i.push(ur(s,r)):i.push(new Li(s.localName,s))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return new Bi(i)}function lr(e,r){var t=Ne(e,"oMathParaPr"),n=t?Be(t,"jc"):void 0,i=void 0!==n?ue(n):void 0,o=lo({},void 0!==i?{jc:i}:{}),a=Ue(e,"oMath").map(function(e){return cr(e,r)});return a.length<1?Fe(e,"oMathPara","m:oMathPara missing required m:oMath",r,new ji(o,[])):new ji(o,a)}function pr(e,r){return ur(e,r)}function fr(e,r){return e.map(function(e){return pr(e,r)})}function hr(e){var r,t;if(void 0!==(null==e?void 0:e.prefix)&&e.prefix.length>0)return e.prefix;var n=new Set(function(){var r=null==e?void 0:e.reservedPrefixes;return null!=r?r:[]}());try{for(var i=vo(ui),o=i.next();!o.done;o=i.next()){var a=o.value;if(!n.has(a))return a}}catch(e){r={error:e}}finally{try{o&&!o.done&&(t=i.return)&&t.call(i)}finally{if(r)throw r.error}}return"m999"}function dr(e){if(0===e.length)return!0;var r=e[0],t=e[e.length-1];return" "===r||"\t"===r||"\n"===r||"\r"===r||" "===t||"\t"===t||"\n"===t||"\r"===t}function vr(e){return e?"1":"0"}function yr(e,r,t,n){return void 0===t&&(t=[]),void 0===n&&(n=[]),Oe(si,r,e.prefix,{attributes:n,children:t})}function mr(e){return{namespaceUri:"",localName:"val",prefix:"",value:e}}function br(e,r,t){return yr(e,r,[],[mr(t)])}function gr(e,r,t){return yr(e,r,[],[mr(vr(t))])}function wr(e,r){void 0!==r&&e.push(r)}function Pr(e,r,t,n){if(-1===r.indexOf(e))throw new _i("Illegal "+n+" token '"+e+"' (not in schema enum)",t,"enum-value")}function _r(e,r,t){var n=e.path+"."+r,i=[],o=t.properties.argSz;if(void 0!==o){if(!me(o))throw new _i("argSz must be an integer in −2..2 (ST_Integer2), got "+String(o),n+".argPr.argSz","value-range");i.push(yr(e,"argPr",[br(e,"argSz",String(o))]))}for(var a=0;a<t.item.length;a++){var s=t.item[a];void 0!==s&&i.push(Jr(s,{prefix:e.prefix,path:n+"["+String(a)+"]"}))}return wr(i,t.ctrlPr),yr(e,r,i)}function xr(e,r){var t=[],n=r.xmlSpace;return void 0===n&&dr(r.value)&&(n="preserve"),void 0!==n&&t.push({namespaceUri:li,localName:"space",prefix:"xml",value:n}),yr(e,"t",[ke(r.value)],t)}function Sr(e,r){var t=r.properties,n=[];if(void 0!==t.isLiteral&&n.push(gr(e,"lit",t.isLiteral)),void 0!==t.isNormal&&n.push(gr(e,"nor",t.isNormal)),void 0!==t.scr&&(Pr(t.scr,bi,e.path+".rPr.scr","ST_Script"),n.push(br(e,"scr",t.scr))),void 0!==t.sty&&(Pr(t.sty,gi,e.path+".rPr.sty","ST_Style"),n.push(br(e,"sty",t.sty))),void 0!==t.brk){if(!(be(t.brk)||Number.isInteger(t.brk)&&0===t.brk)&&(!Number.isInteger(t.brk)||t.brk<0||t.brk>255))throw new _i("brk must be an integer in 0..255, got "+String(t.brk),e.path+".rPr.brk","value-range");n.push(br(e,"brk",String(t.brk)))}if(void 0!==t.isAligned&&n.push(gr(e,"aln",t.isAligned)),0!==n.length)return yr(e,"rPr",n)}function Mr(e,r){var t,n,i=[],o=Sr(e,r);void 0!==o&&i.push(o),void 0!==r.wRPr&&i.push(r.wRPr);for(var a=0;a<r.children.length;a++){var s=r.children[a];void 0!==s&&i.push(Jr(s,{prefix:e.prefix,path:e.path+".r["+String(a)+"]"}))}try{for(var u=vo(r.opaqueChildren),c=u.next();!c.done;c=u.next()){var l=c.value;i.push(l)}}catch(e){t={error:e}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}return yr(e,"r",i)}function Or(e,r){var t=[],n=[];return void 0!==r.properties.chr&&n.push(br(e,"chr",r.properties.chr)),wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"accPr",n)),t.push(_r(e,"e",r.base)),yr(e,"acc",t)}function kr(e,r){var t=[],n=[];return void 0!==r.properties.pos&&(Pr(r.properties.pos,vi,e.path+".barPr.pos","ST_TopBot"),n.push(br(e,"pos",r.properties.pos))),wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"barPr",n)),t.push(_r(e,"e",r.base)),yr(e,"bar",t)}function Er(e,r){var t=[],n=[],i=r.properties;return void 0!==i.isOperatorEmulated&&n.push(gr(e,"opEmu",i.isOperatorEmulated)),void 0!==i.isNoBreak&&n.push(gr(e,"noBreak",i.isNoBreak)),void 0!==i.isDifferential&&n.push(gr(e,"diff",i.isDifferential)),void 0!==i.isAligned&&n.push(gr(e,"aln",i.isAligned)),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"boxPr",n)),t.push(_r(e,"e",r.base)),yr(e,"box",t)}function Ar(e,r){var t,n,i=[],o=[],a=r.properties;try{for(var s=vo(mo),u=s.next();!u.done;u=s.next()){var c=yo(u.value,2),l=c[0],p=c[1],f=a[l];"boolean"==typeof f&&o.push(gr(e,p,f))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return wr(o,a.ctrlPr),o.length>0&&i.push(yr(e,"borderBoxPr",o)),i.push(_r(e,"e",r.base)),yr(e,"borderBox",i)}function Cr(e,r){var t,n;r.assertSerializable(e.path);var i=[],o=[],a=r.properties;void 0!==a.begChr&&o.push(br(e,"begChr",a.begChr)),void 0!==a.sepChr&&o.push(br(e,"sepChr",a.sepChr)),void 0!==a.endChr&&o.push(br(e,"endChr",a.endChr)),void 0!==a.canGrow&&o.push(gr(e,"grow",a.canGrow)),void 0!==a.shp&&(Pr(a.shp,hi,e.path+".dPr.shp","ST_Shp"),o.push(br(e,"shp",a.shp))),wr(o,a.ctrlPr),o.length>0&&i.push(yr(e,"dPr",o));try{for(var s=vo(r.elements),u=s.next();!u.done;u=s.next()){var c=u.value;i.push(_r(e,"e",c))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return yr(e,"d",i)}function Lr(e,r){var t,n;r.assertSerializable(e.path);var i=[],o=[],a=r.properties;void 0!==a.baseJc&&o.push(br(e,"baseJc",a.baseJc)),void 0!==a.hasMaxDistance&&o.push(gr(e,"maxDist",a.hasMaxDistance)),void 0!==a.hasObjectDistance&&o.push(gr(e,"objDist",a.hasObjectDistance)),wr(o,a.ctrlPr),o.length>0&&i.push(yr(e,"eqArrPr",o));try{for(var s=vo(r.elements),u=s.next();!u.done;u=s.next()){var c=u.value;i.push(_r(e,"e",c))}}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return yr(e,"eqArr",i)}function Tr(e,r){var t=[],n=[];return void 0!==r.properties.type&&(Pr(r.properties.type,fi,e.path+".fPr.type","ST_FType"),n.push(br(e,"type",r.properties.type))),wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"fPr",n)),t.push(_r(e,"num",r.numerator)),t.push(_r(e,"den",r.denominator)),yr(e,"f",t)}function Nr(e,r){var t=[],n=[];return wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"funcPr",n)),t.push(_r(e,"fName",r.name)),t.push(_r(e,"e",r.base)),yr(e,"func",t)}function Ur(e,r){var t=[],n=[],i=r.properties;return void 0!==i.chr&&n.push(br(e,"chr",i.chr)),void 0!==i.pos&&(Pr(i.pos,vi,e.path+".groupChrPr.pos","ST_TopBot"),n.push(br(e,"pos",i.pos))),void 0!==i.vertJc&&(Pr(i.vertJc,vi,e.path+".groupChrPr.vertJc","ST_TopBot"),n.push(br(e,"vertJc",i.vertJc))),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"groupChrPr",n)),t.push(_r(e,"e",r.base)),yr(e,"groupChr",t)}function Ir(e,r){var t=[],n=[];return wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"limLowPr",n)),t.push(_r(e,"e",r.base)),t.push(_r(e,"lim",r.lim)),yr(e,"limLow",t)}function jr(e,r){var t=[],n=[];return wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"limUppPr",n)),t.push(_r(e,"e",r.base)),t.push(_r(e,"lim",r.lim)),yr(e,"limUpp",t)}function Br(e,r){var t,n;r.assertSerializable(e.path);var i=[];try{for(var o=vo(r.elements),a=o.next();!a.done;a=o.next()){var s=a.value;i.push(_r(e,"e",s))}}catch(e){t={error:e}}finally{try{a&&!a.done&&(n=o.return)&&n.call(o)}finally{if(t)throw t.error}}return yr(e,"mr",i)}function Rr(e,r){r.assertSerializable(e.path);var t=[],n=[],i=r.properties;void 0!==i.baseJc&&n.push(br(e,"baseJc",i.baseJc)),void 0!==i.isPlaceholderHidden&&n.push(gr(e,"plcHide",i.isPlaceholderHidden)),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"mPr",n));for(var o=0;o<r.rows.length;o++){var a=r.rows[o];void 0!==a&&t.push(Br({prefix:e.prefix,path:e.path+".mr["+String(o)+"]"},a))}return yr(e,"m",t)}function Fr(e,r){var t=[],n=[],i=r.properties;return void 0!==i.chr&&n.push(br(e,"chr",i.chr)),void 0!==i.limLoc&&(Pr(i.limLoc,di,e.path+".naryPr.limLoc","ST_LimLoc"),n.push(br(e,"limLoc",i.limLoc))),void 0!==i.canGrow&&n.push(gr(e,"grow",i.canGrow)),void 0!==i.isSubscriptHidden&&n.push(gr(e,"subHide",i.isSubscriptHidden)),void 0!==i.isSuperscriptHidden&&n.push(gr(e,"supHide",i.isSuperscriptHidden)),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"naryPr",n)),t.push(_r(e,"sub",r.subscript)),t.push(_r(e,"sup",r.superscript)),t.push(_r(e,"e",r.base)),yr(e,"nary",t)}function Hr(e,r){var t=[],n=[],i=r.properties;return void 0!==i.isShown&&n.push(gr(e,"show",i.isShown)),void 0!==i.isZeroWidth&&n.push(gr(e,"zeroWid",i.isZeroWidth)),void 0!==i.isZeroAscender&&n.push(gr(e,"zeroAsc",i.isZeroAscender)),void 0!==i.isZeroDescender&&n.push(gr(e,"zeroDesc",i.isZeroDescender)),void 0!==i.isTransparent&&n.push(gr(e,"transp",i.isTransparent)),wr(n,i.ctrlPr),n.length>0&&t.push(yr(e,"phantPr",n)),t.push(_r(e,"e",r.base)),yr(e,"phant",t)}function zr(e,r){var t=[],n=[];return void 0!==r.properties.isDegreeHidden&&n.push(gr(e,"degHide",r.properties.isDegreeHidden)),wr(n,r.properties.ctrlPr),n.length>0&&t.push(yr(e,"radPr",n)),t.push(_r(e,"deg",r.deg)),t.push(_r(e,"e",r.base)),yr(e,"rad",t)}function Dr(e,r,t,n){var i=[];if(void 0!==t&&i.push(gr(e,"alnScr",t)),wr(i,n),0!==i.length)return yr(e,r,i)}function Vr(e,r){var t=[],n=Dr(e,"sPrePr",r.properties.isScriptAligned,r.properties.ctrlPr);return void 0!==n&&t.push(n),t.push(_r(e,"sub",r.sub)),t.push(_r(e,"sup",r.sup)),t.push(_r(e,"e",r.base)),yr(e,"sPre",t)}function Xr(e,r){var t=[],n=Dr(e,"sSubPr",r.properties.isScriptAligned,r.properties.ctrlPr);return void 0!==n&&t.push(n),t.push(_r(e,"e",r.base)),t.push(_r(e,"sub",r.subscript)),yr(e,"sSub",t)}function Yr(e,r){var t=[],n=Dr(e,"sSubSupPr",r.properties.isScriptAligned,r.properties.ctrlPr);return void 0!==n&&t.push(n),t.push(_r(e,"e",r.base)),t.push(_r(e,"sub",r.subscript)),t.push(_r(e,"sup",r.superscript)),yr(e,"sSubSup",t)}function qr(e,r){var t=[],n=Dr(e,"sSupPr",r.properties.isScriptAligned,r.properties.ctrlPr);return void 0!==n&&t.push(n),t.push(_r(e,"e",r.base)),t.push(_r(e,"sup",r.superscript)),yr(e,"sSup",t)}function Kr(e,r){for(var t=[],n=0;n<r.children.length;n++){var i=r.children[n];void 0!==i&&t.push(Jr(i,{prefix:e.prefix,path:e.path+"["+String(n)+"]"}))}return yr(e,"oMath",t)}function Gr(e,r){r.assertSerializable(e.path);var t=[];void 0!==r.properties.jc&&(Pr(r.properties.jc,pi,e.path+".oMathParaPr.jc","ST_Jc"),t.push(yr(e,"oMathParaPr",[br(e,"jc",r.properties.jc)])));for(var n=0;n<r.equations.length;n++){var i=r.equations[n];void 0!==i&&t.push(Kr({prefix:e.prefix,path:e.path+".oMath["+String(n)+"]"},i))}return yr(e,"oMathPara",t)}function Jr(e,r){if(e.preserveOnly){if(void 0===e.preservedXml)throw new _i("preserve-only node missing preservedXml",r.path,"required-child");return e.preservedXml}if(e instanceof Li){if(void 0===e.preservedXml)throw new _i("unknown math node missing preservedXml",r.path,"required-child");return e.preservedXml}switch(e.type){case"oMathPara":return Gr(r,e);case"oMath":return Kr(r,e);case"t":return xr(r,e);case"r":return Mr(r,e);case"acc":return Or(r,e);case"bar":return kr(r,e);case"box":return Er(r,e);case"borderBox":return Ar(r,e);case"d":return Cr(r,e);case"eqArr":return Lr(r,e);case"f":return Tr(r,e);case"func":return Nr(r,e);case"groupChr":return Ur(r,e);case"limLow":return Ir(r,e);case"limUpp":return jr(r,e);case"m":return Rr(r,e);case"mr":return Br(r,e);case"nary":return Fr(r,e);case"phant":return Hr(r,e);case"rad":return zr(r,e);case"sPre":return Vr(r,e);case"sSub":return Xr(r,e);case"sSubSup":return Yr(r,e);case"sSup":return qr(r,e);case"arg":throw new _i("MathArgument cannot be serialized as a root; use a named CT_OMathArg slot",r.path,"child-order");case"unknown":if(void 0!==e.preservedXml)return e.preservedXml;throw new _i("unknown math node missing preservedXml",r.path,"required-child");default:var t=e.type;throw new _i("Unhandled math kind: "+String(t),r.path,"required-child")}}function Wr(e,r){return Jr(e,{prefix:hr(r),path:e.type})}function Zr(e){return{kind:"element",namespaceUri:e.namespaceUri,localName:e.localName,prefix:e.prefix,attributes:e.attributes.map(function(e){return{namespaceUri:e.namespaceUri,localName:e.localName,prefix:e.prefix,value:e.value}}),namespaceDeclarations:e.namespaceDeclarations.map(function(e){return{prefix:e.prefix,namespaceUri:e.namespaceUri}}),children:e.children.map($r)}}function $r(e){return"text"===e.kind?{kind:"text",value:e.value}:Zr(e)}function Qr(e){return void 0===e?void 0:Zr(e)}function et(e){return bo({},void 0!==e.chr?{chr:e.chr}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function rt(e){return bo({},void 0!==e.pos?{pos:e.pos}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function tt(e){return bo({},void 0!==e.isOperatorEmulated?{isOperatorEmulated:e.isOperatorEmulated}:{},void 0!==e.isNoBreak?{isNoBreak:e.isNoBreak}:{},void 0!==e.isDifferential?{isDifferential:e.isDifferential}:{},void 0!==e.isAligned?{isAligned:e.isAligned}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function nt(e){return bo({},void 0!==e.isTopHidden?{isTopHidden:e.isTopHidden}:{},void 0!==e.isBottomHidden?{isBottomHidden:e.isBottomHidden}:{},void 0!==e.isLeftHidden?{isLeftHidden:e.isLeftHidden}:{},void 0!==e.isRightHidden?{isRightHidden:e.isRightHidden}:{},void 0!==e.hasHorizontalStrike?{hasHorizontalStrike:e.hasHorizontalStrike}:{},void 0!==e.hasVerticalStrike?{hasVerticalStrike:e.hasVerticalStrike}:{},void 0!==e.hasBottomLeftToTopRightStrike?{hasBottomLeftToTopRightStrike:e.hasBottomLeftToTopRightStrike}:{},void 0!==e.hasTopLeftToBottomRightStrike?{hasTopLeftToBottomRightStrike:e.hasTopLeftToBottomRightStrike}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function it(e){return bo({},void 0!==e.begChr?{begChr:e.begChr}:{},void 0!==e.sepChr?{sepChr:e.sepChr}:{},void 0!==e.endChr?{endChr:e.endChr}:{},void 0!==e.canGrow?{canGrow:e.canGrow}:{},void 0!==e.shp?{shp:e.shp}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ot(e){return bo({},void 0!==e.baseJc?{baseJc:e.baseJc}:{},void 0!==e.hasMaxDistance?{hasMaxDistance:e.hasMaxDistance}:{},void 0!==e.hasObjectDistance?{hasObjectDistance:e.hasObjectDistance}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function at(e){return bo({},void 0!==e.type?{type:e.type}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function st(e){return bo({},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ut(e){return bo({},void 0!==e.chr?{chr:e.chr}:{},void 0!==e.pos?{pos:e.pos}:{},void 0!==e.vertJc?{vertJc:e.vertJc}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ct(e){return bo({},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function lt(e){return bo({},void 0!==e.baseJc?{baseJc:e.baseJc}:{},void 0!==e.isPlaceholderHidden?{isPlaceholderHidden:e.isPlaceholderHidden}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function pt(e){return bo({},void 0!==e.chr?{chr:e.chr}:{},void 0!==e.limLoc?{limLoc:e.limLoc}:{},void 0!==e.canGrow?{canGrow:e.canGrow}:{},void 0!==e.isSubscriptHidden?{isSubscriptHidden:e.isSubscriptHidden}:{},void 0!==e.isSuperscriptHidden?{isSuperscriptHidden:e.isSuperscriptHidden}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ft(e){return bo({},void 0!==e.isShown?{isShown:e.isShown}:{},void 0!==e.isZeroWidth?{isZeroWidth:e.isZeroWidth}:{},void 0!==e.isZeroAscender?{isZeroAscender:e.isZeroAscender}:{},void 0!==e.isZeroDescender?{isZeroDescender:e.isZeroDescender}:{},void 0!==e.isTransparent?{isTransparent:e.isTransparent}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function ht(e){return bo({},void 0!==e.isDegreeHidden?{isDegreeHidden:e.isDegreeHidden}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function dt(e){return bo({},void 0!==e.isScriptAligned?{isScriptAligned:e.isScriptAligned}:{},void 0!==e.ctrlPr?{ctrlPr:Qr(e.ctrlPr)}:{})}function vt(e){return bo({},void 0!==e.isLiteral?{isLiteral:e.isLiteral}:{},void 0!==e.isNormal?{isNormal:e.isNormal}:{},void 0!==e.scr?{scr:e.scr}:{},void 0!==e.sty?{sty:e.sty}:{},void 0!==e.isAligned?{isAligned:e.isAligned}:{},void 0!==e.brk?{brk:e.brk}:{})}function yt(e){return bo({},void 0!==e.argSz?{argSz:e.argSz}:{})}function mt(e){return bo({},void 0!==e.jc?{jc:e.jc}:{})}function bt(e){switch(e.type){case"t":var r=e;return new Ai(r.value,r.xmlSpace);case"arg":var t=e;return new Ci(yt(t.properties),t.item.map(bt),Qr(t.ctrlPr));case"oMathPara":var n=e;return new ji(mt(n.properties),n.equations.map(function(e){return bt(e)}));case"oMath":return new Bi(e.children.map(bt));case"unknown":var i=e,o=i.preservedXml;return void 0===o?new Li(i.localName,{kind:"element",namespaceUri:"",localName:i.localName,prefix:"",attributes:[],namespaceDeclarations:[],children:[]}):new Li(i.localName,Zr(o));case"r":var a=e;return new uo(a.children.map(bt),vt(a.properties),void 0===a.wRPr?void 0:Zr(a.wRPr),a.opaqueChildren.map(Zr));case"acc":return new Di(et((s=e).properties),bt(s.base));case"bar":return new Vi(rt((s=e).properties),bt(s.base));case"box":return new Xi(tt((s=e).properties),bt(s.base));case"borderBox":return new Yi(nt((s=e).properties),bt(s.base));case"d":return new qi(it((s=e).properties),s.elements.map(function(e){return bt(e)}));case"eqArr":return new Ki(ot((s=e).properties),s.elements.map(function(e){return bt(e)}));case"f":return new Gi(at((s=e).properties),bt(s.numerator),bt(s.denominator));case"func":return new Ji(st((s=e).properties),bt(s.name),bt(s.base));case"groupChr":return new Wi(ut((s=e).properties),bt(s.base));case"limLow":return new Zi(ct((s=e).properties),bt(s.base),bt(s.lim));case"limUpp":return new $i(ct((s=e).properties),bt(s.base),bt(s.lim));case"m":return new eo(lt((s=e).properties),s.rows.map(function(e){return bt(e)}));case"mr":return new Qi((s=e).elements.map(function(e){return bt(e)}));case"nary":return new ro(pt((s=e).properties),bt(s.subscript),bt(s.superscript),bt(s.base));case"phant":return new to(ft((s=e).properties),bt(s.base));case"rad":return new no(ht((s=e).properties),bt(s.deg),bt(s.base));case"sPre":return new io(dt((s=e).properties),bt(s.sub),bt(s.sup),bt(s.base));case"sSub":return new oo(dt((s=e).properties),bt(s.base),bt(s.subscript));case"sSubSup":return new ao(dt((s=e).properties),bt(s.base),bt(s.subscript),bt(s.superscript));case"sSup":var s=e;return new so(dt(s.properties),bt(s.base),bt(s.superscript));default:e.type;throw new Error("cloneMathElement: unhandled kind")}}function gt(e,r){if(void 0===e&&void 0===r)return!0;if(void 0===e||void 0===r)return!1;if(e.namespaceUri!==r.namespaceUri||e.localName!==r.localName||e.prefix!==r.prefix||e.attributes.length!==r.attributes.length||e.namespaceDeclarations.length!==r.namespaceDeclarations.length||e.children.length!==r.children.length)return!1;for(i=0;i<e.attributes.length;i++){var t=e.attributes[i],n=r.attributes[i];if(t.namespaceUri!==n.namespaceUri||t.localName!==n.localName||t.prefix!==n.prefix||t.value!==n.value)return!1}for(i=0;i<e.namespaceDeclarations.length;i++){var t=e.namespaceDeclarations[i],n=r.namespaceDeclarations[i];if(t.prefix!==n.prefix||t.namespaceUri!==n.namespaceUri)return!1}for(var i=0;i<e.children.length;i++){var o=e.children[i],a=r.children[i];if(o.kind!==a.kind)return!1;if("text"===o.kind&&"text"===a.kind){if(o.value!==a.value)return!1}else{if("element"!==o.kind||"element"!==a.kind)return!1;if(!gt(o,a))return!1}}return!0}function wt(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(!gt(e[t],r[t]))return!1;return!0}function Pt(e,r,t){void 0===t&&(t="ctrlPr");var n,i,o=new Set(wo(Object.keys(e),Object.keys(r)));try{for(var a=Po(o),s=a.next();!s.done;s=a.next()){var u=s.value;if(u!==t){if(e[u]!==r[u])return!1}else if(!gt(e[u],r[u]))return!1}}catch(e){n={error:e}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return!0}function _t(e,r){if(e.length!==r.length)return!1;for(var t=0;t<e.length;t++)if(!xt(e[t],r[t]))return!1;return!0}function xt(e,r){if(e.type!==r.type)return!1;if(e.preserveOnly!==r.preserveOnly)return!1;switch(e.type){case"t":var t=e,n=r;return t.value===n.value&&t.xmlSpace===n.xmlSpace;case"arg":var i=e,o=r;return Pt(i.properties,o.properties)&>(i.ctrlPr,o.ctrlPr)&&_t(i.item,o.item);case"oMathPara":var a=e,s=r;return Pt(a.properties,s.properties)&&_t(a.equations,s.equations);case"oMath":var u=r;return _t(e.children,u.children);case"unknown":var c=e,l=r;return c.localName===l.localName&>(c.preservedXml,l.preservedXml);case"r":var p=e,f=r;return Pt(p.properties,f.properties)&>(p.wRPr,f.wRPr)&&_t(p.children,f.children)&&wt(p.opaqueChildren,f.opaqueChildren);case"acc":case"bar":case"box":case"borderBox":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base);case"d":case"eqArr":d=r;return Pt((h=e).properties,d.properties)&&_t(h.elements,d.elements);case"f":d=r;return Pt((h=e).properties,d.properties)&&xt(h.numerator,d.numerator)&&xt(h.denominator,d.denominator);case"func":d=r;return Pt((h=e).properties,d.properties)&&xt(h.name,d.name)&&xt(h.base,d.base);case"groupChr":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base);case"limLow":case"limUpp":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base)&&xt(h.lim,d.lim);case"m":d=r;return Pt((h=e).properties,d.properties)&&_t(h.rows,d.rows);case"mr":d=r;return _t((h=e).elements,d.elements);case"nary":d=r;return Pt((h=e).properties,d.properties)&&xt(h.subscript,d.subscript)&&xt(h.superscript,d.superscript)&&xt(h.base,d.base);case"phant":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base);case"rad":d=r;return Pt((h=e).properties,d.properties)&&xt(h.deg,d.deg)&&xt(h.base,d.base);case"sPre":d=r;return Pt((h=e).properties,d.properties)&&xt(h.sub,d.sub)&&xt(h.sup,d.sup)&&xt(h.base,d.base);case"sSub":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base)&&xt(h.subscript,d.subscript);case"sSubSup":d=r;return Pt((h=e).properties,d.properties)&&xt(h.base,d.base)&&xt(h.subscript,d.subscript)&&xt(h.superscript,d.superscript);case"sSup":var h=e,d=r;return Pt(h.properties,d.properties)&&xt(h.base,d.base)&&xt(h.superscript,d.superscript);default:e.type;return!1}}function St(e){if(void 0===e)return zo;var r=null!=e.xmlNestingDepth?e.xmlNestingDepth:zo.xmlNestingDepth,t=null!=e.xmlAttributesPerElement?e.xmlAttributesPerElement:zo.xmlAttributesPerElement,n=null!=e.textNodeLengthBytes?e.textNodeLengthBytes:zo.textNodeLengthBytes,i=Ho({totalUncompressedBytes:null!=e.totalUncompressedBytes?e.totalUncompressedBytes:zo.totalUncompressedBytes,singlePartUncompressedBytes:null!=e.singlePartUncompressedBytes?e.singlePartUncompressedBytes:zo.singlePartUncompressedBytes},void 0===r?{}:{xmlNestingDepth:r},void 0===t?{}:{xmlAttributesPerElement:t},void 0===n?{}:{textNodeLengthBytes:n});return Object.freeze(i)}function Mt(e){switch(e){case"SHA-1":case"SHA1":return"SHA-1";case"SHA256":return"SHA256";case"SHA384":return"SHA384";case"SHA512":return"SHA512";default:throw new Yo("Unsupported OFFCRYPTO hashAlgorithm: "+Ht(e))}}function Ot(e,r){if("AES"!==e)throw new Yo("Unsupported OFFCRYPTO cipherAlgorithm: "+Ht(e));if("ChainingModeCBC"!==r)throw new Yo("Unsupported OFFCRYPTO cipherChaining: "+Ht(r))}function kt(e){if(128!==e&&192!==e&&256!==e)throw new Yo("Unsupported OFFCRYPTO AES keyBits: "+String(e))}function Et(e){return Qo[e]}function At(e,r){var t=Wo($o[e]);return t.update(r),new Uint8Array(t.digest())}function Ct(e,r,t){var n=Zo($o[e],Buffer.from(r));return n.update(t),new Uint8Array(n.digest())}function Lt(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];var t,n,i,o,a=0;try{for(var s=qo(e),u=s.next();!u.done;u=s.next())a+=(h=u.value).byteLength}catch(e){t={error:e}}finally{try{u&&!u.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}var c=new Uint8Array(a),l=0;try{for(var p=qo(e),f=p.next();!f.done;f=p.next()){var h=f.value;c.set(h,l),l+=h.byteLength}}catch(e){i={error:e}}finally{try{f&&!f.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}return c}function Tt(e){for(var r=new Uint8Array(2*e.length),t=0;t<e.length;t++){var n=e.charCodeAt(t);r[2*t]=255&n,r[2*t+1]=n>>>8&255}return r}function Nt(e,r,t,n,i,o){for(var a=At(e,Lt(r,t)),s=new Uint8Array(4),u=new DataView(s.buffer),c=0;c<n;c++)u.setUint32(0,c,!0),a=At(e,Lt(s,a));return Rt(At(e,Lt(a,i)),o/8,Bo)}function Ut(e,r,t,n){return Rt(void 0===t?r:At(e,Lt(r,t)),n,Ro)}function It(e,r,t){if(0===t.byteLength)return new Uint8Array(0);if(t.byteLength%16!=0)throw new Yo("OFFCRYPTO AES-CBC ciphertext length is not block-aligned");if(16!==r.byteLength)throw new Yo("OFFCRYPTO AES-CBC IV must be 16 bytes");var n=Ft(e.byteLength),i=Jo(n,Buffer.from(e),Buffer.from(r));i.setAutoPadding(!1);var o=i.update(Buffer.from(t)),a=i.final();if(0===a.byteLength)return new Uint8Array(o);var s=new Uint8Array(o.byteLength+a.byteLength);return s.set(o,0),s.set(a,o.byteLength),s}function jt(e,r,t){if(16!==r.byteLength)throw new Yo("OFFCRYPTO AES-CBC IV must be 16 bytes");var n=0===t.byteLength?16:16*Math.ceil(t.byteLength/16),i=new Uint8Array(n);i.set(t,0);var o=Ft(e.byteLength),a=Go(o,Buffer.from(e),Buffer.from(r));a.setAutoPadding(!1);var s=a.update(Buffer.from(i)),u=a.final();if(0===u.byteLength)return new Uint8Array(s);var c=new Uint8Array(s.byteLength+u.byteLength);return c.set(s,0),c.set(u,s.byteLength),c}function Bt(e,r){if(e.byteLength!==r.byteLength)return!1;for(var t=0,n=0;n<e.byteLength;n++)t|=(null!=e[n]?e[n]:0)^(null!=r[n]?r[n]:0);return 0===t}function Rt(e,r,t){if(e.byteLength===r)return e;if(e.byteLength>r)return e.subarray(0,r);var n=new Uint8Array(r);return n.set(e,0),n.fill(t,e.byteLength),n}function Ft(e){switch(e){case 16:return"aes-128-cbc";case 24:return"aes-192-cbc";case 32:return"aes-256-cbc";default:throw new Yo("Unsupported AES key length")}}function Ht(e){var r=e.replace(/[^\w.\-:/+]/g,"").slice(0,64);return r.length>0?r:"(unrecognized)"}function zt(e,r,t){if(void 0===t&&(t="EncryptionInfo"),/<!DOCTYPE/i.test(e)||/<!ENTITY/i.test(e))throw new Vo("EncryptionInfo XML must not contain DTD or entities");var n=null!=r.xmlNestingDepth?r.xmlNestingDepth:ta,i=null!=r.xmlAttributesPerElement?r.xmlAttributesPerElement:na,o=null!=r.textNodeLengthBytes?r.textNodeLengthBytes:ia,a=0,s=e.length,u=function(){for(;a<s;){var r=e.charCodeAt(a);if(32!==r&&9!==r&&10!==r&&13!==r)break;a+=1}},c=function(){return a<s?e[a]:""},l=function(r){return e.startsWith(r,a)},p=function(){for(var r=a;a<s;){var t=e[a];if(!/[A-Za-z0-9:_.-]/.test(t))break;a+=1}if(a===r)throw new Vo("EncryptionInfo XML is invalid: expected name");return e.slice(r,a)},f=function(e){return e.replace(/</g,"<").replace(/>/g,">").replace(/"/g,'"').replace(/'/g,"'").replace(/&/g,"&")},h=function(){var r=c();if('"'!==r&&"'"!==r)throw new Vo("EncryptionInfo XML is invalid: attribute value");for(var n=a+=1;a<s&&e[a]!==r;)if((a+=1)-n>o)throw new Do("textNodeLengthBytes",{partName:t,actual:a-n});if(a>=s)throw new Vo("EncryptionInfo XML is invalid: unclosed attribute");var i=e.slice(n,a);return a+=1,f(i)},d=function(e,r,t){var n=e.indexOf(":"),i=-1===n?"":e.slice(0,n),o=-1===n?e:e.slice(n+1);if(t&&""===i)return{localName:o,namespaceUri:""};if("xmlns"===i)return{localName:o,namespaceUri:"http://www.w3.org/2000/xmlns/"};for(var a=r.length-1;a>=0;a--){var s=r[a].get(i);if(void 0!==s)return{localName:o,namespaceUri:s}}return{localName:o,namespaceUri:""}},v=function(r,f){if(f>n)throw new Do("xmlNestingDepth",{partName:t,actual:f});if("<"!==c())throw new Vo("EncryptionInfo XML is invalid: expected element");if(a+=1,"/"===c())throw new Vo("EncryptionInfo XML is invalid: unexpected end tag");var y=p();u();for(var m=[],b=!1,g=new Map;a<s&&">"!==c()&&"/"!==c();){var w=p();if(u(),"="!==c())throw new Vo("EncryptionInfo XML is invalid: expected =");a+=1,u();var P=h();if(u(),"xmlns"===w?g.set("",P):w.startsWith("xmlns:")?g.set(w.slice(6),P):m.push({qName:w,value:P}),m.length>i)throw new Do("xmlAttributesPerElement",{partName:t,actual:m.length})}if(l("/>"))b=!0,a+=2;else{if(">"!==c())throw new Vo("EncryptionInfo XML is invalid: element tag");a+=1}var _=ra(r,[g]),x=d(y,_,!1),S=m.map(function(e){var r=d(e.qName,_,!0);return{localName:r.localName,namespaceUri:r.namespaceUri,value:e.value}});if(b)return{kind:"element",localName:x.localName,namespaceUri:x.namespaceUri,attributes:S,children:[]};for(var M=[];;){if(u(),a>=s)throw new Vo("EncryptionInfo XML is invalid: unclosed element");if(l("</")){a+=2;var O=p();if(u(),">"!==c())throw new Vo("EncryptionInfo XML is invalid: end tag");if(a+=1,O!==y)throw new Vo("EncryptionInfo XML is invalid: mismatched end tag "+O);break}if(l("\x3c!--")){if((k=e.indexOf("--\x3e",a+4))<0)throw new Vo("EncryptionInfo XML is invalid: unclosed comment");a=k+3}else if(l("<?")){var k=e.indexOf("?>",a+2);if(k<0)throw new Vo("EncryptionInfo XML is invalid: unclosed PI");a=k+2}else if("<"!==c()){for(var E=a;a<s&&"<"!==c();)if((a+=1)-E>o)throw new Do("textNodeLengthBytes",{partName:t,actual:a-E})}else M.push(v(_,f+1))}return{kind:"element",localName:x.localName,namespaceUri:x.namespaceUri,attributes:S,children:M}};for(u(),l("\ufeff")&&(a+=1,u());l("<?")||l("\x3c!--");){if(l("<?")){if((y=e.indexOf("?>",a+2))<0)throw new Vo("EncryptionInfo XML is invalid: unclosed declaration");a=y+2}else{var y=e.indexOf("--\x3e",a+4);if(y<0)throw new Vo("EncryptionInfo XML is invalid: unclosed comment");a=y+3}u()}var m=v([new Map],1);if(u(),a<s)throw new Vo("EncryptionInfo XML is invalid: trailing content");return m}function Dt(){return function(){try{return Function("return this")()}catch(e){return{}}}()||{}}function Vt(e,r){if(e.byteLength<aa+1)throw new Vo("EncryptionInfo stream is truncated");var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n=t.getUint16(0,!0),i=t.getUint16(2,!0),o=t.getUint32(4,!0);if(i===jo&&(2===n||3===n||4===n))throw new Yo("OFFCRYPTO Standard Encryption (EncryptionInfo minor version 2) is not supported; Agile (4.4) only");if(n!==_o||i!==xo)throw new Yo("Unsupported EncryptionInfo version "+String(n)+"."+String(i));if(o!==So)throw new Yo("Unsupported EncryptionInfo reserved field 0x"+o.toString(16));var a,s=tn(e.subarray(aa));try{a=zt(s,r,"EncryptionInfo")}catch(e){if(e instanceof Vo||e instanceof Yo)throw e;if(e instanceof Error&&"PackageLimitError"===e.name)throw e;var u=e instanceof Error?e.message:"XML parse failed";throw new Vo("EncryptionInfo XML is invalid: "+u)}if("encryption"!==a.localName||a.namespaceUri!==Mo){if("encryption"!==a.localName)throw new Vo("EncryptionInfo root element is not encryption");if(""!==a.namespaceUri&&a.namespaceUri!==Mo)throw new Vo("EncryptionInfo root element is not encryption")}var c=Gt(a,Mo,"keyData"),l=Jt(a,Mo,"dataIntegrity"),p=Gt(a,Mo,"keyEncryptors");return{keyData:Xt(c),dataIntegrity:void 0===l?void 0:Yt(l),passwordKeyEncryptor:qt(p)}}function Xt(e){var r=$t(e,"saltSize"),t=$t(e,"blockSize"),n=$t(e,"keyBits"),i=$t(e,"hashSize"),o=Zt(e,"cipherAlgorithm"),a=Zt(e,"cipherChaining"),s=Zt(e,"hashAlgorithm"),u=en(e,"saltValue");Ot(o,a),kt(n);var c=Mt(s);if(16!==t)throw new Yo("Unsupported OFFCRYPTO blockSize: "+String(t)+" (AES requires 16)");if(u.byteLength!==r)throw new Vo("keyData saltValue length does not match saltSize");return{saltSize:r,blockSize:t,keyBits:n,hashSize:i,cipherAlgorithm:o,cipherChaining:a,hashAlgorithm:c,saltValue:u}}function Yt(e){return{encryptedHmacKey:en(e,"encryptedHmacKey"),encryptedHmacValue:en(e,"encryptedHmacValue")}}function qt(e){var r,t,n=e.children.filter(function(e){return"element"===e.kind&&"keyEncryptor"===e.localName});if(0===n.length)throw new Vo("EncryptionInfo has no keyEncryptor");var i;try{for(var o=oa(n),a=o.next();!a.done;a=o.next()){var s=a.value,u=Wt(s,"uri");if(u===Oo){i=Kt(s);break}if(void 0!==u&&u.length>0)throw new Yo("OFFCRYPTO certificate (or non-password) keyEncryptor is not supported")}}catch(e){r={error:e}}finally{try{a&&!a.done&&(t=o.return)&&t.call(o)}finally{if(r)throw r.error}}if(void 0===i)throw new Yo("OFFCRYPTO EncryptionInfo has no password keyEncryptor");var c=Qt(i,"spinCount");if(c>Io)throw new Vo("OFFCRYPTO spinCount exceeds maximum allowed ("+String(Io)+")");var l=$t(i,"saltSize"),p=$t(i,"blockSize"),f=$t(i,"keyBits"),h=$t(i,"hashSize"),d=Zt(i,"cipherAlgorithm"),v=Zt(i,"cipherChaining"),y=Zt(i,"hashAlgorithm"),m=en(i,"saltValue"),b=en(i,"encryptedVerifierHashInput"),g=en(i,"encryptedVerifierHashValue"),w=en(i,"encryptedKeyValue");Ot(d,v),kt(f);var P=Mt(y);if(16!==p)throw new Yo("Unsupported password keyEncryptor blockSize: "+String(p));if(m.byteLength!==l)throw new Vo("encryptedKey saltValue length does not match saltSize");return{spinCount:c,saltSize:l,blockSize:p,keyBits:f,hashSize:h,cipherAlgorithm:d,cipherChaining:v,hashAlgorithm:P,saltValue:m,encryptedVerifierHashInput:b,encryptedVerifierHashValue:g,encryptedKeyValue:w}}function Kt(e){var r,t;try{for(var n=oa(e.children),i=n.next();!i.done;i=n.next()){var o=i.value;if("element"===o.kind&&"encryptedKey"===o.localName)return o}}catch(e){r={error:e}}finally{try{i&&!i.done&&(t=n.return)&&t.call(n)}finally{if(r)throw r.error}}}function Gt(e,r,t){var n=Jt(e,r,t);if(void 0===n)throw new Vo("EncryptionInfo missing element "+t);return n}function Jt(e,r,t){var n,i,o,a;try{for(var s=oa(e.children),u=s.next();!u.done;u=s.next())if("element"===(p=u.value).kind&&p.localName===t&&(p.namespaceUri===r||""===p.namespaceUri))return p}catch(e){n={error:e}}finally{try{u&&!u.done&&(i=s.return)&&i.call(s)}finally{if(n)throw n.error}}try{for(var c=oa(e.children),l=c.next();!l.done;l=c.next()){var p=l.value;if("element"===p.kind&&p.localName===t)return p}}catch(e){o={error:e}}finally{try{l&&!l.done&&(a=c.return)&&a.call(c)}finally{if(o)throw o.error}}}function Wt(e,r){var t,n;try{for(var i=oa(e.attributes),o=i.next();!o.done;o=i.next()){var a=o.value;if(a.localName===r)return a.value}}catch(e){t={error:e}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}function Zt(e,r){var t=Wt(e,r);if(void 0===t||0===t.length)throw new Vo("EncryptionInfo missing attribute "+r);return t}function $t(e,r){var t=Zt(e,r),n=Number.parseInt(t,10);if(!Number.isFinite(n)||n<=0)throw new Vo("EncryptionInfo attribute "+r+" is invalid");return n}function Qt(e,r){var t=Zt(e,r),n=Number.parseInt(t,10);if(!Number.isFinite(n)||n<0)throw new Vo("EncryptionInfo attribute "+r+" is invalid");return n}function en(e,r){var t=Zt(e,r);try{return rn(t)}catch(e){throw new Vo("EncryptionInfo attribute "+r+" is not valid base64")}}function rn(e){var r=e.replace(/\s+/g,"");if("function"==typeof Dt().atob){for(var t=Dt().atob(r),n=new Uint8Array(t.length),i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}return new Uint8Array(Buffer.from(r,"base64"))}function tn(e){return new TextDecoder("utf-8",{fatal:!0}).decode(e)}function nn(e,r){var t=Tt(e),n=r.hashAlgorithm,i=r.saltValue,o=r.spinCount,a=r.keyBits,s=r.blockSize,u=r.hashSize,c=It(Nt(n,i,t,o,ko,a),Ut(n,i,void 0,s),r.encryptedVerifierHashInput);if(c.byteLength<r.saltSize)throw new Xo;var l=At(n,c.subarray(0,r.saltSize)),p=It(Nt(n,i,t,o,Eo,a),Ut(n,i,void 0,s),r.encryptedVerifierHashValue),f=Math.min(u,l.byteLength,p.byteLength);if(f<=0)throw new Xo;if(!Bt(l.subarray(0,f),p.subarray(0,f)))throw new Xo;var h=It(Nt(n,i,t,o,Ao,a),Ut(n,i,void 0,s),r.encryptedKeyValue),d=a/8;if(h.byteLength<d)throw new Xo;return h.subarray(0,d)}function on(e){if(e.byteLength<512)throw new Vo("OFFCRYPTO package is truncated (CFB header)");for(d=0;d<ua.length;d++)if(e[d]!==ua[d])throw new Vo("Package is not a valid OLE compound file");var r=new DataView(e.buffer,e.byteOffset,e.byteLength),t=r.getUint16(30,!0);if(t!==ca&&t!==la)throw new Vo("Unsupported CFB sector size");var n=1<<t,i=r.getUint16(32,!0);if(6!==i)throw new Vo("Unsupported CFB mini-sector size");var o=1<<i,a=r.getUint32(56,!0),s=r.getUint32(48,!0),u=r.getUint32(60,!0),c=r.getUint32(64,!0),l=r.getUint32(44,!0),p=r.getUint32(68,!0),f=r.getUint32(72,!0);if(l>ma)throw new Vo("CFB FAT is unreasonably large");for(var h=[],d=0;d<109;d++)(b=r.getUint32(76+4*d,!0))!==fa&&h.push(b);for(var v=p,y=0;y<f&&(v!==pa&&v!==fa);y++){P=an(v,n);sn(e,P,n);for(var m=n/4-1,d=0;d<m;d++){var b=r.getUint32(P+4*d,!0);b!==fa&&h.push(b)}v=r.getUint32(P+4*m,!0)}if(h.length<l)throw new Vo("CFB DIFAT is truncated");for(var g=[],d=0;d<l;d++){var w=h[d];if(void 0===w)throw new Vo("CFB DIFAT is truncated");var P=an(w,n);sn(e,P,n);for(var _=n/4,x=0;x<_;x++)g.push(r.getUint32(P+4*x,!0))}var S=un(e,r,g,s,n,void 0);if(S.byteLength<va)throw new Vo("CFB directory is empty");for(var M=Math.min(Math.floor(S.byteLength/va),ya),O=new DataView(S.buffer,S.byteOffset,S.byteLength),k=[],d=0;d<M;d++){for(var E=d*va,A=O.getUint16(E+64,!0),C=A>=2?Math.floor((A-2)/2):0,L="",T=0;T<C&&T<32;T++)L+=String.fromCharCode(O.getUint16(E+2*T,!0));var N=O.getUint8(E+66),U=O.getUint32(E+76,!0),I=O.getUint32(E+116,!0),j=O.getUint32(E+120,!0);if(0!==O.getUint32(E+124,!0))throw new Vo("OFFCRYPTO stream exceeds supported size");k.push({name:L,objectType:N,startSector:I,streamSize:j,childId:U})}var B=k[0];if(void 0===B||5!==B.objectType)throw new Vo("CFB root storage is missing");var R=new Map,F=new Set,H=function(e){if(!(e>4294967290||e>=k.length||F.has(e))){F.add(e);var r=k[e];if(void 0!==r){var t=O.getUint32(e*va+68,!0),n=O.getUint32(e*va+72,!0);H(t),2===r.objectType&&R.set(r.name,r),H(n),1!==r.objectType&&5!==r.objectType||H(r.childId)}}};H(B.childId);var z=R.get(No),D=R.get(Uo);if(void 0===z||void 0===D)throw new Vo("OFFCRYPTO streams EncryptionInfo and/or EncryptedPackage are missing");var V,X,Y=function(t){if(0===t.streamSize)return new Uint8Array(0);if(t.streamSize<a&&t!==B){if(void 0===V&&(V=cn(e,r,g,u,c,n),X=un(e,r,g,B.startSector,n,void 0)),void 0===X)throw new Vo("CFB mini-stream is unavailable");return ln(X,V,t.startSector,o,t.streamSize)}return un(e,r,g,t.startSector,n,t.streamSize)};return{encryptionInfo:Y(z),encryptedPackage:Y(D)}}function an(e,r){return(e+1)*r}function sn(e,r,t){if(r<0||t<0||r+t>e.byteLength)throw new Vo("OFFCRYPTO package is truncated (CFB sector)")}function un(e,r,t,n,i,o){if(n===pa||n===fa)return new Uint8Array(0);for(var a=[],s=0,u=n,c=0,l=t.length+2;u!==pa&&u!==fa;){if(c++>l)throw new Vo("CFB FAT chain is cyclic or unbounded");if(u===ha||u===da)throw new Vo("CFB FAT chain contains reserved sector");if(u<0||u>=t.length){var p=an(u,i);if(p+i>e.byteLength&&p>=e.byteLength)throw new Vo("CFB FAT chain sector out of range")}var f=an(u,i);sn(e,f,Math.min(i,e.byteLength-f));var h=Math.min(i,e.byteLength-f),d=e.subarray(f,f+h);if(a.push(d),s+=d.byteLength,void 0!==o&&s>=o)break;if(u>=t.length)throw new Vo("CFB FAT chain sector out of range");var v=t[u];if(void 0===v)throw new Vo("CFB FAT chain sector out of range");u=v}var y=pn(a);if(void 0!==o){if(y.byteLength<o)throw new Vo("OFFCRYPTO stream data is truncated");return y.subarray(0,o)}return y}function cn(e,r,t,n,i,o){if(0===i||n===pa)return[];for(var a=un(e,r,t,n,o,i*o),s=new DataView(a.buffer,a.byteOffset,a.byteLength),u=[],c=0;c+4<=a.byteLength;c+=4)u.push(s.getUint32(c,!0));return u}function ln(e,r,t,n,i){for(var o=[],a=0,s=t,u=0,c=r.length+2;s!==pa&&s!==fa&&a<i;){if(u++>c)throw new Vo("CFB mini-FAT chain is cyclic or unbounded");var l=s*n;if(l>=e.byteLength)throw new Vo("CFB mini-stream is truncated");var p=Math.min(n,e.byteLength-l,i-a);if(o.push(e.subarray(l,l+p)),a+=p,s>=r.length)throw new Vo("CFB mini-FAT sector out of range");var f=r[s];if(void 0===f)throw new Vo("CFB mini-FAT sector out of range");s=f}var h=pn(o);if(h.byteLength<i)throw new Vo("OFFCRYPTO mini-stream data is truncated");return h.subarray(0,i)}function pn(e){var r,t,n,i,o=0;try{for(var a=sa(e),s=a.next();!s.done;s=a.next())o+=(f=s.value).byteLength}catch(e){r={error:e}}finally{try{s&&!s.done&&(t=a.return)&&t.call(a)}finally{if(r)throw r.error}}var u=new Uint8Array(o),c=0;try{for(var l=sa(e),p=l.next();!p.done;p=l.next()){var f=p.value;u.set(f,c),c+=f.byteLength}}catch(e){n={error:e}}finally{try{p&&!p.done&&(i=l.return)&&i.call(l)}finally{if(n)throw n.error}}return u}function fn(e,r,t,n,i){if(e.byteLength<ba)throw new Vo("EncryptedPackage stream is truncated");var o=Math.max(i.singlePartUncompressedBytes,i.totalUncompressedBytes);if(e.byteLength>o+ba+To)throw new Do("singlePartUncompressedBytes",{actual:e.byteLength});var a=new DataView(e.buffer,e.byteOffset,e.byteLength),s=a.getUint32(0,!0);if(0!==a.getUint32(4,!0))throw new Do("singlePartUncompressedBytes",{actual:Number.MAX_SAFE_INTEGER});var u=s;if(u>i.singlePartUncompressedBytes)throw new Do("singlePartUncompressedBytes",{actual:u});if(u>i.totalUncompressedBytes)throw new Do("totalUncompressedBytes",{actual:u});var c=e.subarray(ba);if(0===c.byteLength&&u>0)throw new Vo("EncryptedPackage has StreamSize but no ciphertext");void 0!==n&&vn(e,r,t,n);var l=hn(c,r,t);if(l.byteLength<u)throw new Vo("Decrypted EncryptedPackage is shorter than StreamSize");return l.subarray(0,u)}function hn(e,r,t){for(var n=To,i=t.blockSize,o=new Uint8Array(e.byteLength),a=0,s=0,u=0;u<e.byteLength;){var c=e.byteLength-u,l=c>n?n:c;if(l%i!=0)throw new Vo("EncryptedPackage segment is not block-aligned");var p=e.subarray(u,u+l),f=dn(s),h=It(r,Ut(t.hashAlgorithm,t.saltValue,f,i),p);o.set(h,a),a+=h.byteLength,u+=l,s+=1}return o.subarray(0,a)}function dn(e){var r=new Uint8Array(4);return new DataView(r.buffer).setUint32(0,e>>>0,!0),r}function vn(e,r,t,n){var i=t.hashAlgorithm,o=t.saltValue,a=t.blockSize,s=It(r,Ut(i,o,Co,a),n.encryptedHmacKey),u=Et(i);if(s.byteLength<u)throw new Xo;var c=s.subarray(0,u),l=It(r,Ut(i,o,Lo,a),n.encryptedHmacValue);if(l.byteLength<u)throw new Xo;var p=l.subarray(0,u);if(!Bt(Ct(i,c,e).subarray(0,u),p))throw new Xo}function yn(e){var r=e instanceof Uint8Array?e:new Uint8Array(e);if(r.byteLength<Pa.length)return!1;for(var t=0;t<Pa.length;t++)if(r[t]!==Pa[t])return!1;return!0}function mn(e,r,t){return void 0===t&&(t=zo),ga(this,void 0,void 0,function(){var n,i,o,a;return wa(this,function(s){return n=St(t),i=on(e),o=Vt(i.encryptionInfo,n),a=nn(r,o.passwordKeyEncryptor),[2,fn(i.encryptedPackage,a,o.keyData,o.dataIntegrity,n)]})})}var bn="http://www.w3.org/2003/InkML",gn=Object.freeze({bronze:"#BB5B18",silver:"#B4C3DA",gold:"#CC912C",roseGold:"#EEB3A6",ocean:"#0B868D",lava:"#DA0C07",rainbow:"#FF4E00",galaxy:"#AE198D"}),wn=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},Pn="!",_n="'",xn='"',Sn=function(){return(Sn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Mn=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},On=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Mn(arguments[r]));return e},kn=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},En=Symbol.for("@syncfusion/ej2-office-common.OfficeInk"),An=1.42,Cn="#000000",Ln="pt",Tn="#ctx0",Nn="http://www.w3.org/XML/1998/namespace",Un=12700,In=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},jn="inkml",Bn=function(){return(Bn=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Rn=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},Fn="content/invalid-ink-trace",Hn=new Set(["X","Y","Z","S","T","SN","F","TP","BP","OTx","OTy","OA","OE","OR","RP","RR","RY","TW","TH","TC"]),zn=new Set(["dev","in","cm","deg","rad","s","lb","g"]),Dn=new Set(["timestamp","canvas","canvasTransform","mapping","bind","table","matrix","traceView","annotation","annotationXML","channelProperty","traceProperty","brushPropertyRef","intermittentInfo","latency","sampleRate","sampleRateExact","srcRef","channelRef"]),Vn=new Set(["width","height","color","transparency","tip","rasterop","antialiased","fittocurve","ignorepressure","inkeffects","anchorx","anchory","scalefactor"]),Xn=new Map([["none","none"],["pencil","pencil"],["rainbow","rainbow"],["galaxy","galaxy"],["lava","lava"],["ocean","ocean"],["rosegold","roseGold"],["gold","gold"],["silver","silver"],["bronze","bronze"]]),Yn=.053,qn=.001,Kn="#000000",Gn="ellipse",Jn="copyPen",Wn="#ctx0",Zn={items:[],traceCount:0,packetCount:0,pointCount:0,channelValueCount:0},$n=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},Qn=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},ei=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Qn(arguments[r]));return e},ri="ctx0",ti="#ctx0",ni="inkSrc0",ii="-2.14748E9",oi="2.14748E9",ai="cm",si="http://schemas.openxmlformats.org/officeDocument/2006/math",ui=["m","m1","m2","m3","m4","m5"],ci="http://schemas.openxmlformats.org/wordprocessingml/2006/main",li="http://www.w3.org/XML/1998/namespace",pi=["left","right","center","centerGroup"],fi=["bar","skw","lin","noBar"],hi=["centered","match"],di=["undOvr","subSup"],vi=["top","bot"],yi=["before","after","repeat"],mi=["--","-+","+-"],bi=["roman","script","fraktur","double-struck","sans-serif","monospace"],gi=["p","b","i","bi"],wi=[0,1,2,3,4],Pi=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),_i=function(e){function r(r,t,n){var i=this.constructor,o=e.call(this,r)||this;return o.name="MathmlValidationError",o.elementPath=t,o.constraintKind=n,Object.setPrototypeOf(o,i.prototype),o}return Pi(r,e),r}(Error),xi=function(e){function r(r){var t=this.constructor;void 0===r&&(r="Math equation is preserve-only and cannot be mutated");var n=e.call(this,r)||this;return n.isPreserveOnly=!0,n.name="MathmlReadOnlyError",Object.setPrototypeOf(n,t.prototype),n}return Pi(r,e),r}(Error),Si=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),Mi=function(){return(Mi=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Oi=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},ki=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Oi(arguments[r]));return e},Ei=function(){function e(){this._preserveOnly=!1}return Object.defineProperty(e.prototype,"preserveOnly",{get:function(){return this._preserveOnly},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"preservedXml",{get:function(){return this._preservedXml},enumerable:!0,configurable:!0}),e.prototype.setMutationListener=function(e){this._onMutate=e},e.prototype.markPreserveOnly=function(e){this._preserveOnly=!0,this._preservedXml=e},e.prototype.attachPreservedXml=function(e){this._preservedXml=e},e.prototype.notifyMutated=function(){if(this._preserveOnly)throw new xi;null==this._onMutate||this._onMutate()},e.prototype.assertMutable=function(){if(this._preserveOnly)throw new xi},e}(),Ai=function(e){function r(r,t){void 0===r&&(r="");var n=e.call(this)||this;return n.type="t",n._value=r,n._xmlSpace=t,n}return Si(r,e),Object.defineProperty(r.prototype,"value",{get:function(){return this._value},set:function(e){this.assertMutable(),this._value=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"xmlSpace",{get:function(){return this._xmlSpace},set:function(e){this.assertMutable(),this._xmlSpace=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Ci=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]);var i=e.call(this)||this;if(i.type="arg",void 0!==r.argSz&&!me(r.argSz))throw new _i("argSz must be an integer in −2..2 (ST_Integer2), got "+String(r.argSz),"arg.argPr.argSz","value-range");return i._properties=Object.freeze(Mi({},r)),i._item=ki(t),i._ctrlPr=n,i}return Si(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){if(this.assertMutable(),void 0!==e.argSz&&!me(e.argSz))throw new _i("argSz must be an integer in −2..2 (ST_Integer2), got "+String(e.argSz),"arg.argPr.argSz","value-range");this._properties=Object.freeze(Mi({},e)),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"item",{get:function(){return this._item},set:function(e){this.assertMutable(),this._item=ki(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"ctrlPr",{get:function(){return this._ctrlPr},set:function(e){this.assertMutable(),this._ctrlPr=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r.prototype.appendItem=function(e){return this.assertMutable(),this._item.push(e),this.notifyMutated(),e},r}(Ei),Li=function(e){function r(r,t){var n=e.call(this)||this;return n.type="unknown",n.localName=r,n.attachPreservedXml(t),n}return Si(r,e),r}(Ei),Ti=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ni=function(){return(Ni=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Ui=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},Ii=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Ui(arguments[r]));return e},ji=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="oMathPara",n._properties=Object.freeze(Ni({},r)),n._equations=Ii(t),n}return Ti(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Object.freeze(Ni({},e)),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"equations",{get:function(){return this._equations},enumerable:!0,configurable:!0}),r.prototype.setEquations=function(e){this.assertMutable(),this._equations=Ii(e),this.notifyMutated()},r.prototype.appendEquation=function(e){this.assertMutable(),this._equations.push(e),this.notifyMutated()},r.prototype.assertSerializable=function(e){if(void 0===e&&(e="oMathPara"),this._equations.length<1)throw new _i("m:oMathPara requires at least one m:oMath (CT_OMathPara)",e,"required-child")},r}(Ei),Bi=function(e){function r(r){void 0===r&&(r=[]);var t=e.call(this)||this;return t.type="oMath",t._children=Ii(r),t}return Ti(r,e),Object.defineProperty(r.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),r.prototype.setChildren=function(e){this.assertMutable(),this._children=Ii(e),this.notifyMutated()},r.prototype.appendChild=function(e){this.assertMutable(),this._children.push(e),this.notifyMutated()},r}(Ei),Ri=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),Fi=function(){return(Fi=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},Hi=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},zi=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(Hi(arguments[r]));return e},Di=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="acc",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Vi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="bar",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Xi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="box",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Yi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="borderBox",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),qi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="d",n._properties=Se(r),n._elements=t.map(function(e){return Me(e)}),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"elements",{get:function(){return this._elements},set:function(e){this.assertMutable(),this._elements=zi(e),this.notifyMutated()},enumerable:!0,configurable:!0}),r.prototype.assertSerializable=function(e){if(void 0===e&&(e="d"),this._elements.length<1)throw new _i("m:d requires at least one m:e (CT_D)",e,"required-child")},r}(Ei),Ki=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="eqArr",n._properties=Se(r),n._elements=t.map(function(e){return Me(e)}),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"elements",{get:function(){return this._elements},set:function(e){this.assertMutable(),this._elements=zi(e),this.notifyMutated()},enumerable:!0,configurable:!0}),r.prototype.assertSerializable=function(e){if(void 0===e&&(e="eqArr"),this._elements.length<1)throw new _i("m:eqArr requires at least one m:e (CT_EqArr)",e,"required-child")},r}(Ei),Gi=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="f",i._properties=Se(r),i._numerator=Me(t),i._denominator=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"numerator",{get:function(){return this._numerator},set:function(e){this.assertMutable(),this._numerator=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"denominator",{get:function(){return this._denominator},set:function(e){this.assertMutable(),this._denominator=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Ji=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="func",i._properties=Se(r),i._name=Me(t),i._base=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"name",{get:function(){return this._name},set:function(e){this.assertMutable(),this._name=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Wi=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="groupChr",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Zi=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="limLow",i._properties=Se(r),i._base=Me(t),i._lim=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"lim",{get:function(){return this._lim},set:function(e){this.assertMutable(),this._lim=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),$i=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="limUpp",i._properties=Se(r),i._base=Me(t),i._lim=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"lim",{get:function(){return this._lim},set:function(e){this.assertMutable(),this._lim=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),Qi=function(e){function r(r){void 0===r&&(r=[]);var t=e.call(this)||this;return t.type="mr",t._elements=r.map(function(e){return Me(e)}),t}return Ri(r,e),Object.defineProperty(r.prototype,"elements",{get:function(){return this._elements},enumerable:!0,configurable:!0}),r.prototype.setElements=function(e){this.assertMutable(),this._elements=zi(e),this.notifyMutated()},r.prototype.assertSerializable=function(e){if(void 0===e&&(e="mr"),this._elements.length<1)throw new _i("m:mr requires at least one m:e (CT_MR)",e,"required-child")},r}(Ei),eo=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="m",n._properties=Se(r),n._rows=zi(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"rows",{get:function(){return this._rows},enumerable:!0,configurable:!0}),r.prototype.setRows=function(e){this.assertMutable(),this._rows=zi(e),this.notifyMutated()},r.prototype.assertSerializable=function(e){if(void 0===e&&(e="m"),this._rows.length<1)throw new _i("m:m requires at least one m:mr (CT_M)",e,"required-child");this._rows.forEach(function(r,t){return r.assertSerializable(e+".mr["+String(t)+"]")})},r}(Ei),ro=function(e){function r(r,t,n,i){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=[]);var o=e.call(this)||this;return o.type="nary",o._properties=Se(r),o._sub=Me(t),o._sup=Me(n),o._base=Me(i),o}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subscript",{get:function(){return this._sub},set:function(e){this.assertMutable(),this._sub=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"superscript",{get:function(){return this._sup},set:function(e){this.assertMutable(),this._sup=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),to=function(e){function r(r,t){void 0===r&&(r={}),void 0===t&&(t=[]);var n=e.call(this)||this;return n.type="phant",n._properties=Se(r),n._base=Me(t),n}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),no=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="rad",i._properties=Se(r),i._deg=Me(t),i._base=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"deg",{get:function(){return this._deg},set:function(e){this.assertMutable(),this._deg=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),io=function(e){function r(r,t,n,i){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=[]);var o=e.call(this)||this;return o.type="sPre",o._properties=Se(r),o._sub=Me(t),o._sup=Me(n),o._base=Me(i),o}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sub",{get:function(){return this._sub},set:function(e){this.assertMutable(),this._sub=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"sup",{get:function(){return this._sup},set:function(e){this.assertMutable(),this._sup=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),oo=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="sSub",i._properties=Se(r),i._base=Me(t),i._sub=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subscript",{get:function(){return this._sub},set:function(e){this.assertMutable(),this._sub=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),ao=function(e){function r(r,t,n,i){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]),void 0===i&&(i=[]);var o=e.call(this)||this;return o.type="sSubSup",o._properties=Se(r),o._base=Me(t),o._sub=Me(n),o._sup=Me(i),o}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"subscript",{get:function(){return this._sub},set:function(e){this.assertMutable(),this._sub=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"superscript",{get:function(){return this._sup},set:function(e){this.assertMutable(),this._sup=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),so=function(e){function r(r,t,n){void 0===r&&(r={}),void 0===t&&(t=[]),void 0===n&&(n=[]);var i=e.call(this)||this;return i.type="sSup",i._properties=Se(r),i._base=Me(t),i._sup=Me(n),i}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"base",{get:function(){return this._base},set:function(e){this.assertMutable(),this._base=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"superscript",{get:function(){return this._sup},set:function(e){this.assertMutable(),this._sup=e,this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),uo=function(e){function r(r,t,n,i){void 0===r&&(r=[]),void 0===t&&(t={}),void 0===i&&(i=[]);var o=e.call(this)||this;return o.type="r",o._properties=Se(t),o._wRPr=n,o._opaqueChildren=zi(i),o._children="string"==typeof r?[new Ai(r)]:zi(r),o}return Ri(r,e),Object.defineProperty(r.prototype,"properties",{get:function(){return this._properties},set:function(e){this.assertMutable(),this._properties=Se(e),this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"wRPr",{get:function(){return this._wRPr},set:function(e){this.assertMutable(),this._wRPr=e,this.notifyMutated()},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"children",{get:function(){return this._children},enumerable:!0,configurable:!0}),Object.defineProperty(r.prototype,"opaqueChildren",{get:function(){return this._opaqueChildren},enumerable:!0,configurable:!0}),r.prototype.setChildren=function(e){this.assertMutable(),this._children=zi(e),this.notifyMutated()},Object.defineProperty(r.prototype,"text",{get:function(){return this._children.filter(function(e){return"t"===e.type}).map(function(e){return e.value}).join("")},set:function(e){this.assertMutable(),this._children=[new Ai(e)],this.notifyMutated()},enumerable:!0,configurable:!0}),r}(Ei),co=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},lo=function(){return(lo=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},po=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},fo=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},ho=[["hideTop","isTopHidden"],["hideBot","isBottomHidden"],["hideLeft","isLeftHidden"],["hideRight","isRightHidden"],["strikeH","hasHorizontalStrike"],["strikeV","hasVerticalStrike"],["strikeBLTR","hasBottomLeftToTopRightStrike"],["strikeTLBR","hasTopLeftToBottomRightStrike"]],vo=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},yo=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},mo=[["isTopHidden","hideTop"],["isBottomHidden","hideBot"],["isLeftHidden","hideLeft"],["isRightHidden","hideRight"],["hasHorizontalStrike","strikeH"],["hasVerticalStrike","strikeV"],["hasBottomLeftToTopRightStrike","strikeBLTR"],["hasTopLeftToBottomRightStrike","strikeTLBR"]],bo=function(){return(bo=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},go=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},wo=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(go(arguments[r]));return e},Po=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},_o=4,xo=4,So=64,Mo="http://schemas.microsoft.com/office/2006/encryption",Oo="http://schemas.microsoft.com/office/2006/keyEncryptor/password",ko=Uint8Array.of(254,167,210,118,59,75,158,121),Eo=Uint8Array.of(215,170,15,109,48,97,52,78),Ao=Uint8Array.of(20,110,11,231,171,172,208,214),Co=Uint8Array.of(95,178,173,1,12,185,225,246),Lo=Uint8Array.of(160,103,127,2,178,44,132,51),To=4096,No="EncryptionInfo",Uo="EncryptedPackage",Io=1e7,jo=2,Bo=54,Ro=54,Fo=function(){var e=function(r,t){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t])})(r,t)};return function(r,t){function n(){this.constructor=r}e(r,t),r.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}}(),Ho=function(){return(Ho=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++){r=arguments[t];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}).apply(this,arguments)},zo=Object.freeze({totalUncompressedBytes:1073741824,singlePartUncompressedBytes:268435456,xmlNestingDepth:256,xmlAttributesPerElement:4096,textNodeLengthBytes:33554432}),Do=function(e){function r(r,t){var n=this.constructor;void 0===t&&(t={});var i=this,o=void 0===t.partName?"":" (part: "+t.partName+")",a=void 0===t.actual?"":"; actual value: "+String(t.actual);return i=e.call(this,"Package security limit exceeded: "+r+o+a)||this,i.name="PackageLimitError",i.limit=r,i.partName=t.partName,i.actual=t.actual,Object.setPrototypeOf(i,n.prototype),i}return Fo(r,e),r}(Error),Vo=function(e){function r(r){var t=this.constructor,n=e.call(this,r)||this;return n.name="EncryptedPackageError",Object.setPrototypeOf(n,t.prototype),n}return Fo(r,e),r}(Error),Xo=function(e){function r(r){var t=this.constructor;void 0===r&&(r="Invalid password");var n=e.call(this,r)||this;return n.name="InvalidPasswordError",Object.setPrototypeOf(n,t.prototype),n}return Fo(r,e),r}(Error),Yo=function(e){function r(r){var t=this.constructor;void 0===r&&(r="Unsupported encryption method");var n=e.call(this,r)||this;return n.name="UnsupportedEncryptionError",Object.setPrototypeOf(n,t.prototype),n}return Fo(r,e),r}(Error),qo=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},Ko=function(){try{return require("crypto")}catch(e){throw new Error("Node crypto is required for Agile encryption")}}(),Go=Ko.createCipheriv,Jo=Ko.createDecipheriv,Wo=Ko.createHash,Zo=Ko.createHmac,$o={"SHA-1":"sha1",SHA256:"sha256",SHA384:"sha384",SHA512:"sha512"},Qo={"SHA-1":20,SHA256:32,SHA384:48,SHA512:64},ea=function(e,r){var t="function"==typeof Symbol&&e[Symbol.iterator];if(!t)return e;var n,i,o=t.call(e),a=[];try{for(;(void 0===r||r-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(e){i={error:e}}finally{try{n&&!n.done&&(t=o.return)&&t.call(o)}finally{if(i)throw i.error}}return a},ra=function(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(ea(arguments[r]));return e},ta=256,na=4096,ia=33554432,oa=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},aa=8,sa=function(e){var r="function"==typeof Symbol&&e[Symbol.iterator],t=0;return r?r.call(e):{next:function(){return e&&t>=e.length&&(e=void 0),{value:e&&e[t++],done:!e}}}},ua=Object.freeze([208,207,17,224,161,177,26,225]),ca=9,la=12,pa=4294967294,fa=4294967295,ha=4294967293,da=4294967292,va=128,ya=65536,ma=1048576,ba=8,ga=function(e,r,t,n){return new(t||(t=Promise))(function(i,o){function a(e){try{u(n.next(e))}catch(e){o(e)}}function s(e){try{u(n.throw(e))}catch(e){o(e)}}function u(e){e.done?i(e.value):new t(function(r){r(e.value)}).then(a,s)}u((n=n.apply(e,r||[])).next())})},wa=function(e,r){function t(e){return function(r){return n([e,r])}}function n(t){if(i)throw new TypeError("Generator is already executing.");for(;u;)try{if(i=1,o&&(a=2&t[0]?o.return:t[0]?o.throw||((a=o.return)&&a.call(o),0):o.next)&&!(a=a.call(o,t[1])).done)return a;switch(o=0,a&&(t=[2&t[0],a.value]),t[0]){case 0:case 1:a=t;break;case 4:return u.label++,{value:t[1],done:!1};case 5:u.label++,o=t[1],t=[0];continue;case 7:t=u.ops.pop(),u.trys.pop();continue;default:if(a=u.trys,!(a=a.length>0&&a[a.length-1])&&(6===t[0]||2===t[0])){u=0;continue}if(3===t[0]&&(!a||t[1]>a[0]&&t[1]<a[3])){u.label=t[1];break}if(6===t[0]&&u.label<a[1]){u.label=a[1],a=t;break}if(a&&u.label<a[2]){u.label=a[2],u.ops.push(t);break}a[2]&&u.ops.pop(),u.trys.pop();continue}t=r.call(e,u)}catch(e){t=[6,e],o=0}finally{i=a=0}if(5&t[0])throw t[1];return{value:t[0]?t[1]:void 0,done:!0}}var i,o,a,s,u={label:0,sent:function(){if(1&a[0])throw a[1];return a[1]},trys:[],ops:[]};return s={next:t(0),throw:t(1),return:t(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s},Pa=Object.freeze([208,207,17,224,161,177,26,225]);return e.AGILE_ENCRYPTION_NS=Mo,e.AGILE_RESERVED=So,e.AGILE_VERSION_MAJOR=_o,e.AGILE_VERSION_MINOR=xo,e.BLOCK_KEY_ENCRYPTOR_KEY=Ao,e.BLOCK_KEY_HMAC_KEY=Co,e.BLOCK_KEY_HMAC_VALUE=Lo,e.BLOCK_KEY_VERIFIER_HASH=Eo,e.BLOCK_KEY_VERIFIER_INPUT=ko,e.DEFAULT_DECRYPT_SECURITY_LIMITS=zo,e.DIAG_INVALID_INK_TRACE=Fn,e.EMUS_PER_POINT=Un,e.ENCRYPTED_PACKAGE_SEGMENT_SIZE=To,e.EncryptedPackageError=Vo,e.INKML_NAMESPACE=bn,e.INK_CONTENT_TYPE="application/inkml+xml",e.INK_EFFECT_COLORS=gn,e.INK_SOURCE_RELATIONSHIP_TYPE="http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",e.InvalidPasswordError=Xo,e.MATH_BREAKBINSUB_VALUES=mi,e.MATH_BREAKBIN_VALUES=yi,e.MATH_FTYPE_VALUES=fi,e.MATH_JC_VALUES=pi,e.MATH_LIMLOC_VALUES=di,e.MATH_NAMESPACE=si,e.MATH_PREFIX_FALLBACKS=ui,e.MATH_SCRIPT_VALUES=bi,e.MATH_SHP_VALUES=hi,e.MATH_SPACING_RULE_VALUES=wi,e.MATH_STYLE_VALUES=gi,e.MATH_TOPBOT_VALUES=vi,e.MathAccent=Di,e.MathArgument=Ci,e.MathBar=Vi,e.MathBorderBox=Yi,e.MathBox=Xi,e.MathDelimiter=qi,e.MathElement=Ei,e.MathEquationArray=Ki,e.MathFraction=Gi,e.MathFunction=Ji,e.MathGroupCharacter=Wi,e.MathLimitLower=Zi,e.MathLimitUpper=$i,e.MathMatrix=eo,e.MathMatrixRow=Qi,e.MathNaryOperator=ro,e.MathOMath=Bi,e.MathParagraph=ji,e.MathPhantom=to,e.MathPreSubSuperscript=io,e.MathRadical=no,e.MathRun=uo,e.MathSubSuperscript=ao,e.MathSubscript=oo,e.MathSuperscript=so,e.MathText=Ai,e.OFFICE_COMMON_PACKAGE_NAME="@syncfusion/ej2-office-common",e.PASSWORD_KEY_ENCRYPTOR_NS="http://schemas.microsoft.com/office/2006/keyEncryptor/password",e.PASSWORD_KEY_ENCRYPTOR_URI=Oo,e.PackageLimitError=Do,e.STREAM_ENCRYPTED_PACKAGE=Uo,e.STREAM_ENCRYPTION_INFO=No,e.UnknownMathElement=Li,e.UnsupportedEncryptionError=Yo,e.WML_TRANSITIONAL_NAMESPACE=ci,e.WORDML_2010_NAMESPACE="http://schemas.microsoft.com/office/word/2010/wordml",e.WORDPROCESSING_INK_URI="http://schemas.microsoft.com/office/word/2010/wordprocessingInk",e.XML_NAMESPACE=li,e.addInkTrace=g,e.aesCbcDecrypt=It,e.aesCbcEncrypt=jt,e.attrValue=Ae,e.attrValueNs=Ce,e.childElements=Ee,e.cloneInk=w,e.cloneMathElement=bt,e.computeInkBounds=s,e.concatBytes=Lt,e.createElement=Oe,e.createInk=b,e.createText=ke,e.decodeTrace=i,e.decryptOffCryptoPackage=mn,e.deriveAgileIv=Ut,e.deriveAgileKey=Nt,e.emitOnOff=_e,e.encodePasswordUtf16Le=Tt,e.encodeTrace=o,e.formatUnitValue=O,e.getLastInkParseDiagnostics=j,e.hashBytes=At,e.hashDigestLength=Et,e.hmacBytes=Ct,e.inkEffectColor=r,e.inkPathPoints=_,e.isInteger2=me,e.isInteger255=be,e.isOffCryptoPackage=yn,e.isOfficeInk=x,e.isSpacingRule=we,e.isUnSignedInteger=ge,e.mathArg=xe,e.mathElementToOpenXml=Wr,e.mathEqual=xt,e.parseInkXml=B,e.parseMathBreakBin=he,e.parseMathBreakBinSub=de,e.parseMathElement=pr,e.parseMathElements=fr,e.parseMathFractionType=ce,e.parseMathJc=ue,e.parseMathLimLoc=pe,e.parseMathScript=ve,e.parseMathShape=le,e.parseMathStyle=ye,e.parseMathTopBot=fe,e.parseOnOff=Pe,e.pointsToUnit=M,e.resolveDecryptLimits=St,e.scalePointsStretch=c,e.scalePointsUniform=u,e.serializeInkXml=W,e.textContent=Le,e.timingSafeEqual=Bt,e.unitValueToPoints=S,e}({}),this.ejs=ej;
|
|
11
|
+
//# sourceMappingURL=ej2-office-common.min.js.map
|