cuikaidong
2025-06-12 64931370717723655d4ecec4802dcdc54ec015f5
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-67adbb3d","chunk-e021d7b4","chunk-e021d7b4"],{"0eff":function(e,t){e.exports={86:{11e4:"北京市",12e4:"天津市",13e4:"河北省",14e4:"山西省",15e4:"内蒙古自治区",21e4:"辽宁省",22e4:"吉林省",23e4:"黑龙江省",31e4:"上海市",32e4:"江苏省",33e4:"浙江省",34e4:"安徽省",35e4:"福建省",36e4:"江西省",37e4:"山东省",41e4:"河南省",42e4:"湖北省",43e4:"湖南省",44e4:"广东省",45e4:"广西壮族自治区",46e4:"海南省",5e5:"重庆市",51e4:"四川省",52e4:"贵州省",53e4:"云南省",54e4:"西藏自治区",61e4:"陕西省",62e4:"甘肃省",63e4:"青海省",64e4:"宁夏回族自治区",65e4:"新疆维吾尔自治区",71e4:"台湾省",91e4:"港澳"},11e4:{110100:"市辖区"},110100:{110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110118:"密云区",110119:"延庆区"},12e4:{120100:"市辖区"},120100:{120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120117:"宁河区",120118:"静海区",120119:"蓟州区"},13e4:{130100:"石家庄市",130200:"唐山市",130300:"秦皇岛市",130400:"邯郸市",130500:"邢台市",130600:"保定市",130700:"张家口市",130800:"承德市",130900:"沧州市",131e3:"廊坊市",131100:"衡水市",139001:"定州市",139002:"辛集市"},130100:{130102:"长安区",130104:"桥西区",130105:"新华区",130107:"井陉矿区",130108:"裕华区",130109:"藁城区",130110:"鹿泉区",130111:"栾城区",130121:"井陉县",130123:"正定县",130125:"行唐县",130126:"灵寿县",130127:"高邑县",130128:"深泽县",130129:"赞皇县",130130:"无极县",130131:"平山县",130132:"元氏县",130133:"赵县",130183:"晋州市",130184:"新乐市"},130200:{130202:"路南区",130203:"路北区",130204:"古冶区",130205:"开平区",130207:"丰南区",130208:"丰润区",130209:"曹妃甸区",130223:"滦县",130224:"滦南县",130225:"乐亭县",130227:"迁西县",130229:"玉田县",130281:"遵化市",130283:"迁安市"},130300:{130302:"海港区",130303:"山海关区",130304:"北戴河区",130306:"抚宁区",130321:"青龙满族自治县",130322:"昌黎县",130324:"卢龙县"},130400:{130402:"邯山区",130403:"丛台区",130404:"复兴区",130406:"峰峰矿区",130421:"邯郸县",130423:"临漳县",130424:"成安县",130425:"大名县",130426:"涉县",130427:"磁县",130428:"肥乡县",130429:"永年县",130430:"邱县",130431:"鸡泽县",130432:"广平县",130433:"馆陶县",130434:"魏县",130435:"曲周县",130481:"武安市"},130500:{130502:"桥东区",130503:"桥西区",130521:"邢台县",130522:"临城县",130523:"内丘县",130524:"柏乡县",130525:"隆尧县",130526:"任县",130527:"南和县",130528:"宁晋县",130529:"巨鹿县",130530:"新河县",130531:"广宗县",130532:"平乡县",130533:"威县",130534:"清河县",130535:"临西县",130581:"南宫市",130582:"沙河市"},130600:{130602:"竞秀区",130606:"莲池区",130607:"满城区",130608:"清苑区",130609:"徐水区",130623:"涞水县",130624:"阜平县",130626:"定兴县",130627:"唐县",130628:"高阳县",130629:"容城县",130630:"涞源县",130631:"望都县",130632:"安新县",130633:"易县",130634:"曲阳县",130635:"蠡县",130636:"顺平县",130637:"博野县",130638:"雄县",130681:"涿州市",130683:"安国市",130684:"高碑店市"},130700:{130702:"桥东区",130703:"桥西区",130705:"宣化区",130706:"下花园区",130708:"万全区",130709:"崇礼区",130722:"张北县",130723:"康保县",130724:"沽源县",130725:"尚义县",130726:"蔚县",130727:"阳原县",130728:"怀安县",130730:"怀来县",130731:"涿鹿县",130732:"赤城县"},130800:{130802:"双桥区",130803:"双滦区",130804:"鹰手营子矿区",130821:"承德县",130822:"兴隆县",130823:"平泉县",130824:"滦平县",130825:"隆化县",130826:"丰宁满族自治县",130827:"宽城满族自治县",130828:"围场满族蒙古族自治县"},130900:{130902:"新华区",130903:"运河区",130921:"沧县",130922:"青县",130923:"东光县",130924:"海兴县",130925:"盐山县",130926:"肃宁县",130927:"南皮县",130928:"吴桥县",130929:"献县",130930:"孟村回族自治县",130981:"泊头市",130982:"任丘市",130983:"黄骅市",130984:"河间市"},131e3:{131002:"安次区",131003:"广阳区",131022:"固安县",131023:"永清县",131024:"香河县",131025:"大城县",131026:"文安县",131028:"大厂回族自治县",131081:"霸州市",131082:"三河市"},131100:{131102:"桃城区",131103:"冀州区",131121:"枣强县",131122:"武邑县",131123:"武强县",131124:"饶阳县",131125:"安平县",131126:"故城县",131127:"景县",131128:"阜城县",131182:"深州市"},139001:{1390011:"留早镇",13900111:"邢邑镇",139001001:"南城区街道",139001002:"北城区街道",139001003:"西城区街道",139001004:"长安路街道",139001101:"清风店镇",139001102:"庞村镇",139001103:"砖路镇",139001104:"明月店镇",139001105:"叮咛店镇",139001106:"东亭镇",139001107:"大辛庄镇",139001108:"东旺镇",139001109:"高蓬镇",139001111:"李亲顾镇",139001112:"子位镇",139001113:"开元镇",139001115:"周村镇",139001116:"息冢镇",139001203:"东留春乡",139001204:"号头庄回族乡",139001205:"杨家庄乡",139001206:"大鹿庄乡",139001208:"西城乡"},139002:{1390021:"辛集镇",1390022:"天宫营乡",1390025:"辛集经济开发区",139002101:"旧城镇",139002102:"张古庄镇",139002103:"位伯镇",139002104:"新垒头镇",139002105:"新城镇",139002106:"南智邱镇",139002107:"王口镇",139002201:"前营乡",139002202:"马庄乡",139002203:"和睦井乡",139002204:"田家庄乡",139002205:"中里厢乡",139002206:"小辛庄乡"},14e4:{140100:"太原市",140200:"大同市",140300:"阳泉市",140400:"长治市",140500:"晋城市",140600:"朔州市",140700:"晋中市",140800:"运城市",140900:"忻州市",141e3:"临汾市",141100:"吕梁市"},140100:{140105:"小店区",140106:"迎泽区",140107:"杏花岭区",140108:"尖草坪区",140109:"万柏林区",140110:"晋源区",140121:"清徐县",140122:"阳曲县",140123:"娄烦县",140181:"古交市"},140200:{140202:"城区",140203:"矿区",140211:"南郊区",140212:"新荣区",140221:"阳高县",140222:"天镇县",140223:"广灵县",140224:"灵丘县",140225:"浑源县",140226:"左云县",140227:"大同县"},140300:{140302:"城区",140303:"矿区",140311:"郊区",140321:"平定县",140322:"盂县"},140400:{140402:"城区",140411:"郊区",140421:"长治县",140423:"襄垣县",140424:"屯留县",140425:"平顺县",140426:"黎城县",140427:"壶关县",140428:"长子县",140429:"武乡县",140430:"沁县",140431:"沁源县",140481:"潞城市"},140500:{140502:"城区",140521:"沁水县",140522:"阳城县",140524:"陵川县",140525:"泽州县",140581:"高平市"},140600:{140602:"朔城区",140603:"平鲁区",140621:"山阴县",140622:"应县",140623:"右玉县",140624:"怀仁县"},140700:{140702:"榆次区",140721:"榆社县",140722:"左权县",140723:"和顺县",140724:"昔阳县",140725:"寿阳县",140726:"太谷县",140727:"祁县",140728:"平遥县",140729:"灵石县",140781:"介休市"},140800:{140802:"盐湖区",140821:"临猗县",140822:"万荣县",140823:"闻喜县",140824:"稷山县",140825:"新绛县",140826:"绛县",140827:"垣曲县",140828:"夏县",140829:"平陆县",140830:"芮城县",140881:"永济市",140882:"河津市"},140900:{140902:"忻府区",140921:"定襄县",140922:"五台县",140923:"代县",140924:"繁峙县",140925:"宁武县",140926:"静乐县",140927:"神池县",140928:"五寨县",140929:"岢岚县",140930:"河曲县",140931:"保德县",140932:"偏关县",140981:"原平市"},141e3:{141002:"尧都区",141021:"曲沃县",141022:"翼城县",141023:"襄汾县",141024:"洪洞县",141025:"古县",141026:"安泽县",141027:"浮山县",141028:"吉县",141029:"乡宁县",141030:"大宁县",141031:"隰县",141032:"永和县",141033:"蒲县",141034:"汾西县",141081:"侯马市",141082:"霍州市"},141100:{141102:"离石区",141121:"文水县",141122:"交城县",141123:"兴县",141124:"临县",141125:"柳林县",141126:"石楼县",141127:"岚县",141128:"方山县",141129:"中阳县",141130:"交口县",141181:"孝义市",141182:"汾阳市"},15e4:{150100:"呼和浩特市",150200:"包头市",150300:"乌海市",150400:"赤峰市",150500:"通辽市",150600:"鄂尔多斯市",150700:"呼伦贝尔市",150800:"巴彦淖尔市",150900:"乌兰察布市",152200:"兴安盟",152500:"锡林郭勒盟",152900:"阿拉善盟"},150100:{150102:"新城区",150103:"回民区",150104:"玉泉区",150105:"赛罕区",150121:"土默特左旗",150122:"托克托县",150123:"和林格尔县",150124:"清水河县",150125:"武川县"},150200:{150202:"东河区",150203:"昆都仑区",150204:"青山区",150205:"石拐区",150206:"白云鄂博矿区",150207:"九原区",150221:"土默特右旗",150222:"固阳县",150223:"达尔罕茂明安联合旗"},150300:{150302:"海勃湾区",150303:"海南区",150304:"乌达区"},150400:{150402:"红山区",150403:"元宝山区",150404:"松山区",150421:"阿鲁科尔沁旗",150422:"巴林左旗",150423:"巴林右旗",150424:"林西县",150425:"克什克腾旗",150426:"翁牛特旗",150428:"喀喇沁旗",150429:"宁城县",150430:"敖汉旗"},150500:{150502:"科尔沁区",150521:"科尔沁左翼中旗",150522:"科尔沁左翼后旗",150523:"开鲁县",150524:"库伦旗",150525:"奈曼旗",150526:"扎鲁特旗",150581:"霍林郭勒市"},150600:{150602:"东胜区",150603:"康巴什区",150621:"达拉特旗",150622:"准格尔旗",150623:"鄂托克前旗",150624:"鄂托克旗",150625:"杭锦旗",150626:"乌审旗",150627:"伊金霍洛旗"},150700:{150702:"海拉尔区",150703:"扎赉诺尔区",150721:"阿荣旗",150722:"莫力达瓦达斡尔族自治旗",150723:"鄂伦春自治旗",150724:"鄂温克族自治旗",150725:"陈巴尔虎旗",150726:"新巴尔虎左旗",150727:"新巴尔虎右旗",150781:"满洲里市",150782:"牙克石市",150783:"扎兰屯市",150784:"额尔古纳市",150785:"根河市"},150800:{150802:"临河区",150821:"五原县",150822:"磴口县",150823:"乌拉特前旗",150824:"乌拉特中旗",150825:"乌拉特后旗",150826:"杭锦后旗"},150900:{150902:"集宁区",150921:"卓资县",150922:"化德县",150923:"商都县",150924:"兴和县",150925:"凉城县",150926:"察哈尔右翼前旗",150927:"察哈尔右翼中旗",150928:"察哈尔右翼后旗",150929:"四子王旗",150981:"丰镇市"},152200:{152201:"乌兰浩特市",152202:"阿尔山市",152221:"科尔沁右翼前旗",152222:"科尔沁右翼中旗",152223:"扎赉特旗",152224:"突泉县"},152500:{152501:"二连浩特市",152502:"锡林浩特市",152522:"阿巴嘎旗",152523:"苏尼特左旗",152524:"苏尼特右旗",152525:"东乌珠穆沁旗",152526:"西乌珠穆沁旗",152527:"太仆寺旗",152528:"镶黄旗",152529:"正镶白旗",152530:"正蓝旗",152531:"多伦县"},152900:{152921:"阿拉善左旗",152922:"阿拉善右旗",152923:"额济纳旗"},21e4:{210100:"沈阳市",210200:"大连市",210300:"鞍山市",210400:"抚顺市",210500:"本溪市",210600:"丹东市",210700:"锦州市",210800:"营口市",210900:"阜新市",211e3:"辽阳市",211100:"盘锦市",211200:"铁岭市",211300:"朝阳市",211400:"葫芦岛市"},210100:{210102:"和平区",210103:"沈河区",210104:"大东区",210105:"皇姑区",210106:"铁西区",210111:"苏家屯区",210112:"浑南区",210113:"沈北新区",210114:"于洪区",210115:"辽中区",210123:"康平县",210124:"法库县",210181:"新民市"},210200:{210202:"中山区",210203:"西岗区",210204:"沙河口区",210211:"甘井子区",210212:"旅顺口区",210213:"金州区",210214:"普兰店区",210224:"长海县",210281:"瓦房店市",210283:"庄河市"},210300:{210302:"铁东区",210303:"铁西区",210304:"立山区",210311:"千山区",210321:"台安县",210323:"岫岩满族自治县",210381:"海城市"},210400:{210402:"新抚区",210403:"东洲区",210404:"望花区",210411:"顺城区",210421:"抚顺县",210422:"新宾满族自治县",210423:"清原满族自治县"},210500:{210502:"平山区",210503:"溪湖区",210504:"明山区",210505:"南芬区",210521:"本溪满族自治县",210522:"桓仁满族自治县"},210600:{210602:"元宝区",210603:"振兴区",210604:"振安区",210624:"宽甸满族自治县",210681:"东港市",210682:"凤城市"},210700:{210702:"古塔区",210703:"凌河区",210711:"太和区",210726:"黑山县",210727:"义县",210781:"凌海市",210782:"北镇市"},210800:{210802:"站前区",210803:"西市区",210804:"鲅鱼圈区",210811:"老边区",210881:"盖州市",210882:"大石桥市"},210900:{210902:"海州区",210903:"新邱区",210904:"太平区",210905:"清河门区",210911:"细河区",210921:"阜新蒙古族自治县",210922:"彰武县"},211e3:{211002:"白塔区",211003:"文圣区",211004:"宏伟区",211005:"弓长岭区",211011:"太子河区",211021:"辽阳县",211081:"灯塔市"},211100:{211102:"双台子区",211103:"兴隆台区",211104:"大洼区",211122:"盘山县"},211200:{211202:"银州区",211204:"清河区",211221:"铁岭县",211223:"西丰县",211224:"昌图县",211281:"调兵山市",211282:"开原市"},211300:{211302:"双塔区",211303:"龙城区",211321:"朝阳县",211322:"建平县",211324:"喀喇沁左翼蒙古族自治县",211381:"北票市",211382:"凌源市"},211400:{211402:"连山区",211403:"龙港区",211404:"南票区",211421:"绥中县",211422:"建昌县",211481:"兴城市"},22e4:{220100:"长春市",220200:"吉林市",220300:"四平市",220400:"辽源市",220500:"通化市",220600:"白山市",220700:"松原市",220800:"白城市",222400:"延边朝鲜族自治州"},220100:{220102:"南关区",220103:"宽城区",220104:"朝阳区",220105:"二道区",220106:"绿园区",220112:"双阳区",220113:"九台区",220122:"农安县",220182:"榆树市",220183:"德惠市"},220200:{220202:"昌邑区",220203:"龙潭区",220204:"船营区",220211:"丰满区",220221:"永吉县",220281:"蛟河市",220282:"桦甸市",220283:"舒兰市",220284:"磐石市"},220300:{220302:"铁西区",220303:"铁东区",220322:"梨树县",220323:"伊通满族自治县",220381:"公主岭市",220382:"双辽市"},220400:{220402:"龙山区",220403:"西安区",220421:"东丰县",220422:"东辽县"},220500:{220502:"东昌区",220503:"二道江区",220521:"通化县",220523:"辉南县",220524:"柳河县",220581:"梅河口市",220582:"集安市"},220600:{220602:"浑江区",220605:"江源区",220621:"抚松县",220622:"靖宇县",220623:"长白朝鲜族自治县",220681:"临江市"},220700:{220702:"宁江区",220721:"前郭尔罗斯蒙古族自治县",220722:"长岭县",220723:"乾安县",220781:"扶余市"},220800:{220802:"洮北区",220821:"镇赉县",220822:"通榆县",220881:"洮南市",220882:"大安市"},222400:{222401:"延吉市",222402:"图们市",222403:"敦化市",222404:"珲春市",222405:"龙井市",222406:"和龙市",222424:"汪清县",222426:"安图县"},23e4:{230100:"哈尔滨市",230200:"齐齐哈尔市",230300:"鸡西市",230400:"鹤岗市",230500:"双鸭山市",230600:"大庆市",230700:"伊春市",230800:"佳木斯市",230900:"七台河市",231e3:"牡丹江市",231100:"黑河市",231200:"绥化市",232700:"大兴安岭地区"},230100:{230102:"道里区",230103:"南岗区",230104:"道外区",230108:"平房区",230109:"松北区",230110:"香坊区",230111:"呼兰区",230112:"阿城区",230113:"双城区",230123:"依兰县",230124:"方正县",230125:"宾县",230126:"巴彦县",230127:"木兰县",230128:"通河县",230129:"延寿县",230183:"尚志市",230184:"五常市"},230200:{230202:"龙沙区",230203:"建华区",230204:"铁锋区",230205:"昂昂溪区",230206:"富拉尔基区",230207:"碾子山区",230208:"梅里斯达斡尔族区",230221:"龙江县",230223:"依安县",230224:"泰来县",230225:"甘南县",230227:"富裕县",230229:"克山县",230230:"克东县",230231:"拜泉县",230281:"讷河市"},230300:{230302:"鸡冠区",230303:"恒山区",230304:"滴道区",230305:"梨树区",230306:"城子河区",230307:"麻山区",230321:"鸡东县",230381:"虎林市",230382:"密山市"},230400:{230402:"向阳区",230403:"工农区",230404:"南山区",230405:"兴安区",230406:"东山区",230407:"兴山区",230421:"萝北县",230422:"绥滨县"},230500:{230502:"尖山区",230503:"岭东区",230505:"四方台区",230506:"宝山区",230521:"集贤县",230522:"友谊县",230523:"宝清县",230524:"饶河县"},230600:{230602:"萨尔图区",230603:"龙凤区",230604:"让胡路区",230605:"红岗区",230606:"大同区",230621:"肇州县",230622:"肇源县",230623:"林甸县",230624:"杜尔伯特蒙古族自治县"},230700:{230702:"伊春区",230703:"南岔区",230704:"友好区",230705:"西林区",230706:"翠峦区",230707:"新青区",230708:"美溪区",230709:"金山屯区",230710:"五营区",230711:"乌马河区",230712:"汤旺河区",230713:"带岭区",230714:"乌伊岭区",230715:"红星区",230716:"上甘岭区",230722:"嘉荫县",230781:"铁力市"},230800:{230803:"向阳区",230804:"前进区",230805:"东风区",230811:"郊区",230822:"桦南县",230826:"桦川县",230828:"汤原县",230881:"同江市",230882:"富锦市",230883:"抚远市"},230900:{230902:"新兴区",230903:"桃山区",230904:"茄子河区",230921:"勃利县"},231e3:{231002:"东安区",231003:"阳明区",231004:"爱民区",231005:"西安区",231025:"林口县",231081:"绥芬河市",231083:"海林市",231084:"宁安市",231085:"穆棱市",231086:"东宁市"},231100:{231102:"爱辉区",231121:"嫩江县",231123:"逊克县",231124:"孙吴县",231181:"北安市",231182:"五大连池市"},231200:{231202:"北林区",231221:"望奎县",231222:"兰西县",231223:"青冈县",231224:"庆安县",231225:"明水县",231226:"绥棱县",231281:"安达市",231282:"肇东市",231283:"海伦市"},232700:{232721:"呼玛县",232722:"塔河县",232723:"漠河县"},31e4:{310100:"市辖区"},310100:{310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310151:"崇明区"},32e4:{320100:"南京市",320200:"无锡市",320300:"徐州市",320400:"常州市",320500:"苏州市",320600:"南通市",320700:"连云港市",320800:"淮安市",320900:"盐城市",321e3:"扬州市",321100:"镇江市",321200:"泰州市",321300:"宿迁市"},320100:{320102:"玄武区",320104:"秦淮区",320105:"建邺区",320106:"鼓楼区",320111:"浦口区",320113:"栖霞区",320114:"雨花台区",320115:"江宁区",320116:"六合区",320117:"溧水区",320118:"高淳区"},320200:{320205:"锡山区",320206:"惠山区",320211:"滨湖区",320213:"梁溪区",320214:"新吴区",320281:"江阴市",320282:"宜兴市"},320300:{320302:"鼓楼区",320303:"云龙区",320305:"贾汪区",320311:"泉山区",320312:"铜山区",320321:"丰县",320322:"沛县",320324:"睢宁县",320381:"新沂市",320382:"邳州市"},320400:{320402:"天宁区",320404:"钟楼区",320411:"新北区",320412:"武进区",320413:"金坛区",320481:"溧阳市"},320500:{320505:"虎丘区",320506:"吴中区",320507:"相城区",320508:"姑苏区",320509:"吴江区",320581:"常熟市",320582:"张家港市",320583:"昆山市",320585:"太仓市"},320600:{320602:"崇川区",320611:"港闸区",320612:"通州区",320621:"海安县",320623:"如东县",320681:"启东市",320682:"如皋市",320684:"海门市"},320700:{320703:"连云区",320706:"海州区",320707:"赣榆区",320722:"东海县",320723:"灌云县",320724:"灌南县"},320800:{320803:"淮安区",320804:"淮阴区",320812:"清江浦区",320813:"洪泽区",320826:"涟水县",320830:"盱眙县",320831:"金湖县"},320900:{320902:"亭湖区",320903:"盐都区",320904:"大丰区",320921:"响水县",320922:"滨海县",320923:"阜宁县",320924:"射阳县",320925:"建湖县",320981:"东台市"},321e3:{321002:"广陵区",321003:"邗江区",321012:"江都区",321023:"宝应县",321081:"仪征市",321084:"高邮市"},321100:{321102:"京口区",321111:"润州区",321112:"丹徒区",321181:"丹阳市",321182:"扬中市",321183:"句容市"},321200:{321202:"海陵区",321203:"高港区",321204:"姜堰区",321281:"兴化市",321282:"靖江市",321283:"泰兴市"},321300:{321302:"宿城区",321311:"宿豫区",321322:"沭阳县",321323:"泗阳县",321324:"泗洪县"},33e4:{330100:"杭州市",330200:"宁波市",330300:"温州市",330400:"嘉兴市",330500:"湖州市",330600:"绍兴市",330700:"金华市",330800:"衢州市",330900:"舟山市",331e3:"台州市",331100:"丽水市"},330100:{330102:"上城区",330103:"下城区",330104:"江干区",330105:"拱墅区",330106:"西湖区",330108:"滨江区",330109:"萧山区",330110:"余杭区",330111:"富阳区",330122:"桐庐县",330127:"淳安县",330182:"建德市",330185:"临安市"},330200:{330203:"海曙区",330204:"江东区",330205:"江北区",330206:"北仑区",330211:"镇海区",330212:"鄞州区",330225:"象山县",330226:"宁海县",330281:"余姚市",330282:"慈溪市",330283:"奉化市"},330300:{330302:"鹿城区",330303:"龙湾区",330304:"瓯海区",330305:"洞头区",330324:"永嘉县",330326:"平阳县",330327:"苍南县",330328:"文成县",330329:"泰顺县",330381:"瑞安市",330382:"乐清市"},330400:{330402:"南湖区",330411:"秀洲区",330421:"嘉善县",330424:"海盐县",330481:"海宁市",330482:"平湖市",330483:"桐乡市"},330500:{330502:"吴兴区",330503:"南浔区",330521:"德清县",330522:"长兴县",330523:"安吉县"},330600:{330602:"越城区",330603:"柯桥区",330604:"上虞区",330624:"新昌县",330681:"诸暨市",330683:"嵊州市"},330700:{330702:"婺城区",330703:"金东区",330723:"武义县",330726:"浦江县",330727:"磐安县",330781:"兰溪市",330782:"义乌市",330783:"东阳市",330784:"永康市"},330800:{330802:"柯城区",330803:"衢江区",330822:"常山县",330824:"开化县",330825:"龙游县",330881:"江山市"},330900:{330902:"定海区",330903:"普陀区",330921:"岱山县",330922:"嵊泗县"},331e3:{331002:"椒江区",331003:"黄岩区",331004:"路桥区",331021:"玉环县",331022:"三门县",331023:"天台县",331024:"仙居县",331081:"温岭市",331082:"临海市"},331100:{331102:"莲都区",331121:"青田县",331122:"缙云县",331123:"遂昌县",331124:"松阳县",331125:"云和县",331126:"庆元县",331127:"景宁畲族自治县",331181:"龙泉市"},34e4:{340100:"合肥市",340200:"芜湖市",340300:"蚌埠市",340400:"淮南市",340500:"马鞍山市",340600:"淮北市",340700:"铜陵市",340800:"安庆市",341e3:"黄山市",341100:"滁州市",341200:"阜阳市",341300:"宿州市",341500:"六安市",341600:"亳州市",341700:"池州市",341800:"宣城市"},340100:{340102:"瑶海区",340103:"庐阳区",340104:"蜀山区",340111:"包河区",340121:"长丰县",340122:"肥东县",340123:"肥西县",340124:"庐江县",340181:"巢湖市"},340200:{340202:"镜湖区",340203:"弋江区",340207:"鸠江区",340208:"三山区",340221:"芜湖县",340222:"繁昌县",340223:"南陵县",340225:"无为县"},340300:{340302:"龙子湖区",340303:"蚌山区",340304:"禹会区",340311:"淮上区",340321:"怀远县",340322:"五河县",340323:"固镇县"},340400:{340402:"大通区",340403:"田家庵区",340404:"谢家集区",340405:"八公山区",340406:"潘集区",340421:"凤台县",340422:"寿县"},340500:{340503:"花山区",340504:"雨山区",340506:"博望区",340521:"当涂县",340522:"含山县",340523:"和县"},340600:{340602:"杜集区",340603:"相山区",340604:"烈山区",340621:"濉溪县"},340700:{340705:"铜官区",340706:"义安区",340711:"郊区",340722:"枞阳县"},340800:{340802:"迎江区",340803:"大观区",340811:"宜秀区",340822:"怀宁县",340824:"潜山县",340825:"太湖县",340826:"宿松县",340827:"望江县",340828:"岳西县",340881:"桐城市"},341e3:{341002:"屯溪区",341003:"黄山区",341004:"徽州区",341021:"歙县",341022:"休宁县",341023:"黟县",341024:"祁门县"},341100:{341102:"琅琊区",341103:"南谯区",341122:"来安县",341124:"全椒县",341125:"定远县",341126:"凤阳县",341181:"天长市",341182:"明光市"},341200:{341202:"颍州区",341203:"颍东区",341204:"颍泉区",341221:"临泉县",341222:"太和县",341225:"阜南县",341226:"颍上县",341282:"界首市"},341300:{341302:"埇桥区",341321:"砀山县",341322:"萧县",341323:"灵璧县",341324:"泗县"},341500:{341502:"金安区",341503:"裕安区",341504:"叶集区",341522:"霍邱县",341523:"舒城县",341524:"金寨县",341525:"霍山县"},341600:{341602:"谯城区",341621:"涡阳县",341622:"蒙城县",341623:"利辛县"},341700:{341702:"贵池区",341721:"东至县",341722:"石台县",341723:"青阳县"},341800:{341802:"宣州区",341821:"郎溪县",341822:"广德县",341823:"泾县",341824:"绩溪县",341825:"旌德县",341881:"宁国市"},35e4:{350100:"福州市",350200:"厦门市",350300:"莆田市",350400:"三明市",350500:"泉州市",350600:"漳州市",350700:"南平市",350800:"龙岩市",350900:"宁德市"},350100:{350102:"鼓楼区",350103:"台江区",350104:"仓山区",350105:"马尾区",350111:"晋安区",350121:"闽侯县",350122:"连江县",350123:"罗源县",350124:"闽清县",350125:"永泰县",350128:"平潭县",350181:"福清市",350182:"长乐市"},350200:{350203:"思明区",350205:"海沧区",350206:"湖里区",350211:"集美区",350212:"同安区",350213:"翔安区"},350300:{350302:"城厢区",350303:"涵江区",350304:"荔城区",350305:"秀屿区",350322:"仙游县"},350400:{350402:"梅列区",350403:"三元区",350421:"明溪县",350423:"清流县",350424:"宁化县",350425:"大田县",350426:"尤溪县",350427:"沙县",350428:"将乐县",350429:"泰宁县",350430:"建宁县",350481:"永安市"},350500:{350502:"鲤城区",350503:"丰泽区",350504:"洛江区",350505:"泉港区",350521:"惠安县",350524:"安溪县",350525:"永春县",350526:"德化县",350527:"金门县",350581:"石狮市",350582:"晋江市",350583:"南安市"},350600:{350602:"芗城区",350603:"龙文区",350622:"云霄县",350623:"漳浦县",350624:"诏安县",350625:"长泰县",350626:"东山县",350627:"南靖县",350628:"平和县",350629:"华安县",350681:"龙海市"},350700:{350702:"延平区",350703:"建阳区",350721:"顺昌县",350722:"浦城县",350723:"光泽县",350724:"松溪县",350725:"政和县",350781:"邵武市",350782:"武夷山市",350783:"建瓯市"},350800:{350802:"新罗区",350803:"永定区",350821:"长汀县",350823:"上杭县",350824:"武平县",350825:"连城县",350881:"漳平市"},350900:{350902:"蕉城区",350921:"霞浦县",350922:"古田县",350923:"屏南县",350924:"寿宁县",350925:"周宁县",350926:"柘荣县",350981:"福安市",350982:"福鼎市"},36e4:{360100:"南昌市",360200:"景德镇市",360300:"萍乡市",360400:"九江市",360500:"新余市",360600:"鹰潭市",360700:"赣州市",360800:"吉安市",360900:"宜春市",361e3:"抚州市",361100:"上饶市"},360100:{360102:"东湖区",360103:"西湖区",360104:"青云谱区",360105:"湾里区",360111:"青山湖区",360112:"新建区",360121:"南昌县",360123:"安义县",360124:"进贤县"},360200:{360202:"昌江区",360203:"珠山区",360222:"浮梁县",360281:"乐平市"},360300:{360302:"安源区",360313:"湘东区",360321:"莲花县",360322:"上栗县",360323:"芦溪县"},360400:{360402:"濂溪区",360403:"浔阳区",360421:"九江县",360423:"武宁县",360424:"修水县",360425:"永修县",360426:"德安县",360428:"都昌县",360429:"湖口县",360430:"彭泽县",360481:"瑞昌市",360482:"共青城市",360483:"庐山市"},360500:{360502:"渝水区",360521:"分宜县"},360600:{360602:"月湖区",360622:"余江县",360681:"贵溪市"},360700:{360702:"章贡区",360703:"南康区",360721:"赣县",360722:"信丰县",360723:"大余县",360724:"上犹县",360725:"崇义县",360726:"安远县",360727:"龙南县",360728:"定南县",360729:"全南县",360730:"宁都县",360731:"于都县",360732:"兴国县",360733:"会昌县",360734:"寻乌县",360735:"石城县",360781:"瑞金市"},360800:{360802:"吉州区",360803:"青原区",360821:"吉安县",360822:"吉水县",360823:"峡江县",360824:"新干县",360825:"永丰县",360826:"泰和县",360827:"遂川县",360828:"万安县",360829:"安福县",360830:"永新县",360881:"井冈山市"},360900:{360902:"袁州区",360921:"奉新县",360922:"万载县",360923:"上高县",360924:"宜丰县",360925:"靖安县",360926:"铜鼓县",360981:"丰城市",360982:"樟树市",360983:"高安市"},361e3:{361002:"临川区",361021:"南城县",361022:"黎川县",361023:"南丰县",361024:"崇仁县",361025:"乐安县",361026:"宜黄县",361027:"金溪县",361028:"资溪县",361029:"东乡县",361030:"广昌县"},361100:{361102:"信州区",361103:"广丰区",361121:"上饶县",361123:"玉山县",361124:"铅山县",361125:"横峰县",361126:"弋阳县",361127:"余干县",361128:"鄱阳县",361129:"万年县",361130:"婺源县",361181:"德兴市"},37e4:{370100:"济南市",370200:"青岛市",370300:"淄博市",370400:"枣庄市",370500:"东营市",370600:"烟台市",370700:"潍坊市",370800:"济宁市",370900:"泰安市",371e3:"威海市",371100:"日照市",371200:"莱芜市",371300:"临沂市",371400:"德州市",371500:"聊城市",371600:"滨州市",371700:"菏泽市"},370100:{370102:"历下区",370103:"市中区",370104:"槐荫区",370105:"天桥区",370112:"历城区",370113:"长清区",370124:"平阴县",370125:"济阳县",370126:"商河县",370181:"章丘市"},370200:{370202:"市南区",370203:"市北区",370211:"黄岛区",370212:"崂山区",370213:"李沧区",370214:"城阳区",370281:"胶州市",370282:"即墨市",370283:"平度市",370285:"莱西市"},370300:{370302:"淄川区",370303:"张店区",370304:"博山区",370305:"临淄区",370306:"周村区",370321:"桓台县",370322:"高青县",370323:"沂源县"},370400:{370402:"市中区",370403:"薛城区",370404:"峄城区",370405:"台儿庄区",370406:"山亭区",370481:"滕州市"},370500:{370502:"东营区",370503:"河口区",370505:"垦利区",370522:"利津县",370523:"广饶县"},370600:{370602:"芝罘区",370611:"福山区",370612:"牟平区",370613:"莱山区",370634:"长岛县",370681:"龙口市",370682:"莱阳市",370683:"莱州市",370684:"蓬莱市",370685:"招远市",370686:"栖霞市",370687:"海阳市"},370700:{370702:"潍城区",370703:"寒亭区",370704:"坊子区",370705:"奎文区",370724:"临朐县",370725:"昌乐县",370781:"青州市",370782:"诸城市",370783:"寿光市",370784:"安丘市",370785:"高密市",370786:"昌邑市"},370800:{370811:"任城区",370812:"兖州区",370826:"微山县",370827:"鱼台县",370828:"金乡县",370829:"嘉祥县",370830:"汶上县",370831:"泗水县",370832:"梁山县",370881:"曲阜市",370883:"邹城市"},370900:{370902:"泰山区",370911:"岱岳区",370921:"宁阳县",370923:"东平县",370982:"新泰市",370983:"肥城市"},371e3:{371002:"环翠区",371003:"文登区",371082:"荣成市",371083:"乳山市"},371100:{371102:"东港区",371103:"岚山区",371121:"五莲县",371122:"莒县"},371200:{371202:"莱城区",371203:"钢城区"},371300:{371302:"兰山区",371311:"罗庄区",371312:"河东区",371321:"沂南县",371322:"郯城县",371323:"沂水县",371324:"兰陵县",371325:"费县",371326:"平邑县",371327:"莒南县",371328:"蒙阴县",371329:"临沭县"},371400:{371402:"德城区",371403:"陵城区",371422:"宁津县",371423:"庆云县",371424:"临邑县",371425:"齐河县",371426:"平原县",371427:"夏津县",371428:"武城县",371481:"乐陵市",371482:"禹城市"},371500:{371502:"东昌府区",371521:"阳谷县",371522:"莘县",371523:"茌平县",371524:"东阿县",371525:"冠县",371526:"高唐县",371581:"临清市"},371600:{371602:"滨城区",371603:"沾化区",371621:"惠民县",371622:"阳信县",371623:"无棣县",371625:"博兴县",371626:"邹平县"},371700:{371702:"牡丹区",371703:"定陶区",371721:"曹县",371722:"单县",371723:"成武县",371724:"巨野县",371725:"郓城县",371726:"鄄城县",371728:"东明县"},41e4:{410100:"郑州市",410200:"开封市",410300:"洛阳市",410400:"平顶山市",410500:"安阳市",410600:"鹤壁市",410700:"新乡市",410800:"焦作市",410900:"濮阳市",411e3:"许昌市",411100:"漯河市",411200:"三门峡市",411300:"南阳市",411400:"商丘市",411500:"信阳市",411600:"周口市",411700:"驻马店市",419001:"济源市"},410100:{410102:"中原区",410103:"二七区",410104:"管城回族区",410105:"金水区",410106:"上街区",410108:"惠济区",410122:"中牟县",410181:"巩义市",410182:"荥阳市",410183:"新密市",410184:"新郑市",410185:"登封市"},410200:{410202:"龙亭区",410203:"顺河回族区",410204:"鼓楼区",410205:"禹王台区",410211:"金明区",410212:"祥符区",410221:"杞县",410222:"通许县",410223:"尉氏县",410225:"兰考县"},410300:{410302:"老城区",410303:"西工区",410304:"瀍河回族区",410305:"涧西区",410306:"吉利区",410311:"洛龙区",410322:"孟津县",410323:"新安县",410324:"栾川县",410325:"嵩县",410326:"汝阳县",410327:"宜阳县",410328:"洛宁县",410329:"伊川县",410381:"偃师市"},410400:{410402:"新华区",410403:"卫东区",410404:"石龙区",410411:"湛河区",410421:"宝丰县",410422:"叶县",410423:"鲁山县",410425:"郏县",410481:"舞钢市",410482:"汝州市"},410500:{410502:"文峰区",410503:"北关区",410505:"殷都区",410506:"龙安区",410522:"安阳县",410523:"汤阴县",410526:"滑县",410527:"内黄县",410581:"林州市"},410600:{410602:"鹤山区",410603:"山城区",410611:"淇滨区",410621:"浚县",410622:"淇县"},410700:{410702:"红旗区",410703:"卫滨区",410704:"凤泉区",410711:"牧野区",410721:"新乡县",410724:"获嘉县",410725:"原阳县",410726:"延津县",410727:"封丘县",410728:"长垣县",410781:"卫辉市",410782:"辉县市"},410800:{410802:"解放区",410803:"中站区",410804:"马村区",410811:"山阳区",410821:"修武县",410822:"博爱县",410823:"武陟县",410825:"温县",410882:"沁阳市",410883:"孟州市"},410900:{410902:"华龙区",410922:"清丰县",410923:"南乐县",410926:"范县",410927:"台前县",410928:"濮阳县"},411e3:{411002:"魏都区",411023:"许昌县",411024:"鄢陵县",411025:"襄城县",411081:"禹州市",411082:"长葛市"},411100:{411102:"源汇区",411103:"郾城区",411104:"召陵区",411121:"舞阳县",411122:"临颍县"},411200:{411202:"湖滨区",411203:"陕州区",411221:"渑池县",411224:"卢氏县",411281:"义马市",411282:"灵宝市"},411300:{411302:"宛城区",411303:"卧龙区",411321:"南召县",411322:"方城县",411323:"西峡县",411324:"镇平县",411325:"内乡县",411326:"淅川县",411327:"社旗县",411328:"唐河县",411329:"新野县",411330:"桐柏县",411381:"邓州市"},411400:{411402:"梁园区",411403:"睢阳区",411421:"民权县",411422:"睢县",411423:"宁陵县",411424:"柘城县",411425:"虞城县",411426:"夏邑县",411481:"永城市"},411500:{411502:"浉河区",411503:"平桥区",411521:"罗山县",411522:"光山县",411523:"新县",411524:"商城县",411525:"固始县",411526:"潢川县",411527:"淮滨县",411528:"息县"},411600:{411602:"川汇区",411621:"扶沟县",411622:"西华县",411623:"商水县",411624:"沈丘县",411625:"郸城县",411626:"淮阳县",411627:"太康县",411628:"鹿邑县",411681:"项城市"},411700:{411702:"驿城区",411721:"西平县",411722:"上蔡县",411723:"平舆县",411724:"正阳县",411725:"确山县",411726:"泌阳县",411727:"汝南县",411728:"遂平县",411729:"新蔡县"},419001:{4190011:"济源市克井镇",41900111:"济源市下冶镇",419001001:"济源市沁园街道",419001002:"济源市济水街道",419001003:"济源市北海街道",419001004:"济源市天坛街道",419001005:"济源市玉泉街道",419001101:"济源市五龙口镇",419001102:"济源市轵城镇",419001103:"济源市承留镇",419001104:"济源市邵原镇",419001105:"济源市坡头镇",419001106:"济源市梨林镇",419001107:"济源市大峪镇",419001108:"济源市思礼镇",419001109:"济源市王屋镇"},42e4:{420100:"武汉市",420200:"黄石市",420300:"十堰市",420500:"宜昌市",420600:"襄阳市",420700:"鄂州市",420800:"荆门市",420900:"孝感市",421e3:"荆州市",421100:"黄冈市",421200:"咸宁市",421300:"随州市",422800:"恩施土家族苗族自治州",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区"},420100:{420102:"江岸区",420103:"江汉区",420104:"硚口区",420105:"汉阳区",420106:"武昌区",420107:"青山区",420111:"洪山区",420112:"东西湖区",420113:"汉南区",420114:"蔡甸区",420115:"江夏区",420116:"黄陂区",420117:"新洲区"},420200:{420202:"黄石港区",420203:"西塞山区",420204:"下陆区",420205:"铁山区",420222:"阳新县",420281:"大冶市"},420300:{420302:"茅箭区",420303:"张湾区",420304:"郧阳区",420322:"郧西县",420323:"竹山县",420324:"竹溪县",420325:"房县",420381:"丹江口市"},420500:{420502:"西陵区",420503:"伍家岗区",420504:"点军区",420505:"猇亭区",420506:"夷陵区",420525:"远安县",420526:"兴山县",420527:"秭归县",420528:"长阳土家族自治县",420529:"五峰土家族自治县",420581:"宜都市",420582:"当阳市",420583:"枝江市"},420600:{420602:"襄城区",420606:"樊城区",420607:"襄州区",420624:"南漳县",420625:"谷城县",420626:"保康县",420682:"老河口市",420683:"枣阳市",420684:"宜城市"},420700:{420702:"梁子湖区",420703:"华容区",420704:"鄂城区"},420800:{420802:"东宝区",420804:"掇刀区",420821:"京山县",420822:"沙洋县",420881:"钟祥市"},420900:{420902:"孝南区",420921:"孝昌县",420922:"大悟县",420923:"云梦县",420981:"应城市",420982:"安陆市",420984:"汉川市"},421e3:{421002:"沙市区",421003:"荆州区",421022:"公安县",421023:"监利县",421024:"江陵县",421081:"石首市",421083:"洪湖市",421087:"松滋市"},421100:{421102:"黄州区",421121:"团风县",421122:"红安县",421123:"罗田县",421124:"英山县",421125:"浠水县",421126:"蕲春县",421127:"黄梅县",421181:"麻城市",421182:"武穴市"},421200:{421202:"咸安区",421221:"嘉鱼县",421222:"通城县",421223:"崇阳县",421224:"通山县",421281:"赤壁市"},421300:{421303:"曾都区",421321:"随县",421381:"广水市"},422800:{422801:"恩施市",422802:"利川市",422822:"建始县",422823:"巴东县",422825:"宣恩县",422826:"咸丰县",422827:"来凤县",422828:"鹤峰县"},429004:{4290041:"郑场镇",4290044:"工业园区",42900411:"张沟镇",429004001:"沙嘴街道",429004002:"干河街道",429004003:"龙华山",429004101:"毛嘴镇",429004102:"豆河镇",429004103:"三伏潭镇",429004104:"胡场镇",429004105:"长倘口镇",429004106:"西流河镇",429004107:"沙湖镇",429004108:"杨林尾镇",429004109:"彭场镇",429004111:"郭河镇",429004112:"沔城回族镇",429004113:"通海口镇",429004114:"陈场镇",429004401:"九合垸原种场",429004402:"沙湖原种场",429004404:"五湖渔场",429004405:"赵西垸林场",429004407:"畜禽良种场",429004408:"排湖风景区"},429005:{4290051:"竹根滩镇",4290054:"江汉石油管理局",42900545:"周矶管理区",429005001:"园林",429005002:"杨市",429005003:"周矶",429005004:"广华",429005005:"泰丰",429005006:"高场",429005101:"渔洋镇",429005102:"王场镇",429005103:"高石碑镇",429005104:"熊口镇",429005105:"老新镇",429005106:"浩口镇",429005107:"积玉口镇",429005108:"张金镇",429005109:"龙湾镇",429005401:"潜江经济开发区",429005451:"后湖管理区",429005452:"熊口管理区",429005453:"总口管理区",429005454:"白鹭湖管理区",429005455:"运粮湖管理区",429005457:"浩口原种场"},429006:{4290061:"多宝镇",42900611:"麻洋镇",42900612:"石河镇",42900645:"蒋湖农场",429006001:"竟陵街道",429006002:"侨乡街道开发区",429006003:"杨林街道",429006101:"拖市镇",429006102:"张港镇",429006103:"蒋场镇",429006104:"汪场镇",429006105:"渔薪镇",429006106:"黄潭镇",429006107:"岳口镇",429006108:"横林镇",429006109:"彭市镇",429006111:"多祥镇",429006112:"干驿镇",429006113:"马湾镇",429006114:"卢市镇",429006115:"小板镇",429006116:"九真镇",429006118:"皂市镇",429006119:"胡市镇",429006121:"佛子山镇",429006201:"净潭乡",429006451:"白茅湖农场",429006452:"沉湖管委会"},429021:{4290211:"松柏镇",4290212:"宋洛乡",429021101:"阳日镇",429021102:"木鱼镇",429021103:"红坪镇",429021104:"新华镇",429021105:"九湖镇",429021202:"下谷坪土家族乡"},43e4:{430100:"长沙市",430200:"株洲市",430300:"湘潭市",430400:"衡阳市",430500:"邵阳市",430600:"岳阳市",430700:"常德市",430800:"张家界市",430900:"益阳市",431e3:"郴州市",431100:"永州市",431200:"怀化市",431300:"娄底市",433100:"湘西土家族苗族自治州"},430100:{430102:"芙蓉区",430103:"天心区",430104:"岳麓区",430105:"开福区",430111:"雨花区",430112:"望城区",430121:"长沙县",430124:"宁乡县",430181:"浏阳市"},430200:{430202:"荷塘区",430203:"芦淞区",430204:"石峰区",430211:"天元区",430221:"株洲县",430223:"攸县",430224:"茶陵县",430225:"炎陵县",430281:"醴陵市"},430300:{430302:"雨湖区",430304:"岳塘区",430321:"湘潭县",430381:"湘乡市",430382:"韶山市"},430400:{430405:"珠晖区",430406:"雁峰区",430407:"石鼓区",430408:"蒸湘区",430412:"南岳区",430421:"衡阳县",430422:"衡南县",430423:"衡山县",430424:"衡东县",430426:"祁东县",430481:"耒阳市",430482:"常宁市"},430500:{430502:"双清区",430503:"大祥区",430511:"北塔区",430521:"邵东县",430522:"新邵县",430523:"邵阳县",430524:"隆回县",430525:"洞口县",430527:"绥宁县",430528:"新宁县",430529:"城步苗族自治县",430581:"武冈市"},430600:{430602:"岳阳楼区",430603:"云溪区",430611:"君山区",430621:"岳阳县",430623:"华容县",430624:"湘阴县",430626:"平江县",430681:"汨罗市",430682:"临湘市"},430700:{430702:"武陵区",430703:"鼎城区",430721:"安乡县",430722:"汉寿县",430723:"澧县",430724:"临澧县",430725:"桃源县",430726:"石门县",430781:"津市市"},430800:{430802:"永定区",430811:"武陵源区",430821:"慈利县",430822:"桑植县"},430900:{430902:"资阳区",430903:"赫山区",430921:"南县",430922:"桃江县",430923:"安化县",430981:"沅江市"},431e3:{431002:"北湖区",431003:"苏仙区",431021:"桂阳县",431022:"宜章县",431023:"永兴县",431024:"嘉禾县",431025:"临武县",431026:"汝城县",431027:"桂东县",431028:"安仁县",431081:"资兴市"},431100:{431102:"零陵区",431103:"冷水滩区",431121:"祁阳县",431122:"东安县",431123:"双牌县",431124:"道县",431125:"江永县",431126:"宁远县",431127:"蓝山县",431128:"新田县",431129:"江华瑶族自治县"},431200:{431202:"鹤城区",431221:"中方县",431222:"沅陵县",431223:"辰溪县",431224:"溆浦县",431225:"会同县",431226:"麻阳苗族自治县",431227:"新晃侗族自治县",431228:"芷江侗族自治县",431229:"靖州苗族侗族自治县",431230:"通道侗族自治县",431281:"洪江市"},431300:{431302:"娄星区",431321:"双峰县",431322:"新化县",431381:"冷水江市",431382:"涟源市"},433100:{433101:"吉首市",433122:"泸溪县",433123:"凤凰县",433124:"花垣县",433125:"保靖县",433126:"古丈县",433127:"永顺县",433130:"龙山县"},44e4:{440100:"广州市",440200:"韶关市",440300:"深圳市",440400:"珠海市",440500:"汕头市",440600:"佛山市",440700:"江门市",440800:"湛江市",440900:"茂名市",441200:"肇庆市",441300:"惠州市",441400:"梅州市",441500:"汕尾市",441600:"河源市",441700:"阳江市",441800:"清远市",441900:"东莞市",442e3:"中山市",445100:"潮州市",445200:"揭阳市",445300:"云浮市"},440100:{440103:"荔湾区",440104:"越秀区",440105:"海珠区",440106:"天河区",440111:"白云区",440112:"黄埔区",440113:"番禺区",440114:"花都区",440115:"南沙区",440117:"从化区",440118:"增城区"},440200:{440203:"武江区",440204:"浈江区",440205:"曲江区",440222:"始兴县",440224:"仁化县",440229:"翁源县",440232:"乳源瑶族自治县",440233:"新丰县",440281:"乐昌市",440282:"南雄市"},440300:{440303:"罗湖区",440304:"福田区",440305:"南山区",440306:"宝安区",440307:"龙岗区",440308:"盐田区"},440400:{440402:"香洲区",440403:"斗门区",440404:"金湾区"},440500:{440507:"龙湖区",440511:"金平区",440512:"濠江区",440513:"潮阳区",440514:"潮南区",440515:"澄海区",440523:"南澳县"},440600:{440604:"禅城区",440605:"南海区",440606:"顺德区",440607:"三水区",440608:"高明区"},440700:{440703:"蓬江区",440704:"江海区",440705:"新会区",440781:"台山市",440783:"开平市",440784:"鹤山市",440785:"恩平市"},440800:{440802:"赤坎区",440803:"霞山区",440804:"坡头区",440811:"麻章区",440823:"遂溪县",440825:"徐闻县",440881:"廉江市",440882:"雷州市",440883:"吴川市"},440900:{440902:"茂南区",440904:"电白区",440981:"高州市",440982:"化州市",440983:"信宜市"},441200:{441202:"端州区",441203:"鼎湖区",441204:"高要区",441223:"广宁县",441224:"怀集县",441225:"封开县",441226:"德庆县",441284:"四会市"},441300:{441302:"惠城区",441303:"惠阳区",441322:"博罗县",441323:"惠东县",441324:"龙门县"},441400:{441402:"梅江区",441403:"梅县区",441422:"大埔县",441423:"丰顺县",441424:"五华县",441426:"平远县",441427:"蕉岭县",441481:"兴宁市"},441500:{441502:"城区",441521:"海丰县",441523:"陆河县",441581:"陆丰市"},441600:{441602:"源城区",441621:"紫金县",441622:"龙川县",441623:"连平县",441624:"和平县",441625:"东源县"},441700:{441702:"江城区",441704:"阳东区",441721:"阳西县",441781:"阳春市"},441800:{441802:"清城区",441803:"清新区",441821:"佛冈县",441823:"阳山县",441825:"连山壮族瑶族自治县",441826:"连南瑶族自治县",441881:"英德市",441882:"连州市"},441900:{441900003:"东城街道",441900004:"南城街道",441900005:"万江街道",441900006:"莞城街道",441900101:"石碣镇",441900102:"石龙镇",441900103:"茶山镇",441900104:"石排镇",441900105:"企石镇",441900106:"横沥镇",441900107:"桥头镇",441900108:"谢岗镇",441900109:"东坑镇",441900110:"常平镇",441900111:"寮步镇",441900112:"樟木头镇",441900113:"大朗镇",441900114:"黄江镇",441900115:"清溪镇",441900116:"塘厦镇",441900117:"凤岗镇",441900118:"大岭山镇",441900119:"长安镇",441900121:"虎门镇",441900122:"厚街镇",441900123:"沙田镇",441900124:"道滘镇",441900125:"洪梅镇",441900126:"麻涌镇",441900127:"望牛墩镇",441900128:"中堂镇",441900129:"高埗镇",441900401:"松山湖管委会",441900402:"虎门港管委会",441900403:"东莞生态园"},442e3:{442000001:"石岐区街道",442000002:"东区街道",442000003:"火炬开发区街道",442000004:"西区街道",442000005:"南区街道",442000006:"五桂山街道",442000100:"小榄镇",442000101:"黄圃镇",442000102:"民众镇",442000103:"东凤镇",442000104:"东升镇",442000105:"古镇镇",442000106:"沙溪镇",442000107:"坦洲镇",442000108:"港口镇",442000109:"三角镇",442000110:"横栏镇",442000111:"南头镇",442000112:"阜沙镇",442000113:"南朗镇",442000114:"三乡镇",442000115:"板芙镇",442000116:"大涌镇",442000117:"神湾镇"},445100:{445102:"湘桥区",445103:"潮安区",445122:"饶平县"},445200:{445202:"榕城区",445203:"揭东区",445222:"揭西县",445224:"惠来县",445281:"普宁市"},445300:{445302:"云城区",445303:"云安区",445321:"新兴县",445322:"郁南县",445381:"罗定市"},45e4:{450100:"南宁市",450200:"柳州市",450300:"桂林市",450400:"梧州市",450500:"北海市",450600:"防城港市",450700:"钦州市",450800:"贵港市",450900:"玉林市",451e3:"百色市",451100:"贺州市",451200:"河池市",451300:"来宾市",451400:"崇左市"},450100:{450102:"兴宁区",450103:"青秀区",450105:"江南区",450107:"西乡塘区",450108:"良庆区",450109:"邕宁区",450110:"武鸣区",450123:"隆安县",450124:"马山县",450125:"上林县",450126:"宾阳县",450127:"横县"},450200:{450202:"城中区",450203:"鱼峰区",450204:"柳南区",450205:"柳北区",450206:"柳江区",450222:"柳城县",450223:"鹿寨县",450224:"融安县",450225:"融水苗族自治县",450226:"三江侗族自治县"},450300:{450302:"秀峰区",450303:"叠彩区",450304:"象山区",450305:"七星区",450311:"雁山区",450312:"临桂区",450321:"阳朔县",450323:"灵川县",450324:"全州县",450325:"兴安县",450326:"永福县",450327:"灌阳县",450328:"龙胜各族自治县",450329:"资源县",450330:"平乐县",450331:"荔浦县",450332:"恭城瑶族自治县"},450400:{450403:"万秀区",450405:"长洲区",450406:"龙圩区",450421:"苍梧县",450422:"藤县",450423:"蒙山县",450481:"岑溪市"},450500:{450502:"海城区",450503:"银海区",450512:"铁山港区",450521:"合浦县"},450600:{450602:"港口区",450603:"防城区",450621:"上思县",450681:"东兴市"},450700:{450702:"钦南区",450703:"钦北区",450721:"灵山县",450722:"浦北县"},450800:{450802:"港北区",450803:"港南区",450804:"覃塘区",450821:"平南县",450881:"桂平市"},450900:{450902:"玉州区",450903:"福绵区",450921:"容县",450922:"陆川县",450923:"博白县",450924:"兴业县",450981:"北流市"},451e3:{451002:"右江区",451021:"田阳县",451022:"田东县",451023:"平果县",451024:"德保县",451026:"那坡县",451027:"凌云县",451028:"乐业县",451029:"田林县",451030:"西林县",451031:"隆林各族自治县",451081:"靖西市"},451100:{451102:"八步区",451103:"平桂区",451121:"昭平县",451122:"钟山县",451123:"富川瑶族自治县"},451200:{451202:"金城江区",451221:"南丹县",451222:"天峨县",451223:"凤山县",451224:"东兰县",451225:"罗城仫佬族自治县",451226:"环江毛南族自治县",451227:"巴马瑶族自治县",451228:"都安瑶族自治县",451229:"大化瑶族自治县",451281:"宜州市"},451300:{451302:"兴宾区",451321:"忻城县",451322:"象州县",451323:"武宣县",451324:"金秀瑶族自治县",451381:"合山市"},451400:{451402:"江州区",451421:"扶绥县",451422:"宁明县",451423:"龙州县",451424:"大新县",451425:"天等县",451481:"凭祥市"},46e4:{460100:"海口市",460200:"三亚市",460300:"三沙市",460400:"儋州市",469001:"五指山市",469002:"琼海市",469005:"文昌市",469006:"万宁市",469007:"东方市",469021:"定安县",469022:"屯昌县",469023:"澄迈县",469024:"临高县",469025:"白沙黎族自治县",469026:"昌江黎族自治县",469027:"乐东黎族自治县",469028:"陵水黎族自治县",469029:"保亭黎族苗族自治县",469030:"琼中黎族苗族自治县"},460100:{460105:"秀英区",460106:"龙华区",460107:"琼山区",460108:"美兰区"},460200:{460202:"海棠区",460203:"吉阳区",460204:"天涯区",460205:"崖州区"},460300:{460321:"西沙群岛",460322:"南沙群岛",460323:"中沙群岛的岛礁及其海域"},460400:{4604001:"那大镇",4604004:"国营西培农场",4604005:"华南热作学院",46040011:"三都镇",460400101:"和庆镇",460400102:"南丰镇",460400103:"大成镇",460400104:"雅星镇",460400105:"兰洋镇",460400106:"光村镇",460400107:"木棠镇",460400108:"海头镇",460400109:"峨蔓镇",460400111:"王五镇",460400112:"白马井镇",460400113:"中和镇",460400114:"排浦镇",460400115:"东成镇",460400116:"新州镇",460400404:"国营西联农场",460400405:"国营蓝洋农场",460400407:"国营八一农场",460400499:"洋浦经济开发区"},469001:{4690011:"通什镇",4690012:"畅好乡",4690014:"畅好农场",469001101:"南圣镇",469001102:"毛阳镇",469001103:"番阳镇",469001201:"毛道乡",469001202:"水满乡"},469002:{4690021:"嘉积镇",4690024:"国营东太农场",4690025:"彬村山华侨农场",46900211:"大路镇",469002101:"万泉镇",469002102:"石壁镇",469002103:"中原镇",469002104:"博鳌镇",469002105:"阳江镇",469002106:"龙江镇",469002107:"潭门镇",469002108:"塔洋镇",469002109:"长坡镇",469002111:"会山镇",469002402:"国营东红农场",469002403:"国营东升农场"},469005:{4690051:"文城镇",4690054:"国营东路农场",46900511:"昌洒镇",469005101:"重兴镇",469005102:"蓬莱镇",469005103:"会文镇",469005104:"东路镇",469005105:"潭牛镇",469005106:"东阁镇",469005107:"文教镇",469005108:"东郊镇",469005109:"龙楼镇",469005111:"翁田镇",469005112:"抱罗镇",469005113:"冯坡镇",469005114:"锦山镇",469005115:"铺前镇",469005116:"公坡镇",469005401:"国营南阳农场",469005402:"国营罗豆农场"},469006:{4690061:"万城镇",4690064:"国营东兴农场",4690065:"兴隆华侨农场",46900611:"南桥镇",469006101:"龙滚镇",469006102:"和乐镇",469006103:"后安镇",469006104:"大茂镇",469006105:"东澳镇",469006106:"礼纪镇",469006107:"长丰镇",469006108:"山根镇",469006109:"北大镇",469006111:"三更罗镇",469006401:"国营东和农场",469006404:"国营新中农场",469006501:"地方国营六连林场"},469007:{4690071:"八所镇",4690072:"天安乡",4690074:"国营广坝农场",4690075:"东方华侨农场",469007101:"东河镇",469007102:"大田镇",469007103:"感城镇",469007104:"板桥镇",469007105:"三家镇",469007106:"四更镇",469007107:"新龙镇",469007201:"江边乡"},469021:{4690211:"定城镇",4690214:"国营中瑞农场",469021101:"新竹镇",469021102:"龙湖镇",469021103:"黄竹镇",469021104:"雷鸣镇",469021105:"龙门镇",469021106:"龙河镇",469021107:"岭口镇",469021108:"翰林镇",469021109:"富文镇",469021401:"国营南海农场",469021402:"国营金鸡岭农场"},469022:{4690221:"屯城镇",4690224:"国营中建农场",469022101:"新兴镇",469022102:"枫木镇",469022103:"乌坡镇",469022104:"南吕镇",469022105:"南坤镇",469022106:"坡心镇",469022107:"西昌镇",469022401:"国营中坤农场"},469023:{4690231:"金江镇",4690234:"国营红光农场",46902311:"大丰镇",469023101:"老城镇",469023102:"瑞溪镇",469023103:"永发镇",469023104:"加乐镇",469023105:"文儒镇",469023106:"中兴镇",469023107:"仁兴镇",469023108:"福山镇",469023109:"桥头镇",469023402:"国营西达农场",469023405:"国营金安农场"},469024:{4690241:"临城镇",4690244:"国营红华农场",469024101:"波莲镇",469024102:"东英镇",469024103:"博厚镇",469024104:"皇桐镇",469024105:"多文镇",469024106:"和舍镇",469024107:"南宝镇",469024108:"新盈镇",469024109:"调楼镇",469024401:"国营加来农场"},469025:{4690251:"牙叉镇",4690252:"细水乡",469025101:"七坊镇",469025102:"邦溪镇",469025103:"打安镇",469025201:"元门乡",469025202:"南开乡",469025203:"阜龙乡",469025204:"青松乡",469025205:"金波乡",469025206:"荣邦乡",469025401:"国营白沙农场",469025404:"国营龙江农场",469025408:"国营邦溪农场"},469026:{4690261:"石碌镇",4690262:"王下乡",4690265:"国营霸王岭林场",469026101:"叉河镇",469026102:"十月田镇",469026103:"乌烈镇",469026104:"昌化镇",469026105:"海尾镇",469026106:"七叉镇",469026401:"国营红林农场",469026501:"海南矿业联合有限公司"},469027:{4690271:"抱由镇",4690275:"国营尖峰岭林业公司",46902711:"莺歌海镇",469027101:"万冲镇",469027102:"大安镇",469027103:"志仲镇",469027104:"千家镇",469027105:"九所镇",469027106:"利国镇",469027107:"黄流镇",469027108:"佛罗镇",469027109:"尖峰镇",469027401:"国营山荣农场",469027402:"国营乐光农场",469027405:"国营保国农场",469027501:"国营莺歌海盐场"},469028:{4690281:"椰林镇",4690282:"提蒙乡",4690284:"国营岭门农场",4690285:"国营吊罗山林业公司",469028101:"光坡镇",469028102:"三才镇",469028103:"英州镇",469028104:"隆广镇",469028105:"文罗镇",469028106:"本号镇",469028107:"新村镇",469028108:"黎安镇",469028201:"群英乡",469028401:"国营南平农场"},469029:{4690291:"保城镇",4690292:"六弓乡",469029101:"什玲镇",469029102:"加茂镇",469029103:"响水镇",469029104:"新政镇",469029105:"三道镇",469029201:"南林乡",469029202:"毛感乡",469029401:"国营新星农场",469029402:"海南保亭热带作物研究所",469029403:"国营金江农场",469029405:"国营三道农场"},469030:{4690301:"营根镇",4690302:"吊罗山乡",4690305:"海南黎母山省级自然保护区管理站",469030101:"湾岭镇",469030102:"黎母山镇",469030103:"和平镇",469030104:"长征镇",469030105:"红毛镇",469030106:"中平镇",469030201:"上安乡",469030202:"什运乡",469030402:"国营阳江农场",469030403:"国营乌石农场",469030406:"国营加钗农场",469030407:"国营长征农场"},5e5:{500100:"市辖区",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县"},500100:{500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"綦江区",500111:"大足区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500116:"江津区",500117:"合川区",500118:"永川区",500119:"南川区",500120:"璧山区",500151:"铜梁区",500152:"潼南区",500153:"荣昌区",500154:"开州区"},500228:{5002282:"安胜乡",5002284:"梁平县农场",50022811:"聚奎镇",50022812:"合兴镇",500228001:"梁平县梁山街道",500228002:"梁平县双桂街道",500228101:"仁贤镇",500228102:"礼让镇",500228103:"云龙镇",500228104:"屏锦镇",500228106:"袁驿镇",500228107:"新盛镇",500228108:"福禄镇",500228109:"金带镇",500228111:"明达镇",500228112:"荫平镇",500228113:"和林镇",500228114:"回龙镇",500228115:"碧山镇",500228116:"虎城镇",500228117:"七星镇",500228118:"龙门镇",500228119:"文化镇",500228121:"石安镇",500228122:"柏家镇",500228123:"大观镇",500228124:"竹山镇",500228125:"蟠龙镇",500228126:"星桥镇",500228127:"曲水镇",500228201:"铁门乡",500228202:"龙胜乡",500228203:"复平乡",500228205:"紫照乡",500228401:"梁平县双桂工业园区"},500229:{50022911:"咸宜镇",50022921:"双河乡",50022922:"厚坪乡",500229001:"葛城街道",500229002:"复兴街道",500229102:"巴山镇",500229103:"坪坝镇",500229104:"庙坝镇",500229105:"明通镇",500229106:"修齐镇",500229107:"高观镇",500229108:"高燕镇",500229109:"东安镇",500229111:"高楠镇",500229201:"龙田乡",500229202:"北屏乡",500229205:"左岚乡",500229208:"沿河乡",500229211:"蓼子乡",500229212:"鸡鸣乡",500229214:"周溪乡",500229216:"明中乡",500229217:"治平乡",500229219:"岚天乡",500229221:"河鱼乡"},500230:{500230:"名山街道",50023011:"兴义镇",50023012:"兴龙镇",50023021:"三建乡",500230101:"虎威镇",500230102:"社坛镇",500230103:"三元镇",500230104:"许明寺镇",500230105:"董家镇",500230106:"树人镇",500230107:"十直镇",500230109:"高家镇",500230111:"双路镇",500230112:"江池镇",500230113:"龙河镇",500230114:"武平镇",500230115:"包鸾镇",500230116:"湛普镇",500230118:"南天湖镇",500230119:"保合镇",500230121:"仁沙镇",500230122:"龙孔镇",500230123:"暨龙镇",500230124:"双龙镇",500230125:"仙女湖镇",500230202:"青龙乡",500230206:"太平坝乡",500230207:"都督乡",500230209:"栗子乡"},500231:{50023111:"太平镇",50023112:"裴兴镇",500231001:"桂溪街道",500231002:"桂阳街道",500231101:"新民镇",500231102:"沙坪镇",500231103:"周嘉镇",500231104:"普顺镇",500231105:"永安镇",500231106:"高安镇",500231107:"高峰镇",500231108:"五洞镇",500231109:"澄溪镇",500231111:"鹤游镇",500231112:"坪山镇",500231113:"砚台镇",500231114:"曹回镇",500231115:"杠家镇",500231116:"包家镇",500231117:"白家镇",500231118:"永平镇",500231119:"三溪镇",500231121:"黄沙镇",500231122:"长龙镇",500231202:"沙河乡",500231204:"大石乡"},500232:{5002321:"巷口镇",5002322:"凤来乡",50023211:"土坎镇",50023221:"后坪苗族土家族乡",500232101:"火炉镇",500232102:"白马镇",500232103:"鸭江镇",500232104:"长坝镇",500232105:"江口镇",500232106:"平桥镇",500232107:"羊角镇",500232108:"仙女山镇",500232109:"桐梓镇",500232111:"和顺镇",500232112:"双河镇",500232202:"庙垭乡",500232203:"石桥苗族土家族乡",500232205:"黄莺乡",500232206:"沧沟乡",500232207:"文复苗族土家族乡",500232208:"土地乡",500232209:"白云乡",500232211:"浩口苗族仡佬族乡",500232212:"接龙乡",500232213:"赵家乡",500232214:"大洞河乡"},500233:{50023311:"官坝镇",50023312:"白石镇",50023321:"兴峰乡",500233001:"忠州街道",500233002:"白公街道",500233101:"新生镇",500233102:"任家镇",500233103:"乌杨镇",500233104:"洋渡镇",500233105:"东溪镇",500233106:"复兴镇",500233107:"石宝镇",500233108:"汝溪镇",500233109:"野鹤镇",500233111:"石黄镇",500233112:"马灌镇",500233113:"金鸡镇",500233114:"新立镇",500233115:"双桂镇",500233116:"拔山镇",500233117:"花桥镇",500233118:"永丰镇",500233119:"三汇镇",500233122:"黄金镇",500233201:"善广乡",500233203:"石子乡",500233204:"磨子土家族乡",500233206:"涂井乡",500233208:"金声乡"},500235:{50023513:"桑坪镇",50023514:"蔈草镇",500235001:"双江街道",500235002:"青龙街道",500235003:"人和街道",500235004:"盘龙街道",500235105:"龙角镇",500235107:"故陵镇",500235108:"红狮镇",500235115:"路阳镇",500235116:"农坝镇",500235118:"渠马镇",500235121:"黄石镇",500235122:"巴阳镇",500235123:"沙市镇",500235124:"鱼泉镇",500235125:"凤鸣镇",500235127:"宝坪镇",500235128:"南溪镇",500235129:"双土镇",500235131:"江口镇",500235132:"高阳镇",500235133:"平安镇",500235135:"云阳镇",500235136:"云安镇",500235137:"栖霞镇",500235138:"双龙镇",500235139:"泥溪镇",500235141:"养鹿镇",500235142:"水口镇",500235143:"堰坪镇",500235144:"龙洞镇",500235145:"后叶镇",500235146:"耀灵镇",500235147:"大阳镇",500235208:"外郎乡",500235215:"新津乡",500235216:"普安乡",500235218:"洞鹿乡",500235219:"石门乡",500235239:"上坝乡",500235242:"清水土家族自治乡"},500236:{50023612:"康乐镇",50023613:"新民镇",50023627:"康坪乡",500236001:"永安街道",500236002:"鱼复街道",500236003:"夔门街道",500236117:"白帝镇",500236118:"草堂镇",500236119:"汾河镇",500236121:"大树镇",500236122:"竹园镇",500236123:"公平镇",500236124:"朱衣镇",500236125:"甲高镇",500236126:"羊市镇",500236127:"吐祥镇",500236128:"兴隆镇",500236129:"青龙镇",500236131:"永乐镇",500236132:"安坪镇",500236133:"五马镇",500236134:"青莲镇",500236265:"岩湾乡",500236266:"平安乡",500236267:"红土乡",500236269:"石岗乡",500236272:"太和土家族乡",500236274:"鹤峰乡",500236275:"冯坪乡",500236276:"长安土家族乡",500236277:"龙桥土家族乡",500236278:"云雾土家族乡"},500237:{5002372:"红椿乡",50023711:"铜鼓镇",50023721:"建坪乡",500237001:"高唐街道",500237002:"龙门街道",500237101:"庙宇镇",500237102:"大昌镇",500237103:"福田镇",500237104:"龙溪镇",500237105:"双龙镇",500237106:"官阳镇",500237107:"骡坪镇",500237108:"抱龙镇",500237109:"官渡镇",500237111:"巫峡镇",500237207:"两坪乡",500237208:"曲尺乡",500237211:"大溪乡",500237214:"金坪乡",500237216:"平河乡",500237219:"当阳乡",500237222:"竹贤乡",500237225:"三溪乡",500237227:"培石乡",500237229:"笃坪乡",500237231:"邓家乡"},500238:{5002381:"城厢镇",5002384:"红池坝经济开发区",50023811:"峰灵镇",50023821:"长桂乡",50023824:"双阳乡",500238001:"宁河街道",500238002:"柏杨街道",500238101:"凤凰镇",500238102:"宁厂镇",500238103:"上磺镇",500238104:"古路镇",500238105:"文峰镇",500238106:"徐家镇",500238107:"白鹿镇",500238108:"尖山镇",500238109:"下堡镇",500238111:"塘坊镇",500238112:"朝阳镇",500238113:"田坝镇",500238114:"通城镇",500238115:"菱角镇",500238116:"蒲莲镇",500238117:"土城镇",500238204:"胜利乡",500238207:"大河乡",500238208:"天星乡",500238226:"鱼鳞乡",500238227:"乌龙乡",500238234:"中岗乡",500238237:"花台乡",500238239:"兰英乡",500238242:"中梁乡",500238243:"天元乡"},500240:{500240:"下路街道",50024011:"龙沙镇",50024021:"石家乡",500240101:"西沱镇",500240103:"悦崃镇",500240104:"临溪镇",500240105:"黄水镇",500240106:"马武镇",500240107:"沙子镇",500240108:"王场镇",500240109:"沿溪镇",500240111:"鱼池镇",500240112:"三河镇",500240113:"大歇镇",500240114:"桥头镇",500240115:"万朝镇",500240116:"冷水镇",500240117:"黄鹤镇",500240203:"黎场乡",500240204:"三星乡",500240205:"六塘乡",500240207:"三益乡",500240208:"王家乡",500240209:"河嘴乡",500240212:"枫木乡",500240213:"中益乡",500240214:"洗新乡",500240216:"龙潭乡",500240217:"新乐乡",500240218:"金铃乡",500240219:"金竹乡"},500241:{50024111:"雅江镇",500241001:"中和街道",500241002:"乌杨街道",500241003:"平凯街道",500241102:"清溪场镇",500241103:"隘口镇",500241104:"溶溪镇",500241105:"官庄镇",500241106:"龙池镇",500241107:"石堤镇",500241108:"峨溶镇",500241109:"洪安镇",500241111:"石耶镇",500241112:"梅江镇",500241113:"兰桥镇",500241114:"膏田镇",500241115:"溪口镇",500241116:"妙泉镇",500241117:"宋农镇",500241118:"里仁镇",500241119:"钟灵镇",500241201:"孝溪乡",500241207:"海洋乡",500241208:"大溪乡",500241211:"涌洞乡",500241214:"中平乡",500241215:"岑溪乡"},500242:{5002422:"涂市乡",50024211:"泔溪镇",50024221:"后坪乡",50024222:"清泉乡",500242001:"桃花源街道",500242002:"钟多街道",500242101:"龙潭镇",500242102:"麻旺镇",500242103:"酉酬镇",500242104:"大溪镇",500242105:"兴隆镇",500242106:"黑水镇",500242107:"丁市镇",500242108:"龚滩镇",500242109:"李溪镇",500242111:"酉水河镇",500242112:"苍岭镇",500242113:"小河镇",500242114:"板溪镇",500242202:"铜鼓乡",500242204:"可大乡",500242205:"偏柏乡",500242206:"五福乡",500242207:"木叶乡",500242208:"毛坝乡",500242209:"花田乡",500242211:"天馆乡",500242212:"宜居乡",500242213:"万木乡",500242214:"两罾乡",500242215:"板桥乡",500242216:"官清乡",500242217:"南腰界乡",500242218:"车田乡",500242219:"腴地乡",500242221:"庙溪乡",500242222:"浪坪乡",500242223:"双泉乡",500242224:"楠木乡"},500243:{50024311:"万足镇",50024321:"走马乡",500243001:"汉葭街道",500243002:"绍庆街道",500243003:"靛水街道",500243101:"保家镇",500243102:"郁山镇",500243103:"高谷镇",500243104:"桑柘镇",500243105:"鹿角镇",500243106:"黄家镇",500243107:"普子镇",500243108:"龙射镇",500243109:"连湖镇",500243111:"平安镇",500243112:"长生镇",500243113:"新田镇",500243114:"鞍子镇",500243115:"太原镇",500243116:"龙溪镇",500243117:"梅子垭镇",500243118:"大同镇",500243201:"岩东乡",500243202:"鹿鸣乡",500243204:"棣棠乡",500243206:"三义乡",500243207:"联合乡",500243208:"石柳乡",500243211:"芦塘乡",500243213:"乔梓乡",500243217:"诸佛乡",500243219:"桐楼乡",500243222:"善感乡",500243223:"双龙乡",500243224:"石盘乡",500243225:"大垭乡",500243226:"润溪乡",500243227:"朗溪乡",500243228:"龙塘乡"},51e4:{510100:"成都市",510300:"自贡市",510400:"攀枝花市",510500:"泸州市",510600:"德阳市",510700:"绵阳市",510800:"广元市",510900:"遂宁市",511e3:"内江市",511100:"乐山市",511300:"南充市",511400:"眉山市",511500:"宜宾市",511600:"广安市",511700:"达州市",511800:"雅安市",511900:"巴中市",512e3:"资阳市",513200:"阿坝藏族羌族自治州",513300:"甘孜藏族自治州",513400:"凉山彝族自治州"},510100:{510104:"锦江区",510105:"青羊区",510106:"金牛区",510107:"武侯区",510108:"成华区",510112:"龙泉驿区",510113:"青白江区",510114:"新都区",510115:"温江区",510116:"双流区",510121:"金堂县",510124:"郫县",510129:"大邑县",510131:"蒲江县",510132:"新津县",510181:"都江堰市",510182:"彭州市",510183:"邛崃市",510184:"崇州市",510185:"简阳市"},510300:{510302:"自流井区",510303:"贡井区",510304:"大安区",510311:"沿滩区",510321:"荣县",510322:"富顺县"},510400:{510402:"东区",510403:"西区",510411:"仁和区",510421:"米易县",510422:"盐边县"},510500:{510502:"江阳区",510503:"纳溪区",510504:"龙马潭区",510521:"泸县",510522:"合江县",510524:"叙永县",510525:"古蔺县"},510600:{510603:"旌阳区",510623:"中江县",510626:"罗江县",510681:"广汉市",510682:"什邡市",510683:"绵竹市"},510700:{510703:"涪城区",510704:"游仙区",510705:"安州区",510722:"三台县",510723:"盐亭县",510725:"梓潼县",510726:"北川羌族自治县",510727:"平武县",510781:"江油市"},510800:{510802:"利州区",510811:"昭化区",510812:"朝天区",510821:"旺苍县",510822:"青川县",510823:"剑阁县",510824:"苍溪县"},510900:{510903:"船山区",510904:"安居区",510921:"蓬溪县",510922:"射洪县",510923:"大英县"},511e3:{511002:"市中区",511011:"东兴区",511024:"威远县",511025:"资中县",511028:"隆昌县"},511100:{511102:"市中区",511111:"沙湾区",511112:"五通桥区",511113:"金口河区",511123:"犍为县",511124:"井研县",511126:"夹江县",511129:"沐川县",511132:"峨边彝族自治县",511133:"马边彝族自治县",511181:"峨眉山市"},511300:{511302:"顺庆区",511303:"高坪区",511304:"嘉陵区",511321:"南部县",511322:"营山县",511323:"蓬安县",511324:"仪陇县",511325:"西充县",511381:"阆中市"},511400:{511402:"东坡区",511403:"彭山区",511421:"仁寿县",511423:"洪雅县",511424:"丹棱县",511425:"青神县"},511500:{511502:"翠屏区",511503:"南溪区",511521:"宜宾县",511523:"江安县",511524:"长宁县",511525:"高县",511526:"珙县",511527:"筠连县",511528:"兴文县",511529:"屏山县"},511600:{511602:"广安区",511603:"前锋区",511621:"岳池县",511622:"武胜县",511623:"邻水县",511681:"华蓥市"},511700:{511702:"通川区",511703:"达川区",511722:"宣汉县",511723:"开江县",511724:"大竹县",511725:"渠县",511781:"万源市"},511800:{511802:"雨城区",511803:"名山区",511822:"荥经县",511823:"汉源县",511824:"石棉县",511825:"天全县",511826:"芦山县",511827:"宝兴县"},511900:{511902:"巴州区",511903:"恩阳区",511921:"通江县",511922:"南江县",511923:"平昌县"},512e3:{512002:"雁江区",512021:"安岳县",512022:"乐至县"},513200:{513201:"马尔康市",513221:"汶川县",513222:"理县",513223:"茂县",513224:"松潘县",513225:"九寨沟县",513226:"金川县",513227:"小金县",513228:"黑水县",513230:"壤塘县",513231:"阿坝县",513232:"若尔盖县",513233:"红原县"},513300:{513301:"康定市",513322:"泸定县",513323:"丹巴县",513324:"九龙县",513325:"雅江县",513326:"道孚县",513327:"炉霍县",513328:"甘孜县",513329:"新龙县",513330:"德格县",513331:"白玉县",513332:"石渠县",513333:"色达县",513334:"理塘县",513335:"巴塘县",513336:"乡城县",513337:"稻城县",513338:"得荣县"},513400:{513401:"西昌市",513422:"木里藏族自治县",513423:"盐源县",513424:"德昌县",513425:"会理县",513426:"会东县",513427:"宁南县",513428:"普格县",513429:"布拖县",513430:"金阳县",513431:"昭觉县",513432:"喜德县",513433:"冕宁县",513434:"越西县",513435:"甘洛县",513436:"美姑县",513437:"雷波县"},52e4:{520100:"贵阳市",520200:"六盘水市",520300:"遵义市",520400:"安顺市",520500:"毕节市",520600:"铜仁市",522300:"黔西南布依族苗族自治州",522600:"黔东南苗族侗族自治州",522700:"黔南布依族苗族自治州"},520100:{520102:"南明区",520103:"云岩区",520111:"花溪区",520112:"乌当区",520113:"白云区",520115:"观山湖区",520121:"开阳县",520122:"息烽县",520123:"修文县",520181:"清镇市"},520200:{520201:"钟山区",520203:"六枝特区",520221:"水城县",520222:"盘县"},520300:{520302:"红花岗区",520303:"汇川区",520304:"播州区",520322:"桐梓县",520323:"绥阳县",520324:"正安县",520325:"道真仡佬族苗族自治县",520326:"务川仡佬族苗族自治县",520327:"凤冈县",520328:"湄潭县",520329:"余庆县",520330:"习水县",520381:"赤水市",520382:"仁怀市"},520400:{520402:"西秀区",520403:"平坝区",520422:"普定县",520423:"镇宁布依族苗族自治县",520424:"关岭布依族苗族自治县",520425:"紫云苗族布依族自治县"},520500:{520502:"七星关区",520521:"大方县",520522:"黔西县",520523:"金沙县",520524:"织金县",520525:"纳雍县",520526:"威宁彝族回族苗族自治县",520527:"赫章县"},520600:{520602:"碧江区",520603:"万山区",520621:"江口县",520622:"玉屏侗族自治县",520623:"石阡县",520624:"思南县",520625:"印江土家族苗族自治县",520626:"德江县",520627:"沿河土家族自治县",520628:"松桃苗族自治县"},522300:{522301:"兴义市",522322:"兴仁县",522323:"普安县",522324:"晴隆县",522325:"贞丰县",522326:"望谟县",522327:"册亨县",522328:"安龙县"},522600:{522601:"凯里市",522622:"黄平县",522623:"施秉县",522624:"三穗县",522625:"镇远县",522626:"岑巩县",522627:"天柱县",522628:"锦屏县",522629:"剑河县",522630:"台江县",522631:"黎平县",522632:"榕江县",522633:"从江县",522634:"雷山县",522635:"麻江县",522636:"丹寨县"},522700:{522701:"都匀市",522702:"福泉市",522722:"荔波县",522723:"贵定县",522725:"瓮安县",522726:"独山县",522727:"平塘县",522728:"罗甸县",522729:"长顺县",522730:"龙里县",522731:"惠水县",522732:"三都水族自治县"},53e4:{530100:"昆明市",530300:"曲靖市",530400:"玉溪市",530500:"保山市",530600:"昭通市",530700:"丽江市",530800:"普洱市",530900:"临沧市",532300:"楚雄彝族自治州",532500:"红河哈尼族彝族自治州",532600:"文山壮族苗族自治州",532800:"西双版纳傣族自治州",532900:"大理白族自治州",533100:"德宏傣族景颇族自治州",533300:"怒江傈僳族自治州",533400:"迪庆藏族自治州"},530100:{530102:"五华区",530103:"盘龙区",530111:"官渡区",530112:"西山区",530113:"东川区",530114:"呈贡区",530122:"晋宁县",530124:"富民县",530125:"宜良县",530126:"石林彝族自治县",530127:"嵩明县",530128:"禄劝彝族苗族自治县",530129:"寻甸回族彝族自治县",530181:"安宁市"},530300:{530302:"麒麟区",530303:"沾益区",530321:"马龙县",530322:"陆良县",530323:"师宗县",530324:"罗平县",530325:"富源县",530326:"会泽县",530381:"宣威市"},530400:{530402:"红塔区",530403:"江川区",530422:"澄江县",530423:"通海县",530424:"华宁县",530425:"易门县",530426:"峨山彝族自治县",530427:"新平彝族傣族自治县",530428:"元江哈尼族彝族傣族自治县"},530500:{530502:"隆阳区",530521:"施甸县",530523:"龙陵县",530524:"昌宁县",530581:"腾冲市"},530600:{530602:"昭阳区",530621:"鲁甸县",530622:"巧家县",530623:"盐津县",530624:"大关县",530625:"永善县",530626:"绥江县",530627:"镇雄县",530628:"彝良县",530629:"威信县",530630:"水富县"},530700:{530702:"古城区",530721:"玉龙纳西族自治县",530722:"永胜县",530723:"华坪县",530724:"宁蒗彝族自治县"},530800:{530802:"思茅区",530821:"宁洱哈尼族彝族自治县",530822:"墨江哈尼族自治县",530823:"景东彝族自治县",530824:"景谷傣族彝族自治县",530825:"镇沅彝族哈尼族拉祜族自治县",530826:"江城哈尼族彝族自治县",530827:"孟连傣族拉祜族佤族自治县",530828:"澜沧拉祜族自治县",530829:"西盟佤族自治县"},530900:{530902:"临翔区",530921:"凤庆县",530922:"云县",530923:"永德县",530924:"镇康县",530925:"双江拉祜族佤族布朗族傣族自治县",530926:"耿马傣族佤族自治县",530927:"沧源佤族自治县"},532300:{532301:"楚雄市",532322:"双柏县",532323:"牟定县",532324:"南华县",532325:"姚安县",532326:"大姚县",532327:"永仁县",532328:"元谋县",532329:"武定县",532331:"禄丰县"},532500:{532501:"个旧市",532502:"开远市",532503:"蒙自市",532504:"弥勒市",532523:"屏边苗族自治县",532524:"建水县",532525:"石屏县",532527:"泸西县",532528:"元阳县",532529:"红河县",532530:"金平苗族瑶族傣族自治县",532531:"绿春县",532532:"河口瑶族自治县"},532600:{532601:"文山市",532622:"砚山县",532623:"西畴县",532624:"麻栗坡县",532625:"马关县",532626:"丘北县",532627:"广南县",532628:"富宁县"},532800:{532801:"景洪市",532822:"勐海县",532823:"勐腊县"},532900:{532901:"大理市",532922:"漾濞彝族自治县",532923:"祥云县",532924:"宾川县",532925:"弥渡县",532926:"南涧彝族自治县",532927:"巍山彝族回族自治县",532928:"永平县",532929:"云龙县",532930:"洱源县",532931:"剑川县",532932:"鹤庆县"},533100:{533102:"瑞丽市",533103:"芒市",533122:"梁河县",533123:"盈江县",533124:"陇川县"},533300:{533301:"泸水市",533323:"福贡县",533324:"贡山独龙族怒族自治县",533325:"兰坪白族普米族自治县"},533400:{533401:"香格里拉市",533422:"德钦县",533423:"维西傈僳族自治县"},54e4:{540100:"拉萨市",540200:"日喀则市",540300:"昌都市",540400:"林芝市",540500:"山南市",542400:"那曲地区",542500:"阿里地区"},540100:{540102:"城关区",540103:"堆龙德庆区",540121:"林周县",540122:"当雄县",540123:"尼木县",540124:"曲水县",540126:"达孜县",540127:"墨竹工卡县"},540200:{540202:"桑珠孜区",540221:"南木林县",540222:"江孜县",540223:"定日县",540224:"萨迦县",540225:"拉孜县",540226:"昂仁县",540227:"谢通门县",540228:"白朗县",540229:"仁布县",540230:"康马县",540231:"定结县",540232:"仲巴县",540233:"亚东县",540234:"吉隆县",540235:"聂拉木县",540236:"萨嘎县",540237:"岗巴县"},540300:{540302:"卡若区",540321:"江达县",540322:"贡觉县",540323:"类乌齐县",540324:"丁青县",540325:"察雅县",540326:"八宿县",540327:"左贡县",540328:"芒康县",540329:"洛隆县",540330:"边坝县"},540400:{540402:"巴宜区",540421:"工布江达县",540422:"米林县",540423:"墨脱县",540424:"波密县",540425:"察隅县",540426:"朗县"},540500:{540502:"乃东区",540521:"扎囊县",540522:"贡嘎县",540523:"桑日县",540524:"琼结县",540525:"曲松县",540526:"措美县",540527:"洛扎县",540528:"加查县",540529:"隆子县",540530:"错那县",540531:"浪卡子县"},542400:{542421:"那曲县",542422:"嘉黎县",542423:"比如县",542424:"聂荣县",542425:"安多县",542426:"申扎县",542427:"索县",542428:"班戈县",542429:"巴青县",542430:"尼玛县",542431:"双湖县"},542500:{542521:"普兰县",542522:"札达县",542523:"噶尔县",542524:"日土县",542525:"革吉县",542526:"改则县",542527:"措勤县"},61e4:{610100:"西安市",610200:"铜川市",610300:"宝鸡市",610400:"咸阳市",610500:"渭南市",610600:"延安市",610700:"汉中市",610800:"榆林市",610900:"安康市",611e3:"商洛市"},610100:{610102:"新城区",610103:"碑林区",610104:"莲湖区",610111:"灞桥区",610112:"未央区",610113:"雁塔区",610114:"阎良区",610115:"临潼区",610116:"长安区",610117:"高陵区",610122:"蓝田县",610124:"周至县",610125:"户县"},610200:{610202:"王益区",610203:"印台区",610204:"耀州区",610222:"宜君县"},610300:{610302:"渭滨区",610303:"金台区",610304:"陈仓区",610322:"凤翔县",610323:"岐山县",610324:"扶风县",610326:"眉县",610327:"陇县",610328:"千阳县",610329:"麟游县",610330:"凤县",610331:"太白县"},610400:{610402:"秦都区",610403:"杨陵区",610404:"渭城区",610422:"三原县",610423:"泾阳县",610424:"乾县",610425:"礼泉县",610426:"永寿县",610427:"彬县",610428:"长武县",610429:"旬邑县",610430:"淳化县",610431:"武功县",610481:"兴平市"},610500:{610502:"临渭区",610503:"华州区",610522:"潼关县",610523:"大荔县",610524:"合阳县",610525:"澄城县",610526:"蒲城县",610527:"白水县",610528:"富平县",610581:"韩城市",610582:"华阴市"},610600:{610602:"宝塔区",610603:"安塞区",610621:"延长县",610622:"延川县",610623:"子长县",610625:"志丹县",610626:"吴起县",610627:"甘泉县",610628:"富县",610629:"洛川县",610630:"宜川县",610631:"黄龙县",610632:"黄陵县"},610700:{610702:"汉台区",610721:"南郑县",610722:"城固县",610723:"洋县",610724:"西乡县",610725:"勉县",610726:"宁强县",610727:"略阳县",610728:"镇巴县",610729:"留坝县",610730:"佛坪县"},610800:{610802:"榆阳区",610803:"横山区",610821:"神木县",610822:"府谷县",610824:"靖边县",610825:"定边县",610826:"绥德县",610827:"米脂县",610828:"佳县",610829:"吴堡县",610830:"清涧县",610831:"子洲县"},610900:{610902:"汉滨区",610921:"汉阴县",610922:"石泉县",610923:"宁陕县",610924:"紫阳县",610925:"岚皋县",610926:"平利县",610927:"镇坪县",610928:"旬阳县",610929:"白河县"},611e3:{611002:"商州区",611021:"洛南县",611022:"丹凤县",611023:"商南县",611024:"山阳县",611025:"镇安县",611026:"柞水县"},62e4:{620100:"兰州市",620200:"嘉峪关市",620300:"金昌市",620400:"白银市",620500:"天水市",620600:"武威市",620700:"张掖市",620800:"平凉市",620900:"酒泉市",621e3:"庆阳市",621100:"定西市",621200:"陇南市",622900:"临夏回族自治州",623e3:"甘南藏族自治州"},620100:{620102:"城关区",620103:"七里河区",620104:"西固区",620105:"安宁区",620111:"红古区",620121:"永登县",620122:"皋兰县",620123:"榆中县"},620200:{},620300:{620302:"金川区",620321:"永昌县"},620400:{620402:"白银区",620403:"平川区",620421:"靖远县",620422:"会宁县",620423:"景泰县"},620500:{620502:"秦州区",620503:"麦积区",620521:"清水县",620522:"秦安县",620523:"甘谷县",620524:"武山县",620525:"张家川回族自治县"},620600:{620602:"凉州区",620621:"民勤县",620622:"古浪县",620623:"天祝藏族自治县"},620700:{620702:"甘州区",620721:"肃南裕固族自治县",620722:"民乐县",620723:"临泽县",620724:"高台县",620725:"山丹县"},620800:{620802:"崆峒区",620821:"泾川县",620822:"灵台县",620823:"崇信县",620824:"华亭县",620825:"庄浪县",620826:"静宁县"},620900:{620902:"肃州区",620921:"金塔县",620922:"瓜州县",620923:"肃北蒙古族自治县",620924:"阿克塞哈萨克族自治县",620981:"玉门市",620982:"敦煌市"},621e3:{621002:"西峰区",621021:"庆城县",621022:"环县",621023:"华池县",621024:"合水县",621025:"正宁县",621026:"宁县",621027:"镇原县"},621100:{621102:"安定区",621121:"通渭县",621122:"陇西县",621123:"渭源县",621124:"临洮县",621125:"漳县",621126:"岷县"},621200:{621202:"武都区",621221:"成县",621222:"文县",621223:"宕昌县",621224:"康县",621225:"西和县",621226:"礼县",621227:"徽县",621228:"两当县"},622900:{622901:"临夏市",622921:"临夏县",622922:"康乐县",622923:"永靖县",622924:"广河县",622925:"和政县",622926:"东乡族自治县",622927:"积石山保安族东乡族撒拉族自治县"},623e3:{623001:"合作市",623021:"临潭县",623022:"卓尼县",623023:"舟曲县",623024:"迭部县",623025:"玛曲县",623026:"碌曲县",623027:"夏河县"},63e4:{630100:"西宁市",630200:"海东市",632200:"海北藏族自治州",632300:"黄南藏族自治州",632500:"海南藏族自治州",632600:"果洛藏族自治州",632700:"玉树藏族自治州",632800:"海西蒙古族藏族自治州"},630100:{630102:"城东区",630103:"城中区",630104:"城西区",630105:"城北区",630121:"大通回族土族自治县",630122:"湟中县",630123:"湟源县"},630200:{630202:"乐都区",630203:"平安区",630222:"民和回族土族自治县",630223:"互助土族自治县",630224:"化隆回族自治县",630225:"循化撒拉族自治县"},632200:{632221:"门源回族自治县",632222:"祁连县",632223:"海晏县",632224:"刚察县"},632300:{632321:"同仁县",632322:"尖扎县",632323:"泽库县",632324:"河南蒙古族自治县"},632500:{632521:"共和县",632522:"同德县",632523:"贵德县",632524:"兴海县",632525:"贵南县"},632600:{632621:"玛沁县",632622:"班玛县",632623:"甘德县",632624:"达日县",632625:"久治县",632626:"玛多县"},632700:{632701:"玉树市",632722:"杂多县",632723:"称多县",632724:"治多县",632725:"囊谦县",632726:"曲麻莱县"},632800:{632801:"格尔木市",632802:"德令哈市",632821:"乌兰县",632822:"都兰县",632823:"天峻县"},64e4:{640100:"银川市",640200:"石嘴山市",640300:"吴忠市",640400:"固原市",640500:"中卫市"},640100:{640104:"兴庆区",640105:"西夏区",640106:"金凤区",640121:"永宁县",640122:"贺兰县",640181:"灵武市"},640200:{640202:"大武口区",640205:"惠农区",640221:"平罗县"},640300:{640302:"利通区",640303:"红寺堡区",640323:"盐池县",640324:"同心县",640381:"青铜峡市"},640400:{640402:"原州区",640422:"西吉县",640423:"隆德县",640424:"泾源县",640425:"彭阳县"},640500:{640502:"沙坡头区",640521:"中宁县",640522:"海原县"},65e4:{650100:"乌鲁木齐市",650200:"克拉玛依市",650400:"吐鲁番市",650500:"哈密市",652300:"昌吉回族自治州",652700:"博尔塔拉蒙古自治州",652800:"巴音郭楞蒙古自治州",652900:"阿克苏地区",653e3:"克孜勒苏柯尔克孜自治州",653100:"喀什地区",653200:"和田地区",654e3:"伊犁哈萨克自治州",654200:"塔城地区",654300:"阿勒泰地区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",659006:"铁门关市"},650100:{650102:"天山区",650103:"沙依巴克区",650104:"新市区",650105:"水磨沟区",650106:"头屯河区",650107:"达坂城区",650109:"米东区",650121:"乌鲁木齐县"},650200:{650202:"独山子区",650203:"克拉玛依区",650204:"白碱滩区",650205:"乌尔禾区"},650400:{650402:"高昌区",650421:"鄯善县",650422:"托克逊县"},650500:{650502:"伊州区",650521:"巴里坤哈萨克自治县",650522:"伊吾县"},652300:{652301:"昌吉市",652302:"阜康市",652323:"呼图壁县",652324:"玛纳斯县",652325:"奇台县",652327:"吉木萨尔县",652328:"木垒哈萨克自治县"},652700:{652701:"博乐市",652702:"阿拉山口市",652722:"精河县",652723:"温泉县"},652800:{652801:"库尔勒市",652822:"轮台县",652823:"尉犁县",652824:"若羌县",652825:"且末县",652826:"焉耆回族自治县",652827:"和静县",652828:"和硕县",652829:"博湖县"},652900:{652901:"阿克苏市",652922:"温宿县",652923:"库车县",652924:"沙雅县",652925:"新和县",652926:"拜城县",652927:"乌什县",652928:"阿瓦提县",652929:"柯坪县"},653e3:{653001:"阿图什市",653022:"阿克陶县",653023:"阿合奇县",653024:"乌恰县"},653100:{653101:"喀什市",653121:"疏附县",653122:"疏勒县",653123:"英吉沙县",653124:"泽普县",653125:"莎车县",653126:"叶城县",653127:"麦盖提县",653128:"岳普湖县",653129:"伽师县",653130:"巴楚县",653131:"塔什库尔干塔吉克自治县"},653200:{653201:"和田市",653221:"和田县",653222:"墨玉县",653223:"皮山县",653224:"洛浦县",653225:"策勒县",653226:"于田县",653227:"民丰县"},654e3:{654002:"伊宁市",654003:"奎屯市",654004:"霍尔果斯市",654021:"伊宁县",654022:"察布查尔锡伯自治县",654023:"霍城县",654024:"巩留县",654025:"新源县",654026:"昭苏县",654027:"特克斯县",654028:"尼勒克县"},654200:{654201:"塔城市",654202:"乌苏市",654221:"额敏县",654223:"沙湾县",654224:"托里县",654225:"裕民县",654226:"和布克赛尔蒙古自治县"},654300:{654301:"阿勒泰市",654321:"布尔津县",654322:"富蕴县",654323:"福海县",654324:"哈巴河县",654325:"青河县",654326:"吉木乃县"},659001:{6590011:"北泉镇",6590015:"兵团一五二团",659001001:"新城街道",659001002:"向阳街道",659001003:"红山街道",659001004:"老街街道",659001005:"东城街道",659001101:"石河子镇"},659002:{6590022:"托喀依乡",6590025:"兵团七团",65900252:"兵团三团",659002001:"金银川路街道",659002002:"幸福路街道",659002003:"青松路街道",659002004:"南口街道",659002402:"工业园区",659002501:"兵团八团",659002503:"兵团十团",659002504:"兵团十一团",659002505:"兵团十二团",659002506:"兵团十三团",659002507:"兵团十四团",659002509:"兵团十六团",659002511:"兵团第一师水利水电工程处",659002512:"兵团第一师塔里木灌区水利管理处",659002513:"阿拉尔农场",659002514:"兵团第一师幸福农场",659002515:"中心监狱",659002516:"兵团一团",659002517:"兵团农一师沙井子水利管理处",659002518:"西工业园区管理委员会",659002519:"兵团二团"},659003:{65900351:"兵团五十团",659003001:"齐干却勒街道",659003002:"前海街道",659003003:"永安坝街道",659003504:"兵团四十四团",659003509:"兵团四十九团",659003511:"兵团五十一团",659003513:"兵团五十三团",659003514:"兵团图木舒克市喀拉拜勒镇"},659004:{6590045:"兵团一零一团",659004001:"军垦路街道",659004002:"青湖路街道",659004003:"人民路街道",659004501:"兵团一零二团",659004502:"兵团一零三团"},659006:{6590061:"博古其镇",659006101:"双丰镇"},71e4:{710100:"台湾省"},710100:{710101:"金门",710102:"连江",710103:"苗栗",710104:"南投",710105:"澎湖",710106:"屏东",710107:"台东",710108:"台中",710109:"台南",710110:"台北",710111:"桃园",710112:"云林",710113:"新北",710114:"彰化",710115:"嘉义",710116:"新竹",710117:"花莲",710118:"宜兰",710119:"高雄",710120:"基隆"},81e4:{810101:"中西区",810102:"东区",810103:"九龙城区",810104:"观塘区",810105:"深水埗区",810106:"湾仔区",810107:"黄大仙区",810108:"油尖旺区",810109:"离岛区",810110:"葵青区",810111:"北区",810112:"西贡区",810113:"沙田区",810114:"屯门区",810115:"大埔区",810116:"荃湾区",810117:"元朗区",810118:"香港",810119:"九龙",810120:"新界"},82e4:{820101:"离岛",820102:"澳门半岛",820103:"凼仔",820104:"路凼城",820105:"路环"},91e4:{81e4:"香港特别行政区",82e4:"澳门特别行政区"}}},"0f9d":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("j-select-biz-component",e._g(e._b({attrs:{value:e.value,ellipsisLength:25,listUrl:e.url.list,columns:e.columns}},"j-select-biz-component",e.attrs,!1),e.$listeners))},i=[],a=n("b296"),o={name:"JSelectMultiUser",components:{JSelectBizComponent:a["default"]},props:["value"],data:function(){return{url:{list:"/sys/user/list"},columns:[{title:"姓名",align:"center",width:"25%",widthRight:"70%",dataIndex:"realname"},{title:"账号",align:"center",width:"25%",dataIndex:"username"},{title:"电话",align:"center",width:"20%",dataIndex:"phone"},{title:"出生日期",align:"center",width:"20%",dataIndex:"birthday"}],default:{name:"用户",width:1200,displayKey:"realname",returnKeys:["id","username"],queryParamText:"账号"}}},computed:{attrs:function(){return Object.assign(this.default,this.$attrs)}}},s=o,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"e93adf66",null);t["default"]=c.exports},"13d2":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-select",{attrs:{value:e.arrayValue,mode:"multiple",placeholder:e.placeholder},on:{change:e.onChange}},e._l(e.options,(function(t,r){return n("a-select-option",{key:r,attrs:{value:t.value}},[e._v("\n    "+e._s(t.text||t.label)+"\n  ")])})),1)},i=[],a={name:"JSelectMultiple",props:{placeholder:{type:String,default:"",required:!1},value:{type:String,required:!1},readOnly:{type:Boolean,required:!1,default:!1},options:{type:Array,required:!0},triggerChange:{type:Boolean,required:!1,default:!1}},data:function(){return{arrayValue:this.value?this.value.split(","):[]}},watch:{value:function(e){this.arrayValue=e?this.value.split(","):[]}},methods:{onChange:function(e){this.triggerChange?this.$emit("change",e.join(",")):this.$emit("input",e.join(","))}}},o=a,s=n("2877"),l=Object(s["a"])(o,r,i,!1,null,null,null);t["default"]=l.exports},"1e39":function(e,t,n){"use strict";var r=n("e06f"),i=n.n(r);i.a},"1e8c":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("j-select-biz-component",e._g(e._b({attrs:{value:e.value,name:"角色",displayKey:"roleName",returnKeys:e.returnKeys,listUrl:e.url.list,columns:e.columns,queryParamText:"角色编码"}},"j-select-biz-component",e.$attrs,!1),e.$listeners))},i=[],a=n("b296"),o={name:"JSelectRole",components:{JSelectBizComponent:a["default"]},props:["value"],data:function(){return{returnKeys:["id","roleCode"],url:{list:"/sys/role/list"},columns:[{title:"角色名称",dataIndex:"roleName",align:"center",width:120},{title:"角色编码",dataIndex:"roleCode",align:"center",width:120}]}}},s=o,l=n("2877"),c=Object(l["a"])(s,r,i,!1,null,"4d57a268",null);t["default"]=c.exports},"2ad6":function(e,t,n){},"2dab":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-date-picker",{attrs:{dropdownClassName:"j-date-picker",disabled:e.disabled||e.readOnly,placeholder:e.placeholder,value:e.momVal,showTime:e.showTime,format:e.dateFormat,getCalendarContainer:e.getCalendarContainer},on:{change:e.handleDateChange}})},i=[],a=n("c1df"),o=n.n(a),s={name:"JDate",props:{placeholder:{type:String,default:"",required:!1},value:{type:String,required:!1},dateFormat:{type:String,default:"YYYY-MM-DD",required:!1},triggerChange:{type:Boolean,required:!1,default:!1},readOnly:{type:Boolean,required:!1,default:!1},disabled:{type:Boolean,required:!1,default:!1},showTime:{type:Boolean,required:!1,default:!1},getCalendarContainer:{type:Function,default:function(e){return e.parentNode}}},data:function(){var e=this.value;return{decorator:"",momVal:e?o()(e,this.dateFormat):null}},watch:{value:function(e){this.momVal=e?o()(e,this.dateFormat):null}},methods:{moment:o.a,handleDateChange:function(e,t){this.$emit("change",t)}},model:{prop:"value",event:"change"}},l=s,c=n("2877"),u=Object(c["a"])(l,r,i,!1,null,null,null);t["default"]=u.exports},"3c53":function(e,t,n){},4165:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-tree-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",labelInValue:"",disabled:e.disabled,dropdownStyle:{maxHeight:"400px",overflow:"auto"},placeholder:e.placeholder,loadData:e.asyncLoadTreeData,value:e.treeValue,treeData:e.treeData},on:{change:e.onChange,search:e.onSearch}})},i=[],a=n("0fea");function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function s(e){return d(e)||u(e)||c(e)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function d(e){if(Array.isArray(e))return h(e)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f={name:"JTreeDict",data:function(){return{treeData:[],treeValue:null,url_root:"/sys/category/loadTreeRoot",url_children:"/sys/category/loadTreeChildren",url_view:"/sys/category/loadOne"}},props:{value:{type:String,required:!1},placeholder:{type:String,default:"请选择",required:!1},parentCode:{type:String,default:"",required:!1},field:{type:String,default:"id",required:!1},root:{type:Object,required:!1,default:function(){return{pid:"0"}}},async:{type:Boolean,default:!1,required:!1},disabled:{type:Boolean,default:!1,required:!1}},watch:{root:{handler:function(e){},deep:!0},parentCode:{handler:function(){this.loadRoot()}},value:{handler:function(){this.loadViewInfo()}}},created:function(){this.loadRoot(),this.loadViewInfo()},model:{prop:"value",event:"change"},methods:{loadViewInfo:function(){var e=this;if(this.value&&"0"!=this.value){var t={field:this.field,val:this.value};Object(a["c"])(this.url_view,t).then((function(t){t.success&&(e.treeValue={value:e.value,label:t.result.name})}))}else this.treeValue=null},loadRoot:function(){var e=this,t={async:this.async,pcode:this.parentCode};Object(a["c"])(this.url_root,t).then((function(t){t.success?(e.handleTreeNodeValue(t.result),e.treeData=s(t.result)):e.$message.error(t.message)}))},asyncLoadTreeData:function(e){var t=this;return new Promise((function(n){if(t.async)if(e.$vnode.children)n();else{var r=e.$vnode.key,i={pid:r};Object(a["c"])(t.url_children,i).then((function(e){e.success&&(t.handleTreeNodeValue(e.result),t.addChildren(r,e.result,t.treeData),t.treeData=s(t.treeData)),n()}))}else n()}))},addChildren:function(e,t,n){if(n&&n.length>0){var r,i=o(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.key==e){t&&0!=t.length?a.children=t:a.leaf=!0;break}this.addChildren(e,t,a.children)}}catch(s){i.e(s)}finally{i.f()}}},handleTreeNodeValue:function(e){var t,n="code"==this.field?"code":"key",r=o(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.value=i[n],i.isLeaf=!!i.leaf,i.children&&i.children.length>0&&this.handleTreeNodeValue(i.children)}}catch(a){r.e(a)}finally{r.f()}},onChange:function(e){e?this.$emit("change",e.value):this.$emit("change",""),this.treeValue=e},onSearch:function(e){},getCurrTreeData:function(){return this.treeData}}},p=f,g=n("2877"),m=Object(g["a"])(p,r,i,!1,null,null,null);t["default"]=m.exports},4349:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-input",{attrs:{placeholder:e.placeholder,value:e.inputVal},on:{input:e.backValue}})},i=[],a="like",o="ne",s="ge",l="le",c={name:"JInput",props:{value:{type:String,required:!1},type:{type:String,required:!1,default:a},placeholder:{type:String,required:!1,default:""}},watch:{value:{immediate:!0,handler:function(){this.initVal()}},type:function(){this.backValue({target:{value:this.inputVal}})}},model:{prop:"value",event:"change"},data:function(){return{inputVal:""}},methods:{initVal:function(){if(this.value){var e=this.value;switch(this.type){case a:-1!=e.indexOf("*")&&(e=e.substring(1,e.length-1));break;case o:e=e.substring(1);break;case s:e=e.substring(2);break;case l:e=e.substring(2);break;default:}this.inputVal=e}else this.inputVal=""},backValue:function(e){var t=e.target.value;switch(this.type){case a:t="*"+t+"*";break;case o:t="!"+t;break;case s:t=">="+t;break;case l:t="<="+t;break;default:}this.$emit("change",t)}}},u=c,d=n("2877"),h=Object(d["a"])(u,r,i,!1,null,"9821a2f2",null);t["default"]=h.exports},"49a8":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-tree-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",labelInValue:"",disabled:e.disabled,dropdownStyle:{maxHeight:"400px",overflow:"auto"},placeholder:e.placeholder,loadData:e.asyncLoadTreeData,value:e.treeValue,treeData:e.treeData,multiple:e.multiple},on:{change:e.onChange}})},i=[],a=n("0fea");function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e){return u(e)||c(e)||h(e)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return f(e)}function d(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function h(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p={name:"JCategorySelect",props:{value:{type:String,required:!1},placeholder:{type:String,default:"请选择",required:!1},disabled:{type:Boolean,default:!1,required:!1},condition:{type:String,default:"",required:!1},multiple:{type:Boolean,default:!1},loadTriggleChange:{type:Boolean,default:!1,required:!1},pid:{type:String,default:"",required:!1},pcode:{type:String,default:"",required:!1},back:{type:String,default:"",required:!1}},data:function(){return{treeValue:"",treeData:[],url:"/sys/category/loadTreeData",view:"/sys/category/loadDictItem/",tableName:"",text:"",code:""}},watch:{value:function(){this.loadItemByCode()},pcode:function(){this.loadRoot()}},created:function(){var e=this;this.validateProp().then((function(){e.loadRoot(),e.loadItemByCode()}))},methods:{loadRoot:function(){var e=this,t={pid:this.pid,pcode:this.pcode?this.pcode:"0",condition:this.condition};Object(a["c"])(this.url,t).then((function(t){if(t.success&&t.result){var n,r=d(t.result);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.value=i.key,0==i.leaf?i.isLeaf=!1:1==i.leaf&&(i.isLeaf=!0)}}catch(a){r.e(a)}finally{r.f()}e.treeData=s(t.result)}}))},loadItemByCode:function(){var e=this;this.value&&"0"!=this.value?Object(a["c"])(this.view,{ids:this.value}).then((function(t){if(t.success){var n=e.value.split(",");e.treeValue=t.result.map((function(e,t){return{key:n[t],value:n[t],label:e}})),e.onLoadTriggleChange(t.result[0])}})):this.treeValue=[]},onLoadTriggleChange:function(e){!this.multiple&&this.loadTriggleChange&&this.backValue(this.value,e)},backValue:function(e,t){var n={};this.back&&(n[this.back]=t),this.$emit("change",e,n)},asyncLoadTreeData:function(e){var t=this;return new Promise((function(n){if(e.$vnode.children)n();else{var r=e.$vnode.key,i={pid:r,condition:t.condition};Object(a["c"])(t.url,i).then((function(e){if(e.success){var i,a=d(e.result);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.value=o.key,0==o.leaf?o.isLeaf=!1:1==o.leaf&&(o.isLeaf=!0)}}catch(l){a.e(l)}finally{a.f()}t.addChildren(r,e.result,t.treeData),t.treeData=s(t.treeData)}n()}))}}))},addChildren:function(e,t,n){if(n&&n.length>0){var r,i=d(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.key==e){t&&0!=t.length?a.children=t:a.isLeaf=!0;break}this.addChildren(e,t,a.children)}}catch(o){i.e(o)}finally{i.f()}}},onChange:function(e){if(e)if(Array.isArray(e)){var t=[],n=e.map((function(e){return t.push(e.label),e.value}));this.backValue(n.join(","),t.join(",")),this.treeValue=e}else this.backValue(e.value,e.label),this.treeValue=e;else this.$emit("change",""),this.treeValue=""},getCurrTreeData:function(){return this.treeData},validateProp:function(){var e=this,t=this.condition;return new Promise((function(n,r){if(t)try{var i=JSON.parse(t);"object"==o(i)&&i?n():(e.$message.error("组件JTreeSelect-condition传值有误,需要一个json字符串!"),r())}catch(a){e.$message.error("组件JTreeSelect-condition传值有误,需要一个json字符串!"),r()}else n()}))}},model:{prop:"value",event:"change"}},g=p,m=n("2877"),v=Object(m["a"])(g,r,i,!1,null,null,null);t["default"]=v.exports},"6f9a":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"j-markdown-editor",attrs:{id:e.id}})},i=[],a=(n("a7be"),n("f513"),n("f4c3"),n("a0ae")),o=n.n(a),s={minHeight:"200px",previewStyle:"vertical",useCommandShortcut:!0,useDefaultHTMLSanitizer:!0,usageStatistics:!1,hideModeSwitch:!1,toolbarItems:["heading","bold","italic","strike","divider","hr","quote","divider","ul","ol","task","indent","outdent","divider","table","image","link","divider","code","codeblock"]};function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var d={name:"JMarkdownEditor",props:{value:{type:String,default:""},id:{type:String,required:!1,default:function(){return"markdown-editor-"+ +new Date+(1e3*Math.random()).toFixed(0)}},options:{type:Object,default:function(){return s}},mode:{type:String,default:"markdown"},height:{type:String,required:!1,default:"300px"},language:{type:String,required:!1,default:"zh-CN"}},data:function(){return{editor:null}},computed:{editorOptions:function(){var e=Object.assign({},s,this.options);return e.initialEditType=this.mode,e.height=this.height,e.language=this.language,e}},watch:{value:function(e,t){e!==t&&e!==this.editor.getMarkdown()&&this.editor.setMarkdown(e)},language:function(e){this.destroyEditor(),this.initEditor()},height:function(e){this.editor.height(e)},mode:function(e){this.editor.changeMode(e)}},mounted:function(){this.initEditor()},destroyed:function(){this.destroyEditor()},methods:{initEditor:function(){var e=this;this.editor=new o.a(c({el:document.getElementById(this.id)},this.editorOptions)),this.value&&this.editor.setMarkdown(this.value),this.editor.on("change",(function(){e.$emit("change",e.editor.getMarkdown())}))},destroyEditor:function(){this.editor&&(this.editor.off("change"),this.editor.remove())},setMarkdown:function(e){this.editor.setMarkdown(e)},getMarkdown:function(){return this.editor.getMarkdown()},setHtml:function(e){this.editor.setHtml(e)},getHtml:function(){return this.editor.getHtml()}},model:{prop:"value",event:"change"}},h=d,f=(n("bf93"),n("2877")),p=Object(f["a"])(h,r,i,!1,null,"b6aaa5ce",null);t["default"]=p.exports},"7ab5":function(e,t,n){},8937:function(e,t,n){},"8c6e":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"j-super-query-box"},[e._t("button",[e.superQueryFlag?n("a-tooltip",e._b({attrs:{mouseLeaveDelay:.2}},"a-tooltip",e.tooltipProps,!1),[n("span",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[e._v(e._s(e.tooltipProps))]),n("template",{slot:"title"},[n("span",[e._v("已有高级查询条件生效")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:e.handleReset}},[e._v("清空")])],1),n("a-button-group",[n("a-button",{attrs:{type:"primary"},on:{click:e.handleOpen}},[n("a-icon",{attrs:{type:"appstore",theme:"twoTone",spin:""}}),n("span",[e._v("高级查询")])],1),e.izMobile?n("a-button",{attrs:{type:"primary",icon:"delete"},on:{click:e.handleReset}}):e._e()],1)],2):n("a-button",{attrs:{type:"primary",icon:"filter"},on:{click:e.handleOpen}},[e._v("高级查询")])],{isActive:e.superQueryFlag,isMobile:e.izMobile,open:e.handleOpen,reset:e.handleReset}),n("j-modal",{staticClass:"j-super-query-modal",staticStyle:{top:"5%","max-height":"95%"},attrs:{title:"高级查询构造器",width:1e3,visible:e.visible,mask:!1,fullscreen:e.izMobile},on:{cancel:e.handleCancel}},[n("template",{slot:"footer"},[n("div",{staticStyle:{float:"left"}},[n("a-button",{attrs:{loading:e.loading},on:{click:e.handleReset}},[e._v("重置")]),n("a-button",{attrs:{loading:e.loading},on:{click:e.handleSave}},[e._v("保存查询条件")])],1),n("a-button",{attrs:{loading:e.loading},on:{click:e.handleCancel}},[e._v("关闭")]),n("a-button",{attrs:{loading:e.loading,type:"primary"},on:{click:e.handleOk}},[e._v("查询")])],1),n("a-spin",{attrs:{spinning:e.loading}},[n("a-row",[n("a-col",{attrs:{sm:24,md:19}},[0===e.queryParamsModel.length?n("a-empty",{staticStyle:{"margin-bottom":"12px"}},[n("div",{attrs:{slot:"description"},slot:"description"},[n("span",[e._v("没有任何查询条件")]),n("a-divider",{attrs:{type:"vertical"}}),n("a",{on:{click:e.handleAdd}},[e._v("点击新增")])],1)]):n("a-form",{attrs:{layout:"inline"}},[n("a-row",{staticStyle:{"margin-bottom":"12px"}},[n("a-col",{attrs:{md:12,xs:24}},[n("a-form-item",{staticStyle:{width:"100%"},attrs:{label:"过滤条件匹配",labelCol:{md:6,xs:24},wrapperCol:{md:18,xs:24}}},[n("a-select",{staticStyle:{width:"100%"},attrs:{getPopupContainer:function(e){return e.parentNode}},model:{value:e.matchType,callback:function(t){e.matchType=t},expression:"matchType"}},[n("a-select-option",{attrs:{value:"and"}},[e._v("AND(所有条件都要求匹配)")]),n("a-select-option",{attrs:{value:"or"}},[e._v("OR(条件中的任意一个匹配)")])],1)],1)],1)],1),e._l(e.queryParamsModel,(function(t,r){return n("a-row",{key:r,staticStyle:{"margin-bottom":"10px"},attrs:{type:"flex",gutter:16}},[n("a-col",{staticStyle:{"margin-bottom":"12px"},attrs:{md:8,xs:24}},[n("a-tree-select",{staticStyle:{width:"100%"},attrs:{showSearch:"",treeData:e.fieldTreeData,dropdownStyle:{maxHeight:"400px",overflow:"auto"},placeholder:"选择查询字段",allowClear:"",treeDefaultExpandAll:"",getPopupContainer:function(e){return e.parentNode}},on:{select:function(n,r){return e.handleSelected(r,t)}},model:{value:t.field,callback:function(n){e.$set(t,"field",n)},expression:"item.field"}})],1),n("a-col",{staticStyle:{"margin-bottom":"12px"},attrs:{md:4,xs:24}},[n("a-select",{attrs:{placeholder:"匹配规则",value:t.rule,getPopupContainer:function(e){return e.parentNode}},on:{change:function(n){return e.handleRuleChange(t,n)}}},[n("a-select-option",{attrs:{value:"eq"}},[e._v("等于")]),n("a-select-option",{attrs:{value:"like"}},[e._v("包含")]),n("a-select-option",{attrs:{value:"right_like"}},[e._v("以..开始")]),n("a-select-option",{attrs:{value:"left_like"}},[e._v("以..结尾")]),n("a-select-option",{attrs:{value:"in"}},[e._v("在...中")]),n("a-select-option",{attrs:{value:"ne"}},[e._v("不等于")]),n("a-select-option",{attrs:{value:"gt"}},[e._v("大于")]),n("a-select-option",{attrs:{value:"ge"}},[e._v("大于等于")]),n("a-select-option",{attrs:{value:"lt"}},[e._v("小于")]),n("a-select-option",{attrs:{value:"le"}},[e._v("小于等于")])],1)],1),n("a-col",{staticStyle:{"margin-bottom":"12px"},attrs:{md:8,xs:24}},[t.dictCode?["table-dict"===t.type?[n("j-popup",{attrs:{code:t.dictTable,field:t.dictCode,orgFields:t.dictCode,destFields:t.dictCode},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}})]:[n("j-multi-select-tag",{directives:[{name:"show",rawName:"v-show",value:e.allowMultiple(t),expression:"allowMultiple(item)"}],attrs:{dictCode:t.dictCode,placeholder:"请选择"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}),n("j-dict-select-tag",{directives:[{name:"show",rawName:"v-show",value:!e.allowMultiple(t),expression:"!allowMultiple(item)"}],attrs:{dictCode:t.dictCode,placeholder:"请选择"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}})]]:"popup"===t.type?n("j-popup",e._b({attrs:{value:t.val,"group-id":"superQuery"},on:{input:function(n,r){return e.handleChangeJPopup(t,n,r)}}},"j-popup",t.popup,!1)):"select-user"===t.type||"sel_user"===t.type?n("j-select-multi-user",{attrs:{buttons:!1,multiple:!1,placeholder:"请选择用户",returnKeys:["id",t.customReturnField||"username"]},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):"select-depart"===t.type||"sel_depart"===t.type?n("j-select-depart",{attrs:{multi:!1,placeholder:"请选择部门",customReturnField:t.customReturnField||"id"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):t.options instanceof Array?n("a-select",{attrs:{options:t.options,allowClear:"",placeholder:"请选择",mode:e.allowMultiple(t)?"multiple":""},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):"area-linkage"===t.type||"pca"===t.type?n("j-area-linkage",{staticStyle:{width:"100%"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):"date"==t.type?n("j-date",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择日期"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):"datetime"==t.type?n("j-date",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择时间","show-time":!0,"date-format":"YYYY-MM-DD HH:mm:ss"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):"time"===t.type?n("a-time-picker",{staticStyle:{width:"100%"},attrs:{value:t.val?e.moment(t.val,"HH:mm:ss"):null,format:"HH:mm:ss"},on:{change:function(e,n){return t.val=n}}}):"int"==t.type||"number"==t.type?n("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入数值"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}}):"switch"==t.type?n("a-select",{attrs:{placeholder:"请选择"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}},[n("a-select-option",{attrs:{value:"Y"}},[e._v("是")]),n("a-select-option",{attrs:{value:"N"}},[e._v("否")])],1):n("a-input",{attrs:{placeholder:"请输入值"},model:{value:t.val,callback:function(n){e.$set(t,"val",n)},expression:"item.val"}})],2),n("a-col",{staticStyle:{"margin-bottom":"12px"},attrs:{md:4,xs:0}},[n("a-button",{attrs:{icon:"plus"},on:{click:e.handleAdd}}),e._v(" \r\n                "),n("a-button",{attrs:{icon:"minus"},on:{click:function(t){return e.handleDel(r)}}})],1),n("a-col",{staticStyle:{"margin-bottom":"12px","text-align":"right"},attrs:{md:0,xs:24}},[n("a-button",{attrs:{icon:"plus"},on:{click:e.handleAdd}}),e._v(" \r\n                "),n("a-button",{attrs:{icon:"minus"},on:{click:function(t){return e.handleDel(r)}}})],1)],1)}))],2)],1),n("a-col",{attrs:{sm:24,md:5}},[n("a-card",{staticClass:"j-super-query-history-card",attrs:{bordered:!0}},[n("div",{attrs:{slot:"title"},slot:"title"},[e._v("\r\n              保存的查询\r\n            ")]),0===e.saveTreeData.length?n("a-empty",{staticClass:"j-super-query-history-empty",attrs:{description:"没有保存任何查询"}}):n("a-tree",{staticClass:"j-super-query-history-tree",attrs:{showIcon:"",treeData:e.saveTreeData,selectedKeys:[]},on:{select:e.handleTreeSelect}})],1)],1)],1)],1),n("a-modal",{attrs:{title:"请输入保存的名称",visible:e.prompt.visible},on:{cancel:function(t){e.prompt.visible=!1},ok:e.handlePromptOk}},[n("a-input",{model:{value:e.prompt.value,callback:function(t){e.$set(e.prompt,"value",t)},expression:"prompt.value"}})],1)],2)],2)},i=[],a=n("c1df"),o=n.n(a),s=n("ca00"),l=n("ac0d"),c=n("2dab"),u=n("fe54"),d=n("0f9d"),h=n("f680"),f=n("9e8f");function p(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=g(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function g(e,t){if(e){if("string"===typeof e)return m(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?m(e,t):void 0}}function m(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var _={name:"JSuperQuery",mixins:[l["b"]],components:{JAreaLinkage:f["default"],JMultiSelectTag:h["default"],JDate:c["default"],JSelectDepart:u["default"],JSelectMultiUser:d["default"]},props:{fieldList:{type:Array,required:!0},callback:{type:String,required:!1,default:"handleSuperQuery"},loading:{type:Boolean,default:!1},saveCode:{type:String,default:null}},data:function(){var e=this.$createElement;return{moment:o.a,fieldTreeData:[],prompt:{visible:!1,value:""},visible:!1,queryParamsModel:[],treeIcon:e("a-icon",{attrs:{type:"file-text"}}),saveTreeData:[],saveCodeBefore:"JSuperQuerySaved_",matchType:"and",superQueryFlag:!1}},computed:{izMobile:function(){return"mobile"===this.device},tooltipProps:function(){return this.izMobile?{visible:!1}:{}},fullSaveCode:function(){var e=this.saveCode;return null!=e&&""!==e||(e=this.$route.fullPath),this.saveCodeBefore+e}},watch:{fullSaveCode:{immediate:!0,handler:function(){var e=this,t=this.$ls.get(this.fullSaveCode);t instanceof Array&&(this.saveTreeData=t.map((function(t){return e.renderSaveTreeData(t)})))}},fieldList:{deep:!0,immediate:!0,handler:function(e){var t=[],n=[];e.forEach((function(e){var r=y({},e);r.label=r.label||r.text;var i=r.children instanceof Array;r.disabled=i,r.selectable=!i,i?(r.children=r.children.map((function(e){var t=y({},e);return t.label=t.label||t.text,t.label=r.label+"-"+t.label,t.value=r.value+","+t.value,t.val="",t})),r.val="",n.push(r)):t.push(r)})),this.fieldTreeData=t.concat(n)}}},methods:{show:function(){this.queryParamsModel&&0!==this.queryParamsModel.length||this.resetLine(),this.visible=!0},handleOk:function(){if(this.isNullArray(this.queryParamsModel))this.$message.warn("不能查询空条件");else{var e={matchType:this.matchType,params:this.removeEmptyObject(this.queryParamsModel)};this.izMobile&&(this.visible=!1),this.emitCallback(e)}},emitCallback:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.params,n=void 0===t?[]:t,r=e.matchType,i=void 0===r?this.matchType:r;this.superQueryFlag=n&&n.length>0;var a,o=p(n);try{for(o.s();!(a=o.n()).done;){var s=a.value;Array.isArray(s.val)&&(s.val=s.val.join(","))}}catch(l){o.e(l)}finally{o.f()}this.$emit(this.callback,n,i)},handleCancel:function(){this.close()},close:function(){this.$emit("close"),this.visible=!1},handleAdd:function(){this.addNewLine()},addNewLine:function(){this.queryParamsModel.push({rule:"eq"})},resetLine:function(){this.superQueryFlag=!1,this.queryParamsModel=[],this.addNewLine()},handleDel:function(e){this.queryParamsModel.splice(e,1)},handleSelected:function(e,t){var n=e.dataRef,r=n.type,i=n.options,a=n.dictCode,o=n.dictTable,s=n.customReturnField,l=n.popup;t["type"]=r,t["options"]=i,t["dictCode"]=a,t["dictTable"]=o,t["customReturnField"]=s,l&&(t["popup"]=l),this.$set(t,"val",void 0)},handleOpen:function(){this.show()},handleReset:function(){this.resetLine(),this.emitCallback()},handleSave:function(){var e=this.removeEmptyObject(this.queryParamsModel);this.isNullArray(e)?this.$message.warning("空条件不能保存"):(this.prompt.value="",this.prompt.visible=!0)},handlePromptOk:function(){var e=this,t=this.prompt.value;if(t){var n=this.removeEmptyObject(this.queryParamsModel),r=this.saveTreeData.filter((function(e){return e.originTitle===t}));r.length>0?this.$confirm({content:"".concat(t," 已存在,是否覆盖?"),onOk:function(){e.prompt.visible=!1,r[0].records=n,e.saveToLocalStore(),e.$message.success("保存成功")}}):(this.prompt.visible=!1,this.saveTreeData.push(this.renderSaveTreeData({title:t,matchType:this.matchType,records:n})),this.saveToLocalStore(),this.$message.success("保存成功"))}else this.$message.warning("保存名称不能为空")},handleTreeSelect:function(e,t){if(t.selectedNodes[0]){var n=t.selectedNodes[0].data.props,r=n.matchType,i=n.records;this.matchType=r||this.matchType,this.queryParamsModel=s["b"](i)}},handleRemoveSaveTreeItem:function(e,t){var n=this;e.stopPropagation(),this.$confirm({content:"是否删除当前查询?",onOk:function(){var e=t.eventKey;n.saveTreeData.splice(Number.parseInt(e.substring(2)),1),n.saveToLocalStore()}})},saveToLocalStore:function(){var e=this.saveTreeData.map((function(e){var t=e.originTitle,n=e.matchType,r=e.records;return{title:t,matchType:n,records:r}}));this.$ls.set(this.fullSaveCode,e)},isNullArray:function(e){if(!e||0===e.length)return!0;if(1===e.length){var t=e[0];if(!t.field||null==t.val||""===t.val||!t.rule)return!0}return!1},removeEmptyObject:function(e){for(var t=s["b"](e),n=0;n<t.length;n++){var r=t[n];null==r||Object.keys(r).length<=0?t.splice(n--,1):Array.isArray(r.options)&&r.dictCode&&delete r.options}return t},renderSaveTreeData:function(e){var t=this,n=this.$createElement;return e.icon=this.treeIcon,e.originTitle=e["title"],e.title=function(e,r){var i;if(e.dataRef)i=e;else{if(!r.dataRef)return n("span",{style:"color:red;"},["Antdv版本不支持"]);i=r}var a=i.dataRef.originTitle;return n("div",{class:"j-history-tree-title"},[n("span",[a]),n("div",{class:"j-history-tree-title-closer",on:{click:function(e){return t.handleRemoveSaveTreeItem(e,i)}}},[n("a-icon",{attrs:{type:"close-circle"}})])])},e},allowMultiple:function(e){return"in"===e.rule},handleRuleChange:function(e,t){var n=e.rule;if(this.$set(e,"rule",t),"in"===n&&(e.dictCode||e.options instanceof Array)){var r=e.val;"string"===typeof e.val?r=e.val.split(",")[0]:Array.isArray(e.val)&&(r=e.val[0]),this.$set(e,"val",r)}},handleChangeJPopup:function(e,t,n){e.val=n[e.popup["destFields"]]}}},w=_,C=(n("adfa"),n("2877")),E=Object(C["a"])(w,r,i,!1,null,"6911ec13",null);t["default"]=E.exports},"92e9":function(e,t,n){e.exports={pca:n("bfa9"),pcaa:n("0eff")}},9533:function(e,t,n){"use strict";var r=n("e636"),i=n.n(r);i.a},"9b3e":function(e,t,n){"use strict";var r=n("2ad6"),i=n.n(r);i.a},"9e8f":function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"j-area-linkage"},[e.reloading?n("div",[n("span",[e._v(" Reloading... ")])]):e._type===e.enums.type[0]?n("area-cascader",e._g(e._b({style:{width:e.width},attrs:{value:e.innerValue,data:e.pcaa,level:1},on:{change:e.handleChange}},"area-cascader",e.$attrs,!1),e._listeners)):e._type===e.enums.type[1]?n("area-select",e._g(e._b({attrs:{value:e.innerValue,data:e.pcaa,level:2},on:{change:e.handleChange}},"area-select",e.$attrs,!1),e._listeners)):n("div",[n("span",{staticStyle:{color:"red"}},[e._v(" Bad type value: "+e._s(e._type))])])],1)},i=[],a=n("92e9");function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function c(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t,n){return t&&u(e.prototype,t),n&&u(e,n),e}var h=function(){function e(){c(this,e);var t=[],n=a["pcaa"]["86"];Object.keys(n).map((function(e){t.push({id:e,text:n[e],pid:"86"});var r=a["pcaa"][e];Object.keys(r).map((function(n){t.push({id:n,text:r[n],pid:e});var i=a["pcaa"][n];Object.keys(i).map((function(e){t.push({id:e,text:i[e],pid:n})}))}))})),this.all=t}return d(e,[{key:"getCode",value:function(e){if(!e||0==e.length)return"";var t,n=o(this.all);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.text===e)return r.id}}catch(i){n.e(i)}finally{n.f()}}},{key:"getText",value:function(e){if(!e||0==e.length)return"";var t=[];return this.getAreaBycode(e,t),t.join("/")}},{key:"getRealCode",value:function(e){var t=[];return this.getPcode(e,t),t}},{key:"getPcode",value:function(e,t){var n,r=o(this.all);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.id===e&&(t.unshift(e),"86"!=i.pid&&this.getPcode(i.pid,t))}}catch(a){r.e(a)}finally{r.f()}}},{key:"getAreaBycode",value:function(e,t){var n,r=o(this.all);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.id===e&&(t.unshift(i.text),this.getAreaBycode(i.pid,t))}}catch(a){r.e(a)}finally{r.f()}}},{key:"pca",get:function(){return this.all}}]),e}();function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m={name:"JAreaLinkage",props:{value:{type:String,required:!1},type:{type:String,default:"cascader"},width:{type:String,default:"100%"}},data:function(){return{pcaa:a["pcaa"],innerValue:[],usedListeners:["change"],enums:{type:["cascader","select"]},reloading:!1,areaData:""}},computed:{_listeners:function(){var e=p({},this.$listeners);return this.usedListeners.forEach((function(t){delete e[t]})),e},_type:function(){return this.enums.type.includes(this.type)?this.type:this.enums.type[0]}},watch:{value:{immediate:!0,handler:function(){this.loadDataByValue(this.value)}}},created:function(){this.initAreaData()},methods:{reload:function(){var e=this;this.reloading=!0,this.$nextTick((function(){return e.reloading=!1}))},loadDataByValue:function(e){if(e&&0!==e.length){this.initAreaData();var t=this.areaData.getRealCode(e);this.innerValue=t}else this.innerValue=[];this.reload()},loadDataByCode:function(e){var t=[],n=a["pcaa"][e];if(n){for(var r in n)n.hasOwnProperty(r)&&t.push({value:r,label:n[r]});return t}return[]},hasChildren:function(e){var t=this;e.forEach((function(e){var n=t.loadDataByCode(e.value);e.isLeaf=0===n.length}))},handleChange:function(e){var t=e[e.length-1];this.$emit("change",t)},initAreaData:function(){this.areaData||(this.areaData=new h)}},model:{prop:"value",event:"change"}},v=m,y=(n("1e39"),n("2877")),b=Object(y["a"])(v,r,i,!1,null,"2162cbc8",null);t["default"]=b.exports},"9ee5":function(e,t,n){"use strict";var r=n("3c53"),i=n.n(r);i.a},a0ae:function(e,t,n){
/*!
 * @toast-ui/editor
 * @version 2.2.0 | Tue Jun 16 2020
 * @author NHN FE Development Lab <dl_javascript@nhn.com>
 * @license MIT
 */
(function(t,r){e.exports=r(n("56b3"))})(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=65)}([function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(8),o=n.n(a),s=n(9),l=n.n(s),c=n(3),u=n.n(c),d=n(5),h=n.n(d),f=n(6),p=n.n(f),g=n(16),m=n.n(g),v=n(13),y=n.n(v),b=/\u200B/g,_=window,w=_.getComputedStyle,C=function(e){return e&&e.nodeType===Node.TEXT_NODE},E=function(e){return e&&e.nodeType===Node.ELEMENT_NODE},S=function(e){return/^(ADDRESS|ARTICLE|ASIDE|BLOCKQUOTE|DETAILS|DIALOG|DD|DIV|DL|DT|FIELDSET|FIGCAPTION|FIGURE|FOOTER|FORM|H[\d]|HEADER|HGROUP|HR|LI|MAIN|NAV|OL|P|PRE|SECTION|UL)$/gi.test(this.getNodeName(e))},T=function(e){return E(e)?e.tagName:"TEXT"},k=function(e){var t;return E(e)?t=e.textContent.replace(b,"").length:C(e)&&(t=e.nodeValue.replace(b,"").length),t},N=function(e){var t;return E(e)?t=e.childNodes.length:C(e)&&(t=e.nodeValue.replace(b,"").length),t},x=function(e){var t,n,r,i=e.parentNode.childNodes;for(t=0,n=i.length;t<n;t+=1)if(i[t]===e){r=t;break}return r},L=function(e,t){var n;return C(e)?n=e:e.childNodes.length&&t>=0&&(n=e.childNodes[t]),n},O=function(e,t,n){var r,i,a=e+"Sibling";while(t&&!t[a]){if(r=T(t.parentNode),r===n||"BODY"===r)break;t=t.parentNode}return t[a]&&(i=t[a]),i},M=function(e,t,n){var r;return r=t>0?L(e,t-1):O("previous",e,n),r},A=function(e,t,n){var r;while(e.parentNode&&!t(e.parentNode))if(e=e.parentNode,n&&n(e.parentNode))break;return t(e.parentNode)&&(r=e),r},D=function(e,t){var n;return n=l()(t)?A(e,(function(e){return t===T(e)})):A(e,(function(e){return t===e})),n},B=function(e,t,n){var r,i=e+"Sibling";return t=D(t,n),t&&t[i]&&(r=t[i]),r},I=function(e,t){return B("previous",e,t)},R=function(e,t){return B("next",e,t)},P=function(e){return D(e,"BODY")},F=function(e){e=e.previousSibling||e.parentNode;while(!C(e)&&"BODY"!==T(e))if(e.previousSibling){e=e.previousSibling;while(e.lastChild)e=e.lastChild}else e=e.parentNode;return"BODY"===T(e)&&(e=null),e},H=function(e,t){var n=document.createTreeWalker(e,4,null,!1),r=e===t;while(!r&&n.nextNode())r=n.currentNode===t;return r},j=function(e,t,n){var r,i=[],a="",s=0;if(!t.length)return i;var l=t.shift(),c=document.createTreeWalker(e,4,null,!1);while(c.nextNode()){a=c.currentNode.nodeValue||"",n&&(a=n(a)),r=s+a.length;while(r>=l){if(i.push({container:c.currentNode,offsetInContainer:l-s,offset:l}),!t.length)return i;l=t.shift()}s=r}do{i.push({container:c.currentNode,offsetInContainer:a.length,offset:l}),l=t.shift()}while(!o()(l));return i},U=function(e){var t={};t.tagName=e.nodeName,e.id&&(t.id=e.id);var n=e.className.trim();return n&&(t.className=n),t},q=function(e,t){var n=[];while(e&&e!==t)E(e)&&n.unshift(U(e)),e=e.parentNode;return n},V=function(e,t){var n=null;return o()(t)||"next"!==t&&"previous"!==t||(n="next"===t?e.nextElementSibling:e.previousElementSibling),n},W=function(e,t,n){var r,i,a,s,l,c=null;return o()(t)||"next"!==t&&"previous"!==t||e&&("next"===t?(i=e.parentNode&&e.parentNode.nextSibling,a=me(e,"thead"),s=a[0]&&a[0].nextSibling,l=s&&"TBODY"===T(s),r=0):(i=e.parentNode&&e.parentNode.previousSibling,a=me(e,"tbody"),s=a[0]&&a[0].previousSibling,l=s&&"THEAD"===T(s),r=e.parentNode.childNodes.length-1),!o()(n)&&n||(r=x(e)),i?c=ye(i,"td,th")[r]:a[0]&&l&&(c=he(s,"td,th")[r])),c},$=function(e){return/^(A|B|BR|CODE|DEL|EM|I|IMG|S|SPAN|STRONG)$/gi.test(e.nodeName)},z=function(e){return/^(A|ABBR|ACRONYM|B|BDI|BDO|BIG|CITE|CODE|DEL|DFN|EM|I|INS|KBD|MARK|Q|S|SAMP|SMALL|SPAN|STRONG|SUB|SUP|U|VAR)$/gi.test(e.nodeName)},K=function(e,t,n){var r=t;if(r&&e===r.parentNode)while(r!==n){var i=r.nextSibling;e.removeChild(r),r=i}},G=function(e,t,n){var r=t;while(r!==e){var i=r.parentNode,a=r,o=a.nextSibling,s=a.previousSibling;!n&&o?K(i,o,null):n&&s&&K(i,i.childNodes[0],r),r=i}},J=function(e){var t=e;while(t.childNodes&&t.childNodes.length){var n=t,r=n.firstChild;t=C(r)&&!k(r)&&r.nextSibling||r}return t},Q=function(e,t,n){var r={left:parseInt(e.left,10),top:parseInt(e.top,10),width:parseInt(e.width,10),height:parseInt(e.height,10)};return t>=r.left&&t<=r.left+r.width&&n>=r.top&&n<=r.top+r.height},Y=function(e){return!!e&&("UL"===e.nodeName||"OL"===e.nodeName)},X=function(e){var t=e.nodeName,n=e.parentNode;return"LI"===t&&e===n.firstChild},Z=function(e){var t=e.nodeName,n=e.parentNode,r=n.parentNode;return"LI"===t&&!Y(r)},ee=function(e,t){e.hasChildNodes()&&(i()(e.childNodes).forEach((function(){t.appendChild(e.firstChild)})),t.normalize()),e.parentNode&&e.parentNode.removeChild(e)},te=function(){var e=document.createElement("div"),t=document.createElement("hr");return e.setAttribute("contenteditable",!1),t.setAttribute("contenteditable",!1),e.appendChild(t),e},ne=function(){var e=document.createElement("div");return e.appendChild(document.createElement("br")),e},re=function(e,t){if("SPAN"!==e.nodeName){var n=e.parentNode,r=e;while(r.childNodes&&1===r.childNodes.length&&!C(r.firstChild)){if(r=r.firstChild,"SPAN"===r.nodeName)break;if(r.nodeName===t){var i=document.createElement(t);return ee(r,r.parentNode),n.replaceChild(i,e),i.appendChild(e),i}}}return e},ie=function(e,t,n){var r=re(e,n);if(r.nodeName===n){var i=re(t,n),a=r,o=r.nextSibling;while(o){var s=o.nextSibling;if(o=re(o,n),o.nodeName===n?a?ee(o,a):a=o:a=null,o===i)break;o=s}}},ae=function(e,t){var n=e.collapsed,r=e.commonAncestorContainer,i=e.startContainer,a=e.endContainer;if(!n){var o=null;if(i!==a){var s=D(i,r),l=D(a,r);s&&l&&ie(s,l,t),o=r}else C(i)&&(o=i.parentNode);if(o&&o.nodeName===t){var c,u=o,d=u.previousSibling;d&&(c=re(d),c.nodeName===t&&ee(o,c));var h=o,f=h.nextSibling;f&&(c=re(f),c.nodeName===t&&ee(c,o))}}},oe=function(e){var t=document.createTreeWalker(e,4,null,!1),n=[];while(t.nextNode()){var r=t.currentNode;C(r)&&n.push(r)}return n},se=function(e){return!!e&&("TD"===e.nodeName||"TH"===e.nodeName)},le=function(e,t){var n=e&&e.lastChild;while(n&&t(n))n=n.lastChild;return n},ce=function(e,t){while(e&&t(e.parentNode,e))e=e.parentNode;return e},ue=function(e,t,n){var r=t+"Sibling";while(e&&n(e[r],e))e=e[r];return e};function de(e,t){var n=document.createElement("div");l()(e)?n.innerHTML=e:n.appendChild(e);var r=n.firstChild;return t&&t.appendChild(r),r}function he(e,t){var n=i()(e.querySelectorAll(t));return n.length?n:[]}function fe(e,t){return e!==t&&e.contains(t)}function pe(e,t){var n;n=l()(t)?function(e){return y()(e,t)}:function(e){return e===t};while(e&&e!==document){if(E(e)&&n(e))return e;e=e.parentNode}return null}function ge(e,t){var n=e.parentNode;return t?n&&y()(n,t)?n:null:n}function me(e,t){var n=[];while(e&&e!==document)e=pe(e.parentNode,t),e&&n.push(e);return n}function ve(e,t){var n=[];while(e.parentNode&&!y()(e.parentNode,t))e=e.parentNode,e&&n.push(e);return n}function ye(e,t){var n;return n=e.nodeType===Node.DOCUMENT_FRAGMENT_NODE?e.childNodes:e.children,i()(n).filter((function(e){return y()(e,t)}))}function be(e,t){if(l()(t))e.insertAdjacentHTML("beforeEnd",t);else{t=t.length?i()(t):[t];for(var n=0,r=t.length;n<r;n+=1)e.appendChild(t[n])}}function _e(e,t){if(l()(t))e.insertAdjacentHTML("afterBegin",t);else{t=t.length?i()(t):[t];for(var n=t.length-1,r=0;n>=r;n-=1)e.insertBefore(t[n],e.firstChild)}}function we(e,t){var n=t.parentNode;n&&n.insertBefore(e,t)}function Ce(e,t){var n=t.parentNode;n&&n.insertBefore(e,t.nextSibling)}function Ee(e,t){e=e.length?i()(e):[e],e.forEach((function(e){e.insertAdjacentHTML("afterEnd",t),e.parentNode.removeChild(e)}))}function Se(e,t){e=e.length?i()(e):[e],e.forEach((function(e){var n=document.createElement(t);e.parentNode.insertBefore(n,e),n.appendChild(e)}))}function Te(e,t){e=e.length?i()(e):[e],e.forEach((function(e){var n=document.createElement(t);e.appendChild(n);while(e.firstChild!==n)n.appendChild(e.firstChild)}))}function ke(e){var t=[];while(e.firstChild)t.push(e.firstChild),e.parentNode.insertBefore(e.firstChild,e);return Ne(e),t}function Ne(e){e.parentNode&&e.parentNode.removeChild(e)}function xe(e){while(e.firstChild)e.removeChild(e.firstChild)}function Le(e,t){var n=e.parentNode.getBoundingClientRect(),r=n.top,i=n.left;u()(e,{top:t.top-r-document.body.scrollTop+"px"}),u()(e,{left:t.left-i-document.body.scrollLeft+"px"})}function Oe(e,t){void 0===t&&(t="document");var n=0,r=0;do{n+=e.offsetTop||0,r+=e.offsetLeft||0,e=e.offsetParent}while(e&&!y()(e,t));return{top:n,left:r}}function Me(e,t){var n=e.offsetWidth;if(t){var r=w(e),i=r.marginLeft,a=r.marginRight;n+=parseInt(i,10)+parseInt(a,10)}return n}function Ae(e,t){var n=e.offsetHeight;if(t){var r=w(e),i=r.marginTop,a=r.marginBottom;n+=parseInt(i,10)+parseInt(a,10)}return n}var De=function(e,t,n){o()(n)&&(n=!m()(e,t));var r=n?h.a:p.a;r(e,t)};function Be(e,t){var n;if(t)n=e.innerHTML;else{for(var r=document.createDocumentFragment(),a=i()(e.childNodes),o=a.length,s=0;s<o;s+=1)r.appendChild(a[s]);n=r}return n}t["a"]={getNodeName:T,isTextNode:C,isElemNode:E,isBlockNode:S,getTextLength:k,getOffsetLength:N,getPrevOffsetNodeUntil:M,getNodeOffsetOfParent:x,getChildNodeByOffset:L,getNodeWithDirectionUntil:O,containsNode:H,getTopPrevNodeUnder:I,getTopNextNodeUnder:R,getParentUntilBy:A,getParentUntil:D,getTopBlockNode:P,getPrevTextNode:F,findOffsetNode:j,getPath:q,getNodeInfo:U,getTableCellByDirection:V,getSiblingRowCellByDirection:W,isMDSupportInlineNode:$,isStyledNode:z,removeChildFromStartToEndNode:K,removeNodesByDirection:G,getLeafNode:J,isInsideTaskBox:Q,isListNode:Y,isFirstListItem:X,isFirstLevelListItem:Z,mergeNode:ee,createHorizontalRule:te,createEmptyLine:ne,changeTagOrder:re,mergeSameNodes:ie,optimizeRange:ae,getAllTextNode:oe,isCellNode:se,getLastNodeBy:le,getParentNodeBy:ce,getSiblingNodeBy:ue,createElementWith:de,findAll:he,isContain:fe,closest:pe,parent:ge,parents:me,parentsUntil:ve,children:ye,append:be,prepend:_e,insertBefore:we,insertAfter:Ce,replaceWith:Ee,wrap:Se,wrapInner:Te,unwrap:ke,remove:Ne,empty:xe,setOffset:Le,getOffset:Oe,getOuterWidth:Me,getOuterHeight:Ae,toggleClass:De,finalizeHtml:Be}},function(e,t,n){"use strict";var r=n(7),i=n.n(r),a=function(){function e(e,t,n){this.name=e,this.type=t,n&&this.setKeyMap(n)}var t=e.prototype;return t.getName=function(){return this.name},t.getType=function(){return this.type},t.isMDType=function(){return this.type===e.TYPE.MD},t.isWWType=function(){return this.type===e.TYPE.WW},t.isGlobalType=function(){return this.type===e.TYPE.GB},t.setKeyMap=function(e,t){this.keyMap=[e,t]},e}();a.factory=function(e,t){var n;"markdown"===e?n=a.TYPE.MD:"wysiwyg"===e?n=a.TYPE.WW:"global"===e&&(n=a.TYPE.GB);var r=new a(t.name,n);return i()(r,t),r},a.TYPE={MD:0,WW:1,GB:2};var o=a,s=n(12),l=n(23),c=s["b"]?1:0,u=function(){function e(e,t){void 0===t&&(t={}),this._command=new l["a"],this._mdCommand=new l["a"],this._wwCommand=new l["a"],this._options=i()({useCommandShortcut:!0},t),this.base=e,this.keyMapCommand={},this._initEvent()}var t=e.prototype;return t._addCommandBefore=function(e){var t={command:e};return this.base.eventManager.emit("addCommandBefore",t),t.command||e},t.addCommand=function(t){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];r.length&&(t=e.command.apply(e,[t].concat(r))),t=this._addCommandBefore(t);var a,o=t.getName();return t.isMDType()?a=this._mdCommand:t.isWWType()?a=this._wwCommand:t.isGlobalType()&&(a=this._command),a.set(o,t),t.keyMap&&(this.keyMapCommand[t.keyMap[c]]=o),t},t._initEvent=function(){var e=this;this.base.eventManager.listen("command",(function(){e.exec.apply(e,arguments)})),this.base.eventManager.listen("keyMap",(function(t){if(e._options.useCommandShortcut){var n=e.keyMapCommand[t.keyMap];n&&(t.data.preventDefault(),e.exec(n))}}))},t.exec=function(e){var t,n,r=this.base;if(t=this._command.get(e),t||(this.base.isMarkdownMode()?(t=this._mdCommand.get(e),r=this.base.mdEditor):(t=this._wwCommand.get(e),r=this.base.wwEditor)),t){for(var i,a=arguments.length,o=new Array(a>1?a-1:0),s=1;s<a;s++)o[s-1]=arguments[s];o.unshift(r),n=(i=t).exec.apply(i,o)}return n},e}();u.command=function(e,t){var n=o.factory(e,t.name,t.keyMap);return i()(n,t),n};t["a"]=u},function(e,t,n){"use strict";var r=n(21);function i(e){var t;try{t=Array.prototype.slice.call(e)}catch(n){t=[],r(e,(function(e){t.push(e)}))}return t}e.exports=i},function(e,t,n){"use strict";var r=n(9),i=n(26);function a(e,t,n){var a=e.style;r(t)?a[t]=n:i(t,(function(e,t){a[t]=e}))}e.exports=a},function(e,t,n){"use strict";n.d(t,"f",(function(){return r})),n.d(t,"d",(function(){return i})),n.d(t,"e",(function(){return a})),n.d(t,"c",(function(){return o})),n.d(t,"j",(function(){return s})),n.d(t,"g",(function(){return l})),n.d(t,"k",(function(){return c})),n.d(t,"i",(function(){return u})),n.d(t,"h",(function(){return d})),n.d(t,"b",(function(){return h})),n.d(t,"m",(function(){return f})),n.d(t,"a",(function(){return p})),n.d(t,"l",(function(){return g}));n(12);function r(e){return e.sourcepos[0][0]}function i(e){return e.sourcepos[1][0]}function a(e){return e.sourcepos[0][1]}function o(e){return e.sourcepos[1][1]}function s(e){var t=e.type;return"codeBlock"===t||"paragraph"===t}function l(e){var t=e.type;return"htmlBlock"===t||"htmlInline"===t}function c(e){var t=e.type;return"strike"===t||"strong"===t||"emph"===t}function u(e){return"item"===e.type}function d(e){switch(e.type){case"code":case"text":case"emph":case"strong":case"strike":case"link":case"image":case"htmlInline":case"linebreak":case"softbreak":return!0;default:return!1}}function h(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type){if(t(e))return e;e=e.parent}return null}function f(e,t,n){void 0===n&&(n=!0),e=n?e:e.parent;while(e&&"document"!==e.type)t(e),e=e.parent}function p(e,t){return{line:e.line,ch:e.ch+t}}function g(e,t){return{line:e.line,ch:t}}},function(e,t,n){"use strict";var r=n(26),i=n(14),a=n(33),o=n(39);function s(e){var t,n=Array.prototype.slice.call(arguments,1),s=e.classList,l=[];s?r(n,(function(t){e.classList.add(t)})):(t=a(e),t&&(n=[].concat(t.split(/\s+/),n)),r(n,(function(e){i(e,l)<0&&l.push(e)})),o(e,l))}e.exports=s},function(e,t,n){"use strict";var r=n(21),i=n(14),a=n(33),o=n(39);function s(e){var t,n,s=Array.prototype.slice.call(arguments,1),l=e.classList;l?r(s,(function(e){l.remove(e)})):(t=a(e).split(/\s+/),n=[],r(t,(function(e){i(e,s)<0&&n.push(e)})),o(e,n))}e.exports=s},function(e,t,n){"use strict";function r(e,t){var n,r,i,a,o=Object.prototype.hasOwnProperty;for(i=1,a=arguments.length;i<a;i+=1)for(r in n=arguments[i],n)o.call(n,r)&&(e[r]=n[r]);return e}e.exports=r},function(e,t,n){"use strict";function r(e){return void 0===e}e.exports=r},function(e,t,n){"use strict";function r(e){return"string"===typeof e||e instanceof String}e.exports=r},function(e,t,n){"use strict";function r(e,t,n){var r;for(r in n=n||null,e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))break}e.exports=r},function(e,t,n){"use strict";var r={chrome:!1,firefox:!1,safari:!1,msie:!1,edge:!1,others:!1,version:0};function i(){var e,t,n=window.navigator,i=n.appName.replace(/\s/g,"_"),a=n.userAgent,o=/MSIE\s([0-9]+[.0-9]*)/,s=/Trident.*rv:11\./,l=/Edge\/(\d+)\./,c={firefox:/Firefox\/(\d+)\./,chrome:/Chrome\/(\d+)\./,safari:/Version\/([\d.]+).*Safari\/(\d+)/},u={Microsoft_Internet_Explorer:function(){var e=a.match(o);e?(r.msie=!0,r.version=parseFloat(e[1])):r.others=!0},Netscape:function(){var n=!1;if(s.exec(a))r.msie=!0,r.version=11,n=!0;else if(l.exec(a))r.edge=!0,r.version=a.match(l)[1],n=!0;else for(e in c)if(c.hasOwnProperty(e)&&(t=a.match(c[e]),t&&t.length>1)){r[e]=n=!0,r.version=parseFloat(t[1]||0);break}n||(r.others=!0)}},d=u[i];d&&u[i]()}"undefined"!==typeof window&&window.navigator&&i(),e.exports=r},function(e,t,n){"use strict";n.d(t,"b",(function(){return s})),n.d(t,"d",(function(){return l})),n.d(t,"a",(function(){return c})),n.d(t,"c",(function(){return d}));var r=n(8),i=n.n(r),a=n(43),o=n.n(a),s=/Mac/.test(navigator.platform);function l(){o()("editor","UA-129966929-1")}function c(e,t){return-1!==e.indexOf(t)}var u=["rel","target","contenteditable","hreflang","type"];function d(e){if(!e)return null;var t={};return u.forEach((function(n){i()(e[n])||(t[n]=e[n])})),t}},function(e,t,n){"use strict";var r=n(14),i=n(2),a=Element.prototype,o=a.matches||a.webkitMatchesSelector||a.mozMatchesSelector||a.msMatchesSelector||function(e){var t=this.document||this.ownerDocument;return r(this,i(t.querySelectorAll(e)))>-1};function s(e,t){return o.call(e,t)}e.exports=s},function(e,t,n){"use strict";var r=n(17);function i(e,t,n){var i,a;if(n=n||0,!r(t))return-1;if(Array.prototype.indexOf)return Array.prototype.indexOf.call(t,e,n);for(a=t.length,i=n;n>=0&&i<a;i+=1)if(t[i]===e)return i;return-1}e.exports=i},function(t,n){t.exports=e},function(e,t,n){"use strict";var r=n(14),i=n(33);function a(e,t){var n;return e.classList?e.classList.contains(t):(n=i(e).split(/\s+/),r(t,n)>-1)}e.exports=a},function(e,t,n){"use strict";function r(e){return e instanceof Array}e.exports=r},function(e,t,n){"use strict";n.d(t,"h",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"f",(function(){return u})),n.d(t,"c",(function(){return f})),n.d(t,"e",(function(){return p})),n.d(t,"g",(function(){return g})),n.d(t,"a",(function(){return m})),n.d(t,"d",(function(){return y}));var r=n(12),i=n(4),a=["list","blockQuote"],o=["UL","OL","BLOCKQUOTE"],s=["TR","TH","TBODY","TD"];function l(e){return!Object(r["a"])(a,e.type)}function c(e,t,n,r){var i=(e-t)/n;return i<1?i*r:r}function u(e){var t=document.querySelector('[data-nodeid="'+e.id+'"]');while(!t||Object(r["a"])(s,e.type)||Object(i["k"])(e))e=e.parent,t=document.querySelector('[data-nodeid="'+e.id+'"]');return h(d(e))}function d(e){var t=e;while(e&&"document"!==e){if("item"===e.type){t=e;break}e=e.parent}return{mdNode:t,node:document.querySelector('[data-nodeid="'+t.id+'"]')}}function h(e){var t=e.mdNode,n=e.node;while(Object(r["a"])(a,t.type)&&t.firstChild)t=t.firstChild,n=n.firstElementChild;return{mdNode:t,node:n}}function f(e,t){var n=Object(i["f"])(e),r=Object(i["d"])(e),a=t.lineInfo(n-1).handle.height,o=t.heightAtLine(r,"local")-t.heightAtLine(n-1,"local");return o<=0?a:o+p(t,Object(i["d"])(e))}function p(e,t,n){void 0===n&&(n=Number.MAX_VALUE);var r=e.lineInfo(t);if(!r)return 0;var i=r.handle,a=0;while(t<=n&&!i.text.trim())a+=i.height,t+=1,i=e.lineInfo(t).handle;return a}function g(e,t){var n=0;while(e&&e!==t){if(Object(r["a"])(o,e.tagName)||(n+=e.offsetTop),e.offsetParent===t.offsetParent)break;e=e.parentElement}return n}function m(e,t){var n=t,r=null;while(n){var i=n,a=i.firstElementChild;if(!a)break;var o=v(a,e,g(n,t));r=n,n=o}var s=n||r;return s===t?null:s}function v(e,t,n){return e&&t>n+e.offsetTop?v(e.nextElementSibling,t,n)||e:null}function y(e){var t=e.latestScrollTop,n=e.scrollTop,r=e.targetScrollTop,i=e.sourceScrollTop;return null===t?r:t<n?Math.max(r,i):Math.min(r,i)}},function(e,t,n){"use strict";var r=n(9),i=n(26),a=n(40);function o(e,t,n,a){r(t)?i(t.split(/\s+/g),(function(t){s(e,t,n,a)})):i(t,(function(t,r){s(e,r,t,n)}))}function s(e,t,n,r){function i(t){n.call(r||e,t||window.event)}"addEventListener"in e?e.addEventListener(t,i):"attachEvent"in e&&e.attachEvent("on"+t,i),l(e,t,n,i)}function l(e,t,n,r){var o=a(e,t),s=!1;i(o,(function(e){return e.handler!==n||(s=!0,!1)})),s||o.push({handler:n,wrappedHandler:r})}e.exports=o},function(e,t,n){"use strict";var r=n(9),i=n(26),a=n(40);function o(e,t,n){r(t)?i(t.split(/\s+/g),(function(t){s(e,t,n)})):i(t,(function(t,n){s(e,n,t)}))}function s(e,t,n){var r,o=a(e,t);n?(i(o,(function(i,a){return n!==i.handler||(l(e,t,i.wrappedHandler),r=a,!1)})),o.splice(r,1)):(i(o,(function(n){l(e,t,n.wrappedHandler)})),o.splice(0,o.length))}function l(e,t,n){"removeEventListener"in e?e.removeEventListener(t,n):"detachEvent"in e&&e.detachEvent("on"+t,n)}e.exports=o},function(e,t,n){"use strict";function r(e,t,n){var r=0,i=e.length;for(n=n||null;r<i;r+=1)if(!1===t.call(n,e[r],r,e))break}e.exports=r},function(e,t){!function(e,t){for(var n in t)e[n]=t[n]}(t,function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="/dist",n(n.s=10)}([function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",(function(){return i})),n.d(t,"__assign",(function(){return a})),n.d(t,"__rest",(function(){return o})),n.d(t,"__decorate",(function(){return s})),n.d(t,"__param",(function(){return l})),n.d(t,"__metadata",(function(){return c})),n.d(t,"__awaiter",(function(){return u})),n.d(t,"__generator",(function(){return d})),n.d(t,"__exportStar",(function(){return h})),n.d(t,"__values",(function(){return f})),n.d(t,"__read",(function(){return p})),n.d(t,"__spread",(function(){return g})),n.d(t,"__spreadArrays",(function(){return m})),n.d(t,"__await",(function(){return v})),n.d(t,"__asyncGenerator",(function(){return y})),n.d(t,"__asyncDelegator",(function(){return b})),n.d(t,"__asyncValues",(function(){return _})),n.d(t,"__makeTemplateObject",(function(){return w})),n.d(t,"__importStar",(function(){return C})),n.d(t,"__importDefault",(function(){return E}));
/*! *****************************************************************************
Copyright (c) Microsoft Corporation. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at http://www.apache.org/licenses/LICENSE-2.0
 
THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
MERCHANTABLITY OR NON-INFRINGEMENT.
 
See the Apache Version 2.0 License for specific language governing permissions
and limitations under the License.
***************************************************************************** */
var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function i(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var a=function(){return(a=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function o(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}function s(e,t,n,r){var i,a=arguments.length,o=a<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,n,r);else for(var s=e.length-1;s>=0;s--)(i=e[s])&&(o=(a<3?i(o):a>3?i(t,n,o):i(t,n))||o);return a>3&&o&&Object.defineProperty(t,n,o),o}function l(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function u(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(e){a(e)}}function s(e){try{l(r.throw(e))}catch(e){a(e)}}function l(e){e.done?i(e.value):new n((function(t){t(e.value)})).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function d(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"==typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===a[0]||2===a[0])){o=0;continue}if(3===a[0]&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(6===a[0]&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function h(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function f(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function p(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function g(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(p(arguments[t]));return e}function m(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var r=Array(e),i=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,i++)r[i]=a[o];return r}function v(e){return this instanceof v?(this.v=e,this):new v(e)}function y(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=n.apply(e,t||[]),a=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(e){i[e]&&(r[e]=function(t){return new Promise((function(n,r){a.push([e,t,n,r])>1||s(e,t)}))})}function s(e,t){try{(n=i[e](t)).value instanceof v?Promise.resolve(n.value.v).then(l,c):u(a[0][2],n)}catch(e){u(a[0][3],e)}var n}function l(e){s("next",e)}function c(e){s("throw",e)}function u(e,t){e(t),a.shift(),a.length&&s(a[0][0],a[0][1])}}function b(e){var t,n;return t={},r("next"),r("throw",(function(e){throw e})),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,i){t[r]=e[r]?function(t){return(n=!n)?{value:v(e[r](t)),done:"return"===r}:i?i(t):t}:i}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=f(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}function w(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function C(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=r.__importDefault(n(17));function a(e){switch(e.type){case"document":case"blockQuote":case"list":case"item":case"paragraph":case"heading":case"emph":case"strong":case"strike":case"link":case"image":case"table":case"tableHead":case"tableBody":case"tableRow":case"tableCell":case"tableDelimRow":return!0;default:return!1}}t.isContainer=a;var o=1,s={};t.getNodeById=function(e){return s[e]},t.removeNodeById=function(e){delete s[e]},t.removeAllNode=function(){s={}};var l=function(){function e(e,t){this.parent=null,this.prev=null,this.next=null,this.firstChild=null,this.lastChild=null,this.literal=null,this.id="document"===e?-1:o++,this.type=e,this.sourcepos=t,s[this.id]=this}return e.prototype.isContainer=function(){return a(this)},e.prototype.unlink=function(){this.prev?this.prev.next=this.next:this.parent&&(this.parent.firstChild=this.next),this.next?this.next.prev=this.prev:this.parent&&(this.parent.lastChild=this.prev),this.parent=null,this.next=null,this.prev=null},e.prototype.replaceWith=function(e){this.insertBefore(e),this.unlink()},e.prototype.insertAfter=function(e){e.unlink(),e.next=this.next,e.next&&(e.next.prev=e),e.prev=this,this.next=e,this.parent&&(e.parent=this.parent,e.next||(e.parent.lastChild=e))},e.prototype.insertBefore=function(e){e.unlink(),e.prev=this.prev,e.prev&&(e.prev.next=e),e.next=this,this.prev=e,e.parent=this.parent,e.prev||(e.parent.firstChild=e)},e.prototype.appendChild=function(e){e.unlink(),e.parent=this,this.lastChild?(this.lastChild.next=e,e.prev=this.lastChild,this.lastChild=e):(this.firstChild=e,this.lastChild=e)},e.prototype.prependChild=function(e){e.unlink(),e.parent=this,this.firstChild?(this.firstChild.prev=e,e.next=this.firstChild,this.firstChild=e):(this.firstChild=e,this.lastChild=e)},e.prototype.walker=function(){return new i.default(this)},e}();t.Node=l;var c=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.open=!0,r.lineOffsets=null,r.stringContent=null,r.lastLineBlank=!1,r.lastLineChecked=!1,r.type=t,r}return r.__extends(t,e),t}(l);t.BlockNode=c;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.listData=null,t}return r.__extends(t,e),t}(c);t.ListNode=u;var d=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.level=0,t.headingType="atx",t}return r.__extends(t,e),t}(c);t.HeadingNode=d;var h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.destination=null,t.title=null,t.extendedAutolink=!1,t}return r.__extends(t,e),t}(l);t.LinkNode=h;var f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.isFenced=!1,t.fenceChar=null,t.fenceLength=0,t.fenceOffset=-1,t.info=null,t.infoPadding=0,t}return r.__extends(t,e),t}(c);t.CodeBlockNode=f;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.htmlBlockType=-1,t}return r.__extends(t,e),t}(c);t.HtmlBlockNode=p;var g=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.tickCount=0,t}return r.__extends(t,e),t}(l);t.CodeNode=g;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.columns=[],t}return r.__extends(t,e),t}(c);t.TableNode=m;var v=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.startIdx=0,t.endIdx=0,t.paddingLeft=0,t.paddingRight=0,t.ignored=!1,t}return r.__extends(t,e),t}(c);t.TableCellNode=v;var y=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.title="",t.dest="",t.label="",t}return r.__extends(t,e),t}(c);function b(e,t){switch(e){case"heading":return new d(e,t);case"list":case"item":return new u(e,t);case"link":case"image":return new h(e,t);case"codeBlock":return new f(e,t);case"htmlBlock":return new p(e,t);case"table":return new m(e,t);case"tableCell":return new v(e,t);case"document":case"paragraph":case"blockQuote":case"thematicBreak":case"tableRow":case"tableBody":case"tableHead":return new c(e,t);case"code":return new g(e,t);case"refDef":return new y(e,t);default:return new l(e,t)}}t.RefDefNode=y,t.createNode=b,t.isCodeBlock=function(e){return"codeBlock"===e.type},t.isHtmlBlock=function(e){return"htmlBlock"===e.type},t.isHeading=function(e){return"heading"===e.type},t.isList=function(e){return"list"===e.type},t.isTable=function(e){return"table"===e.type},t.isRefDef=function(e){return"refDef"===e.type},t.text=function(e,t){var n=b("text",t);return n.literal=e,n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0).__importDefault(n(11)),i=n(7);t.ENTITY="&(?:#x[a-f0-9]{1,6}|#[0-9]{1,7}|[a-z][a-z0-9]{1,31});";var a=/[\\&]/;t.ESCAPABLE="[!\"#$%&'()*+,./:;<=>?@[\\\\\\]^_`{|}~-]";var o=new RegExp("\\\\"+t.ESCAPABLE+"|"+t.ENTITY,"gi"),s=new RegExp('[&<>"]',"g"),l=function(e){return 92===e.charCodeAt(0)?e.charAt(1):i.decodeHTML(e)};function c(e){switch(e){case"&":return"&amp;";case"<":return"&lt;";case">":return"&gt;";case'"':return"&quot;";default:return e}}t.unescapeString=function(e){return a.test(e)?e.replace(o,l):e},t.normalizeURI=function(e){try{return r.default(e)}catch(t){return e}},t.escapeXml=function(e){return s.test(e)?e.replace(s,c):e},t.repeat=function(e,t){for(var n=[],r=0;r<t;r++)n.push(e);return n.join("")},t.last=function(e){return e.length?e[e.length-1]:null},t.isEmpty=function(e){return!e||!/[^ \t]+/.test(e)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.last=function(e){return e[e.length-1]},t.normalizeReference=function(e){return e.slice(1,e.length-1).trim().replace(/[ \t\r\n]+/," ").toLowerCase().toUpperCase()},t.iterateObject=function(e,t){Object.keys(e).forEach((function(n){t(n,e[n])}))},t.omit=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var i=r.__assign({},e);return t.forEach((function(e){delete i[e]})),i},t.isEmptyObj=function(e){return!Object.keys(e).length},t.clearObj=function(e){Object.keys(e).forEach((function(t){delete e[t]}))}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CODE_INDENT=4,t.C_TAB=9,t.C_NEWLINE=10,t.C_GREATERTHAN=62,t.C_LESSTHAN=60,t.C_SPACE=32,t.C_OPEN_BRACKET=91,t.reNonSpace=/[^ \t\f\v\r\n]/,t.reClosingCodeFence=/^(?:`{3,}|~{3,})(?= *$)/,t.endsWithBlankLine=function(e){for(var t=e;t;){if(t.lastLineBlank)return!0;var n=t.type;if(t.lastLineChecked||"list"!==n&&"item"!==n){t.lastLineChecked=!0;break}t.lastLineChecked=!0,t=t.lastChild}return!1},t.peek=function(e,t){return t<e.length?e.charCodeAt(t):-1},t.isBlank=function(e){return!t.reNonSpace.test(e)},t.isSpaceOrTab=function(e){return e===t.C_SPACE||e===t.C_TAB}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(6),a=n(1),o=n(25),s=n(9),l=n(3),c=n(4),u=/\r\n|\n|\r/;function d(e){return{id:e.id,title:e.title,sourcepos:e.sourcepos,unlinked:!1,destination:e.dest}}t.createRefDefState=d;var h=function(){function e(e,t){var n;this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.referenceDefinition=!!(null===(n=t)||void 0===n?void 0:n.referenceDefinition),this.parser=new i.Parser(t),this.parser.setRefMaps(this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap),this.eventHandlerMap={change:[]},e=e||"",this.lineTexts=e.split(u),this.root=this.parser.parse(e)}return e.prototype.updateLineTexts=function(e,t,n){var i,a=e[0],o=e[1],s=t[0],l=t[1],c=n.split(u),d=c.length,h=this.lineTexts[a-1],f=this.lineTexts[s-1];c[0]=h.slice(0,o-1)+c[0],c[d-1]=c[d-1]+f.slice(l-1);var p=s-a+1;return(i=this.lineTexts).splice.apply(i,r.__spreadArrays([a-1,p],c)),d-p},e.prototype.updateRootNodeState=function(){if(1===this.lineTexts.length&&""===this.lineTexts[0])return this.root.lastLineBlank=!0,void(this.root.sourcepos=[[1,1],[1,0]]);this.root.lastChild&&(this.root.lastLineBlank=this.root.lastChild.lastLineBlank);for(var e=this.lineTexts,t=e.length-1;""===e[t];)t-=1;e.length-2>t&&(t+=1),this.root.sourcepos[1]=[t+1,e[t].length]},e.prototype.replaceRangeNodes=function(e,t,n){e?(o.insertNodesBefore(e,n),o.removeNextUntil(e,t),[e.id,t.id].forEach((function(e){return a.removeNodeById(e)})),e.unlink()):t?(o.insertNodesBefore(t,n),a.removeNodeById(t.id),t.unlink()):o.prependChildNodes(this.root,n)},e.prototype.getNodeRange=function(e,t){var n=o.findChildNodeAtLine(this.root,e[0]),r=o.findChildNodeAtLine(this.root,t[0]);return r&&r.next&&t[0]+1===r.next.sourcepos[0][0]&&(r=r.next),[n,r]},e.prototype.trigger=function(e,t){this.eventHandlerMap[e].forEach((function(e){e(t)}))},e.prototype.extendEndLine=function(e){for(;""===this.lineTexts[e];)e+=1;return e},e.prototype.parseRange=function(e,t,n,r){var i;e&&e.prev&&(a.isList(e.prev)&&function(e){var t=e.match(/^[ \t]+/);if(t&&(t[0].length>=2||/\t/.test(t[0])))return!0;var n=t?e.slice(t.length):e;return s.reBulletListMarker.test(n)||s.reOrderedListMarker.test(n)}(this.lineTexts[n-1])||a.isTable(e.prev)&&(i=this.lineTexts[n-1],!c.isBlank(i)&&-1!==i.indexOf("|")))&&(n=(e=e.prev).sourcepos[0][0]);for(var l=this.lineTexts.slice(n-1,r),u=this.parser.partialParseStart(n,l),d=t?t.next:this.root.firstChild;u.lastChild&&a.isList(u.lastChild)&&d&&("list"===d.type||d.sourcepos[0][1]>=2);){var h=this.extendEndLine(d.sourcepos[1][0]);this.parser.partialParseExtends(this.lineTexts.slice(r,h)),e||(e=t),t=d,r=h,d=d.next}return this.parser.partialParseFinish(),{newNodes:o.getChildNodes(u),extStartNode:e,extEndNode:t}},e.prototype.getRemovedNodeRange=function(e,t){return!e||e&&a.isRefDef(e)||t&&a.isRefDef(t)?null:{id:[e.id,t.id],line:[e.sourcepos[0][0]-1,t.sourcepos[1][0]-1]}},e.prototype.markDeletedRefMap=function(e,t){var n=this;if(!l.isEmptyObj(this.refMap)){var r=function(e){if(a.isRefDef(e)){var t=n.refMap[e.label];t&&e.id===t.id&&(t.unlinked=!0)}};e&&o.invokeNextUntil(r,e.parent,t),t&&o.invokeNextUntil(r,t)}},e.prototype.replaceWithNewRefDefState=function(e){var t=this;if(!l.isEmptyObj(this.refMap)){var n=function(e){if(a.isRefDef(e)){var n=e.label,r=t.refMap[n];r&&!r.unlinked||(t.refMap[n]=d(e))}};e.forEach((function(e){o.invokeNextUntil(n,e)}))}},e.prototype.replaceWithRefDefCandidate=function(){var e=this;l.isEmptyObj(this.refDefCandidateMap)||l.iterateObject(this.refDefCandidateMap,(function(t,n){var r=n.label,i=n.sourcepos,a=e.refMap[r];(!a||a.unlinked||a.sourcepos[0][0]>i[0][0])&&(e.refMap[r]=d(n))}))},e.prototype.getRangeWithRefDef=function(e,t,n,r,i){if(this.referenceDefinition&&!l.isEmptyObj(this.refMap)){var s=o.findChildNodeAtLine(this.root,e-1),c=o.findChildNodeAtLine(this.root,t+1);s&&a.isRefDef(s)&&s!==n&&s!==r&&(e=(n=s).sourcepos[0][0]),c&&a.isRefDef(c)&&c!==n&&c!==r&&(r=c,t=this.extendEndLine(r.sourcepos[1][0]+i))}return[n,r,e,t]},e.prototype.parse=function(e,t,n){void 0===n&&(n=0);var r=this.getNodeRange(e,t),i=r[0],a=r[1],o=i?Math.min(i.sourcepos[0][0],e[0]):e[0],s=this.extendEndLine((a?Math.max(a.sourcepos[1][0],t[0]):t[0])+n),l=this.parseRange.apply(this,this.getRangeWithRefDef(o,s,i,a,n)),c=l.newNodes,u=l.extStartNode,d=l.extEndNode,h=this.getRemovedNodeRange(u,d),f=d?d.next:this.root.firstChild;return this.referenceDefinition?(this.markDeletedRefMap(u,d),this.replaceRangeNodes(u,d,c),this.replaceWithNewRefDefState(c)):this.replaceRangeNodes(u,d,c),{nodes:c,removedNodeRange:h,nextNode:f}},e.prototype.parseRefLink=function(){var e=this,t=[];return l.isEmptyObj(this.refMap)||l.iterateObject(this.refMap,(function(n,r){r.unlinked&&delete e.refMap[n],l.iterateObject(e.refLinkCandidateMap,(function(r,i){var a=i.node;i.refLabel===n&&t.push(e.parse(a.sourcepos[0],a.sourcepos[1]))}))})),t},e.prototype.removeUnlinkedCandidate=function(){l.isEmptyObj(this.refDefCandidateMap)||[this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(e){l.iterateObject(e,(function(t){o.isUnlinked(t)&&delete e[t]}))}))},e.prototype.editMarkdown=function(e,t,n){var r=this.updateLineTexts(e,t,n),i=this.parse(e,t,r),a=l.omit(i,"nextNode");o.updateNextLineNumbers(i.nextNode,r),this.updateRootNodeState();var s=[a];return this.referenceDefinition&&(this.removeUnlinkedCandidate(),this.replaceWithRefDefCandidate(),s=s.concat(this.parseRefLink())),this.trigger("change",s),s},e.prototype.getLineTexts=function(){return this.lineTexts},e.prototype.getRootNode=function(){return this.root},e.prototype.findNodeAtPosition=function(e){var t=o.findNodeAtPosition(this.root,e);return t&&t!==this.root?t:null},e.prototype.findFirstNodeAtLine=function(e){return o.findFirstNodeAtLine(this.root,e)},e.prototype.on=function(e,t){this.eventHandlerMap[e].push(t)},e.prototype.off=function(e,t){var n=this.eventHandlerMap[e],r=n.indexOf(t);n.splice(r,1)},e.prototype.findNodeById=function(e){return o.findNodeById(e)},e.prototype.removeAllNode=function(){a.removeAllNode()},e}();t.ToastMark=h},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(2),a=n(1),o=n(18),s=n(21),l=n(4),c=n(9),u=n(3),d=[/./,/<\/(?:script|pre|style)>/i,/-->/,/\?>/,/>/,/\]\]>/],h=/^[#`~*+_=<>0-9-]/,f=/\r\n|\n|\r/;function p(){return a.createNode("document",[[1,1],[0,0]])}var g={smart:!1,tagFilter:!1,extendedAutolinks:!1,disallowedHtmlBlockTags:[],referenceDefinition:!1,disallowDeepHeading:!1,customParser:null},m=function(){function e(e){this.options=r.__assign(r.__assign({},g),e),this.doc=p(),this.tip=this.doc,this.oldtip=this.doc,this.lineNumber=0,this.offset=0,this.column=0,this.nextNonspace=0,this.nextNonspaceColumn=0,this.indent=0,this.currentLine="",this.indented=!1,this.blank=!1,this.partiallyConsumedTab=!1,this.allClosed=!0,this.lastMatchedContainer=this.doc,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.lastLineLength=0,this.inlineParser=new o.InlineParser(this.options)}return e.prototype.advanceOffset=function(e,t){void 0===t&&(t=!1);for(var n,r,i,a=this.currentLine;e>0&&(i=a[this.offset]);)"\t"===i?(n=4-this.column%4,t?(this.partiallyConsumedTab=n>e,r=n>e?e:n,this.column+=r,this.offset+=this.partiallyConsumedTab?0:1,e-=r):(this.partiallyConsumedTab=!1,this.column+=n,this.offset+=1,e-=1)):(this.partiallyConsumedTab=!1,this.offset+=1,this.column+=1,e-=1)},e.prototype.advanceNextNonspace=function(){this.offset=this.nextNonspace,this.column=this.nextNonspaceColumn,this.partiallyConsumedTab=!1},e.prototype.findNextNonspace=function(){for(var e,t=this.currentLine,n=this.offset,r=this.column;""!==(e=t.charAt(n));)if(" "===e)n++,r++;else{if("\t"!==e)break;n++,r+=4-r%4}this.blank="\n"===e||"\r"===e||""===e,this.nextNonspace=n,this.nextNonspaceColumn=r,this.indent=this.nextNonspaceColumn-this.column,this.indented=this.indent>=l.CODE_INDENT},e.prototype.addLine=function(){if(this.partiallyConsumedTab){this.offset+=1;var e=4-this.column%4;this.tip.stringContent+=i.repeat(" ",e)}this.tip.lineOffsets?this.tip.lineOffsets.push(this.offset):this.tip.lineOffsets=[this.offset],this.tip.stringContent+=this.currentLine.slice(this.offset)+"\n"},e.prototype.addChild=function(e,t){for(;!s.blockHandlers[this.tip.type].canContain(e);)this.finalize(this.tip,this.lineNumber-1);var n=t+1,r=a.createNode(e,[[this.lineNumber,n],[0,0]]);return r.stringContent="",this.tip.appendChild(r),this.tip=r,r},e.prototype.closeUnmatchedBlocks=function(){if(!this.allClosed){for(;this.oldtip!==this.lastMatchedContainer;){var e=this.oldtip.parent;this.finalize(this.oldtip,this.lineNumber-1),this.oldtip=e}this.allClosed=!0}},e.prototype.finalize=function(e,t){var n=e.parent;e.open=!1,e.sourcepos[1]=[t,this.lastLineLength],s.blockHandlers[e.type].finalize(this,e),this.tip=n},e.prototype.processInlines=function(e){var t,n=this.options.customParser,r=e.walker();for(this.inlineParser.refMap=this.refMap,this.inlineParser.refLinkCandidateMap=this.refLinkCandidateMap,this.inlineParser.refDefCandidateMap=this.refDefCandidateMap,this.inlineParser.options=this.options;t=r.next();){var i=t.node,a=t.entering,o=i.type;n&&n[o]&&n[o](i,{entering:a}),a||"paragraph"!==o&&"heading"!==o&&("tableCell"!==o||i.ignored)||this.inlineParser.parse(i)}},e.prototype.incorporateLine=function(e){var t=this.doc;this.oldtip=this.tip,this.offset=0,this.column=0,this.blank=!1,this.partiallyConsumedTab=!1,this.lineNumber+=1,-1!==e.indexOf("\0")&&(e=e.replace(/\0/g,"�")),this.currentLine=e;for(var n,r=!0;(n=t.lastChild)&&n.open;){switch(t=n,this.findNextNonspace(),s.blockHandlers[t.type].continue(this,t)){case 0:break;case 1:r=!1;break;case 2:return void(this.lastLineLength=e.length);default:throw new Error("continue returned illegal value, must be 0, 1, or 2")}if(!r){t=t.parent;break}}this.allClosed=t===this.oldtip,this.lastMatchedContainer=t;for(var i="paragraph"!==t.type&&s.blockHandlers[t.type].acceptsLines,o=c.blockStarts.length;!i;){if(this.findNextNonspace(),"table"!==t.type&&"tableBody"!==t.type&&"paragraph"!==t.type&&!this.indented&&!h.test(e.slice(this.nextNonspace))){this.advanceNextNonspace();break}for(var l=0;l<o;){var u=c.blockStarts[l](this,t);if(1===u){t=this.tip;break}if(2===u){t=this.tip,i=!0;break}l++}if(l===o){this.advanceNextNonspace();break}}if(this.allClosed||this.blank||"paragraph"!==this.tip.type){this.closeUnmatchedBlocks(),this.blank&&t.lastChild&&(t.lastChild.lastLineBlank=!0);for(var f=t.type,p=this.blank&&!("blockQuote"===f||a.isCodeBlock(t)&&t.isFenced||"item"===f&&!t.firstChild&&t.sourcepos[0][0]===this.lineNumber),g=t;g;)g.lastLineBlank=p,g=g.parent;s.blockHandlers[f].acceptsLines?(this.addLine(),a.isHtmlBlock(t)&&t.htmlBlockType>=1&&t.htmlBlockType<=5&&d[t.htmlBlockType].test(this.currentLine.slice(this.offset))&&(this.lastLineLength=e.length,this.finalize(t,this.lineNumber))):this.offset<e.length&&!this.blank&&(t=this.addChild("paragraph",this.offset),this.advanceNextNonspace(),this.addLine())}else this.addLine();this.lastLineLength=e.length},e.prototype.parse=function(e){this.doc=p(),this.tip=this.doc,this.lineNumber=0,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="";var t=e.split(f),n=t.length;this.options.referenceDefinition&&this.clearRefMaps(),e.charCodeAt(e.length-1)===o.C_NEWLINE&&(n-=1);for(var r=0;r<n;r++)this.incorporateLine(t[r]);for(;this.tip;)this.finalize(this.tip,n);return this.processInlines(this.doc),this.doc},e.prototype.partialParseStart=function(e,t){this.doc=p(),this.tip=this.doc,this.lineNumber=e-1,this.lastLineLength=0,this.offset=0,this.column=0,this.lastMatchedContainer=this.doc,this.currentLine="";for(var n=t.length,r=0;r<n;r++)this.incorporateLine(t[r]);return this.doc},e.prototype.partialParseExtends=function(e){for(var t=0;t<e.length;t++)this.incorporateLine(e[t])},e.prototype.partialParseFinish=function(){for(;this.tip;)this.finalize(this.tip,this.lineNumber);this.processInlines(this.doc)},e.prototype.setRefMaps=function(e,t,n){this.refMap=e,this.refLinkCandidateMap=t,this.refDefCandidateMap=n},e.prototype.clearRefMaps=function(){[this.refMap,this.refLinkCandidateMap,this.refDefCandidateMap].forEach((function(e){u.clearObj(e)}))},e}();t.Parser=m},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(12)),a=r(n(13)),o=r(n(14)),s=r(n(15));function l(e){var t=Object.keys(e).join("|"),n=u(e),r=new RegExp("&(?:"+(t+="|#[xX][\\da-fA-F]+|#\\d+")+");","g");return function(e){return String(e).replace(r,n)}}t.decodeXML=l(o.default),t.decodeHTMLStrict=l(i.default);var c=function(e,t){return e<t?1:-1};function u(e){return function(t){return"#"===t.charAt(1)?"X"===t.charAt(2)||"x"===t.charAt(2)?s.default(parseInt(t.substr(3),16)):s.default(parseInt(t.substr(2),10)):e[t.slice(1,-1)]}}t.decodeHTML=function(){for(var e=Object.keys(a.default).sort(c),t=Object.keys(i.default).sort(c),n=0,r=0;n<t.length;n++)e[r]===t[n]?(t[n]+=";?",r++):t[n]+=";";var o=new RegExp("&(?:"+t.join("|")+"|#[xX][\\da-fA-F]+;?|#\\d+;?)","g"),s=u(i.default);function l(e){return";"!==e.substr(-1)&&(e+=";"),s(e)}return function(e){return String(e).replace(o,l)}}()},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OPENTAG="<[A-Za-z][A-Za-z0-9-]*(?:\\s+[a-zA-Z_:][a-zA-Z0-9:._-]*(?:\\s*=\\s*(?:[^\"'=<>`\\x00-\\x20]+|'[^']*'|\"[^\"]*\"))?)*\\s*/?>",t.CLOSETAG="</[A-Za-z][A-Za-z0-9-]*\\s*[>]";var r="(?:"+t.OPENTAG+"|"+t.CLOSETAG+"|\x3c!----\x3e|\x3c!--(?:-?[^>-])(?:-?[^-])*--\x3e|[<][?].*?[?][>]|<![A-Z]+\\s+[^>]*>|<!\\[CDATA\\[[\\s\\S]*?\\]\\]>)";t.reHtmlTag=new RegExp("^"+r,"i")},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=n(8),a=n(4),o=n(24),s=/^`{3,}(?!.*`)|^~{3,}/,l=[/./,/^<(?:script|pre|style)(?:\s|>|$)/i,/^<!--/,/^<[?]/,/^<![A-Z]/,/^<!\[CDATA\[/,/^<[/]?(?:address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[123456]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|nav|noframes|ol|optgroup|option|p|param|section|source|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul)(?:\s|[/]?[>]|$)/i,new RegExp("^(?:"+i.OPENTAG+"|"+i.CLOSETAG+")\\s*$","i")],c=/^(?:=+|-+)[ \t]*$/,u=/^#{1,6}(?:[ \t]+|$)/,d=/^(?:(?:\*[ \t]*){3,}|(?:_[ \t]*){3,}|(?:-[ \t]*){3,})[ \t]*$/;function h(e,t){return e.options.disallowDeepHeading&&("blockQuote"===t.type||"item"===t.type)}t.reBulletListMarker=/^[*+-]/,t.reOrderedListMarker=/^(\d{1,9})([.)])/,t.blockStarts=[function(e){return e.indented||a.peek(e.currentLine,e.nextNonspace)!==a.C_GREATERTHAN?0:(e.advanceNextNonspace(),e.advanceOffset(1,!1),a.isSpaceOrTab(a.peek(e.currentLine,e.offset))&&e.advanceOffset(1,!0),e.closeUnmatchedBlocks(),e.addChild("blockQuote",e.nextNonspace),1)},function(e,t){var n;if(!e.indented&&!h(e,t)&&(n=e.currentLine.slice(e.nextNonspace).match(u))){e.advanceNextNonspace(),e.advanceOffset(n[0].length,!1),e.closeUnmatchedBlocks();var r=e.addChild("heading",e.nextNonspace);return r.level=n[0].trim().length,r.headingType="atx",r.stringContent=e.currentLine.slice(e.offset).replace(/^[ \t]*#+[ \t]*$/,"").replace(/[ \t]+#+[ \t]*$/,""),e.advanceOffset(e.currentLine.length-e.offset),2}return 0},function(e){var t;if(!e.indented&&(t=e.currentLine.slice(e.nextNonspace).match(s))){var n=t[0].length;e.closeUnmatchedBlocks();var r=e.addChild("codeBlock",e.nextNonspace);return r.isFenced=!0,r.fenceLength=n,r.fenceChar=t[0][0],r.fenceOffset=e.indent,e.advanceNextNonspace(),e.advanceOffset(n,!1),2}return 0},function(e,t){if(!e.indented&&a.peek(e.currentLine,e.nextNonspace)===a.C_LESSTHAN){var n=e.currentLine.slice(e.nextNonspace),r=e.options.disallowedHtmlBlockTags,i=void 0;for(i=1;i<=7;i++){var o=n.match(l[i]);if(o){if(7===i){if("paragraph"===t.type)return 0;if(r.length>0&&new RegExp("</?(?:"+r.join("|")+")","i").test(o[0]))return 0}return e.closeUnmatchedBlocks(),e.addChild("htmlBlock",e.offset).htmlBlockType=i,2}}}return 0},function(e,t){var n;if(null!==t.stringContent&&!e.indented&&"paragraph"===t.type&&!h(e,t.parent)&&(n=e.currentLine.slice(e.nextNonspace).match(c))){e.closeUnmatchedBlocks();for(var i=void 0;a.peek(t.stringContent,0)===a.C_OPEN_BRACKET&&(i=e.inlineParser.parseReference(t,e.refMap));)t.stringContent=t.stringContent.slice(i);if(t.stringContent.length>0){var o=r.createNode("heading",t.sourcepos);return o.level="="===n[0][0]?1:2,o.headingType="setext",o.stringContent=t.stringContent,t.insertAfter(o),t.unlink(),e.tip=o,e.advanceOffset(e.currentLine.length-e.offset,!1),2}return 0}return 0},function(e){return!e.indented&&d.test(e.currentLine.slice(e.nextNonspace))?(e.closeUnmatchedBlocks(),e.addChild("thematicBreak",e.nextNonspace),e.advanceOffset(e.currentLine.length-e.offset,!1),2):0},function(e,n){var r,i,o,s=n;return e.indented&&"list"!==n.type||!(r=function(e,n){var r,i,o=e.currentLine.slice(e.nextNonspace),s={type:"bullet",tight:!0,bulletChar:"",start:0,delimiter:"",padding:0,markerOffset:e.indent,task:!1,checked:!1};if(e.indent>=4)return null;if(r=o.match(t.reBulletListMarker))s.type="bullet",s.bulletChar=r[0][0];else{if(!(r=o.match(t.reOrderedListMarker))||"paragraph"===n.type&&"1"!==r[1])return null;s.type="ordered",s.start=parseInt(r[1],10),s.delimiter=r[2]}if(-1!==(i=a.peek(e.currentLine,e.nextNonspace+r[0].length))&&i!==a.C_TAB&&i!==a.C_SPACE)return null;if("paragraph"===n.type&&!e.currentLine.slice(e.nextNonspace+r[0].length).match(a.reNonSpace))return null;e.advanceNextNonspace(),e.advanceOffset(r[0].length,!0);var l=e.column,c=e.offset;do{e.advanceOffset(1,!0),i=a.peek(e.currentLine,e.offset)}while(e.column-l<5&&a.isSpaceOrTab(i));var u=-1===a.peek(e.currentLine,e.offset),d=e.column-l;return d>=5||d<1||u?(s.padding=r[0].length+1,e.column=l,e.offset=c,a.isSpaceOrTab(a.peek(e.currentLine,e.offset))&&e.advanceOffset(1,!0)):s.padding=r[0].length+d,s}(e,s))?0:(e.closeUnmatchedBlocks(),"list"===e.tip.type&&(i=s.listData,o=r,i.type===o.type&&i.delimiter===o.delimiter&&i.bulletChar===o.bulletChar)||((s=e.addChild("list",e.nextNonspace)).listData=r),(s=e.addChild("item",e.nextNonspace)).listData=r,1)},function(e){return e.indented&&"paragraph"!==e.tip.type&&!e.blank?(e.advanceOffset(a.CODE_INDENT,!0),e.closeUnmatchedBlocks(),e.addChild("codeBlock",e.offset),2):0},o.tableHead,o.tableBody]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(5);t.ToastMark=r.ToastMark;var i=n(26);t.createRenderHTML=i.createRenderHTML;var a=n(6);t.Parser=a.Parser},function(e,t,n){"use strict";var r={};function i(e,t,n){var a,o,s,l,c,u="";for("string"!=typeof t&&(n=t,t=i.defaultChars),void 0===n&&(n=!0),c=function(e){var t,n,i=r[e];if(i)return i;for(i=r[e]=[],t=0;t<128;t++)n=String.fromCharCode(t),/^[0-9a-z]$/i.test(n)?i.push(n):i.push("%"+("0"+t.toString(16).toUpperCase()).slice(-2));for(t=0;t<e.length;t++)i[e.charCodeAt(t)]=e[t];return i}(t),a=0,o=e.length;a<o;a++)if(s=e.charCodeAt(a),n&&37===s&&a+2<o&&/^[0-9a-f]{2}$/i.test(e.slice(a+1,a+3)))u+=e.slice(a,a+3),a+=2;else if(s<128)u+=c[s];else if(s>=55296&&s<=57343){if(s>=55296&&s<=56319&&a+1<o&&(l=e.charCodeAt(a+1))>=56320&&l<=57343){u+=encodeURIComponent(e[a]+e[a+1]),a++;continue}u+="%EF%BF%BD"}else u+=encodeURIComponent(e[a]);return u}i.defaultChars=";/?:@&=+$,-_.!~*'()#",i.componentChars="-_.!~*'()",e.exports=i},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Abreve":"Ă","abreve":"ă","ac":"∾","acd":"∿","acE":"∾̳","Acirc":"Â","acirc":"â","acute":"´","Acy":"А","acy":"а","AElig":"Æ","aelig":"æ","af":"⁡","Afr":"𝔄","afr":"𝔞","Agrave":"À","agrave":"à","alefsym":"ℵ","aleph":"ℵ","Alpha":"Α","alpha":"α","Amacr":"Ā","amacr":"ā","amalg":"⨿","amp":"&","AMP":"&","andand":"⩕","And":"⩓","and":"∧","andd":"⩜","andslope":"⩘","andv":"⩚","ang":"∠","ange":"⦤","angle":"∠","angmsdaa":"⦨","angmsdab":"⦩","angmsdac":"⦪","angmsdad":"⦫","angmsdae":"⦬","angmsdaf":"⦭","angmsdag":"⦮","angmsdah":"⦯","angmsd":"∡","angrt":"∟","angrtvb":"⊾","angrtvbd":"⦝","angsph":"∢","angst":"Å","angzarr":"⍼","Aogon":"Ą","aogon":"ą","Aopf":"𝔸","aopf":"𝕒","apacir":"⩯","ap":"≈","apE":"⩰","ape":"≊","apid":"≋","apos":"\'","ApplyFunction":"⁡","approx":"≈","approxeq":"≊","Aring":"Å","aring":"å","Ascr":"𝒜","ascr":"𝒶","Assign":"≔","ast":"*","asymp":"≈","asympeq":"≍","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","awconint":"∳","awint":"⨑","backcong":"≌","backepsilon":"϶","backprime":"‵","backsim":"∽","backsimeq":"⋍","Backslash":"∖","Barv":"⫧","barvee":"⊽","barwed":"⌅","Barwed":"⌆","barwedge":"⌅","bbrk":"⎵","bbrktbrk":"⎶","bcong":"≌","Bcy":"Б","bcy":"б","bdquo":"„","becaus":"∵","because":"∵","Because":"∵","bemptyv":"⦰","bepsi":"϶","bernou":"ℬ","Bernoullis":"ℬ","Beta":"Β","beta":"β","beth":"ℶ","between":"≬","Bfr":"𝔅","bfr":"𝔟","bigcap":"⋂","bigcirc":"◯","bigcup":"⋃","bigodot":"⨀","bigoplus":"⨁","bigotimes":"⨂","bigsqcup":"⨆","bigstar":"★","bigtriangledown":"▽","bigtriangleup":"△","biguplus":"⨄","bigvee":"⋁","bigwedge":"⋀","bkarow":"⤍","blacklozenge":"⧫","blacksquare":"▪","blacktriangle":"▴","blacktriangledown":"▾","blacktriangleleft":"◂","blacktriangleright":"▸","blank":"␣","blk12":"▒","blk14":"░","blk34":"▓","block":"█","bne":"=⃥","bnequiv":"≡⃥","bNot":"⫭","bnot":"⌐","Bopf":"𝔹","bopf":"𝕓","bot":"⊥","bottom":"⊥","bowtie":"⋈","boxbox":"⧉","boxdl":"┐","boxdL":"╕","boxDl":"╖","boxDL":"╗","boxdr":"┌","boxdR":"╒","boxDr":"╓","boxDR":"╔","boxh":"─","boxH":"═","boxhd":"┬","boxHd":"╤","boxhD":"╥","boxHD":"╦","boxhu":"┴","boxHu":"╧","boxhU":"╨","boxHU":"╩","boxminus":"⊟","boxplus":"⊞","boxtimes":"⊠","boxul":"┘","boxuL":"╛","boxUl":"╜","boxUL":"╝","boxur":"└","boxuR":"╘","boxUr":"╙","boxUR":"╚","boxv":"│","boxV":"║","boxvh":"┼","boxvH":"╪","boxVh":"╫","boxVH":"╬","boxvl":"┤","boxvL":"╡","boxVl":"╢","boxVL":"╣","boxvr":"├","boxvR":"╞","boxVr":"╟","boxVR":"╠","bprime":"‵","breve":"˘","Breve":"˘","brvbar":"¦","bscr":"𝒷","Bscr":"ℬ","bsemi":"⁏","bsim":"∽","bsime":"⋍","bsolb":"⧅","bsol":"\\\\","bsolhsub":"⟈","bull":"•","bullet":"•","bump":"≎","bumpE":"⪮","bumpe":"≏","Bumpeq":"≎","bumpeq":"≏","Cacute":"Ć","cacute":"ć","capand":"⩄","capbrcup":"⩉","capcap":"⩋","cap":"∩","Cap":"⋒","capcup":"⩇","capdot":"⩀","CapitalDifferentialD":"ⅅ","caps":"∩︀","caret":"⁁","caron":"ˇ","Cayleys":"ℭ","ccaps":"⩍","Ccaron":"Č","ccaron":"č","Ccedil":"Ç","ccedil":"ç","Ccirc":"Ĉ","ccirc":"ĉ","Cconint":"∰","ccups":"⩌","ccupssm":"⩐","Cdot":"Ċ","cdot":"ċ","cedil":"¸","Cedilla":"¸","cemptyv":"⦲","cent":"¢","centerdot":"·","CenterDot":"·","cfr":"𝔠","Cfr":"ℭ","CHcy":"Ч","chcy":"ч","check":"✓","checkmark":"✓","Chi":"Χ","chi":"χ","circ":"ˆ","circeq":"≗","circlearrowleft":"↺","circlearrowright":"↻","circledast":"⊛","circledcirc":"⊚","circleddash":"⊝","CircleDot":"⊙","circledR":"®","circledS":"Ⓢ","CircleMinus":"⊖","CirclePlus":"⊕","CircleTimes":"⊗","cir":"○","cirE":"⧃","cire":"≗","cirfnint":"⨐","cirmid":"⫯","cirscir":"⧂","ClockwiseContourIntegral":"∲","CloseCurlyDoubleQuote":"”","CloseCurlyQuote":"’","clubs":"♣","clubsuit":"♣","colon":":","Colon":"∷","Colone":"⩴","colone":"≔","coloneq":"≔","comma":",","commat":"@","comp":"∁","compfn":"∘","complement":"∁","complexes":"ℂ","cong":"≅","congdot":"⩭","Congruent":"≡","conint":"∮","Conint":"∯","ContourIntegral":"∮","copf":"𝕔","Copf":"ℂ","coprod":"∐","Coproduct":"∐","copy":"©","COPY":"©","copysr":"℗","CounterClockwiseContourIntegral":"∳","crarr":"↵","cross":"✗","Cross":"⨯","Cscr":"𝒞","cscr":"𝒸","csub":"⫏","csube":"⫑","csup":"⫐","csupe":"⫒","ctdot":"⋯","cudarrl":"⤸","cudarrr":"⤵","cuepr":"⋞","cuesc":"⋟","cularr":"↶","cularrp":"⤽","cupbrcap":"⩈","cupcap":"⩆","CupCap":"≍","cup":"∪","Cup":"⋓","cupcup":"⩊","cupdot":"⊍","cupor":"⩅","cups":"∪︀","curarr":"↷","curarrm":"⤼","curlyeqprec":"⋞","curlyeqsucc":"⋟","curlyvee":"⋎","curlywedge":"⋏","curren":"¤","curvearrowleft":"↶","curvearrowright":"↷","cuvee":"⋎","cuwed":"⋏","cwconint":"∲","cwint":"∱","cylcty":"⌭","dagger":"†","Dagger":"‡","daleth":"ℸ","darr":"↓","Darr":"↡","dArr":"⇓","dash":"‐","Dashv":"⫤","dashv":"⊣","dbkarow":"⤏","dblac":"˝","Dcaron":"Ď","dcaron":"ď","Dcy":"Д","dcy":"д","ddagger":"‡","ddarr":"⇊","DD":"ⅅ","dd":"ⅆ","DDotrahd":"⤑","ddotseq":"⩷","deg":"°","Del":"∇","Delta":"Δ","delta":"δ","demptyv":"⦱","dfisht":"⥿","Dfr":"𝔇","dfr":"𝔡","dHar":"⥥","dharl":"⇃","dharr":"⇂","DiacriticalAcute":"´","DiacriticalDot":"˙","DiacriticalDoubleAcute":"˝","DiacriticalGrave":"`","DiacriticalTilde":"˜","diam":"⋄","diamond":"⋄","Diamond":"⋄","diamondsuit":"♦","diams":"♦","die":"¨","DifferentialD":"ⅆ","digamma":"ϝ","disin":"⋲","div":"÷","divide":"÷","divideontimes":"⋇","divonx":"⋇","DJcy":"Ђ","djcy":"ђ","dlcorn":"⌞","dlcrop":"⌍","dollar":"$","Dopf":"𝔻","dopf":"𝕕","Dot":"¨","dot":"˙","DotDot":"⃜","doteq":"≐","doteqdot":"≑","DotEqual":"≐","dotminus":"∸","dotplus":"∔","dotsquare":"⊡","doublebarwedge":"⌆","DoubleContourIntegral":"∯","DoubleDot":"¨","DoubleDownArrow":"⇓","DoubleLeftArrow":"⇐","DoubleLeftRightArrow":"⇔","DoubleLeftTee":"⫤","DoubleLongLeftArrow":"⟸","DoubleLongLeftRightArrow":"⟺","DoubleLongRightArrow":"⟹","DoubleRightArrow":"⇒","DoubleRightTee":"⊨","DoubleUpArrow":"⇑","DoubleUpDownArrow":"⇕","DoubleVerticalBar":"∥","DownArrowBar":"⤓","downarrow":"↓","DownArrow":"↓","Downarrow":"⇓","DownArrowUpArrow":"⇵","DownBreve":"̑","downdownarrows":"⇊","downharpoonleft":"⇃","downharpoonright":"⇂","DownLeftRightVector":"⥐","DownLeftTeeVector":"⥞","DownLeftVectorBar":"⥖","DownLeftVector":"↽","DownRightTeeVector":"⥟","DownRightVectorBar":"⥗","DownRightVector":"⇁","DownTeeArrow":"↧","DownTee":"⊤","drbkarow":"⤐","drcorn":"⌟","drcrop":"⌌","Dscr":"𝒟","dscr":"𝒹","DScy":"Ѕ","dscy":"ѕ","dsol":"⧶","Dstrok":"Đ","dstrok":"đ","dtdot":"⋱","dtri":"▿","dtrif":"▾","duarr":"⇵","duhar":"⥯","dwangle":"⦦","DZcy":"Џ","dzcy":"џ","dzigrarr":"⟿","Eacute":"É","eacute":"é","easter":"⩮","Ecaron":"Ě","ecaron":"ě","Ecirc":"Ê","ecirc":"ê","ecir":"≖","ecolon":"≕","Ecy":"Э","ecy":"э","eDDot":"⩷","Edot":"Ė","edot":"ė","eDot":"≑","ee":"ⅇ","efDot":"≒","Efr":"𝔈","efr":"𝔢","eg":"⪚","Egrave":"È","egrave":"è","egs":"⪖","egsdot":"⪘","el":"⪙","Element":"∈","elinters":"⏧","ell":"ℓ","els":"⪕","elsdot":"⪗","Emacr":"Ē","emacr":"ē","empty":"∅","emptyset":"∅","EmptySmallSquare":"◻","emptyv":"∅","EmptyVerySmallSquare":"▫","emsp13":" ","emsp14":" ","emsp":" ","ENG":"Ŋ","eng":"ŋ","ensp":" ","Eogon":"Ę","eogon":"ę","Eopf":"𝔼","eopf":"𝕖","epar":"⋕","eparsl":"⧣","eplus":"⩱","epsi":"ε","Epsilon":"Ε","epsilon":"ε","epsiv":"ϵ","eqcirc":"≖","eqcolon":"≕","eqsim":"≂","eqslantgtr":"⪖","eqslantless":"⪕","Equal":"⩵","equals":"=","EqualTilde":"≂","equest":"≟","Equilibrium":"⇌","equiv":"≡","equivDD":"⩸","eqvparsl":"⧥","erarr":"⥱","erDot":"≓","escr":"ℯ","Escr":"ℰ","esdot":"≐","Esim":"⩳","esim":"≂","Eta":"Η","eta":"η","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","euro":"€","excl":"!","exist":"∃","Exists":"∃","expectation":"ℰ","exponentiale":"ⅇ","ExponentialE":"ⅇ","fallingdotseq":"≒","Fcy":"Ф","fcy":"ф","female":"♀","ffilig":"ffi","fflig":"ff","ffllig":"ffl","Ffr":"𝔉","ffr":"𝔣","filig":"fi","FilledSmallSquare":"◼","FilledVerySmallSquare":"▪","fjlig":"fj","flat":"♭","fllig":"fl","fltns":"▱","fnof":"ƒ","Fopf":"𝔽","fopf":"𝕗","forall":"∀","ForAll":"∀","fork":"⋔","forkv":"⫙","Fouriertrf":"ℱ","fpartint":"⨍","frac12":"½","frac13":"⅓","frac14":"¼","frac15":"⅕","frac16":"⅙","frac18":"⅛","frac23":"⅔","frac25":"⅖","frac34":"¾","frac35":"⅗","frac38":"⅜","frac45":"⅘","frac56":"⅚","frac58":"⅝","frac78":"⅞","frasl":"⁄","frown":"⌢","fscr":"𝒻","Fscr":"ℱ","gacute":"ǵ","Gamma":"Γ","gamma":"γ","Gammad":"Ϝ","gammad":"ϝ","gap":"⪆","Gbreve":"Ğ","gbreve":"ğ","Gcedil":"Ģ","Gcirc":"Ĝ","gcirc":"ĝ","Gcy":"Г","gcy":"г","Gdot":"Ġ","gdot":"ġ","ge":"≥","gE":"≧","gEl":"⪌","gel":"⋛","geq":"≥","geqq":"≧","geqslant":"⩾","gescc":"⪩","ges":"⩾","gesdot":"⪀","gesdoto":"⪂","gesdotol":"⪄","gesl":"⋛︀","gesles":"⪔","Gfr":"𝔊","gfr":"𝔤","gg":"≫","Gg":"⋙","ggg":"⋙","gimel":"ℷ","GJcy":"Ѓ","gjcy":"ѓ","gla":"⪥","gl":"≷","glE":"⪒","glj":"⪤","gnap":"⪊","gnapprox":"⪊","gne":"⪈","gnE":"≩","gneq":"⪈","gneqq":"≩","gnsim":"⋧","Gopf":"𝔾","gopf":"𝕘","grave":"`","GreaterEqual":"≥","GreaterEqualLess":"⋛","GreaterFullEqual":"≧","GreaterGreater":"⪢","GreaterLess":"≷","GreaterSlantEqual":"⩾","GreaterTilde":"≳","Gscr":"𝒢","gscr":"ℊ","gsim":"≳","gsime":"⪎","gsiml":"⪐","gtcc":"⪧","gtcir":"⩺","gt":">","GT":">","Gt":"≫","gtdot":"⋗","gtlPar":"⦕","gtquest":"⩼","gtrapprox":"⪆","gtrarr":"⥸","gtrdot":"⋗","gtreqless":"⋛","gtreqqless":"⪌","gtrless":"≷","gtrsim":"≳","gvertneqq":"≩︀","gvnE":"≩︀","Hacek":"ˇ","hairsp":" ","half":"½","hamilt":"ℋ","HARDcy":"Ъ","hardcy":"ъ","harrcir":"⥈","harr":"↔","hArr":"⇔","harrw":"↭","Hat":"^","hbar":"ℏ","Hcirc":"Ĥ","hcirc":"ĥ","hearts":"♥","heartsuit":"♥","hellip":"…","hercon":"⊹","hfr":"𝔥","Hfr":"ℌ","HilbertSpace":"ℋ","hksearow":"⤥","hkswarow":"⤦","hoarr":"⇿","homtht":"∻","hookleftarrow":"↩","hookrightarrow":"↪","hopf":"𝕙","Hopf":"ℍ","horbar":"―","HorizontalLine":"─","hscr":"𝒽","Hscr":"ℋ","hslash":"ℏ","Hstrok":"Ħ","hstrok":"ħ","HumpDownHump":"≎","HumpEqual":"≏","hybull":"⁃","hyphen":"‐","Iacute":"Í","iacute":"í","ic":"⁣","Icirc":"Î","icirc":"î","Icy":"И","icy":"и","Idot":"İ","IEcy":"Е","iecy":"е","iexcl":"¡","iff":"⇔","ifr":"𝔦","Ifr":"ℑ","Igrave":"Ì","igrave":"ì","ii":"ⅈ","iiiint":"⨌","iiint":"∭","iinfin":"⧜","iiota":"℩","IJlig":"IJ","ijlig":"ij","Imacr":"Ī","imacr":"ī","image":"ℑ","ImaginaryI":"ⅈ","imagline":"ℐ","imagpart":"ℑ","imath":"ı","Im":"ℑ","imof":"⊷","imped":"Ƶ","Implies":"⇒","incare":"℅","in":"∈","infin":"∞","infintie":"⧝","inodot":"ı","intcal":"⊺","int":"∫","Int":"∬","integers":"ℤ","Integral":"∫","intercal":"⊺","Intersection":"⋂","intlarhk":"⨗","intprod":"⨼","InvisibleComma":"⁣","InvisibleTimes":"⁢","IOcy":"Ё","iocy":"ё","Iogon":"Į","iogon":"į","Iopf":"𝕀","iopf":"𝕚","Iota":"Ι","iota":"ι","iprod":"⨼","iquest":"¿","iscr":"𝒾","Iscr":"ℐ","isin":"∈","isindot":"⋵","isinE":"⋹","isins":"⋴","isinsv":"⋳","isinv":"∈","it":"⁢","Itilde":"Ĩ","itilde":"ĩ","Iukcy":"І","iukcy":"і","Iuml":"Ï","iuml":"ï","Jcirc":"Ĵ","jcirc":"ĵ","Jcy":"Й","jcy":"й","Jfr":"𝔍","jfr":"𝔧","jmath":"ȷ","Jopf":"𝕁","jopf":"𝕛","Jscr":"𝒥","jscr":"𝒿","Jsercy":"Ј","jsercy":"ј","Jukcy":"Є","jukcy":"є","Kappa":"Κ","kappa":"κ","kappav":"ϰ","Kcedil":"Ķ","kcedil":"ķ","Kcy":"К","kcy":"к","Kfr":"𝔎","kfr":"𝔨","kgreen":"ĸ","KHcy":"Х","khcy":"х","KJcy":"Ќ","kjcy":"ќ","Kopf":"𝕂","kopf":"𝕜","Kscr":"𝒦","kscr":"𝓀","lAarr":"⇚","Lacute":"Ĺ","lacute":"ĺ","laemptyv":"⦴","lagran":"ℒ","Lambda":"Λ","lambda":"λ","lang":"⟨","Lang":"⟪","langd":"⦑","langle":"⟨","lap":"⪅","Laplacetrf":"ℒ","laquo":"«","larrb":"⇤","larrbfs":"⤟","larr":"←","Larr":"↞","lArr":"⇐","larrfs":"⤝","larrhk":"↩","larrlp":"↫","larrpl":"⤹","larrsim":"⥳","larrtl":"↢","latail":"⤙","lAtail":"⤛","lat":"⪫","late":"⪭","lates":"⪭︀","lbarr":"⤌","lBarr":"⤎","lbbrk":"❲","lbrace":"{","lbrack":"[","lbrke":"⦋","lbrksld":"⦏","lbrkslu":"⦍","Lcaron":"Ľ","lcaron":"ľ","Lcedil":"Ļ","lcedil":"ļ","lceil":"⌈","lcub":"{","Lcy":"Л","lcy":"л","ldca":"⤶","ldquo":"“","ldquor":"„","ldrdhar":"⥧","ldrushar":"⥋","ldsh":"↲","le":"≤","lE":"≦","LeftAngleBracket":"⟨","LeftArrowBar":"⇤","leftarrow":"←","LeftArrow":"←","Leftarrow":"⇐","LeftArrowRightArrow":"⇆","leftarrowtail":"↢","LeftCeiling":"⌈","LeftDoubleBracket":"⟦","LeftDownTeeVector":"⥡","LeftDownVectorBar":"⥙","LeftDownVector":"⇃","LeftFloor":"⌊","leftharpoondown":"↽","leftharpoonup":"↼","leftleftarrows":"⇇","leftrightarrow":"↔","LeftRightArrow":"↔","Leftrightarrow":"⇔","leftrightarrows":"⇆","leftrightharpoons":"⇋","leftrightsquigarrow":"↭","LeftRightVector":"⥎","LeftTeeArrow":"↤","LeftTee":"⊣","LeftTeeVector":"⥚","leftthreetimes":"⋋","LeftTriangleBar":"⧏","LeftTriangle":"⊲","LeftTriangleEqual":"⊴","LeftUpDownVector":"⥑","LeftUpTeeVector":"⥠","LeftUpVectorBar":"⥘","LeftUpVector":"↿","LeftVectorBar":"⥒","LeftVector":"↼","lEg":"⪋","leg":"⋚","leq":"≤","leqq":"≦","leqslant":"⩽","lescc":"⪨","les":"⩽","lesdot":"⩿","lesdoto":"⪁","lesdotor":"⪃","lesg":"⋚︀","lesges":"⪓","lessapprox":"⪅","lessdot":"⋖","lesseqgtr":"⋚","lesseqqgtr":"⪋","LessEqualGreater":"⋚","LessFullEqual":"≦","LessGreater":"≶","lessgtr":"≶","LessLess":"⪡","lesssim":"≲","LessSlantEqual":"⩽","LessTilde":"≲","lfisht":"⥼","lfloor":"⌊","Lfr":"𝔏","lfr":"𝔩","lg":"≶","lgE":"⪑","lHar":"⥢","lhard":"↽","lharu":"↼","lharul":"⥪","lhblk":"▄","LJcy":"Љ","ljcy":"љ","llarr":"⇇","ll":"≪","Ll":"⋘","llcorner":"⌞","Lleftarrow":"⇚","llhard":"⥫","lltri":"◺","Lmidot":"Ŀ","lmidot":"ŀ","lmoustache":"⎰","lmoust":"⎰","lnap":"⪉","lnapprox":"⪉","lne":"⪇","lnE":"≨","lneq":"⪇","lneqq":"≨","lnsim":"⋦","loang":"⟬","loarr":"⇽","lobrk":"⟦","longleftarrow":"⟵","LongLeftArrow":"⟵","Longleftarrow":"⟸","longleftrightarrow":"⟷","LongLeftRightArrow":"⟷","Longleftrightarrow":"⟺","longmapsto":"⟼","longrightarrow":"⟶","LongRightArrow":"⟶","Longrightarrow":"⟹","looparrowleft":"↫","looparrowright":"↬","lopar":"⦅","Lopf":"𝕃","lopf":"𝕝","loplus":"⨭","lotimes":"⨴","lowast":"∗","lowbar":"_","LowerLeftArrow":"↙","LowerRightArrow":"↘","loz":"◊","lozenge":"◊","lozf":"⧫","lpar":"(","lparlt":"⦓","lrarr":"⇆","lrcorner":"⌟","lrhar":"⇋","lrhard":"⥭","lrm":"‎","lrtri":"⊿","lsaquo":"‹","lscr":"𝓁","Lscr":"ℒ","lsh":"↰","Lsh":"↰","lsim":"≲","lsime":"⪍","lsimg":"⪏","lsqb":"[","lsquo":"‘","lsquor":"‚","Lstrok":"Ł","lstrok":"ł","ltcc":"⪦","ltcir":"⩹","lt":"<","LT":"<","Lt":"≪","ltdot":"⋖","lthree":"⋋","ltimes":"⋉","ltlarr":"⥶","ltquest":"⩻","ltri":"◃","ltrie":"⊴","ltrif":"◂","ltrPar":"⦖","lurdshar":"⥊","luruhar":"⥦","lvertneqq":"≨︀","lvnE":"≨︀","macr":"¯","male":"♂","malt":"✠","maltese":"✠","Map":"⤅","map":"↦","mapsto":"↦","mapstodown":"↧","mapstoleft":"↤","mapstoup":"↥","marker":"▮","mcomma":"⨩","Mcy":"М","mcy":"м","mdash":"—","mDDot":"∺","measuredangle":"∡","MediumSpace":" ","Mellintrf":"ℳ","Mfr":"𝔐","mfr":"𝔪","mho":"℧","micro":"µ","midast":"*","midcir":"⫰","mid":"∣","middot":"·","minusb":"⊟","minus":"−","minusd":"∸","minusdu":"⨪","MinusPlus":"∓","mlcp":"⫛","mldr":"…","mnplus":"∓","models":"⊧","Mopf":"𝕄","mopf":"𝕞","mp":"∓","mscr":"𝓂","Mscr":"ℳ","mstpos":"∾","Mu":"Μ","mu":"μ","multimap":"⊸","mumap":"⊸","nabla":"∇","Nacute":"Ń","nacute":"ń","nang":"∠⃒","nap":"≉","napE":"⩰̸","napid":"≋̸","napos":"ʼn","napprox":"≉","natural":"♮","naturals":"ℕ","natur":"♮","nbsp":" ","nbump":"≎̸","nbumpe":"≏̸","ncap":"⩃","Ncaron":"Ň","ncaron":"ň","Ncedil":"Ņ","ncedil":"ņ","ncong":"≇","ncongdot":"⩭̸","ncup":"⩂","Ncy":"Н","ncy":"н","ndash":"–","nearhk":"⤤","nearr":"↗","neArr":"⇗","nearrow":"↗","ne":"≠","nedot":"≐̸","NegativeMediumSpace":"​","NegativeThickSpace":"​","NegativeThinSpace":"​","NegativeVeryThinSpace":"​","nequiv":"≢","nesear":"⤨","nesim":"≂̸","NestedGreaterGreater":"≫","NestedLessLess":"≪","NewLine":"\\n","nexist":"∄","nexists":"∄","Nfr":"𝔑","nfr":"𝔫","ngE":"≧̸","nge":"≱","ngeq":"≱","ngeqq":"≧̸","ngeqslant":"⩾̸","nges":"⩾̸","nGg":"⋙̸","ngsim":"≵","nGt":"≫⃒","ngt":"≯","ngtr":"≯","nGtv":"≫̸","nharr":"↮","nhArr":"⇎","nhpar":"⫲","ni":"∋","nis":"⋼","nisd":"⋺","niv":"∋","NJcy":"Њ","njcy":"њ","nlarr":"↚","nlArr":"⇍","nldr":"‥","nlE":"≦̸","nle":"≰","nleftarrow":"↚","nLeftarrow":"⇍","nleftrightarrow":"↮","nLeftrightarrow":"⇎","nleq":"≰","nleqq":"≦̸","nleqslant":"⩽̸","nles":"⩽̸","nless":"≮","nLl":"⋘̸","nlsim":"≴","nLt":"≪⃒","nlt":"≮","nltri":"⋪","nltrie":"⋬","nLtv":"≪̸","nmid":"∤","NoBreak":"⁠","NonBreakingSpace":" ","nopf":"𝕟","Nopf":"ℕ","Not":"⫬","not":"¬","NotCongruent":"≢","NotCupCap":"≭","NotDoubleVerticalBar":"∦","NotElement":"∉","NotEqual":"≠","NotEqualTilde":"≂̸","NotExists":"∄","NotGreater":"≯","NotGreaterEqual":"≱","NotGreaterFullEqual":"≧̸","NotGreaterGreater":"≫̸","NotGreaterLess":"≹","NotGreaterSlantEqual":"⩾̸","NotGreaterTilde":"≵","NotHumpDownHump":"≎̸","NotHumpEqual":"≏̸","notin":"∉","notindot":"⋵̸","notinE":"⋹̸","notinva":"∉","notinvb":"⋷","notinvc":"⋶","NotLeftTriangleBar":"⧏̸","NotLeftTriangle":"⋪","NotLeftTriangleEqual":"⋬","NotLess":"≮","NotLessEqual":"≰","NotLessGreater":"≸","NotLessLess":"≪̸","NotLessSlantEqual":"⩽̸","NotLessTilde":"≴","NotNestedGreaterGreater":"⪢̸","NotNestedLessLess":"⪡̸","notni":"∌","notniva":"∌","notnivb":"⋾","notnivc":"⋽","NotPrecedes":"⊀","NotPrecedesEqual":"⪯̸","NotPrecedesSlantEqual":"⋠","NotReverseElement":"∌","NotRightTriangleBar":"⧐̸","NotRightTriangle":"⋫","NotRightTriangleEqual":"⋭","NotSquareSubset":"⊏̸","NotSquareSubsetEqual":"⋢","NotSquareSuperset":"⊐̸","NotSquareSupersetEqual":"⋣","NotSubset":"⊂⃒","NotSubsetEqual":"⊈","NotSucceeds":"⊁","NotSucceedsEqual":"⪰̸","NotSucceedsSlantEqual":"⋡","NotSucceedsTilde":"≿̸","NotSuperset":"⊃⃒","NotSupersetEqual":"⊉","NotTilde":"≁","NotTildeEqual":"≄","NotTildeFullEqual":"≇","NotTildeTilde":"≉","NotVerticalBar":"∤","nparallel":"∦","npar":"∦","nparsl":"⫽⃥","npart":"∂̸","npolint":"⨔","npr":"⊀","nprcue":"⋠","nprec":"⊀","npreceq":"⪯̸","npre":"⪯̸","nrarrc":"⤳̸","nrarr":"↛","nrArr":"⇏","nrarrw":"↝̸","nrightarrow":"↛","nRightarrow":"⇏","nrtri":"⋫","nrtrie":"⋭","nsc":"⊁","nsccue":"⋡","nsce":"⪰̸","Nscr":"𝒩","nscr":"𝓃","nshortmid":"∤","nshortparallel":"∦","nsim":"≁","nsime":"≄","nsimeq":"≄","nsmid":"∤","nspar":"∦","nsqsube":"⋢","nsqsupe":"⋣","nsub":"⊄","nsubE":"⫅̸","nsube":"⊈","nsubset":"⊂⃒","nsubseteq":"⊈","nsubseteqq":"⫅̸","nsucc":"⊁","nsucceq":"⪰̸","nsup":"⊅","nsupE":"⫆̸","nsupe":"⊉","nsupset":"⊃⃒","nsupseteq":"⊉","nsupseteqq":"⫆̸","ntgl":"≹","Ntilde":"Ñ","ntilde":"ñ","ntlg":"≸","ntriangleleft":"⋪","ntrianglelefteq":"⋬","ntriangleright":"⋫","ntrianglerighteq":"⋭","Nu":"Ν","nu":"ν","num":"#","numero":"№","numsp":" ","nvap":"≍⃒","nvdash":"⊬","nvDash":"⊭","nVdash":"⊮","nVDash":"⊯","nvge":"≥⃒","nvgt":">⃒","nvHarr":"⤄","nvinfin":"⧞","nvlArr":"⤂","nvle":"≤⃒","nvlt":"<⃒","nvltrie":"⊴⃒","nvrArr":"⤃","nvrtrie":"⊵⃒","nvsim":"∼⃒","nwarhk":"⤣","nwarr":"↖","nwArr":"⇖","nwarrow":"↖","nwnear":"⤧","Oacute":"Ó","oacute":"ó","oast":"⊛","Ocirc":"Ô","ocirc":"ô","ocir":"⊚","Ocy":"О","ocy":"о","odash":"⊝","Odblac":"Ő","odblac":"ő","odiv":"⨸","odot":"⊙","odsold":"⦼","OElig":"Œ","oelig":"œ","ofcir":"⦿","Ofr":"𝔒","ofr":"𝔬","ogon":"˛","Ograve":"Ò","ograve":"ò","ogt":"⧁","ohbar":"⦵","ohm":"Ω","oint":"∮","olarr":"↺","olcir":"⦾","olcross":"⦻","oline":"‾","olt":"⧀","Omacr":"Ō","omacr":"ō","Omega":"Ω","omega":"ω","Omicron":"Ο","omicron":"ο","omid":"⦶","ominus":"⊖","Oopf":"𝕆","oopf":"𝕠","opar":"⦷","OpenCurlyDoubleQuote":"“","OpenCurlyQuote":"‘","operp":"⦹","oplus":"⊕","orarr":"↻","Or":"⩔","or":"∨","ord":"⩝","order":"ℴ","orderof":"ℴ","ordf":"ª","ordm":"º","origof":"⊶","oror":"⩖","orslope":"⩗","orv":"⩛","oS":"Ⓢ","Oscr":"𝒪","oscr":"ℴ","Oslash":"Ø","oslash":"ø","osol":"⊘","Otilde":"Õ","otilde":"õ","otimesas":"⨶","Otimes":"⨷","otimes":"⊗","Ouml":"Ö","ouml":"ö","ovbar":"⌽","OverBar":"‾","OverBrace":"⏞","OverBracket":"⎴","OverParenthesis":"⏜","para":"¶","parallel":"∥","par":"∥","parsim":"⫳","parsl":"⫽","part":"∂","PartialD":"∂","Pcy":"П","pcy":"п","percnt":"%","period":".","permil":"‰","perp":"⊥","pertenk":"‱","Pfr":"𝔓","pfr":"𝔭","Phi":"Φ","phi":"φ","phiv":"ϕ","phmmat":"ℳ","phone":"☎","Pi":"Π","pi":"π","pitchfork":"⋔","piv":"ϖ","planck":"ℏ","planckh":"ℎ","plankv":"ℏ","plusacir":"⨣","plusb":"⊞","pluscir":"⨢","plus":"+","plusdo":"∔","plusdu":"⨥","pluse":"⩲","PlusMinus":"±","plusmn":"±","plussim":"⨦","plustwo":"⨧","pm":"±","Poincareplane":"ℌ","pointint":"⨕","popf":"𝕡","Popf":"ℙ","pound":"£","prap":"⪷","Pr":"⪻","pr":"≺","prcue":"≼","precapprox":"⪷","prec":"≺","preccurlyeq":"≼","Precedes":"≺","PrecedesEqual":"⪯","PrecedesSlantEqual":"≼","PrecedesTilde":"≾","preceq":"⪯","precnapprox":"⪹","precneqq":"⪵","precnsim":"⋨","pre":"⪯","prE":"⪳","precsim":"≾","prime":"′","Prime":"″","primes":"ℙ","prnap":"⪹","prnE":"⪵","prnsim":"⋨","prod":"∏","Product":"∏","profalar":"⌮","profline":"⌒","profsurf":"⌓","prop":"∝","Proportional":"∝","Proportion":"∷","propto":"∝","prsim":"≾","prurel":"⊰","Pscr":"𝒫","pscr":"𝓅","Psi":"Ψ","psi":"ψ","puncsp":" ","Qfr":"𝔔","qfr":"𝔮","qint":"⨌","qopf":"𝕢","Qopf":"ℚ","qprime":"⁗","Qscr":"𝒬","qscr":"𝓆","quaternions":"ℍ","quatint":"⨖","quest":"?","questeq":"≟","quot":"\\"","QUOT":"\\"","rAarr":"⇛","race":"∽̱","Racute":"Ŕ","racute":"ŕ","radic":"√","raemptyv":"⦳","rang":"⟩","Rang":"⟫","rangd":"⦒","range":"⦥","rangle":"⟩","raquo":"»","rarrap":"⥵","rarrb":"⇥","rarrbfs":"⤠","rarrc":"⤳","rarr":"→","Rarr":"↠","rArr":"⇒","rarrfs":"⤞","rarrhk":"↪","rarrlp":"↬","rarrpl":"⥅","rarrsim":"⥴","Rarrtl":"⤖","rarrtl":"↣","rarrw":"↝","ratail":"⤚","rAtail":"⤜","ratio":"∶","rationals":"ℚ","rbarr":"⤍","rBarr":"⤏","RBarr":"⤐","rbbrk":"❳","rbrace":"}","rbrack":"]","rbrke":"⦌","rbrksld":"⦎","rbrkslu":"⦐","Rcaron":"Ř","rcaron":"ř","Rcedil":"Ŗ","rcedil":"ŗ","rceil":"⌉","rcub":"}","Rcy":"Р","rcy":"р","rdca":"⤷","rdldhar":"⥩","rdquo":"”","rdquor":"”","rdsh":"↳","real":"ℜ","realine":"ℛ","realpart":"ℜ","reals":"ℝ","Re":"ℜ","rect":"▭","reg":"®","REG":"®","ReverseElement":"∋","ReverseEquilibrium":"⇋","ReverseUpEquilibrium":"⥯","rfisht":"⥽","rfloor":"⌋","rfr":"𝔯","Rfr":"ℜ","rHar":"⥤","rhard":"⇁","rharu":"⇀","rharul":"⥬","Rho":"Ρ","rho":"ρ","rhov":"ϱ","RightAngleBracket":"⟩","RightArrowBar":"⇥","rightarrow":"→","RightArrow":"→","Rightarrow":"⇒","RightArrowLeftArrow":"⇄","rightarrowtail":"↣","RightCeiling":"⌉","RightDoubleBracket":"⟧","RightDownTeeVector":"⥝","RightDownVectorBar":"⥕","RightDownVector":"⇂","RightFloor":"⌋","rightharpoondown":"⇁","rightharpoonup":"⇀","rightleftarrows":"⇄","rightleftharpoons":"⇌","rightrightarrows":"⇉","rightsquigarrow":"↝","RightTeeArrow":"↦","RightTee":"⊢","RightTeeVector":"⥛","rightthreetimes":"⋌","RightTriangleBar":"⧐","RightTriangle":"⊳","RightTriangleEqual":"⊵","RightUpDownVector":"⥏","RightUpTeeVector":"⥜","RightUpVectorBar":"⥔","RightUpVector":"↾","RightVectorBar":"⥓","RightVector":"⇀","ring":"˚","risingdotseq":"≓","rlarr":"⇄","rlhar":"⇌","rlm":"‏","rmoustache":"⎱","rmoust":"⎱","rnmid":"⫮","roang":"⟭","roarr":"⇾","robrk":"⟧","ropar":"⦆","ropf":"𝕣","Ropf":"ℝ","roplus":"⨮","rotimes":"⨵","RoundImplies":"⥰","rpar":")","rpargt":"⦔","rppolint":"⨒","rrarr":"⇉","Rrightarrow":"⇛","rsaquo":"›","rscr":"𝓇","Rscr":"ℛ","rsh":"↱","Rsh":"↱","rsqb":"]","rsquo":"’","rsquor":"’","rthree":"⋌","rtimes":"⋊","rtri":"▹","rtrie":"⊵","rtrif":"▸","rtriltri":"⧎","RuleDelayed":"⧴","ruluhar":"⥨","rx":"℞","Sacute":"Ś","sacute":"ś","sbquo":"‚","scap":"⪸","Scaron":"Š","scaron":"š","Sc":"⪼","sc":"≻","sccue":"≽","sce":"⪰","scE":"⪴","Scedil":"Ş","scedil":"ş","Scirc":"Ŝ","scirc":"ŝ","scnap":"⪺","scnE":"⪶","scnsim":"⋩","scpolint":"⨓","scsim":"≿","Scy":"С","scy":"с","sdotb":"⊡","sdot":"⋅","sdote":"⩦","searhk":"⤥","searr":"↘","seArr":"⇘","searrow":"↘","sect":"§","semi":";","seswar":"⤩","setminus":"∖","setmn":"∖","sext":"✶","Sfr":"𝔖","sfr":"𝔰","sfrown":"⌢","sharp":"♯","SHCHcy":"Щ","shchcy":"щ","SHcy":"Ш","shcy":"ш","ShortDownArrow":"↓","ShortLeftArrow":"←","shortmid":"∣","shortparallel":"∥","ShortRightArrow":"→","ShortUpArrow":"↑","shy":"­","Sigma":"Σ","sigma":"σ","sigmaf":"ς","sigmav":"ς","sim":"∼","simdot":"⩪","sime":"≃","simeq":"≃","simg":"⪞","simgE":"⪠","siml":"⪝","simlE":"⪟","simne":"≆","simplus":"⨤","simrarr":"⥲","slarr":"←","SmallCircle":"∘","smallsetminus":"∖","smashp":"⨳","smeparsl":"⧤","smid":"∣","smile":"⌣","smt":"⪪","smte":"⪬","smtes":"⪬︀","SOFTcy":"Ь","softcy":"ь","solbar":"⌿","solb":"⧄","sol":"/","Sopf":"𝕊","sopf":"𝕤","spades":"♠","spadesuit":"♠","spar":"∥","sqcap":"⊓","sqcaps":"⊓︀","sqcup":"⊔","sqcups":"⊔︀","Sqrt":"√","sqsub":"⊏","sqsube":"⊑","sqsubset":"⊏","sqsubseteq":"⊑","sqsup":"⊐","sqsupe":"⊒","sqsupset":"⊐","sqsupseteq":"⊒","square":"□","Square":"□","SquareIntersection":"⊓","SquareSubset":"⊏","SquareSubsetEqual":"⊑","SquareSuperset":"⊐","SquareSupersetEqual":"⊒","SquareUnion":"⊔","squarf":"▪","squ":"□","squf":"▪","srarr":"→","Sscr":"𝒮","sscr":"𝓈","ssetmn":"∖","ssmile":"⌣","sstarf":"⋆","Star":"⋆","star":"☆","starf":"★","straightepsilon":"ϵ","straightphi":"ϕ","strns":"¯","sub":"⊂","Sub":"⋐","subdot":"⪽","subE":"⫅","sube":"⊆","subedot":"⫃","submult":"⫁","subnE":"⫋","subne":"⊊","subplus":"⪿","subrarr":"⥹","subset":"⊂","Subset":"⋐","subseteq":"⊆","subseteqq":"⫅","SubsetEqual":"⊆","subsetneq":"⊊","subsetneqq":"⫋","subsim":"⫇","subsub":"⫕","subsup":"⫓","succapprox":"⪸","succ":"≻","succcurlyeq":"≽","Succeeds":"≻","SucceedsEqual":"⪰","SucceedsSlantEqual":"≽","SucceedsTilde":"≿","succeq":"⪰","succnapprox":"⪺","succneqq":"⪶","succnsim":"⋩","succsim":"≿","SuchThat":"∋","sum":"∑","Sum":"∑","sung":"♪","sup1":"¹","sup2":"²","sup3":"³","sup":"⊃","Sup":"⋑","supdot":"⪾","supdsub":"⫘","supE":"⫆","supe":"⊇","supedot":"⫄","Superset":"⊃","SupersetEqual":"⊇","suphsol":"⟉","suphsub":"⫗","suplarr":"⥻","supmult":"⫂","supnE":"⫌","supne":"⊋","supplus":"⫀","supset":"⊃","Supset":"⋑","supseteq":"⊇","supseteqq":"⫆","supsetneq":"⊋","supsetneqq":"⫌","supsim":"⫈","supsub":"⫔","supsup":"⫖","swarhk":"⤦","swarr":"↙","swArr":"⇙","swarrow":"↙","swnwar":"⤪","szlig":"ß","Tab":"\\t","target":"⌖","Tau":"Τ","tau":"τ","tbrk":"⎴","Tcaron":"Ť","tcaron":"ť","Tcedil":"Ţ","tcedil":"ţ","Tcy":"Т","tcy":"т","tdot":"⃛","telrec":"⌕","Tfr":"𝔗","tfr":"𝔱","there4":"∴","therefore":"∴","Therefore":"∴","Theta":"Θ","theta":"θ","thetasym":"ϑ","thetav":"ϑ","thickapprox":"≈","thicksim":"∼","ThickSpace":"  ","ThinSpace":" ","thinsp":" ","thkap":"≈","thksim":"∼","THORN":"Þ","thorn":"þ","tilde":"˜","Tilde":"∼","TildeEqual":"≃","TildeFullEqual":"≅","TildeTilde":"≈","timesbar":"⨱","timesb":"⊠","times":"×","timesd":"⨰","tint":"∭","toea":"⤨","topbot":"⌶","topcir":"⫱","top":"⊤","Topf":"𝕋","topf":"𝕥","topfork":"⫚","tosa":"⤩","tprime":"‴","trade":"™","TRADE":"™","triangle":"▵","triangledown":"▿","triangleleft":"◃","trianglelefteq":"⊴","triangleq":"≜","triangleright":"▹","trianglerighteq":"⊵","tridot":"◬","trie":"≜","triminus":"⨺","TripleDot":"⃛","triplus":"⨹","trisb":"⧍","tritime":"⨻","trpezium":"⏢","Tscr":"𝒯","tscr":"𝓉","TScy":"Ц","tscy":"ц","TSHcy":"Ћ","tshcy":"ћ","Tstrok":"Ŧ","tstrok":"ŧ","twixt":"≬","twoheadleftarrow":"↞","twoheadrightarrow":"↠","Uacute":"Ú","uacute":"ú","uarr":"↑","Uarr":"↟","uArr":"⇑","Uarrocir":"⥉","Ubrcy":"Ў","ubrcy":"ў","Ubreve":"Ŭ","ubreve":"ŭ","Ucirc":"Û","ucirc":"û","Ucy":"У","ucy":"у","udarr":"⇅","Udblac":"Ű","udblac":"ű","udhar":"⥮","ufisht":"⥾","Ufr":"𝔘","ufr":"𝔲","Ugrave":"Ù","ugrave":"ù","uHar":"⥣","uharl":"↿","uharr":"↾","uhblk":"▀","ulcorn":"⌜","ulcorner":"⌜","ulcrop":"⌏","ultri":"◸","Umacr":"Ū","umacr":"ū","uml":"¨","UnderBar":"_","UnderBrace":"⏟","UnderBracket":"⎵","UnderParenthesis":"⏝","Union":"⋃","UnionPlus":"⊎","Uogon":"Ų","uogon":"ų","Uopf":"𝕌","uopf":"𝕦","UpArrowBar":"⤒","uparrow":"↑","UpArrow":"↑","Uparrow":"⇑","UpArrowDownArrow":"⇅","updownarrow":"↕","UpDownArrow":"↕","Updownarrow":"⇕","UpEquilibrium":"⥮","upharpoonleft":"↿","upharpoonright":"↾","uplus":"⊎","UpperLeftArrow":"↖","UpperRightArrow":"↗","upsi":"υ","Upsi":"ϒ","upsih":"ϒ","Upsilon":"Υ","upsilon":"υ","UpTeeArrow":"↥","UpTee":"⊥","upuparrows":"⇈","urcorn":"⌝","urcorner":"⌝","urcrop":"⌎","Uring":"Ů","uring":"ů","urtri":"◹","Uscr":"𝒰","uscr":"𝓊","utdot":"⋰","Utilde":"Ũ","utilde":"ũ","utri":"▵","utrif":"▴","uuarr":"⇈","Uuml":"Ü","uuml":"ü","uwangle":"⦧","vangrt":"⦜","varepsilon":"ϵ","varkappa":"ϰ","varnothing":"∅","varphi":"ϕ","varpi":"ϖ","varpropto":"∝","varr":"↕","vArr":"⇕","varrho":"ϱ","varsigma":"ς","varsubsetneq":"⊊︀","varsubsetneqq":"⫋︀","varsupsetneq":"⊋︀","varsupsetneqq":"⫌︀","vartheta":"ϑ","vartriangleleft":"⊲","vartriangleright":"⊳","vBar":"⫨","Vbar":"⫫","vBarv":"⫩","Vcy":"В","vcy":"в","vdash":"⊢","vDash":"⊨","Vdash":"⊩","VDash":"⊫","Vdashl":"⫦","veebar":"⊻","vee":"∨","Vee":"⋁","veeeq":"≚","vellip":"⋮","verbar":"|","Verbar":"‖","vert":"|","Vert":"‖","VerticalBar":"∣","VerticalLine":"|","VerticalSeparator":"❘","VerticalTilde":"≀","VeryThinSpace":" ","Vfr":"𝔙","vfr":"𝔳","vltri":"⊲","vnsub":"⊂⃒","vnsup":"⊃⃒","Vopf":"𝕍","vopf":"𝕧","vprop":"∝","vrtri":"⊳","Vscr":"𝒱","vscr":"𝓋","vsubnE":"⫋︀","vsubne":"⊊︀","vsupnE":"⫌︀","vsupne":"⊋︀","Vvdash":"⊪","vzigzag":"⦚","Wcirc":"Ŵ","wcirc":"ŵ","wedbar":"⩟","wedge":"∧","Wedge":"⋀","wedgeq":"≙","weierp":"℘","Wfr":"𝔚","wfr":"𝔴","Wopf":"𝕎","wopf":"𝕨","wp":"℘","wr":"≀","wreath":"≀","Wscr":"𝒲","wscr":"𝓌","xcap":"⋂","xcirc":"◯","xcup":"⋃","xdtri":"▽","Xfr":"𝔛","xfr":"𝔵","xharr":"⟷","xhArr":"⟺","Xi":"Ξ","xi":"ξ","xlarr":"⟵","xlArr":"⟸","xmap":"⟼","xnis":"⋻","xodot":"⨀","Xopf":"𝕏","xopf":"𝕩","xoplus":"⨁","xotime":"⨂","xrarr":"⟶","xrArr":"⟹","Xscr":"𝒳","xscr":"𝓍","xsqcup":"⨆","xuplus":"⨄","xutri":"△","xvee":"⋁","xwedge":"⋀","Yacute":"Ý","yacute":"ý","YAcy":"Я","yacy":"я","Ycirc":"Ŷ","ycirc":"ŷ","Ycy":"Ы","ycy":"ы","yen":"¥","Yfr":"𝔜","yfr":"𝔶","YIcy":"Ї","yicy":"ї","Yopf":"𝕐","yopf":"𝕪","Yscr":"𝒴","yscr":"𝓎","YUcy":"Ю","yucy":"ю","yuml":"ÿ","Yuml":"Ÿ","Zacute":"Ź","zacute":"ź","Zcaron":"Ž","zcaron":"ž","Zcy":"З","zcy":"з","Zdot":"Ż","zdot":"ż","zeetrf":"ℨ","ZeroWidthSpace":"​","Zeta":"Ζ","zeta":"ζ","zfr":"𝔷","Zfr":"ℨ","ZHcy":"Ж","zhcy":"ж","zigrarr":"⇝","zopf":"𝕫","Zopf":"ℤ","Zscr":"𝒵","zscr":"𝓏","zwj":"‍","zwnj":"‌"}')},function(e){e.exports=JSON.parse('{"Aacute":"Á","aacute":"á","Acirc":"Â","acirc":"â","acute":"´","AElig":"Æ","aelig":"æ","Agrave":"À","agrave":"à","amp":"&","AMP":"&","Aring":"Å","aring":"å","Atilde":"Ã","atilde":"ã","Auml":"Ä","auml":"ä","brvbar":"¦","Ccedil":"Ç","ccedil":"ç","cedil":"¸","cent":"¢","copy":"©","COPY":"©","curren":"¤","deg":"°","divide":"÷","Eacute":"É","eacute":"é","Ecirc":"Ê","ecirc":"ê","Egrave":"È","egrave":"è","ETH":"Ð","eth":"ð","Euml":"Ë","euml":"ë","frac12":"½","frac14":"¼","frac34":"¾","gt":">","GT":">","Iacute":"Í","iacute":"í","Icirc":"Î","icirc":"î","iexcl":"¡","Igrave":"Ì","igrave":"ì","iquest":"¿","Iuml":"Ï","iuml":"ï","laquo":"«","lt":"<","LT":"<","macr":"¯","micro":"µ","middot":"·","nbsp":" ","not":"¬","Ntilde":"Ñ","ntilde":"ñ","Oacute":"Ó","oacute":"ó","Ocirc":"Ô","ocirc":"ô","Ograve":"Ò","ograve":"ò","ordf":"ª","ordm":"º","Oslash":"Ø","oslash":"ø","Otilde":"Õ","otilde":"õ","Ouml":"Ö","ouml":"ö","para":"¶","plusmn":"±","pound":"£","quot":"\\"","QUOT":"\\"","raquo":"»","reg":"®","REG":"®","sect":"§","shy":"­","sup1":"¹","sup2":"²","sup3":"³","szlig":"ß","THORN":"Þ","thorn":"þ","times":"×","Uacute":"Ú","uacute":"ú","Ucirc":"Û","ucirc":"û","Ugrave":"Ù","ugrave":"ù","uml":"¨","Uuml":"Ü","uuml":"ü","Yacute":"Ý","yacute":"ý","yen":"¥","yuml":"ÿ"}')},function(e){e.exports=JSON.parse('{"amp":"&","apos":"\'","gt":">","lt":"<","quot":"\\""}')},function(e,t,n){"use strict";var r=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0});var i=r(n(16));t.default=function(e){if(e>=55296&&e<=57343||e>1114111)return"�";e in i.default&&(e=i.default[e]);var t="";return e>65535&&(e-=65536,t+=String.fromCharCode(e>>>10&1023|55296),e=56320|1023&e),t+String.fromCharCode(e)}},function(e){e.exports=JSON.parse('{"0":65533,"128":8364,"130":8218,"131":402,"132":8222,"133":8230,"134":8224,"135":8225,"136":710,"137":8240,"138":352,"139":8249,"140":338,"142":381,"145":8216,"146":8217,"147":8220,"148":8221,"149":8226,"150":8211,"151":8212,"152":732,"153":8482,"154":353,"155":8250,"156":339,"158":382,"159":376}')},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1),i=function(){function e(e){this.current=e,this.root=e,this.entering=!0}return e.prototype.next=function(){var e=this.current,t=this.entering;if(null===e)return null;var n=r.isContainer(e);return t&&n?e.firstChild?(this.current=e.firstChild,this.entering=!0):this.entering=!1:e===this.root?this.current=null:null===e.next?(this.current=e.parent,this.entering=!1):(this.current=e.next,this.entering=!0),{entering:t,node:e}},e.prototype.resumeAt=function(e,t){this.current=e,this.entering=!0===t},e}();t.default=i},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(8),s=r.__importDefault(n(19)),l=n(7),c=n(20),u=n(3),d=n(5);t.C_NEWLINE=10;var h="\\\\"+a.ESCAPABLE,f=new RegExp(/[!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/),p=new RegExp('^(?:"('+h+'|[^"\\x00])*"|\'('+h+"|[^'\\x00])*'|\\(("+h+"|[^()\\x00])*\\))"),g=/^(?:<(?:[^<>\n\\\x00]|\\.)*>)/,m=new RegExp("^"+a.ESCAPABLE),v=new RegExp("^"+a.ENTITY,"i"),y=/`+/,b=/^`+/,_=/\.\.\./g,w=/--+/g,C=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,E=/^<[A-Za-z][A-Za-z0-9.+-]{1,31}:[^<>\x00-\x20]*>/i,S=/^ *(?:\n *)?/,T=/^[ \t\n\x0b\x0c\x0d]/,k=/^\s/,N=/ *$/,x=/^ */,L=/^ *(?:\n|$)/,O=/^\[(?:[^\\\[\]]|\\.){0,1000}\]/,M=/^[^\n`\[\]\\!<&*_'"~]+/m,A=function(){function e(e){this.subject="",this.delimiters=null,this.brackets=null,this.pos=0,this.lineStartNum=0,this.lineIdx=0,this.lineOffsets=[0],this.linePosOffset=0,this.refMap={},this.refLinkCandidateMap={},this.refDefCandidateMap={},this.options=e}return e.prototype.sourcepos=function(e,t){var n=this.linePosOffset+this.lineOffsets[this.lineIdx],r=this.lineStartNum+this.lineIdx,i=[r,e+n];return"number"==typeof t?[i,[r,t+n]]:i},e.prototype.nextLine=function(){this.lineIdx+=1,this.linePosOffset=-this.pos},e.prototype.match=function(e){var t=e.exec(this.subject.slice(this.pos));return null===t?null:(this.pos+=t.index+t[0].length,t[0])},e.prototype.peek=function(){return this.pos<this.subject.length?this.subject.charCodeAt(this.pos):-1},e.prototype.spnl=function(){return this.match(S),!0},e.prototype.parseBackticks=function(e){var t=this.pos+1,n=this.match(b);if(null===n)return!1;for(var r,a=this.pos;null!==(r=this.match(y));)if(r===n){var o=this.subject.slice(a,this.pos-n.length),s=this.sourcepos(t,this.pos),l=o.split("\n");if(l.length>1){var c=u.last(l);this.lineIdx+=l.length-1,this.linePosOffset=-(this.pos-c.length-n.length),s[1]=this.sourcepos(this.pos),o=l.join(" ")}var d=i.createNode("code",s);return o.length>0&&null!==o.match(/[^ ]/)&&" "==o[0]&&" "==o[o.length-1]?d.literal=o.slice(1,o.length-1):d.literal=o,d.tickCount=n.length,e.appendChild(d),!0}return this.pos=a,e.appendChild(i.text(n,this.sourcepos(t,this.pos-1))),!0},e.prototype.parseBackslash=function(e){var n,r=this.subject;this.pos+=1;var a=this.pos;return this.peek()===t.C_NEWLINE?(this.pos+=1,n=i.createNode("linebreak",this.sourcepos(this.pos-1,this.pos)),e.appendChild(n),this.nextLine()):m.test(r.charAt(this.pos))?(e.appendChild(i.text(r.charAt(this.pos),this.sourcepos(a,this.pos))),this.pos+=1):e.appendChild(i.text("\\",this.sourcepos(a,a))),!0},e.prototype.parseAutolink=function(e){var t,n,r,o=this.pos+1;return(t=this.match(C))?(n=t.slice(1,t.length-1),(r=i.createNode("link",this.sourcepos(o,this.pos))).destination=a.normalizeURI("mailto:"+n),r.title="",r.appendChild(i.text(n,this.sourcepos(o+1,this.pos-1))),e.appendChild(r),!0):!!(t=this.match(E))&&(n=t.slice(1,t.length-1),(r=i.createNode("link",this.sourcepos(o,this.pos))).destination=a.normalizeURI(n),r.title="",r.appendChild(i.text(n,this.sourcepos(o+1,this.pos-1))),e.appendChild(r),!0)},e.prototype.parseHtmlTag=function(e){var t=this.pos+1,n=this.match(o.reHtmlTag);if(null===n)return!1;var r=i.createNode("htmlInline",this.sourcepos(t,this.pos));return r.literal=n,e.appendChild(r),!0},e.prototype.scanDelims=function(e){var t=0,n=this.pos;if(39===e||34===e)t++,this.pos++;else for(;this.peek()===e;)t++,this.pos++;if(0===t||t<2&&126===e)return this.pos=n,null;var r,i=0===n?"\n":this.subject.charAt(n-1),a=this.peek();r=-1===a?"\n":s.default(a);var o,l,c=k.test(r),u=f.test(r),d=k.test(i),h=f.test(i),p=!c&&(!u||d||h),g=!d&&(!h||c||u);return 95===e?(o=p&&(!g||h),l=g&&(!p||u)):39===e||34===e?(o=p&&!g,l=g):(o=p,l=g),this.pos=n,{numdelims:t,canOpen:o,canClose:l}},e.prototype.handleDelim=function(e,t){var n=this.scanDelims(e);if(!n)return!1;var r,a=n.numdelims,o=this.pos+1;this.pos+=a,r=39===e?"’":34===e?"“":this.subject.slice(o-1,this.pos);var s=i.text(r,this.sourcepos(o,this.pos));return t.appendChild(s),(n.canOpen||n.canClose)&&(this.options.smart||39!==e&&34!==e)&&(this.delimiters={cc:e,numdelims:a,origdelims:a,node:s,previous:this.delimiters,next:null,canOpen:n.canOpen,canClose:n.canClose},this.delimiters.previous&&(this.delimiters.previous.next=this.delimiters)),!0},e.prototype.removeDelimiter=function(e){null!==e.previous&&(e.previous.next=e.next),null===e.next?this.delimiters=e.previous:e.next.previous=e.previous},e.prototype.removeDelimitersBetween=function(e,t){e.next!==t&&(e.next=t,t.previous=e)},e.prototype.processEmphasis=function(e){var t,n,r,a,o,s,l,c=!1,u=((t={})[95]=[e,e,e],t[42]=[e,e,e],t[39]=[e],t[34]=[e],t[126]=[e],t);for(r=this.delimiters;null!==r&&r.previous!==e;)r=r.previous;for(;null!==r;){var d=r.cc,h=95===d||42===d;if(r.canClose){for(n=r.previous,l=!1;null!==n&&n!==e&&n!==u[d][h?r.origdelims%3:0];){if(c=h&&(r.canOpen||n.canClose)&&r.origdelims%3!=0&&(n.origdelims+r.origdelims)%3==0,n.cc===r.cc&&n.canOpen&&!c){l=!0;break}n=n.previous}if(a=r,h||126===d)if(l){if(n){var f=r.numdelims>=2&&n.numdelims>=2?2:1,p=h?0:1;o=n.node,s=r.node;var g=i.createNode(h?1===f?"emph":"strong":"strike"),m=o.sourcepos[1],v=s.sourcepos[0];g.sourcepos=[[m[0],m[1]-f+1],[v[0],v[1]+f-1]],o.sourcepos[1][1]-=f,s.sourcepos[0][1]+=f,o.literal=o.literal.slice(f),s.literal=s.literal.slice(f),n.numdelims-=f,r.numdelims-=f;for(var y=o.next,b=void 0;y&&y!==s;)b=y.next,y.unlink(),g.appendChild(y),y=b;if(o.insertAfter(g),this.removeDelimitersBetween(n,r),n.numdelims<=p&&(0===n.numdelims&&o.unlink(),this.removeDelimiter(n)),r.numdelims<=p){0===r.numdelims&&s.unlink();var _=r.next;this.removeDelimiter(r),r=_}}}else r=r.next;else 39===d?(r.node.literal="’",l&&(n.node.literal="‘"),r=r.next):34===d&&(r.node.literal="”",l&&(n.node.literal="“"),r=r.next);l||(u[d][h?a.origdelims%3:0]=a.previous,a.canOpen||this.removeDelimiter(a))}else r=r.next}for(;null!==this.delimiters&&this.delimiters!==e;)this.removeDelimiter(this.delimiters)},e.prototype.parseLinkTitle=function(){var e=this.match(p);return null===e?null:a.unescapeString(e.substr(1,e.length-2))},e.prototype.parseLinkDestination=function(){var e=this.match(g);if(null===e){if(60===this.peek())return null;for(var t=this.pos,n=0,r=void 0;-1!==(r=this.peek());)if(92===r&&m.test(this.subject.charAt(this.pos+1)))this.pos+=1,-1!==this.peek()&&(this.pos+=1);else if(40===r)this.pos+=1,n+=1;else if(41===r){if(n<1)break;this.pos+=1,n-=1}else{if(null!==T.exec(s.default(r)))break;this.pos+=1}return this.pos===t&&41!==r||0!==n?null:(e=this.subject.substr(t,this.pos-t),a.normalizeURI(a.unescapeString(e)))}return a.normalizeURI(a.unescapeString(e.substr(1,e.length-2)))},e.prototype.parseLinkLabel=function(){var e=this.match(O);return null===e||e.length>1001?0:e.length},e.prototype.parseOpenBracket=function(e){var t=this.pos;this.pos+=1;var n=i.text("[",this.sourcepos(this.pos,this.pos));return e.appendChild(n),this.addBracket(n,t,!1),!0},e.prototype.parseBang=function(e){var t=this.pos;if(this.pos+=1,91===this.peek()){this.pos+=1;var n=i.text("![",this.sourcepos(this.pos-1,this.pos));e.appendChild(n),this.addBracket(n,t+1,!0)}else n=i.text("!",this.sourcepos(this.pos,this.pos)),e.appendChild(n);return!0},e.prototype.parseCloseBracket=function(e){var t=null,n=null,r=!1;this.pos+=1;var a=this.pos,o=this.brackets;if(null===o)return e.appendChild(i.text("]",this.sourcepos(a,a))),!0;if(!o.active)return e.appendChild(i.text("]",this.sourcepos(a,a))),this.removeBracket(),!0;var s=o.image,l=this.pos;40===this.peek()&&(this.pos++,this.spnl()&&null!==(t=this.parseLinkDestination())&&this.spnl()&&(T.test(this.subject.charAt(this.pos-1))&&(n=this.parseLinkTitle()),1)&&this.spnl()&&41===this.peek()?(this.pos+=1,r=!0):this.pos=l);var c="";if(!r){var d=this.pos,h=this.parseLinkLabel();if(h>2?c=this.subject.slice(d,d+h):o.bracketAfter||(c=this.subject.slice(o.index,a)),0===h&&(this.pos=l),c){c=u.normalizeReference(c);var f=this.refMap[c];f&&(t=f.destination,n=f.title,r=!0)}}if(r){var p=i.createNode(s?"image":"link");p.destination=t,p.title=n||"",p.sourcepos=[o.startpos,this.sourcepos(this.pos)];for(var g=o.node.next,m=void 0;g;)m=g.next,g.unlink(),p.appendChild(g),g=m;if(e.appendChild(p),this.processEmphasis(o.previousDelimiter),this.removeBracket(),o.node.unlink(),!s)for(o=this.brackets;null!==o;)o.image||(o.active=!1),o=o.previous;return this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:c}),!0}return this.removeBracket(),this.pos=a,e.appendChild(i.text("]",this.sourcepos(a,a))),this.options.referenceDefinition&&(this.refLinkCandidateMap[e.id]={node:e,refLabel:c}),!0},e.prototype.addBracket=function(e,t,n){null!==this.brackets&&(this.brackets.bracketAfter=!0),this.brackets={node:e,startpos:this.sourcepos(t+(n?0:1)),previous:this.brackets,previousDelimiter:this.delimiters,index:t,image:n,active:!0}},e.prototype.removeBracket=function(){this.brackets&&(this.brackets=this.brackets.previous)},e.prototype.parseEntity=function(e){var t,n=this.pos+1;return!!(t=this.match(v))&&(e.appendChild(i.text(l.decodeHTML(t),this.sourcepos(n,this.pos))),!0)},e.prototype.parseString=function(e){var t,n=this.pos+1;if(t=this.match(M)){if(this.options.smart){var r=t.replace(_,"…").replace(w,(function(e){var t=0,n=0;return e.length%3==0?n=e.length/3:e.length%2==0?t=e.length/2:e.length%3==2?(t=1,n=(e.length-2)/3):(t=2,n=(e.length-4)/3),a.repeat("—",n)+a.repeat("–",t)}));e.appendChild(i.text(r,this.sourcepos(n,this.pos)))}else{var o=i.text(t,this.sourcepos(n,this.pos));e.appendChild(o)}return!0}return!1},e.prototype.parseNewline=function(e){this.pos+=1;var t=e.lastChild;if(t&&"text"===t.type&&" "===t.literal[t.literal.length-1]){var n=" "===t.literal[t.literal.length-2],r=t.literal.length;t.literal=t.literal.replace(N,"");var a=r-t.literal.length;t.sourcepos[1][1]-=a,e.appendChild(i.createNode(n?"linebreak":"softbreak",this.sourcepos(this.pos-a,this.pos)))}else e.appendChild(i.createNode("softbreak",this.sourcepos(this.pos,this.pos)));return this.nextLine(),this.match(x),!0},e.prototype.parseReference=function(e,t){if(!this.options.referenceDefinition)return 0;this.subject=e.stringContent,this.pos=0;var n=null,r=this.pos,a=this.parseLinkLabel();if(0===a)return 0;var o=this.subject.substr(0,a);if(58!==this.peek())return this.pos=r,0;this.pos++,this.spnl();var s=this.parseLinkDestination();if(null===s)return this.pos=r,0;var l=this.pos;this.spnl(),this.pos!==l&&(n=this.parseLinkTitle()),null===n&&(n="",this.pos=l);var c=!0;if(null===this.match(L)&&(""===n?c=!1:(n="",this.pos=l,c=null!==this.match(L))),!c)return this.pos=r,0;var h=u.normalizeReference(o);if(""===h)return this.pos=r,0;var f=this.getReferenceDefSourcepos(e);e.sourcepos[0][0]=f[1][0]+1;var p=i.createNode("refDef",f);return p.title=n,p.dest=s,p.label=h,e.insertBefore(p),t[h]?this.refDefCandidateMap[p.id]=p:t[h]=d.createRefDefState(p),this.pos-r},e.prototype.mergeTextNodes=function(e){for(var t,n=[];t=e.next();){var r=t.entering,i=t.node;if(r&&"text"===i.type)n.push(i);else if(1===n.length)n=[];else if(n.length>1){var a=n[0],o=n[n.length-1];a.sourcepos&&o.sourcepos&&(a.sourcepos[1]=o.sourcepos[1]),a.next=o.next,a.next&&(a.next.prev=a);for(var s=1;s<n.length;s+=1)a.literal+=n[s].literal,n[s].unlink();n=[]}}},e.prototype.getReferenceDefSourcepos=function(e){for(var t=e.stringContent.split(/\n|\r\n/),n=!1,r=0,i={line:0,ch:0},a=0;a<t.length;a+=1){var o=t[a];if(T.test(o))break;if(/\:/.test(o)&&0===r){if(n)break;var s=o.indexOf(":")===o.length-1?a+1:a;i={line:s,ch:t[s].length},n=!0}var l=o.match(/'|"/g);if(l&&(r+=l.length),2===r){i={line:a,ch:o.length};break}}return[[e.sourcepos[0][0],e.sourcepos[0][1]],[e.sourcepos[0][0]+i.line,i.ch]]},e.prototype.parseInline=function(e){var n,r=!1,a=this.peek();if(-1===a)return!1;switch(a){case t.C_NEWLINE:r=this.parseNewline(e);break;case 92:r=this.parseBackslash(e);break;case 96:r=this.parseBackticks(e);break;case 42:case 95:case 126:r=this.handleDelim(a,e);break;case 39:case 34:r=!!(null===(n=this.options)||void 0===n?void 0:n.smart)&&this.handleDelim(a,e);break;case 91:r=this.parseOpenBracket(e);break;case 33:r=this.parseBang(e);break;case 93:r=this.parseCloseBracket(e);break;case 60:r=this.parseAutolink(e)||this.parseHtmlTag(e);break;case 38:r=this.parseEntity(e);break;default:r=this.parseString(e)}return r||(this.pos+=1,e.appendChild(i.text(s.default(a),this.sourcepos(this.pos,this.pos+1)))),!0},e.prototype.parse=function(e){for(this.subject=e.stringContent.trim(),this.pos=0,this.delimiters=null,this.brackets=null,this.lineOffsets=e.lineOffsets||[0],this.lineIdx=0,this.linePosOffset=0,this.lineStartNum=e.sourcepos[0][0],i.isHeading(e)&&(this.lineOffsets[0]+=e.level+1);this.parseInline(e););e.stringContent=null,this.processEmphasis(null),this.mergeTextNodes(e.walker());var t=this.options,n=t.extendedAutolinks,r=t.customParser;if(n&&c.convertExtAutoLinks(e.walker(),n),r&&e.firstChild)for(var a,o=e.firstChild.walker();a=o.next();){var s=a.node,l=a.entering;r[s.type]&&r[s.type](s,{entering:l})}},e}();t.InlineParser=A},function(e,t,n){"use strict";
/*! http://mths.be/fromcodepoint v0.2.1 by @mathias */var r;if(Object.defineProperty(t,"__esModule",{value:!0}),String.fromCodePoint)r=function(e){try{return String.fromCodePoint(e)}catch(e){if(e instanceof RangeError)return String.fromCharCode(65533);throw e}};else{var i=String.fromCharCode,a=Math.floor;r=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r,o=16384,s=[],l=-1,c=e.length;if(!c)return"";for(var u="";++l<c;){var d=Number(e[l]);if(!isFinite(d)||d<0||d>1114111||a(d)!==d)return String.fromCharCode(65533);d<=65535?s.push(d):(n=55296+((d-=65536)>>10),r=d%1024+56320,s.push(n,r)),(l+1===c||s.length>o)&&(u+=i.apply(void 0,s),s.length=0)}return u}}t.default=r},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1);function a(e){var t=/\)+$/.exec(e);if(t){for(var n=0,r=0,i=e;r<i.length;r++){var a=i[r];"("===a?n<0?n=1:n+=1:")"===a&&(n-=1)}if(n<0){var o=Math.min(-n,t[0].length);return e.substring(0,e.length-o)}}return e}function o(e){return e.replace(/&[A-Za-z0-9]+;$/,"")}function s(e){for(var t,n=new RegExp("[\\w.+-]+@(?:[\\w-]+\\.)+[\\w-]+","g"),r=[];t=n.exec(e);){var i=t[0];/[_-]+$/.test(i)||r.push({text:i,range:[t.index,t.index+i.length-1],url:"mailto:"+i})}return r}function l(e){for(var t,n=new RegExp("(www|https?://).(?:[w-]+.)*[A-Za-z0-9-]+.[A-Za-z0-9-]+[^<\\s]*[^<?!.,:*_?~\\s]","g"),r=[];t=n.exec(e);){var i=o(a(t[0])),s="www"===t[1]?"http://":"";r.push({text:i,range:[t.index,t.index+i.length-1],url:""+s+i})}return r}function c(e){return r.__spreadArrays(l(e),s(e)).sort((function(e,t){return e.range[0]-t.range[0]}))}t.parseEmailLink=s,t.parseUrlLink=l,t.convertExtAutoLinks=function(e,t){var n;"boolean"==typeof t&&(t=c);for(var r=function(){var e=n.entering,r=n.node;if(e&&"text"===r.type&&"link"!==r.parent.type){var a=r.literal,o=t(a);if(!o||!o.length)return"continue";for(var s=0,l=r.sourcepos[0],c=l[0],u=l[1],d=function(e,t){return[[c,u+e],[c,u+t]]},h=[],f=0,p=o;f<p.length;f++){var g=p[f],m=g.range,v=g.url,y=g.text;m[0]>s&&h.push(i.text(a.substring(s,m[0]),d(s,m[0]-1)));var b=i.createNode("link",d.apply(void 0,m));b.appendChild(i.text(y,d.apply(void 0,m))),b.destination=v,b.extendedAutolink=!0,h.push(b),s=m[1]+1}s<a.length&&h.push(i.text(a.substring(s),d(s,a.length-1)));for(var _=0,w=h;_<w.length;_++){var C=w[_];r.insertBefore(C)}r.unlink()}};n=e.next();)r()}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(22),i=n(23),a=n(4),o=n(2),s={continue:function(){return 0},finalize:function(e,t){for(var n=t.firstChild;n;){if(a.endsWithBlankLine(n)&&n.next){t.listData.tight=!1;break}for(var r=n.firstChild;r;){if(a.endsWithBlankLine(r)&&(n.next||r.next)){t.listData.tight=!1;break}r=r.next}n=n.next}},canContain:function(e){return"item"===e},acceptsLines:!1},l={continue:function(e){var t=e.currentLine;return e.indented||a.peek(t,e.nextNonspace)!==a.C_GREATERTHAN?1:(e.advanceNextNonspace(),e.advanceOffset(1,!1),a.isSpaceOrTab(a.peek(t,e.offset))&&e.advanceOffset(1,!0),0)},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},c={continue:function(e,t){if(e.blank){if(null===t.firstChild)return 1;e.advanceNextNonspace()}else{if(!(e.indent>=t.listData.markerOffset+t.listData.padding))return 1;e.advanceOffset(t.listData.markerOffset+t.listData.padding,!0)}return 0},finalize:r.taskListItemFinalize,canContain:function(e){return"item"!==e},acceptsLines:!1},u={continue:function(e,t){var n=e.currentLine,r=e.indent;if(t.isFenced){var i=r<=3&&n.charAt(e.nextNonspace)===t.fenceChar&&n.slice(e.nextNonspace).match(a.reClosingCodeFence);if(i&&i[0].length>=t.fenceLength)return e.lastLineLength=e.offset+r+i[0].length,e.finalize(t,e.lineNumber),2;for(var o=t.fenceOffset;o>0&&a.isSpaceOrTab(a.peek(n,e.offset));)e.advanceOffset(1,!0),o--}else if(r>=a.CODE_INDENT)e.advanceOffset(a.CODE_INDENT,!0);else{if(!e.blank)return 1;e.advanceNextNonspace()}return 0},finalize:function(e,t){var n;if(null!==t.stringContent){if(t.isFenced){var r=t.stringContent,i=r.indexOf("\n"),a=r.slice(0,i),s=r.slice(i+1),l=a.match(/^(\s*)(.*)/);t.infoPadding=l[1].length,t.info=o.unescapeString(l[2].trim()),t.literal=s}else t.literal=null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,"\n");t.stringContent=null}},canContain:function(){return!1},acceptsLines:!0},d={continue:function(e){return e.blank?1:0},finalize:function(e,t){if(null!==t.stringContent){for(var n,r=!1;a.peek(t.stringContent,0)===a.C_OPEN_BRACKET&&(n=e.inlineParser.parseReference(t,e.refMap));)t.stringContent=t.stringContent.slice(n),r=!0;r&&a.isBlank(t.stringContent)&&t.unlink()}},canContain:function(){return!1},acceptsLines:!0};t.blockHandlers={document:{continue:function(){return 0},finalize:function(){},canContain:function(e){return"item"!==e},acceptsLines:!1},list:s,blockQuote:l,item:c,heading:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},thematicBreak:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},codeBlock:u,htmlBlock:{continue:function(e,t){return!e.blank||6!==t.htmlBlockType&&7!==t.htmlBlockType?0:1},finalize:function(e,t){var n;t.literal=(null===(n=t.stringContent)||void 0===n?void 0:n.replace(/(\n *)+$/,""))||null,t.stringContent=null},canContain:function(){return!1},acceptsLines:!0},paragraph:d,table:i.table,tableBody:i.tableBody,tableHead:i.tableHead,tableRow:i.tableRow,tableCell:i.tableCell,tableDelimRow:i.tableDelimRow,tableDelimCell:i.tableDelimCell,refDef:{continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!0}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=/^\[([ \txX])\][ \t]+/;t.taskListItemFinalize=function(e,t){if(t.firstChild&&"paragraph"===t.firstChild.type){var n=t.firstChild,i=n.stringContent.match(r);if(i){var a=i[0].length;n.stringContent=n.stringContent.substring(a-1),n.sourcepos[0][1]+=a,n.lineOffsets[0]+=a,t.listData.task=!0,t.listData.checked=/[xX]/.test(i[1])}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.table={continue:function(){return 0},finalize:function(){},canContain:function(e){return"tableHead"===e||"tableBody"===e},acceptsLines:!1},t.tableBody={continue:function(){return 0},finalize:function(){},canContain:function(e){return"tableRow"===e},acceptsLines:!1},t.tableHead={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableRow"===e||"tableDelimRow"===e},acceptsLines:!1},t.tableDelimRow={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableDelimCell"===e},acceptsLines:!1},t.tableDelimCell={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1},t.tableRow={continue:function(){return 1},finalize:function(){},canContain:function(e){return"tableCell"===e},acceptsLines:!1},t.tableCell={continue:function(){return 1},finalize:function(){},canContain:function(){return!1},acceptsLines:!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(2),i=n(1),a=n(3);function o(e){for(var t=0,n=0,i=[],a=0;a<e.length;a+=1)if("|"===e[a]&&"\\"!==e[a-1]){var o=e.substring(t,a);0===t&&r.isEmpty(o)?n=a+1:i.push(o),t=a+1}return t<e.length&&(o=e.substring(t,e.length),r.isEmpty(o)||i.push(o)),[n,i]}function s(e,t,n,r){for(var a=[],o=0,s=t;o<s.length;o++){var l=s[o],c=l.match(/^[ \t]+/),u=c?c[0].length:0,d=void 0,h=void 0;if(u===l.length)u=0,d=0,h="";else{var f=l.match(/[ \t]+$/);d=f?f[0].length:0,h=l.slice(u,l.length-d)}var p=r+u,g=i.createNode(e,[[n,r],[n,r+l.length-1]]);g.stringContent=h.replace(/\\\|/g,"|"),g.startIdx=a.length,g.endIdx=a.length,g.lineOffsets=[p-1],g.paddingLeft=u,g.paddingRight=d,a.push(g),r+=l.length+1}return a}function l(e){var t="left",n=e.stringContent,r=n[0];return":"===n[n.length-1]&&(t=":"===r?"center":"right"),{align:t}}t.tableHead=function(e,t){var n=t.stringContent;if("paragraph"===t.type&&!e.indented&&!e.blank){var r=n.length-1,c=n.lastIndexOf("\n",r-1)+1,u=n.slice(c,r),d=e.currentLine.slice(e.nextNonspace),h=o(u),f=h[0],p=h[1],g=o(d),m=g[0],v=g[1],y=/^[ \t]*:?-+:?[ \t]*$/;if(!p.length||!v.length||v.some((function(e){return!y.test(e)}))||1===v.length&&0!==d.indexOf("|"))return 0;var b=t.lineOffsets,_=e.lineNumber-1,w=a.last(b)+1,C=i.createNode("table",[[_,w],[e.lineNumber,e.offset]]);if(C.columns=v.map((function(){return{align:"left"}})),t.insertAfter(C),1===b.length)t.unlink();else{t.stringContent=n.slice(0,c);var E=c-(n.lastIndexOf("\n",c-2)+1)-1;e.lastLineLength=b[b.length-2]+E,e.finalize(t,_-1)}e.advanceOffset(e.currentLine.length-e.offset,!1);var S=i.createNode("tableHead",[[_,w],[e.lineNumber,e.offset]]);C.appendChild(S);var T=i.createNode("tableRow",[[_,w],[_,w+u.length-1]]),k=i.createNode("tableDelimRow",[[e.lineNumber,e.nextNonspace+1],[e.lineNumber,e.offset]]);S.appendChild(T),S.appendChild(k),s("tableCell",p,_,w+f).forEach((function(e){T.appendChild(e)}));var N=s("tableDelimCell",v,e.lineNumber,e.nextNonspace+1+m);return N.forEach((function(e){k.appendChild(e)})),C.columns=N.map(l),e.tip=C,2}return 0},t.tableBody=function(e,t){if("table"!==t.type&&"tableBody"!==t.type||!e.blank&&-1===e.currentLine.indexOf("|"))return 0;if(e.advanceOffset(e.currentLine.length-e.offset,!1),e.blank){var n=t;return"tableBody"===t.type&&(n=t.parent,e.finalize(t,e.lineNumber)),e.finalize(n,e.lineNumber),0}var r=t;"table"===t.type&&((r=e.addChild("tableBody",e.nextNonspace)).stringContent=null);var a=i.createNode("tableRow",[[e.lineNumber,e.nextNonspace+1],[e.lineNumber,e.currentLine.length]]);r.appendChild(a);var l=r.parent,c=o(e.currentLine.slice(e.nextNonspace)),u=c[0];return s("tableCell",c[1],e.lineNumber,e.nextNonspace+1+u).forEach((function(e,t){t>=l.columns.length&&(e.ignored=!0),a.appendChild(e)})),2}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);function i(e,t){return e[0]<t[0]?1:e[0]>t[0]?-1:e[1]<t[1]?1:e[1]>t[1]?-1:0}function a(e,t){var n=e[0];return 1===i(e[1],t)?1:-1===i(n,t)?-1:0}function o(e,t){var n=e[0];return e[1][0]<t?1:n[0]>t?-1:0}function s(e){return r.getNodeById(e)||null}t.getAllParents=function(e){for(var t=[];e.parent;)t.push(e.parent),e=e.parent;return t.reverse()},t.removeNextUntil=function(e,t){if(e.parent===t.parent&&e!==t){for(var n=e.next;n&&n!==t;){for(var i=n.next,a=0,o=["parent","prev","next"];a<o.length;a++){var s=o[a];n[s]&&(r.removeNodeById(n[s].id),n[s]=null)}n=i}e.next=t.next,t.next?t.next.prev=e:e.parent.lastChild=e}},t.getChildNodes=function(e){for(var t=[],n=e.firstChild;n;)t.push(n),n=n.next;return t},t.insertNodesBefore=function(e,t){for(var n=0,r=t;n<r.length;n++){var i=r[n];e.insertBefore(i)}},t.prependChildNodes=function(e,t){for(var n=t.length-1;n>=0;n-=1)e.prependChild(t[n])},t.updateNextLineNumbers=function(e,t){if(e&&e.parent&&0!==t){var n,r=e.parent.walker();for(r.resumeAt(e,!0);n=r.next();){var i=n.node;n.entering&&(i.sourcepos[0][0]+=t,i.sourcepos[1][0]+=t)}}},t.findChildNodeAtLine=function(e,t){for(var n=e.firstChild;n;){var r=o(n.sourcepos,t);if(0===r)return n;if(-1===r)return n.prev||n;n=n.next}return e.lastChild},t.findFirstNodeAtLine=function(e,t){for(var n=e.firstChild,r=null;n;){var i=o(n.sourcepos,t);if(0===i){if(n.sourcepos[0][0]===t||!n.firstChild)return n;r=n,n=n.firstChild}else{if(-1===i)break;r=n,n=n.next}}return r?function(e){for(;e.parent&&"document"!==e.parent.type&&e.parent.sourcepos[0][0]===e.sourcepos[0][0];)e=e.parent;return e}(function(e){for(;e.lastChild;)e=e.lastChild;return e}(r)):null},t.findNodeAtPosition=function(e,t){for(var n=e,r=null;n;){var i=a(n.sourcepos,t);if(0===i){if(!n.firstChild)return n;r=n,n=n.firstChild}else{if(-1===i)return r;if(!n.next)return r;n=n.next}}return n},t.toString=function(e){return e?"type: "+e.type+", sourcepos: "+e.sourcepos+", firstChild: "+(e.firstChild&&e.firstChild.type)+", lastChild: "+(e.lastChild&&e.lastChild.type)+", prev: "+(e.prev&&e.prev.type)+", next: "+(e.next&&e.next.type):"null"},t.findNodeById=s,t.invokeNextUntil=function(e,t,n){if(void 0===n&&(n=null),t)for(var r=t.walker();t&&t!==n;){e(t);var i=r.next();if(!i)break;t=i.node}},t.isUnlinked=function(e){var t=s(e);if(!t)return!0;for(;t&&"document"!==t.type;){if(!t.parent&&!t.prev&&!t.next)return!0;t=t.parent}return!1}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(1),a=n(2),o=n(3),s=n(27),l=n(29),c={softbreak:"\n",gfm:!1,tagFilter:!1,nodeId:!1};function u(e){e.length&&"\n"!==o.last(o.last(e))&&e.push("\n")}function d(e,t){e.outerNewLine&&u(t)}function h(e,t){e.innerNewLine&&u(t)}function f(e){for(var t=[],n=e.walker(),r=null;r=n.next();){var i=r.node;"text"===i.type&&t.push(i.literal)}return t.join("")}t.createRenderHTML=function(e){var t=r.__assign(r.__assign({},c),e),n=r.__assign({},s.baseConvertors);if(t.gfm&&(n=r.__assign(r.__assign({},n),l.gfmConvertors)),t.convertors){var o=t.convertors;Object.keys(o).forEach((function(e){var t=n[e],r=o[e];n[e]=t?function(e,n){return n.origin=function(){return t(e,n)},r(e,n)}:r})),delete t.convertors}return function(e){return function(e,t,n){for(var r=[],o=e.walker(),s=null,l=function(){var e=s.node,l=s.entering,c=t[e.type];if(!c)return"continue";var u=!1,p={entering:l,leaf:!i.isContainer(e),options:n,getChildrenText:f,skipChildren:function(){u=!0}},g=c(e,p);g&&((Array.isArray(g)?g:[g]).forEach((function(t,i){"openTag"===t.type&&n.nodeId&&0===i&&(t.attributes||(t.attributes={}),t.attributes["data-nodeid"]=String(e.id)),function(e,t){switch(e.type){case"openTag":case"closeTag":!function(e,t){"openTag"===e.type?(d(e,t),t.push(function(e){var t=[],n=e.tagName,r=e.classNames,i=e.attributes;return t.push("<"+n),r&&r.length>0&&t.push(' class="'+r.join(" ")+'"'),i&&Object.keys(i).forEach((function(e){var n=i[e];t.push(" "+e+'="'+n+'"')})),e.selfClose&&t.push(" /"),t.push(">"),t.join("")}(e)),e.selfClose?d(e,t):h(e,t)):(h(e,t),t.push("</"+e.tagName+">"),d(e,t))}(e,t);break;case"text":!function(e,t){t.push(a.escapeXml(e.content))}(e,t);break;case"html":!function(e,t){d(e,t),t.push(e.content),d(e,t)}(e,t)}}(t,r)})),u&&(o.resumeAt(e,!1),o.next()))};s=o.next();)l();return u(r),r.join("")}(e,n,t)}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(2),a=n(28);t.baseConvertors={heading:function(e,t){return{type:t.entering?"openTag":"closeTag",tagName:"h"+e.level,outerNewLine:!0}},text:function(e){return{type:"text",content:e.literal}},softbreak:function(e,t){return{type:"html",content:t.options.softbreak}},linebreak:function(){return{type:"html",content:"<br />\n"}},emph:function(e,t){return{type:t.entering?"openTag":"closeTag",tagName:"em"}},strong:function(e,t){return{type:t.entering?"openTag":"closeTag",tagName:"strong"}},paragraph:function(e,t){var n,r=t.entering,i=null===(n=e.parent)||void 0===n?void 0:n.parent;return i&&"list"===i.type&&i.listData.tight?null:{type:r?"openTag":"closeTag",tagName:"p",outerNewLine:!0}},thematicBreak:function(){return{type:"openTag",tagName:"hr",outerNewLine:!0,selfClose:!0}},blockQuote:function(e,t){return{type:t.entering?"openTag":"closeTag",tagName:"blockquote",outerNewLine:!0,innerNewLine:!0}},list:function(e,t){var n=t.entering,r=e.listData,i=r.type,a=r.start,o="bullet"===i?"ul":"ol",s={};return"ol"===o&&null!==a&&1!==a&&(s.start=a.toString()),{type:n?"openTag":"closeTag",tagName:o,attributes:s,outerNewLine:!0}},item:function(e,t){return{type:t.entering?"openTag":"closeTag",tagName:"li",outerNewLine:!0}},htmlInline:function(e,t){return{type:"html",content:t.options.tagFilter?a.filterDisallowedTags(e.literal):e.literal}},htmlBlock:function(e,t){var n=t.options,r=n.tagFilter?a.filterDisallowedTags(e.literal):e.literal;return n.nodeId?[{type:"openTag",tagName:"div",outerNewLine:!0},{type:"html",content:r},{type:"closeTag",tagName:"div",outerNewLine:!0}]:{type:"html",content:r,outerNewLine:!0}},code:function(e){return[{type:"openTag",tagName:"code"},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(e){var t=e.info,n=t?t.split(/\s+/):[],r=[];return n.length>0&&n[0].length>0&&r.push("language-"+i.escapeXml(n[0])),[{type:"openTag",tagName:"pre",outerNewLine:!0},{type:"openTag",tagName:"code",classNames:r},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre",outerNewLine:!0}]},link:function(e,t){if(t.entering){var n=e,a=n.title,o=n.destination;return{type:"openTag",tagName:"a",attributes:r.__assign({href:i.escapeXml(o)},a&&{title:i.escapeXml(a)})}}return{type:"closeTag",tagName:"a"}},image:function(e,t){var n=t.getChildrenText,a=t.skipChildren,o=e,s=o.title,l=o.destination;return a(),{type:"openTag",tagName:"img",selfClose:!0,attributes:r.__assign({src:i.escapeXml(l),alt:n(e)},s&&{title:i.escapeXml(s)})}}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=new RegExp("<(/?(?:"+["title","textarea","style","xmp","iframe","noembed","noframes","script","plaintext"].join("|")+")[^>]*>)","ig");t.filterDisallowedTags=function(e){return r.test(e)?e.replace(r,(function(e,t){return"&lt;"+t})):e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0);t.gfmConvertors={strike:function(e,t){return{type:t.entering?"openTag":"closeTag",tagName:"del"}},item:function(e,t){var n=t.entering,i=e.listData,a=i.checked,o=i.task;if(n){var s={type:"openTag",tagName:"li",outerNewLine:!0};return o?[s,{type:"openTag",tagName:"input",selfClose:!0,attributes:r.__assign(r.__assign({},a&&{checked:""}),{disabled:"",type:"checkbox"})},{type:"text",content:" "}]:s}return{type:"closeTag",tagName:"li",outerNewLine:!0}},table:function(e,t){return{type:t.entering?"openTag":"closeTag",tagName:"table",outerNewLine:!0}},tableHead:function(e,t){return{type:t.entering?"openTag":"closeTag",tagName:"thead",outerNewLine:!0}},tableBody:function(e,t){return{type:t.entering?"openTag":"closeTag",tagName:"tbody",outerNewLine:!0}},tableRow:function(e,t){if(t.entering)return{type:"openTag",tagName:"tr",outerNewLine:!0};var n=[];if(e.lastChild)for(var r=e.parent.parent.columns.length,i=e.lastChild.endIdx+1;i<r;i+=1)n.push({type:"openTag",tagName:"td",outerNewLine:!0},{type:"closeTag",tagName:"td",outerNewLine:!0});return n.push({type:"closeTag",tagName:"tr",outerNewLine:!0}),n},tableCell:function(e,t){var n=t.entering;if(e.ignored)return{type:"text",content:""};var i=e.parent.parent,a="tableHead"===i.type?"th":"td",o=i.parent.columns[e.startIdx],s=o&&"left"!==o.align?o.align:null,l=s?{align:s}:null;return n?r.__assign({type:"openTag",tagName:a,outerNewLine:!0},l&&{attributes:l}):{type:"closeTag",tagName:a,outerNewLine:!0}}}}]))},function(e,t,n){"use strict";var r=n(14),i=n.n(r),a=n(21),o=n.n(a),s=function(){function e(){this._keys=[],this._values=[]}var t=e.prototype;return t._getKeyIndex=function(e){return i()(e,this._keys)},t.get=function(e){return this._values[this._getKeyIndex(e)]},t.set=function(e,t){var n=this._getKeyIndex(e);n>-1?this._values[n]=t:(this._keys.push(e),this._values.push(t))},t.has=function(e){return this._getKeyIndex(e)>-1},t.delete=function(e){var t=this._getKeyIndex(e);t>-1&&(this._keys.splice(t,1),this._values.splice(t,1))},t.forEach=function(e,t){var n=this;void 0===t&&(t=this),o()(this._values,(function(r,i){r&&n._keys[i]&&e.call(t,r,n._keys[i],n)}))},e}();t["a"]=s},function(e,t,n){"use strict";n.d(t,"d",(function(){return o})),n.d(t,"e",(function(){return s})),n.d(t,"a",(function(){return l})),n.d(t,"b",(function(){return c})),n.d(t,"c",(function(){return u}));var r=n(2),i=n.n(r),a={};function o(e,t){a[e]=a[e]||{},a[e].height=t}function s(e,t){a[e]=a[e]||{},a[e].offsetTop=t}function l(e){return a[e]&&a[e].height}function c(e){return a[e]&&a[e].offsetTop}function u(e){e&&(delete a[e.getAttribute("data-nodeid")],i()(e.children).forEach((function(e){u(e)})))}},function(e,t,n){"use strict";var r=n(2),i=n.n(r),a=n(9),o=n.n(a),s=n(0),l=new RegExp("^(abbr|align|alt|axis|bgcolor|border|cellpadding|cellspacing|class|clear|color|cols|compact|coords|dir|face|headers|height|hreflang|hspace|ismap|lang|language|nohref|nowrap|rel|rev|rows|rules|scope|scrolling|shape|size|span|start|summary|tabindex|target|title|type|valign|value|vspace|width|checked|mathvariant|encoding|id|name|background|cite|href|longdesc|src|usemap|xlink:href|data-+|checked|style)","g"),c=new RegExp("^(accent-height|accumulate|additive|alphabetic|arabic-form|ascent|baseProfile|bbox|begin|by|calcMode|cap-height|class|color|color-rendering|content|cx|cy|d|dx|dy|descent|display|dur|end|fill|fill-rule|font-family|font-size|font-stretch|font-style|font-variant|font-weight|from|fx|fy|g1|g2|glyph-name|gradientUnits|hanging|height|horiz-adv-x|horiz-origin-x|ideographic|k|keyPoints|keySplines|keyTimes|lang|marker-end|marker-mid|marker-start|markerHeight|markerUnits|markerWidth|mathematical|max|min|offset|opacity|orient|origin|overline-position|overline-thickness|panose-1|path|pathLength|points|preserveAspectRatio|r|refX|refY|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|rotate|rx|ry|slope|stemh|stemv|stop-color|stop-opacity|strikethrough-position|strikethrough-thickness|stroke|stroke-dasharray|stroke-dashoffset|stroke-linecap|stroke-linejoin|stroke-miterlimit|stroke-opacity|stroke-width|systemLanguage|target|text-anchor|to|transform|type|u1|u2|underline-position|underline-thickness|unicode|unicode-range|units-per-em|values|version|viewBox|visibility|width|widths|x|x-height|x1|x2|xlink:actuate|xlink:arcrole|xlink:role|xlink:show|xlink:title|xlink:type|xml:base|xml:lang|xml:space|xmlns|xmlns:xlink|y|y1|y2|zoomAndPan)","g"),u=/href|src|background/gi,d=/((java|vb|live)script|x):/gi,h=/^on\S+/;function f(e,t){var n=document.createElement("div");return o()(e)?(e=e.replace(/<!--[\s\S]*?-->/g,""),n.innerHTML=e):n.appendChild(e),p(n),v(n),s["a"].finalizeHtml(n,t)}function p(e){var t=s["a"].findAll(e,"script, iframe, textarea, form, button, select, input, meta, style, link, title, embed, object, details, summary");t.forEach((function(e){s["a"].remove(e)}))}function g(e,t){return e.match(u)&&t.match(d)}function m(e,t){i()(t).forEach((function(t){var n=t.name;h.test(n)&&(e[n]=null),e.getAttribute(n)&&e.removeAttribute(n)}))}function v(e){s["a"].findAll(e,"*").forEach((function(e){var t=e.attributes,n=i()(t).filter((function(e){var t=e.name,n=e.value,r=t.match(l),i=t.match(c),a=r&&g(t,n);return!r&&!i||a}));m(e,n)}))}t["a"]=f},function(e,t,n){"use strict";var r=n(17),i=n(21),a=n(10);function o(e,t,n){r(e)?i(e,t,n):a(e,t,n)}e.exports=o},function(e,t,n){"use strict";function r(e){return e instanceof Function}e.exports=r},function(e,t,n){"use strict";var r=n(8),i=n(48);function a(e){return!r(e)&&!i(e)}e.exports=a},function(e,t,n){"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,"a",(function(){return a}));var i={paragraph:function(e,t){var n=t.entering,r=t.origin,i=t.options;return i.nodeId?{type:n?"openTag":"closeTag",outerNewLine:!0,tagName:"p"}:r()},softbreak:function(e){var t=e.prev&&"htmlInline"===e.prev.type,n=t&&/<br ?\/?>/.test(e.prev.literal),r=n?"\n":"<br>\n";return{type:"html",content:r}},item:function(e,t){var n=t.entering;if(n){var r={},i=[];return e.listData.task&&(r["data-te-task"]="",i.push("task-list-item"),e.listData.checked&&i.push("checked")),{type:"openTag",tagName:"li",classNames:i,attributes:r,outerNewLine:!0}}return{type:"closeTag",tagName:"li",outerNewLine:!0}},code:function(e){var t={"data-backticks":e.tickCount};return[{type:"openTag",tagName:"code",attributes:t},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"}]},codeBlock:function(e){var t=e.info?e.info.split(/\s+/):[],n=[],r={};if(e.fenceLength>3&&(r["data-backticks"]=e.fenceLength),t.length>0&&t[0].length>0){var i=t[0];n.push("lang-"+i),r["data-language"]=i}return[{type:"openTag",tagName:"pre",classNames:n},{type:"openTag",tagName:"code",attributes:r},{type:"text",content:e.literal},{type:"closeTag",tagName:"code"},{type:"closeTag",tagName:"pre"}]}};function a(e,t){var n=r({},i);return e&&(n.link=function(t,n){var i=n.entering,a=n.origin,o=a();return i&&(o.attributes=r({},o.attributes,{},e)),o}),t&&Object.keys(t).forEach((function(e){var i=n[e],a=t[e];n[e]=i?function(e,t){var n=r({},t);return n.origin=function(){return i(e,t)},a(e,n)}:a})),n}},function(e,t,n){"use strict";var r=function(){function e(){this._replacers={}}var t=e.prototype;return t.setReplacer=function(e,t){e=e.toLowerCase(),this._replacers[e]=t},t.getReplacer=function(e){return this._replacers[e]},t.createCodeBlockHtml=function(e,t){e=e.toLowerCase();var n=this.getReplacer(e);return n?n(t,e):i(t,!1)},e}();function i(e,t){return e.replace(t?/&/g:/&(?!#?\w+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")}t["a"]=new r},function(e,t,n){"use strict";n.d(t,"b",(function(){return l})),n.d(t,"a",(function(){return c}));var r=n(17),i=n.n(r),a=n(27),o=n.n(a);function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function l(e,t){e.forEach((function(e){if(o()(e))e(t);else if(i()(e)){var n=e[0],r=e[1],a=void 0===r?{}:r;n(t,a)}}))}function c(e){return e?e.reduce((function(e,t){var n=i()(t)?t[0]:t;if(!o()(n)){var r=n.renderer,a=n.parser,l=n.pluginFn;t=i()(t)?[l,t[1]]:l,r&&(e.renderer=s({},e.renderer,{},r)),a&&(e.parser=s({},e.parser,{},a))}return e.plugins.push(t),e}),{plugins:[],renderer:{},parser:{}}):{}}},function(e,t,n){(function(t,n){e.exports=n()})("undefined"!==typeof self&&self,(function(){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=3)}([function(e,t,n){"use strict";var r=n(1),i=/\n$/g,a=/[ \xA0]+\n\n/g,o=/([ \xA0]+\n){2,}/g,s=/href\=\"(.*?)\"/,l=/^/gm,c=r.factory({TEXT_NODE:function(e){var t=this.trim(this.getSpaceCollapsedText(e.nodeValue));return this._isNeedEscapeBackSlash(t)&&(t=this.escapeTextBackSlash(t)),t=this.escapePairedCharacters(t),this._isNeedEscapeHtml(t)&&(t=this.escapeTextHtml(t)),this._isNeedEscape(t)&&(t=this.escapeText(t)),this.getSpaceControlled(t,e)},"CODE TEXT_NODE":function(e){return e.nodeValue},"EM, I":function(e,t){var n="";return this.isEmptyText(t)||(n="*"+t+"*"),n},"STRONG, B":function(e,t){var n="";return this.isEmptyText(t)||(n="**"+t+"**"),n},A:function(e,t){var n,r,i=t,a="";return n=s.exec(e.outerHTML),n&&(r=n[1].replace(/&amp;/g,"&")),e.title&&(a=' "'+e.title+'"'),!this.isEmptyText(t)&&r&&(i="["+this.escapeTextForLink(t)+"]("+r+a+")"),i},IMG:function(e){var t="",n=e.getAttribute("src"),r=e.alt;return n&&(t="!["+this.escapeTextForLink(r)+"]("+n+")"),t},BR:function(){return"  \n"},CODE:function(e,t){var n,r,i="";return this.isEmptyText(t)||(r=parseInt(e.getAttribute("data-backticks"),10),n=isNaN(r)?"`":Array(r+1).join("`"),i=n+t+n),i},P:function(e,t){var n="";return t=t.replace(o,"  \n"),this.isEmptyText(t)||(n="\n\n"+t+"\n\n"),n},"BLOCKQUOTE P":function(e,t){return t},"LI P":function(e,t){var n="";return this.isEmptyText(t)||(n=t),n},"H1, H2, H3, H4, H5, H6":function(e,t){var n="",r=parseInt(e.tagName.charAt(1),10);while(r)n+="#",r-=1;return n+=" ",n+=t,"\n\n"+n+"\n\n"},"LI H1, LI H2, LI H3, LI H4, LI H5, LI H6":function(e,t){var n=parseInt(e.tagName.charAt(1),10);return Array(n+1).join("#")+" "+t},"UL, OL":function(e,t){return"\n\n"+t+"\n\n"},"LI OL, LI UL":function(e,t){var n,r;return r=t.replace(a,"\n"),r=r.replace(i,""),n=r.replace(l,"    "),"\n"+n},"UL LI":function(e,t){var n="";return t=t.replace(o,"  \n"),e.firstChild&&"P"===e.firstChild.tagName&&(n+="\n"),n+="* "+t+"\n",n},"OL LI":function(e,t){var n="",r=parseInt(e.parentNode.getAttribute("start")||1,10);while(e.previousSibling)e=e.previousSibling,1===e.nodeType&&"LI"===e.tagName&&(r+=1);return t=t.replace(o,"  \n"),e.firstChild&&"P"===e.firstChild.tagName&&(n+="\n"),n+=r+". "+t+"\n",n},HR:function(){return"\n\n- - -\n\n"},BLOCKQUOTE:function(e,t){var n,r;return t=t.replace(o,"\n\n"),r=this.trim(t),n=r.replace(l,"> "),"\n\n"+n+"\n\n"},"PRE CODE":function(e,t){var n,r;return r=t.replace(i,""),n=r.replace(l,"    "),"\n\n"+n+"\n\n"}});e.exports=c},function(e,t,n){"use strict";var r=/^\u0020/,i=/.+\u0020$/,a=/[\n\s\t]+/g,o=/^[\u0020\r\n\t]+|[\u0020\r\n\t]+$/g,s=/[\u0020]+/g,l=/[>(){}\[\]+-.!#|]/g,c=/[\[\]]/g,u=/!\[.*\]\(.*\)/g,d=3;function h(e,t,n){var r;for(r in n=n||null,e)if(e.hasOwnProperty(r)&&!1===t.call(n,e[r],r,e))break}function f(e){this.rules={},e&&this.addRules(e)}function p(e){var t=e.tagName;return"S"===t||"B"===t||"I"===t||"EM"===t||"STRONG"===t||"A"===t||"IMG"===t||"CODE"===t}function g(e,t){var n=e.cloneNode(!1);return n.innerHTML=t,n.outerHTML}function m(e,t){h(t,(function(t,n){"converter"!==n?(e[n]||(e[n]={}),m(e[n],t)):e[n]=t}))}f.prototype.lineFeedReplacement="​​",f.prototype.addRule=function(e,t){var n=e.split(", "),r=n.pop();t.fname=e;while(r)this._setConverterWithSelector(r,t),r=n.pop()},f.prototype.addRules=function(e){h(e,(function(e,t){this.addRule(t,e)}),this)},f.prototype.getSpaceControlled=function(e,t){var n,a="",o="";return t.previousSibling&&(t.previousSibling.nodeType===d||p(t.previousSibling))&&(n=t.previousSibling.innerHTML||t.previousSibling.nodeValue,(i.test(n)||r.test(t.innerHTML||t.nodeValue))&&(a=" ")),t.nextSibling&&(t.nextSibling.nodeType===d||p(t.nextSibling))&&(n=t.nextSibling.innerHTML||t.nextSibling.nodeValue,(r.test(n)||i.test(t.innerHTML||t.nodeValue))&&(o=" ")),a+e+o},f.prototype.convert=function(e,t){var n,r=this._getConverter(e);return e&&e.nodeType===Node.ELEMENT_NODE&&e.hasAttribute("data-tomark-pass")?(e.removeAttribute("data-tomark-pass"),n=g(e,t)):r?n=r.call(this,e,t):e&&(n=this.getSpaceControlled(this._getInlineHtml(e,t),e)),n||""},f.prototype._getInlineHtml=function(e,t){var n=e.outerHTML,r=e.tagName,i=t.replace(/\$/g,"$$$$");return n.replace(new RegExp("(<"+r+" ?.*?>).*(</"+r+">)","i"),"$1"+i+"$2")},f.prototype._getConverter=function(e){var t,n=this.rules;while(e&&n)n=this._getNextRule(n,this._getRuleNameFromNode(e)),e=this._getPrevNode(e),n&&n.converter&&(t=n.converter);return t},f.prototype._getNextRule=function(e,t){return e[t]},f.prototype._getRuleNameFromNode=function(e){return e.tagName||"TEXT_NODE"},f.prototype._getPrevNode=function(e){var t,n=e.parentNode;return n&&!n.__htmlRootByToMark&&(t=n),t},f.prototype._setConverterWithSelector=function(e,t){var n=this.rules;this._eachSelector(e,(function(e){n[e]||(n[e]={}),n=n[e]})),n.converter=t},f.prototype._eachSelector=function(e,t){var n,r;n=e.split(" "),r=n.length-1;while(r>=0)t(n[r]),r-=1},f.prototype.trim=function(e){return e.replace(o,"")},f.prototype.isEmptyText=function(e){return""===e.replace(a,"")},f.prototype.getSpaceCollapsedText=function(e){return e.replace(s," ")},f.prototype.escapeText=function(e){return e.replace(l,(function(e){return"\\"+e}))},f.prototype.escapeTextForLink=function(e){var t=[],n=u.exec(e);while(n)t.push([n.index,n.index+n[0].length]),n=u.exec(e);return e.replace(c,(function(e,n){var r=t.some((function(e){return n>e[0]&&n<e[1]}));return r?e:"\\"+e}))},f.prototype.escapeTextHtml=function(e){return e.replace(new RegExp(f.markdownTextToEscapeHtmlRx.source,"g"),(function(e){return"\\"+e}))},f.prototype.escapeTextBackSlash=function(e){return e.replace(new RegExp(f.markdownTextToEscapeBackSlashRx.source,"g"),(function(e){return"\\"+e}))},f.prototype.escapePairedCharacters=function(e){return e.replace(new RegExp(f.markdownTextToEscapePairedCharsRx.source,"g"),(function(e){return"\\"+e}))},f.markdownTextToEscapeRx={codeblock:/(^ {4}[^\n]+\n*)+/,hr:/^ *((\* *){3,}|(- *){3,} *|(_ *){3,}) */,heading:/^(#{1,6}) +[\s\S]+/,lheading:/^([^\n]+)\n *(=|-){2,} */,blockquote:/^( *>[^\n]+.*)+/,list:/^ *(\*+|-+|\d+\.) [\s\S]+/,def:/^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +["(]([^\n]+)[")])? */,link:/!?\[.*\]\(.*\)/,reflink:/!?\[.*\]\s*\[([^\]]*)\]/,verticalBar:/\u007C/,codeblockGfm:/^(`{3,})/,codeblockTildes:/^(~{3,})/},f.markdownTextToEscapeHtmlRx=/<([a-zA-Z_][a-zA-Z0-9\-\._]*)(\s|[^\\/>])*\/?>|<(\/)([a-zA-Z_][a-zA-Z0-9\-\._]*)\s*\/?>|<!--[^-]+-->|<([a-zA-Z_][a-zA-Z0-9\-\.:/]*)>/,f.markdownTextToEscapeBackSlashRx=/\\[!"#$%&'()*+,-./:;<=>?@[\]^_`{|}~\\]/,f.markdownTextToEscapePairedCharsRx=/[*_~`]/,f.prototype._isNeedEscape=function(e){var t,n=!1,r=f.markdownTextToEscapeRx;for(t in r)if(r.hasOwnProperty(t)&&r[t].test(e)){n=!0;break}return n},f.prototype._isNeedEscapeHtml=function(e){return f.markdownTextToEscapeHtmlRx.test(e)},f.prototype._isNeedEscapeBackSlash=function(e){return f.markdownTextToEscapeBackSlashRx.test(e)},f.prototype.mix=function(e){m(this.rules,e.rules)},f.factory=function(e,t){var n=new f;return t?n.mix(e):t=e,n.addRules(t),n},e.exports=f},function(e,t,n){"use strict";var r=n(1),i=n(0),a=r.factory(i,{"DEL, S":function(e,t){return"~~"+t+"~~"},"PRE CODE":function(e,t){var n,r="",i=e.getAttribute("data-backticks");return e.getAttribute("data-language")&&(r=" "+e.getAttribute("data-language")),i=parseInt(i,10),n=isNaN(i)?"```":Array(i+1).join("`"),t=t.replace(/(\r\n)|(\r)|(\n)/g,this.lineFeedReplacement),"\n\n"+n+r+"\n"+t+"\n"+n+"\n\n"},PRE:function(e,t){return t},"UL LI":function(e,t){return i.convert(e,o(e,t))},"OL LI":function(e,t){return i.convert(e,o(e,t))},TABLE:function(e,t){return"\n\n"+t+"\n\n"},"TBODY, TFOOT":function(e,t){return t},"TR TD, TR TH":function(e,t){return t=t.replace(/(\r\n)|(\r)|(\n)/g,"")," "+t+" |"},"TD BR, TH BR":function(){return"<br>"},TR:function(e,t){return"|"+t+"\n"},THEAD:function(e,t){var n,r,i,a="";for(r=l(l(e,"TR")[0],"TH"),i=r.length,n=0;n<i;n+=1)a+=" "+s(r[n])+" |";return t?t+"|"+a+"\n":""}});function o(e,t){var n;return-1!==e.className.indexOf("task-list-item")&&(n=-1!==e.className.indexOf("checked")?"x":" ",t="["+n+"] "+t),t}function s(e){var t,n,r,i;return t=e.align,i=e.textContent?e.textContent.length:e.innerText.length,n="",r="",t&&("left"===t?(n=":",i-=1):"right"===t?(r=":",i-=1):"center"===t&&(r=":",n=":",i-=2)),n+c("-",i)+r}function l(e,t){var n,r=e.childNodes,i=r.length,a=[];for(n=0;n<i;n+=1)r[n].tagName&&r[n].tagName===t&&a.push(r[n]);return a}function c(e,t){var n=e;t=Math.max(t,3);while(t>1)n+=e,t-=1;return n}e.exports=a},function(e,t,n){"use strict";var r=n(4),i=n(1),a=n(0),o=n(2);r.Renderer=i,r.basicRenderer=a,r.gfmRenderer=o,e.exports=r},function(e,t,n){"use strict";var r=n(5),i=n(6),a=n(0),o=n(2),s=/[ \xA0]+(\n\n)/g,l=/^[\n]+|[\s\n]+$/g,c=/([ \xA0]+\n){2,}/g,u=/([ \xA0]){2,}\n/g,d=/[ \xA0\n]+/g;function h(e,t){var n,s,l=!0;return e?(s=o,t&&(l=t.gfm,!1===l&&(s=a),s=t.renderer||s),n=new r(i(e)),p(f(n,s),l,s.lineFeedReplacement)):""}function f(e,t){var n="";while(e.next())n+=g(e,t);return n}function p(e,t,n){return e=e.replace(s,"\n"),e=e.replace(c,"\n\n"),e=e.replace(d,(function(e){var t=(e.match(/\n/g)||[]).length;return t>=3?"\n\n":e>=1?"\n":e})),e=e.replace(l,""),e=e.replace(new RegExp(n,"g"),"\n"),t&&(e=e.replace(u,"\n")),e}function g(e,t){var n,r,i,a="",o=e.getNode();for(n=0,r=o.childNodes.length;n<r;n+=1)e.next(),a+=g(e,t);return i=t.convert(o,a),i}e.exports=h},function(e,t,n){"use strict";var r={ELEMENT_NODE:1,ATTRIBUTE_NODE:2,TEXT_NODE:3};function i(e){this._normalizeTextChildren(e),this._root=e,this._current=e}i.prototype.next=function(){var e,t=this._current;if(this._current){e=this._getNextNode(t);while(this._isNeedNextSearch(e,t))t=t.parentNode,e=t.nextSibling;this._current=e}return this._current},i.prototype.getNode=function(){return this._normalizeTextChildren(this._current),this._current},i.prototype._normalizeTextChildren=function(e){var t,n;if(e&&!(e.childNodes.length<2)){t=e.firstChild;while(t.nextSibling)n=t.nextSibling,t.nodeType===r.TEXT_NODE&&n.nodeType===r.TEXT_NODE?(t.nodeValue+=n.nodeValue,e.removeChild(n)):t=n}},i.prototype.getNodeText=function(){var e,t=this.getNode();return e=t.nodeType===r.TEXT_NODE?t.nodeValue:t.textContent||t.innerText,e},i.prototype._isNeedNextSearch=function(e,t){return!e&&t!==this._root&&t.parentNode!==this._root},i.prototype._getNextNode=function(e){return e.firstChild||e.nextSibling},i.NODE_TYPE=r,e.exports=i},function(e,t,n){"use strict";var r=/^[\s\r\n\t]+|[\s\r\n\t]+$/g,i=/>[\r\n\t]+</g,a=/>[ ]+</g;function o(e){var t;return"[object String]"===Object.prototype.toString.call(e)?(t=document.createElement("div"),t.innerHTML=s(e)):t=e,t.__htmlRootByToMark=!0,t}function s(e){return e=e.replace(r,""),e=e.replace(i,"><"),e=e.replace(a,"> <"),e}o.preProcess=s,e.exports=o}])}))},function(e,t,n){"use strict";var r=n(8);function i(e){return e&&e.className?r(e.className.baseVal)?e.className:e.className.baseVal:""}e.exports=i},function(e,t,n){"use strict";function r(e){return"number"===typeof e||e instanceof Number}e.exports=r},function(e,t,n){"use strict";var r=n(19),i=n.n(r),a=n(20),o=n.n(a),s=n(5),l=n.n(s),c=n(6),u=n.n(c),d=n(22),h=n(38),f=n(0),p=n(29),g=n(18),m=n(24),v=n(4);function y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function b(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var _="te-preview-highlight";function w(e,t){var n=t.ch,r=e.firstChild;while(r&&r.next){if(Object(v["e"])(r.next)>n+1)break;r=r.next}return r}var C=function(e){function t(t,n,r,i){var a;a=e.call(this,t,n,r,i.isViewer)||this,a.lazyRunner.registerLazyRunFunction("invokeCodeBlock",a.invokeCodeBlockPlugins,a.delayCodeBlockTime,y(a));var o=i.linkAttribute,s=i.customHTMLRenderer,l=i.highlight,c=void 0!==l&&l;return a.renderHTML=Object(d["createRenderHTML"])({gfm:!0,nodeId:!0,convertors:Object(p["a"])(o,s)}),a.cursorNodeId=null,a._initEvent(c),a}b(t,e);var n=t.prototype;return n._initEvent=function(e){var t=this;this.eventManager.listen("contentChangedFromMarkdown",this.update.bind(this)),e&&this.eventManager.listen("cursorActivity",(function(e){var n=e.markdownNode,r=e.cursor;t._updateCursorNode(n,r)})),i()(this.el,"scroll",(function(e){t.eventManager.emit("scroll",{source:"preview",data:Object(g["a"])(e.target.scrollTop,t._previewContent)})}))},n._updateCursorNode=function(e,t){e&&(e=Object(v["b"])(e,(function(e){return!Object(v["h"])(e)})),"tableRow"===e.type?e=w(e,t):"tableBody"===e.type&&(e=null));var n=e?e.id:null;if(this.cursorNodeId!==n){var r=this._getElementByNodeId(this.cursorNodeId),i=this._getElementByNodeId(n);r&&u()(r,_),i&&l()(i,_),this.cursorNodeId=n}},n._getElementByNodeId=function(e){return e?this._previewContent.querySelector('[data-nodeid="'+e+'"]'):null},n.update=function(e){var t=this;e.forEach((function(e){return t.replaceRangeNodes(e)})),this.eventManager.emit("previewRenderAfter",this)},n.replaceRangeNodes=function(e){var t=this,n=e.nodes,r=e.removedNodeRange,i=this._previewContent,a=this.eventManager.emitReduce("convertorAfterMarkdownToHtmlConverted",n.map((function(e){return t.renderHTML(e)})).join(""));if(r){var o=r.id,s=o[0],l=o[1],c=this._getElementByNodeId(s),u=this._getElementByNodeId(l);if(c){c.insertAdjacentHTML("beforebegin",a);var d=c;while(d!==u){var h=d.nextElementSibling;d.parentNode.removeChild(d),Object(m["c"])(d),d=h}d.parentNode&&(f["a"].remove(d),Object(m["c"])(d))}}else i.insertAdjacentHTML("afterbegin",a);var p=this.getCodeBlockElements(n.map((function(e){return e.id})));p.length&&this.lazyRunner.run("invokeCodeBlock",p)},n.render=function(t){e.prototype.render.call(this,t),this.eventManager.emit("previewRenderAfter",this)},n.remove=function(){o()(this.el,"scroll"),this.el=null},t}(h["a"]);t["a"]=C},function(e,t,n){"use strict";var r=n(10),i=n.n(r),a=n(8),o=n.n(a),s=n(44),l=n.n(s),c=n(45),u=n.n(c),d=n(23),h=["previewBeforeHook","previewRenderAfter","previewNeedsRefresh","addImageBlobHook","setMarkdownAfter","contentChangedFromWysiwyg","changeFromWysiwyg","contentChangedFromMarkdown","changeFromMarkdown","change","changeModeToWysiwyg","changeModeToMarkdown","changeModeBefore","changeMode","changePreviewStyle","changePreviewTabPreview","changePreviewTabWrite","openPopupAddLink","openPopupAddImage","openPopupAddTable","openPopupTableUtils","openHeadingSelect","openPopupCodeBlockLanguages","openPopupCodeBlockEditor","openDropdownToolbar","closePopupCodeBlockLanguages","closePopupCodeBlockEditor","closeAllPopup","command","addCommandBefore","htmlUpdate","markdownUpdate","renderedHtmlUpdated","removeEditor","convertorAfterMarkdownToHtmlConverted","convertorBeforeHtmlToMarkdownConverted","convertorAfterHtmlToMarkdownConverted","stateChange","wysiwygSetValueAfter","wysiwygSetValueBefore","wysiwygGetValueBefore","wysiwygProcessHTMLText","wysiwygRangeChangeAfter","wysiwygKeyEvent","scroll","click","mousedown","mouseover","mouseout","mouseup","contextmenu","keydown","keyup","keyMap","load","focus","blur","paste","pasteBefore","willPaste","copy","copyBefore","copyAfter","cut","cutAfter","drop","show","hide","changeLanguage","cursorActivity","requireScrollSync","requireScrollIntoView","setCodeBlockLanguages"],f=function(){function e(){this.events=new d["a"],this.TYPE=new u.a(h)}var t=e.prototype;return t.listen=function(e,t){var n=this._getTypeInfo(e),r=this.events.get(n.type)||[];if(!this._hasEventType(n.type))throw new Error("There is no event type "+n.type);n.namespace&&(t.namespace=n.namespace),r.push(t),this.events.set(n.type,r)},t.emit=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,a=t.shift(),s=this._getTypeInfo(a),l=this.events.get(s.type);return l&&i()(l,(function(e){var n=e.apply(void 0,t);o()(n)||(r=r||[],r.push(n))})),r},t.emitReduce=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.shift(),a=this.events.get(r);return a&&i()(a,(function(e){var n=e.apply(void 0,t);l()(n)||(t[0]=n)})),t[0]},t._getTypeInfo=function(e){var t=e.split(".");return{type:t[0],namespace:t[1]}},t._hasEventType=function(e){return!o()(this.TYPE[this._getTypeInfo(e).type])},t.addEventType=function(e){if(this._hasEventType(e))throw new Error("There is already have event type "+e);this.TYPE.set(e)},t.removeEventHandler=function(e,t){var n=this,r=this._getTypeInfo(e),i=r.type,a=r.namespace;i&&t?this._removeEventHandlerWithHandler(i,t):i&&!a?this.events.delete(i):!i&&a?this.events.forEach((function(e,t){n._removeEventHandlerWithTypeInfo(t,a)})):i&&a&&this._removeEventHandlerWithTypeInfo(i,a)},t._removeEventHandlerWithHandler=function(e,t){var n=this.events.get(e)||[],r=n.indexOf(t);r>=0&&n.splice(r,1)},t._removeEventHandlerWithTypeInfo=function(e,t){var n=[],r=this.events.get(e);r&&(r.map((function(e){return e.namespace!==t&&n.push(e),null})),this.events.set(e,n))},e}();t["a"]=f},function(e,t,n){"use strict";var r=n(32),i=n.n(r),a=n(22),o=n(29),s=n(0),l="[a-zA-Z_:][a-zA-Z0-9:._-]*",c="[^\"'=<>`\\x00-\\x20]+",u="'[^']*'",d='"[^"]*"',h="(?:"+c+"|"+u+"|"+d+")",f="(?:\\s+"+l+"(?:\\s*=\\s*"+h+")?)*\\s*",p="(\\\\<|<)([A-Za-z][A-Za-z0-9\\-]*"+f+")(\\/?>)",g=new RegExp(p,"g"),m=function(){function e(e,t){void 0===t&&(t={});var n=t,r=n.linkAttribute,i=n.customHTMLRenderer,s=n.extendedAutolinks,l=n.referenceDefinition,c=n.customParser;this.mdReader=new a["Parser"]({extendedAutolinks:s,disallowedHtmlBlockTags:["br"],referenceDefinition:l,disallowDeepHeading:!0,customParser:c}),this.renderHTML=Object(a["createRenderHTML"])({gfm:!0,convertors:Object(o["a"])(r,i)}),this.eventManager=e}var t=e.prototype;return t._markdownToHtmlWithCodeHighlight=function(e){return this.renderHTML(this.mdReader.parse(e))},t._markdownToHtml=function(e){return e=e.replace(g,(function(e,t,n,r){return"\\"!==e[0]?""+t+n+" data-tomark-pass "+r:e})),this.renderHTML(this.mdReader.parse(e))},t._removeBrToMarkPassAttributeInCode=function(e){var t=s["a"].createElementWith("<div>"+e+"</div>");return s["a"].findAll(t,"code, pre").forEach((function(e){var t=e;t.innerHTML=t.innerHTML.replace(/\sdata-tomark-pass\s(\/?)&gt;/g,"$1&gt;")})),e=t.innerHTML,e},t.toHTMLWithCodeHighlight=function(e){var t=this._markdownToHtmlWithCodeHighlight(e);return t=this.eventManager.emitReduce("convertorAfterMarkdownToHtmlConverted",t),t},t.toHTML=function(e){var t=this._markdownToHtml(e);return t=this.eventManager.emitReduce("convertorAfterMarkdownToHtmlConverted",t),t=this._removeBrToMarkPassAttributeInCode(t),t},t.initHtmlSanitizer=function(e){this.eventManager.listen("convertorAfterMarkdownToHtmlConverted",(function(t){return e(t,!0)}))},t.toMarkdown=function(e,t){var n=[];e=this.eventManager.emitReduce("convertorBeforeHtmlToMarkdownConverted",e),e=this._appendAttributeForLinkIfNeed(e),e=this._appendAttributeForBrIfNeed(e);var r=i()(e,t);return r=this.eventManager.emitReduce("convertorAfterHtmlToMarkdownConverted",r),r=this._removeNewlinesBeforeAfterAndBlockElement(r),r.split("\n").forEach((function(e,t){var r=/^(<br>)+\||\|[^|]*\|/gi,i=/`[^`]*<br>[^`]*`/gi,a=/^(<br>)+\|/gi;r.test(e)?e=e.replace(a,(function(e){return e.replace(/<br>/gi,"<br>\n")})):i.test(e)||(e=e.replace(/<br>/gi,"<br>\n")),n[t]=e})),n.join("\n")},t._removeNewlinesBeforeAfterAndBlockElement=function(e){var t=/<br>\n\n(#{1,6} .*|```|\||(\*+|-+|\d+\.) .*| *>[^\n]+.*)/g,n=/(#{1,6} .*|```|\|)\n\n<br>/g;return e=e.replace(t,"<br>$1"),e=e.replace(n,"$1\n<br>"),e},t._appendAttributeForLinkIfNeed=function(e){var t=/!?\[.*\]\(<\s*a[^>]*>(.*?)<\s*\/\s*a>\)/gi;return e.replace(t,(function(e){return e.replace(/<a /gi,'<a data-tomark-pass="" ')}))},t._appendAttributeForBrIfNeed=function(e){var t=/<br>/gi,n=/<br \/><br \/>/gi,r=/<br data-tomark-pass \/><br \/>(.)/gi,i=/([^>]|<\/a>|<\/code>|<\/span>|<\/b>|<\/i>|<\/s>|<img [^>]*>)/,a=/<br data-tomark-pass \/><br data-tomark-pass \/>/,o=new RegExp(i.source+a.source,"g"),s=/<br data-tomark-pass="">/gi;return e=e.replace(t,"<br />"),e=e.replace(n,"<br data-tomark-pass /><br data-tomark-pass />"),e=e.replace(s,"<br data-tomark-pass />"),e=e.replace(r,"<br data-tomark-pass /><br data-tomark-pass />$1"),e=e.replace(o,"$1<br /><br />"),e=e.replace(/(.)<br \/><br \/>(<h[1-6]>|<pre>|<table>|<ul>|<ol>|<blockquote>)/g,"$1<br /><br data-tomark-pass />$2"),e=e.replace(/(<\/h[1-6]>|<\/pre>|<\/table>|<\/ul>|<\/ol>|<\/blockquote>)<br \/>(.)/g,"$1<br data-tomark-pass />$2"),e},e}();t["a"]=m},function(e,t,n){"use strict";var r=n(3),i=n.n(r),a=n(9),o=n.n(a),s=function(){function e(){this.globalTOID=null,this.lazyRunFunctions={}}var t=e.prototype;return t.run=function(e,t,n,r){var i;return o()(e)?i=this._runRegisteredRun(e,t,n,r):(i=this._runSingleRun(e,t,n,r,this.globalTOID),this.globalTOID=i),i},t.registerLazyRunFunction=function(e,t,n,r){r=r||this,this.lazyRunFunctions[e]={fn:t,delay:n,context:r,TOID:null}},t._runSingleRun=function(e,t,n,r,i){return this._clearTOIDIfNeed(i),i=setTimeout((function(){e.call(n,t)}),r),i},t._runRegisteredRun=function(e,t,n,r){var i=this.lazyRunFunctions[e],a=i.fn,o=i.TOID;return r=r||i.delay,n=n||i.context,o=this._runSingleRun(a,t,n,r,o),i.TOID=o,o},t._clearTOIDIfNeed=function(e){e&&clearTimeout(e)},e}(),l=s,c=n(0),u=n(30),d=function(){function e(e,t,n,r){this.eventManager=t,this.convertor=n,this.el=e,this.isViewer=!!r,this.delayCodeBlockTime=500,this._initContentSection(),this.lazyRunner=new l}var t=e.prototype;return t._initContentSection=function(){this._previewContent=c["a"].createElementWith('<div class="tui-editor-contents"></div>'),this.el.appendChild(this._previewContent)},t.getCodeBlockElements=function(e){var t,n=this._previewContent,r=[];return t=e?e.map((function(e){return n.querySelector('[data-nodeid="'+e+'"]')})).filter(Boolean):[n],t.forEach((function(e){r.push.apply(r,c["a"].findAll(e,"code[data-language]"))})),r},t.invokeCodeBlockPlugins=function(e){e.forEach((function(e){var t=e.getAttribute("data-language"),n=u["a"].createCodeBlockHtml(t,e.textContent);e.innerHTML=n}))},t.refresh=function(e){void 0===e&&(e=""),this.render(this.convertor.toHTMLWithCodeHighlight(e)),this.invokeCodeBlockPlugins(this.getCodeBlockElements())},t.getHTML=function(){return this._previewContent.innerHTML},t.setHTML=function(e){this._previewContent.innerHTML=e},t.render=function(e){var t=this._previewContent;e=this.eventManager.emit("previewBeforeHook",e)||e,c["a"].empty(t),t.innerHTML=e},t.setHeight=function(e){i()(this.el,{height:e+"px"})},t.setMinHeight=function(e){i()(this.el,{minHeight:e+"px"})},t.isVisible=function(){return"none"!==this.el.style.display},e}();t["a"]=d},function(e,t,n){"use strict";var r=n(17),i=n(8);function a(e,t){t=r(t)?t.join(" "):t,t=t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),i(e.className.baseVal)?e.className=t:e.className.baseVal=t}e.exports=a},function(e,t,n){"use strict";var r="_feEventKey";function i(e,t){var n,i=e[r];return i||(i=e[r]={}),n=i[t],n||(n=i[t]=[]),n}e.exports=i},function(e,t,n){},function(e,t,n){"use strict";var r=n(28);function i(e){return r(e)&&!1!==e}e.exports=i},function(e,t,n){"use strict";var r=n(8),i=n(49),a=6048e5;function o(e){var t=(new Date).getTime();return t-e>a}function s(e,t){var n="https://www.google-analytics.com/collect",a=location.hostname,s="event",l="use",c="TOAST UI "+e+" for "+a+": Statistics",u=window.localStorage.getItem(c);(r(window.tui)||!1!==window.tui.usageStatistics)&&(u&&!o(u)||(window.localStorage.setItem(c,(new Date).getTime()),setTimeout((function(){"interactive"!==document.readyState&&"complete"!==document.readyState||i(n,{v:1,t:s,tid:t,cid:a,dp:a,dh:e,el:e,ec:l})}),1e3)))}e.exports=s},function(e,t,n){"use strict";var r=n(42);function i(e){return!r(e)}e.exports=i},function(e,t,n){"use strict";var r=n(34),i=n(17),a=n(2),o=n(26),s=function(){try{return Object.defineProperty({},"x",{}),!0}catch(e){return!1}}(),l=0;function c(e){e&&this.set.apply(this,arguments)}c.prototype.set=function(e){var t=this;i(e)||(e=a(arguments)),o(e,(function(e){t._addItem(e)}))},c.prototype.getName=function(e){var t,n=this;return o(this,(function(r,i){if(n._isEnumItem(i)&&e===r)return t=i,!1})),t},c.prototype._addItem=function(e){var t;this.hasOwnProperty(e)||(t=this._makeEnumValue(),s?Object.defineProperty(this,e,{enumerable:!0,configurable:!1,writable:!1,value:t}):this[e]=t)},c.prototype._makeEnumValue=function(){var e;return e=l,l+=1,e},c.prototype._isEnumItem=function(e){return r(this[e])},e.exports=c},function(e,t,n){"use strict";var r=n(10),i=n.n(r),a=n(7),o=n.n(a),s=n(19),l=n.n(s),c=n(20),u=n.n(c),d=n(35),h=n(36),f=n(1),p=n(37),g=n(0),m=n(30),v=n(31),y=n(12),b=n(25);function _(){return _=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}var w="data-te-task",C="checked",E=function(){function e(e){var t=this;this.options=o()({useDefaultHTMLSanitizer:!0,linkAttribute:null,extendedAutolinks:!1,customConvertor:null,customHTMLRenderer:null,referenceDefinition:!1,customHTMLSanitizer:null},e),this.codeBlockLanguages=[],this.eventManager=new h["a"],this.commandManager=new f["a"](this);var n=Object(y["c"])(this.options.linkAttribute),r=Object(v["a"])(this.options.plugins),a=r.renderer,s=r.parser,c=r.plugins,u=this.options,g=u.customHTMLRenderer,m=u.customHTMLSanitizer,w=u.extendedAutolinks,C=u.referenceDefinition,E={linkAttribute:n,customHTMLRenderer:_({},a,{},g),extendedAutolinks:w,referenceDefinition:C,customParser:s};this.options.customConvertor?this.convertor=new this.options.customConvertor(this.eventManager,E):this.convertor=new p["a"](this.eventManager,E);var S=m||(this.options.useDefaultHTMLSanitizer?b["a"]:null);S&&this.convertor.initHtmlSanitizer(S),this.options.hooks&&i()(this.options.hooks,(function(e,n){t.addHook(n,e)})),this.options.events&&i()(this.options.events,(function(e,n){t.on(n,e)}));var T=this.options,k=T.el,N=T.initialValue,x=k.innerHTML;k.innerHTML="",this.preview=new d["a"](k,this.eventManager,this.convertor,_({},E,{isViewer:!0})),l()(this.preview.el,"mousedown",this._toggleTask.bind(this)),c&&Object(v["b"])(c,this),N?this.setMarkdown(N):x&&this.preview.setHTML(x),this.eventManager.emit("load",this)}var t=e.prototype;return t._toggleTask=function(e){var t=getComputedStyle(e.target,":before");e.target.hasAttribute(w)&&g["a"].isInsideTaskBox(t,e.offsetX,e.offsetY)&&(g["a"].toggleClass(e.target,C),this.eventManager.emit("change",{source:"viewer",data:e}))},t.setMarkdown=function(e){this.markdownValue=e=e||"",this.preview.refresh(this.markdownValue),this.eventManager.emit("setMarkdownAfter",this.markdownValue)},t.on=function(e,t){this.eventManager.listen(e,t)},t.off=function(e){this.eventManager.removeEventHandler(e)},t.remove=function(){this.eventManager.emit("removeEditor"),u()(this.preview.el,"mousedown",this._toggleTask.bind(this)),this.preview.remove(),this.options=null,this.eventManager=null,this.commandManager=null,this.convertor=null,this.preview=null},t.addHook=function(e,t){this.eventManager.removeEventHandler(e),this.eventManager.listen(e,t)},t.isViewer=function(){return!0},t.isMarkdownMode=function(){return!1},t.isWysiwygMode=function(){return!1},t.setCodeBlockLanguages=function(e){var t=this;void 0===e&&(e=[]),e.forEach((function(e){t.codeBlockLanguages.indexOf(e)<0&&t.codeBlockLanguages.push(e)}))},e}();E.isViewer=!0,E.domUtils=g["a"],E.codeBlockManager=m["a"],E.WwCodeBlockManager=null,E.WwTableManager=null,E.WwTableSelectionManager=null,t["a"]=E},function(e,t,n){"use strict";function r(e,t){var n,r;function i(){r=Array.prototype.slice.call(arguments),window.clearTimeout(n),n=window.setTimeout((function(){e.apply(null,r)}),t)}return t=t||0,i}e.exports=r},function(e,t,n){"use strict";function r(e){return null===e}e.exports=r},function(e,t,n){"use strict";var r=n(10);function i(e,t){var n=document.createElement("img"),i="";return r(t,(function(e,t){i+="&"+t+"="+e})),i=i.substring(1),n.src=e+"?"+i,n.style.display="none",document.body.appendChild(n),document.body.removeChild(n),n}e.exports=i},function(e,t,n){},function(e,t,n){},function(e,t,n){},,function(e,t,n){"use strict";function r(e){return e===Object(e)}e.exports=r},function(e,t,n){!function(t,n){"use strict";function r(e,t,n){this.root=this.currentNode=e,this.nodeType=t,this.filter=n||fe}function i(e,t){for(var n=e.length;n--;)if(!t(e[n]))return!1;return!0}function a(e){return e.nodeType===j&&!!ge[e.nodeName]}function o(e){switch(e.nodeType){case U:return ve;case j:case V:if(ce&&_e.has(e))return _e.get(e);break;default:return me}var t;return t=i(e.childNodes,s)?pe.test(e.nodeName)?ve:ye:be,ce&&_e.set(e,t),t}function s(e){return o(e)===ve}function l(e){return o(e)===ye}function c(e){return o(e)===be}function u(e,t){var n=new r(t,W,l);return n.currentNode=e,n}function d(e,t){return e=u(e,t).previousNode(),e!==t?e:null}function h(e,t){return e=u(e,t).nextNode(),e!==t?e:null}function f(e){return!e.textContent&&!e.querySelector("IMG")}function p(e,t){return!a(e)&&e.nodeType===t.nodeType&&e.nodeName===t.nodeName&&"A"!==e.nodeName&&e.className===t.className&&(!e.style&&!t.style||e.style.cssText===t.style.cssText)}function g(e,t,n){if(e.nodeName!==t)return!1;for(var r in n)if(e.getAttribute(r)!==n[r])return!1;return!0}function m(e,t,n,r){for(;e&&e!==t;){if(g(e,n,r))return e;e=e.parentNode}return null}function v(e,t,n){for(;e&&e!==t;){if(n.test(e.nodeName))return e;e=e.parentNode}return null}function y(e,t){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function b(e,t,n){var r,i,a,o,s,l="";return e&&e!==t&&(l=b(e.parentNode,t,n),e.nodeType===j&&(l+=(l?">":"")+e.nodeName,(r=e.id)&&(l+="#"+r),(i=e.className.trim())&&(a=i.split(/\s\s*/),a.sort(),l+=".",l+=a.join(".")),(o=e.dir)&&(l+="[dir="+o+"]"),a&&(s=n.classNames,de.call(a,s.highlight)>-1&&(l+="[backgroundColor="+e.style.backgroundColor.replace(/ /g,"")+"]"),de.call(a,s.colour)>-1&&(l+="[color="+e.style.color.replace(/ /g,"")+"]"),de.call(a,s.fontFamily)>-1&&(l+="[fontFamily="+e.style.fontFamily.replace(/ /g,"")+"]"),de.call(a,s.fontSize)>-1&&(l+="[fontSize="+e.style.fontSize+"]")))),l}function _(e){var t=e.nodeType;return t===j||t===V?e.childNodes.length:e.length||0}function w(e){var t=e.parentNode;return t&&t.removeChild(e),e}function C(e,t){var n=e.parentNode;n&&n.replaceChild(t,e)}function E(e){for(var t=e.ownerDocument.createDocumentFragment(),n=e.childNodes,r=n?n.length:0;r--;)t.appendChild(e.firstChild);return t}function S(e,t,r,i){var a,o,s,l=e.createElement(t);if(r instanceof Array&&(i=r,r=null),r)for(a in r)r[a]!==n&&l.setAttribute(a,r[a]);if(i)for(o=0,s=i.length;o<s;o+=1)l.appendChild(i[o]);return l}function T(e,t){var n,r,i=t.__squire__,o=e.ownerDocument,l=e;if(e===t&&((r=e.firstChild)&&"BR"!==r.nodeName||(n=i.createDefaultBlock(),r?e.replaceChild(n,r):e.appendChild(n),e=n,n=null)),e.nodeType===U)return l;if(s(e)){for(r=e.firstChild;oe&&r&&r.nodeType===U&&!r.data;)e.removeChild(r),r=e.firstChild;r||(oe?(n=o.createTextNode($),i._didAddZWS()):n=o.createTextNode(""))}else if(ae){for(;e.nodeType!==U&&!a(e);){if(!(r=e.firstChild)){n=o.createTextNode("");break}e=r}e.nodeType===U?/^ +$/.test(e.data)&&(e.data=""):a(e)&&e.parentNode.insertBefore(o.createTextNode(""),e)}else if("HR"!==e.nodeName&&!e.querySelector("BR"))for(n=S(o,"BR");(r=e.lastElementChild)&&!s(r);)e=r;if(n)try{e.appendChild(n)}catch(t){i.didError({name:"Squire: fixCursor – "+t,message:"Parent: "+e.nodeName+"/"+e.innerHTML+" appendChild: "+n.nodeName})}return l}function k(e,t){var n,r,i,a,o=e.childNodes,l=e.ownerDocument,u=null,d=t.__squire__._config;for(n=0,r=o.length;n<r;n+=1)i=o[n],a="BR"===i.nodeName,!a&&s(i)?(u||(u=S(l,d.blockTag,d.blockAttributes)),u.appendChild(i),n-=1,r-=1):(a||u)&&(u||(u=S(l,d.blockTag,d.blockAttributes)),T(u,t),a?e.replaceChild(u,i):(e.insertBefore(u,i),n+=1,r+=1),u=null),c(i)&&k(i,t);return u&&e.appendChild(T(u,t)),e}function N(e,t,n,r){var i,a,o,s=e.nodeType;if(s===U&&e!==n)return N(e.parentNode,e.splitText(t),n,r);if(s===j){if("number"==typeof t&&(t=t<e.childNodes.length?e.childNodes[t]:null),e===n)return t;for(i=e.parentNode,a=e.cloneNode(!1);t;)o=t.nextSibling,a.appendChild(t),t=o;return"OL"===e.nodeName&&m(e,r,"BLOCKQUOTE")&&(a.start=(+e.start||1)+e.childNodes.length-1),T(e,r),T(a,r),(o=e.nextSibling)?i.insertBefore(a,o):i.appendChild(a),N(i,a,n,r)}return t}function x(e,t){for(var n,r,i,a=e.childNodes,o=a.length,l=[];o--;)if(n=a[o],r=o&&a[o-1],o&&s(n)&&p(n,r)&&!ge[n.nodeName])t.startContainer===n&&(t.startContainer=r,t.startOffset+=_(r)),t.endContainer===n&&(t.endContainer=r,t.endOffset+=_(r)),t.startContainer===e&&(t.startOffset>o?t.startOffset-=1:t.startOffset===o&&(t.startContainer=r,t.startOffset=_(r))),t.endContainer===e&&(t.endOffset>o?t.endOffset-=1:t.endOffset===o&&(t.endContainer=r,t.endOffset=_(r))),w(n),n.nodeType===U?r.appendData(n.data):l.push(E(n));else if(n.nodeType===j){for(i=l.length;i--;)n.appendChild(l.pop());x(n,t)}}function L(e,t){if(e.nodeType===U&&(e=e.parentNode),e.nodeType===j){var n={startContainer:t.startContainer,startOffset:t.startOffset,endContainer:t.endContainer,endOffset:t.endOffset};x(e,n),t.setStart(n.startContainer,n.startOffset),t.setEnd(n.endContainer,n.endOffset)}}function O(e){var t=e.nodeName;return"TD"===t||"TH"===t||"TR"===t||"TBODY"===t||"THEAD"===t}function M(e,t,n,r){var i,a,o,s=t;if(!O(e)||!O(t)){for(;(i=s.parentNode)&&i!==r&&i.nodeType===j&&1===i.childNodes.length;)s=i;w(s),o=e.childNodes.length,a=e.lastChild,a&&"BR"===a.nodeName&&(e.removeChild(a),o-=1),e.appendChild(E(t)),n.setStart(e,o),n.collapse(!0),L(e,n),ee&&(a=e.lastChild)&&"BR"===a.nodeName&&e.removeChild(a)}}function A(e,t){var n,r,i=e.previousSibling,a=e.firstChild,o=e.ownerDocument,s="LI"===e.nodeName;if((!s||a&&/^[OU]L$/.test(a.nodeName))&&!O(e))if(i&&p(i,e)&&i.isContentEditable&&e.isContentEditable){if(!c(i)){if(!s)return;r=S(o,"DIV"),r.appendChild(E(i)),i.appendChild(r)}w(e),n=!c(e),i.appendChild(E(e)),n&&k(i,t),a&&A(a,t)}else s&&(i=S(o,"DIV"),e.insertBefore(i,a),T(i,t))}function D(e){this.isShiftDown=e.shiftKey}function B(e,t,n){var r,i;if(e||(e={}),t)for(r in t)!n&&r in e||(i=t[r],e[r]=i&&i.constructor===Object?B(e[r],i,n):i);return e}function I(e,t){e.nodeType===q&&(e=e.body);var n,r=e.ownerDocument,i=r.defaultView;this._win=i,this._doc=r,this._root=e,this._events={},this._isFocused=!1,this._lastSelection=null,se&&this.addEventListener("beforedeactivate",this.getSelection),this._hasZWS=!1,this._lastAnchorNode=null,this._lastFocusNode=null,this._path="",this._willUpdatePath=!1,"onselectionchange"in r?this.addEventListener("selectionchange",this._updatePathOnEvent):(this.addEventListener("keyup",this._updatePathOnEvent),this.addEventListener("mouseup",this._updatePathOnEvent)),this._undoIndex=-1,this._undoStack=[],this._undoStackLength=0,this._isInUndoState=!1,this._ignoreChange=!1,this._ignoreAllChanges=!1,le?(n=new MutationObserver(this._docWasChanged.bind(this)),n.observe(e,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),this._mutation=n):this.addEventListener("keyup",this._keyUpDetectChange),this._restoreSelection=!1,this.addEventListener("blur",R),this.addEventListener("mousedown",P),this.addEventListener("touchstart",P),this.addEventListener("focus",F),this._awaitingPaste=!1,this.addEventListener(Z?"beforecut":"cut",rt),this.addEventListener("copy",it),this.addEventListener("keydown",D),this.addEventListener("keyup",D),this.addEventListener(Z?"beforepaste":"paste",at),this.addEventListener("drop",ot),this.addEventListener(ee?"keypress":"keydown",Pe),this._keyHandlers=Object.create(Ue),this.setConfig(t),Z&&(i.Text.prototype.splitText=function(e){var t=this.ownerDocument.createTextNode(this.data.slice(e)),n=this.nextSibling,r=this.parentNode,i=this.length-e;return n?r.insertBefore(t,n):r.appendChild(t),i&&this.deleteData(e,i),t}),e.setAttribute("contenteditable","true");try{r.execCommand("enableObjectResizing",!1,"false"),r.execCommand("enableInlineTableEditing",!1,"false")}catch(e){}e.__squire__=this,this.setHTML("")}function R(){this._restoreSelection=!0}function P(){this._restoreSelection=!1}function F(){this._restoreSelection&&this.setSelection(this._lastSelection)}function H(e,t,n){var r,i;for(r=t.firstChild;r;r=i){if(i=r.nextSibling,s(r)){if(r.nodeType===U||"BR"===r.nodeName||"IMG"===r.nodeName){n.appendChild(r);continue}}else if(l(r)){n.appendChild(e.createDefaultBlock([H(e,r,e._doc.createDocumentFragment())]));continue}H(e,r,n)}return n}var j=1,U=3,q=9,V=11,W=1,$="​",z=t.defaultView,K=navigator.userAgent,G=/Android/.test(K),J=/iP(?:ad|hone|od)/.test(K),Q=/Mac OS X/.test(K),Y=/Windows NT/.test(K),X=/Gecko\//.test(K),Z=/Trident\/[456]\./.test(K),ee=!!z.opera,te=/Edge\//.test(K),ne=!te&&/WebKit\//.test(K),re=/Trident\/[4567]\./.test(K),ie=Q?"meta-":"ctrl-",ae=Z||ee,oe=Z||ne,se=Z,le="undefined"!=typeof MutationObserver,ce="undefined"!=typeof WeakMap,ue=/[^ \t\r\n]/,de=Array.prototype.indexOf;Object.create||(Object.create=function(e){var t=function(){};return t.prototype=e,new t});var he={1:1,2:2,3:4,8:128,9:256,11:1024},fe=function(){return!0};r.prototype.nextNode=function(){for(var e,t=this.currentNode,n=this.root,r=this.nodeType,i=this.filter;;){for(e=t.firstChild;!e&&t&&t!==n;)(e=t.nextSibling)||(t=t.parentNode);if(!e)return null;if(he[e.nodeType]&r&&i(e))return this.currentNode=e,e;t=e}},r.prototype.previousNode=function(){for(var e,t=this.currentNode,n=this.root,r=this.nodeType,i=this.filter;;){if(t===n)return null;if(e=t.previousSibling)for(;t=e.lastChild;)e=t;else e=t.parentNode;if(!e)return null;if(he[e.nodeType]&r&&i(e))return this.currentNode=e,e;t=e}},r.prototype.previousPONode=function(){for(var e,t=this.currentNode,n=this.root,r=this.nodeType,i=this.filter;;){for(e=t.lastChild;!e&&t&&t!==n;)(e=t.previousSibling)||(t=t.parentNode);if(!e)return null;if(he[e.nodeType]&r&&i(e))return this.currentNode=e,e;t=e}};var pe=/^(?:#text|A(?:BBR|CRONYM)?|B(?:R|D[IO])?|C(?:ITE|ODE)|D(?:ATA|EL|FN)|EM|FONT|I(?:FRAME|MG|NPUT|NS)?|KBD|Q|R(?:P|T|UBY)|S(?:AMP|MALL|PAN|TR(?:IKE|ONG)|U[BP])?|TIME|U|VAR|WBR)$/,ge={BR:1,HR:1,IFRAME:1,IMG:1,INPUT:1},me=0,ve=1,ye=2,be=3,_e=ce?new WeakMap:null,we=function(e,t){for(var n=e.childNodes;t&&e.nodeType===j;)e=n[t-1],n=e.childNodes,t=n.length;return e},Ce=function(e,t){if(e.nodeType===j){var n=e.childNodes;if(t<n.length)e=n[t];else{for(;e&&!e.nextSibling;)e=e.parentNode;e&&(e=e.nextSibling)}}return e},Ee=function(e,t){var n,r,i,a,o=e.startContainer,s=e.startOffset,l=e.endContainer,c=e.endOffset;o.nodeType===U?(n=o.parentNode,r=n.childNodes,s===o.length?(s=de.call(r,o)+1,e.collapsed&&(l=n,c=s)):(s&&(a=o.splitText(s),l===o?(c-=s,l=a):l===n&&(c+=1),o=a),s=de.call(r,o)),o=n):r=o.childNodes,i=r.length,s===i?o.appendChild(t):o.insertBefore(t,r[s]),o===l&&(c+=r.length-i),e.setStart(o,s),e.setEnd(l,c)},Se=function(e,t,n){var r=e.startContainer,i=e.startOffset,a=e.endContainer,o=e.endOffset;t||(t=e.commonAncestorContainer),t.nodeType===U&&(t=t.parentNode);for(var s,l,c,u,d,h=N(a,o,t,n),f=N(r,i,t,n),p=t.ownerDocument.createDocumentFragment();f!==h;)s=f.nextSibling,p.appendChild(f),f=s;return r=t,i=h?de.call(t.childNodes,h):t.childNodes.length,c=t.childNodes[i],l=c&&c.previousSibling,l&&l.nodeType===U&&c.nodeType===U&&(r=l,i=l.length,u=l.data,d=c.data," "===u.charAt(u.length-1)&&" "===d.charAt(0)&&(d=" "+d.slice(1)),l.appendData(d),w(c)),e.setStart(r,i),e.collapse(!0),T(t,n),p},Te=function(e,t){var n,r,i=Oe(e,t),a=Me(e,t),o=i!==a;return xe(e),Le(e,i,a,t),n=Se(e,null,t),xe(e),o&&(a=Me(e,t),i&&a&&i!==a&&M(i,a,e,t)),i&&T(i,t),r=t.firstChild,r&&"BR"!==r.nodeName?e.collapse(!0):(T(t,t),e.selectNodeContents(t.firstChild)),n},ke=function(e,t,n){var r,i,a,o,l,u,f,p,g,y;for(k(t,n),r=t;r=h(r,n);)T(r,n);if(e.collapsed||Te(e,n),xe(e),e.collapse(!1),o=m(e.endContainer,n,"BLOCKQUOTE")||n,i=Oe(e,n),f=h(t,t),i&&f&&!v(f,t,/PRE|TABLE|H[1-6]|OL|UL|BLOCKQUOTE/)){if(Le(e,i,i,n),e.collapse(!0),l=e.endContainer,u=e.endOffset,tt(i,n,!1),s(l)&&(p=N(l,u,d(l,n),n),l=p.parentNode,u=de.call(l.childNodes,p)),u!==_(l))for(a=n.ownerDocument.createDocumentFragment();r=l.childNodes[u];)a.appendChild(r);M(l,f,e,n),u=de.call(l.parentNode.childNodes,l)+1,l=l.parentNode,e.setEnd(l,u)}_(t)&&(Le(e,o,o,n),p=N(e.endContainer,e.endOffset,o,n),g=p?p.previousSibling:o.lastChild,o.insertBefore(t,p),p?e.setEndBefore(p):e.setEnd(o,_(o)),i=Me(e,n),xe(e),l=e.endContainer,u=e.endOffset,p&&c(p)&&A(p,n),p=g&&g.nextSibling,p&&c(p)&&A(p,n),e.setEnd(l,u)),a&&(y=e.cloneRange(),M(i,a,y,n),e.setEnd(y.endContainer,y.endOffset)),xe(e)},Ne=function(e,t,n){var r=t.ownerDocument.createRange();if(r.selectNode(t),n){var i=e.compareBoundaryPoints(3,r)>-1,a=e.compareBoundaryPoints(1,r)<1;return!i&&!a}var o=e.compareBoundaryPoints(0,r)<1,s=e.compareBoundaryPoints(2,r)>-1;return o&&s},xe=function(e){for(var t,n=e.startContainer,r=e.startOffset,i=e.endContainer,o=e.endOffset,s=!0;n.nodeType!==U&&(t=n.childNodes[r])&&!a(t);)n=t,r=0;if(o)for(;i.nodeType!==U;){if(!(t=i.childNodes[o-1])||a(t)){if(s&&t&&"BR"===t.nodeName){o-=1,s=!1;continue}break}i=t,o=_(i)}else for(;i.nodeType!==U&&(t=i.firstChild)&&!a(t);)i=t;e.collapsed?(e.setStart(i,o),e.setEnd(n,r)):(e.setStart(n,r),e.setEnd(i,o))},Le=function(e,t,n,r){var i,a=e.startContainer,o=e.startOffset,s=e.endContainer,l=e.endOffset,c=!0;for(t||(t=e.commonAncestorContainer),n||(n=t);!o&&a!==t&&a!==r;)i=a.parentNode,o=de.call(i.childNodes,a),a=i;for(;;){if(c&&s.nodeType!==U&&s.childNodes[l]&&"BR"===s.childNodes[l].nodeName&&(l+=1,c=!1),s===n||s===r||l!==_(s))break;i=s.parentNode,l=de.call(i.childNodes,s)+1,s=i}e.setStart(a,o),e.setEnd(s,l)},Oe=function(e,t){var n,r=e.startContainer;return s(r)?n=d(r,t):r!==t&&l(r)?n=r:(n=we(r,e.startOffset),n=h(n,t)),n&&Ne(e,n,!0)?n:null},Me=function(e,t){var n,r,i=e.endContainer;if(s(i))n=d(i,t);else if(i!==t&&l(i))n=i;else{if(!(n=Ce(i,e.endOffset))||!y(t,n))for(n=t;r=n.lastChild;)n=r;n=d(n,t)}return n&&Ne(e,n,!0)?n:null},Ae=new r(null,4|W,(function(e){return e.nodeType===U?ue.test(e.data):"IMG"===e.nodeName})),De=function(e,t){var n,r=e.startContainer,i=e.startOffset;if(Ae.root=null,r.nodeType===U){if(i)return!1;n=r}else if(n=Ce(r,i),n&&!y(t,n)&&(n=null),!n&&(n=we(r,i),n.nodeType===U&&n.length))return!1;return Ae.currentNode=n,Ae.root=Oe(e,t),!Ae.previousNode()},Be=function(e,t){var n,r=e.endContainer,i=e.endOffset;if(Ae.root=null,r.nodeType===U){if((n=r.data.length)&&i<n)return!1;Ae.currentNode=r}else Ae.currentNode=we(r,i);return Ae.root=Me(e,t),!Ae.nextNode()},Ie=function(e,t){var n,r=Oe(e,t),i=Me(e,t);r&&i&&(n=r.parentNode,e.setStart(n,de.call(n.childNodes,r)),n=i.parentNode,e.setEnd(n,de.call(n.childNodes,i)+1))},Re={8:"backspace",9:"tab",13:"enter",32:"space",33:"pageup",34:"pagedown",37:"left",39:"right",46:"delete",219:"[",221:"]"},Pe=function(e){var t=e.keyCode,n=Re[t],r="",i=this.getSelection();e.defaultPrevented||(n||(n=String.fromCharCode(t).toLowerCase(),/^[A-Za-z0-9]$/.test(n)||(n="")),ee&&46===e.which&&(n="."),111<t&&t<124&&(n="f"+(t-111)),"backspace"!==n&&"delete"!==n&&(e.altKey&&(r+="alt-"),e.ctrlKey&&(r+="ctrl-"),e.metaKey&&(r+="meta-")),e.shiftKey&&(r+="shift-"),n=r+n,this._keyHandlers[n]?this._keyHandlers[n](this,e,i):i.collapsed||e.isComposing||e.ctrlKey||e.metaKey||1!==(re?n:e.key||n).length||(this.saveUndoState(i),Te(i,this._root),this._ensureBottomLine(),this.setSelection(i),this._updatePath(i,!0)))},Fe=function(e){return function(t,n){n.preventDefault(),t[e]()}},He=function(e,t){return t=t||null,function(n,r){r.preventDefault();var i=n.getSelection();n.hasFormat(e,null,i)?n.changeFormat(null,{tag:e},i):n.changeFormat({tag:e},t,i)}},je=function(e,t){try{t||(t=e.getSelection());var n,r=t.startContainer;for(r.nodeType===U&&(r=r.parentNode),n=r;s(n)&&(!n.textContent||n.textContent===$);)r=n,n=r.parentNode;r!==n&&(t.setStart(n,de.call(n.childNodes,r)),t.collapse(!0),n.removeChild(r),l(n)||(n=d(n,e._root)),T(n,e._root),xe(t)),r===e._root&&(r=r.firstChild)&&"BR"===r.nodeName&&w(r),e._ensureBottomLine(),e.setSelection(t),e._updatePath(t,!0)}catch(t){e.didError(t)}},Ue={enter:function(e,t,n){var r,i,a,o,s,l=e._root;if(t.preventDefault(),e._recordUndoState(n),m(n.startContainer,l,"PRE",{"data-te-codeblock":""})||Et(n.startContainer,l,e),e._removeZWS(),e._getRangeAndRemoveBookmark(n),n.collapsed||Te(n,l),(r=Oe(n,l))&&(i=m(r,l,"PRE")))return xe(n),a=n.startContainer,o=n.startOffset,a.nodeType!==U&&(a=e._doc.createTextNode(""),i.insertBefore(a,i.firstChild)),t.shiftKey||"\n"!==a.data.charAt(o-1)&&!De(n,l)||"\n"!==a.data.charAt(o)&&!Be(n,l)?(a.insertData(o,"\n"),T(i,l),a.length===o+1?n.setStartAfter(a):n.setStart(a,o+1)):(a.deleteData(o&&o-1,o?2:1),s=N(a,o&&o-1,l,l),a=s.previousSibling,a.textContent||w(a),a=e.createDefaultBlock(),s.parentNode.insertBefore(a,s),s.textContent||w(s),n.setStart(a,0)),n.collapse(!0),e.setSelection(n),e._updatePath(n,!0),void e._docWasChanged();if(!r||t.shiftKey||/^T[HD]$/.test(r.nodeName))return i=m(n.endContainer,l,"A"),i&&(i=i.parentNode,Le(n,i,i,l),n.collapse(!1)),Ee(n,e.createElement("BR")),n.collapse(!1),e.setSelection(n),void e._updatePath(n,!0);if((i=m(r,l,"LI"))&&(r=i),f(r)){if(m(r,l,"UL")||m(r,l,"OL"))return e.decreaseListLevel(n);if(m(r,l,"BLOCKQUOTE"))return e.modifyBlocks(vt,n)}for(s=pt(e,r,n.startContainer,n.startOffset),dt(r),Xe(r),T(r,l);s.nodeType===j;){var c,u=s.firstChild;if("A"===s.nodeName&&(!s.textContent||s.textContent===$)){u=e._doc.createTextNode(""),C(s,u),s=u;break}for(;u&&u.nodeType===U&&!u.data&&(c=u.nextSibling)&&"BR"!==c.nodeName;)w(u),u=c;if(!u||"BR"===u.nodeName||u.nodeType===U&&!ee)break;s=u}n=e.createRange(s,0),e.setSelection(n),e._updatePath(n,!0)},"shift-enter":function(e,t,n){return e._keyHandlers.enter(e,t,n)},backspace:function(e,t,n){var r=e._root;if(e._removeZWS(),e.saveUndoState(n),n.collapsed)if(De(n,r)){t.preventDefault();var i,a=Oe(n,r);if(!a)return;if(k(a.parentNode,r),i=d(a,r)){if(!i.isContentEditable){for(;!i.parentNode.isContentEditable;)i=i.parentNode;return void w(i)}for(M(i,a,n,r),a=i.parentNode;a!==r&&!a.nextSibling;)a=a.parentNode;a!==r&&(a=a.nextSibling)&&A(a,r),e.setSelection(n)}else if(a){if(m(a,r,"UL")||m(a,r,"OL"))return e.decreaseListLevel(n);if(m(a,r,"BLOCKQUOTE"))return e.modifyBlocks(mt,n);e.setSelection(n),e._updatePath(n,!0)}}else e.setSelection(n),setTimeout((function(){je(e)}),0);else t.preventDefault(),Te(n,r),je(e,n)},delete:function(e,t,n){var r,i,a,o,s,l,c=e._root;if(e._removeZWS(),e.saveUndoState(n),n.collapsed)if(Be(n,c)){if(t.preventDefault(),!(r=Oe(n,c)))return;if(k(r.parentNode,c),i=h(r,c)){if(!i.isContentEditable){for(;!i.parentNode.isContentEditable;)i=i.parentNode;return void w(i)}for(M(r,i,n,c),i=r.parentNode;i!==c&&!i.nextSibling;)i=i.parentNode;i!==c&&(i=i.nextSibling)&&A(i,c),e.setSelection(n),e._updatePath(n,!0)}}else{if(a=n.cloneRange(),Le(n,c,c,c),o=n.endContainer,s=n.endOffset,o.nodeType===j&&(l=o.childNodes[s])&&"IMG"===l.nodeName)return t.preventDefault(),w(l),xe(n),void je(e,n);e.setSelection(a),setTimeout((function(){je(e)}),0)}else t.preventDefault(),Te(n,c),je(e,n)},tab:function(e,t,n){var r,i,a=e._root;if(e._removeZWS(),n.collapsed&&De(n,a))for(r=Oe(n,a);i=r.parentNode;){if("UL"===i.nodeName||"OL"===i.nodeName){t.preventDefault(),e.increaseListLevel(n);break}r=i}},"shift-tab":function(e,t,n){var r,i=e._root;e._removeZWS(),n.collapsed&&De(n,i)&&(r=n.startContainer,(m(r,i,"UL")||m(r,i,"OL"))&&(t.preventDefault(),e.decreaseListLevel(n)))},space:function(e,t,n){var r,i=e._root;if(e._recordUndoState(n),Et(n.startContainer,i,e),e._getRangeAndRemoveBookmark(n),r=n.endContainer,n.collapsed&&n.endOffset===_(r))do{if("A"===r.nodeName){n.setStartAfter(r);break}}while(!r.nextSibling&&(r=r.parentNode)&&r!==i);n.collapsed||(Te(n,i),e._ensureBottomLine(),e.setSelection(n),e._updatePath(n,!0)),e.setSelection(n)},left:function(e){e._removeZWS()},right:function(e){e._removeZWS()}};Q&&X&&(Ue["meta-left"]=function(e,t){t.preventDefault();var n=ut(e);n&&n.modify&&n.modify("move","backward","lineboundary")},Ue["meta-right"]=function(e,t){t.preventDefault();var n=ut(e);n&&n.modify&&n.modify("move","forward","lineboundary")}),Q||(Ue.pageup=function(e){e.moveCursorToStart()},Ue.pagedown=function(e){e.moveCursorToEnd()}),Ue[ie+"b"]=He("B"),Ue[ie+"i"]=He("I"),Ue[ie+"u"]=He("U"),Ue[ie+"shift-7"]=He("S"),Ue[ie+"shift-5"]=He("SUB",{tag:"SUP"}),Ue[ie+"shift-6"]=He("SUP",{tag:"SUB"}),Ue[ie+"shift-8"]=Fe("makeUnorderedList"),Ue[ie+"shift-9"]=Fe("makeOrderedList"),Ue[ie+"["]=Fe("decreaseQuoteLevel"),Ue[ie+"]"]=Fe("increaseQuoteLevel"),Ue[ie+"d"]=Fe("toggleCode"),Ue[ie+"y"]=Fe("redo"),Ue[ie+"z"]=Fe("undo"),Ue[ie+"shift-z"]=Fe("redo");var qe={1:10,2:13,3:16,4:18,5:24,6:32,7:48},Ve={backgroundColor:{regexp:ue,replace:function(e,t,n){return S(e,"SPAN",{class:t.highlight,style:"background-color:"+n})}},color:{regexp:ue,replace:function(e,t,n){return S(e,"SPAN",{class:t.colour,style:"color:"+n})}},fontWeight:{regexp:/^bold|^700/i,replace:function(e){return S(e,"B")}},fontStyle:{regexp:/^italic/i,replace:function(e){return S(e,"I")}},fontFamily:{regexp:ue,replace:function(e,t,n){return S(e,"SPAN",{class:t.fontFamily,style:"font-family:"+n})}},fontSize:{regexp:ue,replace:function(e,t,n){return S(e,"SPAN",{class:t.fontSize,style:"font-size:"+n})}},textDecoration:{regexp:/^underline/i,replace:function(e){return S(e,"U")}}},We=function(e){return function(t,n){var r=S(t.ownerDocument,e);return n.replaceChild(r,t),r.appendChild(E(t)),r}},$e=function(e,t,n){var r,i,a,o,s,l,c=e.style,u=e.ownerDocument;for(r in Ve)i=Ve[r],(a=c[r])&&i.regexp.test(a)&&(l=i.replace(u,n.classNames,a),s||(s=l),o&&o.appendChild(l),o=l,e.style[r]="");return s&&(o.appendChild(E(e)),"SPAN"===e.nodeName?t.replaceChild(s,e):e.appendChild(s)),o||e},ze={P:$e,SPAN:$e,STRONG:We("B"),EM:We("I"),INS:We("U"),STRIKE:We("S"),FONT:function(e,t,n){var r,i,a,o,s,l=e.face,c=e.size,u=e.color,d=e.ownerDocument,h=n.classNames;return l&&(r=S(d,"SPAN",{class:h.fontFamily,style:"font-family:"+l}),s=r,o=r),c&&(i=S(d,"SPAN",{class:h.fontSize,style:"font-size:"+qe[c]+"px"}),s||(s=i),o&&o.appendChild(i),o=i),u&&/^#?([\dA-F]{3}){1,2}$/i.test(u)&&("#"!==u.charAt(0)&&(u="#"+u),a=S(d,"SPAN",{class:h.colour,style:"color:"+u}),s||(s=a),o&&o.appendChild(a),o=a),s||(s=o=S(d,"SPAN")),t.replaceChild(s,e),o.appendChild(E(e)),o},TT:function(e,t,n){var r=S(e.ownerDocument,"SPAN",{class:n.classNames.fontFamily,style:'font-family:menlo,consolas,"courier new",monospace'});return t.replaceChild(r,e),r.appendChild(E(e)),r}},Ke=/^(?:A(?:DDRESS|RTICLE|SIDE|UDIO)|BLOCKQUOTE|CAPTION|D(?:[DLT]|IV)|F(?:IGURE|IGCAPTION|OOTER)|H[1-6]|HEADER|HR|L(?:ABEL|EGEND|I)|O(?:L|UTPUT)|P(?:RE)?|SECTION|T(?:ABLE|BODY|D|FOOT|H|HEAD|R)|COL(?:GROUP)?|UL)$/,Ge=/^(?:HEAD|META|STYLE)/,Je=new r(null,4|W),Qe=function(e,t){var n,r=t.allowedBlocks,i=!1,a=r.length;if(a){for(n=0;n<a;n+=1)r[n]=r[n].toUpperCase();i=new RegExp(r.join("|")).test(e)}return Ke.test(e)||i},Ye=function e(t,n,r){var i,a,o,l,c,u,d,h,f,p,g,m,v=t.childNodes;for(i=t;s(i);)i=i.parentNode;for(Je.root=i,a=0,o=v.length;a<o;a+=1)if(l=v[a],c=l.nodeName,u=l.nodeType,d=ze[c],u===j){if(h=l.childNodes.length,d)l=d(l,t,n);else{if(Ge.test(c)){t.removeChild(l),a-=1,o-=1;continue}if(!Qe(c,n)&&!s(l)){a-=1,o+=h-1,t.replaceChild(E(l),l);continue}}h&&e(l,n,r||"PRE"===c)}else{if(u===U){if(g=l.data,f=!ue.test(g.charAt(0)),p=!ue.test(g.charAt(g.length-1)),r||!f&&!p)continue;if(f){for(Je.currentNode=l;(m=Je.previousPONode())&&!("IMG"===(c=m.nodeName)||"#text"===c&&ue.test(m.data));)if(!s(m)){m=null;break}g=g.replace(/^[ \t\r\n]+/g,m?" ":"")}if(p){for(Je.currentNode=l;(m=Je.nextNode())&&!("IMG"===c||"#text"===c&&ue.test(m.data));)if(!s(m)){m=null;break}g=g.replace(/[ \t\r\n]+$/g,m?" ":"")}if(g){l.data=g;continue}}t.removeChild(l),a-=1,o-=1}return t},Xe=function e(t){for(var n,r=t.childNodes,i=r.length;i--;)if(n=r[i],n.nodeType!==j||a(n))n.nodeType!==U||n.data||t.removeChild(n);else{e(n);var o="FIGURE"===n.tagName;!s(n)&&!o||n.firstChild||t.removeChild(n)}},Ze=function(e){return e.nodeType===j?"BR"===e.nodeName||"IMG"===e.nodeName:ue.test(e.data)},et=function(e,t){for(var n,i=e.parentNode;s(i);)i=i.parentNode;return n=new r(i,4|W,Ze),n.currentNode=e,!!n.nextNode()||t&&!n.previousNode()},tt=function(e,t,n){var r,i,a,o=e.querySelectorAll("BR"),l=[],c=o.length;for(r=0;r<c;r+=1)l[r]=et(o[r],n);for(;c--;)i=o[c],(a=i.parentNode)&&(l[c]?s(a)||k(a,t):w(i))},nt=function(e,t,n,r){var i,a,o=t.ownerDocument.body,s=r.willCutCopy;tt(t,n,!0),t.setAttribute("style","position:fixed;overflow:hidden;bottom:100%;right:100%;"),o.appendChild(t),i=t.innerHTML,a=t.innerText||t.textContent,s&&(i=s(i)),Y&&(a=a.replace(/\r?\n/g,"\r\n")),e.setData("text/html",i),e.setData("text/plain",a),o.removeChild(t)},rt=function(e){var t,n,r,i,a,o,s,l=e.clipboardData,c=this.getSelection(),u=this._root,d=this;if(c.collapsed)e.preventDefault();else{if(this.saveUndoState(c),te||J||!l)setTimeout((function(){try{d._ensureBottomLine()}catch(e){d.didError(e)}}),0);else{for(t=Oe(c,u),n=Me(c,u),r=t===n&&t||u,i=Te(c,u),a=c.commonAncestorContainer,a.nodeType===U&&(a=a.parentNode);a&&a!==r;)o=a.cloneNode(!1),o.appendChild(i),i=o,a=a.parentNode;s=this.createElement("div"),s.appendChild(i),nt(l,s,u,this._config),e.preventDefault()}this.setSelection(c)}},it=function(e){var t,n,r,i,a,o,s,l=e.clipboardData,c=this.getSelection(),u=this._root;if(!te&&!J&&l){for(t=Oe(c,u),n=Me(c,u),r=t===n&&t||u,c=c.cloneRange(),xe(c),Le(c,r,r,u),i=c.cloneContents(),a=c.commonAncestorContainer,a.nodeType===U&&(a=a.parentNode);a&&a!==r;)o=a.cloneNode(!1),o.appendChild(i),i=o,a=a.parentNode;s=this.createElement("div"),s.appendChild(i),nt(l,s,u,this._config),e.preventDefault()}},at=function(e){var t,n,r,i,a,o=e.clipboardData,s=o&&o.items,l=this.isShiftDown,c=!1,u=!1,d=null,h=this;if(te&&s){for(t=s.length;t--;)!l&&/^image\/.*/.test(s[t].type)&&(u=!0);u||(s=null)}if(s){for(e.preventDefault(),t=s.length;t--;){if(n=s[t],r=n.type,!l&&"text/html"===r)return void n.getAsString((function(e){h.insertHTML(e,!0)}));"text/plain"===r&&(d=n),!l&&/^image\/.*/.test(r)&&(u=!0)}u?(this.fireEvent("dragover",{dataTransfer:o,preventDefault:function(){c=!0}}),c&&this.fireEvent("drop",{dataTransfer:o})):d&&d.getAsString((function(e){h.insertPlainText(e,!0)}))}else{if(i=o&&o.types,!te&&i&&(de.call(i,"text/html")>-1||!X&&de.call(i,"text/plain")>-1&&de.call(i,"text/rtf")<0))return e.preventDefault(),void(!l&&(a=o.getData("text/html"))?this.insertHTML(a,!0):((a=o.getData("text/plain"))||(a=o.getData("text/uri-list")))&&this.insertPlainText(a,!0));this._awaitingPaste=!0;var f=this._doc.body,p=this.getSelection(),g=p.startContainer,m=p.startOffset,v=p.endContainer,y=p.endOffset,b=this.createElement("DIV",{contenteditable:"true",style:"position:fixed; overflow:hidden; top:0; right:100%; width:1px; height:1px;"});f.appendChild(b),p.selectNodeContents(b),this.setSelection(p),setTimeout((function(){try{h._awaitingPaste=!1;for(var e,t,n="",r=b;b=r;)r=b.nextSibling,w(b),e=b.firstChild,e&&e===b.lastChild&&"DIV"===e.nodeName&&(b=e),n+=b.innerHTML;t=h.createRange(g,m,v,y),h.setSelection(t),n&&h.insertHTML(n,!0)}catch(e){h.didError(e)}}),0)}},ot=function(e){for(var t=e.dataTransfer.types,n=t.length,r=!1,i=!1;n--;)switch(t[n]){case"text/plain":r=!0;break;case"text/html":i=!0;break;default:return}(i||r)&&this.saveUndoState()},st=I.prototype,lt=function(e,t,n){var r=n._doc,i=e?DOMPurify.sanitize(e,{ALLOW_UNKNOWN_PROTOCOLS:!0,WHOLE_DOCUMENT:!1,RETURN_DOM:!0,RETURN_DOM_FRAGMENT:!0}):null;return i?r.importNode(i,!0):r.createDocumentFragment()};st.setConfig=function(e){return e=B({blockTag:"DIV",blockAttributes:null,tagAttributes:{blockquote:null,ul:null,ol:null,li:null,a:null},classNames:{colour:"colour",fontFamily:"font",fontSize:"size",highlight:"highlight"},leafNodeNames:ge,undo:{documentSizeThreshold:-1,undoLimit:-1},isInsertedHTMLSanitized:!0,isSetHTMLSanitized:!0,sanitizeToDOMFragment:"undefined"!=typeof DOMPurify&&DOMPurify.isSupported?lt:null,willCutCopy:null,allowedBlocks:[]},e,!0),e.blockTag=e.blockTag.toUpperCase(),this._config=e,this},st.createElement=function(e,t,n){return S(this._doc,e,t,n)},st.createDefaultBlock=function(e){var t=this._config;return T(this.createElement(t.blockTag,t.blockAttributes,e),this._root)},st.didError=function(e){},st.getDocument=function(){return this._doc},st.getRoot=function(){return this._root},st.modifyDocument=function(e){var t=this._mutation;t&&(t.takeRecords().length&&this._docWasChanged(),t.disconnect()),this._ignoreAllChanges=!0,e(),this._ignoreAllChanges=!1,t&&(t.observe(this._root,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),this._ignoreChange=!1)};var ct={pathChange:1,select:1,input:1,undoStateChange:1};st.fireEvent=function(e,t){var n,r,i,a=this._events[e];if(/^(?:focus|blur)/.test(e))if(n=this._root===this._doc.activeElement,"focus"===e){if(!n||this._isFocused)return this;this._isFocused=!0}else{if(n||!this._isFocused)return this;this._isFocused=!1}if(a)for(t||(t={}),t.type!==e&&(t.type=e),a=a.slice(),r=a.length;r--;){i=a[r];try{i.handleEvent?i.handleEvent(t):i.call(this,t)}catch(t){t.details="Squire: fireEvent error. Event type: "+e,this.didError(t)}}return this},st.destroy=function(){var e,t=this._events;for(e in t)this.removeEventListener(e);this._mutation&&this._mutation.disconnect(),delete this._root.__squire__,this._undoIndex=-1,this._undoStack=[],this._undoStackLength=0},st.handleEvent=function(e){this.fireEvent(e.type,e)},st.addEventListener=function(e,t){var n=this._events[e],r=this._root;return t?(n||(n=this._events[e]=[],ct[e]||("selectionchange"===e&&(r=this._doc),r.addEventListener(e,this,!0))),n.push(t),this):(this.didError({name:"Squire: addEventListener with null or undefined fn",message:"Event type: "+e}),this)},st.removeEventListener=function(e,t){var n,r=this._events[e],i=this._root;if(r){if(t)for(n=r.length;n--;)r[n]===t&&r.splice(n,1);else r.length=0;r.length||(delete this._events[e],ct[e]||("selectionchange"===e&&(i=this._doc),i.removeEventListener(e,this,!0)))}return this},st.createRange=function(e,t,n,r){if(e instanceof this._win.Range)return e.cloneRange();var i=this._doc.createRange();return i.setStart(e,t),n?i.setEnd(n,r):i.setEnd(e,t),i},st.getCursorPosition=function(e){if(!e&&!(e=this.getSelection())||!e.getBoundingClientRect)return null;var t,n,r=e.getBoundingClientRect();return r&&!r.top&&(this._ignoreChange=!0,t=this._doc.createElement("SPAN"),t.textContent=$,Ee(e,t),r=t.getBoundingClientRect(),n=t.parentNode,n.removeChild(t),L(n,e),this._ignoreChange=!1),r},st._moveCursorTo=function(e){var t=this._root,n=this.createRange(t,e?0:t.childNodes.length);return xe(n),this.setSelection(n),this},st.moveCursorToStart=function(){return this._moveCursorTo(!0)},st.moveCursorToEnd=function(){return this._moveCursorTo(!1)};var ut=function(e){return e._win.getSelection()||null};st.setSelection=function(e){if(e)if(this._lastSelection=e,this._isFocused)if(G&&!this._restoreSelection)R.call(this),this.blur(),this.focus();else{J&&this._win.focus();var t=ut(this);t&&(t.removeAllRanges(),t.addRange(e))}else R.call(this);return this},st.getSelection=function(){var e,t,n,r,i=ut(this),o=this._root;return this._isFocused&&i&&i.rangeCount&&(e=i.getRangeAt(0).cloneRange(),t=e.startContainer,n=e.endContainer,t&&a(t)&&e.setStartBefore(t),n&&a(n)&&e.setEndBefore(n)),e&&y(o,e.commonAncestorContainer)?this._lastSelection=e:(e=this._lastSelection,r=e.commonAncestorContainer,y(r.ownerDocument,r)||(e=null)),e||(e=this.createRange(o.firstChild,0)),e},st.getSelectedText=function(){var e=this.getSelection();if(!e||e.collapsed)return"";var t,n=new r(e.commonAncestorContainer,4|W,(function(t){return Ne(e,t,!0)})),i=e.startContainer,a=e.endContainer,o=n.currentNode=i,l="",c=!1;for(n.filter(o)||(o=n.nextNode());o;)o.nodeType===U?(t=o.data)&&/\S/.test(t)&&(o===a&&(t=t.slice(0,e.endOffset)),o===i&&(t=t.slice(e.startOffset)),l+=t,c=!0):("BR"===o.nodeName||c&&!s(o))&&(l+="\n",c=!1),o=n.nextNode();return l},st.getPath=function(){return this._path};var dt=function(e,t){for(var n,i,a,o=new r(e,4);i=o.nextNode();)for(;(a=i.data.indexOf($))>-1&&(!t||i.parentNode!==t);){if(1===i.length){do{n=i.parentNode,n.removeChild(i),i=n,o.currentNode=n}while(s(i)&&!_(i));break}i.deleteData(a,1)}};st._didAddZWS=function(){this._hasZWS=!0},st._removeZWS=function(){this._hasZWS&&(dt(this._root),this._hasZWS=!1)},st._updatePath=function(e,t){if(e){var n,r=e.startContainer,i=e.endContainer;(t||r!==this._lastAnchorNode||i!==this._lastFocusNode)&&(this._lastAnchorNode=r,this._lastFocusNode=i,n=r&&i?r===i?b(i,this._root,this._config):"(selection)":"",this._path!==n&&(this._path=n,this.fireEvent("pathChange",{path:n}))),this.fireEvent(e.collapsed?"cursor":"select",{range:e})}},st._updatePathOnEvent=function(e){var t=this;t._isFocused&&!t._willUpdatePath&&(t._willUpdatePath=!0,setTimeout((function(){t._willUpdatePath=!1,t._updatePath(t.getSelection())}),0))},st.focus=function(){if(re){try{this._root.setActive()}catch(t){}this.fireEvent("focus")}else this._root.focus();return this},st.blur=function(){return this._root.blur(),re&&this.fireEvent("blur"),this};var ht="squire-selection-end";st._saveRangeToBookmark=function(e){var t,n=this.createElement("INPUT",{id:"squire-selection-start",type:"hidden"}),r=this.createElement("INPUT",{id:ht,type:"hidden"});Ee(e,n),e.collapse(!1),Ee(e,r),2&n.compareDocumentPosition(r)&&(n.id=ht,r.id="squire-selection-start",t=n,n=r,r=t),e.setStartAfter(n),e.setEndBefore(r)},st._getRangeAndRemoveBookmark=function(e){var t=this._root,n=t.querySelector("#squire-selection-start"),r=t.querySelector("#"+ht);if(n&&r){var i=n.parentNode,a=r.parentNode,o=de.call(i.childNodes,n),s=de.call(a.childNodes,r);i===a&&(s-=1),w(n),w(r),e||(e=this._doc.createRange()),e.setStart(i,o),e.setEnd(a,s),L(i,e),i!==a&&L(a,e),e.collapsed&&(i=e.startContainer,i.nodeType===U&&(a=i.childNodes[e.startOffset],a&&a.nodeType===U||(a=i.childNodes[e.startOffset-1]),a&&a.nodeType===U&&(e.setStart(a,0),e.collapse(!0))))}return e||null},st._keyUpDetectChange=function(e){var t=e.keyCode;e.ctrlKey||e.metaKey||e.altKey||!(t<16||t>20)||!(t<33||t>45)||this._docWasChanged()},st._docWasChanged=function(){if(ce&&(_e=new WeakMap),!this._ignoreAllChanges){if(le&&this._ignoreChange)return void(this._ignoreChange=!1);this._isInUndoState&&(this._isInUndoState=!1,this.fireEvent("undoStateChange",{canUndo:!0,canRedo:!1})),this.fireEvent("input")}},st._recordUndoState=function(e,t){if(!this._isInUndoState||t){var n,r=this._undoIndex,i=this._undoStack,a=this._config.undo,o=a.documentSizeThreshold,s=a.undoLimit;t||(r+=1),r<this._undoStackLength&&(i.length=this._undoStackLength=r),e&&this._saveRangeToBookmark(e),n=this._getHTML(),o>-1&&2*n.length>o&&s>-1&&r>s&&(i.splice(0,r-s),r=s,this._undoStackLength=s),i[r]=n,this._undoIndex=r,this._undoStackLength+=1,this._isInUndoState=!0}},st.saveUndoState=function(e){return e===n&&(e=this.getSelection()),this._recordUndoState(e,this._isInUndoState),this._getRangeAndRemoveBookmark(e),this},st.undo=function(){if(0!==this._undoIndex||!this._isInUndoState){this._recordUndoState(this.getSelection(),!1),this._undoIndex-=1,this._setHTML(this._undoStack[this._undoIndex]);var e=this._getRangeAndRemoveBookmark();e&&this.setSelection(e),this._isInUndoState=!0,this.fireEvent("undoStateChange",{canUndo:0!==this._undoIndex,canRedo:!0}),this.fireEvent("input")}return this},st.redo=function(){var e=this._undoIndex,t=this._undoStackLength;if(e+1<t&&this._isInUndoState){this._undoIndex+=1,this._setHTML(this._undoStack[this._undoIndex]);var n=this._getRangeAndRemoveBookmark();n&&this.setSelection(n),this.fireEvent("undoStateChange",{canUndo:!0,canRedo:e+2<t}),this.fireEvent("input")}return this},st.hasFormat=function(e,t,n){if(e=e.toUpperCase(),t||(t={}),!n&&!(n=this.getSelection()))return!1;!n.collapsed&&n.startContainer.nodeType===U&&n.startOffset===n.startContainer.length&&n.startContainer.nextSibling&&n.setStartBefore(n.startContainer.nextSibling),!n.collapsed&&n.endContainer.nodeType===U&&0===n.endOffset&&n.endContainer.previousSibling&&n.setEndAfter(n.endContainer.previousSibling);var i,a,o=this._root,s=n.commonAncestorContainer;if(m(s,o,e,t))return!0;if(s.nodeType===U)return!1;i=new r(s,4,(function(e){return Ne(n,e,!0)}));for(var l=!1;a=i.nextNode();){if(!m(a,o,e,t))return!1;l=!0}return l},st.getFontInfo=function(e){var t,r,i,a={color:n,backgroundColor:n,family:n,size:n},o=0;if(!e&&!(e=this.getSelection()))return a;if(t=e.commonAncestorContainer,e.collapsed||t.nodeType===U)for(t.nodeType===U&&(t=t.parentNode);o<4&&t;)(r=t.style)&&(!a.color&&(i=r.color)&&(a.color=i,o+=1),!a.backgroundColor&&(i=r.backgroundColor)&&(a.backgroundColor=i,o+=1),!a.family&&(i=r.fontFamily)&&(a.family=i,o+=1),!a.size&&(i=r.fontSize)&&(a.size=i,o+=1)),t=t.parentNode;return a},st._addFormat=function(e,t,n){var i,a,o,l,c,u,d,h,f=this._root;if(n.collapsed){for(i=T(this.createElement(e,t),f),Ee(n,i),n.setStart(i.firstChild,i.firstChild.length),n.collapse(!0),h=i;s(h);)h=h.parentNode;dt(h,i)}else{if(a=new r(n.commonAncestorContainer,4|W,(function(e){return(e.nodeType===U||"BR"===e.nodeName||"IMG"===e.nodeName)&&Ne(n,e,!0)})),o=n.startContainer,c=n.startOffset,l=n.endContainer,u=n.endOffset,a.currentNode=o,a.filter(o)||(o=a.nextNode(),c=0),!o)return n;do{d=a.currentNode,!m(d,f,e,t)&&(d===l&&d.length>u&&d.splitText(u),d===o&&c&&(d=d.splitText(c),l===o&&(l=d,u-=c),o=d,c=0),i=this.createElement(e,t),C(d,i),i.appendChild(d))}while(a.nextNode());l.nodeType!==U&&(d.nodeType===U?(l=d,u=d.length):(l=d.parentNode,u=1)),n=this.createRange(o,c,l,u)}return n},st._removeFormat=function(e,t,n,r){this._saveRangeToBookmark(n);var i,a=this._doc;n.collapsed&&(oe?(i=a.createTextNode($),this._didAddZWS()):i=a.createTextNode(""),Ee(n,i));for(var o=n.commonAncestorContainer;s(o);)o=o.parentNode;var l=n.startContainer,c=n.startOffset,u=n.endContainer,d=n.endOffset,h=[],f=function(e,t){if(!Ne(n,e,!1)){var r,i,a=e.nodeType===U;if(!Ne(n,e,!0))return void("INPUT"===e.nodeName||a&&!e.data||h.push([t,e]));if(a)e===u&&d!==e.length&&h.push([t,e.splitText(d)]),e===l&&c&&(e.splitText(c),h.push([t,e]));else for(r=e.firstChild;r;r=i)i=r.nextSibling,f(r,t)}},p=Array.prototype.filter.call(o.getElementsByTagName(e),(function(r){return Ne(n,r,!0)&&g(r,e,t)}));return r||p.forEach((function(e){f(e,e)})),h.forEach((function(e){var t=e[0].cloneNode(!1),n=e[1];C(n,t),t.appendChild(n)})),p.forEach((function(e){C(e,E(e))})),this._getRangeAndRemoveBookmark(n),i&&n.collapse(!1),L(o,n),n},st.changeFormat=function(e,t,n,r){return n||(n=this.getSelection())?(this.saveUndoState(n),t&&(n=this._removeFormat(t.tag.toUpperCase(),t.attributes||{},n,r)),e&&(n=this._addFormat(e.tag.toUpperCase(),e.attributes||{},n)),this.setSelection(n),this._updatePath(n,!0),le||this._docWasChanged(),this):this};var ft={DT:"DD",DD:"DT",LI:"LI",PRE:"PRE"},pt=function(e,t,n,r){var i=ft[t.nodeName],a=null,o=N(n,r,t.parentNode,e._root),s=e._config;return i||(i=s.blockTag,a=s.blockAttributes),g(o,i,a)||(t=S(o.ownerDocument,i,a),o.dir&&(t.dir=o.dir),C(o,t),t.appendChild(E(o)),o=t),o};st.forEachBlock=function(e,t,n){if(!n&&!(n=this.getSelection()))return this;t&&this.saveUndoState(n);var r=this._root,i=Oe(n,r),a=Me(n,r);if(i&&a)do{if(e(i)||i===a)break}while(i=h(i,r));return t&&(this.setSelection(n),this._updatePath(n,!0),le||this._docWasChanged()),this},st.modifyBlocks=function(e,t){if(!t&&!(t=this.getSelection()))return this;this._recordUndoState(t,this._isInUndoState);var n,r=this._root;return Ie(t,r),Le(t,r,r,r),n=Se(t,r,r),Ee(t,e.call(this,n)),t.endOffset<t.endContainer.childNodes.length&&A(t.endContainer.childNodes[t.endOffset],r),A(t.startContainer.childNodes[t.startOffset],r),this._getRangeAndRemoveBookmark(t),this.setSelection(t),this._updatePath(t,!0),le||this._docWasChanged(),this};var gt=function(e){return this.createElement("BLOCKQUOTE",this._config.tagAttributes.blockquote,[e])},mt=function(e){var t=this._root,n=e.querySelectorAll("blockquote");return Array.prototype.filter.call(n,(function(e){return!m(e.parentNode,t,"BLOCKQUOTE")})).forEach((function(e){C(e,E(e))})),e},vt=function(){return this.createDefaultBlock([this.createElement("INPUT",{id:"squire-selection-start",type:"hidden"}),this.createElement("INPUT",{id:ht,type:"hidden"})])},yt=function(e,t,n){for(var r,i,a,o,s=u(t,e._root),l=e._config.tagAttributes,c=l[n.toLowerCase()],d=l.li;r=s.nextNode();)"LI"===r.parentNode.nodeName&&(r=r.parentNode,s.currentNode=r.lastChild),"LI"!==r.nodeName?(o=e.createElement("LI",d),r.dir&&(o.dir=r.dir),(a=r.previousSibling)&&a.nodeName===n?(a.appendChild(o),w(r)):C(r,e.createElement(n,c,[o])),o.appendChild(E(r)),s.currentNode=o):(r=r.parentNode,(i=r.nodeName)!==n&&/^[OU]L$/.test(i)&&C(r,e.createElement(n,c,[E(r)])))},bt=function(e){return yt(this,e,"UL"),e},_t=function(e){return yt(this,e,"OL"),e},wt=function(e){var t,n,r,i,a,o=e.querySelectorAll("UL, OL"),s=e.querySelectorAll("LI"),c=this._root;for(t=0,n=o.length;t<n;t+=1)r=o[t],i=E(r),k(i,c),C(r,i);for(t=0,n=s.length;t<n;t+=1)a=s[t],l(a)?C(a,this.createDefaultBlock([E(a)])):(k(a,c),C(a,E(a)));return e},Ct=function(e,t){for(var n=e.commonAncestorContainer,r=e.startContainer,i=e.endContainer;n&&n!==t&&!/^[OU]L$/.test(n.nodeName);)n=n.parentNode;if(!n||n===t)return null;for(r===n&&(r=r.childNodes[e.startOffset]),i===n&&(i=i.childNodes[e.endOffset]);r&&r.parentNode!==n;)r=r.parentNode;for(;i&&i.parentNode!==n;)i=i.parentNode;return[n,r,i]};st.increaseListLevel=function(e){if(!e&&!(e=this.getSelection()))return this.focus();var t=this._root,n=Ct(e,t);if(!n)return this.focus();var r=n[0],i=n[1],a=n[2];if(!i||i===r.firstChild)return this.focus();this._recordUndoState(e,this._isInUndoState);var o,s,l=r.nodeName,c=i.previousSibling;c.nodeName!==l&&(o=this._config.tagAttributes[l.toLowerCase()],c=this.createElement(l,o),r.insertBefore(c,i));do{s=i===a?null:i.nextSibling,c.appendChild(i)}while(i=s);return s=c.nextSibling,s&&A(s,t),this._getRangeAndRemoveBookmark(e),this.setSelection(e),this._updatePath(e,!0),le||this._docWasChanged(),this.focus()},st.decreaseListLevel=function(e){if(!e&&!(e=this.getSelection()))return this.focus();var t=this._root,n=Ct(e,t);if(!n)return this.focus();var r=n[0],i=n[1],a=n[2];i||(i=r.firstChild),a||(a=r.lastChild),this._recordUndoState(e,this._isInUndoState);var o,s=r.parentNode,l=a.nextSibling?N(r,a.nextSibling,s,t):r.nextSibling;if(s!==t&&"LI"===s.nodeName){for(s=s.parentNode;l;)o=l.nextSibling,a.appendChild(l),l=o;l=r.parentNode.nextSibling}var c=!/^[OU]L$/.test(s.nodeName);do{o=i===a?null:i.nextSibling,r.removeChild(i),c&&"LI"===i.nodeName&&(i=this.createDefaultBlock([E(i)])),s.insertBefore(i,l)}while(i=o);return r.firstChild||w(r),l&&A(l,t),this._getRangeAndRemoveBookmark(e),this.setSelection(e),this._updatePath(e,!0),le||this._docWasChanged(),this.focus()},st._ensureBottomLine=function(){var e=this._root,t=e.lastElementChild;t&&t.nodeName===this._config.blockTag&&l(t)||e.appendChild(this.createDefaultBlock())},st.setKeyHandler=function(e,t){return this._keyHandlers[e]=t,this},st._getHTML=function(){return this._root.innerHTML},st._setHTML=function(e){var t=this._root,n=t;n.innerHTML=e;do{T(n,t)}while(n=h(n,t));this._ignoreChange=!0},st.getHTML=function(e){var t,n,r,i,a,o,s=[];if(e&&(o=this.getSelection())&&this._saveRangeToBookmark(o),ae)for(t=this._root,n=t;n=h(n,t);)n.textContent||n.querySelector("BR")||(r=this.createElement("BR"),n.appendChild(r),s.push(r));if(i=this._getHTML().replace(/\u200B/g,""),ae)for(a=s.length;a--;)w(s[a]);return o&&this._getRangeAndRemoveBookmark(o),i},st.setHTML=function(e){var t,n,r,i=this._config,a=i.isSetHTMLSanitized?i.sanitizeToDOMFragment:null,o=this._root;"function"==typeof a?n=a(e,!1,this):(t=this.createElement("DIV"),t.innerHTML=e,n=this._doc.createDocumentFragment(),n.appendChild(E(t))),Ye(n,i),tt(n,o,!1),k(n,o);for(var s=n;s=h(s,o);)T(s,o);for(this._ignoreChange=!0;r=o.lastChild;)o.removeChild(r);o.appendChild(n),T(o,o),this._undoIndex=-1,this._undoStack.length=0,this._undoStackLength=0,this._isInUndoState=!1;var l=this._getRangeAndRemoveBookmark()||this.createRange(o.firstChild,0);return this.saveUndoState(l),this._lastSelection=l,R.call(this),this._updatePath(l,!0),this},st.insertElement=function(e,t){if(t||(t=this.getSelection()),t.collapse(!0),s(e))Ee(t,e),t.setStartAfter(e);else{for(var n,r,i=this._root,a=Oe(t,i)||i;a!==i&&!a.nextSibling;)a=a.parentNode;a!==i&&(n=a.parentNode,r=N(n,a.nextSibling,i,i)),r?i.insertBefore(e,r):(i.appendChild(e),r=this.createDefaultBlock(),i.appendChild(r)),t.setStart(r,0),t.setEnd(r,0),xe(t)}return this.focus(),this.setSelection(t),this._updatePath(t),le||this._docWasChanged(),this},st.insertImage=function(e,t){var n=this.createElement("IMG",B({src:e},t,!0));return this.insertElement(n),n},st.linkRegExp=/\b((?:(?:ht|f)tps?:\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,}\/)(?:[^\s()<>]+|\([^\s()<>]+\))+(?:\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:'".,<>?«»“”‘’]))|([\w\-.%+]+@(?:[\w\-]+\.)+[A-Z]{2,}\b)(?:\?[^&?\s]+=[^&?\s]+(?:&[^&?\s]+=[^&?\s]+)*)?/i;var Et=function(e,t,n){var i,a,o,s,l,c,u,d=e.ownerDocument,h=new r(e,4,(function(e){return!m(e,t,"A")})),f=n.linkRegExp,p=n._config.tagAttributes.a;if(f)for(;i=h.nextNode();)for(a=i.data,o=i.parentNode;s=f.exec(a);)l=s.index,c=l+s[0].length,l&&(u=d.createTextNode(a.slice(0,l)),o.insertBefore(u,i)),u=n.createElement("A",B({href:s[1]?/^(?:ht|f)tps?:/i.test(s[1])?s[1]:"http://"+s[1]:"mailto:"+s[0]},p,!1)),u.textContent=a.slice(l,c),o.insertBefore(u,i),i.data=a=a.slice(c)};st.insertHTML=function(e,t){var n,r,i,a,o,s,l,c=this._config,u=c.isInsertedHTMLSanitized?c.sanitizeToDOMFragment:null,d=this.getSelection(),f=this._doc;"function"==typeof u?a=u(e,t,this):(t&&(n=e.indexOf("\x3c!--StartFragment--\x3e"),r=e.lastIndexOf("\x3c!--EndFragment--\x3e"),n>-1&&r>-1&&(e=e.slice(n+20,r))),/<\/td>((?!<\/tr>)[\s\S])*$/i.test(e)&&(e="<TR>"+e+"</TR>"),/<\/tr>((?!<\/table>)[\s\S])*$/i.test(e)&&(e="<TABLE>"+e+"</TABLE>"),i=this.createElement("DIV"),i.innerHTML=e,a=f.createDocumentFragment(),a.appendChild(E(i))),this.saveUndoState(d);try{for(o=this._root,s=a,l={fragment:a,preventDefault:function(){this.defaultPrevented=!0},defaultPrevented:!1},Et(a,a,this),Ye(a,c),tt(a,o,!1),Xe(a),a.normalize();s=h(s,a);)T(s,o);t&&this.fireEvent("willPaste",l),l.defaultPrevented||(ke(d,l.fragment,o),le||this._docWasChanged(),d.collapse(!1),this._ensureBottomLine()),this.setSelection(d),this._updatePath(d,!0),t&&this.focus()}catch(e){this.didError(e)}return this};var St=function(e){return e.split("&").join("&amp;").split("<").join("&lt;").split(">").join("&gt;").split('"').join("&quot;")};st.insertPlainText=function(e,t){var n=this.getSelection();if(n.collapsed&&m(n.startContainer,this._root,"PRE")){var r,i,a=n.startContainer,o=n.startOffset;return a&&a.nodeType===U||(r=this._doc.createTextNode(""),a.insertBefore(r,a.childNodes[o]),a=r,o=0),i={text:e,preventDefault:function(){this.defaultPrevented=!0},defaultPrevented:!1},t&&this.fireEvent("willPaste",i),i.defaultPrevented||(e=i.text,a.insertData(o,e),n.setStart(a,o+e.length),n.collapse(!0)),this.setSelection(n),this}var s,l,c,u,d=e.split("\n"),h=this._config,f=h.blockTag,p=h.blockAttributes,g="</"+f+">",v="<"+f;for(s in p)v+=" "+s+'="'+St(p[s])+'"';for(v+=">",l=0,c=d.length;l<c;l+=1)u=d[l],u=St(u).replace(/ (?= )/g,"&nbsp;"),d[l]=v+(u||"<BR>")+g;return this.insertHTML(d.join(""),t)};var Tt=function(e,t,n){return function(){return this[e](t,n),this.focus()}};st.addStyles=function(e){if(e){var t=this._doc.documentElement.firstChild,n=this.createElement("STYLE",{type:"text/css"});n.appendChild(this._doc.createTextNode(e)),t.appendChild(n)}return this},st.bold=Tt("changeFormat",{tag:"B"}),st.italic=Tt("changeFormat",{tag:"I"}),st.underline=Tt("changeFormat",{tag:"U"}),st.strikethrough=Tt("changeFormat",{tag:"S"}),st.subscript=Tt("changeFormat",{tag:"SUB"},{tag:"SUP"}),st.superscript=Tt("changeFormat",{tag:"SUP"},{tag:"SUB"}),st.removeBold=Tt("changeFormat",null,{tag:"B"}),st.removeItalic=Tt("changeFormat",null,{tag:"I"}),st.removeUnderline=Tt("changeFormat",null,{tag:"U"}),st.removeStrikethrough=Tt("changeFormat",null,{tag:"S"}),st.removeSubscript=Tt("changeFormat",null,{tag:"SUB"}),st.removeSuperscript=Tt("changeFormat",null,{tag:"SUP"}),st.makeLink=function(e,t){var n=this.getSelection();if(n.collapsed){var r=e.indexOf(":")+1;if(r)for(;"/"===e[r];)r+=1;Ee(n,this._doc.createTextNode(e.slice(r)))}return t=B(B({href:e},t,!0),this._config.tagAttributes.a,!1),this.changeFormat({tag:"A",attributes:t},{tag:"A"},n),this.focus()},st.removeLink=function(){return this.changeFormat(null,{tag:"A"},this.getSelection(),!0),this.focus()},st.setFontFace=function(e){var t=this._config.classNames.fontFamily;return this.changeFormat(e?{tag:"SPAN",attributes:{class:t,style:"font-family: "+e+", sans-serif;"}}:null,{tag:"SPAN",attributes:{class:t}}),this.focus()},st.setFontSize=function(e){var t=this._config.classNames.fontSize;return this.changeFormat(e?{tag:"SPAN",attributes:{class:t,style:"font-size: "+("number"==typeof e?e+"px":e)}}:null,{tag:"SPAN",attributes:{class:t}}),this.focus()},st.setTextColour=function(e){var t=this._config.classNames.colour;return this.changeFormat(e?{tag:"SPAN",attributes:{class:t,style:"color:"+e}}:null,{tag:"SPAN",attributes:{class:t}}),this.focus()},st.setHighlightColour=function(e){var t=this._config.classNames.highlight;return this.changeFormat(e?{tag:"SPAN",attributes:{class:t,style:"background-color:"+e}}:e,{tag:"SPAN",attributes:{class:t}}),this.focus()},st.setTextAlignment=function(e){return this.forEachBlock((function(t){var n=t.className.split(/\s+/).filter((function(e){return!!e&&!/^align/.test(e)})).join(" ");e?(t.className=n+" align-"+e,t.style.textAlign=e):(t.className=n,t.style.textAlign="")}),!0),this.focus()},st.setTextDirection=function(e){return this.forEachBlock((function(t){e?t.dir=e:t.removeAttribute("dir")}),!0),this.focus()};var kt=function(e){for(var t,n=this._root,i=this._doc,a=i.createDocumentFragment(),o=u(e,n);t=o.nextNode();){var s,l,c=t.querySelectorAll("BR"),d=[],h=c.length;for(s=0;s<h;s+=1)d[s]=et(c[s],!1);for(;h--;)l=c[h],d[h]?C(l,i.createTextNode("\n")):w(l);for(c=t.querySelectorAll("CODE"),h=c.length;h--;)w(c[h]);a.childNodes.length&&a.appendChild(i.createTextNode("\n")),a.appendChild(E(t))}for(o=new r(a,4);t=o.nextNode();)t.data=t.data.replace(/ /g," ");return a.normalize(),T(this.createElement("PRE",this._config.tagAttributes.pre,[a]),n)},Nt=function(e){for(var t,n,i,a,o,s,l=this._doc,c=this._root,u=e.querySelectorAll("PRE"),d=u.length;d--;){for(t=u[d],n=new r(t,4);i=n.nextNode();){for(a=i.data,a=a.replace(/ (?= )/g," "),o=l.createDocumentFragment();(s=a.indexOf("\n"))>-1;)o.appendChild(l.createTextNode(a.slice(0,s))),o.appendChild(l.createElement("BR")),a=a.slice(s+1);i.parentNode.insertBefore(o,i),i.data=a}k(t,c),C(t,E(t))}return e};st.code=function(){var e=this.getSelection();return e.collapsed||c(e.commonAncestorContainer)?this.modifyBlocks(kt,e):this.changeFormat({tag:"CODE",attributes:this._config.tagAttributes.code},null,e),this.focus()},st.removeCode=function(){var e=this.getSelection();return m(e.commonAncestorContainer,this._root,"PRE")?this.modifyBlocks(Nt,e):this.changeFormat(null,{tag:"CODE"},e),this.focus()},st.toggleCode=function(){return this.hasFormat("PRE")||this.hasFormat("CODE")?this.removeCode():this.code(),this},st.removeAllFormatting=function(e){if(!e&&!(e=this.getSelection())||e.collapsed)return this;for(var t=this._root,n=e.commonAncestorContainer;n&&!l(n);)n=n.parentNode;if(n||(Ie(e,t),n=t),n.nodeType===U)return this;this.saveUndoState(e),Le(e,n,n,t);for(var r,i,a=n.ownerDocument,o=e.startContainer,s=e.startOffset,c=e.endContainer,u=e.endOffset,d=a.createDocumentFragment(),h=a.createDocumentFragment(),f=N(c,u,n,t),p=N(o,s,n,t);p!==f;)r=p.nextSibling,d.appendChild(p),p=r;return H(this,d,h),h.normalize(),p=h.firstChild,r=h.lastChild,i=n.childNodes,p?(n.insertBefore(h,f),s=de.call(i,p),u=de.call(i,r)+1):(s=de.call(i,f),u=s),e.setStart(n,s),e.setEnd(n,u),L(n,e),xe(e),this.setSelection(e),this._updatePath(e,!0),this.focus()},st.increaseQuoteLevel=Tt("modifyBlocks",gt),st.decreaseQuoteLevel=Tt("modifyBlocks",mt),st.makeUnorderedList=Tt("modifyBlocks",bt),st.makeOrderedList=Tt("modifyBlocks",_t),st.removeList=Tt("modifyBlocks",wt),I.isInline=s,I.isBlock=l,I.isContainer=c,I.getBlockWalker=u,I.getPreviousBlock=d,I.getNextBlock=h,I.areAlike=p,I.hasTagAttributes=g,I.getNearest=m,I.isOrContains=y,I.detach=w,I.replaceWith=C,I.empty=E,I.getNodeBefore=we,I.getNodeAfter=Ce,I.insertNodeInRange=Ee,I.extractContentsOfRange=Se,I.deleteContentsOfRange=Te,I.insertTreeFragmentIntoRange=ke,I.isNodeContainedInRange=Ne,I.moveRangeBoundariesDownTree=xe,I.moveRangeBoundariesUpTree=Le,I.getStartBlockOfRange=Oe,I.getEndBlockOfRange=Me,I.contentWalker=Ae,I.rangeDoesStartAtBlockBoundary=De,I.rangeDoesEndAtBlockBoundary=Be,I.expandRangeToBlockBoundaries=Ie,I.onPaste=at,I.addLinks=Et,I.splitBlock=pt,I.startSelectionId="squire-selection-start",I.endSelectionId=ht,e.exports=I}(document)},function(e,t,n){"use strict";function r(e){return"boolean"===typeof e||e instanceof Boolean}e.exports=r},function(e,t,n){"use strict";(function(e){var n=function(){if("undefined"!==typeof Map)return Map;function e(e,t){var n=-1;return e.some((function(e,r){return e[0]===t&&(n=r,!0)})),n}return function(){function t(){this.__entries__=[]}return Object.defineProperty(t.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),t.prototype.get=function(t){var n=e(this.__entries__,t),r=this.__entries__[n];return r&&r[1]},t.prototype.set=function(t,n){var r=e(this.__entries__,t);~r?this.__entries__[r][1]=n:this.__entries__.push([t,n])},t.prototype.delete=function(t){var n=this.__entries__,r=e(n,t);~r&&n.splice(r,1)},t.prototype.has=function(t){return!!~e(this.__entries__,t)},t.prototype.clear=function(){this.__entries__.splice(0)},t.prototype.forEach=function(e,t){void 0===t&&(t=null);for(var n=0,r=this.__entries__;n<r.length;n++){var i=r[n];e.call(t,i[1],i[0])}},t}()}(),r="undefined"!==typeof window&&"undefined"!==typeof document&&window.document===document,i=function(){return"undefined"!==typeof e&&e.Math===Math?e:"undefined"!==typeof self&&self.Math===Math?self:"undefined"!==typeof window&&window.Math===Math?window:Function("return this")()}(),a=function(){return"function"===typeof requestAnimationFrame?requestAnimationFrame.bind(i):function(e){return setTimeout((function(){return e(Date.now())}),1e3/60)}}(),o=2;function s(e,t){var n=!1,r=!1,i=0;function s(){n&&(n=!1,e()),r&&c()}function l(){a(s)}function c(){var e=Date.now();if(n){if(e-i<o)return;r=!0}else n=!0,r=!1,setTimeout(l,t);i=e}return c}var l=20,c=["top","right","bottom","left","width","height","size","weight"],u="undefined"!==typeof MutationObserver,d=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=s(this.refresh.bind(this),l)}return e.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},e.prototype.removeObserver=function(e){var t=this.observers_,n=t.indexOf(e);~n&&t.splice(n,1),!t.length&&this.connected_&&this.disconnect_()},e.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},e.prototype.updateObservers_=function(){var e=this.observers_.filter((function(e){return e.gatherActive(),e.hasActive()}));return e.forEach((function(e){return e.broadcastActive()})),e.length>0},e.prototype.connect_=function(){r&&!this.connected_&&(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),u?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},e.prototype.disconnect_=function(){r&&this.connected_&&(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},e.prototype.onTransitionEnd_=function(e){var t=e.propertyName,n=void 0===t?"":t,r=c.some((function(e){return!!~n.indexOf(e)}));r&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),h=function(e,t){for(var n=0,r=Object.keys(t);n<r.length;n++){var i=r[n];Object.defineProperty(e,i,{value:t[i],enumerable:!1,writable:!1,configurable:!0})}return e},f=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||i},p=S(0,0,0,0);function g(e){return parseFloat(e)||0}function m(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce((function(t,n){var r=e["border-"+n+"-width"];return t+g(r)}),0)}function v(e){for(var t=["top","right","bottom","left"],n={},r=0,i=t;r<i.length;r++){var a=i[r],o=e["padding-"+a];n[a]=g(o)}return n}function y(e){var t=e.getBBox();return S(0,0,t.width,t.height)}function b(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return p;var r=f(e).getComputedStyle(e),i=v(r),a=i.left+i.right,o=i.top+i.bottom,s=g(r.width),l=g(r.height);if("border-box"===r.boxSizing&&(Math.round(s+a)!==t&&(s-=m(r,"left","right")+a),Math.round(l+o)!==n&&(l-=m(r,"top","bottom")+o)),!w(e)){var c=Math.round(s+a)-t,u=Math.round(l+o)-n;1!==Math.abs(c)&&(s-=c),1!==Math.abs(u)&&(l-=u)}return S(i.left,i.top,s,l)}var _=function(){return"undefined"!==typeof SVGGraphicsElement?function(e){return e instanceof f(e).SVGGraphicsElement}:function(e){return e instanceof f(e).SVGElement&&"function"===typeof e.getBBox}}();function w(e){return e===f(e).document.documentElement}function C(e){return r?_(e)?y(e):b(e):p}function E(e){var t=e.x,n=e.y,r=e.width,i=e.height,a="undefined"!==typeof DOMRectReadOnly?DOMRectReadOnly:Object,o=Object.create(a.prototype);return h(o,{x:t,y:n,width:r,height:i,top:n,right:t+r,bottom:i+n,left:t}),o}function S(e,t,n,r){return{x:e,y:t,width:n,height:r}}var T=function(){function e(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=S(0,0,0,0),this.target=e}return e.prototype.isActive=function(){var e=C(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},e.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},e}(),k=function(){function e(e,t){var n=E(t);h(this,{target:e,contentRect:n})}return e}(),N=function(){function e(e,t,r){if(this.activeObservations_=[],this.observations_=new n,"function"!==typeof e)throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return e.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new T(e)),this.controller_.addObserver(this),this.controller_.refresh())}},e.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if("undefined"!==typeof Element&&Element instanceof Object){if(!(e instanceof f(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},e.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},e.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach((function(t){t.isActive()&&e.activeObservations_.push(t)}))},e.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map((function(e){return new k(e.target,e.broadcastRect())}));this.callback_.call(e,t,e),this.clearActive()}},e.prototype.clearActive=function(){this.activeObservations_.splice(0)},e.prototype.hasActive=function(){return this.activeObservations_.length>0},e}(),x="undefined"!==typeof WeakMap?new WeakMap:new n,L=function(){function e(t){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var n=d.getInstance(),r=new N(t,n,this);x.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach((function(e){L.prototype[e]=function(){var t;return(t=x.get(this))[e].apply(t,arguments)}}));var O=function(){return"undefined"!==typeof i.ResizeObserver?i.ResizeObserver:L}();t["a"]=O}).call(this,n(59))},function(e,t,n){"use strict";var r=n(7),i=n(28),a=n(9),o=n(54),s=n(17),l=n(27),c=n(26),u=/\s+/g;function d(){this.events=null,this.contexts=null}d.mixin=function(e){r(e.prototype,d.prototype)},d.prototype._getHandlerItem=function(e,t){var n={handler:e};return t&&(n.context=t),n},d.prototype._safeEvent=function(e){var t,n=this.events;return n||(n=this.events={}),e&&(t=n[e],t||(t=[],n[e]=t),n=t),n},d.prototype._safeContext=function(){var e=this.contexts;return e||(e=this.contexts=[]),e},d.prototype._indexOfContext=function(e){var t=this._safeContext(),n=0;while(t[n]){if(e===t[n][0])return n;n+=1}return-1},d.prototype._memorizeContext=function(e){var t,n;i(e)&&(t=this._safeContext(),n=this._indexOfContext(e),n>-1?t[n][1]+=1:t.push([e,1]))},d.prototype._forgetContext=function(e){var t,n;i(e)&&(t=this._safeContext(),n=this._indexOfContext(e),n>-1&&(t[n][1]-=1,t[n][1]<=0&&t.splice(n,1)))},d.prototype._bindEvent=function(e,t,n){var r=this._safeEvent(e);this._memorizeContext(n),r.push(this._getHandlerItem(t,n))},d.prototype.on=function(e,t,n){var r=this;a(e)?(e=e.split(u),c(e,(function(e){r._bindEvent(e,t,n)}))):o(e)&&(n=t,c(e,(function(e,t){r.on(t,e,n)})))},d.prototype.once=function(e,t,n){var r=this;if(o(e))return n=t,void c(e,(function(e,t){r.once(t,e,n)}));function i(){t.apply(n,arguments),r.off(e,i,n)}this.on(e,i,n)},d.prototype._spliceMatches=function(e,t){var n,r=0;if(s(e))for(n=e.length;r<n;r+=1)!0===t(e[r])&&(e.splice(r,1),n-=1,r-=1)},d.prototype._matchHandler=function(e){var t=this;return function(n){var r=e===n.handler;return r&&t._forgetContext(n.context),r}},d.prototype._matchContext=function(e){var t=this;return function(n){var r=e===n.context;return r&&t._forgetContext(n.context),r}},d.prototype._matchHandlerAndContext=function(e,t){var n=this;return function(r){var i=e===r.handler,a=t===r.context,o=i&&a;return o&&n._forgetContext(r.context),o}},d.prototype._offByEventName=function(e,t){var n=this,r=l(t),i=n._matchHandler(t);e=e.split(u),c(e,(function(e){var t=n._safeEvent(e);r?n._spliceMatches(t,i):(c(t,(function(e){n._forgetContext(e.context)})),n.events[e]=[])}))},d.prototype._offByHandler=function(e){var t=this,n=this._matchHandler(e);c(this._safeEvent(),(function(e){t._spliceMatches(e,n)}))},d.prototype._offByObject=function(e,t){var n,r=this;this._indexOfContext(e)<0?c(e,(function(e,t){r.off(t,e)})):a(t)?(n=this._matchContext(e),r._spliceMatches(this._safeEvent(t),n)):l(t)?(n=this._matchHandlerAndContext(t,e),c(this._safeEvent(),(function(e){r._spliceMatches(e,n)}))):(n=this._matchContext(e),c(this._safeEvent(),(function(e){r._spliceMatches(e,n)})))},d.prototype.off=function(e,t){a(e)?this._offByEventName(e,t):arguments.length?l(e)?this._offByHandler(e):o(e)&&this._offByObject(e,t):(this.events={},this.contexts=[])},d.prototype.fire=function(e){this.invoke.apply(this,arguments)},d.prototype.invoke=function(e){var t,n,r,i;if(!this.hasListener(e))return!0;t=this._safeEvent(e),n=Array.prototype.slice.call(arguments,1),r=0;while(t[r]){if(i=t[r],!1===i.handler.apply(i.context,n))return!1;r+=1}return!0},d.prototype.hasListener=function(e){return this.getListenerLength(e)>0},d.prototype.getListenerLength=function(e){var t=this._safeEvent(e);return t.length},e.exports=d},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(r){"object"===typeof window&&(n=window)}e.exports=n},,,,,,function(e,t,n){"use strict";n.r(t);var r=n(10),i=n.n(r),a=n(28),o=n.n(a),s=n(34),l=n.n(s),c=n(7),u=n.n(c),d=n(3),h=n.n(d),f=n(5),p=n.n(f),g=n(6),m=n.n(g),v=n(22),y=n(29);function b(e){var t=e.extendedAutolinks,n=e.customHTMLRenderer,r=e.referenceDefinition,i=e.customParser,a=new v["Parser"]({disallowedHtmlBlockTags:["br"],extendedAutolinks:t,referenceDefinition:r,disallowDeepHeading:!0,customParser:i}),o=Object(v["createRenderHTML"])({gfm:!0,convertors:Object(y["a"])(null,n)});return function(e){return o(a.parse(e))}}var _=n(12),w=n(56),C=n.n(w),E=n(15),S=n.n(E),T=/^(\s*)((\d+)([.)]\s(?:\[(?:x|\s)\]\s)?))(.*)/;function k(e,t,n,r){var i,a,o,s,l=n,c=r.getLine(e);do{var u=T.exec(c);if(i=u[1],a=u[4],o=u[5],s=i.length,s===t)r.replaceRange(""+i+l+a+o,{line:e,ch:0},{line:e,ch:c.length}),l+=1,e+=1;else{if(!(s>t))return e;e=k(e,s,1,r)}c=r.getLine(e)}while(T.test(c));return e}function N(e,t){var n=e,r=t.getLine(e);while(T.test(r))n-=1,r=t.getLine(n);return e===n?n=-1:n+=1,n}S.a.commands.indentLessOrderedList=function(e){return e.getOption("disableInput")?S.a.Pass:(e.execCommand("indentLess"),e.execCommand("fixOrderedListNumber"),null)},S.a.commands.fixOrderedListNumber=function(e){if(e.getOption("disableInput")||e.state.isCursorInCodeBlock)return S.a.Pass;for(var t=e.listSelections(),n=0;n<t.length;n+=1){var r=t[n].head,i=N(r.line,e);if(i>=0){var a=e.getLine(i),o=T.exec(a),s=o[1],l=o[3];k(i,s.length,parseInt(l,10),e)}}return null},S.a.overlayMode=function(e,t,n){return{startState:function(){return{base:S.a.startState(e),overlay:S.a.startState(t),basePos:0,baseCur:null,overlayPos:0,overlayCur:null,streamSeen:null}},copyState:function(n){return{base:S.a.copyState(e,n.base),overlay:S.a.copyState(t,n.overlay),basePos:n.basePos,baseCur:null,overlayPos:n.overlayPos,overlayCur:null}},token:function(r,i){return(r!=i.streamSeen||Math.min(i.basePos,i.overlayPos)<r.start)&&(i.streamSeen=r,i.basePos=i.overlayPos=r.start),r.start==i.basePos&&(i.baseCur=e.token(r,i.base),i.basePos=r.pos),r.start==i.overlayPos&&(r.pos=r.start,i.overlayCur=t.token(r,i.overlay),i.overlayPos=r.pos),r.pos=Math.min(i.basePos,i.overlayPos),null==i.overlayCur?i.baseCur:null!=i.baseCur&&i.overlay.combineTokens||n&&null==i.overlay.combineTokens?i.baseCur+" "+i.overlayCur:i.overlayCur},indent:e.indent&&function(t,n){return e.indent(t.base,n)},electricChars:e.electricChars,innerMode:function(t){return{state:t.base,mode:e}},blankLine:function(n){e.blankLine&&e.blankLine(n.base),t.blankLine&&t.blankLine(n.overlay)}}};var x=/^(\s*)(>[> ]*|[*+-] \[[x ]\]\s|[*+-]\s|(\d+)([.)]\s))(\s*)/,L=/^(\s*)(>[> ]*|[*+-] \[[x ]\]|[*+-]|(\d+)[.)])(\s*)$/,O=/[*+-]\s/;function M(e,t){var n=t.line,r=0,i=0,a=x.exec(e.getLine(n)),o=a[1];do{r+=1;var s=n+r,l=e.getLine(s),c=x.exec(l);if(c){var u=c[1],d=parseInt(a[3],10)+r-i,h=parseInt(c[3],10),f=h;if(o!==u||isNaN(h)){if(o.length>u.length)return;if(o.length<u.length&&1===r)return;i+=1}else d===h&&(f=h+1),d>h&&(f=d+1),e.replaceRange(l.replace(x,u+f+c[4]+c[5]),{line:s,ch:0},{line:s,ch:l.length})}}while(c)}function A(e){return D(e)&&e.anchor.ch===e.head.ch}function D(e){return e.anchor.line===e.head.line}function B(e,t,n,r){var i=e.getLine(n.line),a=e.getLine(n.line+r),o={anchor:t,head:n};e.replaceRange(a,{line:n.line,ch:0},{line:n.line,ch:i.length},"+input"),e.replaceRange(i,{line:n.line+r,ch:0},{line:n.line+r,ch:a.length},"+input"),A(o)?e.setCursor({line:n.line+r,ch:n.ch}):e.setSelection({line:t.line+r,ch:t.ch},{line:n.line+r,ch:n.ch})}function I(e,t,n,r){var i,a=e.getRange({line:t.line,ch:0},{line:n.line,ch:e.getLine(n.line).length}),o=r>0?n:t,s=e.getLine(o.line+r);i=r>0?t:n,e.replaceRange(s,{line:i.line,ch:0},{line:i.line,ch:e.getLine(i.line).length},"+input"),e.replaceRange(a,{line:t.line+r,ch:0},{line:n.line+r,ch:e.getLine(n.line+r).length},"+input"),e.setSelection({line:t.line+r,ch:t.ch},{line:n.line+r,ch:n.ch})}function R(e){e.state.placeholder&&(e.state.placeholder.parentNode.removeChild(e.state.placeholder),e.state.placeholder=null)}function P(e){R(e);var t=e.state.placeholder=document.createElement("pre");t.style.cssText="height: 0; overflow: visible",t.className="CodeMirror-placeholder";var n=e.getOption("placeholder");"string"==typeof n&&(n=document.createTextNode(n)),t.appendChild(n),e.display.lineSpace.insertBefore(t,e.display.lineSpace.firstChild)}function F(e){j(e)&&P(e)}function H(e){var t=e.getWrapperElement(),n=j(e);t.className=t.className.replace(" CodeMirror-empty","")+(n?" CodeMirror-empty":""),n?P(e):R(e)}function j(e){return 1===e.lineCount()&&""===e.getLine(0)}function U(){return U=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(this,arguments)}S.a.commands.indentOrderedList=function(e){if(e.getOption("disableInput"))return S.a.Pass;for(var t=e.listSelections(),n=0;n<t.length;n++){var r=t[n].head,i=e.getLine(r.line),a=i.substr(0,r.ch);x.test(a)||e.somethingSelected()?e.indentSelection("add"):e.execCommand("insertSoftTab")}e.execCommand("fixOrderedListNumber")},S.a.commands.newlineAndIndentContinueMarkdownList=function(e){if(e.getOption("disableInput")||e.state.isCursorInCodeBlock)return S.a.Pass;for(var t=e.listSelections(),n=[],r=0;r<t.length;r++){var i=t[r].head,a=e.getLine(i.line),o=x.exec(a),s=/^\s*$/.test(a.slice(0,i.ch));if(!t[r].empty()||!o||s)return void e.execCommand("newlineAndIndent");if(L.test(a))/>\s*$/.test(a)||e.replaceRange("",{line:i.line,ch:0},{line:i.line,ch:i.ch+1}),n[r]="\n";else{var l=o[1],c=o[5],u=!(O.test(o[2])||o[2].indexOf(">")>=0),d=u?parseInt(o[3],10)+1+o[4]:o[2].replace("x"," ");n[r]="\n"+l+d+c,u&&M(e,i)}}e.replaceSelections(n)},S.a.commands.replaceLineTextToUpper=function(e){if(e.getOption("disableInput"))return S.a.Pass;for(var t=e.listSelections(),n=-1,r=0;r<t.length;r++){var i=t[r],a=i.anchor,o=i.head;if(D(i)&&o.line>0)B(e,a,o,n);else if(!A(i)){var s=a.line<o.line?a.line:o.line;if(s>0){var l=a.line===s?a:o,c=a.line===s?o:a;I(e,l,c,n)}}}},S.a.commands.replaceLineTextToLower=function(e){if(e.getOption("disableInput"))return S.a.Pass;for(var t=e.listSelections(),n=1,r=0;r<t.length;r++){var i=t[r],a=i.anchor,o=i.head,s=o.line===e.lastLine();if(D(i)&&!s)B(e,a,o,n);else if(!A(i)){var l=a.line<o.line?a.line:o.line,c=a.line===l?a:o,u=a.line===l?o:a;u.line<e.lastLine()&&I(e,c,u,n)}}},S.a.defineOption("placeholder","",(function(e,t,n){var r=n&&n!=S.a.Init;if(t&&!r)e.on("blur",F),e.on("change",H),e.on("swapDoc",H),H(e);else if(!t&&r){e.off("blur",F),e.off("change",H),e.off("swapDoc",H),R(e);var i=e.getWrapperElement();i.className=i.className.replace(" CodeMirror-empty","")}t&&!e.hasFocus()&&F(e)}));var q,V=function(){function e(e,t){void 0===t&&(t={}),this.editorContainerEl=e,this.cm=null,this._init(t)}var t=e.prototype;return t._init=function(e){var t=document.createElement("textarea");this.editorContainerEl.appendChild(t),e=U({},e,{lineWrapping:!0,theme:"default",extraKeys:U({"Shift-Tab":"indentLess","Alt-Up":"replaceLineTextToUpper","Alt-Down":"replaceLineTextToLower"},e.extraKeys),indentUnit:4,cursorScrollMargin:12,specialCharPlaceholder:function(){return document.createElement("span")}}),this.cm=S.a.fromTextArea(t,e)},t.getCurrentRange=function(){var e=this.cm.getCursor("from"),t=this.cm.getCursor("to");return{from:e,to:t,collapsed:e.line===t.line&&e.ch===t.ch}},t.focus=function(){this.cm.focus()},t.blur=function(){this.cm.getInputField().blur()},t.remove=function(){this.cm.toTextArea()},t.setValue=function(e,t){void 0===t&&(t=!0),this.cm.setValue(e),t&&this.moveCursorToEnd(),this.cm.doc.clearHistory(),this.cm.refresh()},t.getValue=function(){return this.cm.getValue("\n")},t.getEditor=function(){return this.cm},t.reset=function(){this.setValue("")},t.getCaretPosition=function(){return this.cm.cursorCoords()},t.addWidget=function(e,t,n,r){r&&(e.ch+=r),this.cm.addWidget(e.end,t,!0,n)},t.replaceSelection=function(e,t){t&&this.cm.setSelection(t.from,t.to),this.cm.replaceSelection(e),this.focus()},t.replaceRelativeOffset=function(e,t,n){var r=this.cm.getCursor(),i={from:{line:r.line,ch:r.ch+t},to:{line:r.line,ch:r.ch+t+n}};this.replaceSelection(e,i)},t.setHeight=function(e){var t=this.getWrapperElement();h()(t,{height:e+"px"})},t.setMinHeight=function(e){var t=this.getWrapperElement();h()(t,{minHeight:e+"px"})},t.setPlaceholder=function(e){e&&this.cm.setOption("placeholder",e)},t.getWrapperElement=function(){return this.cm.getWrapperElement()},t.getCursor=function(e){return this.cm.getCursor(e)},t.moveCursorToEnd=function(){var e=this.getEditor().getDoc(),t=e.lastLine();e.setCursor(t,e.getLine(t).length)},t.moveCursorToStart=function(){var e=this.getEditor().getDoc(),t=e.firstLine();e.setCursor(t,0)},t.scrollTop=function(e){return e&&this.cm.scrollTo(0,e),this.cm.getScrollInfo().top},t.getRange=function(){var e=this.cm.getCursor("from"),t=this.cm.getCursor("to");return{start:{line:e.line,ch:e.ch},end:{line:t.line,ch:t.ch}}},t.on=function(e,t){this.cm.on(e,t)},t.off=function(e,t){this.cm.off(e,t)},e}(),W=V,$=["","","","CANCEL","","","HELP","","BACK_SPACE","TAB","","","CLEAR","ENTER","ENTER_SPECIAL","","","","","PAUSE","CAPS_LOCK","KANA","EISU","JUNJA","FINAL","HANJA","","ESCAPE","CONVERT","NONCONVERT","ACCEPT","MODECHANGE","SPACE","PAGE_UP","PAGE_DOWN","END","HOME","LEFT","UP","RIGHT","DOWN","SELECT","PRINT","EXECUTE","PRINTSCREEN","INSERT","DELETE","","0","1","2","3","4","5","6","7","8","9",":",";","<","=",">","?","AT","A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z","","","CONTEXT_MENU","","SLEEP","NUMPAD0","NUMPAD1","NUMPAD2","NUMPAD3","NUMPAD4","NUMPAD5","NUMPAD6","NUMPAD7","NUMPAD8","NUMPAD9","MULTIPLY","ADD","SEPARATOR","SUBTRACT","DECIMAL","DIVIDE","F1","F2","F3","F4","F5","F6","F7","F8","F9","F10","F11","F12","F13","F14","F15","F16","F17","F18","F19","F20","F21","F22","F23","F24","","","","","","","","","NUM_LOCK","SCROLL_LOCK","WIN_OEM_FJ_JISHO","WIN_OEM_FJ_MASSHOU","WIN_OEM_FJ_TOUROKU","WIN_OEM_FJ_LOYA","WIN_OEM_FJ_ROYA","","","","","","","","","","@","!",'"',"#","$","%","&","_","(",")","*","+","|","-","{","}","~","","","","","VOLUME_MUTE","VOLUME_DOWN","VOLUME_UP","","",";","=",",","-",".","/","`","","","","","","","","","","","","","","","","","","","","","","","","","","","[","\\","]","'","","META","ALTGR","","WIN_ICO_HELP","WIN_ICO_00","","WIN_ICO_CLEAR","","","WIN_OEM_RESET","WIN_OEM_JUMP","WIN_OEM_PA1","WIN_OEM_PA2","WIN_OEM_PA3","WIN_OEM_WSCTRL","WIN_OEM_CUSEL","WIN_OEM_ATTN","WIN_OEM_FINISH","WIN_OEM_COPY","WIN_OEM_AUTO","WIN_OEM_ENLW","WIN_OEM_BACKTAB","ATTN","CRSEL","EXSEL","EREOF","PLAY","ZOOM","","PA1","WIN_OEM_CLEAR",""],z=function(){function e(e){this._setSplitter(e)}var t=e.prototype;return t._setSplitter=function(e){var t=e?e.splitter:"+";this._splitter=t},t.convert=function(e){var t=[];e.shiftKey&&t.push("SHIFT"),e.ctrlKey&&t.push("CTRL"),e.metaKey&&t.push("META"),e.altKey&&t.push("ALT");var n=this._getKeyCodeChar(e.keyCode);return n&&t.push(n),t.join(this._splitter)},t._getKeyCodeChar=function(e){var t=$[e];return t},e.getSharedInstance=function(){return q||(q=new e),q},e.keyCode=function(e){return $.indexOf(e)},e}(),K=z,G=/^[ \t]*([-*]|[\d]+\.)( \[[ xX]])? /,J=/^[ \t]*([*-] |[\d]+\. )(\[[ xX]] )/,Q=/^[ \t]*[-*] .*/,Y=/^[ \t]*[\d]+\. \[[ xX]] .*/,X=/([*-] |[\d]+\. )/,Z=/([-*] |[\d]+\. )(\[[ xX]] )/,ee=/([-*]|[\d]+\.)( \[[ xX]])? /,te=/([-*])( \[[ xX]]) /,ne=/([\d])+\.( \[[ xX]])? /,re=/^\|([-\s\w\d\t<>?!@#$%^&*()_=+\\/'";: \r[\]]*\|+)+/i,ie=/^#+\s/,ae=/^ {0,3}(```|\||>)/,oe=function(){function e(e){this.cm=e.getEditor(),this.doc=this.cm.getDoc(),this.toastMark=e.getToastMark(),this.name="list"}var t=e.prototype;return t._createSortedLineRange=function(e){var t=e.from.line>e.to.line,n={line:t?e.to.line:e.from.line,ch:0},r={line:t?e.from.line:e.to.line,ch:0};return{start:n.line,end:r.line}},t._calculateOrdinalNumber=function(e){for(var t=1,n=e-1;n>=0;n-=1){var r=this._getListDepth(n);if(1===r&&ne.exec(this.doc.getLine(n))){t=parseInt(RegExp.$1,10)+1;break}if(0===r)break}return t},t._isListLine=function(e){return!!G.exec(this.doc.getLine(e))},t._isCanBeList=function(e){var t=this.doc.getLine(e);return!ae.test(t)&&!re.test(t)&&!ie.test(t)},t._getChangeFn=function(e){var t,n=this;switch(e){case"ol":case"ul":t=function(t){return n._changeToList(t,e)};break;case"task":t=function(e){return n._changeToTask(e)};break;default:break}return t},t.changeSyntax=function(e,t){for(var n=[],r=this._createSortedLineRange(e),i=r.start,a=r.end,o=this._getChangeFn(t),s=i;s<=a;s+=1){if(!this._isCanBeList(s))break;this._isListLine(s)||n.push(s),o(s)}this._insertBlankLineForNewList(n),this.cm.focus()},t._replaceLineText=function(e,t){this.doc.replaceRange(e,{line:t,ch:0})},t._changeToList=function(e,t){var n=this;this._isListLine(e)?this._changeSameDepthList(e,"ol"===t?function(e,t){n._replaceListTypeToOL(e,t)}:function(e){n._replaceListTypeToUL(e)}):this._replaceLineText("ol"===t?this._calculateOrdinalNumber(e)+". ":"* ",e)},t._changeToTask=function(e){J.exec(this.doc.getLine(e))?this._replaceLineTextByRegexp(e,Z,"$1"):this._isListLine(e)?this._replaceLineTextByRegexp(e,X,"$1[ ] "):this._replaceLineText("* [ ] ",e)},t._getListDepth=function(e){var t=0,n=this.doc.getLine(e);if(n){var r=this.toastMark.findFirstNodeAtLine(e+1);while(r&&"document"!==r.type)"list"===r.type&&(t+=1),r=r.parent}return t},t._findSameDepthList=function(e,t,n){var r,i=this.doc.lineCount(),a=[],o=e;while(n?o<i-1:o>0)if(o=n?o+1:o-1,r=this._getListDepth(o),r===t)a.push(o);else if(r<t)break;return a},t._changeSameDepthList=function(e,t){var n=this._getListDepth(e),r=this._findSameDepthList(e,n,!1).reverse(),i=this._findSameDepthList(e,n,!0),a=r.concat([e]).concat(i);a.forEach((function(e,n){t(e,n+1)}))},t._replaceLineTextByRegexp=function(e,t,n){var r=this.doc.getLine(e),i={line:e,ch:0},a={line:e,ch:r.length};r=r.replace(t,n),this.doc.replaceRange(r,i,a)},t._replaceListTypeToUL=function(e){var t=this.doc.getLine(e);te.exec(t)?this._replaceLineTextByRegexp(e,te,"$1 "):ne.exec(t)&&this._replaceLineTextByRegexp(e,ne,"* ")},t._replaceListTypeToOL=function(e,t){var n=this.doc.getLine(e);Q.exec(n)||Y.exec(n)?this._replaceLineTextByRegexp(e,ee,t+". "):ne.exec(n)&&parseInt(RegExp.$1,10)!==t&&this._replaceLineTextByRegexp(e,ne,t+". ")},t._insertBlankLineForNewList=function(e){var t=e.length;if(t){var n=e[0],r=e[t-1];this._isNotBlankNotListLine(r+1)&&this.doc.replaceRange("\n",{line:r,ch:this.doc.getLine(r).length}),n>0&&this._isNotBlankNotListLine(n-1)&&this.doc.replaceRange("\n",{line:n,ch:0})}},t._isNotBlankNotListLine=function(e){return!!this.doc.getLine(e)&&!this._isListLine(e)},e}(),se=oe,le=function(){function e(e){this._managers={},this._editor=e}var t=e.prototype;return t.addManager=function(e,t){t||(t=e,e=null);var n=new t(this._editor);this._managers[e||n.name]=n},t.getManager=function(e){return this._managers[e]},t.removeManager=function(e){var t=this.getManager(e);t&&(t.destroy&&t.destroy(),delete this._managers[e])},e}(),ce=le,ue=function(){function e(e,t){this._mde=e,this.setRange(t||e.getRange())}var t=e.prototype;return t._setStart=function(e){this._start=e},t._setEnd=function(e){this._end=e},t.setRange=function(e){this._setStart(e.start),this._setEnd(e.end)},t.setEndBeforeRange=function(e){this._setEnd(e.start)},t.expandStartOffset=function(){var e=this._start;0!==e.ch&&(e.ch-=1)},t.expandEndOffset=function(){var e=this._end;e.ch<this._mde.getEditor().getDoc().getLine(e.line).length&&(e.ch+=1)},t.getTextContent=function(){return this._mde.getEditor().getRange(this._start,this._end)},t.replaceContent=function(e){this._mde.getEditor().replaceRange(e,this._start,this._end,"+input")},t.deleteContent=function(){this._mde.getEditor().replaceRange("",this._start,this._end,"+delete")},t.peekStartBeforeOffset=function(e){var t={line:this._start.line,ch:Math.max(this._start.ch-e,0)};return this._mde.getEditor().getRange(t,this._start)},e}(),de=ue,he=n(4),fe=n(27),pe=n.n(fe);function ge(){return ge=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ge.apply(this,arguments)}var me="tui-md-",ve=_e({DELIM:"delimiter",META:"meta",TEXT:"marked-text",THEMATIC_BREAK:"thematic-break",CODE_BLOCK:"code-block",TABLE:"table",HTML:"html"}),ye={strong:2,emph:1,strike:2};function be(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.map((function(e){return""+me+e})).join(" ")}function _e(e){return i()(e,(function(t,n){e[n]=be(t)})),e}function we(e,t,n){return{start:e,end:t,className:n}}function Ce(e,t,n){var r=e.level,i=e.headingType,a=[we(t,n,be("heading","heading"+r))];return"atx"===i?a.push(we(t,Object(he["a"])(t,r),ve.DELIM)):a.push(we(Object(he["l"])(n,0),n,ve.DELIM+" setext")),{marks:a}}function Ee(e,t,n){var r=e.type;return{marks:[we(t,n,be(""+r)),we(t,Object(he["a"])(t,ye[r]),ve.DELIM),we(Object(he["a"])(n,-ye[r]),n,ve.DELIM)]}}function Se(e,t,n,r){return[we(e,t,be("link")),we(n,Object(he["l"])(t,r),be("link-desc")),we(Object(he["l"])(e,n.ch+1),Object(he["l"])(t,r-1),ve.TEXT),we(Object(he["l"])(t,r),t,be("link-url")),we(Object(he["l"])(t,r+1),Object(he["a"])(t,-1),ve.TEXT)]}function Te(e,t,n){var r=e.lastChild,i=r?Object(he["c"])(r)+1:3,a=Object(he["a"])(t,1);return{marks:[we(t,a,ve.META)].concat(Se(t,n,a,i))}}function ke(e,t,n){var r=e.lastChild,i=e.extendedAutolink,a=r?Object(he["c"])(r)+1:2,o=i?[we(t,n,be("link","link-desc")+" "+ve.TEXT)]:Se(t,n,t,a);return{marks:o}}function Ne(e,t,n){var r=e.tickCount,i=Object(he["a"])(t,r),a=Object(he["a"])(n,-r);return{marks:[we(t,n,be("code")),we(t,i,ve.DELIM+" start"),we(i,a,ve.TEXT),we(a,n,ve.DELIM+" end")]}}function xe(e,t,n,r){var i=e.fenceOffset,a=e.fenceLength,o=e.fenceChar,s=e.info,l=e.infoPadding,c=e.parent,u=i+a,d=[we(Object(he["l"])(t,0),n,ve.CODE_BLOCK)];o&&d.push(we(t,Object(he["a"])(t,u),ve.DELIM)),s&&d.push(we(Object(he["l"])(t,u),Object(he["l"])(t,u+l+s.length),ve.META));var h="^(\\s{0,3})("+o+"{"+a+",})",f=new RegExp(h);f.test(r)&&d.push(we(Object(he["l"])(n,0),n,ve.DELIM));var p="item"!==c.type&&"blockQuote"!==c.type?{start:t.line,end:n.line,className:ve.CODE_BLOCK}:null;return{marks:d,lineBackground:ge({},p)}}function Le(e,t){var n=[];while(e){var r=e,i=r.type;"paragraph"!==i&&"codeBlock"!==i||n.push(we({line:Object(he["f"])(e)-1,ch:Object(he["e"])(e)-1},{line:Object(he["d"])(e)-1,ch:Object(he["c"])(e)},t)),e=e.next}return n}function Oe(e){var t=[];while(e)t.push(we({line:Object(he["f"])(e)-1,ch:Object(he["e"])(e)-1},{line:Object(he["d"])(e)-1,ch:Object(he["c"])(e)},ve.TEXT)),e=e.next;return t}function Me(e,t,n){var r=e.parent&&"blockQuote"!==e.parent.type?[we(t,n,be("block-quote"))]:[];if(e.firstChild){var i=[];"paragraph"===e.firstChild.type?i=Oe(e.firstChild.firstChild,ve.TEXT):"list"===e.firstChild.type&&(i=Le(e.firstChild,ve.TEXT)),r=[].concat(r,i)}return{marks:r}}function Ae(e){var t=0;while(e.parent.parent&&"item"===e.parent.parent.type)e=e.parent.parent,t+=1;var n=["list-item-odd","list-item-even"][t%2],r=["fisrt","second","third"][t%3];return be("list-item",""+n)+" "+r}function De(e,t){var n=Ae(e),r=e.listData,i=r.padding,a=r.task;return{marks:[we(t,Object(he["a"])(t,i),n+" "+be("list-item-bullet"))].concat(a?[we(Object(he["a"])(t,i),Object(he["a"])(t,i+3),n+" "+ve.DELIM),we(Object(he["a"])(t,i+1),Object(he["a"])(t,i+2),ve.META)]:[],Le(e.firstChild,n+" "+ve.TEXT))}}var Be={heading:Ce,strong:Ee,emph:Ee,strike:Ee,link:ke,image:Te,code:Ne,codeBlock:xe,blockQuote:Me,item:De},Ie={thematicBreak:ve.THEMATIC_BREAK,table:ve.TABLE,tableCell:ve.TEXT,htmlInline:ve.HTML};function Re(e,t,n,r){var i=e.type;return pe()(Be[i])?Be[i](e,t,n,r):Ie[i]?{marks:[we(t,n,Ie[i])]}:null}function Pe(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Fe(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function He(){return He=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},He.apply(this,arguments)}var je=K.getSharedInstance(),Ue={strong:!1,emph:!1,strike:!1,thematicBreak:!1,blockQuote:!1,code:!1,codeBlock:!1,list:!1,taskList:!1,orderedList:!1,heading:!1,table:!1};function qe(e){var t=e.type,n=e.listData;return"list"===t||"item"===t?n.task?"taskList":"ordered"===n.type?"orderedList":"list":-1!==t.indexOf("table")?"table":t}function Ve(e,t,n,r){var i=He({},Ue),a=!1;return Object(he["m"])(e,(function(e){var t=qe(e);C()(i[t])&&("list"===t||"orderedList"===t?a||(i[t]=!0,a=!0):i[t]=!0)})),Object(he["k"])(e)&&(r===t&&Object(he["d"])(e)===n||r===Object(he["c"])(e)+1&&n===Object(he["d"])(e)||r===Object(he["e"])(e)&&n===Object(he["f"])(e))&&(i[e.type]=!1),i}function We(e,t){return!(!e&&!t)&&(!!(!e&&t||e&&!t)||Object.keys(t).some((function(n){return e[n]!==t[n]})))}var $e="data-tui-mark",ze=function(e){function t(t,n,r,i){var a;return a=e.call(this,t,{dragDrop:!0,allowDropFileTypes:["image"],extraKeys:{Enter:"newlineAndIndentContinueMarkdownList",Tab:"indentOrderedList","Shift-Tab":"indentLessOrderedList"},viewportMargin:i&&"auto"===i.height?1/0:10})||this,a.eventManager=n,a.componentManager=new ce(Pe(a)),a.toastMark=r,a.componentManager.addManager(se),a._latestState=null,a._markedLines={},a._initEvent(),a}Fe(t,e);var n=t.prototype;return n._initEvent=function(){var e=this;this.cm.getWrapperElement().addEventListener("click",(function(){e.eventManager.emit("click",{source:"markdown"})})),this.cm.on("beforeChange",(function(t,n){"paste"===n.origin&&e.eventManager.emit("pasteBefore",{source:"markdown",data:n})})),this.cm.on("change",(function(t,n){e._refreshCodeMirrorMarks(n),e._emitMarkdownEditorChangeEvent(n)})),this.cm.on("focus",(function(){e.eventManager.emit("focus",{source:"markdown"})})),this.cm.on("blur",(function(){e.eventManager.emit("blur",{source:"markdown"})})),this.cm.on("scroll",(function(t,n){e.eventManager.emit("scroll",{source:"markdown",data:n})})),this.cm.on("keydown",(function(t,n){e.eventManager.emit("keydown",{source:"markdown",data:n}),e.eventManager.emit("keyMap",{source:"markdown",keyMap:je.convert(n),data:n})})),this.cm.on("keyup",(function(t,n){e.eventManager.emit("keyup",{source:"markdown",data:n})})),this.cm.on("copy",(function(t,n){e.eventManager.emit("copy",{source:"markdown",data:n})})),this.cm.on("cut",(function(t,n){e.eventManager.emit("cut",{source:"markdown",data:n})})),this.cm.on("paste",(function(t,n){e.eventManager.emit("paste",{source:"markdown",data:n})})),this.cm.on("drop",(function(t,n){n.preventDefault(),e.eventManager.emit("drop",{source:"markdown",data:n})})),this.cm.on("cursorActivity",(function(){return e._onChangeCursorActivity()}))},n.setValue=function(t,n){e.prototype.setValue.call(this,t,n)},n.getTextObject=function(e){return new de(this,e)},n._emitMarkdownEditorContentChangedEvent=function(e){this.eventManager.emit("contentChangedFromMarkdown",e)},n._emitMarkdownEditorChangeEvent=function(e){if("setValue"!==e.origin){var t={source:"markdown"};this.eventManager.emit("changeFromMarkdown",t),this.eventManager.emit("change",t)}},n._refreshCodeMirrorMarks=function(e){var t=this,n=e.from,r=e.to,i=e.text,a=this.toastMark.editMarkdown([n.line+1,n.ch+1],[r.line+1,r.ch+1],i.join("\n"));this._emitMarkdownEditorContentChangedEvent(a),a.length&&a.forEach((function(e){return t._markNodes(e)}))},n._markNodes=function(e){var t=e.nodes,n=e.removedNodeRange;if(n&&this._removeBackgroundOfLines(n),t.length){var r=t[0].sourcepos,i=r[0],a=t[t.length-1].sourcepos,o=a[1],s={line:i[0]-1,ch:i[1]-1},l={line:o[0]-1,ch:o[1]},c=this.cm.findMarks(s,l),u=c,d=Array.isArray(u),h=0;for(u=d?u:u[Symbol.iterator]();;){var f;if(d){if(h>=u.length)break;f=u[h++]}else{if(h=u.next(),h.done)break;f=h.value}var p=f;p.attributes&&$e in p.attributes&&p.clear()}var g=t,m=Array.isArray(g),v=0;for(g=m?g:g[Symbol.iterator]();;){var y;if(m){if(v>=g.length)break;y=g[v++]}else{if(v=g.next(),v.done)break;y=v.value}var b=y,_=b.walker(),w=_.next();while(w){var C=w,E=C.node,S=C.entering;S&&this._markNode(E),w=_.next()}}}},n._removeBackgroundOfLines=function(e){for(var t=e.line,n=t[0],r=t[1],i=n;i<=r;i+=1)this._markedLines[i]&&(this.cm.removeLineClass(i,"background"),this._markedLines[i]=!1)},n._markCodeBlockBackground=function(e){for(var t=e.start,n=e.end,r=e.className,i=t;i<=n;i+=1){var a=r;i===t?a+=" start":i===n&&(a+=" end"),this.cm.addLineClass(i,"background",a),this._markedLines[i]=!0}},n._markNode=function(e){var t=this,n={line:Object(he["f"])(e)-1,ch:Object(he["e"])(e)-1},r={line:Object(he["d"])(e)-1,ch:Object(he["c"])(e)},i=Re(e,n,r,this.cm.getLine(r.line));if(i){var a=i.marks,o=void 0===a?[]:a,s=i.lineBackground,l=void 0===s?{}:s;o.forEach((function(e){var n,r=e.start,i=e.end,a=e.className,o=(n={},n[$e]="",n);t.cm.markText(r,i,{className:a,attributes:o})})),this._markCodeBlockBackground(l)}},n._setToolbarState=function(e){if(We(this._latestState,e)){var t=He({source:"markdown"},e||Ue);this.eventManager.emit("stateChange",t)}this._latestState=e},n._onChangeCursorActivity=function(){var e=this.cm.getCursor(),t=e.line,n=e.ch,r=t+1,i=this.cm.getLine(t).length===n?n:n+1,a=this.toastMark.findNodeAtPosition([r,i]),o=null;this.cm.state.isCursorInCodeBlock=a&&"codeBlock"===a.type,this.eventManager.emit("cursorActivity",{source:"markdown",cursor:{line:t,ch:n},markdownNode:a}),a&&(a="text"===a.type?a.parent:a,o=Ve(a,n,r,i)),this._setToolbarState(o)},n.resetState=function(){this._latestState=null},n.getToastMark=function(){return this.toastMark},t.factory=function(e,n,r,i){return new t(e,n,r,i)},t}(W),Ke=ze,Ge=n(35),Je=n(2),Qe=n.n(Je),Ye=n(21),Xe=n.n(Ye),Ze=n(8),et=n.n(Ze),tt=n(17),nt=n.n(tt),rt=n(11),it=n.n(rt),at=n(47),ot=n.n(at),st=n(19),lt=n.n(st),ct=n(20),ut=n.n(ct),dt=n(0),ht=n(13),ft=n.n(ht),pt=n(25),gt="rgb(34, 34, 34)",mt=function(){function e(e){this.wwe=e}var t=e.prototype;return t.preparePaste=function(e){var t,n,r,i=this.wwe.getEditor().getSelection().cloneRange(),a=this.wwe.componentManager.getManager("codeblock"),o=!1,s=document.createElement("div");this._pasteFirstAid(e);var l=Qe()(e.childNodes);while(l.length)n=l[0],t=dt["a"].getNodeName(n),r="LI"===t||"UL"===t||"OL"===t,a.isInCodeBlock(i)?dt["a"].append(s,a.prepareToPasteOnCodeblock(l)):r?(dt["a"].append(s,this._prepareToPasteList(l,i,o)),o=!0):dt["a"].append(s,l.shift());e.innerHTML=s.innerHTML},t._wrapOrphanNodeWithDiv=function(e){var t,n=document.createElement("div");return Qe()(e.childNodes).forEach((function(e){var r=3===e.nodeType,i=/^(SPAN|A|CODE|EM|I|STRONG|B|S|U|ABBR|ACRONYM|CITE|DFN|KBD|SAMP|VAR|BDO|Q|SUB|SUP)$/gi.test(e.tagName),a="BR"===e.nodeName;r||i||a?(t||(t=document.createElement("div"),n.appendChild(t)),t.appendChild(e),a&&(t=null)):(t&&"BR"!==t.lastChild.tagName&&t.appendChild(document.createElement("br")),t=null,n.appendChild(e))})),n.innerHTML},t._sanitizeHtml=function(e){var t=this.wwe.getSanitizer(),n=Object(pt["a"])(e.innerHTML,!0);t&&t!==pt["a"]&&(n=t(n)),e.innerHTML=n},t._pasteFirstAid=function(e){var t=this;this._sanitizeHtml(e),dt["a"].findAll(e,"*").forEach((function(e){t._removeStyles(e)}));var n="div, section, article, aside, nav, menus, p";this._unwrapIfNonBlockElementHasBr(e),this._unwrapNestedBlocks(e,n),this._removeUnnecessaryBlocks(e,n),e.innerHTML=this._wrapOrphanNodeWithDiv(e),this._preElementAid(e),this._tableElementAid(e),Qe()(e.children).forEach((function(e){"BR"===dt["a"].getNodeName(e)&&dt["a"].remove(e)}))},t._preElementAid=function(e){var t=this.wwe.componentManager.getManager("codeblock");t.modifyCodeBlockForWysiwyg(e)},t._unwrapIfNonBlockElementHasBr=function(e){var t=dt["a"].findAll(e,"span, a, b, em, i, s");t.forEach((function(e){var t=dt["a"].children(e,"br");t.length&&"LI"!==e.nodeName&&"UL"!==e.nodeName&&dt["a"].unwrap(e)}))},t._unwrapNestedBlocks=function(e,t){var n=dt["a"].findAll(e,"*").filter((function(e){return!ft()(e,"b,s,i,em,code,span,hr")&&!e.firstChild}));n.forEach((function(n){var r="BR"===n.nodeName?n.parentNode:n;while(dt["a"].parents(r,t).length){var i=dt["a"].parent(r,t);i&&i!==e?dt["a"].unwrap(i):r=r.parentElement}}))},t._removeUnnecessaryBlocks=function(e,t){dt["a"].findAll(e,t).forEach((function(e){var n=e.tagName,r="DIV"===n,i=!!dt["a"].parent(e,"li"),a=!!dt["a"].parent(e,"blockquote"),o=!!dt["a"].children(e,t).length;r&&(i||a||!o)||(e.lastChild&&"BR"!==e.lastChild.nodeName&&e.appendChild(document.createElement("br")),dt["a"].replaceWith(e,e.innerHTML))}))},t._removeStyles=function(e){var t;"SPAN"!==dt["a"].getNodeName(e)?e.removeAttribute("style"):(e.getAttribute("style")&&(t=e.style.color),e.removeAttribute("style"),t&&t!==gt?h()(e,{color:t}):dt["a"].unwrap(e))},t._prepareToPasteList=function(e,t,n){var r=dt["a"].getNodeName(e[0]),i=e.shift(),a=this.wwe.getEditor().getDocument().createDocumentFragment();if("LI"!==r&&e.length&&"LI"===e[0].tagName&&(r="LI",i=this._makeNodeAndAppend({tagName:r},i)),"OL"===r||"UL"===r)!n&&this.wwe.getEditor().hasFormat("LI")?dt["a"].append(a,this._wrapCurrentFormat(i)):a.appendChild(i);else if("LI"===r){var o=this.wwe.getEditor().getDocument().createDocumentFragment();o.appendChild(i);while(e.length&&"LI"===e[0].tagName)o.appendChild(e.shift());!n&&this.wwe.getEditor().hasFormat("LI")?dt["a"].append(a,this._wrapCurrentFormat(o)):!t||"UL"!==t.commonAncestorName&&"OL"!==t.commonAncestorName?dt["a"].append(a,this._makeNodeAndAppend({tagName:"UL"},o)):dt["a"].append(a,this._makeNodeAndAppend({tagName:t.commonAncestorName},o))}return a},t._unwrapFragmentFirstChildForPasteAsInline=function(e){return dt["a"].findAll(e,"br").forEach((function(e){return dt["a"].remove(e)})),e.childNodes},t._wrapCurrentFormat=function(e){var t,n=this;return this._eachCurrentPath((function(r){"DIV"!==r.tagName&&(t=dt["a"].isElemNode(e)?e.tagName:e.firstChild.tagName,r.tagName!==t&&(e=n._makeNodeAndAppend(r,e)))})),e},t._eachCurrentPath=function(e){for(var t=dt["a"].getPath(this.wwe.getEditor().getSelection().startContainer,this.wwe.getBody()),n=t.length-1;n>-1;n-=1)e(t[n])},t._makeNodeAndAppend=function(e,t){var n=document.createElement(""+e.tagName);return n.appendChild(t),e.id&&n.setAttribute("id",e.id),e.className&&p()(n,e.className),n},t._tableElementAid=function(e){this._removeColgroup(e),this._completeTableIfNeed(e),this._updateTableIDClassName(e)},t._removeColgroup=function(e){var t=e.querySelector("colgroup");t&&dt["a"].remove(t)},t._completeTableIfNeed=function(e){var t=this.wwe.componentManager.getManager("table"),n=t.wrapDanglingTableCellsIntoTrIfNeed(e);n&&dt["a"].append(e,n);var r=t.wrapTrsIntoTbodyIfNeed(e);r&&dt["a"].append(e,r);var i=t.wrapTheadAndTbodyIntoTableIfNeed(e);i&&dt["a"].append(e,i)},t._updateTableIDClassName=function(e){var t=this.wwe.componentManager.getManager("table"),n=dt["a"].findAll(e,"table");n.forEach((function(e){var t=e.className.match(/.*\s*(te-content-table-\d+)\s*.*/);t&&m()(e,t[0])})),n.forEach((function(e){p()(e,t.getTableIDClassName())}))},e}(),vt=mt,yt=function(){function e(e){this.wwe=e}var t=e.prototype;return t.pasteClipboard=function(e){var t=e.clipboardData||window.clipboardData,n=t&&t.items;n?(this._pasteClipboardItem(n),e.preventDefault()):(this._pasteClipboardUsingPasteArea(),e.squirePrevented=!0)},t._pasteClipboardUsingPasteArea=function(){var e=this,t=this.wwe.getEditor(),n=t.getSelection(),r=n.startContainer,i=n.startOffset,a=n.endContainer,o=n.endOffset,s=document.createElement("div"),l=document,c=l.body;s.setAttribute("contenteditable",!0),s.setAttribute("style","position:fixed; overflow:hidden; top:0; right:100%; width:1px; height:1px;"),c.appendChild(s),n.selectNodeContents(s),t.setSelection(n),setTimeout((function(){var l=c.removeChild(s);n.setStart(r,i),n.setEnd(a,o),t.focus(),t.setSelection(n),e._pasteClipboardHtml(l.innerHTML)}))},t._pasteClipboardItem=function(e){var t=this,n=null,r=null;Qe()(e).forEach((function(e){"text/html"===e.type?r=e:"text/plain"===e.type&&(n=e)})),r?r.getAsString((function(e){t._pasteClipboardHtml(e)})):n&&n.getAsString((function(e){t._pasteClipboardContainer(document.createTextNode(e))}))},t._getSanitizedHtml=function(e){var t=this.wwe.getSanitizer();e=Object(pt["a"])(e,!0),t&&t!==pt["a"]&&(e=t(e));var n=document.createElement("div");return n.innerHTML=e,dt["a"].finalizeHtml(n)},t._pasteClipboardHtml=function(e){var t=document.createDocumentFragment(),n="\x3c!--StartFragment--\x3e",r="\x3c!--EndFragment--\x3e",i=e.indexOf(n),a=e.lastIndexOf(r);i>-1&&a>-1&&(e=e.slice(i+n.length,a)),/<\/td>((?!<\/tr>)[\s\S])*$/i.test(e)&&(e="<TR>"+e+"</TR>"),/<\/tr>((?!<\/table>)[\s\S])*$/i.test(e)&&(e="<TABLE>"+e+"</TABLE>"),t.appendChild(this._getSanitizedHtml(e)),this._pasteClipboardContainer(t)},t._pasteClipboardContainer=function(e){var t=this.wwe.getEditor(),n=e.childNodes,r=1===n.length&&"TABLE"===n[0].nodeName;if(r){var i=this.wwe.componentManager.getManager("table");i.pasteTableData(e)}else{var a=t.getSelection().cloneRange(),o=this._preparePasteDocumentFragment(e);t.saveUndoState(a),a.collapsed||this._deleteContentsRange(a),dt["a"].isTextNode(a.startContainer)?this._pasteIntoTextNode(a,o):this._pasteIntoElements(a,o),t.setSelection(a)}},t._preparePasteDocumentFragment=function(e){var t=e.childNodes,n=document.createDocumentFragment();return t.length?n.appendChild(this._unwrapBlock(e)):this._isPossibleInsertToTable(e)&&n.appendChild(e),n},t._unwrapBlock=function(e){var t=document.createDocumentFragment(),n=Qe()(e.childNodes);while(n.length){var r=n.shift();if(this._isPossibleInsertToTable(r))t.appendChild(r);else{t.appendChild(this._unwrapBlock(r));var i=t.lastChild;n.length&&i&&"BR"!==i.nodeName&&t.appendChild(document.createElement("br"))}}return t},t._isPossibleInsertToTable=function(e){var t=e.nodeName,n="CODE"===t&&e.childNodes.length>1,r="UL"===t||"OL"===t;return!n&&(r||dt["a"].isMDSupportInlineNode(e)||dt["a"].isTextNode(e))},t._pasteIntoElements=function(e,t){var n=e.startContainer,r=e.startOffset,i=dt["a"].getChildNodeByOffset(n,r);if(i)n.insertBefore(t,i),e.setStart(i,0);else if("TD"===n.nodeName)n.appendChild(t),e.setStart(n,n.childNodes.length);else{var a=n.parentNode,o=n.nextSibling;a.insertBefore(t,o),o?e.setStart(o,0):e.setStartAfter(a.lastChild)}e.collapse(!0)},t._pasteIntoTextNode=function(e,t){var n=e.startContainer,r=e.startOffset,i=n.parentNode,a=n.textContent,o=a.slice(0,r),s=a.slice(r,a.length),l=t.childNodes,c=l[0],u=1===l.length&&dt["a"].isTextNode(c);if(o)if(s)if(u){var d=c.textContent;n.textContent=""+o+d+s,e.setStart(n,o.length+d.length)}else{var h=document.createDocumentFragment();h.appendChild(document.createTextNode(o)),h.appendChild(t),h.appendChild(document.createTextNode(s)),i.replaceChild(h,n);var f=Qe()(i.childNodes),p=0;f.forEach((function(e,t){e.textContent===s&&(p=t)})),e.setStart(i.childNodes[p],0)}else{var g=n.nextSibling;i.insertBefore(t,g),e.setStartAfter(g)}else i.insertBefore(t,n),e.setStart(n,0);e.collapse(!0)},t._deleteContentsRange=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset;t===r?(this._deleteContentsByOffset(t,n,i),e.setStart(t,n),e.collapse(!0)):this._deleteNotCollapsedRangeContents(e)},t._deleteNotCollapsedRangeContents=function(e){var t=e.startContainer,n=e.startOffset,r=e.endContainer,i=e.endOffset,a=e.commonAncestorContainer,o=this._getBlock(t,a,n),s=this._getBlock(r,a,i-1);if(o===s)this._removeInSameBlock(o,t,r,n,i),s=r!==s?null:s;else{var l=o.nextSibling;"TD"===t.nodeName?l=this._removeOneLine(o):(this._deleteContentsByOffset(t,n,dt["a"].getOffsetLength(t)),dt["a"].removeNodesByDirection(o,t,!1)),"TD"===r.nodeName?s=this._removeOneLine(s):(this._deleteContentsByOffset(r,0,i),dt["a"].removeNodesByDirection(s,r,!0)),dt["a"].removeChildFromStartToEndNode(a,l,s)}s?e.setStart(s,0):e.setStartAfter(o),e.collapse(!0)},t._removeInSameBlock=function(e,t,n,r,i){var a=t===e?r:0,o=n===e?i:dt["a"].getOffsetLength(e);this._deleteContentsByOffset(e,a,o)},t._removeOneLine=function(e){var t=e.nextSibling,n=e.parentNode,r=t;return n.removeChild(e),t&&"BR"===t.nodeName&&(r=t.nextSibling,n.removeChild(t)),r},t._getBlock=function(e,t,n){return dt["a"].getParentUntil(e,t)||dt["a"].getChildNodeByOffset(e,n)},t._deleteContentsByOffset=function(e,t,n){if(dt["a"].isTextNode(e)){var r=e.textContent,i=r.slice(0,t),a=r.slice(n,r.length);e.textContent=""+i+a}else{var o=dt["a"].getChildNodeByOffset(e,t),s=dt["a"].getChildNodeByOffset(e,n);o&&dt["a"].removeChildFromStartToEndNode(e,o,s||null)}},e}(),bt=yt,_t="tui-paste-table-bookmark",wt="tui-paste-table-cell-bookmark",Ct=function(){function e(e){this.wwe=e,this._pch=new vt(this.wwe),this._tablePasteHelper=new bt(this.wwe),this._selectedSellCount=0,this._clipboardArea=null}var t=e.prototype;return t.init=function(){var e=this;this.wwe.eventManager.listen("willPaste",(function(t){return e._executeHandler(e._onWillPaste.bind(e),t)})),this.wwe.eventManager.listen("copy",(function(t){return e._executeHandler(e._onCopyCut.bind(e),t)})),this.wwe.eventManager.listen("copyAfter",(function(t){return e._executeHandler(e._onCopyAfter.bind(e),t)})),this.wwe.eventManager.listen("cut",(function(t){return e._executeHandler(e._onCopyCut.bind(e),t)})),this.wwe.eventManager.listen("cutAfter",(function(t){return e._executeHandler(e._onCutAfter.bind(e),t)})),this.wwe.eventManager.listen("paste",(function(t){return e._executeHandler(e._onPasteIntoTable.bind(e),t)}))},t._executeHandler=function(e,t){"wysiwyg"===t.source&&e(t)},t._onCopyCut=function(e){var t=this.wwe.componentManager.getManager("tableSelection"),n=t.getSelectedCells().length;if(n)if(t.mergedTableSelectionManager){var r=this.wwe.getEditor(),i=e.data,a=r.getSelection().cloneRange(),o=document.createElement("div");this._extendRange(a),o.innerHTML=a.cloneContents(),this._updateCopyDataForListTypeIfNeed(a,o),this.wwe.eventManager.emit("copyBefore",{source:"wysiwyg",clipboardContainer:o}),this._setClipboardData(i,o.innerHTML,o.textContent)}else t.createRangeBySelectedCells()},t._clearClipboardArea=function(){this._clipboardArea&&(dt["a"].remove(this._clipboardArea),this._clipboardArea=null)},t._onCopyAfter=function(){this.wwe.getEditor().getBody().focus(),this._clearClipboardArea()},t._onCutAfter=function(){var e=this.wwe.getEditor().getSelection();e.deleteContents(),this.wwe.getEditor().focus(),this._clearClipboardArea()},t._onPasteIntoTable=function(e){var t=e.data,n=this.wwe.getEditor().getSelection();this.wwe.isInTable(n)&&this._isSingleCellSelected(n)&&this._tablePasteHelper.pasteClipboard(t)},t._isSingleCellSelected=function(e){var t=e.startContainer,n=e.endContainer;return this._getCell(t)===this._getCell(n)},t._getCell=function(e){return"TD"===e.nodeName?e:dt["a"].getParentUntil(e,"TR")},t._replaceNewLineToBr=function(e){var t=dt["a"].getAllTextNode(e);t.forEach((function(e){/\n/.test(e.nodeValue)&&(e.parentNode.innerHTML=e.nodeValue.replace(/\n/g,"<br>"))}))},t._onWillPaste=function(e){var t=this,n=e.data,r=document.createElement("div");r.appendChild(n.fragment.cloneNode(!0)),this._preparePaste(r),this._setTableBookmark(r),n.fragment=document.createDocumentFragment(),Qe()(r.childNodes).forEach((function(e){"DIV"===dt["a"].getNodeName(e)&&t._replaceNewLineToBr(e),n.fragment.appendChild(e)}));var i=function e(){t.wwe.getEditor().removeEventListener("input",e),t.wwe.eventManager.emit("wysiwygRangeChangeAfter",t),t._focusTableBookmark()};this.wwe.getEditor().addEventListener("input",i)},t._setClipboardData=function(e,t,n){it.a.msie?(e.squirePrevented=!0,this._clipboardArea=this._createClipboardArea(),this._clipboardArea.innerHTML=t,this._clipboardArea.focus(),window.getSelection().selectAllChildren(this._clipboardArea)):(e.preventDefault(),e.stopPropagation(),e.clipboardData.setData("text/html",t),e.clipboardData.setData("text/plain",n))},t._createClipboardArea=function(){var e=document.createElement("div");return e.setAttribute("contenteditable",!0),h()(e,{position:"fixed",overflow:"hidden",top:0,right:"100%",width:"1px",height:"1px"}),document.body.appendChild(e),e},t._updateCopyDataForListTypeIfNeed=function(e,t){var n=e.commonAncestorContainer.nodeName;if("UL"===n||"OL"===n){var r=document.createElement(n);r.appendChild(t),t.innerHTML="",t.appendChild(r)}},t._removeEmptyFontElement=function(e){var t=dt["a"].children(e,"font");t.forEach((function(e){e.textContent.trim()||dt["a"].remove(e)}))},t._isFromMs=function(e){return/<p style="[^>]*mso-/.test(e)},t._preProcessPtag=function(e){dt["a"].findAll(e,"p").forEach((function(e){e.lastChild&&"BR"!==e.lastChild.nodeName&&e.appendChild(document.createElement("br")),e.appendChild(document.createElement("br"))}))},t._preparePaste=function(e){this._isFromMs(e.innerText)||this._preProcessPtag(e),this._removeEmptyFontElement(e),this._pch.preparePaste(e),this.wwe.eventManager.emit("pasteBefore",{source:"wysiwyg",clipboardContainer:e})},t._setTableBookmark=function(e){var t=e.lastChild,n=t&&"TABLE"===t.nodeName;n&&p()(t,_t)},t._focusTableBookmark=function(){var e=this.wwe.getEditor(),t=e.getSelection().cloneRange(),n=e.getBody().querySelector("."+_t),r=e.getBody().querySelector("."+wt);n&&(m()(n,_t),t.setEndAfter(n),t.collapse(!1),e.setSelection(t)),r&&(m()(r,wt),t.selectNodeContents(r),t.collapse(!1),e.setSelection(t))},t._extendRange=function(e){(!dt["a"].isTextNode(e.commonAncestorContainer)||0===e.startOffset&&e.commonAncestorContainer.textContent.length===e.endOffset||"TD"===e.commonAncestorContainer.nodeName)&&(0===e.startOffset&&(e=this._extendStartRange(e)),e.endOffset===dt["a"].getOffsetLength(e.endContainer)&&(e=this._extendEndRange(e)),this._isWholeCommonAncestorContainerSelected(e)&&e.selectNode(e.commonAncestorContainer),this.wwe.getEditor().setSelection(e))},t._extendStartRange=function(e){var t=e.startContainer;while(t.parentNode!==e.commonAncestorContainer&&t.parentNode!==this.wwe.getBody()&&!t.previousSibling)t=t.parentNode;return e.setStart(t.parentNode,dt["a"].getNodeOffsetOfParent(t)),e},t._extendEndRange=function(e){var t=e.endContainer,n=t.nextSibling;while(t.parentNode!==e.commonAncestorContainer&&t.parentNode!==this.wwe.getBody()&&(!n||"BR"===dt["a"].getNodeName(n)&&t.parentNode.lastChild===n))t=t.parentNode,n=t.nextSibling;return e.setEnd(t.parentNode,dt["a"].getNodeOffsetOfParent(t)+1),e},t._isWholeCommonAncestorContainerSelected=function(e){return e.commonAncestorContainer.nodeType===Node.ELEMENT_NODE&&e.commonAncestorContainer!==this.wwe.getBody()&&0===e.startOffset&&e.endOffset===e.commonAncestorContainer.childNodes.length&&e.commonAncestorContainer===e.startContainer&&e.commonAncestorContainer===e.endContainer},e}(),Et=Ct,St=/<li/i,Tt="DIV,LI",kt="OL,UL",Nt=/(<(?:th|td)[^>]*>)(.*?)(<\/(?:th|td)>)/g,xt=/<(ul|ol|li)([^>]*)>/g,Lt=function(){function e(e){this.wwe=e,this.eventManager=e.eventManager,this.name="list",this._init()}var t=e.prototype;return t._init=function(){this._initEvent(),this._initKeyHandler()},t._initEvent=function(){var e=this;this.eventManager.listen("wysiwygSetValueBefore",(function(t){return e._convertToArbitraryNestingList(t)})),this.eventManager.listen("wysiwygRangeChangeAfter",(function(){e._findAndRemoveEmptyList(),e._removeBranchListAll()})),this.eventManager.listen("wysiwygSetValueAfter",(function(){e._removeBranchListAll()})),this.eventManager.listen("wysiwygProcessHTMLText",(function(t){return t=e._convertFromArbitraryNestingList(t),t})),this.eventManager.listen("convertorBeforeHtmlToMarkdownConverted",(function(t){return e._insertDataToMarkPassForListInTable(t)}))},t._initKeyHandler=function(){var e=this;this.wwe.addKeyEventHandler(["TAB","CTRL+]","META+]"],(function(t){var n;return e.wwe.getEditor().hasFormat("LI")&&(t.preventDefault(),e.eventManager.emit("command","Indent"),n=!1),n})),this.wwe.addKeyEventHandler(["SHIFT+TAB","CTRL+[","META+["],(function(t,n){var r;if(e.wwe.getEditor().hasFormat("LI")){t.preventDefault();var i=dt["a"].children(dt["a"].closest(n.startContainer,"li"),kt);e.eventManager.emit("command","Outdent"),i.length&&!i.previousSibling&&e._removeBranchList(i),r=!1}return r})),this.wwe.addKeyEventHandler("ENTER",(function(t,n){n.collapsed&&e.wwe.getEditor().hasFormat("LI")&&e.wwe.defer((function(){var t=e.wwe.getRange(),n=dt["a"].parents(t.startContainer,"li"),r=n[0];e._removeBranchListAll(r)}))})),this.wwe.addKeyEventHandler("BACK_SPACE",(function(t,n){n.collapsed&&e.wwe.getEditor().hasFormat("LI")&&e.wwe.defer((function(){e._removeBranchListAll()}))}))},t._findAndRemoveEmptyList=function(){dt["a"].findAll(this.wwe.getBody(),kt).forEach((function(e){St.test(e.innerHTML)||dt["a"].remove(e)}))},t._removeBranchListAll=function(e){var t=this;e=e||this.wwe.getBody(),dt["a"].findAll(e,"li > ul, li > ol").forEach((function(e){e&&!e.previousSibling&&t._removeBranchList(e)}))},t._removeBranchList=function(e){var t=e;while(!t.previousSibling&&t.parentElement.tagName.match(/UL|OL|LI/g))t=t.parentElement;var n=dt["a"].children(t,"li"),r=n[0],i=dt["a"].unwrap(e);dt["a"].prepend(t,i),dt["a"].remove(r)},t._convertToArbitraryNestingList=function(e){var t="li > ul, li > ol",n=dt["a"].createElementWith("<div>"+e+"</div>"),r=n.querySelector(t);while(null!==r){var i=r.parentNode,a=i.parentNode;a.insertBefore(r,i.nextElementSibling),r=n.querySelector(t)}return n.innerHTML},t._convertFromArbitraryNestingList=function(e){var t="ol > ol, ol > ul, ul > ol, ul > ul",n=dt["a"].createElementWith("<div>"+e+"</div>"),r=n.querySelector(t);while(null!==r){var i=r.previousElementSibling;while(i&&"LI"!==i.tagName)i=i.previousElementSibling;i?i.appendChild(r):this._unwrap(r),r=n.querySelector(t)}return n.innerHTML},t._unwrap=function(e){var t=document.createDocumentFragment();while(e.firstChild)t.appendChild(e.firstChild);e.parentNode.replaceChild(t,e)},t._insertDataToMarkPassForListInTable=function(e){var t=e.replace(Nt,(function(e,t,n,r){var i=n.replace(xt,'<$1 data-tomark-pass="" $2>');return""+t+i+r}));return t},t.getLinesOfSelection=function(e,t){var n,r=[],i=!1,a=!0;if(dt["a"].isTextNode(e)){var o=dt["a"].parents(e,Tt);e=o[0]}if(dt["a"].isTextNode(t)){var s=dt["a"].parents(t,Tt);t=s[0]}for(var l=e;a;l=n){if(!ft()(l,Tt))break;r.push(l),l===t?i=!0:n=this._getNextLine(l,t),a=n&&!i}return r},t._getNextLine=function(e,t){var n=e.nextElementSibling;return n?ft()(n,kt)&&(n=n.querySelector("li")):n=e.parentNode.nextElementSibling,ft()(n,Tt)||n===t?n:this._getNextLine(n)},t.mergeList=function(e){var t=e.parentNode,n=t.previousElementSibling,r=t.nextElementSibling;t.firstElementChild===e&&n&&ft()(n,kt)&&(this._mergeList(t,n),t=n),t.lastElementChild===e&&r&&ft()(r,kt)&&this._mergeList(r,t)},t._mergeList=function(e,t){var n=e.firstElementChild;if(t&&ft()(t,kt)){while(n){var r=n.nextElementSibling;t.appendChild(n),n=r}e.parentNode.removeChild(e)}},t.isAvailableMakeListInTable=function(){var e=this.wwe.componentManager.getManager("tableSelection"),t=e.getSelectedCells(),n=this.wwe.getEditor();return t&&n.hasFormat("table")&&!n.hasFormat("OL")&&!n.hasFormat("UL")},t._getParentNodeBeforeTD=function(e,t){var n=dt["a"].getParentUntil(e,"TD");if(!n){var r=e.childNodes,i=r?r.length:0,a=t>0&&t===i?t-1:t;n=dt["a"].getChildNodeByOffset(e,a)}return n},t._findLINodeInsideTD=function(e,t){var n=null,r=dt["a"].getParentUntilBy(e,(function(e){return e&&dt["a"].isListNode(e)}),(function(e){return e&&"TD"===e.nodeName}));if(r)n=r;else if("LI"===e.nodeName)n=e;else if(dt["a"].isListNode(e)){var i=e.childNodes.length;n=e.childNodes[t>=i?i-1:t]}return n},t._getFirstNodeInLineOfTable=function(e,t){var n=this._findLINodeInsideTD(e,t);if(!n){n=this._getParentNodeBeforeTD(e,t);var r=n,i=r.previousSibling;while(i&&"BR"!==i.nodeName&&!dt["a"].isListNode(i))n=i,i=n.previousSibling}return n},t._getLastNodeInLineOfTable=function(e,t){var n=this._findLINodeInsideTD(e,t);if(!n){n=this._getParentNodeBeforeTD(e,t);while(n.nextSibling){if("BR"===n.nodeName||dt["a"].isListNode(n))break;n=n.nextSibling}}return n},t._isLastNodeInLineOfTable=function(e){var t=e.nodeName;return"LI"===t||"BR"===t},t._getNextNodeInLineOfTable=function(e){var t=e.nextSibling;if("LI"!==e.nodeName||t)dt["a"].isListNode(t)&&(t=t.firstChild);else{var n=e.parentNode;while("TD"!==n.nodeName){if(n.nextSibling){t=n.nextSibling;break}n=n.parentNode}}return t},t._getLinesOfSelectionInTable=function(e){var t=e.startContainer,n=e.endContainer,r=e.startOffset,i=e.endOffset,a=this._getFirstNodeInLineOfTable(t,r),o=this._getLastNodeInLineOfTable(n,i),s=[],l=[];while(a){if(l.push(a),this._isLastNodeInLineOfTable(a)&&(s.push(l),l=[]),a===o){l.length&&s.push(l);break}a=this._getNextNodeInLineOfTable(a)}return s},t._createListElement=function(e){return document.createElement("TASK"===e?"UL":e)},t._createListItemElement=function(e,t){var n=document.createElement("li");if(e.forEach((function(e){n.appendChild(e)})),"TASK"===t){var r=this.wwe.componentManager.getManager("task");r.formatTask(n)}return n},t._mergeListWithPreviousSibiling=function(e){var t=e.previousSibling,n=e;return t&&e.nodeName===t.nodeName&&(this._mergeList(e,t),n=t),n},t._mergeListWithNextSibiling=function(e){var t=e.nextSibling;return t&&e.nodeName===t.nodeName&&this._mergeList(t,e),e},t.createListInTable=function(e,t){var n=this,r=this._getLinesOfSelectionInTable(e),i=r[r.length-1],a=i[i.length-1],o=a.nextSibling,s=a.parentNode,l=this._createListElement(t),c=l,u=c.nodeName,d=[];return r.forEach((function(e){var r,i=e[0];if("LI"===i.nodeName){var a=i.parentNode;if(r=i,a.nodeName!==u){var o=a.childNodes;Qe()(o).forEach((function(){l.appendChild(a.firstChild)})),a.parentNode.replaceChild(l,a)}l=r.parentNode}else r=n._createListItemElement(e,t),l.appendChild(r);d.push(r)})),l.parentNode||s.insertBefore(l,o),l=this._mergeListWithPreviousSibiling(l),this._mergeListWithNextSibiling(l),d},t.adjustRange=function(e,t,n,r,i){var a=dt["a"].containsNode(i[0],e)?e:i[0],o=dt["a"].containsNode(i[i.length-1],t)?t:i[i.length-1],s="TD"===e.nodeName?0:n,l="TD"===t.nodeName?0:r;this.wwe.setSelectionByContainerAndOffset(a,s,o,l)},e}(),Ot=Lt,Mt=n(16),At=n.n(Mt),Dt="task-list-item",Bt="data-te-task",It="checked",Rt=function(){function e(e){this.wwe=e,this.eventManager=e.eventManager,this.name="task",this._init()}var t=e.prototype;return t._init=function(){this._initKeyHandler(),this._initEvent(),this.wwe.getEditor().addEventListener("mousedown",(function(e){var t=getComputedStyle(e.target,":before");e.target.hasAttribute(Bt)&&dt["a"].isInsideTaskBox(t,e.offsetX,e.offsetY)&&(e.preventDefault(),dt["a"].toggleClass(e.target,It))}))},t._initEvent=function(){var e=this;this.eventManager.listen("wysiwygSetValueAfter",(function(){e._removeTaskListClass()}))},t._initKeyHandler=function(){var e=this;this.wwe.addKeyEventHandler("ENTER",(function(t,n){e.isInTaskList(n)&&e.wwe.defer((function(){var t=e.wwe.getRange(),n=dt["a"].closest(t.startContainer,"li");n&&m()(n,It)}))}))},t.isInTaskList=function(e){var t;if(e||(e=this.wwe.getEditor().getSelection().cloneRange()),e.startContainer.nodeType===Node.ELEMENT_NODE&&"LI"===e.startContainer.tagName)t=e.startContainer;else{var n=dt["a"].parents(e.startContainer,"li");t=n[0]}return!!t&&At()(t,Dt)},t.unformatTask=function(e){var t=dt["a"].closest(e,"li");m()(t,Dt),m()(t,It),t.removeAttribute(Bt),t.getAttribute("class")||t.removeAttribute("class")},t.formatTask=function(e){var t=dt["a"].closest(e,"li");p()(t,Dt),t.setAttribute(Bt,"")},t._formatTaskIfNeed=function(){var e=this.wwe.getEditor().getSelection().cloneRange();this.isInTaskList(e)&&this.formatTask(e.startContainer)},t._removeTaskListClass=function(){dt["a"].findAll(this.wwe.getBody(),".task-list").forEach((function(e){m()(e,"task-list")}))},e}(),Pt=Rt,Ft=it.a.msie&&10===it.a.version,Ht="te-content-table-",jt=it.a.msie&&(10===it.a.version||11===it.a.version),Ut=it.a.msie?"":"<br>",qt="te-cell-selected",Vt=function(){function e(e){this.wwe=e,this.eventManager=e.eventManager,this.name="table",this._lastCellNode=null,this._init()}var t=e.prototype;return t._init=function(){this._initKeyHandler(),this._initEvent(),this.tableID=0},t._initEvent=function(){var e=this;this.eventManager.listen("wysiwygRangeChangeAfter.table",(function(){var t=e.wwe.getEditor().getSelection(),n=e.wwe.isInTable(t);if(e._unwrapBlockInTable(),e._completeTableIfNeed(),!n){var r=e.wwe.componentManager.getManager("tableSelection");r.removeClassAttrbuteFromAllCellsIfNeed()}e._insertDefaultBlockBetweenTable()})),this.eventManager.listen("wysiwygSetValueAfter.table",(function(){e._unwrapBlockInTable(),e._insertDefaultBlockBetweenTable()})),this.eventManager.listen("wysiwygProcessHTMLText.table",(function(e){return e.replace(/<br \/>(<\/td>|<\/th>)/g,"$1")})),this.eventManager.listen("cut.table",(function(){var t=e.wwe.componentManager.getManager("tableSelection"),n=t.getSelectedCells();n.length&&n.forEach((function(e){e.innerHTML=Ut})),t.removeClassAttrbuteFromAllCellsIfNeed()})),this.eventManager.listen("copyBefore.table",(function(t){var n=t.clipboardContainer;return e.updateTableHtmlOfClipboardIfNeed(n)}))},t.updateTableHtmlOfClipboardIfNeed=function(e){var t=this,n=this.wwe.componentManager.getManager("tableSelection"),r=n.getSelectedCells();if(r.length){n.createRangeBySelectedCells();var i=this.wwe.getEditor().getSelection().cloneContents();Qe()(i.children).forEach((function(e){if(t.isTableOrSubTableElement(e.nodeName))if("TABLE"===e.nodeName&&e.querySelector("thead")&&e.querySelector("tbody"))dt["a"].remove(e);else if(e.previousSibling&&"TABLE"===e.previousSibling.nodeName)e.previousSibling.appendChild(e);else if(t._completeIncompleteTable(e),"TABLE"!==e.nodeName&&"THEAD"!==e.nodeName){var n=dt["a"].closest(e,"table").querySelector("thead");dt["a"].remove(n)}})),e.appendChild(i),dt["a"].findAll(e,"."+qt).forEach((function(e){m()(e,qt)}))}},t.pasteTableData=function(e){this._expandTableIfNeed(e),this._pasteDataIntoTable(e)},t._initKeyHandler=function(){var e=this;this.keyEventHandlers={DEFAULT:function(t,n,r){var i=e.wwe.isInTable(n);i&&!e._isModifierKey(r)?(e._recordUndoStateIfNeed(n),e._removeContentsAndChangeSelectionIfNeed(n,r,t)):!i&&e._lastCellNode&&e._recordUndoStateAndResetCellNode(n),i&&!e._isModifierKeyPushed(t)&&e.wwe.getEditor().modifyDocument((function(){var t=e.wwe.componentManager.getManager("tableSelection");t.removeClassAttrbuteFromAllCellsIfNeed()}))},ENTER:function(t,n){var r;return e._isAfterTable(n)?(t.preventDefault(),n.setStart(n.startContainer,n.startOffset-1),e.wwe.breakToNewDefaultBlock(n),r=!1):e._isBeforeTable(n)?(t.preventDefault(),e.wwe.breakToNewDefaultBlock(n,"before"),r=!1):e.wwe.isInTable(n)&&(!e._isInList(n.startContainer)&&e._isInStyledText(n)?e.wwe.defer((function(){e._removeBRinStyleText()})):e._isEmptyFirstLevelLI(n)&&e.wwe.defer((function(){var t=e.wwe.getRange().cloneRange(),n=t.startContainer,r=document.createElement("br");n.parentNode.replaceChild(r,n),t.setStartBefore(r),t.collapse(!0),e.wwe.getEditor().setSelection(t)})),e._appendBrIfTdOrThNotHaveAsLastChild(n),r=!1),r},BACK_SPACE:function(t,n,r){return e._handleBackspaceAndDeleteKeyEvent(t,n,r)},DELETE:function(t,n,r){return e._handleBackspaceAndDeleteKeyEvent(t,n,r)},TAB:function(){return e._moveCursorTo("next","cell")},"SHIFT+TAB":function(t){return e._moveCursorTo("previous","cell",t)},UP:function(t){return e._moveCursorTo("previous","row",t)},DOWN:function(t){return e._moveCursorTo("next","row",t)}},i()(this.keyEventHandlers,(function(t,n){return e.wwe.addKeyEventHandler(n,t)}))},t._isEmptyListItem=function(e){var t=e.childNodes,n=e.nodeName;return"LI"===n&&1===t.length&&"BR"===t[0].nodeName},t._isEmptyFirstLevelLI=function(e){var t=e.collapsed,n=e.startContainer,r=e.startOffset;return t&&0===r&&this._isEmptyListItem(n)&&dt["a"].isFirstLevelListItem(n)},t._isInStyledText=function(e){var t,n=e.startContainer;return t=dt["a"].isTextNode(n)?n.parentNode:n,e.collapsed&&dt["a"].isStyledNode(t)},t._removeBRinStyleText=function(){var e,t=this.wwe.getRange(),n=t.startContainer,r=t.startOffset;e="TD"===n.nodeName?dt["a"].getChildNodeByOffset(n,r-1):dt["a"].getParentUntil(n,"TD");var i=e.querySelector("br");if(i){var a=e,o=a.parentNode,s=a.nodeName;if("CODE"!==s||i.previousSibling)if("CODE"!==s||i.nextSibling){var l=this._splitByBR(e,i);t.setStart(l,0)}else o.insertBefore(i,e.nextSibling),t.setStart(o,dt["a"].getNodeOffsetOfParent(i)+1);else o.insertBefore(i,e),t.setStart(e,0);t.collapse(!0),this.wwe.getEditor().setSelection(t)}},t._splitByBR=function(e,t){var n=e.cloneNode(!0),r=document.createElement("br"),i=e.parentNode;dt["a"].removeNodesByDirection(e,t,!1),t.parentNode.removeChild(t);var a=n.querySelector("br");dt["a"].removeNodesByDirection(n,a,!0),a.parentNode.removeChild(a),i.insertBefore(n,e.nextSibling),i.insertBefore(r,n);var o=dt["a"].getLeafNode(n);return dt["a"].getTextLength(o)||(o.textContent="​"),o},t._isBeforeTable=function(e){return"TABLE"===dt["a"].getNodeName(dt["a"].getChildNodeByOffset(e.startContainer,e.startOffset))},t._isAfterTable=function(e){var t=dt["a"].getPrevOffsetNodeUntil(e.startContainer,e.startOffset);return"TABLE"===dt["a"].getNodeName(t)&&e.commonAncestorContainer===this.wwe.getBody()},t._handleBackspaceAndDeleteKeyEvent=function(e,t,n){var r="BACK_SPACE"===n,i=this.wwe.componentManager.getManager("tableSelection"),a=i.getSelectedCells(),o=!0;if(t.collapsed){if(this.wwe.isInTable(t))r?this._tableHandlerOnBackspace(t,e):this._tableHandlerOnDelete(t,e),this._removeContentsAndChangeSelectionIfNeed(t,n,e),o=!1;else if(!r&&this._isBeforeTable(t)||r&&this._isAfterTable(t)){e.preventDefault();var s=r?t.startOffset-1:t.startOffset;this._removeTable(t,dt["a"].getChildNodeByOffset(t.startContainer,s)),o=!1}}else if(this.wwe.isInTable(t)&&a.length>0){var l=this._removeContentsAndChangeSelectionIfNeed(t,n,e);l&&(e.preventDefault(),o=!1)}return o},t._moveListItemToPreviousOfList=function(e,t){var n=e.parentNode,r=e.firstChild,i=document.createDocumentFragment();dt["a"].mergeNode(e,i),n.parentNode.insertBefore(i,n),t.setStart(r,0),t.collapse(!0),this.wwe.getEditor().setSelection(t),n.hasChildNodes()||n.parentNode.removeChild(n)},t._isInList=function(e){return dt["a"].getParentUntilBy(e,(function(e){return e&&(dt["a"].isListNode(e)||"LI"===e.nodeName)}),(function(e){return e&&("TD"===e.nodeName||"TH"===e.nodeName)}))},t._findListItem=function(e){return dt["a"].getParentUntilBy(e,(function(e){return e&&dt["a"].isListNode(e)}),(function(e){return e&&("TD"===e.nodeName||"TH"===e.nodeName)}))},t._tableHandlerOnBackspace=function(e,t){var n=e.startContainer,r=e.startOffset,i=this._findListItem(n);if(i&&0===r&&dt["a"].isFirstListItem(i)&&dt["a"].isFirstLevelListItem(i))this.wwe.getEditor().saveUndoState(e),this._moveListItemToPreviousOfList(i,e),t.preventDefault();else{var a=dt["a"].getPrevOffsetNodeUntil(n,r,"TR"),o=dt["a"].getNodeName(a);"BR"===o&&1!==a.parentNode.childNodes.length&&(t.preventDefault(),dt["a"].remove(a))}},t._isDeletingBR=function(e){var t=this._getCurrentNodeInCell(e),n=t&&t.nextSibling;return"BR"===dt["a"].getNodeName(t)&&!!n&&"BR"===dt["a"].getNodeName(n)},t._getCurrentNodeInCell=function(e){var t,n=e.startContainer,r=e.startOffset;return"TD"===dt["a"].getNodeName(n)?t=dt["a"].getChildNodeByOffset(n,r):dt["a"].getParentUntil(n,"TD")&&(t=n),t},t._isEndOfList=function(e,t){var n=t.startContainer,r=t.startOffset,i=!1;if(!e.nextSibling)if(e===n){var a=dt["a"].getOffsetLength(e);"BR"===e.lastChild.nodeName&&(a-=1),i=a===r}else{var o=dt["a"].getParentUntil(n,"li")||n,s=dt["a"].getOffsetLength(n),l=e.lastChild;"BR"===l.nodeName&&(l=l.previousSibling),i=l===o&&s===r}return i},t._getNextLineNode=function(e){var t=document.createDocumentFragment(),n=dt["a"].getParentUntil(e,"TD"),r=n.nextSibling;while(r){var i=r,a=i.nextSibling;if(t.appendChild(r),"BR"===r.nodeName)break;r=a}return t},t._tableHandlerOnDelete=function(e,t){var n=this._findListItem(e.startContainer);if(n&&this._isEndOfList(n,e))this.wwe.getEditor().saveUndoState(e),"BR"===n.lastChild.nodeName&&n.removeChild(n.lastChild),dt["a"].mergeNode(this._getNextLineNode(n),n),t.preventDefault();else if(this._isDeletingBR(e)){var r=this._getCurrentNodeInCell(e);r.parentNode.removeChild(r.nextSibling),t.preventDefault()}},t._appendBrIfTdOrThNotHaveAsLastChild=function(e){var t,n=dt["a"].getNodeName(e.startContainer);if("TD"===n||"TH"===n)t=e.startContainer;else{var r=dt["a"].parentsUntil(e.startContainer,"tr");t=r[r.length-1]}var i=dt["a"].getNodeName(t.lastChild);"BR"===i||"DIV"===i||"UL"===i||"OL"===i||jt||dt["a"].append(t,"<br />")},t._unwrapBlockInTable=function(){var e=dt["a"].findAll(this.wwe.getBody(),"td div,th div,tr>br,td>br,th>br");e.forEach((function(e){if("BR"===dt["a"].getNodeName(e)){var t=dt["a"].getNodeName(e.parentNode),n=/TD|TH/.test(t),r=0===e.parentNode.textContent.length,i=e.parentNode.lastChild===e;("TR"===t||n&&!r&&i)&&dt["a"].remove(e)}else dt["a"].unwrap(e)}))},t._insertDefaultBlockBetweenTable=function(){var e=dt["a"].findAll(this.wwe.getBody(),"table");e.forEach((function(e){if(e.nextElementSibling&&"TABLE"===e.nextElementSibling.nodeName){var t=document.createElement("div");t.appendChild(document.createElement("br")),dt["a"].insertAfter(t,e)}}))},t._removeTable=function(e,t){"TABLE"===t.tagName&&(this.wwe.getEditor().saveUndoState(e),this.wwe.saveSelection(e),dt["a"].remove(t),this.wwe.restoreSavedSelection())},t._recordUndoStateIfNeed=function(e){var t=dt["a"].getParentUntil(e.startContainer,"TR");e.collapsed&&t&&this._lastCellNode!==t&&(this.wwe.getEditor().saveUndoState(e),this._lastCellNode=t)},t._recordUndoStateAndResetCellNode=function(e){this.wwe.getEditor().saveUndoState(e),this.resetLastCellNode()},t._pasteDataIntoTable=function(e){var t,n,r,i,a=this.wwe.getEditor().getSelection(),o=a.startContainer,s=this._getTableDataFromTable(e),l="TD"===o.nodeName||"TH"===o.nodeName,c=Ft?"":"<br />";l?t=o:(t=dt["a"].getParentUntilBy(o,(function(e){return e&&("TD"===e.nodeName||"TH"===e.nodeName)}),(function(e){return!!dt["a"].closest(e,"table")})),t=t?t.parentNode:null),t=t||o.querySelector("th,td"),n=t;while(s.length){r=s.shift();while(n&&r.length)i=r.shift(),i.length?n.textContent=i:n.innerHTML=c,n=dt["a"].getTableCellByDirection(n,"next");n=dt["a"].getSiblingRowCellByDirection(t,"next",!1),t=n}},t._getTableDataFromTable=function(e){var t=[];return dt["a"].findAll(e,"tr").forEach((function(e){var n=[];Qe()(e.children).forEach((function(e){n.push(e.textContent)})),n.length&&t.push(n)})),t},t._removeTableContents=function(e){this.wwe.getEditor().saveUndoState(),Qe()(e).forEach((function(e){var t=Ft?"":"<br />";e.innerHTML=t}))},t.wrapDanglingTableCellsIntoTrIfNeed=function(e){var t,n=dt["a"].children(e,"td,th");if(n.length){var r=document.createElement("tr");Qe()(n).forEach((function(e){dt["a"].append(r,e)})),t=r}return t},t.wrapTrsIntoTbodyIfNeed=function(e){var t,n=dt["a"].children(e,"tr"),r=[];if(Qe()(n).forEach((function(e){r=r.concat(e.querySelectorAll("th"))})),r.length&&Qe()(r).forEach((function(e){var t=document.createElement("td");t.innerHTML=e.innerHTML,dt["a"].insertBefore(e,t),dt["a"].remove(e)})),n.length){var i=document.createElement("tbody");Qe()(n).forEach((function(e){dt["a"].append(i,e)})),t=i}return t},t.wrapTheadAndTbodyIntoTableIfNeed=function(e){var t,n=dt["a"].children(e,"thead"),r=dt["a"].children(e,"tbody"),i=document.createElement("table");return!r.length&&n.length?(dt["a"].append(i,n[0]),dt["a"].append(i,this._createTheadOrTboday("tbody")),t=i):r.length&&!n.length?(dt["a"].append(i,this._createTheadOrTboday("thead")),dt["a"].append(i,r[0]),t=i):r.length&&n.length&&(dt["a"].append(i,n[0]),dt["a"].append(i,r[0]),t=i),t},t.isTableOrSubTableElement=function(e){return"TABLE"===e||"TBODY"===e||"THEAD"===e||"TR"===e||"TD"===e},t._createTheadOrTboday=function(e){var t=document.createElement(e),n=document.createElement("tr");return t.appendChild(n),t},t._stuffTableCellsIntoIncompleteRow=function(e,t){Qe()(e).forEach((function(e){for(var n=e.querySelectorAll("th,td"),r=dt["a"].getNodeName(e.parentNode),i="THEAD"===r?"th":"td",a=n.length;a<t;a+=1)dt["a"].append(e,Wt(1,i))}))},t.prepareToTableCellStuffing=function(e){var t=e[0].querySelectorAll("th,td").length,n=!1;return Qe()(e).forEach((function(e){var r=e.querySelectorAll("th,td").length;t!==r&&(n=!0,t<r&&(t=r))})),{maximumCellLength:t,needTableCellStuffingAid:n}},t._addTbodyOrTheadIfNeed=function(e){var t=!e.querySelector("thead"),n=!e.querySelector("tbody");t?dt["a"].prepend(e,"<thead><tr></tr></thead>"):n&&dt["a"].append(e,"<tbody><tr></tr></tbody>")},t.tableCellAppendAidForTableElement=function(e){this._addTbodyOrTheadIfNeed(e),this._addTrIntoContainerIfNeed(e);var t=e.querySelectorAll("tr"),n=this.prepareToTableCellStuffing(t),r=n.maximumCellLength,i=n.needTableCellStuffingAid;i&&this._stuffTableCellsIntoIncompleteRow(t,r)},t._generateTheadAndTbodyFromTbody=function(e){var t=document.createElement("tr"),n=document.createElement("thead");return dt["a"].append(t,Wt(e.querySelector("tr > td").length,"th")),dt["a"].append(n,t),{thead:n,tbody:e}},t._generateTheadAndTbodyFromThead=function(e){var t=document.createElement("tr"),n=document.createElement("tbody");return dt["a"].append(t,Wt(e.querySelectorAll("th").length,"td")),dt["a"].append(n,t),{thead:e,tbody:n}},t._generateTheadAndTbodyFromTr=function(e){var t,n,r=document.createElement("thead"),i=document.createElement("tbody");return"TH"===e.children[0].tagName?(t=e,n=dt["a"].createElementWith("<tr>"+Wt(e.querySelectorAll("th").length,"td")+"</tr>")):(t=dt["a"].createElementWith("<tr>"+Wt(e.querySelectorAll("td").length,"th")+"</tr>"),n=e),dt["a"].append(r,t),dt["a"].append(i,n),{thead:r,tbody:i}},t._completeIncompleteTable=function(e){var t,n,r=e.tagName;"TABLE"===r?t=e:(t=document.createElement("table"),e.parentNode.insertBefore(t,e.nextSibling),"TBODY"===r?n=this._generateTheadAndTbodyFromTbody(e):"THEAD"===r?n=this._generateTheadAndTbodyFromThead(e):"TR"===r&&(n=this._generateTheadAndTbodyFromTr(e)),t.appendChild(n.thead),t.appendChild(n.tbody)),this._removeEmptyRows(t),this.tableCellAppendAidForTableElement(t)},t._removeEmptyRows=function(e){dt["a"].findAll(e,"tr").forEach((function(e){e.cells.length||e.parentNode.removeChild(e)}))},t._completeTableIfNeed=function(){var e=this,t=this.wwe.getEditor().getBody();Qe()(t.children).forEach((function(t){e.isTableOrSubTableElement(t.nodeName)&&("TABLE"!==t.nodeName||t.querySelector("tbody")?e._completeIncompleteTable(t):dt["a"].remove(t))}))},t.resetLastCellNode=function(){this._lastCellNode=null},t.setLastCellNode=function(e){this._lastCellNode=e},t._isModifierKey=function(e){return/((META|SHIFT|ALT|CONTROL)\+?)/g.test(e)},t._isModifierKeyPushed=function(e){return e.metaKey||e.ctrlKey||e.altKey||e.shiftKey},t._addTrIntoContainerIfNeed=function(e){Qe()(e.children).forEach((function(e){var t=0===e.querySelectorAll("tr").length;t&&dt["a"].append(e,"<tr></tr>")}))},t._expandTableIfNeed=function(e){var t=this.wwe.getEditor().getSelection().cloneRange(),n=dt["a"].parents(t.startContainer,"table"),r=n[0],i=this._getColumnAndRowDifference(e,t);i.column<0&&this._appendCellForAllRow(r,i.column),i.row<0&&this._appendRow(r,i.row)},t._getColumnAndRowDifference=function(e,t){var n=this._getTableDataFromTable(e),r=n.length,i=n[0].length,a=dt["a"].closest(t.startContainer,"th,td"),o=a.parentNode,s=dt["a"].getNodeOffsetOfParent(a),l=dt["a"].getNodeOffsetOfParent(a.parentNode),c=dt["a"].parents(o,"table"),u=c[0],d=u.querySelector("tr").children.length,h=u.querySelectorAll("tr").length,f=!!dt["a"].parents(o,"tbody").length;return f&&(l+=1),{row:h-(l+r),column:d-(s+i)}},t._appendCellForAllRow=function(e,t){var n=Ft?"":"<br />";dt["a"].findAll(e,"tr").forEach((function(e,r){for(var i,a=t;a<0;a+=1)i=0===r?"th":"td",dt["a"].append(e,"<"+i+">"+n+"</"+i+">")}))},t._appendRow=function(e,t){var n=e.querySelectorAll("tr"),r=n[n.length-1].cloneNode(!0),i=Ft?"":"<br />";for(dt["a"].findAll(r,"td").forEach((function(e){e.innerHTML=i}));t<0;t+=1)dt["a"].append(e.querySelector("tbody"),r.cloneNode(!0))},t._changeSelectionToTargetCell=function(e,t,n,r){var i,a="next"===n,o="row"===r;if(o?i=dt["a"].getSiblingRowCellByDirection(e,n,!1):(i=dt["a"].getTableCellByDirection(e,n),i||(i=dt["a"].getSiblingRowCellByDirection(e,n,!0))),i)o&&!a?this._moveToCursorEndOfCell(i,t):t.setStart(i,0),t.collapse(!0);else{var s=dt["a"].parents(e,"table");i=s[0],a?t.setStart(i.nextElementSibling,0):i.previousElementSibling&&"TABLE"!==i.previousElementSibling.nodeName?t.setStart(i.previousElementSibling,1):t.setStartBefore(i),t.collapse(!0)}},t._moveToCursorEndOfCell=function(e,t){var n;dt["a"].isListNode(e.lastChild)&&(n=dt["a"].getLastNodeBy(e.lastChild,(function(e){return"LI"!==e.nodeName||null!==e.nextSibling})));var r=dt["a"].getLastNodeBy(n||e,(function(e){return!dt["a"].isTextNode(e)})),i=r||n||e,a=r?r.length:i.childNodes.length-1;t.setStart(i,a)},t._moveCursorTo=function(e,t,n){var r,i=this.wwe.getEditor(),a=i.getSelection().cloneRange(),o=dt["a"].closest(a.startContainer,"td,th");if(a.collapsed&&this.wwe.isInTable(a)&&o){if("row"===t&&!this._isMovedCursorToRow(a,e))return r;"previous"!==e&&"row"!==t||et()(n)||n.preventDefault(),this._changeSelectionToTargetCell(o,a,e,t),i.setSelection(a),r=!1}return r},t._isMovedCursorToRow=function(e,t){var n=e.startContainer;return this._isInList(n)?this._isMovedCursorFromListToRow(n,t):this._isMovedCursorFromTextToRow(e,t)},t._isMovedCursorFromListToRow=function(e,t){var n=t+"Sibling",r=this._findListItem(e),i=dt["a"].getParentNodeBy(r,(function(e,t){var r=null===t[n]&&null===e[n];return!dt["a"].isCellNode(e)&&r})),a=dt["a"].isListNode(i)&&null===i[n];return dt["a"].isCellNode(i.parentNode)&&a},t._isMovedCursorFromTextToRow=function(e,t){var n=e.startContainer,r=e.startOffset,i=dt["a"].isCellNode(n)?n.childNodes[r]:n,a=dt["a"].getParentNodeBy(i,(function(e){return!dt["a"].isCellNode(e)&&!dt["a"].isTextNode(e)})),o=dt["a"].getSiblingNodeBy(a,t,(function(e){return null!==e&&"BR"!==e.nodeName}));return o&&null===o[t+"Sibling"]},t._removeContentsAndChangeSelectionIfNeed=function(e,t,n){var r=t.length<=1,i="BACK_SPACE"===t||"DELETE"===t,a=this.wwe.componentManager.getManager("tableSelection").getSelectedCells(),o=a[0],s=!1;return(r||i)&&!this._isModifierKeyPushed(n)&&a.length&&(i&&this._recordUndoStateIfNeed(e),this._removeTableContents(a),this._lastCellNode=o,e.setStart(o,0),e.collapse(!0),this.wwe.getEditor().setSelection(e),s=!0),s},t.getTableIDClassName=function(){var e=Ht+this.tableID;return this.tableID+=1,e},t.destroy=function(){var e=this;this.eventManager.removeEventHandler("wysiwygRangeChangeAfter.table"),this.eventManager.removeEventHandler("wysiwygSetValueAfter.table"),this.eventManager.removeEventHandler("wysiwygProcessHTMLText.table"),this.eventManager.removeEventHandler("cut.table"),this.eventManager.removeEventHandler("copyBefore.table"),i()(this.keyEventHandlers,(function(t,n){return e.wwe.removeKeyEventHandler(n,t)}))},e}();function Wt(e,t){for(var n="<br />",r="<"+t+">"+n+"</"+t+">",i="",a=0;a<e;a+=1)i+=r;return i}var $t=Vt,zt="te-cell-selected",Kt=function(){function e(e){this.wwe=e,this.eventManager=e.eventManager,this.name="tableSelection",this._init()}var t=e.prototype;return t._init=function(){this._initEvent(),it.a.firefox&&(document.execCommand("enableObjectResizing",!1,"false"),document.execCommand("enableInlineTableEditing",!1,"false"))},t._initEvent=function(){var e,t,n,r=this;this._tableSelectionTimer=null,this._removeSelectionTimer=null,this._isSelectionStarted=!1;var i=function(i){t=dt["a"].closest(i.data.target,"[contenteditable=true] td,th");var a=r.wwe.getEditor().getSelection(),o=dt["a"].parents(t,"[contenteditable=true] table"),s=e===t,l=r._isTextSelect(a,s)&&!At()(e,zt);r._isSelectionStarted&&o&&!l&&(window.getSelection().removeAllRanges(),it.a.firefox&&!r._removeSelectionTimer&&(r._removeSelectionTimer=setInterval((function(){window.getSelection().removeAllRanges()}),10)),r.highlightTableCellsBy(e,t),n=t)},a=function(){r._isSelectionStarted&&(r._isSelectionStarted=!1,r.eventManager.removeEventHandler("mouseover.tableSelection"),r.eventManager.removeEventHandler("mouseup.tableSelection"))},o=function(i){t=dt["a"].closest(i.data.target,"[contenteditable=true] td,th");var o=r.wwe.getEditor().getSelection(),s=e===t,l=r._isTextSelect(o,s)&&!At()(e,zt);r._clearTableSelectionTimerIfNeed(),r._isSelectionStarted&&(l||r._isListSelect(o)?r.removeClassAttrbuteFromAllCellsIfNeed():(r.wwe.componentManager.getManager("table").resetLastCellNode(),t=t||n,o=r.wwe.getEditor().getSelection(),o.setStart(t,0),it.a.msie?o.setEnd(t,1):(o.setEnd(t,0),o.collapse(!1)),r.wwe.getEditor().setSelection(o)),r.onDragEnd&&r.onDragEnd()),a()},s=function(n){var s=2;e=dt["a"].closest(n.data.target,"[contenteditable=true] td,th");var l=!!e&&At()(e,zt);t=null,!l||l&&n.data.button!==s?(r.removeClassAttrbuteFromAllCellsIfNeed(),e&&(r.setTableSelectionTimerIfNeed(e),r.eventManager.listen("mouseover.tableSelection",i),r.eventManager.listen("mouseup.tableSelection",o),r.onDragStart&&r.onDragStart(e))):n.data.button===s&&a()};this.eventManager.listen("mousedown.tableSelection",s),this.eventManager.listen("copyBefore.tableSelection",a),this.eventManager.listen("pasteBefore.tableSelection",a)},t._isTextSelect=function(e,t){return/TD|TH|TEXT/i.test(e.commonAncestorContainer.nodeName)&&t},t._isListSelect=function(e){return/UL|OL|LI/i.test(e.commonAncestorContainer.nodeName)},t.setTableSelectionTimerIfNeed=function(e){var t=dt["a"].parents(e,"[contenteditable=true] table").length;t&&(this._isSelectionStarted=!0)},t._clearTableSelectionTimerIfNeed=function(){clearTimeout(this._tableSelectionTimer),it.a.firefox&&this._removeSelectionTimer&&(clearTimeout(this._removeSelectionTimer),this._removeSelectionTimer=null)},t._reArrangeSelectionIfneed=function(e,t){var n,r=dt["a"].parents(e,"[contenteditable=true] table").length,i=dt["a"].parents(t,"[contenteditable=true] table").length,a=i&&!r,o=!i&&r;if(a){var s=dt["a"].parents(t,"[contenteditable=true] table");n=s[0];var l=n.querySelectorAll("th");e=l[0]}else if(o){var c=dt["a"].parents(e,"[contenteditable=true] table");n=c[0];var u=n.querySelectorAll("td");t=u[u.length-1]}return{startContainer:e,endContainer:t}},t._applySelectionDirection=function(e,t){var n=dt["a"].getNodeOffsetOfParent,r=e.startContainer,i=e.endContainer,a=n(dt["a"].closest(r,"[contenteditable=true] tr"))-n(dt["a"].closest(i,"[contenteditable=true] tr")),o=n(r)-n(i),s=0===a,l=a<0,c=o>0;return s?c?(t.setStart(i,0),t.setEnd(r,1)):(t.setStart(r,0),t.setEnd(i,1)):l?(t.setStart(r,0),t.setEnd(i,1)):(t.setStart(i,0),t.setEnd(r,1)),t},t.getSelectionRangeFromTable=function(e,t){var n,r,i=dt["a"].getNodeOffsetOfParent,a=i(e.parentNode),o=i(t.parentNode),s=i(e),l=i(t),c=dt["a"].getParentUntil(e,"TABLE"),u=dt["a"].getParentUntil(t,"TABLE"),d="TBODY"===dt["a"].getNodeName(c)&&"THEAD"===dt["a"].getNodeName(u),h=c!==u,f=!!dt["a"].parents(e,"tbody").length&&!!dt["a"].parents(t,"tbody").length,p={row:a,cell:s},g={row:o,cell:l};return d?p.row+=1:h?g.row+=1:f&&(p.row+=1,g.row+=1),a>o||a===o&&s>l?(n=g,r=p):(n=p,r=g),{from:n,to:r}},t.highlightTableCellsBy=function(e,t){var n=dt["a"].findAll(dt["a"].parents(e,"[contenteditable=true] table")[0],"tr"),r=this.getSelectionRangeFromTable(e,t),i=r.from.row,a=r.from.cell,o=r.to.row,s=r.to.cell;n.forEach((function(e,t){dt["a"].findAll(e,"td,th").forEach((function(e,n){var r=t===i,l=t===o;r&&n<a||l&&n>s||t<i||t>o?m()(e,zt):p()(e,zt)}))}))},t.removeClassAttrbuteFromAllCellsIfNeed=function(){var e=dt["a"].findAll(this.wwe.getBody(),"td."+zt+",th."+zt);e.forEach((function(e){m()(e,zt),e.getAttribute("class")||e.removeAttribute("class")}))},t.getSelectedCells=function(){return this.wwe.getBody().querySelectorAll("."+zt)},t.createRangeBySelectedCells=function(){var e=this.wwe.getEditor(),t=e.getSelection().cloneRange(),n=this.getSelectedCells(),r=n[0],i=n[n.length-1];n.length&&this.wwe.isInTable(t)&&(t.setStart(r,0),t.setEnd(i,i.childNodes.length),e.setSelection(t))},t.styleToSelectedCells=function(e,t){this.createRangeBySelectedCells(),e(this.wwe.getEditor(),t)},t.destroy=function(){this.eventManager.removeEventHandler("mousedown.tableSelection"),this.eventManager.removeEventHandler("mouseover.tableSelection"),this.eventManager.removeEventHandler("mouseup.tableSelection"),this.eventManager.removeEventHandler("copyBefore.tableSelection"),this.eventManager.removeEventHandler("pasteBefore.tableSelection")},e}(),Gt=Kt,Jt=function(){function e(e){this.wwe=e,this.eventManager=e.eventManager,this.name="hr",this._init()}var t=e.prototype;return t._init=function(){this._initEvent()},t._initEvent=function(){var e=this;this.eventManager.listen("wysiwygSetValueAfter",(function(){e._insertEmptyLineIfNeed(),e._changeHRForWysiwyg()}))},t._insertEmptyLineIfNeed=function(){var e=this.wwe.getBody(),t=e.firstChild,n=e.lastChild;t&&"HR"===t.nodeName?e.insertBefore(dt["a"].createEmptyLine(),t):n&&"HR"===n.nodeName&&e.appendChild(dt["a"].createEmptyLine())},t._changeHRForWysiwyg=function(){var e=this.wwe.getBody();dt["a"].findAll(e,"hr").forEach((function(e){var t=e.parentNode;t.replaceChild(dt["a"].createHorizontalRule(),e)}))},e}(),Qt=Jt,Yt=function(){function e(e){this.wwe=e,this.eventManager=e.eventManager,this.name="p",this._initEvent()}var t=e.prototype;return t._initEvent=function(){var e=this;this.eventManager.listen("wysiwygSetValueBefore",(function(t){return e._splitPtagContentLines(t)})),this.eventManager.listen("wysiwygSetValueAfter",(function(){e._ensurePtagContentWrappedWithDiv(),e._unwrapPtags()}))},t._splitPtagContentLines=function(e){if(e){var t=dt["a"].createElementWith("<div>"+e+"</div>");dt["a"].findAll(t,"p").forEach((function(e){var t=e.attributes,n=e.nextElementSibling,r=e.innerHTML,i=r.split(/<br>/gi),a=i.length-1,o="";o=i.map((function(e,n){if(n>0&&n<a&&(e=e||"<br>"),e){var r=document.createElement("div");return Object.keys(t).forEach((function(e){var n=t[e],i=n.name,a=n.value;r.setAttribute(i,a)})),r.innerHTML=e,r.outerHTML}return""})),(n&&"P"===n.nodeName||"false"===e.getAttribute("contenteditable"))&&o.push("<div><br></div>"),dt["a"].replaceWith(e,o.join(""))})),e=t.innerHTML}return e},t._ensurePtagContentWrappedWithDiv=function(){var e=this;dt["a"].findAll(this.wwe.getBody(),"p").forEach((function(t){t.querySelectorAll("div").length||dt["a"].wrapInner(t,"div"),e._findNextParagraph(t,"p")&&dt["a"].append(t,"<div><br></div>")}))},t._unwrapPtags=function(){dt["a"].findAll(this.wwe.getBody(),"div").forEach((function(e){var t=e.parentNode;"P"===t.tagName&&dt["a"].unwrap(t)}))},t._findNextParagraph=function(e,t){var n=e.nextElementSibling;return t?n&&ft()(n,t)?n:null:n},e}(),Xt=Yt,Zt=/h[\d]/i,en=it.a.msie&&10===it.a.version,tn=function(){function e(e){this.wwe=e,this.eventManager=e.eventManager,this.name="heading",this._init()}var t=e.prototype;return t._init=function(){this._initEvent(),this._initKeyHandler()},t._initEvent=function(){var e=this;this.eventManager.listen("wysiwygSetValueAfter",(function(){e._wrapDefaultBlockToHeadingInner()}))},t._initKeyHandler=function(){var e=this;this.wwe.addKeyEventHandler("ENTER",(function(t,n){return!e.wwe.hasFormatWithRx(Zt)||(e._onEnter(t,n),!1)})),this.wwe.addKeyEventHandler("BACK_SPACE",(function(t,n){return!e.wwe.hasFormatWithRx(Zt)||(e._addBrToEmptyBlock(n),e._removePrevTopNodeIfNeed(t,n),!1)}))},t._wrapDefaultBlockToHeadingInner=function(){var e=dt["a"].findAll(this.wwe.getBody(),"h1, h2, h3, h4, h5, h6");e.forEach((function(e){var t=!dt["a"].children(e,"div, p").length;t&&dt["a"].wrapInner(e,"div")}))},t._unwrapHeading=function(){this.wwe.unwrapBlockTag((function(e){return Zt.test(e)}))},t._onEnter=function(e,t){var n=this;t.startOffset>0?this.wwe.defer((function(e){n._unwrapHeading(),e.getEditor().removeLastUndoStack()})):(e.preventDefault(),this._insertEmptyBlockToPrevious(t))},t._insertEmptyBlockToPrevious=function(e){this.wwe.getEditor().saveUndoState(e);var t=dt["a"].createElementWith("<div><br></div>");dt["a"].insertBefore(t,dt["a"].getParentUntil(e.startContainer,this.wwe.getBody()))},t._removePrevTopNodeIfNeed=function(e,t){var n=!1;if(t.collapsed&&0===t.startOffset){var r=t.startContainer,i=dt["a"].getTopPrevNodeUnder(r,this.wwe.getBody()),a=i&&0===i.textContent.length,o=this.wwe.getEditor();0===r.textContent.length?n=this._removeHedingAndChangeSelection(e,t,i):a&&(e.preventDefault(),o.saveUndoState(t),dt["a"].remove(i),n=!0)}return n},t._getHeadingElement=function(e){var t=Zt.test(dt["a"].getNodeName(e));return t?e:dt["a"].parents(e,"h1,h2,h3,h4,h5,h6")[0]},t._addBrToEmptyBlock=function(e){var t=e.collapsed,n=e.startOffset,r=e.startContainer;if(t&&1===n){var i=this._getHeadingElement(r),a=dt["a"].children(i.firstChild,"br");if(!en&&!a.length){var o=document.createElement("br");r.parentNode.appendChild(o)}}},t._removeHedingAndChangeSelection=function(e,t,n){var r=t.startContainer,i=this.wwe.getEditor(),a=this.wwe.getBody(),o=this._getHeadingElement(r),s=n,l=1;if(e.defaultPrevented||(e.preventDefault(),i.saveUndoState(t)),dt["a"].remove(o),!n){var c=dt["a"].children(a,"div");s=c[0],l=0}return t.setStart(s,l),t.collapse(!0),i.setSelection(t),!0},e}(),nn=tn,rn=n(42),an=n.n(rn),on=it.a.msie&&10===it.a.version,sn=on?"":"<br>",ln={"&":"&amp;","<":"&lt;",">":"&gt;"},cn=/\u200B/g,un="data-te-codeblock",dn=function(){function e(e){this.wwe=e,this.eventManager=e.eventManager,this.name="codeblock",this._init()}var t=e.prototype;return t._init=function(){this._initKeyHandler(),this._initEvent()},t._initKeyHandler=function(){var e=this;this._keyEventHandlers={BACK_SPACE:this._onBackspaceKeyEventHandler.bind(this),ENTER:function(t,n){!e.wwe.isInTable(n)&&e.wwe.getEditor().hasFormat("CODE")&&e.wwe.defer((function(){var t=e.wwe.getRange(),n=t.startContainer,r=e._getCodeNode(n);r&&!dt["a"].getTextLength(r)&&r.parentNode.removeChild(r)}))}},i()(this._keyEventHandlers,(function(t,n){return e.wwe.addKeyEventHandler(n,t)}))},t._getCodeNode=function(e){var t;return"CODE"===e.nodeName?t=e:"CODE"===e.parentNode.nodeName&&(t=e.parentNode),t},t._initEvent=function(){var e=this;this.eventManager.listen("wysiwygSetValueAfter.codeblock",(function(){e.modifyCodeBlockForWysiwyg()})),this.eventManager.listen("wysiwygProcessHTMLText.codeblock",(function(t){return e._changePreToPreCode(t)}))},t.prepareToPasteOnCodeblock=function(e){var t=this.wwe.getEditor().getDocument().createDocumentFragment(),n=this.convertNodesToText(e);return n=n.replace(/\n$/,""),t.appendChild(document.createTextNode(n)),t},t.convertNodesToText=function(e){var t="",n=e.shift();while(an()(n)){var r=n,i=r.childNodes;i&&dt["a"].isBlockNode(n)?t+=this.convertNodesToText(Qe()(n.childNodes)):"BR"===n.nodeName?t+="\n":t+=n.textContent,n=e.shift()}return t},t._copyCodeblockTypeFromRangeCodeblock=function(e,t){var n=dt["a"].getParentUntil(t.commonAncestorContainer,this.wwe.getBody());if("PRE"===dt["a"].getNodeName(n)){var r=n.attributes;i()(r,(function(t){e.setAttribute(t.name,t.value)}))}return e},t._changePreToPreCode=function(e){return e.replace(/<pre( .*?)?>((.|\n)*?)<\/pre>/g,(function(e,t,n){return"<pre><code"+(t||"")+">"+n+"</code></pre>"}))},t.modifyCodeBlockForWysiwyg=function(e){e||(e=this.wwe.getBody()),dt["a"].findAll(e,"pre").forEach((function(e){var t,n,r=e.querySelector("code");r&&(t=r.getAttribute("data-language"),n=r.getAttribute("data-backticks")),e.children.length>1&&Qe()(e.children).forEach((function(e){"DIV"!==e.nodeName&&"P"!==e.nodeName||e.querySelectorAll("br").length||(e.innerHTML+=e.innerHTML+"\n")}));var i=e.querySelectorAll("br");i.length&&dt["a"].replaceWith(i,"\n");var a=e.textContent.replace(/\s+$/,"");dt["a"].empty(e),e.innerHTML=a?hn(a):sn,t&&(e.setAttribute("data-language",t),p()(e,"lang-"+t)),n&&e.setAttribute("data-backticks",n),e.setAttribute(un,"")}))},t._onBackspaceKeyEventHandler=function(e,t){var n=!0,r=this.wwe.getEditor(),i=t.commonAncestorContainer;if(this._isCodeBlockFirstLine(t)&&!this._isFrontCodeblock(t))this._removeCodeblockFirstLine(i),t.collapse(!0),n=!1;else if(t.collapsed&&this._isEmptyLine(i)&&this._isBetweenSameCodeblocks(i)){var a=i.previousSibling,o=i.nextSibling,s=a.textContent.length;r.saveUndoState(t),i.parentNode.removeChild(i),this._mergeCodeblocks(a,o),t.setStart(a.childNodes[0],s),t.collapse(!0),n=!1}return n||(r.setSelection(t),e.preventDefault()),n},t._isEmptyLine=function(e){var t=e.nodeName,n=e.childNodes,r=on?""===e.textContent:1===n.length&&"BR"===n[0].nodeName;return"DIV"===t&&r},t._isBetweenSameCodeblocks=function(e){var t=e.previousSibling,n=e.nextSibling;return"PRE"===dt["a"].getNodeName(t)&&"PRE"===dt["a"].getNodeName(n)&&t.getAttribute("data-language")===n.getAttribute("data-language")},t._mergeCodeblocks=function(e,t){var n=t.textContent;e.childNodes[0].textContent+="\n"+n,t.parentNode.removeChild(t)},t._isCodeBlockFirstLine=function(e){return this.isInCodeBlock(e)&&e.collapsed&&0===e.startOffset},t._isFrontCodeblock=function(e){var t=dt["a"].getParentUntil(e.startContainer,this.wwe.getEditor().getRoot()),n=t.previousSibling;return n&&"PRE"===n.nodeName},t._removeCodeblockFirstLine=function(e){var t=this.wwe.getEditor(),n="PRE"===e.nodeName?e:e.parentNode,r=n.textContent.replace(cn,"");t.modifyBlocks((function(){var e=t.getDocument().createDocumentFragment(),i=r.split("\n"),a=document.createElement("div"),o=i.shift();if(a.innerHTML=""+hn(o)+sn,e.appendChild(a),i.length){var s=n.cloneNode();s.textContent=i.join("\n"),e.appendChild(s)}return e}))},t.isInCodeBlock=function(e){var t;return t=e.collapsed?e.startContainer:e.commonAncestorContainer,!!dt["a"].closest(t,"pre")},t.destroy=function(){var e=this;this.eventManager.removeEventHandler("wysiwygSetValueAfter.codeblock"),this.eventManager.removeEventHandler("wysiwygProcessHTMLText.codeblock"),i()(this._keyEventHandlers,(function(t,n){return e.wwe.removeKeyEventHandler(n,t)}))},e}();function hn(e){return e?e.replace(/[<>&]/g,(function(e){return ln[e]||e})):""}var fn=dn,pn=n(55),gn=n.n(pn);function mn(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var vn=/\b(H[\d]|LI|P|BLOCKQUOTE|TD)\b/,yn=/Trident\/[456]\./.test(navigator.userAgent),bn=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return t=e.call.apply(e,[this].concat(r))||this,t._decorateHandlerToCancelable("copy"),t._decorateHandlerToCancelable(yn?"beforecut":"cut"),t._decorateHandlerToCancelable(yn?"beforepaste":"paste"),t.getBody=function(){return t.body=t.body||t.getRoot(),t.body},t}mn(t,e);var n=t.prototype;return n._decorateHandlerToCancelable=function(e){var t=this._events[e];if(t.length>1)throw new Error("too many"+e+"handlers in squire");var n=t[0].bind(this);t[0]=function(e){e.defaultPrevented||e.squirePrevented||n(e)}},n.changeBlockFormat=function(e,t){var n=this;this.modifyBlocks((function(r){var i,a,o,s,l,c,u;if(r.childNodes.length?i=r.childNodes.item(0):(i=n.createDefaultBlock(),r.appendChild(i)),e){while(i.firstChild)i=i.firstChild;u=function(e){s.appendChild(e)};while(i!==r){var d=i;if(l=d.tagName,pe()(e)?e(l):l===e){s=i.childNodes.item(0),(!dt["a"].isElemNode(s)||i.childNodes.length>1)&&(s=n.createDefaultBlock(),Qe()(i.childNodes).forEach(u),c=s.lastChild,c&&"BR"===dt["a"].getNodeName(c)&&s.removeChild(c)),o=t?n.createElement(t,[s]):s,a=n.getDocument().createDocumentFragment(),a.appendChild(o),r=a;break}i=i.parentNode}}return a&&e||!t||"DIV"!==dt["a"].getNodeName(r.childNodes[0])||(r=n.createElement(t,[r.childNodes[0]])),r}))},n.changeBlockFormatTo=function(e){this.changeBlockFormat((function(e){return vn.test(e)}),e)},n.getCaretPosition=function(){return this.getCursorPosition()},n.replaceSelection=function(e,t){t&&this.setSelection(t),this._ignoreChange=!0,this.insertHTML(e)},n.replaceRelativeOffset=function(e,t,n){var r=this.getSelection().cloneRange();this._replaceRelativeOffsetOfSelection(e,t,n,r)},n._replaceRelativeOffsetOfSelection=function(e,t,n,r){var i,a,o,s=r.endContainer,l=r.endOffset;"TEXT"!==dt["a"].getNodeName(s)&&(s=this._getClosestTextNode(s,l),s&&(l=dt["a"].isTextNode(s)?s.nodeValue.length:s.textContent.length)),s?(i=this.getSelectionInfoByOffset(s,l+t),r.setStart(i.element,i.offset),o=l+(t+n),a=this.getSelectionInfoByOffset(s,o),r.setEnd(a.element,a.offset),this.replaceSelection(e,r)):this.replaceSelection(e)},n._getClosestTextNode=function(e,t){var n=dt["a"].getChildNodeByOffset(e,t-1);return"TEXT"!==dt["a"].getNodeName(n)&&(n=n.previousSibling),n},n.getSelectionInfoByOffset=function(e,t){var n,r,i,a,o=t>=0?"next":"previous",s=Math.abs(t),l=n;n="next"===o?e:e.previousSibling,i=s,a=0;while(n){if(r=dt["a"].isTextNode(n)?n.nodeValue.length:n.textContent.length,a+=r,s<=a)break;i-=r,dt["a"].getTextLength(n)>0&&(l=n),n=n[o+"Sibling"]}return n||(n=l,i=dt["a"].getTextLength(n)),"previous"===o&&(i=dt["a"].getTextLength(n)-i),{element:n,offset:i}},n.getSelectionPosition=function(e,t,n){var r=this.createElement("INPUT"),i=e.cloneRange(),a=this.getSelectionInfoByOffset(e.endContainer,e.endOffset+(n||0));i.setStart(i.startContainer,i.startOffset),i.setEnd(a.element,a.offset),this._ignoreChange=!0,this.insertElement(r,i);var o=dt["a"].getOffset(r);return"over"!==t&&(o.top+=r.offsetHeight),r.parentNode.removeChild(r),e.setStart(e.endContainer,e.endOffset),e.collapse(!0),this.setSelection(e),o},n.removeLastUndoStack=function(){this._undoStack.length&&(this._undoStackLength-=1,this._undoIndex-=1,this._undoStack.pop(),this._isInUndoState=!1)},n.replaceParent=function(e,t,n){var r=dt["a"].closest(e,t);r&&(dt["a"].wrapInner(r,n),dt["a"].unwrap(r))},n.preserveLastLine=function(){var e=this.getBody().children,t=e[e.length-1];t&&"DIV"!==dt["a"].getNodeName(t)&&(this._ignoreChange=!0,dt["a"].insertAfter(this.createDefaultBlock(),t))},n.scrollTop=function(e){return et()(e)||(this.getBody().scrollTop=e),this.getBody().scrollTop},n.isIgnoreChange=function(){return this._ignoreChange},n.focus=function(){gn.a.prototype.focus.call(this)},n.blockCommandShortcuts=function(){var e=this,t=_["b"]?"meta":"ctrl",n=["b","i","u","shift-7","shift-5","shift-6","shift-8","shift-9","[","]","d"];n.forEach((function(n){e.setKeyHandler(t+"-"+n,(function(e,t){t.preventDefault()}))}))},t}(gn.a),_n=bn,wn=it.a.msie&&11===it.a.version,Cn=-1!==navigator.appVersion.indexOf("Win")&&it.a.chrome,En=/Windows (NT )?10/g.test(navigator.appVersion),Sn=wn||Cn&&!En,Tn=function(){function e(e,t){this._wwe=e,Sn&&(this.isComposition=!1,this._initCompositionEvent()),this.setRange(t||this._wwe.getRange())}var t=e.prototype;return t._initCompositionEvent=function(){var e=this;this._wwe.getEditor().addEventListener("compositionstart",(function(){e.isComposition=!0})),this._wwe.getEditor().addEventListener("compositionend",(function(){e.isComposition=!1}))},t.setRange=function(e){this._range&&this._range.detach(),this._range=e},t.expandStartOffset=function(){var e=this._range;dt["a"].isTextNode(e.startContainer)&&e.startOffset>0&&e.setStart(e.startContainer,e.startOffset-1)},t.expandEndOffset=function(){var e=this._range;dt["a"].isTextNode(e.endContainer)&&e.endOffset<e.endContainer.nodeValue.length&&e.setEnd(e.endContainer,e.endOffset+1)},t.setEndBeforeRange=function(e){var t=e.startOffset;this.isComposition&&(t+=1),this._range.setEnd(e.startContainer,t)},t.getTextContent=function(){return this._range.cloneContents().textContent},t.replaceContent=function(e){this._wwe.getEditor().setSelection(this._range),this._wwe.getEditor().insertHTML(e),this._wwe.isInTable(this._range)&&this._wwe.eventManager.emit("wysiwygRangeChangeAfter",this._wwe),this._range=this._wwe.getRange()},t.deleteContent=function(){this._wwe.getEditor().setSelection(this._range),this._wwe.getEditor().insertHTML(""),this._range=this._wwe.getRange()},t.peekStartBeforeOffset=function(e){var t=this._range.cloneRange();return t.setStart(t.startContainer,Math.max(t.startOffset-e,0)),t.setEnd(this._range.startContainer,this._range.startOffset),t.cloneContents().textContent},e}(),kn=Tn,Nn=function(){function e(e){var t=e.eventManager,n=e.container,r=e.attachedSelector;this._eventManager=t,this._attachedSelector="[contenteditable=true] "+r,this._container=n,this._attachedElement=null,this.active=!1,this._createElement(),this._initEvent()}var t=e.prototype;return t._createElement=function(){this.el=dt["a"].createElementWith('<div class="te-ww-block-overlay"></div>'),h()(this.el,{position:"absolute",display:"none",zIndex:1}),dt["a"].append(this._container,this.el)},t._initEvent=function(){var e=this;this._eventManager.listen("change",this._onChange.bind(this)),this._eventManager.listen("mouseover",this._onMouseOver.bind(this)),this._eventManager.listen("focus",(function(){e.setVisibility(!1)})),this._eventManager.listen("mousedown",(function(){e.setVisibility(!1)}))},t._onChange=function(){this._attachedElement&&dt["a"].isContain(document.body,this._attachedElement)?this.syncLayout():this.setVisibility(!1)},t._onMouseOver=function(e){var t=e.data,n=t.target,r=dt["a"].closest(n,this._attachedSelector);r?(this._attachedElement=r,this.setVisibility(!0)):dt["a"].closest(n,this.el)?this.setVisibility(!0):this.active||this.setVisibility(!1)},t.syncLayout=function(){var e=dt["a"].getOffset(this._attachedElement),t=dt["a"].getOuterWidth(this._attachedElement),n=dt["a"].getOuterHeight(this._attachedElement);dt["a"].setOffset(this.el,e),h()(this.el,{width:t+"px"}),h()(this.el,{height:n+"px"})},t.getAttachedElement=function(){return this._attachedElement||null},t.getVisibility=function(){return"block"===this.el.style.display},t.setVisibility=function(e){e&&this._attachedElement?this.getVisibility()||(h()(this.el,{display:"block"}),this.syncLayout(),this.onShow()):e||this.getVisibility()&&(h()(this.el,{display:"none"}),this.onHide())},t.onShow=function(){},t.onHide=function(){this.active=!1,this._attachedElement=null},e}(),xn=Nn;function Ln(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var On=26,Mn=250,An=30,Dn=function(e){function t(t){var n,r=t.eventManager,i=t.container,a=t.wysiwygEditor;return n=e.call(this,{eventManager:r,container:i,attachedSelector:"pre"})||this,n._wysiwygEditor=a,n._popupCodeBlockLanguages=null,n._initDOM(),n._initDOMEvent(),n}Ln(t,e);var n=t.prototype;return n._initDOM=function(){var e=this;p()(this.el,"code-block-header"),this._languageLabel=dt["a"].createElementWith("<span>text</span>"),dt["a"].append(this.el,this._languageLabel),this._buttonOpenModalEditor=dt["a"].createElementWith('<button type="button">Editor</button>'),dt["a"].append(this.el,this._buttonOpenModalEditor),this._eventManager.emit("removeEditor",(function(){ut()(e._buttonOpenModalEditor,"click"),e._buttonOpenModalEditor=null}))},n._initDOMEvent=function(){var e=this;lt()(this._buttonOpenModalEditor,"click",(function(){return e._openPopupCodeBlockEditor()}))},n._openPopupCodeBlockEditor=function(){this._eventManager.emit("openPopupCodeBlockEditor",this.getAttachedElement())},n._updateLanguage=function(){var e=this.getAttachedElement(),t=e?e.getAttribute("data-language"):null;this._languageLabel.textContent=t||"text"},n.syncLayout=function(){var e=this.getAttachedElement(),t=dt["a"].getOffset(e,".te-editor"),n=t.top;h()(this.el,{top:n+"px",right:On+"px",width:Mn+"px",height:An+"px"})},n.onShow=function(){var t=this;e.prototype.onShow.call(this),this._onAttachedElementChange=function(){return t._updateLanguage()},this._eventManager.listen("changeLanguage",this._onAttachedElementChange),this._updateLanguage()},n.onHide=function(){this._eventManager.removeEventHandler("changeLanguage",this._onAttachedElementChange),e.prototype.onHide.call(this)},t}(xn),Bn=Dn,In=K.getSharedInstance(),Rn=/<([a-z]+|h\d)>(<br>|<br \/>)<\/\1>/gi,Pn=/(?:<br>|<br \/>)<\/(.+?)>/gi,Fn=/\b(H[\d]|LI|P|BLOCKQUOTE|TD|PRE)\b/,Hn=/<span([^>]*)>[\u0020]/g,jn=/[\u0020]<\/span>/g,Un=/^(TABLE|H[1-6])$/,qn="tui-editor-contents",Vn="tui-editor-contents-placeholder",Wn="undefined"!==typeof MutationObserver,$n=function(){function e(e,t,n){var r=this;void 0===n&&(n={}),this.componentManager=new ce(this),this.eventManager=t,this.editorContainerEl=e,this._height=0,this._silentChange=!1,this._keyEventHandlers={},this._managers={},this._linkAttribute=n.linkAttribute||{},this._sanitizer=n.sanitizer,this._initEvent(),this._initDefaultKeyEventHandler(),this.debouncedPostProcessForChange=ot()((function(){return r.postProcessForChange()}),0)}var t=e.prototype;return t.init=function(){var e=document.createElement("div");this.editorContainerEl.appendChild(e),this.editor=new _n(e,{blockTag:"DIV",leafNodeNames:{HR:!1},allowedBlocks:this._sanitizer?[]:["details","summary"]}),this.editor.blockCommandShortcuts(),this._clipboardManager=new Et(this),this._initSquireEvent(),this._clipboardManager.init(),p()(this.getBody(),qn),h()(this.editorContainerEl,"position","relative"),this._togglePlaceholder(),this.codeBlockGadget=new Bn({eventManager:this.eventManager,container:this.editorContainerEl,wysiwygEditor:this})},t._initEvent=function(){var e=this;this.eventManager.listen("wysiwygKeyEvent",(function(t){return e._runKeyEventHandlers(t.data,t.keyMap)})),this.eventManager.listen("wysiwygRangeChangeAfter",(function(){return e.scrollIntoCursor()})),this.eventManager.listen("contentChangedFromWysiwyg",(function(){e._togglePlaceholder()}))},t.addKeyEventHandler=function(e,t){var n=this;t||(t=e,e="DEFAULT"),nt()(e)||(e=[e]),e.forEach((function(e){n._keyEventHandlers[e]||(n._keyEventHandlers[e]=[]),n._keyEventHandlers[e].push(t)}))},t.removeKeyEventHandler=function(e,t){t||(t=e,e="DEFAULT");var n=this._keyEventHandlers[e];n&&(this._keyEventHandlers[e]=n.filter((function(e){return e!==t})))},t._runKeyEventHandlers=function(e,t){var n,r,i=this.getRange();n=this._keyEventHandlers.DEFAULT,n&&Xe()(n,(function(n){return r=n(e,i,t),r})),n=this._keyEventHandlers[t],n&&!1!==r&&Xe()(n,(function(n){return n(e,i,t)}))},t._initSquireEvent=function(){var e=this,t=this.getEditor(),n=!1;t.addEventListener("copy",(function(t){e.eventManager.emit("copy",{source:"wysiwyg",data:t}),ot()((function(){e.isEditorValid()&&e.eventManager.emit("copyAfter",{source:"wysiwyg",data:t})}))()})),t.addEventListener(it.a.msie?"beforecut":"cut",(function(t){e.eventManager.emit("cut",{source:"wysiwyg",data:t}),ot()((function(){e.isEditorValid()&&e.eventManager.emit("cutAfter",{source:"wysiwyg",data:t})}))()})),t.addEventListener(it.a.msie?"beforepaste":"paste",(function(t){e.eventManager.emit("paste",{source:"wysiwyg",data:t})})),t.addEventListener("dragover",(function(e){return e.preventDefault(),!1})),t.addEventListener("drop",(function(t){return t.preventDefault(),e.eventManager.emit("drop",{source:"wysiwyg",data:t}),!1})),t.addEventListener("input",ot()((function(){if(e.isEditorValid()){if(e._silentChange)e._silentChange=!1;else{var t={source:"wysiwyg"};e.eventManager.emit("changeFromWysiwyg",t),e.eventManager.emit("change",t),e.eventManager.emit("contentChangedFromWysiwyg",e)}e.getEditor().preserveLastLine()}}),0)),t.addEventListener("keydown",(function(t){var r=e.getEditor().getSelection();r.collapsed||(n=!0),e.eventManager.emit("keydown",{source:"wysiwyg",data:t}),e._onKeyDown(t)})),it.a.firefox&&(t.addEventListener("keypress",(function(t){var r=t.keyCode;if(13===r||9===r){var i=e.getEditor().getSelection();i.collapsed||(n=!0),e.eventManager.emit("keydown",{source:"wysiwyg",data:t}),e._onKeyDown(t)}})),t.addEventListener("keyup",(function(){var t=e.getRange();if(dt["a"].isTextNode(t.commonAncestorContainer)&&dt["a"].isTextNode(t.commonAncestorContainer.previousSibling)){var n=t.commonAncestorContainer.previousSibling.length,r=t.commonAncestorContainer;t.commonAncestorContainer.previousSibling.appendData(t.commonAncestorContainer.data),t.setStart(t.commonAncestorContainer.previousSibling,n+t.startOffset),t.collapse(!0),dt["a"].remove(r),e.setRange(t),t.detach()}}))),t.addEventListener("keyup",(function(t){n&&(e.debouncedPostProcessForChange(),n=!1),e.eventManager.emit("keyup",{source:"wysiwyg",data:t})})),lt()(this.editorContainerEl,"scroll",(function(t){e.eventManager.emit("scroll",{source:"wysiwyg",data:t})})),t.addEventListener("click",(function(t){e.eventManager.emit("click",{source:"wysiwyg",data:t})})),t.addEventListener("mousedown",(function(t){e.eventManager.emit("mousedown",{source:"wysiwyg",data:t})})),t.addEventListener("mouseover",(function(t){e.eventManager.emit("mouseover",{source:"wysiwyg",data:t})})),t.addEventListener("mouseout",(function(t){e.eventManager.emit("mouseout",{source:"wysiwyg",data:t})})),t.addEventListener("mouseup",(function(t){e.eventManager.emit("mouseup",{source:"wysiwyg",data:t})})),t.addEventListener("contextmenu",(function(t){e.eventManager.emit("contextmenu",{source:"wysiwyg",data:t})})),t.addEventListener("focus",(function(){e.eventManager.emit("focus",{source:"wysiwyg"})})),t.addEventListener("blur",(function(){e.fixIMERange(),e.eventManager.emit("blur",{source:"wysiwyg"})})),t.addEventListener("pathChange",(function(t){var n={strong:/(^B>|>B$|>B>|^B$|STRONG)/.test(t.path),emph:/(>I|>EM|^I$|^EM$)/.test(t.path),strike:/(^S>|>S$|>S>|^S$|DEL)/.test(t.path),code:/CODE/.test(t.path),codeBlock:/PRE/.test(t.path),blockQuote:/BLOCKQUOTE/.test(t.path),table:/TABLE/.test(t.path),heading:/H[1-6]/.test(t.path),list:/UL>LI(?!.task-list-item)/.test(t.path),orderedList:/OL>LI(?!.task-list-item)/.test(t.path),taskList:/[UL|OL]>LI.task-list-item/.test(t.path),source:"wysiwyg"};e.eventManager.emit("stateChange",n)})),t.addEventListener("willPaste",(function(t){t.fragment&&e.eventManager.emit("willPaste",{source:"wysiwyg",data:t})}))},t._togglePlaceholder=function(){var e=this.getEditor();e.modifyDocument((function(){var t=e.getRoot();t.textContent||t.childNodes.length>1?t.classList.remove(Vn):t.classList.add(Vn)}))},t._onKeyDown=function(e){var t=In.convert(e);e.keyCode&&(this.eventManager.emit("keyMap",{source:"wysiwyg",keyMap:t,data:e}),e.defaultPrevented||this.eventManager.emit("wysiwygKeyEvent",{keyMap:t,data:e}))},t._initDefaultKeyEventHandler=function(){var e=this;this.addKeyEventHandler("ENTER",(function(t,n){e._isInOrphanText(n)&&e.defer((function(){e._wrapDefaultBlockToOrphanTexts(),e.breakToNewDefaultBlock(n,"before")})),e.defer((function(){return e.scrollIntoCursor()}))})),this.addKeyEventHandler("TAB",(function(t){var n=e.getEditor(),r=n.getSelection(),i=r.collapsed&&e._isCursorNotInRestrictedAreaOfTabAction(n),a=!r.collapsed&&dt["a"].isTextNode(r.commonAncestorContainer);return t.preventDefault(),!i&&!a||(n.insertPlainText("    "),!1)})),this.addKeyEventHandler("BACK_SPACE",(function(t,n,r){return e._handleRemoveKeyEvent(t,n,r)})),this.addKeyEventHandler("DELETE",(function(t,n,r){return e._handleRemoveKeyEvent(t,n,r)}))},t._handleRemoveKeyEvent=function(e,t,n){var r=this.getEditor();if(this._isStartHeadingOrTableAndContainsThem(t)){var i="BACK_SPACE"===n?"backspace":"delete";return r.removeAllFormatting(),r._keyHandlers[i](r,e,r.getSelection()),r.removeLastUndoStack(),!1}return!0},t._isStartHeadingOrTableAndContainsThem=function(e){var t=e.startContainer,n=e.startOffset,r=e.commonAncestorContainer,i=e.collapsed,a=this.getEditor().getRoot(),o=!1;return i||r!==a||(t===a?o=Un.test(dt["a"].getChildNodeByOffset(t,n).nodeName):0===n&&(o=Un.test(dt["a"].getParentUntil(t,a).nodeName))),o},t._wrapDefaultBlockToOrphanTexts=function(){var e=Qe()(this.getBody().childNodes).filter((function(e){return dt["a"].isTextNode(e)}));dt["a"].getAllTextNode(this.getBody()),e.forEach((function(e){e.nextSibling&&"BR"===e.nextSibling.tagName&&dt["a"].remove(e.nextSibling),dt["a"].wrap(e,document.createElement("div"))}))},t._isInOrphanText=function(e){return e.startContainer.nodeType===Node.TEXT_NODE&&e.startContainer.parentNode===this.getBody()},t._wrapDefaultBlockTo=function(e){this.saveSelection(e),this._joinSplitedTextNodes(),this.restoreSavedSelection(),e=this.getRange();var t=e.startContainer,n=e.startOffset,r=this.getEditor().createDefaultBlock([e.startContainer]),i=dt["a"].getChildNodeByOffset(e.startContainer,e.startOffset);i?e.setStartBefore(i):e.selectNodeContents(e.startContainer),e.collapse(!0),e.insertNode(r),e.setStart(t,n),e.collapse(!0),this.setRange(e)},t._joinSplitedTextNodes=function(){var e,t,n=[],r=Qe()(this.getBody().childNodes).filter((function(e){return dt["a"].isTextNode(e)}));r.forEach((function(r){e===r.previousSibling?(t.nodeValue+=r.nodeValue,n.push(r)):t=r,e=r})),dt["a"].remove(n)},t.saveSelection=function(e){e||(e=this.getRange()),this.getEditor()._saveRangeToBookmark(e)},t.setSelectionByContainerAndOffset=function(e,t,n,r){var i=this.getEditor(),a=i.getSelection();return a.setStart(e,t),a.setEnd(n,r),i.setSelection(a),a},t.restoreSavedSelection=function(){this.setRange(this.getEditor()._getRangeAndRemoveBookmark())},t.reset=function(){this.setValue("")},t.changeBlockFormatTo=function(e){this.getEditor().changeBlockFormatTo(e),this.eventManager.emit("wysiwygRangeChangeAfter",this)},t.makeEmptyBlockCurrentSelection=function(){var e=this;this.getEditor().modifyBlocks((function(t){return t.textContent||(t=e.getEditor().createDefaultBlock()),t}))},t.focus=function(){var e=this.scrollTop();this.editor.focus(),e!==this.scrollTop()&&this.scrollTop(e)},t.blur=function(){this.editor.blur()},t.remove=function(){ut()(this.editorContainerEl,"scroll"),this.getEditor().destroy(),this.editor=null,this.body=null,this.eventManager=null},t.setHeight=function(e){this._height=e,h()(this.editorContainerEl,{overflow:"auto",height:"100%"}),h()(this.editorContainerEl.parentNode,{height:l()(e)?e+"px":e});var t=this.editorContainerEl.style,n=this.getBody().style,r=parseInt(t.paddingTop,10)-parseInt(t.paddingBottom,10),i=parseInt(n.marginTop,10)-parseInt(n.marginBottom,10);h()(this.getBody(),{minHeight:e-i-r+"px"})},t.setMinHeight=function(e){var t=this.getBody();h()(t,"minHeight",e+"px")},t.setPlaceholder=function(e){e&&this.getEditor().getRoot().setAttribute("data-placeholder",e)},t.getLinkAttribute=function(){return this._linkAttribute},t.setValue=function(e,t){void 0===t&&(t=!0),e=this.eventManager.emitReduce("wysiwygSetValueBefore",e),this.editor.setHTML(e),this.eventManager.emit("wysiwygSetValueAfter",this),this.eventManager.emit("contentChangedFromWysiwyg",this),t&&this.moveCursorToEnd(),this.getEditor().preserveLastLine(),this.getEditor().removeLastUndoStack(),this.getEditor().saveUndoState()},t.insertText=function(e){this.editor.insertPlainText(e)},t.getValue=function(){this._prepareGetHTML();var e=this.editor.getHTML();return e=e.replace(Rn,(function(e,t){var n;return n="li"===t?e:"td"===t||"th"===t?"<"+t+"></"+t+">":"<br />",n})),e=e.replace(Hn,"<span$1>&nbsp;"),e=e.replace(jn,"&nbsp;</span>"),e=e.replace(Pn,"</$1>"),e=e.replace(/<div[^>]*>/g,""),e=e.replace(/<\/div>/g,"<br />"),e=this.eventManager.emitReduce("wysiwygProcessHTMLText",e),e},t._prepareGetHTML=function(){var e=this;this.getEditor().modifyDocument((function(){e._joinSplitedTextNodes(),e.eventManager.emit("wysiwygGetValueBefore",e)}))},t.postProcessForChange=function(){var e=this;this.isEditorValid()&&this.getEditor().modifyDocument((function(){e.eventManager.emit("wysiwygRangeChangeAfter",e)}))},t.readySilentChange=function(){Wn&&!this.getEditor().isIgnoreChange()&&(this._silentChange=!0)},t.getEditor=function(){return this.editor},t.replaceSelection=function(e,t){this.getEditor().replaceSelection(e,t)},t.replaceRelativeOffset=function(e,t,n){this.getEditor().replaceRelativeOffset(e,t,n)},t.addWidget=function(e,t,n,r){var i=this.getEditor().getSelectionPosition(e,n,r),a=dt["a"].getOffset(this.editorContainerEl);this.editorContainerEl.appendChild(t),h()(t,{position:"absolute",top:i.top-a.top+this.scrollTop()+"px",left:i.left-a.left+"px"})},t.getBody=function(){return this.getEditor().getBody()},t.hasFormatWithRx=function(e){return this.getEditor().getPath().match(e)},t.breakToNewDefaultBlock=function(e,t){var n=this.editor.createDefaultBlock(),r=dt["a"].getChildNodeByOffset(e.startContainer,e.startOffset)||dt["a"].getChildNodeByOffset(e.startContainer,e.startOffset-1),i=dt["a"].getParentUntil(r,this.getBody());"before"===t?dt["a"].insertBefore(n,i):dt["a"].insertAfter(n,i),e.setStart(n,0),e.collapse(!0),this.setRange(e)},t.replaceContentText=function(e,t,n){var r=e.innerHTML;e.innerHTML=r.replace(t,n)},t.unwrapBlockTag=function(e){e||(e=function(e){return Fn.test(e)}),this.getEditor().changeBlockFormat(e),this.eventManager.emit("wysiwygRangeChangeAfter",this)},t.scrollIntoCursor=function(){var e=this.scrollTop(),t=this.getEditor().getCursorPosition(),n=t.top,r=t.height,i=this.editorContainerEl.getBoundingClientRect(),a=i.top,o=i.height,s=n-a,l=n+r-(a+o);s<0?this.scrollTop(e+s):l>0&&this.scrollTop(Math.ceil(e+l))},t.moveCursorToEnd=function(){this.getEditor().moveCursorToEnd(),this.scrollIntoCursor(),this._correctRangeAfterMoveCursor("end")},t.moveCursorToStart=function(){this.getEditor().moveCursorToStart(),this.scrollTop(0)},t.scrollTop=function(e){return et()(e)||(this.editorContainerEl.scrollTop=e),this.editorContainerEl.scrollTop},t._correctRangeAfterMoveCursor=function(e){var t=this.getRange(),n=this.getBody();if("start"===e)while(n.firstChild)n=n.firstChild;else while(n.lastChild)n=n.lastChild;"BR"===n.tagName?t.setStartBefore(n):t.setStartAfter(n),t.collapse(!0),this.setRange(t)},t.getRange=function(){return this.getEditor().getSelection().cloneRange()},t.getIMERange=function(){var e,t=getSelection();return t&&t.rangeCount&&(e=t.getRangeAt(0).cloneRange()),e},t.fixIMERange=function(){var e=this.getIMERange();if(e){var t=dt["a"].getParentUntil(e.commonAncestorContainer,this.editorContainerEl),n=!(!t||!t.parentNode);n&&this.setRange(e)}},t.setRange=function(e){this.getEditor().setSelection(e)},t.isInTable=function(e){var t=e.collapsed?e.startContainer:e.commonAncestorContainer;return!!dt["a"].closest(t,"[contenteditable=true] table")},t.getTextObject=function(e){return new kn(this,e)},t.defer=function(e,t){var n=this,r=t||0;setTimeout((function(){n.isEditorValid()&&e(n)}),r)},t.isEditorValid=function(){return this.getEditor()&&dt["a"].isContain(document.body,this.editorContainerEl)},t._isCursorNotInRestrictedAreaOfTabAction=function(e){return!e.hasFormat("li")&&!e.hasFormat("blockquote")&&!e.hasFormat("table")},t.getSanitizer=function(){return this._sanitizer},e.factory=function(t,n,r){var i=new e(t,n,r);return i.init(),i.componentManager.addManager(Ot),i.componentManager.addManager(Pt),i.componentManager.addManager(Gt),i.componentManager.addManager($t),i.componentManager.addManager(Qt),i.componentManager.addManager(Xt),i.componentManager.addManager(nn),i.componentManager.addManager(fn),i},e}(),zn=$n,Kn=['<div class="tui-editor">','<div class="te-md-container">','<div class="te-editor"></div>','<div class="te-md-splitter"></div>','<div class="te-preview"></div>',"</div>",'<div class="te-ww-container">','<div class="te-editor"></div>',"</div>","</div>"].join(""),Gn=function(){function e(e,t){this.el=e.el,this.height=e.height,this.type=e.initialEditType,this.eventManager=t,this.init(),this._initEvent()}var t=e.prototype;return t.init=function(){this._renderLayout(),this._initMarkdownAndPreviewSection(),this._initWysiwygSection()},t._initEvent=function(){this.eventManager.listen("hide",this.hide.bind(this)),this.eventManager.listen("show",this.show.bind(this))},t._renderLayout=function(){h()(this.el,{boxSizing:"border-box"}),this.containerEl=dt["a"].createElementWith(Kn,this.el)},t.switchToWYSIWYG=function(){m()(this.containerEl,"te-md-mode"),p()(this.containerEl,"te-ww-mode")},t.switchToMarkdown=function(){m()(this.containerEl,"te-ww-mode"),p()(this.containerEl,"te-md-mode")},t._initMarkdownAndPreviewSection=function(){this.mdEditorContainerEl=this.containerEl.querySelector(".te-md-container .te-editor"),this.previewEl=this.containerEl.querySelector(".te-md-container .te-preview")},t._initWysiwygSection=function(){this.wwEditorContainerEl=this.containerEl.querySelector(".te-ww-container .te-editor")},t._verticalSplitStyle=function(){var e=this.containerEl.querySelector(".te-md-container");m()(e,"te-preview-style-tab"),p()(e,"te-preview-style-vertical")},t._tabStyle=function(){var e=this.containerEl.querySelector(".te-md-container");m()(e,"te-preview-style-vertical"),p()(e,"te-preview-style-tab")},t.changePreviewStyle=function(e){"tab"===e?this._tabStyle():"vertical"===e&&this._verticalSplitStyle()},t.hide=function(){p()(this.el.querySelector(".tui-editor"),"te-hide")},t.show=function(){m()(this.el.querySelector(".tui-editor"),"te-hide")},t.remove=function(){dt["a"].remove(this.el.querySelector(".tui-editor"))},t.getEditorEl=function(){return this.containerEl},t.getPreviewEl=function(){return this.previewEl},t.getMdEditorContainerEl=function(){return this.mdEditorContainerEl},t.getWwEditorContainerEl=function(){return this.wwEditorContainerEl},e}(),Jn=Gn,Qn=n(36),Yn=n(1),Xn=n(14),Zn=n.n(Xn),er=/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})(\/([^\s]*))?$/g,tr=function(){function e(e){this.eventManager=e,this._initEvent(),this._initDefaultImageImporter()}e.decodeURIGraceful=function(e){var t,n=e.split(" "),r=[];return Xe()(n,(function(e){try{t=decodeURIComponent(e),t=t.replace(/ /g,"%20")}catch(n){t=e}return r.push(t)})),r.join(" ")},e.encodeMarkdownCharacters=function(e){return e.replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\[/g,"%5B").replace(/\]/g,"%5D").replace(/</g,"%3C").replace(/>/g,"%3E")},e.escapeMarkdownCharacters=function(e){return e.replace(/\(/g,"\\(").replace(/\)/g,"\\)").replace(/\[/g,"\\[").replace(/\]/g,"\\]").replace(/</g,"\\<").replace(/>/g,"\\>")};var t=e.prototype;return t._initEvent=function(){var e=this;this.eventManager.listen("drop",(function(t){var n=t.data.dataTransfer&&t.data.dataTransfer.files;e._processBlobItems(n,t.data)})),this.eventManager.listen("willPaste",(function(t){var n=t.data.fragment,r=n.querySelectorAll("*");if(1===r.length&&"IMG"===r[0].tagName&&/^data:image/.test(r[0].src)){t.data.preventDefault();var i=nr(r[0].src);e._emitAddImageBlobHook(i,"paste")}})),this.eventManager.listen("paste",(function(t){e._processClipboard(t.data)})),this.eventManager.listen("pasteBefore",(function(t){e._decodeURL(t)}))},t._initDefaultImageImporter=function(){this.eventManager.listen("addImageBlobHook",(function(e,t){var n=new FileReader;n.onload=function(e){t(e.target.result)},n.readAsDataURL(e)}))},t._emitAddImageBlobHook=function(e,t){var n=this;this.eventManager.emit("addImageBlobHook",e,(function(t,r){n.eventManager.emit("command","AddImage",{imageUrl:t,altText:r||e.name||"image"})}),t)},t._decodeURL=function(t){var n=e.decodeURIGraceful,r=e.encodeMarkdownCharacters;if("markdown"===t.source&&t.data.text){var i=t.data.text,a=i[0];1===i.length&&a.match(er)&&(a=n(a),a=r(a),t.data.update(null,null,[a]))}else if("wysiwyg"===t.source){var o=t.clipboardContainer,s=o.childNodes,l=s[0],c=l.innerText;1===o.childNodes.length&&"A"===l.tagName&&c.match(er)&&(l.innerText=n(c),l.href=r(l.href))}},t._processClipboard=function(e){var t=e.clipboardData||window.clipboardData,n=t&&t.items,r=t.types;n&&r&&1===r.length&&-1!==Zn()("Files",[].slice.call(r))&&this._processBlobItems(n,e)},t._processBlobItems=function(e,t){var n=this;e&&Xe()(e,(function(e){if(-1!==e.type.indexOf("image")){t.preventDefault(),t.stopPropagation(),t.codemirrorIgnore=!0;var r=e.name?e:e.getAsFile();return n._emitAddImageBlobHook(r,t.type),!1}return!0}))},e}();function nr(e){for(var t=atob(e.split(",")[1]),n=new ArrayBuffer(t.length),r=new Uint8Array(n),i=0;i<t.length;i+=1)r[i]=t.charCodeAt(i);var a=e.split(","),o=a[0],s=new Blob([n],{type:o.split(":")[1].split(";")[0]});return s}var rr=tr,ir=n(37),ar=n(46),or=n(23),sr="en-US",lr=function(){function e(){this._code=sr,this._langs=new or["a"]}var t=e.prototype;return t.setCode=function(e){this._code=e},t.setLanguage=function(e,t){var n=this;e=[].concat(e),e.forEach((function(e){if(n._langs.has(e)){var r=n._langs.get(e);n._langs.set(e,u()(r,t))}else n._langs.set(e,t)}))},t.get=function(e,t){t||(t=this._code);var n=this._langs.get(t);n||(n=this._langs.get(sr));var r=n[e];if(!r)throw new Error('There is no text key "'+e+'" in '+t);return r},e}(),cr=new lr,ur=n(57),dr=n(9),hr=n.n(dr),fr=n(54),pr=n.n(fr),gr=n(58),mr=n.n(gr);function vr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yr=["click","mousedown","mousemove","mouseup","mouseover","mouseout","scroll"],br=-1;function _r(){return br+=1,br}var wr=function(){function e(e){void 0===e&&(e={}),vr(this,"tagName",void 0),vr(this,"className",void 0),vr(this,"el",void 0),vr(this,"_id",void 0),e=u()({tagName:"div"},e),this.tagName=e.tagName,this.className=e.className,this._id=_r(),this.customEventManager=new mr.a,this._setRootElement(e.rootElement)}var t=e.prototype;return t.on=function(e,t){var n=this;pr()(e)?i()(e,(function(e,t){n._addEvent(t,e)})):this._addEvent(e,t)},t._bindDomEvent=function(e,t,n){t?dt["a"].findAll(this.el,t).forEach((function(t){lt()(t,e,n)})):lt()(this.el,e,n)},t._addEvent=function(e,t){var n=this._parseEventType(e),r=n.event,i=n.selector;Zn()(r,yr)>-1?this._bindDomEvent(r,i,t):this.customEventManager.on(r,t)},t._unbindDomEvent=function(e,t,n){t?dt["a"].findAll(this.el,t).forEach((function(t){ut()(t,e,n)})):ut()(this.el,e,n)},t.off=function(e,t){var n=this._parseEventType(e),r=n.event,i=n.selector;Zn()(r,yr)>-1?this._unbindDomEvent(r,i,t):this.customEventManager.off(r,t)},t._parseEventType=function(e){var t=e.split(" "),n=t.shift(),r=t.join(" ");return{event:n,selector:r}},t._setRootElement=function(e){if(!e){var t=this.tagName;e=document.createElement(t),e.className=this.className||"uic"+this._id}this.el=e},t.trigger=function(e,t){this.customEventManager.fire(e,t)},t.remove=function(){this.el&&dt["a"].remove(this.el)},t.destroy=function(){var e=this;this.remove(),i()(this,(function(t,n){e[n]=null}))},e}(),Cr=wr;function Er(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Sr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Tr=function(e){function t(n){var r;return void 0===n&&(n={name:t.name}),r=e.call(this,u()({className:t.className},n))||this,r._name=n.name,r}Er(t,e);var n=t.prototype;return n.getName=function(){return this._name},t}(Cr);Sr(Tr,"name","item"),Sr(Tr,"className","tui-toolbar-item");var kr=Tr,Nr='<div class="arrow"></div><span class="text"></span></span>',xr=7,Lr=function(){function e(){this.el=dt["a"].createElementWith('<div class="tui-tooltip">'+Nr+"</div>"),document.body.appendChild(this.el),this.hide()}var t=e.prototype;return t.show=function(e,t){var n=e.getBoundingClientRect(),r=n.left+window.pageXOffset,i=n.top+window.pageYOffset;h()(this.el,{top:i+e.clientHeight+xr+"px",left:r+3+"px"}),this.el.querySelector(".text").innerHTML=t,h()(this.el,{display:"block"})},t.hide=function(){h()(this.el,{display:"none"})},t.remove=function(){dt["a"].remove(this.el)},e}(),Or=new Lr;function Mr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ar(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Dr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Br=function(e){function t(n){var r;return void 0===n&&(n={tagName:"button",name:t.name}),r=e.call(this,{name:n.name,tagName:"button",className:n.className+" "+t.className,rootElement:n.el})||this,r._setOptions(n),r._render(),r.on("click",r._onClick.bind(Mr(r))),n.tooltip&&(r.on("mouseover",r._onOver.bind(Mr(r))),r.on("mouseout",r._onOut.bind(Mr(r)))),r}Ar(t,e);var n=t.prototype;return n.setTooltip=function(e){this._tooltip=e},n._setOptions=function(e){this._command=e.command,this._event=e.event,this._text=e.text,this._tooltip=e.tooltip,this._style=e.style,this._state=e.state},n._render=function(){var e=document.createTextNode(this._text||"");this.el.appendChild(e),this.el.setAttribute("type","button"),this._style&&this.el.setAttribute("style",this._style)},n._onClick=function(){this.isEnabled()&&(this._command?this.trigger("command",this._command):this._event&&this.trigger("event",this._event),this.trigger("clicked"))},n._onOver=function(){this.isEnabled()&&Or.show(this.el,this._tooltip)},n._onOut=function(){Or.hide()},n.enable=function(){this.el.disabled=!1},n.disable=function(){this.el.disabled=!0},n.isEnabled=function(){return!this.el.disabled},t}(kr);Dr(Br,"name","button"),Dr(Br,"className","tui-toolbar-icons");var Ir=Br;function Rr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Pr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Fr=function(e){function t(){return e.call(this,{name:t.name,tagName:"div",className:t.className})||this}return Rr(t,e),t}(kr);Pr(Fr,"name","divider"),Pr(Fr,"className","tui-toolbar-divider");var Hr=Fr,jr=function(){function e(){}return e.create=function(e,t){var n;switch(e){case"heading":n=new Ir({name:"heading",className:"tui-heading",event:"openHeadingSelect",tooltip:cr.get("Headings"),state:"heading"});break;case"bold":n=new Ir({name:"bold",className:"tui-bold",command:"Bold",tooltip:cr.get("Bold"),state:"strong"});break;case"italic":n=new Ir({name:"italic",className:"tui-italic",command:"Italic",tooltip:cr.get("Italic"),state:"emph"});break;case"strike":n=new Ir({name:"strike",className:"tui-strike",command:"Strike",tooltip:cr.get("Strike"),state:"strike"});break;case"hr":n=new Ir({name:"hr",className:"tui-hrline",command:"HR",tooltip:cr.get("Line"),state:"thematicBreak"});break;case"quote":n=new Ir({name:"quote",className:"tui-quote",command:"Blockquote",tooltip:cr.get("Blockquote"),state:"blockQuote"});break;case"ul":n=new Ir({name:"ul",className:"tui-ul",command:"UL",tooltip:cr.get("Unordered list"),state:"list"});break;case"ol":n=new Ir({name:"ol",className:"tui-ol",command:"OL",tooltip:cr.get("Ordered list"),state:"orderedList"});break;case"task":n=new Ir({name:"task",className:"tui-task",command:"Task",tooltip:cr.get("Task"),state:"taskList"});break;case"table":n=new Ir({name:"table",className:"tui-table",event:"openPopupAddTable",tooltip:cr.get("Insert table"),state:"table"});break;case"image":n=new Ir({name:"image",className:"tui-image",event:"openPopupAddImage",tooltip:cr.get("Insert image"),state:""});break;case"link":n=new Ir({name:"link",className:"tui-link",event:"openPopupAddLink",tooltip:cr.get("Insert link")});break;case"code":n=new Ir({name:"code",className:"tui-code",command:"Code",tooltip:cr.get("Code"),state:"code"});break;case"codeblock":n=new Ir({name:"codeblock",className:"tui-codeblock",command:"CodeBlock",tooltip:cr.get("Insert CodeBlock"),state:"codeBlock"});break;case"indent":n=new Ir({name:"indent",className:"tui-indent",command:"Indent",tooltip:cr.get("Indent")});break;case"outdent":n=new Ir({name:"outdent",className:"tui-outdent",command:"Outdent",tooltip:cr.get("Outdent")});break;case"divider":n=new Hr;break;case"button":n=new Ir(t);break;case"item":default:n=new kr(t)}return n},e}(),Ur=jr;function qr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Vr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function Wr(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var $r=function(e){function t(t,n){var r;return void 0===n&&(n=[]),r=e.call(this,{tagName:"div",className:"tui-editor-defaultUI-toolbar"})||this,Wr(qr(r),"_items",[]),Wr(qr(r),"_eventManager",void 0),r._eventManager=t,r.setItems(n),r._initEvent(t),r}Vr(t,e);var n=t.prototype;return n._initEvent=function(e){var t=this;e.listen("stateChange",(function(e){t._items.forEach((function(t){t._state&&dt["a"].toggleClass(t.el,"active",!!e[t._state])}))})),e.listen("changePreviewTabPreview",(function(){return t.disableAllButton()})),e.listen("changePreviewTabWrite",(function(){return t.enableAllButton()})),e.listen("changeMode",(function(){return t.enableAllButton()}))},n.disableAllButton=function(){this._items.forEach((function(e){e instanceof Ir&&e.disable()}))},n.enableAllButton=function(){this._items.forEach((function(e){e instanceof Ir&&e.enable()}))},n.getItems=function(){return this._items.slice(0)},n.getItem=function(e){return this._items[e]},n.setItems=function(e){this.removeAllItems(),e.forEach(this.addItem.bind(this))},n.addItem=function(e){this.insertItem(this._items.length,e)},n.insertItem=function(e,t){var n=this;hr()(t)?t=Ur.create(t):hr()(t.type)&&(t=Ur.create(t.type,t.options));var r=this.el.children;e>=0&&e<r.length?(dt["a"].insertBefore(t.el,r[e]),this._items.splice(e,0,t)):(this.el.appendChild(t.el),this._items.push(t)),t.onCommandHandler=function(e){return n._eventManager.emit("command",e)},t.onEventHandler=function(e){return n._eventManager.emit(e)},t.on("command",t.onCommandHandler),t.on("event",t.onEventHandler)},n.indexOfItem=function(e){var t;if(e instanceof kr)t=this._items.indexOf(e);else if(hr()(e)){var n=e;t=this._items.map((function(e){return e.getName()})).indexOf(n)}return t},n.removeItem=function(e,t){var n,r;return void 0===t&&(t=!0),n=e instanceof kr?this.indexOfItem(e):e,n>=0&&(r=this._items.splice(n,1)[0]),r&&(t?r.destroy():(r.off("command",r.onCommandHandler),r.off("event",r.onEventHandler),dt["a"].remove(r.el))),r},n.removeAllItems=function(){while(this._items&&this._items.length>0)this.removeItem(0)},n.destroy=function(){this.removeAllItems(),e.prototype.destroy.call(this)},t}(Cr),zr=$r;function Kr(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Gr(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Jr="tui-popup-",Qr="fit-window",Yr='<div class="'+Jr+'header">\n        <span class="'+Jr+'title"></span>\n        <div class="'+Jr+'header-buttons">\n            <button type="button" class="'+Jr+'close-button"></button>\n        </div>\n    </div>\n    <div class="'+Jr+'body"></div>',Xr='<div class="'+Jr+'wrapper">\n        <div class="'+Jr+'header">\n            <span class="'+Jr+'title"></span>\n            <div class="'+Jr+'header-buttons">\n                <button type="button" class="'+Jr+'close-button"></button>\n            </div>\n        </div>\n        <div class="'+Jr+'body"></div>\n    </div>',Zr=function(e){function t(t){var n;return t=u()({header:!0,target:document.body,textContent:""},t),n=e.call(this,{tagName:"div",className:t.modal?Jr+"modal-background":Jr+"wrapper",rootElement:t.el})||this,n._clickEventMap={},n._onClickCloseButton=n.hide.bind(Kr(n)),n._initInstance(t),n._initDOM(t),n._initDOMEvent(t),n._initEditorEvent(t),n}Gr(t,e);var n=t.prototype;return n._initInstance=function(e){this._target=e.target,e.el&&(this.el=e.el,this._isExternalHtmlUse=!0),e.content?this.content=e.content:this.content=e.textContent,this.options=e},n._initDOM=function(){this._initLayout(),this._isExternalHtmlUse||(o()(this.options.title)&&this.setTitle(this.options.title),this.setContent(this.content));var e=this.options.headerButtons;if(e){var t=dt["a"].findAll(this.el,"."+Jr+"close-button");t.forEach((function(e){dt["a"].remove(e)}));var n=this.el.querySelector("."+Jr+"header-buttons");dt["a"].empty(n),n.innerHTML=e}this.options.css&&h()(this.el,this.options.css)},n._initDOMEvent=function(){var e=this,t=this.options,n=t.openerCssQuery,r=t.closerCssQuery,i=document,a=i.body;n&&dt["a"].findAll(a,n).forEach((function(t){var n="click."+e._id;e._clickEventMap[n]=e.show.bind(e),lt()(t,"click",e._clickEventMap[n])})),r&&dt["a"].findAll(a,r).forEach((function(t){var n="click."+e._id;e._clickEventMap[n]=e.hide.bind(e),lt()(t,"click",e._clickEventMap[n])})),this.on("click ."+Jr+"close-button",this._onClickCloseButton)},n._initEditorEvent=function(){},n._initLayout=function(){var e=this.options;if(this._isExternalHtmlUse)this.hide(),this._target.appendChild(this.el);else{var t=e.modal?Xr:Yr;this.el.innerHTML=t,e.className&&p.a.apply(void 0,[this.el].concat(e.className.split(/\s+/g))),this.hide(),this._target.appendChild(this.el),this.body=this.el.querySelector("."+Jr+"body"),e.header||dt["a"].remove(this.el.querySelector("."+Jr+"header"))}},n.setContent=function(e){dt["a"].empty(this.body),hr()(e)?this.body.innerHTML=e:this.body.appendChild(e)},n.setTitle=function(e){var t=this.el.querySelector("."+Jr+"title");dt["a"].empty(t),t.innerHTML=e},n.getTitleElement=function(){return this.el.querySelector("."+Jr+"title")},n.hide=function(){h()(this.el,{display:"none"}),this._isShow=!1,this.trigger("hidden",this)},n.show=function(){h()(this.el,{display:"block"}),this._isShow=!0,this.trigger("shown",this)},n.isShow=function(){return this._isShow},n.remove=function(){var e=this,t=this.options,n=t.openerCssQuery,r=t.closerCssQuery,i=document,a=i.body;this.trigger("remove",this),this.off("click ."+Jr+"close-button",this._onClickCloseButton),n&&dt["a"].findAll(a,n).forEach((function(t){ut()(t,"click",e._clickEventMap["click."+e._id]),delete e._clickEventMap["click."+e._id]})),r&&dt["a"].findAll(a,r).forEach((function(t){ut()(t,"click",e._clickEventMap["click."+e._id]),delete e._clickEventMap["click."+e._id]})),dt["a"].remove(this.el),this.el=null},n.setFitToWindow=function(e){dt["a"].toggleClass(this.el,Qr,e)},n.isFitToWindow=function(){return At()(this.el,Qr)},n.toggleFitToWindow=function(){var e=!this.isFitToWindow();return this.setFitToWindow(e),e},t}(Cr),ei=Zr;function ti(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function ni(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ri=function(e){function t(t){return t=u()({header:!1,className:"te-dropdown-toolbar"},t),e.call(this,t)||this}ti(t,e);var n=t.prototype;return n.getToolbar=function(){return this._toolbar},n.getItems=function(){return this.getToolbar().getItems()},n.getItem=function(e){return this.getToolbar().getItem(e)},n.setItems=function(e){this.getToolbar().setItems(e)},n.addItem=function(e){this.getToolbar().addItem(e)},n.insertItem=function(e,t){this.getToolbar().insertItem(e,t)},n.indexOfItem=function(e){return this.getToolbar().indexOfItem(e)},n.removeItem=function(e,t){return this.getToolbar().removeItem(e,t)},n.removeAllItems=function(){this.getToolbar().removeAllItems()},n._initInstance=function(t){e.prototype._initInstance.call(this,t);var n=t.button,r=t.eventManager;this._button=n,this._eventManager=r,this._toolbar=new zr(r)},n._initDOM=function(){e.prototype._initDOM.call(this),this.setContent(this._toolbar.el)},n._initEditorEvent=function(){var n=this;e.prototype._initEditorEvent.call(this),this._eventManager.listen("focus",(function(){return n.hide()})),this._eventManager.listen("closeAllPopup",(function(){return n.hide()})),this._eventManager.listen(t.OPEN_EVENT,(function(){var e=n.isShow();n._eventManager.emit("closeAllPopup"),e||n.show(),h()(n.el,{left:"-1000px"});var t=n._button,r=dt["a"].getOuterHeight(t,!0),i=(r-dt["a"].getOuterHeight(t))/2,a=t.offsetTop+r-i,o=t.offsetLeft+dt["a"].getOuterWidth(t,!0)-dt["a"].getOuterWidth(n.el,!0);h()(n.el,{top:a+"px",left:o+"px"})}))},t}(ei);ni(ri,"OPEN_EVENT","openDropdownToolbar");var ii=ri;function ai(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function oi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function si(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var li="more",ci=function(e){function t(t,n){var r;return r=e.call(this,t,n)||this,si(ai(r),"_moreButton",void 0),si(ai(r),"_popupDropdownToolbar",void 0),si(ai(r),"_observer",void 0),r._init(t),r._bindWidthChangedEvent(),r}oi(t,e);var n=t.prototype;return n.insertItem=function(t,n){e.prototype.insertItem.call(this,t,n),this._arrangeMoreButton()},n._init=function(e){var t=Ur.create("button",{name:li,className:"tui-more",tooltip:cr.get("More"),event:ii.OPEN_EVENT});this._moreButton=t,this._popupDropdownToolbar=new ii({eventManager:e,target:this.el,button:t.el}),this.addItem(t)},n._bindWidthChangedEvent=function(){var e=this;this._observer=new ur["a"]((function(){e._popupDropdownToolbar.hide(),e._balanceButtons()})),this._observer.observe(this.el)},n._balanceButtons=function(){var t=this,n=this._popupDropdownToolbar.getItems();n.forEach((function(n){t._popupDropdownToolbar.removeItem(n,!1);var r=t.getItems().length;e.prototype.insertItem.call(t,r,n)})),this.removeItem(this._moreButton,!1),e.prototype.insertItem.call(this,0,this._moreButton);var r=this.getItems(),i=r.filter((function(e){return e.el.offsetTop>t.el.clientHeight}));i.forEach((function(e){t.removeItem(e,!1),t._popupDropdownToolbar.addItem(e)})),this._arrangeMoreButton()},n._arrangeMoreButton=function(){if(this._popupDropdownToolbar){this.removeItem(this._moreButton,!1);var t=this._popupDropdownToolbar.getItems().length>0,n=this.getItems().length;t&&e.prototype.insertItem.call(this,n,this._moreButton)}},n.destroy=function(){this._observer&&(this._observer.disconnect(),this._observer=null)},t}(zr),ui=ci;function di(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var hi="te-tab-active",fi=function(e){function t(t){var n;return void 0===t&&(t={}),n=e.call(this,{tagName:"div",className:"te-tab"})||this,n.sections=t.sections,n._activeButton=null,n._render(t),n._initEvent(t),n}di(t,e);var n=t.prototype;return n._initEvent=function(e){var t=e.onItemClick;t&&this.on("itemClick",t),this.on("click button",this._onTabButton.bind(this))},n._render=function(e){for(var t=e.items,n=e.initName,r=[],i=0,a=t.length;i<a;i+=1)r.push('<button type="button" data-index="'+i+'">'+t[i]+"</button>");this.el.innerHTML=r.join(""),this.activate(n)},n._findButtonContained=function(e,t,n){return dt["a"].findAll(e,t).filter((function(e){return new RegExp(n).test(e.textContent)}))},n.activate=function(e){var t=this._findButtonContained(this.el,"button",e),n=t[0];this._activateTabByButton(n)},n._onTabButton=function(e){var t=e.target;this._activateTabByButton(t),this.trigger("itemClick",t.textContent)},n._activateTabByButton=function(e){this._isActivatedButton(e)||this._updateClassByButton(e)},n._updateClassByButton=function(e){if(this._activeButton){var t=this._activeButton.getAttribute("data-index");m()(this._activeButton,hi),this.sections&&m()(this.sections[t],hi)}p()(e,hi),this._activeButton=e;var n=e.getAttribute("data-index");this.sections&&p()(this.sections[n],hi)},n._isActivatedButton=function(e){return this._activeButton&&this._activeButton.textContent===e.textContent},t}(Cr),pi=fi;function gi(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function mi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}function vi(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var yi="markdown",bi="wysiwyg",_i=function(e){function t(t,n,r){var i;return i=e.call(this,{tagName:"div",className:"te-mode-switch"})||this,vi(gi(i),"_buttons",{}),vi(gi(i),"_type",void 0),vi(gi(i),"_rootElement",void 0),i._eventManager=r,i._render(t),i._switchType(o()(n)?n:yi),i._initEvent(),i}mi(t,e);var n=t.prototype;return n.isShown=function(){return"block"===this._rootElement.style.display},n.show=function(){h()(this._rootElement,{display:"block"})},n.hide=function(){h()(this._rootElement,{display:"none"})},n._render=function(e){this._buttons.markdown=dt["a"].createElementWith('<button class="te-switch-button markdown" type="button">'+cr.get("Markdown")+"</button>"),this._buttons.wysiwyg=dt["a"].createElementWith('<button class="te-switch-button wysiwyg" type="button">'+cr.get("WYSIWYG")+"</button>"),this.el.appendChild(this._buttons.markdown),this.el.appendChild(this._buttons.wysiwyg),e&&(e.appendChild(this.el),this._rootElement=e),this.on("click .markdown",this._changeMarkdown.bind(this)),this.on("click .wysiwyg",this._changeWysiwyg.bind(this)),this.show()},n._changeMarkdown=function(){this._switchType(yi)},n._changeWysiwyg=function(){this._switchType(bi)},n._setActiveButton=function(e){m()(this._buttons.markdown,"active"),m()(this._buttons.wysiwyg,"active"),p()(this._buttons[""+e],"active")},n._switchType=function(e){this._type!==e&&(this._type=e,this._setActiveButton(e),this.trigger("modeSwitched",this._type))},n._initEvent=function(){var e=this;this._eventManager.listen("changeMode",(function(t){e._type!==t&&(e._type=t,e._setActiveButton(t))}))},t}(Cr);vi(_i,"TYPE",{MARKDOWN:yi,WYSIWYG:bi});var wi=_i;function Ci(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ei=/^(https?:\/\/)?([\da-z.-]+)\.([a-z.]{2,6})(\/([^\s]*))?$/,Si=function(e){function t(t){var n='\n            <label for="url">'+cr.get("URL")+'</label>\n            <input type="text" class="te-url-input" />\n            <label for="linkText">'+cr.get("Link text")+'</label>\n            <input type="text" class="te-link-text-input" />\n            <div class="te-button-section">\n                <button type="button" class="te-ok-button">'+cr.get("OK")+'</button>\n                <button type="button" class="te-close-button">'+cr.get("Cancel")+"</button>\n            </div>\n        ";return t=u()({header:!0,title:cr.get("Insert link"),className:"te-popup-add-link tui-editor-popup",content:n},t),e.call(this,t)||this}Ci(t,e);var n=t.prototype;return n._initInstance=function(t){e.prototype._initInstance.call(this,t),this._editor=t.editor,this._eventManager=t.editor.eventManager},n._initDOM=function(){e.prototype._initDOM.call(this);var t=this.el;this._inputText=t.querySelector(".te-link-text-input"),this._inputURL=t.querySelector(".te-url-input")},n._initDOMEvent=function(){var t=this;e.prototype._initDOMEvent.call(this),this.on("click .te-close-button",(function(){return t.hide()})),this.on("click .te-ok-button",(function(){return t._addLink()})),this.on("shown",(function(){var e=t._inputText,n=t._inputURL,r=t._editor.getSelectedText().trim();e.value=r,Ei.exec(r)&&(n.value=r),n.focus()})),this.on("hidden",(function(){t._resetInputs()}))},n._initEditorEvent=function(){var t=this;e.prototype._initEditorEvent.call(this);var n=this._eventManager;n.listen("focus",(function(){return t.hide()})),n.listen("closeAllPopup",(function(){return t.hide()})),n.listen("openPopupAddLink",(function(){n.emit("closeAllPopup"),t.show()}))},n._addLink=function(){var e=this._getValue(),t=e.url,n=e.linkText;this._clearValidationStyle(),n.length<1?p()(this._inputText,"wrong"):t.length<1?p()(this._inputURL,"wrong"):(this._eventManager.emit("command","AddLink",{linkText:n,url:t}),this.hide())},n._getValue=function(){var e=this._inputURL.value,t=this._inputText.value;return{url:e,linkText:t}},n._clearValidationStyle=function(){m()(this._inputURL,"wrong"),m()(this._inputText,"wrong")},n._resetInputs=function(){this._inputText.value="",this._inputURL.value="",this._clearValidationStyle()},t}(ei),Ti=Si;function ki(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ni="te-image-url-input",xi="te-image-file-input",Li="te-alt-text-input",Oi="te-ok-button",Mi="te-close-button",Ai="te-file-type",Di="te-url-type",Bi="te-tab-section",Ii="ui",Ri=function(e){function t(t){var n='\n            <div class="'+Bi+'"></div>\n            <div class="'+Di+'">\n                <label for="">'+cr.get("Image URL")+'</label>\n                <input type="text" class="'+Ni+'" />\n            </div>\n            <div class="'+Ai+'">\n                <label for="">'+cr.get("Select image file")+'</label>\n                <input type="file" class="'+xi+'" accept="image/*" />\n            </div>\n            <label for="url">'+cr.get("Description")+'</label>\n            <input type="text" class="'+Li+'" />\n            <div class="te-button-section">\n                <button type="button" class="'+Oi+'">'+cr.get("OK")+'</button>\n                <button type="button" class="'+Mi+'">'+cr.get("Cancel")+"</button>\n            </div>\n        ";return t=u()({header:!0,title:cr.get("Insert image"),className:"te-popup-add-image tui-editor-popup",content:n},t),e.call(this,t)||this}ki(t,e);var n=t.prototype;return n._initInstance=function(t){e.prototype._initInstance.call(this,t),this.eventManager=t.eventManager},n._initDOM=function(){e.prototype._initDOM.call(this);var t=this.el;this._imageUrlInput=t.querySelector("."+Ni),this._imageFileInput=t.querySelector("."+xi),this._altTextInput=t.querySelector("."+Li);var n=t.querySelector("."+Ai),r=t.querySelector("."+Di),i=this.body.querySelector("."+Bi);this.tab=new pi({initName:cr.get("File"),items:[cr.get("File"),cr.get("URL")],sections:[n,r]}),i.appendChild(this.tab.el)},n._initDOMEvent=function(){var t=this;e.prototype._initDOMEvent.call(this),this.on("shown",(function(){return t._imageUrlInput.focus()})),this.on("hidden",(function(){return t._resetInputs()})),this.on("change ."+xi,(function(){var e=t._imageFileInput.value.split("\\").pop();t._altTextInput.value=e})),this.on("click ."+Mi,(function(){return t.hide()})),this.on("click ."+Oi,(function(){var e=t._imageUrlInput.value,n=t._altTextInput.value;if(e)t._applyImage(e,n);else{var r=t._imageFileInput.files;if(r.length){var i=r.item(0),a=function(e,r){return t._applyImage(e,r||n)};t.eventManager.emit("addImageBlobHook",i,a,Ii)}}t.hide()})),this.tab.on("itemClick",(function(){return t._resetInputs()}))},n._initEditorEvent=function(){var t=this;e.prototype._initEditorEvent.call(this),this.eventManager.listen("focus",(function(){return t.hide()})),this.eventManager.listen("closeAllPopup",(function(){return t.hide()})),this.eventManager.listen("openPopupAddImage",(function(){t.eventManager.emit("closeAllPopup"),t.show()}))},n._applyImage=function(e,t){this.eventManager.emit("command","AddImage",{imageUrl:e,altText:t||"image"}),this.hide()},n._resetInputs=function(){dt["a"].findAll(this.el,"input").forEach((function(e){e.value=""}))},n.remove=function(){this.tab.remove(),e.prototype.remove.call(this)},t}(ei),Pi=Ri;function Fi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Hi="te-table-remove-row",ji="te-context-menu-disabled",Ui=function(e){function t(t){var n='\n      <button type="button" class="te-table-add-row">'+cr.get("Add row")+'</button>\n      <button type="button" class="te-table-add-col">'+cr.get("Add col")+'</button>\n      <button type="button" class="te-table-remove-row">'+cr.get("Remove row")+'</button>\n      <button type="button" class="te-table-remove-col">'+cr.get("Remove col")+'</button>\n      <hr/>\n      <button type="button" class="te-table-col-align-left">'+cr.get("Align left")+'</button>\n      <button type="button" class="te-table-col-align-center">'+cr.get("Align center")+'</button>\n      <button type="button" class="te-table-col-align-right">'+cr.get("Align right")+'</button>\n      <hr/>\n      <button type="button" class="te-table-remove">'+cr.get("Remove table")+"</button>\n    ";return t=u()({header:!1,className:"te-popup-table-utils",content:n},t),e.call(this,t)||this}Fi(t,e);var n=t.prototype;return n._initInstance=function(t){e.prototype._initInstance.call(this,t),this.eventManager=t.eventManager},n._initDOMEvent=function(){var t=this;e.prototype._initDOMEvent.call(this),this.on("click .te-table-add-row",(function(){return t.eventManager.emit("command","AddRow")})),this.on("click .te-table-add-col",(function(){return t.eventManager.emit("command","AddCol")})),this.on("click .te-table-col-align-left",(function(){return t.eventManager.emit("command","AlignCol","left")})),this.on("click .te-table-col-align-center",(function(){return t.eventManager.emit("command","AlignCol","center")})),this.on("click .te-table-col-align-right",(function(){return t.eventManager.emit("command","AlignCol","right")})),this.on("click .te-table-remove-col",(function(){return t.eventManager.emit("command","RemoveCol")})),this.on("click .te-table-remove",(function(){return t.eventManager.emit("command","RemoveTable")})),this._bindClickEventOnRemoveRowMenu()},n._initEditorEvent=function(){var t=this;e.prototype._initEditorEvent.call(this),this.eventManager.listen("focus",(function(){return t.hide()})),this.eventManager.listen("mousedown",(function(){return t.hide()})),this.eventManager.listen("closeAllPopup",(function(){return t.hide()})),this.eventManager.listen("openPopupTableUtils",(function(e){var n=t.el.parentNode.getBoundingClientRect(),r=n.left,i=n.top;t._disableRemoveRowMenu(e.target),h()(t.el,{position:"absolute",top:e.clientY-i+5+"px",left:e.clientX-r+10+"px"}),t.eventManager.emit("closeAllPopup"),t.show()}))},n._bindClickEventOnRemoveRowMenu=function(){var e=this;this.on("click ."+Hi,(function(t){var n=t.target;At()(n,ji)?t.preventDefault():e.eventManager.emit("command","RemoveRow")}))},n._disableRemoveRowMenu=function(e){var t=this.el.querySelector("."+Hi);dt["a"].toggleClass(t,ji,"TH"===e.nodeName)},t}(ei),qi=Ui;function Vi(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Wi="te-table-selection",$i="te-table-header",zi="te-table-body",Ki="te-selection-area",Gi="te-description",Ji='\n    <div class="'+Wi+'">\n        <div class="'+$i+'"></div>\n        <div class="'+zi+'"></div>\n        <div class="'+Ki+'"></div>\n    </div>\n    <p class="'+Gi+'"></p>\n',Qi=25,Yi=17,Xi=7,Zi=14,ea=5,ta=9,na=1,ra=1,ia=1,aa=1,oa=function(e){function t(t){return t=u()({header:!1,className:"te-popup-add-table",content:Ji},t),e.call(this,t)||this}Vi(t,e);var n=t.prototype;return n._initInstance=function(t){e.prototype._initInstance.call(this,t),this._selectedBound={},this._tableBound={},this._eventManager=t.eventManager,this._button=t.button,this._eventHandlers={onMousedown:this._selectTableRange.bind(this),onClick:this._fireCommandEvent.bind(this)}},n._initDOM=function(){e.prototype._initDOM.call(this),this._cacheElements(),this._setTableSizeByBound(ea,Xi)},n._initDOMEvent=function(t){e.prototype._initDOMEvent.call(this,t),this.on("mousemove ."+Wi,this._eventHandlers.onMousedown),this.on("click ."+Wi,this._eventHandlers.onClick)},n._selectTableRange=function(e){var t=e.pageX-this._selectionOffset.left,n=e.pageY-this._selectionOffset.top,r=this._getSelectionBoundByOffset(t,n);this._resizeTableBySelectionIfNeed(r.col,r.row),this._setSelectionAreaByBound(r.col,r.row),this._setDisplayText(r.col,r.row),this._setSelectedBound(r.col,r.row)},n._fireCommandEvent=function(){var e=this._getSelectedTableSize();this._eventManager.emit("command","Table",e.col,e.row)},n._initEditorEvent=function(){var t=this;e.prototype._initEditorEvent.call(this),this._eventManager.listen("focus",(function(){return t.hide()})),this._eventManager.listen("closeAllPopup",(function(){return t.hide()})),this._eventManager.listen("openPopupAddTable",(function(){var e=t._button,n=e.offsetTop,r=e.offsetLeft;h()(t.el,{top:n+dt["a"].getOuterHeight(e)+"px",left:r+"px"}),t._eventManager.emit("closeAllPopup"),t.show();var i=t.el.querySelector("."+Wi).getBoundingClientRect(),a=i.left,o=i.top;t._selectionOffset={left:a+window.pageXOffset,top:o+window.pageYOffset}}))},n._cacheElements=function(){this.header=this.el.querySelector("."+$i),this.body=this.el.querySelector("."+zi),this.selection=this.el.querySelector("."+Ki),this.desc=this.el.querySelector("."+Gi)},n._resizeTableBySelectionIfNeed=function(e,t){var n=this._getResizedTableBound(e,t);n&&this._setTableSizeByBound(n.col,n.row)},n._getResizedTableBound=function(e,t){var n,r,i;return e>=ea&&e<ta?n=e+1:e<ea&&(n=ea),t>=Xi&&t<Zi?r=t+1:t<Xi&&(r=Xi),this._isNeedResizeTable(n,r)&&(i={row:r||this._tableBound.row,col:n||this._tableBound.col}),i},n._isNeedResizeTable=function(e,t){return e&&e!==this._tableBound.col||t&&t!==this._tableBound.row},n._getBoundByOffset=function(e,t){var n=parseInt(t/Yi,10),r=parseInt(e/Qi,10);return{row:n,col:r}},n._getOffsetByBound=function(e,t){var n=e*Qi+Qi,r=t*Yi+Yi;return{x:n,y:r}},n._setTableSizeByBound=function(e,t){var n=this._getOffsetByBound(e,t-ia);this._setTableSize(n.x,n.y),this._tableBound.row=t,this._tableBound.col=e},n._getSelectionBoundByOffset=function(e,t){var n=this._getBoundByOffset(e,t);return n.row<na?n.row=na:n.row>this._tableBound.row&&(n.row=this._tableBound.row),n.col<ra?n.col=ra:n.col>this._tableBound.col&&(n.col=this._tableBound.col),n},n._setSelectionAreaByBound=function(e,t){var n=this._getOffsetByBound(e,t);this._setSelectionArea(n.x,n.y)},n._setSelectedBound=function(e,t){this._selectedBound.col=e,this._selectedBound.row=t},n._getSelectedTableSize=function(){return{row:this._selectedBound.row+1,col:this._selectedBound.col+1}},n._setDisplayText=function(e,t){this.desc.innerHTML=e+1+" x "+(t+1)},n._setTableSize=function(e,t){e+=aa,t+=aa,h()(this.header,{height:Yi+"px",width:e+"px"}),h()(this.body,{height:t+"px",width:e+"px"}),h()(this.el,{width:e+30+"px"})},n._setSelectionArea=function(e,t){e+=aa,t+=aa,h()(this.selection,{height:t+"px",width:e+"px"})},n.remove=function(){this.off("mousemove ."+Wi,this._eventHandlers.onMousedown),this.off("click ."+Wi,this._eventHandlers.onClick),e.prototype.remove.call(this)},t}(ei);oa.CELL_WIDTH=Qi,oa.CELL_HEIGHT=Yi,oa.MIN_ROW_SELECTION_INDEX=na,oa.MIN_COL_SELECTION_INDEX=ra;var sa=oa;function la(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ca=function(e){function t(t){var n='\n      <ul>\n        <li data-value="1" data-type="Heading"><h1>'+cr.get("Heading")+' 1</h1></li>\n        <li data-value="2" data-type="Heading"><h2>'+cr.get("Heading")+' 2</h2></li>\n        <li data-value="3" data-type="Heading"><h3>'+cr.get("Heading")+' 3</h3></li>\n        <li data-value="4" data-type="Heading"><h4>'+cr.get("Heading")+' 4</h4></li>\n        <li data-value="5" data-type="Heading"><h5>'+cr.get("Heading")+' 5</h5></li>\n        <li data-value="6" data-type="Heading"><h6>'+cr.get("Heading")+' 6</h6></li>\n        <li data-type="Paragraph"><div>'+cr.get("Paragraph")+"</div></li>\n      </ul>\n    ";return t=u()({header:!1,className:"te-heading-add",content:n},t),e.call(this,t)||this}la(t,e);var n=t.prototype;return n._initInstance=function(t){e.prototype._initInstance.call(this,t),this._eventManager=t.eventManager,this._button=t.button},n._initDOMEvent=function(){var t=this;e.prototype._initDOMEvent.call(this),this.on("click li",(function(e){var n=dt["a"].closest(e.target,"li");t._eventManager.emit("command",n.getAttribute("data-type"),n.getAttribute("data-value"))}))},n._initEditorEvent=function(){var t=this;e.prototype._initEditorEvent.call(this),this._eventManager.listen("focus",this.hide.bind(this)),this._eventManager.listen("closeAllPopup",this.hide.bind(this)),this._eventManager.listen("openHeadingSelect",(function(){var e=t._button,n=e.offsetTop,r=e.offsetLeft;h()(t.el,{top:n+dt["a"].getOuterHeight(e)+"px",left:r+"px"}),t._eventManager.emit("closeAllPopup"),t.show()}))},t}(ei),ua=ca;function da(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var ha="te-popup-code-block-lang-";function fa(e){return e.map((function(e){return'<button type="button" class="'+ha+e+'" data-lang="'+e+'">'+e+"</button>"})).join("")}var pa=function(e){function t(t){var n=t,r=n.languages;return t=u()({header:!1,className:"te-popup-code-block-languages",content:fa(r)},t),e.call(this,t)||this}da(t,e);var n=t.prototype;return n._initInstance=function(t){var n=this;e.prototype._initInstance.call(this,t),this.eventManager=t.eventManager,this._onSelectedLanguage=null,this._onDismissed=null,this._currentButton=null,this._buttons=null,this._languages=t.languages,this._btnMousedownHandler=function(e){var t=e.target.getAttribute("data-lang");n._onSelectedLanguage&&n._onSelectedLanguage(t),n.hide()}},n._initDOM=function(t){e.prototype._initDOM.call(this,t),h()(this.el,"zIndex",1e4),this._buttons=dt["a"].findAll(this.el,"button"),this._activateButtonByIndex(0)},n._initDOMEvent=function(){e.prototype._initDOMEvent.call(this),this._addBtnMouseDownHandler()},n._initEditorEvent=function(){var t=this;e.prototype._initEditorEvent.call(this),this.eventManager.listen("openPopupCodeBlockLanguages",(function(e){return t.show(e.callback),h()(t.el,{top:e.offset.top+"px"}),h()(t.el,{left:e.offset.left+"px"}),t.setCurrentLanguage(e.language),t})),this.eventManager.listen("focus",(function(){return t.hide()})),this.eventManager.listen("mousedown",(function(){return t.hide()})),this.eventManager.listen("closeAllPopup",(function(){return t.hide()})),this.eventManager.listen("closePopupCodeBlockLanguages",(function(){return t.hide()})),this.eventManager.listen("scroll",(function(){return t.hide()})),this.eventManager.listen("setCodeBlockLanguages",(function(e){return t._changeLanguageButtons(e)}))},n._activateButtonByIndex=function(e){this._currentButton&&m()(this._currentButton,"active"),this._buttons.length&&(this._currentButton=this._buttons[e],p()(this._currentButton,"active"),this._currentButton.scrollIntoView())},n.prev=function(){var e=Zn()(this._currentButton,this._buttons)-1;e<0&&(e=this._buttons.length-1),this._activateButtonByIndex(e)},n.next=function(){var e=Zn()(this._currentButton,this._buttons)+1;e>=this._buttons.length&&(e=0),this._activateButtonByIndex(e)},n.getCurrentLanguage=function(){var e=this._currentButton.getAttribute("data-lang");return e},n.setCurrentLanguage=function(e){var t=this._buttons.filter((function(t){return ft()(t,"."+ha+e)}));if(t.length>0){var n=Zn()(t[0],this._buttons);this._activateButtonByIndex(n)}},n.show=function(t){this._onSelectedLanguage=t.selected,this._onDismissed=t.dismissed,e.prototype.show.call(this)},n.hide=function(){this._onDismissed&&this._onDismissed(),this._onSelectedLanguage=null,this._onDismissed=null,e.prototype.hide.call(this)},n._addBtnMouseDownHandler=function(){var e=this;this._languages.forEach((function(t){e.off("mousedown ."+ha+t,e._btnMousedownHandler),e.on("mousedown ."+ha+t,e._btnMousedownHandler)}))},n._changeLanguageButtons=function(e){this._languages=e,e&&e.length&&(this.content=fa(e),this.setContent(this.content),this._addBtnMouseDownHandler(),this._buttons=dt["a"].findAll(this.el,"button"),this._activateButtonByIndex(0))},t}(ei),ga=pa,ma="tui-split-scroll",va="single-content",ya="scroll-sync",ba="tui-split-scroll-wrapper",_a="tui-split-scroll-content",wa="tui-splitter",Ca="requireScrollIntoView",Ea="tui-split-content-left",Sa="tui-split-content-right",Ta={left:Ea,right:Sa},ka=function(){function e(e,t,n,r){void 0===r&&(r={}),r=u()({showScrollSyncButton:!1,scrollSync:!0,splitView:!0},r),this._baseElement=e,this._eventManager=r.eventManager,this._contentElements=[],this._initDom(t,n,r),this._initDomEvent()}var t=e.prototype;return t._initDom=function(e,t,n){var r=document.createElement("div");r.className=ma,this._el=r;var i=document.createElement("div");i.className=ba,this._scrollWrapper=i,this._setScrollSync(n.scrollSync),this.setSplitView(n.splitView);var a=document.createElement("div");a.className=_a,this._contentWrapper=a;var o=document.createElement("div");o.className=wa,this._baseElement.appendChild(r),r.appendChild(i),i.appendChild(a),i.appendChild(o),this._setLeft(e),this._setRight(t)},t._initDomEvent=function(){this._contentWrapper.addEventListener("scroll",this.sync.bind(this))},t._requireScrollIntoView=function(e){var t,n=e.getBoundingClientRect(),r=n.top,i=n.bottom;if(this.isScrollSynced())t=this._contentWrapper;else if(dt["a"].parents(e,this._contentElements.left).length)t=this._contentElements.left;else{if(!dt["a"].parents(e,this._contentElements.right).length)return;t=this._contentElements.right}var a=t.getBoundingClientRect(),o=a.top,s=a.bottom;r<o?t.scrollTop=t.scrollTop+r-o:i>s&&(t.scrollTop=t.scrollTop+i-s),this.sync()},t._setContentElement=function(e,t){var n=this,r=this._contentElements[t];r&&(this._eventManager.removeEventHandler(Ca),this._contentWrapper.removeChild(r)),p()(e,Ta[t]),this._contentWrapper.appendChild(e),this._eventManager.listen(Ca,(function(e){return n._requireScrollIntoView(e)})),this._eventManager.listen("requireScrollSync",(function(){return n.sync()})),this._contentElements[t]=e,this.sync()},t._setLeft=function(e){this._setContentElement(e,"left")},t._setRight=function(e){this._setContentElement(e,"right")},t._setScrollSync=function(e){dt["a"].toggleClass(this._el,ya,e)},t.toggleScrollSync=function(){dt["a"].toggleClass(this._el,ya)},t.setSplitView=function(e){e?m()(this._el,va):p()(this._el,va)},t.toggleSplitView=function(){dt["a"].toggleClass(this._el,va)},t.isScrollSynced=function(){return At()(this._el,ya)},t.isSplitView=function(){return!At()(this._el,va)},t.sync=function(){if(this._contentElements.left&&this._contentElements.right){var e=this._contentWrapper.clientHeight,t=this._contentWrapper.scrollTop,n=this._contentElements.left,r=this._contentElements.right,i=n.offsetHeight-e>0?n:r,a=i===n?r:n,o=i.offsetHeight,s=Math.max(o-e,0),l=Math.max(a.offsetHeight,e),c=o-l;h()(i,{top:0}),h()(a,{top:t/s*c+"px"})}},t.scrollTop=function(e){this._contentWrapper.scrollTop=e},e}(),Na=ka;function xa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var La=function(e){function t(t,n){var r;return r=e.call(this,t,{singleCursorHeightPerLine:!1,theme:"none"})||this,r._language="",r._eventManager=n,r._initEvent(),r}xa(t,e);var n=t.prototype;return n._initEvent=function(){var e=this;this.on("cursorActivity",this._onRequireScrollIntoView.bind(this)),this.on("beforeChange",(function(t,n){"paste"===n.origin&&e._eventManager.emit("pasteBefore",{source:"codeblock",data:n})}))},n._onRequireScrollIntoView=function(){var e=this,t=this.getCursor(),n=this.getWrapperElement();setTimeout((function(){var r=n.querySelector("pre:nth-child("+(t.line+1)+")");r&&e._eventManager.emit("requireScrollIntoView",r)}),0)},n.load=function(e){var t=e.cloneNode(!0);this.setLanguage(t.getAttribute("data-language")||""),this.setEditorCodeText(t.textContent)},n.save=function(e){e.innerHTML="",e.textContent=this.getEditorCodeText(),e.setAttribute("data-language",this._language),this._eventManager.emit("changeLanguage")},n.clear=function(){this.setLanguage(""),this.setEditorCodeText("")},n.getLanguage=function(){return this._language},n.setLanguage=function(e){void 0===e&&(e=""),this._language=e},n.getEditorCodeText=function(){return this.getValue()},n.setEditorCodeText=function(e){void 0===e&&(e=""),this.setValue(e)},n.refresh=function(){this.cm.refresh()},t}(W),Oa=La,Ma=n(38);function Aa(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Da(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ba=function(e){function t(t,n,r,i){var a;return a=e.call(this,t,n,r,!0)||this,a._codeBlockEditor=i,a._initEvent(),a.lazyRunner.registerLazyRunFunction("refresh",a.refresh,a.delayCodeBlockTime,Aa(a)),a}Da(t,e);var n=t.prototype;return n._initEvent=function(){var e=this;this._codeBlockEditor.on("update",(function(){return e.lazyRunner.run("refresh")}))},n.refresh=function(){var t=this._codeBlockEditor.getLanguage(),n=this._codeBlockEditor.getEditorCodeText();e.prototype.refresh.call(this,"```"+t+"\n"+n+"\n```"),this.eventManager.emit("requireScrollSync")},n.clear=function(){e.prototype.render.call(this,"")},t}(Ma["a"]),Ia=Ba,Ra=function(){function e(e,t){this._eventManager=e,this._languages=t,this._initDOM(),this._initDOMEvent(),this._initEvent()}var t=e.prototype;return t._initDOM=function(){this._inputLanguage=dt["a"].createElementWith('<input type="text" maxlength="20" placeholder="'+cr.get("Choose language")+'" />'),this._wrapper=dt["a"].createElementWith('<span class="te-input-language"></span>'),this._wrapper.appendChild(this._inputLanguage),this._hide()},t._initDOMEvent=function(){var e=this;this._inputLanguage.addEventListener("keydown",(function(t){return e._onKeyEvent(t)})),this._inputLanguage.addEventListener("focus",(function(){return e._showPopupCodeBlockLanguages()})),this._inputLanguage.addEventListener("focusout",(function(){return e._onFocusOut()})),this._wrapper.addEventListener("mousedown",(function(t){t.target===e._wrapper&&(t.preventDefault(),e._toggleFocus())}))},t._initEvent=function(){var e=this;this._eventManager.listen("setCodeBlockLanguages",(function(t){e._languages=t,t&&t.length?e._show():e._hide()}))},t._showPopupCodeBlockLanguages=function(){var e=this,t=this._inputLanguage.getBoundingClientRect();p()(this._wrapper,"active"),this.active=!0,this._popupCodeBlockLanguages=this._eventManager.emitReduce("openPopupCodeBlockLanguages",{language:this._prevStoredLanguage,offset:{left:t.left,top:t.bottom},callback:{selected:function(t){return e._onLanguageSelectedFromList(t)},dismissed:function(){e._popupCodeBlockLanguages=null}}})},t._toggleFocus=function(){var e=this._inputLanguage;At()(this._wrapper,"active")?e.blur():e.focus()},t._onFocusOut=function(){m()(this._wrapper,"active"),this._inputLanguage.value=this._prevStoredLanguage,this._hidePopupCodeBlockLanguages()},t._onKeyEvent=function(e){if(this._popupCodeBlockLanguages)switch(e.which){case K.keyCode("UP"):this._popupCodeBlockLanguages.prev(),e.preventDefault();break;case K.keyCode("DOWN"):this._popupCodeBlockLanguages.next(),e.preventDefault();break;case K.keyCode("ENTER"):case K.keyCode("TAB"):var t=this._popupCodeBlockLanguages.getCurrentLanguage();this._inputLanguage.value=t,this._storeInputLanguage(),e.preventDefault();break;default:this._popupCodeBlockLanguages.hide()}else e.which!==K.keyCode("ENTER")&&e.which!==K.keyCode("TAB")||(this._storeInputLanguage(),e.preventDefault())},t._onLanguageSelectedFromList=function(e){this._inputLanguage.value=e,this._storeInputLanguage()},t.setOnLanguageSelected=function(e){this._onLanguageSelected=e},t._hidePopupCodeBlockLanguages=function(){this._eventManager.emit("closePopupCodeBlockLanguages")},t.setLanguage=function(e){this._prevStoredLanguage=e,this._inputLanguage.value=e},t._storeInputLanguage=function(){var e=this._inputLanguage.value;this.setLanguage(e),this._onLanguageSelected&&this._onLanguageSelected(e),this._hidePopupCodeBlockLanguages()},t.getElement=function(){return this._wrapper},t._show=function(){h()(this._wrapper,{display:"inline-block"})},t._hide=function(){h()(this._wrapper,{display:"none"})},e}(),Pa=Ra;function Fa(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}var Ha="popup-editor-",ja="te-ok-button",Ua="te-close-button",qa="tui-popup-close-button",Va='\n    <button type="button" class="'+Ha+'toggle-scroll"></button>\n    <button type="button" class="'+Ha+'toggle-preview"></button>\n    <button type="button" class="'+Ha+'toggle-fit"></button>\n    <button type="button" class="'+qa+'"></button>\n',Wa=function(e){function t(t){var n='\n            <div class="'+Ha+'body"></div>\n            <div class="te-button-section">\n                <button type="button" class="'+ja+'">'+cr.get("OK")+'</button>\n                <button type="button" class="'+Ua+'">'+cr.get("Cancel")+"</button>\n            </div>\n        ";return t=u()({header:!0,title:"CodeBlock Editor",content:n,className:"tui-popup-code-block-editor",headerButtons:Va,modal:!0},t),e.call(this,t)||this}Fa(t,e);var n=t.prototype;return n._initInstance=function(t){e.prototype._initInstance.call(this,t),this.eventManager=t.eventManager,this.convertor=t.convertor,this.languages=t.languages},n._initDOM=function(t){e.prototype._initDOM.call(this,t);var n=this.el,r=this.eventManager;this._body=n.querySelector("."+Ha+"body"),this._toggleFitButton=n.querySelector("."+Ha+"toggle-fit"),this._togglePreviewButton=n.querySelector("."+Ha+"toggle-preview"),this._toggleScrollButton=n.querySelector("."+Ha+"toggle-scroll"),this._okButton=n.querySelector("."+ja),this._closeButton=n.querySelector("."+Ua),this._codeMirrorWrapper=this._createCodeBlockEditor(),this._previewWrapper=this._createPreview(),this._scrollSyncSplit=new Na(this._body,this._codeMirrorWrapper,this._previewWrapper,{eventManager:r}),this._updateFitWindowButton(),this._updatePreviewButton(),this._updateScrollButton(),this._codeBlockLanguagesCombo=this._createCodeBlockLanguagesCombo()},n._initDOMEvent=function(){var t=this;e.prototype._initDOMEvent.call(this),this.on("scroll",(function(e){return e.preventDefault()})),this.on("click ."+Ha+"toggle-fit",(function(){return t._toggleFitToWindow()})),this.on("click ."+Ha+"toggle-preview",(function(){return t._togglePreview()})),this.on("click ."+Ha+"toggle-scroll",(function(){return t._toggleScroll()})),this.on("click ."+ja,(function(){return t._save()})),this.on("click ."+Ua,(function(){return t.hide()})),this.on("click ."+Ha+"close",(function(){return t.hide()})),this.on("click ."+Ha+"editor-wrapper",(function(e){e.target===t._codeMirrorWrapper&&t._focusEditor(!0)}))},n._initEditorEvent=function(){var t=this;e.prototype._initEditorEvent.call(this),this.eventManager.listen("openPopupCodeBlockEditor",(function(e){return t.eventManager.emit("closeAllPopup"),t.show(e),t})),this.eventManager.listen("closeAllPopup",this.hide.bind(this)),this.eventManager.listen("closePopupCodeBlockEditor",this.hide.bind(this))},n._createCodeBlockEditor=function(){var e=document.createElement("div");return e.className=Ha+"editor-wrapper",this._codeBlockEditor=new Oa(e,this.eventManager),e},n._createPreview=function(){var e=document.createElement("div");return this._codeBlockPreview=new Ia(e,this.eventManager,this.convertor,this._codeBlockEditor),e},n._createCodeBlockLanguagesCombo=function(){var e=this,t=this.getTitleElement(),n=new Pa(this.eventManager,this.languages);return n.setOnLanguageSelected((function(t){e._codeBlockEditor.setLanguage(t),e._codeBlockEditor.refresh(),e._focusEditor()})),t.innerHTML="CodeBlock Editor",t.appendChild(n.getElement()),n},n._updateFitWindowButton=function(){dt["a"].toggleClass(this._toggleFitButton,"active",this.isFitToWindow())},n._updatePreviewButton=function(){dt["a"].toggleClass(this._togglePreviewButton,"active",this._scrollSyncSplit.isSplitView())},n._updateScrollButton=function(){this._scrollSyncSplit.isSplitView()?h()(this._toggleScrollButton,{display:"inline-block"}):h()(this._toggleScrollButton,{display:"none"}),dt["a"].toggleClass(this._toggleScrollButton,"active",this._scrollSyncSplit.isScrollSynced())},n._focusEditor=function(e){this._codeBlockEditor.focus(),e?this._codeBlockEditor.moveCursorToEnd():this._codeBlockEditor.moveCursorToStart()},n._togglePreview=function(){this._scrollSyncSplit.toggleSplitView(),this._updatePreviewButton(),this._updateScrollButton(),this._codeBlockEditor.refresh()},n._toggleFitToWindow=function(){this.toggleFitToWindow(),this._updateFitWindowButton(),this._codeBlockEditor.refresh()},n._toggleScroll=function(){this._scrollSyncSplit.toggleScrollSync(),this._updateScrollButton()},n._save=function(){this._codeBlockEditor.save(this._codeBlockElement),this.hide()},n._load=function(e){this._codeBlockElement=e,this._codeBlockEditor.load(e),this._codeBlockLanguagesCombo.setLanguage(this._codeBlockEditor.getLanguage()),this._focusEditor(),this._codeBlockPreview.refresh()},n.show=function(t){if(e.prototype.show.call(this),!t)throw new Error("should be called with codeBlockElement");this._load(t)},n.hide=function(){this.setFitToWindow(!1),this._codeBlockEditor&&this._codeBlockEditor.clear(),this._codeBlockPreview&&this._codeBlockPreview.clear(),this._codeBlockElement=null,e.prototype.hide.call(this)},t}(ei),$a=Wa;function za(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ka="te-toolbar-section",Ga="te-markdown-tab-section",Ja="te-editor-section",Qa="te-mode-switch-section",Ya=['<div class="tui-editor-defaultUI">','<div class="'+Ka+'"><div class="'+Ga+'"></div></div>','<div class="'+Ja+'"></div>','<div class="'+Qa+'"></div>',"</div>"].join(""),Xa=function(){function e(e){za(this,"name","default"),za(this,"el",void 0),za(this,"_toolbar",void 0),za(this,"_container",void 0),za(this,"_editorSection",void 0),za(this,"_initialEditType",void 0),za(this,"_editor",void 0),za(this,"_markdownTabSection",void 0),za(this,"_markdownTab",void 0),za(this,"_modeSwitch",void 0),za(this,"_popups",[]),this._editor=e,this._initialEditType=e.options.initialEditType,this._init(e.options),this._initEvent()}var t=e.prototype;return t._init=function(e){var t=e.el,n=e.toolbarItems,r=e.hideModeSwitch;this.el=dt["a"].createElementWith(Ya,t),this._container=t,this._editorSection=this.el.querySelector("."+Ja),this._editorSection.appendChild(this._editor.layout.getEditorEl()),this._initToolbar(this._editor.eventManager,n),this._initModeSwitch(this._editor.eventManager,r),this._initPopupAddLink(),this._initPopupAddImage(),this._initPopupAddTable(),this._initPopupAddHeading(),this._initPopupTableUtils(),this._initPopupCodeBlockLanguages(),this._initPopupCodeBlockEditor(),this._initMarkdownTab()},t._initEvent=function(){this._editor.eventManager.listen("hide",this.hide.bind(this)),this._editor.eventManager.listen("show",this.show.bind(this)),this._editor.eventManager.listen("changeMode",this._markdownTabControl.bind(this)),this._editor.eventManager.listen("changePreviewStyle",this._markdownTabControl.bind(this))},t._initToolbar=function(e,t){var n=new ui(e,t);this._toolbar=n,this.el.querySelector("."+Ka).appendChild(n.el)},t._initModeSwitch=function(e,t){var n=this,r=this.el.querySelector("."+Qa),i="markdown"===this._initialEditType?wi.TYPE.MARKDOWN:wi.TYPE.WYSIWYG,a=new wi(r,i,e);this._modeSwitch=a,t&&a.hide(),a.on("modeSwitched",(function(e){return n._editor.changeMode(e)}))},t._initMarkdownTab=function(){var e=this._editor;this._markdownTab=new pi({initName:cr.get("Write"),items:[cr.get("Write"),cr.get("Preview")],sections:[e.layout.getMdEditorContainerEl(),e.layout.getPreviewEl()]}),this._markdownTabSection=this.el.querySelector("."+Ga),this._markdownTabSection.appendChild(this._markdownTab.el),this._markdownTab.on("itemClick",(function(t){t===cr.get("Preview")?(e.eventManager.emit("previewNeedsRefresh"),e.eventManager.emit("changePreviewTabPreview"),e.eventManager.emit("closeAllPopup")):(e.getCodeMirror().focus(),e.eventManager.emit("changePreviewTabWrite"))}))},t._markdownTabControl=function(){this._editor.isMarkdownMode()&&"tab"===this._editor.getCurrentPreviewStyle()?(h()(this._markdownTabSection,{display:"block"}),this._markdownTab.activate(cr.get("Write"))):h()(this._markdownTabSection,{display:"none"})},t._initPopupAddLink=function(){this._popups.push(new Ti({target:this.el,editor:this._editor}))},t._initPopupAddImage=function(){this._popups.push(new Pi({target:this.el,eventManager:this._editor.eventManager}))},t._initPopupAddTable=function(){this._popups.push(new sa({target:this._toolbar.el,eventManager:this._editor.eventManager,button:this.el.querySelector("button.tui-table"),css:{position:"absolute"}}))},t._initPopupAddHeading=function(){this._popups.push(new ua({target:this._toolbar.el,eventManager:this._editor.eventManager,button:this.el.querySelector("button.tui-heading"),css:{position:"absolute"}}))},t._initPopupTableUtils=function(){var e=this;this._editor.eventManager.listen("contextmenu",(function(t){dt["a"].parents(t.data.target,"[contenteditable=true] table").length>0&&(t.data.preventDefault(),e._editor.eventManager.emit("openPopupTableUtils",t.data))})),this._popups.push(new qi({target:this.el,eventManager:this._editor.eventManager}))},t._initPopupCodeBlockLanguages=function(){var e=this._editor;this._popups.push(new ga({target:this.el,eventManager:e.eventManager,languages:e.codeBlockLanguages}))},t._initPopupCodeBlockEditor=function(){this._popups.push(new $a({target:this.el,eventManager:this._editor.eventManager,convertor:this._editor.convertor,languages:this._editor.codeBlockLanguages}))},t.getToolbar=function(){return this._toolbar},t.setToolbar=function(e){this._toolbar.destroy(),this._toolbar=e},t.getModeSwitch=function(){return this._modeSwitch},t.getEditorSectionHeight=function(){var e=this._editorSection.getBoundingClientRect();return e.bottom-e.top},t.getEditorHeight=function(){var e=this._container.getBoundingClientRect();return e.bottom-e.top},t.getPopupTableUtils=function(){var e;return this._popups.forEach((function(t){t instanceof qi&&(e=t)})),e},t.hide=function(){p()(this.el,"te-hide")},t.show=function(){m()(this.el,"te-hide")},t.remove=function(){dt["a"].remove(this.el),this._markdownTab.remove(),this._modeSwitch.remove(),this._toolbar.destroy(),this._popups.forEach((function(e){return e.remove()})),this._popups=[],Or.hide()},t.createPopup=function(e){return new ei(e)},e}(),Za=Xa,eo=n(30),to=n(32),no=n.n(to);function ro(e){var t=dt["a"].isElemNode,n=dt["a"].isTextNode,r=n(e.previousSibling)&&t(e.firstChild),i=n(e.nextSibling)&&t(e.lastChild);return!r&&!i}function io(e,t,n){var r,i=/^(\s*)((?:.|\n)*\S)(\s*)$/m,a=t.match(i),o=a[1],s=a[2],l=a[3];if(ro(e))r=""+n+s+n;else{var c=e.nodeName.toLowerCase();r="<"+c+">"+s+"</"+c+">"}return""+o+r+l}var ao=no.a.Renderer.factory(no.a.gfmRenderer,{"EM, I":function(e,t){return this.isEmptyText(t)?"":io(e,t,"*")},"STRONG, B":function(e,t){return this.isEmptyText(t)?"":io(e,t,"**")},"DEL, S":function(e,t){return this.isEmptyText(t)?"":io(e,t,"~~")}}),oo=n(31),so=function(e,t){var n,r=e.start,i=e.end;if(r.ch>=t){var a={line:r.line,ch:r.ch-t},o={line:i.line,ch:i.ch+t};n={from:a,to:o}}return n},lo=function(e,t){var n=t.length;return e.substr(n,e.length-2*n)},co=function(e,t){return""+t+e+t},uo=function(e,t,n,r,i){var a=so(t,n),o=!1;if(a){var s=a.from,l=a.to,c=e.getRange(s,l);r(c)&&(e.setSelection(s,l),e.replaceSelection(i(c),"around"),o=!0)}return o},ho=function(e,t,n,r){var i=!1;return n(t)&&(e.replaceSelection(r(t),"around"),i=!0),i},fo=function(e,t,n,r,i){var a=e.getCursor(),o=a.line,s=a.ch,l=e.getSelection(),c=n.length,u=function(e){return r.test(e)};if(!uo(e,t,c,u,(function(e){return lo(e,n)}))&&!ho(e,l,u,(function(e){return lo(e,n)}))){var d=l.replace(i,"$1");e.replaceSelection(co(d,n),"around")}var h=e.getSelection(),f=s;l||(u(h)?f+=c:f-=c,e.setCursor(o,f))},po=/^(\*{2}|_{2}).*\1$/,go=/[*_]{2,}([^*_]*)[*_]{2,}/g,mo="**",vo=Yn["a"].command("markdown",{name:"Bold",keyMap:["CTRL+B","META+B"],exec:function(e){var t=e.getEditor(),n=t.getDoc(),r=e.getRange();fo(n,r,mo,po,go),t.focus()}}),yo=vo,bo=/^(\*{3}|_{3}).*\1$/,_o=/^(\*{2}|_{2}).*\1$/,wo=/^(\*|_).*\1$/,Co=/([^*_])[*_]([^*_]+)[*_]([^*_])/g,Eo=function(e){return bo.test(e)},So=function(e){return _o.test(e)},To=function(e){return wo.test(e)},ko="*",No="**",xo="***",Lo=ko.length,Oo=No.length,Mo=xo.length,Ao=function(e){return e?e.replace(Co,"$1$2$3"):""},Do=function(e,t,n){var r=uo.bind(this,e,n);return r(Mo,Eo,(function(e){return lo(e,ko)}))||r(Oo,So,(function(e){return co(Ao(e),ko)}))||r(Lo,To,(function(e){return lo(e,ko)}))||ho(e,t,Eo,(function(e){return lo(e,ko)}))||ho(e,t,So,(function(e){return co(Ao(e),ko)}))||ho(e,t,To,(function(e){return lo(e,ko)}))},Bo=function(e,t){return uo(e,t,Mo,Eo,(function(e){return lo(e,ko)}))||uo(e,t,Oo,So,(function(e){return co(e,ko)}))||uo(e,t,Lo,To,(function(){return""}))||e.replaceSelection(""+ko+ko,"around")},Io=Yn["a"].command("markdown",{name:"Italic",keyMap:["CTRL+I","META+I"],exec:function(e){var t=e.getEditor(),n=t.getDoc(),r=n.getCursor(),i=r.line,a=r.ch,o=e.getRange(),s=n.getSelection();if(s)Do(n,s,o)||n.replaceSelection(co(Ao(s),ko),"around");else{Bo(n,o);var l=n.getSelection(),c=a;Eo(l)||To(l)&&!So(l)?c+=Lo:c-=Lo,n.setCursor(i,c)}t.focus()}}),Ro=Io,Po=/^~~.*~~$/,Fo=/~~([^~]*)~~/g,Ho="~~",jo=Yn["a"].command("markdown",{name:"Strike",keyMap:["CTRL+S","META+S"],exec:function(e){var t=e.getEditor(),n=t.getDoc(),r=e.getRange();fo(n,r,Ho,Po,Fo),t.focus()}}),Uo=jo,qo=/^> ?/,Vo=Yn["a"].command("markdown",{name:"Blockquote",keyMap:["ALT+Q","ALT+Q"],exec:function(e){var t,n=e.getEditor(),r=n.getDoc(),i=e.getCurrentRange(),a={line:i.from.line,ch:0},o={line:i.to.line,ch:r.getLineHandle(i.to.line).text.length},s=r.getRange(a,o),l=s.split("\n"),c=this._haveBlockquote(l);if(t=c?this._removeBlockquote(l):this._addBlockquote(l),r.replaceRange(t.join("\n"),a,o),c){var u=l.length;this._isBlockquoteWithSpace(l[u-1])?i.to.ch-=2:i.to.ch-=1}else i.to.ch+=2;r.setCursor(i.to),n.focus()},_haveBlockquote:function(e){for(var t=0;t<e.length;t+=1)if(!qo.test(e[t]))return!1;return!0},_addBlockquote:function(e){return e.map((function(e){return"> "+e}))},_removeBlockquote:function(e){return e.map((function(e){return e.replace(qo,"")}))},_isBlockquoteWithSpace:function(e){return/^> /.test(e)}}),Wo=Vo,$o=/^#+\s/g,zo=Yn["a"].command("markdown",{name:"Heading",exec:function(e,t){var n=e.getEditor(),r=n.getDoc(),i=e.getCurrentRange(),a={line:i.from.line,ch:0},o={line:i.to.line,ch:r.getLineHandle(i.to.line).text.length},s=r.getLine(o.line).length,l=r.getRange(a,o),c=l.split("\n");Qe()(c).forEach((function(e,n){c[n]=Ko(e,t)})),r.replaceRange(c.join("\n"),a,o),i.to.ch+=r.getLine(o.line).length-s,r.setSelection(a,i.to),n.focus()}});function Ko(e,t){var n=e.match($o),r="";do{r+="#",t-=1}while(t>0);if(n){var i=e.split(n[0]);e=i[1]}return r+" "+e}var Go=zo,Jo=Yn["a"].command("markdown",{name:"Paragraph",exec:function(e){var t=e.getEditor(),n=t.getDoc(),r=e.getCurrentRange(),i={line:r.from.line,ch:0},a={line:r.to.line,ch:n.getLineHandle(r.to.line).text.length},o=n.getLine(a.line).length,s=n.getRange(i,a),l=s.split("\n");Qe()(l).forEach((function(e,t){l[t]=Qo(e)})),n.replaceRange(l.join("\n"),i,a),r.to.ch+=n.getLine(a.line).length-o,n.setSelection(i,a),t.focus()}});function Qo(e){var t=/^(#{1,6}| *((?:\*|-|\d\.)(?: \[[ xX]])?)) /;return e.replace(t,"")}var Yo=Jo,Xo=Yn["a"].command("markdown",{name:"HR",keyMap:["CTRL+L","META+L"],exec:function(e){var t=e.getEditor(),n=t.getDoc(),r="",i=e.getCurrentRange(),a={line:i.from.line,ch:i.from.ch},o={line:i.to.line,ch:i.to.ch};i.collapsed&&(r=n.getLine(a.line),a.ch=0,o.ch=n.getLineHandle(i.to.line).text.length),n.getLine(a.line).length?r+="\n\n* * *\n\n":r+="\n* * *\n",n.replaceRange(r,a,o),t.focus()}}),Zo=Xo,es=rr.decodeURIGraceful,ts=rr.encodeMarkdownCharacters,ns=rr.escapeMarkdownCharacters,rs=Yn["a"].command("markdown",{name:"AddLink",exec:function(e,t){var n=e.getEditor(),r=n.getDoc(),i=e.getCurrentRange(),a={line:i.from.line,ch:i.from.ch},o={line:i.to.line,ch:i.to.ch},s=t.linkText,l=t.url;s=es(s),s=ns(s),l=ts(l);var c="["+s+"]("+l+")";r.replaceRange(c,a,o),n.focus()}}),is=rs,as=rr.decodeURIGraceful,os=rr.encodeMarkdownCharacters,ss=rr.escapeMarkdownCharacters,ls=Yn["a"].command("markdown",{name:"AddImage",exec:function(e,t){var n=e.getEditor(),r=n.getDoc(),i=e.getCurrentRange(),a={line:i.from.line,ch:i.from.ch},o={line:i.to.line,ch:i.to.ch},s=t.altText,l=t.imageUrl;s=as(s),s=ss(s),l=os(l);var c="!["+s+"]("+l+")";r.replaceRange(c,a,o,"+addImage"),n.focus()}}),cs=ls,us=Yn["a"].command("markdown",{name:"UL",keyMap:["CTRL+U","META+U"],exec:function(e){var t=e.getCurrentRange(),n=e.componentManager.getManager("list");n.changeSyntax(t,"ul")}}),ds=us,hs=Yn["a"].command("markdown",{name:"OL",keyMap:["CTRL+O","META+O"],exec:function(e){var t=e.getCurrentRange(),n=e.componentManager.getManager("list");n.changeSyntax(t,"ol")}}),fs=hs,ps=Yn["a"].command("markdown",{name:"Indent",exec:function(e){var t=e.getEditor();t.execCommand("indentOrderedList")}}),gs=ps,ms=Yn["a"].command("markdown",{name:"Outdent",exec:function(e){var t=e.getEditor();t.execCommand("indentLessOrderedList")}}),vs=ms,ys=Yn["a"].command("markdown",{name:"Table",exec:function(e,t,n,r){var i=e.getEditor(),a=i.getDoc(),o="\n";i.getCursor().ch>0&&(o+="\n"),o+=bs(t,r),o+=_s(t,n-1,r),a.replaceSelection(o),r||i.setCursor(i.getCursor().line-n,2),e.focus()}});function bs(e,t){var n="|",r="|",i=0;while(e)t?(n+=" "+t[i]+" |",i+=1):n+="  |",r+=" --- |",e-=1;return n+"\n"+r+"\n"}function _s(e,t,n){for(var r="",i=e,a=0;a<t;a+=1){r+="|";for(var o=0;o<e;o+=1)n?(r+=" "+n[i]+" |",i+=1):r+="  |";r+="\n"}return r=r.replace(/\n$/g,""),r}var ws=ys,Cs=Yn["a"].command("markdown",{name:"Task",keyMap:["ALT+T","ALT+T"],exec:function(e){var t=e.getCurrentRange(),n=e.componentManager.getManager("list");n.changeSyntax(t,"task")}}),Es=Cs,Ss=/^`([^`]+)`$/,Ts=/`([^`]+)`/g,ks=Yn["a"].command("markdown",{name:"Code",keyMap:["SHIFT+CTRL+C","SHIFT+META+C"],exec:function(e){var t,n=e.getEditor(),r=n.getDoc(),i=r.getSelection(),a=n.getCursor(),o=this.hasStrikeSyntax(i);o?(t=this.remove(i),t=this._removeCodeSyntax(t)):(t=this._removeCodeSyntax(i),t=this.append(t)),r.replaceSelection(t,"around"),i||o||this.setCursorToCenter(r,a,o),n.focus()},setCursorToCenter:function(e,t,n){var r=n?-1:1;e.setCursor(t.line,t.ch+r)},hasStrikeSyntax:function(e){return Ss.test(e)},append:function(e){return"`"+e+"`"},remove:function(e){return e.substr(1,e.length-2)},_removeCodeSyntax:function(e){return e?e.replace(Ts,"$1"):""}}),Ns=ks,xs=Yn["a"].command("markdown",{name:"CodeBlock",keyMap:["SHIFT+CTRL+P","SHIFT+META+P"],exec:function(e){var t=e.getEditor(),n=t.getDoc(),r=e.getCurrentRange(),i=["```",n.getSelection(),"```"],a=1;0!==r.from.ch&&(i.unshift(""),a+=1),r.to.ch!==n.getLine(r.to.line).length&&i.push(""),n.replaceSelection(i.join("\n")),t.setCursor(r.from.line+a,0),t.focus()}}),Ls=xs,Os=Yn["a"].command("wysiwyg",{name:"Bold",keyMap:["CTRL+B","META+B"],exec:function(e){var t=e.getEditor(),n=e.componentManager.getManager("tableSelection");if(e.focus(),t.hasFormat("table")&&n.getSelectedCells().length){n.styleToSelectedCells(Ms);var r=t.getSelection();r.collapse(!0),t.setSelection(r)}else Ms(t),dt["a"].optimizeRange(t.getSelection(),"B")}});function Ms(e){e.hasFormat("b")||e.hasFormat("strong")?e.changeFormat(null,{tag:"b"}):e.hasFormat("PRE")||(e.hasFormat("code")&&e.changeFormat(null,{tag:"code"}),e.bold())}var As=Os,Ds=Yn["a"].command("wysiwyg",{name:"Italic",keyMap:["CTRL+I","META+I"],exec:function(e){var t=e.getEditor(),n=e.componentManager.getManager("tableSelection");if(e.focus(),t.hasFormat("table")&&n.getSelectedCells().length){n.styleToSelectedCells(Bs);var r=t.getSelection();r.collapse(!0),t.setSelection(r)}else Bs(t),dt["a"].optimizeRange(t.getSelection(),"I")}});function Bs(e){e.hasFormat("i")||e.hasFormat("em")?e.changeFormat(null,{tag:"i"}):e.hasFormat("PRE")||(e.hasFormat("code")&&e.changeFormat(null,{tag:"code"}),e.italic())}var Is=Ds,Rs=Yn["a"].command("wysiwyg",{name:"Strike",keyMap:["CTRL+S","META+S"],exec:function(e){var t=e.getEditor(),n=e.componentManager.getManager("tableSelection");if(e.focus(),t.hasFormat("table")&&n.getSelectedCells().length){n.styleToSelectedCells(Ps);var r=t.getSelection();r.collapse(!0),t.setSelection(r)}else Ps(t),dt["a"].optimizeRange(t.getSelection(),"S")}});function Ps(e){e.hasFormat("S")?e.changeFormat(null,{tag:"S"}):e.hasFormat("PRE")||(e.hasFormat("code")&&e.changeFormat(null,{tag:"code"}),e.strikethrough())}var Fs=Rs,Hs=Yn["a"].command("wysiwyg",{name:"Blockquote",keyMap:["ALT+Q","ALT+Q"],exec:function(e){var t=e.getEditor();e.focus(),t.hasFormat("TABLE")||t.hasFormat("PRE")||(t.hasFormat("BLOCKQUOTE")?t.decreaseQuoteLevel():t.increaseQuoteLevel())}}),js=Hs,Us=rr.decodeURIGraceful,qs=rr.encodeMarkdownCharacters,Vs=Yn["a"].command("wysiwyg",{name:"AddImage",exec:function(e,t){var n=e.getEditor(),r=t.altText,i=t.imageUrl;r=Us(r),i=qs(i),e.focus(),n.hasFormat("PRE")||n.insertImage(i,{alt:r})}}),Ws=Vs,$s=rr.decodeURIGraceful,zs=rr.encodeMarkdownCharacters,Ks=Yn["a"].command("wysiwyg",{name:"AddLink",exec:function(e,t){var n=e.getEditor(),r=e.getLinkAttribute(),i=t.url,a=t.linkText;if(a=$s(a),i=zs(i),e.focus(),!n.hasFormat("PRE"))if(n.removeAllFormatting(),n.getSelectedText())n.makeLink(i,r);else{var o=n.createElement("A",u()({href:i},r));o.textContent=a,n.insertElement(o)}}}),Gs=Ks,Js=Yn["a"].command("wysiwyg",{name:"HR",keyMap:["CTRL+L","META+L"],exec:function(e){var t=e.getEditor(),n=t.getSelection();if(n.collapsed&&!t.hasFormat("TABLE")&&!t.hasFormat("PRE")){var r=document.createElement("hr"),i=dt["a"].getChildNodeByOffset(n.startContainer,n.startOffset),a=dt["a"].getTopNextNodeUnder(i,e.getBody());if(a&&!dt["a"].isTextNode(a))while(a&&"false"===a.getAttribute("contenteditable"))a=a.nextSibling;a||(a=dt["a"].createEmptyLine(),dt["a"].append(e.getBody(),a)),t.modifyBlocks((function(e){return e.appendChild(r),e}));var o=r.previousSibling;o&&dt["a"].isTextNode(o)&&0===dt["a"].getTextLength(o)&&r.parentNode.removeChild(o),r.parentNode.replaceChild(dt["a"].createHorizontalRule(),r),n.selectNodeContents(a),n.collapse(!0),t.setSelection(n),t.saveUndoState(n)}e.focus()}}),Qs=Js,Ys=Yn["a"].command("wysiwyg",{name:"Heading",exec:function(e,t){var n=e.getEditor(),r="h1, h2, h3, h4, h5, h6, div";e.focus(),n.hasFormat("TABLE")||n.hasFormat("PRE")||n.modifyBlocks((function(e){var n=dt["a"].children(e,r);return Qe()(n).forEach((function(e){var n="h"+t;if("DIV"===dt["a"].getNodeName(e))dt["a"].wrap(e,n);else{var r=document.createElement(n);dt["a"].insertBefore(r,e),r.innerHTML=e.innerHTML,dt["a"].remove(e)}})),e}))}}),Xs=Ys,Zs=Yn["a"].command("wysiwyg",{name:"Paragraph",exec:function(e){var t=e.getEditor();e.focus(),t.hasFormat("TABLE")||t.hasFormat("PRE")||t.modifyBlocks((function(e){var t=document.createDocumentFragment();return Qe()(e.childNodes).forEach((function(e){e.nodeName.match(/h\d/i)?el(t,e.children):e.nodeName.match(/ul|ol/i)?dt["a"].findAll(e,"li").forEach((function(e){el(t,e.children)})):t.appendChild(e)})),t}))}});function el(e,t){Qe()(t).forEach((function(t){e.appendChild(t.cloneNode(!0))}))}var tl=Zs,nl=Yn["a"].command("wysiwyg",{name:"UL",keyMap:["CTRL+U","META+U"],exec:function(e){var t=e.getEditor(),n=t.getSelection(),r=e.componentManager.getManager("list"),i=n.startContainer,a=n.endContainer,o=n.startOffset,s=n.endOffset,l=[];if(e.focus(),t.saveUndoState(n),r.isAvailableMakeListInTable())l=r.createListInTable(n,"UL");else for(var c=r.getLinesOfSelection(i,a),u=0;u<c.length;u+=1){var d=this._changeFormatToUnorderedListIfNeed(e,c[u]);d&&l.push(d)}l.length&&r.adjustRange(i,a,o,s,l)},_changeFormatToUnorderedListIfNeed:function(e,t){var n,r=e.getEditor(),i=r.getSelection(),a=e.componentManager.getManager("task");return r.hasFormat("PRE")||(i.setStart(t,0),i.collapse(!0),r.setSelection(i),r.hasFormat("LI")?(e.saveSelection(i),a.unformatTask(i.startContainer),r.replaceParent(i.startContainer,"ol","ul"),e.restoreSavedSelection()):(e.unwrapBlockTag(),r.makeUnorderedList()),n=r.getSelection().startContainer),n}}),rl=nl,il=Yn["a"].command("wysiwyg",{name:"OL",keyMap:["CTRL+O","META+O"],exec:function(e){var t=e.getEditor(),n=t.getSelection(),r=e.componentManager.getManager("list"),i=n.startContainer,a=n.startOffset,o=n.endContainer,s=n.endOffset,l=[];if(e.focus(),t.saveUndoState(n),r.isAvailableMakeListInTable())l=r.createListInTable(n,"OL");else for(var c=r.getLinesOfSelection(i,o),u=0;u<c.length;u+=1){var d=this._changeFormatToOrderedListIfNeed(e,c[u]);d&&l.push(d)}l.length&&r.adjustRange(i,o,a,s,l)},_changeFormatToOrderedListIfNeed:function(e,t){var n,r=e.getEditor(),i=r.getSelection(),a=e.componentManager.getManager("task");return r.hasFormat("PRE")||(i.setStart(t,0),i.collapse(!0),r.setSelection(i),r.hasFormat("LI")?(e.saveSelection(i),a.unformatTask(i.startContainer),r.replaceParent(i.startContainer,"ul","ol"),e.restoreSavedSelection()):(e.unwrapBlockTag(),r.makeOrderedList()),n=r.getSelection().startContainer),n}}),al=il,ol=Yn["a"].command("wysiwyg",{name:"Table",exec:function(e,t,n,r){var i,a=e.getEditor(),o=e.componentManager.getManager("table").getTableIDClassName();!a.getSelection().collapsed||a.hasFormat("TABLE")||a.hasFormat("PRE")?e.focus():(i='<table class="'+o+'">',i+=ll(t,r),i+=cl(t,n-1,r),i+="</table>",a.insertHTML(i),e.focus(),r||sl(a,e.getBody().querySelector("."+o)))}});function sl(e,t){var n=e.getSelection();n.selectNodeContents(t.querySelector("th")),n.collapse(!0),e.setSelection(n)}function ll(e,t){var n="<thead><tr>",r=0;while(e)n+="<th>",t&&(n+=t[r],r+=1),n+="</th>",e-=1;return n+="</tr></thead>",n}function cl(e,t,n){for(var r="<tbody>",i=e,a=0;a<t;a+=1){r+="<tr>";for(var o=0;o<e;o+=1)r+="<td>",n&&(r+=n[i],i+=1),r+="</td>";r+="</tr>"}return r+="</tbody>",r}var ul=ol,dl=Yn["a"].command("wysiwyg",{name:"AddRow",exec:function(e){var t,n,r=e.getEditor(),i=r.getSelection().cloneRange(),a=hl(e);if(e.focus(),r.hasFormat("TD")){r.saveUndoState(i),t=dt["a"].closest(i.startContainer,"tr");for(var o=0;o<a;o+=1)n=fl(t),dt["a"].insertAfter(n,t);pl(r,n)}else if(r.hasFormat("TH")){r.saveUndoState(i),t=dt["a"].closest(i.startContainer,"tr");var s=dt["a"].parents(t,"thead"),l=s[0],c=l.nextSibling;if(ft()(c,"tbody")){var u=dt["a"].children(c,"tr");t=u[0]}for(var d=0;d<a;d+=1)n=fl(t),dt["a"].insertBefore(n,t);pl(r,n)}}});function hl(e){var t=e.componentManager.getManager("tableSelection"),n=t.getSelectedCells(),r=1;if(n.length>1){var i=n[0],a=n[n.length-1],o=t.getSelectionRangeFromTable(i,a);r=o.to.row-o.from.row+1}return r}function fl(e){var t=e.cloneNode(!0),n=it.a.msie?"":"<br />";return dt["a"].findAll(t,"td").forEach((function(e){e.innerHTML=n})),t}function pl(e,t){var n=e.getSelection();n.selectNodeContents(t.querySelector("td")),n.collapse(!0),e.setSelection(n)}var gl=dl,ml=Yn["a"].command("wysiwyg",{name:"AddCol",exec:function(e){var t,n=e.getEditor(),r=n.getSelection().cloneRange(),i=vl(e);e.focus(),n.hasFormat("TR")&&(n.saveUndoState(r),t=yl(r),bl(t,i),_l(n,t))}});function vl(e){var t=e.componentManager.getManager("tableSelection"),n=t.getSelectedCells(),r=1;if(n.length>0){var i=n[0].parentNode.querySelectorAll("td, th").length;r=Math.min(i,n.length)}return r}function yl(e){var t=e.startContainer;return"TD"!==dt["a"].getNodeName(t)&&"TH"!==dt["a"].getNodeName(t)&&(t=dt["a"].parentsUntil(t,"tr")),t}function bl(e,t){void 0===t&&(t=1);var n=dt["a"].parents(e,"table"),r=n[0];if(r){var i,a=Zn()(e,Qe()(e.parentNode.childNodes));dt["a"].findAll(r,"tr").forEach((function(e){for(var n="TBODY"===dt["a"].getNodeName(e.parentNode),r=it.a.msie,o=e.children[a],s=0;s<t;s+=1)i=n?document.createElement("td"):document.createElement("th"),r||i.appendChild(document.createElement("br")),dt["a"].insertAfter(i,o)}))}}function _l(e,t){var n=e.getSelection();n.selectNodeContents(t.nextSibling),n.collapse(!0),e.setSelection(n)}var wl=ml,Cl=Yn["a"].command("wysiwyg",{name:"RemoveRow",exec:function(e){var t=e.getEditor(),n=t.getSelection().cloneRange(),r=dt["a"].parents(n.startContainer,"table"),i=r[0],a=e.componentManager.getManager("tableSelection"),o=e.componentManager.getManager("table"),s=Tl(n,a,i),l=i.querySelectorAll("tbody tr").length;if(e.focus(),(t.hasFormat("TD")||t.hasFormat("TABLE"))&&l>1){t.saveUndoState(n);var c=s[0],u=s[s.length-1],d=u&&u.nextSibling?u.nextSibling:c&&c.previousSibling;d&&El(t,n,d,o),s.forEach((function(e){return dt["a"].remove(e)}))}a.removeClassAttrbuteFromAllCellsIfNeed()}});function El(e,t,n,r){var i=n.querySelector("td");t.setStart(i,0),t.collapse(!0),r.setLastCellNode(i),e.setSelection(t)}function Sl(e,t,n){var r=n.querySelectorAll("tbody tr").length,i=dt["a"].parents(e,"thead").length,a=t.from.row,o=t.to.row;i&&(a+=1);var s=(1===a||i)&&o===r;return s&&(o-=1),dt["a"].findAll(n,"tr").slice(a,o+1)}function Tl(e,t,n){var r,i,a=t.getSelectedCells();if(a.length)r=t.getSelectionRangeFromTable(a[0],a[a.length-1]),i=Sl(a[0],r,n);else{var o=dt["a"].closest(e.startContainer,"td,th");r=t.getSelectionRangeFromTable(o,o),i=Sl(o,r,n)}return i}var kl=Cl,Nl=Yn["a"].command("wysiwyg",{name:"RemoveCol",exec:function(e){var t=e.getEditor(),n=t.getSelection().cloneRange(),r=dt["a"].parents(n.startContainer,"table"),i=r[0],a=e.componentManager.getManager("table"),o=e.componentManager.getManager("tableSelection"),s=dt["a"].closest(n.startContainer,"table").querySelectorAll("thead tr th").length>1;if(e.focus(),n.collapse(!0),t.setSelection(n),t.hasFormat("TR",null,n)&&s){var l=i.querySelectorAll("tbody tr"),c=l.length?l[0].querySelectorAll("td").length:0,u=o.getSelectedCells();if(u.length<c){var d;if(t.saveUndoState(n),u.length>1){var h=u[u.length-1],f=u[0];d=h.nextSibling?h.nextSibling:f.previousSibling,Ll(u)}else{var p=xl(n);d=p.nextSibling?p.nextSibling:p.previousSibling,Ol(p)}Ml(t,d,a)}}}});function xl(e){var t=e.startContainer;return"TD"!==dt["a"].getNodeName(t)&&"TH"===!dt["a"].getNodeName(t)&&(t=dt["a"].parentsUntil(t,"tr")),t}function Ll(e){for(var t=e.length,n=0;n<t;n+=1){var r=e[n];r&&Ol(e[n])}}function Ol(e){var t=dt["a"].parents(e,"table"),n=t[0];if(n){var r=Zn()(e,Qe()(e.parentNode.childNodes));dt["a"].findAll(n,"tr").forEach((function(e){var t=e.children[r];dt["a"].remove(t)}))}}function Ml(e,t,n){var r=t;if(t&&dt["a"].isContain(document.body,t)){var i=e.getSelection();i.selectNodeContents(t),i.collapse(!0),e.setSelection(i),n.setLastCellNode(r)}}var Al=Nl,Dl=Yn["a"].command("wysiwyg",{name:"AlignCol",exec:function(e,t){var n=e.getEditor(),r=n.getSelection().cloneRange(),i=e.componentManager.getManager("tableSelection"),a=Rl(r,i);if(e.focus(),n.hasFormat("TR")){n.saveUndoState(r);var o=dt["a"].parents(r.startContainer,"table"),s=o[0],l=Il(s,a);Bl(s,t,l)}i.removeClassAttrbuteFromAllCellsIfNeed()}});function Bl(e,t,n){var r=n.isDivided||!1,i=n.startColumnIndex,a=n.endColumnIndex,o=dt["a"].findAll(e,"tr"),s=o.length?o[0].querySelectorAll("td,th").length:0;o.forEach((function(e){var n=Qe()(dt["a"].children(e,"td,th"));n.forEach((function(e,n){(r&&(i<=n&&n<=s||n<=a)||i<=n&&n<=a)&&e.setAttribute("align",t)}))}))}function Il(e,t){var n,r,i,a=e.querySelectorAll("tr"),o=a.length?a[0].querySelectorAll("td,th").length:0,s=t.from,l=t.to;return s.row===l.row?(n=s.cell,r=l.cell):s.row<l.row&&(s.cell<=l.cell?(n=0,r=o-1):(n=s.cell,r=l.cell,i=!0)),{startColumnIndex:n,endColumnIndex:r,isDivided:i}}function Rl(e,t){var n,r,i=t.getSelectedCells();if(i.length)n=t.getSelectionRangeFromTable(i[0],i[i.length-1]);else{var a=e.startContainer;r=dt["a"].isTextNode(a)?dt["a"].parent(a,"td,th"):a,n=t.getSelectionRangeFromTable(r,r)}return n}var Pl=Dl,Fl=Yn["a"].command("wysiwyg",{name:"RemoveTable",exec:function(e){var t=e.getEditor(),n=t.getSelection().cloneRange();t.hasFormat("TABLE")&&(t.saveUndoState(n),dt["a"].remove(dt["a"].closest(n.startContainer,"table"))),e.focus()}}),Hl=Fl,jl=Yn["a"].command("wysiwyg",{name:"Indent",exec:function(e){var t,n,r,i=e.componentManager.getManager("list"),a=e.getEditor().getSelection(),o=dt["a"].closest(a.startContainer,"li"),s=o&&o.previousSibling;if(s){var l=o.querySelector("li");if(e.getEditor().saveUndoState(),n=o.className,t=s.className,o.className="",s.className="",l){r=l.className;var c=Qe()(l.children).filter((function(e){return ft()(e,"div")}));c.length||(l.className="")}e.getEditor().increaseListLevel(),i.mergeList(o),o.className=n,s.className=t,l&&(l.className=r)}}}),Ul=jl,ql=Yn["a"].command("wysiwyg",{name:"Outdent",exec:function(e){var t=Wl(e);if(t&&Vl(t)){e.getEditor().saveUndoState();var n=t.className;e.getEditor().decreaseListLevel(),t=Wl(e),t&&n&&(t.className=n)}}});function Vl(e){var t=dt["a"].getNodeName(e.nextSibling);return"OL"!==t&&"UL"!==t}function Wl(e){var t=e.getEditor().getSelection();return dt["a"].closest(t.startContainer,"li")}var $l=ql,zl=Yn["a"].command("wysiwyg",{name:"Task",keyMap:["ALT+T","ALT+T"],exec:function(e){var t=e.getEditor(),n=t.getSelection(),r=e.componentManager.getManager("list"),i=n.startContainer,a=n.endContainer,o=n.startOffset,s=n.endOffset,l=[];if(e.focus(),t.saveUndoState(n),r.isAvailableMakeListInTable())l=r.createListInTable(n,"TASK");else for(var c=r.getLinesOfSelection(i,a),u=0;u<c.length;u+=1){var d=this._changeFormatToTaskIfNeed(e,c[u]);d&&l.push(d)}l.length&&r.adjustRange(i,a,o,s,l)},_changeFormatToTaskIfNeed:function(e,t){var n,r=e.getEditor(),i=r.getSelection(),a=e.componentManager.getManager("task");return r.hasFormat("PRE")||(i.setStart(t,0),i.collapse(!0),r.setSelection(i),r.hasFormat("li")||(r.makeUnorderedList(),t=r.getSelection().startContainer),At()(t,"task-list-item")?a.unformatTask(t):a.formatTask(t),n=r.getSelection().startContainer),n}}),Kl=zl,Gl=Yn["a"].command("wysiwyg",{name:"Code",keyMap:["SHIFT+CTRL+C","SHIFT+META+C"],exec:function(e){var t=e.getEditor(),n=e.componentManager.getManager("tableSelection"),r=Ql.bind(null,e.getEditor());if(e.focus(),t.hasFormat("table")&&n.getSelectedCells().length){n.styleToSelectedCells(r);var i=t.getSelection();i.collapse(!0),t.setSelection(i)}else r(t)}});function Jl(e){"CODE"===dt["a"].getNodeName(e.startContainer.nextSibling)&&0===dt["a"].getTextLength(e.startContainer.nextSibling)&&dt["a"].remove(e.startContainer.nextSibling)}function Ql(e,t){if(!t.hasFormat("PRE")&&t.hasFormat("code"))t.changeFormat(null,{tag:"code"}),Jl(e.getSelection().cloneRange());else if(!t.hasFormat("a")&&!t.hasFormat("PRE")){t.hasFormat("b")?t.removeBold():t.hasFormat("i")&&t.removeItalic(),t.changeFormat({tag:"code"});var n=t.getSelection().cloneRange();n.setStart(n.endContainer,n.endOffset),n.collapse(!0),t.setSelection(n)}}var Yl=Gl,Xl="te-content-codeblock-temp",Zl="data-te-codeblock",ec=Yn["a"].command("wysiwyg",{name:"CodeBlock",keyMap:["SHIFT+CTRL+P","SHIFT+META+P"],exec:function(e,t){var n=e.getEditor(),r=n.getSelection().cloneRange();if(!n.hasFormat("PRE")&&!n.hasFormat("TABLE")){var i=Zl+' class = "'+Xl+'"';t&&(i+=' data-language="'+t+'"');var a=nc(r,e);n.insertHTML("<pre "+i+">"+a+"</pre>"),tc(e.getBody().querySelector("."+Xl),e)}e.focus()}});function tc(e,t){var n=t.getEditor().getSelection().cloneRange();m()(e,Xl),n.setStartBefore(e.firstChild),n.collapse(!0),t.getEditor().setSelection(n)}function nc(e,t){var n,r=t.componentManager.getManager("codeblock");if(e.collapsed)n="<br>";else{var i=e.extractContents(),a=Qe()(i.childNodes),o=document.createElement("div");o.appendChild(r.prepareToPasteOnCodeblock(a)),n=o.innerHTML}return n}var rc=ec,ic=200,ac=15,oc=null,sc=null;function lc(e,t){var n=t.syncScrollTop,r=t.releaseEventBlock;clearTimeout(sc),n(e),sc=setTimeout((function(){r()}),ac)}function cc(e,t,n){var r=t-e,i=Date.now(),a=function a(){var o,s=Date.now(),l=(s-i)/ic;oc&&clearTimeout(oc),l<1?(o=e+r*Math.cos((1-l)*Math.PI/2),lc(Math.ceil(o),n),oc=setTimeout(a,1)):(lc(t,n),oc=null)};a()}var uc=n(18),dc=n(24),hc=.5,fc=!1,pc=null;function gc(e,t){var n=Object(dc["a"])(t),r=n||e.offsetHeight;return n||Object(dc["d"])(t,r),r}function mc(e,t,n,r,i){var a=Object(he["f"])(n),o=e.lineInfo(t).handle.height,s=gc(i,0),l=r.getBoundingClientRect().top-i.getBoundingClientRect().top,c=-s*hc;if(Object(he["j"])(n)){var u=(t-a+1)*o;c=u,l+=u}return{top:l,additionalScrollTop:c}}function vc(e,t,n){var r=t._previewContent,i=t.el,a=e.cm,o=e.toastMark,s=a.getScrollInfo(),l=s.left,c=s.top,u=s.height,d=s.clientHeight,h=u-c<=d,f=i.scrollTop,p=h?i.scrollHeight:0;if(c&&!h){var g=n?a.coordsChar({left:l,top:c},"local"):a.getCursor("from"),m=g.line,v=o.findFirstNodeAtLine(m+1);if(!v||Object(he["g"])(v))return;var y=Object(uc["f"])(v),b=y.node,_=y.mdNode,w=Object(he["f"])(_),C=gc(i,0);if(p=Object(uc["g"])(b,r)||b.offsetTop,n){if(Object(uc["h"])(_)){var E=gc(b,_.id),S=a.heightAtLine(w-1,"local"),T=Object(uc["c"])(_,a);p+=Object(uc["b"])(c,S,T,E);var k={latestScrollTop:pc,scrollTop:c,targetScrollTop:p,sourceScrollTop:f};if(p=Object(uc["d"])(k),pc=c,p===f)return}}else{var N=mc(a,m,_,b,i),x=N.top,L=N.additionalScrollTop;if(x>0&&x<C)return;p+=L,pc=null}}fc=!0;var O={syncScrollTop:function(e){return i.scrollTop=e},releaseEventBlock:function(){return fc=!1}};cc(f,p,O)}function yc(){return fc}var bc=!1,_c=null;function wc(e,t,n){var r=Object(dc["a"])(t),i=Object(dc["b"])(t),a=r||e.offsetHeight,o=i||Object(uc["g"])(e,n)||e.offsetTop;return r||Object(dc["d"])(t,a),i||Object(dc["e"])(t,o),{offsetHeight:a,offsetTop:o}}function Cc(e,t){while(!e.getAttribute("data-nodeid")&&e.parentElement!==t)e=e.parentElement;return e}function Ec(e,t,n){var r=e.toastMark,i=e.cm,a=t.el,o=a.scrollTop,s=a.clientHeight,l=a.scrollHeight,c=t._previewContent,u=l-o<=s,d=i.getScrollInfo(),h=d.left,f=d.top,p=d.height,g=u?p:0;if(o&&n&&!u){if(n=Cc(n,c),!n.getAttribute("data-nodeid"))return;var m=i.coordsChar({left:h,top:f},"local"),v=m.line,y=Number(n.getAttribute("data-nodeid")),b=Object(uc["f"])(r.findNodeById(y)),_=b.mdNode,w=b.node,C=Object(he["f"])(_);if(g=i.heightAtLine(C-1,"local"),Object(he["i"])(_)&&(g+=Object(uc["e"])(i,C,v)),Object(uc["h"])(_)){var E=Object(uc["c"])(_,i),S=wc(w,y,c),T=S.offsetHeight,k=S.offsetTop;g+=Object(uc["b"])(o,k,T,E);var N={latestScrollTop:_c,scrollTop:o,targetScrollTop:g,sourceScrollTop:f};if(g=Object(uc["d"])(N),_c=o,g===f)return}}bc=!0;var x={syncScrollTop:function(e){return i.scrollTo(0,e)},releaseEventBlock:function(){return bc=!1}};cc(f,g,x)}function Sc(){return bc}var Tc="tui-scrollsync",kc="tui-scrollsync active",Nc=!0;function xc(){return Nc}function Lc(e){if(!e.isViewer()&&"default"===e.getUI().name){var t=e.i18n,n={ACTIVE:t.get("Auto scroll enabled"),INACTIVE:t.get("Auto scroll disabled")},r=e.getUI().getToolbar(),i=document.createElement("button");i.className=kc,r.addItem("divider"),r.addItem({type:"button",options:{command:"scrollSyncToggle",tooltip:n.ACTIVE,el:i}});var a=r.getItems(),o=a[a.length-2].el,s=a[a.length-1];Ac(e,s,o),Oc(e,s,o),Mc(e,s,n)}}function Oc(e,t,n){e.on("changeMode",(function(){return Ac(e,t,n)})),e.on("changePreviewStyle",(function(){return Ac(e,t,n)}))}function Mc(e,t,n){e.addCommand("markdown",{name:"scrollSyncToggle",exec:function(){Nc=!Nc,t._onOut(),Nc?(t.el.className=kc,t.setTooltip(n.ACTIVE)):(t.el.className=Tc,t.setTooltip(n.INACTIVE)),t._onOver()}})}function Ac(e,t,n){"vertical"===e.mdPreviewStyle&&"markdown"===e.currentMode?(h()(t.el,{display:"inline-block"}),h()(n,{display:"inline-block"})):(h()(t.el,{display:"none"}),h()(n,{display:"none"}))}var Dc=!0;function Bc(e){var t=e.mdEditor,n=e.preview;Lc(e),Rc(t,n),Ic(t,n),t.cm.on("change",(function(){return Dc=!1}))}function Ic(e,t){e.eventManager.listen("previewRenderAfter",(function(){setTimeout((function(){xc()&&vc(e,t),Dc=!0}),200)}))}function Rc(e,t){var n=e.eventManager;n.listen("scroll",(function(n){var r=n.source,i=n.data;xc()&&Dc&&t.isVisible()&&("markdown"!==r||Sc()?"preview"!==r||yc()||Ec(e,t,i):vc(e,t,!0))}))}function Pc(){return Pc=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Pc.apply(this,arguments)}var Fc=[],Hc=function(){function e(e){var t=this;this.initialHtml=e.el.innerHTML,e.el.innerHTML="",this.options=u()({previewStyle:"tab",previewHighlight:!0,initialEditType:"markdown",height:"300px",minHeight:"200px",language:"en-US",useDefaultHTMLSanitizer:!0,useCommandShortcut:!0,usageStatistics:!0,toolbarItems:["heading","bold","italic","strike","divider","hr","quote","divider","ul","ol","task","indent","outdent","divider","table","image","link","divider","code","codeblock"],hideModeSwitch:!1,linkAttribute:null,extendedAutolinks:!1,customConvertor:null,customHTMLRenderer:null,referenceDefinition:!1,customHTMLSanitizer:null},e),this.codeBlockLanguages=[],this.eventManager=new Qn["a"],this.importManager=new rr(this.eventManager),this.commandManager=new Yn["a"](this,{useCommandShortcut:this.options.useCommandShortcut});var n=Object(_["c"])(this.options.linkAttribute),r=Object(oo["a"])(this.options.plugins),a=r.renderer,o=r.parser,s=r.plugins,l=this.options,c=l.customHTMLRenderer,d=l.customHTMLSanitizer,h=l.extendedAutolinks,f=l.referenceDefinition,p=l.useDefaultHTMLSanitizer,g={linkAttribute:n,customHTMLRenderer:Pc({},a,{},c),extendedAutolinks:h,referenceDefinition:f,customParser:o};this.options.customConvertor?this.convertor=new this.options.customConvertor(this.eventManager,g):this.convertor=new ir["a"](this.eventManager,g);var m=d||(p?pt["a"]:null);m&&this.convertor.initHtmlSanitizer(m),this.options.hooks&&i()(this.options.hooks,(function(e,n){return t.addHook(n,e)})),this.options.events&&i()(this.options.events,(function(e,n){return t.on(n,e)})),this.layout=new Jn(e,this.eventManager),this.i18n=cr,this.i18n.setCode(this.options.language),this.setUI(this.options.UI||new Za(this)),this.toastMark=new v["ToastMark"]("",{disallowedHtmlBlockTags:["br"],extendedAutolinks:h,referenceDefinition:f,disallowDeepHeading:!0,customParser:o}),this.mdEditor=Ke.factory(this.layout.getMdEditorContainerEl(),this.eventManager,this.toastMark,this.options),this.preview=new Ge["a"](this.layout.getPreviewEl(),this.eventManager,this.convertor,Pc({},g,{isViewer:!1,highlight:this.options.previewHighlight})),this.wwEditor=zn.factory(this.layout.getWwEditorContainerEl(),this.eventManager,{sanitizer:m,linkAttribute:n}),this.toMarkOptions={gfm:!0,renderer:ao},s&&Object(oo["b"])(s,this),this.changePreviewStyle(this.options.previewStyle),this.changeMode(this.options.initialEditType,!0),this.minHeight(this.options.minHeight),this.height(this.options.height),this.setMarkdown(this.options.initialValue,!1),this.options.placeholder&&this.setPlaceholder(this.options.placeholder),this.options.initialValue||this.setHtml(this.initialHtml,!1),this.eventManager.emit("load",this),Fc.push(this),this._addDefaultCommands(),this.options.usageStatistics&&Object(_["d"])(),Bc(this)}var t=e.prototype;return t.changePreviewStyle=function(e){this.layout.changePreviewStyle(e),this.mdPreviewStyle=e,this.eventManager.emit("changePreviewStyle",e),this.eventManager.emit("previewNeedsRefresh",this.getMarkdown())},t.exec=function(){var e;(e=this.commandManager).exec.apply(e,arguments)},t._addDefaultCommands=function(){this.addCommand(yo),this.addCommand(Ro),this.addCommand(Wo),this.addCommand(Go),this.addCommand(Yo),this.addCommand(Zo),this.addCommand(is),this.addCommand(cs),this.addCommand(ds),this.addCommand(fs),this.addCommand(gs),this.addCommand(vs),this.addCommand(ws),this.addCommand(Es),this.addCommand(Ns),this.addCommand(Ls),this.addCommand(Uo),this.addCommand(As),this.addCommand(Is),this.addCommand(js),this.addCommand(rl),this.addCommand(al),this.addCommand(Ws),this.addCommand(Gs),this.addCommand(Qs),this.addCommand(Xs),this.addCommand(tl),this.addCommand(Ul),this.addCommand($l),this.addCommand(Kl),this.addCommand(ul),this.addCommand(gl),this.addCommand(wl),this.addCommand(kl),this.addCommand(Al),this.addCommand(Pl),this.addCommand(Hl),this.addCommand(Yl),this.addCommand(rc),this.addCommand(Fs)},t.addCommand=function(e,t){t?this.commandManager.addCommand(Yn["a"].command(e,t)):this.commandManager.addCommand(e)},t.afterAddedCommand=function(){this.eventManager.emit("afterAddedCommand",this)},t.on=function(e,t){this.eventManager.listen(e,t)},t.off=function(e){this.eventManager.removeEventHandler(e)},t.addHook=function(e,t){this.eventManager.removeEventHandler(e),this.eventManager.listen(e,t)},t.removeHook=function(e){this.eventManager.removeEventHandler(e)},t.getCodeMirror=function(){return this.mdEditor.getEditor()},t.getSquire=function(){return this.wwEditor.getEditor()},t.focus=function(){this.getCurrentModeEditor().focus()},t.blur=function(){this.getCurrentModeEditor().blur()},t.moveCursorToEnd=function(){this.getCurrentModeEditor().moveCursorToEnd()},t.moveCursorToStart=function(){this.getCurrentModeEditor().moveCursorToStart()},t.setMarkdown=function(e,t){void 0===t&&(t=!0),e=e||"",this.isMarkdownMode()?this.mdEditor.setValue(e,t):this.wwEditor.setValue(this.convertor.toHTML(e),t),this.eventManager.emit("setMarkdownAfter",e)},t.setHtml=function(e,t){if(void 0===t&&(t=!0),e=e||"",this.wwEditor.setValue(e,t),this.isMarkdownMode()){var n=this.convertor.toMarkdown(this.wwEditor.getValue(),this.toMarkOptions);this.mdEditor.setValue(n,t),this.eventManager.emit("setMarkdownAfter",n)}},t.getMarkdown=function(){var e;return e=this.isMarkdownMode()?this.mdEditor.getValue():this.convertor.toMarkdown(this.wwEditor.getValue(),this.toMarkOptions),e},t.getHtml=function(){return this.isWysiwygMode()&&this.mdEditor.setValue(this.convertor.toMarkdown(this.wwEditor.getValue(),this.toMarkOptions)),this.convertor.toHTML(this.mdEditor.getValue())},t.insertText=function(e){this.isMarkdownMode()?this.mdEditor.replaceSelection(e):this.wwEditor.insertText(e)},t.addWidget=function(e,t,n,r){this.getCurrentModeEditor().addWidget(e,t,n,r)},t.height=function(e){if(o()(e)){var t=this.options.el;"auto"===e?(p()(t,"auto-height"),this.minHeight(this.minHeight())):(m()(t,"auto-height"),this.minHeight(e)),l()(e)&&(e+="px"),h()(this.options.el,{height:e}),this._height=e}return this._height},t.minHeight=function(e){if(o()(e)){var t=this._ui.getEditorHeight(),n=this._ui.getEditorSectionHeight(),r=t-n;this._minHeight=e,e=parseInt(e,10),e=Math.max(e-r,0),this.wwEditor.setMinHeight(e),this.mdEditor.setMinHeight(e),this.preview.setMinHeight(e)}return this._minHeight},t.getCurrentModeEditor=function(){var e;return e=this.isMarkdownMode()?this.mdEditor:this.wwEditor,e},t.isMarkdownMode=function(){return"markdown"===this.currentMode},t.isWysiwygMode=function(){return"wysiwyg"===this.currentMode},t.isViewer=function(){return!1},t.getCurrentPreviewStyle=function(){return this.mdPreviewStyle},t.changeMode=function(e,t){this.currentMode!==e&&(this.eventManager.emit("changeModeBefore",this.currentMode),this.currentMode=e,this.isWysiwygMode()?(this.layout.switchToWYSIWYG(),this.wwEditor.setValue(this.convertor.toHTML(this.mdEditor.getValue()),!t),this.eventManager.emit("changeModeToWysiwyg")):(this.layout.switchToMarkdown(),this.mdEditor.resetState(),this.mdEditor.setValue(this.convertor.toMarkdown(this.wwEditor.getValue(),this.toMarkOptions),!t),this.getCodeMirror().refresh(),this.eventManager.emit("changeModeToMarkdown")),this.eventManager.emit("changeMode",e),t||this.focus())},t.remove=function(){var e=this,t=Fc.length-1;for(this.wwEditor.remove(),this.mdEditor.remove(),this.layout.remove(),this.preview.remove(),this.getUI()&&this.getUI().remove(),this.eventManager.emit("removeEditor"),this.eventManager.events.forEach((function(t,n){e.off(n)})),this.eventManager=null;t>=0;t-=1)Fc[t]===this&&Fc.splice(t,1)},t.hide=function(){this.eventManager.emit("hide",this)},t.show=function(){this.eventManager.emit("show",this),this.getCodeMirror().refresh()},t.scrollTop=function(e){return this.getCurrentModeEditor().scrollTop(e)},t.setUI=function(e){this._ui=e},t.getUI=function(){return this._ui},t.reset=function(){this.wwEditor.reset(),this.mdEditor.reset()},t.getRange=function(){return this.getCurrentModeEditor().getRange()},t.getTextObject=function(e){return this.getCurrentModeEditor().getTextObject(e)},t.getSelectedText=function(){var e=this.getRange(),t=this.getTextObject(e);return t.getTextContent()||""},t.setPlaceholder=function(e){this.mdEditor.setPlaceholder(e),this.wwEditor.setPlaceholder(e)},t.setCodeBlockLanguages=function(e){var t=this;void 0===e&&(e=[]),e.forEach((function(e){t.codeBlockLanguages.indexOf(e)<0&&t.codeBlockLanguages.push(e)})),this.eventManager.emit("setCodeBlockLanguages",this.codeBlockLanguages)},e.getInstances=function(){return Fc},e.factory=function(t){var n;return n=t.viewer?new ar["a"](t):new e(t),n},e.setLanguage=function(e,t){cr.setLanguage(e,t)},e}();Hc._createMarkdownToHTML=b,Hc.isViewer=!1,Hc.codeBlockManager=eo["a"],Hc.WwCodeBlockManager=fn,Hc.WwTableManager=$t,Hc.WwTableSelectionManager=Gt,Hc.CommandManager=Yn["a"];var jc=Hc;n(50),n(51),n(41),n(52);jc.setLanguage(["en","en-US"],{Markdown:"Markdown",WYSIWYG:"WYSIWYG",Write:"Write",Preview:"Preview",Headings:"Headings",Paragraph:"Paragraph",Bold:"Bold",Italic:"Italic",Strike:"Strike",Code:"Inline code",Line:"Line",Blockquote:"Blockquote","Unordered list":"Unordered list","Ordered list":"Ordered list",Task:"Task",Indent:"Indent",Outdent:"Outdent","Insert link":"Insert link","Insert CodeBlock":"Insert codeBlock","Insert table":"Insert table","Insert image":"Insert image",Heading:"Heading","Image URL":"Image URL","Select image file":"Select image file",Description:"Description",OK:"OK",More:"More",Cancel:"Cancel",File:"File",URL:"URL","Link text":"Link text","Add row":"Add row","Add col":"Add col","Remove row":"Remove row","Remove col":"Remove col","Align left":"Align left","Align center":"Align center","Align right":"Align right","Remove table":"Remove table","Would you like to paste as table?":"Would you like to paste as table?","Text color":"Text color","Auto scroll enabled":"Auto scroll enabled","Auto scroll disabled":"Auto scroll disabled","Choose language":"Choose language"});t["default"]=jc}])["default"]}))},a26b:function(e,t,n){"use strict";var r=n("cb82"),i=n.n(r);i.a},a505:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("j-modal",{staticStyle:{top:"50px"},attrs:{width:e.modalWidth,visible:e.visible,title:e.title,switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleSubmit,cancel:e.close}},[n("a-row",{staticStyle:{"background-color":"#ececec",padding:"10px",margin:"-10px"},attrs:{gutter:10}},[n("a-col",{attrs:{md:6,sm:24}},[n("a-card",{attrs:{bordered:!1}},[n("a-directory-tree",{attrs:{selectable:"",selectedKeys:e.selectedDepIds,checkStrictly:!0,dropdownStyle:{maxHeight:"200px",overflow:"auto"},treeData:e.departTree,expandAction:!1,expandedKeys:e.expandedKeys},on:{"update:expandedKeys":function(t){e.expandedKeys=t},"update:expanded-keys":function(t){e.expandedKeys=t},select:e.onDepSelect}})],1)],1),n("a-col",{attrs:{md:18,sm:24}},[n("a-card",{attrs:{bordered:!1}},[e._v("\n        用户账号:\n        "),n("a-input-search",{style:{width:"150px",marginBottom:"15px"},attrs:{placeholder:"请输入账号"},on:{search:e.onSearch},model:{value:e.queryParam.username,callback:function(t){e.$set(e.queryParam,"username",t)},expression:"queryParam.username"}}),n("a-button",{staticStyle:{"margin-left":"20px"},attrs:{icon:"redo"},on:{click:function(t){return e.searchReset(1)}}},[e._v("重置")]),n("a-table",{ref:"table",attrs:{scroll:e.scrollTrigger,size:"middle",rowKey:"id",columns:e.columns,dataSource:e.dataSource,pagination:e.ipagination,rowSelection:{selectedRowKeys:e.selectedRowKeys,onChange:e.onSelectChange,type:e.getType},loading:e.loading},on:{change:e.handleTableChange}})],1)],1)],1)],1)},i=[],a=n("a34a"),o=n.n(a),s=n("ca00"),l=n("4ec3");function c(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,i)}function u(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){c(a,r,i,o,s,"next",e)}function s(e){c(a,r,i,o,s,"throw",e)}o(void 0)}))}}var d={name:"JSelectUserByDepModal",components:{},props:["modalWidth","multi","userIds"],data:function(){return{queryParam:{username:""},columns:[{title:"用户账号",align:"center",dataIndex:"username"},{title:"用户姓名",align:"center",dataIndex:"realname"},{title:"性别",align:"center",dataIndex:"sex",customRender:function(e){return 1===e?"男":2===e?"女":e}},{title:"手机",align:"center",dataIndex:"phone"},{title:"部门",align:"center",dataIndex:"orgCode"}],scrollTrigger:{},dataSource:[],selectedRowKeys:[],selectUserRows:[],selectUserIds:[],title:"根据部门选择用户",ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},selectedDepIds:[],departTree:[],visible:!1,form:this.$form.createForm(this),loading:!1,expandedKeys:[]}},computed:{getType:function(){return 1==this.multi?"checkbox":"radio"}},watch:{userIds:{immediate:!0,handler:function(){this.initUserNames()}}},created:function(){this.resetScreenSize(),this.loadData()},methods:{initUserNames:function(){var e=this;if(this.userIds){var t=this.userIds.split(",")+",";Object(l["z"])({username:t,pageNo:1,pageSize:t.length}).then((function(t){if(t.success){var n=[],r=[];t.result.records.forEach((function(e){r.push(e["realname"]),n.push(e["id"])})),e.selectedRowKeys=n,e.$emit("initComp",r.join(","))}}))}else this.$emit("initComp","")},loadData:function(){var e=u(o.a.mark((function e(t){var n,r=this;return o.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(1===t&&(this.ipagination.current=1),!(this.selectedDepIds&&this.selectedDepIds.length>0)){e.next=6;break}return e.next=4,this.initQueryUserByDepId(this.selectedDepIds);case 4:e.next=10;break;case 6:return this.loading=!0,n=this.getQueryParams(),e.next=10,Object(l["z"])(n).then((function(e){e.success&&(r.dataSource=e.result.records,r.ipagination.total=e.result.total)})).finally((function(){r.loading=!1}));case 10:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}(),resetScreenSize:function(){var e=document.body.clientWidth;this.scrollTrigger=e<500?{x:800}:{}},showModal:function(){this.visible=!0,this.queryDepartTree(),this.initUserNames(),this.loadData(),this.form.resetFields()},getQueryParams:function(){var e=Object.assign({},this.queryParam,this.isorter);return e.field=this.getQueryField(),e.pageNo=this.ipagination.current,e.pageSize=this.ipagination.pageSize,Object(s["d"])(e)},getQueryField:function(){for(var e="id,",t=0;t<this.columns.length;t++)e+=","+this.columns[t].dataIndex;return e},searchReset:function(e){var t=this;0!==e&&(t.queryParam={},t.loadData(1)),t.selectedRowKeys=[],t.selectUserIds=[],t.selectedDepIds=[]},close:function(){this.searchReset(0),this.visible=!1},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"===n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleSubmit:function(){var e=this;this.getSelectUserRows(),e.$emit("ok",e.selectUserRows,e.selectUserIds),e.searchReset(0),e.close()},getSelectUserRows:function(e){var t=this.dataSource,n="";this.selectUserRows=[];for(var r=0,i=t.length;r<i;r++)this.selectedRowKeys.includes(t[r].id)&&(this.selectUserRows.push(t[r]),n=n+","+t[r].username);this.selectUserIds=n.substring(1)},onDepSelect:function(e){null!=e[0]&&(this.initQueryUserByDepId(e),this.selectedDepIds[0]!==e[0]&&(this.selectedDepIds=[e[0]]))},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onSearch:function(){this.loadData(1)},initQueryUserByDepId:function(e){var t=this;return this.loading=!0,Object(l["L"])({id:e.toString()}).then((function(e){e.success&&(t.dataSource=e.result,t.ipagination.total=e.result.length)})).finally((function(){t.loading=!1}))},queryDepartTree:function(){var e=this;Object(l["B"])().then((function(t){t.success&&(e.departTree=t.result,e.expandedKeys=e.departTree.map((function(e){return e.id})))}))},modalFormOk:function(){this.loadData()}}},h=d,f=(n("9ee5"),n("2877")),p=Object(f["a"])(h,r,i,!1,null,"6e33dfa5",null);t["default"]=p.exports},a726:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-checkbox-group",e._b({attrs:{options:e.options,value:e.checkboxArray},on:{change:e.onChange}},"a-checkbox-group",e.$attrs,!1))},i=[],a={name:"JCheckbox",props:{value:{type:String,required:!1},options:{type:Array,required:!0}},data:function(){return{checkboxArray:this.value?this.value.split(","):[]}},watch:{value:function(e){this.checkboxArray=e?this.value.split(","):[]}},methods:{onChange:function(e){this.$emit("change",e.join(","))}},model:{prop:"value",event:"change"}},o=a,s=n("2877"),l=Object(s["a"])(o,r,i,!1,null,null,null);t["default"]=l.exports},adfa:function(e,t,n){"use strict";var r=n("8937"),i=n.n(r);i.a},ae14:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{ref:"dragDiv",staticClass:"drag"},[n("div",{staticClass:"drag_bg"}),n("div",{staticClass:"drag_text"},[e._v(e._s(e.confirmWords))]),n("div",{ref:"moveDiv",staticClass:"handler handler_bg",class:{handler_ok_bg:e.confirmSuccess},staticStyle:{border:"0.5px solid #fff",height:"34px",position:"absolute",top:"0px",left:"0px"},on:{mousedown:function(t){return e.mousedownFn(t)}}})])},i=[],a={name:"JSlider",data:function(){return{beginClientX:0,mouseMoveStata:!1,maxwidth:"",confirmWords:"拖动滑块验证",confirmSuccess:!1}},methods:{isSuccess:function(){return this.confirmSuccess},mousedownFn:function(e){this.confirmSuccess||(e.preventDefault&&e.preventDefault(),this.mouseMoveStata=!0,this.beginClientX=e.clientX)},successFunction:function(){this.confirmSuccess=!0,this.confirmWords="验证通过",window.addEventListener?(document.getElementsByTagName("html")[0].removeEventListener("mousemove",this.mouseMoveFn),document.getElementsByTagName("html")[0].removeEventListener("mouseup",this.moseUpFn)):document.getElementsByTagName("html")[0].removeEventListener("mouseup",(function(){})),document.getElementsByClassName("drag_text")[0].style.color="#fff",document.getElementsByClassName("handler")[0].style.left=this.maxwidth+"px",document.getElementsByClassName("drag_bg")[0].style.width=this.maxwidth+"px",this.$emit("onSuccess",!0)},mouseMoveFn:function(e){if(this.mouseMoveStata){var t=e.clientX-this.beginClientX;t>0&&t<=this.maxwidth?(document.getElementsByClassName("handler")[0].style.left=t+"px",document.getElementsByClassName("drag_bg")[0].style.width=t+"px"):t>this.maxwidth&&this.successFunction()}},moseUpFn:function(e){this.mouseMoveStata=!1;var t=e.clientX-this.beginClientX;if(t<this.maxwidth){var n=document.getElementsByClassName("handler")[0];n&&(n.style.left="0px",document.getElementsByClassName("drag_bg")[0].style.width="0px")}}},mounted:function(){this.maxwidth=this.$refs.dragDiv.clientWidth-this.$refs.moveDiv.clientWidth,document.getElementsByTagName("html")[0].addEventListener("mousemove",this.mouseMoveFn),document.getElementsByTagName("html")[0].addEventListener("mouseup",this.moseUpFn)}},o=a,s=(n("9533"),n("2877")),l=Object(s["a"])(o,r,i,!1,null,"4d97a499",null);t["default"]=l.exports},b098:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-tree-select",{staticStyle:{width:"100%"},attrs:{allowClear:"",labelInValue:"",getPopupContainer:function(e){return e.parentNode},disabled:e.disabled,dropdownStyle:{maxHeight:"400px",overflow:"auto"},placeholder:e.placeholder,loadData:e.asyncLoadTreeData,value:e.treeValue,treeData:e.treeData,multiple:e.multiple},on:{change:e.onChange,search:e.onSearch}})},i=[],a=n("0fea");function o(e){return o="function"===typeof Symbol&&"symbol"===typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"===typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o(e)}function s(e){return u(e)||c(e)||h(e)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return f(e)}function d(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=h(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function h(e,t){if(e){if("string"===typeof e)return f(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(e,t):void 0}}function f(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var p={name:"JTreeSelect",props:{value:{type:String,required:!1},placeholder:{type:String,default:"请选择",required:!1},dict:{type:String,default:"",required:!1},pidField:{type:String,default:"pid",required:!1},pidValue:{type:String,default:"",required:!1},disabled:{type:Boolean,default:!1,required:!1},hasChildField:{type:String,default:"",required:!1},condition:{type:String,default:"",required:!1},multiple:{type:Boolean,default:!1},loadTriggleChange:{type:Boolean,default:!1,required:!1}},data:function(){return{treeValue:null,treeData:[],url:"/sys/dict/loadTreeData",view:"/sys/dict/loadDictItem/",tableName:"",text:"",code:""}},watch:{value:function(){this.loadItemByCode()},dict:function(){this.initDictInfo(),this.loadRoot()}},created:function(){var e=this;this.validateProp().then((function(){e.initDictInfo(),e.loadRoot(),e.loadItemByCode()}))},methods:{loadItemByCode:function(){var e=this;this.value&&"0"!=this.value?Object(a["c"])("".concat(this.view).concat(this.dict),{key:this.value}).then((function(t){if(t.success){var n=e.value.split(",");e.treeValue=t.result.map((function(e,t){return{key:n[t],value:n[t],label:e}})),e.onLoadTriggleChange(t.result[0])}})):this.treeValue=null},onLoadTriggleChange:function(e){!this.multiple&&this.loadTriggleChange&&this.$emit("change",this.value,e)},initDictInfo:function(){var e=this.dict.split(",");this.tableName=e[0],this.text=e[1],this.code=e[2]},asyncLoadTreeData:function(e){var t=this;return new Promise((function(n){if(e.$vnode.children)n();else{var r=e.$vnode.key,i={pid:r,tableName:t.tableName,text:t.text,code:t.code,pidField:t.pidField,hasChildField:t.hasChildField,condition:t.condition};Object(a["c"])(t.url,i).then((function(e){if(e.success){var i,a=d(e.result);try{for(a.s();!(i=a.n()).done;){var o=i.value;o.value=o.key,0==o.leaf?o.isLeaf=!1:1==o.leaf&&(o.isLeaf=!0)}}catch(l){a.e(l)}finally{a.f()}t.addChildren(r,e.result,t.treeData),t.treeData=s(t.treeData)}n()}))}}))},addChildren:function(e,t,n){if(n&&n.length>0){var r,i=d(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.key==e){t&&0!=t.length?a.children=t:a.isLeaf=!0;break}this.addChildren(e,t,a.children)}}catch(o){i.e(o)}finally{i.f()}}},loadRoot:function(){var e=this,t={pid:this.pidValue,tableName:this.tableName,text:this.text,code:this.code,pidField:this.pidField,hasChildField:this.hasChildField,condition:this.condition};Object(a["c"])(this.url,t).then((function(t){if(t.success&&t.result){var n,r=d(t.result);try{for(r.s();!(n=r.n()).done;){var i=n.value;i.value=i.key,0==i.leaf?i.isLeaf=!1:1==i.leaf&&(i.isLeaf=!0)}}catch(a){r.e(a)}finally{r.f()}e.treeData=s(t.result)}}))},onChange:function(e){e?e instanceof Array?(this.$emit("change",e.map((function(e){return e.value})).join(",")),this.treeValue=e):(this.$emit("change",e.value,e.label),this.treeValue=e):(this.$emit("change",""),this.treeValue=null)},onSearch:function(e){},getCurrTreeData:function(){return this.treeData},validateProp:function(){var e=this,t=this.condition;return new Promise((function(n,r){if(t)try{var i=JSON.parse(t);"object"==o(i)&&i?n():(e.$message.error("组件JTreeSelect-condition传值有误,需要一个json字符串!"),r())}catch(a){e.$message.error("组件JTreeSelect-condition传值有误,需要一个json字符串!"),r()}else n()}))}},model:{prop:"value",event:"change"}},g=p,m=n("2877"),v=Object(m["a"])(g,r,i,!1,null,null,null);t["default"]=v.exports},b0cd:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("j-modal",{attrs:{title:"选择部门",width:e.modalWidth,visible:e.visible,confirmLoading:e.confirmLoading,switchFullscreen:"",cancelText:"关闭"},on:{ok:e.handleSubmit,cancel:e.handleCancel}},[n("a-spin",{attrs:{tip:"Loading...",spinning:!1}},[n("a-input-search",{staticStyle:{"margin-bottom":"1px"},attrs:{placeholder:"请输入部门名称按回车进行搜索"},on:{search:e.onSearch}}),n("a-tree",{attrs:{checkable:"",treeData:e.treeData,checkStrictly:!0,autoExpandParent:e.autoExpandParent,expandedKeys:e.expandedKeys,checkedKeys:e.checkedKeys},on:{check:e.onCheck,select:e.onSelect,expand:e.onExpand},scopedSlots:e._u([{key:"title",fn:function(t){var r=t.title;return[r.indexOf(e.searchValue)>-1?n("span",[e._v("\n          "+e._s(r.substr(0,r.indexOf(e.searchValue)))+"\n          "),n("span",{staticStyle:{color:"#f50"}},[e._v(e._s(e.searchValue))]),e._v("\n          "+e._s(r.substr(r.indexOf(e.searchValue)+e.searchValue.length))+"\n        ")]):n("span",[e._v(e._s(r))])]}}])})],1)],1)},i=[],a=n("4ec3");function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=c(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function s(e){return d(e)||u(e)||c(e)||l()}function l(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"===typeof e)return h(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?h(e,t):void 0}}function u(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function d(e){if(Array.isArray(e))return h(e)}function h(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var f={name:"JSelectDepartModal",props:["modalWidth","multi","rootOpened","departId"],data:function(){return{visible:!1,confirmLoading:!1,treeData:[],autoExpandParent:!0,expandedKeys:[],dataList:[],checkedKeys:[],checkedRows:[],searchValue:""}},created:function(){this.loadDepart()},watch:{departId:function(){this.initDepartComponent()},visible:{handler:function(){this.departId?this.checkedKeys=this.departId.split(","):this.checkedKeys=[]}}},methods:{show:function(){this.visible=!0,this.checkedRows=[],this.checkedKeys=[]},loadDepart:function(){var e=this;Object(a["B"])().then((function(t){if(t.success){var n=s(t.result);e.reWriterWithSlot(n),e.treeData=n,e.initDepartComponent(),e.rootOpened&&e.initExpandedKeys(t.result)}}))},initDepartComponent:function(){var e="";if(this.departId){var t,n=this.departId,r=o(this.dataList);try{for(r.s();!(t=r.n()).done;){var i=t.value;n.indexOf(i.key)>=0&&(e+=","+i.title)}}catch(a){r.e(a)}finally{r.f()}e&&(e=e.substring(1))}this.$emit("initComp",e)},reWriterWithSlot:function(e){var t,n=o(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.children&&r.children.length>0){this.reWriterWithSlot(r.children);var i=Object.assign({},r);i.children={},this.dataList.push(i)}else this.dataList.push(r),r.scopedSlots={title:"title"}}}catch(a){n.e(a)}finally{n.f()}},initExpandedKeys:function(e){if(e&&e.length>0){var t,n=[],r=o(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;i.children&&i.children.length>0&&n.push(i.id)}}catch(a){r.e(a)}finally{r.f()}this.expandedKeys=[].concat(n)}else this.expandedKeys=[]},onCheck:function(e,t){var n=this;if(this.multi)this.checkedKeys=e.checked,this.checkedRows=this.getCheckedRows(this.checkedKeys);else{var r=e.checked.filter((function(e){return n.checkedKeys.indexOf(e)<0}));this.checkedKeys=s(r),this.checkedRows=0===this.checkedKeys.length?[]:[t.node.dataRef]}},onSelect:function(e,t){var n=[];if(n.push(e[0]),this.checkedKeys&&0!==this.checkedKeys.length&&this.multi){var r,i=t.node.dataRef.key;if(this.checkedKeys.indexOf(i)>=0)this.checkedKeys=this.checkedKeys.filter((function(e){return e!==i}));else(r=this.checkedKeys).push.apply(r,n)}else this.checkedKeys=[].concat(n),this.checkedRows=[t.node.dataRef];this.checkedRows=this.getCheckedRows(this.checkedKeys)},onExpand:function(e){this.expandedKeys=e,this.autoExpandParent=!1},handleSubmit:function(){this.checkedKeys&&0!=this.checkedKeys.length?this.$emit("ok",this.checkedRows,this.checkedKeys.join(",")):this.$emit("ok",""),this.handleClear()},handleCancel:function(){this.handleClear()},handleClear:function(){this.visible=!1,this.checkedKeys=[]},getParentKey:function(e,t){for(var n,r=0;r<t.length;r++){var i=t[r];i.children&&(i.children.some((function(t){return t.key===e}))?n=i.key:this.getParentKey(e,i.children)&&(n=this.getParentKey(e,i.children)))}return n},onSearch:function(e){var t=this,n=this.dataList.map((function(n){return n.title.indexOf(e)>-1?t.getParentKey(n.key,t.treeData):null})).filter((function(e,t,n){return e&&n.indexOf(e)===t}));Object.assign(this,{expandedKeys:n,searchValue:e,autoExpandParent:!0})},getCheckedRows:function(e){var t,n=function e(t,n){var r,i=o(t);try{for(i.s();!(r=i.n()).done;){var a=r.value;if(a.id===n)return a;if(a.children instanceof Array){var s=e(a.children,n);if(null!=s)return s}}}catch(l){i.e(l)}finally{i.f()}return null},r=[],i=o(e);try{for(i.s();!(t=i.n()).done;){var a=t.value,s=n(this.treeData,a);null!=s&&r.push(s)}}catch(l){i.e(l)}finally{i.f()}return r}}},p=f,g=n("2877"),m=Object(g["a"])(p,r,i,!1,null,"22d28285",null);t["default"]=m.exports},b2b7:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-card",{staticStyle:{height:"100%","padding-bottom":"200px"},attrs:{bordered:!1}},[n("div",{staticClass:"table-page-search-wrapper"},[n("a-form",{attrs:{layout:"inline",form:e.form}},[n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"性别"}},[n("j-dict-select-tag",{attrs:{title:"性别",dictCode:"sex",placeholder:"请选择性别"},model:{value:e.formData.sex,callback:function(t){e.$set(e.formData,"sex",t)},expression:"formData.sex"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.sex))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"字典表下拉"}},[n("j-dict-select-tag",{attrs:{placeholder:"请选择用户",dictCode:"sys_user,realname,id"},model:{value:e.formData.user,callback:function(t){e.$set(e.formData,"user",t)},expression:"formData.user"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.user))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"字典表下拉(带条件)"}},[n("j-dict-select-tag",{attrs:{placeholder:"请选择用户",dictCode:"sys_user,realname,id,username!='admin' order by create_time"},model:{value:e.formData.user2,callback:function(t){e.$set(e.formData,"user2",t)},expression:"formData.user2"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.user2))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"字典搜索(同步)"}},[n("j-search-select-tag",{attrs:{placeholder:"请做出你的选择",dictOptions:e.searchOptions},model:{value:e.formData.searchValue,callback:function(t){e.$set(e.formData,"searchValue",t)},expression:"formData.searchValue"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.searchValue))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"字典搜索(异步)"}},[n("j-search-select-tag",{attrs:{placeholder:"请做出你的选择",dict:"sys_depart,depart_name,id",async:!0},model:{value:e.formData.asyncSelectValue,callback:function(t){e.$set(e.formData,"asyncSelectValue",t)},expression:"formData.asyncSelectValue"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.asyncSelectValue))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"字典下拉(多选)"}},[n("j-multi-select-tag",{attrs:{dictCode:"sex",placeholder:"请选择"},model:{value:e.formData.selMuti,callback:function(t){e.$set(e.formData,"selMuti",t)},expression:"formData.selMuti"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("多选组合(v-model):"+e._s(e.formData.selMuti))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择部门 自定义返回值"}},[n("j-select-depart",{directives:[{name:"decorator",rawName:"v-decorator",value:["departId"],expression:"['departId']"}],attrs:{"trigger-change":!0,customReturnField:"departName"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的部门ID(v-decorator):"+e._s(e.getDepartIdValue()))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择部门"}},[n("j-select-depart",{attrs:{multi:!0},model:{value:e.departId,callback:function(t){e.departId=t},expression:"departId"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的部门ID(v-model):"+e._s(e.departId))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择用户"}},[n("j-select-user-by-dep",{attrs:{multi:!0},model:{value:e.userIds,callback:function(t){e.userIds=t},expression:"userIds"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的用户(v-model):"+e._s(e.userIds))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择用户"}},[n("j-select-multi-user",{model:{value:e.multiUser,callback:function(t){e.multiUser=t},expression:"multiUser"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的用户(v-model):"+e._s(e.multiUser))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择角色"}},[n("j-select-role",{on:{change:e.changeMe},model:{value:e.formData.selectRole,callback:function(t){e.$set(e.formData,"selectRole",t)},expression:"formData.selectRole"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.selectRole))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"选择职务"}},[n("j-select-position",{model:{value:e.formData.selectPosition,callback:function(t){e.$set(e.formData,"selectPosition",t)},expression:"formData.selectPosition"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中值:"+e._s(e.formData.selectPosition))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"多选组合"}},[n("j-checkbox",{attrs:{options:e.jcheckbox.options},model:{value:e.jcheckbox.values,callback:function(t){e.$set(e.jcheckbox,"values",t)},expression:"jcheckbox.values"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("多选组合(v-model):"+e._s(e.jcheckbox.values))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{staticStyle:{"min-height":"120px"},attrs:{label:"代码输入框"}},[n("j-code-editor",{staticStyle:{"min-height":"100px"},attrs:{language:"javascript",fullScreen:!0},model:{value:e.jcodedditor.value,callback:function(t){e.$set(e.jcodedditor,"value",t)},expression:"jcodedditor.value"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("代码输入框(v-model):"+e._s(e.jcodedditor.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"日期选择框"}},[n("j-date",{attrs:{showTime:!0,dateFormat:"YYYY-MM-DD HH:mm:ss"},model:{value:e.jdate.value,callback:function(t){e.$set(e.jdate,"value",t)},expression:"jdate.value"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("日期选择框(v-model):"+e._s(e.jdate.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{staticStyle:{"min-height":"300px"},attrs:{label:"富文本编辑器"}},[n("j-editor",{model:{value:e.jeditor.value,callback:function(t){e.$set(e.jeditor,"value",t)},expression:"jeditor.value"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("富文本编辑器(v-model):"+e._s(e.jeditor.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"过长剪切"}},[n("j-ellipsis",{attrs:{value:e.jellipsis.value,length:30}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("过长剪切:"+e._s(e.jellipsis.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"滑块验证码"}},[n("j-slider",{on:{onSuccess:e.handleJSliderSuccess}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("滑块验证码验证通过:"+e._s(e.jslider.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"多选下拉框"}},[n("j-select-multiple",{attrs:{options:e.jselectMultiple.options},model:{value:e.jselectMultiple.value,callback:function(t){e.$set(e.jselectMultiple,"value",t)},expression:"jselectMultiple.value"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("多选下拉框(v-model):"+e._s(e.jselectMultiple.value))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",[n("a-form-item",{attrs:{label:"JModal弹窗"}},[n("a-button",{staticStyle:{"margin-right":"8px"},on:{click:function(){return e.modal.visible=!0}}},[e._v("点击弹出JModal")]),n("span",{staticStyle:{"margin-right":"8px"}},[e._v("全屏化:"),n("a-switch",{model:{value:e.modal.fullscreen,callback:function(t){e.$set(e.modal,"fullscreen",t)},expression:"modal.fullscreen"}})],1),n("span",{staticStyle:{"margin-right":"8px"}},[e._v("允许切换全屏:"),n("a-switch",{model:{value:e.modal.switchFullscreen,callback:function(t){e.$set(e.modal,"switchFullscreen",t)},expression:"modal.switchFullscreen"}})],1)],1),n("j-modal",{attrs:{visible:e.modal.visible,width:1200,title:e.modal.title,fullscreen:e.modal.fullscreen,switchFullscreen:e.modal.switchFullscreen},on:{"update:visible":function(t){return e.$set(e.modal,"visible",t)},"update:fullscreen":function(t){return e.$set(e.modal,"fullscreen",t)}}},[e._l(30,(function(t,r){return[n("p",{key:r},[e._v("这是主体内容,高度是自适应的")])]}))],2)],1)],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"树字典"}},[n("j-tree-dict",{attrs:{placeholder:"请选择树字典",parentCode:"B01"},model:{value:e.formData.treeDict,callback:function(t){e.$set(e.formData,"treeDict",t)},expression:"formData.treeDict"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的值(v-model):"+e._s(e.formData.treeDict))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"下拉树选择"}},[n("j-tree-select",{attrs:{placeholder:"请选择菜单",dict:"sys_permission,name,id",pidField:"parent_id",pidValue:""},model:{value:e.formData.treeSelect,callback:function(t){e.$set(e.formData,"treeSelect",t)},expression:"formData.treeSelect"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的值(v-model):"+e._s(e.formData.treeSelect))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"下拉树多选"}},[n("j-tree-select",{attrs:{placeholder:"请选择菜单",dict:"sys_permission,name,id",pidField:"parent_id",pidValue:"",multiple:""},model:{value:e.formData.treeSelectMultiple,callback:function(t){e.$set(e.formData,"treeSelectMultiple",t)},expression:"formData.treeSelectMultiple"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的值(v-model):"+e._s(e.formData.treeSelectMultiple))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"分类字典树"}},[n("j-category-select",{attrs:{pcode:"A01"},model:{value:e.formData.selectCategory,callback:function(t){e.$set(e.formData,"selectCategory",t)},expression:"formData.selectCategory"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的值(v-model):"+e._s(e.formData.selectCategory))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"cron表达式"}},[n("j-cron",{directives:[{name:"decorator",rawName:"v-decorator",value:["cronExpression",{initialValue:"* * * * * ? *"}],expression:"['cronExpression', { initialValue: '* * * * * ? *' }]"}],ref:"innerVueCron",on:{change:e.setCorn}})],1)],1)],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"高级查询"}},[n("j-super-query",{attrs:{fieldList:e.superQuery.fieldList}})],1)],1)],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"高级查询(自定义按钮)"}},[n("j-super-query",{attrs:{fieldList:e.superQuery.fieldList},scopedSlots:e._u([{key:"button",fn:function(t){var r=t.isActive,i=t.isMobile,a=t.open,o=t.reset;return[r?n("a-button-group",[n("a-button",{attrs:{type:"primary",ghost:""},on:{click:function(e){return a()}}},[n("a-icon",{attrs:{type:"plus-circle",spin:""}}),n("span",[e._v("高级查询")])],1),i?n("a-button",{attrs:{type:"primary",ghost:"",icon:"delete"},on:{click:function(e){return o()}}}):e._e()],1):n("a-button",{attrs:{type:"primary",ghost:"",icon:"clock-circle"},on:{click:function(e){return a()}}},[e._v("高级查询")])]}}])})],1)],1)],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"图片上传"}},[n("j-image-upload",{model:{value:e.imgList,callback:function(t){e.imgList=t},expression:"imgList"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选中的值(v-model):"+e._s(e.imgList))])],1),n("a-row",{staticStyle:{"margin-top":"65px","margin-bottom":"50px"},attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"文件上传"}},[n("j-upload",{model:{value:e.fileList,callback:function(t){e.fileList=t},expression:"fileList"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("\n          选中的值(v-model):\n          "),e.fileList.length>0?n("j-ellipsis",{attrs:{value:e.fileList,length:30}}):e._e()],1)],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"特殊查询组件"}},[n("a-row",[n("a-col",{attrs:{span:16}},[n("j-input",{attrs:{type:e.jInput.type},model:{value:e.formData.jInput,callback:function(t){e.$set(e.formData,"jInput",t)},expression:"formData.jInput"}})],1),n("a-col",{staticStyle:{"text-align":"right"},attrs:{span:3}},[e._v("查询类型:")]),n("a-col",{attrs:{span:5}},[n("a-select",{attrs:{options:e.jInput.options},model:{value:e.jInput.type,callback:function(t){e.$set(e.jInput,"type",t)},expression:"jInput.type"}})],1)],1)],1)],1),n("a-col",{attrs:{span:12}},[e._v("输入的值(v-model):"+e._s(e.formData.jInput))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:15}},[n("a-form-item",{staticStyle:{"min-height":"300px"},attrs:{label:"MarkdownEditor"}},[n("j-markdown-editor",{model:{value:e.content,callback:function(t){e.content=t},expression:"content"}})],1)],1),n("a-col",{attrs:{span:9}},[e._v("\n          输入的值(v-model):"+e._s(e.content)+"\n        ")])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"省市县级联"}},[n("j-area-linkage",{attrs:{type:"cascader"},model:{value:e.formData.areaLinkage1,callback:function(t){e.$set(e.formData,"areaLinkage1",t)},expression:"formData.areaLinkage1"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("输入的值(v-model):"+e._s(e.formData.areaLinkage1))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"省市县级联"}},[n("j-area-linkage",{attrs:{type:"select"},model:{value:e.formData.areaLinkage2,callback:function(t){e.$set(e.formData,"areaLinkage2",t)},expression:"formData.areaLinkage2"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("输入的值(v-model):"+e._s(e.formData.areaLinkage2))])],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"功能示例:关闭当前页面"}},[n("a-button",{attrs:{type:"primary"},on:{click:e.handleCloseCurrentPage}},[e._v("点击关闭当前页面")])],1)],1)],1),n("a-row",{attrs:{gutter:24}},[n("a-col",{attrs:{span:12}},[n("a-form-item",{attrs:{label:"JPopup示例"}},[n("j-popup",{attrs:{code:"demo",field:"name",orgFields:"name",destFields:"name"},model:{value:e.formData.jPopup,callback:function(t){e.$set(e.formData,"jPopup",t)},expression:"formData.jPopup"}})],1)],1),n("a-col",{attrs:{span:12}},[e._v("选择的值(v-model):"+e._s(e.formData.jPopup))])],1)],1)],1)])},i=[],a=n("7b16"),o=n("fe54"),s=n("c14a"),l=n("0f9d"),c=n("1e8c"),u=n("a726"),d=n("a876"),h=n("2dab"),f=n("a061"),p=n("d579"),g=n("ae14"),m=n("13d2"),v=n("4165"),y=n("1e29"),b=n("b098"),_=n("8c6e"),w=n("cf74"),C=n("e610"),E=n("61fc"),S=n("49a8"),T=n("f680"),k=n("4349"),N=n("9e8f"),x=n("6f9a"),L=n("c010"),O={name:"SelectDemo",inject:["closeCurrent"],components:{JMarkdownEditor:x["default"],JAreaLinkage:N["default"],JInput:k["default"],JCategorySelect:S["default"],JSelectPosition:E["default"],JImageUpload:C["default"],JUpload:w["default"],JTreeDict:v["default"],JDictSelectTag:a["default"],JSelectDepart:o["default"],JSelectUserByDep:s["default"],JSelectMultiUser:l["default"],JSelectRole:c["default"],JCheckbox:u["default"],JCodeEditor:d["default"],JDate:h["default"],JEditor:f["default"],JEllipsis:p["default"],JSlider:g["default"],JSelectMultiple:m["default"],JCron:y["default"],JTreeSelect:b["default"],JSuperQuery:_["default"],JMultiSelectTag:T["default"],JSearchSelectTag:L["default"]},data:function(){return{selectList:[],selectedDepUsers:"",formData:{areaLinkage1:"110105",areaLinkage2:"140221",sex:1},form:this.$form.createForm(this),departId:"4f1765520d6346f9bd9c79e2479e5b12,57197590443c44f083d42ae24ef26a2c",userIds:"admin",multiUser:"admin,jeecg",jcheckbox:{values:"spring,jeecgboot",options:[{label:"Jeecg",value:"jeecg"},{label:"Jeecg-Boot",value:"jeecgboot"},{label:"Spring",value:"spring",disabled:!0},{label:"MyBaits",value:"mybatis"}]},jcodedditor:{value:"function sayHi(word) {\n  alert(word)\n}\nsayHi('hello, world!')"},jdate:{value:"2019-5-10 15:33:06"},jeditor:{value:'<h2 style="text-align: center;">富文本编辑器</h2> <p>这里是富文本编辑器。</p>'},jellipsis:{value:"这是一串很长很长的文字段落。这是一串很长很长的文字段落。这是一串很长很长的文字段落。这是一串很长很长的文字段落。"},jslider:{value:!1},jselectMultiple:{options:[{text:"字符串",value:"String"},{text:"整数型",value:"Integer"},{text:"浮点型",value:"Double"},{text:"布尔型",value:"Boolean"}],value:"Integer,Boolean"},modal:{title:"这里是标题",visible:!1,fullscreen:!0,switchFullscreen:!0},cron:"",superQuery:{fieldList:[{type:"input",value:"name",text:"姓名"},{type:"select",value:"sex",text:"性别",dictCode:"sex"},{type:"number",value:"age",text:"年龄"},{type:"select",value:"hobby",text:"爱好",options:[{label:"音乐",value:"1"},{label:"游戏",value:"2"},{label:"电影",value:"3"},{label:"读书",value:"4"}]}]},fileList:[],imgList:[],jInput:{type:"like",options:[{value:"like",label:"模糊(like)"},{value:"ne",label:"不等于(ne)"},{value:"ge",label:"大于等于(ge)"},{value:"le",label:"小于等于(le)"}]},content:"",searchOptions:[{text:"选项一",value:"1"},{text:"选项二",value:"2"},{text:"选项三",value:"3"}]}},computed:{nameList:function(){for(var e=[],t=0;t<this.selectList.length;t++)e.push(this.selectList[t].name);return e}},methods:{handleChange:function(){},getDepartIdValue:function(){return this.form.getFieldValue("departId")},changeMe:function(){},selectOK:function(e){this.selectList=e},handleSelect:function(){this.$refs.selectDemoModal.add()},selectReset:function(){this.selectList=[]},onSearchDepUser:function(){this.$refs.JSearchUserByDep.showModal(),this.selectedDepUsers="",this.$refs.JSearchUserByDep.title="根据部门查询用户"},onSearchDepUserCallBack:function(e){this.selectedDepUsers=e},handleJSliderSuccess:function(e){this.jslider.value=e},setCorn:function(e){var t=this;this.$nextTick((function(){t.form.cronExpression=e}))},handleCloseCurrentPage:function(){this.closeCurrent()}}},M=O,A=(n("a26b"),n("2877")),D=Object(A["a"])(M,r,i,!1,null,"dc933e20",null);t["default"]=D.exports},b65a:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("ca00"),i=n("0fea"),a=n("2b0e"),o=n("9fb0");function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var u={data:function(){return{tokenHeader:{"X-Access-Token":a["default"].ls.get(o["a"])},queryParam:{},dataSource:[],ipagination:{current:1,pageSize:10,pageSizeOptions:["10","20","30"],showTotal:function(e,t){return t[0]+"-"+t[1]+" 共"+e+"条"},showQuickJumper:!0,showSizeChanger:!0,total:0},isorter:{column:"createTime",order:"desc"},filters:{},loading:!1,selectedRowKeys:[],selectionRows:[],toggleSearchStatus:!1,superQueryFlag:!1,superQueryParams:"",superQueryMatchType:"and"}},created:function(){this.disableMixinCreated||(this.loadData(),this.initDictConfig())},methods:{loadData:function(e){var t=this;if(this.url.list){1===e&&(this.ipagination.current=1);var n=this.getQueryParams();this.loading=!0,Object(i["c"])(this.url.list,n).then((function(e){e.success&&(t.dataSource=e.result.records,t.ipagination.total=e.result.total),510===e.code&&t.$message.warning(e.message),t.loading=!1}))}else this.$message.error("请设置url.list属性!")},initDictConfig:function(){},handleSuperQuery:function(e,t){e?(this.superQueryFlag=!0,this.superQueryParams=JSON.stringify(e),this.superQueryMatchType=t):(this.superQueryParams="",this.superQueryFlag=!1),this.loadData(1)},getQueryParams:function(){var e={};this.superQueryParams&&(e["superQueryParams"]=encodeURI(this.superQueryParams),e["superQueryMatchType"]=this.superQueryMatchType);var t=Object.assign(e,this.queryParam,this.isorter,this.filters);return t.field=this.getQueryField(),t.pageNo=this.ipagination.current,t.pageSize=this.ipagination.pageSize,Object(r["d"])(t)},getQueryField:function(){var e="id,";return this.columns.forEach((function(t){e+=","+t.dataIndex})),e},onSelectChange:function(e,t){this.selectedRowKeys=e,this.selectionRows=t},onClearSelected:function(){this.selectedRowKeys=[],this.selectionRows=[]},searchQuery:function(){this.loadData(1)},superQuery:function(){this.$refs.superQueryModal.show()},searchReset:function(){this.queryParam={},this.loadData(1)},batchDel:function(){if(this.url.deleteBatch)if(this.selectedRowKeys.length<=0)this.$message.warning("请选择一条记录!");else{for(var e="",t=0;t<this.selectedRowKeys.length;t++)e+=this.selectedRowKeys[t]+",";var n=this;this.$confirm({title:"确认删除",content:"是否删除选中数据?",onOk:function(){n.loading=!0,Object(i["a"])(n.url.deleteBatch,{ids:e}).then((function(e){e.success?(n.$message.success(e.message),n.loadData(),n.onClearSelected()):n.$message.warning(e.message)})).finally((function(){n.loading=!1}))}})}else this.$message.error("请设置url.deleteBatch属性!")},handleDelete:function(e){if(this.url.delete){var t=this;Object(i["a"])(t.url.delete,{id:e}).then((function(e){e.success?(t.$message.success(e.message),t.loadData()):t.$message.warning(e.message)}))}else this.$message.error("请设置url.delete属性!")},handleEdit:function(e){this.$refs.modalForm.edit(e),this.$refs.modalForm.title="编辑",this.$refs.modalForm.disableSubmit=!1},handleAdd:function(){this.$refs.modalForm.add(),this.$refs.modalForm.title="新增",this.$refs.modalForm.disableSubmit=!1},handleTableChange:function(e,t,n){Object.keys(n).length>0&&(this.isorter.column=n.field,this.isorter.order="ascend"==n.order?"asc":"desc"),this.ipagination=e,this.loadData()},handleToggleSearch:function(){this.toggleSearchStatus=!this.toggleSearchStatus},getPopupField:function(e){return e.split(",")[0]},modalFormOk:function(){this.loadData()},handleDetail:function(e){this.$refs.modalForm.edit(e),this.$refs.modalForm.title="详情",this.$refs.modalForm.disableSubmit=!0},handleExportXls2:function(){var e=encodeURI(JSON.stringify(this.getQueryParams())),t="".concat(window._CONFIG["domianURL"],"/").concat(this.url.exportXlsUrl,"?paramsStr=").concat(e);window.location.href=t},handleExportXls:function(e){var t=this;e&&"string"==typeof e||(e="导出文件");var n=l({},this.queryParam);this.selectedRowKeys&&this.selectedRowKeys.length>0&&(n["selections"]=this.selectedRowKeys.join(",")),Object(i["b"])(this.url.exportXlsUrl,n).then((function(n){if(n)if("undefined"!==typeof window.navigator.msSaveBlob)window.navigator.msSaveBlob(new Blob([n],{type:"application/vnd.ms-excel"}),e+".xls");else{var r=window.URL.createObjectURL(new Blob([n],{type:"application/vnd.ms-excel"})),i=document.createElement("a");i.style.display="none",i.href=r,i.setAttribute("download",e+".xls"),document.body.appendChild(i),i.click(),document.body.removeChild(i),window.URL.revokeObjectURL(r)}else t.$message.warning("文件下载失败")}))},handleImportExcel:function(e){var t=this.$createElement;if(e.file.status,"done"===e.file.status)if(e.file.response.success){if(201===e.file.response.code){var n=e.file.response,r=n.message,i=n.result,a=i.msg,o=i.fileUrl,s=i.fileName,l=window._CONFIG["domianURL"]+o;this.$warning({title:r,content:t("div",[t("span",[a]),t("br"),t("span",["具体详情请 ",t("a",{attrs:{href:l,target:"_blank",download:s}},["点击下载"])," "])])})}else this.$message.success(e.file.response.message||"".concat(e.file.name," 文件上传成功"));this.loadData()}else this.$message.error("".concat(e.file.name," ").concat(e.file.response.message,"."));else"error"===e.file.status&&this.$message.error("文件上传失败: ".concat(e.file.msg," "))},getImgView:function(e){return e&&e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(","))),Object(i["d"])(e)},downloadFile:function(e){if(e){e.indexOf(",")>0&&(e=e.substring(0,e.indexOf(",")));var t=Object(i["d"])(e);window.open(t)}else this.$message.warning("未知的文件")}}}},bf93:function(e,t,n){"use strict";var r=n("f97e"),i=n.n(r);i.a},bfa9:function(e,t){e.exports={86:{11e4:"北京市",12e4:"天津市",13e4:"河北省",14e4:"山西省",15e4:"内蒙古自治区",21e4:"辽宁省",22e4:"吉林省",23e4:"黑龙江省",31e4:"上海市",32e4:"江苏省",33e4:"浙江省",34e4:"安徽省",35e4:"福建省",36e4:"江西省",37e4:"山东省",41e4:"河南省",42e4:"湖北省",43e4:"湖南省",44e4:"广东省",45e4:"广西壮族自治区",46e4:"海南省",5e5:"重庆市",51e4:"四川省",52e4:"贵州省",53e4:"云南省",54e4:"西藏自治区",61e4:"陕西省",62e4:"甘肃省",63e4:"青海省",64e4:"宁夏回族自治区",65e4:"新疆维吾尔自治区",71e4:"台湾省",81e4:"香港特别行政区",82e4:"澳门特别行政区"},11e4:{110101:"东城区",110102:"西城区",110105:"朝阳区",110106:"丰台区",110107:"石景山区",110108:"海淀区",110109:"门头沟区",110111:"房山区",110112:"通州区",110113:"顺义区",110114:"昌平区",110115:"大兴区",110116:"怀柔区",110117:"平谷区",110118:"密云区",110119:"延庆区"},12e4:{120101:"和平区",120102:"河东区",120103:"河西区",120104:"南开区",120105:"河北区",120106:"红桥区",120110:"东丽区",120111:"西青区",120112:"津南区",120113:"北辰区",120114:"武清区",120115:"宝坻区",120116:"滨海新区",120117:"宁河区",120118:"静海区",120119:"蓟州区"},13e4:{130100:"石家庄市",130200:"唐山市",130300:"秦皇岛市",130400:"邯郸市",130500:"邢台市",130600:"保定市",130700:"张家口市",130800:"承德市",130900:"沧州市",131e3:"廊坊市",131100:"衡水市",139001:"定州市",139002:"辛集市"},14e4:{140100:"太原市",140200:"大同市",140300:"阳泉市",140400:"长治市",140500:"晋城市",140600:"朔州市",140700:"晋中市",140800:"运城市",140900:"忻州市",141e3:"临汾市",141100:"吕梁市"},15e4:{150100:"呼和浩特市",150200:"包头市",150300:"乌海市",150400:"赤峰市",150500:"通辽市",150600:"鄂尔多斯市",150700:"呼伦贝尔市",150800:"巴彦淖尔市",150900:"乌兰察布市",152200:"兴安盟",152500:"锡林郭勒盟",152900:"阿拉善盟"},21e4:{210100:"沈阳市",210200:"大连市",210300:"鞍山市",210400:"抚顺市",210500:"本溪市",210600:"丹东市",210700:"锦州市",210800:"营口市",210900:"阜新市",211e3:"辽阳市",211100:"盘锦市",211200:"铁岭市",211300:"朝阳市",211400:"葫芦岛市"},22e4:{220100:"长春市",220200:"吉林市",220300:"四平市",220400:"辽源市",220500:"通化市",220600:"白山市",220700:"松原市",220800:"白城市",222400:"延边朝鲜族自治州"},23e4:{230100:"哈尔滨市",230200:"齐齐哈尔市",230300:"鸡西市",230400:"鹤岗市",230500:"双鸭山市",230600:"大庆市",230700:"伊春市",230800:"佳木斯市",230900:"七台河市",231e3:"牡丹江市",231100:"黑河市",231200:"绥化市",232700:"大兴安岭地区"},31e4:{310101:"黄浦区",310104:"徐汇区",310105:"长宁区",310106:"静安区",310107:"普陀区",310109:"虹口区",310110:"杨浦区",310112:"闵行区",310113:"宝山区",310114:"嘉定区",310115:"浦东新区",310116:"金山区",310117:"松江区",310118:"青浦区",310120:"奉贤区",310151:"崇明区"},32e4:{320100:"南京市",320200:"无锡市",320300:"徐州市",320400:"常州市",320500:"苏州市",320600:"南通市",320700:"连云港市",320800:"淮安市",320900:"盐城市",321e3:"扬州市",321100:"镇江市",321200:"泰州市",321300:"宿迁市"},33e4:{330100:"杭州市",330200:"宁波市",330300:"温州市",330400:"嘉兴市",330500:"湖州市",330600:"绍兴市",330700:"金华市",330800:"衢州市",330900:"舟山市",331e3:"台州市",331100:"丽水市"},34e4:{340100:"合肥市",340200:"芜湖市",340300:"蚌埠市",340400:"淮南市",340500:"马鞍山市",340600:"淮北市",340700:"铜陵市",340800:"安庆市",341e3:"黄山市",341100:"滁州市",341200:"阜阳市",341300:"宿州市",341500:"六安市",341600:"亳州市",341700:"池州市",341800:"宣城市"},35e4:{350100:"福州市",350200:"厦门市",350300:"莆田市",350400:"三明市",350500:"泉州市",350600:"漳州市",350700:"南平市",350800:"龙岩市",350900:"宁德市"},36e4:{360100:"南昌市",360200:"景德镇市",360300:"萍乡市",360400:"九江市",360500:"新余市",360600:"鹰潭市",360700:"赣州市",360800:"吉安市",360900:"宜春市",361e3:"抚州市",361100:"上饶市"},37e4:{370100:"济南市",370200:"青岛市",370300:"淄博市",370400:"枣庄市",370500:"东营市",370600:"烟台市",370700:"潍坊市",370800:"济宁市",370900:"泰安市",371e3:"威海市",371100:"日照市",371200:"莱芜市",371300:"临沂市",371400:"德州市",371500:"聊城市",371600:"滨州市",371700:"菏泽市"},41e4:{410100:"郑州市",410200:"开封市",410300:"洛阳市",410400:"平顶山市",410500:"安阳市",410600:"鹤壁市",410700:"新乡市",410800:"焦作市",410900:"濮阳市",411e3:"许昌市",411100:"漯河市",411200:"三门峡市",411300:"南阳市",411400:"商丘市",411500:"信阳市",411600:"周口市",411700:"驻马店市",419001:"济源市"},42e4:{420100:"武汉市",420200:"黄石市",420300:"十堰市",420500:"宜昌市",420600:"襄阳市",420700:"鄂州市",420800:"荆门市",420900:"孝感市",421e3:"荆州市",421100:"黄冈市",421200:"咸宁市",421300:"随州市",422800:"恩施土家族苗族自治州",429004:"仙桃市",429005:"潜江市",429006:"天门市",429021:"神农架林区"},43e4:{430100:"长沙市",430200:"株洲市",430300:"湘潭市",430400:"衡阳市",430500:"邵阳市",430600:"岳阳市",430700:"常德市",430800:"张家界市",430900:"益阳市",431e3:"郴州市",431100:"永州市",431200:"怀化市",431300:"娄底市",433100:"湘西土家族苗族自治州"},44e4:{440100:"广州市",440200:"韶关市",440300:"深圳市",440400:"珠海市",440500:"汕头市",440600:"佛山市",440700:"江门市",440800:"湛江市",440900:"茂名市",441200:"肇庆市",441300:"惠州市",441400:"梅州市",441500:"汕尾市",441600:"河源市",441700:"阳江市",441800:"清远市",441900:"东莞市",442e3:"中山市",445100:"潮州市",445200:"揭阳市",445300:"云浮市"},45e4:{450100:"南宁市",450200:"柳州市",450300:"桂林市",450400:"梧州市",450500:"北海市",450600:"防城港市",450700:"钦州市",450800:"贵港市",450900:"玉林市",451e3:"百色市",451100:"贺州市",451200:"河池市",451300:"来宾市",451400:"崇左市"},46e4:{460100:"海口市",460200:"三亚市",460300:"三沙市",460400:"儋州市",469001:"五指山市",469002:"琼海市",469005:"文昌市",469006:"万宁市",469007:"东方市",469021:"定安县",469022:"屯昌县",469023:"澄迈县",469024:"临高县",469025:"白沙黎族自治县",469026:"昌江黎族自治县",469027:"乐东黎族自治县",469028:"陵水黎族自治县",469029:"保亭黎族苗族自治县",469030:"琼中黎族苗族自治县"},5e5:{500101:"万州区",500102:"涪陵区",500103:"渝中区",500104:"大渡口区",500105:"江北区",500106:"沙坪坝区",500107:"九龙坡区",500108:"南岸区",500109:"北碚区",500110:"綦江区",500111:"大足区",500112:"渝北区",500113:"巴南区",500114:"黔江区",500115:"长寿区",500116:"江津区",500117:"合川区",500118:"永川区",500119:"南川区",500120:"璧山区",500151:"铜梁区",500152:"潼南区",500153:"荣昌区",500154:"开州区",500228:"梁平县",500229:"城口县",500230:"丰都县",500231:"垫江县",500232:"武隆县",500233:"忠县",500235:"云阳县",500236:"奉节县",500237:"巫山县",500238:"巫溪县",500240:"石柱土家族自治县",500241:"秀山土家族苗族自治县",500242:"酉阳土家族苗族自治县",500243:"彭水苗族土家族自治县"},51e4:{510100:"成都市",510300:"自贡市",510400:"攀枝花市",510500:"泸州市",510600:"德阳市",510700:"绵阳市",510800:"广元市",510900:"遂宁市",511e3:"内江市",511100:"乐山市",511300:"南充市",511400:"眉山市",511500:"宜宾市",511600:"广安市",511700:"达州市",511800:"雅安市",511900:"巴中市",512e3:"资阳市",513200:"阿坝藏族羌族自治州",513300:"甘孜藏族自治州",513400:"凉山彝族自治州"},52e4:{520100:"贵阳市",520200:"六盘水市",520300:"遵义市",520400:"安顺市",520500:"毕节市",520600:"铜仁市",522300:"黔西南布依族苗族自治州",522600:"黔东南苗族侗族自治州",522700:"黔南布依族苗族自治州"},53e4:{530100:"昆明市",530300:"曲靖市",530400:"玉溪市",530500:"保山市",530600:"昭通市",530700:"丽江市",530800:"普洱市",530900:"临沧市",532300:"楚雄彝族自治州",532500:"红河哈尼族彝族自治州",532600:"文山壮族苗族自治州",532800:"西双版纳傣族自治州",532900:"大理白族自治州",533100:"德宏傣族景颇族自治州",533300:"怒江傈僳族自治州",533400:"迪庆藏族自治州"},54e4:{540100:"拉萨市",540200:"日喀则市",540300:"昌都市",540400:"林芝市",540500:"山南市",542400:"那曲地区",542500:"阿里地区"},61e4:{610100:"西安市",610200:"铜川市",610300:"宝鸡市",610400:"咸阳市",610500:"渭南市",610600:"延安市",610700:"汉中市",610800:"榆林市",610900:"安康市",611e3:"商洛市"},62e4:{620100:"兰州市",620200:"嘉峪关市",620300:"金昌市",620400:"白银市",620500:"天水市",620600:"武威市",620700:"张掖市",620800:"平凉市",620900:"酒泉市",621e3:"庆阳市",621100:"定西市",621200:"陇南市",622900:"临夏回族自治州",623e3:"甘南藏族自治州"},63e4:{630100:"西宁市",630200:"海东市",632200:"海北藏族自治州",632300:"黄南藏族自治州",632500:"海南藏族自治州",632600:"果洛藏族自治州",632700:"玉树藏族自治州",632800:"海西蒙古族藏族自治州"},64e4:{640100:"银川市",640200:"石嘴山市",640300:"吴忠市",640400:"固原市",640500:"中卫市"},65e4:{650100:"乌鲁木齐市",650200:"克拉玛依市",650400:"吐鲁番市",650500:"哈密市",652300:"昌吉回族自治州",652700:"博尔塔拉蒙古自治州",652800:"巴音郭楞蒙古自治州",652900:"阿克苏地区",653e3:"克孜勒苏柯尔克孜自治州",653100:"喀什地区",653200:"和田地区",654e3:"伊犁哈萨克自治州",654200:"塔城地区",654300:"阿勒泰地区",659001:"石河子市",659002:"阿拉尔市",659003:"图木舒克市",659004:"五家渠市",659006:"铁门关市"},71e4:{710101:"金门",710102:"连江",710103:"苗栗",710104:"南投",710105:"澎湖",710106:"屏东",710107:"台东",710108:"台中",710109:"台南",710110:"台北",710111:"桃园",710112:"云林",710113:"新北",710114:"彰化",710115:"嘉义",710116:"新竹",710117:"花莲",710118:"宜兰",710119:"高雄",710120:"基隆"},81e4:{810101:"中西区",810102:"东区",810103:"九龙城区",810104:"观塘区",810105:"深水埗区",810106:"湾仔区",810107:"黄大仙区",810108:"油尖旺区",810109:"离岛区",810110:"葵青区",810111:"北区",810112:"西贡区",810113:"沙田区",810114:"屯门区",810115:"大埔区",810116:"荃湾区",810117:"元朗区",810118:"香港",810119:"九龙",810120:"新界"},82e4:{820101:"离岛",820102:"澳门半岛",820103:"凼仔",820104:"路凼城",820105:"路环"}}},c010:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return e.async?n("a-select",{staticStyle:{width:"100%"},attrs:{showSearch:"",labelInValue:"",disabled:e.disabled,getPopupContainer:function(e){return e.parentNode},placeholder:e.placeholder,filterOption:!1,allowClear:"",notFoundContent:e.loading?void 0:null},on:{search:e.loadData,change:e.handleAsyncChange},model:{value:e.selectedAsyncValue,callback:function(t){e.selectedAsyncValue=t},expression:"selectedAsyncValue"}},[e.loading?n("a-spin",{attrs:{slot:"notFoundContent",size:"small"},slot:"notFoundContent"}):e._e(),e._l(e.options,(function(t){return n("a-select-option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.text))])}))],2):n("a-select",{staticStyle:{width:"100%"},attrs:{getPopupContainer:function(e){return e.parentNode},showSearch:"",disabled:e.disabled,placeholder:e.placeholder,optionFilterProp:"children",filterOption:e.filterOption,allowClear:"",notFoundContent:e.loading?void 0:null},on:{change:e.handleChange},model:{value:e.selectedValue,callback:function(t){e.selectedValue=t},expression:"selectedValue"}},[e.loading?n("a-spin",{attrs:{slot:"notFoundContent",size:"small"},slot:"notFoundContent"}):e._e(),e._l(e.options,(function(t){return n("a-select-option",{key:t.value,attrs:{value:t.value}},[e._v(e._s(t.text))])}))],2)},i=[],a=n("4ec3"),o=n("b047"),s=n.n(o),l=n("0fea");function c(e){return f(e)||h(e)||d(e)||u()}function u(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function d(e,t){if(e){if("string"===typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function h(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function f(e){if(Array.isArray(e))return p(e)}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y={name:"JSearchSelectTag",props:{disabled:Boolean,value:[String,Number],dict:String,dictOptions:Array,async:Boolean,placeholder:{type:String,default:"请选择",required:!1}},data:function(){return this.loadData=s()(this.loadData,800),this.lastLoad=0,{loading:!1,selectedValue:[],selectedAsyncValue:[],options:[]}},created:function(){this.initDictData()},watch:{value:{immediate:!0,handler:function(e){e||0==e?this.initSelectValue():(this.selectedValue=[],this.selectedAsyncValue=[])}},dict:{handler:function(){this.initDictData()}}},methods:{initSelectValue:function(){var e=this;this.async?this.selectedAsyncValue&&this.selectedAsyncValue.key&&this.selectedAsyncValue.key==this.value||Object(l["c"])("/sys/dict/loadDictItem/".concat(this.dict),{key:this.value}).then((function(t){if(t.success){var n={key:e.value,label:t.result};e.selectedAsyncValue=m({},n)}})):this.selectedValue=this.value.toString()},loadData:function(e){var t=this;this.lastLoad+=1;var n=this.lastLoad;this.options=[],this.loading=!0,Object(l["c"])("/sys/dict/loadDict/".concat(this.dict),{keyword:e}).then((function(e){if(t.loading=!1,e.success){if(n!=t.lastLoad)return;t.options=e.result}else t.$message.warning(e.message)}))},initDictData:function(){var e=this;if(!this.async)if(this.dictOptions&&this.dictOptions.length>0)this.options=c(this.dictOptions);else{var t="";if(this.dict){var n=this.dict.split(",");if(n[0].indexOf("where")>0){var r=n[0].split("where");t=r[0].trim()+","+n[1]+","+n[2]+","+encodeURIComponent(r[1])}else t=this.dict;if(-1==this.dict.indexOf(",")&&Object(a["t"])(this.dictCode))return void(this.options=Object(a["t"])(this.dictCode));Object(a["f"])(t,null).then((function(t){t.success&&(e.options=t.result)}))}}},filterOption:function(e,t){return t.componentOptions.children[0].text.toLowerCase().indexOf(e.toLowerCase())>=0},handleChange:function(e){this.selectedValue=e,this.callback()},handleAsyncChange:function(e){this.selectedAsyncValue=e,this.selectedValue=e.key,this.callback()},callback:function(){this.$emit("change",this.selectedValue)},setCurrentDictOptions:function(e){this.options=e},getCurrentDictOptions:function(){return this.options}},model:{prop:"value",event:"change"}},b=y,_=n("2877"),w=Object(_["a"])(b,r,i,!1,null,"3630613a",null);t["default"]=w.exports},c14a:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("a-input-search",{attrs:{placeholder:"请先选择用户",readOnly:"",unselectable:"on"},on:{search:e.onSearchDepUser},model:{value:e.userNames,callback:function(t){e.userNames=t},expression:"userNames"}},[n("a-button",{attrs:{slot:"enterButton",disabled:e.disabled},slot:"enterButton"},[e._v("选择用户")])],1),n("j-select-user-by-dep-modal",{ref:"selectModal",attrs:{"modal-width":e.modalWidth,multi:e.multi,"user-ids":e.value},on:{ok:e.selectOK,initComp:e.initComp}})],1)},i=[],a=n("a505");function o(e,t){var n;if("undefined"===typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=s(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,l=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw a}}}}function s(e,t){if(e){if("string"===typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var c={name:"JSelectUserByDep",components:{JSelectUserByDepModal:a["default"]},props:{modalWidth:{type:Number,default:1250,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},multi:{type:Boolean,default:!0,required:!1}},data:function(){return{userIds:"",userNames:""}},mounted:function(){this.userIds=this.value},watch:{value:function(e){this.userIds=e}},model:{prop:"value",event:"change"},methods:{initComp:function(e){this.userNames=e},onSearchDepUser:function(){this.$refs.selectModal.showModal()},selectOK:function(e,t){if(e){var n,r="",i=o(e);try{for(i.s();!(n=i.n()).done;){var a=n.value;r+=","+a.realname}}catch(s){i.e(s)}finally{i.f()}this.userNames=r.substring(1),this.userIds=t}else this.userNames="",this.userIds="";this.$emit("change",this.userIds)}}},u=c,d=n("2877"),h=Object(d["a"])(u,r,i,!1,null,"bd3f15c8",null);t["default"]=h.exports},cb82:function(e,t,n){},cf74:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticStyle:{position:"relative"},attrs:{id:e.containerId}},[n("div",{staticClass:"movety-container",staticStyle:{padding:"0 8px",position:"absolute","z-index":"91",height:"32px",width:"104px","text-align":"center"},style:{top:e.top+"px",left:e.left+"px",display:e.moveDisplay}},[n("div",{class:e.showMoverTask?"uploadty-mover-mask":"movety-opt",staticStyle:{"margin-top":"12px"},attrs:{id:e.containerId+"-mover"}},[n("a",{staticStyle:{margin:"0 5px"},on:{click:e.moveLast}},[n("a-icon",{staticStyle:{color:"#fff","font-size":"16px"},attrs:{type:"arrow-left"}})],1),n("a",{staticStyle:{margin:"0 5px"},on:{click:e.moveNext}},[n("a-icon",{staticStyle:{color:"#fff","font-size":"16px"},attrs:{type:"arrow-right"}})],1)])]),n("a-upload",{class:{"uploadty-disabled":e.disabled},attrs:{name:"file",multiple:!0,action:e.uploadAction,headers:e.headers,data:{biz:e.bizPath},fileList:e.fileList,beforeUpload:e.beforeUpload,disabled:e.disabled,returnUrl:e.returnUrl,listType:e.complistType},on:{change:e.handleChange,preview:e.handlePreview}},[[e.isImageComp?n("div",[n("a-icon",{attrs:{type:"plus"}}),n("div",{staticClass:"ant-upload-text"},[e._v(e._s(e.text))])],1):e.buttonVisible?n("a-button",[n("a-icon",{attrs:{type:"upload"}}),e._v(e._s(e.text)+"\n      ")],1):e._e()]],2),n("a-modal",{attrs:{visible:e.previewVisible,footer:null},on:{cancel:e.handleCancel}},[n("img",{staticStyle:{width:"100%"},attrs:{alt:"example",src:e.previewImage}})])],1)},i=[],a=n("2b0e"),o=n("9fb0"),s=n("0fea"),l="all",c="image",u=function(){return"-"+parseInt(1e4*Math.random()+1,10)},d=function(e){if(e.lastIndexOf("\\")>=0){var t=new RegExp("\\\\","g");e=e.replace(t,"/")}return e.substring(e.lastIndexOf("/")+1)},h={name:"JUpload",data:function(){return{uploadAction:window._CONFIG["domianURL"]+"/sys/common/upload",headers:{},fileList:[],newFileList:[],uploadGoOn:!0,previewVisible:!1,previewImage:"",containerId:"",top:"",left:"",moveDisplay:"none",showMoverTask:!1,moverHold:!1,currentImg:""}},props:{text:{type:String,required:!1,default:"点击上传"},fileType:{type:String,required:!1,default:l},bizPath:{type:String,required:!1,default:"temp"},value:{type:[String,Array],required:!1},disabled:{type:Boolean,required:!1,default:!1},triggerChange:{type:Boolean,required:!1,default:!1},returnUrl:{type:Boolean,required:!1,default:!0},number:{type:Number,required:!1,default:0},buttonVisible:{type:Boolean,required:!1,default:!0}},watch:{value:{immediate:!0,handler:function(){var e=this.value;e instanceof Array?this.returnUrl?this.initFileList(e.join(",")):this.initFileListArr(e):this.initFileList(e)}}},computed:{isImageComp:function(){return this.fileType===c},complistType:function(){return this.fileType===c?"picture-card":"text"}},created:function(){var e=a["default"].ls.get(o["a"]);this.headers={"X-Access-Token":e},this.containerId="container-ty-"+(new Date).getTime()},methods:{initFileListArr:function(e){if(e&&0!=e.length){for(var t=[],n=0;n<e.length;n++){var r=Object(s["d"])(e[n].filePath);t.push({uid:u(),name:e[n].fileName,status:"done",url:r,response:{status:"history",message:e[n].filePath}})}this.fileList=t}else this.fileList=[]},initFileList:function(e){if(e&&0!=e.length){for(var t=[],n=e.split(","),r=0;r<n.length;r++){var i=Object(s["d"])(n[r]);t.push({uid:u(),name:d(n[r]),status:"done",url:i,response:{status:"history",message:n[r]}})}this.fileList=t}else this.fileList=[]},handlePathChange:function(){var e=this.fileList,t="";e&&0!=e.length||(t="");for(var n=[],r=0;r<e.length;r++){if("done"!==e[r].status)return;n.push(e[r].response.message)}n.length>0&&(t=n.join(",")),this.$emit("change",t)},beforeUpload:function(e){this.uploadGoOn=!0;var t=e.type;return!(this.fileType===c&&t.indexOf("image")<0)||(this.$message.warning("请上传图片"),this.uploadGoOn=!1,!1)},handleChange:function(e){e.file.status||!1!==this.uploadGoOn||e.fileList.pop();var t=e.fileList;if("done"===e.file.status?(this.number>0&&(t=t.slice(-this.number)),e.file.response.success&&(t=t.map((function(e){if(e.response){var t=e.response.message;e.url=Object(s["d"])(t)}return e})))):"error"===e.file.status?this.$message.error("".concat(e.file.name," 上传失败.")):"removed"===e.file.status&&this.handleDelete(e.file),this.fileList=t,"done"===e.file.status||"removed"===e.file.status)if(this.returnUrl)this.handlePathChange();else{this.newFileList=[];for(var n=0;n<t.length;n++){if("done"!==t[n].status)return;var r={fileName:t[n].name,filePath:t[n].response.message,fileSize:t[n].size};this.newFileList.push(r)}this.$emit("change",this.newFileList)}},handleDelete:function(e){},handlePreview:function(e){this.fileType===c?(this.previewImage=e.url||e.thumbUrl,this.previewVisible=!0):location.href=e.url},handleCancel:function(){this.previewVisible=!1},moveLast:function(){var e=this.getIndexByUrl();if(0==e)this.$message.warn("未知的操作");else{for(var t=this.fileList[e].url,n=this.fileList[e-1].url,r=[],i=0;i<this.fileList.length;i++)i==e-1?r.push(t):i==e?r.push(n):r.push(this.fileList[i].url);this.currentImg=n,this.$emit("change",r.join(","))}},moveNext:function(){var e=this.getIndexByUrl();if(e==this.fileList.length-1)this.$message.warn("已到最后~");else{for(var t=this.fileList[e].url,n=this.fileList[e+1].url,r=[],i=0;i<this.fileList.length;i++)i==e+1?r.push(t):i==e?r.push(n):r.push(this.fileList[i].url);this.currentImg=n,this.$emit("change",r.join(","))}},getIndexByUrl:function(){for(var e=0;e<this.fileList.length;e++)if(this.fileList[e].url===this.currentImg||encodeURI(this.fileList[e].url)===this.currentImg)return e;return-1}},mounted:function(){var e=this,t=document.getElementById(this.containerId+"-mover");t.addEventListener("mouseover",(function(){e.moverHold=!0,e.moveDisplay="block"})),t.addEventListener("mouseout",(function(){e.moverHold=!1,e.moveDisplay="none"}));var n=document.getElementById(this.containerId)?document.getElementById(this.containerId).getElementsByClassName("ant-upload-list-picture-card"):[];n&&n.length>0&&(n[0].addEventListener("mouseover",(function(t){t=t||window.event;var n=t.target||t.srcElement;if("ant-upload-list-item-info"==n.className){e.showMoverTask=!1;var r=n.parentElement;e.left=r.offsetLeft,e.top=r.offsetTop+r.offsetHeight-50,e.moveDisplay="block",e.currentImg=n.getElementsByTagName("img")[0].src}})),n[0].addEventListener("mouseout",(function(t){t=t||window.event;var n=t.target||t.srcElement;"ant-upload-list-item-info"==n.className&&(e.showMoverTask=!0,setTimeout((function(){!1===e.moverHold&&(e.moveDisplay="none")}),100)),"ant-upload-list-item ant-upload-list-item-done"!=n.className&&"ant-upload-list ant-upload-list-picture-card"!=n.className||(e.moveDisplay="none")})))},model:{prop:"value",event:"change"}},f=h,p=(n("de21"),n("2877")),g=Object(p["a"])(f,r,i,!1,null,null,null);t["default"]=g.exports},d579:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("a-tooltip",{attrs:{placement:"topLeft"}},[n("template",{slot:"title"},[n("span",[e._v(e._s(e.value))])]),e._v("\n  "+e._s(e._f("ellipsis")(e.value,e.length))+"\n")],2)},i=[],a={name:"JEllipsis",props:{value:{type:String,required:!1},length:{type:Number,required:!1,default:25}}},o=a,s=n("2877"),l=Object(s["a"])(o,r,i,!1,null,"51aeca46",null);t["default"]=l.exports},de21:function(e,t,n){"use strict";var r=n("7ab5"),i=n.n(r);i.a},e06f:function(e,t,n){},e636:function(e,t,n){},f4c3:function(e,t,n){
/*!
 * TOAST UI Editor : i18n
 * @version 2.2.0
 * @author NHN FE Development Lab <dl_javascript@nhn.com>
 * @license MIT
 */
(function(t,r){e.exports=r(n("a0ae"))})(window,(function(e){return function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=18)}({0:function(t,n){t.exports=e},18:function(e,t,n){"use strict";n.r(t);var r=n(0),i=n.n(r);i.a.setLanguage("zh-CN",{Markdown:"Markdown",WYSIWYG:"所见即所得",Write:"编辑",Preview:"预览",Headings:"标题",Paragraph:"文本",Bold:"加粗",Italic:"斜体字",Strike:"删除线",Code:"内嵌代码",Line:"水平线",Blockquote:"引用块","Unordered list":"无序列表","Ordered list":"有序列表",Task:"任务",Indent:"缩进",Outdent:"减少缩进","Insert link":"插入链接","Insert CodeBlock":"插入代码块","Insert table":"插入表格","Insert image":"插入图片",Heading:"标题","Image URL":"图片网址","Select image file":"选择图片文件",Description:"说明",OK:"确认",More:"更多",Cancel:"取消",File:"文件",URL:"URL","Link text":"链接文本","Add row":"添加行","Add col":"添加列","Remove row":"删除行","Remove col":"删除列","Align left":"左对齐","Align center":"居中对齐","Align right":"右对齐","Remove table":"删除表格","Would you like to paste as table?":"需要粘贴为表格吗?","Text color":"文字颜色","Auto scroll enabled":"自动滚动已启用","Auto scroll disabled":"自动滚动已禁用","Choose language":"选择语言"})}})}))},f513:function(e,t,n){},f680:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return"checkbox"==e.tagType?n("a-checkbox-group",{attrs:{value:e.arrayValue,disabled:e.disabled},on:{change:e.onChange}},e._l(e.dictOptions,(function(t,r){return n("a-checkbox",{key:r,attrs:{value:t.value}},[e._v(e._s(t.text||t.label))])})),1):"select"==e.tagType?n("a-select",{attrs:{value:e.arrayValue,disabled:e.disabled,mode:"multiple",placeholder:e.placeholder,getPopupContainer:function(e){return e.parentNode},allowClear:""},on:{change:e.onChange}},e._l(e.dictOptions,(function(t,r){return n("a-select-option",{key:r,attrs:{value:t.value}},[n("span",{staticStyle:{display:"inline-block",width:"100%"},attrs:{title:t.text||t.label}},[e._v("\n      "+e._s(t.text||t.label)+"\n    ")])])})),1):e._e()},i=[],a=n("4ec3");function o(e){return u(e)||c(e)||l(e)||s()}function s(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function l(e,t){if(e){if("string"===typeof e)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?d(e,t):void 0}}function c(e){if("undefined"!==typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function u(e){if(Array.isArray(e))return d(e)}function d(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var h={name:"JMultiSelectTag",props:{dictCode:String,placeholder:String,disabled:Boolean,value:String,type:String,options:Array},data:function(){return{dictOptions:[],tagType:"",arrayValue:this.value?this.value.split(","):[]}},created:function(){this.type&&"list_multi"!==this.type?this.tagType=this.type:this.tagType="select"},watch:{options:function(e){this.setCurrentDictOptions(e)},dictCode:{immediate:!0,handler:function(){this.initDictData()}},value:function(e){this.arrayValue=e?this.value.split(","):[]}},methods:{initDictData:function(){var e=this;if(this.options&&this.options.length>0)this.dictOptions=o(this.options);else{if(Object(a["t"])(this.dictCode))return void(this.dictOptions=Object(a["t"])(this.dictCode));Object(a["f"])(this.dictCode,null).then((function(t){t.success&&(e.dictOptions=t.result)}))}},onChange:function(e){this.$emit("change",e.join(","))},setCurrentDictOptions:function(e){this.dictOptions=e},getCurrentDictOptions:function(){return this.dictOptions}},model:{prop:"value",event:"change"}},f=h,p=n("2877"),g=Object(p["a"])(f,r,i,!1,null,null,null);t["default"]=g.exports},f97e:function(e,t,n){},fe54:function(e,t,n){"use strict";n.r(t);var r=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"components-input-demo-presuffix"},[n("a-input",{attrs:{placeholder:"请点击选择部门",readOnly:"",disabled:e.disabled},on:{click:e.openModal},model:{value:e.departNames,callback:function(t){e.departNames=t},expression:"departNames"}},[n("a-icon",{attrs:{slot:"prefix",type:"cluster",title:"部门选择控件"},slot:"prefix"}),e.departIds?n("a-icon",{attrs:{slot:"suffix",type:"close-circle",title:"清空"},on:{click:e.handleEmpty},slot:"suffix"}):e._e()],1),n("j-select-depart-modal",{ref:"innerDepartSelectModal",attrs:{"modal-width":e.modalWidth,multi:e.multi,rootOpened:e.rootOpened,"depart-id":e.departIds},on:{ok:e.handleOK,initComp:e.initComp}})],1)},i=[],a=n("b0cd"),o={name:"JSelectDepart",components:{JSelectDepartModal:a["default"]},props:{modalWidth:{type:Number,default:500,required:!1},multi:{type:Boolean,default:!1,required:!1},rootOpened:{type:Boolean,default:!0,required:!1},value:{type:String,required:!1},disabled:{type:Boolean,required:!1,default:!1},customReturnField:{type:String,default:"id"}},data:function(){return{visible:!1,confirmLoading:!1,departNames:"",departIds:""}},mounted:function(){this.departIds=this.value},watch:{value:function(e){"id"===this.customReturnField&&(this.departIds=e)}},methods:{initComp:function(e){var t=this;if(this.departNames=e,"id"!==this.customReturnField&&this.value){var n=this.$refs.innerDepartSelectModal.dataList;this.departIds=this.value.split(",").map((function(e){var r=n.filter((function(n){return n[t.customReturnField]===e}));return r.length>0?r[0].id:""})).join(",")}},openModal:function(){this.$refs.innerDepartSelectModal.show()},handleOK:function(e,t){var n=this,r="";!e&&e.length<=0?(this.departNames="",this.departIds=""):(r=e.map((function(e){return e[n.customReturnField]})).join(","),this.departNames=e.map((function(e){return e["departName"]})).join(","),this.departIds=t),this.$emit("change",r)},getDepartNames:function(){return this.departNames},handleEmpty:function(){this.handleOK("")}},model:{prop:"value",event:"change"}},s=o,l=(n("9b3e"),n("2877")),c=Object(l["a"])(s,r,i,!1,null,"4334b3e0",null);t["default"]=c.exports}}]);