From 28d891430197d02e161708c1f70726c882cdefa4 Mon Sep 17 00:00:00 2001
From: leevi <284855646@qq.com>
Date: Mon, 10 Mar 2025 20:40:00 +0800
Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
ITV.txt | 647 ++
JS/56动漫.js | 40 +
drpy_js/APPV2[模板].js => JS/APPV2.js | 0
JS/Anime1.js | 169 +
JS/NT动漫.js | 1013 ++
JS/NyaFun.js | 13 +
JS/alishare.txt | 70 +
JS/cheerio.min.js | 10945 ++++++++++++++++++++++
{drpy_libs => JS}/crypto-hiker.js | 1087 +--
JS/crypto-js.js | 6192 ++++++++++++
{lib => JS}/drpy2.js | 491 +-
JS/drpy2.min.js | 3108 ++++++
{lib => JS}/gbk.js | 73 +-
{drpy_libs => JS}/jinja.js | 194 +-
JS/jinja.min.js | 504 +
JS/jsencrypt.js | 360 +
JS/json5.js | 1809 ++++
JS/jsonpathplus.min.js | 1277 +++
JS/node-rsa.js | 5858 ++++++++++++
JS/pako.min.js | 1439 +++
JS/quark.min.js | 3057 ++++++
{libs => JS}/uri.min.js | 0
JS/三六零弹幕.js | 843 ++
JS/优酷弹幕.js | 2299 +++++
JS/剧圈圈.js | 12 +
JS/动漫岛.js | 1100 +++
JS/动漫巴士.js | 64 +
JS/动画片大全.js | 28 +
JS/去看吧.js | 1127 +++
JS/奇米动漫.js | 1164 +++
JS/好看动漫.js | 29 +
JS/异世界.js | 278 +
JS/思古影视.js | 44 +
JS/怡萱动漫.js | 773 ++
JS/机器人.js | 198 +
{drpy_libs => JS}/模板.js | 109 +-
JS/樱花动漫.js | 8 +
JS/爱奇艺弹幕.js | 1392 +++
JS/爱弹幕.js | 815 ++
JS/瓜子影视.js | 476 +
JS/看了么.js | 890 ++
JS/短剧合集.js | 29 +
JS/碟调影视.js | 32 +
JS/磁力熊.js | 101 +
JS/米兔弹幕.js | 224 +
JS/素白白.js | 743 ++
JS/腾讯弹幕.js | 842 ++
JS/芒果弹幕.js | 843 ++
JS/花子动漫.js | 970 ++
JS/茶杯狐.js | 1512 +++
JS/路漫漫.js | 549 ++
JS/达达龟.js | 627 ++
JS/追剧弹幕.js | 183 +
JS/追剧迷.js | 37 +
JS/采集之王.js | 378 +
JS/魔力高清.js | 598 ++
README.md | 2 -
XBPQ/修罗影视.json | 35 +
XBPQ/农民影视.json | 10 +
XBPQ/哆啦新番社.json | 18 +
XBPQ/樱花影视.json | 5 +
XBPQ/永乐影视.json | 7 +
XBPQ/海纳影视.json | 6 +
XBPQ/爱我短剧.json | 25 +
XBPQ/狐狸君.json | 21 +
XBPQ/短剧网.json | 4 +
XBPQ/秀儿影视.json | 8 +
XBPQ/雪糕影视.json | 5 +
XBPQ/面包影视.json | 7 +
config.bin | 2531 +++--
custom_spider.jar | Bin 577930 -> 0 bytes
drpy_js/01看球[球].js | 1 -
drpy_js/0855影视.js | 1 -
drpy_js/111tv[自动].js | 1 -
drpy_js/222听书[听].js | 1 -
drpy_js/29片库[密].js | 1 -
drpy_js/310直播[球].js | 1 -
drpy_js/348电影网.js | 1 -
drpy_js/360吧[球].js | 1 -
drpy_js/360影视[官].js | 1 -
drpy_js/36直播[密].js | 1 -
drpy_js/4K-AV.js | 1 -
drpy_js/4khdr.js | 1 -
drpy_js/4k剧院.js | 1 -
drpy_js/4k양牘.js | 1 -
drpy_js/539影视.js | 1 -
drpy_js/555影视[飞].js | 1 -
drpy_js/58动漫[漫].js | 1 -
drpy_js/6V新版[磁].js | 1 -
drpy_js/777影视.js | 1 -
drpy_js/7喜影院.js | 1 -
drpy_js/7猫小说[书].js | 1 -
drpy_js/85k影视.js | 1 -
drpy_js/88tvs.js | 1 -
drpy_js/88影视网.js | 1 -
drpy_js/88看球[球].js | 1 -
drpy_js/8号影院.js | 1 -
drpy_js/926tv[球].js | 1 -
drpy_js/ASMR[听].js | 1 -
drpy_js/Auete影视.js | 1 -
drpy_js/B站影视.js | 1 -
drpy_js/FreeOKLOL.js | 1 -
drpy_js/GO影视.js | 1 -
drpy_js/HBOTV[优].js | 1 -
drpy_js/HDmoli.js | 1 -
drpy_js/KTV歌厅[听].js | 1 -
drpy_js/KimiVod.js | 1 -
drpy_js/LIBHD[优].js | 33 -
drpy_js/LIBVIO[优].js | 1 -
drpy_js/M1949电影.js | 1 -
drpy_js/MuteFun[漫].js | 1 -
drpy_js/NT动漫[漫].js | 1 -
drpy_js/OmoFun[漫].js | 1 -
drpy_js/PTT[优].js | 1 -
drpy_js/PTT追剧大师.js | 1 -
drpy_js/Pornhub[密].js | 1 -
drpy_js/R18撸[密].js | 1 -
drpy_js/RjAv[密].js | 1 -
drpy_js/TVB云播.js | 1 -
drpy_js/UAA[听].js | 1 -
drpy_js/UAA[密].js | 1 -
drpy_js/[密]RjAv.js | 1 -
drpy_js/[影]追影TV.js | 1 -
drpy_js/[资]采集集合.js | 10 -
drpy_js/auete.js | 1 -
drpy_js/bilfun(自动).js | 1 -
drpy_js/cally66.js | 1 -
drpy_js/cally66影视.js | 1 -
drpy_js/eFuns.js | 1 -
drpy_js/freeok.js | 1 -
drpy_js/i275听书[听].js | 1 -
drpy_js/iFun.js | 1 -
drpy_js/iku喵[资].js | 1 -
drpy_js/libvio.js | 1 -
drpy_js/netflav.js | 1 -
drpy_js/ok资源[资].js | 1 -
drpy_js/rarbt(全)[优].js | 1 -
drpy_js/rarbt[优].js | 1 -
drpy_js/script直播[飞].js | 1 -
drpy_js/vidhub.js | 1 -
drpy_js/voflix.js | 1 -
drpy_js/xvideos涩涩[密].js | 1 -
drpy_js/ӰTV.js | 1 -
drpy_js/一个g影视.js | 1 -
drpy_js/一号影院[搜].js | 1 -
drpy_js/一支穿云箭.js | 1 -
drpy_js/一曲肝肠断.js | 1 -
drpy_js/一点视频[密].js | 1 -
drpy_js/一起看.js | 1 -
drpy_js/一起看[优].js | 1 -
drpy_js/七年影视.js | 1 -
drpy_js/七新电影网.js | 1 -
drpy_js/七色番[漫].js | 1 -
drpy_js/三集电影[自动].js | 1 -
drpy_js/世纪DJ音乐网[听].js | 1 -
drpy_js/两个BT.js | 1 -
drpy_js/丫丫电子书[书].js | 1 -
drpy_js/中华听书网[听].js | 1 -
drpy_js/乐草TV[密].js | 1 -
drpy_js/九妖仓库[密].js | 1 -
drpy_js/九牛电影.js | 1 -
drpy_js/云电影网.js | 1 -
drpy_js/云盘资源网[盘].js | 1 -
drpy_js/人人影视.js | 1 -
drpy_js/优酷[官].js | 1 -
drpy_js/低端.js | 1 -
drpy_js/你好帅影院.js | 1 -
drpy_js/侠客影视.js | 1 -
drpy_js/兄弟影视[优].js | 1 -
drpy_js/兔小贝[儿].js | 1 -
drpy_js/全能影视.js | 1 -
drpy_js/六月听书[听].js | 1 -
drpy_js/农民影视[优].js | 1 -
drpy_js/农民影视gz.js | 1 -
drpy_js/冠建影视.js | 1 -
drpy_js/分享短视频.js | 1 -
drpy_js/刷剧网.js | 1 -
drpy_js/刺猬影视.js | 1 -
drpy_js/剧哥哥.js | 1 -
drpy_js/剧圈圈.js | 1 -
drpy_js/剧圈圈[自动].js | 1 -
drpy_js/剧巴巴.js | 1 -
drpy_js/剧狗狗.js | 38 -
drpy_js/剧迷.js | 1 -
drpy_js/剧集TV.js | 1 -
drpy_js/动漫巴士[漫].js | 1 -
drpy_js/动漫网[漫].js | 1 -
drpy_js/努努影院1.js | 1 -
drpy_js/包子漫画[画].js | 1 -
drpy_js/北川影视.js | 1 -
drpy_js/千百视频[密].js | 1 -
drpy_js/千神影视.js | 1 -
drpy_js/南瓜影视.js | 1 -
drpy_js/南瓜影视[优].js | 1 -
drpy_js/博看听书[听].js | 1 -
drpy_js/卧龙资源[资].js | 1 -
drpy_js/即看影视.js | 1 -
drpy_js/厂长资源(可搜索).js | 73 -
drpy_js/厂长资源.js | 1 -
drpy_js/口袋追剧.js | 1 -
drpy_js/古风漫画[画].js | 1 -
drpy_js/可可影视[优].js | 1 -
drpy_js/可达影视.js | 1 -
drpy_js/咕咕番[漫].js | 1 -
drpy_js/咖啡影视.js | 1 -
drpy_js/哈皮影视[优].js | 1 -
drpy_js/哔哩影视[官].js | 1 -
drpy_js/哔哩直播[官].js | 1 -
drpy_js/哔嘀影视.js | 1 -
drpy_js/哔嘀影视[优].js | 1 -
drpy_js/啊哈DJ[听].js | 1 -
drpy_js/喜马拉雅[听].js | 1 -
drpy_js/嗷呜动漫.js | 1 -
drpy_js/嘀哩嘀哩.js | 1 -
drpy_js/在线之家.js | 1 -
drpy_js/地瓜视频[密].js | 1 -
drpy_js/墨点影视.js | 1 -
drpy_js/夕云影视.js | 1 -
drpy_js/多多影音.js | 1 -
drpy_js/多多追剧[优].js | 1 -
drpy_js/大中国.js | 1 -
drpy_js/大全[央].js | 1 -
drpy_js/大全央视[央].js | 1 -
drpy_js/大千视界.js | 1 -
drpy_js/大师兄影视[优].js | 1 -
drpy_js/大米动漫[漫].js | 1 -
drpy_js/大米星球.js | 1 -
drpy_js/大米星球[V2].js | 1 -
drpy_js/天启.js | 1 -
drpy_js/天天影视.js | 1 -
drpy_js/天龙影院.js | 1 -
drpy_js/央视大全[优].js | 1 -
drpy_js/央视大全[官].js | 1 -
drpy_js/央视少儿[漫].js | 1 -
drpy_js/夸克分享2[合].js | 1 -
drpy_js/夸克分享[合].js | 1 -
drpy_js/奇珍异兽[官].js | 1 -
drpy_js/奇米动漫[漫].js | 1 -
drpy_js/奈飞中文[自动].js | 1 -
drpy_js/奈飞中文影视.js | 1 -
drpy_js/奶狗影视[慢].js | 1 -
drpy_js/好趣网[播].js | 1 -
drpy_js/如意影视.js | 1 -
drpy_js/妖狐影视[自动].js | 1 -
drpy_js/子子影视.js | 1 -
drpy_js/孜然影视.js | 1 -
drpy_js/宇航影视.js | 1 -
drpy_js/宝片视频.js | 1 -
drpy_js/家庭影视.js | 1 -
drpy_js/小女18[密].js | 1 -
drpy_js/小宝影院.js | 1 -
drpy_js/小猫电影院.js | 1 -
drpy_js/小白菜电影.js | 1 -
drpy_js/小站盘[搜].js | 1 -
drpy_js/小马影视[V2].js | 1 -
drpy_js/小鱼影视.js | 1 -
drpy_js/少儿央视[央].js | 1 -
drpy_js/干饭影视.js | 1 -
drpy_js/广播迷FM[听].js | 1 -
drpy_js/影剧星球.js | 1 -
drpy_js/影剧星球[自动].js | 1 -
drpy_js/影探[V2].js | 276 -
drpy_js/影搜[搜].js | 1 -
drpy_js/影梦影视.js | 1 -
drpy_js/影渣渣影视.js | 1 -
drpy_js/影视大全.js | 1 -
drpy_js/影视工厂.js | 1 -
drpy_js/影视工场.js | 1 -
drpy_js/影视控.js | 1 -
drpy_js/影视看吧.js | 1 -
drpy_js/往往影视[慢].js | 1 -
drpy_js/忍者影视.js | 1 -
drpy_js/快看影视.js | 1 -
drpy_js/思古影视[V2].js | 1 -
drpy_js/怡萱动漫[漫].js | 1 -
drpy_js/恒大影视[密].js | 1 -
drpy_js/悠悠影视.js | 1 -
drpy_js/想看影院.js | 1 -
drpy_js/我播.js | 1 -
drpy_js/我爱跟剧.js | 1 -
drpy_js/我的哔哩[官].js | 1 -
drpy_js/我看书斋[书].js | 1 -
drpy_js/掌心世界.js | 1 -
drpy_js/播客[听].js | 1 -
drpy_js/文才2[资].js | 1 -
drpy_js/文才[资].js | 1 -
drpy_js/斗鱼直播[官].js | 1 -
drpy_js/新茶杯狐.js | 1 -
drpy_js/新视觉.js | 1 -
drpy_js/新闻央视[央].js | 1 -
drpy_js/旋风视频.js | 1 -
drpy_js/无忧影视.js | 1 -
drpy_js/时光影院.js | 1 -
drpy_js/旺旺影视.js | 1 -
drpy_js/易搜[搜].js | 1 -
drpy_js/易点看影院[自动].js | 1 -
drpy_js/易看影视.js | 1 -
drpy_js/星云影视.js | 1 -
drpy_js/星空影院.js | 1 -
drpy_js/星芽短剧[优].js | 1 -
drpy_js/星辰CT.js | 1 -
drpy_js/星辰[优].js | 1 -
drpy_js/星辰影视.js | 1 -
drpy_js/映播TV.js | 1 -
drpy_js/暖光影视.js | 1 -
drpy_js/暴风资源[资].js | 1 -
drpy_js/最新4K.js | 1 -
drpy_js/有声听书网[听].js | 1 -
drpy_js/有声小说吧[听].js | 1 -
drpy_js/有声绘本网[听].js | 1 -
drpy_js/木偶哥哥[盘].js | 1 -
drpy_js/木瓜影视.js | 1 -
drpy_js/朴樱影视.js | 1 -
drpy_js/来看点播[自动].js | 1 -
drpy_js/极客资源[资].js | 1 -
drpy_js/极点影视.js | 1 -
drpy_js/极速资源[资].js | 1 -
drpy_js/柠檬影视[V2].js | 1 -
drpy_js/桃子影视.js | 357 -
drpy_js/桃子影视[优].js | 1 -
drpy_js/榜一短剧.js | 1 -
drpy_js/樱花动漫[漫].js | 1 -
drpy_js/橘子柚[盘].js | 1 -
drpy_js/橙汁影视.js | 1 -
drpy_js/次元城动漫[漫].js | 1 -
drpy_js/歪片星球[资].js | 1 -
drpy_js/毒蛇电影[优].js | 1 -
drpy_js/河狸影视[V2].js | 1 -
drpy_js/泡泡影院.js | 1 -
drpy_js/泥巴影院.js | 1 -
drpy_js/泥视频.js | 1 -
drpy_js/泥视频[资].js | 1 -
drpy_js/海外剧汇.js | 1 -
drpy_js/海洋听书[听].js | 1 -
drpy_js/清风DJ[听].js | 1 -
drpy_js/游子视频.js | 1 -
drpy_js/漫小肆[画].js | 1 -
drpy_js/漫画走廊[画密飞].js | 1 -
drpy_js/火狐影视.js | 1 -
drpy_js/烧火影视[优].js | 1 -
drpy_js/热播之家.js | 1 -
drpy_js/热片网.js | 1 -
drpy_js/焱淼4kapp[优].js | 1 -
drpy_js/熊猫TV.js | 1 -
drpy_js/爱上你听书网[听].js | 1 -
drpy_js/爱优影视[自动].js | 1 -
drpy_js/爱你短剧.js | 1 -
drpy_js/爱弹幕[漫].js | 1 -
drpy_js/爱爱影院[密].js | 1 -
drpy_js/爱看hd.js | 1 -
drpy_js/爱看农民2[优].js | 1 -
drpy_js/爱看农民[优].js | 1 -
drpy_js/爱看影院.js | 1 -
drpy_js/爱看机器人[虫].js | 1 -
drpy_js/爱看短剧[盘].js | 1 -
drpy_js/爱车MV[听].js | 1 -
drpy_js/爱迪影视.js | 1 -
drpy_js/片多多[优].js | 1 -
drpy_js/牌牌影院.js | 1 -
drpy_js/狗狗盘[搜].js | 1 -
drpy_js/猫视界.js | 1 -
drpy_js/玩偶哥哥[盘].js | 1 -
drpy_js/瓜子视频.js | 1 -
drpy_js/电影先生.js | 1 -
drpy_js/电影兔.js | 1 -
drpy_js/电影天堂.js | 1 -
drpy_js/电影狗.js | 1 -
drpy_js/电影猎手[自动].js | 1 -
drpy_js/畅梦影视[优].js | 1 -
drpy_js/番号资源[密].js | 1 -
drpy_js/番茄小说[书].js | 1 -
drpy_js/白嫖者联盟.js | 1 -
drpy_js/百忙无果[官].js | 1 -
drpy_js/皮皮影视.js | 1 -
drpy_js/盘搜.js | 1 -
drpy_js/直播转点播[合].js | 1 -
drpy_js/相声随身听[听].js | 1 -
drpy_js/看57.js | 1 -
drpy_js/看了么.js | 1 -
drpy_js/看呀看.js | 1 -
drpy_js/看客影院.js | 1 -
drpy_js/看客视频.js | 1 -
drpy_js/看戏网.js | 1 -
drpy_js/看看影视.js | 1 -
drpy_js/真不卡.js | 24 -
drpy_js/短剧TV网.js | 1 -
drpy_js/短剧在线.js | 1 -
drpy_js/短剧天堂.js | 1 -
drpy_js/矮人影视.js | 1 -
drpy_js/石榴影院.js | 47 -
drpy_js/磁力熊[磁].js | 1 -
drpy_js/神仙影视.js | 1 -
drpy_js/神马影院[自动].js | 1 -
drpy_js/神马电影[搜].js | 1 -
drpy_js/种子音乐[听].js | 1 -
drpy_js/童趣[儿].js | 1 -
drpy_js/笔趣阁13[书].js | 1 -
drpy_js/笔趣阁[书].js | 1 -
drpy_js/第一韩漫[画].js | 1 -
drpy_js/策驰影院(自动).js | 1 -
drpy_js/米爱影视.js | 1 -
drpy_js/素白白.js | 1 -
drpy_js/素白白[优].js | 1 -
drpy_js/索尼资源[资].js | 1 -
drpy_js/红果短剧网[自动].js | 1 -
drpy_js/经济央视[央].js | 1 -
drpy_js/维奇动漫[漫].js | 1 -
drpy_js/综合央视[央].js | 1 -
drpy_js/绿色仓库[密].js | 1 -
drpy_js/绿茶.js | 1 -
drpy_js/网飞.TV.js | 1 -
drpy_js/网飞啦[自动].js | 1 -
drpy_js/网飞猫[优].js | 1 -
drpy_js/美剧星球.js | 1 -
drpy_js/美剧窝.js | 1 -
drpy_js/美益达.js | 1 -
drpy_js/老司视频[密].js | 1 -
drpy_js/老王电影[自动].js | 1 -
drpy_js/老白故事[听].js | 1 -
drpy_js/耐看.js | 1 -
drpy_js/胖虎影视.js | 1 -
drpy_js/腾云驾雾[官].js | 1 -
drpy_js/臭蛋蛋.js | 1 -
drpy_js/至臻[盘].js | 1 -
drpy_js/色库[密].js | 1 -
drpy_js/花子动漫[漫].js | 1 -
drpy_js/茄子影视[自动].js | 1 -
drpy_js/茶杯狐.js | 1 -
drpy_js/茶语资源[资].js | 1 -
drpy_js/草莓秒播[密].js | 1 -
drpy_js/荐片[优].js | 1 -
drpy_js/菜狗[官].js | 1 -
drpy_js/萌番[漫].js | 1 -
drpy_js/蓝光影视.js | 1 -
drpy_js/蓝莓短剧.js | 111 -
drpy_js/虎牙直播[官].js | 1 -
drpy_js/虾酱追剧.js | 1 -
drpy_js/蚂蚁影视.js | 1 -
drpy_js/蛋蛋剧.js | 1 -
drpy_js/蛋蛋赞.js | 1 -
drpy_js/蛙视频.js | 1 -
drpy_js/蜡笔[盘].js | 1 -
drpy_js/蜥蜴影视[优].js | 1 -
drpy_js/被窝电影.js | 1 -
drpy_js/西屋影视.js | 1 -
drpy_js/西瓜影院.js | 1 -
drpy_js/豆瓣[官].js | 1 -
drpy_js/豆角网.js | 1 -
drpy_js/贝乐虎[儿].js | 1 -
drpy_js/路漫漫[漫].js | 1 -
drpy_js/路视频[密].js | 1 -
drpy_js/达达猪.js | 1 -
drpy_js/达达龟.js | 1 -
drpy_js/追剧兔.js | 1 -
drpy_js/追剧兔子[V2].js | 304 -
drpy_js/追影TV.js | 1 -
drpy_js/速播小屋.js | 1 -
drpy_js/速讯影院.js | 1 -
drpy_js/那兔视频.js | 1 -
drpy_js/酷云77.js | 139 -
drpy_js/酷云影视.js | 1 -
drpy_js/酷客影视.js | 1 -
drpy_js/酷我听书[听].js | 1 -
drpy_js/采集之王[合].js | 1 -
drpy_js/量子影视[资].js | 1 -
drpy_js/量子资源[资].js | 1 -
drpy_js/金牌影院.js | 1 -
drpy_js/金金虫.js | 1 -
drpy_js/金鹰资源[资].js | 1 -
drpy_js/银河影视[V2].js | 1 -
drpy_js/闪雷电.js | 1 -
drpy_js/阿里土豆[盘].js | 1 -
drpy_js/青龙.js | 1 -
drpy_js/非凡资源[资].js | 1 -
drpy_js/顶点小说2[书].js | 1 -
drpy_js/顶点小说[书].js | 1 -
drpy_js/飘花影院.js | 1 -
drpy_js/飞刀资源[资].js | 1 -
drpy_js/飞流视频.js | 1 -
drpy_js/飞狗影院[密].js | 1 -
drpy_js/飞翔鸟[书].js | 1 -
drpy_js/飞鱼影视.js | 1 -
drpy_js/饭团影视.js | 1 -
drpy_js/饺子影院.js | 1 -
drpy_js/首发网.js | 1 -
drpy_js/驴番[漫].js | 1 -
drpy_js/魔方影视.js | 1 -
drpy_js/魔都资源[资].js | 1 -
drpy_js/鸭奈飞影视.js | 1 -
drpy_js/鸭飞影视[V2].js | 1 -
drpy_js/麻雀视频[优].js | 1 -
drpy_js/黑料不打烊-z.js | 1 -
drpy_js/黑料不打烊[密].js | 1 -
drpy_js/黑木耳资源[资].js | 1 -
drpy_js/黑狐影院.js | 1 -
drpy_js/갖였hd.js | 1 -
drpy_js/갖였똬양[턍].js | 1 -
drpy_js/똬양瞳窟.js | 1 -
drpy_js/양것것.js | 1 -
drpy_js/양섞TV.js | 1 -
drpy_js/양촬.js | 1 -
drpy_js/양홀홀.js | 1 -
drpy_js/유궝[턍].js | 1 -
drpy_js/있꿇TV[쵱].js | 1 -
drpy_js/🎒📌央视大全[🎒] .js | 1 -
drpy_js/🤡星芽短剧[🤡].js | 1 -
drpy_libs/cheerio.min.js | 1 -
drpy_libs/crypto-js.js | 6191 ------------
drpy_libs/drpy2.js | 3579 -------
drpy_libs/drpy2.min.js | 73 -
drpy_libs/gbk.js | 68 -
drpy_libs/jsencrypt.js | 265 -
drpy_libs/json5.js | 1737 ----
drpy_libs/node-rsa.js | 2 -
drpy_libs/pako.min.js | 2 -
jar/danmu.jar | Bin 868220 -> 0 bytes
jar/fine.jar | Bin 876814 -> 0 bytes
json/98影视.json | 21 -
json/alist.json | 71 +-
json/bilibili.json | 73 -
json/douban.json | 1176 ---
json/lf_live.json | 25 -
json/peizhi.json | 12 -
json/shiliu.json | 366 -
json/webdav.json | 16 +
json/wogg.json | 912 --
json/youtube.json | 1251 ---
json/侠客.json | 19 -
json/哔哩合集.json | 5310 +++++++++++
json/奇优影院.json | 110 -
json/奇侠.json | 12 -
json/木耳.json | 36 -
json/电影港.json | 131 +
json/白嫖.json | 41 -
{lib => json}/短剧屋.json | 0
json/网盘集合.json | 4654 ---------
json/茶杯.json | 23 -
lib/Bili.json | 1596 ----
lib/Blixq.json | 458 -
lib/Blixs.json | 272 -
lib/JRKAN直播.js | 33 -
lib/alist.json | 56 -
lib/alist.min.js | 1 -
lib/cheerio.min.js | 1 -
lib/crypto-hiker.js | 6140 ------------
lib/crypto-js.js | 6191 ------------
lib/douban.js | 36 -
lib/douban.json | 1176 ---
lib/drpy.js | 2637 ------
lib/drpy.min.js | 1 -
lib/drpy2.min.js | 76 -
lib/huya2.js | 1 -
lib/jianpian.json | 502 -
lib/jinja.js | 577 --
lib/jinja.min.js | 1 -
lib/jsencrypt.js | 265 -
lib/json5.js | 1737 ----
lib/lf_ikanbot_min.js | 1 -
lib/lf_live10_min-output.js | 1 -
lib/lf_live_min.js | 1 -
lib/lf_p2p2_min.js | 1 -
lib/lf_pushagent_min.js | 1 -
lib/lf_search3_min.js | 1 -
lib/live.txt | 1250 ---
lib/live2cms.js | 534 --
lib/mod.js | 138 -
lib/node-rsa.js | 2 -
lib/pako.min.js | 2 -
lib/peizhi.json | 14 -
lib/sortName.js | 178 -
lib/wogg.json | 912 --
lib/youtube.json | 70 -
lib/初中课堂.json | 3634 -------
lib/小学课堂.json | 1022 --
lib/少儿教育.json | 454 -
lib/斗鱼直播.js | 5 -
lib/有声小说吧.js | 37 -
lib/模板.js | 412 -
lib/樱花动漫.json | 81 -
lib/网盘集合.json | 4561 ---------
lib/高中课堂.json | 3686 --------
libs/555.js | 305 -
libs/changmeng.js | 189 -
libs/cheerio.min.js | 2 -
libs/crypto-js.js | 6191 ------------
libs/czspp.js | 72 -
libs/ddys.js | 136 -
libs/douban.js | 36 -
libs/doubanbf.js | 1 -
libs/doubano.js | 37 -
libs/drT.js | 189 -
libs/drpy2.js | 1 -
libs/drpy2.min.js | 1 -
libs/gbk.js | 68 -
libs/hdmoli.js | 25 -
libs/jrslive.js | 227 -
libs/jsencrypt.js | 265 -
libs/libmain.js | 1 -
libs/libvio.js | 49 -
libs/mod.js | 138 -
libs/nangua.js | 189 -
libs/saohuo.js | 81 -
libs/sortName.js | 178 -
libs/util.js | 1 -
libs/zxzj.js | 64 -
libs/多多.js | 21 -
libs/白白.js | 72 -
libs/荐片.js | 150 -
libs/豆瓣[官].js | 1 -
peizhi.json | 9 -
readme-tg.txt | 15 -
readme.txt | 213 -
spider.jar | Bin 0 -> 2019727 bytes
wex.jar | Bin 0 -> 450836 bytes
wogg.json | 892 --
网盘集合.json | 180 -
616 files changed, 64035 insertions(+), 73079 deletions(-)
create mode 100644 ITV.txt
create mode 100644 JS/56动漫.js
rename drpy_js/APPV2[模板].js => JS/APPV2.js (100%)
create mode 100644 JS/Anime1.js
create mode 100644 JS/NT动漫.js
create mode 100644 JS/NyaFun.js
create mode 100644 JS/alishare.txt
create mode 100644 JS/cheerio.min.js
rename {drpy_libs => JS}/crypto-hiker.js (87%)
create mode 100644 JS/crypto-js.js
rename {lib => JS}/drpy2.js (92%)
create mode 100644 JS/drpy2.min.js
rename {lib => JS}/gbk.js (97%)
rename {drpy_libs => JS}/jinja.js (81%)
create mode 100644 JS/jinja.min.js
create mode 100644 JS/jsencrypt.js
create mode 100644 JS/json5.js
create mode 100644 JS/jsonpathplus.min.js
create mode 100644 JS/node-rsa.js
create mode 100644 JS/pako.min.js
create mode 100644 JS/quark.min.js
rename {libs => JS}/uri.min.js (100%)
create mode 100644 JS/三六零弹幕.js
create mode 100644 JS/优酷弹幕.js
create mode 100644 JS/剧圈圈.js
create mode 100644 JS/动漫岛.js
create mode 100644 JS/动漫巴士.js
create mode 100644 JS/动画片大全.js
create mode 100644 JS/去看吧.js
create mode 100644 JS/奇米动漫.js
create mode 100644 JS/好看动漫.js
create mode 100644 JS/异世界.js
create mode 100644 JS/思古影视.js
create mode 100644 JS/怡萱动漫.js
create mode 100644 JS/机器人.js
rename {drpy_libs => JS}/模板.js (87%)
create mode 100644 JS/樱花动漫.js
create mode 100644 JS/爱奇艺弹幕.js
create mode 100644 JS/爱弹幕.js
create mode 100644 JS/瓜子影视.js
create mode 100644 JS/看了么.js
create mode 100644 JS/短剧合集.js
create mode 100644 JS/碟调影视.js
create mode 100644 JS/磁力熊.js
create mode 100644 JS/米兔弹幕.js
create mode 100644 JS/素白白.js
create mode 100644 JS/腾讯弹幕.js
create mode 100644 JS/芒果弹幕.js
create mode 100644 JS/花子动漫.js
create mode 100644 JS/茶杯狐.js
create mode 100644 JS/路漫漫.js
create mode 100644 JS/达达龟.js
create mode 100644 JS/追剧弹幕.js
create mode 100644 JS/追剧迷.js
create mode 100644 JS/采集之王.js
create mode 100644 JS/魔力高清.js
delete mode 100644 README.md
create mode 100644 XBPQ/修罗影视.json
create mode 100644 XBPQ/农民影视.json
create mode 100644 XBPQ/哆啦新番社.json
create mode 100644 XBPQ/樱花影视.json
create mode 100644 XBPQ/永乐影视.json
create mode 100644 XBPQ/海纳影视.json
create mode 100644 XBPQ/爱我短剧.json
create mode 100644 XBPQ/狐狸君.json
create mode 100644 XBPQ/短剧网.json
create mode 100644 XBPQ/秀儿影视.json
create mode 100644 XBPQ/雪糕影视.json
create mode 100644 XBPQ/面包影视.json
delete mode 100644 custom_spider.jar
delete mode 100644 drpy_js/01看球[球].js
delete mode 100644 drpy_js/0855影视.js
delete mode 100644 drpy_js/111tv[自动].js
delete mode 100644 drpy_js/222听书[听].js
delete mode 100644 drpy_js/29片库[密].js
delete mode 100644 drpy_js/310直播[球].js
delete mode 100644 drpy_js/348电影网.js
delete mode 100644 drpy_js/360吧[球].js
delete mode 100644 drpy_js/360影视[官].js
delete mode 100644 drpy_js/36直播[密].js
delete mode 100644 drpy_js/4K-AV.js
delete mode 100644 drpy_js/4khdr.js
delete mode 100644 drpy_js/4k剧院.js
delete mode 100644 drpy_js/4k양牘.js
delete mode 100644 drpy_js/539影视.js
delete mode 100644 drpy_js/555影视[飞].js
delete mode 100644 drpy_js/58动漫[漫].js
delete mode 100644 drpy_js/6V新版[磁].js
delete mode 100644 drpy_js/777影视.js
delete mode 100644 drpy_js/7喜影院.js
delete mode 100644 drpy_js/7猫小说[书].js
delete mode 100644 drpy_js/85k影视.js
delete mode 100644 drpy_js/88tvs.js
delete mode 100644 drpy_js/88影视网.js
delete mode 100644 drpy_js/88看球[球].js
delete mode 100644 drpy_js/8号影院.js
delete mode 100644 drpy_js/926tv[球].js
delete mode 100644 drpy_js/ASMR[听].js
delete mode 100644 drpy_js/Auete影视.js
delete mode 100644 drpy_js/B站影视.js
delete mode 100644 drpy_js/FreeOKLOL.js
delete mode 100644 drpy_js/GO影视.js
delete mode 100644 drpy_js/HBOTV[优].js
delete mode 100644 drpy_js/HDmoli.js
delete mode 100644 drpy_js/KTV歌厅[听].js
delete mode 100644 drpy_js/KimiVod.js
delete mode 100644 drpy_js/LIBHD[优].js
delete mode 100644 drpy_js/LIBVIO[优].js
delete mode 100644 drpy_js/M1949电影.js
delete mode 100644 drpy_js/MuteFun[漫].js
delete mode 100644 drpy_js/NT动漫[漫].js
delete mode 100644 drpy_js/OmoFun[漫].js
delete mode 100644 drpy_js/PTT[优].js
delete mode 100644 drpy_js/PTT追剧大师.js
delete mode 100644 drpy_js/Pornhub[密].js
delete mode 100644 drpy_js/R18撸[密].js
delete mode 100644 drpy_js/RjAv[密].js
delete mode 100644 drpy_js/TVB云播.js
delete mode 100644 drpy_js/UAA[听].js
delete mode 100644 drpy_js/UAA[密].js
delete mode 100644 drpy_js/[密]RjAv.js
delete mode 100644 drpy_js/[影]追影TV.js
delete mode 100644 drpy_js/[资]采集集合.js
delete mode 100644 drpy_js/auete.js
delete mode 100644 drpy_js/bilfun(自动).js
delete mode 100644 drpy_js/cally66.js
delete mode 100644 drpy_js/cally66影视.js
delete mode 100644 drpy_js/eFuns.js
delete mode 100644 drpy_js/freeok.js
delete mode 100644 drpy_js/i275听书[听].js
delete mode 100644 drpy_js/iFun.js
delete mode 100644 drpy_js/iku喵[资].js
delete mode 100644 drpy_js/libvio.js
delete mode 100644 drpy_js/netflav.js
delete mode 100644 drpy_js/ok资源[资].js
delete mode 100644 drpy_js/rarbt(全)[优].js
delete mode 100644 drpy_js/rarbt[优].js
delete mode 100644 drpy_js/script直播[飞].js
delete mode 100644 drpy_js/vidhub.js
delete mode 100644 drpy_js/voflix.js
delete mode 100644 drpy_js/xvideos涩涩[密].js
delete mode 100644 drpy_js/ӰTV.js
delete mode 100644 drpy_js/一个g影视.js
delete mode 100644 drpy_js/一号影院[搜].js
delete mode 100644 drpy_js/一支穿云箭.js
delete mode 100644 drpy_js/一曲肝肠断.js
delete mode 100644 drpy_js/一点视频[密].js
delete mode 100644 drpy_js/一起看.js
delete mode 100644 drpy_js/一起看[优].js
delete mode 100644 drpy_js/七年影视.js
delete mode 100644 drpy_js/七新电影网.js
delete mode 100644 drpy_js/七色番[漫].js
delete mode 100644 drpy_js/三集电影[自动].js
delete mode 100644 drpy_js/世纪DJ音乐网[听].js
delete mode 100644 drpy_js/两个BT.js
delete mode 100644 drpy_js/丫丫电子书[书].js
delete mode 100644 drpy_js/中华听书网[听].js
delete mode 100644 drpy_js/乐草TV[密].js
delete mode 100644 drpy_js/九妖仓库[密].js
delete mode 100644 drpy_js/九牛电影.js
delete mode 100644 drpy_js/云电影网.js
delete mode 100644 drpy_js/云盘资源网[盘].js
delete mode 100644 drpy_js/人人影视.js
delete mode 100644 drpy_js/优酷[官].js
delete mode 100644 drpy_js/低端.js
delete mode 100644 drpy_js/你好帅影院.js
delete mode 100644 drpy_js/侠客影视.js
delete mode 100644 drpy_js/兄弟影视[优].js
delete mode 100644 drpy_js/兔小贝[儿].js
delete mode 100644 drpy_js/全能影视.js
delete mode 100644 drpy_js/六月听书[听].js
delete mode 100644 drpy_js/农民影视[优].js
delete mode 100644 drpy_js/农民影视gz.js
delete mode 100644 drpy_js/冠建影视.js
delete mode 100644 drpy_js/分享短视频.js
delete mode 100644 drpy_js/刷剧网.js
delete mode 100644 drpy_js/刺猬影视.js
delete mode 100644 drpy_js/剧哥哥.js
delete mode 100644 drpy_js/剧圈圈.js
delete mode 100644 drpy_js/剧圈圈[自动].js
delete mode 100644 drpy_js/剧巴巴.js
delete mode 100644 drpy_js/剧狗狗.js
delete mode 100644 drpy_js/剧迷.js
delete mode 100644 drpy_js/剧集TV.js
delete mode 100644 drpy_js/动漫巴士[漫].js
delete mode 100644 drpy_js/动漫网[漫].js
delete mode 100644 drpy_js/努努影院1.js
delete mode 100644 drpy_js/包子漫画[画].js
delete mode 100644 drpy_js/北川影视.js
delete mode 100644 drpy_js/千百视频[密].js
delete mode 100644 drpy_js/千神影视.js
delete mode 100644 drpy_js/南瓜影视.js
delete mode 100644 drpy_js/南瓜影视[优].js
delete mode 100644 drpy_js/博看听书[听].js
delete mode 100644 drpy_js/卧龙资源[资].js
delete mode 100644 drpy_js/即看影视.js
delete mode 100644 drpy_js/厂长资源(可搜索).js
delete mode 100644 drpy_js/厂长资源.js
delete mode 100644 drpy_js/口袋追剧.js
delete mode 100644 drpy_js/古风漫画[画].js
delete mode 100644 drpy_js/可可影视[优].js
delete mode 100644 drpy_js/可达影视.js
delete mode 100644 drpy_js/咕咕番[漫].js
delete mode 100644 drpy_js/咖啡影视.js
delete mode 100644 drpy_js/哈皮影视[优].js
delete mode 100644 drpy_js/哔哩影视[官].js
delete mode 100644 drpy_js/哔哩直播[官].js
delete mode 100644 drpy_js/哔嘀影视.js
delete mode 100644 drpy_js/哔嘀影视[优].js
delete mode 100644 drpy_js/啊哈DJ[听].js
delete mode 100644 drpy_js/喜马拉雅[听].js
delete mode 100644 drpy_js/嗷呜动漫.js
delete mode 100644 drpy_js/嘀哩嘀哩.js
delete mode 100644 drpy_js/在线之家.js
delete mode 100644 drpy_js/地瓜视频[密].js
delete mode 100644 drpy_js/墨点影视.js
delete mode 100644 drpy_js/夕云影视.js
delete mode 100644 drpy_js/多多影音.js
delete mode 100644 drpy_js/多多追剧[优].js
delete mode 100644 drpy_js/大中国.js
delete mode 100644 drpy_js/大全[央].js
delete mode 100644 drpy_js/大全央视[央].js
delete mode 100644 drpy_js/大千视界.js
delete mode 100644 drpy_js/大师兄影视[优].js
delete mode 100644 drpy_js/大米动漫[漫].js
delete mode 100644 drpy_js/大米星球.js
delete mode 100644 drpy_js/大米星球[V2].js
delete mode 100644 drpy_js/天启.js
delete mode 100644 drpy_js/天天影视.js
delete mode 100644 drpy_js/天龙影院.js
delete mode 100644 drpy_js/央视大全[优].js
delete mode 100644 drpy_js/央视大全[官].js
delete mode 100644 drpy_js/央视少儿[漫].js
delete mode 100644 drpy_js/夸克分享2[合].js
delete mode 100644 drpy_js/夸克分享[合].js
delete mode 100644 drpy_js/奇珍异兽[官].js
delete mode 100644 drpy_js/奇米动漫[漫].js
delete mode 100644 drpy_js/奈飞中文[自动].js
delete mode 100644 drpy_js/奈飞中文影视.js
delete mode 100644 drpy_js/奶狗影视[慢].js
delete mode 100644 drpy_js/好趣网[播].js
delete mode 100644 drpy_js/如意影视.js
delete mode 100644 drpy_js/妖狐影视[自动].js
delete mode 100644 drpy_js/子子影视.js
delete mode 100644 drpy_js/孜然影视.js
delete mode 100644 drpy_js/宇航影视.js
delete mode 100644 drpy_js/宝片视频.js
delete mode 100644 drpy_js/家庭影视.js
delete mode 100644 drpy_js/小女18[密].js
delete mode 100644 drpy_js/小宝影院.js
delete mode 100644 drpy_js/小猫电影院.js
delete mode 100644 drpy_js/小白菜电影.js
delete mode 100644 drpy_js/小站盘[搜].js
delete mode 100644 drpy_js/小马影视[V2].js
delete mode 100644 drpy_js/小鱼影视.js
delete mode 100644 drpy_js/少儿央视[央].js
delete mode 100644 drpy_js/干饭影视.js
delete mode 100644 drpy_js/广播迷FM[听].js
delete mode 100644 drpy_js/影剧星球.js
delete mode 100644 drpy_js/影剧星球[自动].js
delete mode 100644 drpy_js/影探[V2].js
delete mode 100644 drpy_js/影搜[搜].js
delete mode 100644 drpy_js/影梦影视.js
delete mode 100644 drpy_js/影渣渣影视.js
delete mode 100644 drpy_js/影视大全.js
delete mode 100644 drpy_js/影视工厂.js
delete mode 100644 drpy_js/影视工场.js
delete mode 100644 drpy_js/影视控.js
delete mode 100644 drpy_js/影视看吧.js
delete mode 100644 drpy_js/往往影视[慢].js
delete mode 100644 drpy_js/忍者影视.js
delete mode 100644 drpy_js/快看影视.js
delete mode 100644 drpy_js/思古影视[V2].js
delete mode 100644 drpy_js/怡萱动漫[漫].js
delete mode 100644 drpy_js/恒大影视[密].js
delete mode 100644 drpy_js/悠悠影视.js
delete mode 100644 drpy_js/想看影院.js
delete mode 100644 drpy_js/我播.js
delete mode 100644 drpy_js/我爱跟剧.js
delete mode 100644 drpy_js/我的哔哩[官].js
delete mode 100644 drpy_js/我看书斋[书].js
delete mode 100644 drpy_js/掌心世界.js
delete mode 100644 drpy_js/播客[听].js
delete mode 100644 drpy_js/文才2[资].js
delete mode 100644 drpy_js/文才[资].js
delete mode 100644 drpy_js/斗鱼直播[官].js
delete mode 100644 drpy_js/新茶杯狐.js
delete mode 100644 drpy_js/新视觉.js
delete mode 100644 drpy_js/新闻央视[央].js
delete mode 100644 drpy_js/旋风视频.js
delete mode 100644 drpy_js/无忧影视.js
delete mode 100644 drpy_js/时光影院.js
delete mode 100644 drpy_js/旺旺影视.js
delete mode 100644 drpy_js/易搜[搜].js
delete mode 100644 drpy_js/易点看影院[自动].js
delete mode 100644 drpy_js/易看影视.js
delete mode 100644 drpy_js/星云影视.js
delete mode 100644 drpy_js/星空影院.js
delete mode 100644 drpy_js/星芽短剧[优].js
delete mode 100644 drpy_js/星辰CT.js
delete mode 100644 drpy_js/星辰[优].js
delete mode 100644 drpy_js/星辰影视.js
delete mode 100644 drpy_js/映播TV.js
delete mode 100644 drpy_js/暖光影视.js
delete mode 100644 drpy_js/暴风资源[资].js
delete mode 100644 drpy_js/最新4K.js
delete mode 100644 drpy_js/有声听书网[听].js
delete mode 100644 drpy_js/有声小说吧[听].js
delete mode 100644 drpy_js/有声绘本网[听].js
delete mode 100644 drpy_js/木偶哥哥[盘].js
delete mode 100644 drpy_js/木瓜影视.js
delete mode 100644 drpy_js/朴樱影视.js
delete mode 100644 drpy_js/来看点播[自动].js
delete mode 100644 drpy_js/极客资源[资].js
delete mode 100644 drpy_js/极点影视.js
delete mode 100644 drpy_js/极速资源[资].js
delete mode 100644 drpy_js/柠檬影视[V2].js
delete mode 100644 drpy_js/桃子影视.js
delete mode 100644 drpy_js/桃子影视[优].js
delete mode 100644 drpy_js/榜一短剧.js
delete mode 100644 drpy_js/樱花动漫[漫].js
delete mode 100644 drpy_js/橘子柚[盘].js
delete mode 100644 drpy_js/橙汁影视.js
delete mode 100644 drpy_js/次元城动漫[漫].js
delete mode 100644 drpy_js/歪片星球[资].js
delete mode 100644 drpy_js/毒蛇电影[优].js
delete mode 100644 drpy_js/河狸影视[V2].js
delete mode 100644 drpy_js/泡泡影院.js
delete mode 100644 drpy_js/泥巴影院.js
delete mode 100644 drpy_js/泥视频.js
delete mode 100644 drpy_js/泥视频[资].js
delete mode 100644 drpy_js/海外剧汇.js
delete mode 100644 drpy_js/海洋听书[听].js
delete mode 100644 drpy_js/清风DJ[听].js
delete mode 100644 drpy_js/游子视频.js
delete mode 100644 drpy_js/漫小肆[画].js
delete mode 100644 drpy_js/漫画走廊[画密飞].js
delete mode 100644 drpy_js/火狐影视.js
delete mode 100644 drpy_js/烧火影视[优].js
delete mode 100644 drpy_js/热播之家.js
delete mode 100644 drpy_js/热片网.js
delete mode 100644 drpy_js/焱淼4kapp[优].js
delete mode 100644 drpy_js/熊猫TV.js
delete mode 100644 drpy_js/爱上你听书网[听].js
delete mode 100644 drpy_js/爱优影视[自动].js
delete mode 100644 drpy_js/爱你短剧.js
delete mode 100644 drpy_js/爱弹幕[漫].js
delete mode 100644 drpy_js/爱爱影院[密].js
delete mode 100644 drpy_js/爱看hd.js
delete mode 100644 drpy_js/爱看农民2[优].js
delete mode 100644 drpy_js/爱看农民[优].js
delete mode 100644 drpy_js/爱看影院.js
delete mode 100644 drpy_js/爱看机器人[虫].js
delete mode 100644 drpy_js/爱看短剧[盘].js
delete mode 100644 drpy_js/爱车MV[听].js
delete mode 100644 drpy_js/爱迪影视.js
delete mode 100644 drpy_js/片多多[优].js
delete mode 100644 drpy_js/牌牌影院.js
delete mode 100644 drpy_js/狗狗盘[搜].js
delete mode 100644 drpy_js/猫视界.js
delete mode 100644 drpy_js/玩偶哥哥[盘].js
delete mode 100644 drpy_js/瓜子视频.js
delete mode 100644 drpy_js/电影先生.js
delete mode 100644 drpy_js/电影兔.js
delete mode 100644 drpy_js/电影天堂.js
delete mode 100644 drpy_js/电影狗.js
delete mode 100644 drpy_js/电影猎手[自动].js
delete mode 100644 drpy_js/畅梦影视[优].js
delete mode 100644 drpy_js/番号资源[密].js
delete mode 100644 drpy_js/番茄小说[书].js
delete mode 100644 drpy_js/白嫖者联盟.js
delete mode 100644 drpy_js/百忙无果[官].js
delete mode 100644 drpy_js/皮皮影视.js
delete mode 100644 drpy_js/盘搜.js
delete mode 100644 drpy_js/直播转点播[合].js
delete mode 100644 drpy_js/相声随身听[听].js
delete mode 100644 drpy_js/看57.js
delete mode 100644 drpy_js/看了么.js
delete mode 100644 drpy_js/看呀看.js
delete mode 100644 drpy_js/看客影院.js
delete mode 100644 drpy_js/看客视频.js
delete mode 100644 drpy_js/看戏网.js
delete mode 100644 drpy_js/看看影视.js
delete mode 100644 drpy_js/真不卡.js
delete mode 100644 drpy_js/短剧TV网.js
delete mode 100644 drpy_js/短剧在线.js
delete mode 100644 drpy_js/短剧天堂.js
delete mode 100644 drpy_js/矮人影视.js
delete mode 100644 drpy_js/石榴影院.js
delete mode 100644 drpy_js/磁力熊[磁].js
delete mode 100644 drpy_js/神仙影视.js
delete mode 100644 drpy_js/神马影院[自动].js
delete mode 100644 drpy_js/神马电影[搜].js
delete mode 100644 drpy_js/种子音乐[听].js
delete mode 100644 drpy_js/童趣[儿].js
delete mode 100644 drpy_js/笔趣阁13[书].js
delete mode 100644 drpy_js/笔趣阁[书].js
delete mode 100644 drpy_js/第一韩漫[画].js
delete mode 100644 drpy_js/策驰影院(自动).js
delete mode 100644 drpy_js/米爱影视.js
delete mode 100644 drpy_js/素白白.js
delete mode 100644 drpy_js/素白白[优].js
delete mode 100644 drpy_js/索尼资源[资].js
delete mode 100644 drpy_js/红果短剧网[自动].js
delete mode 100644 drpy_js/经济央视[央].js
delete mode 100644 drpy_js/维奇动漫[漫].js
delete mode 100644 drpy_js/综合央视[央].js
delete mode 100644 drpy_js/绿色仓库[密].js
delete mode 100644 drpy_js/绿茶.js
delete mode 100644 drpy_js/网飞.TV.js
delete mode 100644 drpy_js/网飞啦[自动].js
delete mode 100644 drpy_js/网飞猫[优].js
delete mode 100644 drpy_js/美剧星球.js
delete mode 100644 drpy_js/美剧窝.js
delete mode 100644 drpy_js/美益达.js
delete mode 100644 drpy_js/老司视频[密].js
delete mode 100644 drpy_js/老王电影[自动].js
delete mode 100644 drpy_js/老白故事[听].js
delete mode 100644 drpy_js/耐看.js
delete mode 100644 drpy_js/胖虎影视.js
delete mode 100644 drpy_js/腾云驾雾[官].js
delete mode 100644 drpy_js/臭蛋蛋.js
delete mode 100644 drpy_js/至臻[盘].js
delete mode 100644 drpy_js/色库[密].js
delete mode 100644 drpy_js/花子动漫[漫].js
delete mode 100644 drpy_js/茄子影视[自动].js
delete mode 100644 drpy_js/茶杯狐.js
delete mode 100644 drpy_js/茶语资源[资].js
delete mode 100644 drpy_js/草莓秒播[密].js
delete mode 100644 drpy_js/荐片[优].js
delete mode 100644 drpy_js/菜狗[官].js
delete mode 100644 drpy_js/萌番[漫].js
delete mode 100644 drpy_js/蓝光影视.js
delete mode 100644 drpy_js/蓝莓短剧.js
delete mode 100644 drpy_js/虎牙直播[官].js
delete mode 100644 drpy_js/虾酱追剧.js
delete mode 100644 drpy_js/蚂蚁影视.js
delete mode 100644 drpy_js/蛋蛋剧.js
delete mode 100644 drpy_js/蛋蛋赞.js
delete mode 100644 drpy_js/蛙视频.js
delete mode 100644 drpy_js/蜡笔[盘].js
delete mode 100644 drpy_js/蜥蜴影视[优].js
delete mode 100644 drpy_js/被窝电影.js
delete mode 100644 drpy_js/西屋影视.js
delete mode 100644 drpy_js/西瓜影院.js
delete mode 100644 drpy_js/豆瓣[官].js
delete mode 100644 drpy_js/豆角网.js
delete mode 100644 drpy_js/贝乐虎[儿].js
delete mode 100644 drpy_js/路漫漫[漫].js
delete mode 100644 drpy_js/路视频[密].js
delete mode 100644 drpy_js/达达猪.js
delete mode 100644 drpy_js/达达龟.js
delete mode 100644 drpy_js/追剧兔.js
delete mode 100644 drpy_js/追剧兔子[V2].js
delete mode 100644 drpy_js/追影TV.js
delete mode 100644 drpy_js/速播小屋.js
delete mode 100644 drpy_js/速讯影院.js
delete mode 100644 drpy_js/那兔视频.js
delete mode 100644 drpy_js/酷云77.js
delete mode 100644 drpy_js/酷云影视.js
delete mode 100644 drpy_js/酷客影视.js
delete mode 100644 drpy_js/酷我听书[听].js
delete mode 100644 drpy_js/采集之王[合].js
delete mode 100644 drpy_js/量子影视[资].js
delete mode 100644 drpy_js/量子资源[资].js
delete mode 100644 drpy_js/金牌影院.js
delete mode 100644 drpy_js/金金虫.js
delete mode 100644 drpy_js/金鹰资源[资].js
delete mode 100644 drpy_js/银河影视[V2].js
delete mode 100644 drpy_js/闪雷电.js
delete mode 100644 drpy_js/阿里土豆[盘].js
delete mode 100644 drpy_js/青龙.js
delete mode 100644 drpy_js/非凡资源[资].js
delete mode 100644 drpy_js/顶点小说2[书].js
delete mode 100644 drpy_js/顶点小说[书].js
delete mode 100644 drpy_js/飘花影院.js
delete mode 100644 drpy_js/飞刀资源[资].js
delete mode 100644 drpy_js/飞流视频.js
delete mode 100644 drpy_js/飞狗影院[密].js
delete mode 100644 drpy_js/飞翔鸟[书].js
delete mode 100644 drpy_js/飞鱼影视.js
delete mode 100644 drpy_js/饭团影视.js
delete mode 100644 drpy_js/饺子影院.js
delete mode 100644 drpy_js/首发网.js
delete mode 100644 drpy_js/驴番[漫].js
delete mode 100644 drpy_js/魔方影视.js
delete mode 100644 drpy_js/魔都资源[资].js
delete mode 100644 drpy_js/鸭奈飞影视.js
delete mode 100644 drpy_js/鸭飞影视[V2].js
delete mode 100644 drpy_js/麻雀视频[优].js
delete mode 100644 drpy_js/黑料不打烊-z.js
delete mode 100644 drpy_js/黑料不打烊[密].js
delete mode 100644 drpy_js/黑木耳资源[资].js
delete mode 100644 drpy_js/黑狐影院.js
delete mode 100644 drpy_js/갖였hd.js
delete mode 100644 drpy_js/갖였똬양[턍].js
delete mode 100644 drpy_js/똬양瞳窟.js
delete mode 100644 drpy_js/양것것.js
delete mode 100644 drpy_js/양섞TV.js
delete mode 100644 drpy_js/양촬.js
delete mode 100644 drpy_js/양홀홀.js
delete mode 100644 drpy_js/유궝[턍].js
delete mode 100644 drpy_js/있꿇TV[쵱].js
delete mode 100644 drpy_js/🎒📌央视大全[🎒] .js
delete mode 100644 drpy_js/🤡星芽短剧[🤡].js
delete mode 100644 drpy_libs/cheerio.min.js
delete mode 100644 drpy_libs/crypto-js.js
delete mode 100644 drpy_libs/drpy2.js
delete mode 100644 drpy_libs/drpy2.min.js
delete mode 100644 drpy_libs/gbk.js
delete mode 100644 drpy_libs/jsencrypt.js
delete mode 100644 drpy_libs/json5.js
delete mode 100644 drpy_libs/node-rsa.js
delete mode 100644 drpy_libs/pako.min.js
delete mode 100644 jar/danmu.jar
delete mode 100644 jar/fine.jar
delete mode 100644 json/98影视.json
delete mode 100644 json/bilibili.json
delete mode 100644 json/douban.json
delete mode 100644 json/lf_live.json
delete mode 100644 json/peizhi.json
delete mode 100644 json/shiliu.json
create mode 100644 json/webdav.json
delete mode 100644 json/wogg.json
delete mode 100644 json/youtube.json
delete mode 100644 json/侠客.json
create mode 100644 json/哔哩合集.json
delete mode 100644 json/奇优影院.json
delete mode 100644 json/奇侠.json
delete mode 100644 json/木耳.json
create mode 100644 json/电影港.json
delete mode 100644 json/白嫖.json
rename {lib => json}/短剧屋.json (100%)
delete mode 100644 json/网盘集合.json
delete mode 100644 json/茶杯.json
delete mode 100644 lib/Bili.json
delete mode 100644 lib/Blixq.json
delete mode 100644 lib/Blixs.json
delete mode 100644 lib/JRKAN直播.js
delete mode 100644 lib/alist.json
delete mode 100644 lib/alist.min.js
delete mode 100644 lib/cheerio.min.js
delete mode 100644 lib/crypto-hiker.js
delete mode 100644 lib/crypto-js.js
delete mode 100644 lib/douban.js
delete mode 100644 lib/douban.json
delete mode 100644 lib/drpy.js
delete mode 100644 lib/drpy.min.js
delete mode 100644 lib/drpy2.min.js
delete mode 100644 lib/huya2.js
delete mode 100644 lib/jianpian.json
delete mode 100644 lib/jinja.js
delete mode 100644 lib/jinja.min.js
delete mode 100644 lib/jsencrypt.js
delete mode 100644 lib/json5.js
delete mode 100644 lib/lf_ikanbot_min.js
delete mode 100644 lib/lf_live10_min-output.js
delete mode 100644 lib/lf_live_min.js
delete mode 100644 lib/lf_p2p2_min.js
delete mode 100644 lib/lf_pushagent_min.js
delete mode 100644 lib/lf_search3_min.js
delete mode 100644 lib/live.txt
delete mode 100644 lib/live2cms.js
delete mode 100644 lib/mod.js
delete mode 100644 lib/node-rsa.js
delete mode 100644 lib/pako.min.js
delete mode 100644 lib/peizhi.json
delete mode 100644 lib/sortName.js
delete mode 100644 lib/wogg.json
delete mode 100644 lib/youtube.json
delete mode 100644 lib/初中课堂.json
delete mode 100644 lib/小学课堂.json
delete mode 100644 lib/少儿教育.json
delete mode 100644 lib/斗鱼直播.js
delete mode 100644 lib/有声小说吧.js
delete mode 100644 lib/模板.js
delete mode 100644 lib/樱花动漫.json
delete mode 100644 lib/网盘集合.json
delete mode 100644 lib/高中课堂.json
delete mode 100644 libs/555.js
delete mode 100644 libs/changmeng.js
delete mode 100644 libs/cheerio.min.js
delete mode 100644 libs/crypto-js.js
delete mode 100644 libs/czspp.js
delete mode 100644 libs/ddys.js
delete mode 100644 libs/douban.js
delete mode 100644 libs/doubanbf.js
delete mode 100644 libs/doubano.js
delete mode 100644 libs/drT.js
delete mode 100644 libs/drpy2.js
delete mode 100644 libs/drpy2.min.js
delete mode 100644 libs/gbk.js
delete mode 100644 libs/hdmoli.js
delete mode 100644 libs/jrslive.js
delete mode 100644 libs/jsencrypt.js
delete mode 100644 libs/libmain.js
delete mode 100644 libs/libvio.js
delete mode 100644 libs/mod.js
delete mode 100644 libs/nangua.js
delete mode 100644 libs/saohuo.js
delete mode 100644 libs/sortName.js
delete mode 100644 libs/util.js
delete mode 100644 libs/zxzj.js
delete mode 100644 libs/多多.js
delete mode 100644 libs/白白.js
delete mode 100644 libs/荐片.js
delete mode 100644 libs/豆瓣[官].js
delete mode 100644 peizhi.json
delete mode 100644 readme-tg.txt
delete mode 100644 readme.txt
create mode 100644 spider.jar
create mode 100644 wex.jar
delete mode 100644 wogg.json
delete mode 100644 网盘集合.json
diff --git a/ITV.txt b/ITV.txt
new file mode 100644
index 0000000..db37f46
--- /dev/null
+++ b/ITV.txt
@@ -0,0 +1,647 @@
+央视频道,#genre#
+CCTV1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000004953&livemode=1&stbId=yu&mode=1
+CCTV1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000002226&livemode=1&stbId=yu&mode=1
+CCTV1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000030810&livemode=1&stbId=yu&mode=1
+CCTV1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265001&livemode=1&stbId=yu&mode=1
+CCTV1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000052&livemode=1&stbId=yu&mode=1
+CCTV1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000029752&livemode=1&stbId=yu&mode=1
+CCTV1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000018602&livemode=1&stbId=yu&mode=1
+CCTV1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000021973&livemode=1&stbId=yu&mode=1
+CCTV1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265001&livemode=1&stbId=yu&mode=1
+CCTV2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000005000031113&livemode=1&stbId=yu&mode=1
+CCTV2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031101&livemode=1&stbId=yu&mode=1
+CCTV2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000014161&livemode=1&stbId=yu&mode=1
+CCTV2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=8878432746825677699&livemode=1&stbId=yu&mode=1
+CCTV2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000012442&livemode=1&stbId=yu&mode=1
+CCTV2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000023315&livemode=1&stbId=yu&mode=1
+CCTV2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265002&livemode=1&stbId=yu&mode=1
+CCTV2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=5353323539453949720&livemode=1&stbId=yu&mode=1
+CCTV3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000002000020548&livemode=1&stbId=yu&mode=1
+CCTV3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000008883&livemode=1&stbId=yu&mode=1
+CCTV3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265003&livemode=1&stbId=yu&mode=1
+CCTV3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000022313&livemode=1&stbId=yu&mode=1
+CCTV3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000011218&livemode=1&stbId=yu&mode=1
+CCTV3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000013682&livemode=1&stbId=yu&mode=1
+CCTV3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265003&livemode=1&stbId=yu&mode=1
+CCTV3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8378175926191110263&livemode=1&stbId=yu&mode=1
+CCTV4,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000005000030093&livemode=1&stbId=yu&mode=1
+CCTV4,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031102&livemode=1&stbId=yu&mode=1
+CCTV4,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265004&livemode=1&stbId=yu&mode=1
+CCTV4,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000031664&livemode=1&stbId=yu&mode=1
+CCTV4,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265004&livemode=1&stbId=yu&mode=1
+CCTV4,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8183388942203045169&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000008885&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000016619&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265005&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=4867251683694877276&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000016431&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=7680777599813046442&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000004794&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000003000030177&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000025222&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265005&livemode=1&stbId=yu&mode=1
+CCTV5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=reallive-cctv5&livemode=1&stbId=yu&mode=1
+CCTV6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000008886&livemode=1&stbId=yu&mode=1
+CCTV6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000018433&livemode=1&stbId=yu&mode=1
+CCTV6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265006&livemode=1&stbId=yu&mode=1
+CCTV6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000004574&livemode=1&stbId=yu&mode=1
+CCTV6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6994512760913257617&livemode=1&stbId=yu&mode=1
+CCTV6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000001737&livemode=1&stbId=yu&mode=1
+CCTV6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000016466&livemode=1&stbId=yu&mode=1
+CCTV6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265006&livemode=1&stbId=yu&mode=1
+CCTV6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6117099895556651277&livemode=1&stbId=yu&mode=1
+CCTV7,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000005000026715&livemode=1&stbId=yu&mode=1
+CCTV7,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031104&livemode=1&stbId=yu&mode=1
+CCTV7,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000009055&livemode=1&stbId=yu&mode=1
+CCTV7,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000017218&livemode=1&stbId=yu&mode=1
+CCTV7,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000024341&livemode=1&stbId=yu&mode=1
+CCTV7,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265007&livemode=1&stbId=yu&mode=1
+CCTV7,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7050628689018054317&livemode=1&stbId=yu&mode=1
+CCTV8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000008888&livemode=1&stbId=yu&mode=1
+CCTV8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000018377&livemode=1&stbId=yu&mode=1
+CCTV8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000001070&livemode=1&stbId=yu&mode=1
+CCTV8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=8967744667154419073&livemode=1&stbId=yu&mode=1
+CCTV8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000003736&livemode=1&stbId=yu&mode=1
+CCTV8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000031433&livemode=1&stbId=yu&mode=1
+CCTV8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265008&livemode=1&stbId=yu&mode=1
+CCTV8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8871488051501921127&livemode=1&stbId=yu&mode=1
+CCTV9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000018384&livemode=1&stbId=yu&mode=1
+CCTV9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288020&livemode=1&stbId=yu&mode=1
+CCTV9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000032162&livemode=1&stbId=yu&mode=1
+CCTV9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6350727550077620987&livemode=1&stbId=yu&mode=1
+CCTV9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000014583&livemode=1&stbId=yu&mode=1
+CCTV9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000028286&livemode=1&stbId=yu&mode=1
+CCTV9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265009&livemode=1&stbId=yu&mode=1
+CCTV9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6275371742726901431&livemode=1&stbId=yu&mode=1
+CCTV10,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000012827&livemode=1&stbId=yu&mode=1
+CCTV10,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000016738&livemode=1&stbId=yu&mode=1
+CCTV10,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000031506&livemode=1&stbId=yu&mode=1
+CCTV10,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000023734&livemode=1&stbId=yu&mode=1
+CCTV10,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000026367&livemode=1&stbId=yu&mode=1
+CCTV10,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265010&livemode=1&stbId=yu&mode=1
+CCTV10,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7019587760656900133&livemode=1&stbId=yu&mode=1
+CCTV11,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040011&livemode=1&stbId=yu&mode=1
+CCTV11,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031106&livemode=1&stbId=yu&mode=1
+CCTV11,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000019789&livemode=1&stbId=yu&mode=1
+CCTV11,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265011&livemode=1&stbId=yu&mode=1
+CCTV11,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6351457414282570521&livemode=1&stbId=yu&mode=1
+CCTV12,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040012&livemode=1&stbId=yu&mode=1
+CCTV12,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031107&livemode=1&stbId=yu&mode=1
+CCTV12,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000022586&livemode=1&stbId=yu&mode=1
+CCTV12,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000001640&livemode=1&stbId=yu&mode=1
+CCTV12,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000032494&livemode=1&stbId=yu&mode=1
+CCTV12,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265012&livemode=1&stbId=yu&mode=1
+CCTV12,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=5325631075193490169&livemode=1&stbId=yu&mode=1
+CCTV13,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000005000001827&livemode=1&stbId=yu&mode=1
+CCTV13,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031108&livemode=1&stbId=yu&mode=1
+CCTV13,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000021303&livemode=1&stbId=yu&mode=1
+CCTV13,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265101&livemode=1&stbId=yu&mode=1
+CCTV13,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6918130250570453526&livemode=1&stbId=yu&mode=1
+CCTV14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000006673&livemode=1&stbId=yu&mode=1
+CCTV14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000023358&livemode=1&stbId=yu&mode=1
+CCTV14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000013647&livemode=1&stbId=yu&mode=1
+CCTV14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6113730085955692619&livemode=1&stbId=yu&mode=1
+CCTV14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000008170&livemode=1&stbId=yu&mode=1
+CCTV14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000021349&livemode=1&stbId=yu&mode=1
+CCTV14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265013&livemode=1&stbId=yu&mode=1
+CCTV14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8203666801302077036&livemode=1&stbId=yu&mode=1
+CCTV15,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000005000018417&livemode=1&stbId=yu&mode=1
+CCTV15,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031109&livemode=1&stbId=yu&mode=1
+CCTV15,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000008163&livemode=1&stbId=yu&mode=1
+CCTV15,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265014&livemode=1&stbId=yu&mode=1
+CCTV15,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=4832596595465032187&livemode=1&stbId=yu&mode=1
+CCTV16,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000008000023254&livemode=1&stbId=yu&mode=1
+CCTV16,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000008000023253&livemode=1&stbId=yu&mode=1
+CCTV16,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000233001&livemode=1&stbId=yu&mode=1
+CCTV16,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000233002&livemode=1&stbId=yu&mode=1
+CCTV17,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288014&livemode=1&stbId=yu&mode=1
+CCTV17,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000056836&livemode=1&stbId=yu&mode=1
+CCTV17,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265015&livemode=1&stbId=yu&mode=1
+CCTV17,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000268004&livemode=1&stbId=yu&mode=1
+CCTV5+,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031127&livemode=1&stbId=yu&mode=1
+CCTV5+,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=5350361928876847638&livemode=1&stbId=yu&mode=1
+CCTV5+,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000015875&livemode=1&stbId=yu&mode=1
+CCTV5+,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000018504&livemode=1&stbId=yu&mode=1
+CCTV5+,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000020505&livemode=1&stbId=yu&mode=1
+CCTV5+,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265016&livemode=1&stbId=yu&mode=1
+CCTV5+,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=reallive-cctv5plus&livemode=1&stbId=yu&mode=1
+卫视频道,#genre#
+湖南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000006692&livemode=1&stbId=yu&mode=1
+湖南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000030452&livemode=1&stbId=yu&mode=1
+湖南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265010&livemode=1&stbId=yu&mode=1
+湖南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000018044&livemode=1&stbId=yu&mode=1
+湖南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000009115&livemode=1&stbId=yu&mode=1
+湖南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000032695&livemode=1&stbId=yu&mode=1
+湖南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265024&livemode=1&stbId=yu&mode=1
+湖南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6954818217931477266&livemode=1&stbId=yu&mode=1
+湖南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8655038471675748531&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000014098&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000032246&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265007&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000003639&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6690661682550849647&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000005866&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000030202&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265018&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=4699937686040264690&livemode=1&stbId=yu&mode=1
+东方卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6081477947334326291&livemode=1&stbId=yu&mode=1
+江苏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000019351&livemode=1&stbId=yu&mode=1
+江苏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000018509&livemode=1&stbId=yu&mode=1
+江苏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265009&livemode=1&stbId=yu&mode=1
+江苏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000014861&livemode=1&stbId=yu&mode=1
+江苏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000001828&livemode=1&stbId=yu&mode=1
+江苏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000004684&livemode=1&stbId=yu&mode=1
+江苏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265030&livemode=1&stbId=yu&mode=1
+江苏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=4690153511271751319&livemode=1&stbId=yu&mode=1
+江苏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=4796340999304424198&livemode=1&stbId=yu&mode=1
+广东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000014694&livemode=1&stbId=yu&mode=1
+广东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000030417&livemode=1&stbId=yu&mode=1
+广东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=5306115082857917057&livemode=1&stbId=yu&mode=1
+广东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000031076&livemode=1&stbId=yu&mode=1
+广东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000014176&livemode=1&stbId=yu&mode=1
+广东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000028357&livemode=1&stbId=yu&mode=1
+广东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265034&livemode=1&stbId=yu&mode=1
+广东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=5616881981321254555&livemode=1&stbId=yu&mode=1
+广东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6604532991586541024&livemode=1&stbId=yu&mode=1
+浙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000007275&livemode=1&stbId=yu&mode=1
+浙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000017320&livemode=1&stbId=yu&mode=1
+浙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000032070&livemode=1&stbId=yu&mode=1
+浙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000009806&livemode=1&stbId=yu&mode=1
+浙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000014260&livemode=1&stbId=yu&mode=1
+浙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265031&livemode=1&stbId=yu&mode=1
+浙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=4945391150963996912&livemode=1&stbId=yu&mode=1
+浙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7889730693553663314&livemode=1&stbId=yu&mode=1
+北京卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000031556&livemode=1&stbId=yu&mode=1
+北京卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000011502&livemode=1&stbId=yu&mode=1
+北京卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265011&livemode=1&stbId=yu&mode=1
+北京卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000020451&livemode=1&stbId=yu&mode=1
+北京卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000017156&livemode=1&stbId=yu&mode=1
+北京卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000021288&livemode=1&stbId=yu&mode=1
+北京卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265027&livemode=1&stbId=yu&mode=1
+北京卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8186688740528366039&livemode=1&stbId=yu&mode=1
+北京卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8258663409451267714&livemode=1&stbId=yu&mode=1
+深圳卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000007410&livemode=1&stbId=yu&mode=1
+深圳卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000024026&livemode=1&stbId=yu&mode=1
+深圳卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000002116&livemode=1&stbId=yu&mode=1
+深圳卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000009227&livemode=1&stbId=yu&mode=1
+深圳卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000011645&livemode=1&stbId=yu&mode=1
+深圳卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265028&livemode=1&stbId=yu&mode=1
+深圳卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=5352218613763113657&livemode=1&stbId=yu&mode=1
+深圳卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7696950400632248401&livemode=1&stbId=yu&mode=1
+天津卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000030788&livemode=1&stbId=yu&mode=1
+天津卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000006827&livemode=1&stbId=yu&mode=1
+天津卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000009186&livemode=1&stbId=yu&mode=1
+天津卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000000831&livemode=1&stbId=yu&mode=1
+天津卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000003475&livemode=1&stbId=yu&mode=1
+天津卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265026&livemode=1&stbId=yu&mode=1
+天津卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6707942579111517572&livemode=1&stbId=yu&mode=1
+天津卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8798367982904688776&livemode=1&stbId=yu&mode=1
+山东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000020424&livemode=1&stbId=yu&mode=1
+山东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000027763&livemode=1&stbId=yu&mode=1
+山东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000004134&livemode=1&stbId=yu&mode=1
+山东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000012807&livemode=1&stbId=yu&mode=1
+山东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000016568&livemode=1&stbId=yu&mode=1
+山东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265019&livemode=1&stbId=yu&mode=1
+山东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7347081113971056899&livemode=1&stbId=yu&mode=1
+山东卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7744799445271696577&livemode=1&stbId=yu&mode=1
+安徽卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000027288&livemode=1&stbId=yu&mode=1
+安徽卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000023002&livemode=1&stbId=yu&mode=1
+安徽卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000009954&livemode=1&stbId=yu&mode=1
+安徽卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000020780&livemode=1&stbId=yu&mode=1
+安徽卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000030159&livemode=1&stbId=yu&mode=1
+安徽卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265025&livemode=1&stbId=yu&mode=1
+安徽卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=4774346722046993363&livemode=1&stbId=yu&mode=1
+江西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000032154&livemode=1&stbId=yu&mode=1
+江西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000011210&livemode=1&stbId=yu&mode=1
+江西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000013731&livemode=1&stbId=yu&mode=1
+江西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265032&livemode=1&stbId=yu&mode=1
+江西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000268001&livemode=1&stbId=yu&mode=1
+江西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=5616078396620462481&livemode=1&stbId=yu&mode=1
+黑龙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000025203&livemode=1&stbId=yu&mode=1
+黑龙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000031107&livemode=1&stbId=yu&mode=1
+黑龙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000016510&livemode=1&stbId=yu&mode=1
+黑龙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000001925&livemode=1&stbId=yu&mode=1
+黑龙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000009082&livemode=1&stbId=yu&mode=1
+黑龙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265029&livemode=1&stbId=yu&mode=1
+黑龙江卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8467838254824392379&livemode=1&stbId=yu&mode=1
+四川卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000006119&livemode=1&stbId=yu&mode=1
+四川卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000016825&livemode=1&stbId=yu&mode=1
+贵州卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000025843&livemode=1&stbId=yu&mode=1
+贵州卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000003169&livemode=1&stbId=yu&mode=1
+湖北卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000014954&livemode=1&stbId=yu&mode=1
+湖北卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000022140&livemode=1&stbId=yu&mode=1
+湖北卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000001000015436&livemode=1&stbId=yu&mode=1
+湖北卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000010355&livemode=1&stbId=yu&mode=1
+湖北卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000024621&livemode=1&stbId=yu&mode=1
+湖北卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265023&livemode=1&stbId=yu&mode=1
+湖北卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6956052407855047826&livemode=1&stbId=yu&mode=1
+辽宁卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000008940&livemode=1&stbId=yu&mode=1
+辽宁卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000011671&livemode=1&stbId=yu&mode=1
+辽宁卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000001945&livemode=1&stbId=yu&mode=1
+辽宁卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000024033&livemode=1&stbId=yu&mode=1
+辽宁卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265022&livemode=1&stbId=yu&mode=1
+辽宁卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7638375013635582245&livemode=1&stbId=yu&mode=1
+广西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040014&livemode=1&stbId=yu&mode=1
+广西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031118&livemode=1&stbId=yu&mode=1
+广西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000019837&livemode=1&stbId=yu&mode=1
+重庆卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000025797&livemode=1&stbId=yu&mode=1
+重庆卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000001096&livemode=1&stbId=yu&mode=1
+重庆卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000018937&livemode=1&stbId=yu&mode=1
+重庆卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265017&livemode=1&stbId=yu&mode=1
+重庆卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=4995134319251569870&livemode=1&stbId=yu&mode=1
+东南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000005829&livemode=1&stbId=yu&mode=1
+东南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000010584&livemode=1&stbId=yu&mode=1
+东南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000009263&livemode=1&stbId=yu&mode=1
+东南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265033&livemode=1&stbId=yu&mode=1
+东南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7721801662260370363&livemode=1&stbId=yu&mode=1
+吉林卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040013&livemode=1&stbId=yu&mode=1
+吉林卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031117&livemode=1&stbId=yu&mode=1
+吉林卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000027730&livemode=1&stbId=yu&mode=1
+海南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000006211&livemode=1&stbId=yu&mode=1
+海南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000023773&livemode=1&stbId=yu&mode=1
+云南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040019&livemode=1&stbId=yu&mode=1
+云南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031120&livemode=1&stbId=yu&mode=1
+云南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000024694&livemode=1&stbId=yu&mode=1
+厦门卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266006&livemode=1&stbId=yu&mode=1
+河南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000005000017925&livemode=1&stbId=yu&mode=1
+河南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031119&livemode=1&stbId=yu&mode=1
+河南卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000027731&livemode=1&stbId=yu&mode=1
+河北卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040016&livemode=1&stbId=yu&mode=1
+河北卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000017118&livemode=1&stbId=yu&mode=1
+陕西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040017&livemode=1&stbId=yu&mode=1
+陕西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000007495&livemode=1&stbId=yu&mode=1
+山西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040023&livemode=1&stbId=yu&mode=1
+山西卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000021220&livemode=1&stbId=yu&mode=1
+甘肃卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040021&livemode=1&stbId=yu&mode=1
+甘肃卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031121&livemode=1&stbId=yu&mode=1
+甘肃卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000017827&livemode=1&stbId=yu&mode=1
+宁夏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040022&livemode=1&stbId=yu&mode=1
+宁夏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000031451&livemode=1&stbId=yu&mode=1
+青海卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040015&livemode=1&stbId=yu&mode=1
+青海卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000013359&livemode=1&stbId=yu&mode=1
+西藏卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000015894&livemode=1&stbId=yu&mode=1
+新疆卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040018&livemode=1&stbId=yu&mode=1
+新疆卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000029441&livemode=1&stbId=yu&mode=1
+三沙卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288016&livemode=1&stbId=yu&mode=1
+农林卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000046&livemode=1&stbId=yu&mode=1
+农林卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266003&livemode=1&stbId=yu&mode=1
+延边卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000049&livemode=1&stbId=yu&mode=1
+延边卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266008&livemode=1&stbId=yu&mode=1
+兵团卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040020&livemode=1&stbId=yu&mode=1
+兵团卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266005&livemode=1&stbId=yu&mode=1
+康巴卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266002&livemode=1&stbId=yu&mode=1
+安多卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266001&livemode=1&stbId=yu&mode=1
+内蒙古卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000014080&livemode=1&stbId=yu&mode=1
+大湾区卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000045&livemode=1&stbId=yu&mode=1
+大湾区卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000011619&livemode=1&stbId=yu&mode=1
+山东教育卫视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000004097&livemode=1&stbId=yu&mode=1
+地方频道,#genre#
+北京纪实科教,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031204&livemode=1&stbId=yu&mode=1
+北京纪实科教,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000065&livemode=1&stbId=yu&mode=1
+北京纪实科教,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000026&livemode=1&stbId=yu&mode=1
+北京纪实科教,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000001910&livemode=1&stbId=yu&mode=1
+北京纪实科教,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000028380&livemode=1&stbId=yu&mode=1
+北京纪实科教,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265020&livemode=1&stbId=yu&mode=1
+北京卡酷少儿,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000265008&livemode=1&stbId=yu&mode=1
+北京卡酷少儿,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=7851974109718180595&livemode=1&stbId=yu&mode=1
+北京卡酷少儿,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000002413&livemode=1&stbId=yu&mode=1
+广东珠江,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000033&livemode=1&stbId=yu&mode=1
+广东珠江,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000011655&livemode=1&stbId=yu&mode=1
+广东嘉佳卡通,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000025964&livemode=1&stbId=yu&mode=1
+湖南茶频道,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031209&livemode=1&stbId=yu&mode=1
+湖南茶频道,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000070&livemode=1&stbId=yu&mode=1
+湖南快乐垂钓,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031206&livemode=1&stbId=yu&mode=1
+湖南快乐垂钓,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000067&livemode=1&stbId=yu&mode=1
+湖南金鹰卡通,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040024&livemode=1&stbId=yu&mode=1
+湖南金鹰卡通,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000016601&livemode=1&stbId=yu&mode=1
+湖南金鹰纪实,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031203&livemode=1&stbId=yu&mode=1
+湖南金鹰纪实,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000011724&livemode=1&stbId=yu&mode=1
+江苏优漫卡通,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000010063&livemode=1&stbId=yu&mode=1
+江苏财富天下,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031208&livemode=1&stbId=yu&mode=1
+江苏财富天下,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000069&livemode=1&stbId=yu&mode=1
+上海ICS,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000030951&livemode=1&stbId=yu&mode=1
+上海ICS,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288018&livemode=1&stbId=yu&mode=1
+上海ICS,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000001&livemode=1&stbId=yu&mode=1
+上海都市,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000018926&livemode=1&stbId=yu&mode=1
+上海都市,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000012&livemode=1&stbId=yu&mode=1
+上海教育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288019&livemode=1&stbId=yu&mode=1
+上海新闻综合,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031110&livemode=1&stbId=yu&mode=1
+上海新闻综合,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000005&livemode=1&stbId=yu&mode=1
+上海纪实人文,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000021713&livemode=1&stbId=yu&mode=1
+上海纪实人文,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000004000010282&livemode=1&stbId=yu&mode=1
+上海纪实人文,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000010606&livemode=1&stbId=yu&mode=1
+上海纪实人文,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000016545&livemode=1&stbId=yu&mode=1
+上海纪实人文,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000265021&livemode=1&stbId=yu&mode=1
+上海东方影视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000032212&livemode=1&stbId=yu&mode=1
+上海东方影视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000013&livemode=1&stbId=yu&mode=1
+上海第一财经,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000027146&livemode=1&stbId=yu&mode=1
+上海第一财经,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000004&livemode=1&stbId=yu&mode=1
+上海五星体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000017540&livemode=1&stbId=yu&mode=1
+上海五星体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000007&livemode=1&stbId=yu&mode=1
+上海哈哈炫动,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000005000031641&livemode=1&stbId=yu&mode=1
+上海哈哈炫动,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031123&livemode=1&stbId=yu&mode=1
+上海哈哈炫动,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000000172&livemode=1&stbId=yu&mode=1
+其它频道,#genre#
+中国教育1台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000002000002652&livemode=1&stbId=yu&mode=1
+中国教育1台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288015&livemode=1&stbId=yu&mode=1
+中国教育1台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000027253&livemode=1&stbId=yu&mode=1
+中国教育2台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031201&livemode=1&stbId=yu&mode=1
+中国教育2台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288017&livemode=1&stbId=yu&mode=1
+中国教育2台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000047&livemode=1&stbId=yu&mode=1
+中国教育2台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266004&livemode=1&stbId=yu&mode=1
+中国教育4台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000012123&livemode=1&stbId=yu&mode=1
+中国教育4台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031126&livemode=1&stbId=yu&mode=1
+中国教育4台,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000025333&livemode=1&stbId=yu&mode=1
+求索纪录,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000010&livemode=1&stbId=yu&mode=1
+求索纪录,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000002000032052&livemode=1&stbId=yu&mode=1
+求索动物,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000009&livemode=1&stbId=yu&mode=1
+求索动物,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000002000010046&livemode=1&stbId=yu&mode=1
+求索科学,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000011&livemode=1&stbId=yu&mode=1
+求索科学,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000002000032344&livemode=1&stbId=yu&mode=1
+求索生活,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000008&livemode=1&stbId=yu&mode=1
+求索生活,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000002000003382&livemode=1&stbId=yu&mode=1
+中国天气,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000005000031974&livemode=1&stbId=yu&mode=1
+中国天气,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000057&livemode=1&stbId=yu&mode=1
+健康养生,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288006&livemode=1&stbId=yu&mode=1
+中华美食,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000052&livemode=1&stbId=yu&mode=1
+中华美食,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266015&livemode=1&stbId=yu&mode=1
+风尚音乐,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000004&livemode=1&stbId=yu&mode=1
+风尚音乐,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=5529729098703832176&livemode=1&stbId=yu&mode=1
+高清娱乐,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000013&livemode=1&stbId=yu&mode=1
+高清娱乐,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000003000001569&livemode=1&stbId=yu&mode=1
+华数服务,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000025&livemode=1&stbId=yu&mode=1
+精品剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000002&livemode=1&stbId=yu&mode=1
+精品剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=8230197131234717902&livemode=1&stbId=yu&mode=1
+精品综合,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000008&livemode=1&stbId=yu&mode=1
+精品综合,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=5595720619887440144&livemode=1&stbId=yu&mode=1
+漫游世界,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000017&livemode=1&stbId=yu&mode=1
+漫游世界,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000003000028434&livemode=1&stbId=yu&mode=1
+欧美影院,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000005&livemode=1&stbId=yu&mode=1
+欧美影院,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=7185203501769528108&livemode=1&stbId=yu&mode=1
+热播精选,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000016&livemode=1&stbId=yu&mode=1
+热播精选,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7681593242002292003&livemode=1&stbId=yu&mode=1
+少儿动漫,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000003&livemode=1&stbId=yu&mode=1
+少儿动漫,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=8145334647720731271&livemode=1&stbId=yu&mode=1
+探索纪录,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000007&livemode=1&stbId=yu&mode=1
+探索纪录,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=5359008697329269813&livemode=1&stbId=yu&mode=1
+电子竞技,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000015&livemode=1&stbId=yu&mode=1
+电子竞技,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000003000011654&livemode=1&stbId=yu&mode=1
+亚洲影院,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000006&livemode=1&stbId=yu&mode=1
+亚洲影院,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=5841816227539527643&livemode=1&stbId=yu&mode=1
+精彩影视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000063&livemode=1&stbId=yu&mode=1
+精彩影视,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000320630&livemode=1&stbId=yu&mode=1
+睛彩竞技,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011528&livemode=1&stbId=yu&mode=1
+睛彩竞技,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011530&livemode=1&stbId=yu&mode=1
+睛彩竞技,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000060&livemode=1&stbId=yu&mode=1
+睛彩竞技,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000270001&livemode=1&stbId=yu&mode=1
+睛彩青少,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011525&livemode=1&stbId=yu&mode=1
+睛彩青少,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000031315&livemode=1&stbId=yu&mode=1
+睛彩青少,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000068&livemode=1&stbId=yu&mode=1
+睛彩青少,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000270007&livemode=1&stbId=yu&mode=1
+睛彩篮球,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011529&livemode=1&stbId=yu&mode=1
+睛彩篮球,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011531&livemode=1&stbId=yu&mode=1
+睛彩篮球,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000061&livemode=1&stbId=yu&mode=1
+睛彩篮球,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000065&livemode=1&stbId=yu&mode=1
+睛彩篮球,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000270002&livemode=1&stbId=yu&mode=1
+睛彩篮球,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000270006&livemode=1&stbId=yu&mode=1
+睛彩广场舞,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011523&livemode=1&stbId=yu&mode=1
+睛彩广场舞,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011524&livemode=1&stbId=yu&mode=1
+睛彩广场舞,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000062&livemode=1&stbId=yu&mode=1
+睛彩广场舞,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000064&livemode=1&stbId=yu&mode=1
+睛彩广场舞,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000270003&livemode=1&stbId=yu&mode=1
+睛彩广场舞,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000270005&livemode=1&stbId=yu&mode=1
+华数4K,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000014&livemode=1&stbId=yu&mode=1
+华数4K,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000003000004748&livemode=1&stbId=yu&mode=1
+纯享4K,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000011651&livemode=1&stbId=yu&mode=1
+炫动3D,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000012&livemode=1&stbId=yu&mode=1
+炫动3D,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000003000000558&livemode=1&stbId=yu&mode=1
+移动云VR,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000015686&livemode=1&stbId=yu&mode=1
+英雄联盟音乐节,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000011&livemode=1&stbId=yu&mode=1
+英雄联盟音乐节,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8978605063318475207&livemode=1&stbId=yu&mode=1
+咪咕视频,#genre#
+咪咕体育-4K,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000005180&livemode=1&stbId=yu&mode=1
+咪咕视频-1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000005969&livemode=1&stbId=yu&mode=1
+咪咕视频-2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000007218&livemode=1&stbId=yu&mode=1
+咪咕视频-3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000008001&livemode=1&stbId=yu&mode=1
+咪咕视频-4,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000010129&livemode=1&stbId=yu&mode=1
+咪咕视频-5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000010948&livemode=1&stbId=yu&mode=1
+咪咕视频-6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000028638&livemode=1&stbId=yu&mode=1
+咪咕视频-7,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000031494&livemode=1&stbId=yu&mode=1
+咪咕视频-8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000000097&livemode=1&stbId=yu&mode=1
+咪咕视频-9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000002019&livemode=1&stbId=yu&mode=1
+咪咕视频-10,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000003915&livemode=1&stbId=yu&mode=1
+咪咕视频-11,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000004193&livemode=1&stbId=yu&mode=1
+咪咕视频-12,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000005837&livemode=1&stbId=yu&mode=1
+咪咕视频-13,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000006077&livemode=1&stbId=yu&mode=1
+咪咕视频-14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000006658&livemode=1&stbId=yu&mode=1
+咪咕视频-15,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000009788&livemode=1&stbId=yu&mode=1
+咪咕视频-16,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000010833&livemode=1&stbId=yu&mode=1
+咪咕视频-17,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000011297&livemode=1&stbId=yu&mode=1
+咪咕视频-18,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000011518&livemode=1&stbId=yu&mode=1
+咪咕视频-19,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000012558&livemode=1&stbId=yu&mode=1
+咪咕视频-20,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000012616&livemode=1&stbId=yu&mode=1
+咪咕视频-21,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000015470&livemode=1&stbId=yu&mode=1
+咪咕视频-22,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000019839&livemode=1&stbId=yu&mode=1
+咪咕视频-23,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000021904&livemode=1&stbId=yu&mode=1
+咪咕视频-24,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000025380&livemode=1&stbId=yu&mode=1
+咪咕视频-25,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000027691&livemode=1&stbId=yu&mode=1
+咪咕视频-26,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000031669&livemode=1&stbId=yu&mode=1
+咪咕视频-27,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011518&livemode=1&stbId=yu&mode=1
+咪咕视频-28,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011519&livemode=1&stbId=yu&mode=1
+咪咕视频-29,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011520&livemode=1&stbId=yu&mode=1
+咪咕视频-30,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011521&livemode=1&stbId=yu&mode=1
+咪咕视频-31,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000020000011522&livemode=1&stbId=yu&mode=1
+咪咕视频-32,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000063&livemode=1&stbId=yu&mode=1
+咪咕视频-33,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000270004&livemode=1&stbId=yu&mode=1
+咪咕游戏赛事-1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000008176&livemode=1&stbId=yu&mode=1
+咪咕足球赛事-2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000005308&livemode=1&stbId=yu&mode=1
+咪咕足球赛事-3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000001000008379&livemode=1&stbId=yu&mode=1
+咪咕足球赛事-4,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000002809&livemode=1&stbId=yu&mode=1
+咪咕足球赛事-5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000015560&livemode=1&stbId=yu&mode=1
+咪咕足球赛事-6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=3000000010000023434&livemode=1&stbId=yu&mode=1
+SiTV频道,#genre#
+SiTV动漫秀场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000002000023636&livemode=1&stbId=yu&mode=1
+SiTV动漫秀场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031113&livemode=1&stbId=yu&mode=1
+SiTV动漫秀场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000009&livemode=1&stbId=yu&mode=1
+SiTV游戏风云,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000002000027005&livemode=1&stbId=yu&mode=1
+SiTV游戏风云,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031114&livemode=1&stbId=yu&mode=1
+SiTV游戏风云,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000011&livemode=1&stbId=yu&mode=1
+SiTV法治天地,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=9001547084732463424&livemode=1&stbId=yu&mode=1
+SiTV法治天地,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000014&livemode=1&stbId=yu&mode=1
+SiTV劲爆体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000002000029972&livemode=1&stbId=yu&mode=1
+SiTV劲爆体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000008&livemode=1&stbId=yu&mode=1
+SiTV魅力足球,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031207&livemode=1&stbId=yu&mode=1
+SiTV魅力足球,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000068&livemode=1&stbId=yu&mode=1
+SiTV金色学堂,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000010000026105&livemode=1&stbId=yu&mode=1
+SiTV金色学堂,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000061&livemode=1&stbId=yu&mode=1
+SiTV欢笑剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000002000009455&livemode=1&stbId=yu&mode=1
+SiTV欢笑剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000007000010001&livemode=1&stbId=yu&mode=1
+SiTV欢笑剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000016&livemode=1&stbId=yu&mode=1
+SiTV七彩戏剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031116&livemode=1&stbId=yu&mode=1
+SiTV七彩戏剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000010&livemode=1&stbId=yu&mode=1
+SiTV生活时尚,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000002000019634&livemode=1&stbId=yu&mode=1
+SiTV生活时尚,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000006&livemode=1&stbId=yu&mode=1
+SiTV乐游,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000006000040025&livemode=1&stbId=yu&mode=1
+SiTV乐游,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031112&livemode=1&stbId=yu&mode=1
+SiTV乐游,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000059&livemode=1&stbId=yu&mode=1
+SiTV乐游,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000092&livemode=1&stbId=yu&mode=1
+SiTV都市剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000002000004412&livemode=1&stbId=yu&mode=1
+SiTV都市剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000031111&livemode=1&stbId=yu&mode=1
+SiTV都市剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000015&livemode=1&stbId=yu&mode=1
+SiTV东方财经,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000007000010003&livemode=1&stbId=yu&mode=1
+SiTV东方财经,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000090&livemode=1&stbId=yu&mode=1
+iHOT频道,#genre#
+iHOT爱科学,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000047&livemode=1&stbId=yu&mode=1
+iHOT爱科学,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000160630&livemode=1&stbId=yu&mode=1
+iHOT爱历史,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000046&livemode=1&stbId=yu&mode=1
+iHOT爱历史,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000150630&livemode=1&stbId=yu&mode=1
+iHOT爱旅行,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000056&livemode=1&stbId=yu&mode=1
+iHOT爱旅行,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000250630&livemode=1&stbId=yu&mode=1
+iHOT爱体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000060&livemode=1&stbId=yu&mode=1
+iHOT爱体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000290630&livemode=1&stbId=yu&mode=1
+iHOT爱赛车,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000055&livemode=1&stbId=yu&mode=1
+iHOT爱赛车,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000240630&livemode=1&stbId=yu&mode=1
+iHOT爱浪漫,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000035&livemode=1&stbId=yu&mode=1
+iHOT爱浪漫,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000040630&livemode=1&stbId=yu&mode=1
+iHOT爱奇谈,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000058&livemode=1&stbId=yu&mode=1
+iHOT爱奇谈,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000270630&livemode=1&stbId=yu&mode=1
+iHOT爱动漫,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000059&livemode=1&stbId=yu&mode=1
+iHOT爱动漫,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000280630&livemode=1&stbId=yu&mode=1
+iHOT爱谍战,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000038&livemode=1&stbId=yu&mode=1
+iHOT爱谍战,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000070630&livemode=1&stbId=yu&mode=1
+iHOT爱科幻,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000033&livemode=1&stbId=yu&mode=1
+iHOT爱科幻,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000020630&livemode=1&stbId=yu&mode=1
+iHOT爱喜剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000032&livemode=1&stbId=yu&mode=1
+iHOT爱喜剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000010630&livemode=1&stbId=yu&mode=1
+iHOT爱悬疑,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000036&livemode=1&stbId=yu&mode=1
+iHOT爱悬疑,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000050630&livemode=1&stbId=yu&mode=1
+iHOT爱院线,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000034&livemode=1&stbId=yu&mode=1
+iHOT爱院线,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000030630&livemode=1&stbId=yu&mode=1
+iHOT爱玩具,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000053&livemode=1&stbId=yu&mode=1
+iHOT爱玩具,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000220630&livemode=1&stbId=yu&mode=1
+iHOT爱幼教,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000004000000049&livemode=1&stbId=yu&mode=1
+iHOT爱幼教,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=wasusyt&Contentid=6000000006000180630&livemode=1&stbId=yu&mode=1
+CGTN频道,#genre#
+CGTN,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=7745129417417101820&livemode=1&stbId=yu&mode=1
+CGTN,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000002000009569&livemode=1&stbId=yu&mode=1
+CGTN俄语,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000280004&livemode=1&stbId=yu&mode=1
+CGTN法语,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000280003&livemode=1&stbId=yu&mode=1
+CGTN纪录,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=7114647837765104058&livemode=1&stbId=yu&mode=1
+CGTN阿拉伯语,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000280001&livemode=1&stbId=yu&mode=1
+CGTN西班牙语,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000280002&livemode=1&stbId=yu&mode=1
+BesTV频道,#genre#
+BesTV星光影院,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288013&livemode=1&stbId=yu&mode=1
+BesTV谍战剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288004&livemode=1&stbId=yu&mode=1
+BesTV华语影院,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288005&livemode=1&stbId=yu&mode=1
+BesTV全球大片,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288009&livemode=1&stbId=yu&mode=1
+BesTV热门剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288010&livemode=1&stbId=yu&mode=1
+BesTV青春动漫,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288008&livemode=1&stbId=yu&mode=1
+BesTV宝宝动画,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288002&livemode=1&stbId=yu&mode=1
+BesTV电竞天堂,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288003&livemode=1&stbId=yu&mode=1
+BesTV热门综艺,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288011&livemode=1&stbId=yu&mode=1
+BesTV戏曲精选,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288012&livemode=1&stbId=yu&mode=1
+BesTV百变课堂,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288001&livemode=1&stbId=yu&mode=1
+BesTV看天下精选,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000011000288007&livemode=1&stbId=yu&mode=1
+BesTV-1,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000002898&livemode=1&stbId=yu&mode=1
+BesTV-2,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000004876&livemode=1&stbId=yu&mode=1
+BesTV-3,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000006777&livemode=1&stbId=yu&mode=1
+BesTV-4,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000018009&livemode=1&stbId=yu&mode=1
+BesTV-5,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000019233&livemode=1&stbId=yu&mode=1
+BesTV-6,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000022620&livemode=1&stbId=yu&mode=1
+BesTV-7,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000023256&livemode=1&stbId=yu&mode=1
+BesTV-8,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000026930&livemode=1&stbId=yu&mode=1
+BesTV-9,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000024&livemode=1&stbId=yu&mode=1
+BesTV-10,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000026&livemode=1&stbId=yu&mode=1
+BesTV-11,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000027&livemode=1&stbId=yu&mode=1
+BesTV-12,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000028&livemode=1&stbId=yu&mode=1
+BesTV-13,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000030&livemode=1&stbId=yu&mode=1
+BesTV-14,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000049&livemode=1&stbId=yu&mode=1
+BesTV-15,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000050&livemode=1&stbId=yu&mode=1
+BesTV-16http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000051&livemode=1&stbId=yu&mode=1
+BesTV-17,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000001116&livemode=1&stbId=yu&mode=1
+BesTV-18,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=FifastbLive&Contentid=5000000001000017342&livemode=1&stbId=yu&mode=1
+BesTV-19,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000025&livemode=1&stbId=yu&mode=1
+BesTV-20,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000002000000029&livemode=1&stbId=yu&mode=1
+NewTV频道,#genre#
+NewTV黑莓电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000001&livemode=1&stbId=yu&mode=1
+NewTV黑莓电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000019624&livemode=1&stbId=yu&mode=1
+NewTV黑莓电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8785669936177902664&livemode=1&stbId=yu&mode=1
+NewTV黑莓动画,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000002&livemode=1&stbId=yu&mode=1
+NewTV黑莓动画,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000021734&livemode=1&stbId=yu&mode=1
+NewTV黑莓动画,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6497762188035533951&livemode=1&stbId=yu&mode=1
+NewTV哒啵赛事,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000004&livemode=1&stbId=yu&mode=1
+NewTV哒啵赛事,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000039&livemode=1&stbId=yu&mode=1
+NewTV哒啵赛事,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000040&livemode=1&stbId=yu&mode=1
+NewTV哒啵赛事,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000003775&livemode=1&stbId=yu&mode=1
+NewTV哒啵赛事,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000006906&livemode=1&stbId=yu&mode=1
+NewTV哒啵赛事,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=5320946857686967621&livemode=1&stbId=yu&mode=1
+NewTV哒啵电竞,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000066&livemode=1&stbId=yu&mode=1
+NewTV哒啵电竞,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000032327&livemode=1&stbId=yu&mode=1
+NewTV超级电视剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000032&livemode=1&stbId=yu&mode=1
+NewTV超级电视剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000008139&livemode=1&stbId=yu&mode=1
+NewTV超级电视剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000024993&livemode=1&stbId=yu&mode=1
+NewTV超级电视剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000268003&livemode=1&stbId=yu&mode=1
+NewTV超级电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000031&livemode=1&stbId=yu&mode=1
+NewTV超级电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000012884&livemode=1&stbId=yu&mode=1
+NewTV超级电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000003000012426&livemode=1&stbId=yu&mode=1
+NewTV超级电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000002120&livemode=1&stbId=yu&mode=1
+NewTV动作电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000017&livemode=1&stbId=yu&mode=1
+NewTV动作电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000018653&livemode=1&stbId=yu&mode=1
+NewTV动作电影,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8103864434730665389&livemode=1&stbId=yu&mode=1
+NewTV家庭剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000012&livemode=1&stbId=yu&mode=1
+NewTV家庭剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000008284&livemode=1&stbId=yu&mode=1
+NewTV家庭剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6316377948248689070&livemode=1&stbId=yu&mode=1
+NewTV惊悚悬疑,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000015&livemode=1&stbId=yu&mode=1
+NewTV惊悚悬疑,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000024282&livemode=1&stbId=yu&mode=1
+NewTV惊悚悬疑,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7151256057701199617&livemode=1&stbId=yu&mode=1
+NewTV精品大剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000020&livemode=1&stbId=yu&mode=1
+NewTV精品大剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000013968&livemode=1&stbId=yu&mode=1
+NewTV精品大剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7882297361445410858&livemode=1&stbId=yu&mode=1
+NewTV明星大片,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000019008&livemode=1&stbId=yu&mode=1
+NewTV军旅剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000014&livemode=1&stbId=yu&mode=1
+NewTV军旅剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7485075951068666323&livemode=1&stbId=yu&mode=1
+NewTV古装剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000024&livemode=1&stbId=yu&mode=1
+NewTV古装剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6859053933687922163&livemode=1&stbId=yu&mode=1
+NewTV欢乐剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000050&livemode=1&stbId=yu&mode=1
+NewTV欢乐剧场,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266012&livemode=1&stbId=yu&mode=1
+NewTV东北热剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000051&livemode=1&stbId=yu&mode=1
+NewTV东北热剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266013&livemode=1&stbId=yu&mode=1
+NewTV爱情喜剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000010&livemode=1&stbId=yu&mode=1
+NewTV爱情喜剧,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=8393829412396288037&livemode=1&stbId=yu&mode=1
+NewTV精品纪录,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000019&livemode=1&stbId=yu&mode=1
+NewTV精品纪录,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000013730&livemode=1&stbId=yu&mode=1
+NewTV精品纪录,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6298506997017621594&livemode=1&stbId=yu&mode=1
+NewTV超级体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000030&livemode=1&stbId=yu&mode=1
+NewTV超级体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000009204&livemode=1&stbId=yu&mode=1
+NewTV超级体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000009601&livemode=1&stbId=yu&mode=1
+NewTV超级体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000007755&livemode=1&stbId=yu&mode=1
+NewTV精品体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000021&livemode=1&stbId=yu&mode=1
+NewTV精品体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000014634&livemode=1&stbId=yu&mode=1
+NewTV精品体育,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6460382139625130259&livemode=1&stbId=yu&mode=1
+NewTV中国功夫,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000009&livemode=1&stbId=yu&mode=1
+NewTV中国功夫,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=5897056882324761054&livemode=1&stbId=yu&mode=1
+NewTV超级综艺,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000029&livemode=1&stbId=yu&mode=1
+NewTV超级综艺,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000025771&livemode=1&stbId=yu&mode=1
+NewTV超级综艺,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000023658&livemode=1&stbId=yu&mode=1
+NewTV超级综艺,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000268002&livemode=1&stbId=yu&mode=1
+NewTV金牌综艺,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000005&livemode=1&stbId=yu&mode=1
+NewTV金牌综艺,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000004000026167&livemode=1&stbId=yu&mode=1
+NewTV金牌综艺,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6399725674632152632&livemode=1&stbId=yu&mode=1
+NewTV魅力潇湘,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000041&livemode=1&stbId=yu&mode=1
+NewTV魅力潇湘,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000006197&livemode=1&stbId=yu&mode=1
+NewTV魅力潇湘,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266014&livemode=1&stbId=yu&mode=1
+NewTV炫舞未来,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000044&livemode=1&stbId=yu&mode=1
+NewTV炫舞未来,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000001000000515&livemode=1&stbId=yu&mode=1
+NewTV农业致富,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000003&livemode=1&stbId=yu&mode=1
+NewTV农业致富,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6193684637634073625&livemode=1&stbId=yu&mode=1
+NewTV军事评论,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000022&livemode=1&stbId=yu&mode=1
+NewTV军事评论,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=5822616274253344775&livemode=1&stbId=yu&mode=1
+NewTV精品萌宠,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000067&livemode=1&stbId=yu&mode=1
+NewTV精品萌宠,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000006000032328&livemode=1&stbId=yu&mode=1
+NewTV潮妈辣婆,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000018&livemode=1&stbId=yu&mode=1
+NewTV潮妈辣婆,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=6516734029835465177&livemode=1&stbId=yu&mode=1
+NewTV怡伴健康,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000023&livemode=1&stbId=yu&mode=1
+NewTV怡伴健康,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=1000000005000266011&livemode=1&stbId=yu&mode=1
+NewTV怡伴健康,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=7820874641606664941&livemode=1&stbId=yu&mode=1
+NewTV武搏世界,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=hnbblive&Contentid=2000000003000000007&livemode=1&stbId=yu&mode=1
+NewTV武搏世界,http://gslbserv.itv.cmvideo.cn:80/1.m3u8?channel-id=ystenlive&Contentid=bokesen&livemode=1&stbId=yu&mode=1
diff --git a/JS/56动漫.js b/JS/56动漫.js
new file mode 100644
index 0000000..266b5f0
--- /dev/null
+++ b/JS/56动漫.js
@@ -0,0 +1,40 @@
+var rule = {
+ title: '56动漫',
+ host: 'https://www.56dm.cc/',
+ url: 'https://www.56dm.cc/type/fyclass-fypage.html',
+ searchUrl: 'https://www.56dm.cc/search/**----------fypage---.html',
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
+ headers: {
+ 'User-Agent': 'UC_UA', // "Cookie": ""
+ }, // class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
+ class_parse: '.snui-header-menu-nav li:gt(0):lt(6);a&&Text;a&&href;.*/(.*?).html',
+ play_parse: true,
+ lazy: `js:
+ if(/\\.(m3u8|mp4)/.test(input)){
+ input = {parse:0,url:input}
+ }else{
+ if(rule.parse_url.startsWith('json:')){
+ let purl = rule.parse_url.replace('json:','')+input;
+ let html = request(purl);
+ input = {parse:0,url:JSON.parse(html).url}
+ }else{
+ input= rule.parse_url+input;
+ }
+ }
+ `,
+ limit: 6,
+ 推荐: '.cCBf_FAAEfbc;li;a&&title;.lazyload&&data-original;.dAD_BBCI&&Text;a&&href',
+ double: true, // 推荐内容是否双层定位
+ 一级: '.cCBf_FAAEfbc li;a&&title;a&&data-original;.dAD_BBCI&&Text;a&&href',
+ 二级: {
+ "title": "h1&&Text",
+ "img": ".stui-content__thumb .lazyload&&data-original",
+ "desc": ".cCBf_DABCcac__hcIdeE p:eq(0)&&Text;.cCBf_DABCcac__hcIdeE p:eq(1)&&Text;.cCBf_DABCcac__hcIdeE p:eq(2)&&Text;.cCBf_DABCcac__hcIdeE p:eq(3)&&Text;.cCBf_DABCcac__hcIdeE p:eq(4)&&Text",
+ "content": ".detail&&Text",
+ "tabs": ".channel-tab li",
+ "lists": ".play-list-content:eq(#id) li"
+ },
+ 搜索: '.cCBf_FAAEfbc__dbD;a&&title;.lazyload&&data-original;.dAD_BBCI&&Text;a&&href;.cCBf_FAAEfbc__hcIdeE&&p:eq(0) p&&Text',
+}
\ No newline at end of file
diff --git a/drpy_js/APPV2[模板].js b/JS/APPV2.js
similarity index 100%
rename from drpy_js/APPV2[模板].js
rename to JS/APPV2.js
diff --git a/JS/Anime1.js b/JS/Anime1.js
new file mode 100644
index 0000000..c0e6fb0
--- /dev/null
+++ b/JS/Anime1.js
@@ -0,0 +1,169 @@
+// 注意事项:此源仅支持 影视TV 及 爱佬版tvbox最新版
+// 注意事项:此源仅支持 影视TV 及 爱佬版tvbox最新版
+// 注意事项:此源仅支持 影视TV 及 爱佬版tvbox最新版
+// 3个set-Cookie
+
+var rule = {
+ title:'Anime1动畫',
+ host:'https://anime1.me',
+ url: '/fyclass',
+ detailUrl:'/?cat=fyid',
+ searchUrl: '/page/fypage?s=**',
+ searchable:2,
+ quickSearch:0,
+ headers:{'User-Agent': 'PC_UA'},
+ timeout:5000,
+ class_name:'連載中&2025&2024&2023&2022&2021&2020&2019&2018&更早',
+ class_url:'連載中&2025&2024&2023&2022&2021&2020&2019&2018&2017',
+ play_parse:true,
+ lazy:`js:
+ var apiurl = 'https://v.anime1.me/api';
+ var html = request(apiurl, {
+ headers: {
+ 'Referer': HOST,
+ },
+ body: 'd=' + input,
+ method: 'POST',
+ withHeaders: true
+ });
+ let json = JSON.parse(html);
+ print(json);
+ log(Object.keys(json));
+ let setCk = Object.keys(json).filter(it => it.toLowerCase() === "set-cookie");
+ let cookie = setCk ? json[setCk] : "";
+ // 3个set-Cookie
+ if (Array.isArray(cookie)) {
+ cookie = cookie.join(';');
+ }
+ cookie = cookie.split(';').filter(function(it) {
+ return ['e', 'p', 'h'].includes(it.split('=')[0])
+ }).join(';');
+ log(cookie);
+ var purl = JSON.parse(json.body).s[0].src;
+ if (purl.startsWith('/')) {
+ purl = 'https:' + purl
+ }
+ input = {
+ jx: 0,
+ url: purl,
+ parse: 0,
+ header: JSON.stringify({
+ 'referer': HOST,
+ 'Cookie': cookie,
+ 'user-agent': PC_UA
+ }),
+ }
+ `,
+ limit:6,
+ 推荐: `js:
+ var d = [];
+ function stripHtmlTag(src) {
+ return src.replace(/<\\/?[^>]+(>|$)/g, '').replace(/&.{1,5};/g, '').replace(/\\s{2,}/g, ' ');
+ }
+ var timestamp = new Date().getTime();
+ var json = request('https://d1zquzjgwo9yb.cloudfront.net/?_=' + timestamp);
+ var list = JSON.parse(json);
+ let playKeys = Object.values(list).filter(function(x) {
+ return x[2].includes('連載中');
+ });
+ playKeys.forEach(function(it) {
+ d.push({
+ title: stripHtmlTag(it[1]),
+ img: 'https://sta.anicdn.com/playerImg/8.jpg',
+ desc: it[2],
+ url: it[0],
+ });
+ });
+ setResult(d);
+ `,
+ 一级: `js:
+ var d = [];
+ function stripHtmlTag(src) {
+ return src.replace(/<\\/?[^>]+(>|$)/g, '').replace(/&.{1,5};/g, '').replace(/\\s{2,}/g, ' ');
+ }
+ var timestamp = new Date().getTime();
+ var json = request('https://d1zquzjgwo9yb.cloudfront.net/?_=' + timestamp);
+ var list = JSON.parse(json);
+ let playKeys = Object.values(list).filter(function(x) {
+ if (MY_CATE === '連載中') return x[2].includes(MY_CATE);
+ else if (MY_CATE === '2017') return x[3] <= MY_CATE;
+ else return x[3] == MY_CATE;
+ });
+ playKeys.forEach(function(it) {
+ d.push({
+ title: stripHtmlTag(it[1]),
+ img: 'https://sta.anicdn.com/playerImg/8.jpg',
+ desc: it[2],
+ url: it[0],
+ });
+ });
+ setResult(d);
+ `,
+ 二级: `js:
+ pdfh = jsp.pdfh; pdfa = jsp.pdfa; pd = jsp.pd;
+ var html = request(input);
+ var timestamp = new Date().getTime();
+ var json = request('https://d1zquzjgwo9yb.cloudfront.net/?_=' + timestamp);
+ var list = JSON.parse(json);
+ var vid = input.split('=')[1];
+ let playKeys = Object.values(list).find(function(x) {
+ return x[0] === parseInt(vid);
+ });
+ VOD = {
+ vod_pic: 'https://sta.anicdn.com/playerImg/8.jpg',
+ vod_id: playKeys[0],
+ vod_name: playKeys[1],
+ vod_content: playKeys[2],
+ vod_year: playKeys[3],
+ type_name: playKeys[4],
+ vod_actor: playKeys[5],
+ };
+ var pageurl = pd(html, '.cat-links&&a&&href');
+ var pagenum = 1;
+ let vod_tab_list = [];
+ let vlist = [];
+ for (let p = 1; p < parseInt(pagenum) + 1; p++) {
+ let phtml = request(pageurl + '/page/' + pagenum);
+ let new_vod_list = [];
+ let vodList = [];
+ vodList = pdfa(phtml, '.site-main&&article');
+ for (let i = 0; i < vodList.length; i++) {
+ let it = vodList[i];
+ let ptitle = pdfh(it, '.entry-title&&Text').replace(/\\[(.*)\\]/, '$1');
+ let purl = pd(it, '.video-js&&data-apireq');
+ new_vod_list.push(ptitle + '$' + purl);
+ }
+ vlist = vlist.concat(new_vod_list);
+ try {
+ pagenum = pd(phtml, '.nav-previous&&a&&href').split('/page/')[1];
+ } catch(e) {}
+ }
+ let vlist2 = vlist.reverse().join("#");
+ vod_tab_list.push(vlist2);
+ VOD.vod_play_from = '在线播放';
+ VOD.vod_play_url = vod_tab_list.join("$$$");
+ `,
+ 搜索: `js:
+ var d = [];
+ function stripHtmlTag(src) {
+ return src.replace(/<\\/?[^>]+(>|$)/g, '').replace(/&.{1,5};/g, '').replace(/\\s{2,}/g, ' ');
+ }
+ var timestamp = new Date().getTime();
+ var json = request('https://d1zquzjgwo9yb.cloudfront.net/?_=' + timestamp);
+ var list = JSON.parse(json);
+ var wd = input.split('=')[1];
+ let playKeys = Object.values(list).filter(function(x) {
+ return x[1].includes(wd);
+ });
+ log(playKeys);
+ playKeys.forEach(function(it) {
+ d.push({
+ title: stripHtmlTag(it[1]),
+ img: 'https://sta.anicdn.com/playerImg/8.jpg',
+ desc: it[2],
+ url: it[0],
+ });
+ });
+ setResult(d);
+ `,
+}
\ No newline at end of file
diff --git a/JS/NT动漫.js b/JS/NT动漫.js
new file mode 100644
index 0000000..4dde948
--- /dev/null
+++ b/JS/NT动漫.js
@@ -0,0 +1,1013 @@
+// http://www.ntdm.tv
+var rule = {
+ title: 'NT动漫',
+ host: 'http://www.ntdm8.com',
+ homeUrl: '/type/riben.html',
+ // url:'/show/fyclass--------fypage---.html',
+ url: '/show/fyclassfyfilter.html',
+ filterable: 1, //是否启用分类筛选,
+ filter_url: '--{{fl.by}}-{{fl.class}}--{{fl.letter}}---fypage---{{fl.year}}',
+ filter: {
+ "riben": [{
+ "key": "year",
+ "name": "年份:",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000以前",
+ "v": "2000以前"
+ }]
+ }, {
+ "key": "class",
+ "name": "类型:",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "搞笑",
+ "v": "搞笑"
+ }, {
+ "n": "运动",
+ "v": "运动"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "热血",
+ "v": "热血"
+ }, {
+ "n": "战斗",
+ "v": "战斗"
+ }, {
+ "n": "竞技",
+ "v": "竞技"
+ }, {
+ "n": "校园",
+ "v": "校园"
+ }, {
+ "n": "青春",
+ "v": "青春"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "后宫",
+ "v": "后宫"
+ }, {
+ "n": "百合",
+ "v": "百合"
+ }, {
+ "n": "治愈",
+ "v": "治愈"
+ }, {
+ "n": "萝莉",
+ "v": "萝莉"
+ }, {
+ "n": "魔法",
+ "v": "魔法"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "推理",
+ "v": "推理"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "游戏",
+ "v": "游戏"
+ }, {
+ "n": "神魔",
+ "v": "神魔"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "血腥",
+ "v": "血腥"
+ }, {
+ "n": "机战",
+ "v": "机战"
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "犯罪",
+ "v": "犯罪"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "社会",
+ "v": "社会"
+ }, {
+ "n": "职场",
+ "v": "职场"
+ }, {
+ "n": "剧情",
+ "v": "剧情"
+ }, {
+ "n": "伪娘",
+ "v": "伪娘"
+ }, {
+ "n": "耽美",
+ "v": "耽美"
+ }, {
+ "n": "童年",
+ "v": "童年"
+ }, {
+ "n": "教育",
+ "v": "教育"
+ }, {
+ "n": "亲子",
+ "v": "亲子"
+ }, {
+ "n": "真人",
+ "v": "真人"
+ }, {
+ "n": "歌舞",
+ "v": "歌舞"
+ }, {
+ "n": "肉番",
+ "v": "肉番"
+ }, {
+ "n": "美少女",
+ "v": "美少女"
+ }, {
+ "n": "轻小说",
+ "v": "轻小说"
+ }, {
+ "n": "吸血鬼",
+ "v": "吸血鬼"
+ }, {
+ "n": "女性向",
+ "v": "女性向"
+ }, {
+ "n": "泡面番",
+ "v": "泡面番"
+ }, {
+ "n": "欢乐向",
+ "v": "欢乐向"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母:",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }, {
+ "n": "0~9",
+ "v": "0~9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序:",
+ "value": [{
+ "n": "更新时间",
+ "v": "time"
+ }, {
+ "n": "人气",
+ "v": "hits"
+ }, {
+ "n": "评分",
+ "v": "score"
+ }]
+ }],
+ "zhongguo": [{
+ "key": "year",
+ "name": "年份:",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000以前",
+ "v": "2000以前"
+ }]
+ }, {
+ "key": "class",
+ "name": "类型:",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "搞笑",
+ "v": "搞笑"
+ }, {
+ "n": "运动",
+ "v": "运动"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "热血",
+ "v": "热血"
+ }, {
+ "n": "战斗",
+ "v": "战斗"
+ }, {
+ "n": "竞技",
+ "v": "竞技"
+ }, {
+ "n": "校园",
+ "v": "校园"
+ }, {
+ "n": "青春",
+ "v": "青春"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "后宫",
+ "v": "后宫"
+ }, {
+ "n": "百合",
+ "v": "百合"
+ }, {
+ "n": "治愈",
+ "v": "治愈"
+ }, {
+ "n": "萝莉",
+ "v": "萝莉"
+ }, {
+ "n": "魔法",
+ "v": "魔法"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "推理",
+ "v": "推理"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "游戏",
+ "v": "游戏"
+ }, {
+ "n": "神魔",
+ "v": "神魔"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "血腥",
+ "v": "血腥"
+ }, {
+ "n": "机战",
+ "v": "机战"
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "犯罪",
+ "v": "犯罪"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "社会",
+ "v": "社会"
+ }, {
+ "n": "职场",
+ "v": "职场"
+ }, {
+ "n": "剧情",
+ "v": "剧情"
+ }, {
+ "n": "伪娘",
+ "v": "伪娘"
+ }, {
+ "n": "耽美",
+ "v": "耽美"
+ }, {
+ "n": "童年",
+ "v": "童年"
+ }, {
+ "n": "教育",
+ "v": "教育"
+ }, {
+ "n": "亲子",
+ "v": "亲子"
+ }, {
+ "n": "真人",
+ "v": "真人"
+ }, {
+ "n": "歌舞",
+ "v": "歌舞"
+ }, {
+ "n": "肉番",
+ "v": "肉番"
+ }, {
+ "n": "美少女",
+ "v": "美少女"
+ }, {
+ "n": "轻小说",
+ "v": "轻小说"
+ }, {
+ "n": "吸血鬼",
+ "v": "吸血鬼"
+ }, {
+ "n": "女性向",
+ "v": "女性向"
+ }, {
+ "n": "泡面番",
+ "v": "泡面番"
+ }, {
+ "n": "欢乐向",
+ "v": "欢乐向"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母:",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }, {
+ "n": "0~9",
+ "v": "0~9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序:",
+ "value": [{
+ "n": "更新时间",
+ "v": "time"
+ }, {
+ "n": "人气",
+ "v": "hits"
+ }, {
+ "n": "评分",
+ "v": "score"
+ }]
+ }],
+ "omei": [{
+ "key": "year",
+ "name": "年份:",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000以前",
+ "v": "2000以前"
+ }]
+ }, {
+ "key": "class",
+ "name": "类型:",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "搞笑",
+ "v": "搞笑"
+ }, {
+ "n": "运动",
+ "v": "运动"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "热血",
+ "v": "热血"
+ }, {
+ "n": "战斗",
+ "v": "战斗"
+ }, {
+ "n": "竞技",
+ "v": "竞技"
+ }, {
+ "n": "校园",
+ "v": "校园"
+ }, {
+ "n": "青春",
+ "v": "青春"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "后宫",
+ "v": "后宫"
+ }, {
+ "n": "百合",
+ "v": "百合"
+ }, {
+ "n": "治愈",
+ "v": "治愈"
+ }, {
+ "n": "萝莉",
+ "v": "萝莉"
+ }, {
+ "n": "魔法",
+ "v": "魔法"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "推理",
+ "v": "推理"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "游戏",
+ "v": "游戏"
+ }, {
+ "n": "神魔",
+ "v": "神魔"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "血腥",
+ "v": "血腥"
+ }, {
+ "n": "机战",
+ "v": "机战"
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "犯罪",
+ "v": "犯罪"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "社会",
+ "v": "社会"
+ }, {
+ "n": "职场",
+ "v": "职场"
+ }, {
+ "n": "剧情",
+ "v": "剧情"
+ }, {
+ "n": "伪娘",
+ "v": "伪娘"
+ }, {
+ "n": "耽美",
+ "v": "耽美"
+ }, {
+ "n": "童年",
+ "v": "童年"
+ }, {
+ "n": "教育",
+ "v": "教育"
+ }, {
+ "n": "亲子",
+ "v": "亲子"
+ }, {
+ "n": "真人",
+ "v": "真人"
+ }, {
+ "n": "歌舞",
+ "v": "歌舞"
+ }, {
+ "n": "肉番",
+ "v": "肉番"
+ }, {
+ "n": "美少女",
+ "v": "美少女"
+ }, {
+ "n": "轻小说",
+ "v": "轻小说"
+ }, {
+ "n": "吸血鬼",
+ "v": "吸血鬼"
+ }, {
+ "n": "女性向",
+ "v": "女性向"
+ }, {
+ "n": "泡面番",
+ "v": "泡面番"
+ }, {
+ "n": "欢乐向",
+ "v": "欢乐向"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母:",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }, {
+ "n": "0~9",
+ "v": "0~9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序:",
+ "value": [{
+ "n": "更新时间",
+ "v": "time"
+ }, {
+ "n": "人气",
+ "v": "hits"
+ }, {
+ "n": "评分",
+ "v": "score"
+ }]
+ }]
+ },
+ searchUrl: '/search/**----------fypage---.html',
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ headers: { //网站的请求头,完整支持所有的,常带ua和cookies
+ 'User-Agent': 'MOBILE_UA',
+ },
+ class_parse: '.search-tag li;a&&Text;a&&href;.*/(\\w+).html',
+ play_parse: true,
+ detailUrl: '',
+ lazy: "",
+ limit: 6,
+ 推荐: '*',
+ 一级: '.blockcontent1&&.blockdif2;img&&alt;img&&src;.newname&&Text;a&&href',
+ 二级访问前: '',
+ 二级: {
+ "title": "h4&&Text;.detail_imform_value:eq(6)&&Text",
+ "img": ".poster&&src",
+ "desc": ".detail_imform_kv:eq(0)&&Text;.detail_imform_value:eq(5)&&Text;.detail_imform_value:eq(2)&&Text;.detail_imform_kv:eq(0)&&Text;.detail_imform_kv:eq(3)&&Text",
+ "content": ".detail_imform_desc_pre&&Text",
+ "tabs": "#menu0&&li",
+ "lists": ".movurl:eq(#id)&&li"
+ },
+ 搜索: '*',
+}
\ No newline at end of file
diff --git a/JS/NyaFun.js b/JS/NyaFun.js
new file mode 100644
index 0000000..16b21a2
--- /dev/null
+++ b/JS/NyaFun.js
@@ -0,0 +1,13 @@
+muban.短视2.二级.img = '.detail-pic&&img&&data-src';
+var rule = {
+ title: 'NyaFun',
+ 模板:'短视2',
+ host: 'https://www.nyafun.net',
+ homeUrl:'/map.html',
+ url: '/index.php/api/vod#type=fyclass&page=fypage',
+ class_name:'番剧&剧场',
+ class_url:'2&1',
+ detailUrl:'/bangumi/fyid.html',
+ 推荐:'.border-box .public-list-box;a&&title;.lazy&&data-src;.public-list-prb&&Text;a&&href',
+ double: false, // 推荐内容是否双层定位
+}
\ No newline at end of file
diff --git a/JS/alishare.txt b/JS/alishare.txt
new file mode 100644
index 0000000..cd52f13
--- /dev/null
+++ b/JS/alishare.txt
@@ -0,0 +1,70 @@
+[
+ {
+ "share_name": "优品阁",
+ "share_id": "uWa9gbM3RJ7"
+ },
+ {
+ "share_name": "阿里1T",
+ "share_id": "mxAfB6eRgY4"
+ },
+ {
+ "share_name": "平凡中的",
+ "share_id": "4ydLxf7VgH7"
+ },
+ {
+ "share_name": "tacit0924",
+ "share_id": "DNgnCudf4cD?pwd=6666"
+ },
+ {
+ "share_name": "黄妈",
+ "share_id": "4bGRVUdUtct"
+ },
+ {
+ "share_name": "YYDSVIP",
+ "share_id": "dieULBdYP3D"
+ },
+ {
+ "share_name": "优源阁",
+ "share_id": "RnjUi1urdb2"
+ },
+ {
+ "share_name": "风流动漫",
+ "share_id": "WdaaeX7HK44"
+ },
+ {
+ "share_name": "风流剧集",
+ "share_id": "kgxWjZsK6bq"
+ },
+ {
+ "share_name": "xiaaluo",
+ "share_id": "sg8CdGUwmUr"
+ },
+ {
+ "share_name": "4K影视",
+ "share_id": "wHPKUENKFsS"
+ },
+ {
+ "share_name": "诺兰全集",
+ "share_id": "gf2GebXnZHh"
+ },
+ {
+ "share_name": "纪录片",
+ "share_id": "fSNHaYST47s"
+ },
+ {
+ "share_name": "掌灯者|港",
+ "share_id": "wHPKUENKFsS"
+ },
+ {
+ "share_name": "掌灯者|一",
+ "share_id": "wHPKUENKFsS"
+ },
+ {
+ "share_name": "掌灯者|二",
+ "share_id": "wHPKUENKFsS"
+ },
+ {
+ "share_name": "掌灯者|三",
+ "share_id": "wHPKUENKFsS"
+ }
+]
\ No newline at end of file
diff --git a/JS/cheerio.min.js b/JS/cheerio.min.js
new file mode 100644
index 0000000..24acb69
--- /dev/null
+++ b/JS/cheerio.min.js
@@ -0,0 +1,10945 @@
+var e, t = function() {
+ return t = 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
+ }, t.apply(this, arguments)
+ },
+ n = {
+ xml: !1,
+ decodeEntities: !0
+ },
+ r = {
+ _useHtmlParser2: !0,
+ xmlMode: !0
+ };
+
+function i(e) {
+ return (null == e ? void 0 : e.xml) ? "boolean" == typeof e.xml ? r : t(t({}, r), e.xml) : null != e ? e : void 0
+}! function(e) {
+ e.Root = "root", e.Text = "text", e.Directive = "directive", e.Comment = "comment", e.Script = "script", e.Style = "style", e.Tag = "tag", e.CDATA = "cdata", e.Doctype = "doctype"
+}(e || (e = {}));
+const s = e.Root,
+ a = e.Text,
+ o = e.Directive,
+ c = e.Comment,
+ l = e.Script,
+ h = e.Style,
+ u = e.Tag,
+ p = e.CDATA,
+ f = e.Doctype;
+class d {
+ constructor() {
+ this.parent = null, this.prev = null, this.next = null, this.startIndex = null, this.endIndex = null
+ }
+ get parentNode() {
+ return this.parent
+ }
+ set parentNode(e) {
+ this.parent = e
+ }
+ get previousSibling() {
+ return this.prev
+ }
+ set previousSibling(e) {
+ this.prev = e
+ }
+ get nextSibling() {
+ return this.next
+ }
+ set nextSibling(e) {
+ this.next = e
+ }
+ cloneNode(e = !1) {
+ return v(this, e)
+ }
+}
+class E extends d {
+ constructor(e) {
+ super(), this.data = e
+ }
+ get nodeValue() {
+ return this.data
+ }
+ set nodeValue(e) {
+ this.data = e
+ }
+}
+class m extends E {
+ constructor() {
+ super(...arguments), this.type = e.Text
+ }
+ get nodeType() {
+ return 3
+ }
+}
+class T extends E {
+ constructor() {
+ super(...arguments), this.type = e.Comment
+ }
+ get nodeType() {
+ return 8
+ }
+}
+class _ extends E {
+ constructor(t, n) {
+ super(n), this.name = t, this.type = e.Directive
+ }
+ get nodeType() {
+ return 1
+ }
+}
+class A extends d {
+ constructor(e) {
+ super(), this.children = e
+ }
+ get firstChild() {
+ var e;
+ return null !== (e = this.children[0]) && void 0 !== e ? e : null
+ }
+ get lastChild() {
+ return this.children.length > 0 ? this.children[this.children.length - 1] : null
+ }
+ get childNodes() {
+ return this.children
+ }
+ set childNodes(e) {
+ this.children = e
+ }
+}
+class g extends A {
+ constructor() {
+ super(...arguments), this.type = e.CDATA
+ }
+ get nodeType() {
+ return 4
+ }
+}
+class N extends A {
+ constructor() {
+ super(...arguments), this.type = e.Root
+ }
+ get nodeType() {
+ return 9
+ }
+}
+class C extends A {
+ constructor(t, n, r = [], i = ("script" === t ? e.Script : "style" === t ? e.Style : e.Tag)) {
+ super(r), this.name = t, this.attribs = n, this.type = i
+ }
+ get nodeType() {
+ return 1
+ }
+ get tagName() {
+ return this.name
+ }
+ set tagName(e) {
+ this.name = e
+ }
+ get attributes() {
+ return Object.keys(this.attribs).map((e => {
+ var t, n;
+ return {
+ name: e,
+ value: this.attribs[e],
+ namespace: null === (t = this["x-attribsNamespace"]) || void 0 === t ? void 0 : t[e],
+ prefix: null === (n = this["x-attribsPrefix"]) || void 0 === n ? void 0 : n[e]
+ }
+ }))
+ }
+}
+
+function I(t) {
+ return (n = t).type === e.Tag || n.type === e.Script || n.type === e.Style;
+ var n
+}
+
+function S(t) {
+ return t.type === e.CDATA
+}
+
+function b(t) {
+ return t.type === e.Text
+}
+
+function O(t) {
+ return t.type === e.Comment
+}
+
+function y(t) {
+ return t.type === e.Directive
+}
+
+function L(t) {
+ return t.type === e.Root
+}
+
+function k(e) {
+ return Object.prototype.hasOwnProperty.call(e, "children")
+}
+
+function v(e, t = !1) {
+ let n;
+ if (b(e)) n = new m(e.data);
+ else if (O(e)) n = new T(e.data);
+ else if (I(e)) {
+ const r = t ? D(e.children) : [],
+ i = new C(e.name, {
+ ...e.attribs
+ }, r);
+ r.forEach((e => e.parent = i)), null != e.namespace && (i.namespace = e.namespace), e["x-attribsNamespace"] && (i["x-attribsNamespace"] = {
+ ...e["x-attribsNamespace"]
+ }), e["x-attribsPrefix"] && (i["x-attribsPrefix"] = {
+ ...e["x-attribsPrefix"]
+ }), n = i
+ } else if (S(e)) {
+ const r = t ? D(e.children) : [],
+ i = new g(r);
+ r.forEach((e => e.parent = i)), n = i
+ } else if (L(e)) {
+ const r = t ? D(e.children) : [],
+ i = new N(r);
+ r.forEach((e => e.parent = i)), e["x-mode"] && (i["x-mode"] = e["x-mode"]), n = i
+ } else {
+ if (!y(e)) throw new Error(`Not implemented yet: ${e.type}`);
+ {
+ const t = new _(e.name, e.data);
+ null != e["x-name"] && (t["x-name"] = e["x-name"], t["x-publicId"] = e["x-publicId"], t["x-systemId"] = e["x-systemId"]), n = t
+ }
+ }
+ return n.startIndex = e.startIndex, n.endIndex = e.endIndex, null != e.sourceCodeLocation && (n.sourceCodeLocation = e.sourceCodeLocation), n
+}
+
+function D(e) {
+ const t = e.map((e => v(e, !0)));
+ for (let e = 1; e < t.length; e++) t[e].prev = t[e - 1], t[e - 1].next = t[e];
+ return t
+}
+const R = {
+ withStartIndices: !1,
+ withEndIndices: !1,
+ xmlMode: !1
+};
+class M {
+ constructor(e, t, n) {
+ this.dom = [], this.root = new N(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null, "function" == typeof t && (n = t, t = R), "object" == typeof e && (t = e, e = void 0), this.callback = null != e ? e : null, this.options = null != t ? t : R, this.elementCB = null != n ? n : null
+ }
+ onparserinit(e) {
+ this.parser = e
+ }
+ onreset() {
+ this.dom = [], this.root = new N(this.dom), this.done = !1, this.tagStack = [this.root], this.lastNode = null, this.parser = null
+ }
+ onend() {
+ this.done || (this.done = !0, this.parser = null, this.handleCallback(null))
+ }
+ onerror(e) {
+ this.handleCallback(e)
+ }
+ onclosetag() {
+ this.lastNode = null;
+ const e = this.tagStack.pop();
+ this.options.withEndIndices && (e.endIndex = this.parser.endIndex), this.elementCB && this.elementCB(e)
+ }
+ onopentag(t, n) {
+ const r = this.options.xmlMode ? e.Tag : void 0,
+ i = new C(t, n, void 0, r);
+ this.addNode(i), this.tagStack.push(i)
+ }
+ ontext(t) {
+ const {
+ lastNode: n
+ } = this;
+ if (n && n.type === e.Text) n.data += t, this.options.withEndIndices && (n.endIndex = this.parser.endIndex);
+ else {
+ const e = new m(t);
+ this.addNode(e), this.lastNode = e
+ }
+ }
+ oncomment(t) {
+ if (this.lastNode && this.lastNode.type === e.Comment) return void(this.lastNode.data += t);
+ const n = new T(t);
+ this.addNode(n), this.lastNode = n
+ }
+ oncommentend() {
+ this.lastNode = null
+ }
+ oncdatastart() {
+ const e = new m(""),
+ t = new g([e]);
+ this.addNode(t), e.parent = t, this.lastNode = e
+ }
+ oncdataend() {
+ this.lastNode = null
+ }
+ onprocessinginstruction(e, t) {
+ const n = new _(e, t);
+ this.addNode(n)
+ }
+ handleCallback(e) {
+ if ("function" == typeof this.callback) this.callback(e, this.dom);
+ else if (e) throw e
+ }
+ addNode(e) {
+ const t = this.tagStack[this.tagStack.length - 1],
+ n = t.children[t.children.length - 1];
+ this.options.withStartIndices && (e.startIndex = this.parser.startIndex), this.options.withEndIndices && (e.endIndex = this.parser.endIndex), t.children.push(e), n && (e.prev = n, n.next = e), e.parent = t, this.lastNode = null
+ }
+}
+const P = /["&'<>$\x80-\uFFFF]/g,
+ x = new Map([
+ [34, """],
+ [38, "&"],
+ [39, "'"],
+ [60, "<"],
+ [62, ">"]
+ ]),
+ w = null != String.prototype.codePointAt ? (e, t) => e.codePointAt(t) : (e, t) => 55296 == (64512 & e.charCodeAt(t)) ? 1024 * (e.charCodeAt(t) - 55296) + e.charCodeAt(t + 1) - 56320 + 65536 : e.charCodeAt(t);
+
+function B(e) {
+ let t, n = "",
+ r = 0;
+ for (; null !== (t = P.exec(e));) {
+ const i = t.index,
+ s = e.charCodeAt(i),
+ a = x.get(s);
+ void 0 !== a ? (n += e.substring(r, i) + a, r = i + 1) : (n += `${e.substring(r,i)}${w(e,i).toString(16)};`, r = P.lastIndex += Number(55296 == (64512 & s)))
+ }
+ return n + e.substr(r)
+}
+
+function F(e, t) {
+ return function(n) {
+ let r, i = 0,
+ s = "";
+ for (; r = e.exec(n);) i !== r.index && (s += n.substring(i, r.index)), s += t.get(r[0].charCodeAt(0)), i = r.index + 1;
+ return s + n.substring(i)
+ }
+}
+const U = F(/["&\u00A0]/g, new Map([
+ [34, """],
+ [38, "&"],
+ [160, " "]
+ ])),
+ H = F(/[&<>\u00A0]/g, new Map([
+ [38, "&"],
+ [60, "<"],
+ [62, ">"],
+ [160, " "]
+ ])),
+ G = new Map(["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feDropShadow", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "textPath"].map((e => [e.toLowerCase(), e]))),
+ Y = new Map(["definitionURL", "attributeName", "attributeType", "baseFrequency", "baseProfile", "calcMode", "clipPathUnits", "diffuseConstant", "edgeMode", "filterUnits", "glyphRef", "gradientTransform", "gradientUnits", "kernelMatrix", "kernelUnitLength", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "limitingConeAngle", "markerHeight", "markerUnits", "markerWidth", "maskContentUnits", "maskUnits", "numOctaves", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "refX", "refY", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "specularConstant", "specularExponent", "spreadMethod", "startOffset", "stdDeviation", "stitchTiles", "surfaceScale", "systemLanguage", "tableValues", "targetX", "targetY", "textLength", "viewBox", "viewTarget", "xChannelSelector", "yChannelSelector", "zoomAndPan"].map((e => [e.toLowerCase(), e]))),
+ q = new Set(["style", "script", "xmp", "iframe", "noembed", "noframes", "plaintext", "noscript"]);
+
+function K(e) {
+ return e.replace(/"/g, """)
+}
+const j = new Set(["area", "base", "basefont", "br", "col", "command", "embed", "frame", "hr", "img", "input", "isindex", "keygen", "link", "meta", "param", "source", "track", "wbr"]);
+
+function V(e, t = {}) {
+ const n = "length" in e ? e : [e];
+ let r = "";
+ for (let e = 0; e < n.length; e++) r += W(n[e], t);
+ return r
+}
+
+function W(e, t) {
+ switch (e.type) {
+ case s:
+ return V(e.children, t);
+ case f:
+ case o:
+ return `<${e.data}>`;
+ case c:
+ return function(e) {
+ return `\x3c!--${e.data}--\x3e`
+ }(e);
+ case p:
+ return function(e) {
+ return ``
+ }(e);
+ case l:
+ case h:
+ case u:
+ return function(e, t) {
+ var n;
+ "foreign" === t.xmlMode && (e.name = null !== (n = G.get(e.name)) && void 0 !== n ? n : e.name, e.parent && Q.has(e.parent.name) && (t = {
+ ...t,
+ xmlMode: !1
+ }));
+ !t.xmlMode && X.has(e.name) && (t = {
+ ...t,
+ xmlMode: "foreign"
+ });
+ let r = `<${e.name}`;
+ const i = function(e, t) {
+ var n;
+ if (!e) return;
+ const r = !1 === (null !== (n = t.encodeEntities) && void 0 !== n ? n : t.decodeEntities) ? K : t.xmlMode || "utf8" !== t.encodeEntities ? B : U;
+ return Object.keys(e).map((n => {
+ var i, s;
+ const a = null !== (i = e[n]) && void 0 !== i ? i : "";
+ return "foreign" === t.xmlMode && (n = null !== (s = Y.get(n)) && void 0 !== s ? s : n), t.emptyAttrs || t.xmlMode || "" !== a ? `${n}="${r(a)}"` : n
+ })).join(" ")
+ }(e.attribs, t);
+ i && (r += ` ${i}`);
+ 0 === e.children.length && (t.xmlMode ? !1 !== t.selfClosingTags : t.selfClosingTags && j.has(e.name)) ? (t.xmlMode || (r += " "), r += "/>") : (r += ">", e.children.length > 0 && (r += V(e.children, t)), !t.xmlMode && j.has(e.name) || (r += `${e.name}>`));
+ return r
+ }(e, t);
+ case a:
+ return function(e, t) {
+ var n;
+ let r = e.data || "";
+ !1 === (null !== (n = t.encodeEntities) && void 0 !== n ? n : t.decodeEntities) || !t.xmlMode && e.parent && q.has(e.parent.name) || (r = t.xmlMode || "utf8" !== t.encodeEntities ? B(r) : H(r));
+ return r
+ }(e, t)
+ }
+}
+const Q = new Set(["mi", "mo", "mn", "ms", "mtext", "annotation-xml", "foreignObject", "desc", "title"]),
+ X = new Set(["svg", "math"]);
+
+function $(e, t) {
+ return V(e, t)
+}
+
+function z(e) {
+ return Array.isArray(e) ? e.map(z).join("") : k(e) && !O(e) ? z(e.children) : b(e) ? e.data : ""
+}
+
+function J(t) {
+ return Array.isArray(t) ? t.map(J).join("") : k(t) && (t.type === e.Tag || S(t)) ? J(t.children) : b(t) ? t.data : ""
+}
+
+function Z(e) {
+ return k(e) ? e.children : []
+}
+
+function ee(e) {
+ return e.parent || null
+}
+
+function te(e) {
+ const t = ee(e);
+ if (null != t) return Z(t);
+ const n = [e];
+ let {
+ prev: r,
+ next: i
+ } = e;
+ for (; null != r;) n.unshift(r), ({
+ prev: r
+ } = r);
+ for (; null != i;) n.push(i), ({
+ next: i
+ } = i);
+ return n
+}
+
+function ne(e) {
+ let {
+ next: t
+ } = e;
+ for (; null !== t && !I(t);)({
+ next: t
+ } = t);
+ return t
+}
+
+function re(e) {
+ let {
+ prev: t
+ } = e;
+ for (; null !== t && !I(t);)({
+ prev: t
+ } = t);
+ return t
+}
+
+function ie(e) {
+ if (e.prev && (e.prev.next = e.next), e.next && (e.next.prev = e.prev), e.parent) {
+ const t = e.parent.children;
+ t.splice(t.lastIndexOf(e), 1)
+ }
+}
+
+function se(e, t, n = !0, r = 1 / 0) {
+ return Array.isArray(t) || (t = [t]), ae(e, t, n, r)
+}
+
+function ae(e, t, n, r) {
+ const i = [];
+ for (const s of t) {
+ if (e(s) && (i.push(s), --r <= 0)) break;
+ if (n && k(s) && s.children.length > 0) {
+ const t = ae(e, s.children, n, r);
+ if (i.push(...t), r -= t.length, r <= 0) break
+ }
+ }
+ return i
+}
+
+function oe(e, t, n = !0) {
+ let r = null;
+ for (let i = 0; i < t.length && !r; i++) {
+ const s = t[i];
+ I(s) && (e(s) ? r = s : n && s.children.length > 0 && (r = oe(e, s.children, !0)))
+ }
+ return r
+}
+const ce = {
+ tag_name: e => "function" == typeof e ? t => I(t) && e(t.name) : "*" === e ? I : t => I(t) && t.name === e,
+ tag_type: e => "function" == typeof e ? t => e(t.type) : t => t.type === e,
+ tag_contains: e => "function" == typeof e ? t => b(t) && e(t.data) : t => b(t) && t.data === e
+};
+
+function le(e, t) {
+ return "function" == typeof t ? n => I(n) && t(n.attribs[e]) : n => I(n) && n.attribs[e] === t
+}
+
+function he(e, t) {
+ return n => e(n) || t(n)
+}
+
+function ue(e) {
+ const t = Object.keys(e).map((t => {
+ const n = e[t];
+ return Object.prototype.hasOwnProperty.call(ce, t) ? ce[t](n) : le(t, n)
+ }));
+ return 0 === t.length ? null : t.reduce(he)
+}
+
+function pe(e, t, n = !0, r = 1 / 0) {
+ return se(ce.tag_name(e), t, n, r)
+}
+var fe;
+
+function de(e, t) {
+ const n = [],
+ r = [];
+ if (e === t) return 0;
+ let i = k(e) ? e : e.parent;
+ for (; i;) n.unshift(i), i = i.parent;
+ for (i = k(t) ? t : t.parent; i;) r.unshift(i), i = i.parent;
+ const s = Math.min(n.length, r.length);
+ let a = 0;
+ for (; a < s && n[a] === r[a];) a++;
+ if (0 === a) return fe.DISCONNECTED;
+ const o = n[a - 1],
+ c = o.children,
+ l = n[a],
+ h = r[a];
+ return c.indexOf(l) > c.indexOf(h) ? o === t ? fe.FOLLOWING | fe.CONTAINED_BY : fe.FOLLOWING : o === e ? fe.PRECEDING | fe.CONTAINS : fe.PRECEDING
+}
+
+function Ee(e) {
+ return (e = e.filter(((e, t, n) => !n.includes(e, t + 1)))).sort(((e, t) => {
+ const n = de(e, t);
+ return n & fe.PRECEDING ? -1 : n & fe.FOLLOWING ? 1 : 0
+ })), e
+}! function(e) {
+ e[e.DISCONNECTED = 1] = "DISCONNECTED", e[e.PRECEDING = 2] = "PRECEDING", e[e.FOLLOWING = 4] = "FOLLOWING", e[e.CONTAINS = 8] = "CONTAINS", e[e.CONTAINED_BY = 16] = "CONTAINED_BY"
+}(fe || (fe = {}));
+const me = ["url", "type", "lang"],
+ Te = ["fileSize", "bitrate", "framerate", "samplingrate", "channels", "duration", "height", "width"];
+
+function _e(e) {
+ return pe("media:content", e).map((e => {
+ const {
+ attribs: t
+ } = e, n = {
+ medium: t.medium,
+ isDefault: !!t.isDefault
+ };
+ for (const e of me) t[e] && (n[e] = t[e]);
+ for (const e of Te) t[e] && (n[e] = parseInt(t[e], 10));
+ return t.expression && (n.expression = t.expression), n
+ }))
+}
+
+function Ae(e, t) {
+ return pe(e, t, !0, 1)[0]
+}
+
+function ge(e, t, n = !1) {
+ return z(pe(e, t, n, 1)).trim()
+}
+
+function Ne(e, t, n, r, i = !1) {
+ const s = ge(n, r, i);
+ s && (e[t] = s)
+}
+
+function Ce(e) {
+ return "rss" === e || "feed" === e || "rdf:RDF" === e
+}
+var Ie, Se = Object.freeze({
+ __proto__: null,
+ isTag: I,
+ isCDATA: S,
+ isText: b,
+ isComment: O,
+ isDocument: L,
+ hasChildren: k,
+ getOuterHTML: $,
+ getInnerHTML: function(e, t) {
+ return k(e) ? e.children.map((e => $(e, t))).join("") : ""
+ },
+ getText: function e(t) {
+ return Array.isArray(t) ? t.map(e).join("") : I(t) ? "br" === t.name ? "\n" : e(t.children) : S(t) ? e(t.children) : b(t) ? t.data : ""
+ },
+ textContent: z,
+ innerText: J,
+ getChildren: Z,
+ getParent: ee,
+ getSiblings: te,
+ getAttributeValue: function(e, t) {
+ var n;
+ return null === (n = e.attribs) || void 0 === n ? void 0 : n[t]
+ },
+ hasAttrib: function(e, t) {
+ return null != e.attribs && Object.prototype.hasOwnProperty.call(e.attribs, t) && null != e.attribs[t]
+ },
+ getName: function(e) {
+ return e.name
+ },
+ nextElementSibling: ne,
+ prevElementSibling: re,
+ removeElement: ie,
+ replaceElement: function(e, t) {
+ const n = t.prev = e.prev;
+ n && (n.next = t);
+ const r = t.next = e.next;
+ r && (r.prev = t);
+ const i = t.parent = e.parent;
+ if (i) {
+ const n = i.children;
+ n[n.lastIndexOf(e)] = t, e.parent = null
+ }
+ },
+ appendChild: function(e, t) {
+ if (ie(t), t.next = null, t.parent = e, e.children.push(t) > 1) {
+ const n = e.children[e.children.length - 2];
+ n.next = t, t.prev = n
+ } else t.prev = null
+ },
+ append: function(e, t) {
+ ie(t);
+ const {
+ parent: n
+ } = e, r = e.next;
+ if (t.next = r, t.prev = e, e.next = t, t.parent = n, r) {
+ if (r.prev = t, n) {
+ const e = n.children;
+ e.splice(e.lastIndexOf(r), 0, t)
+ }
+ } else n && n.children.push(t)
+ },
+ prependChild: function(e, t) {
+ if (ie(t), t.parent = e, t.prev = null, 1 !== e.children.unshift(t)) {
+ const n = e.children[1];
+ n.prev = t, t.next = n
+ } else t.next = null
+ },
+ prepend: function(e, t) {
+ ie(t);
+ const {
+ parent: n
+ } = e;
+ if (n) {
+ const r = n.children;
+ r.splice(r.indexOf(e), 0, t)
+ }
+ e.prev && (e.prev.next = t), t.parent = n, t.prev = e.prev, t.next = e, e.prev = t
+ },
+ filter: se,
+ find: ae,
+ findOneChild: function(e, t) {
+ return t.find(e)
+ },
+ findOne: oe,
+ existsOne: function e(t, n) {
+ return n.some((n => I(n) && (t(n) || n.children.length > 0 && e(t, n.children))))
+ },
+ findAll: function(e, t) {
+ var n;
+ const r = [],
+ i = t.filter(I);
+ let s;
+ for (; s = i.shift();) {
+ const t = null === (n = s.children) || void 0 === n ? void 0 : n.filter(I);
+ t && t.length > 0 && i.unshift(...t), e(s) && r.push(s)
+ }
+ return r
+ },
+ testElement: function(e, t) {
+ const n = ue(e);
+ return !n || n(t)
+ },
+ getElements: function(e, t, n, r = 1 / 0) {
+ const i = ue(e);
+ return i ? se(i, t, n, r) : []
+ },
+ getElementById: function(e, t, n = !0) {
+ return Array.isArray(t) || (t = [t]), oe(le("id", e), t, n)
+ },
+ getElementsByTagName: pe,
+ getElementsByTagType: function(e, t, n = !0, r = 1 / 0) {
+ return se(ce.tag_type(e), t, n, r)
+ },
+ removeSubsets: function(e) {
+ let t = e.length;
+ for (; --t >= 0;) {
+ const n = e[t];
+ if (t > 0 && e.lastIndexOf(n, t - 1) >= 0) e.splice(t, 1);
+ else
+ for (let r = n.parent; r; r = r.parent)
+ if (e.includes(r)) {
+ e.splice(t, 1);
+ break
+ }
+ }
+ return e
+ },
+ get DocumentPosition() {
+ return fe
+ },
+ compareDocumentPosition: de,
+ uniqueSort: Ee,
+ getFeed: function(e) {
+ const t = Ae(Ce, e);
+ return t ? "feed" === t.name ? function(e) {
+ var t;
+ const n = e.children,
+ r = {
+ type: "atom",
+ items: pe("entry", n).map((e => {
+ var t;
+ const {
+ children: n
+ } = e, r = {
+ media: _e(n)
+ };
+ Ne(r, "id", "id", n), Ne(r, "title", "title", n);
+ const i = null === (t = Ae("link", n)) || void 0 === t ? void 0 : t.attribs.href;
+ i && (r.link = i);
+ const s = ge("summary", n) || ge("content", n);
+ s && (r.description = s);
+ const a = ge("updated", n);
+ return a && (r.pubDate = new Date(a)), r
+ }))
+ };
+ Ne(r, "id", "id", n), Ne(r, "title", "title", n);
+ const i = null === (t = Ae("link", n)) || void 0 === t ? void 0 : t.attribs.href;
+ i && (r.link = i);
+ Ne(r, "description", "subtitle", n);
+ const s = ge("updated", n);
+ s && (r.updated = new Date(s));
+ return Ne(r, "author", "email", n, !0), r
+ }(t) : function(e) {
+ var t, n;
+ const r = null !== (n = null === (t = Ae("channel", e.children)) || void 0 === t ? void 0 : t.children) && void 0 !== n ? n : [],
+ i = {
+ type: e.name.substr(0, 3),
+ id: "",
+ items: pe("item", e.children).map((e => {
+ const {
+ children: t
+ } = e, n = {
+ media: _e(t)
+ };
+ Ne(n, "id", "guid", t), Ne(n, "title", "title", t), Ne(n, "link", "link", t), Ne(n, "description", "description", t);
+ const r = ge("pubDate", t);
+ return r && (n.pubDate = new Date(r)), n
+ }))
+ };
+ Ne(i, "title", "title", r), Ne(i, "link", "link", r), Ne(i, "description", "description", r);
+ const s = ge("lastBuildDate", r);
+ s && (i.updated = new Date(s));
+ return Ne(i, "author", "managingEditor", r, !0), i
+ }(t) : null
+ }
+ }),
+ be = "undefined" != typeof global ? global : "undefined" != typeof self ? self : "undefined" != typeof window ? window : {};
+
+function Oe(e) {
+ if (Object.keys) return Object.keys(e);
+ var t = [];
+ for (var n in e) t.push(n);
+ return t
+}
+
+function ye(e, t) {
+ if (e.forEach) return e.forEach(t);
+ for (var n = 0; n < e.length; n++) t(e[n], n, e)
+}
+
+function Le() {
+ try {
+ return Object.defineProperty({}, "_", {}),
+ function(e, t, n) {
+ Object.defineProperty(e, t, {
+ writable: !0,
+ enumerable: !1,
+ configurable: !0,
+ value: n
+ })
+ }
+ } catch (e) {
+ return function(e, t, n) {
+ e[t] = n
+ }
+ }
+}
+var ke = ["Array", "Boolean", "Date", "Error", "EvalError", "Function", "Infinity", "JSON", "Math", "NaN", "Number", "Object", "RangeError", "ReferenceError", "RegExp", "String", "SyntaxError", "TypeError", "URIError", "decodeURI", "decodeURIComponent", "encodeURI", "encodeURIComponent", "escape", "eval", "isFinite", "isNaN", "parseFloat", "parseInt", "undefined", "unescape"];
+
+function ve() {}
+
+function De(e) {
+ if (!(this instanceof De)) return new De(e);
+ this.code = e
+}
+
+function Re(e) {
+ if (Me(e)) return e;
+ var t = new ve;
+ return "object" == typeof e && ye(Oe(e), (function(n) {
+ t[n] = e[n]
+ })), t
+}
+
+function Me(e) {
+ return e instanceof ve
+}
+ve.prototype = {}, De.prototype.runInContext = function(e) {
+ if (!(e instanceof ve)) throw new TypeError("needs a 'context' argument.");
+ if (be.document) {
+ var t = be.document.createElement("iframe");
+ t.style || (t.style = {}), t.style.display = "none", be.document.body.appendChild(t);
+ var n = t.contentWindow,
+ r = n.eval,
+ i = n.execScript;
+ !r && i && (i.call(n, "null"), r = n.eval), ye(Oe(e), (function(t) {
+ n[t] = e[t]
+ })), ye(ke, (function(t) {
+ e[t] && (n[t] = e[t])
+ }));
+ var s = Oe(n),
+ a = r.call(n, this.code);
+ return ye(Oe(n), (function(t) {
+ (t in e || -1 === function(e, t) {
+ if (xe) return e.indexOf(t);
+ for (var n = 0; n < e.length; ++n)
+ if (e[n] === t) return n;
+ return -1
+ }(s, t)) && (e[t] = n[t])
+ })), ye(ke, (function(t) {
+ var r, i, s;
+ t in e || (r = e, i = t, s = n[t], "function" != typeof Ie && (Ie = Le), Ie(r, i, s))
+ })), be.document.body.removeChild(t), a
+ }
+ return function(e, t) {
+ var n = Oe(be);
+ return n.push("with (this.__ctx__){return eval(this.__code__)}"), Function.apply(null, n).apply({
+ __code__: e,
+ __ctx__: t
+ })
+ }(this.code, e)
+}, De.prototype.runInThisContext = function() {
+ return new Function("code", "return eval(code);").call(be, this.code)
+}, De.prototype.runInNewContext = function(e) {
+ var t = Re(e),
+ n = this.runInContext(t);
+ return e && ye(Oe(t), (function(n) {
+ e[n] = t[n]
+ })), n
+};
+var Pe = {
+ runInContext: function(e, t, n) {
+ return new De(e).runInContext(t, n)
+ },
+ isContext: Me,
+ createContext: Re,
+ createScript: function(e) {
+ return new De(e)
+ },
+ Script: De,
+ runInThisContext: function(e, t) {
+ return new De(e).runInThisContext(t)
+ },
+ runInNewContext: function(e, t, n) {
+ return new De(e).runInNewContext(t, n)
+ }
+ },
+ xe = [].indexOf;
+const {
+ hasOwnProperty: we
+} = Object.prototype;
+
+function Be(e, t) {
+ return (e = e.slice()).push(t), e
+}
+
+function Fe(e, t) {
+ return (t = t.slice()).unshift(e), t
+}
+class Ue extends Error {
+ constructor(e) {
+ super('JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'), this.avoidNew = !0, this.value = e, this.name = "NewError"
+ }
+}
+
+function He(e, t, n, r, i) {
+ if (!(this instanceof He)) try {
+ return new He(e, t, n, r, i)
+ } catch (e) {
+ if (!e.avoidNew) throw e;
+ return e.value
+ }
+ "string" == typeof e && (i = r, r = n, n = t, t = e, e = null);
+ const s = e && "object" == typeof e;
+ if (e = e || {}, this.json = e.json || n, this.path = e.path || t, this.resultType = e.resultType || "value", this.flatten = e.flatten || !1, this.wrap = !we.call(e, "wrap") || e.wrap, this.sandbox = e.sandbox || {}, this.preventEval = e.preventEval || !1, this.parent = e.parent || null, this.parentProperty = e.parentProperty || null, this.callback = e.callback || r || null, this.otherTypeCallback = e.otherTypeCallback || i || function() {
+ throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")
+ }, !1 !== e.autostart) {
+ const r = {
+ path: s ? e.path : t
+ };
+ s ? "json" in e && (r.json = e.json) : r.json = n;
+ const i = this.evaluate(r);
+ if (!i || "object" != typeof i) throw new Ue(i);
+ return i
+ }
+}
+He.prototype.evaluate = function(e, t, n, r) {
+ let i = this.parent,
+ s = this.parentProperty,
+ {
+ flatten: a,
+ wrap: o
+ } = this;
+ if (this.currResultType = this.resultType, this.currPreventEval = this.preventEval, this.currSandbox = this.sandbox, n = n || this.callback, this.currOtherTypeCallback = r || this.otherTypeCallback, t = t || this.json, (e = e || this.path) && "object" == typeof e && !Array.isArray(e)) {
+ if (!e.path && "" !== e.path) throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');
+ if (!we.call(e, "json")) throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');
+ ({
+ json: t
+ } = e), a = we.call(e, "flatten") ? e.flatten : a, this.currResultType = we.call(e, "resultType") ? e.resultType : this.currResultType, this.currSandbox = we.call(e, "sandbox") ? e.sandbox : this.currSandbox, o = we.call(e, "wrap") ? e.wrap : o, this.currPreventEval = we.call(e, "preventEval") ? e.preventEval : this.currPreventEval, n = we.call(e, "callback") ? e.callback : n, this.currOtherTypeCallback = we.call(e, "otherTypeCallback") ? e.otherTypeCallback : this.currOtherTypeCallback, i = we.call(e, "parent") ? e.parent : i, s = we.call(e, "parentProperty") ? e.parentProperty : s, e = e.path
+ }
+ if (i = i || null, s = s || null, Array.isArray(e) && (e = He.toPathString(e)), !e && "" !== e || !t) return;
+ const c = He.toPathArray(e);
+ "$" === c[0] && c.length > 1 && c.shift(), this._hasParentSelector = null;
+ const l = this._trace(c, t, ["$"], i, s, n).filter((function(e) {
+ return e && !e.isParentSelector
+ }));
+ return l.length ? o || 1 !== l.length || l[0].hasArrExpr ? l.reduce(((e, t) => {
+ const n = this._getPreferredOutput(t);
+ return a && Array.isArray(n) ? e = e.concat(n) : e.push(n), e
+ }), []) : this._getPreferredOutput(l[0]) : o ? [] : void 0
+}, He.prototype._getPreferredOutput = function(e) {
+ const t = this.currResultType;
+ switch (t) {
+ case "all": {
+ const t = Array.isArray(e.path) ? e.path : He.toPathArray(e.path);
+ return e.pointer = He.toPointer(t), e.path = "string" == typeof e.path ? e.path : He.toPathString(e.path), e
+ }
+ case "value":
+ case "parent":
+ case "parentProperty":
+ return e[t];
+ case "path":
+ return He.toPathString(e[t]);
+ case "pointer":
+ return He.toPointer(e.path);
+ default:
+ throw new TypeError("Unknown result type")
+ }
+}, He.prototype._handleCallback = function(e, t, n) {
+ if (t) {
+ const r = this._getPreferredOutput(e);
+ e.path = "string" == typeof e.path ? e.path : He.toPathString(e.path), t(r, n, e)
+ }
+}, He.prototype._trace = function(e, t, n, r, i, s, a, o) {
+ let c;
+ if (!e.length) return c = {
+ path: n,
+ value: t,
+ parent: r,
+ parentProperty: i,
+ hasArrExpr: a
+ }, this._handleCallback(c, s, "value"), c;
+ const l = e[0],
+ h = e.slice(1),
+ u = [];
+
+ function p(e) {
+ Array.isArray(e) ? e.forEach((e => {
+ u.push(e)
+ })) : u.push(e)
+ }
+ if (("string" != typeof l || o) && t && we.call(t, l)) p(this._trace(h, t[l], Be(n, l), t, l, s, a));
+ else if ("*" === l) this._walk(t, (e => {
+ p(this._trace(h, t[e], Be(n, e), t, e, s, !0, !0))
+ }));
+ else if (".." === l) p(this._trace(h, t, n, r, i, s, a)), this._walk(t, (r => {
+ "object" == typeof t[r] && p(this._trace(e.slice(), t[r], Be(n, r), t, r, s, !0))
+ }));
+ else {
+ if ("^" === l) return this._hasParentSelector = !0, {
+ path: n.slice(0, -1),
+ expr: h,
+ isParentSelector: !0
+ };
+ if ("~" === l) return c = {
+ path: Be(n, l),
+ value: i,
+ parent: r,
+ parentProperty: null
+ }, this._handleCallback(c, s, "property"), c;
+ if ("$" === l) p(this._trace(h, t, n, null, null, s, a));
+ else if (/^(-?\d*):(-?\d*):?(\d*)$/u.test(l)) p(this._slice(l, h, t, n, r, i, s));
+ else if (0 === l.indexOf("?(")) {
+ if (this.currPreventEval) throw new Error("Eval [?(expr)] prevented in JSONPath expression.");
+ const e = l.replace(/^\?\((.*?)\)$/u, "$1");
+ this._walk(t, (a => {
+ this._eval(e, t[a], a, n, r, i) && p(this._trace(h, t[a], Be(n, a), t, a, s, !0))
+ }))
+ } else if ("(" === l[0]) {
+ if (this.currPreventEval) throw new Error("Eval [(expr)] prevented in JSONPath expression.");
+ p(this._trace(Fe(this._eval(l, t, n[n.length - 1], n.slice(0, -1), r, i), h), t, n, r, i, s, a))
+ } else if ("@" === l[0]) {
+ let e = !1;
+ const a = l.slice(1, -2);
+ switch (a) {
+ case "scalar":
+ t && ["object", "function"].includes(typeof t) || (e = !0);
+ break;
+ case "boolean":
+ case "string":
+ case "undefined":
+ case "function":
+ typeof t === a && (e = !0);
+ break;
+ case "integer":
+ !Number.isFinite(t) || t % 1 || (e = !0);
+ break;
+ case "number":
+ Number.isFinite(t) && (e = !0);
+ break;
+ case "nonFinite":
+ "number" != typeof t || Number.isFinite(t) || (e = !0);
+ break;
+ case "object":
+ t && typeof t === a && (e = !0);
+ break;
+ case "array":
+ Array.isArray(t) && (e = !0);
+ break;
+ case "other":
+ e = this.currOtherTypeCallback(t, n, r, i);
+ break;
+ case "null":
+ null === t && (e = !0);
+ break;
+ default:
+ throw new TypeError("Unknown value type " + a)
+ }
+ if (e) return c = {
+ path: n,
+ value: t,
+ parent: r,
+ parentProperty: i
+ }, this._handleCallback(c, s, "value"), c
+ } else if ("`" === l[0] && t && we.call(t, l.slice(1))) {
+ const e = l.slice(1);
+ p(this._trace(h, t[e], Be(n, e), t, e, s, a, !0))
+ } else if (l.includes(",")) {
+ const e = l.split(",");
+ for (const a of e) p(this._trace(Fe(a, h), t, n, r, i, s, !0))
+ } else !o && t && we.call(t, l) && p(this._trace(h, t[l], Be(n, l), t, l, s, a, !0))
+ }
+ if (this._hasParentSelector)
+ for (let e = 0; e < u.length; e++) {
+ const n = u[e];
+ if (n && n.isParentSelector) {
+ const o = this._trace(n.expr, t, n.path, r, i, s, a);
+ if (Array.isArray(o)) {
+ u[e] = o[0];
+ const t = o.length;
+ for (let n = 1; n < t; n++) e++, u.splice(e, 0, o[n])
+ } else u[e] = o
+ }
+ }
+ return u
+}, He.prototype._walk = function(e, t) {
+ if (Array.isArray(e)) {
+ const n = e.length;
+ for (let e = 0; e < n; e++) t(e)
+ } else e && "object" == typeof e && Object.keys(e).forEach((e => {
+ t(e)
+ }))
+}, He.prototype._slice = function(e, t, n, r, i, s, a) {
+ if (!Array.isArray(n)) return;
+ const o = n.length,
+ c = e.split(":"),
+ l = c[2] && Number.parseInt(c[2]) || 1;
+ let h = c[0] && Number.parseInt(c[0]) || 0,
+ u = c[1] && Number.parseInt(c[1]) || o;
+ h = h < 0 ? Math.max(0, h + o) : Math.min(o, h), u = u < 0 ? Math.max(0, u + o) : Math.min(o, u);
+ const p = [];
+ for (let e = h; e < u; e += l) {
+ this._trace(Fe(e, t), n, r, i, s, a, !0).forEach((e => {
+ p.push(e)
+ }))
+ }
+ return p
+}, He.prototype._eval = function(e, t, n, r, i, s) {
+ this.currSandbox._$_parentProperty = s, this.currSandbox._$_parent = i, this.currSandbox._$_property = n, this.currSandbox._$_root = this.json, this.currSandbox._$_v = t;
+ const a = e.includes("@path");
+ a && (this.currSandbox._$_path = He.toPathString(r.concat([n])));
+ const o = "script:" + e;
+ if (!He.cache[o]) {
+ let t = e.replace(/@parentProperty/gu, "_$_parentProperty").replace(/@parent/gu, "_$_parent").replace(/@property/gu, "_$_property").replace(/@root/gu, "_$_root").replace(/@([.\s)[])/gu, "_$_v$1");
+ a && (t = t.replace(/@path/gu, "_$_path")), He.cache[o] = new this.vm.Script(t)
+ }
+ try {
+ return He.cache[o].runInNewContext(this.currSandbox)
+ } catch (t) {
+ throw new Error("jsonPath: " + t.message + ": " + e)
+ }
+}, He.cache = {}, He.toPathString = function(e) {
+ const t = e,
+ n = t.length;
+ let r = "$";
+ for (let e = 1; e < n; e++) /^(~|\^|@.*?\(\))$/u.test(t[e]) || (r += /^[0-9*]+$/u.test(t[e]) ? "[" + t[e] + "]" : "['" + t[e] + "']");
+ return r
+}, He.toPointer = function(e) {
+ const t = e,
+ n = t.length;
+ let r = "";
+ for (let e = 1; e < n; e++) /^(~|\^|@.*?\(\))$/u.test(t[e]) || (r += "/" + t[e].toString().replace(/~/gu, "~0").replace(/\//gu, "~1"));
+ return r
+}, He.toPathArray = function(e) {
+ const {
+ cache: t
+ } = He;
+ if (t[e]) return t[e].concat();
+ const n = [],
+ r = e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/gu, ";$&;").replace(/[['](\??\(.*?\))[\]']/gu, (function(e, t) {
+ return "[#" + (n.push(t) - 1) + "]"
+ })).replace(/\[['"]([^'\]]*)['"]\]/gu, (function(e, t) {
+ return "['" + t.replace(/\./gu, "%@%").replace(/~/gu, "%%@@%%") + "']"
+ })).replace(/~/gu, ";~;").replace(/['"]?\.['"]?(?![^[]*\])|\[['"]?/gu, ";").replace(/%@%/gu, ".").replace(/%%@@%%/gu, "~").replace(/(?:;)?(\^+)(?:;)?/gu, (function(e, t) {
+ return ";" + t.split("").join(";") + ";"
+ })).replace(/;;;|;;/gu, ";..;").replace(/;$|'?\]|'$/gu, ""),
+ i = r.split(";").map((function(e) {
+ const t = e.match(/#(\d+)/u);
+ return t && t[1] ? n[t[1]] : e
+ }));
+ return t[e] = i, t[e].concat()
+}, He.prototype.vm = Pe;
+var Ge = "undefined" != typeof globalThis ? globalThis : "undefined" != typeof window ? window : "undefined" != typeof global ? global : "undefined" != typeof self ? self : {};
+
+function Ye() {
+ throw new Error("Dynamic requires are not currently supported by rollup-plugin-commonjs")
+}
+
+function qe(e) {
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e
+}
+
+function Ke(e, t) {
+ return e(t = {
+ exports: {}
+ }, t.exports), t.exports
+}
+var je = Ke((function(e) {
+ var t = Array.prototype,
+ n = Object.prototype,
+ r = {
+ "&": "&",
+ '"': """,
+ "'": "'",
+ "<": "<",
+ ">": ">"
+ },
+ i = /[&"'<>]/g,
+ s = e.exports = {};
+
+ function a(e, t) {
+ return n.hasOwnProperty.call(e, t)
+ }
+
+ function o(e) {
+ return r[e]
+ }
+
+ function c(e, t, n) {
+ var r, i, s;
+ if (e instanceof Error && (e = (i = e).name + ": " + i.message), Object.setPrototypeOf ? (r = new Error(e), Object.setPrototypeOf(r, c.prototype)) : (r = this, Object.defineProperty(r, "message", {
+ enumerable: !1,
+ writable: !0,
+ value: e
+ })), Object.defineProperty(r, "name", {
+ value: "Template render error"
+ }), Error.captureStackTrace && Error.captureStackTrace(r, this.constructor), i) {
+ var a = Object.getOwnPropertyDescriptor(i, "stack");
+ (s = a && (a.get || function() {
+ return a.value
+ })) || (s = function() {
+ return i.stack
+ })
+ } else {
+ var o = new Error(e).stack;
+ s = function() {
+ return o
+ }
+ }
+ return Object.defineProperty(r, "stack", {
+ get: function() {
+ return s.call(r)
+ }
+ }), Object.defineProperty(r, "cause", {
+ value: i
+ }), r.lineno = t, r.colno = n, r.firstUpdate = !0, r.Update = function(e) {
+ var t = "(" + (e || "unknown path") + ")";
+ return this.firstUpdate && (this.lineno && this.colno ? t += " [Line " + this.lineno + ", Column " + this.colno + "]" : this.lineno && (t += " [Line " + this.lineno + "]")), t += "\n ", this.firstUpdate && (t += " "), this.message = t + (this.message || ""), this.firstUpdate = !1, this
+ }, r
+ }
+
+ function l(e) {
+ return "[object Function]" === n.toString.call(e)
+ }
+
+ function h(e) {
+ return "[object Array]" === n.toString.call(e)
+ }
+
+ function u(e) {
+ return "[object String]" === n.toString.call(e)
+ }
+
+ function p(e) {
+ return "[object Object]" === n.toString.call(e)
+ }
+
+ function f(e) {
+ var t = function(e) {
+ return e ? "string" == typeof e ? e.split(".") : [e] : []
+ }(e);
+ return function(e) {
+ for (var n = e, r = 0; r < t.length; r++) {
+ var i = t[r];
+ if (!a(n, i)) return;
+ n = n[i]
+ }
+ return n
+ }
+ }
+
+ function d(e) {
+ return Array.prototype.slice.call(e)
+ }
+
+ function E(e, t, n) {
+ return Array.prototype.indexOf.call(e || [], t, n)
+ }
+
+ function m(e) {
+ var t = [];
+ for (var n in e) a(e, n) && t.push(n);
+ return t
+ }
+ s.hasOwnProp = a, s._prettifyError = function(e, t, n) {
+ if (n.Update || (n = new s.TemplateError(n)), n.Update(e), !t) {
+ var r = n;
+ (n = new Error(r.message)).name = r.name
+ }
+ return n
+ }, Object.setPrototypeOf ? Object.setPrototypeOf(c.prototype, Error.prototype) : c.prototype = Object.create(Error.prototype, {
+ constructor: {
+ value: c
+ }
+ }), s.TemplateError = c, s.escape = function(e) {
+ return e.replace(i, o)
+ }, s.isFunction = l, s.isArray = h, s.isString = u, s.isObject = p, s.getAttrGetter = f, s.groupBy = function(e, t, n) {
+ for (var r = {}, i = l(t) ? t : f(t), s = 0; s < e.length; s++) {
+ var a = e[s],
+ o = i(a, s);
+ if (void 0 === o && !0 === n) throw new TypeError('groupby: attribute "' + t + '" resolved to undefined');
+ (r[o] || (r[o] = [])).push(a)
+ }
+ return r
+ }, s.toArray = d, s.without = function(e) {
+ var t = [];
+ if (!e) return t;
+ for (var n = e.length, r = d(arguments).slice(1), i = -1; ++i < n;) - 1 === E(r, e[i]) && t.push(e[i]);
+ return t
+ }, s.repeat = function(e, t) {
+ for (var n = "", r = 0; r < t; r++) n += e;
+ return n
+ }, s.each = function(e, n, r) {
+ if (null != e)
+ if (t.forEach && e.forEach === t.forEach) e.forEach(n, r);
+ else if (e.length === +e.length)
+ for (var i = 0, s = e.length; i < s; i++) n.call(r, e[i], i, e)
+ }, s.map = function(e, n) {
+ var r = [];
+ if (null == e) return r;
+ if (t.map && e.map === t.map) return e.map(n);
+ for (var i = 0; i < e.length; i++) r[r.length] = n(e[i], i);
+ return e.length === +e.length && (r.length = e.length), r
+ }, s.asyncIter = function(e, t, n) {
+ var r = -1;
+ ! function i() {
+ ++r < e.length ? t(e[r], r, i, n) : n()
+ }()
+ }, s.asyncFor = function(e, t, n) {
+ var r = m(e || {}),
+ i = r.length,
+ s = -1;
+ ! function a() {
+ s++;
+ var o = r[s];
+ s < i ? t(o, e[o], s, i, a) : n()
+ }()
+ }, s.indexOf = E, s.keys = m, s._entries = function(e) {
+ return m(e).map((function(t) {
+ return [t, e[t]]
+ }))
+ }, s._values = function(e) {
+ return m(e).map((function(t) {
+ return e[t]
+ }))
+ }, s._assign = s.extend = function(e, t) {
+ return e = e || {}, m(t).forEach((function(n) {
+ e[n] = t[n]
+ })), e
+ }, s.inOperator = function(e, t) {
+ if (h(t) || u(t)) return -1 !== t.indexOf(e);
+ if (p(t)) return e in t;
+ throw new Error('Cannot use "in" operator to search for "' + e + '" in unexpected types.')
+ }
+}));
+
+function Ve() {
+ throw new Error("setTimeout has not been defined")
+}
+
+function We() {
+ throw new Error("clearTimeout has not been defined")
+}
+var Qe = Ve,
+ Xe = We;
+
+function $e(e) {
+ if (Qe === setTimeout) return setTimeout(e, 0);
+ if ((Qe === Ve || !Qe) && setTimeout) return Qe = setTimeout, setTimeout(e, 0);
+ try {
+ return Qe(e, 0)
+ } catch (t) {
+ try {
+ return Qe.call(null, e, 0)
+ } catch (t) {
+ return Qe.call(this, e, 0)
+ }
+ }
+}
+"function" == typeof be.setTimeout && (Qe = setTimeout), "function" == typeof be.clearTimeout && (Xe = clearTimeout);
+var ze, Je = [],
+ Ze = !1,
+ et = -1;
+
+function tt() {
+ Ze && ze && (Ze = !1, ze.length ? Je = ze.concat(Je) : et = -1, Je.length && nt())
+}
+
+function nt() {
+ if (!Ze) {
+ var e = $e(tt);
+ Ze = !0;
+ for (var t = Je.length; t;) {
+ for (ze = Je, Je = []; ++et < t;) ze && ze[et].run();
+ et = -1, t = Je.length
+ }
+ ze = null, Ze = !1,
+ function(e) {
+ if (Xe === clearTimeout) return clearTimeout(e);
+ if ((Xe === We || !Xe) && clearTimeout) return Xe = clearTimeout, clearTimeout(e);
+ try {
+ Xe(e)
+ } catch (t) {
+ try {
+ return Xe.call(null, e)
+ } catch (t) {
+ return Xe.call(this, e)
+ }
+ }
+ }(e)
+ }
+}
+
+function rt(e, t) {
+ this.fun = e, this.array = t
+}
+rt.prototype.run = function() {
+ this.fun.apply(null, this.array)
+};
+
+function it() {}
+var st = it,
+ at = it,
+ ot = it,
+ ct = it,
+ lt = it,
+ ht = it,
+ ut = it;
+var pt = be.performance || {},
+ ft = pt.now || pt.mozNow || pt.msNow || pt.oNow || pt.webkitNow || function() {
+ return (new Date).getTime()
+ };
+var dt = new Date;
+var Et = {
+ nextTick: function(e) {
+ var t = new Array(arguments.length - 1);
+ if (arguments.length > 1)
+ for (var n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
+ Je.push(new rt(e, t)), 1 !== Je.length || Ze || $e(nt)
+ },
+ title: "browser",
+ browser: !0,
+ env: {},
+ argv: [],
+ version: "",
+ versions: {},
+ on: st,
+ addListener: at,
+ once: ot,
+ off: ct,
+ removeListener: lt,
+ removeAllListeners: ht,
+ emit: ut,
+ binding: function(e) {
+ throw new Error("process.binding is not supported")
+ },
+ cwd: function() {
+ return "/"
+ },
+ chdir: function(e) {
+ throw new Error("process.chdir is not supported")
+ },
+ umask: function() {
+ return 0
+ },
+ hrtime: function(e) {
+ var t = .001 * ft.call(pt),
+ n = Math.floor(t),
+ r = Math.floor(t % 1 * 1e9);
+ return e && (n -= e[0], (r -= e[1]) < 0 && (n--, r += 1e9)), [n, r]
+ },
+ platform: "browser",
+ release: {},
+ config: {},
+ uptime: function() {
+ return (new Date - dt) / 1e3
+ }
+};
+
+function mt() {}
+
+function Tt() {
+ Tt.init.call(this)
+}
+
+function _t(e) {
+ return void 0 === e._maxListeners ? Tt.defaultMaxListeners : e._maxListeners
+}
+
+function At(e, t, n) {
+ if (t) e.call(n);
+ else
+ for (var r = e.length, i = yt(e, r), s = 0; s < r; ++s) i[s].call(n)
+}
+
+function gt(e, t, n, r) {
+ if (t) e.call(n, r);
+ else
+ for (var i = e.length, s = yt(e, i), a = 0; a < i; ++a) s[a].call(n, r)
+}
+
+function Nt(e, t, n, r, i) {
+ if (t) e.call(n, r, i);
+ else
+ for (var s = e.length, a = yt(e, s), o = 0; o < s; ++o) a[o].call(n, r, i)
+}
+
+function Ct(e, t, n, r, i, s) {
+ if (t) e.call(n, r, i, s);
+ else
+ for (var a = e.length, o = yt(e, a), c = 0; c < a; ++c) o[c].call(n, r, i, s)
+}
+
+function It(e, t, n, r) {
+ if (t) e.apply(n, r);
+ else
+ for (var i = e.length, s = yt(e, i), a = 0; a < i; ++a) s[a].apply(n, r)
+}
+
+function St(e, t, n, r) {
+ var i, s, a;
+ if ("function" != typeof n) throw new TypeError('"listener" argument must be a function');
+ if ((s = e._events) ? (s.newListener && (e.emit("newListener", t, n.listener ? n.listener : n), s = e._events), a = s[t]) : (s = e._events = new mt, e._eventsCount = 0), a) {
+ if ("function" == typeof a ? a = s[t] = r ? [n, a] : [a, n] : r ? a.unshift(n) : a.push(n), !a.warned && (i = _t(e)) && i > 0 && a.length > i) {
+ a.warned = !0;
+ var o = new Error("Possible EventEmitter memory leak detected. " + a.length + " " + t + " listeners added. Use emitter.setMaxListeners() to increase limit");
+ o.name = "MaxListenersExceededWarning", o.emitter = e, o.type = t, o.count = a.length,
+ function(e) {
+ "function" == typeof console.warn ? console.warn(e) : console.log(e)
+ }(o)
+ }
+ } else a = s[t] = n, ++e._eventsCount;
+ return e
+}
+
+function bt(e, t, n) {
+ var r = !1;
+
+ function i() {
+ e.removeListener(t, i), r || (r = !0, n.apply(e, arguments))
+ }
+ return i.listener = n, i
+}
+
+function Ot(e) {
+ var t = this._events;
+ if (t) {
+ var n = t[e];
+ if ("function" == typeof n) return 1;
+ if (n) return n.length
+ }
+ return 0
+}
+
+function yt(e, t) {
+ for (var n = new Array(t); t--;) n[t] = e[t];
+ return n
+}
+
+function Lt() {
+ var e;
+ Tt.call(this), this.__emitError = (e = this, function(t) {
+ e.emit("error", t)
+ })
+}
+
+function kt() {
+ return new Lt
+}
+mt.prototype = Object.create(null), Tt.EventEmitter = Tt, Tt.usingDomains = !1, Tt.prototype.domain = void 0, Tt.prototype._events = void 0, Tt.prototype._maxListeners = void 0, Tt.defaultMaxListeners = 10, Tt.init = function() {
+ this.domain = null, Tt.usingDomains && undefined.active, this._events && this._events !== Object.getPrototypeOf(this)._events || (this._events = new mt, this._eventsCount = 0), this._maxListeners = this._maxListeners || void 0
+}, Tt.prototype.setMaxListeners = function(e) {
+ if ("number" != typeof e || e < 0 || isNaN(e)) throw new TypeError('"n" argument must be a positive number');
+ return this._maxListeners = e, this
+}, Tt.prototype.getMaxListeners = function() {
+ return _t(this)
+}, Tt.prototype.emit = function(e) {
+ var t, n, r, i, s, a, o, c = "error" === e;
+ if (a = this._events) c = c && null == a.error;
+ else if (!c) return !1;
+ if (o = this.domain, c) {
+ if (t = arguments[1], !o) {
+ if (t instanceof Error) throw t;
+ var l = new Error('Uncaught, unspecified "error" event. (' + t + ")");
+ throw l.context = t, l
+ }
+ return t || (t = new Error('Uncaught, unspecified "error" event')), t.domainEmitter = this, t.domain = o, t.domainThrown = !1, o.emit("error", t), !1
+ }
+ if (!(n = a[e])) return !1;
+ var h = "function" == typeof n;
+ switch (r = arguments.length) {
+ case 1:
+ At(n, h, this);
+ break;
+ case 2:
+ gt(n, h, this, arguments[1]);
+ break;
+ case 3:
+ Nt(n, h, this, arguments[1], arguments[2]);
+ break;
+ case 4:
+ Ct(n, h, this, arguments[1], arguments[2], arguments[3]);
+ break;
+ default:
+ for (i = new Array(r - 1), s = 1; s < r; s++) i[s - 1] = arguments[s];
+ It(n, h, this, i)
+ }
+ return !0
+}, Tt.prototype.addListener = function(e, t) {
+ return St(this, e, t, !1)
+}, Tt.prototype.on = Tt.prototype.addListener, Tt.prototype.prependListener = function(e, t) {
+ return St(this, e, t, !0)
+}, Tt.prototype.once = function(e, t) {
+ if ("function" != typeof t) throw new TypeError('"listener" argument must be a function');
+ return this.on(e, bt(this, e, t)), this
+}, Tt.prototype.prependOnceListener = function(e, t) {
+ if ("function" != typeof t) throw new TypeError('"listener" argument must be a function');
+ return this.prependListener(e, bt(this, e, t)), this
+}, Tt.prototype.removeListener = function(e, t) {
+ var n, r, i, s, a;
+ if ("function" != typeof t) throw new TypeError('"listener" argument must be a function');
+ if (!(r = this._events)) return this;
+ if (!(n = r[e])) return this;
+ if (n === t || n.listener && n.listener === t) 0 == --this._eventsCount ? this._events = new mt : (delete r[e], r.removeListener && this.emit("removeListener", e, n.listener || t));
+ else if ("function" != typeof n) {
+ for (i = -1, s = n.length; s-- > 0;)
+ if (n[s] === t || n[s].listener && n[s].listener === t) {
+ a = n[s].listener, i = s;
+ break
+ } if (i < 0) return this;
+ if (1 === n.length) {
+ if (n[0] = void 0, 0 == --this._eventsCount) return this._events = new mt, this;
+ delete r[e]
+ } else ! function(e, t) {
+ for (var n = t, r = n + 1, i = e.length; r < i; n += 1, r += 1) e[n] = e[r];
+ e.pop()
+ }(n, i);
+ r.removeListener && this.emit("removeListener", e, a || t)
+ }
+ return this
+}, Tt.prototype.removeAllListeners = function(e) {
+ var t, n;
+ if (!(n = this._events)) return this;
+ if (!n.removeListener) return 0 === arguments.length ? (this._events = new mt, this._eventsCount = 0) : n[e] && (0 == --this._eventsCount ? this._events = new mt : delete n[e]), this;
+ if (0 === arguments.length) {
+ for (var r, i = Object.keys(n), s = 0; s < i.length; ++s) "removeListener" !== (r = i[s]) && this.removeAllListeners(r);
+ return this.removeAllListeners("removeListener"), this._events = new mt, this._eventsCount = 0, this
+ }
+ if ("function" == typeof(t = n[e])) this.removeListener(e, t);
+ else if (t)
+ do {
+ this.removeListener(e, t[t.length - 1])
+ } while (t[0]);
+ return this
+}, Tt.prototype.listeners = function(e) {
+ var t, n = this._events;
+ return n && (t = n[e]) ? "function" == typeof t ? [t.listener || t] : function(e) {
+ for (var t = new Array(e.length), n = 0; n < t.length; ++n) t[n] = e[n].listener || e[n];
+ return t
+ }(t) : []
+}, Tt.listenerCount = function(e, t) {
+ return "function" == typeof e.listenerCount ? e.listenerCount(t) : Ot.call(e, t)
+}, Tt.prototype.listenerCount = Ot, Tt.prototype.eventNames = function() {
+ return this._eventsCount > 0 ? Reflect.ownKeys(this._events) : []
+}, ("function" == typeof Object.create ? function(e, t) {
+ e.super_ = t, e.prototype = Object.create(t.prototype, {
+ constructor: {
+ value: e,
+ enumerable: !1,
+ writable: !0,
+ configurable: !0
+ }
+ })
+} : function(e, t) {
+ e.super_ = t;
+ var n = function() {};
+ n.prototype = t.prototype, e.prototype = new n, e.prototype.constructor = e
+})(Lt, Tt), Lt.prototype.add = function(e) {
+ e.on("error", this.__emitError)
+}, Lt.prototype.remove = function(e) {
+ e.removeListener("error", this.__emitError)
+}, Lt.prototype.bind = function(e) {
+ var t = this.__emitError;
+ return function() {
+ var n = Array.prototype.slice.call(arguments);
+ try {
+ e.apply(null, n)
+ } catch (e) {
+ t(e)
+ }
+ }
+}, Lt.prototype.intercept = function(e) {
+ var t = this.__emitError;
+ return function(n) {
+ if (n) t(n);
+ else {
+ var r = Array.prototype.slice.call(arguments, 1);
+ try {
+ e.apply(null, r)
+ } catch (n) {
+ t(n)
+ }
+ }
+ }
+}, Lt.prototype.run = function(e) {
+ var t = this.__emitError;
+ try {
+ e()
+ } catch (e) {
+ t(e)
+ }
+ return this
+}, Lt.prototype.dispose = function() {
+ return this.removeAllListeners(), this
+}, Lt.prototype.enter = Lt.prototype.exit = function() {
+ return this
+};
+var vt, Dt = {
+ Domain: Lt,
+ createDomain: kt,
+ create: kt
+ },
+ Rt = "function" == typeof setImmediate,
+ Mt = Pt;
+
+function Pt(e) {
+ xt.length || (Ut(), wt = !0), xt[xt.length] = e
+}
+var xt = [],
+ wt = !1,
+ Bt = 0;
+
+function Ft() {
+ for (; Bt < xt.length;) {
+ var e = Bt;
+ if (Bt += 1, xt[e].call(), Bt > 1024) {
+ for (var t = 0, n = xt.length - Bt; t < n; t++) xt[t] = xt[t + Bt];
+ xt.length -= Bt, Bt = 0
+ }
+ }
+ xt.length = 0, Bt = 0, wt = !1
+}
+
+function Ut() {
+ var e = Et.domain;
+ e && (vt || (vt = Dt), vt.active = Et.domain = null), wt && Rt ? setImmediate(Ft) : Et.nextTick(Ft), e && (vt.active = Et.domain = e)
+}
+Pt.requestFlush = Ut;
+var Ht = [],
+ Gt = function(e) {
+ var t;
+ t = Ht.length ? Ht.pop() : new Yt;
+ t.task = e, t.domain = Et.domain, Mt(t)
+ };
+
+function Yt() {
+ this.task = null, this.domain = null
+}
+Yt.prototype.call = function() {
+ this.domain && this.domain.enter();
+ var e = !0;
+ try {
+ this.task.call(), e = !1, this.domain && this.domain.exit()
+ } finally {
+ e && Mt.requestFlush(), this.task = null, this.domain = null, Ht.push(this)
+ }
+};
+var qt = Ke((function(e) {
+ ! function(t) {
+ var n = function() {
+ var e = Array.prototype.slice.call(arguments);
+ "function" == typeof e[0] && e[0].apply(null, e.splice(1))
+ },
+ r = function(e) {
+ "function" == typeof setImmediate ? setImmediate(e) : void 0 !== Et && Et.nextTick ? Et.nextTick(e) : setTimeout(e, 0)
+ },
+ i = Array.isArray || function(e) {
+ return "[object Array]" === Object.prototype.toString.call(e)
+ },
+ s = function(e, t, s) {
+ var a = s ? r : n;
+ if (t = t || function() {}, !i(e)) {
+ var o = new Error("First argument to waterfall must be an array of functions");
+ return t(o)
+ }
+ if (!e.length) return t();
+ var c = function(e) {
+ return function(n) {
+ if (n) t.apply(null, arguments), t = function() {};
+ else {
+ var r = Array.prototype.slice.call(arguments, 1),
+ i = e.next();
+ i ? r.push(c(i)) : r.push(t), a((function() {
+ e.apply(null, r)
+ }))
+ }
+ }
+ };
+ c(function(e) {
+ var t = function(n) {
+ var r = function() {
+ return e.length && e[n].apply(null, arguments), r.next()
+ };
+ return r.next = function() {
+ return n < e.length - 1 ? t(n + 1) : null
+ }, r
+ };
+ return t(0)
+ }(e))()
+ };
+ e.exports ? e.exports = s : t.waterfall = s
+ }(Ge)
+}));
+
+function Kt(e, t, n, r) {
+ return {
+ type: e,
+ value: t,
+ lineno: n,
+ colno: r
+ }
+}
+var jt = function() {
+ function e(e, t) {
+ this.str = e, this.index = 0, this.len = e.length, this.lineno = 0, this.colno = 0, this.in_code = !1;
+ var n = (t = t || {}).tags || {};
+ this.tags = {
+ BLOCK_START: n.blockStart || "{%",
+ BLOCK_END: n.blockEnd || "%}",
+ VARIABLE_START: n.variableStart || "{{",
+ VARIABLE_END: n.variableEnd || "}}",
+ COMMENT_START: n.commentStart || "{#",
+ COMMENT_END: n.commentEnd || "#}"
+ }, this.trimBlocks = !!t.trimBlocks, this.lstripBlocks = !!t.lstripBlocks
+ }
+ var t = e.prototype;
+ return t.nextToken = function() {
+ var e, t = this.lineno,
+ n = this.colno;
+ if (this.in_code) {
+ var r = this.current();
+ if (this.isFinished()) return null;
+ if ('"' === r || "'" === r) return Kt("string", this._parseString(r), t, n);
+ if (e = this._extract(" \n\t\r ")) return Kt("whitespace", e, t, n);
+ if ((e = this._extractString(this.tags.BLOCK_END)) || (e = this._extractString("-" + this.tags.BLOCK_END))) return this.in_code = !1, this.trimBlocks && ("\n" === (r = this.current()) ? this.forward() : "\r" === r && (this.forward(), "\n" === (r = this.current()) ? this.forward() : this.back())), Kt("block-end", e, t, n);
+ if ((e = this._extractString(this.tags.VARIABLE_END)) || (e = this._extractString("-" + this.tags.VARIABLE_END))) return this.in_code = !1, Kt("variable-end", e, t, n);
+ if ("r" === r && "/" === this.str.charAt(this.index + 1)) {
+ this.forwardN(2);
+ for (var i = ""; !this.isFinished();) {
+ if ("/" === this.current() && "\\" !== this.previous()) {
+ this.forward();
+ break
+ }
+ i += this.current(), this.forward()
+ }
+ for (var s = ["g", "i", "m", "y"], a = ""; !this.isFinished();) {
+ if (!(-1 !== s.indexOf(this.current()))) break;
+ a += this.current(), this.forward()
+ }
+ return Kt("regex", {
+ body: i,
+ flags: a
+ }, t, n)
+ }
+ if (-1 !== "()[]{}%*-+~/#,:|.<>=!".indexOf(r)) {
+ this.forward();
+ var o, c = ["==", "===", "!=", "!==", "<=", ">=", "//", "**"],
+ l = r + this.current();
+ switch (-1 !== je.indexOf(c, l) && (this.forward(), r = l, -1 !== je.indexOf(c, l + this.current()) && (r = l + this.current(), this.forward())), r) {
+ case "(":
+ o = "left-paren";
+ break;
+ case ")":
+ o = "right-paren";
+ break;
+ case "[":
+ o = "left-bracket";
+ break;
+ case "]":
+ o = "right-bracket";
+ break;
+ case "{":
+ o = "left-curly";
+ break;
+ case "}":
+ o = "right-curly";
+ break;
+ case ",":
+ o = "comma";
+ break;
+ case ":":
+ o = "colon";
+ break;
+ case "~":
+ o = "tilde";
+ break;
+ case "|":
+ o = "pipe";
+ break;
+ default:
+ o = "operator"
+ }
+ return Kt(o, r, t, n)
+ }
+ if ((e = this._extractUntil(" \n\t\r ()[]{}%*-+~/#,:|.<>=!")).match(/^[-+]?[0-9]+$/)) return "." === this.current() ? (this.forward(), Kt("float", e + "." + this._extract("0123456789"), t, n)) : Kt("int", e, t, n);
+ if (e.match(/^(true|false)$/)) return Kt("boolean", e, t, n);
+ if ("none" === e) return Kt("none", e, t, n);
+ if ("null" === e) return Kt("none", e, t, n);
+ if (e) return Kt("symbol", e, t, n);
+ throw new Error("Unexpected value while parsing: " + e)
+ }
+ var h, u = this.tags.BLOCK_START.charAt(0) + this.tags.VARIABLE_START.charAt(0) + this.tags.COMMENT_START.charAt(0) + this.tags.COMMENT_END.charAt(0);
+ if (this.isFinished()) return null;
+ if ((e = this._extractString(this.tags.BLOCK_START + "-")) || (e = this._extractString(this.tags.BLOCK_START))) return this.in_code = !0, Kt("block-start", e, t, n);
+ if ((e = this._extractString(this.tags.VARIABLE_START + "-")) || (e = this._extractString(this.tags.VARIABLE_START))) return this.in_code = !0, Kt("variable-start", e, t, n);
+ e = "";
+ var p = !1;
+ for (this._matches(this.tags.COMMENT_START) && (p = !0, e = this._extractString(this.tags.COMMENT_START)); null !== (h = this._extractUntil(u));) {
+ if (e += h, (this._matches(this.tags.BLOCK_START) || this._matches(this.tags.VARIABLE_START) || this._matches(this.tags.COMMENT_START)) && !p) {
+ if (this.lstripBlocks && this._matches(this.tags.BLOCK_START) && this.colno > 0 && this.colno <= e.length) {
+ var f = e.slice(-this.colno);
+ if (/^\s+$/.test(f) && !(e = e.slice(0, -this.colno)).length) return this.nextToken()
+ }
+ break
+ }
+ if (this._matches(this.tags.COMMENT_END)) {
+ if (!p) throw new Error("unexpected end of comment");
+ e += this._extractString(this.tags.COMMENT_END);
+ break
+ }
+ e += this.current(), this.forward()
+ }
+ if (null === h && p) throw new Error("expected end of comment, got end of file");
+ return Kt(p ? "comment" : "data", e, t, n)
+ }, t._parseString = function(e) {
+ this.forward();
+ for (var t = ""; !this.isFinished() && this.current() !== e;) {
+ var n = this.current();
+ if ("\\" === n) {
+ switch (this.forward(), this.current()) {
+ case "n":
+ t += "\n";
+ break;
+ case "t":
+ t += "\t";
+ break;
+ case "r":
+ t += "\r";
+ break;
+ default:
+ t += this.current()
+ }
+ this.forward()
+ } else t += n, this.forward()
+ }
+ return this.forward(), t
+ }, t._matches = function(e) {
+ return this.index + e.length > this.len ? null : this.str.slice(this.index, this.index + e.length) === e
+ }, t._extractString = function(e) {
+ return this._matches(e) ? (this.forwardN(e.length), e) : null
+ }, t._extractUntil = function(e) {
+ return this._extractMatching(!0, e || "")
+ }, t._extract = function(e) {
+ return this._extractMatching(!1, e)
+ }, t._extractMatching = function(e, t) {
+ if (this.isFinished()) return null;
+ var n = t.indexOf(this.current());
+ if (e && -1 === n || !e && -1 !== n) {
+ var r = this.current();
+ this.forward();
+ for (var i = t.indexOf(this.current());
+ (e && -1 === i || !e && -1 !== i) && !this.isFinished();) r += this.current(), this.forward(), i = t.indexOf(this.current());
+ return r
+ }
+ return ""
+ }, t._extractRegex = function(e) {
+ var t = this.currentStr().match(e);
+ return t ? (this.forwardN(t[0].length), t) : null
+ }, t.isFinished = function() {
+ return this.index >= this.len
+ }, t.forwardN = function(e) {
+ for (var t = 0; t < e; t++) this.forward()
+ }, t.forward = function() {
+ this.index++, "\n" === this.previous() ? (this.lineno++, this.colno = 0) : this.colno++
+ }, t.backN = function(e) {
+ for (var t = 0; t < e; t++) this.back()
+ }, t.back = function() {
+ if (this.index--, "\n" === this.current()) {
+ this.lineno--;
+ var e = this.src.lastIndexOf("\n", this.index - 1);
+ this.colno = -1 === e ? this.index : this.index - e
+ } else this.colno--
+ }, t.current = function() {
+ return this.isFinished() ? "" : this.str.charAt(this.index)
+ }, t.currentStr = function() {
+ return this.isFinished() ? "" : this.str.substr(this.index)
+ }, t.previous = function() {
+ return this.str.charAt(this.index - 1)
+ }, e
+ }(),
+ Vt = {
+ lex: function(e, t) {
+ return new jt(e, t)
+ },
+ TOKEN_STRING: "string",
+ TOKEN_WHITESPACE: "whitespace",
+ TOKEN_DATA: "data",
+ TOKEN_BLOCK_START: "block-start",
+ TOKEN_BLOCK_END: "block-end",
+ TOKEN_VARIABLE_START: "variable-start",
+ TOKEN_VARIABLE_END: "variable-end",
+ TOKEN_COMMENT: "comment",
+ TOKEN_LEFT_PAREN: "left-paren",
+ TOKEN_RIGHT_PAREN: "right-paren",
+ TOKEN_LEFT_BRACKET: "left-bracket",
+ TOKEN_RIGHT_BRACKET: "right-bracket",
+ TOKEN_LEFT_CURLY: "left-curly",
+ TOKEN_RIGHT_CURLY: "right-curly",
+ TOKEN_OPERATOR: "operator",
+ TOKEN_COMMA: "comma",
+ TOKEN_COLON: "colon",
+ TOKEN_TILDE: "tilde",
+ TOKEN_PIPE: "pipe",
+ TOKEN_INT: "int",
+ TOKEN_FLOAT: "float",
+ TOKEN_BOOLEAN: "boolean",
+ TOKEN_NONE: "none",
+ TOKEN_SYMBOL: "symbol",
+ TOKEN_SPECIAL: "special",
+ TOKEN_REGEX: "regex"
+ };
+
+function Wt(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 Qt(e, t, n) {
+ return t && Wt(e.prototype, t), n && Wt(e, n), e
+}
+
+function Xt(e, t) {
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, $t(e, t)
+}
+
+function $t(e, t) {
+ return $t = Object.setPrototypeOf || function(e, t) {
+ return e.__proto__ = t, e
+ }, $t(e, t)
+}
+
+function zt(e, t, n) {
+ n = n || {}, je.keys(n).forEach((function(t) {
+ n[t] = function(e, t) {
+ return "function" != typeof e || "function" != typeof t ? t : function() {
+ var n = this.parent;
+ this.parent = e;
+ var r = t.apply(this, arguments);
+ return this.parent = n, r
+ }
+ }(e.prototype[t], n[t])
+ }));
+ var r = function(e) {
+ function n() {
+ return e.apply(this, arguments) || this
+ }
+ return Xt(n, e), Qt(n, [{
+ key: "typename",
+ get: function() {
+ return t
+ }
+ }]), n
+ }(e);
+ return je._assign(r.prototype, n), r
+}
+var Jt = function() {
+ function e() {
+ this.init.apply(this, arguments)
+ }
+ return e.prototype.init = function() {}, e.extend = function(e, t) {
+ return "object" == typeof e && (t = e, e = "anonymous"), zt(this, e, t)
+ }, Qt(e, [{
+ key: "typename",
+ get: function() {
+ return this.constructor.name
+ }
+ }]), e
+ }(),
+ Zt = function(e) {
+ function t() {
+ var t, n;
+ return (t = n = e.call(this) || this).init.apply(t, arguments), n
+ }
+ return Xt(t, e), t.prototype.init = function() {}, t.extend = function(e, t) {
+ return "object" == typeof e && (t = e, e = "anonymous"), zt(this, e, t)
+ }, Qt(t, [{
+ key: "typename",
+ get: function() {
+ return this.constructor.name
+ }
+ }]), t
+ }(Tt),
+ en = {
+ Obj: Jt,
+ EmitterObj: Zt
+ };
+
+function tn(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 nn(e, t, n) {
+ return t && tn(e.prototype, t), n && tn(e, n), e
+}
+
+function rn(e, t) {
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, sn(e, t)
+}
+
+function sn(e, t) {
+ return sn = Object.setPrototypeOf || function(e, t) {
+ return e.__proto__ = t, e
+ }, sn(e, t)
+}
+
+function an(e, t, n) {
+ e instanceof t && n.push(e), e instanceof on && e.findAll(t, n)
+}
+var on = function(e) {
+ function t() {
+ return e.apply(this, arguments) || this
+ }
+ rn(t, e);
+ var n = t.prototype;
+ return n.init = function(e, t) {
+ for (var n = arguments, r = this, i = arguments.length, s = new Array(i > 2 ? i - 2 : 0), a = 2; a < i; a++) s[a - 2] = arguments[a];
+ this.lineno = e, this.colno = t, this.fields.forEach((function(e, t) {
+ var i = n[t + 2];
+ void 0 === i && (i = null), r[e] = i
+ }))
+ }, n.findAll = function(e, t) {
+ var n = this;
+ return t = t || [], this instanceof ln ? this.children.forEach((function(n) {
+ return an(n, e, t)
+ })) : this.fields.forEach((function(r) {
+ return an(n[r], e, t)
+ })), t
+ }, n.iterFields = function(e) {
+ var t = this;
+ this.fields.forEach((function(n) {
+ e(t[n], n)
+ }))
+ }, t
+ }(en.Obj),
+ cn = function(e) {
+ function t() {
+ return e.apply(this, arguments) || this
+ }
+ return rn(t, e), nn(t, [{
+ key: "typename",
+ get: function() {
+ return "Value"
+ }
+ }, {
+ key: "fields",
+ get: function() {
+ return ["value"]
+ }
+ }]), t
+ }(on),
+ ln = function(e) {
+ function t() {
+ return e.apply(this, arguments) || this
+ }
+ rn(t, e);
+ var n = t.prototype;
+ return n.init = function(t, n, r) {
+ e.prototype.init.call(this, t, n, r || [])
+ }, n.addChild = function(e) {
+ this.children.push(e)
+ }, nn(t, [{
+ key: "typename",
+ get: function() {
+ return "NodeList"
+ }
+ }, {
+ key: "fields",
+ get: function() {
+ return ["children"]
+ }
+ }]), t
+ }(on),
+ hn = ln.extend("Root"),
+ un = cn.extend("Literal"),
+ pn = cn.extend("Symbol"),
+ fn = ln.extend("Group"),
+ dn = ln.extend("Array"),
+ En = on.extend("Pair", {
+ fields: ["key", "value"]
+ }),
+ mn = ln.extend("Dict"),
+ Tn = on.extend("LookupVal", {
+ fields: ["target", "val"]
+ }),
+ _n = on.extend("If", {
+ fields: ["cond", "body", "else_"]
+ }),
+ An = _n.extend("IfAsync"),
+ gn = on.extend("InlineIf", {
+ fields: ["cond", "body", "else_"]
+ }),
+ Nn = on.extend("For", {
+ fields: ["arr", "name", "body", "else_"]
+ }),
+ Cn = Nn.extend("AsyncEach"),
+ In = Nn.extend("AsyncAll"),
+ Sn = on.extend("Macro", {
+ fields: ["name", "args", "body"]
+ }),
+ bn = Sn.extend("Caller"),
+ On = on.extend("Import", {
+ fields: ["template", "target", "withContext"]
+ }),
+ yn = function(e) {
+ function t() {
+ return e.apply(this, arguments) || this
+ }
+ return rn(t, e), t.prototype.init = function(t, n, r, i, s) {
+ e.prototype.init.call(this, t, n, r, i || new ln, s)
+ }, nn(t, [{
+ key: "typename",
+ get: function() {
+ return "FromImport"
+ }
+ }, {
+ key: "fields",
+ get: function() {
+ return ["template", "names", "withContext"]
+ }
+ }]), t
+ }(on),
+ Ln = on.extend("FunCall", {
+ fields: ["name", "args"]
+ }),
+ kn = Ln.extend("Filter"),
+ vn = kn.extend("FilterAsync", {
+ fields: ["name", "args", "symbol"]
+ }),
+ Dn = mn.extend("KeywordArgs"),
+ Rn = on.extend("Block", {
+ fields: ["name", "body"]
+ }),
+ Mn = on.extend("Super", {
+ fields: ["blockName", "symbol"]
+ }),
+ Pn = on.extend("TemplateRef", {
+ fields: ["template"]
+ }).extend("Extends"),
+ xn = on.extend("Include", {
+ fields: ["template", "ignoreMissing"]
+ }),
+ wn = on.extend("Set", {
+ fields: ["targets", "value"]
+ }),
+ Bn = on.extend("Switch", {
+ fields: ["expr", "cases", "default"]
+ }),
+ Fn = on.extend("Case", {
+ fields: ["cond", "body"]
+ }),
+ Un = ln.extend("Output"),
+ Hn = on.extend("Capture", {
+ fields: ["body"]
+ }),
+ Gn = un.extend("TemplateData"),
+ Yn = on.extend("UnaryOp", {
+ fields: ["target"]
+ }),
+ qn = on.extend("BinOp", {
+ fields: ["left", "right"]
+ }),
+ Kn = qn.extend("In"),
+ jn = qn.extend("Is"),
+ Vn = qn.extend("Or"),
+ Wn = qn.extend("And"),
+ Qn = Yn.extend("Not"),
+ Xn = qn.extend("Add"),
+ $n = qn.extend("Concat"),
+ zn = qn.extend("Sub"),
+ Jn = qn.extend("Mul"),
+ Zn = qn.extend("Div"),
+ er = qn.extend("FloorDiv"),
+ tr = qn.extend("Mod"),
+ nr = qn.extend("Pow"),
+ rr = Yn.extend("Neg"),
+ ir = Yn.extend("Pos"),
+ sr = on.extend("Compare", {
+ fields: ["expr", "ops"]
+ }),
+ ar = on.extend("CompareOperand", {
+ fields: ["expr", "type"]
+ }),
+ or = on.extend("CallExtension", {
+ init: function(e, t, n, r) {
+ this.parent(), this.extName = e.__name || e, this.prop = t, this.args = n || new ln, this.contentArgs = r || [], this.autoescape = e.autoescape
+ },
+ fields: ["extName", "prop", "args", "contentArgs"]
+ }),
+ cr = or.extend("CallExtensionAsync");
+
+function lr(e, t, n) {
+ var r = e.split("\n");
+ r.forEach((function(e, i) {
+ e && (n && i > 0 || !n) && Et.stdout.write(" ".repeat(t));
+ var s = i === r.length - 1 ? "" : "\n";
+ Et.stdout.write("" + e + s)
+ }))
+}
+var hr = {
+ Node: on,
+ Root: hn,
+ NodeList: ln,
+ Value: cn,
+ Literal: un,
+ Symbol: pn,
+ Group: fn,
+ Array: dn,
+ Pair: En,
+ Dict: mn,
+ Output: Un,
+ Capture: Hn,
+ TemplateData: Gn,
+ If: _n,
+ IfAsync: An,
+ InlineIf: gn,
+ For: Nn,
+ AsyncEach: Cn,
+ AsyncAll: In,
+ Macro: Sn,
+ Caller: bn,
+ Import: On,
+ FromImport: yn,
+ FunCall: Ln,
+ Filter: kn,
+ FilterAsync: vn,
+ KeywordArgs: Dn,
+ Block: Rn,
+ Super: Mn,
+ Extends: Pn,
+ Include: xn,
+ Set: wn,
+ Switch: Bn,
+ Case: Fn,
+ LookupVal: Tn,
+ BinOp: qn,
+ In: Kn,
+ Is: jn,
+ Or: Vn,
+ And: Wn,
+ Not: Qn,
+ Add: Xn,
+ Concat: $n,
+ Sub: zn,
+ Mul: Jn,
+ Div: Zn,
+ FloorDiv: er,
+ Mod: tr,
+ Pow: nr,
+ Neg: rr,
+ Pos: ir,
+ Compare: sr,
+ CompareOperand: ar,
+ CallExtension: or,
+ CallExtensionAsync: cr,
+ printNodes: function e(t, n) {
+ if (n = n || 0, lr(t.typename + ": ", n), t instanceof ln) lr("\n"), t.children.forEach((function(t) {
+ e(t, n + 2)
+ }));
+ else if (t instanceof or) lr(t.extName + "." + t.prop + "\n"), t.args && e(t.args, n + 2), t.contentArgs && t.contentArgs.forEach((function(t) {
+ e(t, n + 2)
+ }));
+ else {
+ var r = [],
+ i = null;
+ t.iterFields((function(e, t) {
+ e instanceof on ? r.push([t, e]) : (i = i || {})[t] = e
+ })), i ? lr(JSON.stringify(i, null, 2) + "\n", null, !0) : lr("\n"), r.forEach((function(t) {
+ var r = t[0],
+ i = t[1];
+ lr("[" + r + "] =>", n + 2), e(i, n + 4)
+ }))
+ }
+ }
+};
+
+function ur(e, t) {
+ return ur = Object.setPrototypeOf || function(e, t) {
+ return e.__proto__ = t, e
+ }, ur(e, t)
+}
+hr.Node, hr.Root, hr.NodeList, hr.Value, hr.Literal, hr.Group, hr.Pair, hr.Dict, hr.Output, hr.Capture, hr.TemplateData, hr.If, hr.IfAsync, hr.InlineIf, hr.For, hr.AsyncEach, hr.AsyncAll, hr.Macro, hr.Caller, hr.Import, hr.FromImport, hr.FunCall, hr.Filter, hr.FilterAsync, hr.KeywordArgs, hr.Block, hr.Super, hr.Extends, hr.Include, hr.Switch, hr.Case, hr.LookupVal, hr.BinOp, hr.In, hr.Is, hr.Or, hr.And, hr.Not, hr.Add, hr.Concat, hr.Sub, hr.Mul, hr.Div, hr.FloorDiv, hr.Mod, hr.Pow, hr.Neg, hr.Pos, hr.Compare, hr.CompareOperand, hr.CallExtension, hr.CallExtensionAsync, hr.printNodes;
+var pr = function(e) {
+ var t, n;
+
+ function r() {
+ return e.apply(this, arguments) || this
+ }
+ n = e, (t = r).prototype = Object.create(n.prototype), t.prototype.constructor = t, ur(t, n);
+ var i = r.prototype;
+ return i.init = function(e) {
+ this.tokens = e, this.peeked = null, this.breakOnBlocks = null, this.dropLeadingWhitespace = !1, this.extensions = []
+ }, i.nextToken = function(e) {
+ var t;
+ if (this.peeked) {
+ if (e || this.peeked.type !== Vt.TOKEN_WHITESPACE) return t = this.peeked, this.peeked = null, t;
+ this.peeked = null
+ }
+ if (t = this.tokens.nextToken(), !e)
+ for (; t && t.type === Vt.TOKEN_WHITESPACE;) t = this.tokens.nextToken();
+ return t
+ }, i.peekToken = function() {
+ return this.peeked = this.peeked || this.nextToken(), this.peeked
+ }, i.pushToken = function(e) {
+ if (this.peeked) throw new Error("pushToken: can only push one token on between reads");
+ this.peeked = e
+ }, i.error = function(e, t, n) {
+ if (void 0 === t || void 0 === n) {
+ var r = this.peekToken() || {};
+ t = r.lineno, n = r.colno
+ }
+ return void 0 !== t && (t += 1), void 0 !== n && (n += 1), new je.TemplateError(e, t, n)
+ }, i.fail = function(e, t, n) {
+ throw this.error(e, t, n)
+ }, i.skip = function(e) {
+ var t = this.nextToken();
+ return !(!t || t.type !== e) || (this.pushToken(t), !1)
+ }, i.expect = function(e) {
+ var t = this.nextToken();
+ return t.type !== e && this.fail("expected " + e + ", got " + t.type, t.lineno, t.colno), t
+ }, i.skipValue = function(e, t) {
+ var n = this.nextToken();
+ return !(!n || n.type !== e || n.value !== t) || (this.pushToken(n), !1)
+ }, i.skipSymbol = function(e) {
+ return this.skipValue(Vt.TOKEN_SYMBOL, e)
+ }, i.advanceAfterBlockEnd = function(e) {
+ var t;
+ return e || ((t = this.peekToken()) || this.fail("unexpected end of file"), t.type !== Vt.TOKEN_SYMBOL && this.fail("advanceAfterBlockEnd: expected symbol token or explicit name to be passed"), e = this.nextToken().value), (t = this.nextToken()) && t.type === Vt.TOKEN_BLOCK_END ? "-" === t.value.charAt(0) && (this.dropLeadingWhitespace = !0) : this.fail("expected block end in " + e + " statement"), t
+ }, i.advanceAfterVariableEnd = function() {
+ var e = this.nextToken();
+ e && e.type === Vt.TOKEN_VARIABLE_END ? this.dropLeadingWhitespace = "-" === e.value.charAt(e.value.length - this.tokens.tags.VARIABLE_END.length - 1) : (this.pushToken(e), this.fail("expected variable end"))
+ }, i.parseFor = function() {
+ var e, t, n = this.peekToken();
+ if (this.skipSymbol("for") ? (e = new hr.For(n.lineno, n.colno), t = "endfor") : this.skipSymbol("asyncEach") ? (e = new hr.AsyncEach(n.lineno, n.colno), t = "endeach") : this.skipSymbol("asyncAll") ? (e = new hr.AsyncAll(n.lineno, n.colno), t = "endall") : this.fail("parseFor: expected for{Async}", n.lineno, n.colno), e.name = this.parsePrimary(), e.name instanceof hr.Symbol || this.fail("parseFor: variable name expected for loop"), this.peekToken().type === Vt.TOKEN_COMMA) {
+ var r = e.name;
+ for (e.name = new hr.Array(r.lineno, r.colno), e.name.addChild(r); this.skip(Vt.TOKEN_COMMA);) {
+ var i = this.parsePrimary();
+ e.name.addChild(i)
+ }
+ }
+ return this.skipSymbol("in") || this.fail('parseFor: expected "in" keyword for loop', n.lineno, n.colno), e.arr = this.parseExpression(), this.advanceAfterBlockEnd(n.value), e.body = this.parseUntilBlocks(t, "else"), this.skipSymbol("else") && (this.advanceAfterBlockEnd("else"), e.else_ = this.parseUntilBlocks(t)), this.advanceAfterBlockEnd(), e
+ }, i.parseMacro = function() {
+ var e = this.peekToken();
+ this.skipSymbol("macro") || this.fail("expected macro");
+ var t = this.parsePrimary(!0),
+ n = this.parseSignature(),
+ r = new hr.Macro(e.lineno, e.colno, t, n);
+ return this.advanceAfterBlockEnd(e.value), r.body = this.parseUntilBlocks("endmacro"), this.advanceAfterBlockEnd(), r
+ }, i.parseCall = function() {
+ var e = this.peekToken();
+ this.skipSymbol("call") || this.fail("expected call");
+ var t = this.parseSignature(!0) || new hr.NodeList,
+ n = this.parsePrimary();
+ this.advanceAfterBlockEnd(e.value);
+ var r = this.parseUntilBlocks("endcall");
+ this.advanceAfterBlockEnd();
+ var i = new hr.Symbol(e.lineno, e.colno, "caller"),
+ s = new hr.Caller(e.lineno, e.colno, i, t, r),
+ a = n.args.children;
+ return a[a.length - 1] instanceof hr.KeywordArgs || a.push(new hr.KeywordArgs), a[a.length - 1].addChild(new hr.Pair(e.lineno, e.colno, i, s)), new hr.Output(e.lineno, e.colno, [n])
+ }, i.parseWithContext = function() {
+ var e = this.peekToken(),
+ t = null;
+ return this.skipSymbol("with") ? t = !0 : this.skipSymbol("without") && (t = !1), null !== t && (this.skipSymbol("context") || this.fail("parseFrom: expected context after with/without", e.lineno, e.colno)), t
+ }, i.parseImport = function() {
+ var e = this.peekToken();
+ this.skipSymbol("import") || this.fail("parseImport: expected import", e.lineno, e.colno);
+ var t = this.parseExpression();
+ this.skipSymbol("as") || this.fail('parseImport: expected "as" keyword', e.lineno, e.colno);
+ var n = this.parseExpression(),
+ r = this.parseWithContext(),
+ i = new hr.Import(e.lineno, e.colno, t, n, r);
+ return this.advanceAfterBlockEnd(e.value), i
+ }, i.parseFrom = function() {
+ var e = this.peekToken();
+ this.skipSymbol("from") || this.fail("parseFrom: expected from");
+ var t = this.parseExpression();
+ this.skipSymbol("import") || this.fail("parseFrom: expected import", e.lineno, e.colno);
+ for (var n, r = new hr.NodeList;;) {
+ var i = this.peekToken();
+ if (i.type === Vt.TOKEN_BLOCK_END) {
+ r.children.length || this.fail("parseFrom: Expected at least one import name", e.lineno, e.colno), "-" === i.value.charAt(0) && (this.dropLeadingWhitespace = !0), this.nextToken();
+ break
+ }
+ r.children.length > 0 && !this.skip(Vt.TOKEN_COMMA) && this.fail("parseFrom: expected comma", e.lineno, e.colno);
+ var s = this.parsePrimary();
+ if ("_" === s.value.charAt(0) && this.fail("parseFrom: names starting with an underscore cannot be imported", s.lineno, s.colno), this.skipSymbol("as")) {
+ var a = this.parsePrimary();
+ r.addChild(new hr.Pair(s.lineno, s.colno, s, a))
+ } else r.addChild(s);
+ n = this.parseWithContext()
+ }
+ return new hr.FromImport(e.lineno, e.colno, t, r, n)
+ }, i.parseBlock = function() {
+ var e = this.peekToken();
+ this.skipSymbol("block") || this.fail("parseBlock: expected block", e.lineno, e.colno);
+ var t = new hr.Block(e.lineno, e.colno);
+ t.name = this.parsePrimary(), t.name instanceof hr.Symbol || this.fail("parseBlock: variable name expected", e.lineno, e.colno), this.advanceAfterBlockEnd(e.value), t.body = this.parseUntilBlocks("endblock"), this.skipSymbol("endblock"), this.skipSymbol(t.name.value);
+ var n = this.peekToken();
+ return n || this.fail("parseBlock: expected endblock, got end of file"), this.advanceAfterBlockEnd(n.value), t
+ }, i.parseExtends = function() {
+ var e = "extends",
+ t = this.peekToken();
+ this.skipSymbol(e) || this.fail("parseTemplateRef: expected extends");
+ var n = new hr.Extends(t.lineno, t.colno);
+ return n.template = this.parseExpression(), this.advanceAfterBlockEnd(t.value), n
+ }, i.parseInclude = function() {
+ var e = "include",
+ t = this.peekToken();
+ this.skipSymbol(e) || this.fail("parseInclude: expected include");
+ var n = new hr.Include(t.lineno, t.colno);
+ return n.template = this.parseExpression(), this.skipSymbol("ignore") && this.skipSymbol("missing") && (n.ignoreMissing = !0), this.advanceAfterBlockEnd(t.value), n
+ }, i.parseIf = function() {
+ var e, t = this.peekToken();
+ this.skipSymbol("if") || this.skipSymbol("elif") || this.skipSymbol("elseif") ? e = new hr.If(t.lineno, t.colno) : this.skipSymbol("ifAsync") ? e = new hr.IfAsync(t.lineno, t.colno) : this.fail("parseIf: expected if, elif, or elseif", t.lineno, t.colno), e.cond = this.parseExpression(), this.advanceAfterBlockEnd(t.value), e.body = this.parseUntilBlocks("elif", "elseif", "else", "endif");
+ var n = this.peekToken();
+ switch (n && n.value) {
+ case "elseif":
+ case "elif":
+ e.else_ = this.parseIf();
+ break;
+ case "else":
+ this.advanceAfterBlockEnd(), e.else_ = this.parseUntilBlocks("endif"), this.advanceAfterBlockEnd();
+ break;
+ case "endif":
+ e.else_ = null, this.advanceAfterBlockEnd();
+ break;
+ default:
+ this.fail("parseIf: expected elif, else, or endif, got end of file")
+ }
+ return e
+ }, i.parseSet = function() {
+ var e = this.peekToken();
+ this.skipSymbol("set") || this.fail("parseSet: expected set", e.lineno, e.colno);
+ for (var t, n = new hr.Set(e.lineno, e.colno, []);
+ (t = this.parsePrimary()) && (n.targets.push(t), this.skip(Vt.TOKEN_COMMA)););
+ return this.skipValue(Vt.TOKEN_OPERATOR, "=") ? (n.value = this.parseExpression(), this.advanceAfterBlockEnd(e.value)) : this.skip(Vt.TOKEN_BLOCK_END) ? (n.body = new hr.Capture(e.lineno, e.colno, this.parseUntilBlocks("endset")), n.value = null, this.advanceAfterBlockEnd()) : this.fail("parseSet: expected = or block end in set tag", e.lineno, e.colno), n
+ }, i.parseSwitch = function() {
+ var e = "switch",
+ t = "endswitch",
+ n = "case",
+ r = "default",
+ i = this.peekToken();
+ this.skipSymbol(e) || this.skipSymbol(n) || this.skipSymbol(r) || this.fail('parseSwitch: expected "switch," "case" or "default"', i.lineno, i.colno);
+ var s = this.parseExpression();
+ this.advanceAfterBlockEnd(e), this.parseUntilBlocks(n, r, t);
+ var a, o = this.peekToken(),
+ c = [];
+ do {
+ this.skipSymbol(n);
+ var l = this.parseExpression();
+ this.advanceAfterBlockEnd(e);
+ var h = this.parseUntilBlocks(n, r, t);
+ c.push(new hr.Case(o.line, o.col, l, h)), o = this.peekToken()
+ } while (o && o.value === n);
+ switch (o.value) {
+ case r:
+ this.advanceAfterBlockEnd(), a = this.parseUntilBlocks(t), this.advanceAfterBlockEnd();
+ break;
+ case t:
+ this.advanceAfterBlockEnd();
+ break;
+ default:
+ this.fail('parseSwitch: expected "case," "default" or "endswitch," got EOF.')
+ }
+ return new hr.Switch(i.lineno, i.colno, s, c, a)
+ }, i.parseStatement = function() {
+ var e = this.peekToken();
+ if (e.type !== Vt.TOKEN_SYMBOL && this.fail("tag name expected", e.lineno, e.colno), this.breakOnBlocks && -1 !== je.indexOf(this.breakOnBlocks, e.value)) return null;
+ switch (e.value) {
+ case "raw":
+ return this.parseRaw();
+ case "verbatim":
+ return this.parseRaw("verbatim");
+ case "if":
+ case "ifAsync":
+ return this.parseIf();
+ case "for":
+ case "asyncEach":
+ case "asyncAll":
+ return this.parseFor();
+ case "block":
+ return this.parseBlock();
+ case "extends":
+ return this.parseExtends();
+ case "include":
+ return this.parseInclude();
+ case "set":
+ return this.parseSet();
+ case "macro":
+ return this.parseMacro();
+ case "call":
+ return this.parseCall();
+ case "import":
+ return this.parseImport();
+ case "from":
+ return this.parseFrom();
+ case "filter":
+ return this.parseFilterStatement();
+ case "switch":
+ return this.parseSwitch();
+ default:
+ if (this.extensions.length)
+ for (var t = 0; t < this.extensions.length; t++) {
+ var n = this.extensions[t];
+ if (-1 !== je.indexOf(n.tags || [], e.value)) return n.parse(this, hr, Vt)
+ }
+ this.fail("unknown block tag: " + e.value, e.lineno, e.colno)
+ }
+ }, i.parseRaw = function(e) {
+ for (var t = "end" + (e = e || "raw"), n = new RegExp("([\\s\\S]*?){%\\s*(" + e + "|" + t + ")\\s*(?=%})%}"), r = 1, i = "", s = null, a = this.advanceAfterBlockEnd();
+ (s = this.tokens._extractRegex(n)) && r > 0;) {
+ var o = s[0],
+ c = s[1],
+ l = s[2];
+ l === e ? r += 1 : l === t && (r -= 1), 0 === r ? (i += c, this.tokens.backN(o.length - c.length)) : i += o
+ }
+ return new hr.Output(a.lineno, a.colno, [new hr.TemplateData(a.lineno, a.colno, i)])
+ }, i.parsePostfix = function(e) {
+ for (var t, n = this.peekToken(); n;) {
+ if (n.type === Vt.TOKEN_LEFT_PAREN) e = new hr.FunCall(n.lineno, n.colno, e, this.parseSignature());
+ else if (n.type === Vt.TOKEN_LEFT_BRACKET)(t = this.parseAggregate()).children.length > 1 && this.fail("invalid index"), e = new hr.LookupVal(n.lineno, n.colno, e, t.children[0]);
+ else {
+ if (n.type !== Vt.TOKEN_OPERATOR || "." !== n.value) break;
+ this.nextToken();
+ var r = this.nextToken();
+ r.type !== Vt.TOKEN_SYMBOL && this.fail("expected name as lookup value, got " + r.value, r.lineno, r.colno), t = new hr.Literal(r.lineno, r.colno, r.value), e = new hr.LookupVal(n.lineno, n.colno, e, t)
+ }
+ n = this.peekToken()
+ }
+ return e
+ }, i.parseExpression = function() {
+ return this.parseInlineIf()
+ }, i.parseInlineIf = function() {
+ var e = this.parseOr();
+ if (this.skipSymbol("if")) {
+ var t = this.parseOr(),
+ n = e;
+ (e = new hr.InlineIf(e.lineno, e.colno)).body = n, e.cond = t, this.skipSymbol("else") ? e.else_ = this.parseOr() : e.else_ = null
+ }
+ return e
+ }, i.parseOr = function() {
+ for (var e = this.parseAnd(); this.skipSymbol("or");) {
+ var t = this.parseAnd();
+ e = new hr.Or(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parseAnd = function() {
+ for (var e = this.parseNot(); this.skipSymbol("and");) {
+ var t = this.parseNot();
+ e = new hr.And(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parseNot = function() {
+ var e = this.peekToken();
+ return this.skipSymbol("not") ? new hr.Not(e.lineno, e.colno, this.parseNot()) : this.parseIn()
+ }, i.parseIn = function() {
+ for (var e = this.parseIs();;) {
+ var t = this.nextToken();
+ if (!t) break;
+ var n = t.type === Vt.TOKEN_SYMBOL && "not" === t.value;
+ if (n || this.pushToken(t), !this.skipSymbol("in")) {
+ n && this.pushToken(t);
+ break
+ }
+ var r = this.parseIs();
+ e = new hr.In(e.lineno, e.colno, e, r), n && (e = new hr.Not(e.lineno, e.colno, e))
+ }
+ return e
+ }, i.parseIs = function() {
+ var e = this.parseCompare();
+ if (this.skipSymbol("is")) {
+ var t = this.skipSymbol("not"),
+ n = this.parseCompare();
+ e = new hr.Is(e.lineno, e.colno, e, n), t && (e = new hr.Not(e.lineno, e.colno, e))
+ }
+ return e
+ }, i.parseCompare = function() {
+ for (var e = ["==", "===", "!=", "!==", "<", ">", "<=", ">="], t = this.parseConcat(), n = [];;) {
+ var r = this.nextToken();
+ if (!r) break;
+ if (-1 === e.indexOf(r.value)) {
+ this.pushToken(r);
+ break
+ }
+ n.push(new hr.CompareOperand(r.lineno, r.colno, this.parseConcat(), r.value))
+ }
+ return n.length ? new hr.Compare(n[0].lineno, n[0].colno, t, n) : t
+ }, i.parseConcat = function() {
+ for (var e = this.parseAdd(); this.skipValue(Vt.TOKEN_TILDE, "~");) {
+ var t = this.parseAdd();
+ e = new hr.Concat(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parseAdd = function() {
+ for (var e = this.parseSub(); this.skipValue(Vt.TOKEN_OPERATOR, "+");) {
+ var t = this.parseSub();
+ e = new hr.Add(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parseSub = function() {
+ for (var e = this.parseMul(); this.skipValue(Vt.TOKEN_OPERATOR, "-");) {
+ var t = this.parseMul();
+ e = new hr.Sub(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parseMul = function() {
+ for (var e = this.parseDiv(); this.skipValue(Vt.TOKEN_OPERATOR, "*");) {
+ var t = this.parseDiv();
+ e = new hr.Mul(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parseDiv = function() {
+ for (var e = this.parseFloorDiv(); this.skipValue(Vt.TOKEN_OPERATOR, "/");) {
+ var t = this.parseFloorDiv();
+ e = new hr.Div(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parseFloorDiv = function() {
+ for (var e = this.parseMod(); this.skipValue(Vt.TOKEN_OPERATOR, "//");) {
+ var t = this.parseMod();
+ e = new hr.FloorDiv(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parseMod = function() {
+ for (var e = this.parsePow(); this.skipValue(Vt.TOKEN_OPERATOR, "%");) {
+ var t = this.parsePow();
+ e = new hr.Mod(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parsePow = function() {
+ for (var e = this.parseUnary(); this.skipValue(Vt.TOKEN_OPERATOR, "**");) {
+ var t = this.parseUnary();
+ e = new hr.Pow(e.lineno, e.colno, e, t)
+ }
+ return e
+ }, i.parseUnary = function(e) {
+ var t, n = this.peekToken();
+ return t = this.skipValue(Vt.TOKEN_OPERATOR, "-") ? new hr.Neg(n.lineno, n.colno, this.parseUnary(!0)) : this.skipValue(Vt.TOKEN_OPERATOR, "+") ? new hr.Pos(n.lineno, n.colno, this.parseUnary(!0)) : this.parsePrimary(), e || (t = this.parseFilter(t)), t
+ }, i.parsePrimary = function(e) {
+ var t, n = this.nextToken(),
+ r = null;
+ if (n ? n.type === Vt.TOKEN_STRING ? t = n.value : n.type === Vt.TOKEN_INT ? t = parseInt(n.value, 10) : n.type === Vt.TOKEN_FLOAT ? t = parseFloat(n.value) : n.type === Vt.TOKEN_BOOLEAN ? "true" === n.value ? t = !0 : "false" === n.value ? t = !1 : this.fail("invalid boolean: " + n.value, n.lineno, n.colno) : n.type === Vt.TOKEN_NONE ? t = null : n.type === Vt.TOKEN_REGEX && (t = new RegExp(n.value.body, n.value.flags)) : this.fail("expected expression, got end of file"), void 0 !== t ? r = new hr.Literal(n.lineno, n.colno, t) : n.type === Vt.TOKEN_SYMBOL ? r = new hr.Symbol(n.lineno, n.colno, n.value) : (this.pushToken(n), r = this.parseAggregate()), e || (r = this.parsePostfix(r)), r) return r;
+ throw this.error("unexpected token: " + n.value, n.lineno, n.colno)
+ }, i.parseFilterName = function() {
+ for (var e = this.expect(Vt.TOKEN_SYMBOL), t = e.value; this.skipValue(Vt.TOKEN_OPERATOR, ".");) t += "." + this.expect(Vt.TOKEN_SYMBOL).value;
+ return new hr.Symbol(e.lineno, e.colno, t)
+ }, i.parseFilterArgs = function(e) {
+ return this.peekToken().type === Vt.TOKEN_LEFT_PAREN ? this.parsePostfix(e).args.children : []
+ }, i.parseFilter = function(e) {
+ for (; this.skip(Vt.TOKEN_PIPE);) {
+ var t = this.parseFilterName();
+ e = new hr.Filter(t.lineno, t.colno, t, new hr.NodeList(t.lineno, t.colno, [e].concat(this.parseFilterArgs(e))))
+ }
+ return e
+ }, i.parseFilterStatement = function() {
+ var e = this.peekToken();
+ this.skipSymbol("filter") || this.fail("parseFilterStatement: expected filter");
+ var t = this.parseFilterName(),
+ n = this.parseFilterArgs(t);
+ this.advanceAfterBlockEnd(e.value);
+ var r = new hr.Capture(t.lineno, t.colno, this.parseUntilBlocks("endfilter"));
+ this.advanceAfterBlockEnd();
+ var i = new hr.Filter(t.lineno, t.colno, t, new hr.NodeList(t.lineno, t.colno, [r].concat(n)));
+ return new hr.Output(t.lineno, t.colno, [i])
+ }, i.parseAggregate = function() {
+ var e, t = this.nextToken();
+ switch (t.type) {
+ case Vt.TOKEN_LEFT_PAREN:
+ e = new hr.Group(t.lineno, t.colno);
+ break;
+ case Vt.TOKEN_LEFT_BRACKET:
+ e = new hr.Array(t.lineno, t.colno);
+ break;
+ case Vt.TOKEN_LEFT_CURLY:
+ e = new hr.Dict(t.lineno, t.colno);
+ break;
+ default:
+ return null
+ }
+ for (;;) {
+ var n = this.peekToken().type;
+ if (n === Vt.TOKEN_RIGHT_PAREN || n === Vt.TOKEN_RIGHT_BRACKET || n === Vt.TOKEN_RIGHT_CURLY) {
+ this.nextToken();
+ break
+ }
+ if (e.children.length > 0 && (this.skip(Vt.TOKEN_COMMA) || this.fail("parseAggregate: expected comma after expression", t.lineno, t.colno)), e instanceof hr.Dict) {
+ var r = this.parsePrimary();
+ this.skip(Vt.TOKEN_COLON) || this.fail("parseAggregate: expected colon after dict key", t.lineno, t.colno);
+ var i = this.parseExpression();
+ e.addChild(new hr.Pair(r.lineno, r.colno, r, i))
+ } else {
+ var s = this.parseExpression();
+ e.addChild(s)
+ }
+ }
+ return e
+ }, i.parseSignature = function(e, t) {
+ var n = this.peekToken();
+ if (!t && n.type !== Vt.TOKEN_LEFT_PAREN) {
+ if (e) return null;
+ this.fail("expected arguments", n.lineno, n.colno)
+ }
+ n.type === Vt.TOKEN_LEFT_PAREN && (n = this.nextToken());
+ for (var r = new hr.NodeList(n.lineno, n.colno), i = new hr.KeywordArgs(n.lineno, n.colno), s = !1;;) {
+ if (n = this.peekToken(), !t && n.type === Vt.TOKEN_RIGHT_PAREN) {
+ this.nextToken();
+ break
+ }
+ if (t && n.type === Vt.TOKEN_BLOCK_END) break;
+ if (s && !this.skip(Vt.TOKEN_COMMA)) this.fail("parseSignature: expected comma after expression", n.lineno, n.colno);
+ else {
+ var a = this.parseExpression();
+ this.skipValue(Vt.TOKEN_OPERATOR, "=") ? i.addChild(new hr.Pair(a.lineno, a.colno, a, this.parseExpression())) : r.addChild(a)
+ }
+ s = !0
+ }
+ return i.children.length && r.addChild(i), r
+ }, i.parseUntilBlocks = function() {
+ for (var e = this.breakOnBlocks, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
+ this.breakOnBlocks = n;
+ var i = this.parse();
+ return this.breakOnBlocks = e, i
+ }, i.parseNodes = function() {
+ for (var e, t = []; e = this.nextToken();)
+ if (e.type === Vt.TOKEN_DATA) {
+ var n = e.value,
+ r = this.peekToken(),
+ i = r && r.value;
+ this.dropLeadingWhitespace && (n = n.replace(/^\s*/, ""), this.dropLeadingWhitespace = !1), r && (r.type === Vt.TOKEN_BLOCK_START && "-" === i.charAt(i.length - 1) || r.type === Vt.TOKEN_VARIABLE_START && "-" === i.charAt(this.tokens.tags.VARIABLE_START.length) || r.type === Vt.TOKEN_COMMENT && "-" === i.charAt(this.tokens.tags.COMMENT_START.length)) && (n = n.replace(/\s*$/, "")), t.push(new hr.Output(e.lineno, e.colno, [new hr.TemplateData(e.lineno, e.colno, n)]))
+ } else if (e.type === Vt.TOKEN_BLOCK_START) {
+ this.dropLeadingWhitespace = !1;
+ var s = this.parseStatement();
+ if (!s) break;
+ t.push(s)
+ } else if (e.type === Vt.TOKEN_VARIABLE_START) {
+ var a = this.parseExpression();
+ this.dropLeadingWhitespace = !1, this.advanceAfterVariableEnd(), t.push(new hr.Output(e.lineno, e.colno, [a]))
+ } else e.type === Vt.TOKEN_COMMENT ? this.dropLeadingWhitespace = "-" === e.value.charAt(e.value.length - this.tokens.tags.COMMENT_END.length - 1) : this.fail("Unexpected token at top-level: " + e.type, e.lineno, e.colno);
+ return t
+ }, i.parse = function() {
+ return new hr.NodeList(0, 0, this.parseNodes())
+ }, i.parseAsRoot = function() {
+ return new hr.Root(0, 0, this.parseNodes())
+ }, r
+ }(en.Obj),
+ fr = {
+ parse: function(e, t, n) {
+ var r = new pr(Vt.lex(e, n));
+ return void 0 !== t && (r.extensions = t), r.parseAsRoot()
+ },
+ Parser: pr
+ },
+ dr = 0;
+
+function Er() {
+ return "hole_" + dr++
+}
+
+function mr(e, t) {
+ for (var n = null, r = 0; r < e.length; r++) {
+ var i = t(e[r]);
+ i !== e[r] && (n || (n = e.slice()), n[r] = i)
+ }
+ return n || e
+}
+
+function Tr(e, t, n) {
+ if (!(e instanceof hr.Node)) return e;
+ if (!n) {
+ var r = t(e);
+ if (r && r !== e) return r
+ }
+ if (e instanceof hr.NodeList) {
+ var i = mr(e.children, (function(e) {
+ return Tr(e, t, n)
+ }));
+ i !== e.children && (e = new hr[e.typename](e.lineno, e.colno, i))
+ } else if (e instanceof hr.CallExtension) {
+ var s = Tr(e.args, t, n),
+ a = mr(e.contentArgs, (function(e) {
+ return Tr(e, t, n)
+ }));
+ s === e.args && a === e.contentArgs || (e = new hr[e.typename](e.extName, e.prop, s, a))
+ } else {
+ var o = e.fields.map((function(t) {
+ return e[t]
+ })),
+ c = mr(o, (function(e) {
+ return Tr(e, t, n)
+ }));
+ c !== o && (e = new hr[e.typename](e.lineno, e.colno), c.forEach((function(t, n) {
+ e[e.fields[n]] = t
+ })))
+ }
+ return n && t(e) || e
+}
+
+function _r(e, t) {
+ return Tr(e, t, !0)
+}
+
+function Ar(e, t, n) {
+ var r = [],
+ i = _r(n ? e[n] : e, (function(e) {
+ var n;
+ return e instanceof hr.Block ? e : ((e instanceof hr.Filter && -1 !== je.indexOf(t, e.name.value) || e instanceof hr.CallExtensionAsync) && (n = new hr.Symbol(e.lineno, e.colno, Er()), r.push(new hr.FilterAsync(e.lineno, e.colno, e.name, e.args, n))), n)
+ }));
+ return n ? e[n] = i : e = i, r.length ? (r.push(e), new hr.NodeList(e.lineno, e.colno, r)) : e
+}
+
+function gr(e, t) {
+ return function(e) {
+ return _r(e, (function(e) {
+ if (e instanceof hr.If || e instanceof hr.For) {
+ var t = !1;
+ if (Tr(e, (function(e) {
+ if (e instanceof hr.FilterAsync || e instanceof hr.IfAsync || e instanceof hr.AsyncEach || e instanceof hr.AsyncAll || e instanceof hr.CallExtensionAsync) return t = !0, e
+ })), t) {
+ if (e instanceof hr.If) return new hr.IfAsync(e.lineno, e.colno, e.cond, e.body, e.else_);
+ if (e instanceof hr.For && !(e instanceof hr.AsyncAll)) return new hr.AsyncEach(e.lineno, e.colno, e.arr, e.name, e.body, e.else_)
+ }
+ }
+ }))
+ }(function(e) {
+ return Tr(e, (function(e) {
+ if (e instanceof hr.Block) {
+ var t = !1,
+ n = Er();
+ e.body = Tr(e.body, (function(e) {
+ if (e instanceof hr.FunCall && "super" === e.name.value) return t = !0, new hr.Symbol(e.lineno, e.colno, n)
+ })), t && e.body.children.unshift(new hr.Super(0, 0, e.name, new hr.Symbol(0, 0, n)))
+ }
+ }))
+ }(function(e, t) {
+ return _r(e, (function(e) {
+ return e instanceof hr.Output ? Ar(e, t) : e instanceof hr.Set ? Ar(e, t, "value") : e instanceof hr.For ? Ar(e, t, "arr") : e instanceof hr.If ? Ar(e, t, "cond") : e instanceof hr.CallExtension ? Ar(e, t, "args") : void 0
+ }))
+ }(e, t)))
+}
+var Nr = {
+ transform: function(e, t) {
+ return gr(e, t || [])
+ }
+ },
+ Cr = Array.from,
+ Ir = "function" == typeof Symbol && Symbol.iterator && "function" == typeof Cr,
+ Sr = function() {
+ function e(e, t) {
+ this.variables = Object.create(null), this.parent = e, this.topLevel = !1, this.isolateWrites = t
+ }
+ var t = e.prototype;
+ return t.set = function(e, t, n) {
+ var r = e.split("."),
+ i = this.variables,
+ s = this;
+ if (n && (s = this.resolve(r[0], !0))) s.set(e, t);
+ else {
+ for (var a = 0; a < r.length - 1; a++) {
+ var o = r[a];
+ i[o] || (i[o] = {}), i = i[o]
+ }
+ i[r[r.length - 1]] = t
+ }
+ }, t.get = function(e) {
+ var t = this.variables[e];
+ return void 0 !== t ? t : null
+ }, t.lookup = function(e) {
+ var t = this.parent,
+ n = this.variables[e];
+ return void 0 !== n ? n : t && t.lookup(e)
+ }, t.resolve = function(e, t) {
+ var n = t && this.isolateWrites ? void 0 : this.parent;
+ return void 0 !== this.variables[e] ? this : n && n.resolve(e)
+ }, t.push = function(t) {
+ return new e(this, t)
+ }, t.pop = function() {
+ return this.parent
+ }, e
+ }();
+
+function br(e) {
+ return e && Object.prototype.hasOwnProperty.call(e, "__keywords")
+}
+
+function Or(e) {
+ var t = e.length;
+ if (t) {
+ var n = e[t - 1];
+ if (br(n)) return n
+ }
+ return {}
+}
+
+function yr(e) {
+ var t = e.length;
+ return 0 === t ? 0 : br(e[t - 1]) ? t - 1 : t
+}
+
+function Lr(e) {
+ if ("string" != typeof e) return e;
+ this.val = e, Object.defineProperty(this, "length", {
+ writable: !0,
+ configurable: !0,
+ value: e.length
+ })
+}
+Lr.prototype = Object.create(String.prototype, {
+ length: {
+ writable: !0,
+ configurable: !0,
+ value: 0
+ }
+}), Lr.prototype.valueOf = function() {
+ return this.val
+}, Lr.prototype.toString = function() {
+ return this.val
+};
+var kr = {
+ Frame: Sr,
+ makeMacro: function(e, t, n) {
+ return function() {
+ for (var r = arguments.length, i = new Array(r), s = 0; s < r; s++) i[s] = arguments[s];
+ var a, o = yr(i),
+ c = Or(i);
+ if (o > e.length) a = i.slice(0, e.length), i.slice(a.length, o).forEach((function(e, n) {
+ n < t.length && (c[t[n]] = e)
+ })), a.push(c);
+ else if (o < e.length) {
+ a = i.slice(0, o);
+ for (var l = o; l < e.length; l++) {
+ var h = e[l];
+ a.push(c[h]), delete c[h]
+ }
+ a.push(c)
+ } else a = i;
+ return n.apply(this, a)
+ }
+ },
+ makeKeywordArgs: function(e) {
+ return e.__keywords = !0, e
+ },
+ numArgs: yr,
+ suppressValue: function(e, t) {
+ return "object" == typeof(e = null != e ? e : "") ? new Lr(JSON.stringify(e).toString()) : (!t || e instanceof Lr || (e = je.escape(e.toString())), e)
+ },
+ ensureDefined: function(e, t, n) {
+ if (null == e) throw new je.TemplateError("attempted to output null or undefined value", t + 1, n + 1);
+ return e
+ },
+ memberLookup: function(e, t) {
+ if (null != e) return "function" == typeof e[t] ? function() {
+ for (var n = arguments.length, r = new Array(n), i = 0; i < n; i++) r[i] = arguments[i];
+ return e[t].apply(e, r)
+ } : e[t]
+ },
+ contextOrFrameLookup: function(e, t, n) {
+ var r = t.lookup(n);
+ return void 0 !== r ? r : e.lookup(n)
+ },
+ callWrap: function(e, t, n, r) {
+ if (!e) throw new Error("Unable to call `" + t + "`, which is undefined or falsey");
+ if ("function" != typeof e) throw new Error("Unable to call `" + t + "`, which is not a function");
+ return e.apply(n, r)
+ },
+ handleError: function(e, t, n) {
+ return e.lineno ? e : new je.TemplateError(e, t, n)
+ },
+ isArray: je.isArray,
+ keys: je.keys,
+ SafeString: Lr,
+ copySafeness: function(e, t) {
+ return e instanceof Lr ? new Lr(t) : t.toString()
+ },
+ markSafe: function(e) {
+ var t = typeof e;
+ return "string" === t ? new Lr(e) : "function" !== t ? e : function(t) {
+ var n = e.apply(this, arguments);
+ return "string" == typeof n ? new Lr(n) : n
+ }
+ },
+ asyncEach: function(e, t, n, r) {
+ if (je.isArray(e)) {
+ var i = e.length;
+ je.asyncIter(e, (function(e, r, s) {
+ switch (t) {
+ case 1:
+ n(e, r, i, s);
+ break;
+ case 2:
+ n(e[0], e[1], r, i, s);
+ break;
+ case 3:
+ n(e[0], e[1], e[2], r, i, s);
+ break;
+ default:
+ e.push(r, i, s), n.apply(this, e)
+ }
+ }), r)
+ } else je.asyncFor(e, (function(e, t, r, i, s) {
+ n(e, t, r, i, s)
+ }), r)
+ },
+ asyncAll: function(e, t, n, r) {
+ var i, s, a = 0;
+
+ function o(e, t) {
+ a++, s[e] = t, a === i && r(null, s.join(""))
+ }
+ if (je.isArray(e))
+ if (i = e.length, s = new Array(i), 0 === i) r(null, "");
+ else
+ for (var c = 0; c < e.length; c++) {
+ var l = e[c];
+ switch (t) {
+ case 1:
+ n(l, c, i, o);
+ break;
+ case 2:
+ n(l[0], l[1], c, i, o);
+ break;
+ case 3:
+ n(l[0], l[1], l[2], c, i, o);
+ break;
+ default:
+ l.push(c, i, o), n.apply(this, l)
+ }
+ } else {
+ var h = je.keys(e || {});
+ if (i = h.length, s = new Array(i), 0 === i) r(null, "");
+ else
+ for (var u = 0; u < h.length; u++) {
+ var p = h[u];
+ n(p, e[p], u, i, o)
+ }
+ }
+ },
+ inOperator: je.inOperator,
+ fromIterator: function(e) {
+ return "object" != typeof e || null === e || je.isArray(e) ? e : Ir && Symbol.iterator in e ? Cr(e) : e
+ }
+};
+
+function vr(e, t) {
+ return vr = Object.setPrototypeOf || function(e, t) {
+ return e.__proto__ = t, e
+ }, vr(e, t)
+}
+kr.Frame, kr.makeMacro, kr.makeKeywordArgs, kr.numArgs, kr.suppressValue, kr.ensureDefined, kr.memberLookup, kr.contextOrFrameLookup, kr.callWrap, kr.handleError, kr.isArray, kr.keys, kr.SafeString, kr.copySafeness, kr.markSafe, kr.asyncEach, kr.asyncAll, kr.inOperator, kr.fromIterator;
+var Dr = je.TemplateError,
+ Rr = kr.Frame,
+ Mr = {
+ "==": "==",
+ "===": "===",
+ "!=": "!=",
+ "!==": "!==",
+ "<": "<",
+ ">": ">",
+ "<=": "<=",
+ ">=": ">="
+ },
+ Pr = function(e) {
+ var t, n;
+
+ function r() {
+ return e.apply(this, arguments) || this
+ }
+ n = e, (t = r).prototype = Object.create(n.prototype), t.prototype.constructor = t, vr(t, n);
+ var i = r.prototype;
+ return i.init = function(e, t) {
+ this.templateName = e, this.codebuf = [], this.lastId = 0, this.buffer = null, this.bufferStack = [], this._scopeClosers = "", this.inBlock = !1, this.throwOnUndefined = t
+ }, i.fail = function(e, t, n) {
+ throw void 0 !== t && (t += 1), void 0 !== n && (n += 1), new Dr(e, t, n)
+ }, i._pushBuffer = function() {
+ var e = this._tmpid();
+ return this.bufferStack.push(this.buffer), this.buffer = e, this._emit("var " + this.buffer + ' = "";'), e
+ }, i._popBuffer = function() {
+ this.buffer = this.bufferStack.pop()
+ }, i._emit = function(e) {
+ this.codebuf.push(e)
+ }, i._emitLine = function(e) {
+ this._emit(e + "\n")
+ }, i._emitLines = function() {
+ for (var e = this, t = arguments.length, n = new Array(t), r = 0; r < t; r++) n[r] = arguments[r];
+ n.forEach((function(t) {
+ return e._emitLine(t)
+ }))
+ }, i._emitFuncBegin = function(e, t) {
+ this.buffer = "output", this._scopeClosers = "", this._emitLine("function " + t + "(env, context, frame, runtime, cb) {"), this._emitLine("var lineno = " + e.lineno + ";"), this._emitLine("var colno = " + e.colno + ";"), this._emitLine("var " + this.buffer + ' = "";'), this._emitLine("try {")
+ }, i._emitFuncEnd = function(e) {
+ e || this._emitLine("cb(null, " + this.buffer + ");"), this._closeScopeLevels(), this._emitLine("} catch (e) {"), this._emitLine(" cb(runtime.handleError(e, lineno, colno));"), this._emitLine("}"), this._emitLine("}"), this.buffer = null
+ }, i._addScopeLevel = function() {
+ this._scopeClosers += "})"
+ }, i._closeScopeLevels = function() {
+ this._emitLine(this._scopeClosers + ";"), this._scopeClosers = ""
+ }, i._withScopedSyntax = function(e) {
+ var t = this._scopeClosers;
+ this._scopeClosers = "", e.call(this), this._closeScopeLevels(), this._scopeClosers = t
+ }, i._makeCallback = function(e) {
+ var t = this._tmpid();
+ return "function(" + t + (e ? "," + e : "") + ") {\nif(" + t + ") { cb(" + t + "); return; }"
+ }, i._tmpid = function() {
+ return this.lastId++, "t_" + this.lastId
+ }, i._templateName = function() {
+ return null == this.templateName ? "undefined" : JSON.stringify(this.templateName)
+ }, i._compileChildren = function(e, t) {
+ var n = this;
+ e.children.forEach((function(e) {
+ n.compile(e, t)
+ }))
+ }, i._compileAggregate = function(e, t, n, r) {
+ var i = this;
+ n && this._emit(n), e.children.forEach((function(e, n) {
+ n > 0 && i._emit(","), i.compile(e, t)
+ })), r && this._emit(r)
+ }, i._compileExpression = function(e, t) {
+ this.assertType(e, hr.Literal, hr.Symbol, hr.Group, hr.Array, hr.Dict, hr.FunCall, hr.Caller, hr.Filter, hr.LookupVal, hr.Compare, hr.InlineIf, hr.In, hr.Is, hr.And, hr.Or, hr.Not, hr.Add, hr.Concat, hr.Sub, hr.Mul, hr.Div, hr.FloorDiv, hr.Mod, hr.Pow, hr.Neg, hr.Pos, hr.Compare, hr.NodeList), this.compile(e, t)
+ }, i.assertType = function(e) {
+ for (var t = arguments.length, n = new Array(t > 1 ? t - 1 : 0), r = 1; r < t; r++) n[r - 1] = arguments[r];
+ n.some((function(t) {
+ return e instanceof t
+ })) || this.fail("assertType: invalid type: " + e.typename, e.lineno, e.colno)
+ }, i.compileCallExtension = function(e, t, n) {
+ var r = this,
+ i = e.args,
+ s = e.contentArgs,
+ a = "boolean" != typeof e.autoescape || e.autoescape;
+ if (n || this._emit(this.buffer + " += runtime.suppressValue("), this._emit('env.getExtension("' + e.extName + '")["' + e.prop + '"]('), this._emit("context"), (i || s) && this._emit(","), i && (i instanceof hr.NodeList || this.fail("compileCallExtension: arguments must be a NodeList, use `parser.parseSignature`"), i.children.forEach((function(e, n) {
+ r._compileExpression(e, t), (n !== i.children.length - 1 || s.length) && r._emit(",")
+ }))), s.length && s.forEach((function(e, n) {
+ if (n > 0 && r._emit(","), e) {
+ r._emitLine("function(cb) {"), r._emitLine("if(!cb) { cb = function(err) { if(err) { throw err; }}}");
+ var i = r._pushBuffer();
+ r._withScopedSyntax((function() {
+ r.compile(e, t), r._emitLine("cb(null, " + i + ");")
+ })), r._popBuffer(), r._emitLine("return " + i + ";"), r._emitLine("}")
+ } else r._emit("null")
+ })), n) {
+ var o = this._tmpid();
+ this._emitLine(", " + this._makeCallback(o)), this._emitLine(this.buffer + " += runtime.suppressValue(" + o + ", " + a + " && env.opts.autoescape);"), this._addScopeLevel()
+ } else this._emit(")"), this._emit(", " + a + " && env.opts.autoescape);\n")
+ }, i.compileCallExtensionAsync = function(e, t) {
+ this.compileCallExtension(e, t, !0)
+ }, i.compileNodeList = function(e, t) {
+ this._compileChildren(e, t)
+ }, i.compileLiteral = function(e) {
+ if ("string" == typeof e.value) {
+ var t = e.value.replace(/\\/g, "\\\\");
+ t = (t = (t = (t = (t = t.replace(/"/g, '\\"')).replace(/\n/g, "\\n")).replace(/\r/g, "\\r")).replace(/\t/g, "\\t")).replace(/\u2028/g, "\\u2028"), this._emit('"' + t + '"')
+ } else null === e.value ? this._emit("null") : this._emit(e.value.toString())
+ }, i.compileSymbol = function(e, t) {
+ var n = e.value,
+ r = t.lookup(n);
+ r ? this._emit(r) : this._emit('runtime.contextOrFrameLookup(context, frame, "' + n + '")')
+ }, i.compileGroup = function(e, t) {
+ this._compileAggregate(e, t, "(", ")")
+ }, i.compileArray = function(e, t) {
+ this._compileAggregate(e, t, "[", "]")
+ }, i.compileDict = function(e, t) {
+ this._compileAggregate(e, t, "{", "}")
+ }, i.compilePair = function(e, t) {
+ var n = e.key,
+ r = e.value;
+ n instanceof hr.Symbol ? n = new hr.Literal(n.lineno, n.colno, n.value) : n instanceof hr.Literal && "string" == typeof n.value || this.fail("compilePair: Dict keys must be strings or names", n.lineno, n.colno), this.compile(n, t), this._emit(": "), this._compileExpression(r, t)
+ }, i.compileInlineIf = function(e, t) {
+ this._emit("("), this.compile(e.cond, t), this._emit("?"), this.compile(e.body, t), this._emit(":"), null !== e.else_ ? this.compile(e.else_, t) : this._emit('""'), this._emit(")")
+ }, i.compileIn = function(e, t) {
+ this._emit("runtime.inOperator("), this.compile(e.left, t), this._emit(","), this.compile(e.right, t), this._emit(")")
+ }, i.compileIs = function(e, t) {
+ var n = e.right.name ? e.right.name.value : e.right.value;
+ this._emit('env.getTest("' + n + '").call(context, '), this.compile(e.left, t), e.right.args && (this._emit(","), this.compile(e.right.args, t)), this._emit(") === true")
+ }, i._binOpEmitter = function(e, t, n) {
+ this.compile(e.left, t), this._emit(n), this.compile(e.right, t)
+ }, i.compileOr = function(e, t) {
+ return this._binOpEmitter(e, t, " || ")
+ }, i.compileAnd = function(e, t) {
+ return this._binOpEmitter(e, t, " && ")
+ }, i.compileAdd = function(e, t) {
+ return this._binOpEmitter(e, t, " + ")
+ }, i.compileConcat = function(e, t) {
+ return this._binOpEmitter(e, t, ' + "" + ')
+ }, i.compileSub = function(e, t) {
+ return this._binOpEmitter(e, t, " - ")
+ }, i.compileMul = function(e, t) {
+ return this._binOpEmitter(e, t, " * ")
+ }, i.compileDiv = function(e, t) {
+ return this._binOpEmitter(e, t, " / ")
+ }, i.compileMod = function(e, t) {
+ return this._binOpEmitter(e, t, " % ")
+ }, i.compileNot = function(e, t) {
+ this._emit("!"), this.compile(e.target, t)
+ }, i.compileFloorDiv = function(e, t) {
+ this._emit("Math.floor("), this.compile(e.left, t), this._emit(" / "), this.compile(e.right, t), this._emit(")")
+ }, i.compilePow = function(e, t) {
+ this._emit("Math.pow("), this.compile(e.left, t), this._emit(", "), this.compile(e.right, t), this._emit(")")
+ }, i.compileNeg = function(e, t) {
+ this._emit("-"), this.compile(e.target, t)
+ }, i.compilePos = function(e, t) {
+ this._emit("+"), this.compile(e.target, t)
+ }, i.compileCompare = function(e, t) {
+ var n = this;
+ this.compile(e.expr, t), e.ops.forEach((function(e) {
+ n._emit(" " + Mr[e.type] + " "), n.compile(e.expr, t)
+ }))
+ }, i.compileLookupVal = function(e, t) {
+ this._emit("runtime.memberLookup(("), this._compileExpression(e.target, t), this._emit("),"), this._compileExpression(e.val, t), this._emit(")")
+ }, i._getNodeName = function(e) {
+ switch (e.typename) {
+ case "Symbol":
+ return e.value;
+ case "FunCall":
+ return "the return value of (" + this._getNodeName(e.name) + ")";
+ case "LookupVal":
+ return this._getNodeName(e.target) + '["' + this._getNodeName(e.val) + '"]';
+ case "Literal":
+ return e.value.toString();
+ default:
+ return "--expression--"
+ }
+ }, i.compileFunCall = function(e, t) {
+ this._emit("(lineno = " + e.lineno + ", colno = " + e.colno + ", "), this._emit("runtime.callWrap("), this._compileExpression(e.name, t), this._emit(', "' + this._getNodeName(e.name).replace(/"/g, '\\"') + '", context, '), this._compileAggregate(e.args, t, "[", "])"), this._emit(")")
+ }, i.compileFilter = function(e, t) {
+ var n = e.name;
+ this.assertType(n, hr.Symbol), this._emit('env.getFilter("' + n.value + '").call(context, '), this._compileAggregate(e.args, t), this._emit(")")
+ }, i.compileFilterAsync = function(e, t) {
+ var n = e.name,
+ r = e.symbol.value;
+ this.assertType(n, hr.Symbol), t.set(r, r), this._emit('env.getFilter("' + n.value + '").call(context, '), this._compileAggregate(e.args, t), this._emitLine(", " + this._makeCallback(r)), this._addScopeLevel()
+ }, i.compileKeywordArgs = function(e, t) {
+ this._emit("runtime.makeKeywordArgs("), this.compileDict(e, t), this._emit(")")
+ }, i.compileSet = function(e, t) {
+ var n = this,
+ r = [];
+ e.targets.forEach((function(e) {
+ var i = e.value,
+ s = t.lookup(i);
+ null == s && (s = n._tmpid(), n._emitLine("var " + s + ";")), r.push(s)
+ })), e.value ? (this._emit(r.join(" = ") + " = "), this._compileExpression(e.value, t), this._emitLine(";")) : (this._emit(r.join(" = ") + " = "), this.compile(e.body, t), this._emitLine(";")), e.targets.forEach((function(e, t) {
+ var i = r[t],
+ s = e.value;
+ n._emitLine('frame.set("' + s + '", ' + i + ", true);"), n._emitLine("if(frame.topLevel) {"), n._emitLine('context.setVariable("' + s + '", ' + i + ");"), n._emitLine("}"), "_" !== s.charAt(0) && (n._emitLine("if(frame.topLevel) {"), n._emitLine('context.addExport("' + s + '", ' + i + ");"), n._emitLine("}"))
+ }))
+ }, i.compileSwitch = function(e, t) {
+ var n = this;
+ this._emit("switch ("), this.compile(e.expr, t), this._emit(") {"), e.cases.forEach((function(e, r) {
+ n._emit("case "), n.compile(e.cond, t), n._emit(": "), n.compile(e.body, t), e.body.children.length && n._emitLine("break;")
+ })), e.default && (this._emit("default:"), this.compile(e.default, t)), this._emit("}")
+ }, i.compileIf = function(e, t, n) {
+ var r = this;
+ this._emit("if("), this._compileExpression(e.cond, t), this._emitLine(") {"), this._withScopedSyntax((function() {
+ r.compile(e.body, t), n && r._emit("cb()")
+ })), e.else_ ? (this._emitLine("}\nelse {"), this._withScopedSyntax((function() {
+ r.compile(e.else_, t), n && r._emit("cb()")
+ }))) : n && (this._emitLine("}\nelse {"), this._emit("cb()")), this._emitLine("}")
+ }, i.compileIfAsync = function(e, t) {
+ this._emit("(function(cb) {"), this.compileIf(e, t, !0), this._emit("})(" + this._makeCallback()), this._addScopeLevel()
+ }, i._emitLoopBindings = function(e, t, n, r) {
+ var i = this;
+ [{
+ name: "index",
+ val: n + " + 1"
+ }, {
+ name: "index0",
+ val: n
+ }, {
+ name: "revindex",
+ val: r + " - " + n
+ }, {
+ name: "revindex0",
+ val: r + " - " + n + " - 1"
+ }, {
+ name: "first",
+ val: n + " === 0"
+ }, {
+ name: "last",
+ val: n + " === " + r + " - 1"
+ }, {
+ name: "length",
+ val: r
+ }].forEach((function(e) {
+ i._emitLine('frame.set("loop.' + e.name + '", ' + e.val + ");")
+ }))
+ }, i.compileFor = function(e, t) {
+ var n = this,
+ r = this._tmpid(),
+ i = this._tmpid(),
+ s = this._tmpid();
+ if (t = t.push(), this._emitLine("frame = frame.push();"), this._emit("var " + s + " = "), this._compileExpression(e.arr, t), this._emitLine(";"), this._emit("if(" + s + ") {"), this._emitLine(s + " = runtime.fromIterator(" + s + ");"), e.name instanceof hr.Array) {
+ this._emitLine("var " + r + ";"), this._emitLine("if(runtime.isArray(" + s + ")) {"), this._emitLine("var " + i + " = " + s + ".length;"), this._emitLine("for(" + r + "=0; " + r + " < " + s + ".length; " + r + "++) {"), e.name.children.forEach((function(i, a) {
+ var o = n._tmpid();
+ n._emitLine("var " + o + " = " + s + "[" + r + "][" + a + "];"), n._emitLine('frame.set("' + i + '", ' + s + "[" + r + "][" + a + "]);"), t.set(e.name.children[a].value, o)
+ })), this._emitLoopBindings(e, s, r, i), this._withScopedSyntax((function() {
+ n.compile(e.body, t)
+ })), this._emitLine("}"), this._emitLine("} else {");
+ var a = e.name.children,
+ o = a[0],
+ c = a[1],
+ l = this._tmpid(),
+ h = this._tmpid();
+ t.set(o.value, l), t.set(c.value, h), this._emitLine(r + " = -1;"), this._emitLine("var " + i + " = runtime.keys(" + s + ").length;"), this._emitLine("for(var " + l + " in " + s + ") {"), this._emitLine(r + "++;"), this._emitLine("var " + h + " = " + s + "[" + l + "];"), this._emitLine('frame.set("' + o.value + '", ' + l + ");"), this._emitLine('frame.set("' + c.value + '", ' + h + ");"), this._emitLoopBindings(e, s, r, i), this._withScopedSyntax((function() {
+ n.compile(e.body, t)
+ })), this._emitLine("}"), this._emitLine("}")
+ } else {
+ var u = this._tmpid();
+ t.set(e.name.value, u), this._emitLine("var " + i + " = " + s + ".length;"), this._emitLine("for(var " + r + "=0; " + r + " < " + s + ".length; " + r + "++) {"), this._emitLine("var " + u + " = " + s + "[" + r + "];"), this._emitLine('frame.set("' + e.name.value + '", ' + u + ");"), this._emitLoopBindings(e, s, r, i), this._withScopedSyntax((function() {
+ n.compile(e.body, t)
+ })), this._emitLine("}")
+ }
+ this._emitLine("}"), e.else_ && (this._emitLine("if (!" + i + ") {"), this.compile(e.else_, t), this._emitLine("}")), this._emitLine("frame = frame.pop();")
+ }, i._compileAsyncLoop = function(e, t, n) {
+ var r = this,
+ i = this._tmpid(),
+ s = this._tmpid(),
+ a = this._tmpid(),
+ o = n ? "asyncAll" : "asyncEach";
+ if (t = t.push(), this._emitLine("frame = frame.push();"), this._emit("var " + a + " = runtime.fromIterator("), this._compileExpression(e.arr, t), this._emitLine(");"), e.name instanceof hr.Array) {
+ var c = e.name.children.length;
+ this._emit("runtime." + o + "(" + a + ", " + c + ", function("), e.name.children.forEach((function(e) {
+ r._emit(e.value + ",")
+ })), this._emit(i + "," + s + ",next) {"), e.name.children.forEach((function(e) {
+ var n = e.value;
+ t.set(n, n), r._emitLine('frame.set("' + n + '", ' + n + ");")
+ }))
+ } else {
+ var l = e.name.value;
+ this._emitLine("runtime." + o + "(" + a + ", 1, function(" + l + ", " + i + ", " + s + ",next) {"), this._emitLine('frame.set("' + l + '", ' + l + ");"), t.set(l, l)
+ }
+ this._emitLoopBindings(e, a, i, s), this._withScopedSyntax((function() {
+ var s;
+ n && (s = r._pushBuffer()), r.compile(e.body, t), r._emitLine("next(" + i + (s ? "," + s : "") + ");"), n && r._popBuffer()
+ }));
+ var h = this._tmpid();
+ this._emitLine("}, " + this._makeCallback(h)), this._addScopeLevel(), n && this._emitLine(this.buffer + " += " + h + ";"), e.else_ && (this._emitLine("if (!" + a + ".length) {"), this.compile(e.else_, t), this._emitLine("}")), this._emitLine("frame = frame.pop();")
+ }, i.compileAsyncEach = function(e, t) {
+ this._compileAsyncLoop(e, t)
+ }, i.compileAsyncAll = function(e, t) {
+ this._compileAsyncLoop(e, t, !0)
+ }, i._compileMacro = function(e, t) {
+ var n = this,
+ r = [],
+ i = null,
+ s = "macro_" + this._tmpid(),
+ a = void 0 !== t;
+ e.args.children.forEach((function(t, s) {
+ s === e.args.children.length - 1 && t instanceof hr.Dict ? i = t : (n.assertType(t, hr.Symbol), r.push(t))
+ }));
+ var o, c = [].concat(r.map((function(e) {
+ return "l_" + e.value
+ })), ["kwargs"]),
+ l = r.map((function(e) {
+ return '"' + e.value + '"'
+ })),
+ h = (i && i.children || []).map((function(e) {
+ return '"' + e.key.value + '"'
+ }));
+ o = a ? t.push(!0) : new Rr, this._emitLines("var " + s + " = runtime.makeMacro(", "[" + l.join(", ") + "], ", "[" + h.join(", ") + "], ", "function (" + c.join(", ") + ") {", "var callerFrame = frame;", "frame = " + (a ? "frame.push(true);" : "new runtime.Frame();"), "kwargs = kwargs || {};", 'if (Object.prototype.hasOwnProperty.call(kwargs, "caller")) {', 'frame.set("caller", kwargs.caller); }'), r.forEach((function(e) {
+ n._emitLine('frame.set("' + e.value + '", l_' + e.value + ");"), o.set(e.value, "l_" + e.value)
+ })), i && i.children.forEach((function(e) {
+ var t = e.key.value;
+ n._emit('frame.set("' + t + '", '), n._emit('Object.prototype.hasOwnProperty.call(kwargs, "' + t + '")'), n._emit(' ? kwargs["' + t + '"] : '), n._compileExpression(e.value, o), n._emit(");")
+ }));
+ var u = this._pushBuffer();
+ return this._withScopedSyntax((function() {
+ n.compile(e.body, o)
+ })), this._emitLine("frame = " + (a ? "frame.pop();" : "callerFrame;")), this._emitLine("return new runtime.SafeString(" + u + ");"), this._emitLine("});"), this._popBuffer(), s
+ }, i.compileMacro = function(e, t) {
+ var n = this._compileMacro(e),
+ r = e.name.value;
+ t.set(r, n), t.parent ? this._emitLine('frame.set("' + r + '", ' + n + ");") : ("_" !== e.name.value.charAt(0) && this._emitLine('context.addExport("' + r + '");'), this._emitLine('context.setVariable("' + r + '", ' + n + ");"))
+ }, i.compileCaller = function(e, t) {
+ this._emit("(function (){");
+ var n = this._compileMacro(e, t);
+ this._emit("return " + n + ";})()")
+ }, i._compileGetTemplate = function(e, t, n, r) {
+ var i = this._tmpid(),
+ s = this._templateName(),
+ a = this._makeCallback(i),
+ o = n ? "true" : "false",
+ c = r ? "true" : "false";
+ return this._emit("env.getTemplate("), this._compileExpression(e.template, t), this._emitLine(", " + o + ", " + s + ", " + c + ", " + a), i
+ }, i.compileImport = function(e, t) {
+ var n = e.target.value,
+ r = this._compileGetTemplate(e, t, !1, !1);
+ this._addScopeLevel(), this._emitLine(r + ".getExported(" + (e.withContext ? "context.getVariables(), frame, " : "") + this._makeCallback(r)), this._addScopeLevel(), t.set(n, r), t.parent ? this._emitLine('frame.set("' + n + '", ' + r + ");") : this._emitLine('context.setVariable("' + n + '", ' + r + ");")
+ }, i.compileFromImport = function(e, t) {
+ var n = this,
+ r = this._compileGetTemplate(e, t, !1, !1);
+ this._addScopeLevel(), this._emitLine(r + ".getExported(" + (e.withContext ? "context.getVariables(), frame, " : "") + this._makeCallback(r)), this._addScopeLevel(), e.names.children.forEach((function(e) {
+ var i, s, a = n._tmpid();
+ e instanceof hr.Pair ? (i = e.key.value, s = e.value.value) : s = i = e.value, n._emitLine("if(Object.prototype.hasOwnProperty.call(" + r + ', "' + i + '")) {'), n._emitLine("var " + a + " = " + r + "." + i + ";"), n._emitLine("} else {"), n._emitLine("cb(new Error(\"cannot import '" + i + "'\")); return;"), n._emitLine("}"), t.set(s, a), t.parent ? n._emitLine('frame.set("' + s + '", ' + a + ");") : n._emitLine('context.setVariable("' + s + '", ' + a + ");")
+ }))
+ }, i.compileBlock = function(e) {
+ var t = this._tmpid();
+ this.inBlock || this._emit('(parentTemplate ? function(e, c, f, r, cb) { cb(""); } : '), this._emit('context.getBlock("' + e.name.value + '")'), this.inBlock || this._emit(")"), this._emitLine("(env, context, frame, runtime, " + this._makeCallback(t)), this._emitLine(this.buffer + " += " + t + ";"), this._addScopeLevel()
+ }, i.compileSuper = function(e, t) {
+ var n = e.blockName.value,
+ r = e.symbol.value,
+ i = this._makeCallback(r);
+ this._emitLine('context.getSuper(env, "' + n + '", b_' + n + ", frame, runtime, " + i), this._emitLine(r + " = runtime.markSafe(" + r + ");"), this._addScopeLevel(), t.set(r, r)
+ }, i.compileExtends = function(e, t) {
+ var n = this._tmpid(),
+ r = this._compileGetTemplate(e, t, !0, !1);
+ this._emitLine("parentTemplate = " + r), this._emitLine("for(var " + n + " in parentTemplate.blocks) {"), this._emitLine("context.addBlock(" + n + ", parentTemplate.blocks[" + n + "]);"), this._emitLine("}"), this._addScopeLevel()
+ }, i.compileInclude = function(e, t) {
+ this._emitLine("var tasks = [];"), this._emitLine("tasks.push("), this._emitLine("function(callback) {");
+ var n = this._compileGetTemplate(e, t, !1, e.ignoreMissing);
+ this._emitLine("callback(null," + n + ");});"), this._emitLine("});");
+ var r = this._tmpid();
+ this._emitLine("tasks.push("), this._emitLine("function(template, callback){"), this._emitLine("template.render(context.getVariables(), frame, " + this._makeCallback(r)), this._emitLine("callback(null," + r + ");});"), this._emitLine("});"), this._emitLine("tasks.push("), this._emitLine("function(result, callback){"), this._emitLine(this.buffer + " += result;"), this._emitLine("callback(null);"), this._emitLine("});"), this._emitLine("env.waterfall(tasks, function(){"), this._addScopeLevel()
+ }, i.compileTemplateData = function(e, t) {
+ this.compileLiteral(e, t)
+ }, i.compileCapture = function(e, t) {
+ var n = this,
+ r = this.buffer;
+ this.buffer = "output", this._emitLine("(function() {"), this._emitLine('var output = "";'), this._withScopedSyntax((function() {
+ n.compile(e.body, t)
+ })), this._emitLine("return output;"), this._emitLine("})()"), this.buffer = r
+ }, i.compileOutput = function(e, t) {
+ var n = this;
+ e.children.forEach((function(r) {
+ r instanceof hr.TemplateData ? r.value && (n._emit(n.buffer + " += "), n.compileLiteral(r, t), n._emitLine(";")) : (n._emit(n.buffer + " += runtime.suppressValue("), n.throwOnUndefined && n._emit("runtime.ensureDefined("), n.compile(r, t), n.throwOnUndefined && n._emit("," + e.lineno + "," + e.colno + ")"), n._emit(", env.opts.autoescape);\n"))
+ }))
+ }, i.compileRoot = function(e, t) {
+ var n = this;
+ t && this.fail("compileRoot: root node can't have frame"), t = new Rr, this._emitFuncBegin(e, "root"), this._emitLine("var parentTemplate = null;"), this._compileChildren(e, t), this._emitLine("if(parentTemplate) {"), this._emitLine("parentTemplate.rootRenderFunc(env, context, frame, runtime, cb);"), this._emitLine("} else {"), this._emitLine("cb(null, " + this.buffer + ");"), this._emitLine("}"), this._emitFuncEnd(!0), this.inBlock = !0;
+ var r = [],
+ i = e.findAll(hr.Block);
+ i.forEach((function(e, t) {
+ var i = e.name.value;
+ if (-1 !== r.indexOf(i)) throw new Error('Block "' + i + '" defined more than once.');
+ r.push(i), n._emitFuncBegin(e, "b_" + i);
+ var s = new Rr;
+ n._emitLine("var frame = frame.push(true);"), n.compile(e.body, s), n._emitFuncEnd()
+ })), this._emitLine("return {"), i.forEach((function(e, t) {
+ var r = "b_" + e.name.value;
+ n._emitLine(r + ": " + r + ",")
+ })), this._emitLine("root: root\n};")
+ }, i.compile = function(e, t) {
+ var n = this["compile" + e.typename];
+ n ? n.call(this, e, t) : this.fail("compile: Cannot compile node: " + e.typename, e.lineno, e.colno)
+ }, i.getCode = function() {
+ return this.codebuf.join("")
+ }, r
+ }(en.Obj),
+ xr = {
+ compile: function(e, t, n, r, i) {
+ void 0 === i && (i = {});
+ var s = new Pr(r, i.throwOnUndefined),
+ a = (n || []).map((function(e) {
+ return e.preprocess
+ })).filter((function(e) {
+ return !!e
+ })).reduce((function(e, t) {
+ return t(e)
+ }), e);
+ return s.compile(Nr.transform(fr.parse(a, n, i), t, r)), s.getCode()
+ },
+ Compiler: Pr
+ },
+ wr = Ke((function(e) {
+ var t = e.exports = {};
+
+ function n(e, t) {
+ return null == e || !1 === e ? t : e
+ }
+
+ function r(e) {
+ return e != e
+ }
+
+ function i(e) {
+ var t = (e = n(e, "")).toLowerCase();
+ return kr.copySafeness(e, t.charAt(0).toUpperCase() + t.slice(1))
+ }
+
+ function s(e) {
+ if (je.isString(e)) return e.split("");
+ if (je.isObject(e)) return je._entries(e || {}).map((function(e) {
+ return {
+ key: e[0],
+ value: e[1]
+ }
+ }));
+ if (je.isArray(e)) return e;
+ throw new je.TemplateError("list filter: type not iterable")
+ }
+
+ function a(e) {
+ return function(t, n, r) {
+ void 0 === n && (n = "truthy");
+ var i = this,
+ s = i.env.getTest(n);
+ return je.toArray(t).filter((function(t) {
+ return s.call(i, t, r) === e
+ }))
+ }
+ }
+
+ function o(e) {
+ return kr.copySafeness(e, e.replace(/^\s*|\s*$/g, ""))
+ }
+ t.abs = Math.abs, t.batch = function(e, t, n) {
+ var r, i = [],
+ s = [];
+ for (r = 0; r < e.length; r++) r % t == 0 && s.length && (i.push(s), s = []), s.push(e[r]);
+ if (s.length) {
+ if (n)
+ for (r = s.length; r < t; r++) s.push(n);
+ i.push(s)
+ }
+ return i
+ }, t.capitalize = i, t.center = function(e, t) {
+ if (t = t || 80, (e = n(e, "")).length >= t) return e;
+ var r = t - e.length,
+ i = je.repeat(" ", r / 2 - r % 2),
+ s = je.repeat(" ", r / 2);
+ return kr.copySafeness(e, i + e + s)
+ }, t.default = function(e, t, n) {
+ return n ? e || t : void 0 !== e ? e : t
+ }, t.dictsort = function(e, t, n) {
+ if (!je.isObject(e)) throw new je.TemplateError("dictsort filter: val must be an object");
+ var r, i = [];
+ for (var s in e) i.push([s, e[s]]);
+ if (void 0 === n || "key" === n) r = 0;
+ else {
+ if ("value" !== n) throw new je.TemplateError("dictsort filter: You can only sort by either key or value");
+ r = 1
+ }
+ return i.sort((function(e, n) {
+ var i = e[r],
+ s = n[r];
+ return t || (je.isString(i) && (i = i.toUpperCase()), je.isString(s) && (s = s.toUpperCase())), i > s ? 1 : i === s ? 0 : -1
+ })), i
+ }, t.dump = function(e, t) {
+ return JSON.stringify(e, null, t)
+ }, t.escape = function(e) {
+ return e instanceof kr.SafeString ? e : (e = null == e ? "" : e, kr.markSafe(je.escape(e.toString())))
+ }, t.safe = function(e) {
+ return e instanceof kr.SafeString ? e : (e = null == e ? "" : e, kr.markSafe(e.toString()))
+ }, t.first = function(e) {
+ return e[0]
+ }, t.forceescape = function(e) {
+ return e = null == e ? "" : e, kr.markSafe(je.escape(e.toString()))
+ }, t.groupby = function(e, t) {
+ return je.groupBy(e, t, this.env.opts.throwOnUndefined)
+ }, t.indent = function(e, t, r) {
+ if ("" === (e = n(e, ""))) return "";
+ t = t || 4;
+ var i = e.split("\n"),
+ s = je.repeat(" ", t),
+ a = i.map((function(e, t) {
+ return 0 !== t || r ? "" + s + e : e
+ })).join("\n");
+ return kr.copySafeness(e, a)
+ }, t.join = function(e, t, n) {
+ return t = t || "", n && (e = je.map(e, (function(e) {
+ return e[n]
+ }))), e.join(t)
+ }, t.last = function(e) {
+ return e[e.length - 1]
+ }, t.length = function(e) {
+ var t = n(e, "");
+ return void 0 !== t ? "function" == typeof Map && t instanceof Map || "function" == typeof Set && t instanceof Set ? t.size : !je.isObject(t) || t instanceof kr.SafeString ? t.length : je.keys(t).length : 0
+ }, t.list = s, t.lower = function(e) {
+ return (e = n(e, "")).toLowerCase()
+ }, t.nl2br = function(e) {
+ return null == e ? "" : kr.copySafeness(e, e.replace(/\r\n|\n/g, "
\n"))
+ }, t.random = function(e) {
+ return e[Math.floor(Math.random() * e.length)]
+ }, t.reject = a(!1), t.rejectattr = function(e, t) {
+ return e.filter((function(e) {
+ return !e[t]
+ }))
+ }, t.select = a(!0), t.selectattr = function(e, t) {
+ return e.filter((function(e) {
+ return !!e[t]
+ }))
+ }, t.replace = function(e, t, n, r) {
+ var i = e;
+ if (t instanceof RegExp) return e.replace(t, n);
+ void 0 === r && (r = -1);
+ var s = "";
+ if ("number" == typeof t) t = "" + t;
+ else if ("string" != typeof t) return e;
+ if ("number" == typeof e && (e = "" + e), "string" != typeof e && !(e instanceof kr.SafeString)) return e;
+ if ("" === t) return s = n + e.split("").join(n) + n, kr.copySafeness(e, s);
+ var a = e.indexOf(t);
+ if (0 === r || -1 === a) return e;
+ for (var o = 0, c = 0; a > -1 && (-1 === r || c < r);) s += e.substring(o, a) + n, o = a + t.length, c++, a = e.indexOf(t, o);
+ return o < e.length && (s += e.substring(o)), kr.copySafeness(i, s)
+ }, t.reverse = function(e) {
+ var t;
+ return (t = je.isString(e) ? s(e) : je.map(e, (function(e) {
+ return e
+ }))).reverse(), je.isString(e) ? kr.copySafeness(e, t.join("")) : t
+ }, t.round = function(e, t, n) {
+ t = t || 0;
+ var r = Math.pow(10, t);
+ return ("ceil" === n ? Math.ceil : "floor" === n ? Math.floor : Math.round)(e * r) / r
+ }, t.slice = function(e, t, n) {
+ for (var r = Math.floor(e.length / t), i = e.length % t, s = [], a = 0, o = 0; o < t; o++) {
+ var c = a + o * r;
+ o < i && a++;
+ var l = a + (o + 1) * r,
+ h = e.slice(c, l);
+ n && o >= i && h.push(n), s.push(h)
+ }
+ return s
+ }, t.sum = function(e, t, n) {
+ return void 0 === n && (n = 0), t && (e = je.map(e, (function(e) {
+ return e[t]
+ }))), n + e.reduce((function(e, t) {
+ return e + t
+ }), 0)
+ }, t.sort = kr.makeMacro(["value", "reverse", "case_sensitive", "attribute"], [], (function(e, t, n, r) {
+ var i = this,
+ s = je.map(e, (function(e) {
+ return e
+ })),
+ a = je.getAttrGetter(r);
+ return s.sort((function(e, s) {
+ var o = r ? a(e) : e,
+ c = r ? a(s) : s;
+ if (i.env.opts.throwOnUndefined && r && (void 0 === o || void 0 === c)) throw new TypeError('sort: attribute "' + r + '" resolved to undefined');
+ return !n && je.isString(o) && je.isString(c) && (o = o.toLowerCase(), c = c.toLowerCase()), o < c ? t ? 1 : -1 : o > c ? t ? -1 : 1 : 0
+ })), s
+ })), t.string = function(e) {
+ return kr.copySafeness(e, e)
+ }, t.striptags = function(e, t) {
+ var r = o((e = n(e, "")).replace(/<\/?([a-z][a-z0-9]*)\b[^>]*>|/gi, "")),
+ i = "";
+ return i = t ? r.replace(/^ +| +$/gm, "").replace(/ +/g, " ").replace(/(\r\n)/g, "\n").replace(/\n\n\n+/g, "\n\n") : r.replace(/\s+/gi, " "), kr.copySafeness(e, i)
+ }, t.title = function(e) {
+ var t = (e = n(e, "")).split(" ").map((function(e) {
+ return i(e)
+ }));
+ return kr.copySafeness(e, t.join(" "))
+ }, t.trim = o, t.truncate = function(e, t, r, i) {
+ var s = e;
+ if (t = t || 255, (e = n(e, "")).length <= t) return e;
+ if (r) e = e.substring(0, t);
+ else {
+ var a = e.lastIndexOf(" ", t); - 1 === a && (a = t), e = e.substring(0, a)
+ }
+ return e += null != i ? i : "...", kr.copySafeness(s, e)
+ }, t.upper = function(e) {
+ return (e = n(e, "")).toUpperCase()
+ }, t.urlencode = function(e) {
+ var t = encodeURIComponent;
+ return je.isString(e) ? t(e) : (je.isArray(e) ? e : je._entries(e)).map((function(e) {
+ var n = e[0],
+ r = e[1];
+ return t(n) + "=" + t(r)
+ })).join("&")
+ };
+ var c = /^(?:\(|<|<)?(.*?)(?:\.|,|\)|\n|>)?$/,
+ l = /^[\w.!#$%&'*+\-\/=?\^`{|}~]+@[a-z\d\-]+(\.[a-z\d\-]+)+$/i,
+ h = /^https?:\/\/.*$/,
+ u = /^www\./,
+ p = /\.(?:org|net|com)(?:\:|\/|$)/;
+ t.urlize = function(e, t, n) {
+ r(t) && (t = 1 / 0);
+ var i = !0 === n ? ' rel="nofollow"' : "";
+ return e.split(/(\s+)/).filter((function(e) {
+ return e && e.length
+ })).map((function(e) {
+ var n = e.match(c),
+ r = n ? n[1] : e,
+ s = r.substr(0, t);
+ return h.test(r) ? '" + s + "" : u.test(r) ? '" + s + "" : l.test(r) ? '' + r + "" : p.test(r) ? '" + s + "" : e
+ })).join("")
+ }, t.wordcount = function(e) {
+ var t = (e = n(e, "")) ? e.match(/\w+/g) : null;
+ return t ? t.length : null
+ }, t.float = function(e, t) {
+ var n = parseFloat(e);
+ return r(n) ? t : n
+ };
+ var f = kr.makeMacro(["value", "default", "base"], [], (function(e, t, n) {
+ void 0 === n && (n = 10);
+ var i = parseInt(e, n);
+ return r(i) ? t : i
+ }));
+ t.int = f, t.d = t.default, t.e = t.escape
+ })),
+ Br = {};
+
+function Fr(e, t) {
+ for (var n = 0, r = e.length - 1; r >= 0; r--) {
+ var i = e[r];
+ "." === i ? e.splice(r, 1) : ".." === i ? (e.splice(r, 1), n++) : n && (e.splice(r, 1), n--)
+ }
+ if (t)
+ for (; n--; n) e.unshift("..");
+ return e
+}
+var Ur = /^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,
+ Hr = function(e) {
+ return Ur.exec(e).slice(1)
+ };
+
+function Gr() {
+ for (var e = "", t = !1, n = arguments.length - 1; n >= -1 && !t; n--) {
+ var r = n >= 0 ? arguments[n] : "/";
+ if ("string" != typeof r) throw new TypeError("Arguments to path.resolve must be strings");
+ r && (e = r + "/" + e, t = "/" === r.charAt(0))
+ }
+ return (t ? "/" : "") + (e = Fr(jr(e.split("/"), (function(e) {
+ return !!e
+ })), !t).join("/")) || "."
+}
+
+function Yr(e) {
+ var t = qr(e),
+ n = "/" === Vr(e, -1);
+ return (e = Fr(jr(e.split("/"), (function(e) {
+ return !!e
+ })), !t).join("/")) || t || (e = "."), e && n && (e += "/"), (t ? "/" : "") + e
+}
+
+function qr(e) {
+ return "/" === e.charAt(0)
+}
+var Kr = {
+ extname: function(e) {
+ return Hr(e)[3]
+ },
+ basename: function(e, t) {
+ var n = Hr(e)[2];
+ return t && n.substr(-1 * t.length) === t && (n = n.substr(0, n.length - t.length)), n
+ },
+ dirname: function(e) {
+ var t = Hr(e),
+ n = t[0],
+ r = t[1];
+ return n || r ? (r && (r = r.substr(0, r.length - 1)), n + r) : "."
+ },
+ sep: "/",
+ delimiter: ":",
+ relative: function(e, t) {
+ function n(e) {
+ for (var t = 0; t < e.length && "" === e[t]; t++);
+ for (var n = e.length - 1; n >= 0 && "" === e[n]; n--);
+ return t > n ? [] : e.slice(t, n - t + 1)
+ }
+ e = Gr(e).substr(1), t = Gr(t).substr(1);
+ for (var r = n(e.split("/")), i = n(t.split("/")), s = Math.min(r.length, i.length), a = s, o = 0; o < s; o++)
+ if (r[o] !== i[o]) {
+ a = o;
+ break
+ } var c = [];
+ for (o = a; o < r.length; o++) c.push("..");
+ return (c = c.concat(i.slice(a))).join("/")
+ },
+ join: function() {
+ var e = Array.prototype.slice.call(arguments, 0);
+ return Yr(jr(e, (function(e, t) {
+ if ("string" != typeof e) throw new TypeError("Arguments to path.join must be strings");
+ return e
+ })).join("/"))
+ },
+ isAbsolute: qr,
+ normalize: Yr,
+ resolve: Gr
+};
+
+function jr(e, t) {
+ if (e.filter) return e.filter(t);
+ for (var n = [], r = 0; r < e.length; r++) t(e[r], r, e) && n.push(e[r]);
+ return n
+}
+var Vr = "b" === "ab".substr(-1) ? function(e, t, n) {
+ return e.substr(t, n)
+} : function(e, t, n) {
+ return t < 0 && (t = e.length + t), e.substr(t, n)
+};
+
+function Wr(e, t) {
+ return Wr = Object.setPrototypeOf || function(e, t) {
+ return e.__proto__ = t, e
+ }, Wr(e, t)
+}
+var Qr = function(e) {
+ var t, n;
+
+ function r() {
+ return e.apply(this, arguments) || this
+ }
+ n = e, (t = r).prototype = Object.create(n.prototype), t.prototype.constructor = t, Wr(t, n);
+ var i = r.prototype;
+ return i.resolve = function(e, t) {
+ return Kr.resolve(Kr.dirname(e), t)
+ }, i.isRelative = function(e) {
+ return 0 === e.indexOf("./") || 0 === e.indexOf("../")
+ }, r
+}(en.EmitterObj);
+
+function Xr(e, t) {
+ return Xr = Object.setPrototypeOf || function(e, t) {
+ return e.__proto__ = t, e
+ }, Xr(e, t)
+}
+var $r = function(e) {
+ var t, n;
+
+ function r(t) {
+ var n;
+ return (n = e.call(this) || this).precompiled = t || {}, n
+ }
+ return n = e, (t = r).prototype = Object.create(n.prototype), t.prototype.constructor = t, Xr(t, n), r.prototype.getSource = function(e) {
+ return this.precompiled[e] ? {
+ src: {
+ type: "code",
+ obj: this.precompiled[e]
+ },
+ path: e
+ } : null
+ }, r
+}(Qr);
+
+function zr(e, t) {
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, Jr(e, t)
+}
+
+function Jr(e, t) {
+ return Jr = Object.setPrototypeOf || function(e, t) {
+ return e.__proto__ = t, e
+ }, Jr(e, t)
+}
+var Zr = {
+ PrecompiledLoader: $r
+ }.PrecompiledLoader,
+ ei = function(e) {
+ function t(t, n) {
+ var r;
+ return n = n || {}, (r = e.call(this) || this).pathsToNames = {}, r.noCache = !!n.noCache, t ? (t = Array.isArray(t) ? t : [t], r.searchPaths = t.map(Kr.normalize)) : r.searchPaths = ["."], r
+ }
+ return zr(t, e), t.prototype.getSource = function(e) {
+ for (var t = null, n = this.searchPaths, r = 0; r < n.length; r++) {
+ var i = Kr.resolve(n[r]),
+ s = Kr.resolve(n[r], e);
+ if (0 === s.indexOf(i) && Br.existsSync(s)) {
+ t = s;
+ break
+ }
+ }
+ if (!t) return null;
+ this.pathsToNames[t] = e;
+ var a = {
+ src: Br.readFileSync(t, "utf-8"),
+ path: t,
+ noCache: this.noCache
+ };
+ return this.emit("load", e, a), a
+ }, t
+ }(Qr),
+ ti = {
+ FileSystemLoader: ei,
+ PrecompiledLoader: Zr,
+ NodeResolveLoader: function(e) {
+ function t(t) {
+ var n;
+ return t = t || {}, (n = e.call(this) || this).pathsToNames = {}, n.noCache = !!t.noCache, n
+ }
+ return zr(t, e), t.prototype.getSource = function(e) {
+ if (/^\.?\.?(\/|\\)/.test(e)) return null;
+ if (/^[A-Z]:/.test(e)) return null;
+ var t;
+ try {
+ t = Ye.resolve(e)
+ } catch (e) {
+ return null
+ }
+ this.pathsToNames[t] = e;
+ var n = {
+ src: Br.readFileSync(t, "utf-8"),
+ path: t,
+ noCache: this.noCache
+ };
+ return this.emit("load", e, n), n
+ }, t
+ }(Qr)
+ },
+ ni = Ke((function(e, t) {
+ var n = kr.SafeString;
+ t.callable = function(e) {
+ return "function" == typeof e
+ }, t.defined = function(e) {
+ return void 0 !== e
+ }, t.divisibleby = function(e, t) {
+ return e % t == 0
+ }, t.escaped = function(e) {
+ return e instanceof n
+ }, t.equalto = function(e, t) {
+ return e === t
+ }, t.eq = t.equalto, t.sameas = t.equalto, t.even = function(e) {
+ return e % 2 == 0
+ }, t.falsy = function(e) {
+ return !e
+ }, t.ge = function(e, t) {
+ return e >= t
+ }, t.greaterthan = function(e, t) {
+ return e > t
+ }, t.gt = t.greaterthan, t.le = function(e, t) {
+ return e <= t
+ }, t.lessthan = function(e, t) {
+ return e < t
+ }, t.lt = t.lessthan, t.lower = function(e) {
+ return e.toLowerCase() === e
+ }, t.ne = function(e, t) {
+ return e !== t
+ }, t.null = function(e) {
+ return null === e
+ }, t.number = function(e) {
+ return "number" == typeof e
+ }, t.odd = function(e) {
+ return e % 2 == 1
+ }, t.string = function(e) {
+ return "string" == typeof e
+ }, t.truthy = function(e) {
+ return !!e
+ }, t.undefined = function(e) {
+ return void 0 === e
+ }, t.upper = function(e) {
+ return e.toUpperCase() === e
+ }, t.iterable = function(e) {
+ return "undefined" != typeof Symbol ? !!e[Symbol.iterator] : Array.isArray(e) || "string" == typeof e
+ }, t.mapping = function(e) {
+ var t = null != e && "object" == typeof e && !Array.isArray(e);
+ return Set ? t && !(e instanceof Set) : t
+ }
+ }));
+
+function ri(e) {
+ var t = -1;
+ return {
+ current: null,
+ reset: function() {
+ t = -1, this.current = null
+ },
+ next: function() {
+ return ++t >= e.length && (t = 0), this.current = e[t], this.current
+ }
+ }
+}
+ni.callable, ni.defined, ni.divisibleby, ni.escaped, ni.equalto, ni.eq, ni.sameas, ni.even, ni.falsy, ni.ge, ni.greaterthan, ni.gt, ni.le, ni.lessthan, ni.lt, ni.lower, ni.ne, ni.number, ni.odd, ni.string, ni.truthy, ni.undefined, ni.upper, ni.iterable, ni.mapping;
+var ii = function() {
+ return {
+ range: function(e, t, n) {
+ void 0 === t ? (t = e, e = 0, n = 1) : n || (n = 1);
+ var r = [];
+ if (n > 0)
+ for (var i = e; i < t; i += n) r.push(i);
+ else
+ for (var s = e; s > t; s += n) r.push(s);
+ return r
+ },
+ cycler: function() {
+ return ri(Array.prototype.slice.call(arguments))
+ },
+ joiner: function(e) {
+ return function(e) {
+ e = e || ",";
+ var t = !0;
+ return function() {
+ var n = t ? "" : e;
+ return t = !1, n
+ }
+ }(e)
+ }
+ }
+};
+
+function si(e, t) {
+ e.prototype = Object.create(t.prototype), e.prototype.constructor = e, ai(e, t)
+}
+
+function ai(e, t) {
+ return ai = Object.setPrototypeOf || function(e, t) {
+ return e.__proto__ = t, e
+ }, ai(e, t)
+}
+var oi = ti.FileSystemLoader,
+ ci = ti.WebLoader,
+ li = ti.PrecompiledLoader,
+ hi = en.Obj,
+ ui = en.EmitterObj,
+ pi = kr.handleError,
+ fi = kr.Frame;
+
+function di(e, t, n) {
+ Gt((function() {
+ e(t, n)
+ }))
+}
+var Ei = {
+ type: "code",
+ obj: {
+ root: function(e, t, n, r, i) {
+ try {
+ i(null, "")
+ } catch (e) {
+ i(pi(e, null, null))
+ }
+ }
+ }
+ },
+ mi = function(e) {
+ function t() {
+ return e.apply(this, arguments) || this
+ }
+ si(t, e);
+ var n = t.prototype;
+ return n.init = function(e, t) {
+ var n = this;
+ t = this.opts = t || {}, this.opts.dev = !!t.dev, this.opts.autoescape = null == t.autoescape || t.autoescape, this.opts.throwOnUndefined = !!t.throwOnUndefined, this.opts.trimBlocks = !!t.trimBlocks, this.opts.lstripBlocks = !!t.lstripBlocks, this.loaders = [], e ? this.loaders = je.isArray(e) ? e : [e] : oi ? this.loaders = [new oi("views")] : ci && (this.loaders = [new ci("/views")]), "undefined" != typeof window && window.jinja2Precompiled && this.loaders.unshift(new li(window.jinja2Precompiled)), this._initLoaders(), this.globals = ii(), this.filters = {}, this.tests = {}, this.asyncFilters = [], this.extensions = {}, this.extensionsList = [], je._entries(wr).forEach((function(e) {
+ var t = e[0],
+ r = e[1];
+ return n.addFilter(t, r)
+ })), je._entries(ni).forEach((function(e) {
+ var t = e[0],
+ r = e[1];
+ return n.addTest(t, r)
+ }))
+ }, n._initLoaders = function() {
+ var e = this;
+ this.loaders.forEach((function(t) {
+ t.cache = {}, "function" == typeof t.on && (t.on("update", (function(n, r) {
+ t.cache[n] = null, e.emit("update", n, r, t)
+ })), t.on("load", (function(n, r) {
+ e.emit("load", n, r, t)
+ })))
+ }))
+ }, n.invalidateCache = function() {
+ this.loaders.forEach((function(e) {
+ e.cache = {}
+ }))
+ }, n.addExtension = function(e, t) {
+ return t.__name = e, this.extensions[e] = t, this.extensionsList.push(t), this
+ }, n.removeExtension = function(e) {
+ var t = this.getExtension(e);
+ t && (this.extensionsList = je.without(this.extensionsList, t), delete this.extensions[e])
+ }, n.getExtension = function(e) {
+ return this.extensions[e]
+ }, n.hasExtension = function(e) {
+ return !!this.extensions[e]
+ }, n.addGlobal = function(e, t) {
+ return this.globals[e] = t, this
+ }, n.getGlobal = function(e) {
+ if (void 0 === this.globals[e]) throw new Error("global not found: " + e);
+ return this.globals[e]
+ }, n.addFilter = function(e, t, n) {
+ var r = t;
+ return n && this.asyncFilters.push(e), this.filters[e] = r, this
+ }, n.getFilter = function(e) {
+ if (!this.filters[e]) throw new Error("filter not found: " + e);
+ return this.filters[e]
+ }, n.addTest = function(e, t) {
+ return this.tests[e] = t, this
+ }, n.getTest = function(e) {
+ if (!this.tests[e]) throw new Error("test not found: " + e);
+ return this.tests[e]
+ }, n.resolveTemplate = function(e, t, n) {
+ return !(!e.isRelative || !t) && e.isRelative(n) && e.resolve ? e.resolve(t, n) : n
+ }, n.getTemplate = function(e, t, n, r, i) {
+ var s, a = this,
+ o = this,
+ c = null;
+ if (e && e.raw && (e = e.raw), je.isFunction(n) && (i = n, n = null, t = t || !1), je.isFunction(t) && (i = t, t = !1), e instanceof _i) c = e;
+ else {
+ if ("string" != typeof e) throw new Error("template names must be a string: " + e);
+ for (var l = 0; l < this.loaders.length; l++) {
+ var h = this.loaders[l];
+ if (c = h.cache[this.resolveTemplate(h, n, e)]) break
+ }
+ }
+ if (c) return t && c.compile(), i ? void i(null, c) : c;
+ return je.asyncIter(this.loaders, (function(t, r, i, s) {
+ function a(e, n) {
+ e ? s(e) : n ? (n.loader = t, s(null, n)) : i()
+ }
+ e = o.resolveTemplate(t, n, e), t.async ? t.getSource(e, a) : a(null, t.getSource(e))
+ }), (function(n, o) {
+ if (o || n || r || (n = new Error("template not found: " + e)), n) {
+ if (i) return void i(n);
+ throw n
+ }
+ var c;
+ o ? (c = new _i(o.src, a, o.path, t), o.noCache || (o.loader.cache[e] = c)) : c = new _i(Ei, a, "", t), i ? i(null, c) : s = c
+ })), s
+ }, n.express = function(e) {
+ return function(e, t) {
+ function n(e, t) {
+ if (this.name = e, this.path = e, this.defaultEngine = t.defaultEngine, this.ext = Kr.extname(e), !this.ext && !this.defaultEngine) throw new Error("No default engine was specified and no extension was provided.");
+ this.ext || (this.name += this.ext = ("." !== this.defaultEngine[0] ? "." : "") + this.defaultEngine)
+ }
+ return n.prototype.render = function(t, n) {
+ e.render(this.name, t, n)
+ }, t.set("view", n), t.set("jinja2Env", e), e
+ }(this, e)
+ }, n.render = function(e, t, n) {
+ je.isFunction(t) && (n = t, t = null);
+ var r = null;
+ return this.getTemplate(e, (function(e, i) {
+ if (e && n) di(n, e);
+ else {
+ if (e) throw e;
+ r = i.render(t, n)
+ }
+ })), r
+ }, n.renderString = function(e, t, n, r) {
+ return je.isFunction(n) && (r = n, n = {}), new _i(e, this, (n = n || {}).path).render(t, r)
+ }, n.waterfall = function(e, t, n) {
+ return qt(e, t, n)
+ }, t
+ }(ui),
+ Ti = function(e) {
+ function t() {
+ return e.apply(this, arguments) || this
+ }
+ si(t, e);
+ var n = t.prototype;
+ return n.init = function(e, t, n) {
+ var r = this;
+ this.env = n || new mi, this.ctx = je.extend({}, e), this.blocks = {}, this.exported = [], je.keys(t).forEach((function(e) {
+ r.addBlock(e, t[e])
+ }))
+ }, n.lookup = function(e) {
+ return e in this.env.globals && !(e in this.ctx) ? this.env.globals[e] : this.ctx[e]
+ }, n.setVariable = function(e, t) {
+ this.ctx[e] = t
+ }, n.getVariables = function() {
+ return this.ctx
+ }, n.addBlock = function(e, t) {
+ return this.blocks[e] = this.blocks[e] || [], this.blocks[e].push(t), this
+ }, n.getBlock = function(e) {
+ if (!this.blocks[e]) throw new Error('unknown block "' + e + '"');
+ return this.blocks[e][0]
+ }, n.getSuper = function(e, t, n, r, i, s) {
+ var a = je.indexOf(this.blocks[t] || [], n),
+ o = this.blocks[t][a + 1];
+ if (-1 === a || !o) throw new Error('no super block available for "' + t + '"');
+ o(e, this, r, i, s)
+ }, n.addExport = function(e) {
+ this.exported.push(e)
+ }, n.getExported = function() {
+ var e = this,
+ t = {};
+ return this.exported.forEach((function(n) {
+ t[n] = e.ctx[n]
+ })), t
+ }, t
+ }(hi),
+ _i = function(e) {
+ function t() {
+ return e.apply(this, arguments) || this
+ }
+ si(t, e);
+ var n = t.prototype;
+ return n.init = function(e, t, n, r) {
+ if (this.env = t || new mi, je.isObject(e)) switch (e.type) {
+ case "code":
+ this.tmplProps = e.obj;
+ break;
+ case "string":
+ this.tmplStr = e.obj;
+ break;
+ default:
+ throw new Error("Unexpected template object type " + e.type + "; expected 'code', or 'string'")
+ } else {
+ if (!je.isString(e)) throw new Error("src must be a string or an object describing the source");
+ this.tmplStr = e
+ }
+ if (this.path = n, r) try {
+ this._compile()
+ } catch (e) {
+ throw je._prettifyError(this.path, this.env.opts.dev, e)
+ } else this.compiled = !1
+ }, n.render = function(e, t, n) {
+ var r = this;
+ "function" == typeof e ? (n = e, e = {}) : "function" == typeof t && (n = t, t = null);
+ var i = !t;
+ try {
+ this.compile()
+ } catch (e) {
+ var s = je._prettifyError(this.path, this.env.opts.dev, e);
+ if (n) return di(n, s);
+ throw s
+ }
+ var a = new Ti(e || {}, this.blocks, this.env),
+ o = t ? t.push(!0) : new fi;
+ o.topLevel = !0;
+ var c = null,
+ l = !1;
+ return this.rootRenderFunc(this.env, a, o, kr, (function(e, t) {
+ if (!l || !n || void 0 === t)
+ if (e && (e = je._prettifyError(r.path, r.env.opts.dev, e), l = !0), n) i ? di(n, e, t) : n(e, t);
+ else {
+ if (e) throw e;
+ c = t
+ }
+ })), c
+ }, n.getExported = function(e, t, n) {
+ "function" == typeof e && (n = e, e = {}), "function" == typeof t && (n = t, t = null);
+ try {
+ this.compile()
+ } catch (e) {
+ if (n) return n(e);
+ throw e
+ }
+ var r = t ? t.push() : new fi;
+ r.topLevel = !0;
+ var i = new Ti(e || {}, this.blocks, this.env);
+ this.rootRenderFunc(this.env, i, r, kr, (function(e) {
+ e ? n(e, null) : n(null, i.getExported())
+ }))
+ }, n.compile = function() {
+ this.compiled || this._compile()
+ }, n._compile = function() {
+ var e;
+ if (this.tmplProps) e = this.tmplProps;
+ else {
+ var t = xr.compile(this.tmplStr, this.env.asyncFilters, this.env.extensionsList, this.path, this.env.opts);
+ e = new Function(t)()
+ }
+ this.blocks = this._getBlocks(e), this.rootRenderFunc = e.root, this.compiled = !0
+ }, n._getBlocks = function(e) {
+ var t = {};
+ return je.keys(e).forEach((function(n) {
+ "b_" === n.slice(0, 2) && (t[n.slice(2)] = e[n])
+ })), t
+ }, t
+ }(hi),
+ Ai = {
+ Environment: mi,
+ Template: _i
+ };
+je._prettifyError;
+var gi, Ni = Ai.Environment;
+
+function Ci(e, t) {
+ var n;
+ return t = t || {}, je.isObject(e) && (t = e, e = null), ti.FileSystemLoader ? n = new ti.FileSystemLoader(e, {
+ watch: t.watch,
+ noCache: t.noCache
+ }) : ti.WebLoader && (n = new ti.WebLoader(e, {
+ useCache: t.web && t.web.useCache,
+ async: t.web && t.web.async
+ })), gi = new Ni(n, t), t && t.express && gi.express(t.express), gi
+}
+ti.FileSystemLoader, ti.NodeResolveLoader, ti.PrecompiledLoader, ti.WebLoader;
+var Ii = function(e, t, n) {
+ return gi || Ci(), gi.renderString(e, t, n)
+ },
+ Si = function() {
+ return Si = 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
+ }, Si.apply(this, arguments)
+ };
+
+function bi(e, t, n) {
+ return e ? e(null != t ? t : e._root.children, null, void 0, n).toString() : ""
+}
+
+function Oi(e, t) {
+ return bi(this, function(e, t) {
+ return !t && "object" == typeof e && null != e && !("length" in e) && !("type" in e)
+ }(e) ? void(t = e) : e, Si(Si(Si({}, n), null == this ? void 0 : this._options), i(null != t ? t : {})))
+}
+
+function yi(e) {
+ return bi(this, e, Si(Si({}, this._options), {
+ xmlMode: !0
+ }))
+}
+
+function Li(e) {
+ for (var t = e || (this ? this.root() : []), n = "", r = 0; r < t.length; r++) n += z(t[r]);
+ return n
+}
+
+function ki(e, t, r) {
+ if (void 0 === r && (r = "boolean" == typeof t && t), !e || "string" != typeof e) return null;
+ "boolean" == typeof t && (r = t);
+ var i = this.load(e, n, !1);
+ return r || i("script").remove(), i.root()[0].children.slice()
+}
+
+function vi() {
+ return this(this._root)
+}
+
+function Di(e, t) {
+ if (t === e) return !1;
+ for (var n = t; n && n !== n.parent;)
+ if ((n = n.parent) === e) return !0;
+ return !1
+}
+
+function Ri(e, t) {
+ if (Mi(e) && Mi(t)) {
+ for (var n = e.length, r = +t.length, i = 0; i < r; i++) e[n++] = t[i];
+ return e.length = n, e
+ }
+}
+
+function Mi(e) {
+ if (Array.isArray(e)) return !0;
+ if ("object" != typeof e || !Object.prototype.hasOwnProperty.call(e, "length") || "number" != typeof e.length || e.length < 0) return !1;
+ for (var t = 0; t < e.length; t++)
+ if (!(t in e)) return !1;
+ return !0
+}
+var Pi, xi = Object.freeze({
+ __proto__: null,
+ html: Oi,
+ xml: yi,
+ text: Li,
+ parseHTML: ki,
+ root: vi,
+ contains: Di,
+ merge: Ri,
+ jp: function(e, t) {
+ return He({
+ path: e,
+ json: t
+ })
+ },
+ jpo: function(e) {
+ return He(e)
+ },
+ jinja2: function(e, t) {
+ return Ii(e, t)
+ }
+});
+
+function wi(e) {
+ return null != e.cheerio
+}
+
+function Bi(e, t) {
+ for (var n = e.length, r = 0; r < n; r++) t(e[r], r);
+ return e
+}
+
+function Fi(e) {
+ var t = "length" in e ? Array.prototype.map.call(e, (function(e) {
+ return v(e, !0)
+ })) : [v(e, !0)],
+ n = new N(t);
+ return t.forEach((function(e) {
+ e.parent = n
+ })), t
+}
+
+function Ui(e) {
+ var t = e.indexOf("<");
+ if (t < 0 || t > e.length - 3) return !1;
+ var n = e.charCodeAt(t + 1);
+ return (n >= Pi.LowerA && n <= Pi.LowerZ || n >= Pi.UpperA && n <= Pi.UpperZ || n === Pi.Exclamation) && e.includes(">", t + 2)
+}! function(e) {
+ e[e.LowerA = 97] = "LowerA", e[e.LowerZ = 122] = "LowerZ", e[e.UpperA = 65] = "UpperA", e[e.UpperZ = 90] = "UpperZ", e[e.Exclamation = 33] = "Exclamation"
+}(Pi || (Pi = {}));
+var Hi = Object.prototype.hasOwnProperty,
+ Gi = /\s+/,
+ Yi = {
+ null: null,
+ true: !0,
+ false: !1
+ },
+ qi = /^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,
+ Ki = /^{[^]*}$|^\[[^]*]$/;
+
+function ji(e, t, n) {
+ var r;
+ if (e && I(e)) return null !== (r = e.attribs) && void 0 !== r || (e.attribs = {}), t ? Hi.call(e.attribs, t) ? !n && qi.test(t) ? t : e.attribs[t] : "option" === e.name && "value" === t ? Li(e.children) : "input" !== e.name || "radio" !== e.attribs.type && "checkbox" !== e.attribs.type || "value" !== t ? void 0 : "on" : e.attribs
+}
+
+function Vi(e, t, n) {
+ null === n ? zi(e, t) : e.attribs[t] = "".concat(n)
+}
+
+function Wi(e, t, n) {
+ return t in e ? e[t] : !n && qi.test(t) ? void 0 !== ji(e, t, !1) : ji(e, t, n)
+}
+
+function Qi(e, t, n, r) {
+ t in e ? e[t] = n : Vi(e, t, !r && qi.test(t) ? n ? "" : null : "".concat(n))
+}
+
+function Xi(e, t, n) {
+ var r, i = e;
+ null !== (r = i.data) && void 0 !== r || (i.data = {}), "object" == typeof t ? Object.assign(i.data, t) : "string" == typeof t && void 0 !== n && (i.data[t] = n)
+}
+
+function $i(e, t) {
+ var n, r, i, s;
+ null == t ? r = (n = Object.keys(e.attribs).filter((function(e) {
+ return e.startsWith("data-")
+ }))).map((function(e) {
+ return e.slice("data-".length).replace(/[_.-](\w|$)/g, (function(e, t) {
+ return t.toUpperCase()
+ }))
+ })) : (n = ["data-" + (s = t, s.replace(/[A-Z]/g, "-$&").toLowerCase())], r = [t]);
+ for (var a = 0; a < n.length; ++a) {
+ var o = n[a],
+ c = r[a];
+ if (Hi.call(e.attribs, o) && !Hi.call(e.data, c)) {
+ if (i = e.attribs[o], Hi.call(Yi, i)) i = Yi[i];
+ else if (i === String(Number(i))) i = Number(i);
+ else if (Ki.test(i)) try {
+ i = JSON.parse(i)
+ } catch (e) {}
+ e.data[c] = i
+ }
+ }
+ return null == t ? e.data : i
+}
+
+function zi(e, t) {
+ e.attribs && Hi.call(e.attribs, t) && delete e.attribs[t]
+}
+
+function Ji(e) {
+ return e ? e.trim().split(Gi) : []
+}
+var Zi, es, ts = Object.freeze({
+ __proto__: null,
+ attr: function(e, t) {
+ if ("object" == typeof e || void 0 !== t) {
+ if ("function" == typeof t) {
+ if ("string" != typeof e) throw new Error("Bad combination of arguments.");
+ return Bi(this, (function(n, r) {
+ I(n) && Vi(n, e, t.call(n, r, n.attribs[e]))
+ }))
+ }
+ return Bi(this, (function(n) {
+ I(n) && ("object" == typeof e ? Object.keys(e).forEach((function(t) {
+ var r = e[t];
+ Vi(n, t, r)
+ })) : Vi(n, e, t))
+ }))
+ }
+ return arguments.length > 1 ? this : ji(this[0], e, this.options.xmlMode)
+ },
+ prop: function(e, t) {
+ var n, r = this;
+ if ("string" == typeof e && void 0 === t) {
+ var i = this[0];
+ if (!i || !I(i)) return;
+ switch (e) {
+ case "style":
+ var s = this.css(),
+ a = Object.keys(s);
+ return a.forEach((function(e, t) {
+ s[t] = e
+ })), s.length = a.length, s;
+ case "tagName":
+ case "nodeName":
+ return i.name.toUpperCase();
+ case "href":
+ case "src":
+ var o = null === (n = i.attribs) || void 0 === n ? void 0 : n[e];
+ return "undefined" == typeof URL || ("href" !== e || "a" !== i.tagName && "link" !== i.name) && ("src" !== e || "img" !== i.tagName && "iframe" !== i.tagName && "audio" !== i.tagName && "video" !== i.tagName && "source" !== i.tagName) || void 0 === o || !this.options.baseURI ? o : new URL(o, this.options.baseURI).href;
+ case "innerText":
+ return J(i);
+ case "textContent":
+ return z(i);
+ case "outerHTML":
+ return this.clone().wrap("").parent().html();
+ case "innerHTML":
+ return this.html();
+ default:
+ return Wi(i, e, this.options.xmlMode)
+ }
+ }
+ if ("object" == typeof e || void 0 !== t) {
+ if ("function" == typeof t) {
+ if ("object" == typeof e) throw new Error("Bad combination of arguments.");
+ return Bi(this, (function(n, i) {
+ I(n) && Qi(n, e, t.call(n, i, Wi(n, e, r.options.xmlMode)), r.options.xmlMode)
+ }))
+ }
+ return Bi(this, (function(n) {
+ I(n) && ("object" == typeof e ? Object.keys(e).forEach((function(t) {
+ var i = e[t];
+ Qi(n, t, i, r.options.xmlMode)
+ })) : Qi(n, e, t, r.options.xmlMode))
+ }))
+ }
+ },
+ data: function(e, t) {
+ var n, r = this[0];
+ if (r && I(r)) {
+ var i = r;
+ return null !== (n = i.data) && void 0 !== n || (i.data = {}), e ? "object" == typeof e || void 0 !== t ? (Bi(this, (function(n) {
+ I(n) && ("object" == typeof e ? Xi(n, e) : Xi(n, e, t))
+ })), this) : Hi.call(i.data, e) ? i.data[e] : $i(i, e) : $i(i)
+ }
+ },
+ val: function(e) {
+ var t = 0 === arguments.length,
+ n = this[0];
+ if (!n || !I(n)) return t ? void 0 : this;
+ switch (n.name) {
+ case "textarea":
+ return this.text(e);
+ case "select":
+ var r = this.find("option:selected");
+ if (!t) {
+ if (null == this.attr("multiple") && "object" == typeof e) return this;
+ this.find("option").removeAttr("selected");
+ for (var i = "object" != typeof e ? [e] : e, s = 0; s < i.length; s++) this.find('option[value="'.concat(i[s], '"]')).attr("selected", "");
+ return this
+ }
+ return this.attr("multiple") ? r.toArray().map((function(e) {
+ return Li(e.children)
+ })) : r.attr("value");
+ case "input":
+ case "option":
+ return t ? this.attr("value") : this.attr("value", e)
+ }
+ },
+ removeAttr: function(e) {
+ for (var t = Ji(e), n = function(e) {
+ Bi(r, (function(n) {
+ I(n) && zi(n, t[e])
+ }))
+ }, r = this, i = 0; i < t.length; i++) n(i);
+ return this
+ },
+ hasClass: function(e) {
+ return this.toArray().some((function(t) {
+ var n = I(t) && t.attribs.class,
+ r = -1;
+ if (n && e.length)
+ for (;
+ (r = n.indexOf(e, r + 1)) > -1;) {
+ var i = r + e.length;
+ if ((0 === r || Gi.test(n[r - 1])) && (i === n.length || Gi.test(n[i]))) return !0
+ }
+ return !1
+ }))
+ },
+ addClass: function e(t) {
+ if ("function" == typeof t) return Bi(this, (function(n, r) {
+ if (I(n)) {
+ var i = n.attribs.class || "";
+ e.call([n], t.call(n, r, i))
+ }
+ }));
+ if (!t || "string" != typeof t) return this;
+ for (var n = t.split(Gi), r = this.length, i = 0; i < r; i++) {
+ var s = this[i];
+ if (I(s)) {
+ var a = ji(s, "class", !1);
+ if (a) {
+ for (var o = " ".concat(a, " "), c = 0; c < n.length; c++) {
+ var l = "".concat(n[c], " ");
+ o.includes(" ".concat(l)) || (o += l)
+ }
+ Vi(s, "class", o.trim())
+ } else Vi(s, "class", n.join(" ").trim())
+ }
+ }
+ return this
+ },
+ removeClass: function e(t) {
+ if ("function" == typeof t) return Bi(this, (function(n, r) {
+ I(n) && e.call([n], t.call(n, r, n.attribs.class || ""))
+ }));
+ var n = Ji(t),
+ r = n.length,
+ i = 0 === arguments.length;
+ return Bi(this, (function(e) {
+ if (I(e))
+ if (i) e.attribs.class = "";
+ else {
+ for (var t = Ji(e.attribs.class), s = !1, a = 0; a < r; a++) {
+ var o = t.indexOf(n[a]);
+ o >= 0 && (t.splice(o, 1), s = !0, a--)
+ }
+ s && (e.attribs.class = t.join(" "))
+ }
+ }))
+ },
+ toggleClass: function e(t, n) {
+ if ("function" == typeof t) return Bi(this, (function(r, i) {
+ I(r) && e.call([r], t.call(r, i, r.attribs.class || "", n), n)
+ }));
+ if (!t || "string" != typeof t) return this;
+ for (var r = t.split(Gi), i = r.length, s = "boolean" == typeof n ? n ? 1 : -1 : 0, a = this.length, o = 0; o < a; o++) {
+ var c = this[o];
+ if (I(c)) {
+ for (var l = Ji(c.attribs.class), h = 0; h < i; h++) {
+ var u = l.indexOf(r[h]);
+ s >= 0 && u < 0 ? l.push(r[h]) : s <= 0 && u >= 0 && l.splice(u, 1)
+ }
+ c.attribs.class = l.join(" ")
+ }
+ }
+ return this
+ }
+});
+! function(e) {
+ e.Attribute = "attribute", e.Pseudo = "pseudo", e.PseudoElement = "pseudo-element", e.Tag = "tag", e.Universal = "universal", e.Adjacent = "adjacent", e.Child = "child", e.Descendant = "descendant", e.Parent = "parent", e.Sibling = "sibling", e.ColumnCombinator = "column-combinator"
+}(Zi || (Zi = {})),
+function(e) {
+ e.Any = "any", e.Element = "element", e.End = "end", e.Equals = "equals", e.Exists = "exists", e.Hyphen = "hyphen", e.Not = "not", e.Start = "start"
+}(es || (es = {}));
+const ns = /^[^\\#]?(?:\\(?:[\da-f]{1,6}\s?|.)|[\w\-\u00b0-\uFFFF])+/,
+ rs = /\\([\da-f]{1,6}\s?|(\s)|.)/gi,
+ is = new Map([
+ [126, es.Element],
+ [94, es.Start],
+ [36, es.End],
+ [42, es.Any],
+ [33, es.Not],
+ [124, es.Hyphen]
+ ]),
+ ss = new Set(["has", "not", "matches", "is", "where", "host", "host-context"]);
+
+function as(e) {
+ switch (e.type) {
+ case Zi.Adjacent:
+ case Zi.Child:
+ case Zi.Descendant:
+ case Zi.Parent:
+ case Zi.Sibling:
+ case Zi.ColumnCombinator:
+ return !0;
+ default:
+ return !1
+ }
+}
+const os = new Set(["contains", "icontains"]);
+
+function cs(e, t, n) {
+ const r = parseInt(t, 16) - 65536;
+ return r != r || n ? t : r < 0 ? String.fromCharCode(r + 65536) : String.fromCharCode(r >> 10 | 55296, 1023 & r | 56320)
+}
+
+function ls(e) {
+ return e.replace(rs, cs)
+}
+
+function hs(e) {
+ return 39 === e || 34 === e
+}
+
+function us(e) {
+ return 32 === e || 9 === e || 10 === e || 12 === e || 13 === e
+}
+
+function ps(e) {
+ const t = [],
+ n = fs(t, `${e}`, 0);
+ if (n < e.length) throw new Error(`Unmatched selector: ${e.slice(n)}`);
+ return t
+}
+
+function fs(e, t, n) {
+ let r = [];
+
+ function i(e) {
+ const r = t.slice(n + e).match(ns);
+ if (!r) throw new Error(`Expected name, found ${t.slice(n)}`);
+ const [i] = r;
+ return n += e + i.length, ls(i)
+ }
+
+ function s(e) {
+ for (n += e; n < t.length && us(t.charCodeAt(n));) n++
+ }
+
+ function a() {
+ const e = n += 1;
+ let r = 1;
+ for (; r > 0 && n < t.length; n++) 40 !== t.charCodeAt(n) || o(n) ? 41 !== t.charCodeAt(n) || o(n) || r-- : r++;
+ if (r) throw new Error("Parenthesis not matched");
+ return ls(t.slice(e, n - 1))
+ }
+
+ function o(e) {
+ let n = 0;
+ for (; 92 === t.charCodeAt(--e);) n++;
+ return 1 == (1 & n)
+ }
+
+ function c() {
+ if (r.length > 0 && as(r[r.length - 1])) throw new Error("Did not expect successive traversals.")
+ }
+
+ function l(e) {
+ r.length > 0 && r[r.length - 1].type === Zi.Descendant ? r[r.length - 1].type = e : (c(), r.push({
+ type: e
+ }))
+ }
+
+ function h(e, t) {
+ r.push({
+ type: Zi.Attribute,
+ name: e,
+ action: t,
+ value: i(1),
+ namespace: null,
+ ignoreCase: "quirks"
+ })
+ }
+
+ function u() {
+ if (r.length && r[r.length - 1].type === Zi.Descendant && r.pop(), 0 === r.length) throw new Error("Empty sub-selector");
+ e.push(r)
+ }
+ if (s(0), t.length === n) return n;
+ e: for (; n < t.length;) {
+ const e = t.charCodeAt(n);
+ switch (e) {
+ case 32:
+ case 9:
+ case 10:
+ case 12:
+ case 13:
+ 0 !== r.length && r[0].type === Zi.Descendant || (c(), r.push({
+ type: Zi.Descendant
+ })), s(1);
+ break;
+ case 62:
+ l(Zi.Child), s(1);
+ break;
+ case 60:
+ l(Zi.Parent), s(1);
+ break;
+ case 126:
+ l(Zi.Sibling), s(1);
+ break;
+ case 43:
+ l(Zi.Adjacent), s(1);
+ break;
+ case 46:
+ h("class", es.Element);
+ break;
+ case 35:
+ h("id", es.Equals);
+ break;
+ case 91: {
+ let e;
+ s(1);
+ let a = null;
+ 124 === t.charCodeAt(n) ? e = i(1) : t.startsWith("*|", n) ? (a = "*", e = i(2)) : (e = i(0), 124 === t.charCodeAt(n) && 61 !== t.charCodeAt(n + 1) && (a = e, e = i(1))), s(0);
+ let c = es.Exists;
+ const l = is.get(t.charCodeAt(n));
+ if (l) {
+ if (c = l, 61 !== t.charCodeAt(n + 1)) throw new Error("Expected `=`");
+ s(2)
+ } else 61 === t.charCodeAt(n) && (c = es.Equals, s(1));
+ let h = "",
+ u = null;
+ if ("exists" !== c) {
+ if (hs(t.charCodeAt(n))) {
+ const e = t.charCodeAt(n);
+ let r = n + 1;
+ for (; r < t.length && (t.charCodeAt(r) !== e || o(r));) r += 1;
+ if (t.charCodeAt(r) !== e) throw new Error("Attribute value didn't end");
+ h = ls(t.slice(n + 1, r)), n = r + 1
+ } else {
+ const e = n;
+ for (; n < t.length && (!us(t.charCodeAt(n)) && 93 !== t.charCodeAt(n) || o(n));) n += 1;
+ h = ls(t.slice(e, n))
+ }
+ s(0);
+ const e = 32 | t.charCodeAt(n);
+ 115 === e ? (u = !1, s(1)) : 105 === e && (u = !0, s(1))
+ }
+ if (93 !== t.charCodeAt(n)) throw new Error("Attribute selector didn't terminate");
+ n += 1;
+ const p = {
+ type: Zi.Attribute,
+ name: e,
+ action: c,
+ value: h,
+ namespace: a,
+ ignoreCase: u
+ };
+ r.push(p);
+ break
+ }
+ case 58: {
+ if (58 === t.charCodeAt(n + 1)) {
+ r.push({
+ type: Zi.PseudoElement,
+ name: i(2).toLowerCase(),
+ data: 40 === t.charCodeAt(n) ? a() : null
+ });
+ continue
+ }
+ const e = i(1).toLowerCase();
+ let s = null;
+ if (40 === t.charCodeAt(n))
+ if (ss.has(e)) {
+ if (hs(t.charCodeAt(n + 1))) throw new Error(`Pseudo-selector ${e} cannot be quoted`);
+ if (s = [], n = fs(s, t, n + 1), 41 !== t.charCodeAt(n)) throw new Error(`Missing closing parenthesis in :${e} (${t})`);
+ n += 1
+ } else {
+ if (s = a(), os.has(e)) {
+ const e = s.charCodeAt(0);
+ e === s.charCodeAt(s.length - 1) && hs(e) && (s = s.slice(1, -1))
+ }
+ s = ls(s)
+ } r.push({
+ type: Zi.Pseudo,
+ name: e,
+ data: s
+ });
+ break
+ }
+ case 44:
+ u(), r = [], s(1);
+ break;
+ default: {
+ if (t.startsWith("/*", n)) {
+ const e = t.indexOf("*/", n + 2);
+ if (e < 0) throw new Error("Comment was not terminated");
+ n = e + 2, 0 === r.length && s(0);
+ break
+ }
+ let a, o = null;
+ if (42 === e) n += 1, a = "*";
+ else if (124 === e) {
+ if (a = "", 124 === t.charCodeAt(n + 1)) {
+ l(Zi.ColumnCombinator), s(2);
+ break
+ }
+ } else {
+ if (!ns.test(t.slice(n))) break e;
+ a = i(0)
+ }
+ 124 === t.charCodeAt(n) && 124 !== t.charCodeAt(n + 1) && (o = a, 42 === t.charCodeAt(n + 1) ? (a = "*", n += 2) : a = i(1)), r.push("*" === a ? {
+ type: Zi.Universal,
+ namespace: o
+ } : {
+ type: Zi.Tag,
+ name: a,
+ namespace: o
+ })
+ }
+ }
+ }
+ return u(), n
+}
+var ds = {
+ trueFunc: function() {
+ return !0
+ },
+ falseFunc: function() {
+ return !1
+ }
+ },
+ Es = ds.trueFunc;
+const ms = new Map([
+ [Zi.Universal, 50],
+ [Zi.Tag, 30],
+ [Zi.Attribute, 1],
+ [Zi.Pseudo, 0]
+]);
+
+function Ts(e) {
+ return !ms.has(e.type)
+}
+const _s = new Map([
+ [es.Exists, 10],
+ [es.Equals, 8],
+ [es.Not, 7],
+ [es.Start, 6],
+ [es.End, 6],
+ [es.Any, 5]
+]);
+
+function As(e) {
+ const t = e.map(gs);
+ for (let n = 1; n < e.length; n++) {
+ const r = t[n];
+ if (!(r < 0))
+ for (let i = n - 1; i >= 0 && r < t[i]; i--) {
+ const n = e[i + 1];
+ e[i + 1] = e[i], e[i] = n, t[i + 1] = t[i], t[i] = r
+ }
+ }
+}
+
+function gs(e) {
+ var t, n;
+ let r = null !== (t = ms.get(e.type)) && void 0 !== t ? t : -1;
+ return e.type === Zi.Attribute ? (r = null !== (n = _s.get(e.action)) && void 0 !== n ? n : 4, e.action === es.Equals && "id" === e.name && (r = 9), e.ignoreCase && (r >>= 1)) : e.type === Zi.Pseudo && (e.data ? "has" === e.name || "contains" === e.name ? r = 0 : Array.isArray(e.data) ? (r = Math.min(...e.data.map((e => Math.min(...e.map(gs))))), r < 0 && (r = 0)) : r = 2 : r = 3), r
+}
+const Ns = /[-[\]{}()*+?.,\\^$|#\s]/g;
+
+function Cs(e) {
+ return e.replace(Ns, "\\$&")
+}
+const Is = new Set(["accept", "accept-charset", "align", "alink", "axis", "bgcolor", "charset", "checked", "clear", "codetype", "color", "compact", "declare", "defer", "dir", "direction", "disabled", "enctype", "face", "frame", "hreflang", "http-equiv", "lang", "language", "link", "media", "method", "multiple", "nohref", "noresize", "noshade", "nowrap", "readonly", "rel", "rev", "rules", "scope", "scrolling", "selected", "shape", "target", "text", "type", "valign", "valuetype", "vlink"]);
+
+function Ss(e, t) {
+ return "boolean" == typeof e.ignoreCase ? e.ignoreCase : "quirks" === e.ignoreCase ? !!t.quirksMode : !t.xmlMode && Is.has(e.name)
+}
+const bs = {
+ equals(e, t, n) {
+ const {
+ adapter: r
+ } = n, {
+ name: i
+ } = t;
+ let {
+ value: s
+ } = t;
+ return Ss(t, n) ? (s = s.toLowerCase(), t => {
+ const n = r.getAttributeValue(t, i);
+ return null != n && n.length === s.length && n.toLowerCase() === s && e(t)
+ }) : t => r.getAttributeValue(t, i) === s && e(t)
+ },
+ hyphen(e, t, n) {
+ const {
+ adapter: r
+ } = n, {
+ name: i
+ } = t;
+ let {
+ value: s
+ } = t;
+ const a = s.length;
+ return Ss(t, n) ? (s = s.toLowerCase(), function(t) {
+ const n = r.getAttributeValue(t, i);
+ return null != n && (n.length === a || "-" === n.charAt(a)) && n.substr(0, a).toLowerCase() === s && e(t)
+ }) : function(t) {
+ const n = r.getAttributeValue(t, i);
+ return null != n && (n.length === a || "-" === n.charAt(a)) && n.substr(0, a) === s && e(t)
+ }
+ },
+ element(e, t, n) {
+ const {
+ adapter: r
+ } = n, {
+ name: i,
+ value: s
+ } = t;
+ if (/\s/.test(s)) return ds.falseFunc;
+ const a = new RegExp(`(?:^|\\s)${Cs(s)}(?:$|\\s)`, Ss(t, n) ? "i" : "");
+ return function(t) {
+ const n = r.getAttributeValue(t, i);
+ return null != n && n.length >= s.length && a.test(n) && e(t)
+ }
+ },
+ exists: (e, {
+ name: t
+ }, {
+ adapter: n
+ }) => r => n.hasAttrib(r, t) && e(r),
+ start(e, t, n) {
+ const {
+ adapter: r
+ } = n, {
+ name: i
+ } = t;
+ let {
+ value: s
+ } = t;
+ const a = s.length;
+ return 0 === a ? ds.falseFunc : Ss(t, n) ? (s = s.toLowerCase(), t => {
+ const n = r.getAttributeValue(t, i);
+ return null != n && n.length >= a && n.substr(0, a).toLowerCase() === s && e(t)
+ }) : t => {
+ var n;
+ return !!(null === (n = r.getAttributeValue(t, i)) || void 0 === n ? void 0 : n.startsWith(s)) && e(t)
+ }
+ },
+ end(e, t, n) {
+ const {
+ adapter: r
+ } = n, {
+ name: i
+ } = t;
+ let {
+ value: s
+ } = t;
+ const a = -s.length;
+ return 0 === a ? ds.falseFunc : Ss(t, n) ? (s = s.toLowerCase(), t => {
+ var n;
+ return (null === (n = r.getAttributeValue(t, i)) || void 0 === n ? void 0 : n.substr(a).toLowerCase()) === s && e(t)
+ }) : t => {
+ var n;
+ return !!(null === (n = r.getAttributeValue(t, i)) || void 0 === n ? void 0 : n.endsWith(s)) && e(t)
+ }
+ },
+ any(e, t, n) {
+ const {
+ adapter: r
+ } = n, {
+ name: i,
+ value: s
+ } = t;
+ if ("" === s) return ds.falseFunc;
+ if (Ss(t, n)) {
+ const t = new RegExp(Cs(s), "i");
+ return function(n) {
+ const a = r.getAttributeValue(n, i);
+ return null != a && a.length >= s.length && t.test(a) && e(n)
+ }
+ }
+ return t => {
+ var n;
+ return !!(null === (n = r.getAttributeValue(t, i)) || void 0 === n ? void 0 : n.includes(s)) && e(t)
+ }
+ },
+ not(e, t, n) {
+ const {
+ adapter: r
+ } = n, {
+ name: i
+ } = t;
+ let {
+ value: s
+ } = t;
+ return "" === s ? t => !!r.getAttributeValue(t, i) && e(t) : Ss(t, n) ? (s = s.toLowerCase(), t => {
+ const n = r.getAttributeValue(t, i);
+ return (null == n || n.length !== s.length || n.toLowerCase() !== s) && e(t)
+ }) : t => r.getAttributeValue(t, i) !== s && e(t)
+ }
+};
+var Os = Ke((function(e, t) {
+ Object.defineProperty(t, "__esModule", {
+ value: !0
+ }), t.parse = void 0;
+ var n = new Set([9, 10, 12, 13, 32]),
+ r = "0".charCodeAt(0),
+ i = "9".charCodeAt(0);
+ t.parse = function(e) {
+ if ("even" === (e = e.trim().toLowerCase())) return [2, 0];
+ if ("odd" === e) return [2, 1];
+ var t = 0,
+ s = 0,
+ a = c(),
+ o = l();
+ if (t < e.length && "n" === e.charAt(t) && (t++, s = a * (null != o ? o : 1), h(), t < e.length ? (a = c(), h(), o = l()) : a = o = 0), null === o || t < e.length) throw new Error("n-th rule couldn't be parsed ('" + e + "')");
+ return [s, a * o];
+
+ function c() {
+ return "-" === e.charAt(t) ? (t++, -1) : ("+" === e.charAt(t) && t++, 1)
+ }
+
+ function l() {
+ for (var n = t, s = 0; t < e.length && e.charCodeAt(t) >= r && e.charCodeAt(t) <= i;) s = 10 * s + (e.charCodeAt(t) - r), t++;
+ return t === n ? null : s
+ }
+
+ function h() {
+ for (; t < e.length && n.has(e.charCodeAt(t));) t++
+ }
+ }
+}));
+qe(Os), Os.parse;
+var ys = Ke((function(e, t) {
+ Object.defineProperty(t, "__esModule", {
+ value: !0
+ }), t.compile = void 0, t.compile = function(e) {
+ var t = e[0],
+ n = e[1] - 1;
+ if (n < 0 && t <= 0) return ds.falseFunc;
+ if (-1 === t) return function(e) {
+ return e <= n
+ };
+ if (0 === t) return function(e) {
+ return e === n
+ };
+ if (1 === t) return n < 0 ? ds.trueFunc : function(e) {
+ return e >= n
+ };
+ var r = Math.abs(t),
+ i = (n % r + r) % r;
+ return t > 1 ? function(e) {
+ return e >= n && e % r === i
+ } : function(e) {
+ return e <= n && e % r === i
+ }
+ }
+}));
+qe(ys), ys.compile;
+var Ls = Os,
+ ks = ys,
+ vs = Ke((function(e, t) {
+ Object.defineProperty(t, "__esModule", {
+ value: !0
+ }), t.compile = t.parse = void 0, Object.defineProperty(t, "parse", {
+ enumerable: !0,
+ get: function() {
+ return Ls.parse
+ }
+ }), Object.defineProperty(t, "compile", {
+ enumerable: !0,
+ get: function() {
+ return ks.compile
+ }
+ }), t.default = function(e) {
+ return (0, ks.compile)((0, Ls.parse)(e))
+ }
+ })),
+ Ds = qe(vs);
+
+function Rs(e, t) {
+ return n => {
+ const r = t.getParent(n);
+ return null != r && t.isTag(r) && e(n)
+ }
+}
+vs.compile, vs.parse;
+const Ms = {
+ contains: (e, t, {
+ adapter: n
+ }) => function(r) {
+ return e(r) && n.getText(r).includes(t)
+ },
+ icontains(e, t, {
+ adapter: n
+ }) {
+ const r = t.toLowerCase();
+ return function(t) {
+ return e(t) && n.getText(t).toLowerCase().includes(r)
+ }
+ },
+ "nth-child"(e, t, {
+ adapter: n,
+ equals: r
+ }) {
+ const i = Ds(t);
+ return i === ds.falseFunc ? ds.falseFunc : i === ds.trueFunc ? Rs(e, n) : function(t) {
+ const s = n.getSiblings(t);
+ let a = 0;
+ for (let e = 0; e < s.length && !r(t, s[e]); e++) n.isTag(s[e]) && a++;
+ return i(a) && e(t)
+ }
+ },
+ "nth-last-child"(e, t, {
+ adapter: n,
+ equals: r
+ }) {
+ const i = Ds(t);
+ return i === ds.falseFunc ? ds.falseFunc : i === ds.trueFunc ? Rs(e, n) : function(t) {
+ const s = n.getSiblings(t);
+ let a = 0;
+ for (let e = s.length - 1; e >= 0 && !r(t, s[e]); e--) n.isTag(s[e]) && a++;
+ return i(a) && e(t)
+ }
+ },
+ "nth-of-type"(e, t, {
+ adapter: n,
+ equals: r
+ }) {
+ const i = Ds(t);
+ return i === ds.falseFunc ? ds.falseFunc : i === ds.trueFunc ? Rs(e, n) : function(t) {
+ const s = n.getSiblings(t);
+ let a = 0;
+ for (let e = 0; e < s.length; e++) {
+ const i = s[e];
+ if (r(t, i)) break;
+ n.isTag(i) && n.getName(i) === n.getName(t) && a++
+ }
+ return i(a) && e(t)
+ }
+ },
+ "nth-last-of-type"(e, t, {
+ adapter: n,
+ equals: r
+ }) {
+ const i = Ds(t);
+ return i === ds.falseFunc ? ds.falseFunc : i === ds.trueFunc ? Rs(e, n) : function(t) {
+ const s = n.getSiblings(t);
+ let a = 0;
+ for (let e = s.length - 1; e >= 0; e--) {
+ const i = s[e];
+ if (r(t, i)) break;
+ n.isTag(i) && n.getName(i) === n.getName(t) && a++
+ }
+ return i(a) && e(t)
+ }
+ },
+ root: (e, t, {
+ adapter: n
+ }) => t => {
+ const r = n.getParent(t);
+ return (null == r || !n.isTag(r)) && e(t)
+ },
+ scope(e, t, n, r) {
+ const {
+ equals: i
+ } = n;
+ return r && 0 !== r.length ? 1 === r.length ? t => i(r[0], t) && e(t) : t => r.includes(t) && e(t) : Ms.root(e, t, n)
+ },
+ hover: Ps("isHovered"),
+ visited: Ps("isVisited"),
+ active: Ps("isActive")
+};
+
+function Ps(e) {
+ return function(t, n, {
+ adapter: r
+ }) {
+ const i = r[e];
+ return "function" != typeof i ? ds.falseFunc : function(e) {
+ return i(e) && t(e)
+ }
+ }
+}
+const xs = {
+ empty: (e, {
+ adapter: t
+ }) => !t.getChildren(e).some((e => t.isTag(e) || "" !== t.getText(e))),
+ "first-child"(e, {
+ adapter: t,
+ equals: n
+ }) {
+ if (t.prevElementSibling) return null == t.prevElementSibling(e);
+ const r = t.getSiblings(e).find((e => t.isTag(e)));
+ return null != r && n(e, r)
+ },
+ "last-child"(e, {
+ adapter: t,
+ equals: n
+ }) {
+ const r = t.getSiblings(e);
+ for (let i = r.length - 1; i >= 0; i--) {
+ if (n(e, r[i])) return !0;
+ if (t.isTag(r[i])) break
+ }
+ return !1
+ },
+ "first-of-type"(e, {
+ adapter: t,
+ equals: n
+ }) {
+ const r = t.getSiblings(e),
+ i = t.getName(e);
+ for (let s = 0; s < r.length; s++) {
+ const a = r[s];
+ if (n(e, a)) return !0;
+ if (t.isTag(a) && t.getName(a) === i) break
+ }
+ return !1
+ },
+ "last-of-type"(e, {
+ adapter: t,
+ equals: n
+ }) {
+ const r = t.getSiblings(e),
+ i = t.getName(e);
+ for (let s = r.length - 1; s >= 0; s--) {
+ const a = r[s];
+ if (n(e, a)) return !0;
+ if (t.isTag(a) && t.getName(a) === i) break
+ }
+ return !1
+ },
+ "only-of-type"(e, {
+ adapter: t,
+ equals: n
+ }) {
+ const r = t.getName(e);
+ return t.getSiblings(e).every((i => n(e, i) || !t.isTag(i) || t.getName(i) !== r))
+ },
+ "only-child": (e, {
+ adapter: t,
+ equals: n
+ }) => t.getSiblings(e).every((r => n(e, r) || !t.isTag(r)))
+};
+
+function ws(e, t, n, r) {
+ if (null === n) {
+ if (e.length > r) throw new Error(`Pseudo-class :${t} requires an argument`)
+ } else if (e.length === r) throw new Error(`Pseudo-class :${t} doesn't have any arguments`)
+}
+const Bs = {
+ "any-link": ":is(a, area, link)[href]",
+ link: ":any-link:not(:visited)",
+ disabled: ":is(\n :is(button, input, select, textarea, optgroup, option)[disabled],\n optgroup[disabled] > option,\n fieldset[disabled]:not(fieldset[disabled] legend:first-of-type *)\n )",
+ enabled: ":not(:disabled)",
+ checked: ":is(:is(input[type=radio], input[type=checkbox])[checked], option:selected)",
+ required: ":is(input, select, textarea)[required]",
+ optional: ":is(input, select, textarea):not([required])",
+ selected: "option:is([selected], select:not([multiple]):not(:has(> option[selected])) > :first-of-type)",
+ checkbox: "[type=checkbox]",
+ file: "[type=file]",
+ password: "[type=password]",
+ radio: "[type=radio]",
+ reset: "[type=reset]",
+ image: "[type=image]",
+ submit: "[type=submit]",
+ parent: ":not(:empty)",
+ header: ":is(h1, h2, h3, h4, h5, h6)",
+ button: ":is(button, input[type=button])",
+ input: ":is(input, textarea, select, button)",
+ text: "input:is(:not([type!='']), [type=text])"
+ },
+ Fs = {};
+
+function Us(e, t) {
+ const n = t.getSiblings(e);
+ if (n.length <= 1) return [];
+ const r = n.indexOf(e);
+ return r < 0 || r === n.length - 1 ? [] : n.slice(r + 1).filter(t.isTag)
+}
+
+function Hs(e) {
+ return {
+ xmlMode: !!e.xmlMode,
+ lowerCaseAttributeNames: !!e.lowerCaseAttributeNames,
+ lowerCaseTags: !!e.lowerCaseTags,
+ quirksMode: !!e.quirksMode,
+ cacheResults: !!e.cacheResults,
+ pseudos: e.pseudos,
+ adapter: e.adapter,
+ equals: e.equals
+ }
+}
+const Gs = (e, t, n, r, i) => {
+ const s = i(t, Hs(n), r);
+ return s === ds.trueFunc ? e : s === ds.falseFunc ? ds.falseFunc : t => s(t) && e(t)
+ },
+ Ys = {
+ is: Gs,
+ matches: Gs,
+ where: Gs,
+ not(e, t, n, r, i) {
+ const s = i(t, Hs(n), r);
+ return s === ds.falseFunc ? e : s === ds.trueFunc ? ds.falseFunc : t => !s(t) && e(t)
+ },
+ has(e, t, n, r, i) {
+ const {
+ adapter: s
+ } = n, a = Hs(n);
+ a.relativeSelector = !0;
+ const o = t.some((e => e.some(Ts))) ? [Fs] : void 0,
+ c = i(t, a, o);
+ if (c === ds.falseFunc) return ds.falseFunc;
+ const l = function(e, t) {
+ return e === ds.falseFunc ? ds.falseFunc : n => t.isTag(n) && e(n)
+ }(c, s);
+ if (o && c !== ds.trueFunc) {
+ const {
+ shouldTestNextSiblings: t = !1
+ } = c;
+ return n => {
+ if (!e(n)) return !1;
+ o[0] = n;
+ const r = s.getChildren(n),
+ i = t ? [...r, ...Us(n, s)] : r;
+ return s.existsOne(l, i)
+ }
+ }
+ return t => e(t) && s.existsOne(l, s.getChildren(t))
+ }
+ };
+
+function qs(e, t) {
+ const n = t.getParent(e);
+ return n && t.isTag(n) ? n : null
+}
+
+function Ks(e, t, n, r, i) {
+ const {
+ adapter: s,
+ equals: a
+ } = n;
+ switch (t.type) {
+ case Zi.PseudoElement:
+ throw new Error("Pseudo-elements are not supported by css-select");
+ case Zi.ColumnCombinator:
+ throw new Error("Column combinators are not yet supported by css-select");
+ case Zi.Attribute:
+ if (null != t.namespace) throw new Error("Namespaced attributes are not yet supported by css-select");
+ return n.xmlMode && !n.lowerCaseAttributeNames || (t.name = t.name.toLowerCase()), bs[t.action](e, t, n);
+ case Zi.Pseudo:
+ return function(e, t, n, r, i) {
+ var s;
+ const {
+ name: a,
+ data: o
+ } = t;
+ if (Array.isArray(o)) {
+ if (!(a in Ys)) throw new Error(`Unknown pseudo-class :${a}(${o})`);
+ return Ys[a](e, o, n, r, i)
+ }
+ const c = null === (s = n.pseudos) || void 0 === s ? void 0 : s[a],
+ l = "string" == typeof c ? c : Bs[a];
+ if ("string" == typeof l) {
+ if (null != o) throw new Error(`Pseudo ${a} doesn't have any arguments`);
+ const t = ps(l);
+ return Ys.is(e, t, n, r, i)
+ }
+ if ("function" == typeof c) return ws(c, a, o, 1), t => c(t, o) && e(t);
+ if (a in Ms) return Ms[a](e, o, n, r);
+ if (a in xs) {
+ const t = xs[a];
+ return ws(t, a, o, 2), r => t(r, n, o) && e(r)
+ }
+ throw new Error(`Unknown pseudo-class :${a}`)
+ }(e, t, n, r, i);
+ case Zi.Tag: {
+ if (null != t.namespace) throw new Error("Namespaced tag names are not yet supported by css-select");
+ let {
+ name: r
+ } = t;
+ return n.xmlMode && !n.lowerCaseTags || (r = r.toLowerCase()),
+ function(t) {
+ return s.getName(t) === r && e(t)
+ }
+ }
+ case Zi.Descendant: {
+ if (!1 === n.cacheResults || "undefined" == typeof WeakSet) return function(t) {
+ let n = t;
+ for (; n = qs(n, s);)
+ if (e(n)) return !0;
+ return !1
+ };
+ const t = new WeakSet;
+ return function(n) {
+ let r = n;
+ for (; r = qs(r, s);)
+ if (!t.has(r)) {
+ if (s.isTag(r) && e(r)) return !0;
+ t.add(r)
+ } return !1
+ }
+ }
+ case "_flexibleDescendant":
+ return function(t) {
+ let n = t;
+ do {
+ if (e(n)) return !0
+ } while (n = qs(n, s));
+ return !1
+ };
+ case Zi.Parent:
+ return function(t) {
+ return s.getChildren(t).some((t => s.isTag(t) && e(t)))
+ };
+ case Zi.Child:
+ return function(t) {
+ const n = s.getParent(t);
+ return null != n && s.isTag(n) && e(n)
+ };
+ case Zi.Sibling:
+ return function(t) {
+ const n = s.getSiblings(t);
+ for (let r = 0; r < n.length; r++) {
+ const i = n[r];
+ if (a(t, i)) break;
+ if (s.isTag(i) && e(i)) return !0
+ }
+ return !1
+ };
+ case Zi.Adjacent:
+ return s.prevElementSibling ? function(t) {
+ const n = s.prevElementSibling(t);
+ return null != n && e(n)
+ } : function(t) {
+ const n = s.getSiblings(t);
+ let r;
+ for (let e = 0; e < n.length; e++) {
+ const i = n[e];
+ if (a(t, i)) break;
+ s.isTag(i) && (r = i)
+ }
+ return !!r && e(r)
+ };
+ case Zi.Universal:
+ if (null != t.namespace && "*" !== t.namespace) throw new Error("Namespaced universal selectors are not yet supported by css-select");
+ return e
+ }
+}
+
+function js(e) {
+ return e.type === Zi.Pseudo && ("scope" === e.name || Array.isArray(e.data) && e.data.some((e => e.some(js))))
+}
+const Vs = {
+ type: Zi.Descendant
+ },
+ Ws = {
+ type: "_flexibleDescendant"
+ },
+ Qs = {
+ type: Zi.Pseudo,
+ name: "scope",
+ data: null
+ };
+
+function Xs(e, t, n) {
+ var r;
+ e.forEach(As), n = null !== (r = t.context) && void 0 !== r ? r : n;
+ const i = Array.isArray(n),
+ s = n && (Array.isArray(n) ? n : [n]);
+ if (!1 !== t.relativeSelector) ! function(e, {
+ adapter: t
+ }, n) {
+ const r = !!(null == n ? void 0 : n.every((e => {
+ const n = t.isTag(e) && t.getParent(e);
+ return e === Fs || n && t.isTag(n)
+ })));
+ for (const t of e) {
+ if (t.length > 0 && Ts(t[0]) && t[0].type !== Zi.Descendant);
+ else {
+ if (!r || t.some(js)) continue;
+ t.unshift(Vs)
+ }
+ t.unshift(Qs)
+ }
+ }(e, t, s);
+ else if (e.some((e => e.length > 0 && Ts(e[0])))) throw new Error("Relative selectors are not allowed when the `relativeSelector` option is disabled");
+ let a = !1;
+ const o = e.map((e => {
+ if (e.length >= 2) {
+ const [t, n] = e;
+ t.type !== Zi.Pseudo || "scope" !== t.name || (i && n.type === Zi.Descendant ? e[1] = Ws : n.type !== Zi.Adjacent && n.type !== Zi.Sibling || (a = !0))
+ }
+ return function(e, t, n) {
+ var r;
+ return e.reduce(((e, r) => e === ds.falseFunc ? ds.falseFunc : Ks(e, r, t, n, Xs)), null !== (r = t.rootFunc) && void 0 !== r ? r : ds.trueFunc)
+ }(e, t, s)
+ })).reduce($s, ds.falseFunc);
+ return o.shouldTestNextSiblings = a, o
+}
+
+function $s(e, t) {
+ return t === ds.falseFunc || e === ds.trueFunc ? e : e === ds.falseFunc || t === ds.trueFunc ? t : function(n) {
+ return e(n) || t(n)
+ }
+}
+const zs = (e, t) => e === t,
+ Js = {
+ adapter: Se,
+ equals: zs
+ };
+const Zs = (ea = Xs, function(e, t, n) {
+ const r = function(e) {
+ var t, n, r, i;
+ const s = null != e ? e : Js;
+ return null !== (t = s.adapter) && void 0 !== t || (s.adapter = Se), null !== (n = s.equals) && void 0 !== n || (s.equals = null !== (i = null === (r = s.adapter) || void 0 === r ? void 0 : r.equals) && void 0 !== i ? i : zs), s
+ }(t);
+ return ea(e, r, n)
+});
+var ea;
+
+function ta(e, t, n = !1) {
+ return n && (e = function(e, t) {
+ const n = Array.isArray(e) ? e.slice(0) : [e],
+ r = n.length;
+ for (let e = 0; e < r; e++) {
+ const r = Us(n[e], t);
+ n.push(...r)
+ }
+ return n
+ }(e, t)), Array.isArray(e) ? t.removeSubsets(e) : t.getChildren(e)
+}
+const na = new Set(["first", "last", "eq", "gt", "nth", "lt", "even", "odd"]);
+
+function ra(e) {
+ return "pseudo" === e.type && (!!na.has(e.name) || !("not" !== e.name || !Array.isArray(e.data)) && e.data.some((e => e.some(ra))))
+}
+
+function ia(e) {
+ const t = [],
+ n = [];
+ for (const r of e) r.some(ra) ? t.push(r) : n.push(r);
+ return [n, t]
+}
+const sa = {
+ type: Zi.Universal,
+ namespace: null
+ },
+ aa = {
+ type: Zi.Pseudo,
+ name: "scope",
+ data: null
+ };
+
+function oa(e, t, n = {}) {
+ return ca([e], t, n)
+}
+
+function ca(e, t, n = {}) {
+ if ("function" == typeof t) return e.some(t);
+ const [r, i] = ia(ps(t));
+ return r.length > 0 && e.some(Zs(r, n)) || i.some((t => ua(t, e, n).length > 0))
+}
+
+function la(e, t, n = {}) {
+ return ha(ps(e), t, n)
+}
+
+function ha(e, t, n) {
+ if (0 === t.length) return [];
+ const [r, i] = ia(e);
+ let s;
+ if (r.length) {
+ const e = Ea(t, r, n);
+ if (0 === i.length) return e;
+ e.length && (s = new Set(e))
+ }
+ for (let e = 0; e < i.length && (null == s ? void 0 : s.size) !== t.length; e++) {
+ const r = i[e],
+ a = s ? t.filter((e => I(e) && !s.has(e))) : t;
+ if (0 === a.length) break;
+ const o = ua(r, t, n);
+ if (o.length)
+ if (s) o.forEach((e => s.add(e)));
+ else {
+ if (e === i.length - 1) return o;
+ s = new Set(o)
+ }
+ }
+ return void 0 !== s ? s.size === t.length ? t : t.filter((e => s.has(e))) : []
+}
+
+function ua(e, t, n) {
+ var r;
+ if (e.some(as)) {
+ const i = null !== (r = n.root) && void 0 !== r ? r : function(e) {
+ for (; e.parent;) e = e.parent;
+ return e
+ }(t[0]),
+ s = {
+ ...n,
+ context: t,
+ relativeSelector: !1
+ };
+ return e.push(aa), pa(i, e, s, !0, t.length)
+ }
+ return pa(t, e, n, !1, t.length)
+}
+
+function pa(e, t, n, r, i) {
+ const s = t.findIndex(ra),
+ a = t.slice(0, s),
+ o = t[s],
+ c = t.length - 1 === s ? i : 1 / 0,
+ l = function(e, t, n) {
+ const r = null != t ? parseInt(t, 10) : NaN;
+ switch (e) {
+ case "first":
+ return 1;
+ case "nth":
+ case "eq":
+ return isFinite(r) ? r >= 0 ? r + 1 : 1 / 0 : 0;
+ case "lt":
+ return isFinite(r) ? r >= 0 ? Math.min(r, n) : 1 / 0 : 0;
+ case "gt":
+ return isFinite(r) ? 1 / 0 : 0;
+ case "odd":
+ return 2 * n;
+ case "even":
+ return 2 * n - 1;
+ case "last":
+ case "not":
+ return 1 / 0
+ }
+ }(o.name, o.data, c);
+ if (0 === l) return [];
+ const h = (0 !== a.length || Array.isArray(e) ? 0 === a.length ? (Array.isArray(e) ? e : [e]).filter(I) : r || a.some(as) ? fa(e, [a], n, l) : Ea(e, [a], n) : Z(e).filter(I)).slice(0, l);
+ let u = function(e, t, n, r) {
+ const i = "string" == typeof n ? parseInt(n, 10) : NaN;
+ switch (e) {
+ case "first":
+ case "lt":
+ return t;
+ case "last":
+ return t.length > 0 ? [t[t.length - 1]] : t;
+ case "nth":
+ case "eq":
+ return isFinite(i) && Math.abs(i) < t.length ? [i < 0 ? t[t.length + i] : t[i]] : [];
+ case "gt":
+ return isFinite(i) ? t.slice(i + 1) : [];
+ case "even":
+ return t.filter(((e, t) => t % 2 == 0));
+ case "odd":
+ return t.filter(((e, t) => t % 2 == 1));
+ case "not": {
+ const e = new Set(ha(n, t, r));
+ return t.filter((t => !e.has(t)))
+ }
+ }
+ }(o.name, h, o.data, n);
+ if (0 === u.length || t.length === s + 1) return u;
+ const p = t.slice(s + 1),
+ f = p.some(as);
+ if (f) {
+ if (as(p[0])) {
+ const {
+ type: e
+ } = p[0];
+ e !== Zi.Sibling && e !== Zi.Adjacent || (u = ta(u, Se, !0)), p.unshift(sa)
+ }
+ n = {
+ ...n,
+ relativeSelector: !1,
+ rootFunc: e => u.includes(e)
+ }
+ } else n.rootFunc && n.rootFunc !== Es && (n = {
+ ...n,
+ rootFunc: Es
+ });
+ return p.some(ra) ? pa(u, p, n, !1, i) : f ? fa(u, [p], n, i) : Ea(u, [p], n)
+}
+
+function fa(e, t, n, r) {
+ return da(e, Zs(t, n, e), r)
+}
+
+function da(e, t, n = 1 / 0) {
+ return ae((e => I(e) && t(e)), ta(e, Se, t.shouldTestNextSiblings), !0, n)
+}
+
+function Ea(e, t, n) {
+ const r = (Array.isArray(e) ? e : [e]).filter(I);
+ if (0 === r.length) return r;
+ const i = Zs(t, n);
+ return i === Es ? r : r.filter(i)
+}
+var ma = function(e, t, n) {
+ if (n || 2 === arguments.length)
+ for (var r, i = 0, s = t.length; i < s; i++) !r && i in t || (r || (r = Array.prototype.slice.call(t, 0, i)), r[i] = t[i]);
+ return e.concat(r || Array.prototype.slice.call(t))
+ },
+ Ta = /^\s*[~+]/;
+
+function _a(e) {
+ return function(t) {
+ for (var n = [], r = 1; r < arguments.length; r++) n[r - 1] = arguments[r];
+ return function(r) {
+ var i, s = e(t, this);
+ return r && (s = xa(s, r, this.options.xmlMode, null === (i = this._root) || void 0 === i ? void 0 : i[0])), this._make(this.length > 1 && s.length > 1 ? n.reduce((function(e, t) {
+ return t(e)
+ }), s) : s)
+ }
+ }
+}
+var Aa = _a((function(e, t) {
+ for (var n, r = [], i = 0; i < t.length; i++) {
+ var s = e(t[i]);
+ r.push(s)
+ }
+ return (n = new Array).concat.apply(n, r)
+ })),
+ ga = _a((function(e, t) {
+ for (var n = [], r = 0; r < t.length; r++) {
+ var i = e(t[r]);
+ null !== i && n.push(i)
+ }
+ return n
+ }));
+
+function Na(e) {
+ for (var t = [], n = 1; n < arguments.length; n++) t[n - 1] = arguments[n];
+ var r = null,
+ i = _a((function(e, t) {
+ var n = [];
+ return Bi(t, (function(t) {
+ for (var i;
+ (i = e(t)) && !(null == r ? void 0 : r(i, n.length)); t = i) n.push(i)
+ })), n
+ })).apply(void 0, ma([e], t, !1));
+ return function(e, t) {
+ var n = this;
+ r = "string" == typeof e ? function(t) {
+ return oa(t, e, n.options)
+ } : e ? Pa(e) : null;
+ var s = i.call(this, t);
+ return r = null, s
+ }
+}
+
+function Ca(e) {
+ return Array.from(new Set(e))
+}
+var Ia = ga((function(e) {
+ var t = e.parent;
+ return t && !L(t) ? t : null
+ }), Ca),
+ Sa = Aa((function(e) {
+ for (var t = []; e.parent && !L(e.parent);) t.push(e.parent), e = e.parent;
+ return t
+ }), Ee, (function(e) {
+ return e.reverse()
+ })),
+ ba = Na((function(e) {
+ var t = e.parent;
+ return t && !L(t) ? t : null
+ }), Ee, (function(e) {
+ return e.reverse()
+ }));
+var Oa = ga((function(e) {
+ return ne(e)
+ })),
+ ya = Aa((function(e) {
+ for (var t = []; e.next;) I(e = e.next) && t.push(e);
+ return t
+ }), Ca),
+ La = Na((function(e) {
+ return ne(e)
+ }), Ca),
+ ka = ga((function(e) {
+ return re(e)
+ })),
+ va = Aa((function(e) {
+ for (var t = []; e.prev;) I(e = e.prev) && t.push(e);
+ return t
+ }), Ca),
+ Da = Na((function(e) {
+ return re(e)
+ }), Ca),
+ Ra = Aa((function(e) {
+ return te(e).filter((function(t) {
+ return I(t) && t !== e
+ }))
+ }), Ee),
+ Ma = Aa((function(e) {
+ return Z(e).filter(I)
+ }), Ca);
+
+function Pa(e) {
+ return "function" == typeof e ? function(t, n) {
+ return e.call(t, n, t)
+ } : wi(e) ? function(t) {
+ return Array.prototype.includes.call(e, t)
+ } : function(t) {
+ return e === t
+ }
+}
+
+function xa(e, t, n, r) {
+ return "string" == typeof t ? la(t, e, {
+ xmlMode: n,
+ root: r
+ }) : e.filter(Pa(t))
+}
+var wa = Object.freeze({
+ __proto__: null,
+ find: function(e) {
+ var t;
+ if (!e) return this._make([]);
+ var n = this.toArray();
+ if ("string" != typeof e) {
+ var r = wi(e) ? e.toArray() : [e];
+ return this._make(r.filter((function(e) {
+ return n.some((function(t) {
+ return Di(t, e)
+ }))
+ })))
+ }
+ var i = Ta.test(e) ? n : this.children().toArray(),
+ s = {
+ context: n,
+ root: null === (t = this._root) || void 0 === t ? void 0 : t[0],
+ xmlMode: this.options.xmlMode,
+ lowerCaseTags: this.options.lowerCaseTags,
+ lowerCaseAttributeNames: this.options.lowerCaseAttributeNames,
+ pseudos: this.options.pseudos,
+ quirksMode: this.options.quirksMode
+ };
+ return this._make(function(e, t, n = {}, r = 1 / 0) {
+ if ("function" == typeof e) return da(t, e);
+ const [i, s] = ia(ps(e)), a = s.map((e => pa(t, e, n, !0, r)));
+ return i.length && a.push(fa(t, i, n, r)), 0 === a.length ? [] : 1 === a.length ? a[0] : Ee(a.reduce(((e, t) => [...e, ...t])))
+ }(e, i, s))
+ },
+ parent: Ia,
+ parents: Sa,
+ parentsUntil: ba,
+ closest: function(e) {
+ var t, n = [];
+ if (!e) return this._make(n);
+ var r = {
+ xmlMode: this.options.xmlMode,
+ root: null === (t = this._root) || void 0 === t ? void 0 : t[0]
+ },
+ i = "string" == typeof e ? function(t) {
+ return oa(t, e, r)
+ } : Pa(e);
+ return Bi(this, (function(e) {
+ for (; e && I(e);) {
+ if (i(e, 0)) {
+ n.includes(e) || n.push(e);
+ break
+ }
+ e = e.parent
+ }
+ })), this._make(n)
+ },
+ next: Oa,
+ nextAll: ya,
+ nextUntil: La,
+ prev: ka,
+ prevAll: va,
+ prevUntil: Da,
+ siblings: Ra,
+ children: Ma,
+ contents: function() {
+ var e = this.toArray().reduce((function(e, t) {
+ return k(t) ? e.concat(t.children) : e
+ }), []);
+ return this._make(e)
+ },
+ each: function(e) {
+ for (var t = 0, n = this.length; t < n && !1 !== e.call(this[t], t, this[t]);) ++t;
+ return this
+ },
+ map: function(e) {
+ for (var t = [], n = 0; n < this.length; n++) {
+ var r = this[n],
+ i = e.call(r, n, r);
+ null != i && (t = t.concat(i))
+ }
+ return this._make(t)
+ },
+ filter: function(e) {
+ var t;
+ return this._make(xa(this.toArray(), e, this.options.xmlMode, null === (t = this._root) || void 0 === t ? void 0 : t[0]))
+ },
+ filterArray: xa,
+ is: function(e) {
+ var t = this.toArray();
+ return "string" == typeof e ? ca(t.filter(I), e, this.options) : !!e && t.some(Pa(e))
+ },
+ not: function(e) {
+ var t = this.toArray();
+ if ("string" == typeof e) {
+ var n = new Set(la(e, t, this.options));
+ t = t.filter((function(e) {
+ return !n.has(e)
+ }))
+ } else {
+ var r = Pa(e);
+ t = t.filter((function(e, t) {
+ return !r(e, t)
+ }))
+ }
+ return this._make(t)
+ },
+ has: function(e) {
+ var t = this;
+ return this.filter("string" == typeof e ? ":has(".concat(e, ")") : function(n, r) {
+ return t._make(r).find(e).length > 0
+ })
+ },
+ first: function() {
+ return this.length > 1 ? this._make(this[0]) : this
+ },
+ last: function() {
+ return this.length > 0 ? this._make(this[this.length - 1]) : this
+ },
+ eq: function(e) {
+ var t;
+ return 0 === (e = +e) && this.length <= 1 ? this : (e < 0 && (e = this.length + e), this._make(null !== (t = this[e]) && void 0 !== t ? t : []))
+ },
+ get: function(e) {
+ return null == e ? this.toArray() : this[e < 0 ? this.length + e : e]
+ },
+ toArray: function() {
+ return Array.prototype.slice.call(this)
+ },
+ index: function(e) {
+ var t, n;
+ return null == e ? (t = this.parent().children(), n = this[0]) : "string" == typeof e ? (t = this._make(e), n = this[0]) : (t = this, n = wi(e) ? e[0] : e), Array.prototype.indexOf.call(t, n)
+ },
+ slice: function(e, t) {
+ return this._make(Array.prototype.slice.call(this, e, t))
+ },
+ end: function() {
+ var e;
+ return null !== (e = this.prevObject) && void 0 !== e ? e : this._make([])
+ },
+ add: function(e, t) {
+ var n = this._make(e, t),
+ r = Ee(ma(ma([], this.get(), !0), n.get(), !0));
+ return this._make(r)
+ },
+ addBack: function(e) {
+ return this.prevObject ? this.add(e ? this.prevObject.filter(e) : this.prevObject) : this
+ }
+});
+
+function Ba(e, t) {
+ var n = Array.isArray(e) ? e : [e];
+ t ? t.children = n : t = null;
+ for (var r = 0; r < n.length; r++) {
+ var i = n[r];
+ i.parent && i.parent.children !== n && ie(i), t ? (i.prev = n[r - 1] || null, i.next = n[r + 1] || null) : i.prev = i.next = null, i.parent = t
+ }
+ return t
+}
+var Fa = function(e, t, n) {
+ if (n || 2 === arguments.length)
+ for (var r, i = 0, s = t.length; i < s; i++) !r && i in t || (r || (r = Array.prototype.slice.call(t, 0, i)), r[i] = t[i]);
+ return e.concat(r || Array.prototype.slice.call(t))
+};
+
+function Ua(e) {
+ return function() {
+ for (var t = this, n = [], r = 0; r < arguments.length; r++) n[r] = arguments[r];
+ var i = this.length - 1;
+ return Bi(this, (function(r, s) {
+ if (k(r)) {
+ var a = "function" == typeof n[0] ? n[0].call(r, s, t._render(r.children)) : n,
+ o = t._makeDomArray(a, s < i);
+ e(o, r.children, r)
+ }
+ }))
+ }
+}
+
+function Ha(e, t, n, r, i) {
+ for (var s, a, o = Fa([t, n], r, !0), c = 0 === t ? null : e[t - 1], l = t + n >= e.length ? null : e[t + n], h = 0; h < r.length; ++h) {
+ var u = r[h],
+ p = u.parent;
+ if (p) {
+ var f = p.children.indexOf(u);
+ f > -1 && (p.children.splice(f, 1), i === p && t > f && o[0]--)
+ }
+ u.parent = i, u.prev && (u.prev.next = null !== (s = u.next) && void 0 !== s ? s : null), u.next && (u.next.prev = null !== (a = u.prev) && void 0 !== a ? a : null), u.prev = 0 === h ? c : r[h - 1], u.next = h === r.length - 1 ? l : r[h + 1]
+ }
+ return c && (c.next = r[0]), l && (l.prev = r[r.length - 1]), e.splice.apply(e, o)
+}
+var Ga = Ua((function(e, t, n) {
+ Ha(t, t.length, 0, e, n)
+ })),
+ Ya = Ua((function(e, t, n) {
+ Ha(t, 0, 0, e, n)
+ }));
+
+function qa(e) {
+ return function(t) {
+ for (var n = this.length - 1, r = this.parents().last(), i = 0; i < this.length; i++) {
+ var s = this[i],
+ a = "function" == typeof t ? t.call(s, i, s) : "string" != typeof t || Ui(t) ? t : r.find(t).clone(),
+ o = this._makeDomArray(a, i < n)[0];
+ if (o && k(o)) {
+ for (var c = o, l = 0; l < c.children.length;) {
+ var h = c.children[l];
+ I(h) ? (c = h, l = 0) : l++
+ }
+ e(s, c, [o])
+ }
+ }
+ return this
+ }
+}
+var Ka = qa((function(e, t, n) {
+ var r = e.parent;
+ if (r) {
+ var i = r.children,
+ s = i.indexOf(e);
+ Ba([e], t), Ha(i, s, 0, n, r)
+ }
+ })),
+ ja = qa((function(e, t, n) {
+ k(e) && (Ba(e.children, t), Ba(n, e))
+ }));
+var Va = Object.freeze({
+ __proto__: null,
+ _makeDomArray: function(e, t) {
+ var n = this;
+ return null == e ? [] : wi(e) ? t ? Fi(e.get()) : e.get() : Array.isArray(e) ? e.reduce((function(e, r) {
+ return e.concat(n._makeDomArray(r, t))
+ }), []) : "string" == typeof e ? this._parse(e, this.options, !1, null).children : t ? Fi([e]) : [e]
+ },
+ appendTo: function(e) {
+ return (wi(e) ? e : this._make(e)).append(this), this
+ },
+ prependTo: function(e) {
+ return (wi(e) ? e : this._make(e)).prepend(this), this
+ },
+ append: Ga,
+ prepend: Ya,
+ wrap: Ka,
+ wrapInner: ja,
+ unwrap: function(e) {
+ var t = this;
+ return this.parent(e).not("body").each((function(e, n) {
+ t._make(n).replaceWith(n.children)
+ })), this
+ },
+ wrapAll: function(e) {
+ var t = this[0];
+ if (t) {
+ for (var n = this._make("function" == typeof e ? e.call(t, 0, t) : e).insertBefore(t), r = void 0, i = 0; i < n.length; i++) "tag" === n[i].type && (r = n[i]);
+ for (var s = 0; r && s < r.children.length;) {
+ var a = r.children[s];
+ "tag" === a.type ? (r = a, s = 0) : s++
+ }
+ r && this._make(r).append(this)
+ }
+ return this
+ },
+ after: function() {
+ for (var e = this, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
+ var r = this.length - 1;
+ return Bi(this, (function(n, i) {
+ var s = n.parent;
+ if (k(n) && s) {
+ var a = s.children,
+ o = a.indexOf(n);
+ if (!(o < 0)) {
+ var c = "function" == typeof t[0] ? t[0].call(n, i, e._render(n.children)) : t;
+ Ha(a, o + 1, 0, e._makeDomArray(c, i < r), s)
+ }
+ }
+ }))
+ },
+ insertAfter: function(e) {
+ var t = this;
+ "string" == typeof e && (e = this._make(e)), this.remove();
+ var n = [];
+ return this._makeDomArray(e).forEach((function(e) {
+ var r = t.clone().toArray(),
+ i = e.parent;
+ if (i) {
+ var s = i.children,
+ a = s.indexOf(e);
+ a < 0 || (Ha(s, a + 1, 0, r, i), n.push.apply(n, r))
+ }
+ })), this._make(n)
+ },
+ before: function() {
+ for (var e = this, t = [], n = 0; n < arguments.length; n++) t[n] = arguments[n];
+ var r = this.length - 1;
+ return Bi(this, (function(n, i) {
+ var s = n.parent;
+ if (k(n) && s) {
+ var a = s.children,
+ o = a.indexOf(n);
+ if (!(o < 0)) {
+ var c = "function" == typeof t[0] ? t[0].call(n, i, e._render(n.children)) : t;
+ Ha(a, o, 0, e._makeDomArray(c, i < r), s)
+ }
+ }
+ }))
+ },
+ insertBefore: function(e) {
+ var t = this,
+ n = this._make(e);
+ this.remove();
+ var r = [];
+ return Bi(n, (function(e) {
+ var n = t.clone().toArray(),
+ i = e.parent;
+ if (i) {
+ var s = i.children,
+ a = s.indexOf(e);
+ a < 0 || (Ha(s, a, 0, n, i), r.push.apply(r, n))
+ }
+ })), this._make(r)
+ },
+ remove: function(e) {
+ return Bi(e ? this.filter(e) : this, (function(e) {
+ ie(e), e.prev = e.next = e.parent = null
+ })), this
+ },
+ replaceWith: function(e) {
+ var t = this;
+ return Bi(this, (function(n, r) {
+ var i = n.parent;
+ if (i) {
+ var s = i.children,
+ a = "function" == typeof e ? e.call(n, r, n) : e,
+ o = t._makeDomArray(a);
+ Ba(o, null);
+ var c = s.indexOf(n);
+ Ha(s, c, 1, o, i), o.includes(n) || (n.parent = n.prev = n.next = null)
+ }
+ }))
+ },
+ empty: function() {
+ return Bi(this, (function(e) {
+ k(e) && (e.children.forEach((function(e) {
+ e.next = e.prev = e.parent = null
+ })), e.children.length = 0)
+ }))
+ },
+ html: function(e) {
+ var t = this;
+ if (void 0 === e) {
+ var n = this[0];
+ return n && k(n) ? this._render(n.children) : null
+ }
+ return Bi(this, (function(n) {
+ k(n) && (n.children.forEach((function(e) {
+ e.next = e.prev = e.parent = null
+ })), Ba(wi(e) ? e.toArray() : t._parse("".concat(e), t.options, !1, n).children, n))
+ }))
+ },
+ toString: function() {
+ return this._render(this)
+ },
+ text: function(e) {
+ var t = this;
+ return void 0 === e ? Li(this) : Bi(this, "function" == typeof e ? function(n, r) {
+ return t._make(n).text(e.call(n, r, Li([n])))
+ } : function(t) {
+ k(t) && (t.children.forEach((function(e) {
+ e.next = e.prev = e.parent = null
+ })), Ba(new m("".concat(e)), t))
+ })
+ },
+ clone: function() {
+ return this._make(Fi(this.get()))
+ }
+});
+
+function Wa(e, t, n, r) {
+ if ("string" == typeof t) {
+ var i = Qa(e),
+ s = "function" == typeof n ? n.call(e, r, i[t]) : n;
+ "" === s ? delete i[t] : null != s && (i[t] = s), e.attribs.style = (a = i, Object.keys(a).reduce((function(e, t) {
+ return "".concat(e).concat(e ? " " : "").concat(t, ": ").concat(a[t], ";")
+ }), ""))
+ } else "object" == typeof t && Object.keys(t).forEach((function(n, r) {
+ Wa(e, n, t[n], r)
+ }));
+ var a
+}
+
+function Qa(e, t) {
+ if (e && I(e)) {
+ var n = function(e) {
+ if (!(e = (e || "").trim())) return {};
+ for (var t, n = {}, r = 0, i = e.split(";"); r < i.length; r++) {
+ var s = i[r],
+ a = s.indexOf(":");
+ if (a < 1 || a === s.length - 1) {
+ var o = s.trimEnd();
+ o.length > 0 && void 0 !== t && (n[t] += ";".concat(o))
+ } else n[t = s.slice(0, a).trim()] = s.slice(a + 1).trim()
+ }
+ return n
+ }(e.attribs.style);
+ if ("string" == typeof t) return n[t];
+ if (Array.isArray(t)) {
+ var r = {};
+ return t.forEach((function(e) {
+ null != n[e] && (r[e] = n[e])
+ })), r
+ }
+ return n
+ }
+}
+var Xa = Object.freeze({
+ __proto__: null,
+ css: function(e, t) {
+ return null != e && null != t || "object" == typeof e && !Array.isArray(e) ? Bi(this, (function(n, r) {
+ I(n) && Wa(n, e, t, r)
+ })) : 0 !== this.length ? Qa(this[0], e) : void 0
+ }
+ }),
+ $a = /%20/g,
+ za = /\r?\n/g;
+var Ja = Object.freeze({
+ __proto__: null,
+ serialize: function() {
+ var e = this.serializeArray().map((function(e) {
+ return "".concat(encodeURIComponent(e.name), "=").concat(encodeURIComponent(e.value))
+ }));
+ return e.join("&").replace($a, "+")
+ },
+ serializeArray: function() {
+ var e = this;
+ return this.map((function(t, n) {
+ var r = e._make(n);
+ return I(n) && "form" === n.name ? r.find("input,select,textarea,keygen").toArray() : r.filter("input,select,textarea,keygen").toArray()
+ })).filter('[name!=""]:enabled:not(:submit, :button, :image, :reset, :file):matches([checked], :not(:checkbox, :radio))').map((function(t, n) {
+ var r, i = e._make(n),
+ s = i.attr("name"),
+ a = null !== (r = i.val()) && void 0 !== r ? r : "";
+ return Array.isArray(a) ? a.map((function(e) {
+ return {
+ name: s,
+ value: e.replace(za, "\r\n")
+ }
+ })) : {
+ name: s,
+ value: a.replace(za, "\r\n")
+ }
+ })).toArray()
+ }
+ }),
+ Za = function(e, t, n) {
+ if (this.length = 0, this.options = n, this._root = t, e) {
+ for (var r = 0; r < e.length; r++) this[r] = e[r];
+ this.length = e.length
+ }
+ };
+Za.prototype.cheerio = "[cheerio object]", Za.prototype.splice = Array.prototype.splice, Za.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator], Object.assign(Za.prototype, ts, wa, Va, Xa, Ja);
+var eo, to = (eo = function(e, t) {
+ return eo = Object.setPrototypeOf || {
+ __proto__: []
+ }
+ instanceof Array && function(e, t) {
+ e.__proto__ = t
+ } || function(e, t) {
+ for (var n in t) Object.prototype.hasOwnProperty.call(t, n) && (e[n] = t[n])
+ }, eo(e, t)
+ }, function(e, t) {
+ if ("function" != typeof t && null !== t) throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
+
+ function n() {
+ this.constructor = e
+ }
+ eo(e, t), e.prototype = null === t ? Object.create(t) : (n.prototype = t.prototype, new n)
+ }),
+ no = function() {
+ return no = 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
+ }, no.apply(this, arguments)
+ };
+const ro = new Set([65534, 65535, 131070, 131071, 196606, 196607, 262142, 262143, 327678, 327679, 393214, 393215, 458750, 458751, 524286, 524287, 589822, 589823, 655358, 655359, 720894, 720895, 786430, 786431, 851966, 851967, 917502, 917503, 983038, 983039, 1048574, 1048575, 1114110, 1114111]);
+var io;
+! function(e) {
+ e[e.EOF = -1] = "EOF", e[e.NULL = 0] = "NULL", e[e.TABULATION = 9] = "TABULATION", e[e.CARRIAGE_RETURN = 13] = "CARRIAGE_RETURN", e[e.LINE_FEED = 10] = "LINE_FEED", e[e.FORM_FEED = 12] = "FORM_FEED", e[e.SPACE = 32] = "SPACE", e[e.EXCLAMATION_MARK = 33] = "EXCLAMATION_MARK", e[e.QUOTATION_MARK = 34] = "QUOTATION_MARK", e[e.NUMBER_SIGN = 35] = "NUMBER_SIGN", e[e.AMPERSAND = 38] = "AMPERSAND", e[e.APOSTROPHE = 39] = "APOSTROPHE", e[e.HYPHEN_MINUS = 45] = "HYPHEN_MINUS", e[e.SOLIDUS = 47] = "SOLIDUS", e[e.DIGIT_0 = 48] = "DIGIT_0", e[e.DIGIT_9 = 57] = "DIGIT_9", e[e.SEMICOLON = 59] = "SEMICOLON", e[e.LESS_THAN_SIGN = 60] = "LESS_THAN_SIGN", e[e.EQUALS_SIGN = 61] = "EQUALS_SIGN", e[e.GREATER_THAN_SIGN = 62] = "GREATER_THAN_SIGN", e[e.QUESTION_MARK = 63] = "QUESTION_MARK", e[e.LATIN_CAPITAL_A = 65] = "LATIN_CAPITAL_A", e[e.LATIN_CAPITAL_F = 70] = "LATIN_CAPITAL_F", e[e.LATIN_CAPITAL_X = 88] = "LATIN_CAPITAL_X", e[e.LATIN_CAPITAL_Z = 90] = "LATIN_CAPITAL_Z", e[e.RIGHT_SQUARE_BRACKET = 93] = "RIGHT_SQUARE_BRACKET", e[e.GRAVE_ACCENT = 96] = "GRAVE_ACCENT", e[e.LATIN_SMALL_A = 97] = "LATIN_SMALL_A", e[e.LATIN_SMALL_F = 102] = "LATIN_SMALL_F", e[e.LATIN_SMALL_X = 120] = "LATIN_SMALL_X", e[e.LATIN_SMALL_Z = 122] = "LATIN_SMALL_Z", e[e.REPLACEMENT_CHARACTER = 65533] = "REPLACEMENT_CHARACTER"
+}(io = io || (io = {}));
+const so = "--",
+ ao = "[CDATA[",
+ oo = "doctype",
+ co = "script",
+ lo = "public",
+ ho = "system";
+
+function uo(e) {
+ return e >= 55296 && e <= 57343
+}
+
+function po(e) {
+ return 32 !== e && 10 !== e && 13 !== e && 9 !== e && 12 !== e && e >= 1 && e <= 31 || e >= 127 && e <= 159
+}
+
+function fo(e) {
+ return e >= 64976 && e <= 65007 || ro.has(e)
+}
+var Eo;
+! function(e) {
+ e.controlCharacterInInputStream = "control-character-in-input-stream", e.noncharacterInInputStream = "noncharacter-in-input-stream", e.surrogateInInputStream = "surrogate-in-input-stream", e.nonVoidHtmlElementStartTagWithTrailingSolidus = "non-void-html-element-start-tag-with-trailing-solidus", e.endTagWithAttributes = "end-tag-with-attributes", e.endTagWithTrailingSolidus = "end-tag-with-trailing-solidus", e.unexpectedSolidusInTag = "unexpected-solidus-in-tag", e.unexpectedNullCharacter = "unexpected-null-character", e.unexpectedQuestionMarkInsteadOfTagName = "unexpected-question-mark-instead-of-tag-name", e.invalidFirstCharacterOfTagName = "invalid-first-character-of-tag-name", e.unexpectedEqualsSignBeforeAttributeName = "unexpected-equals-sign-before-attribute-name", e.missingEndTagName = "missing-end-tag-name", e.unexpectedCharacterInAttributeName = "unexpected-character-in-attribute-name", e.unknownNamedCharacterReference = "unknown-named-character-reference", e.missingSemicolonAfterCharacterReference = "missing-semicolon-after-character-reference", e.unexpectedCharacterAfterDoctypeSystemIdentifier = "unexpected-character-after-doctype-system-identifier", e.unexpectedCharacterInUnquotedAttributeValue = "unexpected-character-in-unquoted-attribute-value", e.eofBeforeTagName = "eof-before-tag-name", e.eofInTag = "eof-in-tag", e.missingAttributeValue = "missing-attribute-value", e.missingWhitespaceBetweenAttributes = "missing-whitespace-between-attributes", e.missingWhitespaceAfterDoctypePublicKeyword = "missing-whitespace-after-doctype-public-keyword", e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers = "missing-whitespace-between-doctype-public-and-system-identifiers", e.missingWhitespaceAfterDoctypeSystemKeyword = "missing-whitespace-after-doctype-system-keyword", e.missingQuoteBeforeDoctypePublicIdentifier = "missing-quote-before-doctype-public-identifier", e.missingQuoteBeforeDoctypeSystemIdentifier = "missing-quote-before-doctype-system-identifier", e.missingDoctypePublicIdentifier = "missing-doctype-public-identifier", e.missingDoctypeSystemIdentifier = "missing-doctype-system-identifier", e.abruptDoctypePublicIdentifier = "abrupt-doctype-public-identifier", e.abruptDoctypeSystemIdentifier = "abrupt-doctype-system-identifier", e.cdataInHtmlContent = "cdata-in-html-content", e.incorrectlyOpenedComment = "incorrectly-opened-comment", e.eofInScriptHtmlCommentLikeText = "eof-in-script-html-comment-like-text", e.eofInDoctype = "eof-in-doctype", e.nestedComment = "nested-comment", e.abruptClosingOfEmptyComment = "abrupt-closing-of-empty-comment", e.eofInComment = "eof-in-comment", e.incorrectlyClosedComment = "incorrectly-closed-comment", e.eofInCdata = "eof-in-cdata", e.absenceOfDigitsInNumericCharacterReference = "absence-of-digits-in-numeric-character-reference", e.nullCharacterReference = "null-character-reference", e.surrogateCharacterReference = "surrogate-character-reference", e.characterReferenceOutsideUnicodeRange = "character-reference-outside-unicode-range", e.controlCharacterReference = "control-character-reference", e.noncharacterCharacterReference = "noncharacter-character-reference", e.missingWhitespaceBeforeDoctypeName = "missing-whitespace-before-doctype-name", e.missingDoctypeName = "missing-doctype-name", e.invalidCharacterSequenceAfterDoctypeName = "invalid-character-sequence-after-doctype-name", e.duplicateAttribute = "duplicate-attribute", e.nonConformingDoctype = "non-conforming-doctype", e.missingDoctype = "missing-doctype", e.misplacedDoctype = "misplaced-doctype", e.endTagWithoutMatchingOpenElement = "end-tag-without-matching-open-element", e.closingOfElementWithOpenChildElements = "closing-of-element-with-open-child-elements", e.disallowedContentInNoscriptInHead = "disallowed-content-in-noscript-in-head", e.openElementsLeftAfterEof = "open-elements-left-after-eof", e.abandonedHeadElementChild = "abandoned-head-element-child", e.misplacedStartTagForHeadElement = "misplaced-start-tag-for-head-element", e.nestedNoscriptInHead = "nested-noscript-in-head", e.eofInElementThatCanContainOnlyText = "eof-in-element-that-can-contain-only-text"
+}(Eo = Eo || (Eo = {}));
+class mo {
+ constructor(e) {
+ this.handler = e, this.html = "", this.pos = -1, this.lastGapPos = -2, this.gapStack = [], this.skipNextNewLine = !1, this.lastChunkWritten = !1, this.endOfChunkHit = !1, this.bufferWaterline = 65536, this.isEol = !1, this.lineStartPos = 0, this.droppedBufferSize = 0, this.line = 1, this.lastErrOffset = -1
+ }
+ get col() {
+ return this.pos - this.lineStartPos + Number(this.lastGapPos !== this.pos)
+ }
+ get offset() {
+ return this.droppedBufferSize + this.pos
+ }
+ getError(e) {
+ const {
+ line: t,
+ col: n,
+ offset: r
+ } = this;
+ return {
+ code: e,
+ startLine: t,
+ endLine: t,
+ startCol: n,
+ endCol: n,
+ startOffset: r,
+ endOffset: r
+ }
+ }
+ _err(e) {
+ this.handler.onParseError && this.lastErrOffset !== this.offset && (this.lastErrOffset = this.offset, this.handler.onParseError(this.getError(e)))
+ }
+ _addGap() {
+ this.gapStack.push(this.lastGapPos), this.lastGapPos = this.pos
+ }
+ _processSurrogate(e) {
+ if (this.pos !== this.html.length - 1) {
+ const t = this.html.charCodeAt(this.pos + 1);
+ if (function(e) {
+ return e >= 56320 && e <= 57343
+ }(t)) return this.pos++, this._addGap(), 1024 * (e - 55296) + 9216 + t
+ } else if (!this.lastChunkWritten) return this.endOfChunkHit = !0, io.EOF;
+ return this._err(Eo.surrogateInInputStream), e
+ }
+ willDropParsedChunk() {
+ return this.pos > this.bufferWaterline
+ }
+ dropParsedChunk() {
+ this.willDropParsedChunk() && (this.html = this.html.substring(this.pos), this.lineStartPos -= this.pos, this.droppedBufferSize += this.pos, this.pos = 0, this.lastGapPos = -2, this.gapStack.length = 0)
+ }
+ write(e, t) {
+ this.html.length > 0 ? this.html += e : this.html = e, this.endOfChunkHit = !1, this.lastChunkWritten = t
+ }
+ insertHtmlAtCurrentPos(e) {
+ this.html = this.html.substring(0, this.pos + 1) + e + this.html.substring(this.pos + 1), this.endOfChunkHit = !1
+ }
+ startsWith(e, t) {
+ if (this.pos + e.length > this.html.length) return this.endOfChunkHit = !this.lastChunkWritten, !1;
+ if (t) return this.html.startsWith(e, this.pos);
+ for (let t = 0; t < e.length; t++) {
+ if ((32 | this.html.charCodeAt(this.pos + t)) !== e.charCodeAt(t)) return !1
+ }
+ return !0
+ }
+ peek(e) {
+ const t = this.pos + e;
+ return t >= this.html.length ? (this.endOfChunkHit = !this.lastChunkWritten, io.EOF) : this.html.charCodeAt(t)
+ }
+ advance() {
+ if (this.pos++, this.isEol && (this.isEol = !1, this.line++, this.lineStartPos = this.pos), this.pos >= this.html.length) return this.endOfChunkHit = !this.lastChunkWritten, io.EOF;
+ let e = this.html.charCodeAt(this.pos);
+ if (e === io.CARRIAGE_RETURN) return this.isEol = !0, this.skipNextNewLine = !0, io.LINE_FEED;
+ if (e === io.LINE_FEED && (this.isEol = !0, this.skipNextNewLine)) return this.line--, this.skipNextNewLine = !1, this._addGap(), this.advance();
+ this.skipNextNewLine = !1, uo(e) && (e = this._processSurrogate(e));
+ return null === this.handler.onParseError || e > 31 && e < 127 || e === io.LINE_FEED || e === io.CARRIAGE_RETURN || e > 159 && e < 64976 || this._checkForProblematicCharacters(e), e
+ }
+ _checkForProblematicCharacters(e) {
+ po(e) ? this._err(Eo.controlCharacterInInputStream) : fo(e) && this._err(Eo.noncharacterInInputStream)
+ }
+ retreat(e) {
+ for (this.pos -= e; this.pos < this.lastGapPos;) this.lastGapPos = this.gapStack.pop(), this.pos--;
+ this.isEol = !1
+ }
+}
+var To;
+
+function _o(e, t) {
+ for (let n = e.attrs.length - 1; n >= 0; n--)
+ if (e.attrs[n].name === t) return e.attrs[n].value;
+ return null
+}! function(e) {
+ e[e.CHARACTER = 0] = "CHARACTER", e[e.NULL_CHARACTER = 1] = "NULL_CHARACTER", e[e.WHITESPACE_CHARACTER = 2] = "WHITESPACE_CHARACTER", e[e.START_TAG = 3] = "START_TAG", e[e.END_TAG = 4] = "END_TAG", e[e.COMMENT = 5] = "COMMENT", e[e.DOCTYPE = 6] = "DOCTYPE", e[e.EOF = 7] = "EOF", e[e.HIBERNATION = 8] = "HIBERNATION"
+}(To = To || (To = {}));
+var Ao = Ke((function(e, t) {
+ Object.defineProperty(t, "__esModule", {
+ value: !0
+ }), t.default = new Uint16Array('ᵁ<Õıʊҝջאٵ۞ޢߖࠏઑඡ༉༦ረዡᐕᒝᓃᓟᔥ\0\0\0\0\0\0ᕫᛍᦍᰒᷝ↰⊍⏀⏻⑂⠤⤒ⴈ⹈⿎〖㊺㘹㞬㣾㨨㩱㫠㬮ࠀEMabcfglmnoprstu\\bfms¦³¹ÈÏlig耻Æ䃆P耻&䀦cute耻Á䃁reve;䄂Āiyx}rc耻Â䃂;䐐r;쀀𝔄rave耻À䃀pha;䎑acr;䄀d;橓Āgp¡on;䄄f;쀀𝔸plyFunction;恡ing耻Å䃅Ācs¾Ãr;쀀𝒜ign;扔ilde耻Ã䃃ml耻Ä䃄ЀaceforsuåûþėĜĢħĪĀcrêòkslash;或Ŷöø;櫧ed;挆y;䐑ƀcrtąċĔause;戵noullis;愬a;䎒r;쀀𝔅pf;쀀𝔹eve;䋘còēmpeq;扎܀HOacdefhilorsuōőŖƀƞƢƵƷƺǜȕɳɸɾcy;䐧PY耻©䂩ƀcpyŝŢźute;䄆Ā;iŧŨ拒talDifferentialD;慅leys;愭ȀaeioƉƎƔƘron;䄌dil耻Ç䃇rc;䄈nint;戰ot;䄊ĀdnƧƭilla;䂸terDot;䂷òſi;䎧rcleȀDMPTLJNjǑǖot;抙inus;抖lus;投imes;抗oĀcsǢǸkwiseContourIntegral;戲eCurlyĀDQȃȏoubleQuote;思uote;怙ȀlnpuȞȨɇɕonĀ;eȥȦ户;橴ƀgitȯȶȺruent;扡nt;戯ourIntegral;戮ĀfrɌɎ;愂oduct;成nterClockwiseContourIntegral;戳oss;樯cr;쀀𝒞pĀ;Cʄʅ拓ap;才րDJSZacefiosʠʬʰʴʸˋ˗ˡ˦̳ҍĀ;oŹʥtrahd;椑cy;䐂cy;䐅cy;䐏ƀgrsʿ˄ˇger;怡r;憡hv;櫤Āayː˕ron;䄎;䐔lĀ;t˝˞戇a;䎔r;쀀𝔇Āaf˫̧Ācm˰̢riticalȀADGT̖̜̀̆cute;䂴oŴ̋̍;䋙bleAcute;䋝rave;䁠ilde;䋜ond;拄ferentialD;慆Ѱ̽\0\0\0͔͂\0Ѕf;쀀𝔻ƀ;DE͈͉͍䂨ot;惜qual;扐blèCDLRUVͣͲϏϢϸontourIntegraìȹoɴ\0\0ͻ»͉nArrow;懓Āeo·ΤftƀARTΐΖΡrrow;懐ightArrow;懔eåˊngĀLRΫτeftĀARγιrrow;柸ightArrow;柺ightArrow;柹ightĀATϘϞrrow;懒ee;抨pɁϩ\0\0ϯrrow;懑ownArrow;懕erticalBar;戥ǹABLRTaВЪаўѿͼrrowƀ;BUНОТ憓ar;椓pArrow;懵reve;䌑eft˒к\0ц\0ѐightVector;楐eeVector;楞ectorĀ;Bљњ憽ar;楖ightǔѧ\0ѱeeVector;楟ectorĀ;BѺѻ懁ar;楗eeĀ;A҆҇护rrow;憧ĀctҒҗr;쀀𝒟rok;䄐ࠀNTacdfglmopqstuxҽӀӄӋӞӢӧӮӵԡԯԶՒ՝ՠեG;䅊H耻Ð䃐cute耻É䃉ƀaiyӒӗӜron;䄚rc耻Ê䃊;䐭ot;䄖r;쀀𝔈rave耻È䃈ement;戈ĀapӺӾcr;䄒tyɓԆ\0\0ԒmallSquare;旻erySmallSquare;斫ĀgpԦԪon;䄘f;쀀𝔼silon;䎕uĀaiԼՉlĀ;TՂՃ橵ilde;扂librium;懌Āci՚r;愰m;橳a;䎗ml耻Ë䃋Āipժկsts;戃onentialE;慇ʀcfiosօֈ֍ֲy;䐤r;쀀𝔉lledɓ֗\0\0֣mallSquare;旼erySmallSquare;斪Ͱֺ\0ֿ\0\0ׄf;쀀𝔽All;戀riertrf;愱còJTabcdfgorstרׯؒؖ؛؝أ٬ٲcy;䐃耻>䀾mmaĀ;d䎓;䏜reve;䄞ƀeiy؇،ؐdil;䄢rc;䄜;䐓ot;䄠r;쀀𝔊;拙pf;쀀𝔾eater̀EFGLSTصلَٖٛ٦qualĀ;Lؾؿ扥ess;招ullEqual;执reater;檢ess;扷lantEqual;橾ilde;扳cr;쀀𝒢;扫ЀAacfiosuڅڋږڛڞڪھۊRDcy;䐪Āctڐڔek;䋇;䁞irc;䄤r;愌lbertSpace;愋ǰگ\0ڲf;愍izontalLine;攀Āctۃۅòکrok;䄦mpńېۘownHumðįqual;扏܀EJOacdfgmnostuۺ۾܃܇ܚܞܡܨ݄ݸދޏޕcy;䐕lig;䄲cy;䐁cute耻Í䃍Āiyܓܘrc耻Î䃎;䐘ot;䄰r;愑rave耻Ì䃌ƀ;apܠܯܿĀcgܴܷr;䄪inaryI;慈lieóϝǴ݉\0ݢĀ;eݍݎ戬Āgrݓݘral;戫section;拂isibleĀCTݬݲomma;恣imes;恢ƀgptݿރވon;䄮f;쀀𝕀a;䎙cr;愐ilde;䄨ǫޚ\0ޞcy;䐆l耻Ï䃏ʀcfosuެ߂ߐĀiyޱrc;䄴;䐙r;쀀𝔍pf;쀀𝕁ǣ߇\0ߌr;쀀𝒥rcy;䐈kcy;䐄HJacfosߤߨ߽߬߱ࠂࠈcy;䐥cy;䐌ppa;䎚Āey߶dil;䄶;䐚r;쀀𝔎pf;쀀𝕂cr;쀀𝒦րJTaceflmostࠥࠩࠬࡐࡣসে্ੇcy;䐉耻<䀼ʀcmnpr࠷࠼ࡁࡄࡍute;䄹bda;䎛g;柪lacetrf;愒r;憞ƀaeyࡗࡡron;䄽dil;䄻;䐛Āfsࡨ॰tԀACDFRTUVarࡾࢩࢱࣦ࣠ࣼयज़ΐ४ĀnrࢃgleBracket;柨rowƀ;BR࢙࢚࢞憐ar;懤ightArrow;懆eiling;挈oǵࢷ\0ࣃbleBracket;柦nǔࣈ\0࣒eeVector;楡ectorĀ;Bࣛࣜ懃ar;楙loor;挊ightĀAV࣯ࣵrrow;憔ector;楎Āerँगeƀ;AVउऊऐ抣rrow;憤ector;楚iangleƀ;BEतथऩ抲ar;槏qual;抴pƀDTVषूौownVector;楑eeVector;楠ectorĀ;Bॖॗ憿ar;楘ectorĀ;B॥०憼ar;楒ightáΜs̀EFGLSTॾঋকঝঢভqualGreater;拚ullEqual;扦reater;扶ess;檡lantEqual;橽ilde;扲r;쀀𝔏Ā;eঽা拘ftarrow;懚idot;䄿ƀnpwਖਛgȀLRlr৷ਂਐeftĀAR০৬rrow;柵ightArrow;柷ightArrow;柶eftĀarγਊightáοightáϊf;쀀𝕃erĀLRਢਬeftArrow;憙ightArrow;憘ƀchtਾੀੂòࡌ;憰rok;䅁;扪Ѐacefiosuਗ਼અઋp;椅y;䐜Ādl੯iumSpace;恟lintrf;愳r;쀀𝔐nusPlus;戓pf;쀀𝕄cò੶;䎜ҀJacefostuણધભીଔଙඑඞcy;䐊cute;䅃ƀaeyહાron;䅇dil;䅅;䐝ƀgswે૰ativeƀMTV૨ediumSpace;怋hiĀcn૦ëeryThiîtedĀGLଆreaterGreateòٳessLesóੈLine;䀊r;쀀𝔑ȀBnptଢନଷreak;恠BreakingSpace;䂠f;愕ڀ;CDEGHLNPRSTV୕ୖ୪௫ఄ಄ದൡඅ櫬Āoungruent;扢pCap;扭oubleVerticalBar;戦ƀlqxஃஊement;戉ualĀ;Tஒஓ扠ilde;쀀≂̸ists;戄reater;EFGLSTஶஷ扯qual;扱ullEqual;쀀≧̸reater;쀀≫̸ess;批lantEqual;쀀⩾̸ilde;扵umpń௲ownHump;쀀≎̸qual;쀀≏̸eĀfsఊధtTriangleƀ;BEచఛడ拪ar;쀀⧏̸qual;括s̀;EGLSTవశ఼ౄోౘ扮qual;扰reater;扸ess;쀀≪̸lantEqual;쀀⩽̸ilde;扴estedĀGL౨౹reaterGreater;쀀⪢̸essLess;쀀⪡̸recedesƀ;ESಒಓಛ技qual;쀀⪯̸lantEqual;拠ĀeiಫಹverseElement;戌ghtTriangleƀ;BEೋೌ拫ar;쀀⧐̸qual;拭ĀquೝഌuareSuĀbp೨setĀ;Eೳ쀀⊏̸qual;拢ersetĀ;Eഃആ쀀⊐̸qual;拣ƀbcpഓതൎsetĀ;Eഛഞ쀀⊂⃒qual;抈ceedsȀ;ESTലള഻െ抁qual;쀀⪰̸lantEqual;拡ilde;쀀≿̸ersetĀ;E൘൛쀀⊃⃒qual;抉ildeȀ;EFT൮൯൵ൿ扁qual;扄ullEqual;扇ilde;扉erticalBar;戤cr;쀀𝒩ilde耻Ñ䃑;䎝܀Eacdfgmoprstuvලෂෛ෧ขภยา฿ไlig;䅒cute耻Ó䃓Āiyීrc耻Ô䃔;䐞blac;䅐r;쀀𝔒rave耻Ò䃒ƀaei෮ෲcr;䅌ga;䎩cron;䎟pf;쀀𝕆enCurlyĀDQฎบoubleQuote;怜uote;怘;橔Āclวฬr;쀀𝒪ash耻Ø䃘iŬืde耻Õ䃕es;樷ml耻Ö䃖erĀBP๋Āar๐๓r;怾acĀek๚;揞et;掴arenthesis;揜ҀacfhilorsງຊຏຒດຝະrtialD;戂y;䐟r;쀀𝔓i;䎦;䎠usMinus;䂱Āipຢອncareplanåڝf;愙Ȁ;eio຺ູ檻cedesȀ;EST່້扺qual;檯lantEqual;扼ilde;找me;怳Ādpuct;戏ortionĀ;aȥl;戝Āci༁༆r;쀀𝒫;䎨ȀUfos༑༖༛༟OT耻"䀢r;쀀𝔔pf;愚cr;쀀𝒬BEacefhiorsu༾གྷཇའཱིྦྷྪྭ႖ႩႴႾarr;椐G耻®䂮ƀcnrཎནབute;䅔g;柫rĀ;tཛྷཝ憠l;椖ƀaeyཧཬཱron;䅘dil;䅖;䐠Ā;vླྀཹ愜erseĀEUྂྙĀlq྇ྎement;戋uilibrium;懋pEquilibrium;楯r»ཹo;䎡ghtЀACDFTUVa࿁ဢဨၛႇϘĀnr࿆࿒gleBracket;柩rowƀ;BL憒ar;懥eftArrow;懄eiling;按oǵ\0စbleBracket;柧nǔည\0နeeVector;楝ectorĀ;Bဝသ懂ar;楕loor;挋Āerိ၃eƀ;AVဵံြ抢rrow;憦ector;楛iangleƀ;BEၐၑၕ抳ar;槐qual;抵pƀDTVၣၮၸownVector;楏eeVector;楜ectorĀ;Bႂႃ憾ar;楔ectorĀ;B႑႒懀ar;楓Āpuႛ႞f;愝ndImplies;楰ightarrow;懛ĀchႹႼr;愛;憱leDelayed;槴ڀHOacfhimoqstuფჱჷჽᄙᄞᅑᅖᅡᅧᆵᆻᆿĀCcჩხHcy;䐩y;䐨FTcy;䐬cute;䅚ʀ;aeiyᄈᄉᄎᄓᄗ檼ron;䅠dil;䅞rc;䅜;䐡r;쀀𝔖ortȀDLRUᄪᄴᄾᅉownArrow»ОeftArrow»࢚ightArrow»pArrow;憑gma;䎣allCircle;战pf;쀀𝕊ɲᅭ\0\0ᅰt;戚areȀ;ISUᅻᅼᆉᆯ斡ntersection;抓uĀbpᆏᆞsetĀ;Eᆗᆘ抏qual;抑ersetĀ;Eᆨᆩ抐qual;抒nion;抔cr;쀀𝒮ar;拆ȀbcmpᇈᇛሉላĀ;sᇍᇎ拐etĀ;Eᇍᇕqual;抆ĀchᇠህeedsȀ;ESTᇭᇮᇴᇿ扻qual;檰lantEqual;扽ilde;承Tháྌ;我ƀ;esሒሓሣ拑rsetĀ;Eሜም抃qual;抇et»ሓրHRSacfhiorsሾቄቕቱቶኟዂወዑORN耻Þ䃞ADE;愢ĀHcቒcy;䐋y;䐦Ābuቚቜ;䀉;䎤ƀaeyብቪቯron;䅤dil;䅢;䐢r;쀀𝔗ĀeiቻDzኀ\0ኇefore;戴a;䎘ĀcnኘkSpace;쀀 Space;怉ldeȀ;EFTካኬኲኼ戼qual;扃ullEqual;扅ilde;扈pf;쀀𝕋ipleDot;惛Āctዖዛr;쀀𝒯rok;䅦ૡዷጎጚጦ\0ጬጱ\0\0\0\0\0ጸጽ፷ᎅ\0ᐄᐊᐐĀcrዻጁute耻Ú䃚rĀ;oጇገ憟cir;楉rǣጓ\0y;䐎ve;䅬Āiyጞጣrc耻Û䃛;䐣blac;䅰r;쀀𝔘rave耻Ù䃙acr;䅪Ādiፁ፩erĀBPፈ፝Āarፍፐr;䁟acĀekፗፙ;揟et;掵arenthesis;揝onĀ;P፰፱拃lus;抎Āgp፻on;䅲f;쀀𝕌ЀADETadps᎕ᎮᎸᏄϨᏒᏗᏳrrowƀ;BDᅐᎠᎤar;椒ownArrow;懅ownArrow;憕quilibrium;楮eeĀ;AᏋᏌ报rrow;憥ownáϳerĀLRᏞᏨeftArrow;憖ightArrow;憗iĀ;lᏹᏺ䏒on;䎥ing;䅮cr;쀀𝒰ilde;䅨ml耻Ü䃜ҀDbcdefosvᐧᐬᐰᐳᐾᒅᒊᒐᒖash;披ar;櫫y;䐒ashĀ;lᐻᐼ抩;櫦Āerᑃᑅ;拁ƀbtyᑌᑐᑺar;怖Ā;iᑏᑕcalȀBLSTᑡᑥᑪᑴar;戣ine;䁼eparator;杘ilde;所ThinSpace;怊r;쀀𝔙pf;쀀𝕍cr;쀀𝒱dash;抪ʀcefosᒧᒬᒱᒶᒼirc;䅴dge;拀r;쀀𝔚pf;쀀𝕎cr;쀀𝒲Ȁfiosᓋᓐᓒᓘr;쀀𝔛;䎞pf;쀀𝕏cr;쀀𝒳ҀAIUacfosuᓱᓵᓹᓽᔄᔏᔔᔚᔠcy;䐯cy;䐇cy;䐮cute耻Ý䃝Āiyᔉᔍrc;䅶;䐫r;쀀𝔜pf;쀀𝕐cr;쀀𝒴ml;䅸ЀHacdefosᔵᔹᔿᕋᕏᕝᕠᕤcy;䐖cute;䅹Āayᕄᕉron;䅽;䐗ot;䅻Dzᕔ\0ᕛoWidtèa;䎖r;愨pf;愤cr;쀀𝒵ᖃᖊᖐ\0ᖰᖶᖿ\0\0\0\0ᗆᗛᗫᙟ᙭\0ᚕ᚛ᚲᚹ\0ᚾcute耻á䃡reve;䄃̀;Ediuyᖜᖝᖡᖣᖨᖭ戾;쀀∾̳;房rc耻â䃢te肻´̆;䐰lig耻æ䃦Ā;r²ᖺ;쀀𝔞rave耻à䃠ĀepᗊᗖĀfpᗏᗔsym;愵èᗓha;䎱ĀapᗟcĀclᗤᗧr;䄁g;樿ɤᗰ\0\0ᘊʀ;adsvᗺᗻᗿᘁᘇ戧nd;橕;橜lope;橘;橚;elmrszᘘᘙᘛᘞᘿᙏᙙ戠;榤e»ᘙsdĀ;aᘥᘦ戡ѡᘰᘲᘴᘶᘸᘺᘼᘾ;榨;榩;榪;榫;榬;榭;榮;榯tĀ;vᙅᙆ戟bĀ;dᙌᙍ抾;榝Āptᙔᙗh;戢»¹arr;捼Āgpᙣᙧon;䄅f;쀀𝕒;Eaeiopᙻᙽᚂᚄᚇᚊ;橰cir;橯;扊d;手s;䀧roxĀ;eᚒñᚃing耻å䃥ƀctyᚡᚦᚨr;쀀𝒶;䀪mpĀ;eᚯñʈilde耻ã䃣ml耻ä䃤Āciᛂᛈoninôɲnt;樑ࠀNabcdefiklnoprsu᛭ᛱᜰᝃᝈ០៦ᠹᡐᜍ᥈ᥰot;櫭ĀcrᛶkȀcepsᜀᜅᜍᜓong;扌psilon;䏶rime;怵imĀ;e戽q;拍Ŷᜢᜦee;抽edĀ;gᜬᜭ挅e»ᜭrkĀ;tbrk;掶Āoyᜁᝁ;䐱quo;怞ʀcmprtᝓᝡᝤᝨausĀ;eĊĉptyv;榰séᜌnoõēƀahwᝯᝳ;䎲;愶een;扬r;쀀𝔟gcostuvwឍឝឳេ៕៛ƀaiuបពរðݠrc;旯p»፱ƀdptឤឨឭot;樀lus;樁imes;樂ɱឹ\0\0ើcup;樆ar;昅riangleĀdu៍្own;施p;斳plus;樄eåᑄåᒭarow;植ƀakoᠦᠵĀcn៲ᠣkƀlst֫᠂ozenge;槫riangleȀ;dlr᠒᠓᠘斴own;斾eft;旂ight;斸k;搣Ʊᠫ\0ᠳƲᠯ\0ᠱ;斒;斑4;斓ck;斈ĀeoᠾᡍĀ;qᡃᡆ쀀=⃥uiv;쀀≡⃥t;挐Ȁptwxᡙᡞᡧᡬf;쀀𝕓Ā;tᏋᡣom»Ꮜtie;拈DHUVbdhmptuvᢅᢖᢪᢻᣗᣛᣬᤅᤊᤐᤡȀLRlrᢎᢐᢒᢔ;敗;敔;敖;敓ʀ;DUduᢡᢢᢤᢦᢨ敐;敦;敩;敤;敧ȀLRlrᢳᢵᢷᢹ;敝;敚;敜;教;HLRhlrᣊᣋᣍᣏᣑᣓᣕ救;敬;散;敠;敫;敢;敟ox;槉ȀLRlrᣤᣦᣨᣪ;敕;敒;攐;攌ʀ;DUduڽ;敥;敨;攬;攴inus;抟lus;択imes;抠ȀLRlrᤙᤛᤝ;敛;敘;攘;攔;HLRhlrᤰᤱᤳᤵᤷ᤻᤹攂;敪;敡;敞;攼;攤;攜Āevģbar耻¦䂦Ȁceioᥑᥖᥚᥠr;쀀𝒷mi;恏mĀ;elƀ;bhᥨᥩᥫ䁜;槅sub;柈ŬᥴlĀ;e怢t»pƀ;Eeįᦅᦇ;檮Ā;qۜۛೡᦧ\0᧨ᨑᨕᨲ\0ᨷᩐ\0\0᪴\0\0᫁\0\0ᬡᬮ᭒\0᯽\0ᰌƀcprᦲute;䄇̀;abcdsᦿᧀᧄ᧕᧙戩nd;橄rcup;橉Āau᧒p;橋p;橇ot;橀;쀀∩︀Āeo᧢᧥t;恁îړȀaeiu᧰᧻ᨁᨅǰ᧵\0᧸s;橍on;䄍dil耻ç䃧rc;䄉psĀ;sᨌᨍ橌m;橐ot;䄋ƀdmnᨛᨠᨦil肻¸ƭptyv;榲t脀¢;eᨭᨮ䂢räƲr;쀀𝔠ƀceiᨽᩀᩍy;䑇ckĀ;mᩇᩈ朓ark»ᩈ;䏇r;Ecefms᩠ᩢᩫ᪤᪪旋;槃ƀ;elᩩᩪᩭ䋆q;扗eɡᩴ\0\0᪈rrowĀlr᩼᪁eft;憺ight;憻ʀRSacd᪒᪔᪖»ཇ;擈st;抛irc;抚ash;抝nint;樐id;櫯cir;槂ubsĀ;u᪻᪼晣it»᪼ˬ᫇\0ᬊonĀ;eᫍᫎ䀺Ā;qÇÆɭ\0\0aĀ;t䀬;䁀ƀ;fl戁îᅠeĀmxent»eóɍǧ\0ᬇĀ;dኻᬂot;橭nôɆƀfryᬐᬔᬗ;쀀𝕔oäɔ脀©;sŕᬝr;愗Āaoᬥᬩrr;憵ss;朗Ācuᬲᬷr;쀀𝒸Ābpᬼ᭄Ā;eᭁᭂ櫏;櫑Ā;eᭉᭊ櫐;櫒dot;拯delprvw᭠᭬᭷ᮂᮬᯔarrĀlr᭨᭪;椸;椵ɰ᭲\0\0᭵r;拞c;拟arrĀ;pᮀ憶;椽̀;bcdosᮏᮐᮖᮡᮥᮨ截rcap;橈Āauᮛᮞp;橆p;橊ot;抍r;橅;쀀∪︀Ȁalrv᮵ᮿᯞᯣrrĀ;mᮼᮽ憷;椼yƀevwᯇᯔᯘqɰᯎ\0\0ᯒreã᭳uã᭵ee;拎edge;拏en耻¤䂤earrowĀlrᯮ᯳eft»ᮀight»ᮽeäᯝĀciᰁᰇoninôǷnt;戱lcty;挭ঀAHabcdefhijlorstuwz᰻᰿ᱝᱩᱵᲞᲬᲷᴍᵻᶑᶫᶻ᷆᷍ròar;楥Ȁglrs᱈ᱍ᱒᱔ger;怠eth;愸òᄳhĀ;vᱚᱛ怐»ऊūᱡᱧarow;椏aã̕Āayᱮᱳron;䄏;䐴ƀ;ao̲ᱼᲄĀgrʿᲁr;懊tseq;橷ƀglmᲑᲔᲘ耻°䂰ta;䎴ptyv;榱ĀirᲣᲨsht;楿;쀀𝔡arĀlrᲳᲵ»ࣜ»သʀaegsv᳂᳖᳜᳠mƀ;oș᳔ndĀ;ș᳑uit;晦amma;䏝in;拲ƀ;io᳧᳨᳸䃷de脀÷;o᳧ᳰntimes;拇nø᳷cy;䑒cɯᴆ\0\0ᴊrn;挞op;挍ʀlptuwᴘᴝᴢᵉᵕlar;䀤f;쀀𝕕ʀ;emps̋ᴭᴷᴽᵂqĀ;d͒ᴳot;扑inus;戸lus;戔quare;抡blebarwedgåúnƀadhᄮᵝᵧownarrowóᲃarpoonĀlrᵲᵶefôᲴighôᲶŢᵿᶅkaro÷གɯᶊ\0\0ᶎrn;挟op;挌ƀcotᶘᶣᶦĀryᶝᶡ;쀀𝒹;䑕l;槶rok;䄑Ādrᶰᶴot;拱iĀ;fᶺ᠖斿Āah᷀᷃ròЩaòྦangle;榦Āci᷒ᷕy;䑟grarr;柿ऀDacdefglmnopqrstuxḁḉḙḸոḼṉṡṾấắẽỡἪἷὄĀDoḆᴴoôĀcsḎḔute耻é䃩ter;橮ȀaioyḢḧḱḶron;䄛rĀ;cḭḮ扖耻ê䃪lon;払;䑍ot;䄗ĀDrṁṅot;扒;쀀𝔢ƀ;rsṐṑṗ檚ave耻è䃨Ā;dṜṝ檖ot;檘Ȁ;ilsṪṫṲṴ檙nters;揧;愓Ā;dṹṺ檕ot;檗ƀapsẅẉẗcr;䄓tyƀ;svẒẓẕ戅et»ẓpĀ1;ẝẤijạả;怄;怅怃ĀgsẪẬ;䅋p;怂ĀgpẴẸon;䄙f;쀀𝕖ƀalsỄỎỒrĀ;sỊị拕l;槣us;橱iƀ;lvỚớở䎵on»ớ;䏵ȀcsuvỪỳἋἣĀioữḱrc»Ḯɩỹ\0\0ỻíՈantĀglἂἆtr»ṝess»ṺƀaeiἒἚls;䀽st;扟vĀ;DȵἠD;橸parsl;槥ĀDaἯἳot;打rr;楱ƀcdiἾὁỸr;愯oô͒ĀahὉὋ;䎷耻ð䃰Āmrὓὗl耻ë䃫o;悬ƀcipὡὤὧl;䀡sôծĀeoὬὴctatioîՙnentialåչৡᾒ\0ᾞ\0ᾡᾧ\0\0ῆῌ\0ΐ\0ῦῪ \0 ⁚llingdotseñṄy;䑄male;晀ƀilrᾭᾳ῁lig;耀ffiɩᾹ\0\0᾽g;耀ffig;耀ffl;쀀𝔣lig;耀filig;쀀fjƀaltῙῡt;晭ig;耀flns;斱of;䆒ǰ΅\0ῳf;쀀𝕗ĀakֿῷĀ;vῼ´拔;櫙artint;樍Āao⁕Ācs‑⁒ႉ‸⁅⁈\0⁐β•‥‧\0耻½䂽;慓耻¼䂼;慕;慙;慛Ƴ‴\0‶;慔;慖ʴ‾⁁\0\0⁃耻¾䂾;慗;慜5;慘ƶ⁌\0⁎;慚;慝8;慞l;恄wn;挢cr;쀀𝒻ࢀEabcdefgijlnorstv₂₉₥₰₴⃰℃ℒℸ̗ℾ⅒↞Ā;lٍ₇;檌ƀcmpₐₕute;䇵maĀ;dₜ᳚䎳;檆reve;䄟Āiy₪₮rc;䄝;䐳ot;䄡Ȁ;lqsؾق₽ƀ;qsؾٌlanô٥Ȁ;cdl٥⃒⃥⃕c;檩otĀ;o⃜⃝檀Ā;l⃢⃣檂;檄Ā;e⃪⃭쀀⋛︀s;檔r;쀀𝔤Ā;gٳ؛mel;愷cy;䑓Ȁ;Eajٚℌℎℐ;檒;檥;檤ȀEaesℛℝ℩ℴ;扩pĀ;p℣ℤ檊rox»ℤĀ;q℮ℯ檈Ā;q℮ℛim;拧pf;쀀𝕘Āci⅃ⅆr;愊mƀ;el٫ⅎ⅐;檎;檐茀>;cdlqrⅠⅪⅮⅳⅹĀciⅥⅧ;檧r;橺ot;拗Par;榕uest;橼ʀadelsↄⅪ←ٖ↛ǰ↉\0proør;楸qĀlqؿ↖lesó₈ií٫Āen↣↭rtneqq;쀀≩︀Å↪ԀAabcefkosy⇄⇇⇱⇵⇺∘∝∯≨≽ròΠȀilmr⇐⇔⇗⇛rsðᒄf»․ilôکĀdr⇠⇤cy;䑊ƀ;cwࣴ⇫⇯ir;楈;憭ar;意irc;䄥ƀalr∁∎∓rtsĀ;u∉∊晥it»∊lip;怦con;抹r;쀀𝔥sĀew∣∩arow;椥arow;椦ʀamopr∺∾≃≞≣rr;懿tht;戻kĀlr≉≓eftarrow;憩ightarrow;憪f;쀀𝕙bar;怕ƀclt≯≴≸r;쀀𝒽asè⇴rok;䄧Ābp⊂⊇ull;恃hen»ᱛૡ⊣\0⊪\0⊸⋅⋎\0⋕⋳\0\0⋸⌢⍧⍢⍿\0⎆⎪⎴cute耻í䃭ƀ;iyݱ⊰⊵rc耻î䃮;䐸Ācx⊼⊿y;䐵cl耻¡䂡ĀfrΟ⋉;쀀𝔦rave耻ì䃬Ȁ;inoܾ⋝⋩⋮Āin⋢⋦nt;樌t;戭fin;槜ta;愩lig;䄳ƀaop⋾⌚⌝ƀcgt⌅⌈⌗r;䄫ƀelpܟ⌏⌓inåގarôܠh;䄱f;抷ed;䆵ʀ;cfotӴ⌬⌱⌽⍁are;愅inĀ;t⌸⌹戞ie;槝doô⌙ʀ;celpݗ⍌⍐⍛⍡al;抺Āgr⍕⍙eróᕣã⍍arhk;樗rod;樼Ȁcgpt⍯⍲⍶⍻y;䑑on;䄯f;쀀𝕚a;䎹uest耻¿䂿Āci⎊⎏r;쀀𝒾nʀ;EdsvӴ⎛⎝⎡ӳ;拹ot;拵Ā;v⎦⎧拴;拳Ā;iݷ⎮lde;䄩ǫ⎸\0⎼cy;䑖l耻ï䃯̀cfmosu⏌⏗⏜⏡⏧⏵Āiy⏑⏕rc;䄵;䐹r;쀀𝔧ath;䈷pf;쀀𝕛ǣ⏬\0⏱r;쀀𝒿rcy;䑘kcy;䑔Ѐacfghjos␋␖␢ppaĀ;v␓␔䎺;䏰Āey␛␠dil;䄷;䐺r;쀀𝔨reen;䄸cy;䑅cy;䑜pf;쀀𝕜cr;쀀𝓀ABEHabcdefghjlmnoprstuv⑰⒁⒆⒍⒑┎┽╚▀♎♞♥♹♽⚚⚲⛘❝❨➋⟀⠁⠒ƀart⑷⑺⑼ròòΕail;椛arr;椎Ā;gঔ⒋;檋ar;楢ॣ⒥\0⒪\0⒱\0\0\0\0\0⒵Ⓔ\0ⓆⓈⓍ\0⓹ute;䄺mptyv;榴raîࡌbda;䎻gƀ;dlࢎⓁⓃ;榑åࢎ;檅uo耻«䂫rЀ;bfhlpst࢙ⓞⓦⓩ⓫⓮⓱⓵Ā;f࢝ⓣs;椟s;椝ë≒p;憫l;椹im;楳l;憢ƀ;ae⓿─┄檫il;椙Ā;s┉┊檭;쀀⪭︀ƀabr┕┙┝rr;椌rk;杲Āak┢┬cĀek┨┪;䁻;䁛Āes┱┳;榋lĀdu┹┻;榏;榍Ȁaeuy╆╋╖╘ron;䄾Ādi═╔il;䄼ìࢰâ┩;䐻Ȁcqrs╣╦╭╽a;椶uoĀ;rนᝆĀdu╲╷har;楧shar;楋h;憲ʀ;fgqs▋▌উ◳◿扤tʀahlrt▘▤▷◂◨rrowĀ;t࢙□aé⓶arpoonĀdu▯▴own»њp»०eftarrows;懇ightƀahs◍◖◞rrowĀ;sࣴࢧarpoonóquigarro÷⇰hreetimes;拋ƀ;qs▋ও◺lanôবʀ;cdgsব☊☍☝☨c;檨otĀ;o☔☕橿Ā;r☚☛檁;檃Ā;e☢☥쀀⋚︀s;檓ʀadegs☳☹☽♉♋pproøⓆot;拖qĀgq♃♅ôউgtò⒌ôছiíলƀilr♕࣡♚sht;楼;쀀𝔩Ā;Eজ♣;檑š♩♶rĀdu▲♮Ā;l॥♳;楪lk;斄cy;䑙ʀ;achtੈ⚈⚋⚑⚖rò◁orneòᴈard;楫ri;旺Āio⚟⚤dot;䅀ustĀ;a⚬⚭掰che»⚭ȀEaes⚻⚽⛉⛔;扨pĀ;p⛃⛄檉rox»⛄Ā;q⛎⛏檇Ā;q⛎⚻im;拦Ѐabnoptwz⛩⛴⛷✚✯❁❇❐Ānr⛮⛱g;柬r;懽rëࣁgƀlmr⛿✍✔eftĀar০✇ightá৲apsto;柼ightá৽parrowĀlr✥✩efô⓭ight;憬ƀafl✶✹✽r;榅;쀀𝕝us;樭imes;樴š❋❏st;戗áፎƀ;ef❗❘᠀旊nge»❘arĀ;l❤❥䀨t;榓ʀachmt❳❶❼➅➇ròࢨorneòᶌarĀ;d➃;業;怎ri;抿̀achiqt➘➝ੀ➢➮➻quo;怹r;쀀𝓁mƀ;egল➪➬;檍;檏Ābu┪➳oĀ;rฟ➹;怚rok;䅂萀<;cdhilqrࠫ⟒☹⟜⟠⟥⟪⟰Āci⟗⟙;檦r;橹reå◲mes;拉arr;楶uest;橻ĀPi⟵⟹ar;榖ƀ;ef⠀भ旃rĀdu⠇⠍shar;楊har;楦Āen⠗⠡rtneqq;쀀≨︀Å⠞܀Dacdefhilnopsu⡀⡅⢂⢎⢓⢠⢥⢨⣚⣢⣤ઃ⣳⤂Dot;戺Ȁclpr⡎⡒⡣⡽r耻¯䂯Āet⡗⡙;時Ā;e⡞⡟朠se»⡟Ā;sျ⡨toȀ;dluျ⡳⡷⡻owîҌefôएðᏑker;斮Āoy⢇⢌mma;権;䐼ash;怔asuredangle»ᘦr;쀀𝔪o;愧ƀcdn⢯⢴⣉ro耻µ䂵Ȁ;acdᑤ⢽⣀⣄sôᚧir;櫰ot肻·Ƶusƀ;bd⣒ᤃ⣓戒Ā;uᴼ⣘;横ţ⣞⣡p;櫛ò−ðઁĀdp⣩⣮els;抧f;쀀𝕞Āct⣸⣽r;쀀𝓂pos»ᖝƀ;lm⤉⤊⤍䎼timap;抸ఀGLRVabcdefghijlmoprstuvw⥂⥓⥾⦉⦘⧚⧩⨕⨚⩘⩝⪃⪕⪤⪨⬄⬇⭄⭿⮮ⰴⱧⱼ⳩Āgt⥇⥋;쀀⋙̸Ā;v⥐쀀≫⃒ƀelt⥚⥲⥶ftĀar⥡⥧rrow;懍ightarrow;懎;쀀⋘̸Ā;v⥻ే쀀≪⃒ightarrow;懏ĀDd⦎⦓ash;抯ash;抮ʀbcnpt⦣⦧⦬⦱⧌la»˞ute;䅄g;쀀∠⃒ʀ;Eiop⦼⧀⧅⧈;쀀⩰̸d;쀀≋̸s;䅉roøurĀ;a⧓⧔普lĀ;s⧓ସdz⧟\0⧣p肻 ଷmpĀ;e௹ఀʀaeouy⧴⧾⨃⨐⨓ǰ⧹\0⧻;橃on;䅈dil;䅆ngĀ;dൾ⨊ot;쀀⩭̸p;橂;䐽ash;怓;Aadqsxஒ⨩⨭⨻⩁⩅⩐rr;懗rĀhr⨳⨶k;椤Ā;oᏲᏰot;쀀≐̸uiöୣĀei⩊⩎ar;椨íistĀ;sடr;쀀𝔫ȀEest⩦⩹⩼ƀ;qs⩭ƀ;qs⩴lanôií௪Ā;rஶ⪁»ஷƀAap⪊⪍⪑rò⥱rr;憮ar;櫲ƀ;svྍ⪜ྌĀ;d⪡⪢拼;拺cy;䑚AEadest⪷⪺⪾⫂⫅⫶⫹rò⥦;쀀≦̸rr;憚r;急Ȁ;fqs⫎⫣⫯tĀar⫔⫙rro÷⫁ightarro÷⪐ƀ;qs⪺⫪lanôౕĀ;sౕ⫴»శiíౝĀ;rవ⫾iĀ;eచథiäඐĀpt⬌⬑f;쀀𝕟膀¬;in⬙⬚⬶䂬nȀ;Edvஉ⬤⬨⬮;쀀⋹̸ot;쀀⋵̸ǡஉ⬳⬵;拷;拶iĀ;vಸ⬼ǡಸ⭁⭃;拾;拽ƀaor⭋⭣⭩rȀ;ast⭕⭚⭟lleìl;쀀⫽⃥;쀀∂̸lint;樔ƀ;ceಒ⭰⭳uåಥĀ;cಘ⭸Ā;eಒ⭽ñಘȀAait⮈⮋⮝⮧rò⦈rrƀ;cw⮔⮕⮙憛;쀀⤳̸;쀀↝̸ghtarrow»⮕riĀ;eೋೖchimpqu⮽⯍⯙⬄⯤⯯Ȁ;cerല⯆ഷ⯉uå;쀀𝓃ortɭ⬅\0\0⯖ará⭖mĀ;e൮⯟Ā;q൴൳suĀbp⯫⯭ååഋƀbcp⯶ⰑⰙȀ;Ees⯿ⰀഢⰄ抄;쀀⫅̸etĀ;eഛⰋqĀ;qണⰀcĀ;eലⰗñസȀ;EesⰢⰣൟⰧ抅;쀀⫆̸etĀ;e൘ⰮqĀ;qൠⰣȀgilrⰽⰿⱅⱇìௗlde耻ñ䃱çృiangleĀlrⱒⱜeftĀ;eచⱚñదightĀ;eೋⱥñĀ;mⱬⱭ䎽ƀ;esⱴⱵⱹ䀣ro;愖p;怇ҀDHadgilrsⲏⲔⲙⲞⲣⲰⲶⳓⳣash;抭arr;椄p;쀀≍⃒ash;抬ĀetⲨⲬ;쀀≥⃒;쀀>⃒nfin;槞ƀAetⲽⳁⳅrr;椂;쀀≤⃒Ā;rⳊⳍ쀀<⃒ie;쀀⊴⃒ĀAtⳘⳜrr;椃rie;쀀⊵⃒im;쀀∼⃒ƀAan⳰ⴂrr;懖rĀhr⳺⳽k;椣Ā;oᏧᏥear;椧ቓ᪕\0\0\0\0\0\0\0\0\0\0\0\0\0ⴭ\0ⴸⵈⵠⵥⶄᬇ\0\0ⶍⶫ\0ⷈⷎ\0ⷜ⸙⸫⸾⹃Ācsⴱ᪗ute耻ó䃳ĀiyⴼⵅrĀ;cⵂ耻ô䃴;䐾ʀabios᪠ⵒⵗLjⵚlac;䅑v;樸old;榼lig;䅓Ācrir;榿;쀀𝔬ͯ\0\0\0ⶂn;䋛ave耻ò䃲;槁Ābmⶈ෴ar;榵Ȁacitⶕⶥⶨrò᪀Āirⶠr;榾oss;榻nå๒;槀ƀaeiⶱⶵⶹcr;䅍ga;䏉ƀcdnⷀⷅǍron;䎿;榶pf;쀀𝕠ƀaelⷔǒr;榷rp;榹;adiosvⷪⷫⷮ⸈⸍⸐⸖戨rò᪆Ȁ;efmⷷⷸ⸂⸅橝rĀ;oⷾⷿ愴f»ⷿ耻ª䂪耻º䂺gof;抶r;橖lope;橗;橛ƀclo⸟⸡⸧ò⸁ash耻ø䃸l;折iŬⸯ⸴de耻õ䃵esĀ;aǛ⸺s;樶ml耻ö䃶bar;挽ૡ\0\0⺀⺝\0⺢⺹\0\0⻋ຜ\0⼓\0\0⼫⾼\0⿈rȀ;astЃ脀¶;l䂶leìЃɩ\0\0m;櫳;櫽y;䐿rʀcimpt⺋⺏⺓ᡥ⺗nt;䀥od;䀮il;怰enk;怱r;쀀𝔭ƀimo⺨⺰⺴Ā;v⺭⺮䏆;䏕maô੶ne;明ƀ;tv⺿⻀⻈䏀chfork»´;䏖Āau⻏⻟nĀck⻕⻝kĀ;h⇴⻛;愎ö⇴sҀ;abcdemst⻳ᤈ⼄⼆⼊⼎䀫cir;樣ir;樢Āouᵀ⼂;樥;橲n肻±ຝim;樦wo;樧ƀipu⼙⼠⼥ntint;樕f;쀀𝕡nd耻£䂣Ԁ;Eaceinosu່⼿⽁⽄⽇⾁⾉⾒⽾⾶;檳p;檷uå໙Ā;c໎⽌̀;acens່⽙⽟⽦⽨⽾pproø⽃urlyeñ໙ñ໎ƀaes⽯⽶⽺pprox;檹qq;檵im;拨iíໟmeĀ;s⾈ຮ怲ƀEas⽸⾐⽺ð⽵ƀdfp⾙⾯ƀals⾠⾥⾪lar;挮ine;挒urf;挓Ā;t⾴ïrel;抰Āci⿀⿅r;쀀𝓅;䏈ncsp;怈̀fiopsu⋢⿱r;쀀𝔮pf;쀀𝕢rime;恗cr;쀀𝓆ƀaeo⿸〉〓tĀei々rnionóڰnt;樖stĀ;e【】䀿ñἙô༔ABHabcdefhilmnoprstuxけさすムㄎㄫㅇㅢㅲㆎ㈆㈕㈤㈩㉘㉮㉲㊐㊰㊷ƀartぇおがròႳòϝail;検aròᱥar;楤cdenqrtとふへみわゔヌĀeuねぱ;쀀∽̱te;䅕iãᅮmptyv;榳gȀ;del࿑らるろ;榒;榥å࿑uo耻»䂻rր;abcfhlpstwガクシスゼゾダッデナp;極Ā;fゴs;椠;椳s;椞ë≝ð✮l;楅im;楴l;憣;憝Āaiパフil;椚oĀ;nホボ戶aló༞ƀabrョリヮrò៥rk;杳ĀakンヽcĀekヹ・;䁽;䁝Āes;榌lĀduㄊㄌ;榎;榐Ȁaeuyㄗㄜㄧㄩron;䅙Ādiㄡㄥil;䅗ìâヺ;䑀Ȁclqsㄴㄷㄽㅄa;椷dhar;楩uoĀ;rȎȍh;憳ƀacgㅎㅟངlȀ;ipsླྀㅘㅛႜnåႻarôྩt;断ƀilrㅩဣㅮsht;楽;쀀𝔯ĀaoㅷㆆrĀduㅽㅿ»ѻĀ;l႑ㆄ;楬Ā;vㆋㆌ䏁;䏱ƀgns㆕ㇹㇼht̀ahlrstㆤㆰ㇂㇘rrowĀ;tㆭaéトarpoonĀduㆻㆿowîㅾp»႒eftĀah㇊㇐rrowóarpoonóՑightarrows;應quigarro÷ニhreetimes;拌g;䋚ingdotseñἲƀahm㈍㈐㈓ròaòՑ;怏oustĀ;a㈞掱che»mid;櫮Ȁabpt㈲㈽㉀㉒Ānr㈷㈺g;柭r;懾rëဃƀafl㉇㉊㉎r;榆;쀀𝕣us;樮imes;樵Āap㉝㉧rĀ;g㉣㉤䀩t;榔olint;樒arò㇣Ȁachq㉻㊀Ⴜ㊅quo;怺r;쀀𝓇Ābu・㊊oĀ;rȔȓƀhir㊗㊛㊠reåㇸmes;拊iȀ;efl㊪ၙᠡ㊫方tri;槎luhar;楨;愞ൡ㋕㋛㋟㌬㌸㍱\0㍺㎤\0\0㏬㏰\0㐨㑈㑚㒭㒱㓊㓱\0㘖\0\0㘳cute;䅛quï➺Ԁ;Eaceinpsyᇭ㋳㋵㋿㌂㌋㌏㌟㌦㌩;檴ǰ㋺\0㋼;檸on;䅡uåᇾĀ;dᇳ㌇il;䅟rc;䅝ƀEas㌖㌘㌛;檶p;檺im;择olint;樓iíሄ;䑁otƀ;be㌴ᵇ㌵担;橦Aacmstx㍆㍊㍗㍛㍞㍣㍭rr;懘rĀhr㍐㍒ë∨Ā;oਸ਼t耻§䂧i;䀻war;椩mĀin㍩ðnuóñt;朶rĀ;o㍶⁕쀀𝔰Ȁacoy㎂㎆㎑㎠rp;景Āhy㎋㎏cy;䑉;䑈rtɭ㎙\0\0㎜iäᑤaraì耻䂭Āgm㎨㎴maƀ;fv㎱㎲㎲䏃;䏂Ѐ;deglnprካ㏅㏉㏎㏖㏞㏡㏦ot;橪Ā;qኰĀ;E㏓㏔檞;檠Ā;E㏛㏜檝;檟e;扆lus;樤arr;楲aròᄽȀaeit㏸㐈㐏㐗Āls㏽㐄lsetmé㍪hp;樳parsl;槤Ādlᑣ㐔e;挣Ā;e㐜㐝檪Ā;s㐢㐣檬;쀀⪬︀ƀflp㐮㐳㑂tcy;䑌Ā;b㐸㐹䀯Ā;a㐾㐿槄r;挿f;쀀𝕤aĀdr㑍ЂesĀ;u㑔㑕晠it»㑕ƀcsu㑠㑹㒟Āau㑥㑯pĀ;sᆈ㑫;쀀⊓︀pĀ;sᆴ㑵;쀀⊔︀uĀbp㑿㒏ƀ;esᆗᆜ㒆etĀ;eᆗ㒍ñᆝƀ;esᆨᆭ㒖etĀ;eᆨ㒝ñᆮƀ;afᅻ㒦ְrť㒫ֱ»ᅼaròᅈȀcemt㒹㒾㓂㓅r;쀀𝓈tmîñiì㐕aræᆾĀar㓎㓕rĀ;f㓔ឿ昆Āan㓚㓭ightĀep㓣㓪psiloîỠhé⺯s»⡒ʀbcmnp㓻㕞ሉ㖋㖎Ҁ;Edemnprs㔎㔏㔑㔕㔞㔣㔬㔱㔶抂;櫅ot;檽Ā;dᇚ㔚ot;櫃ult;櫁ĀEe㔨㔪;櫋;把lus;檿arr;楹ƀeiu㔽㕒㕕tƀ;en㔎㕅㕋qĀ;qᇚ㔏eqĀ;q㔫㔨m;櫇Ābp㕚㕜;櫕;櫓c̀;acensᇭ㕬㕲㕹㕻㌦pproø㋺urlyeñᇾñᇳƀaes㖂㖈㌛pproø㌚qñ㌗g;晪ڀ123;Edehlmnps㖩㖬㖯ሜ㖲㖴㗀㗉㗕㗚㗟㗨㗭耻¹䂹耻²䂲耻³䂳;櫆Āos㖹㖼t;檾ub;櫘Ā;dሢ㗅ot;櫄sĀou㗏㗒l;柉b;櫗arr;楻ult;櫂ĀEe㗤㗦;櫌;抋lus;櫀ƀeiu㗴㘉㘌tƀ;enሜ㗼㘂qĀ;qሢ㖲eqĀ;q㗧㗤m;櫈Ābp㘑㘓;櫔;櫖ƀAan㘜㘠㘭rr;懙rĀhr㘦㘨ë∮Ā;oਫwar;椪lig耻ß䃟㙑㙝㙠ዎ㙳㙹\0㙾㛂\0\0\0\0\0㛛㜃\0㜉㝬\0\0\0㞇ɲ㙖\0\0㙛get;挖;䏄rëƀaey㙦㙫㙰ron;䅥dil;䅣;䑂lrec;挕r;쀀𝔱Ȁeiko㚆㚝㚵㚼Dz㚋\0㚑eĀ4fኄኁaƀ;sv㚘㚙㚛䎸ym;䏑Ācn㚢㚲kĀas㚨㚮pproøim»ኬsðኞĀas㚺㚮ðrn耻þ䃾Ǭ̟㛆⋧es膀×;bd㛏㛐㛘䃗Ā;aᤏ㛕r;樱;樰ƀeps㛡㛣㜀á⩍Ȁ;bcf҆㛬㛰㛴ot;挶ir;櫱Ā;o㛹㛼쀀𝕥rk;櫚á㍢rime;怴ƀaip㜏㜒㝤dåቈadempst㜡㝍㝀㝑㝗㝜㝟ngleʀ;dlqr㜰㜱㜶㝀㝂斵own»ᶻeftĀ;e⠀㜾ñम;扜ightĀ;e㊪㝋ñၚot;旬inus;樺lus;樹b;槍ime;樻ezium;揢ƀcht㝲㝽㞁Āry㝷㝻;쀀𝓉;䑆cy;䑛rok;䅧Āio㞋㞎xôheadĀlr㞗㞠eftarro÷ࡏightarrow»ཝऀAHabcdfghlmoprstuw㟐㟓㟗㟤㟰㟼㠎㠜㠣㠴㡑㡝㡫㢩㣌㣒㣪㣶ròϭar;楣Ācr㟜㟢ute耻ú䃺òᅐrǣ㟪\0㟭y;䑞ve;䅭Āiy㟵㟺rc耻û䃻;䑃ƀabh㠃㠆㠋ròᎭlac;䅱aòᏃĀir㠓㠘sht;楾;쀀𝔲rave耻ù䃹š㠧㠱rĀlr㠬㠮»ॗ»ႃlk;斀Āct㠹㡍ɯ㠿\0\0㡊rnĀ;e㡅㡆挜r»㡆op;挏ri;旸Āal㡖㡚cr;䅫肻¨͉Āgp㡢㡦on;䅳f;쀀𝕦̀adhlsuᅋ㡸㡽፲㢑㢠ownáᎳarpoonĀlr㢈㢌efô㠭ighô㠯iƀ;hl㢙㢚㢜䏅»ᏺon»㢚parrows;懈ƀcit㢰㣄㣈ɯ㢶\0\0㣁rnĀ;e㢼㢽挝r»㢽op;挎ng;䅯ri;旹cr;쀀𝓊ƀdir㣙㣝㣢ot;拰lde;䅩iĀ;f㜰㣨»᠓Āam㣯㣲rò㢨l耻ü䃼angle;榧ހABDacdeflnoprsz㤜㤟㤩㤭㦵㦸㦽㧟㧤㧨㧳㧹㧽㨁㨠ròϷarĀ;v㤦㤧櫨;櫩asèϡĀnr㤲㤷grt;榜eknprst㓣㥆㥋㥒㥝㥤㦖appá␕othinçẖƀhir㓫⻈㥙opô⾵Ā;hᎷ㥢ïㆍĀiu㥩㥭gmá㎳Ābp㥲㦄setneqĀ;q㥽㦀쀀⊊︀;쀀⫋︀setneqĀ;q㦏㦒쀀⊋︀;쀀⫌︀Āhr㦛㦟etá㚜iangleĀlr㦪㦯eft»थight»ၑy;䐲ash»ံƀelr㧄㧒㧗ƀ;beⷪ㧋㧏ar;抻q;扚lip;拮Ābt㧜ᑨaòᑩr;쀀𝔳tré㦮suĀbp㧯㧱»ജ»൙pf;쀀𝕧roðtré㦴Ācu㨆㨋r;쀀𝓋Ābp㨐㨘nĀEe㦀㨖»㥾nĀEe㦒㨞»㦐igzag;榚cefoprs㨶㨻㩖㩛㩔㩡㩪irc;䅵Ādi㩀㩑Ābg㩅㩉ar;機eĀ;qᗺ㩏;扙erp;愘r;쀀𝔴pf;쀀𝕨Ā;eᑹ㩦atèᑹcr;쀀𝓌ૣណ㪇\0㪋\0㪐㪛\0\0㪝㪨㪫㪯\0\0㫃㫎\0㫘ៜtré៑r;쀀𝔵ĀAa㪔㪗ròσrò৶;䎾ĀAa㪡㪤ròθrò৫að✓is;拻ƀdptឤ㪵㪾Āfl㪺ឩ;쀀𝕩imåឲĀAa㫇㫊ròώròਁĀcq㫒ីr;쀀𝓍Āpt៖㫜ré។Ѐacefiosu㫰㫽㬈㬌㬑㬕㬛㬡cĀuy㫶㫻te耻ý䃽;䑏Āiy㬂㬆rc;䅷;䑋n耻¥䂥r;쀀𝔶cy;䑗pf;쀀𝕪cr;쀀𝓎Ācm㬦㬩y;䑎l耻ÿ䃿Ԁacdefhiosw㭂㭈㭔㭘㭤㭩㭭㭴㭺㮀cute;䅺Āay㭍㭒ron;䅾;䐷ot;䅼Āet㭝㭡træᕟa;䎶r;쀀𝔷cy;䐶grarr;懝pf;쀀𝕫cr;쀀𝓏Ājn㮅㮇;怍j;怌'.split("").map((function(e) {
+ return e.charCodeAt(0)
+ })))
+}));
+qe(Ao);
+var go = Ke((function(e, t) {
+ Object.defineProperty(t, "__esModule", {
+ value: !0
+ }), t.default = new Uint16Array("Ȁaglq\tɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map((function(e) {
+ return e.charCodeAt(0)
+ })))
+}));
+qe(go);
+var No = Ke((function(e, t) {
+ var n;
+ Object.defineProperty(t, "__esModule", {
+ value: !0
+ }), t.replaceCodePoint = t.fromCodePoint = void 0;
+ var r = new Map([
+ [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 i(e) {
+ var t;
+ return e >= 55296 && e <= 57343 || e > 1114111 ? 65533 : null !== (t = r.get(e)) && void 0 !== t ? t : e
+ }
+ t.fromCodePoint = null !== (n = String.fromCodePoint) && void 0 !== n ? n : function(e) {
+ var t = "";
+ return e > 65535 && (e -= 65536, t += String.fromCharCode(e >>> 10 & 1023 | 55296), e = 56320 | 1023 & e), t += String.fromCharCode(e)
+ }, t.replaceCodePoint = i, t.default = function(e) {
+ return (0, t.fromCodePoint)(i(e))
+ }
+}));
+qe(No), No.replaceCodePoint, No.fromCodePoint;
+var Co = Ao,
+ Io = go,
+ So = No,
+ bo = Ke((function(e, t) {
+ var n = Ge && Ge.__importDefault || function(e) {
+ return e && e.__esModule ? e : {
+ default: e
+ }
+ };
+ Object.defineProperty(t, "__esModule", {
+ value: !0
+ }), t.decodeXML = t.decodeHTMLStrict = t.decodeHTML = t.determineBranch = t.BinTrieFlags = t.fromCodePoint = t.replaceCodePoint = t.decodeCodePoint = t.xmlDecodeTree = t.htmlDecodeTree = void 0;
+ var r = n(Co);
+ t.htmlDecodeTree = r.default;
+ var i = n(Io);
+ t.xmlDecodeTree = i.default;
+ var s = n(So);
+ t.decodeCodePoint = s.default;
+ var a, o, c = So;
+
+ function l(e) {
+ return function(t, n) {
+ for (var r = "", i = 0, c = 0;
+ (c = t.indexOf("&", c)) >= 0;)
+ if (r += t.slice(i, c), i = c, c += 1, t.charCodeAt(c) !== a.NUM) {
+ for (var l = 0, u = 1, p = 0, f = e[p]; c < t.length && !((p = h(e, f, p + 1, t.charCodeAt(c))) < 0); c++, u++) {
+ var d = (f = e[p]) & o.VALUE_LENGTH;
+ if (d) {
+ var E;
+ if (n && t.charCodeAt(c) !== a.SEMI || (l = p, u = 0), 0 === (E = (d >> 14) - 1)) break;
+ p += E
+ }
+ }
+ if (0 !== l) r += 1 === (E = (e[l] & o.VALUE_LENGTH) >> 14) ? String.fromCharCode(e[l] & ~o.VALUE_LENGTH) : 2 === E ? String.fromCharCode(e[l + 1]) : String.fromCharCode(e[l + 1], e[l + 2]), i = c - u + 1
+ } else {
+ var m = c + 1,
+ T = 10,
+ _ = t.charCodeAt(m);
+ (_ | a.To_LOWER_BIT) === a.LOWER_X && (T = 16, c += 1, m += 1);
+ do {
+ _ = t.charCodeAt(++c)
+ } while (_ >= a.ZERO && _ <= a.NINE || 16 === T && (_ | a.To_LOWER_BIT) >= a.LOWER_A && (_ | a.To_LOWER_BIT) <= a.LOWER_F);
+ if (m !== c) {
+ var A = t.substring(m, c),
+ g = parseInt(A, T);
+ if (t.charCodeAt(c) === a.SEMI) c += 1;
+ else if (n) continue;
+ r += (0, s.default)(g), i = c
+ }
+ } return r + t.slice(i)
+ }
+ }
+
+ function h(e, t, n, r) {
+ var i = (t & o.BRANCH_LENGTH) >> 7,
+ s = t & o.JUMP_TABLE;
+ if (0 === i) return 0 !== s && r === s ? n : -1;
+ if (s) {
+ var a = r - s;
+ return a < 0 || a >= i ? -1 : e[n + a] - 1
+ }
+ for (var c = n, l = c + i - 1; c <= l;) {
+ var h = c + l >>> 1,
+ u = e[h];
+ if (u < r) c = h + 1;
+ else {
+ if (!(u > r)) return e[h + i];
+ l = h - 1
+ }
+ }
+ return -1
+ }
+ Object.defineProperty(t, "replaceCodePoint", {
+ enumerable: !0,
+ get: function() {
+ return c.replaceCodePoint
+ }
+ }), Object.defineProperty(t, "fromCodePoint", {
+ enumerable: !0,
+ get: function() {
+ return c.fromCodePoint
+ }
+ }),
+ function(e) {
+ e[e.NUM = 35] = "NUM", e[e.SEMI = 59] = "SEMI", e[e.ZERO = 48] = "ZERO", e[e.NINE = 57] = "NINE", e[e.LOWER_A = 97] = "LOWER_A", e[e.LOWER_F = 102] = "LOWER_F", e[e.LOWER_X = 120] = "LOWER_X", e[e.To_LOWER_BIT = 32] = "To_LOWER_BIT"
+ }(a || (a = {})),
+ function(e) {
+ e[e.VALUE_LENGTH = 49152] = "VALUE_LENGTH", e[e.BRANCH_LENGTH = 16256] = "BRANCH_LENGTH", e[e.JUMP_TABLE = 127] = "JUMP_TABLE"
+ }(o = t.BinTrieFlags || (t.BinTrieFlags = {})), t.determineBranch = h;
+ var u = l(r.default),
+ p = l(i.default);
+ t.decodeHTML = function(e) {
+ return u(e, !1)
+ }, t.decodeHTMLStrict = function(e) {
+ return u(e, !0)
+ }, t.decodeXML = function(e) {
+ return p(e, !0)
+ }
+ }));
+qe(bo), bo.decodeXML, bo.decodeHTMLStrict, bo.decodeHTML;
+var Oo = bo.determineBranch,
+ yo = bo.BinTrieFlags,
+ Lo = bo.fromCodePoint,
+ ko = bo.replaceCodePoint;
+bo.decodeCodePoint;
+var vo, Do, Ro, Mo, Po, xo = bo.xmlDecodeTree,
+ wo = bo.htmlDecodeTree;
+! function(e) {
+ e.HTML = "http://www.w3.org/1999/xhtml", e.MATHML = "http://www.w3.org/1998/Math/MathML", e.SVG = "http://www.w3.org/2000/svg", e.XLINK = "http://www.w3.org/1999/xlink", e.XML = "http://www.w3.org/XML/1998/namespace", e.XMLNS = "http://www.w3.org/2000/xmlns/"
+}(vo = vo || (vo = {})),
+function(e) {
+ e.TYPE = "type", e.ACTION = "action", e.ENCODING = "encoding", e.PROMPT = "prompt", e.NAME = "name", e.COLOR = "color", e.FACE = "face", e.SIZE = "size"
+}(Do = Do || (Do = {})),
+function(e) {
+ e.NO_QUIRKS = "no-quirks", e.QUIRKS = "quirks", e.LIMITED_QUIRKS = "limited-quirks"
+}(Ro = Ro || (Ro = {})),
+function(e) {
+ e.A = "a", e.ADDRESS = "address", e.ANNOTATION_XML = "annotation-xml", e.APPLET = "applet", e.AREA = "area", e.ARTICLE = "article", e.ASIDE = "aside", e.B = "b", e.BASE = "base", e.BASEFONT = "basefont", e.BGSOUND = "bgsound", e.BIG = "big", e.BLOCKQUOTE = "blockquote", e.BODY = "body", e.BR = "br", e.BUTTON = "button", e.CAPTION = "caption", e.CENTER = "center", e.CODE = "code", e.COL = "col", e.COLGROUP = "colgroup", e.DD = "dd", e.DESC = "desc", e.DETAILS = "details", e.DIALOG = "dialog", e.DIR = "dir", e.DIV = "div", e.DL = "dl", e.DT = "dt", e.EM = "em", e.EMBED = "embed", e.FIELDSET = "fieldset", e.FIGCAPTION = "figcaption", e.FIGURE = "figure", e.FONT = "font", e.FOOTER = "footer", e.FOREIGN_OBJECT = "foreignObject", e.FORM = "form", e.FRAME = "frame", e.FRAMESET = "frameset", e.H1 = "h1", e.H2 = "h2", e.H3 = "h3", e.H4 = "h4", e.H5 = "h5", e.H6 = "h6", e.HEAD = "head", e.HEADER = "header", e.HGROUP = "hgroup", e.HR = "hr", e.HTML = "html", e.I = "i", e.IMG = "img", e.IMAGE = "image", e.INPUT = "input", e.IFRAME = "iframe", e.KEYGEN = "keygen", e.LABEL = "label", e.LI = "li", e.LINK = "link", e.LISTING = "listing", e.MAIN = "main", e.MALIGNMARK = "malignmark", e.MARQUEE = "marquee", e.MATH = "math", e.MENU = "menu", e.META = "meta", e.MGLYPH = "mglyph", e.MI = "mi", e.MO = "mo", e.MN = "mn", e.MS = "ms", e.MTEXT = "mtext", e.NAV = "nav", e.NOBR = "nobr", e.NOFRAMES = "noframes", e.NOEMBED = "noembed", e.NOSCRIPT = "noscript", e.OBJECT = "object", e.OL = "ol", e.OPTGROUP = "optgroup", e.OPTION = "option", e.P = "p", e.PARAM = "param", e.PLAINTEXT = "plaintext", e.PRE = "pre", e.RB = "rb", e.RP = "rp", e.RT = "rt", e.RTC = "rtc", e.RUBY = "ruby", e.S = "s", e.SCRIPT = "script", e.SECTION = "section", e.SELECT = "select", e.SOURCE = "source", e.SMALL = "small", e.SPAN = "span", e.STRIKE = "strike", e.STRONG = "strong", e.STYLE = "style", e.SUB = "sub", e.SUMMARY = "summary", e.SUP = "sup", e.TABLE = "table", e.TBODY = "tbody", e.TEMPLATE = "template", e.TEXTAREA = "textarea", e.TFOOT = "tfoot", e.TD = "td", e.TH = "th", e.THEAD = "thead", e.TITLE = "title", e.TR = "tr", e.TRACK = "track", e.TT = "tt", e.U = "u", e.UL = "ul", e.SVG = "svg", e.VAR = "var", e.WBR = "wbr", e.XMP = "xmp"
+}(Mo = Mo || (Mo = {})),
+function(e) {
+ e[e.UNKNOWN = 0] = "UNKNOWN", e[e.A = 1] = "A", e[e.ADDRESS = 2] = "ADDRESS", e[e.ANNOTATION_XML = 3] = "ANNOTATION_XML", e[e.APPLET = 4] = "APPLET", e[e.AREA = 5] = "AREA", e[e.ARTICLE = 6] = "ARTICLE", e[e.ASIDE = 7] = "ASIDE", e[e.B = 8] = "B", e[e.BASE = 9] = "BASE", e[e.BASEFONT = 10] = "BASEFONT", e[e.BGSOUND = 11] = "BGSOUND", e[e.BIG = 12] = "BIG", e[e.BLOCKQUOTE = 13] = "BLOCKQUOTE", e[e.BODY = 14] = "BODY", e[e.BR = 15] = "BR", e[e.BUTTON = 16] = "BUTTON", e[e.CAPTION = 17] = "CAPTION", e[e.CENTER = 18] = "CENTER", e[e.CODE = 19] = "CODE", e[e.COL = 20] = "COL", e[e.COLGROUP = 21] = "COLGROUP", e[e.DD = 22] = "DD", e[e.DESC = 23] = "DESC", e[e.DETAILS = 24] = "DETAILS", e[e.DIALOG = 25] = "DIALOG", e[e.DIR = 26] = "DIR", e[e.DIV = 27] = "DIV", e[e.DL = 28] = "DL", e[e.DT = 29] = "DT", e[e.EM = 30] = "EM", e[e.EMBED = 31] = "EMBED", e[e.FIELDSET = 32] = "FIELDSET", e[e.FIGCAPTION = 33] = "FIGCAPTION", e[e.FIGURE = 34] = "FIGURE", e[e.FONT = 35] = "FONT", e[e.FOOTER = 36] = "FOOTER", e[e.FOREIGN_OBJECT = 37] = "FOREIGN_OBJECT", e[e.FORM = 38] = "FORM", e[e.FRAME = 39] = "FRAME", e[e.FRAMESET = 40] = "FRAMESET", e[e.H1 = 41] = "H1", e[e.H2 = 42] = "H2", e[e.H3 = 43] = "H3", e[e.H4 = 44] = "H4", e[e.H5 = 45] = "H5", e[e.H6 = 46] = "H6", e[e.HEAD = 47] = "HEAD", e[e.HEADER = 48] = "HEADER", e[e.HGROUP = 49] = "HGROUP", e[e.HR = 50] = "HR", e[e.HTML = 51] = "HTML", e[e.I = 52] = "I", e[e.IMG = 53] = "IMG", e[e.IMAGE = 54] = "IMAGE", e[e.INPUT = 55] = "INPUT", e[e.IFRAME = 56] = "IFRAME", e[e.KEYGEN = 57] = "KEYGEN", e[e.LABEL = 58] = "LABEL", e[e.LI = 59] = "LI", e[e.LINK = 60] = "LINK", e[e.LISTING = 61] = "LISTING", e[e.MAIN = 62] = "MAIN", e[e.MALIGNMARK = 63] = "MALIGNMARK", e[e.MARQUEE = 64] = "MARQUEE", e[e.MATH = 65] = "MATH", e[e.MENU = 66] = "MENU", e[e.META = 67] = "META", e[e.MGLYPH = 68] = "MGLYPH", e[e.MI = 69] = "MI", e[e.MO = 70] = "MO", e[e.MN = 71] = "MN", e[e.MS = 72] = "MS", e[e.MTEXT = 73] = "MTEXT", e[e.NAV = 74] = "NAV", e[e.NOBR = 75] = "NOBR", e[e.NOFRAMES = 76] = "NOFRAMES", e[e.NOEMBED = 77] = "NOEMBED", e[e.NOSCRIPT = 78] = "NOSCRIPT", e[e.OBJECT = 79] = "OBJECT", e[e.OL = 80] = "OL", e[e.OPTGROUP = 81] = "OPTGROUP", e[e.OPTION = 82] = "OPTION", e[e.P = 83] = "P", e[e.PARAM = 84] = "PARAM", e[e.PLAINTEXT = 85] = "PLAINTEXT", e[e.PRE = 86] = "PRE", e[e.RB = 87] = "RB", e[e.RP = 88] = "RP", e[e.RT = 89] = "RT", e[e.RTC = 90] = "RTC", e[e.RUBY = 91] = "RUBY", e[e.S = 92] = "S", e[e.SCRIPT = 93] = "SCRIPT", e[e.SECTION = 94] = "SECTION", e[e.SELECT = 95] = "SELECT", e[e.SOURCE = 96] = "SOURCE", e[e.SMALL = 97] = "SMALL", e[e.SPAN = 98] = "SPAN", e[e.STRIKE = 99] = "STRIKE", e[e.STRONG = 100] = "STRONG", e[e.STYLE = 101] = "STYLE", e[e.SUB = 102] = "SUB", e[e.SUMMARY = 103] = "SUMMARY", e[e.SUP = 104] = "SUP", e[e.TABLE = 105] = "TABLE", e[e.TBODY = 106] = "TBODY", e[e.TEMPLATE = 107] = "TEMPLATE", e[e.TEXTAREA = 108] = "TEXTAREA", e[e.TFOOT = 109] = "TFOOT", e[e.TD = 110] = "TD", e[e.TH = 111] = "TH", e[e.THEAD = 112] = "THEAD", e[e.TITLE = 113] = "TITLE", e[e.TR = 114] = "TR", e[e.TRACK = 115] = "TRACK", e[e.TT = 116] = "TT", e[e.U = 117] = "U", e[e.UL = 118] = "UL", e[e.SVG = 119] = "SVG", e[e.VAR = 120] = "VAR", e[e.WBR = 121] = "WBR", e[e.XMP = 122] = "XMP"
+}(Po = Po || (Po = {}));
+const Bo = new Map([
+ [Mo.A, Po.A],
+ [Mo.ADDRESS, Po.ADDRESS],
+ [Mo.ANNOTATION_XML, Po.ANNOTATION_XML],
+ [Mo.APPLET, Po.APPLET],
+ [Mo.AREA, Po.AREA],
+ [Mo.ARTICLE, Po.ARTICLE],
+ [Mo.ASIDE, Po.ASIDE],
+ [Mo.B, Po.B],
+ [Mo.BASE, Po.BASE],
+ [Mo.BASEFONT, Po.BASEFONT],
+ [Mo.BGSOUND, Po.BGSOUND],
+ [Mo.BIG, Po.BIG],
+ [Mo.BLOCKQUOTE, Po.BLOCKQUOTE],
+ [Mo.BODY, Po.BODY],
+ [Mo.BR, Po.BR],
+ [Mo.BUTTON, Po.BUTTON],
+ [Mo.CAPTION, Po.CAPTION],
+ [Mo.CENTER, Po.CENTER],
+ [Mo.CODE, Po.CODE],
+ [Mo.COL, Po.COL],
+ [Mo.COLGROUP, Po.COLGROUP],
+ [Mo.DD, Po.DD],
+ [Mo.DESC, Po.DESC],
+ [Mo.DETAILS, Po.DETAILS],
+ [Mo.DIALOG, Po.DIALOG],
+ [Mo.DIR, Po.DIR],
+ [Mo.DIV, Po.DIV],
+ [Mo.DL, Po.DL],
+ [Mo.DT, Po.DT],
+ [Mo.EM, Po.EM],
+ [Mo.EMBED, Po.EMBED],
+ [Mo.FIELDSET, Po.FIELDSET],
+ [Mo.FIGCAPTION, Po.FIGCAPTION],
+ [Mo.FIGURE, Po.FIGURE],
+ [Mo.FONT, Po.FONT],
+ [Mo.FOOTER, Po.FOOTER],
+ [Mo.FOREIGN_OBJECT, Po.FOREIGN_OBJECT],
+ [Mo.FORM, Po.FORM],
+ [Mo.FRAME, Po.FRAME],
+ [Mo.FRAMESET, Po.FRAMESET],
+ [Mo.H1, Po.H1],
+ [Mo.H2, Po.H2],
+ [Mo.H3, Po.H3],
+ [Mo.H4, Po.H4],
+ [Mo.H5, Po.H5],
+ [Mo.H6, Po.H6],
+ [Mo.HEAD, Po.HEAD],
+ [Mo.HEADER, Po.HEADER],
+ [Mo.HGROUP, Po.HGROUP],
+ [Mo.HR, Po.HR],
+ [Mo.HTML, Po.HTML],
+ [Mo.I, Po.I],
+ [Mo.IMG, Po.IMG],
+ [Mo.IMAGE, Po.IMAGE],
+ [Mo.INPUT, Po.INPUT],
+ [Mo.IFRAME, Po.IFRAME],
+ [Mo.KEYGEN, Po.KEYGEN],
+ [Mo.LABEL, Po.LABEL],
+ [Mo.LI, Po.LI],
+ [Mo.LINK, Po.LINK],
+ [Mo.LISTING, Po.LISTING],
+ [Mo.MAIN, Po.MAIN],
+ [Mo.MALIGNMARK, Po.MALIGNMARK],
+ [Mo.MARQUEE, Po.MARQUEE],
+ [Mo.MATH, Po.MATH],
+ [Mo.MENU, Po.MENU],
+ [Mo.META, Po.META],
+ [Mo.MGLYPH, Po.MGLYPH],
+ [Mo.MI, Po.MI],
+ [Mo.MO, Po.MO],
+ [Mo.MN, Po.MN],
+ [Mo.MS, Po.MS],
+ [Mo.MTEXT, Po.MTEXT],
+ [Mo.NAV, Po.NAV],
+ [Mo.NOBR, Po.NOBR],
+ [Mo.NOFRAMES, Po.NOFRAMES],
+ [Mo.NOEMBED, Po.NOEMBED],
+ [Mo.NOSCRIPT, Po.NOSCRIPT],
+ [Mo.OBJECT, Po.OBJECT],
+ [Mo.OL, Po.OL],
+ [Mo.OPTGROUP, Po.OPTGROUP],
+ [Mo.OPTION, Po.OPTION],
+ [Mo.P, Po.P],
+ [Mo.PARAM, Po.PARAM],
+ [Mo.PLAINTEXT, Po.PLAINTEXT],
+ [Mo.PRE, Po.PRE],
+ [Mo.RB, Po.RB],
+ [Mo.RP, Po.RP],
+ [Mo.RT, Po.RT],
+ [Mo.RTC, Po.RTC],
+ [Mo.RUBY, Po.RUBY],
+ [Mo.S, Po.S],
+ [Mo.SCRIPT, Po.SCRIPT],
+ [Mo.SECTION, Po.SECTION],
+ [Mo.SELECT, Po.SELECT],
+ [Mo.SOURCE, Po.SOURCE],
+ [Mo.SMALL, Po.SMALL],
+ [Mo.SPAN, Po.SPAN],
+ [Mo.STRIKE, Po.STRIKE],
+ [Mo.STRONG, Po.STRONG],
+ [Mo.STYLE, Po.STYLE],
+ [Mo.SUB, Po.SUB],
+ [Mo.SUMMARY, Po.SUMMARY],
+ [Mo.SUP, Po.SUP],
+ [Mo.TABLE, Po.TABLE],
+ [Mo.TBODY, Po.TBODY],
+ [Mo.TEMPLATE, Po.TEMPLATE],
+ [Mo.TEXTAREA, Po.TEXTAREA],
+ [Mo.TFOOT, Po.TFOOT],
+ [Mo.TD, Po.TD],
+ [Mo.TH, Po.TH],
+ [Mo.THEAD, Po.THEAD],
+ [Mo.TITLE, Po.TITLE],
+ [Mo.TR, Po.TR],
+ [Mo.TRACK, Po.TRACK],
+ [Mo.TT, Po.TT],
+ [Mo.U, Po.U],
+ [Mo.UL, Po.UL],
+ [Mo.SVG, Po.SVG],
+ [Mo.VAR, Po.VAR],
+ [Mo.WBR, Po.WBR],
+ [Mo.XMP, Po.XMP]
+]);
+
+function Fo(e) {
+ var t;
+ return null !== (t = Bo.get(e)) && void 0 !== t ? t : Po.UNKNOWN
+}
+const Uo = Po,
+ Ho = {
+ [vo.HTML]: new Set([Uo.ADDRESS, Uo.APPLET, Uo.AREA, Uo.ARTICLE, Uo.ASIDE, Uo.BASE, Uo.BASEFONT, Uo.BGSOUND, Uo.BLOCKQUOTE, Uo.BODY, Uo.BR, Uo.BUTTON, Uo.CAPTION, Uo.CENTER, Uo.COL, Uo.COLGROUP, Uo.DD, Uo.DETAILS, Uo.DIR, Uo.DIV, Uo.DL, Uo.DT, Uo.EMBED, Uo.FIELDSET, Uo.FIGCAPTION, Uo.FIGURE, Uo.FOOTER, Uo.FORM, Uo.FRAME, Uo.FRAMESET, Uo.H1, Uo.H2, Uo.H3, Uo.H4, Uo.H5, Uo.H6, Uo.HEAD, Uo.HEADER, Uo.HGROUP, Uo.HR, Uo.HTML, Uo.IFRAME, Uo.IMG, Uo.INPUT, Uo.LI, Uo.LINK, Uo.LISTING, Uo.MAIN, Uo.MARQUEE, Uo.MENU, Uo.META, Uo.NAV, Uo.NOEMBED, Uo.NOFRAMES, Uo.NOSCRIPT, Uo.OBJECT, Uo.OL, Uo.P, Uo.PARAM, Uo.PLAINTEXT, Uo.PRE, Uo.SCRIPT, Uo.SECTION, Uo.SELECT, Uo.SOURCE, Uo.STYLE, Uo.SUMMARY, Uo.TABLE, Uo.TBODY, Uo.TD, Uo.TEMPLATE, Uo.TEXTAREA, Uo.TFOOT, Uo.TH, Uo.THEAD, Uo.TITLE, Uo.TR, Uo.TRACK, Uo.UL, Uo.WBR, Uo.XMP]),
+ [vo.MATHML]: new Set([Uo.MI, Uo.MO, Uo.MN, Uo.MS, Uo.MTEXT, Uo.ANNOTATION_XML]),
+ [vo.SVG]: new Set([Uo.TITLE, Uo.FOREIGN_OBJECT, Uo.DESC]),
+ [vo.XLINK]: new Set,
+ [vo.XML]: new Set,
+ [vo.XMLNS]: new Set
+ };
+
+function Go(e) {
+ return e === Uo.H1 || e === Uo.H2 || e === Uo.H3 || e === Uo.H4 || e === Uo.H5 || e === Uo.H6
+}
+const Yo = new Set([Mo.STYLE, Mo.SCRIPT, Mo.XMP, Mo.IFRAME, Mo.NOEMBED, Mo.NOFRAMES, Mo.PLAINTEXT]);
+const qo = new Map([
+ [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]
+]);
+var Ko;
+! function(e) {
+ e[e.DATA = 0] = "DATA", e[e.RCDATA = 1] = "RCDATA", e[e.RAWTEXT = 2] = "RAWTEXT", e[e.SCRIPT_DATA = 3] = "SCRIPT_DATA", e[e.PLAINTEXT = 4] = "PLAINTEXT", e[e.TAG_OPEN = 5] = "TAG_OPEN", e[e.END_TAG_OPEN = 6] = "END_TAG_OPEN", e[e.TAG_NAME = 7] = "TAG_NAME", e[e.RCDATA_LESS_THAN_SIGN = 8] = "RCDATA_LESS_THAN_SIGN", e[e.RCDATA_END_TAG_OPEN = 9] = "RCDATA_END_TAG_OPEN", e[e.RCDATA_END_TAG_NAME = 10] = "RCDATA_END_TAG_NAME", e[e.RAWTEXT_LESS_THAN_SIGN = 11] = "RAWTEXT_LESS_THAN_SIGN", e[e.RAWTEXT_END_TAG_OPEN = 12] = "RAWTEXT_END_TAG_OPEN", e[e.RAWTEXT_END_TAG_NAME = 13] = "RAWTEXT_END_TAG_NAME", e[e.SCRIPT_DATA_LESS_THAN_SIGN = 14] = "SCRIPT_DATA_LESS_THAN_SIGN", e[e.SCRIPT_DATA_END_TAG_OPEN = 15] = "SCRIPT_DATA_END_TAG_OPEN", e[e.SCRIPT_DATA_END_TAG_NAME = 16] = "SCRIPT_DATA_END_TAG_NAME", e[e.SCRIPT_DATA_ESCAPE_START = 17] = "SCRIPT_DATA_ESCAPE_START", e[e.SCRIPT_DATA_ESCAPE_START_DASH = 18] = "SCRIPT_DATA_ESCAPE_START_DASH", e[e.SCRIPT_DATA_ESCAPED = 19] = "SCRIPT_DATA_ESCAPED", e[e.SCRIPT_DATA_ESCAPED_DASH = 20] = "SCRIPT_DATA_ESCAPED_DASH", e[e.SCRIPT_DATA_ESCAPED_DASH_DASH = 21] = "SCRIPT_DATA_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN = 22] = "SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN = 23] = "SCRIPT_DATA_ESCAPED_END_TAG_OPEN", e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME = 24] = "SCRIPT_DATA_ESCAPED_END_TAG_NAME", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START = 25] = "SCRIPT_DATA_DOUBLE_ESCAPE_START", e[e.SCRIPT_DATA_DOUBLE_ESCAPED = 26] = "SCRIPT_DATA_DOUBLE_ESCAPED", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH = 27] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH = 28] = "SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH", e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN = 29] = "SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN", e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END = 30] = "SCRIPT_DATA_DOUBLE_ESCAPE_END", e[e.BEFORE_ATTRIBUTE_NAME = 31] = "BEFORE_ATTRIBUTE_NAME", e[e.ATTRIBUTE_NAME = 32] = "ATTRIBUTE_NAME", e[e.AFTER_ATTRIBUTE_NAME = 33] = "AFTER_ATTRIBUTE_NAME", e[e.BEFORE_ATTRIBUTE_VALUE = 34] = "BEFORE_ATTRIBUTE_VALUE", e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED = 35] = "ATTRIBUTE_VALUE_DOUBLE_QUOTED", e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED = 36] = "ATTRIBUTE_VALUE_SINGLE_QUOTED", e[e.ATTRIBUTE_VALUE_UNQUOTED = 37] = "ATTRIBUTE_VALUE_UNQUOTED", e[e.AFTER_ATTRIBUTE_VALUE_QUOTED = 38] = "AFTER_ATTRIBUTE_VALUE_QUOTED", e[e.SELF_CLOSING_START_TAG = 39] = "SELF_CLOSING_START_TAG", e[e.BOGUS_COMMENT = 40] = "BOGUS_COMMENT", e[e.MARKUP_DECLARATION_OPEN = 41] = "MARKUP_DECLARATION_OPEN", e[e.COMMENT_START = 42] = "COMMENT_START", e[e.COMMENT_START_DASH = 43] = "COMMENT_START_DASH", e[e.COMMENT = 44] = "COMMENT", e[e.COMMENT_LESS_THAN_SIGN = 45] = "COMMENT_LESS_THAN_SIGN", e[e.COMMENT_LESS_THAN_SIGN_BANG = 46] = "COMMENT_LESS_THAN_SIGN_BANG", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH = 47] = "COMMENT_LESS_THAN_SIGN_BANG_DASH", e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH = 48] = "COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH", e[e.COMMENT_END_DASH = 49] = "COMMENT_END_DASH", e[e.COMMENT_END = 50] = "COMMENT_END", e[e.COMMENT_END_BANG = 51] = "COMMENT_END_BANG", e[e.DOCTYPE = 52] = "DOCTYPE", e[e.BEFORE_DOCTYPE_NAME = 53] = "BEFORE_DOCTYPE_NAME", e[e.DOCTYPE_NAME = 54] = "DOCTYPE_NAME", e[e.AFTER_DOCTYPE_NAME = 55] = "AFTER_DOCTYPE_NAME", e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD = 56] = "AFTER_DOCTYPE_PUBLIC_KEYWORD", e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER = 57] = "BEFORE_DOCTYPE_PUBLIC_IDENTIFIER", e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED = 58] = "DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED = 59] = "DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER = 60] = "AFTER_DOCTYPE_PUBLIC_IDENTIFIER", e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS = 61] = "BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS", e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD = 62] = "AFTER_DOCTYPE_SYSTEM_KEYWORD", e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER = 63] = "BEFORE_DOCTYPE_SYSTEM_IDENTIFIER", e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED = 64] = "DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED", e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED = 65] = "DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED", e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER = 66] = "AFTER_DOCTYPE_SYSTEM_IDENTIFIER", e[e.BOGUS_DOCTYPE = 67] = "BOGUS_DOCTYPE", e[e.CDATA_SECTION = 68] = "CDATA_SECTION", e[e.CDATA_SECTION_BRACKET = 69] = "CDATA_SECTION_BRACKET", e[e.CDATA_SECTION_END = 70] = "CDATA_SECTION_END", e[e.CHARACTER_REFERENCE = 71] = "CHARACTER_REFERENCE", e[e.NAMED_CHARACTER_REFERENCE = 72] = "NAMED_CHARACTER_REFERENCE", e[e.AMBIGUOUS_AMPERSAND = 73] = "AMBIGUOUS_AMPERSAND", e[e.NUMERIC_CHARACTER_REFERENCE = 74] = "NUMERIC_CHARACTER_REFERENCE", e[e.HEXADEMICAL_CHARACTER_REFERENCE_START = 75] = "HEXADEMICAL_CHARACTER_REFERENCE_START", e[e.HEXADEMICAL_CHARACTER_REFERENCE = 76] = "HEXADEMICAL_CHARACTER_REFERENCE", e[e.DECIMAL_CHARACTER_REFERENCE = 77] = "DECIMAL_CHARACTER_REFERENCE", e[e.NUMERIC_CHARACTER_REFERENCE_END = 78] = "NUMERIC_CHARACTER_REFERENCE_END"
+}(Ko || (Ko = {}));
+const jo = {
+ DATA: Ko.DATA,
+ RCDATA: Ko.RCDATA,
+ RAWTEXT: Ko.RAWTEXT,
+ SCRIPT_DATA: Ko.SCRIPT_DATA,
+ PLAINTEXT: Ko.PLAINTEXT,
+ CDATA_SECTION: Ko.CDATA_SECTION
+};
+
+function Vo(e) {
+ return e >= io.DIGIT_0 && e <= io.DIGIT_9
+}
+
+function Wo(e) {
+ return e >= io.LATIN_CAPITAL_A && e <= io.LATIN_CAPITAL_Z
+}
+
+function Qo(e) {
+ return function(e) {
+ return e >= io.LATIN_SMALL_A && e <= io.LATIN_SMALL_Z
+ }(e) || Wo(e)
+}
+
+function Xo(e) {
+ return Qo(e) || Vo(e)
+}
+
+function $o(e) {
+ return e >= io.LATIN_CAPITAL_A && e <= io.LATIN_CAPITAL_F
+}
+
+function zo(e) {
+ return e >= io.LATIN_SMALL_A && e <= io.LATIN_SMALL_F
+}
+
+function Jo(e) {
+ return e + 32
+}
+
+function Zo(e) {
+ return e === io.SPACE || e === io.LINE_FEED || e === io.TABULATION || e === io.FORM_FEED
+}
+
+function ec(e) {
+ return Zo(e) || e === io.SOLIDUS || e === io.GREATER_THAN_SIGN
+}
+class tc {
+ constructor(e, t) {
+ this.options = e, this.handler = t, this.paused = !1, this.inLoop = !1, this.inForeignNode = !1, this.lastStartTagName = "", this.active = !1, this.state = Ko.DATA, this.returnState = Ko.DATA, this.charRefCode = -1, this.consumedAfterSnapshot = -1, this.currentCharacterToken = null, this.currentToken = null, this.currentAttr = {
+ name: "",
+ value: ""
+ }, this.preprocessor = new mo(t), this.currentLocation = this.getCurrentLocation(-1)
+ }
+ _err(e) {
+ var t, n;
+ null === (n = (t = this.handler).onParseError) || void 0 === n || n.call(t, this.preprocessor.getError(e))
+ }
+ getCurrentLocation(e) {
+ return this.options.sourceCodeLocationInfo ? {
+ startLine: this.preprocessor.line,
+ startCol: this.preprocessor.col - e,
+ startOffset: this.preprocessor.offset - e,
+ endLine: -1,
+ endCol: -1,
+ endOffset: -1
+ } : null
+ }
+ _runParsingLoop() {
+ if (!this.inLoop) {
+ for (this.inLoop = !0; this.active && !this.paused;) {
+ this.consumedAfterSnapshot = 0;
+ const e = this._consume();
+ this._ensureHibernation() || this._callState(e)
+ }
+ this.inLoop = !1
+ }
+ }
+ pause() {
+ this.paused = !0
+ }
+ resume(e) {
+ if (!this.paused) throw new Error("Parser was already resumed");
+ this.paused = !1, this.inLoop || (this._runParsingLoop(), this.paused || null == e || e())
+ }
+ write(e, t, n) {
+ this.active = !0, this.preprocessor.write(e, t), this._runParsingLoop(), this.paused || null == n || n()
+ }
+ insertHtmlAtCurrentPos(e) {
+ this.active = !0, this.preprocessor.insertHtmlAtCurrentPos(e), this._runParsingLoop()
+ }
+ _ensureHibernation() {
+ return !!this.preprocessor.endOfChunkHit && (this._unconsume(this.consumedAfterSnapshot), this.active = !1, !0)
+ }
+ _consume() {
+ return this.consumedAfterSnapshot++, this.preprocessor.advance()
+ }
+ _unconsume(e) {
+ this.consumedAfterSnapshot -= e, this.preprocessor.retreat(e)
+ }
+ _reconsumeInState(e, t) {
+ this.state = e, this._callState(t)
+ }
+ _advanceBy(e) {
+ this.consumedAfterSnapshot += e;
+ for (let t = 0; t < e; t++) this.preprocessor.advance()
+ }
+ _consumeSequenceIfMatch(e, t) {
+ return !!this.preprocessor.startsWith(e, t) && (this._advanceBy(e.length - 1), !0)
+ }
+ _createStartTagToken() {
+ this.currentToken = {
+ type: To.START_TAG,
+ tagName: "",
+ tagID: Po.UNKNOWN,
+ selfClosing: !1,
+ ackSelfClosing: !1,
+ attrs: [],
+ location: this.getCurrentLocation(1)
+ }
+ }
+ _createEndTagToken() {
+ this.currentToken = {
+ type: To.END_TAG,
+ tagName: "",
+ tagID: Po.UNKNOWN,
+ selfClosing: !1,
+ ackSelfClosing: !1,
+ attrs: [],
+ location: this.getCurrentLocation(2)
+ }
+ }
+ _createCommentToken(e) {
+ this.currentToken = {
+ type: To.COMMENT,
+ data: "",
+ location: this.getCurrentLocation(e)
+ }
+ }
+ _createDoctypeToken(e) {
+ this.currentToken = {
+ type: To.DOCTYPE,
+ name: e,
+ forceQuirks: !1,
+ publicId: null,
+ systemId: null,
+ location: this.currentLocation
+ }
+ }
+ _createCharacterToken(e, t) {
+ this.currentCharacterToken = {
+ type: e,
+ chars: t,
+ location: this.currentLocation
+ }
+ }
+ _createAttr(e) {
+ this.currentAttr = {
+ name: e,
+ value: ""
+ }, this.currentLocation = this.getCurrentLocation(0)
+ }
+ _leaveAttrName() {
+ var e, t;
+ const n = this.currentToken;
+ if (null === _o(n, this.currentAttr.name)) {
+ if (n.attrs.push(this.currentAttr), n.location && this.currentLocation) {
+ (null !== (e = (t = n.location).attrs) && void 0 !== e ? e : t.attrs = Object.create(null))[this.currentAttr.name] = this.currentLocation, this._leaveAttrValue()
+ }
+ } else this._err(Eo.duplicateAttribute)
+ }
+ _leaveAttrValue() {
+ this.currentLocation && (this.currentLocation.endLine = this.preprocessor.line, this.currentLocation.endCol = this.preprocessor.col, this.currentLocation.endOffset = this.preprocessor.offset)
+ }
+ prepareToken(e) {
+ this._emitCurrentCharacterToken(e.location), this.currentToken = null, e.location && (e.location.endLine = this.preprocessor.line, e.location.endCol = this.preprocessor.col + 1, e.location.endOffset = this.preprocessor.offset + 1), this.currentLocation = this.getCurrentLocation(-1)
+ }
+ emitCurrentTagToken() {
+ const e = this.currentToken;
+ this.prepareToken(e), e.tagID = Fo(e.tagName), e.type === To.START_TAG ? (this.lastStartTagName = e.tagName, this.handler.onStartTag(e)) : (e.attrs.length > 0 && this._err(Eo.endTagWithAttributes), e.selfClosing && this._err(Eo.endTagWithTrailingSolidus), this.handler.onEndTag(e)), this.preprocessor.dropParsedChunk()
+ }
+ emitCurrentComment(e) {
+ this.prepareToken(e), this.handler.onComment(e), this.preprocessor.dropParsedChunk()
+ }
+ emitCurrentDoctype(e) {
+ this.prepareToken(e), this.handler.onDoctype(e), this.preprocessor.dropParsedChunk()
+ }
+ _emitCurrentCharacterToken(e) {
+ if (this.currentCharacterToken) {
+ switch (e && this.currentCharacterToken.location && (this.currentCharacterToken.location.endLine = e.startLine, this.currentCharacterToken.location.endCol = e.startCol, this.currentCharacterToken.location.endOffset = e.startOffset), this.currentCharacterToken.type) {
+ case To.CHARACTER:
+ this.handler.onCharacter(this.currentCharacterToken);
+ break;
+ case To.NULL_CHARACTER:
+ this.handler.onNullCharacter(this.currentCharacterToken);
+ break;
+ case To.WHITESPACE_CHARACTER:
+ this.handler.onWhitespaceCharacter(this.currentCharacterToken)
+ }
+ this.currentCharacterToken = null
+ }
+ }
+ _emitEOFToken() {
+ const e = this.getCurrentLocation(0);
+ e && (e.endLine = e.startLine, e.endCol = e.startCol, e.endOffset = e.startOffset), this._emitCurrentCharacterToken(e), this.handler.onEof({
+ type: To.EOF,
+ location: e
+ }), this.active = !1
+ }
+ _appendCharToCurrentCharacterToken(e, t) {
+ if (this.currentCharacterToken) {
+ if (this.currentCharacterToken.type === e) return void(this.currentCharacterToken.chars += t);
+ this.currentLocation = this.getCurrentLocation(0), this._emitCurrentCharacterToken(this.currentLocation), this.preprocessor.dropParsedChunk()
+ }
+ this._createCharacterToken(e, t)
+ }
+ _emitCodePoint(e) {
+ const t = Zo(e) ? To.WHITESPACE_CHARACTER : e === io.NULL ? To.NULL_CHARACTER : To.CHARACTER;
+ this._appendCharToCurrentCharacterToken(t, String.fromCodePoint(e))
+ }
+ _emitChars(e) {
+ this._appendCharToCurrentCharacterToken(To.CHARACTER, e)
+ }
+ _matchNamedCharacterReference(e) {
+ let t = null,
+ n = 0,
+ r = !1;
+ for (let s = 0, a = wo[0]; s >= 0 && (s = Oo(wo, a, s + 1, e), !(s < 0)); e = this._consume()) {
+ n += 1, a = wo[s];
+ const o = a & yo.VALUE_LENGTH;
+ if (o) {
+ const a = (o >> 14) - 1;
+ if (e !== io.SEMICOLON && this._isCharacterReferenceInAttribute() && ((i = this.preprocessor.peek(1)) === io.EQUALS_SIGN || Xo(i)) ? (t = [io.AMPERSAND], s += a) : (t = 0 === a ? [wo[s] & ~yo.VALUE_LENGTH] : 1 === a ? [wo[++s]] : [wo[++s], wo[++s]], n = 0, r = e !== io.SEMICOLON), 0 === a) {
+ this._consume();
+ break
+ }
+ }
+ }
+ var i;
+ return this._unconsume(n), r && !this.preprocessor.endOfChunkHit && this._err(Eo.missingSemicolonAfterCharacterReference), this._unconsume(1), t
+ }
+ _isCharacterReferenceInAttribute() {
+ return this.returnState === Ko.ATTRIBUTE_VALUE_DOUBLE_QUOTED || this.returnState === Ko.ATTRIBUTE_VALUE_SINGLE_QUOTED || this.returnState === Ko.ATTRIBUTE_VALUE_UNQUOTED
+ }
+ _flushCodePointConsumedAsCharacterReference(e) {
+ this._isCharacterReferenceInAttribute() ? this.currentAttr.value += String.fromCodePoint(e) : this._emitCodePoint(e)
+ }
+ _callState(e) {
+ switch (this.state) {
+ case Ko.DATA:
+ this._stateData(e);
+ break;
+ case Ko.RCDATA:
+ this._stateRcdata(e);
+ break;
+ case Ko.RAWTEXT:
+ this._stateRawtext(e);
+ break;
+ case Ko.SCRIPT_DATA:
+ this._stateScriptData(e);
+ break;
+ case Ko.PLAINTEXT:
+ this._statePlaintext(e);
+ break;
+ case Ko.TAG_OPEN:
+ this._stateTagOpen(e);
+ break;
+ case Ko.END_TAG_OPEN:
+ this._stateEndTagOpen(e);
+ break;
+ case Ko.TAG_NAME:
+ this._stateTagName(e);
+ break;
+ case Ko.RCDATA_LESS_THAN_SIGN:
+ this._stateRcdataLessThanSign(e);
+ break;
+ case Ko.RCDATA_END_TAG_OPEN:
+ this._stateRcdataEndTagOpen(e);
+ break;
+ case Ko.RCDATA_END_TAG_NAME:
+ this._stateRcdataEndTagName(e);
+ break;
+ case Ko.RAWTEXT_LESS_THAN_SIGN:
+ this._stateRawtextLessThanSign(e);
+ break;
+ case Ko.RAWTEXT_END_TAG_OPEN:
+ this._stateRawtextEndTagOpen(e);
+ break;
+ case Ko.RAWTEXT_END_TAG_NAME:
+ this._stateRawtextEndTagName(e);
+ break;
+ case Ko.SCRIPT_DATA_LESS_THAN_SIGN:
+ this._stateScriptDataLessThanSign(e);
+ break;
+ case Ko.SCRIPT_DATA_END_TAG_OPEN:
+ this._stateScriptDataEndTagOpen(e);
+ break;
+ case Ko.SCRIPT_DATA_END_TAG_NAME:
+ this._stateScriptDataEndTagName(e);
+ break;
+ case Ko.SCRIPT_DATA_ESCAPE_START:
+ this._stateScriptDataEscapeStart(e);
+ break;
+ case Ko.SCRIPT_DATA_ESCAPE_START_DASH:
+ this._stateScriptDataEscapeStartDash(e);
+ break;
+ case Ko.SCRIPT_DATA_ESCAPED:
+ this._stateScriptDataEscaped(e);
+ break;
+ case Ko.SCRIPT_DATA_ESCAPED_DASH:
+ this._stateScriptDataEscapedDash(e);
+ break;
+ case Ko.SCRIPT_DATA_ESCAPED_DASH_DASH:
+ this._stateScriptDataEscapedDashDash(e);
+ break;
+ case Ko.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:
+ this._stateScriptDataEscapedLessThanSign(e);
+ break;
+ case Ko.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:
+ this._stateScriptDataEscapedEndTagOpen(e);
+ break;
+ case Ko.SCRIPT_DATA_ESCAPED_END_TAG_NAME:
+ this._stateScriptDataEscapedEndTagName(e);
+ break;
+ case Ko.SCRIPT_DATA_DOUBLE_ESCAPE_START:
+ this._stateScriptDataDoubleEscapeStart(e);
+ break;
+ case Ko.SCRIPT_DATA_DOUBLE_ESCAPED:
+ this._stateScriptDataDoubleEscaped(e);
+ break;
+ case Ko.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:
+ this._stateScriptDataDoubleEscapedDash(e);
+ break;
+ case Ko.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:
+ this._stateScriptDataDoubleEscapedDashDash(e);
+ break;
+ case Ko.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:
+ this._stateScriptDataDoubleEscapedLessThanSign(e);
+ break;
+ case Ko.SCRIPT_DATA_DOUBLE_ESCAPE_END:
+ this._stateScriptDataDoubleEscapeEnd(e);
+ break;
+ case Ko.BEFORE_ATTRIBUTE_NAME:
+ this._stateBeforeAttributeName(e);
+ break;
+ case Ko.ATTRIBUTE_NAME:
+ this._stateAttributeName(e);
+ break;
+ case Ko.AFTER_ATTRIBUTE_NAME:
+ this._stateAfterAttributeName(e);
+ break;
+ case Ko.BEFORE_ATTRIBUTE_VALUE:
+ this._stateBeforeAttributeValue(e);
+ break;
+ case Ko.ATTRIBUTE_VALUE_DOUBLE_QUOTED:
+ this._stateAttributeValueDoubleQuoted(e);
+ break;
+ case Ko.ATTRIBUTE_VALUE_SINGLE_QUOTED:
+ this._stateAttributeValueSingleQuoted(e);
+ break;
+ case Ko.ATTRIBUTE_VALUE_UNQUOTED:
+ this._stateAttributeValueUnquoted(e);
+ break;
+ case Ko.AFTER_ATTRIBUTE_VALUE_QUOTED:
+ this._stateAfterAttributeValueQuoted(e);
+ break;
+ case Ko.SELF_CLOSING_START_TAG:
+ this._stateSelfClosingStartTag(e);
+ break;
+ case Ko.BOGUS_COMMENT:
+ this._stateBogusComment(e);
+ break;
+ case Ko.MARKUP_DECLARATION_OPEN:
+ this._stateMarkupDeclarationOpen(e);
+ break;
+ case Ko.COMMENT_START:
+ this._stateCommentStart(e);
+ break;
+ case Ko.COMMENT_START_DASH:
+ this._stateCommentStartDash(e);
+ break;
+ case Ko.COMMENT:
+ this._stateComment(e);
+ break;
+ case Ko.COMMENT_LESS_THAN_SIGN:
+ this._stateCommentLessThanSign(e);
+ break;
+ case Ko.COMMENT_LESS_THAN_SIGN_BANG:
+ this._stateCommentLessThanSignBang(e);
+ break;
+ case Ko.COMMENT_LESS_THAN_SIGN_BANG_DASH:
+ this._stateCommentLessThanSignBangDash(e);
+ break;
+ case Ko.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:
+ this._stateCommentLessThanSignBangDashDash(e);
+ break;
+ case Ko.COMMENT_END_DASH:
+ this._stateCommentEndDash(e);
+ break;
+ case Ko.COMMENT_END:
+ this._stateCommentEnd(e);
+ break;
+ case Ko.COMMENT_END_BANG:
+ this._stateCommentEndBang(e);
+ break;
+ case Ko.DOCTYPE:
+ this._stateDoctype(e);
+ break;
+ case Ko.BEFORE_DOCTYPE_NAME:
+ this._stateBeforeDoctypeName(e);
+ break;
+ case Ko.DOCTYPE_NAME:
+ this._stateDoctypeName(e);
+ break;
+ case Ko.AFTER_DOCTYPE_NAME:
+ this._stateAfterDoctypeName(e);
+ break;
+ case Ko.AFTER_DOCTYPE_PUBLIC_KEYWORD:
+ this._stateAfterDoctypePublicKeyword(e);
+ break;
+ case Ko.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:
+ this._stateBeforeDoctypePublicIdentifier(e);
+ break;
+ case Ko.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:
+ this._stateDoctypePublicIdentifierDoubleQuoted(e);
+ break;
+ case Ko.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:
+ this._stateDoctypePublicIdentifierSingleQuoted(e);
+ break;
+ case Ko.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:
+ this._stateAfterDoctypePublicIdentifier(e);
+ break;
+ case Ko.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:
+ this._stateBetweenDoctypePublicAndSystemIdentifiers(e);
+ break;
+ case Ko.AFTER_DOCTYPE_SYSTEM_KEYWORD:
+ this._stateAfterDoctypeSystemKeyword(e);
+ break;
+ case Ko.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:
+ this._stateBeforeDoctypeSystemIdentifier(e);
+ break;
+ case Ko.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:
+ this._stateDoctypeSystemIdentifierDoubleQuoted(e);
+ break;
+ case Ko.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:
+ this._stateDoctypeSystemIdentifierSingleQuoted(e);
+ break;
+ case Ko.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:
+ this._stateAfterDoctypeSystemIdentifier(e);
+ break;
+ case Ko.BOGUS_DOCTYPE:
+ this._stateBogusDoctype(e);
+ break;
+ case Ko.CDATA_SECTION:
+ this._stateCdataSection(e);
+ break;
+ case Ko.CDATA_SECTION_BRACKET:
+ this._stateCdataSectionBracket(e);
+ break;
+ case Ko.CDATA_SECTION_END:
+ this._stateCdataSectionEnd(e);
+ break;
+ case Ko.CHARACTER_REFERENCE:
+ this._stateCharacterReference(e);
+ break;
+ case Ko.NAMED_CHARACTER_REFERENCE:
+ this._stateNamedCharacterReference(e);
+ break;
+ case Ko.AMBIGUOUS_AMPERSAND:
+ this._stateAmbiguousAmpersand(e);
+ break;
+ case Ko.NUMERIC_CHARACTER_REFERENCE:
+ this._stateNumericCharacterReference(e);
+ break;
+ case Ko.HEXADEMICAL_CHARACTER_REFERENCE_START:
+ this._stateHexademicalCharacterReferenceStart(e);
+ break;
+ case Ko.HEXADEMICAL_CHARACTER_REFERENCE:
+ this._stateHexademicalCharacterReference(e);
+ break;
+ case Ko.DECIMAL_CHARACTER_REFERENCE:
+ this._stateDecimalCharacterReference(e);
+ break;
+ case Ko.NUMERIC_CHARACTER_REFERENCE_END:
+ this._stateNumericCharacterReferenceEnd(e);
+ break;
+ default:
+ throw new Error("Unknown state")
+ }
+ }
+ _stateData(e) {
+ switch (e) {
+ case io.LESS_THAN_SIGN:
+ this.state = Ko.TAG_OPEN;
+ break;
+ case io.AMPERSAND:
+ this.returnState = Ko.DATA, this.state = Ko.CHARACTER_REFERENCE;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this._emitCodePoint(e);
+ break;
+ case io.EOF:
+ this._emitEOFToken();
+ break;
+ default:
+ this._emitCodePoint(e)
+ }
+ }
+ _stateRcdata(e) {
+ switch (e) {
+ case io.AMPERSAND:
+ this.returnState = Ko.RCDATA, this.state = Ko.CHARACTER_REFERENCE;
+ break;
+ case io.LESS_THAN_SIGN:
+ this.state = Ko.RCDATA_LESS_THAN_SIGN;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this._emitChars("�");
+ break;
+ case io.EOF:
+ this._emitEOFToken();
+ break;
+ default:
+ this._emitCodePoint(e)
+ }
+ }
+ _stateRawtext(e) {
+ switch (e) {
+ case io.LESS_THAN_SIGN:
+ this.state = Ko.RAWTEXT_LESS_THAN_SIGN;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this._emitChars("�");
+ break;
+ case io.EOF:
+ this._emitEOFToken();
+ break;
+ default:
+ this._emitCodePoint(e)
+ }
+ }
+ _stateScriptData(e) {
+ switch (e) {
+ case io.LESS_THAN_SIGN:
+ this.state = Ko.SCRIPT_DATA_LESS_THAN_SIGN;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this._emitChars("�");
+ break;
+ case io.EOF:
+ this._emitEOFToken();
+ break;
+ default:
+ this._emitCodePoint(e)
+ }
+ }
+ _statePlaintext(e) {
+ switch (e) {
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this._emitChars("�");
+ break;
+ case io.EOF:
+ this._emitEOFToken();
+ break;
+ default:
+ this._emitCodePoint(e)
+ }
+ }
+ _stateTagOpen(e) {
+ if (Qo(e)) this._createStartTagToken(), this.state = Ko.TAG_NAME, this._stateTagName(e);
+ else switch (e) {
+ case io.EXCLAMATION_MARK:
+ this.state = Ko.MARKUP_DECLARATION_OPEN;
+ break;
+ case io.SOLIDUS:
+ this.state = Ko.END_TAG_OPEN;
+ break;
+ case io.QUESTION_MARK:
+ this._err(Eo.unexpectedQuestionMarkInsteadOfTagName), this._createCommentToken(1), this.state = Ko.BOGUS_COMMENT, this._stateBogusComment(e);
+ break;
+ case io.EOF:
+ this._err(Eo.eofBeforeTagName), this._emitChars("<"), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.invalidFirstCharacterOfTagName), this._emitChars("<"), this.state = Ko.DATA, this._stateData(e)
+ }
+ }
+ _stateEndTagOpen(e) {
+ if (Qo(e)) this._createEndTagToken(), this.state = Ko.TAG_NAME, this._stateTagName(e);
+ else switch (e) {
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.missingEndTagName), this.state = Ko.DATA;
+ break;
+ case io.EOF:
+ this._err(Eo.eofBeforeTagName), this._emitChars(""), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.invalidFirstCharacterOfTagName), this._createCommentToken(2), this.state = Ko.BOGUS_COMMENT, this._stateBogusComment(e)
+ }
+ }
+ _stateTagName(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ this.state = Ko.BEFORE_ATTRIBUTE_NAME;
+ break;
+ case io.SOLIDUS:
+ this.state = Ko.SELF_CLOSING_START_TAG;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.DATA, this.emitCurrentTagToken();
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), t.tagName += "�";
+ break;
+ case io.EOF:
+ this._err(Eo.eofInTag), this._emitEOFToken();
+ break;
+ default:
+ t.tagName += String.fromCodePoint(Wo(e) ? Jo(e) : e)
+ }
+ }
+ _stateRcdataLessThanSign(e) {
+ e === io.SOLIDUS ? this.state = Ko.RCDATA_END_TAG_OPEN : (this._emitChars("<"), this.state = Ko.RCDATA, this._stateRcdata(e))
+ }
+ _stateRcdataEndTagOpen(e) {
+ Qo(e) ? (this.state = Ko.RCDATA_END_TAG_NAME, this._stateRcdataEndTagName(e)) : (this._emitChars(""), this.state = Ko.RCDATA, this._stateRcdata(e))
+ }
+ handleSpecialEndTag(e) {
+ if (!this.preprocessor.startsWith(this.lastStartTagName, !1)) return !this._ensureHibernation();
+ this._createEndTagToken();
+ this.currentToken.tagName = this.lastStartTagName;
+ switch (this.preprocessor.peek(this.lastStartTagName.length)) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ return this._advanceBy(this.lastStartTagName.length), this.state = Ko.BEFORE_ATTRIBUTE_NAME, !1;
+ case io.SOLIDUS:
+ return this._advanceBy(this.lastStartTagName.length), this.state = Ko.SELF_CLOSING_START_TAG, !1;
+ case io.GREATER_THAN_SIGN:
+ return this._advanceBy(this.lastStartTagName.length), this.emitCurrentTagToken(), this.state = Ko.DATA, !1;
+ default:
+ return !this._ensureHibernation()
+ }
+ }
+ _stateRcdataEndTagName(e) {
+ this.handleSpecialEndTag(e) && (this._emitChars(""), this.state = Ko.RCDATA, this._stateRcdata(e))
+ }
+ _stateRawtextLessThanSign(e) {
+ e === io.SOLIDUS ? this.state = Ko.RAWTEXT_END_TAG_OPEN : (this._emitChars("<"), this.state = Ko.RAWTEXT, this._stateRawtext(e))
+ }
+ _stateRawtextEndTagOpen(e) {
+ Qo(e) ? (this.state = Ko.RAWTEXT_END_TAG_NAME, this._stateRawtextEndTagName(e)) : (this._emitChars(""), this.state = Ko.RAWTEXT, this._stateRawtext(e))
+ }
+ _stateRawtextEndTagName(e) {
+ this.handleSpecialEndTag(e) && (this._emitChars(""), this.state = Ko.RAWTEXT, this._stateRawtext(e))
+ }
+ _stateScriptDataLessThanSign(e) {
+ switch (e) {
+ case io.SOLIDUS:
+ this.state = Ko.SCRIPT_DATA_END_TAG_OPEN;
+ break;
+ case io.EXCLAMATION_MARK:
+ this.state = Ko.SCRIPT_DATA_ESCAPE_START, this._emitChars("");
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this.state = Ko.SCRIPT_DATA_ESCAPED, this._emitChars("�");
+ break;
+ case io.EOF:
+ this._err(Eo.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
+ break;
+ default:
+ this.state = Ko.SCRIPT_DATA_ESCAPED, this._emitCodePoint(e)
+ }
+ }
+ _stateScriptDataEscapedLessThanSign(e) {
+ e === io.SOLIDUS ? this.state = Ko.SCRIPT_DATA_ESCAPED_END_TAG_OPEN : Qo(e) ? (this._emitChars("<"), this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPE_START, this._stateScriptDataDoubleEscapeStart(e)) : (this._emitChars("<"), this.state = Ko.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e))
+ }
+ _stateScriptDataEscapedEndTagOpen(e) {
+ Qo(e) ? (this.state = Ko.SCRIPT_DATA_ESCAPED_END_TAG_NAME, this._stateScriptDataEscapedEndTagName(e)) : (this._emitChars(""), this.state = Ko.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e))
+ }
+ _stateScriptDataEscapedEndTagName(e) {
+ this.handleSpecialEndTag(e) && (this._emitChars(""), this.state = Ko.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e))
+ }
+ _stateScriptDataDoubleEscapeStart(e) {
+ if (this.preprocessor.startsWith(co, !1) && ec(this.preprocessor.peek(co.length))) {
+ this._emitCodePoint(e);
+ for (let e = 0; e < co.length; e++) this._emitCodePoint(this._consume());
+ this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED
+ } else this._ensureHibernation() || (this.state = Ko.SCRIPT_DATA_ESCAPED, this._stateScriptDataEscaped(e))
+ }
+ _stateScriptDataDoubleEscaped(e) {
+ switch (e) {
+ case io.HYPHEN_MINUS:
+ this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED_DASH, this._emitChars("-");
+ break;
+ case io.LESS_THAN_SIGN:
+ this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this._emitChars("�");
+ break;
+ case io.EOF:
+ this._err(Eo.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
+ break;
+ default:
+ this._emitCodePoint(e)
+ }
+ }
+ _stateScriptDataDoubleEscapedDash(e) {
+ switch (e) {
+ case io.HYPHEN_MINUS:
+ this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH, this._emitChars("-");
+ break;
+ case io.LESS_THAN_SIGN:
+ this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars("�");
+ break;
+ case io.EOF:
+ this._err(Eo.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
+ break;
+ default:
+ this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(e)
+ }
+ }
+ _stateScriptDataDoubleEscapedDashDash(e) {
+ switch (e) {
+ case io.HYPHEN_MINUS:
+ this._emitChars("-");
+ break;
+ case io.LESS_THAN_SIGN:
+ this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN, this._emitChars("<");
+ break;
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.SCRIPT_DATA, this._emitChars(">");
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitChars("�");
+ break;
+ case io.EOF:
+ this._err(Eo.eofInScriptHtmlCommentLikeText), this._emitEOFToken();
+ break;
+ default:
+ this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED, this._emitCodePoint(e)
+ }
+ }
+ _stateScriptDataDoubleEscapedLessThanSign(e) {
+ e === io.SOLIDUS ? (this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPE_END, this._emitChars("/")) : (this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(e))
+ }
+ _stateScriptDataDoubleEscapeEnd(e) {
+ if (this.preprocessor.startsWith(co, !1) && ec(this.preprocessor.peek(co.length))) {
+ this._emitCodePoint(e);
+ for (let e = 0; e < co.length; e++) this._emitCodePoint(this._consume());
+ this.state = Ko.SCRIPT_DATA_ESCAPED
+ } else this._ensureHibernation() || (this.state = Ko.SCRIPT_DATA_DOUBLE_ESCAPED, this._stateScriptDataDoubleEscaped(e))
+ }
+ _stateBeforeAttributeName(e) {
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ break;
+ case io.SOLIDUS:
+ case io.GREATER_THAN_SIGN:
+ case io.EOF:
+ this.state = Ko.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(e);
+ break;
+ case io.EQUALS_SIGN:
+ this._err(Eo.unexpectedEqualsSignBeforeAttributeName), this._createAttr("="), this.state = Ko.ATTRIBUTE_NAME;
+ break;
+ default:
+ this._createAttr(""), this.state = Ko.ATTRIBUTE_NAME, this._stateAttributeName(e)
+ }
+ }
+ _stateAttributeName(e) {
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ case io.SOLIDUS:
+ case io.GREATER_THAN_SIGN:
+ case io.EOF:
+ this._leaveAttrName(), this.state = Ko.AFTER_ATTRIBUTE_NAME, this._stateAfterAttributeName(e);
+ break;
+ case io.EQUALS_SIGN:
+ this._leaveAttrName(), this.state = Ko.BEFORE_ATTRIBUTE_VALUE;
+ break;
+ case io.QUOTATION_MARK:
+ case io.APOSTROPHE:
+ case io.LESS_THAN_SIGN:
+ this._err(Eo.unexpectedCharacterInAttributeName), this.currentAttr.name += String.fromCodePoint(e);
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this.currentAttr.name += "�";
+ break;
+ default:
+ this.currentAttr.name += String.fromCodePoint(Wo(e) ? Jo(e) : e)
+ }
+ }
+ _stateAfterAttributeName(e) {
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ break;
+ case io.SOLIDUS:
+ this.state = Ko.SELF_CLOSING_START_TAG;
+ break;
+ case io.EQUALS_SIGN:
+ this.state = Ko.BEFORE_ATTRIBUTE_VALUE;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.DATA, this.emitCurrentTagToken();
+ break;
+ case io.EOF:
+ this._err(Eo.eofInTag), this._emitEOFToken();
+ break;
+ default:
+ this._createAttr(""), this.state = Ko.ATTRIBUTE_NAME, this._stateAttributeName(e)
+ }
+ }
+ _stateBeforeAttributeValue(e) {
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ break;
+ case io.QUOTATION_MARK:
+ this.state = Ko.ATTRIBUTE_VALUE_DOUBLE_QUOTED;
+ break;
+ case io.APOSTROPHE:
+ this.state = Ko.ATTRIBUTE_VALUE_SINGLE_QUOTED;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.missingAttributeValue), this.state = Ko.DATA, this.emitCurrentTagToken();
+ break;
+ default:
+ this.state = Ko.ATTRIBUTE_VALUE_UNQUOTED, this._stateAttributeValueUnquoted(e)
+ }
+ }
+ _stateAttributeValueDoubleQuoted(e) {
+ switch (e) {
+ case io.QUOTATION_MARK:
+ this.state = Ko.AFTER_ATTRIBUTE_VALUE_QUOTED;
+ break;
+ case io.AMPERSAND:
+ this.returnState = Ko.ATTRIBUTE_VALUE_DOUBLE_QUOTED, this.state = Ko.CHARACTER_REFERENCE;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this.currentAttr.value += "�";
+ break;
+ case io.EOF:
+ this._err(Eo.eofInTag), this._emitEOFToken();
+ break;
+ default:
+ this.currentAttr.value += String.fromCodePoint(e)
+ }
+ }
+ _stateAttributeValueSingleQuoted(e) {
+ switch (e) {
+ case io.APOSTROPHE:
+ this.state = Ko.AFTER_ATTRIBUTE_VALUE_QUOTED;
+ break;
+ case io.AMPERSAND:
+ this.returnState = Ko.ATTRIBUTE_VALUE_SINGLE_QUOTED, this.state = Ko.CHARACTER_REFERENCE;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this.currentAttr.value += "�";
+ break;
+ case io.EOF:
+ this._err(Eo.eofInTag), this._emitEOFToken();
+ break;
+ default:
+ this.currentAttr.value += String.fromCodePoint(e)
+ }
+ }
+ _stateAttributeValueUnquoted(e) {
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ this._leaveAttrValue(), this.state = Ko.BEFORE_ATTRIBUTE_NAME;
+ break;
+ case io.AMPERSAND:
+ this.returnState = Ko.ATTRIBUTE_VALUE_UNQUOTED, this.state = Ko.CHARACTER_REFERENCE;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._leaveAttrValue(), this.state = Ko.DATA, this.emitCurrentTagToken();
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this.currentAttr.value += "�";
+ break;
+ case io.QUOTATION_MARK:
+ case io.APOSTROPHE:
+ case io.LESS_THAN_SIGN:
+ case io.EQUALS_SIGN:
+ case io.GRAVE_ACCENT:
+ this._err(Eo.unexpectedCharacterInUnquotedAttributeValue), this.currentAttr.value += String.fromCodePoint(e);
+ break;
+ case io.EOF:
+ this._err(Eo.eofInTag), this._emitEOFToken();
+ break;
+ default:
+ this.currentAttr.value += String.fromCodePoint(e)
+ }
+ }
+ _stateAfterAttributeValueQuoted(e) {
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ this._leaveAttrValue(), this.state = Ko.BEFORE_ATTRIBUTE_NAME;
+ break;
+ case io.SOLIDUS:
+ this._leaveAttrValue(), this.state = Ko.SELF_CLOSING_START_TAG;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._leaveAttrValue(), this.state = Ko.DATA, this.emitCurrentTagToken();
+ break;
+ case io.EOF:
+ this._err(Eo.eofInTag), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.missingWhitespaceBetweenAttributes), this.state = Ko.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(e)
+ }
+ }
+ _stateSelfClosingStartTag(e) {
+ switch (e) {
+ case io.GREATER_THAN_SIGN:
+ this.currentToken.selfClosing = !0, this.state = Ko.DATA, this.emitCurrentTagToken();
+ break;
+ case io.EOF:
+ this._err(Eo.eofInTag), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.unexpectedSolidusInTag), this.state = Ko.BEFORE_ATTRIBUTE_NAME, this._stateBeforeAttributeName(e)
+ }
+ }
+ _stateBogusComment(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.DATA, this.emitCurrentComment(t);
+ break;
+ case io.EOF:
+ this.emitCurrentComment(t), this._emitEOFToken();
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), t.data += "�";
+ break;
+ default:
+ t.data += String.fromCodePoint(e)
+ }
+ }
+ _stateMarkupDeclarationOpen(e) {
+ this._consumeSequenceIfMatch(so, !0) ? (this._createCommentToken(so.length + 1), this.state = Ko.COMMENT_START) : this._consumeSequenceIfMatch(oo, !1) ? (this.currentLocation = this.getCurrentLocation(oo.length + 1), this.state = Ko.DOCTYPE) : this._consumeSequenceIfMatch(ao, !0) ? this.inForeignNode ? this.state = Ko.CDATA_SECTION : (this._err(Eo.cdataInHtmlContent), this._createCommentToken(ao.length + 1), this.currentToken.data = "[CDATA[", this.state = Ko.BOGUS_COMMENT) : this._ensureHibernation() || (this._err(Eo.incorrectlyOpenedComment), this._createCommentToken(2), this.state = Ko.BOGUS_COMMENT, this._stateBogusComment(e))
+ }
+ _stateCommentStart(e) {
+ switch (e) {
+ case io.HYPHEN_MINUS:
+ this.state = Ko.COMMENT_START_DASH;
+ break;
+ case io.GREATER_THAN_SIGN: {
+ this._err(Eo.abruptClosingOfEmptyComment), this.state = Ko.DATA;
+ const e = this.currentToken;
+ this.emitCurrentComment(e);
+ break
+ }
+ default:
+ this.state = Ko.COMMENT, this._stateComment(e)
+ }
+ }
+ _stateCommentStartDash(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.HYPHEN_MINUS:
+ this.state = Ko.COMMENT_END;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.abruptClosingOfEmptyComment), this.state = Ko.DATA, this.emitCurrentComment(t);
+ break;
+ case io.EOF:
+ this._err(Eo.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
+ break;
+ default:
+ t.data += "-", this.state = Ko.COMMENT, this._stateComment(e)
+ }
+ }
+ _stateComment(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.HYPHEN_MINUS:
+ this.state = Ko.COMMENT_END_DASH;
+ break;
+ case io.LESS_THAN_SIGN:
+ t.data += "<", this.state = Ko.COMMENT_LESS_THAN_SIGN;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), t.data += "�";
+ break;
+ case io.EOF:
+ this._err(Eo.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
+ break;
+ default:
+ t.data += String.fromCodePoint(e)
+ }
+ }
+ _stateCommentLessThanSign(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.EXCLAMATION_MARK:
+ t.data += "!", this.state = Ko.COMMENT_LESS_THAN_SIGN_BANG;
+ break;
+ case io.LESS_THAN_SIGN:
+ t.data += "<";
+ break;
+ default:
+ this.state = Ko.COMMENT, this._stateComment(e)
+ }
+ }
+ _stateCommentLessThanSignBang(e) {
+ e === io.HYPHEN_MINUS ? this.state = Ko.COMMENT_LESS_THAN_SIGN_BANG_DASH : (this.state = Ko.COMMENT, this._stateComment(e))
+ }
+ _stateCommentLessThanSignBangDash(e) {
+ e === io.HYPHEN_MINUS ? this.state = Ko.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH : (this.state = Ko.COMMENT_END_DASH, this._stateCommentEndDash(e))
+ }
+ _stateCommentLessThanSignBangDashDash(e) {
+ e !== io.GREATER_THAN_SIGN && e !== io.EOF && this._err(Eo.nestedComment), this.state = Ko.COMMENT_END, this._stateCommentEnd(e)
+ }
+ _stateCommentEndDash(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.HYPHEN_MINUS:
+ this.state = Ko.COMMENT_END;
+ break;
+ case io.EOF:
+ this._err(Eo.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
+ break;
+ default:
+ t.data += "-", this.state = Ko.COMMENT, this._stateComment(e)
+ }
+ }
+ _stateCommentEnd(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.DATA, this.emitCurrentComment(t);
+ break;
+ case io.EXCLAMATION_MARK:
+ this.state = Ko.COMMENT_END_BANG;
+ break;
+ case io.HYPHEN_MINUS:
+ t.data += "-";
+ break;
+ case io.EOF:
+ this._err(Eo.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
+ break;
+ default:
+ t.data += "--", this.state = Ko.COMMENT, this._stateComment(e)
+ }
+ }
+ _stateCommentEndBang(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.HYPHEN_MINUS:
+ t.data += "--!", this.state = Ko.COMMENT_END_DASH;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.incorrectlyClosedComment), this.state = Ko.DATA, this.emitCurrentComment(t);
+ break;
+ case io.EOF:
+ this._err(Eo.eofInComment), this.emitCurrentComment(t), this._emitEOFToken();
+ break;
+ default:
+ t.data += "--!", this.state = Ko.COMMENT, this._stateComment(e)
+ }
+ }
+ _stateDoctype(e) {
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ this.state = Ko.BEFORE_DOCTYPE_NAME;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(e);
+ break;
+ case io.EOF: {
+ this._err(Eo.eofInDoctype), this._createDoctypeToken(null);
+ const e = this.currentToken;
+ e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
+ break
+ }
+ default:
+ this._err(Eo.missingWhitespaceBeforeDoctypeName), this.state = Ko.BEFORE_DOCTYPE_NAME, this._stateBeforeDoctypeName(e)
+ }
+ }
+ _stateBeforeDoctypeName(e) {
+ if (Wo(e)) this._createDoctypeToken(String.fromCharCode(Jo(e))), this.state = Ko.DOCTYPE_NAME;
+ else switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), this._createDoctypeToken("�"), this.state = Ko.DOCTYPE_NAME;
+ break;
+ case io.GREATER_THAN_SIGN: {
+ this._err(Eo.missingDoctypeName), this._createDoctypeToken(null);
+ const e = this.currentToken;
+ e.forceQuirks = !0, this.emitCurrentDoctype(e), this.state = Ko.DATA;
+ break
+ }
+ case io.EOF: {
+ this._err(Eo.eofInDoctype), this._createDoctypeToken(null);
+ const e = this.currentToken;
+ e.forceQuirks = !0, this.emitCurrentDoctype(e), this._emitEOFToken();
+ break
+ }
+ default:
+ this._createDoctypeToken(String.fromCodePoint(e)), this.state = Ko.DOCTYPE_NAME
+ }
+ }
+ _stateDoctypeName(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ this.state = Ko.AFTER_DOCTYPE_NAME;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.DATA, this.emitCurrentDoctype(t);
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), t.name += "�";
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ t.name += String.fromCodePoint(Wo(e) ? Jo(e) : e)
+ }
+ }
+ _stateAfterDoctypeName(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ break;
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.DATA, this.emitCurrentDoctype(t);
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ this._consumeSequenceIfMatch(lo, !1) ? this.state = Ko.AFTER_DOCTYPE_PUBLIC_KEYWORD : this._consumeSequenceIfMatch(ho, !1) ? this.state = Ko.AFTER_DOCTYPE_SYSTEM_KEYWORD : this._ensureHibernation() || (this._err(Eo.invalidCharacterSequenceAfterDoctypeName), t.forceQuirks = !0, this.state = Ko.BOGUS_DOCTYPE, this._stateBogusDoctype(e))
+ }
+ }
+ _stateAfterDoctypePublicKeyword(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ this.state = Ko.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;
+ break;
+ case io.QUOTATION_MARK:
+ this._err(Eo.missingWhitespaceAfterDoctypePublicKeyword), t.publicId = "", this.state = Ko.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
+ break;
+ case io.APOSTROPHE:
+ this._err(Eo.missingWhitespaceAfterDoctypePublicKeyword), t.publicId = "", this.state = Ko.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.missingDoctypePublicIdentifier), t.forceQuirks = !0, this.state = Ko.DATA, this.emitCurrentDoctype(t);
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.missingQuoteBeforeDoctypePublicIdentifier), t.forceQuirks = !0, this.state = Ko.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
+ }
+ }
+ _stateBeforeDoctypePublicIdentifier(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ break;
+ case io.QUOTATION_MARK:
+ t.publicId = "", this.state = Ko.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;
+ break;
+ case io.APOSTROPHE:
+ t.publicId = "", this.state = Ko.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.missingDoctypePublicIdentifier), t.forceQuirks = !0, this.state = Ko.DATA, this.emitCurrentDoctype(t);
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.missingQuoteBeforeDoctypePublicIdentifier), t.forceQuirks = !0, this.state = Ko.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
+ }
+ }
+ _stateDoctypePublicIdentifierDoubleQuoted(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.QUOTATION_MARK:
+ this.state = Ko.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), t.publicId += "�";
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.abruptDoctypePublicIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = Ko.DATA;
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ t.publicId += String.fromCodePoint(e)
+ }
+ }
+ _stateDoctypePublicIdentifierSingleQuoted(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.APOSTROPHE:
+ this.state = Ko.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), t.publicId += "�";
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.abruptDoctypePublicIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = Ko.DATA;
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ t.publicId += String.fromCodePoint(e)
+ }
+ }
+ _stateAfterDoctypePublicIdentifier(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ this.state = Ko.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.DATA, this.emitCurrentDoctype(t);
+ break;
+ case io.QUOTATION_MARK:
+ this._err(Eo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), t.systemId = "", this.state = Ko.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
+ break;
+ case io.APOSTROPHE:
+ this._err(Eo.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers), t.systemId = "", this.state = Ko.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Ko.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
+ }
+ }
+ _stateBetweenDoctypePublicAndSystemIdentifiers(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ break;
+ case io.GREATER_THAN_SIGN:
+ this.emitCurrentDoctype(t), this.state = Ko.DATA;
+ break;
+ case io.QUOTATION_MARK:
+ t.systemId = "", this.state = Ko.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
+ break;
+ case io.APOSTROPHE:
+ t.systemId = "", this.state = Ko.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Ko.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
+ }
+ }
+ _stateAfterDoctypeSystemKeyword(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ this.state = Ko.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;
+ break;
+ case io.QUOTATION_MARK:
+ this._err(Eo.missingWhitespaceAfterDoctypeSystemKeyword), t.systemId = "", this.state = Ko.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
+ break;
+ case io.APOSTROPHE:
+ this._err(Eo.missingWhitespaceAfterDoctypeSystemKeyword), t.systemId = "", this.state = Ko.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.missingDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Ko.DATA, this.emitCurrentDoctype(t);
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Ko.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
+ }
+ }
+ _stateBeforeDoctypeSystemIdentifier(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ break;
+ case io.QUOTATION_MARK:
+ t.systemId = "", this.state = Ko.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;
+ break;
+ case io.APOSTROPHE:
+ t.systemId = "", this.state = Ko.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.missingDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Ko.DATA, this.emitCurrentDoctype(t);
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.missingQuoteBeforeDoctypeSystemIdentifier), t.forceQuirks = !0, this.state = Ko.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
+ }
+ }
+ _stateDoctypeSystemIdentifierDoubleQuoted(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.QUOTATION_MARK:
+ this.state = Ko.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), t.systemId += "�";
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.abruptDoctypeSystemIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = Ko.DATA;
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ t.systemId += String.fromCodePoint(e)
+ }
+ }
+ _stateDoctypeSystemIdentifierSingleQuoted(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.APOSTROPHE:
+ this.state = Ko.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter), t.systemId += "�";
+ break;
+ case io.GREATER_THAN_SIGN:
+ this._err(Eo.abruptDoctypeSystemIdentifier), t.forceQuirks = !0, this.emitCurrentDoctype(t), this.state = Ko.DATA;
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ t.systemId += String.fromCodePoint(e)
+ }
+ }
+ _stateAfterDoctypeSystemIdentifier(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.SPACE:
+ case io.LINE_FEED:
+ case io.TABULATION:
+ case io.FORM_FEED:
+ break;
+ case io.GREATER_THAN_SIGN:
+ this.emitCurrentDoctype(t), this.state = Ko.DATA;
+ break;
+ case io.EOF:
+ this._err(Eo.eofInDoctype), t.forceQuirks = !0, this.emitCurrentDoctype(t), this._emitEOFToken();
+ break;
+ default:
+ this._err(Eo.unexpectedCharacterAfterDoctypeSystemIdentifier), this.state = Ko.BOGUS_DOCTYPE, this._stateBogusDoctype(e)
+ }
+ }
+ _stateBogusDoctype(e) {
+ const t = this.currentToken;
+ switch (e) {
+ case io.GREATER_THAN_SIGN:
+ this.emitCurrentDoctype(t), this.state = Ko.DATA;
+ break;
+ case io.NULL:
+ this._err(Eo.unexpectedNullCharacter);
+ break;
+ case io.EOF:
+ this.emitCurrentDoctype(t), this._emitEOFToken()
+ }
+ }
+ _stateCdataSection(e) {
+ switch (e) {
+ case io.RIGHT_SQUARE_BRACKET:
+ this.state = Ko.CDATA_SECTION_BRACKET;
+ break;
+ case io.EOF:
+ this._err(Eo.eofInCdata), this._emitEOFToken();
+ break;
+ default:
+ this._emitCodePoint(e)
+ }
+ }
+ _stateCdataSectionBracket(e) {
+ e === io.RIGHT_SQUARE_BRACKET ? this.state = Ko.CDATA_SECTION_END : (this._emitChars("]"), this.state = Ko.CDATA_SECTION, this._stateCdataSection(e))
+ }
+ _stateCdataSectionEnd(e) {
+ switch (e) {
+ case io.GREATER_THAN_SIGN:
+ this.state = Ko.DATA;
+ break;
+ case io.RIGHT_SQUARE_BRACKET:
+ this._emitChars("]");
+ break;
+ default:
+ this._emitChars("]]"), this.state = Ko.CDATA_SECTION, this._stateCdataSection(e)
+ }
+ }
+ _stateCharacterReference(e) {
+ e === io.NUMBER_SIGN ? this.state = Ko.NUMERIC_CHARACTER_REFERENCE : Xo(e) ? (this.state = Ko.NAMED_CHARACTER_REFERENCE, this._stateNamedCharacterReference(e)) : (this._flushCodePointConsumedAsCharacterReference(io.AMPERSAND), this._reconsumeInState(this.returnState, e))
+ }
+ _stateNamedCharacterReference(e) {
+ const t = this._matchNamedCharacterReference(e);
+ if (this._ensureHibernation());
+ else if (t) {
+ for (let e = 0; e < t.length; e++) this._flushCodePointConsumedAsCharacterReference(t[e]);
+ this.state = this.returnState
+ } else this._flushCodePointConsumedAsCharacterReference(io.AMPERSAND), this.state = Ko.AMBIGUOUS_AMPERSAND
+ }
+ _stateAmbiguousAmpersand(e) {
+ Xo(e) ? this._flushCodePointConsumedAsCharacterReference(e) : (e === io.SEMICOLON && this._err(Eo.unknownNamedCharacterReference), this._reconsumeInState(this.returnState, e))
+ }
+ _stateNumericCharacterReference(e) {
+ this.charRefCode = 0, e === io.LATIN_SMALL_X || e === io.LATIN_CAPITAL_X ? this.state = Ko.HEXADEMICAL_CHARACTER_REFERENCE_START : Vo(e) ? (this.state = Ko.DECIMAL_CHARACTER_REFERENCE, this._stateDecimalCharacterReference(e)) : (this._err(Eo.absenceOfDigitsInNumericCharacterReference), this._flushCodePointConsumedAsCharacterReference(io.AMPERSAND), this._flushCodePointConsumedAsCharacterReference(io.NUMBER_SIGN), this._reconsumeInState(this.returnState, e))
+ }
+ _stateHexademicalCharacterReferenceStart(e) {
+ ! function(e) {
+ return Vo(e) || $o(e) || zo(e)
+ }(e) ? (this._err(Eo.absenceOfDigitsInNumericCharacterReference), this._flushCodePointConsumedAsCharacterReference(io.AMPERSAND), this._flushCodePointConsumedAsCharacterReference(io.NUMBER_SIGN), this._unconsume(2), this.state = this.returnState) : (this.state = Ko.HEXADEMICAL_CHARACTER_REFERENCE, this._stateHexademicalCharacterReference(e))
+ }
+ _stateHexademicalCharacterReference(e) {
+ $o(e) ? this.charRefCode = 16 * this.charRefCode + e - 55 : zo(e) ? this.charRefCode = 16 * this.charRefCode + e - 87 : Vo(e) ? this.charRefCode = 16 * this.charRefCode + e - 48 : e === io.SEMICOLON ? this.state = Ko.NUMERIC_CHARACTER_REFERENCE_END : (this._err(Eo.missingSemicolonAfterCharacterReference), this.state = Ko.NUMERIC_CHARACTER_REFERENCE_END, this._stateNumericCharacterReferenceEnd(e))
+ }
+ _stateDecimalCharacterReference(e) {
+ Vo(e) ? this.charRefCode = 10 * this.charRefCode + e - 48 : e === io.SEMICOLON ? this.state = Ko.NUMERIC_CHARACTER_REFERENCE_END : (this._err(Eo.missingSemicolonAfterCharacterReference), this.state = Ko.NUMERIC_CHARACTER_REFERENCE_END, this._stateNumericCharacterReferenceEnd(e))
+ }
+ _stateNumericCharacterReferenceEnd(e) {
+ if (this.charRefCode === io.NULL) this._err(Eo.nullCharacterReference), this.charRefCode = io.REPLACEMENT_CHARACTER;
+ else if (this.charRefCode > 1114111) this._err(Eo.characterReferenceOutsideUnicodeRange), this.charRefCode = io.REPLACEMENT_CHARACTER;
+ else if (uo(this.charRefCode)) this._err(Eo.surrogateCharacterReference), this.charRefCode = io.REPLACEMENT_CHARACTER;
+ else if (fo(this.charRefCode)) this._err(Eo.noncharacterCharacterReference);
+ else if (po(this.charRefCode) || this.charRefCode === io.CARRIAGE_RETURN) {
+ this._err(Eo.controlCharacterReference);
+ const e = qo.get(this.charRefCode);
+ void 0 !== e && (this.charRefCode = e)
+ }
+ this._flushCodePointConsumedAsCharacterReference(this.charRefCode), this._reconsumeInState(this.returnState, e)
+ }
+}
+const nc = new Set([Po.DD, Po.DT, Po.LI, Po.OPTGROUP, Po.OPTION, Po.P, Po.RB, Po.RP, Po.RT, Po.RTC]),
+ rc = new Set([...nc, Po.CAPTION, Po.COLGROUP, Po.TBODY, Po.TD, Po.TFOOT, Po.TH, Po.THEAD, Po.TR]),
+ ic = new Map([
+ [Po.APPLET, vo.HTML],
+ [Po.CAPTION, vo.HTML],
+ [Po.HTML, vo.HTML],
+ [Po.MARQUEE, vo.HTML],
+ [Po.OBJECT, vo.HTML],
+ [Po.TABLE, vo.HTML],
+ [Po.TD, vo.HTML],
+ [Po.TEMPLATE, vo.HTML],
+ [Po.TH, vo.HTML],
+ [Po.ANNOTATION_XML, vo.MATHML],
+ [Po.MI, vo.MATHML],
+ [Po.MN, vo.MATHML],
+ [Po.MO, vo.MATHML],
+ [Po.MS, vo.MATHML],
+ [Po.MTEXT, vo.MATHML],
+ [Po.DESC, vo.SVG],
+ [Po.FOREIGN_OBJECT, vo.SVG],
+ [Po.TITLE, vo.SVG]
+ ]),
+ sc = [Po.H1, Po.H2, Po.H3, Po.H4, Po.H5, Po.H6],
+ ac = [Po.TR, Po.TEMPLATE, Po.HTML],
+ oc = [Po.TBODY, Po.TFOOT, Po.THEAD, Po.TEMPLATE, Po.HTML],
+ cc = [Po.TABLE, Po.TEMPLATE, Po.HTML],
+ lc = [Po.TD, Po.TH];
+class hc {
+ constructor(e, t, n) {
+ this.treeAdapter = t, this.handler = n, this.items = [], this.tagIDs = [], this.stackTop = -1, this.tmplCount = 0, this.currentTagId = Po.UNKNOWN, this.current = e
+ }
+ get currentTmplContentOrNode() {
+ return this._isInTemplate() ? this.treeAdapter.getTemplateContent(this.current) : this.current
+ }
+ _indexOf(e) {
+ return this.items.lastIndexOf(e, this.stackTop)
+ }
+ _isInTemplate() {
+ return this.currentTagId === Po.TEMPLATE && this.treeAdapter.getNamespaceURI(this.current) === vo.HTML
+ }
+ _updateCurrentElement() {
+ this.current = this.items[this.stackTop], this.currentTagId = this.tagIDs[this.stackTop]
+ }
+ push(e, t) {
+ this.stackTop++, this.items[this.stackTop] = e, this.current = e, this.tagIDs[this.stackTop] = t, this.currentTagId = t, this._isInTemplate() && this.tmplCount++, this.handler.onItemPush(e, t, !0)
+ }
+ pop() {
+ const e = this.current;
+ this.tmplCount > 0 && this._isInTemplate() && this.tmplCount--, this.stackTop--, this._updateCurrentElement(), this.handler.onItemPop(e, !0)
+ }
+ replace(e, t) {
+ const n = this._indexOf(e);
+ this.items[n] = t, n === this.stackTop && (this.current = t)
+ }
+ insertAfter(e, t, n) {
+ const r = this._indexOf(e) + 1;
+ this.items.splice(r, 0, t), this.tagIDs.splice(r, 0, n), this.stackTop++, r === this.stackTop && this._updateCurrentElement(), this.handler.onItemPush(this.current, this.currentTagId, r === this.stackTop)
+ }
+ popUntilTagNamePopped(e) {
+ let t = this.stackTop + 1;
+ do {
+ t = this.tagIDs.lastIndexOf(e, t - 1)
+ } while (t > 0 && this.treeAdapter.getNamespaceURI(this.items[t]) !== vo.HTML);
+ this.shortenToLength(t < 0 ? 0 : t)
+ }
+ shortenToLength(e) {
+ for (; this.stackTop >= e;) {
+ const t = this.current;
+ this.tmplCount > 0 && this._isInTemplate() && (this.tmplCount -= 1), this.stackTop--, this._updateCurrentElement(), this.handler.onItemPop(t, this.stackTop < e)
+ }
+ }
+ popUntilElementPopped(e) {
+ const t = this._indexOf(e);
+ this.shortenToLength(t < 0 ? 0 : t)
+ }
+ popUntilPopped(e, t) {
+ const n = this._indexOfTagNames(e, t);
+ this.shortenToLength(n < 0 ? 0 : n)
+ }
+ popUntilNumberedHeaderPopped() {
+ this.popUntilPopped(sc, vo.HTML)
+ }
+ popUntilTableCellPopped() {
+ this.popUntilPopped(lc, vo.HTML)
+ }
+ popAllUpToHtmlElement() {
+ this.tmplCount = 0, this.shortenToLength(1)
+ }
+ _indexOfTagNames(e, t) {
+ for (let n = this.stackTop; n >= 0; n--)
+ if (e.includes(this.tagIDs[n]) && this.treeAdapter.getNamespaceURI(this.items[n]) === t) return n;
+ return -1
+ }
+ clearBackTo(e, t) {
+ const n = this._indexOfTagNames(e, t);
+ this.shortenToLength(n + 1)
+ }
+ clearBackToTableContext() {
+ this.clearBackTo(cc, vo.HTML)
+ }
+ clearBackToTableBodyContext() {
+ this.clearBackTo(oc, vo.HTML)
+ }
+ clearBackToTableRowContext() {
+ this.clearBackTo(ac, vo.HTML)
+ }
+ remove(e) {
+ const t = this._indexOf(e);
+ t >= 0 && (t === this.stackTop ? this.pop() : (this.items.splice(t, 1), this.tagIDs.splice(t, 1), this.stackTop--, this._updateCurrentElement(), this.handler.onItemPop(e, !1)))
+ }
+ tryPeekProperlyNestedBodyElement() {
+ return this.stackTop >= 1 && this.tagIDs[1] === Po.BODY ? this.items[1] : null
+ }
+ contains(e) {
+ return this._indexOf(e) > -1
+ }
+ getCommonAncestor(e) {
+ const t = this._indexOf(e) - 1;
+ return t >= 0 ? this.items[t] : null
+ }
+ isRootHtmlElementCurrent() {
+ return 0 === this.stackTop && this.tagIDs[0] === Po.HTML
+ }
+ hasInScope(e) {
+ for (let t = this.stackTop; t >= 0; t--) {
+ const n = this.tagIDs[t],
+ r = this.treeAdapter.getNamespaceURI(this.items[t]);
+ if (n === e && r === vo.HTML) return !0;
+ if (ic.get(n) === r) return !1
+ }
+ return !0
+ }
+ hasNumberedHeaderInScope() {
+ for (let e = this.stackTop; e >= 0; e--) {
+ const t = this.tagIDs[e],
+ n = this.treeAdapter.getNamespaceURI(this.items[e]);
+ if (Go(t) && n === vo.HTML) return !0;
+ if (ic.get(t) === n) return !1
+ }
+ return !0
+ }
+ hasInListItemScope(e) {
+ for (let t = this.stackTop; t >= 0; t--) {
+ const n = this.tagIDs[t],
+ r = this.treeAdapter.getNamespaceURI(this.items[t]);
+ if (n === e && r === vo.HTML) return !0;
+ if ((n === Po.UL || n === Po.OL) && r === vo.HTML || ic.get(n) === r) return !1
+ }
+ return !0
+ }
+ hasInButtonScope(e) {
+ for (let t = this.stackTop; t >= 0; t--) {
+ const n = this.tagIDs[t],
+ r = this.treeAdapter.getNamespaceURI(this.items[t]);
+ if (n === e && r === vo.HTML) return !0;
+ if (n === Po.BUTTON && r === vo.HTML || ic.get(n) === r) return !1
+ }
+ return !0
+ }
+ hasInTableScope(e) {
+ for (let t = this.stackTop; t >= 0; t--) {
+ const n = this.tagIDs[t];
+ if (this.treeAdapter.getNamespaceURI(this.items[t]) === vo.HTML) {
+ if (n === e) return !0;
+ if (n === Po.TABLE || n === Po.TEMPLATE || n === Po.HTML) return !1
+ }
+ }
+ return !0
+ }
+ hasTableBodyContextInTableScope() {
+ for (let e = this.stackTop; e >= 0; e--) {
+ const t = this.tagIDs[e];
+ if (this.treeAdapter.getNamespaceURI(this.items[e]) === vo.HTML) {
+ if (t === Po.TBODY || t === Po.THEAD || t === Po.TFOOT) return !0;
+ if (t === Po.TABLE || t === Po.HTML) return !1
+ }
+ }
+ return !0
+ }
+ hasInSelectScope(e) {
+ for (let t = this.stackTop; t >= 0; t--) {
+ const n = this.tagIDs[t];
+ if (this.treeAdapter.getNamespaceURI(this.items[t]) === vo.HTML) {
+ if (n === e) return !0;
+ if (n !== Po.OPTION && n !== Po.OPTGROUP) return !1
+ }
+ }
+ return !0
+ }
+ generateImpliedEndTags() {
+ for (; nc.has(this.currentTagId);) this.pop()
+ }
+ generateImpliedEndTagsThoroughly() {
+ for (; rc.has(this.currentTagId);) this.pop()
+ }
+ generateImpliedEndTagsWithExclusion(e) {
+ for (; this.currentTagId !== e && rc.has(this.currentTagId);) this.pop()
+ }
+}
+var uc;
+! function(e) {
+ e[e.Marker = 0] = "Marker", e[e.Element = 1] = "Element"
+}(uc = uc || (uc = {}));
+const pc = {
+ type: uc.Marker
+};
+class fc {
+ constructor(e) {
+ this.treeAdapter = e, this.entries = [], this.bookmark = null
+ }
+ _getNoahArkConditionCandidates(e, t) {
+ const n = [],
+ r = t.length,
+ i = this.treeAdapter.getTagName(e),
+ s = this.treeAdapter.getNamespaceURI(e);
+ for (let e = 0; e < this.entries.length; e++) {
+ const t = this.entries[e];
+ if (t.type === uc.Marker) break;
+ const {
+ element: a
+ } = t;
+ if (this.treeAdapter.getTagName(a) === i && this.treeAdapter.getNamespaceURI(a) === s) {
+ const t = this.treeAdapter.getAttrList(a);
+ t.length === r && n.push({
+ idx: e,
+ attrs: t
+ })
+ }
+ }
+ return n
+ }
+ _ensureNoahArkCondition(e) {
+ if (this.entries.length < 3) return;
+ const t = this.treeAdapter.getAttrList(e),
+ n = this._getNoahArkConditionCandidates(e, t);
+ if (n.length < 3) return;
+ const r = new Map(t.map((e => [e.name, e.value])));
+ let i = 0;
+ for (let e = 0; e < n.length; e++) {
+ const t = n[e];
+ t.attrs.every((e => r.get(e.name) === e.value)) && (i += 1, i >= 3 && this.entries.splice(t.idx, 1))
+ }
+ }
+ insertMarker() {
+ this.entries.unshift(pc)
+ }
+ pushElement(e, t) {
+ this._ensureNoahArkCondition(e), this.entries.unshift({
+ type: uc.Element,
+ element: e,
+ token: t
+ })
+ }
+ insertElementAfterBookmark(e, t) {
+ const n = this.entries.indexOf(this.bookmark);
+ this.entries.splice(n, 0, {
+ type: uc.Element,
+ element: e,
+ token: t
+ })
+ }
+ removeEntry(e) {
+ const t = this.entries.indexOf(e);
+ t >= 0 && this.entries.splice(t, 1)
+ }
+ clearToLastMarker() {
+ const e = this.entries.indexOf(pc);
+ e >= 0 ? this.entries.splice(0, e + 1) : this.entries.length = 0
+ }
+ getElementEntryInScopeWithTagName(e) {
+ const t = this.entries.find((t => t.type === uc.Marker || this.treeAdapter.getTagName(t.element) === e));
+ return t && t.type === uc.Element ? t : null
+ }
+ getElementEntry(e) {
+ return this.entries.find((t => t.type === uc.Element && t.element === e))
+ }
+}
+
+function dc(e) {
+ return {
+ nodeName: "#text",
+ value: e,
+ parentNode: null
+ }
+}
+const Ec = {
+ createDocument: () => ({
+ nodeName: "#document",
+ mode: Ro.NO_QUIRKS,
+ childNodes: []
+ }),
+ createDocumentFragment: () => ({
+ nodeName: "#document-fragment",
+ childNodes: []
+ }),
+ createElement: (e, t, n) => ({
+ nodeName: e,
+ tagName: e,
+ attrs: n,
+ namespaceURI: t,
+ childNodes: [],
+ parentNode: null
+ }),
+ createCommentNode: e => ({
+ nodeName: "#comment",
+ data: e,
+ parentNode: null
+ }),
+ appendChild(e, t) {
+ e.childNodes.push(t), t.parentNode = e
+ },
+ insertBefore(e, t, n) {
+ const r = e.childNodes.indexOf(n);
+ e.childNodes.splice(r, 0, t), t.parentNode = e
+ },
+ setTemplateContent(e, t) {
+ e.content = t
+ },
+ getTemplateContent: e => e.content,
+ setDocumentType(e, t, n, r) {
+ const i = e.childNodes.find((e => "#documentType" === e.nodeName));
+ if (i) i.name = t, i.publicId = n, i.systemId = r;
+ else {
+ const i = {
+ nodeName: "#documentType",
+ name: t,
+ publicId: n,
+ systemId: r,
+ parentNode: null
+ };
+ Ec.appendChild(e, i)
+ }
+ },
+ setDocumentMode(e, t) {
+ e.mode = t
+ },
+ getDocumentMode: e => e.mode,
+ detachNode(e) {
+ if (e.parentNode) {
+ const t = e.parentNode.childNodes.indexOf(e);
+ e.parentNode.childNodes.splice(t, 1), e.parentNode = null
+ }
+ },
+ insertText(e, t) {
+ if (e.childNodes.length > 0) {
+ const n = e.childNodes[e.childNodes.length - 1];
+ if (Ec.isTextNode(n)) return void(n.value += t)
+ }
+ Ec.appendChild(e, dc(t))
+ },
+ insertTextBefore(e, t, n) {
+ const r = e.childNodes[e.childNodes.indexOf(n) - 1];
+ r && Ec.isTextNode(r) ? r.value += t : Ec.insertBefore(e, dc(t), n)
+ },
+ adoptAttributes(e, t) {
+ const n = new Set(e.attrs.map((e => e.name)));
+ for (let r = 0; r < t.length; r++) n.has(t[r].name) || e.attrs.push(t[r])
+ },
+ getFirstChild: e => e.childNodes[0],
+ getChildNodes: e => e.childNodes,
+ getParentNode: e => e.parentNode,
+ getAttrList: e => e.attrs,
+ getTagName: e => e.tagName,
+ getNamespaceURI: e => e.namespaceURI,
+ getTextNodeContent: e => e.value,
+ getCommentNodeContent: e => e.data,
+ getDocumentTypeNodeName: e => e.name,
+ getDocumentTypeNodePublicId: e => e.publicId,
+ getDocumentTypeNodeSystemId: e => e.systemId,
+ isTextNode: e => "#text" === e.nodeName,
+ isCommentNode: e => "#comment" === e.nodeName,
+ isDocumentTypeNode: e => "#documentType" === e.nodeName,
+ isElementNode: e => Object.prototype.hasOwnProperty.call(e, "tagName"),
+ setNodeSourceCodeLocation(e, t) {
+ e.sourceCodeLocation = t
+ },
+ getNodeSourceCodeLocation: e => e.sourceCodeLocation,
+ updateNodeSourceCodeLocation(e, t) {
+ e.sourceCodeLocation = {
+ ...e.sourceCodeLocation,
+ ...t
+ }
+ }
+ },
+ mc = ["+//silmaril//dtd html pro v0r11 19970101//", "-//as//dtd html 3.0 aswedit + extensions//", "-//advasoft ltd//dtd html 3.0 aswedit + extensions//", "-//ietf//dtd html 2.0 level 1//", "-//ietf//dtd html 2.0 level 2//", "-//ietf//dtd html 2.0 strict level 1//", "-//ietf//dtd html 2.0 strict level 2//", "-//ietf//dtd html 2.0 strict//", "-//ietf//dtd html 2.0//", "-//ietf//dtd html 2.1e//", "-//ietf//dtd html 3.0//", "-//ietf//dtd html 3.2 final//", "-//ietf//dtd html 3.2//", "-//ietf//dtd html 3//", "-//ietf//dtd html level 0//", "-//ietf//dtd html level 1//", "-//ietf//dtd html level 2//", "-//ietf//dtd html level 3//", "-//ietf//dtd html strict level 0//", "-//ietf//dtd html strict level 1//", "-//ietf//dtd html strict level 2//", "-//ietf//dtd html strict level 3//", "-//ietf//dtd html strict//", "-//ietf//dtd html//", "-//metrius//dtd metrius presentational//", "-//microsoft//dtd internet explorer 2.0 html strict//", "-//microsoft//dtd internet explorer 2.0 html//", "-//microsoft//dtd internet explorer 2.0 tables//", "-//microsoft//dtd internet explorer 3.0 html strict//", "-//microsoft//dtd internet explorer 3.0 html//", "-//microsoft//dtd internet explorer 3.0 tables//", "-//netscape comm. corp.//dtd html//", "-//netscape comm. corp.//dtd strict html//", "-//o'reilly and associates//dtd html 2.0//", "-//o'reilly and associates//dtd html extended 1.0//", "-//o'reilly and associates//dtd html extended relaxed 1.0//", "-//sq//dtd html 2.0 hotmetal + extensions//", "-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//", "-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//", "-//spyglass//dtd html 2.0 extended//", "-//sun microsystems corp.//dtd hotjava html//", "-//sun microsystems corp.//dtd hotjava strict html//", "-//w3c//dtd html 3 1995-03-24//", "-//w3c//dtd html 3.2 draft//", "-//w3c//dtd html 3.2 final//", "-//w3c//dtd html 3.2//", "-//w3c//dtd html 3.2s draft//", "-//w3c//dtd html 4.0 frameset//", "-//w3c//dtd html 4.0 transitional//", "-//w3c//dtd html experimental 19960712//", "-//w3c//dtd html experimental 970421//", "-//w3c//dtd w3 html//", "-//w3o//dtd w3 html 3.0//", "-//webtechs//dtd mozilla html 2.0//", "-//webtechs//dtd mozilla html//"],
+ Tc = [...mc, "-//w3c//dtd html 4.01 frameset//", "-//w3c//dtd html 4.01 transitional//"],
+ _c = new Set(["-//w3o//dtd w3 html strict 3.0//en//", "-/w3c/dtd html 4.0 transitional/en", "html"]),
+ Ac = ["-//w3c//dtd xhtml 1.0 frameset//", "-//w3c//dtd xhtml 1.0 transitional//"],
+ gc = [...Ac, "-//w3c//dtd html 4.01 frameset//", "-//w3c//dtd html 4.01 transitional//"];
+
+function Nc(e, t) {
+ return t.some((t => e.startsWith(t)))
+}
+const Cc = "text/html",
+ Ic = "application/xhtml+xml",
+ Sc = new Map(["attributeName", "attributeType", "baseFrequency", "baseProfile", "calcMode", "clipPathUnits", "diffuseConstant", "edgeMode", "filterUnits", "glyphRef", "gradientTransform", "gradientUnits", "kernelMatrix", "kernelUnitLength", "keyPoints", "keySplines", "keyTimes", "lengthAdjust", "limitingConeAngle", "markerHeight", "markerUnits", "markerWidth", "maskContentUnits", "maskUnits", "numOctaves", "pathLength", "patternContentUnits", "patternTransform", "patternUnits", "pointsAtX", "pointsAtY", "pointsAtZ", "preserveAlpha", "preserveAspectRatio", "primitiveUnits", "refX", "refY", "repeatCount", "repeatDur", "requiredExtensions", "requiredFeatures", "specularConstant", "specularExponent", "spreadMethod", "startOffset", "stdDeviation", "stitchTiles", "surfaceScale", "systemLanguage", "tableValues", "targetX", "targetY", "textLength", "viewBox", "viewTarget", "xChannelSelector", "yChannelSelector", "zoomAndPan"].map((e => [e.toLowerCase(), e]))),
+ bc = new Map([
+ ["xlink:actuate", {
+ prefix: "xlink",
+ name: "actuate",
+ namespace: vo.XLINK
+ }],
+ ["xlink:arcrole", {
+ prefix: "xlink",
+ name: "arcrole",
+ namespace: vo.XLINK
+ }],
+ ["xlink:href", {
+ prefix: "xlink",
+ name: "href",
+ namespace: vo.XLINK
+ }],
+ ["xlink:role", {
+ prefix: "xlink",
+ name: "role",
+ namespace: vo.XLINK
+ }],
+ ["xlink:show", {
+ prefix: "xlink",
+ name: "show",
+ namespace: vo.XLINK
+ }],
+ ["xlink:title", {
+ prefix: "xlink",
+ name: "title",
+ namespace: vo.XLINK
+ }],
+ ["xlink:type", {
+ prefix: "xlink",
+ name: "type",
+ namespace: vo.XLINK
+ }],
+ ["xml:base", {
+ prefix: "xml",
+ name: "base",
+ namespace: vo.XML
+ }],
+ ["xml:lang", {
+ prefix: "xml",
+ name: "lang",
+ namespace: vo.XML
+ }],
+ ["xml:space", {
+ prefix: "xml",
+ name: "space",
+ namespace: vo.XML
+ }],
+ ["xmlns", {
+ prefix: "",
+ name: "xmlns",
+ namespace: vo.XMLNS
+ }],
+ ["xmlns:xlink", {
+ prefix: "xmlns",
+ name: "xlink",
+ namespace: vo.XMLNS
+ }]
+ ]),
+ Oc = new Map(["altGlyph", "altGlyphDef", "altGlyphItem", "animateColor", "animateMotion", "animateTransform", "clipPath", "feBlend", "feColorMatrix", "feComponentTransfer", "feComposite", "feConvolveMatrix", "feDiffuseLighting", "feDisplacementMap", "feDistantLight", "feFlood", "feFuncA", "feFuncB", "feFuncG", "feFuncR", "feGaussianBlur", "feImage", "feMerge", "feMergeNode", "feMorphology", "feOffset", "fePointLight", "feSpecularLighting", "feSpotLight", "feTile", "feTurbulence", "foreignObject", "glyphRef", "linearGradient", "radialGradient", "textPath"].map((e => [e.toLowerCase(), e]))),
+ yc = new Set([Po.B, Po.BIG, Po.BLOCKQUOTE, Po.BODY, Po.BR, Po.CENTER, Po.CODE, Po.DD, Po.DIV, Po.DL, Po.DT, Po.EM, Po.EMBED, Po.H1, Po.H2, Po.H3, Po.H4, Po.H5, Po.H6, Po.HEAD, Po.HR, Po.I, Po.IMG, Po.LI, Po.LISTING, Po.MENU, Po.META, Po.NOBR, Po.OL, Po.P, Po.PRE, Po.RUBY, Po.S, Po.SMALL, Po.SPAN, Po.STRONG, Po.STRIKE, Po.SUB, Po.SUP, Po.TABLE, Po.TT, Po.U, Po.UL, Po.VAR]);
+
+function Lc(e) {
+ for (let t = 0; t < e.attrs.length; t++)
+ if ("definitionurl" === e.attrs[t].name) {
+ e.attrs[t].name = "definitionURL";
+ break
+ }
+}
+
+function kc(e) {
+ for (let t = 0; t < e.attrs.length; t++) {
+ const n = Sc.get(e.attrs[t].name);
+ null != n && (e.attrs[t].name = n)
+ }
+}
+
+function vc(e) {
+ for (let t = 0; t < e.attrs.length; t++) {
+ const n = bc.get(e.attrs[t].name);
+ n && (e.attrs[t].prefix = n.prefix, e.attrs[t].name = n.name, e.attrs[t].namespace = n.namespace)
+ }
+}
+
+function Dc(e, t, n, r) {
+ return (!r || r === vo.HTML) && function(e, t, n) {
+ if (t === vo.MATHML && e === Po.ANNOTATION_XML)
+ for (let e = 0; e < n.length; e++)
+ if (n[e].name === Do.ENCODING) {
+ const t = n[e].value.toLowerCase();
+ return t === Cc || t === Ic
+ } return t === vo.SVG && (e === Po.FOREIGN_OBJECT || e === Po.DESC || e === Po.TITLE)
+ }(e, t, n) || (!r || r === vo.MATHML) && function(e, t) {
+ return t === vo.MATHML && (e === Po.MI || e === Po.MO || e === Po.MN || e === Po.MS || e === Po.MTEXT)
+ }(e, t)
+}
+var Rc;
+! function(e) {
+ e[e.INITIAL = 0] = "INITIAL", e[e.BEFORE_HTML = 1] = "BEFORE_HTML", e[e.BEFORE_HEAD = 2] = "BEFORE_HEAD", e[e.IN_HEAD = 3] = "IN_HEAD", e[e.IN_HEAD_NO_SCRIPT = 4] = "IN_HEAD_NO_SCRIPT", e[e.AFTER_HEAD = 5] = "AFTER_HEAD", e[e.IN_BODY = 6] = "IN_BODY", e[e.TEXT = 7] = "TEXT", e[e.IN_TABLE = 8] = "IN_TABLE", e[e.IN_TABLE_TEXT = 9] = "IN_TABLE_TEXT", e[e.IN_CAPTION = 10] = "IN_CAPTION", e[e.IN_COLUMN_GROUP = 11] = "IN_COLUMN_GROUP", e[e.IN_TABLE_BODY = 12] = "IN_TABLE_BODY", e[e.IN_ROW = 13] = "IN_ROW", e[e.IN_CELL = 14] = "IN_CELL", e[e.IN_SELECT = 15] = "IN_SELECT", e[e.IN_SELECT_IN_TABLE = 16] = "IN_SELECT_IN_TABLE", e[e.IN_TEMPLATE = 17] = "IN_TEMPLATE", e[e.AFTER_BODY = 18] = "AFTER_BODY", e[e.IN_FRAMESET = 19] = "IN_FRAMESET", e[e.AFTER_FRAMESET = 20] = "AFTER_FRAMESET", e[e.AFTER_AFTER_BODY = 21] = "AFTER_AFTER_BODY", e[e.AFTER_AFTER_FRAMESET = 22] = "AFTER_AFTER_FRAMESET"
+}(Rc || (Rc = {}));
+const Mc = {
+ startLine: -1,
+ startCol: -1,
+ startOffset: -1,
+ endLine: -1,
+ endCol: -1,
+ endOffset: -1
+ },
+ Pc = new Set([Po.TABLE, Po.TBODY, Po.TFOOT, Po.THEAD, Po.TR]),
+ xc = {
+ scriptingEnabled: !0,
+ sourceCodeLocationInfo: !1,
+ treeAdapter: Ec,
+ onParseError: null
+ };
+class wc {
+ constructor(e, t, n = null, r = null) {
+ this.fragmentContext = n, this.scriptHandler = r, this.currentToken = null, this.stopped = !1, this.insertionMode = Rc.INITIAL, this.originalInsertionMode = Rc.INITIAL, this.headElement = null, this.formElement = null, this.currentNotInHTML = !1, this.tmplInsertionModeStack = [], this.pendingCharacterTokens = [], this.hasNonWhitespacePendingCharacterToken = !1, this.framesetOk = !0, this.skipNextNewLine = !1, this.fosterParentingEnabled = !1, this.options = {
+ ...xc,
+ ...e
+ }, this.treeAdapter = this.options.treeAdapter, this.onParseError = this.options.onParseError, this.onParseError && (this.options.sourceCodeLocationInfo = !0), this.document = null != t ? t : this.treeAdapter.createDocument(), this.tokenizer = new tc(this.options, this), this.activeFormattingElements = new fc(this.treeAdapter), this.fragmentContextID = n ? Fo(this.treeAdapter.getTagName(n)) : Po.UNKNOWN, this._setContextModes(null != n ? n : this.document, this.fragmentContextID), this.openElements = new hc(this.document, this.treeAdapter, this)
+ }
+ static parse(e, t) {
+ const n = new this(t);
+ return n.tokenizer.write(e, !0), n.document
+ }
+ static getFragmentParser(e, t) {
+ const n = {
+ ...xc,
+ ...t
+ };
+ null != e || (e = n.treeAdapter.createElement(Mo.TEMPLATE, vo.HTML, []));
+ const r = n.treeAdapter.createElement("documentmock", vo.HTML, []),
+ i = new this(n, r, e);
+ return i.fragmentContextID === Po.TEMPLATE && i.tmplInsertionModeStack.unshift(Rc.IN_TEMPLATE), i._initTokenizerForFragmentParsing(), i._insertFakeRootElement(), i._resetInsertionMode(), i._findFormInFragmentContext(), i
+ }
+ getFragment() {
+ const e = this.treeAdapter.getFirstChild(this.document),
+ t = this.treeAdapter.createDocumentFragment();
+ return this._adoptNodes(e, t), t
+ }
+ _err(e, t, n) {
+ var r;
+ if (!this.onParseError) return;
+ const i = null !== (r = e.location) && void 0 !== r ? r : Mc,
+ s = {
+ code: t,
+ startLine: i.startLine,
+ startCol: i.startCol,
+ startOffset: i.startOffset,
+ endLine: n ? i.startLine : i.endLine,
+ endCol: n ? i.startCol : i.endCol,
+ endOffset: n ? i.startOffset : i.endOffset
+ };
+ this.onParseError(s)
+ }
+ onItemPush(e, t, n) {
+ var r, i;
+ null === (i = (r = this.treeAdapter).onItemPush) || void 0 === i || i.call(r, e), n && this.openElements.stackTop > 0 && this._setContextModes(e, t)
+ }
+ onItemPop(e, t) {
+ var n, r;
+ if (this.options.sourceCodeLocationInfo && this._setEndLocation(e, this.currentToken), null === (r = (n = this.treeAdapter).onItemPop) || void 0 === r || r.call(n, e, this.openElements.current), t) {
+ let e, t;
+ 0 === this.openElements.stackTop && this.fragmentContext ? (e = this.fragmentContext, t = this.fragmentContextID) : ({
+ current: e,
+ currentTagId: t
+ } = this.openElements), this._setContextModes(e, t)
+ }
+ }
+ _setContextModes(e, t) {
+ const n = e === this.document || this.treeAdapter.getNamespaceURI(e) === vo.HTML;
+ this.currentNotInHTML = !n, this.tokenizer.inForeignNode = !n && !this._isIntegrationPoint(t, e)
+ }
+ _switchToTextParsing(e, t) {
+ this._insertElement(e, vo.HTML), this.tokenizer.state = t, this.originalInsertionMode = this.insertionMode, this.insertionMode = Rc.TEXT
+ }
+ switchToPlaintextParsing() {
+ this.insertionMode = Rc.TEXT, this.originalInsertionMode = Rc.IN_BODY, this.tokenizer.state = jo.PLAINTEXT
+ }
+ _getAdjustedCurrentElement() {
+ return 0 === this.openElements.stackTop && this.fragmentContext ? this.fragmentContext : this.openElements.current
+ }
+ _findFormInFragmentContext() {
+ let e = this.fragmentContext;
+ for (; e;) {
+ if (this.treeAdapter.getTagName(e) === Mo.FORM) {
+ this.formElement = e;
+ break
+ }
+ e = this.treeAdapter.getParentNode(e)
+ }
+ }
+ _initTokenizerForFragmentParsing() {
+ if (this.fragmentContext && this.treeAdapter.getNamespaceURI(this.fragmentContext) === vo.HTML) switch (this.fragmentContextID) {
+ case Po.TITLE:
+ case Po.TEXTAREA:
+ this.tokenizer.state = jo.RCDATA;
+ break;
+ case Po.STYLE:
+ case Po.XMP:
+ case Po.IFRAME:
+ case Po.NOEMBED:
+ case Po.NOFRAMES:
+ case Po.NOSCRIPT:
+ this.tokenizer.state = jo.RAWTEXT;
+ break;
+ case Po.SCRIPT:
+ this.tokenizer.state = jo.SCRIPT_DATA;
+ break;
+ case Po.PLAINTEXT:
+ this.tokenizer.state = jo.PLAINTEXT
+ }
+ }
+ _setDocumentType(e) {
+ const t = e.name || "",
+ n = e.publicId || "",
+ r = e.systemId || "";
+ if (this.treeAdapter.setDocumentType(this.document, t, n, r), e.location) {
+ const t = this.treeAdapter.getChildNodes(this.document).find((e => this.treeAdapter.isDocumentTypeNode(e)));
+ t && this.treeAdapter.setNodeSourceCodeLocation(t, e.location)
+ }
+ }
+ _attachElementToTree(e, t) {
+ if (this.options.sourceCodeLocationInfo) {
+ const n = t && {
+ ...t,
+ startTag: t
+ };
+ this.treeAdapter.setNodeSourceCodeLocation(e, n)
+ }
+ if (this._shouldFosterParentOnInsertion()) this._fosterParentElement(e);
+ else {
+ const t = this.openElements.currentTmplContentOrNode;
+ this.treeAdapter.appendChild(t, e)
+ }
+ }
+ _appendElement(e, t) {
+ const n = this.treeAdapter.createElement(e.tagName, t, e.attrs);
+ this._attachElementToTree(n, e.location)
+ }
+ _insertElement(e, t) {
+ const n = this.treeAdapter.createElement(e.tagName, t, e.attrs);
+ this._attachElementToTree(n, e.location), this.openElements.push(n, e.tagID)
+ }
+ _insertFakeElement(e, t) {
+ const n = this.treeAdapter.createElement(e, vo.HTML, []);
+ this._attachElementToTree(n, null), this.openElements.push(n, t)
+ }
+ _insertTemplate(e) {
+ const t = this.treeAdapter.createElement(e.tagName, vo.HTML, e.attrs),
+ n = this.treeAdapter.createDocumentFragment();
+ this.treeAdapter.setTemplateContent(t, n), this._attachElementToTree(t, e.location), this.openElements.push(t, e.tagID), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(n, null)
+ }
+ _insertFakeRootElement() {
+ const e = this.treeAdapter.createElement(Mo.HTML, vo.HTML, []);
+ this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(e, null), this.treeAdapter.appendChild(this.openElements.current, e), this.openElements.push(e, Po.HTML)
+ }
+ _appendCommentNode(e, t) {
+ const n = this.treeAdapter.createCommentNode(e.data);
+ this.treeAdapter.appendChild(t, n), this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(n, e.location)
+ }
+ _insertCharacters(e) {
+ let t, n;
+ if (this._shouldFosterParentOnInsertion() ? (({
+ parent: t,
+ beforeElement: n
+ } = this._findFosterParentingLocation()), n ? this.treeAdapter.insertTextBefore(t, e.chars, n) : this.treeAdapter.insertText(t, e.chars)) : (t = this.openElements.currentTmplContentOrNode, this.treeAdapter.insertText(t, e.chars)), !e.location) return;
+ const r = this.treeAdapter.getChildNodes(t),
+ i = n ? r.lastIndexOf(n) : r.length,
+ s = r[i - 1];
+ if (this.treeAdapter.getNodeSourceCodeLocation(s)) {
+ const {
+ endLine: t,
+ endCol: n,
+ endOffset: r
+ } = e.location;
+ this.treeAdapter.updateNodeSourceCodeLocation(s, {
+ endLine: t,
+ endCol: n,
+ endOffset: r
+ })
+ } else this.options.sourceCodeLocationInfo && this.treeAdapter.setNodeSourceCodeLocation(s, e.location)
+ }
+ _adoptNodes(e, t) {
+ for (let n = this.treeAdapter.getFirstChild(e); n; n = this.treeAdapter.getFirstChild(e)) this.treeAdapter.detachNode(n), this.treeAdapter.appendChild(t, n)
+ }
+ _setEndLocation(e, t) {
+ if (this.treeAdapter.getNodeSourceCodeLocation(e) && t.location) {
+ const n = t.location,
+ r = this.treeAdapter.getTagName(e),
+ i = t.type === To.END_TAG && r === t.tagName ? {
+ endTag: {
+ ...n
+ },
+ endLine: n.endLine,
+ endCol: n.endCol,
+ endOffset: n.endOffset
+ } : {
+ endLine: n.startLine,
+ endCol: n.startCol,
+ endOffset: n.startOffset
+ };
+ this.treeAdapter.updateNodeSourceCodeLocation(e, i)
+ }
+ }
+ shouldProcessStartTagTokenInForeignContent(e) {
+ if (!this.currentNotInHTML) return !1;
+ let t, n;
+ return 0 === this.openElements.stackTop && this.fragmentContext ? (t = this.fragmentContext, n = this.fragmentContextID) : ({
+ current: t,
+ currentTagId: n
+ } = this.openElements), (e.tagID !== Po.SVG || this.treeAdapter.getTagName(t) !== Mo.ANNOTATION_XML || this.treeAdapter.getNamespaceURI(t) !== vo.MATHML) && (this.tokenizer.inForeignNode || (e.tagID === Po.MGLYPH || e.tagID === Po.MALIGNMARK) && !this._isIntegrationPoint(n, t, vo.HTML))
+ }
+ _processToken(e) {
+ switch (e.type) {
+ case To.CHARACTER:
+ this.onCharacter(e);
+ break;
+ case To.NULL_CHARACTER:
+ this.onNullCharacter(e);
+ break;
+ case To.COMMENT:
+ this.onComment(e);
+ break;
+ case To.DOCTYPE:
+ this.onDoctype(e);
+ break;
+ case To.START_TAG:
+ this._processStartTag(e);
+ break;
+ case To.END_TAG:
+ this.onEndTag(e);
+ break;
+ case To.EOF:
+ this.onEof(e);
+ break;
+ case To.WHITESPACE_CHARACTER:
+ this.onWhitespaceCharacter(e)
+ }
+ }
+ _isIntegrationPoint(e, t, n) {
+ return Dc(e, this.treeAdapter.getNamespaceURI(t), this.treeAdapter.getAttrList(t), n)
+ }
+ _reconstructActiveFormattingElements() {
+ const e = this.activeFormattingElements.entries.length;
+ if (e) {
+ const t = this.activeFormattingElements.entries.findIndex((e => e.type === uc.Marker || this.openElements.contains(e.element)));
+ for (let n = t < 0 ? e - 1 : t - 1; n >= 0; n--) {
+ const e = this.activeFormattingElements.entries[n];
+ this._insertElement(e.token, this.treeAdapter.getNamespaceURI(e.element)), e.element = this.openElements.current
+ }
+ }
+ }
+ _closeTableCell() {
+ this.openElements.generateImpliedEndTags(), this.openElements.popUntilTableCellPopped(), this.activeFormattingElements.clearToLastMarker(), this.insertionMode = Rc.IN_ROW
+ }
+ _closePElement() {
+ this.openElements.generateImpliedEndTagsWithExclusion(Po.P), this.openElements.popUntilTagNamePopped(Po.P)
+ }
+ _resetInsertionMode() {
+ for (let e = this.openElements.stackTop; e >= 0; e--) switch (0 === e && this.fragmentContext ? this.fragmentContextID : this.openElements.tagIDs[e]) {
+ case Po.TR:
+ return void(this.insertionMode = Rc.IN_ROW);
+ case Po.TBODY:
+ case Po.THEAD:
+ case Po.TFOOT:
+ return void(this.insertionMode = Rc.IN_TABLE_BODY);
+ case Po.CAPTION:
+ return void(this.insertionMode = Rc.IN_CAPTION);
+ case Po.COLGROUP:
+ return void(this.insertionMode = Rc.IN_COLUMN_GROUP);
+ case Po.TABLE:
+ return void(this.insertionMode = Rc.IN_TABLE);
+ case Po.BODY:
+ return void(this.insertionMode = Rc.IN_BODY);
+ case Po.FRAMESET:
+ return void(this.insertionMode = Rc.IN_FRAMESET);
+ case Po.SELECT:
+ return void this._resetInsertionModeForSelect(e);
+ case Po.TEMPLATE:
+ return void(this.insertionMode = this.tmplInsertionModeStack[0]);
+ case Po.HTML:
+ return void(this.insertionMode = this.headElement ? Rc.AFTER_HEAD : Rc.BEFORE_HEAD);
+ case Po.TD:
+ case Po.TH:
+ if (e > 0) return void(this.insertionMode = Rc.IN_CELL);
+ break;
+ case Po.HEAD:
+ if (e > 0) return void(this.insertionMode = Rc.IN_HEAD)
+ }
+ this.insertionMode = Rc.IN_BODY
+ }
+ _resetInsertionModeForSelect(e) {
+ if (e > 0)
+ for (let t = e - 1; t > 0; t--) {
+ const e = this.openElements.tagIDs[t];
+ if (e === Po.TEMPLATE) break;
+ if (e === Po.TABLE) return void(this.insertionMode = Rc.IN_SELECT_IN_TABLE)
+ }
+ this.insertionMode = Rc.IN_SELECT
+ }
+ _isElementCausesFosterParenting(e) {
+ return Pc.has(e)
+ }
+ _shouldFosterParentOnInsertion() {
+ return this.fosterParentingEnabled && this._isElementCausesFosterParenting(this.openElements.currentTagId)
+ }
+ _findFosterParentingLocation() {
+ for (let e = this.openElements.stackTop; e >= 0; e--) {
+ const t = this.openElements.items[e];
+ switch (this.openElements.tagIDs[e]) {
+ case Po.TEMPLATE:
+ if (this.treeAdapter.getNamespaceURI(t) === vo.HTML) return {
+ parent: this.treeAdapter.getTemplateContent(t),
+ beforeElement: null
+ };
+ break;
+ case Po.TABLE: {
+ const n = this.treeAdapter.getParentNode(t);
+ return n ? {
+ parent: n,
+ beforeElement: t
+ } : {
+ parent: this.openElements.items[e - 1],
+ beforeElement: null
+ }
+ }
+ }
+ }
+ return {
+ parent: this.openElements.items[0],
+ beforeElement: null
+ }
+ }
+ _fosterParentElement(e) {
+ const t = this._findFosterParentingLocation();
+ t.beforeElement ? this.treeAdapter.insertBefore(t.parent, e, t.beforeElement) : this.treeAdapter.appendChild(t.parent, e)
+ }
+ _isSpecialElement(e, t) {
+ const n = this.treeAdapter.getNamespaceURI(e);
+ return Ho[n].has(t)
+ }
+ onCharacter(e) {
+ if (this.skipNextNewLine = !1, this.tokenizer.inForeignNode) ! function(e, t) {
+ e._insertCharacters(t), e.framesetOk = !1
+ }(this, e);
+ else switch (this.insertionMode) {
+ case Rc.INITIAL:
+ Vc(this, e);
+ break;
+ case Rc.BEFORE_HTML:
+ Wc(this, e);
+ break;
+ case Rc.BEFORE_HEAD:
+ Qc(this, e);
+ break;
+ case Rc.IN_HEAD:
+ zc(this, e);
+ break;
+ case Rc.IN_HEAD_NO_SCRIPT:
+ Jc(this, e);
+ break;
+ case Rc.AFTER_HEAD:
+ Zc(this, e);
+ break;
+ case Rc.IN_BODY:
+ case Rc.IN_CAPTION:
+ case Rc.IN_CELL:
+ case Rc.IN_TEMPLATE:
+ nl(this, e);
+ break;
+ case Rc.TEXT:
+ case Rc.IN_SELECT:
+ case Rc.IN_SELECT_IN_TABLE:
+ this._insertCharacters(e);
+ break;
+ case Rc.IN_TABLE:
+ case Rc.IN_TABLE_BODY:
+ case Rc.IN_ROW:
+ ul(this, e);
+ break;
+ case Rc.IN_TABLE_TEXT:
+ ml(this, e);
+ break;
+ case Rc.IN_COLUMN_GROUP:
+ gl(this, e);
+ break;
+ case Rc.AFTER_BODY:
+ kl(this, e);
+ break;
+ case Rc.AFTER_AFTER_BODY:
+ vl(this, e)
+ }
+ }
+ onNullCharacter(e) {
+ if (this.skipNextNewLine = !1, this.tokenizer.inForeignNode) ! function(e, t) {
+ t.chars = "�", e._insertCharacters(t)
+ }(this, e);
+ else switch (this.insertionMode) {
+ case Rc.INITIAL:
+ Vc(this, e);
+ break;
+ case Rc.BEFORE_HTML:
+ Wc(this, e);
+ break;
+ case Rc.BEFORE_HEAD:
+ Qc(this, e);
+ break;
+ case Rc.IN_HEAD:
+ zc(this, e);
+ break;
+ case Rc.IN_HEAD_NO_SCRIPT:
+ Jc(this, e);
+ break;
+ case Rc.AFTER_HEAD:
+ Zc(this, e);
+ break;
+ case Rc.TEXT:
+ this._insertCharacters(e);
+ break;
+ case Rc.IN_TABLE:
+ case Rc.IN_TABLE_BODY:
+ case Rc.IN_ROW:
+ ul(this, e);
+ break;
+ case Rc.IN_COLUMN_GROUP:
+ gl(this, e);
+ break;
+ case Rc.AFTER_BODY:
+ kl(this, e);
+ break;
+ case Rc.AFTER_AFTER_BODY:
+ vl(this, e)
+ }
+ }
+ onComment(e) {
+ if (this.skipNextNewLine = !1, this.currentNotInHTML) Kc(this, e);
+ else switch (this.insertionMode) {
+ case Rc.INITIAL:
+ case Rc.BEFORE_HTML:
+ case Rc.BEFORE_HEAD:
+ case Rc.IN_HEAD:
+ case Rc.IN_HEAD_NO_SCRIPT:
+ case Rc.AFTER_HEAD:
+ case Rc.IN_BODY:
+ case Rc.IN_TABLE:
+ case Rc.IN_CAPTION:
+ case Rc.IN_COLUMN_GROUP:
+ case Rc.IN_TABLE_BODY:
+ case Rc.IN_ROW:
+ case Rc.IN_CELL:
+ case Rc.IN_SELECT:
+ case Rc.IN_SELECT_IN_TABLE:
+ case Rc.IN_TEMPLATE:
+ case Rc.IN_FRAMESET:
+ case Rc.AFTER_FRAMESET:
+ Kc(this, e);
+ break;
+ case Rc.IN_TABLE_TEXT:
+ Tl(this, e);
+ break;
+ case Rc.AFTER_BODY:
+ ! function(e, t) {
+ e._appendCommentNode(t, e.openElements.items[0])
+ }(this, e);
+ break;
+ case Rc.AFTER_AFTER_BODY:
+ case Rc.AFTER_AFTER_FRAMESET:
+ ! function(e, t) {
+ e._appendCommentNode(t, e.document)
+ }(this, e)
+ }
+ }
+ onDoctype(e) {
+ switch (this.skipNextNewLine = !1, this.insertionMode) {
+ case Rc.INITIAL:
+ ! function(e, t) {
+ e._setDocumentType(t);
+ const n = t.forceQuirks ? Ro.QUIRKS : function(e) {
+ if ("html" !== e.name) return Ro.QUIRKS;
+ const {
+ systemId: t
+ } = e;
+ if (t && "http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd" === t.toLowerCase()) return Ro.QUIRKS;
+ let {
+ publicId: n
+ } = e;
+ if (null !== n) {
+ if (n = n.toLowerCase(), _c.has(n)) return Ro.QUIRKS;
+ let e = null === t ? Tc : mc;
+ if (Nc(n, e)) return Ro.QUIRKS;
+ if (e = null === t ? Ac : gc, Nc(n, e)) return Ro.LIMITED_QUIRKS
+ }
+ return Ro.NO_QUIRKS
+ }(t);
+ (function(e) {
+ return "html" === e.name && null === e.publicId && (null === e.systemId || "about:legacy-compat" === e.systemId)
+ })(t) || e._err(t, Eo.nonConformingDoctype);
+ e.treeAdapter.setDocumentMode(e.document, n), e.insertionMode = Rc.BEFORE_HTML
+ }(this, e);
+ break;
+ case Rc.BEFORE_HEAD:
+ case Rc.IN_HEAD:
+ case Rc.IN_HEAD_NO_SCRIPT:
+ case Rc.AFTER_HEAD:
+ this._err(e, Eo.misplacedDoctype);
+ break;
+ case Rc.IN_TABLE_TEXT:
+ Tl(this, e)
+ }
+ }
+ onStartTag(e) {
+ this.skipNextNewLine = !1, this.currentToken = e, this._processStartTag(e), e.selfClosing && !e.ackSelfClosing && this._err(e, Eo.nonVoidHtmlElementStartTagWithTrailingSolidus)
+ }
+ _processStartTag(e) {
+ this.shouldProcessStartTagTokenInForeignContent(e) ? function(e, t) {
+ if (function(e) {
+ const t = e.tagID;
+ return t === Po.FONT && e.attrs.some((({
+ name: e
+ }) => e === Do.COLOR || e === Do.SIZE || e === Do.FACE)) || yc.has(t)
+ }(t)) Dl(e), e._startTagOutsideForeignContent(t);
+ else {
+ const n = e._getAdjustedCurrentElement(),
+ r = e.treeAdapter.getNamespaceURI(n);
+ r === vo.MATHML ? Lc(t) : r === vo.SVG && (! function(e) {
+ const t = Oc.get(e.tagName);
+ null != t && (e.tagName = t, e.tagID = Fo(e.tagName))
+ }(t), kc(t)), vc(t), t.selfClosing ? e._appendElement(t, r) : e._insertElement(t, r), t.ackSelfClosing = !0
+ }
+ }(this, e) : this._startTagOutsideForeignContent(e)
+ }
+ _startTagOutsideForeignContent(e) {
+ switch (this.insertionMode) {
+ case Rc.INITIAL:
+ Vc(this, e);
+ break;
+ case Rc.BEFORE_HTML:
+ ! function(e, t) {
+ t.tagID === Po.HTML ? (e._insertElement(t, vo.HTML), e.insertionMode = Rc.BEFORE_HEAD) : Wc(e, t)
+ }(this, e);
+ break;
+ case Rc.BEFORE_HEAD:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.HTML:
+ ol(e, t);
+ break;
+ case Po.HEAD:
+ e._insertElement(t, vo.HTML), e.headElement = e.openElements.current, e.insertionMode = Rc.IN_HEAD;
+ break;
+ default:
+ Qc(e, t)
+ }
+ }(this, e);
+ break;
+ case Rc.IN_HEAD:
+ Xc(this, e);
+ break;
+ case Rc.IN_HEAD_NO_SCRIPT:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.HTML:
+ ol(e, t);
+ break;
+ case Po.BASEFONT:
+ case Po.BGSOUND:
+ case Po.HEAD:
+ case Po.LINK:
+ case Po.META:
+ case Po.NOFRAMES:
+ case Po.STYLE:
+ Xc(e, t);
+ break;
+ case Po.NOSCRIPT:
+ e._err(t, Eo.nestedNoscriptInHead);
+ break;
+ default:
+ Jc(e, t)
+ }
+ }(this, e);
+ break;
+ case Rc.AFTER_HEAD:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.HTML:
+ ol(e, t);
+ break;
+ case Po.BODY:
+ e._insertElement(t, vo.HTML), e.framesetOk = !1, e.insertionMode = Rc.IN_BODY;
+ break;
+ case Po.FRAMESET:
+ e._insertElement(t, vo.HTML), e.insertionMode = Rc.IN_FRAMESET;
+ break;
+ case Po.BASE:
+ case Po.BASEFONT:
+ case Po.BGSOUND:
+ case Po.LINK:
+ case Po.META:
+ case Po.NOFRAMES:
+ case Po.SCRIPT:
+ case Po.STYLE:
+ case Po.TEMPLATE:
+ case Po.TITLE:
+ e._err(t, Eo.abandonedHeadElementChild), e.openElements.push(e.headElement, Po.HEAD), Xc(e, t), e.openElements.remove(e.headElement);
+ break;
+ case Po.HEAD:
+ e._err(t, Eo.misplacedStartTagForHeadElement);
+ break;
+ default:
+ Zc(e, t)
+ }
+ }(this, e);
+ break;
+ case Rc.IN_BODY:
+ ol(this, e);
+ break;
+ case Rc.IN_TABLE:
+ pl(this, e);
+ break;
+ case Rc.IN_TABLE_TEXT:
+ Tl(this, e);
+ break;
+ case Rc.IN_CAPTION:
+ ! function(e, t) {
+ const n = t.tagID;
+ _l.has(n) ? e.openElements.hasInTableScope(Po.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(Po.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Rc.IN_TABLE, pl(e, t)) : ol(e, t)
+ }(this, e);
+ break;
+ case Rc.IN_COLUMN_GROUP:
+ Al(this, e);
+ break;
+ case Rc.IN_TABLE_BODY:
+ Nl(this, e);
+ break;
+ case Rc.IN_ROW:
+ Il(this, e);
+ break;
+ case Rc.IN_CELL:
+ ! function(e, t) {
+ const n = t.tagID;
+ _l.has(n) ? (e.openElements.hasInTableScope(Po.TD) || e.openElements.hasInTableScope(Po.TH)) && (e._closeTableCell(), Il(e, t)) : ol(e, t)
+ }(this, e);
+ break;
+ case Rc.IN_SELECT:
+ bl(this, e);
+ break;
+ case Rc.IN_SELECT_IN_TABLE:
+ ! function(e, t) {
+ const n = t.tagID;
+ n === Po.CAPTION || n === Po.TABLE || n === Po.TBODY || n === Po.TFOOT || n === Po.THEAD || n === Po.TR || n === Po.TD || n === Po.TH ? (e.openElements.popUntilTagNamePopped(Po.SELECT), e._resetInsertionMode(), e._processStartTag(t)) : bl(e, t)
+ }(this, e);
+ break;
+ case Rc.IN_TEMPLATE:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.BASE:
+ case Po.BASEFONT:
+ case Po.BGSOUND:
+ case Po.LINK:
+ case Po.META:
+ case Po.NOFRAMES:
+ case Po.SCRIPT:
+ case Po.STYLE:
+ case Po.TEMPLATE:
+ case Po.TITLE:
+ Xc(e, t);
+ break;
+ case Po.CAPTION:
+ case Po.COLGROUP:
+ case Po.TBODY:
+ case Po.TFOOT:
+ case Po.THEAD:
+ e.tmplInsertionModeStack[0] = Rc.IN_TABLE, e.insertionMode = Rc.IN_TABLE, pl(e, t);
+ break;
+ case Po.COL:
+ e.tmplInsertionModeStack[0] = Rc.IN_COLUMN_GROUP, e.insertionMode = Rc.IN_COLUMN_GROUP, Al(e, t);
+ break;
+ case Po.TR:
+ e.tmplInsertionModeStack[0] = Rc.IN_TABLE_BODY, e.insertionMode = Rc.IN_TABLE_BODY, Nl(e, t);
+ break;
+ case Po.TD:
+ case Po.TH:
+ e.tmplInsertionModeStack[0] = Rc.IN_ROW, e.insertionMode = Rc.IN_ROW, Il(e, t);
+ break;
+ default:
+ e.tmplInsertionModeStack[0] = Rc.IN_BODY, e.insertionMode = Rc.IN_BODY, ol(e, t)
+ }
+ }(this, e);
+ break;
+ case Rc.AFTER_BODY:
+ ! function(e, t) {
+ t.tagID === Po.HTML ? ol(e, t) : kl(e, t)
+ }(this, e);
+ break;
+ case Rc.IN_FRAMESET:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.HTML:
+ ol(e, t);
+ break;
+ case Po.FRAMESET:
+ e._insertElement(t, vo.HTML);
+ break;
+ case Po.FRAME:
+ e._appendElement(t, vo.HTML), t.ackSelfClosing = !0;
+ break;
+ case Po.NOFRAMES:
+ Xc(e, t)
+ }
+ }(this, e);
+ break;
+ case Rc.AFTER_FRAMESET:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.HTML:
+ ol(e, t);
+ break;
+ case Po.NOFRAMES:
+ Xc(e, t)
+ }
+ }(this, e);
+ break;
+ case Rc.AFTER_AFTER_BODY:
+ ! function(e, t) {
+ t.tagID === Po.HTML ? ol(e, t) : vl(e, t)
+ }(this, e);
+ break;
+ case Rc.AFTER_AFTER_FRAMESET:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.HTML:
+ ol(e, t);
+ break;
+ case Po.NOFRAMES:
+ Xc(e, t)
+ }
+ }(this, e)
+ }
+ }
+ onEndTag(e) {
+ this.skipNextNewLine = !1, this.currentToken = e, this.currentNotInHTML ? function(e, t) {
+ if (t.tagID === Po.P || t.tagID === Po.BR) return Dl(e), void e._endTagOutsideForeignContent(t);
+ for (let n = e.openElements.stackTop; n > 0; n--) {
+ const r = e.openElements.items[n];
+ if (e.treeAdapter.getNamespaceURI(r) === vo.HTML) {
+ e._endTagOutsideForeignContent(t);
+ break
+ }
+ const i = e.treeAdapter.getTagName(r);
+ if (i.toLowerCase() === t.tagName) {
+ t.tagName = i, e.openElements.shortenToLength(n);
+ break
+ }
+ }
+ }(this, e) : this._endTagOutsideForeignContent(e)
+ }
+ _endTagOutsideForeignContent(e) {
+ switch (this.insertionMode) {
+ case Rc.INITIAL:
+ Vc(this, e);
+ break;
+ case Rc.BEFORE_HTML:
+ ! function(e, t) {
+ const n = t.tagID;
+ n !== Po.HTML && n !== Po.HEAD && n !== Po.BODY && n !== Po.BR || Wc(e, t)
+ }(this, e);
+ break;
+ case Rc.BEFORE_HEAD:
+ ! function(e, t) {
+ const n = t.tagID;
+ n === Po.HEAD || n === Po.BODY || n === Po.HTML || n === Po.BR ? Qc(e, t) : e._err(t, Eo.endTagWithoutMatchingOpenElement)
+ }(this, e);
+ break;
+ case Rc.IN_HEAD:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.HEAD:
+ e.openElements.pop(), e.insertionMode = Rc.AFTER_HEAD;
+ break;
+ case Po.BODY:
+ case Po.BR:
+ case Po.HTML:
+ zc(e, t);
+ break;
+ case Po.TEMPLATE:
+ $c(e, t);
+ break;
+ default:
+ e._err(t, Eo.endTagWithoutMatchingOpenElement)
+ }
+ }(this, e);
+ break;
+ case Rc.IN_HEAD_NO_SCRIPT:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.NOSCRIPT:
+ e.openElements.pop(), e.insertionMode = Rc.IN_HEAD;
+ break;
+ case Po.BR:
+ Jc(e, t);
+ break;
+ default:
+ e._err(t, Eo.endTagWithoutMatchingOpenElement)
+ }
+ }(this, e);
+ break;
+ case Rc.AFTER_HEAD:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.BODY:
+ case Po.HTML:
+ case Po.BR:
+ Zc(e, t);
+ break;
+ case Po.TEMPLATE:
+ $c(e, t);
+ break;
+ default:
+ e._err(t, Eo.endTagWithoutMatchingOpenElement)
+ }
+ }(this, e);
+ break;
+ case Rc.IN_BODY:
+ ll(this, e);
+ break;
+ case Rc.TEXT:
+ ! function(e, t) {
+ var n;
+ t.tagID === Po.SCRIPT && (null === (n = e.scriptHandler) || void 0 === n || n.call(e, e.openElements.current));
+ e.openElements.pop(), e.insertionMode = e.originalInsertionMode
+ }(this, e);
+ break;
+ case Rc.IN_TABLE:
+ fl(this, e);
+ break;
+ case Rc.IN_TABLE_TEXT:
+ Tl(this, e);
+ break;
+ case Rc.IN_CAPTION:
+ ! function(e, t) {
+ const n = t.tagID;
+ switch (n) {
+ case Po.CAPTION:
+ case Po.TABLE:
+ e.openElements.hasInTableScope(Po.CAPTION) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(Po.CAPTION), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Rc.IN_TABLE, n === Po.TABLE && fl(e, t));
+ break;
+ case Po.BODY:
+ case Po.COL:
+ case Po.COLGROUP:
+ case Po.HTML:
+ case Po.TBODY:
+ case Po.TD:
+ case Po.TFOOT:
+ case Po.TH:
+ case Po.THEAD:
+ case Po.TR:
+ break;
+ default:
+ ll(e, t)
+ }
+ }(this, e);
+ break;
+ case Rc.IN_COLUMN_GROUP:
+ ! function(e, t) {
+ switch (t.tagID) {
+ case Po.COLGROUP:
+ e.openElements.currentTagId === Po.COLGROUP && (e.openElements.pop(), e.insertionMode = Rc.IN_TABLE);
+ break;
+ case Po.TEMPLATE:
+ $c(e, t);
+ break;
+ case Po.COL:
+ break;
+ default:
+ gl(e, t)
+ }
+ }(this, e);
+ break;
+ case Rc.IN_TABLE_BODY:
+ Cl(this, e);
+ break;
+ case Rc.IN_ROW:
+ Sl(this, e);
+ break;
+ case Rc.IN_CELL:
+ ! function(e, t) {
+ const n = t.tagID;
+ switch (n) {
+ case Po.TD:
+ case Po.TH:
+ e.openElements.hasInTableScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker(), e.insertionMode = Rc.IN_ROW);
+ break;
+ case Po.TABLE:
+ case Po.TBODY:
+ case Po.TFOOT:
+ case Po.THEAD:
+ case Po.TR:
+ e.openElements.hasInTableScope(n) && (e._closeTableCell(), Sl(e, t));
+ break;
+ case Po.BODY:
+ case Po.CAPTION:
+ case Po.COL:
+ case Po.COLGROUP:
+ case Po.HTML:
+ break;
+ default:
+ ll(e, t)
+ }
+ }(this, e);
+ break;
+ case Rc.IN_SELECT:
+ Ol(this, e);
+ break;
+ case Rc.IN_SELECT_IN_TABLE:
+ ! function(e, t) {
+ const n = t.tagID;
+ n === Po.CAPTION || n === Po.TABLE || n === Po.TBODY || n === Po.TFOOT || n === Po.THEAD || n === Po.TR || n === Po.TD || n === Po.TH ? e.openElements.hasInTableScope(n) && (e.openElements.popUntilTagNamePopped(Po.SELECT), e._resetInsertionMode(), e.onEndTag(t)) : Ol(e, t)
+ }(this, e);
+ break;
+ case Rc.IN_TEMPLATE:
+ ! function(e, t) {
+ t.tagID === Po.TEMPLATE && $c(e, t)
+ }(this, e);
+ break;
+ case Rc.AFTER_BODY:
+ Ll(this, e);
+ break;
+ case Rc.IN_FRAMESET:
+ ! function(e, t) {
+ t.tagID !== Po.FRAMESET || e.openElements.isRootHtmlElementCurrent() || (e.openElements.pop(), e.fragmentContext || e.openElements.currentTagId === Po.FRAMESET || (e.insertionMode = Rc.AFTER_FRAMESET))
+ }(this, e);
+ break;
+ case Rc.AFTER_FRAMESET:
+ ! function(e, t) {
+ t.tagID === Po.HTML && (e.insertionMode = Rc.AFTER_AFTER_FRAMESET)
+ }(this, e);
+ break;
+ case Rc.AFTER_AFTER_BODY:
+ vl(this, e)
+ }
+ }
+ onEof(e) {
+ switch (this.insertionMode) {
+ case Rc.INITIAL:
+ Vc(this, e);
+ break;
+ case Rc.BEFORE_HTML:
+ Wc(this, e);
+ break;
+ case Rc.BEFORE_HEAD:
+ Qc(this, e);
+ break;
+ case Rc.IN_HEAD:
+ zc(this, e);
+ break;
+ case Rc.IN_HEAD_NO_SCRIPT:
+ Jc(this, e);
+ break;
+ case Rc.AFTER_HEAD:
+ Zc(this, e);
+ break;
+ case Rc.IN_BODY:
+ case Rc.IN_TABLE:
+ case Rc.IN_CAPTION:
+ case Rc.IN_COLUMN_GROUP:
+ case Rc.IN_TABLE_BODY:
+ case Rc.IN_ROW:
+ case Rc.IN_CELL:
+ case Rc.IN_SELECT:
+ case Rc.IN_SELECT_IN_TABLE:
+ hl(this, e);
+ break;
+ case Rc.TEXT:
+ ! function(e, t) {
+ e._err(t, Eo.eofInElementThatCanContainOnlyText), e.openElements.pop(), e.insertionMode = e.originalInsertionMode, e.onEof(t)
+ }(this, e);
+ break;
+ case Rc.IN_TABLE_TEXT:
+ Tl(this, e);
+ break;
+ case Rc.IN_TEMPLATE:
+ yl(this, e);
+ break;
+ case Rc.AFTER_BODY:
+ case Rc.IN_FRAMESET:
+ case Rc.AFTER_FRAMESET:
+ case Rc.AFTER_AFTER_BODY:
+ case Rc.AFTER_AFTER_FRAMESET:
+ jc(this, e)
+ }
+ }
+ onWhitespaceCharacter(e) {
+ if (this.skipNextNewLine && (this.skipNextNewLine = !1, e.chars.charCodeAt(0) === io.LINE_FEED)) {
+ if (1 === e.chars.length) return;
+ e.chars = e.chars.substr(1)
+ }
+ if (this.tokenizer.inForeignNode) this._insertCharacters(e);
+ else switch (this.insertionMode) {
+ case Rc.IN_HEAD:
+ case Rc.IN_HEAD_NO_SCRIPT:
+ case Rc.AFTER_HEAD:
+ case Rc.TEXT:
+ case Rc.IN_COLUMN_GROUP:
+ case Rc.IN_SELECT:
+ case Rc.IN_SELECT_IN_TABLE:
+ case Rc.IN_FRAMESET:
+ case Rc.AFTER_FRAMESET:
+ this._insertCharacters(e);
+ break;
+ case Rc.IN_BODY:
+ case Rc.IN_CAPTION:
+ case Rc.IN_CELL:
+ case Rc.IN_TEMPLATE:
+ case Rc.AFTER_BODY:
+ case Rc.AFTER_AFTER_BODY:
+ case Rc.AFTER_AFTER_FRAMESET:
+ tl(this, e);
+ break;
+ case Rc.IN_TABLE:
+ case Rc.IN_TABLE_BODY:
+ case Rc.IN_ROW:
+ ul(this, e);
+ break;
+ case Rc.IN_TABLE_TEXT:
+ El(this, e)
+ }
+ }
+}
+
+function Bc(e, t) {
+ let n = e.activeFormattingElements.getElementEntryInScopeWithTagName(t.tagName);
+ return n ? e.openElements.contains(n.element) ? e.openElements.hasInScope(t.tagID) || (n = null) : (e.activeFormattingElements.removeEntry(n), n = null) : cl(e, t), n
+}
+
+function Fc(e, t) {
+ let n = null,
+ r = e.openElements.stackTop;
+ for (; r >= 0; r--) {
+ const i = e.openElements.items[r];
+ if (i === t.element) break;
+ e._isSpecialElement(i, e.openElements.tagIDs[r]) && (n = i)
+ }
+ return n || (e.openElements.shortenToLength(r < 0 ? 0 : r), e.activeFormattingElements.removeEntry(t)), n
+}
+
+function Uc(e, t, n) {
+ let r = t,
+ i = e.openElements.getCommonAncestor(t);
+ for (let s = 0, a = i; a !== n; s++, a = i) {
+ i = e.openElements.getCommonAncestor(a);
+ const n = e.activeFormattingElements.getElementEntry(a),
+ o = n && s >= 3;
+ !n || o ? (o && e.activeFormattingElements.removeEntry(n), e.openElements.remove(a)) : (a = Hc(e, n), r === t && (e.activeFormattingElements.bookmark = n), e.treeAdapter.detachNode(r), e.treeAdapter.appendChild(a, r), r = a)
+ }
+ return r
+}
+
+function Hc(e, t) {
+ const n = e.treeAdapter.getNamespaceURI(t.element),
+ r = e.treeAdapter.createElement(t.token.tagName, n, t.token.attrs);
+ return e.openElements.replace(t.element, r), t.element = r, r
+}
+
+function Gc(e, t, n) {
+ const r = Fo(e.treeAdapter.getTagName(t));
+ if (e._isElementCausesFosterParenting(r)) e._fosterParentElement(n);
+ else {
+ const i = e.treeAdapter.getNamespaceURI(t);
+ r === Po.TEMPLATE && i === vo.HTML && (t = e.treeAdapter.getTemplateContent(t)), e.treeAdapter.appendChild(t, n)
+ }
+}
+
+function Yc(e, t, n) {
+ const r = e.treeAdapter.getNamespaceURI(n.element),
+ {
+ token: i
+ } = n,
+ s = e.treeAdapter.createElement(i.tagName, r, i.attrs);
+ e._adoptNodes(t, s), e.treeAdapter.appendChild(t, s), e.activeFormattingElements.insertElementAfterBookmark(s, i), e.activeFormattingElements.removeEntry(n), e.openElements.remove(n.element), e.openElements.insertAfter(t, s, i.tagID)
+}
+
+function qc(e, t) {
+ for (let n = 0; n < 8; n++) {
+ const n = Bc(e, t);
+ if (!n) break;
+ const r = Fc(e, n);
+ if (!r) break;
+ e.activeFormattingElements.bookmark = n;
+ const i = Uc(e, r, n.element),
+ s = e.openElements.getCommonAncestor(n.element);
+ e.treeAdapter.detachNode(i), s && Gc(e, s, i), Yc(e, r, n)
+ }
+}
+
+function Kc(e, t) {
+ e._appendCommentNode(t, e.openElements.currentTmplContentOrNode)
+}
+
+function jc(e, t) {
+ if (e.stopped = !0, t.location) {
+ const n = e.fragmentContext ? 0 : 2;
+ for (let r = e.openElements.stackTop; r >= n; r--) e._setEndLocation(e.openElements.items[r], t);
+ if (!e.fragmentContext && e.openElements.stackTop >= 0) {
+ const n = e.openElements.items[0],
+ r = e.treeAdapter.getNodeSourceCodeLocation(n);
+ if (r && !r.endTag && (e._setEndLocation(n, t), e.openElements.stackTop >= 1)) {
+ const n = e.openElements.items[1],
+ r = e.treeAdapter.getNodeSourceCodeLocation(n);
+ r && !r.endTag && e._setEndLocation(n, t)
+ }
+ }
+ }
+}
+
+function Vc(e, t) {
+ e._err(t, Eo.missingDoctype, !0), e.treeAdapter.setDocumentMode(e.document, Ro.QUIRKS), e.insertionMode = Rc.BEFORE_HTML, e._processToken(t)
+}
+
+function Wc(e, t) {
+ e._insertFakeRootElement(), e.insertionMode = Rc.BEFORE_HEAD, e._processToken(t)
+}
+
+function Qc(e, t) {
+ e._insertFakeElement(Mo.HEAD, Po.HEAD), e.headElement = e.openElements.current, e.insertionMode = Rc.IN_HEAD, e._processToken(t)
+}
+
+function Xc(e, t) {
+ switch (t.tagID) {
+ case Po.HTML:
+ ol(e, t);
+ break;
+ case Po.BASE:
+ case Po.BASEFONT:
+ case Po.BGSOUND:
+ case Po.LINK:
+ case Po.META:
+ e._appendElement(t, vo.HTML), t.ackSelfClosing = !0;
+ break;
+ case Po.TITLE:
+ e._switchToTextParsing(t, jo.RCDATA);
+ break;
+ case Po.NOSCRIPT:
+ e.options.scriptingEnabled ? e._switchToTextParsing(t, jo.RAWTEXT) : (e._insertElement(t, vo.HTML), e.insertionMode = Rc.IN_HEAD_NO_SCRIPT);
+ break;
+ case Po.NOFRAMES:
+ case Po.STYLE:
+ e._switchToTextParsing(t, jo.RAWTEXT);
+ break;
+ case Po.SCRIPT:
+ e._switchToTextParsing(t, jo.SCRIPT_DATA);
+ break;
+ case Po.TEMPLATE:
+ e._insertTemplate(t), e.activeFormattingElements.insertMarker(), e.framesetOk = !1, e.insertionMode = Rc.IN_TEMPLATE, e.tmplInsertionModeStack.unshift(Rc.IN_TEMPLATE);
+ break;
+ case Po.HEAD:
+ e._err(t, Eo.misplacedStartTagForHeadElement);
+ break;
+ default:
+ zc(e, t)
+ }
+}
+
+function $c(e, t) {
+ e.openElements.tmplCount > 0 ? (e.openElements.generateImpliedEndTagsThoroughly(), e.openElements.currentTagId !== Po.TEMPLATE && e._err(t, Eo.closingOfElementWithOpenChildElements), e.openElements.popUntilTagNamePopped(Po.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode()) : e._err(t, Eo.endTagWithoutMatchingOpenElement)
+}
+
+function zc(e, t) {
+ e.openElements.pop(), e.insertionMode = Rc.AFTER_HEAD, e._processToken(t)
+}
+
+function Jc(e, t) {
+ const n = t.type === To.EOF ? Eo.openElementsLeftAfterEof : Eo.disallowedContentInNoscriptInHead;
+ e._err(t, n), e.openElements.pop(), e.insertionMode = Rc.IN_HEAD, e._processToken(t)
+}
+
+function Zc(e, t) {
+ e._insertFakeElement(Mo.BODY, Po.BODY), e.insertionMode = Rc.IN_BODY, el(e, t)
+}
+
+function el(e, t) {
+ switch (t.type) {
+ case To.CHARACTER:
+ nl(e, t);
+ break;
+ case To.WHITESPACE_CHARACTER:
+ tl(e, t);
+ break;
+ case To.COMMENT:
+ Kc(e, t);
+ break;
+ case To.START_TAG:
+ ol(e, t);
+ break;
+ case To.END_TAG:
+ ll(e, t);
+ break;
+ case To.EOF:
+ hl(e, t)
+ }
+}
+
+function tl(e, t) {
+ e._reconstructActiveFormattingElements(), e._insertCharacters(t)
+}
+
+function nl(e, t) {
+ e._reconstructActiveFormattingElements(), e._insertCharacters(t), e.framesetOk = !1
+}
+
+function rl(e, t) {
+ e._reconstructActiveFormattingElements(), e._appendElement(t, vo.HTML), e.framesetOk = !1, t.ackSelfClosing = !0
+}
+
+function il(e) {
+ const t = _o(e, Do.TYPE);
+ return null != t && "hidden" === t.toLowerCase()
+}
+
+function sl(e, t) {
+ e._switchToTextParsing(t, jo.RAWTEXT)
+}
+
+function al(e, t) {
+ e._reconstructActiveFormattingElements(), e._insertElement(t, vo.HTML)
+}
+
+function ol(e, t) {
+ switch (t.tagID) {
+ case Po.I:
+ case Po.S:
+ case Po.B:
+ case Po.U:
+ case Po.EM:
+ case Po.TT:
+ case Po.BIG:
+ case Po.CODE:
+ case Po.FONT:
+ case Po.SMALL:
+ case Po.STRIKE:
+ case Po.STRONG:
+ ! function(e, t) {
+ e._reconstructActiveFormattingElements(), e._insertElement(t, vo.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t)
+ }(e, t);
+ break;
+ case Po.A:
+ ! function(e, t) {
+ const n = e.activeFormattingElements.getElementEntryInScopeWithTagName(Mo.A);
+ n && (qc(e, t), e.openElements.remove(n.element), e.activeFormattingElements.removeEntry(n)), e._reconstructActiveFormattingElements(), e._insertElement(t, vo.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t)
+ }(e, t);
+ break;
+ case Po.H1:
+ case Po.H2:
+ case Po.H3:
+ case Po.H4:
+ case Po.H5:
+ case Po.H6:
+ ! function(e, t) {
+ e.openElements.hasInButtonScope(Po.P) && e._closePElement(), Go(e.openElements.currentTagId) && e.openElements.pop(), e._insertElement(t, vo.HTML)
+ }(e, t);
+ break;
+ case Po.P:
+ case Po.DL:
+ case Po.OL:
+ case Po.UL:
+ case Po.DIV:
+ case Po.DIR:
+ case Po.NAV:
+ case Po.MAIN:
+ case Po.MENU:
+ case Po.ASIDE:
+ case Po.CENTER:
+ case Po.FIGURE:
+ case Po.FOOTER:
+ case Po.HEADER:
+ case Po.HGROUP:
+ case Po.DIALOG:
+ case Po.DETAILS:
+ case Po.ADDRESS:
+ case Po.ARTICLE:
+ case Po.SECTION:
+ case Po.SUMMARY:
+ case Po.FIELDSET:
+ case Po.BLOCKQUOTE:
+ case Po.FIGCAPTION:
+ ! function(e, t) {
+ e.openElements.hasInButtonScope(Po.P) && e._closePElement(), e._insertElement(t, vo.HTML)
+ }(e, t);
+ break;
+ case Po.LI:
+ case Po.DD:
+ case Po.DT:
+ ! function(e, t) {
+ e.framesetOk = !1;
+ const n = t.tagID;
+ for (let t = e.openElements.stackTop; t >= 0; t--) {
+ const r = e.openElements.tagIDs[t];
+ if (n === Po.LI && r === Po.LI || (n === Po.DD || n === Po.DT) && (r === Po.DD || r === Po.DT)) {
+ e.openElements.generateImpliedEndTagsWithExclusion(r), e.openElements.popUntilTagNamePopped(r);
+ break
+ }
+ if (r !== Po.ADDRESS && r !== Po.DIV && r !== Po.P && e._isSpecialElement(e.openElements.items[t], r)) break
+ }
+ e.openElements.hasInButtonScope(Po.P) && e._closePElement(), e._insertElement(t, vo.HTML)
+ }(e, t);
+ break;
+ case Po.BR:
+ case Po.IMG:
+ case Po.WBR:
+ case Po.AREA:
+ case Po.EMBED:
+ case Po.KEYGEN:
+ rl(e, t);
+ break;
+ case Po.HR:
+ ! function(e, t) {
+ e.openElements.hasInButtonScope(Po.P) && e._closePElement(), e._appendElement(t, vo.HTML), e.framesetOk = !1, t.ackSelfClosing = !0
+ }(e, t);
+ break;
+ case Po.RB:
+ case Po.RTC:
+ ! function(e, t) {
+ e.openElements.hasInScope(Po.RUBY) && e.openElements.generateImpliedEndTags(), e._insertElement(t, vo.HTML)
+ }(e, t);
+ break;
+ case Po.RT:
+ case Po.RP:
+ ! function(e, t) {
+ e.openElements.hasInScope(Po.RUBY) && e.openElements.generateImpliedEndTagsWithExclusion(Po.RTC), e._insertElement(t, vo.HTML)
+ }(e, t);
+ break;
+ case Po.PRE:
+ case Po.LISTING:
+ ! function(e, t) {
+ e.openElements.hasInButtonScope(Po.P) && e._closePElement(), e._insertElement(t, vo.HTML), e.skipNextNewLine = !0, e.framesetOk = !1
+ }(e, t);
+ break;
+ case Po.XMP:
+ ! function(e, t) {
+ e.openElements.hasInButtonScope(Po.P) && e._closePElement(), e._reconstructActiveFormattingElements(), e.framesetOk = !1, e._switchToTextParsing(t, jo.RAWTEXT)
+ }(e, t);
+ break;
+ case Po.SVG:
+ ! function(e, t) {
+ e._reconstructActiveFormattingElements(), kc(t), vc(t), t.selfClosing ? e._appendElement(t, vo.SVG) : e._insertElement(t, vo.SVG), t.ackSelfClosing = !0
+ }(e, t);
+ break;
+ case Po.HTML:
+ ! function(e, t) {
+ 0 === e.openElements.tmplCount && e.treeAdapter.adoptAttributes(e.openElements.items[0], t.attrs)
+ }(e, t);
+ break;
+ case Po.BASE:
+ case Po.LINK:
+ case Po.META:
+ case Po.STYLE:
+ case Po.TITLE:
+ case Po.SCRIPT:
+ case Po.BGSOUND:
+ case Po.BASEFONT:
+ case Po.TEMPLATE:
+ Xc(e, t);
+ break;
+ case Po.BODY:
+ ! function(e, t) {
+ const n = e.openElements.tryPeekProperlyNestedBodyElement();
+ n && 0 === e.openElements.tmplCount && (e.framesetOk = !1, e.treeAdapter.adoptAttributes(n, t.attrs))
+ }(e, t);
+ break;
+ case Po.FORM:
+ ! function(e, t) {
+ const n = e.openElements.tmplCount > 0;
+ e.formElement && !n || (e.openElements.hasInButtonScope(Po.P) && e._closePElement(), e._insertElement(t, vo.HTML), n || (e.formElement = e.openElements.current))
+ }(e, t);
+ break;
+ case Po.NOBR:
+ ! function(e, t) {
+ e._reconstructActiveFormattingElements(), e.openElements.hasInScope(Po.NOBR) && (qc(e, t), e._reconstructActiveFormattingElements()), e._insertElement(t, vo.HTML), e.activeFormattingElements.pushElement(e.openElements.current, t)
+ }(e, t);
+ break;
+ case Po.MATH:
+ ! function(e, t) {
+ e._reconstructActiveFormattingElements(), Lc(t), vc(t), t.selfClosing ? e._appendElement(t, vo.MATHML) : e._insertElement(t, vo.MATHML), t.ackSelfClosing = !0
+ }(e, t);
+ break;
+ case Po.TABLE:
+ ! function(e, t) {
+ e.treeAdapter.getDocumentMode(e.document) !== Ro.QUIRKS && e.openElements.hasInButtonScope(Po.P) && e._closePElement(), e._insertElement(t, vo.HTML), e.framesetOk = !1, e.insertionMode = Rc.IN_TABLE
+ }(e, t);
+ break;
+ case Po.INPUT:
+ ! function(e, t) {
+ e._reconstructActiveFormattingElements(), e._appendElement(t, vo.HTML), il(t) || (e.framesetOk = !1), t.ackSelfClosing = !0
+ }(e, t);
+ break;
+ case Po.PARAM:
+ case Po.TRACK:
+ case Po.SOURCE:
+ ! function(e, t) {
+ e._appendElement(t, vo.HTML), t.ackSelfClosing = !0
+ }(e, t);
+ break;
+ case Po.IMAGE:
+ ! function(e, t) {
+ t.tagName = Mo.IMG, t.tagID = Po.IMG, rl(e, t)
+ }(e, t);
+ break;
+ case Po.BUTTON:
+ ! function(e, t) {
+ e.openElements.hasInScope(Po.BUTTON) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(Po.BUTTON)), e._reconstructActiveFormattingElements(), e._insertElement(t, vo.HTML), e.framesetOk = !1
+ }(e, t);
+ break;
+ case Po.APPLET:
+ case Po.OBJECT:
+ case Po.MARQUEE:
+ ! function(e, t) {
+ e._reconstructActiveFormattingElements(), e._insertElement(t, vo.HTML), e.activeFormattingElements.insertMarker(), e.framesetOk = !1
+ }(e, t);
+ break;
+ case Po.IFRAME:
+ ! function(e, t) {
+ e.framesetOk = !1, e._switchToTextParsing(t, jo.RAWTEXT)
+ }(e, t);
+ break;
+ case Po.SELECT:
+ ! function(e, t) {
+ e._reconstructActiveFormattingElements(), e._insertElement(t, vo.HTML), e.framesetOk = !1, e.insertionMode = e.insertionMode === Rc.IN_TABLE || e.insertionMode === Rc.IN_CAPTION || e.insertionMode === Rc.IN_TABLE_BODY || e.insertionMode === Rc.IN_ROW || e.insertionMode === Rc.IN_CELL ? Rc.IN_SELECT_IN_TABLE : Rc.IN_SELECT
+ }(e, t);
+ break;
+ case Po.OPTION:
+ case Po.OPTGROUP:
+ ! function(e, t) {
+ e.openElements.currentTagId === Po.OPTION && e.openElements.pop(), e._reconstructActiveFormattingElements(), e._insertElement(t, vo.HTML)
+ }(e, t);
+ break;
+ case Po.NOEMBED:
+ sl(e, t);
+ break;
+ case Po.FRAMESET:
+ ! function(e, t) {
+ const n = e.openElements.tryPeekProperlyNestedBodyElement();
+ e.framesetOk && n && (e.treeAdapter.detachNode(n), e.openElements.popAllUpToHtmlElement(), e._insertElement(t, vo.HTML), e.insertionMode = Rc.IN_FRAMESET)
+ }(e, t);
+ break;
+ case Po.TEXTAREA:
+ ! function(e, t) {
+ e._insertElement(t, vo.HTML), e.skipNextNewLine = !0, e.tokenizer.state = jo.RCDATA, e.originalInsertionMode = e.insertionMode, e.framesetOk = !1, e.insertionMode = Rc.TEXT
+ }(e, t);
+ break;
+ case Po.NOSCRIPT:
+ e.options.scriptingEnabled ? sl(e, t) : al(e, t);
+ break;
+ case Po.PLAINTEXT:
+ ! function(e, t) {
+ e.openElements.hasInButtonScope(Po.P) && e._closePElement(), e._insertElement(t, vo.HTML), e.tokenizer.state = jo.PLAINTEXT
+ }(e, t);
+ break;
+ case Po.COL:
+ case Po.TH:
+ case Po.TD:
+ case Po.TR:
+ case Po.HEAD:
+ case Po.FRAME:
+ case Po.TBODY:
+ case Po.TFOOT:
+ case Po.THEAD:
+ case Po.CAPTION:
+ case Po.COLGROUP:
+ break;
+ default:
+ al(e, t)
+ }
+}
+
+function cl(e, t) {
+ const n = t.tagName,
+ r = t.tagID;
+ for (let t = e.openElements.stackTop; t > 0; t--) {
+ const i = e.openElements.items[t],
+ s = e.openElements.tagIDs[t];
+ if (r === s && (r !== Po.UNKNOWN || e.treeAdapter.getTagName(i) === n)) {
+ e.openElements.generateImpliedEndTagsWithExclusion(r), e.openElements.stackTop >= t && e.openElements.shortenToLength(t);
+ break
+ }
+ if (e._isSpecialElement(i, s)) break
+ }
+}
+
+function ll(e, t) {
+ switch (t.tagID) {
+ case Po.A:
+ case Po.B:
+ case Po.I:
+ case Po.S:
+ case Po.U:
+ case Po.EM:
+ case Po.TT:
+ case Po.BIG:
+ case Po.CODE:
+ case Po.FONT:
+ case Po.NOBR:
+ case Po.SMALL:
+ case Po.STRIKE:
+ case Po.STRONG:
+ qc(e, t);
+ break;
+ case Po.P:
+ ! function(e) {
+ e.openElements.hasInButtonScope(Po.P) || e._insertFakeElement(Mo.P, Po.P), e._closePElement()
+ }(e);
+ break;
+ case Po.DL:
+ case Po.UL:
+ case Po.OL:
+ case Po.DIR:
+ case Po.DIV:
+ case Po.NAV:
+ case Po.PRE:
+ case Po.MAIN:
+ case Po.MENU:
+ case Po.ASIDE:
+ case Po.BUTTON:
+ case Po.CENTER:
+ case Po.FIGURE:
+ case Po.FOOTER:
+ case Po.HEADER:
+ case Po.HGROUP:
+ case Po.DIALOG:
+ case Po.ADDRESS:
+ case Po.ARTICLE:
+ case Po.DETAILS:
+ case Po.SECTION:
+ case Po.SUMMARY:
+ case Po.LISTING:
+ case Po.FIELDSET:
+ case Po.BLOCKQUOTE:
+ case Po.FIGCAPTION:
+ ! function(e, t) {
+ const n = t.tagID;
+ e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n))
+ }(e, t);
+ break;
+ case Po.LI:
+ ! function(e) {
+ e.openElements.hasInListItemScope(Po.LI) && (e.openElements.generateImpliedEndTagsWithExclusion(Po.LI), e.openElements.popUntilTagNamePopped(Po.LI))
+ }(e);
+ break;
+ case Po.DD:
+ case Po.DT:
+ ! function(e, t) {
+ const n = t.tagID;
+ e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTagsWithExclusion(n), e.openElements.popUntilTagNamePopped(n))
+ }(e, t);
+ break;
+ case Po.H1:
+ case Po.H2:
+ case Po.H3:
+ case Po.H4:
+ case Po.H5:
+ case Po.H6:
+ ! function(e) {
+ e.openElements.hasNumberedHeaderInScope() && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilNumberedHeaderPopped())
+ }(e);
+ break;
+ case Po.BR:
+ ! function(e) {
+ e._reconstructActiveFormattingElements(), e._insertFakeElement(Mo.BR, Po.BR), e.openElements.pop(), e.framesetOk = !1
+ }(e);
+ break;
+ case Po.BODY:
+ ! function(e, t) {
+ if (e.openElements.hasInScope(Po.BODY) && (e.insertionMode = Rc.AFTER_BODY, e.options.sourceCodeLocationInfo)) {
+ const n = e.openElements.tryPeekProperlyNestedBodyElement();
+ n && e._setEndLocation(n, t)
+ }
+ }(e, t);
+ break;
+ case Po.HTML:
+ ! function(e, t) {
+ e.openElements.hasInScope(Po.BODY) && (e.insertionMode = Rc.AFTER_BODY, Ll(e, t))
+ }(e, t);
+ break;
+ case Po.FORM:
+ ! function(e) {
+ const t = e.openElements.tmplCount > 0,
+ {
+ formElement: n
+ } = e;
+ t || (e.formElement = null), (n || t) && e.openElements.hasInScope(Po.FORM) && (e.openElements.generateImpliedEndTags(), t ? e.openElements.popUntilTagNamePopped(Po.FORM) : n && e.openElements.remove(n))
+ }(e);
+ break;
+ case Po.APPLET:
+ case Po.OBJECT:
+ case Po.MARQUEE:
+ ! function(e, t) {
+ const n = t.tagID;
+ e.openElements.hasInScope(n) && (e.openElements.generateImpliedEndTags(), e.openElements.popUntilTagNamePopped(n), e.activeFormattingElements.clearToLastMarker())
+ }(e, t);
+ break;
+ case Po.TEMPLATE:
+ $c(e, t);
+ break;
+ default:
+ cl(e, t)
+ }
+}
+
+function hl(e, t) {
+ e.tmplInsertionModeStack.length > 0 ? yl(e, t) : jc(e, t)
+}
+
+function ul(e, t) {
+ if (Pc.has(e.openElements.currentTagId)) switch (e.pendingCharacterTokens.length = 0, e.hasNonWhitespacePendingCharacterToken = !1, e.originalInsertionMode = e.insertionMode, e.insertionMode = Rc.IN_TABLE_TEXT, t.type) {
+ case To.CHARACTER:
+ ml(e, t);
+ break;
+ case To.WHITESPACE_CHARACTER:
+ El(e, t)
+ } else dl(e, t)
+}
+
+function pl(e, t) {
+ switch (t.tagID) {
+ case Po.TD:
+ case Po.TH:
+ case Po.TR:
+ ! function(e, t) {
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(Mo.TBODY, Po.TBODY), e.insertionMode = Rc.IN_TABLE_BODY, Nl(e, t)
+ }(e, t);
+ break;
+ case Po.STYLE:
+ case Po.SCRIPT:
+ case Po.TEMPLATE:
+ Xc(e, t);
+ break;
+ case Po.COL:
+ ! function(e, t) {
+ e.openElements.clearBackToTableContext(), e._insertFakeElement(Mo.COLGROUP, Po.COLGROUP), e.insertionMode = Rc.IN_COLUMN_GROUP, Al(e, t)
+ }(e, t);
+ break;
+ case Po.FORM:
+ ! function(e, t) {
+ e.formElement || 0 !== e.openElements.tmplCount || (e._insertElement(t, vo.HTML), e.formElement = e.openElements.current, e.openElements.pop())
+ }(e, t);
+ break;
+ case Po.TABLE:
+ ! function(e, t) {
+ e.openElements.hasInTableScope(Po.TABLE) && (e.openElements.popUntilTagNamePopped(Po.TABLE), e._resetInsertionMode(), e._processStartTag(t))
+ }(e, t);
+ break;
+ case Po.TBODY:
+ case Po.TFOOT:
+ case Po.THEAD:
+ ! function(e, t) {
+ e.openElements.clearBackToTableContext(), e._insertElement(t, vo.HTML), e.insertionMode = Rc.IN_TABLE_BODY
+ }(e, t);
+ break;
+ case Po.INPUT:
+ ! function(e, t) {
+ il(t) ? e._appendElement(t, vo.HTML) : dl(e, t), t.ackSelfClosing = !0
+ }(e, t);
+ break;
+ case Po.CAPTION:
+ ! function(e, t) {
+ e.openElements.clearBackToTableContext(), e.activeFormattingElements.insertMarker(), e._insertElement(t, vo.HTML), e.insertionMode = Rc.IN_CAPTION
+ }(e, t);
+ break;
+ case Po.COLGROUP:
+ ! function(e, t) {
+ e.openElements.clearBackToTableContext(), e._insertElement(t, vo.HTML), e.insertionMode = Rc.IN_COLUMN_GROUP
+ }(e, t);
+ break;
+ default:
+ dl(e, t)
+ }
+}
+
+function fl(e, t) {
+ switch (t.tagID) {
+ case Po.TABLE:
+ e.openElements.hasInTableScope(Po.TABLE) && (e.openElements.popUntilTagNamePopped(Po.TABLE), e._resetInsertionMode());
+ break;
+ case Po.TEMPLATE:
+ $c(e, t);
+ break;
+ case Po.BODY:
+ case Po.CAPTION:
+ case Po.COL:
+ case Po.COLGROUP:
+ case Po.HTML:
+ case Po.TBODY:
+ case Po.TD:
+ case Po.TFOOT:
+ case Po.TH:
+ case Po.THEAD:
+ case Po.TR:
+ break;
+ default:
+ dl(e, t)
+ }
+}
+
+function dl(e, t) {
+ const n = e.fosterParentingEnabled;
+ e.fosterParentingEnabled = !0, el(e, t), e.fosterParentingEnabled = n
+}
+
+function El(e, t) {
+ e.pendingCharacterTokens.push(t)
+}
+
+function ml(e, t) {
+ e.pendingCharacterTokens.push(t), e.hasNonWhitespacePendingCharacterToken = !0
+}
+
+function Tl(e, t) {
+ let n = 0;
+ if (e.hasNonWhitespacePendingCharacterToken)
+ for (; n < e.pendingCharacterTokens.length; n++) dl(e, e.pendingCharacterTokens[n]);
+ else
+ for (; n < e.pendingCharacterTokens.length; n++) e._insertCharacters(e.pendingCharacterTokens[n]);
+ e.insertionMode = e.originalInsertionMode, e._processToken(t)
+}
+const _l = new Set([Po.CAPTION, Po.COL, Po.COLGROUP, Po.TBODY, Po.TD, Po.TFOOT, Po.TH, Po.THEAD, Po.TR]);
+
+function Al(e, t) {
+ switch (t.tagID) {
+ case Po.HTML:
+ ol(e, t);
+ break;
+ case Po.COL:
+ e._appendElement(t, vo.HTML), t.ackSelfClosing = !0;
+ break;
+ case Po.TEMPLATE:
+ Xc(e, t);
+ break;
+ default:
+ gl(e, t)
+ }
+}
+
+function gl(e, t) {
+ e.openElements.currentTagId === Po.COLGROUP && (e.openElements.pop(), e.insertionMode = Rc.IN_TABLE, e._processToken(t))
+}
+
+function Nl(e, t) {
+ switch (t.tagID) {
+ case Po.TR:
+ e.openElements.clearBackToTableBodyContext(), e._insertElement(t, vo.HTML), e.insertionMode = Rc.IN_ROW;
+ break;
+ case Po.TH:
+ case Po.TD:
+ e.openElements.clearBackToTableBodyContext(), e._insertFakeElement(Mo.TR, Po.TR), e.insertionMode = Rc.IN_ROW, Il(e, t);
+ break;
+ case Po.CAPTION:
+ case Po.COL:
+ case Po.COLGROUP:
+ case Po.TBODY:
+ case Po.TFOOT:
+ case Po.THEAD:
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = Rc.IN_TABLE, pl(e, t));
+ break;
+ default:
+ pl(e, t)
+ }
+}
+
+function Cl(e, t) {
+ const n = t.tagID;
+ switch (t.tagID) {
+ case Po.TBODY:
+ case Po.TFOOT:
+ case Po.THEAD:
+ e.openElements.hasInTableScope(n) && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = Rc.IN_TABLE);
+ break;
+ case Po.TABLE:
+ e.openElements.hasTableBodyContextInTableScope() && (e.openElements.clearBackToTableBodyContext(), e.openElements.pop(), e.insertionMode = Rc.IN_TABLE, fl(e, t));
+ break;
+ case Po.BODY:
+ case Po.CAPTION:
+ case Po.COL:
+ case Po.COLGROUP:
+ case Po.HTML:
+ case Po.TD:
+ case Po.TH:
+ case Po.TR:
+ break;
+ default:
+ fl(e, t)
+ }
+}
+
+function Il(e, t) {
+ switch (t.tagID) {
+ case Po.TH:
+ case Po.TD:
+ e.openElements.clearBackToTableRowContext(), e._insertElement(t, vo.HTML), e.insertionMode = Rc.IN_CELL, e.activeFormattingElements.insertMarker();
+ break;
+ case Po.CAPTION:
+ case Po.COL:
+ case Po.COLGROUP:
+ case Po.TBODY:
+ case Po.TFOOT:
+ case Po.THEAD:
+ case Po.TR:
+ e.openElements.hasInTableScope(Po.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = Rc.IN_TABLE_BODY, Nl(e, t));
+ break;
+ default:
+ pl(e, t)
+ }
+}
+
+function Sl(e, t) {
+ switch (t.tagID) {
+ case Po.TR:
+ e.openElements.hasInTableScope(Po.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = Rc.IN_TABLE_BODY);
+ break;
+ case Po.TABLE:
+ e.openElements.hasInTableScope(Po.TR) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = Rc.IN_TABLE_BODY, Cl(e, t));
+ break;
+ case Po.TBODY:
+ case Po.TFOOT:
+ case Po.THEAD:
+ (e.openElements.hasInTableScope(t.tagID) || e.openElements.hasInTableScope(Po.TR)) && (e.openElements.clearBackToTableRowContext(), e.openElements.pop(), e.insertionMode = Rc.IN_TABLE_BODY, Cl(e, t));
+ break;
+ case Po.BODY:
+ case Po.CAPTION:
+ case Po.COL:
+ case Po.COLGROUP:
+ case Po.HTML:
+ case Po.TD:
+ case Po.TH:
+ break;
+ default:
+ fl(e, t)
+ }
+}
+
+function bl(e, t) {
+ switch (t.tagID) {
+ case Po.HTML:
+ ol(e, t);
+ break;
+ case Po.OPTION:
+ e.openElements.currentTagId === Po.OPTION && e.openElements.pop(), e._insertElement(t, vo.HTML);
+ break;
+ case Po.OPTGROUP:
+ e.openElements.currentTagId === Po.OPTION && e.openElements.pop(), e.openElements.currentTagId === Po.OPTGROUP && e.openElements.pop(), e._insertElement(t, vo.HTML);
+ break;
+ case Po.INPUT:
+ case Po.KEYGEN:
+ case Po.TEXTAREA:
+ case Po.SELECT:
+ e.openElements.hasInSelectScope(Po.SELECT) && (e.openElements.popUntilTagNamePopped(Po.SELECT), e._resetInsertionMode(), t.tagID !== Po.SELECT && e._processStartTag(t));
+ break;
+ case Po.SCRIPT:
+ case Po.TEMPLATE:
+ Xc(e, t)
+ }
+}
+
+function Ol(e, t) {
+ switch (t.tagID) {
+ case Po.OPTGROUP:
+ e.openElements.stackTop > 0 && e.openElements.currentTagId === Po.OPTION && e.openElements.tagIDs[e.openElements.stackTop - 1] === Po.OPTGROUP && e.openElements.pop(), e.openElements.currentTagId === Po.OPTGROUP && e.openElements.pop();
+ break;
+ case Po.OPTION:
+ e.openElements.currentTagId === Po.OPTION && e.openElements.pop();
+ break;
+ case Po.SELECT:
+ e.openElements.hasInSelectScope(Po.SELECT) && (e.openElements.popUntilTagNamePopped(Po.SELECT), e._resetInsertionMode());
+ break;
+ case Po.TEMPLATE:
+ $c(e, t)
+ }
+}
+
+function yl(e, t) {
+ e.openElements.tmplCount > 0 ? (e.openElements.popUntilTagNamePopped(Po.TEMPLATE), e.activeFormattingElements.clearToLastMarker(), e.tmplInsertionModeStack.shift(), e._resetInsertionMode(), e.onEof(t)) : jc(e, t)
+}
+
+function Ll(e, t) {
+ var n;
+ if (t.tagID === Po.HTML) {
+ if (e.fragmentContext || (e.insertionMode = Rc.AFTER_AFTER_BODY), e.options.sourceCodeLocationInfo && e.openElements.tagIDs[0] === Po.HTML) {
+ e._setEndLocation(e.openElements.items[0], t);
+ const r = e.openElements.items[1];
+ r && !(null === (n = e.treeAdapter.getNodeSourceCodeLocation(r)) || void 0 === n ? void 0 : n.endTag) && e._setEndLocation(r, t)
+ }
+ } else kl(e, t)
+}
+
+function kl(e, t) {
+ e.insertionMode = Rc.IN_BODY, el(e, t)
+}
+
+function vl(e, t) {
+ e.insertionMode = Rc.IN_BODY, el(e, t)
+}
+
+function Dl(e) {
+ for (; e.treeAdapter.getNamespaceURI(e.openElements.current) !== vo.HTML && !e._isIntegrationPoint(e.openElements.currentTagId, e.openElements.current);) e.openElements.pop()
+}
+var Rl = Ke((function(e, t) {
+ Object.defineProperty(t, "__esModule", {
+ value: !0
+ }), t.escapeText = t.escapeAttribute = t.escapeUTF8 = t.escape = t.encodeXML = t.getCodePoint = t.xmlReplacer = void 0, t.xmlReplacer = /["&'<>$\x80-\uFFFF]/g;
+ var n = new Map([
+ [34, """],
+ [38, "&"],
+ [39, "'"],
+ [60, "<"],
+ [62, ">"]
+ ]);
+
+ function r(e) {
+ for (var r, i = "", s = 0; null !== (r = t.xmlReplacer.exec(e));) {
+ var a = r.index,
+ o = e.charCodeAt(a),
+ c = n.get(o);
+ void 0 !== c ? (i += e.substring(s, a) + c, s = a + 1) : (i += "".concat(e.substring(s, a), "").concat((0, t.getCodePoint)(e, a).toString(16), ";"), s = t.xmlReplacer.lastIndex += Number(55296 == (64512 & o)))
+ }
+ return i + e.substr(s)
+ }
+
+ function i(e, t) {
+ return function(n) {
+ for (var r, i = 0, s = ""; r = e.exec(n);) i !== r.index && (s += n.substring(i, r.index)), s += t.get(r[0].charCodeAt(0)), i = r.index + 1;
+ return s + n.substring(i)
+ }
+ }
+ t.getCodePoint = null != String.prototype.codePointAt ? function(e, t) {
+ return e.codePointAt(t)
+ } : function(e, t) {
+ return 55296 == (64512 & e.charCodeAt(t)) ? 1024 * (e.charCodeAt(t) - 55296) + e.charCodeAt(t + 1) - 56320 + 65536 : e.charCodeAt(t)
+ }, t.encodeXML = r, t.escape = r, t.escapeUTF8 = i(/[&<>'"]/g, n), t.escapeAttribute = i(/["&\u00A0]/g, new Map([
+ [34, """],
+ [38, "&"],
+ [160, " "]
+ ])), t.escapeText = i(/[&<>\u00A0]/g, new Map([
+ [38, "&"],
+ [60, "<"],
+ [62, ">"],
+ [160, " "]
+ ]))
+}));
+qe(Rl);
+var Ml = Rl.escapeText,
+ Pl = Rl.escapeAttribute;
+Rl.escapeUTF8, Rl.escape, Rl.encodeXML, Rl.getCodePoint, Rl.xmlReplacer;
+const xl = new Set([Mo.AREA, Mo.BASE, Mo.BASEFONT, Mo.BGSOUND, Mo.BR, Mo.COL, Mo.EMBED, Mo.FRAME, Mo.HR, Mo.IMG, Mo.INPUT, Mo.KEYGEN, Mo.LINK, Mo.META, Mo.PARAM, Mo.SOURCE, Mo.TRACK, Mo.WBR]);
+const wl = {
+ treeAdapter: Ec,
+ scriptingEnabled: !0
+};
+
+function Bl(e, t) {
+ return Fl(e, {
+ ...wl,
+ ...t
+ })
+}
+
+function Fl(e, t) {
+ return t.treeAdapter.isElementNode(e) ? function(e, t) {
+ const n = t.treeAdapter.getTagName(e);
+ return `<${n}${function(e,{treeAdapter:t}){let n="";for(const r of t.getAttrList(e)){if(n+=" ",r.namespace)switch(r.namespace){case vo.XML:n+=`
+ xml: $ {
+ r.name
+ }
+ `;break;case vo.XMLNS:"xmlns"!==r.name&&(n+="xmlns:"),n+=r.name;break;case vo.XLINK:n+=`
+ xlink: $ {
+ r.name
+ }
+ `;break;default:n+=`
+ $ {
+ r.prefix
+ }: $ {
+ r.name
+ }
+ `}else n+=r.name;n+=` = "${Pl(r.value)}"
+ `}return n}(e,t)}>${function(e,t){return t.treeAdapter.isElementNode(e)&&t.treeAdapter.getNamespaceURI(e)===vo.HTML&&xl.has(t.treeAdapter.getTagName(e))}(e,t)?"":`
+ $ {
+ function(e, t) {
+ let n = "";
+ const r = t.treeAdapter.isElementNode(e) && t.treeAdapter.getTagName(e) === Mo.TEMPLATE && t.treeAdapter.getNamespaceURI(e) === vo.HTML ? t.treeAdapter.getTemplateContent(e) : e,
+ i = t.treeAdapter.getChildNodes(r);
+ if (i)
+ for (const e of i) n += Fl(e, t);
+ return n
+ }(e, t)
+ } < /${n}>`}`}(e,t):t.treeAdapter.isTextNode(e)?function(e,t){const{treeAdapter:n}=t,r=n.getTextNodeContent(e),i=n.getParentNode(e),s=i&&n.isElementNode(i)&&n.getTagName(i);return s&&n.getNamespaceURI(i)===vo.HTML&&(a=s,o=t.scriptingEnabled,Yo.has(a)||o&&a===Mo.NOSCRIPT)?r:Ml(r);var a,o}(e,t):t.treeAdapter.isCommentNode(e)?function(e,{treeAdapter:t}){return`\x3c!--${t.getCommentNodeContent(e)}--\x3e`}(e,t):t.treeAdapter.isDocumentTypeNode(e)?function(e,{treeAdapter:t}){return``}(e,t):""}function Ul(e){return new m(e)}function Hl(e){const t=e.includes('"')?"'":'"';return t+e+t}const Gl={isCommentNode:O,isElementNode:I,isTextNode:b,createDocument(){const e=new N([]);return e["x-mode"]=Ro.NO_QUIRKS,e},createDocumentFragment:()=>new N([]),createElement(e,t,n){const r=Object.create(null),i=Object.create(null),s=Object.create(null);for(let e=0;enew T(e),appendChild(e,t){const n=e.children[e.children.length-1];n&&(n.next=t,t.prev=n),e.children.push(t),t.parent=e},insertBefore(e,t,n){const r=e.children.indexOf(n),{prev:i}=n;i&&(i.next=t,t.prev=i),n.prev=t,t.next=n,e.children.splice(r,0,t),t.parent=e},setTemplateContent(e,t){Gl.appendChild(e,t)},getTemplateContent:e=>e.children[0],setDocumentType(e,t,n,r){const i=function(e,t,n){let r="!DOCTYPE ";return e&&(r+=e),t?r+=` PUBLIC ${Hl(t)}`:n&&(r+=" SYSTEM"),n&&(r+=` ${Hl(n)}`),r}(t,n,r);let s=e.children.find((e=>y(e)&&"!doctype"===e.name));s?s.data=null!=i?i:null:(s=new _("!doctype",i),Gl.appendChild(e,s)),s["x-name"]=null!=t?t:void 0,s["x-publicId"]=null!=n?n:void 0,s["x-systemId"]=null!=r?r:void 0},setDocumentMode(e,t){e["x-mode"]=t},getDocumentMode:e=>e["x-mode"],detachNode(e){if(e.parent){const t=e.parent.children.indexOf(e),{prev:n,next:r}=e;e.prev=null,e.next=null,n&&(n.next=r),r&&(r.prev=n),e.parent.children.splice(t,1),e.parent=null}},insertText(e,t){const n=e.children[e.children.length-1];n&&b(n)?n.data+=t:Gl.appendChild(e,Ul(t))},insertTextBefore(e,t,n){const r=e.children[e.children.indexOf(n)-1];r&&b(r)?r.data+=t:Gl.insertBefore(e,Ul(t),n)},adoptAttributes(e,t){for(let n=0;ne.children[0],getChildNodes:e=>e.children,getParentNode:e=>e.parent,getAttrList:e=>e.attributes,getTagName:e=>e.name,getNamespaceURI:e=>e.namespace,getTextNodeContent:e=>e.data,getCommentNodeContent:e=>e.data,getDocumentTypeNodeName(e){var t;return null!==(t=e["x-name"])&&void 0!==t?t:""},getDocumentTypeNodePublicId(e){var t;return null!==(t=e["x-publicId"])&&void 0!==t?t:""},getDocumentTypeNodeSystemId(e){var t;return null!==(t=e["x-systemId"])&&void 0!==t?t:""},isDocumentTypeNode:e=>y(e)&&"!doctype"===e.name,setNodeSourceCodeLocation(e,t){t&&(e.startIndex=t.startOffset,e.endIndex=t.endOffset),e.sourceCodeLocation=t},getNodeSourceCodeLocation:e=>e.sourceCodeLocation,updateNodeSourceCodeLocation(e,t){null!=t.endOffset&&(e.endIndex=t.endOffset),e.sourceCodeLocation={...e.sourceCodeLocation,...t}}};var Yl=function(e,t,n){if(n||2===arguments.length)for(var r,i=0,s=t.length;i=Kl.Zero&&e<=Kl.Nine}!function(e){e[e.Tab=9]="Tab",e[e.NewLine=10]="NewLine",e[e.FormFeed=12]="FormFeed",e[e.CarriageReturn=13]="CarriageReturn",e[e.Space=32]="Space",e[e.ExclamationMark=33]="ExclamationMark",e[e.Num=35]="Num",e[e.Amp=38]="Amp",e[e.SingleQuote=39]="SingleQuote",e[e.DoubleQuote=34]="DoubleQuote",e[e.Dash=45]="Dash",e[e.Slash=47]="Slash",e[e.Zero=48]="Zero",e[e.Nine=57]="Nine",e[e.Semi=59]="Semi",e[e.Lt=60]="Lt",e[e.Eq=61]="Eq",e[e.Gt=62]="Gt",e[e.Questionmark=63]="Questionmark",e[e.UpperA=65]="UpperA",e[e.LowerA=97]="LowerA",e[e.UpperF=70]="UpperF",e[e.LowerF=102]="LowerF",e[e.UpperZ=90]="UpperZ",e[e.LowerZ=122]="LowerZ",e[e.LowerX=120]="LowerX",e[e.OpeningSquareBracket=91]="OpeningSquareBracket"}(Kl||(Kl={})),function(e){e[e.Text=1]="Text",e[e.BeforeTagName=2]="BeforeTagName",e[e.InTagName=3]="InTagName",e[e.InSelfClosingTag=4]="InSelfClosingTag",e[e.BeforeClosingTagName=5]="BeforeClosingTagName",e[e.InClosingTagName=6]="InClosingTagName",e[e.AfterClosingTagName=7]="AfterClosingTagName",e[e.BeforeAttributeName=8]="BeforeAttributeName",e[e.InAttributeName=9]="InAttributeName",e[e.AfterAttributeName=10]="AfterAttributeName",e[e.BeforeAttributeValue=11]="BeforeAttributeValue",e[e.InAttributeValueDq=12]="InAttributeValueDq",e[e.InAttributeValueSq=13]="InAttributeValueSq",e[e.InAttributeValueNq=14]="InAttributeValueNq",e[e.BeforeDeclaration=15]="BeforeDeclaration",e[e.InDeclaration=16]="InDeclaration",e[e.InProcessingInstruction=17]="InProcessingInstruction",e[e.BeforeComment=18]="BeforeComment",e[e.CDATASequence=19]="CDATASequence",e[e.InSpecialComment=20]="InSpecialComment",e[e.InCommentLike=21]="InCommentLike",e[e.BeforeSpecialS=22]="BeforeSpecialS",e[e.SpecialStartSequence=23]="SpecialStartSequence",e[e.InSpecialTag=24]="InSpecialTag",e[e.BeforeEntity=25]="BeforeEntity",e[e.BeforeNumericEntity=26]="BeforeNumericEntity",e[e.InNamedEntity=27]="InNamedEntity",e[e.InNumericEntity=28]="InNumericEntity",e[e.InHexEntity=29]="InHexEntity"}(jl||(jl={})),function(e){e[e.NoValue=0]="NoValue",e[e.Unquoted=1]="Unquoted",e[e.Single=2]="Single",e[e.Double=3]="Double"}(Vl||(Vl={}));const zl={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101])};class Jl{constructor({xmlMode:e=!1,decodeEntities:t=!0},n){this.cbs=n,this.state=jl.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=jl.Text,this.isSpecial=!1,this.running=!0,this.offset=0,this.sequenceIndex=0,this.trieIndex=0,this.trieCurrent=0,this.entityResult=0,this.entityExcess=0,this.xmlMode=e,this.decodeEntities=t,this.entityTrie=e?xo:wo}reset(){this.state=jl.Text,this.buffer="",this.sectionStart=0,this.index=0,this.baseState=jl.Text,this.currentSequence=void 0,this.running=!0,this.offset=0}write(e){this.offset+=this.buffer.length,this.buffer=e,this.parse()}end(){this.running&&this.finish()}pause(){this.running=!1}resume(){this.running=!0,this.indexthis.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=jl.BeforeTagName,this.sectionStart=this.index):this.decodeEntities&&e===Kl.Amp&&(this.state=jl.BeforeEntity)}stateSpecialStartSequence(e){const t=this.sequenceIndex===this.currentSequence.length;if(t?Xl(e):(32|e)===this.currentSequence[this.sequenceIndex]){if(!t)return void this.sequenceIndex++}else this.isSpecial=!1;this.sequenceIndex=0,this.state=jl.InTagName,this.stateInTagName(e)}stateInSpecialTag(e){if(this.sequenceIndex===this.currentSequence.length){if(e===Kl.Gt||Ql(e)){const t=this.index-this.currentSequence.length;if(this.sectionStart=Kl.LowerA&&e<=Kl.LowerZ||e>=Kl.UpperA&&e<=Kl.UpperZ}(e)}startSpecial(e,t){this.isSpecial=!0,this.currentSequence=e,this.sequenceIndex=t,this.state=jl.SpecialStartSequence}stateBeforeTagName(e){if(e===Kl.ExclamationMark)this.state=jl.BeforeDeclaration,this.sectionStart=this.index+1;else if(e===Kl.Questionmark)this.state=jl.InProcessingInstruction,this.sectionStart=this.index+1;else if(this.isTagStartChar(e)){const t=32|e;this.sectionStart=this.index,this.xmlMode||t!==zl.TitleEnd[2]?this.state=this.xmlMode||t!==zl.ScriptEnd[2]?jl.InTagName:jl.BeforeSpecialS:this.startSpecial(zl.TitleEnd,3)}else e===Kl.Slash?this.state=jl.BeforeClosingTagName:(this.state=jl.Text,this.stateText(e))}stateInTagName(e){Xl(e)&&(this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=jl.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateBeforeClosingTagName(e){Ql(e)||(e===Kl.Gt?this.state=jl.Text:(this.state=this.isTagStartChar(e)?jl.InClosingTagName:jl.InSpecialComment,this.sectionStart=this.index))}stateInClosingTagName(e){(e===Kl.Gt||Ql(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=jl.AfterClosingTagName,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){(e===Kl.Gt||this.fastForwardTo(Kl.Gt))&&(this.state=jl.Text,this.sectionStart=this.index+1)}stateBeforeAttributeName(e){e===Kl.Gt?(this.cbs.onopentagend(this.index),this.isSpecial?(this.state=jl.InSpecialTag,this.sequenceIndex=0):this.state=jl.Text,this.baseState=this.state,this.sectionStart=this.index+1):e===Kl.Slash?this.state=jl.InSelfClosingTag:Ql(e)||(this.state=jl.InAttributeName,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===Kl.Gt?(this.cbs.onselfclosingtag(this.index),this.state=jl.Text,this.baseState=jl.Text,this.sectionStart=this.index+1,this.isSpecial=!1):Ql(e)||(this.state=jl.BeforeAttributeName,this.stateBeforeAttributeName(e))}stateInAttributeName(e){(e===Kl.Eq||Xl(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.sectionStart=-1,this.state=jl.AfterAttributeName,this.stateAfterAttributeName(e))}stateAfterAttributeName(e){e===Kl.Eq?this.state=jl.BeforeAttributeValue:e===Kl.Slash||e===Kl.Gt?(this.cbs.onattribend(Vl.NoValue,this.index),this.state=jl.BeforeAttributeName,this.stateBeforeAttributeName(e)):Ql(e)||(this.cbs.onattribend(Vl.NoValue,this.index),this.state=jl.InAttributeName,this.sectionStart=this.index)}stateBeforeAttributeValue(e){e===Kl.DoubleQuote?(this.state=jl.InAttributeValueDq,this.sectionStart=this.index+1):e===Kl.SingleQuote?(this.state=jl.InAttributeValueSq,this.sectionStart=this.index+1):Ql(e)||(this.sectionStart=this.index,this.state=jl.InAttributeValueNq,this.stateInAttributeValueNoQuotes(e))}handleInAttributeValue(e,t){e===t||!this.decodeEntities&&this.fastForwardTo(t)?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===Kl.DoubleQuote?Vl.Double:Vl.Single,this.index),this.state=jl.BeforeAttributeName):this.decodeEntities&&e===Kl.Amp&&(this.baseState=this.state,this.state=jl.BeforeEntity)}stateInAttributeValueDoubleQuotes(e){this.handleInAttributeValue(e,Kl.DoubleQuote)}stateInAttributeValueSingleQuotes(e){this.handleInAttributeValue(e,Kl.SingleQuote)}stateInAttributeValueNoQuotes(e){Ql(e)||e===Kl.Gt?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(Vl.Unquoted,this.index),this.state=jl.BeforeAttributeName,this.stateBeforeAttributeName(e)):this.decodeEntities&&e===Kl.Amp&&(this.baseState=this.state,this.state=jl.BeforeEntity)}stateBeforeDeclaration(e){e===Kl.OpeningSquareBracket?(this.state=jl.CDATASequence,this.sequenceIndex=0):this.state=e===Kl.Dash?jl.BeforeComment:jl.InDeclaration}stateInDeclaration(e){(e===Kl.Gt||this.fastForwardTo(Kl.Gt))&&(this.cbs.ondeclaration(this.sectionStart,this.index),this.state=jl.Text,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===Kl.Gt||this.fastForwardTo(Kl.Gt))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=jl.Text,this.sectionStart=this.index+1)}stateBeforeComment(e){e===Kl.Dash?(this.state=jl.InCommentLike,this.currentSequence=zl.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=jl.InDeclaration}stateInSpecialComment(e){(e===Kl.Gt||this.fastForwardTo(Kl.Gt))&&(this.cbs.oncomment(this.sectionStart,this.index,0),this.state=jl.Text,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){const t=32|e;t===zl.ScriptEnd[3]?this.startSpecial(zl.ScriptEnd,4):t===zl.StyleEnd[3]?this.startSpecial(zl.StyleEnd,4):(this.state=jl.InTagName,this.stateInTagName(e))}stateBeforeEntity(e){this.entityExcess=1,this.entityResult=0,e===Kl.Num?this.state=jl.BeforeNumericEntity:e===Kl.Amp||(this.trieIndex=0,this.trieCurrent=this.entityTrie[0],this.state=jl.InNamedEntity,this.stateInNamedEntity(e))}stateInNamedEntity(e){if(this.entityExcess+=1,this.trieIndex=Oo(this.entityTrie,this.trieCurrent,this.trieIndex+1,e),this.trieIndex<0)return this.emitNamedEntity(),void this.index--;this.trieCurrent=this.entityTrie[this.trieIndex];const t=this.trieCurrent&yo.VALUE_LENGTH;if(t){const n=(t>>14)-1;if(this.allowLegacyEntity()||e===Kl.Semi){const e=this.index-this.entityExcess+1;e>this.sectionStart&&this.emitPartial(this.sectionStart,e),this.entityResult=this.trieIndex,this.trieIndex+=n,this.entityExcess=0,this.sectionStart=this.index+1,0===n&&this.emitNamedEntity()}else this.trieIndex+=n}}emitNamedEntity(){if(this.state=this.baseState,0===this.entityResult)return;switch((this.entityTrie[this.entityResult]&yo.VALUE_LENGTH)>>14){case 1:this.emitCodePoint(this.entityTrie[this.entityResult]&~yo.VALUE_LENGTH);break;case 2:this.emitCodePoint(this.entityTrie[this.entityResult+1]);break;case 3:this.emitCodePoint(this.entityTrie[this.entityResult+1]),this.emitCodePoint(this.entityTrie[this.entityResult+2])}}stateBeforeNumericEntity(e){(32|e)===Kl.LowerX?(this.entityExcess++,this.state=jl.InHexEntity):(this.state=jl.InNumericEntity,this.stateInNumericEntity(e))}emitNumericEntity(e){const t=this.index-this.entityExcess-1;t+2+Number(this.state===jl.InHexEntity)!==this.index&&(t>this.sectionStart&&this.emitPartial(this.sectionStart,t),this.sectionStart=this.index+Number(e),this.emitCodePoint(ko(this.entityResult))),this.state=this.baseState}stateInNumericEntity(e){e===Kl.Semi?this.emitNumericEntity(!0):$l(e)?(this.entityResult=10*this.entityResult+(e-Kl.Zero),this.entityExcess++):(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--)}stateInHexEntity(e){e===Kl.Semi?this.emitNumericEntity(!0):$l(e)?(this.entityResult=16*this.entityResult+(e-Kl.Zero),this.entityExcess++):!function(e){return e>=Kl.UpperA&&e<=Kl.UpperF||e>=Kl.LowerA&&e<=Kl.LowerF}(e)?(this.allowLegacyEntity()?this.emitNumericEntity(!1):this.state=this.baseState,this.index--):(this.entityResult=16*this.entityResult+((32|e)-Kl.LowerA+10),this.entityExcess++)}allowLegacyEntity(){return!this.xmlMode&&(this.baseState===jl.Text||this.baseState===jl.InSpecialTag)}cleanup(){this.running&&this.sectionStart!==this.index&&(this.state===jl.Text||this.state===jl.InSpecialTag&&0===this.sequenceIndex?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):this.state!==jl.InAttributeValueDq&&this.state!==jl.InAttributeValueSq&&this.state!==jl.InAttributeValueNq||(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}shouldContinue(){return this.index0&&s.has(this.stack[this.stack.length-1]);){const e=this.stack.pop();null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,e,!0)}this.isVoidElement(e)||(this.stack.push(e),ah.has(e)?this.foreignContext.push(!0):oh.has(e)&&this.foreignContext.push(!1)),null===(i=(r=this.cbs).onopentagname)||void 0===i||i.call(r,e),this.cbs.onopentag&&(this.attribs={})}endOpenTag(e){var t,n;this.startIndex=this.openTagStart,this.attribs&&(null===(n=(t=this.cbs).onopentag)||void 0===n||n.call(t,this.tagname,this.attribs,e),this.attribs=null),this.cbs.onclosetag&&this.isVoidElement(this.tagname)&&this.cbs.onclosetag(this.tagname,!0),this.tagname=""}onopentagend(e){this.endIndex=e,this.endOpenTag(!1),this.startIndex=e+1}onclosetag(e,t){var n,r,i,s,a,o;this.endIndex=t;let c=this.getSlice(e,t);if(this.lowerCaseTagNames&&(c=c.toLowerCase()),(ah.has(c)||oh.has(c))&&this.foreignContext.pop(),this.isVoidElement(c))this.options.xmlMode||"br"!==c||(null===(r=(n=this.cbs).onopentagname)||void 0===r||r.call(n,"br"),null===(s=(i=this.cbs).onopentag)||void 0===s||s.call(i,"br",{},!0),null===(o=(a=this.cbs).onclosetag)||void 0===o||o.call(a,"br",!1));else{const e=this.stack.lastIndexOf(c);if(-1!==e)if(this.cbs.onclosetag){let t=this.stack.length-e;for(;t--;)this.cbs.onclosetag(this.stack.pop(),0!==t)}else this.stack.length=e;else this.options.xmlMode||"p"!==c||(this.emitOpenTag("p"),this.closeCurrentTag(!0))}this.startIndex=t+1}onselfclosingtag(e){this.endIndex=e,this.options.xmlMode||this.options.recognizeSelfClosing||this.foreignContext[this.foreignContext.length-1]?(this.closeCurrentTag(!1),this.startIndex=e+1):this.onopentagend(e)}closeCurrentTag(e){var t,n;const r=this.tagname;this.endOpenTag(e),this.stack[this.stack.length-1]===r&&(null===(n=(t=this.cbs).onclosetag)||void 0===n||n.call(t,r,!e),this.stack.pop())}onattribname(e,t){this.startIndex=e;const n=this.getSlice(e,t);this.attribname=this.lowerCaseAttributeNames?n.toLowerCase():n}onattribdata(e,t){this.attribvalue+=this.getSlice(e,t)}onattribentity(e){this.attribvalue+=Lo(e)}onattribend(e,t){var n,r;this.endIndex=t,null===(r=(n=this.cbs).onattribute)||void 0===r||r.call(n,this.attribname,this.attribvalue,e===Vl.Double?'"':e===Vl.Single?"'":e===Vl.NoValue?void 0:null),this.attribs&&!Object.prototype.hasOwnProperty.call(this.attribs,this.attribname)&&(this.attribs[this.attribname]=this.attribvalue),this.attribvalue=""}getInstructionName(e){const t=e.search(ch);let n=t<0?e:e.substr(0,t);return this.lowerCaseTagNames&&(n=n.toLowerCase()),n}ondeclaration(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`!${e}`,`!${n}`)}this.startIndex=t+1}onprocessinginstruction(e,t){this.endIndex=t;const n=this.getSlice(e,t);if(this.cbs.onprocessinginstruction){const e=this.getInstructionName(n);this.cbs.onprocessinginstruction(`?${e}`,`?${n}`)}this.startIndex=t+1}oncomment(e,t,n){var r,i,s,a;this.endIndex=t,null===(i=(r=this.cbs).oncomment)||void 0===i||i.call(r,this.getSlice(e,t-n)),null===(a=(s=this.cbs).oncommentend)||void 0===a||a.call(s),this.startIndex=t+1}oncdata(e,t,n){var r,i,s,a,o,c,l,h,u,p;this.endIndex=t;const f=this.getSlice(e,t-n);this.options.xmlMode||this.options.recognizeCDATA?(null===(i=(r=this.cbs).oncdatastart)||void 0===i||i.call(r),null===(a=(s=this.cbs).ontext)||void 0===a||a.call(s,f),null===(c=(o=this.cbs).oncdataend)||void 0===c||c.call(o)):(null===(h=(l=this.cbs).oncomment)||void 0===h||h.call(l,`[CDATA[${f}]]`),null===(p=(u=this.cbs).oncommentend)||void 0===p||p.call(u)),this.startIndex=t+1}onend(){var e,t;if(this.cbs.onclosetag){this.endIndex=this.startIndex;for(let e=this.stack.length;e>0;this.cbs.onclosetag(this.stack[--e],!0));}null===(t=(e=this.cbs).onend)||void 0===t||t.call(e)}reset(){var e,t,n,r;null===(t=(e=this.cbs).onreset)||void 0===t||t.call(e),this.tokenizer.reset(),this.tagname="",this.attribname="",this.attribs=null,this.stack.length=0,this.startIndex=0,this.endIndex=0,null===(r=(n=this.cbs).onparserinit)||void 0===r||r.call(n,this),this.buffers.length=0,this.bufferOffset=0,this.writeIndex=0,this.ended=!1}parseComplete(e){this.reset(),this.end(e)}getSlice(e,t){for(;e-this.bufferOffset>=this.buffers[0].length;)this.shiftBuffer();let n=this.buffers[0].slice(e-this.bufferOffset,t-this.bufferOffset);for(;t-this.bufferOffset>this.buffers[0].length;)this.shiftBuffer(),n+=this.buffers[0].slice(0,t-this.bufferOffset);return n}shiftBuffer(){this.bufferOffset+=this.buffers[0].length,this.writeIndex--,this.buffers.shift()}write(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,new Error(".write() after done!")):(this.buffers.push(e),this.tokenizer.running&&(this.tokenizer.write(e),this.writeIndex++))}end(e){var t,n;this.ended?null===(n=(t=this.cbs).onerror)||void 0===n||n.call(t,Error(".end() after done!")):(e&&this.write(e),this.ended=!0,this.tokenizer.end())}pause(){this.tokenizer.pause()}resume(){for(this.tokenizer.resume();this.tokenizer.running&&this.writeIndex>> (32 - n));
- // var low = this.low << n;
- // } else {
- // var high = this.low << (n - 32);
- // var low = 0;
- // }
+ // if (n < 32) {
+ // var high = (this.high << n) | (this.low >>> (32 - n));
+ // var low = this.low << n;
+ // } else {
+ // var high = this.low << (n - 32);
+ // var low = 0;
+ // }
- // return X64Word.create(high, low);
+ // return X64Word.create(high, low);
// },
/**
@@ -918,15 +917,15 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* var shifted = x64Word.shiftR(7);
*/
// shiftR: function (n) {
- // if (n < 32) {
- // var low = (this.low >>> n) | (this.high << (32 - n));
- // var high = this.high >>> n;
- // } else {
- // var low = this.high >>> (n - 32);
- // var high = 0;
- // }
+ // if (n < 32) {
+ // var low = (this.low >>> n) | (this.high << (32 - n));
+ // var high = this.high >>> n;
+ // } else {
+ // var low = this.high >>> (n - 32);
+ // var high = 0;
+ // }
- // return X64Word.create(high, low);
+ // return X64Word.create(high, low);
// },
/**
@@ -941,7 +940,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* var rotated = x64Word.rotL(25);
*/
// rotL: function (n) {
- // return this.shiftL(n).or(this.shiftR(64 - n));
+ // return this.shiftL(n).or(this.shiftR(64 - n));
// },
/**
@@ -956,7 +955,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* var rotated = x64Word.rotR(7);
*/
// rotR: function (n) {
- // return this.shiftR(n).or(this.shiftL(64 - n));
+ // return this.shiftR(n).or(this.shiftL(64 - n));
// },
/**
@@ -971,11 +970,11 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* var added = x64Word.add(anotherX64Word);
*/
// add: function (word) {
- // var low = (this.low + word.low) | 0;
- // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
- // var high = (this.high + word.high + carry) | 0;
+ // var low = (this.low + word.low) | 0;
+ // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
+ // var high = (this.high + word.high + carry) | 0;
- // return X64Word.create(high, low);
+ // return X64Word.create(high, low);
// }
});
@@ -1006,7 +1005,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
* ], 10);
*/
- init: function (words, sigBytes) {
+ init: function(words, sigBytes) {
words = this.words = words || [];
if (sigBytes != undefined) {
@@ -1025,7 +1024,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
*
* var x32WordArray = x64WordArray.toX32();
*/
- toX32: function () {
+ toX32: function() {
// Shortcuts
var x64Words = this.words;
var x64WordsLength = x64Words.length;
@@ -1050,7 +1049,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
*
* var clone = x64WordArray.clone();
*/
- clone: function () {
+ clone: function() {
var clone = Base.clone.call(this);
// Clone "words" array
@@ -1075,7 +1074,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function () {
+(function() {
// Check if typed arrays are supported
if (typeof ArrayBuffer != 'function') {
return;
@@ -1090,7 +1089,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
var superInit = WordArray.init;
// Augment WordArray.init to handle typed arrays
- var subInit = WordArray.init = function (typedArray) {
+ var subInit = WordArray.init = function(typedArray) {
// Convert buffers to uint8
if (typedArray instanceof ArrayBuffer) {
typedArray = new Uint8Array(typedArray);
@@ -1140,7 +1139,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -1164,7 +1163,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
*
* var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
*/
- stringify: function (wordArray) {
+ stringify: function(wordArray) {
// Shortcuts
var words = wordArray.words;
var sigBytes = wordArray.sigBytes;
@@ -1192,7 +1191,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
*
* var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
*/
- parse: function (utf16Str) {
+ parse: function(utf16Str) {
// Shortcut
var utf16StrLength = utf16Str.length;
@@ -1223,7 +1222,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
*
* var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
*/
- stringify: function (wordArray) {
+ stringify: function(wordArray) {
// Shortcuts
var words = wordArray.words;
var sigBytes = wordArray.sigBytes;
@@ -1251,7 +1250,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
*
* var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
*/
- parse: function (utf16Str) {
+ parse: function(utf16Str) {
// Shortcut
var utf16StrLength = utf16Str.length;
@@ -1279,7 +1278,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -1303,7 +1302,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
*
* var base64String = CryptoJS.enc.Base64.stringify(wordArray);
*/
- stringify: function (wordArray) {
+ stringify: function(wordArray) {
// Shortcuts
var words = wordArray.words;
var sigBytes = wordArray.sigBytes;
@@ -1315,13 +1314,14 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Convert
var base64Chars = [];
for (var i = 0; i < sigBytes; i += 3) {
- var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;
var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;
var triplet = (byte1 << 16) | (byte2 << 8) | byte3;
- for (var j = 0; (j < 4) && (i + j * 0.75 < sigBytes); j++) {
+ for (var j = 0;
+ (j < 4) && (i + j * 0.75 < sigBytes); j++) {
base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));
}
}
@@ -1350,17 +1350,17 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
*
* var wordArray = CryptoJS.enc.Base64.parse(base64String);
*/
- parse: function (base64Str) {
+ parse: function(base64Str) {
// Shortcuts
var base64StrLength = base64Str.length;
var map = this._map;
var reverseMap = this._reverseMap;
if (!reverseMap) {
- reverseMap = this._reverseMap = [];
- for (var j = 0; j < map.length; j++) {
- reverseMap[map.charCodeAt(j)] = j;
- }
+ reverseMap = this._reverseMap = [];
+ for (var j = 0; j < map.length; j++) {
+ reverseMap[map.charCodeAt(j)] = j;
+ }
}
// Ignore padding
@@ -1381,18 +1381,18 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
};
function parseLoop(base64Str, base64StrLength, reverseMap) {
- var words = [];
- var nBytes = 0;
- for (var i = 0; i < base64StrLength; i++) {
- if (i % 4) {
- var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
- var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
- var bitsCombined = bits1 | bits2;
- words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);
- nBytes++;
- }
- }
- return WordArray.create(words, nBytes);
+ var words = [];
+ var nBytes = 0;
+ for (var i = 0; i < base64StrLength; i++) {
+ if (i % 4) {
+ var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
+ var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
+ var bitsCombined = bits1 | bits2;
+ words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);
+ nBytes++;
+ }
+ }
+ return WordArray.create(words, nBytes);
}
}());
@@ -1408,7 +1408,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function (Math) {
+(function(Math) {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -1420,7 +1420,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
var T = [];
// Compute constants
- (function () {
+ (function() {
for (var i = 0; i < 64; i++) {
T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;
}
@@ -1430,14 +1430,14 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* MD5 hash algorithm.
*/
var MD5 = C_algo.MD5 = Hasher.extend({
- _doReset: function () {
+ _doReset: function() {
this._hash = new WordArray.init([
0x67452301, 0xefcdab89,
0x98badcfe, 0x10325476
]);
},
- _doProcessBlock: function (M, offset) {
+ _doProcessBlock: function(M, offset) {
// Swap endian
for (var i = 0; i < 16; i++) {
// Shortcuts
@@ -1445,24 +1445,24 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
var M_offset_i = M[offset_i];
M[offset_i] = (
- (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
- (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
+ (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
+ (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
);
}
// Shortcuts
var H = this._hash.words;
- var M_offset_0 = M[offset + 0];
- var M_offset_1 = M[offset + 1];
- var M_offset_2 = M[offset + 2];
- var M_offset_3 = M[offset + 3];
- var M_offset_4 = M[offset + 4];
- var M_offset_5 = M[offset + 5];
- var M_offset_6 = M[offset + 6];
- var M_offset_7 = M[offset + 7];
- var M_offset_8 = M[offset + 8];
- var M_offset_9 = M[offset + 9];
+ var M_offset_0 = M[offset + 0];
+ var M_offset_1 = M[offset + 1];
+ var M_offset_2 = M[offset + 2];
+ var M_offset_3 = M[offset + 3];
+ var M_offset_4 = M[offset + 4];
+ var M_offset_5 = M[offset + 5];
+ var M_offset_6 = M[offset + 6];
+ var M_offset_7 = M[offset + 7];
+ var M_offset_8 = M[offset + 8];
+ var M_offset_9 = M[offset + 9];
var M_offset_10 = M[offset + 10];
var M_offset_11 = M[offset + 11];
var M_offset_12 = M[offset + 12];
@@ -1477,73 +1477,73 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
var d = H[3];
// Computation
- a = FF(a, b, c, d, M_offset_0, 7, T[0]);
- d = FF(d, a, b, c, M_offset_1, 12, T[1]);
- c = FF(c, d, a, b, M_offset_2, 17, T[2]);
- b = FF(b, c, d, a, M_offset_3, 22, T[3]);
- a = FF(a, b, c, d, M_offset_4, 7, T[4]);
- d = FF(d, a, b, c, M_offset_5, 12, T[5]);
- c = FF(c, d, a, b, M_offset_6, 17, T[6]);
- b = FF(b, c, d, a, M_offset_7, 22, T[7]);
- a = FF(a, b, c, d, M_offset_8, 7, T[8]);
- d = FF(d, a, b, c, M_offset_9, 12, T[9]);
+ a = FF(a, b, c, d, M_offset_0, 7, T[0]);
+ d = FF(d, a, b, c, M_offset_1, 12, T[1]);
+ c = FF(c, d, a, b, M_offset_2, 17, T[2]);
+ b = FF(b, c, d, a, M_offset_3, 22, T[3]);
+ a = FF(a, b, c, d, M_offset_4, 7, T[4]);
+ d = FF(d, a, b, c, M_offset_5, 12, T[5]);
+ c = FF(c, d, a, b, M_offset_6, 17, T[6]);
+ b = FF(b, c, d, a, M_offset_7, 22, T[7]);
+ a = FF(a, b, c, d, M_offset_8, 7, T[8]);
+ d = FF(d, a, b, c, M_offset_9, 12, T[9]);
c = FF(c, d, a, b, M_offset_10, 17, T[10]);
b = FF(b, c, d, a, M_offset_11, 22, T[11]);
- a = FF(a, b, c, d, M_offset_12, 7, T[12]);
+ a = FF(a, b, c, d, M_offset_12, 7, T[12]);
d = FF(d, a, b, c, M_offset_13, 12, T[13]);
c = FF(c, d, a, b, M_offset_14, 17, T[14]);
b = FF(b, c, d, a, M_offset_15, 22, T[15]);
- a = GG(a, b, c, d, M_offset_1, 5, T[16]);
- d = GG(d, a, b, c, M_offset_6, 9, T[17]);
+ a = GG(a, b, c, d, M_offset_1, 5, T[16]);
+ d = GG(d, a, b, c, M_offset_6, 9, T[17]);
c = GG(c, d, a, b, M_offset_11, 14, T[18]);
- b = GG(b, c, d, a, M_offset_0, 20, T[19]);
- a = GG(a, b, c, d, M_offset_5, 5, T[20]);
- d = GG(d, a, b, c, M_offset_10, 9, T[21]);
+ b = GG(b, c, d, a, M_offset_0, 20, T[19]);
+ a = GG(a, b, c, d, M_offset_5, 5, T[20]);
+ d = GG(d, a, b, c, M_offset_10, 9, T[21]);
c = GG(c, d, a, b, M_offset_15, 14, T[22]);
- b = GG(b, c, d, a, M_offset_4, 20, T[23]);
- a = GG(a, b, c, d, M_offset_9, 5, T[24]);
- d = GG(d, a, b, c, M_offset_14, 9, T[25]);
- c = GG(c, d, a, b, M_offset_3, 14, T[26]);
- b = GG(b, c, d, a, M_offset_8, 20, T[27]);
- a = GG(a, b, c, d, M_offset_13, 5, T[28]);
- d = GG(d, a, b, c, M_offset_2, 9, T[29]);
- c = GG(c, d, a, b, M_offset_7, 14, T[30]);
+ b = GG(b, c, d, a, M_offset_4, 20, T[23]);
+ a = GG(a, b, c, d, M_offset_9, 5, T[24]);
+ d = GG(d, a, b, c, M_offset_14, 9, T[25]);
+ c = GG(c, d, a, b, M_offset_3, 14, T[26]);
+ b = GG(b, c, d, a, M_offset_8, 20, T[27]);
+ a = GG(a, b, c, d, M_offset_13, 5, T[28]);
+ d = GG(d, a, b, c, M_offset_2, 9, T[29]);
+ c = GG(c, d, a, b, M_offset_7, 14, T[30]);
b = GG(b, c, d, a, M_offset_12, 20, T[31]);
- a = HH(a, b, c, d, M_offset_5, 4, T[32]);
- d = HH(d, a, b, c, M_offset_8, 11, T[33]);
+ a = HH(a, b, c, d, M_offset_5, 4, T[32]);
+ d = HH(d, a, b, c, M_offset_8, 11, T[33]);
c = HH(c, d, a, b, M_offset_11, 16, T[34]);
b = HH(b, c, d, a, M_offset_14, 23, T[35]);
- a = HH(a, b, c, d, M_offset_1, 4, T[36]);
- d = HH(d, a, b, c, M_offset_4, 11, T[37]);
- c = HH(c, d, a, b, M_offset_7, 16, T[38]);
+ a = HH(a, b, c, d, M_offset_1, 4, T[36]);
+ d = HH(d, a, b, c, M_offset_4, 11, T[37]);
+ c = HH(c, d, a, b, M_offset_7, 16, T[38]);
b = HH(b, c, d, a, M_offset_10, 23, T[39]);
- a = HH(a, b, c, d, M_offset_13, 4, T[40]);
- d = HH(d, a, b, c, M_offset_0, 11, T[41]);
- c = HH(c, d, a, b, M_offset_3, 16, T[42]);
- b = HH(b, c, d, a, M_offset_6, 23, T[43]);
- a = HH(a, b, c, d, M_offset_9, 4, T[44]);
+ a = HH(a, b, c, d, M_offset_13, 4, T[40]);
+ d = HH(d, a, b, c, M_offset_0, 11, T[41]);
+ c = HH(c, d, a, b, M_offset_3, 16, T[42]);
+ b = HH(b, c, d, a, M_offset_6, 23, T[43]);
+ a = HH(a, b, c, d, M_offset_9, 4, T[44]);
d = HH(d, a, b, c, M_offset_12, 11, T[45]);
c = HH(c, d, a, b, M_offset_15, 16, T[46]);
- b = HH(b, c, d, a, M_offset_2, 23, T[47]);
+ b = HH(b, c, d, a, M_offset_2, 23, T[47]);
- a = II(a, b, c, d, M_offset_0, 6, T[48]);
- d = II(d, a, b, c, M_offset_7, 10, T[49]);
+ a = II(a, b, c, d, M_offset_0, 6, T[48]);
+ d = II(d, a, b, c, M_offset_7, 10, T[49]);
c = II(c, d, a, b, M_offset_14, 15, T[50]);
- b = II(b, c, d, a, M_offset_5, 21, T[51]);
- a = II(a, b, c, d, M_offset_12, 6, T[52]);
- d = II(d, a, b, c, M_offset_3, 10, T[53]);
+ b = II(b, c, d, a, M_offset_5, 21, T[51]);
+ a = II(a, b, c, d, M_offset_12, 6, T[52]);
+ d = II(d, a, b, c, M_offset_3, 10, T[53]);
c = II(c, d, a, b, M_offset_10, 15, T[54]);
- b = II(b, c, d, a, M_offset_1, 21, T[55]);
- a = II(a, b, c, d, M_offset_8, 6, T[56]);
+ b = II(b, c, d, a, M_offset_1, 21, T[55]);
+ a = II(a, b, c, d, M_offset_8, 6, T[56]);
d = II(d, a, b, c, M_offset_15, 10, T[57]);
- c = II(c, d, a, b, M_offset_6, 15, T[58]);
+ c = II(c, d, a, b, M_offset_6, 15, T[58]);
b = II(b, c, d, a, M_offset_13, 21, T[59]);
- a = II(a, b, c, d, M_offset_4, 6, T[60]);
+ a = II(a, b, c, d, M_offset_4, 6, T[60]);
d = II(d, a, b, c, M_offset_11, 10, T[61]);
- c = II(c, d, a, b, M_offset_2, 15, T[62]);
- b = II(b, c, d, a, M_offset_9, 21, T[63]);
+ c = II(c, d, a, b, M_offset_2, 15, T[62]);
+ b = II(b, c, d, a, M_offset_9, 21, T[63]);
// Intermediate hash value
H[0] = (H[0] + a) | 0;
@@ -1552,7 +1552,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
H[3] = (H[3] + d) | 0;
},
- _doFinalize: function () {
+ _doFinalize: function() {
// Shortcuts
var data = this._data;
var dataWords = data.words;
@@ -1566,12 +1566,12 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);
var nBitsTotalL = nBitsTotal;
dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (
- (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |
- (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)
+ (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |
+ (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)
);
dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (
- (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |
- (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)
+ (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |
+ (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)
);
data.sigBytes = (dataWords.length + 1) * 4;
@@ -1588,15 +1588,15 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Shortcut
var H_i = H[i];
- H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
- (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
+ H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
+ (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
}
// Return final computed hash
return hash;
},
- clone: function () {
+ clone: function() {
var clone = Hasher.clone.call(this);
clone._hash = this._hash.clone();
@@ -1671,7 +1671,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -1686,7 +1686,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* SHA-1 hash algorithm.
*/
var SHA1 = C_algo.SHA1 = Hasher.extend({
- _doReset: function () {
+ _doReset: function() {
this._hash = new WordArray.init([
0x67452301, 0xefcdab89,
0x98badcfe, 0x10325476,
@@ -1694,7 +1694,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
]);
},
- _doProcessBlock: function (M, offset) {
+ _doProcessBlock: function(M, offset) {
// Shortcut
var H = this._hash.words;
@@ -1740,7 +1740,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
H[4] = (H[4] + e) | 0;
},
- _doFinalize: function () {
+ _doFinalize: function() {
// Shortcuts
var data = this._data;
var dataWords = data.words;
@@ -1761,7 +1761,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
return this._hash;
},
- clone: function () {
+ clone: function() {
var clone = Hasher.clone.call(this);
clone._hash = this._hash.clone();
@@ -1813,7 +1813,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function (Math) {
+(function(Math) {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -1826,7 +1826,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
var K = [];
// Compute constants
- (function () {
+ (function() {
function isPrime(n) {
var sqrtN = Math.sqrt(n);
for (var factor = 2; factor <= sqrtN; factor++) {
@@ -1865,11 +1865,11 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* SHA-256 hash algorithm.
*/
var SHA256 = C_algo.SHA256 = Hasher.extend({
- _doReset: function () {
+ _doReset: function() {
this._hash = new WordArray.init(H.slice(0));
},
- _doProcessBlock: function (M, offset) {
+ _doProcessBlock: function(M, offset) {
// Shortcut
var H = this._hash.words;
@@ -1889,23 +1889,23 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
W[i] = M[offset + i] | 0;
} else {
var gamma0x = W[i - 15];
- var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^
- ((gamma0x << 14) | (gamma0x >>> 18)) ^
- (gamma0x >>> 3);
+ var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^
+ ((gamma0x << 14) | (gamma0x >>> 18)) ^
+ (gamma0x >>> 3);
var gamma1x = W[i - 2];
- var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^
- ((gamma1x << 13) | (gamma1x >>> 19)) ^
- (gamma1x >>> 10);
+ var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^
+ ((gamma1x << 13) | (gamma1x >>> 19)) ^
+ (gamma1x >>> 10);
W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];
}
- var ch = (e & f) ^ (~e & g);
+ var ch = (e & f) ^ (~e & g);
var maj = (a & b) ^ (a & c) ^ (b & c);
var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));
- var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));
+ var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));
var t1 = h + sigma1 + ch + K[i] + W[i];
var t2 = sigma0 + maj;
@@ -1931,7 +1931,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
H[7] = (H[7] + h) | 0;
},
- _doFinalize: function () {
+ _doFinalize: function() {
// Shortcuts
var data = this._data;
var dataWords = data.words;
@@ -1952,7 +1952,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
return this._hash;
},
- clone: function () {
+ clone: function() {
var clone = Hasher.clone.call(this);
clone._hash = this._hash.clone();
@@ -2005,7 +2005,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -2017,14 +2017,14 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* SHA-224 hash algorithm.
*/
var SHA224 = C_algo.SHA224 = SHA256.extend({
- _doReset: function () {
+ _doReset: function() {
this._hash = new WordArray.init([
0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
]);
},
- _doFinalize: function () {
+ _doFinalize: function() {
var hash = SHA256._doFinalize.call(this);
hash.sigBytes -= 4;
@@ -2074,7 +2074,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -2134,7 +2134,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Reusable objects
var W = [];
- (function () {
+ (function() {
for (var i = 0; i < 80; i++) {
W[i] = X64Word_create();
}
@@ -2144,7 +2144,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* SHA-512 hash algorithm.
*/
var SHA512 = C_algo.SHA512 = Hasher.extend({
- _doReset: function () {
+ _doReset: function() {
this._hash = new X64WordArray.init([
new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),
new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),
@@ -2153,7 +2153,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
]);
},
- _doProcessBlock: function (M, offset) {
+ _doProcessBlock: function(M, offset) {
// Shortcuts
var H = this._hash.words;
@@ -2211,29 +2211,29 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Extend message
if (i < 16) {
- Wih = Wi.high = M[offset + i * 2] | 0;
- Wil = Wi.low = M[offset + i * 2 + 1] | 0;
+ Wih = Wi.high = M[offset + i * 2] | 0;
+ Wil = Wi.low = M[offset + i * 2 + 1] | 0;
} else {
// Gamma0
- var gamma0x = W[i - 15];
+ var gamma0x = W[i - 15];
var gamma0xh = gamma0x.high;
var gamma0xl = gamma0x.low;
- var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);
- var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));
+ var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);
+ var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));
// Gamma1
- var gamma1x = W[i - 2];
+ var gamma1x = W[i - 2];
var gamma1xh = gamma1x.high;
var gamma1xl = gamma1x.low;
- var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);
- var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));
+ var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);
+ var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));
// W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
- var Wi7 = W[i - 7];
+ var Wi7 = W[i - 7];
var Wi7h = Wi7.high;
var Wi7l = Wi7.low;
- var Wi16 = W[i - 16];
+ var Wi16 = W[i - 16];
var Wi16h = Wi16.high;
var Wi16l = Wi16.low;
@@ -2245,21 +2245,21 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);
Wi.high = Wih;
- Wi.low = Wil;
+ Wi.low = Wil;
}
- var chh = (eh & fh) ^ (~eh & gh);
- var chl = (el & fl) ^ (~el & gl);
+ var chh = (eh & fh) ^ (~eh & gh);
+ var chl = (el & fl) ^ (~el & gl);
var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);
var majl = (al & bl) ^ (al & cl) ^ (bl & cl);
- var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));
- var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));
+ var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));
+ var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));
var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));
var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));
// t1 = h + sigma1 + ch + K[i] + W[i]
- var Ki = K[i];
+ var Ki = K[i];
var Kih = Ki.high;
var Kil = Ki.low;
@@ -2296,25 +2296,25 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
}
// Intermediate hash value
- H0l = H0.low = (H0l + al);
+ H0l = H0.low = (H0l + al);
H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));
- H1l = H1.low = (H1l + bl);
+ H1l = H1.low = (H1l + bl);
H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));
- H2l = H2.low = (H2l + cl);
+ H2l = H2.low = (H2l + cl);
H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));
- H3l = H3.low = (H3l + dl);
+ H3l = H3.low = (H3l + dl);
H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));
- H4l = H4.low = (H4l + el);
+ H4l = H4.low = (H4l + el);
H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));
- H5l = H5.low = (H5l + fl);
+ H5l = H5.low = (H5l + fl);
H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));
- H6l = H6.low = (H6l + gl);
+ H6l = H6.low = (H6l + gl);
H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));
- H7l = H7.low = (H7l + hl);
+ H7l = H7.low = (H7l + hl);
H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));
},
- _doFinalize: function () {
+ _doFinalize: function() {
// Shortcuts
var data = this._data;
var dataWords = data.words;
@@ -2338,14 +2338,14 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
return hash;
},
- clone: function () {
+ clone: function() {
var clone = Hasher.clone.call(this);
clone._hash = this._hash.clone();
return clone;
},
- blockSize: 1024/32
+ blockSize: 1024 / 32
});
/**
@@ -2388,7 +2388,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_x64 = C.x64;
@@ -2401,7 +2401,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
* SHA-384 hash algorithm.
*/
var SHA384 = C_algo.SHA384 = SHA512.extend({
- _doReset: function () {
+ _doReset: function() {
this._hash = new X64WordArray.init([
new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),
new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),
@@ -2410,7 +2410,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
]);
},
- _doFinalize: function () {
+ _doFinalize: function() {
var hash = SHA512._doFinalize.call(this);
hash.sigBytes -= 16;
@@ -2461,7 +2461,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
-(function (Math) {
+(function(Math) {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -2473,13 +2473,14 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Constants tables
var RHO_OFFSETS = [];
- var PI_INDEXES = [];
+ var PI_INDEXES = [];
var ROUND_CONSTANTS = [];
// Compute Constants
- (function () {
+ (function() {
// Compute rho offset constants
- var x = 1, y = 0;
+ var x = 1,
+ y = 0;
for (var t = 0; t < 24; t++) {
RHO_OFFSETS[x + 5 * y] = ((t + 1) * (t + 2) / 2) % 64;
@@ -2527,7 +2528,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Reusable objects for temporary values
var T = [];
- (function () {
+ (function() {
for (var i = 0; i < 25; i++) {
T[i] = X64Word.create();
}
@@ -2549,7 +2550,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
outputLength: 512
}),
- _doReset: function () {
+ _doReset: function() {
var state = this._state = []
for (var i = 0; i < 25; i++) {
state[i] = new X64Word.init();
@@ -2558,7 +2559,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
},
- _doProcessBlock: function (M, offset) {
+ _doProcessBlock: function(M, offset) {
// Shortcuts
var state = this._state;
var nBlockSizeLanes = this.blockSize / 2;
@@ -2566,23 +2567,23 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Absorb
for (var i = 0; i < nBlockSizeLanes; i++) {
// Shortcuts
- var M2i = M[offset + 2 * i];
+ var M2i = M[offset + 2 * i];
var M2i1 = M[offset + 2 * i + 1];
// Swap endian
M2i = (
- (((M2i << 8) | (M2i >>> 24)) & 0x00ff00ff) |
- (((M2i << 24) | (M2i >>> 8)) & 0xff00ff00)
+ (((M2i << 8) | (M2i >>> 24)) & 0x00ff00ff) |
+ (((M2i << 24) | (M2i >>> 8)) & 0xff00ff00)
);
M2i1 = (
- (((M2i1 << 8) | (M2i1 >>> 24)) & 0x00ff00ff) |
- (((M2i1 << 24) | (M2i1 >>> 8)) & 0xff00ff00)
+ (((M2i1 << 8) | (M2i1 >>> 24)) & 0x00ff00ff) |
+ (((M2i1 << 24) | (M2i1 >>> 8)) & 0xff00ff00)
);
// Absorb message into state
var lane = state[i];
lane.high ^= M2i1;
- lane.low ^= M2i;
+ lane.low ^= M2i;
}
// Rounds
@@ -2590,7 +2591,8 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Theta
for (var x = 0; x < 5; x++) {
// Mix column lanes
- var tMsw = 0, tLsw = 0;
+ var tMsw = 0,
+ tLsw = 0;
for (var y = 0; y < 5; y++) {
var lane = state[x + 5 * y];
tMsw ^= lane.high;
@@ -2600,7 +2602,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Temporary values
var Tx = T[x];
Tx.high = tMsw;
- Tx.low = tLsw;
+ Tx.low = tLsw;
}
for (var x = 0; x < 5; x++) {
// Shortcuts
@@ -2611,11 +2613,11 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Mix surrounding columns
var tMsw = Tx4.high ^ ((Tx1Msw << 1) | (Tx1Lsw >>> 31));
- var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw >>> 31));
+ var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw >>> 31));
for (var y = 0; y < 5; y++) {
var lane = state[x + 5 * y];
lane.high ^= tMsw;
- lane.low ^= tLsw;
+ lane.low ^= tLsw;
}
}
@@ -2642,14 +2644,14 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Transpose lanes
var TPiLane = T[PI_INDEXES[laneIndex]];
TPiLane.high = tMsw;
- TPiLane.low = tLsw;
+ TPiLane.low = tLsw;
}
// Rho pi at x = y = 0
var T0 = T[0];
var state0 = state[0];
T0.high = state0.high;
- T0.low = state0.low;
+ T0.low = state0.low;
// Chi
for (var x = 0; x < 5; x++) {
@@ -2663,7 +2665,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Mix rows
lane.high = TLane.high ^ (~Tx1Lane.high & Tx2Lane.high);
- lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low);
+ lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low);
}
}
@@ -2671,11 +2673,11 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
var lane = state[0];
var roundConstant = ROUND_CONSTANTS[round];
lane.high ^= roundConstant.high;
- lane.low ^= roundConstant.low;
+ lane.low ^= roundConstant.low;
}
},
- _doFinalize: function () {
+ _doFinalize: function() {
// Shortcuts
var data = this._data;
var dataWords = data.words;
@@ -2706,12 +2708,12 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
// Swap endian
laneMsw = (
- (((laneMsw << 8) | (laneMsw >>> 24)) & 0x00ff00ff) |
- (((laneMsw << 24) | (laneMsw >>> 8)) & 0xff00ff00)
+ (((laneMsw << 8) | (laneMsw >>> 24)) & 0x00ff00ff) |
+ (((laneMsw << 24) | (laneMsw >>> 8)) & 0xff00ff00)
);
laneLsw = (
- (((laneLsw << 8) | (laneLsw >>> 24)) & 0x00ff00ff) |
- (((laneLsw << 24) | (laneLsw >>> 8)) & 0xff00ff00)
+ (((laneLsw << 8) | (laneLsw >>> 24)) & 0x00ff00ff) |
+ (((laneLsw << 24) | (laneLsw >>> 8)) & 0xff00ff00)
);
// Squeeze state to retrieve hash
@@ -2723,7 +2725,7 @@ var CryptoJS = CryptoJS || (function (Math, undefined) {
return new WordArray.init(hashWords, outputLengthBytes);
},
- clone: function () {
+ clone: function() {
var clone = Hasher.clone.call(this);
var state = clone._state = this._state.slice(0);
@@ -2785,7 +2787,7 @@ Redistribution and use in source and binary forms, with or without modification,
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-(function (Math) {
+(function(Math) {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -2795,42 +2797,46 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// Constants table
var _zl = WordArray.create([
- 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
- 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
- 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
- 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
- 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]);
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
+ 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
+ 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
+ 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13
+ ]);
var _zr = WordArray.create([
- 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
- 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
- 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
- 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
- 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]);
+ 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
+ 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
+ 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
+ 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
+ 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11
+ ]);
var _sl = WordArray.create([
- 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
- 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
- 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
- 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
- 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6 ]);
+ 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
+ 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
+ 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
+ 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
+ 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6
+ ]);
var _sr = WordArray.create([
- 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
- 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
- 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
- 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
- 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11 ]);
+ 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
+ 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
+ 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
+ 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
+ 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11
+ ]);
- var _hl = WordArray.create([ 0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);
- var _hr = WordArray.create([ 0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);
+ var _hl = WordArray.create([0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);
+ var _hr = WordArray.create([0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);
/**
* RIPEMD160 hash algorithm.
*/
var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({
- _doReset: function () {
- this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);
+ _doReset: function() {
+ this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);
},
- _doProcessBlock: function (M, offset) {
+ _doProcessBlock: function(M, offset) {
// Swap endian
for (var i = 0; i < 16; i++) {
@@ -2840,12 +2846,12 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// Swap
M[offset_i] = (
- (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
- (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
+ (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
+ (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
);
}
// Shortcut
- var H = this._hash.words;
+ var H = this._hash.words;
var hl = _hl.words;
var hr = _hr.words;
var zl = _zl.words;
@@ -2865,42 +2871,42 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// Computation
var t;
for (var i = 0; i < 80; i += 1) {
- t = (al + M[offset+zl[i]])|0;
- if (i<16){
- t += f1(bl,cl,dl) + hl[0];
- } else if (i<32) {
- t += f2(bl,cl,dl) + hl[1];
- } else if (i<48) {
- t += f3(bl,cl,dl) + hl[2];
- } else if (i<64) {
- t += f4(bl,cl,dl) + hl[3];
- } else {// if (i<80) {
- t += f5(bl,cl,dl) + hl[4];
+ t = (al + M[offset + zl[i]]) | 0;
+ if (i < 16) {
+ t += f1(bl, cl, dl) + hl[0];
+ } else if (i < 32) {
+ t += f2(bl, cl, dl) + hl[1];
+ } else if (i < 48) {
+ t += f3(bl, cl, dl) + hl[2];
+ } else if (i < 64) {
+ t += f4(bl, cl, dl) + hl[3];
+ } else { // if (i<80) {
+ t += f5(bl, cl, dl) + hl[4];
}
- t = t|0;
- t = rotl(t,sl[i]);
- t = (t+el)|0;
+ t = t | 0;
+ t = rotl(t, sl[i]);
+ t = (t + el) | 0;
al = el;
el = dl;
dl = rotl(cl, 10);
cl = bl;
bl = t;
- t = (ar + M[offset+zr[i]])|0;
- if (i<16){
- t += f5(br,cr,dr) + hr[0];
- } else if (i<32) {
- t += f4(br,cr,dr) + hr[1];
- } else if (i<48) {
- t += f3(br,cr,dr) + hr[2];
- } else if (i<64) {
- t += f2(br,cr,dr) + hr[3];
- } else {// if (i<80) {
- t += f1(br,cr,dr) + hr[4];
+ t = (ar + M[offset + zr[i]]) | 0;
+ if (i < 16) {
+ t += f5(br, cr, dr) + hr[0];
+ } else if (i < 32) {
+ t += f4(br, cr, dr) + hr[1];
+ } else if (i < 48) {
+ t += f3(br, cr, dr) + hr[2];
+ } else if (i < 64) {
+ t += f2(br, cr, dr) + hr[3];
+ } else { // if (i<80) {
+ t += f1(br, cr, dr) + hr[4];
}
- t = t|0;
- t = rotl(t,sr[i]) ;
- t = (t+er)|0;
+ t = t | 0;
+ t = rotl(t, sr[i]);
+ t = (t + er) | 0;
ar = er;
er = dr;
dr = rotl(cr, 10);
@@ -2908,15 +2914,15 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
br = t;
}
// Intermediate hash value
- t = (H[1] + cl + dr)|0;
- H[1] = (H[2] + dl + er)|0;
- H[2] = (H[3] + el + ar)|0;
- H[3] = (H[4] + al + br)|0;
- H[4] = (H[0] + bl + cr)|0;
- H[0] = t;
+ t = (H[1] + cl + dr) | 0;
+ H[1] = (H[2] + dl + er) | 0;
+ H[2] = (H[3] + el + ar) | 0;
+ H[3] = (H[4] + al + br) | 0;
+ H[4] = (H[0] + bl + cr) | 0;
+ H[0] = t;
},
- _doFinalize: function () {
+ _doFinalize: function() {
// Shortcuts
var data = this._data;
var dataWords = data.words;
@@ -2927,8 +2933,8 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
// Add padding
dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (
- (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |
- (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)
+ (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |
+ (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)
);
data.sigBytes = (dataWords.length + 1) * 4;
@@ -2945,15 +2951,15 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
var H_i = H[i];
// Swap
- H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
- (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
+ H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
+ (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
}
// Return final computed hash
return hash;
},
- clone: function () {
+ clone: function() {
var clone = Hasher.clone.call(this);
clone._hash = this._hash.clone();
@@ -2968,7 +2974,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
}
function f2(x, y, z) {
- return (((x)&(y)) | ((~x)&(z)));
+ return (((x) & (y)) | ((~x) & (z)));
}
function f3(x, y, z) {
@@ -2976,16 +2982,16 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
}
function f4(x, y, z) {
- return (((x) & (z)) | ((y)&(~(z))));
+ return (((x) & (z)) | ((y) & (~(z))));
}
function f5(x, y, z) {
- return ((x) ^ ((y) |(~(z))));
+ return ((x) ^ ((y) | (~(z))));
}
- function rotl(x,n) {
- return (x<>>(32-n));
+ function rotl(x, n) {
+ return (x << n) | (x >>> (32 - n));
}
@@ -3031,7 +3037,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -3054,7 +3060,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
*
* var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
*/
- init: function (hasher, key) {
+ init: function(hasher, key) {
// Init hasher
hasher = this._hasher = new hasher.init();
@@ -3101,7 +3107,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
*
* hmacHasher.reset();
*/
- reset: function () {
+ reset: function() {
// Shortcut
var hasher = this._hasher;
@@ -3122,7 +3128,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* hmacHasher.update('message');
* hmacHasher.update(wordArray);
*/
- update: function (messageUpdate) {
+ update: function(messageUpdate) {
this._hasher.update(messageUpdate);
// Chainable
@@ -3143,7 +3149,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* var hmac = hmacHasher.finalize('message');
* var hmac = hmacHasher.finalize(wordArray);
*/
- finalize: function (messageUpdate) {
+ finalize: function(messageUpdate) {
// Shortcut
var hasher = this._hasher;
@@ -3167,7 +3173,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -3189,7 +3195,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* @property {number} iterations The number of iterations to perform. Default: 1
*/
cfg: Base.extend({
- keySize: 128/32,
+ keySize: 128 / 32,
hasher: SHA1,
iterations: 1
}),
@@ -3205,7 +3211,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
* var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
*/
- init: function (cfg) {
+ init: function(cfg) {
this.cfg = this.cfg.extend(cfg);
},
@@ -3221,7 +3227,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
*
* var key = kdf.compute(password, salt);
*/
- compute: function (password, salt) {
+ compute: function(password, salt) {
// Shortcut
var cfg = this.cfg;
@@ -3288,7 +3294,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
* var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });
* var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });
*/
- C.PBKDF2 = function (password, salt, cfg) {
+ C.PBKDF2 = function(password, salt, cfg) {
return PBKDF2.create(cfg).compute(password, salt);
};
}());
@@ -3307,7 +3313,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
/**
* Cipher core components.
*/
-CryptoJS.lib.Cipher || (function (undefined) {
+CryptoJS.lib.Cipher || (function(undefined) {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -3350,7 +3356,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
*/
- createEncryptor: function (key, cfg) {
+ createEncryptor: function(key, cfg) {
return this.create(this._ENC_XFORM_MODE, key, cfg);
},
@@ -3368,7 +3374,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
*/
- createDecryptor: function (key, cfg) {
+ createDecryptor: function(key, cfg) {
return this.create(this._DEC_XFORM_MODE, key, cfg);
},
@@ -3383,7 +3389,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
*/
- init: function (xformMode, key, cfg) {
+ init: function(xformMode, key, cfg) {
// Apply config defaults
this.cfg = this.cfg.extend(cfg);
@@ -3402,7 +3408,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* cipher.reset();
*/
- reset: function () {
+ reset: function() {
// Reset data buffer
BufferedBlockAlgorithm.reset.call(this);
@@ -3422,7 +3428,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
* var encrypted = cipher.process('data');
* var encrypted = cipher.process(wordArray);
*/
- process: function (dataUpdate) {
+ process: function(dataUpdate) {
// Append
this._append(dataUpdate);
@@ -3444,7 +3450,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
* var encrypted = cipher.finalize('data');
* var encrypted = cipher.finalize(wordArray);
*/
- finalize: function (dataUpdate) {
+ finalize: function(dataUpdate) {
// Final data update
if (dataUpdate) {
this._append(dataUpdate);
@@ -3456,9 +3462,9 @@ CryptoJS.lib.Cipher || (function (undefined) {
return finalProcessedData;
},
- keySize: 128/32,
+ keySize: 128 / 32,
- ivSize: 128/32,
+ ivSize: 128 / 32,
_ENC_XFORM_MODE: 1,
@@ -3477,7 +3483,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
*/
- _createHelper: (function () {
+ _createHelper: (function() {
function selectCipherStrategy(key) {
if (typeof key == 'string') {
return PasswordBasedCipher;
@@ -3486,13 +3492,13 @@ CryptoJS.lib.Cipher || (function (undefined) {
}
}
- return function (cipher) {
+ return function(cipher) {
return {
- encrypt: function (message, key, cfg) {
+ encrypt: function(message, key, cfg) {
return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
},
- decrypt: function (ciphertext, key, cfg) {
+ decrypt: function(ciphertext, key, cfg) {
return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
}
};
@@ -3506,7 +3512,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
* @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
*/
var StreamCipher = C_lib.StreamCipher = Cipher.extend({
- _doFinalize: function () {
+ _doFinalize: function() {
// Process partial blocks
var finalProcessedBlocks = this._process(!!'flush');
@@ -3537,7 +3543,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
*/
- createEncryptor: function (cipher, iv) {
+ createEncryptor: function(cipher, iv) {
return this.Encryptor.create(cipher, iv);
},
@@ -3553,7 +3559,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
*/
- createDecryptor: function (cipher, iv) {
+ createDecryptor: function(cipher, iv) {
return this.Decryptor.create(cipher, iv);
},
@@ -3567,7 +3573,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
*/
- init: function (cipher, iv) {
+ init: function(cipher, iv) {
this._cipher = cipher;
this._iv = iv;
}
@@ -3576,7 +3582,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
/**
* Cipher Block Chaining mode.
*/
- var CBC = C_mode.CBC = (function () {
+ var CBC = C_mode.CBC = (function() {
/**
* Abstract base CBC mode.
*/
@@ -3596,7 +3602,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* mode.processBlock(data.words, offset);
*/
- processBlock: function (words, offset) {
+ processBlock: function(words, offset) {
// Shortcuts
var cipher = this._cipher;
var blockSize = cipher.blockSize;
@@ -3624,7 +3630,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* mode.processBlock(data.words, offset);
*/
- processBlock: function (words, offset) {
+ processBlock: function(words, offset) {
// Shortcuts
var cipher = this._cipher;
var blockSize = cipher.blockSize;
@@ -3687,7 +3693,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* CryptoJS.pad.Pkcs7.pad(wordArray, 4);
*/
- pad: function (data, blockSize) {
+ pad: function(data, blockSize) {
// Shortcut
var blockSizeBytes = blockSize * 4;
@@ -3719,7 +3725,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* CryptoJS.pad.Pkcs7.unpad(wordArray);
*/
- unpad: function (data) {
+ unpad: function(data) {
// Get number of padding bytes from last byte
var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
@@ -3745,7 +3751,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
padding: Pkcs7
}),
- reset: function () {
+ reset: function() {
var modeCreator;
// Reset cipher
@@ -3773,11 +3779,11 @@ CryptoJS.lib.Cipher || (function (undefined) {
}
},
- _doProcessBlock: function (words, offset) {
+ _doProcessBlock: function(words, offset) {
this._mode.processBlock(words, offset);
},
- _doFinalize: function () {
+ _doFinalize: function() {
var finalProcessedBlocks;
// Shortcut
@@ -3801,7 +3807,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
return finalProcessedBlocks;
},
- blockSize: 128/32
+ blockSize: 128 / 32
});
/**
@@ -3837,7 +3843,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
* formatter: CryptoJS.format.OpenSSL
* });
*/
- init: function (cipherParams) {
+ init: function(cipherParams) {
this.mixIn(cipherParams);
},
@@ -3856,7 +3862,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
* var string = cipherParams.toString();
* var string = cipherParams.toString(CryptoJS.format.OpenSSL);
*/
- toString: function (formatter) {
+ toString: function(formatter) {
return (formatter || this.formatter).stringify(this);
}
});
@@ -3883,7 +3889,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
*/
- stringify: function (cipherParams) {
+ stringify: function(cipherParams) {
var wordArray;
// Shortcuts
@@ -3913,7 +3919,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
*/
- parse: function (openSSLStr) {
+ parse: function(openSSLStr) {
var salt;
// Parse base64
@@ -3932,7 +3938,10 @@ CryptoJS.lib.Cipher || (function (undefined) {
ciphertext.sigBytes -= 16;
}
- return CipherParams.create({ ciphertext: ciphertext, salt: salt });
+ return CipherParams.create({
+ ciphertext: ciphertext,
+ salt: salt
+ });
}
};
@@ -3967,7 +3976,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
* var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
*/
- encrypt: function (cipher, message, key, cfg) {
+ encrypt: function(cipher, message, key, cfg) {
// Apply config defaults
cfg = this.cfg.extend(cfg);
@@ -4008,7 +4017,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
* var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
*/
- decrypt: function (cipher, ciphertext, key, cfg) {
+ decrypt: function(cipher, ciphertext, key, cfg) {
// Apply config defaults
cfg = this.cfg.extend(cfg);
@@ -4036,7 +4045,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
*
* var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
*/
- _parse: function (ciphertext, format) {
+ _parse: function(ciphertext, format) {
if (typeof ciphertext == 'string') {
return format.parse(ciphertext, this);
} else {
@@ -4071,21 +4080,27 @@ CryptoJS.lib.Cipher || (function (undefined) {
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
* var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
*/
- execute: function (password, keySize, ivSize, salt) {
+ execute: function(password, keySize, ivSize, salt) {
// Generate random salt
if (!salt) {
- salt = WordArray.random(64/8);
+ salt = WordArray.random(64 / 8);
}
// Derive key and IV
- var key = EvpKDF.create({ keySize: keySize + ivSize }).compute(password, salt);
+ var key = EvpKDF.create({
+ keySize: keySize + ivSize
+ }).compute(password, salt);
// Separate key and IV
var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
key.sigBytes = keySize * 4;
// Return params
- return CipherParams.create({ key: key, iv: iv, salt: salt });
+ return CipherParams.create({
+ key: key,
+ iv: iv,
+ salt: salt
+ });
}
};
@@ -4120,7 +4135,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
* var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
*/
- encrypt: function (cipher, message, password, cfg) {
+ encrypt: function(cipher, message, password, cfg) {
// Apply config defaults
cfg = this.cfg.extend(cfg);
@@ -4156,7 +4171,7 @@ CryptoJS.lib.Cipher || (function (undefined) {
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
* var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
*/
- decrypt: function (cipher, ciphertext, password, cfg) {
+ decrypt: function(cipher, ciphertext, password, cfg) {
// Apply config defaults
cfg = this.cfg.extend(cfg);
@@ -4188,11 +4203,11 @@ CryptoJS.lib.Cipher || (function (undefined) {
/**
* Cipher Feedback block mode.
*/
-CryptoJS.mode.CFB = (function () {
+CryptoJS.mode.CFB = (function() {
var CFB = CryptoJS.lib.BlockCipherMode.extend();
CFB.Encryptor = CFB.extend({
- processBlock: function (words, offset) {
+ processBlock: function(words, offset) {
// Shortcuts
var cipher = this._cipher;
var blockSize = cipher.blockSize;
@@ -4205,7 +4220,7 @@ CryptoJS.mode.CFB = (function () {
});
CFB.Decryptor = CFB.extend({
- processBlock: function (words, offset) {
+ processBlock: function(words, offset) {
// Shortcuts
var cipher = this._cipher;
var blockSize = cipher.blockSize;
@@ -4256,11 +4271,11 @@ CryptoJS.mode.CFB = (function () {
/**
* Counter block mode.
*/
-CryptoJS.mode.CTR = (function () {
+CryptoJS.mode.CTR = (function() {
var CTR = CryptoJS.lib.BlockCipherMode.extend();
var Encryptor = CTR.Encryptor = CTR.extend({
- processBlock: function (words, offset) {
+ processBlock: function(words, offset) {
// Shortcuts
var cipher = this._cipher
var blockSize = cipher.blockSize;
@@ -4302,65 +4317,52 @@ CryptoJS.mode.CTR = (function () {
* derived from CryptoJS.mode.CTR
* Jan Hruby jhruby.web@gmail.com
*/
-CryptoJS.mode.CTRGladman = (function () {
+CryptoJS.mode.CTRGladman = (function() {
var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();
- function incWord(word)
- {
- if (((word >> 24) & 0xff) === 0xff) { //overflow
- var b1 = (word >> 16)&0xff;
- var b2 = (word >> 8)&0xff;
- var b3 = word & 0xff;
+ function incWord(word) {
+ if (((word >> 24) & 0xff) === 0xff) { //overflow
+ var b1 = (word >> 16) & 0xff;
+ var b2 = (word >> 8) & 0xff;
+ var b3 = word & 0xff;
- if (b1 === 0xff) // overflow b1
- {
- b1 = 0;
- if (b2 === 0xff)
- {
- b2 = 0;
- if (b3 === 0xff)
- {
- b3 = 0;
- }
- else
- {
- ++b3;
- }
- }
- else
- {
- ++b2;
- }
- }
- else
- {
- ++b1;
- }
+ if (b1 === 0xff) // overflow b1
+ {
+ b1 = 0;
+ if (b2 === 0xff) {
+ b2 = 0;
+ if (b3 === 0xff) {
+ b3 = 0;
+ } else {
+ ++b3;
+ }
+ } else {
+ ++b2;
+ }
+ } else {
+ ++b1;
+ }
- word = 0;
- word += (b1 << 16);
- word += (b2 << 8);
- word += b3;
- }
- else
- {
- word += (0x01 << 24);
- }
- return word;
- }
+ word = 0;
+ word += (b1 << 16);
+ word += (b2 << 8);
+ word += b3;
+ } else {
+ word += (0x01 << 24);
+ }
+ return word;
+ }
- function incCounter(counter)
- {
- if ((counter[0] = incWord(counter[0])) === 0)
- {
- // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8
- counter[1] = incWord(counter[1]);
- }
- return counter;
- }
+ function incCounter(counter) {
+ if ((counter[0] = incWord(counter[0])) === 0) {
+ // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8
+ counter[1] = incWord(counter[1]);
+ }
+ return counter;
+ }
var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({
- processBlock: function (words, offset) {
+ processBlock: function(words, offset) {
// Shortcuts
var cipher = this._cipher
var blockSize = cipher.blockSize;
@@ -4375,9 +4377,9 @@ CryptoJS.mode.CTRGladman = (function () {
this._iv = undefined;
}
- incCounter(counter);
+ incCounter(counter);
- var keystream = counter.slice(0);
+ var keystream = counter.slice(0);
cipher.encryptBlock(keystream, 0);
// Encrypt
@@ -4403,11 +4405,11 @@ CryptoJS.mode.CTRGladman = (function () {
/**
* Output Feedback block mode.
*/
-CryptoJS.mode.OFB = (function () {
+CryptoJS.mode.OFB = (function() {
var OFB = CryptoJS.lib.BlockCipherMode.extend();
var Encryptor = OFB.Encryptor = OFB.extend({
- processBlock: function (words, offset) {
+ processBlock: function(words, offset) {
// Shortcuts
var cipher = this._cipher
var blockSize = cipher.blockSize;
@@ -4445,17 +4447,17 @@ CryptoJS.mode.OFB = (function () {
/**
* Electronic Codebook block mode.
*/
-CryptoJS.mode.ECB = (function () {
+CryptoJS.mode.ECB = (function() {
var ECB = CryptoJS.lib.BlockCipherMode.extend();
ECB.Encryptor = ECB.extend({
- processBlock: function (words, offset) {
+ processBlock: function(words, offset) {
this._cipher.encryptBlock(words, offset);
}
});
ECB.Decryptor = ECB.extend({
- processBlock: function (words, offset) {
+ processBlock: function(words, offset) {
this._cipher.decryptBlock(words, offset);
}
});
@@ -4475,7 +4477,7 @@ CryptoJS.mode.ECB = (function () {
* ANSI X.923 padding strategy.
*/
CryptoJS.pad.AnsiX923 = {
- pad: function (data, blockSize) {
+ pad: function(data, blockSize) {
// Shortcuts
var dataSigBytes = data.sigBytes;
var blockSizeBytes = blockSize * 4;
@@ -4492,7 +4494,7 @@ CryptoJS.pad.AnsiX923 = {
data.sigBytes += nPaddingBytes;
},
- unpad: function (data) {
+ unpad: function(data) {
// Get number of padding bytes from last byte
var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
@@ -4512,7 +4514,7 @@ CryptoJS.pad.AnsiX923 = {
* ISO 10126 padding strategy.
*/
CryptoJS.pad.Iso10126 = {
- pad: function (data, blockSize) {
+ pad: function(data, blockSize) {
// Shortcut
var blockSizeBytes = blockSize * 4;
@@ -4521,10 +4523,10 @@ CryptoJS.pad.Iso10126 = {
// Pad
data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).
- concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));
+ concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));
},
- unpad: function (data) {
+ unpad: function(data) {
// Get number of padding bytes from last byte
var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
@@ -4542,7 +4544,7 @@ CryptoJS.pad.Iso10126 = {
* ISO/IEC 9797-1 Padding Method 2.
*/
CryptoJS.pad.Iso97971 = {
- pad: function (data, blockSize) {
+ pad: function(data, blockSize) {
// Add 0x80 byte
data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));
@@ -4550,7 +4552,7 @@ CryptoJS.pad.Iso97971 = {
CryptoJS.pad.ZeroPadding.pad(data, blockSize);
},
- unpad: function (data) {
+ unpad: function(data) {
// Remove zero padding
CryptoJS.pad.ZeroPadding.unpad(data);
@@ -4571,7 +4573,7 @@ CryptoJS.pad.Iso97971 = {
* Zero padding strategy.
*/
CryptoJS.pad.ZeroPadding = {
- pad: function (data, blockSize) {
+ pad: function(data, blockSize) {
// Shortcut
var blockSizeBytes = blockSize * 4;
@@ -4580,7 +4582,7 @@ CryptoJS.pad.ZeroPadding = {
data.sigBytes += blockSizeBytes - ((data.sigBytes % blockSizeBytes) || blockSizeBytes);
},
- unpad: function (data) {
+ unpad: function(data) {
// Shortcut
var dataWords = data.words;
@@ -4605,15 +4607,13 @@ CryptoJS.pad.ZeroPadding = {
* A noop padding strategy.
*/
CryptoJS.pad.NoPadding = {
- pad: function () {
- },
+ pad: function() {},
- unpad: function () {
- }
+ unpad: function() {}
};
-(function (undefined) {
+(function(undefined) {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -4636,7 +4636,7 @@ CryptoJS.pad.NoPadding = {
*
* var hexString = CryptoJS.format.Hex.stringify(cipherParams);
*/
- stringify: function (cipherParams) {
+ stringify: function(cipherParams) {
return cipherParams.ciphertext.toString(Hex);
},
@@ -4653,9 +4653,11 @@ CryptoJS.pad.NoPadding = {
*
* var cipherParams = CryptoJS.format.Hex.parse(hexString);
*/
- parse: function (input) {
+ parse: function(input) {
var ciphertext = Hex.parse(input);
- return CipherParams.create({ ciphertext: ciphertext });
+ return CipherParams.create({
+ ciphertext: ciphertext
+ });
}
};
}());
@@ -4668,7 +4670,7 @@ CryptoJS.pad.NoPadding = {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -4688,7 +4690,7 @@ CryptoJS.pad.NoPadding = {
var INV_SUB_MIX_3 = [];
// Compute lookup tables
- (function () {
+ (function() {
// Compute double table
var d = [];
for (var i = 0; i < 256; i++) {
@@ -4718,14 +4720,14 @@ CryptoJS.pad.NoPadding = {
var t = (d[sx] * 0x101) ^ (sx * 0x1010100);
SUB_MIX_0[x] = (t << 24) | (t >>> 8);
SUB_MIX_1[x] = (t << 16) | (t >>> 16);
- SUB_MIX_2[x] = (t << 8) | (t >>> 24);
+ SUB_MIX_2[x] = (t << 8) | (t >>> 24);
SUB_MIX_3[x] = t;
// Compute inv sub bytes, inv mix columns tables
var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100);
INV_SUB_MIX_0[sx] = (t << 24) | (t >>> 8);
INV_SUB_MIX_1[sx] = (t << 16) | (t >>> 16);
- INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24);
+ INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24);
INV_SUB_MIX_3[sx] = t;
// Compute next counter
@@ -4745,7 +4747,7 @@ CryptoJS.pad.NoPadding = {
* AES block cipher algorithm.
*/
var AES = C_algo.AES = BlockCipher.extend({
- _doReset: function () {
+ _doReset: function() {
var t;
// Skip reset of nRounds has been set before and key did not change
@@ -4805,16 +4807,16 @@ CryptoJS.pad.NoPadding = {
invKeySchedule[invKsRow] = t;
} else {
invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[(t >>> 16) & 0xff]] ^
- INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];
+ INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];
}
}
},
- encryptBlock: function (M, offset) {
+ encryptBlock: function(M, offset) {
this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);
},
- decryptBlock: function (M, offset) {
+ decryptBlock: function(M, offset) {
// Swap 2nd and 4th rows
var t = M[offset + 1];
M[offset + 1] = M[offset + 3];
@@ -4828,12 +4830,12 @@ CryptoJS.pad.NoPadding = {
M[offset + 3] = t;
},
- _doCryptBlock: function (M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {
+ _doCryptBlock: function(M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {
// Shortcut
var nRounds = this._nRounds;
// Get input, add round key
- var s0 = M[offset] ^ keySchedule[0];
+ var s0 = M[offset] ^ keySchedule[0];
var s1 = M[offset + 1] ^ keySchedule[1];
var s2 = M[offset + 2] ^ keySchedule[2];
var s3 = M[offset + 3] ^ keySchedule[3];
@@ -4863,13 +4865,13 @@ CryptoJS.pad.NoPadding = {
var t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];
// Set output
- M[offset] = t0;
+ M[offset] = t0;
M[offset + 1] = t1;
M[offset + 2] = t2;
M[offset + 3] = t3;
},
- keySize: 256/32
+ keySize: 256 / 32
});
/**
@@ -4888,7 +4890,7 @@ CryptoJS.pad.NoPadding = {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -4898,21 +4900,21 @@ CryptoJS.pad.NoPadding = {
// Permuted Choice 1 constants
var PC1 = [
- 57, 49, 41, 33, 25, 17, 9, 1,
+ 57, 49, 41, 33, 25, 17, 9, 1,
58, 50, 42, 34, 26, 18, 10, 2,
59, 51, 43, 35, 27, 19, 11, 3,
60, 52, 44, 36, 63, 55, 47, 39,
- 31, 23, 15, 7, 62, 54, 46, 38,
- 30, 22, 14, 6, 61, 53, 45, 37,
- 29, 21, 13, 5, 28, 20, 12, 4
+ 31, 23, 15, 7, 62, 54, 46, 38,
+ 30, 22, 14, 6, 61, 53, 45, 37,
+ 29, 21, 13, 5, 28, 20, 12, 4
];
// Permuted Choice 2 constants
var PC2 = [
- 14, 17, 11, 24, 1, 5,
- 3, 28, 15, 6, 21, 10,
- 23, 19, 12, 4, 26, 8,
- 16, 7, 27, 20, 13, 2,
+ 14, 17, 11, 24, 1, 5,
+ 3, 28, 15, 6, 21, 10,
+ 23, 19, 12, 4, 26, 8,
+ 16, 7, 27, 20, 13, 2,
41, 52, 31, 37, 47, 55,
30, 40, 51, 45, 33, 48,
44, 49, 39, 56, 34, 53,
@@ -4920,11 +4922,10 @@ CryptoJS.pad.NoPadding = {
];
// Cumulative bit shift constants
- var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
+ var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
// SBOXes and round permutation constants
- var SBOX_P = [
- {
+ var SBOX_P = [{
0x0: 0x808200,
0x10000000: 0x8000,
0x20000000: 0x808002,
@@ -5464,7 +5465,7 @@ CryptoJS.pad.NoPadding = {
* DES block cipher algorithm.
*/
var DES = C_algo.DES = BlockCipher.extend({
- _doReset: function () {
+ _doReset: function() {
// Shortcuts
var key = this._key;
var keyWords = key.words;
@@ -5511,25 +5512,25 @@ CryptoJS.pad.NoPadding = {
}
},
- encryptBlock: function (M, offset) {
+ encryptBlock: function(M, offset) {
this._doCryptBlock(M, offset, this._subKeys);
},
- decryptBlock: function (M, offset) {
+ decryptBlock: function(M, offset) {
this._doCryptBlock(M, offset, this._invSubKeys);
},
- _doCryptBlock: function (M, offset, subKeys) {
+ _doCryptBlock: function(M, offset, subKeys) {
// Get input
this._lBlock = M[offset];
this._rBlock = M[offset + 1];
// Initial permutation
- exchangeLR.call(this, 4, 0x0f0f0f0f);
+ exchangeLR.call(this, 4, 0x0f0f0f0f);
exchangeLR.call(this, 16, 0x0000ffff);
- exchangeRL.call(this, 2, 0x33333333);
- exchangeRL.call(this, 8, 0x00ff00ff);
- exchangeLR.call(this, 1, 0x55555555);
+ exchangeRL.call(this, 2, 0x33333333);
+ exchangeRL.call(this, 8, 0x00ff00ff);
+ exchangeLR.call(this, 1, 0x55555555);
// Rounds
for (var round = 0; round < 16; round++) {
@@ -5553,22 +5554,22 @@ CryptoJS.pad.NoPadding = {
this._rBlock = t;
// Final permutation
- exchangeLR.call(this, 1, 0x55555555);
- exchangeRL.call(this, 8, 0x00ff00ff);
- exchangeRL.call(this, 2, 0x33333333);
+ exchangeLR.call(this, 1, 0x55555555);
+ exchangeRL.call(this, 8, 0x00ff00ff);
+ exchangeRL.call(this, 2, 0x33333333);
exchangeLR.call(this, 16, 0x0000ffff);
- exchangeLR.call(this, 4, 0x0f0f0f0f);
+ exchangeLR.call(this, 4, 0x0f0f0f0f);
// Set output
M[offset] = this._lBlock;
M[offset + 1] = this._rBlock;
},
- keySize: 64/32,
+ keySize: 64 / 32,
- ivSize: 64/32,
+ ivSize: 64 / 32,
- blockSize: 64/32
+ blockSize: 64 / 32
});
// Swap bits across the left and right words
@@ -5598,7 +5599,7 @@ CryptoJS.pad.NoPadding = {
* Triple-DES block cipher algorithm.
*/
var TripleDES = C_algo.TripleDES = BlockCipher.extend({
- _doReset: function () {
+ _doReset: function() {
// Shortcuts
var key = this._key;
var keyWords = key.words;
@@ -5618,23 +5619,23 @@ CryptoJS.pad.NoPadding = {
this._des3 = DES.createEncryptor(WordArray.create(key3));
},
- encryptBlock: function (M, offset) {
+ encryptBlock: function(M, offset) {
this._des1.encryptBlock(M, offset);
this._des2.decryptBlock(M, offset);
this._des3.encryptBlock(M, offset);
},
- decryptBlock: function (M, offset) {
+ decryptBlock: function(M, offset) {
this._des3.decryptBlock(M, offset);
this._des2.encryptBlock(M, offset);
this._des1.decryptBlock(M, offset);
},
- keySize: 192/32,
+ keySize: 192 / 32,
- ivSize: 64/32,
+ ivSize: 64 / 32,
- blockSize: 64/32
+ blockSize: 64 / 32
});
/**
@@ -5658,7 +5659,7 @@ CryptoJS.pad.NoPadding = {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -5669,7 +5670,7 @@ CryptoJS.pad.NoPadding = {
* RC4 stream cipher algorithm.
*/
var RC4 = C_algo.RC4 = StreamCipher.extend({
- _doReset: function () {
+ _doReset: function() {
// Shortcuts
var key = this._key;
var keyWords = key.words;
@@ -5698,11 +5699,11 @@ CryptoJS.pad.NoPadding = {
this._i = this._j = 0;
},
- _doProcessBlock: function (M, offset) {
+ _doProcessBlock: function(M, offset) {
M[offset] ^= generateKeystreamWord.call(this);
},
- keySize: 256/32,
+ keySize: 256 / 32,
ivSize: 0
});
@@ -5757,7 +5758,7 @@ CryptoJS.pad.NoPadding = {
drop: 192
}),
- _doReset: function () {
+ _doReset: function() {
RC4._doReset.call(this);
// Drop
@@ -5786,7 +5787,7 @@ CryptoJS.pad.NoPadding = {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -5794,23 +5795,23 @@ CryptoJS.pad.NoPadding = {
var C_algo = C.algo;
// Reusable objects
- var S = [];
+ var S = [];
var C_ = [];
- var G = [];
+ var G = [];
/**
* Rabbit stream cipher algorithm
*/
var Rabbit = C_algo.Rabbit = StreamCipher.extend({
- _doReset: function () {
+ _doReset: function() {
// Shortcuts
var K = this._key.words;
var iv = this.cfg.iv;
// Swap endian
for (var i = 0; i < 4; i++) {
- K[i] = (((K[i] << 8) | (K[i] >>> 24)) & 0x00ff00ff) |
- (((K[i] << 24) | (K[i] >>> 8)) & 0xff00ff00);
+ K[i] = (((K[i] << 8) | (K[i] >>> 24)) & 0x00ff00ff) |
+ (((K[i] << 24) | (K[i] >>> 8)) & 0xff00ff00);
}
// Generate initial state values
@@ -5853,7 +5854,7 @@ CryptoJS.pad.NoPadding = {
var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);
var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);
var i1 = (i0 >>> 16) | (i2 & 0xffff0000);
- var i3 = (i2 << 16) | (i0 & 0x0000ffff);
+ var i3 = (i2 << 16) | (i0 & 0x0000ffff);
// Modify counter values
C[0] ^= i0;
@@ -5872,7 +5873,7 @@ CryptoJS.pad.NoPadding = {
}
},
- _doProcessBlock: function (M, offset) {
+ _doProcessBlock: function(M, offset) {
// Shortcut
var X = this._X;
@@ -5887,17 +5888,17 @@ CryptoJS.pad.NoPadding = {
for (var i = 0; i < 4; i++) {
// Swap endian
- S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |
- (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);
+ S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |
+ (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);
// Encrypt
M[offset + i] ^= S[i];
}
},
- blockSize: 128/32,
+ blockSize: 128 / 32,
- ivSize: 64/32
+ ivSize: 64 / 32
});
function nextState() {
@@ -5939,13 +5940,13 @@ CryptoJS.pad.NoPadding = {
// Calculate new state values
X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;
- X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;
+ X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;
X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;
- X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;
+ X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;
X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;
- X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;
+ X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;
X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;
- X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;
+ X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;
}
/**
@@ -5968,7 +5969,7 @@ CryptoJS.pad.NoPadding = {
-(function () {
+(function() {
// Shortcuts
var C = CryptoJS;
var C_lib = C.lib;
@@ -5976,9 +5977,9 @@ CryptoJS.pad.NoPadding = {
var C_algo = C.algo;
// Reusable objects
- var S = [];
+ var S = [];
var C_ = [];
- var G = [];
+ var G = [];
/**
* Rabbit stream cipher algorithm.
@@ -5988,7 +5989,7 @@ CryptoJS.pad.NoPadding = {
* but it does affect its compatibility with other implementations.
*/
var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({
- _doReset: function () {
+ _doReset: function() {
// Shortcuts
var K = this._key.words;
var iv = this.cfg.iv;
@@ -6033,7 +6034,7 @@ CryptoJS.pad.NoPadding = {
var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);
var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);
var i1 = (i0 >>> 16) | (i2 & 0xffff0000);
- var i3 = (i2 << 16) | (i0 & 0x0000ffff);
+ var i3 = (i2 << 16) | (i0 & 0x0000ffff);
// Modify counter values
C[0] ^= i0;
@@ -6052,7 +6053,7 @@ CryptoJS.pad.NoPadding = {
}
},
- _doProcessBlock: function (M, offset) {
+ _doProcessBlock: function(M, offset) {
// Shortcut
var X = this._X;
@@ -6067,17 +6068,17 @@ CryptoJS.pad.NoPadding = {
for (var i = 0; i < 4; i++) {
// Swap endian
- S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |
- (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);
+ S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |
+ (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);
// Encrypt
M[offset + i] ^= S[i];
}
},
- blockSize: 128/32,
+ blockSize: 128 / 32,
- ivSize: 64/32
+ ivSize: 64 / 32
});
function nextState() {
@@ -6119,13 +6120,13 @@ CryptoJS.pad.NoPadding = {
// Calculate new state values
X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;
- X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;
+ X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;
X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;
- X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;
+ X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;
X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;
- X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;
+ X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;
X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;
- X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;
+ X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;
}
/**
@@ -6137,4 +6138,4 @@ CryptoJS.pad.NoPadding = {
* var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);
*/
C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy);
-}());
+}());
\ No newline at end of file
diff --git a/JS/crypto-js.js b/JS/crypto-js.js
new file mode 100644
index 0000000..0dd3ca8
--- /dev/null
+++ b/JS/crypto-js.js
@@ -0,0 +1,6192 @@
+;
+(function(root, factory) {
+ if (typeof exports === "object") {
+ // CommonJS
+ module.exports = exports = factory();
+ } else if (typeof define === "function" && define.amd) {
+ // AMD
+ define([], factory);
+ } else {
+ // Global (browser)
+ globalThis.CryptoJS = factory();
+ }
+}(this, function() {
+
+ /*globals window, global, require*/
+
+ /**
+ * CryptoJS core components.
+ */
+ var CryptoJS = CryptoJS || (function(Math, undefined) {
+
+ var crypto;
+
+ // Native crypto from window (Browser)
+ if (typeof window !== 'undefined' && window.crypto) {
+ crypto = window.crypto;
+ }
+
+ // Native crypto in web worker (Browser)
+ if (typeof self !== 'undefined' && self.crypto) {
+ crypto = self.crypto;
+ }
+
+ // Native crypto from worker
+ if (typeof globalThis !== 'undefined' && globalThis.crypto) {
+ crypto = globalThis.crypto;
+ }
+
+ // Native (experimental IE 11) crypto from window (Browser)
+ if (!crypto && typeof window !== 'undefined' && window.msCrypto) {
+ crypto = window.msCrypto;
+ }
+
+ // Native crypto from global (NodeJS)
+ if (!crypto && typeof global !== 'undefined' && global.crypto) {
+ crypto = global.crypto;
+ }
+
+ // Native crypto import via require (NodeJS)
+ if (!crypto && typeof require === 'function') {
+ try {
+ crypto = require('crypto');
+ } catch (err) {}
+ }
+
+ /*
+ * Cryptographically secure pseudorandom number generator
+ *
+ * As Math.random() is cryptographically not safe to use
+ */
+ var cryptoSecureRandomInt = function() {
+ if (crypto) {
+ // Use getRandomValues method (Browser)
+ if (typeof crypto.getRandomValues === 'function') {
+ try {
+ return crypto.getRandomValues(new Uint32Array(1))[0];
+ } catch (err) {}
+ }
+
+ // Use randomBytes method (NodeJS)
+ if (typeof crypto.randomBytes === 'function') {
+ try {
+ return crypto.randomBytes(4).readInt32LE();
+ } catch (err) {}
+ }
+ }
+
+ throw new Error('Native crypto module could not be used to get secure random number.');
+ };
+
+ /*
+ * Local polyfill of Object.create
+
+ */
+ var create = Object.create || (function() {
+ function F() {}
+
+ return function(obj) {
+ var subtype;
+
+ F.prototype = obj;
+
+ subtype = new F();
+
+ F.prototype = null;
+
+ return subtype;
+ };
+ }());
+
+ /**
+ * CryptoJS namespace.
+ */
+ var C = {};
+
+ /**
+ * Library namespace.
+ */
+ var C_lib = C.lib = {};
+
+ /**
+ * Base object for prototypal inheritance.
+ */
+ var Base = C_lib.Base = (function() {
+
+
+ return {
+ /**
+ * Creates a new object that inherits from this object.
+ *
+ * @param {Object} overrides Properties to copy into the new object.
+ *
+ * @return {Object} The new object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var MyType = CryptoJS.lib.Base.extend({
+ * field: 'value',
+ *
+ * method: function () {
+ * }
+ * });
+ */
+ extend: function(overrides) {
+ // Spawn
+ var subtype = create(this);
+
+ // Augment
+ if (overrides) {
+ subtype.mixIn(overrides);
+ }
+
+ // Create default initializer
+ if (!subtype.hasOwnProperty('init') || this.init === subtype.init) {
+ subtype.init = function() {
+ subtype.$super.init.apply(this, arguments);
+ };
+ }
+
+ // Initializer's prototype is the subtype object
+ subtype.init.prototype = subtype;
+
+ // Reference supertype
+ subtype.$super = this;
+
+ return subtype;
+ },
+
+ /**
+ * Extends this object and runs the init method.
+ * Arguments to create() will be passed to init().
+ *
+ * @return {Object} The new object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var instance = MyType.create();
+ */
+ create: function() {
+ var instance = this.extend();
+ instance.init.apply(instance, arguments);
+
+ return instance;
+ },
+
+ /**
+ * Initializes a newly created object.
+ * Override this method to add some logic when your objects are created.
+ *
+ * @example
+ *
+ * var MyType = CryptoJS.lib.Base.extend({
+ * init: function () {
+ * // ...
+ * }
+ * });
+ */
+ init: function() {},
+
+ /**
+ * Copies properties into this object.
+ *
+ * @param {Object} properties The properties to mix in.
+ *
+ * @example
+ *
+ * MyType.mixIn({
+ * field: 'value'
+ * });
+ */
+ mixIn: function(properties) {
+ for (var propertyName in properties) {
+ if (properties.hasOwnProperty(propertyName)) {
+ this[propertyName] = properties[propertyName];
+ }
+ }
+
+ // IE won't copy toString using the loop above
+ if (properties.hasOwnProperty('toString')) {
+ this.toString = properties.toString;
+ }
+ },
+
+ /**
+ * Creates a copy of this object.
+ *
+ * @return {Object} The clone.
+ *
+ * @example
+ *
+ * var clone = instance.clone();
+ */
+ clone: function() {
+ return this.init.prototype.extend(this);
+ }
+ };
+ }());
+
+ /**
+ * An array of 32-bit words.
+ *
+ * @property {Array} words The array of 32-bit words.
+ * @property {number} sigBytes The number of significant bytes in this word array.
+ */
+ var WordArray = C_lib.WordArray = Base.extend({
+ /**
+ * Initializes a newly created word array.
+ *
+ * @param {Array} words (Optional) An array of 32-bit words.
+ * @param {number} sigBytes (Optional) The number of significant bytes in the words.
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.lib.WordArray.create();
+ * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607]);
+ * var wordArray = CryptoJS.lib.WordArray.create([0x00010203, 0x04050607], 6);
+ */
+ init: function(words, sigBytes) {
+ words = this.words = words || [];
+
+ if (sigBytes != undefined) {
+ this.sigBytes = sigBytes;
+ } else {
+ this.sigBytes = words.length * 4;
+ }
+ },
+
+ /**
+ * Converts this word array to a string.
+ *
+ * @param {Encoder} encoder (Optional) The encoding strategy to use. Default: CryptoJS.enc.Hex
+ *
+ * @return {string} The stringified word array.
+ *
+ * @example
+ *
+ * var string = wordArray + '';
+ * var string = wordArray.toString();
+ * var string = wordArray.toString(CryptoJS.enc.Utf8);
+ */
+ toString: function(encoder) {
+ return (encoder || Hex).stringify(this);
+ },
+
+ /**
+ * Concatenates a word array to this word array.
+ *
+ * @param {WordArray} wordArray The word array to append.
+ *
+ * @return {WordArray} This word array.
+ *
+ * @example
+ *
+ * wordArray1.concat(wordArray2);
+ */
+ concat: function(wordArray) {
+ // Shortcuts
+ var thisWords = this.words;
+ var thatWords = wordArray.words;
+ var thisSigBytes = this.sigBytes;
+ var thatSigBytes = wordArray.sigBytes;
+
+ // Clamp excess bits
+ this.clamp();
+
+ // Concat
+ if (thisSigBytes % 4) {
+ // Copy one byte at a time
+ for (var i = 0; i < thatSigBytes; i++) {
+ var thatByte = (thatWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ thisWords[(thisSigBytes + i) >>> 2] |= thatByte << (24 - ((thisSigBytes + i) % 4) * 8);
+ }
+ } else {
+ // Copy one word at a time
+ for (var j = 0; j < thatSigBytes; j += 4) {
+ thisWords[(thisSigBytes + j) >>> 2] = thatWords[j >>> 2];
+ }
+ }
+ this.sigBytes += thatSigBytes;
+
+ // Chainable
+ return this;
+ },
+
+ /**
+ * Removes insignificant bits.
+ *
+ * @example
+ *
+ * wordArray.clamp();
+ */
+ clamp: function() {
+ // Shortcuts
+ var words = this.words;
+ var sigBytes = this.sigBytes;
+
+ // Clamp
+ words[sigBytes >>> 2] &= 0xffffffff << (32 - (sigBytes % 4) * 8);
+ words.length = Math.ceil(sigBytes / 4);
+ },
+
+ /**
+ * Creates a copy of this word array.
+ *
+ * @return {WordArray} The clone.
+ *
+ * @example
+ *
+ * var clone = wordArray.clone();
+ */
+ clone: function() {
+ var clone = Base.clone.call(this);
+ clone.words = this.words.slice(0);
+
+ return clone;
+ },
+
+ /**
+ * Creates a word array filled with random bytes.
+ *
+ * @param {number} nBytes The number of random bytes to generate.
+ *
+ * @return {WordArray} The random word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.lib.WordArray.random(16);
+ */
+ random: function(nBytes) {
+ var words = [];
+
+ for (var i = 0; i < nBytes; i += 4) {
+ words.push(cryptoSecureRandomInt());
+ }
+
+ return new WordArray.init(words, nBytes);
+ }
+ });
+
+ /**
+ * Encoder namespace.
+ */
+ var C_enc = C.enc = {};
+
+ /**
+ * Hex encoding strategy.
+ */
+ var Hex = C_enc.Hex = {
+ /**
+ * Converts a word array to a hex string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The hex string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hexString = CryptoJS.enc.Hex.stringify(wordArray);
+ */
+ stringify: function(wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+
+ // Convert
+ var hexChars = [];
+ for (var i = 0; i < sigBytes; i++) {
+ var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ hexChars.push((bite >>> 4).toString(16));
+ hexChars.push((bite & 0x0f).toString(16));
+ }
+
+ return hexChars.join('');
+ },
+
+ /**
+ * Converts a hex string to a word array.
+ *
+ * @param {string} hexStr The hex string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Hex.parse(hexString);
+ */
+ parse: function(hexStr) {
+ // Shortcut
+ var hexStrLength = hexStr.length;
+
+ // Convert
+ var words = [];
+ for (var i = 0; i < hexStrLength; i += 2) {
+ words[i >>> 3] |= parseInt(hexStr.substr(i, 2), 16) << (24 - (i % 8) * 4);
+ }
+
+ return new WordArray.init(words, hexStrLength / 2);
+ }
+ };
+
+ /**
+ * Latin1 encoding strategy.
+ */
+ var Latin1 = C_enc.Latin1 = {
+ /**
+ * Converts a word array to a Latin1 string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The Latin1 string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var latin1String = CryptoJS.enc.Latin1.stringify(wordArray);
+ */
+ stringify: function(wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+
+ // Convert
+ var latin1Chars = [];
+ for (var i = 0; i < sigBytes; i++) {
+ var bite = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ latin1Chars.push(String.fromCharCode(bite));
+ }
+
+ return latin1Chars.join('');
+ },
+
+ /**
+ * Converts a Latin1 string to a word array.
+ *
+ * @param {string} latin1Str The Latin1 string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Latin1.parse(latin1String);
+ */
+ parse: function(latin1Str) {
+ // Shortcut
+ var latin1StrLength = latin1Str.length;
+
+ // Convert
+ var words = [];
+ for (var i = 0; i < latin1StrLength; i++) {
+ words[i >>> 2] |= (latin1Str.charCodeAt(i) & 0xff) << (24 - (i % 4) * 8);
+ }
+
+ return new WordArray.init(words, latin1StrLength);
+ }
+ };
+
+ /**
+ * UTF-8 encoding strategy.
+ */
+ var Utf8 = C_enc.Utf8 = {
+ /**
+ * Converts a word array to a UTF-8 string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The UTF-8 string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var utf8String = CryptoJS.enc.Utf8.stringify(wordArray);
+ */
+ stringify: function(wordArray) {
+ try {
+ return decodeURIComponent(escape(Latin1.stringify(wordArray)));
+ } catch (e) {
+ throw new Error('Malformed UTF-8 data');
+ }
+ },
+
+ /**
+ * Converts a UTF-8 string to a word array.
+ *
+ * @param {string} utf8Str The UTF-8 string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Utf8.parse(utf8String);
+ */
+ parse: function(utf8Str) {
+ return Latin1.parse(unescape(encodeURIComponent(utf8Str)));
+ }
+ };
+
+ /**
+ * Abstract buffered block algorithm template.
+ *
+ * The property blockSize must be implemented in a concrete subtype.
+ *
+ * @property {number} _minBufferSize The number of blocks that should be kept unprocessed in the buffer. Default: 0
+ */
+ var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm = Base.extend({
+ /**
+ * Resets this block algorithm's data buffer to its initial state.
+ *
+ * @example
+ *
+ * bufferedBlockAlgorithm.reset();
+ */
+ reset: function() {
+ // Initial values
+ this._data = new WordArray.init();
+ this._nDataBytes = 0;
+ },
+
+ /**
+ * Adds new data to this block algorithm's buffer.
+ *
+ * @param {WordArray|string} data The data to append. Strings are converted to a WordArray using UTF-8.
+ *
+ * @example
+ *
+ * bufferedBlockAlgorithm._append('data');
+ * bufferedBlockAlgorithm._append(wordArray);
+ */
+ _append: function(data) {
+ // Convert string to WordArray, else assume WordArray already
+ if (typeof data == 'string') {
+ data = Utf8.parse(data);
+ }
+
+ // Append
+ this._data.concat(data);
+ this._nDataBytes += data.sigBytes;
+ },
+
+ /**
+ * Processes available data blocks.
+ *
+ * This method invokes _doProcessBlock(offset), which must be implemented by a concrete subtype.
+ *
+ * @param {boolean} doFlush Whether all blocks and partial blocks should be processed.
+ *
+ * @return {WordArray} The processed data.
+ *
+ * @example
+ *
+ * var processedData = bufferedBlockAlgorithm._process();
+ * var processedData = bufferedBlockAlgorithm._process(!!'flush');
+ */
+ _process: function(doFlush) {
+ var processedWords;
+
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+ var dataSigBytes = data.sigBytes;
+ var blockSize = this.blockSize;
+ var blockSizeBytes = blockSize * 4;
+
+ // Count blocks ready
+ var nBlocksReady = dataSigBytes / blockSizeBytes;
+ if (doFlush) {
+ // Round up to include partial blocks
+ nBlocksReady = Math.ceil(nBlocksReady);
+ } else {
+ // Round down to include only full blocks,
+ // less the number of blocks that must remain in the buffer
+ nBlocksReady = Math.max((nBlocksReady | 0) - this._minBufferSize, 0);
+ }
+
+ // Count words ready
+ var nWordsReady = nBlocksReady * blockSize;
+
+ // Count bytes ready
+ var nBytesReady = Math.min(nWordsReady * 4, dataSigBytes);
+
+ // Process blocks
+ if (nWordsReady) {
+ for (var offset = 0; offset < nWordsReady; offset += blockSize) {
+ // Perform concrete-algorithm logic
+ this._doProcessBlock(dataWords, offset);
+ }
+
+ // Remove processed words
+ processedWords = dataWords.splice(0, nWordsReady);
+ data.sigBytes -= nBytesReady;
+ }
+
+ // Return processed words
+ return new WordArray.init(processedWords, nBytesReady);
+ },
+
+ /**
+ * Creates a copy of this object.
+ *
+ * @return {Object} The clone.
+ *
+ * @example
+ *
+ * var clone = bufferedBlockAlgorithm.clone();
+ */
+ clone: function() {
+ var clone = Base.clone.call(this);
+ clone._data = this._data.clone();
+
+ return clone;
+ },
+
+ _minBufferSize: 0
+ });
+
+ /**
+ * Abstract hasher template.
+ *
+ * @property {number} blockSize The number of 32-bit words this hasher operates on. Default: 16 (512 bits)
+ */
+ var Hasher = C_lib.Hasher = BufferedBlockAlgorithm.extend({
+ /**
+ * Configuration options.
+ */
+ cfg: Base.extend(),
+
+ /**
+ * Initializes a newly created hasher.
+ *
+ * @param {Object} cfg (Optional) The configuration options to use for this hash computation.
+ *
+ * @example
+ *
+ * var hasher = CryptoJS.algo.SHA256.create();
+ */
+ init: function(cfg) {
+ // Apply config defaults
+ this.cfg = this.cfg.extend(cfg);
+
+ // Set initial values
+ this.reset();
+ },
+
+ /**
+ * Resets this hasher to its initial state.
+ *
+ * @example
+ *
+ * hasher.reset();
+ */
+ reset: function() {
+ // Reset data buffer
+ BufferedBlockAlgorithm.reset.call(this);
+
+ // Perform concrete-hasher logic
+ this._doReset();
+ },
+
+ /**
+ * Updates this hasher with a message.
+ *
+ * @param {WordArray|string} messageUpdate The message to append.
+ *
+ * @return {Hasher} This hasher.
+ *
+ * @example
+ *
+ * hasher.update('message');
+ * hasher.update(wordArray);
+ */
+ update: function(messageUpdate) {
+ // Append
+ this._append(messageUpdate);
+
+ // Update the hash
+ this._process();
+
+ // Chainable
+ return this;
+ },
+
+ /**
+ * Finalizes the hash computation.
+ * Note that the finalize operation is effectively a destructive, read-once operation.
+ *
+ * @param {WordArray|string} messageUpdate (Optional) A final message update.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @example
+ *
+ * var hash = hasher.finalize();
+ * var hash = hasher.finalize('message');
+ * var hash = hasher.finalize(wordArray);
+ */
+ finalize: function(messageUpdate) {
+ // Final message update
+ if (messageUpdate) {
+ this._append(messageUpdate);
+ }
+
+ // Perform concrete-hasher logic
+ var hash = this._doFinalize();
+
+ return hash;
+ },
+
+ blockSize: 512 / 32,
+
+ /**
+ * Creates a shortcut function to a hasher's object interface.
+ *
+ * @param {Hasher} hasher The hasher to create a helper for.
+ *
+ * @return {Function} The shortcut function.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var SHA256 = CryptoJS.lib.Hasher._createHelper(CryptoJS.algo.SHA256);
+ */
+ _createHelper: function(hasher) {
+ return function(message, cfg) {
+ return new hasher.init(cfg).finalize(message);
+ };
+ },
+
+ /**
+ * Creates a shortcut function to the HMAC's object interface.
+ *
+ * @param {Hasher} hasher The hasher to use in this HMAC helper.
+ *
+ * @return {Function} The shortcut function.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var HmacSHA256 = CryptoJS.lib.Hasher._createHmacHelper(CryptoJS.algo.SHA256);
+ */
+ _createHmacHelper: function(hasher) {
+ return function(message, key) {
+ return new C_algo.HMAC.init(hasher, key).finalize(message);
+ };
+ }
+ });
+
+ /**
+ * Algorithm namespace.
+ */
+ var C_algo = C.algo = {};
+
+ return C;
+ }(Math));
+
+
+ (function(undefined) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var X32WordArray = C_lib.WordArray;
+
+ /**
+ * x64 namespace.
+ */
+ var C_x64 = C.x64 = {};
+
+ /**
+ * A 64-bit word.
+ */
+ var X64Word = C_x64.Word = Base.extend({
+ /**
+ * Initializes a newly created 64-bit word.
+ *
+ * @param {number} high The high 32 bits.
+ * @param {number} low The low 32 bits.
+ *
+ * @example
+ *
+ * var x64Word = CryptoJS.x64.Word.create(0x00010203, 0x04050607);
+ */
+ init: function(high, low) {
+ this.high = high;
+ this.low = low;
+ }
+
+ /**
+ * Bitwise NOTs this word.
+ *
+ * @return {X64Word} A new x64-Word object after negating.
+ *
+ * @example
+ *
+ * var negated = x64Word.not();
+ */
+ // not: function () {
+ // var high = ~this.high;
+ // var low = ~this.low;
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Bitwise ANDs this word with the passed word.
+ *
+ * @param {X64Word} word The x64-Word to AND with this word.
+ *
+ * @return {X64Word} A new x64-Word object after ANDing.
+ *
+ * @example
+ *
+ * var anded = x64Word.and(anotherX64Word);
+ */
+ // and: function (word) {
+ // var high = this.high & word.high;
+ // var low = this.low & word.low;
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Bitwise ORs this word with the passed word.
+ *
+ * @param {X64Word} word The x64-Word to OR with this word.
+ *
+ * @return {X64Word} A new x64-Word object after ORing.
+ *
+ * @example
+ *
+ * var ored = x64Word.or(anotherX64Word);
+ */
+ // or: function (word) {
+ // var high = this.high | word.high;
+ // var low = this.low | word.low;
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Bitwise XORs this word with the passed word.
+ *
+ * @param {X64Word} word The x64-Word to XOR with this word.
+ *
+ * @return {X64Word} A new x64-Word object after XORing.
+ *
+ * @example
+ *
+ * var xored = x64Word.xor(anotherX64Word);
+ */
+ // xor: function (word) {
+ // var high = this.high ^ word.high;
+ // var low = this.low ^ word.low;
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Shifts this word n bits to the left.
+ *
+ * @param {number} n The number of bits to shift.
+ *
+ * @return {X64Word} A new x64-Word object after shifting.
+ *
+ * @example
+ *
+ * var shifted = x64Word.shiftL(25);
+ */
+ // shiftL: function (n) {
+ // if (n < 32) {
+ // var high = (this.high << n) | (this.low >>> (32 - n));
+ // var low = this.low << n;
+ // } else {
+ // var high = this.low << (n - 32);
+ // var low = 0;
+ // }
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Shifts this word n bits to the right.
+ *
+ * @param {number} n The number of bits to shift.
+ *
+ * @return {X64Word} A new x64-Word object after shifting.
+ *
+ * @example
+ *
+ * var shifted = x64Word.shiftR(7);
+ */
+ // shiftR: function (n) {
+ // if (n < 32) {
+ // var low = (this.low >>> n) | (this.high << (32 - n));
+ // var high = this.high >>> n;
+ // } else {
+ // var low = this.high >>> (n - 32);
+ // var high = 0;
+ // }
+
+ // return X64Word.create(high, low);
+ // },
+
+ /**
+ * Rotates this word n bits to the left.
+ *
+ * @param {number} n The number of bits to rotate.
+ *
+ * @return {X64Word} A new x64-Word object after rotating.
+ *
+ * @example
+ *
+ * var rotated = x64Word.rotL(25);
+ */
+ // rotL: function (n) {
+ // return this.shiftL(n).or(this.shiftR(64 - n));
+ // },
+
+ /**
+ * Rotates this word n bits to the right.
+ *
+ * @param {number} n The number of bits to rotate.
+ *
+ * @return {X64Word} A new x64-Word object after rotating.
+ *
+ * @example
+ *
+ * var rotated = x64Word.rotR(7);
+ */
+ // rotR: function (n) {
+ // return this.shiftR(n).or(this.shiftL(64 - n));
+ // },
+
+ /**
+ * Adds this word with the passed word.
+ *
+ * @param {X64Word} word The x64-Word to add with this word.
+ *
+ * @return {X64Word} A new x64-Word object after adding.
+ *
+ * @example
+ *
+ * var added = x64Word.add(anotherX64Word);
+ */
+ // add: function (word) {
+ // var low = (this.low + word.low) | 0;
+ // var carry = (low >>> 0) < (this.low >>> 0) ? 1 : 0;
+ // var high = (this.high + word.high + carry) | 0;
+
+ // return X64Word.create(high, low);
+ // }
+ });
+
+ /**
+ * An array of 64-bit words.
+ *
+ * @property {Array} words The array of CryptoJS.x64.Word objects.
+ * @property {number} sigBytes The number of significant bytes in this word array.
+ */
+ var X64WordArray = C_x64.WordArray = Base.extend({
+ /**
+ * Initializes a newly created word array.
+ *
+ * @param {Array} words (Optional) An array of CryptoJS.x64.Word objects.
+ * @param {number} sigBytes (Optional) The number of significant bytes in the words.
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.x64.WordArray.create();
+ *
+ * var wordArray = CryptoJS.x64.WordArray.create([
+ * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
+ * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
+ * ]);
+ *
+ * var wordArray = CryptoJS.x64.WordArray.create([
+ * CryptoJS.x64.Word.create(0x00010203, 0x04050607),
+ * CryptoJS.x64.Word.create(0x18191a1b, 0x1c1d1e1f)
+ * ], 10);
+ */
+ init: function(words, sigBytes) {
+ words = this.words = words || [];
+
+ if (sigBytes != undefined) {
+ this.sigBytes = sigBytes;
+ } else {
+ this.sigBytes = words.length * 8;
+ }
+ },
+
+ /**
+ * Converts this 64-bit word array to a 32-bit word array.
+ *
+ * @return {CryptoJS.lib.WordArray} This word array's data as a 32-bit word array.
+ *
+ * @example
+ *
+ * var x32WordArray = x64WordArray.toX32();
+ */
+ toX32: function() {
+ // Shortcuts
+ var x64Words = this.words;
+ var x64WordsLength = x64Words.length;
+
+ // Convert
+ var x32Words = [];
+ for (var i = 0; i < x64WordsLength; i++) {
+ var x64Word = x64Words[i];
+ x32Words.push(x64Word.high);
+ x32Words.push(x64Word.low);
+ }
+
+ return X32WordArray.create(x32Words, this.sigBytes);
+ },
+
+ /**
+ * Creates a copy of this word array.
+ *
+ * @return {X64WordArray} The clone.
+ *
+ * @example
+ *
+ * var clone = x64WordArray.clone();
+ */
+ clone: function() {
+ var clone = Base.clone.call(this);
+
+ // Clone "words" array
+ var words = clone.words = this.words.slice(0);
+
+ // Clone each X64Word object
+ var wordsLength = words.length;
+ for (var i = 0; i < wordsLength; i++) {
+ words[i] = words[i].clone();
+ }
+
+ return clone;
+ }
+ });
+ }());
+
+
+ (function() {
+ // Check if typed arrays are supported
+ if (typeof ArrayBuffer != 'function') {
+ return;
+ }
+
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+
+ // Reference original init
+ var superInit = WordArray.init;
+
+ // Augment WordArray.init to handle typed arrays
+ var subInit = WordArray.init = function(typedArray) {
+ // Convert buffers to uint8
+ if (typedArray instanceof ArrayBuffer) {
+ typedArray = new Uint8Array(typedArray);
+ }
+
+ // Convert other array views to uint8
+ if (
+ typedArray instanceof Int8Array ||
+ (typeof Uint8ClampedArray !== "undefined" && typedArray instanceof Uint8ClampedArray) ||
+ typedArray instanceof Int16Array ||
+ typedArray instanceof Uint16Array ||
+ typedArray instanceof Int32Array ||
+ typedArray instanceof Uint32Array ||
+ typedArray instanceof Float32Array ||
+ typedArray instanceof Float64Array
+ ) {
+ typedArray = new Uint8Array(typedArray.buffer, typedArray.byteOffset, typedArray.byteLength);
+ }
+
+ // Handle Uint8Array
+ if (typedArray instanceof Uint8Array) {
+ // Shortcut
+ var typedArrayByteLength = typedArray.byteLength;
+
+ // Extract bytes
+ var words = [];
+ for (var i = 0; i < typedArrayByteLength; i++) {
+ words[i >>> 2] |= typedArray[i] << (24 - (i % 4) * 8);
+ }
+
+ // Initialize this word array
+ superInit.call(this, words, typedArrayByteLength);
+ } else {
+ // Else call normal init
+ superInit.apply(this, arguments);
+ }
+ };
+
+ subInit.prototype = WordArray;
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var C_enc = C.enc;
+
+ /**
+ * UTF-16 BE encoding strategy.
+ */
+ var Utf16BE = C_enc.Utf16 = C_enc.Utf16BE = {
+ /**
+ * Converts a word array to a UTF-16 BE string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The UTF-16 BE string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var utf16String = CryptoJS.enc.Utf16.stringify(wordArray);
+ */
+ stringify: function(wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+
+ // Convert
+ var utf16Chars = [];
+ for (var i = 0; i < sigBytes; i += 2) {
+ var codePoint = (words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff;
+ utf16Chars.push(String.fromCharCode(codePoint));
+ }
+
+ return utf16Chars.join('');
+ },
+
+ /**
+ * Converts a UTF-16 BE string to a word array.
+ *
+ * @param {string} utf16Str The UTF-16 BE string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Utf16.parse(utf16String);
+ */
+ parse: function(utf16Str) {
+ // Shortcut
+ var utf16StrLength = utf16Str.length;
+
+ // Convert
+ var words = [];
+ for (var i = 0; i < utf16StrLength; i++) {
+ words[i >>> 1] |= utf16Str.charCodeAt(i) << (16 - (i % 2) * 16);
+ }
+
+ return WordArray.create(words, utf16StrLength * 2);
+ }
+ };
+
+ /**
+ * UTF-16 LE encoding strategy.
+ */
+ C_enc.Utf16LE = {
+ /**
+ * Converts a word array to a UTF-16 LE string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The UTF-16 LE string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var utf16Str = CryptoJS.enc.Utf16LE.stringify(wordArray);
+ */
+ stringify: function(wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+
+ // Convert
+ var utf16Chars = [];
+ for (var i = 0; i < sigBytes; i += 2) {
+ var codePoint = swapEndian((words[i >>> 2] >>> (16 - (i % 4) * 8)) & 0xffff);
+ utf16Chars.push(String.fromCharCode(codePoint));
+ }
+
+ return utf16Chars.join('');
+ },
+
+ /**
+ * Converts a UTF-16 LE string to a word array.
+ *
+ * @param {string} utf16Str The UTF-16 LE string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Utf16LE.parse(utf16Str);
+ */
+ parse: function(utf16Str) {
+ // Shortcut
+ var utf16StrLength = utf16Str.length;
+
+ // Convert
+ var words = [];
+ for (var i = 0; i < utf16StrLength; i++) {
+ words[i >>> 1] |= swapEndian(utf16Str.charCodeAt(i) << (16 - (i % 2) * 16));
+ }
+
+ return WordArray.create(words, utf16StrLength * 2);
+ }
+ };
+
+ function swapEndian(word) {
+ return ((word << 8) & 0xff00ff00) | ((word >>> 8) & 0x00ff00ff);
+ }
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var C_enc = C.enc;
+
+ /**
+ * Base64 encoding strategy.
+ */
+ var Base64 = C_enc.Base64 = {
+ /**
+ * Converts a word array to a Base64 string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @return {string} The Base64 string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var base64String = CryptoJS.enc.Base64.stringify(wordArray);
+ */
+ stringify: function(wordArray) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+ var map = this._map;
+
+ // Clamp excess bits
+ wordArray.clamp();
+
+ // Convert
+ var base64Chars = [];
+ for (var i = 0; i < sigBytes; i += 3) {
+ var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;
+ var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;
+
+ var triplet = (byte1 << 16) | (byte2 << 8) | byte3;
+
+ for (var j = 0;
+ (j < 4) && (i + j * 0.75 < sigBytes); j++) {
+ base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));
+ }
+ }
+
+ // Add padding
+ var paddingChar = map.charAt(64);
+ if (paddingChar) {
+ while (base64Chars.length % 4) {
+ base64Chars.push(paddingChar);
+ }
+ }
+
+ return base64Chars.join('');
+ },
+
+ /**
+ * Converts a Base64 string to a word array.
+ *
+ * @param {string} base64Str The Base64 string.
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Base64.parse(base64String);
+ */
+ parse: function(base64Str) {
+ // Shortcuts
+ var base64StrLength = base64Str.length;
+ var map = this._map;
+ var reverseMap = this._reverseMap;
+
+ if (!reverseMap) {
+ reverseMap = this._reverseMap = [];
+ for (var j = 0; j < map.length; j++) {
+ reverseMap[map.charCodeAt(j)] = j;
+ }
+ }
+
+ // Ignore padding
+ var paddingChar = map.charAt(64);
+ if (paddingChar) {
+ var paddingIndex = base64Str.indexOf(paddingChar);
+ if (paddingIndex !== -1) {
+ base64StrLength = paddingIndex;
+ }
+ }
+
+ // Convert
+ return parseLoop(base64Str, base64StrLength, reverseMap);
+
+ },
+
+ _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/='
+ };
+
+ function parseLoop(base64Str, base64StrLength, reverseMap) {
+ var words = [];
+ var nBytes = 0;
+ for (var i = 0; i < base64StrLength; i++) {
+ if (i % 4) {
+ var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
+ var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
+ var bitsCombined = bits1 | bits2;
+ words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);
+ nBytes++;
+ }
+ }
+ return WordArray.create(words, nBytes);
+ }
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var C_enc = C.enc;
+
+ /**
+ * Base64url encoding strategy.
+ */
+ var Base64url = C_enc.Base64url = {
+ /**
+ * Converts a word array to a Base64url string.
+ *
+ * @param {WordArray} wordArray The word array.
+ *
+ * @param {boolean} urlSafe Whether to use url safe
+ *
+ * @return {string} The Base64url string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var base64String = CryptoJS.enc.Base64url.stringify(wordArray);
+ */
+ stringify: function(wordArray, urlSafe = true) {
+ // Shortcuts
+ var words = wordArray.words;
+ var sigBytes = wordArray.sigBytes;
+ var map = urlSafe ? this._safe_map : this._map;
+
+ // Clamp excess bits
+ wordArray.clamp();
+
+ // Convert
+ var base64Chars = [];
+ for (var i = 0; i < sigBytes; i += 3) {
+ var byte1 = (words[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff;
+ var byte2 = (words[(i + 1) >>> 2] >>> (24 - ((i + 1) % 4) * 8)) & 0xff;
+ var byte3 = (words[(i + 2) >>> 2] >>> (24 - ((i + 2) % 4) * 8)) & 0xff;
+
+ var triplet = (byte1 << 16) | (byte2 << 8) | byte3;
+
+ for (var j = 0;
+ (j < 4) && (i + j * 0.75 < sigBytes); j++) {
+ base64Chars.push(map.charAt((triplet >>> (6 * (3 - j))) & 0x3f));
+ }
+ }
+
+ // Add padding
+ var paddingChar = map.charAt(64);
+ if (paddingChar) {
+ while (base64Chars.length % 4) {
+ base64Chars.push(paddingChar);
+ }
+ }
+
+ return base64Chars.join('');
+ },
+
+ /**
+ * Converts a Base64url string to a word array.
+ *
+ * @param {string} base64Str The Base64url string.
+ *
+ * @param {boolean} urlSafe Whether to use url safe
+ *
+ * @return {WordArray} The word array.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var wordArray = CryptoJS.enc.Base64url.parse(base64String);
+ */
+ parse: function(base64Str, urlSafe = true) {
+ // Shortcuts
+ var base64StrLength = base64Str.length;
+ var map = urlSafe ? this._safe_map : this._map;
+ var reverseMap = this._reverseMap;
+
+ if (!reverseMap) {
+ reverseMap = this._reverseMap = [];
+ for (var j = 0; j < map.length; j++) {
+ reverseMap[map.charCodeAt(j)] = j;
+ }
+ }
+
+ // Ignore padding
+ var paddingChar = map.charAt(64);
+ if (paddingChar) {
+ var paddingIndex = base64Str.indexOf(paddingChar);
+ if (paddingIndex !== -1) {
+ base64StrLength = paddingIndex;
+ }
+ }
+
+ // Convert
+ return parseLoop(base64Str, base64StrLength, reverseMap);
+
+ },
+
+ _map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=',
+ _safe_map: 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_',
+ };
+
+ function parseLoop(base64Str, base64StrLength, reverseMap) {
+ var words = [];
+ var nBytes = 0;
+ for (var i = 0; i < base64StrLength; i++) {
+ if (i % 4) {
+ var bits1 = reverseMap[base64Str.charCodeAt(i - 1)] << ((i % 4) * 2);
+ var bits2 = reverseMap[base64Str.charCodeAt(i)] >>> (6 - (i % 4) * 2);
+ var bitsCombined = bits1 | bits2;
+ words[nBytes >>> 2] |= bitsCombined << (24 - (nBytes % 4) * 8);
+ nBytes++;
+ }
+ }
+ return WordArray.create(words, nBytes);
+ }
+ }());
+
+ (function(Math) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_algo = C.algo;
+
+ // Constants table
+ var T = [];
+
+ // Compute constants
+ (function() {
+ for (var i = 0; i < 64; i++) {
+ T[i] = (Math.abs(Math.sin(i + 1)) * 0x100000000) | 0;
+ }
+ }());
+
+ /**
+ * MD5 hash algorithm.
+ */
+ var MD5 = C_algo.MD5 = Hasher.extend({
+ _doReset: function() {
+ this._hash = new WordArray.init([
+ 0x67452301, 0xefcdab89,
+ 0x98badcfe, 0x10325476
+ ]);
+ },
+
+ _doProcessBlock: function(M, offset) {
+ // Swap endian
+ for (var i = 0; i < 16; i++) {
+ // Shortcuts
+ var offset_i = offset + i;
+ var M_offset_i = M[offset_i];
+
+ M[offset_i] = (
+ (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
+ (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
+ );
+ }
+
+ // Shortcuts
+ var H = this._hash.words;
+
+ var M_offset_0 = M[offset + 0];
+ var M_offset_1 = M[offset + 1];
+ var M_offset_2 = M[offset + 2];
+ var M_offset_3 = M[offset + 3];
+ var M_offset_4 = M[offset + 4];
+ var M_offset_5 = M[offset + 5];
+ var M_offset_6 = M[offset + 6];
+ var M_offset_7 = M[offset + 7];
+ var M_offset_8 = M[offset + 8];
+ var M_offset_9 = M[offset + 9];
+ var M_offset_10 = M[offset + 10];
+ var M_offset_11 = M[offset + 11];
+ var M_offset_12 = M[offset + 12];
+ var M_offset_13 = M[offset + 13];
+ var M_offset_14 = M[offset + 14];
+ var M_offset_15 = M[offset + 15];
+
+ // Working varialbes
+ var a = H[0];
+ var b = H[1];
+ var c = H[2];
+ var d = H[3];
+
+ // Computation
+ a = FF(a, b, c, d, M_offset_0, 7, T[0]);
+ d = FF(d, a, b, c, M_offset_1, 12, T[1]);
+ c = FF(c, d, a, b, M_offset_2, 17, T[2]);
+ b = FF(b, c, d, a, M_offset_3, 22, T[3]);
+ a = FF(a, b, c, d, M_offset_4, 7, T[4]);
+ d = FF(d, a, b, c, M_offset_5, 12, T[5]);
+ c = FF(c, d, a, b, M_offset_6, 17, T[6]);
+ b = FF(b, c, d, a, M_offset_7, 22, T[7]);
+ a = FF(a, b, c, d, M_offset_8, 7, T[8]);
+ d = FF(d, a, b, c, M_offset_9, 12, T[9]);
+ c = FF(c, d, a, b, M_offset_10, 17, T[10]);
+ b = FF(b, c, d, a, M_offset_11, 22, T[11]);
+ a = FF(a, b, c, d, M_offset_12, 7, T[12]);
+ d = FF(d, a, b, c, M_offset_13, 12, T[13]);
+ c = FF(c, d, a, b, M_offset_14, 17, T[14]);
+ b = FF(b, c, d, a, M_offset_15, 22, T[15]);
+
+ a = GG(a, b, c, d, M_offset_1, 5, T[16]);
+ d = GG(d, a, b, c, M_offset_6, 9, T[17]);
+ c = GG(c, d, a, b, M_offset_11, 14, T[18]);
+ b = GG(b, c, d, a, M_offset_0, 20, T[19]);
+ a = GG(a, b, c, d, M_offset_5, 5, T[20]);
+ d = GG(d, a, b, c, M_offset_10, 9, T[21]);
+ c = GG(c, d, a, b, M_offset_15, 14, T[22]);
+ b = GG(b, c, d, a, M_offset_4, 20, T[23]);
+ a = GG(a, b, c, d, M_offset_9, 5, T[24]);
+ d = GG(d, a, b, c, M_offset_14, 9, T[25]);
+ c = GG(c, d, a, b, M_offset_3, 14, T[26]);
+ b = GG(b, c, d, a, M_offset_8, 20, T[27]);
+ a = GG(a, b, c, d, M_offset_13, 5, T[28]);
+ d = GG(d, a, b, c, M_offset_2, 9, T[29]);
+ c = GG(c, d, a, b, M_offset_7, 14, T[30]);
+ b = GG(b, c, d, a, M_offset_12, 20, T[31]);
+
+ a = HH(a, b, c, d, M_offset_5, 4, T[32]);
+ d = HH(d, a, b, c, M_offset_8, 11, T[33]);
+ c = HH(c, d, a, b, M_offset_11, 16, T[34]);
+ b = HH(b, c, d, a, M_offset_14, 23, T[35]);
+ a = HH(a, b, c, d, M_offset_1, 4, T[36]);
+ d = HH(d, a, b, c, M_offset_4, 11, T[37]);
+ c = HH(c, d, a, b, M_offset_7, 16, T[38]);
+ b = HH(b, c, d, a, M_offset_10, 23, T[39]);
+ a = HH(a, b, c, d, M_offset_13, 4, T[40]);
+ d = HH(d, a, b, c, M_offset_0, 11, T[41]);
+ c = HH(c, d, a, b, M_offset_3, 16, T[42]);
+ b = HH(b, c, d, a, M_offset_6, 23, T[43]);
+ a = HH(a, b, c, d, M_offset_9, 4, T[44]);
+ d = HH(d, a, b, c, M_offset_12, 11, T[45]);
+ c = HH(c, d, a, b, M_offset_15, 16, T[46]);
+ b = HH(b, c, d, a, M_offset_2, 23, T[47]);
+
+ a = II(a, b, c, d, M_offset_0, 6, T[48]);
+ d = II(d, a, b, c, M_offset_7, 10, T[49]);
+ c = II(c, d, a, b, M_offset_14, 15, T[50]);
+ b = II(b, c, d, a, M_offset_5, 21, T[51]);
+ a = II(a, b, c, d, M_offset_12, 6, T[52]);
+ d = II(d, a, b, c, M_offset_3, 10, T[53]);
+ c = II(c, d, a, b, M_offset_10, 15, T[54]);
+ b = II(b, c, d, a, M_offset_1, 21, T[55]);
+ a = II(a, b, c, d, M_offset_8, 6, T[56]);
+ d = II(d, a, b, c, M_offset_15, 10, T[57]);
+ c = II(c, d, a, b, M_offset_6, 15, T[58]);
+ b = II(b, c, d, a, M_offset_13, 21, T[59]);
+ a = II(a, b, c, d, M_offset_4, 6, T[60]);
+ d = II(d, a, b, c, M_offset_11, 10, T[61]);
+ c = II(c, d, a, b, M_offset_2, 15, T[62]);
+ b = II(b, c, d, a, M_offset_9, 21, T[63]);
+
+ // Intermediate hash value
+ H[0] = (H[0] + a) | 0;
+ H[1] = (H[1] + b) | 0;
+ H[2] = (H[2] + c) | 0;
+ H[3] = (H[3] + d) | 0;
+ },
+
+ _doFinalize: function() {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+
+ var nBitsTotalH = Math.floor(nBitsTotal / 0x100000000);
+ var nBitsTotalL = nBitsTotal;
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = (
+ (((nBitsTotalH << 8) | (nBitsTotalH >>> 24)) & 0x00ff00ff) |
+ (((nBitsTotalH << 24) | (nBitsTotalH >>> 8)) & 0xff00ff00)
+ );
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (
+ (((nBitsTotalL << 8) | (nBitsTotalL >>> 24)) & 0x00ff00ff) |
+ (((nBitsTotalL << 24) | (nBitsTotalL >>> 8)) & 0xff00ff00)
+ );
+
+ data.sigBytes = (dataWords.length + 1) * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Shortcuts
+ var hash = this._hash;
+ var H = hash.words;
+
+ // Swap endian
+ for (var i = 0; i < 4; i++) {
+ // Shortcut
+ var H_i = H[i];
+
+ H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
+ (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
+ }
+
+ // Return final computed hash
+ return hash;
+ },
+
+ clone: function() {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ }
+ });
+
+ function FF(a, b, c, d, x, s, t) {
+ var n = a + ((b & c) | (~b & d)) + x + t;
+ return ((n << s) | (n >>> (32 - s))) + b;
+ }
+
+ function GG(a, b, c, d, x, s, t) {
+ var n = a + ((b & d) | (c & ~d)) + x + t;
+ return ((n << s) | (n >>> (32 - s))) + b;
+ }
+
+ function HH(a, b, c, d, x, s, t) {
+ var n = a + (b ^ c ^ d) + x + t;
+ return ((n << s) | (n >>> (32 - s))) + b;
+ }
+
+ function II(a, b, c, d, x, s, t) {
+ var n = a + (c ^ (b | ~d)) + x + t;
+ return ((n << s) | (n >>> (32 - s))) + b;
+ }
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.MD5('message');
+ * var hash = CryptoJS.MD5(wordArray);
+ */
+ C.MD5 = Hasher._createHelper(MD5);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacMD5(message, key);
+ */
+ C.HmacMD5 = Hasher._createHmacHelper(MD5);
+ }(Math));
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_algo = C.algo;
+
+ // Reusable object
+ var W = [];
+
+ /**
+ * SHA-1 hash algorithm.
+ */
+ var SHA1 = C_algo.SHA1 = Hasher.extend({
+ _doReset: function() {
+ this._hash = new WordArray.init([
+ 0x67452301, 0xefcdab89,
+ 0x98badcfe, 0x10325476,
+ 0xc3d2e1f0
+ ]);
+ },
+
+ _doProcessBlock: function(M, offset) {
+ // Shortcut
+ var H = this._hash.words;
+
+ // Working variables
+ var a = H[0];
+ var b = H[1];
+ var c = H[2];
+ var d = H[3];
+ var e = H[4];
+
+ // Computation
+ for (var i = 0; i < 80; i++) {
+ if (i < 16) {
+ W[i] = M[offset + i] | 0;
+ } else {
+ var n = W[i - 3] ^ W[i - 8] ^ W[i - 14] ^ W[i - 16];
+ W[i] = (n << 1) | (n >>> 31);
+ }
+
+ var t = ((a << 5) | (a >>> 27)) + e + W[i];
+ if (i < 20) {
+ t += ((b & c) | (~b & d)) + 0x5a827999;
+ } else if (i < 40) {
+ t += (b ^ c ^ d) + 0x6ed9eba1;
+ } else if (i < 60) {
+ t += ((b & c) | (b & d) | (c & d)) - 0x70e44324;
+ } else /* if (i < 80) */ {
+ t += (b ^ c ^ d) - 0x359d3e2a;
+ }
+
+ e = d;
+ d = c;
+ c = (b << 30) | (b >>> 2);
+ b = a;
+ a = t;
+ }
+
+ // Intermediate hash value
+ H[0] = (H[0] + a) | 0;
+ H[1] = (H[1] + b) | 0;
+ H[2] = (H[2] + c) | 0;
+ H[3] = (H[3] + d) | 0;
+ H[4] = (H[4] + e) | 0;
+ },
+
+ _doFinalize: function() {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;
+ data.sigBytes = dataWords.length * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Return final computed hash
+ return this._hash;
+ },
+
+ clone: function() {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA1('message');
+ * var hash = CryptoJS.SHA1(wordArray);
+ */
+ C.SHA1 = Hasher._createHelper(SHA1);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA1(message, key);
+ */
+ C.HmacSHA1 = Hasher._createHmacHelper(SHA1);
+ }());
+
+
+ (function(Math) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_algo = C.algo;
+
+ // Initialization and round constants tables
+ var H = [];
+ var K = [];
+
+ // Compute constants
+ (function() {
+ function isPrime(n) {
+ var sqrtN = Math.sqrt(n);
+ for (var factor = 2; factor <= sqrtN; factor++) {
+ if (!(n % factor)) {
+ return false;
+ }
+ }
+
+ return true;
+ }
+
+ function getFractionalBits(n) {
+ return ((n - (n | 0)) * 0x100000000) | 0;
+ }
+
+ var n = 2;
+ var nPrime = 0;
+ while (nPrime < 64) {
+ if (isPrime(n)) {
+ if (nPrime < 8) {
+ H[nPrime] = getFractionalBits(Math.pow(n, 1 / 2));
+ }
+ K[nPrime] = getFractionalBits(Math.pow(n, 1 / 3));
+
+ nPrime++;
+ }
+
+ n++;
+ }
+ }());
+
+ // Reusable object
+ var W = [];
+
+ /**
+ * SHA-256 hash algorithm.
+ */
+ var SHA256 = C_algo.SHA256 = Hasher.extend({
+ _doReset: function() {
+ this._hash = new WordArray.init(H.slice(0));
+ },
+
+ _doProcessBlock: function(M, offset) {
+ // Shortcut
+ var H = this._hash.words;
+
+ // Working variables
+ var a = H[0];
+ var b = H[1];
+ var c = H[2];
+ var d = H[3];
+ var e = H[4];
+ var f = H[5];
+ var g = H[6];
+ var h = H[7];
+
+ // Computation
+ for (var i = 0; i < 64; i++) {
+ if (i < 16) {
+ W[i] = M[offset + i] | 0;
+ } else {
+ var gamma0x = W[i - 15];
+ var gamma0 = ((gamma0x << 25) | (gamma0x >>> 7)) ^
+ ((gamma0x << 14) | (gamma0x >>> 18)) ^
+ (gamma0x >>> 3);
+
+ var gamma1x = W[i - 2];
+ var gamma1 = ((gamma1x << 15) | (gamma1x >>> 17)) ^
+ ((gamma1x << 13) | (gamma1x >>> 19)) ^
+ (gamma1x >>> 10);
+
+ W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16];
+ }
+
+ var ch = (e & f) ^ (~e & g);
+ var maj = (a & b) ^ (a & c) ^ (b & c);
+
+ var sigma0 = ((a << 30) | (a >>> 2)) ^ ((a << 19) | (a >>> 13)) ^ ((a << 10) | (a >>> 22));
+ var sigma1 = ((e << 26) | (e >>> 6)) ^ ((e << 21) | (e >>> 11)) ^ ((e << 7) | (e >>> 25));
+
+ var t1 = h + sigma1 + ch + K[i] + W[i];
+ var t2 = sigma0 + maj;
+
+ h = g;
+ g = f;
+ f = e;
+ e = (d + t1) | 0;
+ d = c;
+ c = b;
+ b = a;
+ a = (t1 + t2) | 0;
+ }
+
+ // Intermediate hash value
+ H[0] = (H[0] + a) | 0;
+ H[1] = (H[1] + b) | 0;
+ H[2] = (H[2] + c) | 0;
+ H[3] = (H[3] + d) | 0;
+ H[4] = (H[4] + e) | 0;
+ H[5] = (H[5] + f) | 0;
+ H[6] = (H[6] + g) | 0;
+ H[7] = (H[7] + h) | 0;
+ },
+
+ _doFinalize: function() {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = Math.floor(nBitsTotal / 0x100000000);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 15] = nBitsTotal;
+ data.sigBytes = dataWords.length * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Return final computed hash
+ return this._hash;
+ },
+
+ clone: function() {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA256('message');
+ * var hash = CryptoJS.SHA256(wordArray);
+ */
+ C.SHA256 = Hasher._createHelper(SHA256);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA256(message, key);
+ */
+ C.HmacSHA256 = Hasher._createHmacHelper(SHA256);
+ }(Math));
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var C_algo = C.algo;
+ var SHA256 = C_algo.SHA256;
+
+ /**
+ * SHA-224 hash algorithm.
+ */
+ var SHA224 = C_algo.SHA224 = SHA256.extend({
+ _doReset: function() {
+ this._hash = new WordArray.init([
+ 0xc1059ed8, 0x367cd507, 0x3070dd17, 0xf70e5939,
+ 0xffc00b31, 0x68581511, 0x64f98fa7, 0xbefa4fa4
+ ]);
+ },
+
+ _doFinalize: function() {
+ var hash = SHA256._doFinalize.call(this);
+
+ hash.sigBytes -= 4;
+
+ return hash;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA224('message');
+ * var hash = CryptoJS.SHA224(wordArray);
+ */
+ C.SHA224 = SHA256._createHelper(SHA224);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA224(message, key);
+ */
+ C.HmacSHA224 = SHA256._createHmacHelper(SHA224);
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Hasher = C_lib.Hasher;
+ var C_x64 = C.x64;
+ var X64Word = C_x64.Word;
+ var X64WordArray = C_x64.WordArray;
+ var C_algo = C.algo;
+
+ function X64Word_create() {
+ return X64Word.create.apply(X64Word, arguments);
+ }
+
+ // Constants
+ var K = [
+ X64Word_create(0x428a2f98, 0xd728ae22), X64Word_create(0x71374491, 0x23ef65cd),
+ X64Word_create(0xb5c0fbcf, 0xec4d3b2f), X64Word_create(0xe9b5dba5, 0x8189dbbc),
+ X64Word_create(0x3956c25b, 0xf348b538), X64Word_create(0x59f111f1, 0xb605d019),
+ X64Word_create(0x923f82a4, 0xaf194f9b), X64Word_create(0xab1c5ed5, 0xda6d8118),
+ X64Word_create(0xd807aa98, 0xa3030242), X64Word_create(0x12835b01, 0x45706fbe),
+ X64Word_create(0x243185be, 0x4ee4b28c), X64Word_create(0x550c7dc3, 0xd5ffb4e2),
+ X64Word_create(0x72be5d74, 0xf27b896f), X64Word_create(0x80deb1fe, 0x3b1696b1),
+ X64Word_create(0x9bdc06a7, 0x25c71235), X64Word_create(0xc19bf174, 0xcf692694),
+ X64Word_create(0xe49b69c1, 0x9ef14ad2), X64Word_create(0xefbe4786, 0x384f25e3),
+ X64Word_create(0x0fc19dc6, 0x8b8cd5b5), X64Word_create(0x240ca1cc, 0x77ac9c65),
+ X64Word_create(0x2de92c6f, 0x592b0275), X64Word_create(0x4a7484aa, 0x6ea6e483),
+ X64Word_create(0x5cb0a9dc, 0xbd41fbd4), X64Word_create(0x76f988da, 0x831153b5),
+ X64Word_create(0x983e5152, 0xee66dfab), X64Word_create(0xa831c66d, 0x2db43210),
+ X64Word_create(0xb00327c8, 0x98fb213f), X64Word_create(0xbf597fc7, 0xbeef0ee4),
+ X64Word_create(0xc6e00bf3, 0x3da88fc2), X64Word_create(0xd5a79147, 0x930aa725),
+ X64Word_create(0x06ca6351, 0xe003826f), X64Word_create(0x14292967, 0x0a0e6e70),
+ X64Word_create(0x27b70a85, 0x46d22ffc), X64Word_create(0x2e1b2138, 0x5c26c926),
+ X64Word_create(0x4d2c6dfc, 0x5ac42aed), X64Word_create(0x53380d13, 0x9d95b3df),
+ X64Word_create(0x650a7354, 0x8baf63de), X64Word_create(0x766a0abb, 0x3c77b2a8),
+ X64Word_create(0x81c2c92e, 0x47edaee6), X64Word_create(0x92722c85, 0x1482353b),
+ X64Word_create(0xa2bfe8a1, 0x4cf10364), X64Word_create(0xa81a664b, 0xbc423001),
+ X64Word_create(0xc24b8b70, 0xd0f89791), X64Word_create(0xc76c51a3, 0x0654be30),
+ X64Word_create(0xd192e819, 0xd6ef5218), X64Word_create(0xd6990624, 0x5565a910),
+ X64Word_create(0xf40e3585, 0x5771202a), X64Word_create(0x106aa070, 0x32bbd1b8),
+ X64Word_create(0x19a4c116, 0xb8d2d0c8), X64Word_create(0x1e376c08, 0x5141ab53),
+ X64Word_create(0x2748774c, 0xdf8eeb99), X64Word_create(0x34b0bcb5, 0xe19b48a8),
+ X64Word_create(0x391c0cb3, 0xc5c95a63), X64Word_create(0x4ed8aa4a, 0xe3418acb),
+ X64Word_create(0x5b9cca4f, 0x7763e373), X64Word_create(0x682e6ff3, 0xd6b2b8a3),
+ X64Word_create(0x748f82ee, 0x5defb2fc), X64Word_create(0x78a5636f, 0x43172f60),
+ X64Word_create(0x84c87814, 0xa1f0ab72), X64Word_create(0x8cc70208, 0x1a6439ec),
+ X64Word_create(0x90befffa, 0x23631e28), X64Word_create(0xa4506ceb, 0xde82bde9),
+ X64Word_create(0xbef9a3f7, 0xb2c67915), X64Word_create(0xc67178f2, 0xe372532b),
+ X64Word_create(0xca273ece, 0xea26619c), X64Word_create(0xd186b8c7, 0x21c0c207),
+ X64Word_create(0xeada7dd6, 0xcde0eb1e), X64Word_create(0xf57d4f7f, 0xee6ed178),
+ X64Word_create(0x06f067aa, 0x72176fba), X64Word_create(0x0a637dc5, 0xa2c898a6),
+ X64Word_create(0x113f9804, 0xbef90dae), X64Word_create(0x1b710b35, 0x131c471b),
+ X64Word_create(0x28db77f5, 0x23047d84), X64Word_create(0x32caab7b, 0x40c72493),
+ X64Word_create(0x3c9ebe0a, 0x15c9bebc), X64Word_create(0x431d67c4, 0x9c100d4c),
+ X64Word_create(0x4cc5d4be, 0xcb3e42b6), X64Word_create(0x597f299c, 0xfc657e2a),
+ X64Word_create(0x5fcb6fab, 0x3ad6faec), X64Word_create(0x6c44198c, 0x4a475817)
+ ];
+
+ // Reusable objects
+ var W = [];
+ (function() {
+ for (var i = 0; i < 80; i++) {
+ W[i] = X64Word_create();
+ }
+ }());
+
+ /**
+ * SHA-512 hash algorithm.
+ */
+ var SHA512 = C_algo.SHA512 = Hasher.extend({
+ _doReset: function() {
+ this._hash = new X64WordArray.init([
+ new X64Word.init(0x6a09e667, 0xf3bcc908), new X64Word.init(0xbb67ae85, 0x84caa73b),
+ new X64Word.init(0x3c6ef372, 0xfe94f82b), new X64Word.init(0xa54ff53a, 0x5f1d36f1),
+ new X64Word.init(0x510e527f, 0xade682d1), new X64Word.init(0x9b05688c, 0x2b3e6c1f),
+ new X64Word.init(0x1f83d9ab, 0xfb41bd6b), new X64Word.init(0x5be0cd19, 0x137e2179)
+ ]);
+ },
+
+ _doProcessBlock: function(M, offset) {
+ // Shortcuts
+ var H = this._hash.words;
+
+ var H0 = H[0];
+ var H1 = H[1];
+ var H2 = H[2];
+ var H3 = H[3];
+ var H4 = H[4];
+ var H5 = H[5];
+ var H6 = H[6];
+ var H7 = H[7];
+
+ var H0h = H0.high;
+ var H0l = H0.low;
+ var H1h = H1.high;
+ var H1l = H1.low;
+ var H2h = H2.high;
+ var H2l = H2.low;
+ var H3h = H3.high;
+ var H3l = H3.low;
+ var H4h = H4.high;
+ var H4l = H4.low;
+ var H5h = H5.high;
+ var H5l = H5.low;
+ var H6h = H6.high;
+ var H6l = H6.low;
+ var H7h = H7.high;
+ var H7l = H7.low;
+
+ // Working variables
+ var ah = H0h;
+ var al = H0l;
+ var bh = H1h;
+ var bl = H1l;
+ var ch = H2h;
+ var cl = H2l;
+ var dh = H3h;
+ var dl = H3l;
+ var eh = H4h;
+ var el = H4l;
+ var fh = H5h;
+ var fl = H5l;
+ var gh = H6h;
+ var gl = H6l;
+ var hh = H7h;
+ var hl = H7l;
+
+ // Rounds
+ for (var i = 0; i < 80; i++) {
+ var Wil;
+ var Wih;
+
+ // Shortcut
+ var Wi = W[i];
+
+ // Extend message
+ if (i < 16) {
+ Wih = Wi.high = M[offset + i * 2] | 0;
+ Wil = Wi.low = M[offset + i * 2 + 1] | 0;
+ } else {
+ // Gamma0
+ var gamma0x = W[i - 15];
+ var gamma0xh = gamma0x.high;
+ var gamma0xl = gamma0x.low;
+ var gamma0h = ((gamma0xh >>> 1) | (gamma0xl << 31)) ^ ((gamma0xh >>> 8) | (gamma0xl << 24)) ^ (gamma0xh >>> 7);
+ var gamma0l = ((gamma0xl >>> 1) | (gamma0xh << 31)) ^ ((gamma0xl >>> 8) | (gamma0xh << 24)) ^ ((gamma0xl >>> 7) | (gamma0xh << 25));
+
+ // Gamma1
+ var gamma1x = W[i - 2];
+ var gamma1xh = gamma1x.high;
+ var gamma1xl = gamma1x.low;
+ var gamma1h = ((gamma1xh >>> 19) | (gamma1xl << 13)) ^ ((gamma1xh << 3) | (gamma1xl >>> 29)) ^ (gamma1xh >>> 6);
+ var gamma1l = ((gamma1xl >>> 19) | (gamma1xh << 13)) ^ ((gamma1xl << 3) | (gamma1xh >>> 29)) ^ ((gamma1xl >>> 6) | (gamma1xh << 26));
+
+ // W[i] = gamma0 + W[i - 7] + gamma1 + W[i - 16]
+ var Wi7 = W[i - 7];
+ var Wi7h = Wi7.high;
+ var Wi7l = Wi7.low;
+
+ var Wi16 = W[i - 16];
+ var Wi16h = Wi16.high;
+ var Wi16l = Wi16.low;
+
+ Wil = gamma0l + Wi7l;
+ Wih = gamma0h + Wi7h + ((Wil >>> 0) < (gamma0l >>> 0) ? 1 : 0);
+ Wil = Wil + gamma1l;
+ Wih = Wih + gamma1h + ((Wil >>> 0) < (gamma1l >>> 0) ? 1 : 0);
+ Wil = Wil + Wi16l;
+ Wih = Wih + Wi16h + ((Wil >>> 0) < (Wi16l >>> 0) ? 1 : 0);
+
+ Wi.high = Wih;
+ Wi.low = Wil;
+ }
+
+ var chh = (eh & fh) ^ (~eh & gh);
+ var chl = (el & fl) ^ (~el & gl);
+ var majh = (ah & bh) ^ (ah & ch) ^ (bh & ch);
+ var majl = (al & bl) ^ (al & cl) ^ (bl & cl);
+
+ var sigma0h = ((ah >>> 28) | (al << 4)) ^ ((ah << 30) | (al >>> 2)) ^ ((ah << 25) | (al >>> 7));
+ var sigma0l = ((al >>> 28) | (ah << 4)) ^ ((al << 30) | (ah >>> 2)) ^ ((al << 25) | (ah >>> 7));
+ var sigma1h = ((eh >>> 14) | (el << 18)) ^ ((eh >>> 18) | (el << 14)) ^ ((eh << 23) | (el >>> 9));
+ var sigma1l = ((el >>> 14) | (eh << 18)) ^ ((el >>> 18) | (eh << 14)) ^ ((el << 23) | (eh >>> 9));
+
+ // t1 = h + sigma1 + ch + K[i] + W[i]
+ var Ki = K[i];
+ var Kih = Ki.high;
+ var Kil = Ki.low;
+
+ var t1l = hl + sigma1l;
+ var t1h = hh + sigma1h + ((t1l >>> 0) < (hl >>> 0) ? 1 : 0);
+ var t1l = t1l + chl;
+ var t1h = t1h + chh + ((t1l >>> 0) < (chl >>> 0) ? 1 : 0);
+ var t1l = t1l + Kil;
+ var t1h = t1h + Kih + ((t1l >>> 0) < (Kil >>> 0) ? 1 : 0);
+ var t1l = t1l + Wil;
+ var t1h = t1h + Wih + ((t1l >>> 0) < (Wil >>> 0) ? 1 : 0);
+
+ // t2 = sigma0 + maj
+ var t2l = sigma0l + majl;
+ var t2h = sigma0h + majh + ((t2l >>> 0) < (sigma0l >>> 0) ? 1 : 0);
+
+ // Update working variables
+ hh = gh;
+ hl = gl;
+ gh = fh;
+ gl = fl;
+ fh = eh;
+ fl = el;
+ el = (dl + t1l) | 0;
+ eh = (dh + t1h + ((el >>> 0) < (dl >>> 0) ? 1 : 0)) | 0;
+ dh = ch;
+ dl = cl;
+ ch = bh;
+ cl = bl;
+ bh = ah;
+ bl = al;
+ al = (t1l + t2l) | 0;
+ ah = (t1h + t2h + ((al >>> 0) < (t1l >>> 0) ? 1 : 0)) | 0;
+ }
+
+ // Intermediate hash value
+ H0l = H0.low = (H0l + al);
+ H0.high = (H0h + ah + ((H0l >>> 0) < (al >>> 0) ? 1 : 0));
+ H1l = H1.low = (H1l + bl);
+ H1.high = (H1h + bh + ((H1l >>> 0) < (bl >>> 0) ? 1 : 0));
+ H2l = H2.low = (H2l + cl);
+ H2.high = (H2h + ch + ((H2l >>> 0) < (cl >>> 0) ? 1 : 0));
+ H3l = H3.low = (H3l + dl);
+ H3.high = (H3h + dh + ((H3l >>> 0) < (dl >>> 0) ? 1 : 0));
+ H4l = H4.low = (H4l + el);
+ H4.high = (H4h + eh + ((H4l >>> 0) < (el >>> 0) ? 1 : 0));
+ H5l = H5.low = (H5l + fl);
+ H5.high = (H5h + fh + ((H5l >>> 0) < (fl >>> 0) ? 1 : 0));
+ H6l = H6.low = (H6l + gl);
+ H6.high = (H6h + gh + ((H6l >>> 0) < (gl >>> 0) ? 1 : 0));
+ H7l = H7.low = (H7l + hl);
+ H7.high = (H7h + hh + ((H7l >>> 0) < (hl >>> 0) ? 1 : 0));
+ },
+
+ _doFinalize: function() {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+ dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 30] = Math.floor(nBitsTotal / 0x100000000);
+ dataWords[(((nBitsLeft + 128) >>> 10) << 5) + 31] = nBitsTotal;
+ data.sigBytes = dataWords.length * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Convert hash to 32-bit word array before returning
+ var hash = this._hash.toX32();
+
+ // Return final computed hash
+ return hash;
+ },
+
+ clone: function() {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ },
+
+ blockSize: 1024 / 32
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA512('message');
+ * var hash = CryptoJS.SHA512(wordArray);
+ */
+ C.SHA512 = Hasher._createHelper(SHA512);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA512(message, key);
+ */
+ C.HmacSHA512 = Hasher._createHmacHelper(SHA512);
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_x64 = C.x64;
+ var X64Word = C_x64.Word;
+ var X64WordArray = C_x64.WordArray;
+ var C_algo = C.algo;
+ var SHA512 = C_algo.SHA512;
+
+ /**
+ * SHA-384 hash algorithm.
+ */
+ var SHA384 = C_algo.SHA384 = SHA512.extend({
+ _doReset: function() {
+ this._hash = new X64WordArray.init([
+ new X64Word.init(0xcbbb9d5d, 0xc1059ed8), new X64Word.init(0x629a292a, 0x367cd507),
+ new X64Word.init(0x9159015a, 0x3070dd17), new X64Word.init(0x152fecd8, 0xf70e5939),
+ new X64Word.init(0x67332667, 0xffc00b31), new X64Word.init(0x8eb44a87, 0x68581511),
+ new X64Word.init(0xdb0c2e0d, 0x64f98fa7), new X64Word.init(0x47b5481d, 0xbefa4fa4)
+ ]);
+ },
+
+ _doFinalize: function() {
+ var hash = SHA512._doFinalize.call(this);
+
+ hash.sigBytes -= 16;
+
+ return hash;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA384('message');
+ * var hash = CryptoJS.SHA384(wordArray);
+ */
+ C.SHA384 = SHA512._createHelper(SHA384);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA384(message, key);
+ */
+ C.HmacSHA384 = SHA512._createHmacHelper(SHA384);
+ }());
+
+
+ (function(Math) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_x64 = C.x64;
+ var X64Word = C_x64.Word;
+ var C_algo = C.algo;
+
+ // Constants tables
+ var RHO_OFFSETS = [];
+ var PI_INDEXES = [];
+ var ROUND_CONSTANTS = [];
+
+ // Compute Constants
+ (function() {
+ // Compute rho offset constants
+ var x = 1,
+ y = 0;
+ for (var t = 0; t < 24; t++) {
+ RHO_OFFSETS[x + 5 * y] = ((t + 1) * (t + 2) / 2) % 64;
+
+ var newX = y % 5;
+ var newY = (2 * x + 3 * y) % 5;
+ x = newX;
+ y = newY;
+ }
+
+ // Compute pi index constants
+ for (var x = 0; x < 5; x++) {
+ for (var y = 0; y < 5; y++) {
+ PI_INDEXES[x + 5 * y] = y + ((2 * x + 3 * y) % 5) * 5;
+ }
+ }
+
+ // Compute round constants
+ var LFSR = 0x01;
+ for (var i = 0; i < 24; i++) {
+ var roundConstantMsw = 0;
+ var roundConstantLsw = 0;
+
+ for (var j = 0; j < 7; j++) {
+ if (LFSR & 0x01) {
+ var bitPosition = (1 << j) - 1;
+ if (bitPosition < 32) {
+ roundConstantLsw ^= 1 << bitPosition;
+ } else /* if (bitPosition >= 32) */ {
+ roundConstantMsw ^= 1 << (bitPosition - 32);
+ }
+ }
+
+ // Compute next LFSR
+ if (LFSR & 0x80) {
+ // Primitive polynomial over GF(2): x^8 + x^6 + x^5 + x^4 + 1
+ LFSR = (LFSR << 1) ^ 0x71;
+ } else {
+ LFSR <<= 1;
+ }
+ }
+
+ ROUND_CONSTANTS[i] = X64Word.create(roundConstantMsw, roundConstantLsw);
+ }
+ }());
+
+ // Reusable objects for temporary values
+ var T = [];
+ (function() {
+ for (var i = 0; i < 25; i++) {
+ T[i] = X64Word.create();
+ }
+ }());
+
+ /**
+ * SHA-3 hash algorithm.
+ */
+ var SHA3 = C_algo.SHA3 = Hasher.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {number} outputLength
+ * The desired number of bits in the output hash.
+ * Only values permitted are: 224, 256, 384, 512.
+ * Default: 512
+ */
+ cfg: Hasher.cfg.extend({
+ outputLength: 512
+ }),
+
+ _doReset: function() {
+ var state = this._state = []
+ for (var i = 0; i < 25; i++) {
+ state[i] = new X64Word.init();
+ }
+
+ this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32;
+ },
+
+ _doProcessBlock: function(M, offset) {
+ // Shortcuts
+ var state = this._state;
+ var nBlockSizeLanes = this.blockSize / 2;
+
+ // Absorb
+ for (var i = 0; i < nBlockSizeLanes; i++) {
+ // Shortcuts
+ var M2i = M[offset + 2 * i];
+ var M2i1 = M[offset + 2 * i + 1];
+
+ // Swap endian
+ M2i = (
+ (((M2i << 8) | (M2i >>> 24)) & 0x00ff00ff) |
+ (((M2i << 24) | (M2i >>> 8)) & 0xff00ff00)
+ );
+ M2i1 = (
+ (((M2i1 << 8) | (M2i1 >>> 24)) & 0x00ff00ff) |
+ (((M2i1 << 24) | (M2i1 >>> 8)) & 0xff00ff00)
+ );
+
+ // Absorb message into state
+ var lane = state[i];
+ lane.high ^= M2i1;
+ lane.low ^= M2i;
+ }
+
+ // Rounds
+ for (var round = 0; round < 24; round++) {
+ // Theta
+ for (var x = 0; x < 5; x++) {
+ // Mix column lanes
+ var tMsw = 0,
+ tLsw = 0;
+ for (var y = 0; y < 5; y++) {
+ var lane = state[x + 5 * y];
+ tMsw ^= lane.high;
+ tLsw ^= lane.low;
+ }
+
+ // Temporary values
+ var Tx = T[x];
+ Tx.high = tMsw;
+ Tx.low = tLsw;
+ }
+ for (var x = 0; x < 5; x++) {
+ // Shortcuts
+ var Tx4 = T[(x + 4) % 5];
+ var Tx1 = T[(x + 1) % 5];
+ var Tx1Msw = Tx1.high;
+ var Tx1Lsw = Tx1.low;
+
+ // Mix surrounding columns
+ var tMsw = Tx4.high ^ ((Tx1Msw << 1) | (Tx1Lsw >>> 31));
+ var tLsw = Tx4.low ^ ((Tx1Lsw << 1) | (Tx1Msw >>> 31));
+ for (var y = 0; y < 5; y++) {
+ var lane = state[x + 5 * y];
+ lane.high ^= tMsw;
+ lane.low ^= tLsw;
+ }
+ }
+
+ // Rho Pi
+ for (var laneIndex = 1; laneIndex < 25; laneIndex++) {
+ var tMsw;
+ var tLsw;
+
+ // Shortcuts
+ var lane = state[laneIndex];
+ var laneMsw = lane.high;
+ var laneLsw = lane.low;
+ var rhoOffset = RHO_OFFSETS[laneIndex];
+
+ // Rotate lanes
+ if (rhoOffset < 32) {
+ tMsw = (laneMsw << rhoOffset) | (laneLsw >>> (32 - rhoOffset));
+ tLsw = (laneLsw << rhoOffset) | (laneMsw >>> (32 - rhoOffset));
+ } else /* if (rhoOffset >= 32) */ {
+ tMsw = (laneLsw << (rhoOffset - 32)) | (laneMsw >>> (64 - rhoOffset));
+ tLsw = (laneMsw << (rhoOffset - 32)) | (laneLsw >>> (64 - rhoOffset));
+ }
+
+ // Transpose lanes
+ var TPiLane = T[PI_INDEXES[laneIndex]];
+ TPiLane.high = tMsw;
+ TPiLane.low = tLsw;
+ }
+
+ // Rho pi at x = y = 0
+ var T0 = T[0];
+ var state0 = state[0];
+ T0.high = state0.high;
+ T0.low = state0.low;
+
+ // Chi
+ for (var x = 0; x < 5; x++) {
+ for (var y = 0; y < 5; y++) {
+ // Shortcuts
+ var laneIndex = x + 5 * y;
+ var lane = state[laneIndex];
+ var TLane = T[laneIndex];
+ var Tx1Lane = T[((x + 1) % 5) + 5 * y];
+ var Tx2Lane = T[((x + 2) % 5) + 5 * y];
+
+ // Mix rows
+ lane.high = TLane.high ^ (~Tx1Lane.high & Tx2Lane.high);
+ lane.low = TLane.low ^ (~Tx1Lane.low & Tx2Lane.low);
+ }
+ }
+
+ // Iota
+ var lane = state[0];
+ var roundConstant = ROUND_CONSTANTS[round];
+ lane.high ^= roundConstant.high;
+ lane.low ^= roundConstant.low;
+ }
+ },
+
+ _doFinalize: function() {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+ var blockSizeBits = this.blockSize * 32;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x1 << (24 - nBitsLeft % 32);
+ dataWords[((Math.ceil((nBitsLeft + 1) / blockSizeBits) * blockSizeBits) >>> 5) - 1] |= 0x80;
+ data.sigBytes = dataWords.length * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Shortcuts
+ var state = this._state;
+ var outputLengthBytes = this.cfg.outputLength / 8;
+ var outputLengthLanes = outputLengthBytes / 8;
+
+ // Squeeze
+ var hashWords = [];
+ for (var i = 0; i < outputLengthLanes; i++) {
+ // Shortcuts
+ var lane = state[i];
+ var laneMsw = lane.high;
+ var laneLsw = lane.low;
+
+ // Swap endian
+ laneMsw = (
+ (((laneMsw << 8) | (laneMsw >>> 24)) & 0x00ff00ff) |
+ (((laneMsw << 24) | (laneMsw >>> 8)) & 0xff00ff00)
+ );
+ laneLsw = (
+ (((laneLsw << 8) | (laneLsw >>> 24)) & 0x00ff00ff) |
+ (((laneLsw << 24) | (laneLsw >>> 8)) & 0xff00ff00)
+ );
+
+ // Squeeze state to retrieve hash
+ hashWords.push(laneLsw);
+ hashWords.push(laneMsw);
+ }
+
+ // Return final computed hash
+ return new WordArray.init(hashWords, outputLengthBytes);
+ },
+
+ clone: function() {
+ var clone = Hasher.clone.call(this);
+
+ var state = clone._state = this._state.slice(0);
+ for (var i = 0; i < 25; i++) {
+ state[i] = state[i].clone();
+ }
+
+ return clone;
+ }
+ });
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.SHA3('message');
+ * var hash = CryptoJS.SHA3(wordArray);
+ */
+ C.SHA3 = Hasher._createHelper(SHA3);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacSHA3(message, key);
+ */
+ C.HmacSHA3 = Hasher._createHmacHelper(SHA3);
+ }(Math));
+
+
+ /** @preserve
+ (c) 2012 by Cédric Mesnil. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+ - Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+ - Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+ (function(Math) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var Hasher = C_lib.Hasher;
+ var C_algo = C.algo;
+
+ // Constants table
+ var _zl = WordArray.create([
+ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
+ 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8,
+ 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12,
+ 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2,
+ 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13
+ ]);
+ var _zr = WordArray.create([
+ 5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12,
+ 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2,
+ 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13,
+ 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14,
+ 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11
+ ]);
+ var _sl = WordArray.create([
+ 11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8,
+ 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12,
+ 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5,
+ 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12,
+ 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6
+ ]);
+ var _sr = WordArray.create([
+ 8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6,
+ 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11,
+ 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5,
+ 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8,
+ 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11
+ ]);
+
+ var _hl = WordArray.create([0x00000000, 0x5A827999, 0x6ED9EBA1, 0x8F1BBCDC, 0xA953FD4E]);
+ var _hr = WordArray.create([0x50A28BE6, 0x5C4DD124, 0x6D703EF3, 0x7A6D76E9, 0x00000000]);
+
+ /**
+ * RIPEMD160 hash algorithm.
+ */
+ var RIPEMD160 = C_algo.RIPEMD160 = Hasher.extend({
+ _doReset: function() {
+ this._hash = WordArray.create([0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476, 0xC3D2E1F0]);
+ },
+
+ _doProcessBlock: function(M, offset) {
+
+ // Swap endian
+ for (var i = 0; i < 16; i++) {
+ // Shortcuts
+ var offset_i = offset + i;
+ var M_offset_i = M[offset_i];
+
+ // Swap
+ M[offset_i] = (
+ (((M_offset_i << 8) | (M_offset_i >>> 24)) & 0x00ff00ff) |
+ (((M_offset_i << 24) | (M_offset_i >>> 8)) & 0xff00ff00)
+ );
+ }
+ // Shortcut
+ var H = this._hash.words;
+ var hl = _hl.words;
+ var hr = _hr.words;
+ var zl = _zl.words;
+ var zr = _zr.words;
+ var sl = _sl.words;
+ var sr = _sr.words;
+
+ // Working variables
+ var al, bl, cl, dl, el;
+ var ar, br, cr, dr, er;
+
+ ar = al = H[0];
+ br = bl = H[1];
+ cr = cl = H[2];
+ dr = dl = H[3];
+ er = el = H[4];
+ // Computation
+ var t;
+ for (var i = 0; i < 80; i += 1) {
+ t = (al + M[offset + zl[i]]) | 0;
+ if (i < 16) {
+ t += f1(bl, cl, dl) + hl[0];
+ } else if (i < 32) {
+ t += f2(bl, cl, dl) + hl[1];
+ } else if (i < 48) {
+ t += f3(bl, cl, dl) + hl[2];
+ } else if (i < 64) {
+ t += f4(bl, cl, dl) + hl[3];
+ } else { // if (i<80) {
+ t += f5(bl, cl, dl) + hl[4];
+ }
+ t = t | 0;
+ t = rotl(t, sl[i]);
+ t = (t + el) | 0;
+ al = el;
+ el = dl;
+ dl = rotl(cl, 10);
+ cl = bl;
+ bl = t;
+
+ t = (ar + M[offset + zr[i]]) | 0;
+ if (i < 16) {
+ t += f5(br, cr, dr) + hr[0];
+ } else if (i < 32) {
+ t += f4(br, cr, dr) + hr[1];
+ } else if (i < 48) {
+ t += f3(br, cr, dr) + hr[2];
+ } else if (i < 64) {
+ t += f2(br, cr, dr) + hr[3];
+ } else { // if (i<80) {
+ t += f1(br, cr, dr) + hr[4];
+ }
+ t = t | 0;
+ t = rotl(t, sr[i]);
+ t = (t + er) | 0;
+ ar = er;
+ er = dr;
+ dr = rotl(cr, 10);
+ cr = br;
+ br = t;
+ }
+ // Intermediate hash value
+ t = (H[1] + cl + dr) | 0;
+ H[1] = (H[2] + dl + er) | 0;
+ H[2] = (H[3] + el + ar) | 0;
+ H[3] = (H[4] + al + br) | 0;
+ H[4] = (H[0] + bl + cr) | 0;
+ H[0] = t;
+ },
+
+ _doFinalize: function() {
+ // Shortcuts
+ var data = this._data;
+ var dataWords = data.words;
+
+ var nBitsTotal = this._nDataBytes * 8;
+ var nBitsLeft = data.sigBytes * 8;
+
+ // Add padding
+ dataWords[nBitsLeft >>> 5] |= 0x80 << (24 - nBitsLeft % 32);
+ dataWords[(((nBitsLeft + 64) >>> 9) << 4) + 14] = (
+ (((nBitsTotal << 8) | (nBitsTotal >>> 24)) & 0x00ff00ff) |
+ (((nBitsTotal << 24) | (nBitsTotal >>> 8)) & 0xff00ff00)
+ );
+ data.sigBytes = (dataWords.length + 1) * 4;
+
+ // Hash final blocks
+ this._process();
+
+ // Shortcuts
+ var hash = this._hash;
+ var H = hash.words;
+
+ // Swap endian
+ for (var i = 0; i < 5; i++) {
+ // Shortcut
+ var H_i = H[i];
+
+ // Swap
+ H[i] = (((H_i << 8) | (H_i >>> 24)) & 0x00ff00ff) |
+ (((H_i << 24) | (H_i >>> 8)) & 0xff00ff00);
+ }
+
+ // Return final computed hash
+ return hash;
+ },
+
+ clone: function() {
+ var clone = Hasher.clone.call(this);
+ clone._hash = this._hash.clone();
+
+ return clone;
+ }
+ });
+
+
+ function f1(x, y, z) {
+ return ((x) ^ (y) ^ (z));
+
+ }
+
+ function f2(x, y, z) {
+ return (((x) & (y)) | ((~x) & (z)));
+ }
+
+ function f3(x, y, z) {
+ return (((x) | (~(y))) ^ (z));
+ }
+
+ function f4(x, y, z) {
+ return (((x) & (z)) | ((y) & (~(z))));
+ }
+
+ function f5(x, y, z) {
+ return ((x) ^ ((y) | (~(z))));
+
+ }
+
+ function rotl(x, n) {
+ return (x << n) | (x >>> (32 - n));
+ }
+
+
+ /**
+ * Shortcut function to the hasher's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ *
+ * @return {WordArray} The hash.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hash = CryptoJS.RIPEMD160('message');
+ * var hash = CryptoJS.RIPEMD160(wordArray);
+ */
+ C.RIPEMD160 = Hasher._createHelper(RIPEMD160);
+
+ /**
+ * Shortcut function to the HMAC's object interface.
+ *
+ * @param {WordArray|string} message The message to hash.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hmac = CryptoJS.HmacRIPEMD160(message, key);
+ */
+ C.HmacRIPEMD160 = Hasher._createHmacHelper(RIPEMD160);
+ }(Math));
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var C_enc = C.enc;
+ var Utf8 = C_enc.Utf8;
+ var C_algo = C.algo;
+
+ /**
+ * HMAC algorithm.
+ */
+ var HMAC = C_algo.HMAC = Base.extend({
+ /**
+ * Initializes a newly created HMAC.
+ *
+ * @param {Hasher} hasher The hash algorithm to use.
+ * @param {WordArray|string} key The secret key.
+ *
+ * @example
+ *
+ * var hmacHasher = CryptoJS.algo.HMAC.create(CryptoJS.algo.SHA256, key);
+ */
+ init: function(hasher, key) {
+ // Init hasher
+ hasher = this._hasher = new hasher.init();
+
+ // Convert string to WordArray, else assume WordArray already
+ if (typeof key == 'string') {
+ key = Utf8.parse(key);
+ }
+
+ // Shortcuts
+ var hasherBlockSize = hasher.blockSize;
+ var hasherBlockSizeBytes = hasherBlockSize * 4;
+
+ // Allow arbitrary length keys
+ if (key.sigBytes > hasherBlockSizeBytes) {
+ key = hasher.finalize(key);
+ }
+
+ // Clamp excess bits
+ key.clamp();
+
+ // Clone key for inner and outer pads
+ var oKey = this._oKey = key.clone();
+ var iKey = this._iKey = key.clone();
+
+ // Shortcuts
+ var oKeyWords = oKey.words;
+ var iKeyWords = iKey.words;
+
+ // XOR keys with pad constants
+ for (var i = 0; i < hasherBlockSize; i++) {
+ oKeyWords[i] ^= 0x5c5c5c5c;
+ iKeyWords[i] ^= 0x36363636;
+ }
+ oKey.sigBytes = iKey.sigBytes = hasherBlockSizeBytes;
+
+ // Set initial values
+ this.reset();
+ },
+
+ /**
+ * Resets this HMAC to its initial state.
+ *
+ * @example
+ *
+ * hmacHasher.reset();
+ */
+ reset: function() {
+ // Shortcut
+ var hasher = this._hasher;
+
+ // Reset
+ hasher.reset();
+ hasher.update(this._iKey);
+ },
+
+ /**
+ * Updates this HMAC with a message.
+ *
+ * @param {WordArray|string} messageUpdate The message to append.
+ *
+ * @return {HMAC} This HMAC instance.
+ *
+ * @example
+ *
+ * hmacHasher.update('message');
+ * hmacHasher.update(wordArray);
+ */
+ update: function(messageUpdate) {
+ this._hasher.update(messageUpdate);
+
+ // Chainable
+ return this;
+ },
+
+ /**
+ * Finalizes the HMAC computation.
+ * Note that the finalize operation is effectively a destructive, read-once operation.
+ *
+ * @param {WordArray|string} messageUpdate (Optional) A final message update.
+ *
+ * @return {WordArray} The HMAC.
+ *
+ * @example
+ *
+ * var hmac = hmacHasher.finalize();
+ * var hmac = hmacHasher.finalize('message');
+ * var hmac = hmacHasher.finalize(wordArray);
+ */
+ finalize: function(messageUpdate) {
+ // Shortcut
+ var hasher = this._hasher;
+
+ // Compute HMAC
+ var innerHash = hasher.finalize(messageUpdate);
+ hasher.reset();
+ var hmac = hasher.finalize(this._oKey.clone().concat(innerHash));
+
+ return hmac;
+ }
+ });
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var WordArray = C_lib.WordArray;
+ var C_algo = C.algo;
+ var SHA1 = C_algo.SHA1;
+ var HMAC = C_algo.HMAC;
+
+ /**
+ * Password-Based Key Derivation Function 2 algorithm.
+ */
+ var PBKDF2 = C_algo.PBKDF2 = Base.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
+ * @property {Hasher} hasher The hasher to use. Default: SHA1
+ * @property {number} iterations The number of iterations to perform. Default: 1
+ */
+ cfg: Base.extend({
+ keySize: 128 / 32,
+ hasher: SHA1,
+ iterations: 1
+ }),
+
+ /**
+ * Initializes a newly created key derivation function.
+ *
+ * @param {Object} cfg (Optional) The configuration options to use for the derivation.
+ *
+ * @example
+ *
+ * var kdf = CryptoJS.algo.PBKDF2.create();
+ * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8 });
+ * var kdf = CryptoJS.algo.PBKDF2.create({ keySize: 8, iterations: 1000 });
+ */
+ init: function(cfg) {
+ this.cfg = this.cfg.extend(cfg);
+ },
+
+ /**
+ * Computes the Password-Based Key Derivation Function 2.
+ *
+ * @param {WordArray|string} password The password.
+ * @param {WordArray|string} salt A salt.
+ *
+ * @return {WordArray} The derived key.
+ *
+ * @example
+ *
+ * var key = kdf.compute(password, salt);
+ */
+ compute: function(password, salt) {
+ // Shortcut
+ var cfg = this.cfg;
+
+ // Init HMAC
+ var hmac = HMAC.create(cfg.hasher, password);
+
+ // Initial values
+ var derivedKey = WordArray.create();
+ var blockIndex = WordArray.create([0x00000001]);
+
+ // Shortcuts
+ var derivedKeyWords = derivedKey.words;
+ var blockIndexWords = blockIndex.words;
+ var keySize = cfg.keySize;
+ var iterations = cfg.iterations;
+
+ // Generate key
+ while (derivedKeyWords.length < keySize) {
+ var block = hmac.update(salt).finalize(blockIndex);
+ hmac.reset();
+
+ // Shortcuts
+ var blockWords = block.words;
+ var blockWordsLength = blockWords.length;
+
+ // Iterations
+ var intermediate = block;
+ for (var i = 1; i < iterations; i++) {
+ intermediate = hmac.finalize(intermediate);
+ hmac.reset();
+
+ // Shortcut
+ var intermediateWords = intermediate.words;
+
+ // XOR intermediate with block
+ for (var j = 0; j < blockWordsLength; j++) {
+ blockWords[j] ^= intermediateWords[j];
+ }
+ }
+
+ derivedKey.concat(block);
+ blockIndexWords[0]++;
+ }
+ derivedKey.sigBytes = keySize * 4;
+
+ return derivedKey;
+ }
+ });
+
+ /**
+ * Computes the Password-Based Key Derivation Function 2.
+ *
+ * @param {WordArray|string} password The password.
+ * @param {WordArray|string} salt A salt.
+ * @param {Object} cfg (Optional) The configuration options to use for this computation.
+ *
+ * @return {WordArray} The derived key.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var key = CryptoJS.PBKDF2(password, salt);
+ * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8 });
+ * var key = CryptoJS.PBKDF2(password, salt, { keySize: 8, iterations: 1000 });
+ */
+ C.PBKDF2 = function(password, salt, cfg) {
+ return PBKDF2.create(cfg).compute(password, salt);
+ };
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var WordArray = C_lib.WordArray;
+ var C_algo = C.algo;
+ var MD5 = C_algo.MD5;
+
+ /**
+ * This key derivation function is meant to conform with EVP_BytesToKey.
+ * www.openssl.org/docs/crypto/EVP_BytesToKey.html
+ */
+ var EvpKDF = C_algo.EvpKDF = Base.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {number} keySize The key size in words to generate. Default: 4 (128 bits)
+ * @property {Hasher} hasher The hash algorithm to use. Default: MD5
+ * @property {number} iterations The number of iterations to perform. Default: 1
+ */
+ cfg: Base.extend({
+ keySize: 128 / 32,
+ hasher: MD5,
+ iterations: 1
+ }),
+
+ /**
+ * Initializes a newly created key derivation function.
+ *
+ * @param {Object} cfg (Optional) The configuration options to use for the derivation.
+ *
+ * @example
+ *
+ * var kdf = CryptoJS.algo.EvpKDF.create();
+ * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8 });
+ * var kdf = CryptoJS.algo.EvpKDF.create({ keySize: 8, iterations: 1000 });
+ */
+ init: function(cfg) {
+ this.cfg = this.cfg.extend(cfg);
+ },
+
+ /**
+ * Derives a key from a password.
+ *
+ * @param {WordArray|string} password The password.
+ * @param {WordArray|string} salt A salt.
+ *
+ * @return {WordArray} The derived key.
+ *
+ * @example
+ *
+ * var key = kdf.compute(password, salt);
+ */
+ compute: function(password, salt) {
+ var block;
+
+ // Shortcut
+ var cfg = this.cfg;
+
+ // Init hasher
+ var hasher = cfg.hasher.create();
+
+ // Initial values
+ var derivedKey = WordArray.create();
+
+ // Shortcuts
+ var derivedKeyWords = derivedKey.words;
+ var keySize = cfg.keySize;
+ var iterations = cfg.iterations;
+
+ // Generate key
+ while (derivedKeyWords.length < keySize) {
+ if (block) {
+ hasher.update(block);
+ }
+ block = hasher.update(password).finalize(salt);
+ hasher.reset();
+
+ // Iterations
+ for (var i = 1; i < iterations; i++) {
+ block = hasher.finalize(block);
+ hasher.reset();
+ }
+
+ derivedKey.concat(block);
+ }
+ derivedKey.sigBytes = keySize * 4;
+
+ return derivedKey;
+ }
+ });
+
+ /**
+ * Derives a key from a password.
+ *
+ * @param {WordArray|string} password The password.
+ * @param {WordArray|string} salt A salt.
+ * @param {Object} cfg (Optional) The configuration options to use for this computation.
+ *
+ * @return {WordArray} The derived key.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var key = CryptoJS.EvpKDF(password, salt);
+ * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8 });
+ * var key = CryptoJS.EvpKDF(password, salt, { keySize: 8, iterations: 1000 });
+ */
+ C.EvpKDF = function(password, salt, cfg) {
+ return EvpKDF.create(cfg).compute(password, salt);
+ };
+ }());
+
+
+ /**
+ * Cipher core components.
+ */
+ CryptoJS.lib.Cipher || (function(undefined) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var Base = C_lib.Base;
+ var WordArray = C_lib.WordArray;
+ var BufferedBlockAlgorithm = C_lib.BufferedBlockAlgorithm;
+ var C_enc = C.enc;
+ var Utf8 = C_enc.Utf8;
+ var Base64 = C_enc.Base64;
+ var C_algo = C.algo;
+ var EvpKDF = C_algo.EvpKDF;
+
+ /**
+ * Abstract base cipher template.
+ *
+ * @property {number} keySize This cipher's key size. Default: 4 (128 bits)
+ * @property {number} ivSize This cipher's IV size. Default: 4 (128 bits)
+ * @property {number} _ENC_XFORM_MODE A constant representing encryption mode.
+ * @property {number} _DEC_XFORM_MODE A constant representing decryption mode.
+ */
+ var Cipher = C_lib.Cipher = BufferedBlockAlgorithm.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {WordArray} iv The IV to use for this operation.
+ */
+ cfg: Base.extend(),
+
+ /**
+ * Creates this cipher in encryption mode.
+ *
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {Cipher} A cipher instance.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var cipher = CryptoJS.algo.AES.createEncryptor(keyWordArray, { iv: ivWordArray });
+ */
+ createEncryptor: function(key, cfg) {
+ return this.create(this._ENC_XFORM_MODE, key, cfg);
+ },
+
+ /**
+ * Creates this cipher in decryption mode.
+ *
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {Cipher} A cipher instance.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var cipher = CryptoJS.algo.AES.createDecryptor(keyWordArray, { iv: ivWordArray });
+ */
+ createDecryptor: function(key, cfg) {
+ return this.create(this._DEC_XFORM_MODE, key, cfg);
+ },
+
+ /**
+ * Initializes a newly created cipher.
+ *
+ * @param {number} xformMode Either the encryption or decryption transormation mode constant.
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @example
+ *
+ * var cipher = CryptoJS.algo.AES.create(CryptoJS.algo.AES._ENC_XFORM_MODE, keyWordArray, { iv: ivWordArray });
+ */
+ init: function(xformMode, key, cfg) {
+ // Apply config defaults
+ this.cfg = this.cfg.extend(cfg);
+
+ // Store transform mode and key
+ this._xformMode = xformMode;
+ this._key = key;
+
+ // Set initial values
+ this.reset();
+ },
+
+ /**
+ * Resets this cipher to its initial state.
+ *
+ * @example
+ *
+ * cipher.reset();
+ */
+ reset: function() {
+ // Reset data buffer
+ BufferedBlockAlgorithm.reset.call(this);
+
+ // Perform concrete-cipher logic
+ this._doReset();
+ },
+
+ /**
+ * Adds data to be encrypted or decrypted.
+ *
+ * @param {WordArray|string} dataUpdate The data to encrypt or decrypt.
+ *
+ * @return {WordArray} The data after processing.
+ *
+ * @example
+ *
+ * var encrypted = cipher.process('data');
+ * var encrypted = cipher.process(wordArray);
+ */
+ process: function(dataUpdate) {
+ // Append
+ this._append(dataUpdate);
+
+ // Process available blocks
+ return this._process();
+ },
+
+ /**
+ * Finalizes the encryption or decryption process.
+ * Note that the finalize operation is effectively a destructive, read-once operation.
+ *
+ * @param {WordArray|string} dataUpdate The final data to encrypt or decrypt.
+ *
+ * @return {WordArray} The data after final processing.
+ *
+ * @example
+ *
+ * var encrypted = cipher.finalize();
+ * var encrypted = cipher.finalize('data');
+ * var encrypted = cipher.finalize(wordArray);
+ */
+ finalize: function(dataUpdate) {
+ // Final data update
+ if (dataUpdate) {
+ this._append(dataUpdate);
+ }
+
+ // Perform concrete-cipher logic
+ var finalProcessedData = this._doFinalize();
+
+ return finalProcessedData;
+ },
+
+ keySize: 128 / 32,
+
+ ivSize: 128 / 32,
+
+ _ENC_XFORM_MODE: 1,
+
+ _DEC_XFORM_MODE: 2,
+
+ /**
+ * Creates shortcut functions to a cipher's object interface.
+ *
+ * @param {Cipher} cipher The cipher to create a helper for.
+ *
+ * @return {Object} An object with encrypt and decrypt shortcut functions.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var AES = CryptoJS.lib.Cipher._createHelper(CryptoJS.algo.AES);
+ */
+ _createHelper: (function() {
+ function selectCipherStrategy(key) {
+ if (typeof key == 'string') {
+ return PasswordBasedCipher;
+ } else {
+ return SerializableCipher;
+ }
+ }
+
+ return function(cipher) {
+ return {
+ encrypt: function(message, key, cfg) {
+ return selectCipherStrategy(key).encrypt(cipher, message, key, cfg);
+ },
+
+ decrypt: function(ciphertext, key, cfg) {
+ return selectCipherStrategy(key).decrypt(cipher, ciphertext, key, cfg);
+ }
+ };
+ };
+ }())
+ });
+
+ /**
+ * Abstract base stream cipher template.
+ *
+ * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 1 (32 bits)
+ */
+ var StreamCipher = C_lib.StreamCipher = Cipher.extend({
+ _doFinalize: function() {
+ // Process partial blocks
+ var finalProcessedBlocks = this._process(!!'flush');
+
+ return finalProcessedBlocks;
+ },
+
+ blockSize: 1
+ });
+
+ /**
+ * Mode namespace.
+ */
+ var C_mode = C.mode = {};
+
+ /**
+ * Abstract base block cipher mode template.
+ */
+ var BlockCipherMode = C_lib.BlockCipherMode = Base.extend({
+ /**
+ * Creates this mode for encryption.
+ *
+ * @param {Cipher} cipher A block cipher instance.
+ * @param {Array} iv The IV words.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var mode = CryptoJS.mode.CBC.createEncryptor(cipher, iv.words);
+ */
+ createEncryptor: function(cipher, iv) {
+ return this.Encryptor.create(cipher, iv);
+ },
+
+ /**
+ * Creates this mode for decryption.
+ *
+ * @param {Cipher} cipher A block cipher instance.
+ * @param {Array} iv The IV words.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var mode = CryptoJS.mode.CBC.createDecryptor(cipher, iv.words);
+ */
+ createDecryptor: function(cipher, iv) {
+ return this.Decryptor.create(cipher, iv);
+ },
+
+ /**
+ * Initializes a newly created mode.
+ *
+ * @param {Cipher} cipher A block cipher instance.
+ * @param {Array} iv The IV words.
+ *
+ * @example
+ *
+ * var mode = CryptoJS.mode.CBC.Encryptor.create(cipher, iv.words);
+ */
+ init: function(cipher, iv) {
+ this._cipher = cipher;
+ this._iv = iv;
+ }
+ });
+
+ /**
+ * Cipher Block Chaining mode.
+ */
+ var CBC = C_mode.CBC = (function() {
+ /**
+ * Abstract base CBC mode.
+ */
+ var CBC = BlockCipherMode.extend();
+
+ /**
+ * CBC encryptor.
+ */
+ CBC.Encryptor = CBC.extend({
+ /**
+ * Processes the data block at offset.
+ *
+ * @param {Array} words The data words to operate on.
+ * @param {number} offset The offset where the block starts.
+ *
+ * @example
+ *
+ * mode.processBlock(data.words, offset);
+ */
+ processBlock: function(words, offset) {
+ // Shortcuts
+ var cipher = this._cipher;
+ var blockSize = cipher.blockSize;
+
+ // XOR and encrypt
+ xorBlock.call(this, words, offset, blockSize);
+ cipher.encryptBlock(words, offset);
+
+ // Remember this block to use with next block
+ this._prevBlock = words.slice(offset, offset + blockSize);
+ }
+ });
+
+ /**
+ * CBC decryptor.
+ */
+ CBC.Decryptor = CBC.extend({
+ /**
+ * Processes the data block at offset.
+ *
+ * @param {Array} words The data words to operate on.
+ * @param {number} offset The offset where the block starts.
+ *
+ * @example
+ *
+ * mode.processBlock(data.words, offset);
+ */
+ processBlock: function(words, offset) {
+ // Shortcuts
+ var cipher = this._cipher;
+ var blockSize = cipher.blockSize;
+
+ // Remember this block to use with next block
+ var thisBlock = words.slice(offset, offset + blockSize);
+
+ // Decrypt and XOR
+ cipher.decryptBlock(words, offset);
+ xorBlock.call(this, words, offset, blockSize);
+
+ // This block becomes the previous block
+ this._prevBlock = thisBlock;
+ }
+ });
+
+ function xorBlock(words, offset, blockSize) {
+ var block;
+
+ // Shortcut
+ var iv = this._iv;
+
+ // Choose mixing block
+ if (iv) {
+ block = iv;
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ } else {
+ block = this._prevBlock;
+ }
+
+ // XOR blocks
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= block[i];
+ }
+ }
+
+ return CBC;
+ }());
+
+ /**
+ * Padding namespace.
+ */
+ var C_pad = C.pad = {};
+
+ /**
+ * PKCS #5/7 padding strategy.
+ */
+ var Pkcs7 = C_pad.Pkcs7 = {
+ /**
+ * Pads data using the algorithm defined in PKCS #5/7.
+ *
+ * @param {WordArray} data The data to pad.
+ * @param {number} blockSize The multiple that the data should be padded to.
+ *
+ * @static
+ *
+ * @example
+ *
+ * CryptoJS.pad.Pkcs7.pad(wordArray, 4);
+ */
+ pad: function(data, blockSize) {
+ // Shortcut
+ var blockSizeBytes = blockSize * 4;
+
+ // Count padding bytes
+ var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
+
+ // Create padding word
+ var paddingWord = (nPaddingBytes << 24) | (nPaddingBytes << 16) | (nPaddingBytes << 8) | nPaddingBytes;
+
+ // Create padding
+ var paddingWords = [];
+ for (var i = 0; i < nPaddingBytes; i += 4) {
+ paddingWords.push(paddingWord);
+ }
+ var padding = WordArray.create(paddingWords, nPaddingBytes);
+
+ // Add padding
+ data.concat(padding);
+ },
+
+ /**
+ * Unpads data that had been padded using the algorithm defined in PKCS #5/7.
+ *
+ * @param {WordArray} data The data to unpad.
+ *
+ * @static
+ *
+ * @example
+ *
+ * CryptoJS.pad.Pkcs7.unpad(wordArray);
+ */
+ unpad: function(data) {
+ // Get number of padding bytes from last byte
+ var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
+
+ // Remove padding
+ data.sigBytes -= nPaddingBytes;
+ }
+ };
+
+ /**
+ * Abstract base block cipher template.
+ *
+ * @property {number} blockSize The number of 32-bit words this cipher operates on. Default: 4 (128 bits)
+ */
+ var BlockCipher = C_lib.BlockCipher = Cipher.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {Mode} mode The block mode to use. Default: CBC
+ * @property {Padding} padding The padding strategy to use. Default: Pkcs7
+ */
+ cfg: Cipher.cfg.extend({
+ mode: CBC,
+ padding: Pkcs7
+ }),
+
+ reset: function() {
+ var modeCreator;
+
+ // Reset cipher
+ Cipher.reset.call(this);
+
+ // Shortcuts
+ var cfg = this.cfg;
+ var iv = cfg.iv;
+ var mode = cfg.mode;
+
+ // Reset block mode
+ if (this._xformMode == this._ENC_XFORM_MODE) {
+ modeCreator = mode.createEncryptor;
+ } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {
+ modeCreator = mode.createDecryptor;
+ // Keep at least one block in the buffer for unpadding
+ this._minBufferSize = 1;
+ }
+
+ if (this._mode && this._mode.__creator == modeCreator) {
+ this._mode.init(this, iv && iv.words);
+ } else {
+ this._mode = modeCreator.call(mode, this, iv && iv.words);
+ this._mode.__creator = modeCreator;
+ }
+ },
+
+ _doProcessBlock: function(words, offset) {
+ this._mode.processBlock(words, offset);
+ },
+
+ _doFinalize: function() {
+ var finalProcessedBlocks;
+
+ // Shortcut
+ var padding = this.cfg.padding;
+
+ // Finalize
+ if (this._xformMode == this._ENC_XFORM_MODE) {
+ // Pad data
+ padding.pad(this._data, this.blockSize);
+
+ // Process final blocks
+ finalProcessedBlocks = this._process(!!'flush');
+ } else /* if (this._xformMode == this._DEC_XFORM_MODE) */ {
+ // Process final blocks
+ finalProcessedBlocks = this._process(!!'flush');
+
+ // Unpad data
+ padding.unpad(finalProcessedBlocks);
+ }
+
+ return finalProcessedBlocks;
+ },
+
+ blockSize: 128 / 32
+ });
+
+ /**
+ * A collection of cipher parameters.
+ *
+ * @property {WordArray} ciphertext The raw ciphertext.
+ * @property {WordArray} key The key to this ciphertext.
+ * @property {WordArray} iv The IV used in the ciphering operation.
+ * @property {WordArray} salt The salt used with a key derivation function.
+ * @property {Cipher} algorithm The cipher algorithm.
+ * @property {Mode} mode The block mode used in the ciphering operation.
+ * @property {Padding} padding The padding scheme used in the ciphering operation.
+ * @property {number} blockSize The block size of the cipher.
+ * @property {Format} formatter The default formatting strategy to convert this cipher params object to a string.
+ */
+ var CipherParams = C_lib.CipherParams = Base.extend({
+ /**
+ * Initializes a newly created cipher params object.
+ *
+ * @param {Object} cipherParams An object with any of the possible cipher parameters.
+ *
+ * @example
+ *
+ * var cipherParams = CryptoJS.lib.CipherParams.create({
+ * ciphertext: ciphertextWordArray,
+ * key: keyWordArray,
+ * iv: ivWordArray,
+ * salt: saltWordArray,
+ * algorithm: CryptoJS.algo.AES,
+ * mode: CryptoJS.mode.CBC,
+ * padding: CryptoJS.pad.PKCS7,
+ * blockSize: 4,
+ * formatter: CryptoJS.format.OpenSSL
+ * });
+ */
+ init: function(cipherParams) {
+ this.mixIn(cipherParams);
+ },
+
+ /**
+ * Converts this cipher params object to a string.
+ *
+ * @param {Format} formatter (Optional) The formatting strategy to use.
+ *
+ * @return {string} The stringified cipher params.
+ *
+ * @throws Error If neither the formatter nor the default formatter is set.
+ *
+ * @example
+ *
+ * var string = cipherParams + '';
+ * var string = cipherParams.toString();
+ * var string = cipherParams.toString(CryptoJS.format.OpenSSL);
+ */
+ toString: function(formatter) {
+ return (formatter || this.formatter).stringify(this);
+ }
+ });
+
+ /**
+ * Format namespace.
+ */
+ var C_format = C.format = {};
+
+ /**
+ * OpenSSL formatting strategy.
+ */
+ var OpenSSLFormatter = C_format.OpenSSL = {
+ /**
+ * Converts a cipher params object to an OpenSSL-compatible string.
+ *
+ * @param {CipherParams} cipherParams The cipher params object.
+ *
+ * @return {string} The OpenSSL-compatible string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var openSSLString = CryptoJS.format.OpenSSL.stringify(cipherParams);
+ */
+ stringify: function(cipherParams) {
+ var wordArray;
+
+ // Shortcuts
+ var ciphertext = cipherParams.ciphertext;
+ var salt = cipherParams.salt;
+
+ // Format
+ if (salt) {
+ wordArray = WordArray.create([0x53616c74, 0x65645f5f]).concat(salt).concat(ciphertext);
+ } else {
+ wordArray = ciphertext;
+ }
+
+ return wordArray.toString(Base64);
+ },
+
+ /**
+ * Converts an OpenSSL-compatible string to a cipher params object.
+ *
+ * @param {string} openSSLStr The OpenSSL-compatible string.
+ *
+ * @return {CipherParams} The cipher params object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var cipherParams = CryptoJS.format.OpenSSL.parse(openSSLString);
+ */
+ parse: function(openSSLStr) {
+ var salt;
+
+ // Parse base64
+ var ciphertext = Base64.parse(openSSLStr);
+
+ // Shortcut
+ var ciphertextWords = ciphertext.words;
+
+ // Test for salt
+ if (ciphertextWords[0] == 0x53616c74 && ciphertextWords[1] == 0x65645f5f) {
+ // Extract salt
+ salt = WordArray.create(ciphertextWords.slice(2, 4));
+
+ // Remove salt from ciphertext
+ ciphertextWords.splice(0, 4);
+ ciphertext.sigBytes -= 16;
+ }
+
+ return CipherParams.create({
+ ciphertext: ciphertext,
+ salt: salt
+ });
+ }
+ };
+
+ /**
+ * A cipher wrapper that returns ciphertext as a serializable cipher params object.
+ */
+ var SerializableCipher = C_lib.SerializableCipher = Base.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {Formatter} format The formatting strategy to convert cipher param objects to and from a string. Default: OpenSSL
+ */
+ cfg: Base.extend({
+ format: OpenSSLFormatter
+ }),
+
+ /**
+ * Encrypts a message.
+ *
+ * @param {Cipher} cipher The cipher algorithm to use.
+ * @param {WordArray|string} message The message to encrypt.
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {CipherParams} A cipher params object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key);
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv });
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher.encrypt(CryptoJS.algo.AES, message, key, { iv: iv, format: CryptoJS.format.OpenSSL });
+ */
+ encrypt: function(cipher, message, key, cfg) {
+ // Apply config defaults
+ cfg = this.cfg.extend(cfg);
+
+ // Encrypt
+ var encryptor = cipher.createEncryptor(key, cfg);
+ var ciphertext = encryptor.finalize(message);
+
+ // Shortcut
+ var cipherCfg = encryptor.cfg;
+
+ // Create and return serializable cipher params
+ return CipherParams.create({
+ ciphertext: ciphertext,
+ key: key,
+ iv: cipherCfg.iv,
+ algorithm: cipher,
+ mode: cipherCfg.mode,
+ padding: cipherCfg.padding,
+ blockSize: cipher.blockSize,
+ formatter: cfg.format
+ });
+ },
+
+ /**
+ * Decrypts serialized ciphertext.
+ *
+ * @param {Cipher} cipher The cipher algorithm to use.
+ * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
+ * @param {WordArray} key The key.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {WordArray} The plaintext.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, key, { iv: iv, format: CryptoJS.format.OpenSSL });
+ * var plaintext = CryptoJS.lib.SerializableCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, key, { iv: iv, format: CryptoJS.format.OpenSSL });
+ */
+ decrypt: function(cipher, ciphertext, key, cfg) {
+ // Apply config defaults
+ cfg = this.cfg.extend(cfg);
+
+ // Convert string to CipherParams
+ ciphertext = this._parse(ciphertext, cfg.format);
+
+ // Decrypt
+ var plaintext = cipher.createDecryptor(key, cfg).finalize(ciphertext.ciphertext);
+
+ return plaintext;
+ },
+
+ /**
+ * Converts serialized ciphertext to CipherParams,
+ * else assumed CipherParams already and returns ciphertext unchanged.
+ *
+ * @param {CipherParams|string} ciphertext The ciphertext.
+ * @param {Formatter} format The formatting strategy to use to parse serialized ciphertext.
+ *
+ * @return {CipherParams} The unserialized ciphertext.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var ciphertextParams = CryptoJS.lib.SerializableCipher._parse(ciphertextStringOrParams, format);
+ */
+ _parse: function(ciphertext, format) {
+ if (typeof ciphertext == 'string') {
+ return format.parse(ciphertext, this);
+ } else {
+ return ciphertext;
+ }
+ }
+ });
+
+ /**
+ * Key derivation function namespace.
+ */
+ var C_kdf = C.kdf = {};
+
+ /**
+ * OpenSSL key derivation function.
+ */
+ var OpenSSLKdf = C_kdf.OpenSSL = {
+ /**
+ * Derives a key and IV from a password.
+ *
+ * @param {string} password The password to derive from.
+ * @param {number} keySize The size in words of the key to generate.
+ * @param {number} ivSize The size in words of the IV to generate.
+ * @param {WordArray|string} salt (Optional) A 64-bit salt to use. If omitted, a salt will be generated randomly.
+ *
+ * @return {CipherParams} A cipher params object with the key, IV, and salt.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32);
+ * var derivedParams = CryptoJS.kdf.OpenSSL.execute('Password', 256/32, 128/32, 'saltsalt');
+ */
+ execute: function(password, keySize, ivSize, salt) {
+ // Generate random salt
+ if (!salt) {
+ salt = WordArray.random(64 / 8);
+ }
+
+ // Derive key and IV
+ var key = EvpKDF.create({
+ keySize: keySize + ivSize
+ }).compute(password, salt);
+
+ // Separate key and IV
+ var iv = WordArray.create(key.words.slice(keySize), ivSize * 4);
+ key.sigBytes = keySize * 4;
+
+ // Return params
+ return CipherParams.create({
+ key: key,
+ iv: iv,
+ salt: salt
+ });
+ }
+ };
+
+ /**
+ * A serializable cipher wrapper that derives the key from a password,
+ * and returns ciphertext as a serializable cipher params object.
+ */
+ var PasswordBasedCipher = C_lib.PasswordBasedCipher = SerializableCipher.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {KDF} kdf The key derivation function to use to generate a key and IV from a password. Default: OpenSSL
+ */
+ cfg: SerializableCipher.cfg.extend({
+ kdf: OpenSSLKdf
+ }),
+
+ /**
+ * Encrypts a message using a password.
+ *
+ * @param {Cipher} cipher The cipher algorithm to use.
+ * @param {WordArray|string} message The message to encrypt.
+ * @param {string} password The password.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {CipherParams} A cipher params object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password');
+ * var ciphertextParams = CryptoJS.lib.PasswordBasedCipher.encrypt(CryptoJS.algo.AES, message, 'password', { format: CryptoJS.format.OpenSSL });
+ */
+ encrypt: function(cipher, message, password, cfg) {
+ // Apply config defaults
+ cfg = this.cfg.extend(cfg);
+
+ // Derive key and other params
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize);
+
+ // Add IV to config
+ cfg.iv = derivedParams.iv;
+
+ // Encrypt
+ var ciphertext = SerializableCipher.encrypt.call(this, cipher, message, derivedParams.key, cfg);
+
+ // Mix in derived params
+ ciphertext.mixIn(derivedParams);
+
+ return ciphertext;
+ },
+
+ /**
+ * Decrypts serialized ciphertext using a password.
+ *
+ * @param {Cipher} cipher The cipher algorithm to use.
+ * @param {CipherParams|string} ciphertext The ciphertext to decrypt.
+ * @param {string} password The password.
+ * @param {Object} cfg (Optional) The configuration options to use for this operation.
+ *
+ * @return {WordArray} The plaintext.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, formattedCiphertext, 'password', { format: CryptoJS.format.OpenSSL });
+ * var plaintext = CryptoJS.lib.PasswordBasedCipher.decrypt(CryptoJS.algo.AES, ciphertextParams, 'password', { format: CryptoJS.format.OpenSSL });
+ */
+ decrypt: function(cipher, ciphertext, password, cfg) {
+ // Apply config defaults
+ cfg = this.cfg.extend(cfg);
+
+ // Convert string to CipherParams
+ ciphertext = this._parse(ciphertext, cfg.format);
+
+ // Derive key and other params
+ var derivedParams = cfg.kdf.execute(password, cipher.keySize, cipher.ivSize, ciphertext.salt);
+
+ // Add IV to config
+ cfg.iv = derivedParams.iv;
+
+ // Decrypt
+ var plaintext = SerializableCipher.decrypt.call(this, cipher, ciphertext, derivedParams.key, cfg);
+
+ return plaintext;
+ }
+ });
+ }());
+
+
+ /**
+ * Cipher Feedback block mode.
+ */
+ CryptoJS.mode.CFB = (function() {
+ var CFB = CryptoJS.lib.BlockCipherMode.extend();
+
+ CFB.Encryptor = CFB.extend({
+ processBlock: function(words, offset) {
+ // Shortcuts
+ var cipher = this._cipher;
+ var blockSize = cipher.blockSize;
+
+ generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
+
+ // Remember this block to use with next block
+ this._prevBlock = words.slice(offset, offset + blockSize);
+ }
+ });
+
+ CFB.Decryptor = CFB.extend({
+ processBlock: function(words, offset) {
+ // Shortcuts
+ var cipher = this._cipher;
+ var blockSize = cipher.blockSize;
+
+ // Remember this block to use with next block
+ var thisBlock = words.slice(offset, offset + blockSize);
+
+ generateKeystreamAndEncrypt.call(this, words, offset, blockSize, cipher);
+
+ // This block becomes the previous block
+ this._prevBlock = thisBlock;
+ }
+ });
+
+ function generateKeystreamAndEncrypt(words, offset, blockSize, cipher) {
+ var keystream;
+
+ // Shortcut
+ var iv = this._iv;
+
+ // Generate keystream
+ if (iv) {
+ keystream = iv.slice(0);
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ } else {
+ keystream = this._prevBlock;
+ }
+ cipher.encryptBlock(keystream, 0);
+
+ // Encrypt
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= keystream[i];
+ }
+ }
+
+ return CFB;
+ }());
+
+
+ /**
+ * Counter block mode.
+ */
+ CryptoJS.mode.CTR = (function() {
+ var CTR = CryptoJS.lib.BlockCipherMode.extend();
+
+ var Encryptor = CTR.Encryptor = CTR.extend({
+ processBlock: function(words, offset) {
+ // Shortcuts
+ var cipher = this._cipher
+ var blockSize = cipher.blockSize;
+ var iv = this._iv;
+ var counter = this._counter;
+
+ // Generate keystream
+ if (iv) {
+ counter = this._counter = iv.slice(0);
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ }
+ var keystream = counter.slice(0);
+ cipher.encryptBlock(keystream, 0);
+
+ // Increment counter
+ counter[blockSize - 1] = (counter[blockSize - 1] + 1) | 0
+
+ // Encrypt
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= keystream[i];
+ }
+ }
+ });
+
+ CTR.Decryptor = Encryptor;
+
+ return CTR;
+ }());
+
+
+ /** @preserve
+ * Counter block mode compatible with Dr Brian Gladman fileenc.c
+ * derived from CryptoJS.mode.CTR
+ * Jan Hruby jhruby.web@gmail.com
+ */
+ CryptoJS.mode.CTRGladman = (function() {
+ var CTRGladman = CryptoJS.lib.BlockCipherMode.extend();
+
+ function incWord(word) {
+ if (((word >> 24) & 0xff) === 0xff) { //overflow
+ var b1 = (word >> 16) & 0xff;
+ var b2 = (word >> 8) & 0xff;
+ var b3 = word & 0xff;
+
+ if (b1 === 0xff) // overflow b1
+ {
+ b1 = 0;
+ if (b2 === 0xff) {
+ b2 = 0;
+ if (b3 === 0xff) {
+ b3 = 0;
+ } else {
+ ++b3;
+ }
+ } else {
+ ++b2;
+ }
+ } else {
+ ++b1;
+ }
+
+ word = 0;
+ word += (b1 << 16);
+ word += (b2 << 8);
+ word += b3;
+ } else {
+ word += (0x01 << 24);
+ }
+ return word;
+ }
+
+ function incCounter(counter) {
+ if ((counter[0] = incWord(counter[0])) === 0) {
+ // encr_data in fileenc.c from Dr Brian Gladman's counts only with DWORD j < 8
+ counter[1] = incWord(counter[1]);
+ }
+ return counter;
+ }
+
+ var Encryptor = CTRGladman.Encryptor = CTRGladman.extend({
+ processBlock: function(words, offset) {
+ // Shortcuts
+ var cipher = this._cipher
+ var blockSize = cipher.blockSize;
+ var iv = this._iv;
+ var counter = this._counter;
+
+ // Generate keystream
+ if (iv) {
+ counter = this._counter = iv.slice(0);
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ }
+
+ incCounter(counter);
+
+ var keystream = counter.slice(0);
+ cipher.encryptBlock(keystream, 0);
+
+ // Encrypt
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= keystream[i];
+ }
+ }
+ });
+
+ CTRGladman.Decryptor = Encryptor;
+
+ return CTRGladman;
+ }());
+
+
+
+
+ /**
+ * Output Feedback block mode.
+ */
+ CryptoJS.mode.OFB = (function() {
+ var OFB = CryptoJS.lib.BlockCipherMode.extend();
+
+ var Encryptor = OFB.Encryptor = OFB.extend({
+ processBlock: function(words, offset) {
+ // Shortcuts
+ var cipher = this._cipher
+ var blockSize = cipher.blockSize;
+ var iv = this._iv;
+ var keystream = this._keystream;
+
+ // Generate keystream
+ if (iv) {
+ keystream = this._keystream = iv.slice(0);
+
+ // Remove IV for subsequent blocks
+ this._iv = undefined;
+ }
+ cipher.encryptBlock(keystream, 0);
+
+ // Encrypt
+ for (var i = 0; i < blockSize; i++) {
+ words[offset + i] ^= keystream[i];
+ }
+ }
+ });
+
+ OFB.Decryptor = Encryptor;
+
+ return OFB;
+ }());
+
+
+ /**
+ * Electronic Codebook block mode.
+ */
+ CryptoJS.mode.ECB = (function() {
+ var ECB = CryptoJS.lib.BlockCipherMode.extend();
+
+ ECB.Encryptor = ECB.extend({
+ processBlock: function(words, offset) {
+ this._cipher.encryptBlock(words, offset);
+ }
+ });
+
+ ECB.Decryptor = ECB.extend({
+ processBlock: function(words, offset) {
+ this._cipher.decryptBlock(words, offset);
+ }
+ });
+
+ return ECB;
+ }());
+
+
+ /**
+ * ANSI X.923 padding strategy.
+ */
+ CryptoJS.pad.AnsiX923 = {
+ pad: function(data, blockSize) {
+ // Shortcuts
+ var dataSigBytes = data.sigBytes;
+ var blockSizeBytes = blockSize * 4;
+
+ // Count padding bytes
+ var nPaddingBytes = blockSizeBytes - dataSigBytes % blockSizeBytes;
+
+ // Compute last byte position
+ var lastBytePos = dataSigBytes + nPaddingBytes - 1;
+
+ // Pad
+ data.clamp();
+ data.words[lastBytePos >>> 2] |= nPaddingBytes << (24 - (lastBytePos % 4) * 8);
+ data.sigBytes += nPaddingBytes;
+ },
+
+ unpad: function(data) {
+ // Get number of padding bytes from last byte
+ var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
+
+ // Remove padding
+ data.sigBytes -= nPaddingBytes;
+ }
+ };
+
+
+ /**
+ * ISO 10126 padding strategy.
+ */
+ CryptoJS.pad.Iso10126 = {
+ pad: function(data, blockSize) {
+ // Shortcut
+ var blockSizeBytes = blockSize * 4;
+
+ // Count padding bytes
+ var nPaddingBytes = blockSizeBytes - data.sigBytes % blockSizeBytes;
+
+ // Pad
+ data.concat(CryptoJS.lib.WordArray.random(nPaddingBytes - 1)).
+ concat(CryptoJS.lib.WordArray.create([nPaddingBytes << 24], 1));
+ },
+
+ unpad: function(data) {
+ // Get number of padding bytes from last byte
+ var nPaddingBytes = data.words[(data.sigBytes - 1) >>> 2] & 0xff;
+
+ // Remove padding
+ data.sigBytes -= nPaddingBytes;
+ }
+ };
+
+
+ /**
+ * ISO/IEC 9797-1 Padding Method 2.
+ */
+ CryptoJS.pad.Iso97971 = {
+ pad: function(data, blockSize) {
+ // Add 0x80 byte
+ data.concat(CryptoJS.lib.WordArray.create([0x80000000], 1));
+
+ // Zero pad the rest
+ CryptoJS.pad.ZeroPadding.pad(data, blockSize);
+ },
+
+ unpad: function(data) {
+ // Remove zero padding
+ CryptoJS.pad.ZeroPadding.unpad(data);
+
+ // Remove one more byte -- the 0x80 byte
+ data.sigBytes--;
+ }
+ };
+
+
+ /**
+ * Zero padding strategy.
+ */
+ CryptoJS.pad.ZeroPadding = {
+ pad: function(data, blockSize) {
+ // Shortcut
+ var blockSizeBytes = blockSize * 4;
+
+ // Pad
+ data.clamp();
+ data.sigBytes += blockSizeBytes - ((data.sigBytes % blockSizeBytes) || blockSizeBytes);
+ },
+
+ unpad: function(data) {
+ // Shortcut
+ var dataWords = data.words;
+
+ // Unpad
+ var i = data.sigBytes - 1;
+ for (var i = data.sigBytes - 1; i >= 0; i--) {
+ if (((dataWords[i >>> 2] >>> (24 - (i % 4) * 8)) & 0xff)) {
+ data.sigBytes = i + 1;
+ break;
+ }
+ }
+ }
+ };
+
+
+ /**
+ * A noop padding strategy.
+ */
+ CryptoJS.pad.NoPadding = {
+ pad: function() {},
+
+ unpad: function() {}
+ };
+
+
+ (function(undefined) {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var CipherParams = C_lib.CipherParams;
+ var C_enc = C.enc;
+ var Hex = C_enc.Hex;
+ var C_format = C.format;
+
+ var HexFormatter = C_format.Hex = {
+ /**
+ * Converts the ciphertext of a cipher params object to a hexadecimally encoded string.
+ *
+ * @param {CipherParams} cipherParams The cipher params object.
+ *
+ * @return {string} The hexadecimally encoded string.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var hexString = CryptoJS.format.Hex.stringify(cipherParams);
+ */
+ stringify: function(cipherParams) {
+ return cipherParams.ciphertext.toString(Hex);
+ },
+
+ /**
+ * Converts a hexadecimally encoded ciphertext string to a cipher params object.
+ *
+ * @param {string} input The hexadecimally encoded string.
+ *
+ * @return {CipherParams} The cipher params object.
+ *
+ * @static
+ *
+ * @example
+ *
+ * var cipherParams = CryptoJS.format.Hex.parse(hexString);
+ */
+ parse: function(input) {
+ var ciphertext = Hex.parse(input);
+ return CipherParams.create({
+ ciphertext: ciphertext
+ });
+ }
+ };
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var BlockCipher = C_lib.BlockCipher;
+ var C_algo = C.algo;
+
+ // Lookup tables
+ var SBOX = [];
+ var INV_SBOX = [];
+ var SUB_MIX_0 = [];
+ var SUB_MIX_1 = [];
+ var SUB_MIX_2 = [];
+ var SUB_MIX_3 = [];
+ var INV_SUB_MIX_0 = [];
+ var INV_SUB_MIX_1 = [];
+ var INV_SUB_MIX_2 = [];
+ var INV_SUB_MIX_3 = [];
+
+ // Compute lookup tables
+ (function() {
+ // Compute double table
+ var d = [];
+ for (var i = 0; i < 256; i++) {
+ if (i < 128) {
+ d[i] = i << 1;
+ } else {
+ d[i] = (i << 1) ^ 0x11b;
+ }
+ }
+
+ // Walk GF(2^8)
+ var x = 0;
+ var xi = 0;
+ for (var i = 0; i < 256; i++) {
+ // Compute sbox
+ var sx = xi ^ (xi << 1) ^ (xi << 2) ^ (xi << 3) ^ (xi << 4);
+ sx = (sx >>> 8) ^ (sx & 0xff) ^ 0x63;
+ SBOX[x] = sx;
+ INV_SBOX[sx] = x;
+
+ // Compute multiplication
+ var x2 = d[x];
+ var x4 = d[x2];
+ var x8 = d[x4];
+
+ // Compute sub bytes, mix columns tables
+ var t = (d[sx] * 0x101) ^ (sx * 0x1010100);
+ SUB_MIX_0[x] = (t << 24) | (t >>> 8);
+ SUB_MIX_1[x] = (t << 16) | (t >>> 16);
+ SUB_MIX_2[x] = (t << 8) | (t >>> 24);
+ SUB_MIX_3[x] = t;
+
+ // Compute inv sub bytes, inv mix columns tables
+ var t = (x8 * 0x1010101) ^ (x4 * 0x10001) ^ (x2 * 0x101) ^ (x * 0x1010100);
+ INV_SUB_MIX_0[sx] = (t << 24) | (t >>> 8);
+ INV_SUB_MIX_1[sx] = (t << 16) | (t >>> 16);
+ INV_SUB_MIX_2[sx] = (t << 8) | (t >>> 24);
+ INV_SUB_MIX_3[sx] = t;
+
+ // Compute next counter
+ if (!x) {
+ x = xi = 1;
+ } else {
+ x = x2 ^ d[d[d[x8 ^ x2]]];
+ xi ^= d[d[xi]];
+ }
+ }
+ }());
+
+ // Precomputed Rcon lookup
+ var RCON = [0x00, 0x01, 0x02, 0x04, 0x08, 0x10, 0x20, 0x40, 0x80, 0x1b, 0x36];
+
+ /**
+ * AES block cipher algorithm.
+ */
+ var AES = C_algo.AES = BlockCipher.extend({
+ _doReset: function() {
+ var t;
+
+ // Skip reset of nRounds has been set before and key did not change
+ if (this._nRounds && this._keyPriorReset === this._key) {
+ return;
+ }
+
+ // Shortcuts
+ var key = this._keyPriorReset = this._key;
+ var keyWords = key.words;
+ var keySize = key.sigBytes / 4;
+
+ // Compute number of rounds
+ var nRounds = this._nRounds = keySize + 6;
+
+ // Compute number of key schedule rows
+ var ksRows = (nRounds + 1) * 4;
+
+ // Compute key schedule
+ var keySchedule = this._keySchedule = [];
+ for (var ksRow = 0; ksRow < ksRows; ksRow++) {
+ if (ksRow < keySize) {
+ keySchedule[ksRow] = keyWords[ksRow];
+ } else {
+ t = keySchedule[ksRow - 1];
+
+ if (!(ksRow % keySize)) {
+ // Rot word
+ t = (t << 8) | (t >>> 24);
+
+ // Sub word
+ t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];
+
+ // Mix Rcon
+ t ^= RCON[(ksRow / keySize) | 0] << 24;
+ } else if (keySize > 6 && ksRow % keySize == 4) {
+ // Sub word
+ t = (SBOX[t >>> 24] << 24) | (SBOX[(t >>> 16) & 0xff] << 16) | (SBOX[(t >>> 8) & 0xff] << 8) | SBOX[t & 0xff];
+ }
+
+ keySchedule[ksRow] = keySchedule[ksRow - keySize] ^ t;
+ }
+ }
+
+ // Compute inv key schedule
+ var invKeySchedule = this._invKeySchedule = [];
+ for (var invKsRow = 0; invKsRow < ksRows; invKsRow++) {
+ var ksRow = ksRows - invKsRow;
+
+ if (invKsRow % 4) {
+ var t = keySchedule[ksRow];
+ } else {
+ var t = keySchedule[ksRow - 4];
+ }
+
+ if (invKsRow < 4 || ksRow <= 4) {
+ invKeySchedule[invKsRow] = t;
+ } else {
+ invKeySchedule[invKsRow] = INV_SUB_MIX_0[SBOX[t >>> 24]] ^ INV_SUB_MIX_1[SBOX[(t >>> 16) & 0xff]] ^
+ INV_SUB_MIX_2[SBOX[(t >>> 8) & 0xff]] ^ INV_SUB_MIX_3[SBOX[t & 0xff]];
+ }
+ }
+ },
+
+ encryptBlock: function(M, offset) {
+ this._doCryptBlock(M, offset, this._keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX);
+ },
+
+ decryptBlock: function(M, offset) {
+ // Swap 2nd and 4th rows
+ var t = M[offset + 1];
+ M[offset + 1] = M[offset + 3];
+ M[offset + 3] = t;
+
+ this._doCryptBlock(M, offset, this._invKeySchedule, INV_SUB_MIX_0, INV_SUB_MIX_1, INV_SUB_MIX_2, INV_SUB_MIX_3, INV_SBOX);
+
+ // Inv swap 2nd and 4th rows
+ var t = M[offset + 1];
+ M[offset + 1] = M[offset + 3];
+ M[offset + 3] = t;
+ },
+
+ _doCryptBlock: function(M, offset, keySchedule, SUB_MIX_0, SUB_MIX_1, SUB_MIX_2, SUB_MIX_3, SBOX) {
+ // Shortcut
+ var nRounds = this._nRounds;
+
+ // Get input, add round key
+ var s0 = M[offset] ^ keySchedule[0];
+ var s1 = M[offset + 1] ^ keySchedule[1];
+ var s2 = M[offset + 2] ^ keySchedule[2];
+ var s3 = M[offset + 3] ^ keySchedule[3];
+
+ // Key schedule row counter
+ var ksRow = 4;
+
+ // Rounds
+ for (var round = 1; round < nRounds; round++) {
+ // Shift rows, sub bytes, mix columns, add round key
+ var t0 = SUB_MIX_0[s0 >>> 24] ^ SUB_MIX_1[(s1 >>> 16) & 0xff] ^ SUB_MIX_2[(s2 >>> 8) & 0xff] ^ SUB_MIX_3[s3 & 0xff] ^ keySchedule[ksRow++];
+ var t1 = SUB_MIX_0[s1 >>> 24] ^ SUB_MIX_1[(s2 >>> 16) & 0xff] ^ SUB_MIX_2[(s3 >>> 8) & 0xff] ^ SUB_MIX_3[s0 & 0xff] ^ keySchedule[ksRow++];
+ var t2 = SUB_MIX_0[s2 >>> 24] ^ SUB_MIX_1[(s3 >>> 16) & 0xff] ^ SUB_MIX_2[(s0 >>> 8) & 0xff] ^ SUB_MIX_3[s1 & 0xff] ^ keySchedule[ksRow++];
+ var t3 = SUB_MIX_0[s3 >>> 24] ^ SUB_MIX_1[(s0 >>> 16) & 0xff] ^ SUB_MIX_2[(s1 >>> 8) & 0xff] ^ SUB_MIX_3[s2 & 0xff] ^ keySchedule[ksRow++];
+
+ // Update state
+ s0 = t0;
+ s1 = t1;
+ s2 = t2;
+ s3 = t3;
+ }
+
+ // Shift rows, sub bytes, add round key
+ var t0 = ((SBOX[s0 >>> 24] << 24) | (SBOX[(s1 >>> 16) & 0xff] << 16) | (SBOX[(s2 >>> 8) & 0xff] << 8) | SBOX[s3 & 0xff]) ^ keySchedule[ksRow++];
+ var t1 = ((SBOX[s1 >>> 24] << 24) | (SBOX[(s2 >>> 16) & 0xff] << 16) | (SBOX[(s3 >>> 8) & 0xff] << 8) | SBOX[s0 & 0xff]) ^ keySchedule[ksRow++];
+ var t2 = ((SBOX[s2 >>> 24] << 24) | (SBOX[(s3 >>> 16) & 0xff] << 16) | (SBOX[(s0 >>> 8) & 0xff] << 8) | SBOX[s1 & 0xff]) ^ keySchedule[ksRow++];
+ var t3 = ((SBOX[s3 >>> 24] << 24) | (SBOX[(s0 >>> 16) & 0xff] << 16) | (SBOX[(s1 >>> 8) & 0xff] << 8) | SBOX[s2 & 0xff]) ^ keySchedule[ksRow++];
+
+ // Set output
+ M[offset] = t0;
+ M[offset + 1] = t1;
+ M[offset + 2] = t2;
+ M[offset + 3] = t3;
+ },
+
+ keySize: 256 / 32
+ });
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.AES.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.AES.decrypt(ciphertext, key, cfg);
+ */
+ C.AES = BlockCipher._createHelper(AES);
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var WordArray = C_lib.WordArray;
+ var BlockCipher = C_lib.BlockCipher;
+ var C_algo = C.algo;
+
+ // Permuted Choice 1 constants
+ var PC1 = [
+ 57, 49, 41, 33, 25, 17, 9, 1,
+ 58, 50, 42, 34, 26, 18, 10, 2,
+ 59, 51, 43, 35, 27, 19, 11, 3,
+ 60, 52, 44, 36, 63, 55, 47, 39,
+ 31, 23, 15, 7, 62, 54, 46, 38,
+ 30, 22, 14, 6, 61, 53, 45, 37,
+ 29, 21, 13, 5, 28, 20, 12, 4
+ ];
+
+ // Permuted Choice 2 constants
+ var PC2 = [
+ 14, 17, 11, 24, 1, 5,
+ 3, 28, 15, 6, 21, 10,
+ 23, 19, 12, 4, 26, 8,
+ 16, 7, 27, 20, 13, 2,
+ 41, 52, 31, 37, 47, 55,
+ 30, 40, 51, 45, 33, 48,
+ 44, 49, 39, 56, 34, 53,
+ 46, 42, 50, 36, 29, 32
+ ];
+
+ // Cumulative bit shift constants
+ var BIT_SHIFTS = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28];
+
+ // SBOXes and round permutation constants
+ var SBOX_P = [{
+ 0x0: 0x808200,
+ 0x10000000: 0x8000,
+ 0x20000000: 0x808002,
+ 0x30000000: 0x2,
+ 0x40000000: 0x200,
+ 0x50000000: 0x808202,
+ 0x60000000: 0x800202,
+ 0x70000000: 0x800000,
+ 0x80000000: 0x202,
+ 0x90000000: 0x800200,
+ 0xa0000000: 0x8200,
+ 0xb0000000: 0x808000,
+ 0xc0000000: 0x8002,
+ 0xd0000000: 0x800002,
+ 0xe0000000: 0x0,
+ 0xf0000000: 0x8202,
+ 0x8000000: 0x0,
+ 0x18000000: 0x808202,
+ 0x28000000: 0x8202,
+ 0x38000000: 0x8000,
+ 0x48000000: 0x808200,
+ 0x58000000: 0x200,
+ 0x68000000: 0x808002,
+ 0x78000000: 0x2,
+ 0x88000000: 0x800200,
+ 0x98000000: 0x8200,
+ 0xa8000000: 0x808000,
+ 0xb8000000: 0x800202,
+ 0xc8000000: 0x800002,
+ 0xd8000000: 0x8002,
+ 0xe8000000: 0x202,
+ 0xf8000000: 0x800000,
+ 0x1: 0x8000,
+ 0x10000001: 0x2,
+ 0x20000001: 0x808200,
+ 0x30000001: 0x800000,
+ 0x40000001: 0x808002,
+ 0x50000001: 0x8200,
+ 0x60000001: 0x200,
+ 0x70000001: 0x800202,
+ 0x80000001: 0x808202,
+ 0x90000001: 0x808000,
+ 0xa0000001: 0x800002,
+ 0xb0000001: 0x8202,
+ 0xc0000001: 0x202,
+ 0xd0000001: 0x800200,
+ 0xe0000001: 0x8002,
+ 0xf0000001: 0x0,
+ 0x8000001: 0x808202,
+ 0x18000001: 0x808000,
+ 0x28000001: 0x800000,
+ 0x38000001: 0x200,
+ 0x48000001: 0x8000,
+ 0x58000001: 0x800002,
+ 0x68000001: 0x2,
+ 0x78000001: 0x8202,
+ 0x88000001: 0x8002,
+ 0x98000001: 0x800202,
+ 0xa8000001: 0x202,
+ 0xb8000001: 0x808200,
+ 0xc8000001: 0x800200,
+ 0xd8000001: 0x0,
+ 0xe8000001: 0x8200,
+ 0xf8000001: 0x808002
+ },
+ {
+ 0x0: 0x40084010,
+ 0x1000000: 0x4000,
+ 0x2000000: 0x80000,
+ 0x3000000: 0x40080010,
+ 0x4000000: 0x40000010,
+ 0x5000000: 0x40084000,
+ 0x6000000: 0x40004000,
+ 0x7000000: 0x10,
+ 0x8000000: 0x84000,
+ 0x9000000: 0x40004010,
+ 0xa000000: 0x40000000,
+ 0xb000000: 0x84010,
+ 0xc000000: 0x80010,
+ 0xd000000: 0x0,
+ 0xe000000: 0x4010,
+ 0xf000000: 0x40080000,
+ 0x800000: 0x40004000,
+ 0x1800000: 0x84010,
+ 0x2800000: 0x10,
+ 0x3800000: 0x40004010,
+ 0x4800000: 0x40084010,
+ 0x5800000: 0x40000000,
+ 0x6800000: 0x80000,
+ 0x7800000: 0x40080010,
+ 0x8800000: 0x80010,
+ 0x9800000: 0x0,
+ 0xa800000: 0x4000,
+ 0xb800000: 0x40080000,
+ 0xc800000: 0x40000010,
+ 0xd800000: 0x84000,
+ 0xe800000: 0x40084000,
+ 0xf800000: 0x4010,
+ 0x10000000: 0x0,
+ 0x11000000: 0x40080010,
+ 0x12000000: 0x40004010,
+ 0x13000000: 0x40084000,
+ 0x14000000: 0x40080000,
+ 0x15000000: 0x10,
+ 0x16000000: 0x84010,
+ 0x17000000: 0x4000,
+ 0x18000000: 0x4010,
+ 0x19000000: 0x80000,
+ 0x1a000000: 0x80010,
+ 0x1b000000: 0x40000010,
+ 0x1c000000: 0x84000,
+ 0x1d000000: 0x40004000,
+ 0x1e000000: 0x40000000,
+ 0x1f000000: 0x40084010,
+ 0x10800000: 0x84010,
+ 0x11800000: 0x80000,
+ 0x12800000: 0x40080000,
+ 0x13800000: 0x4000,
+ 0x14800000: 0x40004000,
+ 0x15800000: 0x40084010,
+ 0x16800000: 0x10,
+ 0x17800000: 0x40000000,
+ 0x18800000: 0x40084000,
+ 0x19800000: 0x40000010,
+ 0x1a800000: 0x40004010,
+ 0x1b800000: 0x80010,
+ 0x1c800000: 0x0,
+ 0x1d800000: 0x4010,
+ 0x1e800000: 0x40080010,
+ 0x1f800000: 0x84000
+ },
+ {
+ 0x0: 0x104,
+ 0x100000: 0x0,
+ 0x200000: 0x4000100,
+ 0x300000: 0x10104,
+ 0x400000: 0x10004,
+ 0x500000: 0x4000004,
+ 0x600000: 0x4010104,
+ 0x700000: 0x4010000,
+ 0x800000: 0x4000000,
+ 0x900000: 0x4010100,
+ 0xa00000: 0x10100,
+ 0xb00000: 0x4010004,
+ 0xc00000: 0x4000104,
+ 0xd00000: 0x10000,
+ 0xe00000: 0x4,
+ 0xf00000: 0x100,
+ 0x80000: 0x4010100,
+ 0x180000: 0x4010004,
+ 0x280000: 0x0,
+ 0x380000: 0x4000100,
+ 0x480000: 0x4000004,
+ 0x580000: 0x10000,
+ 0x680000: 0x10004,
+ 0x780000: 0x104,
+ 0x880000: 0x4,
+ 0x980000: 0x100,
+ 0xa80000: 0x4010000,
+ 0xb80000: 0x10104,
+ 0xc80000: 0x10100,
+ 0xd80000: 0x4000104,
+ 0xe80000: 0x4010104,
+ 0xf80000: 0x4000000,
+ 0x1000000: 0x4010100,
+ 0x1100000: 0x10004,
+ 0x1200000: 0x10000,
+ 0x1300000: 0x4000100,
+ 0x1400000: 0x100,
+ 0x1500000: 0x4010104,
+ 0x1600000: 0x4000004,
+ 0x1700000: 0x0,
+ 0x1800000: 0x4000104,
+ 0x1900000: 0x4000000,
+ 0x1a00000: 0x4,
+ 0x1b00000: 0x10100,
+ 0x1c00000: 0x4010000,
+ 0x1d00000: 0x104,
+ 0x1e00000: 0x10104,
+ 0x1f00000: 0x4010004,
+ 0x1080000: 0x4000000,
+ 0x1180000: 0x104,
+ 0x1280000: 0x4010100,
+ 0x1380000: 0x0,
+ 0x1480000: 0x10004,
+ 0x1580000: 0x4000100,
+ 0x1680000: 0x100,
+ 0x1780000: 0x4010004,
+ 0x1880000: 0x10000,
+ 0x1980000: 0x4010104,
+ 0x1a80000: 0x10104,
+ 0x1b80000: 0x4000004,
+ 0x1c80000: 0x4000104,
+ 0x1d80000: 0x4010000,
+ 0x1e80000: 0x4,
+ 0x1f80000: 0x10100
+ },
+ {
+ 0x0: 0x80401000,
+ 0x10000: 0x80001040,
+ 0x20000: 0x401040,
+ 0x30000: 0x80400000,
+ 0x40000: 0x0,
+ 0x50000: 0x401000,
+ 0x60000: 0x80000040,
+ 0x70000: 0x400040,
+ 0x80000: 0x80000000,
+ 0x90000: 0x400000,
+ 0xa0000: 0x40,
+ 0xb0000: 0x80001000,
+ 0xc0000: 0x80400040,
+ 0xd0000: 0x1040,
+ 0xe0000: 0x1000,
+ 0xf0000: 0x80401040,
+ 0x8000: 0x80001040,
+ 0x18000: 0x40,
+ 0x28000: 0x80400040,
+ 0x38000: 0x80001000,
+ 0x48000: 0x401000,
+ 0x58000: 0x80401040,
+ 0x68000: 0x0,
+ 0x78000: 0x80400000,
+ 0x88000: 0x1000,
+ 0x98000: 0x80401000,
+ 0xa8000: 0x400000,
+ 0xb8000: 0x1040,
+ 0xc8000: 0x80000000,
+ 0xd8000: 0x400040,
+ 0xe8000: 0x401040,
+ 0xf8000: 0x80000040,
+ 0x100000: 0x400040,
+ 0x110000: 0x401000,
+ 0x120000: 0x80000040,
+ 0x130000: 0x0,
+ 0x140000: 0x1040,
+ 0x150000: 0x80400040,
+ 0x160000: 0x80401000,
+ 0x170000: 0x80001040,
+ 0x180000: 0x80401040,
+ 0x190000: 0x80000000,
+ 0x1a0000: 0x80400000,
+ 0x1b0000: 0x401040,
+ 0x1c0000: 0x80001000,
+ 0x1d0000: 0x400000,
+ 0x1e0000: 0x40,
+ 0x1f0000: 0x1000,
+ 0x108000: 0x80400000,
+ 0x118000: 0x80401040,
+ 0x128000: 0x0,
+ 0x138000: 0x401000,
+ 0x148000: 0x400040,
+ 0x158000: 0x80000000,
+ 0x168000: 0x80001040,
+ 0x178000: 0x40,
+ 0x188000: 0x80000040,
+ 0x198000: 0x1000,
+ 0x1a8000: 0x80001000,
+ 0x1b8000: 0x80400040,
+ 0x1c8000: 0x1040,
+ 0x1d8000: 0x80401000,
+ 0x1e8000: 0x400000,
+ 0x1f8000: 0x401040
+ },
+ {
+ 0x0: 0x80,
+ 0x1000: 0x1040000,
+ 0x2000: 0x40000,
+ 0x3000: 0x20000000,
+ 0x4000: 0x20040080,
+ 0x5000: 0x1000080,
+ 0x6000: 0x21000080,
+ 0x7000: 0x40080,
+ 0x8000: 0x1000000,
+ 0x9000: 0x20040000,
+ 0xa000: 0x20000080,
+ 0xb000: 0x21040080,
+ 0xc000: 0x21040000,
+ 0xd000: 0x0,
+ 0xe000: 0x1040080,
+ 0xf000: 0x21000000,
+ 0x800: 0x1040080,
+ 0x1800: 0x21000080,
+ 0x2800: 0x80,
+ 0x3800: 0x1040000,
+ 0x4800: 0x40000,
+ 0x5800: 0x20040080,
+ 0x6800: 0x21040000,
+ 0x7800: 0x20000000,
+ 0x8800: 0x20040000,
+ 0x9800: 0x0,
+ 0xa800: 0x21040080,
+ 0xb800: 0x1000080,
+ 0xc800: 0x20000080,
+ 0xd800: 0x21000000,
+ 0xe800: 0x1000000,
+ 0xf800: 0x40080,
+ 0x10000: 0x40000,
+ 0x11000: 0x80,
+ 0x12000: 0x20000000,
+ 0x13000: 0x21000080,
+ 0x14000: 0x1000080,
+ 0x15000: 0x21040000,
+ 0x16000: 0x20040080,
+ 0x17000: 0x1000000,
+ 0x18000: 0x21040080,
+ 0x19000: 0x21000000,
+ 0x1a000: 0x1040000,
+ 0x1b000: 0x20040000,
+ 0x1c000: 0x40080,
+ 0x1d000: 0x20000080,
+ 0x1e000: 0x0,
+ 0x1f000: 0x1040080,
+ 0x10800: 0x21000080,
+ 0x11800: 0x1000000,
+ 0x12800: 0x1040000,
+ 0x13800: 0x20040080,
+ 0x14800: 0x20000000,
+ 0x15800: 0x1040080,
+ 0x16800: 0x80,
+ 0x17800: 0x21040000,
+ 0x18800: 0x40080,
+ 0x19800: 0x21040080,
+ 0x1a800: 0x0,
+ 0x1b800: 0x21000000,
+ 0x1c800: 0x1000080,
+ 0x1d800: 0x40000,
+ 0x1e800: 0x20040000,
+ 0x1f800: 0x20000080
+ },
+ {
+ 0x0: 0x10000008,
+ 0x100: 0x2000,
+ 0x200: 0x10200000,
+ 0x300: 0x10202008,
+ 0x400: 0x10002000,
+ 0x500: 0x200000,
+ 0x600: 0x200008,
+ 0x700: 0x10000000,
+ 0x800: 0x0,
+ 0x900: 0x10002008,
+ 0xa00: 0x202000,
+ 0xb00: 0x8,
+ 0xc00: 0x10200008,
+ 0xd00: 0x202008,
+ 0xe00: 0x2008,
+ 0xf00: 0x10202000,
+ 0x80: 0x10200000,
+ 0x180: 0x10202008,
+ 0x280: 0x8,
+ 0x380: 0x200000,
+ 0x480: 0x202008,
+ 0x580: 0x10000008,
+ 0x680: 0x10002000,
+ 0x780: 0x2008,
+ 0x880: 0x200008,
+ 0x980: 0x2000,
+ 0xa80: 0x10002008,
+ 0xb80: 0x10200008,
+ 0xc80: 0x0,
+ 0xd80: 0x10202000,
+ 0xe80: 0x202000,
+ 0xf80: 0x10000000,
+ 0x1000: 0x10002000,
+ 0x1100: 0x10200008,
+ 0x1200: 0x10202008,
+ 0x1300: 0x2008,
+ 0x1400: 0x200000,
+ 0x1500: 0x10000000,
+ 0x1600: 0x10000008,
+ 0x1700: 0x202000,
+ 0x1800: 0x202008,
+ 0x1900: 0x0,
+ 0x1a00: 0x8,
+ 0x1b00: 0x10200000,
+ 0x1c00: 0x2000,
+ 0x1d00: 0x10002008,
+ 0x1e00: 0x10202000,
+ 0x1f00: 0x200008,
+ 0x1080: 0x8,
+ 0x1180: 0x202000,
+ 0x1280: 0x200000,
+ 0x1380: 0x10000008,
+ 0x1480: 0x10002000,
+ 0x1580: 0x2008,
+ 0x1680: 0x10202008,
+ 0x1780: 0x10200000,
+ 0x1880: 0x10202000,
+ 0x1980: 0x10200008,
+ 0x1a80: 0x2000,
+ 0x1b80: 0x202008,
+ 0x1c80: 0x200008,
+ 0x1d80: 0x0,
+ 0x1e80: 0x10000000,
+ 0x1f80: 0x10002008
+ },
+ {
+ 0x0: 0x100000,
+ 0x10: 0x2000401,
+ 0x20: 0x400,
+ 0x30: 0x100401,
+ 0x40: 0x2100401,
+ 0x50: 0x0,
+ 0x60: 0x1,
+ 0x70: 0x2100001,
+ 0x80: 0x2000400,
+ 0x90: 0x100001,
+ 0xa0: 0x2000001,
+ 0xb0: 0x2100400,
+ 0xc0: 0x2100000,
+ 0xd0: 0x401,
+ 0xe0: 0x100400,
+ 0xf0: 0x2000000,
+ 0x8: 0x2100001,
+ 0x18: 0x0,
+ 0x28: 0x2000401,
+ 0x38: 0x2100400,
+ 0x48: 0x100000,
+ 0x58: 0x2000001,
+ 0x68: 0x2000000,
+ 0x78: 0x401,
+ 0x88: 0x100401,
+ 0x98: 0x2000400,
+ 0xa8: 0x2100000,
+ 0xb8: 0x100001,
+ 0xc8: 0x400,
+ 0xd8: 0x2100401,
+ 0xe8: 0x1,
+ 0xf8: 0x100400,
+ 0x100: 0x2000000,
+ 0x110: 0x100000,
+ 0x120: 0x2000401,
+ 0x130: 0x2100001,
+ 0x140: 0x100001,
+ 0x150: 0x2000400,
+ 0x160: 0x2100400,
+ 0x170: 0x100401,
+ 0x180: 0x401,
+ 0x190: 0x2100401,
+ 0x1a0: 0x100400,
+ 0x1b0: 0x1,
+ 0x1c0: 0x0,
+ 0x1d0: 0x2100000,
+ 0x1e0: 0x2000001,
+ 0x1f0: 0x400,
+ 0x108: 0x100400,
+ 0x118: 0x2000401,
+ 0x128: 0x2100001,
+ 0x138: 0x1,
+ 0x148: 0x2000000,
+ 0x158: 0x100000,
+ 0x168: 0x401,
+ 0x178: 0x2100400,
+ 0x188: 0x2000001,
+ 0x198: 0x2100000,
+ 0x1a8: 0x0,
+ 0x1b8: 0x2100401,
+ 0x1c8: 0x100401,
+ 0x1d8: 0x400,
+ 0x1e8: 0x2000400,
+ 0x1f8: 0x100001
+ },
+ {
+ 0x0: 0x8000820,
+ 0x1: 0x20000,
+ 0x2: 0x8000000,
+ 0x3: 0x20,
+ 0x4: 0x20020,
+ 0x5: 0x8020820,
+ 0x6: 0x8020800,
+ 0x7: 0x800,
+ 0x8: 0x8020000,
+ 0x9: 0x8000800,
+ 0xa: 0x20800,
+ 0xb: 0x8020020,
+ 0xc: 0x820,
+ 0xd: 0x0,
+ 0xe: 0x8000020,
+ 0xf: 0x20820,
+ 0x80000000: 0x800,
+ 0x80000001: 0x8020820,
+ 0x80000002: 0x8000820,
+ 0x80000003: 0x8000000,
+ 0x80000004: 0x8020000,
+ 0x80000005: 0x20800,
+ 0x80000006: 0x20820,
+ 0x80000007: 0x20,
+ 0x80000008: 0x8000020,
+ 0x80000009: 0x820,
+ 0x8000000a: 0x20020,
+ 0x8000000b: 0x8020800,
+ 0x8000000c: 0x0,
+ 0x8000000d: 0x8020020,
+ 0x8000000e: 0x8000800,
+ 0x8000000f: 0x20000,
+ 0x10: 0x20820,
+ 0x11: 0x8020800,
+ 0x12: 0x20,
+ 0x13: 0x800,
+ 0x14: 0x8000800,
+ 0x15: 0x8000020,
+ 0x16: 0x8020020,
+ 0x17: 0x20000,
+ 0x18: 0x0,
+ 0x19: 0x20020,
+ 0x1a: 0x8020000,
+ 0x1b: 0x8000820,
+ 0x1c: 0x8020820,
+ 0x1d: 0x20800,
+ 0x1e: 0x820,
+ 0x1f: 0x8000000,
+ 0x80000010: 0x20000,
+ 0x80000011: 0x800,
+ 0x80000012: 0x8020020,
+ 0x80000013: 0x20820,
+ 0x80000014: 0x20,
+ 0x80000015: 0x8020000,
+ 0x80000016: 0x8000000,
+ 0x80000017: 0x8000820,
+ 0x80000018: 0x8020820,
+ 0x80000019: 0x8000020,
+ 0x8000001a: 0x8000800,
+ 0x8000001b: 0x0,
+ 0x8000001c: 0x20800,
+ 0x8000001d: 0x820,
+ 0x8000001e: 0x20020,
+ 0x8000001f: 0x8020800
+ }
+ ];
+
+ // Masks that select the SBOX input
+ var SBOX_MASK = [
+ 0xf8000001, 0x1f800000, 0x01f80000, 0x001f8000,
+ 0x0001f800, 0x00001f80, 0x000001f8, 0x8000001f
+ ];
+
+ /**
+ * DES block cipher algorithm.
+ */
+ var DES = C_algo.DES = BlockCipher.extend({
+ _doReset: function() {
+ // Shortcuts
+ var key = this._key;
+ var keyWords = key.words;
+
+ // Select 56 bits according to PC1
+ var keyBits = [];
+ for (var i = 0; i < 56; i++) {
+ var keyBitPos = PC1[i] - 1;
+ keyBits[i] = (keyWords[keyBitPos >>> 5] >>> (31 - keyBitPos % 32)) & 1;
+ }
+
+ // Assemble 16 subkeys
+ var subKeys = this._subKeys = [];
+ for (var nSubKey = 0; nSubKey < 16; nSubKey++) {
+ // Create subkey
+ var subKey = subKeys[nSubKey] = [];
+
+ // Shortcut
+ var bitShift = BIT_SHIFTS[nSubKey];
+
+ // Select 48 bits according to PC2
+ for (var i = 0; i < 24; i++) {
+ // Select from the left 28 key bits
+ subKey[(i / 6) | 0] |= keyBits[((PC2[i] - 1) + bitShift) % 28] << (31 - i % 6);
+
+ // Select from the right 28 key bits
+ subKey[4 + ((i / 6) | 0)] |= keyBits[28 + (((PC2[i + 24] - 1) + bitShift) % 28)] << (31 - i % 6);
+ }
+
+ // Since each subkey is applied to an expanded 32-bit input,
+ // the subkey can be broken into 8 values scaled to 32-bits,
+ // which allows the key to be used without expansion
+ subKey[0] = (subKey[0] << 1) | (subKey[0] >>> 31);
+ for (var i = 1; i < 7; i++) {
+ subKey[i] = subKey[i] >>> ((i - 1) * 4 + 3);
+ }
+ subKey[7] = (subKey[7] << 5) | (subKey[7] >>> 27);
+ }
+
+ // Compute inverse subkeys
+ var invSubKeys = this._invSubKeys = [];
+ for (var i = 0; i < 16; i++) {
+ invSubKeys[i] = subKeys[15 - i];
+ }
+ },
+
+ encryptBlock: function(M, offset) {
+ this._doCryptBlock(M, offset, this._subKeys);
+ },
+
+ decryptBlock: function(M, offset) {
+ this._doCryptBlock(M, offset, this._invSubKeys);
+ },
+
+ _doCryptBlock: function(M, offset, subKeys) {
+ // Get input
+ this._lBlock = M[offset];
+ this._rBlock = M[offset + 1];
+
+ // Initial permutation
+ exchangeLR.call(this, 4, 0x0f0f0f0f);
+ exchangeLR.call(this, 16, 0x0000ffff);
+ exchangeRL.call(this, 2, 0x33333333);
+ exchangeRL.call(this, 8, 0x00ff00ff);
+ exchangeLR.call(this, 1, 0x55555555);
+
+ // Rounds
+ for (var round = 0; round < 16; round++) {
+ // Shortcuts
+ var subKey = subKeys[round];
+ var lBlock = this._lBlock;
+ var rBlock = this._rBlock;
+
+ // Feistel function
+ var f = 0;
+ for (var i = 0; i < 8; i++) {
+ f |= SBOX_P[i][((rBlock ^ subKey[i]) & SBOX_MASK[i]) >>> 0];
+ }
+ this._lBlock = rBlock;
+ this._rBlock = lBlock ^ f;
+ }
+
+ // Undo swap from last round
+ var t = this._lBlock;
+ this._lBlock = this._rBlock;
+ this._rBlock = t;
+
+ // Final permutation
+ exchangeLR.call(this, 1, 0x55555555);
+ exchangeRL.call(this, 8, 0x00ff00ff);
+ exchangeRL.call(this, 2, 0x33333333);
+ exchangeLR.call(this, 16, 0x0000ffff);
+ exchangeLR.call(this, 4, 0x0f0f0f0f);
+
+ // Set output
+ M[offset] = this._lBlock;
+ M[offset + 1] = this._rBlock;
+ },
+
+ keySize: 64 / 32,
+
+ ivSize: 64 / 32,
+
+ blockSize: 64 / 32
+ });
+
+ // Swap bits across the left and right words
+ function exchangeLR(offset, mask) {
+ var t = ((this._lBlock >>> offset) ^ this._rBlock) & mask;
+ this._rBlock ^= t;
+ this._lBlock ^= t << offset;
+ }
+
+ function exchangeRL(offset, mask) {
+ var t = ((this._rBlock >>> offset) ^ this._lBlock) & mask;
+ this._lBlock ^= t;
+ this._rBlock ^= t << offset;
+ }
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.DES.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.DES.decrypt(ciphertext, key, cfg);
+ */
+ C.DES = BlockCipher._createHelper(DES);
+
+ /**
+ * Triple-DES block cipher algorithm.
+ */
+ var TripleDES = C_algo.TripleDES = BlockCipher.extend({
+ _doReset: function() {
+ // Shortcuts
+ var key = this._key;
+ var keyWords = key.words;
+ // Make sure the key length is valid (64, 128 or >= 192 bit)
+ if (keyWords.length !== 2 && keyWords.length !== 4 && keyWords.length < 6) {
+ throw new Error('Invalid key length - 3DES requires the key length to be 64, 128, 192 or >192.');
+ }
+
+ // Extend the key according to the keying options defined in 3DES standard
+ var key1 = keyWords.slice(0, 2);
+ var key2 = keyWords.length < 4 ? keyWords.slice(0, 2) : keyWords.slice(2, 4);
+ var key3 = keyWords.length < 6 ? keyWords.slice(0, 2) : keyWords.slice(4, 6);
+
+ // Create DES instances
+ this._des1 = DES.createEncryptor(WordArray.create(key1));
+ this._des2 = DES.createEncryptor(WordArray.create(key2));
+ this._des3 = DES.createEncryptor(WordArray.create(key3));
+ },
+
+ encryptBlock: function(M, offset) {
+ this._des1.encryptBlock(M, offset);
+ this._des2.decryptBlock(M, offset);
+ this._des3.encryptBlock(M, offset);
+ },
+
+ decryptBlock: function(M, offset) {
+ this._des3.decryptBlock(M, offset);
+ this._des2.encryptBlock(M, offset);
+ this._des1.decryptBlock(M, offset);
+ },
+
+ keySize: 192 / 32,
+
+ ivSize: 64 / 32,
+
+ blockSize: 64 / 32
+ });
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.TripleDES.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.TripleDES.decrypt(ciphertext, key, cfg);
+ */
+ C.TripleDES = BlockCipher._createHelper(TripleDES);
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var StreamCipher = C_lib.StreamCipher;
+ var C_algo = C.algo;
+
+ /**
+ * RC4 stream cipher algorithm.
+ */
+ var RC4 = C_algo.RC4 = StreamCipher.extend({
+ _doReset: function() {
+ // Shortcuts
+ var key = this._key;
+ var keyWords = key.words;
+ var keySigBytes = key.sigBytes;
+
+ // Init sbox
+ var S = this._S = [];
+ for (var i = 0; i < 256; i++) {
+ S[i] = i;
+ }
+
+ // Key setup
+ for (var i = 0, j = 0; i < 256; i++) {
+ var keyByteIndex = i % keySigBytes;
+ var keyByte = (keyWords[keyByteIndex >>> 2] >>> (24 - (keyByteIndex % 4) * 8)) & 0xff;
+
+ j = (j + S[i] + keyByte) % 256;
+
+ // Swap
+ var t = S[i];
+ S[i] = S[j];
+ S[j] = t;
+ }
+
+ // Counters
+ this._i = this._j = 0;
+ },
+
+ _doProcessBlock: function(M, offset) {
+ M[offset] ^= generateKeystreamWord.call(this);
+ },
+
+ keySize: 256 / 32,
+
+ ivSize: 0
+ });
+
+ function generateKeystreamWord() {
+ // Shortcuts
+ var S = this._S;
+ var i = this._i;
+ var j = this._j;
+
+ // Generate keystream word
+ var keystreamWord = 0;
+ for (var n = 0; n < 4; n++) {
+ i = (i + 1) % 256;
+ j = (j + S[i]) % 256;
+
+ // Swap
+ var t = S[i];
+ S[i] = S[j];
+ S[j] = t;
+
+ keystreamWord |= S[(S[i] + S[j]) % 256] << (24 - n * 8);
+ }
+
+ // Update counters
+ this._i = i;
+ this._j = j;
+
+ return keystreamWord;
+ }
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.RC4.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.RC4.decrypt(ciphertext, key, cfg);
+ */
+ C.RC4 = StreamCipher._createHelper(RC4);
+
+ /**
+ * Modified RC4 stream cipher algorithm.
+ */
+ var RC4Drop = C_algo.RC4Drop = RC4.extend({
+ /**
+ * Configuration options.
+ *
+ * @property {number} drop The number of keystream words to drop. Default 192
+ */
+ cfg: RC4.cfg.extend({
+ drop: 192
+ }),
+
+ _doReset: function() {
+ RC4._doReset.call(this);
+
+ // Drop
+ for (var i = this.cfg.drop; i > 0; i--) {
+ generateKeystreamWord.call(this);
+ }
+ }
+ });
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.RC4Drop.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.RC4Drop.decrypt(ciphertext, key, cfg);
+ */
+ C.RC4Drop = StreamCipher._createHelper(RC4Drop);
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var StreamCipher = C_lib.StreamCipher;
+ var C_algo = C.algo;
+
+ // Reusable objects
+ var S = [];
+ var C_ = [];
+ var G = [];
+
+ /**
+ * Rabbit stream cipher algorithm
+ */
+ var Rabbit = C_algo.Rabbit = StreamCipher.extend({
+ _doReset: function() {
+ // Shortcuts
+ var K = this._key.words;
+ var iv = this.cfg.iv;
+
+ // Swap endian
+ for (var i = 0; i < 4; i++) {
+ K[i] = (((K[i] << 8) | (K[i] >>> 24)) & 0x00ff00ff) |
+ (((K[i] << 24) | (K[i] >>> 8)) & 0xff00ff00);
+ }
+
+ // Generate initial state values
+ var X = this._X = [
+ K[0], (K[3] << 16) | (K[2] >>> 16),
+ K[1], (K[0] << 16) | (K[3] >>> 16),
+ K[2], (K[1] << 16) | (K[0] >>> 16),
+ K[3], (K[2] << 16) | (K[1] >>> 16)
+ ];
+
+ // Generate initial counter values
+ var C = this._C = [
+ (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),
+ (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),
+ (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),
+ (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)
+ ];
+
+ // Carry bit
+ this._b = 0;
+
+ // Iterate the system four times
+ for (var i = 0; i < 4; i++) {
+ nextState.call(this);
+ }
+
+ // Modify the counters
+ for (var i = 0; i < 8; i++) {
+ C[i] ^= X[(i + 4) & 7];
+ }
+
+ // IV setup
+ if (iv) {
+ // Shortcuts
+ var IV = iv.words;
+ var IV_0 = IV[0];
+ var IV_1 = IV[1];
+
+ // Generate four subvectors
+ var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);
+ var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);
+ var i1 = (i0 >>> 16) | (i2 & 0xffff0000);
+ var i3 = (i2 << 16) | (i0 & 0x0000ffff);
+
+ // Modify counter values
+ C[0] ^= i0;
+ C[1] ^= i1;
+ C[2] ^= i2;
+ C[3] ^= i3;
+ C[4] ^= i0;
+ C[5] ^= i1;
+ C[6] ^= i2;
+ C[7] ^= i3;
+
+ // Iterate the system four times
+ for (var i = 0; i < 4; i++) {
+ nextState.call(this);
+ }
+ }
+ },
+
+ _doProcessBlock: function(M, offset) {
+ // Shortcut
+ var X = this._X;
+
+ // Iterate the system
+ nextState.call(this);
+
+ // Generate four keystream words
+ S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);
+ S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);
+ S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);
+ S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);
+
+ for (var i = 0; i < 4; i++) {
+ // Swap endian
+ S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |
+ (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);
+
+ // Encrypt
+ M[offset + i] ^= S[i];
+ }
+ },
+
+ blockSize: 128 / 32,
+
+ ivSize: 64 / 32
+ });
+
+ function nextState() {
+ // Shortcuts
+ var X = this._X;
+ var C = this._C;
+
+ // Save old counter values
+ for (var i = 0; i < 8; i++) {
+ C_[i] = C[i];
+ }
+
+ // Calculate new counter values
+ C[0] = (C[0] + 0x4d34d34d + this._b) | 0;
+ C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;
+ C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;
+ C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;
+ C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;
+ C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;
+ C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;
+ C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;
+ this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;
+
+ // Calculate the g-values
+ for (var i = 0; i < 8; i++) {
+ var gx = X[i] + C[i];
+
+ // Construct high and low argument for squaring
+ var ga = gx & 0xffff;
+ var gb = gx >>> 16;
+
+ // Calculate high and low result of squaring
+ var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;
+ var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);
+
+ // High XOR low
+ G[i] = gh ^ gl;
+ }
+
+ // Calculate new state values
+ X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;
+ X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;
+ X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;
+ X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;
+ X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;
+ X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;
+ X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;
+ X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;
+ }
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.Rabbit.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.Rabbit.decrypt(ciphertext, key, cfg);
+ */
+ C.Rabbit = StreamCipher._createHelper(Rabbit);
+ }());
+
+
+ (function() {
+ // Shortcuts
+ var C = CryptoJS;
+ var C_lib = C.lib;
+ var StreamCipher = C_lib.StreamCipher;
+ var C_algo = C.algo;
+
+ // Reusable objects
+ var S = [];
+ var C_ = [];
+ var G = [];
+
+ /**
+ * Rabbit stream cipher algorithm.
+ *
+ * This is a legacy version that neglected to convert the key to little-endian.
+ * This error doesn't affect the cipher's security,
+ * but it does affect its compatibility with other implementations.
+ */
+ var RabbitLegacy = C_algo.RabbitLegacy = StreamCipher.extend({
+ _doReset: function() {
+ // Shortcuts
+ var K = this._key.words;
+ var iv = this.cfg.iv;
+
+ // Generate initial state values
+ var X = this._X = [
+ K[0], (K[3] << 16) | (K[2] >>> 16),
+ K[1], (K[0] << 16) | (K[3] >>> 16),
+ K[2], (K[1] << 16) | (K[0] >>> 16),
+ K[3], (K[2] << 16) | (K[1] >>> 16)
+ ];
+
+ // Generate initial counter values
+ var C = this._C = [
+ (K[2] << 16) | (K[2] >>> 16), (K[0] & 0xffff0000) | (K[1] & 0x0000ffff),
+ (K[3] << 16) | (K[3] >>> 16), (K[1] & 0xffff0000) | (K[2] & 0x0000ffff),
+ (K[0] << 16) | (K[0] >>> 16), (K[2] & 0xffff0000) | (K[3] & 0x0000ffff),
+ (K[1] << 16) | (K[1] >>> 16), (K[3] & 0xffff0000) | (K[0] & 0x0000ffff)
+ ];
+
+ // Carry bit
+ this._b = 0;
+
+ // Iterate the system four times
+ for (var i = 0; i < 4; i++) {
+ nextState.call(this);
+ }
+
+ // Modify the counters
+ for (var i = 0; i < 8; i++) {
+ C[i] ^= X[(i + 4) & 7];
+ }
+
+ // IV setup
+ if (iv) {
+ // Shortcuts
+ var IV = iv.words;
+ var IV_0 = IV[0];
+ var IV_1 = IV[1];
+
+ // Generate four subvectors
+ var i0 = (((IV_0 << 8) | (IV_0 >>> 24)) & 0x00ff00ff) | (((IV_0 << 24) | (IV_0 >>> 8)) & 0xff00ff00);
+ var i2 = (((IV_1 << 8) | (IV_1 >>> 24)) & 0x00ff00ff) | (((IV_1 << 24) | (IV_1 >>> 8)) & 0xff00ff00);
+ var i1 = (i0 >>> 16) | (i2 & 0xffff0000);
+ var i3 = (i2 << 16) | (i0 & 0x0000ffff);
+
+ // Modify counter values
+ C[0] ^= i0;
+ C[1] ^= i1;
+ C[2] ^= i2;
+ C[3] ^= i3;
+ C[4] ^= i0;
+ C[5] ^= i1;
+ C[6] ^= i2;
+ C[7] ^= i3;
+
+ // Iterate the system four times
+ for (var i = 0; i < 4; i++) {
+ nextState.call(this);
+ }
+ }
+ },
+
+ _doProcessBlock: function(M, offset) {
+ // Shortcut
+ var X = this._X;
+
+ // Iterate the system
+ nextState.call(this);
+
+ // Generate four keystream words
+ S[0] = X[0] ^ (X[5] >>> 16) ^ (X[3] << 16);
+ S[1] = X[2] ^ (X[7] >>> 16) ^ (X[5] << 16);
+ S[2] = X[4] ^ (X[1] >>> 16) ^ (X[7] << 16);
+ S[3] = X[6] ^ (X[3] >>> 16) ^ (X[1] << 16);
+
+ for (var i = 0; i < 4; i++) {
+ // Swap endian
+ S[i] = (((S[i] << 8) | (S[i] >>> 24)) & 0x00ff00ff) |
+ (((S[i] << 24) | (S[i] >>> 8)) & 0xff00ff00);
+
+ // Encrypt
+ M[offset + i] ^= S[i];
+ }
+ },
+
+ blockSize: 128 / 32,
+
+ ivSize: 64 / 32
+ });
+
+ function nextState() {
+ // Shortcuts
+ var X = this._X;
+ var C = this._C;
+
+ // Save old counter values
+ for (var i = 0; i < 8; i++) {
+ C_[i] = C[i];
+ }
+
+ // Calculate new counter values
+ C[0] = (C[0] + 0x4d34d34d + this._b) | 0;
+ C[1] = (C[1] + 0xd34d34d3 + ((C[0] >>> 0) < (C_[0] >>> 0) ? 1 : 0)) | 0;
+ C[2] = (C[2] + 0x34d34d34 + ((C[1] >>> 0) < (C_[1] >>> 0) ? 1 : 0)) | 0;
+ C[3] = (C[3] + 0x4d34d34d + ((C[2] >>> 0) < (C_[2] >>> 0) ? 1 : 0)) | 0;
+ C[4] = (C[4] + 0xd34d34d3 + ((C[3] >>> 0) < (C_[3] >>> 0) ? 1 : 0)) | 0;
+ C[5] = (C[5] + 0x34d34d34 + ((C[4] >>> 0) < (C_[4] >>> 0) ? 1 : 0)) | 0;
+ C[6] = (C[6] + 0x4d34d34d + ((C[5] >>> 0) < (C_[5] >>> 0) ? 1 : 0)) | 0;
+ C[7] = (C[7] + 0xd34d34d3 + ((C[6] >>> 0) < (C_[6] >>> 0) ? 1 : 0)) | 0;
+ this._b = (C[7] >>> 0) < (C_[7] >>> 0) ? 1 : 0;
+
+ // Calculate the g-values
+ for (var i = 0; i < 8; i++) {
+ var gx = X[i] + C[i];
+
+ // Construct high and low argument for squaring
+ var ga = gx & 0xffff;
+ var gb = gx >>> 16;
+
+ // Calculate high and low result of squaring
+ var gh = ((((ga * ga) >>> 17) + ga * gb) >>> 15) + gb * gb;
+ var gl = (((gx & 0xffff0000) * gx) | 0) + (((gx & 0x0000ffff) * gx) | 0);
+
+ // High XOR low
+ G[i] = gh ^ gl;
+ }
+
+ // Calculate new state values
+ X[0] = (G[0] + ((G[7] << 16) | (G[7] >>> 16)) + ((G[6] << 16) | (G[6] >>> 16))) | 0;
+ X[1] = (G[1] + ((G[0] << 8) | (G[0] >>> 24)) + G[7]) | 0;
+ X[2] = (G[2] + ((G[1] << 16) | (G[1] >>> 16)) + ((G[0] << 16) | (G[0] >>> 16))) | 0;
+ X[3] = (G[3] + ((G[2] << 8) | (G[2] >>> 24)) + G[1]) | 0;
+ X[4] = (G[4] + ((G[3] << 16) | (G[3] >>> 16)) + ((G[2] << 16) | (G[2] >>> 16))) | 0;
+ X[5] = (G[5] + ((G[4] << 8) | (G[4] >>> 24)) + G[3]) | 0;
+ X[6] = (G[6] + ((G[5] << 16) | (G[5] >>> 16)) + ((G[4] << 16) | (G[4] >>> 16))) | 0;
+ X[7] = (G[7] + ((G[6] << 8) | (G[6] >>> 24)) + G[5]) | 0;
+ }
+
+ /**
+ * Shortcut functions to the cipher's object interface.
+ *
+ * @example
+ *
+ * var ciphertext = CryptoJS.RabbitLegacy.encrypt(message, key, cfg);
+ * var plaintext = CryptoJS.RabbitLegacy.decrypt(ciphertext, key, cfg);
+ */
+ C.RabbitLegacy = StreamCipher._createHelper(RabbitLegacy);
+ }());
+
+
+ return CryptoJS;
+
+}));
\ No newline at end of file
diff --git a/lib/drpy2.js b/JS/drpy2.js
similarity index 92%
rename from lib/drpy2.js
rename to JS/drpy2.js
index b57347d..47b82c6 100644
--- a/lib/drpy2.js
+++ b/JS/drpy2.js
@@ -5,13 +5,15 @@ import './node-rsa.js';
import './pako.min.js';
// import JSEncrypt from './jsencrypt.js'; // 会导致壳子崩溃的
import 模板 from './模板.js'
-import {gbkTool} from './gbk.js'
+import {
+ gbkTool
+} from './gbk.js'
import './json5.js'
// 下面是尝试对jinja2库进行更换
import './jinja.js'
const _jinja2 = cheerio.jinja2;
-cheerio.jinja2 = function (template, obj) {
+cheerio.jinja2 = function(template, obj) {
try {
return jinja.render(template, obj);
} catch (e) {
@@ -24,9 +26,16 @@ cheerio.jinja2 = function (template, obj) {
// import 模板 from"https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js";
// import {gbkTool} from 'https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/gbk.js'
-let vercode = typeof (pdfl) === 'function' ? 'drpy2.1' : 'drpy2';
-const VERSION = vercode + ' 3.9.51beta5 20241104';
-const UpdateInfo = [
+let vercode = typeof(pdfl) === 'function' ? 'drpy2.1' : 'drpy2';
+const VERSION = vercode + ' 3.9.51beta6 20241126';
+const UpdateInfo = [{
+ date: '20241126',
+ title: 'drpy更新,优化去广告算法',
+ version: '3.9.51beta6 20241126',
+ msg: `
+ 1. 更新龙头大佬提供的去广告算法
+ `
+ },
{
date: '20241104',
title: 'drpy更新,增加新特性',
@@ -179,7 +188,10 @@ NodeRsa
let encryptedWithPublic = NODERSA.encryptRSAWithPublicKey(data, pkcs1_public, {
// PublicFormat: "pkcs1-public-pem",
outputEncoding: "base64",
- options: {environment: "browser", encryptionScheme: 'pkcs1_oaep'},
+ options: {
+ environment: "browser",
+ encryptionScheme: 'pkcs1_oaep'
+ },
});
console.log("公钥加密");
console.log(encryptedWithPublic);
@@ -188,22 +200,33 @@ NodeRsa
let decryptedWithPrivate = NODERSA.decryptRSAWithPrivateKey(encryptedWithPublic, pkcs1_private, {
// PublicFormat: "pkcs1-private",
// outEncoding: "hex"
- options: {environment: "browser", encryptionScheme: 'pkcs1_oaep'},
+ options: {
+ environment: "browser",
+ encryptionScheme: 'pkcs1_oaep'
+ },
});
console.log("私钥解密");
console.log(decryptedWithPrivate);
-// https://www.btool.cn/rsa-sign
+ // https://www.btool.cn/rsa-sign
let pkcs1_sha256_sign = NODERSA.sign("1", pkcs1_private, {
outputEncoding: "base64",
- options: {environment: "browser", encryptionScheme: 'pkcs1', signingScheme: "pkcs1-sha256"},
+ options: {
+ environment: "browser",
+ encryptionScheme: 'pkcs1',
+ signingScheme: "pkcs1-sha256"
+ },
});
console.log("pkcs1_sha256_sign");
console.log(pkcs1_sha256_sign);
let pkcs1_sha256_sign_verify = NODERSA.verify("1", "Oulx2QrgeipKYBtqEDqFb2s/+ndk2cGQxO4CkhU7iBM1vyNmmvqubpsmeoUuN3waGrYZLknSEdwBkfv0tUMpFQ==", pkcs1_private, {
- options: {environment: "browser", encryptionScheme: 'pkcs1', signingScheme: "pkcs1-sha256"},
+ options: {
+ environment: "browser",
+ encryptionScheme: 'pkcs1',
+ signingScheme: "pkcs1-sha256"
+ },
});
console.log("pkcs1_sha256_sign_verify");
console.log(pkcs1_sha256_sign_verify);
@@ -219,7 +242,8 @@ Dd9YszqzmODjQUddZKHmvc638VW+azc0EwIDAQAB
`, {
outputEncoding: "base64",
options: {
- environment: "browser", encryptionScheme: {
+ environment: "browser",
+ encryptionScheme: {
scheme: "pkcs1_oaep",
hash: "sha256",
},
@@ -258,15 +282,22 @@ m7mp8il0kaftHdSxTbspG3tZ2fjIiFIZkLEOmRpd7ogWumgOajzUdA==
-----END RSA PRIVATE KEY-----`, {
// PublicFormat: "pkcs1-private",
// outEncoding: "hex"
- options: {environment: "browser", encryptionScheme: 'pkcs1_oaep'},
+ options: {
+ environment: "browser",
+ encryptionScheme: 'pkcs1_oaep'
+ },
});
console.log('decryptedWithPrivate');
console.log(decryptedWithPrivate);
(() => {
- let key = new NODERSA.NodeRSA({b: 1024});
- key.setOptions({encryptionScheme: 'pkcs1'})
+ let key = new NODERSA.NodeRSA({
+ b: 1024
+ });
+ key.setOptions({
+ encryptionScheme: 'pkcs1'
+ })
let text = `你好drpy node-ras`;
let encrypted = key.encrypt(text, 'base64');
console.log('encrypted: ', encrypted);
@@ -282,7 +313,7 @@ m7mp8il0kaftHdSxTbspG3tZ2fjIiFIZkLEOmRpd7ogWumgOajzUdA==
* 执行预处理代码
*/
function pre() {
- if (typeof (rule.预处理) === 'string' && rule.预处理 && rule.预处理.trim()) {
+ if (typeof(rule.预处理) === 'string' && rule.预处理 && rule.预处理.trim()) {
let code = rule.预处理.trim();
console.log("执行预处理代码:" + code);
if (code.startsWith('js:')) {
@@ -332,10 +363,10 @@ const RULE_CK = 'cookie'; // 源cookie的key值
// const KEY = typeof(key)!=='undefined'&&key?key:'drpy_' + (rule.title || rule.host); // 源的唯一标识
const CATE_EXCLUDE = '首页|留言|APP|下载|资讯|新闻|动态';
const TAB_EXCLUDE = '猜你|喜欢|下载|剧情|榜|评论';
-const OCR_RETRY = 3;//ocr验证重试次数
+const OCR_RETRY = 3; //ocr验证重试次数
// const OCR_API = 'http://drpy.nokia.press:8028/ocr/drpy/text';//ocr在线识别接口
-const OCR_API = 'https://api.nn.ci/ocr/b64/text';//ocr在线识别接口
-if (typeof (MY_URL) === 'undefined') {
+const OCR_API = 'https://api.nn.ci/ocr/b64/text'; //ocr在线识别接口
+if (typeof(MY_URL) === 'undefined') {
var MY_URL; // 全局注入变量,pd函数需要
}
var HOST;
@@ -354,8 +385,8 @@ var _pd;
const DOM_CHECK_ATTR = /(url|src|href|-original|-src|-play|-url|style)$/;
// 过滤特殊链接,不走urlJoin
const SPECIAL_URL = /^(ftp|magnet|thunder|ws):/;
-const NOADD_INDEX = /:eq|:lt|:gt|:first|:last|^body$|^#/; // 不自动加eq下标索引
-const URLJOIN_ATTR = /(url|src|href|-original|-src|-play|-url|style)$|^(data-|url-|src-)/; // 需要自动urljoin的属性
+const NOADD_INDEX = /:eq|:lt|:gt|:first|:last|^body$|^#/; // 不自动加eq下标索引
+const URLJOIN_ATTR = /(url|src|href|-original|-src|-play|-url|style)$|^(data-|url-|src-)/; // 需要自动urljoin的属性
const SELECT_REGEX = /:eq|:lt|:gt|#/g;
const SELECT_REGEX_A = /:eq|:lt|:gt/g;
@@ -446,11 +477,14 @@ function window_b64() {
es6py扩展
*/
if (typeof atob !== 'function' || typeof btoa !== 'function') {
- var {atob, btoa} = window_b64();
+ var {
+ atob,
+ btoa
+ } = window_b64();
}
if (typeof Object.assign !== 'function') {
- Object.assign = function () {
+ Object.assign = function() {
let target = arguments[0];
for (let i = 1; i < arguments.length; i++) {
let source = arguments[i];
@@ -464,7 +498,7 @@ if (typeof Object.assign !== 'function') {
};
}
if (!String.prototype.includes) {
- String.prototype.includes = function (search, start) {
+ String.prototype.includes = function(search, start) {
if (typeof start !== 'number') {
start = 0;
}
@@ -479,51 +513,51 @@ if (!String.prototype.includes) {
if (!Array.prototype.includes) {
Object.defineProperty(Array.prototype, 'includes', {
- value: function (searchElement, fromIndex) {
+ value: function(searchElement, fromIndex) {
- if (this == null) {//this是空或者未定义,抛出错误
+ if (this == null) { //this是空或者未定义,抛出错误
throw new TypeError('"this" is null or not defined');
}
- var o = Object(this);//将this转变成对象
- var len = o.length >>> 0;//无符号右移0位,获取对象length属性,如果未定义就会变成0
+ var o = Object(this); //将this转变成对象
+ var len = o.length >>> 0; //无符号右移0位,获取对象length属性,如果未定义就会变成0
- if (len === 0) {//length为0直接返回false未找到目标值
+ if (len === 0) { //length为0直接返回false未找到目标值
return false;
}
- var n = fromIndex | 0;//查找起始索引
- var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);//计算正确起始索引,因为有可能是负值
+ var n = fromIndex | 0; //查找起始索引
+ var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0); //计算正确起始索引,因为有可能是负值
- while (k < len) {//从起始索引处开始循环
- if (o[k] === searchElement) {//如果某一位置与寻找目标相等,返回true,找到了
+ while (k < len) { //从起始索引处开始循环
+ if (o[k] === searchElement) { //如果某一位置与寻找目标相等,返回true,找到了
return true;
}
k++;
}
- return false;//未找到,返回false
+ return false; //未找到,返回false
},
enumerable: false
});
}
if (typeof String.prototype.startsWith !== 'function') {
- String.prototype.startsWith = function (prefix) {
+ String.prototype.startsWith = function(prefix) {
return this.slice(0, prefix.length) === prefix;
};
}
if (typeof String.prototype.endsWith !== 'function') {
- String.prototype.endsWith = function (suffix) {
+ String.prototype.endsWith = function(suffix) {
return this.indexOf(suffix, this.length - suffix.length) !== -1;
};
}
Object.defineProperty(Object.prototype, 'myValues', {
- value: function (obj) {
+ value: function(obj) {
if (obj == null) {
throw new TypeError("Cannot convert undefined or null to object");
}
var res = []
for (var k in obj) {
- if (obj.hasOwnProperty(k)) {//需判断是否是本身的属性
+ if (obj.hasOwnProperty(k)) { //需判断是否是本身的属性
res.push(obj[k]);
}
}
@@ -533,13 +567,13 @@ Object.defineProperty(Object.prototype, 'myValues', {
});
if (typeof Object.prototype.values !== 'function') {
Object.defineProperty(Object.prototype, 'values', {
- value: function (obj) {
+ value: function(obj) {
if (obj == null) {
throw new TypeError("Cannot convert undefined or null to object");
}
var res = []
for (var k in obj) {
- if (obj.hasOwnProperty(k)) {//需判断是否是本身的属性
+ if (obj.hasOwnProperty(k)) { //需判断是否是本身的属性
res.push(obj[k]);
}
}
@@ -550,7 +584,7 @@ if (typeof Object.prototype.values !== 'function') {
}
if (typeof Array.prototype.join !== 'function') {
Object.defineProperty(Array.prototype, 'join', {
- value: function (emoji) {
+ value: function(emoji) {
// emoji = emoji||',';
emoji = emoji || '';
let self = this;
@@ -577,7 +611,7 @@ if (typeof Array.prototype.join !== 'function') {
}
if (typeof Array.prototype.toReversed !== 'function') {
Object.defineProperty(Array.prototype, 'toReversed', {
- value: function () {
+ value: function() {
const clonedList = this.slice();
// 倒序新数组
const reversedList = clonedList.reverse();
@@ -596,7 +630,7 @@ Object.defineProperty(String.prototype, 'strip', {
enumerable: false
});
Object.defineProperty(String.prototype, 'rstrip', {
- value: function (chars) {
+ value: function(chars) {
let regex = new RegExp(chars + "$");
return this.replace(regex, "");
},
@@ -627,7 +661,7 @@ function setResult(d) {
}
VODS = [];
// print(d);
- d.forEach(function (it) {
+ d.forEach(function(it) {
let obj = {
vod_id: it.url || '',
vod_name: it.title || '',
@@ -665,7 +699,7 @@ function setResult2(res) {
}
function setHomeResult(res) {
- if (!res || typeof (res) !== 'object') {
+ if (!res || typeof(res) !== 'object') {
return []
}
return setResult(res.list);
@@ -677,7 +711,7 @@ function rc(js) {
var a = CryptoJS.enc.Utf8.parse("625222f9149e961d");
var t = CryptoJS.enc.Utf8.parse("5efdtf6060e2o330");
return {
- De: function (word) {
+ De: function(word) {
word = CryptoJS.enc.Hex.parse(word)
return CryptoJS.AES.decrypt(CryptoJS.enc.Base64.stringify(word), a, {
iv: t,
@@ -685,7 +719,7 @@ function rc(js) {
padding: CryptoJS.pad.Pkcs7
}).toString(CryptoJS.enc.Utf8)
},
- En: function (word) {
+ En: function(word) {
// print(a);
// print(word);
var Encrypted = CryptoJS.AES.encrypt(word, a, {
@@ -706,8 +740,11 @@ function maoss(jxurl, ref, key) {
fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
eval(getCryptoJS());
try {
- var getVideoInfo = function (text) {
- return CryptoJS.AES.decrypt(text, key, {iv: iv, padding: CryptoJS.pad.Pkcs7}).toString(CryptoJS.enc.Utf8);
+ var getVideoInfo = function(text) {
+ return CryptoJS.AES.decrypt(text, key, {
+ iv: iv,
+ padding: CryptoJS.pad.Pkcs7
+ }).toString(CryptoJS.enc.Utf8);
};
var token_key = key == undefined ? 'dvyYRQlnPRCMdQSe' : key;
if (ref) {
@@ -766,7 +803,7 @@ function urlencode(str) {
* @returns {string}
*/
function encodeUrl(str) {
- if (typeof (encodeURI) == 'function') {
+ if (typeof(encodeURI) == 'function') {
return encodeURI(str)
} else {
str = (str + '').toString();
@@ -848,7 +885,7 @@ function gzip(str) {
*/
function ungzip(b64Data) {
let strData = atob(b64Data);
- const charData = strData.split('').map(function (x) {
+ const charData = strData.split('').map(function(x) {
return x.charCodeAt(0);
});
const binData = new Uint8Array(charData);
@@ -893,9 +930,9 @@ function getCryptoJS() {
// 封装的RSA加解密类
const RSA = {
- decode: function (data, key, option) {
+ decode: function(data, key, option) {
option = option || {};
- if (typeof (JSEncrypt) === 'function') {
+ if (typeof(JSEncrypt) === 'function') {
let chunkSize = option.chunkSize || 117; // 默认分段长度为117
let privateKey = this.getPrivateKey(key); // 获取私钥
const decryptor = new JSEncrypt(); //创建解密对象实例
@@ -908,9 +945,9 @@ const RSA = {
return false
}
},
- encode: function (data, key, option) {
+ encode: function(data, key, option) {
option = option || {};
- if (typeof (JSEncrypt) === 'function') {
+ if (typeof(JSEncrypt) === 'function') {
let chunkSize = option.chunkSize || 117; // 默认分段长度为117
let publicKey = this.getPublicKey(key); // 获取公钥
const encryptor = new JSEncrypt();
@@ -957,7 +994,7 @@ const RSA = {
* @returns {string|*}
*/
function getProxyUrl() {
- if (typeof (getProxy) === 'function') {//判断壳子里有getProxy函数就执行取返回结果。否则取默认的本地
+ if (typeof(getProxy) === 'function') { //判断壳子里有getProxy函数就执行取返回结果。否则取默认的本地
return getProxy(true)
} else {
return 'http://127.0.0.1:9978/proxy?do=js'
@@ -1036,8 +1073,10 @@ function fixAdM3u8(m3u8_text, m3u8_url, ad_remove) {
* @returns {string}
*/
function fixAdM3u8Ai(m3u8_url, headers) {
- let ts = new Date().getTime();
- let option = headers ? {headers: headers} : {};
+ let ts = (new Date).getTime();
+ let option = headers ? {
+ headers: headers
+ } : {};
function b(s1, s2) {
let i = 0;
@@ -1047,67 +1086,103 @@ function fixAdM3u8Ai(m3u8_url, headers) {
}
i++
}
- return i;
+ return i
}
function reverseString(str) {
- return str.split('').reverse().join('');
+ return str.split("").reverse().join("")
}
-
- //log('播放的地址:' + m3u8_url);
let m3u8 = request(m3u8_url, option);
- //log('m3u8处理前:' + m3u8);
- m3u8 = m3u8.trim().split('\n').map(it => it.startsWith('#') ? it : urljoin(m3u8_url, it)).join('\n');
- //log('m3u8处理后:============:' + m3u8);
- // 获取嵌套m3u8地址
- m3u8 = m3u8.replace(/\n\n/ig, '\n');//删除多余的换行符
- let last_url = m3u8.split('\n').slice(-1)[0];
+ m3u8 = m3u8.trim().split("\n").map(it => it.startsWith("#") ? it : urljoin(m3u8_url, it)).join("\n");
+ m3u8 = m3u8.replace(/\n\n/gi, "\n");
+ let last_url = m3u8.split("\n").slice(-1)[0];
if (last_url.length < 5) {
- last_url = m3u8.split('\n').slice(-2)[0];
+ last_url = m3u8.split("\n").slice(-2)[0]
}
-
- if (last_url.includes('.m3u8') && last_url !== m3u8_url) {
+ if (last_url.includes(".m3u8") && last_url !== m3u8_url) {
m3u8_url = urljoin2(m3u8_url, last_url);
- log('嵌套的m3u8_url:' + m3u8_url);
- m3u8 = request(m3u8_url, option);
+ log("嵌套的m3u8_url:" + m3u8_url);
+ m3u8 = request(m3u8_url, option)
}
- //log('----处理有广告的地址----');
- let s = m3u8.trim().split('\n').filter(it => it.trim()).join('\n');
- let ss = s.split('\n')
- //找出第一条播放地址
- //let firststr = ss.find(x => !x.startsWith('#'));
- let firststr = '';
- let maxl = 0;//最大相同字符
+ let s = m3u8.trim().split("\n").filter(it => it.trim()).join("\n");
+ let ss = s.split("\n");
+ if (m3u8_url.indexOf("ffzy") > 0) {
+ let j = 0,
+ k1 = 0,
+ m = 0,
+ n = 0,
+ t = 0;
+ let s2 = "";
+ for (let i = 0; i < ss.length; i++) {
+ let s = ss[i];
+ let s1 = "";
+ if (s.startsWith("#EXTINF")) {
+ s1 = s.slice(8);
+ n++;
+ if (n == 1)
+ k1 = i;
+ if (s2.indexOf(s1) == -1) {
+ s2 = s2 + s1;
+ m++;
+ }
+ t = t + parseFloat(s1);
+ i++;
+ s = ss[i];
+ }
+ if (s.startsWith("#EXT-X-DISCONTINUITY")) {
+ if (n == 5) {
+ log("n:" + n);
+ log("m:" + m);
+ for (let j = k1; j < k1 + n * 2; j++) {
+ log(ss[j]);
+ }
+ log("广告位置:" + k1);
+ log("数据条数:" + n);
+ log("数据种类:" + m);
+ log("广告时间:" + t.toFixed(5));
+ ss.splice(k1, 2 * n + 1);
+ i = i - 2 * n + 1;
+ }
+ t = 0;
+ m = 0;
+ n = 0;
+ s2 = "";
+ }
+ }
+ }
+ let firststr = "";
+ let maxl = 0;
let kk = 0;
- let kkk = 2;
- let secondstr = '';
+ let kkk1 = 1;
+ let kkk2 = 0;
+ let secondstr = "";
for (let i = 0; i < ss.length; i++) {
let s = ss[i];
if (!s.startsWith("#")) {
- if (kk == 0) firststr = s;
- if (kk == 1) maxl = b(firststr, s);
- if (kk > 1) {
- if (maxl > b(firststr, s)) {
- if (secondstr.length < 5) secondstr = s;
- kkk = kkk + 2;
+ if (kk == 0)
+ firststr = s;
+ if (kk > 0) {
+ if (maxl > b(firststr, s) + 1) {
+ if (secondstr.length < 5)
+ secondstr = s;
+ kkk2++
} else {
maxl = b(firststr, s);
- kkk++;
+ kkk1++
}
}
kk++;
- if (kk >= 20) break;
+ if (kk >= 30)
+ break
}
}
- if (kkk > 30) firststr = secondstr;
+ if (kkk2 > kkk1)
+ firststr = secondstr;
let firststrlen = firststr.length;
- //log('字符串长度:' + firststrlen);
- let ml = Math.round(ss.length / 2).toString().length;//取数据的长度的位数
- //log('数据条数的长度:' + ml);
- //找出最后一条播放地址
+ let ml = Math.round(ss.length / 2).toString().length;
let maxc = 0;
- let laststr = ss.toReversed().find((x) => {
- if (!x.startsWith('#')) {
+ let laststr = ss.toReversed().find(x => {
+ if (!x.startsWith("#")) {
let k = b(reverseString(firststr), reverseString(x));
maxl = b(firststr, x);
maxc++;
@@ -1117,29 +1192,28 @@ function fixAdM3u8Ai(m3u8_url, headers) {
}
return false
});
- log('最后一条切片:' + laststr);
- //log('最小相同字符长度:' + maxl);
+ log("最后一条切片:" + laststr);
let ad_urls = [];
for (let i = 0; i < ss.length; i++) {
let s = ss[i];
- if (!s.startsWith('#')) {
+ if (!s.startsWith("#")) {
if (b(firststr, s) < maxl) {
- ad_urls.push(s); // 广告地址加入列表
+ ad_urls.push(s);
ss.splice(i - 1, 2);
- i = i - 2;
+ i = i - 2
} else {
- ss[i] = urljoin(m3u8_url, s);
+ ss[i] = urljoin(m3u8_url, s)
}
} else {
- ss[i] = s.replace(/URI=\"(.*)\"/, 'URI=\"' + urljoin(m3u8_url, '$1') + '\"');
+ ss[i] = s.replace(/URI=\"(.*)\"/, 'URI="' + urljoin(m3u8_url, "$1") + '"')
}
}
- log('处理的m3u8地址:' + m3u8_url);
- log('----广告地址----');
+ log("处理的m3u8地址:" + m3u8_url);
+ log("----广告地址----");
log(ad_urls);
- m3u8 = ss.join('\n');
- //log('处理完成');
- log('处理耗时:' + (new Date().getTime() - ts).toString());
+ m3u8 = ss.join("\n");
+ log("处理耗时:" + ((new Date).getTime() - ts).toString());
+ log(m3u8);
return m3u8
}
@@ -1163,15 +1237,13 @@ function forceOrder(lists, key, option) {
try {
first = first[key];
second = second[key];
- } catch (e) {
- }
+ } catch (e) {}
}
- if (option && typeof (option) === 'function') {
+ if (option && typeof(option) === 'function') {
try {
first = option(first);
second = option(second);
- } catch (e) {
- }
+ } catch (e) {}
}
first += '';
second += '';
@@ -1186,10 +1258,10 @@ function forceOrder(lists, key, option) {
return lists
}
-let VODS = [];// 一级或者搜索需要的数据列表
-let VOD = {};// 二级的单个数据
-let TABS = [];// 二级的自定义线路列表 如: TABS=['道长在线','道长在线2']
-let LISTS = [];// 二级的自定义选集播放列表 如: LISTS=[['第1集$http://1.mp4','第2集$http://2.mp4'],['第3集$http://1.mp4','第4集$http://2.mp4']]
+let VODS = []; // 一级或者搜索需要的数据列表
+let VOD = {}; // 二级的单个数据
+let TABS = []; // 二级的自定义线路列表 如: TABS=['道长在线','道长在线2']
+let LISTS = []; // 二级的自定义选集播放列表 如: LISTS=[['第1集$http://1.mp4','第2集$http://2.mp4'],['第3集$http://1.mp4','第4集$http://2.mp4']]
/**
* 获取链接的query请求转为js的object字典对象
@@ -1268,7 +1340,7 @@ const defaultParser = {
function pdfh2(html, parse) {
let html2 = html;
try {
- if (typeof (html) !== 'string') {
+ if (typeof(html) !== 'string') {
html2 = html.rr(html.ele).toString();
}
} catch (e) {
@@ -1281,8 +1353,7 @@ function pdfh2(html, parse) {
result = result.match(/url\((.*?)\)/)[1];
// 2023/07/28新增 style取内部链接自动去除首尾单双引号
result = result.replace(/^['|"](.*)['|"]$/, "$1");
- } catch (e) {
- }
+ } catch (e) {}
}
return result
}
@@ -1296,7 +1367,7 @@ function pdfh2(html, parse) {
function pdfa2(html, parse) {
let html2 = html;
try {
- if (typeof (html) !== 'string') {
+ if (typeof(html) !== 'string') {
html2 = html.rr(html.ele).toString();
}
} catch (e) {
@@ -1314,7 +1385,7 @@ function pdfa2(html, parse) {
*/
function pd2(html, parse, uri) {
let ret = pdfh2(html, parse);
- if (typeof (uri) === 'undefined' || !uri) {
+ if (typeof(uri) === 'undefined' || !uri) {
uri = '';
}
if (DOM_CHECK_ATTR.test(parse) && !SPECIAL_URL.test(ret)) {
@@ -1340,7 +1411,7 @@ const parseTags = {
if (!parse || !parse.trim()) {
return '';
}
- if (typeof (html) === 'string') {
+ if (typeof(html) === 'string') {
// print('jsonpath:pdfh字符串转dict');
html = JSON.parse(html);
}
@@ -1356,7 +1427,7 @@ const parseTags = {
} else {
ret = ret || ''
}
- if (ret && typeof (ret) !== 'string') {
+ if (ret && typeof(ret) !== 'string') {
ret = ret.toString();
}
if (ret) {
@@ -1369,7 +1440,7 @@ const parseTags = {
if (!parse || !parse.trim()) {
return '';
}
- if (typeof (html) === 'string') {
+ if (typeof(html) === 'string') {
// print('jsonpath:pdfa字符串转dict');
html = JSON.parse(html);
}
@@ -1420,7 +1491,7 @@ const parseTags = {
return defaultParser.pd(html, parse, base_url);
},
},
- getParse(p0) {//非js开头的情况自动获取解析标签
+ getParse(p0) { //非js开头的情况自动获取解析标签
if (p0.startsWith('jsp:')) {
return this.jsp
} else if (p0.startsWith('json:')) {
@@ -1467,12 +1538,10 @@ function dealJson(html) {
if (!((html.startsWith('{') && html.endsWith('}')) || (html.startsWith('[') && html.endsWith(']')))) {
html = '{' + html.match(/.*?\{(.*)\}/m)[1] + '}';
}
- } catch (e) {
- }
+ } catch (e) {}
try {
html = JSON.parse(html);
- } catch (e) {
- }
+ } catch (e) {}
// console.log(typeof(html));
return html;
}
@@ -1483,7 +1552,7 @@ function dealJson(html) {
*/
var OcrApi = {
api: OCR_API,
- classification: function (img) { // img是byte类型,这里不方便搞啊
+ classification: function(img) { // img是byte类型,这里不方便搞啊
let code = '';
try {
// let html = request(this.api,{data:{img:img},headers:{'User-Agent':PC_UA},'method':'POST'},true);
@@ -1492,9 +1561,19 @@ var OcrApi = {
log('通过drpy_ocr验证码接口过验证...');
let html = '';
if (this.api.endsWith('drpy/text')) {
- html = request(this.api, {data: {img: img}, headers: {'User-Agent': PC_UA}, 'method': 'POST'}, true);
+ html = request(this.api, {
+ data: {
+ img: img
+ },
+ headers: {
+ 'User-Agent': PC_UA
+ },
+ 'method': 'POST'
+ }, true);
} else {
- html = post(this.api, {body: img});
+ html = post(this.api, {
+ body: img
+ });
}
code = html || '';
} catch (e) {
@@ -1518,7 +1597,10 @@ function verifyCode(url) {
// let obj = {headers:headers,timeout:timeout};
let yzm_url = `${host}/index.php/verify/index.html`;
console.log(`验证码链接:${yzm_url}`);
- let hhtml = request(yzm_url, {withHeaders: true, toBase64: true}, true);
+ let hhtml = request(yzm_url, {
+ withHeaders: true,
+ toBase64: true
+ }, true);
let json = JSON.parse(hhtml);
if (!cookie) {
// print(json);
@@ -1534,7 +1616,12 @@ function verifyCode(url) {
console.log(`第${cnt + 1}次验证码识别结果:${code}`);
let submit_url = `${host}/index.php/ajax/verify_check?type=search&verify=${code}`;
console.log(submit_url);
- let html = request(submit_url, {headers: {Cookie: cookie}, 'method': 'POST'});
+ let html = request(submit_url, {
+ headers: {
+ Cookie: cookie
+ },
+ 'method': 'POST'
+ });
// console.log(html);
html = JSON.parse(html);
if (html.msg === 'ok') {
@@ -1597,8 +1684,7 @@ function getHome(url) {
url = tmp[0] + '//' + tmp[1].split('/')[0];
try {
url = decodeURIComponent(url);
- } catch (e) {
- }
+ } catch (e) {}
return url
}
@@ -1649,7 +1735,7 @@ function keysToLowerCase(obj) {
//字符串To对象
function parseQueryString(query) {
const params = {};
- query.split('&').forEach(function (part) {
+ query.split('&').forEach(function(part) {
// 使用正则表达式匹配键和值,直到遇到第一个等号为止
const regex = /^(.*?)=(.*)/;
const match = part.match(regex);
@@ -1695,7 +1781,7 @@ function objectToQueryString(obj) {
*/
function request(url, obj, ocr_flag) {
ocr_flag = ocr_flag || false;
- if (typeof (obj) === 'undefined' || !obj || obj === {}) {
+ if (typeof(obj) === 'undefined' || !obj || obj === {}) {
if (!fetch_params || !fetch_params.headers) {
let headers = {
'User-Agent': MOBILE_UA,
@@ -1718,7 +1804,7 @@ function request(url, obj, ocr_flag) {
if (!keys.includes('user-agent')) {
headers['User-Agent'] = MOBILE_UA;
// fetch_params 里存在ua则优先,否则才默认手机UA
- if (typeof (fetch_params) === 'object' && fetch_params && fetch_params.headers) {
+ if (typeof(fetch_params) === 'object' && fetch_params && fetch_params.headers) {
let fetch_headers = keysToLowerCase(fetch_params.headers);
if (fetch_headers['user-agent']) {
headers['User-Agent'] = fetch_headers['user-agent'];
@@ -1735,7 +1821,7 @@ function request(url, obj, ocr_flag) {
obj.headers["Content-Type"] = 'text/html; charset=' + rule.encoding;
}
}
- if (typeof (obj.body) != 'undefined' && obj.body && typeof (obj.body) === 'string') {
+ if (typeof(obj.body) != 'undefined' && obj.body && typeof(obj.body) === 'string') {
// let data = {};
// obj.body.split('&').forEach(it=>{
// data[it.split('=')[0]] = it.split('=')[1]
@@ -1747,7 +1833,7 @@ function request(url, obj, ocr_flag) {
if (!obj.headers.hasOwnProperty('Content-Type') && !obj.headers.hasOwnProperty('content-type')) { // 手动指定了就不管
obj.headers["Content-Type"] = 'application/x-www-form-urlencoded; charset=' + rule.encoding;
}
- } else if (typeof (obj.body) != 'undefined' && obj.body && typeof (obj.body) === 'object') {
+ } else if (typeof(obj.body) != 'undefined' && obj.body && typeof(obj.body) === 'object') {
obj.data = obj.body;
delete obj.body
}
@@ -1831,18 +1917,18 @@ function reqCookie(url, obj, all_cookie) {
}
fetch = request;
-print = function (data) {
+print = function(data) {
data = data || '';
- if (typeof (data) == 'object' && Object.keys(data).length > 0) {
+ if (typeof(data) == 'object' && Object.keys(data).length > 0) {
try {
data = JSON.stringify(data);
console.log(data);
} catch (e) {
// console.log('print:'+e.message);
- console.log(typeof (data) + ':' + data.length);
+ console.log(typeof(data) + ':' + data.length);
return
}
- } else if (typeof (data) == 'object' && Object.keys(data).length < 1) {
+ } else if (typeof(data) == 'object' && Object.keys(data).length < 1) {
console.log('null object');
} else {
console.log(data);
@@ -1902,7 +1988,9 @@ function getHtml(url) {
obj.headers['Cookie'] = cookie;
log('历史有大写过期的cookie,更新过验证后的cookie');
} else if (!obj.headers) {
- obj.headers = {Cookie: cookie};
+ obj.headers = {
+ Cookie: cookie
+ };
log('历史无headers,更新过验证后的含cookie的headers');
}
}
@@ -2051,7 +2139,7 @@ function homeVodParse(homeVodObj) {
p = rule.一级;
homeVodObj.double = false;
}
- if (!p || typeof (p) !== 'string') {
+ if (!p || typeof(p) !== 'string') {
return '{}'
}
p = p.trim();
@@ -2104,13 +2192,11 @@ function homeVodParse(homeVodObj) {
let img = '';
try {
img = _pd(item2, p3);
- } catch (e) {
- }
+ } catch (e) {}
let desc = '';
try {
desc = _pdfh(item2, p4);
- } catch (e) {
- }
+ } catch (e) {}
let links = [];
for (let _p5 of p5.split('+')) {
let link = !homeVodObj.detailUrl ? _pd(item2, _p5, MY_URL) : _pdfh(item2, _p5);
@@ -2159,13 +2245,11 @@ function homeVodParse(homeVodObj) {
let img = '';
try {
img = _pd(item, p2, MY_URL);
- } catch (e) {
- }
+ } catch (e) {}
let desc = '';
try {
desc = _pdfh(item, p3);
- } catch (e) {
- }
+ } catch (e) {}
let links = [];
for (let _p5 of p4.split('+')) {
let link = !homeVodObj.detailUrl ? _pd(item, _p5, MY_URL) : _pdfh(item, _p5);
@@ -2249,7 +2333,7 @@ function homeVodParse(homeVodObj) {
function categoryParse(cateObj) {
fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
let p = cateObj.一级;
- if (!p || typeof (p) !== 'string') {
+ if (!p || typeof(p) !== 'string') {
return '{}'
}
let d = [];
@@ -2274,11 +2358,11 @@ function categoryParse(cateObj) {
// console.log('filter:'+cateObj.filter);
let fl = cateObj.filter ? cateObj.extend : {};
// 自动合并 不同分类对应的默认筛选
- if (rule.filter_def && typeof (rule.filter_def) === 'object') {
+ if (rule.filter_def && typeof(rule.filter_def) === 'object') {
try {
if (Object.keys(rule.filter_def).length > 0 && rule.filter_def.hasOwnProperty(cateObj.tid)) {
let self_fl_def = rule.filter_def[cateObj.tid];
- if (self_fl_def && typeof (self_fl_def) === 'object') {
+ if (self_fl_def && typeof(self_fl_def) === 'object') {
// 引用传递转值传递,避免污染self变量
let fl_def = JSON.parse(JSON.stringify(self_fl_def));
fl = Object.assign(fl_def, fl);
@@ -2289,7 +2373,10 @@ function categoryParse(cateObj) {
}
}
let new_url;
- new_url = cheerio.jinja2(url, {fl: fl, fyclass: cateObj.tid});
+ new_url = cheerio.jinja2(url, {
+ fl: fl,
+ fyclass: cateObj.tid
+ });
// console.log('jinjia2执行后的new_url类型为:'+typeof(new_url));
url = new_url;
}
@@ -2396,7 +2483,7 @@ function categoryParse(cateObj) {
print(d.slice(0, 2));
}
let pagecount = 0;
- if (rule.pagecount && typeof (rule.pagecount) === 'object' && rule.pagecount.hasOwnProperty(MY_CATE)) {
+ if (rule.pagecount && typeof(rule.pagecount) === 'object' && rule.pagecount.hasOwnProperty(MY_CATE)) {
print(`MY_CATE:${MY_CATE},pagecount:${JSON.stringify(rule.pagecount)}`);
pagecount = parseInt(rule.pagecount[MY_CATE]);
}
@@ -2407,7 +2494,10 @@ function categoryParse(cateObj) {
vod_remarks: '不要点,会崩的',
vod_pic: 'https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/404.jpg'
}],
- total: 1, pagecount: 1, page: 1, limit: 1
+ total: 1,
+ pagecount: 1,
+ page: 1,
+ limit: 1
};
let vod = d.length < 1 ? JSON.stringify(nodata) : JSON.stringify({
'page': parseInt(cateObj.pg),
@@ -2436,7 +2526,7 @@ function searchParse(searchObj) {
return '{}'
}
let p = searchObj.搜索 === '*' && rule.一级 ? rule.一级 : searchObj.搜索;
- if (!p || typeof (p) !== 'string') {
+ if (!p || typeof(p) !== 'string') {
return '{}'
}
p = p.trim();
@@ -2502,7 +2592,9 @@ function searchParse(searchObj) {
// });
// html = post(rurl,{body:new_dict});
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
- let postData = {body: params};
+ let postData = {
+ body: params
+ };
Object.assign(_fetch_params, postData);
html = post(rurl, _fetch_params);
} else if (req_method === 'postjson') {
@@ -2516,7 +2608,9 @@ function searchParse(searchObj) {
params = '{}'
}
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
- let postData = {body: params};
+ let postData = {
+ body: params
+ };
Object.assign(_fetch_params, postData);
html = post(rurl, _fetch_params);
} else {
@@ -2679,14 +2773,14 @@ function detailParse(detailObj) {
vod.vod_actor = '没有二级,只有一级链接直接嗅探播放';
vod.vod_content = MY_URL;
vod.vod_play_url = '嗅探播放$' + MY_URL.split('@@')[0];
- } else if (typeof (p) === 'string' && p.trim().startsWith('js:')) {
+ } else if (typeof(p) === 'string' && p.trim().startsWith('js:')) {
const TYPE = 'detail';
var input = MY_URL;
var play_url = '';
eval(p.trim().replace('js:', ''));
vod = VOD;
console.log(JSON.stringify(vod));
- } else if (p && typeof (p) === 'object') {
+ } else if (p && typeof(p) === 'object') {
let tt1 = (new Date()).getTime();
if (!html) {
html = getHtml(MY_URL);
@@ -2737,15 +2831,13 @@ function detailParse(detailObj) {
try {
let p1 = p.content.split(';');
vod.vod_content = _pdfh(html, p1[0]).replace(/\n|\t/g, '').trim();
- } catch (e) {
- }
+ } catch (e) {}
}
if (p.img) {
try {
let p1 = p.img.split(';');
vod.vod_pic = _pd(html, p1[0], MY_URL);
- } catch (e) {
- }
+ } catch (e) {}
}
let vod_play_from = '$$$';
@@ -2755,7 +2847,7 @@ function detailParse(detailObj) {
html = eval(p.重定向.replace('js:', ''));
}
-// console.log(2);
+ // console.log(2);
if (p.tabs) {
if (p.tabs.startsWith('js:')) {
print('开始执行tabs代码:' + p.tabs);
@@ -2796,7 +2888,7 @@ function detailParse(detailObj) {
}
vod.vod_play_from = playFrom.join(vod_play_from);
-// console.log(3);
+ // console.log(3);
let vod_play_url = '$$$';
let vod_tab_list = [];
if (p.lists) {
@@ -2840,7 +2932,7 @@ function detailParse(detailObj) {
let new_vod_list = [];
let tt1 = (new Date()).getTime();
// print('pdfl:'+typeof (pdfl));
- if (typeof (pdfl) === 'function') {
+ if (typeof(pdfl) === 'function') {
new_vod_list = pdfl(html, p1, list_text, list_url, MY_URL);
if (list_url_prefix) {
new_vod_list = new_vod_list.map(it => it.split('$')[0] + '$' + list_url_prefix + it.split('$').slice(1).join('$'));
@@ -2949,7 +3041,7 @@ function vodDeal(vod) {
play_ordered_list = tab_list.map(it => vod_play_url[tab_index_dict[it]]);
}
- if (rule.tab_rename && typeof (rule.tab_rename) === 'object' & Object.keys(rule.tab_rename).length > 0) {
+ if (rule.tab_rename && typeof(rule.tab_rename) === 'object' & Object.keys(rule.tab_rename).length > 0) {
tab_renamed_list = tab_list.map(it => rule.tab_rename[it] || it);
tab_list = tab_renamed_list;
}
@@ -2984,12 +3076,11 @@ function playParse(playObj) {
if (!/http/.test(MY_URL)) {
try {
MY_URL = base64Decode(MY_URL);
- } catch (e) {
- }
+ } catch (e) {}
}
MY_URL = decodeURIComponent(MY_URL);
- var input = MY_URL;//注入给免嗅js
- var flag = MY_FLAG;//注入播放线路名称给免嗅js
+ var input = MY_URL; //注入给免嗅js
+ var flag = MY_FLAG; //注入播放线路名称给免嗅js
let common_play = {
parse: SPECIAL_URL.test(input) || /^(push:)/.test(input) ? 0 : 1,
url: input,
@@ -3000,7 +3091,7 @@ function playParse(playObj) {
let lazy_play;
if (!rule.play_parse || !rule.lazy) {
lazy_play = common_play;
- } else if (rule.play_parse && rule.lazy && typeof (rule.lazy) === 'string') {
+ } else if (rule.play_parse && rule.lazy && typeof(rule.lazy) === 'string') {
try {
let lazy_code = rule.lazy.trim();
if (lazy_code.startsWith('js:')) {
@@ -3008,7 +3099,7 @@ function playParse(playObj) {
}
print('开始执行js免嗅=>' + lazy_code);
eval(lazy_code);
- lazy_play = typeof (input) === 'object' ? input : {
+ lazy_play = typeof(input) === 'object' ? input : {
parse: SPECIAL_URL.test(input) || /^(push:)/.test(input) ? 0 : 1,
jx: tellIsJx(input),
url: input
@@ -3026,7 +3117,7 @@ function playParse(playObj) {
let web_url = lazy_play.url;
for (let pjson of rule.play_json) {
if (pjson.re && (pjson.re === '*' || web_url.match(new RegExp(pjson.re)))) {
- if (pjson.json && typeof (pjson.json) === 'object') {
+ if (pjson.json && typeof(pjson.json) === 'object') {
let base_json = pjson.json;
// print('开始合并:');
// print(base_json);
@@ -3084,13 +3175,13 @@ function proxyParse(proxyObj) {
function isVideoParse(isVideoObj) {
var input = isVideoObj.url;
if (!isVideoObj.t) { // t为假代表默认传的正则字符串
- let re_matcher = new RegExp(isVideoObj.isVideo, 'i'); // /g匹配多个,/i不区分大小写,/m匹配多行
+ let re_matcher = new RegExp(isVideoObj.isVideo, 'i'); // /g匹配多个,/i不区分大小写,/m匹配多行
return re_matcher.test(input);
} else {
// 执行js
try {
eval(isVideoObj.isVideo);
- if (typeof (input) === 'boolean') {
+ if (typeof(input) === 'boolean') {
return input
} else {
return false
@@ -3188,7 +3279,7 @@ function getOriginalJs(js_code) {
* @param arg
*/
function runMain(main_func_code, arg) {
- let mainFunc = function () {
+ let mainFunc = function() {
return ''
};
try {
@@ -3232,7 +3323,9 @@ function init(ext) {
if (is_file) {
ext = ext.split('?')[0];
}
- let js = request(ext, {'method': 'GET'});
+ let js = request(ext, {
+ 'method': 'GET'
+ });
if (js) {
js = getOriginalJs(js);
// eval(js.replace('var rule', 'rule'));
@@ -3272,7 +3365,9 @@ function init(ext) {
if (rule['模板'] === '自动') {
try {
let host_headers = rule['headers'] || {};
- let host_html = getCode(HOST, {headers: host_headers});
+ let host_html = getCode(HOST, {
+ headers: host_headers
+ });
let match_muban = '';
let muban_keys = Object.keys(muban).filter(it => !/默认|短视2|采集1/.test(it));
for (let muban_key of muban_keys) {
@@ -3321,7 +3416,9 @@ function init(ext) {
rule.detailUrl = rule.detailUrl || '';
rule.searchUrl = rule.searchUrl || '';
rule.homeUrl = rule.host && rule.homeUrl ? urljoin(rule.host, rule.homeUrl) : (rule.homeUrl || rule.host);
- rule.homeUrl = cheerio.jinja2(rule.homeUrl, {rule: rule});
+ rule.homeUrl = cheerio.jinja2(rule.homeUrl, {
+ rule: rule
+ });
rule.detailUrl = rule.host && rule.detailUrl ? urljoin(rule.host, rule.detailUrl) : rule.detailUrl;
rule.二级访问前 = rule.二级访问前 || '';
if (rule.url.includes('[') && rule.url.includes(']')) {
@@ -3362,7 +3459,7 @@ function init(ext) {
rule.tab_order = rule.hasOwnProperty('tab_order') ? rule.tab_order : [];
rule.tab_rename = rule.hasOwnProperty('tab_rename') ? rule.tab_rename : {};
- if (rule.headers && typeof (rule.headers) === 'object') {
+ if (rule.headers && typeof(rule.headers) === 'object') {
try {
let header_keys = Object.keys(rule.headers);
for (let k of header_keys) {
@@ -3393,8 +3490,12 @@ function init(ext) {
rule.headers = {}
}
oheaders = deepCopy(rule.headers);
- rule_fetch_params = {'headers': rule.headers, 'timeout': rule.timeout, 'encoding': rule.encoding};
- RKEY = typeof (key) !== 'undefined' && key ? key : 'drpy_' + (rule.title || rule.host);
+ rule_fetch_params = {
+ 'headers': rule.headers,
+ 'timeout': rule.timeout,
+ 'encoding': rule.encoding
+ };
+ RKEY = typeof(key) !== 'undefined' && key ? key : 'drpy_' + (rule.title || rule.host);
pre(); // 预处理
init_test();
} catch (e) {
@@ -3415,7 +3516,7 @@ function home(filter, home_html, class_parse) {
console.log("home");
home_html = home_html || '';
class_parse = class_parse || '';
- if (typeof (rule.filter) === 'string' && rule.filter.trim().length > 0) {
+ if (typeof(rule.filter) === 'string' && rule.filter.trim().length > 0) {
try {
let filter_json = ungzip(rule.filter.trim());
rule.filter = JSON.parse(filter_json);
@@ -3645,7 +3746,7 @@ function matchesAll(str, pattern, flatten) {
function stringUtils() {
Object.defineProperties(String.prototype, {
replaceX: {
- value: function (regex, replacement) {
+ value: function(regex, replacement) {
let matches = matchesAll(this, regex, true);
if (matches && matches.length > 1) {
const hasCaptureGroup = /\$\d/.test(replacement);
@@ -3662,7 +3763,7 @@ function stringUtils() {
writable: true
},
parseX: {
- get: function () {
+ get: function() {
try {
//console.log(typeof this);
return JSON.parse(this);
@@ -3714,7 +3815,7 @@ function cut(text, start, end, method, All) {
return result
}
-function DRPY() {//导出函数
+function DRPY() { //导出函数
return {
runMain: runMain,
getRule: getRule,
diff --git a/JS/drpy2.min.js b/JS/drpy2.min.js
new file mode 100644
index 0000000..464f33c
--- /dev/null
+++ b/JS/drpy2.min.js
@@ -0,0 +1,3108 @@
+import cheerio from "assets://js/lib/cheerio.min.js";
+import "assets://js/lib/crypto-js.js";
+import "./jsencrypt.js";
+import "./node-rsa.js";
+import "./pako.min.js";
+import 模板 from "./模板.js";
+import {
+ gbkTool
+} from "./gbk.js";
+import "./json5.js";
+import "./jinja.js";
+const _jinja2 = cheerio.jinja2;
+cheerio.jinja2 = function(template, obj) {
+ try {
+ return jinja.render(template, obj)
+ } catch (e) {
+ console.log("新的jinja2库渲染失败,换回原始cheerio:" + e.message);
+ return _jinja2(template, obj)
+ }
+};
+let vercode = typeof pdfl === "function" ? "drpy2.1" : "drpy2";
+const VERSION = vercode + " 3.9.51beta6 20241126";
+const UpdateInfo = [{
+ date: "20241126",
+ title: "drpy更新,优化去广告算法",
+ version: "3.9.51beta6 20241126",
+ msg: `
+ 1. 更新龙头大佬提供的去广告算法
+ `
+}, {
+ date: "20241104",
+ title: "drpy更新,增加新特性",
+ version: "3.9.51beta5 20241104",
+ msg: `
+ 1. rule增加 搜索验证标识 属性,可以不定义,默认为 '系统安全验证|请输入验证码'
+ 2. rule增加 searchNoPage 属性,可以不定义,如果定义 1 将关闭该源的搜索翻页功能,超过1页直接返回空
+ `
+}];
+
+function getUpdateInfo() {
+ return UpdateInfo.map(_o => {
+ _o.msg = _o.msg.trim().split("\n").map(_it => _it.trim()).join("\n");
+ return _o
+ })
+}
+
+function init_test() {
+ console.log("init_test_start");
+ console.log("当前版本号:" + VERSION);
+ console.log("本地代理地址:" + getProxyUrl());
+ console.log(RKEY);
+ console.log(JSON.stringify(rule));
+ console.log("init_test_end")
+}
+
+function ocr_demo_test() {
+ let img_base64 = `iVBORw0KGgoAAAANSUhEUgAAAIAAAAAoBAMAAADEX+97AAAAG1BMVEXz+/4thQTa7N6QwIFFkyNeokKozqDB3b93sWHFR+MEAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABN0lEQVRIie2TQU+DQBCFt9vScvQpxR4xrcSjJCZ67JDGXsX+AdR4B3vpsSYm/m2HXaRLmuySepR3Gdidb/btDAjRq5dT96eCMlfBuzi1QLZUoZy2yz5sOvI+9iomaPEZ6nWnEtxqIyiM1RcAy44GNDhBXUjot/VVNweV1ah68FqWRyjKIOqAcyYF6rGcmpYnHzGt3fycNoMw0d3/THFu7hFSJ/8OXO6iTM8/KSg09obAzIHLO250LgQ0txOZSfgrV4Exdw98uGycJ0ErAeExZGhOmFHV9zHO6qVSj0MpLq7xZON56o++MjlsEgfVhbQWWME+xQX7J4V6zfi9A1Ly9rP1BvEXp+BbVJ/M77n+wfOIDVp51pZ4iBxvmj9AGrtvry6emwfKnVkW+ZRKd5ZNMvob36vXP9YPDmQki8QiCFAAAAAASUVORK5CYII=`;
+ OcrApi.api = OCR_API;
+ let code = OcrApi.classification(img_base64);
+ log("测试验证码图片的ocr识别结果为:" + code)
+}
+
+function rsa_demo_test() {
+ let t1 = (new Date).getTime();
+ let pkcs1_public = `
+-----BEGIN RSA PUBLIC KEY-----
+MEgCQQCrI0pQ/ERRpJ3Ou190XJedFq846nDYP52rOtXyDxlFK5D3p6JJu2RwsKwy
+lsQ9xY0xYPpRZUZKMEeR7e9gmRNLAgMBAAE=
+-----END RSA PUBLIC KEY-----
+`.trim();
+ let pkcs1_public_pem = `
+MEgCQQCrI0pQ/ERRpJ3Ou190XJedFq846nDYP52rOtXyDxlFK5D3p6JJu2RwsKwy
+lsQ9xY0xYPpRZUZKMEeR7e9gmRNLAgMBAAE=
+`.trim();
+ let pkcs8_public = `
+-----BEGIN PUBLIC KEY-----
+MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKsjSlD8RFGknc67X3Rcl50WrzjqcNg/
+nas61fIPGUUrkPenokm7ZHCwrDKWxD3FjTFg+lFlRkowR5Ht72CZE0sCAwEAAQ==
+-----END PUBLIC KEY-----`.trim();
+ let pkcs8_public_pem = `
+MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKsjSlD8RFGknc67X3Rcl50WrzjqcNg/
+nas61fIPGUUrkPenokm7ZHCwrDKWxD3FjTFg+lFlRkowR5Ht72CZE0sCAwEAAQ==
+`.trim();
+ let pkcs1_private = `
+-----BEGIN RSA PRIVATE KEY-----
+MIIBOAIBAAJBAKsjSlD8RFGknc67X3Rcl50WrzjqcNg/nas61fIPGUUrkPenokm7
+ZHCwrDKWxD3FjTFg+lFlRkowR5Ht72CZE0sCAwEAAQI/b6OV1z65UokQaMvSeRXt
+0Yv6wiYtduQI9qpq5nzy/ytaqsbBfClNTi/HifKPKxlRouWFkc518EQI8LBxoarJ
+AiEA4DaONMplV8PQNa3TKn2F+SDEvLOCjdL0kHKdN90Ti28CIQDDZnTBaHgZwZbA
+hS7Bbf5yvwjWMhO6Y7l04/Qm7R+35QIgPuQuqXIoUSD080mp1N5WyRW++atksIF+
+5lGv9e6GP/MCICnj8y/rl6Pd7tXDN6zcSeqLrfdNsREKhB3dKOCXgW9JAiAFYtFS
+EJNBXVRTK42SNsZ2hJ/9xLwOwnH2epT8Q43s3Q==
+-----END RSA PRIVATE KEY-----
+`.trim();
+ let pkcs8_private = `
+-----BEGIN PRIVATE KEY-----
+MIIBUgIBADANBgkqhkiG9w0BAQEFAASCATwwggE4AgEAAkEAqyNKUPxEUaSdzrtf
+dFyXnRavOOpw2D+dqzrV8g8ZRSuQ96eiSbtkcLCsMpbEPcWNMWD6UWVGSjBHke3v
+YJkTSwIDAQABAj9vo5XXPrlSiRBoy9J5Fe3Ri/rCJi125Aj2qmrmfPL/K1qqxsF8
+KU1OL8eJ8o8rGVGi5YWRznXwRAjwsHGhqskCIQDgNo40ymVXw9A1rdMqfYX5IMS8
+s4KN0vSQcp033ROLbwIhAMNmdMFoeBnBlsCFLsFt/nK/CNYyE7pjuXTj9CbtH7fl
+AiA+5C6pcihRIPTzSanU3lbJFb75q2SwgX7mUa/17oY/8wIgKePzL+uXo93u1cM3
+rNxJ6out902xEQqEHd0o4JeBb0kCIAVi0VIQk0FdVFMrjZI2xnaEn/3EvA7CcfZ6
+lPxDjezd
+-----END PRIVATE KEY-----
+`.trim();
+ let data = `
+NodeRsa
+这是node-rsa 现在修改集成在drpy里使用`.trim();
+ let encryptedWithPublic = NODERSA.encryptRSAWithPublicKey(data, pkcs1_public, {
+ outputEncoding: "base64",
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1_oaep"
+ }
+ });
+ console.log("公钥加密");
+ console.log(encryptedWithPublic);
+ let decryptedWithPrivate = NODERSA.decryptRSAWithPrivateKey(encryptedWithPublic, pkcs1_private, {
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1_oaep"
+ }
+ });
+ console.log("私钥解密");
+ console.log(decryptedWithPrivate);
+ let pkcs1_sha256_sign = NODERSA.sign("1", pkcs1_private, {
+ outputEncoding: "base64",
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1",
+ signingScheme: "pkcs1-sha256"
+ }
+ });
+ console.log("pkcs1_sha256_sign");
+ console.log(pkcs1_sha256_sign);
+ let pkcs1_sha256_sign_verify = NODERSA.verify("1", "Oulx2QrgeipKYBtqEDqFb2s/+ndk2cGQxO4CkhU7iBM1vyNmmvqubpsmeoUuN3waGrYZLknSEdwBkfv0tUMpFQ==", pkcs1_private, {
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1",
+ signingScheme: "pkcs1-sha256"
+ }
+ });
+ console.log("pkcs1_sha256_sign_verify");
+ console.log(pkcs1_sha256_sign_verify);
+ let pkcs1_oaep_sha256 = NODERSA.encryptRSAWithPublicKey(data, `-----BEGIN RSA PUBLIC KEY-----
+MIIBCgKCAQEA5KOq1gRNyllLNWKQy8sGpZE3Q1ULLSmzZw+eaAhj9lvqn7IsT1du
+SYn08FfoOA2qMwtz+1O2l1mgzNoSVCyVpVabnTG+C9XKeZXAnJHd8aYA7l7Sxhdm
+kte+iymYZ0ZBPzijo8938iugtVvqi9UgDmnY3u/NlQDqiL5BGqSxSTd/Sgmy3zD8
+PYzEa3wD9vehQ5fZZ45vKIq8GNVh2Z8+IGO85FF1OsN7+b2yGJa/FmDDNn0+HP+m
+PfI+kYBqEVpo0Ztbc3UdxgFwGC8O1n8AQyriwHnSOtIiuBH62J/7qyC/3LEAApRb
+Dd9YszqzmODjQUddZKHmvc638VW+azc0EwIDAQAB
+-----END RSA PUBLIC KEY-----
+`, {
+ outputEncoding: "base64",
+ options: {
+ environment: "browser",
+ encryptionScheme: {
+ scheme: "pkcs1_oaep",
+ hash: "sha256"
+ }
+ }
+ });
+ console.log("pkcs1_oaep_sha256");
+ console.log(pkcs1_oaep_sha256);
+ decryptedWithPrivate = NODERSA.decryptRSAWithPrivateKey("kSZesAAyYh2hdsQnYMdGqb6gKAzTauBKouvBzWcc4+F8RvGd0nwO6mVkUMVilPgUuNxjEauHayHiY8gI3Py45UI3+km0rSGyHrS6dHiHgCkMejXHieglYzAB0IxX3Jkm4z/66bdB/D+GFy0oct5fGCMI1UHPjEAYOsazJDa8lBFNbjiWFeb/qiZtIx3vGM7KYPAZzyRf/zPbbQ8zy9xOmRuOl5nnIxgo0Okp3KO/RIPO4GZOSBA8f2lx1UtNwwrXAMpcNavtoqHVcjJ/9lcotXYQFrn5b299pSIRf2gVm8ZJ31SK6Z8cc14nKtvgnmsgClDzIXJ1o1RcDK+knVAySg==", `-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEA5KOq1gRNyllLNWKQy8sGpZE3Q1ULLSmzZw+eaAhj9lvqn7Is
+T1duSYn08FfoOA2qMwtz+1O2l1mgzNoSVCyVpVabnTG+C9XKeZXAnJHd8aYA7l7S
+xhdmkte+iymYZ0ZBPzijo8938iugtVvqi9UgDmnY3u/NlQDqiL5BGqSxSTd/Sgmy
+3zD8PYzEa3wD9vehQ5fZZ45vKIq8GNVh2Z8+IGO85FF1OsN7+b2yGJa/FmDDNn0+
+HP+mPfI+kYBqEVpo0Ztbc3UdxgFwGC8O1n8AQyriwHnSOtIiuBH62J/7qyC/3LEA
+ApRbDd9YszqzmODjQUddZKHmvc638VW+azc0EwIDAQABAoIBADZ/QGgUzInvsLp/
+zO2WbfYm39o/uhNAvk9RbLt1TIZbMFhyOpeKynHi3Swwd9xsfWX/U9zS/lGi/m31
+iKrhmaW4OA1G3vqpMcK7TBbFufYwUEaA+ZJX344euH8pIfdzyneMQ4z3Far2dS7l
+QsmjuilVV2kEFadveXewiYoVOWCu00w6bN8wy2SIHlQn+kIL6HQhWz12iKKflIKu
+eGRdzLHsKmBt6WbY1Wuhx7HU0fAKdlBDPxCHNlI+kybUYE9o5C2vJiaVM5wqJBgZ
+8Dz8kt1QbLJ910JoLXkLVQ8uC8NJKQwFtqQjTGPnEq0+wbgz6Ij599rKZkwW/xq9
+l6KoUiECgYEA6Ah42tVdkNW047f03xVYXFH96RgorHRS36mR8Y+ONUq1fwKidovC
+WjwVujt4OPf3l1W6iyn/F6cu/bsmvPrSc3HTN0B1V31QK4OjgetxQ2PSbTldH02J
+NPzkt+v+cPxXpx/P5mgt7Weefw5txU547KubGrHUV5rBKFtIx9pj16MCgYEA/EF0
+o19+D24DZAPwlDS5VbEd7FStnwY4oQ5PqbuNOSbSJLMWU0AqzXcRokp8UTyCZ0X3
+ATkS1REq97kShCuR+npTR6a6DlY7sdpPI1SMLNajgB2tkx0EOzX+PfNIbHUd4jpJ
+I0ZMAHv/OOtkzQHDaeTWBTrzsWm6/nTiykfduNECgYEA46AMD4HpPECqKAs66e5i
+tI6q7JSKskObWVdcmQEfnSAhVOwcvPb2Ptda6UuV8S0xcwDi88rLOUUFUFzc79+P
+vTkY38cYVi/VChsluDpk7ptqv0PbGu5Rf+3n4pZdEjI7OvR2W64wAAn67uIUxc7p
+yiO/ET0K9rYWb6S9jXGtKMkCgYEA2kPAqoO7zZoBMQ7/oR0lp/HC1HRIbiqx4RlC
+8Lgpb+QZPEwA6zPAVVvLVENi4d+bbcRp/xLlKpraNNJcJSSWAMbLPFoU7sbKjA87
+HnTPfRSTEA2d3Ibk3F7Rh8TzS3Ti0JZiJjVzGZAwu41iAMifzwaD8K6boUy80eNN
+QH2CaaECgYBUsLYvC/MiYg3w+LGOONuQongoVUXjGqnw2bjVa9RK7lwRdXPUqJ51
+MpVO98IkoLvGSI/0sGNP3GKNhC+eMGjJAVwFyEuOn+JsmMv9Y9uStIVi5tIHIhKw
+m7mp8il0kaftHdSxTbspG3tZ2fjIiFIZkLEOmRpd7ogWumgOajzUdA==
+-----END RSA PRIVATE KEY-----`, {
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1_oaep"
+ }
+ });
+ console.log("decryptedWithPrivate");
+ console.log(decryptedWithPrivate);
+ (() => {
+ let key = new NODERSA.NodeRSA({
+ b: 1024
+ });
+ key.setOptions({
+ encryptionScheme: "pkcs1"
+ });
+ let text = `你好drpy node-ras`;
+ let encrypted = key.encrypt(text, "base64");
+ console.log("encrypted: ", encrypted);
+ const decrypted = key.decrypt(encrypted, "utf8");
+ console.log("decrypted: ", decrypted)
+ })();
+ let t2 = (new Date).getTime();
+ console.log("rsa_demo_test 测试耗时:" + (t2 - t1) + "毫秒")
+}
+
+function pre() {
+ if (typeof rule.预处理 === "string" && rule.预处理 && rule.预处理.trim()) {
+ let code = rule.预处理.trim();
+ console.log("执行预处理代码:" + code);
+ if (code.startsWith("js:")) {
+ code = code.replace("js:", "")
+ }
+ try {
+ eval(code)
+ } catch (e) {
+ console.log(`预处理执行失败:${e.message}`)
+ }
+ }
+}
+let rule = {};
+const MOBILE_UA = "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36";
+const PC_UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36";
+const UA = "Mozilla/5.0";
+const UC_UA = "Mozilla/5.0 (Linux; U; Android 9; zh-CN; MI 9 Build/PKQ1.181121.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.5.5.1035 Mobile Safari/537.36";
+const IOS_UA = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";
+const RULE_CK = "cookie";
+const CATE_EXCLUDE = "首页|留言|APP|下载|资讯|新闻|动态";
+const TAB_EXCLUDE = "猜你|喜欢|下载|剧情|榜|评论";
+const OCR_RETRY = 3;
+const OCR_API = "https://api.nn.ci/ocr/b64/text";
+if (typeof MY_URL === "undefined") {
+ var MY_URL
+}
+var HOST;
+var RKEY;
+var fetch;
+var print;
+var log;
+var rule_fetch_params;
+var fetch_params;
+var oheaders;
+var _pdfh;
+var _pdfa;
+var _pd;
+const DOM_CHECK_ATTR = /(url|src|href|-original|-src|-play|-url|style)$/;
+const SPECIAL_URL = /^(ftp|magnet|thunder|ws):/;
+const NOADD_INDEX = /:eq|:lt|:gt|:first|:last|^body$|^#/;
+const URLJOIN_ATTR = /(url|src|href|-original|-src|-play|-url|style)$|^(data-|url-|src-)/;
+const SELECT_REGEX = /:eq|:lt|:gt|#/g;
+const SELECT_REGEX_A = /:eq|:lt|:gt/g;
+const $js = {
+ toString(func) {
+ let strfun = func.toString();
+ return strfun.replace(/^\(\)(\s+)?=>(\s+)?\{/, "js:").replace(/\}$/, "")
+ }
+};
+
+function window_b64() {
+ let b64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+ let base64DecodeChars = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 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, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);
+
+ function btoa(str) {
+ var out, i, len;
+ var c1, c2, c3;
+ len = str.length;
+ i = 0;
+ out = "";
+ while (i < len) {
+ c1 = str.charCodeAt(i++) & 255;
+ if (i == len) {
+ out += b64map.charAt(c1 >> 2);
+ out += b64map.charAt((c1 & 3) << 4);
+ out += "==";
+ break
+ }
+ c2 = str.charCodeAt(i++);
+ if (i == len) {
+ out += b64map.charAt(c1 >> 2);
+ out += b64map.charAt((c1 & 3) << 4 | (c2 & 240) >> 4);
+ out += b64map.charAt((c2 & 15) << 2);
+ out += "=";
+ break
+ }
+ c3 = str.charCodeAt(i++);
+ out += b64map.charAt(c1 >> 2);
+ out += b64map.charAt((c1 & 3) << 4 | (c2 & 240) >> 4);
+ out += b64map.charAt((c2 & 15) << 2 | (c3 & 192) >> 6);
+ out += b64map.charAt(c3 & 63)
+ }
+ return out
+ }
+
+ function atob(str) {
+ var c1, c2, c3, c4;
+ var i, len, out;
+ len = str.length;
+ i = 0;
+ out = "";
+ while (i < len) {
+ do {
+ c1 = base64DecodeChars[str.charCodeAt(i++) & 255]
+ } while (i < len && c1 == -1);
+ if (c1 == -1) break;
+ do {
+ c2 = base64DecodeChars[str.charCodeAt(i++) & 255]
+ } while (i < len && c2 == -1);
+ if (c2 == -1) break;
+ out += String.fromCharCode(c1 << 2 | (c2 & 48) >> 4);
+ do {
+ c3 = str.charCodeAt(i++) & 255;
+ if (c3 == 61) return out;
+ c3 = base64DecodeChars[c3]
+ } while (i < len && c3 == -1);
+ if (c3 == -1) break;
+ out += String.fromCharCode((c2 & 15) << 4 | (c3 & 60) >> 2);
+ do {
+ c4 = str.charCodeAt(i++) & 255;
+ if (c4 == 61) return out;
+ c4 = base64DecodeChars[c4]
+ } while (i < len && c4 == -1);
+ if (c4 == -1) break;
+ out += String.fromCharCode((c3 & 3) << 6 | c4)
+ }
+ return out
+ }
+ return {
+ atob: atob,
+ btoa: btoa
+ }
+}
+if (typeof atob !== "function" || typeof btoa !== "function") {
+ var {
+ atob,
+ btoa
+ } = window_b64()
+}
+if (typeof Object.assign !== "function") {
+ Object.assign = function() {
+ let target = arguments[0];
+ for (let i = 1; i < arguments.length; i++) {
+ let source = arguments[i];
+ for (let key in source) {
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
+ target[key] = source[key]
+ }
+ }
+ }
+ return target
+ }
+}
+if (!String.prototype.includes) {
+ String.prototype.includes = function(search, start) {
+ if (typeof start !== "number") {
+ start = 0
+ }
+ if (start + search.length > this.length) {
+ return false
+ } else {
+ return this.indexOf(search, start) !== -1
+ }
+ }
+}
+if (!Array.prototype.includes) {
+ Object.defineProperty(Array.prototype, "includes", {
+ value: function(searchElement, fromIndex) {
+ if (this == null) {
+ throw new TypeError('"this" is null or not defined')
+ }
+ var o = Object(this);
+ var len = o.length >>> 0;
+ if (len === 0) {
+ return false
+ }
+ var n = fromIndex | 0;
+ var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
+ while (k < len) {
+ if (o[k] === searchElement) {
+ return true
+ }
+ k++
+ }
+ return false
+ },
+ enumerable: false
+ })
+}
+if (typeof String.prototype.startsWith !== "function") {
+ String.prototype.startsWith = function(prefix) {
+ return this.slice(0, prefix.length) === prefix
+ }
+}
+if (typeof String.prototype.endsWith !== "function") {
+ String.prototype.endsWith = function(suffix) {
+ return this.indexOf(suffix, this.length - suffix.length) !== -1
+ }
+}
+Object.defineProperty(Object.prototype, "myValues", {
+ value: function(obj) {
+ if (obj == null) {
+ throw new TypeError("Cannot convert undefined or null to object")
+ }
+ var res = [];
+ for (var k in obj) {
+ if (obj.hasOwnProperty(k)) {
+ res.push(obj[k])
+ }
+ }
+ return res
+ },
+ enumerable: false
+});
+if (typeof Object.prototype.values !== "function") {
+ Object.defineProperty(Object.prototype, "values", {
+ value: function(obj) {
+ if (obj == null) {
+ throw new TypeError("Cannot convert undefined or null to object")
+ }
+ var res = [];
+ for (var k in obj) {
+ if (obj.hasOwnProperty(k)) {
+ res.push(obj[k])
+ }
+ }
+ return res
+ },
+ enumerable: false
+ })
+}
+if (typeof Array.prototype.join !== "function") {
+ Object.defineProperty(Array.prototype, "join", {
+ value: function(emoji) {
+ emoji = emoji || "";
+ let self = this;
+ let str = "";
+ let i = 0;
+ if (!Array.isArray(self)) {
+ throw String(self) + "is not Array"
+ }
+ if (self.length === 0) {
+ return ""
+ }
+ if (self.length === 1) {
+ return String(self[0])
+ }
+ i = 1;
+ str = this[0];
+ for (; i < self.length; i++) {
+ str += String(emoji) + String(self[i])
+ }
+ return str
+ },
+ enumerable: false
+ })
+}
+if (typeof Array.prototype.toReversed !== "function") {
+ Object.defineProperty(Array.prototype, "toReversed", {
+ value: function() {
+ const clonedList = this.slice();
+ const reversedList = clonedList.reverse();
+ return reversedList
+ },
+ enumerable: false
+ })
+}
+Object.defineProperty(Array.prototype, "append", {
+ value: Array.prototype.push,
+ enumerable: false
+});
+Object.defineProperty(String.prototype, "strip", {
+ value: String.prototype.trim,
+ enumerable: false
+});
+Object.defineProperty(String.prototype, "rstrip", {
+ value: function(chars) {
+ let regex = new RegExp(chars + "$");
+ return this.replace(regex, "")
+ },
+ enumerable: false
+});
+
+function 是否正版(vipUrl) {
+ let flag = new RegExp("qq.com|iqiyi.com|youku.com|mgtv.com|bilibili.com|sohu.com|ixigua.com|pptv.com|miguvideo.com|le.com|1905.com|fun.tv");
+ return flag.test(vipUrl)
+}
+
+function urlDeal(vipUrl) {
+ if (!vipUrl) {
+ return ""
+ }
+ if (!是否正版(vipUrl)) {
+ return vipUrl
+ }
+ if (!/miguvideo/.test(vipUrl)) {
+ vipUrl = vipUrl.split("#")[0].split("?")[0]
+ }
+ return vipUrl
+}
+
+function setResult(d) {
+ if (!Array.isArray(d)) {
+ return []
+ }
+ VODS = [];
+ d.forEach(function(it) {
+ let obj = {
+ vod_id: it.url || "",
+ vod_name: it.title || "",
+ vod_remarks: it.desc || "",
+ vod_content: it.content || "",
+ vod_pic: it.pic_url || it.img || ""
+ };
+ let keys = Object.keys(it);
+ if (keys.includes("tname")) {
+ obj.type_name = it.tname || ""
+ }
+ if (keys.includes("tid")) {
+ obj.type_id = it.tid || ""
+ }
+ if (keys.includes("year")) {
+ obj.vod_year = it.year || ""
+ }
+ if (keys.includes("actor")) {
+ obj.vod_actor = it.actor || ""
+ }
+ if (keys.includes("director")) {
+ obj.vod_director = it.director || ""
+ }
+ if (keys.includes("area")) {
+ obj.vod_area = it.area || ""
+ }
+ VODS.push(obj)
+ });
+ return VODS
+}
+
+function setResult2(res) {
+ VODS = res.list || [];
+ return VODS
+}
+
+function setHomeResult(res) {
+ if (!res || typeof res !== "object") {
+ return []
+ }
+ return setResult(res.list)
+}
+
+function rc(js) {
+ if (js === "maomi_aes.js") {
+ var a = CryptoJS.enc.Utf8.parse("625222f9149e961d");
+ var t = CryptoJS.enc.Utf8.parse("5efdtf6060e2o330");
+ return {
+ De: function(word) {
+ word = CryptoJS.enc.Hex.parse(word);
+ return CryptoJS.AES.decrypt(CryptoJS.enc.Base64.stringify(word), a, {
+ iv: t,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ }).toString(CryptoJS.enc.Utf8)
+ },
+ En: function(word) {
+ var Encrypted = CryptoJS.AES.encrypt(word, a, {
+ iv: t,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ });
+ return Encrypted.ciphertext.toString()
+ }
+ }
+ }
+ return {}
+}
+
+function maoss(jxurl, ref, key) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ eval(getCryptoJS());
+ try {
+ var getVideoInfo = function(text) {
+ return CryptoJS.AES.decrypt(text, key, {
+ iv: iv,
+ padding: CryptoJS.pad.Pkcs7
+ }).toString(CryptoJS.enc.Utf8)
+ };
+ var token_key = key == undefined ? "dvyYRQlnPRCMdQSe" : key;
+ if (ref) {
+ var html = request(jxurl, {
+ headers: {
+ Referer: ref
+ }
+ })
+ } else {
+ var html = request(jxurl)
+ }
+ if (html.indexOf("&btwaf=") != -1) {
+ html = request(jxurl + "&btwaf" + html.match(/&btwaf(.*?)"/)[1], {
+ headers: {
+ Referer: ref
+ }
+ })
+ }
+ var token_iv = html.split('_token = "')[1].split('"')[0];
+ var key = CryptoJS.enc.Utf8.parse(token_key);
+ var iv = CryptoJS.enc.Utf8.parse(token_iv);
+ eval(html.match(/var config = {[\s\S]*?}/)[0] + "");
+ if (!config.url.startsWith("http")) {
+ config.url = CryptoJS.AES.decrypt(config.url, key, {
+ iv: iv,
+ padding: CryptoJS.pad.Pkcs7
+ }).toString(CryptoJS.enc.Utf8)
+ }
+ return config.url
+ } catch (e) {
+ return ""
+ }
+}
+
+function urlencode(str) {
+ str = (str + "").toString();
+ return encodeURIComponent(str).replace(/!/g, "%21").replace(/'/g, "%27").replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\*/g, "%2A").replace(/%20/g, "+")
+}
+
+function encodeUrl(str) {
+ if (typeof encodeURI == "function") {
+ return encodeURI(str)
+ } else {
+ str = (str + "").toString();
+ return encodeURIComponent(str).replace(/%2F/g, "/").replace(/%3F/g, "?").replace(/%3A/g, ":").replace(/%40/g, "@").replace(/%3D/g, "=").replace(/%3A/g, ":").replace(/%2C/g, ",").replace(/%2B/g, "+").replace(/%24/g, "$")
+ }
+}
+
+function base64Encode(text) {
+ return CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(text))
+}
+
+function base64Decode(text) {
+ return CryptoJS.enc.Utf8.stringify(CryptoJS.enc.Base64.parse(text))
+}
+
+function md5(text) {
+ return CryptoJS.MD5(text).toString()
+}
+
+function uint8ArrayToBase64(uint8Array) {
+ let binaryString = String.fromCharCode.apply(null, Array.from(uint8Array));
+ return btoa(binaryString)
+}
+
+function Utf8ArrayToStr(array) {
+ var out, i, len, c;
+ var char2, char3;
+ out = "";
+ len = array.length;
+ i = 0;
+ while (i < len) {
+ c = array[i++];
+ switch (c >> 4) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ out += String.fromCharCode(c);
+ break;
+ case 12:
+ case 13:
+ char2 = array[i++];
+ out += String.fromCharCode((c & 31) << 6 | char2 & 63);
+ break;
+ case 14:
+ char2 = array[i++];
+ char3 = array[i++];
+ out += String.fromCharCode((c & 15) << 12 | (char2 & 63) << 6 | (char3 & 63) << 0);
+ break
+ }
+ }
+ return out
+}
+
+function gzip(str) {
+ let arr = pako.gzip(str, {});
+ return uint8ArrayToBase64(arr)
+}
+
+function ungzip(b64Data) {
+ let strData = atob(b64Data);
+ const charData = strData.split("").map(function(x) {
+ return x.charCodeAt(0)
+ });
+ const binData = new Uint8Array(charData);
+ const data = pako.inflate(binData);
+ return Utf8ArrayToStr(data)
+}
+
+function encodeStr(input, encoding) {
+ encoding = encoding || "gbk";
+ if (encoding.startsWith("gb")) {
+ const strTool = gbkTool();
+ input = strTool.encode(input)
+ }
+ return input
+}
+
+function decodeStr(input, encoding) {
+ encoding = encoding || "gbk";
+ if (encoding.startsWith("gb")) {
+ const strTool = gbkTool();
+ input = strTool.decode(input)
+ }
+ return input
+}
+
+function getCryptoJS() {
+ return 'console.log("CryptoJS已装载");'
+}
+const RSA = {
+ decode: function(data, key, option) {
+ option = option || {};
+ if (typeof JSEncrypt === "function") {
+ let chunkSize = option.chunkSize || 117;
+ let privateKey = this.getPrivateKey(key);
+ const decryptor = new JSEncrypt;
+ decryptor.setPrivateKey(privateKey);
+ let uncrypted = "";
+ uncrypted = decryptor.decryptUnicodeLong(data);
+ return uncrypted
+ } else {
+ return false
+ }
+ },
+ encode: function(data, key, option) {
+ option = option || {};
+ if (typeof JSEncrypt === "function") {
+ let chunkSize = option.chunkSize || 117;
+ let publicKey = this.getPublicKey(key);
+ const encryptor = new JSEncrypt;
+ encryptor.setPublicKey(publicKey);
+ let encrypted = "";
+ encrypted = encryptor.encryptUnicodeLong(data);
+ return encrypted
+ } else {
+ return false
+ }
+ },
+ fixKey(key, prefix, endfix) {
+ if (!key.includes(prefix)) {
+ key = prefix + key
+ }
+ if (!key.includes(endfix)) {
+ key += endfix
+ }
+ return key
+ },
+ getPrivateKey(key) {
+ let prefix = "-----BEGIN RSA PRIVATE KEY-----";
+ let endfix = "-----END RSA PRIVATE KEY-----";
+ return this.fixKey(key, prefix, endfix)
+ },
+ getPublicKey(key) {
+ let prefix = "-----BEGIN PUBLIC KEY-----";
+ let endfix = "-----END PUBLIC KEY-----";
+ return this.fixKey(key, prefix, endfix)
+ }
+};
+
+function getProxyUrl() {
+ if (typeof getProxy === "function") {
+ return getProxy(true)
+ } else {
+ return "http://127.0.0.1:9978/proxy?do=js"
+ }
+}
+
+function fixAdM3u8(m3u8_text, m3u8_url, ad_remove) {
+ if (!m3u8_text && !m3u8_url || !m3u8_text && m3u8_url && !m3u8_url.startsWith("http")) {
+ return ""
+ }
+ if (!m3u8_text) {
+ log("m3u8_url:" + m3u8_url);
+ m3u8_text = request(m3u8_url)
+ }
+ log("len(m3u8_text):" + m3u8_text.length);
+ if (!ad_remove) {
+ return m3u8_text
+ }
+ if (ad_remove.startsWith("reg:")) {
+ ad_remove = ad_remove.slice(4)
+ } else if (ad_remove.startsWith("js:")) {
+ ad_remove = ad_remove.slice(3)
+ }
+ let m3u8_start = m3u8_text.slice(0, m3u8_text.indexOf("#EXTINF")).trim();
+ let m3u8_body = m3u8_text.slice(m3u8_text.indexOf("#EXTINF"), m3u8_text.indexOf("#EXT-X-ENDLIST")).trim();
+ let m3u8_end = m3u8_text.slice(m3u8_text.indexOf("#EXT-X-ENDLIST")).trim();
+ let murls = [];
+ let m3_body_list = m3u8_body.split("\n");
+ let m3_len = m3_body_list.length;
+ let i = 0;
+ while (i < m3_len) {
+ let mi = m3_body_list[i];
+ let mi_1 = m3_body_list[i + 1];
+ if (mi.startsWith("#EXTINF")) {
+ murls.push([mi, mi_1].join("&"));
+ i += 2
+ } else if (mi.startsWith("#EXT-X-DISCONTINUITY")) {
+ let mi_2 = m3_body_list[i + 2];
+ murls.push([mi, mi_1, mi_2].join("&"));
+ i += 3
+ } else {
+ break
+ }
+ }
+ let new_m3u8_body = [];
+ for (let murl of murls) {
+ if (ad_remove && new RegExp(ad_remove).test(murl)) {} else {
+ let murl_list = murl.split("&");
+ if (!murl_list[murl_list.length - 1].startsWith("http") && m3u8_url.startsWith("http")) {
+ murl_list[murl_list.length - 1] = urljoin(m3u8_url, murl_list[murl_list.length - 1])
+ }
+ murl_list.forEach(it => {
+ new_m3u8_body.push(it)
+ })
+ }
+ }
+ new_m3u8_body = new_m3u8_body.join("\n").trim();
+ m3u8_text = [m3u8_start, new_m3u8_body, m3u8_end].join("\n").trim();
+ return m3u8_text
+}
+
+function fixAdM3u8Ai(m3u8_url, headers) {
+ let ts = (new Date).getTime();
+ let option = headers ? {
+ headers: headers
+ } : {};
+
+ function b(s1, s2) {
+ let i = 0;
+ while (i < s1.length) {
+ if (s1[i] !== s2[i]) {
+ break
+ }
+ i++
+ }
+ return i
+ }
+
+ function reverseString(str) {
+ return str.split("").reverse().join("")
+ }
+ let m3u8 = request(m3u8_url, option);
+ m3u8 = m3u8.trim().split("\n").map(it => it.startsWith("#") ? it : urljoin(m3u8_url, it)).join("\n");
+ m3u8 = m3u8.replace(/\n\n/gi, "\n");
+ let last_url = m3u8.split("\n").slice(-1)[0];
+ if (last_url.length < 5) {
+ last_url = m3u8.split("\n").slice(-2)[0]
+ }
+ if (last_url.includes(".m3u8") && last_url !== m3u8_url) {
+ m3u8_url = urljoin2(m3u8_url, last_url);
+ log("嵌套的m3u8_url:" + m3u8_url);
+ m3u8 = request(m3u8_url, option)
+ }
+ let s = m3u8.trim().split("\n").filter(it => it.trim()).join("\n");
+ let ss = s.split("\n");
+ if (m3u8_url.indexOf("ffzy") > 0) {
+ let j = 0,
+ k1 = 0,
+ m = 0,
+ n = 0,
+ t = 0;
+ let s2 = "";
+ for (let i = 0; i < ss.length; i++) {
+ let s = ss[i];
+ let s1 = "";
+ if (s.startsWith("#EXTINF")) {
+ s1 = s.slice(8);
+ n++;
+ if (n == 1) k1 = i;
+ if (s2.indexOf(s1) == -1) {
+ s2 = s2 + s1;
+ m++
+ }
+ t = t + parseFloat(s1);
+ i++;
+ s = ss[i]
+ }
+ if (s.startsWith("#EXT-X-DISCONTINUITY")) {
+ if (n == 5) {
+ log("n:" + n);
+ log("m:" + m);
+ for (let j = k1; j < k1 + n * 2; j++) {
+ log(ss[j])
+ }
+ log("广告位置:" + k1);
+ log("数据条数:" + n);
+ log("数据种类:" + m);
+ log("广告时间:" + t.toFixed(5));
+ ss.splice(k1, 2 * n + 1);
+ i = i - 2 * n + 1
+ }
+ t = 0;
+ m = 0;
+ n = 0;
+ s2 = ""
+ }
+ }
+ }
+ let firststr = "";
+ let maxl = 0;
+ let kk = 0;
+ let kkk1 = 1;
+ let kkk2 = 0;
+ let secondstr = "";
+ for (let i = 0; i < ss.length; i++) {
+ let s = ss[i];
+ if (!s.startsWith("#")) {
+ if (kk == 0) firststr = s;
+ if (kk > 0) {
+ if (maxl > b(firststr, s) + 1) {
+ if (secondstr.length < 5) secondstr = s;
+ kkk2++
+ } else {
+ maxl = b(firststr, s);
+ kkk1++
+ }
+ }
+ kk++;
+ if (kk >= 30) break
+ }
+ }
+ if (kkk2 > kkk1) firststr = secondstr;
+ let firststrlen = firststr.length;
+ let ml = Math.round(ss.length / 2).toString().length;
+ let maxc = 0;
+ let laststr = ss.toReversed().find(x => {
+ if (!x.startsWith("#")) {
+ let k = b(reverseString(firststr), reverseString(x));
+ maxl = b(firststr, x);
+ maxc++;
+ if (firststrlen - maxl <= ml + k || maxc > 10) {
+ return true
+ }
+ }
+ return false
+ });
+ log("最后一条切片:" + laststr);
+ let ad_urls = [];
+ for (let i = 0; i < ss.length; i++) {
+ let s = ss[i];
+ if (!s.startsWith("#")) {
+ if (b(firststr, s) < maxl) {
+ ad_urls.push(s);
+ ss.splice(i - 1, 2);
+ i = i - 2
+ } else {
+ ss[i] = urljoin(m3u8_url, s)
+ }
+ } else {
+ ss[i] = s.replace(/URI=\"(.*)\"/, 'URI="' + urljoin(m3u8_url, "$1") + '"')
+ }
+ }
+ log("处理的m3u8地址:" + m3u8_url);
+ log("----广告地址----");
+ log(ad_urls);
+ m3u8 = ss.join("\n");
+ log("处理耗时:" + ((new Date).getTime() - ts).toString());
+ log(m3u8);
+ return m3u8
+}
+
+function forceOrder(lists, key, option) {
+ let start = Math.floor(lists.length / 2);
+ let end = Math.min(lists.length - 1, start + 1);
+ if (start >= end) {
+ return lists
+ }
+ let first = lists[start];
+ let second = lists[end];
+ if (key) {
+ try {
+ first = first[key];
+ second = second[key]
+ } catch (e) {}
+ }
+ if (option && typeof option === "function") {
+ try {
+ first = option(first);
+ second = option(second)
+ } catch (e) {}
+ }
+ first += "";
+ second += "";
+ if (first.match(/(\d+)/) && second.match(/(\d+)/)) {
+ let num1 = Number(first.match(/(\d+)/)[1]);
+ let num2 = Number(second.match(/(\d+)/)[1]);
+ if (num1 > num2) {
+ lists.reverse()
+ }
+ }
+ return lists
+}
+let VODS = [];
+let VOD = {};
+let TABS = [];
+let LISTS = [];
+
+function getQuery(url) {
+ try {
+ if (url.indexOf("?") > -1) {
+ url = url.slice(url.indexOf("?") + 1)
+ }
+ let arr = url.split("#")[0].split("&");
+ const resObj = {};
+ arr.forEach(item => {
+ let arr1 = item.split("=");
+ let key = arr1[0];
+ let value = arr1.slice(1).join("=");
+ resObj[key] = value
+ });
+ return resObj
+ } catch (err) {
+ log(`getQuery发生错误:${e.message}`);
+ return {}
+ }
+}
+
+function urljoin(fromPath, nowPath) {
+ fromPath = fromPath || "";
+ nowPath = nowPath || "";
+ return joinUrl(fromPath, nowPath)
+}
+var urljoin2 = urljoin;
+const defaultParser = {
+ pdfh: pdfh,
+ pdfa: pdfa,
+ pd: pd
+};
+
+function pdfh2(html, parse) {
+ let html2 = html;
+ try {
+ if (typeof html !== "string") {
+ html2 = html.rr(html.ele).toString()
+ }
+ } catch (e) {
+ print(`html对象转文本发生了错误:${e.message}`)
+ }
+ let result = defaultParser.pdfh(html2, parse);
+ let option = parse.includes("&&") ? parse.split("&&").slice(-1)[0] : parse.split(" ").slice(-1)[0];
+ if (/style/.test(option.toLowerCase()) && /url\(/.test(result)) {
+ try {
+ result = result.match(/url\((.*?)\)/)[1];
+ result = result.replace(/^['|"](.*)['|"]$/, "$1")
+ } catch (e) {}
+ }
+ return result
+}
+
+function pdfa2(html, parse) {
+ let html2 = html;
+ try {
+ if (typeof html !== "string") {
+ html2 = html.rr(html.ele).toString()
+ }
+ } catch (e) {
+ print(`html对象转文本发生了错误:${e.message}`)
+ }
+ return defaultParser.pdfa(html2, parse)
+}
+
+function pd2(html, parse, uri) {
+ let ret = pdfh2(html, parse);
+ if (typeof uri === "undefined" || !uri) {
+ uri = ""
+ }
+ if (DOM_CHECK_ATTR.test(parse) && !SPECIAL_URL.test(ret)) {
+ if (/http/.test(ret)) {
+ ret = ret.slice(ret.indexOf("http"))
+ } else {
+ ret = urljoin(MY_URL, ret)
+ }
+ }
+ return ret
+}
+const parseTags = {
+ jsp: {
+ pdfh: pdfh2,
+ pdfa: pdfa2,
+ pd: pd2
+ },
+ json: {
+ pdfh(html, parse) {
+ if (!parse || !parse.trim()) {
+ return ""
+ }
+ if (typeof html === "string") {
+ html = JSON.parse(html)
+ }
+ parse = parse.trim();
+ if (!parse.startsWith("$.")) {
+ parse = "$." + parse
+ }
+ parse = parse.split("||");
+ for (let ps of parse) {
+ let ret = cheerio.jp(ps, html);
+ if (Array.isArray(ret)) {
+ ret = ret[0] || ""
+ } else {
+ ret = ret || ""
+ }
+ if (ret && typeof ret !== "string") {
+ ret = ret.toString()
+ }
+ if (ret) {
+ return ret
+ }
+ }
+ return ""
+ },
+ pdfa(html, parse) {
+ if (!parse || !parse.trim()) {
+ return ""
+ }
+ if (typeof html === "string") {
+ html = JSON.parse(html)
+ }
+ parse = parse.trim();
+ if (!parse.startsWith("$.")) {
+ parse = "$." + parse
+ }
+ let ret = cheerio.jp(parse, html);
+ if (Array.isArray(ret) && Array.isArray(ret[0]) && ret.length === 1) {
+ return ret[0] || []
+ }
+ return ret || []
+ },
+ pd(html, parse) {
+ let ret = parseTags.json.pdfh(html, parse);
+ if (ret) {
+ return urljoin(MY_URL, ret)
+ }
+ return ret
+ }
+ },
+ jq: {
+ pdfh(html, parse) {
+ if (!html || !parse || !parse.trim()) {
+ return ""
+ }
+ parse = parse.trim();
+ let result = defaultParser.pdfh(html, parse);
+ return result
+ },
+ pdfa(html, parse) {
+ if (!html || !parse || !parse.trim()) {
+ return []
+ }
+ parse = parse.trim();
+ let result = defaultParser.pdfa(html, parse);
+ print(`pdfa解析${parse}=>${result.length}`);
+ return result
+ },
+ pd(html, parse, base_url) {
+ if (!html || !parse || !parse.trim()) {
+ return ""
+ }
+ parse = parse.trim();
+ base_url = base_url || MY_URL;
+ return defaultParser.pd(html, parse, base_url)
+ }
+ },
+ getParse(p0) {
+ if (p0.startsWith("jsp:")) {
+ return this.jsp
+ } else if (p0.startsWith("json:")) {
+ return this.json
+ } else if (p0.startsWith("jq:")) {
+ return this.jq
+ } else {
+ return this.jq
+ }
+ }
+};
+const stringify = JSON.stringify;
+const jsp = parseTags.jsp;
+const jq = parseTags.jq;
+
+function readFile(filePath) {
+ filePath = filePath || "./uri.min.js";
+ var fd = os.open(filePath);
+ var buffer = new ArrayBuffer(1024);
+ var len = os.read(fd, buffer, 0, 1024);
+ console.log(len);
+ let text = String.fromCharCode.apply(null, new Uint8Array(buffer));
+ console.log(text);
+ return text
+}
+
+function dealJson(html) {
+ try {
+ html = html.trim();
+ if (!(html.startsWith("{") && html.endsWith("}") || html.startsWith("[") && html.endsWith("]"))) {
+ html = "{" + html.match(/.*?\{(.*)\}/m)[1] + "}"
+ }
+ } catch (e) {}
+ try {
+ html = JSON.parse(html)
+ } catch (e) {}
+ return html
+}
+var OcrApi = {
+ api: OCR_API,
+ classification: function(img) {
+ let code = "";
+ try {
+ log("通过drpy_ocr验证码接口过验证...");
+ let html = "";
+ if (this.api.endsWith("drpy/text")) {
+ html = request(this.api, {
+ data: {
+ img: img
+ },
+ headers: {
+ "User-Agent": PC_UA
+ },
+ method: "POST"
+ }, true)
+ } else {
+ html = post(this.api, {
+ body: img
+ })
+ }
+ code = html || ""
+ } catch (e) {
+ log(`OCR识别验证码发生错误:${e.message}`)
+ }
+ return code
+ }
+};
+
+function verifyCode(url) {
+ let cnt = 0;
+ let host = getHome(url);
+ let cookie = "";
+ while (cnt < OCR_RETRY) {
+ try {
+ let yzm_url = `${host}/index.php/verify/index.html`;
+ console.log(`验证码链接:${yzm_url}`);
+ let hhtml = request(yzm_url, {
+ withHeaders: true,
+ toBase64: true
+ }, true);
+ let json = JSON.parse(hhtml);
+ if (!cookie) {
+ let setCk = Object.keys(json).find(it => it.toLowerCase() === "set-cookie");
+ cookie = setCk ? json[setCk].split(";")[0] : ""
+ }
+ console.log("cookie:" + cookie);
+ let img = json.body;
+ let code = OcrApi.classification(img);
+ console.log(`第${cnt+1}次验证码识别结果:${code}`);
+ let submit_url = `${host}/index.php/ajax/verify_check?type=search&verify=${code}`;
+ console.log(submit_url);
+ let html = request(submit_url, {
+ headers: {
+ Cookie: cookie
+ },
+ method: "POST"
+ });
+ html = JSON.parse(html);
+ if (html.msg === "ok") {
+ console.log(`第${cnt+1}次验证码提交成功`);
+ return cookie
+ } else if (html.msg !== "ok" && cnt + 1 >= OCR_RETRY) {
+ cookie = ""
+ }
+ } catch (e) {
+ console.log(`第${cnt+1}次验证码提交失败:${e.message}`);
+ if (cnt + 1 >= OCR_RETRY) {
+ cookie = ""
+ }
+ }
+ cnt += 1
+ }
+ return cookie
+}
+
+function setItem(k, v) {
+ local.set(RKEY, k, v);
+ console.log(`规则${RKEY}设置${k} => ${v}`)
+}
+
+function getItem(k, v) {
+ return local.get(RKEY, k) || v
+}
+
+function clearItem(k) {
+ local.delete(RKEY, k)
+}
+
+function getHome(url) {
+ if (!url) {
+ return ""
+ }
+ let tmp = url.split("//");
+ url = tmp[0] + "//" + tmp[1].split("/")[0];
+ try {
+ url = decodeURIComponent(url)
+ } catch (e) {}
+ return url
+}
+
+function buildUrl(url, obj) {
+ obj = obj || {};
+ if (url.indexOf("?") < 0) {
+ url += "?"
+ }
+ let param_list = [];
+ let keys = Object.keys(obj);
+ keys.forEach(it => {
+ param_list.push(it + "=" + obj[it])
+ });
+ let prs = param_list.join("&");
+ if (keys.length > 0 && !url.endsWith("?")) {
+ url += "&"
+ }
+ url += prs;
+ return url
+}
+
+function $require(url) {
+ eval(request(url))
+}
+
+function keysToLowerCase(obj) {
+ return Object.keys(obj).reduce((result, key) => {
+ const newKey = key.toLowerCase();
+ result[newKey] = obj[key];
+ return result
+ }, {})
+}
+
+function parseQueryString(query) {
+ const params = {};
+ query.split("&").forEach(function(part) {
+ const regex = /^(.*?)=(.*)/;
+ const match = part.match(regex);
+ if (match) {
+ const key = decodeURIComponent(match[1]);
+ const value = decodeURIComponent(match[2]);
+ params[key] = value
+ }
+ });
+ return params
+}
+
+function encodeIfContainsSpecialChars(value) {
+ const specialChars = ":/?#[]@!$'()*+,;=%";
+ if (specialChars.split("").some(char => value.includes(char))) {
+ return encodeURIComponent(value)
+ }
+ return value
+}
+
+function objectToQueryString(obj) {
+ const encoded = [];
+ for (let key in obj) {
+ if (obj.hasOwnProperty(key)) {
+ encoded.push(encodeURIComponent(key) + "=" + encodeIfContainsSpecialChars(obj[key]))
+ }
+ }
+ return encoded.join("&")
+}
+
+function request(url, obj, ocr_flag) {
+ ocr_flag = ocr_flag || false;
+ if (typeof obj === "undefined" || !obj || obj === {}) {
+ if (!fetch_params || !fetch_params.headers) {
+ let headers = {
+ "User-Agent": MOBILE_UA
+ };
+ if (rule.headers) {
+ Object.assign(headers, rule.headers)
+ }
+ if (!fetch_params) {
+ fetch_params = {}
+ }
+ fetch_params.headers = headers
+ }
+ if (!fetch_params.headers.Referer) {
+ fetch_params.headers.Referer = getHome(url)
+ }
+ obj = fetch_params
+ } else {
+ let headers = obj.headers || {};
+ let keys = Object.keys(headers).map(it => it.toLowerCase());
+ if (!keys.includes("user-agent")) {
+ headers["User-Agent"] = MOBILE_UA;
+ if (typeof fetch_params === "object" && fetch_params && fetch_params.headers) {
+ let fetch_headers = keysToLowerCase(fetch_params.headers);
+ if (fetch_headers["user-agent"]) {
+ headers["User-Agent"] = fetch_headers["user-agent"]
+ }
+ }
+ }
+ if (!keys.includes("referer")) {
+ headers["Referer"] = getHome(url)
+ }
+ obj.headers = headers
+ }
+ if (rule.encoding && rule.encoding !== "utf-8" && !ocr_flag) {
+ if (!obj.headers.hasOwnProperty("Content-Type") && !obj.headers.hasOwnProperty("content-type")) {
+ obj.headers["Content-Type"] = "text/html; charset=" + rule.encoding
+ }
+ }
+ if (typeof obj.body != "undefined" && obj.body && typeof obj.body === "string") {
+ if (!obj.headers.hasOwnProperty("Content-Type") && !obj.headers.hasOwnProperty("content-type")) {
+ obj.headers["Content-Type"] = "application/x-www-form-urlencoded; charset=" + rule.encoding
+ }
+ } else if (typeof obj.body != "undefined" && obj.body && typeof obj.body === "object") {
+ obj.data = obj.body;
+ delete obj.body
+ }
+ if (!url) {
+ return obj.withHeaders ? "{}" : ""
+ }
+ if (obj.toBase64) {
+ obj.buffer = 2;
+ delete obj.toBase64
+ }
+ if (obj.redirect === false) {
+ obj.redirect = 0
+ }
+ if (obj.headers.hasOwnProperty("Content-Type") || obj.headers.hasOwnProperty("content-type")) {
+ let _contentType = obj.headers["Content-Type"] || obj.headers["content-type"] || "";
+ if (_contentType.includes("application/x-www-form-urlencoded")) {
+ log("custom body is application/x-www-form-urlencoded");
+ if (typeof obj.body == "string") {
+ let temp_obj = parseQueryString(obj.body);
+ console.log(JSON.stringify(temp_obj))
+ }
+ }
+ }
+ console.log(JSON.stringify(obj.headers));
+ console.log("request:" + url + `|method:${obj.method||"GET"}|body:${obj.body||""}`);
+ let res = req(url, obj);
+ let html = res.content || "";
+ if (obj.withHeaders) {
+ let htmlWithHeaders = res.headers;
+ htmlWithHeaders.body = html;
+ return JSON.stringify(htmlWithHeaders)
+ } else {
+ return html
+ }
+}
+
+function post(url, obj) {
+ obj = obj || {};
+ obj.method = "POST";
+ return request(url, obj)
+}
+
+function reqCookie(url, obj, all_cookie) {
+ obj = obj || {};
+ obj.withHeaders = true;
+ all_cookie = all_cookie || false;
+ let html = request(url, obj);
+ let json = JSON.parse(html);
+ let setCk = Object.keys(json).find(it => it.toLowerCase() === "set-cookie");
+ let cookie = setCk ? json[setCk] : "";
+ if (Array.isArray(cookie)) {
+ cookie = cookie.join(";")
+ }
+ if (!all_cookie) {
+ cookie = cookie.split(";")[0]
+ }
+ html = json.body;
+ return {
+ cookie: cookie,
+ html: html
+ }
+}
+fetch = request;
+print = function(data) {
+ data = data || "";
+ if (typeof data == "object" && Object.keys(data).length > 0) {
+ try {
+ data = JSON.stringify(data);
+ console.log(data)
+ } catch (e) {
+ console.log(typeof data + ":" + data.length);
+ return
+ }
+ } else if (typeof data == "object" && Object.keys(data).length < 1) {
+ console.log("null object")
+ } else {
+ console.log(data)
+ }
+};
+log = print;
+
+function checkHtml(html, url, obj) {
+ if (/\?btwaf=/.test(html)) {
+ let btwaf = html.match(/btwaf(.*?)"/)[1];
+ url = url.split("#")[0] + "?btwaf" + btwaf;
+ print("宝塔验证访问链接:" + url);
+ html = request(url, obj)
+ }
+ return html
+}
+
+function getCode(url, obj) {
+ let html = request(url, obj);
+ html = checkHtml(html, url, obj);
+ return html
+}
+
+function getHtml(url) {
+ let obj = {};
+ if (rule.headers) {
+ obj.headers = rule.headers
+ }
+ let cookie = getItem(RULE_CK, "");
+ if (cookie) {
+ if (obj.headers && !Object.keys(obj.headers).map(it => it.toLowerCase()).includes("cookie")) {
+ log("历史无cookie,新增过验证后的cookie");
+ obj.headers["Cookie"] = cookie
+ } else if (obj.headers && obj.headers.cookie && obj.headers.cookie !== cookie) {
+ obj.headers["Cookie"] = cookie;
+ log("历史有小写过期的cookie,更新过验证后的cookie")
+ } else if (obj.headers && obj.headers.Cookie && obj.headers.Cookie !== cookie) {
+ obj.headers["Cookie"] = cookie;
+ log("历史有大写过期的cookie,更新过验证后的cookie")
+ } else if (!obj.headers) {
+ obj.headers = {
+ Cookie: cookie
+ };
+ log("历史无headers,更新过验证后的含cookie的headers")
+ }
+ }
+ let html = getCode(url, obj);
+ return html
+}
+
+function homeParse(homeObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let classes = [];
+ if (homeObj.class_name && homeObj.class_url) {
+ let names = homeObj.class_name.split("&");
+ let urls = homeObj.class_url.split("&");
+ let cnt = Math.min(names.length, urls.length);
+ for (let i = 0; i < cnt; i++) {
+ classes.push({
+ type_id: urls[i],
+ type_name: names[i]
+ })
+ }
+ }
+ if (homeObj.class_parse) {
+ if (homeObj.class_parse.startsWith("js:")) {
+ var input = homeObj.MY_URL;
+ try {
+ eval(homeObj.class_parse.replace("js:", ""));
+ if (Array.isArray(input)) {
+ classes = input
+ }
+ } catch (e) {
+ log(`通过js动态获取分类发生了错误:${e.message}`)
+ }
+ } else {
+ let p = homeObj.class_parse.split(";");
+ let p0 = p[0];
+ let _ps = parseTags.getParse(p0);
+ let is_json = p0.startsWith("json:");
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ MY_URL = rule.url;
+ if (is_json) {
+ try {
+ let cms_cate_url = homeObj.MY_URL.replace("ac=detail", "ac=list");
+ let html = homeObj.home_html || getHtml(cms_cate_url);
+ if (html) {
+ if (cms_cate_url === homeObj.MY_URL) {
+ homeHtmlCache = html
+ }
+ let list = _pdfa(html, p0.replace("json:", ""));
+ if (list && list.length > 0) {
+ classes = list
+ }
+ }
+ } catch (e) {
+ console.log(e.message)
+ }
+ } else if (p.length >= 3 && !is_json) {
+ try {
+ let html = homeObj.home_html || getHtml(homeObj.MY_URL);
+ if (html) {
+ homeHtmlCache = html;
+ let list = _pdfa(html, p0);
+ if (list && list.length > 0) {
+ list.forEach((it, idex) => {
+ try {
+ let name = _pdfh(it, p[1]);
+ if (homeObj.cate_exclude && new RegExp(homeObj.cate_exclude).test(name)) {
+ return
+ }
+ let url = _pd(it, p[2]);
+ if (p.length > 3 && p[3] && !homeObj.home_html) {
+ let exp = new RegExp(p[3]);
+ url = url.match(exp)[1]
+ }
+ classes.push({
+ type_id: url.trim(),
+ type_name: name.trim()
+ })
+ } catch (e) {
+ console.log(`分类列表定位第${idex}个元素正常报错:${e.message}`)
+ }
+ })
+ }
+ }
+ } catch (e) {
+ console.log(e.message)
+ }
+ }
+ }
+ }
+ classes = classes.filter(it => !homeObj.cate_exclude || !new RegExp(homeObj.cate_exclude).test(it.type_name));
+ let resp = {
+ class: classes
+ };
+ if (homeObj.filter) {
+ resp.filters = homeObj.filter
+ }
+ console.log(JSON.stringify(resp));
+ return JSON.stringify(resp)
+}
+
+function getPP(p, pn, pp, ppn) {
+ try {
+ let ps = p[pn] === "*" && pp.length > ppn ? pp[ppn] : p[pn];
+ return ps
+ } catch (e) {
+ return ""
+ }
+}
+
+function homeVodParse(homeVodObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let d = [];
+ MY_URL = homeVodObj.homeUrl;
+ console.log(MY_URL);
+ let t1 = (new Date).getTime();
+ let p = homeVodObj.推荐;
+ print("p:" + p);
+ if (p === "*" && rule.一级) {
+ p = rule.一级;
+ homeVodObj.double = false
+ }
+ if (!p || typeof p !== "string") {
+ return "{}"
+ }
+ p = p.trim();
+ let pp = rule.一级 ? rule.一级.split(";") : [];
+ if (p.startsWith("js:")) {
+ const TYPE = "home";
+ var input = MY_URL;
+ HOST = rule.host;
+ eval(p.replace("js:", ""));
+ d = VODS
+ } else {
+ p = p.split(";");
+ if (!homeVodObj.double && p.length < 5) {
+ return "{}"
+ } else if (homeVodObj.double && p.length < 6) {
+ return "{}"
+ }
+ let p0 = getPP(p, 0, pp, 0);
+ let _ps = parseTags.getParse(p0);
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ let is_json = p0.startsWith("json:");
+ p0 = p0.replace(/^(jsp:|json:|jq:)/, "");
+ let html = homeHtmlCache || getHtml(MY_URL);
+ homeHtmlCache = undefined;
+ if (is_json) {
+ html = dealJson(html)
+ }
+ try {
+ console.log("double:" + homeVodObj.double);
+ if (homeVodObj.double) {
+ let items = _pdfa(html, p0);
+ let p1 = getPP(p, 1, pp, 0);
+ let p2 = getPP(p, 2, pp, 1);
+ let p3 = getPP(p, 3, pp, 2);
+ let p4 = getPP(p, 4, pp, 3);
+ let p5 = getPP(p, 5, pp, 4);
+ let p6 = getPP(p, 6, pp, 5);
+ for (let item of items) {
+ let items2 = _pdfa(item, p1);
+ for (let item2 of items2) {
+ try {
+ let title = _pdfh(item2, p2);
+ let img = "";
+ try {
+ img = _pd(item2, p3)
+ } catch (e) {}
+ let desc = "";
+ try {
+ desc = _pdfh(item2, p4)
+ } catch (e) {}
+ let links = [];
+ for (let _p5 of p5.split("+")) {
+ let link = !homeVodObj.detailUrl ? _pd(item2, _p5, MY_URL) : _pdfh(item2, _p5);
+ links.push(link)
+ }
+ let content;
+ if (p.length > 6 && p[6]) {
+ content = _pdfh(item2, p6)
+ } else {
+ content = ""
+ }
+ let vid = links.join("$");
+ if (rule.二级 === "*") {
+ vid = vid + "@@" + title + "@@" + img
+ }
+ let vod = {
+ vod_name: title,
+ vod_pic: img,
+ vod_remarks: desc,
+ vod_content: content,
+ vod_id: vid
+ };
+ d.push(vod)
+ } catch (e) {
+ console.log(`首页列表双层定位处理发生错误:${e.message}`)
+ }
+ }
+ }
+ } else {
+ let items = _pdfa(html, p0);
+ let p1 = getPP(p, 1, pp, 1);
+ let p2 = getPP(p, 2, pp, 2);
+ let p3 = getPP(p, 3, pp, 3);
+ let p4 = getPP(p, 4, pp, 4);
+ let p5 = getPP(p, 5, pp, 5);
+ for (let item of items) {
+ try {
+ let title = _pdfh(item, p1);
+ let img = "";
+ try {
+ img = _pd(item, p2, MY_URL)
+ } catch (e) {}
+ let desc = "";
+ try {
+ desc = _pdfh(item, p3)
+ } catch (e) {}
+ let links = [];
+ for (let _p5 of p4.split("+")) {
+ let link = !homeVodObj.detailUrl ? _pd(item, _p5, MY_URL) : _pdfh(item, _p5);
+ links.push(link)
+ }
+ let content;
+ if (p.length > 5 && p[5]) {
+ content = _pdfh(item, p5)
+ } else {
+ content = ""
+ }
+ let vid = links.join("$");
+ if (rule.二级 === "*") {
+ vid = vid + "@@" + title + "@@" + img
+ }
+ let vod = {
+ vod_name: title,
+ vod_pic: img,
+ vod_remarks: desc,
+ vod_content: content,
+ vod_id: vid
+ };
+ d.push(vod)
+ } catch (e) {
+ console.log(`首页列表单层定位处理发生错误:${e.message}`)
+ }
+ }
+ }
+ } catch (e) {}
+ }
+ let t2 = (new Date).getTime();
+ console.log("加载首页推荐耗时:" + (t2 - t1) + "毫秒");
+ if (rule.图片替换) {
+ if (rule.图片替换.startsWith("js:")) {
+ d.forEach(it => {
+ try {
+ var input = it.vod_pic;
+ eval(rule.图片替换.trim().replace("js:", ""));
+ it.vod_pic = input
+ } catch (e) {
+ log(`图片:${it.vod_pic}替换错误:${e.message}`)
+ }
+ })
+ } else if (rule.图片替换.includes("=>")) {
+ let replace_from = rule.图片替换.split("=>")[0];
+ let replace_to = rule.图片替换.split("=>")[1];
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
+ }
+ })
+ }
+ }
+ if (rule.图片来源) {
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic + rule.图片来源
+ }
+ })
+ }
+ if (d.length > 0) {
+ print(d.slice(0, 2))
+ }
+ return JSON.stringify({
+ list: d
+ })
+}
+
+function categoryParse(cateObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let p = cateObj.一级;
+ if (!p || typeof p !== "string") {
+ return "{}"
+ }
+ let d = [];
+ let url = cateObj.url.replaceAll("fyclass", cateObj.tid);
+ if (cateObj.pg === 1 && url.includes("[") && url.includes("]")) {
+ url = url.split("[")[1].split("]")[0]
+ } else if (cateObj.pg > 1 && url.includes("[") && url.includes("]")) {
+ url = url.split("[")[0]
+ }
+ if (rule.filter_url) {
+ if (!/fyfilter/.test(url)) {
+ if (!url.endsWith("&") && !rule.filter_url.startsWith("&")) {
+ url += "&"
+ }
+ url += rule.filter_url
+ } else {
+ url = url.replace("fyfilter", rule.filter_url)
+ }
+ url = url.replaceAll("fyclass", cateObj.tid);
+ let fl = cateObj.filter ? cateObj.extend : {};
+ if (rule.filter_def && typeof rule.filter_def === "object") {
+ try {
+ if (Object.keys(rule.filter_def).length > 0 && rule.filter_def.hasOwnProperty(cateObj.tid)) {
+ let self_fl_def = rule.filter_def[cateObj.tid];
+ if (self_fl_def && typeof self_fl_def === "object") {
+ let fl_def = JSON.parse(JSON.stringify(self_fl_def));
+ fl = Object.assign(fl_def, fl)
+ }
+ }
+ } catch (e) {
+ print(`合并不同分类对应的默认筛选出错:${e.message}`)
+ }
+ }
+ let new_url;
+ new_url = cheerio.jinja2(url, {
+ fl: fl,
+ fyclass: cateObj.tid
+ });
+ url = new_url
+ }
+ if (/fypage/.test(url)) {
+ if (url.includes("(") && url.includes(")")) {
+ let url_rep = url.match(/.*?\((.*)\)/)[1];
+ let cnt_page = url_rep.replaceAll("fypage", cateObj.pg);
+ let cnt_pg = eval(cnt_page);
+ url = url.replaceAll(url_rep, cnt_pg).replaceAll("(", "").replaceAll(")", "")
+ } else {
+ url = url.replaceAll("fypage", cateObj.pg)
+ }
+ }
+ MY_URL = url;
+ console.log(MY_URL);
+ p = p.trim();
+ const MY_CATE = cateObj.tid;
+ if (p.startsWith("js:")) {
+ var MY_FL = cateObj.extend;
+ const TYPE = "cate";
+ var input = MY_URL;
+ const MY_PAGE = cateObj.pg;
+ var desc = "";
+ eval(p.trim().replace("js:", ""));
+ d = VODS
+ } else {
+ p = p.split(";");
+ if (p.length < 5) {
+ return "{}"
+ }
+ let _ps = parseTags.getParse(p[0]);
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ let is_json = p[0].startsWith("json:");
+ p[0] = p[0].replace(/^(jsp:|json:|jq:)/, "");
+ try {
+ let html = getHtml(MY_URL);
+ if (html) {
+ if (is_json) {
+ html = dealJson(html)
+ }
+ let list = _pdfa(html, p[0]);
+ list.forEach(it => {
+ let links = p[4].split("+").map(p4 => {
+ return !rule.detailUrl ? _pd(it, p4, MY_URL) : _pdfh(it, p4)
+ });
+ let link = links.join("$");
+ let vod_id = rule.detailUrl ? MY_CATE + "$" + link : link;
+ let vod_name = _pdfh(it, p[1]).replace(/\n|\t/g, "").trim();
+ let vod_pic = _pd(it, p[2], MY_URL);
+ if (rule.二级 === "*") {
+ vod_id = vod_id + "@@" + vod_name + "@@" + vod_pic
+ }
+ d.push({
+ vod_id: vod_id,
+ vod_name: vod_name,
+ vod_pic: vod_pic,
+ vod_remarks: _pdfh(it, p[3]).replace(/\n|\t/g, "").trim()
+ })
+ })
+ }
+ } catch (e) {
+ console.log(e.message)
+ }
+ }
+ if (rule.图片替换) {
+ if (rule.图片替换.startsWith("js:")) {
+ d.forEach(it => {
+ try {
+ var input = it.vod_pic;
+ eval(rule.图片替换.trim().replace("js:", ""));
+ it.vod_pic = input
+ } catch (e) {
+ log(`图片:${it.vod_pic}替换错误:${e.message}`)
+ }
+ })
+ } else if (rule.图片替换.includes("=>")) {
+ let replace_from = rule.图片替换.split("=>")[0];
+ let replace_to = rule.图片替换.split("=>")[1];
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
+ }
+ })
+ }
+ }
+ if (rule.图片来源) {
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic + rule.图片来源
+ }
+ })
+ }
+ if (d.length > 0) {
+ print(d.slice(0, 2))
+ }
+ let pagecount = 0;
+ if (rule.pagecount && typeof rule.pagecount === "object" && rule.pagecount.hasOwnProperty(MY_CATE)) {
+ print(`MY_CATE:${MY_CATE},pagecount:${JSON.stringify(rule.pagecount)}`);
+ pagecount = parseInt(rule.pagecount[MY_CATE])
+ }
+ let nodata = {
+ list: [{
+ vod_name: "无数据,防无限请求",
+ vod_id: "no_data",
+ vod_remarks: "不要点,会崩的",
+ vod_pic: "https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/404.jpg"
+ }],
+ total: 1,
+ pagecount: 1,
+ page: 1,
+ limit: 1
+ };
+ let vod = d.length < 1 ? JSON.stringify(nodata) : JSON.stringify({
+ page: parseInt(cateObj.pg),
+ pagecount: pagecount || 999,
+ limit: 20,
+ total: 999,
+ list: d
+ });
+ return vod
+}
+
+function searchParse(searchObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let d = [];
+ if (!searchObj.searchUrl) {
+ return "{}"
+ }
+ if (rule.searchNoPage && Number(searchObj.pg) > 1) {
+ return "{}"
+ }
+ let p = searchObj.搜索 === "*" && rule.一级 ? rule.一级 : searchObj.搜索;
+ if (!p || typeof p !== "string") {
+ return "{}"
+ }
+ p = p.trim();
+ let pp = rule.一级 ? rule.一级.split(";") : [];
+ let url = searchObj.searchUrl.replaceAll("**", searchObj.wd);
+ if (searchObj.pg === 1 && url.includes("[") && url.includes("]") && !url.includes("#")) {
+ url = url.split("[")[1].split("]")[0]
+ } else if (searchObj.pg > 1 && url.includes("[") && url.includes("]") && !url.includes("#")) {
+ url = url.split("[")[0]
+ }
+ if (/fypage/.test(url)) {
+ if (url.includes("(") && url.includes(")")) {
+ let url_rep = url.match(/.*?\((.*)\)/)[1];
+ let cnt_page = url_rep.replaceAll("fypage", searchObj.pg);
+ let cnt_pg = eval(cnt_page);
+ url = url.replaceAll(url_rep, cnt_pg).replaceAll("(", "").replaceAll(")", "")
+ } else {
+ url = url.replaceAll("fypage", searchObj.pg)
+ }
+ }
+ MY_URL = url;
+ console.log(MY_URL);
+ if (p.startsWith("js:")) {
+ const TYPE = "search";
+ const MY_PAGE = searchObj.pg;
+ const KEY = searchObj.wd;
+ var input = MY_URL;
+ var detailUrl = rule.detailUrl || "";
+ eval(p.trim().replace("js:", ""));
+ d = VODS
+ } else {
+ p = p.split(";");
+ if (p.length < 5) {
+ return "{}"
+ }
+ let p0 = getPP(p, 0, pp, 0);
+ let _ps = parseTags.getParse(p0);
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ let is_json = p0.startsWith("json:");
+ p0 = p0.replace(/^(jsp:|json:|jq:)/, "");
+ try {
+ let req_method = MY_URL.split(";").length > 1 ? MY_URL.split(";")[1].toLowerCase() : "get";
+ let html;
+ if (req_method === "post") {
+ let rurls = MY_URL.split(";")[0].split("#");
+ let rurl = rurls[0];
+ let params = rurls.length > 1 ? rurls[1] : "";
+ print(`post=》rurl:${rurl},params:${params}`);
+ let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let postData = {
+ body: params
+ };
+ Object.assign(_fetch_params, postData);
+ html = post(rurl, _fetch_params)
+ } else if (req_method === "postjson") {
+ let rurls = MY_URL.split(";")[0].split("#");
+ let rurl = rurls[0];
+ let params = rurls.length > 1 ? rurls[1] : "";
+ print(`postjson-》rurl:${rurl},params:${params}`);
+ try {
+ params = JSON.parse(params)
+ } catch (e) {
+ params = "{}"
+ }
+ let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let postData = {
+ body: params
+ };
+ Object.assign(_fetch_params, postData);
+ html = post(rurl, _fetch_params)
+ } else {
+ html = getHtml(MY_URL)
+ }
+ if (html) {
+ let search_tag = rule.搜索验证标识 || "系统安全验证|输入验证码";
+ if (new RegExp(search_tag).test(html)) {
+ let cookie = verifyCode(MY_URL);
+ if (cookie) {
+ console.log(`本次成功过验证,cookie:${cookie}`);
+ setItem(RULE_CK, cookie)
+ } else {
+ console.log(`本次自动过搜索验证失败,cookie:${cookie}`)
+ }
+ html = getHtml(MY_URL)
+ }
+ if (!html.includes(searchObj.wd)) {
+ console.log("搜索结果源码未包含关键字,疑似搜索失败,正为您打印结果源码");
+ console.log(html)
+ }
+ if (is_json) {
+ html = dealJson(html)
+ }
+ let list = _pdfa(html, p0);
+ let p1 = getPP(p, 1, pp, 1);
+ let p2 = getPP(p, 2, pp, 2);
+ let p3 = getPP(p, 3, pp, 3);
+ let p4 = getPP(p, 4, pp, 4);
+ let p5 = getPP(p, 5, pp, 5);
+ list.forEach(it => {
+ let links = p4.split("+").map(_p4 => {
+ return !rule.detailUrl ? _pd(it, _p4, MY_URL) : _pdfh(it, _p4)
+ });
+ let link = links.join("$");
+ let content;
+ if (p.length > 5 && p[5]) {
+ content = _pdfh(it, p5)
+ } else {
+ content = ""
+ }
+ let vod_id = link;
+ let vod_name = _pdfh(it, p1).replace(/\n|\t/g, "").trim();
+ let vod_pic = _pd(it, p2, MY_URL);
+ if (rule.二级 === "*") {
+ vod_id = vod_id + "@@" + vod_name + "@@" + vod_pic
+ }
+ let ob = {
+ vod_id: vod_id,
+ vod_name: vod_name,
+ vod_pic: vod_pic,
+ vod_remarks: _pdfh(it, p3).replace(/\n|\t/g, "").trim(),
+ vod_content: content.replace(/\n|\t/g, "").trim()
+ };
+ d.push(ob)
+ })
+ }
+ } catch (e) {
+ print(`搜索发生错误:${e.message}`);
+ return "{}"
+ }
+ }
+ if (rule.图片替换) {
+ if (rule.图片替换.startsWith("js:")) {
+ d.forEach(it => {
+ try {
+ var input = it.vod_pic;
+ eval(rule.图片替换.trim().replace("js:", ""));
+ it.vod_pic = input
+ } catch (e) {
+ log(`图片:${it.vod_pic}替换错误:${e.message}`)
+ }
+ })
+ } else if (rule.图片替换.includes("=>")) {
+ let replace_from = rule.图片替换.split("=>")[0];
+ let replace_to = rule.图片替换.split("=>")[1];
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
+ }
+ })
+ }
+ }
+ if (rule.图片来源) {
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic + rule.图片来源
+ }
+ })
+ }
+ return JSON.stringify({
+ page: parseInt(searchObj.pg),
+ pagecount: 10,
+ limit: 20,
+ total: 100,
+ list: d
+ })
+}
+
+function detailParse(detailObj) {
+ let t1 = (new Date).getTime();
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let orId = detailObj.orId;
+ let vod_name = "片名";
+ let vod_pic = "";
+ let vod_id = orId;
+ if (rule.二级 === "*") {
+ let extra = orId.split("@@");
+ vod_name = extra.length > 1 ? extra[1] : vod_name;
+ vod_pic = extra.length > 2 ? extra[2] : vod_pic
+ }
+ let vod = {
+ vod_id: vod_id,
+ vod_name: vod_name,
+ vod_pic: vod_pic,
+ type_name: "类型",
+ vod_year: "年份",
+ vod_area: "地区",
+ vod_remarks: "更新信息",
+ vod_actor: "主演",
+ vod_director: "导演",
+ vod_content: "简介"
+ };
+ let p = detailObj.二级;
+ let url = detailObj.url;
+ let detailUrl = detailObj.detailUrl;
+ let fyclass = detailObj.fyclass;
+ let tab_exclude = detailObj.tab_exclude;
+ let html = detailObj.html || "";
+ MY_URL = url;
+ if (detailObj.二级访问前) {
+ try {
+ print(`尝试在二级访问前执行代码:${detailObj.二级访问前}`);
+ eval(detailObj.二级访问前.trim().replace("js:", ""))
+ } catch (e) {
+ print(`二级访问前执行代码出现错误:${e.message}`)
+ }
+ }
+ if (p === "*") {
+ vod.vod_play_from = "在线播放";
+ vod.vod_remarks = detailUrl;
+ vod.vod_actor = "没有二级,只有一级链接直接嗅探播放";
+ vod.vod_content = MY_URL;
+ vod.vod_play_url = "嗅探播放$" + MY_URL.split("@@")[0]
+ } else if (typeof p === "string" && p.trim().startsWith("js:")) {
+ const TYPE = "detail";
+ var input = MY_URL;
+ var play_url = "";
+ eval(p.trim().replace("js:", ""));
+ vod = VOD;
+ console.log(JSON.stringify(vod))
+ } else if (p && typeof p === "object") {
+ let tt1 = (new Date).getTime();
+ if (!html) {
+ html = getHtml(MY_URL)
+ }
+ print(`二级${MY_URL}仅获取源码耗时:${(new Date).getTime()-tt1}毫秒`);
+ let _ps;
+ if (p.is_json) {
+ print("二级是json");
+ _ps = parseTags.json;
+ html = dealJson(html)
+ } else if (p.is_jsp) {
+ print("二级是jsp");
+ _ps = parseTags.jsp
+ } else if (p.is_jq) {
+ print("二级是jq");
+ _ps = parseTags.jq
+ } else {
+ print("二级默认jq");
+ _ps = parseTags.jq
+ }
+ let tt2 = (new Date).getTime();
+ print(`二级${MY_URL}获取并装载源码耗时:${tt2-tt1}毫秒`);
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ if (p.title) {
+ let p1 = p.title.split(";");
+ vod.vod_name = _pdfh(html, p1[0]).replace(/\n|\t/g, "").trim();
+ let type_name = p1.length > 1 ? _pdfh(html, p1[1]).replace(/\n|\t/g, "").replace(/ /g, "").trim() : "";
+ vod.type_name = type_name || vod.type_name
+ }
+ if (p.desc) {
+ try {
+ let p1 = p.desc.split(";");
+ vod.vod_remarks = _pdfh(html, p1[0]).replace(/\n|\t/g, "").trim();
+ vod.vod_year = p1.length > 1 ? _pdfh(html, p1[1]).replace(/\n|\t/g, "").trim() : "";
+ vod.vod_area = p1.length > 2 ? _pdfh(html, p1[2]).replace(/\n|\t/g, "").trim() : "";
+ vod.vod_actor = p1.length > 3 ? _pdfh(html, p1[3]).replace(/\n|\t/g, "").trim() : "";
+ vod.vod_director = p1.length > 4 ? _pdfh(html, p1[4]).replace(/\n|\t/g, "").trim() : ""
+ } catch (e) {}
+ }
+ if (p.content) {
+ try {
+ let p1 = p.content.split(";");
+ vod.vod_content = _pdfh(html, p1[0]).replace(/\n|\t/g, "").trim()
+ } catch (e) {}
+ }
+ if (p.img) {
+ try {
+ let p1 = p.img.split(";");
+ vod.vod_pic = _pd(html, p1[0], MY_URL)
+ } catch (e) {}
+ }
+ let vod_play_from = "$$$";
+ let playFrom = [];
+ if (p.重定向 && p.重定向.startsWith("js:")) {
+ print("开始执行重定向代码:" + p.重定向);
+ html = eval(p.重定向.replace("js:", ""))
+ }
+ if (p.tabs) {
+ if (p.tabs.startsWith("js:")) {
+ print("开始执行tabs代码:" + p.tabs);
+ var input = MY_URL;
+ eval(p.tabs.replace("js:", ""));
+ playFrom = TABS
+ } else {
+ let p_tab = p.tabs.split(";")[0];
+ let vHeader = _pdfa(html, p_tab);
+ console.log(vHeader.length);
+ let tab_text = p.tab_text || "body&&Text";
+ let new_map = {};
+ for (let v of vHeader) {
+ let v_title = _pdfh(v, tab_text).trim();
+ if (!v_title) {
+ v_title = "线路空"
+ }
+ console.log(v_title);
+ if (tab_exclude && new RegExp(tab_exclude).test(v_title)) {
+ continue
+ }
+ if (!new_map.hasOwnProperty(v_title)) {
+ new_map[v_title] = 1
+ } else {
+ new_map[v_title] += 1
+ }
+ if (new_map[v_title] > 1) {
+ v_title += Number(new_map[v_title] - 1)
+ }
+ playFrom.push(v_title)
+ }
+ }
+ console.log(JSON.stringify(playFrom))
+ } else {
+ playFrom = ["在线播放"]
+ }
+ vod.vod_play_from = playFrom.join(vod_play_from);
+ let vod_play_url = "$$$";
+ let vod_tab_list = [];
+ if (p.lists) {
+ if (p.lists.startsWith("js:")) {
+ print("开始执行lists代码:" + p.lists);
+ try {
+ var input = MY_URL;
+ var play_url = "";
+ eval(p.lists.replace("js:", ""));
+ for (let i in LISTS) {
+ if (LISTS.hasOwnProperty(i)) {
+ try {
+ LISTS[i] = LISTS[i].map(it => it.split("$").slice(0, 2).join("$"))
+ } catch (e) {
+ print(`格式化LISTS发生错误:${e.message}`)
+ }
+ }
+ }
+ vod_play_url = LISTS.map(it => it.join("#")).join(vod_play_url)
+ } catch (e) {
+ print(`js执行lists: 发生错误:${e.message}`)
+ }
+ } else {
+ let list_text = p.list_text || "body&&Text";
+ let list_url = p.list_url || "a&&href";
+ let list_url_prefix = p.list_url_prefix || "";
+ let is_tab_js = p.tabs.trim().startsWith("js:");
+ for (let i = 0; i < playFrom.length; i++) {
+ let tab_name = playFrom[i];
+ let tab_ext = p.tabs.split(";").length > 1 && !is_tab_js ? p.tabs.split(";")[1] : "";
+ let p1 = p.lists.replaceAll("#idv", tab_name).replaceAll("#id", i);
+ tab_ext = tab_ext.replaceAll("#idv", tab_name).replaceAll("#id", i);
+ let tabName = tab_ext ? _pdfh(html, tab_ext) : tab_name;
+ console.log(tabName);
+ let new_vod_list = [];
+ let tt1 = (new Date).getTime();
+ if (typeof pdfl === "function") {
+ new_vod_list = pdfl(html, p1, list_text, list_url, MY_URL);
+ if (list_url_prefix) {
+ new_vod_list = new_vod_list.map(it => it.split("$")[0] + "$" + list_url_prefix + it.split("$").slice(1).join("$"))
+ }
+ } else {
+ let vodList = [];
+ try {
+ vodList = _pdfa(html, p1);
+ console.log("len(vodList):" + vodList.length)
+ } catch (e) {}
+ for (let i = 0; i < vodList.length; i++) {
+ let it = vodList[i];
+ new_vod_list.push(_pdfh(it, list_text).trim() + "$" + list_url_prefix + _pd(it, list_url, MY_URL))
+ }
+ }
+ if (new_vod_list.length > 0) {
+ new_vod_list = forceOrder(new_vod_list, "", x => x.split("$")[0]);
+ console.log(`drpy影响性能代码共计列表数循环次数:${new_vod_list.length},耗时:${(new Date).getTime()-tt1}毫秒`)
+ }
+ let vlist = new_vod_list.join("#");
+ vod_tab_list.push(vlist)
+ }
+ vod_play_url = vod_tab_list.join(vod_play_url)
+ }
+ }
+ vod.vod_play_url = vod_play_url
+ }
+ if (rule.图片替换 && rule.图片替换.includes("=>")) {
+ let replace_from = rule.图片替换.split("=>")[0];
+ let replace_to = rule.图片替换.split("=>")[1];
+ vod.vod_pic = vod.vod_pic.replace(replace_from, replace_to)
+ }
+ if (rule.图片来源 && vod.vod_pic && vod.vod_pic.startsWith("http")) {
+ vod.vod_pic = vod.vod_pic + rule.图片来源
+ }
+ if (!vod.vod_id || vod_id.includes("$") && vod.vod_id !== vod_id) {
+ vod.vod_id = vod_id
+ }
+ let t2 = (new Date).getTime();
+ console.log(`加载二级界面${MY_URL}耗时:${t2-t1}毫秒`);
+ try {
+ vod = vodDeal(vod)
+ } catch (e) {
+ console.log(`vodDeal发生错误:${e.message}`)
+ }
+ return JSON.stringify({
+ list: [vod]
+ })
+}
+
+function get_tab_index(vod) {
+ let obj = {};
+ vod.vod_play_from.split("$$$").forEach((it, index) => {
+ obj[it] = index
+ });
+ return obj
+}
+
+function vodDeal(vod) {
+ let vod_play_from = vod.vod_play_from.split("$$$");
+ let vod_play_url = vod.vod_play_url.split("$$$");
+ let tab_removed_list = vod_play_from;
+ let tab_ordered_list = vod_play_from;
+ let tab_renamed_list = vod_play_from;
+ let tab_list = vod_play_from;
+ let play_ordered_list = vod_play_url;
+ if (rule.tab_remove && rule.tab_remove.length > 0 || rule.tab_order && rule.tab_order.length > 0) {
+ let tab_index_dict = get_tab_index(vod);
+ if (rule.tab_remove && rule.tab_remove.length > 0) {
+ tab_removed_list = vod_play_from.filter(it => !rule.tab_remove.includes(it));
+ tab_list = tab_removed_list
+ }
+ if (rule.tab_order && rule.tab_order.length > 0) {
+ let tab_order = rule.tab_order;
+ tab_ordered_list = tab_removed_list.sort((a, b) => {
+ return (tab_order.indexOf(a) === -1 ? 9999 : tab_order.indexOf(a)) - (tab_order.indexOf(b) === -1 ? 9999 : tab_order.indexOf(b))
+ });
+ tab_list = tab_ordered_list
+ }
+ play_ordered_list = tab_list.map(it => vod_play_url[tab_index_dict[it]])
+ }
+ if (rule.tab_rename && typeof rule.tab_rename === "object" & Object.keys(rule.tab_rename).length > 0) {
+ tab_renamed_list = tab_list.map(it => rule.tab_rename[it] || it);
+ tab_list = tab_renamed_list
+ }
+ vod.vod_play_from = tab_list.join("$$$");
+ vod.vod_play_url = play_ordered_list.join("$$$");
+ return vod
+}
+
+function tellIsJx(url) {
+ try {
+ let is_vip = !/\.(m3u8|mp4|m4a)$/.test(url.split("?")[0]) && 是否正版(url);
+ return is_vip ? 1 : 0
+ } catch (e) {
+ return 1
+ }
+}
+
+function playParse(playObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ MY_URL = playObj.url;
+ var MY_FLAG = playObj.flag;
+ if (!/http/.test(MY_URL)) {
+ try {
+ MY_URL = base64Decode(MY_URL)
+ } catch (e) {}
+ }
+ MY_URL = decodeURIComponent(MY_URL);
+ var input = MY_URL;
+ var flag = MY_FLAG;
+ let common_play = {
+ parse: SPECIAL_URL.test(input) || /^(push:)/.test(input) ? 0 : 1,
+ url: input,
+ flag: flag,
+ jx: tellIsJx(input)
+ };
+ let lazy_play;
+ if (!rule.play_parse || !rule.lazy) {
+ lazy_play = common_play
+ } else if (rule.play_parse && rule.lazy && typeof rule.lazy === "string") {
+ try {
+ let lazy_code = rule.lazy.trim();
+ if (lazy_code.startsWith("js:")) {
+ lazy_code = lazy_code.replace("js:", "").trim()
+ }
+ print("开始执行js免嗅=>" + lazy_code);
+ eval(lazy_code);
+ lazy_play = typeof input === "object" ? input : {
+ parse: SPECIAL_URL.test(input) || /^(push:)/.test(input) ? 0 : 1,
+ jx: tellIsJx(input),
+ url: input
+ }
+ } catch (e) {
+ print(`js免嗅错误:${e.message}`);
+ lazy_play = common_play
+ }
+ } else {
+ lazy_play = common_play
+ }
+ if (Array.isArray(rule.play_json) && rule.play_json.length > 0) {
+ let web_url = lazy_play.url;
+ for (let pjson of rule.play_json) {
+ if (pjson.re && (pjson.re === "*" || web_url.match(new RegExp(pjson.re)))) {
+ if (pjson.json && typeof pjson.json === "object") {
+ let base_json = pjson.json;
+ lazy_play = Object.assign(lazy_play, base_json);
+ break
+ }
+ }
+ }
+ } else if (rule.play_json && !Array.isArray(rule.play_json)) {
+ let base_json = {
+ jx: 1,
+ parse: 1
+ };
+ lazy_play = Object.assign(lazy_play, base_json)
+ } else if (!rule.play_json) {
+ let base_json = {
+ jx: 0,
+ parse: 1
+ };
+ lazy_play = Object.assign(lazy_play, base_json)
+ }
+ console.log(JSON.stringify(lazy_play));
+ return JSON.stringify(lazy_play)
+}
+
+function proxyParse(proxyObj) {
+ var input = proxyObj.params;
+ if (proxyObj.proxy_rule) {
+ log("准备执行本地代理规则:\n" + proxyObj.proxy_rule);
+ try {
+ eval(proxyObj.proxy_rule);
+ if (input && input !== proxyObj.params && Array.isArray(input) && input.length >= 3) {
+ return input
+ } else {
+ return [404, "text/plain", "Not Found"]
+ }
+ } catch (e) {
+ return [500, "text/plain", "代理规则错误:" + e.message]
+ }
+ } else {
+ return [404, "text/plain", "Not Found"]
+ }
+}
+
+function isVideoParse(isVideoObj) {
+ var input = isVideoObj.url;
+ if (!isVideoObj.t) {
+ let re_matcher = new RegExp(isVideoObj.isVideo, "i");
+ return re_matcher.test(input)
+ } else {
+ try {
+ eval(isVideoObj.isVideo);
+ if (typeof input === "boolean") {
+ return input
+ } else {
+ return false
+ }
+ } catch (e) {
+ log(`执行嗅探规则发生错误:${e.message}`);
+ return false
+ }
+ }
+}
+
+function getOriginalJs(js_code) {
+ let current_match = /var rule|[\u4E00-\u9FA5]+|function|let |var |const |\(|\)|"|'/;
+ if (current_match.test(js_code)) {
+ return js_code
+ }
+ let rsa_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCqin/jUpqM6+fgYP/oMqj9zcdHMM0mEZXLeTyixIJWP53lzJV2N2E3OP6BBpUmq2O1a9aLnTIbADBaTulTNiOnVGoNG58umBnupnbmmF8iARbDp2mTzdMMeEgLdrfXS6Y3VvazKYALP8EhEQykQVarexR78vRq7ltY3quXx7cgI0ROfZz5Sw3UOLQJ+VoWmwIxu9AMEZLVzFDQN93hzuzs3tNyHK6xspBGB7zGbwCg+TKi0JeqPDrXxYUpAz1cQ/MO+Da0WgvkXnvrry8NQROHejdLVOAslgr6vYthH9bKbsGyNY3H+P12kcxo9RAcVveONnZbcMyxjtF5dWblaernAgMBAAECggEAGdEHlSEPFmAr5PKqKrtoi6tYDHXdyHKHC5tZy4YV+Pp+a6gxxAiUJejx1hRqBcWSPYeKne35BM9dgn5JofgjI5SKzVsuGL6bxl3ayAOu+xXRHWM9f0t8NHoM5fdd0zC3g88dX3fb01geY2QSVtcxSJpEOpNH3twgZe6naT2pgiq1S4okpkpldJPo5GYWGKMCHSLnKGyhwS76gF8bTPLoay9Jxk70uv6BDUMlA4ICENjmsYtd3oirWwLwYMEJbSFMlyJvB7hjOjR/4RpT4FPnlSsIpuRtkCYXD4jdhxGlvpXREw97UF2wwnEUnfgiZJ2FT/MWmvGGoaV/CfboLsLZuQKBgQDTNZdJrs8dbijynHZuuRwvXvwC03GDpEJO6c1tbZ1s9wjRyOZjBbQFRjDgFeWs9/T1aNBLUrgsQL9c9nzgUziXjr1Nmu52I0Mwxi13Km/q3mT+aQfdgNdu6ojsI5apQQHnN/9yMhF6sNHg63YOpH+b+1bGRCtr1XubuLlumKKscwKBgQDOtQ2lQjMtwsqJmyiyRLiUOChtvQ5XI7B2mhKCGi8kZ+WEAbNQcmThPesVzW+puER6D4Ar4hgsh9gCeuTaOzbRfZ+RLn3Aksu2WJEzfs6UrGvm6DU1INn0z/tPYRAwPX7sxoZZGxqML/z+/yQdf2DREoPdClcDa2Lmf1KpHdB+vQKBgBXFCVHz7a8n4pqXG/HvrIMJdEpKRwH9lUQS/zSPPtGzaLpOzchZFyQQBwuh1imM6Te+VPHeldMh3VeUpGxux39/m+160adlnRBS7O7CdgSsZZZ/dusS06HAFNraFDZf1/VgJTk9BeYygX+AZYu+0tReBKSs9BjKSVJUqPBIVUQXAoGBAJcZ7J6oVMcXxHxwqoAeEhtvLcaCU9BJK36XQ/5M67ceJ72mjJC6/plUbNukMAMNyyi62gO6I9exearecRpB/OGIhjNXm99Ar59dAM9228X8gGfryLFMkWcO/fNZzb6lxXmJ6b2LPY3KqpMwqRLTAU/zy+ax30eFoWdDHYa4X6e1AoGAfa8asVGOJ8GL9dlWufEeFkDEDKO9ww5GdnpN+wqLwePWqeJhWCHad7bge6SnlylJp5aZXl1+YaBTtOskC4Whq9TP2J+dNIgxsaF5EFZQJr8Xv+lY9lu0CruYOh9nTNF9x3nubxJgaSid/7yRPfAGnsJRiknB5bsrCvgsFQFjJVs=";
+ let decode_content = "";
+
+ function aes_decrypt(data) {
+ let key = CryptoJS.enc.Hex.parse("686A64686E780A0A0A0A0A0A0A0A0A0A");
+ let iv = CryptoJS.enc.Hex.parse("647A797964730A0A0A0A0A0A0A0A0A0A");
+ let encrypted = CryptoJS.AES.decrypt({
+ ciphertext: CryptoJS.enc.Base64.parse(data)
+ }, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ }).toString(CryptoJS.enc.Utf8);
+ return encrypted
+ }
+ let error_log = false;
+
+ function logger(text) {
+ if (error_log) {
+ log(text)
+ }
+ }
+ let decode_funcs = [text => {
+ try {
+ return ungzip(text)
+ } catch (e) {
+ logger("非gzip加密");
+ return ""
+ }
+ }, text => {
+ try {
+ return base64Decode(text)
+ } catch (e) {
+ logger("非b64加密");
+ return ""
+ }
+ }, text => {
+ try {
+ return aes_decrypt(text)
+ } catch (e) {
+ logger("非aes加密");
+ return ""
+ }
+ }, text => {
+ try {
+ return RSA.decode(text, rsa_private_key, null)
+ } catch (e) {
+ logger("非rsa加密");
+ return ""
+ }
+ }];
+ let func_index = 0;
+ while (!current_match.test(decode_content)) {
+ decode_content = decode_funcs[func_index](js_code);
+ func_index++;
+ if (func_index >= decode_funcs.length) {
+ break
+ }
+ }
+ return decode_content
+}
+
+function runMain(main_func_code, arg) {
+ let mainFunc = function() {
+ return ""
+ };
+ try {
+ eval(main_func_code + "\nmainFunc=main;");
+ return mainFunc(arg)
+ } catch (e) {
+ log(`执行main_funct发生了错误:${e.message}`);
+ return ""
+ }
+}
+
+function init(ext) {
+ console.log("init");
+ rule = {};
+ rule_fetch_params = {};
+ fetch_params = null;
+ try {
+ let muban = 模板.getMubans();
+ if (typeof ext == "object") {
+ rule = ext
+ } else if (typeof ext == "string") {
+ let is_file = ext.startsWith("file://");
+ if (ext.startsWith("http") || is_file) {
+ let query = getQuery(ext);
+ if (is_file) {
+ ext = ext.split("?")[0]
+ }
+ let js = request(ext, {
+ method: "GET"
+ });
+ if (js) {
+ js = getOriginalJs(js);
+ eval("(function(){" + js.replace("var rule", "rule") + "})()")
+ }
+ if (query.type === "url" && query.params) {
+ if (is_file && /^http/.test(query.params)) {
+ rule.params = query.params
+ } else {
+ rule.params = urljoin(ext, query.params)
+ }
+ } else if (query.params) {
+ rule.params = query.params
+ }
+ } else {
+ ext = getOriginalJs(ext);
+ eval("(function(){" + ext.replace("var rule", "rule") + "})()")
+ }
+ } else {
+ console.log(`规则加载失败,不支持的规则类型:${typeof ext}`);
+ return
+ }
+ rule.host = (rule.host || "").rstrip("/");
+ HOST = rule.host;
+ if (rule.hostJs) {
+ console.log(`检测到hostJs,准备执行...`);
+ try {
+ eval(rule.hostJs);
+ rule.host = HOST.rstrip("/")
+ } catch (e) {
+ console.log(`执行${rule.hostJs}获取host发生错误:${e.message}`)
+ }
+ }
+ if (rule["模板"] === "自动") {
+ try {
+ let host_headers = rule["headers"] || {};
+ let host_html = getCode(HOST, {
+ headers: host_headers
+ });
+ let match_muban = "";
+ let muban_keys = Object.keys(muban).filter(it => !/默认|短视2|采集1/.test(it));
+ for (let muban_key of muban_keys) {
+ try {
+ let host_data = JSON.parse(home({}, host_html, muban[muban_key].class_parse));
+ if (host_data.class && host_data.class.length > 0) {
+ match_muban = muban_key;
+ console.log(`自动匹配模板:【${muban_key}】`);
+ break
+ }
+ } catch (e) {
+ console.log(`自动匹配模板:【${muban_key}】错误:${e.message}`)
+ }
+ }
+ if (match_muban) {
+ muban["自动"] = muban[match_muban];
+ if (rule["模板修改"] && rule["模板修改"].startsWith("js:")) {
+ eval(rule["模板修改"].replace("js:", "").trim())
+ }
+ } else {
+ delete rule["模板"]
+ }
+ } catch (e) {
+ delete rule["模板"]
+ }
+ }
+ if (rule.模板 && muban.hasOwnProperty(rule.模板)) {
+ print("继承模板:" + rule.模板);
+ rule = Object.assign(muban[rule.模板], rule)
+ }
+ let rule_cate_excludes = (rule.cate_exclude || "").split("|").filter(it => it.trim());
+ let rule_tab_excludes = (rule.tab_exclude || "").split("|").filter(it => it.trim());
+ rule_cate_excludes = rule_cate_excludes.concat(CATE_EXCLUDE.split("|").filter(it => it.trim()));
+ rule_tab_excludes = rule_tab_excludes.concat(TAB_EXCLUDE.split("|").filter(it => it.trim()));
+ rule.cate_exclude = rule_cate_excludes.join("|");
+ rule.tab_exclude = rule_tab_excludes.join("|");
+ rule.类型 = rule.类型 || "影视";
+ rule.url = rule.url || "";
+ rule.double = rule.double || false;
+ rule.homeUrl = rule.homeUrl || "";
+ rule.detailUrl = rule.detailUrl || "";
+ rule.searchUrl = rule.searchUrl || "";
+ rule.homeUrl = rule.host && rule.homeUrl ? urljoin(rule.host, rule.homeUrl) : rule.homeUrl || rule.host;
+ rule.homeUrl = cheerio.jinja2(rule.homeUrl, {
+ rule: rule
+ });
+ rule.detailUrl = rule.host && rule.detailUrl ? urljoin(rule.host, rule.detailUrl) : rule.detailUrl;
+ rule.二级访问前 = rule.二级访问前 || "";
+ if (rule.url.includes("[") && rule.url.includes("]")) {
+ let u1 = rule.url.split("[")[0];
+ let u2 = rule.url.split("[")[1].split("]")[0];
+ rule.url = rule.host && rule.url ? urljoin(rule.host, u1) + "[" + urljoin(rule.host, u2) + "]" : rule.url
+ } else {
+ rule.url = rule.host && rule.url ? urljoin(rule.host, rule.url) : rule.url
+ }
+ if (rule.searchUrl.includes("[") && rule.searchUrl.includes("]") && !rule.searchUrl.includes("#")) {
+ let u1 = rule.searchUrl.split("[")[0];
+ let u2 = rule.searchUrl.split("[")[1].split("]")[0];
+ rule.searchUrl = rule.host && rule.searchUrl ? urljoin(rule.host, u1) + "[" + urljoin(rule.host, u2) + "]" : rule.searchUrl
+ } else {
+ rule.searchUrl = rule.host && rule.searchUrl ? urljoin(rule.host, rule.searchUrl) : rule.searchUrl
+ }
+ rule.timeout = rule.timeout || 5e3;
+ rule.encoding = rule.编码 || rule.encoding || "utf-8";
+ rule.search_encoding = rule.搜索编码 || rule.search_encoding || "";
+ rule.图片来源 = rule.图片来源 || "";
+ rule.图片替换 = rule.图片替换 || "";
+ rule.play_json = rule.hasOwnProperty("play_json") ? rule.play_json : [];
+ rule.pagecount = rule.hasOwnProperty("pagecount") ? rule.pagecount : {};
+ rule.proxy_rule = rule.hasOwnProperty("proxy_rule") ? rule.proxy_rule : "";
+ if (!rule.hasOwnProperty("sniffer")) {
+ rule.sniffer = false
+ }
+ rule.sniffer = rule.hasOwnProperty("sniffer") ? rule.sniffer : "";
+ rule.sniffer = !!(rule.sniffer && rule.sniffer !== "0" && rule.sniffer !== "false");
+ rule.isVideo = rule.hasOwnProperty("isVideo") ? rule.isVideo : "";
+ if (rule.sniffer && !rule.isVideo) {
+ rule.isVideo = "http((?!http).){12,}?\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|m4a|mp3)\\?.*|http((?!http).){12,}\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|m4a|mp3)|http((?!http).)*?video/tos*|http((?!http).)*?obj/tos*"
+ }
+ rule.tab_remove = rule.hasOwnProperty("tab_remove") ? rule.tab_remove : [];
+ rule.tab_order = rule.hasOwnProperty("tab_order") ? rule.tab_order : [];
+ rule.tab_rename = rule.hasOwnProperty("tab_rename") ? rule.tab_rename : {};
+ if (rule.headers && typeof rule.headers === "object") {
+ try {
+ let header_keys = Object.keys(rule.headers);
+ for (let k of header_keys) {
+ if (k.toLowerCase() === "user-agent") {
+ let v = rule.headers[k];
+ console.log(v);
+ if (["MOBILE_UA", "PC_UA", "UC_UA", "IOS_UA", "UA"].includes(v)) {
+ rule.headers[k] = eval(v)
+ }
+ } else if (k.toLowerCase() === "cookie") {
+ let v = rule.headers[k];
+ if (v && v.startsWith("http")) {
+ console.log(v);
+ try {
+ v = fetch(v);
+ console.log(v);
+ rule.headers[k] = v
+ } catch (e) {
+ console.log(`从${v}获取cookie发生错误:${e.message}`)
+ }
+ }
+ }
+ }
+ } catch (e) {
+ console.log(`处理headers发生错误:${e.message}`)
+ }
+ } else {
+ rule.headers = {}
+ }
+ oheaders = deepCopy(rule.headers);
+ rule_fetch_params = {
+ headers: rule.headers,
+ timeout: rule.timeout,
+ encoding: rule.encoding
+ };
+ RKEY = typeof key !== "undefined" && key ? key : "drpy_" + (rule.title || rule.host);
+ pre();
+ init_test()
+ } catch (e) {
+ console.log(`init_test发生错误:${e.message}`)
+ }
+}
+let homeHtmlCache = undefined;
+
+function home(filter, home_html, class_parse) {
+ console.log("home");
+ home_html = home_html || "";
+ class_parse = class_parse || "";
+ if (typeof rule.filter === "string" && rule.filter.trim().length > 0) {
+ try {
+ let filter_json = ungzip(rule.filter.trim());
+ rule.filter = JSON.parse(filter_json)
+ } catch (e) {
+ rule.filter = {}
+ }
+ }
+ let homeObj = {
+ filter: rule.filter || false,
+ MY_URL: rule.homeUrl,
+ class_name: rule.class_name || "",
+ class_url: rule.class_url || "",
+ class_parse: class_parse || rule.class_parse || "",
+ cate_exclude: rule.cate_exclude,
+ home_html: home_html
+ };
+ return homeParse(homeObj)
+}
+
+function homeVod(params) {
+ console.log("homeVod");
+ let homeVodObj = {
+ "推荐": rule.推荐,
+ double: rule.double,
+ homeUrl: rule.homeUrl,
+ detailUrl: rule.detailUrl
+ };
+ return homeVodParse(homeVodObj)
+}
+
+function category(tid, pg, filter, extend) {
+ let cateObj = {
+ url: rule.url,
+ "一级": rule.一级,
+ tid: tid,
+ pg: parseInt(pg),
+ filter: filter,
+ extend: extend
+ };
+ return categoryParse(cateObj)
+}
+
+function detail(vod_url) {
+ let orId = vod_url;
+ let fyclass = "";
+ log("orId:" + orId);
+ if (vod_url.indexOf("$") > -1) {
+ let tmp = vod_url.split("$");
+ fyclass = tmp[0];
+ vod_url = tmp[1]
+ }
+ let detailUrl = vod_url.split("@@")[0];
+ let url;
+ if (!detailUrl.startsWith("http") && !detailUrl.includes("/")) {
+ url = rule.detailUrl.replaceAll("fyid", detailUrl).replaceAll("fyclass", fyclass)
+ } else if (detailUrl.includes("/")) {
+ url = urljoin(rule.homeUrl, detailUrl)
+ } else {
+ url = detailUrl
+ }
+ let detailObj = {
+ orId: orId,
+ url: url,
+ "二级": rule.二级,
+ "二级访问前": rule.二级访问前,
+ detailUrl: detailUrl,
+ fyclass: fyclass,
+ tab_exclude: rule.tab_exclude
+ };
+ return detailParse(detailObj)
+}
+
+function play(flag, id, flags) {
+ let playObj = {
+ url: id,
+ flag: flag,
+ flags: flags
+ };
+ return playParse(playObj)
+}
+
+function search(wd, quick, pg) {
+ if (rule.search_encoding) {
+ if (rule.search_encoding.toLowerCase() !== "utf-8") {
+ wd = encodeStr(wd, rule.search_encoding)
+ }
+ } else if (rule.encoding && rule.encoding.toLowerCase() !== "utf-8") {
+ wd = encodeStr(wd, rule.encoding)
+ }
+ let searchObj = {
+ searchUrl: rule.searchUrl,
+ "搜索": rule.搜索,
+ wd: wd,
+ pg: pg || 1,
+ quick: quick
+ };
+ return searchParse(searchObj)
+}
+
+function proxy(params) {
+ if (rule.proxy_rule && rule.proxy_rule.trim()) {
+ rule.proxy_rule = rule.proxy_rule.trim()
+ }
+ if (rule.proxy_rule.startsWith("js:")) {
+ rule.proxy_rule = rule.proxy_rule.replace("js:", "")
+ }
+ let proxyObj = {
+ params: params,
+ proxy_rule: rule.proxy_rule
+ };
+ return proxyParse(proxyObj)
+}
+
+function sniffer() {
+ let enable_sniffer = rule.sniffer || false;
+ if (enable_sniffer) {
+ log("开始执行辅助嗅探代理规则...")
+ }
+ return enable_sniffer
+}
+
+function isVideo(url) {
+ let t = 0;
+ let is_video;
+ if (rule.isVideo && rule.isVideo.trim()) {
+ is_video = rule.isVideo.trim()
+ }
+ if (is_video.startsWith("js:")) {
+ is_video = is_video.replace("js:", "");
+ t = 1
+ }
+ let isVideoObj = {
+ url: url,
+ isVideo: is_video,
+ t: t
+ };
+ let result = isVideoParse(isVideoObj);
+ if (result) {
+ log("成功执行辅助嗅探规则并检测到视频地址:\n" + rule.isVideo)
+ }
+ return result
+}
+
+function getRule(key) {
+ return key ? rule[key] || "" : rule
+}
+
+function deepCopy(_obj) {
+ return JSON.parse(JSON.stringify(_obj))
+}
+
+function matchesAll(str, pattern, flatten) {
+ if (!pattern.global) {
+ pattern = new RegExp(pattern.source, "g" + (pattern.ignoreCase ? "i" : "") + (pattern.multiline ? "m" : ""))
+ }
+ var matches = [];
+ var match;
+ while ((match = pattern.exec(str)) !== null) {
+ matches.push(match)
+ }
+ return flatten ? matches.flat() : matches
+}
+
+function stringUtils() {
+ Object.defineProperties(String.prototype, {
+ replaceX: {
+ value: function(regex, replacement) {
+ let matches = matchesAll(this, regex, true);
+ if (matches && matches.length > 1) {
+ const hasCaptureGroup = /\$\d/.test(replacement);
+ if (hasCaptureGroup) {
+ return this.replace(regex, m => m.replace(regex, replacement))
+ } else {
+ return this.replace(regex, (m, p1) => m.replace(p1, replacement))
+ }
+ }
+ return this.replace(regex, replacement)
+ },
+ configurable: true,
+ enumerable: false,
+ writable: true
+ },
+ parseX: {
+ get: function() {
+ try {
+ return JSON.parse(this)
+ } catch (e) {
+ console.log(e.message);
+ return this.startsWith("[") ? [] : {}
+ }
+ },
+ configurable: true,
+ enumerable: false
+ }
+ })
+}
+
+function cut(text, start, end, method, All) {
+ let result = "";
+ let c = (t, s, e) => {
+ let result = "";
+ let rs = [];
+ let results = [];
+ try {
+ let lr = new RegExp(String.raw`${s}`.toString());
+ let rr = new RegExp(String.raw`${e}`.toString());
+ const segments = t.split(lr);
+ if (segments.length < 2) return "";
+ let cutSegments = segments.slice(1).map(segment => {
+ let splitSegment = segment.split(rr);
+ return splitSegment.length < 2 ? undefined : splitSegment[0] + e
+ }).filter(f => f);
+ if (All) {
+ return `[${cutSegments.join(",")}]`
+ } else {
+ return cutSegments[0]
+ }
+ } catch (e) {
+ console.log(`Error cutting text:${e.message}`)
+ }
+ return result
+ };
+ result = c(text, start, end);
+ stringUtils();
+ if (method && typeof method === "function") {
+ result = method(result)
+ }
+ return result
+}
+
+function DRPY() {
+ return {
+ runMain: runMain,
+ getRule: getRule,
+ init: init,
+ home: home,
+ homeVod: homeVod,
+ category: category,
+ detail: detail,
+ play: play,
+ search: search,
+ proxy: proxy,
+ sniffer: sniffer,
+ isVideo: isVideo,
+ fixAdM3u8Ai: fixAdM3u8Ai
+ }
+}
+export default {
+ runMain: runMain,
+ getRule: getRule,
+ init: init,
+ home: home,
+ homeVod: homeVod,
+ category: category,
+ detail: detail,
+ play: play,
+ search: search,
+ proxy: proxy,
+ sniffer: sniffer,
+ isVideo: isVideo,
+ fixAdM3u8Ai: fixAdM3u8Ai,
+ DRPY: DRPY
+};
\ No newline at end of file
diff --git a/lib/gbk.js b/JS/gbk.js
similarity index 97%
rename from lib/gbk.js
rename to JS/gbk.js
index 796d53a..c49b20f 100644
--- a/lib/gbk.js
+++ b/JS/gbk.js
@@ -3,63 +3,64 @@
* strTool = gbkTool() strTool.encode(key)
* @returns {{encode: (function(*): *), decode: (function(*): *)}}
*/
-export function gbkTool(){
- var data=function(zipData){
- var re=zipData
- .replace(/#(\d+)\$/g,function(a,b){
- return Array(+b+3).join('#');
+export function gbkTool() {
+ var data = function(zipData) {
+ var re = zipData
+ .replace(/#(\d+)\$/g, function(a, b) {
+ return Array(+b + 3).join('#');
})
- .replace(/#/g,'####')
- .replace(/(\w\w):([\w#]+)(?:,|$)/g,function(a,hd,dt){
- return dt.replace(/../g,function(a){
- if(a!='##'){
- return hd+a;
- }else{
+ .replace(/#/g, '####')
+ .replace(/(\w\w):([\w#]+)(?:,|$)/g, function(a, hd, dt) {
+ return dt.replace(/../g, function(a) {
+ if (a != '##') {
+ return hd + a;
+ } else {
return a;
}
});
});
return re;
}('4e:020405060f12171f20212326292e2f313335373c40414244464a5155575a5b6263646567686a6b6c6d6e6f727475767778797a7b7c7d7f808182838485878a#909697999c9d9ea3aaafb0b1b4b6b7b8b9bcbdbec8cccfd0d2dadbdce0e2e6e7e9edeeeff1f4f8f9fafcfe,4f:00020304050607080b0c12131415161c1d212328292c2d2e31333537393b3e3f40414244454748494a4b4c525456616266686a6b6d6e7172757778797a7d8081828586878a8c8e909293959698999a9c9e9fa1a2a4abadb0b1b2b3b4b6b7b8b9babbbcbdbec0c1c2c6c7c8c9cbcccdd2d3d4d5d6d9dbe0e2e4e5e7ebecf0f2f4f5f6f7f9fbfcfdff,50:000102030405060708090a#0b0e1011131516171b1d1e20222324272b2f303132333435363738393b3d3f404142444546494a4b4d5051525354565758595b5d5e5f6061626364666768696a6b6d6e6f70717273747578797a7c7d818283848687898a8b8c8e8f909192939495969798999a9b9c9d9e9fa0a1a2a4a6aaabadaeafb0b1b3b4b5b6b7b8b9bcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdced0d1d2d3d4d5d7d8d9dbdcdddedfe0e1e2e3e4e5e8e9eaebeff0f1f2f4f6f7f8f9fafcfdfeff,51:00010203040508#090a0c0d0e0f1011131415161718191a1b1c1d1e1f2022232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e42474a4c4e4f5052535758595b5d5e5f606163646667696a6f727a7e7f838486878a8b8e8f90919394989a9d9e9fa1a3a6a7a8a9aaadaeb4b8b9babebfc1c2c3c5c8cacdced0d2d3d4d5d6d7d8d9dadcdedfe2e3e5e6e7e8e9eaeceef1f2f4f7fe,52:0405090b0c0f101314151c1e1f2122232526272a2c2f313234353c3e4445464748494b4e4f5253555758#595a5b5d5f6062636466686b6c6d6e7071737475767778797a7b7c7e808384858687898a8b8c8d8e8f91929495969798999a9ca4a5a6a7aeafb0b4b5b6b7b8b9babbbcbdc0c1c2c4c5c6c8cacccdcecfd1d3d4d5d7d9dadbdcdddee0e1e2e3e5e6e7e8e9eaebecedeeeff1f2f3f4f5f6f7f8fbfcfd,53:0102030407090a0b0c0e11121314181b1c1e1f2224252728292b2c2d2f3031323334353637383c3d404244464b4c4d505458595b5d65686a6c6d7276797b7c7d7e80818387888a8e8f#90919293949697999b9c9ea0a1a4a7aaabacadafb0b1b2b3b4b5b7b8b9babcbdbec0c3c4c5c6c7cecfd0d2d3d5dadcdddee1e2e7f4fafeff,54:000205070b1418191a1c2224252a303336373a3d3f4142444547494c4d4e4f515a5d5e5f6061636567696a6b6c6d6e6f7074797a7e7f8183858788898a8d919397989c9e9fa0a1a2a5aeb0b2b5b6b7b9babcbec3c5cacbd6d8dbe0e1e2e3e4ebeceff0f1f4f5f6f7f8f9fbfe,55:0002030405080a0b0c0d0e121315161718191a1c1d1e1f212526#28292b2d3234353638393a3b3d40424547484b4c4d4e4f515253545758595a5b5d5e5f60626368696b6f7071727374797a7d7f85868c8d8e9092939596979a9b9ea0a1a2a3a4a5a6a8a9aaabacadaeafb0b2b4b6b8babcbfc0c1c2c3c6c7c8cacbcecfd0d5d7d8d9dadbdee0e2e7e9edeef0f1f4f6f8f9fafbfcff,56:0203040506070a0b0d1011121314151617191a1c1d202122252628292a2b2e2f30333537383a3c3d3e404142434445464748494a4b4f5051525355565a5b5d5e5f6061#636566676d6e6f70727374757778797a7d7e7f80818283848788898a8b8c8d9091929495969798999a9b9c9d9e9fa0a1a2a4a5a6a7a8a9aaabacadaeb0b1b2b3b4b5b6b8b9babbbdbebfc0c1c2c3c4c5c6c7c8c9cbcccdcecfd0d1d2d3d5d6d8d9dce3e5e6e7e8e9eaeceeeff2f3f6f7f8fbfc,57:00010205070b0c0d0e0f101112131415161718191a1b1d1e202122242526272b313234353637383c3d3f414344454648494b52535455565859626365676c6e707172747578797a7d7e7f80#818788898a8d8e8f90919495969798999a9c9d9e9fa5a8aaacafb0b1b3b5b6b7b9babbbcbdbebfc0c1c4c5c6c7c8c9cacccdd0d1d3d6d7dbdcdee1e2e3e5e6e7e8e9eaebeceef0f1f2f3f5f6f7fbfcfeff,58:0103040508090a0c0e0f101213141617181a1b1c1d1f222325262728292b2c2d2e2f31323334363738393a3b3c3d3e3f4041424345464748494a4b4e4f505253555657595a5b5c5d5f6061626364666768696a6d6e6f707172737475767778797a7b7c7d7f82848687888a8b8c#8d8e8f909194959697989b9c9da0a1a2a3a4a5a6a7aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbdbebfc0c2c3c4c6c7c8c9cacbcccdcecfd0d2d3d4d6d7d8d9dadbdcdddedfe0e1e2e3e5e6e7e8e9eaedeff1f2f4f5f7f8fafbfcfdfeff,59:000103050608090a0b0c0e1011121317181b1d1e2021222326282c30323335363b3d3e3f404345464a4c4d505253595b5c5d5e5f616364666768696a6b6c6d6e6f70717275777a7b7c7e7f8085898b8c8e8f90919495989a9b9c9d9fa0a1a2a6#a7acadb0b1b3b4b5b6b7b8babcbdbfc0c1c2c3c4c5c7c8c9cccdcecfd5d6d9dbdedfe0e1e2e4e6e7e9eaebedeeeff0f1f2f3f4f5f6f7f8fafcfdfe,5a:00020a0b0d0e0f101214151617191a1b1d1e2122242627282a2b2c2d2e2f3033353738393a3b3d3e3f414243444547484b4c4d4e4f5051525354565758595b5c5d5e5f60616364656668696b6c6d6e6f7071727378797b7c7d7e808182838485868788898a8b8c8d8e8f9091939495969798999c9d9e9fa0a1a2a3a4a5a6a7a8a9abac#adaeafb0b1b4b6b7b9babbbcbdbfc0c3c4c5c6c7c8cacbcdcecfd0d1d3d5d7d9dadbdddedfe2e4e5e7e8eaecedeeeff0f2f3f4f5f6f7f8f9fafbfcfdfeff,5b:0001020304050607080a0b0c0d0e0f10111213141518191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303133353638393a3b3c3d3e3f4142434445464748494a4b4c4d4e4f52565e606167686b6d6e6f7274767778797b7c7e7f82868a8d8e90919294969fa7a8a9acadaeafb1b2b7babbbcc0c1c3c8c9cacbcdcecf#d1d4d5d6d7d8d9dadbdce0e2e3e6e7e9eaebecedeff1f2f3f4f5f6f7fdfe,5c:0002030507080b0c0d0e10121317191b1e1f2021232628292a2b2d2e2f303233353637434446474c4d5253545657585a5b5c5d5f62646768696a6b6c6d70727374757677787b7c7d7e808384858687898a8b8e8f9293959d9e9fa0a1a4a5a6a7a8aaaeafb0b2b4b6b9babbbcbec0c2c3c5c6c7c8c9cacccdcecfd0d1d3d4d5d6d7d8dadbdcdddedfe0e2e3e7e9ebeceeeff1f2f3f4f5f6f7f8f9fafcfdfeff,5d:00#01040508090a0b0c0d0f10111213151718191a1c1d1f2021222325282a2b2c2f3031323335363738393a3b3c3f4041424344454648494d4e4f5051525354555657595a5c5e5f6061626364656667686a6d6e7071727375767778797a7b7c7d7e7f8081838485868788898a8b8c8d8e8f9091929394959697989a9b9c9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b8b9babbbcbdbebfc0c1c2c3c4c6c7c8c9cacbcccecfd0d1d2d3d4d5d6d7d8d9dadcdfe0e3e4eaeced#f0f5f6f8f9fafbfcff,5e:000407090a0b0d0e1213171e1f20212223242528292a2b2c2f303233343536393a3e3f404143464748494a4b4d4e4f50515253565758595a5c5d5f60636465666768696a6b6c6d6e6f70717577797e8182838588898c8d8e92989b9da1a2a3a4a8a9aaabacaeafb0b1b2b4babbbcbdbfc0c1c2c3c4c5c6c7c8cbcccdcecfd0d4d5d7d8d9dadcdddedfe0e1e2e3e4e5e6e7e9ebecedeeeff0f1f2f3f5f8f9fbfcfd,5f:050607090c0d0e10121416191a1c1d1e21222324#282b2c2e30323334353637383b3d3e3f4142434445464748494a4b4c4d4e4f5154595a5b5c5e5f60636567686b6e6f72747576787a7d7e7f83868d8e8f919394969a9b9d9e9fa0a2a3a4a5a6a7a9abacafb0b1b2b3b4b6b8b9babbbebfc0c1c2c7c8cacbced3d4d5dadbdcdedfe2e3e5e6e8e9eceff0f2f3f4f6f7f9fafc,60:0708090b0c10111317181a1e1f2223242c2d2e3031323334363738393a3d3e404445464748494a4c4e4f5153545657585b5c5e5f606165666e71727475777e80#8182858687888a8b8e8f909193959798999c9ea1a2a4a5a7a9aaaeb0b3b5b6b7b9babdbebfc0c1c2c3c4c7c8c9cccdcecfd0d2d3d4d6d7d9dbdee1e2e3e4e5eaf1f2f5f7f8fbfcfdfeff,61:02030405070a0b0c1011121314161718191b1c1d1e21222528292a2c2d2e2f303132333435363738393a3b3c3d3e4041424344454647494b4d4f50525354565758595a5b5c5e5f606163646566696a6b6c6d6e6f717273747678797a7b7c7d7e7f808182838485868788898a8c8d8f9091929395#969798999a9b9c9e9fa0a1a2a3a4a5a6aaabadaeafb0b1b2b3b4b5b6b8b9babbbcbdbfc0c1c3c4c5c6c7c9cccdcecfd0d3d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e7e8e9eaebecedeeeff0f1f2f3f4f6f7f8f9fafbfcfdfe,62:00010203040507091314191c1d1e2023262728292b2d2f303132353638393a3b3c424445464a4f50555657595a5c5d5e5f6061626465687172747577787a7b7d818283858687888b8c8d8e8f9094999c9d9ea3a6a7a9aaadaeafb0b2b3b4b6b7b8babec0c1#c3cbcfd1d5dddee0e1e4eaebf0f2f5f8f9fafb,63:00030405060a0b0c0d0f10121314151718191c2627292c2d2e30313334353637383b3c3e3f40414447484a51525354565758595a5b5c5d60646566686a6b6c6f707273747578797c7d7e7f81838485868b8d9193949597999a9b9c9d9e9fa1a4a6abafb1b2b5b6b9bbbdbfc0c1c2c3c5c7c8cacbccd1d3d4d5d7d8d9dadbdcdddfe2e4e5e6e7e8ebeceeeff0f1f3f5f7f9fafbfcfe,64:0304060708090a0d0e111215161718191a1d1f222324#252728292b2e2f3031323335363738393b3c3e404243494b4c4d4e4f505153555657595a5b5c5d5f60616263646566686a6b6c6e6f70717273747576777b7c7d7e7f8081838688898a8b8c8d8e8f90939497989a9b9c9d9fa0a1a2a3a5a6a7a8aaabafb1b2b3b4b6b9bbbdbebfc1c3c4c6c7c8c9cacbcccfd1d3d4d5d6d9dadbdcdddfe0e1e3e5e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,65:01020304050607080a0b0c0d0e0f10111314151617191a1b1c1d1e1f2021#222324262728292a2c2d30313233373a3c3d404142434446474a4b4d4e5052535457585a5c5f606164656768696a6d6e6f7173757678797a7b7c7d7e7f8081828384858688898a8d8e8f92949596989a9d9ea0a2a3a6a8aaacaeb1b2b3b4b5b6b7b8babbbebfc0c2c7c8c9cacdd0d1d3d4d5d8d9dadbdcdddedfe1e3e4eaebf2f3f4f5f8f9fbfcfdfeff,66:0104050708090b0d1011121617181a1b1c1e2122232426292a2b2c2e3032333738393a3b3d3f40424445464748494a4d4e505158#595b5c5d5e6062636567696a6b6c6d7172737578797b7c7d7f808183858688898a8b8d8e8f909293949598999a9b9c9e9fa0a1a2a3a4a5a6a9aaabacadafb0b1b2b3b5b6b7b8babbbcbdbfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8dadedfe0e1e2e3e4e5e7e8eaebecedeeeff1f5f6f8fafbfd,67:010203040506070c0e0f1112131618191a1c1e20212223242527292e303233363738393b3c3e3f414445474a4b4d5254555758595a5b5d62636466676b6c6e717476#78797a7b7d8082838586888a8c8d8e8f9192939496999b9fa0a1a4a6a9acaeb1b2b4b9babbbcbdbebfc0c2c5c6c7c8c9cacbcccdced5d6d7dbdfe1e3e4e6e7e8eaebedeef2f5f6f7f8f9fafbfcfe,68:01020304060d1012141518191a1b1c1e1f20222324252627282b2c2d2e2f30313435363a3b3f474b4d4f52565758595a5b5c5d5e5f6a6c6d6e6f707172737578797a7b7c7d7e7f8082848788898a8b8c8d8e90919294959698999a9b9c9d9e9fa0a1a3a4a5a9aaabacaeb1b2b4b6b7b8#b9babbbcbdbebfc1c3c4c5c6c7c8cacccecfd0d1d3d4d6d7d9dbdcdddedfe1e2e4e5e6e7e8e9eaebecedeff2f3f4f6f7f8fbfdfeff,69:00020304060708090a0c0f11131415161718191a1b1c1d1e21222325262728292a2b2c2e2f313233353637383a3b3c3e4041434445464748494a4b4c4d4e4f50515253555658595b5c5f616264656768696a6c6d6f7072737475767a7b7d7e7f8183858a8b8c8e8f909192939697999a9d9e9fa0a1a2a3a4a5a6a9aaacaeafb0b2b3b5b6b8b9babcbd#bebfc0c2c3c4c5c6c7c8c9cbcdcfd1d2d3d5d6d7d8d9dadcdddee1e2e3e4e5e6e7e8e9eaebeceeeff0f1f3f4f5f6f7f8f9fafbfcfe,6a:000102030405060708090b0c0d0e0f10111213141516191a1b1c1d1e20222324252627292b2c2d2e30323334363738393a3b3c3f40414243454648494a4b4c4d4e4f515253545556575a5c5d5e5f60626364666768696a6b6c6d6e6f70727374757677787a7b7d7e7f81828385868788898a8b8c8d8f929394959698999a9b9c9d9e9fa1a2a3a4a5a6#a7a8aaadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,6b:000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f252628292a2b2c2d2e2f303133343536383b3c3d3f4041424445484a4b4d4e4f5051525354555657585a5b5c5d5e5f606168696b6c6d6e6f7071727374757677787a7d7e7f808588#8c8e8f909194959798999c9d9e9fa0a2a3a4a5a6a7a8a9abacadaeafb0b1b2b6b8b9babbbcbdbec0c3c4c6c7c8c9caccced0d1d8dadcdddedfe0e2e3e4e5e6e7e8e9ecedeef0f1f2f4f6f7f8fafbfcfeff,6c:000102030408090a0b0c0e12171c1d1e2023252b2c2d31333637393a3b3c3e3f434445484b4c4d4e4f5152535658595a62636566676b6c6d6e6f71737577787a7b7c7f8084878a8b8d8e9192959697989a9c9d9ea0a2a8acafb0b4b5b6b7bac0c1c2c3c6c7c8cbcdcecfd1d2d8#d9dadcdddfe4e6e7e9ecedf2f4f9ff,6d:000203050608090a0d0f101113141516181c1d1f20212223242628292c2d2f30343637383a3f404244494c50555657585b5d5f6162646567686b6c6d707172737576797a7b7d7e7f8081838486878a8b8d8f9092969798999a9ca2a5acadb0b1b3b4b6b7b9babbbcbdbec1c2c3c8c9cacdcecfd0d2d3d4d5d7dadbdcdfe2e3e5e7e8e9eaedeff0f2f4f5f6f8fafdfeff,6e:0001020304060708090b0f12131518191b1c1e1f222627282a2c2e30313335#3637393b3c3d3e3f40414245464748494a4b4c4f5051525557595a5c5d5e606162636465666768696a6c6d6f707172737475767778797a7b7c7d8081828487888a8b8c8d8e91929394959697999a9b9d9ea0a1a3a4a6a8a9abacadaeb0b3b5b8b9bcbebfc0c3c4c5c6c8c9cacccdced0d2d6d8d9dbdcdde3e7eaebecedeeeff0f1f2f3f5f6f7f8fafbfcfdfeff,6f:000103040507080a0b0c0d0e101112161718191a1b1c1d1e1f212223252627282c2e303234353738393a3b3c3d3f404142#43444548494a4c4e4f5051525354555657595a5b5d5f60616364656768696a6b6c6f707173757677797b7d7e7f808182838586878a8b8f909192939495969798999a9b9d9e9fa0a2a3a4a5a6a8a9aaabacadaeafb0b1b2b4b5b7b8babbbcbdbebfc1c3c4c5c6c7c8cacbcccdcecfd0d3d4d5d6d7d8d9dadbdcdddfe2e3e4e5e6e7e8e9eaebecedf0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,70:000102030405060708090a0b0c0d0e0f1012131415161718191c1d1e1f2021222425262728292a#2b2c2d2e2f30313233343637383a3b3c3d3e3f404142434445464748494a4b4d4e505152535455565758595a5b5c5d5f606162636465666768696a6e7172737477797a7b7d818283848687888b8c8d8f90919397989a9b9e9fa0a1a2a3a4a5a6a7a8a9aab0b2b4b5b6babebfc4c5c6c7c9cbcccdcecfd0d1d2d3d4d5d6d7dadcdddee0e1e2e3e5eaeef0f1f2f3f4f5f6f8fafbfcfeff,71:0001020304050607080b0c0d0e0f111214171b1c1d1e1f2021222324252728292a2b2c2d2e323334#353738393a3b3c3d3e3f4041424344464748494b4d4f505152535455565758595a5b5d5f6061626365696a6b6c6d6f707174757677797b7c7e7f8081828385868788898b8c8d8e909192939596979a9b9c9d9ea1a2a3a4a5a6a7a9aaabadaeafb0b1b2b4b6b7b8babbbcbdbebfc0c1c2c4c5c6c7c8c9cacbcccdcfd0d1d2d3d6d7d8d9dadbdcdddedfe1e2e3e4e6e8e9eaebecedeff0f1f2f3f4f5f6f7f8fafbfcfdfeff,72:0001020304050708090a0b0c0d0e0f101112131415161718191a#1b1c1e1f2021222324252627292b2d2e2f3233343a3c3e40414243444546494a4b4e4f505153545557585a5c5e60636465686a6b6c6d707173747677787b7c7d828385868788898c8e9091939495969798999a9b9c9d9ea0a1a2a3a4a5a6a7a8a9aaabaeb1b2b3b5babbbcbdbebfc0c5c6c7c9cacbcccfd1d3d4d5d6d8dadb#95$,30:000102,00b702:c9c7,00a830:0305,2014ff5e20:162618191c1d,30:141508090a0b0c0d0e0f16171011,00:b1d7f7,22:362728110f2a2908371aa52520,231222:992b2e614c483d1d606e6f64651e3534,26:4240,00b020:3233,2103ff0400a4ff:e0e1,203000a7211626:0605,25:cbcfcec7c6a1a0b3b2,203b21:92909193,30:13#95$,21:70717273747576777879#4$,24:88898a8b8c8d8e8f909192939495969798999a9b7475767778797a7b7c7d7e7f808182838485868760616263646566676869##,32:20212223242526272829##,21:606162636465666768696a6b#97$,ff:010203e505060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5de3#95$,30:4142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f90919293#106$a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6#103$,03:9192939495969798999a9b9c9d9e9fa0a1a3a4a5a6a7a8a9#6$b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c3c4c5c6c7c8c9#5$,fe:3536393a3f403d3e41424344##3b3c373831#3334#104$,04:10111213141501161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f#13$30313233343551363738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f#11$,02:cacbd9,20:13152535,21:050996979899,22:151f23526667bf,25:505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f7071727381828384858687#88898a8b8c8d8e8f939495bcbde2e3e4e5,2609229530:121d1e#9$,010100e101ce00e0011300e9011b00e8012b00ed01d000ec014d00f301d200f2016b00fa01d400f901:d6d8dadc,00:fcea,0251e7c701:4448,e7c802:61#2$,31:05060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223242526272829#19$,30:212223242526272829,32a333:8e8f9c9d9ea1c4ced1d2d5,fe30ff:e2e4#,212132:31#,20:10#1$,30:fc9b9cfdfe069d9e,fe:494a4b4c4d4e4f50515254555657595a5b5c5d5e5f6061#626364656668696a6b,e7:e7e8e9eaebecedeeeff0f1f2f3,30:07#11$,25:000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b#13$,72:dcdddfe2e3e4e5e6e7eaebf5f6f9fdfeff,73:00020405060708090b0c0d0f1011121418191a1f2023242627282d2f30323335363a3b3c3d404142434445464748#494a4b4c4e4f515354555658595a5b5c5d5e5f6162636465666768696a6b6e7071#92$72737475767778797a7b7c7d7f808182838586888a8c8d8f90929394959798999a9c9d9ea0a1a3a4a5a6a7a8aaacadb1b4b5b6b8b9bcbdbebfc1c3c4c5c6c7#cbccced2d3d4d5d6d7d8dadbdcdddfe1e2e3e4e6e8eaebeceeeff0f1f3f4f5f6f7#92$f8f9fafbfcfdfeff,74:0001020407080b0c0d0e1112131415161718191c1d1e1f2021232427292b2d2f31323738393a3b3d3e3f4042434445464748494a4b4c4d#4e4f505152535456585d606162636465666768696a6b6c6e6f717273747578797a#92$7b7c7d7f8284858688898a8c8d8f9192939495969798999a9b9d9fa0a1a2a3a4a5a6aaabacadaeafb0b1b2b3b4b5b6b7b8b9bbbcbdbebfc0c1c2c3c4c5c6c7#c8c9cacbcccdcecfd0d1d3d4d5d6d7d8d9dadbdddfe1e5e7e8e9eaebecedf0f1f2#92$f3f5f8f9fafbfcfdfe,75:0001020305060708090a0b0c0e1012141516171b1d1e202122232426272a2e3436393c3d3f414243444647494a4d5051525355565758#5d5e5f60616263646768696b6c6d6e6f7071737576777a7b7c7d7e808182848587#92$88898a8c8d8e909395989b9c9ea2a6a7a8a9aaadb6b7babbbfc0c1c6cbcccecfd0d1d3d7d9dadcdddfe0e1e5e9ecedeeeff2f3f5f6f7f8fafbfdfe,76:02040607#08090b0d0e0f11121314161a1c1d1e212327282c2e2f31323637393a3b3d414244#92$45464748494a4b4e4f50515253555758595a5b5d5f6061626465666768696a6c6d6e7071727374757677797a7c7f80818385898a8c8d8f9092949597989a9b#9c9d9e9fa0a1a2a3a5a6a7a8a9aaabacadafb0b3b5b6b7b8b9babbbcbdbec0c1c3,554a963f57c3632854ce550954c076:914c,853c77ee827e788d72319698978d6c285b894ffa630966975cb880fa684880ae660276ce51f9655671ac7ff1888450b2596561ca6fb382ad634c625253ed54277b06516b75a45df462d48dcb9776628a8019575d97387f627238767d67cf767e64464f708d2562dc7a17659173ed642c6273822c9881677f724862:6ecc,4f3474e3534a529e7eca90a65e2e6886699c81807ed168d278c5868c9551508d8c2482de80de53058912526576:c4c7c9cbccd3d5d9dadcdddee0e1e2e3e4e6e7e8e9eaebecedf0f3f5f6f7fafbfdff,77:00020305060a0c0e0f1011121314151617181b1c1d1e21232425272a2b#2c2e3031323334393b3d3e3f4244454648494a4b4c4d4e4f52535455565758595c,858496f94fdd582199715b9d62:b1a5,66b48c799c8d7206676f789160b253:5117,8f8880cc8d1d94a1500d72c8590760eb711988ab595482ef672c7b285d297ef7752d6cf58e668ff8903c9f3b6bd491197b145f7c78a784d6853d6b:d5d9d6,5e:0187,75f995ed655d5f:0ac5,8f9f58c181c2907f965b97ad8fb97f168d2c62414fbf53:d85e,8f:a8a9ab,904d68075f6a819888689cd6618b522b762a5f6c658c6fd26ee85bbe644851:75b0,67c44e1979c9997c70b377:5d5e5f606467696a6d6e6f7071727374757677787a7b7c818283868788898a8b8f90939495969798999a9b9c9d9ea1a3a4a6a8abadaeafb1b2b4b6b7b8b9ba#bcbec0c1c2c3c4c5c6c7c8c9cacbcccecfd0d1d2d3d4d5d6d8d9dadddedfe0e1e4,75c55e7673bb83e064ad62e894b56ce2535a52c3640f94c27b944f2f5e1b823681:168a,6e246cca9a736355535c54fa886557e04e0d5e036b657c3f90e8601664e6731c88c16750624d8d22776c8e2991c75f6983dc8521991053c286956b8b60:ede8,707f82:cd31,4ed36ca785cf64cd7cd969fd66f9834953957b564fa7518c6d4b5c428e6d63d253c983:2c36,67e578b4643d5bdf5c945dee8be762c667f48c7a640063ba8749998b8c177f2094f24ea7961098a4660c731677:e6e8eaeff0f1f2f4f5f7f9fafbfc,78:0304050607080a0b0e0f101315191b1e20212224282a2b2e2f31323335363d3f414243444648494a4b4d4f51535458595a#5b5c5e5f606162636465666768696f7071727374757678797a7b7d7e7f80818283,573a5c1d5e38957f507f80a05382655e7545553150218d856284949e671d56326f6e5de2543570928f66626f64a463a35f7b6f8890f481e38fb05c1866685ff16c8996488d81886c649179f057ce6a59621054484e587a0b60e96f848bda627f901e9a8b79e4540375f4630153196c608fdf5f1b9a70803b9f7f4f885c3a8d647fc565a570bd51:45b2,866b5d075ba062bd916c75748e0c7a2061017b794ec77ef877854e1181ed521d51fa6a7153a88e87950496cf6ec19664695a78:848586888a8b8f9092949596999d9ea0a2a4a6a8a9aaabacadaeafb5b6b7b8babbbcbdbfc0c2c3c4c6c7c8cccdcecfd1d2d3d6d7d8dadbdcdddedfe0e1e2e3#e4e5e6e7e9eaebedeeeff0f1f3f5f6f8f9fbfcfdfeff,79:00020304060708090a0b0c,784050a877d7641089e6590463e35ddd7a7f693d4f20823955984e3275ae7a975e:628a,95ef521b5439708a6376952457826625693f918755076df37eaf882262337ef075b5832878c196cc8f9e614874f78bcd6b64523a8d506b21806a847156f153064e:ce1b,51d17c97918b7c074fc38e7f7be17a9c64675d1450ac810676017cb96dec7fe067515b:58f8,78cb64:ae13,63:aa2b,9519642d8fbe7b5476296253592754466b7950a362345e266b864ee38d37888b5f85902e79:0d0e0f1011121415161718191a1b1c1d1f2021222325262728292a2b2c2d2e2f3031323335363738393d3f42434445474a4b4c4d4e4f505152545558596163#6466696a6b6c6e70717273747576797b7c7d7e7f8283868788898b8c8d8e909192,6020803d62c54e39535590f863b880c665e66c2e4f4660ee6de18bde5f3986cb5f536321515a83616863520063638e4850125c9b79775bfc52307a3b60bc905376d75f:b797,76848e6c706f767b7b4977aa51f3909358244f4e6ef48fea654c7b1b72c46da47fdf5ae162b55e95573084827b2c5e1d5f1f90127f1498a063826ec7789870b95178975b57ab75354f4375385e9760e659606dc06bbf788953fc96d551cb52016389540a94938c038dcc7239789f87768fed8c0d53e079:939495969798999b9c9d9e9fa0a1a2a3a4a5a6a8a9aaabacadaeafb0b1b2b4b5b6b7b8bcbfc2c4c5c7c8cacccecfd0d3d4d6d7d9dadbdcdddee0e1e2e5e8ea#eceef1f2f3f4f5f6f7f9fafcfeff,7a:0104050708090a0c0f10111213151618191b1c,4e0176ef53ee948998769f0e952d5b9a8ba24e:221c,51ac846361c252a8680b4f97606b51bb6d1e515c6296659796618c46901775d890fd77636bd272:8aec,8bfb583577798d4c675c9540809a5ea66e2159927aef77ed953b6bb565ad7f0e58065151961f5bf958a954288e726566987f56e4949d76fe9041638754c659:1a3a,579b8eb267358dfa8235524160f0581586fe5ce89e454fc4989d8bb95a2560765384627c904f9102997f6069800c513f80335c1499756d314e8c7a:1d1f21222425262728292a2b2c2d2e2f303132343536383a3e4041424344454748494a4b4c4d4e4f50525354555658595a5b5c5d5e5f606162636465666768#696a6b6c6d6e6f717273757b7c7d7e828587898a8b8c8e8f909394999a9b9ea1a2,8d3053d17f5a7b4f4f104e4f96006cd573d085e95e06756a7ffb6a0a77fe94927e4151e170e653cd8fd483038d2972af996d6cdb574a82b365b980aa623f963259a84eff8bbf7eba653e83f2975e556198de80a5532a8bfd542080ba5e9f6cb88d3982ac915a54296c1b52067eb7575f711a6c7e7c89594b4efd5fff61247caa4e305c0167ab87025cf0950b98ce75af70fd902251af7f1d8bbd594951e44f5b5426592b657780a45b7562:76c2,8f905e456c1f7b264f:0fd8,670d7a:a3a4a7a9aaabaeafb0b1b2b4b5b6b7b8b9babbbcbdbec0c1c2c3c4c5c6c7c8c9cacccdcecfd0d1d2d3d4d5d7d8dadbdcdde1e2e4e7e8e9eaebeceef0f1f2f3#f4f5f6f7f8fbfcfe,7b:0001020507090c0d0e1012131617181a1c1d1f21222327292d,6d:6eaa,798f88b15f17752b629a8f854fef91dc65a781:2f51,5e9c81508d74526f89868d4b590d50854ed8961c723681798d1f5bcc8ba3964459877f1a549056:760e,8be565396982949976d66e895e72751867:46d1,7aff809d8d76611f79c665628d635188521a94a27f38809b7eb25c976e2f67607bd9768b9ad8818f7f947cd5641e95507a3f54:4ae5,6b4c640162089e3d80f3759952729769845b683c86e496:0194,94ec4e2a54047ed968398ddf801566f45e9a7fb97b:2f303234353637393b3d3f404142434446484a4d4e535557595c5e5f61636465666768696a6b6c6d6f70737476787a7c7d7f81828384868788898a8b8c8e8f#9192939698999a9b9e9fa0a3a4a5aeafb0b2b3b5b6b7b9babbbcbdbebfc0c2c3c4,57c2803f68975de5653b529f606d9f9a4f9b8eac516c5bab5f135de96c5e62f18d21517194a952fe6c9f82df72d757a267848d2d591f8f9c83c754957b8d4f306cbd5b6459d19f1353e486ca9aa88c3780a16545987e56fa96c7522e74dc52505be1630289024e5662d0602a68fa51735b9851a089c27ba199867f5060ef704c8d2f51495e7f901b747089c4572d78455f529f9f95fa8f689b3c8be17678684267dc8d:ea35,523d8f8a6eda68cd950590ed56fd679c88f98fc754c87b:c5c8c9cacbcdcecfd0d2d4d5d6d7d8dbdcdedfe0e2e3e4e7e8e9ebecedeff0f2f3f4f5f6f8f9fafbfdff,7c:0001020304050608090a0d0e101112131415171819#1a1b1c1d1e20212223242528292b2c2d2e2f3031323334353637393a3b3c3d3e42,9ab85b696d776c264ea55bb39a87916361a890af97e9542b6db55bd251fd558a7f:55f0,64bc634d65f161be608d710a6c:5749,592f676d822a58d5568e8c6a6beb90dd597d801753f76d695475559d83:77cf,683879be548c4f55540876d28c8996026cb36db88d6b89109e648d3a563f9ed175d55f8872e0606854fc4ea86a2a886160528f7054c470d886799e3f6d2a5b8f5f187ea255894faf7334543c539a501954:0e7c,4e4e5ffd745a58f6846b80e1877472d07cca6e567c:434445464748494a4b4c4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f70717275767778797a7e7f8081828384858687#888a8b8c8d8e8f90939496999a9ba0a1a3a6a7a8a9abacadafb0b4b5b6b7b8babb,5f27864e552c62a44e926caa623782b154d7534e733e6ed1753b521253168bdd69d05f8a60006dee574f6b2273af68538fd87f13636260a3552475ea8c6271156da35ba65e7b8352614c9ec478fa87577c27768751f060f6714c66435e4c604d8c0e707063258f895fbd606286d456de6bc160946167534960e066668d3f79fd4f1a70e96c478b:b3f2,7ed88364660f5a5a9b426d:51f7,8c416d3b4f19706b83b7621660d1970d8d27797851fb57:3efa,673a75787a3d79ef7b957c:bfc0c2c3c4c6c9cbcecfd0d1d2d3d4d8dadbdddee1e2e3e4e5e6e7e9eaebecedeef0f1f2f3f4f5f6f7f9fafcfdfeff,7d:000102030405060708090b0c0d0e0f10#1112131415161718191a1b1c1d1e1f212324252628292a2c2d2e30313233343536,808c99658ff96fc08ba59e2159ec7ee97f095409678168d88f917c4d96c653ca602575be6c7253735ac97ea7632451e0810a5df184df628051805b634f0e796d524260b86d4e5b:c4c2,8b:a1b0,65e25fcc964559937e:e7aa,560967b759394f735bb652a0835a988a8d3e753294be50477a3c4ef767b69a7e5ac16b7c76d1575a5c167b3a95f4714e517c80a9827059787f04832768c067ec78:b177,62e363617b804fed526a51cf835069db92748d:f531,89c1952e7bad4ef67d:3738393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6f70717273747576#78797a7b7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798,506582305251996f6e:1085,6da75efa50f559dc5c066d466c5f7586848b686859568bb253209171964d854969127901712680f64ea490ca6d479a845a0756bc640594f077eb4fa5811a72e189d2997a7f347ede527f655991758f:7f83,53eb7a9663:eda5,768679f888579636622a52ab8282685467706377776b7aed6d017ed389e359d0621285c982a5754c501f4ecb75a58beb5c4a5dfe7b4b65a491d14eca6d25895f7d2795264ec58c288fdb9773664b79818fd170ec6d787d:999a9b9c9d9e9fa0a1a2a3a4a5a7a8a9aaabacadafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9#dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fa,5c3d52b283465162830e775b66769cb84eac60ca7c:beb3,7ecf4e958b66666f988897595883656c955c5f8475c997567a:dfde,51c070af7a9863ea7a767ea0739697ed4e4570784e5d915253a965:51e7,81fc8205548e5c31759a97a062d872d975bd5c459a7983ca5c40548077e94e3e6cae805a62d2636e5de851778ddd8e1e952f4ff153e560e770ac526763509e435a1f5026773753777ee26485652b628963985014723589c951b38bc07edd574783cc94a7519b541b5cfb7d:fbfcfdfeff,7e:000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f30313233343536373839#3a3c3d3e3f40424344454648494a4b4c4d4e4f505152535455565758595a5b5c5d,4fca7ae36d5a90e19a8f55805496536154af5f0063e9697751ef6168520a582a52d8574e780d770b5eb761777ce062:5b97,4ea27095800362f770e49760577782db67ef68f578d5989779d158f354b353ef6e34514b523b5ba28bfe80af554357a660735751542d7a7a60505b5463a762a053e362635bc767af54ed7a9f82e691775e9388e4593857ae630e8de880ef57577b774fa95feb5bbd6b3e53217b5072c2684677:ff36,65f751b54e8f76d45cbf7aa58475594e9b4150807e:5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f8081838485868788898a8b8c8d8e8f909192939495969798999a9c9d9e#aeb4bbbcd6e4ecf9,7f:0a101e37393b3c3d3e3f404143464748494a4b4c4d4e4f5253,998861276e8357646606634656f062:ec69,5ed39614578362c955878721814a8fa3556683b167658d5684dd5a6a680f62e67bee961151706f9c8c3063fd89c861d27f0670c26ee57405699472fc5eca90ce67176d6a635e52b3726280014f6c59e5916a70d96d9d52d24e5096f7956d857e78ca7d2f5121579264c2808b7c7b6cea68f1695e51b7539868a872819ece7bf172f879bb6f137406674e91cc9ca4793c83:8954,540f68174e3d538952b1783e5386522950884f:8bd0,7f:56595b5c5d5e6063646566676b6c6d6f7073757677787a7b7c7d7f8082838485868788898b8d8f9091929395969798999b9ca0a2a3a5a6a8a9aaabacadaeb1#b3b4b5b6b7babbbec0c2c3c4c6c7c8c9cbcdcfd0d1d2d3d6d7d9dadbdcdddee2e3,75e27acb7c926ca596b6529b748354e94fe9805483b28fde95705ec9601c6d9f5e18655b813894fe604b70bc7ec37cae51c968817cb1826f4e248f8691cf667e4eae8c0564a9804a50da759771ce5be58fbd6f664e86648295635ed66599521788c270c852a3730e7433679778f797164e3490bb9cde6dcb51db8d41541d62ce73b283f196f69f8494c34f367f9a51cc707596755cad988653e64ee46e9c740969b4786b998f7559521876246d4167f3516d9f99804b54997b3c7abf7f:e4e7e8eaebecedeff2f4f5f6f7f8f9fafdfeff,80:020708090a0e0f11131a1b1d1e1f2123242b2c2d2e2f303234393a3c3e404144454748494e4f505153555657#595b5c5d5e5f6061626364656667686b6c6d6e6f7072737475767778797a7b7c7d,9686578462e29647697c5a0464027bd36f0f964b82a6536298855e90708963b35364864f9c819e93788c97328d:ef42,9e7f6f5e79845f559646622e9a74541594dd4fa365c55c:6561,7f1586516c2f5f8b73876ee47eff5ce6631b5b6a6ee653754e7163a0756562a18f6e4f264ed16ca67eb68bba841d87ba7f57903b95237ba99aa188f8843d6d1b9a867edc59889ebb739b780186829a:6c82,561b541757cb4e709ea653568fc881097792999286ee6ee1851366fc61626f2b80:7e818285888a8d8e8f909192949597999ea3a6a7a8acb0b3b5b6b8b9bbc5c7c8c9cacbcfd0d1d2d3d4d5d8dfe0e2e3e6eef5f7f9fbfeff,81:000103040507080b#0c1517191b1c1d1f202122232425262728292a2b2d2e3033343537393a3b3c3d3f,8c298292832b76f26c135fd983bd732b8305951a6bdb77db94c6536f830251925e3d8c8c8d384e4873ab679a68859176970971646ca177095a9295416bcf7f8e66275bd059b95a9a95:e8f7,4eec84:0c99,6aac76df9530731b68a65b5f772f919a97617cdc8ff78c1c5f257c7379d889c56ccc871c5bc65e4268c977207ef551:954d,52c95a297f05976282d763cf778485d079d26e3a5e9959998511706d6c1162bf76bf654f60af95fd660e879f9e2394ed54:0d7d,8c2c647881:40414243444547494d4e4f525657585b5c5d5e5f6162636466686a6b6c6f727375767778818384858687898b8c8d8e90929394959697999a9e9fa0a1a2a4a5#a7a9abacadaeafb0b1b2b4b5b6b7b8b9bcbdbebfc4c5c7c8c9cbcdcecfd0d1d2d3,647986116a21819c78e864699b5462b9672b83ab58a89ed86cab6f205bde964c8c0b725f67d062c772614ea959c66bcd589366ae5e5552df6155672876ee776672677a4662ff54:ea50,94a090a35a1c7eb36c164e435976801059485357753796be56ca63208111607c95f96dd65462998151855ae980fd59ae9713502a6ce55c3c62df4f60533f817b90066eba852b62c85e7478be64b5637b5ff55a18917f9e1f5c3f634f80425b7d556e95:4a4d,6d8560a867e072de51dd5b8181:d4d5d6d7d8d9dadbdcdddedfe0e1e2e4e5e6e8e9ebeeeff0f1f2f5f6f7f8f9fafdff,82:030708090a0b0e0f111315161718191a1d2024252627292e323a3c3d3f#404142434546484a4c4d4e5051525354555657595b5c5d5e606162636465666769,62e76cde725b626d94ae7ebd81136d53519c5f04597452aa6012597366968650759f632a61e67cef8bfa54e66b279e256bb485d5545550766ca4556a8db4722c5e156015743662cd6392724c5f986e436d3e65006f5876d878d076fc7554522453db4e535e9e65c180:2ad6,629b5486522870ae888d8dd16ce1547880da57f988f48d54966a914d4f696c9b55b776c6783062a870f96f8e5f6d84ec68da787c7bf781a8670b9e4f636778b0576f7812973962:79ab,528874356bd782:6a6b6c6d71757677787b7c808183858687898c90939495969a9b9ea0a2a3a7b2b5b6babbbcbfc0c2c3c5c6c9d0d6d9dadde2e7e8e9eaecedeef0f2f3f5f6f8#fafcfdfeff,83:000a0b0d1012131618191d1e1f20212223242526292a2e3032373b3d,5564813e75b276ae533975de50fb5c418b6c7bc7504f72479a9798d86f0274e27968648777a562fc98918d2b54c180584e52576a82f9840d5e7351ed74f68bc45c4f57616cfc98875a4678349b448feb7c955256625194fa4ec68386846183e984b257d467345703666e6d668c3166dd7011671f6b3a6816621a59bb4e0351c46f0667d26c8f517668cb59476b6775665d0e81109f5065d779:4841,9a918d775c824e5e4f01542f5951780c56686c148fc45f036c:7de3,8bab639083:3e3f41424445484a4b4c4d4e5355565758595d6270717273747576797a7e7f808182838487888a8b8c8d8f909194959697999a9d9fa1a2a3a4a5a6a7acadae#afb5bbbebfc2c3c4c6c8c9cbcdced0d1d2d3d5d7d9dadbdee2e3e4e6e7e8ebeced,60706d3d7275626694:8ec5,53438fc17b7e4edf8c264e7e9ed494:b1b3,524d6f5c90636d458c3458115d4c6b:2049,67aa545b81547f8c589985375f3a62a26a47953965726084686577a74e544fa85de7979864ac7fd85ced4fcf7a8d520783044e14602f7a8394a64fb54eb279e6743452e482b964d279bd5bdd6c8197528f7b6c22503e537f6e0564ce66746c3060c598778bf75e86743c7a7779cb4e1890b174036c4256da914b6cc58d8b533a86c666f28eaf5c489a716e2083:eeeff3f4f5f6f7fafbfcfeff,84:0002050708090a10121314151617191a1b1e1f20212223292a2b2c2d2e2f30323334353637393a3b3e3f404142434445474849#4a4b4c4d4e4f505253545556585d5e5f606264656667686a6e6f70727477797b7c,53d65a369f8b8da353bb570898a76743919b6cc9516875ca62f372ac52:389d,7f3a7094763853749e4a69b7786e96c088d97fa471:36c3,518967d374e458e4651856b78ba9997662707ed560f970ed58ec4e:c1ba,5fcd97e74efb8ba45203598a7eab62544ecd65e5620e833884c98363878d71946eb65bb97ed2519763c967d480898339881551125b7a59828fb14e736c5d516589258f6f962e854a745e95:10f0,6da682e55f3164926d128428816e9cc3585e8d5b4e0953c184:7d7e7f8081838485868a8d8f90919293949596989a9b9d9e9fa0a2a3a4a5a6a7a8a9aaabacadaeb0b1b3b5b6b7bbbcbec0c2c3c5c6c7c8cbcccecfd2d4d5d7#d8d9dadbdcdee1e2e4e7e8e9eaebedeeeff1f2f3f4f5f6f7f8f9fafbfdfe,85:000102,4f1e6563685155d34e2764149a9a626b5ac2745f82726da968ee50e7838e7802674052396c997eb150bb5565715e7b5b665273ca82eb67495c715220717d886b95ea965564c58d6181b355846c5562477f2e58924f2455468d4f664c4e0a5c1a88f368a2634e7a0d70e7828d52fa97f65c1154e890b57ecd59628d4a86c782:0c0d,8d6664445c0461516d89793e8bbe78377533547b4f388eab6df15a207ec5795e6c885ba15a76751a80be614e6e1758f075:1f25,727253477ef385:030405060708090a0b0d0e0f101214151618191b1c1d1e2022232425262728292a2d2e2f303132333435363e3f404142444546474b4c4d4e4f505152535455#57585a5b5c5d5f60616263656667696a6b6c6d6e6f707173757677787c7d7f8081,770176db526980dc57235e08593172ee65bd6e7f8bd75c388671534177f362fe65f64ec098df86805b9e8bc653f277e24f7f5c4e9a7659cb5f0f793a58eb4e1667ff4e8b62ed8a93901d52bf662f55dc566c90024ed54f8d91ca99706c0f5e0260435ba489c68bd56536624b99965b:88ff,6388552e53d77626517d852c67a268b36b8a62928f9353d482126dd1758f4e668d4e5b70719f85af66:91d9,7f7287009ecd9f205c5e672f8ff06811675f620d7ad658855eb665706f3185:82838688898a8b8c8d8e909192939495969798999a9d9e9fa0a1a2a3a5a6a7a9abacadb1b2b3b4b5b6b8babbbcbdbebfc0c2c3c4c5c6c7c8cacbcccdced1d2#d4d6d7d8d9dadbdddedfe0e1e2e3e5e6e7e8eaebecedeeeff0f1f2f3f4f5f6f7f8,60555237800d6454887075295e05681362f4971c53cc723d8c016c3477617a0e542e77ac987a821c8bf47855671470c165af64955636601d79c153f84e1d6b7b80865bfa55e356db4f:3a3c,99725df3677e80386002988290015b8b8b:bcf5,641c825864de55fd82cf91654fd77d20901f7c9f50f358516eaf5bbf8bc980839178849c7b97867d96:8b8f,7ee59ad3788e5c817a57904296a7795f5b59635f7b0b84d168ad55067f2974107d2295016240584c4ed65b835979585485:f9fafcfdfe,86:0001020304060708090a0b0c0d0e0f10121314151718191a1b1c1d1e1f20212223242526282a2b2c2d2e2f3031323334353637393a3b3d3e3f40#4142434445464748494a4b4c525355565758595b5c5d5f6061636465666768696a,736d631e8e:4b0f,80ce82d462ac53f06cf0915e592a60016c70574d644a8d2a762b6ee9575b6a8075f06f6d8c:2d08,57666bef889278b363a253f970ad6c645858642a580268e0819b55107cd650188eba6dcc8d9f70eb638f6d9b6ed47ee68404684390036dd896768ba85957727985e4817e75bc8a8a68af52548e22951163d098988e44557c4f5366ff568f60d56d9552435c4959296dfb586b75:301c,606c82148146631167618fe2773a8d:f334,94c15e165385542c70c386:6d6f7072737475767778838485868788898e8f90919294969798999a9b9e9fa0a1a2a5a6abadaeb2b3b7b8b9bbbcbdbebfc1c2c3c5c8cccdd2d3d5d6d7dadc#dde0e1e2e3e5e6e7e8eaebeceff5f6f7fafbfcfdff,87:010405060b0c0e0f10111416,6c405ef7505c4ead5ead633a8247901a6850916e77b3540c94dc5f647ae5687663457b527edf75db507762955934900f51f879c37a8156fe5f9290146d825c60571f541051546e4d56e263a89893817f8715892a9000541e5c6f81c062:d658,81319e3596409a:6e7c,692d59a562d3553e631654c786d96d3c5a0374e6889c6b6a59168c4c5f2f6e7e73a9987d4e3870f75b8c7897633d665a769660cb5b9b5a494e0781556c6a738b4ea167897f515f8065fa671b5fd859845a0187:191b1d1f20242627282a2b2c2d2f303233353638393a3c3d404142434445464a4b4d4f505152545556585a5b5c5d5e5f6162666768696a6b6c6d6f71727375#7778797a7f8081848687898a8c8e8f90919294959698999a9b9c9d9ea0a1a2a3a4,5dcd5fae537197e68fdd684556f4552f60df4e3a6f4d7ef482c7840e59d44f:1f2a,5c3e7eac672a851a5473754f80c355829b4f4f4d6e2d8c135c096170536b761f6e29868a658795fb7eb9543b7a337d0a95ee55e17fc174ee631d87176da17a9d621165a1536763e16c835deb545c94a84e4c6c618bec5c4b65e0829c68a754:3e34,6b:cb66,4e9463425348821e4f:0dae,575e620a96fe6664726952:ffa1,609f8bef661471996790897f785277fd6670563b54389521727a87:a5a6a7a9aaaeb0b1b2b4b6b7b8b9bbbcbebfc1c2c3c4c5c7c8c9cccdcecfd0d4d5d6d7d8d9dadcdddedfe1e2e3e4e6e7e8e9ebecedeff0f1f2f3f4f5f6f7f8#fafbfcfdff,88:0001020405060708090b0c0d0e0f101112141718191a1c1d1e1f2023,7a00606f5e0c6089819d591560dc718470ef6eaa6c5072806a8488ad5e2d4e605ab3559c94e36d177cfb9699620f7ec6778e867e5323971e8f9666875ce14fa072ed4e0b53a6590f54136380952851484ed99c9c7ea454b88d248854823795f26d8e5f265acc663e966973:b02e,53bf817a99857fa15baa96:7750,7ebf76f853a2957699997bb189446e584e617fd479658be660f354cd4eab98795df76a6150cf54118c618427785d9704524a54ee56a395006d885bb56dc6665388:2425262728292a2b2c2d2e2f30313334353637383a3b3d3e3f414243464748494a4b4e4f505152535556585a5b5c5d5e5f6066676a6d6f717374757678797a#7b7c80838687898a8c8e8f90919394959798999a9b9d9e9fa0a1a3a5a6a7a8a9aa,5c0f5b5d6821809655787b11654869544e9b6b47874e978b534f631f643a90aa659c80c18c10519968b0537887f961c86c:c4fb,8c225c5185aa82af950c6b238f9b65b05f:fbc3,4fe18845661f8165732960fa51745211578b5f6290a2884c91925e78674f602759d351:44f6,80f853086c7996c4718a4f:11ee,7f9e673d55c5950879c088967ee3589f620c9700865a5618987b5f908bb884c4915753d965ed5e8f755c60647d6e5a7f7e:eaed,8f6955a75ba360ac65cb738488:acaeafb0b2b3b4b5b6b8b9babbbdbebfc0c3c4c7c8cacbcccdcfd0d1d3d6d7dadbdcdddee0e1e6e7e9eaebecedeeeff2f5f6f7fafbfdff,89:0001030405060708#090b0c0d0e0f1114151617181c1d1e1f20222324262728292c2d2e2f3132333537,9009766377297eda9774859b5b667a7496ea884052cb718f5faa65ec8be25bfb9a6f5de16b896c5b8b:adaf,900a8fc5538b62bc9e:262d,54404e2b82bd7259869c5d1688596daf96c554d14e9a8bb6710954bd960970df6df976d04e25781487125ca95ef68a00989c960e708e6cbf594463a9773c884d6f148273583071d5538c781a96c155015f6671305bb48c1a9a8c6b83592e9e2f79e76768626c4f6f75a17f8a6d0b96336c274ef075d2517b68376f3e908081705996747689:38393a3b3c3d3e3f40424345464748494a4b4c4d4e4f505152535455565758595a5b5c5d6061626364656768696a6b6c6d6e6f707172737475767778797a7c#7d7e808284858788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1,64475c2790657a918c2359da54ac8200836f898180006930564e8036723791ce51b64e5f987563964e1a53f666f3814b591c6db24e0058f9533b63d694f14f:9d0a,886398905937905779fb4eea80f075916c825b9c59e85f5d69058681501a5df24e5977e34ee5827a6291661390915c794ebf5f7981c69038808475ab4ea688d4610f6bc55fc64e4976ca6ea28b:e3ae,8c0a8bd15f027f:fccc,7ece83:356b,56e06bb797f3963459fb541f94f66deb5bc5996e5c395f15969089:a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c3cdd3d4d5d7d8d9dbdddfe0e1e2e4e7e8e9eaecedeef0f1f2f4f5f6f7f8f9fa#fbfcfdfeff,8a:01020304050608090a0b0c0d0e0f101112131415161718191a1b1c1d,537082f16a315a749e705e947f2883b984:2425,836787478fce8d6276c85f719896786c662054df62e54f6381c375c85eb896cd8e0a86f9548f6cf36d8c6c38607f52c775285e7d4f1860a05fe75c24753190ae94c072b96cb96e389149670953:cbf3,4f5191c98bf153c85e7c8fc26de44e8e76c26986865e611a82064f:59de,903e9c7c61096e:1d14,96854e885a3196e84e0e5c7f79b95b878bed7fbd738957df828b90c15401904755bb5cea5fa161086b3272f180b28a:891e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3f4041424344454647494a4b4c4d4e4f505152535455565758595a5b5c5d5e#5f606162636465666768696a6b6c6d6e6f7071727374757677787a7b7c7d7e7f80,6d745bd388d598848c6b9a6d9e336e0a51:a443,57a38881539f63f48f9556ed54585706733f6e907f188fdc82d1613f6028966266f07ea68d:8ac3,94a55cb37ca4670860a6960580184e9190e75300966851418fd08574915d665597f55b55531d78386742683d54c9707e5bb08f7d518d572854b1651266828d:5e43,810f846c906d7cdf51ff85fb67a365e96fa186a48e81566a90207682707671e58d2362e952196cfd8d3c600e589e618e66fe8d60624e55b36e23672d8f678a:81828384858687888b8c8d8e8f9091929495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2#c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3,94e195f87728680569a8548b4e4d70b88bc86458658b5b857a84503a5be877bb6be18a797c986cbe76cf65a98f975d2d5c5586386808536062187ad96e5b7efd6a1f7ae05f706f335f20638c6da867564e085e108d264ed780c07634969c62db662d627e6cbc8d7571677f695146808753ec906e629854f286f08f998005951785178fd96d5973cd659f771f7504782781fb8d1e94884fa6679575b98bca9707632f9547963584b8632377415f8172f04e896014657462ef6b63653f8a:e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,8b:0001020304050608090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223#24252728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445,5e2775c790d18bc1829d679d652f5431871877e580a281026c414e4b7ec7804c76f4690d6b966267503c4f84574063076b628dbe53ea65e87eb85fd763:1ab7,81:f3f4,7f6e5e1c5cd95236667a79e97a1a8d28709975d46ede6cbb7a924e2d76c55fe0949f88777ec879cd80bf91cd4ef24f17821f54685dde6d328bcc7ca58f7480985e1a549276b15b99663c9aa473e0682a86db6731732a8b:f8db,90107af970db716e62c477a956314e3b845767f152a986c08d2e94f87b518b:464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f6061626364656768696a6b6d6e6f707172737475767778797a7b7c7d7e7f80818283848586#8788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9facb1bbc7d0ea,8c:091e,4f4f6ce8795d9a7b6293722a62fd4e1378168f6c64b08d5a7bc668695e8488c55986649e58ee72b6690e95258ffd8d5857607f008c0651c6634962d95353684c74228301914c55447740707c6d4a517954a88d4459ff6ecb6dc45b5c7d2b4ed47c7d6ed35b5081ea6e0d5b579b0368d58e2a5b977efc603b7eb590b98d70594f63cd79df8db3535265cf79568bc5963b7ec494bb7e825634918967007f6a5c0a907566285de64f5067de505a4f5c57505e:a7#3$,8c:38393a3b3c3d3e3f4042434445484a4b4d4e4f5051525354565758595b5c5d5e5f60636465666768696c6d6e6f707172747576777b7c7d7e7f808183848687#888b8d8e8f90919293959697999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacad,4e:8d0c,51404e105eff53454e:15981e,9b325b6c56694e2879ba4e3f53154e47592d723b536e6c1056df80e499976bd3777e9f174e:369f,9f104e:5c6993,82885b5b556c560f4ec453:8d9da3a5ae,97658d5d53:1af5262e3e,8d5c53:6663,52:02080e2d333f404c5e615c,84af52:7d82819093,51827f544e:bbc3c9c2e8e1ebde,4f1b4ef34f:2264,4ef54f:2527092b5e67,65384f:5a5d,8c:aeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebec#edeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,8d:000102030405060708090a0b0c0d,4f:5f57323d76749189838f7e7baa7cac94e6e8eac5dae3dcd1dff8,50:294c,4ff350:2c0f2e2d,4ffe50:1c0c25287e4355484e6c7ba5a7a9bad6,510650:edece6ee,51:070b,4edd6c3d4f:5865ce,9fa06c467c74516e5dfd9ec999985181591452f9530d8a07531051eb591951554ea051564eb388:6ea4,4eb5811488d279805b3488037fb851:abb1bdbc,8d:0e0f101112131415161718191a1b1c205152575f6568696a6c6e6f717278797a7b7c7d7e7f808283868788898c8d8e8f90929395969798999a9b9c9d9ea0a1#a2a4a5a6a7a8a9aaabacadaeafb0b2b6b7b9bbbdc0c1c2c5c7c8c9cacdd0d2d3d4,51:c796a2a5,8b:a0a6a7aab4b5b7c2c3cbcfced2d3d4d6d8d9dcdfe0e4e8e9eef0f3f6f9fcff,8c:000204070c0f1112141516191b181d1f202125272a2b2e2f32333536,53:697a,96:1d2221312a3d3c4249545f676c7274888d97b0,90:979b9d99aca1b4b3b6ba,8d:d5d8d9dce0e1e2e5e6e7e9edeef0f1f2f4f6fcfeff,8e:00010203040607080b0d0e1011121315161718191a1b1c202124252627282b2d303233343637383b3c3e#3f4345464c4d4e4f505354555657585a5b5c5d5e5f60616263646567686a6b6e71,90:b8b0cfc5bed0c4c7d3e6e2dcd7dbebeffe,91:04221e23312f394346,520d594252:a2acadbe,54ff52:d0d6f0,53df71ee77cd5ef451:f5fc,9b2f53b65f01755a5def57:4ca9a1,58:7ebcc5d1,57:292c2a33392e2f5c3b4269856b867c7b686d7673ada48cb2cfa7b493a0d5d8dad9d2b8f4eff8e4dd,8e:73757778797a7b7d7e808283848688898a8b8c8d8e91929395969798999a9b9d9fa0a1a2a3a4a5a6a7a8a9aaadaeb0b1b3b4b5b6b7b8b9bbbcbdbebfc0c1c2#c3c4c5c6c7c8c9cacbcccdcfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4,58:0b0d,57:fded,58:001e194420656c81899a80,99a89f1961ff82:797d7f8f8aa8848e919799abb8beb0c8cae398b7aecbccc1a9b4a1aa9fc4cea4e1,830982:f7e4,83:0f07,82:dcf4d2d8,830c82:fbd3,83:111a061415,82:e0d5,83:1c515b5c08923c34319b5e2f4f47435f4017602d3a336665,8e:e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,8f:000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f20212223#2425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f4041424344,83:681b696c6a6d6eb078b3b4a0aa939c857cb6a97db87b989ea8babcc1,840183:e5d8,580784:180b,83:ddfdd6,84:1c381106,83:d4df,84:0f03,83:f8f9eac5c0,842683:f0e1,84:5c515a597387887a89783c4669768c8e316dc1cdd0e6bdd3cabfbae0a1b9b497e5e3,850c750d853884f085:391f3a,8f:45464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f6061626364656a808c929da0a1a2a4a5a6a7aaacadaeafb2b3b4b5b7b8babbbcbfc0c3c6#c9cacbcccdcfd2d6d7dae0e1e3e7eceff1f2f4f5f6fafbfcfeff,90:07080c0e131518,85:563b,84:fffc,85:594868645e7a,77a285:43727ba4a8878f79ae9c85b9b7b0d3c1dcff,86:270529163c,5efe5f0859:3c41,803759:555a58,530f5c:22252c34,62:4c6a9fbbcadad7ee,632262f663:394b43adf6717a8eb46dac8a69aebcf2f8e0ffc4dece,645263:c6be,64:45410b1b200c26215e846d96,90:191c2324252728292a2b2c303132333437393a3d3f4043454648494a4b4c4e545556595a5c5d5e5f6061646667696a6b6c6f70717273767778797a7b7c7e81#84858687898a8c8d8e8f90929496989a9c9e9fa0a4a5a7a8a9abadb2b7bcbdbfc0,64:7ab7b899bac0d0d7e4e2,65:09252e,5f:0bd2,75195f1153:5ff1fde9e8fb,54:1216064b5253545643215759233282947771649a9b8476669dd0adc2b4d2a7a6d3d472a3d5bbbfccd9dadca9aaa4ddcfde,551b54e7552054fd551454f355:22230f11272a678fb5496d41553f503c,90:c2c3c6c8c9cbcccdd2d4d5d6d8d9dadedfe0e3e4e5e9eaeceef0f1f2f3f5f6f7f9fafbfcff,91:00010305060708090a0b0c0d0e0f1011121314151617181a1b1c#1d1f20212425262728292a2b2c2d2e30323334353637383a3b3c3d3e3f40414244,55:375675767733305c8bd283b1b988819f7ed6917bdfbdbe9499eaf7c9,561f55:d1ebecd4e6ddc4efe5f2f3cccde8f5e4,8f9456:1e080c012423,55fe56:00272d5839572c4d62595c4c548664716b7b7c8593afd4d7dde1f5ebf9ff,57:040a091c,5e:0f191411313b3c,91:454748515354555658595b5c5f606667686b6d737a7b7c808182838486888a8e8f939495969798999c9d9e9fa0a1a4a5a6a7a8a9abacb0b1b2b3b6b7b8b9bb#bcbdbebfc0c1c2c3c4c5c6c8cbd0d2d3d4d5d6d7d8d9dadbdddedfe0e1e2e3e4e5,5e:3744545b5e61,5c:8c7a8d9096889899919a9cb5a2bdacabb1a3c1b7c4d2e4cbe5,5d:020327262e241e061b583e343d6c5b6f5d6b4b4a697482999d,8c735d:b7c5,5f:73778287898c95999ca8adb5bc,88625f6172:adb0b4b7b8c3c1cecdd2e8efe9f2f4f7,730172f3730372fa91:e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,92:000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021222324#25262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445,72fb73:1713210a1e1d152239252c3831504d57606c6f7e,821b592598e759:2402,99:636768696a6b6c74777d8084878a8d9091939495,5e:80918b96a5a0b9b5beb3,8d535e:d2d1dbe8ea,81ba5f:c4c9d6cf,60035fee60045f:e1e4fe,60:0506,5f:eaedf8,60:1935261b0f0d292b0a3f2178797b7a42,92:464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f7071727375767778797a7b7c7d7e7f808182838485#868788898a8b8c8d8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7,60:6a7d969aad9d83928c9becbbb1ddd8c6dab4,61:20261523,60f461:000e2b4a75ac94a7b7d4f5,5fdd96b395:e9ebf1f3f5f6fcfe,96:030406080a0b0c0d0f12151617191a,4e2c723f62156c:35545c4aa38590948c6869747686a9d0d4adf7f8f1d7b2e0d6faebeeb1d3effe,92:a8a9aaabacadafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8#e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,93:00010203040506070809,6d:39270c43480704190e2b4d2e351a4f525433916f9ea05e93945c607c63,6e1a6d:c7c5de,6e0e6d:bfe0,6e116d:e6ddd9,6e166dab6e0c6dae6e:2b6e4e6bb25f865354322544dfb198e0,6f2d6e:e2a5a7bdbbb7d7b4cf8fc29f,6f:6246472415,6ef96f:2f364b742a0929898d8c78727c7ad1,93:0a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3f40414243444546474849#4a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696b,6f:c9a7b9b6c2e1eedee0ef,70:1a231b39354f5e,5b:80849593a5b8,752f9a9e64345b:e4ee,89305bf08e478b078f:b6d3d5e5eee4e9e6f3e8,90:05040b26110d162135362d2f445152506858625b,66b990:747d8288838b,5f:50575658,5c3b54ab5c:5059,5b715c:6366,7fbc5f:2a292d,82745f3c9b3b5c6e59:81838da9aaa3,93:6c6d6e6f707172737475767778797a7b7c7d7e7f808182838485868788898a8b8c8d8e909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaab#acadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cbcccd,59:97caab9ea4d2b2afd7be,5a:0506,59dd5a0859:e3d8f9,5a:0c09323411231340674a553c6275,80ec5a:aa9b777abeebb2d2d4b8e0e3f1d6e6d8dc,5b:091716323740,5c:151c,5b:5a6573515362,9a:7577787a7f7d808185888a90929396989b9c9d9fa0a2a3a5a7,7e:9fa1a3a5a8a9,93:cecfd0d1d2d3d4d5d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,94:000102030405060708090a0b0c0d#0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e,7e:adb0bec0c1c2c9cbccd0d4d7dbe0e1e8ebeeeff1f2,7f0d7e:f6fafbfe,7f:01020307080b0c0f111217191c1b1f212223242526272a2b2c2d2f3031323335,5e7a757f5ddb753e909573:8e91aea29fcfc2d1b7b3c0c9c8e5d9,987c740a73:e9e7debaf2,74:0f2a5b262528302e2c,94:2f303132333435363738393a3b3c3d3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6c6d6e6f#707172737475767778797a7b7c7d7e7f8081828384919698c7cfd3d4dae6fb,95:1c20,74:1b1a415c575559776d7e9c8e8081878b9ea8a990a7d2ba,97:eaebec,67:4c535e4869a5876a7398a775a89ead8b777cf0,680967d8680a67:e9b0,680c67:d9b5dab3dd,680067:c3b8e2,680e67:c1fd,68:323360614e624464831d55664167403e4a4929b58f7477936bc2,696e68fc69:1f20,68f995:27333d43484b555a606e74757778797a7b7c7d7e808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aa#abacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacb,692468f069:0b0157,68e369:10713960425d846b80987834cc8788ce896663799ba7bbabadd4b1c1cadf95e08dff,6a2f69ed6a:171865,69f26a:443ea0505b358e793d28587c9190a997ab,73:3752,6b:8182878492938d9a9ba1aa,8f:6b6d71727375767877797a7c7e818284878b,95:cccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3e4e5e6e7ecff,96:0713181b1e20232425262728292b2c2d2f303738393a3e41434a4e4f5152535657#58595a5c5d5e606365666b6d6e6f70717378797a7b7c7d7e7f808182838487898a,8f:8d8e8f989a,8ece62:0b171b1f222125242c,81e774:eff4ff,75:0f1113,65:34eeeff0,66:0a19,677266:031500,708566:f71d34313635,800666:5f54414f56615777848ca79dbedbdce6e9,8d:3233363b3d4045464849474d5559,89:c7cacbcccecfd0d1,72:6e9f5d666f7e7f848b8d8f92,63:0832b0,96:8c8e91929395969a9b9d9e9fa0a1a2a3a4a5a6a8a9aaabacadaeafb1b2b4b5b7b8babbbfc2c3c8cacbd0d1d3d4d6d7d8d9dadbdcdddedfe1e2e3e4e5e6e7eb#ecedeef0f1f2f4f5f8fafbfcfdff,97:0203050a0b0c10111214151718191a1b1d1f20,64:3fd8,80046b:eaf3fdf5f9,6c:0507060d1518191a2129242a32,65:35556b,72:4d525630,8662521680:9f9c93bc,670a80:bdb1abadb4b7e7e8e9eadbc2c4d9cdd7,671080:ddebf1f4ed,81:0d0e,80:f2fc,671581128c5a81:361e2c1832484c5374595a7160697c7d6d67,584d5ab581:888291,6ed581:a3aacc,672681:cabb,97:2122232425262728292b2c2e2f3133343536373a3b3c3d3f404142434445464748494a4b4c4d4e4f5051545557585a5c5d5f63646667686a6b6c6d6e6f7071#72757778797a7b7d7e7f8081828384868788898a8c8e8f9093959697999a9b9c9d,81:c1a6,6b:243739434659,98:d1d2d3d5d9da,6bb35f406bc289f365909f5165:93bcc6c4c3ccced2d6,70:809c969dbbc0b7abb1e8ca,71:1013162f31735c6845724a787a98b3b5a8a0e0d4e7f9,72:1d28,706c71:1866b9,62:3e3d434849,79:3b4046495b5c535a6257606f677a858a9aa7b3,5f:d1d0,97:9e9fa1a2a4a5a6a7a8a9aaacaeb0b1b3b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1e2e3#e4e5e8eeeff0f1f2f4f7f8f9fafbfcfdfeff,98:000102030405060708090a0b0c0d0e,60:3c5d5a67415963ab,61:060d5da99dcbd1,620680:807f,6c:93f6,6dfc77:f6f8,78:0009171811,65ab78:2d1c1d393a3b1f3c252c23294e6d56572650474c6a9b939a879ca1a3b2b9a5d4d9c9ecf2,790578f479:13241e34,9f9b9e:f9fbfc,76f177:040d,76f977:07081a22192d263538505147435a68,98:0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142434445464748494a4b4c4d#4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e,77:62657f8d7d808c919fa0b0b5bd,75:3a404e4b485b727983,7f:58615f,8a487f:68747179817e,76:cde5,883294:8586878b8a8c8d8f909497959a9b9ca3a4abaaadacafb0b2b4b6b7b8b9babcbdbfc4c8c9cacbcccdced0d1d2d5d6d7d9d8dbdedfe0e2e4e5e7e8ea,98:6f70717273748b8e929599a3a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcfd0d4d6d7dbdcdde0e1e2e3e4#e5e6e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,99:0001020304050607,94:e9ebeeeff3f4f5f7f9fcfdff,95:03020607090a0d0e0f1213141516181b1d1e1f222a2b292c3132343637383c3e3f4235444546494c4e4f525354565758595b5e5f5d61626465666768696a6b6c6f7172733a,77:e7ec,96c979:d5ede3eb,7a065d477a:03021e14,99:08090a0b0c0e0f1112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2f303132333435363738393a3b3c3d3e3f40414243444546474849#4a4b4c4d4e4f50515253565758595a5b5c5d5e5f60616264667378797b7e828389,7a:393751,9ecf99a57a7076:888e9399a4,74:dee0,752c9e:202228292a2b2c3231363837393a3e414244464748494b4c4e5155575a5b5c5e63666768696a6b6c716d73,75:929496a09daca3b3b4b8c4b1b0c3c2d6cde3e8e6e4ebe7,760375:f1fcff,76:1000050c170a25181519,99:8c8e9a9b9c9d9e9fa0a1a2a3a4a6a7a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8#d9dadbdcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9,76:1b3c2220402d303f35433e334d5e545c566b6f,7fca7a:e6787980868895a6a0aca8adb3,88:6469727d7f82a2c6b7bcc9e2cee3e5f1,891a88:fce8fef0,89:2119131b0a342b3641667b,758b80e576:b2b4,77dc80:1214161c20222526272928310b3543464d526971,898398:788083,99:fafbfcfdfeff,9a:000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738#393a3b3c3d3e3f404142434445464748494a4b4c4d4e4f50515253545556575859,98:898c8d8f949a9b9e9fa1a2a5a6,86:4d546c6e7f7a7c7ba88d8bac9da7a3aa93a9b6c4b5ceb0bab1afc9cfb4e9f1f2edf3d0,871386:def4dfd8d1,87:0307,86f887:080a0d09233b1e252e1a3e48343129373f82227d7e7b60704c6e8b53637c64596593afa8d2,9a:5a5b5c5d5e5f606162636465666768696a6b7283898d8e949599a6a9aaabacadaeafb2b3b4b5b9bbbdbebfc3c4c6c7c8c9cacdcecfd0d2d4d5d6d7d9dadbdc#dddee0e2e3e4e5e7e8e9eaeceef0f1f2f3f4f5f6f7f8fafcfdfeff,9b:000102040506,87:c68885ad9783abe5acb5b3cbd3bdd1c0cadbeae0ee,88:1613,87fe88:0a1b21393c,7f:36424445,82107a:fafd,7b:080304150a2b0f47382a192e31202524333e1e585a45754c5d606e7b62727190a6a7b8ac9da885aa9ca2abb4d1c1ccdddae5e6ea,7c0c7b:fefc,7c:0f160b,9b:07090a0b0c0d0e1011121415161718191a1b1c1d1e2021222425262728292a2b2c2d2e3031333435363738393a3d3e3f40464a4b4c4e50525355565758595a#5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b,7c:1f2a26384140,81fe82:010204,81ec884482:2122232d2f282b383b33343e44494b4f5a5f68,88:7e8588d8df,895e7f:9d9fa7afb0b2,7c7c65497c:919d9c9ea2b2bcbdc1c7cccdc8c5d7e8,826e66a87f:bfced5e5e1e6e9eef3,7cf87d:77a6ae,7e:479b,9e:b8b4,8d:73849491b1676d,8c:4749,91:4a504e4f64,9b:7c7d7e7f808182838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9ba#bbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadb,91:626170696f7d7e7274798c85908d91a2a3aaadaeafb5b4ba,8c559e7e8d:b8eb,8e:055969,8d:b5bfbcbac4d6d7dadececfdbc6ecf7f8e3f9fbe4,8e098dfd8e:141d1f2c2e232f3a4039353d3149414251524a70767c6f74858f94909c9e,8c:78828a859894,659b89:d6dedadc,9b:dcdddedfe0e1e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,9c:000102030405060708090a0b0c0d0e0f101112131415161718191a#1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b,89:e5ebef,8a3e8b26975396:e9f3ef,97:0601080f0e2a2d303e,9f:808385868788898a8c,9efe9f:0b0d,96:b9bcbdced2,77bf96e092:8eaec8,93:3e6aca8f,94:3e6b,9c:7f8285868788,7a239c:8b8e90919294959a9b9e9fa0a1a2a3a5a6a7a8a9abadaeb0b1b2b3b4b5b6b7babbbcbdc4c5c6c7cacb3c3d3e3f404142434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a#7b7d7e808384898a8c8f93969798999daaacafb9bebfc0c1c2c8c9d1d2dadbe0e1cccdcecfd0d3d4d5d7d8d9dcdddfe2,97:7c85919294afaba3b2b4,9a:b1b0b7,9e589a:b6babcc1c0c5c2cbccd1,9b:45434749484d51,98e899:0d2e5554,9a:dfe1e6efebfbedf9,9b:080f131f23,9e:bdbe,7e3b9e:8287888b92,93d69e:9d9fdbdcdde0dfe2e9e7e5eaef,9f:222c2f39373d3e44,9c:e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,9d:000102030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e1f2021#22232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f404142#92$434445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778797a7b7c7d7e7f8081#82838485868788898a8b8c8d8e8f909192939495969798999a9b9c9d9e9fa0a1a2#92$a3a4a5a6a7a8a9aaabacadaeafb0b1b2b3b4b5b6b7b8b9babbbcbdbebfc0c1c2c3c4c5c6c7c8c9cacbcccdcecfd0d1d2d3d4d5d6d7d8d9dadbdcdddedfe0e1#e2e3e4e5e6e7e8e9eaebecedeeeff0f1f2f3f4f5f6f7f8f9fafbfcfdfeff,9e:000102#92$030405060708090a0b0c0d0e0f101112131415161718191a1b1c1d1e24272e30343b3c404d5052535456595d5f606162656e6f727475767778797a7b7c7d80#8183848586898a8c8d8e8f90919495969798999a9b9c9ea0a1a2a3a4a5a7a8a9aa#92$abacadaeafb0b1b2b3b5b6b7b9babcbfc0c1c2c3c5c6c7c8cacbccd0d2d3d5d6d7d9dadee1e3e4e6e8ebecedeef0f1f2f3f4f5f6f7f8fafdff,9f:000102030405#060708090a0c0f1112141516181a1b1c1d1e1f21232425262728292a2b2d2e3031#92$3233343536383a3c3f4041424345464748494a4b4c4d4e4f52535455565758595a5b5c5d5e5f606162636465666768696a6b6c6d6e6f707172737475767778#797a7b7c7d7e81828d8e8f9091929394959697989c9d9ea1a2a3a4a5,f9:2c7995e7f1#92$,fa:0c0d0e0f111314181f20212324272829,e8:15161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f303132333435363738393a3b3c3d3e3f40414243#4445464748494a4b4c4d4e4f505152535455565758595a5b5c5d5e5f6061626364'),
- U2Ghash={},
- G2Uhash={};
- !function(data){
- var k=0;
- data=data.match(/..../g);
- for(var i=0x81;i<=0xfe;i++){
- for(var j=0x40;j<=0xFE;j++){
- U2Ghash[data[k++]]=('%'+i.toString(16)+'%'+j.toString(16))
+ U2Ghash = {},
+ G2Uhash = {};
+ ! function(data) {
+ var k = 0;
+ data = data.match(/..../g);
+ for (var i = 0x81; i <= 0xfe; i++) {
+ for (var j = 0x40; j <= 0xFE; j++) {
+ U2Ghash[data[k++]] = ('%' + i.toString(16) + '%' + j.toString(16))
.toUpperCase();
}
}
- for(var key in U2Ghash){
- G2Uhash[U2Ghash[key]]=key;
+ for (var key in U2Ghash) {
+ G2Uhash[U2Ghash[key]] = key;
}
}(data);
+
function isAscii(unicode) {
return ((unicode == 0x20AC) || (unicode <= 0x007F && unicode >= 0x0000));
}
- return{
- encode:function(str){
- return str.replace(/./g,function(a){
- var code=a.charCodeAt(0);
- if(isAscii(code)){
+ return {
+ encode: function(str) {
+ return str.replace(/./g, function(a) {
+ var code = a.charCodeAt(0);
+ if (isAscii(code)) {
return encodeURIComponent(a);
- }else{
- var key=code.toString(16);
- if(key.length!=4)key=('000'+key).match(/....$/)[0];
- return U2Ghash[key]||a;
+ } else {
+ var key = code.toString(16);
+ if (key.length != 4) key = ('000' + key).match(/....$/)[0];
+ return U2Ghash[key] || a;
}
});
},
- decode:function(str){
- return str.replace(/%[0-9A-F]{2}%[0-9A-F]{2}/g,function(a){
- if(a in G2Uhash){
- return String.fromCharCode('0x'+G2Uhash[a]);
- }else{
+ decode: function(str) {
+ return str.replace(/%[0-9A-F]{2}%[0-9A-F]{2}/g, function(a) {
+ if (a in G2Uhash) {
+ return String.fromCharCode('0x' + G2Uhash[a]);
+ } else {
return a;
}
- }).replace(/%[\w]{2}/g,function(a){
+ }).replace(/%[\w]{2}/g, function(a) {
return decodeURIComponent(a);
});
diff --git a/drpy_libs/jinja.js b/JS/jinja.js
similarity index 81%
rename from drpy_libs/jinja.js
rename to JS/jinja.js
index cc02357..67928a0 100644
--- a/drpy_libs/jinja.js
+++ b/JS/jinja.js
@@ -20,11 +20,11 @@
*/
/*global require, exports, module, define */
-(function (global, factory) {
+(function(global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jinja = {}));
-})(this, (function (jinja) {
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.jinja = {}));
+})(this, (function(jinja) {
"use strict";
var STRINGS = /'(\\.|[^'])*'|"(\\.|[^"'"])*"/g;
var IDENTS_AND_NUMS = /([$_a-z][$\w]*)|([+-]?\d+(\.\d+)?)/g;
@@ -77,20 +77,22 @@
this.isSilent = false;
}
- Parser.prototype.push = function (line) {
+ Parser.prototype.push = function(line) {
if (!this.isSilent) {
this.compiled.push(line);
}
};
- Parser.prototype.parse = function (src) {
+ Parser.prototype.parse = function(src) {
this.tokenize(src);
return this.compiled;
};
- Parser.prototype.tokenize = function (src) {
- var lastEnd = 0, parser = this, trimLeading = false;
- matchAll(src, START_TOKEN, function (open, index, src) {
+ Parser.prototype.tokenize = function(src) {
+ var lastEnd = 0,
+ parser = this,
+ trimLeading = false;
+ matchAll(src, START_TOKEN, function(open, index, src) {
//here we match the rest of the src against a regex for this tag
var match = src.slice(index + open.length).match(TAGS[open]);
match = (match ? match[0] : '');
@@ -127,11 +129,11 @@
this.textHandler(text);
};
- Parser.prototype.textHandler = function (text) {
+ Parser.prototype.textHandler = function(text) {
this.push('write(' + JSON.stringify(text) + ');');
};
- Parser.prototype.tokenHandler = function (open, inner) {
+ Parser.prototype.tokenHandler = function(open, inner) {
var type = delimeters[open];
if (type === 'directive') {
this.compileTag(inner);
@@ -140,7 +142,7 @@
//replace || operators with ~
extracted.src = extracted.src.replace(/\|\|/g, '~').split('|');
//put back || operators
- extracted.src = extracted.src.map(function (part) {
+ extracted.src = extracted.src.map(function(part) {
return part.split('~').join('||');
});
var parts = this.injectEnt(extracted, '@');
@@ -153,7 +155,7 @@
}
};
- Parser.prototype.compileTag = function (str) {
+ Parser.prototype.compileTag = function(str) {
var directive = str.split(' ')[0];
var handler = tagHandlers[directive];
if (!handler) {
@@ -162,20 +164,23 @@
handler.call(this, str.slice(directive.length).trim());
};
- Parser.prototype.parseFilter = function (src) {
+ Parser.prototype.parseFilter = function(src) {
src = src.trim();
var match = src.match(/[:(]/);
var i = match ? match.index : -1;
if (i < 0) return JSON.stringify([src]);
var name = src.slice(0, i);
var args = src.charAt(i) === ':' ? src.slice(i + 1) : src.slice(i + 1, -1);
- args = this.parseExpr(args, {terms: true});
+ args = this.parseExpr(args, {
+ terms: true
+ });
return '[' + JSON.stringify(name) + ',' + args + ']';
};
- Parser.prototype.extractEnt = function (src, regex, placeholder) {
- var subs = [], isFunc = typeof placeholder == 'function';
- src = src.replace(regex, function (str) {
+ Parser.prototype.extractEnt = function(src, regex, placeholder) {
+ var subs = [],
+ isFunc = typeof placeholder == 'function';
+ src = src.replace(regex, function(str) {
var replacement = isFunc ? placeholder(str) : placeholder;
if (replacement) {
subs.push(str);
@@ -183,15 +188,21 @@
}
return str;
});
- return {src: src, subs: subs};
+ return {
+ src: src,
+ subs: subs
+ };
};
- Parser.prototype.injectEnt = function (extracted, placeholder) {
- var src = extracted.src, subs = extracted.subs, isArr = Array.isArray(src);
+ Parser.prototype.injectEnt = function(extracted, placeholder) {
+ var src = extracted.src,
+ subs = extracted.subs,
+ isArr = Array.isArray(src);
var arr = (isArr) ? src : [src];
- var re = new RegExp('[' + placeholder + ']', 'g'), i = 0;
- arr.forEach(function (src, index) {
- arr[index] = src.replace(re, function () {
+ var re = new RegExp('[' + placeholder + ']', 'g'),
+ i = 0;
+ arr.forEach(function(src, index) {
+ arr[index] = src.replace(re, function() {
return subs[i++];
});
});
@@ -199,7 +210,7 @@
};
//replace complex literals without mistaking subscript notation with array literals
- Parser.prototype.replaceComplex = function (s) {
+ Parser.prototype.replaceComplex = function(s) {
var parsed = this.extractEnt(s, /i(\.i|\[[@#i]\])+/g, 'v');
parsed.src = parsed.src.replace(NON_PRIMITIVES, '~');
return this.injectEnt(parsed, 'v');
@@ -207,17 +218,17 @@
//parse expression containing literals (including objects/arrays) and variables (including dot and subscript notation)
//valid expressions: `a + 1 > b.c or c == null`, `a and b[1] != c`, `(a < b) or (c < d and e)`, 'a || [1]`
- Parser.prototype.parseExpr = function (src, opts) {
+ Parser.prototype.parseExpr = function(src, opts) {
opts = opts || {};
//extract string literals -> @
var parsed1 = this.extractEnt(src, STRINGS, '@');
//note: this will catch {not: 1} and a.is; could we replace temporarily and then check adjacent chars?
- parsed1.src = parsed1.src.replace(EOPS, function (s, before, op, after) {
+ parsed1.src = parsed1.src.replace(EOPS, function(s, before, op, after) {
return (op in operators) ? before + operators[op] + after : s;
});
//sub out non-string literals (numbers/true/false/null) -> #
// the distinction is necessary because @ can be object identifiers, # cannot
- var parsed2 = this.extractEnt(parsed1.src, IDENTS_AND_NUMS, function (s) {
+ var parsed2 = this.extractEnt(parsed1.src, IDENTS_AND_NUMS, function(s) {
return (s in constants || NUMBER.test(s)) ? '#' : null;
});
//sub out object/variable identifiers -> i
@@ -229,10 +240,10 @@
var simplified = parsed3.src;
//sub out complex literals (objects/arrays) -> ~
// the distinction is necessary because @ and # can be subscripts but ~ cannot
- while (simplified !== (simplified = this.replaceComplex(simplified))) ;
+ while (simplified !== (simplified = this.replaceComplex(simplified)));
//now @ represents strings, # represents other primitives and ~ represents non-primitives
//replace complex variables (those with dot/subscript accessors) -> v
- while (simplified !== (simplified = simplified.replace(/i(\.i|\[[@#i]\])+/, 'v'))) ;
+ while (simplified !== (simplified = simplified.replace(/i(\.i|\[[@#i]\])+/, 'v')));
//empty subscript or complex variables in subscript, are not permitted
simplified = simplified.replace(/[iv]\[v?\]/g, 'x');
//sub in "i" for @ and # and ~ and v (now "i" represents all literals, variables and identifiers)
@@ -242,9 +253,9 @@
//allow 'not' unary operator
simplified = simplified.replace(/!+[i]/g, 'i');
var terms = opts.terms ? simplified.split(',') : [simplified];
- terms.forEach(function (term) {
+ terms.forEach(function(term) {
//simplify logical grouping
- while (term !== (term = term.replace(/\(i(%i)*\)/g, 'i'))) ;
+ while (term !== (term = term.replace(/\(i(%i)*\)/g, 'i')));
if (!term.match(/^i(%i)*/)) {
throw new Error('Invalid expression: ' + src + " " + term);
}
@@ -255,15 +266,16 @@
return this.injectEnt(parsed1, '@');
};
- Parser.prototype.parseVar = function (src) {
+ Parser.prototype.parseVar = function(src) {
var args = Array.prototype.slice.call(arguments);
- var str = args.pop(), index = args.pop();
+ var str = args.pop(),
+ index = args.pop();
//quote bare object identifiers (might be a reserved word like {while: 1})
if (src === 'i' && str.charAt(index + 1) === ':') {
return '"i"';
}
var parts = ['"i"'];
- src.replace(ACCESSOR, function (part) {
+ src.replace(ACCESSOR, function(part) {
if (part === '.i') {
parts.push('"i"');
} else if (part === '[i]') {
@@ -276,15 +288,15 @@
};
//escapes a name to be used as a javascript identifier
- Parser.prototype.escName = function (str) {
- return str.replace(/\W/g, function (s) {
+ Parser.prototype.escName = function(str) {
+ return str.replace(/\W/g, function(s) {
return '$' + s.charCodeAt(0).toString(16);
});
};
- Parser.prototype.parseQuoted = function (str) {
+ Parser.prototype.parseQuoted = function(str) {
if (str.charAt(0) === "'") {
- str = str.slice(1, -1).replace(/\\.|"/, function (s) {
+ str = str.slice(1, -1).replace(/\\.|"/, function(s) {
if (s === "\\'") return "'";
return s.charAt(0) === '\\' ? s : ('\\' + s);
});
@@ -297,48 +309,48 @@
//the context 'this' inside tagHandlers is the parser instance
var tagHandlers = {
- 'if': function (expr) {
+ 'if': function(expr) {
this.push('if (' + this.parseExpr(expr) + ') {');
this.nest.unshift('if');
},
- 'else': function () {
+ 'else': function() {
if (this.nest[0] === 'for') {
this.push('}, function() {');
} else {
this.push('} else {');
}
},
- 'elseif': function (expr) {
+ 'elseif': function(expr) {
this.push('} else if (' + this.parseExpr(expr) + ') {');
},
- 'endif': function () {
+ 'endif': function() {
this.nest.shift();
this.push('}');
},
- 'for': function (str) {
+ 'for': function(str) {
var i = str.indexOf(' in ');
var name = str.slice(0, i).trim();
var expr = str.slice(i + 4).trim();
this.push('each(' + this.parseExpr(expr) + ',' + JSON.stringify(name) + ',function() {');
this.nest.unshift('for');
},
- 'endfor': function () {
+ 'endfor': function() {
this.nest.shift();
this.push('});');
},
- 'raw': function () {
+ 'raw': function() {
this.rawMode = true;
},
- 'endraw': function () {
+ 'endraw': function() {
this.rawMode = false;
},
- 'set': function (stmt) {
+ 'set': function(stmt) {
var i = stmt.indexOf('=');
var name = stmt.slice(0, i).trim();
var expr = stmt.slice(i + 1).trim();
this.push('set(' + JSON.stringify(name) + ',' + this.parseExpr(expr) + ');');
},
- 'block': function (name) {
+ 'block': function(name) {
if (this.isParent) {
++this.parentBlocks;
var blockName = 'block_' + (this.escName(name) || this.parentBlocks);
@@ -351,7 +363,7 @@
}
this.nest.unshift('block');
},
- 'endblock': function () {
+ 'endblock': function() {
this.nest.shift();
if (this.isParent) {
this.push('});');
@@ -360,7 +372,7 @@
this.isSilent = true;
}
},
- 'extends': function (name) {
+ 'extends': function(name) {
name = this.parseQuoted(name);
var parentSrc = this.readTemplateFile(name);
this.isParent = true;
@@ -370,7 +382,7 @@
//silence output until we enter a child block
this.isSilent = true;
},
- 'include': function (name) {
+ 'include': function(name) {
name = this.parseQuoted(name);
var incSrc = this.readTemplateFile(name);
this.isInclude = true;
@@ -385,29 +397,31 @@
tagHandlers.elif = tagHandlers.elseif;
var getRuntime = function runtime(data, opts) {
- var defaults = {autoEscape: 'toJson'};
+ var defaults = {
+ autoEscape: 'toJson'
+ };
var _toString = Object.prototype.toString;
var _hasOwnProperty = Object.prototype.hasOwnProperty;
- var getKeys = Object.keys || function (obj) {
+ var getKeys = Object.keys || function(obj) {
var keys = [];
- for (var n in obj) if (_hasOwnProperty.call(obj, n)) keys.push(n);
+ for (var n in obj)
+ if (_hasOwnProperty.call(obj, n)) keys.push(n);
return keys;
};
- var isArray = Array.isArray || function (obj) {
+ var isArray = Array.isArray || function(obj) {
return _toString.call(obj) === '[object Array]';
};
- var create = Object.create || function (obj) {
- function F() {
- }
+ var create = Object.create || function(obj) {
+ function F() {}
F.prototype = obj;
return new F();
};
- var toString = function (val) {
+ var toString = function(val) {
if (val == null) return '';
return (typeof val.toString == 'function') ? val.toString() : _toString.call(val);
};
- var extend = function (dest, src) {
+ var extend = function(dest, src) {
var keys = getKeys(src);
for (var i = 0, len = keys.length; i < len; i++) {
var key = keys[i];
@@ -416,8 +430,9 @@
return dest;
};
//get a value, lexically, starting in current context; a.b -> get("a","b")
- var get = function () {
- var val, n = arguments[0], c = stack.length;
+ var get = function() {
+ var val, n = arguments[0],
+ c = stack.length;
while (c--) {
val = stack[c][n];
if (typeof val != 'undefined') break;
@@ -429,21 +444,23 @@
}
return (val == null) ? '' : val;
};
- var set = function (n, val) {
+ var set = function(n, val) {
stack[stack.length - 1][n] = val;
};
- var push = function (ctx) {
+ var push = function(ctx) {
stack.push(ctx || {});
};
- var pop = function () {
+ var pop = function() {
stack.pop();
};
- var write = function (str) {
+ var write = function(str) {
output.push(str);
};
- var filter = function (val) {
+ var filter = function(val) {
for (var i = 1, len = arguments.length; i < len; i++) {
- var arr = arguments[i], name = arr[0], filter = filters[name];
+ var arr = arguments[i],
+ name = arr[0],
+ filter = filters[name];
if (filter) {
arr[0] = val;
//now arr looks like [val, arg1, arg2]
@@ -458,47 +475,58 @@
}
output.push(val);
};
- var each = function (obj, loopvar, fn1, fn2) {
+ var each = function(obj, loopvar, fn1, fn2) {
if (obj == null) return;
- var arr = isArray(obj) ? obj : getKeys(obj), len = arr.length;
- var ctx = {loop: {length: len, first: arr[0], last: arr[len - 1]}};
+ var arr = isArray(obj) ? obj : getKeys(obj),
+ len = arr.length;
+ var ctx = {
+ loop: {
+ length: len,
+ first: arr[0],
+ last: arr[len - 1]
+ }
+ };
push(ctx);
for (var i = 0; i < len; i++) {
- extend(ctx.loop, {index: i + 1, index0: i});
+ extend(ctx.loop, {
+ index: i + 1,
+ index0: i
+ });
fn1(ctx[loopvar] = arr[i]);
}
if (len === 0 && fn2) fn2();
pop();
};
- var block = function (fn) {
+ var block = function(fn) {
push();
fn();
pop();
};
- var render = function () {
+ var render = function() {
return output.join('');
};
data = data || {};
opts = extend(defaults, opts || {});
var filters = extend({
- html: function (val) {
+ html: function(val) {
return toString(val)
.split('&').join('&')
.split('<').join('<')
.split('>').join('>')
.split('"').join('"');
},
- safe: function (val) {
+ safe: function(val) {
return val;
},
- toJson: function (val) {
+ toJson: function(val) {
if (typeof val === 'object') {
return JSON.stringify(val);
}
return toString(val);
}
}, opts.filters || {});
- var stack = [create(data || {})], output = [];
+ var stack = [create(data || {})],
+ output = [];
return {
get: get,
set: set,
@@ -514,7 +542,7 @@
var runtime;
- jinja.compile = function (markup, opts) {
+ jinja.compile = function(markup, opts) {
opts = opts || {};
var parser = new Parser();
parser.readTemplateFile = this.readTemplateFile;
@@ -531,17 +559,19 @@
runtime = runtime || (runtime = getRuntime.toString());
fn = new Function('data', 'options', 'return (' + code + ')((' + runtime + ')(data, options))');
}
- return {render: fn};
+ return {
+ render: fn
+ };
};
- jinja.render = function (markup, data, opts) {
+ jinja.render = function(markup, data, opts) {
var tmpl = jinja.compile(markup);
return tmpl.render(data, opts);
};
jinja.templateFiles = [];
- jinja.readTemplateFile = function (name) {
+ jinja.readTemplateFile = function(name) {
var templateFiles = this.templateFiles || [];
var templateFile = templateFiles[name];
if (templateFile == null) {
diff --git a/JS/jinja.min.js b/JS/jinja.min.js
new file mode 100644
index 0000000..f702f29
--- /dev/null
+++ b/JS/jinja.min.js
@@ -0,0 +1,504 @@
+(function(global, factory) {
+ typeof exports === "object" && typeof module !== "undefined" ? factory(exports) : typeof define === "function" && define.amd ? define(["exports"], factory) : (global = typeof globalThis !== "undefined" ? globalThis : global || self, factory(global.jinja = {}))
+})(this, function(jinja) {
+ "use strict";
+ var STRINGS = /'(\\.|[^'])*'|"(\\.|[^"'"])*"/g;
+ var IDENTS_AND_NUMS = /([$_a-z][$\w]*)|([+-]?\d+(\.\d+)?)/g;
+ var NUMBER = /^[+-]?\d+(\.\d+)?$/;
+ var NON_PRIMITIVES = /\[[@#~](,[@#~])*\]|\[\]|\{([@i]:[@#~])(,[@i]:[@#~])*\}|\{\}/g;
+ var IDENTIFIERS = /[$_a-z][$\w]*/gi;
+ var VARIABLES = /i(\.i|\[[@#i]\])*/g;
+ var ACCESSOR = /(\.i|\[[@#i]\])/g;
+ var OPERATORS = /(===?|!==?|>=?|<=?|&&|\|\||[+\-\*\/%])/g;
+ var EOPS = /(^|[^$\w])(and|or|not|is|isnot)([^$\w]|$)/g;
+ var LEADING_SPACE = /^\s+/;
+ var TRAILING_SPACE = /\s+$/;
+ var START_TOKEN = /\{\{\{|\{\{|\{%|\{#/;
+ var TAGS = {
+ "{{{": /^('(\\.|[^'])*'|"(\\.|[^"'"])*"|.)+?\}\}\}/,
+ "{{": /^('(\\.|[^'])*'|"(\\.|[^"'"])*"|.)+?\}\}/,
+ "{%": /^('(\\.|[^'])*'|"(\\.|[^"'"])*"|.)+?%\}/,
+ "{#": /^('(\\.|[^'])*'|"(\\.|[^"'"])*"|.)+?#\}/
+ };
+ var delimeters = {
+ "{%": "directive",
+ "{{": "output",
+ "{#": "comment"
+ };
+ var operators = {
+ and: "&&",
+ or: "||",
+ not: "!",
+ is: "==",
+ isnot: "!="
+ };
+ var constants = {
+ true: true,
+ false: false,
+ null: null
+ };
+
+ function Parser() {
+ this.nest = [];
+ this.compiled = [];
+ this.childBlocks = 0;
+ this.parentBlocks = 0;
+ this.isSilent = false
+ }
+ Parser.prototype.push = function(line) {
+ if (!this.isSilent) {
+ this.compiled.push(line)
+ }
+ };
+ Parser.prototype.parse = function(src) {
+ this.tokenize(src);
+ return this.compiled
+ };
+ Parser.prototype.tokenize = function(src) {
+ var lastEnd = 0,
+ parser = this,
+ trimLeading = false;
+ matchAll(src, START_TOKEN, function(open, index, src) {
+ var match = src.slice(index + open.length).match(TAGS[open]);
+ match = match ? match[0] : "";
+ var simplified = match.replace(STRINGS, "@");
+ if (!match || ~simplified.indexOf(open)) {
+ return index + 1
+ }
+ var inner = match.slice(0, 0 - open.length);
+ if (inner.charAt(0) === "-") var wsCollapseLeft = true;
+ if (inner.slice(-1) === "-") var wsCollapseRight = true;
+ inner = inner.replace(/^-|-$/g, "").trim();
+ if (parser.rawMode && open + inner !== "{%endraw") {
+ return index + 1
+ }
+ var text = src.slice(lastEnd, index);
+ lastEnd = index + open.length + match.length;
+ if (trimLeading) text = trimLeft(text);
+ if (wsCollapseLeft) text = trimRight(text);
+ if (wsCollapseRight) trimLeading = true;
+ if (open === "{{{") {
+ open = "{{";
+ inner += "|safe"
+ }
+ parser.textHandler(text);
+ parser.tokenHandler(open, inner)
+ });
+ var text = src.slice(lastEnd);
+ if (trimLeading) text = trimLeft(text);
+ this.textHandler(text)
+ };
+ Parser.prototype.textHandler = function(text) {
+ this.push("write(" + JSON.stringify(text) + ");")
+ };
+ Parser.prototype.tokenHandler = function(open, inner) {
+ var type = delimeters[open];
+ if (type === "directive") {
+ this.compileTag(inner)
+ } else if (type === "output") {
+ var extracted = this.extractEnt(inner, STRINGS, "@");
+ extracted.src = extracted.src.replace(/\|\|/g, "~").split("|");
+ extracted.src = extracted.src.map(function(part) {
+ return part.split("~").join("||")
+ });
+ var parts = this.injectEnt(extracted, "@");
+ if (parts.length > 1) {
+ var filters = parts.slice(1).map(this.parseFilter.bind(this));
+ this.push("filter(" + this.parseExpr(parts[0]) + "," + filters.join(",") + ");")
+ } else {
+ this.push("filter(" + this.parseExpr(parts[0]) + ");")
+ }
+ }
+ };
+ Parser.prototype.compileTag = function(str) {
+ var directive = str.split(" ")[0];
+ var handler = tagHandlers[directive];
+ if (!handler) {
+ throw new Error("Invalid tag: " + str)
+ }
+ handler.call(this, str.slice(directive.length).trim())
+ };
+ Parser.prototype.parseFilter = function(src) {
+ src = src.trim();
+ var match = src.match(/[:(]/);
+ var i = match ? match.index : -1;
+ if (i < 0) return JSON.stringify([src]);
+ var name = src.slice(0, i);
+ var args = src.charAt(i) === ":" ? src.slice(i + 1) : src.slice(i + 1, -1);
+ args = this.parseExpr(args, {
+ terms: true
+ });
+ return "[" + JSON.stringify(name) + "," + args + "]"
+ };
+ Parser.prototype.extractEnt = function(src, regex, placeholder) {
+ var subs = [],
+ isFunc = typeof placeholder == "function";
+ src = src.replace(regex, function(str) {
+ var replacement = isFunc ? placeholder(str) : placeholder;
+ if (replacement) {
+ subs.push(str);
+ return replacement
+ }
+ return str
+ });
+ return {
+ src: src,
+ subs: subs
+ }
+ };
+ Parser.prototype.injectEnt = function(extracted, placeholder) {
+ var src = extracted.src,
+ subs = extracted.subs,
+ isArr = Array.isArray(src);
+ var arr = isArr ? src : [src];
+ var re = new RegExp("[" + placeholder + "]", "g"),
+ i = 0;
+ arr.forEach(function(src, index) {
+ arr[index] = src.replace(re, function() {
+ return subs[i++]
+ })
+ });
+ return isArr ? arr : arr[0]
+ };
+ Parser.prototype.replaceComplex = function(s) {
+ var parsed = this.extractEnt(s, /i(\.i|\[[@#i]\])+/g, "v");
+ parsed.src = parsed.src.replace(NON_PRIMITIVES, "~");
+ return this.injectEnt(parsed, "v")
+ };
+ Parser.prototype.parseExpr = function(src, opts) {
+ opts = opts || {};
+ var parsed1 = this.extractEnt(src, STRINGS, "@");
+ parsed1.src = parsed1.src.replace(EOPS, function(s, before, op, after) {
+ return op in operators ? before + operators[op] + after : s
+ });
+ var parsed2 = this.extractEnt(parsed1.src, IDENTS_AND_NUMS, function(s) {
+ return s in constants || NUMBER.test(s) ? "#" : null
+ });
+ var parsed3 = this.extractEnt(parsed2.src, IDENTIFIERS, "i");
+ parsed3.src = parsed3.src.replace(/\s+/g, "");
+ var simplified = parsed3.src;
+ while (simplified !== (simplified = this.replaceComplex(simplified)));
+ while (simplified !== (simplified = simplified.replace(/i(\.i|\[[@#i]\])+/, "v")));
+ simplified = simplified.replace(/[iv]\[v?\]/g, "x");
+ simplified = simplified.replace(/[@#~v]/g, "i");
+ simplified = simplified.replace(OPERATORS, "%");
+ simplified = simplified.replace(/!+[i]/g, "i");
+ var terms = opts.terms ? simplified.split(",") : [simplified];
+ terms.forEach(function(term) {
+ while (term !== (term = term.replace(/\(i(%i)*\)/g, "i")));
+ if (!term.match(/^i(%i)*/)) {
+ throw new Error("Invalid expression: " + src + " " + term)
+ }
+ });
+ parsed3.src = parsed3.src.replace(VARIABLES, this.parseVar.bind(this));
+ parsed2.src = this.injectEnt(parsed3, "i");
+ parsed1.src = this.injectEnt(parsed2, "#");
+ return this.injectEnt(parsed1, "@")
+ };
+ Parser.prototype.parseVar = function(src) {
+ var args = Array.prototype.slice.call(arguments);
+ var str = args.pop(),
+ index = args.pop();
+ if (src === "i" && str.charAt(index + 1) === ":") {
+ return '"i"'
+ }
+ var parts = ['"i"'];
+ src.replace(ACCESSOR, function(part) {
+ if (part === ".i") {
+ parts.push('"i"')
+ } else if (part === "[i]") {
+ parts.push('get("i")')
+ } else {
+ parts.push(part.slice(1, -1))
+ }
+ });
+ return "get(" + parts.join(",") + ")"
+ };
+ Parser.prototype.escName = function(str) {
+ return str.replace(/\W/g, function(s) {
+ return "$" + s.charCodeAt(0).toString(16)
+ })
+ };
+ Parser.prototype.parseQuoted = function(str) {
+ if (str.charAt(0) === "'") {
+ str = str.slice(1, -1).replace(/\\.|"/, function(s) {
+ if (s === "\\'") return "'";
+ return s.charAt(0) === "\\" ? s : "\\" + s
+ });
+ str = '"' + str + '"'
+ }
+ return JSON.parse(str)
+ };
+ var tagHandlers = {
+ if: function(expr) {
+ this.push("if (" + this.parseExpr(expr) + ") {");
+ this.nest.unshift("if")
+ },
+ else: function() {
+ if (this.nest[0] === "for") {
+ this.push("}, function() {")
+ } else {
+ this.push("} else {")
+ }
+ },
+ elseif: function(expr) {
+ this.push("} else if (" + this.parseExpr(expr) + ") {")
+ },
+ endif: function() {
+ this.nest.shift();
+ this.push("}")
+ },
+ for: function(str) {
+ var i = str.indexOf(" in ");
+ var name = str.slice(0, i).trim();
+ var expr = str.slice(i + 4).trim();
+ this.push("each(" + this.parseExpr(expr) + "," + JSON.stringify(name) + ",function() {");
+ this.nest.unshift("for")
+ },
+ endfor: function() {
+ this.nest.shift();
+ this.push("});")
+ },
+ raw: function() {
+ this.rawMode = true
+ },
+ endraw: function() {
+ this.rawMode = false
+ },
+ set: function(stmt) {
+ var i = stmt.indexOf("=");
+ var name = stmt.slice(0, i).trim();
+ var expr = stmt.slice(i + 1).trim();
+ this.push("set(" + JSON.stringify(name) + "," + this.parseExpr(expr) + ");")
+ },
+ block: function(name) {
+ if (this.isParent) {
+ ++this.parentBlocks;
+ var blockName = "block_" + (this.escName(name) || this.parentBlocks);
+ this.push("block(typeof " + blockName + ' == "function" ? ' + blockName + " : function() {")
+ } else if (this.hasParent) {
+ this.isSilent = false;
+ ++this.childBlocks;
+ blockName = "block_" + (this.escName(name) || this.childBlocks);
+ this.push("function " + blockName + "() {")
+ }
+ this.nest.unshift("block")
+ },
+ endblock: function() {
+ this.nest.shift();
+ if (this.isParent) {
+ this.push("});")
+ } else if (this.hasParent) {
+ this.push("}");
+ this.isSilent = true
+ }
+ },
+ extends: function(name) {
+ name = this.parseQuoted(name);
+ var parentSrc = this.readTemplateFile(name);
+ this.isParent = true;
+ this.tokenize(parentSrc);
+ this.isParent = false;
+ this.hasParent = true;
+ this.isSilent = true
+ },
+ include: function(name) {
+ name = this.parseQuoted(name);
+ var incSrc = this.readTemplateFile(name);
+ this.isInclude = true;
+ this.tokenize(incSrc);
+ this.isInclude = false
+ }
+ };
+ tagHandlers.assign = tagHandlers.set;
+ tagHandlers.elif = tagHandlers.elseif;
+ var getRuntime = function runtime(data, opts) {
+ var defaults = {
+ autoEscape: "toJson"
+ };
+ var _toString = Object.prototype.toString;
+ var _hasOwnProperty = Object.prototype.hasOwnProperty;
+ var getKeys = Object.keys || function(obj) {
+ var keys = [];
+ for (var n in obj)
+ if (_hasOwnProperty.call(obj, n)) keys.push(n);
+ return keys
+ };
+ var isArray = Array.isArray || function(obj) {
+ return _toString.call(obj) === "[object Array]"
+ };
+ var create = Object.create || function(obj) {
+ function F() {}
+ F.prototype = obj;
+ return new F
+ };
+ var toString = function(val) {
+ if (val == null) return "";
+ return typeof val.toString == "function" ? val.toString() : _toString.call(val)
+ };
+ var extend = function(dest, src) {
+ var keys = getKeys(src);
+ for (var i = 0, len = keys.length; i < len; i++) {
+ var key = keys[i];
+ dest[key] = src[key]
+ }
+ return dest
+ };
+ var get = function() {
+ var val, n = arguments[0],
+ c = stack.length;
+ while (c--) {
+ val = stack[c][n];
+ if (typeof val != "undefined") break
+ }
+ for (var i = 1, len = arguments.length; i < len; i++) {
+ if (val == null) continue;
+ n = arguments[i];
+ val = _hasOwnProperty.call(val, n) ? val[n] : typeof val._get == "function" ? val[n] = val._get(n) : null
+ }
+ return val == null ? "" : val
+ };
+ var set = function(n, val) {
+ stack[stack.length - 1][n] = val
+ };
+ var push = function(ctx) {
+ stack.push(ctx || {})
+ };
+ var pop = function() {
+ stack.pop()
+ };
+ var write = function(str) {
+ output.push(str)
+ };
+ var filter = function(val) {
+ for (var i = 1, len = arguments.length; i < len; i++) {
+ var arr = arguments[i],
+ name = arr[0],
+ filter = filters[name];
+ if (filter) {
+ arr[0] = val;
+ val = filter.apply(data, arr)
+ } else {
+ throw new Error("Invalid filter: " + name)
+ }
+ }
+ if (opts.autoEscape && name !== opts.autoEscape && name !== "safe") {
+ val = filters[opts.autoEscape].call(data, val)
+ }
+ output.push(val)
+ };
+ var each = function(obj, loopvar, fn1, fn2) {
+ if (obj == null) return;
+ var arr = isArray(obj) ? obj : getKeys(obj),
+ len = arr.length;
+ var ctx = {
+ loop: {
+ length: len,
+ first: arr[0],
+ last: arr[len - 1]
+ }
+ };
+ push(ctx);
+ for (var i = 0; i < len; i++) {
+ extend(ctx.loop, {
+ index: i + 1,
+ index0: i
+ });
+ fn1(ctx[loopvar] = arr[i])
+ }
+ if (len === 0 && fn2) fn2();
+ pop()
+ };
+ var block = function(fn) {
+ push();
+ fn();
+ pop()
+ };
+ var render = function() {
+ return output.join("")
+ };
+ data = data || {};
+ opts = extend(defaults, opts || {});
+ var filters = extend({
+ html: function(val) {
+ return toString(val).split("&").join("&").split("<").join("<").split(">").join(">").split('"').join(""")
+ },
+ safe: function(val) {
+ return val
+ },
+ toJson: function(val) {
+ if (typeof val === "object") {
+ return JSON.stringify(val)
+ }
+ return toString(val)
+ }
+ }, opts.filters || {});
+ var stack = [create(data || {})],
+ output = [];
+ return {
+ get: get,
+ set: set,
+ push: push,
+ pop: pop,
+ write: write,
+ filter: filter,
+ each: each,
+ block: block,
+ render: render
+ }
+ };
+ var runtime;
+ jinja.compile = function(markup, opts) {
+ opts = opts || {};
+ var parser = new Parser;
+ parser.readTemplateFile = this.readTemplateFile;
+ var code = [];
+ code.push("function render($) {");
+ code.push("var get = $.get, set = $.set, push = $.push, pop = $.pop, write = $.write, filter = $.filter, each = $.each, block = $.block;");
+ code.push.apply(code, parser.parse(markup));
+ code.push("return $.render();");
+ code.push("}");
+ code = code.join("\n");
+ if (opts.runtime === false) {
+ var fn = new Function("data", "options", "return (" + code + ")(runtime(data, options))")
+ } else {
+ runtime = runtime || (runtime = getRuntime.toString());
+ fn = new Function("data", "options", "return (" + code + ")((" + runtime + ")(data, options))")
+ }
+ return {
+ render: fn
+ }
+ };
+ jinja.render = function(markup, data, opts) {
+ var tmpl = jinja.compile(markup);
+ return tmpl.render(data, opts)
+ };
+ jinja.templateFiles = [];
+ jinja.readTemplateFile = function(name) {
+ var templateFiles = this.templateFiles || [];
+ var templateFile = templateFiles[name];
+ if (templateFile == null) {
+ throw new Error("Template file not found: " + name)
+ }
+ return templateFile
+ };
+
+ function trimLeft(str) {
+ return str.replace(LEADING_SPACE, "")
+ }
+
+ function trimRight(str) {
+ return str.replace(TRAILING_SPACE, "")
+ }
+
+ function matchAll(str, reg, fn) {
+ reg = new RegExp(reg.source, "g" + (reg.ignoreCase ? "i" : "") + (reg.multiline ? "m" : ""));
+ var match;
+ while (match = reg.exec(str)) {
+ var result = fn(match[0], match.index, str);
+ if (typeof result == "number") {
+ reg.lastIndex = result
+ }
+ }
+ }
+});
\ No newline at end of file
diff --git a/JS/jsencrypt.js b/JS/jsencrypt.js
new file mode 100644
index 0000000..8deca5f
--- /dev/null
+++ b/JS/jsencrypt.js
@@ -0,0 +1,360 @@
+/*
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
+ * This devtool is neither made for production nor for readable output files.
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
+ * or disable the default devtool with "devtool: false".
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
+ */
+(function webpackUniversalModuleDefinition(root, factory) {
+ if (typeof exports === 'object' && typeof module === 'object') {
+ // CommonJS
+ module.exports = exports = factory();
+ } else if (typeof define === 'function' && define.amd) {
+ // AMD
+ define([], factory);
+ } else {
+ // Global (browser)
+ globalThis.JSEncrypt = factory();
+ }
+})(this, () => {
+ return /******/ (() => { // webpackBootstrap
+ /******/
+ var __webpack_modules__ = ({
+
+ /***/
+ "./lib/JSEncrypt.js":
+ /*!**************************!*\
+ !*** ./lib/JSEncrypt.js ***!
+ \**************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"JSEncrypt\": () => (/* binding */ JSEncrypt)\n/* harmony export */ });\n/* harmony import */ var _lib_jsbn_base64__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/jsbn/base64 */ \"./lib/lib/jsbn/base64.js\");\n/* harmony import */ var _JSEncryptRSAKey__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./JSEncryptRSAKey */ \"./lib/JSEncryptRSAKey.js\");\n/* provided dependency */ var process = __webpack_require__(/*! process/browser */ \"./node_modules/process/browser.js\");\nvar _a;\n\n\nvar version = typeof process !== 'undefined'\n ? (_a = process.env) === null || _a === void 0 ? void 0 : \"3.3.2\"\n : undefined;\n/**\n *\n * @param {Object} [options = {}] - An object to customize JSEncrypt behaviour\n * possible parameters are:\n * - default_key_size {number} default: 1024 the key size in bit\n * - default_public_exponent {string} default: '010001' the hexadecimal representation of the public exponent\n * - log {boolean} default: false whether log warn/error or not\n * @constructor\n */\nvar JSEncrypt = /** @class */ (function () {\n function JSEncrypt(options) {\n if (options === void 0) { options = {}; }\n options = options || {};\n this.default_key_size = options.default_key_size\n ? parseInt(options.default_key_size, 10)\n : 1024;\n this.default_public_exponent = options.default_public_exponent || \"010001\"; // 65537 default openssl public exponent for rsa key type\n this.log = options.log || false;\n // The private and public key.\n this.key = null;\n }\n /**\n * Method to set the rsa key parameter (one method is enough to set both the public\n * and the private key, since the private key contains the public key paramenters)\n * Log a warning if logs are enabled\n * @param {Object|string} key the pem encoded string or an object (with or without header/footer)\n * @public\n */\n JSEncrypt.prototype.setKey = function (key) {\n if (this.log && this.key) {\n console.warn(\"A key was already set, overriding existing.\");\n }\n this.key = new _JSEncryptRSAKey__WEBPACK_IMPORTED_MODULE_1__.JSEncryptRSAKey(key);\n };\n /**\n * Proxy method for setKey, for api compatibility\n * @see setKey\n * @public\n */\n JSEncrypt.prototype.setPrivateKey = function (privkey) {\n // Create the key.\n this.setKey(privkey);\n };\n /**\n * Proxy method for setKey, for api compatibility\n * @see setKey\n * @public\n */\n JSEncrypt.prototype.setPublicKey = function (pubkey) {\n // Sets the public key.\n this.setKey(pubkey);\n };\n /**\n * Proxy method for RSAKey object's decrypt, decrypt the string using the private\n * components of the rsa key object. Note that if the object was not set will be created\n * on the fly (by the getKey method) using the parameters passed in the JSEncrypt constructor\n * @param {string} str base64 encoded crypted string to decrypt\n * @return {string} the decrypted string\n * @public\n */\n JSEncrypt.prototype.decrypt = function (str) {\n // Return the decrypted string.\n try {\n return this.getKey().decrypt((0,_lib_jsbn_base64__WEBPACK_IMPORTED_MODULE_0__.b64tohex)(str));\n }\n catch (ex) {\n return false;\n }\n };\n /**\n * Proxy method for RSAKey object's encrypt, encrypt the string using the public\n * components of the rsa key object. Note that if the object was not set will be created\n * on the fly (by the getKey method) using the parameters passed in the JSEncrypt constructor\n * @param {string} str the string to encrypt\n * @return {string} the encrypted string encoded in base64\n * @public\n */\n JSEncrypt.prototype.encrypt = function (str) {\n // Return the encrypted string.\n try {\n return (0,_lib_jsbn_base64__WEBPACK_IMPORTED_MODULE_0__.hex2b64)(this.getKey().encrypt(str));\n }\n catch (ex) {\n return false;\n }\n };\n /**\n * Proxy method for RSAKey object's sign.\n * @param {string} str the string to sign\n * @param {function} digestMethod hash method\n * @param {string} digestName the name of the hash algorithm\n * @return {string} the signature encoded in base64\n * @public\n */\n JSEncrypt.prototype.sign = function (str, digestMethod, digestName) {\n // return the RSA signature of 'str' in 'hex' format.\n try {\n return (0,_lib_jsbn_base64__WEBPACK_IMPORTED_MODULE_0__.hex2b64)(this.getKey().sign(str, digestMethod, digestName));\n }\n catch (ex) {\n return false;\n }\n };\n /**\n * Proxy method for RSAKey object's verify.\n * @param {string} str the string to verify\n * @param {string} signature the signature encoded in base64 to compare the string to\n * @param {function} digestMethod hash method\n * @return {boolean} whether the data and signature match\n * @public\n */\n JSEncrypt.prototype.verify = function (str, signature, digestMethod) {\n // Return the decrypted 'digest' of the signature.\n try {\n return this.getKey().verify(str, (0,_lib_jsbn_base64__WEBPACK_IMPORTED_MODULE_0__.b64tohex)(signature), digestMethod);\n }\n catch (ex) {\n return false;\n }\n };\n /**\n * Getter for the current JSEncryptRSAKey object. If it doesn't exists a new object\n * will be created and returned\n * @param {callback} [cb] the callback to be called if we want the key to be generated\n * in an async fashion\n * @returns {JSEncryptRSAKey} the JSEncryptRSAKey object\n * @public\n */\n JSEncrypt.prototype.getKey = function (cb) {\n // Only create new if it does not exist.\n if (!this.key) {\n // Get a new private key.\n this.key = new _JSEncryptRSAKey__WEBPACK_IMPORTED_MODULE_1__.JSEncryptRSAKey();\n if (cb && {}.toString.call(cb) === \"[object Function]\") {\n this.key.generateAsync(this.default_key_size, this.default_public_exponent, cb);\n return;\n }\n // Generate the key.\n this.key.generate(this.default_key_size, this.default_public_exponent);\n }\n return this.key;\n };\n /**\n * Returns the pem encoded representation of the private key\n * If the key doesn't exists a new key will be created\n * @returns {string} pem encoded representation of the private key WITH header and footer\n * @public\n */\n JSEncrypt.prototype.getPrivateKey = function () {\n // Return the private representation of this key.\n return this.getKey().getPrivateKey();\n };\n /**\n * Returns the pem encoded representation of the private key\n * If the key doesn't exists a new key will be created\n * @returns {string} pem encoded representation of the private key WITHOUT header and footer\n * @public\n */\n JSEncrypt.prototype.getPrivateKeyB64 = function () {\n // Return the private representation of this key.\n return this.getKey().getPrivateBaseKeyB64();\n };\n /**\n * Returns the pem encoded representation of the public key\n * If the key doesn't exists a new key will be created\n * @returns {string} pem encoded representation of the public key WITH header and footer\n * @public\n */\n JSEncrypt.prototype.getPublicKey = function () {\n // Return the private representation of this key.\n return this.getKey().getPublicKey();\n };\n /**\n * Returns the pem encoded representation of the public key\n * If the key doesn't exists a new key will be created\n * @returns {string} pem encoded representation of the public key WITHOUT header and footer\n * @public\n */\n JSEncrypt.prototype.getPublicKeyB64 = function () {\n // Return the private representation of this key.\n return this.getKey().getPublicBaseKeyB64();\n };\nvar b64map=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";var b64pad=\"=\";var base64DecodeChars=new Array(-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,-1,62,-1,-1,-1,63,52,53,54,55,56,57,58,59,60,61,-1,-1,-1,-1,-1,-1,-1,0,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,-1,-1,-1,-1,-1,-1,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,-1,-1,-1,-1,-1);function btoa(str){var out,i,len;var c1,c2,c3;len=str.length;i=0;out=\"\";while(i>2);out+=b64map.charAt((c1&3)<<4);out+=\"==\";break}c2=str.charCodeAt(i++);if(i==len){out+=b64map.charAt(c1>>2);out+=b64map.charAt((c1&3)<<4|(c2&240)>>4);out+=b64map.charAt((c2&15)<<2);out+=\"=\";break}c3=str.charCodeAt(i++);out+=b64map.charAt(c1>>2);out+=b64map.charAt((c1&3)<<4|(c2&240)>>4);out+=b64map.charAt((c2&15)<<2|(c3&192)>>6);out+=b64map.charAt(c3&63)}return out}function atob(str){var c1,c2,c3,c4;var i,len,out;len=str.length;i=0;out=\"\";while(i>4);do{c3=str.charCodeAt(i++)&255;if(c3==61)return out;c3=base64DecodeChars[c3]}while(i>2);do{c4=str.charCodeAt(i++)&255;if(c4==61)return out;c4=base64DecodeChars[c4]}while(i>6)+b64map.charAt(c&63)}if(i+1==h.length){c=parseInt(h.substring(i,i+1),16);ret+=b64map.charAt(c<<2)}else if(i+2==h.length){c=parseInt(h.substring(i,i+2),16);ret+=b64map.charAt(c>>2)+b64map.charAt((c&3)<<4)}while((ret.length&3)>0)ret+=b64pad;return ret}function hexToBytes(hex){for(var bytes=[],c=0;c>>4).toString(16));hex.push((bytes[i]&15).toString(16))}return hex.join(\"\")}function b64tohex(str){for(var i=0,bin=atob(str.replace(/[ \\r\\n]+$/,\"\")),hex=[];i>3};JSEncrypt.prototype.decryptUnicodeLong=function(string){var k=this.getKey();var maxLength=(k.n.bitLength()+7>>3)*2;try{var hexString=b64tohex(string);var decryptedString=\"\";var rexStr=\".{1,\"+maxLength+\"}\";var rex=new RegExp(rexStr,\"g\");var subStrArray=hexString.match(rex);if(subStrArray){subStrArray.forEach(function(entry){decryptedString+=k.decrypt(entry)});return decryptedString}}catch(ex){console.log(\"加密错误:\"+ex.message);return false}};JSEncrypt.prototype.encryptUnicodeLong=function(string){var k=this.getKey();var maxLength=(k.n.bitLength()+7>>3)-11;try{var subStr=\"\",encryptedString=\"\";var subStart=0,subEnd=0;var bitLen=0,tmpPoint=0;for(var i=0,len=string.length;imaxLength){subStr=string.substring(subStart,subEnd);encryptedString+=k.encrypt(subStr);subStart=subEnd;bitLen=bitLen-tmpPoint}else{subEnd=i;tmpPoint=bitLen}}subStr=string.substring(subStart,len);encryptedString+=k.encrypt(subStr);return hex2b64(encryptedString)}catch(ex){console.log(\"解密错误:\"+ex.message);return false}}; JSEncrypt.version = version;\n return JSEncrypt;\n}());\n\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/JSEncrypt.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/JSEncryptRSAKey.js":
+ /*!********************************!*\
+ !*** ./lib/JSEncryptRSAKey.js ***!
+ \********************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"JSEncryptRSAKey\": () => (/* binding */ JSEncryptRSAKey)\n/* harmony export */ });\n/* harmony import */ var _lib_jsbn_base64__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./lib/jsbn/base64 */ \"./lib/lib/jsbn/base64.js\");\n/* harmony import */ var _lib_asn1js_hex__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./lib/asn1js/hex */ \"./lib/lib/asn1js/hex.js\");\n/* harmony import */ var _lib_asn1js_base64__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./lib/asn1js/base64 */ \"./lib/lib/asn1js/base64.js\");\n/* harmony import */ var _lib_asn1js_asn1__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./lib/asn1js/asn1 */ \"./lib/lib/asn1js/asn1.js\");\n/* harmony import */ var _lib_jsbn_rsa__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./lib/jsbn/rsa */ \"./lib/lib/jsbn/rsa.js\");\n/* harmony import */ var _lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./lib/jsbn/jsbn */ \"./lib/lib/jsbn/jsbn.js\");\n/* harmony import */ var _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./lib/jsrsasign/asn1-1.0 */ \"./lib/lib/jsrsasign/asn1-1.0.js\");\nvar __extends = (undefined && undefined.__extends) || (function () {\n var extendStatics = function (d, b) {\n extendStatics = Object.setPrototypeOf ||\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\n return extendStatics(d, b);\n };\n return function (d, b) {\n if (typeof b !== \"function\" && b !== null)\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\n extendStatics(d, b);\n function __() { this.constructor = d; }\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n };\n})();\n\n\n\n\n\n\n\n/**\n * Create a new JSEncryptRSAKey that extends Tom Wu's RSA key object.\n * This object is just a decorator for parsing the key parameter\n * @param {string|Object} key - The key in string format, or an object containing\n * the parameters needed to build a RSAKey object.\n * @constructor\n */\nvar JSEncryptRSAKey = /** @class */ (function (_super) {\n __extends(JSEncryptRSAKey, _super);\n function JSEncryptRSAKey(key) {\n var _this = _super.call(this) || this;\n // Call the super constructor.\n // RSAKey.call(this);\n // If a key key was provided.\n if (key) {\n // If this is a string...\n if (typeof key === \"string\") {\n _this.parseKey(key);\n }\n else if (JSEncryptRSAKey.hasPrivateKeyProperty(key) ||\n JSEncryptRSAKey.hasPublicKeyProperty(key)) {\n // Set the values for the key.\n _this.parsePropertiesFrom(key);\n }\n }\n return _this;\n }\n /**\n * Method to parse a pem encoded string containing both a public or private key.\n * The method will translate the pem encoded string in a der encoded string and\n * will parse private key and public key parameters. This method accepts public key\n * in the rsaencryption pkcs #1 format (oid: 1.2.840.113549.1.1.1).\n *\n * @todo Check how many rsa formats use the same format of pkcs #1.\n *\n * The format is defined as:\n * PublicKeyInfo ::= SEQUENCE {\n * algorithm AlgorithmIdentifier,\n * PublicKey BIT STRING\n * }\n * Where AlgorithmIdentifier is:\n * AlgorithmIdentifier ::= SEQUENCE {\n * algorithm OBJECT IDENTIFIER, the OID of the enc algorithm\n * parameters ANY DEFINED BY algorithm OPTIONAL (NULL for PKCS #1)\n * }\n * and PublicKey is a SEQUENCE encapsulated in a BIT STRING\n * RSAPublicKey ::= SEQUENCE {\n * modulus INTEGER, -- n\n * publicExponent INTEGER -- e\n * }\n * it's possible to examine the structure of the keys obtained from openssl using\n * an asn.1 dumper as the one used here to parse the components: http://lapo.it/asn1js/\n * @argument {string} pem the pem encoded string, can include the BEGIN/END header/footer\n * @private\n */\n JSEncryptRSAKey.prototype.parseKey = function (pem) {\n try {\n var modulus = 0;\n var public_exponent = 0;\n var reHex = /^\\s*(?:[0-9A-Fa-f][0-9A-Fa-f]\\s*)+$/;\n var der = reHex.test(pem) ? _lib_asn1js_hex__WEBPACK_IMPORTED_MODULE_1__.Hex.decode(pem) : _lib_asn1js_base64__WEBPACK_IMPORTED_MODULE_2__.Base64.unarmor(pem);\n var asn1 = _lib_asn1js_asn1__WEBPACK_IMPORTED_MODULE_3__.ASN1.decode(der);\n // Fixes a bug with OpenSSL 1.0+ private keys\n if (asn1.sub.length === 3) {\n asn1 = asn1.sub[2].sub[0];\n }\n if (asn1.sub.length === 9) {\n // Parse the private key.\n modulus = asn1.sub[1].getHexStringValue(); // bigint\n this.n = (0,_lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__.parseBigInt)(modulus, 16);\n public_exponent = asn1.sub[2].getHexStringValue(); // int\n this.e = parseInt(public_exponent, 16);\n var private_exponent = asn1.sub[3].getHexStringValue(); // bigint\n this.d = (0,_lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__.parseBigInt)(private_exponent, 16);\n var prime1 = asn1.sub[4].getHexStringValue(); // bigint\n this.p = (0,_lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__.parseBigInt)(prime1, 16);\n var prime2 = asn1.sub[5].getHexStringValue(); // bigint\n this.q = (0,_lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__.parseBigInt)(prime2, 16);\n var exponent1 = asn1.sub[6].getHexStringValue(); // bigint\n this.dmp1 = (0,_lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__.parseBigInt)(exponent1, 16);\n var exponent2 = asn1.sub[7].getHexStringValue(); // bigint\n this.dmq1 = (0,_lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__.parseBigInt)(exponent2, 16);\n var coefficient = asn1.sub[8].getHexStringValue(); // bigint\n this.coeff = (0,_lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__.parseBigInt)(coefficient, 16);\n }\n else if (asn1.sub.length === 2) {\n if (asn1.sub[0].sub) {\n // Parse ASN.1 SubjectPublicKeyInfo type as defined by X.509\n var bit_string = asn1.sub[1];\n var sequence = bit_string.sub[0];\n modulus = sequence.sub[0].getHexStringValue();\n this.n = (0,_lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__.parseBigInt)(modulus, 16);\n public_exponent = sequence.sub[1].getHexStringValue();\n this.e = parseInt(public_exponent, 16);\n }\n else {\n // Parse ASN.1 RSAPublicKey type as defined by PKCS #1\n modulus = asn1.sub[0].getHexStringValue();\n this.n = (0,_lib_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_5__.parseBigInt)(modulus, 16);\n public_exponent = asn1.sub[1].getHexStringValue();\n this.e = parseInt(public_exponent, 16);\n }\n }\n else {\n return false;\n }\n return true;\n }\n catch (ex) {\n return false;\n }\n };\n /**\n * Translate rsa parameters in a hex encoded string representing the rsa key.\n *\n * The translation follow the ASN.1 notation :\n * RSAPrivateKey ::= SEQUENCE {\n * version Version,\n * modulus INTEGER, -- n\n * publicExponent INTEGER, -- e\n * privateExponent INTEGER, -- d\n * prime1 INTEGER, -- p\n * prime2 INTEGER, -- q\n * exponent1 INTEGER, -- d mod (p1)\n * exponent2 INTEGER, -- d mod (q-1)\n * coefficient INTEGER, -- (inverse of q) mod p\n * }\n * @returns {string} DER Encoded String representing the rsa private key\n * @private\n */\n JSEncryptRSAKey.prototype.getPrivateBaseKey = function () {\n var options = {\n array: [\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ int: 0 }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ bigint: this.n }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ int: this.e }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ bigint: this.d }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ bigint: this.p }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ bigint: this.q }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ bigint: this.dmp1 }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ bigint: this.dmq1 }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ bigint: this.coeff }),\n ],\n };\n var seq = new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERSequence(options);\n return seq.getEncodedHex();\n };\n /**\n * base64 (pem) encoded version of the DER encoded representation\n * @returns {string} pem encoded representation without header and footer\n * @public\n */\n JSEncryptRSAKey.prototype.getPrivateBaseKeyB64 = function () {\n return (0,_lib_jsbn_base64__WEBPACK_IMPORTED_MODULE_0__.hex2b64)(this.getPrivateBaseKey());\n };\n /**\n * Translate rsa parameters in a hex encoded string representing the rsa public key.\n * The representation follow the ASN.1 notation :\n * PublicKeyInfo ::= SEQUENCE {\n * algorithm AlgorithmIdentifier,\n * PublicKey BIT STRING\n * }\n * Where AlgorithmIdentifier is:\n * AlgorithmIdentifier ::= SEQUENCE {\n * algorithm OBJECT IDENTIFIER, the OID of the enc algorithm\n * parameters ANY DEFINED BY algorithm OPTIONAL (NULL for PKCS #1)\n * }\n * and PublicKey is a SEQUENCE encapsulated in a BIT STRING\n * RSAPublicKey ::= SEQUENCE {\n * modulus INTEGER, -- n\n * publicExponent INTEGER -- e\n * }\n * @returns {string} DER Encoded String representing the rsa public key\n * @private\n */\n JSEncryptRSAKey.prototype.getPublicBaseKey = function () {\n var first_sequence = new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERSequence({\n array: [\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERObjectIdentifier({ oid: \"1.2.840.113549.1.1.1\" }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERNull(),\n ],\n });\n var second_sequence = new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERSequence({\n array: [\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ bigint: this.n }),\n new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERInteger({ int: this.e }),\n ],\n });\n var bit_string = new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERBitString({\n hex: \"00\" + second_sequence.getEncodedHex(),\n });\n var seq = new _lib_jsrsasign_asn1_1_0__WEBPACK_IMPORTED_MODULE_6__.KJUR.asn1.DERSequence({\n array: [first_sequence, bit_string],\n });\n return seq.getEncodedHex();\n };\n /**\n * base64 (pem) encoded version of the DER encoded representation\n * @returns {string} pem encoded representation without header and footer\n * @public\n */\n JSEncryptRSAKey.prototype.getPublicBaseKeyB64 = function () {\n return (0,_lib_jsbn_base64__WEBPACK_IMPORTED_MODULE_0__.hex2b64)(this.getPublicBaseKey());\n };\n /**\n * wrap the string in block of width chars. The default value for rsa keys is 64\n * characters.\n * @param {string} str the pem encoded string without header and footer\n * @param {Number} [width=64] - the length the string has to be wrapped at\n * @returns {string}\n * @private\n */\n JSEncryptRSAKey.wordwrap = function (str, width) {\n width = width || 64;\n if (!str) {\n return str;\n }\n var regex = \"(.{1,\" + width + \"})( +|$\\n?)|(.{1,\" + width + \"})\";\n return str.match(RegExp(regex, \"g\")).join(\"\\n\");\n };\n /**\n * Retrieve the pem encoded private key\n * @returns {string} the pem encoded private key with header/footer\n * @public\n */\n JSEncryptRSAKey.prototype.getPrivateKey = function () {\n var key = \"-----BEGIN RSA PRIVATE KEY-----\\n\";\n key += JSEncryptRSAKey.wordwrap(this.getPrivateBaseKeyB64()) + \"\\n\";\n key += \"-----END RSA PRIVATE KEY-----\";\n return key;\n };\n /**\n * Retrieve the pem encoded public key\n * @returns {string} the pem encoded public key with header/footer\n * @public\n */\n JSEncryptRSAKey.prototype.getPublicKey = function () {\n var key = \"-----BEGIN PUBLIC KEY-----\\n\";\n key += JSEncryptRSAKey.wordwrap(this.getPublicBaseKeyB64()) + \"\\n\";\n key += \"-----END PUBLIC KEY-----\";\n return key;\n };\n /**\n * Check if the object contains the necessary parameters to populate the rsa modulus\n * and public exponent parameters.\n * @param {Object} [obj={}] - An object that may contain the two public key\n * parameters\n * @returns {boolean} true if the object contains both the modulus and the public exponent\n * properties (n and e)\n * @todo check for types of n and e. N should be a parseable bigInt object, E should\n * be a parseable integer number\n * @private\n */\n JSEncryptRSAKey.hasPublicKeyProperty = function (obj) {\n obj = obj || {};\n return obj.hasOwnProperty(\"n\") && obj.hasOwnProperty(\"e\");\n };\n /**\n * Check if the object contains ALL the parameters of an RSA key.\n * @param {Object} [obj={}] - An object that may contain nine rsa key\n * parameters\n * @returns {boolean} true if the object contains all the parameters needed\n * @todo check for types of the parameters all the parameters but the public exponent\n * should be parseable bigint objects, the public exponent should be a parseable integer number\n * @private\n */\n JSEncryptRSAKey.hasPrivateKeyProperty = function (obj) {\n obj = obj || {};\n return (obj.hasOwnProperty(\"n\") &&\n obj.hasOwnProperty(\"e\") &&\n obj.hasOwnProperty(\"d\") &&\n obj.hasOwnProperty(\"p\") &&\n obj.hasOwnProperty(\"q\") &&\n obj.hasOwnProperty(\"dmp1\") &&\n obj.hasOwnProperty(\"dmq1\") &&\n obj.hasOwnProperty(\"coeff\"));\n };\n /**\n * Parse the properties of obj in the current rsa object. Obj should AT LEAST\n * include the modulus and public exponent (n, e) parameters.\n * @param {Object} obj - the object containing rsa parameters\n * @private\n */\n JSEncryptRSAKey.prototype.parsePropertiesFrom = function (obj) {\n this.n = obj.n;\n this.e = obj.e;\n if (obj.hasOwnProperty(\"d\")) {\n this.d = obj.d;\n this.p = obj.p;\n this.q = obj.q;\n this.dmp1 = obj.dmp1;\n this.dmq1 = obj.dmq1;\n this.coeff = obj.coeff;\n }\n };\n return JSEncryptRSAKey;\n}(_lib_jsbn_rsa__WEBPACK_IMPORTED_MODULE_4__.RSAKey));\n\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/JSEncryptRSAKey.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/index.js":
+ /*!**********************!*\
+ !*** ./lib/index.js ***!
+ \**********************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"JSEncrypt\": () => (/* reexport safe */ _JSEncrypt__WEBPACK_IMPORTED_MODULE_0__.JSEncrypt),\n/* harmony export */ \"default\": () => (__WEBPACK_DEFAULT_EXPORT__)\n/* harmony export */ });\n/* harmony import */ var _JSEncrypt__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./JSEncrypt */ \"./lib/JSEncrypt.js\");\n\n\n/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (_JSEncrypt__WEBPACK_IMPORTED_MODULE_0__.JSEncrypt);\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/index.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/asn1js/asn1.js":
+ /*!********************************!*\
+ !*** ./lib/lib/asn1js/asn1.js ***!
+ \********************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"ASN1\": () => (/* binding */ ASN1),\n/* harmony export */ \"ASN1Tag\": () => (/* binding */ ASN1Tag),\n/* harmony export */ \"Stream\": () => (/* binding */ Stream)\n/* harmony export */ });\n/* harmony import */ var _int10__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./int10 */ \"./lib/lib/asn1js/int10.js\");\n// ASN.1 JavaScript decoder\n// Copyright (c) 2008-2014 Lapo Luchini \n// Permission to use, copy, modify, and/or distribute this software for any\n// purpose with or without fee is hereby granted, provided that the above\n// copyright notice and this permission notice appear in all copies.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n/*jshint browser: true, strict: true, immed: true, latedef: true, undef: true, regexdash: false */\n/*global oids */\n\nvar ellipsis = \"\\u2026\";\nvar reTimeS = /^(\\d\\d)(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01])([01]\\d|2[0-3])(?:([0-5]\\d)(?:([0-5]\\d)(?:[.,](\\d{1,3}))?)?)?(Z|[-+](?:[0]\\d|1[0-2])([0-5]\\d)?)?$/;\nvar reTimeL = /^(\\d\\d\\d\\d)(0[1-9]|1[0-2])(0[1-9]|[12]\\d|3[01])([01]\\d|2[0-3])(?:([0-5]\\d)(?:([0-5]\\d)(?:[.,](\\d{1,3}))?)?)?(Z|[-+](?:[0]\\d|1[0-2])([0-5]\\d)?)?$/;\nfunction stringCut(str, len) {\n if (str.length > len) {\n str = str.substring(0, len) + ellipsis;\n }\n return str;\n}\nvar Stream = /** @class */ (function () {\n function Stream(enc, pos) {\n this.hexDigits = \"0123456789ABCDEF\";\n if (enc instanceof Stream) {\n this.enc = enc.enc;\n this.pos = enc.pos;\n }\n else {\n // enc should be an array or a binary string\n this.enc = enc;\n this.pos = pos;\n }\n }\n Stream.prototype.get = function (pos) {\n if (pos === undefined) {\n pos = this.pos++;\n }\n if (pos >= this.enc.length) {\n throw new Error(\"Requesting byte offset \".concat(pos, \" on a stream of length \").concat(this.enc.length));\n }\n return (\"string\" === typeof this.enc) ? this.enc.charCodeAt(pos) : this.enc[pos];\n };\n Stream.prototype.hexByte = function (b) {\n return this.hexDigits.charAt((b >> 4) & 0xF) + this.hexDigits.charAt(b & 0xF);\n };\n Stream.prototype.hexDump = function (start, end, raw) {\n var s = \"\";\n for (var i = start; i < end; ++i) {\n s += this.hexByte(this.get(i));\n if (raw !== true) {\n switch (i & 0xF) {\n case 0x7:\n s += \" \";\n break;\n case 0xF:\n s += \"\\n\";\n break;\n default:\n s += \" \";\n }\n }\n }\n return s;\n };\n Stream.prototype.isASCII = function (start, end) {\n for (var i = start; i < end; ++i) {\n var c = this.get(i);\n if (c < 32 || c > 176) {\n return false;\n }\n }\n return true;\n };\n Stream.prototype.parseStringISO = function (start, end) {\n var s = \"\";\n for (var i = start; i < end; ++i) {\n s += String.fromCharCode(this.get(i));\n }\n return s;\n };\n Stream.prototype.parseStringUTF = function (start, end) {\n var s = \"\";\n for (var i = start; i < end;) {\n var c = this.get(i++);\n if (c < 128) {\n s += String.fromCharCode(c);\n }\n else if ((c > 191) && (c < 224)) {\n s += String.fromCharCode(((c & 0x1F) << 6) | (this.get(i++) & 0x3F));\n }\n else {\n s += String.fromCharCode(((c & 0x0F) << 12) | ((this.get(i++) & 0x3F) << 6) | (this.get(i++) & 0x3F));\n }\n }\n return s;\n };\n Stream.prototype.parseStringBMP = function (start, end) {\n var str = \"\";\n var hi;\n var lo;\n for (var i = start; i < end;) {\n hi = this.get(i++);\n lo = this.get(i++);\n str += String.fromCharCode((hi << 8) | lo);\n }\n return str;\n };\n Stream.prototype.parseTime = function (start, end, shortYear) {\n var s = this.parseStringISO(start, end);\n var m = (shortYear ? reTimeS : reTimeL).exec(s);\n if (!m) {\n return \"Unrecognized time: \" + s;\n }\n if (shortYear) {\n // to avoid querying the timer, use the fixed range [1970, 2069]\n // it will conform with ITU X.400 [-10, +40] sliding window until 2030\n m[1] = +m[1];\n m[1] += (+m[1] < 70) ? 2000 : 1900;\n }\n s = m[1] + \"-\" + m[2] + \"-\" + m[3] + \" \" + m[4];\n if (m[5]) {\n s += \":\" + m[5];\n if (m[6]) {\n s += \":\" + m[6];\n if (m[7]) {\n s += \".\" + m[7];\n }\n }\n }\n if (m[8]) {\n s += \" UTC\";\n if (m[8] != \"Z\") {\n s += m[8];\n if (m[9]) {\n s += \":\" + m[9];\n }\n }\n }\n return s;\n };\n Stream.prototype.parseInteger = function (start, end) {\n var v = this.get(start);\n var neg = (v > 127);\n var pad = neg ? 255 : 0;\n var len;\n var s = \"\";\n // skip unuseful bits (not allowed in DER)\n while (v == pad && ++start < end) {\n v = this.get(start);\n }\n len = end - start;\n if (len === 0) {\n return neg ? -1 : 0;\n }\n // show bit length of huge integers\n if (len > 4) {\n s = v;\n len <<= 3;\n while (((+s ^ pad) & 0x80) == 0) {\n s = +s << 1;\n --len;\n }\n s = \"(\" + len + \" bit)\\n\";\n }\n // decode the integer\n if (neg) {\n v = v - 256;\n }\n var n = new _int10__WEBPACK_IMPORTED_MODULE_0__.Int10(v);\n for (var i = start + 1; i < end; ++i) {\n n.mulAdd(256, this.get(i));\n }\n return s + n.toString();\n };\n Stream.prototype.parseBitString = function (start, end, maxLength) {\n var unusedBit = this.get(start);\n var lenBit = ((end - start - 1) << 3) - unusedBit;\n var intro = \"(\" + lenBit + \" bit)\\n\";\n var s = \"\";\n for (var i = start + 1; i < end; ++i) {\n var b = this.get(i);\n var skip = (i == end - 1) ? unusedBit : 0;\n for (var j = 7; j >= skip; --j) {\n s += (b >> j) & 1 ? \"1\" : \"0\";\n }\n if (s.length > maxLength) {\n return intro + stringCut(s, maxLength);\n }\n }\n return intro + s;\n };\n Stream.prototype.parseOctetString = function (start, end, maxLength) {\n if (this.isASCII(start, end)) {\n return stringCut(this.parseStringISO(start, end), maxLength);\n }\n var len = end - start;\n var s = \"(\" + len + \" byte)\\n\";\n maxLength /= 2; // we work in bytes\n if (len > maxLength) {\n end = start + maxLength;\n }\n for (var i = start; i < end; ++i) {\n s += this.hexByte(this.get(i));\n }\n if (len > maxLength) {\n s += ellipsis;\n }\n return s;\n };\n Stream.prototype.parseOID = function (start, end, maxLength) {\n var s = \"\";\n var n = new _int10__WEBPACK_IMPORTED_MODULE_0__.Int10();\n var bits = 0;\n for (var i = start; i < end; ++i) {\n var v = this.get(i);\n n.mulAdd(128, v & 0x7F);\n bits += 7;\n if (!(v & 0x80)) { // finished\n if (s === \"\") {\n n = n.simplify();\n if (n instanceof _int10__WEBPACK_IMPORTED_MODULE_0__.Int10) {\n n.sub(80);\n s = \"2.\" + n.toString();\n }\n else {\n var m = n < 80 ? n < 40 ? 0 : 1 : 2;\n s = m + \".\" + (n - m * 40);\n }\n }\n else {\n s += \".\" + n.toString();\n }\n if (s.length > maxLength) {\n return stringCut(s, maxLength);\n }\n n = new _int10__WEBPACK_IMPORTED_MODULE_0__.Int10();\n bits = 0;\n }\n }\n if (bits > 0) {\n s += \".incomplete\";\n }\n return s;\n };\n return Stream;\n}());\n\nvar ASN1 = /** @class */ (function () {\n function ASN1(stream, header, length, tag, sub) {\n if (!(tag instanceof ASN1Tag)) {\n throw new Error(\"Invalid tag value.\");\n }\n this.stream = stream;\n this.header = header;\n this.length = length;\n this.tag = tag;\n this.sub = sub;\n }\n ASN1.prototype.typeName = function () {\n switch (this.tag.tagClass) {\n case 0: // universal\n switch (this.tag.tagNumber) {\n case 0x00:\n return \"EOC\";\n case 0x01:\n return \"BOOLEAN\";\n case 0x02:\n return \"INTEGER\";\n case 0x03:\n return \"BIT_STRING\";\n case 0x04:\n return \"OCTET_STRING\";\n case 0x05:\n return \"NULL\";\n case 0x06:\n return \"OBJECT_IDENTIFIER\";\n case 0x07:\n return \"ObjectDescriptor\";\n case 0x08:\n return \"EXTERNAL\";\n case 0x09:\n return \"REAL\";\n case 0x0A:\n return \"ENUMERATED\";\n case 0x0B:\n return \"EMBEDDED_PDV\";\n case 0x0C:\n return \"UTF8String\";\n case 0x10:\n return \"SEQUENCE\";\n case 0x11:\n return \"SET\";\n case 0x12:\n return \"NumericString\";\n case 0x13:\n return \"PrintableString\"; // ASCII subset\n case 0x14:\n return \"TeletexString\"; // aka T61String\n case 0x15:\n return \"VideotexString\";\n case 0x16:\n return \"IA5String\"; // ASCII\n case 0x17:\n return \"UTCTime\";\n case 0x18:\n return \"GeneralizedTime\";\n case 0x19:\n return \"GraphicString\";\n case 0x1A:\n return \"VisibleString\"; // ASCII subset\n case 0x1B:\n return \"GeneralString\";\n case 0x1C:\n return \"UniversalString\";\n case 0x1E:\n return \"BMPString\";\n }\n return \"Universal_\" + this.tag.tagNumber.toString();\n case 1:\n return \"Application_\" + this.tag.tagNumber.toString();\n case 2:\n return \"[\" + this.tag.tagNumber.toString() + \"]\"; // Context\n case 3:\n return \"Private_\" + this.tag.tagNumber.toString();\n }\n };\n ASN1.prototype.content = function (maxLength) {\n if (this.tag === undefined) {\n return null;\n }\n if (maxLength === undefined) {\n maxLength = Infinity;\n }\n var content = this.posContent();\n var len = Math.abs(this.length);\n if (!this.tag.isUniversal()) {\n if (this.sub !== null) {\n return \"(\" + this.sub.length + \" elem)\";\n }\n return this.stream.parseOctetString(content, content + len, maxLength);\n }\n switch (this.tag.tagNumber) {\n case 0x01: // BOOLEAN\n return (this.stream.get(content) === 0) ? \"false\" : \"true\";\n case 0x02: // INTEGER\n return this.stream.parseInteger(content, content + len);\n case 0x03: // BIT_STRING\n return this.sub ? \"(\" + this.sub.length + \" elem)\" :\n this.stream.parseBitString(content, content + len, maxLength);\n case 0x04: // OCTET_STRING\n return this.sub ? \"(\" + this.sub.length + \" elem)\" :\n this.stream.parseOctetString(content, content + len, maxLength);\n // case 0x05: // NULL\n case 0x06: // OBJECT_IDENTIFIER\n return this.stream.parseOID(content, content + len, maxLength);\n // case 0x07: // ObjectDescriptor\n // case 0x08: // EXTERNAL\n // case 0x09: // REAL\n // case 0x0A: // ENUMERATED\n // case 0x0B: // EMBEDDED_PDV\n case 0x10: // SEQUENCE\n case 0x11: // SET\n if (this.sub !== null) {\n return \"(\" + this.sub.length + \" elem)\";\n }\n else {\n return \"(no elem)\";\n }\n case 0x0C: // UTF8String\n return stringCut(this.stream.parseStringUTF(content, content + len), maxLength);\n case 0x12: // NumericString\n case 0x13: // PrintableString\n case 0x14: // TeletexString\n case 0x15: // VideotexString\n case 0x16: // IA5String\n // case 0x19: // GraphicString\n case 0x1A: // VisibleString\n // case 0x1B: // GeneralString\n // case 0x1C: // UniversalString\n return stringCut(this.stream.parseStringISO(content, content + len), maxLength);\n case 0x1E: // BMPString\n return stringCut(this.stream.parseStringBMP(content, content + len), maxLength);\n case 0x17: // UTCTime\n case 0x18: // GeneralizedTime\n return this.stream.parseTime(content, content + len, (this.tag.tagNumber == 0x17));\n }\n return null;\n };\n ASN1.prototype.toString = function () {\n return this.typeName() + \"@\" + this.stream.pos + \"[header:\" + this.header + \",length:\" + this.length + \",sub:\" + ((this.sub === null) ? \"null\" : this.sub.length) + \"]\";\n };\n ASN1.prototype.toPrettyString = function (indent) {\n if (indent === undefined) {\n indent = \"\";\n }\n var s = indent + this.typeName() + \" @\" + this.stream.pos;\n if (this.length >= 0) {\n s += \"+\";\n }\n s += this.length;\n if (this.tag.tagConstructed) {\n s += \" (constructed)\";\n }\n else if ((this.tag.isUniversal() && ((this.tag.tagNumber == 0x03) || (this.tag.tagNumber == 0x04))) && (this.sub !== null)) {\n s += \" (encapsulates)\";\n }\n s += \"\\n\";\n if (this.sub !== null) {\n indent += \" \";\n for (var i = 0, max = this.sub.length; i < max; ++i) {\n s += this.sub[i].toPrettyString(indent);\n }\n }\n return s;\n };\n ASN1.prototype.posStart = function () {\n return this.stream.pos;\n };\n ASN1.prototype.posContent = function () {\n return this.stream.pos + this.header;\n };\n ASN1.prototype.posEnd = function () {\n return this.stream.pos + this.header + Math.abs(this.length);\n };\n ASN1.prototype.toHexString = function () {\n return this.stream.hexDump(this.posStart(), this.posEnd(), true);\n };\n ASN1.decodeLength = function (stream) {\n var buf = stream.get();\n var len = buf & 0x7F;\n if (len == buf) {\n return len;\n }\n // no reason to use Int10, as it would be a huge buffer anyways\n if (len > 6) {\n throw new Error(\"Length over 48 bits not supported at position \" + (stream.pos - 1));\n }\n if (len === 0) {\n return null;\n } // undefined\n buf = 0;\n for (var i = 0; i < len; ++i) {\n buf = (buf * 256) + stream.get();\n }\n return buf;\n };\n /**\n * Retrieve the hexadecimal value (as a string) of the current ASN.1 element\n * @returns {string}\n * @public\n */\n ASN1.prototype.getHexStringValue = function () {\n var hexString = this.toHexString();\n var offset = this.header * 2;\n var length = this.length * 2;\n return hexString.substr(offset, length);\n };\n ASN1.decode = function (str) {\n var stream;\n if (!(str instanceof Stream)) {\n stream = new Stream(str, 0);\n }\n else {\n stream = str;\n }\n var streamStart = new Stream(stream);\n var tag = new ASN1Tag(stream);\n var len = ASN1.decodeLength(stream);\n var start = stream.pos;\n var header = start - streamStart.pos;\n var sub = null;\n var getSub = function () {\n var ret = [];\n if (len !== null) {\n // definite length\n var end = start + len;\n while (stream.pos < end) {\n ret[ret.length] = ASN1.decode(stream);\n }\n if (stream.pos != end) {\n throw new Error(\"Content size is not correct for container starting at offset \" + start);\n }\n }\n else {\n // undefined length\n try {\n for (;;) {\n var s = ASN1.decode(stream);\n if (s.tag.isEOC()) {\n break;\n }\n ret[ret.length] = s;\n }\n len = start - stream.pos; // undefined lengths are represented as negative values\n }\n catch (e) {\n throw new Error(\"Exception while decoding undefined length content: \" + e);\n }\n }\n return ret;\n };\n if (tag.tagConstructed) {\n // must have valid content\n sub = getSub();\n }\n else if (tag.isUniversal() && ((tag.tagNumber == 0x03) || (tag.tagNumber == 0x04))) {\n // sometimes BitString and OctetString are used to encapsulate ASN.1\n try {\n if (tag.tagNumber == 0x03) {\n if (stream.get() != 0) {\n throw new Error(\"BIT STRINGs with unused bits cannot encapsulate.\");\n }\n }\n sub = getSub();\n for (var i = 0; i < sub.length; ++i) {\n if (sub[i].tag.isEOC()) {\n throw new Error(\"EOC is not supposed to be actual content.\");\n }\n }\n }\n catch (e) {\n // but silently ignore when they don't\n sub = null;\n }\n }\n if (sub === null) {\n if (len === null) {\n throw new Error(\"We can't skip over an invalid tag with undefined length at offset \" + start);\n }\n stream.pos = start + Math.abs(len);\n }\n return new ASN1(streamStart, header, len, tag, sub);\n };\n return ASN1;\n}());\n\nvar ASN1Tag = /** @class */ (function () {\n function ASN1Tag(stream) {\n var buf = stream.get();\n this.tagClass = buf >> 6;\n this.tagConstructed = ((buf & 0x20) !== 0);\n this.tagNumber = buf & 0x1F;\n if (this.tagNumber == 0x1F) { // long tag\n var n = new _int10__WEBPACK_IMPORTED_MODULE_0__.Int10();\n do {\n buf = stream.get();\n n.mulAdd(128, buf & 0x7F);\n } while (buf & 0x80);\n this.tagNumber = n.simplify();\n }\n }\n ASN1Tag.prototype.isUniversal = function () {\n return this.tagClass === 0x00;\n };\n ASN1Tag.prototype.isEOC = function () {\n return this.tagClass === 0x00 && this.tagNumber === 0x00;\n };\n return ASN1Tag;\n}());\n\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/asn1js/asn1.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/asn1js/base64.js":
+ /*!**********************************!*\
+ !*** ./lib/lib/asn1js/base64.js ***!
+ \**********************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Base64\": () => (/* binding */ Base64)\n/* harmony export */ });\n// Base64 JavaScript decoder\n// Copyright (c) 2008-2013 Lapo Luchini \n// Permission to use, copy, modify, and/or distribute this software for any\n// purpose with or without fee is hereby granted, provided that the above\n// copyright notice and this permission notice appear in all copies.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n/*jshint browser: true, strict: true, immed: true, latedef: true, undef: true, regexdash: false */\nvar decoder;\nvar Base64 = {\n decode: function (a) {\n var i;\n if (decoder === undefined) {\n var b64 = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\n var ignore = \"= \\f\\n\\r\\t\\u00A0\\u2028\\u2029\";\n decoder = Object.create(null);\n for (i = 0; i < 64; ++i) {\n decoder[b64.charAt(i)] = i;\n }\n decoder['-'] = 62; //+\n decoder['_'] = 63; //-\n for (i = 0; i < ignore.length; ++i) {\n decoder[ignore.charAt(i)] = -1;\n }\n }\n var out = [];\n var bits = 0;\n var char_count = 0;\n for (i = 0; i < a.length; ++i) {\n var c = a.charAt(i);\n if (c == \"=\") {\n break;\n }\n c = decoder[c];\n if (c == -1) {\n continue;\n }\n if (c === undefined) {\n throw new Error(\"Illegal character at offset \" + i);\n }\n bits |= c;\n if (++char_count >= 4) {\n out[out.length] = (bits >> 16);\n out[out.length] = (bits >> 8) & 0xFF;\n out[out.length] = bits & 0xFF;\n bits = 0;\n char_count = 0;\n }\n else {\n bits <<= 6;\n }\n }\n switch (char_count) {\n case 1:\n throw new Error(\"Base64 encoding incomplete: at least 2 bits missing\");\n case 2:\n out[out.length] = (bits >> 10);\n break;\n case 3:\n out[out.length] = (bits >> 16);\n out[out.length] = (bits >> 8) & 0xFF;\n break;\n }\n return out;\n },\n re: /-----BEGIN [^-]+-----([A-Za-z0-9+\\/=\\s]+)-----END [^-]+-----|begin-base64[^\\n]+\\n([A-Za-z0-9+\\/=\\s]+)====/,\n unarmor: function (a) {\n var m = Base64.re.exec(a);\n if (m) {\n if (m[1]) {\n a = m[1];\n }\n else if (m[2]) {\n a = m[2];\n }\n else {\n throw new Error(\"RegExp out of sync\");\n }\n }\n return Base64.decode(a);\n }\n};\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/asn1js/base64.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/asn1js/hex.js":
+ /*!*******************************!*\
+ !*** ./lib/lib/asn1js/hex.js ***!
+ \*******************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Hex\": () => (/* binding */ Hex)\n/* harmony export */ });\n// Hex JavaScript decoder\n// Copyright (c) 2008-2013 Lapo Luchini \n// Permission to use, copy, modify, and/or distribute this software for any\n// purpose with or without fee is hereby granted, provided that the above\n// copyright notice and this permission notice appear in all copies.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n/*jshint browser: true, strict: true, immed: true, latedef: true, undef: true, regexdash: false */\nvar decoder;\nvar Hex = {\n decode: function (a) {\n var i;\n if (decoder === undefined) {\n var hex = \"0123456789ABCDEF\";\n var ignore = \" \\f\\n\\r\\t\\u00A0\\u2028\\u2029\";\n decoder = {};\n for (i = 0; i < 16; ++i) {\n decoder[hex.charAt(i)] = i;\n }\n hex = hex.toLowerCase();\n for (i = 10; i < 16; ++i) {\n decoder[hex.charAt(i)] = i;\n }\n for (i = 0; i < ignore.length; ++i) {\n decoder[ignore.charAt(i)] = -1;\n }\n }\n var out = [];\n var bits = 0;\n var char_count = 0;\n for (i = 0; i < a.length; ++i) {\n var c = a.charAt(i);\n if (c == \"=\") {\n break;\n }\n c = decoder[c];\n if (c == -1) {\n continue;\n }\n if (c === undefined) {\n throw new Error(\"Illegal character at offset \" + i);\n }\n bits |= c;\n if (++char_count >= 2) {\n out[out.length] = bits;\n bits = 0;\n char_count = 0;\n }\n else {\n bits <<= 4;\n }\n }\n if (char_count) {\n throw new Error(\"Hex encoding incomplete: 4 bits missing\");\n }\n return out;\n }\n};\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/asn1js/hex.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/asn1js/int10.js":
+ /*!*********************************!*\
+ !*** ./lib/lib/asn1js/int10.js ***!
+ \*********************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Int10\": () => (/* binding */ Int10)\n/* harmony export */ });\n// Big integer base-10 printing library\n// Copyright (c) 2014 Lapo Luchini \n// Permission to use, copy, modify, and/or distribute this software for any\n// purpose with or without fee is hereby granted, provided that the above\n// copyright notice and this permission notice appear in all copies.\n//\n// THE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES\n// WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF\n// MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR\n// ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES\n// WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN\n// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF\n// OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.\n/*jshint browser: true, strict: true, immed: true, latedef: true, undef: true, regexdash: false */\nvar max = 10000000000000; // biggest integer that can still fit 2^53 when multiplied by 256\nvar Int10 = /** @class */ (function () {\n function Int10(value) {\n this.buf = [+value || 0];\n }\n Int10.prototype.mulAdd = function (m, c) {\n // assert(m <= 256)\n var b = this.buf;\n var l = b.length;\n var i;\n var t;\n for (i = 0; i < l; ++i) {\n t = b[i] * m + c;\n if (t < max) {\n c = 0;\n }\n else {\n c = 0 | (t / max);\n t -= c * max;\n }\n b[i] = t;\n }\n if (c > 0) {\n b[i] = c;\n }\n };\n Int10.prototype.sub = function (c) {\n // assert(m <= 256)\n var b = this.buf;\n var l = b.length;\n var i;\n var t;\n for (i = 0; i < l; ++i) {\n t = b[i] - c;\n if (t < 0) {\n t += max;\n c = 1;\n }\n else {\n c = 0;\n }\n b[i] = t;\n }\n while (b[b.length - 1] === 0) {\n b.pop();\n }\n };\n Int10.prototype.toString = function (base) {\n if ((base || 10) != 10) {\n throw new Error(\"only base 10 is supported\");\n }\n var b = this.buf;\n var s = b[b.length - 1].toString();\n for (var i = b.length - 2; i >= 0; --i) {\n s += (max + b[i]).toString().substring(1);\n }\n return s;\n };\n Int10.prototype.valueOf = function () {\n var b = this.buf;\n var v = 0;\n for (var i = b.length - 1; i >= 0; --i) {\n v = v * max + b[i];\n }\n return v;\n };\n Int10.prototype.simplify = function () {\n var b = this.buf;\n return (b.length == 1) ? b[0] : this;\n };\n return Int10;\n}());\n\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/asn1js/int10.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/jsbn/base64.js":
+ /*!********************************!*\
+ !*** ./lib/lib/jsbn/base64.js ***!
+ \********************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"b64toBA\": () => (/* binding */ b64toBA),\n/* harmony export */ \"b64tohex\": () => (/* binding */ b64tohex),\n/* harmony export */ \"hex2b64\": () => (/* binding */ hex2b64)\n/* harmony export */ });\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ \"./lib/lib/jsbn/util.js\");\n\nvar b64map = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\";\nvar b64pad = \"=\";\nfunction hex2b64(h) {\n var i;\n var c;\n var ret = \"\";\n for (i = 0; i + 3 <= h.length; i += 3) {\n c = parseInt(h.substring(i, i + 3), 16);\n ret += b64map.charAt(c >> 6) + b64map.charAt(c & 63);\n }\n if (i + 1 == h.length) {\n c = parseInt(h.substring(i, i + 1), 16);\n ret += b64map.charAt(c << 2);\n }\n else if (i + 2 == h.length) {\n c = parseInt(h.substring(i, i + 2), 16);\n ret += b64map.charAt(c >> 2) + b64map.charAt((c & 3) << 4);\n }\n while ((ret.length & 3) > 0) {\n ret += b64pad;\n }\n return ret;\n}\n// convert a base64 string to hex\nfunction b64tohex(s) {\n var ret = \"\";\n var i;\n var k = 0; // b64 state, 0-3\n var slop = 0;\n for (i = 0; i < s.length; ++i) {\n if (s.charAt(i) == b64pad) {\n break;\n }\n var v = b64map.indexOf(s.charAt(i));\n if (v < 0) {\n continue;\n }\n if (k == 0) {\n ret += (0,_util__WEBPACK_IMPORTED_MODULE_0__.int2char)(v >> 2);\n slop = v & 3;\n k = 1;\n }\n else if (k == 1) {\n ret += (0,_util__WEBPACK_IMPORTED_MODULE_0__.int2char)((slop << 2) | (v >> 4));\n slop = v & 0xf;\n k = 2;\n }\n else if (k == 2) {\n ret += (0,_util__WEBPACK_IMPORTED_MODULE_0__.int2char)(slop);\n ret += (0,_util__WEBPACK_IMPORTED_MODULE_0__.int2char)(v >> 2);\n slop = v & 3;\n k = 3;\n }\n else {\n ret += (0,_util__WEBPACK_IMPORTED_MODULE_0__.int2char)((slop << 2) | (v >> 4));\n ret += (0,_util__WEBPACK_IMPORTED_MODULE_0__.int2char)(v & 0xf);\n k = 0;\n }\n }\n if (k == 1) {\n ret += (0,_util__WEBPACK_IMPORTED_MODULE_0__.int2char)(slop << 2);\n }\n return ret;\n}\n// convert a base64 string to a byte/number array\nfunction b64toBA(s) {\n // piggyback on b64tohex for now, optimize later\n var h = b64tohex(s);\n var i;\n var a = [];\n for (i = 0; 2 * i < h.length; ++i) {\n a[i] = parseInt(h.substring(2 * i, 2 * i + 2), 16);\n }\n return a;\n}\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/jsbn/base64.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/jsbn/jsbn.js":
+ /*!******************************!*\
+ !*** ./lib/lib/jsbn/jsbn.js ***!
+ \******************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"BigInteger\": () => (/* binding */ BigInteger),\n/* harmony export */ \"intAt\": () => (/* binding */ intAt),\n/* harmony export */ \"nbi\": () => (/* binding */ nbi),\n/* harmony export */ \"nbits\": () => (/* binding */ nbits),\n/* harmony export */ \"nbv\": () => (/* binding */ nbv),\n/* harmony export */ \"parseBigInt\": () => (/* binding */ parseBigInt)\n/* harmony export */ });\n/* harmony import */ var _util__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./util */ \"./lib/lib/jsbn/util.js\");\n// Copyright (c) 2005 Tom Wu\n// All Rights Reserved.\n// See \"LICENSE\" for details.\n// Basic JavaScript BN library - subset useful for RSA encryption.\n\n// Bits per digit\nvar dbits;\n// JavaScript engine analysis\nvar canary = 0xdeadbeefcafe;\nvar j_lm = ((canary & 0xffffff) == 0xefcafe);\n//#region\nvar lowprimes = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997];\nvar lplim = (1 << 26) / lowprimes[lowprimes.length - 1];\n//#endregion\n// (public) Constructor\nvar BigInteger = /** @class */ (function () {\n function BigInteger(a, b, c) {\n if (a != null) {\n if (\"number\" == typeof a) {\n this.fromNumber(a, b, c);\n }\n else if (b == null && \"string\" != typeof a) {\n this.fromString(a, 256);\n }\n else {\n this.fromString(a, b);\n }\n }\n }\n //#region PUBLIC\n // BigInteger.prototype.toString = bnToString;\n // (public) return string representation in given radix\n BigInteger.prototype.toString = function (b) {\n if (this.s < 0) {\n return \"-\" + this.negate().toString(b);\n }\n var k;\n if (b == 16) {\n k = 4;\n }\n else if (b == 8) {\n k = 3;\n }\n else if (b == 2) {\n k = 1;\n }\n else if (b == 32) {\n k = 5;\n }\n else if (b == 4) {\n k = 2;\n }\n else {\n return this.toRadix(b);\n }\n var km = (1 << k) - 1;\n var d;\n var m = false;\n var r = \"\";\n var i = this.t;\n var p = this.DB - (i * this.DB) % k;\n if (i-- > 0) {\n if (p < this.DB && (d = this[i] >> p) > 0) {\n m = true;\n r = (0,_util__WEBPACK_IMPORTED_MODULE_0__.int2char)(d);\n }\n while (i >= 0) {\n if (p < k) {\n d = (this[i] & ((1 << p) - 1)) << (k - p);\n d |= this[--i] >> (p += this.DB - k);\n }\n else {\n d = (this[i] >> (p -= k)) & km;\n if (p <= 0) {\n p += this.DB;\n --i;\n }\n }\n if (d > 0) {\n m = true;\n }\n if (m) {\n r += (0,_util__WEBPACK_IMPORTED_MODULE_0__.int2char)(d);\n }\n }\n }\n return m ? r : \"0\";\n };\n // BigInteger.prototype.negate = bnNegate;\n // (public) -this\n BigInteger.prototype.negate = function () {\n var r = nbi();\n BigInteger.ZERO.subTo(this, r);\n return r;\n };\n // BigInteger.prototype.abs = bnAbs;\n // (public) |this|\n BigInteger.prototype.abs = function () {\n return (this.s < 0) ? this.negate() : this;\n };\n // BigInteger.prototype.compareTo = bnCompareTo;\n // (public) return + if this > a, - if this < a, 0 if equal\n BigInteger.prototype.compareTo = function (a) {\n var r = this.s - a.s;\n if (r != 0) {\n return r;\n }\n var i = this.t;\n r = i - a.t;\n if (r != 0) {\n return (this.s < 0) ? -r : r;\n }\n while (--i >= 0) {\n if ((r = this[i] - a[i]) != 0) {\n return r;\n }\n }\n return 0;\n };\n // BigInteger.prototype.bitLength = bnBitLength;\n // (public) return the number of bits in \"this\"\n BigInteger.prototype.bitLength = function () {\n if (this.t <= 0) {\n return 0;\n }\n return this.DB * (this.t - 1) + nbits(this[this.t - 1] ^ (this.s & this.DM));\n };\n // BigInteger.prototype.mod = bnMod;\n // (public) this mod a\n BigInteger.prototype.mod = function (a) {\n var r = nbi();\n this.abs().divRemTo(a, null, r);\n if (this.s < 0 && r.compareTo(BigInteger.ZERO) > 0) {\n a.subTo(r, r);\n }\n return r;\n };\n // BigInteger.prototype.modPowInt = bnModPowInt;\n // (public) this^e % m, 0 <= e < 2^32\n BigInteger.prototype.modPowInt = function (e, m) {\n var z;\n if (e < 256 || m.isEven()) {\n z = new Classic(m);\n }\n else {\n z = new Montgomery(m);\n }\n return this.exp(e, z);\n };\n // BigInteger.prototype.clone = bnClone;\n // (public)\n BigInteger.prototype.clone = function () {\n var r = nbi();\n this.copyTo(r);\n return r;\n };\n // BigInteger.prototype.intValue = bnIntValue;\n // (public) return value as integer\n BigInteger.prototype.intValue = function () {\n if (this.s < 0) {\n if (this.t == 1) {\n return this[0] - this.DV;\n }\n else if (this.t == 0) {\n return -1;\n }\n }\n else if (this.t == 1) {\n return this[0];\n }\n else if (this.t == 0) {\n return 0;\n }\n // assumes 16 < DB < 32\n return ((this[1] & ((1 << (32 - this.DB)) - 1)) << this.DB) | this[0];\n };\n // BigInteger.prototype.byteValue = bnByteValue;\n // (public) return value as byte\n BigInteger.prototype.byteValue = function () {\n return (this.t == 0) ? this.s : (this[0] << 24) >> 24;\n };\n // BigInteger.prototype.shortValue = bnShortValue;\n // (public) return value as short (assumes DB>=16)\n BigInteger.prototype.shortValue = function () {\n return (this.t == 0) ? this.s : (this[0] << 16) >> 16;\n };\n // BigInteger.prototype.signum = bnSigNum;\n // (public) 0 if this == 0, 1 if this > 0\n BigInteger.prototype.signum = function () {\n if (this.s < 0) {\n return -1;\n }\n else if (this.t <= 0 || (this.t == 1 && this[0] <= 0)) {\n return 0;\n }\n else {\n return 1;\n }\n };\n // BigInteger.prototype.toByteArray = bnToByteArray;\n // (public) convert to bigendian byte array\n BigInteger.prototype.toByteArray = function () {\n var i = this.t;\n var r = [];\n r[0] = this.s;\n var p = this.DB - (i * this.DB) % 8;\n var d;\n var k = 0;\n if (i-- > 0) {\n if (p < this.DB && (d = this[i] >> p) != (this.s & this.DM) >> p) {\n r[k++] = d | (this.s << (this.DB - p));\n }\n while (i >= 0) {\n if (p < 8) {\n d = (this[i] & ((1 << p) - 1)) << (8 - p);\n d |= this[--i] >> (p += this.DB - 8);\n }\n else {\n d = (this[i] >> (p -= 8)) & 0xff;\n if (p <= 0) {\n p += this.DB;\n --i;\n }\n }\n if ((d & 0x80) != 0) {\n d |= -256;\n }\n if (k == 0 && (this.s & 0x80) != (d & 0x80)) {\n ++k;\n }\n if (k > 0 || d != this.s) {\n r[k++] = d;\n }\n }\n }\n return r;\n };\n // BigInteger.prototype.equals = bnEquals;\n BigInteger.prototype.equals = function (a) {\n return (this.compareTo(a) == 0);\n };\n // BigInteger.prototype.min = bnMin;\n BigInteger.prototype.min = function (a) {\n return (this.compareTo(a) < 0) ? this : a;\n };\n // BigInteger.prototype.max = bnMax;\n BigInteger.prototype.max = function (a) {\n return (this.compareTo(a) > 0) ? this : a;\n };\n // BigInteger.prototype.and = bnAnd;\n BigInteger.prototype.and = function (a) {\n var r = nbi();\n this.bitwiseTo(a, _util__WEBPACK_IMPORTED_MODULE_0__.op_and, r);\n return r;\n };\n // BigInteger.prototype.or = bnOr;\n BigInteger.prototype.or = function (a) {\n var r = nbi();\n this.bitwiseTo(a, _util__WEBPACK_IMPORTED_MODULE_0__.op_or, r);\n return r;\n };\n // BigInteger.prototype.xor = bnXor;\n BigInteger.prototype.xor = function (a) {\n var r = nbi();\n this.bitwiseTo(a, _util__WEBPACK_IMPORTED_MODULE_0__.op_xor, r);\n return r;\n };\n // BigInteger.prototype.andNot = bnAndNot;\n BigInteger.prototype.andNot = function (a) {\n var r = nbi();\n this.bitwiseTo(a, _util__WEBPACK_IMPORTED_MODULE_0__.op_andnot, r);\n return r;\n };\n // BigInteger.prototype.not = bnNot;\n // (public) ~this\n BigInteger.prototype.not = function () {\n var r = nbi();\n for (var i = 0; i < this.t; ++i) {\n r[i] = this.DM & ~this[i];\n }\n r.t = this.t;\n r.s = ~this.s;\n return r;\n };\n // BigInteger.prototype.shiftLeft = bnShiftLeft;\n // (public) this << n\n BigInteger.prototype.shiftLeft = function (n) {\n var r = nbi();\n if (n < 0) {\n this.rShiftTo(-n, r);\n }\n else {\n this.lShiftTo(n, r);\n }\n return r;\n };\n // BigInteger.prototype.shiftRight = bnShiftRight;\n // (public) this >> n\n BigInteger.prototype.shiftRight = function (n) {\n var r = nbi();\n if (n < 0) {\n this.lShiftTo(-n, r);\n }\n else {\n this.rShiftTo(n, r);\n }\n return r;\n };\n // BigInteger.prototype.getLowestSetBit = bnGetLowestSetBit;\n // (public) returns index of lowest 1-bit (or -1 if none)\n BigInteger.prototype.getLowestSetBit = function () {\n for (var i = 0; i < this.t; ++i) {\n if (this[i] != 0) {\n return i * this.DB + (0,_util__WEBPACK_IMPORTED_MODULE_0__.lbit)(this[i]);\n }\n }\n if (this.s < 0) {\n return this.t * this.DB;\n }\n return -1;\n };\n // BigInteger.prototype.bitCount = bnBitCount;\n // (public) return number of set bits\n BigInteger.prototype.bitCount = function () {\n var r = 0;\n var x = this.s & this.DM;\n for (var i = 0; i < this.t; ++i) {\n r += (0,_util__WEBPACK_IMPORTED_MODULE_0__.cbit)(this[i] ^ x);\n }\n return r;\n };\n // BigInteger.prototype.testBit = bnTestBit;\n // (public) true iff nth bit is set\n BigInteger.prototype.testBit = function (n) {\n var j = Math.floor(n / this.DB);\n if (j >= this.t) {\n return (this.s != 0);\n }\n return ((this[j] & (1 << (n % this.DB))) != 0);\n };\n // BigInteger.prototype.setBit = bnSetBit;\n // (public) this | (1< 1) {\n var g2 = nbi();\n z.sqrTo(g[1], g2);\n while (n <= km) {\n g[n] = nbi();\n z.mulTo(g2, g[n - 2], g[n]);\n n += 2;\n }\n }\n var j = e.t - 1;\n var w;\n var is1 = true;\n var r2 = nbi();\n var t;\n i = nbits(e[j]) - 1;\n while (j >= 0) {\n if (i >= k1) {\n w = (e[j] >> (i - k1)) & km;\n }\n else {\n w = (e[j] & ((1 << (i + 1)) - 1)) << (k1 - i);\n if (j > 0) {\n w |= e[j - 1] >> (this.DB + i - k1);\n }\n }\n n = k;\n while ((w & 1) == 0) {\n w >>= 1;\n --n;\n }\n if ((i -= n) < 0) {\n i += this.DB;\n --j;\n }\n if (is1) { // ret == 1, don't bother squaring or multiplying it\n g[w].copyTo(r);\n is1 = false;\n }\n else {\n while (n > 1) {\n z.sqrTo(r, r2);\n z.sqrTo(r2, r);\n n -= 2;\n }\n if (n > 0) {\n z.sqrTo(r, r2);\n }\n else {\n t = r;\n r = r2;\n r2 = t;\n }\n z.mulTo(r2, g[w], r);\n }\n while (j >= 0 && (e[j] & (1 << i)) == 0) {\n z.sqrTo(r, r2);\n t = r;\n r = r2;\n r2 = t;\n if (--i < 0) {\n i = this.DB - 1;\n --j;\n }\n }\n }\n return z.revert(r);\n };\n // BigInteger.prototype.modInverse = bnModInverse;\n // (public) 1/this % m (HAC 14.61)\n BigInteger.prototype.modInverse = function (m) {\n var ac = m.isEven();\n if ((this.isEven() && ac) || m.signum() == 0) {\n return BigInteger.ZERO;\n }\n var u = m.clone();\n var v = this.clone();\n var a = nbv(1);\n var b = nbv(0);\n var c = nbv(0);\n var d = nbv(1);\n while (u.signum() != 0) {\n while (u.isEven()) {\n u.rShiftTo(1, u);\n if (ac) {\n if (!a.isEven() || !b.isEven()) {\n a.addTo(this, a);\n b.subTo(m, b);\n }\n a.rShiftTo(1, a);\n }\n else if (!b.isEven()) {\n b.subTo(m, b);\n }\n b.rShiftTo(1, b);\n }\n while (v.isEven()) {\n v.rShiftTo(1, v);\n if (ac) {\n if (!c.isEven() || !d.isEven()) {\n c.addTo(this, c);\n d.subTo(m, d);\n }\n c.rShiftTo(1, c);\n }\n else if (!d.isEven()) {\n d.subTo(m, d);\n }\n d.rShiftTo(1, d);\n }\n if (u.compareTo(v) >= 0) {\n u.subTo(v, u);\n if (ac) {\n a.subTo(c, a);\n }\n b.subTo(d, b);\n }\n else {\n v.subTo(u, v);\n if (ac) {\n c.subTo(a, c);\n }\n d.subTo(b, d);\n }\n }\n if (v.compareTo(BigInteger.ONE) != 0) {\n return BigInteger.ZERO;\n }\n if (d.compareTo(m) >= 0) {\n return d.subtract(m);\n }\n if (d.signum() < 0) {\n d.addTo(m, d);\n }\n else {\n return d;\n }\n if (d.signum() < 0) {\n return d.add(m);\n }\n else {\n return d;\n }\n };\n // BigInteger.prototype.pow = bnPow;\n // (public) this^e\n BigInteger.prototype.pow = function (e) {\n return this.exp(e, new NullExp());\n };\n // BigInteger.prototype.gcd = bnGCD;\n // (public) gcd(this,a) (HAC 14.54)\n BigInteger.prototype.gcd = function (a) {\n var x = (this.s < 0) ? this.negate() : this.clone();\n var y = (a.s < 0) ? a.negate() : a.clone();\n if (x.compareTo(y) < 0) {\n var t = x;\n x = y;\n y = t;\n }\n var i = x.getLowestSetBit();\n var g = y.getLowestSetBit();\n if (g < 0) {\n return x;\n }\n if (i < g) {\n g = i;\n }\n if (g > 0) {\n x.rShiftTo(g, x);\n y.rShiftTo(g, y);\n }\n while (x.signum() > 0) {\n if ((i = x.getLowestSetBit()) > 0) {\n x.rShiftTo(i, x);\n }\n if ((i = y.getLowestSetBit()) > 0) {\n y.rShiftTo(i, y);\n }\n if (x.compareTo(y) >= 0) {\n x.subTo(y, x);\n x.rShiftTo(1, x);\n }\n else {\n y.subTo(x, y);\n y.rShiftTo(1, y);\n }\n }\n if (g > 0) {\n y.lShiftTo(g, y);\n }\n return y;\n };\n // BigInteger.prototype.isProbablePrime = bnIsProbablePrime;\n // (public) test primality with certainty >= 1-.5^t\n BigInteger.prototype.isProbablePrime = function (t) {\n var i;\n var x = this.abs();\n if (x.t == 1 && x[0] <= lowprimes[lowprimes.length - 1]) {\n for (i = 0; i < lowprimes.length; ++i) {\n if (x[0] == lowprimes[i]) {\n return true;\n }\n }\n return false;\n }\n if (x.isEven()) {\n return false;\n }\n i = 1;\n while (i < lowprimes.length) {\n var m = lowprimes[i];\n var j = i + 1;\n while (j < lowprimes.length && m < lplim) {\n m *= lowprimes[j++];\n }\n m = x.modInt(m);\n while (i < j) {\n if (m % lowprimes[i++] == 0) {\n return false;\n }\n }\n }\n return x.millerRabin(t);\n };\n //#endregion PUBLIC\n //#region PROTECTED\n // BigInteger.prototype.copyTo = bnpCopyTo;\n // (protected) copy this to r\n BigInteger.prototype.copyTo = function (r) {\n for (var i = this.t - 1; i >= 0; --i) {\n r[i] = this[i];\n }\n r.t = this.t;\n r.s = this.s;\n };\n // BigInteger.prototype.fromInt = bnpFromInt;\n // (protected) set from integer value x, -DV <= x < DV\n BigInteger.prototype.fromInt = function (x) {\n this.t = 1;\n this.s = (x < 0) ? -1 : 0;\n if (x > 0) {\n this[0] = x;\n }\n else if (x < -1) {\n this[0] = x + this.DV;\n }\n else {\n this.t = 0;\n }\n };\n // BigInteger.prototype.fromString = bnpFromString;\n // (protected) set from string and radix\n BigInteger.prototype.fromString = function (s, b) {\n var k;\n if (b == 16) {\n k = 4;\n }\n else if (b == 8) {\n k = 3;\n }\n else if (b == 256) {\n k = 8;\n /* byte array */\n }\n else if (b == 2) {\n k = 1;\n }\n else if (b == 32) {\n k = 5;\n }\n else if (b == 4) {\n k = 2;\n }\n else {\n this.fromRadix(s, b);\n return;\n }\n this.t = 0;\n this.s = 0;\n var i = s.length;\n var mi = false;\n var sh = 0;\n while (--i >= 0) {\n var x = (k == 8) ? (+s[i]) & 0xff : intAt(s, i);\n if (x < 0) {\n if (s.charAt(i) == \"-\") {\n mi = true;\n }\n continue;\n }\n mi = false;\n if (sh == 0) {\n this[this.t++] = x;\n }\n else if (sh + k > this.DB) {\n this[this.t - 1] |= (x & ((1 << (this.DB - sh)) - 1)) << sh;\n this[this.t++] = (x >> (this.DB - sh));\n }\n else {\n this[this.t - 1] |= x << sh;\n }\n sh += k;\n if (sh >= this.DB) {\n sh -= this.DB;\n }\n }\n if (k == 8 && ((+s[0]) & 0x80) != 0) {\n this.s = -1;\n if (sh > 0) {\n this[this.t - 1] |= ((1 << (this.DB - sh)) - 1) << sh;\n }\n }\n this.clamp();\n if (mi) {\n BigInteger.ZERO.subTo(this, this);\n }\n };\n // BigInteger.prototype.clamp = bnpClamp;\n // (protected) clamp off excess high words\n BigInteger.prototype.clamp = function () {\n var c = this.s & this.DM;\n while (this.t > 0 && this[this.t - 1] == c) {\n --this.t;\n }\n };\n // BigInteger.prototype.dlShiftTo = bnpDLShiftTo;\n // (protected) r = this << n*DB\n BigInteger.prototype.dlShiftTo = function (n, r) {\n var i;\n for (i = this.t - 1; i >= 0; --i) {\n r[i + n] = this[i];\n }\n for (i = n - 1; i >= 0; --i) {\n r[i] = 0;\n }\n r.t = this.t + n;\n r.s = this.s;\n };\n // BigInteger.prototype.drShiftTo = bnpDRShiftTo;\n // (protected) r = this >> n*DB\n BigInteger.prototype.drShiftTo = function (n, r) {\n for (var i = n; i < this.t; ++i) {\n r[i - n] = this[i];\n }\n r.t = Math.max(this.t - n, 0);\n r.s = this.s;\n };\n // BigInteger.prototype.lShiftTo = bnpLShiftTo;\n // (protected) r = this << n\n BigInteger.prototype.lShiftTo = function (n, r) {\n var bs = n % this.DB;\n var cbs = this.DB - bs;\n var bm = (1 << cbs) - 1;\n var ds = Math.floor(n / this.DB);\n var c = (this.s << bs) & this.DM;\n for (var i = this.t - 1; i >= 0; --i) {\n r[i + ds + 1] = (this[i] >> cbs) | c;\n c = (this[i] & bm) << bs;\n }\n for (var i = ds - 1; i >= 0; --i) {\n r[i] = 0;\n }\n r[ds] = c;\n r.t = this.t + ds + 1;\n r.s = this.s;\n r.clamp();\n };\n // BigInteger.prototype.rShiftTo = bnpRShiftTo;\n // (protected) r = this >> n\n BigInteger.prototype.rShiftTo = function (n, r) {\n r.s = this.s;\n var ds = Math.floor(n / this.DB);\n if (ds >= this.t) {\n r.t = 0;\n return;\n }\n var bs = n % this.DB;\n var cbs = this.DB - bs;\n var bm = (1 << bs) - 1;\n r[0] = this[ds] >> bs;\n for (var i = ds + 1; i < this.t; ++i) {\n r[i - ds - 1] |= (this[i] & bm) << cbs;\n r[i - ds] = this[i] >> bs;\n }\n if (bs > 0) {\n r[this.t - ds - 1] |= (this.s & bm) << cbs;\n }\n r.t = this.t - ds;\n r.clamp();\n };\n // BigInteger.prototype.subTo = bnpSubTo;\n // (protected) r = this - a\n BigInteger.prototype.subTo = function (a, r) {\n var i = 0;\n var c = 0;\n var m = Math.min(a.t, this.t);\n while (i < m) {\n c += this[i] - a[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n if (a.t < this.t) {\n c -= a.s;\n while (i < this.t) {\n c += this[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n c += this.s;\n }\n else {\n c += this.s;\n while (i < a.t) {\n c -= a[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n c -= a.s;\n }\n r.s = (c < 0) ? -1 : 0;\n if (c < -1) {\n r[i++] = this.DV + c;\n }\n else if (c > 0) {\n r[i++] = c;\n }\n r.t = i;\n r.clamp();\n };\n // BigInteger.prototype.multiplyTo = bnpMultiplyTo;\n // (protected) r = this * a, r != this,a (HAC 14.12)\n // \"this\" should be the larger one if appropriate.\n BigInteger.prototype.multiplyTo = function (a, r) {\n var x = this.abs();\n var y = a.abs();\n var i = x.t;\n r.t = i + y.t;\n while (--i >= 0) {\n r[i] = 0;\n }\n for (i = 0; i < y.t; ++i) {\n r[i + x.t] = x.am(0, y[i], r, i, 0, x.t);\n }\n r.s = 0;\n r.clamp();\n if (this.s != a.s) {\n BigInteger.ZERO.subTo(r, r);\n }\n };\n // BigInteger.prototype.squareTo = bnpSquareTo;\n // (protected) r = this^2, r != this (HAC 14.16)\n BigInteger.prototype.squareTo = function (r) {\n var x = this.abs();\n var i = r.t = 2 * x.t;\n while (--i >= 0) {\n r[i] = 0;\n }\n for (i = 0; i < x.t - 1; ++i) {\n var c = x.am(i, x[i], r, 2 * i, 0, 1);\n if ((r[i + x.t] += x.am(i + 1, 2 * x[i], r, 2 * i + 1, c, x.t - i - 1)) >= x.DV) {\n r[i + x.t] -= x.DV;\n r[i + x.t + 1] = 1;\n }\n }\n if (r.t > 0) {\n r[r.t - 1] += x.am(i, x[i], r, 2 * i, 0, 1);\n }\n r.s = 0;\n r.clamp();\n };\n // BigInteger.prototype.divRemTo = bnpDivRemTo;\n // (protected) divide this by m, quotient and remainder to q, r (HAC 14.20)\n // r != q, this != m. q or r may be null.\n BigInteger.prototype.divRemTo = function (m, q, r) {\n var pm = m.abs();\n if (pm.t <= 0) {\n return;\n }\n var pt = this.abs();\n if (pt.t < pm.t) {\n if (q != null) {\n q.fromInt(0);\n }\n if (r != null) {\n this.copyTo(r);\n }\n return;\n }\n if (r == null) {\n r = nbi();\n }\n var y = nbi();\n var ts = this.s;\n var ms = m.s;\n var nsh = this.DB - nbits(pm[pm.t - 1]); // normalize modulus\n if (nsh > 0) {\n pm.lShiftTo(nsh, y);\n pt.lShiftTo(nsh, r);\n }\n else {\n pm.copyTo(y);\n pt.copyTo(r);\n }\n var ys = y.t;\n var y0 = y[ys - 1];\n if (y0 == 0) {\n return;\n }\n var yt = y0 * (1 << this.F1) + ((ys > 1) ? y[ys - 2] >> this.F2 : 0);\n var d1 = this.FV / yt;\n var d2 = (1 << this.F1) / yt;\n var e = 1 << this.F2;\n var i = r.t;\n var j = i - ys;\n var t = (q == null) ? nbi() : q;\n y.dlShiftTo(j, t);\n if (r.compareTo(t) >= 0) {\n r[r.t++] = 1;\n r.subTo(t, r);\n }\n BigInteger.ONE.dlShiftTo(ys, t);\n t.subTo(y, y); // \"negative\" y so we can replace sub with am later\n while (y.t < ys) {\n y[y.t++] = 0;\n }\n while (--j >= 0) {\n // Estimate quotient digit\n var qd = (r[--i] == y0) ? this.DM : Math.floor(r[i] * d1 + (r[i - 1] + e) * d2);\n if ((r[i] += y.am(0, qd, r, j, 0, ys)) < qd) { // Try it out\n y.dlShiftTo(j, t);\n r.subTo(t, r);\n while (r[i] < --qd) {\n r.subTo(t, r);\n }\n }\n }\n if (q != null) {\n r.drShiftTo(ys, q);\n if (ts != ms) {\n BigInteger.ZERO.subTo(q, q);\n }\n }\n r.t = ys;\n r.clamp();\n if (nsh > 0) {\n r.rShiftTo(nsh, r);\n } // Denormalize remainder\n if (ts < 0) {\n BigInteger.ZERO.subTo(r, r);\n }\n };\n // BigInteger.prototype.invDigit = bnpInvDigit;\n // (protected) return \"-1/this % 2^DB\"; useful for Mont. reduction\n // justification:\n // xy == 1 (mod m)\n // xy = 1+km\n // xy(2-xy) = (1+km)(1-km)\n // x[y(2-xy)] = 1-k^2m^2\n // x[y(2-xy)] == 1 (mod m^2)\n // if y is 1/x mod m, then y(2-xy) is 1/x mod m^2\n // should reduce x and y(2-xy) by m^2 at each step to keep size bounded.\n // JS multiply \"overflows\" differently from C/C++, so care is needed here.\n BigInteger.prototype.invDigit = function () {\n if (this.t < 1) {\n return 0;\n }\n var x = this[0];\n if ((x & 1) == 0) {\n return 0;\n }\n var y = x & 3; // y == 1/x mod 2^2\n y = (y * (2 - (x & 0xf) * y)) & 0xf; // y == 1/x mod 2^4\n y = (y * (2 - (x & 0xff) * y)) & 0xff; // y == 1/x mod 2^8\n y = (y * (2 - (((x & 0xffff) * y) & 0xffff))) & 0xffff; // y == 1/x mod 2^16\n // last step - calculate inverse mod DV directly;\n // assumes 16 < DB <= 32 and assumes ability to handle 48-bit ints\n y = (y * (2 - x * y % this.DV)) % this.DV; // y == 1/x mod 2^dbits\n // we really want the negative inverse, and -DV < y < DV\n return (y > 0) ? this.DV - y : -y;\n };\n // BigInteger.prototype.isEven = bnpIsEven;\n // (protected) true iff this is even\n BigInteger.prototype.isEven = function () {\n return ((this.t > 0) ? (this[0] & 1) : this.s) == 0;\n };\n // BigInteger.prototype.exp = bnpExp;\n // (protected) this^e, e < 2^32, doing sqr and mul with \"r\" (HAC 14.79)\n BigInteger.prototype.exp = function (e, z) {\n if (e > 0xffffffff || e < 1) {\n return BigInteger.ONE;\n }\n var r = nbi();\n var r2 = nbi();\n var g = z.convert(this);\n var i = nbits(e) - 1;\n g.copyTo(r);\n while (--i >= 0) {\n z.sqrTo(r, r2);\n if ((e & (1 << i)) > 0) {\n z.mulTo(r2, g, r);\n }\n else {\n var t = r;\n r = r2;\n r2 = t;\n }\n }\n return z.revert(r);\n };\n // BigInteger.prototype.chunkSize = bnpChunkSize;\n // (protected) return x s.t. r^x < DV\n BigInteger.prototype.chunkSize = function (r) {\n return Math.floor(Math.LN2 * this.DB / Math.log(r));\n };\n // BigInteger.prototype.toRadix = bnpToRadix;\n // (protected) convert to radix string\n BigInteger.prototype.toRadix = function (b) {\n if (b == null) {\n b = 10;\n }\n if (this.signum() == 0 || b < 2 || b > 36) {\n return \"0\";\n }\n var cs = this.chunkSize(b);\n var a = Math.pow(b, cs);\n var d = nbv(a);\n var y = nbi();\n var z = nbi();\n var r = \"\";\n this.divRemTo(d, y, z);\n while (y.signum() > 0) {\n r = (a + z.intValue()).toString(b).substr(1) + r;\n y.divRemTo(d, y, z);\n }\n return z.intValue().toString(b) + r;\n };\n // BigInteger.prototype.fromRadix = bnpFromRadix;\n // (protected) convert from radix string\n BigInteger.prototype.fromRadix = function (s, b) {\n this.fromInt(0);\n if (b == null) {\n b = 10;\n }\n var cs = this.chunkSize(b);\n var d = Math.pow(b, cs);\n var mi = false;\n var j = 0;\n var w = 0;\n for (var i = 0; i < s.length; ++i) {\n var x = intAt(s, i);\n if (x < 0) {\n if (s.charAt(i) == \"-\" && this.signum() == 0) {\n mi = true;\n }\n continue;\n }\n w = b * w + x;\n if (++j >= cs) {\n this.dMultiply(d);\n this.dAddOffset(w, 0);\n j = 0;\n w = 0;\n }\n }\n if (j > 0) {\n this.dMultiply(Math.pow(b, j));\n this.dAddOffset(w, 0);\n }\n if (mi) {\n BigInteger.ZERO.subTo(this, this);\n }\n };\n // BigInteger.prototype.fromNumber = bnpFromNumber;\n // (protected) alternate constructor\n BigInteger.prototype.fromNumber = function (a, b, c) {\n if (\"number\" == typeof b) {\n // new BigInteger(int,int,RNG)\n if (a < 2) {\n this.fromInt(1);\n }\n else {\n this.fromNumber(a, c);\n if (!this.testBit(a - 1)) {\n // force MSB set\n this.bitwiseTo(BigInteger.ONE.shiftLeft(a - 1), _util__WEBPACK_IMPORTED_MODULE_0__.op_or, this);\n }\n if (this.isEven()) {\n this.dAddOffset(1, 0);\n } // force odd\n while (!this.isProbablePrime(b)) {\n this.dAddOffset(2, 0);\n if (this.bitLength() > a) {\n this.subTo(BigInteger.ONE.shiftLeft(a - 1), this);\n }\n }\n }\n }\n else {\n // new BigInteger(int,RNG)\n var x = [];\n var t = a & 7;\n x.length = (a >> 3) + 1;\n b.nextBytes(x);\n if (t > 0) {\n x[0] &= ((1 << t) - 1);\n }\n else {\n x[0] = 0;\n }\n this.fromString(x, 256);\n }\n };\n // BigInteger.prototype.bitwiseTo = bnpBitwiseTo;\n // (protected) r = this op a (bitwise)\n BigInteger.prototype.bitwiseTo = function (a, op, r) {\n var i;\n var f;\n var m = Math.min(a.t, this.t);\n for (i = 0; i < m; ++i) {\n r[i] = op(this[i], a[i]);\n }\n if (a.t < this.t) {\n f = a.s & this.DM;\n for (i = m; i < this.t; ++i) {\n r[i] = op(this[i], f);\n }\n r.t = this.t;\n }\n else {\n f = this.s & this.DM;\n for (i = m; i < a.t; ++i) {\n r[i] = op(f, a[i]);\n }\n r.t = a.t;\n }\n r.s = op(this.s, a.s);\n r.clamp();\n };\n // BigInteger.prototype.changeBit = bnpChangeBit;\n // (protected) this op (1<>= this.DB;\n }\n if (a.t < this.t) {\n c += a.s;\n while (i < this.t) {\n c += this[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n c += this.s;\n }\n else {\n c += this.s;\n while (i < a.t) {\n c += a[i];\n r[i++] = c & this.DM;\n c >>= this.DB;\n }\n c += a.s;\n }\n r.s = (c < 0) ? -1 : 0;\n if (c > 0) {\n r[i++] = c;\n }\n else if (c < -1) {\n r[i++] = this.DV + c;\n }\n r.t = i;\n r.clamp();\n };\n // BigInteger.prototype.dMultiply = bnpDMultiply;\n // (protected) this *= n, this >= 0, 1 < n < DV\n BigInteger.prototype.dMultiply = function (n) {\n this[this.t] = this.am(0, n - 1, this, 0, 0, this.t);\n ++this.t;\n this.clamp();\n };\n // BigInteger.prototype.dAddOffset = bnpDAddOffset;\n // (protected) this += n << w words, this >= 0\n BigInteger.prototype.dAddOffset = function (n, w) {\n if (n == 0) {\n return;\n }\n while (this.t <= w) {\n this[this.t++] = 0;\n }\n this[w] += n;\n while (this[w] >= this.DV) {\n this[w] -= this.DV;\n if (++w >= this.t) {\n this[this.t++] = 0;\n }\n ++this[w];\n }\n };\n // BigInteger.prototype.multiplyLowerTo = bnpMultiplyLowerTo;\n // (protected) r = lower n words of \"this * a\", a.t <= n\n // \"this\" should be the larger one if appropriate.\n BigInteger.prototype.multiplyLowerTo = function (a, n, r) {\n var i = Math.min(this.t + a.t, n);\n r.s = 0; // assumes a,this >= 0\n r.t = i;\n while (i > 0) {\n r[--i] = 0;\n }\n for (var j = r.t - this.t; i < j; ++i) {\n r[i + this.t] = this.am(0, a[i], r, i, 0, this.t);\n }\n for (var j = Math.min(a.t, n); i < j; ++i) {\n this.am(0, a[i], r, i, 0, n - i);\n }\n r.clamp();\n };\n // BigInteger.prototype.multiplyUpperTo = bnpMultiplyUpperTo;\n // (protected) r = \"this * a\" without lower n words, n > 0\n // \"this\" should be the larger one if appropriate.\n BigInteger.prototype.multiplyUpperTo = function (a, n, r) {\n --n;\n var i = r.t = this.t + a.t - n;\n r.s = 0; // assumes a,this >= 0\n while (--i >= 0) {\n r[i] = 0;\n }\n for (i = Math.max(n - this.t, 0); i < a.t; ++i) {\n r[this.t + i - n] = this.am(n - i, a[i], r, 0, 0, this.t + i - n);\n }\n r.clamp();\n r.drShiftTo(1, r);\n };\n // BigInteger.prototype.modInt = bnpModInt;\n // (protected) this % n, n < 2^26\n BigInteger.prototype.modInt = function (n) {\n if (n <= 0) {\n return 0;\n }\n var d = this.DV % n;\n var r = (this.s < 0) ? n - 1 : 0;\n if (this.t > 0) {\n if (d == 0) {\n r = this[0] % n;\n }\n else {\n for (var i = this.t - 1; i >= 0; --i) {\n r = (d * r + this[i]) % n;\n }\n }\n }\n return r;\n };\n // BigInteger.prototype.millerRabin = bnpMillerRabin;\n // (protected) true if probably prime (HAC 4.24, Miller-Rabin)\n BigInteger.prototype.millerRabin = function (t) {\n var n1 = this.subtract(BigInteger.ONE);\n var k = n1.getLowestSetBit();\n if (k <= 0) {\n return false;\n }\n var r = n1.shiftRight(k);\n t = (t + 1) >> 1;\n if (t > lowprimes.length) {\n t = lowprimes.length;\n }\n var a = nbi();\n for (var i = 0; i < t; ++i) {\n // Pick bases at random, instead of starting at 2\n a.fromInt(lowprimes[Math.floor(Math.random() * lowprimes.length)]);\n var y = a.modPow(r, this);\n if (y.compareTo(BigInteger.ONE) != 0 && y.compareTo(n1) != 0) {\n var j = 1;\n while (j++ < k && y.compareTo(n1) != 0) {\n y = y.modPowInt(2, this);\n if (y.compareTo(BigInteger.ONE) == 0) {\n return false;\n }\n }\n if (y.compareTo(n1) != 0) {\n return false;\n }\n }\n }\n return true;\n };\n // BigInteger.prototype.square = bnSquare;\n // (public) this^2\n BigInteger.prototype.square = function () {\n var r = nbi();\n this.squareTo(r);\n return r;\n };\n //#region ASYNC\n // Public API method\n BigInteger.prototype.gcda = function (a, callback) {\n var x = (this.s < 0) ? this.negate() : this.clone();\n var y = (a.s < 0) ? a.negate() : a.clone();\n if (x.compareTo(y) < 0) {\n var t = x;\n x = y;\n y = t;\n }\n var i = x.getLowestSetBit();\n var g = y.getLowestSetBit();\n if (g < 0) {\n callback(x);\n return;\n }\n if (i < g) {\n g = i;\n }\n if (g > 0) {\n x.rShiftTo(g, x);\n y.rShiftTo(g, y);\n }\n // Workhorse of the algorithm, gets called 200 - 800 times per 512 bit keygen.\n var gcda1 = function () {\n if ((i = x.getLowestSetBit()) > 0) {\n x.rShiftTo(i, x);\n }\n if ((i = y.getLowestSetBit()) > 0) {\n y.rShiftTo(i, y);\n }\n if (x.compareTo(y) >= 0) {\n x.subTo(y, x);\n x.rShiftTo(1, x);\n }\n else {\n y.subTo(x, y);\n y.rShiftTo(1, y);\n }\n if (!(x.signum() > 0)) {\n if (g > 0) {\n y.lShiftTo(g, y);\n }\n setTimeout(function () { callback(y); }, 0); // escape\n }\n else {\n setTimeout(gcda1, 0);\n }\n };\n setTimeout(gcda1, 10);\n };\n // (protected) alternate constructor\n BigInteger.prototype.fromNumberAsync = function (a, b, c, callback) {\n if (\"number\" == typeof b) {\n if (a < 2) {\n this.fromInt(1);\n }\n else {\n this.fromNumber(a, c);\n if (!this.testBit(a - 1)) {\n this.bitwiseTo(BigInteger.ONE.shiftLeft(a - 1), _util__WEBPACK_IMPORTED_MODULE_0__.op_or, this);\n }\n if (this.isEven()) {\n this.dAddOffset(1, 0);\n }\n var bnp_1 = this;\n var bnpfn1_1 = function () {\n bnp_1.dAddOffset(2, 0);\n if (bnp_1.bitLength() > a) {\n bnp_1.subTo(BigInteger.ONE.shiftLeft(a - 1), bnp_1);\n }\n if (bnp_1.isProbablePrime(b)) {\n setTimeout(function () { callback(); }, 0); // escape\n }\n else {\n setTimeout(bnpfn1_1, 0);\n }\n };\n setTimeout(bnpfn1_1, 0);\n }\n }\n else {\n var x = [];\n var t = a & 7;\n x.length = (a >> 3) + 1;\n b.nextBytes(x);\n if (t > 0) {\n x[0] &= ((1 << t) - 1);\n }\n else {\n x[0] = 0;\n }\n this.fromString(x, 256);\n }\n };\n return BigInteger;\n}());\n\n//#region REDUCERS\n//#region NullExp\nvar NullExp = /** @class */ (function () {\n function NullExp() {\n }\n // NullExp.prototype.convert = nNop;\n NullExp.prototype.convert = function (x) {\n return x;\n };\n // NullExp.prototype.revert = nNop;\n NullExp.prototype.revert = function (x) {\n return x;\n };\n // NullExp.prototype.mulTo = nMulTo;\n NullExp.prototype.mulTo = function (x, y, r) {\n x.multiplyTo(y, r);\n };\n // NullExp.prototype.sqrTo = nSqrTo;\n NullExp.prototype.sqrTo = function (x, r) {\n x.squareTo(r);\n };\n return NullExp;\n}());\n// Modular reduction using \"classic\" algorithm\nvar Classic = /** @class */ (function () {\n function Classic(m) {\n this.m = m;\n }\n // Classic.prototype.convert = cConvert;\n Classic.prototype.convert = function (x) {\n if (x.s < 0 || x.compareTo(this.m) >= 0) {\n return x.mod(this.m);\n }\n else {\n return x;\n }\n };\n // Classic.prototype.revert = cRevert;\n Classic.prototype.revert = function (x) {\n return x;\n };\n // Classic.prototype.reduce = cReduce;\n Classic.prototype.reduce = function (x) {\n x.divRemTo(this.m, null, x);\n };\n // Classic.prototype.mulTo = cMulTo;\n Classic.prototype.mulTo = function (x, y, r) {\n x.multiplyTo(y, r);\n this.reduce(r);\n };\n // Classic.prototype.sqrTo = cSqrTo;\n Classic.prototype.sqrTo = function (x, r) {\n x.squareTo(r);\n this.reduce(r);\n };\n return Classic;\n}());\n//#endregion\n//#region Montgomery\n// Montgomery reduction\nvar Montgomery = /** @class */ (function () {\n function Montgomery(m) {\n this.m = m;\n this.mp = m.invDigit();\n this.mpl = this.mp & 0x7fff;\n this.mph = this.mp >> 15;\n this.um = (1 << (m.DB - 15)) - 1;\n this.mt2 = 2 * m.t;\n }\n // Montgomery.prototype.convert = montConvert;\n // xR mod m\n Montgomery.prototype.convert = function (x) {\n var r = nbi();\n x.abs().dlShiftTo(this.m.t, r);\n r.divRemTo(this.m, null, r);\n if (x.s < 0 && r.compareTo(BigInteger.ZERO) > 0) {\n this.m.subTo(r, r);\n }\n return r;\n };\n // Montgomery.prototype.revert = montRevert;\n // x/R mod m\n Montgomery.prototype.revert = function (x) {\n var r = nbi();\n x.copyTo(r);\n this.reduce(r);\n return r;\n };\n // Montgomery.prototype.reduce = montReduce;\n // x = x/R mod m (HAC 14.32)\n Montgomery.prototype.reduce = function (x) {\n while (x.t <= this.mt2) {\n // pad x so am has enough room later\n x[x.t++] = 0;\n }\n for (var i = 0; i < this.m.t; ++i) {\n // faster way of calculating u0 = x[i]*mp mod DV\n var j = x[i] & 0x7fff;\n var u0 = (j * this.mpl + (((j * this.mph + (x[i] >> 15) * this.mpl) & this.um) << 15)) & x.DM;\n // use am to combine the multiply-shift-add into one call\n j = i + this.m.t;\n x[j] += this.m.am(0, u0, x, i, 0, this.m.t);\n // propagate carry\n while (x[j] >= x.DV) {\n x[j] -= x.DV;\n x[++j]++;\n }\n }\n x.clamp();\n x.drShiftTo(this.m.t, x);\n if (x.compareTo(this.m) >= 0) {\n x.subTo(this.m, x);\n }\n };\n // Montgomery.prototype.mulTo = montMulTo;\n // r = \"xy/R mod m\"; x,y != r\n Montgomery.prototype.mulTo = function (x, y, r) {\n x.multiplyTo(y, r);\n this.reduce(r);\n };\n // Montgomery.prototype.sqrTo = montSqrTo;\n // r = \"x^2/R mod m\"; x != r\n Montgomery.prototype.sqrTo = function (x, r) {\n x.squareTo(r);\n this.reduce(r);\n };\n return Montgomery;\n}());\n//#endregion Montgomery\n//#region Barrett\n// Barrett modular reduction\nvar Barrett = /** @class */ (function () {\n function Barrett(m) {\n this.m = m;\n // setup Barrett\n this.r2 = nbi();\n this.q3 = nbi();\n BigInteger.ONE.dlShiftTo(2 * m.t, this.r2);\n this.mu = this.r2.divide(m);\n }\n // Barrett.prototype.convert = barrettConvert;\n Barrett.prototype.convert = function (x) {\n if (x.s < 0 || x.t > 2 * this.m.t) {\n return x.mod(this.m);\n }\n else if (x.compareTo(this.m) < 0) {\n return x;\n }\n else {\n var r = nbi();\n x.copyTo(r);\n this.reduce(r);\n return r;\n }\n };\n // Barrett.prototype.revert = barrettRevert;\n Barrett.prototype.revert = function (x) {\n return x;\n };\n // Barrett.prototype.reduce = barrettReduce;\n // x = x mod m (HAC 14.42)\n Barrett.prototype.reduce = function (x) {\n x.drShiftTo(this.m.t - 1, this.r2);\n if (x.t > this.m.t + 1) {\n x.t = this.m.t + 1;\n x.clamp();\n }\n this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3);\n this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2);\n while (x.compareTo(this.r2) < 0) {\n x.dAddOffset(1, this.m.t + 1);\n }\n x.subTo(this.r2, x);\n while (x.compareTo(this.m) >= 0) {\n x.subTo(this.m, x);\n }\n };\n // Barrett.prototype.mulTo = barrettMulTo;\n // r = x*y mod m; x,y != r\n Barrett.prototype.mulTo = function (x, y, r) {\n x.multiplyTo(y, r);\n this.reduce(r);\n };\n // Barrett.prototype.sqrTo = barrettSqrTo;\n // r = x^2 mod m; x != r\n Barrett.prototype.sqrTo = function (x, r) {\n x.squareTo(r);\n this.reduce(r);\n };\n return Barrett;\n}());\n//#endregion\n//#endregion REDUCERS\n// return new, unset BigInteger\nfunction nbi() { return new BigInteger(null); }\nfunction parseBigInt(str, r) {\n return new BigInteger(str, r);\n}\n// am: Compute w_j += (x*this_i), propagate carries,\n// c is initial carry, returns final carry.\n// c < 3*dvalue, x < 2*dvalue, this_i < dvalue\n// We need to select the fastest one that works in this environment.\nvar inBrowser = typeof navigator !== \"undefined\";\nif (inBrowser && j_lm && (navigator.appName == \"Microsoft Internet Explorer\")) {\n // am2 avoids a big mult-and-extract completely.\n // Max digit bits should be <= 30 because we do bitwise ops\n // on values up to 2*hdvalue^2-hdvalue-1 (< 2^31)\n BigInteger.prototype.am = function am2(i, x, w, j, c, n) {\n var xl = x & 0x7fff;\n var xh = x >> 15;\n while (--n >= 0) {\n var l = this[i] & 0x7fff;\n var h = this[i++] >> 15;\n var m = xh * l + h * xl;\n l = xl * l + ((m & 0x7fff) << 15) + w[j] + (c & 0x3fffffff);\n c = (l >>> 30) + (m >>> 15) + xh * h + (c >>> 30);\n w[j++] = l & 0x3fffffff;\n }\n return c;\n };\n dbits = 30;\n}\nelse if (inBrowser && j_lm && (navigator.appName != \"Netscape\")) {\n // am1: use a single mult and divide to get the high bits,\n // max digit bits should be 26 because\n // max internal value = 2*dvalue^2-2*dvalue (< 2^53)\n BigInteger.prototype.am = function am1(i, x, w, j, c, n) {\n while (--n >= 0) {\n var v = x * this[i++] + w[j] + c;\n c = Math.floor(v / 0x4000000);\n w[j++] = v & 0x3ffffff;\n }\n return c;\n };\n dbits = 26;\n}\nelse { // Mozilla/Netscape seems to prefer am3\n // Alternately, set max digit bits to 28 since some\n // browsers slow down when dealing with 32-bit numbers.\n BigInteger.prototype.am = function am3(i, x, w, j, c, n) {\n var xl = x & 0x3fff;\n var xh = x >> 14;\n while (--n >= 0) {\n var l = this[i] & 0x3fff;\n var h = this[i++] >> 14;\n var m = xh * l + h * xl;\n l = xl * l + ((m & 0x3fff) << 14) + w[j] + c;\n c = (l >> 28) + (m >> 14) + xh * h;\n w[j++] = l & 0xfffffff;\n }\n return c;\n };\n dbits = 28;\n}\nBigInteger.prototype.DB = dbits;\nBigInteger.prototype.DM = ((1 << dbits) - 1);\nBigInteger.prototype.DV = (1 << dbits);\nvar BI_FP = 52;\nBigInteger.prototype.FV = Math.pow(2, BI_FP);\nBigInteger.prototype.F1 = BI_FP - dbits;\nBigInteger.prototype.F2 = 2 * dbits - BI_FP;\n// Digit conversions\nvar BI_RC = [];\nvar rr;\nvar vv;\nrr = \"0\".charCodeAt(0);\nfor (vv = 0; vv <= 9; ++vv) {\n BI_RC[rr++] = vv;\n}\nrr = \"a\".charCodeAt(0);\nfor (vv = 10; vv < 36; ++vv) {\n BI_RC[rr++] = vv;\n}\nrr = \"A\".charCodeAt(0);\nfor (vv = 10; vv < 36; ++vv) {\n BI_RC[rr++] = vv;\n}\nfunction intAt(s, i) {\n var c = BI_RC[s.charCodeAt(i)];\n return (c == null) ? -1 : c;\n}\n// return bigint initialized to value\nfunction nbv(i) {\n var r = nbi();\n r.fromInt(i);\n return r;\n}\n// returns bit length of the integer x\nfunction nbits(x) {\n var r = 1;\n var t;\n if ((t = x >>> 16) != 0) {\n x = t;\n r += 16;\n }\n if ((t = x >> 8) != 0) {\n x = t;\n r += 8;\n }\n if ((t = x >> 4) != 0) {\n x = t;\n r += 4;\n }\n if ((t = x >> 2) != 0) {\n x = t;\n r += 2;\n }\n if ((t = x >> 1) != 0) {\n x = t;\n r += 1;\n }\n return r;\n}\n// \"constants\"\nBigInteger.ZERO = nbv(0);\nBigInteger.ONE = nbv(1);\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/jsbn/jsbn.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/jsbn/prng4.js":
+ /*!*******************************!*\
+ !*** ./lib/lib/jsbn/prng4.js ***!
+ \*******************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"Arcfour\": () => (/* binding */ Arcfour),\n/* harmony export */ \"prng_newstate\": () => (/* binding */ prng_newstate),\n/* harmony export */ \"rng_psize\": () => (/* binding */ rng_psize)\n/* harmony export */ });\n// prng4.js - uses Arcfour as a PRNG\nvar Arcfour = /** @class */ (function () {\n function Arcfour() {\n this.i = 0;\n this.j = 0;\n this.S = [];\n }\n // Arcfour.prototype.init = ARC4init;\n // Initialize arcfour context from key, an array of ints, each from [0..255]\n Arcfour.prototype.init = function (key) {\n var i;\n var j;\n var t;\n for (i = 0; i < 256; ++i) {\n this.S[i] = i;\n }\n j = 0;\n for (i = 0; i < 256; ++i) {\n j = (j + this.S[i] + key[i % key.length]) & 255;\n t = this.S[i];\n this.S[i] = this.S[j];\n this.S[j] = t;\n }\n this.i = 0;\n this.j = 0;\n };\n // Arcfour.prototype.next = ARC4next;\n Arcfour.prototype.next = function () {\n var t;\n this.i = (this.i + 1) & 255;\n this.j = (this.j + this.S[this.i]) & 255;\n t = this.S[this.i];\n this.S[this.i] = this.S[this.j];\n this.S[this.j] = t;\n return this.S[(t + this.S[this.i]) & 255];\n };\n return Arcfour;\n}());\n\n// Plug in your RNG constructor here\nfunction prng_newstate() {\n return new Arcfour();\n}\n// Pool size must be a multiple of 4 and greater than 32.\n// An array of bytes the size of the pool will be passed to init()\nvar rng_psize = 256;\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/jsbn/prng4.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/jsbn/rng.js":
+ /*!*****************************!*\
+ !*** ./lib/lib/jsbn/rng.js ***!
+ \*****************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"SecureRandom\": () => (/* binding */ SecureRandom)\n/* harmony export */ });\n/* harmony import */ var _prng4__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./prng4 */ \"./lib/lib/jsbn/prng4.js\");\n// Random number generator - requires a PRNG backend, e.g. prng4.js\n\nvar rng_state;\nvar rng_pool = null;\nvar rng_pptr;\n// Initialize the pool with junk if needed.\nif (rng_pool == null) {\n rng_pool = [];\n rng_pptr = 0;\n var t = void 0;\n if (typeof window !== 'undefined' && window.crypto && window.crypto.getRandomValues) {\n // Extract entropy (2048 bits) from RNG if available\n var z = new Uint32Array(256);\n window.crypto.getRandomValues(z);\n for (t = 0; t < z.length; ++t) {\n rng_pool[rng_pptr++] = z[t] & 255;\n }\n }\n // Use mouse events for entropy, if we do not have enough entropy by the time\n // we need it, entropy will be generated by Math.random.\n var count = 0;\n var onMouseMoveListener_1 = function (ev) {\n count = count || 0;\n if (count >= 256 || rng_pptr >= _prng4__WEBPACK_IMPORTED_MODULE_0__.rng_psize) {\n if (window.removeEventListener) {\n window.removeEventListener(\"mousemove\", onMouseMoveListener_1, false);\n }\n else if (window.detachEvent) {\n window.detachEvent(\"onmousemove\", onMouseMoveListener_1);\n }\n return;\n }\n try {\n var mouseCoordinates = ev.x + ev.y;\n rng_pool[rng_pptr++] = mouseCoordinates & 255;\n count += 1;\n }\n catch (e) {\n // Sometimes Firefox will deny permission to access event properties for some reason. Ignore.\n }\n };\n if (typeof window !== 'undefined') {\n if (window.addEventListener) {\n window.addEventListener(\"mousemove\", onMouseMoveListener_1, false);\n }\n else if (window.attachEvent) {\n window.attachEvent(\"onmousemove\", onMouseMoveListener_1);\n }\n }\n}\nfunction rng_get_byte() {\n if (rng_state == null) {\n rng_state = (0,_prng4__WEBPACK_IMPORTED_MODULE_0__.prng_newstate)();\n // At this point, we may not have collected enough entropy. If not, fall back to Math.random\n while (rng_pptr < _prng4__WEBPACK_IMPORTED_MODULE_0__.rng_psize) {\n var random = Math.floor(65536 * Math.random());\n rng_pool[rng_pptr++] = random & 255;\n }\n rng_state.init(rng_pool);\n for (rng_pptr = 0; rng_pptr < rng_pool.length; ++rng_pptr) {\n rng_pool[rng_pptr] = 0;\n }\n rng_pptr = 0;\n }\n // TODO: allow reseeding after first request\n return rng_state.next();\n}\nvar SecureRandom = /** @class */ (function () {\n function SecureRandom() {\n }\n SecureRandom.prototype.nextBytes = function (ba) {\n for (var i = 0; i < ba.length; ++i) {\n ba[i] = rng_get_byte();\n }\n };\n return SecureRandom;\n}());\n\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/jsbn/rng.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/jsbn/rsa.js":
+ /*!*****************************!*\
+ !*** ./lib/lib/jsbn/rsa.js ***!
+ \*****************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"RSAKey\": () => (/* binding */ RSAKey)\n/* harmony export */ });\n/* harmony import */ var _jsbn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./jsbn */ \"./lib/lib/jsbn/jsbn.js\");\n/* harmony import */ var _rng__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./rng */ \"./lib/lib/jsbn/rng.js\");\n// Depends on jsbn.js and rng.js\n// Version 1.1: support utf-8 encoding in pkcs1pad2\n// convert a (hex) string to a bignum object\n\n\n// function linebrk(s,n) {\n// var ret = \"\";\n// var i = 0;\n// while(i + n < s.length) {\n// ret += s.substring(i,i+n) + \"\\n\";\n// i += n;\n// }\n// return ret + s.substring(i,s.length);\n// }\n// function byte2Hex(b) {\n// if(b < 0x10)\n// return \"0\" + b.toString(16);\n// else\n// return b.toString(16);\n// }\nfunction pkcs1pad1(s, n) {\n if (n < s.length + 22) {\n console.error(\"Message too long for RSA\");\n return null;\n }\n var len = n - s.length - 6;\n var filler = \"\";\n for (var f = 0; f < len; f += 2) {\n filler += \"ff\";\n }\n var m = \"0001\" + filler + \"00\" + s;\n return (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(m, 16);\n}\n// PKCS#1 (type 2, random) pad input string s to n bytes, and return a bigint\nfunction pkcs1pad2(s, n) {\n if (n < s.length + 11) { // TODO: fix for utf-8\n console.error(\"Message too long for RSA\");\n return null;\n }\n var ba = [];\n var i = s.length - 1;\n while (i >= 0 && n > 0) {\n var c = s.charCodeAt(i--);\n if (c < 128) { // encode using utf-8\n ba[--n] = c;\n }\n else if ((c > 127) && (c < 2048)) {\n ba[--n] = (c & 63) | 128;\n ba[--n] = (c >> 6) | 192;\n }\n else {\n ba[--n] = (c & 63) | 128;\n ba[--n] = ((c >> 6) & 63) | 128;\n ba[--n] = (c >> 12) | 224;\n }\n }\n ba[--n] = 0;\n var rng = new _rng__WEBPACK_IMPORTED_MODULE_1__.SecureRandom();\n var x = [];\n while (n > 2) { // random non-zero pad\n x[0] = 0;\n while (x[0] == 0) {\n rng.nextBytes(x);\n }\n ba[--n] = x[0];\n }\n ba[--n] = 2;\n ba[--n] = 0;\n return new _jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(ba);\n}\n// \"empty\" RSA key constructor\nvar RSAKey = /** @class */ (function () {\n function RSAKey() {\n this.n = null;\n this.e = 0;\n this.d = null;\n this.p = null;\n this.q = null;\n this.dmp1 = null;\n this.dmq1 = null;\n this.coeff = null;\n }\n //#region PROTECTED\n // protected\n // RSAKey.prototype.doPublic = RSADoPublic;\n // Perform raw public operation on \"x\": return x^e (mod n)\n RSAKey.prototype.doPublic = function (x) {\n return x.modPowInt(this.e, this.n);\n };\n // RSAKey.prototype.doPrivate = RSADoPrivate;\n // Perform raw private operation on \"x\": return x^d (mod n)\n RSAKey.prototype.doPrivate = function (x) {\n if (this.p == null || this.q == null) {\n return x.modPow(this.d, this.n);\n }\n // TODO: re-calculate any missing CRT params\n var xp = x.mod(this.p).modPow(this.dmp1, this.p);\n var xq = x.mod(this.q).modPow(this.dmq1, this.q);\n while (xp.compareTo(xq) < 0) {\n xp = xp.add(this.p);\n }\n return xp.subtract(xq).multiply(this.coeff).mod(this.p).multiply(this.q).add(xq);\n };\n //#endregion PROTECTED\n //#region PUBLIC\n // RSAKey.prototype.setPublic = RSASetPublic;\n // Set the public key fields N and e from hex strings\n RSAKey.prototype.setPublic = function (N, E) {\n if (N != null && E != null && N.length > 0 && E.length > 0) {\n this.n = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(N, 16);\n this.e = parseInt(E, 16);\n }\n else {\n console.error(\"Invalid RSA public key\");\n }\n };\n // RSAKey.prototype.encrypt = RSAEncrypt;\n // Return the PKCS#1 RSA encryption of \"text\" as an even-length hex string\n RSAKey.prototype.encrypt = function (text) {\n var maxLength = (this.n.bitLength() + 7) >> 3;\n var m = pkcs1pad2(text, maxLength);\n if (m == null) {\n return null;\n }\n var c = this.doPublic(m);\n if (c == null) {\n return null;\n }\n var h = c.toString(16);\n var length = h.length;\n // fix zero before result\n for (var i = 0; i < maxLength * 2 - length; i++) {\n h = \"0\" + h;\n }\n return h;\n };\n // RSAKey.prototype.setPrivate = RSASetPrivate;\n // Set the private key fields N, e, and d from hex strings\n RSAKey.prototype.setPrivate = function (N, E, D) {\n if (N != null && E != null && N.length > 0 && E.length > 0) {\n this.n = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(N, 16);\n this.e = parseInt(E, 16);\n this.d = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(D, 16);\n }\n else {\n console.error(\"Invalid RSA private key\");\n }\n };\n // RSAKey.prototype.setPrivateEx = RSASetPrivateEx;\n // Set the private key fields N, e, d and CRT params from hex strings\n RSAKey.prototype.setPrivateEx = function (N, E, D, P, Q, DP, DQ, C) {\n if (N != null && E != null && N.length > 0 && E.length > 0) {\n this.n = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(N, 16);\n this.e = parseInt(E, 16);\n this.d = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(D, 16);\n this.p = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(P, 16);\n this.q = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(Q, 16);\n this.dmp1 = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(DP, 16);\n this.dmq1 = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(DQ, 16);\n this.coeff = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(C, 16);\n }\n else {\n console.error(\"Invalid RSA private key\");\n }\n };\n // RSAKey.prototype.generate = RSAGenerate;\n // Generate a new random private key B bits long, using public expt E\n RSAKey.prototype.generate = function (B, E) {\n var rng = new _rng__WEBPACK_IMPORTED_MODULE_1__.SecureRandom();\n var qs = B >> 1;\n this.e = parseInt(E, 16);\n var ee = new _jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(E, 16);\n for (;;) {\n for (;;) {\n this.p = new _jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(B - qs, 1, rng);\n if (this.p.subtract(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE).gcd(ee).compareTo(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE) == 0 && this.p.isProbablePrime(10)) {\n break;\n }\n }\n for (;;) {\n this.q = new _jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(qs, 1, rng);\n if (this.q.subtract(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE).gcd(ee).compareTo(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE) == 0 && this.q.isProbablePrime(10)) {\n break;\n }\n }\n if (this.p.compareTo(this.q) <= 0) {\n var t = this.p;\n this.p = this.q;\n this.q = t;\n }\n var p1 = this.p.subtract(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE);\n var q1 = this.q.subtract(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE);\n var phi = p1.multiply(q1);\n if (phi.gcd(ee).compareTo(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE) == 0) {\n this.n = this.p.multiply(this.q);\n this.d = ee.modInverse(phi);\n this.dmp1 = this.d.mod(p1);\n this.dmq1 = this.d.mod(q1);\n this.coeff = this.q.modInverse(this.p);\n break;\n }\n }\n };\n // RSAKey.prototype.decrypt = RSADecrypt;\n // Return the PKCS#1 RSA decryption of \"ctext\".\n // \"ctext\" is an even-length hex string and the output is a plain string.\n RSAKey.prototype.decrypt = function (ctext) {\n var c = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(ctext, 16);\n var m = this.doPrivate(c);\n if (m == null) {\n return null;\n }\n return pkcs1unpad2(m, (this.n.bitLength() + 7) >> 3);\n };\n // Generate a new random private key B bits long, using public expt E\n RSAKey.prototype.generateAsync = function (B, E, callback) {\n var rng = new _rng__WEBPACK_IMPORTED_MODULE_1__.SecureRandom();\n var qs = B >> 1;\n this.e = parseInt(E, 16);\n var ee = new _jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(E, 16);\n var rsa = this;\n // These functions have non-descript names because they were originally for(;;) loops.\n // I don't know about cryptography to give them better names than loop1-4.\n var loop1 = function () {\n var loop4 = function () {\n if (rsa.p.compareTo(rsa.q) <= 0) {\n var t = rsa.p;\n rsa.p = rsa.q;\n rsa.q = t;\n }\n var p1 = rsa.p.subtract(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE);\n var q1 = rsa.q.subtract(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE);\n var phi = p1.multiply(q1);\n if (phi.gcd(ee).compareTo(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE) == 0) {\n rsa.n = rsa.p.multiply(rsa.q);\n rsa.d = ee.modInverse(phi);\n rsa.dmp1 = rsa.d.mod(p1);\n rsa.dmq1 = rsa.d.mod(q1);\n rsa.coeff = rsa.q.modInverse(rsa.p);\n setTimeout(function () { callback(); }, 0); // escape\n }\n else {\n setTimeout(loop1, 0);\n }\n };\n var loop3 = function () {\n rsa.q = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.nbi)();\n rsa.q.fromNumberAsync(qs, 1, rng, function () {\n rsa.q.subtract(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE).gcda(ee, function (r) {\n if (r.compareTo(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE) == 0 && rsa.q.isProbablePrime(10)) {\n setTimeout(loop4, 0);\n }\n else {\n setTimeout(loop3, 0);\n }\n });\n });\n };\n var loop2 = function () {\n rsa.p = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.nbi)();\n rsa.p.fromNumberAsync(B - qs, 1, rng, function () {\n rsa.p.subtract(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE).gcda(ee, function (r) {\n if (r.compareTo(_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE) == 0 && rsa.p.isProbablePrime(10)) {\n setTimeout(loop3, 0);\n }\n else {\n setTimeout(loop2, 0);\n }\n });\n });\n };\n setTimeout(loop2, 0);\n };\n setTimeout(loop1, 0);\n };\n RSAKey.prototype.sign = function (text, digestMethod, digestName) {\n var header = getDigestHeader(digestName);\n var digest = header + digestMethod(text).toString();\n var m = pkcs1pad1(digest, this.n.bitLength() / 4);\n if (m == null) {\n return null;\n }\n var c = this.doPrivate(m);\n if (c == null) {\n return null;\n }\n var h = c.toString(16);\n if ((h.length & 1) == 0) {\n return h;\n }\n else {\n return \"0\" + h;\n }\n };\n RSAKey.prototype.verify = function (text, signature, digestMethod) {\n var c = (0,_jsbn__WEBPACK_IMPORTED_MODULE_0__.parseBigInt)(signature, 16);\n var m = this.doPublic(c);\n if (m == null) {\n return null;\n }\n var unpadded = m.toString(16).replace(/^1f+00/, \"\");\n var digest = removeDigestHeader(unpadded);\n return digest == digestMethod(text).toString();\n };\n return RSAKey;\n}());\n\n// Undo PKCS#1 (type 2, random) padding and, if valid, return the plaintext\nfunction pkcs1unpad2(d, n) {\n var b = d.toByteArray();\n var i = 0;\n while (i < b.length && b[i] == 0) {\n ++i;\n }\n if (b.length - i != n - 1 || b[i] != 2) {\n return null;\n }\n ++i;\n while (b[i] != 0) {\n if (++i >= b.length) {\n return null;\n }\n }\n var ret = \"\";\n while (++i < b.length) {\n var c = b[i] & 255;\n if (c < 128) { // utf-8 decode\n ret += String.fromCharCode(c);\n }\n else if ((c > 191) && (c < 224)) {\n ret += String.fromCharCode(((c & 31) << 6) | (b[i + 1] & 63));\n ++i;\n }\n else {\n ret += String.fromCharCode(((c & 15) << 12) | ((b[i + 1] & 63) << 6) | (b[i + 2] & 63));\n i += 2;\n }\n }\n return ret;\n}\n// https://tools.ietf.org/html/rfc3447#page-43\nvar DIGEST_HEADERS = {\n md2: \"3020300c06082a864886f70d020205000410\",\n md5: \"3020300c06082a864886f70d020505000410\",\n sha1: \"3021300906052b0e03021a05000414\",\n sha224: \"302d300d06096086480165030402040500041c\",\n sha256: \"3031300d060960864801650304020105000420\",\n sha384: \"3041300d060960864801650304020205000430\",\n sha512: \"3051300d060960864801650304020305000440\",\n ripemd160: \"3021300906052b2403020105000414\"\n};\nfunction getDigestHeader(name) {\n return DIGEST_HEADERS[name] || \"\";\n}\nfunction removeDigestHeader(str) {\n for (var name_1 in DIGEST_HEADERS) {\n if (DIGEST_HEADERS.hasOwnProperty(name_1)) {\n var header = DIGEST_HEADERS[name_1];\n var len = header.length;\n if (str.substr(0, len) == header) {\n return str.substr(len);\n }\n }\n }\n return str;\n}\n// Return the PKCS#1 RSA encryption of \"text\" as a Base64-encoded string\n// function RSAEncryptB64(text) {\n// var h = this.encrypt(text);\n// if(h) return hex2b64(h); else return null;\n// }\n// public\n// RSAKey.prototype.encrypt_b64 = RSAEncryptB64;\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/jsbn/rsa.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/jsbn/util.js":
+ /*!******************************!*\
+ !*** ./lib/lib/jsbn/util.js ***!
+ \******************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"cbit\": () => (/* binding */ cbit),\n/* harmony export */ \"int2char\": () => (/* binding */ int2char),\n/* harmony export */ \"lbit\": () => (/* binding */ lbit),\n/* harmony export */ \"op_and\": () => (/* binding */ op_and),\n/* harmony export */ \"op_andnot\": () => (/* binding */ op_andnot),\n/* harmony export */ \"op_or\": () => (/* binding */ op_or),\n/* harmony export */ \"op_xor\": () => (/* binding */ op_xor)\n/* harmony export */ });\nvar BI_RM = \"0123456789abcdefghijklmnopqrstuvwxyz\";\nfunction int2char(n) {\n return BI_RM.charAt(n);\n}\n//#region BIT_OPERATIONS\n// (public) this & a\nfunction op_and(x, y) {\n return x & y;\n}\n// (public) this | a\nfunction op_or(x, y) {\n return x | y;\n}\n// (public) this ^ a\nfunction op_xor(x, y) {\n return x ^ y;\n}\n// (public) this & ~a\nfunction op_andnot(x, y) {\n return x & ~y;\n}\n// return index of lowest 1-bit in x, x < 2^31\nfunction lbit(x) {\n if (x == 0) {\n return -1;\n }\n var r = 0;\n if ((x & 0xffff) == 0) {\n x >>= 16;\n r += 16;\n }\n if ((x & 0xff) == 0) {\n x >>= 8;\n r += 8;\n }\n if ((x & 0xf) == 0) {\n x >>= 4;\n r += 4;\n }\n if ((x & 3) == 0) {\n x >>= 2;\n r += 2;\n }\n if ((x & 1) == 0) {\n ++r;\n }\n return r;\n}\n// return number of 1 bits in x\nfunction cbit(x) {\n var r = 0;\n while (x != 0) {\n x &= x - 1;\n ++r;\n }\n return r;\n}\n//#endregion BIT_OPERATIONS\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/jsbn/util.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/jsrsasign/asn1-1.0.js":
+ /*!***************************************!*\
+ !*** ./lib/lib/jsrsasign/asn1-1.0.js ***!
+ \***************************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"KJUR\": () => (/* binding */ KJUR)\n/* harmony export */ });\n/* harmony import */ var _jsbn_jsbn__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../jsbn/jsbn */ \"./lib/lib/jsbn/jsbn.js\");\n/* harmony import */ var _yahoo__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./yahoo */ \"./lib/lib/jsrsasign/yahoo.js\");\n/* asn1-1.0.13.js (c) 2013-2017 Kenji Urushima | kjur.github.com/jsrsasign/license\n */\n/*\n * asn1.js - ASN.1 DER encoder classes\n *\n * Copyright (c) 2013-2017 Kenji Urushima (kenji.urushima@gmail.com)\n *\n * This software is licensed under the terms of the MIT License.\n * https://kjur.github.io/jsrsasign/license\n *\n * The above copyright and license notice shall be\n * included in all copies or substantial portions of the Software.\n */\n\n\n/**\n * @fileOverview\n * @name asn1-1.0.js\n * @author Kenji Urushima kenji.urushima@gmail.com\n * @version asn1 1.0.13 (2017-Jun-02)\n * @since jsrsasign 2.1\n * @license MIT License\n */\n/**\n * kjur's class library name space\n * \n * This name space provides following name spaces:\n *
\n * - {@link KJUR.asn1} - ASN.1 primitive hexadecimal encoder
\n * - {@link KJUR.asn1.x509} - ASN.1 structure for X.509 certificate and CRL
\n * - {@link KJUR.crypto} - Java Cryptographic Extension(JCE) style MessageDigest/Signature\n * class and utilities
\n *
\n *
\n * NOTE: Please ignore method summary and document of this namespace. This caused by a bug of jsdoc2.\n * @name KJUR\n * @namespace kjur's class library name space\n */\nvar KJUR = {};\n/**\n * kjur's ASN.1 class library name space\n * \n * This is ITU-T X.690 ASN.1 DER encoder class library and\n * class structure and methods is very similar to\n * org.bouncycastle.asn1 package of\n * well known BouncyCaslte Cryptography Library.\n *
PROVIDING ASN.1 PRIMITIVES
\n * Here are ASN.1 DER primitive classes.\n * \n * - 0x01 {@link KJUR.asn1.DERBoolean}
\n * - 0x02 {@link KJUR.asn1.DERInteger}
\n * - 0x03 {@link KJUR.asn1.DERBitString}
\n * - 0x04 {@link KJUR.asn1.DEROctetString}
\n * - 0x05 {@link KJUR.asn1.DERNull}
\n * - 0x06 {@link KJUR.asn1.DERObjectIdentifier}
\n * - 0x0a {@link KJUR.asn1.DEREnumerated}
\n * - 0x0c {@link KJUR.asn1.DERUTF8String}
\n * - 0x12 {@link KJUR.asn1.DERNumericString}
\n * - 0x13 {@link KJUR.asn1.DERPrintableString}
\n * - 0x14 {@link KJUR.asn1.DERTeletexString}
\n * - 0x16 {@link KJUR.asn1.DERIA5String}
\n * - 0x17 {@link KJUR.asn1.DERUTCTime}
\n * - 0x18 {@link KJUR.asn1.DERGeneralizedTime}
\n * - 0x30 {@link KJUR.asn1.DERSequence}
\n * - 0x31 {@link KJUR.asn1.DERSet}
\n *
\n * OTHER ASN.1 CLASSES
\n * \n * - {@link KJUR.asn1.ASN1Object}
\n * - {@link KJUR.asn1.DERAbstractString}
\n * - {@link KJUR.asn1.DERAbstractTime}
\n * - {@link KJUR.asn1.DERAbstractStructured}
\n * - {@link KJUR.asn1.DERTaggedObject}
\n *
\n * SUB NAME SPACES
\n * \n * - {@link KJUR.asn1.cades} - CAdES long term signature format
\n * - {@link KJUR.asn1.cms} - Cryptographic Message Syntax
\n * - {@link KJUR.asn1.csr} - Certificate Signing Request (CSR/PKCS#10)
\n * - {@link KJUR.asn1.tsp} - RFC 3161 Timestamping Protocol Format
\n * - {@link KJUR.asn1.x509} - RFC 5280 X.509 certificate and CRL
\n *
\n * \n * NOTE: Please ignore method summary and document of this namespace.\n * This caused by a bug of jsdoc2.\n * @name KJUR.asn1\n * @namespace\n */\nif (typeof KJUR.asn1 == \"undefined\" || !KJUR.asn1)\n KJUR.asn1 = {};\n/**\n * ASN1 utilities class\n * @name KJUR.asn1.ASN1Util\n * @class ASN1 utilities class\n * @since asn1 1.0.2\n */\nKJUR.asn1.ASN1Util = new function () {\n this.integerToByteHex = function (i) {\n var h = i.toString(16);\n if ((h.length % 2) == 1)\n h = '0' + h;\n return h;\n };\n this.bigIntToMinTwosComplementsHex = function (bigIntegerValue) {\n var h = bigIntegerValue.toString(16);\n if (h.substr(0, 1) != '-') {\n if (h.length % 2 == 1) {\n h = '0' + h;\n }\n else {\n if (!h.match(/^[0-7]/)) {\n h = '00' + h;\n }\n }\n }\n else {\n var hPos = h.substr(1);\n var xorLen = hPos.length;\n if (xorLen % 2 == 1) {\n xorLen += 1;\n }\n else {\n if (!h.match(/^[0-7]/)) {\n xorLen += 2;\n }\n }\n var hMask = '';\n for (var i = 0; i < xorLen; i++) {\n hMask += 'f';\n }\n var biMask = new _jsbn_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(hMask, 16);\n var biNeg = biMask.xor(bigIntegerValue).add(_jsbn_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger.ONE);\n h = biNeg.toString(16).replace(/^-/, '');\n }\n return h;\n };\n /**\n * get PEM string from hexadecimal data and header string\n * @name getPEMStringFromHex\n * @memberOf KJUR.asn1.ASN1Util\n * @function\n * @param {String} dataHex hexadecimal string of PEM body\n * @param {String} pemHeader PEM header string (ex. 'RSA PRIVATE KEY')\n * @return {String} PEM formatted string of input data\n * @description\n * This method converts a hexadecimal string to a PEM string with\n * a specified header. Its line break will be CRLF(\"\\r\\n\").\n * @example\n * var pem = KJUR.asn1.ASN1Util.getPEMStringFromHex('616161', 'RSA PRIVATE KEY');\n * // value of pem will be:\n * -----BEGIN PRIVATE KEY-----\n * YWFh\n * -----END PRIVATE KEY-----\n */\n this.getPEMStringFromHex = function (dataHex, pemHeader) {\n return hextopem(dataHex, pemHeader);\n };\n /**\n * generate ASN1Object specifed by JSON parameters\n * @name newObject\n * @memberOf KJUR.asn1.ASN1Util\n * @function\n * @param {Array} param JSON parameter to generate ASN1Object\n * @return {KJUR.asn1.ASN1Object} generated object\n * @since asn1 1.0.3\n * @description\n * generate any ASN1Object specified by JSON param\n * including ASN.1 primitive or structured.\n * Generally 'param' can be described as follows:\n * \n * {TYPE-OF-ASNOBJ: ASN1OBJ-PARAMETER}\n *
\n * 'TYPE-OF-ASN1OBJ' can be one of following symbols:\n * \n * - 'bool' - DERBoolean
\n * - 'int' - DERInteger
\n * - 'bitstr' - DERBitString
\n * - 'octstr' - DEROctetString
\n * - 'null' - DERNull
\n * - 'oid' - DERObjectIdentifier
\n * - 'enum' - DEREnumerated
\n * - 'utf8str' - DERUTF8String
\n * - 'numstr' - DERNumericString
\n * - 'prnstr' - DERPrintableString
\n * - 'telstr' - DERTeletexString
\n * - 'ia5str' - DERIA5String
\n * - 'utctime' - DERUTCTime
\n * - 'gentime' - DERGeneralizedTime
\n * - 'seq' - DERSequence
\n * - 'set' - DERSet
\n * - 'tag' - DERTaggedObject
\n *
\n * @example\n * newObject({'prnstr': 'aaa'});\n * newObject({'seq': [{'int': 3}, {'prnstr': 'aaa'}]})\n * // ASN.1 Tagged Object\n * newObject({'tag': {'tag': 'a1',\n * 'explicit': true,\n * 'obj': {'seq': [{'int': 3}, {'prnstr': 'aaa'}]}}});\n * // more simple representation of ASN.1 Tagged Object\n * newObject({'tag': ['a1',\n * true,\n * {'seq': [\n * {'int': 3},\n * {'prnstr': 'aaa'}]}\n * ]});\n */\n this.newObject = function (param) {\n var _KJUR = KJUR, _KJUR_asn1 = _KJUR.asn1, _DERBoolean = _KJUR_asn1.DERBoolean, _DERInteger = _KJUR_asn1.DERInteger, _DERBitString = _KJUR_asn1.DERBitString, _DEROctetString = _KJUR_asn1.DEROctetString, _DERNull = _KJUR_asn1.DERNull, _DERObjectIdentifier = _KJUR_asn1.DERObjectIdentifier, _DEREnumerated = _KJUR_asn1.DEREnumerated, _DERUTF8String = _KJUR_asn1.DERUTF8String, _DERNumericString = _KJUR_asn1.DERNumericString, _DERPrintableString = _KJUR_asn1.DERPrintableString, _DERTeletexString = _KJUR_asn1.DERTeletexString, _DERIA5String = _KJUR_asn1.DERIA5String, _DERUTCTime = _KJUR_asn1.DERUTCTime, _DERGeneralizedTime = _KJUR_asn1.DERGeneralizedTime, _DERSequence = _KJUR_asn1.DERSequence, _DERSet = _KJUR_asn1.DERSet, _DERTaggedObject = _KJUR_asn1.DERTaggedObject, _newObject = _KJUR_asn1.ASN1Util.newObject;\n var keys = Object.keys(param);\n if (keys.length != 1)\n throw \"key of param shall be only one.\";\n var key = keys[0];\n if (\":bool:int:bitstr:octstr:null:oid:enum:utf8str:numstr:prnstr:telstr:ia5str:utctime:gentime:seq:set:tag:\".indexOf(\":\" + key + \":\") == -1)\n throw \"undefined key: \" + key;\n if (key == \"bool\")\n return new _DERBoolean(param[key]);\n if (key == \"int\")\n return new _DERInteger(param[key]);\n if (key == \"bitstr\")\n return new _DERBitString(param[key]);\n if (key == \"octstr\")\n return new _DEROctetString(param[key]);\n if (key == \"null\")\n return new _DERNull(param[key]);\n if (key == \"oid\")\n return new _DERObjectIdentifier(param[key]);\n if (key == \"enum\")\n return new _DEREnumerated(param[key]);\n if (key == \"utf8str\")\n return new _DERUTF8String(param[key]);\n if (key == \"numstr\")\n return new _DERNumericString(param[key]);\n if (key == \"prnstr\")\n return new _DERPrintableString(param[key]);\n if (key == \"telstr\")\n return new _DERTeletexString(param[key]);\n if (key == \"ia5str\")\n return new _DERIA5String(param[key]);\n if (key == \"utctime\")\n return new _DERUTCTime(param[key]);\n if (key == \"gentime\")\n return new _DERGeneralizedTime(param[key]);\n if (key == \"seq\") {\n var paramList = param[key];\n var a = [];\n for (var i = 0; i < paramList.length; i++) {\n var asn1Obj = _newObject(paramList[i]);\n a.push(asn1Obj);\n }\n return new _DERSequence({ 'array': a });\n }\n if (key == \"set\") {\n var paramList = param[key];\n var a = [];\n for (var i = 0; i < paramList.length; i++) {\n var asn1Obj = _newObject(paramList[i]);\n a.push(asn1Obj);\n }\n return new _DERSet({ 'array': a });\n }\n if (key == \"tag\") {\n var tagParam = param[key];\n if (Object.prototype.toString.call(tagParam) === '[object Array]' &&\n tagParam.length == 3) {\n var obj = _newObject(tagParam[2]);\n return new _DERTaggedObject({ tag: tagParam[0],\n explicit: tagParam[1],\n obj: obj });\n }\n else {\n var newParam = {};\n if (tagParam.explicit !== undefined)\n newParam.explicit = tagParam.explicit;\n if (tagParam.tag !== undefined)\n newParam.tag = tagParam.tag;\n if (tagParam.obj === undefined)\n throw \"obj shall be specified for 'tag'.\";\n newParam.obj = _newObject(tagParam.obj);\n return new _DERTaggedObject(newParam);\n }\n }\n };\n /**\n * get encoded hexadecimal string of ASN1Object specifed by JSON parameters\n * @name jsonToASN1HEX\n * @memberOf KJUR.asn1.ASN1Util\n * @function\n * @param {Array} param JSON parameter to generate ASN1Object\n * @return hexadecimal string of ASN1Object\n * @since asn1 1.0.4\n * @description\n * As for ASN.1 object representation of JSON object,\n * please see {@link newObject}.\n * @example\n * jsonToASN1HEX({'prnstr': 'aaa'});\n */\n this.jsonToASN1HEX = function (param) {\n var asn1Obj = this.newObject(param);\n return asn1Obj.getEncodedHex();\n };\n};\n/**\n * get dot noted oid number string from hexadecimal value of OID\n * @name oidHexToInt\n * @memberOf KJUR.asn1.ASN1Util\n * @function\n * @param {String} hex hexadecimal value of object identifier\n * @return {String} dot noted string of object identifier\n * @since jsrsasign 4.8.3 asn1 1.0.7\n * @description\n * This static method converts from hexadecimal string representation of\n * ASN.1 value of object identifier to oid number string.\n * @example\n * KJUR.asn1.ASN1Util.oidHexToInt('550406') → \"2.5.4.6\"\n */\nKJUR.asn1.ASN1Util.oidHexToInt = function (hex) {\n var s = \"\";\n var i01 = parseInt(hex.substr(0, 2), 16);\n var i0 = Math.floor(i01 / 40);\n var i1 = i01 % 40;\n var s = i0 + \".\" + i1;\n var binbuf = \"\";\n for (var i = 2; i < hex.length; i += 2) {\n var value = parseInt(hex.substr(i, 2), 16);\n var bin = (\"00000000\" + value.toString(2)).slice(-8);\n binbuf = binbuf + bin.substr(1, 7);\n if (bin.substr(0, 1) == \"0\") {\n var bi = new _jsbn_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(binbuf, 2);\n s = s + \".\" + bi.toString(10);\n binbuf = \"\";\n }\n }\n ;\n return s;\n};\n/**\n * get hexadecimal value of object identifier from dot noted oid value\n * @name oidIntToHex\n * @memberOf KJUR.asn1.ASN1Util\n * @function\n * @param {String} oidString dot noted string of object identifier\n * @return {String} hexadecimal value of object identifier\n * @since jsrsasign 4.8.3 asn1 1.0.7\n * @description\n * This static method converts from object identifier value string.\n * to hexadecimal string representation of it.\n * @example\n * KJUR.asn1.ASN1Util.oidIntToHex(\"2.5.4.6\") → \"550406\"\n */\nKJUR.asn1.ASN1Util.oidIntToHex = function (oidString) {\n var itox = function (i) {\n var h = i.toString(16);\n if (h.length == 1)\n h = '0' + h;\n return h;\n };\n var roidtox = function (roid) {\n var h = '';\n var bi = new _jsbn_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(roid, 10);\n var b = bi.toString(2);\n var padLen = 7 - b.length % 7;\n if (padLen == 7)\n padLen = 0;\n var bPad = '';\n for (var i = 0; i < padLen; i++)\n bPad += '0';\n b = bPad + b;\n for (var i = 0; i < b.length - 1; i += 7) {\n var b8 = b.substr(i, 7);\n if (i != b.length - 7)\n b8 = '1' + b8;\n h += itox(parseInt(b8, 2));\n }\n return h;\n };\n if (!oidString.match(/^[0-9.]+$/)) {\n throw \"malformed oid string: \" + oidString;\n }\n var h = '';\n var a = oidString.split('.');\n var i0 = parseInt(a[0]) * 40 + parseInt(a[1]);\n h += itox(i0);\n a.splice(0, 2);\n for (var i = 0; i < a.length; i++) {\n h += roidtox(a[i]);\n }\n return h;\n};\n// ********************************************************************\n// Abstract ASN.1 Classes\n// ********************************************************************\n// ********************************************************************\n/**\n * base class for ASN.1 DER encoder object\n * @name KJUR.asn1.ASN1Object\n * @class base class for ASN.1 DER encoder object\n * @property {Boolean} isModified flag whether internal data was changed\n * @property {String} hTLV hexadecimal string of ASN.1 TLV\n * @property {String} hT hexadecimal string of ASN.1 TLV tag(T)\n * @property {String} hL hexadecimal string of ASN.1 TLV length(L)\n * @property {String} hV hexadecimal string of ASN.1 TLV value(V)\n * @description\n */\nKJUR.asn1.ASN1Object = function () {\n var isModified = true;\n var hTLV = null;\n var hT = '00';\n var hL = '00';\n var hV = '';\n /**\n * get hexadecimal ASN.1 TLV length(L) bytes from TLV value(V)\n * @name getLengthHexFromValue\n * @memberOf KJUR.asn1.ASN1Object#\n * @function\n * @return {String} hexadecimal string of ASN.1 TLV length(L)\n */\n this.getLengthHexFromValue = function () {\n if (typeof this.hV == \"undefined\" || this.hV == null) {\n throw \"this.hV is null or undefined.\";\n }\n if (this.hV.length % 2 == 1) {\n throw \"value hex must be even length: n=\" + hV.length + \",v=\" + this.hV;\n }\n var n = this.hV.length / 2;\n var hN = n.toString(16);\n if (hN.length % 2 == 1) {\n hN = \"0\" + hN;\n }\n if (n < 128) {\n return hN;\n }\n else {\n var hNlen = hN.length / 2;\n if (hNlen > 15) {\n throw \"ASN.1 length too long to represent by 8x: n = \" + n.toString(16);\n }\n var head = 128 + hNlen;\n return head.toString(16) + hN;\n }\n };\n /**\n * get hexadecimal string of ASN.1 TLV bytes\n * @name getEncodedHex\n * @memberOf KJUR.asn1.ASN1Object#\n * @function\n * @return {String} hexadecimal string of ASN.1 TLV\n */\n this.getEncodedHex = function () {\n if (this.hTLV == null || this.isModified) {\n this.hV = this.getFreshValueHex();\n this.hL = this.getLengthHexFromValue();\n this.hTLV = this.hT + this.hL + this.hV;\n this.isModified = false;\n //alert(\"first time: \" + this.hTLV);\n }\n return this.hTLV;\n };\n /**\n * get hexadecimal string of ASN.1 TLV value(V) bytes\n * @name getValueHex\n * @memberOf KJUR.asn1.ASN1Object#\n * @function\n * @return {String} hexadecimal string of ASN.1 TLV value(V) bytes\n */\n this.getValueHex = function () {\n this.getEncodedHex();\n return this.hV;\n };\n this.getFreshValueHex = function () {\n return '';\n };\n};\n// == BEGIN DERAbstractString ================================================\n/**\n * base class for ASN.1 DER string classes\n * @name KJUR.asn1.DERAbstractString\n * @class base class for ASN.1 DER string classes\n * @param {Array} params associative array of parameters (ex. {'str': 'aaa'})\n * @property {String} s internal string of value\n * @extends KJUR.asn1.ASN1Object\n * @description\n *
\n * As for argument 'params' for constructor, you can specify one of\n * following properties:\n * \n * - str - specify initial ASN.1 value(V) by a string
\n * - hex - specify initial ASN.1 value(V) by a hexadecimal string
\n *
\n * NOTE: 'params' can be omitted.\n */\nKJUR.asn1.DERAbstractString = function (params) {\n KJUR.asn1.DERAbstractString.superclass.constructor.call(this);\n var s = null;\n var hV = null;\n /**\n * get string value of this string object\n * @name getString\n * @memberOf KJUR.asn1.DERAbstractString#\n * @function\n * @return {String} string value of this string object\n */\n this.getString = function () {\n return this.s;\n };\n /**\n * set value by a string\n * @name setString\n * @memberOf KJUR.asn1.DERAbstractString#\n * @function\n * @param {String} newS value by a string to set\n */\n this.setString = function (newS) {\n this.hTLV = null;\n this.isModified = true;\n this.s = newS;\n this.hV = stohex(this.s);\n };\n /**\n * set value by a hexadecimal string\n * @name setStringHex\n * @memberOf KJUR.asn1.DERAbstractString#\n * @function\n * @param {String} newHexString value by a hexadecimal string to set\n */\n this.setStringHex = function (newHexString) {\n this.hTLV = null;\n this.isModified = true;\n this.s = null;\n this.hV = newHexString;\n };\n this.getFreshValueHex = function () {\n return this.hV;\n };\n if (typeof params != \"undefined\") {\n if (typeof params == \"string\") {\n this.setString(params);\n }\n else if (typeof params['str'] != \"undefined\") {\n this.setString(params['str']);\n }\n else if (typeof params['hex'] != \"undefined\") {\n this.setStringHex(params['hex']);\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERAbstractString, KJUR.asn1.ASN1Object);\n// == END DERAbstractString ================================================\n// == BEGIN DERAbstractTime ==================================================\n/**\n * base class for ASN.1 DER Generalized/UTCTime class\n * @name KJUR.asn1.DERAbstractTime\n * @class base class for ASN.1 DER Generalized/UTCTime class\n * @param {Array} params associative array of parameters (ex. {'str': '130430235959Z'})\n * @extends KJUR.asn1.ASN1Object\n * @description\n * @see KJUR.asn1.ASN1Object - superclass\n */\nKJUR.asn1.DERAbstractTime = function (params) {\n KJUR.asn1.DERAbstractTime.superclass.constructor.call(this);\n var s = null;\n var date = null;\n // --- PRIVATE METHODS --------------------\n this.localDateToUTC = function (d) {\n utc = d.getTime() + (d.getTimezoneOffset() * 60000);\n var utcDate = new Date(utc);\n return utcDate;\n };\n /*\n * format date string by Data object\n * @name formatDate\n * @memberOf KJUR.asn1.AbstractTime;\n * @param {Date} dateObject\n * @param {string} type 'utc' or 'gen'\n * @param {boolean} withMillis flag for with millisections or not\n * @description\n * 'withMillis' flag is supported from asn1 1.0.6.\n */\n this.formatDate = function (dateObject, type, withMillis) {\n var pad = this.zeroPadding;\n var d = this.localDateToUTC(dateObject);\n var year = String(d.getFullYear());\n if (type == 'utc')\n year = year.substr(2, 2);\n var month = pad(String(d.getMonth() + 1), 2);\n var day = pad(String(d.getDate()), 2);\n var hour = pad(String(d.getHours()), 2);\n var min = pad(String(d.getMinutes()), 2);\n var sec = pad(String(d.getSeconds()), 2);\n var s = year + month + day + hour + min + sec;\n if (withMillis === true) {\n var millis = d.getMilliseconds();\n if (millis != 0) {\n var sMillis = pad(String(millis), 3);\n sMillis = sMillis.replace(/[0]+$/, \"\");\n s = s + \".\" + sMillis;\n }\n }\n return s + \"Z\";\n };\n this.zeroPadding = function (s, len) {\n if (s.length >= len)\n return s;\n return new Array(len - s.length + 1).join('0') + s;\n };\n // --- PUBLIC METHODS --------------------\n /**\n * get string value of this string object\n * @name getString\n * @memberOf KJUR.asn1.DERAbstractTime#\n * @function\n * @return {String} string value of this time object\n */\n this.getString = function () {\n return this.s;\n };\n /**\n * set value by a string\n * @name setString\n * @memberOf KJUR.asn1.DERAbstractTime#\n * @function\n * @param {String} newS value by a string to set such like \"130430235959Z\"\n */\n this.setString = function (newS) {\n this.hTLV = null;\n this.isModified = true;\n this.s = newS;\n this.hV = stohex(newS);\n };\n /**\n * set value by a Date object\n * @name setByDateValue\n * @memberOf KJUR.asn1.DERAbstractTime#\n * @function\n * @param {Integer} year year of date (ex. 2013)\n * @param {Integer} month month of date between 1 and 12 (ex. 12)\n * @param {Integer} day day of month\n * @param {Integer} hour hours of date\n * @param {Integer} min minutes of date\n * @param {Integer} sec seconds of date\n */\n this.setByDateValue = function (year, month, day, hour, min, sec) {\n var dateObject = new Date(Date.UTC(year, month - 1, day, hour, min, sec, 0));\n this.setByDate(dateObject);\n };\n this.getFreshValueHex = function () {\n return this.hV;\n };\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERAbstractTime, KJUR.asn1.ASN1Object);\n// == END DERAbstractTime ==================================================\n// == BEGIN DERAbstractStructured ============================================\n/**\n * base class for ASN.1 DER structured class\n * @name KJUR.asn1.DERAbstractStructured\n * @class base class for ASN.1 DER structured class\n * @property {Array} asn1Array internal array of ASN1Object\n * @extends KJUR.asn1.ASN1Object\n * @description\n * @see KJUR.asn1.ASN1Object - superclass\n */\nKJUR.asn1.DERAbstractStructured = function (params) {\n KJUR.asn1.DERAbstractString.superclass.constructor.call(this);\n var asn1Array = null;\n /**\n * set value by array of ASN1Object\n * @name setByASN1ObjectArray\n * @memberOf KJUR.asn1.DERAbstractStructured#\n * @function\n * @param {array} asn1ObjectArray array of ASN1Object to set\n */\n this.setByASN1ObjectArray = function (asn1ObjectArray) {\n this.hTLV = null;\n this.isModified = true;\n this.asn1Array = asn1ObjectArray;\n };\n /**\n * append an ASN1Object to internal array\n * @name appendASN1Object\n * @memberOf KJUR.asn1.DERAbstractStructured#\n * @function\n * @param {ASN1Object} asn1Object to add\n */\n this.appendASN1Object = function (asn1Object) {\n this.hTLV = null;\n this.isModified = true;\n this.asn1Array.push(asn1Object);\n };\n this.asn1Array = new Array();\n if (typeof params != \"undefined\") {\n if (typeof params['array'] != \"undefined\") {\n this.asn1Array = params['array'];\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERAbstractStructured, KJUR.asn1.ASN1Object);\n// ********************************************************************\n// ASN.1 Object Classes\n// ********************************************************************\n// ********************************************************************\n/**\n * class for ASN.1 DER Boolean\n * @name KJUR.asn1.DERBoolean\n * @class class for ASN.1 DER Boolean\n * @extends KJUR.asn1.ASN1Object\n * @description\n * @see KJUR.asn1.ASN1Object - superclass\n */\nKJUR.asn1.DERBoolean = function () {\n KJUR.asn1.DERBoolean.superclass.constructor.call(this);\n this.hT = \"01\";\n this.hTLV = \"0101ff\";\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERBoolean, KJUR.asn1.ASN1Object);\n// ********************************************************************\n/**\n * class for ASN.1 DER Integer\n * @name KJUR.asn1.DERInteger\n * @class class for ASN.1 DER Integer\n * @extends KJUR.asn1.ASN1Object\n * @description\n *
\n * As for argument 'params' for constructor, you can specify one of\n * following properties:\n * \n * - int - specify initial ASN.1 value(V) by integer value
\n * - bigint - specify initial ASN.1 value(V) by BigInteger object
\n * - hex - specify initial ASN.1 value(V) by a hexadecimal string
\n *
\n * NOTE: 'params' can be omitted.\n */\nKJUR.asn1.DERInteger = function (params) {\n KJUR.asn1.DERInteger.superclass.constructor.call(this);\n this.hT = \"02\";\n /**\n * set value by Tom Wu's BigInteger object\n * @name setByBigInteger\n * @memberOf KJUR.asn1.DERInteger#\n * @function\n * @param {BigInteger} bigIntegerValue to set\n */\n this.setByBigInteger = function (bigIntegerValue) {\n this.hTLV = null;\n this.isModified = true;\n this.hV = KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(bigIntegerValue);\n };\n /**\n * set value by integer value\n * @name setByInteger\n * @memberOf KJUR.asn1.DERInteger\n * @function\n * @param {Integer} integer value to set\n */\n this.setByInteger = function (intValue) {\n var bi = new _jsbn_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(String(intValue), 10);\n this.setByBigInteger(bi);\n };\n /**\n * set value by integer value\n * @name setValueHex\n * @memberOf KJUR.asn1.DERInteger#\n * @function\n * @param {String} hexadecimal string of integer value\n * @description\n *
\n * NOTE: Value shall be represented by minimum octet length of\n * two's complement representation.\n * @example\n * new KJUR.asn1.DERInteger(123);\n * new KJUR.asn1.DERInteger({'int': 123});\n * new KJUR.asn1.DERInteger({'hex': '1fad'});\n */\n this.setValueHex = function (newHexString) {\n this.hV = newHexString;\n };\n this.getFreshValueHex = function () {\n return this.hV;\n };\n if (typeof params != \"undefined\") {\n if (typeof params['bigint'] != \"undefined\") {\n this.setByBigInteger(params['bigint']);\n }\n else if (typeof params['int'] != \"undefined\") {\n this.setByInteger(params['int']);\n }\n else if (typeof params == \"number\") {\n this.setByInteger(params);\n }\n else if (typeof params['hex'] != \"undefined\") {\n this.setValueHex(params['hex']);\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERInteger, KJUR.asn1.ASN1Object);\n// ********************************************************************\n/**\n * class for ASN.1 DER encoded BitString primitive\n * @name KJUR.asn1.DERBitString\n * @class class for ASN.1 DER encoded BitString primitive\n * @extends KJUR.asn1.ASN1Object\n * @description\n *
\n * As for argument 'params' for constructor, you can specify one of\n * following properties:\n * \n * - bin - specify binary string (ex. '10111')
\n * - array - specify array of boolean (ex. [true,false,true,true])
\n * - hex - specify hexadecimal string of ASN.1 value(V) including unused bits
\n * - obj - specify {@link KJUR.asn1.ASN1Util.newObject}\n * argument for \"BitString encapsulates\" structure.
\n *
\n * NOTE1: 'params' can be omitted.
\n * NOTE2: 'obj' parameter have been supported since\n * asn1 1.0.11, jsrsasign 6.1.1 (2016-Sep-25).
\n * @example\n * // default constructor\n * o = new KJUR.asn1.DERBitString();\n * // initialize with binary string\n * o = new KJUR.asn1.DERBitString({bin: \"1011\"});\n * // initialize with boolean array\n * o = new KJUR.asn1.DERBitString({array: [true,false,true,true]});\n * // initialize with hexadecimal string (04 is unused bits)\n * o = new KJUR.asn1.DEROctetString({hex: \"04bac0\"});\n * // initialize with ASN1Util.newObject argument for encapsulated\n * o = new KJUR.asn1.DERBitString({obj: {seq: [{int: 3}, {prnstr: 'aaa'}]}});\n * // above generates a ASN.1 data like this:\n * // BIT STRING, encapsulates {\n * // SEQUENCE {\n * // INTEGER 3\n * // PrintableString 'aaa'\n * // }\n * // }\n */\nKJUR.asn1.DERBitString = function (params) {\n if (params !== undefined && typeof params.obj !== \"undefined\") {\n var o = KJUR.asn1.ASN1Util.newObject(params.obj);\n params.hex = \"00\" + o.getEncodedHex();\n }\n KJUR.asn1.DERBitString.superclass.constructor.call(this);\n this.hT = \"03\";\n /**\n * set ASN.1 value(V) by a hexadecimal string including unused bits\n * @name setHexValueIncludingUnusedBits\n * @memberOf KJUR.asn1.DERBitString#\n * @function\n * @param {String} newHexStringIncludingUnusedBits\n */\n this.setHexValueIncludingUnusedBits = function (newHexStringIncludingUnusedBits) {\n this.hTLV = null;\n this.isModified = true;\n this.hV = newHexStringIncludingUnusedBits;\n };\n /**\n * set ASN.1 value(V) by unused bit and hexadecimal string of value\n * @name setUnusedBitsAndHexValue\n * @memberOf KJUR.asn1.DERBitString#\n * @function\n * @param {Integer} unusedBits\n * @param {String} hValue\n */\n this.setUnusedBitsAndHexValue = function (unusedBits, hValue) {\n if (unusedBits < 0 || 7 < unusedBits) {\n throw \"unused bits shall be from 0 to 7: u = \" + unusedBits;\n }\n var hUnusedBits = \"0\" + unusedBits;\n this.hTLV = null;\n this.isModified = true;\n this.hV = hUnusedBits + hValue;\n };\n /**\n * set ASN.1 DER BitString by binary string
\n * @name setByBinaryString\n * @memberOf KJUR.asn1.DERBitString#\n * @function\n * @param {String} binaryString binary value string (i.e. '10111')\n * @description\n * Its unused bits will be calculated automatically by length of\n * 'binaryValue'.
\n * NOTE: Trailing zeros '0' will be ignored.\n * @example\n * o = new KJUR.asn1.DERBitString();\n * o.setByBooleanArray(\"01011\");\n */\n this.setByBinaryString = function (binaryString) {\n binaryString = binaryString.replace(/0+$/, '');\n var unusedBits = 8 - binaryString.length % 8;\n if (unusedBits == 8)\n unusedBits = 0;\n for (var i = 0; i <= unusedBits; i++) {\n binaryString += '0';\n }\n var h = '';\n for (var i = 0; i < binaryString.length - 1; i += 8) {\n var b = binaryString.substr(i, 8);\n var x = parseInt(b, 2).toString(16);\n if (x.length == 1)\n x = '0' + x;\n h += x;\n }\n this.hTLV = null;\n this.isModified = true;\n this.hV = '0' + unusedBits + h;\n };\n /**\n * set ASN.1 TLV value(V) by an array of boolean
\n * @name setByBooleanArray\n * @memberOf KJUR.asn1.DERBitString#\n * @function\n * @param {array} booleanArray array of boolean (ex. [true, false, true])\n * @description\n * NOTE: Trailing falses will be ignored in the ASN.1 DER Object.\n * @example\n * o = new KJUR.asn1.DERBitString();\n * o.setByBooleanArray([false, true, false, true, true]);\n */\n this.setByBooleanArray = function (booleanArray) {\n var s = '';\n for (var i = 0; i < booleanArray.length; i++) {\n if (booleanArray[i] == true) {\n s += '1';\n }\n else {\n s += '0';\n }\n }\n this.setByBinaryString(s);\n };\n /**\n * generate an array of falses with specified length
\n * @name newFalseArray\n * @memberOf KJUR.asn1.DERBitString\n * @function\n * @param {Integer} nLength length of array to generate\n * @return {array} array of boolean falses\n * @description\n * This static method may be useful to initialize boolean array.\n * @example\n * o = new KJUR.asn1.DERBitString();\n * o.newFalseArray(3) → [false, false, false]\n */\n this.newFalseArray = function (nLength) {\n var a = new Array(nLength);\n for (var i = 0; i < nLength; i++) {\n a[i] = false;\n }\n return a;\n };\n this.getFreshValueHex = function () {\n return this.hV;\n };\n if (typeof params != \"undefined\") {\n if (typeof params == \"string\" && params.toLowerCase().match(/^[0-9a-f]+$/)) {\n this.setHexValueIncludingUnusedBits(params);\n }\n else if (typeof params['hex'] != \"undefined\") {\n this.setHexValueIncludingUnusedBits(params['hex']);\n }\n else if (typeof params['bin'] != \"undefined\") {\n this.setByBinaryString(params['bin']);\n }\n else if (typeof params['array'] != \"undefined\") {\n this.setByBooleanArray(params['array']);\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERBitString, KJUR.asn1.ASN1Object);\n// ********************************************************************\n/**\n * class for ASN.1 DER OctetString
\n * @name KJUR.asn1.DEROctetString\n * @class class for ASN.1 DER OctetString\n * @param {Array} params associative array of parameters (ex. {'str': 'aaa'})\n * @extends KJUR.asn1.DERAbstractString\n * @description\n * This class provides ASN.1 OctetString simple type.
\n * Supported \"params\" attributes are:\n * \n * - str - to set a string as a value
\n * - hex - to set a hexadecimal string as a value
\n * - obj - to set a encapsulated ASN.1 value by JSON object\n * which is defined in {@link KJUR.asn1.ASN1Util.newObject}
\n *
\n * NOTE: A parameter 'obj' have been supported\n * for \"OCTET STRING, encapsulates\" structure.\n * since asn1 1.0.11, jsrsasign 6.1.1 (2016-Sep-25).\n * @see KJUR.asn1.DERAbstractString - superclass\n * @example\n * // default constructor\n * o = new KJUR.asn1.DEROctetString();\n * // initialize with string\n * o = new KJUR.asn1.DEROctetString({str: \"aaa\"});\n * // initialize with hexadecimal string\n * o = new KJUR.asn1.DEROctetString({hex: \"616161\"});\n * // initialize with ASN1Util.newObject argument\n * o = new KJUR.asn1.DEROctetString({obj: {seq: [{int: 3}, {prnstr: 'aaa'}]}});\n * // above generates a ASN.1 data like this:\n * // OCTET STRING, encapsulates {\n * // SEQUENCE {\n * // INTEGER 3\n * // PrintableString 'aaa'\n * // }\n * // }\n */\nKJUR.asn1.DEROctetString = function (params) {\n if (params !== undefined && typeof params.obj !== \"undefined\") {\n var o = KJUR.asn1.ASN1Util.newObject(params.obj);\n params.hex = o.getEncodedHex();\n }\n KJUR.asn1.DEROctetString.superclass.constructor.call(this, params);\n this.hT = \"04\";\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DEROctetString, KJUR.asn1.DERAbstractString);\n// ********************************************************************\n/**\n * class for ASN.1 DER Null\n * @name KJUR.asn1.DERNull\n * @class class for ASN.1 DER Null\n * @extends KJUR.asn1.ASN1Object\n * @description\n * @see KJUR.asn1.ASN1Object - superclass\n */\nKJUR.asn1.DERNull = function () {\n KJUR.asn1.DERNull.superclass.constructor.call(this);\n this.hT = \"05\";\n this.hTLV = \"0500\";\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERNull, KJUR.asn1.ASN1Object);\n// ********************************************************************\n/**\n * class for ASN.1 DER ObjectIdentifier\n * @name KJUR.asn1.DERObjectIdentifier\n * @class class for ASN.1 DER ObjectIdentifier\n * @param {Array} params associative array of parameters (ex. {'oid': '2.5.4.5'})\n * @extends KJUR.asn1.ASN1Object\n * @description\n *
\n * As for argument 'params' for constructor, you can specify one of\n * following properties:\n * \n * - oid - specify initial ASN.1 value(V) by a oid string (ex. 2.5.4.13)
\n * - hex - specify initial ASN.1 value(V) by a hexadecimal string
\n *
\n * NOTE: 'params' can be omitted.\n */\nKJUR.asn1.DERObjectIdentifier = function (params) {\n var itox = function (i) {\n var h = i.toString(16);\n if (h.length == 1)\n h = '0' + h;\n return h;\n };\n var roidtox = function (roid) {\n var h = '';\n var bi = new _jsbn_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(roid, 10);\n var b = bi.toString(2);\n var padLen = 7 - b.length % 7;\n if (padLen == 7)\n padLen = 0;\n var bPad = '';\n for (var i = 0; i < padLen; i++)\n bPad += '0';\n b = bPad + b;\n for (var i = 0; i < b.length - 1; i += 7) {\n var b8 = b.substr(i, 7);\n if (i != b.length - 7)\n b8 = '1' + b8;\n h += itox(parseInt(b8, 2));\n }\n return h;\n };\n KJUR.asn1.DERObjectIdentifier.superclass.constructor.call(this);\n this.hT = \"06\";\n /**\n * set value by a hexadecimal string\n * @name setValueHex\n * @memberOf KJUR.asn1.DERObjectIdentifier#\n * @function\n * @param {String} newHexString hexadecimal value of OID bytes\n */\n this.setValueHex = function (newHexString) {\n this.hTLV = null;\n this.isModified = true;\n this.s = null;\n this.hV = newHexString;\n };\n /**\n * set value by a OID string
\n * @name setValueOidString\n * @memberOf KJUR.asn1.DERObjectIdentifier#\n * @function\n * @param {String} oidString OID string (ex. 2.5.4.13)\n * @example\n * o = new KJUR.asn1.DERObjectIdentifier();\n * o.setValueOidString(\"2.5.4.13\");\n */\n this.setValueOidString = function (oidString) {\n if (!oidString.match(/^[0-9.]+$/)) {\n throw \"malformed oid string: \" + oidString;\n }\n var h = '';\n var a = oidString.split('.');\n var i0 = parseInt(a[0]) * 40 + parseInt(a[1]);\n h += itox(i0);\n a.splice(0, 2);\n for (var i = 0; i < a.length; i++) {\n h += roidtox(a[i]);\n }\n this.hTLV = null;\n this.isModified = true;\n this.s = null;\n this.hV = h;\n };\n /**\n * set value by a OID name\n * @name setValueName\n * @memberOf KJUR.asn1.DERObjectIdentifier#\n * @function\n * @param {String} oidName OID name (ex. 'serverAuth')\n * @since 1.0.1\n * @description\n * OID name shall be defined in 'KJUR.asn1.x509.OID.name2oidList'.\n * Otherwise raise error.\n * @example\n * o = new KJUR.asn1.DERObjectIdentifier();\n * o.setValueName(\"serverAuth\");\n */\n this.setValueName = function (oidName) {\n var oid = KJUR.asn1.x509.OID.name2oid(oidName);\n if (oid !== '') {\n this.setValueOidString(oid);\n }\n else {\n throw \"DERObjectIdentifier oidName undefined: \" + oidName;\n }\n };\n this.getFreshValueHex = function () {\n return this.hV;\n };\n if (params !== undefined) {\n if (typeof params === \"string\") {\n if (params.match(/^[0-2].[0-9.]+$/)) {\n this.setValueOidString(params);\n }\n else {\n this.setValueName(params);\n }\n }\n else if (params.oid !== undefined) {\n this.setValueOidString(params.oid);\n }\n else if (params.hex !== undefined) {\n this.setValueHex(params.hex);\n }\n else if (params.name !== undefined) {\n this.setValueName(params.name);\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERObjectIdentifier, KJUR.asn1.ASN1Object);\n// ********************************************************************\n/**\n * class for ASN.1 DER Enumerated\n * @name KJUR.asn1.DEREnumerated\n * @class class for ASN.1 DER Enumerated\n * @extends KJUR.asn1.ASN1Object\n * @description\n *
\n * As for argument 'params' for constructor, you can specify one of\n * following properties:\n * \n * - int - specify initial ASN.1 value(V) by integer value
\n * - hex - specify initial ASN.1 value(V) by a hexadecimal string
\n *
\n * NOTE: 'params' can be omitted.\n * @example\n * new KJUR.asn1.DEREnumerated(123);\n * new KJUR.asn1.DEREnumerated({int: 123});\n * new KJUR.asn1.DEREnumerated({hex: '1fad'});\n */\nKJUR.asn1.DEREnumerated = function (params) {\n KJUR.asn1.DEREnumerated.superclass.constructor.call(this);\n this.hT = \"0a\";\n /**\n * set value by Tom Wu's BigInteger object\n * @name setByBigInteger\n * @memberOf KJUR.asn1.DEREnumerated#\n * @function\n * @param {BigInteger} bigIntegerValue to set\n */\n this.setByBigInteger = function (bigIntegerValue) {\n this.hTLV = null;\n this.isModified = true;\n this.hV = KJUR.asn1.ASN1Util.bigIntToMinTwosComplementsHex(bigIntegerValue);\n };\n /**\n * set value by integer value\n * @name setByInteger\n * @memberOf KJUR.asn1.DEREnumerated#\n * @function\n * @param {Integer} integer value to set\n */\n this.setByInteger = function (intValue) {\n var bi = new _jsbn_jsbn__WEBPACK_IMPORTED_MODULE_0__.BigInteger(String(intValue), 10);\n this.setByBigInteger(bi);\n };\n /**\n * set value by integer value\n * @name setValueHex\n * @memberOf KJUR.asn1.DEREnumerated#\n * @function\n * @param {String} hexadecimal string of integer value\n * @description\n *
\n * NOTE: Value shall be represented by minimum octet length of\n * two's complement representation.\n */\n this.setValueHex = function (newHexString) {\n this.hV = newHexString;\n };\n this.getFreshValueHex = function () {\n return this.hV;\n };\n if (typeof params != \"undefined\") {\n if (typeof params['int'] != \"undefined\") {\n this.setByInteger(params['int']);\n }\n else if (typeof params == \"number\") {\n this.setByInteger(params);\n }\n else if (typeof params['hex'] != \"undefined\") {\n this.setValueHex(params['hex']);\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DEREnumerated, KJUR.asn1.ASN1Object);\n// ********************************************************************\n/**\n * class for ASN.1 DER UTF8String\n * @name KJUR.asn1.DERUTF8String\n * @class class for ASN.1 DER UTF8String\n * @param {Array} params associative array of parameters (ex. {'str': 'aaa'})\n * @extends KJUR.asn1.DERAbstractString\n * @description\n * @see KJUR.asn1.DERAbstractString - superclass\n */\nKJUR.asn1.DERUTF8String = function (params) {\n KJUR.asn1.DERUTF8String.superclass.constructor.call(this, params);\n this.hT = \"0c\";\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERUTF8String, KJUR.asn1.DERAbstractString);\n// ********************************************************************\n/**\n * class for ASN.1 DER NumericString\n * @name KJUR.asn1.DERNumericString\n * @class class for ASN.1 DER NumericString\n * @param {Array} params associative array of parameters (ex. {'str': 'aaa'})\n * @extends KJUR.asn1.DERAbstractString\n * @description\n * @see KJUR.asn1.DERAbstractString - superclass\n */\nKJUR.asn1.DERNumericString = function (params) {\n KJUR.asn1.DERNumericString.superclass.constructor.call(this, params);\n this.hT = \"12\";\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERNumericString, KJUR.asn1.DERAbstractString);\n// ********************************************************************\n/**\n * class for ASN.1 DER PrintableString\n * @name KJUR.asn1.DERPrintableString\n * @class class for ASN.1 DER PrintableString\n * @param {Array} params associative array of parameters (ex. {'str': 'aaa'})\n * @extends KJUR.asn1.DERAbstractString\n * @description\n * @see KJUR.asn1.DERAbstractString - superclass\n */\nKJUR.asn1.DERPrintableString = function (params) {\n KJUR.asn1.DERPrintableString.superclass.constructor.call(this, params);\n this.hT = \"13\";\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERPrintableString, KJUR.asn1.DERAbstractString);\n// ********************************************************************\n/**\n * class for ASN.1 DER TeletexString\n * @name KJUR.asn1.DERTeletexString\n * @class class for ASN.1 DER TeletexString\n * @param {Array} params associative array of parameters (ex. {'str': 'aaa'})\n * @extends KJUR.asn1.DERAbstractString\n * @description\n * @see KJUR.asn1.DERAbstractString - superclass\n */\nKJUR.asn1.DERTeletexString = function (params) {\n KJUR.asn1.DERTeletexString.superclass.constructor.call(this, params);\n this.hT = \"14\";\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERTeletexString, KJUR.asn1.DERAbstractString);\n// ********************************************************************\n/**\n * class for ASN.1 DER IA5String\n * @name KJUR.asn1.DERIA5String\n * @class class for ASN.1 DER IA5String\n * @param {Array} params associative array of parameters (ex. {'str': 'aaa'})\n * @extends KJUR.asn1.DERAbstractString\n * @description\n * @see KJUR.asn1.DERAbstractString - superclass\n */\nKJUR.asn1.DERIA5String = function (params) {\n KJUR.asn1.DERIA5String.superclass.constructor.call(this, params);\n this.hT = \"16\";\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERIA5String, KJUR.asn1.DERAbstractString);\n// ********************************************************************\n/**\n * class for ASN.1 DER UTCTime\n * @name KJUR.asn1.DERUTCTime\n * @class class for ASN.1 DER UTCTime\n * @param {Array} params associative array of parameters (ex. {'str': '130430235959Z'})\n * @extends KJUR.asn1.DERAbstractTime\n * @description\n *
\n * As for argument 'params' for constructor, you can specify one of\n * following properties:\n * \n * - str - specify initial ASN.1 value(V) by a string (ex.'130430235959Z')
\n * - hex - specify initial ASN.1 value(V) by a hexadecimal string
\n * - date - specify Date object.
\n *
\n * NOTE: 'params' can be omitted.\n * EXAMPLES
\n * @example\n * d1 = new KJUR.asn1.DERUTCTime();\n * d1.setString('130430125959Z');\n *\n * d2 = new KJUR.asn1.DERUTCTime({'str': '130430125959Z'});\n * d3 = new KJUR.asn1.DERUTCTime({'date': new Date(Date.UTC(2015, 0, 31, 0, 0, 0, 0))});\n * d4 = new KJUR.asn1.DERUTCTime('130430125959Z');\n */\nKJUR.asn1.DERUTCTime = function (params) {\n KJUR.asn1.DERUTCTime.superclass.constructor.call(this, params);\n this.hT = \"17\";\n /**\n * set value by a Date object
\n * @name setByDate\n * @memberOf KJUR.asn1.DERUTCTime#\n * @function\n * @param {Date} dateObject Date object to set ASN.1 value(V)\n * @example\n * o = new KJUR.asn1.DERUTCTime();\n * o.setByDate(new Date(\"2016/12/31\"));\n */\n this.setByDate = function (dateObject) {\n this.hTLV = null;\n this.isModified = true;\n this.date = dateObject;\n this.s = this.formatDate(this.date, 'utc');\n this.hV = stohex(this.s);\n };\n this.getFreshValueHex = function () {\n if (typeof this.date == \"undefined\" && typeof this.s == \"undefined\") {\n this.date = new Date();\n this.s = this.formatDate(this.date, 'utc');\n this.hV = stohex(this.s);\n }\n return this.hV;\n };\n if (params !== undefined) {\n if (params.str !== undefined) {\n this.setString(params.str);\n }\n else if (typeof params == \"string\" && params.match(/^[0-9]{12}Z$/)) {\n this.setString(params);\n }\n else if (params.hex !== undefined) {\n this.setStringHex(params.hex);\n }\n else if (params.date !== undefined) {\n this.setByDate(params.date);\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERUTCTime, KJUR.asn1.DERAbstractTime);\n// ********************************************************************\n/**\n * class for ASN.1 DER GeneralizedTime\n * @name KJUR.asn1.DERGeneralizedTime\n * @class class for ASN.1 DER GeneralizedTime\n * @param {Array} params associative array of parameters (ex. {'str': '20130430235959Z'})\n * @property {Boolean} withMillis flag to show milliseconds or not\n * @extends KJUR.asn1.DERAbstractTime\n * @description\n *
\n * As for argument 'params' for constructor, you can specify one of\n * following properties:\n * \n * - str - specify initial ASN.1 value(V) by a string (ex.'20130430235959Z')
\n * - hex - specify initial ASN.1 value(V) by a hexadecimal string
\n * - date - specify Date object.
\n * - millis - specify flag to show milliseconds (from 1.0.6)
\n *
\n * NOTE1: 'params' can be omitted.\n * NOTE2: 'withMillis' property is supported from asn1 1.0.6.\n */\nKJUR.asn1.DERGeneralizedTime = function (params) {\n KJUR.asn1.DERGeneralizedTime.superclass.constructor.call(this, params);\n this.hT = \"18\";\n this.withMillis = false;\n /**\n * set value by a Date object\n * @name setByDate\n * @memberOf KJUR.asn1.DERGeneralizedTime#\n * @function\n * @param {Date} dateObject Date object to set ASN.1 value(V)\n * @example\n * When you specify UTC time, use 'Date.UTC' method like this:
\n * o1 = new DERUTCTime();\n * o1.setByDate(date);\n *\n * date = new Date(Date.UTC(2015, 0, 31, 23, 59, 59, 0)); #2015JAN31 23:59:59\n */\n this.setByDate = function (dateObject) {\n this.hTLV = null;\n this.isModified = true;\n this.date = dateObject;\n this.s = this.formatDate(this.date, 'gen', this.withMillis);\n this.hV = stohex(this.s);\n };\n this.getFreshValueHex = function () {\n if (this.date === undefined && this.s === undefined) {\n this.date = new Date();\n this.s = this.formatDate(this.date, 'gen', this.withMillis);\n this.hV = stohex(this.s);\n }\n return this.hV;\n };\n if (params !== undefined) {\n if (params.str !== undefined) {\n this.setString(params.str);\n }\n else if (typeof params == \"string\" && params.match(/^[0-9]{14}Z$/)) {\n this.setString(params);\n }\n else if (params.hex !== undefined) {\n this.setStringHex(params.hex);\n }\n else if (params.date !== undefined) {\n this.setByDate(params.date);\n }\n if (params.millis === true) {\n this.withMillis = true;\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERGeneralizedTime, KJUR.asn1.DERAbstractTime);\n// ********************************************************************\n/**\n * class for ASN.1 DER Sequence\n * @name KJUR.asn1.DERSequence\n * @class class for ASN.1 DER Sequence\n * @extends KJUR.asn1.DERAbstractStructured\n * @description\n *
\n * As for argument 'params' for constructor, you can specify one of\n * following properties:\n * \n * - array - specify array of ASN1Object to set elements of content
\n *
\n * NOTE: 'params' can be omitted.\n */\nKJUR.asn1.DERSequence = function (params) {\n KJUR.asn1.DERSequence.superclass.constructor.call(this, params);\n this.hT = \"30\";\n this.getFreshValueHex = function () {\n var h = '';\n for (var i = 0; i < this.asn1Array.length; i++) {\n var asn1Obj = this.asn1Array[i];\n h += asn1Obj.getEncodedHex();\n }\n this.hV = h;\n return this.hV;\n };\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERSequence, KJUR.asn1.DERAbstractStructured);\n// ********************************************************************\n/**\n * class for ASN.1 DER Set\n * @name KJUR.asn1.DERSet\n * @class class for ASN.1 DER Set\n * @extends KJUR.asn1.DERAbstractStructured\n * @description\n *
\n * As for argument 'params' for constructor, you can specify one of\n * following properties:\n * \n * - array - specify array of ASN1Object to set elements of content
\n * - sortflag - flag for sort (default: true). ASN.1 BER is not sorted in 'SET OF'.
\n *
\n * NOTE1: 'params' can be omitted.
\n * NOTE2: sortflag is supported since 1.0.5.\n */\nKJUR.asn1.DERSet = function (params) {\n KJUR.asn1.DERSet.superclass.constructor.call(this, params);\n this.hT = \"31\";\n this.sortFlag = true; // item shall be sorted only in ASN.1 DER\n this.getFreshValueHex = function () {\n var a = new Array();\n for (var i = 0; i < this.asn1Array.length; i++) {\n var asn1Obj = this.asn1Array[i];\n a.push(asn1Obj.getEncodedHex());\n }\n if (this.sortFlag == true)\n a.sort();\n this.hV = a.join('');\n return this.hV;\n };\n if (typeof params != \"undefined\") {\n if (typeof params.sortflag != \"undefined\" &&\n params.sortflag == false)\n this.sortFlag = false;\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERSet, KJUR.asn1.DERAbstractStructured);\n// ********************************************************************\n/**\n * class for ASN.1 DER TaggedObject\n * @name KJUR.asn1.DERTaggedObject\n * @class class for ASN.1 DER TaggedObject\n * @extends KJUR.asn1.ASN1Object\n * @description\n *
\n * Parameter 'tagNoNex' is ASN.1 tag(T) value for this object.\n * For example, if you find '[1]' tag in a ASN.1 dump,\n * 'tagNoHex' will be 'a1'.\n *
\n * As for optional argument 'params' for constructor, you can specify *ANY* of\n * following properties:\n * \n * - explicit - specify true if this is explicit tag otherwise false\n * (default is 'true').
\n * - tag - specify tag (default is 'a0' which means [0])
\n * - obj - specify ASN1Object which is tagged
\n *
\n * @example\n * d1 = new KJUR.asn1.DERUTF8String({'str':'a'});\n * d2 = new KJUR.asn1.DERTaggedObject({'obj': d1});\n * hex = d2.getEncodedHex();\n */\nKJUR.asn1.DERTaggedObject = function (params) {\n KJUR.asn1.DERTaggedObject.superclass.constructor.call(this);\n this.hT = \"a0\";\n this.hV = '';\n this.isExplicit = true;\n this.asn1Object = null;\n /**\n * set value by an ASN1Object\n * @name setString\n * @memberOf KJUR.asn1.DERTaggedObject#\n * @function\n * @param {Boolean} isExplicitFlag flag for explicit/implicit tag\n * @param {Integer} tagNoHex hexadecimal string of ASN.1 tag\n * @param {ASN1Object} asn1Object ASN.1 to encapsulate\n */\n this.setASN1Object = function (isExplicitFlag, tagNoHex, asn1Object) {\n this.hT = tagNoHex;\n this.isExplicit = isExplicitFlag;\n this.asn1Object = asn1Object;\n if (this.isExplicit) {\n this.hV = this.asn1Object.getEncodedHex();\n this.hTLV = null;\n this.isModified = true;\n }\n else {\n this.hV = null;\n this.hTLV = asn1Object.getEncodedHex();\n this.hTLV = this.hTLV.replace(/^../, tagNoHex);\n this.isModified = false;\n }\n };\n this.getFreshValueHex = function () {\n return this.hV;\n };\n if (typeof params != \"undefined\") {\n if (typeof params['tag'] != \"undefined\") {\n this.hT = params['tag'];\n }\n if (typeof params['explicit'] != \"undefined\") {\n this.isExplicit = params['explicit'];\n }\n if (typeof params['obj'] != \"undefined\") {\n this.asn1Object = params['obj'];\n this.setASN1Object(this.isExplicit, this.hT, this.asn1Object);\n }\n }\n};\n_yahoo__WEBPACK_IMPORTED_MODULE_1__.YAHOO.lang.extend(KJUR.asn1.DERTaggedObject, KJUR.asn1.ASN1Object);\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/jsrsasign/asn1-1.0.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./lib/lib/jsrsasign/yahoo.js":
+ /*!************************************!*\
+ !*** ./lib/lib/jsrsasign/yahoo.js ***!
+ \************************************/
+ /***/
+ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
+
+ "use strict";
+ eval("__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ \"YAHOO\": () => (/* binding */ YAHOO)\n/* harmony export */ });\n/*!\nCopyright (c) 2011, Yahoo! Inc. All rights reserved.\nCode licensed under the BSD License:\nhttp://developer.yahoo.com/yui/license.html\nversion: 2.9.0\n*/\nvar YAHOO = {};\nYAHOO.lang = {\n /**\n * Utility to set up the prototype, constructor and superclass properties to\n * support an inheritance strategy that can chain constructors and methods.\n * Static members will not be inherited.\n *\n * @method extend\n * @static\n * @param {Function} subc the object to modify\n * @param {Function} superc the object to inherit\n * @param {Object} overrides additional properties/methods to add to the\n * subclass prototype. These will override the\n * matching items obtained from the superclass\n * if present.\n */\n extend: function (subc, superc, overrides) {\n if (!superc || !subc) {\n throw new Error(\"YAHOO.lang.extend failed, please check that \" +\n \"all dependencies are included.\");\n }\n var F = function () { };\n F.prototype = superc.prototype;\n subc.prototype = new F();\n subc.prototype.constructor = subc;\n subc.superclass = superc.prototype;\n if (superc.prototype.constructor == Object.prototype.constructor) {\n superc.prototype.constructor = superc;\n }\n if (overrides) {\n var i;\n for (i in overrides) {\n subc.prototype[i] = overrides[i];\n }\n /*\n * IE will not enumerate native functions in a derived object even if the\n * function was overridden. This is a workaround for specific functions\n * we care about on the Object prototype.\n * @property _IEEnumFix\n * @param {Function} r the object to receive the augmentation\n * @param {Function} s the object that supplies the properties to augment\n * @static\n * @private\n */\n var _IEEnumFix = function () { }, ADD = [\"toString\", \"valueOf\"];\n try {\n if (/MSIE/.test(navigator.userAgent)) {\n _IEEnumFix = function (r, s) {\n for (i = 0; i < ADD.length; i = i + 1) {\n var fname = ADD[i], f = s[fname];\n if (typeof f === 'function' && f != Object.prototype[fname]) {\n r[fname] = f;\n }\n }\n };\n }\n }\n catch (ex) { }\n ;\n _IEEnumFix(subc.prototype, overrides);\n }\n }\n};\n\n\n//# sourceURL=webpack://JSEncrypt/./lib/lib/jsrsasign/yahoo.js?");
+
+ /***/
+ }),
+
+ /***/
+ "./node_modules/process/browser.js":
+ /*!*****************************************!*\
+ !*** ./node_modules/process/browser.js ***!
+ \*****************************************/
+ /***/
+ ((module) => {
+
+ eval("// shim for using process in browser\nvar process = module.exports = {};\n\n// cached from whatever global is present so that test runners that stub it\n// don't break things. But we need to wrap it in a try catch in case it is\n// wrapped in strict mode code which doesn't define any globals. It's inside a\n// function because try/catches deoptimize in certain engines.\n\nvar cachedSetTimeout;\nvar cachedClearTimeout;\n\nfunction defaultSetTimout() {\n throw new Error('setTimeout has not been defined');\n}\nfunction defaultClearTimeout () {\n throw new Error('clearTimeout has not been defined');\n}\n(function () {\n try {\n if (typeof setTimeout === 'function') {\n cachedSetTimeout = setTimeout;\n } else {\n cachedSetTimeout = defaultSetTimout;\n }\n } catch (e) {\n cachedSetTimeout = defaultSetTimout;\n }\n try {\n if (typeof clearTimeout === 'function') {\n cachedClearTimeout = clearTimeout;\n } else {\n cachedClearTimeout = defaultClearTimeout;\n }\n } catch (e) {\n cachedClearTimeout = defaultClearTimeout;\n }\n} ())\nfunction runTimeout(fun) {\n if (cachedSetTimeout === setTimeout) {\n //normal enviroments in sane situations\n return setTimeout(fun, 0);\n }\n // if setTimeout wasn't available but was latter defined\n if ((cachedSetTimeout === defaultSetTimout || !cachedSetTimeout) && setTimeout) {\n cachedSetTimeout = setTimeout;\n return setTimeout(fun, 0);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedSetTimeout(fun, 0);\n } catch(e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedSetTimeout.call(null, fun, 0);\n } catch(e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error\n return cachedSetTimeout.call(this, fun, 0);\n }\n }\n\n\n}\nfunction runClearTimeout(marker) {\n if (cachedClearTimeout === clearTimeout) {\n //normal enviroments in sane situations\n return clearTimeout(marker);\n }\n // if clearTimeout wasn't available but was latter defined\n if ((cachedClearTimeout === defaultClearTimeout || !cachedClearTimeout) && clearTimeout) {\n cachedClearTimeout = clearTimeout;\n return clearTimeout(marker);\n }\n try {\n // when when somebody has screwed with setTimeout but no I.E. maddness\n return cachedClearTimeout(marker);\n } catch (e){\n try {\n // When we are in I.E. but the script has been evaled so I.E. doesn't trust the global object when called normally\n return cachedClearTimeout.call(null, marker);\n } catch (e){\n // same as above but when it's a version of I.E. that must have the global object for 'this', hopfully our context correct otherwise it will throw a global error.\n // Some versions of I.E. have different rules for clearTimeout vs setTimeout\n return cachedClearTimeout.call(this, marker);\n }\n }\n\n\n\n}\nvar queue = [];\nvar draining = false;\nvar currentQueue;\nvar queueIndex = -1;\n\nfunction cleanUpNextTick() {\n if (!draining || !currentQueue) {\n return;\n }\n draining = false;\n if (currentQueue.length) {\n queue = currentQueue.concat(queue);\n } else {\n queueIndex = -1;\n }\n if (queue.length) {\n drainQueue();\n }\n}\n\nfunction drainQueue() {\n if (draining) {\n return;\n }\n var timeout = runTimeout(cleanUpNextTick);\n draining = true;\n\n var len = queue.length;\n while(len) {\n currentQueue = queue;\n queue = [];\n while (++queueIndex < len) {\n if (currentQueue) {\n currentQueue[queueIndex].run();\n }\n }\n queueIndex = -1;\n len = queue.length;\n }\n currentQueue = null;\n draining = false;\n runClearTimeout(timeout);\n}\n\nprocess.nextTick = function (fun) {\n var args = new Array(arguments.length - 1);\n if (arguments.length > 1) {\n for (var i = 1; i < arguments.length; i++) {\n args[i - 1] = arguments[i];\n }\n }\n queue.push(new Item(fun, args));\n if (queue.length === 1 && !draining) {\n runTimeout(drainQueue);\n }\n};\n\n// v8 likes predictible objects\nfunction Item(fun, array) {\n this.fun = fun;\n this.array = array;\n}\nItem.prototype.run = function () {\n this.fun.apply(null, this.array);\n};\nprocess.title = 'browser';\nprocess.browser = true;\nprocess.env = {};\nprocess.argv = [];\nprocess.version = ''; // empty string to avoid regexp issues\nprocess.versions = {};\n\nfunction noop() {}\n\nprocess.on = noop;\nprocess.addListener = noop;\nprocess.once = noop;\nprocess.off = noop;\nprocess.removeListener = noop;\nprocess.removeAllListeners = noop;\nprocess.emit = noop;\nprocess.prependListener = noop;\nprocess.prependOnceListener = noop;\n\nprocess.listeners = function (name) { return [] }\n\nprocess.binding = function (name) {\n throw new Error('process.binding is not supported');\n};\n\nprocess.cwd = function () { return '/' };\nprocess.chdir = function (dir) {\n throw new Error('process.chdir is not supported');\n};\nprocess.umask = function() { return 0; };\n\n\n//# sourceURL=webpack://JSEncrypt/./node_modules/process/browser.js?");
+
+ /***/
+ })
+
+ /******/
+ });
+ /************************************************************************/
+ /******/ // The module cache
+ /******/
+ var __webpack_module_cache__ = {};
+ /******/
+ /******/ // The require function
+ /******/
+ function __webpack_require__(moduleId) {
+ /******/ // Check if module is in cache
+ /******/
+ var cachedModule = __webpack_module_cache__[moduleId];
+ /******/
+ if (cachedModule !== undefined) {
+ /******/
+ return cachedModule.exports;
+ /******/
+ }
+ /******/ // Create a new module (and put it into the cache)
+ /******/
+ var module = __webpack_module_cache__[moduleId] = {
+ /******/ // no module.id needed
+ /******/ // no module.loaded needed
+ /******/
+ exports: {}
+ /******/
+ };
+ /******/
+ /******/ // Execute the module function
+ /******/
+ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
+ /******/
+ /******/ // Return the exports of the module
+ /******/
+ return module.exports;
+ /******/
+ }
+ /******/
+ /************************************************************************/
+ /******/
+ /* webpack/runtime/define property getters */
+ /******/
+ (() => {
+ /******/ // define getter functions for harmony exports
+ /******/
+ __webpack_require__.d = (exports, definition) => {
+ /******/
+ for (var key in definition) {
+ /******/
+ if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
+ /******/
+ Object.defineProperty(exports, key, {
+ enumerable: true,
+ get: definition[key]
+ });
+ /******/
+ }
+ /******/
+ }
+ /******/
+ };
+ /******/
+ })();
+ /******/
+ /******/
+ /* webpack/runtime/hasOwnProperty shorthand */
+ /******/
+ (() => {
+ /******/
+ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
+ /******/
+ })();
+ /******/
+ /******/
+ /* webpack/runtime/make namespace object */
+ /******/
+ (() => {
+ /******/ // define __esModule on exports
+ /******/
+ __webpack_require__.r = (exports) => {
+ /******/
+ if (typeof Symbol !== 'undefined' && Symbol.toStringTag) {
+ /******/
+ Object.defineProperty(exports, Symbol.toStringTag, {
+ value: 'Module'
+ });
+ /******/
+ }
+ /******/
+ Object.defineProperty(exports, '__esModule', {
+ value: true
+ });
+ /******/
+ };
+ /******/
+ })();
+ /******/
+ /************************************************************************/
+ /******/
+ /******/ // startup
+ /******/ // Load entry module and return exports
+ /******/ // This entry module can't be inlined because the eval devtool is used.
+ /******/
+ var __webpack_exports__ = __webpack_require__("./lib/index.js");
+ /******/
+ __webpack_exports__ = __webpack_exports__["default"];
+ /******/
+ /******/
+ return __webpack_exports__;
+ /******/
+ })();
+});
\ No newline at end of file
diff --git a/JS/json5.js b/JS/json5.js
new file mode 100644
index 0000000..7949f11
--- /dev/null
+++ b/JS/json5.js
@@ -0,0 +1,1809 @@
+(function(global, factory) {
+ typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
+ typeof define === 'function' && define.amd ? define(factory) :
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.JSON5 = factory());
+}(this, (function() {
+ 'use strict';
+
+ function createCommonjsModule(fn, module) {
+ return module = {
+ exports: {}
+ }, fn(module, module.exports), module.exports;
+ }
+
+ var _global = createCommonjsModule(function(module) {
+ // https://github.com/zloirock/core-js/issues/86#issuecomment-115759028
+ var global = module.exports = typeof window != 'undefined' && window.Math == Math ?
+ window : typeof self != 'undefined' && self.Math == Math ? self
+ // eslint-disable-next-line no-new-func
+ :
+ Function('return this')();
+ if (typeof __g == 'number') {
+ __g = global;
+ } // eslint-disable-line no-undef
+ });
+
+ var _core = createCommonjsModule(function(module) {
+ var core = module.exports = {
+ version: '2.6.5'
+ };
+ if (typeof __e == 'number') {
+ __e = core;
+ } // eslint-disable-line no-undef
+ });
+ var _core_1 = _core.version;
+
+ var _isObject = function(it) {
+ return typeof it === 'object' ? it !== null : typeof it === 'function';
+ };
+
+ var _anObject = function(it) {
+ if (!_isObject(it)) {
+ throw TypeError(it + ' is not an object!');
+ }
+ return it;
+ };
+
+ var _fails = function(exec) {
+ try {
+ return !!exec();
+ } catch (e) {
+ return true;
+ }
+ };
+
+ // Thank's IE8 for his funny defineProperty
+ var _descriptors = !_fails(function() {
+ return Object.defineProperty({}, 'a', {
+ get: function() {
+ return 7;
+ }
+ }).a != 7;
+ });
+
+ var document = _global.document;
+ // typeof document.createElement is 'object' in old IE
+ var is = _isObject(document) && _isObject(document.createElement);
+ var _domCreate = function(it) {
+ return is ? document.createElement(it) : {};
+ };
+
+ var _ie8DomDefine = !_descriptors && !_fails(function() {
+ return Object.defineProperty(_domCreate('div'), 'a', {
+ get: function() {
+ return 7;
+ }
+ }).a != 7;
+ });
+
+ // 7.1.1 ToPrimitive(input [, PreferredType])
+
+ // instead of the ES6 spec version, we didn't implement @@toPrimitive case
+ // and the second argument - flag - preferred type is a string
+ var _toPrimitive = function(it, S) {
+ if (!_isObject(it)) {
+ return it;
+ }
+ var fn, val;
+ if (S && typeof(fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) {
+ return val;
+ }
+ if (typeof(fn = it.valueOf) == 'function' && !_isObject(val = fn.call(it))) {
+ return val;
+ }
+ if (!S && typeof(fn = it.toString) == 'function' && !_isObject(val = fn.call(it))) {
+ return val;
+ }
+ throw TypeError("Can't convert object to primitive value");
+ };
+
+ var dP = Object.defineProperty;
+
+ var f = _descriptors ? Object.defineProperty : function defineProperty(O, P, Attributes) {
+ _anObject(O);
+ P = _toPrimitive(P, true);
+ _anObject(Attributes);
+ if (_ie8DomDefine) {
+ try {
+ return dP(O, P, Attributes);
+ } catch (e) {
+ /* empty */ }
+ }
+ if ('get' in Attributes || 'set' in Attributes) {
+ throw TypeError('Accessors not supported!');
+ }
+ if ('value' in Attributes) {
+ O[P] = Attributes.value;
+ }
+ return O;
+ };
+
+ var _objectDp = {
+ f: f
+ };
+
+ var _propertyDesc = function(bitmap, value) {
+ return {
+ enumerable: !(bitmap & 1),
+ configurable: !(bitmap & 2),
+ writable: !(bitmap & 4),
+ value: value
+ };
+ };
+
+ var _hide = _descriptors ? function(object, key, value) {
+ return _objectDp.f(object, key, _propertyDesc(1, value));
+ } : function(object, key, value) {
+ object[key] = value;
+ return object;
+ };
+
+ var hasOwnProperty = {}.hasOwnProperty;
+ var _has = function(it, key) {
+ return hasOwnProperty.call(it, key);
+ };
+
+ var id = 0;
+ var px = Math.random();
+ var _uid = function(key) {
+ return 'Symbol('.concat(key === undefined ? '' : key, ')_', (++id + px).toString(36));
+ };
+
+ var _library = false;
+
+ var _shared = createCommonjsModule(function(module) {
+ var SHARED = '__core-js_shared__';
+ var store = _global[SHARED] || (_global[SHARED] = {});
+
+ (module.exports = function(key, value) {
+ return store[key] || (store[key] = value !== undefined ? value : {});
+ })('versions', []).push({
+ version: _core.version,
+ mode: _library ? 'pure' : 'global',
+ copyright: '© 2019 Denis Pushkarev (zloirock.ru)'
+ });
+ });
+
+ var _functionToString = _shared('native-function-to-string', Function.toString);
+
+ var _redefine = createCommonjsModule(function(module) {
+ var SRC = _uid('src');
+
+ var TO_STRING = 'toString';
+ var TPL = ('' + _functionToString).split(TO_STRING);
+
+ _core.inspectSource = function(it) {
+ return _functionToString.call(it);
+ };
+
+ (module.exports = function(O, key, val, safe) {
+ var isFunction = typeof val == 'function';
+ if (isFunction) {
+ _has(val, 'name') || _hide(val, 'name', key);
+ }
+ if (O[key] === val) {
+ return;
+ }
+ if (isFunction) {
+ _has(val, SRC) || _hide(val, SRC, O[key] ? '' + O[key] : TPL.join(String(key)));
+ }
+ if (O === _global) {
+ O[key] = val;
+ } else if (!safe) {
+ delete O[key];
+ _hide(O, key, val);
+ } else if (O[key]) {
+ O[key] = val;
+ } else {
+ _hide(O, key, val);
+ }
+ // add fake Function#toString for correct work wrapped methods / constructors with methods like LoDash isNative
+ })(Function.prototype, TO_STRING, function toString() {
+ return typeof this == 'function' && this[SRC] || _functionToString.call(this);
+ });
+ });
+
+ var _aFunction = function(it) {
+ if (typeof it != 'function') {
+ throw TypeError(it + ' is not a function!');
+ }
+ return it;
+ };
+
+ // optional / simple context binding
+
+ var _ctx = function(fn, that, length) {
+ _aFunction(fn);
+ if (that === undefined) {
+ return fn;
+ }
+ switch (length) {
+ case 1:
+ return function(a) {
+ return fn.call(that, a);
+ };
+ case 2:
+ return function(a, b) {
+ return fn.call(that, a, b);
+ };
+ case 3:
+ return function(a, b, c) {
+ return fn.call(that, a, b, c);
+ };
+ }
+ return function( /* ...args */ ) {
+ return fn.apply(that, arguments);
+ };
+ };
+
+ var PROTOTYPE = 'prototype';
+
+ var $export = function(type, name, source) {
+ var IS_FORCED = type & $export.F;
+ var IS_GLOBAL = type & $export.G;
+ var IS_STATIC = type & $export.S;
+ var IS_PROTO = type & $export.P;
+ var IS_BIND = type & $export.B;
+ var target = IS_GLOBAL ? _global : IS_STATIC ? _global[name] || (_global[name] = {}) : (_global[name] || {})[PROTOTYPE];
+ var exports = IS_GLOBAL ? _core : _core[name] || (_core[name] = {});
+ var expProto = exports[PROTOTYPE] || (exports[PROTOTYPE] = {});
+ var key, own, out, exp;
+ if (IS_GLOBAL) {
+ source = name;
+ }
+ for (key in source) {
+ // contains in native
+ own = !IS_FORCED && target && target[key] !== undefined;
+ // export native or passed
+ out = (own ? target : source)[key];
+ // bind timers to global for call from export context
+ exp = IS_BIND && own ? _ctx(out, _global) : IS_PROTO && typeof out == 'function' ? _ctx(Function.call, out) : out;
+ // extend global
+ if (target) {
+ _redefine(target, key, out, type & $export.U);
+ }
+ // export
+ if (exports[key] != out) {
+ _hide(exports, key, exp);
+ }
+ if (IS_PROTO && expProto[key] != out) {
+ expProto[key] = out;
+ }
+ }
+ };
+ _global.core = _core;
+ // type bitmap
+ $export.F = 1; // forced
+ $export.G = 2; // global
+ $export.S = 4; // static
+ $export.P = 8; // proto
+ $export.B = 16; // bind
+ $export.W = 32; // wrap
+ $export.U = 64; // safe
+ $export.R = 128; // real proto method for `library`
+ var _export = $export;
+
+ // 7.1.4 ToInteger
+ var ceil = Math.ceil;
+ var floor = Math.floor;
+ var _toInteger = function(it) {
+ return isNaN(it = +it) ? 0 : (it > 0 ? floor : ceil)(it);
+ };
+
+ // 7.2.1 RequireObjectCoercible(argument)
+ var _defined = function(it) {
+ if (it == undefined) {
+ throw TypeError("Can't call method on " + it);
+ }
+ return it;
+ };
+
+ // true -> String#at
+ // false -> String#codePointAt
+ var _stringAt = function(TO_STRING) {
+ return function(that, pos) {
+ var s = String(_defined(that));
+ var i = _toInteger(pos);
+ var l = s.length;
+ var a, b;
+ if (i < 0 || i >= l) {
+ return TO_STRING ? '' : undefined;
+ }
+ a = s.charCodeAt(i);
+ return a < 0xd800 || a > 0xdbff || i + 1 === l || (b = s.charCodeAt(i + 1)) < 0xdc00 || b > 0xdfff ?
+ TO_STRING ? s.charAt(i) : a :
+ TO_STRING ? s.slice(i, i + 2) : (a - 0xd800 << 10) + (b - 0xdc00) + 0x10000;
+ };
+ };
+
+ var $at = _stringAt(false);
+ _export(_export.P, 'String', {
+ // 21.1.3.3 String.prototype.codePointAt(pos)
+ codePointAt: function codePointAt(pos) {
+ return $at(this, pos);
+ }
+ });
+
+ var codePointAt = _core.String.codePointAt;
+
+ var max = Math.max;
+ var min = Math.min;
+ var _toAbsoluteIndex = function(index, length) {
+ index = _toInteger(index);
+ return index < 0 ? max(index + length, 0) : min(index, length);
+ };
+
+ var fromCharCode = String.fromCharCode;
+ var $fromCodePoint = String.fromCodePoint;
+
+ // length should be 1, old FF problem
+ _export(_export.S + _export.F * (!!$fromCodePoint && $fromCodePoint.length != 1), 'String', {
+ // 21.1.2.2 String.fromCodePoint(...codePoints)
+ fromCodePoint: function fromCodePoint(x) {
+ var arguments$1 = arguments;
+ // eslint-disable-line no-unused-vars
+ var res = [];
+ var aLen = arguments.length;
+ var i = 0;
+ var code;
+ while (aLen > i) {
+ code = +arguments$1[i++];
+ if (_toAbsoluteIndex(code, 0x10ffff) !== code) {
+ throw RangeError(code + ' is not a valid code point');
+ }
+ res.push(code < 0x10000 ?
+ fromCharCode(code) :
+ fromCharCode(((code -= 0x10000) >> 10) + 0xd800, code % 0x400 + 0xdc00)
+ );
+ }
+ return res.join('');
+ }
+ });
+
+ var fromCodePoint = _core.String.fromCodePoint;
+
+ // This is a generated file. Do not edit.
+ var Space_Separator = /[\u1680\u2000-\u200A\u202F\u205F\u3000]/;
+ var ID_Start = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/;
+ var ID_Continue = /[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u09FC\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9-\u0AFF\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D00-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF9\u1D00-\u1DF9\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDDFD\uDE80-\uDE9C\uDEA0-\uDED0\uDEE0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF7A\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00-\uDE03\uDE05\uDE06\uDE0C-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE38-\uDE3A\uDE3F\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE6\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\uDDCC\uDDD0-\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE37\uDE3E\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDE00-\uDE3E\uDE47\uDE50-\uDE83\uDE86-\uDE99\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD47\uDD50-\uDD59]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDED0-\uDEED\uDEF0-\uDEF4\uDF00-\uDF36\uDF40-\uDF43\uDF50-\uDF59\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\uDD50-\uDD59]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/;
+
+ var unicode = {
+ Space_Separator: Space_Separator,
+ ID_Start: ID_Start,
+ ID_Continue: ID_Continue
+ };
+
+ var util = {
+ isSpaceSeparator: function isSpaceSeparator(c) {
+ return typeof c === 'string' && unicode.Space_Separator.test(c)
+ },
+
+ isIdStartChar: function isIdStartChar(c) {
+ return typeof c === 'string' && (
+ (c >= 'a' && c <= 'z') ||
+ (c >= 'A' && c <= 'Z') ||
+ (c === '$') || (c === '_') ||
+ unicode.ID_Start.test(c)
+ )
+ },
+
+ isIdContinueChar: function isIdContinueChar(c) {
+ return typeof c === 'string' && (
+ (c >= 'a' && c <= 'z') ||
+ (c >= 'A' && c <= 'Z') ||
+ (c >= '0' && c <= '9') ||
+ (c === '$') || (c === '_') ||
+ (c === '\u200C') || (c === '\u200D') ||
+ unicode.ID_Continue.test(c)
+ )
+ },
+
+ isDigit: function isDigit(c) {
+ return typeof c === 'string' && /[0-9]/.test(c)
+ },
+
+ isHexDigit: function isHexDigit(c) {
+ return typeof c === 'string' && /[0-9A-Fa-f]/.test(c)
+ },
+ };
+
+ var source;
+ var parseState;
+ var stack;
+ var pos;
+ var line;
+ var column;
+ var token;
+ var key;
+ var root;
+
+ var parse = function parse(text, reviver) {
+ source = String(text);
+ parseState = 'start';
+ stack = [];
+ pos = 0;
+ line = 1;
+ column = 0;
+ token = undefined;
+ key = undefined;
+ root = undefined;
+
+ do {
+ token = lex();
+
+ // This code is unreachable.
+ // if (!parseStates[parseState]) {
+ // throw invalidParseState()
+ // }
+
+ parseStates[parseState]();
+ } while (token.type !== 'eof')
+
+ if (typeof reviver === 'function') {
+ return internalize({
+ '': root
+ }, '', reviver)
+ }
+
+ return root
+ };
+
+ function internalize(holder, name, reviver) {
+ var value = holder[name];
+ if (value != null && typeof value === 'object') {
+ if (Array.isArray(value)) {
+ for (var i = 0; i < value.length; i++) {
+ var key = String(i);
+ var replacement = internalize(value, key, reviver);
+ if (replacement === undefined) {
+ delete value[key];
+ } else {
+ Object.defineProperty(value, key, {
+ value: replacement,
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ });
+ }
+ }
+ } else {
+ for (var key$1 in value) {
+ var replacement$1 = internalize(value, key$1, reviver);
+ if (replacement$1 === undefined) {
+ delete value[key$1];
+ } else {
+ Object.defineProperty(value, key$1, {
+ value: replacement$1,
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ });
+ }
+ }
+ }
+ }
+
+ return reviver.call(holder, name, value)
+ }
+
+ var lexState;
+ var buffer;
+ var doubleQuote;
+ var sign;
+ var c;
+
+ function lex() {
+ lexState = 'default';
+ buffer = '';
+ doubleQuote = false;
+ sign = 1;
+
+ for (;;) {
+ c = peek();
+
+ // This code is unreachable.
+ // if (!lexStates[lexState]) {
+ // throw invalidLexState(lexState)
+ // }
+
+ var token = lexStates[lexState]();
+ if (token) {
+ return token
+ }
+ }
+ }
+
+ function peek() {
+ if (source[pos]) {
+ return String.fromCodePoint(source.codePointAt(pos))
+ }
+ }
+
+ function read() {
+ var c = peek();
+
+ if (c === '\n') {
+ line++;
+ column = 0;
+ } else if (c) {
+ column += c.length;
+ } else {
+ column++;
+ }
+
+ if (c) {
+ pos += c.length;
+ }
+
+ return c
+ }
+
+ var lexStates = {
+ default: function default$1() {
+ switch (c) {
+ case '\t':
+ case '\v':
+ case '\f':
+ case ' ':
+ case '\u00A0':
+ case '\uFEFF':
+ case '\n':
+ case '\r':
+ case '\u2028':
+ case '\u2029':
+ read();
+ return
+
+ case '/':
+ read();
+ lexState = 'comment';
+ return
+
+ case undefined:
+ read();
+ return newToken('eof')
+ }
+
+ if (util.isSpaceSeparator(c)) {
+ read();
+ return
+ }
+
+ // This code is unreachable.
+ // if (!lexStates[parseState]) {
+ // throw invalidLexState(parseState)
+ // }
+
+ return lexStates[parseState]()
+ },
+
+ comment: function comment() {
+ switch (c) {
+ case '*':
+ read();
+ lexState = 'multiLineComment';
+ return
+
+ case '/':
+ read();
+ lexState = 'singleLineComment';
+ return
+ }
+
+ throw invalidChar(read())
+ },
+
+ multiLineComment: function multiLineComment() {
+ switch (c) {
+ case '*':
+ read();
+ lexState = 'multiLineCommentAsterisk';
+ return
+
+ case undefined:
+ throw invalidChar(read())
+ }
+
+ read();
+ },
+
+ multiLineCommentAsterisk: function multiLineCommentAsterisk() {
+ switch (c) {
+ case '*':
+ read();
+ return
+
+ case '/':
+ read();
+ lexState = 'default';
+ return
+
+ case undefined:
+ throw invalidChar(read())
+ }
+
+ read();
+ lexState = 'multiLineComment';
+ },
+
+ singleLineComment: function singleLineComment() {
+ switch (c) {
+ case '\n':
+ case '\r':
+ case '\u2028':
+ case '\u2029':
+ read();
+ lexState = 'default';
+ return
+
+ case undefined:
+ read();
+ return newToken('eof')
+ }
+
+ read();
+ },
+
+ value: function value() {
+ switch (c) {
+ case '{':
+ case '[':
+ return newToken('punctuator', read())
+
+ case 'n':
+ read();
+ literal('ull');
+ return newToken('null', null)
+
+ case 't':
+ read();
+ literal('rue');
+ return newToken('boolean', true)
+
+ case 'f':
+ read();
+ literal('alse');
+ return newToken('boolean', false)
+
+ case '-':
+ case '+':
+ if (read() === '-') {
+ sign = -1;
+ }
+
+ lexState = 'sign';
+ return
+
+ case '.':
+ buffer = read();
+ lexState = 'decimalPointLeading';
+ return
+
+ case '0':
+ buffer = read();
+ lexState = 'zero';
+ return
+
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
+ buffer = read();
+ lexState = 'decimalInteger';
+ return
+
+ case 'I':
+ read();
+ literal('nfinity');
+ return newToken('numeric', Infinity)
+
+ case 'N':
+ read();
+ literal('aN');
+ return newToken('numeric', NaN)
+
+ case '"':
+ case "'":
+ doubleQuote = (read() === '"');
+ buffer = '';
+ lexState = 'string';
+ return
+ }
+
+ throw invalidChar(read())
+ },
+
+ identifierNameStartEscape: function identifierNameStartEscape() {
+ if (c !== 'u') {
+ throw invalidChar(read())
+ }
+
+ read();
+ var u = unicodeEscape();
+ switch (u) {
+ case '$':
+ case '_':
+ break
+
+ default:
+ if (!util.isIdStartChar(u)) {
+ throw invalidIdentifier()
+ }
+
+ break
+ }
+
+ buffer += u;
+ lexState = 'identifierName';
+ },
+
+ identifierName: function identifierName() {
+ switch (c) {
+ case '$':
+ case '_':
+ case '\u200C':
+ case '\u200D':
+ buffer += read();
+ return
+
+ case '\\':
+ read();
+ lexState = 'identifierNameEscape';
+ return
+ }
+
+ if (util.isIdContinueChar(c)) {
+ buffer += read();
+ return
+ }
+
+ return newToken('identifier', buffer)
+ },
+
+ identifierNameEscape: function identifierNameEscape() {
+ if (c !== 'u') {
+ throw invalidChar(read())
+ }
+
+ read();
+ var u = unicodeEscape();
+ switch (u) {
+ case '$':
+ case '_':
+ case '\u200C':
+ case '\u200D':
+ break
+
+ default:
+ if (!util.isIdContinueChar(u)) {
+ throw invalidIdentifier()
+ }
+
+ break
+ }
+
+ buffer += u;
+ lexState = 'identifierName';
+ },
+
+ sign: function sign$1() {
+ switch (c) {
+ case '.':
+ buffer = read();
+ lexState = 'decimalPointLeading';
+ return
+
+ case '0':
+ buffer = read();
+ lexState = 'zero';
+ return
+
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
+ buffer = read();
+ lexState = 'decimalInteger';
+ return
+
+ case 'I':
+ read();
+ literal('nfinity');
+ return newToken('numeric', sign * Infinity)
+
+ case 'N':
+ read();
+ literal('aN');
+ return newToken('numeric', NaN)
+ }
+
+ throw invalidChar(read())
+ },
+
+ zero: function zero() {
+ switch (c) {
+ case '.':
+ buffer += read();
+ lexState = 'decimalPoint';
+ return
+
+ case 'e':
+ case 'E':
+ buffer += read();
+ lexState = 'decimalExponent';
+ return
+
+ case 'x':
+ case 'X':
+ buffer += read();
+ lexState = 'hexadecimal';
+ return
+ }
+
+ return newToken('numeric', sign * 0)
+ },
+
+ decimalInteger: function decimalInteger() {
+ switch (c) {
+ case '.':
+ buffer += read();
+ lexState = 'decimalPoint';
+ return
+
+ case 'e':
+ case 'E':
+ buffer += read();
+ lexState = 'decimalExponent';
+ return
+ }
+
+ if (util.isDigit(c)) {
+ buffer += read();
+ return
+ }
+
+ return newToken('numeric', sign * Number(buffer))
+ },
+
+ decimalPointLeading: function decimalPointLeading() {
+ if (util.isDigit(c)) {
+ buffer += read();
+ lexState = 'decimalFraction';
+ return
+ }
+
+ throw invalidChar(read())
+ },
+
+ decimalPoint: function decimalPoint() {
+ switch (c) {
+ case 'e':
+ case 'E':
+ buffer += read();
+ lexState = 'decimalExponent';
+ return
+ }
+
+ if (util.isDigit(c)) {
+ buffer += read();
+ lexState = 'decimalFraction';
+ return
+ }
+
+ return newToken('numeric', sign * Number(buffer))
+ },
+
+ decimalFraction: function decimalFraction() {
+ switch (c) {
+ case 'e':
+ case 'E':
+ buffer += read();
+ lexState = 'decimalExponent';
+ return
+ }
+
+ if (util.isDigit(c)) {
+ buffer += read();
+ return
+ }
+
+ return newToken('numeric', sign * Number(buffer))
+ },
+
+ decimalExponent: function decimalExponent() {
+ switch (c) {
+ case '+':
+ case '-':
+ buffer += read();
+ lexState = 'decimalExponentSign';
+ return
+ }
+
+ if (util.isDigit(c)) {
+ buffer += read();
+ lexState = 'decimalExponentInteger';
+ return
+ }
+
+ throw invalidChar(read())
+ },
+
+ decimalExponentSign: function decimalExponentSign() {
+ if (util.isDigit(c)) {
+ buffer += read();
+ lexState = 'decimalExponentInteger';
+ return
+ }
+
+ throw invalidChar(read())
+ },
+
+ decimalExponentInteger: function decimalExponentInteger() {
+ if (util.isDigit(c)) {
+ buffer += read();
+ return
+ }
+
+ return newToken('numeric', sign * Number(buffer))
+ },
+
+ hexadecimal: function hexadecimal() {
+ if (util.isHexDigit(c)) {
+ buffer += read();
+ lexState = 'hexadecimalInteger';
+ return
+ }
+
+ throw invalidChar(read())
+ },
+
+ hexadecimalInteger: function hexadecimalInteger() {
+ if (util.isHexDigit(c)) {
+ buffer += read();
+ return
+ }
+
+ return newToken('numeric', sign * Number(buffer))
+ },
+
+ string: function string() {
+ switch (c) {
+ case '\\':
+ read();
+ buffer += escape();
+ return
+
+ case '"':
+ if (doubleQuote) {
+ read();
+ return newToken('string', buffer)
+ }
+
+ buffer += read();
+ return
+
+ case "'":
+ if (!doubleQuote) {
+ read();
+ return newToken('string', buffer)
+ }
+
+ buffer += read();
+ return
+
+ case '\n':
+ case '\r':
+ throw invalidChar(read())
+
+ case '\u2028':
+ case '\u2029':
+ separatorChar(c);
+ break
+
+ case undefined:
+ throw invalidChar(read())
+ }
+
+ buffer += read();
+ },
+
+ start: function start() {
+ switch (c) {
+ case '{':
+ case '[':
+ return newToken('punctuator', read())
+
+ // This code is unreachable since the default lexState handles eof.
+ // case undefined:
+ // return newToken('eof')
+ }
+
+ lexState = 'value';
+ },
+
+ beforePropertyName: function beforePropertyName() {
+ switch (c) {
+ case '$':
+ case '_':
+ buffer = read();
+ lexState = 'identifierName';
+ return
+
+ case '\\':
+ read();
+ lexState = 'identifierNameStartEscape';
+ return
+
+ case '}':
+ return newToken('punctuator', read())
+
+ case '"':
+ case "'":
+ doubleQuote = (read() === '"');
+ lexState = 'string';
+ return
+ }
+
+ if (util.isIdStartChar(c)) {
+ buffer += read();
+ lexState = 'identifierName';
+ return
+ }
+
+ throw invalidChar(read())
+ },
+
+ afterPropertyName: function afterPropertyName() {
+ if (c === ':') {
+ return newToken('punctuator', read())
+ }
+
+ throw invalidChar(read())
+ },
+
+ beforePropertyValue: function beforePropertyValue() {
+ lexState = 'value';
+ },
+
+ afterPropertyValue: function afterPropertyValue() {
+ switch (c) {
+ case ',':
+ case '}':
+ return newToken('punctuator', read())
+ }
+
+ throw invalidChar(read())
+ },
+
+ beforeArrayValue: function beforeArrayValue() {
+ if (c === ']') {
+ return newToken('punctuator', read())
+ }
+
+ lexState = 'value';
+ },
+
+ afterArrayValue: function afterArrayValue() {
+ switch (c) {
+ case ',':
+ case ']':
+ return newToken('punctuator', read())
+ }
+
+ throw invalidChar(read())
+ },
+
+ end: function end() {
+ // This code is unreachable since it's handled by the default lexState.
+ // if (c === undefined) {
+ // read()
+ // return newToken('eof')
+ // }
+
+ throw invalidChar(read())
+ },
+ };
+
+ function newToken(type, value) {
+ return {
+ type: type,
+ value: value,
+ line: line,
+ column: column,
+ }
+ }
+
+ function literal(s) {
+ for (var i = 0, list = s; i < list.length; i += 1) {
+ var c = list[i];
+
+ var p = peek();
+
+ if (p !== c) {
+ throw invalidChar(read())
+ }
+
+ read();
+ }
+ }
+
+ function escape() {
+ var c = peek();
+ switch (c) {
+ case 'b':
+ read();
+ return '\b'
+
+ case 'f':
+ read();
+ return '\f'
+
+ case 'n':
+ read();
+ return '\n'
+
+ case 'r':
+ read();
+ return '\r'
+
+ case 't':
+ read();
+ return '\t'
+
+ case 'v':
+ read();
+ return '\v'
+
+ case '0':
+ read();
+ if (util.isDigit(peek())) {
+ throw invalidChar(read())
+ }
+
+ return '\0'
+
+ case 'x':
+ read();
+ return hexEscape()
+
+ case 'u':
+ read();
+ return unicodeEscape()
+
+ case '\n':
+ case '\u2028':
+ case '\u2029':
+ read();
+ return ''
+
+ case '\r':
+ read();
+ if (peek() === '\n') {
+ read();
+ }
+
+ return ''
+
+ case '1':
+ case '2':
+ case '3':
+ case '4':
+ case '5':
+ case '6':
+ case '7':
+ case '8':
+ case '9':
+ throw invalidChar(read())
+
+ case undefined:
+ throw invalidChar(read())
+ }
+
+ return read()
+ }
+
+ function hexEscape() {
+ var buffer = '';
+ var c = peek();
+
+ if (!util.isHexDigit(c)) {
+ throw invalidChar(read())
+ }
+
+ buffer += read();
+
+ c = peek();
+ if (!util.isHexDigit(c)) {
+ throw invalidChar(read())
+ }
+
+ buffer += read();
+
+ return String.fromCodePoint(parseInt(buffer, 16))
+ }
+
+ function unicodeEscape() {
+ var buffer = '';
+ var count = 4;
+
+ while (count-- > 0) {
+ var c = peek();
+ if (!util.isHexDigit(c)) {
+ throw invalidChar(read())
+ }
+
+ buffer += read();
+ }
+
+ return String.fromCodePoint(parseInt(buffer, 16))
+ }
+
+ var parseStates = {
+ start: function start() {
+ if (token.type === 'eof') {
+ throw invalidEOF()
+ }
+
+ push();
+ },
+
+ beforePropertyName: function beforePropertyName() {
+ switch (token.type) {
+ case 'identifier':
+ case 'string':
+ key = token.value;
+ parseState = 'afterPropertyName';
+ return
+
+ case 'punctuator':
+ // This code is unreachable since it's handled by the lexState.
+ // if (token.value !== '}') {
+ // throw invalidToken()
+ // }
+
+ pop();
+ return
+
+ case 'eof':
+ throw invalidEOF()
+ }
+
+ // This code is unreachable since it's handled by the lexState.
+ // throw invalidToken()
+ },
+
+ afterPropertyName: function afterPropertyName() {
+ // This code is unreachable since it's handled by the lexState.
+ // if (token.type !== 'punctuator' || token.value !== ':') {
+ // throw invalidToken()
+ // }
+
+ if (token.type === 'eof') {
+ throw invalidEOF()
+ }
+
+ parseState = 'beforePropertyValue';
+ },
+
+ beforePropertyValue: function beforePropertyValue() {
+ if (token.type === 'eof') {
+ throw invalidEOF()
+ }
+
+ push();
+ },
+
+ beforeArrayValue: function beforeArrayValue() {
+ if (token.type === 'eof') {
+ throw invalidEOF()
+ }
+
+ if (token.type === 'punctuator' && token.value === ']') {
+ pop();
+ return
+ }
+
+ push();
+ },
+
+ afterPropertyValue: function afterPropertyValue() {
+ // This code is unreachable since it's handled by the lexState.
+ // if (token.type !== 'punctuator') {
+ // throw invalidToken()
+ // }
+
+ if (token.type === 'eof') {
+ throw invalidEOF()
+ }
+
+ switch (token.value) {
+ case ',':
+ parseState = 'beforePropertyName';
+ return
+
+ case '}':
+ pop();
+ }
+
+ // This code is unreachable since it's handled by the lexState.
+ // throw invalidToken()
+ },
+
+ afterArrayValue: function afterArrayValue() {
+ // This code is unreachable since it's handled by the lexState.
+ // if (token.type !== 'punctuator') {
+ // throw invalidToken()
+ // }
+
+ if (token.type === 'eof') {
+ throw invalidEOF()
+ }
+
+ switch (token.value) {
+ case ',':
+ parseState = 'beforeArrayValue';
+ return
+
+ case ']':
+ pop();
+ }
+
+ // This code is unreachable since it's handled by the lexState.
+ // throw invalidToken()
+ },
+
+ end: function end() {
+ // This code is unreachable since it's handled by the lexState.
+ // if (token.type !== 'eof') {
+ // throw invalidToken()
+ // }
+ },
+ };
+
+ function push() {
+ var value;
+
+ switch (token.type) {
+ case 'punctuator':
+ switch (token.value) {
+ case '{':
+ value = {};
+ break
+
+ case '[':
+ value = [];
+ break
+ }
+
+ break
+
+ case 'null':
+ case 'boolean':
+ case 'numeric':
+ case 'string':
+ value = token.value;
+ break
+
+ // This code is unreachable.
+ // default:
+ // throw invalidToken()
+ }
+
+ if (root === undefined) {
+ root = value;
+ } else {
+ var parent = stack[stack.length - 1];
+ if (Array.isArray(parent)) {
+ parent.push(value);
+ } else {
+ Object.defineProperty(parent, key, {
+ value: value,
+ writable: true,
+ enumerable: true,
+ configurable: true,
+ });
+ }
+ }
+
+ if (value !== null && typeof value === 'object') {
+ stack.push(value);
+
+ if (Array.isArray(value)) {
+ parseState = 'beforeArrayValue';
+ } else {
+ parseState = 'beforePropertyName';
+ }
+ } else {
+ var current = stack[stack.length - 1];
+ if (current == null) {
+ parseState = 'end';
+ } else if (Array.isArray(current)) {
+ parseState = 'afterArrayValue';
+ } else {
+ parseState = 'afterPropertyValue';
+ }
+ }
+ }
+
+ function pop() {
+ stack.pop();
+
+ var current = stack[stack.length - 1];
+ if (current == null) {
+ parseState = 'end';
+ } else if (Array.isArray(current)) {
+ parseState = 'afterArrayValue';
+ } else {
+ parseState = 'afterPropertyValue';
+ }
+ }
+
+ // This code is unreachable.
+ // function invalidParseState () {
+ // return new Error(`JSON5: invalid parse state '${parseState}'`)
+ // }
+
+ // This code is unreachable.
+ // function invalidLexState (state) {
+ // return new Error(`JSON5: invalid lex state '${state}'`)
+ // }
+
+ function invalidChar(c) {
+ if (c === undefined) {
+ return syntaxError(("JSON5: invalid end of input at " + line + ":" + column))
+ }
+
+ return syntaxError(("JSON5: invalid character '" + (formatChar(c)) + "' at " + line + ":" + column))
+ }
+
+ function invalidEOF() {
+ return syntaxError(("JSON5: invalid end of input at " + line + ":" + column))
+ }
+
+ // This code is unreachable.
+ // function invalidToken () {
+ // if (token.type === 'eof') {
+ // return syntaxError(`JSON5: invalid end of input at ${line}:${column}`)
+ // }
+
+ // const c = String.fromCodePoint(token.value.codePointAt(0))
+ // return syntaxError(`JSON5: invalid character '${formatChar(c)}' at ${line}:${column}`)
+ // }
+
+ function invalidIdentifier() {
+ column -= 5;
+ return syntaxError(("JSON5: invalid identifier character at " + line + ":" + column))
+ }
+
+ function separatorChar(c) {
+ console.warn(("JSON5: '" + (formatChar(c)) + "' in strings is not valid ECMAScript; consider escaping"));
+ }
+
+ function formatChar(c) {
+ var replacements = {
+ "'": "\\'",
+ '"': '\\"',
+ '\\': '\\\\',
+ '\b': '\\b',
+ '\f': '\\f',
+ '\n': '\\n',
+ '\r': '\\r',
+ '\t': '\\t',
+ '\v': '\\v',
+ '\0': '\\0',
+ '\u2028': '\\u2028',
+ '\u2029': '\\u2029',
+ };
+
+ if (replacements[c]) {
+ return replacements[c]
+ }
+
+ if (c < ' ') {
+ var hexString = c.charCodeAt(0).toString(16);
+ return '\\x' + ('00' + hexString).substring(hexString.length)
+ }
+
+ return c
+ }
+
+ function syntaxError(message) {
+ var err = new SyntaxError(message);
+ err.lineNumber = line;
+ err.columnNumber = column;
+ return err
+ }
+
+ var stringify = function stringify(value, replacer, space) {
+ var stack = [];
+ var indent = '';
+ var propertyList;
+ var replacerFunc;
+ var gap = '';
+ var quote;
+
+ if (
+ replacer != null &&
+ typeof replacer === 'object' &&
+ !Array.isArray(replacer)
+ ) {
+ space = replacer.space;
+ quote = replacer.quote;
+ replacer = replacer.replacer;
+ }
+
+ if (typeof replacer === 'function') {
+ replacerFunc = replacer;
+ } else if (Array.isArray(replacer)) {
+ propertyList = [];
+ for (var i = 0, list = replacer; i < list.length; i += 1) {
+ var v = list[i];
+
+ var item = (void 0);
+
+ if (typeof v === 'string') {
+ item = v;
+ } else if (
+ typeof v === 'number' ||
+ v instanceof String ||
+ v instanceof Number
+ ) {
+ item = String(v);
+ }
+
+ if (item !== undefined && propertyList.indexOf(item) < 0) {
+ propertyList.push(item);
+ }
+ }
+ }
+
+ if (space instanceof Number) {
+ space = Number(space);
+ } else if (space instanceof String) {
+ space = String(space);
+ }
+
+ if (typeof space === 'number') {
+ if (space > 0) {
+ space = Math.min(10, Math.floor(space));
+ gap = ' '.substr(0, space);
+ }
+ } else if (typeof space === 'string') {
+ gap = space.substr(0, 10);
+ }
+
+ return serializeProperty('', {
+ '': value
+ })
+
+ function serializeProperty(key, holder) {
+ var value = holder[key];
+ if (value != null) {
+ if (typeof value.toJSON5 === 'function') {
+ value = value.toJSON5(key);
+ } else if (typeof value.toJSON === 'function') {
+ value = value.toJSON(key);
+ }
+ }
+
+ if (replacerFunc) {
+ value = replacerFunc.call(holder, key, value);
+ }
+
+ if (value instanceof Number) {
+ value = Number(value);
+ } else if (value instanceof String) {
+ value = String(value);
+ } else if (value instanceof Boolean) {
+ value = value.valueOf();
+ }
+
+ switch (value) {
+ case null:
+ return 'null'
+ case true:
+ return 'true'
+ case false:
+ return 'false'
+ }
+
+ if (typeof value === 'string') {
+ return quoteString(value, false)
+ }
+
+ if (typeof value === 'number') {
+ return String(value)
+ }
+
+ if (typeof value === 'object') {
+ return Array.isArray(value) ? serializeArray(value) : serializeObject(value)
+ }
+
+ return undefined
+ }
+
+ function quoteString(value) {
+ var quotes = {
+ "'": 0.1,
+ '"': 0.2,
+ };
+
+ var replacements = {
+ "'": "\\'",
+ '"': '\\"',
+ '\\': '\\\\',
+ '\b': '\\b',
+ '\f': '\\f',
+ '\n': '\\n',
+ '\r': '\\r',
+ '\t': '\\t',
+ '\v': '\\v',
+ '\0': '\\0',
+ '\u2028': '\\u2028',
+ '\u2029': '\\u2029',
+ };
+
+ var product = '';
+
+ for (var i = 0; i < value.length; i++) {
+ var c = value[i];
+ switch (c) {
+ case "'":
+ case '"':
+ quotes[c]++;
+ product += c;
+ continue
+
+ case '\0':
+ if (util.isDigit(value[i + 1])) {
+ product += '\\x00';
+ continue
+ }
+ }
+
+ if (replacements[c]) {
+ product += replacements[c];
+ continue
+ }
+
+ if (c < ' ') {
+ var hexString = c.charCodeAt(0).toString(16);
+ product += '\\x' + ('00' + hexString).substring(hexString.length);
+ continue
+ }
+
+ product += c;
+ }
+
+ var quoteChar = quote || Object.keys(quotes).reduce(function(a, b) {
+ return (quotes[a] < quotes[b]) ? a : b;
+ });
+
+ product = product.replace(new RegExp(quoteChar, 'g'), replacements[quoteChar]);
+
+ return quoteChar + product + quoteChar
+ }
+
+ function serializeObject(value) {
+ if (stack.indexOf(value) >= 0) {
+ throw TypeError('Converting circular structure to JSON5')
+ }
+
+ stack.push(value);
+
+ var stepback = indent;
+ indent = indent + gap;
+
+ var keys = propertyList || Object.keys(value);
+ var partial = [];
+ for (var i = 0, list = keys; i < list.length; i += 1) {
+ var key = list[i];
+
+ var propertyString = serializeProperty(key, value);
+ if (propertyString !== undefined) {
+ var member = serializeKey(key) + ':';
+ if (gap !== '') {
+ member += ' ';
+ }
+ member += propertyString;
+ partial.push(member);
+ }
+ }
+
+ var final;
+ if (partial.length === 0) {
+ final = '{}';
+ } else {
+ var properties;
+ if (gap === '') {
+ properties = partial.join(',');
+ final = '{' + properties + '}';
+ } else {
+ var separator = ',\n' + indent;
+ properties = partial.join(separator);
+ final = '{\n' + indent + properties + ',\n' + stepback + '}';
+ }
+ }
+
+ stack.pop();
+ indent = stepback;
+ return final
+ }
+
+ function serializeKey(key) {
+ if (key.length === 0) {
+ return quoteString(key, true)
+ }
+
+ var firstChar = String.fromCodePoint(key.codePointAt(0));
+ if (!util.isIdStartChar(firstChar)) {
+ return quoteString(key, true)
+ }
+
+ for (var i = firstChar.length; i < key.length; i++) {
+ if (!util.isIdContinueChar(String.fromCodePoint(key.codePointAt(i)))) {
+ return quoteString(key, true)
+ }
+ }
+
+ return key
+ }
+
+ function serializeArray(value) {
+ if (stack.indexOf(value) >= 0) {
+ throw TypeError('Converting circular structure to JSON5')
+ }
+
+ stack.push(value);
+
+ var stepback = indent;
+ indent = indent + gap;
+
+ var partial = [];
+ for (var i = 0; i < value.length; i++) {
+ var propertyString = serializeProperty(String(i), value);
+ partial.push((propertyString !== undefined) ? propertyString : 'null');
+ }
+
+ var final;
+ if (partial.length === 0) {
+ final = '[]';
+ } else {
+ if (gap === '') {
+ var properties = partial.join(',');
+ final = '[' + properties + ']';
+ } else {
+ var separator = ',\n' + indent;
+ var properties$1 = partial.join(separator);
+ final = '[\n' + indent + properties$1 + ',\n' + stepback + ']';
+ }
+ }
+
+ stack.pop();
+ indent = stepback;
+ return final
+ }
+ };
+
+ var JSON5 = {
+ parse: parse,
+ stringify: stringify,
+ };
+
+ var lib = JSON5;
+
+ var es5 = lib;
+
+ return es5;
+
+})));
\ No newline at end of file
diff --git a/JS/jsonpathplus.min.js b/JS/jsonpathplus.min.js
new file mode 100644
index 0000000..1feb326
--- /dev/null
+++ b/JS/jsonpathplus.min.js
@@ -0,0 +1,1277 @@
+! function(e, t) {
+ "object" == typeof exports && "undefined" != typeof module ? t(exports) : "function" == typeof define && define.amd ? define(["exports"], t) : t((e = "undefined" != typeof globalThis ? globalThis : e || self).JSONPath = {})
+}(this, function(e) {
+ "use strict";
+
+ function n(e, t, r) {
+ return t = l(t),
+ function(e, t) {
+ {
+ if (t && ("object" == typeof t || "function" == typeof t)) return t;
+ if (void 0 !== t) throw new TypeError("Derived constructors may only return object or undefined")
+ }
+ return function(e) {
+ if (void 0 !== e) return e;
+ throw new ReferenceError("this hasn't been initialised - super() hasn't been called")
+ }(e)
+ }(e, i() ? Reflect.construct(t, r || [], l(e).constructor) : t.apply(e, r))
+ }
+
+ function o(e, t, r) {
+ if (i()) return Reflect.construct.apply(null, arguments);
+ var n = [null];
+ n.push.apply(n, t);
+ n = new(e.bind.apply(e, n));
+ return r && h(n, r.prototype), n
+ }
+
+ function i() {
+ try {
+ var e = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}))
+ } catch (e) {}
+ return (i = function() {
+ return !!e
+ })()
+ }
+
+ function t(t, e) {
+ var r, n = Object.keys(t);
+ return Object.getOwnPropertySymbols && (r = Object.getOwnPropertySymbols(t), e && (r = r.filter(function(e) {
+ return Object.getOwnPropertyDescriptor(t, e).enumerable
+ })), n.push.apply(n, r)), n
+ }
+
+ function r(n) {
+ for (var e = 1; e < arguments.length; e++) {
+ var i = null != arguments[e] ? arguments[e] : {};
+ e % 2 ? t(Object(i), !0).forEach(function(e) {
+ var t, r;
+ t = n, e = i[r = e], (r = a(r)) in t ? Object.defineProperty(t, r, {
+ value: e,
+ enumerable: !0,
+ configurable: !0,
+ writable: !0
+ }) : t[r] = e
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : t(Object(i)).forEach(function(e) {
+ Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(i, e))
+ })
+ }
+ return n
+ }
+
+ function a(e) {
+ e = function(e, t) {
+ if ("object" != typeof e || !e) return e;
+ var r = e[Symbol.toPrimitive];
+ if (void 0 === r) return ("string" === t ? String : Number)(e);
+ if ("object" != typeof(t = r.call(e, t || "default"))) return t;
+ throw new TypeError("@@toPrimitive must return a primitive value.")
+ }(e, "string");
+ return "symbol" == typeof e ? e : e + ""
+ }
+
+ function C(e) {
+ return (C = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(e) {
+ return typeof e
+ } : function(e) {
+ return e && "function" == typeof Symbol && e.constructor === Symbol && e !== Symbol.prototype ? "symbol" : typeof e
+ })(e)
+ }
+
+ function s(e, t) {
+ if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function")
+ }
+
+ function u(e, t) {
+ for (var r = 0; r < t.length; r++) {
+ var n = t[r];
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(e, a(n.key), n)
+ }
+ }
+
+ function c(e, t, r) {
+ return t && u(e.prototype, t), r && u(e, r), Object.defineProperty(e, "prototype", {
+ writable: !1
+ }), e
+ }
+
+ function l(e) {
+ return (l = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function(e) {
+ return e.__proto__ || Object.getPrototypeOf(e)
+ })(e)
+ }
+
+ function h(e, t) {
+ return (h = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function(e, t) {
+ return e.__proto__ = t, e
+ })(e, t)
+ }
+
+ function p(e) {
+ var r = "function" == typeof Map ? new Map : void 0;
+ return (p = function(e) {
+ if (null === e || ! function(t) {
+ try {
+ return -1 !== Function.toString.call(t).indexOf("[native code]")
+ } catch (e) {
+ return "function" == typeof t
+ }
+ }(e)) return e;
+ if ("function" != typeof e) throw new TypeError("Super expression must either be null or a function");
+ if (void 0 !== r) {
+ if (r.has(e)) return r.get(e);
+ r.set(e, t)
+ }
+
+ function t() {
+ return o(e, arguments, l(this).constructor)
+ }
+ return t.prototype = Object.create(e.prototype, {
+ constructor: {
+ value: t,
+ enumerable: !1,
+ writable: !0,
+ configurable: !0
+ }
+ }), h(t, e)
+ })(e)
+ }
+
+ function f(e) {
+ return function(e) {
+ if (Array.isArray(e)) return d(e)
+ }(e) || function(e) {
+ if ("undefined" != typeof Symbol && null != e[Symbol.iterator] || null != e["@@iterator"]) return Array.from(e)
+ }(e) || O(e) || function() {
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")
+ }()
+ }
+
+ function O(e, t) {
+ if (e) {
+ if ("string" == typeof e) return d(e, t);
+ var r = Object.prototype.toString.call(e).slice(8, -1);
+ return "Object" === r && e.constructor && (r = e.constructor.name), "Map" === r || "Set" === r ? Array.from(e) : "Arguments" === r || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r) ? d(e, t) : void 0
+ }
+ }
+
+ function d(e, t) {
+ (null == t || t > e.length) && (t = e.length);
+ for (var r = 0, n = new Array(t); r < t; r++) n[r] = e[r];
+ return n
+ }
+ var y = function() {
+ return c(function e() {
+ s(this, e)
+ }, [{
+ key: "add",
+ value: function(e, t, r) {
+ if ("string" != typeof e)
+ for (var n in e) this.add(n, e[n], t);
+ else(Array.isArray(e) ? e : [e]).forEach(function(e) {
+ this[e] = this[e] || [], t && this[e][r ? "unshift" : "push"](t)
+ }, this)
+ }
+ }, {
+ key: "run",
+ value: function(e, t) {
+ this[e] = this[e] || [], this[e].forEach(function(e) {
+ e.call(t && t.context ? t.context : t, t)
+ })
+ }
+ }])
+ }(),
+ b = function() {
+ return c(function e(t) {
+ s(this, e), this.jsep = t, this.registered = {}
+ }, [{
+ key: "register",
+ value: function() {
+ for (var t = this, e = arguments.length, r = new Array(e), n = 0; n < e; n++) r[n] = arguments[n];
+ r.forEach(function(e) {
+ if ("object" !== C(e) || !e.name || !e.init) throw new Error("Invalid JSEP plugin format");
+ t.registered[e.name] || (e.init(t.jsep), t.registered[e.name] = e)
+ })
+ }
+ }])
+ }(),
+ v = function() {
+ function l(e) {
+ s(this, l), this.expr = e, this.index = 0
+ }
+ return c(l, [{
+ key: "char",
+ get: function() {
+ return this.expr.charAt(this.index)
+ }
+ }, {
+ key: "code",
+ get: function() {
+ return this.expr.charCodeAt(this.index)
+ }
+ }, {
+ key: "throwError",
+ value: function(e) {
+ var t = new Error(e + " at character " + this.index);
+ throw t.index = this.index, t.description = e, t
+ }
+ }, {
+ key: "runHook",
+ value: function(e, t) {
+ if (l.hooks[e]) {
+ var r = {
+ context: this,
+ node: t
+ };
+ return l.hooks.run(e, r), r.node
+ }
+ return t
+ }
+ }, {
+ key: "searchHook",
+ value: function(e) {
+ if (l.hooks[e]) {
+ var t = {
+ context: this
+ };
+ return l.hooks[e].find(function(e) {
+ return e.call(t.context, t), t.node
+ }), t.node
+ }
+ }
+ }, {
+ key: "gobbleSpaces",
+ value: function() {
+ for (var e = this.code; e === l.SPACE_CODE || e === l.TAB_CODE || e === l.LF_CODE || e === l.CR_CODE;) e = this.expr.charCodeAt(++this.index);
+ this.runHook("gobble-spaces")
+ }
+ }, {
+ key: "parse",
+ value: function() {
+ this.runHook("before-all");
+ var e = this.gobbleExpressions(),
+ e = 1 === e.length ? e[0] : {
+ type: l.COMPOUND,
+ body: e
+ };
+ return this.runHook("after-all", e)
+ }
+ }, {
+ key: "gobbleExpressions",
+ value: function(e) {
+ for (var t, r, n = []; this.index < this.expr.length;)
+ if ((t = this.code) === l.SEMCOL_CODE || t === l.COMMA_CODE) this.index++;
+ else if (r = this.gobbleExpression()) n.push(r);
+ else if (this.index < this.expr.length) {
+ if (t === e) break;
+ this.throwError('Unexpected "' + this.char + '"')
+ }
+ return n
+ }
+ }, {
+ key: "gobbleExpression",
+ value: function() {
+ var e = this.searchHook("gobble-expression") || this.gobbleBinaryExpression();
+ return this.gobbleSpaces(), this.runHook("after-expression", e)
+ }
+ }, {
+ key: "gobbleBinaryOp",
+ value: function() {
+ this.gobbleSpaces();
+ for (var e = this.expr.substr(this.index, l.max_binop_len), t = e.length; 0 < t;) {
+ if (l.binary_ops.hasOwnProperty(e) && (!l.isIdentifierStart(this.code) || this.index + e.length < this.expr.length && !l.isIdentifierPart(this.expr.charCodeAt(this.index + e.length)))) return this.index += t, e;
+ e = e.substr(0, --t)
+ }
+ return !1
+ }
+ }, {
+ key: "gobbleBinaryExpression",
+ value: function() {
+ var e, t, r, n, i, o, a, s, u, c = this.gobbleToken();
+ if (!c) return c;
+ if (!(t = this.gobbleBinaryOp())) return c;
+ for (i = {
+ value: t,
+ prec: l.binaryPrecedence(t),
+ right_a: l.right_associative.has(t)
+ }, (o = this.gobbleToken()) || this.throwError("Expected expression after " + t), n = [c, i, o]; t = this.gobbleBinaryOp();) {
+ if (0 === (r = l.binaryPrecedence(t))) {
+ this.index -= t.length;
+ break
+ }
+ i = {
+ value: t,
+ prec: r,
+ right_a: l.right_associative.has(t)
+ }, s = t;
+ for (; 2 < n.length && (u = n[n.length - 2], i.right_a && u.right_a ? r > u.prec : r <= u.prec);) o = n.pop(), t = n.pop().value, c = n.pop(), e = {
+ type: l.BINARY_EXP,
+ operator: t,
+ left: c,
+ right: o
+ }, n.push(e);
+ (e = this.gobbleToken()) || this.throwError("Expected expression after " + s), n.push(i, e)
+ }
+ for (e = n[a = n.length - 1]; 1 < a;) e = {
+ type: l.BINARY_EXP,
+ operator: n[a - 1].value,
+ left: n[a - 2],
+ right: e
+ }, a -= 2;
+ return e
+ }
+ }, {
+ key: "gobbleToken",
+ value: function() {
+ var e, t, r, n;
+ if (this.gobbleSpaces(), n = this.searchHook("gobble-token")) return this.runHook("after-token", n);
+ if (e = this.code, l.isDecimalDigit(e) || e === l.PERIOD_CODE) return this.gobbleNumericLiteral();
+ if (e === l.SQUOTE_CODE || e === l.DQUOTE_CODE) n = this.gobbleStringLiteral();
+ else if (e === l.OBRACK_CODE) n = this.gobbleArray();
+ else {
+ for (r = (t = this.expr.substr(this.index, l.max_unop_len)).length; 0 < r;) {
+ if (l.unary_ops.hasOwnProperty(t) && (!l.isIdentifierStart(this.code) || this.index + t.length < this.expr.length && !l.isIdentifierPart(this.expr.charCodeAt(this.index + t.length)))) {
+ this.index += r;
+ var i = this.gobbleToken();
+ return i || this.throwError("missing unaryOp argument"), this.runHook("after-token", {
+ type: l.UNARY_EXP,
+ operator: t,
+ argument: i,
+ prefix: !0
+ })
+ }
+ t = t.substr(0, --r)
+ }
+ l.isIdentifierStart(e) ? (n = this.gobbleIdentifier(), l.literals.hasOwnProperty(n.name) ? n = {
+ type: l.LITERAL,
+ value: l.literals[n.name],
+ raw: n.name
+ } : n.name === l.this_str && (n = {
+ type: l.THIS_EXP
+ })) : e === l.OPAREN_CODE && (n = this.gobbleGroup())
+ }
+ return n ? (n = this.gobbleTokenProperty(n), this.runHook("after-token", n)) : this.runHook("after-token", !1)
+ }
+ }, {
+ key: "gobbleTokenProperty",
+ value: function(e) {
+ this.gobbleSpaces();
+ for (var t = this.code; t === l.PERIOD_CODE || t === l.OBRACK_CODE || t === l.OPAREN_CODE || t === l.QUMARK_CODE;) {
+ var r = void 0;
+ if (t === l.QUMARK_CODE) {
+ if (this.expr.charCodeAt(this.index + 1) !== l.PERIOD_CODE) break;
+ r = !0, this.index += 2, this.gobbleSpaces(), t = this.code
+ }
+ this.index++, t === l.OBRACK_CODE ? (e = {
+ type: l.MEMBER_EXP,
+ computed: !0,
+ object: e,
+ property: this.gobbleExpression()
+ }, this.gobbleSpaces(), (t = this.code) !== l.CBRACK_CODE && this.throwError("Unclosed ["), this.index++) : t === l.OPAREN_CODE ? e = {
+ type: l.CALL_EXP,
+ arguments: this.gobbleArguments(l.CPAREN_CODE),
+ callee: e
+ } : t !== l.PERIOD_CODE && !r || (r && this.index--, this.gobbleSpaces(), e = {
+ type: l.MEMBER_EXP,
+ computed: !1,
+ object: e,
+ property: this.gobbleIdentifier()
+ }), r && (e.optional = !0), this.gobbleSpaces(), t = this.code
+ }
+ return e
+ }
+ }, {
+ key: "gobbleNumericLiteral",
+ value: function() {
+ for (var e, t = ""; l.isDecimalDigit(this.code);) t += this.expr.charAt(this.index++);
+ if (this.code === l.PERIOD_CODE)
+ for (t += this.expr.charAt(this.index++); l.isDecimalDigit(this.code);) t += this.expr.charAt(this.index++);
+ if ("e" === (e = this.char) || "E" === e) {
+ for (t += this.expr.charAt(this.index++), "+" !== (e = this.char) && "-" !== e || (t += this.expr.charAt(this.index++)); l.isDecimalDigit(this.code);) t += this.expr.charAt(this.index++);
+ l.isDecimalDigit(this.expr.charCodeAt(this.index - 1)) || this.throwError("Expected exponent (" + t + this.char + ")")
+ }
+ return e = this.code, l.isIdentifierStart(e) ? this.throwError("Variable names cannot start with a number (" + t + this.char + ")") : (e === l.PERIOD_CODE || 1 === t.length && t.charCodeAt(0) === l.PERIOD_CODE) && this.throwError("Unexpected period"), {
+ type: l.LITERAL,
+ value: parseFloat(t),
+ raw: t
+ }
+ }
+ }, {
+ key: "gobbleStringLiteral",
+ value: function() {
+ for (var e = "", t = this.index, r = this.expr.charAt(this.index++), n = !1; this.index < this.expr.length;) {
+ var i = this.expr.charAt(this.index++);
+ if (i === r) {
+ n = !0;
+ break
+ }
+ if ("\\" === i) switch (i = this.expr.charAt(this.index++)) {
+ case "n":
+ e += "\n";
+ break;
+ case "r":
+ e += "\r";
+ break;
+ case "t":
+ e += "\t";
+ break;
+ case "b":
+ e += "\b";
+ break;
+ case "f":
+ e += "\f";
+ break;
+ case "v":
+ e += "\v";
+ break;
+ default:
+ e += i
+ } else e += i
+ }
+ return n || this.throwError('Unclosed quote after "' + e + '"'), {
+ type: l.LITERAL,
+ value: e,
+ raw: this.expr.substring(t, this.index)
+ }
+ }
+ }, {
+ key: "gobbleIdentifier",
+ value: function() {
+ var e = this.code,
+ t = this.index;
+ for (l.isIdentifierStart(e) ? this.index++ : this.throwError("Unexpected " + this.char); this.index < this.expr.length && (e = this.code, l.isIdentifierPart(e));) this.index++;
+ return {
+ type: l.IDENTIFIER,
+ name: this.expr.slice(t, this.index)
+ }
+ }
+ }, {
+ key: "gobbleArguments",
+ value: function(e) {
+ for (var t = [], r = !1, n = 0; this.index < this.expr.length;) {
+ this.gobbleSpaces();
+ var i = this.code;
+ if (i === e) {
+ r = !0, this.index++, e === l.CPAREN_CODE && n && n >= t.length && this.throwError("Unexpected token " + String.fromCharCode(e));
+ break
+ }
+ if (i === l.COMMA_CODE) {
+ if (this.index++, ++n !== t.length)
+ if (e === l.CPAREN_CODE) this.throwError("Unexpected token ,");
+ else if (e === l.CBRACK_CODE)
+ for (var o = t.length; o < n; o++) t.push(null)
+ } else t.length !== n && 0 !== n ? this.throwError("Expected comma") : ((i = this.gobbleExpression()) && i.type !== l.COMPOUND || this.throwError("Expected comma"), t.push(i))
+ }
+ return r || this.throwError("Expected " + String.fromCharCode(e)), t
+ }
+ }, {
+ key: "gobbleGroup",
+ value: function() {
+ this.index++;
+ var e = this.gobbleExpressions(l.CPAREN_CODE);
+ if (this.code === l.CPAREN_CODE) return this.index++, 1 === e.length ? e[0] : !!e.length && {
+ type: l.SEQUENCE_EXP,
+ expressions: e
+ };
+ this.throwError("Unclosed (")
+ }
+ }, {
+ key: "gobbleArray",
+ value: function() {
+ return this.index++, {
+ type: l.ARRAY_EXP,
+ elements: this.gobbleArguments(l.CBRACK_CODE)
+ }
+ }
+ }], [{
+ key: "version",
+ get: function() {
+ return "1.3.8"
+ }
+ }, {
+ key: "toString",
+ value: function() {
+ return "JavaScript Expression Parser (JSEP) v" + l.version
+ }
+ }, {
+ key: "addUnaryOp",
+ value: function(e) {
+ return l.max_unop_len = Math.max(e.length, l.max_unop_len), l.unary_ops[e] = 1, l
+ }
+ }, {
+ key: "addBinaryOp",
+ value: function(e, t, r) {
+ return l.max_binop_len = Math.max(e.length, l.max_binop_len), l.binary_ops[e] = t, r ? l.right_associative.add(e) : l.right_associative.delete(e), l
+ }
+ }, {
+ key: "addIdentifierChar",
+ value: function(e) {
+ return l.additional_identifier_chars.add(e), l
+ }
+ }, {
+ key: "addLiteral",
+ value: function(e, t) {
+ return l.literals[e] = t, l
+ }
+ }, {
+ key: "removeUnaryOp",
+ value: function(e) {
+ return delete l.unary_ops[e], e.length === l.max_unop_len && (l.max_unop_len = l.getMaxKeyLen(l.unary_ops)), l
+ }
+ }, {
+ key: "removeAllUnaryOps",
+ value: function() {
+ return l.unary_ops = {}, l.max_unop_len = 0, l
+ }
+ }, {
+ key: "removeIdentifierChar",
+ value: function(e) {
+ return l.additional_identifier_chars.delete(e), l
+ }
+ }, {
+ key: "removeBinaryOp",
+ value: function(e) {
+ return delete l.binary_ops[e], e.length === l.max_binop_len && (l.max_binop_len = l.getMaxKeyLen(l.binary_ops)), l.right_associative.delete(e), l
+ }
+ }, {
+ key: "removeAllBinaryOps",
+ value: function() {
+ return l.binary_ops = {}, l.max_binop_len = 0, l
+ }
+ }, {
+ key: "removeLiteral",
+ value: function(e) {
+ return delete l.literals[e], l
+ }
+ }, {
+ key: "removeAllLiterals",
+ value: function() {
+ return l.literals = {}, l
+ }
+ }, {
+ key: "parse",
+ value: function(e) {
+ return new l(e).parse()
+ }
+ }, {
+ key: "getMaxKeyLen",
+ value: function(e) {
+ return Math.max.apply(Math, [0].concat(f(Object.keys(e).map(function(e) {
+ return e.length
+ }))))
+ }
+ }, {
+ key: "isDecimalDigit",
+ value: function(e) {
+ return 48 <= e && e <= 57
+ }
+ }, {
+ key: "binaryPrecedence",
+ value: function(e) {
+ return l.binary_ops[e] || 0
+ }
+ }, {
+ key: "isIdentifierStart",
+ value: function(e) {
+ return 65 <= e && e <= 90 || 97 <= e && e <= 122 || 128 <= e && !l.binary_ops[String.fromCharCode(e)] || l.additional_identifier_chars.has(String.fromCharCode(e))
+ }
+ }, {
+ key: "isIdentifierPart",
+ value: function(e) {
+ return l.isIdentifierStart(e) || l.isDecimalDigit(e)
+ }
+ }])
+ }(),
+ y = new y;
+ Object.assign(v, {
+ hooks: y,
+ plugins: new b(v),
+ COMPOUND: "Compound",
+ SEQUENCE_EXP: "SequenceExpression",
+ IDENTIFIER: "Identifier",
+ MEMBER_EXP: "MemberExpression",
+ LITERAL: "Literal",
+ THIS_EXP: "ThisExpression",
+ CALL_EXP: "CallExpression",
+ UNARY_EXP: "UnaryExpression",
+ BINARY_EXP: "BinaryExpression",
+ ARRAY_EXP: "ArrayExpression",
+ TAB_CODE: 9,
+ LF_CODE: 10,
+ CR_CODE: 13,
+ SPACE_CODE: 32,
+ PERIOD_CODE: 46,
+ COMMA_CODE: 44,
+ SQUOTE_CODE: 39,
+ DQUOTE_CODE: 34,
+ OPAREN_CODE: 40,
+ CPAREN_CODE: 41,
+ OBRACK_CODE: 91,
+ CBRACK_CODE: 93,
+ QUMARK_CODE: 63,
+ SEMCOL_CODE: 59,
+ COLON_CODE: 58,
+ unary_ops: {
+ "-": 1,
+ "!": 1,
+ "~": 1,
+ "+": 1
+ },
+ binary_ops: {
+ "||": 1,
+ "&&": 2,
+ "|": 3,
+ "^": 4,
+ "&": 5,
+ "==": 6,
+ "!=": 6,
+ "===": 6,
+ "!==": 6,
+ "<": 7,
+ ">": 7,
+ "<=": 7,
+ ">=": 7,
+ "<<": 8,
+ ">>": 8,
+ ">>>": 8,
+ "+": 9,
+ "-": 9,
+ "*": 10,
+ "/": 10,
+ "%": 10
+ },
+ right_associative: new Set,
+ additional_identifier_chars: new Set(["$", "_"]),
+ literals: {
+ true: !0,
+ false: !1,
+ null: null
+ },
+ this_str: "this"
+ }), v.max_unop_len = v.getMaxKeyLen(v.unary_ops), v.max_binop_len = v.getMaxKeyLen(v.binary_ops);
+ var E = function(e) {
+ return new v(e).parse()
+ };
+ Object.getOwnPropertyNames(v).forEach(function(e) {
+ void 0 === E[e] && "prototype" !== e && (E[e] = v[e])
+ }), E.Jsep = v;
+ b = {
+ name: "ternary",
+ init: function(o) {
+ o.hooks.add("after-expression", function(e) {
+ if (e.node && this.code === o.QUMARK_CODE) {
+ this.index++;
+ var t = e.node,
+ r = this.gobbleExpression();
+ if (r || this.throwError("Expected expression"), this.gobbleSpaces(), this.code === o.COLON_CODE) {
+ this.index++;
+ var n = this.gobbleExpression();
+ if (n || this.throwError("Expected expression"), e.node = {
+ type: "ConditionalExpression",
+ test: t,
+ consequent: r,
+ alternate: n
+ }, t.operator && o.binary_ops[t.operator] <= .9) {
+ for (var i = t; i.right.operator && o.binary_ops[i.right.operator] <= .9;) i = i.right;
+ e.node.test = i.right, i.right = e.node, e.node = t
+ }
+ } else this.throwError("Expected :")
+ }
+ })
+ }
+ };
+ E.plugins.register(b);
+ var b = {
+ name: "regex",
+ init: function(s) {
+ s.hooks.add("gobble-token", function(e) {
+ if (47 === this.code) {
+ for (var t = ++this.index, r = !1; this.index < this.expr.length;) {
+ if (47 === this.code && !r) {
+ for (var n = this.expr.slice(t, this.index), i = ""; ++this.index < this.expr.length;) {
+ var o = this.code;
+ if (!(97 <= o && o <= 122 || 65 <= o && o <= 90 || 48 <= o && o <= 57)) break;
+ i += this.char
+ }
+ var a = void 0;
+ try {
+ a = new RegExp(n, i)
+ } catch (e) {
+ this.throwError(e.message)
+ }
+ return e.node = {
+ type: s.LITERAL,
+ value: a,
+ raw: this.expr.slice(t - 1, this.index)
+ }, e.node = this.gobbleTokenProperty(e.node), e.node
+ }
+ this.code === s.OBRACK_CODE ? r = !0 : r && this.code === s.CBRACK_CODE && (r = !1), this.index += 92 === this.code ? 2 : 1
+ }
+ this.throwError("Unclosed Regex")
+ }
+ })
+ }
+ },
+ g = {
+ name: "assignment",
+ assignmentOperators: new Set(["=", "*=", "**=", "/=", "%=", "+=", "-=", "<<=", ">>=", ">>>=", "&=", "^=", "|="]),
+ updateOperators: [43, 45],
+ assignmentPrecedence: .9,
+ init: function(t) {
+ var n = [t.IDENTIFIER, t.MEMBER_EXP];
+ g.assignmentOperators.forEach(function(e) {
+ return t.addBinaryOp(e, g.assignmentPrecedence, !0)
+ }), t.hooks.add("gobble-token", function(e) {
+ var t = this,
+ r = this.code;
+ g.updateOperators.some(function(e) {
+ return e === r && e === t.expr.charCodeAt(t.index + 1)
+ }) && (this.index += 2, e.node = {
+ type: "UpdateExpression",
+ operator: 43 === r ? "++" : "--",
+ argument: this.gobbleTokenProperty(this.gobbleIdentifier()),
+ prefix: !0
+ }, e.node.argument && n.includes(e.node.argument.type) || this.throwError("Unexpected ".concat(e.node.operator)))
+ }), t.hooks.add("after-token", function(e) {
+ var t, r = this;
+ e.node && (t = this.code, g.updateOperators.some(function(e) {
+ return e === t && e === r.expr.charCodeAt(r.index + 1)
+ }) && (n.includes(e.node.type) || this.throwError("Unexpected ".concat(e.node.operator)), this.index += 2, e.node = {
+ type: "UpdateExpression",
+ operator: 43 === t ? "++" : "--",
+ argument: e.node,
+ prefix: !1
+ }))
+ }), t.hooks.add("after-expression", function(e) {
+ e.node && ! function t(e) {
+ g.assignmentOperators.has(e.operator) ? (e.type = "AssignmentExpression", t(e.left), t(e.right)) : e.operator || Object.values(e).forEach(function(e) {
+ e && "object" === C(e) && t(e)
+ })
+ }(e.node)
+ })
+ }
+ },
+ A = Object.prototype.hasOwnProperty;
+
+ function w(e, t) {
+ return (e = e.slice()).push(t), e
+ }
+
+ function k(e, t) {
+ return (t = t.slice()).unshift(e), t
+ }
+ var x = function() {
+ function r(e) {
+ var t;
+ return s(this, r), (t = n(this, r, ['JSONPath should not be called with "new" (it prevents return of (unwrapped) scalar values)'])).avoidNew = !0, t.value = e, t.name = "NewError", t
+ }
+ return function(e, t) {
+ if ("function" != typeof t && null !== t) throw new TypeError("Super expression must either be null or a function");
+ e.prototype = Object.create(t && t.prototype, {
+ constructor: {
+ value: e,
+ writable: !0,
+ configurable: !0
+ }
+ }), Object.defineProperty(e, "prototype", {
+ writable: !1
+ }), t && h(e, t)
+ }(r, p(Error)), c(r)
+ }();
+
+ function F(e, t, r, n, i) {
+ if (!(this instanceof F)) try {
+ return new F(e, t, r, n, i)
+ } catch (e) {
+ if (!e.avoidNew) throw e;
+ return e.value
+ }
+ "string" == typeof e && (i = n, n = r, r = t, t = e, e = null);
+ var o = e && "object" === C(e);
+ if (e = e || {}, this.json = e.json || r, this.path = e.path || t, this.resultType = e.resultType || "value", this.flatten = e.flatten || !1, this.wrap = !A.call(e, "wrap") || e.wrap, this.sandbox = e.sandbox || {}, this.eval = void 0 === e.eval ? "safe" : e.eval, this.ignoreEvalErrors = void 0 !== e.ignoreEvalErrors && e.ignoreEvalErrors, this.parent = e.parent || null, this.parentProperty = e.parentProperty || null, this.callback = e.callback || n || null, this.otherTypeCallback = e.otherTypeCallback || i || function() {
+ throw new TypeError("You must supply an otherTypeCallback callback option with the @other() operator.")
+ }, !1 !== e.autostart) {
+ var a = {
+ path: o ? e.path : t
+ };
+ o ? "json" in e && (a.json = e.json) : a.json = r;
+ a = this.evaluate(a);
+ if (!a || "object" !== C(a)) throw new x(a);
+ return a
+ }
+ }
+ F.prototype.evaluate = function(e, t, r, n) {
+ var i = this,
+ o = this.parent,
+ a = this.parentProperty,
+ s = this.flatten,
+ u = this.wrap;
+ if (this.currResultType = this.resultType, this.currEval = this.eval, this.currSandbox = this.sandbox, r = r || this.callback, this.currOtherTypeCallback = n || this.otherTypeCallback, t = t || this.json, (e = e || this.path) && "object" === C(e) && !Array.isArray(e)) {
+ if (!e.path && "" !== e.path) throw new TypeError('You must supply a "path" property when providing an object argument to JSONPath.evaluate().');
+ if (!A.call(e, "json")) throw new TypeError('You must supply a "json" property when providing an object argument to JSONPath.evaluate().');
+ t = e.json, s = A.call(e, "flatten") ? e.flatten : s, this.currResultType = A.call(e, "resultType") ? e.resultType : this.currResultType, this.currSandbox = A.call(e, "sandbox") ? e.sandbox : this.currSandbox, u = A.call(e, "wrap") ? e.wrap : u, this.currEval = A.call(e, "eval") ? e.eval : this.currEval, r = A.call(e, "callback") ? e.callback : r, this.currOtherTypeCallback = A.call(e, "otherTypeCallback") ? e.otherTypeCallback : this.currOtherTypeCallback, o = A.call(e, "parent") ? e.parent : o, a = A.call(e, "parentProperty") ? e.parentProperty : a, e = e.path
+ }
+ if (o = o || null, a = a || null, Array.isArray(e) && (e = F.toPathString(e)), (e || "" === e) && t) {
+ e = F.toPathArray(e);
+ "$" === e[0] && 1 < e.length && e.shift(), this._hasParentSelector = null;
+ r = this._trace(e, t, ["$"], o, a, r).filter(function(e) {
+ return e && !e.isParentSelector
+ });
+ return r.length ? u || 1 !== r.length || r[0].hasArrExpr ? r.reduce(function(e, t) {
+ t = i._getPreferredOutput(t);
+ return s && Array.isArray(t) ? e = e.concat(t) : e.push(t), e
+ }, []) : this._getPreferredOutput(r[0]) : u ? [] : void 0
+ }
+ }, F.prototype._getPreferredOutput = function(e) {
+ var t = this.currResultType;
+ switch (t) {
+ case "all":
+ var r = Array.isArray(e.path) ? e.path : F.toPathArray(e.path);
+ return e.pointer = F.toPointer(r), e.path = "string" == typeof e.path ? e.path : F.toPathString(e.path), e;
+ case "value":
+ case "parent":
+ case "parentProperty":
+ return e[t];
+ case "path":
+ return F.toPathString(e[t]);
+ case "pointer":
+ return F.toPointer(e.path);
+ default:
+ throw new TypeError("Unknown result type")
+ }
+ }, F.prototype._handleCallback = function(e, t, r) {
+ var n;
+ t && (n = this._getPreferredOutput(e), e.path = "string" == typeof e.path ? e.path : F.toPathString(e.path), t(n, r, e))
+ }, F.prototype._trace = function(t, n, i, o, a, s, e, r) {
+ var u = this;
+ if (!t.length) return v = {
+ path: i,
+ value: n,
+ parent: o,
+ parentProperty: a,
+ hasArrExpr: e
+ }, this._handleCallback(v, s, "value"), v;
+ var c = t[0],
+ l = t.slice(1),
+ h = [];
+
+ function p(e) {
+ Array.isArray(e) ? e.forEach(function(e) {
+ h.push(e)
+ }) : h.push(e)
+ }
+ if (("string" != typeof c || r) && n && A.call(n, c)) p(this._trace(l, n[c], w(i, c), n, c, s, e));
+ else if ("*" === c) this._walk(n, function(e) {
+ p(u._trace(l, n[e], w(i, e), n, e, s, !0, !0))
+ });
+ else if (".." === c) p(this._trace(l, n, i, o, a, s, e)), this._walk(n, function(e) {
+ "object" === C(n[e]) && p(u._trace(t.slice(), n[e], w(i, e), n, e, s, !0))
+ });
+ else {
+ if ("^" === c) return this._hasParentSelector = !0, {
+ path: i.slice(0, -1),
+ expr: l,
+ isParentSelector: !0
+ };
+ if ("~" === c) return v = {
+ path: w(i, c),
+ value: a,
+ parent: o,
+ parentProperty: null
+ }, this._handleCallback(v, s, "property"), v;
+ if ("$" === c) p(this._trace(l, n, i, null, null, s, e));
+ else if (/^(\x2D?[0-9]*):(\x2D?[0-9]*):?([0-9]*)$/.test(c)) p(this._slice(c, l, n, i, o, a, s));
+ else if (0 === c.indexOf("?(")) {
+ if (!1 === this.currEval) throw new Error("Eval [?(expr)] prevented in JSONPath expression.");
+ var f = c.replace(/^\?\(((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?)\)$/, "$1"),
+ d = /@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])?((?:[\0->@-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))(?!(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])\)\])['\]]/g.exec(f);
+ d ? this._walk(n, function(e) {
+ var t = [d[2]],
+ r = d[1] ? n[e][d[1]] : n[e];
+ 0 < u._trace(t, r, i, o, a, s, !0).length && p(u._trace(l, n[e], w(i, e), n, e, s, !0))
+ }) : this._walk(n, function(e) {
+ u._eval(f, n[e], e, i, o, a) && p(u._trace(l, n[e], w(i, e), n, e, s, !0))
+ })
+ } else if ("(" === c[0]) {
+ if (!1 === this.currEval) throw new Error("Eval [(expr)] prevented in JSONPath expression.");
+ p(this._trace(k(this._eval(c, n, i[i.length - 1], i.slice(0, -1), o, a), l), n, i, o, a, s, e))
+ } else if ("@" === c[0]) {
+ var y = !1,
+ b = c.slice(1, -2);
+ switch (b) {
+ case "scalar":
+ n && ["object", "function"].includes(C(n)) || (y = !0);
+ break;
+ case "boolean":
+ case "string":
+ case "undefined":
+ case "function":
+ C(n) === b && (y = !0);
+ break;
+ case "integer":
+ !Number.isFinite(n) || n % 1 || (y = !0);
+ break;
+ case "number":
+ Number.isFinite(n) && (y = !0);
+ break;
+ case "nonFinite":
+ "number" != typeof n || Number.isFinite(n) || (y = !0);
+ break;
+ case "object":
+ n && C(n) === b && (y = !0);
+ break;
+ case "array":
+ Array.isArray(n) && (y = !0);
+ break;
+ case "other":
+ y = this.currOtherTypeCallback(n, i, o, a);
+ break;
+ case "null":
+ null === n && (y = !0);
+ break;
+ default:
+ throw new TypeError("Unknown value type " + b)
+ }
+ if (y) return v = {
+ path: i,
+ value: n,
+ parent: o,
+ parentProperty: a
+ }, this._handleCallback(v, s, "value"), v
+ } else if ("`" === c[0] && n && A.call(n, c.slice(1))) {
+ var v = c.slice(1);
+ p(this._trace(l, n[v], w(i, v), n, v, s, e, !0))
+ } else if (c.includes(",")) {
+ var E = function(e, t) {
+ var r = "undefined" != typeof Symbol && e[Symbol.iterator] || e["@@iterator"];
+ if (!r) {
+ if (Array.isArray(e) || (r = O(e)) || t && e && "number" == typeof e.length) {
+ r && (e = r);
+ var n = 0,
+ t = function() {};
+ return {
+ s: t,
+ n: function() {
+ return n >= e.length ? {
+ done: !0
+ } : {
+ done: !1,
+ value: e[n++]
+ }
+ },
+ e: function(e) {
+ throw e
+ },
+ f: t
+ }
+ }
+ 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 i, o = !0,
+ a = !1;
+ return {
+ s: function() {
+ r = r.call(e)
+ },
+ n: function() {
+ var e = r.next();
+ return o = e.done, e
+ },
+ e: function(e) {
+ a = !0, i = e
+ },
+ f: function() {
+ try {
+ o || null == r.return || r.return()
+ } finally {
+ if (a) throw i
+ }
+ }
+ }
+ }(c.split(","));
+ try {
+ for (E.s(); !(g = E.n()).done;) {
+ var g = g.value;
+ p(this._trace(k(g, l), n, i, o, a, s, !0))
+ }
+ } catch (e) {
+ E.e(e)
+ } finally {
+ E.f()
+ }
+ } else !r && n && A.call(n, c) && p(this._trace(l, n[c], w(i, c), n, c, s, e, !0))
+ }
+ if (this._hasParentSelector)
+ for (var x = 0; x < h.length; x++) {
+ var F = h[x];
+ if (F && F.isParentSelector) {
+ var D = this._trace(F.expr, n, F.path, o, a, s, e);
+ if (Array.isArray(D)) {
+ h[x] = D[0];
+ for (var _ = D.length, m = 1; m < _; m++) x++, h.splice(x, 0, D[m])
+ } else h[x] = D
+ }
+ }
+ return h
+ }, F.prototype._walk = function(e, t) {
+ if (Array.isArray(e))
+ for (var r = e.length, n = 0; n < r; n++) t(n);
+ else e && "object" === C(e) && Object.keys(e).forEach(function(e) {
+ t(e)
+ })
+ }, F.prototype._slice = function(e, t, r, n, i, o, a) {
+ if (Array.isArray(r)) {
+ for (var s = r.length, u = e.split(":"), c = u[2] && Number.parseInt(u[2]) || 1, e = u[0] && Number.parseInt(u[0]) || 0, l = u[1] && Number.parseInt(u[1]) || s, e = e < 0 ? Math.max(0, e + s) : Math.min(s, e), l = l < 0 ? Math.max(0, l + s) : Math.min(s, l), h = [], p = e; p < l; p += c) this._trace(k(p, t), r, n, i, o, a, !0).forEach(function(e) {
+ h.push(e)
+ });
+ return h
+ }
+ }, F.prototype._eval = function(t, e, r, n, i, o) {
+ var a = this;
+ this.currSandbox._$_parentProperty = o, this.currSandbox._$_parent = i, this.currSandbox._$_property = r, this.currSandbox._$_root = this.json, this.currSandbox._$_v = e;
+ e = t.includes("@path");
+ e && (this.currSandbox._$_path = F.toPathString(n.concat([r])));
+ var s = this.currEval + "Script:" + t;
+ if (!F.cache[s]) {
+ var u = t.replace(/@parentProperty/g, "_$_parentProperty").replace(/@parent/g, "_$_parent").replace(/@property/g, "_$_property").replace(/@root/g, "_$_root").replace(/@([\t-\r \)\.\[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF])/g, "_$_v$1");
+ if (e && (u = u.replace(/@path/g, "_$_path")), "safe" === this.currEval || !0 === this.currEval || void 0 === this.currEval) F.cache[s] = new this.safeVm.Script(u);
+ else if ("native" === this.currEval) F.cache[s] = new this.vm.Script(u);
+ else if ("function" == typeof this.currEval && this.currEval.prototype && A.call(this.currEval.prototype, "runInNewContext")) {
+ e = this.currEval;
+ F.cache[s] = new e(u)
+ } else {
+ if ("function" != typeof this.currEval) throw new TypeError('Unknown "eval" property "'.concat(this.currEval, '"'));
+ F.cache[s] = {
+ runInNewContext: function(e) {
+ return a.currEval(u, e)
+ }
+ }
+ }
+ }
+ try {
+ return F.cache[s].runInNewContext(this.currSandbox)
+ } catch (e) {
+ if (this.ignoreEvalErrors) return !1;
+ throw new Error("jsonPath: " + e.message + ": " + t)
+ }
+ }, F.cache = {}, F.toPathString = function(e) {
+ for (var t = e, r = t.length, n = "$", i = 1; i < r; i++) /^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[i]) || (n += /^[\*0-9]+$/.test(t[i]) ? "[" + t[i] + "]" : "['" + t[i] + "']");
+ return n
+ }, F.toPointer = function(e) {
+ for (var t = e, r = t.length, n = "", i = 1; i < r; i++) /^(~|\^|@(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\(\))$/.test(t[i]) || (n += "/" + t[i].toString().replace(/~/g, "~0").replace(/\//g, "~1"));
+ return n
+ }, F.toPathArray = function(e) {
+ var t = F.cache;
+ if (t[e]) return t[e].concat();
+ var r = [],
+ n = e.replace(/@(?:null|boolean|number|string|integer|undefined|nonFinite|scalar|array|object|function|other)\(\)/g, ";$&;").replace(/['\[](\??\((?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*?\))['\]](?!(?:[\0-\t\x0B\f\x0E-\u2027\u202A-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])\])/g, function(e, t) {
+ return "[#" + (r.push(t) - 1) + "]"
+ }).replace(/\[["']((?:[\0-&\(-\\\^-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)["']\]/g, function(e, t) {
+ return "['" + t.replace(/\./g, "%@%").replace(/~/g, "%%@@%%") + "']"
+ }).replace(/~/g, ";~;").replace(/["']?\.["']?(?!(?:[\0-Z\\-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*\])|\[["']?/g, ";").replace(/%@%/g, ".").replace(/%%@@%%/g, "~").replace(/(?:;)?(\^+)(?:;)?/g, function(e, t) {
+ return ";" + t.split("").join(";") + ";"
+ }).replace(/;;;|;;/g, ";..;").replace(/;$|'?\]|'$/g, "").split(";").map(function(e) {
+ var t = e.match(/#([0-9]+)/);
+ return t && t[1] ? r[t[1]] : e
+ });
+ return t[e] = n, t[e].concat()
+ };
+ E.plugins.register(b, g);
+ var D = {
+ evalAst: function(e, t) {
+ switch (e.type) {
+ case "BinaryExpression":
+ case "LogicalExpression":
+ return D.evalBinaryExpression(e, t);
+ case "Compound":
+ return D.evalCompound(e, t);
+ case "ConditionalExpression":
+ return D.evalConditionalExpression(e, t);
+ case "Identifier":
+ return D.evalIdentifier(e, t);
+ case "Literal":
+ return D.evalLiteral(e, t);
+ case "MemberExpression":
+ return D.evalMemberExpression(e, t);
+ case "UnaryExpression":
+ return D.evalUnaryExpression(e, t);
+ case "ArrayExpression":
+ return D.evalArrayExpression(e, t);
+ case "CallExpression":
+ return D.evalCallExpression(e, t);
+ case "AssignmentExpression":
+ return D.evalAssignmentExpression(e, t);
+ default:
+ throw SyntaxError("Unexpected expression", e)
+ }
+ },
+ evalBinaryExpression: function(e, t) {
+ return {
+ "||": function(e, t) {
+ return e || t()
+ },
+ "&&": function(e, t) {
+ return e && t()
+ },
+ "|": function(e, t) {
+ return e | t()
+ },
+ "^": function(e, t) {
+ return e ^ t()
+ },
+ "&": function(e, t) {
+ return e & t()
+ },
+ "==": function(e, t) {
+ return e == t()
+ },
+ "!=": function(e, t) {
+ return e != t()
+ },
+ "===": function(e, t) {
+ return e === t()
+ },
+ "!==": function(e, t) {
+ return e !== t()
+ },
+ "<": function(e, t) {
+ return e < t()
+ },
+ ">": function(e, t) {
+ return e > t()
+ },
+ "<=": function(e, t) {
+ return e <= t()
+ },
+ ">=": function(e, t) {
+ return e >= t()
+ },
+ "<<": function(e, t) {
+ return e << t()
+ },
+ ">>": function(e, t) {
+ return e >> t()
+ },
+ ">>>": function(e, t) {
+ return e >>> t()
+ },
+ "+": function(e, t) {
+ return e + t()
+ },
+ "-": function(e, t) {
+ return e - t()
+ },
+ "*": function(e, t) {
+ return e * t()
+ },
+ "/": function(e, t) {
+ return e / t()
+ },
+ "%": function(e, t) {
+ return e % t()
+ }
+ } [e.operator](D.evalAst(e.left, t), function() {
+ return D.evalAst(e.right, t)
+ })
+ },
+ evalCompound: function(e, t) {
+ for (var r = 0; r < e.body.length; r++) {
+ "Identifier" === e.body[r].type && ["var", "let", "const"].includes(e.body[r].name) && e.body[r + 1] && "AssignmentExpression" === e.body[r + 1].type && (r += 1);
+ var n = e.body[r],
+ i = D.evalAst(n, t)
+ }
+ return i
+ },
+ evalConditionalExpression: function(e, t) {
+ return D.evalAst(e.test, t) ? D.evalAst(e.consequent, t) : D.evalAst(e.alternate, t)
+ },
+ evalIdentifier: function(e, t) {
+ if (e.name in t) return t[e.name];
+ throw ReferenceError("".concat(e.name, " is not defined"))
+ },
+ evalLiteral: function(e) {
+ return e.value
+ },
+ evalMemberExpression: function(e, t) {
+ var r = e.computed ? D.evalAst(e.property) : e.property.name,
+ t = D.evalAst(e.object, t),
+ r = t[r];
+ return "function" == typeof r ? r.bind(t) : r
+ },
+ evalUnaryExpression: function(e, t) {
+ return {
+ "-": function(e) {
+ return -D.evalAst(e, t)
+ },
+ "!": function(e) {
+ return !D.evalAst(e, t)
+ },
+ "~": function(e) {
+ return ~D.evalAst(e, t)
+ },
+ "+": function(e) {
+ return +D.evalAst(e, t)
+ }
+ } [e.operator](e.argument)
+ },
+ evalArrayExpression: function(e, t) {
+ return e.elements.map(function(e) {
+ return D.evalAst(e, t)
+ })
+ },
+ evalCallExpression: function(e, t) {
+ var r = e.arguments.map(function(e) {
+ return D.evalAst(e, t)
+ });
+ return D.evalAst(e.callee, t).apply(void 0, f(r))
+ },
+ evalAssignmentExpression: function(e, t) {
+ if ("Identifier" !== e.left.type) throw SyntaxError("Invalid left-hand side in assignment");
+ var r = e.left.name,
+ e = D.evalAst(e.right, t);
+ return t[r] = e, t[r]
+ }
+ },
+ b = function() {
+ return c(function e(t) {
+ s(this, e), this.code = t, this.ast = E(this.code)
+ }, [{
+ key: "runInNewContext",
+ value: function(e) {
+ e = r({}, e);
+ return D.evalAst(this.ast, e)
+ }
+ }])
+ }();
+ F.prototype.vm = {
+ Script: function() {
+ return c(function e(t) {
+ s(this, e), this.code = t
+ }, [{
+ key: "runInNewContext",
+ value: function(n) {
+ var e = this.code,
+ t = Object.keys(n),
+ r = [];
+ ! function(e, t, r) {
+ for (var n = e.length, i = 0; i < n; i++) r(e[i]) && t.push(e.splice(i--, 1)[0])
+ }(t, r, function(e) {
+ return "function" == typeof n[e]
+ });
+ var i = t.map(function(e) {
+ return n[e]
+ }),
+ r = r.reduce(function(e, t) {
+ var r = n[t].toString();
+ return /function/.test(r) || (r = "function " + r), "var " + t + "=" + r + ";" + e
+ }, "");
+ /(["'])use strict\1/.test(e = r + e) || t.includes("arguments") || (e = "var arguments = undefined;" + e);
+ r = (e = e.replace(/;[\t-\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/, "")).lastIndexOf(";"), e = -1 < r ? e.slice(0, r + 1) + " return " + e.slice(r + 1) : " return " + e;
+ return o(Function, t.concat([e])).apply(void 0, f(i))
+ }
+ }])
+ }()
+ }, F.prototype.safeVm = {
+ Script: b
+ }, e.JSONPath = F, e.SafeScript = b
+});
\ No newline at end of file
diff --git a/JS/node-rsa.js b/JS/node-rsa.js
new file mode 100644
index 0000000..fab092b
--- /dev/null
+++ b/JS/node-rsa.js
@@ -0,0 +1,5858 @@
+/*! For license information please see node-rsa.bundle.js.LICENSE.txt */ ! function(t, e) {
+ "object" == typeof exports && "object" == typeof module ? module.exports = e() : "function" == typeof define && define.amd ? define([], e) : "object" == typeof exports ? exports.NODERSA = e() : t.NODERSA = e()
+}(globalThis, (() => (() => {
+ var t = {
+ 6395: t => {
+ t.exports = {
+ newInvalidAsn1Error: function(t) {
+ var e = new Error;
+ return e.name = "InvalidAsn1Error", e.message = t || "", e
+ }
+ }
+ },
+ 5670: (t, e, r) => {
+ var n = r(6395),
+ i = r(6299),
+ o = r(3319),
+ s = r(1431);
+ for (var a in t.exports = {
+ Reader: o,
+ Writer: s
+ }, i) i.hasOwnProperty(a) && (t.exports[a] = i[a]);
+ for (var f in n) n.hasOwnProperty(f) && (t.exports[f] = n[f])
+ },
+ 3319: (t, e, r) => {
+ var n = r(4529),
+ i = r(4774).Buffer,
+ o = r(6299),
+ s = r(6395).newInvalidAsn1Error;
+
+ function a(t) {
+ if (!t || !i.isBuffer(t)) throw new TypeError("data must be a node Buffer");
+ this._buf = t, this._size = t.length, this._len = 0, this._offset = 0
+ }
+ Object.defineProperty(a.prototype, "length", {
+ enumerable: !0,
+ get: function() {
+ return this._len
+ }
+ }), Object.defineProperty(a.prototype, "offset", {
+ enumerable: !0,
+ get: function() {
+ return this._offset
+ }
+ }), Object.defineProperty(a.prototype, "remain", {
+ get: function() {
+ return this._size - this._offset
+ }
+ }), Object.defineProperty(a.prototype, "buffer", {
+ get: function() {
+ return this._buf.slice(this._offset)
+ }
+ }), a.prototype.readByte = function(t) {
+ if (this._size - this._offset < 1) return null;
+ var e = 255 & this._buf[this._offset];
+ return t || (this._offset += 1), e
+ }, a.prototype.peek = function() {
+ return this.readByte(!0)
+ }, a.prototype.readLength = function(t) {
+ if (void 0 === t && (t = this._offset), t >= this._size) return null;
+ var e = 255 & this._buf[t++];
+ if (null === e) return null;
+ if (128 & ~e) this._len = e;
+ else {
+ if (0 == (e &= 127)) throw s("Indefinite length not supported");
+ if (e > 4) throw s("encoding too long");
+ if (this._size - t < e) return null;
+ this._len = 0;
+ for (var r = 0; r < e; r++) this._len = (this._len << 8) + (255 & this._buf[t++])
+ }
+ return t
+ }, a.prototype.readSequence = function(t) {
+ var e = this.peek();
+ if (null === e) return null;
+ if (void 0 !== t && t !== e) throw s("Expected 0x" + t.toString(16) + ": got 0x" + e.toString(16));
+ var r = this.readLength(this._offset + 1);
+ return null === r ? null : (this._offset = r, e)
+ }, a.prototype.readInt = function() {
+ return this._readTag(o.Integer)
+ }, a.prototype.readBoolean = function() {
+ return 0 !== this._readTag(o.Boolean)
+ }, a.prototype.readEnumeration = function() {
+ return this._readTag(o.Enumeration)
+ }, a.prototype.readString = function(t, e) {
+ t || (t = o.OctetString);
+ var r = this.peek();
+ if (null === r) return null;
+ if (r !== t) throw s("Expected 0x" + t.toString(16) + ": got 0x" + r.toString(16));
+ var n = this.readLength(this._offset + 1);
+ if (null === n) return null;
+ if (this.length > this._size - n) return null;
+ if (this._offset = n, 0 === this.length) return e ? i.alloc(0) : "";
+ var a = this._buf.slice(this._offset, this._offset + this.length);
+ return this._offset += this.length, e ? a : a.toString("utf8")
+ }, a.prototype.readOID = function(t) {
+ t || (t = o.OID);
+ var e = this.readString(t, !0);
+ if (null === e) return null;
+ for (var r = [], n = 0, i = 0; i < e.length; i++) {
+ var s = 255 & e[i];
+ n <<= 7, n += 127 & s, 128 & s || (r.push(n), n = 0)
+ }
+ return n = r.shift(), r.unshift(n % 40), r.unshift(n / 40 | 0), r.join(".")
+ }, a.prototype._readTag = function(t) {
+ n.ok(void 0 !== t);
+ var e = this.peek();
+ if (null === e) return null;
+ if (e !== t) throw s("Expected 0x" + t.toString(16) + ": got 0x" + e.toString(16));
+ var r = this.readLength(this._offset + 1);
+ if (null === r) return null;
+ if (this.length > 4) throw s("Integer too long: " + this.length);
+ if (this.length > this._size - r) return null;
+ this._offset = r;
+ for (var i = this._buf[this._offset], o = 0, a = 0; a < this.length; a++) o <<= 8, o |= 255 & this._buf[this._offset++];
+ return 128 & ~i || 4 === a || (o -= 1 << 8 * a), 0 | o
+ }, t.exports = a
+ },
+ 6299: t => {
+ t.exports = {
+ EOC: 0,
+ Boolean: 1,
+ Integer: 2,
+ BitString: 3,
+ OctetString: 4,
+ Null: 5,
+ OID: 6,
+ ObjectDescriptor: 7,
+ External: 8,
+ Real: 9,
+ Enumeration: 10,
+ PDV: 11,
+ Utf8String: 12,
+ RelativeOID: 13,
+ Sequence: 16,
+ Set: 17,
+ NumericString: 18,
+ PrintableString: 19,
+ T61String: 20,
+ VideotexString: 21,
+ IA5String: 22,
+ UTCTime: 23,
+ GeneralizedTime: 24,
+ GraphicString: 25,
+ VisibleString: 26,
+ GeneralString: 28,
+ UniversalString: 29,
+ CharacterString: 30,
+ BMPString: 31,
+ Constructor: 32,
+ Context: 128
+ }
+ },
+ 1431: (t, e, r) => {
+ var n = r(4529),
+ i = r(4774).Buffer,
+ o = r(6299),
+ s = r(6395).newInvalidAsn1Error,
+ a = {
+ size: 1024,
+ growthFactor: 8
+ };
+
+ function f(t) {
+ var e, r;
+ e = a, r = t || {}, n.ok(e), n.equal(typeof e, "object"), n.ok(r), n.equal(typeof r, "object"), Object.getOwnPropertyNames(e).forEach((function(t) {
+ if (!r[t]) {
+ var n = Object.getOwnPropertyDescriptor(e, t);
+ Object.defineProperty(r, t, n)
+ }
+ })), t = r, this._buf = i.alloc(t.size || 1024), this._size = this._buf.length, this._offset = 0, this._options = t, this._seq = []
+ }
+ Object.defineProperty(f.prototype, "buffer", {
+ get: function() {
+ if (this._seq.length) throw s(this._seq.length + " unended sequence(s)");
+ return this._buf.slice(0, this._offset)
+ }
+ }), f.prototype.writeByte = function(t) {
+ if ("number" != typeof t) throw new TypeError("argument must be a Number");
+ this._ensure(1), this._buf[this._offset++] = t
+ }, f.prototype.writeInt = function(t, e) {
+ if ("number" != typeof t) throw new TypeError("argument must be a Number");
+ "number" != typeof e && (e = o.Integer);
+ for (var r = 4;
+ (!(4286578688 & t) || -8388608 == (4286578688 & t)) && r > 1;) r--, t <<= 8;
+ if (r > 4) throw s("BER ints cannot be > 0xffffffff");
+ for (this._ensure(2 + r), this._buf[this._offset++] = e, this._buf[this._offset++] = r; r-- > 0;) this._buf[this._offset++] = (4278190080 & t) >>> 24, t <<= 8
+ }, f.prototype.writeNull = function() {
+ this.writeByte(o.Null), this.writeByte(0)
+ }, f.prototype.writeEnumeration = function(t, e) {
+ if ("number" != typeof t) throw new TypeError("argument must be a Number");
+ return "number" != typeof e && (e = o.Enumeration), this.writeInt(t, e)
+ }, f.prototype.writeBoolean = function(t, e) {
+ if ("boolean" != typeof t) throw new TypeError("argument must be a Boolean");
+ "number" != typeof e && (e = o.Boolean), this._ensure(3), this._buf[this._offset++] = e, this._buf[this._offset++] = 1, this._buf[this._offset++] = t ? 255 : 0
+ }, f.prototype.writeString = function(t, e) {
+ if ("string" != typeof t) throw new TypeError("argument must be a string (was: " + typeof t + ")");
+ "number" != typeof e && (e = o.OctetString);
+ var r = i.byteLength(t);
+ this.writeByte(e), this.writeLength(r), r && (this._ensure(r), this._buf.write(t, this._offset), this._offset += r)
+ }, f.prototype.writeBuffer = function(t, e) {
+ if ("number" != typeof e) throw new TypeError("tag must be a number");
+ if (!i.isBuffer(t)) throw new TypeError("argument must be a buffer");
+ this.writeByte(e), this.writeLength(t.length), this._ensure(t.length), t.copy(this._buf, this._offset, 0, t.length), this._offset += t.length
+ }, f.prototype.writeStringArray = function(t) {
+ if (!t instanceof Array) throw new TypeError("argument must be an Array[String]");
+ var e = this;
+ t.forEach((function(t) {
+ e.writeString(t)
+ }))
+ }, f.prototype.writeOID = function(t, e) {
+ if ("string" != typeof t) throw new TypeError("argument must be a string");
+ if ("number" != typeof e && (e = o.OID), !/^([0-9]+\.){3,}[0-9]+$/.test(t)) throw new Error("argument is not a valid OID string");
+ var r = t.split("."),
+ n = [];
+ n.push(40 * parseInt(r[0], 10) + parseInt(r[1], 10)), r.slice(2).forEach((function(t) {
+ ! function(t, e) {
+ e < 128 ? t.push(e) : e < 16384 ? (t.push(e >>> 7 | 128), t.push(127 & e)) : e < 2097152 ? (t.push(e >>> 14 | 128), t.push(e >>> 7 & 255 | 128), t.push(127 & e)) : e < 268435456 ? (t.push(e >>> 21 | 128), t.push(e >>> 14 & 255 | 128), t.push(e >>> 7 & 255 | 128), t.push(127 & e)) : (t.push(e >>> 28 & 255 | 128), t.push(e >>> 21 & 255 | 128), t.push(e >>> 14 & 255 | 128), t.push(e >>> 7 & 255 | 128), t.push(127 & e))
+ }(n, parseInt(t, 10))
+ }));
+ var i = this;
+ this._ensure(2 + n.length), this.writeByte(e), this.writeLength(n.length), n.forEach((function(t) {
+ i.writeByte(t)
+ }))
+ }, f.prototype.writeLength = function(t) {
+ if ("number" != typeof t) throw new TypeError("argument must be a Number");
+ if (this._ensure(4), t <= 127) this._buf[this._offset++] = t;
+ else if (t <= 255) this._buf[this._offset++] = 129, this._buf[this._offset++] = t;
+ else if (t <= 65535) this._buf[this._offset++] = 130, this._buf[this._offset++] = t >> 8, this._buf[this._offset++] = t;
+ else {
+ if (!(t <= 16777215)) throw s("Length too long (> 4 bytes)");
+ this._buf[this._offset++] = 131, this._buf[this._offset++] = t >> 16, this._buf[this._offset++] = t >> 8, this._buf[this._offset++] = t
+ }
+ }, f.prototype.startSequence = function(t) {
+ "number" != typeof t && (t = o.Sequence | o.Constructor), this.writeByte(t), this._seq.push(this._offset), this._ensure(3), this._offset += 3
+ }, f.prototype.endSequence = function() {
+ var t = this._seq.pop(),
+ e = t + 3,
+ r = this._offset - e;
+ if (r <= 127) this._shift(e, r, -2), this._buf[t] = r;
+ else if (r <= 255) this._shift(e, r, -1), this._buf[t] = 129, this._buf[t + 1] = r;
+ else if (r <= 65535) this._buf[t] = 130, this._buf[t + 1] = r >> 8, this._buf[t + 2] = r;
+ else {
+ if (!(r <= 16777215)) throw s("Sequence too long");
+ this._shift(e, r, 1), this._buf[t] = 131, this._buf[t + 1] = r >> 16, this._buf[t + 2] = r >> 8, this._buf[t + 3] = r
+ }
+ }, f.prototype._shift = function(t, e, r) {
+ n.ok(void 0 !== t), n.ok(void 0 !== e), n.ok(r), this._buf.copy(this._buf, t + r, t, t + e), this._offset += r
+ }, f.prototype._ensure = function(t) {
+ if (n.ok(t), this._size - this._offset < t) {
+ var e = this._size * this._options.growthFactor;
+ e - this._offset < t && (e += t);
+ var r = i.alloc(e);
+ this._buf.copy(r, 0, 0, this._offset), this._buf = r, this._size = e
+ }
+ }, t.exports = f
+ },
+ 3100: (t, e, r) => {
+ var n = r(5670);
+ t.exports = {
+ Ber: n,
+ BerReader: n.Reader,
+ BerWriter: n.Writer
+ }
+ },
+ 4529: (t, e, r) => {
+ "use strict";
+ var n = r(1514)();
+
+ function i(t, e) {
+ if (t === e) return 0;
+ for (var r = t.length, n = e.length, i = 0, o = Math.min(r, n); i < o; ++i)
+ if (t[i] !== e[i]) {
+ r = t[i], n = e[i];
+ break
+ } return r < n ? -1 : n < r ? 1 : 0
+ }
+
+ function o(t) {
+ return r.g.Buffer && "function" == typeof r.g.Buffer.isBuffer ? r.g.Buffer.isBuffer(t) : !(null == t || !t._isBuffer)
+ }
+ var s = r(4591),
+ a = Object.prototype.hasOwnProperty,
+ f = Array.prototype.slice,
+ u = "foo" === function() {}.name;
+
+ function c(t) {
+ return Object.prototype.toString.call(t)
+ }
+
+ function h(t) {
+ return !o(t) && "function" == typeof r.g.ArrayBuffer && ("function" == typeof ArrayBuffer.isView ? ArrayBuffer.isView(t) : !!t && (t instanceof DataView || !!(t.buffer && t.buffer instanceof ArrayBuffer)))
+ }
+ var p = t.exports = m,
+ l = /\s*function\s+([^\(\s]*)\s*/;
+
+ function y(t) {
+ if (s.isFunction(t)) {
+ if (u) return t.name;
+ var e = t.toString().match(l);
+ return e && e[1]
+ }
+ }
+
+ function g(t, e) {
+ return "string" == typeof t ? t.length < e ? t : t.slice(0, e) : t
+ }
+
+ function d(t) {
+ if (u || !s.isFunction(t)) return s.inspect(t);
+ var e = y(t);
+ return "[Function" + (e ? ": " + e : "") + "]"
+ }
+
+ function v(t, e, r, n, i) {
+ throw new p.AssertionError({
+ message: r,
+ actual: t,
+ expected: e,
+ operator: n,
+ stackStartFunction: i
+ })
+ }
+
+ function m(t, e) {
+ t || v(t, !0, e, "==", p.ok)
+ }
+
+ function S(t, e, r, n) {
+ if (t === e) return !0;
+ if (o(t) && o(e)) return 0 === i(t, e);
+ if (s.isDate(t) && s.isDate(e)) return t.getTime() === e.getTime();
+ if (s.isRegExp(t) && s.isRegExp(e)) return t.source === e.source && t.global === e.global && t.multiline === e.multiline && t.lastIndex === e.lastIndex && t.ignoreCase === e.ignoreCase;
+ if (null !== t && "object" == typeof t || null !== e && "object" == typeof e) {
+ if (h(t) && h(e) && c(t) === c(e) && !(t instanceof Float32Array || t instanceof Float64Array)) return 0 === i(new Uint8Array(t.buffer), new Uint8Array(e.buffer));
+ if (o(t) !== o(e)) return !1;
+ var a = (n = n || {
+ actual: [],
+ expected: []
+ }).actual.indexOf(t);
+ return -1 !== a && a === n.expected.indexOf(e) || (n.actual.push(t), n.expected.push(e), function(t, e, r, n) {
+ if (null == t || null == e) return !1;
+ if (s.isPrimitive(t) || s.isPrimitive(e)) return t === e;
+ if (r && Object.getPrototypeOf(t) !== Object.getPrototypeOf(e)) return !1;
+ var i = _(t),
+ o = _(e);
+ if (i && !o || !i && o) return !1;
+ if (i) return S(t = f.call(t), e = f.call(e), r);
+ var a, u, c = w(t),
+ h = w(e);
+ if (c.length !== h.length) return !1;
+ for (c.sort(), h.sort(), u = c.length - 1; u >= 0; u--)
+ if (c[u] !== h[u]) return !1;
+ for (u = c.length - 1; u >= 0; u--)
+ if (!S(t[a = c[u]], e[a], r, n)) return !1;
+ return !0
+ }(t, e, r, n))
+ }
+ return r ? t === e : t == e
+ }
+
+ function _(t) {
+ return "[object Arguments]" == Object.prototype.toString.call(t)
+ }
+
+ function b(t, e) {
+ if (!t || !e) return !1;
+ if ("[object RegExp]" == Object.prototype.toString.call(e)) return e.test(t);
+ try {
+ if (t instanceof e) return !0
+ } catch (t) {}
+ return !Error.isPrototypeOf(e) && !0 === e.call({}, t)
+ }
+
+ function E(t, e, r, n) {
+ var i;
+ if ("function" != typeof e) throw new TypeError('"block" argument must be a function');
+ "string" == typeof r && (n = r, r = null), i = function(t) {
+ var e;
+ try {
+ t()
+ } catch (t) {
+ e = t
+ }
+ return e
+ }(e), n = (r && r.name ? " (" + r.name + ")." : ".") + (n ? " " + n : "."), t && !i && v(i, r, "Missing expected exception" + n);
+ var o = "string" == typeof n,
+ a = !t && i && !r;
+ if ((!t && s.isError(i) && o && b(i, r) || a) && v(i, r, "Got unwanted exception" + n), t && i && r && !b(i, r) || !t && i) throw i
+ }
+ p.AssertionError = function(t) {
+ this.name = "AssertionError", this.actual = t.actual, this.expected = t.expected, this.operator = t.operator, t.message ? (this.message = t.message, this.generatedMessage = !1) : (this.message = g(d(this.actual), 128) + " " + this.operator + " " + g(d(this.expected), 128), this.generatedMessage = !0);
+ var e = t.stackStartFunction || v;
+ if (Error.captureStackTrace) Error.captureStackTrace(this, e);
+ else {
+ var r = new Error;
+ if (r.stack) {
+ var n = r.stack,
+ i = y(e),
+ o = n.indexOf("\n" + i);
+ if (o >= 0) {
+ var s = n.indexOf("\n", o + 1);
+ n = n.substring(s + 1)
+ }
+ this.stack = n
+ }
+ }
+ }, s.inherits(p.AssertionError, Error), p.fail = v, p.ok = m, p.equal = function(t, e, r) {
+ t != e && v(t, e, r, "==", p.equal)
+ }, p.notEqual = function(t, e, r) {
+ t == e && v(t, e, r, "!=", p.notEqual)
+ }, p.deepEqual = function(t, e, r) {
+ S(t, e, !1) || v(t, e, r, "deepEqual", p.deepEqual)
+ }, p.deepStrictEqual = function(t, e, r) {
+ S(t, e, !0) || v(t, e, r, "deepStrictEqual", p.deepStrictEqual)
+ }, p.notDeepEqual = function(t, e, r) {
+ S(t, e, !1) && v(t, e, r, "notDeepEqual", p.notDeepEqual)
+ }, p.notDeepStrictEqual = function t(e, r, n) {
+ S(e, r, !0) && v(e, r, n, "notDeepStrictEqual", t)
+ }, p.strictEqual = function(t, e, r) {
+ t !== e && v(t, e, r, "===", p.strictEqual)
+ }, p.notStrictEqual = function(t, e, r) {
+ t === e && v(t, e, r, "!==", p.notStrictEqual)
+ }, p.throws = function(t, e, r) {
+ E(!0, t, e, r)
+ }, p.doesNotThrow = function(t, e, r) {
+ E(!1, t, e, r)
+ }, p.ifError = function(t) {
+ if (t) throw t
+ }, p.strict = n((function t(e, r) {
+ e || v(e, !0, r, "==", t)
+ }), p, {
+ equal: p.strictEqual,
+ deepEqual: p.deepStrictEqual,
+ notEqual: p.notStrictEqual,
+ notDeepEqual: p.notDeepStrictEqual
+ }), p.strict.strict = p.strict;
+ var w = Object.keys || function(t) {
+ var e = [];
+ for (var r in t) a.call(t, r) && e.push(r);
+ return e
+ }
+ },
+ 6100: t => {
+ "function" == typeof Object.create ? t.exports = function(t, e) {
+ t.super_ = e, t.prototype = Object.create(e.prototype, {
+ constructor: {
+ value: t,
+ enumerable: !1,
+ writable: !0,
+ configurable: !0
+ }
+ })
+ } : t.exports = function(t, e) {
+ t.super_ = e;
+ var r = function() {};
+ r.prototype = e.prototype, t.prototype = new r, t.prototype.constructor = t
+ }
+ },
+ 3845: t => {
+ t.exports = function(t) {
+ return t && "object" == typeof t && "function" == typeof t.copy && "function" == typeof t.fill && "function" == typeof t.readUInt8
+ }
+ },
+ 4591: (t, e, r) => {
+ var n = r(5606),
+ i = /%[sdj%]/g;
+ e.format = function(t) {
+ if (!v(t)) {
+ for (var e = [], r = 0; r < arguments.length; r++) e.push(a(arguments[r]));
+ return e.join(" ")
+ }
+ r = 1;
+ for (var n = arguments, o = n.length, s = String(t).replace(i, (function(t) {
+ if ("%%" === t) return "%";
+ if (r >= o) return t;
+ switch (t) {
+ case "%s":
+ return String(n[r++]);
+ case "%d":
+ return Number(n[r++]);
+ case "%j":
+ try {
+ return JSON.stringify(n[r++])
+ } catch (t) {
+ return "[Circular]"
+ }
+ default:
+ return t
+ }
+ })), f = n[r]; r < o; f = n[++r]) g(f) || !_(f) ? s += " " + f : s += " " + a(f);
+ return s
+ }, e.deprecate = function(t, i) {
+ if (m(r.g.process)) return function() {
+ return e.deprecate(t, i).apply(this, arguments)
+ };
+ if (!0 === n.noDeprecation) return t;
+ var o = !1;
+ return function() {
+ if (!o) {
+ if (n.throwDeprecation) throw new Error(i);
+ n.traceDeprecation ? console.trace(i) : console.error(i), o = !0
+ }
+ return t.apply(this, arguments)
+ }
+ };
+ var o, s = {};
+
+ function a(t, r) {
+ var n = {
+ seen: [],
+ stylize: u
+ };
+ return arguments.length >= 3 && (n.depth = arguments[2]), arguments.length >= 4 && (n.colors = arguments[3]), y(r) ? n.showHidden = r : r && e._extend(n, r), m(n.showHidden) && (n.showHidden = !1), m(n.depth) && (n.depth = 2), m(n.colors) && (n.colors = !1), m(n.customInspect) && (n.customInspect = !0), n.colors && (n.stylize = f), c(n, t, n.depth)
+ }
+
+ function f(t, e) {
+ var r = a.styles[e];
+ return r ? "[" + a.colors[r][0] + "m" + t + "[" + a.colors[r][1] + "m" : t
+ }
+
+ function u(t, e) {
+ return t
+ }
+
+ function c(t, r, n) {
+ if (t.customInspect && r && w(r.inspect) && r.inspect !== e.inspect && (!r.constructor || r.constructor.prototype !== r)) {
+ var i = r.inspect(n, t);
+ return v(i) || (i = c(t, i, n)), i
+ }
+ var o = function(t, e) {
+ if (m(e)) return t.stylize("undefined", "undefined");
+ if (v(e)) {
+ var r = "'" + JSON.stringify(e).replace(/^"|"$/g, "").replace(/'/g, "\\'").replace(/\\"/g, '"') + "'";
+ return t.stylize(r, "string")
+ }
+ return d(e) ? t.stylize("" + e, "number") : y(e) ? t.stylize("" + e, "boolean") : g(e) ? t.stylize("null", "null") : void 0
+ }(t, r);
+ if (o) return o;
+ var s = Object.keys(r),
+ a = function(t) {
+ var e = {};
+ return t.forEach((function(t, r) {
+ e[t] = !0
+ })), e
+ }(s);
+ if (t.showHidden && (s = Object.getOwnPropertyNames(r)), E(r) && (s.indexOf("message") >= 0 || s.indexOf("description") >= 0)) return h(r);
+ if (0 === s.length) {
+ if (w(r)) {
+ var f = r.name ? ": " + r.name : "";
+ return t.stylize("[Function" + f + "]", "special")
+ }
+ if (S(r)) return t.stylize(RegExp.prototype.toString.call(r), "regexp");
+ if (b(r)) return t.stylize(Date.prototype.toString.call(r), "date");
+ if (E(r)) return h(r)
+ }
+ var u, _ = "",
+ O = !1,
+ B = ["{", "}"];
+ return l(r) && (O = !0, B = ["[", "]"]), w(r) && (_ = " [Function" + (r.name ? ": " + r.name : "") + "]"), S(r) && (_ = " " + RegExp.prototype.toString.call(r)), b(r) && (_ = " " + Date.prototype.toUTCString.call(r)), E(r) && (_ = " " + h(r)), 0 !== s.length || O && 0 != r.length ? n < 0 ? S(r) ? t.stylize(RegExp.prototype.toString.call(r), "regexp") : t.stylize("[Object]", "special") : (t.seen.push(r), u = O ? function(t, e, r, n, i) {
+ for (var o = [], s = 0, a = e.length; s < a; ++s) x(e, String(s)) ? o.push(p(t, e, r, n, String(s), !0)) : o.push("");
+ return i.forEach((function(i) {
+ i.match(/^\d+$/) || o.push(p(t, e, r, n, i, !0))
+ })), o
+ }(t, r, n, a, s) : s.map((function(e) {
+ return p(t, r, n, a, e, O)
+ })), t.seen.pop(), function(t, e, r) {
+ return t.reduce((function(t, e) {
+ return e.indexOf("\n"), t + e.replace(/\u001b\[\d\d?m/g, "").length + 1
+ }), 0) > 60 ? r[0] + ("" === e ? "" : e + "\n ") + " " + t.join(",\n ") + " " + r[1] : r[0] + e + " " + t.join(", ") + " " + r[1]
+ }(u, _, B)) : B[0] + _ + B[1]
+ }
+
+ function h(t) {
+ return "[" + Error.prototype.toString.call(t) + "]"
+ }
+
+ function p(t, e, r, n, i, o) {
+ var s, a, f;
+ if ((f = Object.getOwnPropertyDescriptor(e, i) || {
+ value: e[i]
+ }).get ? a = f.set ? t.stylize("[Getter/Setter]", "special") : t.stylize("[Getter]", "special") : f.set && (a = t.stylize("[Setter]", "special")), x(n, i) || (s = "[" + i + "]"), a || (t.seen.indexOf(f.value) < 0 ? (a = g(r) ? c(t, f.value, null) : c(t, f.value, r - 1)).indexOf("\n") > -1 && (a = o ? a.split("\n").map((function(t) {
+ return " " + t
+ })).join("\n").substr(2) : "\n" + a.split("\n").map((function(t) {
+ return " " + t
+ })).join("\n")) : a = t.stylize("[Circular]", "special")), m(s)) {
+ if (o && i.match(/^\d+$/)) return a;
+ (s = JSON.stringify("" + i)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/) ? (s = s.substr(1, s.length - 2), s = t.stylize(s, "name")) : (s = s.replace(/'/g, "\\'").replace(/\\"/g, '"').replace(/(^"|"$)/g, "'"), s = t.stylize(s, "string"))
+ }
+ return s + ": " + a
+ }
+
+ function l(t) {
+ return Array.isArray(t)
+ }
+
+ function y(t) {
+ return "boolean" == typeof t
+ }
+
+ function g(t) {
+ return null === t
+ }
+
+ function d(t) {
+ return "number" == typeof t
+ }
+
+ function v(t) {
+ return "string" == typeof t
+ }
+
+ function m(t) {
+ return void 0 === t
+ }
+
+ function S(t) {
+ return _(t) && "[object RegExp]" === O(t)
+ }
+
+ function _(t) {
+ return "object" == typeof t && null !== t
+ }
+
+ function b(t) {
+ return _(t) && "[object Date]" === O(t)
+ }
+
+ function E(t) {
+ return _(t) && ("[object Error]" === O(t) || t instanceof Error)
+ }
+
+ function w(t) {
+ return "function" == typeof t
+ }
+
+ function O(t) {
+ return Object.prototype.toString.call(t)
+ }
+
+ function B(t) {
+ return t < 10 ? "0" + t.toString(10) : t.toString(10)
+ }
+ e.debuglog = function(t) {
+ if (m(o) && (o = n.env.NODE_DEBUG || ""), t = t.toUpperCase(), !s[t])
+ if (new RegExp("\\b" + t + "\\b", "i").test(o)) {
+ var r = n.pid;
+ s[t] = function() {
+ var n = e.format.apply(e, arguments);
+ console.error("%s %d: %s", t, r, n)
+ }
+ } else s[t] = function() {};
+ return s[t]
+ }, e.inspect = a, a.colors = {
+ bold: [1, 22],
+ italic: [3, 23],
+ underline: [4, 24],
+ inverse: [7, 27],
+ white: [37, 39],
+ grey: [90, 39],
+ black: [30, 39],
+ blue: [34, 39],
+ cyan: [36, 39],
+ green: [32, 39],
+ magenta: [35, 39],
+ red: [31, 39],
+ yellow: [33, 39]
+ }, a.styles = {
+ special: "cyan",
+ number: "yellow",
+ boolean: "yellow",
+ undefined: "grey",
+ null: "bold",
+ string: "green",
+ date: "magenta",
+ regexp: "red"
+ }, e.isArray = l, e.isBoolean = y, e.isNull = g, e.isNullOrUndefined = function(t) {
+ return null == t
+ }, e.isNumber = d, e.isString = v, e.isSymbol = function(t) {
+ return "symbol" == typeof t
+ }, e.isUndefined = m, e.isRegExp = S, e.isObject = _, e.isDate = b, e.isError = E, e.isFunction = w, e.isPrimitive = function(t) {
+ return null === t || "boolean" == typeof t || "number" == typeof t || "string" == typeof t || "symbol" == typeof t || void 0 === t
+ }, e.isBuffer = r(3845);
+ var A = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"];
+
+ function x(t, e) {
+ return Object.prototype.hasOwnProperty.call(t, e)
+ }
+ e.log = function() {
+ var t, r;
+ console.log("%s - %s", (r = [B((t = new Date).getHours()), B(t.getMinutes()), B(t.getSeconds())].join(":"), [t.getDate(), A[t.getMonth()], r].join(" ")), e.format.apply(e, arguments))
+ }, e.inherits = r(6100), e._extend = function(t, e) {
+ if (!e || !_(e)) return t;
+ for (var r = Object.keys(e), n = r.length; n--;) t[r[n]] = e[r[n]];
+ return t
+ }
+ },
+ 7526: (t, e) => {
+ "use strict";
+ e.byteLength = function(t) {
+ var e = a(t),
+ r = e[0],
+ n = e[1];
+ return 3 * (r + n) / 4 - n
+ }, e.toByteArray = function(t) {
+ var e, r, o = a(t),
+ s = o[0],
+ f = o[1],
+ u = new i(function(t, e, r) {
+ return 3 * (e + r) / 4 - r
+ }(0, s, f)),
+ c = 0,
+ h = f > 0 ? s - 4 : s;
+ for (r = 0; r < h; r += 4) e = n[t.charCodeAt(r)] << 18 | n[t.charCodeAt(r + 1)] << 12 | n[t.charCodeAt(r + 2)] << 6 | n[t.charCodeAt(r + 3)], u[c++] = e >> 16 & 255, u[c++] = e >> 8 & 255, u[c++] = 255 & e;
+ return 2 === f && (e = n[t.charCodeAt(r)] << 2 | n[t.charCodeAt(r + 1)] >> 4, u[c++] = 255 & e), 1 === f && (e = n[t.charCodeAt(r)] << 10 | n[t.charCodeAt(r + 1)] << 4 | n[t.charCodeAt(r + 2)] >> 2, u[c++] = e >> 8 & 255, u[c++] = 255 & e), u
+ }, e.fromByteArray = function(t) {
+ for (var e, n = t.length, i = n % 3, o = [], s = 16383, a = 0, u = n - i; a < u; a += s) o.push(f(t, a, a + s > u ? u : a + s));
+ return 1 === i ? (e = t[n - 1], o.push(r[e >> 2] + r[e << 4 & 63] + "==")) : 2 === i && (e = (t[n - 2] << 8) + t[n - 1], o.push(r[e >> 10] + r[e >> 4 & 63] + r[e << 2 & 63] + "=")), o.join("")
+ };
+ for (var r = [], n = [], i = "undefined" != typeof Uint8Array ? Uint8Array : Array, o = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/", s = 0; s < 64; ++s) r[s] = o[s], n[o.charCodeAt(s)] = s;
+
+ function a(t) {
+ var e = t.length;
+ if (e % 4 > 0) throw new Error("Invalid string. Length must be a multiple of 4");
+ var r = t.indexOf("=");
+ return -1 === r && (r = e), [r, r === e ? 0 : 4 - r % 4]
+ }
+
+ function f(t, e, n) {
+ for (var i, o, s = [], a = e; a < n; a += 3) i = (t[a] << 16 & 16711680) + (t[a + 1] << 8 & 65280) + (255 & t[a + 2]), s.push(r[(o = i) >> 18 & 63] + r[o >> 12 & 63] + r[o >> 6 & 63] + r[63 & o]);
+ return s.join("")
+ }
+ n["-".charCodeAt(0)] = 62, n["_".charCodeAt(0)] = 63
+ },
+ 8287: (t, e, r) => {
+ "use strict";
+ var n = r(7526),
+ i = r(251);
+ e.Buffer = a, e.SlowBuffer = function(t) {
+ return +t != t && (t = 0), a.alloc(+t)
+ }, e.INSPECT_MAX_BYTES = 50;
+ var o = 2147483647;
+
+ function s(t) {
+ if (t > o) throw new RangeError('The value "' + t + '" is invalid for option "size"');
+ var e = new Uint8Array(t);
+ return e.__proto__ = a.prototype, e
+ }
+
+ function a(t, e, r) {
+ if ("number" == typeof t) {
+ if ("string" == typeof e) throw new TypeError('The "string" argument must be of type string. Received type number');
+ return c(t)
+ }
+ return f(t, e, r)
+ }
+
+ function f(t, e, r) {
+ if ("string" == typeof t) return function(t, e) {
+ if ("string" == typeof e && "" !== e || (e = "utf8"), !a.isEncoding(e)) throw new TypeError("Unknown encoding: " + e);
+ var r = 0 | l(t, e),
+ n = s(r),
+ i = n.write(t, e);
+ return i !== r && (n = n.slice(0, i)), n
+ }(t, e);
+ if (ArrayBuffer.isView(t)) return h(t);
+ if (null == t) throw TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t);
+ if (H(t, ArrayBuffer) || t && H(t.buffer, ArrayBuffer)) return function(t, e, r) {
+ if (e < 0 || t.byteLength < e) throw new RangeError('"offset" is outside of buffer bounds');
+ if (t.byteLength < e + (r || 0)) throw new RangeError('"length" is outside of buffer bounds');
+ var n;
+ return (n = void 0 === e && void 0 === r ? new Uint8Array(t) : void 0 === r ? new Uint8Array(t, e) : new Uint8Array(t, e, r)).__proto__ = a.prototype, n
+ }(t, e, r);
+ if ("number" == typeof t) throw new TypeError('The "value" argument must not be of type number. Received type number');
+ var n = t.valueOf && t.valueOf();
+ if (null != n && n !== t) return a.from(n, e, r);
+ var i = function(t) {
+ if (a.isBuffer(t)) {
+ var e = 0 | p(t.length),
+ r = s(e);
+ return 0 === r.length || t.copy(r, 0, 0, e), r
+ }
+ return void 0 !== t.length ? "number" != typeof t.length || F(t.length) ? s(0) : h(t) : "Buffer" === t.type && Array.isArray(t.data) ? h(t.data) : void 0
+ }(t);
+ if (i) return i;
+ if ("undefined" != typeof Symbol && null != Symbol.toPrimitive && "function" == typeof t[Symbol.toPrimitive]) return a.from(t[Symbol.toPrimitive]("string"), e, r);
+ throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t)
+ }
+
+ function u(t) {
+ if ("number" != typeof t) throw new TypeError('"size" argument must be of type number');
+ if (t < 0) throw new RangeError('The value "' + t + '" is invalid for option "size"')
+ }
+
+ function c(t) {
+ return u(t), s(t < 0 ? 0 : 0 | p(t))
+ }
+
+ function h(t) {
+ for (var e = t.length < 0 ? 0 : 0 | p(t.length), r = s(e), n = 0; n < e; n += 1) r[n] = 255 & t[n];
+ return r
+ }
+
+ function p(t) {
+ if (t >= o) throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x" + o.toString(16) + " bytes");
+ return 0 | t
+ }
+
+ function l(t, e) {
+ if (a.isBuffer(t)) return t.length;
+ if (ArrayBuffer.isView(t) || H(t, ArrayBuffer)) return t.byteLength;
+ if ("string" != typeof t) throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type ' + typeof t);
+ var r = t.length,
+ n = arguments.length > 2 && !0 === arguments[2];
+ if (!n && 0 === r) return 0;
+ for (var i = !1;;) switch (e) {
+ case "ascii":
+ case "latin1":
+ case "binary":
+ return r;
+ case "utf8":
+ case "utf-8":
+ return U(t).length;
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return 2 * r;
+ case "hex":
+ return r >>> 1;
+ case "base64":
+ return M(t).length;
+ default:
+ if (i) return n ? -1 : U(t).length;
+ e = ("" + e).toLowerCase(), i = !0
+ }
+ }
+
+ function y(t, e, r) {
+ var n = !1;
+ if ((void 0 === e || e < 0) && (e = 0), e > this.length) return "";
+ if ((void 0 === r || r > this.length) && (r = this.length), r <= 0) return "";
+ if ((r >>>= 0) <= (e >>>= 0)) return "";
+ for (t || (t = "utf8");;) switch (t) {
+ case "hex":
+ return T(this, e, r);
+ case "utf8":
+ case "utf-8":
+ return B(this, e, r);
+ case "ascii":
+ return x(this, e, r);
+ case "latin1":
+ case "binary":
+ return P(this, e, r);
+ case "base64":
+ return O(this, e, r);
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return I(this, e, r);
+ default:
+ if (n) throw new TypeError("Unknown encoding: " + t);
+ t = (t + "").toLowerCase(), n = !0
+ }
+ }
+
+ function g(t, e, r) {
+ var n = t[e];
+ t[e] = t[r], t[r] = n
+ }
+
+ function d(t, e, r, n, i) {
+ if (0 === t.length) return -1;
+ if ("string" == typeof r ? (n = r, r = 0) : r > 2147483647 ? r = 2147483647 : r < -2147483648 && (r = -2147483648), F(r = +r) && (r = i ? 0 : t.length - 1), r < 0 && (r = t.length + r), r >= t.length) {
+ if (i) return -1;
+ r = t.length - 1
+ } else if (r < 0) {
+ if (!i) return -1;
+ r = 0
+ }
+ if ("string" == typeof e && (e = a.from(e, n)), a.isBuffer(e)) return 0 === e.length ? -1 : v(t, e, r, n, i);
+ if ("number" == typeof e) return e &= 255, "function" == typeof Uint8Array.prototype.indexOf ? i ? Uint8Array.prototype.indexOf.call(t, e, r) : Uint8Array.prototype.lastIndexOf.call(t, e, r) : v(t, [e], r, n, i);
+ throw new TypeError("val must be string, number or Buffer")
+ }
+
+ function v(t, e, r, n, i) {
+ var o, s = 1,
+ a = t.length,
+ f = e.length;
+ if (void 0 !== n && ("ucs2" === (n = String(n).toLowerCase()) || "ucs-2" === n || "utf16le" === n || "utf-16le" === n)) {
+ if (t.length < 2 || e.length < 2) return -1;
+ s = 2, a /= 2, f /= 2, r /= 2
+ }
+
+ function u(t, e) {
+ return 1 === s ? t[e] : t.readUInt16BE(e * s)
+ }
+ if (i) {
+ var c = -1;
+ for (o = r; o < a; o++)
+ if (u(t, o) === u(e, -1 === c ? 0 : o - c)) {
+ if (-1 === c && (c = o), o - c + 1 === f) return c * s
+ } else - 1 !== c && (o -= o - c), c = -1
+ } else
+ for (r + f > a && (r = a - f), o = r; o >= 0; o--) {
+ for (var h = !0, p = 0; p < f; p++)
+ if (u(t, o + p) !== u(e, p)) {
+ h = !1;
+ break
+ } if (h) return o
+ }
+ return -1
+ }
+
+ function m(t, e, r, n) {
+ r = Number(r) || 0;
+ var i = t.length - r;
+ n ? (n = Number(n)) > i && (n = i) : n = i;
+ var o = e.length;
+ n > o / 2 && (n = o / 2);
+ for (var s = 0; s < n; ++s) {
+ var a = parseInt(e.substr(2 * s, 2), 16);
+ if (F(a)) return s;
+ t[r + s] = a
+ }
+ return s
+ }
+
+ function S(t, e, r, n) {
+ return j(U(e, t.length - r), t, r, n)
+ }
+
+ function _(t, e, r, n) {
+ return j(function(t) {
+ for (var e = [], r = 0; r < t.length; ++r) e.push(255 & t.charCodeAt(r));
+ return e
+ }(e), t, r, n)
+ }
+
+ function b(t, e, r, n) {
+ return _(t, e, r, n)
+ }
+
+ function E(t, e, r, n) {
+ return j(M(e), t, r, n)
+ }
+
+ function w(t, e, r, n) {
+ return j(function(t, e) {
+ for (var r, n, i, o = [], s = 0; s < t.length && !((e -= 2) < 0); ++s) n = (r = t.charCodeAt(s)) >> 8, i = r % 256, o.push(i), o.push(n);
+ return o
+ }(e, t.length - r), t, r, n)
+ }
+
+ function O(t, e, r) {
+ return 0 === e && r === t.length ? n.fromByteArray(t) : n.fromByteArray(t.slice(e, r))
+ }
+
+ function B(t, e, r) {
+ r = Math.min(t.length, r);
+ for (var n = [], i = e; i < r;) {
+ var o, s, a, f, u = t[i],
+ c = null,
+ h = u > 239 ? 4 : u > 223 ? 3 : u > 191 ? 2 : 1;
+ if (i + h <= r) switch (h) {
+ case 1:
+ u < 128 && (c = u);
+ break;
+ case 2:
+ 128 == (192 & (o = t[i + 1])) && (f = (31 & u) << 6 | 63 & o) > 127 && (c = f);
+ break;
+ case 3:
+ o = t[i + 1], s = t[i + 2], 128 == (192 & o) && 128 == (192 & s) && (f = (15 & u) << 12 | (63 & o) << 6 | 63 & s) > 2047 && (f < 55296 || f > 57343) && (c = f);
+ break;
+ case 4:
+ o = t[i + 1], s = t[i + 2], a = t[i + 3], 128 == (192 & o) && 128 == (192 & s) && 128 == (192 & a) && (f = (15 & u) << 18 | (63 & o) << 12 | (63 & s) << 6 | 63 & a) > 65535 && f < 1114112 && (c = f)
+ }
+ null === c ? (c = 65533, h = 1) : c > 65535 && (c -= 65536, n.push(c >>> 10 & 1023 | 55296), c = 56320 | 1023 & c), n.push(c), i += h
+ }
+ return function(t) {
+ var e = t.length;
+ if (e <= A) return String.fromCharCode.apply(String, t);
+ for (var r = "", n = 0; n < e;) r += String.fromCharCode.apply(String, t.slice(n, n += A));
+ return r
+ }(n)
+ }
+ e.kMaxLength = o, a.TYPED_ARRAY_SUPPORT = function() {
+ try {
+ var t = new Uint8Array(1);
+ return t.__proto__ = {
+ __proto__: Uint8Array.prototype,
+ foo: function() {
+ return 42
+ }
+ }, 42 === t.foo()
+ } catch (t) {
+ return !1
+ }
+ }(), a.TYPED_ARRAY_SUPPORT || "undefined" == typeof console || "function" != typeof console.error || console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support."), Object.defineProperty(a.prototype, "parent", {
+ enumerable: !0,
+ get: function() {
+ if (a.isBuffer(this)) return this.buffer
+ }
+ }), Object.defineProperty(a.prototype, "offset", {
+ enumerable: !0,
+ get: function() {
+ if (a.isBuffer(this)) return this.byteOffset
+ }
+ }), "undefined" != typeof Symbol && null != Symbol.species && a[Symbol.species] === a && Object.defineProperty(a, Symbol.species, {
+ value: null,
+ configurable: !0,
+ enumerable: !1,
+ writable: !1
+ }), a.poolSize = 8192, a.from = function(t, e, r) {
+ return f(t, e, r)
+ }, a.prototype.__proto__ = Uint8Array.prototype, a.__proto__ = Uint8Array, a.alloc = function(t, e, r) {
+ return function(t, e, r) {
+ return u(t), t <= 0 ? s(t) : void 0 !== e ? "string" == typeof r ? s(t).fill(e, r) : s(t).fill(e) : s(t)
+ }(t, e, r)
+ }, a.allocUnsafe = function(t) {
+ return c(t)
+ }, a.allocUnsafeSlow = function(t) {
+ return c(t)
+ }, a.isBuffer = function(t) {
+ return null != t && !0 === t._isBuffer && t !== a.prototype
+ }, a.compare = function(t, e) {
+ if (H(t, Uint8Array) && (t = a.from(t, t.offset, t.byteLength)), H(e, Uint8Array) && (e = a.from(e, e.offset, e.byteLength)), !a.isBuffer(t) || !a.isBuffer(e)) throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');
+ if (t === e) return 0;
+ for (var r = t.length, n = e.length, i = 0, o = Math.min(r, n); i < o; ++i)
+ if (t[i] !== e[i]) {
+ r = t[i], n = e[i];
+ break
+ } return r < n ? -1 : n < r ? 1 : 0
+ }, a.isEncoding = function(t) {
+ switch (String(t).toLowerCase()) {
+ case "hex":
+ case "utf8":
+ case "utf-8":
+ case "ascii":
+ case "latin1":
+ case "binary":
+ case "base64":
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return !0;
+ default:
+ return !1
+ }
+ }, a.concat = function(t, e) {
+ if (!Array.isArray(t)) throw new TypeError('"list" argument must be an Array of Buffers');
+ if (0 === t.length) return a.alloc(0);
+ var r;
+ if (void 0 === e)
+ for (e = 0, r = 0; r < t.length; ++r) e += t[r].length;
+ var n = a.allocUnsafe(e),
+ i = 0;
+ for (r = 0; r < t.length; ++r) {
+ var o = t[r];
+ if (H(o, Uint8Array) && (o = a.from(o)), !a.isBuffer(o)) throw new TypeError('"list" argument must be an Array of Buffers');
+ o.copy(n, i), i += o.length
+ }
+ return n
+ }, a.byteLength = l, a.prototype._isBuffer = !0, a.prototype.swap16 = function() {
+ var t = this.length;
+ if (t % 2 != 0) throw new RangeError("Buffer size must be a multiple of 16-bits");
+ for (var e = 0; e < t; e += 2) g(this, e, e + 1);
+ return this
+ }, a.prototype.swap32 = function() {
+ var t = this.length;
+ if (t % 4 != 0) throw new RangeError("Buffer size must be a multiple of 32-bits");
+ for (var e = 0; e < t; e += 4) g(this, e, e + 3), g(this, e + 1, e + 2);
+ return this
+ }, a.prototype.swap64 = function() {
+ var t = this.length;
+ if (t % 8 != 0) throw new RangeError("Buffer size must be a multiple of 64-bits");
+ for (var e = 0; e < t; e += 8) g(this, e, e + 7), g(this, e + 1, e + 6), g(this, e + 2, e + 5), g(this, e + 3, e + 4);
+ return this
+ }, a.prototype.toString = function() {
+ var t = this.length;
+ return 0 === t ? "" : 0 === arguments.length ? B(this, 0, t) : y.apply(this, arguments)
+ }, a.prototype.toLocaleString = a.prototype.toString, a.prototype.equals = function(t) {
+ if (!a.isBuffer(t)) throw new TypeError("Argument must be a Buffer");
+ return this === t || 0 === a.compare(this, t)
+ }, a.prototype.inspect = function() {
+ var t = "",
+ r = e.INSPECT_MAX_BYTES;
+ return t = this.toString("hex", 0, r).replace(/(.{2})/g, "$1 ").trim(), this.length > r && (t += " ... "), ""
+ }, a.prototype.compare = function(t, e, r, n, i) {
+ if (H(t, Uint8Array) && (t = a.from(t, t.offset, t.byteLength)), !a.isBuffer(t)) throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type ' + typeof t);
+ if (void 0 === e && (e = 0), void 0 === r && (r = t ? t.length : 0), void 0 === n && (n = 0), void 0 === i && (i = this.length), e < 0 || r > t.length || n < 0 || i > this.length) throw new RangeError("out of range index");
+ if (n >= i && e >= r) return 0;
+ if (n >= i) return -1;
+ if (e >= r) return 1;
+ if (this === t) return 0;
+ for (var o = (i >>>= 0) - (n >>>= 0), s = (r >>>= 0) - (e >>>= 0), f = Math.min(o, s), u = this.slice(n, i), c = t.slice(e, r), h = 0; h < f; ++h)
+ if (u[h] !== c[h]) {
+ o = u[h], s = c[h];
+ break
+ } return o < s ? -1 : s < o ? 1 : 0
+ }, a.prototype.includes = function(t, e, r) {
+ return -1 !== this.indexOf(t, e, r)
+ }, a.prototype.indexOf = function(t, e, r) {
+ return d(this, t, e, r, !0)
+ }, a.prototype.lastIndexOf = function(t, e, r) {
+ return d(this, t, e, r, !1)
+ }, a.prototype.write = function(t, e, r, n) {
+ if (void 0 === e) n = "utf8", r = this.length, e = 0;
+ else if (void 0 === r && "string" == typeof e) n = e, r = this.length, e = 0;
+ else {
+ if (!isFinite(e)) throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");
+ e >>>= 0, isFinite(r) ? (r >>>= 0, void 0 === n && (n = "utf8")) : (n = r, r = void 0)
+ }
+ var i = this.length - e;
+ if ((void 0 === r || r > i) && (r = i), t.length > 0 && (r < 0 || e < 0) || e > this.length) throw new RangeError("Attempt to write outside buffer bounds");
+ n || (n = "utf8");
+ for (var o = !1;;) switch (n) {
+ case "hex":
+ return m(this, t, e, r);
+ case "utf8":
+ case "utf-8":
+ return S(this, t, e, r);
+ case "ascii":
+ return _(this, t, e, r);
+ case "latin1":
+ case "binary":
+ return b(this, t, e, r);
+ case "base64":
+ return E(this, t, e, r);
+ case "ucs2":
+ case "ucs-2":
+ case "utf16le":
+ case "utf-16le":
+ return w(this, t, e, r);
+ default:
+ if (o) throw new TypeError("Unknown encoding: " + n);
+ n = ("" + n).toLowerCase(), o = !0
+ }
+ }, a.prototype.toJSON = function() {
+ return {
+ type: "Buffer",
+ data: Array.prototype.slice.call(this._arr || this, 0)
+ }
+ };
+ var A = 4096;
+
+ function x(t, e, r) {
+ var n = "";
+ r = Math.min(t.length, r);
+ for (var i = e; i < r; ++i) n += String.fromCharCode(127 & t[i]);
+ return n
+ }
+
+ function P(t, e, r) {
+ var n = "";
+ r = Math.min(t.length, r);
+ for (var i = e; i < r; ++i) n += String.fromCharCode(t[i]);
+ return n
+ }
+
+ function T(t, e, r) {
+ var n, i = t.length;
+ (!e || e < 0) && (e = 0), (!r || r < 0 || r > i) && (r = i);
+ for (var o = "", s = e; s < r; ++s) o += (n = t[s]) < 16 ? "0" + n.toString(16) : n.toString(16);
+ return o
+ }
+
+ function I(t, e, r) {
+ for (var n = t.slice(e, r), i = "", o = 0; o < n.length; o += 2) i += String.fromCharCode(n[o] + 256 * n[o + 1]);
+ return i
+ }
+
+ function k(t, e, r) {
+ if (t % 1 != 0 || t < 0) throw new RangeError("offset is not uint");
+ if (t + e > r) throw new RangeError("Trying to access beyond buffer length")
+ }
+
+ function D(t, e, r, n, i, o) {
+ if (!a.isBuffer(t)) throw new TypeError('"buffer" argument must be a Buffer instance');
+ if (e > i || e < o) throw new RangeError('"value" argument is out of bounds');
+ if (r + n > t.length) throw new RangeError("Index out of range")
+ }
+
+ function R(t, e, r, n, i, o) {
+ if (r + n > t.length) throw new RangeError("Index out of range");
+ if (r < 0) throw new RangeError("Index out of range")
+ }
+
+ function N(t, e, r, n, o) {
+ return e = +e, r >>>= 0, o || R(t, 0, r, 4), i.write(t, e, r, n, 23, 4), r + 4
+ }
+
+ function L(t, e, r, n, o) {
+ return e = +e, r >>>= 0, o || R(t, 0, r, 8), i.write(t, e, r, n, 52, 8), r + 8
+ }
+ a.prototype.slice = function(t, e) {
+ var r = this.length;
+ (t = ~~t) < 0 ? (t += r) < 0 && (t = 0) : t > r && (t = r), (e = void 0 === e ? r : ~~e) < 0 ? (e += r) < 0 && (e = 0) : e > r && (e = r), e < t && (e = t);
+ var n = this.subarray(t, e);
+ return n.__proto__ = a.prototype, n
+ }, a.prototype.readUIntLE = function(t, e, r) {
+ t >>>= 0, e >>>= 0, r || k(t, e, this.length);
+ for (var n = this[t], i = 1, o = 0; ++o < e && (i *= 256);) n += this[t + o] * i;
+ return n
+ }, a.prototype.readUIntBE = function(t, e, r) {
+ t >>>= 0, e >>>= 0, r || k(t, e, this.length);
+ for (var n = this[t + --e], i = 1; e > 0 && (i *= 256);) n += this[t + --e] * i;
+ return n
+ }, a.prototype.readUInt8 = function(t, e) {
+ return t >>>= 0, e || k(t, 1, this.length), this[t]
+ }, a.prototype.readUInt16LE = function(t, e) {
+ return t >>>= 0, e || k(t, 2, this.length), this[t] | this[t + 1] << 8
+ }, a.prototype.readUInt16BE = function(t, e) {
+ return t >>>= 0, e || k(t, 2, this.length), this[t] << 8 | this[t + 1]
+ }, a.prototype.readUInt32LE = function(t, e) {
+ return t >>>= 0, e || k(t, 4, this.length), (this[t] | this[t + 1] << 8 | this[t + 2] << 16) + 16777216 * this[t + 3]
+ }, a.prototype.readUInt32BE = function(t, e) {
+ return t >>>= 0, e || k(t, 4, this.length), 16777216 * this[t] + (this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3])
+ }, a.prototype.readIntLE = function(t, e, r) {
+ t >>>= 0, e >>>= 0, r || k(t, e, this.length);
+ for (var n = this[t], i = 1, o = 0; ++o < e && (i *= 256);) n += this[t + o] * i;
+ return n >= (i *= 128) && (n -= Math.pow(2, 8 * e)), n
+ }, a.prototype.readIntBE = function(t, e, r) {
+ t >>>= 0, e >>>= 0, r || k(t, e, this.length);
+ for (var n = e, i = 1, o = this[t + --n]; n > 0 && (i *= 256);) o += this[t + --n] * i;
+ return o >= (i *= 128) && (o -= Math.pow(2, 8 * e)), o
+ }, a.prototype.readInt8 = function(t, e) {
+ return t >>>= 0, e || k(t, 1, this.length), 128 & this[t] ? -1 * (255 - this[t] + 1) : this[t]
+ }, a.prototype.readInt16LE = function(t, e) {
+ t >>>= 0, e || k(t, 2, this.length);
+ var r = this[t] | this[t + 1] << 8;
+ return 32768 & r ? 4294901760 | r : r
+ }, a.prototype.readInt16BE = function(t, e) {
+ t >>>= 0, e || k(t, 2, this.length);
+ var r = this[t + 1] | this[t] << 8;
+ return 32768 & r ? 4294901760 | r : r
+ }, a.prototype.readInt32LE = function(t, e) {
+ return t >>>= 0, e || k(t, 4, this.length), this[t] | this[t + 1] << 8 | this[t + 2] << 16 | this[t + 3] << 24
+ }, a.prototype.readInt32BE = function(t, e) {
+ return t >>>= 0, e || k(t, 4, this.length), this[t] << 24 | this[t + 1] << 16 | this[t + 2] << 8 | this[t + 3]
+ }, a.prototype.readFloatLE = function(t, e) {
+ return t >>>= 0, e || k(t, 4, this.length), i.read(this, t, !0, 23, 4)
+ }, a.prototype.readFloatBE = function(t, e) {
+ return t >>>= 0, e || k(t, 4, this.length), i.read(this, t, !1, 23, 4)
+ }, a.prototype.readDoubleLE = function(t, e) {
+ return t >>>= 0, e || k(t, 8, this.length), i.read(this, t, !0, 52, 8)
+ }, a.prototype.readDoubleBE = function(t, e) {
+ return t >>>= 0, e || k(t, 8, this.length), i.read(this, t, !1, 52, 8)
+ }, a.prototype.writeUIntLE = function(t, e, r, n) {
+ t = +t, e >>>= 0, r >>>= 0, n || D(this, t, e, r, Math.pow(2, 8 * r) - 1, 0);
+ var i = 1,
+ o = 0;
+ for (this[e] = 255 & t; ++o < r && (i *= 256);) this[e + o] = t / i & 255;
+ return e + r
+ }, a.prototype.writeUIntBE = function(t, e, r, n) {
+ t = +t, e >>>= 0, r >>>= 0, n || D(this, t, e, r, Math.pow(2, 8 * r) - 1, 0);
+ var i = r - 1,
+ o = 1;
+ for (this[e + i] = 255 & t; --i >= 0 && (o *= 256);) this[e + i] = t / o & 255;
+ return e + r
+ }, a.prototype.writeUInt8 = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 1, 255, 0), this[e] = 255 & t, e + 1
+ }, a.prototype.writeUInt16LE = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 2, 65535, 0), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2
+ }, a.prototype.writeUInt16BE = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 2, 65535, 0), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2
+ }, a.prototype.writeUInt32LE = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 4, 4294967295, 0), this[e + 3] = t >>> 24, this[e + 2] = t >>> 16, this[e + 1] = t >>> 8, this[e] = 255 & t, e + 4
+ }, a.prototype.writeUInt32BE = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 4, 4294967295, 0), this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t, e + 4
+ }, a.prototype.writeIntLE = function(t, e, r, n) {
+ if (t = +t, e >>>= 0, !n) {
+ var i = Math.pow(2, 8 * r - 1);
+ D(this, t, e, r, i - 1, -i)
+ }
+ var o = 0,
+ s = 1,
+ a = 0;
+ for (this[e] = 255 & t; ++o < r && (s *= 256);) t < 0 && 0 === a && 0 !== this[e + o - 1] && (a = 1), this[e + o] = (t / s | 0) - a & 255;
+ return e + r
+ }, a.prototype.writeIntBE = function(t, e, r, n) {
+ if (t = +t, e >>>= 0, !n) {
+ var i = Math.pow(2, 8 * r - 1);
+ D(this, t, e, r, i - 1, -i)
+ }
+ var o = r - 1,
+ s = 1,
+ a = 0;
+ for (this[e + o] = 255 & t; --o >= 0 && (s *= 256);) t < 0 && 0 === a && 0 !== this[e + o + 1] && (a = 1), this[e + o] = (t / s | 0) - a & 255;
+ return e + r
+ }, a.prototype.writeInt8 = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 1, 127, -128), t < 0 && (t = 255 + t + 1), this[e] = 255 & t, e + 1
+ }, a.prototype.writeInt16LE = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 2, 32767, -32768), this[e] = 255 & t, this[e + 1] = t >>> 8, e + 2
+ }, a.prototype.writeInt16BE = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 2, 32767, -32768), this[e] = t >>> 8, this[e + 1] = 255 & t, e + 2
+ }, a.prototype.writeInt32LE = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 4, 2147483647, -2147483648), this[e] = 255 & t, this[e + 1] = t >>> 8, this[e + 2] = t >>> 16, this[e + 3] = t >>> 24, e + 4
+ }, a.prototype.writeInt32BE = function(t, e, r) {
+ return t = +t, e >>>= 0, r || D(this, t, e, 4, 2147483647, -2147483648), t < 0 && (t = 4294967295 + t + 1), this[e] = t >>> 24, this[e + 1] = t >>> 16, this[e + 2] = t >>> 8, this[e + 3] = 255 & t, e + 4
+ }, a.prototype.writeFloatLE = function(t, e, r) {
+ return N(this, t, e, !0, r)
+ }, a.prototype.writeFloatBE = function(t, e, r) {
+ return N(this, t, e, !1, r)
+ }, a.prototype.writeDoubleLE = function(t, e, r) {
+ return L(this, t, e, !0, r)
+ }, a.prototype.writeDoubleBE = function(t, e, r) {
+ return L(this, t, e, !1, r)
+ }, a.prototype.copy = function(t, e, r, n) {
+ if (!a.isBuffer(t)) throw new TypeError("argument should be a Buffer");
+ if (r || (r = 0), n || 0 === n || (n = this.length), e >= t.length && (e = t.length), e || (e = 0), n > 0 && n < r && (n = r), n === r) return 0;
+ if (0 === t.length || 0 === this.length) return 0;
+ if (e < 0) throw new RangeError("targetStart out of bounds");
+ if (r < 0 || r >= this.length) throw new RangeError("Index out of range");
+ if (n < 0) throw new RangeError("sourceEnd out of bounds");
+ n > this.length && (n = this.length), t.length - e < n - r && (n = t.length - e + r);
+ var i = n - r;
+ if (this === t && "function" == typeof Uint8Array.prototype.copyWithin) this.copyWithin(e, r, n);
+ else if (this === t && r < e && e < n)
+ for (var o = i - 1; o >= 0; --o) t[o + e] = this[o + r];
+ else Uint8Array.prototype.set.call(t, this.subarray(r, n), e);
+ return i
+ }, a.prototype.fill = function(t, e, r, n) {
+ if ("string" == typeof t) {
+ if ("string" == typeof e ? (n = e, e = 0, r = this.length) : "string" == typeof r && (n = r, r = this.length), void 0 !== n && "string" != typeof n) throw new TypeError("encoding must be a string");
+ if ("string" == typeof n && !a.isEncoding(n)) throw new TypeError("Unknown encoding: " + n);
+ if (1 === t.length) {
+ var i = t.charCodeAt(0);
+ ("utf8" === n && i < 128 || "latin1" === n) && (t = i)
+ }
+ } else "number" == typeof t && (t &= 255);
+ if (e < 0 || this.length < e || this.length < r) throw new RangeError("Out of range index");
+ if (r <= e) return this;
+ var o;
+ if (e >>>= 0, r = void 0 === r ? this.length : r >>> 0, t || (t = 0), "number" == typeof t)
+ for (o = e; o < r; ++o) this[o] = t;
+ else {
+ var s = a.isBuffer(t) ? t : a.from(t, n),
+ f = s.length;
+ if (0 === f) throw new TypeError('The value "' + t + '" is invalid for argument "value"');
+ for (o = 0; o < r - e; ++o) this[o + e] = s[o % f]
+ }
+ return this
+ };
+ var C = /[^+/0-9A-Za-z-_]/g;
+
+ function U(t, e) {
+ var r;
+ e = e || 1 / 0;
+ for (var n = t.length, i = null, o = [], s = 0; s < n; ++s) {
+ if ((r = t.charCodeAt(s)) > 55295 && r < 57344) {
+ if (!i) {
+ if (r > 56319) {
+ (e -= 3) > -1 && o.push(239, 191, 189);
+ continue
+ }
+ if (s + 1 === n) {
+ (e -= 3) > -1 && o.push(239, 191, 189);
+ continue
+ }
+ i = r;
+ continue
+ }
+ if (r < 56320) {
+ (e -= 3) > -1 && o.push(239, 191, 189), i = r;
+ continue
+ }
+ r = 65536 + (i - 55296 << 10 | r - 56320)
+ } else i && (e -= 3) > -1 && o.push(239, 191, 189);
+ if (i = null, r < 128) {
+ if ((e -= 1) < 0) break;
+ o.push(r)
+ } else if (r < 2048) {
+ if ((e -= 2) < 0) break;
+ o.push(r >> 6 | 192, 63 & r | 128)
+ } else if (r < 65536) {
+ if ((e -= 3) < 0) break;
+ o.push(r >> 12 | 224, r >> 6 & 63 | 128, 63 & r | 128)
+ } else {
+ if (!(r < 1114112)) throw new Error("Invalid code point");
+ if ((e -= 4) < 0) break;
+ o.push(r >> 18 | 240, r >> 12 & 63 | 128, r >> 6 & 63 | 128, 63 & r | 128)
+ }
+ }
+ return o
+ }
+
+ function M(t) {
+ return n.toByteArray(function(t) {
+ if ((t = (t = t.split("=")[0]).trim().replace(C, "")).length < 2) return "";
+ for (; t.length % 4 != 0;) t += "=";
+ return t
+ }(t))
+ }
+
+ function j(t, e, r, n) {
+ for (var i = 0; i < n && !(i + r >= e.length || i >= t.length); ++i) e[i + r] = t[i];
+ return i
+ }
+
+ function H(t, e) {
+ return t instanceof e || null != t && null != t.constructor && null != t.constructor.name && t.constructor.name === e.name
+ }
+
+ function F(t) {
+ return t != t
+ }
+ },
+ 8075: (t, e, r) => {
+ "use strict";
+ var n = r(453),
+ i = r(487),
+ o = i(n("String.prototype.indexOf"));
+ t.exports = function(t, e) {
+ var r = n(t, !!e);
+ return "function" == typeof r && o(t, ".prototype.") > -1 ? i(r) : r
+ }
+ },
+ 487: (t, e, r) => {
+ "use strict";
+ var n = r(6743),
+ i = r(453),
+ o = r(6897),
+ s = r(9675),
+ a = i("%Function.prototype.apply%"),
+ f = i("%Function.prototype.call%"),
+ u = i("%Reflect.apply%", !0) || n.call(f, a),
+ c = r(655),
+ h = i("%Math.max%");
+ t.exports = function(t) {
+ if ("function" != typeof t) throw new s("a function is required");
+ var e = u(n, f, arguments);
+ return o(e, 1 + h(0, t.length - (arguments.length - 1)), !0)
+ };
+ var p = function() {
+ return u(n, a, arguments)
+ };
+ c ? c(t.exports, "apply", {
+ value: p
+ }) : t.exports.apply = p
+ },
+ 955: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(754), r(4636), r(9506), r(7165), function() {
+ var t = n,
+ e = t.lib.BlockCipher,
+ r = t.algo,
+ i = [],
+ o = [],
+ s = [],
+ a = [],
+ f = [],
+ u = [],
+ c = [],
+ h = [],
+ p = [],
+ l = [];
+ ! function() {
+ for (var t = [], e = 0; e < 256; e++) t[e] = e < 128 ? e << 1 : e << 1 ^ 283;
+ var r = 0,
+ n = 0;
+ for (e = 0; e < 256; e++) {
+ var y = n ^ n << 1 ^ n << 2 ^ n << 3 ^ n << 4;
+ y = y >>> 8 ^ 255 & y ^ 99, i[r] = y, o[y] = r;
+ var g = t[r],
+ d = t[g],
+ v = t[d],
+ m = 257 * t[y] ^ 16843008 * y;
+ s[r] = m << 24 | m >>> 8, a[r] = m << 16 | m >>> 16, f[r] = m << 8 | m >>> 24, u[r] = m, m = 16843009 * v ^ 65537 * d ^ 257 * g ^ 16843008 * r, c[y] = m << 24 | m >>> 8, h[y] = m << 16 | m >>> 16, p[y] = m << 8 | m >>> 24, l[y] = m, r ? (r = g ^ t[t[t[v ^ g]]], n ^= t[t[n]]) : r = n = 1
+ }
+ }();
+ var y = [0, 1, 2, 4, 8, 16, 32, 64, 128, 27, 54],
+ g = r.AES = e.extend({
+ _doReset: function() {
+ if (!this._nRounds || this._keyPriorReset !== this._key) {
+ for (var t = this._keyPriorReset = this._key, e = t.words, r = t.sigBytes / 4, n = 4 * ((this._nRounds = r + 6) + 1), o = this._keySchedule = [], s = 0; s < n; s++)
+ if (s < r) o[s] = e[s];
+ else {
+ var a = o[s - 1];
+ s % r ? r > 6 && s % r == 4 && (a = i[a >>> 24] << 24 | i[a >>> 16 & 255] << 16 | i[a >>> 8 & 255] << 8 | i[255 & a]) : (a = i[(a = a << 8 | a >>> 24) >>> 24] << 24 | i[a >>> 16 & 255] << 16 | i[a >>> 8 & 255] << 8 | i[255 & a], a ^= y[s / r | 0] << 24), o[s] = o[s - r] ^ a
+ } for (var f = this._invKeySchedule = [], u = 0; u < n; u++) s = n - u, a = u % 4 ? o[s] : o[s - 4], f[u] = u < 4 || s <= 4 ? a : c[i[a >>> 24]] ^ h[i[a >>> 16 & 255]] ^ p[i[a >>> 8 & 255]] ^ l[i[255 & a]]
+ }
+ },
+ encryptBlock: function(t, e) {
+ this._doCryptBlock(t, e, this._keySchedule, s, a, f, u, i)
+ },
+ decryptBlock: function(t, e) {
+ var r = t[e + 1];
+ t[e + 1] = t[e + 3], t[e + 3] = r, this._doCryptBlock(t, e, this._invKeySchedule, c, h, p, l, o), r = t[e + 1], t[e + 1] = t[e + 3], t[e + 3] = r
+ },
+ _doCryptBlock: function(t, e, r, n, i, o, s, a) {
+ for (var f = this._nRounds, u = t[e] ^ r[0], c = t[e + 1] ^ r[1], h = t[e + 2] ^ r[2], p = t[e + 3] ^ r[3], l = 4, y = 1; y < f; y++) {
+ var g = n[u >>> 24] ^ i[c >>> 16 & 255] ^ o[h >>> 8 & 255] ^ s[255 & p] ^ r[l++],
+ d = n[c >>> 24] ^ i[h >>> 16 & 255] ^ o[p >>> 8 & 255] ^ s[255 & u] ^ r[l++],
+ v = n[h >>> 24] ^ i[p >>> 16 & 255] ^ o[u >>> 8 & 255] ^ s[255 & c] ^ r[l++],
+ m = n[p >>> 24] ^ i[u >>> 16 & 255] ^ o[c >>> 8 & 255] ^ s[255 & h] ^ r[l++];
+ u = g, c = d, h = v, p = m
+ }
+ g = (a[u >>> 24] << 24 | a[c >>> 16 & 255] << 16 | a[h >>> 8 & 255] << 8 | a[255 & p]) ^ r[l++], d = (a[c >>> 24] << 24 | a[h >>> 16 & 255] << 16 | a[p >>> 8 & 255] << 8 | a[255 & u]) ^ r[l++], v = (a[h >>> 24] << 24 | a[p >>> 16 & 255] << 16 | a[u >>> 8 & 255] << 8 | a[255 & c]) ^ r[l++], m = (a[p >>> 24] << 24 | a[u >>> 16 & 255] << 16 | a[c >>> 8 & 255] << 8 | a[255 & h]) ^ r[l++], t[e] = g, t[e + 1] = d, t[e + 2] = v, t[e + 3] = m
+ },
+ keySize: 8
+ });
+ t.AES = e._createHelper(g)
+ }(), n.AES)
+ },
+ 7165: function(t, e, r) {
+ var n, i, o, s, a, f, u, c, h, p, l, y, g, d, v, m, S, _, b;
+ t.exports = (n = r(9021), r(9506), void(n.lib.Cipher || (i = n, o = i.lib, s = o.Base, a = o.WordArray, f = o.BufferedBlockAlgorithm, u = i.enc, u.Utf8, c = u.Base64, h = i.algo.EvpKDF, p = o.Cipher = f.extend({
+ cfg: s.extend(),
+ createEncryptor: function(t, e) {
+ return this.create(this._ENC_XFORM_MODE, t, e)
+ },
+ createDecryptor: function(t, e) {
+ return this.create(this._DEC_XFORM_MODE, t, e)
+ },
+ init: function(t, e, r) {
+ this.cfg = this.cfg.extend(r), this._xformMode = t, this._key = e, this.reset()
+ },
+ reset: function() {
+ f.reset.call(this), this._doReset()
+ },
+ process: function(t) {
+ return this._append(t), this._process()
+ },
+ finalize: function(t) {
+ return t && this._append(t), this._doFinalize()
+ },
+ keySize: 4,
+ ivSize: 4,
+ _ENC_XFORM_MODE: 1,
+ _DEC_XFORM_MODE: 2,
+ _createHelper: function() {
+ function t(t) {
+ return "string" == typeof t ? b : S
+ }
+ return function(e) {
+ return {
+ encrypt: function(r, n, i) {
+ return t(n).encrypt(e, r, n, i)
+ },
+ decrypt: function(r, n, i) {
+ return t(n).decrypt(e, r, n, i)
+ }
+ }
+ }
+ }()
+ }), o.StreamCipher = p.extend({
+ _doFinalize: function() {
+ return this._process(!0)
+ },
+ blockSize: 1
+ }), l = i.mode = {}, y = o.BlockCipherMode = s.extend({
+ createEncryptor: function(t, e) {
+ return this.Encryptor.create(t, e)
+ },
+ createDecryptor: function(t, e) {
+ return this.Decryptor.create(t, e)
+ },
+ init: function(t, e) {
+ this._cipher = t, this._iv = e
+ }
+ }), g = l.CBC = function() {
+ var t = y.extend();
+
+ function e(t, e, r) {
+ var n = this._iv;
+ if (n) {
+ var i = n;
+ this._iv = void 0
+ } else i = this._prevBlock;
+ for (var o = 0; o < r; o++) t[e + o] ^= i[o]
+ }
+ return t.Encryptor = t.extend({
+ processBlock: function(t, r) {
+ var n = this._cipher,
+ i = n.blockSize;
+ e.call(this, t, r, i), n.encryptBlock(t, r), this._prevBlock = t.slice(r, r + i)
+ }
+ }), t.Decryptor = t.extend({
+ processBlock: function(t, r) {
+ var n = this._cipher,
+ i = n.blockSize,
+ o = t.slice(r, r + i);
+ n.decryptBlock(t, r), e.call(this, t, r, i), this._prevBlock = o
+ }
+ }), t
+ }(), d = (i.pad = {}).Pkcs7 = {
+ pad: function(t, e) {
+ for (var r = 4 * e, n = r - t.sigBytes % r, i = n << 24 | n << 16 | n << 8 | n, o = [], s = 0; s < n; s += 4) o.push(i);
+ var f = a.create(o, n);
+ t.concat(f)
+ },
+ unpad: function(t) {
+ var e = 255 & t.words[t.sigBytes - 1 >>> 2];
+ t.sigBytes -= e
+ }
+ }, o.BlockCipher = p.extend({
+ cfg: p.cfg.extend({
+ mode: g,
+ padding: d
+ }),
+ reset: function() {
+ p.reset.call(this);
+ var t = this.cfg,
+ e = t.iv,
+ r = t.mode;
+ if (this._xformMode == this._ENC_XFORM_MODE) var n = r.createEncryptor;
+ else n = r.createDecryptor, this._minBufferSize = 1;
+ this._mode && this._mode.__creator == n ? this._mode.init(this, e && e.words) : (this._mode = n.call(r, this, e && e.words), this._mode.__creator = n)
+ },
+ _doProcessBlock: function(t, e) {
+ this._mode.processBlock(t, e)
+ },
+ _doFinalize: function() {
+ var t = this.cfg.padding;
+ if (this._xformMode == this._ENC_XFORM_MODE) {
+ t.pad(this._data, this.blockSize);
+ var e = this._process(!0)
+ } else e = this._process(!0), t.unpad(e);
+ return e
+ },
+ blockSize: 4
+ }), v = o.CipherParams = s.extend({
+ init: function(t) {
+ this.mixIn(t)
+ },
+ toString: function(t) {
+ return (t || this.formatter).stringify(this)
+ }
+ }), m = (i.format = {}).OpenSSL = {
+ stringify: function(t) {
+ var e = t.ciphertext,
+ r = t.salt;
+ if (r) var n = a.create([1398893684, 1701076831]).concat(r).concat(e);
+ else n = e;
+ return n.toString(c)
+ },
+ parse: function(t) {
+ var e = c.parse(t),
+ r = e.words;
+ if (1398893684 == r[0] && 1701076831 == r[1]) {
+ var n = a.create(r.slice(2, 4));
+ r.splice(0, 4), e.sigBytes -= 16
+ }
+ return v.create({
+ ciphertext: e,
+ salt: n
+ })
+ }
+ }, S = o.SerializableCipher = s.extend({
+ cfg: s.extend({
+ format: m
+ }),
+ encrypt: function(t, e, r, n) {
+ n = this.cfg.extend(n);
+ var i = t.createEncryptor(r, n),
+ o = i.finalize(e),
+ s = i.cfg;
+ return v.create({
+ ciphertext: o,
+ key: r,
+ iv: s.iv,
+ algorithm: t,
+ mode: s.mode,
+ padding: s.padding,
+ blockSize: t.blockSize,
+ formatter: n.format
+ })
+ },
+ decrypt: function(t, e, r, n) {
+ return n = this.cfg.extend(n), e = this._parse(e, n.format), t.createDecryptor(r, n).finalize(e.ciphertext)
+ },
+ _parse: function(t, e) {
+ return "string" == typeof t ? e.parse(t, this) : t
+ }
+ }), _ = (i.kdf = {}).OpenSSL = {
+ execute: function(t, e, r, n) {
+ n || (n = a.random(8));
+ var i = h.create({
+ keySize: e + r
+ }).compute(t, n),
+ o = a.create(i.words.slice(e), 4 * r);
+ return i.sigBytes = 4 * e, v.create({
+ key: i,
+ iv: o,
+ salt: n
+ })
+ }
+ }, b = o.PasswordBasedCipher = S.extend({
+ cfg: S.cfg.extend({
+ kdf: _
+ }),
+ encrypt: function(t, e, r, n) {
+ var i = (n = this.cfg.extend(n)).kdf.execute(r, t.keySize, t.ivSize);
+ n.iv = i.iv;
+ var o = S.encrypt.call(this, t, e, i.key, n);
+ return o.mixIn(i), o
+ },
+ decrypt: function(t, e, r, n) {
+ n = this.cfg.extend(n), e = this._parse(e, n.format);
+ var i = n.kdf.execute(r, t.keySize, t.ivSize, e.salt);
+ return n.iv = i.iv, S.decrypt.call(this, t, e, i.key, n)
+ }
+ }))))
+ },
+ 9021: function(t, e) {
+ var r;
+ t.exports = (r = r || function(t, e) {
+ var r = Object.create || function() {
+ function t() {}
+ return function(e) {
+ var r;
+ return t.prototype = e, r = new t, t.prototype = null, r
+ }
+ }(),
+ n = {},
+ i = n.lib = {},
+ o = i.Base = {
+ extend: function(t) {
+ var e = r(this);
+ return t && e.mixIn(t), e.hasOwnProperty("init") && this.init !== e.init || (e.init = function() {
+ e.$super.init.apply(this, arguments)
+ }), e.init.prototype = e, e.$super = this, e
+ },
+ create: function() {
+ var t = this.extend();
+ return t.init.apply(t, arguments), t
+ },
+ init: function() {},
+ mixIn: function(t) {
+ for (var e in t) t.hasOwnProperty(e) && (this[e] = t[e]);
+ t.hasOwnProperty("toString") && (this.toString = t.toString)
+ },
+ clone: function() {
+ return this.init.prototype.extend(this)
+ }
+ },
+ s = i.WordArray = o.extend({
+ init: function(t, e) {
+ t = this.words = t || [], this.sigBytes = null != e ? e : 4 * t.length
+ },
+ toString: function(t) {
+ return (t || f).stringify(this)
+ },
+ concat: function(t) {
+ var e = this.words,
+ r = t.words,
+ n = this.sigBytes,
+ i = t.sigBytes;
+ if (this.clamp(), n % 4)
+ for (var o = 0; o < i; o++) {
+ var s = r[o >>> 2] >>> 24 - o % 4 * 8 & 255;
+ e[n + o >>> 2] |= s << 24 - (n + o) % 4 * 8
+ } else
+ for (o = 0; o < i; o += 4) e[n + o >>> 2] = r[o >>> 2];
+ return this.sigBytes += i, this
+ },
+ clamp: function() {
+ var e = this.words,
+ r = this.sigBytes;
+ e[r >>> 2] &= 4294967295 << 32 - r % 4 * 8, e.length = t.ceil(r / 4)
+ },
+ clone: function() {
+ var t = o.clone.call(this);
+ return t.words = this.words.slice(0), t
+ },
+ random: function(e) {
+ for (var r, n = [], i = function(e) {
+ var r = 987654321,
+ n = 4294967295;
+ return function() {
+ var i = ((r = 36969 * (65535 & r) + (r >> 16) & n) << 16) + (e = 18e3 * (65535 & e) + (e >> 16) & n) & n;
+ return i /= 4294967296, (i += .5) * (t.random() > .5 ? 1 : -1)
+ }
+ }, o = 0; o < e; o += 4) {
+ var a = i(4294967296 * (r || t.random()));
+ r = 987654071 * a(), n.push(4294967296 * a() | 0)
+ }
+ return new s.init(n, e)
+ }
+ }),
+ a = n.enc = {},
+ f = a.Hex = {
+ stringify: function(t) {
+ for (var e = t.words, r = t.sigBytes, n = [], i = 0; i < r; i++) {
+ var o = e[i >>> 2] >>> 24 - i % 4 * 8 & 255;
+ n.push((o >>> 4).toString(16)), n.push((15 & o).toString(16))
+ }
+ return n.join("")
+ },
+ parse: function(t) {
+ for (var e = t.length, r = [], n = 0; n < e; n += 2) r[n >>> 3] |= parseInt(t.substr(n, 2), 16) << 24 - n % 8 * 4;
+ return new s.init(r, e / 2)
+ }
+ },
+ u = a.Latin1 = {
+ stringify: function(t) {
+ for (var e = t.words, r = t.sigBytes, n = [], i = 0; i < r; i++) {
+ var o = e[i >>> 2] >>> 24 - i % 4 * 8 & 255;
+ n.push(String.fromCharCode(o))
+ }
+ return n.join("")
+ },
+ parse: function(t) {
+ for (var e = t.length, r = [], n = 0; n < e; n++) r[n >>> 2] |= (255 & t.charCodeAt(n)) << 24 - n % 4 * 8;
+ return new s.init(r, e)
+ }
+ },
+ c = a.Utf8 = {
+ stringify: function(t) {
+ try {
+ return decodeURIComponent(escape(u.stringify(t)))
+ } catch (t) {
+ throw new Error("Malformed UTF-8 data")
+ }
+ },
+ parse: function(t) {
+ return u.parse(unescape(encodeURIComponent(t)))
+ }
+ },
+ h = i.BufferedBlockAlgorithm = o.extend({
+ reset: function() {
+ this._data = new s.init, this._nDataBytes = 0
+ },
+ _append: function(t) {
+ "string" == typeof t && (t = c.parse(t)), this._data.concat(t), this._nDataBytes += t.sigBytes
+ },
+ _process: function(e) {
+ var r = this._data,
+ n = r.words,
+ i = r.sigBytes,
+ o = this.blockSize,
+ a = i / (4 * o),
+ f = (a = e ? t.ceil(a) : t.max((0 | a) - this._minBufferSize, 0)) * o,
+ u = t.min(4 * f, i);
+ if (f) {
+ for (var c = 0; c < f; c += o) this._doProcessBlock(n, c);
+ var h = n.splice(0, f);
+ r.sigBytes -= u
+ }
+ return new s.init(h, u)
+ },
+ clone: function() {
+ var t = o.clone.call(this);
+ return t._data = this._data.clone(), t
+ },
+ _minBufferSize: 0
+ }),
+ p = (i.Hasher = h.extend({
+ cfg: o.extend(),
+ init: function(t) {
+ this.cfg = this.cfg.extend(t), this.reset()
+ },
+ reset: function() {
+ h.reset.call(this), this._doReset()
+ },
+ update: function(t) {
+ return this._append(t), this._process(), this
+ },
+ finalize: function(t) {
+ return t && this._append(t), this._doFinalize()
+ },
+ blockSize: 16,
+ _createHelper: function(t) {
+ return function(e, r) {
+ return new t.init(r).finalize(e)
+ }
+ },
+ _createHmacHelper: function(t) {
+ return function(e, r) {
+ return new p.HMAC.init(t, r).finalize(e)
+ }
+ }
+ }), n.algo = {});
+ return n
+ }(Math), r)
+ },
+ 754: function(t, e, r) {
+ var n, i, o;
+ t.exports = (n = r(9021), o = (i = n).lib.WordArray, i.enc.Base64 = {
+ stringify: function(t) {
+ var e = t.words,
+ r = t.sigBytes,
+ n = this._map;
+ t.clamp();
+ for (var i = [], o = 0; o < r; o += 3)
+ for (var s = (e[o >>> 2] >>> 24 - o % 4 * 8 & 255) << 16 | (e[o + 1 >>> 2] >>> 24 - (o + 1) % 4 * 8 & 255) << 8 | e[o + 2 >>> 2] >>> 24 - (o + 2) % 4 * 8 & 255, a = 0; a < 4 && o + .75 * a < r; a++) i.push(n.charAt(s >>> 6 * (3 - a) & 63));
+ var f = n.charAt(64);
+ if (f)
+ for (; i.length % 4;) i.push(f);
+ return i.join("")
+ },
+ parse: function(t) {
+ var e = t.length,
+ r = this._map,
+ n = this._reverseMap;
+ if (!n) {
+ n = this._reverseMap = [];
+ for (var i = 0; i < r.length; i++) n[r.charCodeAt(i)] = i
+ }
+ var s = r.charAt(64);
+ if (s) {
+ var a = t.indexOf(s); - 1 !== a && (e = a)
+ }
+ return function(t, e, r) {
+ for (var n = [], i = 0, s = 0; s < e; s++)
+ if (s % 4) {
+ var a = r[t.charCodeAt(s - 1)] << s % 4 * 2,
+ f = r[t.charCodeAt(s)] >>> 6 - s % 4 * 2;
+ n[i >>> 2] |= (a | f) << 24 - i % 4 * 8, i++
+ } return o.create(n, i)
+ }(t, e, n)
+ },
+ _map: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="
+ }, n.enc.Base64)
+ },
+ 5503: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), function() {
+ var t = n,
+ e = t.lib.WordArray,
+ r = t.enc;
+
+ function i(t) {
+ return t << 8 & 4278255360 | t >>> 8 & 16711935
+ }
+ r.Utf16 = r.Utf16BE = {
+ stringify: function(t) {
+ for (var e = t.words, r = t.sigBytes, n = [], i = 0; i < r; i += 2) {
+ var o = e[i >>> 2] >>> 16 - i % 4 * 8 & 65535;
+ n.push(String.fromCharCode(o))
+ }
+ return n.join("")
+ },
+ parse: function(t) {
+ for (var r = t.length, n = [], i = 0; i < r; i++) n[i >>> 1] |= t.charCodeAt(i) << 16 - i % 2 * 16;
+ return e.create(n, 2 * r)
+ }
+ }, r.Utf16LE = {
+ stringify: function(t) {
+ for (var e = t.words, r = t.sigBytes, n = [], o = 0; o < r; o += 2) {
+ var s = i(e[o >>> 2] >>> 16 - o % 4 * 8 & 65535);
+ n.push(String.fromCharCode(s))
+ }
+ return n.join("")
+ },
+ parse: function(t) {
+ for (var r = t.length, n = [], o = 0; o < r; o++) n[o >>> 1] |= i(t.charCodeAt(o) << 16 - o % 2 * 16);
+ return e.create(n, 2 * r)
+ }
+ }
+ }(), n.enc.Utf16)
+ },
+ 9506: function(t, e, r) {
+ var n, i, o, s, a, f, u, c;
+ t.exports = (c = r(9021), r(5471), r(1025), o = (i = (n = c).lib).Base, s = i.WordArray, f = (a = n.algo).MD5, u = a.EvpKDF = o.extend({
+ cfg: o.extend({
+ keySize: 4,
+ hasher: f,
+ iterations: 1
+ }),
+ init: function(t) {
+ this.cfg = this.cfg.extend(t)
+ },
+ compute: function(t, e) {
+ for (var r = this.cfg, n = r.hasher.create(), i = s.create(), o = i.words, a = r.keySize, f = r.iterations; o.length < a;) {
+ u && n.update(u);
+ var u = n.update(t).finalize(e);
+ n.reset();
+ for (var c = 1; c < f; c++) u = n.finalize(u), n.reset();
+ i.concat(u)
+ }
+ return i.sigBytes = 4 * a, i
+ }
+ }), n.EvpKDF = function(t, e, r) {
+ return u.create(r).compute(t, e)
+ }, c.EvpKDF)
+ },
+ 25: function(t, e, r) {
+ var n, i, o, s;
+ t.exports = (s = r(9021), r(7165), i = (n = s).lib.CipherParams, o = n.enc.Hex, n.format.Hex = {
+ stringify: function(t) {
+ return t.ciphertext.toString(o)
+ },
+ parse: function(t) {
+ var e = o.parse(t);
+ return i.create({
+ ciphertext: e
+ })
+ }
+ }, s.format.Hex)
+ },
+ 1025: function(t, e, r) {
+ var n, i, o;
+ t.exports = (i = (n = r(9021)).lib.Base, o = n.enc.Utf8, void(n.algo.HMAC = i.extend({
+ init: function(t, e) {
+ t = this._hasher = new t.init, "string" == typeof e && (e = o.parse(e));
+ var r = t.blockSize,
+ n = 4 * r;
+ e.sigBytes > n && (e = t.finalize(e)), e.clamp();
+ for (var i = this._oKey = e.clone(), s = this._iKey = e.clone(), a = i.words, f = s.words, u = 0; u < r; u++) a[u] ^= 1549556828, f[u] ^= 909522486;
+ i.sigBytes = s.sigBytes = n, this.reset()
+ },
+ reset: function() {
+ var t = this._hasher;
+ t.reset(), t.update(this._iKey)
+ },
+ update: function(t) {
+ return this._hasher.update(t), this
+ },
+ finalize: function(t) {
+ var e = this._hasher,
+ r = e.finalize(t);
+ return e.reset(), e.finalize(this._oKey.clone().concat(r))
+ }
+ })))
+ },
+ 1396: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(3240), r(6440), r(5503), r(754), r(4636), r(5471), r(3009), r(6308), r(1380), r(9557), r(5953), r(8056), r(1025), r(19), r(9506), r(7165), r(2169), r(6939), r(6372), r(3797), r(8454), r(2073), r(4905), r(482), r(2155), r(8124), r(25), r(955), r(7628), r(7193), r(6298), r(2696), n)
+ },
+ 6440: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), function() {
+ if ("function" == typeof ArrayBuffer) {
+ var t = n.lib.WordArray,
+ e = t.init,
+ r = t.init = function(t) {
+ if (t instanceof ArrayBuffer && (t = new Uint8Array(t)), (t instanceof Int8Array || "undefined" != typeof Uint8ClampedArray && t instanceof Uint8ClampedArray || t instanceof Int16Array || t instanceof Uint16Array || t instanceof Int32Array || t instanceof Uint32Array || t instanceof Float32Array || t instanceof Float64Array) && (t = new Uint8Array(t.buffer, t.byteOffset, t.byteLength)), t instanceof Uint8Array) {
+ for (var r = t.byteLength, n = [], i = 0; i < r; i++) n[i >>> 2] |= t[i] << 24 - i % 4 * 8;
+ e.call(this, n, r)
+ } else e.apply(this, arguments)
+ };
+ r.prototype = t
+ }
+ }(), n.lib.WordArray)
+ },
+ 4636: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), function(t) {
+ var e = n,
+ r = e.lib,
+ i = r.WordArray,
+ o = r.Hasher,
+ s = e.algo,
+ a = [];
+ ! function() {
+ for (var e = 0; e < 64; e++) a[e] = 4294967296 * t.abs(t.sin(e + 1)) | 0
+ }();
+ var f = s.MD5 = o.extend({
+ _doReset: function() {
+ this._hash = new i.init([1732584193, 4023233417, 2562383102, 271733878])
+ },
+ _doProcessBlock: function(t, e) {
+ for (var r = 0; r < 16; r++) {
+ var n = e + r,
+ i = t[n];
+ t[n] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8)
+ }
+ var o = this._hash.words,
+ s = t[e + 0],
+ f = t[e + 1],
+ l = t[e + 2],
+ y = t[e + 3],
+ g = t[e + 4],
+ d = t[e + 5],
+ v = t[e + 6],
+ m = t[e + 7],
+ S = t[e + 8],
+ _ = t[e + 9],
+ b = t[e + 10],
+ E = t[e + 11],
+ w = t[e + 12],
+ O = t[e + 13],
+ B = t[e + 14],
+ A = t[e + 15],
+ x = o[0],
+ P = o[1],
+ T = o[2],
+ I = o[3];
+ x = u(x, P, T, I, s, 7, a[0]), I = u(I, x, P, T, f, 12, a[1]), T = u(T, I, x, P, l, 17, a[2]), P = u(P, T, I, x, y, 22, a[3]), x = u(x, P, T, I, g, 7, a[4]), I = u(I, x, P, T, d, 12, a[5]), T = u(T, I, x, P, v, 17, a[6]), P = u(P, T, I, x, m, 22, a[7]), x = u(x, P, T, I, S, 7, a[8]), I = u(I, x, P, T, _, 12, a[9]), T = u(T, I, x, P, b, 17, a[10]), P = u(P, T, I, x, E, 22, a[11]), x = u(x, P, T, I, w, 7, a[12]), I = u(I, x, P, T, O, 12, a[13]), T = u(T, I, x, P, B, 17, a[14]), x = c(x, P = u(P, T, I, x, A, 22, a[15]), T, I, f, 5, a[16]), I = c(I, x, P, T, v, 9, a[17]), T = c(T, I, x, P, E, 14, a[18]), P = c(P, T, I, x, s, 20, a[19]), x = c(x, P, T, I, d, 5, a[20]), I = c(I, x, P, T, b, 9, a[21]), T = c(T, I, x, P, A, 14, a[22]), P = c(P, T, I, x, g, 20, a[23]), x = c(x, P, T, I, _, 5, a[24]), I = c(I, x, P, T, B, 9, a[25]), T = c(T, I, x, P, y, 14, a[26]), P = c(P, T, I, x, S, 20, a[27]), x = c(x, P, T, I, O, 5, a[28]), I = c(I, x, P, T, l, 9, a[29]), T = c(T, I, x, P, m, 14, a[30]), x = h(x, P = c(P, T, I, x, w, 20, a[31]), T, I, d, 4, a[32]), I = h(I, x, P, T, S, 11, a[33]), T = h(T, I, x, P, E, 16, a[34]), P = h(P, T, I, x, B, 23, a[35]), x = h(x, P, T, I, f, 4, a[36]), I = h(I, x, P, T, g, 11, a[37]), T = h(T, I, x, P, m, 16, a[38]), P = h(P, T, I, x, b, 23, a[39]), x = h(x, P, T, I, O, 4, a[40]), I = h(I, x, P, T, s, 11, a[41]), T = h(T, I, x, P, y, 16, a[42]), P = h(P, T, I, x, v, 23, a[43]), x = h(x, P, T, I, _, 4, a[44]), I = h(I, x, P, T, w, 11, a[45]), T = h(T, I, x, P, A, 16, a[46]), x = p(x, P = h(P, T, I, x, l, 23, a[47]), T, I, s, 6, a[48]), I = p(I, x, P, T, m, 10, a[49]), T = p(T, I, x, P, B, 15, a[50]), P = p(P, T, I, x, d, 21, a[51]), x = p(x, P, T, I, w, 6, a[52]), I = p(I, x, P, T, y, 10, a[53]), T = p(T, I, x, P, b, 15, a[54]), P = p(P, T, I, x, f, 21, a[55]), x = p(x, P, T, I, S, 6, a[56]), I = p(I, x, P, T, A, 10, a[57]), T = p(T, I, x, P, v, 15, a[58]), P = p(P, T, I, x, O, 21, a[59]), x = p(x, P, T, I, g, 6, a[60]), I = p(I, x, P, T, E, 10, a[61]), T = p(T, I, x, P, l, 15, a[62]), P = p(P, T, I, x, _, 21, a[63]), o[0] = o[0] + x | 0, o[1] = o[1] + P | 0, o[2] = o[2] + T | 0, o[3] = o[3] + I | 0
+ },
+ _doFinalize: function() {
+ var e = this._data,
+ r = e.words,
+ n = 8 * this._nDataBytes,
+ i = 8 * e.sigBytes;
+ r[i >>> 5] |= 128 << 24 - i % 32;
+ var o = t.floor(n / 4294967296),
+ s = n;
+ r[15 + (i + 64 >>> 9 << 4)] = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), r[14 + (i + 64 >>> 9 << 4)] = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8), e.sigBytes = 4 * (r.length + 1), this._process();
+ for (var a = this._hash, f = a.words, u = 0; u < 4; u++) {
+ var c = f[u];
+ f[u] = 16711935 & (c << 8 | c >>> 24) | 4278255360 & (c << 24 | c >>> 8)
+ }
+ return a
+ },
+ clone: function() {
+ var t = o.clone.call(this);
+ return t._hash = this._hash.clone(), t
+ }
+ });
+
+ function u(t, e, r, n, i, o, s) {
+ var a = t + (e & r | ~e & n) + i + s;
+ return (a << o | a >>> 32 - o) + e
+ }
+
+ function c(t, e, r, n, i, o, s) {
+ var a = t + (e & n | r & ~n) + i + s;
+ return (a << o | a >>> 32 - o) + e
+ }
+
+ function h(t, e, r, n, i, o, s) {
+ var a = t + (e ^ r ^ n) + i + s;
+ return (a << o | a >>> 32 - o) + e
+ }
+
+ function p(t, e, r, n, i, o, s) {
+ var a = t + (r ^ (e | ~n)) + i + s;
+ return (a << o | a >>> 32 - o) + e
+ }
+ e.MD5 = o._createHelper(f), e.HmacMD5 = o._createHmacHelper(f)
+ }(Math), n.MD5)
+ },
+ 2169: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(7165), n.mode.CFB = function() {
+ var t = n.lib.BlockCipherMode.extend();
+
+ function e(t, e, r, n) {
+ var i = this._iv;
+ if (i) {
+ var o = i.slice(0);
+ this._iv = void 0
+ } else o = this._prevBlock;
+ n.encryptBlock(o, 0);
+ for (var s = 0; s < r; s++) t[e + s] ^= o[s]
+ }
+ return t.Encryptor = t.extend({
+ processBlock: function(t, r) {
+ var n = this._cipher,
+ i = n.blockSize;
+ e.call(this, t, r, i, n), this._prevBlock = t.slice(r, r + i)
+ }
+ }), t.Decryptor = t.extend({
+ processBlock: function(t, r) {
+ var n = this._cipher,
+ i = n.blockSize,
+ o = t.slice(r, r + i);
+ e.call(this, t, r, i, n), this._prevBlock = o
+ }
+ }), t
+ }(), n.mode.CFB)
+ },
+ 6372: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(7165), n.mode.CTRGladman = function() {
+ var t = n.lib.BlockCipherMode.extend();
+
+ function e(t) {
+ if (255 & ~(t >> 24)) t += 1 << 24;
+ else {
+ var e = t >> 16 & 255,
+ r = t >> 8 & 255,
+ n = 255 & t;
+ 255 === e ? (e = 0, 255 === r ? (r = 0, 255 === n ? n = 0 : ++n) : ++r) : ++e, t = 0, t += e << 16, t += r << 8, t += n
+ }
+ return t
+ }
+ var r = t.Encryptor = t.extend({
+ processBlock: function(t, r) {
+ var n = this._cipher,
+ i = n.blockSize,
+ o = this._iv,
+ s = this._counter;
+ o && (s = this._counter = o.slice(0), this._iv = void 0),
+ function(t) {
+ 0 === (t[0] = e(t[0])) && (t[1] = e(t[1]))
+ }(s);
+ var a = s.slice(0);
+ n.encryptBlock(a, 0);
+ for (var f = 0; f < i; f++) t[r + f] ^= a[f]
+ }
+ });
+ return t.Decryptor = r, t
+ }(), n.mode.CTRGladman)
+ },
+ 6939: function(t, e, r) {
+ var n, i, o;
+ t.exports = (o = r(9021), r(7165), o.mode.CTR = (i = (n = o.lib.BlockCipherMode.extend()).Encryptor = n.extend({
+ processBlock: function(t, e) {
+ var r = this._cipher,
+ n = r.blockSize,
+ i = this._iv,
+ o = this._counter;
+ i && (o = this._counter = i.slice(0), this._iv = void 0);
+ var s = o.slice(0);
+ r.encryptBlock(s, 0), o[n - 1] = o[n - 1] + 1 | 0;
+ for (var a = 0; a < n; a++) t[e + a] ^= s[a]
+ }
+ }), n.Decryptor = i, n), o.mode.CTR)
+ },
+ 8454: function(t, e, r) {
+ var n, i;
+ t.exports = (i = r(9021), r(7165), i.mode.ECB = ((n = i.lib.BlockCipherMode.extend()).Encryptor = n.extend({
+ processBlock: function(t, e) {
+ this._cipher.encryptBlock(t, e)
+ }
+ }), n.Decryptor = n.extend({
+ processBlock: function(t, e) {
+ this._cipher.decryptBlock(t, e)
+ }
+ }), n), i.mode.ECB)
+ },
+ 3797: function(t, e, r) {
+ var n, i, o;
+ t.exports = (o = r(9021), r(7165), o.mode.OFB = (i = (n = o.lib.BlockCipherMode.extend()).Encryptor = n.extend({
+ processBlock: function(t, e) {
+ var r = this._cipher,
+ n = r.blockSize,
+ i = this._iv,
+ o = this._keystream;
+ i && (o = this._keystream = i.slice(0), this._iv = void 0), r.encryptBlock(o, 0);
+ for (var s = 0; s < n; s++) t[e + s] ^= o[s]
+ }
+ }), n.Decryptor = i, n), o.mode.OFB)
+ },
+ 2073: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(7165), n.pad.AnsiX923 = {
+ pad: function(t, e) {
+ var r = t.sigBytes,
+ n = 4 * e,
+ i = n - r % n,
+ o = r + i - 1;
+ t.clamp(), t.words[o >>> 2] |= i << 24 - o % 4 * 8, t.sigBytes += i
+ },
+ unpad: function(t) {
+ var e = 255 & t.words[t.sigBytes - 1 >>> 2];
+ t.sigBytes -= e
+ }
+ }, n.pad.Ansix923)
+ },
+ 4905: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(7165), n.pad.Iso10126 = {
+ pad: function(t, e) {
+ var r = 4 * e,
+ i = r - t.sigBytes % r;
+ t.concat(n.lib.WordArray.random(i - 1)).concat(n.lib.WordArray.create([i << 24], 1))
+ },
+ unpad: function(t) {
+ var e = 255 & t.words[t.sigBytes - 1 >>> 2];
+ t.sigBytes -= e
+ }
+ }, n.pad.Iso10126)
+ },
+ 482: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(7165), n.pad.Iso97971 = {
+ pad: function(t, e) {
+ t.concat(n.lib.WordArray.create([2147483648], 1)), n.pad.ZeroPadding.pad(t, e)
+ },
+ unpad: function(t) {
+ n.pad.ZeroPadding.unpad(t), t.sigBytes--
+ }
+ }, n.pad.Iso97971)
+ },
+ 8124: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(7165), n.pad.NoPadding = {
+ pad: function() {},
+ unpad: function() {}
+ }, n.pad.NoPadding)
+ },
+ 2155: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(7165), n.pad.ZeroPadding = {
+ pad: function(t, e) {
+ var r = 4 * e;
+ t.clamp(), t.sigBytes += r - (t.sigBytes % r || r)
+ },
+ unpad: function(t) {
+ for (var e = t.words, r = t.sigBytes - 1; !(e[r >>> 2] >>> 24 - r % 4 * 8 & 255);) r--;
+ t.sigBytes = r + 1
+ }
+ }, n.pad.ZeroPadding)
+ },
+ 19: function(t, e, r) {
+ var n, i, o, s, a, f, u, c, h;
+ t.exports = (h = r(9021), r(5471), r(1025), o = (i = (n = h).lib).Base, s = i.WordArray, f = (a = n.algo).SHA1, u = a.HMAC, c = a.PBKDF2 = o.extend({
+ cfg: o.extend({
+ keySize: 4,
+ hasher: f,
+ iterations: 1
+ }),
+ init: function(t) {
+ this.cfg = this.cfg.extend(t)
+ },
+ compute: function(t, e) {
+ for (var r = this.cfg, n = u.create(r.hasher, t), i = s.create(), o = s.create([1]), a = i.words, f = o.words, c = r.keySize, h = r.iterations; a.length < c;) {
+ var p = n.update(e).finalize(o);
+ n.reset();
+ for (var l = p.words, y = l.length, g = p, d = 1; d < h; d++) {
+ g = n.finalize(g), n.reset();
+ for (var v = g.words, m = 0; m < y; m++) l[m] ^= v[m]
+ }
+ i.concat(p), f[0]++
+ }
+ return i.sigBytes = 4 * c, i
+ }
+ }), n.PBKDF2 = function(t, e, r) {
+ return c.create(r).compute(t, e)
+ }, h.PBKDF2)
+ },
+ 2696: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(754), r(4636), r(9506), r(7165), function() {
+ var t = n,
+ e = t.lib.StreamCipher,
+ r = t.algo,
+ i = [],
+ o = [],
+ s = [],
+ a = r.RabbitLegacy = e.extend({
+ _doReset: function() {
+ var t = this._key.words,
+ e = this.cfg.iv,
+ r = this._X = [t[0], t[3] << 16 | t[2] >>> 16, t[1], t[0] << 16 | t[3] >>> 16, t[2], t[1] << 16 | t[0] >>> 16, t[3], t[2] << 16 | t[1] >>> 16],
+ n = this._C = [t[2] << 16 | t[2] >>> 16, 4294901760 & t[0] | 65535 & t[1], t[3] << 16 | t[3] >>> 16, 4294901760 & t[1] | 65535 & t[2], t[0] << 16 | t[0] >>> 16, 4294901760 & t[2] | 65535 & t[3], t[1] << 16 | t[1] >>> 16, 4294901760 & t[3] | 65535 & t[0]];
+ this._b = 0;
+ for (var i = 0; i < 4; i++) f.call(this);
+ for (i = 0; i < 8; i++) n[i] ^= r[i + 4 & 7];
+ if (e) {
+ var o = e.words,
+ s = o[0],
+ a = o[1],
+ u = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8),
+ c = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8),
+ h = u >>> 16 | 4294901760 & c,
+ p = c << 16 | 65535 & u;
+ for (n[0] ^= u, n[1] ^= h, n[2] ^= c, n[3] ^= p, n[4] ^= u, n[5] ^= h, n[6] ^= c, n[7] ^= p, i = 0; i < 4; i++) f.call(this)
+ }
+ },
+ _doProcessBlock: function(t, e) {
+ var r = this._X;
+ f.call(this), i[0] = r[0] ^ r[5] >>> 16 ^ r[3] << 16, i[1] = r[2] ^ r[7] >>> 16 ^ r[5] << 16, i[2] = r[4] ^ r[1] >>> 16 ^ r[7] << 16, i[3] = r[6] ^ r[3] >>> 16 ^ r[1] << 16;
+ for (var n = 0; n < 4; n++) i[n] = 16711935 & (i[n] << 8 | i[n] >>> 24) | 4278255360 & (i[n] << 24 | i[n] >>> 8), t[e + n] ^= i[n]
+ },
+ blockSize: 4,
+ ivSize: 2
+ });
+
+ function f() {
+ for (var t = this._X, e = this._C, r = 0; r < 8; r++) o[r] = e[r];
+ for (e[0] = e[0] + 1295307597 + this._b | 0, e[1] = e[1] + 3545052371 + (e[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, e[2] = e[2] + 886263092 + (e[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, e[3] = e[3] + 1295307597 + (e[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, e[4] = e[4] + 3545052371 + (e[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, e[5] = e[5] + 886263092 + (e[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, e[6] = e[6] + 1295307597 + (e[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, e[7] = e[7] + 3545052371 + (e[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = e[7] >>> 0 < o[7] >>> 0 ? 1 : 0, r = 0; r < 8; r++) {
+ var n = t[r] + e[r],
+ i = 65535 & n,
+ a = n >>> 16,
+ f = ((i * i >>> 17) + i * a >>> 15) + a * a,
+ u = ((4294901760 & n) * n | 0) + ((65535 & n) * n | 0);
+ s[r] = f ^ u
+ }
+ t[0] = s[0] + (s[7] << 16 | s[7] >>> 16) + (s[6] << 16 | s[6] >>> 16) | 0, t[1] = s[1] + (s[0] << 8 | s[0] >>> 24) + s[7] | 0, t[2] = s[2] + (s[1] << 16 | s[1] >>> 16) + (s[0] << 16 | s[0] >>> 16) | 0, t[3] = s[3] + (s[2] << 8 | s[2] >>> 24) + s[1] | 0, t[4] = s[4] + (s[3] << 16 | s[3] >>> 16) + (s[2] << 16 | s[2] >>> 16) | 0, t[5] = s[5] + (s[4] << 8 | s[4] >>> 24) + s[3] | 0, t[6] = s[6] + (s[5] << 16 | s[5] >>> 16) + (s[4] << 16 | s[4] >>> 16) | 0, t[7] = s[7] + (s[6] << 8 | s[6] >>> 24) + s[5] | 0
+ }
+ t.RabbitLegacy = e._createHelper(a)
+ }(), n.RabbitLegacy)
+ },
+ 6298: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(754), r(4636), r(9506), r(7165), function() {
+ var t = n,
+ e = t.lib.StreamCipher,
+ r = t.algo,
+ i = [],
+ o = [],
+ s = [],
+ a = r.Rabbit = e.extend({
+ _doReset: function() {
+ for (var t = this._key.words, e = this.cfg.iv, r = 0; r < 4; r++) t[r] = 16711935 & (t[r] << 8 | t[r] >>> 24) | 4278255360 & (t[r] << 24 | t[r] >>> 8);
+ var n = this._X = [t[0], t[3] << 16 | t[2] >>> 16, t[1], t[0] << 16 | t[3] >>> 16, t[2], t[1] << 16 | t[0] >>> 16, t[3], t[2] << 16 | t[1] >>> 16],
+ i = this._C = [t[2] << 16 | t[2] >>> 16, 4294901760 & t[0] | 65535 & t[1], t[3] << 16 | t[3] >>> 16, 4294901760 & t[1] | 65535 & t[2], t[0] << 16 | t[0] >>> 16, 4294901760 & t[2] | 65535 & t[3], t[1] << 16 | t[1] >>> 16, 4294901760 & t[3] | 65535 & t[0]];
+ for (this._b = 0, r = 0; r < 4; r++) f.call(this);
+ for (r = 0; r < 8; r++) i[r] ^= n[r + 4 & 7];
+ if (e) {
+ var o = e.words,
+ s = o[0],
+ a = o[1],
+ u = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8),
+ c = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8),
+ h = u >>> 16 | 4294901760 & c,
+ p = c << 16 | 65535 & u;
+ for (i[0] ^= u, i[1] ^= h, i[2] ^= c, i[3] ^= p, i[4] ^= u, i[5] ^= h, i[6] ^= c, i[7] ^= p, r = 0; r < 4; r++) f.call(this)
+ }
+ },
+ _doProcessBlock: function(t, e) {
+ var r = this._X;
+ f.call(this), i[0] = r[0] ^ r[5] >>> 16 ^ r[3] << 16, i[1] = r[2] ^ r[7] >>> 16 ^ r[5] << 16, i[2] = r[4] ^ r[1] >>> 16 ^ r[7] << 16, i[3] = r[6] ^ r[3] >>> 16 ^ r[1] << 16;
+ for (var n = 0; n < 4; n++) i[n] = 16711935 & (i[n] << 8 | i[n] >>> 24) | 4278255360 & (i[n] << 24 | i[n] >>> 8), t[e + n] ^= i[n]
+ },
+ blockSize: 4,
+ ivSize: 2
+ });
+
+ function f() {
+ for (var t = this._X, e = this._C, r = 0; r < 8; r++) o[r] = e[r];
+ for (e[0] = e[0] + 1295307597 + this._b | 0, e[1] = e[1] + 3545052371 + (e[0] >>> 0 < o[0] >>> 0 ? 1 : 0) | 0, e[2] = e[2] + 886263092 + (e[1] >>> 0 < o[1] >>> 0 ? 1 : 0) | 0, e[3] = e[3] + 1295307597 + (e[2] >>> 0 < o[2] >>> 0 ? 1 : 0) | 0, e[4] = e[4] + 3545052371 + (e[3] >>> 0 < o[3] >>> 0 ? 1 : 0) | 0, e[5] = e[5] + 886263092 + (e[4] >>> 0 < o[4] >>> 0 ? 1 : 0) | 0, e[6] = e[6] + 1295307597 + (e[5] >>> 0 < o[5] >>> 0 ? 1 : 0) | 0, e[7] = e[7] + 3545052371 + (e[6] >>> 0 < o[6] >>> 0 ? 1 : 0) | 0, this._b = e[7] >>> 0 < o[7] >>> 0 ? 1 : 0, r = 0; r < 8; r++) {
+ var n = t[r] + e[r],
+ i = 65535 & n,
+ a = n >>> 16,
+ f = ((i * i >>> 17) + i * a >>> 15) + a * a,
+ u = ((4294901760 & n) * n | 0) + ((65535 & n) * n | 0);
+ s[r] = f ^ u
+ }
+ t[0] = s[0] + (s[7] << 16 | s[7] >>> 16) + (s[6] << 16 | s[6] >>> 16) | 0, t[1] = s[1] + (s[0] << 8 | s[0] >>> 24) + s[7] | 0, t[2] = s[2] + (s[1] << 16 | s[1] >>> 16) + (s[0] << 16 | s[0] >>> 16) | 0, t[3] = s[3] + (s[2] << 8 | s[2] >>> 24) + s[1] | 0, t[4] = s[4] + (s[3] << 16 | s[3] >>> 16) + (s[2] << 16 | s[2] >>> 16) | 0, t[5] = s[5] + (s[4] << 8 | s[4] >>> 24) + s[3] | 0, t[6] = s[6] + (s[5] << 16 | s[5] >>> 16) + (s[4] << 16 | s[4] >>> 16) | 0, t[7] = s[7] + (s[6] << 8 | s[6] >>> 24) + s[5] | 0
+ }
+ t.Rabbit = e._createHelper(a)
+ }(), n.Rabbit)
+ },
+ 7193: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(754), r(4636), r(9506), r(7165), function() {
+ var t = n,
+ e = t.lib.StreamCipher,
+ r = t.algo,
+ i = r.RC4 = e.extend({
+ _doReset: function() {
+ for (var t = this._key, e = t.words, r = t.sigBytes, n = this._S = [], i = 0; i < 256; i++) n[i] = i;
+ i = 0;
+ for (var o = 0; i < 256; i++) {
+ var s = i % r,
+ a = e[s >>> 2] >>> 24 - s % 4 * 8 & 255;
+ o = (o + n[i] + a) % 256;
+ var f = n[i];
+ n[i] = n[o], n[o] = f
+ }
+ this._i = this._j = 0
+ },
+ _doProcessBlock: function(t, e) {
+ t[e] ^= o.call(this)
+ },
+ keySize: 8,
+ ivSize: 0
+ });
+
+ function o() {
+ for (var t = this._S, e = this._i, r = this._j, n = 0, i = 0; i < 4; i++) {
+ r = (r + t[e = (e + 1) % 256]) % 256;
+ var o = t[e];
+ t[e] = t[r], t[r] = o, n |= t[(t[e] + t[r]) % 256] << 24 - 8 * i
+ }
+ return this._i = e, this._j = r, n
+ }
+ t.RC4 = e._createHelper(i);
+ var s = r.RC4Drop = i.extend({
+ cfg: i.cfg.extend({
+ drop: 192
+ }),
+ _doReset: function() {
+ i._doReset.call(this);
+ for (var t = this.cfg.drop; t > 0; t--) o.call(this)
+ }
+ });
+ t.RC4Drop = e._createHelper(s)
+ }(), n.RC4)
+ },
+ 8056: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), function(t) {
+ var e = n,
+ r = e.lib,
+ i = r.WordArray,
+ o = r.Hasher,
+ s = e.algo,
+ a = i.create([0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8, 3, 10, 14, 4, 9, 15, 8, 1, 2, 7, 0, 6, 13, 11, 5, 12, 1, 9, 11, 10, 0, 8, 12, 4, 13, 3, 7, 15, 14, 5, 6, 2, 4, 0, 5, 9, 7, 12, 2, 10, 14, 1, 3, 8, 11, 6, 15, 13]),
+ f = i.create([5, 14, 7, 0, 9, 2, 11, 4, 13, 6, 15, 8, 1, 10, 3, 12, 6, 11, 3, 7, 0, 13, 5, 10, 14, 15, 8, 12, 4, 9, 1, 2, 15, 5, 1, 3, 7, 14, 6, 9, 11, 8, 12, 2, 10, 0, 4, 13, 8, 6, 4, 1, 3, 11, 15, 0, 5, 12, 2, 13, 9, 7, 10, 14, 12, 15, 10, 4, 1, 5, 8, 7, 6, 2, 13, 14, 0, 3, 9, 11]),
+ u = i.create([11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8, 7, 6, 8, 13, 11, 9, 7, 15, 7, 12, 15, 9, 11, 7, 13, 12, 11, 13, 6, 7, 14, 9, 13, 15, 14, 8, 13, 6, 5, 12, 7, 5, 11, 12, 14, 15, 14, 15, 9, 8, 9, 14, 5, 6, 8, 6, 5, 12, 9, 15, 5, 11, 6, 8, 13, 12, 5, 12, 13, 14, 11, 8, 5, 6]),
+ c = i.create([8, 9, 9, 11, 13, 15, 15, 5, 7, 7, 8, 11, 14, 14, 12, 6, 9, 13, 15, 7, 12, 8, 9, 11, 7, 7, 12, 7, 6, 15, 13, 11, 9, 7, 15, 11, 8, 6, 6, 14, 12, 13, 5, 14, 13, 13, 7, 5, 15, 5, 8, 11, 14, 14, 6, 14, 6, 9, 12, 9, 12, 5, 15, 8, 8, 5, 12, 9, 12, 5, 14, 6, 8, 13, 6, 5, 15, 13, 11, 11]),
+ h = i.create([0, 1518500249, 1859775393, 2400959708, 2840853838]),
+ p = i.create([1352829926, 1548603684, 1836072691, 2053994217, 0]),
+ l = s.RIPEMD160 = o.extend({
+ _doReset: function() {
+ this._hash = i.create([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
+ },
+ _doProcessBlock: function(t, e) {
+ for (var r = 0; r < 16; r++) {
+ var n = e + r,
+ i = t[n];
+ t[n] = 16711935 & (i << 8 | i >>> 24) | 4278255360 & (i << 24 | i >>> 8)
+ }
+ var o, s, l, _, b, E, w, O, B, A, x, P = this._hash.words,
+ T = h.words,
+ I = p.words,
+ k = a.words,
+ D = f.words,
+ R = u.words,
+ N = c.words;
+ for (E = o = P[0], w = s = P[1], O = l = P[2], B = _ = P[3], A = b = P[4], r = 0; r < 80; r += 1) x = o + t[e + k[r]] | 0, x += r < 16 ? y(s, l, _) + T[0] : r < 32 ? g(s, l, _) + T[1] : r < 48 ? d(s, l, _) + T[2] : r < 64 ? v(s, l, _) + T[3] : m(s, l, _) + T[4], x = (x = S(x |= 0, R[r])) + b | 0, o = b, b = _, _ = S(l, 10), l = s, s = x, x = E + t[e + D[r]] | 0, x += r < 16 ? m(w, O, B) + I[0] : r < 32 ? v(w, O, B) + I[1] : r < 48 ? d(w, O, B) + I[2] : r < 64 ? g(w, O, B) + I[3] : y(w, O, B) + I[4], x = (x = S(x |= 0, N[r])) + A | 0, E = A, A = B, B = S(O, 10), O = w, w = x;
+ x = P[1] + l + B | 0, P[1] = P[2] + _ + A | 0, P[2] = P[3] + b + E | 0, P[3] = P[4] + o + w | 0, P[4] = P[0] + s + O | 0, P[0] = x
+ },
+ _doFinalize: function() {
+ var t = this._data,
+ e = t.words,
+ r = 8 * this._nDataBytes,
+ n = 8 * t.sigBytes;
+ e[n >>> 5] |= 128 << 24 - n % 32, e[14 + (n + 64 >>> 9 << 4)] = 16711935 & (r << 8 | r >>> 24) | 4278255360 & (r << 24 | r >>> 8), t.sigBytes = 4 * (e.length + 1), this._process();
+ for (var i = this._hash, o = i.words, s = 0; s < 5; s++) {
+ var a = o[s];
+ o[s] = 16711935 & (a << 8 | a >>> 24) | 4278255360 & (a << 24 | a >>> 8)
+ }
+ return i
+ },
+ clone: function() {
+ var t = o.clone.call(this);
+ return t._hash = this._hash.clone(), t
+ }
+ });
+
+ function y(t, e, r) {
+ return t ^ e ^ r
+ }
+
+ function g(t, e, r) {
+ return t & e | ~t & r
+ }
+
+ function d(t, e, r) {
+ return (t | ~e) ^ r
+ }
+
+ function v(t, e, r) {
+ return t & r | e & ~r
+ }
+
+ function m(t, e, r) {
+ return t ^ (e | ~r)
+ }
+
+ function S(t, e) {
+ return t << e | t >>> 32 - e
+ }
+ e.RIPEMD160 = o._createHelper(l), e.HmacRIPEMD160 = o._createHmacHelper(l)
+ }(Math), n.RIPEMD160)
+ },
+ 5471: function(t, e, r) {
+ var n, i, o, s, a, f, u, c;
+ t.exports = (i = (n = c = r(9021)).lib, o = i.WordArray, s = i.Hasher, a = n.algo, f = [], u = a.SHA1 = s.extend({
+ _doReset: function() {
+ this._hash = new o.init([1732584193, 4023233417, 2562383102, 271733878, 3285377520])
+ },
+ _doProcessBlock: function(t, e) {
+ for (var r = this._hash.words, n = r[0], i = r[1], o = r[2], s = r[3], a = r[4], u = 0; u < 80; u++) {
+ if (u < 16) f[u] = 0 | t[e + u];
+ else {
+ var c = f[u - 3] ^ f[u - 8] ^ f[u - 14] ^ f[u - 16];
+ f[u] = c << 1 | c >>> 31
+ }
+ var h = (n << 5 | n >>> 27) + a + f[u];
+ h += u < 20 ? 1518500249 + (i & o | ~i & s) : u < 40 ? 1859775393 + (i ^ o ^ s) : u < 60 ? (i & o | i & s | o & s) - 1894007588 : (i ^ o ^ s) - 899497514, a = s, s = o, o = i << 30 | i >>> 2, i = n, n = h
+ }
+ r[0] = r[0] + n | 0, r[1] = r[1] + i | 0, r[2] = r[2] + o | 0, r[3] = r[3] + s | 0, r[4] = r[4] + a | 0
+ },
+ _doFinalize: function() {
+ var t = this._data,
+ e = t.words,
+ r = 8 * this._nDataBytes,
+ n = 8 * t.sigBytes;
+ return e[n >>> 5] |= 128 << 24 - n % 32, e[14 + (n + 64 >>> 9 << 4)] = Math.floor(r / 4294967296), e[15 + (n + 64 >>> 9 << 4)] = r, t.sigBytes = 4 * e.length, this._process(), this._hash
+ },
+ clone: function() {
+ var t = s.clone.call(this);
+ return t._hash = this._hash.clone(), t
+ }
+ }), n.SHA1 = s._createHelper(u), n.HmacSHA1 = s._createHmacHelper(u), c.SHA1)
+ },
+ 6308: function(t, e, r) {
+ var n, i, o, s, a, f;
+ t.exports = (f = r(9021), r(3009), i = (n = f).lib.WordArray, o = n.algo, s = o.SHA256, a = o.SHA224 = s.extend({
+ _doReset: function() {
+ this._hash = new i.init([3238371032, 914150663, 812702999, 4144912697, 4290775857, 1750603025, 1694076839, 3204075428])
+ },
+ _doFinalize: function() {
+ var t = s._doFinalize.call(this);
+ return t.sigBytes -= 4, t
+ }
+ }), n.SHA224 = s._createHelper(a), n.HmacSHA224 = s._createHmacHelper(a), f.SHA224)
+ },
+ 3009: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), function(t) {
+ var e = n,
+ r = e.lib,
+ i = r.WordArray,
+ o = r.Hasher,
+ s = e.algo,
+ a = [],
+ f = [];
+ ! function() {
+ function e(e) {
+ for (var r = t.sqrt(e), n = 2; n <= r; n++)
+ if (!(e % n)) return !1;
+ return !0
+ }
+
+ function r(t) {
+ return 4294967296 * (t - (0 | t)) | 0
+ }
+ for (var n = 2, i = 0; i < 64;) e(n) && (i < 8 && (a[i] = r(t.pow(n, .5))), f[i] = r(t.pow(n, 1 / 3)), i++), n++
+ }();
+ var u = [],
+ c = s.SHA256 = o.extend({
+ _doReset: function() {
+ this._hash = new i.init(a.slice(0))
+ },
+ _doProcessBlock: function(t, e) {
+ for (var r = this._hash.words, n = r[0], i = r[1], o = r[2], s = r[3], a = r[4], c = r[5], h = r[6], p = r[7], l = 0; l < 64; l++) {
+ if (l < 16) u[l] = 0 | t[e + l];
+ else {
+ var y = u[l - 15],
+ g = (y << 25 | y >>> 7) ^ (y << 14 | y >>> 18) ^ y >>> 3,
+ d = u[l - 2],
+ v = (d << 15 | d >>> 17) ^ (d << 13 | d >>> 19) ^ d >>> 10;
+ u[l] = g + u[l - 7] + v + u[l - 16]
+ }
+ var m = n & i ^ n & o ^ i & o,
+ S = (n << 30 | n >>> 2) ^ (n << 19 | n >>> 13) ^ (n << 10 | n >>> 22),
+ _ = p + ((a << 26 | a >>> 6) ^ (a << 21 | a >>> 11) ^ (a << 7 | a >>> 25)) + (a & c ^ ~a & h) + f[l] + u[l];
+ p = h, h = c, c = a, a = s + _ | 0, s = o, o = i, i = n, n = _ + (S + m) | 0
+ }
+ r[0] = r[0] + n | 0, r[1] = r[1] + i | 0, r[2] = r[2] + o | 0, r[3] = r[3] + s | 0, r[4] = r[4] + a | 0, r[5] = r[5] + c | 0, r[6] = r[6] + h | 0, r[7] = r[7] + p | 0
+ },
+ _doFinalize: function() {
+ var e = this._data,
+ r = e.words,
+ n = 8 * this._nDataBytes,
+ i = 8 * e.sigBytes;
+ return r[i >>> 5] |= 128 << 24 - i % 32, r[14 + (i + 64 >>> 9 << 4)] = t.floor(n / 4294967296), r[15 + (i + 64 >>> 9 << 4)] = n, e.sigBytes = 4 * r.length, this._process(), this._hash
+ },
+ clone: function() {
+ var t = o.clone.call(this);
+ return t._hash = this._hash.clone(), t
+ }
+ });
+ e.SHA256 = o._createHelper(c), e.HmacSHA256 = o._createHmacHelper(c)
+ }(Math), n.SHA256)
+ },
+ 5953: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(3240), function(t) {
+ var e = n,
+ r = e.lib,
+ i = r.WordArray,
+ o = r.Hasher,
+ s = e.x64.Word,
+ a = e.algo,
+ f = [],
+ u = [],
+ c = [];
+ ! function() {
+ for (var t = 1, e = 0, r = 0; r < 24; r++) {
+ f[t + 5 * e] = (r + 1) * (r + 2) / 2 % 64;
+ var n = (2 * t + 3 * e) % 5;
+ t = e % 5, e = n
+ }
+ for (t = 0; t < 5; t++)
+ for (e = 0; e < 5; e++) u[t + 5 * e] = e + (2 * t + 3 * e) % 5 * 5;
+ for (var i = 1, o = 0; o < 24; o++) {
+ for (var a = 0, h = 0, p = 0; p < 7; p++) {
+ if (1 & i) {
+ var l = (1 << p) - 1;
+ l < 32 ? h ^= 1 << l : a ^= 1 << l - 32
+ }
+ 128 & i ? i = i << 1 ^ 113 : i <<= 1
+ }
+ c[o] = s.create(a, h)
+ }
+ }();
+ var h = [];
+ ! function() {
+ for (var t = 0; t < 25; t++) h[t] = s.create()
+ }();
+ var p = a.SHA3 = o.extend({
+ cfg: o.cfg.extend({
+ outputLength: 512
+ }),
+ _doReset: function() {
+ for (var t = this._state = [], e = 0; e < 25; e++) t[e] = new s.init;
+ this.blockSize = (1600 - 2 * this.cfg.outputLength) / 32
+ },
+ _doProcessBlock: function(t, e) {
+ for (var r = this._state, n = this.blockSize / 2, i = 0; i < n; i++) {
+ var o = t[e + 2 * i],
+ s = t[e + 2 * i + 1];
+ o = 16711935 & (o << 8 | o >>> 24) | 4278255360 & (o << 24 | o >>> 8), s = 16711935 & (s << 8 | s >>> 24) | 4278255360 & (s << 24 | s >>> 8), (P = r[i]).high ^= s, P.low ^= o
+ }
+ for (var a = 0; a < 24; a++) {
+ for (var p = 0; p < 5; p++) {
+ for (var l = 0, y = 0, g = 0; g < 5; g++) l ^= (P = r[p + 5 * g]).high, y ^= P.low;
+ var d = h[p];
+ d.high = l, d.low = y
+ }
+ for (p = 0; p < 5; p++) {
+ var v = h[(p + 4) % 5],
+ m = h[(p + 1) % 5],
+ S = m.high,
+ _ = m.low;
+ for (l = v.high ^ (S << 1 | _ >>> 31), y = v.low ^ (_ << 1 | S >>> 31), g = 0; g < 5; g++)(P = r[p + 5 * g]).high ^= l, P.low ^= y
+ }
+ for (var b = 1; b < 25; b++) {
+ var E = (P = r[b]).high,
+ w = P.low,
+ O = f[b];
+ O < 32 ? (l = E << O | w >>> 32 - O, y = w << O | E >>> 32 - O) : (l = w << O - 32 | E >>> 64 - O, y = E << O - 32 | w >>> 64 - O);
+ var B = h[u[b]];
+ B.high = l, B.low = y
+ }
+ var A = h[0],
+ x = r[0];
+ for (A.high = x.high, A.low = x.low, p = 0; p < 5; p++)
+ for (g = 0; g < 5; g++) {
+ var P = r[b = p + 5 * g],
+ T = h[b],
+ I = h[(p + 1) % 5 + 5 * g],
+ k = h[(p + 2) % 5 + 5 * g];
+ P.high = T.high ^ ~I.high & k.high, P.low = T.low ^ ~I.low & k.low
+ }
+ P = r[0];
+ var D = c[a];
+ P.high ^= D.high, P.low ^= D.low
+ }
+ },
+ _doFinalize: function() {
+ var e = this._data,
+ r = e.words,
+ n = (this._nDataBytes, 8 * e.sigBytes),
+ o = 32 * this.blockSize;
+ r[n >>> 5] |= 1 << 24 - n % 32, r[(t.ceil((n + 1) / o) * o >>> 5) - 1] |= 128, e.sigBytes = 4 * r.length, this._process();
+ for (var s = this._state, a = this.cfg.outputLength / 8, f = a / 8, u = [], c = 0; c < f; c++) {
+ var h = s[c],
+ p = h.high,
+ l = h.low;
+ p = 16711935 & (p << 8 | p >>> 24) | 4278255360 & (p << 24 | p >>> 8), l = 16711935 & (l << 8 | l >>> 24) | 4278255360 & (l << 24 | l >>> 8), u.push(l), u.push(p)
+ }
+ return new i.init(u, a)
+ },
+ clone: function() {
+ for (var t = o.clone.call(this), e = t._state = this._state.slice(0), r = 0; r < 25; r++) e[r] = e[r].clone();
+ return t
+ }
+ });
+ e.SHA3 = o._createHelper(p), e.HmacSHA3 = o._createHmacHelper(p)
+ }(Math), n.SHA3)
+ },
+ 9557: function(t, e, r) {
+ var n, i, o, s, a, f, u, c;
+ t.exports = (c = r(9021), r(3240), r(1380), i = (n = c).x64, o = i.Word, s = i.WordArray, a = n.algo, f = a.SHA512, u = a.SHA384 = f.extend({
+ _doReset: function() {
+ this._hash = new s.init([new o.init(3418070365, 3238371032), new o.init(1654270250, 914150663), new o.init(2438529370, 812702999), new o.init(355462360, 4144912697), new o.init(1731405415, 4290775857), new o.init(2394180231, 1750603025), new o.init(3675008525, 1694076839), new o.init(1203062813, 3204075428)])
+ },
+ _doFinalize: function() {
+ var t = f._doFinalize.call(this);
+ return t.sigBytes -= 16, t
+ }
+ }), n.SHA384 = f._createHelper(u), n.HmacSHA384 = f._createHmacHelper(u), c.SHA384)
+ },
+ 1380: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(3240), function() {
+ var t = n,
+ e = t.lib.Hasher,
+ r = t.x64,
+ i = r.Word,
+ o = r.WordArray,
+ s = t.algo;
+
+ function a() {
+ return i.create.apply(i, arguments)
+ }
+ var f = [a(1116352408, 3609767458), a(1899447441, 602891725), a(3049323471, 3964484399), a(3921009573, 2173295548), a(961987163, 4081628472), a(1508970993, 3053834265), a(2453635748, 2937671579), a(2870763221, 3664609560), a(3624381080, 2734883394), a(310598401, 1164996542), a(607225278, 1323610764), a(1426881987, 3590304994), a(1925078388, 4068182383), a(2162078206, 991336113), a(2614888103, 633803317), a(3248222580, 3479774868), a(3835390401, 2666613458), a(4022224774, 944711139), a(264347078, 2341262773), a(604807628, 2007800933), a(770255983, 1495990901), a(1249150122, 1856431235), a(1555081692, 3175218132), a(1996064986, 2198950837), a(2554220882, 3999719339), a(2821834349, 766784016), a(2952996808, 2566594879), a(3210313671, 3203337956), a(3336571891, 1034457026), a(3584528711, 2466948901), a(113926993, 3758326383), a(338241895, 168717936), a(666307205, 1188179964), a(773529912, 1546045734), a(1294757372, 1522805485), a(1396182291, 2643833823), a(1695183700, 2343527390), a(1986661051, 1014477480), a(2177026350, 1206759142), a(2456956037, 344077627), a(2730485921, 1290863460), a(2820302411, 3158454273), a(3259730800, 3505952657), a(3345764771, 106217008), a(3516065817, 3606008344), a(3600352804, 1432725776), a(4094571909, 1467031594), a(275423344, 851169720), a(430227734, 3100823752), a(506948616, 1363258195), a(659060556, 3750685593), a(883997877, 3785050280), a(958139571, 3318307427), a(1322822218, 3812723403), a(1537002063, 2003034995), a(1747873779, 3602036899), a(1955562222, 1575990012), a(2024104815, 1125592928), a(2227730452, 2716904306), a(2361852424, 442776044), a(2428436474, 593698344), a(2756734187, 3733110249), a(3204031479, 2999351573), a(3329325298, 3815920427), a(3391569614, 3928383900), a(3515267271, 566280711), a(3940187606, 3454069534), a(4118630271, 4000239992), a(116418474, 1914138554), a(174292421, 2731055270), a(289380356, 3203993006), a(460393269, 320620315), a(685471733, 587496836), a(852142971, 1086792851), a(1017036298, 365543100), a(1126000580, 2618297676), a(1288033470, 3409855158), a(1501505948, 4234509866), a(1607167915, 987167468), a(1816402316, 1246189591)],
+ u = [];
+ ! function() {
+ for (var t = 0; t < 80; t++) u[t] = a()
+ }();
+ var c = s.SHA512 = e.extend({
+ _doReset: function() {
+ this._hash = new o.init([new i.init(1779033703, 4089235720), new i.init(3144134277, 2227873595), new i.init(1013904242, 4271175723), new i.init(2773480762, 1595750129), new i.init(1359893119, 2917565137), new i.init(2600822924, 725511199), new i.init(528734635, 4215389547), new i.init(1541459225, 327033209)])
+ },
+ _doProcessBlock: function(t, e) {
+ for (var r = this._hash.words, n = r[0], i = r[1], o = r[2], s = r[3], a = r[4], c = r[5], h = r[6], p = r[7], l = n.high, y = n.low, g = i.high, d = i.low, v = o.high, m = o.low, S = s.high, _ = s.low, b = a.high, E = a.low, w = c.high, O = c.low, B = h.high, A = h.low, x = p.high, P = p.low, T = l, I = y, k = g, D = d, R = v, N = m, L = S, C = _, U = b, M = E, j = w, H = O, F = B, z = A, G = x, q = P, $ = 0; $ < 80; $++) {
+ var K = u[$];
+ if ($ < 16) var W = K.high = 0 | t[e + 2 * $],
+ V = K.low = 0 | t[e + 2 * $ + 1];
+ else {
+ var Y = u[$ - 15],
+ X = Y.high,
+ Z = Y.low,
+ J = (X >>> 1 | Z << 31) ^ (X >>> 8 | Z << 24) ^ X >>> 7,
+ Q = (Z >>> 1 | X << 31) ^ (Z >>> 8 | X << 24) ^ (Z >>> 7 | X << 25),
+ tt = u[$ - 2],
+ et = tt.high,
+ rt = tt.low,
+ nt = (et >>> 19 | rt << 13) ^ (et << 3 | rt >>> 29) ^ et >>> 6,
+ it = (rt >>> 19 | et << 13) ^ (rt << 3 | et >>> 29) ^ (rt >>> 6 | et << 26),
+ ot = u[$ - 7],
+ st = ot.high,
+ at = ot.low,
+ ft = u[$ - 16],
+ ut = ft.high,
+ ct = ft.low;
+ W = (W = (W = J + st + ((V = Q + at) >>> 0 < Q >>> 0 ? 1 : 0)) + nt + ((V += it) >>> 0 < it >>> 0 ? 1 : 0)) + ut + ((V += ct) >>> 0 < ct >>> 0 ? 1 : 0), K.high = W, K.low = V
+ }
+ var ht, pt = U & j ^ ~U & F,
+ lt = M & H ^ ~M & z,
+ yt = T & k ^ T & R ^ k & R,
+ gt = I & D ^ I & N ^ D & N,
+ dt = (T >>> 28 | I << 4) ^ (T << 30 | I >>> 2) ^ (T << 25 | I >>> 7),
+ vt = (I >>> 28 | T << 4) ^ (I << 30 | T >>> 2) ^ (I << 25 | T >>> 7),
+ mt = (U >>> 14 | M << 18) ^ (U >>> 18 | M << 14) ^ (U << 23 | M >>> 9),
+ St = (M >>> 14 | U << 18) ^ (M >>> 18 | U << 14) ^ (M << 23 | U >>> 9),
+ _t = f[$],
+ bt = _t.high,
+ Et = _t.low,
+ wt = G + mt + ((ht = q + St) >>> 0 < q >>> 0 ? 1 : 0),
+ Ot = vt + gt;
+ G = F, q = z, F = j, z = H, j = U, H = M, U = L + (wt = (wt = (wt = wt + pt + ((ht += lt) >>> 0 < lt >>> 0 ? 1 : 0)) + bt + ((ht += Et) >>> 0 < Et >>> 0 ? 1 : 0)) + W + ((ht += V) >>> 0 < V >>> 0 ? 1 : 0)) + ((M = C + ht | 0) >>> 0 < C >>> 0 ? 1 : 0) | 0, L = R, C = N, R = k, N = D, k = T, D = I, T = wt + (dt + yt + (Ot >>> 0 < vt >>> 0 ? 1 : 0)) + ((I = ht + Ot | 0) >>> 0 < ht >>> 0 ? 1 : 0) | 0
+ }
+ y = n.low = y + I, n.high = l + T + (y >>> 0 < I >>> 0 ? 1 : 0), d = i.low = d + D, i.high = g + k + (d >>> 0 < D >>> 0 ? 1 : 0), m = o.low = m + N, o.high = v + R + (m >>> 0 < N >>> 0 ? 1 : 0), _ = s.low = _ + C, s.high = S + L + (_ >>> 0 < C >>> 0 ? 1 : 0), E = a.low = E + M, a.high = b + U + (E >>> 0 < M >>> 0 ? 1 : 0), O = c.low = O + H, c.high = w + j + (O >>> 0 < H >>> 0 ? 1 : 0), A = h.low = A + z, h.high = B + F + (A >>> 0 < z >>> 0 ? 1 : 0), P = p.low = P + q, p.high = x + G + (P >>> 0 < q >>> 0 ? 1 : 0)
+ },
+ _doFinalize: function() {
+ var t = this._data,
+ e = t.words,
+ r = 8 * this._nDataBytes,
+ n = 8 * t.sigBytes;
+ return e[n >>> 5] |= 128 << 24 - n % 32, e[30 + (n + 128 >>> 10 << 5)] = Math.floor(r / 4294967296), e[31 + (n + 128 >>> 10 << 5)] = r, t.sigBytes = 4 * e.length, this._process(), this._hash.toX32()
+ },
+ clone: function() {
+ var t = e.clone.call(this);
+ return t._hash = this._hash.clone(), t
+ },
+ blockSize: 32
+ });
+ t.SHA512 = e._createHelper(c), t.HmacSHA512 = e._createHmacHelper(c)
+ }(), n.SHA512)
+ },
+ 7628: function(t, e, r) {
+ var n;
+ t.exports = (n = r(9021), r(754), r(4636), r(9506), r(7165), function() {
+ var t = n,
+ e = t.lib,
+ r = e.WordArray,
+ i = e.BlockCipher,
+ o = t.algo,
+ s = [57, 49, 41, 33, 25, 17, 9, 1, 58, 50, 42, 34, 26, 18, 10, 2, 59, 51, 43, 35, 27, 19, 11, 3, 60, 52, 44, 36, 63, 55, 47, 39, 31, 23, 15, 7, 62, 54, 46, 38, 30, 22, 14, 6, 61, 53, 45, 37, 29, 21, 13, 5, 28, 20, 12, 4],
+ a = [14, 17, 11, 24, 1, 5, 3, 28, 15, 6, 21, 10, 23, 19, 12, 4, 26, 8, 16, 7, 27, 20, 13, 2, 41, 52, 31, 37, 47, 55, 30, 40, 51, 45, 33, 48, 44, 49, 39, 56, 34, 53, 46, 42, 50, 36, 29, 32],
+ f = [1, 2, 4, 6, 8, 10, 12, 14, 15, 17, 19, 21, 23, 25, 27, 28],
+ u = [{
+ 0: 8421888,
+ 268435456: 32768,
+ 536870912: 8421378,
+ 805306368: 2,
+ 1073741824: 512,
+ 1342177280: 8421890,
+ 1610612736: 8389122,
+ 1879048192: 8388608,
+ 2147483648: 514,
+ 2415919104: 8389120,
+ 2684354560: 33280,
+ 2952790016: 8421376,
+ 3221225472: 32770,
+ 3489660928: 8388610,
+ 3758096384: 0,
+ 4026531840: 33282,
+ 134217728: 0,
+ 402653184: 8421890,
+ 671088640: 33282,
+ 939524096: 32768,
+ 1207959552: 8421888,
+ 1476395008: 512,
+ 1744830464: 8421378,
+ 2013265920: 2,
+ 2281701376: 8389120,
+ 2550136832: 33280,
+ 2818572288: 8421376,
+ 3087007744: 8389122,
+ 3355443200: 8388610,
+ 3623878656: 32770,
+ 3892314112: 514,
+ 4160749568: 8388608,
+ 1: 32768,
+ 268435457: 2,
+ 536870913: 8421888,
+ 805306369: 8388608,
+ 1073741825: 8421378,
+ 1342177281: 33280,
+ 1610612737: 512,
+ 1879048193: 8389122,
+ 2147483649: 8421890,
+ 2415919105: 8421376,
+ 2684354561: 8388610,
+ 2952790017: 33282,
+ 3221225473: 514,
+ 3489660929: 8389120,
+ 3758096385: 32770,
+ 4026531841: 0,
+ 134217729: 8421890,
+ 402653185: 8421376,
+ 671088641: 8388608,
+ 939524097: 512,
+ 1207959553: 32768,
+ 1476395009: 8388610,
+ 1744830465: 2,
+ 2013265921: 33282,
+ 2281701377: 32770,
+ 2550136833: 8389122,
+ 2818572289: 514,
+ 3087007745: 8421888,
+ 3355443201: 8389120,
+ 3623878657: 0,
+ 3892314113: 33280,
+ 4160749569: 8421378
+ }, {
+ 0: 1074282512,
+ 16777216: 16384,
+ 33554432: 524288,
+ 50331648: 1074266128,
+ 67108864: 1073741840,
+ 83886080: 1074282496,
+ 100663296: 1073758208,
+ 117440512: 16,
+ 134217728: 540672,
+ 150994944: 1073758224,
+ 167772160: 1073741824,
+ 184549376: 540688,
+ 201326592: 524304,
+ 218103808: 0,
+ 234881024: 16400,
+ 251658240: 1074266112,
+ 8388608: 1073758208,
+ 25165824: 540688,
+ 41943040: 16,
+ 58720256: 1073758224,
+ 75497472: 1074282512,
+ 92274688: 1073741824,
+ 109051904: 524288,
+ 125829120: 1074266128,
+ 142606336: 524304,
+ 159383552: 0,
+ 176160768: 16384,
+ 192937984: 1074266112,
+ 209715200: 1073741840,
+ 226492416: 540672,
+ 243269632: 1074282496,
+ 260046848: 16400,
+ 268435456: 0,
+ 285212672: 1074266128,
+ 301989888: 1073758224,
+ 318767104: 1074282496,
+ 335544320: 1074266112,
+ 352321536: 16,
+ 369098752: 540688,
+ 385875968: 16384,
+ 402653184: 16400,
+ 419430400: 524288,
+ 436207616: 524304,
+ 452984832: 1073741840,
+ 469762048: 540672,
+ 486539264: 1073758208,
+ 503316480: 1073741824,
+ 520093696: 1074282512,
+ 276824064: 540688,
+ 293601280: 524288,
+ 310378496: 1074266112,
+ 327155712: 16384,
+ 343932928: 1073758208,
+ 360710144: 1074282512,
+ 377487360: 16,
+ 394264576: 1073741824,
+ 411041792: 1074282496,
+ 427819008: 1073741840,
+ 444596224: 1073758224,
+ 461373440: 524304,
+ 478150656: 0,
+ 494927872: 16400,
+ 511705088: 1074266128,
+ 528482304: 540672
+ }, {
+ 0: 260,
+ 1048576: 0,
+ 2097152: 67109120,
+ 3145728: 65796,
+ 4194304: 65540,
+ 5242880: 67108868,
+ 6291456: 67174660,
+ 7340032: 67174400,
+ 8388608: 67108864,
+ 9437184: 67174656,
+ 10485760: 65792,
+ 11534336: 67174404,
+ 12582912: 67109124,
+ 13631488: 65536,
+ 14680064: 4,
+ 15728640: 256,
+ 524288: 67174656,
+ 1572864: 67174404,
+ 2621440: 0,
+ 3670016: 67109120,
+ 4718592: 67108868,
+ 5767168: 65536,
+ 6815744: 65540,
+ 7864320: 260,
+ 8912896: 4,
+ 9961472: 256,
+ 11010048: 67174400,
+ 12058624: 65796,
+ 13107200: 65792,
+ 14155776: 67109124,
+ 15204352: 67174660,
+ 16252928: 67108864,
+ 16777216: 67174656,
+ 17825792: 65540,
+ 18874368: 65536,
+ 19922944: 67109120,
+ 20971520: 256,
+ 22020096: 67174660,
+ 23068672: 67108868,
+ 24117248: 0,
+ 25165824: 67109124,
+ 26214400: 67108864,
+ 27262976: 4,
+ 28311552: 65792,
+ 29360128: 67174400,
+ 30408704: 260,
+ 31457280: 65796,
+ 32505856: 67174404,
+ 17301504: 67108864,
+ 18350080: 260,
+ 19398656: 67174656,
+ 20447232: 0,
+ 21495808: 65540,
+ 22544384: 67109120,
+ 23592960: 256,
+ 24641536: 67174404,
+ 25690112: 65536,
+ 26738688: 67174660,
+ 27787264: 65796,
+ 28835840: 67108868,
+ 29884416: 67109124,
+ 30932992: 67174400,
+ 31981568: 4,
+ 33030144: 65792
+ }, {
+ 0: 2151682048,
+ 65536: 2147487808,
+ 131072: 4198464,
+ 196608: 2151677952,
+ 262144: 0,
+ 327680: 4198400,
+ 393216: 2147483712,
+ 458752: 4194368,
+ 524288: 2147483648,
+ 589824: 4194304,
+ 655360: 64,
+ 720896: 2147487744,
+ 786432: 2151678016,
+ 851968: 4160,
+ 917504: 4096,
+ 983040: 2151682112,
+ 32768: 2147487808,
+ 98304: 64,
+ 163840: 2151678016,
+ 229376: 2147487744,
+ 294912: 4198400,
+ 360448: 2151682112,
+ 425984: 0,
+ 491520: 2151677952,
+ 557056: 4096,
+ 622592: 2151682048,
+ 688128: 4194304,
+ 753664: 4160,
+ 819200: 2147483648,
+ 884736: 4194368,
+ 950272: 4198464,
+ 1015808: 2147483712,
+ 1048576: 4194368,
+ 1114112: 4198400,
+ 1179648: 2147483712,
+ 1245184: 0,
+ 1310720: 4160,
+ 1376256: 2151678016,
+ 1441792: 2151682048,
+ 1507328: 2147487808,
+ 1572864: 2151682112,
+ 1638400: 2147483648,
+ 1703936: 2151677952,
+ 1769472: 4198464,
+ 1835008: 2147487744,
+ 1900544: 4194304,
+ 1966080: 64,
+ 2031616: 4096,
+ 1081344: 2151677952,
+ 1146880: 2151682112,
+ 1212416: 0,
+ 1277952: 4198400,
+ 1343488: 4194368,
+ 1409024: 2147483648,
+ 1474560: 2147487808,
+ 1540096: 64,
+ 1605632: 2147483712,
+ 1671168: 4096,
+ 1736704: 2147487744,
+ 1802240: 2151678016,
+ 1867776: 4160,
+ 1933312: 2151682048,
+ 1998848: 4194304,
+ 2064384: 4198464
+ }, {
+ 0: 128,
+ 4096: 17039360,
+ 8192: 262144,
+ 12288: 536870912,
+ 16384: 537133184,
+ 20480: 16777344,
+ 24576: 553648256,
+ 28672: 262272,
+ 32768: 16777216,
+ 36864: 537133056,
+ 40960: 536871040,
+ 45056: 553910400,
+ 49152: 553910272,
+ 53248: 0,
+ 57344: 17039488,
+ 61440: 553648128,
+ 2048: 17039488,
+ 6144: 553648256,
+ 10240: 128,
+ 14336: 17039360,
+ 18432: 262144,
+ 22528: 537133184,
+ 26624: 553910272,
+ 30720: 536870912,
+ 34816: 537133056,
+ 38912: 0,
+ 43008: 553910400,
+ 47104: 16777344,
+ 51200: 536871040,
+ 55296: 553648128,
+ 59392: 16777216,
+ 63488: 262272,
+ 65536: 262144,
+ 69632: 128,
+ 73728: 536870912,
+ 77824: 553648256,
+ 81920: 16777344,
+ 86016: 553910272,
+ 90112: 537133184,
+ 94208: 16777216,
+ 98304: 553910400,
+ 102400: 553648128,
+ 106496: 17039360,
+ 110592: 537133056,
+ 114688: 262272,
+ 118784: 536871040,
+ 122880: 0,
+ 126976: 17039488,
+ 67584: 553648256,
+ 71680: 16777216,
+ 75776: 17039360,
+ 79872: 537133184,
+ 83968: 536870912,
+ 88064: 17039488,
+ 92160: 128,
+ 96256: 553910272,
+ 100352: 262272,
+ 104448: 553910400,
+ 108544: 0,
+ 112640: 553648128,
+ 116736: 16777344,
+ 120832: 262144,
+ 124928: 537133056,
+ 129024: 536871040
+ }, {
+ 0: 268435464,
+ 256: 8192,
+ 512: 270532608,
+ 768: 270540808,
+ 1024: 268443648,
+ 1280: 2097152,
+ 1536: 2097160,
+ 1792: 268435456,
+ 2048: 0,
+ 2304: 268443656,
+ 2560: 2105344,
+ 2816: 8,
+ 3072: 270532616,
+ 3328: 2105352,
+ 3584: 8200,
+ 3840: 270540800,
+ 128: 270532608,
+ 384: 270540808,
+ 640: 8,
+ 896: 2097152,
+ 1152: 2105352,
+ 1408: 268435464,
+ 1664: 268443648,
+ 1920: 8200,
+ 2176: 2097160,
+ 2432: 8192,
+ 2688: 268443656,
+ 2944: 270532616,
+ 3200: 0,
+ 3456: 270540800,
+ 3712: 2105344,
+ 3968: 268435456,
+ 4096: 268443648,
+ 4352: 270532616,
+ 4608: 270540808,
+ 4864: 8200,
+ 5120: 2097152,
+ 5376: 268435456,
+ 5632: 268435464,
+ 5888: 2105344,
+ 6144: 2105352,
+ 6400: 0,
+ 6656: 8,
+ 6912: 270532608,
+ 7168: 8192,
+ 7424: 268443656,
+ 7680: 270540800,
+ 7936: 2097160,
+ 4224: 8,
+ 4480: 2105344,
+ 4736: 2097152,
+ 4992: 268435464,
+ 5248: 268443648,
+ 5504: 8200,
+ 5760: 270540808,
+ 6016: 270532608,
+ 6272: 270540800,
+ 6528: 270532616,
+ 6784: 8192,
+ 7040: 2105352,
+ 7296: 2097160,
+ 7552: 0,
+ 7808: 268435456,
+ 8064: 268443656
+ }, {
+ 0: 1048576,
+ 16: 33555457,
+ 32: 1024,
+ 48: 1049601,
+ 64: 34604033,
+ 80: 0,
+ 96: 1,
+ 112: 34603009,
+ 128: 33555456,
+ 144: 1048577,
+ 160: 33554433,
+ 176: 34604032,
+ 192: 34603008,
+ 208: 1025,
+ 224: 1049600,
+ 240: 33554432,
+ 8: 34603009,
+ 24: 0,
+ 40: 33555457,
+ 56: 34604032,
+ 72: 1048576,
+ 88: 33554433,
+ 104: 33554432,
+ 120: 1025,
+ 136: 1049601,
+ 152: 33555456,
+ 168: 34603008,
+ 184: 1048577,
+ 200: 1024,
+ 216: 34604033,
+ 232: 1,
+ 248: 1049600,
+ 256: 33554432,
+ 272: 1048576,
+ 288: 33555457,
+ 304: 34603009,
+ 320: 1048577,
+ 336: 33555456,
+ 352: 34604032,
+ 368: 1049601,
+ 384: 1025,
+ 400: 34604033,
+ 416: 1049600,
+ 432: 1,
+ 448: 0,
+ 464: 34603008,
+ 480: 33554433,
+ 496: 1024,
+ 264: 1049600,
+ 280: 33555457,
+ 296: 34603009,
+ 312: 1,
+ 328: 33554432,
+ 344: 1048576,
+ 360: 1025,
+ 376: 34604032,
+ 392: 33554433,
+ 408: 34603008,
+ 424: 0,
+ 440: 34604033,
+ 456: 1049601,
+ 472: 1024,
+ 488: 33555456,
+ 504: 1048577
+ }, {
+ 0: 134219808,
+ 1: 131072,
+ 2: 134217728,
+ 3: 32,
+ 4: 131104,
+ 5: 134350880,
+ 6: 134350848,
+ 7: 2048,
+ 8: 134348800,
+ 9: 134219776,
+ 10: 133120,
+ 11: 134348832,
+ 12: 2080,
+ 13: 0,
+ 14: 134217760,
+ 15: 133152,
+ 2147483648: 2048,
+ 2147483649: 134350880,
+ 2147483650: 134219808,
+ 2147483651: 134217728,
+ 2147483652: 134348800,
+ 2147483653: 133120,
+ 2147483654: 133152,
+ 2147483655: 32,
+ 2147483656: 134217760,
+ 2147483657: 2080,
+ 2147483658: 131104,
+ 2147483659: 134350848,
+ 2147483660: 0,
+ 2147483661: 134348832,
+ 2147483662: 134219776,
+ 2147483663: 131072,
+ 16: 133152,
+ 17: 134350848,
+ 18: 32,
+ 19: 2048,
+ 20: 134219776,
+ 21: 134217760,
+ 22: 134348832,
+ 23: 131072,
+ 24: 0,
+ 25: 131104,
+ 26: 134348800,
+ 27: 134219808,
+ 28: 134350880,
+ 29: 133120,
+ 30: 2080,
+ 31: 134217728,
+ 2147483664: 131072,
+ 2147483665: 2048,
+ 2147483666: 134348832,
+ 2147483667: 133152,
+ 2147483668: 32,
+ 2147483669: 134348800,
+ 2147483670: 134217728,
+ 2147483671: 134219808,
+ 2147483672: 134350880,
+ 2147483673: 134217760,
+ 2147483674: 134219776,
+ 2147483675: 0,
+ 2147483676: 133120,
+ 2147483677: 2080,
+ 2147483678: 131104,
+ 2147483679: 134350848
+ }],
+ c = [4160749569, 528482304, 33030144, 2064384, 129024, 8064, 504, 2147483679],
+ h = o.DES = i.extend({
+ _doReset: function() {
+ for (var t = this._key.words, e = [], r = 0; r < 56; r++) {
+ var n = s[r] - 1;
+ e[r] = t[n >>> 5] >>> 31 - n % 32 & 1
+ }
+ for (var i = this._subKeys = [], o = 0; o < 16; o++) {
+ var u = i[o] = [],
+ c = f[o];
+ for (r = 0; r < 24; r++) u[r / 6 | 0] |= e[(a[r] - 1 + c) % 28] << 31 - r % 6, u[4 + (r / 6 | 0)] |= e[28 + (a[r + 24] - 1 + c) % 28] << 31 - r % 6;
+ for (u[0] = u[0] << 1 | u[0] >>> 31, r = 1; r < 7; r++) u[r] = u[r] >>> 4 * (r - 1) + 3;
+ u[7] = u[7] << 5 | u[7] >>> 27
+ }
+ var h = this._invSubKeys = [];
+ for (r = 0; r < 16; r++) h[r] = i[15 - r]
+ },
+ encryptBlock: function(t, e) {
+ this._doCryptBlock(t, e, this._subKeys)
+ },
+ decryptBlock: function(t, e) {
+ this._doCryptBlock(t, e, this._invSubKeys)
+ },
+ _doCryptBlock: function(t, e, r) {
+ this._lBlock = t[e], this._rBlock = t[e + 1], p.call(this, 4, 252645135), p.call(this, 16, 65535), l.call(this, 2, 858993459), l.call(this, 8, 16711935), p.call(this, 1, 1431655765);
+ for (var n = 0; n < 16; n++) {
+ for (var i = r[n], o = this._lBlock, s = this._rBlock, a = 0, f = 0; f < 8; f++) a |= u[f][((s ^ i[f]) & c[f]) >>> 0];
+ this._lBlock = s, this._rBlock = o ^ a
+ }
+ var h = this._lBlock;
+ this._lBlock = this._rBlock, this._rBlock = h, p.call(this, 1, 1431655765), l.call(this, 8, 16711935), l.call(this, 2, 858993459), p.call(this, 16, 65535), p.call(this, 4, 252645135), t[e] = this._lBlock, t[e + 1] = this._rBlock
+ },
+ keySize: 2,
+ ivSize: 2,
+ blockSize: 2
+ });
+
+ function p(t, e) {
+ var r = (this._lBlock >>> t ^ this._rBlock) & e;
+ this._rBlock ^= r, this._lBlock ^= r << t
+ }
+
+ function l(t, e) {
+ var r = (this._rBlock >>> t ^ this._lBlock) & e;
+ this._lBlock ^= r, this._rBlock ^= r << t
+ }
+ t.DES = i._createHelper(h);
+ var y = o.TripleDES = i.extend({
+ _doReset: function() {
+ var t = this._key.words;
+ this._des1 = h.createEncryptor(r.create(t.slice(0, 2))), this._des2 = h.createEncryptor(r.create(t.slice(2, 4))), this._des3 = h.createEncryptor(r.create(t.slice(4, 6)))
+ },
+ encryptBlock: function(t, e) {
+ this._des1.encryptBlock(t, e), this._des2.decryptBlock(t, e), this._des3.encryptBlock(t, e)
+ },
+ decryptBlock: function(t, e) {
+ this._des3.decryptBlock(t, e), this._des2.encryptBlock(t, e), this._des1.decryptBlock(t, e)
+ },
+ keySize: 6,
+ ivSize: 2,
+ blockSize: 2
+ });
+ t.TripleDES = i._createHelper(y)
+ }(), n.TripleDES)
+ },
+ 3240: function(t, e, r) {
+ var n, i, o, s, a, f;
+ t.exports = (n = r(9021), o = (i = n).lib, s = o.Base, a = o.WordArray, (f = i.x64 = {}).Word = s.extend({
+ init: function(t, e) {
+ this.high = t, this.low = e
+ }
+ }), f.WordArray = s.extend({
+ init: function(t, e) {
+ t = this.words = t || [], this.sigBytes = null != e ? e : 8 * t.length
+ },
+ toX32: function() {
+ for (var t = this.words, e = t.length, r = [], n = 0; n < e; n++) {
+ var i = t[n];
+ r.push(i.high), r.push(i.low)
+ }
+ return a.create(r, this.sigBytes)
+ },
+ clone: function() {
+ for (var t = s.clone.call(this), e = t.words = this.words.slice(0), r = e.length, n = 0; n < r; n++) e[n] = e[n].clone();
+ return t
+ }
+ }), n)
+ },
+ 41: (t, e, r) => {
+ "use strict";
+ var n = r(655),
+ i = r(8068),
+ o = r(9675),
+ s = r(5795);
+ t.exports = function(t, e, r) {
+ if (!t || "object" != typeof t && "function" != typeof t) throw new o("`obj` must be an object or a function`");
+ if ("string" != typeof e && "symbol" != typeof e) throw new o("`property` must be a string or a symbol`");
+ if (arguments.length > 3 && "boolean" != typeof arguments[3] && null !== arguments[3]) throw new o("`nonEnumerable`, if provided, must be a boolean or null");
+ if (arguments.length > 4 && "boolean" != typeof arguments[4] && null !== arguments[4]) throw new o("`nonWritable`, if provided, must be a boolean or null");
+ if (arguments.length > 5 && "boolean" != typeof arguments[5] && null !== arguments[5]) throw new o("`nonConfigurable`, if provided, must be a boolean or null");
+ if (arguments.length > 6 && "boolean" != typeof arguments[6]) throw new o("`loose`, if provided, must be a boolean");
+ var a = arguments.length > 3 ? arguments[3] : null,
+ f = arguments.length > 4 ? arguments[4] : null,
+ u = arguments.length > 5 ? arguments[5] : null,
+ c = arguments.length > 6 && arguments[6],
+ h = !!s && s(t, e);
+ if (n) n(t, e, {
+ configurable: null === u && h ? h.configurable : !u,
+ enumerable: null === a && h ? h.enumerable : !a,
+ value: r,
+ writable: null === f && h ? h.writable : !f
+ });
+ else {
+ if (!c && (a || f || u)) throw new i("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.");
+ t[e] = r
+ }
+ }
+ },
+ 655: (t, e, r) => {
+ "use strict";
+ var n = r(453)("%Object.defineProperty%", !0) || !1;
+ if (n) try {
+ n({}, "a", {
+ value: 1
+ })
+ } catch (t) {
+ n = !1
+ }
+ t.exports = n
+ },
+ 1237: t => {
+ "use strict";
+ t.exports = EvalError
+ },
+ 9383: t => {
+ "use strict";
+ t.exports = Error
+ },
+ 9290: t => {
+ "use strict";
+ t.exports = RangeError
+ },
+ 9538: t => {
+ "use strict";
+ t.exports = ReferenceError
+ },
+ 8068: t => {
+ "use strict";
+ t.exports = SyntaxError
+ },
+ 9675: t => {
+ "use strict";
+ t.exports = TypeError
+ },
+ 5345: t => {
+ "use strict";
+ t.exports = URIError
+ },
+ 9353: t => {
+ "use strict";
+ var e = Object.prototype.toString,
+ r = Math.max,
+ n = function(t, e) {
+ for (var r = [], n = 0; n < t.length; n += 1) r[n] = t[n];
+ for (var i = 0; i < e.length; i += 1) r[i + t.length] = e[i];
+ return r
+ };
+ t.exports = function(t) {
+ var i = this;
+ if ("function" != typeof i || "[object Function]" !== e.apply(i)) throw new TypeError("Function.prototype.bind called on incompatible " + i);
+ for (var o, s = function(t, e) {
+ for (var r = [], n = 1, i = 0; n < t.length; n += 1, i += 1) r[i] = t[n];
+ return r
+ }(arguments), a = r(0, i.length - s.length), f = [], u = 0; u < a; u++) f[u] = "$" + u;
+ if (o = Function("binder", "return function (" + function(t, e) {
+ for (var r = "", n = 0; n < t.length; n += 1) r += t[n], n + 1 < t.length && (r += ",");
+ return r
+ }(f) + "){ return binder.apply(this,arguments); }")((function() {
+ if (this instanceof o) {
+ var e = i.apply(this, n(s, arguments));
+ return Object(e) === e ? e : this
+ }
+ return i.apply(t, n(s, arguments))
+ })), i.prototype) {
+ var c = function() {};
+ c.prototype = i.prototype, o.prototype = new c, c.prototype = null
+ }
+ return o
+ }
+ },
+ 6743: (t, e, r) => {
+ "use strict";
+ var n = r(9353);
+ t.exports = Function.prototype.bind || n
+ },
+ 453: (t, e, r) => {
+ "use strict";
+ var n, i = r(9383),
+ o = r(1237),
+ s = r(9290),
+ a = r(9538),
+ f = r(8068),
+ u = r(9675),
+ c = r(5345),
+ h = Function,
+ p = function(t) {
+ try {
+ return h('"use strict"; return (' + t + ").constructor;")()
+ } catch (t) {}
+ },
+ l = Object.getOwnPropertyDescriptor;
+ if (l) try {
+ l({}, "")
+ } catch (t) {
+ l = null
+ }
+ var y = function() {
+ throw new u
+ },
+ g = l ? function() {
+ try {
+ return y
+ } catch (t) {
+ try {
+ return l(arguments, "callee").get
+ } catch (t) {
+ return y
+ }
+ }
+ }() : y,
+ d = r(4039)(),
+ v = r(24)(),
+ m = Object.getPrototypeOf || (v ? function(t) {
+ return t.__proto__
+ } : null),
+ S = {},
+ _ = "undefined" != typeof Uint8Array && m ? m(Uint8Array) : n,
+ b = {
+ __proto__: null,
+ "%AggregateError%": "undefined" == typeof AggregateError ? n : AggregateError,
+ "%Array%": Array,
+ "%ArrayBuffer%": "undefined" == typeof ArrayBuffer ? n : ArrayBuffer,
+ "%ArrayIteratorPrototype%": d && m ? m([][Symbol.iterator]()) : n,
+ "%AsyncFromSyncIteratorPrototype%": n,
+ "%AsyncFunction%": S,
+ "%AsyncGenerator%": S,
+ "%AsyncGeneratorFunction%": S,
+ "%AsyncIteratorPrototype%": S,
+ "%Atomics%": "undefined" == typeof Atomics ? n : Atomics,
+ "%BigInt%": "undefined" == typeof BigInt ? n : BigInt,
+ "%BigInt64Array%": "undefined" == typeof BigInt64Array ? n : BigInt64Array,
+ "%BigUint64Array%": "undefined" == typeof BigUint64Array ? n : BigUint64Array,
+ "%Boolean%": Boolean,
+ "%DataView%": "undefined" == typeof DataView ? n : DataView,
+ "%Date%": Date,
+ "%decodeURI%": decodeURI,
+ "%decodeURIComponent%": decodeURIComponent,
+ "%encodeURI%": encodeURI,
+ "%encodeURIComponent%": encodeURIComponent,
+ "%Error%": i,
+ "%eval%": eval,
+ "%EvalError%": o,
+ "%Float32Array%": "undefined" == typeof Float32Array ? n : Float32Array,
+ "%Float64Array%": "undefined" == typeof Float64Array ? n : Float64Array,
+ "%FinalizationRegistry%": "undefined" == typeof FinalizationRegistry ? n : FinalizationRegistry,
+ "%Function%": h,
+ "%GeneratorFunction%": S,
+ "%Int8Array%": "undefined" == typeof Int8Array ? n : Int8Array,
+ "%Int16Array%": "undefined" == typeof Int16Array ? n : Int16Array,
+ "%Int32Array%": "undefined" == typeof Int32Array ? n : Int32Array,
+ "%isFinite%": isFinite,
+ "%isNaN%": isNaN,
+ "%IteratorPrototype%": d && m ? m(m([][Symbol.iterator]())) : n,
+ "%JSON%": "object" == typeof JSON ? JSON : n,
+ "%Map%": "undefined" == typeof Map ? n : Map,
+ "%MapIteratorPrototype%": "undefined" != typeof Map && d && m ? m((new Map)[Symbol.iterator]()) : n,
+ "%Math%": Math,
+ "%Number%": Number,
+ "%Object%": Object,
+ "%parseFloat%": parseFloat,
+ "%parseInt%": parseInt,
+ "%Promise%": "undefined" == typeof Promise ? n : Promise,
+ "%Proxy%": "undefined" == typeof Proxy ? n : Proxy,
+ "%RangeError%": s,
+ "%ReferenceError%": a,
+ "%Reflect%": "undefined" == typeof Reflect ? n : Reflect,
+ "%RegExp%": RegExp,
+ "%Set%": "undefined" == typeof Set ? n : Set,
+ "%SetIteratorPrototype%": "undefined" != typeof Set && d && m ? m((new Set)[Symbol.iterator]()) : n,
+ "%SharedArrayBuffer%": "undefined" == typeof SharedArrayBuffer ? n : SharedArrayBuffer,
+ "%String%": String,
+ "%StringIteratorPrototype%": d && m ? m("" [Symbol.iterator]()) : n,
+ "%Symbol%": d ? Symbol : n,
+ "%SyntaxError%": f,
+ "%ThrowTypeError%": g,
+ "%TypedArray%": _,
+ "%TypeError%": u,
+ "%Uint8Array%": "undefined" == typeof Uint8Array ? n : Uint8Array,
+ "%Uint8ClampedArray%": "undefined" == typeof Uint8ClampedArray ? n : Uint8ClampedArray,
+ "%Uint16Array%": "undefined" == typeof Uint16Array ? n : Uint16Array,
+ "%Uint32Array%": "undefined" == typeof Uint32Array ? n : Uint32Array,
+ "%URIError%": c,
+ "%WeakMap%": "undefined" == typeof WeakMap ? n : WeakMap,
+ "%WeakRef%": "undefined" == typeof WeakRef ? n : WeakRef,
+ "%WeakSet%": "undefined" == typeof WeakSet ? n : WeakSet
+ };
+ if (m) try {
+ null.error
+ } catch (t) {
+ var E = m(m(t));
+ b["%Error.prototype%"] = E
+ }
+ var w = function t(e) {
+ var r;
+ if ("%AsyncFunction%" === e) r = p("async function () {}");
+ else if ("%GeneratorFunction%" === e) r = p("function* () {}");
+ else if ("%AsyncGeneratorFunction%" === e) r = p("async function* () {}");
+ else if ("%AsyncGenerator%" === e) {
+ var n = t("%AsyncGeneratorFunction%");
+ n && (r = n.prototype)
+ } else if ("%AsyncIteratorPrototype%" === e) {
+ var i = t("%AsyncGenerator%");
+ i && m && (r = m(i.prototype))
+ }
+ return b[e] = r, r
+ },
+ O = {
+ __proto__: null,
+ "%ArrayBufferPrototype%": ["ArrayBuffer", "prototype"],
+ "%ArrayPrototype%": ["Array", "prototype"],
+ "%ArrayProto_entries%": ["Array", "prototype", "entries"],
+ "%ArrayProto_forEach%": ["Array", "prototype", "forEach"],
+ "%ArrayProto_keys%": ["Array", "prototype", "keys"],
+ "%ArrayProto_values%": ["Array", "prototype", "values"],
+ "%AsyncFunctionPrototype%": ["AsyncFunction", "prototype"],
+ "%AsyncGenerator%": ["AsyncGeneratorFunction", "prototype"],
+ "%AsyncGeneratorPrototype%": ["AsyncGeneratorFunction", "prototype", "prototype"],
+ "%BooleanPrototype%": ["Boolean", "prototype"],
+ "%DataViewPrototype%": ["DataView", "prototype"],
+ "%DatePrototype%": ["Date", "prototype"],
+ "%ErrorPrototype%": ["Error", "prototype"],
+ "%EvalErrorPrototype%": ["EvalError", "prototype"],
+ "%Float32ArrayPrototype%": ["Float32Array", "prototype"],
+ "%Float64ArrayPrototype%": ["Float64Array", "prototype"],
+ "%FunctionPrototype%": ["Function", "prototype"],
+ "%Generator%": ["GeneratorFunction", "prototype"],
+ "%GeneratorPrototype%": ["GeneratorFunction", "prototype", "prototype"],
+ "%Int8ArrayPrototype%": ["Int8Array", "prototype"],
+ "%Int16ArrayPrototype%": ["Int16Array", "prototype"],
+ "%Int32ArrayPrototype%": ["Int32Array", "prototype"],
+ "%JSONParse%": ["JSON", "parse"],
+ "%JSONStringify%": ["JSON", "stringify"],
+ "%MapPrototype%": ["Map", "prototype"],
+ "%NumberPrototype%": ["Number", "prototype"],
+ "%ObjectPrototype%": ["Object", "prototype"],
+ "%ObjProto_toString%": ["Object", "prototype", "toString"],
+ "%ObjProto_valueOf%": ["Object", "prototype", "valueOf"],
+ "%PromisePrototype%": ["Promise", "prototype"],
+ "%PromiseProto_then%": ["Promise", "prototype", "then"],
+ "%Promise_all%": ["Promise", "all"],
+ "%Promise_reject%": ["Promise", "reject"],
+ "%Promise_resolve%": ["Promise", "resolve"],
+ "%RangeErrorPrototype%": ["RangeError", "prototype"],
+ "%ReferenceErrorPrototype%": ["ReferenceError", "prototype"],
+ "%RegExpPrototype%": ["RegExp", "prototype"],
+ "%SetPrototype%": ["Set", "prototype"],
+ "%SharedArrayBufferPrototype%": ["SharedArrayBuffer", "prototype"],
+ "%StringPrototype%": ["String", "prototype"],
+ "%SymbolPrototype%": ["Symbol", "prototype"],
+ "%SyntaxErrorPrototype%": ["SyntaxError", "prototype"],
+ "%TypedArrayPrototype%": ["TypedArray", "prototype"],
+ "%TypeErrorPrototype%": ["TypeError", "prototype"],
+ "%Uint8ArrayPrototype%": ["Uint8Array", "prototype"],
+ "%Uint8ClampedArrayPrototype%": ["Uint8ClampedArray", "prototype"],
+ "%Uint16ArrayPrototype%": ["Uint16Array", "prototype"],
+ "%Uint32ArrayPrototype%": ["Uint32Array", "prototype"],
+ "%URIErrorPrototype%": ["URIError", "prototype"],
+ "%WeakMapPrototype%": ["WeakMap", "prototype"],
+ "%WeakSetPrototype%": ["WeakSet", "prototype"]
+ },
+ B = r(6743),
+ A = r(9957),
+ x = B.call(Function.call, Array.prototype.concat),
+ P = B.call(Function.apply, Array.prototype.splice),
+ T = B.call(Function.call, String.prototype.replace),
+ I = B.call(Function.call, String.prototype.slice),
+ k = B.call(Function.call, RegExp.prototype.exec),
+ D = /[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,
+ R = /\\(\\)?/g,
+ N = function(t, e) {
+ var r, n = t;
+ if (A(O, n) && (n = "%" + (r = O[n])[0] + "%"), A(b, n)) {
+ var i = b[n];
+ if (i === S && (i = w(n)), void 0 === i && !e) throw new u("intrinsic " + t + " exists, but is not available. Please file an issue!");
+ return {
+ alias: r,
+ name: n,
+ value: i
+ }
+ }
+ throw new f("intrinsic " + t + " does not exist!")
+ };
+ t.exports = function(t, e) {
+ if ("string" != typeof t || 0 === t.length) throw new u("intrinsic name must be a non-empty string");
+ if (arguments.length > 1 && "boolean" != typeof e) throw new u('"allowMissing" argument must be a boolean');
+ if (null === k(/^%?[^%]*%?$/, t)) throw new f("`%` may not be present anywhere but at the beginning and end of the intrinsic name");
+ var r = function(t) {
+ var e = I(t, 0, 1),
+ r = I(t, -1);
+ if ("%" === e && "%" !== r) throw new f("invalid intrinsic syntax, expected closing `%`");
+ if ("%" === r && "%" !== e) throw new f("invalid intrinsic syntax, expected opening `%`");
+ var n = [];
+ return T(t, D, (function(t, e, r, i) {
+ n[n.length] = r ? T(i, R, "$1") : e || t
+ })), n
+ }(t),
+ n = r.length > 0 ? r[0] : "",
+ i = N("%" + n + "%", e),
+ o = i.name,
+ s = i.value,
+ a = !1,
+ c = i.alias;
+ c && (n = c[0], P(r, x([0, 1], c)));
+ for (var h = 1, p = !0; h < r.length; h += 1) {
+ var y = r[h],
+ g = I(y, 0, 1),
+ d = I(y, -1);
+ if (('"' === g || "'" === g || "`" === g || '"' === d || "'" === d || "`" === d) && g !== d) throw new f("property names with quotes must have matching quotes");
+ if ("constructor" !== y && p || (a = !0), A(b, o = "%" + (n += "." + y) + "%")) s = b[o];
+ else if (null != s) {
+ if (!(y in s)) {
+ if (!e) throw new u("base intrinsic for " + t + " exists, but the property is not available.");
+ return
+ }
+ if (l && h + 1 >= r.length) {
+ var v = l(s, y);
+ s = (p = !!v) && "get" in v && !("originalValue" in v.get) ? v.get : s[y]
+ } else p = A(s, y), s = s[y];
+ p && !a && (b[o] = s)
+ }
+ }
+ return s
+ }
+ },
+ 5795: (t, e, r) => {
+ "use strict";
+ var n = r(453)("%Object.getOwnPropertyDescriptor%", !0);
+ if (n) try {
+ n([], "length")
+ } catch (t) {
+ n = null
+ }
+ t.exports = n
+ },
+ 592: (t, e, r) => {
+ "use strict";
+ var n = r(655),
+ i = function() {
+ return !!n
+ };
+ i.hasArrayLengthDefineBug = function() {
+ if (!n) return null;
+ try {
+ return 1 !== n([], "length", {
+ value: 1
+ }).length
+ } catch (t) {
+ return !0
+ }
+ }, t.exports = i
+ },
+ 24: t => {
+ "use strict";
+ var e = {
+ __proto__: null,
+ foo: {}
+ },
+ r = Object;
+ t.exports = function() {
+ return {
+ __proto__: e
+ }.foo === e.foo && !(e instanceof r)
+ }
+ },
+ 4039: (t, e, r) => {
+ "use strict";
+ var n = "undefined" != typeof Symbol && Symbol,
+ i = r(1333);
+ t.exports = function() {
+ return "function" == typeof n && "function" == typeof Symbol && "symbol" == typeof n("foo") && "symbol" == typeof Symbol("bar") && i()
+ }
+ },
+ 1333: t => {
+ "use strict";
+ t.exports = function() {
+ if ("function" != typeof Symbol || "function" != typeof Object.getOwnPropertySymbols) return !1;
+ if ("symbol" == typeof Symbol.iterator) return !0;
+ var t = {},
+ e = Symbol("test"),
+ r = Object(e);
+ if ("string" == typeof e) return !1;
+ if ("[object Symbol]" !== Object.prototype.toString.call(e)) return !1;
+ if ("[object Symbol]" !== Object.prototype.toString.call(r)) return !1;
+ for (e in t[e] = 42, t) return !1;
+ if ("function" == typeof Object.keys && 0 !== Object.keys(t).length) return !1;
+ if ("function" == typeof Object.getOwnPropertyNames && 0 !== Object.getOwnPropertyNames(t).length) return !1;
+ var n = Object.getOwnPropertySymbols(t);
+ if (1 !== n.length || n[0] !== e) return !1;
+ if (!Object.prototype.propertyIsEnumerable.call(t, e)) return !1;
+ if ("function" == typeof Object.getOwnPropertyDescriptor) {
+ var i = Object.getOwnPropertyDescriptor(t, e);
+ if (42 !== i.value || !0 !== i.enumerable) return !1
+ }
+ return !0
+ }
+ },
+ 9957: (t, e, r) => {
+ "use strict";
+ var n = Function.prototype.call,
+ i = Object.prototype.hasOwnProperty,
+ o = r(6743);
+ t.exports = o.call(n, i)
+ },
+ 251: (t, e) => {
+ e.read = function(t, e, r, n, i) {
+ var o, s, a = 8 * i - n - 1,
+ f = (1 << a) - 1,
+ u = f >> 1,
+ c = -7,
+ h = r ? i - 1 : 0,
+ p = r ? -1 : 1,
+ l = t[e + h];
+ for (h += p, o = l & (1 << -c) - 1, l >>= -c, c += a; c > 0; o = 256 * o + t[e + h], h += p, c -= 8);
+ for (s = o & (1 << -c) - 1, o >>= -c, c += n; c > 0; s = 256 * s + t[e + h], h += p, c -= 8);
+ if (0 === o) o = 1 - u;
+ else {
+ if (o === f) return s ? NaN : 1 / 0 * (l ? -1 : 1);
+ s += Math.pow(2, n), o -= u
+ }
+ return (l ? -1 : 1) * s * Math.pow(2, o - n)
+ }, e.write = function(t, e, r, n, i, o) {
+ var s, a, f, u = 8 * o - i - 1,
+ c = (1 << u) - 1,
+ h = c >> 1,
+ p = 23 === i ? Math.pow(2, -24) - Math.pow(2, -77) : 0,
+ l = n ? 0 : o - 1,
+ y = n ? 1 : -1,
+ g = e < 0 || 0 === e && 1 / e < 0 ? 1 : 0;
+ for (e = Math.abs(e), isNaN(e) || e === 1 / 0 ? (a = isNaN(e) ? 1 : 0, s = c) : (s = Math.floor(Math.log(e) / Math.LN2), e * (f = Math.pow(2, -s)) < 1 && (s--, f *= 2), (e += s + h >= 1 ? p / f : p * Math.pow(2, 1 - h)) * f >= 2 && (s++, f /= 2), s + h >= c ? (a = 0, s = c) : s + h >= 1 ? (a = (e * f - 1) * Math.pow(2, i), s += h) : (a = e * Math.pow(2, h - 1) * Math.pow(2, i), s = 0)); i >= 8; t[r + l] = 255 & a, l += y, a /= 256, i -= 8);
+ for (s = s << i | a, u += i; u > 0; t[r + l] = 255 & s, l += y, s /= 256, u -= 8);
+ t[r + l - y] |= 128 * g
+ }
+ },
+ 3229: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = r(7449),
+ o = r(5682),
+ s = (r(3200), r(3100).Ber, r(8226)._),
+ a = r(8226),
+ f = r(1768),
+ u = r(7460);
+ void 0 === i.RSA_NO_PADDING && (i.RSA_NO_PADDING = 3), t.exports = function() {
+ var t = {
+ node10: ["md4", "md5", "ripemd160", "sha1", "sha224", "sha256", "sha384", "sha512"],
+ node: ["md4", "md5", "ripemd160", "sha1", "sha224", "sha256", "sha384", "sha512"],
+ iojs: ["md4", "md5", "ripemd160", "sha1", "sha224", "sha256", "sha384", "sha512"],
+ browser: ["md5", "ripemd160", "sha1", "sha256", "sha512"]
+ },
+ e = "pkcs1_oaep",
+ r = "pkcs1",
+ i = {
+ private: "pkcs1-private-pem",
+ "private-der": "pkcs1-private-der",
+ public: "pkcs8-public-pem",
+ "public-der": "pkcs8-public-der"
+ };
+
+ function c(t, i, f) {
+ if (!(this instanceof c)) return new c(t, i, f);
+ s.isObject(i) && (f = i, i = void 0), this.$options = {
+ signingScheme: r,
+ signingSchemeOptions: {
+ hash: "sha256",
+ saltLength: null
+ },
+ encryptionScheme: e,
+ encryptionSchemeOptions: {
+ hash: "sha1",
+ label: null
+ },
+ environment: a.detectEnvironment(),
+ rsaUtils: this
+ }, this.keyPair = new o.Key, this.$cache = {}, n.isBuffer(t) || s.isString(t) ? this.importKey(t, i) : s.isObject(t) && this.generateKeyPair(t.b, t.e), this.setOptions(f)
+ }
+ return c.prototype.setOptions = function(n) {
+ if ((n = n || {}).environment && (this.$options.environment = n.environment), n.signingScheme) {
+ if (s.isString(n.signingScheme)) {
+ var i = n.signingScheme.toLowerCase().split("-");
+ 1 == i.length ? t.node.indexOf(i[0]) > -1 ? (this.$options.signingSchemeOptions = {
+ hash: i[0]
+ }, this.$options.signingScheme = r) : (this.$options.signingScheme = i[0], this.$options.signingSchemeOptions = {
+ hash: null
+ }) : (this.$options.signingSchemeOptions = {
+ hash: i[1]
+ }, this.$options.signingScheme = i[0])
+ } else s.isObject(n.signingScheme) && (this.$options.signingScheme = n.signingScheme.scheme || r, this.$options.signingSchemeOptions = s.omit(n.signingScheme, "scheme"));
+ if (!f.isSignature(this.$options.signingScheme)) throw Error("Unsupported signing scheme");
+ if (this.$options.signingSchemeOptions.hash && -1 === t[this.$options.environment].indexOf(this.$options.signingSchemeOptions.hash)) throw Error("Unsupported hashing algorithm for " + this.$options.environment + " environment")
+ }
+ if (n.encryptionScheme) {
+ if (s.isString(n.encryptionScheme) ? (this.$options.encryptionScheme = n.encryptionScheme.toLowerCase(), this.$options.encryptionSchemeOptions = {}) : s.isObject(n.encryptionScheme) && (this.$options.encryptionScheme = n.encryptionScheme.scheme || e, this.$options.encryptionSchemeOptions = s.omit(n.encryptionScheme, "scheme")), !f.isEncryption(this.$options.encryptionScheme)) throw Error("Unsupported encryption scheme");
+ if (this.$options.encryptionSchemeOptions.hash && -1 === t[this.$options.environment].indexOf(this.$options.encryptionSchemeOptions.hash)) throw Error("Unsupported hashing algorithm for " + this.$options.environment + " environment")
+ }
+ this.keyPair.setOptions(this.$options)
+ }, c.prototype.generateKeyPair = function(t, e) {
+ if (e = e || 65537, (t = t || 2048) % 8 != 0) throw Error("Key size must be a multiple of 8.");
+ return this.keyPair.generate(t, e.toString(16)), this.$cache = {}, this
+ }, c.prototype.importKey = function(t, e) {
+ if (!t) throw Error("Empty key given");
+ if (e && (e = i[e] || e), !u.detectAndImport(this.keyPair, t, e) && void 0 === e) throw Error("Key format must be specified");
+ return this.$cache = {}, this
+ }, c.prototype.exportKey = function(t) {
+ return t = i[t = t || "private"] || t, this.$cache[t] || (this.$cache[t] = u.detectAndExport(this.keyPair, t)), this.$cache[t]
+ }, c.prototype.isPrivate = function() {
+ return this.keyPair.isPrivate()
+ }, c.prototype.isPublic = function(t) {
+ return this.keyPair.isPublic(t)
+ }, c.prototype.isEmpty = function(t) {
+ return !(this.keyPair.n || this.keyPair.e || this.keyPair.d)
+ }, c.prototype.encrypt = function(t, e, r) {
+ return this.$$encryptKey(!1, t, e, r)
+ }, c.prototype.decrypt = function(t, e) {
+ return this.$$decryptKey(!1, t, e)
+ }, c.prototype.encryptPrivate = function(t, e, r) {
+ return this.$$encryptKey(!0, t, e, r)
+ }, c.prototype.decryptPublic = function(t, e) {
+ return this.$$decryptKey(!0, t, e)
+ }, c.prototype.$$encryptKey = function(t, e, r, n) {
+ try {
+ var i = this.keyPair.encrypt(this.$getDataForEncrypt(e, n), t);
+ return "buffer" != r && r ? i.toString(r) : i
+ } catch (t) {
+ throw Error("Error during encryption. Original error: " + t)
+ }
+ }, c.prototype.$$decryptKey = function(t, e, r) {
+ try {
+ e = s.isString(e) ? n.from(e, "base64") : e;
+ var i = this.keyPair.decrypt(e, t);
+ if (null === i) throw Error("Key decrypt method returns null.");
+ return this.$getDecryptedData(i, r)
+ } catch (t) {
+ throw Error("Error during decryption (probably incorrect key). Original error: " + t)
+ }
+ }, c.prototype.sign = function(t, e, r) {
+ if (!this.isPrivate()) throw Error("This is not private key");
+ var n = this.keyPair.sign(this.$getDataForEncrypt(t, r));
+ return e && "buffer" != e && (n = n.toString(e)), n
+ }, c.prototype.verify = function(t, e, r, n) {
+ if (!this.isPublic()) throw Error("This is not public key");
+ return n = n && "buffer" != n ? n : null, this.keyPair.verify(this.$getDataForEncrypt(t, r), e, n)
+ }, c.prototype.getKeySize = function() {
+ return this.keyPair.keySize
+ }, c.prototype.getMaxMessageSize = function() {
+ return this.keyPair.maxMessageLength
+ }, c.prototype.$getDataForEncrypt = function(t, e) {
+ if (s.isString(t) || s.isNumber(t)) return n.from("" + t, e || "utf8");
+ if (n.isBuffer(t)) return t;
+ if (s.isObject(t)) return n.from(JSON.stringify(t));
+ throw Error("Unexpected data type")
+ }, c.prototype.$getDecryptedData = function(t, e) {
+ return "buffer" == (e = e || "buffer") ? t : "json" == e ? JSON.parse(t.toString()) : t.toString(e)
+ }, c
+ }()
+ },
+ 4538: (t, e, r) => {
+ var n = r(3200);
+ t.exports = {
+ getEngine: function(t, e) {
+ var i = r(7469);
+ return "node" === e.environment && "function" == typeof n.publicEncrypt && "function" == typeof n.privateDecrypt && (i = "function" == typeof n.privateEncrypt && "function" == typeof n.publicDecrypt ? r(2418) : r(1957)), i(t, e)
+ }
+ }
+ },
+ 2418: (t, e, r) => {
+ var n = r(3200),
+ i = r(7449),
+ o = r(1768);
+ t.exports = function(t, e) {
+ var r = o.pkcs1.makeScheme(t, e);
+ return {
+ encrypt: function(t, o) {
+ var s;
+ if (o) return s = i.RSA_PKCS1_PADDING, e.encryptionSchemeOptions && e.encryptionSchemeOptions.padding && (s = e.encryptionSchemeOptions.padding), n.privateEncrypt({
+ key: e.rsaUtils.exportKey("private"),
+ padding: s
+ }, t);
+ s = i.RSA_PKCS1_OAEP_PADDING, "pkcs1" === e.encryptionScheme && (s = i.RSA_PKCS1_PADDING), e.encryptionSchemeOptions && e.encryptionSchemeOptions.padding && (s = e.encryptionSchemeOptions.padding);
+ var a = t;
+ return s === i.RSA_NO_PADDING && (a = r.pkcs0pad(t)), n.publicEncrypt({
+ key: e.rsaUtils.exportKey("public"),
+ padding: s
+ }, a)
+ },
+ decrypt: function(t, o) {
+ var s;
+ if (o) return s = i.RSA_PKCS1_PADDING, e.encryptionSchemeOptions && e.encryptionSchemeOptions.padding && (s = e.encryptionSchemeOptions.padding), n.publicDecrypt({
+ key: e.rsaUtils.exportKey("public"),
+ padding: s
+ }, t);
+ s = i.RSA_PKCS1_OAEP_PADDING, "pkcs1" === e.encryptionScheme && (s = i.RSA_PKCS1_PADDING), e.encryptionSchemeOptions && e.encryptionSchemeOptions.padding && (s = e.encryptionSchemeOptions.padding);
+ var a = n.privateDecrypt({
+ key: e.rsaUtils.exportKey("private"),
+ padding: s
+ }, t);
+ return s === i.RSA_NO_PADDING ? r.pkcs0unpad(a) : a
+ }
+ }
+ }
+ },
+ 7469: (t, e, r) => {
+ var n = r(1973),
+ i = r(1768);
+ t.exports = function(t, e) {
+ var r = i.pkcs1.makeScheme(t, e);
+ return {
+ encrypt: function(e, i) {
+ var o, s;
+ return i ? (o = new n(r.encPad(e, {
+ type: 1
+ })), s = t.$doPrivate(o)) : (o = new n(t.encryptionScheme.encPad(e)), s = t.$doPublic(o)), s.toBuffer(t.encryptedDataLength)
+ },
+ decrypt: function(e, i) {
+ var o, s = new n(e);
+ return i ? (o = t.$doPublic(s), r.encUnPad(o.toBuffer(t.encryptedDataLength), {
+ type: 1
+ })) : (o = t.$doPrivate(s), t.encryptionScheme.encUnPad(o.toBuffer(t.encryptedDataLength)))
+ }
+ }
+ }
+ },
+ 1957: (t, e, r) => {
+ var n = r(3200),
+ i = r(7449),
+ o = r(1768);
+ t.exports = function(t, e) {
+ var s = r(7469)(t, e),
+ a = o.pkcs1.makeScheme(t, e);
+ return {
+ encrypt: function(t, r) {
+ if (r) return s.encrypt(t, r);
+ var o = i.RSA_PKCS1_OAEP_PADDING;
+ "pkcs1" === e.encryptionScheme && (o = i.RSA_PKCS1_PADDING), e.encryptionSchemeOptions && e.encryptionSchemeOptions.padding && (o = e.encryptionSchemeOptions.padding);
+ var f = t;
+ return o === i.RSA_NO_PADDING && (f = a.pkcs0pad(t)), n.publicEncrypt({
+ key: e.rsaUtils.exportKey("public"),
+ padding: o
+ }, f)
+ },
+ decrypt: function(t, r) {
+ if (r) return s.decrypt(t, r);
+ var o = i.RSA_PKCS1_OAEP_PADDING;
+ "pkcs1" === e.encryptionScheme && (o = i.RSA_PKCS1_PADDING), e.encryptionSchemeOptions && e.encryptionSchemeOptions.padding && (o = e.encryptionSchemeOptions.padding);
+ var f = n.privateDecrypt({
+ key: e.rsaUtils.exportKey("private"),
+ padding: o
+ }, t);
+ return o === i.RSA_NO_PADDING ? a.pkcs0unpad(f) : f
+ }
+ }
+ }
+ },
+ 3374: (t, e, r) => {
+ r(8226)._, r(8226), t.exports = {
+ privateExport: function(t, e) {
+ return {
+ n: t.n.toBuffer(),
+ e: t.e,
+ d: t.d.toBuffer(),
+ p: t.p.toBuffer(),
+ q: t.q.toBuffer(),
+ dmp1: t.dmp1.toBuffer(),
+ dmq1: t.dmq1.toBuffer(),
+ coeff: t.coeff.toBuffer()
+ }
+ },
+ privateImport: function(t, e, r) {
+ if (!(e.n && e.e && e.d && e.p && e.q && e.dmp1 && e.dmq1 && e.coeff)) throw Error("Invalid key data");
+ t.setPrivate(e.n, e.e, e.d, e.p, e.q, e.dmp1, e.dmq1, e.coeff)
+ },
+ publicExport: function(t, e) {
+ return {
+ n: t.n.toBuffer(),
+ e: t.e
+ }
+ },
+ publicImport: function(t, e, r) {
+ if (!e.n || !e.e) throw Error("Invalid key data");
+ t.setPublic(e.n, e.e)
+ },
+ autoImport: function(e, r) {
+ return !(!r.n || !r.e || (r.d && r.p && r.q && r.dmp1 && r.dmq1 && r.coeff ? (t.exports.privateImport(e, r), 0) : (t.exports.publicImport(e, r), 0)))
+ }
+ }
+ },
+ 7460: (t, e, r) => {
+ function n(t) {
+ t = t.split("-");
+ for (var e = "private", r = {
+ type: "default"
+ }, n = 1; n < t.length; n++)
+ if (t[n]) switch (t[n]) {
+ case "public":
+ case "private":
+ e = t[n];
+ break;
+ case "pem":
+ case "der":
+ r.type = t[n]
+ }
+ return {
+ scheme: t[0],
+ keyType: e,
+ keyOpt: r
+ }
+ }
+ r(8226)._, t.exports = {
+ pkcs1: r(6566),
+ pkcs8: r(8573),
+ components: r(3374),
+ openssh: r(3194),
+ isPrivateExport: function(e) {
+ return t.exports[e] && "function" == typeof t.exports[e].privateExport
+ },
+ isPrivateImport: function(e) {
+ return t.exports[e] && "function" == typeof t.exports[e].privateImport
+ },
+ isPublicExport: function(e) {
+ return t.exports[e] && "function" == typeof t.exports[e].publicExport
+ },
+ isPublicImport: function(e) {
+ return t.exports[e] && "function" == typeof t.exports[e].publicImport
+ },
+ detectAndImport: function(e, r, i) {
+ if (void 0 === i) {
+ for (var o in t.exports)
+ if ("function" == typeof t.exports[o].autoImport && t.exports[o].autoImport(e, r)) return !0
+ } else if (i) {
+ var s = n(i);
+ if (!t.exports[s.scheme]) throw Error("Unsupported key format");
+ "private" === s.keyType ? t.exports[s.scheme].privateImport(e, r, s.keyOpt) : t.exports[s.scheme].publicImport(e, r, s.keyOpt)
+ }
+ return !1
+ },
+ detectAndExport: function(e, r) {
+ if (r) {
+ var i = n(r);
+ if (t.exports[i.scheme]) {
+ if ("private" === i.keyType) {
+ if (!e.isPrivate()) throw Error("This is not private key");
+ return t.exports[i.scheme].privateExport(e, i.keyOpt)
+ }
+ if (!e.isPublic()) throw Error("This is not public key");
+ return t.exports[i.scheme].publicExport(e, i.keyOpt)
+ }
+ throw Error("Unsupported key format")
+ }
+ }
+ }
+ },
+ 3194: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = r(8226)._,
+ o = r(8226),
+ s = r(1973);
+ const a = "-----BEGIN OPENSSH PRIVATE KEY-----",
+ f = "-----END OPENSSH PRIVATE KEY-----";
+
+ function u(t) {
+ const e = t.buf.readInt32BE(t.off);
+ t.off += 4;
+ const r = t.buf.slice(t.off, t.off + e);
+ return t.off += e, r
+ }
+
+ function c(t, e) {
+ t.buf.writeInt32BE(e.byteLength, t.off), t.off += 4, t.off += e.copy(t.buf, t.off)
+ }
+ t.exports = {
+ privateExport: function(t, e) {
+ const r = t.n.toBuffer();
+ let i = n.alloc(4);
+ for (i.writeUInt32BE(t.e, 0); 0 === i[0];) i = i.slice(1);
+ const s = t.d.toBuffer(),
+ u = t.coeff.toBuffer(),
+ h = t.p.toBuffer(),
+ p = t.q.toBuffer();
+ let l;
+ l = void 0 !== t.sshcomment ? n.from(t.sshcomment) : n.from([]);
+ const y = 15 + i.byteLength + 4 + r.byteLength,
+ g = 23 + r.byteLength + 4 + i.byteLength + 4 + s.byteLength + 4 + u.byteLength + 4 + h.byteLength + 4 + p.byteLength + 4 + l.byteLength;
+ let d = 43 + y + 4 + g;
+ d += 8 * Math.ceil(g / 8) - g;
+ const v = n.alloc(d),
+ m = {
+ buf: v,
+ off: 0
+ };
+ v.write("openssh-key-v1", "utf8"), v.writeUInt8(0, 14), m.off += 15, c(m, n.from("none")), c(m, n.from("none")), c(m, n.from("")), m.off = m.buf.writeUInt32BE(1, m.off), m.off = m.buf.writeUInt32BE(y, m.off), c(m, n.from("ssh-rsa")), c(m, i), c(m, r), m.off = m.buf.writeUInt32BE(d - 47 - y, m.off), m.off += 8, c(m, n.from("ssh-rsa")), c(m, r), c(m, i), c(m, s), c(m, u), c(m, h), c(m, p), c(m, l);
+ let S = 1;
+ for (; m.off < d;) m.off = m.buf.writeUInt8(S++, m.off);
+ return "der" === e.type ? m.buf : a + "\n" + o.linebrk(v.toString("base64"), 70) + "\n" + f + "\n"
+ },
+ privateImport: function(t, e, r) {
+ var c;
+ if ("der" !== (r = r || {}).type) {
+ if (n.isBuffer(e) && (e = e.toString("utf8")), !i.isString(e)) throw Error("Unsupported key format");
+ var h = o.trimSurroundingText(e, a, f).replace(/\s+|\n\r|\n|\r$/gm, "");
+ c = n.from(h, "base64")
+ } else {
+ if (!n.isBuffer(e)) throw Error("Unsupported key format");
+ c = e
+ }
+ const p = {
+ buf: c,
+ off: 0
+ };
+ if ("openssh-key-v1" !== c.slice(0, 14).toString("ascii")) throw "Invalid file format.";
+ if (p.off += 15, "none" !== u(p).toString("ascii")) throw Error("Unsupported key type");
+ if ("none" !== u(p).toString("ascii")) throw Error("Unsupported key type");
+ if ("" !== u(p).toString("ascii")) throw Error("Unsupported key type");
+ if (p.off += 4, p.off += 4, "ssh-rsa" !== u(p).toString("ascii")) throw Error("Unsupported key type");
+ if (u(p), u(p), p.off += 12, "ssh-rsa" !== u(p).toString("ascii")) throw Error("Unsupported key type");
+ const l = u(p),
+ y = u(p),
+ g = u(p),
+ d = u(p),
+ v = u(p),
+ m = u(p),
+ S = new s(g),
+ _ = new s(m),
+ b = new s(v),
+ E = S.mod(b.subtract(s.ONE)),
+ w = S.mod(_.subtract(s.ONE));
+ t.setPrivate(l, y, g, v, m, E.toBuffer(), w.toBuffer(), d), t.sshcomment = u(p).toString("ascii")
+ },
+ publicExport: function(t, e) {
+ let r = n.alloc(4);
+ for (r.writeUInt32BE(t.e, 0); 0 === r[0];) r = r.slice(1);
+ const i = t.n.toBuffer(),
+ o = n.alloc(r.byteLength + 4 + i.byteLength + 4 + 7 + 4),
+ s = {
+ buf: o,
+ off: 0
+ };
+ c(s, n.from("ssh-rsa")), c(s, r), c(s, i);
+ let a = t.sshcomment || "";
+ return "der" === e.type ? s.buf : "ssh-rsa " + o.toString("base64") + " " + a + "\n"
+ },
+ publicImport: function(t, e, r) {
+ var o;
+ if ("der" !== (r = r || {}).type) {
+ if (n.isBuffer(e) && (e = e.toString("utf8")), !i.isString(e)) throw Error("Unsupported key format");
+ {
+ if ("ssh-rsa " !== e.substring(0, 8)) throw Error("Unsupported key format");
+ let r = e.indexOf(" ", 8); - 1 === r ? r = e.length : t.sshcomment = e.substring(r + 1).replace(/\s+|\n\r|\n|\r$/gm, "");
+ const i = e.substring(8, r).replace(/\s+|\n\r|\n|\r$/gm, "");
+ o = n.from(i, "base64")
+ }
+ } else {
+ if (!n.isBuffer(e)) throw Error("Unsupported key format");
+ o = e
+ }
+ const s = {
+ buf: o,
+ off: 0
+ },
+ a = u(s).toString("ascii");
+ if ("ssh-rsa" !== a) throw Error("Invalid key type: " + a);
+ const f = u(s),
+ c = u(s);
+ t.setPublic(c, f)
+ },
+ autoImport: function(e, r) {
+ return /^[\S\s]*-----BEGIN OPENSSH PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END OPENSSH PRIVATE KEY-----[\S\s]*$/g.test(r) ? (t.exports.privateImport(e, r), !0) : !!/^[\S\s]*ssh-rsa \s*(?=(([A-Za-z0-9+/=]+\s*)+))\1[\S\s]*$/g.test(r) && (t.exports.publicImport(e, r), !0)
+ }
+ }
+ },
+ 6566: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = r(3100).Ber,
+ o = r(8226)._,
+ s = r(8226);
+ const a = "-----BEGIN RSA PRIVATE KEY-----",
+ f = "-----END RSA PRIVATE KEY-----",
+ u = "-----BEGIN RSA PUBLIC KEY-----",
+ c = "-----END RSA PUBLIC KEY-----";
+ t.exports = {
+ privateExport: function(t, e) {
+ e = e || {};
+ var r = t.n.toBuffer(),
+ n = t.d.toBuffer(),
+ o = t.p.toBuffer(),
+ u = t.q.toBuffer(),
+ c = t.dmp1.toBuffer(),
+ h = t.dmq1.toBuffer(),
+ p = t.coeff.toBuffer(),
+ l = r.length + n.length + o.length + u.length + c.length + h.length + p.length + 512,
+ y = new i.Writer({
+ size: l
+ });
+ return y.startSequence(), y.writeInt(0), y.writeBuffer(r, 2), y.writeInt(t.e), y.writeBuffer(n, 2), y.writeBuffer(o, 2), y.writeBuffer(u, 2), y.writeBuffer(c, 2), y.writeBuffer(h, 2), y.writeBuffer(p, 2), y.endSequence(), "der" === e.type ? y.buffer : a + "\n" + s.linebrk(y.buffer.toString("base64"), 64) + "\n" + f
+ },
+ privateImport: function(t, e, r) {
+ var u;
+ if ("der" !== (r = r || {}).type) {
+ if (n.isBuffer(e) && (e = e.toString("utf8")), !o.isString(e)) throw Error("Unsupported key format");
+ var c = s.trimSurroundingText(e, a, f).replace(/\s+|\n\r|\n|\r$/gm, "");
+ u = n.from(c, "base64")
+ } else {
+ if (!n.isBuffer(e)) throw Error("Unsupported key format");
+ u = e
+ }
+ var h = new i.Reader(u);
+ h.readSequence(), h.readString(2, !0), t.setPrivate(h.readString(2, !0), h.readString(2, !0), h.readString(2, !0), h.readString(2, !0), h.readString(2, !0), h.readString(2, !0), h.readString(2, !0), h.readString(2, !0))
+ },
+ publicExport: function(t, e) {
+ e = e || {};
+ var r = t.n.toBuffer(),
+ n = r.length + 512,
+ o = new i.Writer({
+ size: n
+ });
+ return o.startSequence(), o.writeBuffer(r, 2), o.writeInt(t.e), o.endSequence(), "der" === e.type ? o.buffer : u + "\n" + s.linebrk(o.buffer.toString("base64"), 64) + "\n" + c
+ },
+ publicImport: function(t, e, r) {
+ var a;
+ if ("der" !== (r = r || {}).type) {
+ if (n.isBuffer(e) && (e = e.toString("utf8")), o.isString(e)) {
+ var f = s.trimSurroundingText(e, u, c).replace(/\s+|\n\r|\n|\r$/gm, "");
+ a = n.from(f, "base64")
+ }
+ } else {
+ if (!n.isBuffer(e)) throw Error("Unsupported key format");
+ a = e
+ }
+ var h = new i.Reader(a);
+ h.readSequence(), t.setPublic(h.readString(2, !0), h.readString(2, !0))
+ },
+ autoImport: function(e, r) {
+ return /^[\S\s]*-----BEGIN RSA PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PRIVATE KEY-----[\S\s]*$/g.test(r) ? (t.exports.privateImport(e, r), !0) : !!/^[\S\s]*-----BEGIN RSA PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END RSA PUBLIC KEY-----[\S\s]*$/g.test(r) && (t.exports.publicImport(e, r), !0)
+ }
+ }
+ },
+ 8573: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = r(3100).Ber,
+ o = r(8226)._,
+ s = "1.2.840.113549.1.1.1",
+ a = r(8226);
+ const f = "-----BEGIN PRIVATE KEY-----",
+ u = "-----END PRIVATE KEY-----",
+ c = "-----BEGIN PUBLIC KEY-----",
+ h = "-----END PUBLIC KEY-----";
+ t.exports = {
+ privateExport: function(t, e) {
+ e = e || {};
+ var r = t.n.toBuffer(),
+ n = t.d.toBuffer(),
+ o = t.p.toBuffer(),
+ c = t.q.toBuffer(),
+ h = t.dmp1.toBuffer(),
+ p = t.dmq1.toBuffer(),
+ l = t.coeff.toBuffer(),
+ y = r.length + n.length + o.length + c.length + h.length + p.length + l.length + 512,
+ g = new i.Writer({
+ size: y
+ });
+ g.startSequence(), g.writeInt(0), g.writeBuffer(r, 2), g.writeInt(t.e), g.writeBuffer(n, 2), g.writeBuffer(o, 2), g.writeBuffer(c, 2), g.writeBuffer(h, 2), g.writeBuffer(p, 2), g.writeBuffer(l, 2), g.endSequence();
+ var d = new i.Writer({
+ size: y
+ });
+ return d.startSequence(), d.writeInt(0), d.startSequence(), d.writeOID(s), d.writeNull(), d.endSequence(), d.writeBuffer(g.buffer, 4), d.endSequence(), "der" === e.type ? d.buffer : f + "\n" + a.linebrk(d.buffer.toString("base64"), 64) + "\n" + u
+ },
+ privateImport: function(t, e, r) {
+ var c;
+ if ("der" !== (r = r || {}).type) {
+ if (n.isBuffer(e) && (e = e.toString("utf8")), !o.isString(e)) throw Error("Unsupported key format");
+ var h = a.trimSurroundingText(e, f, u).replace("-----END PRIVATE KEY-----", "").replace(/\s+|\n\r|\n|\r$/gm, "");
+ c = n.from(h, "base64")
+ } else {
+ if (!n.isBuffer(e)) throw Error("Unsupported key format");
+ c = e
+ }
+ var p = new i.Reader(c);
+ if (p.readSequence(), p.readInt(0), new i.Reader(p.readString(48, !0)).readOID(6, !0) !== s) throw Error("Invalid Public key format");
+ var l = new i.Reader(p.readString(4, !0));
+ l.readSequence(), l.readString(2, !0), t.setPrivate(l.readString(2, !0), l.readString(2, !0), l.readString(2, !0), l.readString(2, !0), l.readString(2, !0), l.readString(2, !0), l.readString(2, !0), l.readString(2, !0))
+ },
+ publicExport: function(t, e) {
+ e = e || {};
+ var r = t.n.toBuffer(),
+ n = r.length + 512,
+ o = new i.Writer({
+ size: n
+ });
+ o.writeByte(0), o.startSequence(), o.writeBuffer(r, 2), o.writeInt(t.e), o.endSequence();
+ var f = new i.Writer({
+ size: n
+ });
+ return f.startSequence(), f.startSequence(), f.writeOID(s), f.writeNull(), f.endSequence(), f.writeBuffer(o.buffer, 3), f.endSequence(), "der" === e.type ? f.buffer : c + "\n" + a.linebrk(f.buffer.toString("base64"), 64) + "\n" + h
+ },
+ publicImport: function(t, e, r) {
+ var f;
+ if ("der" !== (r = r || {}).type) {
+ if (n.isBuffer(e) && (e = e.toString("utf8")), o.isString(e)) {
+ var u = a.trimSurroundingText(e, c, h).replace(/\s+|\n\r|\n|\r$/gm, "");
+ f = n.from(u, "base64")
+ }
+ } else {
+ if (!n.isBuffer(e)) throw Error("Unsupported key format");
+ f = e
+ }
+ var p = new i.Reader(f);
+ if (p.readSequence(), new i.Reader(p.readString(48, !0)).readOID(6, !0) !== s) throw Error("Invalid Public key format");
+ var l = new i.Reader(p.readString(3, !0));
+ l.readByte(), l.readSequence(), t.setPublic(l.readString(2, !0), l.readString(2, !0))
+ },
+ autoImport: function(e, r) {
+ return /^[\S\s]*-----BEGIN PRIVATE KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PRIVATE KEY-----[\S\s]*$/g.test(r) ? (t.exports.privateImport(e, r), !0) : !!/^[\S\s]*-----BEGIN PUBLIC KEY-----\s*(?=(([A-Za-z0-9+/=]+\s*)+))\1-----END PUBLIC KEY-----[\S\s]*$/g.test(r) && (t.exports.publicImport(e, r), !0)
+ }
+ }
+ },
+ 1973: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = r(3200),
+ o = r(8226)._;
+
+ function s(t, e) {
+ null != t && ("number" == typeof t ? this.fromNumber(t, e) : n.isBuffer(t) ? this.fromBuffer(t) : null == e && "string" != typeof t ? this.fromByteArray(t) : this.fromString(t, e))
+ }
+
+ function a() {
+ return new s(null)
+ }
+ s.prototype.am = function(t, e, r, n, i, o) {
+ for (var s = 16383 & e, a = e >> 14; --o >= 0;) {
+ var f = 16383 & this[t],
+ u = this[t++] >> 14,
+ c = a * f + u * s;
+ i = ((f = s * f + ((16383 & c) << 14) + r[n] + i) >> 28) + (c >> 14) + a * u, r[n++] = 268435455 & f
+ }
+ return i
+ }, s.prototype.DB = 28, s.prototype.DM = 268435455, s.prototype.DV = 1 << 28, s.prototype.FV = Math.pow(2, 52), s.prototype.F1 = 24, s.prototype.F2 = 4;
+ var f, u, c = new Array;
+ for (f = "0".charCodeAt(0), u = 0; u <= 9; ++u) c[f++] = u;
+ for (f = "a".charCodeAt(0), u = 10; u < 36; ++u) c[f++] = u;
+ for (f = "A".charCodeAt(0), u = 10; u < 36; ++u) c[f++] = u;
+
+ function h(t) {
+ return "0123456789abcdefghijklmnopqrstuvwxyz".charAt(t)
+ }
+
+ function p(t, e) {
+ var r = c[t.charCodeAt(e)];
+ return null == r ? -1 : r
+ }
+
+ function l(t) {
+ var e = a();
+ return e.fromInt(t), e
+ }
+
+ function y(t) {
+ var e, r = 1;
+ return 0 != (e = t >>> 16) && (t = e, r += 16), 0 != (e = t >> 8) && (t = e, r += 8), 0 != (e = t >> 4) && (t = e, r += 4), 0 != (e = t >> 2) && (t = e, r += 2), 0 != (e = t >> 1) && (t = e, r += 1), r
+ }
+
+ function g(t) {
+ this.m = t
+ }
+
+ function d(t) {
+ this.m = t, this.mp = t.invDigit(), this.mpl = 32767 & this.mp, this.mph = this.mp >> 15, this.um = (1 << t.DB - 15) - 1, this.mt2 = 2 * t.t
+ }
+
+ function v(t, e) {
+ return t & e
+ }
+
+ function m(t, e) {
+ return t | e
+ }
+
+ function S(t, e) {
+ return t ^ e
+ }
+
+ function _(t, e) {
+ return t & ~e
+ }
+
+ function b(t) {
+ if (0 === t) return -1;
+ var e = 0;
+ return 65535 & t || (t >>= 16, e += 16), 255 & t || (t >>= 8, e += 8), 15 & t || (t >>= 4, e += 4), 3 & t || (t >>= 2, e += 2), 1 & t || ++e, e
+ }
+
+ function E(t) {
+ for (var e = 0; 0 != t;) t &= t - 1, ++e;
+ return e
+ }
+
+ function w() {}
+
+ function O(t) {
+ return t
+ }
+
+ function B(t) {
+ this.r2 = a(), this.q3 = a(), s.ONE.dlShiftTo(2 * t.t, this.r2), this.mu = this.r2.divide(t), this.m = t
+ }
+ g.prototype.convert = function(t) {
+ return t.s < 0 || t.compareTo(this.m) >= 0 ? t.mod(this.m) : t
+ }, g.prototype.revert = function(t) {
+ return t
+ }, g.prototype.reduce = function(t) {
+ t.divRemTo(this.m, null, t)
+ }, g.prototype.mulTo = function(t, e, r) {
+ t.multiplyTo(e, r), this.reduce(r)
+ }, g.prototype.sqrTo = function(t, e) {
+ t.squareTo(e), this.reduce(e)
+ }, d.prototype.convert = function(t) {
+ var e = a();
+ return t.abs().dlShiftTo(this.m.t, e), e.divRemTo(this.m, null, e), t.s < 0 && e.compareTo(s.ZERO) > 0 && this.m.subTo(e, e), e
+ }, d.prototype.revert = function(t) {
+ var e = a();
+ return t.copyTo(e), this.reduce(e), e
+ }, d.prototype.reduce = function(t) {
+ for (; t.t <= this.mt2;) t[t.t++] = 0;
+ for (var e = 0; e < this.m.t; ++e) {
+ var r = 32767 & t[e],
+ n = r * this.mpl + ((r * this.mph + (t[e] >> 15) * this.mpl & this.um) << 15) & t.DM;
+ for (t[r = e + this.m.t] += this.m.am(0, n, t, e, 0, this.m.t); t[r] >= t.DV;) t[r] -= t.DV, t[++r]++
+ }
+ t.clamp(), t.drShiftTo(this.m.t, t), t.compareTo(this.m) >= 0 && t.subTo(this.m, t)
+ }, d.prototype.mulTo = function(t, e, r) {
+ t.multiplyTo(e, r), this.reduce(r)
+ }, d.prototype.sqrTo = function(t, e) {
+ t.squareTo(e), this.reduce(e)
+ }, w.prototype.convert = O, w.prototype.revert = O, w.prototype.mulTo = function(t, e, r) {
+ t.multiplyTo(e, r)
+ }, w.prototype.sqrTo = function(t, e) {
+ t.squareTo(e)
+ }, B.prototype.convert = function(t) {
+ if (t.s < 0 || t.t > 2 * this.m.t) return t.mod(this.m);
+ if (t.compareTo(this.m) < 0) return t;
+ var e = a();
+ return t.copyTo(e), this.reduce(e), e
+ }, B.prototype.revert = function(t) {
+ return t
+ }, B.prototype.reduce = function(t) {
+ for (t.drShiftTo(this.m.t - 1, this.r2), t.t > this.m.t + 1 && (t.t = this.m.t + 1, t.clamp()), this.mu.multiplyUpperTo(this.r2, this.m.t + 1, this.q3), this.m.multiplyLowerTo(this.q3, this.m.t + 1, this.r2); t.compareTo(this.r2) < 0;) t.dAddOffset(1, this.m.t + 1);
+ for (t.subTo(this.r2, t); t.compareTo(this.m) >= 0;) t.subTo(this.m, t)
+ }, B.prototype.mulTo = function(t, e, r) {
+ t.multiplyTo(e, r), this.reduce(r)
+ }, B.prototype.sqrTo = function(t, e) {
+ t.squareTo(e), this.reduce(e)
+ };
+ var A = [2, 3, 5, 7, 11, 13, 17, 19, 23, 29, 31, 37, 41, 43, 47, 53, 59, 61, 67, 71, 73, 79, 83, 89, 97, 101, 103, 107, 109, 113, 127, 131, 137, 139, 149, 151, 157, 163, 167, 173, 179, 181, 191, 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251, 257, 263, 269, 271, 277, 281, 283, 293, 307, 311, 313, 317, 331, 337, 347, 349, 353, 359, 367, 373, 379, 383, 389, 397, 401, 409, 419, 421, 431, 433, 439, 443, 449, 457, 461, 463, 467, 479, 487, 491, 499, 503, 509, 521, 523, 541, 547, 557, 563, 569, 571, 577, 587, 593, 599, 601, 607, 613, 617, 619, 631, 641, 643, 647, 653, 659, 661, 673, 677, 683, 691, 701, 709, 719, 727, 733, 739, 743, 751, 757, 761, 769, 773, 787, 797, 809, 811, 821, 823, 827, 829, 839, 853, 857, 859, 863, 877, 881, 883, 887, 907, 911, 919, 929, 937, 941, 947, 953, 967, 971, 977, 983, 991, 997],
+ x = (1 << 26) / A[A.length - 1];
+ s.prototype.copyTo = function(t) {
+ for (var e = this.t - 1; e >= 0; --e) t[e] = this[e];
+ t.t = this.t, t.s = this.s
+ }, s.prototype.fromInt = function(t) {
+ this.t = 1, this.s = t < 0 ? -1 : 0, t > 0 ? this[0] = t : t < -1 ? this[0] = t + DV : this.t = 0
+ }, s.prototype.fromString = function(t, e, r) {
+ var n;
+ switch (e) {
+ case 2:
+ n = 1;
+ break;
+ case 4:
+ n = 2;
+ break;
+ case 8:
+ n = 3;
+ break;
+ case 16:
+ n = 4;
+ break;
+ case 32:
+ n = 5;
+ break;
+ case 256:
+ n = 8;
+ break;
+ default:
+ return void this.fromRadix(t, e)
+ }
+ this.t = 0, this.s = 0;
+ for (var i = t.length, o = !1, a = 0; --i >= 0;) {
+ var f = 8 == n ? 255 & t[i] : p(t, i);
+ f < 0 ? "-" == t.charAt(i) && (o = !0) : (o = !1, 0 === a ? this[this.t++] = f : a + n > this.DB ? (this[this.t - 1] |= (f & (1 << this.DB - a) - 1) << a, this[this.t++] = f >> this.DB - a) : this[this.t - 1] |= f << a, (a += n) >= this.DB && (a -= this.DB))
+ }!r && 8 == n && 128 & t[0] && (this.s = -1, a > 0 && (this[this.t - 1] |= (1 << this.DB - a) - 1 << a)), this.clamp(), o && s.ZERO.subTo(this, this)
+ }, s.prototype.fromByteArray = function(t, e) {
+ this.fromString(t, 256, e)
+ }, s.prototype.fromBuffer = function(t) {
+ this.fromString(t, 256, !0)
+ }, s.prototype.clamp = function() {
+ for (var t = this.s & this.DM; this.t > 0 && this[this.t - 1] == t;) --this.t
+ }, s.prototype.dlShiftTo = function(t, e) {
+ var r;
+ for (r = this.t - 1; r >= 0; --r) e[r + t] = this[r];
+ for (r = t - 1; r >= 0; --r) e[r] = 0;
+ e.t = this.t + t, e.s = this.s
+ }, s.prototype.drShiftTo = function(t, e) {
+ for (var r = t; r < this.t; ++r) e[r - t] = this[r];
+ e.t = Math.max(this.t - t, 0), e.s = this.s
+ }, s.prototype.lShiftTo = function(t, e) {
+ var r, n = t % this.DB,
+ i = this.DB - n,
+ o = (1 << i) - 1,
+ s = Math.floor(t / this.DB),
+ a = this.s << n & this.DM;
+ for (r = this.t - 1; r >= 0; --r) e[r + s + 1] = this[r] >> i | a, a = (this[r] & o) << n;
+ for (r = s - 1; r >= 0; --r) e[r] = 0;
+ e[s] = a, e.t = this.t + s + 1, e.s = this.s, e.clamp()
+ }, s.prototype.rShiftTo = function(t, e) {
+ e.s = this.s;
+ var r = Math.floor(t / this.DB);
+ if (r >= this.t) e.t = 0;
+ else {
+ var n = t % this.DB,
+ i = this.DB - n,
+ o = (1 << n) - 1;
+ e[0] = this[r] >> n;
+ for (var s = r + 1; s < this.t; ++s) e[s - r - 1] |= (this[s] & o) << i, e[s - r] = this[s] >> n;
+ n > 0 && (e[this.t - r - 1] |= (this.s & o) << i), e.t = this.t - r, e.clamp()
+ }
+ }, s.prototype.subTo = function(t, e) {
+ for (var r = 0, n = 0, i = Math.min(t.t, this.t); r < i;) n += this[r] - t[r], e[r++] = n & this.DM, n >>= this.DB;
+ if (t.t < this.t) {
+ for (n -= t.s; r < this.t;) n += this[r], e[r++] = n & this.DM, n >>= this.DB;
+ n += this.s
+ } else {
+ for (n += this.s; r < t.t;) n -= t[r], e[r++] = n & this.DM, n >>= this.DB;
+ n -= t.s
+ }
+ e.s = n < 0 ? -1 : 0, n < -1 ? e[r++] = this.DV + n : n > 0 && (e[r++] = n), e.t = r, e.clamp()
+ }, s.prototype.multiplyTo = function(t, e) {
+ var r = this.abs(),
+ n = t.abs(),
+ i = r.t;
+ for (e.t = i + n.t; --i >= 0;) e[i] = 0;
+ for (i = 0; i < n.t; ++i) e[i + r.t] = r.am(0, n[i], e, i, 0, r.t);
+ e.s = 0, e.clamp(), this.s != t.s && s.ZERO.subTo(e, e)
+ }, s.prototype.squareTo = function(t) {
+ for (var e = this.abs(), r = t.t = 2 * e.t; --r >= 0;) t[r] = 0;
+ for (r = 0; r < e.t - 1; ++r) {
+ var n = e.am(r, e[r], t, 2 * r, 0, 1);
+ (t[r + e.t] += e.am(r + 1, 2 * e[r], t, 2 * r + 1, n, e.t - r - 1)) >= e.DV && (t[r + e.t] -= e.DV, t[r + e.t + 1] = 1)
+ }
+ t.t > 0 && (t[t.t - 1] += e.am(r, e[r], t, 2 * r, 0, 1)), t.s = 0, t.clamp()
+ }, s.prototype.divRemTo = function(t, e, r) {
+ var n = t.abs();
+ if (!(n.t <= 0)) {
+ var i = this.abs();
+ if (i.t < n.t) return null != e && e.fromInt(0), void(null != r && this.copyTo(r));
+ null == r && (r = a());
+ var o = a(),
+ f = this.s,
+ u = t.s,
+ c = this.DB - y(n[n.t - 1]);
+ c > 0 ? (n.lShiftTo(c, o), i.lShiftTo(c, r)) : (n.copyTo(o), i.copyTo(r));
+ var h = o.t,
+ p = o[h - 1];
+ if (0 !== p) {
+ var l = p * (1 << this.F1) + (h > 1 ? o[h - 2] >> this.F2 : 0),
+ g = this.FV / l,
+ d = (1 << this.F1) / l,
+ v = 1 << this.F2,
+ m = r.t,
+ S = m - h,
+ _ = null == e ? a() : e;
+ for (o.dlShiftTo(S, _), r.compareTo(_) >= 0 && (r[r.t++] = 1, r.subTo(_, r)), s.ONE.dlShiftTo(h, _), _.subTo(o, o); o.t < h;) o[o.t++] = 0;
+ for (; --S >= 0;) {
+ var b = r[--m] == p ? this.DM : Math.floor(r[m] * g + (r[m - 1] + v) * d);
+ if ((r[m] += o.am(0, b, r, S, 0, h)) < b)
+ for (o.dlShiftTo(S, _), r.subTo(_, r); r[m] < --b;) r.subTo(_, r)
+ }
+ null != e && (r.drShiftTo(h, e), f != u && s.ZERO.subTo(e, e)), r.t = h, r.clamp(), c > 0 && r.rShiftTo(c, r), f < 0 && s.ZERO.subTo(r, r)
+ }
+ }
+ }, s.prototype.invDigit = function() {
+ if (this.t < 1) return 0;
+ var t = this[0];
+ if (!(1 & t)) return 0;
+ var e = 3 & t;
+ return (e = (e = (e = (e = e * (2 - (15 & t) * e) & 15) * (2 - (255 & t) * e) & 255) * (2 - ((65535 & t) * e & 65535)) & 65535) * (2 - t * e % this.DV) % this.DV) > 0 ? this.DV - e : -e
+ }, s.prototype.isEven = function() {
+ return 0 === (this.t > 0 ? 1 & this[0] : this.s)
+ }, s.prototype.exp = function(t, e) {
+ if (t > 4294967295 || t < 1) return s.ONE;
+ var r = a(),
+ n = a(),
+ i = e.convert(this),
+ o = y(t) - 1;
+ for (i.copyTo(r); --o >= 0;)
+ if (e.sqrTo(r, n), (t & 1 << o) > 0) e.mulTo(n, i, r);
+ else {
+ var f = r;
+ r = n, n = f
+ } return e.revert(r)
+ }, s.prototype.chunkSize = function(t) {
+ return Math.floor(Math.LN2 * this.DB / Math.log(t))
+ }, s.prototype.toRadix = function(t) {
+ if (null == t && (t = 10), 0 === this.signum() || t < 2 || t > 36) return "0";
+ var e = this.chunkSize(t),
+ r = Math.pow(t, e),
+ n = l(r),
+ i = a(),
+ o = a(),
+ s = "";
+ for (this.divRemTo(n, i, o); i.signum() > 0;) s = (r + o.intValue()).toString(t).substr(1) + s, i.divRemTo(n, i, o);
+ return o.intValue().toString(t) + s
+ }, s.prototype.fromRadix = function(t, e) {
+ this.fromInt(0), null == e && (e = 10);
+ for (var r = this.chunkSize(e), n = Math.pow(e, r), i = !1, o = 0, a = 0, f = 0; f < t.length; ++f) {
+ var u = p(t, f);
+ u < 0 ? "-" == t.charAt(f) && 0 === this.signum() && (i = !0) : (a = e * a + u, ++o >= r && (this.dMultiply(n), this.dAddOffset(a, 0), o = 0, a = 0))
+ }
+ o > 0 && (this.dMultiply(Math.pow(e, o)), this.dAddOffset(a, 0)), i && s.ZERO.subTo(this, this)
+ }, s.prototype.fromNumber = function(t, e) {
+ if ("number" == typeof e)
+ if (t < 2) this.fromInt(1);
+ else
+ for (this.fromNumber(t), this.testBit(t - 1) || this.bitwiseTo(s.ONE.shiftLeft(t - 1), m, this), this.isEven() && this.dAddOffset(1, 0); !this.isProbablePrime(e);) this.dAddOffset(2, 0), this.bitLength() > t && this.subTo(s.ONE.shiftLeft(t - 1), this);
+ else {
+ var r = i.randomBytes(1 + (t >> 3)),
+ n = 7 & t;
+ n > 0 ? r[0] &= (1 << n) - 1 : r[0] = 0, this.fromByteArray(r)
+ }
+ }, s.prototype.bitwiseTo = function(t, e, r) {
+ var n, i, o = Math.min(t.t, this.t);
+ for (n = 0; n < o; ++n) r[n] = e(this[n], t[n]);
+ if (t.t < this.t) {
+ for (i = t.s & this.DM, n = o; n < this.t; ++n) r[n] = e(this[n], i);
+ r.t = this.t
+ } else {
+ for (i = this.s & this.DM, n = o; n < t.t; ++n) r[n] = e(i, t[n]);
+ r.t = t.t
+ }
+ r.s = e(this.s, t.s), r.clamp()
+ }, s.prototype.changeBit = function(t, e) {
+ var r = s.ONE.shiftLeft(t);
+ return this.bitwiseTo(r, e, r), r
+ }, s.prototype.addTo = function(t, e) {
+ for (var r = 0, n = 0, i = Math.min(t.t, this.t); r < i;) n += this[r] + t[r], e[r++] = n & this.DM, n >>= this.DB;
+ if (t.t < this.t) {
+ for (n += t.s; r < this.t;) n += this[r], e[r++] = n & this.DM, n >>= this.DB;
+ n += this.s
+ } else {
+ for (n += this.s; r < t.t;) n += t[r], e[r++] = n & this.DM, n >>= this.DB;
+ n += t.s
+ }
+ e.s = n < 0 ? -1 : 0, n > 0 ? e[r++] = n : n < -1 && (e[r++] = this.DV + n), e.t = r, e.clamp()
+ }, s.prototype.dMultiply = function(t) {
+ this[this.t] = this.am(0, t - 1, this, 0, 0, this.t), ++this.t, this.clamp()
+ }, s.prototype.dAddOffset = function(t, e) {
+ if (0 !== t) {
+ for (; this.t <= e;) this[this.t++] = 0;
+ for (this[e] += t; this[e] >= this.DV;) this[e] -= this.DV, ++e >= this.t && (this[this.t++] = 0), ++this[e]
+ }
+ }, s.prototype.multiplyLowerTo = function(t, e, r) {
+ var n, i = Math.min(this.t + t.t, e);
+ for (r.s = 0, r.t = i; i > 0;) r[--i] = 0;
+ for (n = r.t - this.t; i < n; ++i) r[i + this.t] = this.am(0, t[i], r, i, 0, this.t);
+ for (n = Math.min(t.t, e); i < n; ++i) this.am(0, t[i], r, i, 0, e - i);
+ r.clamp()
+ }, s.prototype.multiplyUpperTo = function(t, e, r) {
+ --e;
+ var n = r.t = this.t + t.t - e;
+ for (r.s = 0; --n >= 0;) r[n] = 0;
+ for (n = Math.max(e - this.t, 0); n < t.t; ++n) r[this.t + n - e] = this.am(e - n, t[n], r, 0, 0, this.t + n - e);
+ r.clamp(), r.drShiftTo(1, r)
+ }, s.prototype.modInt = function(t) {
+ if (t <= 0) return 0;
+ var e = this.DV % t,
+ r = this.s < 0 ? t - 1 : 0;
+ if (this.t > 0)
+ if (0 === e) r = this[0] % t;
+ else
+ for (var n = this.t - 1; n >= 0; --n) r = (e * r + this[n]) % t;
+ return r
+ }, s.prototype.millerRabin = function(t) {
+ var e = this.subtract(s.ONE),
+ r = e.getLowestSetBit();
+ if (r <= 0) return !1;
+ var n = e.shiftRight(r);
+ (t = t + 1 >> 1) > A.length && (t = A.length);
+ for (var i = a(), o = 0; o < t; ++o) {
+ i.fromInt(A[Math.floor(Math.random() * A.length)]);
+ var f = i.modPow(n, this);
+ if (0 != f.compareTo(s.ONE) && 0 != f.compareTo(e)) {
+ for (var u = 1; u++ < r && 0 != f.compareTo(e);)
+ if (0 === (f = f.modPowInt(2, this)).compareTo(s.ONE)) return !1;
+ if (0 != f.compareTo(e)) return !1
+ }
+ }
+ return !0
+ }, s.prototype.toString = function(t) {
+ if (this.s < 0) return "-" + this.negate().toString(t);
+ var e;
+ if (16 == t) e = 4;
+ else if (8 == t) e = 3;
+ else if (2 == t) e = 1;
+ else if (32 == t) e = 5;
+ else {
+ if (4 != t) return this.toRadix(t);
+ e = 2
+ }
+ var r, n = (1 << e) - 1,
+ i = !1,
+ o = "",
+ s = this.t,
+ a = this.DB - s * this.DB % e;
+ if (s-- > 0)
+ for (a < this.DB && (r = this[s] >> a) > 0 && (i = !0, o = h(r)); s >= 0;) a < e ? (r = (this[s] & (1 << a) - 1) << e - a, r |= this[--s] >> (a += this.DB - e)) : (r = this[s] >> (a -= e) & n, a <= 0 && (a += this.DB, --s)), r > 0 && (i = !0), i && (o += h(r));
+ return i ? o : "0"
+ }, s.prototype.negate = function() {
+ var t = a();
+ return s.ZERO.subTo(this, t), t
+ }, s.prototype.abs = function() {
+ return this.s < 0 ? this.negate() : this
+ }, s.prototype.compareTo = function(t) {
+ var e = this.s - t.s;
+ if (0 != e) return e;
+ var r = this.t;
+ if (0 != (e = r - t.t)) return this.s < 0 ? -e : e;
+ for (; --r >= 0;)
+ if (0 != (e = this[r] - t[r])) return e;
+ return 0
+ }, s.prototype.bitLength = function() {
+ return this.t <= 0 ? 0 : this.DB * (this.t - 1) + y(this[this.t - 1] ^ this.s & this.DM)
+ }, s.prototype.mod = function(t) {
+ var e = a();
+ return this.abs().divRemTo(t, null, e), this.s < 0 && e.compareTo(s.ZERO) > 0 && t.subTo(e, e), e
+ }, s.prototype.modPowInt = function(t, e) {
+ var r;
+ return r = t < 256 || e.isEven() ? new g(e) : new d(e), this.exp(t, r)
+ }, s.prototype.clone = function() {
+ var t = a();
+ return this.copyTo(t), t
+ }, s.prototype.intValue = function() {
+ if (this.s < 0) {
+ if (1 == this.t) return this[0] - this.DV;
+ if (0 === this.t) return -1
+ } else {
+ if (1 == this.t) return this[0];
+ if (0 === this.t) return 0
+ }
+ return (this[1] & (1 << 32 - this.DB) - 1) << this.DB | this[0]
+ }, s.prototype.byteValue = function() {
+ return 0 == this.t ? this.s : this[0] << 24 >> 24
+ }, s.prototype.shortValue = function() {
+ return 0 == this.t ? this.s : this[0] << 16 >> 16
+ }, s.prototype.signum = function() {
+ return this.s < 0 ? -1 : this.t <= 0 || 1 == this.t && this[0] <= 0 ? 0 : 1
+ }, s.prototype.toByteArray = function() {
+ var t = this.t,
+ e = new Array;
+ e[0] = this.s;
+ var r, n = this.DB - t * this.DB % 8,
+ i = 0;
+ if (t-- > 0)
+ for (n < this.DB && (r = this[t] >> n) != (this.s & this.DM) >> n && (e[i++] = r | this.s << this.DB - n); t >= 0;) n < 8 ? (r = (this[t] & (1 << n) - 1) << 8 - n, r |= this[--t] >> (n += this.DB - 8)) : (r = this[t] >> (n -= 8) & 255, n <= 0 && (n += this.DB, --t)), 128 & r && (r |= -256), 0 === i && (128 & this.s) != (128 & r) && ++i, (i > 0 || r != this.s) && (e[i++] = r);
+ return e
+ }, s.prototype.toBuffer = function(t) {
+ var e = n.from(this.toByteArray());
+ if (!0 === t && 0 === e[0]) e = e.slice(1);
+ else if (o.isNumber(t)) {
+ if (e.length > t) {
+ for (var r = 0; r < e.length - t; r++)
+ if (0 !== e[r]) return null;
+ return e.slice(e.length - t)
+ }
+ if (e.length < t) {
+ var i = n.alloc(t);
+ return i.fill(0, 0, t - e.length), e.copy(i, t - e.length), i
+ }
+ }
+ return e
+ }, s.prototype.equals = function(t) {
+ return 0 == this.compareTo(t)
+ }, s.prototype.min = function(t) {
+ return this.compareTo(t) < 0 ? this : t
+ }, s.prototype.max = function(t) {
+ return this.compareTo(t) > 0 ? this : t
+ }, s.prototype.and = function(t) {
+ var e = a();
+ return this.bitwiseTo(t, v, e), e
+ }, s.prototype.or = function(t) {
+ var e = a();
+ return this.bitwiseTo(t, m, e), e
+ }, s.prototype.xor = function(t) {
+ var e = a();
+ return this.bitwiseTo(t, S, e), e
+ }, s.prototype.andNot = function(t) {
+ var e = a();
+ return this.bitwiseTo(t, _, e), e
+ }, s.prototype.not = function() {
+ for (var t = a(), e = 0; e < this.t; ++e) t[e] = this.DM & ~this[e];
+ return t.t = this.t, t.s = ~this.s, t
+ }, s.prototype.shiftLeft = function(t) {
+ var e = a();
+ return t < 0 ? this.rShiftTo(-t, e) : this.lShiftTo(t, e), e
+ }, s.prototype.shiftRight = function(t) {
+ var e = a();
+ return t < 0 ? this.lShiftTo(-t, e) : this.rShiftTo(t, e), e
+ }, s.prototype.getLowestSetBit = function() {
+ for (var t = 0; t < this.t; ++t)
+ if (0 != this[t]) return t * this.DB + b(this[t]);
+ return this.s < 0 ? this.t * this.DB : -1
+ }, s.prototype.bitCount = function() {
+ for (var t = 0, e = this.s & this.DM, r = 0; r < this.t; ++r) t += E(this[r] ^ e);
+ return t
+ }, s.prototype.testBit = function(t) {
+ var e = Math.floor(t / this.DB);
+ return e >= this.t ? 0 != this.s : !!(this[e] & 1 << t % this.DB)
+ }, s.prototype.setBit = function(t) {
+ return this.changeBit(t, m)
+ }, s.prototype.clearBit = function(t) {
+ return this.changeBit(t, _)
+ }, s.prototype.flipBit = function(t) {
+ return this.changeBit(t, S)
+ }, s.prototype.add = function(t) {
+ var e = a();
+ return this.addTo(t, e), e
+ }, s.prototype.subtract = function(t) {
+ var e = a();
+ return this.subTo(t, e), e
+ }, s.prototype.multiply = function(t) {
+ var e = a();
+ return this.multiplyTo(t, e), e
+ }, s.prototype.divide = function(t) {
+ var e = a();
+ return this.divRemTo(t, e, null), e
+ }, s.prototype.remainder = function(t) {
+ var e = a();
+ return this.divRemTo(t, null, e), e
+ }, s.prototype.divideAndRemainder = function(t) {
+ var e = a(),
+ r = a();
+ return this.divRemTo(t, e, r), new Array(e, r)
+ }, s.prototype.modPow = function(t, e) {
+ var r, n, i = t.bitLength(),
+ o = l(1);
+ if (i <= 0) return o;
+ r = i < 18 ? 1 : i < 48 ? 3 : i < 144 ? 4 : i < 768 ? 5 : 6, n = i < 8 ? new g(e) : e.isEven() ? new B(e) : new d(e);
+ var s = new Array,
+ f = 3,
+ u = r - 1,
+ c = (1 << r) - 1;
+ if (s[1] = n.convert(this), r > 1) {
+ var h = a();
+ for (n.sqrTo(s[1], h); f <= c;) s[f] = a(), n.mulTo(h, s[f - 2], s[f]), f += 2
+ }
+ var p, v, m = t.t - 1,
+ S = !0,
+ _ = a();
+ for (i = y(t[m]) - 1; m >= 0;) {
+ for (i >= u ? p = t[m] >> i - u & c : (p = (t[m] & (1 << i + 1) - 1) << u - i, m > 0 && (p |= t[m - 1] >> this.DB + i - u)), f = r; !(1 & p);) p >>= 1, --f;
+ if ((i -= f) < 0 && (i += this.DB, --m), S) s[p].copyTo(o), S = !1;
+ else {
+ for (; f > 1;) n.sqrTo(o, _), n.sqrTo(_, o), f -= 2;
+ f > 0 ? n.sqrTo(o, _) : (v = o, o = _, _ = v), n.mulTo(_, s[p], o)
+ }
+ for (; m >= 0 && !(t[m] & 1 << i);) n.sqrTo(o, _), v = o, o = _, _ = v, --i < 0 && (i = this.DB - 1, --m)
+ }
+ return n.revert(o)
+ }, s.prototype.modInverse = function(t) {
+ var e = t.isEven();
+ if (this.isEven() && e || 0 === t.signum()) return s.ZERO;
+ for (var r = t.clone(), n = this.clone(), i = l(1), o = l(0), a = l(0), f = l(1); 0 != r.signum();) {
+ for (; r.isEven();) r.rShiftTo(1, r), e ? (i.isEven() && o.isEven() || (i.addTo(this, i), o.subTo(t, o)), i.rShiftTo(1, i)) : o.isEven() || o.subTo(t, o), o.rShiftTo(1, o);
+ for (; n.isEven();) n.rShiftTo(1, n), e ? (a.isEven() && f.isEven() || (a.addTo(this, a), f.subTo(t, f)), a.rShiftTo(1, a)) : f.isEven() || f.subTo(t, f), f.rShiftTo(1, f);
+ r.compareTo(n) >= 0 ? (r.subTo(n, r), e && i.subTo(a, i), o.subTo(f, o)) : (n.subTo(r, n), e && a.subTo(i, a), f.subTo(o, f))
+ }
+ return 0 != n.compareTo(s.ONE) ? s.ZERO : f.compareTo(t) >= 0 ? f.subtract(t) : f.signum() < 0 ? (f.addTo(t, f), f.signum() < 0 ? f.add(t) : f) : f
+ }, s.prototype.pow = function(t) {
+ return this.exp(t, new w)
+ }, s.prototype.gcd = function(t) {
+ var e = this.s < 0 ? this.negate() : this.clone(),
+ r = t.s < 0 ? t.negate() : t.clone();
+ if (e.compareTo(r) < 0) {
+ var n = e;
+ e = r, r = n
+ }
+ var i = e.getLowestSetBit(),
+ o = r.getLowestSetBit();
+ if (o < 0) return e;
+ for (i < o && (o = i), o > 0 && (e.rShiftTo(o, e), r.rShiftTo(o, r)); e.signum() > 0;)(i = e.getLowestSetBit()) > 0 && e.rShiftTo(i, e), (i = r.getLowestSetBit()) > 0 && r.rShiftTo(i, r), e.compareTo(r) >= 0 ? (e.subTo(r, e), e.rShiftTo(1, e)) : (r.subTo(e, r), r.rShiftTo(1, r));
+ return o > 0 && r.lShiftTo(o, r), r
+ }, s.prototype.isProbablePrime = function(t) {
+ var e, r = this.abs();
+ if (1 == r.t && r[0] <= A[A.length - 1]) {
+ for (e = 0; e < A.length; ++e)
+ if (r[0] == A[e]) return !0;
+ return !1
+ }
+ if (r.isEven()) return !1;
+ for (e = 1; e < A.length;) {
+ for (var n = A[e], i = e + 1; i < A.length && n < x;) n *= A[i++];
+ for (n = r.modInt(n); e < i;)
+ if (n % A[e++] == 0) return !1
+ }
+ return r.millerRabin(t)
+ }, s.int2char = h, s.ZERO = l(0), s.ONE = l(1), s.prototype.square = function() {
+ var t = a();
+ return this.squareTo(t), t
+ }, t.exports = s
+ },
+ 5682: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = r(8226)._,
+ o = (r(3200), r(1973)),
+ s = r(8226),
+ a = r(1768),
+ f = r(4538);
+ e.BigInteger = o, t.exports.Key = function() {
+ function t() {
+ this.n = null, this.e = 0, this.d = null, this.p = null, this.q = null, this.dmp1 = null, this.dmq1 = null, this.coeff = null
+ }
+ return t.prototype.setOptions = function(t) {
+ var e = a[t.signingScheme],
+ r = a[t.encryptionScheme];
+ e === r ? this.signingScheme = this.encryptionScheme = r.makeScheme(this, t) : (this.encryptionScheme = r.makeScheme(this, t), this.signingScheme = e.makeScheme(this, t)), this.encryptEngine = f.getEngine(this, t)
+ }, t.prototype.generate = function(t, e) {
+ var r = t >> 1;
+ this.e = parseInt(e, 16);
+ for (var n = new o(e, 16);;) {
+ for (; this.p = new o(t - r, 1), 0 !== this.p.subtract(o.ONE).gcd(n).compareTo(o.ONE) || !this.p.isProbablePrime(10););
+ for (; this.q = new o(r, 1), 0 !== this.q.subtract(o.ONE).gcd(n).compareTo(o.ONE) || !this.q.isProbablePrime(10););
+ if (this.p.compareTo(this.q) <= 0) {
+ var i = this.p;
+ this.p = this.q, this.q = i
+ }
+ var s = this.p.subtract(o.ONE),
+ a = this.q.subtract(o.ONE),
+ f = s.multiply(a);
+ if (0 === f.gcd(n).compareTo(o.ONE)) {
+ if (this.n = this.p.multiply(this.q), this.n.bitLength() < t) continue;
+ this.d = n.modInverse(f), this.dmp1 = this.d.mod(s), this.dmq1 = this.d.mod(a), this.coeff = this.q.modInverse(this.p);
+ break
+ }
+ }
+ this.$$recalculateCache()
+ }, t.prototype.setPrivate = function(t, e, r, n, a, f, u, c) {
+ if (!(t && e && r && t.length > 0 && (i.isNumber(e) || e.length > 0) && r.length > 0)) throw Error("Invalid RSA private key");
+ this.n = new o(t), this.e = i.isNumber(e) ? e : s.get32IntFromBuffer(e, 0), this.d = new o(r), n && a && f && u && c && (this.p = new o(n), this.q = new o(a), this.dmp1 = new o(f), this.dmq1 = new o(u), this.coeff = new o(c)), this.$$recalculateCache()
+ }, t.prototype.setPublic = function(t, e) {
+ if (!(t && e && t.length > 0 && (i.isNumber(e) || e.length > 0))) throw Error("Invalid RSA public key");
+ this.n = new o(t), this.e = i.isNumber(e) ? e : s.get32IntFromBuffer(e, 0), this.$$recalculateCache()
+ }, t.prototype.$doPrivate = function(t) {
+ if (this.p || this.q) return t.modPow(this.d, this.n);
+ for (var e = t.mod(this.p).modPow(this.dmp1, this.p), r = t.mod(this.q).modPow(this.dmq1, this.q); e.compareTo(r) < 0;) e = e.add(this.p);
+ return e.subtract(r).multiply(this.coeff).mod(this.p).multiply(this.q).add(r)
+ }, t.prototype.$doPublic = function(t) {
+ return t.modPowInt(this.e, this.n)
+ }, t.prototype.encrypt = function(t, e) {
+ var r = [],
+ i = [],
+ o = t.length,
+ s = Math.ceil(o / this.maxMessageLength) || 1,
+ a = Math.ceil(o / s || 1);
+ if (1 == s) r.push(t);
+ else
+ for (var f = 0; f < s; f++) r.push(t.slice(f * a, (f + 1) * a));
+ for (var u = 0; u < r.length; u++) i.push(this.encryptEngine.encrypt(r[u], e));
+ return n.concat(i)
+ }, t.prototype.decrypt = function(t, e) {
+ if (t.length % this.encryptedDataLength > 0) throw Error("Incorrect data or key");
+ for (var r = [], i = 0, o = 0, s = t.length / this.encryptedDataLength, a = 0; a < s; a++) o = (i = a * this.encryptedDataLength) + this.encryptedDataLength, r.push(this.encryptEngine.decrypt(t.slice(i, Math.min(o, t.length)), e));
+ return n.concat(r)
+ }, t.prototype.sign = function(t) {
+ return this.signingScheme.sign.apply(this.signingScheme, arguments)
+ }, t.prototype.verify = function(t, e, r) {
+ return this.signingScheme.verify.apply(this.signingScheme, arguments)
+ }, t.prototype.isPrivate = function() {
+ return !!(this.n && this.e && this.d)
+ }, t.prototype.isPublic = function(t) {
+ return this.n && this.e && !(t && this.d) || !1
+ }, Object.defineProperty(t.prototype, "keySize", {
+ get: function() {
+ return this.cache.keyBitLength
+ }
+ }), Object.defineProperty(t.prototype, "encryptedDataLength", {
+ get: function() {
+ return this.cache.keyByteLength
+ }
+ }), Object.defineProperty(t.prototype, "maxMessageLength", {
+ get: function() {
+ return this.encryptionScheme.maxMessageLength()
+ }
+ }), t.prototype.$$recalculateCache = function() {
+ this.cache = this.cache || {}, this.cache.keyBitLength = this.n.bitLength(), this.cache.keyByteLength = this.cache.keyBitLength + 6 >> 3
+ }, t
+ }()
+ },
+ 2487: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = (r(1973), r(3200));
+ t.exports = {
+ isEncryption: !0,
+ isSignature: !1
+ }, t.exports.digestLength = {
+ md4: 16,
+ md5: 16,
+ ripemd160: 20,
+ rmd160: 20,
+ sha1: 20,
+ sha224: 28,
+ sha256: 32,
+ sha384: 48,
+ sha512: 64
+ };
+ var o = "sha1";
+ t.exports.eme_oaep_mgf1 = function(e, r, s) {
+ s = s || o;
+ for (var a = t.exports.digestLength[s], f = Math.ceil(r / a), u = n.alloc(a * f), c = n.alloc(4), h = 0; h < f; ++h) {
+ var p = i.createHash(s);
+ p.update(e), c.writeUInt32BE(h, 0), p.update(c), p.digest().copy(u, h * a)
+ }
+ return u.slice(0, r)
+ }, t.exports.makeScheme = function(e, r) {
+ function s(t, e) {
+ this.key = t, this.options = e
+ }
+ return s.prototype.maxMessageLength = function() {
+ return this.key.encryptedDataLength - 2 * t.exports.digestLength[this.options.encryptionSchemeOptions.hash || o] - 2
+ }, s.prototype.encPad = function(e) {
+ var r = this.options.encryptionSchemeOptions.hash || o,
+ s = this.options.encryptionSchemeOptions.mgf || t.exports.eme_oaep_mgf1,
+ a = this.options.encryptionSchemeOptions.label || n.alloc(0),
+ f = this.key.encryptedDataLength,
+ u = t.exports.digestLength[r];
+ if (e.length > f - 2 * u - 2) throw new Error("Message is too long to encode into an encoded message with a length of " + f + " bytes, increaseemLen to fix this error (minimum value for given parameters and options: " + (f - 2 * u - 2) + ")");
+ var c = i.createHash(r);
+ c.update(a), c = c.digest();
+ var h = n.alloc(f - e.length - 2 * u - 1);
+ h.fill(0), h[h.length - 1] = 1;
+ for (var p = n.concat([c, h, e]), l = i.randomBytes(u), y = s(l, p.length, r), g = 0; g < p.length; g++) p[g] ^= y[g];
+ for (y = s(p, u, r), g = 0; g < l.length; g++) l[g] ^= y[g];
+ var d = n.alloc(1 + l.length + p.length);
+ return d[0] = 0, l.copy(d, 1), p.copy(d, 1 + l.length), d
+ }, s.prototype.encUnPad = function(e) {
+ var r = this.options.encryptionSchemeOptions.hash || o,
+ s = this.options.encryptionSchemeOptions.mgf || t.exports.eme_oaep_mgf1,
+ a = this.options.encryptionSchemeOptions.label || n.alloc(0),
+ f = t.exports.digestLength[r];
+ if (e.length < 2 * f + 2) throw new Error("Error decoding message, the supplied message is not long enough to be a valid OAEP encoded message");
+ for (var u = e.slice(1, f + 1), c = e.slice(1 + f), h = s(c, f, r), p = 0; p < u.length; p++) u[p] ^= h[p];
+ for (h = s(u, c.length, r), p = 0; p < c.length; p++) c[p] ^= h[p];
+ var l = i.createHash(r);
+ if (l.update(a), l = l.digest(), c.slice(0, f).toString("hex") != l.toString("hex")) throw new Error("Error decoding message, the lHash calculated from the label provided and the lHash in the encrypted data do not match.");
+ for (p = f; 0 === c[p++] && p < c.length;);
+ if (1 != c[p - 1]) throw new Error("Error decoding message, there is no padding message separator byte");
+ return c.slice(p)
+ }, new s(e, r)
+ }
+ },
+ 8290: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = r(1973),
+ o = r(3200),
+ s = r(7449),
+ a = {
+ md2: n.from("3020300c06082a864886f70d020205000410", "hex"),
+ md5: n.from("3020300c06082a864886f70d020505000410", "hex"),
+ sha1: n.from("3021300906052b0e03021a05000414", "hex"),
+ sha224: n.from("302d300d06096086480165030402040500041c", "hex"),
+ sha256: n.from("3031300d060960864801650304020105000420", "hex"),
+ sha384: n.from("3041300d060960864801650304020205000430", "hex"),
+ sha512: n.from("3051300d060960864801650304020305000440", "hex"),
+ ripemd160: n.from("3021300906052b2403020105000414", "hex"),
+ rmd160: n.from("3021300906052b2403020105000414", "hex")
+ },
+ f = {
+ ripemd160: "rmd160"
+ },
+ u = "sha256";
+ t.exports = {
+ isEncryption: !0,
+ isSignature: !0
+ }, t.exports.makeScheme = function(t, e) {
+ function r(t, e) {
+ this.key = t, this.options = e
+ }
+ return r.prototype.maxMessageLength = function() {
+ return this.options.encryptionSchemeOptions && this.options.encryptionSchemeOptions.padding == s.RSA_NO_PADDING ? this.key.encryptedDataLength : this.key.encryptedDataLength - 11
+ }, r.prototype.encPad = function(t, e) {
+ var r;
+ if (e = e || {}, t.length > this.key.maxMessageLength) throw new Error("Message too long for RSA (n=" + this.key.encryptedDataLength + ", l=" + t.length + ")");
+ if (this.options.encryptionSchemeOptions && this.options.encryptionSchemeOptions.padding == s.RSA_NO_PADDING) return (r = n.alloc(this.key.maxMessageLength - t.length)).fill(0), n.concat([r, t]);
+ if (1 === e.type) return (r = n.alloc(this.key.encryptedDataLength - t.length - 1)).fill(255, 0, r.length - 1), r[0] = 1, r[r.length - 1] = 0, n.concat([r, t]);
+ (r = n.alloc(this.key.encryptedDataLength - t.length))[0] = 0, r[1] = 2;
+ for (var i = o.randomBytes(r.length - 3), a = 0; a < i.length; a++) {
+ for (var f = i[a]; 0 === f;) f = o.randomBytes(1)[0];
+ r[a + 2] = f
+ }
+ return r[r.length - 1] = 0, n.concat([r, t])
+ }, r.prototype.encUnPad = function(t, e) {
+ e = e || {};
+ var r = 0;
+ if (this.options.encryptionSchemeOptions && this.options.encryptionSchemeOptions.padding == s.RSA_NO_PADDING) return "function" == typeof t.lastIndexOf ? t.slice(t.lastIndexOf("\0") + 1, t.length) : t.slice(String.prototype.lastIndexOf.call(t, "\0") + 1, t.length);
+ if (t.length < 4) return null;
+ if (1 === e.type) {
+ if (0 !== t[0] || 1 !== t[1]) return null;
+ for (r = 3; 0 !== t[r];)
+ if (255 != t[r] || ++r >= t.length) return null
+ } else {
+ if (0 !== t[0] || 2 !== t[1]) return null;
+ for (r = 3; 0 !== t[r];)
+ if (++r >= t.length) return null
+ }
+ return t.slice(r + 1, t.length)
+ }, r.prototype.sign = function(t) {
+ var e = this.options.signingSchemeOptions.hash || u;
+ if ("browser" === this.options.environment) {
+ e = f[e] || e;
+ var r = o.createHash(e);
+ r.update(t);
+ var n = this.pkcs1pad(r.digest(), e);
+ return this.key.$doPrivate(new i(n)).toBuffer(this.key.encryptedDataLength)
+ }
+ var s = o.createSign("RSA-" + e.toUpperCase());
+ return s.update(t), s.sign(this.options.rsaUtils.exportKey("private"))
+ }, r.prototype.verify = function(t, e, r) {
+ if (this.options.encryptionSchemeOptions && this.options.encryptionSchemeOptions.padding == s.RSA_NO_PADDING) return !1;
+ var a = this.options.signingSchemeOptions.hash || u;
+ if ("browser" === this.options.environment) {
+ a = f[a] || a, r && (e = n.from(e, r));
+ var c = o.createHash(a);
+ c.update(t);
+ var h = this.pkcs1pad(c.digest(), a);
+ return this.key.$doPublic(new i(e)).toBuffer().toString("hex") == h.toString("hex")
+ }
+ var p = o.createVerify("RSA-" + a.toUpperCase());
+ return p.update(t), p.verify(this.options.rsaUtils.exportKey("public"), e, r)
+ }, r.prototype.pkcs0pad = function(t) {
+ var e = n.alloc(this.key.maxMessageLength - t.length);
+ return e.fill(0), n.concat([e, t])
+ }, r.prototype.pkcs0unpad = function(t) {
+ return "function" == typeof t.lastIndexOf ? t.slice(t.lastIndexOf("\0") + 1, t.length) : t.slice(String.prototype.lastIndexOf.call(t, "\0") + 1, t.length)
+ }, r.prototype.pkcs1pad = function(t, e) {
+ var r = a[e];
+ if (!r) throw Error("Unsupported hash algorithm");
+ var i = n.concat([r, t]);
+ if (i.length + 10 > this.key.encryptedDataLength) throw Error("Key is too short for signing algorithm (" + e + ")");
+ var o = n.alloc(this.key.encryptedDataLength - i.length - 1);
+ return o.fill(255, 0, o.length - 1), o[0] = 1, o[o.length - 1] = 0, n.concat([o, i])
+ }, new r(t, e)
+ }
+ },
+ 4414: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = r(1973),
+ o = r(3200);
+ t.exports = {
+ isEncryption: !1,
+ isSignature: !0
+ };
+ var s = "sha1";
+ t.exports.makeScheme = function(t, e) {
+ var a = r(1768).pkcs1_oaep;
+
+ function f(t, e) {
+ this.key = t, this.options = e
+ }
+ return f.prototype.sign = function(t) {
+ var e = o.createHash(this.options.signingSchemeOptions.hash || s);
+ e.update(t);
+ var r = this.emsa_pss_encode(e.digest(), this.key.keySize - 1);
+ return this.key.$doPrivate(new i(r)).toBuffer(this.key.encryptedDataLength)
+ }, f.prototype.verify = function(t, e, r) {
+ r && (e = n.from(e, r)), e = new i(e);
+ var a = Math.ceil((this.key.keySize - 1) / 8),
+ f = this.key.$doPublic(e).toBuffer(a),
+ u = o.createHash(this.options.signingSchemeOptions.hash || s);
+ return u.update(t), this.emsa_pss_verify(u.digest(), f, this.key.keySize - 1)
+ }, f.prototype.emsa_pss_encode = function(t, e) {
+ var r = this.options.signingSchemeOptions.hash || s,
+ i = this.options.signingSchemeOptions.mgf || a.eme_oaep_mgf1,
+ f = this.options.signingSchemeOptions.saltLength || 20,
+ u = a.digestLength[r],
+ c = Math.ceil(e / 8);
+ if (c < u + f + 2) throw new Error("Output length passed to emBits(" + e + ") is too small for the options specified(" + r + ", " + f + "). To fix this issue increase the value of emBits. (minimum size: " + (8 * u + 8 * f + 9) + ")");
+ var h = o.randomBytes(f),
+ p = n.alloc(8 + u + f);
+ p.fill(0, 0, 8), t.copy(p, 8), h.copy(p, 8 + t.length);
+ var l = o.createHash(r);
+ l.update(p), l = l.digest();
+ var y = n.alloc(c - h.length - u - 2);
+ y.fill(0);
+ var g = n.alloc(y.length + 1 + h.length);
+ y.copy(g), g[y.length] = 1, h.copy(g, y.length + 1);
+ for (var d = i(l, g.length, r), v = n.alloc(g.length), m = 0; m < d.length; m++) v[m] = g[m] ^ d[m];
+ var S = 8 * c - e,
+ _ = 255 ^ 255 >> 8 - S << 8 - S;
+ v[0] = v[0] & _;
+ var b = n.alloc(v.length + l.length + 1);
+ return v.copy(b, 0), l.copy(b, v.length), b[b.length - 1] = 188, b
+ }, f.prototype.emsa_pss_verify = function(t, e, r) {
+ var i = this.options.signingSchemeOptions.hash || s,
+ f = this.options.signingSchemeOptions.mgf || a.eme_oaep_mgf1,
+ u = this.options.signingSchemeOptions.saltLength || 20,
+ c = a.digestLength[i],
+ h = Math.ceil(r / 8);
+ if (h < c + u + 2 || 188 != e[e.length - 1]) return !1;
+ var p = n.alloc(h - c - 1);
+ e.copy(p, 0, 0, h - c - 1);
+ for (var l = 0, y = 0, g = 8 * h - r; y < g; y++) l |= 1 << 7 - y;
+ if (p[0] & l) return !1;
+ var d = e.slice(h - c - 1, h - 1),
+ v = f(d, p.length, i);
+ for (y = 0; y < p.length; y++) p[y] ^= v[y];
+ for (l = 255 ^ 255 >> 8 - (g = 8 * h - r) << 8 - g, p[0] = p[0] & l, y = 0; 0 === p[y] && y < p.length; y++);
+ if (1 != p[y]) return !1;
+ var m = p.slice(p.length - u),
+ S = n.alloc(8 + c + u);
+ S.fill(0, 0, 8), t.copy(S, 8), m.copy(S, 8 + t.length);
+ var _ = o.createHash(i);
+ return _.update(S), _ = _.digest(), d.toString("hex") === _.toString("hex")
+ }, new f(t, e)
+ }
+ },
+ 1768: (t, e, r) => {
+ t.exports = {
+ pkcs1: r(8290),
+ pkcs1_oaep: r(2487),
+ pss: r(4414),
+ isEncryption: function(e) {
+ return t.exports[e] && t.exports[e].isEncryption
+ },
+ isSignature: function(e) {
+ return t.exports[e] && t.exports[e].isSignature
+ }
+ }
+ },
+ 8226: (t, e, r) => {
+ var n = r(5606);
+ r(3200), t.exports.linebrk = function(t, e) {
+ for (var r = "", n = 0; n + e < t.length;) r += t.substring(n, n + e) + "\n", n += e;
+ return r + t.substring(n, t.length)
+ }, t.exports.detectEnvironment = function() {
+ return "browser";
+ "undefined" == typeof window || !window || n && "node" === n.title ? "node" : "browser"
+ }, t.exports.get32IntFromBuffer = function(t, e) {
+ var r;
+ if (e = e || 0, (r = t.length - e) > 0) {
+ if (r >= 4) return t.readUIntBE(e, r);
+ for (var n = 0, i = e + r, o = 0; i > e; i--, o += 2) n += t[i - 1] * Math.pow(16, o);
+ return n
+ }
+ return NaN
+ }, t.exports._ = {
+ isObject: function(t) {
+ var e = typeof t;
+ return !!t && ("object" == e || "function" == e)
+ },
+ isString: function(t) {
+ return "string" == typeof t || t instanceof String
+ },
+ isNumber: function(t) {
+ return "number" == typeof t || !isNaN(parseFloat(t)) && isFinite(t)
+ },
+ omit: function(t, e) {
+ var r = {};
+ for (var n in t) t.hasOwnProperty(n) && n !== e && (r[n] = t[n]);
+ return r
+ }
+ }, t.exports.trimSurroundingText = function(t, e, r) {
+ var n = 0,
+ i = t.length,
+ o = t.indexOf(e);
+ o >= 0 && (n = o + e.length);
+ var s = t.indexOf(r, o);
+ return s >= 0 && (i = s), t.substring(n, i)
+ }
+ },
+ 8875: (t, e, r) => {
+ "use strict";
+ var n;
+ if (!Object.keys) {
+ var i = Object.prototype.hasOwnProperty,
+ o = Object.prototype.toString,
+ s = r(1093),
+ a = Object.prototype.propertyIsEnumerable,
+ f = !a.call({
+ toString: null
+ }, "toString"),
+ u = a.call((function() {}), "prototype"),
+ c = ["toString", "toLocaleString", "valueOf", "hasOwnProperty", "isPrototypeOf", "propertyIsEnumerable", "constructor"],
+ h = function(t) {
+ var e = t.constructor;
+ return e && e.prototype === t
+ },
+ p = {
+ $applicationCache: !0,
+ $console: !0,
+ $external: !0,
+ $frame: !0,
+ $frameElement: !0,
+ $frames: !0,
+ $innerHeight: !0,
+ $innerWidth: !0,
+ $onmozfullscreenchange: !0,
+ $onmozfullscreenerror: !0,
+ $outerHeight: !0,
+ $outerWidth: !0,
+ $pageXOffset: !0,
+ $pageYOffset: !0,
+ $parent: !0,
+ $scrollLeft: !0,
+ $scrollTop: !0,
+ $scrollX: !0,
+ $scrollY: !0,
+ $self: !0,
+ $webkitIndexedDB: !0,
+ $webkitStorageInfo: !0,
+ $window: !0
+ },
+ l = function() {
+ if ("undefined" == typeof window) return !1;
+ for (var t in window) try {
+ if (!p["$" + t] && i.call(window, t) && null !== window[t] && "object" == typeof window[t]) try {
+ h(window[t])
+ } catch (t) {
+ return !0
+ }
+ } catch (t) {
+ return !0
+ }
+ return !1
+ }();
+ n = function(t) {
+ var e = null !== t && "object" == typeof t,
+ r = "[object Function]" === o.call(t),
+ n = s(t),
+ a = e && "[object String]" === o.call(t),
+ p = [];
+ if (!e && !r && !n) throw new TypeError("Object.keys called on a non-object");
+ var y = u && r;
+ if (a && t.length > 0 && !i.call(t, 0))
+ for (var g = 0; g < t.length; ++g) p.push(String(g));
+ if (n && t.length > 0)
+ for (var d = 0; d < t.length; ++d) p.push(String(d));
+ else
+ for (var v in t) y && "prototype" === v || !i.call(t, v) || p.push(String(v));
+ if (f)
+ for (var m = function(t) {
+ if ("undefined" == typeof window || !l) return h(t);
+ try {
+ return h(t)
+ } catch (t) {
+ return !1
+ }
+ }(t), S = 0; S < c.length; ++S) m && "constructor" === c[S] || !i.call(t, c[S]) || p.push(c[S]);
+ return p
+ }
+ }
+ t.exports = n
+ },
+ 1189: (t, e, r) => {
+ "use strict";
+ var n = Array.prototype.slice,
+ i = r(1093),
+ o = Object.keys,
+ s = o ? function(t) {
+ return o(t)
+ } : r(8875),
+ a = Object.keys;
+ s.shim = function() {
+ if (Object.keys) {
+ var t = function() {
+ var t = Object.keys(arguments);
+ return t && t.length === arguments.length
+ }(1, 2);
+ t || (Object.keys = function(t) {
+ return i(t) ? a(n.call(t)) : a(t)
+ })
+ } else Object.keys = s;
+ return Object.keys || s
+ }, t.exports = s
+ },
+ 1093: t => {
+ "use strict";
+ var e = Object.prototype.toString;
+ t.exports = function(t) {
+ var r = e.call(t),
+ n = "[object Arguments]" === r;
+ return n || (n = "[object Array]" !== r && null !== t && "object" == typeof t && "number" == typeof t.length && t.length >= 0 && "[object Function]" === e.call(t.callee)), n
+ }
+ },
+ 8403: (t, e, r) => {
+ "use strict";
+ var n = r(1189),
+ i = r(1333)(),
+ o = r(8075),
+ s = Object,
+ a = o("Array.prototype.push"),
+ f = o("Object.prototype.propertyIsEnumerable"),
+ u = i ? Object.getOwnPropertySymbols : null;
+ t.exports = function(t, e) {
+ if (null == t) throw new TypeError("target must be an object");
+ var r = s(t);
+ if (1 === arguments.length) return r;
+ for (var o = 1; o < arguments.length; ++o) {
+ var c = s(arguments[o]),
+ h = n(c),
+ p = i && (Object.getOwnPropertySymbols || u);
+ if (p)
+ for (var l = p(c), y = 0; y < l.length; ++y) {
+ var g = l[y];
+ f(c, g) && a(h, g)
+ }
+ for (var d = 0; d < h.length; ++d) {
+ var v = h[d];
+ if (f(c, v)) {
+ var m = c[v];
+ r[v] = m
+ }
+ }
+ }
+ return r
+ }
+ },
+ 1514: (t, e, r) => {
+ "use strict";
+ var n = r(8403);
+ t.exports = function() {
+ return Object.assign ? function() {
+ if (!Object.assign) return !1;
+ for (var t = "abcdefghijklmnopqrst", e = t.split(""), r = {}, n = 0; n < e.length; ++n) r[e[n]] = e[n];
+ var i = Object.assign({}, r),
+ o = "";
+ for (var s in i) o += s;
+ return t !== o
+ }() || function() {
+ if (!Object.assign || !Object.preventExtensions) return !1;
+ var t = Object.preventExtensions({
+ 1: 2
+ });
+ try {
+ Object.assign(t, "xy")
+ } catch (e) {
+ return "y" === t[1]
+ }
+ return !1
+ }() ? n : Object.assign : n
+ }
+ },
+ 5606: t => {
+ var e, r, n = t.exports = {};
+
+ function i() {
+ throw new Error("setTimeout has not been defined")
+ }
+
+ function o() {
+ throw new Error("clearTimeout has not been defined")
+ }
+
+ function s(t) {
+ if (e === setTimeout) return setTimeout(t, 0);
+ if ((e === i || !e) && setTimeout) return e = setTimeout, setTimeout(t, 0);
+ try {
+ return e(t, 0)
+ } catch (r) {
+ try {
+ return e.call(null, t, 0)
+ } catch (r) {
+ return e.call(this, t, 0)
+ }
+ }
+ }! function() {
+ try {
+ e = "function" == typeof setTimeout ? setTimeout : i
+ } catch (t) {
+ e = i
+ }
+ try {
+ r = "function" == typeof clearTimeout ? clearTimeout : o
+ } catch (t) {
+ r = o
+ }
+ }();
+ var a, f = [],
+ u = !1,
+ c = -1;
+
+ function h() {
+ u && a && (u = !1, a.length ? f = a.concat(f) : c = -1, f.length && p())
+ }
+
+ function p() {
+ if (!u) {
+ var t = s(h);
+ u = !0;
+ for (var e = f.length; e;) {
+ for (a = f, f = []; ++c < e;) a && a[c].run();
+ c = -1, e = f.length
+ }
+ a = null, u = !1,
+ function(t) {
+ if (r === clearTimeout) return clearTimeout(t);
+ if ((r === o || !r) && clearTimeout) return r = clearTimeout, clearTimeout(t);
+ try {
+ return r(t)
+ } catch (e) {
+ try {
+ return r.call(null, t)
+ } catch (e) {
+ return r.call(this, t)
+ }
+ }
+ }(t)
+ }
+ }
+
+ function l(t, e) {
+ this.fun = t, this.array = e
+ }
+
+ function y() {}
+ n.nextTick = function(t) {
+ var e = new Array(arguments.length - 1);
+ if (arguments.length > 1)
+ for (var r = 1; r < arguments.length; r++) e[r - 1] = arguments[r];
+ f.push(new l(t, e)), 1 !== f.length || u || s(p)
+ }, l.prototype.run = function() {
+ this.fun.apply(null, this.array)
+ }, n.title = "browser", n.browser = !0, n.env = {}, n.argv = [], n.version = "", n.versions = {}, n.on = y, n.addListener = y, n.once = y, n.off = y, n.removeListener = y, n.removeAllListeners = y, n.emit = y, n.prependListener = y, n.prependOnceListener = y, n.listeners = function(t) {
+ return []
+ }, n.binding = function(t) {
+ throw new Error("process.binding is not supported")
+ }, n.cwd = function() {
+ return "/"
+ }, n.chdir = function(t) {
+ throw new Error("process.chdir is not supported")
+ }, n.umask = function() {
+ return 0
+ }
+ },
+ 4774: (t, e, r) => {
+ "use strict";
+ var n, i = r(5606),
+ o = r(8287),
+ s = o.Buffer,
+ a = {};
+ for (n in o) o.hasOwnProperty(n) && "SlowBuffer" !== n && "Buffer" !== n && (a[n] = o[n]);
+ var f = a.Buffer = {};
+ for (n in s) s.hasOwnProperty(n) && "allocUnsafe" !== n && "allocUnsafeSlow" !== n && (f[n] = s[n]);
+ if (a.Buffer.prototype = s.prototype, f.from && f.from !== Uint8Array.from || (f.from = function(t, e, r) {
+ if ("number" == typeof t) throw new TypeError('The "value" argument must not be of type number. Received type ' + typeof t);
+ if (t && void 0 === t.length) throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type " + typeof t);
+ return s(t, e, r)
+ }), f.alloc || (f.alloc = function(t, e, r) {
+ if ("number" != typeof t) throw new TypeError('The "size" argument must be of type number. Received type ' + typeof t);
+ if (t < 0 || t >= 2 * (1 << 30)) throw new RangeError('The value "' + t + '" is invalid for option "size"');
+ var n = s(t);
+ return e && 0 !== e.length ? "string" == typeof r ? n.fill(e, r) : n.fill(e) : n.fill(0), n
+ }), !a.kStringMaxLength) try {
+ a.kStringMaxLength = i.binding("buffer").kStringMaxLength
+ } catch (t) {}
+ a.constants || (a.constants = {
+ MAX_LENGTH: a.kMaxLength
+ }, a.kStringMaxLength && (a.constants.MAX_STRING_LENGTH = a.kStringMaxLength)), t.exports = a
+ },
+ 6897: (t, e, r) => {
+ "use strict";
+ var n = r(453),
+ i = r(41),
+ o = r(592)(),
+ s = r(5795),
+ a = r(9675),
+ f = n("%Math.floor%");
+ t.exports = function(t, e) {
+ if ("function" != typeof t) throw new a("`fn` is not a function");
+ if ("number" != typeof e || e < 0 || e > 4294967295 || f(e) !== e) throw new a("`length` must be a positive 32-bit integer");
+ var r = arguments.length > 2 && !!arguments[2],
+ n = !0,
+ u = !0;
+ if ("length" in t && s) {
+ var c = s(t, "length");
+ c && !c.configurable && (n = !1), c && !c.writable && (u = !1)
+ }
+ return (n || u || !r) && (o ? i(t, "length", e, !0, !0) : i(t, "length", e)), t
+ }
+ },
+ 3200: (t, e, r) => {
+ var n = r(8287).Buffer,
+ i = r(1396),
+ o = {
+ randomBytes: function(t) {
+ for (var e = [], r = 0; r < t; r++) e.push(Math.floor(256 * Math.random()));
+ return n.from(e)
+ },
+ createHash(t) {
+ let e = n.from([]);
+ return {
+ update: function(t) {
+ return e = n.concat([e, t]), this
+ },
+ digest: function() {
+ let r = i[t.toUpperCase()](i.lib.WordArray.create(new Uint8Array(e))).toString();
+ return n.from(r, "hex")
+ }
+ }
+ }
+ };
+ t.exports = o
+ },
+ 7033: (t, e, r) => {
+ var n = r(8287).Buffer;
+ const i = r(3229);
+ let o = {
+ outputEncoding: "",
+ PublicFormat: "pkcs1-public",
+ PrivateFormat: "pkcs1-private",
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1"
+ }
+ };
+ t.exports = {
+ NodeRSA: i,
+ encryptRSAWithPublicKey: function(t, e, r = {}) {
+ return r = Object.assign({}, o, r), new i(e, r.PublicFormat, r.options).encrypt(t, r.outEncoding || "base64")
+ },
+ encryptRSAWithPrivateKey: function(t, e, r = {}) {
+ return r = Object.assign({}, o, r), new i(e, r.PrivateFormat, r.options).encryptPrivate(t, r.outputEncoding || "base64")
+ },
+ decryptRSAWithPublicKey: function(t, e, r = {}) {
+ return r = Object.assign({}, o, r), new i(e, r.PublicEncoding, r.options).decryptPublic(t, r.outEncoding || "utf8")
+ },
+ decryptRSAWithPrivateKey: function(t, e, r = {}) {
+ return r = Object.assign({}, o, r), new i(e, r.PrivateEncoding, r.options).decrypt(t, r.outEncoding || "utf8")
+ },
+ sign: function(t, e, r = {}) {
+ return r = Object.assign({}, o, r), new i(e, r.PrivateEncoding, r.options).sign(t, r.outEncoding || "base64")
+ },
+ verify: function(t, e, r, s = {}) {
+ return "string" == typeof e && e.match(/^([0-9a-fA-F]{2})*$/) ? e = n.from(e, "hex") : "string" == typeof e && (e = n.from(e, "base64")), s = Object.assign({}, o, s), new i(r, s.PublicEncoding, s.options).verify(t, e)
+ }
+ }
+ },
+ 7449: t => {
+ "use strict";
+ t.exports = JSON.parse('{"O_RDONLY":0,"O_WRONLY":1,"O_RDWR":2,"S_IFMT":61440,"S_IFREG":32768,"S_IFDIR":16384,"S_IFCHR":8192,"S_IFBLK":24576,"S_IFIFO":4096,"S_IFLNK":40960,"S_IFSOCK":49152,"O_CREAT":512,"O_EXCL":2048,"O_NOCTTY":131072,"O_TRUNC":1024,"O_APPEND":8,"O_DIRECTORY":1048576,"O_NOFOLLOW":256,"O_SYNC":128,"O_SYMLINK":2097152,"O_NONBLOCK":4,"S_IRWXU":448,"S_IRUSR":256,"S_IWUSR":128,"S_IXUSR":64,"S_IRWXG":56,"S_IRGRP":32,"S_IWGRP":16,"S_IXGRP":8,"S_IRWXO":7,"S_IROTH":4,"S_IWOTH":2,"S_IXOTH":1,"E2BIG":7,"EACCES":13,"EADDRINUSE":48,"EADDRNOTAVAIL":49,"EAFNOSUPPORT":47,"EAGAIN":35,"EALREADY":37,"EBADF":9,"EBADMSG":94,"EBUSY":16,"ECANCELED":89,"ECHILD":10,"ECONNABORTED":53,"ECONNREFUSED":61,"ECONNRESET":54,"EDEADLK":11,"EDESTADDRREQ":39,"EDOM":33,"EDQUOT":69,"EEXIST":17,"EFAULT":14,"EFBIG":27,"EHOSTUNREACH":65,"EIDRM":90,"EILSEQ":92,"EINPROGRESS":36,"EINTR":4,"EINVAL":22,"EIO":5,"EISCONN":56,"EISDIR":21,"ELOOP":62,"EMFILE":24,"EMLINK":31,"EMSGSIZE":40,"EMULTIHOP":95,"ENAMETOOLONG":63,"ENETDOWN":50,"ENETRESET":52,"ENETUNREACH":51,"ENFILE":23,"ENOBUFS":55,"ENODATA":96,"ENODEV":19,"ENOENT":2,"ENOEXEC":8,"ENOLCK":77,"ENOLINK":97,"ENOMEM":12,"ENOMSG":91,"ENOPROTOOPT":42,"ENOSPC":28,"ENOSR":98,"ENOSTR":99,"ENOSYS":78,"ENOTCONN":57,"ENOTDIR":20,"ENOTEMPTY":66,"ENOTSOCK":38,"ENOTSUP":45,"ENOTTY":25,"ENXIO":6,"EOPNOTSUPP":102,"EOVERFLOW":84,"EPERM":1,"EPIPE":32,"EPROTO":100,"EPROTONOSUPPORT":43,"EPROTOTYPE":41,"ERANGE":34,"EROFS":30,"ESPIPE":29,"ESRCH":3,"ESTALE":70,"ETIME":101,"ETIMEDOUT":60,"ETXTBSY":26,"EWOULDBLOCK":35,"EXDEV":18,"SIGHUP":1,"SIGINT":2,"SIGQUIT":3,"SIGILL":4,"SIGTRAP":5,"SIGABRT":6,"SIGIOT":6,"SIGBUS":10,"SIGFPE":8,"SIGKILL":9,"SIGUSR1":30,"SIGSEGV":11,"SIGUSR2":31,"SIGPIPE":13,"SIGALRM":14,"SIGTERM":15,"SIGCHLD":20,"SIGCONT":19,"SIGSTOP":17,"SIGTSTP":18,"SIGTTIN":21,"SIGTTOU":22,"SIGURG":16,"SIGXCPU":24,"SIGXFSZ":25,"SIGVTALRM":26,"SIGPROF":27,"SIGWINCH":28,"SIGIO":23,"SIGSYS":12,"SSL_OP_ALL":2147486719,"SSL_OP_ALLOW_UNSAFE_LEGACY_RENEGOTIATION":262144,"SSL_OP_CIPHER_SERVER_PREFERENCE":4194304,"SSL_OP_CISCO_ANYCONNECT":32768,"SSL_OP_COOKIE_EXCHANGE":8192,"SSL_OP_CRYPTOPRO_TLSEXT_BUG":2147483648,"SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS":2048,"SSL_OP_EPHEMERAL_RSA":0,"SSL_OP_LEGACY_SERVER_CONNECT":4,"SSL_OP_MICROSOFT_BIG_SSLV3_BUFFER":32,"SSL_OP_MICROSOFT_SESS_ID_BUG":1,"SSL_OP_MSIE_SSLV2_RSA_PADDING":0,"SSL_OP_NETSCAPE_CA_DN_BUG":536870912,"SSL_OP_NETSCAPE_CHALLENGE_BUG":2,"SSL_OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG":1073741824,"SSL_OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG":8,"SSL_OP_NO_COMPRESSION":131072,"SSL_OP_NO_QUERY_MTU":4096,"SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION":65536,"SSL_OP_NO_SSLv2":16777216,"SSL_OP_NO_SSLv3":33554432,"SSL_OP_NO_TICKET":16384,"SSL_OP_NO_TLSv1":67108864,"SSL_OP_NO_TLSv1_1":268435456,"SSL_OP_NO_TLSv1_2":134217728,"SSL_OP_PKCS1_CHECK_1":0,"SSL_OP_PKCS1_CHECK_2":0,"SSL_OP_SINGLE_DH_USE":1048576,"SSL_OP_SINGLE_ECDH_USE":524288,"SSL_OP_SSLEAY_080_CLIENT_DH_BUG":128,"SSL_OP_SSLREF2_REUSE_CERT_TYPE_BUG":0,"SSL_OP_TLS_BLOCK_PADDING_BUG":512,"SSL_OP_TLS_D5_BUG":256,"SSL_OP_TLS_ROLLBACK_BUG":8388608,"ENGINE_METHOD_DSA":2,"ENGINE_METHOD_DH":4,"ENGINE_METHOD_RAND":8,"ENGINE_METHOD_ECDH":16,"ENGINE_METHOD_ECDSA":32,"ENGINE_METHOD_CIPHERS":64,"ENGINE_METHOD_DIGESTS":128,"ENGINE_METHOD_STORE":256,"ENGINE_METHOD_PKEY_METHS":512,"ENGINE_METHOD_PKEY_ASN1_METHS":1024,"ENGINE_METHOD_ALL":65535,"ENGINE_METHOD_NONE":0,"DH_CHECK_P_NOT_SAFE_PRIME":2,"DH_CHECK_P_NOT_PRIME":1,"DH_UNABLE_TO_CHECK_GENERATOR":4,"DH_NOT_SUITABLE_GENERATOR":8,"NPN_ENABLED":1,"RSA_PKCS1_PADDING":1,"RSA_SSLV23_PADDING":2,"RSA_NO_PADDING":3,"RSA_PKCS1_OAEP_PADDING":4,"RSA_X931_PADDING":5,"RSA_PKCS1_PSS_PADDING":6,"POINT_CONVERSION_COMPRESSED":2,"POINT_CONVERSION_UNCOMPRESSED":4,"POINT_CONVERSION_HYBRID":6,"F_OK":0,"R_OK":4,"W_OK":2,"X_OK":1,"UV_UDP_REUSEADDR":4}')
+ }
+ },
+ e = {};
+
+ function r(n) {
+ var i = e[n];
+ if (void 0 !== i) return i.exports;
+ var o = e[n] = {
+ exports: {}
+ };
+ return t[n].call(o.exports, o, o.exports, r), o.exports
+ }
+ return r.g = function() {
+ if ("object" == typeof globalThis) return globalThis;
+ try {
+ return this || new Function("return this")()
+ } catch (t) {
+ if ("object" == typeof window) return window
+ }
+ }(), r(7033)
+})()));
\ No newline at end of file
diff --git a/JS/pako.min.js b/JS/pako.min.js
new file mode 100644
index 0000000..09522f2
--- /dev/null
+++ b/JS/pako.min.js
@@ -0,0 +1,1439 @@
+/*! pako 2.1.0 https://github.com/nodeca/pako @license (MIT AND Zlib) */ ! function(t, e) {
+ "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd ? define(["exports"], e) : e((t = "undefined" != typeof globalThis ? globalThis : t || self).pako = {})
+}(this, (function(t) {
+ "use strict";
+
+ function e(t) {
+ let e = t.length;
+ for (; --e >= 0;) t[e] = 0
+ }
+ const a = 256,
+ i = 286,
+ n = 30,
+ s = 15,
+ r = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0]),
+ o = new Uint8Array([0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13]),
+ l = new Uint8Array([0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7]),
+ h = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]),
+ d = new Array(576);
+ e(d);
+ const _ = new Array(60);
+ e(_);
+ const f = new Array(512);
+ e(f);
+ const c = new Array(256);
+ e(c);
+ const u = new Array(29);
+ e(u);
+ const w = new Array(n);
+
+ function m(t, e, a, i, n) {
+ this.static_tree = t, this.extra_bits = e, this.extra_base = a, this.elems = i, this.max_length = n, this.has_stree = t && t.length
+ }
+ let b, g, p;
+
+ function k(t, e) {
+ this.dyn_tree = t, this.max_code = 0, this.stat_desc = e
+ }
+ e(w);
+ const v = t => t < 256 ? f[t] : f[256 + (t >>> 7)],
+ y = (t, e) => {
+ t.pending_buf[t.pending++] = 255 & e, t.pending_buf[t.pending++] = e >>> 8 & 255
+ },
+ x = (t, e, a) => {
+ t.bi_valid > 16 - a ? (t.bi_buf |= e << t.bi_valid & 65535, y(t, t.bi_buf), t.bi_buf = e >> 16 - t.bi_valid, t.bi_valid += a - 16) : (t.bi_buf |= e << t.bi_valid & 65535, t.bi_valid += a)
+ },
+ z = (t, e, a) => {
+ x(t, a[2 * e], a[2 * e + 1])
+ },
+ A = (t, e) => {
+ let a = 0;
+ do {
+ a |= 1 & t, t >>>= 1, a <<= 1
+ } while (--e > 0);
+ return a >>> 1
+ },
+ E = (t, e, a) => {
+ const i = new Array(16);
+ let n, r, o = 0;
+ for (n = 1; n <= s; n++) o = o + a[n - 1] << 1, i[n] = o;
+ for (r = 0; r <= e; r++) {
+ let e = t[2 * r + 1];
+ 0 !== e && (t[2 * r] = A(i[e]++, e))
+ }
+ },
+ R = t => {
+ let e;
+ for (e = 0; e < i; e++) t.dyn_ltree[2 * e] = 0;
+ for (e = 0; e < n; e++) t.dyn_dtree[2 * e] = 0;
+ for (e = 0; e < 19; e++) t.bl_tree[2 * e] = 0;
+ t.dyn_ltree[512] = 1, t.opt_len = t.static_len = 0, t.sym_next = t.matches = 0
+ },
+ Z = t => {
+ t.bi_valid > 8 ? y(t, t.bi_buf) : t.bi_valid > 0 && (t.pending_buf[t.pending++] = t.bi_buf), t.bi_buf = 0, t.bi_valid = 0
+ },
+ U = (t, e, a, i) => {
+ const n = 2 * e,
+ s = 2 * a;
+ return t[n] < t[s] || t[n] === t[s] && i[e] <= i[a]
+ },
+ S = (t, e, a) => {
+ const i = t.heap[a];
+ let n = a << 1;
+ for (; n <= t.heap_len && (n < t.heap_len && U(e, t.heap[n + 1], t.heap[n], t.depth) && n++, !U(e, i, t.heap[n], t.depth));) t.heap[a] = t.heap[n], a = n, n <<= 1;
+ t.heap[a] = i
+ },
+ D = (t, e, i) => {
+ let n, s, l, h, d = 0;
+ if (0 !== t.sym_next)
+ do {
+ n = 255 & t.pending_buf[t.sym_buf + d++], n += (255 & t.pending_buf[t.sym_buf + d++]) << 8, s = t.pending_buf[t.sym_buf + d++], 0 === n ? z(t, s, e) : (l = c[s], z(t, l + a + 1, e), h = r[l], 0 !== h && (s -= u[l], x(t, s, h)), n--, l = v(n), z(t, l, i), h = o[l], 0 !== h && (n -= w[l], x(t, n, h)))
+ } while (d < t.sym_next);
+ z(t, 256, e)
+ },
+ T = (t, e) => {
+ const a = e.dyn_tree,
+ i = e.stat_desc.static_tree,
+ n = e.stat_desc.has_stree,
+ r = e.stat_desc.elems;
+ let o, l, h, d = -1;
+ for (t.heap_len = 0, t.heap_max = 573, o = 0; o < r; o++) 0 !== a[2 * o] ? (t.heap[++t.heap_len] = d = o, t.depth[o] = 0) : a[2 * o + 1] = 0;
+ for (; t.heap_len < 2;) h = t.heap[++t.heap_len] = d < 2 ? ++d : 0, a[2 * h] = 1, t.depth[h] = 0, t.opt_len--, n && (t.static_len -= i[2 * h + 1]);
+ for (e.max_code = d, o = t.heap_len >> 1; o >= 1; o--) S(t, a, o);
+ h = r;
+ do {
+ o = t.heap[1], t.heap[1] = t.heap[t.heap_len--], S(t, a, 1), l = t.heap[1], t.heap[--t.heap_max] = o, t.heap[--t.heap_max] = l, a[2 * h] = a[2 * o] + a[2 * l], t.depth[h] = (t.depth[o] >= t.depth[l] ? t.depth[o] : t.depth[l]) + 1, a[2 * o + 1] = a[2 * l + 1] = h, t.heap[1] = h++, S(t, a, 1)
+ } while (t.heap_len >= 2);
+ t.heap[--t.heap_max] = t.heap[1], ((t, e) => {
+ const a = e.dyn_tree,
+ i = e.max_code,
+ n = e.stat_desc.static_tree,
+ r = e.stat_desc.has_stree,
+ o = e.stat_desc.extra_bits,
+ l = e.stat_desc.extra_base,
+ h = e.stat_desc.max_length;
+ let d, _, f, c, u, w, m = 0;
+ for (c = 0; c <= s; c++) t.bl_count[c] = 0;
+ for (a[2 * t.heap[t.heap_max] + 1] = 0, d = t.heap_max + 1; d < 573; d++) _ = t.heap[d], c = a[2 * a[2 * _ + 1] + 1] + 1, c > h && (c = h, m++), a[2 * _ + 1] = c, _ > i || (t.bl_count[c]++, u = 0, _ >= l && (u = o[_ - l]), w = a[2 * _], t.opt_len += w * (c + u), r && (t.static_len += w * (n[2 * _ + 1] + u)));
+ if (0 !== m) {
+ do {
+ for (c = h - 1; 0 === t.bl_count[c];) c--;
+ t.bl_count[c]--, t.bl_count[c + 1] += 2, t.bl_count[h]--, m -= 2
+ } while (m > 0);
+ for (c = h; 0 !== c; c--)
+ for (_ = t.bl_count[c]; 0 !== _;) f = t.heap[--d], f > i || (a[2 * f + 1] !== c && (t.opt_len += (c - a[2 * f + 1]) * a[2 * f], a[2 * f + 1] = c), _--)
+ }
+ })(t, e), E(a, d, t.bl_count)
+ },
+ O = (t, e, a) => {
+ let i, n, s = -1,
+ r = e[1],
+ o = 0,
+ l = 7,
+ h = 4;
+ for (0 === r && (l = 138, h = 3), e[2 * (a + 1) + 1] = 65535, i = 0; i <= a; i++) n = r, r = e[2 * (i + 1) + 1], ++o < l && n === r || (o < h ? t.bl_tree[2 * n] += o : 0 !== n ? (n !== s && t.bl_tree[2 * n]++, t.bl_tree[32]++) : o <= 10 ? t.bl_tree[34]++ : t.bl_tree[36]++, o = 0, s = n, 0 === r ? (l = 138, h = 3) : n === r ? (l = 6, h = 3) : (l = 7, h = 4))
+ },
+ I = (t, e, a) => {
+ let i, n, s = -1,
+ r = e[1],
+ o = 0,
+ l = 7,
+ h = 4;
+ for (0 === r && (l = 138, h = 3), i = 0; i <= a; i++)
+ if (n = r, r = e[2 * (i + 1) + 1], !(++o < l && n === r)) {
+ if (o < h)
+ do {
+ z(t, n, t.bl_tree)
+ } while (0 != --o);
+ else 0 !== n ? (n !== s && (z(t, n, t.bl_tree), o--), z(t, 16, t.bl_tree), x(t, o - 3, 2)) : o <= 10 ? (z(t, 17, t.bl_tree), x(t, o - 3, 3)) : (z(t, 18, t.bl_tree), x(t, o - 11, 7));
+ o = 0, s = n, 0 === r ? (l = 138, h = 3) : n === r ? (l = 6, h = 3) : (l = 7, h = 4)
+ }
+ };
+ let F = !1;
+ const L = (t, e, a, i) => {
+ x(t, 0 + (i ? 1 : 0), 3), Z(t), y(t, a), y(t, ~a), a && t.pending_buf.set(t.window.subarray(e, e + a), t.pending), t.pending += a
+ };
+ var N = (t, e, i, n) => {
+ let s, r, o = 0;
+ t.level > 0 ? (2 === t.strm.data_type && (t.strm.data_type = (t => {
+ let e, i = 4093624447;
+ for (e = 0; e <= 31; e++, i >>>= 1)
+ if (1 & i && 0 !== t.dyn_ltree[2 * e]) return 0;
+ if (0 !== t.dyn_ltree[18] || 0 !== t.dyn_ltree[20] || 0 !== t.dyn_ltree[26]) return 1;
+ for (e = 32; e < a; e++)
+ if (0 !== t.dyn_ltree[2 * e]) return 1;
+ return 0
+ })(t)), T(t, t.l_desc), T(t, t.d_desc), o = (t => {
+ let e;
+ for (O(t, t.dyn_ltree, t.l_desc.max_code), O(t, t.dyn_dtree, t.d_desc.max_code), T(t, t.bl_desc), e = 18; e >= 3 && 0 === t.bl_tree[2 * h[e] + 1]; e--);
+ return t.opt_len += 3 * (e + 1) + 5 + 5 + 4, e
+ })(t), s = t.opt_len + 3 + 7 >>> 3, r = t.static_len + 3 + 7 >>> 3, r <= s && (s = r)) : s = r = i + 5, i + 4 <= s && -1 !== e ? L(t, e, i, n) : 4 === t.strategy || r === s ? (x(t, 2 + (n ? 1 : 0), 3), D(t, d, _)) : (x(t, 4 + (n ? 1 : 0), 3), ((t, e, a, i) => {
+ let n;
+ for (x(t, e - 257, 5), x(t, a - 1, 5), x(t, i - 4, 4), n = 0; n < i; n++) x(t, t.bl_tree[2 * h[n] + 1], 3);
+ I(t, t.dyn_ltree, e - 1), I(t, t.dyn_dtree, a - 1)
+ })(t, t.l_desc.max_code + 1, t.d_desc.max_code + 1, o + 1), D(t, t.dyn_ltree, t.dyn_dtree)), R(t), n && Z(t)
+ },
+ B = {
+ _tr_init: t => {
+ F || ((() => {
+ let t, e, a, h, k;
+ const v = new Array(16);
+ for (a = 0, h = 0; h < 28; h++)
+ for (u[h] = a, t = 0; t < 1 << r[h]; t++) c[a++] = h;
+ for (c[a - 1] = h, k = 0, h = 0; h < 16; h++)
+ for (w[h] = k, t = 0; t < 1 << o[h]; t++) f[k++] = h;
+ for (k >>= 7; h < n; h++)
+ for (w[h] = k << 7, t = 0; t < 1 << o[h] - 7; t++) f[256 + k++] = h;
+ for (e = 0; e <= s; e++) v[e] = 0;
+ for (t = 0; t <= 143;) d[2 * t + 1] = 8, t++, v[8]++;
+ for (; t <= 255;) d[2 * t + 1] = 9, t++, v[9]++;
+ for (; t <= 279;) d[2 * t + 1] = 7, t++, v[7]++;
+ for (; t <= 287;) d[2 * t + 1] = 8, t++, v[8]++;
+ for (E(d, 287, v), t = 0; t < n; t++) _[2 * t + 1] = 5, _[2 * t] = A(t, 5);
+ b = new m(d, r, 257, i, s), g = new m(_, o, 0, n, s), p = new m(new Array(0), l, 0, 19, 7)
+ })(), F = !0), t.l_desc = new k(t.dyn_ltree, b), t.d_desc = new k(t.dyn_dtree, g), t.bl_desc = new k(t.bl_tree, p), t.bi_buf = 0, t.bi_valid = 0, R(t)
+ },
+ _tr_stored_block: L,
+ _tr_flush_block: N,
+ _tr_tally: (t, e, i) => (t.pending_buf[t.sym_buf + t.sym_next++] = e, t.pending_buf[t.sym_buf + t.sym_next++] = e >> 8, t.pending_buf[t.sym_buf + t.sym_next++] = i, 0 === e ? t.dyn_ltree[2 * i]++ : (t.matches++, e--, t.dyn_ltree[2 * (c[i] + a + 1)]++, t.dyn_dtree[2 * v(e)]++), t.sym_next === t.sym_end),
+ _tr_align: t => {
+ x(t, 2, 3), z(t, 256, d), (t => {
+ 16 === t.bi_valid ? (y(t, t.bi_buf), t.bi_buf = 0, t.bi_valid = 0) : t.bi_valid >= 8 && (t.pending_buf[t.pending++] = 255 & t.bi_buf, t.bi_buf >>= 8, t.bi_valid -= 8)
+ })(t)
+ }
+ };
+ var C = (t, e, a, i) => {
+ let n = 65535 & t | 0,
+ s = t >>> 16 & 65535 | 0,
+ r = 0;
+ for (; 0 !== a;) {
+ r = a > 2e3 ? 2e3 : a, a -= r;
+ do {
+ n = n + e[i++] | 0, s = s + n | 0
+ } while (--r);
+ n %= 65521, s %= 65521
+ }
+ return n | s << 16 | 0
+ };
+ const M = new Uint32Array((() => {
+ let t, e = [];
+ for (var a = 0; a < 256; a++) {
+ t = a;
+ for (var i = 0; i < 8; i++) t = 1 & t ? 3988292384 ^ t >>> 1 : t >>> 1;
+ e[a] = t
+ }
+ return e
+ })());
+ var H = (t, e, a, i) => {
+ const n = M,
+ s = i + a;
+ t ^= -1;
+ for (let a = i; a < s; a++) t = t >>> 8 ^ n[255 & (t ^ e[a])];
+ return -1 ^ t
+ },
+ j = {
+ 2: "need dictionary",
+ 1: "stream end",
+ 0: "",
+ "-1": "file error",
+ "-2": "stream error",
+ "-3": "data error",
+ "-4": "insufficient memory",
+ "-5": "buffer error",
+ "-6": "incompatible version"
+ },
+ K = {
+ Z_NO_FLUSH: 0,
+ Z_PARTIAL_FLUSH: 1,
+ Z_SYNC_FLUSH: 2,
+ Z_FULL_FLUSH: 3,
+ Z_FINISH: 4,
+ Z_BLOCK: 5,
+ Z_TREES: 6,
+ Z_OK: 0,
+ Z_STREAM_END: 1,
+ Z_NEED_DICT: 2,
+ Z_ERRNO: -1,
+ Z_STREAM_ERROR: -2,
+ Z_DATA_ERROR: -3,
+ Z_MEM_ERROR: -4,
+ Z_BUF_ERROR: -5,
+ Z_NO_COMPRESSION: 0,
+ Z_BEST_SPEED: 1,
+ Z_BEST_COMPRESSION: 9,
+ Z_DEFAULT_COMPRESSION: -1,
+ Z_FILTERED: 1,
+ Z_HUFFMAN_ONLY: 2,
+ Z_RLE: 3,
+ Z_FIXED: 4,
+ Z_DEFAULT_STRATEGY: 0,
+ Z_BINARY: 0,
+ Z_TEXT: 1,
+ Z_UNKNOWN: 2,
+ Z_DEFLATED: 8
+ };
+ const {
+ _tr_init: P,
+ _tr_stored_block: Y,
+ _tr_flush_block: G,
+ _tr_tally: X,
+ _tr_align: W
+ } = B, {
+ Z_NO_FLUSH: q,
+ Z_PARTIAL_FLUSH: J,
+ Z_FULL_FLUSH: Q,
+ Z_FINISH: V,
+ Z_BLOCK: $,
+ Z_OK: tt,
+ Z_STREAM_END: et,
+ Z_STREAM_ERROR: at,
+ Z_DATA_ERROR: it,
+ Z_BUF_ERROR: nt,
+ Z_DEFAULT_COMPRESSION: st,
+ Z_FILTERED: rt,
+ Z_HUFFMAN_ONLY: ot,
+ Z_RLE: lt,
+ Z_FIXED: ht,
+ Z_DEFAULT_STRATEGY: dt,
+ Z_UNKNOWN: _t,
+ Z_DEFLATED: ft
+ } = K, ct = 258, ut = 262, wt = 42, mt = 113, bt = 666, gt = (t, e) => (t.msg = j[e], e), pt = t => 2 * t - (t > 4 ? 9 : 0), kt = t => {
+ let e = t.length;
+ for (; --e >= 0;) t[e] = 0
+ }, vt = t => {
+ let e, a, i, n = t.w_size;
+ e = t.hash_size, i = e;
+ do {
+ a = t.head[--i], t.head[i] = a >= n ? a - n : 0
+ } while (--e);
+ e = n, i = e;
+ do {
+ a = t.prev[--i], t.prev[i] = a >= n ? a - n : 0
+ } while (--e)
+ };
+ let yt = (t, e, a) => (e << t.hash_shift ^ a) & t.hash_mask;
+ const xt = t => {
+ const e = t.state;
+ let a = e.pending;
+ a > t.avail_out && (a = t.avail_out), 0 !== a && (t.output.set(e.pending_buf.subarray(e.pending_out, e.pending_out + a), t.next_out), t.next_out += a, e.pending_out += a, t.total_out += a, t.avail_out -= a, e.pending -= a, 0 === e.pending && (e.pending_out = 0))
+ },
+ zt = (t, e) => {
+ G(t, t.block_start >= 0 ? t.block_start : -1, t.strstart - t.block_start, e), t.block_start = t.strstart, xt(t.strm)
+ },
+ At = (t, e) => {
+ t.pending_buf[t.pending++] = e
+ },
+ Et = (t, e) => {
+ t.pending_buf[t.pending++] = e >>> 8 & 255, t.pending_buf[t.pending++] = 255 & e
+ },
+ Rt = (t, e, a, i) => {
+ let n = t.avail_in;
+ return n > i && (n = i), 0 === n ? 0 : (t.avail_in -= n, e.set(t.input.subarray(t.next_in, t.next_in + n), a), 1 === t.state.wrap ? t.adler = C(t.adler, e, n, a) : 2 === t.state.wrap && (t.adler = H(t.adler, e, n, a)), t.next_in += n, t.total_in += n, n)
+ },
+ Zt = (t, e) => {
+ let a, i, n = t.max_chain_length,
+ s = t.strstart,
+ r = t.prev_length,
+ o = t.nice_match;
+ const l = t.strstart > t.w_size - ut ? t.strstart - (t.w_size - ut) : 0,
+ h = t.window,
+ d = t.w_mask,
+ _ = t.prev,
+ f = t.strstart + ct;
+ let c = h[s + r - 1],
+ u = h[s + r];
+ t.prev_length >= t.good_match && (n >>= 2), o > t.lookahead && (o = t.lookahead);
+ do {
+ if (a = e, h[a + r] === u && h[a + r - 1] === c && h[a] === h[s] && h[++a] === h[s + 1]) {
+ s += 2, a++;
+ do {} while (h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && h[++s] === h[++a] && s < f);
+ if (i = ct - (f - s), s = f - ct, i > r) {
+ if (t.match_start = e, r = i, i >= o) break;
+ c = h[s + r - 1], u = h[s + r]
+ }
+ }
+ } while ((e = _[e & d]) > l && 0 != --n);
+ return r <= t.lookahead ? r : t.lookahead
+ },
+ Ut = t => {
+ const e = t.w_size;
+ let a, i, n;
+ do {
+ if (i = t.window_size - t.lookahead - t.strstart, t.strstart >= e + (e - ut) && (t.window.set(t.window.subarray(e, e + e - i), 0), t.match_start -= e, t.strstart -= e, t.block_start -= e, t.insert > t.strstart && (t.insert = t.strstart), vt(t), i += e), 0 === t.strm.avail_in) break;
+ if (a = Rt(t.strm, t.window, t.strstart + t.lookahead, i), t.lookahead += a, t.lookahead + t.insert >= 3)
+ for (n = t.strstart - t.insert, t.ins_h = t.window[n], t.ins_h = yt(t, t.ins_h, t.window[n + 1]); t.insert && (t.ins_h = yt(t, t.ins_h, t.window[n + 3 - 1]), t.prev[n & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = n, n++, t.insert--, !(t.lookahead + t.insert < 3)););
+ } while (t.lookahead < ut && 0 !== t.strm.avail_in)
+ },
+ St = (t, e) => {
+ let a, i, n, s = t.pending_buf_size - 5 > t.w_size ? t.w_size : t.pending_buf_size - 5,
+ r = 0,
+ o = t.strm.avail_in;
+ do {
+ if (a = 65535, n = t.bi_valid + 42 >> 3, t.strm.avail_out < n) break;
+ if (n = t.strm.avail_out - n, i = t.strstart - t.block_start, a > i + t.strm.avail_in && (a = i + t.strm.avail_in), a > n && (a = n), a < s && (0 === a && e !== V || e === q || a !== i + t.strm.avail_in)) break;
+ r = e === V && a === i + t.strm.avail_in ? 1 : 0, Y(t, 0, 0, r), t.pending_buf[t.pending - 4] = a, t.pending_buf[t.pending - 3] = a >> 8, t.pending_buf[t.pending - 2] = ~a, t.pending_buf[t.pending - 1] = ~a >> 8, xt(t.strm), i && (i > a && (i = a), t.strm.output.set(t.window.subarray(t.block_start, t.block_start + i), t.strm.next_out), t.strm.next_out += i, t.strm.avail_out -= i, t.strm.total_out += i, t.block_start += i, a -= i), a && (Rt(t.strm, t.strm.output, t.strm.next_out, a), t.strm.next_out += a, t.strm.avail_out -= a, t.strm.total_out += a)
+ } while (0 === r);
+ return o -= t.strm.avail_in, o && (o >= t.w_size ? (t.matches = 2, t.window.set(t.strm.input.subarray(t.strm.next_in - t.w_size, t.strm.next_in), 0), t.strstart = t.w_size, t.insert = t.strstart) : (t.window_size - t.strstart <= o && (t.strstart -= t.w_size, t.window.set(t.window.subarray(t.w_size, t.w_size + t.strstart), 0), t.matches < 2 && t.matches++, t.insert > t.strstart && (t.insert = t.strstart)), t.window.set(t.strm.input.subarray(t.strm.next_in - o, t.strm.next_in), t.strstart), t.strstart += o, t.insert += o > t.w_size - t.insert ? t.w_size - t.insert : o), t.block_start = t.strstart), t.high_water < t.strstart && (t.high_water = t.strstart), r ? 4 : e !== q && e !== V && 0 === t.strm.avail_in && t.strstart === t.block_start ? 2 : (n = t.window_size - t.strstart, t.strm.avail_in > n && t.block_start >= t.w_size && (t.block_start -= t.w_size, t.strstart -= t.w_size, t.window.set(t.window.subarray(t.w_size, t.w_size + t.strstart), 0), t.matches < 2 && t.matches++, n += t.w_size, t.insert > t.strstart && (t.insert = t.strstart)), n > t.strm.avail_in && (n = t.strm.avail_in), n && (Rt(t.strm, t.window, t.strstart, n), t.strstart += n, t.insert += n > t.w_size - t.insert ? t.w_size - t.insert : n), t.high_water < t.strstart && (t.high_water = t.strstart), n = t.bi_valid + 42 >> 3, n = t.pending_buf_size - n > 65535 ? 65535 : t.pending_buf_size - n, s = n > t.w_size ? t.w_size : n, i = t.strstart - t.block_start, (i >= s || (i || e === V) && e !== q && 0 === t.strm.avail_in && i <= n) && (a = i > n ? n : i, r = e === V && 0 === t.strm.avail_in && a === i ? 1 : 0, Y(t, t.block_start, a, r), t.block_start += a, xt(t.strm)), r ? 3 : 1)
+ },
+ Dt = (t, e) => {
+ let a, i;
+ for (;;) {
+ if (t.lookahead < ut) {
+ if (Ut(t), t.lookahead < ut && e === q) return 1;
+ if (0 === t.lookahead) break
+ }
+ if (a = 0, t.lookahead >= 3 && (t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), 0 !== a && t.strstart - a <= t.w_size - ut && (t.match_length = Zt(t, a)), t.match_length >= 3)
+ if (i = X(t, t.strstart - t.match_start, t.match_length - 3), t.lookahead -= t.match_length, t.match_length <= t.max_lazy_match && t.lookahead >= 3) {
+ t.match_length--;
+ do {
+ t.strstart++, t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart
+ } while (0 != --t.match_length);
+ t.strstart++
+ } else t.strstart += t.match_length, t.match_length = 0, t.ins_h = t.window[t.strstart], t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 1]);
+ else i = X(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++;
+ if (i && (zt(t, !1), 0 === t.strm.avail_out)) return 1
+ }
+ return t.insert = t.strstart < 2 ? t.strstart : 2, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2
+ },
+ Tt = (t, e) => {
+ let a, i, n;
+ for (;;) {
+ if (t.lookahead < ut) {
+ if (Ut(t), t.lookahead < ut && e === q) return 1;
+ if (0 === t.lookahead) break
+ }
+ if (a = 0, t.lookahead >= 3 && (t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart), t.prev_length = t.match_length, t.prev_match = t.match_start, t.match_length = 2, 0 !== a && t.prev_length < t.max_lazy_match && t.strstart - a <= t.w_size - ut && (t.match_length = Zt(t, a), t.match_length <= 5 && (t.strategy === rt || 3 === t.match_length && t.strstart - t.match_start > 4096) && (t.match_length = 2)), t.prev_length >= 3 && t.match_length <= t.prev_length) {
+ n = t.strstart + t.lookahead - 3, i = X(t, t.strstart - 1 - t.prev_match, t.prev_length - 3), t.lookahead -= t.prev_length - 1, t.prev_length -= 2;
+ do {
+ ++t.strstart <= n && (t.ins_h = yt(t, t.ins_h, t.window[t.strstart + 3 - 1]), a = t.prev[t.strstart & t.w_mask] = t.head[t.ins_h], t.head[t.ins_h] = t.strstart)
+ } while (0 != --t.prev_length);
+ if (t.match_available = 0, t.match_length = 2, t.strstart++, i && (zt(t, !1), 0 === t.strm.avail_out)) return 1
+ } else if (t.match_available) {
+ if (i = X(t, 0, t.window[t.strstart - 1]), i && zt(t, !1), t.strstart++, t.lookahead--, 0 === t.strm.avail_out) return 1
+ } else t.match_available = 1, t.strstart++, t.lookahead--
+ }
+ return t.match_available && (i = X(t, 0, t.window[t.strstart - 1]), t.match_available = 0), t.insert = t.strstart < 2 ? t.strstart : 2, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2
+ };
+
+ function Ot(t, e, a, i, n) {
+ this.good_length = t, this.max_lazy = e, this.nice_length = a, this.max_chain = i, this.func = n
+ }
+ const It = [new Ot(0, 0, 0, 0, St), new Ot(4, 4, 8, 4, Dt), new Ot(4, 5, 16, 8, Dt), new Ot(4, 6, 32, 32, Dt), new Ot(4, 4, 16, 16, Tt), new Ot(8, 16, 32, 32, Tt), new Ot(8, 16, 128, 128, Tt), new Ot(8, 32, 128, 256, Tt), new Ot(32, 128, 258, 1024, Tt), new Ot(32, 258, 258, 4096, Tt)];
+
+ function Ft() {
+ this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = ft, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new Uint16Array(1146), this.dyn_dtree = new Uint16Array(122), this.bl_tree = new Uint16Array(78), kt(this.dyn_ltree), kt(this.dyn_dtree), kt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new Uint16Array(16), this.heap = new Uint16Array(573), kt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new Uint16Array(573), kt(this.depth), this.sym_buf = 0, this.lit_bufsize = 0, this.sym_next = 0, this.sym_end = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0
+ }
+ const Lt = t => {
+ if (!t) return 1;
+ const e = t.state;
+ return !e || e.strm !== t || e.status !== wt && 57 !== e.status && 69 !== e.status && 73 !== e.status && 91 !== e.status && 103 !== e.status && e.status !== mt && e.status !== bt ? 1 : 0
+ },
+ Nt = t => {
+ if (Lt(t)) return gt(t, at);
+ t.total_in = t.total_out = 0, t.data_type = _t;
+ const e = t.state;
+ return e.pending = 0, e.pending_out = 0, e.wrap < 0 && (e.wrap = -e.wrap), e.status = 2 === e.wrap ? 57 : e.wrap ? wt : mt, t.adler = 2 === e.wrap ? 0 : 1, e.last_flush = -2, P(e), tt
+ },
+ Bt = t => {
+ const e = Nt(t);
+ var a;
+ return e === tt && ((a = t.state).window_size = 2 * a.w_size, kt(a.head), a.max_lazy_match = It[a.level].max_lazy, a.good_match = It[a.level].good_length, a.nice_match = It[a.level].nice_length, a.max_chain_length = It[a.level].max_chain, a.strstart = 0, a.block_start = 0, a.lookahead = 0, a.insert = 0, a.match_length = a.prev_length = 2, a.match_available = 0, a.ins_h = 0), e
+ },
+ Ct = (t, e, a, i, n, s) => {
+ if (!t) return at;
+ let r = 1;
+ if (e === st && (e = 6), i < 0 ? (r = 0, i = -i) : i > 15 && (r = 2, i -= 16), n < 1 || n > 9 || a !== ft || i < 8 || i > 15 || e < 0 || e > 9 || s < 0 || s > ht || 8 === i && 1 !== r) return gt(t, at);
+ 8 === i && (i = 9);
+ const o = new Ft;
+ return t.state = o, o.strm = t, o.status = wt, o.wrap = r, o.gzhead = null, o.w_bits = i, o.w_size = 1 << o.w_bits, o.w_mask = o.w_size - 1, o.hash_bits = n + 7, o.hash_size = 1 << o.hash_bits, o.hash_mask = o.hash_size - 1, o.hash_shift = ~~((o.hash_bits + 3 - 1) / 3), o.window = new Uint8Array(2 * o.w_size), o.head = new Uint16Array(o.hash_size), o.prev = new Uint16Array(o.w_size), o.lit_bufsize = 1 << n + 6, o.pending_buf_size = 4 * o.lit_bufsize, o.pending_buf = new Uint8Array(o.pending_buf_size), o.sym_buf = o.lit_bufsize, o.sym_end = 3 * (o.lit_bufsize - 1), o.level = e, o.strategy = s, o.method = a, Bt(t)
+ };
+ var Mt = {
+ deflateInit: (t, e) => Ct(t, e, ft, 15, 8, dt),
+ deflateInit2: Ct,
+ deflateReset: Bt,
+ deflateResetKeep: Nt,
+ deflateSetHeader: (t, e) => Lt(t) || 2 !== t.state.wrap ? at : (t.state.gzhead = e, tt),
+ deflate: (t, e) => {
+ if (Lt(t) || e > $ || e < 0) return t ? gt(t, at) : at;
+ const a = t.state;
+ if (!t.output || 0 !== t.avail_in && !t.input || a.status === bt && e !== V) return gt(t, 0 === t.avail_out ? nt : at);
+ const i = a.last_flush;
+ if (a.last_flush = e, 0 !== a.pending) {
+ if (xt(t), 0 === t.avail_out) return a.last_flush = -1, tt
+ } else if (0 === t.avail_in && pt(e) <= pt(i) && e !== V) return gt(t, nt);
+ if (a.status === bt && 0 !== t.avail_in) return gt(t, nt);
+ if (a.status === wt && 0 === a.wrap && (a.status = mt), a.status === wt) {
+ let e = ft + (a.w_bits - 8 << 4) << 8,
+ i = -1;
+ if (i = a.strategy >= ot || a.level < 2 ? 0 : a.level < 6 ? 1 : 6 === a.level ? 2 : 3, e |= i << 6, 0 !== a.strstart && (e |= 32), e += 31 - e % 31, Et(a, e), 0 !== a.strstart && (Et(a, t.adler >>> 16), Et(a, 65535 & t.adler)), t.adler = 1, a.status = mt, xt(t), 0 !== a.pending) return a.last_flush = -1, tt
+ }
+ if (57 === a.status)
+ if (t.adler = 0, At(a, 31), At(a, 139), At(a, 8), a.gzhead) At(a, (a.gzhead.text ? 1 : 0) + (a.gzhead.hcrc ? 2 : 0) + (a.gzhead.extra ? 4 : 0) + (a.gzhead.name ? 8 : 0) + (a.gzhead.comment ? 16 : 0)), At(a, 255 & a.gzhead.time), At(a, a.gzhead.time >> 8 & 255), At(a, a.gzhead.time >> 16 & 255), At(a, a.gzhead.time >> 24 & 255), At(a, 9 === a.level ? 2 : a.strategy >= ot || a.level < 2 ? 4 : 0), At(a, 255 & a.gzhead.os), a.gzhead.extra && a.gzhead.extra.length && (At(a, 255 & a.gzhead.extra.length), At(a, a.gzhead.extra.length >> 8 & 255)), a.gzhead.hcrc && (t.adler = H(t.adler, a.pending_buf, a.pending, 0)), a.gzindex = 0, a.status = 69;
+ else if (At(a, 0), At(a, 0), At(a, 0), At(a, 0), At(a, 0), At(a, 9 === a.level ? 2 : a.strategy >= ot || a.level < 2 ? 4 : 0), At(a, 3), a.status = mt, xt(t), 0 !== a.pending) return a.last_flush = -1, tt;
+ if (69 === a.status) {
+ if (a.gzhead.extra) {
+ let e = a.pending,
+ i = (65535 & a.gzhead.extra.length) - a.gzindex;
+ for (; a.pending + i > a.pending_buf_size;) {
+ let n = a.pending_buf_size - a.pending;
+ if (a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex, a.gzindex + n), a.pending), a.pending = a.pending_buf_size, a.gzhead.hcrc && a.pending > e && (t.adler = H(t.adler, a.pending_buf, a.pending - e, e)), a.gzindex += n, xt(t), 0 !== a.pending) return a.last_flush = -1, tt;
+ e = 0, i -= n
+ }
+ let n = new Uint8Array(a.gzhead.extra);
+ a.pending_buf.set(n.subarray(a.gzindex, a.gzindex + i), a.pending), a.pending += i, a.gzhead.hcrc && a.pending > e && (t.adler = H(t.adler, a.pending_buf, a.pending - e, e)), a.gzindex = 0
+ }
+ a.status = 73
+ }
+ if (73 === a.status) {
+ if (a.gzhead.name) {
+ let e, i = a.pending;
+ do {
+ if (a.pending === a.pending_buf_size) {
+ if (a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i)), xt(t), 0 !== a.pending) return a.last_flush = -1, tt;
+ i = 0
+ }
+ e = a.gzindex < a.gzhead.name.length ? 255 & a.gzhead.name.charCodeAt(a.gzindex++) : 0, At(a, e)
+ } while (0 !== e);
+ a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i)), a.gzindex = 0
+ }
+ a.status = 91
+ }
+ if (91 === a.status) {
+ if (a.gzhead.comment) {
+ let e, i = a.pending;
+ do {
+ if (a.pending === a.pending_buf_size) {
+ if (a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i)), xt(t), 0 !== a.pending) return a.last_flush = -1, tt;
+ i = 0
+ }
+ e = a.gzindex < a.gzhead.comment.length ? 255 & a.gzhead.comment.charCodeAt(a.gzindex++) : 0, At(a, e)
+ } while (0 !== e);
+ a.gzhead.hcrc && a.pending > i && (t.adler = H(t.adler, a.pending_buf, a.pending - i, i))
+ }
+ a.status = 103
+ }
+ if (103 === a.status) {
+ if (a.gzhead.hcrc) {
+ if (a.pending + 2 > a.pending_buf_size && (xt(t), 0 !== a.pending)) return a.last_flush = -1, tt;
+ At(a, 255 & t.adler), At(a, t.adler >> 8 & 255), t.adler = 0
+ }
+ if (a.status = mt, xt(t), 0 !== a.pending) return a.last_flush = -1, tt
+ }
+ if (0 !== t.avail_in || 0 !== a.lookahead || e !== q && a.status !== bt) {
+ let i = 0 === a.level ? St(a, e) : a.strategy === ot ? ((t, e) => {
+ let a;
+ for (;;) {
+ if (0 === t.lookahead && (Ut(t), 0 === t.lookahead)) {
+ if (e === q) return 1;
+ break
+ }
+ if (t.match_length = 0, a = X(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++, a && (zt(t, !1), 0 === t.strm.avail_out)) return 1
+ }
+ return t.insert = 0, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2
+ })(a, e) : a.strategy === lt ? ((t, e) => {
+ let a, i, n, s;
+ const r = t.window;
+ for (;;) {
+ if (t.lookahead <= ct) {
+ if (Ut(t), t.lookahead <= ct && e === q) return 1;
+ if (0 === t.lookahead) break
+ }
+ if (t.match_length = 0, t.lookahead >= 3 && t.strstart > 0 && (n = t.strstart - 1, i = r[n], i === r[++n] && i === r[++n] && i === r[++n])) {
+ s = t.strstart + ct;
+ do {} while (i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && i === r[++n] && n < s);
+ t.match_length = ct - (s - n), t.match_length > t.lookahead && (t.match_length = t.lookahead)
+ }
+ if (t.match_length >= 3 ? (a = X(t, 1, t.match_length - 3), t.lookahead -= t.match_length, t.strstart += t.match_length, t.match_length = 0) : (a = X(t, 0, t.window[t.strstart]), t.lookahead--, t.strstart++), a && (zt(t, !1), 0 === t.strm.avail_out)) return 1
+ }
+ return t.insert = 0, e === V ? (zt(t, !0), 0 === t.strm.avail_out ? 3 : 4) : t.sym_next && (zt(t, !1), 0 === t.strm.avail_out) ? 1 : 2
+ })(a, e) : It[a.level].func(a, e);
+ if (3 !== i && 4 !== i || (a.status = bt), 1 === i || 3 === i) return 0 === t.avail_out && (a.last_flush = -1), tt;
+ if (2 === i && (e === J ? W(a) : e !== $ && (Y(a, 0, 0, !1), e === Q && (kt(a.head), 0 === a.lookahead && (a.strstart = 0, a.block_start = 0, a.insert = 0))), xt(t), 0 === t.avail_out)) return a.last_flush = -1, tt
+ }
+ return e !== V ? tt : a.wrap <= 0 ? et : (2 === a.wrap ? (At(a, 255 & t.adler), At(a, t.adler >> 8 & 255), At(a, t.adler >> 16 & 255), At(a, t.adler >> 24 & 255), At(a, 255 & t.total_in), At(a, t.total_in >> 8 & 255), At(a, t.total_in >> 16 & 255), At(a, t.total_in >> 24 & 255)) : (Et(a, t.adler >>> 16), Et(a, 65535 & t.adler)), xt(t), a.wrap > 0 && (a.wrap = -a.wrap), 0 !== a.pending ? tt : et)
+ },
+ deflateEnd: t => {
+ if (Lt(t)) return at;
+ const e = t.state.status;
+ return t.state = null, e === mt ? gt(t, it) : tt
+ },
+ deflateSetDictionary: (t, e) => {
+ let a = e.length;
+ if (Lt(t)) return at;
+ const i = t.state,
+ n = i.wrap;
+ if (2 === n || 1 === n && i.status !== wt || i.lookahead) return at;
+ if (1 === n && (t.adler = C(t.adler, e, a, 0)), i.wrap = 0, a >= i.w_size) {
+ 0 === n && (kt(i.head), i.strstart = 0, i.block_start = 0, i.insert = 0);
+ let t = new Uint8Array(i.w_size);
+ t.set(e.subarray(a - i.w_size, a), 0), e = t, a = i.w_size
+ }
+ const s = t.avail_in,
+ r = t.next_in,
+ o = t.input;
+ for (t.avail_in = a, t.next_in = 0, t.input = e, Ut(i); i.lookahead >= 3;) {
+ let t = i.strstart,
+ e = i.lookahead - 2;
+ do {
+ i.ins_h = yt(i, i.ins_h, i.window[t + 3 - 1]), i.prev[t & i.w_mask] = i.head[i.ins_h], i.head[i.ins_h] = t, t++
+ } while (--e);
+ i.strstart = t, i.lookahead = 2, Ut(i)
+ }
+ return i.strstart += i.lookahead, i.block_start = i.strstart, i.insert = i.lookahead, i.lookahead = 0, i.match_length = i.prev_length = 2, i.match_available = 0, t.next_in = r, t.input = o, t.avail_in = s, i.wrap = n, tt
+ },
+ deflateInfo: "pako deflate (from Nodeca project)"
+ };
+ const Ht = (t, e) => Object.prototype.hasOwnProperty.call(t, e);
+ var jt = function(t) {
+ const e = Array.prototype.slice.call(arguments, 1);
+ for (; e.length;) {
+ const a = e.shift();
+ if (a) {
+ if ("object" != typeof a) throw new TypeError(a + "must be non-object");
+ for (const e in a) Ht(a, e) && (t[e] = a[e])
+ }
+ }
+ return t
+ },
+ Kt = t => {
+ let e = 0;
+ for (let a = 0, i = t.length; a < i; a++) e += t[a].length;
+ const a = new Uint8Array(e);
+ for (let e = 0, i = 0, n = t.length; e < n; e++) {
+ let n = t[e];
+ a.set(n, i), i += n.length
+ }
+ return a
+ };
+ let Pt = !0;
+ try {
+ String.fromCharCode.apply(null, new Uint8Array(1))
+ } catch (t) {
+ Pt = !1
+ }
+ const Yt = new Uint8Array(256);
+ for (let t = 0; t < 256; t++) Yt[t] = t >= 252 ? 6 : t >= 248 ? 5 : t >= 240 ? 4 : t >= 224 ? 3 : t >= 192 ? 2 : 1;
+ Yt[254] = Yt[254] = 1;
+ var Gt = t => {
+ if ("function" == typeof TextEncoder && TextEncoder.prototype.encode) return (new TextEncoder).encode(t);
+ let e, a, i, n, s, r = t.length,
+ o = 0;
+ for (n = 0; n < r; n++) a = t.charCodeAt(n), 55296 == (64512 & a) && n + 1 < r && (i = t.charCodeAt(n + 1), 56320 == (64512 & i) && (a = 65536 + (a - 55296 << 10) + (i - 56320), n++)), o += a < 128 ? 1 : a < 2048 ? 2 : a < 65536 ? 3 : 4;
+ for (e = new Uint8Array(o), s = 0, n = 0; s < o; n++) a = t.charCodeAt(n), 55296 == (64512 & a) && n + 1 < r && (i = t.charCodeAt(n + 1), 56320 == (64512 & i) && (a = 65536 + (a - 55296 << 10) + (i - 56320), n++)), a < 128 ? e[s++] = a : a < 2048 ? (e[s++] = 192 | a >>> 6, e[s++] = 128 | 63 & a) : a < 65536 ? (e[s++] = 224 | a >>> 12, e[s++] = 128 | a >>> 6 & 63, e[s++] = 128 | 63 & a) : (e[s++] = 240 | a >>> 18, e[s++] = 128 | a >>> 12 & 63, e[s++] = 128 | a >>> 6 & 63, e[s++] = 128 | 63 & a);
+ return e
+ },
+ Xt = (t, e) => {
+ const a = e || t.length;
+ if ("function" == typeof TextDecoder && TextDecoder.prototype.decode) return (new TextDecoder).decode(t.subarray(0, e));
+ let i, n;
+ const s = new Array(2 * a);
+ for (n = 0, i = 0; i < a;) {
+ let e = t[i++];
+ if (e < 128) {
+ s[n++] = e;
+ continue
+ }
+ let r = Yt[e];
+ if (r > 4) s[n++] = 65533, i += r - 1;
+ else {
+ for (e &= 2 === r ? 31 : 3 === r ? 15 : 7; r > 1 && i < a;) e = e << 6 | 63 & t[i++], r--;
+ r > 1 ? s[n++] = 65533 : e < 65536 ? s[n++] = e : (e -= 65536, s[n++] = 55296 | e >> 10 & 1023, s[n++] = 56320 | 1023 & e)
+ }
+ }
+ return ((t, e) => {
+ if (e < 65534 && t.subarray && Pt) return String.fromCharCode.apply(null, t.length === e ? t : t.subarray(0, e));
+ let a = "";
+ for (let i = 0; i < e; i++) a += String.fromCharCode(t[i]);
+ return a
+ })(s, n)
+ },
+ Wt = (t, e) => {
+ (e = e || t.length) > t.length && (e = t.length);
+ let a = e - 1;
+ for (; a >= 0 && 128 == (192 & t[a]);) a--;
+ return a < 0 || 0 === a ? e : a + Yt[t[a]] > e ? a : e
+ };
+ var qt = function() {
+ this.input = null, this.next_in = 0, this.avail_in = 0, this.total_in = 0, this.output = null, this.next_out = 0, this.avail_out = 0, this.total_out = 0, this.msg = "", this.state = null, this.data_type = 2, this.adler = 0
+ };
+ const Jt = Object.prototype.toString,
+ {
+ Z_NO_FLUSH: Qt,
+ Z_SYNC_FLUSH: Vt,
+ Z_FULL_FLUSH: $t,
+ Z_FINISH: te,
+ Z_OK: ee,
+ Z_STREAM_END: ae,
+ Z_DEFAULT_COMPRESSION: ie,
+ Z_DEFAULT_STRATEGY: ne,
+ Z_DEFLATED: se
+ } = K;
+
+ function re(t) {
+ this.options = jt({
+ level: ie,
+ method: se,
+ chunkSize: 16384,
+ windowBits: 15,
+ memLevel: 8,
+ strategy: ne
+ }, t || {});
+ let e = this.options;
+ e.raw && e.windowBits > 0 ? e.windowBits = -e.windowBits : e.gzip && e.windowBits > 0 && e.windowBits < 16 && (e.windowBits += 16), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new qt, this.strm.avail_out = 0;
+ let a = Mt.deflateInit2(this.strm, e.level, e.method, e.windowBits, e.memLevel, e.strategy);
+ if (a !== ee) throw new Error(j[a]);
+ if (e.header && Mt.deflateSetHeader(this.strm, e.header), e.dictionary) {
+ let t;
+ if (t = "string" == typeof e.dictionary ? Gt(e.dictionary) : "[object ArrayBuffer]" === Jt.call(e.dictionary) ? new Uint8Array(e.dictionary) : e.dictionary, a = Mt.deflateSetDictionary(this.strm, t), a !== ee) throw new Error(j[a]);
+ this._dict_set = !0
+ }
+ }
+
+ function oe(t, e) {
+ const a = new re(e);
+ if (a.push(t, !0), a.err) throw a.msg || j[a.err];
+ return a.result
+ }
+ re.prototype.push = function(t, e) {
+ const a = this.strm,
+ i = this.options.chunkSize;
+ let n, s;
+ if (this.ended) return !1;
+ for (s = e === ~~e ? e : !0 === e ? te : Qt, "string" == typeof t ? a.input = Gt(t) : "[object ArrayBuffer]" === Jt.call(t) ? a.input = new Uint8Array(t) : a.input = t, a.next_in = 0, a.avail_in = a.input.length;;)
+ if (0 === a.avail_out && (a.output = new Uint8Array(i), a.next_out = 0, a.avail_out = i), (s === Vt || s === $t) && a.avail_out <= 6) this.onData(a.output.subarray(0, a.next_out)), a.avail_out = 0;
+ else {
+ if (n = Mt.deflate(a, s), n === ae) return a.next_out > 0 && this.onData(a.output.subarray(0, a.next_out)), n = Mt.deflateEnd(this.strm), this.onEnd(n), this.ended = !0, n === ee;
+ if (0 !== a.avail_out) {
+ if (s > 0 && a.next_out > 0) this.onData(a.output.subarray(0, a.next_out)), a.avail_out = 0;
+ else if (0 === a.avail_in) break
+ } else this.onData(a.output)
+ } return !0
+ }, re.prototype.onData = function(t) {
+ this.chunks.push(t)
+ }, re.prototype.onEnd = function(t) {
+ t === ee && (this.result = Kt(this.chunks)), this.chunks = [], this.err = t, this.msg = this.strm.msg
+ };
+ var le = {
+ Deflate: re,
+ deflate: oe,
+ deflateRaw: function(t, e) {
+ return (e = e || {}).raw = !0, oe(t, e)
+ },
+ gzip: function(t, e) {
+ return (e = e || {}).gzip = !0, oe(t, e)
+ },
+ constants: K
+ };
+ const he = 16209;
+ var de = function(t, e) {
+ let a, i, n, s, r, o, l, h, d, _, f, c, u, w, m, b, g, p, k, v, y, x, z, A;
+ const E = t.state;
+ a = t.next_in, z = t.input, i = a + (t.avail_in - 5), n = t.next_out, A = t.output, s = n - (e - t.avail_out), r = n + (t.avail_out - 257), o = E.dmax, l = E.wsize, h = E.whave, d = E.wnext, _ = E.window, f = E.hold, c = E.bits, u = E.lencode, w = E.distcode, m = (1 << E.lenbits) - 1, b = (1 << E.distbits) - 1;
+ t: do {
+ c < 15 && (f += z[a++] << c, c += 8, f += z[a++] << c, c += 8), g = u[f & m];
+ e: for (;;) {
+ if (p = g >>> 24, f >>>= p, c -= p, p = g >>> 16 & 255, 0 === p) A[n++] = 65535 & g;
+ else {
+ if (!(16 & p)) {
+ if (0 == (64 & p)) {
+ g = u[(65535 & g) + (f & (1 << p) - 1)];
+ continue e
+ }
+ if (32 & p) {
+ E.mode = 16191;
+ break t
+ }
+ t.msg = "invalid literal/length code", E.mode = he;
+ break t
+ }
+ k = 65535 & g, p &= 15, p && (c < p && (f += z[a++] << c, c += 8), k += f & (1 << p) - 1, f >>>= p, c -= p), c < 15 && (f += z[a++] << c, c += 8, f += z[a++] << c, c += 8), g = w[f & b];
+ a: for (;;) {
+ if (p = g >>> 24, f >>>= p, c -= p, p = g >>> 16 & 255, !(16 & p)) {
+ if (0 == (64 & p)) {
+ g = w[(65535 & g) + (f & (1 << p) - 1)];
+ continue a
+ }
+ t.msg = "invalid distance code", E.mode = he;
+ break t
+ }
+ if (v = 65535 & g, p &= 15, c < p && (f += z[a++] << c, c += 8, c < p && (f += z[a++] << c, c += 8)), v += f & (1 << p) - 1, v > o) {
+ t.msg = "invalid distance too far back", E.mode = he;
+ break t
+ }
+ if (f >>>= p, c -= p, p = n - s, v > p) {
+ if (p = v - p, p > h && E.sane) {
+ t.msg = "invalid distance too far back", E.mode = he;
+ break t
+ }
+ if (y = 0, x = _, 0 === d) {
+ if (y += l - p, p < k) {
+ k -= p;
+ do {
+ A[n++] = _[y++]
+ } while (--p);
+ y = n - v, x = A
+ }
+ } else if (d < p) {
+ if (y += l + d - p, p -= d, p < k) {
+ k -= p;
+ do {
+ A[n++] = _[y++]
+ } while (--p);
+ if (y = 0, d < k) {
+ p = d, k -= p;
+ do {
+ A[n++] = _[y++]
+ } while (--p);
+ y = n - v, x = A
+ }
+ }
+ } else if (y += d - p, p < k) {
+ k -= p;
+ do {
+ A[n++] = _[y++]
+ } while (--p);
+ y = n - v, x = A
+ }
+ for (; k > 2;) A[n++] = x[y++], A[n++] = x[y++], A[n++] = x[y++], k -= 3;
+ k && (A[n++] = x[y++], k > 1 && (A[n++] = x[y++]))
+ } else {
+ y = n - v;
+ do {
+ A[n++] = A[y++], A[n++] = A[y++], A[n++] = A[y++], k -= 3
+ } while (k > 2);
+ k && (A[n++] = A[y++], k > 1 && (A[n++] = A[y++]))
+ }
+ break
+ }
+ }
+ break
+ }
+ } while (a < i && n < r);
+ k = c >> 3, a -= k, c -= k << 3, f &= (1 << c) - 1, t.next_in = a, t.next_out = n, t.avail_in = a < i ? i - a + 5 : 5 - (a - i), t.avail_out = n < r ? r - n + 257 : 257 - (n - r), E.hold = f, E.bits = c
+ };
+ const _e = 15,
+ fe = new Uint16Array([3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0]),
+ ce = new Uint8Array([16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78]),
+ ue = new Uint16Array([1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0]),
+ we = new Uint8Array([16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64]);
+ var me = (t, e, a, i, n, s, r, o) => {
+ const l = o.bits;
+ let h, d, _, f, c, u, w = 0,
+ m = 0,
+ b = 0,
+ g = 0,
+ p = 0,
+ k = 0,
+ v = 0,
+ y = 0,
+ x = 0,
+ z = 0,
+ A = null;
+ const E = new Uint16Array(16),
+ R = new Uint16Array(16);
+ let Z, U, S, D = null;
+ for (w = 0; w <= _e; w++) E[w] = 0;
+ for (m = 0; m < i; m++) E[e[a + m]]++;
+ for (p = l, g = _e; g >= 1 && 0 === E[g]; g--);
+ if (p > g && (p = g), 0 === g) return n[s++] = 20971520, n[s++] = 20971520, o.bits = 1, 0;
+ for (b = 1; b < g && 0 === E[b]; b++);
+ for (p < b && (p = b), y = 1, w = 1; w <= _e; w++)
+ if (y <<= 1, y -= E[w], y < 0) return -1;
+ if (y > 0 && (0 === t || 1 !== g)) return -1;
+ for (R[1] = 0, w = 1; w < _e; w++) R[w + 1] = R[w] + E[w];
+ for (m = 0; m < i; m++) 0 !== e[a + m] && (r[R[e[a + m]]++] = m);
+ if (0 === t ? (A = D = r, u = 20) : 1 === t ? (A = fe, D = ce, u = 257) : (A = ue, D = we, u = 0), z = 0, m = 0, w = b, c = s, k = p, v = 0, _ = -1, x = 1 << p, f = x - 1, 1 === t && x > 852 || 2 === t && x > 592) return 1;
+ for (;;) {
+ Z = w - v, r[m] + 1 < u ? (U = 0, S = r[m]) : r[m] >= u ? (U = D[r[m] - u], S = A[r[m] - u]) : (U = 96, S = 0), h = 1 << w - v, d = 1 << k, b = d;
+ do {
+ d -= h, n[c + (z >> v) + d] = Z << 24 | U << 16 | S | 0
+ } while (0 !== d);
+ for (h = 1 << w - 1; z & h;) h >>= 1;
+ if (0 !== h ? (z &= h - 1, z += h) : z = 0, m++, 0 == --E[w]) {
+ if (w === g) break;
+ w = e[a + r[m]]
+ }
+ if (w > p && (z & f) !== _) {
+ for (0 === v && (v = p), c += b, k = w - v, y = 1 << k; k + v < g && (y -= E[k + v], !(y <= 0));) k++, y <<= 1;
+ if (x += 1 << k, 1 === t && x > 852 || 2 === t && x > 592) return 1;
+ _ = z & f, n[_] = p << 24 | k << 16 | c - s | 0
+ }
+ }
+ return 0 !== z && (n[c + z] = w - v << 24 | 64 << 16 | 0), o.bits = p, 0
+ };
+ const {
+ Z_FINISH: be,
+ Z_BLOCK: ge,
+ Z_TREES: pe,
+ Z_OK: ke,
+ Z_STREAM_END: ve,
+ Z_NEED_DICT: ye,
+ Z_STREAM_ERROR: xe,
+ Z_DATA_ERROR: ze,
+ Z_MEM_ERROR: Ae,
+ Z_BUF_ERROR: Ee,
+ Z_DEFLATED: Re
+ } = K, Ze = 16180, Ue = 16190, Se = 16191, De = 16192, Te = 16194, Oe = 16199, Ie = 16200, Fe = 16206, Le = 16209, Ne = t => (t >>> 24 & 255) + (t >>> 8 & 65280) + ((65280 & t) << 8) + ((255 & t) << 24);
+
+ function Be() {
+ this.strm = null, this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new Uint16Array(320), this.work = new Uint16Array(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0
+ }
+ const Ce = t => {
+ if (!t) return 1;
+ const e = t.state;
+ return !e || e.strm !== t || e.mode < Ze || e.mode > 16211 ? 1 : 0
+ },
+ Me = t => {
+ if (Ce(t)) return xe;
+ const e = t.state;
+ return t.total_in = t.total_out = e.total = 0, t.msg = "", e.wrap && (t.adler = 1 & e.wrap), e.mode = Ze, e.last = 0, e.havedict = 0, e.flags = -1, e.dmax = 32768, e.head = null, e.hold = 0, e.bits = 0, e.lencode = e.lendyn = new Int32Array(852), e.distcode = e.distdyn = new Int32Array(592), e.sane = 1, e.back = -1, ke
+ },
+ He = t => {
+ if (Ce(t)) return xe;
+ const e = t.state;
+ return e.wsize = 0, e.whave = 0, e.wnext = 0, Me(t)
+ },
+ je = (t, e) => {
+ let a;
+ if (Ce(t)) return xe;
+ const i = t.state;
+ return e < 0 ? (a = 0, e = -e) : (a = 5 + (e >> 4), e < 48 && (e &= 15)), e && (e < 8 || e > 15) ? xe : (null !== i.window && i.wbits !== e && (i.window = null), i.wrap = a, i.wbits = e, He(t))
+ },
+ Ke = (t, e) => {
+ if (!t) return xe;
+ const a = new Be;
+ t.state = a, a.strm = t, a.window = null, a.mode = Ze;
+ const i = je(t, e);
+ return i !== ke && (t.state = null), i
+ };
+ let Pe, Ye, Ge = !0;
+ const Xe = t => {
+ if (Ge) {
+ Pe = new Int32Array(512), Ye = new Int32Array(32);
+ let e = 0;
+ for (; e < 144;) t.lens[e++] = 8;
+ for (; e < 256;) t.lens[e++] = 9;
+ for (; e < 280;) t.lens[e++] = 7;
+ for (; e < 288;) t.lens[e++] = 8;
+ for (me(1, t.lens, 0, 288, Pe, 0, t.work, {
+ bits: 9
+ }), e = 0; e < 32;) t.lens[e++] = 5;
+ me(2, t.lens, 0, 32, Ye, 0, t.work, {
+ bits: 5
+ }), Ge = !1
+ }
+ t.lencode = Pe, t.lenbits = 9, t.distcode = Ye, t.distbits = 5
+ },
+ We = (t, e, a, i) => {
+ let n;
+ const s = t.state;
+ return null === s.window && (s.wsize = 1 << s.wbits, s.wnext = 0, s.whave = 0, s.window = new Uint8Array(s.wsize)), i >= s.wsize ? (s.window.set(e.subarray(a - s.wsize, a), 0), s.wnext = 0, s.whave = s.wsize) : (n = s.wsize - s.wnext, n > i && (n = i), s.window.set(e.subarray(a - i, a - i + n), s.wnext), (i -= n) ? (s.window.set(e.subarray(a - i, a), 0), s.wnext = i, s.whave = s.wsize) : (s.wnext += n, s.wnext === s.wsize && (s.wnext = 0), s.whave < s.wsize && (s.whave += n))), 0
+ };
+ var qe = {
+ inflateReset: He,
+ inflateReset2: je,
+ inflateResetKeep: Me,
+ inflateInit: t => Ke(t, 15),
+ inflateInit2: Ke,
+ inflate: (t, e) => {
+ let a, i, n, s, r, o, l, h, d, _, f, c, u, w, m, b, g, p, k, v, y, x, z = 0;
+ const A = new Uint8Array(4);
+ let E, R;
+ const Z = new Uint8Array([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]);
+ if (Ce(t) || !t.output || !t.input && 0 !== t.avail_in) return xe;
+ a = t.state, a.mode === Se && (a.mode = De), r = t.next_out, n = t.output, l = t.avail_out, s = t.next_in, i = t.input, o = t.avail_in, h = a.hold, d = a.bits, _ = o, f = l, x = ke;
+ t: for (;;) switch (a.mode) {
+ case Ze:
+ if (0 === a.wrap) {
+ a.mode = De;
+ break
+ }
+ for (; d < 16;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if (2 & a.wrap && 35615 === h) {
+ 0 === a.wbits && (a.wbits = 15), a.check = 0, A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0), h = 0, d = 0, a.mode = 16181;
+ break
+ }
+ if (a.head && (a.head.done = !1), !(1 & a.wrap) || (((255 & h) << 8) + (h >> 8)) % 31) {
+ t.msg = "incorrect header check", a.mode = Le;
+ break
+ }
+ if ((15 & h) !== Re) {
+ t.msg = "unknown compression method", a.mode = Le;
+ break
+ }
+ if (h >>>= 4, d -= 4, y = 8 + (15 & h), 0 === a.wbits && (a.wbits = y), y > 15 || y > a.wbits) {
+ t.msg = "invalid window size", a.mode = Le;
+ break
+ }
+ a.dmax = 1 << a.wbits, a.flags = 0, t.adler = a.check = 1, a.mode = 512 & h ? 16189 : Se, h = 0, d = 0;
+ break;
+ case 16181:
+ for (; d < 16;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if (a.flags = h, (255 & a.flags) !== Re) {
+ t.msg = "unknown compression method", a.mode = Le;
+ break
+ }
+ if (57344 & a.flags) {
+ t.msg = "unknown header flags set", a.mode = Le;
+ break
+ }
+ a.head && (a.head.text = h >> 8 & 1), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0)), h = 0, d = 0, a.mode = 16182;
+ case 16182:
+ for (; d < 32;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ a.head && (a.head.time = h), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, A[2] = h >>> 16 & 255, A[3] = h >>> 24 & 255, a.check = H(a.check, A, 4, 0)), h = 0, d = 0, a.mode = 16183;
+ case 16183:
+ for (; d < 16;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ a.head && (a.head.xflags = 255 & h, a.head.os = h >> 8), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0)), h = 0, d = 0, a.mode = 16184;
+ case 16184:
+ if (1024 & a.flags) {
+ for (; d < 16;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ a.length = h, a.head && (a.head.extra_len = h), 512 & a.flags && 4 & a.wrap && (A[0] = 255 & h, A[1] = h >>> 8 & 255, a.check = H(a.check, A, 2, 0)), h = 0, d = 0
+ } else a.head && (a.head.extra = null);
+ a.mode = 16185;
+ case 16185:
+ if (1024 & a.flags && (c = a.length, c > o && (c = o), c && (a.head && (y = a.head.extra_len - a.length, a.head.extra || (a.head.extra = new Uint8Array(a.head.extra_len)), a.head.extra.set(i.subarray(s, s + c), y)), 512 & a.flags && 4 & a.wrap && (a.check = H(a.check, i, c, s)), o -= c, s += c, a.length -= c), a.length)) break t;
+ a.length = 0, a.mode = 16186;
+ case 16186:
+ if (2048 & a.flags) {
+ if (0 === o) break t;
+ c = 0;
+ do {
+ y = i[s + c++], a.head && y && a.length < 65536 && (a.head.name += String.fromCharCode(y))
+ } while (y && c < o);
+ if (512 & a.flags && 4 & a.wrap && (a.check = H(a.check, i, c, s)), o -= c, s += c, y) break t
+ } else a.head && (a.head.name = null);
+ a.length = 0, a.mode = 16187;
+ case 16187:
+ if (4096 & a.flags) {
+ if (0 === o) break t;
+ c = 0;
+ do {
+ y = i[s + c++], a.head && y && a.length < 65536 && (a.head.comment += String.fromCharCode(y))
+ } while (y && c < o);
+ if (512 & a.flags && 4 & a.wrap && (a.check = H(a.check, i, c, s)), o -= c, s += c, y) break t
+ } else a.head && (a.head.comment = null);
+ a.mode = 16188;
+ case 16188:
+ if (512 & a.flags) {
+ for (; d < 16;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if (4 & a.wrap && h !== (65535 & a.check)) {
+ t.msg = "header crc mismatch", a.mode = Le;
+ break
+ }
+ h = 0, d = 0
+ }
+ a.head && (a.head.hcrc = a.flags >> 9 & 1, a.head.done = !0), t.adler = a.check = 0, a.mode = Se;
+ break;
+ case 16189:
+ for (; d < 32;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ t.adler = a.check = Ne(h), h = 0, d = 0, a.mode = Ue;
+ case Ue:
+ if (0 === a.havedict) return t.next_out = r, t.avail_out = l, t.next_in = s, t.avail_in = o, a.hold = h, a.bits = d, ye;
+ t.adler = a.check = 1, a.mode = Se;
+ case Se:
+ if (e === ge || e === pe) break t;
+ case De:
+ if (a.last) {
+ h >>>= 7 & d, d -= 7 & d, a.mode = Fe;
+ break
+ }
+ for (; d < 3;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ switch (a.last = 1 & h, h >>>= 1, d -= 1, 3 & h) {
+ case 0:
+ a.mode = 16193;
+ break;
+ case 1:
+ if (Xe(a), a.mode = Oe, e === pe) {
+ h >>>= 2, d -= 2;
+ break t
+ }
+ break;
+ case 2:
+ a.mode = 16196;
+ break;
+ case 3:
+ t.msg = "invalid block type", a.mode = Le
+ }
+ h >>>= 2, d -= 2;
+ break;
+ case 16193:
+ for (h >>>= 7 & d, d -= 7 & d; d < 32;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if ((65535 & h) != (h >>> 16 ^ 65535)) {
+ t.msg = "invalid stored block lengths", a.mode = Le;
+ break
+ }
+ if (a.length = 65535 & h, h = 0, d = 0, a.mode = Te, e === pe) break t;
+ case Te:
+ a.mode = 16195;
+ case 16195:
+ if (c = a.length, c) {
+ if (c > o && (c = o), c > l && (c = l), 0 === c) break t;
+ n.set(i.subarray(s, s + c), r), o -= c, s += c, l -= c, r += c, a.length -= c;
+ break
+ }
+ a.mode = Se;
+ break;
+ case 16196:
+ for (; d < 14;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if (a.nlen = 257 + (31 & h), h >>>= 5, d -= 5, a.ndist = 1 + (31 & h), h >>>= 5, d -= 5, a.ncode = 4 + (15 & h), h >>>= 4, d -= 4, a.nlen > 286 || a.ndist > 30) {
+ t.msg = "too many length or distance symbols", a.mode = Le;
+ break
+ }
+ a.have = 0, a.mode = 16197;
+ case 16197:
+ for (; a.have < a.ncode;) {
+ for (; d < 3;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ a.lens[Z[a.have++]] = 7 & h, h >>>= 3, d -= 3
+ }
+ for (; a.have < 19;) a.lens[Z[a.have++]] = 0;
+ if (a.lencode = a.lendyn, a.lenbits = 7, E = {
+ bits: a.lenbits
+ }, x = me(0, a.lens, 0, 19, a.lencode, 0, a.work, E), a.lenbits = E.bits, x) {
+ t.msg = "invalid code lengths set", a.mode = Le;
+ break
+ }
+ a.have = 0, a.mode = 16198;
+ case 16198:
+ for (; a.have < a.nlen + a.ndist;) {
+ for (; z = a.lencode[h & (1 << a.lenbits) - 1], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(m <= d);) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if (g < 16) h >>>= m, d -= m, a.lens[a.have++] = g;
+ else {
+ if (16 === g) {
+ for (R = m + 2; d < R;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if (h >>>= m, d -= m, 0 === a.have) {
+ t.msg = "invalid bit length repeat", a.mode = Le;
+ break
+ }
+ y = a.lens[a.have - 1], c = 3 + (3 & h), h >>>= 2, d -= 2
+ } else if (17 === g) {
+ for (R = m + 3; d < R;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ h >>>= m, d -= m, y = 0, c = 3 + (7 & h), h >>>= 3, d -= 3
+ } else {
+ for (R = m + 7; d < R;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ h >>>= m, d -= m, y = 0, c = 11 + (127 & h), h >>>= 7, d -= 7
+ }
+ if (a.have + c > a.nlen + a.ndist) {
+ t.msg = "invalid bit length repeat", a.mode = Le;
+ break
+ }
+ for (; c--;) a.lens[a.have++] = y
+ }
+ }
+ if (a.mode === Le) break;
+ if (0 === a.lens[256]) {
+ t.msg = "invalid code -- missing end-of-block", a.mode = Le;
+ break
+ }
+ if (a.lenbits = 9, E = {
+ bits: a.lenbits
+ }, x = me(1, a.lens, 0, a.nlen, a.lencode, 0, a.work, E), a.lenbits = E.bits, x) {
+ t.msg = "invalid literal/lengths set", a.mode = Le;
+ break
+ }
+ if (a.distbits = 6, a.distcode = a.distdyn, E = {
+ bits: a.distbits
+ }, x = me(2, a.lens, a.nlen, a.ndist, a.distcode, 0, a.work, E), a.distbits = E.bits, x) {
+ t.msg = "invalid distances set", a.mode = Le;
+ break
+ }
+ if (a.mode = Oe, e === pe) break t;
+ case Oe:
+ a.mode = Ie;
+ case Ie:
+ if (o >= 6 && l >= 258) {
+ t.next_out = r, t.avail_out = l, t.next_in = s, t.avail_in = o, a.hold = h, a.bits = d, de(t, f), r = t.next_out, n = t.output, l = t.avail_out, s = t.next_in, i = t.input, o = t.avail_in, h = a.hold, d = a.bits, a.mode === Se && (a.back = -1);
+ break
+ }
+ for (a.back = 0; z = a.lencode[h & (1 << a.lenbits) - 1], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(m <= d);) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if (b && 0 == (240 & b)) {
+ for (p = m, k = b, v = g; z = a.lencode[v + ((h & (1 << p + k) - 1) >> p)], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(p + m <= d);) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ h >>>= p, d -= p, a.back += p
+ }
+ if (h >>>= m, d -= m, a.back += m, a.length = g, 0 === b) {
+ a.mode = 16205;
+ break
+ }
+ if (32 & b) {
+ a.back = -1, a.mode = Se;
+ break
+ }
+ if (64 & b) {
+ t.msg = "invalid literal/length code", a.mode = Le;
+ break
+ }
+ a.extra = 15 & b, a.mode = 16201;
+ case 16201:
+ if (a.extra) {
+ for (R = a.extra; d < R;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ a.length += h & (1 << a.extra) - 1, h >>>= a.extra, d -= a.extra, a.back += a.extra
+ }
+ a.was = a.length, a.mode = 16202;
+ case 16202:
+ for (; z = a.distcode[h & (1 << a.distbits) - 1], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(m <= d);) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if (0 == (240 & b)) {
+ for (p = m, k = b, v = g; z = a.distcode[v + ((h & (1 << p + k) - 1) >> p)], m = z >>> 24, b = z >>> 16 & 255, g = 65535 & z, !(p + m <= d);) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ h >>>= p, d -= p, a.back += p
+ }
+ if (h >>>= m, d -= m, a.back += m, 64 & b) {
+ t.msg = "invalid distance code", a.mode = Le;
+ break
+ }
+ a.offset = g, a.extra = 15 & b, a.mode = 16203;
+ case 16203:
+ if (a.extra) {
+ for (R = a.extra; d < R;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ a.offset += h & (1 << a.extra) - 1, h >>>= a.extra, d -= a.extra, a.back += a.extra
+ }
+ if (a.offset > a.dmax) {
+ t.msg = "invalid distance too far back", a.mode = Le;
+ break
+ }
+ a.mode = 16204;
+ case 16204:
+ if (0 === l) break t;
+ if (c = f - l, a.offset > c) {
+ if (c = a.offset - c, c > a.whave && a.sane) {
+ t.msg = "invalid distance too far back", a.mode = Le;
+ break
+ }
+ c > a.wnext ? (c -= a.wnext, u = a.wsize - c) : u = a.wnext - c, c > a.length && (c = a.length), w = a.window
+ } else w = n, u = r - a.offset, c = a.length;
+ c > l && (c = l), l -= c, a.length -= c;
+ do {
+ n[r++] = w[u++]
+ } while (--c);
+ 0 === a.length && (a.mode = Ie);
+ break;
+ case 16205:
+ if (0 === l) break t;
+ n[r++] = a.length, l--, a.mode = Ie;
+ break;
+ case Fe:
+ if (a.wrap) {
+ for (; d < 32;) {
+ if (0 === o) break t;
+ o--, h |= i[s++] << d, d += 8
+ }
+ if (f -= l, t.total_out += f, a.total += f, 4 & a.wrap && f && (t.adler = a.check = a.flags ? H(a.check, n, f, r - f) : C(a.check, n, f, r - f)), f = l, 4 & a.wrap && (a.flags ? h : Ne(h)) !== a.check) {
+ t.msg = "incorrect data check", a.mode = Le;
+ break
+ }
+ h = 0, d = 0
+ }
+ a.mode = 16207;
+ case 16207:
+ if (a.wrap && a.flags) {
+ for (; d < 32;) {
+ if (0 === o) break t;
+ o--, h += i[s++] << d, d += 8
+ }
+ if (4 & a.wrap && h !== (4294967295 & a.total)) {
+ t.msg = "incorrect length check", a.mode = Le;
+ break
+ }
+ h = 0, d = 0
+ }
+ a.mode = 16208;
+ case 16208:
+ x = ve;
+ break t;
+ case Le:
+ x = ze;
+ break t;
+ case 16210:
+ return Ae;
+ default:
+ return xe
+ }
+ return t.next_out = r, t.avail_out = l, t.next_in = s, t.avail_in = o, a.hold = h, a.bits = d, (a.wsize || f !== t.avail_out && a.mode < Le && (a.mode < Fe || e !== be)) && We(t, t.output, t.next_out, f - t.avail_out), _ -= t.avail_in, f -= t.avail_out, t.total_in += _, t.total_out += f, a.total += f, 4 & a.wrap && f && (t.adler = a.check = a.flags ? H(a.check, n, f, t.next_out - f) : C(a.check, n, f, t.next_out - f)), t.data_type = a.bits + (a.last ? 64 : 0) + (a.mode === Se ? 128 : 0) + (a.mode === Oe || a.mode === Te ? 256 : 0), (0 === _ && 0 === f || e === be) && x === ke && (x = Ee), x
+ },
+ inflateEnd: t => {
+ if (Ce(t)) return xe;
+ let e = t.state;
+ return e.window && (e.window = null), t.state = null, ke
+ },
+ inflateGetHeader: (t, e) => {
+ if (Ce(t)) return xe;
+ const a = t.state;
+ return 0 == (2 & a.wrap) ? xe : (a.head = e, e.done = !1, ke)
+ },
+ inflateSetDictionary: (t, e) => {
+ const a = e.length;
+ let i, n, s;
+ return Ce(t) ? xe : (i = t.state, 0 !== i.wrap && i.mode !== Ue ? xe : i.mode === Ue && (n = 1, n = C(n, e, a, 0), n !== i.check) ? ze : (s = We(t, e, a, a), s ? (i.mode = 16210, Ae) : (i.havedict = 1, ke)))
+ },
+ inflateInfo: "pako inflate (from Nodeca project)"
+ };
+ var Je = function() {
+ this.text = 0, this.time = 0, this.xflags = 0, this.os = 0, this.extra = null, this.extra_len = 0, this.name = "", this.comment = "", this.hcrc = 0, this.done = !1
+ };
+ const Qe = Object.prototype.toString,
+ {
+ Z_NO_FLUSH: Ve,
+ Z_FINISH: $e,
+ Z_OK: ta,
+ Z_STREAM_END: ea,
+ Z_NEED_DICT: aa,
+ Z_STREAM_ERROR: ia,
+ Z_DATA_ERROR: na,
+ Z_MEM_ERROR: sa
+ } = K;
+
+ function ra(t) {
+ this.options = jt({
+ chunkSize: 65536,
+ windowBits: 15,
+ to: ""
+ }, t || {});
+ const e = this.options;
+ e.raw && e.windowBits >= 0 && e.windowBits < 16 && (e.windowBits = -e.windowBits, 0 === e.windowBits && (e.windowBits = -15)), !(e.windowBits >= 0 && e.windowBits < 16) || t && t.windowBits || (e.windowBits += 32), e.windowBits > 15 && e.windowBits < 48 && 0 == (15 & e.windowBits) && (e.windowBits |= 15), this.err = 0, this.msg = "", this.ended = !1, this.chunks = [], this.strm = new qt, this.strm.avail_out = 0;
+ let a = qe.inflateInit2(this.strm, e.windowBits);
+ if (a !== ta) throw new Error(j[a]);
+ if (this.header = new Je, qe.inflateGetHeader(this.strm, this.header), e.dictionary && ("string" == typeof e.dictionary ? e.dictionary = Gt(e.dictionary) : "[object ArrayBuffer]" === Qe.call(e.dictionary) && (e.dictionary = new Uint8Array(e.dictionary)), e.raw && (a = qe.inflateSetDictionary(this.strm, e.dictionary), a !== ta))) throw new Error(j[a])
+ }
+
+ function oa(t, e) {
+ const a = new ra(e);
+ if (a.push(t), a.err) throw a.msg || j[a.err];
+ return a.result
+ }
+ ra.prototype.push = function(t, e) {
+ const a = this.strm,
+ i = this.options.chunkSize,
+ n = this.options.dictionary;
+ let s, r, o;
+ if (this.ended) return !1;
+ for (r = e === ~~e ? e : !0 === e ? $e : Ve, "[object ArrayBuffer]" === Qe.call(t) ? a.input = new Uint8Array(t) : a.input = t, a.next_in = 0, a.avail_in = a.input.length;;) {
+ for (0 === a.avail_out && (a.output = new Uint8Array(i), a.next_out = 0, a.avail_out = i), s = qe.inflate(a, r), s === aa && n && (s = qe.inflateSetDictionary(a, n), s === ta ? s = qe.inflate(a, r) : s === na && (s = aa)); a.avail_in > 0 && s === ea && a.state.wrap > 0 && 0 !== t[a.next_in];) qe.inflateReset(a), s = qe.inflate(a, r);
+ switch (s) {
+ case ia:
+ case na:
+ case aa:
+ case sa:
+ return this.onEnd(s), this.ended = !0, !1
+ }
+ if (o = a.avail_out, a.next_out && (0 === a.avail_out || s === ea))
+ if ("string" === this.options.to) {
+ let t = Wt(a.output, a.next_out),
+ e = a.next_out - t,
+ n = Xt(a.output, t);
+ a.next_out = e, a.avail_out = i - e, e && a.output.set(a.output.subarray(t, t + e), 0), this.onData(n)
+ } else this.onData(a.output.length === a.next_out ? a.output : a.output.subarray(0, a.next_out));
+ if (s !== ta || 0 !== o) {
+ if (s === ea) return s = qe.inflateEnd(this.strm), this.onEnd(s), this.ended = !0, !0;
+ if (0 === a.avail_in) break
+ }
+ }
+ return !0
+ }, ra.prototype.onData = function(t) {
+ this.chunks.push(t)
+ }, ra.prototype.onEnd = function(t) {
+ t === ta && ("string" === this.options.to ? this.result = this.chunks.join("") : this.result = Kt(this.chunks)), this.chunks = [], this.err = t, this.msg = this.strm.msg
+ };
+ var la = {
+ Inflate: ra,
+ inflate: oa,
+ inflateRaw: function(t, e) {
+ return (e = e || {}).raw = !0, oa(t, e)
+ },
+ ungzip: oa,
+ constants: K
+ };
+ const {
+ Deflate: ha,
+ deflate: da,
+ deflateRaw: _a,
+ gzip: fa
+ } = le, {
+ Inflate: ca,
+ inflate: ua,
+ inflateRaw: wa,
+ ungzip: ma
+ } = la;
+ var ba = ha,
+ ga = da,
+ pa = _a,
+ ka = fa,
+ va = ca,
+ ya = ua,
+ xa = wa,
+ za = ma,
+ Aa = K,
+ Ea = {
+ Deflate: ba,
+ deflate: ga,
+ deflateRaw: pa,
+ gzip: ka,
+ Inflate: va,
+ inflate: ya,
+ inflateRaw: xa,
+ ungzip: za,
+ constants: Aa
+ };
+ t.Deflate = ba, t.Inflate = va, t.constants = Aa, t.default = Ea, t.deflate = ga, t.deflateRaw = pa, t.gzip = ka, t.inflate = ya, t.inflateRaw = xa, t.ungzip = za, Object.defineProperty(t, "__esModule", {
+ value: !0
+ })
+}));
\ No newline at end of file
diff --git a/JS/quark.min.js b/JS/quark.min.js
new file mode 100644
index 0000000..9a165c6
--- /dev/null
+++ b/JS/quark.min.js
@@ -0,0 +1,3057 @@
+import cheerio from "assets://js/lib/cheerio.min.js";
+import "assets://js/lib/crypto-js.js";
+import "./jsencrypt.js";
+import "./node-rsa.js";
+import "./pako.min.js";
+import 模板 from "./模板.js";
+import {
+ gbkTool
+} from "./gbk.js";
+import "./json5.js";
+import "./jinja.js";
+const _jinja2 = cheerio.jinja2;
+cheerio.jinja2 = function(template, obj) {
+ try {
+ return jinja.render(template, obj)
+ } catch (e) {
+ console.log("新的jinja2库渲染失败,换回原始cheerio:" + e.message);
+ return _jinja2(template, obj)
+ }
+};
+let vercode = typeof pdfl === "function" ? "drpy2.1" : "drpy2";
+const VERSION = vercode + " 3.9.51beta5 20241104";
+const UpdateInfo = [{
+ date: "20241104",
+ title: "drpy更新,增加新特性",
+ version: "3.9.51beta5 20241104",
+ msg: `
+ 1. rule增加 搜索验证标识 属性,可以不定义,默认为 '系统安全验证|请输入验证码'
+ 2. rule增加 searchNoPage 属性,可以不定义,如果定义 1 将关闭该源的搜索翻页功能,超过1页直接返回空
+ `
+}];
+
+function getUpdateInfo() {
+ return UpdateInfo.map(_o => {
+ _o.msg = _o.msg.trim().split("\n").map(_it => _it.trim()).join("\n");
+ return _o
+ })
+}
+
+function init_test() {
+ console.log("init_test_start");
+ console.log("当前版本号:" + VERSION);
+ console.log("本地代理地址:" + getProxyUrl());
+ console.log(RKEY);
+ console.log(JSON.stringify(rule));
+ console.log("init_test_end")
+}
+
+function ocr_demo_test() {
+ let img_base64 = `iVBORw0KGgoAAAANSUhEUgAAAIAAAAAoBAMAAADEX+97AAAAG1BMVEXz+/4thQTa7N6QwIFFkyNeokKozqDB3b93sWHFR+MEAAAACXBIWXMAAA7EAAAOxAGVKw4bAAABN0lEQVRIie2TQU+DQBCFt9vScvQpxR4xrcSjJCZ67JDGXsX+AdR4B3vpsSYm/m2HXaRLmuySepR3Gdidb/btDAjRq5dT96eCMlfBuzi1QLZUoZy2yz5sOvI+9iomaPEZ6nWnEtxqIyiM1RcAy44GNDhBXUjot/VVNweV1ah68FqWRyjKIOqAcyYF6rGcmpYnHzGt3fycNoMw0d3/THFu7hFSJ/8OXO6iTM8/KSg09obAzIHLO250LgQ0txOZSfgrV4Exdw98uGycJ0ErAeExZGhOmFHV9zHO6qVSj0MpLq7xZON56o++MjlsEgfVhbQWWME+xQX7J4V6zfi9A1Ly9rP1BvEXp+BbVJ/M77n+wfOIDVp51pZ4iBxvmj9AGrtvry6emwfKnVkW+ZRKd5ZNMvob36vXP9YPDmQki8QiCFAAAAAASUVORK5CYII=`;
+ OcrApi.api = OCR_API;
+ let code = OcrApi.classification(img_base64);
+ log("测试验证码图片的ocr识别结果为:" + code)
+}
+
+function rsa_demo_test() {
+ let t1 = (new Date).getTime();
+ let pkcs1_public = `
+-----BEGIN RSA PUBLIC KEY-----
+MEgCQQCrI0pQ/ERRpJ3Ou190XJedFq846nDYP52rOtXyDxlFK5D3p6JJu2RwsKwy
+lsQ9xY0xYPpRZUZKMEeR7e9gmRNLAgMBAAE=
+-----END RSA PUBLIC KEY-----
+`.trim();
+ let pkcs1_public_pem = `
+MEgCQQCrI0pQ/ERRpJ3Ou190XJedFq846nDYP52rOtXyDxlFK5D3p6JJu2RwsKwy
+lsQ9xY0xYPpRZUZKMEeR7e9gmRNLAgMBAAE=
+`.trim();
+ let pkcs8_public = `
+-----BEGIN PUBLIC KEY-----
+MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKsjSlD8RFGknc67X3Rcl50WrzjqcNg/
+nas61fIPGUUrkPenokm7ZHCwrDKWxD3FjTFg+lFlRkowR5Ht72CZE0sCAwEAAQ==
+-----END PUBLIC KEY-----`.trim();
+ let pkcs8_public_pem = `
+MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAKsjSlD8RFGknc67X3Rcl50WrzjqcNg/
+nas61fIPGUUrkPenokm7ZHCwrDKWxD3FjTFg+lFlRkowR5Ht72CZE0sCAwEAAQ==
+`.trim();
+ let pkcs1_private = `
+-----BEGIN RSA PRIVATE KEY-----
+MIIBOAIBAAJBAKsjSlD8RFGknc67X3Rcl50WrzjqcNg/nas61fIPGUUrkPenokm7
+ZHCwrDKWxD3FjTFg+lFlRkowR5Ht72CZE0sCAwEAAQI/b6OV1z65UokQaMvSeRXt
+0Yv6wiYtduQI9qpq5nzy/ytaqsbBfClNTi/HifKPKxlRouWFkc518EQI8LBxoarJ
+AiEA4DaONMplV8PQNa3TKn2F+SDEvLOCjdL0kHKdN90Ti28CIQDDZnTBaHgZwZbA
+hS7Bbf5yvwjWMhO6Y7l04/Qm7R+35QIgPuQuqXIoUSD080mp1N5WyRW++atksIF+
+5lGv9e6GP/MCICnj8y/rl6Pd7tXDN6zcSeqLrfdNsREKhB3dKOCXgW9JAiAFYtFS
+EJNBXVRTK42SNsZ2hJ/9xLwOwnH2epT8Q43s3Q==
+-----END RSA PRIVATE KEY-----
+`.trim();
+ let pkcs8_private = `
+-----BEGIN PRIVATE KEY-----
+MIIBUgIBADANBgkqhkiG9w0BAQEFAASCATwwggE4AgEAAkEAqyNKUPxEUaSdzrtf
+dFyXnRavOOpw2D+dqzrV8g8ZRSuQ96eiSbtkcLCsMpbEPcWNMWD6UWVGSjBHke3v
+YJkTSwIDAQABAj9vo5XXPrlSiRBoy9J5Fe3Ri/rCJi125Aj2qmrmfPL/K1qqxsF8
+KU1OL8eJ8o8rGVGi5YWRznXwRAjwsHGhqskCIQDgNo40ymVXw9A1rdMqfYX5IMS8
+s4KN0vSQcp033ROLbwIhAMNmdMFoeBnBlsCFLsFt/nK/CNYyE7pjuXTj9CbtH7fl
+AiA+5C6pcihRIPTzSanU3lbJFb75q2SwgX7mUa/17oY/8wIgKePzL+uXo93u1cM3
+rNxJ6out902xEQqEHd0o4JeBb0kCIAVi0VIQk0FdVFMrjZI2xnaEn/3EvA7CcfZ6
+lPxDjezd
+-----END PRIVATE KEY-----
+`.trim();
+ let data = `
+NodeRsa
+这是node-rsa 现在修改集成在drpy里使用`.trim();
+ let encryptedWithPublic = NODERSA.encryptRSAWithPublicKey(data, pkcs1_public, {
+ outputEncoding: "base64",
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1_oaep"
+ }
+ });
+ console.log("公钥加密");
+ console.log(encryptedWithPublic);
+ let decryptedWithPrivate = NODERSA.decryptRSAWithPrivateKey(encryptedWithPublic, pkcs1_private, {
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1_oaep"
+ }
+ });
+ console.log("私钥解密");
+ console.log(decryptedWithPrivate);
+ let pkcs1_sha256_sign = NODERSA.sign("1", pkcs1_private, {
+ outputEncoding: "base64",
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1",
+ signingScheme: "pkcs1-sha256"
+ }
+ });
+ console.log("pkcs1_sha256_sign");
+ console.log(pkcs1_sha256_sign);
+ let pkcs1_sha256_sign_verify = NODERSA.verify("1", "Oulx2QrgeipKYBtqEDqFb2s/+ndk2cGQxO4CkhU7iBM1vyNmmvqubpsmeoUuN3waGrYZLknSEdwBkfv0tUMpFQ==", pkcs1_private, {
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1",
+ signingScheme: "pkcs1-sha256"
+ }
+ });
+ console.log("pkcs1_sha256_sign_verify");
+ console.log(pkcs1_sha256_sign_verify);
+ let pkcs1_oaep_sha256 = NODERSA.encryptRSAWithPublicKey(data, `-----BEGIN RSA PUBLIC KEY-----
+MIIBCgKCAQEA5KOq1gRNyllLNWKQy8sGpZE3Q1ULLSmzZw+eaAhj9lvqn7IsT1du
+SYn08FfoOA2qMwtz+1O2l1mgzNoSVCyVpVabnTG+C9XKeZXAnJHd8aYA7l7Sxhdm
+kte+iymYZ0ZBPzijo8938iugtVvqi9UgDmnY3u/NlQDqiL5BGqSxSTd/Sgmy3zD8
+PYzEa3wD9vehQ5fZZ45vKIq8GNVh2Z8+IGO85FF1OsN7+b2yGJa/FmDDNn0+HP+m
+PfI+kYBqEVpo0Ztbc3UdxgFwGC8O1n8AQyriwHnSOtIiuBH62J/7qyC/3LEAApRb
+Dd9YszqzmODjQUddZKHmvc638VW+azc0EwIDAQAB
+-----END RSA PUBLIC KEY-----
+`, {
+ outputEncoding: "base64",
+ options: {
+ environment: "browser",
+ encryptionScheme: {
+ scheme: "pkcs1_oaep",
+ hash: "sha256"
+ }
+ }
+ });
+ console.log("pkcs1_oaep_sha256");
+ console.log(pkcs1_oaep_sha256);
+ decryptedWithPrivate = NODERSA.decryptRSAWithPrivateKey("kSZesAAyYh2hdsQnYMdGqb6gKAzTauBKouvBzWcc4+F8RvGd0nwO6mVkUMVilPgUuNxjEauHayHiY8gI3Py45UI3+km0rSGyHrS6dHiHgCkMejXHieglYzAB0IxX3Jkm4z/66bdB/D+GFy0oct5fGCMI1UHPjEAYOsazJDa8lBFNbjiWFeb/qiZtIx3vGM7KYPAZzyRf/zPbbQ8zy9xOmRuOl5nnIxgo0Okp3KO/RIPO4GZOSBA8f2lx1UtNwwrXAMpcNavtoqHVcjJ/9lcotXYQFrn5b299pSIRf2gVm8ZJ31SK6Z8cc14nKtvgnmsgClDzIXJ1o1RcDK+knVAySg==", `-----BEGIN RSA PRIVATE KEY-----
+MIIEpAIBAAKCAQEA5KOq1gRNyllLNWKQy8sGpZE3Q1ULLSmzZw+eaAhj9lvqn7Is
+T1duSYn08FfoOA2qMwtz+1O2l1mgzNoSVCyVpVabnTG+C9XKeZXAnJHd8aYA7l7S
+xhdmkte+iymYZ0ZBPzijo8938iugtVvqi9UgDmnY3u/NlQDqiL5BGqSxSTd/Sgmy
+3zD8PYzEa3wD9vehQ5fZZ45vKIq8GNVh2Z8+IGO85FF1OsN7+b2yGJa/FmDDNn0+
+HP+mPfI+kYBqEVpo0Ztbc3UdxgFwGC8O1n8AQyriwHnSOtIiuBH62J/7qyC/3LEA
+ApRbDd9YszqzmODjQUddZKHmvc638VW+azc0EwIDAQABAoIBADZ/QGgUzInvsLp/
+zO2WbfYm39o/uhNAvk9RbLt1TIZbMFhyOpeKynHi3Swwd9xsfWX/U9zS/lGi/m31
+iKrhmaW4OA1G3vqpMcK7TBbFufYwUEaA+ZJX344euH8pIfdzyneMQ4z3Far2dS7l
+QsmjuilVV2kEFadveXewiYoVOWCu00w6bN8wy2SIHlQn+kIL6HQhWz12iKKflIKu
+eGRdzLHsKmBt6WbY1Wuhx7HU0fAKdlBDPxCHNlI+kybUYE9o5C2vJiaVM5wqJBgZ
+8Dz8kt1QbLJ910JoLXkLVQ8uC8NJKQwFtqQjTGPnEq0+wbgz6Ij599rKZkwW/xq9
+l6KoUiECgYEA6Ah42tVdkNW047f03xVYXFH96RgorHRS36mR8Y+ONUq1fwKidovC
+WjwVujt4OPf3l1W6iyn/F6cu/bsmvPrSc3HTN0B1V31QK4OjgetxQ2PSbTldH02J
+NPzkt+v+cPxXpx/P5mgt7Weefw5txU547KubGrHUV5rBKFtIx9pj16MCgYEA/EF0
+o19+D24DZAPwlDS5VbEd7FStnwY4oQ5PqbuNOSbSJLMWU0AqzXcRokp8UTyCZ0X3
+ATkS1REq97kShCuR+npTR6a6DlY7sdpPI1SMLNajgB2tkx0EOzX+PfNIbHUd4jpJ
+I0ZMAHv/OOtkzQHDaeTWBTrzsWm6/nTiykfduNECgYEA46AMD4HpPECqKAs66e5i
+tI6q7JSKskObWVdcmQEfnSAhVOwcvPb2Ptda6UuV8S0xcwDi88rLOUUFUFzc79+P
+vTkY38cYVi/VChsluDpk7ptqv0PbGu5Rf+3n4pZdEjI7OvR2W64wAAn67uIUxc7p
+yiO/ET0K9rYWb6S9jXGtKMkCgYEA2kPAqoO7zZoBMQ7/oR0lp/HC1HRIbiqx4RlC
+8Lgpb+QZPEwA6zPAVVvLVENi4d+bbcRp/xLlKpraNNJcJSSWAMbLPFoU7sbKjA87
+HnTPfRSTEA2d3Ibk3F7Rh8TzS3Ti0JZiJjVzGZAwu41iAMifzwaD8K6boUy80eNN
+QH2CaaECgYBUsLYvC/MiYg3w+LGOONuQongoVUXjGqnw2bjVa9RK7lwRdXPUqJ51
+MpVO98IkoLvGSI/0sGNP3GKNhC+eMGjJAVwFyEuOn+JsmMv9Y9uStIVi5tIHIhKw
+m7mp8il0kaftHdSxTbspG3tZ2fjIiFIZkLEOmRpd7ogWumgOajzUdA==
+-----END RSA PRIVATE KEY-----`, {
+ options: {
+ environment: "browser",
+ encryptionScheme: "pkcs1_oaep"
+ }
+ });
+ console.log("decryptedWithPrivate");
+ console.log(decryptedWithPrivate);
+ (() => {
+ let key = new NODERSA.NodeRSA({
+ b: 1024
+ });
+ key.setOptions({
+ encryptionScheme: "pkcs1"
+ });
+ let text = `你好drpy node-ras`;
+ let encrypted = key.encrypt(text, "base64");
+ console.log("encrypted: ", encrypted);
+ const decrypted = key.decrypt(encrypted, "utf8");
+ console.log("decrypted: ", decrypted)
+ })();
+ let t2 = (new Date).getTime();
+ console.log("rsa_demo_test 测试耗时:" + (t2 - t1) + "毫秒")
+}
+
+function pre() {
+ if (typeof rule.预处理 === "string" && rule.预处理 && rule.预处理.trim()) {
+ let code = rule.预处理.trim();
+ console.log("执行预处理代码:" + code);
+ if (code.startsWith("js:")) {
+ code = code.replace("js:", "")
+ }
+ try {
+ eval(code)
+ } catch (e) {
+ console.log(`预处理执行失败:${e.message}`)
+ }
+ }
+}
+let rule = {};
+const MOBILE_UA = "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36";
+const PC_UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36";
+const UA = "Mozilla/5.0";
+const UC_UA = "Mozilla/5.0 (Linux; U; Android 9; zh-CN; MI 9 Build/PKQ1.181121.001) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/57.0.2987.108 UCBrowser/12.5.5.1035 Mobile Safari/537.36";
+const IOS_UA = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";
+const RULE_CK = "cookie";
+const CATE_EXCLUDE = "首页|留言|APP|下载|资讯|新闻|动态";
+const TAB_EXCLUDE = "猜你|喜欢|下载|剧情|榜|评论";
+const OCR_RETRY = 3;
+const OCR_API = "https://api.nn.ci/ocr/b64/text";
+if (typeof MY_URL === "undefined") {
+ var MY_URL
+}
+var HOST;
+var RKEY;
+var fetch;
+var print;
+var log;
+var rule_fetch_params;
+var fetch_params;
+var oheaders;
+var _pdfh;
+var _pdfa;
+var _pd;
+const DOM_CHECK_ATTR = /(url|src|href|-original|-src|-play|-url|style)$/;
+const SPECIAL_URL = /^(ftp|magnet|thunder|ws):/;
+const NOADD_INDEX = /:eq|:lt|:gt|:first|:last|^body$|^#/;
+const URLJOIN_ATTR = /(url|src|href|-original|-src|-play|-url|style)$|^(data-|url-|src-)/;
+const SELECT_REGEX = /:eq|:lt|:gt|#/g;
+const SELECT_REGEX_A = /:eq|:lt|:gt/g;
+const $js = {
+ toString(func) {
+ let strfun = func.toString();
+ return strfun.replace(/^\(\)(\s+)?=>(\s+)?\{/, "js:").replace(/\}$/, "")
+ }
+};
+
+function window_b64() {
+ let b64map = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
+ let base64DecodeChars = new Array(-1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 62, -1, -1, -1, 63, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, -1, -1, -1, -1, -1, -1, -1, 0, 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, -1, -1, -1, -1, -1, -1, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, -1, -1, -1, -1, -1);
+
+ function btoa(str) {
+ var out, i, len;
+ var c1, c2, c3;
+ len = str.length;
+ i = 0;
+ out = "";
+ while (i < len) {
+ c1 = str.charCodeAt(i++) & 255;
+ if (i == len) {
+ out += b64map.charAt(c1 >> 2);
+ out += b64map.charAt((c1 & 3) << 4);
+ out += "==";
+ break
+ }
+ c2 = str.charCodeAt(i++);
+ if (i == len) {
+ out += b64map.charAt(c1 >> 2);
+ out += b64map.charAt((c1 & 3) << 4 | (c2 & 240) >> 4);
+ out += b64map.charAt((c2 & 15) << 2);
+ out += "=";
+ break
+ }
+ c3 = str.charCodeAt(i++);
+ out += b64map.charAt(c1 >> 2);
+ out += b64map.charAt((c1 & 3) << 4 | (c2 & 240) >> 4);
+ out += b64map.charAt((c2 & 15) << 2 | (c3 & 192) >> 6);
+ out += b64map.charAt(c3 & 63)
+ }
+ return out
+ }
+
+ function atob(str) {
+ var c1, c2, c3, c4;
+ var i, len, out;
+ len = str.length;
+ i = 0;
+ out = "";
+ while (i < len) {
+ do {
+ c1 = base64DecodeChars[str.charCodeAt(i++) & 255]
+ } while (i < len && c1 == -1);
+ if (c1 == -1) break;
+ do {
+ c2 = base64DecodeChars[str.charCodeAt(i++) & 255]
+ } while (i < len && c2 == -1);
+ if (c2 == -1) break;
+ out += String.fromCharCode(c1 << 2 | (c2 & 48) >> 4);
+ do {
+ c3 = str.charCodeAt(i++) & 255;
+ if (c3 == 61) return out;
+ c3 = base64DecodeChars[c3]
+ } while (i < len && c3 == -1);
+ if (c3 == -1) break;
+ out += String.fromCharCode((c2 & 15) << 4 | (c3 & 60) >> 2);
+ do {
+ c4 = str.charCodeAt(i++) & 255;
+ if (c4 == 61) return out;
+ c4 = base64DecodeChars[c4]
+ } while (i < len && c4 == -1);
+ if (c4 == -1) break;
+ out += String.fromCharCode((c3 & 3) << 6 | c4)
+ }
+ return out
+ }
+ return {
+ atob: atob,
+ btoa: btoa
+ }
+}
+if (typeof atob !== "function" || typeof btoa !== "function") {
+ var {
+ atob,
+ btoa
+ } = window_b64()
+}
+if (typeof Object.assign !== "function") {
+ Object.assign = function() {
+ let target = arguments[0];
+ for (let i = 1; i < arguments.length; i++) {
+ let source = arguments[i];
+ for (let key in source) {
+ if (Object.prototype.hasOwnProperty.call(source, key)) {
+ target[key] = source[key]
+ }
+ }
+ }
+ return target
+ }
+}
+if (!String.prototype.includes) {
+ String.prototype.includes = function(search, start) {
+ if (typeof start !== "number") {
+ start = 0
+ }
+ if (start + search.length > this.length) {
+ return false
+ } else {
+ return this.indexOf(search, start) !== -1
+ }
+ }
+}
+if (!Array.prototype.includes) {
+ Object.defineProperty(Array.prototype, "includes", {
+ value: function(searchElement, fromIndex) {
+ if (this == null) {
+ throw new TypeError('"this" is null or not defined')
+ }
+ var o = Object(this);
+ var len = o.length >>> 0;
+ if (len === 0) {
+ return false
+ }
+ var n = fromIndex | 0;
+ var k = Math.max(n >= 0 ? n : len - Math.abs(n), 0);
+ while (k < len) {
+ if (o[k] === searchElement) {
+ return true
+ }
+ k++
+ }
+ return false
+ },
+ enumerable: false
+ })
+}
+if (typeof String.prototype.startsWith !== "function") {
+ String.prototype.startsWith = function(prefix) {
+ return this.slice(0, prefix.length) === prefix
+ }
+}
+if (typeof String.prototype.endsWith !== "function") {
+ String.prototype.endsWith = function(suffix) {
+ return this.indexOf(suffix, this.length - suffix.length) !== -1
+ }
+}
+Object.defineProperty(Object.prototype, "myValues", {
+ value: function(obj) {
+ if (obj == null) {
+ throw new TypeError("Cannot convert undefined or null to object")
+ }
+ var res = [];
+ for (var k in obj) {
+ if (obj.hasOwnProperty(k)) {
+ res.push(obj[k])
+ }
+ }
+ return res
+ },
+ enumerable: false
+});
+if (typeof Object.prototype.values !== "function") {
+ Object.defineProperty(Object.prototype, "values", {
+ value: function(obj) {
+ if (obj == null) {
+ throw new TypeError("Cannot convert undefined or null to object")
+ }
+ var res = [];
+ for (var k in obj) {
+ if (obj.hasOwnProperty(k)) {
+ res.push(obj[k])
+ }
+ }
+ return res
+ },
+ enumerable: false
+ })
+}
+if (typeof Array.prototype.join !== "function") {
+ Object.defineProperty(Array.prototype, "join", {
+ value: function(emoji) {
+ emoji = emoji || "";
+ let self = this;
+ let str = "";
+ let i = 0;
+ if (!Array.isArray(self)) {
+ throw String(self) + "is not Array"
+ }
+ if (self.length === 0) {
+ return ""
+ }
+ if (self.length === 1) {
+ return String(self[0])
+ }
+ i = 1;
+ str = this[0];
+ for (; i < self.length; i++) {
+ str += String(emoji) + String(self[i])
+ }
+ return str
+ },
+ enumerable: false
+ })
+}
+if (typeof Array.prototype.toReversed !== "function") {
+ Object.defineProperty(Array.prototype, "toReversed", {
+ value: function() {
+ const clonedList = this.slice();
+ const reversedList = clonedList.reverse();
+ return reversedList
+ },
+ enumerable: false
+ })
+}
+Object.defineProperty(Array.prototype, "append", {
+ value: Array.prototype.push,
+ enumerable: false
+});
+Object.defineProperty(String.prototype, "strip", {
+ value: String.prototype.trim,
+ enumerable: false
+});
+Object.defineProperty(String.prototype, "rstrip", {
+ value: function(chars) {
+ let regex = new RegExp(chars + "$");
+ return this.replace(regex, "")
+ },
+ enumerable: false
+});
+
+function 是否正版(vipUrl) {
+ let flag = new RegExp("qq.com|iqiyi.com|youku.com|mgtv.com|bilibili.com|sohu.com|ixigua.com|pptv.com|miguvideo.com|le.com|1905.com|fun.tv");
+ return flag.test(vipUrl)
+}
+
+function urlDeal(vipUrl) {
+ if (!vipUrl) {
+ return ""
+ }
+ if (!是否正版(vipUrl)) {
+ return vipUrl
+ }
+ if (!/miguvideo/.test(vipUrl)) {
+ vipUrl = vipUrl.split("#")[0].split("?")[0]
+ }
+ return vipUrl
+}
+
+function setResult(d) {
+ if (!Array.isArray(d)) {
+ return []
+ }
+ VODS = [];
+ d.forEach(function(it) {
+ let obj = {
+ vod_id: it.url || "",
+ vod_name: it.title || "",
+ vod_remarks: it.desc || "",
+ vod_content: it.content || "",
+ vod_pic: it.pic_url || it.img || ""
+ };
+ let keys = Object.keys(it);
+ if (keys.includes("tname")) {
+ obj.type_name = it.tname || ""
+ }
+ if (keys.includes("tid")) {
+ obj.type_id = it.tid || ""
+ }
+ if (keys.includes("year")) {
+ obj.vod_year = it.year || ""
+ }
+ if (keys.includes("actor")) {
+ obj.vod_actor = it.actor || ""
+ }
+ if (keys.includes("director")) {
+ obj.vod_director = it.director || ""
+ }
+ if (keys.includes("area")) {
+ obj.vod_area = it.area || ""
+ }
+ VODS.push(obj)
+ });
+ return VODS
+}
+
+function setResult2(res) {
+ VODS = res.list || [];
+ return VODS
+}
+
+function setHomeResult(res) {
+ if (!res || typeof res !== "object") {
+ return []
+ }
+ return setResult(res.list)
+}
+
+function rc(js) {
+ if (js === "maomi_aes.js") {
+ var a = CryptoJS.enc.Utf8.parse("625222f9149e961d");
+ var t = CryptoJS.enc.Utf8.parse("5efdtf6060e2o330");
+ return {
+ De: function(word) {
+ word = CryptoJS.enc.Hex.parse(word);
+ return CryptoJS.AES.decrypt(CryptoJS.enc.Base64.stringify(word), a, {
+ iv: t,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ }).toString(CryptoJS.enc.Utf8)
+ },
+ En: function(word) {
+ var Encrypted = CryptoJS.AES.encrypt(word, a, {
+ iv: t,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ });
+ return Encrypted.ciphertext.toString()
+ }
+ }
+ }
+ return {}
+}
+
+function maoss(jxurl, ref, key) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ eval(getCryptoJS());
+ try {
+ var getVideoInfo = function(text) {
+ return CryptoJS.AES.decrypt(text, key, {
+ iv: iv,
+ padding: CryptoJS.pad.Pkcs7
+ }).toString(CryptoJS.enc.Utf8)
+ };
+ var token_key = key == undefined ? "dvyYRQlnPRCMdQSe" : key;
+ if (ref) {
+ var html = request(jxurl, {
+ headers: {
+ Referer: ref
+ }
+ })
+ } else {
+ var html = request(jxurl)
+ }
+ if (html.indexOf("&btwaf=") != -1) {
+ html = request(jxurl + "&btwaf" + html.match(/&btwaf(.*?)"/)[1], {
+ headers: {
+ Referer: ref
+ }
+ })
+ }
+ var token_iv = html.split('_token = "')[1].split('"')[0];
+ var key = CryptoJS.enc.Utf8.parse(token_key);
+ var iv = CryptoJS.enc.Utf8.parse(token_iv);
+ eval(html.match(/var config = {[\s\S]*?}/)[0] + "");
+ if (!config.url.startsWith("http")) {
+ config.url = CryptoJS.AES.decrypt(config.url, key, {
+ iv: iv,
+ padding: CryptoJS.pad.Pkcs7
+ }).toString(CryptoJS.enc.Utf8)
+ }
+ return config.url
+ } catch (e) {
+ return ""
+ }
+}
+
+function urlencode(str) {
+ str = (str + "").toString();
+ return encodeURIComponent(str).replace(/!/g, "%21").replace(/'/g, "%27").replace(/\(/g, "%28").replace(/\)/g, "%29").replace(/\*/g, "%2A").replace(/%20/g, "+")
+}
+
+function encodeUrl(str) {
+ if (typeof encodeURI == "function") {
+ return encodeURI(str)
+ } else {
+ str = (str + "").toString();
+ return encodeURIComponent(str).replace(/%2F/g, "/").replace(/%3F/g, "?").replace(/%3A/g, ":").replace(/%40/g, "@").replace(/%3D/g, "=").replace(/%3A/g, ":").replace(/%2C/g, ",").replace(/%2B/g, "+").replace(/%24/g, "$")
+ }
+}
+
+function base64Encode(text) {
+ return CryptoJS.enc.Base64.stringify(CryptoJS.enc.Utf8.parse(text))
+}
+
+function base64Decode(text) {
+ return CryptoJS.enc.Utf8.stringify(CryptoJS.enc.Base64.parse(text))
+}
+
+function md5(text) {
+ return CryptoJS.MD5(text).toString()
+}
+
+function uint8ArrayToBase64(uint8Array) {
+ let binaryString = String.fromCharCode.apply(null, Array.from(uint8Array));
+ return btoa(binaryString)
+}
+
+function Utf8ArrayToStr(array) {
+ var out, i, len, c;
+ var char2, char3;
+ out = "";
+ len = array.length;
+ i = 0;
+ while (i < len) {
+ c = array[i++];
+ switch (c >> 4) {
+ case 0:
+ case 1:
+ case 2:
+ case 3:
+ case 4:
+ case 5:
+ case 6:
+ case 7:
+ out += String.fromCharCode(c);
+ break;
+ case 12:
+ case 13:
+ char2 = array[i++];
+ out += String.fromCharCode((c & 31) << 6 | char2 & 63);
+ break;
+ case 14:
+ char2 = array[i++];
+ char3 = array[i++];
+ out += String.fromCharCode((c & 15) << 12 | (char2 & 63) << 6 | (char3 & 63) << 0);
+ break
+ }
+ }
+ return out
+}
+
+function gzip(str) {
+ let arr = pako.gzip(str, {});
+ return uint8ArrayToBase64(arr)
+}
+
+function ungzip(b64Data) {
+ let strData = atob(b64Data);
+ const charData = strData.split("").map(function(x) {
+ return x.charCodeAt(0)
+ });
+ const binData = new Uint8Array(charData);
+ const data = pako.inflate(binData);
+ return Utf8ArrayToStr(data)
+}
+
+function encodeStr(input, encoding) {
+ encoding = encoding || "gbk";
+ if (encoding.startsWith("gb")) {
+ const strTool = gbkTool();
+ input = strTool.encode(input)
+ }
+ return input
+}
+
+function decodeStr(input, encoding) {
+ encoding = encoding || "gbk";
+ if (encoding.startsWith("gb")) {
+ const strTool = gbkTool();
+ input = strTool.decode(input)
+ }
+ return input
+}
+
+function getCryptoJS() {
+ return 'console.log("CryptoJS已装载");'
+}
+const RSA = {
+ decode: function(data, key, option) {
+ option = option || {};
+ if (typeof JSEncrypt === "function") {
+ let chunkSize = option.chunkSize || 117;
+ let privateKey = this.getPrivateKey(key);
+ const decryptor = new JSEncrypt;
+ decryptor.setPrivateKey(privateKey);
+ let uncrypted = "";
+ uncrypted = decryptor.decryptUnicodeLong(data);
+ return uncrypted
+ } else {
+ return false
+ }
+ },
+ encode: function(data, key, option) {
+ option = option || {};
+ if (typeof JSEncrypt === "function") {
+ let chunkSize = option.chunkSize || 117;
+ let publicKey = this.getPublicKey(key);
+ const encryptor = new JSEncrypt;
+ encryptor.setPublicKey(publicKey);
+ let encrypted = "";
+ encrypted = encryptor.encryptUnicodeLong(data);
+ return encrypted
+ } else {
+ return false
+ }
+ },
+ fixKey(key, prefix, endfix) {
+ if (!key.includes(prefix)) {
+ key = prefix + key
+ }
+ if (!key.includes(endfix)) {
+ key += endfix
+ }
+ return key
+ },
+ getPrivateKey(key) {
+ let prefix = "-----BEGIN RSA PRIVATE KEY-----";
+ let endfix = "-----END RSA PRIVATE KEY-----";
+ return this.fixKey(key, prefix, endfix)
+ },
+ getPublicKey(key) {
+ let prefix = "-----BEGIN PUBLIC KEY-----";
+ let endfix = "-----END PUBLIC KEY-----";
+ return this.fixKey(key, prefix, endfix)
+ }
+};
+
+function getProxyUrl() {
+ if (typeof getProxy === "function") {
+ return getProxy(true)
+ } else {
+ return "http://127.0.0.1:9978/proxy?do=js"
+ }
+}
+
+function fixAdM3u8(m3u8_text, m3u8_url, ad_remove) {
+ if (!m3u8_text && !m3u8_url || !m3u8_text && m3u8_url && !m3u8_url.startsWith("http")) {
+ return ""
+ }
+ if (!m3u8_text) {
+ log("m3u8_url:" + m3u8_url);
+ m3u8_text = request(m3u8_url)
+ }
+ log("len(m3u8_text):" + m3u8_text.length);
+ if (!ad_remove) {
+ return m3u8_text
+ }
+ if (ad_remove.startsWith("reg:")) {
+ ad_remove = ad_remove.slice(4)
+ } else if (ad_remove.startsWith("js:")) {
+ ad_remove = ad_remove.slice(3)
+ }
+ let m3u8_start = m3u8_text.slice(0, m3u8_text.indexOf("#EXTINF")).trim();
+ let m3u8_body = m3u8_text.slice(m3u8_text.indexOf("#EXTINF"), m3u8_text.indexOf("#EXT-X-ENDLIST")).trim();
+ let m3u8_end = m3u8_text.slice(m3u8_text.indexOf("#EXT-X-ENDLIST")).trim();
+ let murls = [];
+ let m3_body_list = m3u8_body.split("\n");
+ let m3_len = m3_body_list.length;
+ let i = 0;
+ while (i < m3_len) {
+ let mi = m3_body_list[i];
+ let mi_1 = m3_body_list[i + 1];
+ if (mi.startsWith("#EXTINF")) {
+ murls.push([mi, mi_1].join("&"));
+ i += 2
+ } else if (mi.startsWith("#EXT-X-DISCONTINUITY")) {
+ let mi_2 = m3_body_list[i + 2];
+ murls.push([mi, mi_1, mi_2].join("&"));
+ i += 3
+ } else {
+ break
+ }
+ }
+ let new_m3u8_body = [];
+ for (let murl of murls) {
+ if (ad_remove && new RegExp(ad_remove).test(murl)) {} else {
+ let murl_list = murl.split("&");
+ if (!murl_list[murl_list.length - 1].startsWith("http") && m3u8_url.startsWith("http")) {
+ murl_list[murl_list.length - 1] = urljoin(m3u8_url, murl_list[murl_list.length - 1])
+ }
+ murl_list.forEach(it => {
+ new_m3u8_body.push(it)
+ })
+ }
+ }
+ new_m3u8_body = new_m3u8_body.join("\n").trim();
+ m3u8_text = [m3u8_start, new_m3u8_body, m3u8_end].join("\n").trim();
+ return m3u8_text
+}
+
+function fixAdM3u8Ai(m3u8_url, headers) {
+ let ts = (new Date).getTime();
+ let option = headers ? {
+ headers: headers
+ } : {};
+
+ function b(s1, s2) {
+ let i = 0;
+ while (i < s1.length) {
+ if (s1[i] !== s2[i]) {
+ break
+ }
+ i++
+ }
+ return i
+ }
+
+ function reverseString(str) {
+ return str.split("").reverse().join("")
+ }
+ let m3u8 = request(m3u8_url, option);
+ m3u8 = m3u8.trim().split("\n").map(it => it.startsWith("#") ? it : urljoin(m3u8_url, it)).join("\n");
+ m3u8 = m3u8.replace(/\n\n/gi, "\n");
+ let last_url = m3u8.split("\n").slice(-1)[0];
+ if (last_url.length < 5) {
+ last_url = m3u8.split("\n").slice(-2)[0]
+ }
+ if (last_url.includes(".m3u8") && last_url !== m3u8_url) {
+ m3u8_url = urljoin2(m3u8_url, last_url);
+ log("嵌套的m3u8_url:" + m3u8_url);
+ m3u8 = request(m3u8_url, option)
+ }
+ let s = m3u8.trim().split("\n").filter(it => it.trim()).join("\n");
+ let ss = s.split("\n");
+ let firststr = "";
+ let maxl = 0;
+ let kk = 0;
+ let kkk = 2;
+ let secondstr = "";
+ for (let i = 0; i < ss.length; i++) {
+ let s = ss[i];
+ if (!s.startsWith("#")) {
+ if (kk == 0) firststr = s;
+ if (kk == 1) maxl = b(firststr, s);
+ if (kk > 1) {
+ if (maxl > b(firststr, s)) {
+ if (secondstr.length < 5) secondstr = s;
+ kkk = kkk + 2
+ } else {
+ maxl = b(firststr, s);
+ kkk++
+ }
+ }
+ kk++;
+ if (kk >= 20) break
+ }
+ }
+ if (kkk > 30) firststr = secondstr;
+ let firststrlen = firststr.length;
+ let ml = Math.round(ss.length / 2).toString().length;
+ let maxc = 0;
+ let laststr = ss.toReversed().find(x => {
+ if (!x.startsWith("#")) {
+ let k = b(reverseString(firststr), reverseString(x));
+ maxl = b(firststr, x);
+ maxc++;
+ if (firststrlen - maxl <= ml + k || maxc > 10) {
+ return true
+ }
+ }
+ return false
+ });
+ log("最后一条切片:" + laststr);
+ let ad_urls = [];
+ for (let i = 0; i < ss.length; i++) {
+ let s = ss[i];
+ if (!s.startsWith("#")) {
+ if (b(firststr, s) < maxl) {
+ ad_urls.push(s);
+ ss.splice(i - 1, 2);
+ i = i - 2
+ } else {
+ ss[i] = urljoin(m3u8_url, s)
+ }
+ } else {
+ ss[i] = s.replace(/URI=\"(.*)\"/, 'URI="' + urljoin(m3u8_url, "$1") + '"')
+ }
+ }
+ log("处理的m3u8地址:" + m3u8_url);
+ log("----广告地址----");
+ log(ad_urls);
+ m3u8 = ss.join("\n");
+ log("处理耗时:" + ((new Date).getTime() - ts).toString());
+ return m3u8
+}
+
+function forceOrder(lists, key, option) {
+ let start = Math.floor(lists.length / 2);
+ let end = Math.min(lists.length - 1, start + 1);
+ if (start >= end) {
+ return lists
+ }
+ let first = lists[start];
+ let second = lists[end];
+ if (key) {
+ try {
+ first = first[key];
+ second = second[key]
+ } catch (e) {}
+ }
+ if (option && typeof option === "function") {
+ try {
+ first = option(first);
+ second = option(second)
+ } catch (e) {}
+ }
+ first += "";
+ second += "";
+ if (first.match(/(\d+)/) && second.match(/(\d+)/)) {
+ let num1 = Number(first.match(/(\d+)/)[1]);
+ let num2 = Number(second.match(/(\d+)/)[1]);
+ if (num1 > num2) {
+ lists.reverse()
+ }
+ }
+ return lists
+}
+let VODS = [];
+let VOD = {};
+let TABS = [];
+let LISTS = [];
+
+function getQuery(url) {
+ try {
+ if (url.indexOf("?") > -1) {
+ url = url.slice(url.indexOf("?") + 1)
+ }
+ let arr = url.split("#")[0].split("&");
+ const resObj = {};
+ arr.forEach(item => {
+ let arr1 = item.split("=");
+ let key = arr1[0];
+ let value = arr1.slice(1).join("=");
+ resObj[key] = value
+ });
+ return resObj
+ } catch (err) {
+ log(`getQuery发生错误:${e.message}`);
+ return {}
+ }
+}
+
+function urljoin(fromPath, nowPath) {
+ fromPath = fromPath || "";
+ nowPath = nowPath || "";
+ return joinUrl(fromPath, nowPath)
+}
+var urljoin2 = urljoin;
+const defaultParser = {
+ pdfh: pdfh,
+ pdfa: pdfa,
+ pd: pd
+};
+
+function pdfh2(html, parse) {
+ let html2 = html;
+ try {
+ if (typeof html !== "string") {
+ html2 = html.rr(html.ele).toString()
+ }
+ } catch (e) {
+ print(`html对象转文本发生了错误:${e.message}`)
+ }
+ let result = defaultParser.pdfh(html2, parse);
+ let option = parse.includes("&&") ? parse.split("&&").slice(-1)[0] : parse.split(" ").slice(-1)[0];
+ if (/style/.test(option.toLowerCase()) && /url\(/.test(result)) {
+ try {
+ result = result.match(/url\((.*?)\)/)[1];
+ result = result.replace(/^['|"](.*)['|"]$/, "$1")
+ } catch (e) {}
+ }
+ return result
+}
+
+function pdfa2(html, parse) {
+ let html2 = html;
+ try {
+ if (typeof html !== "string") {
+ html2 = html.rr(html.ele).toString()
+ }
+ } catch (e) {
+ print(`html对象转文本发生了错误:${e.message}`)
+ }
+ return defaultParser.pdfa(html2, parse)
+}
+
+function pd2(html, parse, uri) {
+ let ret = pdfh2(html, parse);
+ if (typeof uri === "undefined" || !uri) {
+ uri = ""
+ }
+ if (DOM_CHECK_ATTR.test(parse) && !SPECIAL_URL.test(ret)) {
+ if (/http/.test(ret)) {
+ ret = ret.slice(ret.indexOf("http"))
+ } else {
+ ret = urljoin(MY_URL, ret)
+ }
+ }
+ return ret
+}
+const parseTags = {
+ jsp: {
+ pdfh: pdfh2,
+ pdfa: pdfa2,
+ pd: pd2
+ },
+ json: {
+ pdfh(html, parse) {
+ if (!parse || !parse.trim()) {
+ return ""
+ }
+ if (typeof html === "string") {
+ html = JSON.parse(html)
+ }
+ parse = parse.trim();
+ if (!parse.startsWith("$.")) {
+ parse = "$." + parse
+ }
+ parse = parse.split("||");
+ for (let ps of parse) {
+ let ret = cheerio.jp(ps, html);
+ if (Array.isArray(ret)) {
+ ret = ret[0] || ""
+ } else {
+ ret = ret || ""
+ }
+ if (ret && typeof ret !== "string") {
+ ret = ret.toString()
+ }
+ if (ret) {
+ return ret
+ }
+ }
+ return ""
+ },
+ pdfa(html, parse) {
+ if (!parse || !parse.trim()) {
+ return ""
+ }
+ if (typeof html === "string") {
+ html = JSON.parse(html)
+ }
+ parse = parse.trim();
+ if (!parse.startsWith("$.")) {
+ parse = "$." + parse
+ }
+ let ret = cheerio.jp(parse, html);
+ if (Array.isArray(ret) && Array.isArray(ret[0]) && ret.length === 1) {
+ return ret[0] || []
+ }
+ return ret || []
+ },
+ pd(html, parse) {
+ let ret = parseTags.json.pdfh(html, parse);
+ if (ret) {
+ return urljoin(MY_URL, ret)
+ }
+ return ret
+ }
+ },
+ jq: {
+ pdfh(html, parse) {
+ if (!html || !parse || !parse.trim()) {
+ return ""
+ }
+ parse = parse.trim();
+ let result = defaultParser.pdfh(html, parse);
+ return result
+ },
+ pdfa(html, parse) {
+ if (!html || !parse || !parse.trim()) {
+ return []
+ }
+ parse = parse.trim();
+ let result = defaultParser.pdfa(html, parse);
+ print(`pdfa解析${parse}=>${result.length}`);
+ return result
+ },
+ pd(html, parse, base_url) {
+ if (!html || !parse || !parse.trim()) {
+ return ""
+ }
+ parse = parse.trim();
+ base_url = base_url || MY_URL;
+ return defaultParser.pd(html, parse, base_url)
+ }
+ },
+ getParse(p0) {
+ if (p0.startsWith("jsp:")) {
+ return this.jsp
+ } else if (p0.startsWith("json:")) {
+ return this.json
+ } else if (p0.startsWith("jq:")) {
+ return this.jq
+ } else {
+ return this.jq
+ }
+ }
+};
+const stringify = JSON.stringify;
+const jsp = parseTags.jsp;
+const jq = parseTags.jq;
+
+function readFile(filePath) {
+ filePath = filePath || "./uri.min.js";
+ var fd = os.open(filePath);
+ var buffer = new ArrayBuffer(1024);
+ var len = os.read(fd, buffer, 0, 1024);
+ console.log(len);
+ let text = String.fromCharCode.apply(null, new Uint8Array(buffer));
+ console.log(text);
+ return text
+}
+
+function dealJson(html) {
+ try {
+ html = html.trim();
+ if (!(html.startsWith("{") && html.endsWith("}") || html.startsWith("[") && html.endsWith("]"))) {
+ html = "{" + html.match(/.*?\{(.*)\}/m)[1] + "}"
+ }
+ } catch (e) {}
+ try {
+ html = JSON.parse(html)
+ } catch (e) {}
+ return html
+}
+var OcrApi = {
+ api: OCR_API,
+ classification: function(img) {
+ let code = "";
+ try {
+ log("通过drpy_ocr验证码接口过验证...");
+ let html = "";
+ if (this.api.endsWith("drpy/text")) {
+ html = request(this.api, {
+ data: {
+ img: img
+ },
+ headers: {
+ "User-Agent": PC_UA
+ },
+ method: "POST"
+ }, true)
+ } else {
+ html = post(this.api, {
+ body: img
+ })
+ }
+ code = html || ""
+ } catch (e) {
+ log(`OCR识别验证码发生错误:${e.message}`)
+ }
+ return code
+ }
+};
+
+function verifyCode(url) {
+ let cnt = 0;
+ let host = getHome(url);
+ let cookie = "";
+ while (cnt < OCR_RETRY) {
+ try {
+ let yzm_url = `${host}/index.php/verify/index.html`;
+ console.log(`验证码链接:${yzm_url}`);
+ let hhtml = request(yzm_url, {
+ withHeaders: true,
+ toBase64: true
+ }, true);
+ let json = JSON.parse(hhtml);
+ if (!cookie) {
+ let setCk = Object.keys(json).find(it => it.toLowerCase() === "set-cookie");
+ cookie = setCk ? json[setCk].split(";")[0] : ""
+ }
+ console.log("cookie:" + cookie);
+ let img = json.body;
+ let code = OcrApi.classification(img);
+ console.log(`第${cnt+1}次验证码识别结果:${code}`);
+ let submit_url = `${host}/index.php/ajax/verify_check?type=search&verify=${code}`;
+ console.log(submit_url);
+ let html = request(submit_url, {
+ headers: {
+ Cookie: cookie
+ },
+ method: "POST"
+ });
+ html = JSON.parse(html);
+ if (html.msg === "ok") {
+ console.log(`第${cnt+1}次验证码提交成功`);
+ return cookie
+ } else if (html.msg !== "ok" && cnt + 1 >= OCR_RETRY) {
+ cookie = ""
+ }
+ } catch (e) {
+ console.log(`第${cnt+1}次验证码提交失败:${e.message}`);
+ if (cnt + 1 >= OCR_RETRY) {
+ cookie = ""
+ }
+ }
+ cnt += 1
+ }
+ return cookie
+}
+
+function setItem(k, v) {
+ local.set(RKEY, k, v);
+ console.log(`规则${RKEY}设置${k} => ${v}`)
+}
+
+function getItem(k, v) {
+ return local.get(RKEY, k) || v
+}
+
+function clearItem(k) {
+ local.delete(RKEY, k)
+}
+
+function getHome(url) {
+ if (!url) {
+ return ""
+ }
+ let tmp = url.split("//");
+ url = tmp[0] + "//" + tmp[1].split("/")[0];
+ try {
+ url = decodeURIComponent(url)
+ } catch (e) {}
+ return url
+}
+
+function buildUrl(url, obj) {
+ obj = obj || {};
+ if (url.indexOf("?") < 0) {
+ url += "?"
+ }
+ let param_list = [];
+ let keys = Object.keys(obj);
+ keys.forEach(it => {
+ param_list.push(it + "=" + obj[it])
+ });
+ let prs = param_list.join("&");
+ if (keys.length > 0 && !url.endsWith("?")) {
+ url += "&"
+ }
+ url += prs;
+ return url
+}
+
+function $require(url) {
+ eval(request(url))
+}
+
+function keysToLowerCase(obj) {
+ return Object.keys(obj).reduce((result, key) => {
+ const newKey = key.toLowerCase();
+ result[newKey] = obj[key];
+ return result
+ }, {})
+}
+
+function parseQueryString(query) {
+ const params = {};
+ query.split("&").forEach(function(part) {
+ const regex = /^(.*?)=(.*)/;
+ const match = part.match(regex);
+ if (match) {
+ const key = decodeURIComponent(match[1]);
+ const value = decodeURIComponent(match[2]);
+ params[key] = value
+ }
+ });
+ return params
+}
+
+function encodeIfContainsSpecialChars(value) {
+ const specialChars = ":/?#[]@!$'()*+,;=%";
+ if (specialChars.split("").some(char => value.includes(char))) {
+ return encodeURIComponent(value)
+ }
+ return value
+}
+
+function objectToQueryString(obj) {
+ const encoded = [];
+ for (let key in obj) {
+ if (obj.hasOwnProperty(key)) {
+ encoded.push(encodeURIComponent(key) + "=" + encodeIfContainsSpecialChars(obj[key]))
+ }
+ }
+ return encoded.join("&")
+}
+
+function request(url, obj, ocr_flag) {
+ ocr_flag = ocr_flag || false;
+ if (typeof obj === "undefined" || !obj || obj === {}) {
+ if (!fetch_params || !fetch_params.headers) {
+ let headers = {
+ "User-Agent": MOBILE_UA
+ };
+ if (rule.headers) {
+ Object.assign(headers, rule.headers)
+ }
+ if (!fetch_params) {
+ fetch_params = {}
+ }
+ fetch_params.headers = headers
+ }
+ if (!fetch_params.headers.Referer) {
+ fetch_params.headers.Referer = getHome(url)
+ }
+ obj = fetch_params
+ } else {
+ let headers = obj.headers || {};
+ let keys = Object.keys(headers).map(it => it.toLowerCase());
+ if (!keys.includes("user-agent")) {
+ headers["User-Agent"] = MOBILE_UA;
+ if (typeof fetch_params === "object" && fetch_params && fetch_params.headers) {
+ let fetch_headers = keysToLowerCase(fetch_params.headers);
+ if (fetch_headers["user-agent"]) {
+ headers["User-Agent"] = fetch_headers["user-agent"]
+ }
+ }
+ }
+ if (!keys.includes("referer")) {
+ headers["Referer"] = getHome(url)
+ }
+ obj.headers = headers
+ }
+ if (rule.encoding && rule.encoding !== "utf-8" && !ocr_flag) {
+ if (!obj.headers.hasOwnProperty("Content-Type") && !obj.headers.hasOwnProperty("content-type")) {
+ obj.headers["Content-Type"] = "text/html; charset=" + rule.encoding
+ }
+ }
+ if (typeof obj.body != "undefined" && obj.body && typeof obj.body === "string") {
+ if (!obj.headers.hasOwnProperty("Content-Type") && !obj.headers.hasOwnProperty("content-type")) {
+ obj.headers["Content-Type"] = "application/x-www-form-urlencoded; charset=" + rule.encoding
+ }
+ } else if (typeof obj.body != "undefined" && obj.body && typeof obj.body === "object") {
+ obj.data = obj.body;
+ delete obj.body
+ }
+ if (!url) {
+ return obj.withHeaders ? "{}" : ""
+ }
+ if (obj.toBase64) {
+ obj.buffer = 2;
+ delete obj.toBase64
+ }
+ if (obj.redirect === false) {
+ obj.redirect = 0
+ }
+ if (obj.headers.hasOwnProperty("Content-Type") || obj.headers.hasOwnProperty("content-type")) {
+ let _contentType = obj.headers["Content-Type"] || obj.headers["content-type"] || "";
+ if (_contentType.includes("application/x-www-form-urlencoded")) {
+ log("custom body is application/x-www-form-urlencoded");
+ if (typeof obj.body == "string") {
+ let temp_obj = parseQueryString(obj.body);
+ console.log(JSON.stringify(temp_obj))
+ }
+ }
+ }
+ console.log(JSON.stringify(obj.headers));
+ console.log("request:" + url + `|method:${obj.method||"GET"}|body:${obj.body||""}`);
+ let res = req(url, obj);
+ let html = res.content || "";
+ if (obj.withHeaders) {
+ let htmlWithHeaders = res.headers;
+ htmlWithHeaders.body = html;
+ return JSON.stringify(htmlWithHeaders)
+ } else {
+ return html
+ }
+}
+
+function post(url, obj) {
+ obj = obj || {};
+ obj.method = "POST";
+ return request(url, obj)
+}
+
+function reqCookie(url, obj, all_cookie) {
+ obj = obj || {};
+ obj.withHeaders = true;
+ all_cookie = all_cookie || false;
+ let html = request(url, obj);
+ let json = JSON.parse(html);
+ let setCk = Object.keys(json).find(it => it.toLowerCase() === "set-cookie");
+ let cookie = setCk ? json[setCk] : "";
+ if (Array.isArray(cookie)) {
+ cookie = cookie.join(";")
+ }
+ if (!all_cookie) {
+ cookie = cookie.split(";")[0]
+ }
+ html = json.body;
+ return {
+ cookie: cookie,
+ html: html
+ }
+}
+fetch = request;
+print = function(data) {
+ data = data || "";
+ if (typeof data == "object" && Object.keys(data).length > 0) {
+ try {
+ data = JSON.stringify(data);
+ console.log(data)
+ } catch (e) {
+ console.log(typeof data + ":" + data.length);
+ return
+ }
+ } else if (typeof data == "object" && Object.keys(data).length < 1) {
+ console.log("null object")
+ } else {
+ console.log(data)
+ }
+};
+log = print;
+
+function checkHtml(html, url, obj) {
+ if (/\?btwaf=/.test(html)) {
+ let btwaf = html.match(/btwaf(.*?)"/)[1];
+ url = url.split("#")[0] + "?btwaf" + btwaf;
+ print("宝塔验证访问链接:" + url);
+ html = request(url, obj)
+ }
+ return html
+}
+
+function getCode(url, obj) {
+ let html = request(url, obj);
+ html = checkHtml(html, url, obj);
+ return html
+}
+
+function getHtml(url) {
+ let obj = {};
+ if (rule.headers) {
+ obj.headers = rule.headers
+ }
+ let cookie = getItem(RULE_CK, "");
+ if (cookie) {
+ if (obj.headers && !Object.keys(obj.headers).map(it => it.toLowerCase()).includes("cookie")) {
+ log("历史无cookie,新增过验证后的cookie");
+ obj.headers["Cookie"] = cookie
+ } else if (obj.headers && obj.headers.cookie && obj.headers.cookie !== cookie) {
+ obj.headers["Cookie"] = cookie;
+ log("历史有小写过期的cookie,更新过验证后的cookie")
+ } else if (obj.headers && obj.headers.Cookie && obj.headers.Cookie !== cookie) {
+ obj.headers["Cookie"] = cookie;
+ log("历史有大写过期的cookie,更新过验证后的cookie")
+ } else if (!obj.headers) {
+ obj.headers = {
+ Cookie: cookie
+ };
+ log("历史无headers,更新过验证后的含cookie的headers")
+ }
+ }
+ let html = getCode(url, obj);
+ return html
+}
+
+function homeParse(homeObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let classes = [];
+ if (homeObj.class_name && homeObj.class_url) {
+ let names = homeObj.class_name.split("&");
+ let urls = homeObj.class_url.split("&");
+ let cnt = Math.min(names.length, urls.length);
+ for (let i = 0; i < cnt; i++) {
+ classes.push({
+ type_id: urls[i],
+ type_name: names[i]
+ })
+ }
+ }
+ if (homeObj.class_parse) {
+ if (homeObj.class_parse.startsWith("js:")) {
+ var input = homeObj.MY_URL;
+ try {
+ eval(homeObj.class_parse.replace("js:", ""));
+ if (Array.isArray(input)) {
+ classes = input
+ }
+ } catch (e) {
+ log(`通过js动态获取分类发生了错误:${e.message}`)
+ }
+ } else {
+ let p = homeObj.class_parse.split(";");
+ let p0 = p[0];
+ let _ps = parseTags.getParse(p0);
+ let is_json = p0.startsWith("json:");
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ MY_URL = rule.url;
+ if (is_json) {
+ try {
+ let cms_cate_url = homeObj.MY_URL.replace("ac=detail", "ac=list");
+ let html = homeObj.home_html || getHtml(cms_cate_url);
+ if (html) {
+ if (cms_cate_url === homeObj.MY_URL) {
+ homeHtmlCache = html
+ }
+ let list = _pdfa(html, p0.replace("json:", ""));
+ if (list && list.length > 0) {
+ classes = list
+ }
+ }
+ } catch (e) {
+ console.log(e.message)
+ }
+ } else if (p.length >= 3 && !is_json) {
+ try {
+ let html = homeObj.home_html || getHtml(homeObj.MY_URL);
+ if (html) {
+ homeHtmlCache = html;
+ let list = _pdfa(html, p0);
+ if (list && list.length > 0) {
+ list.forEach((it, idex) => {
+ try {
+ let name = _pdfh(it, p[1]);
+ if (homeObj.cate_exclude && new RegExp(homeObj.cate_exclude).test(name)) {
+ return
+ }
+ let url = _pd(it, p[2]);
+ if (p.length > 3 && p[3] && !homeObj.home_html) {
+ let exp = new RegExp(p[3]);
+ url = url.match(exp)[1]
+ }
+ classes.push({
+ type_id: url.trim(),
+ type_name: name.trim()
+ })
+ } catch (e) {
+ console.log(`分类列表定位第${idex}个元素正常报错:${e.message}`)
+ }
+ })
+ }
+ }
+ } catch (e) {
+ console.log(e.message)
+ }
+ }
+ }
+ }
+ classes = classes.filter(it => !homeObj.cate_exclude || !new RegExp(homeObj.cate_exclude).test(it.type_name));
+ let resp = {
+ class: classes
+ };
+ if (homeObj.filter) {
+ resp.filters = homeObj.filter
+ }
+ console.log(JSON.stringify(resp));
+ return JSON.stringify(resp)
+}
+
+function getPP(p, pn, pp, ppn) {
+ try {
+ let ps = p[pn] === "*" && pp.length > ppn ? pp[ppn] : p[pn];
+ return ps
+ } catch (e) {
+ return ""
+ }
+}
+
+function homeVodParse(homeVodObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let d = [];
+ MY_URL = homeVodObj.homeUrl;
+ console.log(MY_URL);
+ let t1 = (new Date).getTime();
+ let p = homeVodObj.推荐;
+ print("p:" + p);
+ if (p === "*" && rule.一级) {
+ p = rule.一级;
+ homeVodObj.double = false
+ }
+ if (!p || typeof p !== "string") {
+ return "{}"
+ }
+ p = p.trim();
+ let pp = rule.一级 ? rule.一级.split(";") : [];
+ if (p.startsWith("js:")) {
+ const TYPE = "home";
+ var input = MY_URL;
+ HOST = rule.host;
+ eval(p.replace("js:", ""));
+ d = VODS
+ } else {
+ p = p.split(";");
+ if (!homeVodObj.double && p.length < 5) {
+ return "{}"
+ } else if (homeVodObj.double && p.length < 6) {
+ return "{}"
+ }
+ let p0 = getPP(p, 0, pp, 0);
+ let _ps = parseTags.getParse(p0);
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ let is_json = p0.startsWith("json:");
+ p0 = p0.replace(/^(jsp:|json:|jq:)/, "");
+ let html = homeHtmlCache || getHtml(MY_URL);
+ homeHtmlCache = undefined;
+ if (is_json) {
+ html = dealJson(html)
+ }
+ try {
+ console.log("double:" + homeVodObj.double);
+ if (homeVodObj.double) {
+ let items = _pdfa(html, p0);
+ let p1 = getPP(p, 1, pp, 0);
+ let p2 = getPP(p, 2, pp, 1);
+ let p3 = getPP(p, 3, pp, 2);
+ let p4 = getPP(p, 4, pp, 3);
+ let p5 = getPP(p, 5, pp, 4);
+ let p6 = getPP(p, 6, pp, 5);
+ for (let item of items) {
+ let items2 = _pdfa(item, p1);
+ for (let item2 of items2) {
+ try {
+ let title = _pdfh(item2, p2);
+ let img = "";
+ try {
+ img = _pd(item2, p3)
+ } catch (e) {}
+ let desc = "";
+ try {
+ desc = _pdfh(item2, p4)
+ } catch (e) {}
+ let links = [];
+ for (let _p5 of p5.split("+")) {
+ let link = !homeVodObj.detailUrl ? _pd(item2, _p5, MY_URL) : _pdfh(item2, _p5);
+ links.push(link)
+ }
+ let content;
+ if (p.length > 6 && p[6]) {
+ content = _pdfh(item2, p6)
+ } else {
+ content = ""
+ }
+ let vid = links.join("$");
+ if (rule.二级 === "*") {
+ vid = vid + "@@" + title + "@@" + img
+ }
+ let vod = {
+ vod_name: title,
+ vod_pic: img,
+ vod_remarks: desc,
+ vod_content: content,
+ vod_id: vid
+ };
+ d.push(vod)
+ } catch (e) {
+ console.log(`首页列表双层定位处理发生错误:${e.message}`)
+ }
+ }
+ }
+ } else {
+ let items = _pdfa(html, p0);
+ let p1 = getPP(p, 1, pp, 1);
+ let p2 = getPP(p, 2, pp, 2);
+ let p3 = getPP(p, 3, pp, 3);
+ let p4 = getPP(p, 4, pp, 4);
+ let p5 = getPP(p, 5, pp, 5);
+ for (let item of items) {
+ try {
+ let title = _pdfh(item, p1);
+ let img = "";
+ try {
+ img = _pd(item, p2, MY_URL)
+ } catch (e) {}
+ let desc = "";
+ try {
+ desc = _pdfh(item, p3)
+ } catch (e) {}
+ let links = [];
+ for (let _p5 of p4.split("+")) {
+ let link = !homeVodObj.detailUrl ? _pd(item, _p5, MY_URL) : _pdfh(item, _p5);
+ links.push(link)
+ }
+ let content;
+ if (p.length > 5 && p[5]) {
+ content = _pdfh(item, p5)
+ } else {
+ content = ""
+ }
+ let vid = links.join("$");
+ if (rule.二级 === "*") {
+ vid = vid + "@@" + title + "@@" + img
+ }
+ let vod = {
+ vod_name: title,
+ vod_pic: img,
+ vod_remarks: desc,
+ vod_content: content,
+ vod_id: vid
+ };
+ d.push(vod)
+ } catch (e) {
+ console.log(`首页列表单层定位处理发生错误:${e.message}`)
+ }
+ }
+ }
+ } catch (e) {}
+ }
+ let t2 = (new Date).getTime();
+ console.log("加载首页推荐耗时:" + (t2 - t1) + "毫秒");
+ if (rule.图片替换) {
+ if (rule.图片替换.startsWith("js:")) {
+ d.forEach(it => {
+ try {
+ var input = it.vod_pic;
+ eval(rule.图片替换.trim().replace("js:", ""));
+ it.vod_pic = input
+ } catch (e) {
+ log(`图片:${it.vod_pic}替换错误:${e.message}`)
+ }
+ })
+ } else if (rule.图片替换.includes("=>")) {
+ let replace_from = rule.图片替换.split("=>")[0];
+ let replace_to = rule.图片替换.split("=>")[1];
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
+ }
+ })
+ }
+ }
+ if (rule.图片来源) {
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic + rule.图片来源
+ }
+ })
+ }
+ if (d.length > 0) {
+ print(d.slice(0, 2))
+ }
+ return JSON.stringify({
+ list: d
+ })
+}
+
+function categoryParse(cateObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let p = cateObj.一级;
+ if (!p || typeof p !== "string") {
+ return "{}"
+ }
+ let d = [];
+ let url = cateObj.url.replaceAll("fyclass", cateObj.tid);
+ if (cateObj.pg === 1 && url.includes("[") && url.includes("]")) {
+ url = url.split("[")[1].split("]")[0]
+ } else if (cateObj.pg > 1 && url.includes("[") && url.includes("]")) {
+ url = url.split("[")[0]
+ }
+ if (rule.filter_url) {
+ if (!/fyfilter/.test(url)) {
+ if (!url.endsWith("&") && !rule.filter_url.startsWith("&")) {
+ url += "&"
+ }
+ url += rule.filter_url
+ } else {
+ url = url.replace("fyfilter", rule.filter_url)
+ }
+ url = url.replaceAll("fyclass", cateObj.tid);
+ let fl = cateObj.filter ? cateObj.extend : {};
+ if (rule.filter_def && typeof rule.filter_def === "object") {
+ try {
+ if (Object.keys(rule.filter_def).length > 0 && rule.filter_def.hasOwnProperty(cateObj.tid)) {
+ let self_fl_def = rule.filter_def[cateObj.tid];
+ if (self_fl_def && typeof self_fl_def === "object") {
+ let fl_def = JSON.parse(JSON.stringify(self_fl_def));
+ fl = Object.assign(fl_def, fl)
+ }
+ }
+ } catch (e) {
+ print(`合并不同分类对应的默认筛选出错:${e.message}`)
+ }
+ }
+ let new_url;
+ new_url = cheerio.jinja2(url, {
+ fl: fl,
+ fyclass: cateObj.tid
+ });
+ url = new_url
+ }
+ if (/fypage/.test(url)) {
+ if (url.includes("(") && url.includes(")")) {
+ let url_rep = url.match(/.*?\((.*)\)/)[1];
+ let cnt_page = url_rep.replaceAll("fypage", cateObj.pg);
+ let cnt_pg = eval(cnt_page);
+ url = url.replaceAll(url_rep, cnt_pg).replaceAll("(", "").replaceAll(")", "")
+ } else {
+ url = url.replaceAll("fypage", cateObj.pg)
+ }
+ }
+ MY_URL = url;
+ console.log(MY_URL);
+ p = p.trim();
+ const MY_CATE = cateObj.tid;
+ if (p.startsWith("js:")) {
+ var MY_FL = cateObj.extend;
+ const TYPE = "cate";
+ var input = MY_URL;
+ const MY_PAGE = cateObj.pg;
+ var desc = "";
+ eval(p.trim().replace("js:", ""));
+ d = VODS
+ } else {
+ p = p.split(";");
+ if (p.length < 5) {
+ return "{}"
+ }
+ let _ps = parseTags.getParse(p[0]);
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ let is_json = p[0].startsWith("json:");
+ p[0] = p[0].replace(/^(jsp:|json:|jq:)/, "");
+ try {
+ let html = getHtml(MY_URL);
+ if (html) {
+ if (is_json) {
+ html = dealJson(html)
+ }
+ let list = _pdfa(html, p[0]);
+ list.forEach(it => {
+ let links = p[4].split("+").map(p4 => {
+ return !rule.detailUrl ? _pd(it, p4, MY_URL) : _pdfh(it, p4)
+ });
+ let link = links.join("$");
+ let vod_id = rule.detailUrl ? MY_CATE + "$" + link : link;
+ let vod_name = _pdfh(it, p[1]).replace(/\n|\t/g, "").trim();
+ let vod_pic = _pd(it, p[2], MY_URL);
+ if (rule.二级 === "*") {
+ vod_id = vod_id + "@@" + vod_name + "@@" + vod_pic
+ }
+ d.push({
+ vod_id: vod_id,
+ vod_name: vod_name,
+ vod_pic: vod_pic,
+ vod_remarks: _pdfh(it, p[3]).replace(/\n|\t/g, "").trim()
+ })
+ })
+ }
+ } catch (e) {
+ console.log(e.message)
+ }
+ }
+ if (rule.图片替换) {
+ if (rule.图片替换.startsWith("js:")) {
+ d.forEach(it => {
+ try {
+ var input = it.vod_pic;
+ eval(rule.图片替换.trim().replace("js:", ""));
+ it.vod_pic = input
+ } catch (e) {
+ log(`图片:${it.vod_pic}替换错误:${e.message}`)
+ }
+ })
+ } else if (rule.图片替换.includes("=>")) {
+ let replace_from = rule.图片替换.split("=>")[0];
+ let replace_to = rule.图片替换.split("=>")[1];
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
+ }
+ })
+ }
+ }
+ if (rule.图片来源) {
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic + rule.图片来源
+ }
+ })
+ }
+ if (d.length > 0) {
+ print(d.slice(0, 2))
+ }
+ let pagecount = 0;
+ if (rule.pagecount && typeof rule.pagecount === "object" && rule.pagecount.hasOwnProperty(MY_CATE)) {
+ print(`MY_CATE:${MY_CATE},pagecount:${JSON.stringify(rule.pagecount)}`);
+ pagecount = parseInt(rule.pagecount[MY_CATE])
+ }
+ let nodata = {
+ list: [{
+ vod_name: "无数据,防无限请求",
+ vod_id: "no_data",
+ vod_remarks: "不要点,会崩的",
+ vod_pic: "https://ghproxy.net/https://raw.githubusercontent.com/hjdhnx/dr_py/main/404.jpg"
+ }],
+ total: 1,
+ pagecount: 1,
+ page: 1,
+ limit: 1
+ };
+ let vod = d.length < 1 ? JSON.stringify(nodata) : JSON.stringify({
+ page: parseInt(cateObj.pg),
+ pagecount: pagecount || 999,
+ limit: 20,
+ total: 999,
+ list: d
+ });
+ return vod
+}
+
+function searchParse(searchObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let d = [];
+ if (!searchObj.searchUrl) {
+ return "{}"
+ }
+ if (rule.searchNoPage && Number(searchObj.pg) > 1) {
+ return "{}"
+ }
+ let p = searchObj.搜索 === "*" && rule.一级 ? rule.一级 : searchObj.搜索;
+ if (!p || typeof p !== "string") {
+ return "{}"
+ }
+ p = p.trim();
+ let pp = rule.一级 ? rule.一级.split(";") : [];
+ let url = searchObj.searchUrl.replaceAll("**", searchObj.wd);
+ if (searchObj.pg === 1 && url.includes("[") && url.includes("]") && !url.includes("#")) {
+ url = url.split("[")[1].split("]")[0]
+ } else if (searchObj.pg > 1 && url.includes("[") && url.includes("]") && !url.includes("#")) {
+ url = url.split("[")[0]
+ }
+ if (/fypage/.test(url)) {
+ if (url.includes("(") && url.includes(")")) {
+ let url_rep = url.match(/.*?\((.*)\)/)[1];
+ let cnt_page = url_rep.replaceAll("fypage", searchObj.pg);
+ let cnt_pg = eval(cnt_page);
+ url = url.replaceAll(url_rep, cnt_pg).replaceAll("(", "").replaceAll(")", "")
+ } else {
+ url = url.replaceAll("fypage", searchObj.pg)
+ }
+ }
+ MY_URL = url;
+ console.log(MY_URL);
+ if (p.startsWith("js:")) {
+ const TYPE = "search";
+ const MY_PAGE = searchObj.pg;
+ const KEY = searchObj.wd;
+ var input = MY_URL;
+ var detailUrl = rule.detailUrl || "";
+ eval(p.trim().replace("js:", ""));
+ d = VODS
+ } else {
+ p = p.split(";");
+ if (p.length < 5) {
+ return "{}"
+ }
+ let p0 = getPP(p, 0, pp, 0);
+ let _ps = parseTags.getParse(p0);
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ let is_json = p0.startsWith("json:");
+ p0 = p0.replace(/^(jsp:|json:|jq:)/, "");
+ try {
+ let req_method = MY_URL.split(";").length > 1 ? MY_URL.split(";")[1].toLowerCase() : "get";
+ let html;
+ if (req_method === "post") {
+ let rurls = MY_URL.split(";")[0].split("#");
+ let rurl = rurls[0];
+ let params = rurls.length > 1 ? rurls[1] : "";
+ print(`post=》rurl:${rurl},params:${params}`);
+ let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let postData = {
+ body: params
+ };
+ Object.assign(_fetch_params, postData);
+ html = post(rurl, _fetch_params)
+ } else if (req_method === "postjson") {
+ let rurls = MY_URL.split(";")[0].split("#");
+ let rurl = rurls[0];
+ let params = rurls.length > 1 ? rurls[1] : "";
+ print(`postjson-》rurl:${rurl},params:${params}`);
+ try {
+ params = JSON.parse(params)
+ } catch (e) {
+ params = "{}"
+ }
+ let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let postData = {
+ body: params
+ };
+ Object.assign(_fetch_params, postData);
+ html = post(rurl, _fetch_params)
+ } else {
+ html = getHtml(MY_URL)
+ }
+ if (html) {
+ let search_tag = rule.搜索验证标识 || "系统安全验证|输入验证码";
+ if (new RegExp(search_tag).test(html)) {
+ let cookie = verifyCode(MY_URL);
+ if (cookie) {
+ console.log(`本次成功过验证,cookie:${cookie}`);
+ setItem(RULE_CK, cookie)
+ } else {
+ console.log(`本次自动过搜索验证失败,cookie:${cookie}`)
+ }
+ html = getHtml(MY_URL)
+ }
+ if (!html.includes(searchObj.wd)) {
+ console.log("搜索结果源码未包含关键字,疑似搜索失败,正为您打印结果源码");
+ console.log(html)
+ }
+ if (is_json) {
+ html = dealJson(html)
+ }
+ let list = _pdfa(html, p0);
+ let p1 = getPP(p, 1, pp, 1);
+ let p2 = getPP(p, 2, pp, 2);
+ let p3 = getPP(p, 3, pp, 3);
+ let p4 = getPP(p, 4, pp, 4);
+ let p5 = getPP(p, 5, pp, 5);
+ list.forEach(it => {
+ let links = p4.split("+").map(_p4 => {
+ return !rule.detailUrl ? _pd(it, _p4, MY_URL) : _pdfh(it, _p4)
+ });
+ let link = links.join("$");
+ let content;
+ if (p.length > 5 && p[5]) {
+ content = _pdfh(it, p5)
+ } else {
+ content = ""
+ }
+ let vod_id = link;
+ let vod_name = _pdfh(it, p1).replace(/\n|\t/g, "").trim();
+ let vod_pic = _pd(it, p2, MY_URL);
+ if (rule.二级 === "*") {
+ vod_id = vod_id + "@@" + vod_name + "@@" + vod_pic
+ }
+ let ob = {
+ vod_id: vod_id,
+ vod_name: vod_name,
+ vod_pic: vod_pic,
+ vod_remarks: _pdfh(it, p3).replace(/\n|\t/g, "").trim(),
+ vod_content: content.replace(/\n|\t/g, "").trim()
+ };
+ d.push(ob)
+ })
+ }
+ } catch (e) {
+ print(`搜索发生错误:${e.message}`);
+ return "{}"
+ }
+ }
+ if (rule.图片替换) {
+ if (rule.图片替换.startsWith("js:")) {
+ d.forEach(it => {
+ try {
+ var input = it.vod_pic;
+ eval(rule.图片替换.trim().replace("js:", ""));
+ it.vod_pic = input
+ } catch (e) {
+ log(`图片:${it.vod_pic}替换错误:${e.message}`)
+ }
+ })
+ } else if (rule.图片替换.includes("=>")) {
+ let replace_from = rule.图片替换.split("=>")[0];
+ let replace_to = rule.图片替换.split("=>")[1];
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
+ }
+ })
+ }
+ }
+ if (rule.图片来源) {
+ d.forEach(it => {
+ if (it.vod_pic && it.vod_pic.startsWith("http")) {
+ it.vod_pic = it.vod_pic + rule.图片来源
+ }
+ })
+ }
+ return JSON.stringify({
+ page: parseInt(searchObj.pg),
+ pagecount: 10,
+ limit: 20,
+ total: 100,
+ list: d
+ })
+}
+
+function detailParse(detailObj) {
+ let t1 = (new Date).getTime();
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ let orId = detailObj.orId;
+ let vod_name = "片名";
+ let vod_pic = "";
+ let vod_id = orId;
+ if (rule.二级 === "*") {
+ let extra = orId.split("@@");
+ vod_name = extra.length > 1 ? extra[1] : vod_name;
+ vod_pic = extra.length > 2 ? extra[2] : vod_pic
+ }
+ let vod = {
+ vod_id: vod_id,
+ vod_name: vod_name,
+ vod_pic: vod_pic,
+ type_name: "类型",
+ vod_year: "年份",
+ vod_area: "地区",
+ vod_remarks: "更新信息",
+ vod_actor: "主演",
+ vod_director: "导演",
+ vod_content: "简介"
+ };
+ let p = detailObj.二级;
+ let url = detailObj.url;
+ let detailUrl = detailObj.detailUrl;
+ let fyclass = detailObj.fyclass;
+ let tab_exclude = detailObj.tab_exclude;
+ let html = detailObj.html || "";
+ MY_URL = url;
+ if (detailObj.二级访问前) {
+ try {
+ print(`尝试在二级访问前执行代码:${detailObj.二级访问前}`);
+ eval(detailObj.二级访问前.trim().replace("js:", ""))
+ } catch (e) {
+ print(`二级访问前执行代码出现错误:${e.message}`)
+ }
+ }
+ if (p === "*") {
+ vod.vod_play_from = "夸克云盘";
+ vod.vod_remarks = detailUrl;
+ vod.vod_actor = "没有二级,只有一级链接直接嗅探播放";
+ vod.vod_content = MY_URL;
+ vod.vod_play_url = "嗅探播放$" + MY_URL.split("@@")[0]
+ } else if (typeof p === "string" && p.trim().startsWith("js:")) {
+ const TYPE = "detail";
+ var input = MY_URL;
+ var play_url = "";
+ eval(p.trim().replace("js:", ""));
+ vod = VOD;
+ console.log(JSON.stringify(vod))
+ } else if (p && typeof p === "object") {
+ let tt1 = (new Date).getTime();
+ if (!html) {
+ html = getHtml(MY_URL)
+ }
+ print(`二级${MY_URL}仅获取源码耗时:${(new Date).getTime()-tt1}毫秒`);
+ let _ps;
+ if (p.is_json) {
+ print("二级是json");
+ _ps = parseTags.json;
+ html = dealJson(html)
+ } else if (p.is_jsp) {
+ print("二级是jsp");
+ _ps = parseTags.jsp
+ } else if (p.is_jq) {
+ print("二级是jq");
+ _ps = parseTags.jq
+ } else {
+ print("二级默认jq");
+ _ps = parseTags.jq
+ }
+ let tt2 = (new Date).getTime();
+ print(`二级${MY_URL}获取并装载源码耗时:${tt2-tt1}毫秒`);
+ _pdfa = _ps.pdfa;
+ _pdfh = _ps.pdfh;
+ _pd = _ps.pd;
+ if (p.title) {
+ let p1 = p.title.split(";");
+ vod.vod_name = _pdfh(html, p1[0]).replace(/\n|\t/g, "").trim();
+ let type_name = p1.length > 1 ? _pdfh(html, p1[1]).replace(/\n|\t/g, "").replace(/ /g, "").trim() : "";
+ vod.type_name = type_name || vod.type_name
+ }
+ if (p.desc) {
+ try {
+ let p1 = p.desc.split(";");
+ vod.vod_remarks = _pdfh(html, p1[0]).replace(/\n|\t/g, "").trim();
+ vod.vod_year = p1.length > 1 ? _pdfh(html, p1[1]).replace(/\n|\t/g, "").trim() : "";
+ vod.vod_area = p1.length > 2 ? _pdfh(html, p1[2]).replace(/\n|\t/g, "").trim() : "";
+ vod.vod_actor = p1.length > 3 ? _pdfh(html, p1[3]).replace(/\n|\t/g, "").trim() : "";
+ vod.vod_director = p1.length > 4 ? _pdfh(html, p1[4]).replace(/\n|\t/g, "").trim() : ""
+ } catch (e) {}
+ }
+ if (p.content) {
+ try {
+ let p1 = p.content.split(";");
+ vod.vod_content = _pdfh(html, p1[0]).replace(/\n|\t/g, "").trim()
+ } catch (e) {}
+ }
+ if (p.img) {
+ try {
+ let p1 = p.img.split(";");
+ vod.vod_pic = _pd(html, p1[0], MY_URL)
+ } catch (e) {}
+ }
+ let vod_play_from = "$$$";
+ let playFrom = [];
+ if (p.重定向 && p.重定向.startsWith("js:")) {
+ print("开始执行重定向代码:" + p.重定向);
+ html = eval(p.重定向.replace("js:", ""))
+ }
+ if (p.tabs) {
+ if (p.tabs.startsWith("js:")) {
+ print("开始执行tabs代码:" + p.tabs);
+ var input = MY_URL;
+ eval(p.tabs.replace("js:", ""));
+ playFrom = TABS
+ } else {
+ let p_tab = p.tabs.split(";")[0];
+ let vHeader = _pdfa(html, p_tab);
+ console.log(vHeader.length);
+ let tab_text = p.tab_text || "body&&Text";
+ let new_map = {};
+ for (let v of vHeader) {
+ let v_title = _pdfh(v, tab_text).trim();
+ if (!v_title) {
+ v_title = "线路空"
+ }
+ console.log(v_title);
+ if (tab_exclude && new RegExp(tab_exclude).test(v_title)) {
+ continue
+ }
+ if (!new_map.hasOwnProperty(v_title)) {
+ new_map[v_title] = 1
+ } else {
+ new_map[v_title] += 1
+ }
+ if (new_map[v_title] > 1) {
+ v_title += Number(new_map[v_title] - 1)
+ }
+ playFrom.push(v_title)
+ }
+ }
+ console.log(JSON.stringify(playFrom))
+ } else {
+ playFrom = ["夸克云盘"]
+ }
+ vod.vod_play_from = playFrom.join(vod_play_from);
+ let vod_play_url = "$$$";
+ let vod_tab_list = [];
+ if (p.lists) {
+ if (p.lists.startsWith("js:")) {
+ print("开始执行lists代码:" + p.lists);
+ try {
+ var input = MY_URL;
+ var play_url = "";
+ eval(p.lists.replace("js:", ""));
+ for (let i in LISTS) {
+ if (LISTS.hasOwnProperty(i)) {
+ try {
+ LISTS[i] = LISTS[i].map(it => it.split("$").slice(0, 2).join("$"))
+ } catch (e) {
+ print(`格式化LISTS发生错误:${e.message}`)
+ }
+ }
+ }
+ vod_play_url = LISTS.map(it => it.join("#")).join(vod_play_url)
+ } catch (e) {
+ print(`js执行lists: 发生错误:${e.message}`)
+ }
+ } else {
+ let list_text = p.list_text || "body&&Text";
+ let list_url = p.list_url || "a&&href";
+ let list_url_prefix = p.list_url_prefix || "";
+ let is_tab_js = p.tabs.trim().startsWith("js:");
+ for (let i = 0; i < playFrom.length; i++) {
+ let tab_name = playFrom[i];
+ let tab_ext = p.tabs.split(";").length > 1 && !is_tab_js ? p.tabs.split(";")[1] : "";
+ let p1 = p.lists.replaceAll("#idv", tab_name).replaceAll("#id", i);
+ tab_ext = tab_ext.replaceAll("#idv", tab_name).replaceAll("#id", i);
+ let tabName = tab_ext ? _pdfh(html, tab_ext) : tab_name;
+ console.log(tabName);
+ let new_vod_list = [];
+ let tt1 = (new Date).getTime();
+ if (typeof pdfl === "function") {
+ new_vod_list = pdfl(html, p1, list_text, list_url, MY_URL);
+ if (list_url_prefix) {
+ new_vod_list = new_vod_list.map(it => it.split("$")[0] + "$" + list_url_prefix + it.split("$").slice(1).join("$"))
+ }
+ } else {
+ let vodList = [];
+ try {
+ vodList = _pdfa(html, p1);
+ console.log("len(vodList):" + vodList.length)
+ } catch (e) {}
+ for (let i = 0; i < vodList.length; i++) {
+ let it = vodList[i];
+ new_vod_list.push(_pdfh(it, list_text).trim() + "$" + list_url_prefix + _pd(it, list_url, MY_URL))
+ }
+ }
+ if (new_vod_list.length > 0) {
+ new_vod_list = forceOrder(new_vod_list, "", x => x.split("$")[0]);
+ console.log(`drpy影响性能代码共计列表数循环次数:${new_vod_list.length},耗时:${(new Date).getTime()-tt1}毫秒`)
+ }
+ let vlist = new_vod_list.join("#");
+ vod_tab_list.push(vlist)
+ }
+ vod_play_url = vod_tab_list.join(vod_play_url)
+ }
+ }
+ vod.vod_play_url = vod_play_url
+ }
+ if (rule.图片替换 && rule.图片替换.includes("=>")) {
+ let replace_from = rule.图片替换.split("=>")[0];
+ let replace_to = rule.图片替换.split("=>")[1];
+ vod.vod_pic = vod.vod_pic.replace(replace_from, replace_to)
+ }
+ if (rule.图片来源 && vod.vod_pic && vod.vod_pic.startsWith("http")) {
+ vod.vod_pic = vod.vod_pic + rule.图片来源
+ }
+ if (!vod.vod_id || vod_id.includes("$") && vod.vod_id !== vod_id) {
+ vod.vod_id = vod_id
+ }
+ let t2 = (new Date).getTime();
+ console.log(`加载二级界面${MY_URL}耗时:${t2-t1}毫秒`);
+ try {
+ vod = vodDeal(vod)
+ } catch (e) {
+ console.log(`vodDeal发生错误:${e.message}`)
+ }
+ return JSON.stringify({
+ list: [vod]
+ })
+}
+
+function get_tab_index(vod) {
+ let obj = {};
+ vod.vod_play_from.split("$$$").forEach((it, index) => {
+ obj[it] = index
+ });
+ return obj
+}
+
+function vodDeal(vod) {
+ let vod_play_from = vod.vod_play_from.split("$$$");
+ let vod_play_url = vod.vod_play_url.split("$$$");
+ let tab_removed_list = vod_play_from;
+ let tab_ordered_list = vod_play_from;
+ let tab_renamed_list = vod_play_from;
+ let tab_list = vod_play_from;
+ let play_ordered_list = vod_play_url;
+ if (rule.tab_remove && rule.tab_remove.length > 0 || rule.tab_order && rule.tab_order.length > 0) {
+ let tab_index_dict = get_tab_index(vod);
+ if (rule.tab_remove && rule.tab_remove.length > 0) {
+ tab_removed_list = vod_play_from.filter(it => !rule.tab_remove.includes(it));
+ tab_list = tab_removed_list
+ }
+ if (rule.tab_order && rule.tab_order.length > 0) {
+ let tab_order = rule.tab_order;
+ tab_ordered_list = tab_removed_list.sort((a, b) => {
+ return (tab_order.indexOf(a) === -1 ? 9999 : tab_order.indexOf(a)) - (tab_order.indexOf(b) === -1 ? 9999 : tab_order.indexOf(b))
+ });
+ tab_list = tab_ordered_list
+ }
+ play_ordered_list = tab_list.map(it => vod_play_url[tab_index_dict[it]])
+ }
+ if (rule.tab_rename && typeof rule.tab_rename === "object" & Object.keys(rule.tab_rename).length > 0) {
+ tab_renamed_list = tab_list.map(it => rule.tab_rename[it] || it);
+ tab_list = tab_renamed_list
+ }
+ vod.vod_play_from = tab_list.join("$$$");
+ vod.vod_play_url = play_ordered_list.join("$$$");
+ return vod
+}
+
+function tellIsJx(url) {
+ try {
+ let is_vip = !/\.(m3u8|mp4|m4a)$/.test(url.split("?")[0]) && 是否正版(url);
+ return is_vip ? 1 : 0
+ } catch (e) {
+ return 1
+ }
+}
+
+function playParse(playObj) {
+ fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
+ MY_URL = playObj.url;
+ var MY_FLAG = playObj.flag;
+ if (!/http/.test(MY_URL)) {
+ try {
+ MY_URL = base64Decode(MY_URL)
+ } catch (e) {}
+ }
+ MY_URL = decodeURIComponent(MY_URL);
+ var input = MY_URL;
+ var flag = MY_FLAG;
+ let common_play = {
+ parse: SPECIAL_URL.test(input) || /^(push:)/.test(input) ? 0 : 1,
+ url: input,
+ flag: flag,
+ jx: tellIsJx(input)
+ };
+ let lazy_play;
+ if (!rule.play_parse || !rule.lazy) {
+ lazy_play = common_play
+ } else if (rule.play_parse && rule.lazy && typeof rule.lazy === "string") {
+ try {
+ let lazy_code = rule.lazy.trim();
+ if (lazy_code.startsWith("js:")) {
+ lazy_code = lazy_code.replace("js:", "").trim()
+ }
+ print("开始执行js免嗅=>" + lazy_code);
+ eval(lazy_code);
+ lazy_play = typeof input === "object" ? input : {
+ parse: SPECIAL_URL.test(input) || /^(push:)/.test(input) ? 0 : 1,
+ jx: tellIsJx(input),
+ url: input
+ }
+ } catch (e) {
+ print(`js免嗅错误:${e.message}`);
+ lazy_play = common_play
+ }
+ } else {
+ lazy_play = common_play
+ }
+ if (Array.isArray(rule.play_json) && rule.play_json.length > 0) {
+ let web_url = lazy_play.url;
+ for (let pjson of rule.play_json) {
+ if (pjson.re && (pjson.re === "*" || web_url.match(new RegExp(pjson.re)))) {
+ if (pjson.json && typeof pjson.json === "object") {
+ let base_json = pjson.json;
+ lazy_play = Object.assign(lazy_play, base_json);
+ break
+ }
+ }
+ }
+ } else if (rule.play_json && !Array.isArray(rule.play_json)) {
+ let base_json = {
+ jx: 1,
+ parse: 1
+ };
+ lazy_play = Object.assign(lazy_play, base_json)
+ } else if (!rule.play_json) {
+ let base_json = {
+ jx: 0,
+ parse: 1
+ };
+ lazy_play = Object.assign(lazy_play, base_json)
+ }
+ console.log(JSON.stringify(lazy_play));
+ return JSON.stringify(lazy_play)
+}
+
+function proxyParse(proxyObj) {
+ var input = proxyObj.params;
+ if (proxyObj.proxy_rule) {
+ log("准备执行本地代理规则:\n" + proxyObj.proxy_rule);
+ try {
+ eval(proxyObj.proxy_rule);
+ if (input && input !== proxyObj.params && Array.isArray(input) && input.length >= 3) {
+ return input
+ } else {
+ return [404, "text/plain", "Not Found"]
+ }
+ } catch (e) {
+ return [500, "text/plain", "代理规则错误:" + e.message]
+ }
+ } else {
+ return [404, "text/plain", "Not Found"]
+ }
+}
+
+function isVideoParse(isVideoObj) {
+ var input = isVideoObj.url;
+ if (!isVideoObj.t) {
+ let re_matcher = new RegExp(isVideoObj.isVideo, "i");
+ return re_matcher.test(input)
+ } else {
+ try {
+ eval(isVideoObj.isVideo);
+ if (typeof input === "boolean") {
+ return input
+ } else {
+ return false
+ }
+ } catch (e) {
+ log(`执行嗅探规则发生错误:${e.message}`);
+ return false
+ }
+ }
+}
+
+function getOriginalJs(js_code) {
+ let current_match = /var rule|[\u4E00-\u9FA5]+|function|let |var |const |\(|\)|"|'/;
+ if (current_match.test(js_code)) {
+ return js_code
+ }
+ let rsa_private_key = "MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQCqin/jUpqM6+fgYP/oMqj9zcdHMM0mEZXLeTyixIJWP53lzJV2N2E3OP6BBpUmq2O1a9aLnTIbADBaTulTNiOnVGoNG58umBnupnbmmF8iARbDp2mTzdMMeEgLdrfXS6Y3VvazKYALP8EhEQykQVarexR78vRq7ltY3quXx7cgI0ROfZz5Sw3UOLQJ+VoWmwIxu9AMEZLVzFDQN93hzuzs3tNyHK6xspBGB7zGbwCg+TKi0JeqPDrXxYUpAz1cQ/MO+Da0WgvkXnvrry8NQROHejdLVOAslgr6vYthH9bKbsGyNY3H+P12kcxo9RAcVveONnZbcMyxjtF5dWblaernAgMBAAECggEAGdEHlSEPFmAr5PKqKrtoi6tYDHXdyHKHC5tZy4YV+Pp+a6gxxAiUJejx1hRqBcWSPYeKne35BM9dgn5JofgjI5SKzVsuGL6bxl3ayAOu+xXRHWM9f0t8NHoM5fdd0zC3g88dX3fb01geY2QSVtcxSJpEOpNH3twgZe6naT2pgiq1S4okpkpldJPo5GYWGKMCHSLnKGyhwS76gF8bTPLoay9Jxk70uv6BDUMlA4ICENjmsYtd3oirWwLwYMEJbSFMlyJvB7hjOjR/4RpT4FPnlSsIpuRtkCYXD4jdhxGlvpXREw97UF2wwnEUnfgiZJ2FT/MWmvGGoaV/CfboLsLZuQKBgQDTNZdJrs8dbijynHZuuRwvXvwC03GDpEJO6c1tbZ1s9wjRyOZjBbQFRjDgFeWs9/T1aNBLUrgsQL9c9nzgUziXjr1Nmu52I0Mwxi13Km/q3mT+aQfdgNdu6ojsI5apQQHnN/9yMhF6sNHg63YOpH+b+1bGRCtr1XubuLlumKKscwKBgQDOtQ2lQjMtwsqJmyiyRLiUOChtvQ5XI7B2mhKCGi8kZ+WEAbNQcmThPesVzW+puER6D4Ar4hgsh9gCeuTaOzbRfZ+RLn3Aksu2WJEzfs6UrGvm6DU1INn0z/tPYRAwPX7sxoZZGxqML/z+/yQdf2DREoPdClcDa2Lmf1KpHdB+vQKBgBXFCVHz7a8n4pqXG/HvrIMJdEpKRwH9lUQS/zSPPtGzaLpOzchZFyQQBwuh1imM6Te+VPHeldMh3VeUpGxux39/m+160adlnRBS7O7CdgSsZZZ/dusS06HAFNraFDZf1/VgJTk9BeYygX+AZYu+0tReBKSs9BjKSVJUqPBIVUQXAoGBAJcZ7J6oVMcXxHxwqoAeEhtvLcaCU9BJK36XQ/5M67ceJ72mjJC6/plUbNukMAMNyyi62gO6I9exearecRpB/OGIhjNXm99Ar59dAM9228X8gGfryLFMkWcO/fNZzb6lxXmJ6b2LPY3KqpMwqRLTAU/zy+ax30eFoWdDHYa4X6e1AoGAfa8asVGOJ8GL9dlWufEeFkDEDKO9ww5GdnpN+wqLwePWqeJhWCHad7bge6SnlylJp5aZXl1+YaBTtOskC4Whq9TP2J+dNIgxsaF5EFZQJr8Xv+lY9lu0CruYOh9nTNF9x3nubxJgaSid/7yRPfAGnsJRiknB5bsrCvgsFQFjJVs=";
+ let decode_content = "";
+
+ function aes_decrypt(data) {
+ let key = CryptoJS.enc.Hex.parse("686A64686E780A0A0A0A0A0A0A0A0A0A");
+ let iv = CryptoJS.enc.Hex.parse("647A797964730A0A0A0A0A0A0A0A0A0A");
+ let encrypted = CryptoJS.AES.decrypt({
+ ciphertext: CryptoJS.enc.Base64.parse(data)
+ }, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ }).toString(CryptoJS.enc.Utf8);
+ return encrypted
+ }
+ let error_log = false;
+
+ function logger(text) {
+ if (error_log) {
+ log(text)
+ }
+ }
+ let decode_funcs = [text => {
+ try {
+ return ungzip(text)
+ } catch (e) {
+ logger("非gzip加密");
+ return ""
+ }
+ }, text => {
+ try {
+ return base64Decode(text)
+ } catch (e) {
+ logger("非b64加密");
+ return ""
+ }
+ }, text => {
+ try {
+ return aes_decrypt(text)
+ } catch (e) {
+ logger("非aes加密");
+ return ""
+ }
+ }, text => {
+ try {
+ return RSA.decode(text, rsa_private_key, null)
+ } catch (e) {
+ logger("非rsa加密");
+ return ""
+ }
+ }];
+ let func_index = 0;
+ while (!current_match.test(decode_content)) {
+ decode_content = decode_funcs[func_index](js_code);
+ func_index++;
+ if (func_index >= decode_funcs.length) {
+ break
+ }
+ }
+ return decode_content
+}
+
+function runMain(main_func_code, arg) {
+ let mainFunc = function() {
+ return ""
+ };
+ try {
+ eval(main_func_code + "\nmainFunc=main;");
+ return mainFunc(arg)
+ } catch (e) {
+ log(`执行main_funct发生了错误:${e.message}`);
+ return ""
+ }
+}
+
+function init(ext) {
+ console.log("init");
+ rule = {};
+ rule_fetch_params = {};
+ fetch_params = null;
+ try {
+ let muban = 模板.getMubans();
+ if (typeof ext == "object") {
+ rule = ext
+ } else if (typeof ext == "string") {
+ let is_file = ext.startsWith("file://");
+ if (ext.startsWith("http") || is_file) {
+ let query = getQuery(ext);
+ if (is_file) {
+ ext = ext.split("?")[0]
+ }
+ let js = request(ext, {
+ method: "GET"
+ });
+ if (js) {
+ js = getOriginalJs(js);
+ eval("(function(){" + js.replace("var rule", "rule") + "})()")
+ }
+ if (query.type === "url" && query.params) {
+ if (is_file && /^http/.test(query.params)) {
+ rule.params = query.params
+ } else {
+ rule.params = urljoin(ext, query.params)
+ }
+ } else if (query.params) {
+ rule.params = query.params
+ }
+ } else {
+ ext = getOriginalJs(ext);
+ eval("(function(){" + ext.replace("var rule", "rule") + "})()")
+ }
+ } else {
+ console.log(`规则加载失败,不支持的规则类型:${typeof ext}`);
+ return
+ }
+ rule.host = (rule.host || "").rstrip("/");
+ HOST = rule.host;
+ if (rule.hostJs) {
+ console.log(`检测到hostJs,准备执行...`);
+ try {
+ eval(rule.hostJs);
+ rule.host = HOST.rstrip("/")
+ } catch (e) {
+ console.log(`执行${rule.hostJs}获取host发生错误:${e.message}`)
+ }
+ }
+ if (rule["模板"] === "自动") {
+ try {
+ let host_headers = rule["headers"] || {};
+ let host_html = getCode(HOST, {
+ headers: host_headers
+ });
+ let match_muban = "";
+ let muban_keys = Object.keys(muban).filter(it => !/默认|短视2|采集1/.test(it));
+ for (let muban_key of muban_keys) {
+ try {
+ let host_data = JSON.parse(home({}, host_html, muban[muban_key].class_parse));
+ if (host_data.class && host_data.class.length > 0) {
+ match_muban = muban_key;
+ console.log(`自动匹配模板:【${muban_key}】`);
+ break
+ }
+ } catch (e) {
+ console.log(`自动匹配模板:【${muban_key}】错误:${e.message}`)
+ }
+ }
+ if (match_muban) {
+ muban["自动"] = muban[match_muban];
+ if (rule["模板修改"] && rule["模板修改"].startsWith("js:")) {
+ eval(rule["模板修改"].replace("js:", "").trim())
+ }
+ } else {
+ delete rule["模板"]
+ }
+ } catch (e) {
+ delete rule["模板"]
+ }
+ }
+ if (rule.模板 && muban.hasOwnProperty(rule.模板)) {
+ print("继承模板:" + rule.模板);
+ rule = Object.assign(muban[rule.模板], rule)
+ }
+ let rule_cate_excludes = (rule.cate_exclude || "").split("|").filter(it => it.trim());
+ let rule_tab_excludes = (rule.tab_exclude || "").split("|").filter(it => it.trim());
+ rule_cate_excludes = rule_cate_excludes.concat(CATE_EXCLUDE.split("|").filter(it => it.trim()));
+ rule_tab_excludes = rule_tab_excludes.concat(TAB_EXCLUDE.split("|").filter(it => it.trim()));
+ rule.cate_exclude = rule_cate_excludes.join("|");
+ rule.tab_exclude = rule_tab_excludes.join("|");
+ rule.类型 = rule.类型 || "影视";
+ rule.url = rule.url || "";
+ rule.double = rule.double || false;
+ rule.homeUrl = rule.homeUrl || "";
+ rule.detailUrl = rule.detailUrl || "";
+ rule.searchUrl = rule.searchUrl || "";
+ rule.homeUrl = rule.host && rule.homeUrl ? urljoin(rule.host, rule.homeUrl) : rule.homeUrl || rule.host;
+ rule.homeUrl = cheerio.jinja2(rule.homeUrl, {
+ rule: rule
+ });
+ rule.detailUrl = rule.host && rule.detailUrl ? urljoin(rule.host, rule.detailUrl) : rule.detailUrl;
+ rule.二级访问前 = rule.二级访问前 || "";
+ if (rule.url.includes("[") && rule.url.includes("]")) {
+ let u1 = rule.url.split("[")[0];
+ let u2 = rule.url.split("[")[1].split("]")[0];
+ rule.url = rule.host && rule.url ? urljoin(rule.host, u1) + "[" + urljoin(rule.host, u2) + "]" : rule.url
+ } else {
+ rule.url = rule.host && rule.url ? urljoin(rule.host, rule.url) : rule.url
+ }
+ if (rule.searchUrl.includes("[") && rule.searchUrl.includes("]") && !rule.searchUrl.includes("#")) {
+ let u1 = rule.searchUrl.split("[")[0];
+ let u2 = rule.searchUrl.split("[")[1].split("]")[0];
+ rule.searchUrl = rule.host && rule.searchUrl ? urljoin(rule.host, u1) + "[" + urljoin(rule.host, u2) + "]" : rule.searchUrl
+ } else {
+ rule.searchUrl = rule.host && rule.searchUrl ? urljoin(rule.host, rule.searchUrl) : rule.searchUrl
+ }
+ rule.timeout = rule.timeout || 5e3;
+ rule.encoding = rule.编码 || rule.encoding || "utf-8";
+ rule.search_encoding = rule.搜索编码 || rule.search_encoding || "";
+ rule.图片来源 = rule.图片来源 || "";
+ rule.图片替换 = rule.图片替换 || "";
+ rule.play_json = rule.hasOwnProperty("play_json") ? rule.play_json : [];
+ rule.pagecount = rule.hasOwnProperty("pagecount") ? rule.pagecount : {};
+ rule.proxy_rule = rule.hasOwnProperty("proxy_rule") ? rule.proxy_rule : "";
+ if (!rule.hasOwnProperty("sniffer")) {
+ rule.sniffer = false
+ }
+ rule.sniffer = rule.hasOwnProperty("sniffer") ? rule.sniffer : "";
+ rule.sniffer = !!(rule.sniffer && rule.sniffer !== "0" && rule.sniffer !== "false");
+ rule.isVideo = rule.hasOwnProperty("isVideo") ? rule.isVideo : "";
+ if (rule.sniffer && !rule.isVideo) {
+ rule.isVideo = "http((?!http).){12,}?\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|m4a|mp3)\\?.*|http((?!http).){12,}\\.(m3u8|mp4|flv|avi|mkv|rm|wmv|mpg|m4a|mp3)|http((?!http).)*?video/tos*|http((?!http).)*?obj/tos*"
+ }
+ rule.tab_remove = rule.hasOwnProperty("tab_remove") ? rule.tab_remove : [];
+ rule.tab_order = rule.hasOwnProperty("tab_order") ? rule.tab_order : [];
+ rule.tab_rename = rule.hasOwnProperty("tab_rename") ? rule.tab_rename : {};
+ if (rule.headers && typeof rule.headers === "object") {
+ try {
+ let header_keys = Object.keys(rule.headers);
+ for (let k of header_keys) {
+ if (k.toLowerCase() === "user-agent") {
+ let v = rule.headers[k];
+ console.log(v);
+ if (["MOBILE_UA", "PC_UA", "UC_UA", "IOS_UA", "UA"].includes(v)) {
+ rule.headers[k] = eval(v)
+ }
+ } else if (k.toLowerCase() === "cookie") {
+ let v = rule.headers[k];
+ if (v && v.startsWith("http")) {
+ console.log(v);
+ try {
+ v = fetch(v);
+ console.log(v);
+ rule.headers[k] = v
+ } catch (e) {
+ console.log(`从${v}获取cookie发生错误:${e.message}`)
+ }
+ }
+ }
+ }
+ } catch (e) {
+ console.log(`处理headers发生错误:${e.message}`)
+ }
+ } else {
+ rule.headers = {}
+ }
+ oheaders = deepCopy(rule.headers);
+ rule_fetch_params = {
+ headers: rule.headers,
+ timeout: rule.timeout,
+ encoding: rule.encoding
+ };
+ RKEY = typeof key !== "undefined" && key ? key : "drpy_" + (rule.title || rule.host);
+ pre();
+ init_test()
+ } catch (e) {
+ console.log(`init_test发生错误:${e.message}`)
+ }
+}
+let homeHtmlCache = undefined;
+
+function home(filter, home_html, class_parse) {
+ console.log("home");
+ home_html = home_html || "";
+ class_parse = class_parse || "";
+ if (typeof rule.filter === "string" && rule.filter.trim().length > 0) {
+ try {
+ let filter_json = ungzip(rule.filter.trim());
+ rule.filter = JSON.parse(filter_json)
+ } catch (e) {
+ rule.filter = {}
+ }
+ }
+ let homeObj = {
+ filter: rule.filter || false,
+ MY_URL: rule.homeUrl,
+ class_name: rule.class_name || "",
+ class_url: rule.class_url || "",
+ class_parse: class_parse || rule.class_parse || "",
+ cate_exclude: rule.cate_exclude,
+ home_html: home_html
+ };
+ return homeParse(homeObj)
+}
+
+function homeVod(params) {
+ console.log("homeVod");
+ let homeVodObj = {
+ "推荐": rule.推荐,
+ double: rule.double,
+ homeUrl: rule.homeUrl,
+ detailUrl: rule.detailUrl
+ };
+ return homeVodParse(homeVodObj)
+}
+
+function category(tid, pg, filter, extend) {
+ let cateObj = {
+ url: rule.url,
+ "一级": rule.一级,
+ tid: tid,
+ pg: parseInt(pg),
+ filter: filter,
+ extend: extend
+ };
+ return categoryParse(cateObj)
+}
+
+function detail(vod_url) {
+ let orId = vod_url;
+ let fyclass = "";
+ log("orId:" + orId);
+ if (vod_url.indexOf("$") > -1) {
+ let tmp = vod_url.split("$");
+ fyclass = tmp[0];
+ vod_url = tmp[1]
+ }
+ let detailUrl = vod_url.split("@@")[0];
+ let url;
+ if (!detailUrl.startsWith("http") && !detailUrl.includes("/")) {
+ url = rule.detailUrl.replaceAll("fyid", detailUrl).replaceAll("fyclass", fyclass)
+ } else if (detailUrl.includes("/")) {
+ url = urljoin(rule.homeUrl, detailUrl)
+ } else {
+ url = detailUrl
+ }
+ let detailObj = {
+ orId: orId,
+ url: url,
+ "二级": rule.二级,
+ "二级访问前": rule.二级访问前,
+ detailUrl: detailUrl,
+ fyclass: fyclass,
+ tab_exclude: rule.tab_exclude
+ };
+ return detailParse(detailObj)
+}
+
+function play(flag, id, flags) {
+ let playObj = {
+ url: id,
+ flag: flag,
+ flags: flags
+ };
+ return playParse(playObj)
+}
+
+function search(wd, quick, pg) {
+ if (rule.search_encoding) {
+ if (rule.search_encoding.toLowerCase() !== "utf-8") {
+ wd = encodeStr(wd, rule.search_encoding)
+ }
+ } else if (rule.encoding && rule.encoding.toLowerCase() !== "utf-8") {
+ wd = encodeStr(wd, rule.encoding)
+ }
+ let searchObj = {
+ searchUrl: rule.searchUrl,
+ "搜索": rule.搜索,
+ wd: wd,
+ pg: pg || 1,
+ quick: quick
+ };
+ return searchParse(searchObj)
+}
+
+function proxy(params) {
+ if (rule.proxy_rule && rule.proxy_rule.trim()) {
+ rule.proxy_rule = rule.proxy_rule.trim()
+ }
+ if (rule.proxy_rule.startsWith("js:")) {
+ rule.proxy_rule = rule.proxy_rule.replace("js:", "")
+ }
+ let proxyObj = {
+ params: params,
+ proxy_rule: rule.proxy_rule
+ };
+ return proxyParse(proxyObj)
+}
+
+function sniffer() {
+ let enable_sniffer = rule.sniffer || false;
+ if (enable_sniffer) {
+ log("开始执行辅助嗅探代理规则...")
+ }
+ return enable_sniffer
+}
+
+function isVideo(url) {
+ let t = 0;
+ let is_video;
+ if (rule.isVideo && rule.isVideo.trim()) {
+ is_video = rule.isVideo.trim()
+ }
+ if (is_video.startsWith("js:")) {
+ is_video = is_video.replace("js:", "");
+ t = 1
+ }
+ let isVideoObj = {
+ url: url,
+ isVideo: is_video,
+ t: t
+ };
+ let result = isVideoParse(isVideoObj);
+ if (result) {
+ log("成功执行辅助嗅探规则并检测到视频地址:\n" + rule.isVideo)
+ }
+ return result
+}
+
+function getRule(key) {
+ return key ? rule[key] || "" : rule
+}
+
+function deepCopy(_obj) {
+ return JSON.parse(JSON.stringify(_obj))
+}
+
+function matchesAll(str, pattern, flatten) {
+ if (!pattern.global) {
+ pattern = new RegExp(pattern.source, "g" + (pattern.ignoreCase ? "i" : "") + (pattern.multiline ? "m" : ""))
+ }
+ var matches = [];
+ var match;
+ while ((match = pattern.exec(str)) !== null) {
+ matches.push(match)
+ }
+ return flatten ? matches.flat() : matches
+}
+
+function stringUtils() {
+ Object.defineProperties(String.prototype, {
+ replaceX: {
+ value: function(regex, replacement) {
+ let matches = matchesAll(this, regex, true);
+ if (matches && matches.length > 1) {
+ const hasCaptureGroup = /\$\d/.test(replacement);
+ if (hasCaptureGroup) {
+ return this.replace(regex, m => m.replace(regex, replacement))
+ } else {
+ return this.replace(regex, (m, p1) => m.replace(p1, replacement))
+ }
+ }
+ return this.replace(regex, replacement)
+ },
+ configurable: true,
+ enumerable: false,
+ writable: true
+ },
+ parseX: {
+ get: function() {
+ try {
+ return JSON.parse(this)
+ } catch (e) {
+ console.log(e.message);
+ return this.startsWith("[") ? [] : {}
+ }
+ },
+ configurable: true,
+ enumerable: false
+ }
+ })
+}
+
+function cut(text, start, end, method, All) {
+ let result = "";
+ let c = (t, s, e) => {
+ let result = "";
+ let rs = [];
+ let results = [];
+ try {
+ let lr = new RegExp(String.raw`${s}`.toString());
+ let rr = new RegExp(String.raw`${e}`.toString());
+ const segments = t.split(lr);
+ if (segments.length < 2) return "";
+ let cutSegments = segments.slice(1).map(segment => {
+ let splitSegment = segment.split(rr);
+ return splitSegment.length < 2 ? undefined : splitSegment[0] + e
+ }).filter(f => f);
+ if (All) {
+ return `[${cutSegments.join(",")}]`
+ } else {
+ return cutSegments[0]
+ }
+ } catch (e) {
+ console.log(`Error cutting text:${e.message}`)
+ }
+ return result
+ };
+ result = c(text, start, end);
+ stringUtils();
+ if (method && typeof method === "function") {
+ result = method(result)
+ }
+ return result
+}
+
+function DRPY() {
+ return {
+ runMain: runMain,
+ getRule: getRule,
+ init: init,
+ home: home,
+ homeVod: homeVod,
+ category: category,
+ detail: detail,
+ play: play,
+ search: search,
+ proxy: proxy,
+ sniffer: sniffer,
+ isVideo: isVideo,
+ fixAdM3u8Ai: fixAdM3u8Ai
+ }
+}
+export default {
+ runMain: runMain,
+ getRule: getRule,
+ init: init,
+ home: home,
+ homeVod: homeVod,
+ category: category,
+ detail: detail,
+ play: play,
+ search: search,
+ proxy: proxy,
+ sniffer: sniffer,
+ isVideo: isVideo,
+ fixAdM3u8Ai: fixAdM3u8Ai,
+ DRPY: DRPY
+};
\ No newline at end of file
diff --git a/libs/uri.min.js b/JS/uri.min.js
similarity index 100%
rename from libs/uri.min.js
rename to JS/uri.min.js
diff --git a/JS/三六零弹幕.js b/JS/三六零弹幕.js
new file mode 100644
index 0000000..40e1a25
--- /dev/null
+++ b/JS/三六零弹幕.js
@@ -0,0 +1,843 @@
+var rule = {
+ title: '360影视[官]',
+ host: 'https://www.360kan.com',
+ homeUrl: 'https://api.web.360kan.com/v1/rank?cat=2&size=9',
+ detailUrl: 'https://api.web.360kan.com/v1/detail?cat=fyclass&id=fyid',
+ searchUrl: 'https://api.so.360kan.com/index?force_v=1&kw=**&from=&pageno=fypage&v_ap=1&tab=all',
+ url: 'https://api.web.360kan.com/v1/fyfilter&size=35&pageno=fypage&callback=',
+ filterable: 1,
+ filter_url: 'filter/list?catid=fyclass&rank={{fl.排序}}&cat={{fl.类型}}&year={{fl.年代}}&area={{fl.地区}}',
+ filter: {
+ "1": [{
+ "key": "类型",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "喜剧",
+ "v": "喜剧"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "动作",
+ "v": "动作"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "剧情",
+ "v": "剧情"
+ }, {
+ "n": "犯罪",
+ "v": "犯罪"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "动画",
+ "v": "动画"
+ }, {
+ "n": "文艺",
+ "v": "文艺"
+ }, {
+ "n": "纪录",
+ "v": "纪录"
+ }, {
+ "n": "传记",
+ "v": "传记"
+ }, {
+ "n": "歌舞",
+ "v": "歌舞"
+ }, {
+ "n": "古装",
+ "v": "古装"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "惊悚",
+ "v": "惊悚"
+ }, {
+ "n": "伦理",
+ "v": "伦理"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "地区",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "大陆"
+ }, {
+ "n": "中国香港",
+ "v": "香港"
+ }, {
+ "n": "中国台湾",
+ "v": "台湾"
+ }, {
+ "n": "泰国",
+ "v": "泰国"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "韩国",
+ "v": "韩国"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "法国",
+ "v": "法国"
+ }, {
+ "n": "英国",
+ "v": "英国"
+ }, {
+ "n": "德国",
+ "v": "德国"
+ }, {
+ "n": "印度",
+ "v": "印度"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "年代",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "更早",
+ "v": "lt_year"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近热映",
+ "v": "rankhot"
+ }, {
+ "n": "最近上映",
+ "v": "ranklatest"
+ }, {
+ "n": "最受好评",
+ "v": "rankpoint"
+ }]
+ }],
+ "2": [{
+ "key": "类型",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "言情",
+ "v": "言情"
+ }, {
+ "n": "剧情",
+ "v": "剧情"
+ }, {
+ "n": "伦理",
+ "v": "伦理"
+ }, {
+ "n": "喜剧",
+ "v": "喜剧"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "都市",
+ "v": "都市"
+ }, {
+ "n": "偶像",
+ "v": "偶像"
+ }, {
+ "n": "古装",
+ "v": "古装"
+ }, {
+ "n": "军事",
+ "v": "军事"
+ }, {
+ "n": "警匪",
+ "v": "警匪"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "神话",
+ "v": "神话"
+ }, {
+ "n": "谍战",
+ "v": "谍战"
+ }, {
+ "n": "青春",
+ "v": "青春剧"
+ }, {
+ "n": "家庭",
+ "v": "家庭剧"
+ }, {
+ "n": "动作",
+ "v": "动作"
+ }, {
+ "n": "情景",
+ "v": "情景"
+ }, {
+ "n": "武侠",
+ "v": "武侠"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "地区",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "内地"
+ }, {
+ "n": "中国香港",
+ "v": "香港"
+ }, {
+ "n": "中国台湾",
+ "v": "台湾"
+ }, {
+ "n": "泰国",
+ "v": "泰国"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "韩国",
+ "v": "韩国"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "英国",
+ "v": "英国"
+ }, {
+ "n": "新加坡",
+ "v": "新加坡"
+ }]
+ }, {
+ "key": "年代",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "更早",
+ "v": "lt_year"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近热映",
+ "v": "rankhot"
+ }, {
+ "n": "最近上映",
+ "v": "ranklatest"
+ }, {
+ "n": "最受好评",
+ "v": "rankpoint"
+ }]
+ }],
+ "3": [{
+ "key": "类型",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "脱口秀",
+ "v": "脱口秀"
+ }, {
+ "n": "真人秀",
+ "v": "真人秀"
+ }, {
+ "n": "搞笑",
+ "v": "搞笑"
+ }, {
+ "n": "选秀",
+ "v": "选秀"
+ }, {
+ "n": "八卦",
+ "v": "八卦"
+ }, {
+ "n": "访谈",
+ "v": "访谈"
+ }, {
+ "n": "情感",
+ "v": "情感"
+ }, {
+ "n": "生活",
+ "v": "生活"
+ }, {
+ "n": "晚会",
+ "v": "晚会"
+ }, {
+ "n": "音乐",
+ "v": "音乐"
+ }, {
+ "n": "职场",
+ "v": "职场"
+ }, {
+ "n": "美食",
+ "v": "美食"
+ }, {
+ "n": "时尚",
+ "v": "时尚"
+ }, {
+ "n": "游戏",
+ "v": "游戏"
+ }, {
+ "n": "少儿",
+ "v": "少儿"
+ }, {
+ "n": "体育",
+ "v": "体育"
+ }, {
+ "n": "纪实",
+ "v": "纪实"
+ }, {
+ "n": "科教",
+ "v": "科教"
+ }, {
+ "n": "曲艺",
+ "v": "曲艺"
+ }, {
+ "n": "歌舞",
+ "v": "歌舞"
+ }, {
+ "n": "财经",
+ "v": "财经"
+ }, {
+ "n": "汽车",
+ "v": "汽车"
+ }, {
+ "n": "播报",
+ "v": "播报"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "地区",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "大陆"
+ }, {
+ "n": "中国香港",
+ "v": "香港"
+ }, {
+ "n": "中国台湾",
+ "v": "台湾"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "欧美",
+ "v": "欧美"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近热映",
+ "v": "rankhot"
+ }, {
+ "n": "最近上映",
+ "v": "ranklatest"
+ }]
+ }],
+ "4": [{
+ "key": "类型",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "热血",
+ "v": "热血"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "美少女",
+ "v": "美少女"
+ }, {
+ "n": "魔幻",
+ "v": "魔幻"
+ }, {
+ "n": "经典",
+ "v": "经典"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "少儿",
+ "v": "少儿"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "搞笑",
+ "v": "搞笑"
+ }, {
+ "n": "推理",
+ "v": "推理"
+ }, {
+ "n": "恋爱",
+ "v": "恋爱"
+ }, {
+ "n": "治愈",
+ "v": "治愈"
+ }, {
+ "n": "幻想",
+ "v": "幻想"
+ }, {
+ "n": "校园",
+ "v": "校园"
+ }, {
+ "n": "动物",
+ "v": "动物"
+ }, {
+ "n": "机战",
+ "v": "机战"
+ }, {
+ "n": "亲子",
+ "v": "亲子"
+ }, {
+ "n": "儿歌",
+ "v": "儿歌"
+ }, {
+ "n": "运动",
+ "v": "运动"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "怪物",
+ "v": "怪物"
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "益智",
+ "v": "益智"
+ }, {
+ "n": "青春",
+ "v": "青春"
+ }, {
+ "n": "童话",
+ "v": "童话"
+ }, {
+ "n": "竞技",
+ "v": "竞技"
+ }, {
+ "n": "动作",
+ "v": "动作"
+ }, {
+ "n": "社会",
+ "v": "社会"
+ }, {
+ "n": "友情",
+ "v": "友情"
+ }, {
+ "n": "真人版",
+ "v": "真人版"
+ }, {
+ "n": "电影版",
+ "v": "电影版"
+ }, {
+ "n": "OVA版",
+ "v": "OVA版"
+ }, {
+ "n": "TV版",
+ "v": "TV版"
+ }, {
+ "n": "新番动画",
+ "v": "新番动画"
+ }, {
+ "n": "完结动画",
+ "v": "完结动画"
+ }]
+ }, {
+ "key": "地区",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "大陆"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }]
+ }, {
+ "key": "年代",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "更早",
+ "v": "更早"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近热映",
+ "v": "rankhot"
+ }, {
+ "n": "最近上映",
+ "v": "ranklatest"
+ }]
+ }]
+ },
+ filter_def: {},
+ headers: {
+ 'User-Agent': 'MOBILE_UA'
+ },
+ timeout: 5000,
+ class_name: '电视剧&电影&综艺&动漫',
+ class_url: '2&1&3&4',
+ limit: 5,
+ multi: 1,
+ searchable: 2,
+ play_parse: true,
+ lazy: $js.toString(() => {
+ try {
+ let api = "" + input.split("?")[0];
+ console.log(api);
+ let response = fetch(api, {
+ method: 'get',
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ }
+ });
+ let bata = JSON.parse(response);
+ if (bata.url.includes("qq,qiyi,imgo,youku,leshi,bilibili1,m1905")) {
+ input = {
+ parse: 0,
+ url: bata.url,
+ jx: 0,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ } else {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ } catch {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ }),
+ // 疑似t4专用的
+ // lazy:'js:input={parse: 1, playUrl: "", jx: 1, url: input.split("?")[0]}',
+ // 手动调用解析请求json的url,此lazy不方便
+ // lazy:'js:input="https://cache.json.icu/home/api?type=ys&uid=292796&key=fnoryABDEFJNPQV269&url="+input.split("?")[0];log(input);let html=JSON.parse(request(input));log(html);input=html.url||input',
+ 推荐: 'json:data;title;cover;comment;cat+ent_id;description',
+ 一级: 'json:data.movies;title;cover;pubdate;id;description',
+ 二级: '',
+ 二级: $js.toString(() => {
+ let html = JSON.parse(fetch(input, fetch_params));
+ let data = html.data;
+ let tilte = data.title;
+ let img = data.cdncover;
+ let vod_type = data.moviecategory.join(",");
+ let area = data.area.join(",");
+ let director = data.director.join(",");
+ let actor = data.actor.join(",");
+ let content = data.description;
+ let base_vod = {
+ vod_id: input,
+ vod_name: tilte,
+ type_name: vod_type,
+ vod_actor: actor,
+ vod_director: director,
+ vod_content: content,
+ vod_remarks: area,
+ vod_pic: urljoin2(input, img)
+ };
+ let delta = 50;
+ let vod_play = {};
+ let sites = data.playlink_sites;
+ sites.forEach(function(site) {
+ let playList = "";
+ let vodItems = [];
+ print(data)
+ if (data.allupinfo) {
+ let total = parseInt(data.allupinfo[site]);
+ print(total)
+ for (let j = 1; j < total; j += delta) {
+ let end = Math.min(total, j + delta - 1);
+ print(end)
+ let url2 = buildUrl(input, {
+ start: j,
+ end: end,
+ site: site
+ });
+ let vod_data = JSON.parse(fetch(url2), fetch_params).data;
+ if (vod_data != null) {
+ if (vod_data.allepidetail) {
+ vod_data = vod_data.allepidetail[site];
+ vod_data.forEach(function(item, index) {
+ vodItems.push((item.playlink_num || "") + "$" + urlDeal(item.url || ""))
+ })
+ } else {
+ vod_data = vod_data.defaultepisode;
+ vod_data.forEach(function(item, index) {
+ vodItems.push((item.period || "") + (item.name || "") + "$" + urlDeal(item.url) || "")
+ })
+ }
+ }
+ }
+ } else {
+ let item = data.playlinksdetail[site];
+ vodItems.push((item.sort || "") + "$" + urlDeal(item.default_url || ""))
+ }
+ if (vodItems.length > 0) {
+ playList = vodItems.join("#")
+ }
+ if (playList.length < 1) {
+ return
+ }
+ vod_play[site] = playList
+ });
+ let tabs = Object.keys(vod_play);
+ let playUrls = [];
+ for (let id in tabs) {
+ print("id:" + id);
+ playUrls.push(vod_play[tabs[id]])
+ }
+ if (tabs.length > 0) {
+ let vod_play_from = tabs.join("$$$");
+ let vod_play_url = playUrls.join("$$$");
+ base_vod.vod_play_from = vod_play_from;
+ base_vod.vod_play_url = vod_play_url
+ }
+ VOD = base_vod;
+ }),
+ 搜索: 'json:data.longData.rows;titleTxt||titlealias;cover;cat_name;cat_id+en_id;description',
+}
\ No newline at end of file
diff --git a/JS/优酷弹幕.js b/JS/优酷弹幕.js
new file mode 100644
index 0000000..f335b99
--- /dev/null
+++ b/JS/优酷弹幕.js
@@ -0,0 +1,2299 @@
+var rule = {
+ title: '优酷[官]',
+ host: 'https://www.%79%6f%75%6b%75.com',
+ homeUrl: '',
+ searchUrl: 'https://search.%79%6f%75%6b%75.com/api/search?pg=fypage&keyword=**',
+ searchable: 2,
+ quickSearch: 0,
+ filterable: 1,
+ multi: 1,
+ url: '/category/data?optionRefresh=1&pageNo=fypage¶ms=fyfilter',
+ filter_url: '{{fl}}',
+ filter: {
+ "电视剧": [{
+ "key": "main_area",
+ "name": "全部地区",
+ "value": [{
+ "n": "全部地区",
+ "v": ""
+ }, {
+ "n": "内地剧",
+ "v": "中国内地"
+ }, {
+ "n": "港剧",
+ "v": "中国香港"
+ }, {
+ "n": "台剧",
+ "v": "中国台湾"
+ }, {
+ "n": "韩剧",
+ "v": "韩国"
+ }, {
+ "n": "美剧",
+ "v": "美国"
+ }, {
+ "n": "英剧",
+ "v": "英国"
+ }, {
+ "n": "日剧",
+ "v": "日本"
+ }, {
+ "n": "泰剧",
+ "v": "泰国"
+ }]
+ }, {
+ "key": "tags",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "青春",
+ "v": "青春"
+ }, {
+ "n": "古装",
+ "v": "古装"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "都市",
+ "v": "都市"
+ }, {
+ "n": "喜剧",
+ "v": "喜剧,搞笑"
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "军旅",
+ "v": "军旅"
+ }, {
+ "n": "谍战",
+ "v": "谍战"
+ }, {
+ "n": "偶像",
+ "v": "偶像"
+ }, {
+ "n": "警匪",
+ "v": "警匪"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "穿越",
+ "v": "穿越"
+ }, {
+ "n": "仙侠",
+ "v": "仙侠"
+ }, {
+ "n": "武侠",
+ "v": "武侠"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "罪案",
+ "v": "罪案"
+ }, {
+ "n": "家庭",
+ "v": "家庭"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "年代",
+ "v": "年代"
+ }, {
+ "n": "农村",
+ "v": "农村"
+ }]
+ }, {
+ "key": "year",
+ "name": "全部年份",
+ "value": [{
+ "n": "全部年份",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014-2011",
+ "v": "2011-2014"
+ }, {
+ "n": "更早",
+ "v": "-2010"
+ }]
+ }, {
+ "key": "status",
+ "name": "全部规格",
+ "value": [{
+ "n": "全部规格",
+ "v": ""
+ }, {
+ "n": "全网独播",
+ "v": "1"
+ }, {
+ "n": "优酷自制",
+ "v": "2"
+ }, {
+ "n": "已完结",
+ "v": "3"
+ }, {
+ "n": "即将上线",
+ "v": "4"
+ }, {
+ "n": "短剧",
+ "v": "5"
+ }]
+ }, {
+ "key": "pay_type",
+ "name": "付费类型",
+ "value": [{
+ "n": "付费类型",
+ "v": ""
+ }, {
+ "n": "免费",
+ "v": "0"
+ }, {
+ "n": "VIP",
+ "v": "2"
+ }, {
+ "n": "付费",
+ "v": "1"
+ }]
+ }, {
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "热度最高",
+ "v": "7"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }]
+ }],
+ "电影": [{
+ "key": "main_area",
+ "name": "全部地区",
+ "value": [{
+ "n": "全部地区",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "中国内地"
+ }, {
+ "n": "中国香港",
+ "v": "中国香港"
+ }, {
+ "n": "中国台湾",
+ "v": "中国台湾"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "印度",
+ "v": "印度"
+ }, {
+ "n": "日韩",
+ "v": "韩国,日本"
+ }, {
+ "n": "泰国",
+ "v": "泰国"
+ }, {
+ "n": "欧洲",
+ "v": "欧洲"
+ }]
+ }, {
+ "key": "tags",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "喜剧",
+ "v": "喜剧,搞笑"
+ }, {
+ "n": "动作",
+ "v": "动作"
+ }, {
+ "n": "怪兽",
+ "v": "怪兽"
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "武侠",
+ "v": "武侠"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "警匪",
+ "v": "警匪"
+ }, {
+ "n": "动画",
+ "v": "动画"
+ }, {
+ "n": "惊悚",
+ "v": "惊悚"
+ }, {
+ "n": "犯罪",
+ "v": "犯罪"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "剧情",
+ "v": "剧情"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "纪录片",
+ "v": "纪录片"
+ }, {
+ "n": "传记",
+ "v": "传记"
+ }, {
+ "n": "歌舞",
+ "v": "歌舞"
+ }, {
+ "n": "短片",
+ "v": "短片"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "source",
+ "name": "全部规格",
+ "value": [{
+ "n": "全部规格",
+ "v": ""
+ }, {
+ "n": "院线",
+ "v": "1"
+ }, {
+ "n": "网络电影",
+ "v": "0"
+ }, {
+ "n": "独播",
+ "v": "2"
+ }, {
+ "n": "高清修复",
+ "v": "3"
+ }, {
+ "n": "1080P",
+ "v": "4"
+ }]
+ }, {
+ "key": "year",
+ "name": "全部年份",
+ "value": [{
+ "n": "全部年份",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014-2010",
+ "v": "2010-2014"
+ }, {
+ "n": "2009-2000",
+ "v": "2000-2009"
+ }, {
+ "n": "90年代",
+ "v": "1990-1999"
+ }, {
+ "n": "80年代",
+ "v": "1980-1989"
+ }, {
+ "n": "70年代",
+ "v": "1970-1979"
+ }, {
+ "n": "更早",
+ "v": "-1969"
+ }]
+ }, {
+ "key": "pay_type",
+ "name": "付费类型",
+ "value": [{
+ "n": "付费类型",
+ "v": ""
+ }, {
+ "n": "免费",
+ "v": "0"
+ }, {
+ "n": "会员",
+ "v": "2"
+ }, {
+ "n": "点播",
+ "v": "1"
+ }]
+ }, {
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "热度最高",
+ "v": "7"
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }]
+ }, {
+ "key": "tag_label_name",
+ "name": "为你推荐",
+ "value": [{
+ "n": "为你推荐",
+ "v": ""
+ }, {
+ "n": "高分必看",
+ "v": "高分必看"
+ }, {
+ "n": "卖座电影",
+ "v": "卖座电影"
+ }, {
+ "n": "小说改编",
+ "v": "小说改编"
+ }, {
+ "n": "铁血硬汉",
+ "v": "铁血硬汉"
+ }, {
+ "n": "视效大片",
+ "v": "视效大片"
+ }, {
+ "n": "漫画改编",
+ "v": "漫画改编"
+ }, {
+ "n": "绝地求生",
+ "v": "绝地求生"
+ }, {
+ "n": "真人真事改编",
+ "v": "真人真事改编"
+ }, {
+ "n": "范伟",
+ "v": "范伟"
+ }, {
+ "n": "火爆枪战",
+ "v": "火爆枪战"
+ }, {
+ "n": "影史经典",
+ "v": "影史经典"
+ }, {
+ "n": "拯救世界",
+ "v": "拯救世界"
+ }, {
+ "n": "万茜",
+ "v": "万茜"
+ }, {
+ "n": "马思纯",
+ "v": "马思纯"
+ }, {
+ "n": "王俊凯",
+ "v": "王俊凯"
+ }, {
+ "n": "豪华阵容",
+ "v": "豪华阵容"
+ }, {
+ "n": "李玉",
+ "v": "李玉"
+ }, {
+ "n": "无厘头喜剧",
+ "v": "无厘头喜剧"
+ }, {
+ "n": "超能力",
+ "v": "超能力"
+ }, {
+ "n": "欢喜搭档",
+ "v": "欢喜搭档"
+ }]
+ }],
+ "综艺": [{
+ "key": "main_area",
+ "name": "全部地区",
+ "value": [{
+ "n": "全部地区",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "中国内地"
+ }, {
+ "n": "中国台湾",
+ "v": "中国台湾"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "英国",
+ "v": "英国"
+ }]
+ }, {
+ "key": "tags",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "偶像",
+ "v": "偶像"
+ }, {
+ "n": "舞蹈",
+ "v": "舞蹈"
+ }, {
+ "n": "音乐",
+ "v": "音乐"
+ }, {
+ "n": "情感",
+ "v": "情感"
+ }, {
+ "n": "喜剧",
+ "v": "喜剧,搞笑"
+ }, {
+ "n": "体育",
+ "v": "体育"
+ }, {
+ "n": "游戏",
+ "v": "游戏"
+ }, {
+ "n": "相声",
+ "v": "相声"
+ }, {
+ "n": "婚恋",
+ "v": "婚恋"
+ }, {
+ "n": "时尚",
+ "v": "时尚"
+ }, {
+ "n": "晚会",
+ "v": "晚会"
+ }, {
+ "n": "明星访谈",
+ "v": "明星访谈"
+ }, {
+ "n": "亲子",
+ "v": "亲子"
+ }, {
+ "n": "生活",
+ "v": "生活"
+ }, {
+ "n": "文化",
+ "v": "文化"
+ }, {
+ "n": "美食",
+ "v": "美食"
+ }, {
+ "n": "旅游",
+ "v": "旅游"
+ }, {
+ "n": "益智",
+ "v": "益智"
+ }]
+ }, {
+ "key": "year",
+ "name": "全部年份",
+ "value": [{
+ "n": "全部年份",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014-2011",
+ "v": "2011-2014"
+ }, {
+ "n": "更早",
+ "v": "-2010"
+ }]
+ }, {
+ "key": "status",
+ "name": "全部规格",
+ "value": [{
+ "n": "全部规格",
+ "v": ""
+ }, {
+ "n": "优酷自制",
+ "v": "2"
+ }, {
+ "n": "优酷独播",
+ "v": "1"
+ }, {
+ "n": "电视综艺",
+ "v": "6"
+ }, {
+ "n": "已完结",
+ "v": "3"
+ }, {
+ "n": "即将上线",
+ "v": "4"
+ }]
+ }, {
+ "key": "pay_type",
+ "name": "付费类型",
+ "value": [{
+ "n": "付费类型",
+ "v": ""
+ }, {
+ "n": "免费",
+ "v": "0"
+ }, {
+ "n": "VIP",
+ "v": "2"
+ }, {
+ "n": "付费",
+ "v": "1"
+ }]
+ }, {
+ "key": "sort",
+ "name": "热度最高",
+ "value": [{
+ "n": "热度最高",
+ "v": ""
+ }, {
+ "n": "最新更新",
+ "v": "8"
+ }, {
+ "n": "最近开播",
+ "v": "9"
+ }, {
+ "n": "最多评论",
+ "v": "4"
+ }]
+ }, {
+ "key": "tag_label_name",
+ "name": "为你推荐",
+ "value": [{
+ "n": "为你推荐",
+ "v": ""
+ }, {
+ "n": "舞台竞演",
+ "v": "舞台竞演"
+ }, {
+ "n": "刘雨昕",
+ "v": "刘雨昕"
+ }, {
+ "n": "王一博",
+ "v": "王一博"
+ }, {
+ "n": "韩庚",
+ "v": "韩庚"
+ }, {
+ "n": "李承铉",
+ "v": "李承铉"
+ }, {
+ "n": "户外竞技",
+ "v": "户外竞技"
+ }, {
+ "n": "浙江卫视",
+ "v": "浙江卫视"
+ }, {
+ "n": "东方卫视",
+ "v": "东方卫视"
+ }, {
+ "n": "岳云鹏",
+ "v": "岳云鹏"
+ }, {
+ "n": "王迅",
+ "v": "王迅"
+ }, {
+ "n": "杨迪",
+ "v": "杨迪"
+ }, {
+ "n": "杨超越",
+ "v": "杨超越"
+ }, {
+ "n": "黄明昊",
+ "v": "黄明昊"
+ }, {
+ "n": "郭京飞",
+ "v": "郭京飞"
+ }, {
+ "n": "欧阳娜娜",
+ "v": "欧阳娜娜"
+ }, {
+ "n": "德云社",
+ "v": "德云社"
+ }, {
+ "n": "郑恺",
+ "v": "郑恺"
+ }, {
+ "n": "华少",
+ "v": "华少"
+ }, {
+ "n": "郭德纲",
+ "v": "郭德纲"
+ }, {
+ "n": "贾玲",
+ "v": "贾玲"
+ }]
+ }],
+ "动漫": [{
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }]
+ }, {
+ "key": "main_area",
+ "name": "全部地区",
+ "value": [{
+ "n": "全部地区",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "中国内地"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "中国台湾",
+ "v": "中国台湾"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "tags",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "热血",
+ "v": "热血,战斗"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "玄幻",
+ "v": "玄幻"
+ }, {
+ "n": "古风",
+ "v": "历史,古风"
+ }, {
+ "n": "恋爱",
+ "v": "恋爱"
+ }, {
+ "n": "青春",
+ "v": "青春"
+ }, {
+ "n": "校园",
+ "v": "校园"
+ }, {
+ "n": "运动",
+ "v": "社团,运动"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "魔法",
+ "v": "魔法"
+ }, {
+ "n": "日常",
+ "v": "日常"
+ }, {
+ "n": "治愈",
+ "v": "治愈"
+ }, {
+ "n": "机战",
+ "v": "机战"
+ }, {
+ "n": "推理",
+ "v": "推理"
+ }, {
+ "n": "都市",
+ "v": "都市"
+ }, {
+ "n": "小说改",
+ "v": "小说改编"
+ }, {
+ "n": "游戏改",
+ "v": "游戏改编"
+ }, {
+ "n": "漫画改",
+ "v": "漫画改编"
+ }, {
+ "n": "动态漫",
+ "v": "动态漫画"
+ }, {
+ "n": "特摄",
+ "v": "特摄"
+ }, {
+ "n": "布袋戏",
+ "v": "布袋戏"
+ }]
+ }, {
+ "key": "completed",
+ "name": "连载情况",
+ "value": [{
+ "n": "连载情况",
+ "v": ""
+ }, {
+ "n": "更新中",
+ "v": "0"
+ }, {
+ "n": "已完结",
+ "v": "1"
+ }]
+ }, {
+ "key": "pay_type",
+ "name": "付费类型",
+ "value": [{
+ "n": "付费类型",
+ "v": ""
+ }, {
+ "n": "免费",
+ "v": "0"
+ }, {
+ "n": "会员",
+ "v": "2"
+ }]
+ }, {
+ "key": "year",
+ "name": "全部年份",
+ "value": [{
+ "n": "全部年份",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "00年代",
+ "v": "2000-2010"
+ }, {
+ "n": "更早",
+ "v": "-1999"
+ }]
+ }, {
+ "key": "tag_label_name",
+ "name": "为你推荐",
+ "value": [{
+ "n": "为你推荐",
+ "v": ""
+ }, {
+ "n": "3D动画",
+ "v": "3D动画"
+ }, {
+ "n": "搞笑日常",
+ "v": "搞笑日常"
+ }, {
+ "n": "大男主",
+ "v": "大男主"
+ }, {
+ "n": "高燃",
+ "v": "高燃"
+ }, {
+ "n": "萌系",
+ "v": "萌系"
+ }, {
+ "n": "修真",
+ "v": "修真"
+ }, {
+ "n": "怀旧",
+ "v": "怀旧"
+ }, {
+ "n": "超级英雄",
+ "v": "超级英雄"
+ }, {
+ "n": "水树奈奈",
+ "v": "水树奈奈"
+ }, {
+ "n": "张杰",
+ "v": "张杰"
+ }, {
+ "n": "石田彰",
+ "v": "石田彰"
+ }, {
+ "n": "守护地球",
+ "v": "守护地球"
+ }, {
+ "n": "圆谷",
+ "v": "圆谷"
+ }, {
+ "n": "山新",
+ "v": "山新"
+ }, {
+ "n": "复仇",
+ "v": "复仇"
+ }, {
+ "n": "废柴逆袭",
+ "v": "废柴逆袭"
+ }, {
+ "n": "侦探",
+ "v": "侦探"
+ }, {
+ "n": "无厘头",
+ "v": "无厘头"
+ }, {
+ "n": "青山刚昌",
+ "v": "青山刚昌"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }]
+ }],
+ "少儿": [{
+ "key": "main_area",
+ "name": "全部地区",
+ "value": [{
+ "n": "全部地区",
+ "v": ""
+ }, {
+ "n": "中国",
+ "v": "中国,香港,台湾"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "英国",
+ "v": "英国"
+ }, {
+ "n": "其他国家",
+ "v": "其他"
+ }]
+ }, {
+ "key": "show_label_type",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "动画",
+ "v": "动画"
+ }, {
+ "n": "儿歌",
+ "v": "儿歌"
+ }, {
+ "n": "玩具",
+ "v": "玩具"
+ }, {
+ "n": "动画电影",
+ "v": "电影"
+ }, {
+ "n": "绘本故事",
+ "v": "绘本故事"
+ }, {
+ "n": "真人",
+ "v": "真人"
+ }, {
+ "n": "少儿综艺",
+ "v": "少儿综艺"
+ }, {
+ "n": "亲子",
+ "v": "亲子"
+ }, {
+ "n": "探索纪实",
+ "v": "探索纪实"
+ }, {
+ "n": "音频",
+ "v": "音频"
+ }]
+ }, {
+ "key": "child_tags",
+ "name": "全部分类",
+ "value": [{
+ "n": "全部分类",
+ "v": ""
+ }, {
+ "n": "益智",
+ "v": "益智"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "幽默",
+ "v": "幽默"
+ }, {
+ "n": "机甲",
+ "v": "机甲"
+ }, {
+ "n": "公主魔法",
+ "v": "公主,魔法"
+ }, {
+ "n": "交通工具",
+ "v": "交通工具"
+ }, {
+ "n": "恐龙",
+ "v": "恐龙"
+ }, {
+ "n": "动物",
+ "v": "动物"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "友情",
+ "v": "友情"
+ }, {
+ "n": "战斗",
+ "v": "战斗"
+ }, {
+ "n": "校园",
+ "v": "校园"
+ }, {
+ "n": "正义",
+ "v": "正义"
+ }, {
+ "n": "热血",
+ "v": "热血"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "童话",
+ "v": "童话"
+ }, {
+ "n": "运动",
+ "v": "运动"
+ }, {
+ "n": "专注力",
+ "v": "专注力"
+ }, {
+ "n": "创造力",
+ "v": "创造力"
+ }, {
+ "n": "想象力",
+ "v": "想象力"
+ }, {
+ "n": "科普",
+ "v": "科普"
+ }, {
+ "n": "情商",
+ "v": "情商"
+ }, {
+ "n": "思维逻辑",
+ "v": "思维逻辑"
+ }, {
+ "n": "兴趣培养",
+ "v": "兴趣培养"
+ }, {
+ "n": "语文",
+ "v": "语文"
+ }, {
+ "n": "英语",
+ "v": "英语"
+ }, {
+ "n": "数学",
+ "v": "数学"
+ }, {
+ "n": "课程辅导",
+ "v": "课程辅导"
+ }]
+ }, {
+ "key": "age",
+ "name": "全部年龄",
+ "value": [{
+ "n": "全部年龄",
+ "v": ""
+ }, {
+ "n": "0-2岁",
+ "v": "0-2"
+ }, {
+ "n": "3-4岁",
+ "v": "3-4"
+ }, {
+ "n": "5-6岁",
+ "v": "5-6"
+ }, {
+ "n": "7岁以上",
+ "v": "7-"
+ }]
+ }, {
+ "key": "pay_type",
+ "name": "付费类型",
+ "value": [{
+ "n": "付费类型",
+ "v": ""
+ }, {
+ "n": "免费",
+ "v": "0"
+ }, {
+ "n": "付费",
+ "v": "1"
+ }, {
+ "n": "VIP",
+ "v": "2"
+ }]
+ }, {
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最多评论",
+ "v": "4"
+ }, {
+ "n": "最多收藏",
+ "v": "5"
+ }]
+ }],
+ "纪录片": [{
+ "key": "tags",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "美食",
+ "v": "美食"
+ }, {
+ "n": "自然",
+ "v": "自然"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "探险",
+ "v": "探险"
+ }, {
+ "n": "军事",
+ "v": "军事"
+ }, {
+ "n": "人物",
+ "v": "人物"
+ }, {
+ "n": "宇宙",
+ "v": "宇宙"
+ }, {
+ "n": "刑侦",
+ "v": "刑侦"
+ }, {
+ "n": "社会",
+ "v": "社会"
+ }, {
+ "n": "科技",
+ "v": "科技"
+ }, {
+ "n": "旅游",
+ "v": "旅游"
+ }]
+ }, {
+ "key": "company",
+ "name": "全部出品",
+ "value": [{
+ "n": "全部出品",
+ "v": ""
+ }, {
+ "n": "BBC",
+ "v": "bbc,british"
+ }, {
+ "n": "央视",
+ "v": "央视,中央电视台,cctv,中国广播电影电视节目交易中心"
+ }, {
+ "n": "国家地理",
+ "v": "国家地理"
+ }, {
+ "n": "Love Nature",
+ "v": "love nature"
+ }, {
+ "n": "LGI",
+ "v": "looking"
+ }, {
+ "n": "A&E",
+ "v": "ae"
+ }, {
+ "n": "OTF",
+ "v": "fence"
+ }]
+ }, {
+ "key": "year",
+ "name": "全部年份",
+ "value": [{
+ "n": "全部年份",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014-2011",
+ "v": "2011-2014"
+ }, {
+ "n": "更早",
+ "v": "-2010"
+ }]
+ }, {
+ "key": "pay_type",
+ "name": "付费类型",
+ "value": [{
+ "n": "付费类型",
+ "v": ""
+ }, {
+ "n": "免费",
+ "v": "0"
+ }, {
+ "n": "会员",
+ "v": "2"
+ }]
+ }, {
+ "key": "sort",
+ "name": "热度最高",
+ "value": [{
+ "n": "热度最高",
+ "v": ""
+ }, {
+ "n": "综合排序",
+ "v": "0"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最多收藏",
+ "v": "5"
+ }]
+ }],
+ "文化": [{
+ "key": "tags",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "谈话",
+ "v": "谈话"
+ }, {
+ "n": "脱口秀",
+ "v": "脱口秀"
+ }, {
+ "n": "访谈",
+ "v": "访谈"
+ }, {
+ "n": "讲座论坛",
+ "v": "讲座论坛"
+ }, {
+ "n": "戏曲曲艺",
+ "v": "戏曲,曲艺"
+ }, {
+ "n": "舞台剧",
+ "v": "舞台剧"
+ }, {
+ "n": "文学",
+ "v": "文学"
+ }, {
+ "n": "国学",
+ "v": "国学"
+ }, {
+ "n": "艺术",
+ "v": "艺术"
+ }, {
+ "n": "培训课程",
+ "v": "培训课程"
+ }, {
+ "n": "有声书",
+ "v": "有声书"
+ }]
+ }, {
+ "key": "people",
+ "name": "文化大咖",
+ "value": [{
+ "n": "文化大咖",
+ "v": ""
+ }, {
+ "n": "窦文涛",
+ "v": "窦文涛"
+ }, {
+ "n": "马未都",
+ "v": "马未都"
+ }, {
+ "n": "白岩松",
+ "v": "白岩松"
+ }, {
+ "n": "梅毅",
+ "v": "梅毅"
+ }, {
+ "n": "陈鲁豫",
+ "v": "陈鲁豫"
+ }, {
+ "n": "樊登",
+ "v": "樊登"
+ }, {
+ "n": "罗振宇",
+ "v": "罗振宇"
+ }, {
+ "n": "蒋方舟",
+ "v": "蒋方舟"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "year",
+ "name": "全部年份",
+ "value": [{
+ "n": "全部年份",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014-2011",
+ "v": "2011-2014"
+ }, {
+ "n": "更早",
+ "v": "-2010"
+ }]
+ }, {
+ "key": "pay_type",
+ "name": "付费类型",
+ "value": [{
+ "n": "付费类型",
+ "v": ""
+ }, {
+ "n": "免费",
+ "v": "0"
+ }, {
+ "n": "会员",
+ "v": "2"
+ }]
+ }, {
+ "key": "sort",
+ "name": "热度最高",
+ "value": [{
+ "n": "热度最高",
+ "v": ""
+ }, {
+ "n": "综合排序",
+ "v": "0"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最多收藏",
+ "v": "5"
+ }]
+ }],
+ "亲子": [{
+ "key": "qinzi_genre",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "孕产",
+ "v": "孕产"
+ }, {
+ "n": "育儿知识",
+ "v": "育儿知识,育儿达人,育儿专家,爸爸育儿,隔代育儿,育儿明星"
+ }, {
+ "n": "好物种草",
+ "v": "母婴用品,测评,母婴用品种草"
+ }, {
+ "n": "美食",
+ "v": "儿童美食,辅食,孕期饮食"
+ }, {
+ "n": "手工DIY",
+ "v": "手工diy"
+ }, {
+ "n": "教育观念",
+ "v": "教育观念"
+ }, {
+ "n": "亲子综艺",
+ "v": "亲子综艺"
+ }, {
+ "n": "亲子互动",
+ "v": "亲子旅游,亲子游戏,亲子阅读,玩具,早教,启蒙"
+ }, {
+ "n": "萌娃",
+ "v": "萌娃"
+ }, {
+ "n": "搞笑",
+ "v": "搞笑"
+ }, {
+ "n": "美妆",
+ "v": "美妆"
+ }]
+ }, {
+ "key": "pregnancy_stage",
+ "name": "全部阶段",
+ "value": [{
+ "n": "全部阶段",
+ "v": ""
+ }, {
+ "n": "备孕",
+ "v": "备孕"
+ }, {
+ "n": "孕早期",
+ "v": "孕早"
+ }, {
+ "n": "孕中期",
+ "v": "孕中"
+ }, {
+ "n": "孕晚期",
+ "v": "孕晚"
+ }]
+ }, {
+ "key": "show_label_baby_age",
+ "name": "全部分龄",
+ "value": [{
+ "n": "全部分龄",
+ "v": ""
+ }, {
+ "n": "0-1岁",
+ "v": "0-1"
+ }, {
+ "n": "1-3岁",
+ "v": "1-3"
+ }, {
+ "n": "3-6岁",
+ "v": "3-6"
+ }, {
+ "n": "6岁+",
+ "v": "6-"
+ }]
+ }, {
+ "key": "pay_type",
+ "name": "全部",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "免费",
+ "v": "0"
+ }, {
+ "n": "会员免费",
+ "v": "2"
+ }]
+ }, {
+ "key": "sort",
+ "name": "热度最高",
+ "value": [{
+ "n": "热度最高",
+ "v": ""
+ }, {
+ "n": "综合排序",
+ "v": "0"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最多评论",
+ "v": "3"
+ }, {
+ "n": "最多收藏",
+ "v": "5"
+ }]
+ }],
+ "教育": [{
+ "key": "tags",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "公开课",
+ "v": "公开课"
+ }, {
+ "n": "名人名嘴",
+ "v": "名人名嘴"
+ }, {
+ "n": "文化",
+ "v": "文化"
+ }, {
+ "n": "艺术",
+ "v": "艺术"
+ }, {
+ "n": "伦理社会",
+ "v": "伦理社会"
+ }, {
+ "n": "理工",
+ "v": "理工"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "心理学",
+ "v": "心理学"
+ }, {
+ "n": "经济",
+ "v": "经济"
+ }, {
+ "n": "管理学",
+ "v": "管理学"
+ }, {
+ "n": "外语",
+ "v": "外语"
+ }, {
+ "n": "法律",
+ "v": "法律"
+ }, {
+ "n": "计算机",
+ "v": "计算机"
+ }, {
+ "n": "哲学",
+ "v": "哲学"
+ }, {
+ "n": "职业培训",
+ "v": "职业培训"
+ }, {
+ "n": "家庭教育",
+ "v": "家庭教育"
+ }]
+ }, {
+ "key": "company",
+ "name": "全部出品",
+ "value": [{
+ "n": "全部出品",
+ "v": ""
+ }, {
+ "n": "TED",
+ "v": "ted"
+ }, {
+ "n": "耶鲁大学",
+ "v": "耶鲁大学"
+ }, {
+ "n": "哈佛大学",
+ "v": "哈佛大学"
+ }, {
+ "n": "斯坦福大学",
+ "v": "斯坦福大学"
+ }, {
+ "n": "麻省理工学院",
+ "v": "麻省理工学院"
+ }]
+ }, {
+ "key": "pay_type",
+ "name": "全部节目",
+ "value": [{
+ "n": "全部节目",
+ "v": ""
+ }, {
+ "n": "免费",
+ "v": "0"
+ }, {
+ "n": "付费",
+ "v": "1"
+ }, {
+ "n": "VIP",
+ "v": "2"
+ }]
+ }, {
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最多收藏",
+ "v": "5"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }]
+ }],
+ "搞笑": [{
+ "key": "division",
+ "name": "全部专区",
+ "value": [{
+ "n": "全部专区",
+ "v": ""
+ }, {
+ "n": "1080P",
+ "v": "3"
+ }, {
+ "n": "独播",
+ "v": "6"
+ }, {
+ "n": "免费",
+ "v": "5"
+ }]
+ }, {
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }]
+ }],
+ "生活": [{
+ "key": "division",
+ "name": "全部专区",
+ "value": [{
+ "n": "全部专区",
+ "v": ""
+ }, {
+ "n": "1080P",
+ "v": "3"
+ }, {
+ "n": "独播",
+ "v": "6"
+ }, {
+ "n": "VIP",
+ "v": "4"
+ }, {
+ "n": "免费",
+ "v": "5"
+ }]
+ }, {
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }]
+ }],
+ "体育": [{
+ "key": "division",
+ "name": "全部专区",
+ "value": [{
+ "n": "全部专区",
+ "v": ""
+ }, {
+ "n": "1080P",
+ "v": "3"
+ }, {
+ "n": "独播",
+ "v": "6"
+ }, {
+ "n": "VIP",
+ "v": "4"
+ }, {
+ "n": "免费",
+ "v": "5"
+ }]
+ }, {
+ "key": "tags",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "篮球",
+ "v": "篮球"
+ }, {
+ "n": "足球",
+ "v": "足球"
+ }, {
+ "n": "台球",
+ "v": "台球"
+ }, {
+ "n": "CBA",
+ "v": "CBA"
+ }, {
+ "n": "钓鱼",
+ "v": "钓鱼"
+ }]
+ }, {
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }]
+ }],
+ "音乐": [{
+ "key": "division",
+ "name": "全部专区",
+ "value": [{
+ "n": "全部专区",
+ "v": ""
+ }, {
+ "n": "1080P",
+ "v": "3"
+ }, {
+ "n": "独播",
+ "v": "6"
+ }, {
+ "n": "免费",
+ "v": "5"
+ }]
+ }, {
+ "key": "main_area",
+ "name": "全部地区",
+ "value": [{
+ "n": "全部地区",
+ "v": ""
+ }, {
+ "n": "中国",
+ "v": "中国"
+ }, {
+ "n": "中国台湾",
+ "v": "中国台湾"
+ }, {
+ "n": "中国香港",
+ "v": "中国香港"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "music_show_type",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "演唱会",
+ "v": "演唱会"
+ }, {
+ "n": "live现场",
+ "v": "live现场"
+ }, {
+ "n": "颁奖典礼",
+ "v": "颁奖典礼"
+ }, {
+ "n": "舞蹈",
+ "v": "舞蹈"
+ }, {
+ "n": "影视原声",
+ "v": "影视原声"
+ }, {
+ "n": "音乐达人",
+ "v": "音乐达人"
+ }, {
+ "n": "音乐教学",
+ "v": "音乐教学"
+ }, {
+ "n": "音乐纪录片",
+ "v": "音乐纪录片"
+ }, {
+ "n": "音乐mv",
+ "v": "音乐mv"
+ }, {
+ "n": "音乐自制",
+ "v": "音乐自制"
+ }]
+ }, {
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }]
+ }],
+ "游戏": [{
+ "key": "division",
+ "name": "全部专区",
+ "value": [{
+ "n": "全部专区",
+ "v": ""
+ }, {
+ "n": "1080P",
+ "v": "3"
+ }, {
+ "n": "独播",
+ "v": "6"
+ }, {
+ "n": "VIP",
+ "v": "4"
+ }, {
+ "n": "免费",
+ "v": "5"
+ }]
+ }, {
+ "key": "game_brand",
+ "name": "全部节目",
+ "value": [{
+ "n": "全部节目",
+ "v": ""
+ }, {
+ "n": "王者荣耀",
+ "v": "王者荣耀"
+ }, {
+ "n": "和平精英",
+ "v": "和平精英"
+ }, {
+ "n": "绝地求生",
+ "v": "绝地求生"
+ }, {
+ "n": "迷你世界",
+ "v": "迷你世界"
+ }, {
+ "n": "我的世界",
+ "v": "我的世界"
+ }, {
+ "n": "植物大战僵尸",
+ "v": "植物大战僵尸"
+ }, {
+ "n": "方舟生存进化",
+ "v": "方舟生存进化"
+ }, {
+ "n": "第五人格",
+ "v": "第五人格"
+ }, {
+ "n": "猫和老鼠",
+ "v": "猫和老鼠"
+ }, {
+ "n": "香肠派对",
+ "v": "香肠派对"
+ }, {
+ "n": "穿越火线",
+ "v": "穿越火线"
+ }, {
+ "n": "英雄联盟",
+ "v": "英雄联盟"
+ }]
+ }, {
+ "key": "tags",
+ "name": "全部类型",
+ "value": [{
+ "n": "全部类型",
+ "v": ""
+ }, {
+ "n": "资讯",
+ "v": "资讯"
+ }, {
+ "n": "解说",
+ "v": "解说"
+ }, {
+ "n": "主播",
+ "v": "主播"
+ }, {
+ "n": "沙盒",
+ "v": "沙盒"
+ }, {
+ "n": "益智",
+ "v": "益智"
+ }, {
+ "n": "生存",
+ "v": "生存"
+ }, {
+ "n": "电子竞技",
+ "v": "电子竞技"
+ }, {
+ "n": "单机主机",
+ "v": "单机主机"
+ }, {
+ "n": "真人秀",
+ "v": "真人秀"
+ }, {
+ "n": "动画",
+ "v": "动画"
+ }, {
+ "n": "盘点",
+ "v": "盘点"
+ }, {
+ "n": "游戏文化",
+ "v": "游戏文化"
+ }, {
+ "n": "游戏节目",
+ "v": "游戏节目"
+ }, {
+ "n": "评测",
+ "v": "评测"
+ }, {
+ "n": "射击",
+ "v": "射击"
+ }, {
+ "n": "策略",
+ "v": "策略"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "即时战略",
+ "v": "即时战略"
+ }, {
+ "n": "卡牌",
+ "v": "卡牌"
+ }, {
+ "n": "角色扮演",
+ "v": "角色>扮演"
+ }]
+ }, {
+ "key": "sort",
+ "name": "综合排序",
+ "value": [{
+ "n": "综合排序",
+ "v": ""
+ }, {
+ "n": "最多播放",
+ "v": "2"
+ }, {
+ "n": "最好评",
+ "v": "3"
+ }, {
+ "n": "最新上线",
+ "v": "1"
+ }]
+ }]
+ },
+ headers: {
+ 'User-Agent': 'PC_UA',
+ 'Cookie': 'cna=VvNvGX3e0ywCAavVEXlnA2bg; __ysuid=1626676228345Rl1; __ayft=1652434048647; __arycid=dm-1-00; __arcms=dm-1-00; __ayvstp=85; __arpvid=1667204023100cWWdgM-1667204023112; __ayscnt=10; __aypstp=60; isg=BBwcqxvvk3BxkWQGugbLpUSf7TrOlcC_U7GAj_YdfYfvQbzLHqYGT4Hgp6m5TvgX; tfstk=c3JOByYUH20ilVucLOhh0pCtE40lZfGc-PjLHLLfuX7SWNyAiQvkeMBsIw7PWDC..; l=eBQguS-PjdJFGJT-BOfwourza77OSIRA_uPzaNbMiOCPOb1B5UxfW6yHp4T6C3GVhsGJR3rp2umHBeYBqQd-nxvOF8qmSVDmn',
+ 'Referer': 'https://www.youku.com',
+ },
+ timeout: 5000,
+ class_name: '电视剧&电影&综艺&动漫&少儿&纪录片&文化&亲子&教育&搞笑&生活&体育&音乐&游戏',
+ class_url: '电视剧&电影&综艺&动漫&少儿&纪录片&文化&亲子&教育&搞笑&生活&体育&音乐&游戏',
+ limit: 20,
+ play_parse: true,
+ lazy: $js.toString(() => {
+ try {
+ let api = "" + input.split("?")[0];
+ console.log(api);
+ let response = fetch(api, {
+ method: 'get',
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ }
+ });
+ let bata = JSON.parse(response);
+ if (bata.url.includes("http")) {
+ input = {
+ parse: 0,
+ url: bata.url,
+ jx: 0,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ } else {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ } catch {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ }),
+ 一级: $js.toString(() => {
+ let d = [];
+ MY_FL.type = MY_CATE;
+ let fl = stringify(MY_FL);
+ fl = encodeUrl(fl);
+ input = input.split("{")[0] + fl;
+ if (MY_PAGE > 1) {
+ let old_session = getItem("yk_session_" + MY_CATE, "{}");
+ if (MY_PAGE === 2) {
+ input = input.replace("optionRefresh=1", "session=" + encodeUrl(old_session))
+ } else {
+ input = input.replace("optionRefresh=1", "session=" + encodeUrl(old_session))
+ }
+ }
+ let html = fetch(input, fetch_params);
+ try {
+ html = JSON.parse(html);
+ let lists = html.data.filterData.listData;
+ let session = html.data.filterData.session;
+ session = stringify(session);
+ if (session !== getItem("yk_session_" + MY_CATE, "{}")) {
+ setItem("yk_session_" + MY_CATE, session)
+ }
+ lists.forEach(function(it) {
+ let vid;
+ if (it.videoLink.includes("id_")) {
+ vid = it.videoLink.split("id_")[1].split(".html")[0]
+ } else {
+ vid = "msearch:"
+ }
+ d.push({
+ title: it.title,
+ img: it.img,
+ desc: it.summary,
+ url: "https://search.youku.com/api/search?appScene=show_episode&showIds=" + vid,
+ content: it.subTitle
+ })
+ })
+ } catch (e) {
+ log("一级列表解析发生错误:" + e.message)
+ }
+ setResult(d);
+ }),
+ 二级: $js.toString(() => {
+ var d = [];
+ VOD = {};
+ let html = request(input);
+ let json = JSON.parse(html);
+ if (/keyword/.test(input)) {
+ input = "https://search.youku.com/api/search?appScene=show_episode&showIds=" + json.pageComponentList[0].commonData.showId;
+ json = JSON.parse(fetch(MY_URL, fetch_params))
+ }
+ let video_lists = json.serisesList;
+ var name = json.sourceName;
+ if (/优酷/.test(name) && video_lists.length > 0) {
+ let ourl = "https://v.youku.com/v_show/id_" + video_lists[0].videoId + ".html";
+ let _img = video_lists[0].thumbUrl;
+ let html = fetch(ourl, {
+ headers: {
+ Referer: "https://v.youku.com/",
+ "User-Agent": PC_UA
+ }
+ });
+ let json = /__INITIAL_DATA__/.test(html) ? html.split("window.__INITIAL_DATA__ =")[1].split(";")[0] : "{}";
+ if (json === "{}") {
+ log("触发了优酷人机验证");
+ VOD.vod_remarks = ourl;
+ VOD.vod_pic = _img;
+ VOD.vod_name = video_lists[0].title.replace(/(\d+)/g, "");
+ VOD.vod_content = "触发了优酷人机验证,本次未获取详情,但不影响播放(" + ourl + ")"
+ } else {
+ try {
+ json = JSON.parse(json);
+ let data = json.data.data;
+ let data_extra = data.data.extra;
+ let img = data_extra.showImgV;
+ let model = json.data.model;
+ let m = model.detail.data.nodes[0].nodes[0].nodes[0].data;
+ let _type = m.showGenre;
+ let _desc = m.updateInfo || m.subtitle;
+ let JJ = m.desc;
+ let _title = m.introTitle;
+ VOD.vod_pic = img;
+ VOD.vod_name = _title;
+ VOD.vod_type = _type;
+ VOD.vod_remarks = _desc;
+ VOD.vod_content = JJ
+ } catch (e) {
+ log("海报渲染发生错误:" + e.message);
+ print(json);
+ VOD.vod_remarks = name
+ }
+ }
+ }
+ if (!/优酷/.test(name)) {
+ VOD.vod_content = "非自家播放源,暂无视频简介及海报";
+ VOD.vod_remarks = name
+ }
+
+ function adhead(url) {
+ return urlencode(url)
+ }
+
+ play_url = play_url.replace("&play_url=", "&type=json&play_url=");
+ video_lists.forEach(function(it) {
+ let url = "https://v.youku.com/v_show/id_" + it.videoId + ".html";
+ if (it.thumbUrl) {
+ d.push({
+ desc: it.showVideoStage ? it.showVideoStage.replace("期", "集") : it.displayName,
+ pic_url: it.thumbUrl,
+ title: it.title,
+ url: play_url + adhead(url)
+ })
+ } else if (name !== "优酷") {
+ d.push({
+ title: it.displayName ? it.displayName : it.title,
+ url: play_url + adhead(it.url)
+ })
+ }
+ });
+ VOD.vod_play_from = name;
+ VOD.vod_play_url = d.map(function(it) {
+ return it.title + "$" + it.url
+ })
+ .join("#");
+ }),
+
+ 搜索: $js.toString(() => {
+ var d = [];
+ let html = request(input);
+ let json = JSON.parse(html);
+ json.pageComponentList.forEach(function(it) {
+ if (it.hasOwnProperty("commonData")) {
+ it = it.commonData;
+ d.push({
+ title: it.titleDTO.displayName,
+ img: it.posterDTO.vThumbUrl,
+ desc: it.stripeBottom,
+ content: it.updateNotice + " " + it.feature,
+ url: "https://search.youku.com/api/search?appScene=show_episode&showIds=" + it.showId + "&appCaller=h5"
+ })
+ }
+ });
+ setResult(d)
+ }),
+}
\ No newline at end of file
diff --git a/JS/剧圈圈.js b/JS/剧圈圈.js
new file mode 100644
index 0000000..94036de
--- /dev/null
+++ b/JS/剧圈圈.js
@@ -0,0 +1,12 @@
+Object.assign(muban.mxpro.二级, {
+ tab_text: 'div--small&&Text',
+});
+var rule = {
+ 模板: 'mxpro',
+ title: '剧圈圈',
+ host: 'https://www.jqqzx.cc/',
+ url: '/vodshow/id/fyclass/page/fypage.html',
+ searchUrl: '/vodsearch**/page/fypage.html',
+ class_parse: '.navbar-items li:gt(2):lt(8);a&&Text;a&&href;.*/(.*?)\.html',
+ cate_exclude: '今日更新|热榜',
+}
\ No newline at end of file
diff --git a/JS/动漫岛.js b/JS/动漫岛.js
new file mode 100644
index 0000000..1ffcc71
--- /dev/null
+++ b/JS/动漫岛.js
@@ -0,0 +1,1100 @@
+var rule = {
+ title: '动漫岛',
+ // host:'http://www.dmd85.com',
+ // host:'http://www.88dmw.com',
+ host: 'http://www.dmand5.com',
+ // url:'/vod-list-id-fyclass-pg-fypage-order--by-{by}-class-{class}-year-{year}-letter--area--lang-.html',
+ url: '/vod-list-id-fyclass-pg-fypage-order-fyfilter-area--lang-.html',
+ filterable: 1, //是否启用分类筛选,
+ filter_url: '-by-{{fl.by}}-class-{{fl.class}}-year-{{fl.year}}-letter-{{fl.letter}}',
+ filter: {
+ "1": [{
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "1"
+ }, {
+ "n": "热血",
+ "v": "2"
+ }, {
+ "n": "奇幻",
+ "v": "3"
+ }, {
+ "n": "恋爱",
+ "v": "4"
+ }, {
+ "n": "校园",
+ "v": "5"
+ }, {
+ "n": "后宫",
+ "v": "6"
+ }, {
+ "n": "搞笑",
+ "v": "7"
+ }, {
+ "n": "青春",
+ "v": "8"
+ }, {
+ "n": "百合",
+ "v": "9"
+ }, {
+ "n": "科幻",
+ "v": "14"
+ }, {
+ "n": "推理",
+ "v": "13"
+ }, {
+ "n": "魔法",
+ "v": "12"
+ }, {
+ "n": "神魔",
+ "v": "11"
+ }, {
+ "n": "治愈",
+ "v": "10"
+ }, {
+ "n": "竞技",
+ "v": "59"
+ }, {
+ "n": "悬疑",
+ "v": "60"
+ }, {
+ "n": "战争",
+ "v": "62"
+ }, {
+ "n": "萝莉",
+ "v": "63"
+ }, {
+ "n": "魔幻",
+ "v": "64"
+ }, {
+ "n": "战斗",
+ "v": "65"
+ }, {
+ "n": "歌舞",
+ "v": "98"
+ }, {
+ "n": "历史",
+ "v": "99"
+ }, {
+ "n": "励志",
+ "v": "108"
+ }, {
+ "n": "偶像",
+ "v": "118"
+ }, {
+ "n": "职场",
+ "v": "121"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000",
+ "v": "2000"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "更新",
+ "v": "time"
+ }, {
+ "n": "得分",
+ "v": "score"
+ }, {
+ "n": "总排行",
+ "v": "hits"
+ }]
+ }],
+ "3": [{
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "36"
+ }, {
+ "n": "热血",
+ "v": "37"
+ }, {
+ "n": "奇幻",
+ "v": "38"
+ }, {
+ "n": "恋爱",
+ "v": "39"
+ }, {
+ "n": "恋爱",
+ "v": "40"
+ }, {
+ "n": "恋爱",
+ "v": "40"
+ }, {
+ "n": "搞笑",
+ "v": "42"
+ }, {
+ "n": "治愈",
+ "v": "43"
+ }, {
+ "n": "神魔",
+ "v": "44"
+ }, {
+ "n": "魔法",
+ "v": "45"
+ }, {
+ "n": "百合",
+ "v": "46"
+ }, {
+ "n": "推理",
+ "v": "47"
+ }, {
+ "n": "科幻",
+ "v": "48"
+ }, {
+ "n": "竞技",
+ "v": "49"
+ }, {
+ "n": "悬疑",
+ "v": "66"
+ }, {
+ "n": "战争",
+ "v": "68"
+ }, {
+ "n": "萝莉",
+ "v": "69"
+ }, {
+ "n": "魔幻",
+ "v": "70"
+ }, {
+ "n": "战斗",
+ "v": "71"
+ }, {
+ "n": "青春",
+ "v": "72"
+ }, {
+ "n": "历史",
+ "v": "100"
+ }, {
+ "n": "歌舞",
+ "v": "101"
+ }, {
+ "n": "恐怖",
+ "v": "104"
+ }, {
+ "n": "职场",
+ "v": "107"
+ }, {
+ "n": "励志",
+ "v": "109"
+ }, {
+ "n": "偶像",
+ "v": "119"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000",
+ "v": "2000"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "更新",
+ "v": "time"
+ }, {
+ "n": "得分",
+ "v": "score"
+ }, {
+ "n": "总排行",
+ "v": "hits"
+ }]
+ }],
+ "4": [{
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "50"
+ }, {
+ "n": "热血",
+ "v": "51"
+ }, {
+ "n": "武侠",
+ "v": "52"
+ }, {
+ "n": "奇幻",
+ "v": "53"
+ }, {
+ "n": "玄幻",
+ "v": "54"
+ }, {
+ "n": "竞技",
+ "v": "55"
+ }, {
+ "n": "魔幻",
+ "v": "56"
+ }, {
+ "n": "科幻",
+ "v": "57"
+ }, {
+ "n": "恋爱",
+ "v": "58"
+ }, {
+ "n": "历史",
+ "v": "73"
+ }, {
+ "n": "战斗",
+ "v": "74"
+ }, {
+ "n": "搞笑",
+ "v": "75"
+ }, {
+ "n": "神魔",
+ "v": "76"
+ }, {
+ "n": "战争",
+ "v": "97"
+ }, {
+ "n": "古风",
+ "v": "111"
+ }, {
+ "n": "少女",
+ "v": "112"
+ }, {
+ "n": "萝莉",
+ "v": "113"
+ }, {
+ "n": "治愈",
+ "v": "114"
+ }, {
+ "n": "日常",
+ "v": "115"
+ }, {
+ "n": "歌舞",
+ "v": "116"
+ }, {
+ "n": "偶像",
+ "v": "120"
+ }, {
+ "n": "职场",
+ "v": "123"
+ }, {
+ "n": "仙侠",
+ "v": "125"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000",
+ "v": "2000"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "更新",
+ "v": "time"
+ }, {
+ "n": "得分",
+ "v": "score"
+ }, {
+ "n": "总排行",
+ "v": "hits"
+ }]
+ }],
+ "16": [{
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "77"
+ }, {
+ "n": "热血",
+ "v": "78"
+ }, {
+ "n": "奇幻",
+ "v": "79"
+ }, {
+ "n": "恋爱",
+ "v": "80"
+ }, {
+ "n": "校园",
+ "v": "81"
+ }, {
+ "n": "后宫",
+ "v": "82"
+ }, {
+ "n": "搞笑",
+ "v": "83"
+ }, {
+ "n": "青春",
+ "v": "84"
+ }, {
+ "n": "百合",
+ "v": "85"
+ }, {
+ "n": "治愈",
+ "v": "86"
+ }, {
+ "n": "神魔",
+ "v": "87"
+ }, {
+ "n": "魔法",
+ "v": "88"
+ }, {
+ "n": "推理",
+ "v": "89"
+ }, {
+ "n": "科幻",
+ "v": "90"
+ }, {
+ "n": "竞技",
+ "v": "91"
+ }, {
+ "n": "悬疑",
+ "v": "92"
+ }, {
+ "n": "战争",
+ "v": "93"
+ }, {
+ "n": "萝莉",
+ "v": "94"
+ }, {
+ "n": "魔幻",
+ "v": "95"
+ }, {
+ "n": "战斗",
+ "v": "96"
+ }, {
+ "n": "历史",
+ "v": "102"
+ }, {
+ "n": "歌舞",
+ "v": "103"
+ }, {
+ "n": "恐怖",
+ "v": "105"
+ }, {
+ "n": "职场",
+ "v": "106"
+ }, {
+ "n": "励志",
+ "v": "110"
+ }, {
+ "n": "偶像",
+ "v": "117"
+ }, {
+ "n": "职场",
+ "v": "124"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000",
+ "v": "2000"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "更新",
+ "v": "time"
+ }, {
+ "n": "得分",
+ "v": "score"
+ }, {
+ "n": "总排行",
+ "v": "hits"
+ }]
+ }]
+ },
+ searchUrl: '/search-pg-fypage-wd-**.html',
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ headers: {
+ 'User-Agent': 'PC_UA',
+ },
+ class_parse: '.secNacUl li;a&&Text;a&&href;.*/(\\d+)-1.html',
+ play_parse: true,
+ lazy: '',
+ limit: 6,
+ 推荐: '.c1_l_wap_contact li;*;img&&src;.time:eq(0)&&Text;*',
+ 一级: '.list3_cn_box .cn_box2;a&&title;.list_pic&&src;.list_20 li:eq(1) span&&Text;a&&href',
+ 二级: {
+ "title": "h1&&Text;.o_r_contact&&li:eq(0)&&Text",
+ "img": ".o_big_img_bg_b img&&src",
+ "desc": ".o_r_contact&&li:eq(6)&&Text;.o_r_contact&&li:eq(5)&&Text;.o_r_contact&&li:eq(3)&&Text;.o_r_contact&&li:eq(2)&&Text;.o_r_contact&&li:eq(1)&&Text",
+ "content": ".des_box&&Text",
+ "tabs": ".from-tabs&&label",
+ "lists": ".mn_list_li_movie:eq(#id) li"
+ },
+ 搜索: '*',
+}
\ No newline at end of file
diff --git a/JS/动漫巴士.js b/JS/动漫巴士.js
new file mode 100644
index 0000000..db8ae7b
--- /dev/null
+++ b/JS/动漫巴士.js
@@ -0,0 +1,64 @@
+var rule = {
+ author: '小可乐/240526/第一版',
+ title: '动漫巴士[漫]',
+ host: 'http://dm84.site',
+ hostJs: 'print(HOST);let html=request(HOST,{headers:{"User-Agent":MOBILE_UA}});let src= jsp.pdfh(html,"ul&&a:eq(0)&&href");print(src);HOST=src',
+ headers: {
+ 'User-Agent': 'MOBILE_UA'
+ },
+ 编码: 'utf-8',
+ timeout: 5000,
+
+ homeUrl: '/',
+ url: '/show-fyclass--fyfilter-fypage.html',
+ filter_url: '{{fl.by}}-{{fl.class}}--{{fl.year}}',
+ detailUrl: '',
+ searchUrl: '/s-**---------fypage.html',
+ searchable: 1,
+ quickSearch: 1,
+ filterable: 1,
+
+ class_name: '国产动漫&日本动漫&欧美动漫&电影',
+ class_url: '1&2&3&4',
+ filter_def: {},
+
+ proxy_rule: '',
+ sniffer: 0,
+ isVideo: '',
+ play_parse: true,
+ parse_url: '',
+ lazy: `js:
+let html = request(input);
+let kurl = pdfh(html,'body&&iframe').match(/src="(.*?)"/)[1];
+input= kurl
+`,
+
+ limit: 9,
+ double: false,
+ 推荐: '*',
+ //列表;标题;图片;描述;链接;详情(可不写)
+ 一级: '.v_list li;a&&title;a&&data-bg;.desc&&Text;a&&href',
+ 二级: {
+ //名称;类型
+ "title": "h1&&Text;meta[name*=class]&&content",
+ //图片
+ "img": "img&&src",
+ //主要描述;年份;地区;演员;导演
+ "desc": "meta[name*=update_date]&&content;meta[name*=release_date]&&content;meta[name*=area]&&content;meta[name*=actor]&&content;meta[name*=director]&&content",
+ //简介
+ "content": "p:eq(-2)&&Text",
+ //线路数组
+ "tabs": ".tab_control&&li",
+ //线路标题
+ "tab_text": "body&&Text",
+ //播放数组 选集列表
+ "lists": ".play_list:eq(#id)&&a",
+ //选集标题
+ "list_text": "body&&Text",
+ //选集链接
+ "list_url": "a&&href"
+ },
+ 搜索: '*',
+
+ filter: 'H4sIAAAAAAAAA+2WbUsqQRTH3+/HmNe+0LWn21eJXlgIRU+Q3UBEsLTaCrYtSm9cb2RQ2YOVFUFa9mWcGf0Wjc6cMxPFstDlcgXf7e/39+zo2XPUlEUiZHTMSpGZeJKMksnZWCJBQmQ+NhcXyKt1erQteDk2+1OIsRSZF5quldvZckcLIOmQsqcb9LmurALImPOL5QsqUwAZd3O6TgFmF2+tpy3IJGB2vmvUScDzKmfNxjGcJwHrspVWKQN1EiBrZV55w1WZArynd8Svd+GeEvCzb5VZZoW9XPF97ICp0uPpEDY5GY8t6h6zwlO78Biwx3bYHlCue2n4qPZR00e0j5je1t42fVj7sOEjP9CLS8OPaD9i+mHth00/pP2Q6Qe1H/zYr4mk0S13j9Z2PnVLN1HA0rR4Kdy5Wauxu32VTE0vJfSzvs1RZ10licmFxXjnWGs8ZBH7r+3E+l778AImQkKQnfDbJeq59OYKMgl6Dqv0rYAT2AU877hEf1fgPAlBdoIVa+LdQZ2EIDvBVq95HjMJmN3XWc6BTAK+l8MG9SBTgHUrHsvkoU4CZm6Ze/A8Fei6be5Usa4LmD2U2n9O+MElxMj9re2prY3+z1vr92vlW+e3mT7b9+UW9ee5l+Z54F/Ms/ib0nwt6v8sHfj2POeLdPMc6iQE+eb3nWenyrJrcJ6E/jz3zjxb6XeqCRqqbAwAAA=='
+}
\ No newline at end of file
diff --git a/JS/动画片大全.js b/JS/动画片大全.js
new file mode 100644
index 0000000..696e162
--- /dev/null
+++ b/JS/动画片大全.js
@@ -0,0 +1,28 @@
+var rule = {
+ title: '动画片大全',
+ host: 'https://www.dhpdq2.com/',
+ url: 'https://www.dhpdq2.com/katong/fyclass-fypage/',
+ searchUrl: '/vodsearch/**----------fypage---/',
+ class_parse: '.c_class li;a&&Text;a&&href;.*/(.*?)/',
+ searchable: 2,
+ quickSearch: 0,
+ filterable: 0,
+ headers: {
+ 'User-Agent': 'MOBILE_UA',
+ },
+ play_parse: true,
+ lazy: '',
+ limit: 6,
+ 推荐: '.stui-vodlist;li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
+ double: true,
+ 一级: '.stui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
+ 二级: {
+ title: 'h1&&Text;.detail_list&&ul:eq(1)&&li&&a:eq(2)&&Text',
+ img: '.vodlist_thumb&&data-original',
+ desc: '.playinfo&&p:eq(0)&&Text;.playinfo&&p:eq(1)&&Text;.playinfo&&p:eq(2)&&Text;.playinfo&&p:eq(3)&&Text',
+ content: '.content:eq(1)',
+ tabs: '.relatesdh .title h3',
+ lists: '.relatesdh:eq(#id) li',
+ },
+ 搜索: '*',
+}
\ No newline at end of file
diff --git a/JS/去看吧.js b/JS/去看吧.js
new file mode 100644
index 0000000..81f9121
--- /dev/null
+++ b/JS/去看吧.js
@@ -0,0 +1,1127 @@
+muban.vfed.二级.title = 'h1&&Text;.fed-col-md3--span:eq(0)&&Text';
+muban.vfed.二级.desc = '.fed-col-md3:eq(3)&&Text;;;.fed-col-md6:eq(0)&&Text;.fed-col-md6--span:eq(1)&&Text';
+var rule = {
+ title: '去看吧',
+ 模板: 'vfed',
+ host: 'https://www.k9dm.com',
+ // url: '/index.php/vod/show/id/fyclass/page/fypage.html',
+ url: '/index.php/vod/show/id/fyclassfyfilter.html',
+ filterable: 1, //是否启用分类筛选,
+ filter_url: '{{fl.area}}{{fl.by}}{{fl.class}}/page/fypage{{fl.year}}',
+ filter: {
+ "33": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "经典",
+ "v": "/class/经典"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "催泪",
+ "v": "/class/催泪"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "猎奇",
+ "v": "/class/猎奇"
+ }, {
+ "n": "励志",
+ "v": "/class/励志"
+ }, {
+ "n": "战斗",
+ "v": "/class/战斗"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "机战",
+ "v": "/class/机战"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "运动",
+ "v": "/class/运动"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "伪娘",
+ "v": "/class/伪娘"
+ }, {
+ "n": "美少女",
+ "v": "/class/美少女"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "亲子",
+ "v": "/class/亲子"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2007",
+ "v": "/year/2007"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }, {
+ "n": "2003",
+ "v": "/year/2003"
+ }, {
+ "n": "2002",
+ "v": "/year/2002"
+ }, {
+ "n": "2001",
+ "v": "/year/2001"
+ }, {
+ "n": "2000",
+ "v": "/year/2000"
+ }, {
+ "n": "1999",
+ "v": "/year/1999"
+ }, {
+ "n": "1998",
+ "v": "/year/1998"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "21": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "经典",
+ "v": "/class/经典"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "催泪",
+ "v": "/class/催泪"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "猎奇",
+ "v": "/class/猎奇"
+ }, {
+ "n": "励志",
+ "v": "/class/励志"
+ }, {
+ "n": "战斗",
+ "v": "/class/战斗"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "机战",
+ "v": "/class/机战"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "运动",
+ "v": "/class/运动"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "伪娘",
+ "v": "/class/伪娘"
+ }, {
+ "n": "美少女",
+ "v": "/class/美少女"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "亲子",
+ "v": "/class/亲子"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "大陆",
+ "v": "/area/大陆"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "泰国",
+ "v": "/area/泰国"
+ }, {
+ "n": "新加坡",
+ "v": "/area/新加坡"
+ }, {
+ "n": "马来西亚",
+ "v": "/area/马来西亚"
+ }, {
+ "n": "印度",
+ "v": "/area/印度"
+ }, {
+ "n": "英国",
+ "v": "/area/英国"
+ }, {
+ "n": "法国",
+ "v": "/area/法国"
+ }, {
+ "n": "加拿大",
+ "v": "/area/加拿大"
+ }, {
+ "n": "西班牙",
+ "v": "/area/西班牙"
+ }, {
+ "n": "俄罗斯",
+ "v": "/area/俄罗斯"
+ }, {
+ "n": "其它",
+ "v": "/area/其它"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2007",
+ "v": "/year/2007"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }, {
+ "n": "2003",
+ "v": "/year/2003"
+ }, {
+ "n": "2002",
+ "v": "/year/2002"
+ }, {
+ "n": "2001",
+ "v": "/year/2001"
+ }, {
+ "n": "2000",
+ "v": "/year/2000"
+ }, {
+ "n": "1999",
+ "v": "/year/1999"
+ }, {
+ "n": "1998",
+ "v": "/year/1998"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "50": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "经典",
+ "v": "/class/经典"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "催泪",
+ "v": "/class/催泪"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "猎奇",
+ "v": "/class/猎奇"
+ }, {
+ "n": "励志",
+ "v": "/class/励志"
+ }, {
+ "n": "战斗",
+ "v": "/class/战斗"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "机战",
+ "v": "/class/机战"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "运动",
+ "v": "/class/运动"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "伪娘",
+ "v": "/class/伪娘"
+ }, {
+ "n": "美少女",
+ "v": "/class/美少女"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "亲子",
+ "v": "/class/亲子"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "大陆",
+ "v": "/area/大陆"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "泰国",
+ "v": "/area/泰国"
+ }, {
+ "n": "新加坡",
+ "v": "/area/新加坡"
+ }, {
+ "n": "马来西亚",
+ "v": "/area/马来西亚"
+ }, {
+ "n": "印度",
+ "v": "/area/印度"
+ }, {
+ "n": "英国",
+ "v": "/area/英国"
+ }, {
+ "n": "法国",
+ "v": "/area/法国"
+ }, {
+ "n": "加拿大",
+ "v": "/area/加拿大"
+ }, {
+ "n": "西班牙",
+ "v": "/area/西班牙"
+ }, {
+ "n": "俄罗斯",
+ "v": "/area/俄罗斯"
+ }, {
+ "n": "其它",
+ "v": "/area/其它"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2007",
+ "v": "/year/2007"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }, {
+ "n": "2003",
+ "v": "/year/2003"
+ }, {
+ "n": "2002",
+ "v": "/year/2002"
+ }, {
+ "n": "2001",
+ "v": "/year/2001"
+ }, {
+ "n": "2000",
+ "v": "/year/2000"
+ }, {
+ "n": "1999",
+ "v": "/year/1999"
+ }, {
+ "n": "1998",
+ "v": "/year/1998"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "24": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "经典",
+ "v": "/class/经典"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "催泪",
+ "v": "/class/催泪"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "猎奇",
+ "v": "/class/猎奇"
+ }, {
+ "n": "励志",
+ "v": "/class/励志"
+ }, {
+ "n": "战斗",
+ "v": "/class/战斗"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "机战",
+ "v": "/class/机战"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "运动",
+ "v": "/class/运动"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "伪娘",
+ "v": "/class/伪娘"
+ }, {
+ "n": "美少女",
+ "v": "/class/美少女"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "亲子",
+ "v": "/class/亲子"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "大陆",
+ "v": "/area/大陆"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "泰国",
+ "v": "/area/泰国"
+ }, {
+ "n": "新加坡",
+ "v": "/area/新加坡"
+ }, {
+ "n": "马来西亚",
+ "v": "/area/马来西亚"
+ }, {
+ "n": "印度",
+ "v": "/area/印度"
+ }, {
+ "n": "英国",
+ "v": "/area/英国"
+ }, {
+ "n": "法国",
+ "v": "/area/法国"
+ }, {
+ "n": "加拿大",
+ "v": "/area/加拿大"
+ }, {
+ "n": "西班牙",
+ "v": "/area/西班牙"
+ }, {
+ "n": "俄罗斯",
+ "v": "/area/俄罗斯"
+ }, {
+ "n": "其它",
+ "v": "/area/其它"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2007",
+ "v": "/year/2007"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }, {
+ "n": "2003",
+ "v": "/year/2003"
+ }, {
+ "n": "2002",
+ "v": "/year/2002"
+ }, {
+ "n": "2001",
+ "v": "/year/2001"
+ }, {
+ "n": "2000",
+ "v": "/year/2000"
+ }, {
+ "n": "1999",
+ "v": "/year/1999"
+ }, {
+ "n": "1998",
+ "v": "/year/1998"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "22": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "经典",
+ "v": "/class/经典"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "催泪",
+ "v": "/class/催泪"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "猎奇",
+ "v": "/class/猎奇"
+ }, {
+ "n": "励志",
+ "v": "/class/励志"
+ }, {
+ "n": "战斗",
+ "v": "/class/战斗"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "机战",
+ "v": "/class/机战"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "运动",
+ "v": "/class/运动"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "伪娘",
+ "v": "/class/伪娘"
+ }, {
+ "n": "美少女",
+ "v": "/class/美少女"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "亲子",
+ "v": "/class/亲子"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "欧美",
+ "v": "/area/欧美"
+ }, {
+ "n": "其他",
+ "v": "/area/其他"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2007",
+ "v": "/year/2007"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }, {
+ "n": "2003",
+ "v": "/year/2003"
+ }, {
+ "n": "2002",
+ "v": "/year/2002"
+ }, {
+ "n": "2001",
+ "v": "/year/2001"
+ }, {
+ "n": "2000",
+ "v": "/year/2000"
+ }, {
+ "n": "1999",
+ "v": "/year/1999"
+ }, {
+ "n": "1998",
+ "v": "/year/1998"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }]
+ },
+ class_parse: '.fed-pops-list:eq(0)&&li:gt(0):lt(6);a&&Text;a&&href;.*/(.*?).html',
+}
\ No newline at end of file
diff --git a/JS/奇米动漫.js b/JS/奇米动漫.js
new file mode 100644
index 0000000..9e4e97b
--- /dev/null
+++ b/JS/奇米动漫.js
@@ -0,0 +1,1164 @@
+var rule = {
+ title: '奇米动漫',
+ host: 'http://www.qimiqimi.net',
+ url: '/show/fyclassfyfilter.html',
+ filterable: 1, //是否启用分类筛选,
+ filter_url: '{{fl.area}}{{fl.by}}{{fl.class}}{{fl.letter}}/page/fypage{{fl.year}}',
+ filter: {
+ "xinfan": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "神魔",
+ "v": "/class/神魔"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }, {
+ "n": "悬疑",
+ "v": "/class/悬疑"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "战争",
+ "v": "/class/战争"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "魔幻",
+ "v": "/class/魔幻"
+ }, {
+ "n": "战斗",
+ "v": "/class/战斗"
+ }, {
+ "n": "日常",
+ "v": "/class/日常"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "日本",
+ "v": "/area/日本/"
+ }, {
+ "n": "大陆",
+ "v": "/area/中国/"
+ }, {
+ "n": "欧美",
+ "v": "/area/欧美/"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国/"
+ }, {
+ "n": "港台",
+ "v": "/area/港台/"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2007",
+ "v": "/year/2007"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }, {
+ "n": "2003",
+ "v": "/year/2003"
+ }, {
+ "n": "2002",
+ "v": "/year/2002"
+ }, {
+ "n": "2001",
+ "v": "/year/2001"
+ }, {
+ "n": "2000",
+ "v": "/year/2000"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "字母",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "/letter/A"
+ }, {
+ "n": "B",
+ "v": "/letter/B"
+ }, {
+ "n": "C",
+ "v": "/letter/C"
+ }, {
+ "n": "D",
+ "v": "/letter/D"
+ }, {
+ "n": "E",
+ "v": "/letter/E"
+ }, {
+ "n": "F",
+ "v": "/letter/F"
+ }, {
+ "n": "G",
+ "v": "/letter/G"
+ }, {
+ "n": "H",
+ "v": "/letter/H"
+ }, {
+ "n": "I",
+ "v": "/letter/I"
+ }, {
+ "n": "J",
+ "v": "/letter/J"
+ }, {
+ "n": "K",
+ "v": "/letter/K"
+ }, {
+ "n": "L",
+ "v": "/letter/L"
+ }, {
+ "n": "M",
+ "v": "/letter/M"
+ }, {
+ "n": "N",
+ "v": "/letter/N"
+ }, {
+ "n": "O",
+ "v": "/letter/O"
+ }, {
+ "n": "P",
+ "v": "/letter/P"
+ }, {
+ "n": "Q",
+ "v": "/letter/Q"
+ }, {
+ "n": "R",
+ "v": "/letter/R"
+ }, {
+ "n": "S",
+ "v": "/letter/S"
+ }, {
+ "n": "T",
+ "v": "/letter/T"
+ }, {
+ "n": "U",
+ "v": "/letter/U"
+ }, {
+ "n": "V",
+ "v": "/letter/V"
+ }, {
+ "n": "W",
+ "v": "/letter/W"
+ }, {
+ "n": "X",
+ "v": "/letter/X"
+ }, {
+ "n": "Y",
+ "v": "/letter/Y"
+ }, {
+ "n": "Z",
+ "v": "/letter/Z"
+ }, {
+ "n": "0-9",
+ "v": "/letter/0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "riman": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "神魔",
+ "v": "/class/神魔"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }, {
+ "n": "悬疑",
+ "v": "/class/悬疑"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "战争",
+ "v": "/class/战争"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "魔幻",
+ "v": "/class/魔幻"
+ }, {
+ "n": "战斗",
+ "v": "/class/战斗"
+ }, {
+ "n": "日常",
+ "v": "/class/日常"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "日本",
+ "v": "/area/日本/"
+ }, {
+ "n": "大陆",
+ "v": "/area/中国/"
+ }, {
+ "n": "欧美",
+ "v": "/area/欧美/"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国/"
+ }, {
+ "n": "港台",
+ "v": "/area/港台/"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2007",
+ "v": "/year/2007"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }, {
+ "n": "2003",
+ "v": "/year/2003"
+ }, {
+ "n": "2002",
+ "v": "/year/2002"
+ }, {
+ "n": "2001",
+ "v": "/year/2001"
+ }, {
+ "n": "2000",
+ "v": "/year/2000"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "字母",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "/letter/A"
+ }, {
+ "n": "B",
+ "v": "/letter/B"
+ }, {
+ "n": "C",
+ "v": "/letter/C"
+ }, {
+ "n": "D",
+ "v": "/letter/D"
+ }, {
+ "n": "E",
+ "v": "/letter/E"
+ }, {
+ "n": "F",
+ "v": "/letter/F"
+ }, {
+ "n": "G",
+ "v": "/letter/G"
+ }, {
+ "n": "H",
+ "v": "/letter/H"
+ }, {
+ "n": "I",
+ "v": "/letter/I"
+ }, {
+ "n": "J",
+ "v": "/letter/J"
+ }, {
+ "n": "K",
+ "v": "/letter/K"
+ }, {
+ "n": "L",
+ "v": "/letter/L"
+ }, {
+ "n": "M",
+ "v": "/letter/M"
+ }, {
+ "n": "N",
+ "v": "/letter/N"
+ }, {
+ "n": "O",
+ "v": "/letter/O"
+ }, {
+ "n": "P",
+ "v": "/letter/P"
+ }, {
+ "n": "Q",
+ "v": "/letter/Q"
+ }, {
+ "n": "R",
+ "v": "/letter/R"
+ }, {
+ "n": "S",
+ "v": "/letter/S"
+ }, {
+ "n": "T",
+ "v": "/letter/T"
+ }, {
+ "n": "U",
+ "v": "/letter/U"
+ }, {
+ "n": "V",
+ "v": "/letter/V"
+ }, {
+ "n": "W",
+ "v": "/letter/W"
+ }, {
+ "n": "X",
+ "v": "/letter/X"
+ }, {
+ "n": "Y",
+ "v": "/letter/Y"
+ }, {
+ "n": "Z",
+ "v": "/letter/Z"
+ }, {
+ "n": "0-9",
+ "v": "/letter/0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "guoman": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "神魔",
+ "v": "/class/神魔"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }, {
+ "n": "悬疑",
+ "v": "/class/悬疑"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "战争",
+ "v": "/class/战争"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "魔幻",
+ "v": "/class/魔幻"
+ }, {
+ "n": "战斗",
+ "v": "/class/战斗"
+ }, {
+ "n": "日常",
+ "v": "/class/日常"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "日本",
+ "v": "/area/日本/"
+ }, {
+ "n": "大陆",
+ "v": "/area/中国/"
+ }, {
+ "n": "欧美",
+ "v": "/area/欧美/"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国/"
+ }, {
+ "n": "港台",
+ "v": "/area/港台/"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2007",
+ "v": "/year/2007"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }, {
+ "n": "2003",
+ "v": "/year/2003"
+ }, {
+ "n": "2002",
+ "v": "/year/2002"
+ }, {
+ "n": "2001",
+ "v": "/year/2001"
+ }, {
+ "n": "2000",
+ "v": "/year/2000"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "字母",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "/letter/A"
+ }, {
+ "n": "B",
+ "v": "/letter/B"
+ }, {
+ "n": "C",
+ "v": "/letter/C"
+ }, {
+ "n": "D",
+ "v": "/letter/D"
+ }, {
+ "n": "E",
+ "v": "/letter/E"
+ }, {
+ "n": "F",
+ "v": "/letter/F"
+ }, {
+ "n": "G",
+ "v": "/letter/G"
+ }, {
+ "n": "H",
+ "v": "/letter/H"
+ }, {
+ "n": "I",
+ "v": "/letter/I"
+ }, {
+ "n": "J",
+ "v": "/letter/J"
+ }, {
+ "n": "K",
+ "v": "/letter/K"
+ }, {
+ "n": "L",
+ "v": "/letter/L"
+ }, {
+ "n": "M",
+ "v": "/letter/M"
+ }, {
+ "n": "N",
+ "v": "/letter/N"
+ }, {
+ "n": "O",
+ "v": "/letter/O"
+ }, {
+ "n": "P",
+ "v": "/letter/P"
+ }, {
+ "n": "Q",
+ "v": "/letter/Q"
+ }, {
+ "n": "R",
+ "v": "/letter/R"
+ }, {
+ "n": "S",
+ "v": "/letter/S"
+ }, {
+ "n": "T",
+ "v": "/letter/T"
+ }, {
+ "n": "U",
+ "v": "/letter/U"
+ }, {
+ "n": "V",
+ "v": "/letter/V"
+ }, {
+ "n": "W",
+ "v": "/letter/W"
+ }, {
+ "n": "X",
+ "v": "/letter/X"
+ }, {
+ "n": "Y",
+ "v": "/letter/Y"
+ }, {
+ "n": "Z",
+ "v": "/letter/Z"
+ }, {
+ "n": "0-9",
+ "v": "/letter/0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "jcdm": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "神魔",
+ "v": "/class/神魔"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }, {
+ "n": "悬疑",
+ "v": "/class/悬疑"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "战争",
+ "v": "/class/战争"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "魔幻",
+ "v": "/class/魔幻"
+ }, {
+ "n": "战斗",
+ "v": "/class/战斗"
+ }, {
+ "n": "日常",
+ "v": "/class/日常"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "日本",
+ "v": "/area/日本/"
+ }, {
+ "n": "大陆",
+ "v": "/area/中国/"
+ }, {
+ "n": "欧美",
+ "v": "/area/欧美/"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国/"
+ }, {
+ "n": "港台",
+ "v": "/area/港台/"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2007",
+ "v": "/year/2007"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }, {
+ "n": "2003",
+ "v": "/year/2003"
+ }, {
+ "n": "2002",
+ "v": "/year/2002"
+ }, {
+ "n": "2001",
+ "v": "/year/2001"
+ }, {
+ "n": "2000",
+ "v": "/year/2000"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "字母",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "/letter/A"
+ }, {
+ "n": "B",
+ "v": "/letter/B"
+ }, {
+ "n": "C",
+ "v": "/letter/C"
+ }, {
+ "n": "D",
+ "v": "/letter/D"
+ }, {
+ "n": "E",
+ "v": "/letter/E"
+ }, {
+ "n": "F",
+ "v": "/letter/F"
+ }, {
+ "n": "G",
+ "v": "/letter/G"
+ }, {
+ "n": "H",
+ "v": "/letter/H"
+ }, {
+ "n": "I",
+ "v": "/letter/I"
+ }, {
+ "n": "J",
+ "v": "/letter/J"
+ }, {
+ "n": "K",
+ "v": "/letter/K"
+ }, {
+ "n": "L",
+ "v": "/letter/L"
+ }, {
+ "n": "M",
+ "v": "/letter/M"
+ }, {
+ "n": "N",
+ "v": "/letter/N"
+ }, {
+ "n": "O",
+ "v": "/letter/O"
+ }, {
+ "n": "P",
+ "v": "/letter/P"
+ }, {
+ "n": "Q",
+ "v": "/letter/Q"
+ }, {
+ "n": "R",
+ "v": "/letter/R"
+ }, {
+ "n": "S",
+ "v": "/letter/S"
+ }, {
+ "n": "T",
+ "v": "/letter/T"
+ }, {
+ "n": "U",
+ "v": "/letter/U"
+ }, {
+ "n": "V",
+ "v": "/letter/V"
+ }, {
+ "n": "W",
+ "v": "/letter/W"
+ }, {
+ "n": "X",
+ "v": "/letter/X"
+ }, {
+ "n": "Y",
+ "v": "/letter/Y"
+ }, {
+ "n": "Z",
+ "v": "/letter/Z"
+ }, {
+ "n": "0-9",
+ "v": "/letter/0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }]
+ },
+ searchable: 2, //是否启用全局搜索,
+ headers: { //网站的请求头,完整支持所有的,常带ua和cookies
+ 'User-Agent': 'PC_UA',
+ },
+ class_parse: '#nav li;a&&Text;a&&href;.*/(\\w+).html',
+ cate_exclude: '番组专题|最近更新',
+ play_parse: true,
+ lazy: `js:
+ var html = JSON.parse(request(input).match(/r player_.*?=(.*?))[1]);
+ var url = html.url;
+ if (html.encrypt == '1') {
+ url = unescape(url)
+ } else if (html.encrypt == '2') {
+ url = unescape(base64Decode(url))
+ }
+ if (/\\.m3u8|\\.mp4/.test(url)) {
+ input = {
+ jx: 0,
+ url: url,
+ parse: 0
+ }
+ } else {
+ input
+ }
+ `,
+ limit: 6,
+ 推荐: '*;*;*;.text&&Text;*',
+ 一级: '.img-list li;a&&title;img&&src;i&&Text;a&&href',
+ 二级: {
+ "title": "h1&&Text;dl.fn-left:eq(3)&&Text",
+ "img": ".detail-pic&&img&&src",
+ "desc": "dl.fn-left:eq(2)&&Text;;;.nyzhuy--dt&&Text;.fn-right:eq(0)--dt&&Text",
+ "content": ".tjuqing&&Text",
+ "tabs": ".down-title h2",
+ "lists": ".video_list:eq(#id) a"
+ },
+ searchUrl: '/index.php/ajax/suggest?mid=1&wd=**&limit=50',
+ detailUrl: '/detail/fyid.html', //非必填,二级详情拼接链接
+ 搜索: 'json:list;name;pic;;id',
+}
\ No newline at end of file
diff --git a/JS/好看动漫.js b/JS/好看动漫.js
new file mode 100644
index 0000000..d152a76
--- /dev/null
+++ b/JS/好看动漫.js
@@ -0,0 +1,29 @@
+var rule = {
+ title: '好看动漫',
+ host: 'https://www.youjiula.com/',
+ url: 'https://www.youjiula.com/youjiu/fyclass-fypage.html',
+ searchUrl: 'https://www.youjiula.com/search.php?page=fypage&searchword=**&searchtype=',
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
+ headers: {
+ 'User-Agent': 'UC_UA', // "Cookie": ""
+ }, // class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
+ class_parse: '.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;.*/(.*?).html',
+ play_parse: true,
+ lazy: '',
+ limit: 6,
+ 推荐: 'ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
+ double: true, // 推荐内容是否双层定位
+ 一级: '.stui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
+ 二级: {
+ "title": ".stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text",
+ "img": ".stui-content__thumb .lazyload&&data-original",
+ "desc": ".stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text",
+ "content": "#desc&&Text",
+ "tabs": ".stui-pannel-box h3",
+ "lists": ".stui-content__playlist:eq(#id) li"
+ },
+ 搜索: 'ul.stui-vodlist&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
+
+}
\ No newline at end of file
diff --git a/JS/异世界.js b/JS/异世界.js
new file mode 100644
index 0000000..bf556ee
--- /dev/null
+++ b/JS/异世界.js
@@ -0,0 +1,278 @@
+var rule = {
+ title: '异世界动漫',
+ host: 'https://www.dmmiku.com/',
+ homeUrl: '/index.php/vod/show/id/22.html',
+ // url:'/index.php/vod/show/class/fyclass/id/20/page/fypage.html',
+ url: '/index.php/vod/show/fyclassfyfilter.html',
+ filterable: 1,
+ filter_url: '{{fl.type}}/id/20/page/fypage{{fl.year}}',
+ filter: {
+ "area/日本": [{
+ "key": "type",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "OVA",
+ "v": "/class/OVA"
+ }, {
+ "n": "剧场版",
+ "v": "/class/剧场版"
+ }, {
+ "n": "无修",
+ "v": "/class/BD无修"
+ }, {
+ "n": "萝莉",
+ "v": "/class/萝莉"
+ }, {
+ "n": "学園",
+ "v": "/class/学園"
+ }, {
+ "n": "后宫",
+ "v": "/class/后宫"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "神魔",
+ "v": "/class/神魔"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "治愈",
+ "v": "/class/治愈"
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "百合",
+ "v": "/class/百合"
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "魔法",
+ "v": "/class/魔法"
+ }, {
+ "n": "机战",
+ "v": "/class/机战"
+ }, {
+ "n": "战争",
+ "v": "/class/战争"
+ }, {
+ "n": "犯罪",
+ "v": "/class/犯罪"
+ }, {
+ "n": "悬疑",
+ "v": "/class/悬疑"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }, {
+ "n": "运动",
+ "v": "/class/运动"
+ }, {
+ "n": "耽美",
+ "v": "/class/耽美"
+ }, {
+ "n": "其他",
+ "v": "/class/其他"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }]
+ }],
+ "area/中國": [{
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }]
+ }]
+ },
+ searchUrl: '/index.php/vod/search/page/fypage/wd/**.html',
+ searchable: 2,
+ quickSearch: 0,
+ headers: {
+ 'User-Agent': 'MOBILE_UA'
+ },
+ timeout: 5000, //网站的全局请求超时,默认是3000毫秒
+ class_name: '日漫&国漫',
+ class_url: 'area/日本&area/中國',
+ play_parse: true,
+ lazy: `js:
+ var html = JSON.parse(request(input).match(/r player_.*?=(.*?))[1]);
+ var url = html.url;
+ var from = html.from;
+ if (html.encrypt == '1') {
+ url = unescape(url)
+ } else if (html.encrypt == '2') {
+ url = unescape(base64Decode(url))
+ }
+ if (/m3u8|mp4/.test(url)) {
+ input = url
+ } else {
+ var MacPlayerConfig={};
+ eval(fetch(HOST + "/static/js/playerconfig.js").replace('var Mac','Mac'));
+ var jx = MacPlayerConfig.player_list[from].parse;
+ if (jx == '') {
+ jx = MacPlayerConfig.parse
+ };
+ if (jx.startsWith("/")) {
+ jx = "https:" + jx;
+ }
+ input={
+ jx:0,
+ url:jx+url,
+ parse:1,
+ header: JSON.stringify({
+ 'referer': HOST
+ })
+ }
+ }
+ `,
+ limit: 6,
+ // 图片来源:'@Referer=https://api.douban.com/@User-Agent=Mozilla/5.0%20(Windows%20NT%2010.0;%20Win64;%20x64)%20AppleWebKit/537.36%20(KHTML,%20like%20Gecko)%20Chrome/113.0.0.0%20Safari/537.36',
+ 推荐: '*',
+ 一级: '.vodlist_wi&&li;.lazyload&&title;.lazyload&&data-original;.pic_text&&Text;a&&href',
+ 二级: {
+ "title": "h2&&Text;li.data--span:eq(0)&&Text",
+ "img": ".lazyload&&data-original",
+ "desc": "li.data--span:eq(1)&&Text;;;li.data--span:eq(2)&&Text;li.data--span:eq(3)&&Text",
+ "content": ".full_text&&span&&Text",
+ "tabs": `js:
+ TABS = [];
+ let tabs = pdfa(html, '#NumTab&&a');
+ tabs.forEach((it) => {
+ TABS.push(pdfh(it, 'a&&alt'))
+ });
+ `,
+ // "lists": ".content_playlist:not(.list_scroll):eq(#id) a"
+ "lists": "div.playlist_full:eq(#id) li"
+ },
+ 搜索: 'li.searchlist_item;*;*;*;*',
+}
\ No newline at end of file
diff --git a/JS/思古影视.js b/JS/思古影视.js
new file mode 100644
index 0000000..81a5794
--- /dev/null
+++ b/JS/思古影视.js
@@ -0,0 +1,44 @@
+var rule = {
+ 类型: '影视',
+ title: '思古影视',
+ host: 'https://siguyy.cn',
+ url: '/show/fyclass--------fypage---/',
+ searchUrl: 'https://siguyy.cn/search/-------------/?wd=**',
+ searchable: 2,
+ quickSearch: 0,
+ timeout: 5000,
+ play_parse: true,
+ filterable: 0,
+ class_name: '电影&电视剧&综艺&动漫',
+ class_url: '1&2&3&4',
+ lazy: `js:
+ if(/\\.(m3u8|mp4)/.test(input)){
+ input = {parse:0,url:input}
+ }else{
+ if(rule.parse_url.startsWith('json:')){
+ let purl = rule.parse_url.replace('json:','')+input;
+ let html = request(purl);
+ input = {parse:0,url:JSON.parse(html).url}
+ }else{
+ input= rule.parse_url+input;
+ }
+ `,
+ headers: {
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/131.0.0.0 Safari/537.36 Edg/131.0.0.0",
+ },
+ 推荐: '*',
+ 一级: '.container .flex.desktop-hover-effect;span&&Text;img&&data-original;p.truncate&&Text;a&&href',
+ 二级: {
+ title: '.p-3.mobile&&Text',
+ img: 'img&&data-original',
+ desc: '.text-sm.py-1&&Text',
+ content: '.text-secondary&&Text',
+ tabs: '.flex.flex-row.gap-1.items-center',
+ lists: '.flex.flex-column.overflow-auto.no-scrollbar&&li',
+ tab_text: 'body&&Text',
+ list_text: 'a&&Text',
+ list_url: 'a&&href',
+ },
+ double: false,
+ 搜索: '.col-lg-6.col-md-12.mt-2.mb-2.cursor-pointer;.topic-details-title-sub.text-secondary&&Text;img&&data-original;.topic-details-title&&Text;a&&href',
+}
\ No newline at end of file
diff --git a/JS/怡萱动漫.js b/JS/怡萱动漫.js
new file mode 100644
index 0000000..d33b0fb
--- /dev/null
+++ b/JS/怡萱动漫.js
@@ -0,0 +1,773 @@
+// 发布页 https://acgfans.org/pub.html
+var rule = {
+ title: '怡萱动漫',
+ // host:'https://www.yxdmlove.com',
+ host: 'https://acgfans.org/pub.html',
+ hostJs: 'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src = jsp.pdfh(html,"p:eq(0)&&a&&Text");print(src);HOST=src', //网页域名根动态抓取js代码。通过HOST=赋值
+ // url:'/category.html?channel=17&zhonglei=fyclass&orderby=pubdate&totalresult=2999&pageno=fypage',
+ url: '/category.html?channel=17&zhonglei=fyclassfyfilter&pageno=fypage',
+ filterable: 1, //是否启用分类筛选,
+ filter_url: '&{{fl.by or "orderby=pubdate"}}&{{fl.year}}&{{fl.area}}&{{fl.sta}}&{{fl.class}}',
+ filter: {
+ "TV": [{
+ "key": "sta",
+ "name": "进度",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "连载中",
+ "v": "status=连载中"
+ }, {
+ "n": "已完结",
+ "v": "status=已完结"
+ }, {
+ "n": "未播放",
+ "v": "status=未播放"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "日本",
+ "v": "area=日本"
+ }, {
+ "n": "中国",
+ "v": "area=中国"
+ }, {
+ "n": "欧美",
+ "v": "area=欧美"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "year=2025"
+ }, {
+ "n": "2024",
+ "v": "year=2024"
+ }, {
+ "n": "2023",
+ "v": "year=2023"
+ }, {
+ "n": "2022",
+ "v": "year=2022"
+ }, {
+ "n": "2021",
+ "v": "year=2021"
+ }, {
+ "n": "2020",
+ "v": "year=2020"
+ }, {
+ "n": "2019",
+ "v": "year=2019"
+ }, {
+ "n": "2018",
+ "v": "year=2018"
+ }, {
+ "n": "2017",
+ "v": "year=2017"
+ }, {
+ "n": "2016",
+ "v": "year=2016"
+ }, {
+ "n": "2015",
+ "v": "year=2015"
+ }, {
+ "n": "2014",
+ "v": "year=2014"
+ }, {
+ "n": "2013",
+ "v": "year=2013"
+ }, {
+ "n": "2012",
+ "v": "year=2012"
+ }, {
+ "n": "2011",
+ "v": "year=2011"
+ }, {
+ "n": "2010",
+ "v": "year=2010"
+ }, {
+ "n": "更早",
+ "v": "year=2010前"
+ }]
+ }, {
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "jqlx=冒险"
+ }, {
+ "n": "热血",
+ "v": "jqlx=热血"
+ }, {
+ "n": "爱情",
+ "v": "jqlx=爱情"
+ }, {
+ "n": "搞笑",
+ "v": "jqlx=搞笑"
+ }, {
+ "n": "后宫",
+ "v": "jqlx=后宫"
+ }, {
+ "n": "校园",
+ "v": "jqlx=校园"
+ }, {
+ "n": "机战",
+ "v": "jqlx=机战"
+ }, {
+ "n": "幻想",
+ "v": "jqlx=幻想"
+ }, {
+ "n": "科幻",
+ "v": "jqlx=科幻"
+ }, {
+ "n": "竞技",
+ "v": "jqlx=竞技"
+ }, {
+ "n": "百合",
+ "v": "jqlx=百合"
+ }, {
+ "n": "耽美",
+ "v": "jqlx=耽美"
+ }, {
+ "n": "悬疑",
+ "v": "jqlx=悬疑"
+ }, {
+ "n": "剧情",
+ "v": "jqlx=剧情"
+ }, {
+ "n": "战争",
+ "v": "jqlx=战争"
+ }, {
+ "n": "恐怖",
+ "v": "jqlx=恐怖"
+ }, {
+ "n": "运动",
+ "v": "jqlx=运动"
+ }, {
+ "n": "动作",
+ "v": "jqlx=动作"
+ }, {
+ "n": "童话",
+ "v": "jqlx=童话"
+ }, {
+ "n": "历史",
+ "v": "jqlx=历史"
+ }, {
+ "n": "真人",
+ "v": "jqlx=真人"
+ }, {
+ "n": "女性向",
+ "v": "jqlx=女性向"
+ }, {
+ "n": "泡面番",
+ "v": "jqlx=泡面番"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "orderby=pubdate"
+ }, {
+ "n": "热度",
+ "v": "orderby=click"
+ }]
+ }],
+ "剧场版": [{
+ "key": "sta",
+ "name": "进度",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "连载中",
+ "v": "status=连载中"
+ }, {
+ "n": "已完结",
+ "v": "status=已完结"
+ }, {
+ "n": "未播放",
+ "v": "status=未播放"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "日本",
+ "v": "area=日本"
+ }, {
+ "n": "中国",
+ "v": "area=中国"
+ }, {
+ "n": "欧美",
+ "v": "area=欧美"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "year=2025"
+ }, {
+ "n": "2024",
+ "v": "year=2024"
+ }, {
+ "n": "2023",
+ "v": "year=2023"
+ }, {
+ "n": "2022",
+ "v": "year=2022"
+ }, {
+ "n": "2021",
+ "v": "year=2021"
+ }, {
+ "n": "2020",
+ "v": "year=2020"
+ }, {
+ "n": "2019",
+ "v": "year=2019"
+ }, {
+ "n": "2018",
+ "v": "year=2018"
+ }, {
+ "n": "2017",
+ "v": "year=2017"
+ }, {
+ "n": "2016",
+ "v": "year=2016"
+ }, {
+ "n": "2015",
+ "v": "year=2015"
+ }, {
+ "n": "2014",
+ "v": "year=2014"
+ }, {
+ "n": "2013",
+ "v": "year=2013"
+ }, {
+ "n": "2012",
+ "v": "year=2012"
+ }, {
+ "n": "2011",
+ "v": "year=2011"
+ }, {
+ "n": "2010",
+ "v": "year=2010"
+ }, {
+ "n": "更早",
+ "v": "year=2010前"
+ }]
+ }, {
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "jqlx=冒险"
+ }, {
+ "n": "热血",
+ "v": "jqlx=热血"
+ }, {
+ "n": "爱情",
+ "v": "jqlx=爱情"
+ }, {
+ "n": "搞笑",
+ "v": "jqlx=搞笑"
+ }, {
+ "n": "后宫",
+ "v": "jqlx=后宫"
+ }, {
+ "n": "校园",
+ "v": "jqlx=校园"
+ }, {
+ "n": "机战",
+ "v": "jqlx=机战"
+ }, {
+ "n": "幻想",
+ "v": "jqlx=幻想"
+ }, {
+ "n": "科幻",
+ "v": "jqlx=科幻"
+ }, {
+ "n": "竞技",
+ "v": "jqlx=竞技"
+ }, {
+ "n": "百合",
+ "v": "jqlx=百合"
+ }, {
+ "n": "耽美",
+ "v": "jqlx=耽美"
+ }, {
+ "n": "悬疑",
+ "v": "jqlx=悬疑"
+ }, {
+ "n": "剧情",
+ "v": "jqlx=剧情"
+ }, {
+ "n": "战争",
+ "v": "jqlx=战争"
+ }, {
+ "n": "恐怖",
+ "v": "jqlx=恐怖"
+ }, {
+ "n": "运动",
+ "v": "jqlx=运动"
+ }, {
+ "n": "动作",
+ "v": "jqlx=动作"
+ }, {
+ "n": "童话",
+ "v": "jqlx=童话"
+ }, {
+ "n": "历史",
+ "v": "jqlx=历史"
+ }, {
+ "n": "真人",
+ "v": "jqlx=真人"
+ }, {
+ "n": "女性向",
+ "v": "jqlx=女性向"
+ }, {
+ "n": "泡面番",
+ "v": "jqlx=泡面番"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "orderby=pubdate"
+ }, {
+ "n": "热度",
+ "v": "orderby=click"
+ }]
+ }],
+ "OVA": [{
+ "key": "sta",
+ "name": "进度",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "连载中",
+ "v": "status=连载中"
+ }, {
+ "n": "已完结",
+ "v": "status=已完结"
+ }, {
+ "n": "未播放",
+ "v": "status=未播放"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "日本",
+ "v": "area=日本"
+ }, {
+ "n": "中国",
+ "v": "area=中国"
+ }, {
+ "n": "欧美",
+ "v": "area=欧美"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "year=2025"
+ }, {
+ "n": "2024",
+ "v": "year=2024"
+ }, {
+ "n": "2023",
+ "v": "year=2023"
+ }, {
+ "n": "2022",
+ "v": "year=2022"
+ }, {
+ "n": "2021",
+ "v": "year=2021"
+ }, {
+ "n": "2020",
+ "v": "year=2020"
+ }, {
+ "n": "2019",
+ "v": "year=2019"
+ }, {
+ "n": "2018",
+ "v": "year=2018"
+ }, {
+ "n": "2017",
+ "v": "year=2017"
+ }, {
+ "n": "2016",
+ "v": "year=2016"
+ }, {
+ "n": "2015",
+ "v": "year=2015"
+ }, {
+ "n": "2014",
+ "v": "year=2014"
+ }, {
+ "n": "2013",
+ "v": "year=2013"
+ }, {
+ "n": "2012",
+ "v": "year=2012"
+ }, {
+ "n": "2011",
+ "v": "year=2011"
+ }, {
+ "n": "2010",
+ "v": "year=2010"
+ }, {
+ "n": "更早",
+ "v": "year=2010前"
+ }]
+ }, {
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "jqlx=冒险"
+ }, {
+ "n": "热血",
+ "v": "jqlx=热血"
+ }, {
+ "n": "爱情",
+ "v": "jqlx=爱情"
+ }, {
+ "n": "搞笑",
+ "v": "jqlx=搞笑"
+ }, {
+ "n": "后宫",
+ "v": "jqlx=后宫"
+ }, {
+ "n": "校园",
+ "v": "jqlx=校园"
+ }, {
+ "n": "机战",
+ "v": "jqlx=机战"
+ }, {
+ "n": "幻想",
+ "v": "jqlx=幻想"
+ }, {
+ "n": "科幻",
+ "v": "jqlx=科幻"
+ }, {
+ "n": "竞技",
+ "v": "jqlx=竞技"
+ }, {
+ "n": "百合",
+ "v": "jqlx=百合"
+ }, {
+ "n": "耽美",
+ "v": "jqlx=耽美"
+ }, {
+ "n": "悬疑",
+ "v": "jqlx=悬疑"
+ }, {
+ "n": "剧情",
+ "v": "jqlx=剧情"
+ }, {
+ "n": "战争",
+ "v": "jqlx=战争"
+ }, {
+ "n": "恐怖",
+ "v": "jqlx=恐怖"
+ }, {
+ "n": "运动",
+ "v": "jqlx=运动"
+ }, {
+ "n": "动作",
+ "v": "jqlx=动作"
+ }, {
+ "n": "童话",
+ "v": "jqlx=童话"
+ }, {
+ "n": "历史",
+ "v": "jqlx=历史"
+ }, {
+ "n": "真人",
+ "v": "jqlx=真人"
+ }, {
+ "n": "女性向",
+ "v": "jqlx=女性向"
+ }, {
+ "n": "泡面番",
+ "v": "jqlx=泡面番"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "orderby=pubdate"
+ }, {
+ "n": "热度",
+ "v": "orderby=click"
+ }]
+ }],
+ "其他": [{
+ "key": "sta",
+ "name": "进度",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "连载中",
+ "v": "status=连载中"
+ }, {
+ "n": "已完结",
+ "v": "status=已完结"
+ }, {
+ "n": "未播放",
+ "v": "status=未播放"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "日本",
+ "v": "area=日本"
+ }, {
+ "n": "中国",
+ "v": "area=中国"
+ }, {
+ "n": "欧美",
+ "v": "area=欧美"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "year=2025"
+ }, {
+ "n": "2024",
+ "v": "year=2024"
+ }, {
+ "n": "2023",
+ "v": "year=2023"
+ }, {
+ "n": "2022",
+ "v": "year=2022"
+ }, {
+ "n": "2021",
+ "v": "year=2021"
+ }, {
+ "n": "2020",
+ "v": "year=2020"
+ }, {
+ "n": "2019",
+ "v": "year=2019"
+ }, {
+ "n": "2018",
+ "v": "year=2018"
+ }, {
+ "n": "2017",
+ "v": "year=2017"
+ }, {
+ "n": "2016",
+ "v": "year=2016"
+ }, {
+ "n": "2015",
+ "v": "year=2015"
+ }, {
+ "n": "2014",
+ "v": "year=2014"
+ }, {
+ "n": "2013",
+ "v": "year=2013"
+ }, {
+ "n": "2012",
+ "v": "year=2012"
+ }, {
+ "n": "2011",
+ "v": "year=2011"
+ }, {
+ "n": "2010",
+ "v": "year=2010"
+ }, {
+ "n": "更早",
+ "v": "year=2010前"
+ }]
+ }, {
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "冒险",
+ "v": "jqlx=冒险"
+ }, {
+ "n": "热血",
+ "v": "jqlx=热血"
+ }, {
+ "n": "爱情",
+ "v": "jqlx=爱情"
+ }, {
+ "n": "搞笑",
+ "v": "jqlx=搞笑"
+ }, {
+ "n": "后宫",
+ "v": "jqlx=后宫"
+ }, {
+ "n": "校园",
+ "v": "jqlx=校园"
+ }, {
+ "n": "机战",
+ "v": "jqlx=机战"
+ }, {
+ "n": "幻想",
+ "v": "jqlx=幻想"
+ }, {
+ "n": "科幻",
+ "v": "jqlx=科幻"
+ }, {
+ "n": "竞技",
+ "v": "jqlx=竞技"
+ }, {
+ "n": "百合",
+ "v": "jqlx=百合"
+ }, {
+ "n": "耽美",
+ "v": "jqlx=耽美"
+ }, {
+ "n": "悬疑",
+ "v": "jqlx=悬疑"
+ }, {
+ "n": "剧情",
+ "v": "jqlx=剧情"
+ }, {
+ "n": "战争",
+ "v": "jqlx=战争"
+ }, {
+ "n": "恐怖",
+ "v": "jqlx=恐怖"
+ }, {
+ "n": "运动",
+ "v": "jqlx=运动"
+ }, {
+ "n": "动作",
+ "v": "jqlx=动作"
+ }, {
+ "n": "童话",
+ "v": "jqlx=童话"
+ }, {
+ "n": "历史",
+ "v": "jqlx=历史"
+ }, {
+ "n": "真人",
+ "v": "jqlx=真人"
+ }, {
+ "n": "女性向",
+ "v": "jqlx=女性向"
+ }, {
+ "n": "泡面番",
+ "v": "jqlx=泡面番"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "orderby=pubdate"
+ }, {
+ "n": "热度",
+ "v": "orderby=click"
+ }]
+ }]
+ },
+ // filter_def:{
+ // TV:{by:'orderby=pubdate'},
+ // 剧场版:{by:'orderby=pubdate'},
+ // OVA:{by:'orderby=pubdate'},
+ // 其他:{by:'orderby=pubdate'}
+ // },
+ searchUrl: '/search.html?keyword=**&PageNo=fypage',
+ searchable: 2, //是否启用全局搜索,
+ headers: { //网站的请求头,完整支持所有的,常带ua和cookies
+ 'User-Agent': 'PC_UA',
+ },
+ class_name: 'TV&剧场版&OVA&其他',
+ class_url: 'TV&剧场版&OVA&其他',
+ play_parse: true,
+ lazy: '',
+ limit: 6,
+ // 推荐:'.dhnew.adj li;*;*;*;*',
+ 推荐: '.dhnew.adj li;a&&title;img&&src;p:eq(-1)&&Text;a&&href',
+ // 一级:'.dhnew li;a&&title;img&&src;p:eq(-1)&&Text;a&&href',
+ 一级: `js:
+ let d = [];
+ pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
+ let html = '';
+ let totalresult = getItem("totalresult_" + MY_CATE, '')
+ if (totalresult == '') {
+ html = request(input);
+ totalresult = pdfh(html, ".pageinfo&&strong&&Text");
+ setItem("totalresult_" + MY_CATE, totalresult)
+ }
+ input += '&totalresult=' + getItem("totalresult_" + MY_CATE, '');
+ html = request(input);
+ let list = pdfa(html, ".dhnew&&li");
+ list.forEach(it => {
+ d.push({
+ title: pdfh(it, "a&&title"),
+ desc: pdfh(it, "p:eq(-1)&&Text"),
+ pic_url: pd(it, "img&&src"),
+ url: pd(it, "a&&href")
+ })
+ });
+ setResult(d)
+ `,
+ 二级: {
+ "title": "h1&&Text;.dhxx p:eq(4)&&Text",
+ "img": ".anime-img&&img&&src",
+ "desc": ".info1-left li:eq(1)&&Text;.dhxx p:eq(3)&&Text;.dhxx p:eq(2)&&Text;.info1-left li:eq(0)&&Text;.info1-left li:eq(2)&&Text",
+ "content": ".info2--strong&&Text",
+ "tabs": ".ol-select li",
+ "lists": ".ol-content:eq(#id) li"
+ },
+ // 搜索:'*;*;*;p:eq(3)&&Text;*',
+ 搜索: '.dhnew li;a&&title;img&&src;p:eq(3)&&Text;a&&href',
+}
\ No newline at end of file
diff --git a/JS/机器人.js b/JS/机器人.js
new file mode 100644
index 0000000..93c486f
--- /dev/null
+++ b/JS/机器人.js
@@ -0,0 +1,198 @@
+var rule = {
+ title: '爱看机器人[虫]',
+ // host:'https://v.ikanbot.com',
+ host: 'https://v.aikanbot.com',
+ url: '/hot/index-fyclass-fyfilter-p-fypage.html[/hot/index-fyclass-fyfilter.html]',
+ //https://www.ikanbot.com/search?q=%E6%96%97%E7%BD%97%E5%A4%A7&p=2
+ // searchUrl:'/search?q=**&p=fypage',
+ searchUrl: '/search?q=**&p=fypage[/search?q=**]',
+ searchable: 2,
+ quickSearch: 0,
+ filterable: 1,
+ filter_url: '{{fl.tag}}',
+ 图片来源: '@Referer=https://v.ikanbot.com/@User-Agent=Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36',
+ filter: {
+ "movie": [{
+ "key": "tag",
+ "name": "标签",
+ "value": [{
+ "n": "热门",
+ "v": "热门"
+ }, {
+ "n": "最新",
+ "v": "最新"
+ }, {
+ "n": "经典",
+ "v": "经典"
+ }, {
+ "n": "豆瓣高分",
+ "v": "豆瓣高分"
+ }, {
+ "n": "冷门佳片",
+ "v": "冷门佳片"
+ }, {
+ "n": "华语",
+ "v": "华语"
+ }, {
+ "n": "欧美",
+ "v": "欧美"
+ }, {
+ "n": "韩国",
+ "v": "韩国"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "动作",
+ "v": "动作"
+ }, {
+ "n": "喜剧",
+ "v": "喜剧"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "治愈",
+ "v": "治愈"
+ }, {
+ "n": "豆瓣top250",
+ "v": "豆瓣top250"
+ }]
+ }],
+ "tv": [{
+ "key": "tag",
+ "name": "标签",
+ "value": [{
+ "n": "热门",
+ "v": "热门"
+ }, {
+ "n": "美剧",
+ "v": "美剧"
+ }, {
+ "n": "英剧",
+ "v": "英剧"
+ }, {
+ "n": "韩剧",
+ "v": "韩剧"
+ }, {
+ "n": "日剧",
+ "v": "日剧"
+ }, {
+ "n": "国产剧",
+ "v": "国产剧"
+ }, {
+ "n": "港剧",
+ "v": "港剧"
+ }, {
+ "n": "日本动画",
+ "v": "日本动画"
+ }, {
+ "n": "综艺",
+ "v": "综艺"
+ }, {
+ "n": "纪录片",
+ "v": "纪录片"
+ }]
+ }]
+ },
+ filter_def: {
+ movie: {
+ tag: '热门'
+ },
+ tv: {
+ tag: '国产剧'
+ },
+ },
+ filter获取方法: `
+ let value = [];
+ $('ul').eq(2).find('li').each(function() {
+ // console.log($(this).text());
+ let n = $(this).text().trim();
+ value.push({
+ 'n': n, 'v': n
+ });
+ });
+ // 电影执行:
+ let data = {'movie': [{'key': 'tag', 'name': '标签', 'value': value}]};
+ console.log(JSON.stringify(data));
+
+ //剧集执行:
+ let data = {'tv': [{'key': 'tag', 'name': '标签', 'value': value}]};
+ console.log(JSON.stringify(data));
+ `,
+ headers: {
+ 'User-Agent': 'PC_UA',
+ },
+ class_name: '电影&剧集',
+ class_url: 'movie&tv',
+ play_parse: true,
+ double: true,
+ tab_remove: ['wjm3u8', 'ikm3u8', 'sdm3u8', 'M3U8', 'jinyingm3u8', 'fsm3u8', 'ukm3u8'], //移除某个线路及相关的选集
+ tab_order: ['bfzym3u8', '1080zyk', 'kuaikan', 'lzm3u8', 'ffm3u8', 'snm3u8', 'qhm3u8', 'gsm3u8', 'zuidam3u8', 'bjm3u8', 'wolong', 'xlm3u8', 'yhm3u8'], //线路顺序,按里面的顺序优先,没写的依次排后面
+ tab_rename: {
+ 'bfzym3u8': '暴风',
+ '1080zyk': '优质',
+ 'kuaikan': '快看',
+ 'lzm3u8': '量子',
+ 'ffm3u8': '非凡',
+ 'snm3u8': '索尼',
+ 'qhm3u8': '奇虎',
+ 'haiwaikan': '海外看',
+ 'gsm3u8': '光速',
+ 'zuidam3u8': '最大',
+ 'bjm3u8': '八戒',
+ 'wolong': '卧龙',
+ 'xlm3u8': '新浪',
+ 'yhm3u8': '樱花',
+ 'tkm3u8': '天空',
+ 'jsm3u8': '极速',
+ 'wjm3u8': '无尽',
+ 'sdm3u8': '闪电',
+ 'kcm3u8': '快车',
+ 'jinyingm3u8': '金鹰',
+ 'fsm3u8': '飞速',
+ 'tpm3u8': '淘片',
+ 'lem3u8': '鱼乐',
+ 'dbm3u8': '百度',
+ 'tomm3u8': '番茄',
+ 'ukm3u8': 'U酷',
+ 'ikm3u8': '爱坤',
+ 'hnzym3u8': '红牛资源',
+ 'hnm3u8': '红牛',
+ '68zy_m3u8': '68',
+ 'kdm3u8': '酷点',
+ 'bdxm3u8': '北斗星',
+ 'hhm3u8': '豪华',
+ 'kbm3u8': '快播'
+ }, //线路名替换如:lzm3u8替换为量子资源
+ 推荐: '.v-list;div.item;*;*;*;*', //这里可以为空,这样点播不会有内容
+ // 一级:'.v-list&&div.item;p&&Text;img&&src;;a&&href', //一级的内容是推荐或者点播时候的一级匹配
+ 一级: '.v-list&&div.item;p&&Text;img&&data-src;;a&&href', //一级的内容是推荐或者点播时候的一级匹配
+ // 二级:二级,
+ 二级: 'js:eval(unescape(base64Decode("anM6CiAgICAgICAgcGRmaCA9IGpzcC5wZGZoOwogICAgICAgIGZ1bmN0aW9uIGdldFRva2VuKGh0bWwxKSB7CiAgICAgICAgICAgIGxldCBjdXJyZW50SWQgPSBwZGZoKGh0bWwxLCAnI2N1cnJlbnRfaWQmJnZhbHVlJyk7CiAgICAgICAgICAgIGxldCBlVG9rZW4gPSBwZGZoKGh0bWwxLCAnI2VfdG9rZW4mJnZhbHVlJyk7CiAgICAgICAgICAgIGlmICghY3VycmVudElkIHx8ICFlVG9rZW4pIHJldHVybiAnJzsKICAgICAgICAgICAgbGV0IGlkTGVuZ3RoID0gY3VycmVudElkLmxlbmd0aDsKICAgICAgICAgICAgbGV0IHN1YklkID0gY3VycmVudElkLnN1YnN0cmluZyhpZExlbmd0aCAtIDQsIGlkTGVuZ3RoKTsKICAgICAgICAgICAgbGV0IGtleXMgPSBbXTsKICAgICAgICAgICAgZm9yIChsZXQgaSA9IDA7IGkgPCBzdWJJZC5sZW5ndGg7IGkrKykgewogICAgICAgICAgICAgICAgbGV0IGN1ckludCA9IHBhcnNlSW50KHN1YklkW2ldKTsKICAgICAgICAgICAgICAgIGxldCBzcGxpdFBvcyA9IGN1ckludCAlIDMgKyAxOwogICAgICAgICAgICAgICAga2V5c1tpXSA9IGVUb2tlbi5zdWJzdHJpbmcoc3BsaXRQb3MsIHNwbGl0UG9zICsgOCk7CiAgICAgICAgICAgICAgICBlVG9rZW4gPSBlVG9rZW4uc3Vic3RyaW5nKHNwbGl0UG9zICsgOCwgZVRva2VuLmxlbmd0aCk7CiAgICAgICAgICAgIH0KICAgICAgICAgICAgcmV0dXJuIGtleXMuam9pbignJyk7CiAgICAgICAgfQogICAgICAgIHRyeSB7CiAgICAgICAgICAgIFZPRD17fTsKICAgICAgICAgICAgbGV0IGh0bWwxID0gcmVxdWVzdChpbnB1dCk7CiAgICAgICAgICAgIFZPRC52b2RfaWQgPSBwZGZoKGh0bWwxLCAnI2N1cnJlbnRfaWQmJnZhbHVlJyk7CiAgICAgICAgICAgIFZPRC52b2RfbmFtZSA9IHBkZmgoaHRtbDEsICdoMiYmVGV4dCcpOwogICAgICAgICAgICBWT0Qudm9kX3BpYyA9IHBkZmgoaHRtbDEsICcuaXRlbS1yb290JiZpbWcmJmRhdGEtc3JjJyk7CiAgICAgICAgICAgIFZPRC52b2RfYWN0b3IgPSBwZGZoKGh0bWwxLCAnLm1ldGE6ZXEoNCkmJlRleHQnKTsKICAgICAgICAgICAgVk9ELnZvZF9hcmVhID0gcGRmaChodG1sMSwgJy5tZXRhOmVxKDMpJiZUZXh0Jyk7CiAgICAgICAgICAgIFZPRC52b2RfeWVhciA9IHBkZmgoaHRtbDEsICcubWV0YTplcSgyKSYmVGV4dCcpOwogICAgICAgICAgICBWT0Qudm9kX3JlbWFya3MgPSAnJzsKICAgICAgICAgICAgVk9ELnZvZF9kaXJlY3RvciA9ICcnOwogICAgICAgICAgICBWT0Qudm9kX2NvbnRlbnQgPSBwZGZoKGh0bWwxLCAnI2xpbmUtdGlwcyYmVGV4dCcpOwogICAgICAgICAgICAvLyBsb2coVk9EKTsKICAgICAgICAgICAgdmFyIHZfdGtzID0gZ2V0VG9rZW4oaHRtbDEpOwogICAgICAgICAgICBsb2coJ3ZfdGtzID09PT4gJyArIHZfdGtzKTsKICAgICAgICAgICAgaW5wdXQgPSBIT1NUICsgJy9hcGkvZ2V0UmVzTj92aWRlb0lkPScgKyBpbnB1dC5zcGxpdCgnLycpLnBvcCgpICsgJyZtdHlwZT0yJnRva2VuPScrdl90a3M7CiAgICAgICAgICAgIGxldCBodG1sID0gcmVxdWVzdChpbnB1dCwgewogICAgICAgICAgICAgICAgaGVhZGVyczogewogICAgICAgICAgICAgICAgICAgICdVc2VyLUFnZW50JzonTW96aWxsYS81LjAgKGlQaG9uZTsgQ1BVIGlQaG9uZSBPUyAxM18yXzMgbGlrZSBNYWMgT1MgWCkgQXBwbGVXZWJLaXQvNjA1LjEuMTUgKEtIVE1MLCBsaWtlIEdlY2tvKSBWZXJzaW9uLzEzLjAuMyBNb2JpbGUvMTVFMTQ4IFNhZmFyaS82MDQuMScsCiAgICAgICAgICAgICAgICAgICAgJ1JlZmVyZXInOiBNWV9VUkwsCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBwcmludChodG1sKTsKICAgICAgICAgICAgaHRtbCA9IEpTT04ucGFyc2UoaHRtbCk7CiAgICAgICAgICAgIGxldCBlcGlzb2RlcyA9IGh0bWwuZGF0YS5saXN0OwogICAgICAgICAgICBsZXQgcGxheU1hcCA9IHt9OwogICAgICAgICAgICBpZiAodHlwZW9mIHBsYXlfdXJsID09PSAndW5kZWZpbmVkJykgewogICAgICAgICAgICAgICAgdmFyIHBsYXlfdXJsID0gJycKICAgICAgICAgICAgfQogICAgICAgICAgICBsZXQgbWFwID0ge30KICAgICAgICAgICAgbGV0IGFyciA9IFtdCiAgICAgICAgICAgIGxldCBuYW1lID0gewogICAgICAgICAgICAgICAgJ2JmenltM3U4JzogJ+aatOmjjicsCiAgICAgICAgICAgICAgICAnMTA4MHp5ayc6ICfkvJjotKgnLAogICAgICAgICAgICAgICAgJ2t1YWlrYW4nOiAn5b+r55yLJywKICAgICAgICAgICAgICAgICdsem0zdTgnOiAn6YeP5a2QJywKICAgICAgICAgICAgICAgICdmZm0zdTgnOiAn6Z2e5YehJywKICAgICAgICAgICAgICAgICdoYWl3YWlrYW4nOiAn5rW35aSW55yLJywKICAgICAgICAgICAgICAgICdnc20zdTgnOiAn5YWJ6YCfJywKICAgICAgICAgICAgICAgICd6dWlkYW0zdTgnOiAn5pyA5aSnJywKICAgICAgICAgICAgICAgICdiam0zdTgnOiAn5YWr5oiSJywKICAgICAgICAgICAgICAgICdzbm0zdTgnOiAn57Si5bC8JywKICAgICAgICAgICAgICAgICd3b2xvbmcnOiAn5Y2n6b6ZJywKICAgICAgICAgICAgICAgICd4bG0zdTgnOiAn5paw5rWqJywKICAgICAgICAgICAgICAgICd5aG0zdTgnOiAn5qix6IqxJywKICAgICAgICAgICAgICAgICd0a20zdTgnOiAn5aSp56m6JywKICAgICAgICAgICAgICAgICdqc20zdTgnOiAn5p6B6YCfJywKICAgICAgICAgICAgICAgICd3am0zdTgnOiAn5peg5bC9JywKICAgICAgICAgICAgICAgICdzZG0zdTgnOiAn6Zeq55S1JywKICAgICAgICAgICAgICAgICdrY20zdTgnOiAn5b+r6L2mJywKICAgICAgICAgICAgICAgICdqaW55aW5nbTN1OCc6ICfph5HpubAnLAogICAgICAgICAgICAgICAgJ2ZzbTN1OCc6ICfpo57pgJ8nLAogICAgICAgICAgICAgICAgJ3RwbTN1OCc6ICfmt5jniYcnLAogICAgICAgICAgICAgICAgJ2xlbTN1OCc6ICfpsbzkuZAnLAogICAgICAgICAgICAgICAgJ2RibTN1OCc6ICfnmb7luqYnLAogICAgICAgICAgICAgICAgJ3RvbW0zdTgnOiAn55Wq6IyEJywKICAgICAgICAgICAgICAgICd1a20zdTgnOiAnVemFtycsCiAgICAgICAgICAgICAgICAnaWttM3U4JzogJ+eIseWdpCcsCiAgICAgICAgICAgICAgICAnaG56eW0zdTgnOiAn57qi54mb6LWE5rqQJywKICAgICAgICAgICAgICAgICdobm0zdTgnOiAn57qi54mbJywKICAgICAgICAgICAgICAgICc2OHp5X20zdTgnOiAnNjgnLAogICAgICAgICAgICAgICAgJ2tkbTN1OCc6ICfphbfngrknLAogICAgICAgICAgICAgICAgJ2JkeG0zdTgnOiAn5YyX5paX5pifJywKICAgICAgICAgICAgICAgICdxaG0zdTgnOiAn5aWH6JmOJywKICAgICAgICAgICAgICAgICdoaG0zdTgnOiAn6LGq5Y2OJwogICAgICAgICAgICB9OwogICAgICAgICAgICBlcGlzb2Rlcy5mb3JFYWNoKGZ1bmN0aW9uKGVwKSB7CiAgICAgICAgICAgICAgICBsZXQgZGF0YSA9IEpTT04ucGFyc2UoZXBbJ3Jlc0RhdGEnXSk7CiAgICAgICAgICAgICAgICBkYXRhLm1hcCh2YWwgPT4gewogICAgICAgICAgICAgICAgICAgIGlmKCFtYXBbdmFsLmZsYWddKXsKICAgICAgICAgICAgICAgICAgICAgICAgbWFwW3ZhbC5mbGFnXSA9IFt2YWwudXJsLnJlcGxhY2VBbGwoJyMjJywnIycpXQogICAgICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgICAgIG1hcFt2YWwuZmxhZ10ucHVzaCh2YWwudXJsLnJlcGxhY2VBbGwoJyMjJywnIycpKQogICAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIH0pCiAgICAgICAgICAgIH0pOwogICAgICAgICAgICBmb3IgKHZhciBrZXkgaW4gbWFwKSB7CiAgICAgICAgICAgICAgICBpZiAoJ2JmenltM3U4JyA9PSBrZXkpIHsKICAgICAgICAgICAgICAgICAgICBhcnIucHVzaCh7CiAgICAgICAgICAgICAgICAgICAgICAgIGZsYWc6IG5hbWVba2V5XSwKICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiBtYXBba2V5XSwKICAgICAgICAgICAgICAgICAgICAgICAgc29ydDogMQogICAgICAgICAgICAgICAgICAgIH0pCiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKCcxMDgwenlrJyA9PSBrZXkpIHsKICAgICAgICAgICAgICAgICAgICBhcnIucHVzaCh7CiAgICAgICAgICAgICAgICAgICAgICAgIGZsYWc6IG5hbWVba2V5XSwKICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiBtYXBba2V5XSwKICAgICAgICAgICAgICAgICAgICAgICAgc29ydDogMgogICAgICAgICAgICAgICAgICAgIH0pCiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKCdrdWFpa2FuJyA9PSBrZXkpIHsKICAgICAgICAgICAgICAgICAgICBhcnIucHVzaCh7CiAgICAgICAgICAgICAgICAgICAgICAgIGZsYWc6IG5hbWVba2V5XSwKICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiBtYXBba2V5XSwKICAgICAgICAgICAgICAgICAgICAgICAgc29ydDogMwogICAgICAgICAgICAgICAgICAgIH0pCiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKCdsem0zdTgnID09IGtleSkgewogICAgICAgICAgICAgICAgICAgIGFyci5wdXNoKHsKICAgICAgICAgICAgICAgICAgICAgICAgZmxhZzogbmFtZVtrZXldLAogICAgICAgICAgICAgICAgICAgICAgICB1cmw6IG1hcFtrZXldLAogICAgICAgICAgICAgICAgICAgICAgICBzb3J0OiA0CiAgICAgICAgICAgICAgICAgICAgfSkKICAgICAgICAgICAgICAgIH0gZWxzZSBpZiAoJ2ZmbTN1OCcgPT0ga2V5KSB7CiAgICAgICAgICAgICAgICAgICAgYXJyLnB1c2goewogICAgICAgICAgICAgICAgICAgICAgICBmbGFnOiBuYW1lW2tleV0sCiAgICAgICAgICAgICAgICAgICAgICAgIHVybDogbWFwW2tleV0sCiAgICAgICAgICAgICAgICAgICAgICAgIHNvcnQ6IDUKICAgICAgICAgICAgICAgICAgICB9KQogICAgICAgICAgICAgICAgfSBlbHNlIGlmICgnc25tM3U4JyA9PSBrZXkpIHsKICAgICAgICAgICAgICAgICAgICBhcnIucHVzaCh7CiAgICAgICAgICAgICAgICAgICAgICAgIGZsYWc6IG5hbWVba2V5XSwKICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiBtYXBba2V5XSwKICAgICAgICAgICAgICAgICAgICAgICAgc29ydDogNgogICAgICAgICAgICAgICAgICAgIH0pCiAgICAgICAgICAgICAgICB9IGVsc2UgaWYgKCdxaG0zdTgnID09IGtleSkgewogICAgICAgICAgICAgICAgICAgIGFyci5wdXNoKHsKICAgICAgICAgICAgICAgICAgICAgICAgZmxhZzogbmFtZVtrZXldLAogICAgICAgICAgICAgICAgICAgICAgICB1cmw6IG1hcFtrZXldLAogICAgICAgICAgICAgICAgICAgICAgICBzb3J0OiA3CiAgICAgICAgICAgICAgICAgICAgfSkKICAgICAgICAgICAgICAgIH0gZWxzZSB7CiAgICAgICAgICAgICAgICAgICAgYXJyLnB1c2goewogICAgICAgICAgICAgICAgICAgICAgICBmbGFnOiAobmFtZVtrZXldKSA/IG5hbWVba2V5XSA6IGtleSwKICAgICAgICAgICAgICAgICAgICAgICAgdXJsOiBtYXBba2V5XSwKICAgICAgICAgICAgICAgICAgICAgICAgc29ydDogOAogICAgICAgICAgICAgICAgICAgIH0pCiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYXJyLnNvcnQoKGEsIGIpID0+IGEuc29ydCAtIGIuc29ydCk7CiAgICAgICAgICAgIGxldCBwbGF5RnJvbSA9IFtdOwogICAgICAgICAgICBsZXQgcGxheUxpc3QgPSBbXTsKICAgICAgICAgICAgYXJyLm1hcCh2YWwgPT4gewogICAgICAgICAgICAgICAgaWYgKCEvdW5kZWZpbmVkLy50ZXN0KHZhbC5mbGFnKSkgewogICAgICAgICAgICAgICAgICAgIHBsYXlGcm9tLnB1c2godmFsLmZsYWcpOwogICAgICAgICAgICAgICAgICAgIHBsYXlMaXN0LnB1c2godmFsLnVybCk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0pCiAgICAgICAgICAgIGxldCB2b2RfcGxheV9mcm9tID0gcGxheUZyb20uam9pbignJCQkJyk7CiAgICAgICAgICAgIGxldCB2b2RfcGxheV91cmwgPSBwbGF5TGlzdC5qb2luKCckJCQnKTsKICAgICAgICAgICAgVk9EWyd2b2RfcGxheV9mcm9tJ10gPSB2b2RfcGxheV9mcm9tOwogICAgICAgICAgICBWT0RbJ3ZvZF9wbGF5X3VybCddID0gdm9kX3BsYXlfdXJsOwogICAgICAgICAgICAvLyBsb2coVk9EKTsKICAgICAgICB9IGNhdGNoIChlKSB7CiAgICAgICAgICAgIGxvZygn6I635Y+W5LqM57qn6K+m5oOF6aG15Y+R55Sf6ZSZ6K+vOicgKyBlLm1lc3NhZ2UpCiAgICAgICAgfQ==")))',
+ // 搜索:'#search-result&&.media;h5&&a&&Text;a&&img&&data-src;.label&&Text;a&&href',//第三个是描述,一般显示更新或者完结
+ 搜索: '.col-md-8&&.media;h5&&a&&Text;a&&img&&data-src;.label&&Text;a&&href', //第三个是描述,一般显示更新或者完结
+ lazy: `
+ if(/\\.m3u8$/.test(input)){
+ input = {
+ parse:0,
+ url:getProxyUrl()+'&url='+input,
+ jx:0
+ }
+ }
+ `,
+ proxy_rule: `js:
+ let url = input.url;
+ let m3u8 = fixAdM3u8Ai(url);
+ input = [200,'application/vnd.apple.mpegurl',m3u8]
+ `
+}
\ No newline at end of file
diff --git a/drpy_libs/模板.js b/JS/模板.js
similarity index 87%
rename from drpy_libs/模板.js
rename to JS/模板.js
index f63e1b7..6da4cc5 100644
--- a/drpy_libs/模板.js
+++ b/JS/模板.js
@@ -1,5 +1,5 @@
if (typeof Object.assign !== 'function') {
- Object.assign = function () {
+ Object.assign = function() {
let target = arguments[0];
for (let i = 1; i < arguments.length; i++) {
let source = arguments[i];
@@ -31,7 +31,7 @@ let common_lazy = `js:
url: url,
};
} else {
- input;
+ input = url && url.startsWith('http') && tellIsJx(url) ? {parse:0,jx:1,url:url}:input;
}`;
// 默认嗅探播放
@@ -90,10 +90,10 @@ function getMubans() {
host: '', // homeUrl:'/',
url: '/vodshow/fyclass--------fypage---.html',
searchUrl: '/vodsearch/**----------fypage---.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- headers: {//网站的请求头,完整支持所有的,常带ua和cookies
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
+ headers: { //网站的请求头,完整支持所有的,常带ua和cookies
'User-Agent': 'MOBILE_UA', // "Cookie": "searchneed=ok"
},
class_parse: '.navbar-items li:gt(0):lt(10);a&&Text;a&&href;/(\\d+)',
@@ -113,14 +113,15 @@ function getMubans() {
tab_text: 'div--small&&Text',
},
搜索: 'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
- }, mxone5: {
+ },
+ mxone5: {
title: '',
host: '',
url: '/show/fyclass--------fypage---.html',
searchUrl: '/search/**----------fypage---.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
class_parse: '.nav-menu-items&&li;a&&Text;a&&href;.*/(.*?)\.html',
play_parse: true,
lazy: common_lazy,
@@ -138,15 +139,16 @@ function getMubans() {
tab_text: 'div--small&&Text',
},
搜索: '.module-items .module-search-item;a&&title;img&&data-src;.video-serial&&Text;a&&href',
- }, 首图: {
+ },
+ 首图: {
title: '',
host: '',
url: '/vodshow/fyclass--------fypage---/',
searchUrl: '/vodsearch/**----------fypage---.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- headers: {//网站的请求头,完整支持所有的,常带ua和cookies
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
+ headers: { //网站的请求头,完整支持所有的,常带ua和cookies
'User-Agent': 'MOBILE_UA', // "Cookie": "searchneed=ok"
},
class_parse: '.myui-header__menu li.hidden-sm:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
@@ -166,14 +168,15 @@ function getMubans() {
lists: '.myui-content__list:eq(#id) li',
},
搜索: '#searchList li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href;.detail&&Text',
- }, 首图2: {
+ },
+ 首图2: {
title: '',
host: '',
url: '/list/fyclass-fypage.html',
searchUrl: '/vodsearch/**----------fypage---.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
headers: {
'User-Agent': 'UC_UA', // "Cookie": ""
},
@@ -196,7 +199,8 @@ function getMubans() {
lists: '.stui-content__playlist:eq(#id) li',
},
搜索: 'ul.stui-vodlist__media,ul.stui-vodlist,#searchList li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href;.detail&&Text',
- }, 默认: {
+ },
+ 默认: {
title: '',
host: '',
url: '',
@@ -230,14 +234,15 @@ function getMubans() {
list_url: 'a&&href',
},
搜索: '列表;标题;图片;描述;链接;详情',
- }, vfed: {
+ },
+ vfed: {
title: '',
host: '',
url: '/index.php/vod/show/id/fyclass/page/fypage.html',
searchUrl: '/index.php/vod/search/page/fypage/wd/**.html',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
headers: {
'User-Agent': 'UC_UA',
},
@@ -257,7 +262,8 @@ function getMubans() {
lists: '.fed-play-item:eq(#id)&&ul:eq(1)&&li',
},
搜索: '.fed-deta-info;h1&&Text;.lazyload&&data-original;.fed-list-remarks&&Text;a&&href;.fed-deta-content&&Text',
- }, 海螺3: {
+ },
+ 海螺3: {
title: '',
host: '',
searchUrl: '/v_search/**----------fypage---.html',
@@ -284,10 +290,11 @@ function getMubans() {
lists: '.hl-plays-list:eq(#id)&&li',
},
搜索: '.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- }, 海螺2: {
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
+ },
+ 海螺2: {
title: '',
host: '',
searchUrl: '/index.php/vod/search/page/fypage/wd/**/',
@@ -312,18 +319,19 @@ function getMubans() {
lists: '.play_list_box:eq(#id)&&li',
},
搜索: '.search-list;a&&title;.lazy&&data-original;.deployment&&Text;a&&href',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- }, 短视: {
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
+ },
+ 短视: {
title: '',
host: '', // homeUrl:'/',
url: '/channel/fyclass-fypage.html',
searchUrl: '/search.html?wd=**',
- searchable: 2,//是否启用全局搜索,
- quickSearch: 0,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
- headers: {//网站的请求头,完整支持所有的,常带ua和cookies
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
+ headers: { //网站的请求头,完整支持所有的,常带ua和cookies
'User-Agent': 'MOBILE_UA', // "Cookie": "searchneed=ok"
},
class_parse: '.menu_bottom ul li;a&&Text;a&&href;.*/(.*?).html',
@@ -343,7 +351,8 @@ function getMubans() {
lists: '.player:eq(#id) li',
},
搜索: '.sr_lists&&ul&&li;h3&&Text;img&&data-src;.int&&p:eq(0)&&Text;a&&href',
- }, 短视2: {
+ },
+ 短视2: {
title: '',
host: '',
class_name: '电影&电视剧&综艺&动漫',
@@ -351,9 +360,11 @@ function getMubans() {
searchUrl: '/index.php/ajax/suggest?mid=1&wd=**&limit=50',
searchable: 2,
quickSearch: 0,
- headers: {'User-Agent': 'MOBILE_UA'},
+ headers: {
+ 'User-Agent': 'MOBILE_UA'
+ },
url: '/index.php/api/vod#type=fyclass&page=fypage',
- filterable: 0,//是否启用分类筛选,
+ filterable: 0, //是否启用分类筛选,
filter_url: '',
filter: {},
filter_def: {},
@@ -373,7 +384,8 @@ function getMubans() {
lists: '.anthology-list-box:eq(#id) li',
},
搜索: 'json:list;name;pic;;id',
- }, 采集1: {
+ },
+ 采集1: {
title: '',
host: '',
homeTid: '13',
@@ -381,16 +393,18 @@ function getMubans() {
detailUrl: '/api.php/provide/vod/?ac=detail&ids=fyid',
searchUrl: '/api.php/provide/vod/?wd=**&pg=fypage',
url: '/api.php/provide/vod/?ac=detail&pg=fypage&t=fyclass',
- headers: {'User-Agent': 'MOBILE_UA'},
+ headers: {
+ 'User-Agent': 'MOBILE_UA'
+ },
timeout: 5000, // class_name: '电影&电视剧&综艺&动漫',
// class_url: '1&2&3&4',
// class_parse:'js:let html=request(input);input=JSON.parse(html).class;',
class_parse: 'json:class;',
limit: 20,
multi: 1,
- searchable: 2,//是否启用全局搜索,
- quickSearch: 1,//是否启用快速搜索,
- filterable: 0,//是否启用分类筛选,
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 1, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
play_parse: true,
parse_url: '',
lazy: cj_lazy,
@@ -409,4 +423,7 @@ function getMubans() {
var mubanDict = getMubans();
var muban = getMubans();
-export default {muban, getMubans};
\ No newline at end of file
+export default {
+ muban,
+ getMubans
+};
\ No newline at end of file
diff --git a/JS/樱花动漫.js b/JS/樱花动漫.js
new file mode 100644
index 0000000..b90099a
--- /dev/null
+++ b/JS/樱花动漫.js
@@ -0,0 +1,8 @@
+var rule = {
+ 模板: '首图',
+ title: '樱花动漫[漫]',
+ host: 'https://katedm.com/',
+ url: '/list/fyclass-fypage.html',
+ searchUrl: '/search/**----------fypage---.html',
+ 搜索: '#searchList li;a&&title;.lazyload&&data-original;.pic-tag&&Text;a&&href',
+}
\ No newline at end of file
diff --git a/JS/爱奇艺弹幕.js b/JS/爱奇艺弹幕.js
new file mode 100644
index 0000000..3f3c5ab
--- /dev/null
+++ b/JS/爱奇艺弹幕.js
@@ -0,0 +1,1392 @@
+var rule = {
+ title: '奇珍异兽[官]',
+ host: 'https://www.iqiyi.com',
+ homeUrl: '',
+ // detailUrl:'https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid=fyid&size=2000&page=1',
+ detailUrl: 'https://pcw-api.iqiyi.com/video/video/videoinfowithuser/fyid?agent_type=1&authcookie=&subkey=fyid&subscribe=1',
+ searchUrl: 'https://search.video.iqiyi.com/o?if=html5&key=**&pageNum=fypage&pos=1&pageSize=24&site=iqiyi',
+ searchable: 2,
+ multi: 1,
+ filterable: 1,
+ filter: {
+ '1': [{
+ 'key': 'mode',
+ 'name': '综合排序',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '热播榜',
+ 'v': 11
+ }, {
+ 'n': '好评榜',
+ 'v': 8
+ }, {
+ 'n': '新上线',
+ 'v': 4
+ }]
+ }, {
+ 'key': 'year',
+ 'name': '全部年份',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ "n": "2025",
+ "v": 2025
+ }, {
+ "n": "2024",
+ "v": 2024
+ }, {
+ 'n': '2023',
+ 'v': 2023
+ }, {
+ 'n': '2022',
+ 'v': 2022
+ }, {
+ 'n': '2021',
+ 'v': 2021
+ }, {
+ 'n': '2020',
+ 'v': 2020
+ }, {
+ 'n': '2019',
+ 'v': 2019
+ }, {
+ 'n': '2018',
+ 'v': 2018
+ }, {
+ 'n': '2017',
+ 'v': 2017
+ }, {
+ 'n': '2016-2011',
+ 'v': '2011_2016'
+ }, {
+ 'n': '2010-2000',
+ 'v': '2000_2010'
+ }, {
+ 'n': '90年代',
+ 'v': '1990_1999'
+ }, {
+ 'n': '80年代',
+ 'v': '1980_1989'
+ }, {
+ 'n': '更早',
+ 'v': '1964_1979'
+ }]
+ }, {
+ 'key': 'is_purchase',
+ 'name': '全部资费',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '免费',
+ 'v': 0
+ }, {
+ 'n': '会员',
+ 'v': 1
+ }, {
+ 'n': '付费',
+ 'v': 2
+ }]
+ }, {
+ 'key': 'three_category_id',
+ 'name': '地区',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '华语',
+ 'v': 1
+ }, {
+ 'n': '香港地区',
+ 'v': 28997
+ }, {
+ 'n': '美国',
+ 'v': 2
+ }, {
+ 'n': '欧洲',
+ 'v': 3
+ }, {
+ 'n': '韩国',
+ 'v': 4
+ }, {
+ 'n': '日本',
+ 'v': 308
+ }, {
+ 'n': '泰国',
+ 'v': 1115
+ }, {
+ 'n': '印度',
+ 'v': 28999
+ }, {
+ 'n': '其它',
+ 'v': 5
+ }]
+ }, {
+ 'key': '18001',
+ 'name': '类型',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '喜剧',
+ 'v': 8
+ }, {
+ 'n': '爱情',
+ 'v': 6
+ }, {
+ 'n': '动作',
+ 'v': 11
+ }, {
+ 'n': '枪战',
+ 'v': 131
+ }, {
+ 'n': '犯罪',
+ 'v': 291
+ }, {
+ 'n': '惊悚',
+ 'v': 128
+ }, {
+ 'n': '恐怖',
+ 'v': 10
+ }, {
+ 'n': '悬疑',
+ 'v': 289
+ }, {
+ 'n': '动画',
+ 'v': 12
+ }, {
+ 'n': '家庭',
+ 'v': 27356
+ }, {
+ 'n': '奇幻',
+ 'v': 1284
+ }, {
+ 'n': '魔幻',
+ 'v': 129
+ }, {
+ 'n': '科幻',
+ 'v': 9
+ }, {
+ 'n': '战争',
+ 'v': 7
+ }, {
+ 'n': '青春',
+ 'v': 130
+ }]
+ }, {
+ 'key': '27396',
+ 'name': '规格',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '巨制',
+ 'v': 27397
+ }, {
+ 'n': '院线',
+ 'v': 27815
+ }, {
+ 'n': '独播',
+ 'v': 30149
+ }, {
+ 'n': '网络电影',
+ 'v': 27401
+ }]
+ }],
+ '2': [{
+ 'key': 'mode',
+ 'name': '综合排序',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '热播榜',
+ 'v': 11
+ }, {
+ 'n': '好评榜',
+ 'v': 8
+ }, {
+ 'n': '新上线',
+ 'v': 4
+ }]
+ }, {
+ 'key': 'year',
+ 'name': '全部年份',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '2023',
+ 'v': 2023
+ }, {
+ 'n': '2022',
+ 'v': 2022
+ }, {
+ 'n': '2021',
+ 'v': 2021
+ }, {
+ 'n': '2020',
+ 'v': 2020
+ }, {
+ 'n': '2019',
+ 'v': 2019
+ }, {
+ 'n': '2018',
+ 'v': 2018
+ }, {
+ 'n': '2017',
+ 'v': 2017
+ }, {
+ 'n': '2016-2011',
+ 'v': '2011_2016'
+ }, {
+ 'n': '2010-2000',
+ 'v': '2000_2010'
+ }, {
+ 'n': '90年代',
+ 'v': '1990_1999'
+ }, {
+ 'n': '80年代',
+ 'v': '1980_1989'
+ }, {
+ 'n': '更早',
+ 'v': '1964_1979'
+ }]
+ }, {
+ 'key': 'is_purchase',
+ 'name': '全部资费',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '免费',
+ 'v': 0
+ }, {
+ 'n': '会员',
+ 'v': 1
+ }, {
+ 'n': '付费',
+ 'v': 2
+ }]
+ }, {
+ 'key': 'three_category_id',
+ 'name': '地区',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '内地',
+ 'v': 15
+ }, {
+ 'n': '港剧',
+ 'v': 16
+ }, {
+ 'n': '韩剧',
+ 'v': 17
+ }, {
+ 'n': '美剧',
+ 'v': 18
+ }, {
+ 'n': '日剧',
+ 'v': 309
+ }, {
+ 'n': '泰剧',
+ 'v': 1114
+ }, {
+ 'n': '台湾地区',
+ 'v': 1117
+ }, {
+ 'n': '英剧',
+ 'v': 28916
+ }, {
+ 'n': '其它',
+ 'v': 19
+ }]
+ }, {
+ 'key': '18003',
+ 'name': '类型',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '自制',
+ 'v': 11992
+ }, {
+ 'n': '古装',
+ 'v': 24
+ }, {
+ 'n': '言情',
+ 'v': 20
+ }, {
+ 'n': '武侠',
+ 'v': 23
+ }, {
+ 'n': '偶像',
+ 'v': 30
+ }, {
+ 'n': '家庭',
+ 'v': 1654
+ }, {
+ 'n': '青春',
+ 'v': 1653
+ }, {
+ 'n': '都市',
+ 'v': 24064
+ }, {
+ 'n': '喜剧',
+ 'v': 135
+ }, {
+ 'n': '战争',
+ 'v': 27916
+ }, {
+ 'n': '军旅',
+ 'v': 1655
+ }, {
+ 'n': '谍战',
+ 'v': 290
+ }, {
+ 'n': '悬疑',
+ 'v': 32
+ }, {
+ 'n': '罪案',
+ 'v': 149
+ }, {
+ 'n': '穿越',
+ 'v': 148
+ }, {
+ 'n': '宫廷',
+ 'v': 139
+ }, {
+ 'n': '历史',
+ 'v': 21
+ }, {
+ 'n': '神话',
+ 'v': 145
+ }, {
+ 'n': '科幻',
+ 'v': 34
+ }, {
+ 'n': '年代',
+ 'v': 27
+ }, {
+ 'n': '农村',
+ 'v': 29
+ }, {
+ 'n': '商战',
+ 'v': 140
+ }, {
+ 'n': '剧情',
+ 'v': 24063
+ }, {
+ 'n': '奇幻',
+ 'v': 27881
+ }, {
+ 'n': '网剧',
+ 'v': 24065
+ }, {
+ 'n': '竖短片',
+ 'v': 32839
+ }]
+ }],
+ '3': [{
+ 'key': 'mode',
+ 'name': '综合排序',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '热播榜',
+ 'v': 11
+ }, {
+ 'n': '好评榜',
+ 'v': 8
+ }, {
+ 'n': '新上线',
+ 'v': 4
+ }]
+ }, {
+ 'key': 'year',
+ 'name': '全部年份',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '2023',
+ 'v': 2023
+ }, {
+ 'n': '2022',
+ 'v': 2022
+ }, {
+ 'n': '2021',
+ 'v': 2021
+ }, {
+ 'n': '2020',
+ 'v': 2020
+ }, {
+ 'n': '2019',
+ 'v': 2019
+ }, {
+ 'n': '2018',
+ 'v': 2018
+ }, {
+ 'n': '2017',
+ 'v': 2017
+ }, {
+ 'n': '2016-2011',
+ 'v': '2011_2016'
+ }, {
+ 'n': '2010-2000',
+ 'v': '2000_2010'
+ }, {
+ 'n': '90年代',
+ 'v': '1990_1999'
+ }, {
+ 'n': '80年代',
+ 'v': '1980_1989'
+ }, {
+ 'n': '更早',
+ 'v': '1964_1979'
+ }]
+ }, {
+ 'key': 'is_purchase',
+ 'name': '全部资费',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '免费',
+ 'v': 0
+ }, {
+ 'n': '会员',
+ 'v': 1
+ }, {
+ 'n': '付费',
+ 'v': 2
+ }]
+ }, {
+ 'key': 'three_category_id',
+ 'name': '地区',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '国内',
+ 'v': 20323
+ }, {
+ 'n': '国外',
+ 'v': 20324
+ }]
+ }, {
+ 'key': '18004',
+ 'name': '类型',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '人文',
+ 'v': 70
+ }, {
+ 'n': '美食',
+ 'v': 33908
+ }, {
+ 'n': '医疗',
+ 'v': 33924
+ }, {
+ 'n': '自然',
+ 'v': 33933
+ }, {
+ 'n': '萌宠',
+ 'v': 33945
+ }, {
+ 'n': '财经',
+ 'v': 33953
+ }, {
+ 'n': '罪案',
+ 'v': 33960
+ }, {
+ 'n': '竞技',
+ 'v': 33967
+ }, {
+ 'n': '灾难',
+ 'v': 33974
+ }, {
+ 'n': '军事',
+ 'v': 72
+ }, {
+ 'n': '历史',
+ 'v': 74
+ }, {
+ 'n': '探险',
+ 'v': 73
+ }, {
+ 'n': '社会',
+ 'v': 71
+ }, {
+ 'n': '科技',
+ 'v': 28119
+ }, {
+ 'n': '旅游',
+ 'v': 310
+ }]
+ }, {
+ 'key': '28467',
+ 'name': '出品方',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': 'BBC',
+ 'v': 28468
+ }, {
+ 'n': '美国历史频道',
+ 'v': 28470
+ }, {
+ 'n': '探索频道',
+ 'v': 28471
+ }, {
+ 'n': '央视记录',
+ 'v': 28472
+ }, {
+ 'n': '北京纪实频道',
+ 'v': 28473
+ }, {
+ 'n': '上海纪实频道',
+ 'v': 28474
+ }, {
+ 'n': '朗思文化',
+ 'v': 28476
+ }, {
+ 'n': 'CNEX',
+ 'v': 28477
+ }, {
+ 'n': '五星传奇',
+ 'v': 28478
+ }, {
+ 'n': 'IMG',
+ 'v': 28479
+ }, {
+ 'n': 'NHK',
+ 'v': 28480
+ }, {
+ 'n': '爱奇艺出品',
+ 'v': 31283
+ }, {
+ 'n': 'Netflix',
+ 'v': 31286
+ }]
+ }, {
+ 'key': '29076',
+ 'name': '片种',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '纪录电影',
+ 'v': 29077
+ }, {
+ 'n': '系列纪录片',
+ 'v': 29078
+ }, {
+ 'n': '网络纪录片',
+ 'v': 29082
+ }, {
+ 'n': '纪实栏目',
+ 'v': 29083
+ }]
+ }, {
+ 'key': '31294',
+ 'name': '时长',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '微纪录',
+ 'v': 29079
+ }, {
+ 'n': '长纪录',
+ 'v': 29080
+ }, {
+ 'n': '短纪录',
+ 'v': 29081
+ }]
+ }],
+ '4': [{
+ 'key': 'mode',
+ 'name': '综合排序',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '热播榜',
+ 'v': 11
+ }, {
+ 'n': '好评榜',
+ 'v': 8
+ }, {
+ 'n': '新上线',
+ 'v': 4
+ }]
+ }, {
+ 'key': 'year',
+ 'name': '全部年份',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '2023',
+ 'v': 2023
+ }, {
+ 'n': '2022',
+ 'v': 2022
+ }, {
+ 'n': '2021',
+ 'v': 2021
+ }, {
+ 'n': '2020',
+ 'v': 2020
+ }, {
+ 'n': '2019',
+ 'v': 2019
+ }, {
+ 'n': '2018',
+ 'v': 2018
+ }, {
+ 'n': '2017',
+ 'v': 2017
+ }, {
+ 'n': '2016-2011',
+ 'v': '2011_2016'
+ }, {
+ 'n': '2010-2000',
+ 'v': '2000_2010'
+ }, {
+ 'n': '90年代',
+ 'v': '1990_1999'
+ }, {
+ 'n': '80年代',
+ 'v': '1980_1989'
+ }, {
+ 'n': '更早',
+ 'v': '1964_1979'
+ }]
+ }, {
+ 'key': 'is_purchase',
+ 'name': '全部资费',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '免费',
+ 'v': 0
+ }, {
+ 'n': '会员',
+ 'v': 1
+ }, {
+ 'n': '付费',
+ 'v': 2
+ }]
+ }, {
+ 'key': 'three_category_id',
+ 'name': '地区',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '中国大陆',
+ 'v': 37
+ }, {
+ 'n': '日本',
+ 'v': 38
+ }, {
+ 'n': '韩国',
+ 'v': 1106
+ }, {
+ 'n': '欧美',
+ 'v': 30218
+ }, {
+ 'n': '其它',
+ 'v': 40
+ }]
+ }, {
+ 'key': '30219',
+ 'name': '版本',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '动画',
+ 'v': 30220
+ }, {
+ 'n': '特摄',
+ 'v': 30223
+ }, {
+ 'n': '布袋戏',
+ 'v': 30224
+ }, {
+ 'n': '特别篇',
+ 'v': 32782
+ }, {
+ 'n': '动态漫画',
+ 'v': 32783
+ }, {
+ 'n': '动画电影',
+ 'v': 32784
+ }, {
+ 'n': '竖版视频',
+ 'v': 32785
+ }, {
+ 'n': '轻动画',
+ 'v': 33482
+ }, {
+ 'n': '短剧',
+ 'v': 33483
+ }]
+ }, {
+ 'key': '30225',
+ 'name': '风格',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '搞笑',
+ 'v': 30230
+ }, {
+ 'n': '热血',
+ 'v': 30232
+ }, {
+ 'n': '催泪',
+ 'v': 30233
+ }, {
+ 'n': '治愈',
+ 'v': 30234
+ }, {
+ 'n': '励志',
+ 'v': 30237
+ }, {
+ 'n': '机战',
+ 'v': 30241
+ }, {
+ 'n': '恋爱',
+ 'v': 30243
+ }, {
+ 'n': '科幻',
+ 'v': 30245
+ }, {
+ 'n': '奇幻',
+ 'v': 30247
+ }, {
+ 'n': '推理',
+ 'v': 30248
+ }, {
+ 'n': '校园',
+ 'v': 30249
+ }, {
+ 'n': '日常',
+ 'v': 30252
+ }, {
+ 'n': '历史',
+ 'v': 30254
+ }, {
+ 'n': '美食',
+ 'v': 30255
+ }, {
+ 'n': '职场',
+ 'v': 30256
+ }, {
+ 'n': '偶像',
+ 'v': 30258
+ }, {
+ 'n': '泡面',
+ 'v': 30265
+ }, {
+ 'n': '冒险',
+ 'v': 30267
+ }, {
+ 'n': '竞技',
+ 'v': 30268
+ }, {
+ 'n': '合家欢',
+ 'v': 30270
+ }, {
+ 'n': '武侠',
+ 'v': 32792
+ }, {
+ 'n': '玄幻',
+ 'v': 32793
+ }]
+ }, {
+ 'key': '32795',
+ 'name': '新类型',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '轻小说改编',
+ 'v': 32796
+ }, {
+ 'n': '漫画改编',
+ 'v': 32797
+ }, {
+ 'n': '游戏改编',
+ 'v': 32798
+ }, {
+ 'n': '原创',
+ 'v': 32799
+ }]
+ }],
+ '6': [{
+ 'key': 'mode',
+ 'name': '综合排序',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '热播榜',
+ 'v': 11
+ }, {
+ 'n': '好评榜',
+ 'v': 8
+ }, {
+ 'n': '新上线',
+ 'v': 4
+ }]
+ }, {
+ 'key': 'year',
+ 'name': '全部年份',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '2023',
+ 'v': 2023
+ }, {
+ 'n': '2022',
+ 'v': 2022
+ }, {
+ 'n': '2021',
+ 'v': 2021
+ }, {
+ 'n': '2020',
+ 'v': 2020
+ }, {
+ 'n': '2019',
+ 'v': 2019
+ }, {
+ 'n': '2018',
+ 'v': 2018
+ }, {
+ 'n': '2017',
+ 'v': 2017
+ }, {
+ 'n': '2016-2011',
+ 'v': '2011_2016'
+ }, {
+ 'n': '2010-2000',
+ 'v': '2000_2010'
+ }, {
+ 'n': '90年代',
+ 'v': '1990_1999'
+ }, {
+ 'n': '80年代',
+ 'v': '1980_1989'
+ }, {
+ 'n': '更早',
+ 'v': '1964_1979'
+ }]
+ }, {
+ 'key': 'is_purchase',
+ 'name': '全部资费',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '免费',
+ 'v': 0
+ }, {
+ 'n': '会员',
+ 'v': 1
+ }, {
+ 'n': '付费',
+ 'v': 2
+ }]
+ }, {
+ 'key': 'three_category_id',
+ 'name': '地区',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '内地',
+ 'v': 151
+ }, {
+ 'n': '港台',
+ 'v': 152
+ }, {
+ 'n': '韩国',
+ 'v': 33306
+ }, {
+ 'n': '欧美',
+ 'v': 154
+ }, {
+ 'n': '其它',
+ 'v': 1113
+ }]
+ }, {
+ 'key': '18014',
+ 'name': '类型',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '播报',
+ 'v': 155
+ }, {
+ 'n': '访谈',
+ 'v': 156
+ }, {
+ 'n': '游戏',
+ 'v': 158
+ }, {
+ 'n': '晚会',
+ 'v': 292
+ }, {
+ 'n': '曲艺',
+ 'v': 293
+ }, {
+ 'n': '脱口秀',
+ 'v': 2118
+ }, {
+ 'n': '真人秀',
+ 'v': 2224
+ }, {
+ 'n': '竞技',
+ 'v': 30278
+ }, {
+ 'n': '爱奇艺出品',
+ 'v': 30279
+ }, {
+ 'n': '竞演',
+ 'v': 33860
+ }]
+ }, {
+ 'key': '33162',
+ 'name': '题材',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '音乐',
+ 'v': 33163
+ }, {
+ 'n': '舞蹈',
+ 'v': 33172
+ }, {
+ 'n': '文化',
+ 'v': 33173
+ }, {
+ 'n': '美食',
+ 'v': 33182
+ }, {
+ 'n': '伦理',
+ 'v': 33184
+ }, {
+ 'n': '相亲',
+ 'v': 33193
+ }, {
+ 'n': '纪实',
+ 'v': 33195
+ }, {
+ 'n': '生活',
+ 'v': 33196
+ }, {
+ 'n': '亲子',
+ 'v': 33197
+ }, {
+ 'n': '少儿',
+ 'v': 33198
+ }, {
+ 'n': '财经',
+ 'v': 33199
+ }, {
+ 'n': '健康',
+ 'v': 33200
+ }, {
+ 'n': '时尚',
+ 'v': 33203
+ }, {
+ 'n': '旅游',
+ 'v': 33205
+ }, {
+ 'n': '教育',
+ 'v': 33206
+ }, {
+ 'n': '其它',
+ 'v': 33220
+ }, {
+ 'n': '爱情',
+ 'v': 33316
+ }, {
+ 'n': '搞笑',
+ 'v': 33317
+ }, {
+ 'n': '益智',
+ 'v': 33318
+ }, {
+ 'n': '职场',
+ 'v': 33319
+ }, {
+ 'n': '语言',
+ 'v': 33530
+ }, {
+ 'n': '辩论',
+ 'v': 33531
+ }, {
+ 'n': '演讲',
+ 'v': 33843
+ }]
+ }],
+ '5': [{
+ 'key': 'mode',
+ 'name': '综合排序',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '热播榜',
+ 'v': 11
+ }, {
+ 'n': '好评榜',
+ 'v': 8
+ }, {
+ 'n': '新上线',
+ 'v': 4
+ }]
+ }, {
+ 'key': 'year',
+ 'name': '全部年份',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '2023',
+ 'v': 2023
+ }, {
+ 'n': '2022',
+ 'v': 2022
+ }, {
+ 'n': '2021',
+ 'v': 2021
+ }, {
+ 'n': '2020',
+ 'v': 2020
+ }, {
+ 'n': '2019',
+ 'v': 2019
+ }, {
+ 'n': '2018',
+ 'v': 2018
+ }, {
+ 'n': '2017',
+ 'v': 2017
+ }, {
+ 'n': '2016-2011',
+ 'v': '2011_2016'
+ }, {
+ 'n': '2010-2000',
+ 'v': '2000_2010'
+ }, {
+ 'n': '90年代',
+ 'v': '1990_1999'
+ }, {
+ 'n': '80年代',
+ 'v': '1980_1989'
+ }, {
+ 'n': '更早',
+ 'v': '1964_1979'
+ }]
+ }, {
+ 'key': 'is_purchase',
+ 'name': '全部资费',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '免费',
+ 'v': 0
+ }, {
+ 'n': '会员',
+ 'v': 1
+ }, {
+ 'n': '付费',
+ 'v': 2
+ }]
+ }, {
+ 'key': 'three_category_id',
+ 'name': '地区',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '内地',
+ 'v': 221
+ }, {
+ 'n': '港台',
+ 'v': 220
+ }, {
+ 'n': '欧美',
+ 'v': 219
+ }, {
+ 'n': '日韩',
+ 'v': 218
+ }, {
+ 'n': '拉美',
+ 'v': 217
+ }, {
+ 'n': '亚洲地区',
+ 'v': 216
+ }, {
+ 'n': '非洲',
+ 'v': 215
+ }]
+ }, {
+ 'key': '18009',
+ 'name': '语种',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '普通话',
+ 'v': 91
+ }, {
+ 'n': '粤语',
+ 'v': 92
+ }, {
+ 'n': '闽南语',
+ 'v': 93
+ }, {
+ 'n': '英语',
+ 'v': 94
+ }, {
+ 'n': '日语',
+ 'v': 95
+ }, {
+ 'n': '韩语',
+ 'v': 96
+ }, {
+ 'n': '其它',
+ 'v': 97
+ }]
+ }, {
+ 'key': '23554',
+ 'name': '音乐类型',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '单曲MV',
+ 'v': 23556
+ }, {
+ 'n': '单曲现场',
+ 'v': 23557
+ }, {
+ 'n': '演唱会',
+ 'v': 23558
+ }, {
+ 'n': '新闻',
+ 'v': 23559
+ }, {
+ 'n': '访谈',
+ 'v': 23560
+ }, {
+ 'n': '音乐记录',
+ 'v': 23561
+ }, {
+ 'n': '音乐周边',
+ 'v': 23562
+ }, {
+ 'n': '音乐节目',
+ 'v': 23563
+ }, {
+ 'n': '影视原声',
+ 'v': 23564
+ }, {
+ 'n': '音乐短片',
+ 'v': 23565
+ }, {
+ 'n': '其他',
+ 'v': 23566
+ }]
+ }],
+ '16': [{
+ 'key': 'mode',
+ 'name': '综合排序',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '热播榜',
+ 'v': 11
+ }, {
+ 'n': '好评榜',
+ 'v': 8
+ }, {
+ 'n': '新上线',
+ 'v': 4
+ }]
+ }, {
+ 'key': 'year',
+ 'name': '全部年份',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '2023',
+ 'v': 2023
+ }, {
+ 'n': '2022',
+ 'v': 2022
+ }, {
+ 'n': '2021',
+ 'v': 2021
+ }, {
+ 'n': '2020',
+ 'v': 2020
+ }, {
+ 'n': '2019',
+ 'v': 2019
+ }, {
+ 'n': '2018',
+ 'v': 2018
+ }, {
+ 'n': '2017',
+ 'v': 2017
+ }, {
+ 'n': '2016-2011',
+ 'v': '2011_2016'
+ }, {
+ 'n': '2010-2000',
+ 'v': '2000_2010'
+ }, {
+ 'n': '90年代',
+ 'v': '1990_1999'
+ }, {
+ 'n': '80年代',
+ 'v': '1980_1989'
+ }, {
+ 'n': '更早',
+ 'v': '1964_1979'
+ }]
+ }, {
+ 'key': 'is_purchase',
+ 'name': '全部资费',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '免费',
+ 'v': 0
+ }, {
+ 'n': '会员',
+ 'v': 1
+ }, {
+ 'n': '付费',
+ 'v': 2
+ }]
+ }, {
+ 'key': '18061',
+ 'name': '类型',
+ 'value': [{
+ 'n': '全部',
+ 'v': ''
+ }, {
+ 'n': '喜剧',
+ 'v': 1296
+ }, {
+ 'n': '爱情',
+ 'v': 1297
+ }, {
+ 'n': '动作',
+ 'v': 1298
+ }, {
+ 'n': '奇幻',
+ 'v': 1299
+ }, {
+ 'n': '惊悚',
+ 'v': 1300
+ }, {
+ 'n': '悬疑',
+ 'v': 1301
+ }, {
+ 'n': '青春',
+ 'v': 1302
+ }]
+ }]
+ },
+ // url:'https://pcw-api.iqiyi.com/search/recommend/list?channel_id=fyclass&data_type=1&is_purchase=&mode=24&page_id=fypage&ret_num=48&three_category_id=',
+ url: 'https://pcw-api.iqiyi.com/search/recommend/list?channel_id=fyclass&data_type=1&page_id=fypage&ret_num=48',
+ filter_url: 'is_purchase={{fl.is_purchase}}&mode={{fl.mode}}&three_category_id={{fl.three_category_id}}&market_release_date_level={{fl.year}}',
+ // url:'https://pcw-api.iqiyi.com/search/video/videolists?channel_id=fyclass&pageNum=fypage&pageSize=24&data_type=1&site=iqiyi',
+ headers: {
+ 'User-Agent': 'MOBILE_UA'
+ },
+ timeout: 5000,
+ class_name: '电影&电视剧&纪录片&动漫&综艺&音乐&网络电影',
+ class_url: '1&2&3&4&6&5&16',
+ limit: 20,
+ play_parse: true,
+ lazy: $js.toString(() => {
+ try {
+ let api = "" + input.split("?")[0];
+ console.log(api);
+ let response = fetch(api, {
+ method: 'get',
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ }
+ });
+ let bata = JSON.parse(response);
+ if (bata.url.includes("qiyi")) {
+ input = {
+ parse: 0,
+ url: bata.url,
+ jx: 0,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ } else {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ } catch {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ }),
+ // play_parse:true,
+ // 手动调用解析请求json的url,此lazy不方便
+ // lazy:'js:input="https://cache.json.icu/home/api?type=ys&uid=292796&key=fnoryABDEFJNPQV269&url="+input.split("?")[0];log(input);let html=JSON.parse(request(input));log(html);input=html.url||input',
+ // 推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
+ // 一级:'json:.data.list;.name;.imageUrl;.latestOrder;.albumId',
+ 推荐: '',
+ // 推荐:'js:let d=[];fetch_params.headers["user-agent"]=PC_UA;pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;let html=fetch(HOST,fetch_params);let lists=pdfa(html,".qy-mod-li");lists.forEach(function(it){try{let title=pdfh(it,"p.sub&&title");let desc=pdfh(it,".qy-mod-label&&Text");let pic_url=pd(it,"img&&src");d.push({title:title,desc:desc,img:pic_url})}catch(e){}});res=setResult(d);',
+ 一级: 'js:let d=[];if(MY_CATE==="16"){input=input.replace("channel_id=16","channel_id=1").split("three_category_id")[0];input+="three_category_id=27401"}else if(MY_CATE==="5"){input=input.replace("data_type=1","data_type=2")}let html=request(input);let json=JSON.parse(html);if(json.code==="A00003"){fetch_params.headers["user-agent"]=PC_UA;json=JSON.parse(fetch(input,fetch_params))}json.data.list.forEach(function(data){if(data.channelId===1){desc=data.hasOwnProperty("score")?data.score+"分\\t":""}else if(data.channelId===2||data.channelId===4){if(data.latestOrder===data.videoCount){desc=(data.hasOwnProperty("score")?data.score+"分\\t":"")+data.latestOrder+"集全"}else{if(data.videoCount){desc=(data.hasOwnProperty("score")?data.score+"分\\t":"")+data.latestOrder+"/"+data.videoCount+"集"}else{desc="更新至 "+data.latestOrder+"集"}}}else if(data.channelId===6){desc=data.period+"期"}else if(data.channelId===5){desc=data.focus}else{if(data.latestOrder){desc="更新至 第"+data.latestOrder+"期"}else if(data.period){desc=data.period}else{desc=data.focus}}url=MY_CATE+"$"+data.albumId;d.push({url:url,title:data.name,desc:desc,pic_url:data.imageUrl.replace(".jpg","_390_520.jpg?caplist=jpg,webp")})});setResult(d);',
+ // 一级:'js:let d=[];if(MY_CATE==="16"){input=input.replace("channel_id=16","channel_id=1").split("three_category_id")[0];input+="three_category_id=27401"}else if(MY_CATE==="5"){input=input.replace("data_type=1","data_type=2")}let html=fetch(input,fetch_params);let json=JSON.parse(html);if(json.code==="A00003"){fetch_params.headers["user-agent"]=PC_UA;json=JSON.parse(fetch(input,fetch_params))}json.data.list.forEach(function(data){if(data.channelId===1){desc=data.hasOwnProperty("score")?data.score+"分\\t":""}else if(data.channelId===2||data.channelId===4){if(data.latestOrder===data.videoCount){desc=(data.hasOwnProperty("score")?data.score+"分\\t":"")+data.latestOrder+"集全"}else{if(data.videoCount){desc=(data.hasOwnProperty("score")?data.score+"分\\t":"")+data.latestOrder+"/"+data.videoCount+"集"}else{desc="更新至 "+data.latestOrder+"集"}}}else if(data.channelId===6){desc=data.period+"期"}else if(data.channelId===5){desc=data.focus}else{if(data.latestOrder){desc="更新至 第"+data.latestOrder+"期"}else if(data.period){desc=data.period}else{desc=data.focus}}url=MY_CATE+"$"+data.albumId;d.push({url:url,title:data.name,desc:desc,pic_url:data.imageUrl.replace(".jpg","_390_520.jpg?caplist=jpg,webp")})});setResult(d);',
+ // 一级:'json:.data.list;.name;.imageUrl;.playUrl;.latestOrder',
+ // 二级:{is_json:1,"title":"data.title;data.moviecategory[0]+data.moviecategory[1]","img":"data.cdncover","desc":"data.area[0];data.director[0]","content":"data.description","tabs":"data.playlink_sites;data.playlinksdetail.#idv.quality","lists":"data.playlinksdetail.#idv.default_url"},
+ // 二级:{is_json:1,"title":"data.name+data.subtitle;data.latestOrder","img":"data.imageUrl","desc":"data.categories;data.areas","content":"data.description","tabs":"data.name","lists":"data.playlinksdetail.#idv.default_url"},
+ 二级: '',
+ 二级: 'js:let d=[];let html=request(input);let json=JSON.parse(html).data;VOD={vod_id:"",vod_url:input,vod_name:"",type_name:"",vod_actor:"",vod_year:"",vod_director:"",vod_area:"",vod_content:"",vod_remarks:"",vod_pic:""};VOD.vod_name=json.name;try{if(json.latestOrder){VOD.vod_remarks="类型: "+(json.categories[0].name||"")+"\\t"+(json.categories[1].name||"")+"\\t"+(json.categories[2].name||"")+"\\t"+"评分:"+(json.score||"")+"\\n更新至:第"+json.latestOrder+"集(期)/共"+json.videoCount+"集(期)"}else{VOD.vod_remarks="类型: "+(json.categories[0].name||"")+"\\t"+(json.categories[1].name||"")+"\\t"+(json.categories[2].name||"")+"\\t"+"评分:"+(json.score||"")+json.period}}catch(e){VOD.vod_remarks=json.subtitle}VOD.vod_area=(json.focus||"")+"\\n资费:"+(json.payMark===1?"VIP":"免费")+"\\n地区:"+(json.areas||"");let vsize="579_772";try{vsize=json.imageSize[12]}catch(e){}VOD.vod_pic=json.imageUrl.replace(".jpg","_"+vsize+".jpg?caplist=jpg,webp");VOD.type_name=json.categories.map(function(it){return it.name}).join(",");if(json.people.main_charactor){let vod_actors=[];json.people.main_charactor.forEach(function(it){vod_actors.push(it.name)});VOD.vod_actor=vod_actors.join(",")}VOD.vod_content=json.description;let playlists=[];if(json.channelId===1||json.channelId===5){playlists=[{playUrl:json.playUrl,imageUrl:json.imageUrl,shortTitle:json.shortTitle,focus:json.focus,period:json.period}]}else{if(json.channelId===6){let qs=json.period.split("-")[0];let listUrl="https://pcw-api.iqiyi.com/album/source/svlistinfo?cid=6&sourceid="+json.albumId+"&timelist="+qs;let playData=JSON.parse(request(listUrl)).data[qs];playData.forEach(function(it){playlists.push({playUrl:it.playUrl,imageUrl:it.imageUrl,shortTitle:it.shortTitle,focus:it.focus,period:it.period})})}else{let listUrl="https://pcw-api.iqiyi.com/albums/album/avlistinfo?aid="+json.albumId+"&size=200&page=1";let data=JSON.parse(request(listUrl)).data;let total=data.total;playlists=data.epsodelist;if(total>200){for(let i=2;i200){for(let i=2;i {
+ // let d = [];
+ // let data = JSON.parse(request(input))
+ // data.forEach(item => {
+ // item.datas.forEach(it => {
+ // let id = `http://114.132.55.23/bl/mb/api.php/provide/vod/?ac=videolist&wd=${it.title}&`;
+ // d.push({
+ // url: id,
+ // title: it.title,
+ // img: it.pic,
+ // desc: it.acr,
+ // })
+ // });
+ // });
+ // setResult(d)
+ // }),
+ 一级: $js.toString(() => {
+ let d = [];
+
+ function Encrypt(plainText) {
+ let key = CryptoJS.enc.Utf8.parse("mvXBSW7ekreItNsT");
+ let iv = CryptoJS.enc.Utf8.parse("2U3IrJL8szAKp0Fj");
+ // 将文本加密为 AES/CBC/PKCS5Padding 格式
+ let encrypted = CryptoJS.AES.encrypt(plainText, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ });
+
+ // 获取加密结果并转为 Hex 格式
+ let encryptedHex = encrypted.ciphertext.toString(CryptoJS.enc.Hex);
+ return encryptedHex.toUpperCase(); // 返回大写 Hex 格式
+ }
+
+ function Decrypt(word, key, iv) {
+ let encryptedHexStr = CryptoJS.enc.Hex.parse(word);
+
+ // 使用AES/CBC/PKCS5Padding模式进行解密
+ let decrypt = CryptoJS.AES.decrypt({
+ ciphertext: encryptedHexStr
+ }, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC, // 使用CBC模式
+ padding: CryptoJS.pad.Pkcs7 // 使用PKCS#7填充
+ });
+
+ // 将解密后的数据转换为原始文本
+ let decryptedStr = decrypt.toString(CryptoJS.enc.Utf8);
+
+ // 返回解密后的文本
+ return decryptedStr;
+ }
+
+ function getbody3(key, t) {
+ var signature = 'token_id=,token=1be86e8e18a9fa18b2b8d5432699dad0.ac008ed650fd087bfbecf2fda9d82e9835253ef24843e6b18fcd128b10763497bcf9d53e959f5377cde038c20ccf9d17f604c9b8bb6e61041def86729b2fc7408bd241e23c213ac57f0226ee656e2bb0a583ae0e4f3bf6c6ab6c490c9a6f0d8cdfd366aacf5d83193671a8f77cd1af1ff2e9145de92ec43ec87cf4bdc563f6e919fe32861b0e93b118ec37d8035fbb3c.59dd05c5d9a8ae726528783128218f15fe6f2c0c8145eddab112b374fcfe3d79,phone_type=1,request_key=' + key + ',app_id=1,time=' + t + ',keys=qDpotE2bedimK3QGqlyV5ieXXC3EhaPLQ+IOJyHnHflCj5w/7ESK7FgywMvrgjxbx0GklEFLI4+JshgySe633OIRstuktwdiCy3CT+fLSpuxBJDIlfXQDaeH3ig1wiB0JsZ601XHiFweGMu4tZfnSpHg3OnoL6nz/uurUif2OK4=*&zvdvdvddbfikkkumtmdwqppp?|4Y!s!2br'; //log(signature)
+ var signature2 = md5(signature).toUpperCase(); //log(signature2)
+ var body = 'token=1be86e8e18a9fa18b2b8d5432699dad0.ac008ed650fd087bfbecf2fda9d82e9835253ef24843e6b18fcd128b10763497bcf9d53e959f5377cde038c20ccf9d17f604c9b8bb6e61041def86729b2fc7408bd241e23c213ac57f0226ee656e2bb0a583ae0e4f3bf6c6ab6c490c9a6f0d8cdfd366aacf5d83193671a8f77cd1af1ff2e9145de92ec43ec87cf4bdc563f6e919fe32861b0e93b118ec37d8035fbb3c.59dd05c5d9a8ae726528783128218f15fe6f2c0c8145eddab112b374fcfe3d79&token_id=&phone_type=1&time=' + t + '&phone_model=xiaomi-22021211rc&keys=qDpotE2bedimK3QGqlyV5ieXXC3EhaPLQ%2BIOJyHnHflCj5w%2F7ESK7FgywMvrgjxbx0GklEFLI4%2BJshgySe633OIRstuktwdiCy3CT%2BfLSpuxBJDIlfXQDaeH3ig1wiB0JsZ601XHiFweGMu4tZfnSpHg3OnoL6nz%2FuurUif2OK4%3D&request_key=' + key + '&signature=' + signature2 + '&app_id=1&ad_version=1';
+ return body
+ }
+ const bodykey = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGAe6hKrWLi1zQmjTT1ozbE4QdFeJGNxubxld6GrFGximxfMsMB6BpJhpcTouAqywAFppiKetUBBbXwYsYU1wNr648XVmPmCMCy4rY8vdliFnbMUj086DU6Z+/oXBdWU3/b1G0DN3E9wULRSwcKZT3wj/cCI1vsCm3gj2R5SqkA9Y0CAwEAAQKBgAJH+4CxV0/zBVcLiBCHvSANm0l7HetybTh/j2p0Y1sTXro4ALwAaCTUeqdBjWiLSo9lNwDHFyq8zX90+gNxa7c5EqcWV9FmlVXr8VhfBzcZo1nXeNdXFT7tQ2yah/odtdcx+vRMSGJd1t/5k5bDd9wAvYdIDblMAg+wiKKZ5KcdAkEA1cCakEN4NexkF5tHPRrR6XOY/XHfkqXxEhMqmNbB9U34saTJnLWIHC8IXys6Qmzz30TtzCjuOqKRRy+FMM4TdwJBAJQZFPjsGC+RqcG5UvVMiMPhnwe/bXEehShK86yJK/g/UiKrO87h3aEu5gcJqBygTq3BBBoH2md3pr/W+hUMWBsCQQChfhTIrdDinKi6lRxrdBnn0Ohjg2cwuqK5zzU9p/N+S9x7Ck8wUI53DKm8jUJE8WAG7WLj/oCOWEh+ic6NIwTdAkEAj0X8nhx6AXsgCYRql1klbqtVmL8+95KZK7PnLWG/IfjQUy3pPGoSaZ7fdquG8bq8oyf5+dzjE/oTXcByS+6XRQJAP/5ciy1bL3NhUhsaOVy55MHXnPjdcTX0FaLi+ybXZIfIQ2P4rb19mVq1feMbCXhz+L1rG8oat5lYKfpe8k83ZA==";
+
+ function gethtml(u, body, headers) {
+ var hd = fetch(u, {
+ headers: headers,
+ body: body,
+ method: 'POST',
+ rejectCoding: true
+ });
+ var banner = JSON.parse(hd).data;
+ var response_key = banner.response_key; //log()
+ var keys = banner.keys; //log(keys)
+ var bodykeyiv = JSON.parse(RSA.decode(keys, bodykey));
+ var key = CryptoJS.enc.Utf8.parse(bodykeyiv.key);
+ var iv = CryptoJS.enc.Utf8.parse(bodykeyiv.iv);
+ var html = Decrypt(response_key, key, iv);
+ return html
+ }
+
+ function hqsub(MY_CATE) {
+ var subs = ["5", "12", "30", "22", ""]
+ var tids = ["1", "2", "4", "3", "64"]
+ let index = tids.indexOf(MY_CATE);
+ if (index !== -1) {
+ return subs[index];
+ }
+ return ""; // 或者根据需要返回其他值
+ }
+ var headers = {
+ 'Cache-Control': 'no-cache',
+ 'Version': '2406025',
+ 'PackageName': 'com.uf076bf0c246.qe439f0d5e.m8aaf56b725a.ifeb647346f',
+ 'Ver': '1.9.2',
+ 'Referer': 'https://api.8utdtcq.com',
+ 'X-Customer-Client-Ip': '127.0.0.1',
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'Host': 'api.8utdtcq.com',
+ 'Connection': 'Keep-Alive',
+ //'Accept-Encoding': 'gzip',
+ 'User-Agent': 'okhttp/3.12.0'
+ }
+ var tid = MY_CATE;
+ var sub = hqsub(MY_CATE)
+ var timestamp = new Date().getTime() / 1000;
+ var t = timestamp.toString().split('.')[0];
+ var request_key = JSON.stringify({
+ "area": (MY_FL.area || 0).toString(),
+ "sub": (MY_FL.sub || sub).toString(),
+ "year": (MY_FL.year || 0).toString(),
+ "pageSize": "30",
+ "sort": (MY_FL.sort || "d_id").toString(),
+ "page": MY_PAGE,
+ "tid": tid
+ });
+ var request_key2 = Encrypt(request_key);
+ var body = getbody3(request_key2, t)
+ var html2 = gethtml("https://api.8utdtcq.com/App/IndexList/indexList", body, headers)
+ //console.log("tttttlieb=="+html2)
+ var list = JSON.parse(html2).list; //log(list)
+ list.forEach(data => {
+ d.push({
+ title: data.vod_name,
+ desc: data.vod_continu == 0 ? '电影' : '更新至' + data.vod_continu + '集',
+ year: data.vod_scroe,
+ img: data.vod_pic,
+ url: `${data.vod_id}/${data.vod_continu}`,
+ })
+ })
+ setResult(d)
+ }),
+ 二级: $js.toString(() => {
+ // var d = [];
+ function Encrypt(plainText) {
+ let key = CryptoJS.enc.Utf8.parse("mvXBSW7ekreItNsT");
+ let iv = CryptoJS.enc.Utf8.parse("2U3IrJL8szAKp0Fj");
+ // 将文本加密为 AES/CBC/PKCS5Padding 格式
+ let encrypted = CryptoJS.AES.encrypt(plainText, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ });
+
+ // 获取加密结果并转为 Hex 格式
+ let encryptedHex = encrypted.ciphertext.toString(CryptoJS.enc.Hex);
+ return encryptedHex.toUpperCase(); // 返回大写 Hex 格式
+ }
+
+ function Decrypt(word, key, iv) {
+ let encryptedHexStr = CryptoJS.enc.Hex.parse(word);
+
+ // 使用AES/CBC/PKCS5Padding模式进行解密
+ let decrypt = CryptoJS.AES.decrypt({
+ ciphertext: encryptedHexStr
+ }, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC, // 使用CBC模式
+ padding: CryptoJS.pad.Pkcs7 // 使用PKCS#7填充
+ });
+
+ // 将解密后的数据转换为原始文本
+ let decryptedStr = decrypt.toString(CryptoJS.enc.Utf8);
+
+ // 返回解密后的文本
+ return decryptedStr;
+ }
+
+ function getbody2(key, t) {
+ var signature = 'token_id=,token=1be86e8e18a9fa18b2b8d5432699dad0.ac008ed650fd087bfbecf2fda9d82e9835253ef24843e6b18fcd128b10763497bcf9d53e959f5377cde038c20ccf9d17f604c9b8bb6e61041def86729b2fc7408bd241e23c213ac57f0226ee656e2bb0a583ae0e4f3bf6c6ab6c490c9a6f0d8cdfd366aacf5d83193671a8f77cd1af1ff2e9145de92ec43ec87cf4bdc563f6e919fe32861b0e93b118ec37d8035fbb3c.59dd05c5d9a8ae726528783128218f15fe6f2c0c8145eddab112b374fcfe3d79,phone_type=1,request_key=' + key + ',app_id=1,time=' + t + ',keys=Qmxi5ciWXbQzkr7o+SUNiUuQxQEf8/AVyUWY4T/BGhcXBIUz4nOyHBGf9A4KbM0iKF3yp9M7WAY0rrs5PzdTAOB45plcS2zZ0wUibcXuGJ29VVGRWKGwE9zu2vLwhfgjTaaDpXo4rby+7GxXTktzJmxvneOUdYeHi+PZsThlvPI=*&zvdvdvddbfikkkumtmdwqppp?|4Y!s!2br'; //log(signature)
+ var signature2 = md5(signature); //log(signature2)
+ var body = 'token=1be86e8e18a9fa18b2b8d5432699dad0.ac008ed650fd087bfbecf2fda9d82e9835253ef24843e6b18fcd128b10763497bcf9d53e959f5377cde038c20ccf9d17f604c9b8bb6e61041def86729b2fc7408bd241e23c213ac57f0226ee656e2bb0a583ae0e4f3bf6c6ab6c490c9a6f0d8cdfd366aacf5d83193671a8f77cd1af1ff2e9145de92ec43ec87cf4bdc563f6e919fe32861b0e93b118ec37d8035fbb3c.59dd05c5d9a8ae726528783128218f15fe6f2c0c8145eddab112b374fcfe3d79&token_id=&phone_type=1&time=' + t + '&phone_model=xiaomi-22021211rc&keys=Qmxi5ciWXbQzkr7o%2BSUNiUuQxQEf8%2FAVyUWY4T%2FBGhcXBIUz4nOyHBGf9A4KbM0iKF3yp9M7WAY0rrs5PzdTAOB45plcS2zZ0wUibcXuGJ29VVGRWKGwE9zu2vLwhfgjTaaDpXo4rby%2B7GxXTktzJmxvneOUdYeHi%2BPZsThlvPI%3D&request_key=' + key + '&signature=' + signature2 + '&app_id=1&ad_version=1'; //log(body)
+ return body
+ }
+ const bodykey = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGAe6hKrWLi1zQmjTT1ozbE4QdFeJGNxubxld6GrFGximxfMsMB6BpJhpcTouAqywAFppiKetUBBbXwYsYU1wNr648XVmPmCMCy4rY8vdliFnbMUj086DU6Z+/oXBdWU3/b1G0DN3E9wULRSwcKZT3wj/cCI1vsCm3gj2R5SqkA9Y0CAwEAAQKBgAJH+4CxV0/zBVcLiBCHvSANm0l7HetybTh/j2p0Y1sTXro4ALwAaCTUeqdBjWiLSo9lNwDHFyq8zX90+gNxa7c5EqcWV9FmlVXr8VhfBzcZo1nXeNdXFT7tQ2yah/odtdcx+vRMSGJd1t/5k5bDd9wAvYdIDblMAg+wiKKZ5KcdAkEA1cCakEN4NexkF5tHPRrR6XOY/XHfkqXxEhMqmNbB9U34saTJnLWIHC8IXys6Qmzz30TtzCjuOqKRRy+FMM4TdwJBAJQZFPjsGC+RqcG5UvVMiMPhnwe/bXEehShK86yJK/g/UiKrO87h3aEu5gcJqBygTq3BBBoH2md3pr/W+hUMWBsCQQChfhTIrdDinKi6lRxrdBnn0Ohjg2cwuqK5zzU9p/N+S9x7Ck8wUI53DKm8jUJE8WAG7WLj/oCOWEh+ic6NIwTdAkEAj0X8nhx6AXsgCYRql1klbqtVmL8+95KZK7PnLWG/IfjQUy3pPGoSaZ7fdquG8bq8oyf5+dzjE/oTXcByS+6XRQJAP/5ciy1bL3NhUhsaOVy55MHXnPjdcTX0FaLi+ybXZIfIQ2P4rb19mVq1feMbCXhz+L1rG8oat5lYKfpe8k83ZA==";
+
+ function gethtml(u, body, headers) {
+ var hd = fetch(u, {
+ headers: headers,
+ body: body,
+ method: 'POST',
+ rejectCoding: true
+ });
+ var banner = JSON.parse(hd).data;
+ var response_key = banner.response_key; //log()
+ var keys = banner.keys; //log(keys)
+ var bodykeyiv = JSON.parse(RSA.decode(keys, bodykey));
+ var key = CryptoJS.enc.Utf8.parse(bodykeyiv.key);
+ var iv = CryptoJS.enc.Utf8.parse(bodykeyiv.iv);
+ var html = Decrypt(response_key, key, iv);
+ return html
+ }
+ const headers = {
+ 'Cache-Control': 'no-cache',
+ 'Version': '2406025',
+ 'PackageName': 'com.uf076bf0c246.qe439f0d5e.m8aaf56b725a.ifeb647346f',
+ 'Ver': '1.9.2',
+ 'Referer': 'https://api.8utdtcq.com',
+ 'X-Customer-Client-Ip': '127.0.0.1',
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'Host': 'api.8utdtcq.com',
+ 'Connection': 'Keep-Alive',
+ //'Accept-Encoding': 'gzip',
+ 'User-Agent': 'okhttp/3.12.0'
+ }
+ // var MY_URL = MY_URL.split("##")[1]; //log(MY_URL)
+ input = input.replace('https://api.8utdtcq.com/', '');
+ //console.log("input----===="+input)
+
+ // var vod_continu = input.split("/")[1]; //log(vod_id)
+ var vod_id = input.split("/")[0];
+ //console.log("vod----===="+vod_id)
+ var timestamp = new Date().getTime() / 1000;
+ var t = timestamp.toString().split('.')[0];
+ var request_key = JSON.stringify({
+ "token_id": "393668",
+ "vod_id": vod_id,
+ "mobile_time": t,
+ "token": "1be86e8e18a9fa18b2b8d5432699dad0.ac008ed650fd087bfbecf2fda9d82e9835253ef24843e6b18fcd128b10763497bcf9d53e959f5377cde038c20ccf9d17f604c9b8bb6e61041def86729b2fc7408bd241e23c213ac57f0226ee656e2bb0a583ae0e4f3bf6c6ab6c490c9a6f0d8cdfd366aacf5d83193671a8f77cd1af1ff2e9145de92ec43ec87cf4bdc563f6e919fe32861b0e93b118ec37d8035fbb3c.59dd05c5d9a8ae726528783128218f15fe6f2c0c8145eddab112b374fcfe3d79"
+ });
+ var request_key2 = Encrypt(request_key);
+ var body = getbody2(request_key2, t)
+ var html = gethtml("https://api.8utdtcq.com/App/IndexPlay/playInfo", body, headers)
+ var data2 = JSON.parse(html).vodInfo; //console.log("hwudwudg-===="+JSON.stringify(data2))
+ var request_key3 = JSON.stringify({
+ "vurl_cloud_id": "2",
+ "vod_d_id": vod_id
+ }); //log(request_key3)
+ var request_key4 = Encrypt(request_key3); //log(request_key4)
+ var body2 = getbody2(request_key4, t)
+
+ var html3 = gethtml("https://api.8utdtcq.com/App/Resource/Vurl/show", body2, headers); //log(html3)
+
+ var list = JSON.parse(html3).list;
+ let nnnmm = [];
+ list.forEach(item => {
+ // 获取play对象的所有值
+ const playParams = Object.values(item.play);
+ let lastParam = null;
+
+ // 从数组的最后一个元素开始,向前查找,直到找到一个非空的param值
+ for (let i = playParams.length - 1; i >= 0; i--) {
+ if (playParams[i].param) {
+ lastParam = playParams[i].param;
+ break;
+ }
+ }
+
+ // 使用正则表达式匹配vurl_id
+ const vurlIdMatch = lastParam.match(/vurl_id=(\d+)/);
+ const resolution = lastParam.match(/resolution=(\d+)/);
+ // 如果匹配成功,将title和vurl_id组合后push到result数组
+ if (vurlIdMatch) {
+ nnnmm.push(`${item.title}$${vod_id}/${vurlIdMatch[1]}?${resolution[1]}`);
+ }
+ });
+ VOD = {
+ title: data2.vod_name,
+ type: data2.videoTag.toString(),
+ desc: data2.vod_use_content,
+ vod_actor: data2.vod_actor,
+ vod_area: data2.vod_area,
+ vod_director: data2.vod_director,
+ img: data2.vod_pic,
+ vod_play_from: '瓜子HD',
+ vod_play_url: nnnmm.join('#')
+ }
+ }),
+ 搜索: $js.toString(() => {
+ let d = [];
+
+ function Encrypt(plainText) {
+ let key = CryptoJS.enc.Utf8.parse("mvXBSW7ekreItNsT");
+ let iv = CryptoJS.enc.Utf8.parse("2U3IrJL8szAKp0Fj");
+ // 将文本加密为 AES/CBC/PKCS5Padding 格式
+ let encrypted = CryptoJS.AES.encrypt(plainText, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ });
+
+ // 获取加密结果并转为 Hex 格式
+ let encryptedHex = encrypted.ciphertext.toString(CryptoJS.enc.Hex);
+ return encryptedHex.toUpperCase(); // 返回大写 Hex 格式
+ }
+
+ function Decrypt(word, key, iv) {
+ let encryptedHexStr = CryptoJS.enc.Hex.parse(word);
+
+ // 使用AES/CBC/PKCS5Padding模式进行解密
+ let decrypt = CryptoJS.AES.decrypt({
+ ciphertext: encryptedHexStr
+ }, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC, // 使用CBC模式
+ padding: CryptoJS.pad.Pkcs7 // 使用PKCS#7填充
+ });
+
+ // 将解密后的数据转换为原始文本
+ let decryptedStr = decrypt.toString(CryptoJS.enc.Utf8);
+
+ // 返回解密后的文本
+ return decryptedStr;
+ }
+
+ function getbody3(key, t) {
+ var signature = 'token_id=,token=1be86e8e18a9fa18b2b8d5432699dad0.ac008ed650fd087bfbecf2fda9d82e9835253ef24843e6b18fcd128b10763497bcf9d53e959f5377cde038c20ccf9d17f604c9b8bb6e61041def86729b2fc7408bd241e23c213ac57f0226ee656e2bb0a583ae0e4f3bf6c6ab6c490c9a6f0d8cdfd366aacf5d83193671a8f77cd1af1ff2e9145de92ec43ec87cf4bdc563f6e919fe32861b0e93b118ec37d8035fbb3c.59dd05c5d9a8ae726528783128218f15fe6f2c0c8145eddab112b374fcfe3d79,phone_type=1,request_key=' + key + ',app_id=1,time=' + t + ',keys=qDpotE2bedimK3QGqlyV5ieXXC3EhaPLQ+IOJyHnHflCj5w/7ESK7FgywMvrgjxbx0GklEFLI4+JshgySe633OIRstuktwdiCy3CT+fLSpuxBJDIlfXQDaeH3ig1wiB0JsZ601XHiFweGMu4tZfnSpHg3OnoL6nz/uurUif2OK4=*&zvdvdvddbfikkkumtmdwqppp?|4Y!s!2br'; //log(signature)
+ var signature2 = md5(signature); //log(signature2)
+ var body = 'token=1be86e8e18a9fa18b2b8d5432699dad0.ac008ed650fd087bfbecf2fda9d82e9835253ef24843e6b18fcd128b10763497bcf9d53e959f5377cde038c20ccf9d17f604c9b8bb6e61041def86729b2fc7408bd241e23c213ac57f0226ee656e2bb0a583ae0e4f3bf6c6ab6c490c9a6f0d8cdfd366aacf5d83193671a8f77cd1af1ff2e9145de92ec43ec87cf4bdc563f6e919fe32861b0e93b118ec37d8035fbb3c.59dd05c5d9a8ae726528783128218f15fe6f2c0c8145eddab112b374fcfe3d79&token_id=&phone_type=1&time=' + t + '&phone_model=xiaomi-22021211rc&keys=qDpotE2bedimK3QGqlyV5ieXXC3EhaPLQ%2BIOJyHnHflCj5w%2F7ESK7FgywMvrgjxbx0GklEFLI4%2BJshgySe633OIRstuktwdiCy3CT%2BfLSpuxBJDIlfXQDaeH3ig1wiB0JsZ601XHiFweGMu4tZfnSpHg3OnoL6nz%2FuurUif2OK4%3D&request_key=' + key + '&signature=' + signature2 + '&app_id=1&ad_version=1';
+ return body
+ }
+ const bodykey = "MIICdgIBADANBgkqhkiG9w0BAQEFAASCAmAwggJcAgEAAoGAe6hKrWLi1zQmjTT1ozbE4QdFeJGNxubxld6GrFGximxfMsMB6BpJhpcTouAqywAFppiKetUBBbXwYsYU1wNr648XVmPmCMCy4rY8vdliFnbMUj086DU6Z+/oXBdWU3/b1G0DN3E9wULRSwcKZT3wj/cCI1vsCm3gj2R5SqkA9Y0CAwEAAQKBgAJH+4CxV0/zBVcLiBCHvSANm0l7HetybTh/j2p0Y1sTXro4ALwAaCTUeqdBjWiLSo9lNwDHFyq8zX90+gNxa7c5EqcWV9FmlVXr8VhfBzcZo1nXeNdXFT7tQ2yah/odtdcx+vRMSGJd1t/5k5bDd9wAvYdIDblMAg+wiKKZ5KcdAkEA1cCakEN4NexkF5tHPRrR6XOY/XHfkqXxEhMqmNbB9U34saTJnLWIHC8IXys6Qmzz30TtzCjuOqKRRy+FMM4TdwJBAJQZFPjsGC+RqcG5UvVMiMPhnwe/bXEehShK86yJK/g/UiKrO87h3aEu5gcJqBygTq3BBBoH2md3pr/W+hUMWBsCQQChfhTIrdDinKi6lRxrdBnn0Ohjg2cwuqK5zzU9p/N+S9x7Ck8wUI53DKm8jUJE8WAG7WLj/oCOWEh+ic6NIwTdAkEAj0X8nhx6AXsgCYRql1klbqtVmL8+95KZK7PnLWG/IfjQUy3pPGoSaZ7fdquG8bq8oyf5+dzjE/oTXcByS+6XRQJAP/5ciy1bL3NhUhsaOVy55MHXnPjdcTX0FaLi+ybXZIfIQ2P4rb19mVq1feMbCXhz+L1rG8oat5lYKfpe8k83ZA==";
+
+ function gethtml(u, body, headers) {
+ var hd = fetch(u, {
+ headers: headers,
+ body: body,
+ method: 'POST',
+ rejectCoding: true
+ });
+ var banner = JSON.parse(hd).data;
+ var response_key = banner.response_key; //log()
+ //console.log("response_key=="+response_key)
+ var keys = banner.keys; //log(keys)
+ var bodykeyiv = JSON.parse(RSA.decode(keys, bodykey));
+ //console.log("rsaxxxx=="+JSON.stringify(bodykeyiv))
+ var key = CryptoJS.enc.Utf8.parse(bodykeyiv.key);
+ var iv = CryptoJS.enc.Utf8.parse(bodykeyiv.iv);
+ var html = Decrypt(response_key, key, iv);
+ //console.log("nskjsnwkjdnejd===qqxxxq="+JSON.stringify(html))
+ return html
+ }
+ var timestamp = new Date().getTime() / 1000;
+ var t = timestamp.toString().split('.')[0];
+ var url = input.split("#")[0]; //url
+ var request_key11 = input.split("#")[1]
+
+ var request_key = JSON.stringify({
+ "keywords": request_key11,
+ "order_val": "1"
+ })
+ //console.log("nskjsnwkjdnejd===qqxxxq=tttt"+request_key)
+ var request_key2 = Encrypt(request_key);
+ var body = getbody3(request_key2, t)
+ var headers = {
+ 'Cache-Control': 'no-cache',
+ 'Version': '2406025',
+ 'PackageName': 'com.uf076bf0c246.qe439f0d5e.m8aaf56b725a.ifeb647346f',
+ 'Ver': '1.9.2',
+ 'Referer': 'https://api.8utdtcq.com',
+ 'X-Customer-Client-Ip': '127.0.0.1',
+ 'Content-Type': 'application/x-www-form-urlencoded',
+ 'Host': 'api.8utdtcq.com',
+ 'Connection': 'Keep-Alive',
+ 'User-Agent': 'okhttp/3.12.0'
+ }
+ var html = gethtml(url, body, headers)
+ //console.log("nskjsnwkjdnejd===="+html)
+
+ var list = JSON.parse(html).list; //log(list)
+ //console.log("nskjsnwkjdnejd===qqqqq="+list)
+ list.forEach(data => {
+ d.push({
+ title: data.vod_name,
+ desc: data.vod_continu == 0 ? '电影' : '更新至' + data.vod_continu + '集',
+ content: data.vod_addtime,
+ img: data.vod_pic,
+ url: `${data.vod_id}/${data.vod_continu}`,
+ })
+ })
+ setResult(d)
+ }),
+}
\ No newline at end of file
diff --git a/JS/看了么.js b/JS/看了么.js
new file mode 100644
index 0000000..f365203
--- /dev/null
+++ b/JS/看了么.js
@@ -0,0 +1,890 @@
+var rule = {
+ title: '看了么',
+ host: 'https://www.ksksl.com',
+ // url:'/show/fyclass/page/fypage.html',
+ url: '/show/fyclassfyfilter.html',
+ filterable: 1, //是否启用分类筛选,
+ filter_url: '{{fl.area}}{{fl.by or "/by/time"}}{{fl.class}}/page/fypage{{fl.year}}',
+ filter: {
+ "dy": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "中国大陆",
+ "v": "/area/中国大陆"
+ }, {
+ "n": "中国香港",
+ "v": "/area/中国香港"
+ }, {
+ "n": "中国台湾",
+ "v": "/area/中国台湾"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国"
+ }, {
+ "n": "英国",
+ "v": "/area/英国"
+ }, {
+ "n": "法国",
+ "v": "/area/法国"
+ }]
+ }, {
+ "key": "class",
+ "name": "分类",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "喜剧",
+ "v": "/class/喜剧"
+ }, {
+ "n": "爱情",
+ "v": "/class/爱情"
+ }, {
+ "n": "恐怖",
+ "v": "/class/恐怖"
+ }, {
+ "n": "动作",
+ "v": "/class/动作"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "剧情",
+ "v": "/class/剧情"
+ }, {
+ "n": "警匪",
+ "v": "/class/警匪"
+ }, {
+ "n": "犯罪",
+ "v": "/class/犯罪"
+ }, {
+ "n": "动画",
+ "v": "/class/动画"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "武侠",
+ "v": "/class/武侠"
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "枪战",
+ "v": "/class/枪战"
+ }, {
+ "n": "恐怖",
+ "v": "/class/恐怖"
+ }, {
+ "n": "悬疑",
+ "v": "/class/悬疑"
+ }, {
+ "n": "惊悚",
+ "v": "/class/惊悚"
+ }, {
+ "n": "经典",
+ "v": "/class/经典"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "文艺",
+ "v": "/class/文艺"
+ }, {
+ "n": "古装",
+ "v": "/class/古装"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "运动",
+ "v": "/class/运动"
+ }, {
+ "n": "农村",
+ "v": "/class/农村"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "tv": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "中国大陆",
+ "v": "/area/中国大陆"
+ }, {
+ "n": "中国香港",
+ "v": "/area/中国香港"
+ }, {
+ "n": "中国台湾",
+ "v": "/area/中国台湾"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国"
+ }, {
+ "n": "英国",
+ "v": "/area/英国"
+ }, {
+ "n": "法国",
+ "v": "/area/法国"
+ }]
+ }, {
+ "key": "class",
+ "name": "分类",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "古装",
+ "v": "/class/古装"
+ }, {
+ "n": "言情",
+ "v": "/class/言情"
+ }, {
+ "n": "武侠",
+ "v": "/class/武侠"
+ }, {
+ "n": "偶像",
+ "v": "/class/美国"
+ }, {
+ "n": "家庭",
+ "v": "/class/家庭"
+ }, {
+ "n": "喜剧",
+ "v": "/class/喜剧"
+ }, {
+ "n": "战争",
+ "v": "/class/战争"
+ }, {
+ "n": "军旅",
+ "v": "/class/军旅"
+ }, {
+ "n": "谍战",
+ "v": "/class/谍战"
+ }, {
+ "n": "悬疑",
+ "v": "/class/悬疑"
+ }, {
+ "n": "罪案",
+ "v": "/class/罪案"
+ }, {
+ "n": "穿越",
+ "v": "/class/穿越"
+ }, {
+ "n": "宫廷",
+ "v": "/class/宫廷"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "神话",
+ "v": "/class/神话"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "年代",
+ "v": "/class/年代"
+ }, {
+ "n": "农村",
+ "v": "/class/农村"
+ }, {
+ "n": "商战",
+ "v": "/class/商战"
+ }, {
+ "n": "剧情",
+ "v": "/class/剧情"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "网剧",
+ "v": "/class/网剧"
+ }, {
+ "n": "都市",
+ "v": "/class/都市"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "zy": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "中国大陆",
+ "v": "/area/中国大陆"
+ }, {
+ "n": "中国香港",
+ "v": "/area/中国香港"
+ }, {
+ "n": "中国台湾",
+ "v": "/area/中国台湾"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国"
+ }, {
+ "n": "英国",
+ "v": "/area/英国"
+ }, {
+ "n": "法国",
+ "v": "/area/法国"
+ }]
+ }, {
+ "key": "class",
+ "name": "分类",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "表演",
+ "v": "/class/表演"
+ }, {
+ "n": "播报",
+ "v": "/class/播报"
+ }, {
+ "n": "访谈",
+ "v": "/class/访谈"
+ }, {
+ "n": "体验",
+ "v": "/class/体验"
+ }, {
+ "n": "养成",
+ "v": "/class/养成"
+ }, {
+ "n": "游戏",
+ "v": "/class/游戏"
+ }, {
+ "n": "亲子",
+ "v": "/class/亲子"
+ }, {
+ "n": "美食",
+ "v": "/class/美食"
+ }, {
+ "n": "情感",
+ "v": "/class/情感"
+ }, {
+ "n": "选秀",
+ "v": "/class/选秀"
+ }, {
+ "n": "益智",
+ "v": "/class/益智"
+ }, {
+ "n": "晚会",
+ "v": "/class/晚会"
+ }, {
+ "n": "音乐",
+ "v": "/class/音乐"
+ }, {
+ "n": "文化",
+ "v": "/class/文化"
+ }, {
+ "n": "喜剧",
+ "v": "/class/喜剧"
+ }, {
+ "n": "曲艺",
+ "v": "/class/曲艺"
+ }, {
+ "n": "职场",
+ "v": "/class/职场"
+ }, {
+ "n": "脱口秀",
+ "v": "/class/脱口秀"
+ }, {
+ "n": "文艺",
+ "v": "/class/文艺"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }, {
+ "n": "潮流文化",
+ "v": "/class/潮流文化"
+ }, {
+ "n": "体育",
+ "v": "/class/体育"
+ }, {
+ "n": "资讯",
+ "v": "/class/资讯"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "dm": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "中国大陆",
+ "v": "/area/中国大陆"
+ }, {
+ "n": "中国香港",
+ "v": "/area/中国香港"
+ }, {
+ "n": "中国台湾",
+ "v": "/area/中国台湾"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国"
+ }, {
+ "n": "英国",
+ "v": "/area/英国"
+ }, {
+ "n": "法国",
+ "v": "/area/法国"
+ }]
+ }, {
+ "key": "class",
+ "name": "分类",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "热门",
+ "v": "/class/热门"
+ }, {
+ "n": "搞笑",
+ "v": "/class/搞笑"
+ }, {
+ "n": "番剧",
+ "v": "/class/番剧"
+ }, {
+ "n": "国创",
+ "v": "/class/国创"
+ }, {
+ "n": "大电影",
+ "v": "/class/大电影"
+ }, {
+ "n": "热血",
+ "v": "/class/热血"
+ }, {
+ "n": "催泪",
+ "v": "/class/催泪"
+ }, {
+ "n": "励志",
+ "v": "/class/励志"
+ }, {
+ "n": "机战",
+ "v": "/class/机战"
+ }, {
+ "n": "格斗",
+ "v": "/class/格斗"
+ }, {
+ "n": "恋爱",
+ "v": "/class/恋爱"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "魔幻",
+ "v": "/class/魔幻"
+ }, {
+ "n": "推理",
+ "v": "/class/推理"
+ }, {
+ "n": "校园",
+ "v": "/class/校园"
+ }, {
+ "n": "日常",
+ "v": "/class/日常"
+ }, {
+ "n": "经典",
+ "v": "/class/经典"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "美食",
+ "v": "/class/美食"
+ }, {
+ "n": "武侠",
+ "v": "/class/武侠"
+ }, {
+ "n": "玄幻",
+ "v": "/class/玄幻"
+ }, {
+ "n": "竞技",
+ "v": "/class/竞技"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "jl": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "中国大陆",
+ "v": "/area/中国大陆"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "国外",
+ "v": "/area/国外"
+ }, {
+ "n": "其他",
+ "v": "/area/其他"
+ }]
+ }, {
+ "key": "class",
+ "name": "分类",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "社会",
+ "v": "/class/社会"
+ }, {
+ "n": "动物",
+ "v": "/class/动物"
+ }, {
+ "n": "文化",
+ "v": "/class/文化"
+ }, {
+ "n": "自然",
+ "v": "/class/自然"
+ }, {
+ "n": "人文",
+ "v": "/class/人文"
+ }, {
+ "n": "军事",
+ "v": "/class/军事"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "记录",
+ "v": "/class/记录"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }]
+ },
+ // searchUrl:'/ch.html?wd=**',
+ searchUrl: '/ch/page/fypage/wd/**.html',
+ searchable: 2,
+ headers: {
+ 'User-Agent': 'UC_UA'
+ },
+ timeout: 5000,
+ // class_name: '电影&电视剧&动漫&综艺&纪录片',//静态分类名称拼接
+ // class_url: 'dy&tv&dm&zy&jl',//静态分类标识拼接
+ class_parse: '.vi-nav.swiper-wrapper&&li:gt(0):lt(6);a&&Text;a&&href;.*/(.*?).html',
+ play_parse: true,
+ lazy: `js:
+ var html = JSON.parse(request(input).match(/r player_.*?=(.*?))[1]);
+ var url = html.url;
+ if (html.encrypt == '1') {
+ url = unescape(url)
+ } else if (html.encrypt == '2') {
+ url = unescape(base64Decode(url))
+ }
+ if (/\\.m3u8|\\.mp4/.test(url)) {
+ input = {
+ jx: 0,
+ url: url,
+ parse: 0
+ }
+ } else {
+ input
+ }
+ `,
+ limit: 5,
+ 推荐: '.dx-top;li;a&&title;a&&data-original;.vod_remarks&&Text;a&&href',
+ double: true, // 推荐内容是否双层定位
+ 一级: 'ul.dx-list li;a&&title;a&&data-original;.vod_remarks&&Text;a&&href',
+ 二级: {
+ "title": "h1--span&&Text;",
+ "img": ".picHover&&img&&src",
+ "desc": ";;;.video-info-item:eq(0)&&Text;.item-tags&&Text",
+ "content": ".vod_content&&Text",
+ "tabs": ".play-title h2",
+ "lists": ".play_li.fn-clear:eq(#id) a"
+ },
+ 搜索: '*',
+}
\ No newline at end of file
diff --git a/JS/短剧合集.js b/JS/短剧合集.js
new file mode 100644
index 0000000..474a896
--- /dev/null
+++ b/JS/短剧合集.js
@@ -0,0 +1,29 @@
+var rule = {
+ 类型: '影视',//影视|听书|漫画|小说
+ title: '爱看短剧[盘]',
+ host: 'https://ys.110t.cn/',
+ homeUrl: '/api/ajax.php?act=recommend',
+ homeUrl: '/api/ajax.php?act=Daily',
+ url: '/api/ajax.php?act=fyclass',
+ searchUrl: '/api/ajax.php?act=search&name=**',
+ searchable: 1,
+ quickSearch: 0,
+ filterable: 0,
+ headers: {
+ 'User-Agent': 'MOBILE_UA',
+ },
+ hikerListCol: "text_1",
+ hikerClassListCol: "text_1",
+ timeout: 5000,
+ class_name: '全部',
+ class_url: 'yingshilist',
+ play_parse: true,
+ lazy: $js.toString(() => {
+ input = "push://" + input;
+ }),
+ double: false,
+ 推荐: '*',
+ 一级: 'json:data;name;;addtime;url',
+ 二级: '*',
+ 搜索: '*',
+}
\ No newline at end of file
diff --git a/JS/碟调影视.js b/JS/碟调影视.js
new file mode 100644
index 0000000..659b001
--- /dev/null
+++ b/JS/碟调影视.js
@@ -0,0 +1,32 @@
+var rule = {
+ title: '碟调影视',
+ host: 'http://www.618648.com',
+ // homeUrl:'/',
+ url: '/die-tiao/fyclass-fypage.html',
+ searchUrl: '/diediaoch/page/fypage/wd/**.html',
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ filterable: 0, //是否启用分类筛选,
+ headers: { //网站的请求头,完整支持所有的,常带ua和cookies
+ 'User-Agent': 'MOBILE_UA',
+ // "Cookie": "searchneed=ok"
+ },
+ //class_parse:'.stui-header__menu li.hidden-xs;a&&Text;a&&href;.*/(.*?).html',
+ class_name: '电影&电视剧&综艺&动漫',
+ class_url: '1&2&3&4',
+ play_parse: true,
+ lazy: '',
+ limit: 8,
+ 推荐: '.stui-vodlist.clearfix;.stui-vodlist__box;a&&title;a&&data-original;.pic-text&&Text;a&&href',
+ double: true, // 推荐内容是否双层定位
+ 一级: '.stui-vodlist.clearfix li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
+ 二级: {
+ "title": "h1.title&&Text;.stui-content__detail p:eq(2)&&Text",
+ "img": ".lazyload&&data-original",
+ "desc": ".video-info-items:eq(-2)&&Text;.video-info-items:eq(-1)&&Text;.video-info-items:eq(-2)&&Text;.stui-content__detail p:eq(7)&&Text;.stui-content__detail p:eq(6)&&Text",
+ "content": ".stui-content__detail p:eq(9)&&Text",
+ "tabs": ".nav.nav-tabs li",
+ "lists": ".tab-pane.fade:eq(#id)&&ul&&li"
+ },
+ 搜索: '.stui-vodlist.clearfix li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
+}
\ No newline at end of file
diff --git a/JS/磁力熊.js b/JS/磁力熊.js
new file mode 100644
index 0000000..ba22280
--- /dev/null
+++ b/JS/磁力熊.js
@@ -0,0 +1,101 @@
+var rule = {
+ title:'磁力熊[磁]',
+ host:'https://www.cilixiong.com',
+ homeUrl:'/top250/index.html',
+ // url: '/fyclass/index_(fypage-1).html',
+ url: '/fyclassfyfilter-(fypage-1).html',
+ filter_url:'-{{fl.class or "0"}}-{{fl.area or "0"}}',
+ filter:{
+ "1":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}],
+ "2":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}]
+ },
+ searchUrl: '/e/search/index.php#classid=1,2&show=title&tempid=1&keyboard=**;post',
+ searchable:2,
+ quickSearch:0,
+ filterable:1,
+ headers:{
+ 'User-Agent': 'MOBILE_UA'
+ },
+ timeout:5000,
+ class_name:'电影&剧集&豆瓣电影Top250&IMDB Top250&高分悬疑片&高分喜剧片&高分传记片&高分爱情片&高分犯罪片&高分恐怖片&高分冒险片&高分武侠片&高分奇幻片&高分历史片&高分战争片&高分歌舞片&高分灾难片&高分情色片&高分西部片&高分音乐片&高分科幻片&高分动作片&高分动画片&高分纪录片&冷门佳片',
+ class_url:'1&2&/top250/&/s/imdbtop250/&/s/suspense/&/s/comedy/&/s/biopic/&/s/romance/&/s/crime/&/s/horror/&/s/adventure/&/s/martial/&/s/fantasy/&/s/history/&/s/war/&/s/musical/&/s/disaster/&/s/erotic/&/s/west/&/s/music/&/s/sci-fi/&s/action/&/s/animation/&/s/documentary/&/s/unpopular/',
+ play_parse:true,
+ lazy:'',
+ limit:6,
+ 推荐: `js:
+ pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
+ var d = [];
+ var html = request(input);
+ var list = pdfa(html, 'body&&.col');
+ list.forEach(it => {
+ d.push({
+ title: pdfh(it, 'h2&&Text'),
+ desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
+ // pic_url: pd(it, '.card-img&&style'), // 只有 影视TV&爱佬版 有图片
+ pic_url: /!'/.test(pd(it, '.card-img&&style'))?pd(it, '.card-img&&style'):pd(it, '.card-img&&style').replaceAll("'",""), // 兼容 影视TV&爱佬版 以外的其它壳子
+ url: pd(it, 'a&&href')
+ });
+ })
+ setResult(d);
+ `,
+ 一级: `js:
+ pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
+ var d = [];
+ if (MY_CATE !== '1' && MY_CATE !== '2') {
+ let turl = (MY_PAGE === 1)? 'index' : 'index_'+ MY_PAGE;
+ input = HOST + MY_CATE + turl + '.html';
+ }
+ var html = request(input);
+ var list = pdfa(html, 'body&&.col');
+ list.forEach(it => {
+ d.push({
+ title: pdfh(it, 'h2&&Text'),
+ desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
+ // pic_url: pdfh(it, '.card-img&&style'), // 只有 影视TV&爱佬版 有图片
+ pic_url: /!'/.test(pd(it, '.card-img&&style'))?pd(it, '.card-img&&style'):pd(it, '.card-img&&style').replaceAll("'",""), // 兼容 影视TV&爱佬版 以外的其它壳子
+ url: pd(it, 'a&&href')
+ });
+ })
+ setResult(d);
+ `,
+ 二级:{
+ title:'h1&&Text;p.mb-2:eq(4)&&Text',
+ desc:'p.mb-2:eq(1)&&Text;;;p.mb-2:eq(7)&&Text;p.mb-2:eq(5)&&Text',
+ img:'.rounded-2&&src',
+ content:'.mv_card_box&&Text',
+ // tabs:'js:TABS = ["道长磁力"]',
+ // lists:'.mv_down:eq(#id)&&.border-bottom',
+ // list_text:'a&&Text',
+ // list_url:'a&&href',
+
+ tabs:'js:TABS = ["道长磁力","道长在线预览"]',
+ lists:`js:
+ log(TABS);
+ pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
+ LISTS = [];
+ var dd=[];
+ TABS.forEach(function(tab) {
+ if (/道长磁力/.test(tab)) {
+ var d = pdfa(html, '.mv_down&&.border-bottom');
+ d = d.map(function(it) {
+ var title = pdfh(it, 'a&&Text');
+ log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
+ var burl = pd(it, 'a&&href');
+ log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
+ return title + '$' + burl
+ });
+ LISTS.push(d)
+ } else if (/道长在线预览/.test(tab)) {
+ var d = pd(html, 'iframe&&src');
+ if (d) {
+ d=['第一集在线播放预览$' + d]
+ } else {
+ d=['没有预览不要点$http://www.sharenice.net/douyin/23852']
+ }
+ LISTS.push(d)
+ }
+ });
+ `,
+ },
+ 搜索:'.col;h2&&Text;.card-img&&style;.me-auto&&Text;a&&href',
+}
\ No newline at end of file
diff --git a/JS/米兔弹幕.js b/JS/米兔弹幕.js
new file mode 100644
index 0000000..31d476a
--- /dev/null
+++ b/JS/米兔弹幕.js
@@ -0,0 +1,224 @@
+globalThis.h_ost = 'http://mitu.jiajiayoutian.top/';
+var key = CryptoJS.enc.Base64.parse("ZDAzMmMxMjg3NmJjNjg0OA==");
+var iv = CryptoJS.enc.Base64.parse("ZDAzMmMxMjg3NmJjNjg0OA==");
+globalThis.AES_Decrypt = function(word) {
+ try {
+ var decrypt = CryptoJS.AES.decrypt(word, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7,
+ });
+ const decryptedText = decrypt.toString(CryptoJS.enc.Utf8);
+ if (!decryptedText) {
+ throw new Error("解密后的内容为空");
+ }
+ return decryptedText;
+ } catch (e) {
+ console.error("解密失败:", e);
+ return null;
+ }
+};
+globalThis.AES_Encrypt = function(word) {
+ var encrypted = CryptoJS.AES.encrypt(word, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7
+ });
+ return encrypted.toString();
+};
+
+globalThis.vod1 = function(t, pg) {
+ let html1 = request(h_ost + 'api.php/getappapi.index/typeFilterVodList', {
+ body: {
+ area: '全部',
+ year: '全部',
+ type_id: t,
+ page: pg,
+ sort: '最新',
+ lang: '全部',
+ class: '全部'
+ },
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ },
+ 'method': 'POST'
+ }, true);
+ let html = JSON.parse(html1);
+ return (AES_Decrypt(html.data));
+}
+globalThis.vodids = function(ids) {
+ let html1 = fetch(h_ost + 'api.php/getappapi.index/vodDetail', {
+ method: 'POST',
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ },
+ body: {
+ vod_id: ids,
+ }
+ });
+ let html = JSON.parse(html1);
+ const rdata = JSON.parse(AES_Decrypt(html.data));
+ console.log(rdata);
+ const data = {
+ vod_id: ids,
+ vod_name: rdata.vod.vod_name,
+ vod_remarks: rdata.vod.vod_remarks,
+ vod_actor: rdata.vod.vod_actor,
+ vod_director: rdata.vod.vod_director,
+ vod_content: rdata.vod.vod_content,
+ vod_play_from: '',
+ vod_play_url: ''
+ };
+
+ rdata.vod_play_list.forEach((value) => {
+ data.vod_play_from += value.player_info.show + '$$$';
+ value.urls.forEach((v) => {
+ data.vod_play_url += v.name + '$' + value.player_info.parse + '~' + v.url + '~' + rdata.vod.vod_name + '~' + v.name + '#';
+ });
+ data.vod_play_url += '$$$';
+ });
+ return data;
+}
+//搜索
+globalThis.ssvod = function(wd) {
+ var html1 = fetch(h_ost + 'api.php/getappapi.index/searchList', {
+ method: 'POST',
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ },
+ body: {
+ keywords: wd,
+ typepage_id: 1,
+ }
+ });
+ let html = JSON.parse(html1);
+ return AES_Decrypt(html.data);
+}
+//解析
+globalThis.jxx = function(id, url, name, juji) {
+ try {
+ if (id.includes('xmflv')) {
+ return {
+ parse: 1,
+ url: id + url,
+ jx: 0,
+ danmaku: 'http://103.45.162.207:25252/hbdm.php?key=7894561232&id=' + '&jm=' + name + '&js=' + juji + '&key=741852963'
+ };
+ }
+ //log(id);
+ if (url.includes('m3u8')) {
+ return {
+ parse: 0,
+ url: url,
+ jx: 1,
+ danmaku: 'http://103.45.162.207:25252/hbdm.php?key=7894561232&id=' + '&jm=' + name + '&js=' + juji + '&key=741852963'
+ };
+ }
+ if (id.includes('http')) {
+ let purl = JSON.parse(request(id + url)).url;
+ return {
+ parse: 0,
+ url: purl,
+ jx: 0,
+ danmaku: 'http://103.45.162.207:25252/hbdm.php?key=7894561232&id=' + '&jm=' + name + '&js=' + juji + '&key=741852963'
+ };
+ }
+ let html1 = request(h_ost + 'api.php/getappapi.index/vodParse', {
+ method: 'POST',
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ },
+ body: {
+ parse_api: id,
+ url: AES_Encrypt(url),
+ }
+ });
+ let html = AES_Decrypt(JSON.parse(html1).data);
+ console.log(html1);
+ let decry = html.replace(/\n/g, '').replace(/\\/g, '');
+ let matches = decry.match(/"url":"([^"]+)"/);
+ if (!matches || matches[1] === null) {
+ matches = decry.match(/"url": "([^"]+)"/);
+ }
+ return {
+ parse: 0,
+ url: matches[1],
+ jx: 0,
+ danmaku: 'http://103.45.162.207:25252/hbdm.php?key=7894561232&id=' + '&jm=' + name + '&js=' + juji + '&key=741852963'
+ };
+ } catch {
+ return {
+ parse: 0,
+ url: '解析失败',
+ jx: 0
+ };
+ }
+}
+
+var rule = {
+ title: '米兔[资]',
+ host: '',
+ detailUrl: 'fyid',
+ searchUrl: '**',
+ url: 'fyclass',
+ searchable: 2,
+ quickSearch: 1,
+ filterable: 0,
+ class_name: '电影&电视剧&综艺&动漫',
+ class_url: '1&2&3&4',
+ play_parse: true,
+ lazy: $js.toString(() => {
+ const parts = input.split('~');
+ input = jxx(parts[0], parts[1], parts[2], parts[3]);
+ }),
+ 推荐: $js.toString(() => {
+ let data = vod1(0, 0);
+ let bata = JSON.parse(data).recommend_list;
+ bata.forEach(it => {
+ d.push({
+ url: it.vod_id,
+ title: it.vod_name,
+ img: it.vod_pic,
+ desc: it.vod_remarks
+ });
+ });
+ setResult(d);
+ }),
+ 一级: $js.toString(() => {
+ let data = vod1(input, MY_PAGE);
+ let bata = JSON.parse(data).recommend_list;
+ bata.forEach(it => {
+ d.push({
+ url: it.vod_id,
+ title: it.vod_name,
+ img: it.vod_pic,
+ desc: it.vod_remarks
+ });
+ });
+ setResult(d);
+ }),
+ 二级: $js.toString(() => {
+ console.log("调试信息2" + input);
+ let data = vodids(input);
+ //console.log(data);
+ VOD = data;
+ }),
+ 搜索: $js.toString(() => {
+ let data = ssvod(input);
+ let bata = JSON.parse(data).search_list;
+ bata.forEach(it => {
+ d.push({
+ url: it.vod_id,
+ title: it.vod_name,
+ img: it.vod_pic,
+ desc: it.vod_remarks
+ });
+ });
+ // console.log(data);
+ setResult(d);
+ }),
+}
\ No newline at end of file
diff --git a/JS/素白白.js b/JS/素白白.js
new file mode 100644
index 0000000..56b25c7
--- /dev/null
+++ b/JS/素白白.js
@@ -0,0 +1,743 @@
+// 地址发布页 https://subaibai.vip/
+// 搜索数字验证
+var rule = {
+ title: '素白白',
+ // host:'https://www.subaibaiys.com',
+ host: 'https://subaibai.vip',
+ hostJs: 'print(HOST);let html=request(HOST,{headers:{"User-Agent":PC_UA}});let src = jsp.pdfh(html,".go:eq(0)&&a&&href");print(src);HOST=src', //网页域名根动态抓取js代码。通过HOST=赋值
+ // url:'/fyclass/page/fypage',
+ url: '/fyclassfyfilter',
+ filterable: 1, //是否启用分类筛选,
+ filter_url: '{{fl.area}}{{fl.year}}{{fl.class}}{{fl.cateId}}/page/fypage',
+ filter: {
+ "movie_bt": [{
+ "key": "cateId",
+ "name": "分类",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "v": "/movie_bt_series/dongmanju",
+ "n": "动漫剧"
+ }, {
+ "v": "/movie_bt_series/dongmandy",
+ "n": "动漫电影"
+ }, {
+ "v": "/movie_bt_series/yindudy",
+ "n": "印度电影"
+ }, {
+ "v": "/movie_bt_series/guochanju",
+ "n": "国产剧"
+ }, {
+ "v": "/movie_bt_series/guochandy",
+ "n": "国产电影"
+ }, {
+ "v": "/movie_bt_series/riju",
+ "n": "日剧"
+ }, {
+ "v": "/movie_bt_series/rihandy",
+ "n": "日韩电影"
+ }, {
+ "v": "/movie_bt_series/oumeiju",
+ "n": "欧美剧"
+ }, {
+ "v": "/movie_bt_series/oumeidy",
+ "n": "欧美电影"
+ }, {
+ "v": "/movie_bt_series/taiju",
+ "n": "泰剧"
+ }, {
+ "v": "/movie_bt_series/thaidy",
+ "n": "泰国电影"
+ }, {
+ "v": "/movie_bt_series/gangju",
+ "n": "港台剧"
+ }, {
+ "v": "/movie_bt_series/gangtaidy",
+ "n": "港台电影"
+ }, {
+ "v": "/movie_bt_series/documentary",
+ "n": "纪录片"
+ }, {
+ "v": "/movie_bt_series/zongyi",
+ "n": "综艺"
+ }, {
+ "v": "/movie_bt_series/hanju",
+ "n": "韩剧"
+ }, {
+ "v": "/movie_bt_series/xianggangdy",
+ "n": "香港经典电影"
+ }]
+ }, {
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "v": "/movie_bt_tags/pop-popular",
+ "n": "POP流行"
+ }, {
+ "v": "/movie_bt_tags/biography",
+ "n": "传记"
+ }, {
+ "v": "/movie_bt_tags/child",
+ "n": "儿童"
+ }, {
+ "v": "/movie_bt_tags/adventure",
+ "n": "冒险"
+ }, {
+ "v": "/movie_bt_tags/plot",
+ "n": "剧情"
+ }, {
+ "v": "/movie_bt_tags/action",
+ "n": "动作"
+ }, {
+ "v": "/movie_bt_tags/anime",
+ "n": "动漫"
+ }, {
+ "v": "/movie_bt_tags/animation",
+ "n": "动画"
+ }, {
+ "v": "/movie_bt_tags/history",
+ "n": "历史"
+ }, {
+ "v": "/movie_bt_tags/costume",
+ "n": "古装"
+ }, {
+ "v": "/movie_bt_tags/antiquity",
+ "n": "古风"
+ }, {
+ "v": "/movie_bt_tags/homosexual",
+ "n": "同性"
+ }, {
+ "v": "/movie_bt_tags/comedy",
+ "n": "喜剧"
+ }, {
+ "v": "/movie_bt_tags/fantasy",
+ "n": "奇幻"
+ }, {
+ "v": "/movie_bt_tags/family",
+ "n": "家庭"
+ }, {
+ "v": "/movie_bt_tags/terror",
+ "n": "恐怖"
+ }, {
+ "v": "/movie_bt_tags/suspense",
+ "n": "悬疑"
+ }, {
+ "v": "/movie_bt_tags/erotic",
+ "n": "情色"
+ }, {
+ "v": "/movie_bt_tags/thriller",
+ "n": "惊悚"
+ }, {
+ "v": "/movie_bt_tags/drama",
+ "n": "戏曲"
+ }, {
+ "v": "/movie_bt_tags/war",
+ "n": "战争"
+ }, {
+ "v": "/movie_bt_tags/latin",
+ "n": "拉丁"
+ }, {
+ "v": "/movie_bt_tags/funny",
+ "n": "搞笑"
+ }, {
+ "v": "/movie_bt_tags/campus",
+ "n": "校园"
+ }, {
+ "v": "/movie_bt_tags/song-and-dance",
+ "n": "歌舞"
+ }, {
+ "v": "/movie_bt_tags/martial-arts",
+ "n": "武侠"
+ }, {
+ "v": "/movie_bt_tags/disaster",
+ "n": "灾难"
+ }, {
+ "v": "/movie_bt_tags/love",
+ "n": "爱情"
+ }, {
+ "v": "/movie_bt_tags/crime",
+ "n": "犯罪"
+ }, {
+ "v": "/movie_bt_tags/fancy",
+ "n": "玄幻"
+ }, {
+ "v": "/movie_bt_tags/reality-show",
+ "n": "真人秀"
+ }, {
+ "v": "/movie_bt_tags/short-film",
+ "n": "短片"
+ }, {
+ "v": "/movie_bt_tags/kehuan",
+ "n": "科幻"
+ }, {
+ "v": "/movie_bt_tags/documentary",
+ "n": "纪录片"
+ }, {
+ "v": "/movie_bt_tags/talkshow",
+ "n": "脱口秀"
+ }, {
+ "v": "/movie_bt_tags/stageart",
+ "n": "舞台艺术"
+ }, {
+ "v": "/movie_bt_tags/west",
+ "n": "西部"
+ }, {
+ "v": "/movie_bt_tags/sport",
+ "n": "运动"
+ }, {
+ "v": "/movie_bt_tags/youth",
+ "n": "青春"
+ }, {
+ "v": "/movie_bt_tags/music",
+ "n": "音乐"
+ }, {
+ "v": "/movie_bt_tags/ghost",
+ "n": "鬼怪"
+ }, {
+ "v": "/movie_bt_tags/black-film",
+ "n": "黑色电影"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "v": "/movie_bt_cat/bhutan",
+ "n": "不丹"
+ }, {
+ "v": "/movie_bt_cat/china",
+ "n": "中国"
+ }, {
+ "v": "/movie_bt_cat/china-taiwan",
+ "n": "中国台湾"
+ }, {
+ "v": "/movie_bt_cat/china-mainland",
+ "n": "中国大陆"
+ }, {
+ "v": "/movie_bt_cat/china-hongkong",
+ "n": "中国香港"
+ }, {
+ "v": "/movie_bt_cat/denmark",
+ "n": "丹麦"
+ }, {
+ "v": "/movie_bt_cat/ukraine",
+ "n": "乌克兰"
+ }, {
+ "v": "/movie_bt_cat/uruguay",
+ "n": "乌拉圭"
+ }, {
+ "v": "/movie_bt_cat/israel",
+ "n": "以色列"
+ }, {
+ "v": "/movie_bt_cat/iraq",
+ "n": "伊拉克"
+ }, {
+ "v": "/movie_bt_cat/iran",
+ "n": "伊朗"
+ }, {
+ "v": "/movie_bt_cat/russia",
+ "n": "俄罗斯"
+ }, {
+ "v": "/movie_bt_cat/bulgaria",
+ "n": "保加利亚"
+ }, {
+ "v": "/movie_bt_cat/croatia",
+ "n": "克罗地亚"
+ }, {
+ "v": "/movie_bt_cat/iceland",
+ "n": "冰岛"
+ }, {
+ "v": "/movie_bt_cat/canada",
+ "n": "加拿大"
+ }, {
+ "v": "/movie_bt_cat/hungary",
+ "n": "匈牙利"
+ }, {
+ "v": "/movie_bt_cat/south-africa",
+ "n": "南非"
+ }, {
+ "v": "/movie_bt_cat/botswana",
+ "n": "博茨瓦纳"
+ }, {
+ "v": "/movie_bt_cat/qatar",
+ "n": "卡塔尔"
+ }, {
+ "v": "/movie_bt_cat/luxembourg",
+ "n": "卢森堡"
+ }, {
+ "v": "/movie_bt_cat/india",
+ "n": "印度"
+ }, {
+ "v": "/movie_bt_cat/indonesia",
+ "n": "印度尼西亚"
+ }, {
+ "v": "/movie_bt_cat/kazakhstan",
+ "n": "哈萨克斯坦"
+ }, {
+ "v": "/movie_bt_cat/colombia",
+ "n": "哥伦比亚"
+ }, {
+ "v": "/movie_bt_cat/turkey",
+ "n": "土耳其"
+ }, {
+ "v": "/movie_bt_cat/serbia",
+ "n": "塞尔维亚"
+ }, {
+ "v": "/movie_bt_cat/cyprus",
+ "n": "塞浦路斯"
+ }, {
+ "v": "/movie_bt_cat/mexico",
+ "n": "墨西哥"
+ }, {
+ "v": "/movie_bt_cat/dominica",
+ "n": "多米尼加"
+ }, {
+ "v": "/movie_bt_cat/austria",
+ "n": "奥地利"
+ }, {
+ "v": "/movie_bt_cat/venezuela",
+ "n": "委内瑞拉"
+ }, {
+ "v": "/movie_bt_cat/nigeria",
+ "n": "尼日利亚"
+ }, {
+ "v": "/movie_bt_cat/巴基斯坦",
+ "n": "巴基斯坦"
+ }, {
+ "v": "/movie_bt_cat/paraguay",
+ "n": "巴拉圭"
+ }, {
+ "v": "/movie_bt_cat/brazil",
+ "n": "巴西"
+ }, {
+ "v": "/movie_bt_cat/greece",
+ "n": "希腊"
+ }, {
+ "v": "/movie_bt_cat/germany",
+ "n": "德国"
+ }, {
+ "v": "/movie_bt_cat/italy",
+ "n": "意大利"
+ }, {
+ "v": "/movie_bt_cat/latvia",
+ "n": "拉脱维亚"
+ }, {
+ "v": "/movie_bt_cat/norway",
+ "n": "挪威"
+ }, {
+ "v": "/movie_bt_cat/chech",
+ "n": "捷克"
+ }, {
+ "v": "/movie_bt_cat/摩洛哥",
+ "n": "摩洛哥"
+ }, {
+ "v": "/movie_bt_cat/斯洛伐克",
+ "n": "斯洛伐克"
+ }, {
+ "v": "/movie_bt_cat/slovenia",
+ "n": "斯洛文尼亚"
+ }, {
+ "v": "/movie_bt_cat/singapore",
+ "n": "新加坡"
+ }, {
+ "v": "/movie_bt_cat/zealand",
+ "n": "新西兰"
+ }, {
+ "v": "/movie_bt_cat/japan",
+ "n": "日本"
+ }, {
+ "v": "/movie_bt_cat/chile",
+ "n": "智利"
+ }, {
+ "v": "/movie_bt_cat/north-korea",
+ "n": "朝鲜"
+ }, {
+ "v": "/movie_bt_cat/cambodia",
+ "n": "柬埔寨"
+ }, {
+ "v": "/movie_bt_cat/georgia",
+ "n": "格鲁吉亚"
+ }, {
+ "v": "/movie_bt_cat/belgium",
+ "n": "比利时"
+ }, {
+ "v": "/movie_bt_cat/saudi-arabia",
+ "n": "沙特阿拉伯"
+ }, {
+ "v": "/movie_bt_cat/france",
+ "n": "法国"
+ }, {
+ "v": "/movie_bt_cat/poland",
+ "n": "波兰"
+ }, {
+ "v": "/movie_bt_cat/puertorco",
+ "n": "波多黎各"
+ }, {
+ "v": "/movie_bt_cat/bohei",
+ "n": "波黑"
+ }, {
+ "v": "/movie_bt_cat/thailand",
+ "n": "泰国"
+ }, {
+ "v": "/movie_bt_cat/australia",
+ "n": "澳大利亚"
+ }, {
+ "v": "/movie_bt_cat/ireland",
+ "n": "爱尔兰"
+ }, {
+ "v": "/movie_bt_cat/estonia",
+ "n": "爱沙尼亚"
+ }, {
+ "v": "/movie_bt_cat/sweden",
+ "n": "瑞典"
+ }, {
+ "v": "/movie_bt_cat/switzerland",
+ "n": "瑞士"
+ }, {
+ "v": "/movie_bt_cat/belarus",
+ "n": "白俄罗斯"
+ }, {
+ "v": "/movie_bt_cat/peru",
+ "n": "秘鲁"
+ }, {
+ "v": "/movie_bt_cat/tunisia",
+ "n": "突尼斯"
+ }, {
+ "v": "/movie_bt_cat/lithuania",
+ "n": "立陶宛"
+ }, {
+ "v": "/movie_bt_cat/romania",
+ "n": "罗马尼亚"
+ }, {
+ "v": "/movie_bt_cat/america",
+ "n": "美国"
+ }, {
+ "v": "/movie_bt_cat/finland",
+ "n": "芬兰"
+ }, {
+ "v": "/movie_bt_cat/sovietunion",
+ "n": "苏联"
+ }, {
+ "v": "/movie_bt_cat/england",
+ "n": "英国"
+ }, {
+ "v": "/movie_bt_cat/netherlands",
+ "n": "荷兰"
+ }, {
+ "v": "/movie_bt_cat/philippines",
+ "n": "菲律宾"
+ }, {
+ "v": "/movie_bt_cat/葡萄牙",
+ "n": "葡萄牙"
+ }, {
+ "v": "/movie_bt_cat/west-germany",
+ "n": "西德"
+ }, {
+ "v": "/movie_bt_cat/spain",
+ "n": "西班牙"
+ }, {
+ "v": "/movie_bt_cat/vietnam",
+ "n": "越南"
+ }, {
+ "v": "/movie_bt_cat/argentina",
+ "n": "阿根廷"
+ }, {
+ "v": "/movie_bt_cat/korea",
+ "n": "韩国"
+ }, {
+ "v": "/movie_bt_cat/malaysia",
+ "n": "马来西亚"
+ }, {
+ "v": "/movie_bt_cat/马耳他",
+ "n": "马耳他"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "v": "/year/2024",
+ "n": "2024"
+ }, {
+ "v": "/year/2023",
+ "n": "2023"
+ }, {
+ "v": "/year/2022",
+ "n": "2022"
+ }, {
+ "v": "/year/2021",
+ "n": "2021"
+ }, {
+ "v": "/year/2020",
+ "n": "2020"
+ }, {
+ "v": "/year/2019",
+ "n": "2019"
+ }, {
+ "v": "/year/2018",
+ "n": "2018"
+ }, {
+ "v": "/year/2017",
+ "n": "2017"
+ }, {
+ "v": "/year/2016",
+ "n": "2016"
+ }, {
+ "v": "/year/2015",
+ "n": "2015"
+ }, {
+ "v": "/year/2014",
+ "n": "2014"
+ }, {
+ "v": "/year/2013",
+ "n": "2013"
+ }, {
+ "v": "/year/2012",
+ "n": "2012"
+ }, {
+ "v": "/year/2011",
+ "n": "2011"
+ }, {
+ "v": "/year/2010",
+ "n": "2010"
+ }, {
+ "v": "/year/2009",
+ "n": "2009"
+ }, {
+ "v": "/year/2008",
+ "n": "2008"
+ }, {
+ "v": "/year/2007",
+ "n": "2007"
+ }, {
+ "v": "/year/2006",
+ "n": "2006"
+ }, {
+ "v": "/year/2005",
+ "n": "2005"
+ }, {
+ "v": "/year/2004",
+ "n": "2004"
+ }, {
+ "v": "/year/2003",
+ "n": "2003"
+ }, {
+ "v": "/year/2002",
+ "n": "2002"
+ }, {
+ "v": "/year/2001",
+ "n": "2001"
+ }, {
+ "v": "/year/2000",
+ "n": "2000"
+ }, {
+ "v": "/year/1999",
+ "n": "1999"
+ }, {
+ "v": "/year/1998",
+ "n": "1998"
+ }, {
+ "v": "/year/1997",
+ "n": "1997"
+ }, {
+ "v": "/year/1996",
+ "n": "1996"
+ }, {
+ "v": "/year/1995",
+ "n": "1995"
+ }, {
+ "v": "/year/1994",
+ "n": "1994"
+ }, {
+ "v": "/year/1993",
+ "n": "1993"
+ }, {
+ "v": "/year/1992",
+ "n": "1992"
+ }, {
+ "v": "/year/1991",
+ "n": "1991"
+ }, {
+ "v": "/year/1990",
+ "n": "1990"
+ }, {
+ "v": "/year/1989",
+ "n": "1989"
+ }, {
+ "v": "/year/1988",
+ "n": "1988"
+ }, {
+ "v": "/year/1987",
+ "n": "1987"
+ }, {
+ "v": "/year/1986",
+ "n": "1986"
+ }, {
+ "v": "/year/1985",
+ "n": "1985"
+ }, {
+ "v": "/year/1984",
+ "n": "1984"
+ }, {
+ "v": "/year/1983",
+ "n": "1983"
+ }, {
+ "v": "/year/1982",
+ "n": "1982"
+ }, {
+ "v": "/year/1981",
+ "n": "1981"
+ }, {
+ "v": "/year/1980",
+ "n": "1980"
+ }, {
+ "v": "/year/1979",
+ "n": "1979"
+ }, {
+ "v": "/year/1978",
+ "n": "1978"
+ }, {
+ "v": "/year/1977",
+ "n": "1977"
+ }, {
+ "v": "/year/1976",
+ "n": "1976"
+ }, {
+ "v": "/year/1975",
+ "n": "1975"
+ }, {
+ "v": "/year/1974",
+ "n": "1974"
+ }, {
+ "v": "/year/1973",
+ "n": "1973"
+ }, {
+ "v": "/year/1972",
+ "n": "1972"
+ }, {
+ "v": "/year/1971",
+ "n": "1971"
+ }, {
+ "v": "/year/1970",
+ "n": "1970"
+ }, {
+ "v": "/year/1969",
+ "n": "1969"
+ }, {
+ "v": "/year/1968",
+ "n": "1968"
+ }, {
+ "v": "/year/1967",
+ "n": "1967"
+ }, {
+ "v": "/year/1966",
+ "n": "1966"
+ }, {
+ "v": "/year/1965",
+ "n": "1965"
+ }, {
+ "v": "/year/1964",
+ "n": "1964"
+ }, {
+ "v": "/year/1963",
+ "n": "1963"
+ }, {
+ "v": "/year/1962",
+ "n": "1962"
+ }, {
+ "v": "/year/1960",
+ "n": "1960"
+ }, {
+ "v": "/year/1959",
+ "n": "1959"
+ }, {
+ "v": "/year/1954",
+ "n": "1954"
+ }, {
+ "v": "/year/1952",
+ "n": "1952"
+ }, {
+ "v": "/year/1950",
+ "n": "1950"
+ }, {
+ "v": "/year/1949",
+ "n": "1949"
+ }, {
+ "v": "/year/1948",
+ "n": "1948"
+ }, {
+ "v": "/year/1940",
+ "n": "1940"
+ }, {
+ "v": "/year/1939",
+ "n": "1939"
+ }, {
+ "v": "/year/1925",
+ "n": "1925"
+ }]
+ }]
+ },
+ // searchUrl:'/search?q=**',
+ searchUrl: '/search?q=**',
+ searchable: 2, //是否启用全局搜索,
+ quickSearch: 0, //是否启用快速搜索,
+ headers: {
+ 'User-Agent': 'UC_UA',
+ },
+ class_parse: '.navlist&&li;a&&Text;a&&href;.*/([^/]+)',
+ play_parse: true,
+ // lazy:'',
+ lazy: `js:
+ pdfh = jsp.pdfh;
+ var html = request(input);
+ var ohtml = pdfh(html, '.videoplay&&Html');
+ var url = pdfh(ohtml, "body&&iframe&&src");
+ if (/Cloud/.test(url)) {
+ var ifrwy = request(url);
+ let code = ifrwy.match(/var url = '(.*?)'/)[1].split('').reverse().join('');
+ let temp = '';
+ for (let i = 0x0; i < code.length; i = i + 0x2) {
+ temp += String.fromCharCode(parseInt(code[i] + code[i + 0x1], 0x10))
+ }
+ input = {
+ jx: 0,
+ url: temp.substring(0x0, (temp.length - 0x7) / 0x2) + temp.substring((temp.length - 0x7) / 0x2 + 0x7),
+ parse: 0
+ }
+ } else if (/decrypted/.test(ohtml)) {
+ var phtml = pdfh(ohtml, "body&&script:not([src])&&Html");
+ eval(getCryptoJS());
+ var scrpt = phtml.match(/var.*?\\)\\);/g)[0];
+ var data = [];
+ eval(scrpt.replace(/md5/g, 'CryptoJS').replace('eval', 'data = '));
+ input = {
+ jx: 0,
+ url: data.match(/url:.*?[\\'\\"](.*?)[\\'\\"]/)[1],
+ parse: 0
+ }
+ } else {
+ input
+ }
+ `,
+ limit: 6,
+ 推荐: '.leibox&&li;*;*;*;*',
+ // double:true, // 推荐内容是否双层定位
+ 一级: '.mrb&&li;img&&alt;img&&data-original;.jidi&&Text;a&&href',
+ 二级: {
+ "title": "h1&&Text;.moviedteail_list&&li:eq(0)&&Text",
+ "img": ".dyimg&&img&&src",
+ "desc": ".moviedteail_list&&li:eq(-1)&&Text;;;.moviedteail_list&&li:eq(7)&&Text;.moviedteail_list&&li:eq(5)&&Text",
+ "content": ".yp_context&&p&&Text",
+ "tabs": ".mi_paly_box .ypxingq_t--span",
+ "lists": ".paly_list_btn:eq(#id) a"
+ },
+ 搜索: '.search_list&&li;img&&alt;img&&data-original;.nostag&&Text;a&&href',
+}
\ No newline at end of file
diff --git a/JS/腾讯弹幕.js b/JS/腾讯弹幕.js
new file mode 100644
index 0000000..a3ebd8a
--- /dev/null
+++ b/JS/腾讯弹幕.js
@@ -0,0 +1,842 @@
+var rule = {
+ title: '腾云驾雾[官]',
+ host: 'https://v.%71%71.com',
+ // homeUrl: '/x/bu/pagesheet/list?_all=1&append=1&channel=choice&listpage=1&offset=0&pagesize=21&iarea=-1&sort=18',
+ homeUrl: '/x/bu/pagesheet/list?_all=1&append=1&channel=cartoon&listpage=1&offset=0&pagesize=21&iarea=-1&sort=18',
+ detailUrl: 'https://node.video.%71%71.com/x/api/float_vinfo2?cid=fyid',
+ searchUrl: '/x/search/?q=**&stag=fypage',
+ searchUrl: 'https://pbaccess.video.%71%71.com/trpc.videosearch.smartboxServer.HttpRountRecall/Smartbox?query=**&appID=3172&appKey=lGhFIPeD3HsO9xEp&pageNum=(fypage-1)&pageSize=10',
+ searchable: 2,
+ filterable: 1,
+ multi: 1,
+ // url:'/channel/fyclass?listpage=fypage&channel=fyclass&sort=18&_all=1',
+ url: '/x/bu/pagesheet/list?_all=1&append=1&channel=fyclass&listpage=1&offset=((fypage-1)*21)&pagesize=21&iarea=-1',
+ // filter_url: 'sort={{fl.sort or 18}}&year={{fl.year}}&pay={{fl.pay}}',
+ // filter_url: 'sort={{fl.sort or 75}}&year={{fl.year}}&pay={{fl.pay}}',
+ filter_url: 'sort={{fl.sort or 75}}&iyear={{fl.iyear}}&year={{fl.year}}&itype={{fl.type}}&ifeature={{fl.feature}}&iarea={{fl.area}}&itrailer={{fl.itrailer}}&gender={{fl.sex}}',
+ // filter: 'H4sIAAAAAAAAA+2UzUrDQBCA32XOEZLUJrGvIj0saaDBNisxBkIJCG3Fi4oepIg3EQoieqiH+vM23Zq+hRuaZLZ4ce9z2/lmd2d2+NgR+H0e+gF0DkdwFGTQgRMeJ2BAxIaSwvrqVnxcyzhlg9PttqjED2c/45cSy8DyIDcavr57q/lBw8XTd/E6qbnT8M3zTFyc72RtC/Jumd+2c8wy7KZ4nxSL5Z9uxHS+Gc+r83sWVp1eVttl4Dluk1h93YubWZVwduplAYuxoFguVp+P/y5om/Z+/YxyqfAW8pbKbeS2yi3kO/ebyE2Fy1nXXBm7DDzknspd5K7KHeSOytvI2+XAugYkKWlD2mhrM+RpSB8OmaNvTsriMEgycofc0XbHZ3HCeUTukDv67vTDQY/MIXO0zelxn5M4JI6mOPkvgswSEpgPAAA=',
+ filter: {
+ "choice": [{
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最热",
+ "v": "75"
+ }, {
+ "n": "最新",
+ "v": "83"
+ }, {
+ "n": "好评",
+ "v": "81"
+ }]
+ }, {
+ "key": "iyear",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }]
+ }],
+ "tv": [{
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最热",
+ "v": "75"
+ }, {
+ "n": "最新",
+ "v": "79"
+ }, {
+ "n": "好评",
+ "v": "16"
+ }]
+ }, {
+ "key": "feature",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "爱情",
+ "v": "1"
+ }, {
+ "n": "古装",
+ "v": "2"
+ }, {
+ "n": "悬疑",
+ "v": "3"
+ }, {
+ "n": "都市",
+ "v": "4"
+ }, {
+ "n": "家庭",
+ "v": "5"
+ }, {
+ "n": "喜剧",
+ "v": "6"
+ }, {
+ "n": "传奇",
+ "v": "7"
+ }, {
+ "n": "武侠",
+ "v": "8"
+ }, {
+ "n": "军旅",
+ "v": "9"
+ }, {
+ "n": "权谋",
+ "v": "10"
+ }, {
+ "n": "革命",
+ "v": "11"
+ }, {
+ "n": "现实",
+ "v": "13"
+ }, {
+ "n": "青春",
+ "v": "14"
+ }, {
+ "n": "猎奇",
+ "v": "15"
+ }, {
+ "n": "科幻",
+ "v": "16"
+ }, {
+ "n": "竞技",
+ "v": "17"
+ }, {
+ "n": "玄幻",
+ "v": "18"
+ }]
+ }, {
+ "key": "iyear",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }]
+ }],
+ "movie": [{
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最热",
+ "v": "75"
+ }, {
+ "n": "最新",
+ "v": "83"
+ }, {
+ "n": "好评",
+ "v": "81"
+ }]
+ }, {
+ "key": "type",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "犯罪",
+ "v": "4"
+ }, {
+ "n": "励志",
+ "v": "2"
+ }, {
+ "n": "喜剧",
+ "v": "100004"
+ }, {
+ "n": "热血",
+ "v": "100061"
+ }, {
+ "n": "悬疑",
+ "v": "100009"
+ }, {
+ "n": "爱情",
+ "v": "100005"
+ }, {
+ "n": "科幻",
+ "v": "100012"
+ }, {
+ "n": "恐怖",
+ "v": "100010"
+ }, {
+ "n": "动画",
+ "v": "100015"
+ }, {
+ "n": "战争",
+ "v": "100006"
+ }, {
+ "n": "家庭",
+ "v": "100017"
+ }, {
+ "n": "剧情",
+ "v": "100022"
+ }, {
+ "n": "奇幻",
+ "v": "100016"
+ }, {
+ "n": "武侠",
+ "v": "100011"
+ }, {
+ "n": "历史",
+ "v": "100021"
+ }, {
+ "n": "老片",
+ "v": "100013"
+ }, {
+ "n": "西部",
+ "v": "3"
+ }, {
+ "n": "记录片",
+ "v": "100020"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }]
+ }],
+ "variety": [{
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最热",
+ "v": "75"
+ }, {
+ "n": "最新",
+ "v": "23"
+ }]
+ }, {
+ "key": "iyear",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }]
+ }],
+ "cartoon": [{
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最热",
+ "v": "75"
+ }, {
+ "n": "最新",
+ "v": "83"
+ }, {
+ "n": "好评",
+ "v": "81"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "内地",
+ "v": "1"
+ }, {
+ "n": "日本",
+ "v": "2"
+ }, {
+ "n": "欧美",
+ "v": "3"
+ }, {
+ "n": "其他",
+ "v": "4"
+ }]
+ }, {
+ "key": "type",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "玄幻",
+ "v": "9"
+ }, {
+ "n": "科幻",
+ "v": "4"
+ }, {
+ "n": "武侠",
+ "v": "13"
+ }, {
+ "n": "冒险",
+ "v": "3"
+ }, {
+ "n": "战斗",
+ "v": "5"
+ }, {
+ "n": "搞笑",
+ "v": "1"
+ }, {
+ "n": "恋爱",
+ "v": "7"
+ }, {
+ "n": "魔幻",
+ "v": "6"
+ }, {
+ "n": "竞技",
+ "v": "20"
+ }, {
+ "n": "悬疑",
+ "v": "17"
+ }, {
+ "n": "日常",
+ "v": "15"
+ }, {
+ "n": "校园",
+ "v": "16"
+ }, {
+ "n": "真人",
+ "v": "18"
+ }, {
+ "n": "推理",
+ "v": "14"
+ }, {
+ "n": "历史",
+ "v": "19"
+ }, {
+ "n": "经典",
+ "v": "3"
+ }, {
+ "n": "其他",
+ "v": "12"
+ }]
+ }, {
+ "key": "iyear",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }]
+ }],
+ "child": [{
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最热",
+ "v": "75"
+ }, {
+ "n": "最新",
+ "v": "76"
+ }, {
+ "n": "好评",
+ "v": "20"
+ }]
+ }, {
+ "key": "sex",
+ "name": "性别",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "女孩",
+ "v": "1"
+ }, {
+ "n": "男孩",
+ "v": "2"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "内地",
+ "v": "3"
+ }, {
+ "n": "日本",
+ "v": "2"
+ }, {
+ "n": "其他",
+ "v": "1"
+ }]
+ }, {
+ "key": "iyear",
+ "name": "年龄段",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "0-3岁",
+ "v": "1"
+ }, {
+ "n": "4-6岁",
+ "v": "2"
+ }, {
+ "n": "7-9岁",
+ "v": "3"
+ }, {
+ "n": "10岁以上",
+ "v": "4"
+ }, {
+ "n": "全年龄段",
+ "v": "7"
+ }]
+ }],
+ "doco": [{
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最热",
+ "v": "75"
+ }, {
+ "n": "最新",
+ "v": "74"
+ }]
+ }, {
+ "key": "itrailer",
+ "name": "出品方",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "BBC",
+ "v": "1"
+ }, {
+ "n": "国家地理",
+ "v": "4"
+ }, {
+ "n": "HBO",
+ "v": "3175"
+ }, {
+ "n": "NHK",
+ "v": "2"
+ }, {
+ "n": "历史频道",
+ "v": "7"
+ }, {
+ "n": "ITV",
+ "v": "3530"
+ }, {
+ "n": "探索频道",
+ "v": "3174"
+ }, {
+ "n": "ZDF",
+ "v": "3176"
+ }, {
+ "n": "腾讯自制",
+ "v": "15"
+ }, {
+ "n": "合作机构",
+ "v": "6"
+ }, {
+ "n": "其他",
+ "v": "5"
+ }]
+ }, {
+ "key": "type",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": "-1"
+ }, {
+ "n": "自然",
+ "v": "4"
+ }, {
+ "n": "美食",
+ "v": "10"
+ }, {
+ "n": "社会",
+ "v": "3"
+ }, {
+ "n": "人文",
+ "v": "6"
+ }, {
+ "n": "历史",
+ "v": "1"
+ }, {
+ "n": "军事",
+ "v": "2"
+ }, {
+ "n": "科技",
+ "v": "8"
+ }, {
+ "n": "财经",
+ "v": "14"
+ }, {
+ "n": "探险",
+ "v": "15"
+ }, {
+ "n": "罪案",
+ "v": "7"
+ }, {
+ "n": "竞技",
+ "v": "12"
+ }, {
+ "n": "旅游",
+ "v": "11"
+ }]
+ }]
+ },
+ headers: {
+ 'User-Agent': 'PC_UA'
+ },
+ timeout: 5000,
+ // class_parse:'.site_channel a;a&&Text;a&&href;channel/(.*)',
+ cate_exclude: '会员|游戏|全部',
+ // class_name: '精选&电视剧&电影&综艺&动漫&少儿&纪录片',
+ // class_url: 'choice&tv&movie&variety&cartoon&child&doco',
+ class_name: '精选&电影&电视剧&综艺&动漫&少儿&纪录片',
+ class_url: 'choice&movie&tv&variety&cartoon&child&doco',
+ limit: 20,
+ // play_parse:true,
+ // 手动调用解析请求json的url,此lazy不方便
+ play_parse: true,
+ lazy: $js.toString(() => {
+ try {
+ let api = "" + input.split("?")[0];
+ console.log(api);
+ let response = fetch(api, {
+ method: 'get',
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ }
+ });
+ let bata = JSON.parse(response);
+ if (bata.url.includes("qq")) {
+ input = {
+ parse: 0,
+ url: bata.url,
+ jx: 0,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ } else {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ } catch {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ }),
+ 推荐: '.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
+ 一级: '.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
+ 二级: $js.toString(() => {
+ VOD = {};
+ let d = [];
+ let video_list = [];
+ let video_lists = [];
+ let list = [];
+ let QZOutputJson;
+ let html = fetch(input, fetch_params);
+ let sourceId = /get_playsource/.test(input) ? input.match(/id=(\d*?)&/)[1] : input.split("cid=")[1];
+ let cid = sourceId;
+ let detailUrl = "https://v.%71%71.com/detail/m/" + cid + ".html";
+ log("详情页:" + detailUrl);
+ pdfh = jsp.pdfh;
+ pd = jsp.pd;
+ try {
+ let json = JSON.parse(html);
+ VOD = {
+ vod_url: input,
+ vod_name: json.c.title,
+ type_name: json.typ.join(","),
+ vod_actor: json.nam.join(","),
+ vod_year: json.c.year,
+ vod_content: json.c.description,
+ vod_remarks: json.rec,
+ vod_pic: urljoin2(input, json.c.pic)
+ }
+ } catch (e) {
+ log("解析片名海报等基础信息发生错误:" + e.message)
+ }
+ if (/get_playsource/.test(input)) {
+ eval(html);
+ let indexList = QZOutputJson.PlaylistItem.indexList;
+ indexList.forEach(function(it) {
+ let dataUrl = "https://s.video.qq.com/get_playsource?id=" + sourceId + "&plat=2&type=4&data_type=3&range=" + it + "&video_type=10&plname=qq&otype=json";
+ eval(fetch(dataUrl, fetch_params));
+ let vdata = QZOutputJson.PlaylistItem.videoPlayList;
+ vdata.forEach(function(item) {
+ d.push({
+ title: item.title,
+ pic_url: item.pic,
+ desc: item.episode_number + "\t\t\t播放量:" + item.thirdLine,
+ url: item.playUrl
+ })
+ });
+ video_lists = video_lists.concat(vdata)
+ })
+ } else {
+ let json = JSON.parse(html);
+ video_lists = json.c.video_ids;
+ let url = "https://v.qq.com/x/cover/" + sourceId + ".html";
+ if (video_lists.length === 1) {
+ let vid = video_lists[0];
+ url = "https://v.qq.com/x/cover/" + cid + "/" + vid + ".html";
+ d.push({
+ title: "在线播放",
+ url: url
+ })
+ } else if (video_lists.length > 1) {
+ for (let i = 0; i < video_lists.length; i += 30) {
+ video_list.push(video_lists.slice(i, i + 30))
+ }
+ video_list.forEach(function(it, idex) {
+ let o_url = "https://union.video.qq.com/fcgi-bin/data?otype=json&tid=1804&appid=20001238&appkey=6c03bbe9658448a4&union_platform=1&idlist=" + it.join(",");
+ let o_html = fetch(o_url, fetch_params);
+ eval(o_html);
+ QZOutputJson.results.forEach(function(it1) {
+ it1 = it1.fields;
+ let url = "https://v.qq.com/x/cover/" + cid + "/" + it1.vid + ".html";
+ d.push({
+ title: it1.title,
+ pic_url: it1.pic160x90.replace("/160", ""),
+ desc: it1.video_checkup_time,
+ url: url,
+ type: it1.category_map && it1.category_map.length > 1 ? it1.category_map[1] : ""
+ })
+ })
+ })
+ }
+ }
+ let yg = d.filter(function(it) {
+ return it.type && it.type !== "正片"
+ });
+ let zp = d.filter(function(it) {
+ return !(it.type && it.type !== "正片")
+ });
+ VOD.vod_play_from = yg.length < 1 ? "qq" : "qq$$$qq 预告及花絮";
+ VOD.vod_play_url = yg.length < 1 ? d.map(function(it) {
+ return it.title + "$" + it.url
+ }).join("#") : [zp, yg].map(function(it) {
+ return it.map(function(its) {
+ return its.title + "$" + its.url
+ }).join("#")
+ }).join("$$$");
+ }),
+ 搜索: $js.toString(() => {
+ let d = [];
+ pdfa = jsp.pdfa;
+ pdfh = jsp.pdfh;
+ pd = jsp.pd;
+ let html = request(input);
+ let baseList = pdfa(html, "body&&.result_item_v");
+ log(baseList.length);
+ baseList.forEach(function(it) {
+ let longText = pdfh(it, ".result_title&&a&&Text");
+ let shortText = pdfh(it, ".type&&Text");
+ let fromTag = pdfh(it, ".result_source&&Text");
+ let score = pdfh(it, ".figure_info&&Text");
+ let content = pdfh(it, ".desc_text&&Text");
+ // let url = pdfh(it, ".result_title&&a&&href");
+ let url = pdfh(it, "div&&r-data");
+ // log(longText);
+ // log(shortText);
+ // log('url:'+url);
+ let img = pd(it, ".figure_pic&&src");
+ url = "https://node.video.qq.com/x/api/float_vinfo2?cid=" + url.match(/.*\/(.*?)\.html/)[1];
+ log(shortText + "|" + url);
+ if (fromTag.match(/腾讯/)) {
+ d.push({
+ title: longText.split(shortText)[0],
+ img: img,
+ url: url,
+ content: content,
+ desc: shortText + " " + score
+ })
+ }
+ });
+ setResult(d);
+ }),
+ 搜索: $js.toString(() => {
+ let d = [];
+ let html = request(input);
+ let json = JSON.parse(html);
+ if (json.data.smartboxItemList.length > 0) {
+ let cid = json.data.smartboxItemList[0].basicDoc.id;
+ let url = 'https://node.video.qq.com/x/api/float_vinfo2?cid=' + cid;
+ let html1 = request(url);
+ let data = JSON.parse(html1);
+
+ d.push({
+ title: data.c.title,
+ img: data.c.pic,
+ url: url,
+ content: data.c.description,
+ desc: data.rec
+ });
+ }
+ setResult(d);
+ })
+}
\ No newline at end of file
diff --git a/JS/芒果弹幕.js b/JS/芒果弹幕.js
new file mode 100644
index 0000000..3f517be
--- /dev/null
+++ b/JS/芒果弹幕.js
@@ -0,0 +1,843 @@
+var rule = {
+ title: '百忙无果[官]',
+ host: 'https://pianku.api.%6d%67%74%76.com',
+ homeUrl: '',
+ // searchUrl: 'https://mobileso.bz.%6d%67%74%76.com/pc/search/v1?q=**&pn=fypage&pc=10',
+ // 新版接口搜索变成v2并且加了验证,蛋疼
+ // searchUrl: 'https://mobileso.bz.mgtv.com/pc/search/v2?allowedRC=1&src=mgtv&did=cf03b959-6945-4cb6-bcb3-88762459354d×tamp=2024-06-21T15%3A52%3A55Z&signVersion=1&signNonce=8dae67a1fafc4bda984ec8deb47666ad&q=**&pn=fypage&pc=10&corr=1&_support=10000000&signature=4e27fddcd2a1a66d6c1764ed6b74bab7',
+ // 用手机的吧,搞不定这个
+ searchUrl: 'https://mobileso.bz.%6d%67%74%76.com/msite/search/v2?q=**&pn=fypage&pc=10',
+ detailUrl: 'https://pcweb.api.mgtv.com/episode/list?page=1&size=50&video_id=fyid',
+ searchable: 2,
+ quickSearch: 0,
+ filterable: 1,
+ multi: 1,
+ // 分类链接fypage参数支持1个()表达式
+ // https://www.mgtv.com/lib/3?lastp=list_index&kind=a1&year=all&chargeInfo=a1&sort=c2
+ url: '/rider/list/pcweb/v3?platform=pcweb&channelId=fyclass&pn=fypage&pc=80&hudong=1&_support=10000000&kind=a1&area=a1',
+ filter_url: 'year={{fl.year or "all"}}&sort={{fl.sort or "all"}}&chargeInfo={{fl.chargeInfo or "all"}}',
+ headers: {
+ 'User-Agent': 'PC_UA'
+ },
+ timeout: 5000,
+ class_name: '电视剧&电影&综艺&动漫&纪录片&教育&少儿',
+ class_url: '2&3&1&50&51&115&10',
+ filter: {
+ "1": [{
+ "key": "chargeInfo",
+ "name": "付费类型",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "免费",
+ "v": "b1"
+ }, {
+ "n": "vip",
+ "v": "b2"
+ }, {
+ "n": "VIP用券",
+ "v": "b3"
+ }, {
+ "n": "付费点播",
+ "v": "b4"
+ }]
+ }, {
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最新",
+ "v": "c1"
+ }, {
+ "n": "最热",
+ "v": "c2"
+ }, {
+ "n": "知乎高分",
+ "v": "c4"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }],
+ "2": [{
+ "key": "chargeInfo",
+ "name": "付费类型",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "免费",
+ "v": "b1"
+ }, {
+ "n": "vip",
+ "v": "b2"
+ }, {
+ "n": "VIP用券",
+ "v": "b3"
+ }, {
+ "n": "付费点播",
+ "v": "b4"
+ }]
+ }, {
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最新",
+ "v": "c1"
+ }, {
+ "n": "最热",
+ "v": "c2"
+ }, {
+ "n": "知乎高分",
+ "v": "c4"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }],
+ "3": [{
+ "key": "chargeInfo",
+ "name": "付费类型",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "免费",
+ "v": "b1"
+ }, {
+ "n": "vip",
+ "v": "b2"
+ }, {
+ "n": "VIP用券",
+ "v": "b3"
+ }, {
+ "n": "付费点播",
+ "v": "b4"
+ }]
+ }, {
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最新",
+ "v": "c1"
+ }, {
+ "n": "最热",
+ "v": "c2"
+ }, {
+ "n": "知乎高分",
+ "v": "c4"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }],
+ "50": [{
+ "key": "chargeInfo",
+ "name": "付费类型",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "免费",
+ "v": "b1"
+ }, {
+ "n": "vip",
+ "v": "b2"
+ }, {
+ "n": "VIP用券",
+ "v": "b3"
+ }, {
+ "n": "付费点播",
+ "v": "b4"
+ }]
+ }, {
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最新",
+ "v": "c1"
+ }, {
+ "n": "最热",
+ "v": "c2"
+ }, {
+ "n": "知乎高分",
+ "v": "c4"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }],
+ "51": [{
+ "key": "chargeInfo",
+ "name": "付费类型",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "免费",
+ "v": "b1"
+ }, {
+ "n": "vip",
+ "v": "b2"
+ }, {
+ "n": "VIP用券",
+ "v": "b3"
+ }, {
+ "n": "付费点播",
+ "v": "b4"
+ }]
+ }, {
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最新",
+ "v": "c1"
+ }, {
+ "n": "最热",
+ "v": "c2"
+ }, {
+ "n": "知乎高分",
+ "v": "c4"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }],
+ "115": [{
+ "key": "chargeInfo",
+ "name": "付费类型",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "免费",
+ "v": "b1"
+ }, {
+ "n": "vip",
+ "v": "b2"
+ }, {
+ "n": "VIP用券",
+ "v": "b3"
+ }, {
+ "n": "付费点播",
+ "v": "b4"
+ }]
+ }, {
+ "key": "sort",
+ "name": "排序",
+ "value": [{
+ "n": "最新",
+ "v": "c1"
+ }, {
+ "n": "最热",
+ "v": "c2"
+ }, {
+ "n": "知乎高分",
+ "v": "c4"
+ }]
+ }, {
+ "key": "year",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": "all"
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }]
+ },
+ limit: 20,
+ play_parse: true,
+ lazy: $js.toString(() => {
+ try {
+ let api = "" + input.split("?")[0];
+ console.log(api);
+ let response = fetch(api, {
+ method: 'get',
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ }
+ });
+ let bata = JSON.parse(response);
+ if (bata.url.includes("mgtv")) {
+ input = {
+ parse: 0,
+ url: bata.url,
+ jx: 0,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ } else {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ } catch {
+ input = {
+ parse: 0,
+ url: input.split("?")[0],
+ jx: 1,
+ danmaku: "http://103.45.162.207:25252/hbdm.php?key=7894561232&id=" + input.split("?")[0]
+ };
+ }
+ }),
+ // 手动调用解析请求json的url,此lazy不方便
+ // lazy:'js:print(input);fetch_params.headers["user-agent"]=MOBILE_UA;let html=request(input);let rurl=html.match(/window\\.open\\(\'(.*?)\',/)[1];rurl=urlDeal(rurl);input={parse:1,url:rurl};',
+ // 推荐:'.list_item;img&&alt;img&&src;a&&Text;a&&data-float',
+ 一级: 'json:data.hitDocs;title;img;updateInfo||rightCorner.text;playPartId',
+ // 一级:'json:data.hitDocs;title;img;updateInfo;playPartId',
+ 二级: $js.toString(() => {
+ fetch_params.headers.Referer = "https://www.mgtv.com";
+ fetch_params.headers["User-Agent"] = MOBILE_UA;
+ pdfh = jsp.pdfh;
+ pdfa = jsp.pdfa;
+ pd = jsp.pd;
+ VOD = {};
+ let d = [];
+ let html = request(input);
+ let json = JSON.parse(html);
+ let host = "https://www.mgtv.com";
+ let ourl = json.data.list.length > 0 ? json.data.list[0].url : json.data.series[0].url;
+ if (!/^http/.test(ourl)) {
+ ourl = host + ourl
+ }
+ fetch_params.headers["User-Agent"] = MOBILE_UA;
+ html = request(ourl);
+ if (html.includes("window.location =")) {
+ print("开始获取ourl");
+ ourl = pdfh(html, "meta[http-equiv=refresh]&&content").split("url=")[1];
+ print("获取到ourl:" + ourl);
+ html = request(ourl)
+ }
+ try {
+ let details = pdfh(html, ".m-details&&Html").replace(/h1>/, "h6>").replace(/div/g, "br");
+ print(details);
+ let actor = "",
+ director = "",
+ time = "";
+ if (/播出时间/.test(details)) {
+ actor = pdfh(html, "p:eq(5)&&Text").substr(0, 25);
+ director = pdfh(html, "p:eq(4)&&Text");
+ time = pdfh(html, "p:eq(3)&&Text")
+ } else {
+ actor = pdfh(html, "p:eq(4)&&Text").substr(0, 25);
+ director = pdfh(html, "p:eq(3)&&Text");
+ time = "已完结"
+ }
+ let _img = pd(html, ".video-img&&img&&src");
+ let JJ = pdfh(html, ".desc&&Text").split("简介:")[1];
+ let _desc = time;
+ VOD.vod_name = pdfh(html, ".vt-txt&&Text");
+ VOD.type_name = pdfh(html, "p:eq(0)&&Text").substr(0, 6);
+ VOD.vod_area = pdfh(html, "p:eq(1)&&Text");
+ VOD.vod_actor = actor;
+ VOD.vod_director = director;
+ VOD.vod_remarks = _desc;
+ VOD.vod_pic = _img;
+ VOD.vod_content = JJ;
+ if (!VOD.vod_name) {
+ VOD.vod_name = VOD.type_name;
+ }
+ } catch (e) {
+ log("获取影片信息发生错误:" + e.message)
+ }
+
+ function getRjpg(imgUrl, xs) {
+ xs = xs || 3;
+ let picSize = /jpg_/.test(imgUrl) ? imgUrl.split("jpg_")[1].split(".")[0] : false;
+ let rjpg = false;
+ if (picSize) {
+ let a = parseInt(picSize.split("x")[0]) * xs;
+ let b = parseInt(picSize.split("x")[1]) * xs;
+ rjpg = a + "x" + b + ".jpg"
+ }
+ let img = /jpg_/.test(imgUrl) && rjpg ? imgUrl.replace(imgUrl.split("jpg_")[1], rjpg) : imgUrl;
+ return img
+ }
+
+ if (json.data.total === 1 && json.data.list.length === 1) {
+ let data = json.data.list[0];
+ let url = "https://www.mgtv.com" + data.url;
+ d.push({
+ title: data.t4,
+ desc: data.t2,
+ pic_url: getRjpg(data.img),
+ url: url
+ })
+ } else if (json.data.list.length > 1) {
+ for (let i = 1; i <= json.data.total_page; i++) {
+ if (i > 1) {
+ json = JSON.parse(fetch(input.replace("page=1", "page=" + i), {}))
+ }
+ json.data.list.forEach(function(data) {
+ let url = "https://www.mgtv.com" + data.url;
+ if (data.isIntact == "1") {
+ d.push({
+ title: data.t4,
+ desc: data.t2,
+ pic_url: getRjpg(data.img),
+ url: url
+ })
+ }
+ })
+ }
+ } else {
+ print(input + "暂无片源")
+ }
+ VOD.vod_play_from = "mgtv";
+ VOD.vod_play_url = d.map(function(it) {
+ return it.title + "$" + it.url
+ }).join("#");
+ setResult(d);
+ }),
+
+ 搜索: $js.toString(() => {
+ fetch_params.headers.Referer = "https://www.mgtv.com";
+ fetch_params.headers["User-Agent"] = MOBILE_UA;
+ let d = [];
+ let html = request(input);
+ let json = JSON.parse(html);
+ json.data.contents.forEach(function(data) {
+ if (data.type && data.type == 'media') {
+ let item = data.data[0];
+ let desc = item.desc.join(',');
+ let fyclass = '';
+ if (item.source === "imgo") {
+ let img = item.img ? item.img : '';
+ try {
+ fyclass = item.rpt.match(/idx=(.*?)&/)[1] + '$';
+ } catch (e) {
+ log(e.message);
+ fyclass = '';
+ }
+ log(fyclass);
+ d.push({
+ title: item.title.replace(/|<\/B>/g, ''),
+ img: img,
+ content: '',
+ desc: desc,
+ url: fyclass + item.url.match(/.*\/(.*?)\.html/)[1]
+ })
+ }
+ }
+ });
+ setResult(d);
+ }),
+}
\ No newline at end of file
diff --git a/JS/花子动漫.js b/JS/花子动漫.js
new file mode 100644
index 0000000..f669f44
--- /dev/null
+++ b/JS/花子动漫.js
@@ -0,0 +1,970 @@
+var rule = {
+ title: '花子动漫[漫]',
+ host: 'https://www.huazidm.com',
+ class_name: 'TV动漫&剧场&特摄',
+ class_url: '1&2&3',
+ searchUrl: '/index.php/ajax/suggest?mid=1&wd=**&limit=50',
+ searchUrl: '/vodsearch/**----------fypage---.html',
+ searchable: 2,
+ quickSearch: 0,
+ headers: {
+ 'User-Agent': 'MOBILE_UA',
+ },
+ url: '/index.php/api/vod#type=fyclassfyfilter&page=fypage',
+ filterable: 0,
+ filter_url: '&class={{fl.class}}&year={{fl.year}}&letter={{fl.letter}}&by={{fl.by}}',
+ filter: {
+ "1": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "异世界",
+ "v": "异世界"
+ }, {
+ "n": "百合",
+ "v": "百合"
+ }, {
+ "n": "后宫",
+ "v": "后宫"
+ }, {
+ "n": "热血",
+ "v": "热血"
+ }, {
+ "n": "纯爱",
+ "v": "纯爱"
+ }, {
+ "n": "穿越",
+ "v": "穿越"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "战斗",
+ "v": "战斗"
+ }, {
+ "n": "后宫",
+ "v": "后宫"
+ }, {
+ "n": "搞笑",
+ "v": "搞笑"
+ }, {
+ "n": "日常",
+ "v": "日常"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "治愈",
+ "v": "治愈"
+ }, {
+ "n": "校园",
+ "v": "校园"
+ }, {
+ "n": "恋爱",
+ "v": "恋爱"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "推理",
+ "v": "推理"
+ }, {
+ "n": "机战",
+ "v": "机战"
+ }, {
+ "n": "音乐",
+ "v": "音乐"
+ }, {
+ "n": "萝莉",
+ "v": "萝莉"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "惊悚",
+ "v": "惊悚"
+ }, {
+ "n": "泡面番",
+ "v": "泡面番"
+ }, {
+ "n": "游戏改",
+ "v": "游戏改"
+ }, {
+ "n": "小说改",
+ "v": "小说改"
+ }, {
+ "n": "漫画改",
+ "v": "漫画改"
+ }, {
+ "n": "腐",
+ "v": "腐"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000",
+ "v": "2000"
+ }, {
+ "n": "1999",
+ "v": "1999"
+ }, {
+ "n": "1998",
+ "v": "1998"
+ }, {
+ "n": "1997",
+ "v": "1997"
+ }, {
+ "n": "1996",
+ "v": "1996"
+ }, {
+ "n": "1995",
+ "v": "1995"
+ }, {
+ "n": "1994",
+ "v": "1994"
+ }, {
+ "n": "1993",
+ "v": "1993"
+ }, {
+ "n": "1992",
+ "v": "1992"
+ }, {
+ "n": "1991",
+ "v": "1991"
+ }, {
+ "n": "1990",
+ "v": "1990"
+ }, {
+ "n": "1989",
+ "v": "1989"
+ }, {
+ "n": "1988",
+ "v": "1988"
+ }, {
+ "n": "1987",
+ "v": "1987"
+ }, {
+ "n": "1986",
+ "v": "1986"
+ }, {
+ "n": "1985",
+ "v": "1985"
+ }, {
+ "n": "1984",
+ "v": "1984"
+ }, {
+ "n": "1983",
+ "v": "1983"
+ }, {
+ "n": "1982",
+ "v": "1982"
+ }, {
+ "n": "1981",
+ "v": "1981"
+ }, {
+ "n": "1980",
+ "v": "1980"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }, {
+ "n": "0-9",
+ "v": "0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "时间",
+ "value": [{
+ "n": "按最新",
+ "v": "time"
+ }, {
+ "n": "按最热",
+ "v": "hits"
+ }, {
+ "n": "按评分",
+ "v": "score"
+ }]
+ }],
+ "2": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "异世界",
+ "v": "异世界"
+ }, {
+ "n": "百合",
+ "v": "百合"
+ }, {
+ "n": "热血",
+ "v": "热血"
+ }, {
+ "n": "穿越",
+ "v": "穿越"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "战斗",
+ "v": "战斗"
+ }, {
+ "n": "搞笑",
+ "v": "搞笑"
+ }, {
+ "n": "日常",
+ "v": "日常"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "治愈",
+ "v": "治愈"
+ }, {
+ "n": "校园",
+ "v": "校园"
+ }, {
+ "n": "恋爱",
+ "v": "恋爱"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "机战",
+ "v": "机战"
+ }, {
+ "n": "音乐",
+ "v": "音乐"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000",
+ "v": "2000"
+ }, {
+ "n": "1999",
+ "v": "1999"
+ }, {
+ "n": "1998",
+ "v": "1998"
+ }, {
+ "n": "1997",
+ "v": "1997"
+ }, {
+ "n": "1996",
+ "v": "1996"
+ }, {
+ "n": "1995",
+ "v": "1995"
+ }, {
+ "n": "1994",
+ "v": "1994"
+ }, {
+ "n": "1993",
+ "v": "1993"
+ }, {
+ "n": "1992",
+ "v": "1992"
+ }, {
+ "n": "1991",
+ "v": "1991"
+ }, {
+ "n": "1990",
+ "v": "1990"
+ }, {
+ "n": "1989",
+ "v": "1989"
+ }, {
+ "n": "1988",
+ "v": "1988"
+ }, {
+ "n": "1987",
+ "v": "1987"
+ }, {
+ "n": "1986",
+ "v": "1986"
+ }, {
+ "n": "1985",
+ "v": "1985"
+ }, {
+ "n": "1984",
+ "v": "1984"
+ }, {
+ "n": "1983",
+ "v": "1983"
+ }, {
+ "n": "1982",
+ "v": "1982"
+ }, {
+ "n": "1981",
+ "v": "1981"
+ }, {
+ "n": "1980",
+ "v": "1980"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }, {
+ "n": "0-9",
+ "v": "0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "时间",
+ "value": [{
+ "n": "按最新",
+ "v": "time"
+ }, {
+ "n": "按最热",
+ "v": "hits"
+ }, {
+ "n": "按评分",
+ "v": "score"
+ }]
+ }],
+ "3": [{
+ "key": "class",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "动作",
+ "v": "动作"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }, {
+ "n": "2003",
+ "v": "2003"
+ }, {
+ "n": "2002",
+ "v": "2002"
+ }, {
+ "n": "2001",
+ "v": "2001"
+ }, {
+ "n": "2000",
+ "v": "2000"
+ }, {
+ "n": "1999",
+ "v": "1999"
+ }, {
+ "n": "1998",
+ "v": "1998"
+ }, {
+ "n": "1997",
+ "v": "1997"
+ }, {
+ "n": "1996",
+ "v": "1996"
+ }, {
+ "n": "1995",
+ "v": "1995"
+ }, {
+ "n": "1994",
+ "v": "1994"
+ }, {
+ "n": "1993",
+ "v": "1993"
+ }, {
+ "n": "1992",
+ "v": "1992"
+ }, {
+ "n": "1991",
+ "v": "1991"
+ }, {
+ "n": "1990",
+ "v": "1990"
+ }, {
+ "n": "1989",
+ "v": "1989"
+ }, {
+ "n": "1988",
+ "v": "1988"
+ }, {
+ "n": "1987",
+ "v": "1987"
+ }, {
+ "n": "1986",
+ "v": "1986"
+ }, {
+ "n": "1985",
+ "v": "1985"
+ }, {
+ "n": "1984",
+ "v": "1984"
+ }, {
+ "n": "1983",
+ "v": "1983"
+ }, {
+ "n": "1982",
+ "v": "1982"
+ }, {
+ "n": "1981",
+ "v": "1981"
+ }, {
+ "n": "1980",
+ "v": "1980"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "A"
+ }, {
+ "n": "B",
+ "v": "B"
+ }, {
+ "n": "C",
+ "v": "C"
+ }, {
+ "n": "D",
+ "v": "D"
+ }, {
+ "n": "E",
+ "v": "E"
+ }, {
+ "n": "F",
+ "v": "F"
+ }, {
+ "n": "G",
+ "v": "G"
+ }, {
+ "n": "H",
+ "v": "H"
+ }, {
+ "n": "I",
+ "v": "I"
+ }, {
+ "n": "J",
+ "v": "J"
+ }, {
+ "n": "K",
+ "v": "K"
+ }, {
+ "n": "L",
+ "v": "L"
+ }, {
+ "n": "M",
+ "v": "M"
+ }, {
+ "n": "N",
+ "v": "N"
+ }, {
+ "n": "O",
+ "v": "O"
+ }, {
+ "n": "P",
+ "v": "P"
+ }, {
+ "n": "Q",
+ "v": "Q"
+ }, {
+ "n": "R",
+ "v": "R"
+ }, {
+ "n": "S",
+ "v": "S"
+ }, {
+ "n": "T",
+ "v": "T"
+ }, {
+ "n": "U",
+ "v": "U"
+ }, {
+ "n": "V",
+ "v": "V"
+ }, {
+ "n": "W",
+ "v": "W"
+ }, {
+ "n": "X",
+ "v": "X"
+ }, {
+ "n": "Y",
+ "v": "Y"
+ }, {
+ "n": "Z",
+ "v": "Z"
+ }, {
+ "n": "0-9",
+ "v": "0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "时间",
+ "value": [{
+ "n": "按最新",
+ "v": "time"
+ }, {
+ "n": "按最热",
+ "v": "hits"
+ }, {
+ "n": "按评分",
+ "v": "score"
+ }]
+ }]
+ },
+ filter_def: {},
+ detailUrl: '/voddetail/fyid.html',
+ play_parse: true,
+ sniffer: 1,
+ is_video: 'obj/tos|bd.xhscdn|/ugc/',
+ lazy: $js.toString(() => {
+ input = {
+ parse: 1,
+ url: input,
+ //js:'try{let urls=Array.from(document.querySelectorAll("iframe")).filter(x=>x.src.includes("?url="));if(urls){location.href=urls[0].src}}catch{}document.querySelector("button").click()',
+ js: 'try{location.href=document.querySelector("#playleft iframe").src}catch{}document.querySelector("button.swal-button--confirm").click()',
+ parse_extra: '&is_pc=1&custom_regex=' + rule.is_video,
+ }
+ }),
+ limit: 6,
+ 推荐: '.list-vod.flex .public-list-box;a&&title;.lazy&&data-original;.public-list-prb&&Text;a&&href',
+ 一级: $js.toString(() => {
+ let body = input.split("#")[1];
+ let t = Math.round(new Date / 1e3).toString();
+ let key = md5("DS" + t + "DCC147D11943AF75");
+ let url = input.split("#")[0];
+ body = body + "&time=" + t + "&key=" + key;
+ print(body);
+ fetch_params.body = body;
+ let html = post(url, fetch_params);
+ let data = JSON.parse(html);
+ VODS = data.list.map(function(it) {
+ it.vod_pic = urljoin2(input.split("/i")[0], it.vod_pic);
+ return it
+ });
+ }),
+ 二级: {
+ title: '.slide-info-title&&Text;.slide-info:eq(3)--strong&&Text',
+ img: '.detail-pic&&data-original',
+ desc: '.fraction&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(2)--strong&&Text;.slide-info:eq(1)--strong&&Text',
+ content: '#height_limit&&Text',
+ tabs: '.anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a',
+ tab_text: '.swiper-slide&&Text',
+ lists: '.anthology-list-box:eq(#id) li',
+ },
+ 搜索: 'json:list;name;pic;;id',
+ 搜索: $js.toString(() => {
+ let html = fetch(input);
+ let list = pdfa(html, ".public-list-box");
+ VODS = list.map(x => {
+ return {
+ vod_name: pdfh(x, ".thumb-txt&&Text"),
+ vod_pic: pdfh(x, ".lazy&&data-src"),
+ vod_remarks: pdfh(x, ".public-list-prb&&Text"),
+ vod_content: pdfh(x, ".thumb-blurb&&Text"),
+ vod_id: pdfh(x, "a&&href")
+ }
+ });
+ }),
+ 图片替换: '&=>&'
+}
\ No newline at end of file
diff --git a/JS/茶杯狐.js b/JS/茶杯狐.js
new file mode 100644
index 0000000..17c76eb
--- /dev/null
+++ b/JS/茶杯狐.js
@@ -0,0 +1,1512 @@
+/**
+ * 原创诺临风
+ * 原创时间:2024-05-07
+ * 转载请不要删除此版权声明
+ */
+
+
+var rule = {
+ title: "新茶杯狐",
+ host: "https://www.cbhfox.com/",
+ url: "/chbys/fyfilter.html",
+ searchable: 2,
+ quickSearch: 0,
+ filterable: 1,
+ detailUrl: "/cbhtv/fyid.html",
+ homeUrl: "/label/hot.html",
+ filter_url: "{{fl.cateId}}{{fl.area}}{{fl.by}}{{fl.class}}{{fl.lang}}{{fl.letter}}/page/fypage{{fl.year}}",
+ filter: {
+ "dianying": [{
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "喜剧",
+ "v": "/class/喜剧"
+ }, {
+ "n": "爱情",
+ "v": "/class/爱情"
+ }, {
+ "n": "恐怖",
+ "v": "/class/恐怖"
+ }, {
+ "n": "动作",
+ "v": "/class/动作"
+ }, {
+ "n": "科幻",
+ "v": "/class/科幻"
+ }, {
+ "n": "剧情",
+ "v": "/class/剧情"
+ }, {
+ "n": "战争",
+ "v": "/class/战争"
+ }, {
+ "n": "警匪",
+ "v": "/class/警匪"
+ }, {
+ "n": "犯罪",
+ "v": "/class/犯罪"
+ }, {
+ "n": "动画",
+ "v": "/class/动画"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "武侠",
+ "v": "/class/武侠"
+ }, {
+ "n": "冒险",
+ "v": "/class/冒险"
+ }, {
+ "n": "枪战",
+ "v": "/class/枪战"
+ }, {
+ "n": "恐怖",
+ "v": "/class/恐怖"
+ }, {
+ "n": "悬疑",
+ "v": "/class/悬疑"
+ }, {
+ "n": "惊悚",
+ "v": "/class/惊悚"
+ }, {
+ "n": "经典",
+ "v": "/class/经典"
+ }, {
+ "n": "青春",
+ "v": "/class/青春"
+ }, {
+ "n": "文艺",
+ "v": "/class/文艺"
+ }, {
+ "n": "微电影",
+ "v": "/class/微电影"
+ }, {
+ "n": "古装",
+ "v": "/class/古装"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "运动",
+ "v": "/class/运动"
+ }, {
+ "n": "农村",
+ "v": "/class/农村"
+ }, {
+ "n": "儿童",
+ "v": "/class/儿童"
+ }, {
+ "n": "网络电影",
+ "v": "/class/网络电影"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "大陆",
+ "v": "/area/中国大陆"
+ }, {
+ "n": "香港",
+ "v": "/area/中国香港"
+ }, {
+ "n": "台湾",
+ "v": "/area/中国台湾"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国"
+ }, {
+ "n": "英国",
+ "v": "/area/英国"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "德国",
+ "v": "/area/德国"
+ }, {
+ "n": "泰国",
+ "v": "/area/泰国"
+ }, {
+ "n": "印度",
+ "v": "/area/印度"
+ }, {
+ "n": "法国",
+ "v": "/area/法国"
+ }, {
+ "n": "意大利",
+ "v": "/area/意大利"
+ }, {
+ "n": "西班牙",
+ "v": "/area/西班牙"
+ }, {
+ "n": "加拿大",
+ "v": "/area/加拿大"
+ }, {
+ "n": "其他",
+ "v": "/area/其他"
+ }]
+ }, {
+ "key": "lang",
+ "name": "语言",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国语",
+ "v": "/lang/国语"
+ }, {
+ "n": "英语",
+ "v": "/lang/英语"
+ }, {
+ "n": "粤语",
+ "v": "/lang/粤语"
+ }, {
+ "n": "闽南语",
+ "v": "/lang/闽南语"
+ }, {
+ "n": "韩语",
+ "v": "/lang/韩语"
+ }, {
+ "n": "日语",
+ "v": "/lang/日语"
+ }, {
+ "n": "法语",
+ "v": "/lang/法语"
+ }, {
+ "n": "德语",
+ "v": "/lang/德语"
+ }, {
+ "n": "其它",
+ "v": "/lang/其它"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "/letter/A"
+ }, {
+ "n": "B",
+ "v": "/letter/B"
+ }, {
+ "n": "C",
+ "v": "/letter/C"
+ }, {
+ "n": "D",
+ "v": "/letter/D"
+ }, {
+ "n": "E",
+ "v": "/letter/E"
+ }, {
+ "n": "F",
+ "v": "/letter/F"
+ }, {
+ "n": "G",
+ "v": "/letter/G"
+ }, {
+ "n": "H",
+ "v": "/letter/H"
+ }, {
+ "n": "I",
+ "v": "/letter/I"
+ }, {
+ "n": "J",
+ "v": "/letter/J"
+ }, {
+ "n": "K",
+ "v": "/letter/K"
+ }, {
+ "n": "L",
+ "v": "/letter/L"
+ }, {
+ "n": "M",
+ "v": "/letter/M"
+ }, {
+ "n": "N",
+ "v": "/letter/N"
+ }, {
+ "n": "O",
+ "v": "/letter/O"
+ }, {
+ "n": "P",
+ "v": "/letter/P"
+ }, {
+ "n": "Q",
+ "v": "/letter/Q"
+ }, {
+ "n": "R",
+ "v": "/letter/R"
+ }, {
+ "n": "S",
+ "v": "/letter/S"
+ }, {
+ "n": "T",
+ "v": "/letter/T"
+ }, {
+ "n": "U",
+ "v": "/letter/U"
+ }, {
+ "n": "V",
+ "v": "/letter/V"
+ }, {
+ "n": "W",
+ "v": "/letter/W"
+ }, {
+ "n": "X",
+ "v": "/letter/X"
+ }, {
+ "n": "Y",
+ "v": "/letter/Y"
+ }, {
+ "n": "Z",
+ "v": "/letter/Z"
+ }, {
+ "n": "0-9",
+ "v": "/letter/0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "dianshiju": [{
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "古装",
+ "v": "/class/古装"
+ }, {
+ "n": "战争",
+ "v": "/class/战争"
+ }, {
+ "n": "青春偶像",
+ "v": "/class/青春偶像"
+ }, {
+ "n": "喜剧",
+ "v": "/class/喜剧"
+ }, {
+ "n": "家庭",
+ "v": "/class/家庭"
+ }, {
+ "n": "犯罪",
+ "v": "/class/犯罪"
+ }, {
+ "n": "动作",
+ "v": "/class/动作"
+ }, {
+ "n": "奇幻",
+ "v": "/class/奇幻"
+ }, {
+ "n": "剧情",
+ "v": "/class/剧情"
+ }, {
+ "n": "历史",
+ "v": "/class/历史"
+ }, {
+ "n": "经典",
+ "v": "/class/经典"
+ }, {
+ "n": "乡村",
+ "v": "/class/乡村"
+ }, {
+ "n": "情景",
+ "v": "/class/情景"
+ }, {
+ "n": "商战",
+ "v": "/class/商战"
+ }, {
+ "n": "网剧",
+ "v": "/class/网剧"
+ }, {
+ "n": "其他",
+ "v": "/class/其他"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "/area/内地"
+ }, {
+ "n": "韩国",
+ "v": "/area/韩国"
+ }, {
+ "n": "香港",
+ "v": "/area/香港"
+ }, {
+ "n": "台湾",
+ "v": "/area/台湾"
+ }, {
+ "n": "日本",
+ "v": "/area/日本"
+ }, {
+ "n": "美国",
+ "v": "/area/美国"
+ }, {
+ "n": "泰国",
+ "v": "/area/泰国"
+ }, {
+ "n": "英国",
+ "v": "/area/英国"
+ }, {
+ "n": "新加坡",
+ "v": "/area/新加坡"
+ }, {
+ "n": "其他",
+ "v": "/area/其他"
+ }]
+ }, {
+ "key": "lang",
+ "name": "语言",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国语",
+ "v": "/lang/国语"
+ }, {
+ "n": "英语",
+ "v": "/lang/英语"
+ }, {
+ "n": "粤语",
+ "v": "/lang/粤语"
+ }, {
+ "n": "闽南语",
+ "v": "/lang/闽南语"
+ }, {
+ "n": "韩语",
+ "v": "/lang/韩语"
+ }, {
+ "n": "日语",
+ "v": "/lang/日语"
+ }, {
+ "n": "其它",
+ "v": "/lang/其它"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "/letter/A"
+ }, {
+ "n": "B",
+ "v": "/letter/B"
+ }, {
+ "n": "C",
+ "v": "/letter/C"
+ }, {
+ "n": "D",
+ "v": "/letter/D"
+ }, {
+ "n": "E",
+ "v": "/letter/E"
+ }, {
+ "n": "F",
+ "v": "/letter/F"
+ }, {
+ "n": "G",
+ "v": "/letter/G"
+ }, {
+ "n": "H",
+ "v": "/letter/H"
+ }, {
+ "n": "I",
+ "v": "/letter/I"
+ }, {
+ "n": "J",
+ "v": "/letter/J"
+ }, {
+ "n": "K",
+ "v": "/letter/K"
+ }, {
+ "n": "L",
+ "v": "/letter/L"
+ }, {
+ "n": "M",
+ "v": "/letter/M"
+ }, {
+ "n": "N",
+ "v": "/letter/N"
+ }, {
+ "n": "O",
+ "v": "/letter/O"
+ }, {
+ "n": "P",
+ "v": "/letter/P"
+ }, {
+ "n": "Q",
+ "v": "/letter/Q"
+ }, {
+ "n": "R",
+ "v": "/letter/R"
+ }, {
+ "n": "S",
+ "v": "/letter/S"
+ }, {
+ "n": "T",
+ "v": "/letter/T"
+ }, {
+ "n": "U",
+ "v": "/letter/U"
+ }, {
+ "n": "V",
+ "v": "/letter/V"
+ }, {
+ "n": "W",
+ "v": "/letter/W"
+ }, {
+ "n": "X",
+ "v": "/letter/X"
+ }, {
+ "n": "Y",
+ "v": "/letter/Y"
+ }, {
+ "n": "Z",
+ "v": "/letter/Z"
+ }, {
+ "n": "0-9",
+ "v": "/letter/0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "zongyi": [{
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": "3"
+ }, {
+ "n": "选秀",
+ "v": "/class/选秀"
+ }, {
+ "n": "情感",
+ "v": "/class/情感"
+ }, {
+ "n": "访谈",
+ "v": "/class/访谈"
+ }, {
+ "n": "播报",
+ "v": "/class/播报"
+ }, {
+ "n": "旅游",
+ "v": "/class/旅游"
+ }, {
+ "n": "音乐",
+ "v": "/class/音乐"
+ }, {
+ "n": "美食",
+ "v": "/class/美食"
+ }, {
+ "n": "纪实",
+ "v": "/class/纪实"
+ }, {
+ "n": "曲艺",
+ "v": "/class/曲艺"
+ }, {
+ "n": "生活",
+ "v": "/class/生活"
+ }, {
+ "n": "游戏互动",
+ "v": "/class/游戏互动"
+ }, {
+ "n": "财经",
+ "v": "/class/财经"
+ }, {
+ "n": "求职",
+ "v": "/class/求职"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "/area/内地"
+ }, {
+ "n": "港台",
+ "v": "/area/港台"
+ }, {
+ "n": "日韩",
+ "v": "/area/日韩"
+ }, {
+ "n": "欧美",
+ "v": "/area/欧美"
+ }]
+ }, {
+ "key": "lang",
+ "name": "语言",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国语",
+ "v": "/lang/国语"
+ }, {
+ "n": "英语",
+ "v": "/lang/英语"
+ }, {
+ "n": "粤语",
+ "v": "/lang/粤语"
+ }, {
+ "n": "闽南语",
+ "v": "/lang/闽南语"
+ }, {
+ "n": "韩语",
+ "v": "/lang/韩语"
+ }, {
+ "n": "日语",
+ "v": "/lang/日语"
+ }, {
+ "n": "其它",
+ "v": "/lang/其它"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "/letter/A"
+ }, {
+ "n": "B",
+ "v": "/letter/B"
+ }, {
+ "n": "C",
+ "v": "/letter/C"
+ }, {
+ "n": "D",
+ "v": "/letter/D"
+ }, {
+ "n": "E",
+ "v": "/letter/E"
+ }, {
+ "n": "F",
+ "v": "/letter/F"
+ }, {
+ "n": "G",
+ "v": "/letter/G"
+ }, {
+ "n": "H",
+ "v": "/letter/H"
+ }, {
+ "n": "I",
+ "v": "/letter/I"
+ }, {
+ "n": "J",
+ "v": "/letter/J"
+ }, {
+ "n": "K",
+ "v": "/letter/K"
+ }, {
+ "n": "L",
+ "v": "/letter/L"
+ }, {
+ "n": "M",
+ "v": "/letter/M"
+ }, {
+ "n": "N",
+ "v": "/letter/N"
+ }, {
+ "n": "O",
+ "v": "/letter/O"
+ }, {
+ "n": "P",
+ "v": "/letter/P"
+ }, {
+ "n": "Q",
+ "v": "/letter/Q"
+ }, {
+ "n": "R",
+ "v": "/letter/R"
+ }, {
+ "n": "S",
+ "v": "/letter/S"
+ }, {
+ "n": "T",
+ "v": "/letter/T"
+ }, {
+ "n": "U",
+ "v": "/letter/U"
+ }, {
+ "n": "V",
+ "v": "/letter/V"
+ }, {
+ "n": "W",
+ "v": "/letter/W"
+ }, {
+ "n": "X",
+ "v": "/letter/X"
+ }, {
+ "n": "Y",
+ "v": "/letter/Y"
+ }, {
+ "n": "Z",
+ "v": "/letter/Z"
+ }, {
+ "n": "0-9",
+ "v": "/letter/0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "dongmna": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "/area/内地"
+ }, {
+ "n": "港台",
+ "v": "/area/港台"
+ }, {
+ "n": "日韩",
+ "v": "/area/日韩"
+ }, {
+ "n": "欧美",
+ "v": "/area/欧美"
+ }]
+ }, {
+ "key": "lang",
+ "name": "语言",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国语",
+ "v": "/lang/国语"
+ }, {
+ "n": "英语",
+ "v": "/lang/英语"
+ }, {
+ "n": "粤语",
+ "v": "/lang/粤语"
+ }, {
+ "n": "闽南语",
+ "v": "/lang/闽南语"
+ }, {
+ "n": "韩语",
+ "v": "/lang/韩语"
+ }, {
+ "n": "日语",
+ "v": "/lang/日语"
+ }, {
+ "n": "其它",
+ "v": "/lang/其它"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "/letter/A"
+ }, {
+ "n": "B",
+ "v": "/letter/B"
+ }, {
+ "n": "C",
+ "v": "/letter/C"
+ }, {
+ "n": "D",
+ "v": "/letter/D"
+ }, {
+ "n": "E",
+ "v": "/letter/E"
+ }, {
+ "n": "F",
+ "v": "/letter/F"
+ }, {
+ "n": "G",
+ "v": "/letter/G"
+ }, {
+ "n": "H",
+ "v": "/letter/H"
+ }, {
+ "n": "I",
+ "v": "/letter/I"
+ }, {
+ "n": "J",
+ "v": "/letter/J"
+ }, {
+ "n": "K",
+ "v": "/letter/K"
+ }, {
+ "n": "L",
+ "v": "/letter/L"
+ }, {
+ "n": "M",
+ "v": "/letter/M"
+ }, {
+ "n": "N",
+ "v": "/letter/N"
+ }, {
+ "n": "O",
+ "v": "/letter/O"
+ }, {
+ "n": "P",
+ "v": "/letter/P"
+ }, {
+ "n": "Q",
+ "v": "/letter/Q"
+ }, {
+ "n": "R",
+ "v": "/letter/R"
+ }, {
+ "n": "S",
+ "v": "/letter/S"
+ }, {
+ "n": "T",
+ "v": "/letter/T"
+ }, {
+ "n": "U",
+ "v": "/letter/U"
+ }, {
+ "n": "V",
+ "v": "/letter/V"
+ }, {
+ "n": "W",
+ "v": "/letter/W"
+ }, {
+ "n": "X",
+ "v": "/letter/X"
+ }, {
+ "n": "Y",
+ "v": "/letter/Y"
+ }, {
+ "n": "Z",
+ "v": "/letter/Z"
+ }, {
+ "n": "0-9",
+ "v": "/letter/0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }],
+ "jilupian": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "/area/内地"
+ }, {
+ "n": "港台",
+ "v": "/area/港台"
+ }, {
+ "n": "日韩",
+ "v": "/area/日韩"
+ }, {
+ "n": "欧美",
+ "v": "/area/欧美"
+ }]
+ }, {
+ "key": "lang",
+ "name": "语言",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国语",
+ "v": "/lang/国语"
+ }, {
+ "n": "英语",
+ "v": "/lang/英语"
+ }, {
+ "n": "粤语",
+ "v": "/lang/粤语"
+ }, {
+ "n": "闽南语",
+ "v": "/lang/闽南语"
+ }, {
+ "n": "韩语",
+ "v": "/lang/韩语"
+ }, {
+ "n": "日语",
+ "v": "/lang/日语"
+ }, {
+ "n": "其它",
+ "v": "/lang/其它"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "2014",
+ "v": "/year/2014"
+ }, {
+ "n": "2013",
+ "v": "/year/2013"
+ }, {
+ "n": "2012",
+ "v": "/year/2012"
+ }, {
+ "n": "2011",
+ "v": "/year/2011"
+ }, {
+ "n": "2010",
+ "v": "/year/2010"
+ }, {
+ "n": "2009",
+ "v": "/year/2009"
+ }, {
+ "n": "2008",
+ "v": "/year/2008"
+ }, {
+ "n": "2006",
+ "v": "/year/2006"
+ }, {
+ "n": "2005",
+ "v": "/year/2005"
+ }, {
+ "n": "2004",
+ "v": "/year/2004"
+ }]
+ }, {
+ "key": "letter",
+ "name": "字母",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "A",
+ "v": "/letter/A"
+ }, {
+ "n": "B",
+ "v": "/letter/B"
+ }, {
+ "n": "C",
+ "v": "/letter/C"
+ }, {
+ "n": "D",
+ "v": "/letter/D"
+ }, {
+ "n": "E",
+ "v": "/letter/E"
+ }, {
+ "n": "F",
+ "v": "/letter/F"
+ }, {
+ "n": "G",
+ "v": "/letter/G"
+ }, {
+ "n": "H",
+ "v": "/letter/H"
+ }, {
+ "n": "I",
+ "v": "/letter/I"
+ }, {
+ "n": "J",
+ "v": "/letter/J"
+ }, {
+ "n": "K",
+ "v": "/letter/K"
+ }, {
+ "n": "L",
+ "v": "/letter/L"
+ }, {
+ "n": "M",
+ "v": "/letter/M"
+ }, {
+ "n": "N",
+ "v": "/letter/N"
+ }, {
+ "n": "O",
+ "v": "/letter/O"
+ }, {
+ "n": "P",
+ "v": "/letter/P"
+ }, {
+ "n": "Q",
+ "v": "/letter/Q"
+ }, {
+ "n": "R",
+ "v": "/letter/R"
+ }, {
+ "n": "S",
+ "v": "/letter/S"
+ }, {
+ "n": "T",
+ "v": "/letter/T"
+ }, {
+ "n": "U",
+ "v": "/letter/U"
+ }, {
+ "n": "V",
+ "v": "/letter/V"
+ }, {
+ "n": "W",
+ "v": "/letter/W"
+ }, {
+ "n": "X",
+ "v": "/letter/X"
+ }, {
+ "n": "Y",
+ "v": "/letter/Y"
+ }, {
+ "n": "Z",
+ "v": "/letter/Z"
+ }, {
+ "n": "0-9",
+ "v": "/letter/0-9"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "/by/time"
+ }, {
+ "n": "人气",
+ "v": "/by/hits"
+ }, {
+ "n": "评分",
+ "v": "/by/score"
+ }]
+ }]
+ },
+ filter_def: {
+ dianying: {
+ cateId: "dianying"
+ },
+ dianshiju: {
+ cateId: "dianshiju"
+ },
+ zongyi: {
+ cateId: "zongyi"
+ },
+ dongmna: {
+ cateId: "dongmna"
+ },
+ jilupian: {
+ cateId: "jilupian"
+ },
+ },
+ class_name: "电影&剧集&动漫&综艺&记录片",
+ class_url: "dianying&dianshiju&dongmna&zongyi&jilupian",
+ headers: {
+ "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/"
+ },
+ play_parse: true,
+ lazy: `js:
+ var html = JSON.parse(request(input).match(/r player_.*?=(.*?))[1]);
+ var url = html.url;
+ var from = html.from;
+ if (html.encrypt == '1') {
+ url = decodeURI(url)
+ } else if (html.encrypt == '2') {
+ url = decodeURI(base64Decode(url))
+ }
+ if (/\.m3u8|\.mp4/.test(url)) {
+ input = url
+ } else {
+ var currentDate = new Date();
+ var year = currentDate.getFullYear();
+ var month = String(currentDate.getMonth() + 1).padStart(2, '0');
+ var day = String(currentDate.getDate()).padStart(2, '0');
+ const urlTime = year + month + day;
+ var MacPlayerConfig = {};
+ eval(fetch(HOST + '/static/js/playerconfig.js?t=' + urlTime).replace('var Mac', 'Mac'));
+ var parseUrl = MacPlayerConfig.player_list[from].parse;
+ if (parseUrl && parseUrl != "") {
+ let $playUrl = "";
+ if(parseUrl.startsWith("http")){
+ $playUrl = parseUrl;
+ }else{
+ $playUrl = HOST + parseUrl;
+ }
+ input = {
+ url: url,
+ playUrl: $playUrl,
+ parse: 1,
+ header: JSON.stringify({
+ 'user-agent': 'Mozilla/5.0',
+ 'Origin': input
+ })
+ }
+ } else {
+ input
+ }
+ }
+ `,
+ 推荐: `js:
+ let d = [];
+ pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
+ let html = request(input);
+ let items = pdfa(html, "div.module-items div.module-card-item");
+ function shuffleArray(array) {
+ for (let i = array.length - 1; i > 0; i--) {
+ const j = Math.floor(Math.random() * (i + 1));
+ [array[i], array[j]] = [array[j], array[i]];
+ }
+ return array;
+ }
+ const shuffledArray = shuffleArray(items);
+ shuffledArray.forEach(it => {
+ d.push({
+ url:pdfh(it,"div.module-card-item-title&&a&&href"),
+ title:pdfh(it,"div.module-card-item-title&&a&&Text"),
+ img:pdfh(it,"div.module-item-pic&&img&&data-original"),
+ desc:pdfh(it,"div.module-card-item-class&&Text") + "/" + pdfh(it,"div.module-item-note&&Text")
+ })
+ });
+ setResult(d);
+ `,
+ 一级: `js:
+ var d = [];
+ pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
+ var html = request(input);
+ let items = pdfa(html, "a.module-item");
+ items.forEach(it => {
+ d.push({
+ url:pdfh(it,"a&&href"),
+ title:pdfh(it,"a&&title"),
+ img:pdfh(it,"div.module-item-pic&&img&&data-original"),
+ desc:pdfh(it,"div.module-item-note&&Text")
+ })
+ });
+ setResult(d)
+ `,
+ 二级: $js.toString(() => {
+ VOD = {};
+ let html = request(input);
+ VOD.vod_name = pdfh(html, "h1&&Text");
+ VOD.vod_pic = pd(html, ".module-item-pic&&img&&data-original");
+ VOD.vod_year = pdfh(html, ".module-info-tag-link:eq(0)&&Text");
+ VOD.vod_area = pdfh(html, ".module-info-tag-link:eq(1)&&Text");
+ VOD.type_name = pdfh(html, ".module-info-tag-link:eq(2)&&Text");
+ VOD.vod_actor = pdfh(html, ".module-info-item-content:eq(1)&&Text");
+ VOD.vod_director = pdfh(html, ".module-info-item-content:eq(0)&&Text");
+ VOD.vod_remarks = "不信广告就你赢了";
+ VOD.vod_content = pdfh(html, ".module-info-introduction-content&&Text");
+ if (typeof play_url === "undefined") {
+ var play_url = ""
+ }
+ let playFrom = [];
+ let playUrl = [];
+ let tabs = pdfa(html, "div.module-tab-item");
+ tabs.forEach((it, index) => {
+ playFrom.push('諾临風-' + pdfh(it, 'span&&Text') + "[" + pdfh(it, 'small&&Text') + "]");
+ let playTag = "div.module-play-list:eq(" + index + ") a";
+ let tags = pdfa(html, playTag);
+ let mapUrl = tags.map((tag) => {
+ let title = pdfh(tag, "a&&Text").trim();
+ let purl = pd(tag, "a&&href");
+ return title + "$" + play_url + urlencode(purl);
+ });
+ playUrl.push(mapUrl.join("#"))
+ });
+ VOD.vod_play_from = playFrom.join("$$$");
+ VOD.vod_play_url = playUrl.join("$$$");
+ }),
+ double: false,
+ searchUrl: "/index.php/vod/search/wd/**.html",
+ 搜索: `js:
+ var d = [];
+ pdfh = jsp.pdfh;pdfa = jsp.pdfa;pd = jsp.pd;
+ var html = request(input);
+ let list = pdfa(html, "div.module-item");
+ list.forEach(it => {
+ d.push({
+ title: pdfh(it, "div.module-card-item-title&&Text"),
+ desc: pdfh(it, "div.module-item-note&&Text"),
+ pic_url: pdfh(it, "div.module-item-pic&&img&&data-original"),
+ url: pdfh(it, "div.module-card-item-title&&a&&href")
+ })
+ });
+ setResult(d)
+ `
+};
\ No newline at end of file
diff --git a/JS/路漫漫.js b/JS/路漫漫.js
new file mode 100644
index 0000000..d781efa
--- /dev/null
+++ b/JS/路漫漫.js
@@ -0,0 +1,549 @@
+var rule = {
+ title: "路漫漫",
+ host: "http://www.lmm36.com",
+ url: "/vod/show/id/fyclassfyfilter.html",
+ searchUrl: '/vod/search/page/fypage/wd/**.html',
+ searchable: 2,
+ quickSearch: 0,
+ filterable: 1,
+ filter: {
+ "3": [{
+ "key": "年代",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "更早",
+ "v": "/year/2014-1980"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近更新",
+ "v": "/by/time"
+ }, {
+ "n": "最高人气",
+ "v": "/by/hits"
+ }, {
+ "n": "最高评分",
+ "v": "/by/score"
+ }, {
+ "n": "最多点赞",
+ "v": "/by/up"
+ }]
+ }],
+ "4": [{
+ "key": "年代",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "更早",
+ "v": "/year/2014-1980"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近更新",
+ "v": "/by/time"
+ }, {
+ "n": "最高人气",
+ "v": "/by/hits"
+ }, {
+ "n": "最高评分",
+ "v": "/by/score"
+ }, {
+ "n": "最多点赞",
+ "v": "/by/up"
+ }]
+ }],
+ "5": [{
+ "key": "年代",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "更早",
+ "v": "/year/2014-1980"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近更新",
+ "v": "/by/time"
+ }, {
+ "n": "最高人气",
+ "v": "/by/hits"
+ }, {
+ "n": "最高评分",
+ "v": "/by/score"
+ }, {
+ "n": "最多点赞",
+ "v": "/by/up"
+ }]
+ }],
+ "6": [{
+ "key": "年代",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "更早",
+ "v": "/year/2014-1980"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近更新",
+ "v": "/by/time"
+ }, {
+ "n": "最高人气",
+ "v": "/by/hits"
+ }, {
+ "n": "最高评分",
+ "v": "/by/score"
+ }, {
+ "n": "最多点赞",
+ "v": "/by/up"
+ }]
+ }],
+ "7": [{
+ "key": "年代",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "更早",
+ "v": "/year/2014-1980"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近更新",
+ "v": "/by/time"
+ }, {
+ "n": "最高人气",
+ "v": "/by/hits"
+ }, {
+ "n": "最高评分",
+ "v": "/by/score"
+ }, {
+ "n": "最多点赞",
+ "v": "/by/up"
+ }]
+ }],
+ "8": [{
+ "key": "年代",
+ "name": "年代",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "/year/2025"
+ }, {
+ "n": "2024",
+ "v": "/year/2024"
+ }, {
+ "n": "2023",
+ "v": "/year/2023"
+ }, {
+ "n": "2022",
+ "v": "/year/2022"
+ }, {
+ "n": "2021",
+ "v": "/year/2021"
+ }, {
+ "n": "2020",
+ "v": "/year/2020"
+ }, {
+ "n": "2019",
+ "v": "/year/2019"
+ }, {
+ "n": "2018",
+ "v": "/year/2018"
+ }, {
+ "n": "2017",
+ "v": "/year/2017"
+ }, {
+ "n": "2016",
+ "v": "/year/2016"
+ }, {
+ "n": "2015",
+ "v": "/year/2015"
+ }, {
+ "n": "更早",
+ "v": "/year/2014-1980"
+ }]
+ }, {
+ "key": "排序",
+ "name": "排序",
+ "value": [{
+ "n": "最近更新",
+ "v": "/by/time"
+ }, {
+ "n": "最高人气",
+ "v": "/by/hits"
+ }, {
+ "n": "最高评分",
+ "v": "/by/score"
+ }, {
+ "n": "最多点赞",
+ "v": "/by/up"
+ }]
+ }]
+ },
+ filter_url: "{{fl.排序}}{{fl.年代}}/page/fypage",
+ filter_def: "",
+ headers: {
+ "User-Agent": "MOBILE_UA"
+ },
+ timeout: 5000,
+ class_name: "日本动漫&国产动漫&欧美动漫&日本动画电影&国产动画电影&欧美动画电影",
+ class_url: "6&7&8&3&4&5",
+ class_parse: "",
+ cate_exclude: "",
+ play_parse: true,
+ lazy: $js.toString(() => {
+ function getDAesString(token) {
+ eval(getCryptoJS());
+ var key = CryptoJS.enc.Utf8.parse("ejjooopppqqqrwww");
+
+ var iv = CryptoJS.enc.Utf8.parse("1348987635684651");
+
+ var token = CryptoJS.AES.decrypt(token, key, {
+ iv: iv,
+ mode: CryptoJS.mode.CBC,
+ padding: CryptoJS.pad.Pkcs7,
+ });
+
+ return token.toString(CryptoJS.enc.Utf8);
+ }
+
+ var html = JSON.parse(request(input).match(/r player_.*?=(.*?))[1]);
+ var url = html.url;
+ var from = html.from;
+ if (html.encrypt == "1") {
+ url = unescape(url);
+ } else if (html.encrypt == "2") {
+ url = unescape(base64Decode(url));
+ }
+ if (/\.mp4|\.m3u8|\.flv/.test(url)) {
+ input = {
+ parse: 0,
+ url: url.split("&")[0],
+ js: ''
+ };
+ } else {
+ var jsh = request(HOST + "/static/player/" + from + ".js", {
+ headers: {
+ Referer: input
+ },
+ }).match(/\.src\s*=\s*(.*?);/)[1];
+ //log(MY_HOME);
+ if (/type=/.test(jsh)) {
+ jsh = jsh
+ .replace(/[\+\s']/g, "")
+ .replace(/MacPlayer.Parse/, "")
+ .replace(/MacPlayer.PlayUrl/, url)
+ .replace(/window.location.href/, input);
+ var playht = fetch(jsh, {
+ headers: {
+ Referer: HOST
+ }
+ });
+ } else {
+ jsh = jsh
+ .replace(/[\+\s']/g, "")
+ .replace(/MacPlayer.Parse/, "")
+ .replace(/MacPlayer.PlayUrl/, url)
+ .replace(/window.location.href/, input);
+
+ jsh = JSON.parse(
+ fetch(jsh, {
+ headers: {
+ Referer: HOST
+ },
+ onlyHeaders: true
+ })
+ ).url;
+ var playht = fetch(jsh, {
+ headers: {
+ Referer: HOST
+ }
+ });
+ }
+
+ var postapi = jsh.match(/^(.*?\/\/.*?\/.*?\/)/)[1];
+
+ var posturl = postapi + playht.match(/post\("(.*?)"/)[1];
+ if (/act\s*=/.test(playht)) {
+ var vid = playht.match(/vid\s*=\s*"(.*?)"/)[1];
+ var t = playht.match(/var\s*t\s*=\s*"(.*?)"/)[1];
+ var token = playht.match(/token\s*=\s*"(.*?)"/)[1];
+ var act = playht.match(/act\s*=\s*"(.*?)"/)[1];
+ var play = playht.match(/play\s*=\s*"(.*?)"/)[1];
+ token = getDAesString(token);
+
+ var data = JSON.parse(
+ post(posturl, {
+ headers: {
+ Referer: HOST
+ },
+ body: {
+ vid: vid,
+ t: t,
+ token: token,
+ act: act,
+ play: play,
+ },
+ timeout: 5000
+ })
+ );
+ input = {
+ parse: 0,
+ url: data.url,
+ js: ''
+ };
+ } else {
+ var key = "";
+
+ playht.match(/var (\w+)="(.*?)";/g).forEach(function(list) {
+ key += list.match(/"(.*?)"/)[1];
+ });
+ const bodys = JSON.parse(
+ playht
+ .match(/post\(.*?,(.*?),\n/)[1]
+ .replace(/"keyyy"\s*:\s*''.*?''/, '"keyyy" : "' + key + '"')
+ );
+ var data = JSON.parse(
+ post(posturl, {
+ headers: {
+ Referer: HOST
+ },
+ body: bodys
+ })
+ );
+ if (data.ext == "xgplayer") {
+ var dataurl =
+ "https://yun.366day.site/mp4hls/xgplayer.php?vid=" + data.url;
+ var video = fetch(dataurl, {
+ headers: {
+ Referer: jsh
+ }
+ }).match(
+ /"url": "(.*?)"/
+ )[1];
+ input = {
+ parse: 0,
+ url: video,
+ js: ''
+ };
+ } else if (data.ext == "hls" || data.ext == "hls_list") {
+ input = {
+ parse: 0,
+ url: decodeURIComponent(data.url),
+ js: ''
+ };
+ } else {
+ input = {
+ parse: 0,
+ url: data.url,
+ js: ''
+ };
+ }
+ }
+ }
+ }),
+ double: false,
+ 推荐: "*",
+ 一级: ".video-img-box;h6.title&&Text;.lazyload&&data-src;.label&&Text;a&&href",
+ 二级: {
+ title: ".page-title&&Text;.tag-link&&Text",
+ img: ".module-item-pic&&.lazyload&&src",
+ desc: ".video-info-items:eq(3)&&Text;.video-info-items:eq(2)&&Text;;.video-info-items:eq(1)&&Text;.video-info-items:eq(0)&&Text",
+ content: ".video-info-content&&Text",
+ tabs: ".module-tab-item.tab-item",
+ lists: ".module-player-list:eq(#id) a",
+ tab_text: "body&&Text",
+ list_text: "body&&Text",
+ list_url: "a&&href"
+ },
+ detailUrl: "",
+ 搜索: "*"
+}
\ No newline at end of file
diff --git a/JS/达达龟.js b/JS/达达龟.js
new file mode 100644
index 0000000..916de27
--- /dev/null
+++ b/JS/达达龟.js
@@ -0,0 +1,627 @@
+muban.首图2.二级.desc = 'p.data:eq(-1)&&Text;;;p.data:eq(-2)&&Text;p.data:eq(-3)&&Text';
+var rule = {
+ title: '达达龟',
+ 模板: '首图2',
+ host: 'https://www.dadagui.me',
+ // url:'/vodshow/fyclass--------fypage---.html',
+ url: '/vodshow/fyclassfyfilter.html',
+ filterable: 1, //是否启用分类筛选,
+ filter_url: '-{{fl.area}}-{{fl.by}}-{{fl.class}}-{{fl.lang}}-{{fl.letter}}---fypage---{{fl.year}}',
+ filter: {
+ "1": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "大陆",
+ "v": "大陆"
+ }, {
+ "n": "香港",
+ "v": "香港"
+ }, {
+ "n": "台湾",
+ "v": "台湾"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "法国",
+ "v": "法国"
+ }, {
+ "n": "英国",
+ "v": "英国"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "韩国",
+ "v": "韩国"
+ }, {
+ "n": "德国",
+ "v": "德国"
+ }, {
+ "n": "泰国",
+ "v": "泰国"
+ }, {
+ "n": "印度",
+ "v": "印度"
+ }, {
+ "n": "意大利",
+ "v": "意大利"
+ }, {
+ "n": "西班牙",
+ "v": "西班牙"
+ }, {
+ "n": "加拿大",
+ "v": "加拿大"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }, {
+ "key": "lang",
+ "name": "语言",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国语",
+ "v": "国语"
+ }, {
+ "n": "英语",
+ "v": "英语"
+ }, {
+ "n": "粤语",
+ "v": "粤语"
+ }, {
+ "n": "闽南语",
+ "v": "闽南语"
+ }, {
+ "n": "韩语",
+ "v": "韩语"
+ }, {
+ "n": "日语",
+ "v": "日语"
+ }, {
+ "n": "法语",
+ "v": "法语"
+ }, {
+ "n": "德语",
+ "v": "德语"
+ }, {
+ "n": "其它",
+ "v": "其它"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "time"
+ }, {
+ "n": "人气",
+ "v": "hits"
+ }, {
+ "n": "评分",
+ "v": "score"
+ }]
+ }],
+ "2": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "内地"
+ }, {
+ "n": "韩国",
+ "v": "韩国"
+ }, {
+ "n": "香港",
+ "v": "香港"
+ }, {
+ "n": "台湾",
+ "v": "台湾"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "泰国",
+ "v": "泰国"
+ }, {
+ "n": "英国",
+ "v": "英国"
+ }, {
+ "n": "新加坡",
+ "v": "新加坡"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }, {
+ "key": "lang",
+ "name": "语言",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国语",
+ "v": "国语"
+ }, {
+ "n": "英语",
+ "v": "英语"
+ }, {
+ "n": "粤语",
+ "v": "粤语"
+ }, {
+ "n": "闽南语",
+ "v": "闽南语"
+ }, {
+ "n": "韩语",
+ "v": "韩语"
+ }, {
+ "n": "日语",
+ "v": "日语"
+ }, {
+ "n": "其它",
+ "v": "其它"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "time"
+ }, {
+ "n": "人气",
+ "v": "hits"
+ }, {
+ "n": "评分",
+ "v": "score"
+ }]
+ }],
+ "3": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "内地",
+ "v": "内地"
+ }, {
+ "n": "港台",
+ "v": "港台"
+ }, {
+ "n": "日韩",
+ "v": "日韩"
+ }, {
+ "n": "欧美",
+ "v": "欧美"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }, {
+ "key": "lang",
+ "name": "语言",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国语",
+ "v": "国语"
+ }, {
+ "n": "英语",
+ "v": "英语"
+ }, {
+ "n": "粤语",
+ "v": "粤语"
+ }, {
+ "n": "闽南语",
+ "v": "闽南语"
+ }, {
+ "n": "韩语",
+ "v": "韩语"
+ }, {
+ "n": "日语",
+ "v": "日语"
+ }, {
+ "n": "其它",
+ "v": "其它"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "time"
+ }, {
+ "n": "人气",
+ "v": "hits"
+ }, {
+ "n": "评分",
+ "v": "score"
+ }]
+ }],
+ "4": [{
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国产",
+ "v": "国产"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "欧美",
+ "v": "欧美"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "2011",
+ "v": "2011"
+ }, {
+ "n": "2010",
+ "v": "2010"
+ }, {
+ "n": "2009",
+ "v": "2009"
+ }, {
+ "n": "2008",
+ "v": "2008"
+ }, {
+ "n": "2007",
+ "v": "2007"
+ }, {
+ "n": "2006",
+ "v": "2006"
+ }, {
+ "n": "2005",
+ "v": "2005"
+ }, {
+ "n": "2004",
+ "v": "2004"
+ }]
+ }, {
+ "key": "lang",
+ "name": "语言",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "国语",
+ "v": "国语"
+ }, {
+ "n": "英语",
+ "v": "英语"
+ }, {
+ "n": "粤语",
+ "v": "粤语"
+ }, {
+ "n": "闽南语",
+ "v": "闽南语"
+ }, {
+ "n": "韩语",
+ "v": "韩语"
+ }, {
+ "n": "日语",
+ "v": "日语"
+ }, {
+ "n": "其它",
+ "v": "其它"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "time"
+ }, {
+ "n": "人气",
+ "v": "hits"
+ }, {
+ "n": "评分",
+ "v": "score"
+ }]
+ }]
+ },
+ searchUrl: '/vodsearch/**----------fypage---.html',
+ class_parse: '.stui-header__menu li:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
+ lazy: `js:
+ var html = JSON.parse(request(input).match(/r player_.*?=(.*?))[1]);
+ var url = html.url;
+ if (html.encrypt == '1') {
+ url = unescape(url)
+ } else if (html.encrypt == '2') {
+ url = unescape(base64Decode(url))
+ }
+ if (/\\.m3u8|\\.mp4/.test(url)) {
+ input = {
+ jx: 0,
+ url: url,
+ parse: 0
+ }
+ } else {
+ input
+ }
+ `,
+ // 搜索: muban.首图2.搜索1,
+ 搜索: 'ul.stui-vodlist&&li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
+}
\ No newline at end of file
diff --git a/JS/追剧弹幕.js b/JS/追剧弹幕.js
new file mode 100644
index 0000000..cf49480
--- /dev/null
+++ b/JS/追剧弹幕.js
@@ -0,0 +1,183 @@
+globalThis.h_ost = 'http://v.lkuys.cn/';
+
+globalThis.vodlist = function($t, $pg) {
+ const currentTimestamp = parseInt(Date.now() / 1000, 10);
+ const url = h_ost + '/v2/home/type_search';
+ const hx = CryptoJS.MD5('kj5649ertj84ks89r4jh8s45hf84hjfds04k' + currentTimestamp).toString();
+ let html = request(url, {
+ body: {
+ sign: hx,
+ type_id: $t,
+ page: $pg,
+ },
+ headers: {
+ 'User-Agent': 'okhttp-okgo/jeasonlzy',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ },
+ 'method': 'POST'
+ }, true);
+ return JSON.parse(html).data.list;
+}
+
+globalThis.seach = function(wd) {
+ const currentTimestamp = parseInt(Date.now() / 1000, 10);
+ const url = h_ost + '/v2/home/search';
+ const hx = CryptoJS.MD5('kj5649ertj84ks89r4jh8s45hf84hjfds04k' + currentTimestamp).toString();
+ let html = request(url, {
+ body: {
+ sign: hx,
+ keyword: wd,
+ timestamp: currentTimestamp,
+ },
+ headers: {
+ 'User-Agent': 'okhttp-okgo/jeasonlzy',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ },
+ 'method': 'POST'
+ }, true);
+ return JSON.parse(html).data.list;
+}
+globalThis.vodids = function(ids) {
+ const currentTimestamp = parseInt(Date.now() / 1000, 10);
+ const url = h_ost + '/v2/home/vod_details';
+ const hx = CryptoJS.MD5('kj5649ertj84ks89r4jh8s45hf84hjfds04k' + currentTimestamp).toString();
+ let html = request(url, {
+ body: {
+ sign: hx,
+ vod_id: ids,
+ timestamp: currentTimestamp,
+ },
+ headers: {
+ 'User-Agent': 'okhttp-okgo/jeasonlzy',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ },
+ 'method': 'POST'
+ }, true);
+ const redata = JSON.parse(html);
+ let vodPlayFrom = '';
+ let vodPlayUrl = '';
+ redata.data.vod_play_list.forEach((value, key) => {
+ if (value.flag.includes("nby") || value.flag.includes("mgtv") || value.flag.includes("qq") || value.flag.includes("qiyi") || value.flag.includes("mgtv")) {
+ vodPlayFrom += `${value.flag}$$$`;
+ value.urls.forEach(url => {
+ vodPlayUrl += `${url.name}$${value.parse_urls[0]}${url.url}~${url.name}#`;
+ });
+ vodPlayUrl += '$$$';
+ }
+ });
+ const regeshi = {
+ vod_id: redata.data.vod_id,
+ vod_name: redata.data.vod_name,
+ vod_remarks: `${redata.data.vod_remarks}`,
+ type_name: redata.data.vod_class,
+ vod_pic: redata.data.vod_pic,
+ vod_year: redata.data.vod_year,
+ vod_area: redata.data.vod_area,
+ vod_actor: `${redata.data.vod_actor}`,
+ vod_director: redata.data.vod_director,
+ vod_content: `${redata.data.vod_content}`,
+ vod_play_from: vodPlayFrom,
+ vod_play_url: vodPlayUrl
+ };
+ return regeshi;
+}
+globalThis.jxx = function(input) {
+ if ("741852963" !== '741852963') {
+ return 'https://s0.mall.tcl.com/group1/M00/00/89/CvoGBGdcOPaAAUxvADwZniVV2bc476.mp4';
+ }
+ const parts = input.split('~');
+ try {
+ let response = fetch(parts[0], {
+ method: 'get',
+ headers: {
+ 'User-Agent': 'okhttp/3.14.9',
+ 'Content-Type': 'application/x-www-form-urlencoded'
+ }
+ });
+
+ if (response.includes("成功") || response.includes("success") || response.includes("nby")) {
+ let bata = JSON.parse(response);
+ input = {
+ parse: 0,
+ url: bata.url,
+ jx: 0,
+ danmaku: 'http://103.45.162.207:25252/hbdm.php?key=7894561232&id=' + '&jm=' + VOD.vod_name + '&js=' + parts[1] + '&key=741852963'
+ }
+ } else {
+ input = {
+ parse: 0,
+ url: parts[0].includes('url=') ? parts[0].slice(parts[0].indexOf('url=') + 4) : null,
+ jx: 1,
+ danmaku: 'http://103.45.162.207:25252/hbdm.php?key=7894561232&id=' + '&jm=' + VOD.vod_name + '&js=' + parts[1] + '&key=741852963'
+ }
+ }
+ } catch {
+ input = {
+ parse: 0,
+ url: '解析失败',
+ jx: 0,
+ }
+ }
+ return input;
+}
+
+var rule = {
+ title: '追剧',
+ host: '',
+ detailUrl: 'fyid',
+ searchUrl: '**',
+ url: 'fyclass',
+ searchable: 2,
+ quickSearch: 1,
+ filterable: 0,
+ class_name: '电影&电视剧&综艺&动漫',
+ class_url: '1&2&4&3',
+ play_parse: true,
+ lazy: $js.toString(() => {
+ input = jxx(input);
+ }),
+ 推荐: $js.toString(() => {
+ let bdata = vodlist(0, 1);
+ console.log(bdata);
+ bdata.forEach(it => {
+ d.push({
+ url: it.vod_id,
+ title: it.vod_name,
+ img: it.vod_pic,
+ desc: it.vod_remarks
+ });
+ });
+ setResult(d);
+ }),
+ 一级: $js.toString(() => {
+ let bdata = vodlist(input, MY_PAGE);
+ console.log(bdata);
+ bdata.forEach(it => {
+ d.push({
+ url: it.vod_id,
+ title: it.vod_name,
+ img: it.vod_pic,
+ desc: it.vod_remarks
+ });
+ });
+ setResult(d);
+ }),
+ 二级: $js.toString(() => {
+ console.log("调试信息2" + input);
+ let data = vodids(input);
+ //console.log(data);
+ VOD = (data);
+ }),
+ 搜索: $js.toString(() => {
+ let ddata = seach(input);
+ ddata.forEach(it => {
+ d.push({
+ url: it.vod_id,
+ title: it.vod_name,
+ img: it.vod_pic,
+ desc: it.vod_remarks
+ });
+ });
+ setResult(d);
+ }),
+}
\ No newline at end of file
diff --git a/JS/追剧迷.js b/JS/追剧迷.js
new file mode 100644
index 0000000..3031e38
--- /dev/null
+++ b/JS/追剧迷.js
@@ -0,0 +1,37 @@
+var rule = {
+ title: '追剧迷',
+ 模板: 'vfed',
+ host: 'https://www.zhuijumi.cc',
+ // url:'/videotype/fyclass-fypage.html',
+ url: '/mp4type/fyclass-fypage.html',
+ searchUrl: '/mp4search/-.html?wd=**',
+ class_parse: '.fed-part-tips li;a&&Text;a&&href;.*/(.*?).html',
+ cate_exclude: '更多|申请',
+ lazy: `js:
+ var html = JSON.parse(request(input).match(/r player_.*?=(.*?))[1]);
+ var url = html.url;
+ if (html.encrypt == '1') {
+ url = unescape(url)
+ } else if (html.encrypt == '2') {
+ url = unescape(base64Decode(url))
+ }
+ if (/\\.m3u8|\\.mp4/.test(url)) {
+ input = {
+ jx: 0,
+ url: url,
+ parse: 0
+ }
+ } else {
+ input
+ }
+ `,
+ 二级: {
+ "title": "h1&&Text;.fed-col-xs6--span:eq(0)&&Text",
+ "img": ".fed-list-info&&a&&data-original",
+ "desc": ".fed-col-xs12.fed-part-eone:eq(3)&&Text;;;.fed-col-xs12.fed-part-eone--span:eq(0)&&Text;.fed-col-xs12.fed-part-eone--span:eq(1)&&Text",
+ "content": ".fed-conv-text:eq(0)&&Text",
+ "tabs": "ul.fed-padding&&li",
+ "lists": ".fed-tabs-btm:eq(#id) li"
+ },
+ 搜索: '.fed-list-deta;h1&&Text;.fed-lazy&&data-original;.fed-list-remarks&&Text;a&&href;.fed-col-xs12.fed-part-eone:eq(2)&&Text',
+}
\ No newline at end of file
diff --git a/JS/采集之王.js b/JS/采集之王.js
new file mode 100644
index 0000000..3bc5d96
--- /dev/null
+++ b/JS/采集之王.js
@@ -0,0 +1,378 @@
+globalThis.getRandomItem = function(items) {
+ return items[Math.random() * items.length | 0];
+}
+var rule = {
+ title: '采集之王[合]',
+ author: '道长',
+ version: '20240706 beta17',
+ update_info: ``.trim(),
+ host: '',
+ homeTid: '',
+ homeUrl: '/api.php/provide/vod/?ac=detail&t={{rule.homeTid}}',
+ detailUrl: '/api.php/provide/vod/?ac=detail&ids=fyid',
+ searchUrl: '/api.php/provide/vod/?wd=**&pg=#TruePage##page=fypage',
+ classUrl: '/api.php/provide/vod/',
+ url: '/api.php/provide/vod/?ac=detail&pg=fypage&t=fyfilter',
+ filter_url: '{{fl.类型}}',
+ headers: {
+ 'User-Agent': 'MOBILE_UA'
+ },
+ timeout: 5000,
+ limit: 20,
+ search_limit: 10,
+ searchable: 1,
+ quickSearch: 0,
+ filterable: 1,
+ play_parse: true,
+ parse_url: '',
+ search_match: false,
+ search_pic: true,
+ 预处理: $js.toString(() => {
+ function getClasses(item) {
+ let classes = [];
+ if (item.class_name && item.class_url) {
+ if (!/&|电影|电视剧|综艺|动漫[\u4E00-\u9FA5]+/.test(item.class_name)) {
+ try {
+ item.class_name = ungzip(item.class_name)
+ } catch (e) {
+ log(`不识别的class_name导致gzip解码失败:${e}`)
+ return classes
+ }
+ }
+ let names = item.class_name.split('&');
+ let urls = item.class_url.split('&');
+ let cnt = Math.min(names.length, urls.length);
+ for (let i = 0; i < cnt; i++) {
+ classes.push({
+ 'type_id': urls[i],
+ 'type_name': names[i]
+ });
+ }
+ }
+ return classes
+ }
+ if (typeof(batchFetch) === 'function') {
+ rule.search_limit = 16;
+ log('当前程序支持批量请求[batchFetch],搜索限制已设置为16');
+ }
+ let _url = rule.params;
+ log(`传入参数:${_url}`);
+ if (_url && typeof(_url) === 'string' && /^(http|file)/.test(_url)) {
+ if (_url.includes('$')) {
+ let _url_params = _url.split('$');
+ _url = _url_params[0];
+ rule.search_match = !!(_url_params[1]);
+ if (_url_params.length > 2) {
+ rule.search_pic = !!(_url_params[2]);
+ }
+ }
+ let html = request(_url);
+ let json = JSON.parse(html);
+ let _classes = [];
+ rule.filter = {};
+ rule.filter_def = {};
+ json.forEach(it => {
+ let _obj = {
+ type_name: it.name,
+ type_id: it.url,
+ parse_url: it.parse_url || '',
+ searchable: it.searchable !== 0,
+ api: it.api || '',
+ cate_exclude: it.cate_exclude || '',
+ cate_excludes: it.cate_excludes || [],
+ };
+ _classes.push(_obj);
+ try {
+ let json1 = [];
+ if (it.class_name && it.class_url) {
+ json1 = getClasses(it);
+ } else {
+ json1 = JSON.parse(request(urljoin(_obj.type_id, _obj.api || rule.classUrl))).class;
+ }
+ if (_obj.cate_excludes && Array.isArray(_obj.cate_excludes) && _obj.cate_excludes.length > 0) {
+ json1 = json1.filter(cl => !_obj.cate_excludes.includes(cl.type_name));
+ } else if (_obj.cate_exclude) {
+ json1 = json1.filter(cl => !new RegExp(_obj.cate_exclude, 'i').test(cl.type_name));
+ }
+ rule.filter[_obj.type_id] = [{
+ "key": "类型",
+ "name": "类型",
+ "value": json1.map(i => {
+ return {
+ "n": i.type_name,
+ 'v': i.type_id
+ }
+ })
+ }];
+ if (json1.length > 0) {
+ rule.filter_def[it.url] = {
+ "类型": json1[0].type_id
+ };
+ }
+ } catch (e) {
+ rule.filter[it.url] = [{
+ "key": "类型",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }]
+ }];
+ }
+ });
+ rule.classes = _classes;
+ }
+ }),
+ class_parse: $js.toString(() => {
+ input = rule.classes;
+ }),
+ 推荐: $js.toString(() => {
+ VODS = [];
+ if (rule.classes) {
+ let randomClass = getRandomItem(rule.classes);
+ let _url = urljoin(randomClass.type_id, input);
+ if (randomClass.api) {
+ _url = _url.replace('/api.php/provide/vod/', randomClass.api)
+ }
+ try {
+ let html = request(_url, {
+ timeout: rule.timeout
+ });
+ let json = JSON.parse(html);
+ VODS = json.list;
+ VODS.forEach(it => {
+ it.vod_id = randomClass.type_id + '$' + it.vod_id;
+ it.vod_remarks = it.vod_remarks + '|' + randomClass.type_name;
+ });
+ } catch (e) {}
+ }
+ }),
+ 一级: $js.toString(() => {
+ VODS = [];
+ if (rule.classes) {
+ let _url = urljoin(MY_CATE, input);
+ let current_vod = rule.classes.find(item => item.type_id === MY_CATE);
+ if (current_vod && current_vod.api) {
+ _url = _url.replace('/api.php/provide/vod/', current_vod.api)
+ }
+ let html = request(_url);
+ let json = JSON.parse(html);
+ VODS = json.list;
+ VODS.forEach(it => {
+ it.vod_id = MY_CATE + '$' + it.vod_id
+ });
+ }
+ }),
+ 二级: $js.toString(() => {
+ VOD = {};
+ if (orId === 'update_info') {
+ VOD = {
+ vod_content: rule.update_info.trim(),
+ vod_name: '更新日志',
+ type_name: '更新日志',
+ vod_pic: 'https://resource-cdn.tuxiaobei.com/video/FtWhs2mewX_7nEuE51_k6zvg6awl.png',
+ vod_remarks: `版本:${rule.version}`,
+ vod_play_from: '道长在线',
+ vod_play_url: '随机小视频$http://api.yujn.cn/api/zzxjj.php',
+ };
+ } else {
+ if (rule.classes) {
+ let _url = urljoin(fyclass, input);
+ let current_vod = rule.classes.find(item => item.type_id === fyclass);
+ if (current_vod && current_vod.api) {
+ _url = _url.replace('/api.php/provide/vod/', current_vod.api)
+ }
+ let html = request(_url);
+ let json = JSON.parse(html);
+ let data = json.list;
+ VOD = data[0];
+ if (current_vod && current_vod.type_name) {
+ VOD.vod_play_from = VOD.vod_play_from.split('$$$').map(it => current_vod.type_name + '|' + it).join('$$$')
+ }
+ }
+ }
+ }),
+ 搜索: $js.toString(() => {
+ VODS = [];
+ if (rule.classes) {
+ let canSearch = rule.classes.filter(it => it.searchable);
+ let page = Number(MY_PAGE);
+ page = (MY_PAGE - 1) % Math.ceil(canSearch.length / rule.search_limit) + 1;
+ let truePage = Math.ceil(MY_PAGE / Math.ceil(canSearch.length / rule.search_limit));
+ if (rule.search_limit) {
+ let start = (page - 1) * rule.search_limit;
+ let end = page * rule.search_limit;
+ let t1 = new Date().getTime();
+ let searchMode = typeof(batchFetch) === 'function' ? '批量' : '单个';
+ log('start:' + start);
+ log('end:' + end);
+ log('搜索模式:' + searchMode);
+ log('精准搜索:' + rule.search_match);
+ log('强制获取图片:' + rule.search_pic);
+ if (start < canSearch.length) {
+ let search_classes = canSearch.slice(start, end);
+ let urls = [];
+ search_classes.forEach(it => {
+ let _url = urljoin(it.type_id, input);
+ if (it.api) {
+ _url = _url.replace('/api.php/provide/vod/', it.api)
+ }
+ _url = _url.replace("#TruePage#", "" + truePage);
+ urls.push(_url);
+ });
+ let results_list = [];
+ let results = [];
+ if (typeof(batchFetch) === 'function') {
+ let reqUrls = urls.map(it => {
+ return {
+ url: it,
+ options: {
+ timeout: rule.timeout
+ }
+ }
+ });
+ let rets = batchFetch(reqUrls);
+ let detailUrls = [];
+ let detailUrlCount = 0;
+ rets.forEach((ret, idx) => {
+ let it = search_classes[idx];
+ if (ret) {
+ try {
+ let json = JSON.parse(ret);
+ let data = json.list;
+ data.forEach(i => {
+ i.site_name = it.type_name;
+ i.vod_id = it.type_id + '$' + i.vod_id;
+ i.vod_remarks = i.vod_remarks + '|' + it.type_name;
+ });
+ if (rule.search_match) {
+ data = data.filter(item => item.vod_name && (new RegExp(KEY, 'i')).test(item.vod_name))
+ }
+ if (data.length > 0) {
+ if (rule.search_pic && !data[0].vod_pic) {
+ log(`当前搜索站点【${it.type_name}】没图片,尝试访问二级去获取图片`);
+ let detailUrl = urls[idx].split('wd=')[0] + 'ac=detail&ids=' + data.map(k => k.vod_id.split('$')[1]).join(',');
+ detailUrls.push(detailUrl);
+ results_list.push({
+ data: data,
+ has_pic: false,
+ detailUrlCount: detailUrlCount
+ });
+ detailUrlCount++;
+ } else {
+ results_list.push({
+ data: data,
+ has_pic: true
+ });
+ }
+ }
+ } catch (e) {
+ log(`请求:${it.type_id}发生错误:${e.message}`)
+ }
+ }
+ });
+ let reqUrls2 = detailUrls.map(it => {
+ return {
+ url: it,
+ options: {
+ timeout: rule.timeout
+ }
+ }
+ });
+ let rets2 = reqUrls2.length > 0 ? batchFetch(reqUrls2) : [];
+ for (let k = 0; k < results_list.length; k++) {
+ let result_data = results_list[k].data;
+ if (!results_list[k].has_pic) {
+ try {
+ let detailJson = JSON.parse(rets2[results_list[k].detailUrlCount]);
+ log('二级数据列表元素数:' + detailJson.list.length);
+ result_data.forEach((d, _seq) => {
+ let detailVodPic = detailJson.list.find(vod => vod.vod_id.toString() === d.vod_id.split('$')[1]);
+ if (detailVodPic) {
+ Object.assign(d, {
+ vod_pic: detailVodPic.vod_pic
+ });
+ }
+ });
+ } catch (e) {
+ log(`强制获取网站${result_data[0].site_name}的搜索图片失败:${e.message}`);
+ }
+ }
+ results = results.concat(result_data);
+ }
+ } else {
+ urls.forEach((_url, idx) => {
+ let it = search_classes[idx];
+ try {
+ let html = request(_url);
+ let json = JSON.parse(html);
+ let data = json.list;
+ data.forEach(i => {
+ i.vod_id = it.type_id + '$' + i.vod_id;
+ i.vod_remarks = i.vod_remarks + '|' + it.type_name;
+ });
+ if (rule.search_match) {
+ data = data.filter(item => item.vod_name && (new RegExp(KEY, 'i')).test(item.vod_name))
+ }
+ if (data.length > 0) {
+ if (rule.search_pic && !data[0].vod_pic) {
+ log(`当前搜索站点【${it.type_name}】没图片,尝试访问二级去获取图片`);
+ let detailUrl = urls[idx].split('wd=')[0] + 'ac=detail&ids=' + data.map(k => k.vod_id.split('$')[1]).join(',');
+ try {
+ let detailJson = JSON.parse(request(detailUrl));
+ log('二级数据列表元素数:' + detailJson.list.length);
+ data.forEach((d, _seq) => {
+ let detailVodPic = detailJson.list.find(vod => vod.vod_id.toString() === d.vod_id.split('$')[1]);
+ if (detailVodPic) {
+ Object.assign(d, {
+ vod_pic: detailVodPic.vod_pic
+ });
+ }
+ });
+ } catch (e) {
+ log(`强制获取网站${it.type_id}的搜索图片失败:${e.message}`);
+ }
+ }
+ results = results.concat(data);
+ }
+ results = results.concat(data);
+ } catch (e) {
+ log(`请求:${it.type_id}发生错误:${e.message}`)
+ }
+ });
+ }
+ VODS = results;
+ let t2 = new Date().getTime();
+ log(`${searchMode}搜索:${urls.length}个站耗时:${(Number(t2) - Number(t1))}ms`)
+ }
+ }
+ }
+ }),
+ lazy: $js.toString(() => {
+ let parse_url = '';
+ if (flag && flag.includes('|')) {
+ let type_name = flag.split('|')[0];
+ let current_vod = rule.classes.find(item => item.type_name === type_name);
+ if (current_vod && current_vod.parse_url) {
+ parse_url = current_vod.parse_url
+ }
+ }
+ if (/\.(m3u8|mp4)/.test(input)) {
+ input = {
+ parse: 0,
+ url: input
+ }
+ } else {
+ if (parse_url.startsWith('json:')) {
+ let purl = parse_url.replace('json:', '') + input;
+ let html = request(purl);
+ input = {
+ parse: 0,
+ url: JSON.parse(html).url
+ }
+ } else {
+ input = parse_url + input;
+ }
+ }
+ }),
+}
\ No newline at end of file
diff --git a/JS/魔力高清.js b/JS/魔力高清.js
new file mode 100644
index 0000000..105a6a3
--- /dev/null
+++ b/JS/魔力高清.js
@@ -0,0 +1,598 @@
+// 网址发布页 https://molicp.com
+muban.首图.二级.title = '.text-fff--font&&Text;.data--span:eq(0)&&Text';
+muban.首图.二级.desc = '#rating&&Text;;;.data--span:eq(1)&&Text;.data--span:eq(2)&&Text';
+muban.首图.二级.content = '.desc&&Text';
+var rule = {
+ title: 'HDmoli',
+ 模板: '首图',
+ host: 'https://www.hdmoli.pro',
+ // url:'/mlist/fyclass-fypage.html',
+ url: '/search.php?page=fypage&searchtype=5&tid=fyfilter',
+ filterable: 1, //是否启用分类筛选,
+ filter_url: '{{fl.cateId}}&jq={{fl.class}}&area={{fl.area}}&year={{fl.year}}&state={{fl.state}}&order={{fl.by}}',
+ filter: {
+ "1": [{
+ "key": "cateId",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": "1"
+ }, {
+ "n": "动作",
+ "v": "5"
+ }, {
+ "n": "爱情",
+ "v": "6"
+ }, {
+ "n": "科幻",
+ "v": "7"
+ }, {
+ "n": "恐怖",
+ "v": "8"
+ }, {
+ "n": "战争",
+ "v": "9"
+ }, {
+ "n": "喜剧",
+ "v": "10"
+ }, {
+ "n": "纪录片",
+ "v": "11"
+ }, {
+ "n": "剧情",
+ "v": "12"
+ }, {
+ "n": "犯罪",
+ "v": "30"
+ }, {
+ "n": "动画",
+ "v": "32"
+ }]
+ }, {
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "剧情",
+ "v": "剧情"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "家庭",
+ "v": "家庭"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "动作",
+ "v": "动作"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "惊悚",
+ "v": "惊悚"
+ }, {
+ "n": "音乐",
+ "v": "音乐"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "犯罪",
+ "v": "犯罪"
+ }, {
+ "n": "运动",
+ "v": "运动"
+ }, {
+ "n": "喜剧",
+ "v": "喜剧"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "韩国",
+ "v": "韩国"
+ }, {
+ "n": "英国",
+ "v": "英国"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "泰国",
+ "v": "泰国"
+ }, {
+ "n": "中国",
+ "v": "中国"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "more",
+ "v": "more"
+ }]
+ }, {
+ "key": "state",
+ "name": "状态",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "完结",
+ "v": "w"
+ }, {
+ "n": "连载中",
+ "v": "l"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "time"
+ }, {
+ "n": "评分",
+ "v": "douban"
+ }]
+ }],
+ "2": [{
+ "key": "cateId",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": "2"
+ }, {
+ "n": "美剧",
+ "v": "15"
+ }, {
+ "n": "韩剧",
+ "v": "16"
+ }, {
+ "n": "日剧",
+ "v": "13"
+ }, {
+ "n": "英剧",
+ "v": "34"
+ }, {
+ "n": "中国",
+ "v": "14"
+ }, {
+ "n": "泰剧",
+ "v": "29"
+ }, {
+ "n": "综艺",
+ "v": "39"
+ }, {
+ "n": "其他",
+ "v": "38"
+ }]
+ }, {
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "剧情",
+ "v": "剧情"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "家庭",
+ "v": "家庭"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "动作",
+ "v": "动作"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "惊悚",
+ "v": "惊悚"
+ }, {
+ "n": "音乐",
+ "v": "音乐"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "犯罪",
+ "v": "犯罪"
+ }, {
+ "n": "运动",
+ "v": "运动"
+ }, {
+ "n": "喜剧",
+ "v": "喜剧"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "韩国",
+ "v": "韩国"
+ }, {
+ "n": "英国",
+ "v": "英国"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "泰国",
+ "v": "泰国"
+ }, {
+ "n": "中国",
+ "v": "中国"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "more",
+ "v": "more"
+ }]
+ }, {
+ "key": "state",
+ "name": "状态",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "完结",
+ "v": "w"
+ }, {
+ "n": "连载中",
+ "v": "l"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "time"
+ }, {
+ "n": "评分",
+ "v": "douban"
+ }]
+ }],
+ "41": [{
+ "key": "cateId",
+ "name": "类型",
+ "value": [{
+ "n": "全部",
+ "v": "41"
+ }, {
+ "n": "日本",
+ "v": "42"
+ }, {
+ "n": "其他",
+ "v": "43"
+ }]
+ }, {
+ "key": "class",
+ "name": "剧情",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "战争",
+ "v": "战争"
+ }, {
+ "n": "恐怖",
+ "v": "恐怖"
+ }, {
+ "n": "剧情",
+ "v": "剧情"
+ }, {
+ "n": "爱情",
+ "v": "爱情"
+ }, {
+ "n": "家庭",
+ "v": "家庭"
+ }, {
+ "n": "励志",
+ "v": "励志"
+ }, {
+ "n": "悬疑",
+ "v": "悬疑"
+ }, {
+ "n": "动作",
+ "v": "动作"
+ }, {
+ "n": "奇幻",
+ "v": "奇幻"
+ }, {
+ "n": "冒险",
+ "v": "冒险"
+ }, {
+ "n": "历史",
+ "v": "历史"
+ }, {
+ "n": "惊悚",
+ "v": "惊悚"
+ }, {
+ "n": "音乐",
+ "v": "音乐"
+ }, {
+ "n": "科幻",
+ "v": "科幻"
+ }, {
+ "n": "犯罪",
+ "v": "犯罪"
+ }, {
+ "n": "运动",
+ "v": "运动"
+ }, {
+ "n": "喜剧",
+ "v": "喜剧"
+ }]
+ }, {
+ "key": "area",
+ "name": "地区",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "美国",
+ "v": "美国"
+ }, {
+ "n": "韩国",
+ "v": "韩国"
+ }, {
+ "n": "英国",
+ "v": "英国"
+ }, {
+ "n": "日本",
+ "v": "日本"
+ }, {
+ "n": "泰国",
+ "v": "泰国"
+ }, {
+ "n": "中国",
+ "v": "中国"
+ }, {
+ "n": "其他",
+ "v": "其他"
+ }]
+ }, {
+ "key": "year",
+ "name": "年份",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "2025",
+ "v": "2025"
+ }, {
+ "n": "2024",
+ "v": "2024"
+ }, {
+ "n": "2023",
+ "v": "2023"
+ }, {
+ "n": "2022",
+ "v": "2022"
+ }, {
+ "n": "2021",
+ "v": "2021"
+ }, {
+ "n": "2020",
+ "v": "2020"
+ }, {
+ "n": "2019",
+ "v": "2019"
+ }, {
+ "n": "2018",
+ "v": "2018"
+ }, {
+ "n": "2017",
+ "v": "2017"
+ }, {
+ "n": "2016",
+ "v": "2016"
+ }, {
+ "n": "2015",
+ "v": "2015"
+ }, {
+ "n": "2014",
+ "v": "2014"
+ }, {
+ "n": "2013",
+ "v": "2013"
+ }, {
+ "n": "2012",
+ "v": "2012"
+ }, {
+ "n": "more",
+ "v": "more"
+ }]
+ }, {
+ "key": "state",
+ "name": "状态",
+ "value": [{
+ "n": "全部",
+ "v": ""
+ }, {
+ "n": "完结",
+ "v": "w"
+ }, {
+ "n": "连载中",
+ "v": "l"
+ }]
+ }, {
+ "key": "by",
+ "name": "排序",
+ "value": [{
+ "n": "时间",
+ "v": "time"
+ }, {
+ "n": "评分",
+ "v": "douban"
+ }]
+ }]
+ },
+ filter_def: {
+ 1: {
+ cateId: '1',
+ by: 'time'
+ },
+ 2: {
+ cateId: '2',
+ by: 'time'
+ },
+ 41: {
+ cateId: '41',
+ by: 'time'
+ }
+ },
+ searchUrl: '/search.php?page=fypage&searchword=**&searchtype=',
+ class_parse: '.myui-header__menu li;a&&Text;a&&href;.*/index(\\d+).html',
+}
\ No newline at end of file
diff --git a/README.md b/README.md
deleted file mode 100644
index a165419..0000000
--- a/README.md
+++ /dev/null
@@ -1,2 +0,0 @@
-# duoapi
-
diff --git a/XBPQ/修罗影视.json b/XBPQ/修罗影视.json
new file mode 100644
index 0000000..88d0f73
--- /dev/null
+++ b/XBPQ/修罗影视.json
@@ -0,0 +1,35 @@
+{
+ "站名": "修罗影视",
+ "请求头": "User-Agent@Mozilla/5.0 (Linux;; Android 12;; PEHM00 Build/SKQ1.210216.001;; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/130.0.6723.108 Mobile Safari/537.36",
+ "编码": "UTF-8",
+ "图片代理": "0",
+ "直接播放": "0",
+ "主页url": "http://v.xlys.ltd.ua",
+ "分类url": "http://v.xlys.ltd.ua/s/{cateId}/{catePg}",
+ "分类": "动作$dongzuo#爱情$aiqing#喜剧$xiju#科幻$kehuan#恐怖$kongbu#战争$zhanzheng#武侠$wuxia#魔幻$mohuan#剧情$juqing#动画$donghua#惊悚$jingsong#灾难$zainan#悬疑$xuanyi#警匪$jingfei#文艺$wenyi#青春$qingchun#冒险$maoxian#犯罪$fanzui#纪录$jilu#古装$guzhuang#奇幻$qihuan#国语$guoyu#综艺$zongyi#历史$lishi#运动$yundong#原创压制$yuanchuang#美剧$meiju#韩剧$hanju#国产电视剧$guoju#日剧$riju#英剧$yingju#德剧$deju#俄剧$eju#巴剧$baju#加剧$jiaju#西剧$spanish#意大利剧$yidaliju#泰剧$taiju#港台剧$gangtaiju#法剧$faju#澳剧$aoju",
+ "数组": "card-link&&/h3>",
+ "标题": "&&",
+ "图片": "data-echo=\"&&\"",
+ "分类url": "https://www.wwgz.cn/vod-list-id-{cateId}-pg-{catePg}-order--by-time-class-0-year-{year}-letter--area-{area}-lang-.html",
+ "分类": "短剧$26#电视剧$2#电影$1#动漫$4#综艺$3"
+}
\ No newline at end of file
diff --git a/XBPQ/哆啦新番社.json b/XBPQ/哆啦新番社.json
new file mode 100644
index 0000000..6617766
--- /dev/null
+++ b/XBPQ/哆啦新番社.json
@@ -0,0 +1,18 @@
+{
+ "请求头": "User-Agent$MOBILE_UA",
+ "编码": "UTF-8",
+ "主页url": "https://dora.xiaoxinbk.com/",
+ "数组": "class=\"card-img-bili\"&&",
+ "标题": "alt=\"&&\"",
+ "图片": "data-url=\"&&\"",
+ "链接": "href=\"&&\"",
+ "线路标题": "mt-0\">&&",
+ "播放数组": "class=\"card-body button-list\"&&",
+ "播放列表": "",
+ "播放链接": "href=\"&&\"",
+ "播放标题": ">&&",
+ "分类url": "https://www.dora-video.cn/search/sy/?niandai={year}&cat={class}&tag={cateId}&gaojijiansuo=1&zhuangtai={by}",
+ "分类": "全部$0#动画$20#剧场版$21#MV$22#预告片$23#直播$27#同人$25#民间$26#目录$28#中篇$30",
+ "剧情": "哆啦A梦新番$1#新哆啦A梦 台湾配音$2#哆啦A梦剧场版$3#最新预告片$6#剧场版集合$7#哆啦A梦MV$4#哆啦A梦七小子集合$11#生日特别篇$19#哆啦A梦生日特别篇$12#哆啦美生日特别篇$14#大雄生日特别篇$13#静香生日特别篇$15#胖虎生日特别篇$16#小夫生日特别篇$17#24小时直播$24#哆啦A梦中篇附映$29#哆啦A梦大山版 - 哆啦a梦1979版国语旧版 - 旧版$31#哆啦A梦大山修复&补档区$32#藤子·F·不二雄【其它动画】$33",
+ "排序": "全部$0#完结$2#连载$1#待定$-1"
+}
\ No newline at end of file
diff --git a/XBPQ/樱花影视.json b/XBPQ/樱花影视.json
new file mode 100644
index 0000000..2ca5775
--- /dev/null
+++ b/XBPQ/樱花影视.json
@@ -0,0 +1,5 @@
+{
+ "线路标题": "&&
",
+ "分类url": "https://yinghuadm.fun/vodshow/{cateId}-{area}--{class}-----{catePg}---{year}.html",
+ "分类": "电影$1#剧集$2#综艺$3#动漫$4"
+}
\ No newline at end of file
diff --git a/XBPQ/永乐影视.json b/XBPQ/永乐影视.json
new file mode 100644
index 0000000..44f7706
--- /dev/null
+++ b/XBPQ/永乐影视.json
@@ -0,0 +1,7 @@
+{
+ "请求头": "User-Agent$MOBILE_UA",
+ "编码": "UTF-8",
+ "分类": "电影$1#电视剧$2#综艺$3#动漫$4",
+ "类型": "动作片$6#喜剧片$7#爱情片$8#科幻片$9#奇幻片$10#恐怖片$11#剧情片$12#战争片$20#动画片$26#悬疑片$22#冒险片$23#犯罪片$24#惊悚片$45#歌舞片$46#灾难片$47#网络片$48||国产剧$13#港台剧$14#日剧$15#韩剧$33#欧美剧$16#泰剧$34#新马剧$35#其他剧$25||内地综艺$27#港台综艺$28#日本综艺$29#韩国综艺$36#欧美综艺$30#新马泰综艺$37#其他综艺$38||国产动漫$31#日本动漫$32#韩国动漫$39#港台动漫$40#新马泰动漫$41#欧美动漫$42#其他动漫$43",
+ "分类url": "https://www.ylys.tv/vodshow/{cateId}-{area}-{by}-{class}-{lang}-{letter}---{catePg}---{year}.html"
+}
\ No newline at end of file
diff --git a/XBPQ/海纳影视.json b/XBPQ/海纳影视.json
new file mode 100644
index 0000000..4b90fec
--- /dev/null
+++ b/XBPQ/海纳影视.json
@@ -0,0 +1,6 @@
+{
+ "简介": "简介:&&",
+ "数组": "row\">&&",
+ "分类url": "https://www.hainatv.net/index.php/vod/show/area/{area}/id/{cateId}/lang/{lang}/page/{catePg}/year/{year}.html",
+ "分类": "电影$1#电视剧$2#综艺$3#动漫$4#短剧$59"
+}
\ No newline at end of file
diff --git a/XBPQ/爱我短剧.json b/XBPQ/爱我短剧.json
new file mode 100644
index 0000000..cf3bd09
--- /dev/null
+++ b/XBPQ/爱我短剧.json
@@ -0,0 +1,25 @@
+{
+ "请求头": "User-Agent$MOBILE_UA",
+ "主页url": "https://www.aiwodj.com",
+ "数组": "lazy lazyloaded&&>]",
+ "图片": "data-src=\"&&\"",
+ "标题": "title=\"&&\"",
+ "链接": "href=\"&&\"",
+ "副标题": "+module-item-caption\">&&&&",
+ "播放列表": "",
+ "播放标题": "span>&&",
+ "播放链接": "href=\"&&\"",
+ "跳转播放链接": "urlDecode(var player_*\"url\":\"&&\")",
+ "搜索url": "https://www.aiwodj.com/vodsearch/{wd}----------{pg}---.html",
+ "搜索数组": "lazy lazyload&&>]",
+ "搜索图片": "data-src=\"&&\"",
+ "搜索标题": "+title=\"&&\"",
+ "搜索链接": "href=\"&&\"",
+ "分类url": "https://www.aiwodj.com/vodshow/{cateId}--{by}-{class}-{lang}----{catePg}---{year}.html",
+ "分类": "穿越&战神&重生&爱情&萌娃&神医&古代&玄幻&言情",
+ "分类值": "fenle&fenlei2&fenlei3&fenlei4&guda&shenyi&gudai&xuanhuan&yanqing"
+}
\ No newline at end of file
diff --git a/XBPQ/狐狸君.json b/XBPQ/狐狸君.json
new file mode 100644
index 0000000..1219930
--- /dev/null
+++ b/XBPQ/狐狸君.json
@@ -0,0 +1,21 @@
+{
+ "搜索模式": "1",
+ "搜索url": "https://www.foxjun.com/s/?q={wd}",
+ "搜索数组": "class=\"media\">&&/div>",
+ "搜索图片": "src=\"&&\"",
+ "搜索标题": "《&&》",
+ "搜索副标题": "》&&\"",
+ "搜索链接": "href=\"&&\"",
+ "标题": "《&&》",
+ "副标题": "》&&\"",
+ "影片年代": "上映日期:&&",
+ "影片类型": "类型:&&",
+ "主演": "主演:&&",
+ "简介": "简介:&&",
+ "播放数组": "&&",
+ "播放列表": "[包含:magnet]",
+ "播放标题": ">&&<",
+ "播放链接": "href=\"&&\"",
+ "分类url": "https://www.foxjun.com/channel/{cateId}.html?apage1={catepg}",
+ "分类": "国产剧$guochanju#电影$dianying#动画$donghua#美欧剧$meiouju#日韩剧$rihanju"
+}
\ No newline at end of file
diff --git a/XBPQ/短剧网.json b/XBPQ/短剧网.json
new file mode 100644
index 0000000..1d5f5a7
--- /dev/null
+++ b/XBPQ/短剧网.json
@@ -0,0 +1,4 @@
+{
+ "分类": "短剧$duanju#电影$dianying#电视剧$dianshiju#动漫$dongman#综艺$zongyi",
+ "分类url": "https://www.duanjuwang.cc/vodtype/{cateId}/page/{catePg}.html"
+}
\ No newline at end of file
diff --git a/XBPQ/秀儿影视.json b/XBPQ/秀儿影视.json
new file mode 100644
index 0000000..0901bce
--- /dev/null
+++ b/XBPQ/秀儿影视.json
@@ -0,0 +1,8 @@
+{
+ "简介": "tt\" style=*>&&",
+ "数组": "&&",
+ "搜索url": "https://xiuer.pro/vod/search/?wd={wd}",
+ "分类url": "https://xiuer.pro/show/{cateId}/area/{area}/class/{class}/page/{catePg}/year/{year}/",
+ "分类": "短剧$duanju#电视剧$dianshiju#电影$dianying#动漫$dongman#综艺$zongyi"
+}
\ No newline at end of file
diff --git a/XBPQ/雪糕影视.json b/XBPQ/雪糕影视.json
new file mode 100644
index 0000000..d90a276
--- /dev/null
+++ b/XBPQ/雪糕影视.json
@@ -0,0 +1,5 @@
+{
+ "分类": "电影$1#剧集$2#综艺$3#动漫$4",
+ "类型": "动作片$1#喜剧片$2#爱情片$21#海外动漫$3#科幻片$4#恐怖片$5#剧情片$6#战争片$7#纪录片$8#其他$9",
+ "分类url": "https://www.xgitv.com/vshow/{cateId}-----------.html"
+}
\ No newline at end of file
diff --git a/XBPQ/面包影视.json b/XBPQ/面包影视.json
new file mode 100644
index 0000000..d943372
--- /dev/null
+++ b/XBPQ/面包影视.json
@@ -0,0 +1,7 @@
+{
+ "请求头": "User-Agent$MOBILE_UA",
+ "编码": "UTF-8",
+ "分类url": "https://v.aiwule.com/vodshow/{cateId}-{area}-{by}-{class}-{lang}-{letter}---{catePg}---{year}.html",
+ "分类": "电影$20#电视剧$21#动漫$23#综艺$22#短剧$47",
+ "简介": "简介:&&"
+}
\ No newline at end of file
diff --git a/config.bin b/config.bin
index 84b08e6..eb59692 100644
--- a/config.bin
+++ b/config.bin
@@ -1,891 +1,1656 @@
{
- "spider": "https://cdn09022024.gitlink.org.cn/api/v1/repos/leevi0321/apps/raw/new.jar;md5;23724CAFB5177BB74289DC95E85B6C6D",
- "wallpaper": "https://yydsys.top/bg.php",
- "logo": "https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1725712769296/%E9%A3%8E%E8%BD%A6new.gif",
- "warningText": "软件接口完全免费,请勿贩卖和购买",
- "sites": [
- {
- "key": "豆瓣",
- "name": "🍥┃豆瓣┃推荐🍥",
- "type": 3,
- "api": "csp_DouBan",
- "searchable": 0,
- "filterable": 1,
- "changeable": 1
- },
- {
- "key": "ConfigCenter",
- "name": "📀┃配置┃中心",
- "type": 3,
- "api": "csp_ConfigCenter",
- "searchable": 0,
- "changeable": 0,
- "ext": {
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.json"
- }
- },
- {
- "key": "多多影音",
- "name": "👲┃多多┃影音",
- "type": 3,
- "api": "csp_kongbai",
- "searchable": 1,
- "changeable": 0,
- "ext": {
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.json",
- "siteUrl": "https://duoduo.banye.tech:7086/",
- "filter": "./lib/wogg.json"
- }
- },
- {
- "key": "多多备用",
- "name": "👲┃多多┃网盘",
- "type": 3,
- "api": "csp_kongbai",
- "searchable": 1,
- "changeable": 0,
- "ext": {
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.jso",
- "siteUrl": "https://tv.yydsys.top/",
- "filter": "./lib/wogg.json"
- }
- },
- {
- "key": "csp_Jianpian",
- "name": "⏳┃荐片┃磁力",
- "type": 3,
- "api": "csp_Jianpian",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "ext": "./lib/jianpian.json"
- },
- {
- "key": "瓜子",
- "name": "🌰┃瓜子┃秒播",
- "type": 3,
- "api": "csp_Gz360",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "金牌",
- "name": "🥇┃金牌┃秒播",
- "type": 3,
- "api": "csp_Jpys",
- "playerType": 1,
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "csp_ReBo",
- "name": "🐠┃热播┃秒播",
- "type": 3,
- "api": "csp_ReBo",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "csp_Czsapp",
- "name": "🏭┃厂长┃影视",
- "type": 3,
- "api": "csp_Czsapp",
- "playerType": 2,
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "ext": "http://www.czzyvideo.com"
- },
- {
- "key": "csp_LiteApple",
- "name": "🍎┃苹果┃盒子",
- "type": 3,
- "api": "csp_LiteApple",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "csp_Wwys",
- "name": "👩🌾┃农民┃影视",
- "type": 3,
- "api": "csp_Wwys",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "ext": "https://wwgz.cn"
- },
- {
- "key": "csp_Siren",
- "name": "👽️┃私人┃影院",
- "type": 3,
- "api": "csp_Siren",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "csp_Kanke",
- "name": "🫣┃看客┃影院",
- "type": 3,
- "api": "csp_Kanke",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "ext": "http://www.guaziys.com"
- },
- {
- "key": "csp_Lkdy",
- "name": "📺︎┃来看┃影院",
- "type": 3,
- "api": "csp_Lkdy",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "csp_SaoHuo",
- "name": "🔥┃骚火┃影院",
- "type": 3,
- "api": "csp_SaoHuo",
- "playerType": 2,
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "ext": "https://shdy5.us"
- },
- {
- "key": "csp_Tvyb",
- "name": "🎥┃TVB┃云播",
- "type": 3,
- "api": "csp_Tvyb",
- "playerType": 2,
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "ext": "http://www.tvyun01.com/"
- },
- {
- "key": "csp_Qiyou",
- "name": "🥝┃奇优┃影院",
- "type": 3,
- "api": "csp_Qiyou",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "csp_Jiaozi",
- "name": "🥟┃饺子┃影视",
- "type": 3,
- "api": "csp_Jiaozi",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "csp_Ddys",
- "name": "🐞┃低端┃影视",
- "type": 3,
- "api": "csp_Ddys",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "csp_Kuaikan",
- "name": "👀┃快看┃影视",
- "type": 3,
- "api": "csp_Kuaikan",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1
- },
- {
- "key": "csp_SP360",
- "name": "🎯┃360┃影视",
- "type": 3,
- "api": "csp_SP360",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "changeable": 1
- },
- {
- "key": "csp_Kanqiu",
- "name": "🏉┃球赛┃直播",
- "type": 3,
- "api": "csp_Kanqiu",
- "searchable": 1,
- "quickSearch": 1,
- "changeable": 0,
- "gridview": 3,
- "style": {
- "type": "list"
- }
- },
- {
- "key": "玩偶gg",
- "name": "💂┃饭硬┃玩偶",
- "type": 3,
- "api": "csp_Wogg",
- "searchable": 1,
- "changeable": 0,
- "ext": {
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.json",
- "siteUrl": "http://wogg.xxooo.cf/",
- "filter": "./lib/wogg.json"
- }
- },
- {
- "key": "蜡笔",
- "name": "🖍️┃蜡笔┃玩偶",
- "type": 3,
- "api": "csp_kongbai",
- "searchable": 1,
- "changeable": 0,
- "ext": {
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.json",
- "siteUrl": "http://feimaoai.site",
- "filter": "./lib/wogg.json"
- }
- },
- {
- "key": "木偶锅锅",
- "name": "️🎠┃木偶┃锅锅",
- "type": 3,
- "api": "csp_kongbai",
- "searchable": 1,
- "changeable": 0,
- "ext": {
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.json",
- "siteUrl": "https://mo.666291.xyz/",
- "filter": "./lib/wogg.json"
- }
- },
- {
- "key": "闪电",
- "name": "⚡┃闪电┃网盘",
- "type": 3,
- "api": "csp_kongbai",
- "searchable": 1,
- "changeable": 0,
- "ext": {
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.json",
- "siteUrl": "http://1.95.79.193",
- "filter": "./lib/wogg.json"
- }
- },
- {
- "key": "盘Ta",
- "name": "🎨┃盘他┃资源",
- "type": 3,
- "api": "csp_PanTa",
- "searchable": 1,
- "filterable": 0,
- "switchable": 0,
- "ext": {
- "siteUrl": "https://www.91panta.cn/",
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.json"
- }
- },
- {
- "key": "网盘集合",
- "name": "🅿┃网盘┃集合",
- "type": 3,
- "api": "csp_网盘集合",
- "searchable": 1,
- "filterable": 0,
- "switchable": 0,
- "ext": {
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.json",
- "share": "./lib/网盘集合.json"
- }
- },
- {
- "key": "csp_非凡资源",
- "name": "🥗┃非凡┃资源",
- "type": 1,
- "api": "http://cj.ffzyapi.com/api.php/provide/vod/",
- "playurl": "json:https://jx.behds.cn/qcb.php?url=",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "categories": [
- "动作片",
- "喜剧片",
- "科幻片",
- "恐怖片",
- "爱情片",
- "剧情片",
- "战争片",
- "记录片",
- "国产剧",
- "欧美剧",
- "香港剧",
- "韩国剧",
- "台湾剧",
- "日本剧",
- "海外剧",
- "泰国剧",
- "国产动漫",
- "日韩动漫",
- "欧美动漫",
- "港台动漫",
- "海外动漫",
- "大陆综艺",
- "港台综艺",
- "日韩综艺",
- "欧美综艺"
- ]
- },
- {
- "key": "量子资源",
- "name": "🥑┃量子┃资源",
- "type": 1,
- "api": "http://cj.lziapi.com/api.php/provide/vod/",
- "playurl": "json:https://jx.behds.cn/qcb.php?url=",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 0,
- "categories": [
- "国产剧",
- "国产动漫",
- "泰国剧",
- "台湾剧",
- "香港剧",
- "欧美剧",
- "韩国剧",
- "日本剧",
- "动漫",
- "体育",
- "剧情片",
- "动作片",
- "爱情片",
- "喜剧片"
- ]
- },
- {
- "key": "csp_SNzy",
- "name": "🐉┃索尼┃高清",
- "type": 1,
- "api": "https://suoniapi.com/api.php/provide/vod/?ac=list",
- "playurl": "json:https://jx.behds.cn/qcb.php?url=",
- "searchable": 1,
- "quickSearch": 1,
- "filterable": 1,
- "categories": [
- "动作片",
- "喜剧片",
- "科幻片",
- "恐怖片",
- "爱情片",
- "剧情片",
- "战争片",
- "记录片",
- "国产剧",
- "欧美剧",
- "香港剧",
- "韩国剧",
- "台湾剧",
- "日本剧",
- "海外剧",
- "泰国剧",
- "国产动漫",
- "日韩动漫",
- "欧美动漫",
- "港台动漫",
- "海外动漫",
- "大陆综艺",
- "港台综艺",
- "日韩综艺",
- "欧美综艺"
- ]
- },
- {
- "key": "push_agent",
- "name": "📨┃手机┃推送",
- "type": 3,
- "api": "csp_Push",
- "searchable": 0,
- "quickSearch": 0,
- "ext": {
- "commonConfig": "http://127.0.0.1:9978/file/TVBox/peizhi.json"
- }
- }
- ],
- "lives": [
- {
- "name": "zbds",
- "type": 0,
- "url": "https://live.zbds.top/tv/iptv4.txt",
- "epg": "http://epg.112114.xyz/?ch={name}&date={date}",
- "logo": "https://epg.112114.xyz/logo/{name}.png"
- },
- {
- "name": "爱看港台",
- "type": 0,
- "url": "https://aktv.top/live.txt",
- "epg": "http://epg.112114.xyz/?ch={name}&date={date}",
- "logo": "https://epg.112114.xyz/logo/{name}.png"
- },
- {
- "name": "myernestlu",
- "type": 0,
- "url": "https://myernestlu.github.io/zby.txt",
- "epg": "http://epg.112114.xyz/?ch={name}&date={date}",
- "logo": "https://epg.112114.xyz/logo/{name}.png"
- },
- {
- "name": "ganjue",
- "type": 0,
- "url": "http://27.54.236.201:6897/uploads/tvbox/tv.txt",
- "epg": "http://epg.112114.xyz/?ch={name}&date={date}",
- "logo": "https://epg.112114.xyz/logo/{name}.png"
- },
- {
- "name": "wwb521",
- "type": 0,
- "url": "https://ghp.ci/https://raw.githubusercontent.com/wwb521/live/main/ipv4.txt",
- "epg": "http://epg.112114.xyz/?ch={name}&date={date}",
- "logo": "https://epg.112114.xyz/logo/{name}.png"
- },
- {
- "name": "qingwen",
- "type": 0,
- "url": "https://ghp.ci/https://raw.githubusercontent.com/qingwen07/awesome-iptv/maintvbox_live_all.txt",
- "epg": "http://epg.112114.xyz/?ch={name}&date={date}",
- "logo": "https://epg.112114.xyz/logo/{name}.png"
- }
- ],
- "parses": [
- {
- "name": "json聚合",
- "type": 3,
- "url": "Demo"
- },
- {
- "name": "Web嗅探",
- "type": 3,
- "url": "Web"
- },
- {
- "name": "自动①号",
- "type": 1,
- "url": "https://jxjson.icu/neibu.php?url=",
- "ext": {
- "flag": [
- "qq",
- "腾讯",
- "qiyi",
- "爱奇艺",
- "奇艺",
- "youku",
- "优酷",
- "sohu",
- "搜狐",
- "letv",
- "乐视",
- "mgtv",
- "芒果",
- "tnmb",
- "seven",
- "bilibili",
- "1905"
- ],
- "header": {
- "User-Agent": "okhttp/4.9.1"
+ "spider": "https://cdn09022024.gitlink.org.cn/api/v1/repos/leevi0321/apps/raw/spider.jar;md5;912ACA622048F595ACA9EC9ABDFAABD2",
+ "wallpaper": "http://bobohome.ignorelist.com:20247/bing",
+ "logo": "http://127.0.0.1:9978/file/TVBox/logo.png",
+ "sites": [
+ {
+ "key": "豆瓣",
+ "name": "🍥┃豆瓣┃推荐🍥",
+ "type": 3,
+ "api": "csp_Douban",
+ "searchable": 0
+ },
+ {
+ "key": "配置中心",
+ "name": "⚙️┃配置┃中心",
+ "type": 3,
+ "api": "csp_Config",
+ "searchable": 0,
+ "changeable": 0,
+ "indexs": 0,
+ "style": {
+ "type": "rect",
+ "ratio": 1.597
+ }
+ },
+ {
+ "key": "影视配置",
+ "name": "🛞┃影视┃配置",
+ "type": 3,
+ "api": "csp_Wexconfig",
+ "searchable": 0,
+ "changeable": 0,
+ "indexs": 0,
+ "style": {
+ "type": "rect",
+ "ratio": 1.597
+ },
+ "jar": "https://cdn09022024.gitlink.org.cn/api/v1/repos/leevi0321/apps/raw/wex.jar;md5;A2E404CA5B03A236D97E5A2D6486AC89"
+ },
+ {
+ "key": "多多弹幕",
+ "name": "👲┃多多┃影音",
+ "type": 3,
+ "api": "csp_Wobg",
+ "quickSearch": 1,
+ "changeable": 1,
+ "filterable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "uc_cookie": "http://127.0.0.1:9978/file/TVBox/uc.txt",
+ "site": "https://duoduo.banye.tech:7086",
+ "danmu": true
+ }
+ },
+ {
+ "key": "多多网盘",
+ "name": "👲┃多多┃网盘",
+ "type": 3,
+ "api": "csp_Wobg",
+ "quickSearch": 1,
+ "changeable": 1,
+ "filterable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "uc_cookie": "http://127.0.0.1:9978/file/TVBox/uc.txt",
+ "site": "https://tv.yydsys.top",
+ "danmu": true
+ }
+ },
+ {
+ "key": "荐片",
+ "name": "⏳┃荐片┃磁力",
+ "type": 3,
+ "api": "csp_Jianpian",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "playerType": 1,
+ "ext": {
+ "danmu": true
+ }
+ },
+ {
+ "key": "旺旺影视",
+ "name": "🌞┃旺旺┃影视",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "ext": "./XBPQ/农民影视.json"
+ },
+ {
+ "key": "厂长弹幕",
+ "name": "🏭┃厂长┃弹幕",
+ "type": 3,
+ "api": "csp_Czzy",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": {
+ "danmu": true
+ }
+ },
+ {
+ "key": "天天弹幕",
+ "name": "⏱️┃天天┃弹幕",
+ "type": 3,
+ "api": "csp_TianTian",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": {
+ "danmu": true,
+ "site": "aHR0cDovL3R0LnlzZHFqcy5jbg=="
+ }
+ },
+ {
+ "key": "金牌影视",
+ "name": "🥇┃金牌┃影视",
+ "type": 3,
+ "api": "csp_WebJP",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "KhY021WelCEl+6MsvwnzaPusskysEhxc/i3d/FHwReBTtZTeDEVZJbQKKez3K+OxlrjAIMdUpAUxP8fGystYn0Hss098UFVR69Qm2ARgmeZN86q8Ww=="
+ },
+ {
+ "key": "热播弹幕",
+ "name": "🐠┃热播┃秒播",
+ "type": 3,
+ "api": "csp_TianTian",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": {
+ "danmu": true,
+ "site": "aHR0cDovL3YucmJvdHYuY24="
+ }
+ },
+ {
+ "key": "浪酷弹幕",
+ "name": "🏄️┃浪酷┃弹幕",
+ "type": 3,
+ "api": "csp_TianTian",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": {
+ "danmu": true,
+ "site": "aHR0cDovL3YubGt1eXMuY24="
+ }
+ },
+ {
+ "key": "瓜子影视",
+ "name": "🍈┃瓜子┃影视",
+ "type": 3,
+ "api": "csp_Gz360",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "西瓜视频",
+ "name": "🍉┃西瓜┃视频",
+ "type": 3,
+ "api": "csp_AmuXiguaV2",
+ "searchable": 1,
+ "quickSearch": 0,
+ "filterable": 0,
+ "changeable": 0,
+ "style": {
+ "type": "rect",
+ "ratio": 1.597
+ }
+ },
+ {
+ "key": "文才弹幕",
+ "name": "🖌┃文才┃弹幕",
+ "type": 3,
+ "api": "csp_Jpys",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": {
+ "danmu": true
+ }
+ },
+ {
+ "key": "素白白",
+ "name": "🐑┃白白┃影视",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/素白白.js"
+ },
+ {
+ "key": "哔哩弹幕",
+ "name": "🅱️┃哔哩┃弹幕",
+ "type": 3,
+ "api": "csp_Bilimd",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "style": {
+ "type": "rect",
+ "ratio": 1.597
+ },
+ "ext": {
+ "cookie": "http://127.0.0.1:9978/file/TVBox/bilibili.txt"
+ },
+ "timeout": 10
+ },
+ {
+ "key": "哔哩合集",
+ "name": "🅱️┃哔哩┃合集",
+ "type": 3,
+ "api": "csp_Bili",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "style": {
+ "type": "rect",
+ "ratio": 1.597
+ },
+ "ext": {
+ "cookie": "http://127.0.0.1:9978/file/TVBox/bilibili.txt",
+ "json": "./JSON/哔哩合集.json"
+ },
+ "timeout": 10
+ },
+ {
+ "key": "立播弹幕",
+ "name": "🤍┃立播┃弹幕",
+ "type": 3,
+ "api": "csp_Libvio",
+ "searchable": 1,
+ "filterable": 1,
+ "changeable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "uc_cookie": "http://127.0.0.1:9978/file/TVBox/uc.txt",
+ "site": "https://www.libvio.cc",
+ "danmu": true
+ }
+ },
+ {
+ "key": "小苹果弹幕",
+ "name": "🍎┃苹果┃盒子",
+ "type": 3,
+ "api": "csp_Xpg",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": {
+ "danmu": true
+ }
+ },
+ {
+ "key": "玩偶弹幕",
+ "name": "💂┃饭硬┃玩偶",
+ "type": 3,
+ "api": "csp_Wogg",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "uc_cookie": "http://127.0.0.1:9978/file/TVBox/uc.txt",
+ "wogg": true,
+ "danmu": true
+ }
+ },
+ {
+ "key": "夸克闪电弹幕",
+ "name": "⚡️┃闪电┃网盘",
+ "type": 3,
+ "api": "csp_Wobg",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "changeable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "uc_cookie": "http://127.0.0.1:9978/file/TVBox/uc.txt",
+ "site": "https://shandian.banye.tech:7086",
+ "danmu": true
+ }
+ },
+ {
+ "key": "夸克蜡笔弹幕",
+ "name": "🖍️┃蜡笔┃玩偶",
+ "type": 3,
+ "api": "csp_Wobg",
+ "quickSearch": 1,
+ "changeable": 1,
+ "filterable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "uc_cookie": "http://127.0.0.1:9978/file/TVBox/uc.txt",
+ "site": "https://labi.banye.tech:7086",
+ "danmu": true
+ }
+ },
+ {
+ "key": "夸克木偶弹幕",
+ "name": "🎠┃木偶┃锅锅",
+ "type": 3,
+ "api": "csp_Wobg",
+ "quickSearch": 1,
+ "changeable": 1,
+ "filterable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "uc_cookie": "http://127.0.0.1:9978/file/TVBox/uc.txt",
+ "site": "https://mogg.banye.tech:7086",
+ "danmu": true
+ }
+ },
+ {
+ "key": "雷鲸",
+ "name": "🐋┃雷鲸┃天意",
+ "type": 3,
+ "api": "csp_Wexleijing",
+ "searchable": 1,
+ "changeable": 1,
+ "jar": "https://cdn09022024.gitlink.org.cn/api/v1/repos/leevi0321/apps/raw/wex.jar;md5;A2E404CA5B03A236D97E5A2D6486AC89"
+ },
+ {
+ "key": "盘他",
+ "name": "🥏┃盘他┃网盘",
+ "type": 3,
+ "api": "csp_WexYDpanta",
+ "searchable": 1,
+ "changeable": 1,
+ "jar": "https://cdn09022024.gitlink.org.cn/api/v1/repos/leevi0321/apps/raw/wex.jar;md5;A2E404CA5B03A236D97E5A2D6486AC89"
+ },
+ {
+ "key": "星芽短剧",
+ "name": "🌟┃星芽┃短剧",
+ "type": 3,
+ "api": "csp_AppXY",
+ "searchable": 1,
+ "quickSearch": 0,
+ "filterable": 0
+ },
+ {
+ "key": "河马短剧",
+ "name": "🦛┃河马┃短剧",
+ "type": 3,
+ "api": "csp_AppHMDJ",
+ "searchable": 1,
+ "quickSearch": 0,
+ "filterable": 0,
+ "ext": "KhY021WelCEl+6MsvwnzaPussky/EAoc9z7C4keyHaEQ+sKbXhMKd83VjTL7Ls6+m7XDIcGdziOxPv79y/h4QCvmOEJmZ1VD6dopzAVxkFzEFw=="
+ },
+ {
+ "key": "短剧网",
+ "name": "🔦┃短剧┃聚合",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "ext": "./XBPQ/短剧网.json"
+ },
+ {
+ "key": "短剧屋",
+ "name": "🏠️┃短剧┃小屋",
+ "type": 3,
+ "api": "csp_XYQHiker",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "./json/短剧屋.json"
+ },
+ {
+ "key": "短剧合集",
+ "name": "🐦🔥┃短剧┃合集",
+ "type": 3,
+ "api": "./JS/quark.min.js",
+ "ext": "./JS/短剧合集.js",
+ "style": {
+ "type": "list"
+ }
+ },
+ {
+ "key": "韩小圈",
+ "name": "🍩┃韩圈┃影视",
+ "type": 3,
+ "api": "csp_HanXiaoQuan",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "HG影视",
+ "name": "🥒┃黄瓜┃影像",
+ "type": 3,
+ "api": "csp_AppYsV2",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "https://cs.hgyx.vip/api2/api.php/app/"
+ },
+ {
+ "key": "巧技",
+ "name": "🛠️┃巧技┃影视",
+ "type": 3,
+ "api": "csp_qiao2",
+ "playerType": 2,
+ "ext": "https://fs-im-kefu.7moor-fs1.com/ly/4d2c3f00-7d4c-11e5-af15-41bf63ae4ea0/1740038979341/cksp.txt"
+ },
+ {
+ "key": "二三",
+ "name": "🤞┃二三┃影视",
+ "type": 3,
+ "api": "csp_Muou",
+ "playerType": 2,
+ "ext": "caHR0cHM6Ly8xMjN5c3cuY29tfDIz5b2x6KeGfDQuMS44"
+ },
+ {
+ "key": "油条",
+ "name": "🍟┃薯条┃影视",
+ "type": 3,
+ "api": "csp_Muou",
+ "playerType": 2,
+ "ext": "caHR0cDovL3UzYS50dHhnenMuY2585LyY5LyY5YWUfDQuMS45"
+ },
+ {
+ "key": "时常",
+ "name": "🪖┃收藏┃影视",
+ "type": 3,
+ "api": "csp_Xdai",
+ "playerType": 1,
+ "ext": "jaHR0cHM6Ly9zYzEwODAudG9wfGU1OWQ0NGIyZWVmMDNiYTJ8ZTU5ZDQ0YjJlZWYwM2JhMnwxMzQ="
+ },
+ {
+ "key": "现代",
+ "name": "⏲️┃现代┃影视",
+ "type": 3,
+ "api": "csp_Xdai",
+ "playerType": 1,
+ "ext": "caHR0cHM6Ly94ZHlzLnZpcC9nZXRhcHAudHh0fHN6ZGp3ZGFwcHdjbm1kaGJ8c3pkandkYXBwd2NubWRoYnwxMTQ="
+ },
+ {
+ "key": "木叶",
+ "name": "🍂┃木叶┃影视",
+ "type": 3,
+ "api": "csp_Xdai",
+ "playerType": 2,
+ "ext": "saHR0cDovL2hvc3QueXl5cy5uZXdzLzI1MDEyMy50eHR8UnVOOUxSdndUUmdwUW5wS3xSdU45TFJ2d1RSZ3BRbnBLfDU0Ng=="
+ },
+ {
+ "key": "快看",
+ "name": "🫣┃快看┃影视",
+ "type": 3,
+ "api": "csp_AppYsV2",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "changeable": 1,
+ "ext": "http://kkwk123.top/api.php/app/"
+ },
+ {
+ "key": "站长影视",
+ "name": "👑┃站长┃影视",
+ "type": 3,
+ "api": "csp_AppGetApp",
+ "searchable": 1,
+ "quickSearch": 0,
+ "filterable": 0,
+ "ext": "w7TClcK8w5rDrcKYwoPCmcKkw57ClcK0wpvCnF9SwoPCmcOtw5jDj8Orw6ZValLCmMOtw6fDqsOswrRiX8KdacOcw57CrMKxw6DCqmbCnmPDpsKow6XCsMKywpRhYMKUwqfDl8Ozw7LDtGVewpPCn8Omwq3Cr8KvwrJsX8KRwqDDosKhw6rDocOqVVxSecOnw5zDrsOQw6nCpcKUUmrCm8KVwqbCm8OuwpzCoFJqwpvDjuWHv+mFoeaQn+WQllzlhpzkvYflkbDCreW/q+iov+i2vua7g+esicKNUsKlwpXCu8Oew61+wpXCqVLCs8KVw57DssOzwq3CpMKmwpHDqcOcw5vDqcOqwqzCqcKUwqPCm8KfwpzCusOfwqZ5wqZSwrPClcOew7LDs8KtwqTCpsKRw6nDnMObw6nDqsKswqnClMKjwpvDsA=="
+ },
+ {
+ "key": "云播影视",
+ "name": "🌤️┃云播┃APP",
+ "type": 3,
+ "api": "csp_AppGetApp",
+ "searchable": 1,
+ "quickSearch": 0,
+ "filterable": 0,
+ "ext": "w7TCmsK8w5rDrcKYwoPCmcKkw57CmsK0wpnCoVpcUFfDjMOcw67DnsOPwqXCnFdqwpnCmsOiw63DrsKjal9fw6DDmMOuw5rDqsKjXsKkwqbDssOVw5vDqcOqYcKTwp/CncKow5TDqsOiwqjCo8KYwqBXwqXCk8Khw4LDqMKcwqTCh8Kfw6vDl8KhwrPCmlrCmcKewpnDrcOJwqvCqsKzWlxQV8Otw5zDqsKgwrRTV8KL5Ya16YWh5pCY5ZGdwqXlh6bkvYrlkKdq5b6h6Ki/6La35ryK562Sw5daXFBXwrrDmMOtw4TDn8KsV2pQwqDDoMOjw5zDpWVkZWjDpsOcw53DpMKsZ2VoV8KlwpPCocK6w5/CpnnCplfCs8KTwqHDpsOjwpbCm2Jkwq7Cq8Onw6LDncKeYmRlwrHCmsKmwpnCocKbwpXCkcKUw57DpcOtwqDCtFPCq1fCpcOsw5jDrMKmw5vCmsKVwp7CpMKgwq3CmsKgw4fCosKqwpnCnMOlw5TCqcKuwqhjUFjCh8Oiw6HDnsOow7HCplB+woTCmcKkwqrCp8KqblDCh8KZw6fCqcKuwrTCmsKrZmRZwpnCtMOqw6nDpsKYwofClcKSw4TDnMOuwqjCr2ZnXmPCr8KTwqLDhMOCwod9fFzCmcOfw6PDpMOfU3fClcKTw6TDosKjwpnCvcKbwqLCn8Kdw57CosKrwqrCrGFgXmDCp8KjwprDjMObwpnCkcKiwpnCqMKowq3CsMKoZmZXXMKZwprDm8Olw6bCosKnc8Kiw6jDpsOtw4nDrMKiwqTCn8KTw6jDn8OMw57DnsKcwqLClcKTw63DpsKhwrPCmsKHwqLCpcKVw7bCn8KawqDDnsKYwpPCosKpw6nDp8OFw57Ds1pqUFfDssOUw6nDsMObwqHCl2BhwqvCqcKhw7Y="
+ },
+ {
+ "key": "洽洽影视",
+ "name": "🏕️┃洽洽┃影视",
+ "type": 3,
+ "api": "csp_AppGZ",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "KhY021WelCEl+6MsvwnzaPussky6FQJcpCjT9V7/D61ft9vQAhNEPOYSMZVJSODd/JOOSOwUzim+9qfvgpNz7SvUPpAkXAweyrp76WY8s5EBwW7DBMY="
+ },
+ {
+ "key": "小米电影",
+ "name": "🍚┃小米┃电影",
+ "type": 3,
+ "searchable": 1,
+ "quickSearch": 1,
+ "api": "csp_MovieApp"
+ },
+ {
+ "key": "秀儿影视",
+ "name": "🐷┃秀儿┃影视",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "ext": "./XBPQ/秀儿影视.json"
+ },
+ {
+ "key": "低端影视",
+ "name": "🦄┃低端┃影视",
+ "type": 3,
+ "api": "csp_Ddys",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "快看影视",
+ "name": "👁️┃快看┃影视",
+ "type": 3,
+ "api": "csp_Kuaikan",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "来看影视",
+ "name": "📺︎┃来看┃影视",
+ "type": 3,
+ "api": "csp_Lkdy",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "全网影视",
+ "name": "🕸️┃全网┃影视",
+ "type": 3,
+ "api": "csp_Quanwk",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "https://www.91qkw.com"
+ },
+ {
+ "key": "奇优影视",
+ "name": "🥝┃奇优┃影视",
+ "type": 3,
+ "api": "csp_Qiyou",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "http://www.dyxz2.com/"
+ },
+ {
+ "key": "海纳影视",
+ "name": "🌊┃海纳┃影视",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "ext": "./XBPQ/海纳影视.json"
+ },
+ {
+ "key": "面包影视",
+ "name": "🍞┃面包┃影视",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "ext": "./XBPQ/面包影视.json"
+ },
+ {
+ "key": "永乐影视",
+ "name": "🎵┃永乐┃影视",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "ext": "./XBPQ/永乐影视.json"
+ },
+ {
+ "key": "雪糕影视",
+ "name": "🧁┃雪糕┃影视",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "ext": "./XBPQ/雪糕影视.json"
+ },
+ {
+ "key": "真心影视",
+ "name": "💞┃真心┃影视",
+ "type": 3,
+ "api": "csp_WebGZ",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "1905",
+ "name": "🎦┃央妈┃电影",
+ "type": 3,
+ "api": "csp_Web1905",
+ "searchable": 1,
+ "quickSearch": 0,
+ "filterable": 0
+ },
+ {
+ "key": "索尼资源",
+ "name": "🐉┃索尼┃采集",
+ "type": 1,
+ "api": "https://suoniapi.com/api.php/provide/vod/",
+ "searchable": 1,
+ "changeable": 1,
+ "categories": [
+ "动作片",
+ "喜剧片",
+ "爱情片",
+ "科幻片",
+ "恐怖片",
+ "剧情片",
+ "战争片",
+ "纪录片",
+ "动画片",
+ "国产剧",
+ "欧美剧",
+ "韩剧",
+ "日剧",
+ "港剧",
+ "台剧",
+ "泰剧",
+ "海外剧",
+ "大陆综艺",
+ "日韩综艺",
+ "港台综艺",
+ "欧美综艺",
+ "国产动漫",
+ "日韩动漫",
+ "欧美动漫",
+ "港台动漫",
+ "海外动漫"
+ ]
+ },
+ {
+ "key": "量子资源",
+ "name": "🥑┃量子┃资源",
+ "type": 1,
+ "api": "https://cj.lziapi.com/api.php/provide/vod/",
+ "searchable": 1,
+ "changeable": 1,
+ "categories": [
+ "动作片",
+ "喜剧片",
+ "科幻片",
+ "恐怖片",
+ "爱情片",
+ "剧情片",
+ "战争片",
+ "记录片",
+ "国产剧",
+ "欧美剧",
+ "香港剧",
+ "韩国剧",
+ "台湾剧",
+ "日本剧",
+ "海外剧",
+ "泰国剧",
+ "国产动漫",
+ "日韩动漫",
+ "欧美动漫",
+ "港台动漫",
+ "海外动漫",
+ "大陆综艺",
+ "港台综艺",
+ "日韩综艺",
+ "欧美综艺"
+ ]
+ },
+ {
+ "key": "非凡资源",
+ "name": "🥗┃非凡┃资源",
+ "type": 1,
+ "api": "http://cj.ffzyapi.com/api.php/provide/vod/",
+ "searchable": 1,
+ "changeable": 1,
+ "categories": [
+ "动作片",
+ "喜剧片",
+ "科幻片",
+ "恐怖片",
+ "爱情片",
+ "剧情片",
+ "战争片",
+ "记录片",
+ "国产剧",
+ "欧美剧",
+ "香港剧",
+ "韩国剧",
+ "台湾剧",
+ "日本剧",
+ "海外剧",
+ "泰国剧",
+ "国产动漫",
+ "日韩动漫",
+ "欧美动漫",
+ "港台动漫",
+ "海外动漫",
+ "大陆综艺",
+ "港台综艺",
+ "日韩综艺",
+ "欧美综艺"
+ ]
+ },
+ {
+ "key": "哆啦新番社",
+ "name": "🖼️┃哆啦┃动漫",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "style": {
+ "type": "list"
+ },
+ "ext": "./XBPQ/哆啦新番社.json"
+ },
+ {
+ "key": "56动漫",
+ "name": "🖼️┃五六┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/56动漫.js"
+ },
+ {
+ "key": "NT动漫",
+ "name": "🖼️┃奈特┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/NT动漫.js"
+ },
+ {
+ "key": "Anime1",
+ "name": "🖼️┃ANM┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/Anime1.js"
+ },
+ {
+ "key": "曼波动漫",
+ "name": "🖼️┃曼波┃动漫",
+ "type": 3,
+ "api": "csp_AppGetApp",
+ "searchable": 1,
+ "quickSearch": 0,
+ "filterable": 0,
+ "ext": "w7TClcK8w5rDrcKYwoPCmcKkw57ClcK0wpvCnF9SwoPCmcOtw5jDj8Orw6ZValLCmMOtw6fDqsOswrRiX8KRwqDDqcKhw6nDpsOpwpnCpcKeYcKnw6fDqcOpwqnClMKgwplew6nDm8OqwpvCplXCpMKZwqDCm8KtwpzDlOWHv+mEm+aPleWQk1zlh6XkvorlkbHCs+W/q+inuei1tOa7gOesicOWwpXCpsKbwrvCmMKje8KVw7LClcK0wpvCsGnClMKTY8KpwqzDncObw5/CmMKTwpFkwq7Cp8KcwqXCnHTClcKjecOvwpXCtMKbwrBpwpTCk2PCqcKsw53Dm8OfwpjCk8KRZMKuwqfCnMO2"
+ },
+ {
+ "key": "稀饭动漫",
+ "name": "🖼️┃稀饭┃动漫",
+ "type": 3,
+ "api": "csp_AppGetApp",
+ "searchable": 1,
+ "quickSearch": 0,
+ "filterable": 0,
+ "ext": "w7TClcK8w5rDrcKYwoPCmcKkw57ClcK0wpvDosKnwqTCoMKjwrPCosKpw7HDoMKUwqDCoF3CqsKmwqrCrsKtbGBgZsKuwqHDncOow61hwpHCoF3DoMOow5vDp8Ohwq3CmMKfwqXCp8Ogw7PDqsOdwp/Cn8KlwpTCp8OWw6nDpsKpwprClcKkwpHDqcOjwqjDrcOywqdSXFLDgsOhw6PDrcORwqLCosKUUsKzwpXCnMKlwpzCp8KZwqBSwrPClcOV5Ye+6YWi5o+Y5ZCTXOWGnOS+kOWRqsK05b+q6KmA6LW35ruA56yJwo3Cm8KfwpzCusOfwqZ7wpXCqcKbwq3CnMKqw7PCjWLCg8Kgw6fCrMOlw6vDqMKtwoZ7wp/CvMKVwqbCm8K7wpjCo3nCpsKbwq3CnMKqw7PCjWLCg8Kgw6fCrMOlw6vDqMKtwoZ7wp/CvMKVwqbCm8ONwpzCpMKVwoXDq8OfwpzCs8KcVcKt"
+ },
+ {
+ "key": "动画片",
+ "name": "🖼️┃动画┃大全",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/动画片大全.js"
+ },
+ {
+ "key": "路漫漫",
+ "name": "🖼️┃路漫┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/路漫漫.js"
+ },
+ {
+ "key": "动漫岛",
+ "name": "🖼️┃岛屿┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/动漫岛.js"
+ },
+ {
+ "key": "去看吧",
+ "name": "🖼️┃看吧┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/去看吧.js"
+ },
+ {
+ "key": "爱弹幕",
+ "name": "🖼️┃弹幕┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/爱弹幕.js"
+ },
+ {
+ "key": "好看动漫",
+ "name": "🖼️┃好看┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/好看动漫.js"
+ },
+ {
+ "key": "奇米动漫",
+ "name": "🖼️┃奇米┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/奇米动漫.js"
+ },
+ {
+ "key": "花子动漫",
+ "name": "🖼️┃花子┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/花子动漫.js"
+ },
+ {
+ "key": "动漫巴士",
+ "name": "🖼️┃巴士┃动漫",
+ "type": 3,
+ "api": "./JS/drpy2.min.js",
+ "ext": "./JS/动漫巴士.js"
+ },
+ {
+ "key": "搜索弹幕",
+ "name": "📀┃网盘┃搜索",
+ "type": 3,
+ "api": "csp_PanSearch",
+ "searchable": 1,
+ "filterable": 0,
+ "changeable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "danmu": true
+ }
+ },
+ {
+ "key": "易搜弹幕",
+ "name": "📀┃易搜┃搜索",
+ "type": 3,
+ "api": "csp_YiSo",
+ "searchable": 1,
+ "filterable": 0,
+ "changeable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "danmu": true,
+ "cookie": "satoken=0eedba28-be8a-4f01-81af-2d8d44808ecf"
+ }
+ },
+ {
+ "key": "云盘弹幕",
+ "name": "📀┃超清┃云盘",
+ "type": 3,
+ "api": "csp_Yunpan4k",
+ "searchable": 1,
+ "filterable": 0,
+ "changeable": 1,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "danmu": true
+ }
+ },
+ {
+ "key": "夸搜弹幕",
+ "name": "📀┃夸克┃搜索",
+ "type": 3,
+ "api": "csp_Qkso",
+ "searchable": 1,
+ "filterable": 1,
+ "changeable": 0,
+ "ext": {
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "danmu": true
+ }
+ },
+ {
+ "key": "小纸条弹幕",
+ "name": "📀┃纸条┃搜索",
+ "type": 3,
+ "api": "csp_XiaoZhiTiao",
+ "searchable": 1,
+ "filterable": 1,
+ "changeable": 0,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "danmu": true
+ }
+ },
+ {
+ "key": "夸克趣盘搜弹幕",
+ "name": "📀┃趣盘┃搜索",
+ "type": 3,
+ "api": "csp_QuPanSou",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "changeable": 1,
+ "ext": {
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "danmu": true
+ }
+ },
+ {
+ "key": "夸克短剧弹幕",
+ "name": "📀┃夸克┃短剧",
+ "type": 3,
+ "api": "csp_Qkdj",
+ "searchable": 1,
+ "filterable": 1,
+ "changeable": 0,
+ "ext": {
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "danmu": true
+ }
+ },
+ {
+ "key": "修罗影视",
+ "name": "🧲┃修罗┃磁力",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "./XBPQ/修罗影视.json"
+ },
+ {
+ "key": "80S",
+ "name": "🧲┃80S┃磁力",
+ "type": 3,
+ "api": "csp_BLSGod",
+ "playerType": 1,
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "New6v",
+ "name": "🧲┃六维┃磁力",
+ "type": 3,
+ "api": "csp_New6v",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "https://www.xb6v.com"
+ },
+ {
+ "key": "SeedHub",
+ "name": "🧲┃种子┃磁力",
+ "type": 3,
+ "api": "csp_SeedHub",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "美剧迷",
+ "name": "🧲┃美剧┃磁力",
+ "type": 3,
+ "api": "csp_MeijuMi",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "迅雷吧",
+ "name": "🧲┃迅雷┃磁力",
+ "type": 3,
+ "api": "csp_Xunlei8",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "电影港",
+ "name": "🧲┃港口┃磁力",
+ "type": 3,
+ "api": "csp_XYQHiker",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "./json/电影港.json"
+ },
+ {
+ "key": "狐狸君",
+ "name": "🧲┃狐狸┃磁力",
+ "type": 3,
+ "api": "csp_XBPQ",
+ "changeable": 1,
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1,
+ "ext": "./XBPQ/狐狸君.json"
+ },
+ {
+ "key": "Mp4电影",
+ "name": "🧲┃高清┃磁力",
+ "type": 3,
+ "api": "csp_Mp4Mov",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "美剧天堂",
+ "name": "🧲┃天堂┃磁力",
+ "type": 3,
+ "api": "csp_MeijuTT",
+ "searchable": 1,
+ "quickSearch": 1,
+ "filterable": 1
+ },
+ {
+ "key": "我的阿里",
+ "name": "🧑💼┃我的┃阿里",
+ "type": 3,
+ "api": "csp_MyAli",
+ "searchable": 0,
+ "quickSearch": 0,
+ "filterable": 0,
+ "indexs": 0,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt"
+ },
+ "style": {
+ "type": "list"
+ }
+ },
+ {
+ "key": "我的夸克",
+ "name": "🧑💼┃我的┃夸克",
+ "type": 3,
+ "api": "csp_MyQuark",
+ "searchable": 0,
+ "quickSearch": 0,
+ "filterable": 0,
+ "indexs": 0,
+ "ext": {
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt"
+ },
+ "style": {
+ "type": "list"
+ }
+ },
+ {
+ "key": "我的UC",
+ "name": "🧑💼┃我的┃UC",
+ "type": 3,
+ "api": "csp_MyUc",
+ "searchable": 0,
+ "quickSearch": 0,
+ "filterable": 0,
+ "indexs": 0,
+ "ext": {
+ "uc_cookie": "http://127.0.0.1:9978/file/TVBox/uc.txt"
+ },
+ "style": {
+ "type": "list"
+ }
+ },
+ {
+ "key": "阿里合集",
+ "name": "🦊┃阿里┃合集",
+ "type": 3,
+ "api": "csp_AliShare",
+ "searchable": 1,
+ "changeable": 0,
+ "filterable": 0,
+ "indexs": 0,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "share": "./JS/alishare.txt"
+ },
+ "style": {
+ "type": "list"
+ }
+ },
+ {
+ "key": "AList",
+ "name": "🧭┃ALi┃合集",
+ "type": 3,
+ "api": "csp_AList",
+ "searchable": 1,
+ "filterable": 1,
+ "changeable": 0,
+ "style": {
+ "type": "list"
+ },
+ "ext": "./JSON/alist.json"
+ },
+ {
+ "key": "网络直播",
+ "name": "🪗┃网络┃直播",
+ "type": 3,
+ "api": "csp_Living",
+ "searchable": 1
+ },
+ {
+ "key": "push_agent",
+ "name": "📲┃手机┃推送",
+ "type": 3,
+ "api": "csp_Push",
+ "searchable": 0,
+ "filterable": 0,
+ "changeable": 0,
+ "ext": {
+ "token": "http://127.0.0.1:9978/file/TVBox/token.txt",
+ "cookie": "http://127.0.0.1:9978/file/TVBox/quark.txt",
+ "uc_cookie": "http://127.0.0.1:9978/file/TVBox/uc.txt",
+ "danmu": true
+ }
}
- }
- },
- {
- "name": "自动②号",
- "type": "1",
- "url": "http://43.248.100.147:6068/KEY/XGJ/root/key/70.php?url=",
- "ext": {
- "flag": [
- "youku",
- "qq",
- "qiyi",
- "bilibili",
- "mgtv",
- "pptv",
- "xigua",
- "NBY",
- "ETH-",
- "BBA",
- "TX",
- "MXTV",
- "mytv",
- "nmys",
- "yhdm",
- "BNNB",
- "letu",
- "DJWB",
- "DJWX",
- "DJWT",
- "duanju"
- ],
- "header": {
- "User-Agent": "Dalvik/2.1.0"
+ ],
+ "parses": [
+ {
+ "name": "臻享",
+ "type": "1",
+ "url": "https://zy.qiaoji8.com/gouzi.php?url=",
+ "ext": {
+ "flag": [
+ "qq",
+ "腾讯",
+ "qiyi",
+ "爱奇艺",
+ "奇艺",
+ "youku",
+ "优酷",
+ "sohu",
+ "搜狐",
+ "letv",
+ "乐视",
+ "mgtv",
+ "芒果",
+ "tnmb",
+ "seven",
+ "bilibili",
+ "1905"
+ ],
+ "header": {
+ "User-Agent": "okhttp/4.9.1"
+ }
+ }
+ },
+ {
+ "name": "优选",
+ "type": 1,
+ "url": "http://1.94.221.189:88/algorithm.php?url=",
+ "ext": {
+ "flag": [
+ "qq",
+ "腾讯",
+ "qiyi",
+ "爱奇艺",
+ "奇艺",
+ "youku",
+ "优酷",
+ "sohu",
+ "搜狐",
+ "letv",
+ "乐视",
+ "mgtv",
+ "芒果",
+ "tnmb",
+ "seven",
+ "bilibili",
+ "1905"
+ ],
+ "header": {
+ "User-Agent": "okhttp/4.9.1"
+ }
+ }
+ },
+ {
+ "name": "至臻",
+ "type": 1,
+ "url": "http://yunhai.qijiyun.vip/home/api?type=ys&uid=177259&key=dijnouxKNOQSTUWXY5&url=",
+ "ext": {
+ "flag": [
+ "qq",
+ "腾讯",
+ "qiyi",
+ "爱奇艺",
+ "奇艺",
+ "youku",
+ "优酷",
+ "sohu",
+ "搜狐",
+ "letv",
+ "乐视",
+ "mgtv",
+ "芒果",
+ "tnmb",
+ "seven",
+ "bilibili",
+ "1905"
+ ],
+ "header": {
+ "User-Agent": "okhttp/4.9.1"
+ }
+ }
+ },
+ {
+ "name": "无双",
+ "type": 1,
+ "url": "http://1.94.221.189:88/algorithm.php?url=",
+ "ext": {
+ "flag": [
+ "hgvip"
+ ],
+ "header": {
+ "User-Agent": "okhttp/4.9.1"
+ }
+ }
+ },
+ {
+ "name": "线路1",
+ "type": 0,
+ "url": "https://www.8090g.cn/?url="
+ },
+ {
+ "name": "线路2",
+ "type": 0,
+ "url": "https://jx.m3u8.tv/jiexi/?url="
+ },
+ {
+ "name": "线路3",
+ "type": 0,
+ "url": "https://www.ckplayer.vip/jiexi/?url="
+ },
+ {
+ "name": "线路4",
+ "type": 0,
+ "url": "https://yparse.ik9.cc/index.php?url="
+ },
+ {
+ "name": "线路5",
+ "type": 0,
+ "url": "https://bd.jx.cn/?url="
+ },
+ {
+ "name": "线路6",
+ "type": 0,
+ "url": "https://jx.yparse.com/index.php?url="
+ },
+ {
+ "name": "线路7",
+ "type": 0,
+ "url": "https://jx.hls.one/?url="
+ },
+ {
+ "name": "线路8",
+ "type": 0,
+ "url": "https://pl.a6club.com/player/analysis.php?v="
+ },
+ {
+ "name": "线路9",
+ "type": 0,
+ "url": "https://jx.2s0.cn/player/?url="
+ },
+ {
+ "name": "线路10",
+ "type": 0,
+ "url": "https://jx.nnxv.cn/tv.php?url="
}
- }
- },
- {
- "name": "自动③号",
- "type": 0,
- "url": "https://bd.jx.cn/?url=",
- "ext": {
- "flag": [
- "qq",
- "腾讯",
- "qiyi",
- "爱奇艺",
- "奇艺",
- "youku",
- "优酷",
- "tucheng",
- "sohu",
- "搜狐",
- "letv",
- "乐视",
- "mgtv",
- "芒果",
- "tnmb",
- "seven",
- "yzm",
- "aliyun",
- "RJuMao",
- "bilibili",
- "1905",
- "xinvip",
- "XAL",
- "qiqi",
- "XALS",
- "YuMi-vip"
- ]
- }
- },
- {
- "name": "自动④号",
- "type": 1,
- "url": "https://2.08bk.com/?url=",
- "ext": {
- "flag": [
- "qq",
- "腾讯",
- "qiyi",
- "爱奇艺",
- "奇艺",
- "youku",
- "优酷",
- "tucheng",
- "sohu",
- "搜狐",
- "letv",
- "乐视",
- "mgtv",
- "芒果",
- "tnmb",
- "seven",
- "yzm",
- "aliyun",
- "RJuMao",
- "bilibili",
- "1905",
- "xinvip",
- "XAL",
- "qiqi",
- "XALS",
- "YuMi-vip"
- ]
- }
- },
- {
- "name": "自动④号",
- "type": "1",
- "url": "http://43.248.100.147:6068/bba/bbajson.php?url=",
- "ext": {
- "flag": [
- "BBA"
- ],
- "header": {
- "User-Agent": "Dalvik/2.1.0"
+ ],
+ "rules": [
+ {
+ "name": "农民",
+ "hosts": [
+ "toutiaovod.com"
+ ],
+ "regex": [
+ "video/tos/cn"
+ ]
+ },
+ {
+ "name": "火山",
+ "hosts": [
+ "huoshan.com"
+ ],
+ "regex": [
+ "item_id="
+ ]
+ },
+ {
+ "name": "抖音",
+ "hosts": [
+ "douyin.com"
+ ],
+ "regex": [
+ "is_play_url="
+ ]
+ },
+ {
+ "name": "饭团点击",
+ "hosts": [
+ "dadagui",
+ "freeok",
+ "dadagui"
+ ],
+ "script": [
+ "document.querySelector(\"#playleft iframe\").contentWindow.document.querySelector(\"#start\").click();"
+ ]
+ },
+ {
+ "name": "毛驴点击",
+ "hosts": [
+ "www.maolvys.com"
+ ],
+ "script": [
+ "document.getElementsByClassName('swal-button swal-button--confirm')[0].click()"
+ ]
}
- }
- },
- {
- "name": "线路1",
- "type": 0,
- "url": "https://jx.xyflv.cc/?url=",
- "ext": {
- "header": {
- "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/110.0.0.0 Safari/537.36 Edg/110.0.1587.57"
+ ],
+ "doh": [
+ {
+ "name": "Google",
+ "url": "https://dns.google/dns-query",
+ "ips": [
+ "8.8.4.4",
+ "8.8.8.8"
+ ]
+ },
+ {
+ "name": "Cloudflare",
+ "url": "https://cloudflare-dns.com/dns-query",
+ "ips": [
+ "1.1.1.1",
+ "1.0.0.1",
+ "2606:4700:4700::1111",
+ "2606:4700:4700::1001"
+ ]
+ },
+ {
+ "name": "AdGuard",
+ "url": "https://dns.adguard.com/dns-query",
+ "ips": [
+ "94.140.14.140",
+ "94.140.14.141"
+ ]
+ },
+ {
+ "name": "DNSWatch",
+ "url": "https://resolver2.dns.watch/dns-query",
+ "ips": [
+ "84.200.69.80",
+ "84.200.70.40"
+ ]
+ },
+ {
+ "name": "Quad9",
+ "url": "https://dns.quad9.net/dns-quer",
+ "ips": [
+ "9.9.9.9",
+ "149.112.112.112"
+ ]
}
- }
- },
- {
- "name": "线路2",
- "type": 0,
- "url": "https://bo.htoo.vip/player?url=",
- "ext": {
- "header": {
- "user-agent": "Mozilla/5.0 (Linux; Android 13; V2049A Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36"
+ ],
+ "lives": [
+ {
+ "name": "ITV",
+ "type": 0,
+ "url": "./ITV.txt",
+ "epg": "http://epg.51zmt.top:8000/e.xml",
+ "ua": "okhttp/3.15,AptvPlayer/1.4.0",
+ "timeout": 3,
+ "playerType": 2
+ },
+ {
+ "name": "肥羊直播",
+ "type": 3,
+ "api": "csp_Feiyang",
+ "url": "https://9877.kstore.space/Live/live.m3u",
+ "timeout": 10,
+ "ua": "okhttp/3.15",
+ "catchup": {
+ "type": "append",
+ "source": "?livemode=4&starttime=${(b)yyyyMMdd'T'HHmm}00.00Z&endtime=${(e)yyyyMMdd'T'HHmm}00.00Z"
+ }
+ },
+ {
+ "name": "AI直播",
+ "type": 0,
+ "url": "https://wget.la/https://raw.githubusercontent.com/PizazzGY/TV/master/output/user_result.txt",
+ "epg": "http://cdn.1678520.xyz/epg/?ch={name}&date={date}",
+ "playerType": 2,
+ "timeout": 10
+ },
+ {
+ "name": "虎牙一起看",
+ "type": 3,
+ "api": "csp_Feiyang",
+ "url": "https://9877.kstore.space/Live/huyayqk.m3u",
+ "timeout": 10,
+ "ua": "okhttp/3.15"
+ },
+ {
+ "name": "斗鱼一起看",
+ "type": 3,
+ "api": "csp_Feiyang",
+ "url": "https://9877.kstore.space/Live/douyuyqk.m3u",
+ "timeout": 10,
+ "ua": "okhttp/3.15"
+ },
+ {
+ "name": "YY轮播",
+ "type": 3,
+ "api": "csp_Feiyang",
+ "url": "https://9877.kstore.space/Live/yylunbo.m3u",
+ "timeout": 10,
+ "ua": "okhttp/3.15"
+ },
+ {
+ "name": "电视Live",
+ "type": 0,
+ "url": "http://127.0.0.1:9978/proxy?do=live&u=Gather",
+ "playerType": 2,
+ "timeout": 10
+ },
+ {
+ "name": "网络Live",
+ "type": 0,
+ "url": "http://127.0.0.1:9978/proxy?do=live&url=https://tv.iill.top/m3u/Live",
+ "playerType": 2,
+ "timeout": 10
+ },
+ {
+ "name": "范明明",
+ "type": 0,
+ "url": "https://live.fanmingming.cn/tv/m3u/ipv6.m3u",
+ "playerType": 2,
+ "timeout": 10
+ },
+ {
+ "name": "APTV",
+ "type": 0,
+ "url": "https://wget.la/https://github.com/Kimentanm/aptv/raw/master/m3u/iptv.m3u",
+ "epg": "http://epg.51zmt.top:8000/api/diyp/?ch={name}&date={date}",
+ "logo": "https://epg.iill.top/logo/{name}.png",
+ "ua": "okhttp/3.15,AptvPlayer/1.4.0",
+ "timeout": 10,
+ "playerType": 2
}
- }
- },
- {
- "name": "线路3",
- "type": 0,
- "url": "https://jx.yparse.com/index.php?url=",
- "ext": {
- "header": {
- "user-agent": "Mozilla/5.0 (Linux; Android 13; V2049A Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36"
+ ],
+ "hosts": [
+ "cache.ott.*.itv.cmvideo.cn=base-v4-free-mghy.e.cdn.chinamobile.com",
+ "cache.ott.ystenlive.itv.cmvideo.cn=base-v4-free-mghy.e.cdn.chinamobile.com",
+ "cache.ott.bestlive.itv.cmvideo.cn=base-v4-free-mghy.e.cdn.chinamobile.com",
+ "cache.ott.wasulive.itv.cmvideo.cn=base-v4-free-mghy.e.cdn.chinamobile.com",
+ "cache.ott.fifalive.itv.cmvideo.cn=base-v4-free-mghy.e.cdn.chinamobile.com",
+ "cache.ott.hnbblive.itv.cmvideo.cn=base-v4-free-mghy.e.cdn.chinamobile.com"
+ ],
+ "flags": [
+ "youku",
+ "优酷",
+ "优 酷",
+ "优酷视频",
+ "qq",
+ "腾讯",
+ "腾 讯",
+ "腾讯视频",
+ "iqiyi",
+ "qiyi",
+ "奇艺",
+ "爱奇艺",
+ "爱 奇 艺",
+ "m1905",
+ "xigua",
+ "letv",
+ "leshi",
+ "乐视",
+ "乐 视",
+ "sohu",
+ "搜狐",
+ "搜 狐",
+ "搜狐视频",
+ "tudou",
+ "pptv",
+ "mgtv",
+ "芒果",
+ "imgo",
+ "芒果TV",
+ "芒 果 T V",
+ "bilibili",
+ "哔 哩",
+ "哔 哩 哔 哩"
+ ],
+ "ijk": [
+ {
+ "group": "软解码",
+ "options": [
+ {
+ "category": 4,
+ "name": "opensles",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "overlay-format",
+ "value": "842225234"
+ },
+ {
+ "category": 4,
+ "name": "framedrop",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "soundtouch",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "start-on-prepared",
+ "value": "1"
+ },
+ {
+ "category": 1,
+ "name": "http-detect-range-support",
+ "value": "0"
+ },
+ {
+ "category": 1,
+ "name": "fflags",
+ "value": "fastseek"
+ },
+ {
+ "category": 2,
+ "name": "skip_loop_filter",
+ "value": "48"
+ },
+ {
+ "category": 4,
+ "name": "reconnect",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "enable-accurate-seek",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-auto-rotate",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-handle-resolution-change",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-hevc",
+ "value": "0"
+ },
+ {
+ "category": 1,
+ "name": "dns_cache_timeout",
+ "value": "600000000"
+ }
+ ]
+ },
+ {
+ "group": "硬解码",
+ "options": [
+ {
+ "category": 4,
+ "name": "opensles",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "overlay-format",
+ "value": "842225234"
+ },
+ {
+ "category": 4,
+ "name": "framedrop",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "soundtouch",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "start-on-prepared",
+ "value": "1"
+ },
+ {
+ "category": 1,
+ "name": "http-detect-range-support",
+ "value": "0"
+ },
+ {
+ "category": 1,
+ "name": "fflags",
+ "value": "fastseek"
+ },
+ {
+ "category": 2,
+ "name": "skip_loop_filter",
+ "value": "48"
+ },
+ {
+ "category": 4,
+ "name": "reconnect",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "enable-accurate-seek",
+ "value": "0"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-auto-rotate",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-handle-resolution-change",
+ "value": "1"
+ },
+ {
+ "category": 4,
+ "name": "mediacodec-hevc",
+ "value": "1"
+ },
+ {
+ "category": 1,
+ "name": "dns_cache_timeout",
+ "value": "600000000"
+ }
+ ]
}
- }
- },
- {
- "name": "线路4",
- "type": 0,
- "url": "https://jx.aidouer.net/?url=",
- "ext": {
- "header": {
- "user-agent": "Mozilla/5.0 (Linux; Android 13; V2049A Build/TP1A.220624.014; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/116.0.0.0 Mobile Safari/537.36",
- "referer": "https://jiejie.uk/"
- }
- }
- },
- {
- "name": "线路5",
- "type": 0,
- "url": "https://www.8090g.cn/?url="
- },
- {
- "name": "线路6",
- "type": 0,
- "url": "https://jx.yangtu.top?url="
- },
- {
- "name": "线路7",
- "type": 0,
- "url": "https://jx.m3u8.tv/jiexi/?url="
- },
- {
- "name": "线路8",
- "type": 0,
- "url": "https://www.ckplayer.vip/jiexi/?url="
- }
- ],
- "flags": [
- "youku",
- "优酷",
- "优 酷",
- "优酷视频",
- "qq",
- "腾讯",
- "腾 讯",
- "腾讯视频",
- "iqiyi",
- "qiyi",
- "奇艺",
- "爱奇艺",
- "爱 奇 艺",
- "AiKu",
- "aiku",
- "m1905",
- "xigua",
- "letv",
- "leshi",
- "乐视",
- "乐 视",
- "sohu",
- "搜狐",
- "搜 狐",
- "搜狐视频",
- "tudou",
- "pptv",
- "mgtv",
- "芒果",
- "imgo",
- "芒果TV",
- "芒 果 T V",
- "bilibili",
- "哔 哩",
- "哔 哩 哔 哩"
- ],
- "ijk": [
- {
- "group": "软解码",
- "options": [
- {
- "category": 4,
- "name": "opensles",
- "value": "0"
- },
- {
- "category": 4,
- "name": "overlay-format",
- "value": "842225234"
- },
- {
- "category": 4,
- "name": "framedrop",
- "value": "1"
- },
- {
- "category": 4,
- "name": "soundtouch",
- "value": "1"
- },
- {
- "category": 4,
- "name": "start-on-prepared",
- "value": "1"
- },
- {
- "category": 1,
- "name": "http-detect-range-support",
- "value": "0"
- },
- {
- "category": 1,
- "name": "fflags",
- "value": "fastseek"
- },
- {
- "category": 2,
- "name": "skip_loop_filter",
- "value": "48"
- },
- {
- "category": 4,
- "name": "reconnect",
- "value": "1"
- },
- {
- "category": 4,
- "name": "max-buffer-size",
- "value": "5242880"
- },
- {
- "category": 4,
- "name": "enable-accurate-seek",
- "value": "0"
- },
- {
- "category": 4,
- "name": "mediacodec",
- "value": "0"
- },
- {
- "category": 4,
- "name": "mediacodec-auto-rotate",
- "value": "0"
- },
- {
- "category": 4,
- "name": "mediacodec-handle-resolution-change",
- "value": "0"
- },
- {
- "category": 4,
- "name": "mediacodec-hevc",
- "value": "0"
- },
- {
- "category": 1,
- "name": "dns_cache_timeout",
- "value": "600000000"
- }
- ]
- },
- {
- "group": "硬解码",
- "options": [
- {
- "category": 4,
- "name": "opensles",
- "value": "0"
- },
- {
- "category": 4,
- "name": "overlay-format",
- "value": "842225234"
- },
- {
- "category": 4,
- "name": "framedrop",
- "value": "1"
- },
- {
- "category": 4,
- "name": "soundtouch",
- "value": "1"
- },
- {
- "category": 4,
- "name": "start-on-prepared",
- "value": "1"
- },
- {
- "category": 1,
- "name": "http-detect-range-support",
- "value": "0"
- },
- {
- "category": 1,
- "name": "fflags",
- "value": "fastseek"
- },
- {
- "category": 2,
- "name": "skip_loop_filter",
- "value": "48"
- },
- {
- "category": 4,
- "name": "reconnect",
- "value": "1"
- },
- {
- "category": 4,
- "name": "max-buffer-size",
- "value": "5242880"
- },
- {
- "category": 4,
- "name": "enable-accurate-seek",
- "value": "0"
- },
- {
- "category": 4,
- "name": "mediacodec",
- "value": "1"
- },
- {
- "category": 4,
- "name": "mediacodec-auto-rotate",
- "value": "1"
- },
- {
- "category": 4,
- "name": "mediacodec-handle-resolution-change",
- "value": "1"
- },
- {
- "category": 4,
- "name": "mediacodec-hevc",
- "value": "1"
- },
- {
- "category": 1,
- "name": "dns_cache_timeout",
- "value": "600000000"
- }
- ]
- }
- ]
+ ],
+ "ads": [
+ "static-mozai.4gtv.tv"
+ ]
}
\ No newline at end of file
diff --git a/custom_spider.jar b/custom_spider.jar
deleted file mode 100644
index 4e4fd65d39a23c1248406baa763449656696519f..0000000000000000000000000000000000000000
GIT binary patch
literal 0
HcmV?d00001
literal 577930
zcmd41WmuG9*ETu$=uj*IMg5*J*7AC7=g^h>1b_)=W;jfoi@#MTtRW
z&lo^tAP~qa$Rj-5CtT9oCtCb_R3Cc#pYmbpNK9=wzgPhct*&u5t-y+j{V64nx6cGm
z?7{o)?wzi)HRn^(6}6Sz^{wOg2@f@1WSzylKll=_H4(qQBSpdXFuV3w&wx(uy4Znc
zRM_YA;&gI
zkDZs`ue5`IE|!(_wy?#s%<=nnB|i+>p%&^#Qg9wtO#bNPR#7=GF(gXC6bSYCwYG4bznFnTwFEPjj&<2nnr)CFU>
zF6w1xcc++fUFCExTPy|fIcBi#kEyTJc}fVbhZDUUdC2-(bu}vHivrqlv`UkUTH-$@
zL8;OR!XO_lp}rw6UZP||TN5Q|@m6g&!SG};^&N^@a#FIvI%Nj`S<&2(BITr!#Hfqn
zgCE1%<6+tF1~xi)Jcfv{O^RAaY{34>KX)b-RSA8xeubQfn^P)o7X8jLrMt%I8-zcW
zU}!ZBu2`rZ%J$KmSwZqh;-xZD*^=@mhgz^L@}G8xT<#y|^YaZSqFbk<=kSF~d^vgn
zZ$r}g8&I`B$$ce_`ex0Z8pcYw9c$$LKr&hu24th#Oylp!6(6De2-TF4PMowdisI3=
z>~`A@kK~db?rn+FY+=h5u2B9Z-5GpWBk^nb-UI#lwF^rv5*o~NwLutlhd%VZwd%UL
z^Wv9nR!o<2Nligp%sVlYX0jH=v3NW~(?v~%{HEX6g%r*cU*RGrluQkNmOqwXYXMO&
z?#<>GV>&gJV0jOQC%UIR9PC=?pLtZ3lt_4cBGA?toA@ab2
zjt+mT;%je{8kA+0OC0xr6JPk|#@dS>r}h&sSIs=FntMnU+8kR`9A}=8X^UV)?KH69
zhtGQ5xf{x-T|Rf_KwbF%n8(V+Tp%tZ{Dfy##tdrkpT!j>TjJ0UPJCp=mXS1;;YDe2
z%FeU5$`0Br$x^#>dy@Z&L}FX`*KLamP@XDm%VTb<0&%&Q0vsymi4QI^_Oty|()uPJ
zH`iXrJA`Yo!)
zF3Z{JTNFRY=1-ygIEeZz&uQb$6Yk7c_OoLoA4t4%!;7q2XH>Z0WISe85tGI|)7EK%
zC*I`Y%aaL`$H|@B9y<3~7jrbT-4*ZkYhN*+fx3&*0;;wcrHo$>qo+(nzRuUYIPqW)
zPxsI&&G@hoV@Z+PnLU!+AsZ!Xnf&djhfZ>i5*fd25pM5~
zk*(b*tCy{-tEUIjaLV6j;goOC_(<+fK<7AY!%6e6^pG2x(rV;zDU)fix6Rts7|6hh
zZ3Y<#8>$3a=auNoWj2gH;NZl1u#$XBCh8Y9cB-J6C5Xf)?*)$}Y3jcsqk_pGp0xX^
zrS*?OJxwm}Md#K4lz1c
zlxt?JVYf*b)#BkZ1zXo13qq*T-M*gpnOj0-Zz~x-F
zN$NQ_&1{~1%(X#zNTf}zE|y`vNXZ;$Y$Oli=O2C%k=hjBvTKCtIU;p7&txf^T6MzT
z%47$Kdy2h@*125U&>;z&&y^VssfvzoFI}~3GOX5M4rH`T$HauOSJxQJ>FR4t8@l)
zWLRGBNc$7TY!3w?;PJ+$Ap;PkHs+o*l`0b&thv^IBO1B9$}Gq$RVG#TsTFVCOc{v$
zoGiznYI6>=O?=c_&*TuJD}85f%93W?2OU$ni1+Af09Dfv(
zCsjV|ai50u`P`(Q3a|u?xF_)EF}lLsBCW6Ub`r&-In&>Tq7l8VIch_a`$@$l5oLeHf-
z0S%T>eq2FZ=9zVtZ|_qv;3omDv!p?Ni{Ypx6U;JY81uQOlwfhR!akxAh?Q|5Rx)Fg
zZ>&e?>(pn{ec8#Dr)^%)nvL&%*7vEPo8>R*s+C*iStCE@Q**mjUJ~I&AHF;%z)6j=
zTcod}|HM3WpEA7MfxpbhWqKi3gdIn-?UyA2*z0x;^`-6I!mPkv4{{lG?i+Tm!W>=s
zIu(xHFulBIydBn4FoGVinI+->}g5>VxVk=XGoCOhsD%QDyDE?mU
zoct7sd?VXdw0`IOJ7L{e-|&31QD^U9?-qvN%)|7G_+*!?-%950N=K!WGW~7F92JXC
zY{b3PCi=C-f0sUEuaj@NhcW%$#ov!Ub9pfjcpX*bGwzJNbbeS)^8wA5;?`v)T*loSYfyQ
zD+lL5<7v$yhKdtktQHa}GaepfKh?EEQ98
zcU5R{9XAuB>KZB-mV3*gTFUO)h|_6KtFaGvknKlwc5(IgPiIP6T*QcLSG4$kM*&A`O(y|CVjaMyhG)
z*M3r8w@6g)PSGTroOq17k*2?@kfF~Ouo67pq-m3lP34LEXCqu@@Ke0LPFkxQ!Rw@_
z!;ygUt;*9Iiku6{5h|YIB-KRIkQyG_TXyY;YsK-NM$BzH6+RY?lt)PzdY_xCFPmSg
z*Vl=)2$v|)v%5PET2pI17XC45GtERy_)g?BMtFIwg-~xOdNYCN3@b`cI^J1J6d@w6
z#D6JEU)(6MbAc5@7rjq+40|H)R!OxYVqg&Xu?*K+&-c9ysZL2}Ht^Kblw{gA#eZBH
zq0;WHLGRZ@1^_b_~kAT*+{yM7OUEyN7jV`kAH1^0(gUZ-`?Mg&f@9jbwj|;aM;ensh
zlxS)qD+qb}&@bJW1_+iAv<@;Gx(E1GCg83ko^=(=BH-SzBYcWvS)-67)K
zu(ZZcV>ztmo>ENd?H(?fve_zoJHlO!Z2_+I^^6iMNad2yjK){$MvQoy>@d4}l4=&D
zEN4Oc>wfE;$aWn0(XUA|!d5*wRk@Uo)lCMLpA}LHKTrg?uG-iEZaZ{>p#iQl`+Ll@=cZdx?6?Pp{V-LPVkv
z$~a#hQ^j3^vgmk%Gxt!Gsp1Ql3-u*6TSmFg9VRAgWeHrgnyWpMLF}>%2872O%CLr2
z0n6%<9eb1f>L2BBEog2Uu!TQ5@qoy!Ox@luIA_w(@g==g@~GE~cE-`lTkOvW^|(xB
zjQAF7{b#(12J1qhYqlr5t>d`mX?U@%3x+jna%FtYh~?+U!WwdS8kzQOWxqcCf!9BC
zy}j!Mey2B6B{2^XG|LnbihBv%>(|?l46J5;9iHSjT6o~_%2Kc5$Rl<~v*V)rqq&dB
zxAUyWeO9xS_3l&~9C|vosxl=R;@)&dlS@Tu3gpG-0Zuf`48S@vemDj$o)z8
zRW)-&`xHLx;WV|*IgM!IDsn_yavmpk?&Hlo7Yb8cupZ2ECal3Z;#k4Z*yO~`IID+`
zq)Qdpc^;yz=hMg3TMiHE-T47X0lvZUpfi3jklrfH9k?>3y1886dEZgJQMKKpS?@0V
z_^8l4ek{lBhxTK^?wnuhLeFY@DqimDM)`&mEM4mjDfMEa#=|R@pt?E&m)*Hu0~@~)
z^%%ZEoRNKKB^9iHM5e3&)pG5A%<*)*P1f#(v7)(^Exg;VkulgGEge}H-FGFE6Vtve
zeP%4Ji@udf)5s~pW!FRqb((Zj7nl-0vlw*eeN
z;-fEamiQuMNHFVbKya4@NgFnoOFY=f^-je&LyIpFxYaxo0ccS3(IZR!!_(Dt3?CjZ
zao2IgV6BFU28(gH#0xq1O@0_q(BkzUg1tDbN+%rOWP7%lQ6TO^^f+^4
zAcdPd3zF0YkGj*j8OlYp*%(7pC-@!r<7H@cE*WTark~IZ)!nAid8$A&l>X}TJIm}Z
zMg+H&^a4GD4-4G6ARhGaCqi_f)h@l!dy7vSwfD(oL7M?3Q+o=s{;l3Hg2$D_Cg
z`q|U)OlN{`youi4d`yJGIt(>3@Q@rAwocWShZnBJnoKwDOHY4M1;CN%xh8hF^#w
zOXTh1mA{FUp>z&2Wq6Jd|Ej=iY%?=Oz=ZrMUB4Rdq;X7YXVJ(icZq!LX!5kYAG4T>
zp7_P-v|PjTj1KKV7V*Mw2Xx$=!xE0xp?{1|mb24$`c{(f>NZadl_3EKGurNcSn1=K
zIksUc1A>FX-1fNfouw9C{|5;`&@}?YvCKC|_8fvyfOC5_J49mcM2mqxbDj{M$_2DaCdivxw*42XLXCg
z1YOQY$buwjmQM3w7f_b^5CODoDsw(H`6r1Q#i!!jsaq~MP7fx&M5-HmKZmPo$IZK+
zTD)6`Z?_u7zFo*OL3x11R;B^$ahi9-17s@;FsV(VXs;)6QQ55NX;@D5m%V%Xa)>8Y
zylW4=K9=c>hLrp9zuUN5{FL`$x`z-G0KqCR%ctdAsCraTVqt6eyQ;E9pV+ryL%|xR
zzJS-dQQiX1DkB`OG?5dU$aV6*Uvit@tU9CYIXZ{`a0(AHa#=oWF+G53hz|L6gcTFt-f352=?+-05Ix5zzxXHhZ$vsIS@N<
zRx{-xg&OKdfkE9iNw^3v;zh@CU&?Txbkbg+&L$221E*N!8~EaxCn8EZpES7OXokY$
zjaj>G(r@+FQ<*JW3@`D>ZqY8{U#>3Wh>wME&*
zpU^}(WkNIk5pI9tO~2?g9to`CJixng?-!36p@<$wg-p81XlGIQ>IMUe*YC&JMrxqr
z_QG`)%mCPkEu0?!SGlb6^&0P)hk#%yuwBKl6x^VVV_4^F60$v1vmDX)Ekm9djb_oY
z3>f)_*=FOH8YsS(jjDg{0q_~{vPXfAXm>%HZ-lqv^A%Hk-?)&H+pSd5r3Q_hO#>Lm
zk6CNMuu|oXf+00*ooGk-q>Fu5k{5qoI=O6qmXwGQ1?zm~eR6m9ndM0j$q=B>WXV%H
z32V!UE|i^~c+vM{cmQx}T#mP46e0c}+~;qplq!?s6ND3X=%0|=oH&c`w$ATfddhN_
zWtg6^vwXy5lk%nUdC5UhxeI+0??dH@+nh8~I^Oxk^4{EJ{pW?UcJ;8F04uK4t|!;*
zJM4KTSFfWA5kc5y?lECAhMzREcV73@(gCINELvB*K6#v9Ek;;hX4)nNAT$`NcMZw!
ztxVsiq%EIhEgPn_@2MWC;xlGvX#^l)hA**K*=SG+^++VpB^jyn$(nfQ!+WvK;-CBt
zjmEobzPoJEbd6exo;LDotW4?YWZp`HMR<|tWeAL@)zpKN94*A(7wr;>et2%kJbs6h
zy4)pq%0N$54qkp@LBo>mCqtw>9&m$Gv?6&dB^zCucb-Tpza7=wjW{0I7%48$3AiIy
z@b1cJ)vjR38QUb;Q#KR!xhsW(eN!GCqxR4{KM{SAdeDk~+0J9bT5DTrDUM@CUmV6C
zH%k2KGp_0_(6I*~!>fyo*H?yasdD9fE<&Prz4Mco;znEIbWB98i(ZraFi1_+u4#_f
z?rjKea5)mKA3^_z@^GI#1~$nHWk;s
zGszhX`Fd1Bs@`(7ame~*kegcPf$!weM
zA!gJ+B2{Y$d)%3k7j6XeDxZ$~+?jE_x^s=jCUIVk1m6e<=7r~xjiT9Du#LjAyC`D8
zu7clt+Yl+^N~>Di#5=u>6nA6vq7yW9Ju(4C`W#WQv?G*&V@fS*hijDbMtJclMVk+!
z$BG2ov7!N_k4iF^>M8E6SS&~_f$wH)aJG^5Tji(3vu`pBsmvI>2&w+Iy5m-ZFH{ yqxr&wvmp6?oc
z18Yuzk(6ObYVY??JSqOe%%@?QM*QiF(6C#%I#oOtRG}@*v;KNqf}QDqlK(`!kj^d_
z_mcZUoKVWOa0^bm)F9X3IC`Ix?(GWql`11%w5Lq5c$*sg6HkIg$C=Q5
z8WnAI5&f8-^93U9zCsiI6JnXbF}2Ck%=T0@11Q@~Dh9r8+v1pZUpc9CcHDgvMN;bm+=&Nq!N_%$
zi+nv_eA#edZdgX_z~y=m--%#1dX`61e!Rf+btjALSIMRBy6Sd^JB7o
z1b;;WxflCl*$8k~%fGYZ=u7*Cpfxnvid?kEoV!!HlBCwjw~AX>|M=^QsnS|#rOM<6
zpgc&Pub=>aDbs8f14a{%M{8xo&;vd{3ONmX;z(N}zRAzjKMn<2HIK#FBK?7pSZ_fsgEoBzfHxkOZ=vAW
zHI#x$XUmv-s)jr21BnmyKQKb{O*E3ul}1tTx**>hNM_|zmiI{y1;&K+VxC!N!Q|@&
ze*Z9+k7phw9+yceM|qKmIic+%!}GVQHfX=}jqugbm<^QUO*{*WQpvq}gkpq^X-ut4
zGVK~DDFO_|zAiqgIq@QHC_~Eo_P~AGefhqv%y?Lar;Ee-DcVr85
zT(Aw)1|kM3qP9tofW|WThq2Nl8MsHb2km0{2(PE(jBjLjZ9~;21Zc#dHHV4ruloyA
zUE&NA23u(VoTt2wXqE!5K^$XG70@|}Gxehs_K(wr1_bA7_q+JHNkpP+siyQ21~F!t
zcwj1Jt`KNjJ1*ZK5c~uA;G~gDk7a@!nAB~z`$E4hPtaI~As+Vu%TSwLsXR(NyMUv-
zx9Bt*Kq(@+q0@McC#|Lu35_JP0b?&C>eb#ePXg8{XSte!lyqkP3G$&bQl28bkI(lT
zrHy*AZf0U0cIz1IG-;49*vPzoD}!~ZMI`u#e$=IOK25e4DR4Z?`_~5=$D;_*2v2o0
zmAUv$^qX4i!toPtnA$~U9~mmc*W5>JC*9@8nT_bj0+zi^NfV|Fg;^Gqr{z&%6qB=%
zkH4W*b5{wOz9bFRU>#{S%Z%WDL10@~zyv#GVNm&cLBK43AZ;ojWk)>*hVyW3^-DX^z77h)A0ff5y%Sz`?}};mdQd;^F8CYQH+S%q+>7ju
z@%uHu6K@(Ol3;7Ot4WZ3SnZioh1#p#DfY;)40l`aLmGpCA#Ge(`nSgAAgdyVT~iGraPyA37#qx@dyKj02#v}R&3&WHonlbhAJd>`G+`QB+8W$Ca30lDYLv}Uz9?{i`L;#$ZuzvJ
zBwd%)-6M_;<_Xq0+PzYx%*En@_AU08Cb8PT7t1uoG1OKjG1go*Suf1Jp{2xX*ntNA
zS(Xt}OMK!|+WR6wa&HMGlQ{jFR#PUyo+RgiSi99$GpQRabzbyN*>Tdd2zN+jzxHxy
zypGCO8N{p$-;moSA~3>BFg9i~R_Fwh!-5L4JWe$i`b5#eGGq9H_Fu8Ob;=8KKczF{
z$gfvzR$7e5Oi~w^Y{!p@Htk!o1%BUy&k-+B?ow1S2UQmz(-Gp^{4XyK+Z2NJR4oqhEUtU%+#Byki0R*rw8TU2
zo+sU1-L4iZ7}{BCQaV-{wq5)14Cg;>Z68vi{BIe0p8Go6kM7^$XN8A)09_1=?L)u&
z@=4^+?u>5kQB{P}5|5T#)$J;w{n<%wvGrpyx|QLFYlBVeZI)5KU3qDZeH}&@1vlb2
zDOdauhe|UcpVNrJ@WIzFZQ4YFJvo*9Z<$!IO@bQdMbIm=>A!d@K3I2g(Ex6Q2#=P^
z_T_j?cVvCjrZ3doo%D@AhX3CZE((a0f5z7@ua4=GoaO@7@^`zg7Av}fFr+sBrnGMV
zm?l3xgk!BnGq?blY>BVPwyIw5^%ZC9pLRxL%K+mu{*4}uMUN#Kl6$hW#OUFe=FGp!
z*37zW{Vv5DQ#`%+ubnuIH_$+x#sd<+1m=hJdO@7~be=l;QNP+9i_67VojkzSlw|vA
zIHYsw6V~3!xsUSZ$}?sW5)~e{BKIKNAtuWr?Y7R1GI%y`6;KykcZTL3Y
zMu+5%bml`BK~Z(lNrT&OWwPSc`3;0c&kKS5sQ9JRc~Hh##R~RRf8)={CMC5l)fC4n
zOHENTFcdd4c&$uo@uzb!#2HdNl1|f8-?)DBG|}@4Mf^D=Bb~rT$1tgc{V(U52JA025A
z1${!5*8k;PEzwCUjz>LkFLj~2Ut8;xXIZ9LC24EsR{!s>J^0Vp!j(tq*8XWr9LbG1
zjm2#GS~JC=Uz&T9eTn(2_sZnqTe<%-=y)r@*~-G3s(4Gx%drKo&E3hAjEhx7Cyjz1
z$<#Ke3tbz98JHRN)QF9uJ!|V&zh4w30p@J?)DJi8$^{-WGGLokHOfXjY6|zg{+I)=
zBA)Y4-tSmy6gpNO4qwUjBsKg!)cq$WD1A#u;{
zDcR!6jNUEWVx_!?@bf-x;Sa1hBA{1}zcPCUvC*-qkgfXU!n=9gilKWppX0=ik!d4+
zL6Bh{9{4O)a*A{}oOQldpo+i5JY_8BzfEw`(5qY%`5_
zBAyT2*8go??SF&i{#Ste)rw)OkO3Cpx3i1;Z{Mg599!5Osyy7CjmteOKFeasYbN(0
z+(~zKVQrCbu%dxAyn5rm+`{Zp3ML`m33+6;X3%60lM=YcprOBhsd(;C0pe3}13D
zfgR$%uJN}2eVL4{U29qmm3+HPi5gqoA3WuOI!>E-PC3emo|k+EBJ|&(y}*`D&OXXh
zE6>bF}uek3@{r
z1iOLq@!~~Eo8AM)kZh(nYdwi$GOuOi?X_nC7IqE5zGt9?UouHaKf-UsH~71}pLOK=
z&j>4q0CjUWZlP(^pjF919o*HFu_bI4_;7UDB+zLD-Y~vQ{dO-{q}bj-50J
zV4cq>Z^z2NH2GqO@;9ey?#g&fT+v2HdL$Qrk)*)Bp=hI}_D0xPK~=8AAP6TPMXYef
zK6Zg{`!V8O(wRl3E@(owWm80H?k;s^va+C2a_|G`|2iynhySmEmUZ^qt8s7p(6V2^
z5aCIvuqi{uVwOoe2J|n#_ti~{vch?atGO@BJLL&I+Sj4z&3n%lQio6;axHyhVuf#R
zr^Q()R4kN>i2Dh(^qYxie9hpBX)~rv@FI{~L6W#$AN0Fb)5v=h{OUJMJbhI8mfVw}
zC4GHp$F5nzc4b0LHZnqJ!_TlQg{X1Y`$HpGqioz)lJ-pxYZJHDd?p~%(fX3H=XqV+
zNay7=YX5@n!*h+4!Ygw(->#JK(ZU<09sZ^^qu58sL}JUcF|Nn=mEI$jfYEn6^9Lul7~R+t-vt(P_sw&1InuZWCj;TkzF
zda~!PG@&w~wYsI{O7}ADEuRX&Ux5KR&$Qi+-<^*Lf0%T!jJcQQ^W||($&e?N>YFNE
z`X?uvg#|@cQ)WDan{1|diS0IBik}PVzP-(K-*-p2Q{_rTP~MVRPIG~Zohj9OTf{;t
z6Fxv=S(<$PBEeXfbfK`E9oxk1W>Xbr*FN#IpJDeo&++XM`fzNsK>
z=0Xt9S2uX_VhqJS-v3@472+|O(($Y>U`|g^Ky$yoL$N8nB9GmLg6e^P=U*fC)9xA;#qFD*bGN#YinX3U{qn-ZQ52Gy4
z?wc6==M!$n9G_avpsb5kr&op#V6q4&ac>1@l~K2<4bguzny7c@`FT?lUyAD~J9g)!
zeY;X~fR;Y39~ED7SkX7~y~)IoRkpAwj{d3qZGV(h1R&EYLx+6^g2ZK0P%53ZzV-s1
zC!!rHYFjzp+o|UGHp|7-`fQJc;Z1#S2n_H-<=U(
zg%gy@P@8s%0f35`&0rJkH#17PS*Dg*F&y6GvO!4|qjT>67t(eCzlyU605naP{}HJj
zvb|@SrT6X3x7Y&^asQauX7@R@HWzW$ps
zrPLJQayyn#2rw3VJD;WlOt7+?h7>8otJ4U!vMmC;ZPPvD%z_gdSvq!yxtnE575287
z0kj>iyS1H7AE!+jR**(|r5~;;n?5D(qc+huDlsgm96o6Z5CEmGPdt^29H%&692Q0i
ze!V9$k=I+VwdgnuJ3VA7?HjQj7Hsocz{|vlSV>gOBXrEYDQA|4NM0P3Inr9$KgTxl
zzuFxJU`Gbue{?@0KP#<7%mbc%%&f`AQ8D)9dbw{Zkxw=;z=&&I1vfV
zThfx7%Y{@XCzO^NSb{TrslCd_X#wRK+v<)&y%x4Y9FQ9-1n4=yWKs;;z1Y%JCLY!t
zpGNpGsZ3efOxu>${um(uJPmchXrj~AMwlA~#bQMC^Z@hfmCvYBhU5aeHmtcH;mSqT
zW^oHRc-Iu*)er(fTl7)UrmIdrYnI~l!Gler7Q3UMak(UeAa|j(zB#W=lzp1_CLO75
z6@IB+A--%h?sIrmrMdv#N<$k4Oj#cYTX}t5%7HfRR#PJ_mK;CI<~AWAW#Y)^42>yzf1gN?KnyVL$Sx{*hxA=$swdG_P3
z4Mk;-RNQP4Kjj+&&lL=0uOA6EjerJYp-8oVg(-
zZ0h{`y4NO_nYXGIiW_(-F3RUle3%yv8xoyzQL~)t-rb*m}u9yLkDmd0wQRt
zrF!UlW|Y66bWuM*K&dH@hDwIyRIYBjxl&7wACNTi$n}eu!~`xDuQMYf7`t;N_IBh;
zWAw#s#IR{6-h2S>op@(y+vv_>1_I?ycyAfS;F=%Z6goNXN8e2U>imiSrA(EHxSyIs
zhNBPFrWfh0RIc-s!E7(svC~At3w-i?;F-22H&cqR+3kw?3>|Vm*&fF^`_s@wIhPGs
z=;v0RHC`HEToe>H%@jBCW~mX}@ngy#5WC$D+5vJr`r$qvxDGEF9&6SUkG1JTRgcuJ
zS%#IHrE3L(+@*y2MjzJD_*JuR+yy3e0H;kNY6B#LrxM>;#<)=4l)zw?@-(!HOdX?8
z|L2tSR?!pPI5P^?kBPY_-okX{dgN@&BPNoel}!Arm^DK|yiI0cFLwnZ+gmitaYSY=
zG|Na`s8>eR7^w!#3AziDAoR_QT6D9-&0Q6<>^R;pF}mVMiYr_(rDs#f7WxL-KLI*Y
z<1*C@dpqJ$#{DbD@=rOg%ce~!L!SH{UEyW)7SIBOotIbUfYi1!xC$rY^jcLez?ccv
zmEFOPA@~xlgAYFS0)$(Z*zm|urxdAUL?Zhd
z3QK`fM^c^c%M65|P|JDR#Asny%W=*?oS9rglNMdsn5SY`zS-)AN=9TGShHCgm@~Ku
zb|qH>gPAV<->)YMQ?BTDh!URiX|RlYb(4OL>=4vazOvxo!h~_0f~wpXQSoHr&_@Ca2>N4oac%z)$@Fq&!{2y
zmR&5Haw+Ld?bySSm-fx^B_`pub#LVtScw>$JX^@e^)?VCvCNp`dI~%CHicXIC*xh|
zRJ~vF5bj=-tzx&s2b+P^W+@L)n7W@kv#zUlxb}~;J4Y^ag=z7U0T=03lU6jQM;cGs
zW~>0+A8-xraNXGw?3?WWLTZiFHz*2>uo?8;{A>)ZhI$E2LJj3Zvi6;+e}a64Vwr1{
ziNl0Q5{HW$Svj20FvaeS*&q+GZ_9I(k=Z!@|hL3^l}VQfxYh^L&2F2y!tG;S4UE;Vk%F92ecIBl40VR_!9
zu6_5B%*vFGr6vzkZDA$)eEkEesx%JU0;;vmmlD?Z7{rQY9x51Iq#mGg6{PViN$1;@`@d6)7SBi4oV@hg40iiPaj086qvc(M+E
z3%0Kdxo!bgM5+rJa}o7oA3o;n>n|qNTvB=Vg1?5uO%(tkT<&w%#o{EoUfmXsxlgx3Fm$4_gN!&|CrrllOx#KMB=kDA;
zLGFB&%cy@|KkpzTp1nQnkN1L+(1hD$W*UcyWKIesyO7yb2BQq^6f6TD0u1W|-K!#lJk^NE6>ub~%6$~w?8$sQyU
z8Vi4q)O6Ph0Vxx+Lnxs}@CI$35OQV8Do`f8NLwa^RGH$6@QUIJS_Phi{Db@h@4%0d
zgcx3o3*rxDG@Ob+n>-zA3Odq;Sknp<7Q-Z=)1XqQ443u5q21wI<9%HX!>Y!W)L|644el|LhvBzkVQya
zZB}V|W*9km64zzzECbO7c?B+k5tFdxodWU
z9Esyd#UYwdO`<^%Bh(Gz26ls*!5_dMAP(S7$bWDjD+MQ}ylPGArI
z0Qvy=0A4``Vxllq+(eGhcETHi&){DO3Z$VsT_?*jB#1B!q3+Js$uUV32_i&Vx-)gM
zEkpMRPr-i?P^1oqI)qsn!cItv@Ir=S2&@UJ2r?12$N-EK<^hHaLmt9-&U8+tOjJcA
z31R}bKt8KcgF>~{^FhS~rr;*T3|v;*sgB*6vk%e=vLkpwAPUXUrp+gB1l@)|hd)O=
zLnLn*|eACvHtC
zOyvT$1BpT$AWz`a+PwJ${7?~X28<{suue3DB1FQPqLtEx$c1VZv;+!-C_!GqzalNP
zIWWF;k|AW)RIOCr{3$)QbGClVqwPwr2-O4tj!1L=T&Mt;|3tCN_g
z>?880iU6rX&LGwBIc=sov3ZIgl&eImR41TEkoRyR_?k8sMhC-FCv_;DPpS?%fnGxM
zAbDUY9D(GcBj*@EQ7$YH`UWbQJD0*4HT3Y`S!uye+9N=MQw
zDo0oxl{Z)mG=tzmFd(gvXr!q-!y(zB*dbd!MLR5k=mr!9S3usuSh;g_axQ~{2o%AU
z2nnP;H`6jKhzO71&<1zXEfem+PC>DVcw_z%R9-bvz+rA#C%+{^YBat6+I>1tbbG3&$bvYLnFo%#-?4tWxxX
zze0Y)W8tUTM0I>2Qu8D~$RogSA>ZNq$av(nHdUR_JXtj82gM1PlYkR)388|vA^Ehm
z>a-4p51FMw%*5mnP9hjo4=w~3LbSl;-G!yenJKeDh7c<#8nlb-L53rR-Q^F}4rf{o6*3HCQgRcWJA1mZ96>mtFc1`>gWN*8yAvN0
z9P%I1=flVeQ^6w$8l*8M0K>w~5zQD)$xN6Ht08g)xe|8FGMI(3>l5N?G8C)
zm8Oa2C?hb3t$~_Bwg@G}8~7VU08$P44jGG#z{GPy&p~D2IAU*zTvM>q&cZ(|8{Dj)
zXZtFL#FB5iNlD;`5+qM`R+ve*MP*y&FKtyxvDE{U`2!NoKL_=3l$XCnvSxFO9oUUS
z_M6!EOhZ&{?ps&Yt@A^^?&_&%yHVLNR>lLb7zw{jnoTGkvwS?=@8@0MiNASYSy
zzEub;Sv7`aPJ7yqQb0LL#A>(?X2WU2Jhe+mGABJ9p!W1qppsYRopNDX-EZ4^s&@^S
zyKD`EkM1Z|Cly$J8g3m7PDqq1#FquzeEVv|cWqKqt7mBt++%4NwyRfQDK@inb5T$g
z#$8CX|LRhgJT2L4oi*nk?25%w-XC*C$iP_q|tMx>B#S$D;7zUX6S)3_sh|X#TwW
zrQP`9+?d}g?V6@oXfF%f_Kmmt>7Rn@-uMESp-hkckH%VKndoO;1zN#WMt>?_8(wO3
z^v}Er+d@e`4|bI=X|E=kqbn|DG&*7rS06GV`#YwtY1uC=)ouI8+1rnOQ%;`!OGfLu
z;5)u+0bu?}JoC?fK1Q~xp~GI&`M8_pX7bH2^A}urvCsFMr!L?wR*M++%|rEVcQ5{(
zk(;byCMKglvR|aEOF}J@ToM(TZ1&-yIVo{0@zG>qEJt*M@6A-Sqzdmb8FjbMT9?Gt
z7^%d+?21td&Sby;q-bWhMf`CJ(y(bB+s92lJ%vqtVO&4$x-Or2
z{t>_@a}=4Iwa+ok?1jge5th_BC&A+Rdd1$E#B>pL+F0?g
z8u?J_e(0uRExx&EoT$J@BE6ceL*{eywUWr2@At-US9Z}}zb#3K7dzAE9Fh6_X56`U
zi=i5}RPdUj<7mzI&o@UL{XK8NZTdZ}T5HL7i|4@pv+pTx-!^)B8De?RyQkEH#o3cr
zhKoP2F8T9UaNFc!+^^srm-K06c!HnxT;iNj@kFr95mP^!Q7*Co%`Sbx9ro>a!Cd)u
zLGG%a7RhgRnJ}^G&2Tm`F8z{g56*3A^tU^z!EJnh&K$iC0(T=Cawoq_T>llnt|_^K
z3!K$osbYzS_)aTVqvta|w@*^!8iswWA=rUVo8?o@2)D>_adz*Wy~5g=C7|$+;ixZ?
zi;?+Fa>?DJLKNzk@Q*CMyV;$4>RbAM(f*%5=sL|IwnS$7f8Cyr@8lG+wp{TW*R1fW
z1)krr)l*BeVApr;{aAR+tMbc^-%K+(Y|htAG8=1AQjPd#q3QoE-X^{ecH8e|#)ZEa
z4jn#FB$9Tc_2A;)!1ll6k_WsF>$FoIZs;DVF0Juyt<=-?=2ef%k6e2Hm~1S?WdBGx
z9pk$d+<13Fxad@#&;JJ
z)f(y6n!)eT3EfdUc9QyaW*Y*%JS}gkCDfcyneO&{m8j~bd!u)?`rtHEA$LVgzXge}
zUoQOBSK#s`=aN>%W$TZ4{~+7NDsth0`zNK|ptZo=)xcf(?w@QYu>&0-O1@Qhu!Ln-8zPW{RUJ7e%bLFYg9kT#0Q@
z6_5NKd-<99aZga@Dz+6c4(Z_z+4QS3!#`P6oN<2{i-zr?vdJ87n?
z6YV@TpMKJ>_{I6=K_|AOWMH@ciZC-aXFkRSjS9$1*if=?)CM=wpcYE7z@Eqn1alA4bU%-e!_^aku&-UM
znhCLX>phd_E1&STSOj77O~UhpI=`Ch4^69$ljm1e+sDFEcbFF2`^$Vkq47`S%C-&A
zguLj9szIav9mNK%Z>)bIrviVnfZ&NQ_uJQ5_(HYGcI?rw(4ysZbG2!3_N$}Ba!`Ql
zsrcE1?xccZWzR`y0htA7raCoxrq*`fYW?QbUNOF->ZIWqKDiN7H_%i>5W|6f%4>!)
z5L#Ji`&k*qaapx(6#wZJ_EE8b!!JEom(jn~K1Ntp6h(oMjFtf<`sW*G#mYOu2KyuN
zTb9pVvGTaG$;CYVuPDMC>)P6Ajm*TYqkZtsh0Tk#;7{uoTsKDjatB7guY_w2D8HDgT`J~97?cXQaIPOqPq$ZiJ}IFo4{lNZ}M%dMQv_y3A-0_J0xf=3z;1
zUHs^KPN!qDO=_lTIb`Nkne)IYGc!{&bIO6#%*+9m6j6cGV5X+#gqkRondL-|NGg=(
zgbI}d&SZk5h$M&z2wZyK`@8qKf8FO*1#VQ4?yK(NE9?qUhZDXh7t>6;i}ahx#mK)>Z9Vp6q56$B_0R>d+rT#^=r;6e`?5H#
z+)9q%RZ9hM>f1Z#QfR(Tq^S_%gO6*ZNsybZ+Sv`X806;3kcr;g|B!yb?jC1WUbP(x
zy_nN`&>_}5K8K}w|00kk+a5qwm=`%@zlT<4?OL~eu(4_xRPyi+VoLP_`8{sz5LhN3@L9*k
zJmY>QXI?~<&>1a96P0vg6Vwji4A?Iw{M`8yo
zA6V|!7sJ~5N;CuSOWiPBDWY@hk4}QJ-4K@aUpBY)@haWwKEfpWOdYqfvT#yrXstP_
z`Nz?QScp@=XXC0q-AWCpB(^9h?Vzac(%mXKyXrvV65hvTw{`o8)
z9ugH0!8u2>m?}@~$1cjoDf^zOg1u$z!Y(GgZT8hw!zZ*28Qxkvl7nh7$gN(%{%F^(
z0ydcB>UqO>7JDbi69=08L$YH)uMts|3hGOnp)7euZSy>L%eY>C7r#PdK=h4rV&M7n
zD;9&1IbD3#4PXSvk9KkELP=qtLM#3PY3BC2Z;sW`7NC0;b^qeX?JF1RKFm~6mHO>=
zXyW=Mmk6Y~IZ-(ST47_nYjw7%L&Yr3$)prkCz$RkE_y
zLQzkb3cZ8h1?=sgla$xnlL)Rp_~9&f%;jI=b_pyMMtglNfHS!z-m!X4
z0YRA^5pHLZ4LYxc_mOa66d1m(71(jnXZ>wjJ~@W4qZQ~}uDW9X2W3WsnBj7PH&?9l
z#GZWbbU6B{kGQ7>9_&f@EqA{%{79Vz>o#LdyE<
zf7TR44B0oB#24T~)2%bvh`QUp{T)@)^7hgX-fL(0VutEbIorp6uIu%`lAh5KcHwm@J+F*E)_RJMcoK$i(o0uvT(Uv$
zob;KG3>ADaRGev??0%Jm>}zXfWLV#4r%d*~3VoH;Ah&Xs$G^eTATyG1E;60#MQ?}H
zFWCnW8|(TqHBBR16Oh19L=Ir4sKoe06FCwJY7jwHjY3vopWcsw@Z5v!0uxtBR$m
zM=1+tL_E^Dpm<6nHB??^T5ic+ukd4KUnm?0+QQV3#EA1!qfwe+z4!u0c{2U_#9h5$
zv=bENp>F#y14Yox?dteo#J{UN&^4CeUK>+!16n|A-(TvWFNWt+U;7ozE8w_umlUmb
z>hb}KqnIFTxf`Z(zP7ts7FHdrB{K5S!=f|o$&(spjHCrOPv4v^ww2i}leXj*@KM5l
za8?BOD=m{QEkT@%`iU!LL5o-F$3_m;y@S4N|Mb(fxkvOyn-Dp%54WAW1goa*3SU;g
zA#AJ>T6l_eWQ7Q+gpW5W(LJyD*bIGj+r~+_V#e%Ta@2(MfhGIu9yG!}%P5_;WL=Vm
z!W&encbMctj-2M(j?PKi$2knA0klzVGq<8S9#8W=kE^X{3~H+&vv&f0WS)aOdMp0%
zbUGCO`P)9+7IwA2PTWXPB|vilWZph5m&
zR;sV()mUR=JwU|j>rpQRG#KZ0FPOYu~8##{#+;kTL-E3)l5bp|;u;3ns7;&VW4UHQR`dlymZv|(J1wF1;5y#Y0R*&Rv!
z6mZdJ7Fh5Sh1bcY^Xp&gQx9NX=o98}k7HRgIqi3WTG;c+b-SlDj+>k?ngulvWzvRK
zG%c7{wb1n}rHdT=P|jv_6pisRF9&^Kj{}e6i}{iohs1BLFmuUBKyAxKO9g!&xZR=2
z9O~Y&9n9JomR{CcFWrHYo0$V*>X&w_Xh7HAT_QEmre|`jZy~f8psWZY`&5^3&y%^@
ze6NoZ)=N;Y<`F?wa@cH+4qcZ_-9ItdlYn`RdQh*GDnOVY24&9YOt0V6;x{c7Mm-5K
zS@gb+czZNGH1pM4TP5-A-nyLjJNm=&7iS$?4#8w<;SHsdW{nb(L@z^vEJLZyAkQ%~$B@A;g5Xou!z#(3S(})`UVQ&i`Z`J;p
zT3mHhW_433sH6ruy?1EdHoWwW=3}#zq?G2dc%Rd|YEbB?QNG1(`rSY+*Y`nq^5LX8
z(%Z=A3fS#QuY~)?HgAKl3j^tPkZRlB$#PGhaOl@Jm&$Ik{3B~|%rL=mgwlZ}nlFs*
z9sfo>eZ9#?wzO}R6kxZy)fqMjPc}u|_K74PsgM15qolkRS`%%ZF0I+@BkAi&9lV)Q
zRRyWLYvN+woXGX{Va7ZUkq*AO`>zoM)8-LCnIT)3Z8tvE2tgfPUv
zFdzBeKn4WDPf~A)O!lS`=X>>(~yn~rsR1lmSq2YCdhHcP$1^~6bLl`r#j667qUnX4(-yLn|7vO5F6kZ(GH>NRJEvWR5i{2t%
zWC6%$3||j&Xj-rIiNE0kJ>PCI>(wIg3hdBAeK{M(q
z-lu_~nH>eqW-bjY?l!LW^EV>8hw9fqu8cv$-o<5as{wZwm5!C&q>q0)kaL8Q-wg03
zAGfRFend_8k#^~|*wl&!x{yOlW46gXSueFQRzbBsqKVIzkO~EFQG4_4Hs7T4Tf+en
zw=%J{6@(GXB(g;WorXL?!g=l);14^kV#k83r%HEk0ZAviU2cj_Y%
zeQ>$h!_LaH=CF5Y_SceH?qDJlg|k`;A3UblGFD8GF8tgyrNR|k${H`y9QYW0W*J^K
zNgtNGMGbzG3?D@Snac6q+nLL$Mb~$6RlzWrIb`f`abSOHjfj0O9F2*hKim|@7DQ8R
z4+-2A_z#}H%;HU-B&2MM6S6bznffs9Yv_?C#so`qukHl=eItCciKnm2F7LEKOpaYD
zBN(U8)y(Hu4}DM?z;g1Vog=eIf2Tf6@=A?)zs_*@ve7nFLK?kX29j|yovfLT8;G#;}Bs;s_qfL1kE
zW||)qD1%rmk6NDXs3l{h<=#nD`lRXP!HJr1oB1{DSVCAhx{&?yB^>T{*2u>b&%>4-
zx#&G#db7885+L#xR@63*DeEoF*Cc&88LqAt%Bn7@Y5e)uc)LZ7L(S6T;NC+jDdHd-
z(>?t9S8wsPJd_F5(%0qvN;gN8eriu`jj^2v)7FrB*iZmM=hd#(O&y^J%7s%&_lKrV
zP~MYHrPd^!3z6X~A6#jWjnUKk6-bDIIBrZ_SJ13J_Ws^C{gMinac#5L02Ps9@#U^p
z6MRb1H$2|1Nsff&oa{{x%<-VkOi~|vTM)L#v}rCY#pazN=Xg1H@t(9m9$WTmLU#py
zdm398N6rQPC`<(xhIRz^H?Cw`mBVbY=DGaH_hSulE_H!)T(FH!R->>ss$*wl(9Ce5
zH$OxG(drZ}ZrgCzU8W@7Hfk8_-X@y8OF*=6pvVfq7dYd#4bZEFwBMWF03=9dC=oe$!+d(jw04P(2JY-ql3Nybi4MDd
zVgS@`cSNA_!8SiB>gl~3KEe5r<1gW(!8xeNOn>hED~@mPRiyE_w&=;+!#R|qJ#R}b4k=3T280)yKze146|8WX-LM?d
z9NR |