UNPKG

@syncfusion/ej2-documenteditor

Version:

Feature-rich document editor control with built-in support for context menu, options pane and dialogs.

10 lines 3.71 MB
/*! * filename: ej2-documenteditor.min.js * version : 29.2.8 * Copyright Syncfusion Inc. 2001 - 2024. All rights reserved. * Use of this code is subject to the terms of our license. * A copy of the current license can be obtained at any time by e-mailing * licensing@syncfusion.com. Any infringement will be prosecuted under * applicable laws. */ this.ej=this.ej||{},this.ej.documenteditor=function(e,t,i,n,r,o,s,a,l,d,h,c,p,u){"use strict";function g(e){var t,i=[],n=v(e);if(n.length>0)for(var r=0;r<n.length;r++){var o=n[parseInt(r.toString(),10)],s="";switch((s=o[0]).toLowerCase()){case"m":for(t=1;t<o.length;t++)i.push({command:s,x:o[parseInt(t.toString(),10)],y:o[t+1]}),t+=1,"m"===s?s="l":"M"===s&&(s="L");break;case"l":case"t":for(t=1;t<o.length;t++)i.push({command:s,x:o[parseInt(t.toString(),10)],y:o[t+1]}),t+=1;break;case"h":for(t=1;t<o.length;t++)i.push({command:s,x:o[parseInt(t.toString(),10)]});break;case"v":for(t=1;t<o.length;t++)i.push({command:s,y:o[parseInt(t.toString(),10)]});break;case"z":i.push({command:s});break;case"c":for(t=1;t<o.length;t++)i.push({command:s,x1:o[parseInt(t.toString(),10)],y1:o[t+1],x2:o[t+2],y2:o[t+3],x:o[t+4],y:o[t+5]}),t+=5;break;case"s":for(t=1;t<o.length;t++)i.push({command:s,x2:o[parseInt(t.toString(),10)],y2:o[t+1],x:o[t+2],y:o[t+3]}),t+=3;break;case"q":for(t=1;t<o.length;t++)i.push({command:s,x1:o[parseInt(t.toString(),10)],y1:o[t+1],x:o[t+2],y:o[t+3]}),t+=3;break;case"a":for(t=1;t<o.length;t++)i.push({command:s,r1:o[parseInt(t.toString(),10)],r2:o[t+1],angle:o[t+2],largeArc:o[t+3],sweep:o[t+4],x:o[t+5],y:o[t+6]}),t+=6}}return i}function m(e){var t,i="";for(t=0;t<e.length;t++)i+=0===t?f(e[parseInt(t.toString(),10)]):" "+f(e[parseInt(t.toString(),10)]);return i}function f(e){var t="";switch(e.command){case"Z":case"z":t=e.command;break;case"M":case"m":case"L":case"l":t=e.command+" "+e.x+" "+e.y;break;case"C":case"c":t=e.command+" "+e.x1+" "+e.y1+" "+e.x2+" "+e.y2+" "+e.x+" "+e.y;break;case"Q":case"q":t=e.command+" "+e.x1+" "+e.y1+" "+e.x+" "+e.y;break;case"A":case"a":var i=e.command,n=e.angle,r=e.largeArc?"1":"0",o=e.sweep?"1":"0";t=i+" "+e.r1+" "+e.r2+" "+n+" "+r+" "+o+" "+e.x+" "+e.y;break;case"H":case"h":t=e.command+" "+e.x;break;case"V":case"v":t=e.command+" "+e.y;break;case"S":case"s":t=e.command+" "+e.x2+" "+e.y2+" "+e.x+" "+e.y;break;case"T":case"t":t=e.command+" "+e.x+" "+e.y}return t}function v(e){var t=/([a-z]+)|([+-]?(?:\d+\.?\d*|\.\d+))/gi,i=[],n=[],r={};t.lastIndex=0;var o=!1;for(r=t.exec(e);r;)"e"===r[1]?o=!0:r[1]?("zm"===r[1].toLowerCase()?(i.length&&n.push(i),n.push(["Z"]),i=[r[1].substring(1,2)]):(i.length&&n.push(i),i=[r[1]]),o=!1):(i.length||(i=[]),o||i.push(Number(r[2])),o=!1),r=t.exec(e);return i.length&&n.push(i),n}function y(e){var t,i,n,r,o,s,a,l,d,h;for(a=0,l=0,h=0,d=e.length;h<d;++h){var c=e[parseInt(h.toString(),10)],p=c.command;if(/[MLHVCSQTA]/.test(p))"x"in c&&(c.x=a=c.x),"y"in c&&(c.y=l=c.y);else{"x1"in c&&(c.x1=n=a+c.x1),"x2"in c&&(c.x2=o=a+c.x2),"y1"in c&&(c.y1=r=l+c.y1),"y2"in c&&(c.y2=s=l+c.y2),"x"in c&&(c.x=a+=c.x),"y"in c&&(c.y=l+=c.y);var u=void 0;switch(p){case"m":case"M":u={command:"M",x:a,y:l};break;case"l":case"L":u={command:"L",x:a,y:l};break;case"h":case"H":u={command:"H",x:a};break;case"v":case"V":u={command:"V",y:l};break;case"c":case"C":u={command:"C",x:a,y:l,x1:n,y1:r,x2:o,y2:s};break;case"s":case"S":u={command:"S",x:a,y:l,x2:o,y2:s};break;case"q":case"Q":u={command:"Q",x:a,y:l,x1:n,y1:r};break;case"t":case"T":u={command:"T",x:a,y:l};break;case"a":case"A":(u={command:"A",x:a,y:l}).r1=c.r1,u.r2=c.r2,u.angle=c.angle,u.largeArc=c.largeArc,u.sweep=c.sweep;break;case"z":case"Z":u={command:"Z"},a=t,l=i,u=e[parseInt(h.toString(),10)]}u&&(e[parseInt(h.toString(),10)]=u)}"M"!==p&&"m"!==p||(t=a,i=l)}return e}function w(e,t,i,n,r,o,s,a){var l,d,h,c,p,u,g,f,v;for(p=0,u=0,f=0,g=e.length;f<g;++f){var y=e[f],w=y.command;"x"in y&&(p=y.x),"y"in y&&(u=y.y),"y1"in y&&(d=y.y1),"y2"in y&&(c=y.y2),"x1"in y&&(l=y.x1),"x2"in y&&(h=y.x2),n?(void 0!==p&&(p=C(p,t,r,s)),void 0!==u&&(u=C(u,i,o,a)),void 0!==l&&(l=C(l,t,r,s)),void 0!==d&&(d=C(d,i,o,a)),void 0!==h&&(h=C(h,t,r,s)),void 0!==c&&(c=C(c,i,o,a))):(void 0!==p&&(p=Number((p+t).toFixed(2))),void 0!==u&&(u=Number((u+i).toFixed(2))),void 0!==l&&(l=Number((l+t).toFixed(2))),void 0!==d&&(d=Number((d+i).toFixed(2))),void 0!==h&&(h=Number((h+t).toFixed(2))),void 0!==c&&(c=Number((c+i).toFixed(2)))),(v=b(y,w,{x:p,y:u,x1:l,y1:d,x2:h,y2:c,r1:y.r1,r2:y.r2},n,t,i))&&(e[f]=v)}return m(e)}function b(e,t,i,n,r,o){switch(t){case"M":case"L":e.x=i.x,e.y=i.y;break;case"H":e.x=i.x;break;case"V":e.y=i.y;break;case"C":e.x=i.x,e.y=i.y,e.x1=i.x1,e.y1=i.y1,e.x2=i.x2,e.y2=i.y2;break;case"S":e.x=i.x,e.y=i.y,e.x2=i.x2,e.y2=i.y2;break;case"Q":e.x=i.x,e.y=i.y,e.x1=i.x1,e.y1=i.y1;break;case"T":e.x=i.x,e.y=i.y;break;case"A":var s=i.r1,a=i.r2;n&&(i.r1=s*=r,i.r2=a*=o),e.x=i.x,e.y=i.y,e.r1=i.r1,e.r2=i.r2;break;case"z":case"Z":e={command:"Z"}}return e}function C(e,t,i,n){return e!==i?e=n!==i?e*t-(Number(i)*t-Number(i))+(n-Number(i)):Number(e)*t-(Number(i)*t-Number(i)):n!==i&&(e=n),Number(e.toFixed(2))}function x(e){var t,i,n,r,o,s,a,l,d,h,c=[];for(a=0,l=0,h=0,d=e.length;h<d;++h){var p=e[h],u="";u=p.command,"y1"in p&&(r=p.y1),"y2"in p&&(s=p.y2),"x1"in p&&(n=p.x1),"x2"in p&&(o=p.x2),"x"in p&&(a=p.x),"y"in p&&(l=p.y);var g=c[c.length-1];switch(u){case"M":c.push({command:"M",x:a,y:l});break;case"L":c.push({command:"L",x0:t,y0:i,x:a,y:l});break;case"H":c.push({command:"L",x0:t,y0:i,x:a,y:i});break;case"V":c.push({command:"L",x0:t,y0:i,x:t,y:l});break;case"C":c.push({command:"C",x0:t,y0:i,x1:n,y1:r,x2:o,y2:s,x:a,y:l});break;case"S":if(g){var m=void 0,f={x:2*t-(m="C"===g.command||"S"===g.command?{x:g.x2,y:g.y2}:{x:t,y:i}).x,y:2*i-m.y};c.push({command:"C",x0:t,y0:i,x1:f.x,y1:f.y,x2:o,y2:s,x:a,y:l})}break;case"Q":c.push({command:"Q",x0:t,y0:i,x1:n,y1:r,x:a,y:l});break;case"T":if(g){var m=void 0,f={x:2*t-(m="Q"===g.command?{x:g.x1,y:g.y1}:{x:t,y:i}).x,y:2*i-m.y};c.push({command:"Q",x0:t,y0:i,x1:f.x,y1:f.y,x:a,y:l})}break;case"A":var v=p;v.command="A",c.push(v);break;case"Z":case"z":c.push({command:"Z"}),a=t,l=i}t=a,i=l}return c}!function(e){e[e.LeftToRight=0]="LeftToRight",e[e.RightToLeft=1]="RightToLeft",e[e.WordSplit=2]="WordSplit",e[e.Number=4]="Number",e[e.Tab=6]="Tab"}(e.CharacterRangeType||(e.CharacterRangeType={})),function(e){e[e.English=0]="English",e[e.Hindi=1]="Hindi",e[e.Korean=2]="Korean",e[e.Chinese=3]="Chinese",e[e.Arabic=4]="Arabic",e[e.Hebrew=5]="Hebrew",e[e.Japanese=6]="Japanese",e[e.Thai=7]="Thai",e[e.SpecialCharacter=8]="SpecialCharacter"}(e.FontScriptType||(e.FontScriptType={})),function(e){e[e.af_ZA=1078]="af_ZA",e[e.sq_AL=1052]="sq_AL",e[e.am_ET=1118]="am_ET",e[e.gsw_FR=1156]="gsw_FR",e[e.ar_DZ=5121]="ar_DZ",e[e.ar_BH=15361]="ar_BH",e[e.ar_EG=3073]="ar_EG",e[e.ar_IQ=2049]="ar_IQ",e[e.ar_JO=11265]="ar_JO",e[e.ar_KW=13313]="ar_KW",e[e.ar_LB=12289]="ar_LB",e[e.ar_LY=4097]="ar_LY",e[e.ar_MA=6145]="ar_MA",e[e.ar_OM=8193]="ar_OM",e[e.ar_QA=16385]="ar_QA",e[e.ar_SA=1025]="ar_SA",e[e.ar_SY=10241]="ar_SY",e[e.ar_TN=7169]="ar_TN",e[e.ar_AE=14337]="ar_AE",e[e.ar_YE=9217]="ar_YE",e[e.hy_AM=1067]="hy_AM",e[e.as_IN=1101]="as_IN",e[e.az_Cyrl_AZ=2092]="az_Cyrl_AZ",e[e.az_Latn_AZ=1068]="az_Latn_AZ",e[e.ba_RU=1133]="ba_RU",e[e.eu_ES=1069]="eu_ES",e[e.be_BY=1059]="be_BY",e[e.bn_BD=2117]="bn_BD",e[e.bn_IN=1093]="bn_IN",e[e.bs_Cyrl_BA=8218]="bs_Cyrl_BA",e[e.bs_Latn_BA=5146]="bs_Latn_BA",e[e.bg_BG=1026]="bg_BG",e[e.br_FR=1150]="br_FR",e[e.my_MM=1109]="my_MM",e[e.ca_ES=1027]="ca_ES",e[e.chr_US=1116]="chr_US",e[e.zh_HK=3076]="zh_HK",e[e.zh_MO=5124]="zh_MO",e[e.zh_CN=2052]="zh_CN",e[e.zh_SG=4100]="zh_SG",e[e.zh_TW=1028]="zh_TW",e[e.co_FR=1155]="co_FR",e[e.hr_BA=4122]="hr_BA",e[e.hr_HR=1050]="hr_HR",e[e.cs_CZ=1029]="cs_CZ",e[e.da_DK=1030]="da_DK",e[e.prs_AF=1164]="prs_AF",e[e.dv_MV=1125]="dv_MV",e[e.nl_BE=2067]="nl_BE",e[e.nl_NL=1043]="nl_NL",e[e.bin_NG=1126]="bin_NG",e[e.et_EE=1061]="et_EE",e[e.en_AU=3081]="en_AU",e[e.en_BZ=10249]="en_BZ",e[e.en_CA=4105]="en_CA",e[e.en_029=9225]="en_029",e[e.en_HK=15369]="en_HK",e[e.en_IN=16393]="en_IN",e[e.en_ID=14345]="en_ID",e[e.en_IE=6153]="en_IE",e[e.en_JM=8201]="en_JM",e[e.en_MY=17417]="en_MY",e[e.en_NZ=5129]="en_NZ",e[e.en_PH=13321]="en_PH",e[e.en_SG=18441]="en_SG",e[e.en_ZA=7177]="en_ZA",e[e.en_TT=11273]="en_TT",e[e.en_GB=2057]="en_GB",e[e.en_US=1033]="en_US",e[e.en_ZW=12297]="en_ZW",e[e.fo_FO=1080]="fo_FO",e[e.fil_PH=1124]="fil_PH",e[e.fi_FI=1035]="fi_FI",e[e.fr_BE=2060]="fr_BE",e[e.fr_CM=11276]="fr_CM",e[e.fr_CA=3084]="fr_CA",e[e.fr_CD=9228]="fr_CD",e[e.fr_CI=12300]="fr_CI",e[e.fr_FR=1036]="fr_FR",e[e.fr_HT=15372]="fr_HT",e[e.fr_LU=5132]="fr_LU",e[e.fr_ML=13324]="fr_ML",e[e.fr_MC=6156]="fr_MC",e[e.fr_MA=14348]="fr_MA",e[e.fr_RE=8204]="fr_RE",e[e.fr_SN=10252]="fr_SN",e[e.fr_CH=4108]="fr_CH",e[e.fy_NL=1122]="fy_NL",e[e.ff_NG=1127]="ff_NG",e[e.gd_GB=1084]="gd_GB",e[e.gl_ES=1110]="gl_ES",e[e.ka_GE=1079]="ka_GE",e[e.de_AT=3079]="de_AT",e[e.de_DE=1031]="de_DE",e[e.de_LI=5127]="de_LI",e[e.de_LU=4103]="de_LU",e[e.de_CH=2055]="de_CH",e[e.el_GR=1032]="el_GR",e[e.gn_PY=1140]="gn_PY",e[e.gu_IN=1095]="gu_IN",e[e.kl_GL=1135]="kl_GL",e[e.ha_Latn_NG=1128]="ha_Latn_NG",e[e.haw_US=1141]="haw_US",e[e.he_IL=1037]="he_IL",e[e.hi_IN=1081]="hi_IN",e[e.hu_HU=1038]="hu_HU",e[e.ibb_NG=1129]="ibb_NG",e[e.is_IS=1039]="is_IS",e[e.ig_NG=1136]="ig_NG",e[e.id_ID=1057]="id_ID",e[e.iu_Latn_CA=2141]="iu_Latn_CA",e[e.iu_Cans_CA=1117]="iu_Cans_CA",e[e.it_IT=1040]="it_IT",e[e.it_CH=2064]="it_CH",e[e.ga_IE=2108]="ga_IE",e[e.xh_ZA=1076]="xh_ZA",e[e.zu_ZA=1077]="zu_ZA",e[e.kn_IN=1099]="kn_IN",e[e.kr_NG=1137]="kr_NG",e[e.ks_Deva=2144]="ks_Deva",e[e.ks_Arab=1120]="ks_Arab",e[e.kk_KZ=1087]="kk_KZ",e[e.km_KH=1107]="km_KH",e[e.kok_IN=1111]="kok_IN",e[e.ko_KR=1042]="ko_KR",e[e.ky_KG=1088]="ky_KG",e[e.qut_GT=1158]="qut_GT",e[e.rw_RW=1159]="rw_RW",e[e.lo_LA=1108]="lo_LA",e[e.la_Latn=1142]="la_Latn",e[e.lv_LV=1062]="lv_LV",e[e.lt_LT=1063]="lt_LT",e[e.dsb_DE=2094]="dsb_DE",e[e.lb_LU=1134]="lb_LU",e[e.mk_MK=1071]="mk_MK",e[e.ms_BN=2110]="ms_BN",e[e.ms_MY=1086]="ms_MY",e[e.ml_IN=1100]="ml_IN",e[e.mt_MT=1082]="mt_MT",e[e.mni_IN=1112]="mni_IN",e[e.mi_NZ=1153]="mi_NZ",e[e.mr_IN=1102]="mr_IN",e[e.arn_CL=1146]="arn_CL",e[e.mn_MN=1104]="mn_MN",e[e.mn_Mong_CN=2128]="mn_Mong_CN",e[e.ne_NP=1121]="ne_NP",e[e.ne_IN=2145]="ne_IN",e[e.nb_NO=1044]="nb_NO",e[e.nn_NO=2068]="nn_NO",e[e.oc_FR=1154]="oc_FR",e[e.or_IN=1096]="or_IN",e[e.om_Ethi_ET=1138]="om_Ethi_ET",e[e.pap_AN=1145]="pap_AN",e[e.ps_AF=1123]="ps_AF",e[e.fa_IR=1065]="fa_IR",e[e.pl_PL=1045]="pl_PL",e[e.pt_BR=1046]="pt_BR",e[e.pt_PT=2070]="pt_PT",e[e.pa_IN=1094]="pa_IN",e[e.pa_PK=2118]="pa_PK",e[e.quz_BO=1131]="quz_BO",e[e.guz_EC=2155]="guz_EC",e[e.guz_PE=3179]="guz_PE",e[e.ro_RO=1048]="ro_RO",e[e.ro_MO=2072]="ro_MO",e[e.rm_CH=1047]="rm_CH",e[e.ru_RU=1049]="ru_RU",e[e.ru_MO=2073]="ru_MO",e[e.smn_FI=9275]="smn_FI",e[e.smj_NO=4155]="smj_NO",e[e.smj_SE=5179]="smj_SE",e[e.se_FI=3131]="se_FI",e[e.se_NO=1083]="se_NO",e[e.se_SE=2107]="se_SE",e[e.sms_FI=8251]="sms_FI",e[e.sma_NO=6203]="sma_NO",e[e.sma_SE=7227]="sma_SE",e[e.sa_IN=1103]="sa_IN",e[e.sr_Cyrl_BA=7194]="sr_Cyrl_BA",e[e.sr_Cyrl_CS=3098]="sr_Cyrl_CS",e[e.sr_Latn_BA=6170]="sr_Latn_BA",e[e.sr_Latn_CS=2074]="sr_Latn_CS",e[e.nso_ZA=1132]="nso_ZA",e[e.tn_ZA=1074]="tn_ZA",e[e.sd_Arab_PK=2137]="sd_Arab_PK",e[e.sd_Deva_IN=1113]="sd_Deva_IN",e[e.si_LK=1115]="si_LK",e[e.sk_SK=1051]="sk_SK",e[e.sl_SI=1060]="sl_SI",e[e.so_SO=1143]="so_SO",e[e.es_AR=11274]="es_AR",e[e.es_BO=16394]="es_BO",e[e.es_CL=13322]="es_CL",e[e.es_CO=9226]="es_CO",e[e.es_CR=5130]="es_CR",e[e.es_DO=7178]="es_DO",e[e.es_EC=12298]="es_EC",e[e.es_SV=17418]="es_SV",e[e.es_GT=4106]="es_GT",e[e.es_HN=18442]="es_HN",e[e.es_MX=2058]="es_MX",e[e.es_NI=19466]="es_NI",e[e.es_PA=6154]="es_PA",e[e.es_PY=15370]="es_PY",e[e.es_PE=10250]="es_PE",e[e.es_PR=20490]="es_PR",e[e.es_ES=3082]="es_ES",e[e.es_ES_tradnl=1034]="es_ES_tradnl",e[e.es_US=21514]="es_US",e[e.es_UY=14346]="es_UY",e[e.es_VE=8202]="es_VE",e[e.st_ZA=1072]="st_ZA",e[e.sw_KE=1089]="sw_KE",e[e.sv_FI=2077]="sv_FI",e[e.sv_SE=1053]="sv_SE",e[e.syr_SY=1114]="syr_SY",e[e.tg_Cyrl_TJ=1064]="tg_Cyrl_TJ",e[e.tzm_Arab_MA=1119]="tzm_Arab_MA",e[e.tzm_Latn_DZ=2143]="tzm_Latn_DZ",e[e.ta_IN=1097]="ta_IN",e[e.tt_RU=1092]="tt_RU",e[e.te_IN=1098]="te_IN",e[e.th_TH=1054]="th_TH",e[e.bo_CN=1105]="bo_CN",e[e.ti_ER=2163]="ti_ER",e[e.ti_ET=1139]="ti_ET",e[e.ts_ZA=1073]="ts_ZA",e[e.tr_TR=1055]="tr_TR",e[e.tk_TM=1090]="tk_TM",e[e.ug_CN=1152]="ug_CN",e[e.uk_UA=1058]="uk_UA",e[e.hsb_DE=1070]="hsb_DE",e[e.ur_PK=1056]="ur_PK",e[e.uz_Cyrl_UZ=2115]="uz_Cyrl_UZ",e[e.uz_Latn_UZ=1091]="uz_Latn_UZ",e[e.ve_ZA=1075]="ve_ZA",e[e.vi_VN=1066]="vi_VN",e[e.cy_GB=1106]="cy_GB",e[e.wo_SN=1160]="wo_SN",e[e.sah_RU=1157]="sah_RU",e[e.ii_CN=1144]="ii_CN",e[e.yi_Hebr=1085]="yi_Hebr",e[e.yo_NG=1130]="yo_NG",e[e.ja_JP=1041]="ja_JP"}(e.LocaleId||(e.LocaleId={})),function(e){e.EvenPage="EvenPage",e.NewPage="NewPage",e.Continuous="NoBreak",e.OddPage="OddPage"}(e.SectionBreakType||(e.SectionBreakType={}));var I={Tab:"\t",Paragraph:"\n",LineBreak:"\v",PageBreak:"\f",ColumnBreak:"",Image:"",Table:"",Row:"",Cell:"",Marker_Start:"",Marker_End:"",Field_Separator:"",Section_Break:""},k=function(){function e(e,t,i){this.id=e,this.commentProperties=t,this.text=i}return e}(),F=function(){function e(){this.keysInternal=[],this.valuesInternal=[]}return Object.defineProperty(e.prototype,"length",{get:function(){return this.keysInternal.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"keys",{get:function(){return this.keysInternal},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"values",{get:function(){return this.valuesInternal},enumerable:!0,configurable:!0}),e.prototype.add=function(e,i){if(t.isNullOrUndefined(e))throw new ReferenceError("Provided key or value is not valid.");return this.keysInternal.indexOf(e)<0&&(this.keysInternal.push(e),this.valuesInternal.push(i)),1},e.prototype.get=function(e){if(t.isNullOrUndefined(e))throw new ReferenceError("Provided key is not valid.");var i=this.keysInternal.indexOf(e);return i<0||i>this.keysInternal.length-1?void 0:this.valuesInternal[i]},e.prototype.set=function(e,i){if(t.isNullOrUndefined(e))throw new ReferenceError("Provided key is not valid.");var n=this.keysInternal.indexOf(e);if(n<0||n>this.keysInternal.length-1)throw new RangeError("No item with the specified key has been added.");this.valuesInternal[n]=i},e.prototype.remove=function(e){if(t.isNullOrUndefined(e))throw new ReferenceError("Provided key is not valid.");var i=this.keysInternal.indexOf(e);if(i<0||i>this.keysInternal.length-1)throw new RangeError("No item with the specified key has been added.");return this.keysInternal.splice(i,1),this.valuesInternal.splice(i,1),!0},e.prototype.containsKey=function(e){if(t.isNullOrUndefined(e))throw new ReferenceError("Provided key is not valid.");var i=this.keysInternal.indexOf(e);return!(i<0||i>this.keysInternal.length-1)},e.prototype.clear=function(){this.keysInternal=[],this.valuesInternal=[]},e.prototype.destroy=function(){this.clear(),this.keysInternal=void 0,this.valuesInternal=void 0},e}(),P=function(){function e(e){this.referenceCount=0,this.uniqueFormatType=e,this.propertiesHash=new F}return e.prototype.isEqual=function(e,t,i){var n=!1;switch(this.uniqueFormatType){case 1:n=this.isBorderEqual(e,t,i);break;case 2:n=this.isCharacterFormatEqual(e,t,i);break;case 3:n=this.isParagraphFormatEqual(e,t,i);break;case 4:n=this.isCellFormatEqual(e,t,i);break;case 5:n=this.isShadingEqual(e,t,i);break;case 6:n=this.isRowFormatEqual(e,t,i);break;case 7:n=this.isListFormatEqual(e,t,i);break;case 8:n=this.isTableFormatEqual(e,t,i);break;case 9:n=this.isListLevelEqual(e,t,i);break;case 10:n=this.isSectionFormatEqual(e,t,i);break;case 11:n=this.isColumnFormatEqual(e,t,i)}return n},e.prototype.isNotEqual=function(i,n,r,o,s){var a=void 0,l=e.getPropertyType(s,i);this.propertiesHash.containsKey(l)&&(a=this.propertiesHash.get(l));var d=void 0;return i===r?d=o:n.containsKey(l)&&(d=n.get(l)),!(a===d||!t.isNullOrUndefined(a)&&!t.isNullOrUndefined(d)&&a===d)},e.getPropertyType=function(e,t){var i=0;switch(e){case 1:i=this.getBorderPropertyType(t);break;case 2:i=this.getCharacterFormatPropertyType(t);break;case 3:i=this.getParaFormatPropertyType(t);break;case 4:i=this.getCellFormatPropertyType(t);break;case 5:i=this.getShadingPropertyType(t);break;case 6:i=this.getRowFormatType(t);break;case 7:i=this.getListFormatType(t);break;case 8:i=this.getTableFormatType(t);break;case 9:i=this.getListLevelType(t);break;case 10:i=this.getSectionFormatType(t);break;case 11:i=this.getColumnFormatType(t)}return i},e.getRowFormatType=function(e){switch(e){case"allowBreakAcrossPages":return 1;case"isHeader":return 2;case"height":return 3;case"heightType":return 4;case"gridBefore":return 5;case"gridBeforeWidth":return 6;case"gridBeforeWidthType":return 7;case"gridAfter":return 8;case"gridAfterWidth":return 9;case"gridAfterWidthType":return 10;case"leftMargin":return 11;case"topMargin":return 12;case"bottomMargin":return 13;case"rightMargin":return 14;case"leftIndent":return 15;default:return 0}},e.getListFormatType=function(e){switch(e){case"listId":return 1;case"listLevelNumber":return 2;case"nsid":return 3;default:return 0}},e.getTableFormatType=function(e){switch(e){case"leftMargin":return 1;case"rightMargin":return 2;case"topMargin":return 3;case"bottomMargin":return 4;case"cellSpacing":return 5;case"leftIndent":return 6;case"tableAlignment":return 7;case"preferredWidth":return 8;case"preferredWidthType":return 9;case"bidi":return 10;case"allowAutoFit":return 11;case"horizontalPositionAbs":return 12;case"horizontalPosition":return 13;default:return 0}},e.getListLevelType=function(e){switch(e){case"listLevelPattern":return 1;case"startAt":return 2;case"followCharacter":return 3;case"numberFormat":return 4;case"restartLevel":return 5;case"isLegalStyleNumbering":return 6;case"paraStyleName":return 7;default:return 0}},e.getShadingPropertyType=function(e){switch(e){case"backgroundColor":return 1;case"foregroundColor":return 2;case"textureStyle":return 3;default:return 0}},e.getCellFormatPropertyType=function(e){switch(e){case"leftMargin":return 1;case"rightMargin":return 2;case"topMargin":return 3;case"bottomMargin":return 4;case"columnSpan":return 5;case"rowSpan":return 6;case"verticalAlignment":return 7;case"preferredWidthType":return 8;case"preferredWidth":return 9;case"cellWidth":return 10;default:return 0}},e.getBorderPropertyType=function(e){switch(e){case"color":return 1;case"lineStyle":return 2;case"lineWidth":return 3;case"shadow":return 4;case"space":return 5;case"hasNoneStyle":return 6;default:return 0}},e.getCharacterFormatPropertyType=function(e){switch(e){case"fontColor":return 1;case"fontFamily":return 2;case"fontSize":return 3;case"bold":return 4;case"italic":return 5;case"underline":return 6;case"strikethrough":return 7;case"baselineAlignment":return 8;case"highlightColor":return 9;case"bidi":return 10;case"bdo":return 11;case"boldBidi":return 12;case"italicBidi":return 13;case"fontFamilyBidi":return 14;case"fontSizeBidi":return 15;case"allCaps":return 16;case"localeIdBidi":return 17;case"complexScript":return 18;case"fontFamilyFarEast":return 19;case"fontFamilyAscii":return 20;case"fontFamilyNonFarEast":return 21;case"localeIdAscii":return 22;case"localeIdFarEast":return 23;case"characterSpacing":return 24;case"scaling":return 25;case"hidden":return 26;case"underlineColor":return 27;case"fontHintType":return 28;default:return 0}},e.getParaFormatPropertyType=function(e){switch(e){case"leftIndent":return 1;case"rightIndent":return 2;case"firstLineIndent":return 3;case"textAlignment":return 4;case"beforeSpacing":return 5;case"afterSpacing":return 6;case"lineSpacing":return 7;case"lineSpacingType":return 8;case"outlineLevel":return 9;case"bidi":return 10;case"contextualSpacing":return 11;case"keepWithNext":return 12;case"keepLinesTogether":return 13;case"widowControl":return 14;case"spaceBeforeAuto":return 15;case"spaceAfterAuto":return 16;default:return 0}},e.getColumnFormatType=function(e){switch(e){case"width":return 1;case"space":return 2;default:return 0}},e.getSectionFormatType=function(e){switch(e){case"headerDistance":return 1;case"footerDistance":return 2;case"differentFirstPage":return 3;case"differentOddAndEvenPages":return 4;case"pageWidth":return 5;case"pageHeight":return 6;case"leftMargin":return 7;case"topMargin":return 8;case"rightMargin":return 9;case"bottomMargin":return 10;case"bidi":return 11;case"restartPageNumbering":return 12;case"pageStartingNumber":return 13;case"endnoteNumberFormat":return 14;case"endnotePosition":return 15;case"footNoteNumberFormat":return 16;case"footnotePosition":return 17;case"restartIndexForEndnotes":return 18;case"restartIndexForFootnotes":return 19;case"initialFootNoteNumber":return 20;case"initialEndNoteNumber":return 21;case"pageNumberStyle":return 22;case"numberOfColumns":return 23;case"equalWidth":return 24;case"lineBetweenColumns":return 25;case"columns":return 26;case"breakCode":return 27;default:return 0}},e.prototype.isBorderEqual=function(e,t,i){return!this.isNotEqual("color",e,t,i,1)&&(!this.isNotEqual("lineStyle",e,t,i,1)&&(!this.isNotEqual("lineWidth",e,t,i,1)&&(!this.isNotEqual("shadow",e,t,i,1)&&(!this.isNotEqual("space",e,t,i,1)&&!this.isNotEqual("hasNoneStyle",e,t,i,1)))))},e.prototype.isCharacterFormatEqual=function(e,t,i){return!this.isNotEqual("fontColor",e,t,i,2)&&(!this.isNotEqual("fontFamily",e,t,i,2)&&(!this.isNotEqual("fontSize",e,t,i,2)&&(!this.isNotEqual("bold",e,t,i,2)&&(!this.isNotEqual("italic",e,t,i,2)&&(!this.isNotEqual("underline",e,t,i,2)&&(!this.isNotEqual("strikethrough",e,t,i,2)&&(!this.isNotEqual("baselineAlignment",e,t,i,2)&&(!this.isNotEqual("highlightColor",e,t,i,2)&&(!this.isNotEqual("bidi",e,t,i,2)&&(!this.isNotEqual("bdo",e,t,i,2)&&(!this.isNotEqual("fontColor",e,t,i,2)&&(!this.isNotEqual("fontFamilyBidi",e,t,i,2)&&(!this.isNotEqual("fontSizeBidi",e,t,i,2)&&(!this.isNotEqual("boldBidi",e,t,i,2)&&(!this.isNotEqual("italicBidi",e,t,i,2)&&(!this.isNotEqual("allCaps",e,t,i,2)&&(!this.isNotEqual("localeIdBidi",e,t,i,2)&&(!this.isNotEqual("localeIdAscii",e,t,i,2)&&(!this.isNotEqual("localeIdFarEast",e,t,i,2)&&(!this.isNotEqual("complexScript",e,t,i,2)&&(!this.isNotEqual("hidden",e,t,i,2)&&(!this.isNotEqual("fontFamilyFarEast",e,t,i,2)&&(!this.isNotEqual("fontFamilyAscii",e,t,i,2)&&(!this.isNotEqual("fontFamilyNonFarEast",e,t,i,2)&&(!this.isNotEqual("characterSpacing",e,t,i,2)&&(!this.isNotEqual("scaling",e,t,i,2)&&(!this.isNotEqual("underlineColor",e,t,i,2)&&!this.isNotEqual("fontHintType",e,t,i,2))))))))))))))))))))))))))))},e.prototype.isParagraphFormatEqual=function(e,t,i){return!this.isNotEqual("leftIndent",e,t,i,3)&&(!this.isNotEqual("rightIndent",e,t,i,3)&&(!this.isNotEqual("firstLineIndent",e,t,i,3)&&(!this.isNotEqual("textAlignment",e,t,i,3)&&(!this.isNotEqual("beforeSpacing",e,t,i,3)&&(!this.isNotEqual("afterSpacing",e,t,i,3)&&(!this.isNotEqual("spaceBeforeAuto",e,t,i,3)&&(!this.isNotEqual("spaceAfterAuto",e,t,i,3)&&(!this.isNotEqual("lineSpacing",e,t,i,3)&&(!this.isNotEqual("lineSpacingType",e,t,i,3)&&(!this.isNotEqual("outlineLevel",e,t,i,3)&&(!this.isNotEqual("bidi",e,t,i,3)&&(!this.isNotEqual("contextualSpacing",e,t,i,3)&&(!this.isNotEqual("keepWithNext",e,t,i,3)&&(!this.isNotEqual("keepLinesTogether",e,t,i,3)&&!this.isNotEqual("widowControl",e,t,i,3)))))))))))))))},e.prototype.isCellFormatEqual=function(e,t,i){return!this.isNotEqual("leftMargin",e,t,i,4)&&(!this.isNotEqual("rightMargin",e,t,i,4)&&(!this.isNotEqual("topMargin",e,t,i,4)&&(!this.isNotEqual("bottomMargin",e,t,i,4)&&(!this.isNotEqual("columnSpan",e,t,i,4)&&(!this.isNotEqual("rowSpan",e,t,i,4)&&(!this.isNotEqual("verticalAlignment",e,t,i,4)&&(!this.isNotEqual("preferredWidthType",e,t,i,4)&&(!this.isNotEqual("preferredWidth",e,t,i,4)&&!this.isNotEqual("cellWidth",e,t,i,4)))))))))},e.prototype.isShadingEqual=function(e,t,i){return!this.isNotEqual("backgroundColor",e,t,i,5)&&(!this.isNotEqual("foregroundColor",e,t,i,5)&&!this.isNotEqual("textureStyle",e,t,i,5))},e.prototype.isRowFormatEqual=function(e,t,i){return!this.isNotEqual("allowBreakAcrossPages",e,t,i,6)&&(!this.isNotEqual("isHeader",e,t,i,6)&&(!this.isNotEqual("height",e,t,i,6)&&(!this.isNotEqual("heightType",e,t,i,6)&&(!this.isNotEqual("gridBefore",e,t,i,6)&&(!this.isNotEqual("gridBeforeWidth",e,t,i,6)&&(!this.isNotEqual("gridBeforeWidthType",e,t,i,6)&&(!this.isNotEqual("gridAfter",e,t,i,6)&&(!this.isNotEqual("gridAfterWidth",e,t,i,6)&&(!this.isNotEqual("gridAfterWidthType",e,t,i,6)&&(!this.isNotEqual("leftMargin",e,t,i,6)&&(!this.isNotEqual("topMargin",e,t,i,6)&&(!this.isNotEqual("bottomMargin",e,t,i,6)&&(!this.isNotEqual("rightMargin",e,t,i,6)&&!this.isNotEqual("leftIndent",e,t,i,6))))))))))))))},e.prototype.isListFormatEqual=function(e,t,i){return!this.isNotEqual("listId",e,t,i,7)&&(!this.isNotEqual("listLevelNumber",e,t,i,7)&&!this.isNotEqual("nsid",e,t,i,7))},e.prototype.isTableFormatEqual=function(e,t,i){return!this.isNotEqual("leftMargin",e,t,i,8)&&(!this.isNotEqual("rightMargin",e,t,i,8)&&(!this.isNotEqual("topMargin",e,t,i,8)&&(!this.isNotEqual("bottomMargin",e,t,i,8)&&(!this.isNotEqual("cellSpacing",e,t,i,8)&&(!this.isNotEqual("leftIndent",e,t,i,8)&&(!this.isNotEqual("tableAlignment",e,t,i,8)&&(!this.isNotEqual("preferredWidth",e,t,i,8)&&(!this.isNotEqual("preferredWidthType",e,t,i,8)&&(!this.isNotEqual("bidi",e,t,i,8)&&(!this.isNotEqual("allowAutoFit",e,t,i,8)&&(!this.isNotEqual("horizontalPositionAbs",e,t,i,8)&&!this.isNotEqual("horizontalPosition",e,t,i,8))))))))))))},e.prototype.isListLevelEqual=function(e,t,i){return!this.isNotEqual("listLevelPattern",e,t,i,9)&&(!this.isNotEqual("startAt",e,t,i,9)&&(!this.isNotEqual("followCharacter",e,t,i,9)&&(!this.isNotEqual("numberFormat",e,t,i,9)&&(!this.isNotEqual("paraStyleName",e,t,i,9)&&(!this.isNotEqual("restartLevel",e,t,i,9)&&!this.isNotEqual("isLegalStyleNumbering",e,t,i,9))))))},e.prototype.isSectionFormatEqual=function(e,t,i){return!this.isNotEqual("headerDistance",e,t,i,10)&&(!this.isNotEqual("footerDistance",e,t,i,10)&&(!this.isNotEqual("differentFirstPage",e,t,i,10)&&(!this.isNotEqual("differentOddAndEvenPages",e,t,i,10)&&(!this.isNotEqual("pageWidth",e,t,i,10)&&(!this.isNotEqual("pageHeight",e,t,i,10)&&(!this.isNotEqual("leftMargin",e,t,i,10)&&(!this.isNotEqual("topMargin",e,t,i,10)&&(!this.isNotEqual("rightMargin",e,t,i,10)&&(!this.isNotEqual("bottomMargin",e,t,i,10)&&(!this.isNotEqual("bidi",e,t,i,10)&&(!this.isNotEqual("restartPageNumbering",e,t,i,10)&&(!this.isNotEqual("pageStartingNumber",e,t,i,10)&&(!this.isNotEqual("endnoteNumberFormat",e,t,i,10)&&(!this.isNotEqual("endnotePosition",e,t,i,10)&&(!this.isNotEqual("footNoteNumberFormat",e,t,i,10)&&(!this.isNotEqual("footnotePosition",e,t,i,10)&&(!this.isNotEqual("restartIndexForEndnotes",e,t,i,10)&&(!this.isNotEqual("restartIndexForFootnotes",e,t,i,10)&&(!this.isNotEqual("initialFootNoteNumber",e,t,i,10)&&(!this.isNotEqual("initialEndNoteNumber",e,t,i,10)&&(!this.isNotEqual("pageNumberStyle",e,t,i,10)&&(!this.isNotEqual("numberOfColumns",e,t,i,10)&&(!this.isNotEqual("equalWidth",e,t,i,10)&&(!this.isNotEqual("lineBetweenColumns",e,t,i,10)&&!this.isNotEqual("breakCode",e,t,i,10)))))))))))))))))))))))))},e.prototype.isColumnFormatEqual=function(e,t,i){return!this.isNotEqual("width",e,t,i,11)&&!this.isNotEqual("space",e,t,i,11)},e.prototype.cloneItems=function(t,i,n,r){for(var o=e.getPropertyType(r,i),s=t.propertiesHash.keys,a=0;a<s.length;a++)s[a]===o?this.propertiesHash.add(o,n):this.propertiesHash.add(s[a],t.propertiesHash.get(s[a]));t.propertiesHash.containsKey(o)||this.propertiesHash.add(o,n)},e.prototype.mergeProperties=function(e){for(var t=e.cloneProperties(),i=this.propertiesHash.keys,n=0;n<i.length;n++)t.containsKey(i[n])||t.add(i[n],this.propertiesHash.get(i[n]));return t},e.prototype.cloneProperties=function(){for(var e=new F,t=this.propertiesHash.keys,i=0;i<t.length;i++)e.add(t[i],this.propertiesHash.get(t[i]));return e},e.prototype.destroy=function(){t.isNullOrUndefined(this.propertiesHash)||this.propertiesHash.destroy(),this.propertiesHash=void 0,this.referenceCount=void 0,this.uniqueFormatType=void 0},e}(),S=function(){function e(){this.items=[]}return e.prototype.addUniqueFormat=function(e,i){for(var n=void 0,r=0;r<this.items.length;r++)if(this.items[r].isEqual(e,void 0,void 0)){n=this.items[r];break}return t.isNullOrUndefined(n)?((n=new P(i)).propertiesHash=e,n.referenceCount=1,this.items.push(n)):n.referenceCount++,n},e.prototype.updateUniqueFormat=function(e,i,n){for(var r=void 0,o=0;o<this.items.length;o++)if(this.items[o].isEqual(e.propertiesHash,i,n)){r=this.items[o];break}return t.isNullOrUndefined(r)?((r=new P(e.uniqueFormatType)).cloneItems(e,i,n,e.uniqueFormatType),r.referenceCount=1,this.items.push(r)):r.referenceCount++,this.remove(e),r},e.prototype.remove=function(e){--e.referenceCount<=0&&(this.items.splice(this.items.indexOf(e),1),e.destroy(),e=void 0)},e.prototype.clear=function(){if(t.isNullOrUndefined(this.items))for(var e=0;e<this.items.length;e++)this.items[e].destroy();this.items=[]},e.prototype.destroy=function(){this.clear(),this.items=void 0},e}(),T=function(){function e(){this.mode=!0}return e.prototype.send=function(e,i,n){var r=this;this.xmlHttpRequest=new XMLHttpRequest;var o=0;n=!!t.isNullOrUndefined(n)||n,t.isNullOrUndefined(i)||(this.xmlHttpRequest.withCredentials=i.withCredentials,o=i.timeout>=0?i.timeout:0,this.customHeaders=i.headers),this.xmlHttpRequest.onreadystatechange=function(){r.stateChange(r)},this.xmlHttpRequest.onerror=function(){r.error(r)},this.mode?this.sendRequest(e,o,n):setTimeout(function(){r.sendRequest(e,o,n)})},e.prototype.sendRequest=function(e,t,i){this.xmlHttpRequest.open("POST",this.url,i),i&&(this.xmlHttpRequest.timeout=t),this.contentType&&this.xmlHttpRequest.setRequestHeader("Content-Type",this.contentType),this.setCustomAjaxHeaders(),this.responseType&&(this.xmlHttpRequest.responseType=this.responseType);var n=e instanceof FormData?e:JSON.stringify(e);this.xmlHttpRequest.send(n)},e.prototype.stateChange=function(e){if(4===e.xmlHttpRequest.readyState&&200===e.xmlHttpRequest.status){var t=void 0,i={name:"onSuccess",data:t=this.responseType?e.xmlHttpRequest.response:e.xmlHttpRequest.responseText,readyState:e.xmlHttpRequest.readyState,status:e.xmlHttpRequest.status};e.successHandler(i)}else if(4===e.xmlHttpRequest.readyState&&200!==e.xmlHttpRequest.status){i={name:"onFailure",status:e.xmlHttpRequest.status,statusText:e.xmlHttpRequest.statusText,url:e.url};e.failureHandler(i)}},e.prototype.error=function(e){var t={name:"onError",status:this.xmlHttpRequest.status,statusText:this.xmlHttpRequest.statusText};e.errorHandler(t)},e.prototype.successHandler=function(e){return this.onSuccess&&this.onSuccess(e),e},e.prototype.failureHandler=function(e){return this.onFailure&&this.onFailure(e),e},e.prototype.errorHandler=function(e){return this.onError&&this.onError(e),e},e.prototype.setCustomAjaxHeaders=function(){for(var e=0;e<this.customHeaders.length;e++)for(var t=this.customHeaders[e],i=0,n=Object.keys(t);i<n.length;i++){var r=n[i];this.xmlHttpRequest.setRequestHeader(r,t[r])}},e}(),H="afterFormFieldFill",E="beforeFormFieldFill",N="keyDown",W="internalStyleCollectionChange",O=["sections","sec"],B=["fontSubstitutionTable","fst"],L=["characterFormat","cf"],D=["paragraphFormat","pf"],R=["lists","li"],M=["abstractLists","al"],A=["background","bg"],U=["styles","sty"],V=["comments","cm"],z=["revisions","r"],q=["customXml","cx"],_=["defaultTabWidth","dtw"],j=["formatting","fmt"],G=["trackChanges","tc"],K=["protectionType","pt"],X=["enforcement","enf"],Z=["hashValue","hv"],J=["saltValue","sv"],Y=["cryptProviderType","cpt"],Q=["cryptAlgorithmClass","cac"],$=["cryptAlgorithmType","cat"],ee=["cryptAlgorithmSid","cas"],te=["cryptSpinCount","csc"],ie=["dontUseHTMLParagraphAutoSpacing","dhtml"],ne=["alignTablesRowByRow","atrr"],re=["formFieldShading","ffs"],oe=["lastParagraphMarkCopied","lpmc"],se=["footnotes","fn"],ae=["endnotes","en"],le=["compatibilityMode","comp"],de=["themeFontLanguages","tfl"],he=["themes","thm"],ce=["name","n"],pe=["basedOn","b"],ue=["next","nx"],ge=["link","l"],me=["localeId","id"],fe=["localeIdFarEast","idfe"],ve=["localeIdBidi","idbi"],ye=["bold","b"],we=["italic","i"],be=["underline","u"],Ce=["underlineColor","uc"],xe=["fontHintType","fht"],Ie=["baselineAlignment","ba"],ke=["strikethrough","st"],Fe=["highlightColor","hc"],Pe=["fontSize","fsz"],Se=["fontColor","fc"],Te=["fontFamily","ff"],He=["styleName","stn"],Ee=["bidi","bi"],Ne=["bdo","bdo"],We=["breakClearType","bct"],Oe=["fontSizeBidi","fszbi"],Be=["fontFamilyBidi","ffbi"],Le=["boldBidi","bbi"],De=["italicBidi","ibi"],Re=["allCaps","ac"],Me=["complexScript","cs"],Ae=["fontFamilyAscii","ffa"],Ue=["fontFamilyFarEast","fffe"],Ve=["fontFamilyNonFarEast","ffnfe"],ze=["revisionIds","rids"],qe=["listId","lid"],_e=["characterSpacing","csp"],je=["scaling","sc"],Ge=["listLevelNumber","lilno"],Ke=["leftIndent","lin"],Xe=["rightIndent","rin"],Ze=["firstLineIndent","fin"],Je=["textAlignment","ta"],Ye=["afterSpacing","as"],Qe=["beforeSpacing","bs"],$e=["spaceAfterAuto","saa"],et=["spaceBeforeAuto","sba"],tt=["lineSpacing","ls"],it=["lineSpacingType","lst"],nt=["listFormat","lif"],rt=["keepWithNext","kwn"],ot=["widowControl","wc"],st=["keepLinesTogether","klt"],at=["outlineLevel","ol"],lt=["contextualSpacing","cs"],dt=["borders","bdrs"],ht=["tabs","tb"],ct=["headerDistance","hd"],pt=["footerDistance","fd"],ut=["differentFirstPage","dfp"],gt=["differentOddAndEvenPages","doep"],mt=["pageWidth","pw"],ft=["pageHeight","ph"],vt=["leftMargin","lm"],yt=["rightMargin","rm"],wt=["topMargin","tm"],bt=["bottomMargin","bm"],Ct=["restartPageNumbering","rpn"],xt=["pageStartingNumber","psn"],It=["endnoteNumberFormat","enf"],kt=["footNoteNumberFormat","fnf"],Ft=["restartIndexForFootnotes","rif"],Pt=["restartIndexForEndnotes","rie"],St=["initialFootNoteNumber","ifn"],Tt=["initialEndNoteNumber","ien"],Ht=["pageNumberStyle","pgns"],Et=["columns","cols"],Nt=["numberOfColumns","ncols"],Wt=["equalWidth","eqw"],Ot=["lineBetweenColumns","lbtc"],Bt=["breakCode","bc"],Lt=["cellWidth","cw"],Dt=["columnSpan","colsp"],Rt=["rowSpan","rwsp"],Mt=["verticalAlignment","va"],At=["allowBreakAcrossPages","abrk"],Ut=["isHeader","hdr"],Vt=["heightType","ht"],zt=["beforeWidth","bw"],qt=["afterWidth","aw"],_t=["gridBefore","gb"],jt=["gridBeforeWidth","gbw"],Gt=["gridBeforeWidthType","gbwt"],Kt=["gridAfter","ga"],Xt=["gridAfterWidth","gaw"],Zt=["gridAfterWidthType","gawt"],Jt=["allowAutoFit","auft"],Yt=["cellSpacing","csp"],Qt=["shading","sd"],$t=["tableAlignment","ta"],ei=["preferredWidth","pw"],ti=["preferredWidthType","pwt"],ii=["horizontalPositionAbs","hpa"],ni=["texture","t"],ri=["backgroundColor","bgc"],oi=["foregroundColor","fgc"],si=["shadow","sh"],ai=["hasNoneStyle","hns"],li=["vertical","v"],di=["horizontal","h"],hi=["diagonalUp","du"],ci=["diagonalDown","dd"],pi=["lineStyle","ls"],ui=["lineWidth","lw"],gi=["layout","l"],mi=["dataFormat","df"],fi=["yValue","y"],vi=["chartData","chd"],yi=["categoryXName","cx"],wi=["line","l"],bi=["foreColor","fc"],Ci=["pattern","pt"],xi=["layoutX","x"],Ii=["layoutY","y"],ki=["direction","dir"],Fi=["endStyle","est"],Pi=["numberValue","no"],Si=["markerStyle","mst"],Ti=["markerColor","mc"],Hi=["markerSize","msz"],Ei=["forward","fw"],Ni=["backward","bw"],Wi=["intercept","itr"],Oi=["isDisplayRSquared","idrs"],Bi=["isDisplayEquation","ideq"],Li=["seriesName","sn"],Di=["dataLabel","sl"],Ri=["errorBar","eb"],Mi=["seriesFormat","sf"],Ai=["trendLines","tl"],Ui=["dataPoints","dp"],Vi=["firstSliceAngle","fsa"],zi=["holeSize","hsz"],qi=["isLegendKey","lk"],_i=["isBubbleSize","bsz"],ji=["isCategoryName","icn"],Gi=["isSeriesName","isn"],Ki=["isValue","iv"],Xi=["isPercentage","ip"],Zi=["isLeaderLines","il"],Ji=["showSeriesKeys","sk"],Yi=["hasHorzBorder","hhbdr"],Qi=["hasVertBorder","hvbdr"],$i=["hasBorders","hbdr"],en=["categoryType","ct"],tn=["chartCategory","c"],nn=["chartSeries","cs"],rn=["chartArea","ca"],on=["chartTitleArea","cta"],sn=["plotArea","pa"],an=["chartLegend","cl"],ln=["chartPrimaryCategoryAxis","cpca"],dn=["chartPrimaryValueAxis","cpva"],hn=["chartTitle","ctt"],cn=["chartType","ct"],pn=["gapWidth","gw"],un=["overlap","o"],gn=["chartDataTable","cdt"],mn=["text","tlp"],fn=["shapeId","sid"],vn=["alternativeText","at"],yn=["visible","v"],wn=["belowText","b"],bn=["horizontalRule","ihr"],Cn=["width","w"],xn=["height","h"],In=["widthScale","ws"],kn=["heightScale","hs"],Fn=["lineFormat","lf"],Pn=["fillFormat","ff"],Sn=["textWrappingStyle","tws"],Tn=["textWrappingType","twt"],Hn=["verticalRelativePercent","vrp"],En=["horizontalRelativePercent","hrp"],Nn=["heightRelativePercent","hrp"],Wn=["widthRelativePercent","wrp"],On=["zOrderPosition","z"],Bn=["layoutInCell","lc"],Ln=["lockAnchor","la"],Dn=["autoShapeType","ast"],Rn=["textFrame","tf"],Mn=["color","c"],An=["fill","f"],Un=["textVerticalAlignment","tva"],Vn=["imageString","img"],zn=["metaFileImageString","mtimg"],qn=["length","l"],_n=["isInlineImage","inimg"],jn=["isMetaFile","imf"],Gn=["top","tp"],Kn=["bottom","bt"],Xn=["right","rg"],Zn=["left","lt"],Jn=["getimageheight","gih"],Yn=["getimagewidth","giw"],Qn=["hasFieldEnd","hfe"],$n=["formFieldData","ffd"],er=["fieldType","ft"],tr=["isCreatedUsingHtmlSpanTag","ishst"],ir=["enabled","e"],nr=["helpText","h"],rr=["statusText","st"],or=["textInput","ti"],sr=["checkBox","c"],ar=["dropDownList","ddl"],lr=["maxLength","ml"],dr=["defaultValue","dv"],hr=["format","f"],cr=["sizeType","szt"],pr=["size","sz"],ur=["checked","chk"],gr=["dropDownItems","ddi"],mr=["selectedIndex","si"],fr=["commentId","cid"],vr=["commentCharacterType","cct"],yr=["author","a"],wr=["initial","i"],br=["date","dt"],Cr=["done","dn"],xr=["replyComments","rc"],Ir=["revisionType","rt"],kr=["revisionId","rid"],Fr=["itemID","iid"],Pr=["xml","x"],Sr=["footnoteType","fnt"],Tr=["symbolCode","sc"],Hr=["symbolFontName","sfn"],Er=["customMarker","cm"],Nr=["inlines","i"],Wr=["contentControlProperties","ccp"],Or=["lockContentControl","lcc"],Br=["lockContents","lc"],Lr=["tag","tg"],Dr=["title","tt"],Rr=["hasPlaceHolderText","hpt"],Mr=["multiline","mul"],Ar=["isTemporary","it"],Ur=["dateCalendarType","dtct"],Vr=["dateStorageFormat","dtsf"],zr=["dateDisplayLocale","dtdl"],qr=["dateDisplayFormat","dtdf"],_r=["isChecked","ichk"],jr=["uncheckedState","uchk"],Gr=["checkedState","chks"],Kr=["contentControlListItems","ccli"],Xr=["xmlMapping","x"],Zr=["font","f"],Jr=["value","v"],Yr=["displayText","dt"],Qr=["isMapped","imap"],$r=["isWordMl","iwml"],eo=["prefixMapping","pmap"],to=["xPath","xp"],io=["storeItemId","siid"],no=["customXmlPart","cxp"],ro=["id","i"],oo=["cellFormat","tcpr"],so=["rowFormat","trpr"],ao=["cells","c"],lo=["rows","r"],ho=["description","desc"],co=["wrapTextAround","wta"],po=["isLegalStyleNumbering","isLgl"],uo=["positioning","p"],go=["tableFormat","tblpr"],mo=["allowOverlap","ao"],fo=["distanceTop","dt"],vo=["distanceRight","dr"],yo=["distanceLeft","dl"],wo=["distanceBottom","db"],bo=["verticalOrigin","vo"],Co=["verticalPosition","vp"],xo=["horizontalOrigin","ho"],Io=["horizontalAlignment","ha"],ko=["horizontalPosition","hp"],Fo=["blocks","b"],Po=["header","h"],So=["footer","f"],To=["evenHeader","eh"],Ho=["evenFooter","ef"],Eo=["firstPageHeader","fph"],No=["firstPageFooter","fpf"],Wo=["headersFooters","hf"],Oo=["sectionFormat","secpr"],Bo=["listLevelPattern","lilp"],Lo=["followCharacter","fchar"],Do=["startAt","sa"],Ro=["restartLevel","rl"],Mo=["levelNumber","lvlno"],Ao=["numberFormat","nf"],Uo=["paraStyleName","psty"],Vo=["abstractListId","alid"],zo=["levels","lvl"],qo=["overrideListLevel","o"],_o=["levelOverrides","lo"],jo=["separator","s"],Go=["continuationSeparator","cs"],Ko=["continuationNotice","cn"],Xo=["bookmarkType","bkt"],Zo=["properties","p"],Jo=["tabJustification","tj"],Yo=["position","p"],Qo=["deletePosition","dp"],$o=["leader","l"],es=["tabLeader","tl"],ts=["editRangeId","erid"],is=["columnFirst","cft"],ns=["columnLast","clt"],rs=["user","u"],os=["group","g"],ss=["editableRangeStart","ers"],as=["space","sp"],ls=["fontScheme","fsc"],ds=["fontSchemeName","fscn"],hs=["majorFontScheme","majfs"],cs=["minorFontScheme","minfs"],ps=["fontSchemeList","fsl"],us=["fontTypeface","ft"],gs=["typeface","t"],ms=["panose","p"],fs=["type","t"],vs=["majorUnit","maju"],ys=["isAutoMajor","iam"],ws=["maximumValue","maxv"],bs=["minimumValue","minv"],Cs=["hasMajorGridLines","hmajgl"],xs=["hasMinorGridLines","hmingl"],Is=["majorTickMark","majtm"],ks=["minorTickMark","mintm"],Fs=["tickLabelPosition","tlp"],Ps=["rgb","rgb"],Ss=["appearance","a"],Ts=["lineFormatType","lft"],Hs=["allowSpaceOfSameStyleInTable","stytbl"],Es=["weight","w"],Ns=["inlineFormat","inf"],Ws=["fontName","fn"],Os=["isCompressed","comp"],Bs=["columnIndex","ci"],Ls=["images","imgs"],Ds=["isAfterParagraphMark","apm"],Rs=["isAfterCellMark","acm"],Ms=["isAfterRowMark","arm"],As=["grid","grd"],Us=["columnCount","colc"],Vs=["isAfterTableMark","atm"],zs=["iOps"],qs=["hidden","hdn"],_s=["editingpoints","ep"],js=function(){function e(){var e=this;this.windowPrint=void 0,this.closePrintWindow=function(){e.windowPrint&&!e.windowPrint.closed&&e.windowPrint.close()}}return e.prototype.getModuleName=function(){return"Print"},e.prototype.print=function(e,t){this.printWindow(e,void 0!==navigator?navigator.userAgent:"",t)},e.prototype.printWindow=function(e,i,n){var r=this.getPageHeight(e.pages),o=this.getPageWidth(e.pages),s=document.createElement("div");s.style.width="100%",s.style.height="100%",s.style.overflow="scroll",this.generatePrintContent(e,s),t.isNullOrUndefined(n)&&(n=window.open("","print","height=452,width=1024,tabbar=no")),this.windowPrint=n;var a=o.toString()+"px "+r.toString()+"px";o>r&&(a="landscape"),-1!==i.indexOf("Chrome")?(n.document.write("<!DOCTYPE html>"),n.document.write("<html><head><title>"+e.owner.documentName+"</title><style>img { height: 100%; width: 100%; display: block;}img { box-sizing: border-box; }br, button { display: none; }@page{ margin: 0cm; size:"+a+"; }@media print{ body { margin: 0cm; size:"+a+"; }}</style></head> <body><center>")):-1!==i.indexOf("Firefox")?(n.document.write("<!DOCTYPE html>"),n.document.write("<html moznomarginboxes mozdisallowselectionprint><head><title>"+e.owner.documentName+"</title><style>html, body { height: 100%; } img { height: 100%; width: 100%; display: block;}img { box-sizing: border-box; }br, button { display: none; }@page{ margin: 0cm; size:"+a+"; }@media print{ body { margin: 0cm; size:"+a+"; }}</style></head> <body><center>")):n.document.write("<html><head><title>"+e.owner.documentName+"</title><style>@page{margin:0;size:"+a+";}</style></head><body><center>"),n.document.write(s.innerHTML+"</center><script> (function() { window.ready = true; })(); <\/script></body></html>"),s=void 0,n.document.close(),n.focus(),window.addEventListener("beforeunload",this.closePrintWindow);var l=Number(setInterval(function(){n.ready&&(n.print(),n.close(),clearInterval(l))},500))},e.prototype.exportAsImage=function(e,i,n){var r;if(!t.isNullOrUndefined(i)&&i<=e.pages.length&&i>=1){var o=e.pages[i-1],s=o.boundingRectangle.height,a=o.boundingRectangle.width;e.render.isPrinting=!0,e.render.renderWidgets(o,0,0,0,0);var l=e.render.pageCanvas.toDataURL(n,1);e.render.isPrinting=!1,(r=new Image).src=l,r.style.cssText="margin: 0px; display: block; width: "+a+"px; height: "+s+"px;"}return r},e.prototype.generatePrintContent=function(e,i){i.innerHTML="";for(var n=0;n<e.pages.length;n++){var r=e.pages[n],o=r.boundingRectangle.height,s=r.boundingRectangle.width;e.render.isPrinting=!0,e.render.renderWidgets(r,0,0,s,0);var a=e.render.pageCanvas.toDataURL();e.render.isPrinting=!1;var l=document.createElement("div"),d=document.createElement("img");d.src=a;var h="margin:0px;display:block;width:"+s+"px;height:"+o+"px";t.updateCSSText(d,h),l.appendChild(d),i.appendChild(l),n!==e.pages.length-1&&i.appendChild(document.createElement("br"))}},e.prototype.getPageWidth=function(e){for(var t=0,i=0;i<e.length;i++)t<e[i].boundingRectangle.width&&(t=e[i].boundingRectangle.width);return t},e.prototype.getPageHeight=function(e){for(var t=0,i=0;i<e.length;i++)t<e[i].boundingRectangle.height&&(t=e[i].boundingRectangle.height);return t},e.prototype.destroy=function(){window.removeEventListener("beforeunload",this.closePrintWindow),this.windowPrint=void 0},e}(),Gs=function(){function e(e){this.uniqueSectionFormat=void 0,this.columns=[],this.ownerBase=e,this.columns=[],this.removedHeaderFooters=[]}return Object.defineProperty(e.prototype,"headerDistance",{get:function(){return this.getPropertyValue("headerDistance")},set:function(e){this.setPropertyValue("headerDistance",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"footerDistance",{get:function(){return this.getPropertyValue("footerDistance")},set:function(e){this.setPropertyValue("footerDistance",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"differentFirstPage",{get:function(){return this.getPropertyValue("differentFirstPage")},set:function(e){this.setPropertyValue("differentFirstPage",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"differentOddAndEvenPages",{get:function(){return this.getPropertyValue("differentOddAndEvenPages")},set:function(e){this.setPropertyValue("differentOddAndEvenPages",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageHeight",{get:function(){return this.getPropertyValue("pageHeight")},set:function(e){this.setPropertyValue("pageHeight",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"rightMargin",{get:function(){return this.getPropertyValue("rightMargin")},set:function(e){this.setPropertyValue("rightMargin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageWidth",{get:function(){return this.getPropertyValue("pageWidth")},set:function(e){this.setPropertyValue("pageWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"leftMargin",{get:function(){return this.getPropertyValue("leftMargin")},set:function(e){this.setPropertyValue("leftMargin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bottomMargin",{get:function(){return this.getPropertyValue("bottomMargin")},set:function(e){this.setPropertyValue("bottomMargin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"topMargin",{get:function(){return this.getPropertyValue("topMargin")},set:function(e){this.setPropertyValue("topMargin",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"bidi",{get:function(){return this.getPropertyValue("bidi")},set:function(e){this.setPropertyValue("bidi",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"restartPageNumbering",{get:function(){return this.getPropertyValue("restartPageNumbering")},set:function(e){this.setPropertyValue("restartPageNumbering",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageStartingNumber",{get:function(){return this.getPropertyValue("pageStartingNumber")},set:function(e){this.setPropertyValue("pageStartingNumber",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"endnoteNumberFormat",{get:function(){return this.getPropertyValue("endnoteNumberFormat")},set:function(e){this.setPropertyValue("endnoteNumberFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"restartIndexForEndnotes",{get:function(){return this.getPropertyValue("restartIndexForEndnotes")},set:function(e){this.setPropertyValue("restartIndexForEndnotes",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"restartIndexForFootnotes",{get:function(){return this.getPropertyValue("restartIndexForFootnotes")},set:function(e){this.setPropertyValue("restartIndexForFootnotes",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"footNoteNumberFormat",{get:function(){return this.getPropertyValue("footNoteNumberFormat")},set:function(e){this.setPropertyValue("footNoteNumberFormat",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialFootNoteNumber",{get:function(){return this.getPropertyValue("initialFootNoteNumber")},set:function(e){this.setPropertyValue("initialFootNoteNumber",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"initialEndNoteNumber",{get:function(){return this.getPropertyValue("initialEndNoteNumber")},set:function(e){this.setPropertyValue("initialEndNoteNumber",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageNumberStyle",{get:function(){return this.getPropertyValue("pageNumberStyle")},set:function(e){this.setPropertyValue("pageNumberStyle",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"numberOfColumns",{get:function(){return this.getPropertyValue("numberOfColumns")},set:function(e){this.setPropertyValue("numberOfColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"equalWidth",{get:function(){return this.getPropertyValue("equalWidth")},set:function(e){this.setPropertyValue("equalWidth",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"lineBetweenColumns",{get:function(){return this.getPropertyValue("lineBetweenColumns")},set:function(e){this.setPropertyValue("lineBetweenColumns",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"breakCode",{get:function(){return this.getPropertyValue("breakCode")},set:function(e){this.setPropertyValue("breakCode",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstPageHeader",{get:function(){return this.getPropertyValue("firstPageHeader")},set:function(e){this.setPropertyValue("firstPageHeader",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"firstPageFooter",{get:function(){return this.getPropertyValue("firstPageFooter")},set:function(e){this.setPropertyValue("firstPageFooter",e)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"