├── .gitognore ├── Autosqli.py ├── DATABASE ├── Autosqli.db └── schema.sql ├── README.md ├── lxml-2.3.win-amd64-py2.7.exe ├── readme_pic ├── 1.png ├── 1pa_data.png ├── 2.png ├── 2pa_data1.png ├── 2pa_data2.png ├── 2pa_data3.png └── 3.png ├── requirements.txt ├── set_options.txt ├── static ├── css │ ├── global.css │ ├── json.css │ ├── normal.css │ └── zxmk.css ├── images │ ├── Collapsed.gif │ ├── Expanded.gif │ ├── Thumbs.db │ ├── admin.jpg │ ├── bg.png │ ├── bg2.png │ ├── chart.png │ ├── course-icon.png │ ├── course-icon2.png │ ├── favicon.ico │ ├── forma-icon.png │ ├── jxst.png │ ├── means-icon.png │ ├── mryl.png │ ├── quest-icon.png │ ├── quest-icon2.png │ ├── report-icon.png │ ├── xx-logo.jpg │ ├── yl.png │ └── zlDown.png └── js │ ├── ajax.js │ ├── c.js │ ├── core.js │ ├── jquery-1.11.3.min.js │ └── m.js └── templates ├── customtask.html ├── index.html ├── quickbuild.html ├── sqlshow.html ├── success.html ├── taskdata.html └── tasklist.html /.gitognore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | *.db 3 | -------------------------------------------------------------------------------- /Autosqli.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | #!-*- coding:utf-8 -*- 3 | 4 | import json 5 | import time 6 | import threading 7 | import re 8 | import requests 9 | import sys 10 | import os 11 | import sqlite3 12 | import string 13 | import random 14 | import datetime 15 | from urlparse import urlparse 16 | from bs4 import BeautifulSoup 17 | from flask import Flask,render_template,request,session 18 | 19 | SERVER_List=["http://127.0.0.1:8775"] 20 | HEADER={'Content-Type': 'application/json'} #post to sqlmapapi,we should declare http header 21 | taskid_thread_Dict={} #this dictionary will store all task's thread id,it will be use at Delete_Handle 22 | app=Flask(__name__) 23 | lock = threading.Lock() 24 | #---------------------SQLITE initial start------------------------ 25 | app.config.update(dict( 26 | DATABASE=os.path.join(app.root_path+'/DATABASE', 'Autosqli.db'), 27 | DEBUG=True, 28 | SECRET_KEY='546sdafwerxcvSERds549fwe8rdxfsaf98we1r2', 29 | USERNAME='leehdautosqli', 30 | PASSWORD='lifeisshort' 31 | )) 32 | app.config.from_envvar('AUTOSQLI_SETTINGS', silent=True) 33 | 34 | #---------------------this secret key is for session 35 | app.secret_key = "34$#4564dsfaWEERds/*-()^=sadfWE89SA" 36 | #--------------------------------------------------- 37 | def connect_Db():#connect database 38 | rv=sqlite3.connect(app.config['DATABASE']) 39 | rv.row_factory=sqlite3.Row 40 | return rv 41 | def get_Db(): #equals to connect_Db() 42 | sqlite_db=connect_Db() 43 | return sqlite_db 44 | def init_Db(): #initial database ,this function will rebuild database--Autosqli.db 45 | with app.app_context(): 46 | db=get_Db() 47 | with app.open_resource('DATABASE/schema.sql',mode='r') as f: 48 | db.cursor().executescript(f.read()) 49 | db.commit() 50 | def query_db(query, args=(), one=False): #execute a sql select command parameter 'one' means return one record or all 51 | db=get_Db() 52 | cur = db.execute(query, args) 53 | rv = [dict((cur.description[idx][0], value) 54 | for idx, value in enumerate(row)) for row in cur.fetchall()] 55 | return (rv[0] if rv else None) if one else rv 56 | @app.teardown_appcontext 57 | def close_Db(error):#close database 58 | db=get_Db() 59 | db.close() 60 | 61 | #---------------------SQLITE initial end------------------------ 62 | 63 | #---------------------Random String ---------------------------- 64 | def get_RandomStr(length=1): 65 | source="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890" 66 | if length>0: 67 | return string.join(random.sample(source,length), sep='') 68 | else: 69 | return '0' 70 | #---------------------Random String end------------------------- 71 | 72 | #---------------------Set SESSION for user---------------------- 73 | def set_Session(): 74 | if 'username' not in session: 75 | session['username'] = datetime.datetime.now().strftime("%Y-%m-%d") 76 | #---------------------Set SESSION end -------------------------- 77 | 78 | #-------------Functions to write data to database--------------- 79 | def write_Log(taskid,message={}): 80 | log = query_db('select log from Autosqli where taskid = ?', 81 | [taskid], one=True)['log'] 82 | log=eval(log) #convert str to a list 83 | log.append(message)#append message at end of log list 84 | db=get_Db()#write log to database 85 | db.execute('update Autosqli set log = ? where taskid = ?', 86 | [str(log),taskid]) 87 | db.commit() 88 | return True 89 | def write_Data(taskid,data=""): 90 | db=get_Db() 91 | db.execute('update Autosqli set data = ? where taskid = ?', 92 | [data,taskid]) 93 | db.commit() 94 | return True 95 | def write_Status(taskid,status=""): 96 | db=get_Db() 97 | db.execute('update Autosqli set status = ? where taskid = ?', 98 | [status,taskid]) 99 | db.commit() 100 | return True 101 | def write_Url(taskid,url=""): 102 | db=get_Db() 103 | db.execute('update Autosqli set url = ? where taskid = ?', 104 | [url,taskid]) 105 | db.commit() 106 | return True 107 | def write_UrlParameters(taskid,url_paramters_list=[]): 108 | db=get_Db() 109 | db.execute('update Autosqli set url_parameters = ? where taskid = ?', 110 | [str(url_paramters_list),taskid]) 111 | db.commit() 112 | return True 113 | #-------------Functions to write data to database end------------ 114 | 115 | #-------------Functions to get parameters in URL----------------- 116 | def get_UrlParamters(URL): 117 | m=re.match('(http://)|(https://)',URL) 118 | if m is None: 119 | URL="http://"+URL 120 | option_list=[] 121 | m=re.match('(.+)\?',URL) 122 | if m is None: 123 | option_list.append(URL) 124 | return option_list 125 | temp_list=re.findall('\?(\w+)=',URL) 126 | for i in temp_list: 127 | if i!="": 128 | option_list.append(i) 129 | temp_list=re.findall('\&(\w+)=',URL) 130 | for i in temp_list: 131 | if i!="": 132 | option_list.append(i) 133 | for i in range(len(option_list)): 134 | option_list[i]=option_list[i].encode('utf-8') 135 | return option_list 136 | #-------------Functions to get parameters in URL end------------- 137 | def get_Server(): 138 | tasklist = query_db('select * from Autosqli where status = ?',["running"]) 139 | server_runningNum_dict={} 140 | for server in SERVER_List: 141 | server_runningNum_dict[server]=0 142 | if len(tasklist)!=0: 143 | for task in tasklist: 144 | server_runningNum_dict[task['server']]+=1 145 | return sorted(server_runningNum_dict.iteritems(),key=lambda t:t[1],reverse=False)[0][0] 146 | else: 147 | return SERVER_List[0] 148 | def new_Taskid(): 149 | '''get a new taskid''' 150 | server=get_Server() 151 | url=server+"/task/new" 152 | responseData=json.loads(requests.get(url,None).text) 153 | if(responseData['success']==True): 154 | taskid=responseData['taskid'] 155 | log=str([{time.strftime("[*%H:%M:%S]"):"Built a new task successfully"}]) 156 | db=get_Db() #insert a new record into database 157 | db.execute('insert into Autosqli (taskid, log,user,server) values (?, ?, ? ,?)', 158 | [taskid,log,session['username'],server]) 159 | db.commit() 160 | write_Status(taskid, status="not running") 161 | return taskid 162 | else: 163 | return False 164 | 165 | def set_Options(taskid,options={}): 166 | if options is None: 167 | return False 168 | server=query_db('select server from Autosqli where taskid = ?',[taskid],one=True)['server'] 169 | url=server+"/option/"+taskid+"/set" 170 | for k in options: 171 | if options[k]=="False" or options[k]=="": 172 | del options[k] 173 | if 'url' in options.keys(): 174 | write_Url(taskid, url=options['url']) 175 | write_UrlParameters(taskid, url_paramters_list=get_UrlParamters(options['url'])) 176 | data=json.dumps(options) 177 | responseData=json.loads(requests.post(url,data=data,headers=HEADER).text) 178 | if(responseData['success']==True): 179 | log={time.strftime("[*%H:%M:%S]"):"Set Options successfully"} 180 | write_Log(taskid,log) 181 | db=get_Db() 182 | db.execute('update Autosqli set options = ? where taskid = ?', 183 | [data,taskid]) 184 | db.commit() 185 | return True 186 | else: 187 | return False 188 | 189 | def Thread_Handle(taskid): 190 | lock.acquire() 191 | server=query_db('select server from Autosqli where taskid = ?',[taskid],one=True)['server'] 192 | url_status=server+"/scan/"+taskid+"/status" 193 | url_log=server+"/scan/"+taskid+"/log" 194 | url_data=server+"/scan/"+taskid+"/data" 195 | db=get_Db() 196 | response_status=json.loads(requests.get(url_status,None).text)['status'] 197 | db.execute('update Autosqli set status = ? where taskid = ?', 198 | [response_status,taskid]) 199 | db.commit() 200 | while response_status!="terminated" and response_status!="deleting": 201 | time.sleep(2) 202 | response_status=json.loads(requests.get(url_status,None).text)['status'] 203 | response_loglist=json.loads(requests.get(url_log,None).text)['log'] 204 | for log in response_loglist: 205 | write_Log(taskid, {"[*"+log['time']+"]":log['message']}) 206 | write_Status(taskid, response_status) 207 | response_data=requests.get(url_data,None).text 208 | if response_data==None: 209 | return False 210 | write_Data(taskid, response_data) 211 | lock.release() 212 | return True 213 | 214 | def start_Scan(taskid): 215 | server=query_db('select server from Autosqli where taskid = ?',[taskid],one=True)['server'] 216 | url=server+"/scan/"+taskid+"/start" 217 | responseData=json.loads(requests.post(url,None,{'Content-Type': 'application/json'}).text) 218 | if(responseData['success']==True): 219 | write_Log(taskid,{time.strftime("[*%H:%M:%S]"):"Started a new scan successfully"}) 220 | write_Status(taskid, status="scaning") 221 | t=threading.Thread(target=Thread_Handle,args=(taskid,)) 222 | taskid_thread_Dict[taskid]=t 223 | t.start() 224 | return True 225 | else: 226 | return False 227 | def stop_Scan(taskid): 228 | server=query_db('select server from Autosqli where taskid = ?',[taskid],one=True)['server'] 229 | url=server+"/scan/"+taskid+"/stop" 230 | responseData=json.loads(requests.get(url,None).text) 231 | if(responseData['success']==True): 232 | write_log(taskid,{time.strftime("[*%H:%M:%S]"):"Task was stopped by user"}) 233 | return True 234 | else: 235 | return False 236 | def Delete_Handle(taskid): 237 | write_Status(taskid, status="deleting") 238 | server=query_db('select server from Autosqli where taskid = ?',[taskid],one=True)['server'] 239 | url=server+"/task/"+taskid+"/delete" 240 | if(taskid in taskid_thread_Dict.keys()): 241 | while(taskid_thread_Dict[taskid].isAlive()): 242 | time.sleep(2) 243 | json.loads(requests.get(url,None).text) 244 | db=get_Db() 245 | db.execute('delete from Autosqli where taskid = ?', 246 | [taskid]) 247 | db.commit() 248 | return True 249 | 250 | def delete_Task(taskid): 251 | t=threading.Thread(target=Delete_Handle,args=(taskid,)) 252 | t.start() 253 | return True 254 | 255 | def save_successresult(options): 256 | rebeat = query_db("select url from SuccessTarget where user = ?", [session['username']]) 257 | if len(rebeat) >0 : 258 | return None 259 | db=get_Db() #insert a new record into database 260 | db.execute('insert into SuccessTarget (url, data,user) values (?, ?, ?)', 261 | [options['url'],options['data'],session['username']]) 262 | db.commit() 263 | 264 | def getsuccessresult(): 265 | tasklist = query_db('select * from SuccessTarget where user = ?',[session['username']]) 266 | if len(tasklist)>0: 267 | for task in tasklist: 268 | for key in task.keys(): 269 | if task[key]=="" or task[key]==None: 270 | task[key]="Empty" 271 | return tasklist 272 | 273 | def get_TaskList(): 274 | if session['username']=="": 275 | return False 276 | tasklist = query_db('select * from Autosqli where user = ?',[session['username']]) 277 | if len(tasklist)>0: 278 | for task in tasklist: 279 | for key in task.keys(): 280 | if task[key]=="" or task[key]==None: 281 | task[key]="Empty" 282 | return tasklist 283 | def get_TaskLog(taskid): 284 | loglist=query_db('select log from Autosqli where taskid = ?',[taskid],one=True)['log'] 285 | loglist=eval(loglist) 286 | return_html='

CLOSE

' 287 | for log in loglist: 288 | time=log.keys()[0] 289 | return_html=return_html+"

"+time+log[time]+"

" 290 | return return_html 291 | def get_TaskData(taskid): 292 | data=query_db('select data from Autosqli where taskid = ?',[taskid],one=True)['data'] 293 | return data 294 | 295 | def task_Dup(Options={}): 296 | options=Options.copy() 297 | tasklist=query_db('select url_parameters,options from Autosqli where user = ?',[session['username']]) 298 | if len(tasklist)==0: 299 | return 1 300 | urlparamters=get_UrlParamters(options['url']) 301 | del options['url'] 302 | for task in tasklist: 303 | templist_UrlParam=eval(task['url_parameters']) 304 | tempdic_Options=json.loads(task['options']) 305 | if 'url' in tempdic_Options.keys(): 306 | del tempdic_Options['url'] 307 | if sorted(urlparamters)==sorted(templist_UrlParam) and options==tempdic_Options: 308 | return -1 309 | return 1 310 | 311 | #------------------new Feature------------------------------- 312 | def gethref(url): 313 | def sp(urls): 314 | print urls 315 | alist = set() 316 | headers = {"User-Agent":"Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:47.0) Gecko/20100101 Firefox/47.0"} 317 | req = requests.get(url, headers=headers) 318 | domain = "{0}://{1}".format(urlparse(url).scheme, urlparse(url).netloc) 319 | soup = BeautifulSoup(req.text, "lxml") 320 | # import ipdb;ipdb.set_trace() 321 | if len(soup.find_all('a')) == 0: 322 | alist.add(urls) 323 | return 324 | for a in soup.find_all('a'): 325 | if a.has_attr('href') == False: 326 | continue 327 | if a['href'].startswith(domain): 328 | alist.add(a['href']) 329 | elif a['href'].startswith('http') == False: 330 | us = "{0}/{1}/{2}".format(domain, urlparse(url).path, a['href']) 331 | alist.add(us) 332 | return alist 333 | tmp1 = tmp2 = sp(url) 334 | if(tmp2!=None): 335 | for u in tmp2: 336 | tmp1 = tmp1 | sp(u) 337 | return tmp1 338 | else: 339 | return set([url]) 340 | 341 | def GetSuccessTarget(): 342 | slist = {} 343 | flag = re.compile(r'payload":\s+"(.*?)"') 344 | tasklist = get_TaskList() 345 | for task in tasklist: 346 | try: 347 | data = flag.search(task['data']).groups()[0] 348 | slist['url'] = task['url'] 349 | slist['data'] = data 350 | save_successresult(slist) 351 | except: 352 | pass 353 | return slist 354 | 355 | 356 | #-------------------A test page---------------------------------- 357 | #@app.route('/sqlshow.html') 358 | #def show_entries(): 359 | #db=get_Db() 360 | #cur = db.execute("select * from Autosqli") 361 | #entry=cur.fetchall() 362 | #tasklist=query_db('select user from Autosqli where taskid = ?',['7abc8e899783367a'],one=True) 363 | #return render_template('sqlshow.html', entries=entry,data=str(request.remote_addr)) 364 | #-------------------A test page end------------------------------ 365 | @app.route('/',methods=['GET']) 366 | def handle_root(): 367 | set_Session() 368 | return render_template("index.html") 369 | 370 | @app.route('/index.html',methods=['GET']) 371 | def handle_index(): 372 | set_Session() 373 | return render_template("index.html") 374 | 375 | @app.route('/quickbuild.html',methods=['GET']) 376 | def handle_quickbuild(): 377 | set_Session() 378 | return render_template("quickbuild.html") 379 | @app.route('/quickbuild.html',methods=['POST']) 380 | def handle_post_quickbuild(): 381 | options={} 382 | if 'url' in request.json and request.json['url']!="": 383 | options['url']=request.json['url'] 384 | m=re.match('(http://)|(https://)',options['url']) #add http:// for targetURL 385 | if m is None: 386 | options['url']="http://"+options['url'] 387 | if task_Dup(options)!= 1: 388 | return "False" 389 | else: 390 | taskid=new_Taskid() 391 | if taskid: 392 | result=set_Options(taskid,options) 393 | return str(result) 394 | else: 395 | return "False" 396 | else: 397 | return "False" 398 | 399 | @app.route('/customtask.html',methods=['GET']) 400 | def handle_customtask(): 401 | set_Session() 402 | return render_template("customtask.html") 403 | 404 | @app.route('/customtask.html',methods=['POST']) 405 | def handle_post_customtask(): 406 | options={} 407 | for k in request.form: 408 | if request.form[k] and request.form[k] != "False" and request.form[k]!= "": 409 | options[k]=request.form[k] 410 | if 'url' not in options.keys(): 411 | return render_template("customtask.html",result="Error:Please input URL.") 412 | m=re.match('(http://)|(https://)',options['url']) #add http:// for targetURL 413 | if m is None: 414 | options['url']="http://"+options['url'] 415 | 416 | urls = gethref(options['url']) 417 | for u in urls: 418 | options['url']=u 419 | if task_Dup(options)==1:#这里去重从逻辑上来更合理,但是没多大意义 420 | taskid=new_Taskid() 421 | if taskid: 422 | result = set_Options(taskid,options) 423 | else: 424 | return render_template("customtask.html",result="Error:Can not establish task.") 425 | return render_template("tasklist.html") 426 | @app.route('/spider',methods=['POST']) 427 | def hander_spider(): 428 | if 'url' in request.json and request.json['url']!="": 429 | url=request.json['url'] 430 | m=re.match('(http://)|(https://)',url) #add http:// for targetURL 431 | if m is None: 432 | url="http://"+url 433 | try: 434 | result=gethref(url) 435 | except Exception, e: 436 | return "False" 437 | if(len(result)!=0): 438 | li_list="" 439 | for u in result: 440 | li_list=li_list+"
  • "+u+"
  • " 441 | return li_list 442 | else: 443 | return "False" 444 | else: 445 | return "False" 446 | @app.route('/tasklist.html',methods=['GET']) 447 | def handle_tasklist(): 448 | set_Session() 449 | GetSuccessTarget() 450 | if "action" in request.args and request.args["action"]=="refresh": 451 | tasklist=get_TaskList() 452 | return_html="

    Now has {0} tasks to running

    ".format(len(tasklist)) 453 | if tasklist==False or len(tasklist)==0: 454 | return_html='

    No task for you

    ' 455 | return return_html 456 | for task in tasklist: 457 | return_html=return_html+'
    '+\ 458 | '

    TaskID:    '+\ 459 | task['taskid']+\ 460 | '

    Status:    '+\ 461 | task['status']+'

    '+\ 462 | '

    TargetURL:    '+\ 463 | task['url']+'

    '+\ 464 | '

    URL Paramters:    '+\ 465 | task['url_parameters']+'

    '+\ 466 | '

    Options:    '+\ 467 | task['options']+'

    '+\ 468 | '

    Server:    '+\ 469 | task['server']+'

    '+\ 470 | '

    '+\ 471 | 'Log

    '+\ 472 | ''+\ 473 | 'Data'+\ 474 | '

    '+\ 475 | 'Start

    '+\ 476 | '

    '+\ 477 | 'Stop

    '+\ 478 | '

    '+\ 479 | 'Delete

    ' 480 | return return_html 481 | elif "action" in request.args and request.args["action"]=="delete" \ 482 | and "taskid" in request.args and request.args["taskid"]!="": 483 | return str(delete_Task(str(request.args["taskid"]))) 484 | elif "action" in request.args and request.args["action"]=="seelog"\ 485 | and "taskid" in request.args and request.args["taskid"]!="": 486 | taskid=str(request.args["taskid"]) 487 | return get_TaskLog(taskid) 488 | elif "action" in request.args and request.args["action"]=="start"\ 489 | and "taskid" in request.args and request.args["taskid"]!="": 490 | taskid=str(request.args['taskid']) 491 | result=start_Scan(taskid) 492 | return str(result) 493 | elif "action" in request.args and request.args["action"]=="stop"\ 494 | and "taskid" in request.args and request.args["taskid"]!="": 495 | taskid=str(request.args['taskid']) 496 | result=stop_Scan(taskid) 497 | return str(result) 498 | else: 499 | tasklist=get_TaskList() 500 | return_html="

    Now has {0} tasks to running

    ".format(len(tasklist)) 501 | if tasklist==False or len(tasklist)==0: 502 | return_html='

    No task for you

    ' 503 | else: 504 | for task in tasklist: 505 | return_html=return_html+'
    '+\ 506 | '

    TaskID:    '+\ 507 | task['taskid']+\ 508 | '

    Status:    '+\ 509 | task['status']+'

    '+\ 510 | '

    TargetURL:    '+\ 511 | task['url']+'

    '+\ 512 | '

    URL Paramters:    '+\ 513 | task['url_parameters']+'

    '+\ 514 | '

    Options:    '+\ 515 | task['options']+'

    '+\ 516 | '

    Server:    '+\ 517 | task['server']+'

    '+\ 518 | '

    '+\ 519 | 'Log

    '+\ 520 | ''+\ 521 | 'Data'+\ 522 | '

    '+\ 523 | 'Start

    '+\ 524 | '

    '+\ 525 | 'Stop

    '+\ 526 | '

    '+\ 527 | 'Delete

    ' 528 | return render_template("tasklist.html",html=return_html) 529 | 530 | @app.route('/success.html',methods=['GET']) 531 | def handle_instructions(): 532 | set_Session() 533 | slist = getsuccessresult() 534 | return_html='

    Now has {0} url success crack

    '.format(len(slist)) 535 | for url in slist: 536 | return_html=return_html+'
    '+\ 537 | '

    URL:    '+\ 538 | url['url']+\ 539 | '

    payload:    '+\ 540 | url['data']+'

    ' 541 | return render_template("success.html", html=return_html) 542 | 543 | @app.route('/taskdata.html',methods=['GET']) 544 | def handle_taskdata(): 545 | set_Session() 546 | if "taskid" in request.args : 547 | taskid=str(request.args["taskid"]) 548 | return render_template("taskdata.html",data=get_TaskData(taskid)) 549 | else: 550 | return '' 551 | init_Db() 552 | if __name__=='__main__': 553 | app.run(host="0.0.0.0",port=int(sys.argv[1]),debug=True) 554 | -------------------------------------------------------------------------------- /DATABASE/Autosqli.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/DATABASE/Autosqli.db -------------------------------------------------------------------------------- /DATABASE/schema.sql: -------------------------------------------------------------------------------- 1 | drop table if exists Autosqli; 2 | drop table if exists SuccessTarget; 3 | create table Autosqli ( 4 | id integer primary key autoincrement, 5 | taskid string not null, 6 | url string null, 7 | url_parameters string null, 8 | options string null, 9 | log string null, 10 | status string null, 11 | data string null, 12 | user string null, 13 | server string null 14 | ); 15 | create table SuccessTarget ( 16 | id integer primary key autoincrement, 17 | url string null, 18 | data string null, 19 | user string null 20 | ); -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 装了这么多天13终于可以开心的写中文的文档了,恰逢寒假,也有时间好好理理在这个应用开发过程中的经验教训。当然这个应用在各位大神看来或许并不值得一看,但是希望能给和我一样的菜鸟在遇到这样的课题时能有所帮助,少走弯路,毕竟在网上能找到的关于sqlmapapi的资料少之又少。 2 | ## Sqlmap项目 3 | 4 | > Sqlmap是一款开源的自动探测和发现sql注入漏洞以及拿下数据库服务器的工具,它有一个强大的探测引擎, SqlMap是一个开放源码的渗透测试工具,它可以自动探测和利用SQL注入漏洞来接管数据库服务器。它配备了一个强大的探测引擎,为最终渗透测试人员提供很多功能,可以拖库,可以访问底层的文件系统,还可以通过带外连接执行操作系统上的命令。 5 | 6 | 简单的说Sqlmap就是一个用来进行SQL注入的自动化工具。这个工具十分强大,它的具体使用方法可以搜一下“sqlmap用户手册”之类的东西。但是主要难点在于理解sql注入的基本原理和高级手段,很遗憾我并不能完全理解。 7 | ## SqlmapApi 8 | 随着sqlmap在sql注入上的广泛使用,sqlmap本身的缺陷也逐渐暴露出来,最重要的一个就是任务管理太麻烦。在控制台下,管理本身就是一个很不方便的事情,虽然sqlmap有自己的任务队列机制,但是大家脑补一下就能知道这个东西并不是很靠谱。各种各样的原因使得sqlmap的团队开发除了sqlmapapi这个东西。sqlmapapi类似于一个server、client程序,写过简单tcp程序的同学都应该能够理解这种工作方式,唯一不同的是sqlmapapi使用了http协议中的get和post两种数据请求方式来实现交互。具体sqlmapapi怎么使用后面再讲。 9 | ## Autosqli 10 | Autosqli也就是我所做的这个东西,起因是我们有一门信息安全实践课程,我选课题的时候选了这个。Autosqli就是利用sqlmapapi去做一些扩展。课题最初的要求是这样的: 11 | 1. 利用sqlmapapi.py实现任务池,同时检测多个任务。 12 | 2. 完成url去重,判断该url是否在任务池中或已完成。 13 | 3. 实现任务调度,能够并发检测多个任务。 14 | 4. 加入分布式方法。 15 | 5. 方便快捷的添加任务功能。 16 | 6. 开放http代理 17 | 7. web管理界面 18 | 8. 其他功能性扩展 19 | 20 | ## 如何使用sqlmapapi 21 | 1. 操作系统:Linux (Ubuntu15.10) 22 | 2. 编译环境:python 2.7 23 | 3. 权限:管理员权限 24 | 4. 下载sqlmap项目【注意:在SourceForge上的sqlmap项目下载完后没有sqlmapapi.py这个文件,请在github上[下载](https://github.com/sqlmapproject/sqlmap)】 25 | 5. 解压下载好的压缩文件,并将sqlmap-master文件夹放到/usr/lib/python2.7/下 26 | 6. 安装requests模块:pip install requests 27 | 7. 打开一个终端,输入`cd /usr/lib/python2.7/sqlmap-master` `sudo python sqlmapapi -s`,这就是sqlmapapi的服务器端 28 | 8. 再打开一个终端,输入`cd /usr/lib/python2.7/sqlmap-master` `sudo python sqlmapapi -c` ,这就是sqlmapapi的客户端 29 | 9. 现在,你可以在客户端的终端上建立sql注入任务了,具体方法--help 30 | 31 | ## 利用sqlmapapi进行扩展的原理 32 | 前面说过,sqlmapapi的服务器端会接收来自客户端的get和post请求,你在sqlmapapi.py -c的终端上所做的事情其实都是以http请求的方式发送给sqlmapapi.py -s的终端上的。我们要做的就是使用web应用程序替代sqlmapapi.py -c。 33 | 打开sqlmap-master\lib\utils文件夹中的api.py文件。在这个python文档中可以看到sqlmapapi的服务端可以接收的所有请求。 34 | ![这里写图片描述](readme_pic/1.png) 35 | 这幅图中包含了两个函数,一般情况下sqlmapapi.py -s会运行在127.0.0.1:8775这个地址上,如果我们在浏览器中访问127.0.0.1:8775/task/new这个网址的话,可以看到浏览器中出现了一个json的数据包,其中包含了'taskid'和'success'两个项目。这就是图中341行的task_new函数的功能。总结起来,sqlmapapi一共提供了以下几个函数供我们使用: 36 | #### 用户方法 37 | 1. @get("/task/new") 38 | 2. @get("/task//delete") 39 | #### 管理函数 40 | 1. @get("/admin//list") 41 | 2. @get("/admin//flush") 42 | #### 核心交互函数 43 | 1. @get("/option//list") 44 | 2. @post("/option//get") 45 | 3. @post("/option//set") 46 | 4. @post("/scan//start") 47 | 5. @get("/scan//stop") 48 | 6. @get("/scan//kill") 49 | 7. @get("/scan//status") 50 | 8. @get("/scan//data") 51 | 9. @get("/scan//log//") 52 | 10. @get("/scan//log") 53 | 11. @get("/download///") 54 | 我们将在Autosqli中使用python的requests模块对sqlmapapi服务器进行访问,当然还可以使用urllib2,但是requests更加方便。 55 | 56 | ## 让我们跑起来! 57 | 1. 在github上下载Autosqli的源代码【[下载地址](https://github.com/LeeHDsniper/AutoSqli)】,或者`git clone git@github.com:LeeHDsniper/AutoSqli.git` 58 | 2. 安装Flask【[如何安装?](http://dormousehole.readthedocs.org/en/latest/installation.html)】,如果你使用的是linux,并且安装好了python的pip的话,直接在终端中输入`sudo pip install flask`就ok。 59 | 3. 运行sqlmapapi的服务器端,最好让它运行在0.0.0.0上,默认的127.0.0.1是本地环回测试地址,如果要使用分布式*(后面介绍)*的话只能使用0.0.0.0。具体命令是这样:`cd /usr/lib/python 2.7/sqlmap-master` `sudo python sqlmapapi.py -s -H 0.0.0.0` 60 | 4. 运行Autosqli `sudo python Autosqli/Autosqli.py` 61 | 5. 在浏览器中输入127.0.0.1,ok,你就可以看到Autosqli的界面了。 62 | 6. 如果你想看看具体的测试实例,可以访问这个项目的github【[地址](https://github.com/LeeHDsniper/AutoSqli)】,其中有一个ppt文件,在这个文件的最后有测试实例。 63 | 64 | ## 几个重要的功能 65 | 1. 数据库 66 | 其实一开始对使用哪种数据库让我很纠结,按照我以往的习惯肯定习惯于MySQL,但是为了让服务器搭建起来更加容易,我放弃了数据库的性能,选用了SQLite。整个库中只包含一个表,这个表中存储了任务的所有者,taskid,任务参数,日志,结果等信息。这几个函数包含了基本的数据库操作: 67 | ![这里写图片描述](readme_pic/2.png) 68 | 另外我又封装了几个函数,用来分别写入日志、扫描结果等。 69 | 2. URL去重 70 | 其实把它叫做任务去重更加合适,功能很简单,根据用户已建立的任务参数和要建立任务的参数匹配,得出是否重复的判断结果,如果已经建立,那么服务器会拒绝这次任务请求。 71 | 这项功能的主要作用应该是检测数据库中所有用户建立的任务,如果该用户没有建立过但是已经有其他用户建立过,直接返回这条数据以减少服务器压力。![这里写图片描述](readme_pic/3.png) 72 | 3. 分布式与负载均衡 73 | 前面提到过分布式计算,目前的实现方式是多台运行了sqlmapapi的服务器同时运行,由一个简单的判断程序将任务进行分配。详细的解释可以看github中的那个ppt。但是按照我的理解,这不能算作完全意义上的分布式计算,或者说真正意义上的分布式应当可以进一步细化,而不是以一个任务为基本单位进行分配,可以以一个payload为基本单位。其次就是负载均衡,简单讲应该以服务器的资源占有率进行分配,但是目前只是进行简单的计数,哪台服务器上运行的任务少就分配到哪台。 74 | 4. 任务调度 75 | 如果要实现任务调度,那就需要对用户可以同时进行的任务数目进行限制,比如限制在5个,那么用户在建立时可以选择一个任务的优先级进行操作。不然的话任务调度是没有意义的。因此,我只做了开始、停止、删除这三项功能。 76 | 5. 自定义任务的参数 77 | sqlmapapi拥有一百多个任务参数,具体可以参考github上的set_options.txt。由于这一百多个参数过于复杂和庞大,我在自定义任务页面只做了可以满足基本测试的几个。 78 | 6. 不得不提的注入结果展示界面 79 | sqlmapapi的所有返回数据都是json数据包,如果数据量不多还好,一旦json数据包的结构更加复杂,项目更加多的话,它在用户界面的展示就会成为一个极为棘手的问题。就在我苦战多天准备放弃的时候,一个想法突然出现了,虽然不是很光彩,但是确实解决了这个问题。至于如何解决的,请在github中的英文readme.md中的最后找。 80 | 81 | ## 结语 82 | 83 | sqlmap真的是一个非常强大的注入工具,而对它进行可视化其实有两条路线,一种是使用普通的应用程序,另一种是使用web应用。相比之下,web应用对于客户端来说更加方便,也没有系统环境限制,例如 Nessus那样。 84 | Autosqli这个项目其实很简单,只不过是作为一个简单的python在web应用方面的尝试,并没有对sql注入以及sqlmap本身进行研究,但是它有很多的扩展潜力,比如更加自动化的注入【可能需要改写sqlmap的源代码】,对于WAF的检测和绕过等方面比起前端来说更加吸引人。 85 | 如果有能力的大神能够进行深层次的扩展,欢迎指导~ 86 | 87 | ## 2016/11/7更新(十分惭愧,,,这么久才更新一次,找工作,太忙了) 88 | 89 | 首先感谢[@fengxuangit](https://github.com/fengxuangit)完成了网络爬虫、已完成任务的列表等工作,我将网络爬虫功能代码修改了一下,其中的某些bug得到了修复。 90 | 另外,将爬虫功能放在用户自定义任务页面中,可以直接爬取网站链接。 91 | 之前一些issue里面提到的python运行出现requests模块报错的问题,注意分辨request和requests两个模块的区别。使用pip安装requests模块后并未发现报错。 92 | 另外,sqlmap的部分版本中,出现了sqlmapapi建立任务报错的问题,sqlmap项目组今天已经对这个问题进行了修复。 93 | 94 | 现在,需要做的工作是对自动化注入的进一步完善,另外,Autosqli原本是作为一个课程项目来做的,在项目初期并没有考虑长期的代码架构,现在太多的代码功能没有进行模块化分离,需要对代码进一步重构。 95 | 96 | 最后,sqlmap的很多参数没有加入到自定义任务功能中,爬虫没有支持post数据的链接爬取,没有支持自定义tamper。这些工作后续会完善。 97 | 98 | 最后的最后,在使用bs4包的时候,使用pip或者easy_install安装时会报错,最终的错误来自于安装lxml错误,在Windows下安装的文件已经在这里了:[下载lxml安装包](https://github.com/LeeHDsniper/AutoSqli/raw/master/lxml-2.3.win-amd64-py2.7.exe) 99 | -------------------------------------------------------------------------------- /lxml-2.3.win-amd64-py2.7.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/lxml-2.3.win-amd64-py2.7.exe -------------------------------------------------------------------------------- /readme_pic/1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/readme_pic/1.png -------------------------------------------------------------------------------- /readme_pic/1pa_data.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/readme_pic/1pa_data.png -------------------------------------------------------------------------------- /readme_pic/2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/readme_pic/2.png -------------------------------------------------------------------------------- /readme_pic/2pa_data1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/readme_pic/2pa_data1.png -------------------------------------------------------------------------------- /readme_pic/2pa_data2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/readme_pic/2pa_data2.png -------------------------------------------------------------------------------- /readme_pic/2pa_data3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/readme_pic/2pa_data3.png -------------------------------------------------------------------------------- /readme_pic/3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/readme_pic/3.png -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | requests 2 | bs4 3 | flask -------------------------------------------------------------------------------- /set_options.txt: -------------------------------------------------------------------------------- 1 | { 2 | "crawlDepth": None, 3 | "osShell": False, 4 | "getUsers": False, 5 | "getPasswordHashes": False, 6 | "excludeSysDbs": False, 7 | "uChar": None, 8 | "regData": None, 9 | "cpuThrottle": 5, 10 | "prefix": None, 11 | "code": None, 12 | "googlePage": 1, 13 | "query": None, 14 | "randomAgent": False, 15 | "delay": 0, 16 | "isDba": False, 17 | "requestFile": None, 18 | "predictOutput": False, 19 | "wizard": False, 20 | "stopFail": False, 21 | "forms": False, 22 | "taskid": "73674cc5eace4ac7", 23 | "skip": None, 24 | "dropSetCookie": False, 25 | "smart": False, 26 | "risk": 1, 27 | "sqlFile": None, 28 | "rParam": None, 29 | "getCurrentUser": False, 30 | "notString": None, 31 | "getRoles": False, 32 | "getPrivileges": False, 33 | "testParameter": None, 34 | "tbl": None, 35 | "charset": None, 36 | "trafficFile": None, 37 | "osSmb": False, 38 | "level": 1, 39 | "secondOrder": None, 40 | "pCred": None, 41 | "timeout": 30, 42 | "firstChar": None, 43 | "updateAll": False, 44 | "binaryFields": False, 45 | "checkTor": False, 46 | "aType": None, 47 | "direct": None, 48 | "saFreq": 0, 49 | "tmpPath": None, 50 | "titles": False, 51 | "getSchema": False, 52 | "identifyWaf": False, 53 | "checkWaf": False, 54 | "regKey": None, 55 | "limitStart": None, 56 | "loadCookies": None, 57 | "dnsName": None, 58 | "csvDel": ",", 59 | "oDir": None, 60 | "osBof": False, 61 | "invalidLogical": False, 62 | "getCurrentDb": False, 63 | "hexConvert": False, 64 | "answers": None, 65 | "host": None, 66 | "dependencies": False, 67 | "cookie": None, 68 | "proxy": None, 69 | "regType": None, 70 | "optimize": False, 71 | "limitStop": None, 72 | "mnemonics": None, 73 | "uFrom": None, 74 | "noCast": False, 75 | "testFilter": None, 76 | "eta": False, 77 | "threads": 1, 78 | "logFile": None, 79 | "os": None, 80 | "col": None, 81 | "rFile": None, 82 | "verbose": 1, 83 | "aCert": None, 84 | "torPort": None, 85 | "privEsc": False, 86 | "forceDns": False, 87 | "getAll": False, 88 | "api": True, 89 | "url": None, 90 | "invalidBignum": False, 91 | "regexp": None, 92 | "getDbs": False, 93 | "freshQueries": False, 94 | "uCols": None, 95 | "smokeTest": False, 96 | "pDel": None, 97 | "wFile": None, 98 | "udfInject": False, 99 | "tor": False, 100 | "forceSSL": False, 101 | "beep": False, 102 | "saveCmdline": False, 103 | "configFile": None, 104 | "scope": None, 105 | "dumpAll": False, 106 | "torType": "HTTP", 107 | "regVal": None, 108 | "dummy": False, 109 | "commonTables": False, 110 | "search": False, 111 | "skipUrlEncode": False, 112 | "referer": None, 113 | "liveTest": False, 114 | "purgeOutput": False, 115 | "retries": 3, 116 | "extensiveFp": False, 117 | "dumpTable": False, 118 | "database": "/tmp/sqlmapipc-EmjjlQ", 119 | "batch": True, 120 | "headers": None, 121 | "flushSession": False, 122 | "osCmd": None, 123 | "suffix": None, 124 | "dbmsCred": None, 125 | "regDel": False, 126 | "shLib": None, 127 | "NoneConnection": False, 128 | "timeSec": 5, 129 | "msfPath": None, 130 | "noEscape": False, 131 | "getHostname": False, 132 | "sessionFile": None, 133 | "disableColoring": True, 134 | "getTables": False, 135 | "agent": None, 136 | "lastChar": None, 137 | "string": None, 138 | "dbms": None, 139 | "tamper": None, 140 | "hpp": False, 141 | "runCase": None, 142 | "osPwn": False, 143 | "evalCode": None, 144 | "cleanup": False, 145 | "getBanner": False, 146 | "profile": False, 147 | "regRead": False, 148 | "bulkFile": None, 149 | "safUrl": None, 150 | "db": None, 151 | "dumpFormat": "CSV", 152 | "alert": None, 153 | "user": None, 154 | "parseErrors": False, 155 | "aCred": None, 156 | "getCount": False, 157 | "dFile": None, 158 | "data": None, 159 | "regAdd": False, 160 | "ignoreProxy": False, 161 | "getColumns": False, 162 | "mobile": False, 163 | "googleDork": None, 164 | "sqlShell": False, 165 | "pageRank": False, 166 | "tech": "BEUSTQ", 167 | "textOnly": False, 168 | "commonColumns": False, 169 | "keepAlive": False 170 | } -------------------------------------------------------------------------------- /static/css/global.css: -------------------------------------------------------------------------------- 1 | /* CSS Document */ 2 | body {margin:0; padding:0; font:12px "微软雅黑",sans-serif;background:#FFFFFF; text-align:center;} 3 | div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,blockquote,p{padding:0; margin:0;} 4 | li{list-style-type:none;} 5 | img{border:0;} 6 | ol,ul {list-style:none;} 7 | .w960{width:960px;text-align:left;} 8 | .w1050{width:1050px;text-align:left;} 9 | a{ text-decoration:none;} 10 | .red{color:#FF0000;} 11 | .orange{color:#F60; font-weight:bold;} 12 | .clear{ clear:both; height:0px; width:100%; overflow:hidden;} 13 | .fl{ float:left;} 14 | .fr{ float:right;} 15 | .b10{height:10px;font-size:1px;} 16 | #wrap{ margin:0px auto;} 17 | 18 | /* Nav css */ 19 | ul.my-nav{ 20 | background-color: #2587d4; 21 | height: 38px; 22 | line-height: 38px; 23 | padding:0 10px; 24 | -moz-border-radius: 5px; 25 | -webkit-border-radius: 5px; 26 | } 27 | ul.my-nav li{ 28 | float: left; 29 | line-height: 38px; 30 | display: block; 31 | } 32 | ul.my-nav li a { 33 | font-size: 15px; 34 | color: white; 35 | display: block; 36 | float: left; 37 | padding-left: 8px; 38 | padding-right: 8px; 39 | font-family: "Arial", "Microsoft YaHei", "微软雅黑", "SimSun", "宋体"; 40 | } 41 | 42 | ul.my-nav li a:hover { 43 | background-color: #1261a0; 44 | font-weight: bold; 45 | } 46 | 47 | ul.my-nav li a.on, ul.my-nav li a.on:hover { 48 | font-weight: bold; 49 | background-color: #1261a0; 50 | } -------------------------------------------------------------------------------- /static/css/json.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | 3 | /* CSS Document */ 4 | 5 | div.ControlsRow, div.HeadersRow { 6 | 7 | font-family: Georgia; 8 | 9 | } 10 | 11 | div.Canvas 12 | 13 | { 14 | 15 | 16 | 17 | font-family: Lucida Console, Georgia; 18 | 19 | 20 | 21 | font-size: 13px; 22 | 23 | min-height: 120px; 24 | 25 | display: block; 26 | 27 | padding: 8.5px; 28 | 29 | margin: 0 0 9px; 30 | 31 | line-height: 18px; 32 | 33 | word-break: break-all; 34 | 35 | word-wrap: break-word; 36 | 37 | white-space: pre; 38 | 39 | white-space: pre-wrap; 40 | 41 | background-color: #f5f5f5; 42 | 43 | border: 1px solid #ccc; 44 | 45 | border: 1px solid rgba(0, 0, 0, 0.15); 46 | 47 | -webkit-border-radius: 2px; 48 | 49 | -moz-border-radius: 2px; 50 | border-radius: 8px; 51 | width: 900px; 52 | margin-top: 50px; 53 | margin-left: 180px; 54 | 55 | 56 | } 57 | 58 | 59 | 60 | .ObjectBrace 61 | 62 | 63 | 64 | { 65 | 66 | 67 | 68 | color:#00AA00; 69 | 70 | 71 | 72 | font-weight:bold; 73 | 74 | 75 | 76 | } 77 | 78 | 79 | 80 | .ArrayBrace 81 | 82 | 83 | 84 | { 85 | 86 | 87 | 88 | color:#0033FF; 89 | 90 | 91 | 92 | font-weight:bold; 93 | 94 | 95 | 96 | } 97 | 98 | 99 | 100 | .PropertyName 101 | 102 | 103 | 104 | { 105 | 106 | 107 | 108 | color:#CC0000; 109 | 110 | 111 | 112 | font-weight:bold; 113 | 114 | 115 | 116 | } 117 | 118 | 119 | 120 | .String 121 | 122 | 123 | 124 | { 125 | 126 | 127 | 128 | color:#007777; 129 | 130 | 131 | 132 | } 133 | 134 | 135 | 136 | .Number 137 | 138 | 139 | 140 | { 141 | 142 | 143 | 144 | color:#AA00AA; 145 | 146 | 147 | 148 | } 149 | 150 | 151 | 152 | .Boolean 153 | 154 | 155 | 156 | { 157 | 158 | 159 | 160 | color:#0000FF; 161 | 162 | 163 | 164 | } 165 | 166 | 167 | 168 | .Function 169 | 170 | 171 | 172 | { 173 | 174 | 175 | 176 | color:#AA6633; 177 | 178 | 179 | 180 | text-decoration:italic; 181 | 182 | 183 | 184 | } 185 | 186 | 187 | 188 | .Null 189 | 190 | 191 | 192 | { 193 | 194 | 195 | 196 | color:#0000FF; 197 | 198 | 199 | 200 | } 201 | 202 | 203 | 204 | .Comma 205 | 206 | 207 | 208 | { 209 | 210 | 211 | 212 | color:#000000; 213 | 214 | 215 | 216 | font-weight:bold; 217 | 218 | 219 | 220 | } 221 | 222 | 223 | 224 | PRE.CodeContainer{ 225 | 226 | 227 | 228 | margin-top:0px; 229 | 230 | 231 | 232 | margin-bottom:0px; 233 | 234 | 235 | 236 | } 237 | 238 | 239 | 240 | PRE.CodeContainer img{ 241 | 242 | 243 | 244 | cursor:pointer; 245 | 246 | 247 | 248 | border:none; 249 | 250 | 251 | 252 | margin-bottom:-1px; 253 | 254 | 255 | 256 | } 257 | 258 | #CollapsibleViewDetail a{ 259 | 260 | padding-left:10px; 261 | 262 | } 263 | 264 | #ControlsRow{ 265 | 266 | white-space:nowrap; 267 | 268 | font-size: 16px; 269 | 270 | margin:0px; 271 | 272 | background-color: #90BCD6 273 | 274 | } 275 | 276 | #TabSizeHolder{ 277 | 278 | padding-left:10px; 279 | 280 | padding-right:10px; 281 | 282 | } 283 | 284 | #HeaderTitle{ 285 | 286 | text-align:right; 287 | 288 | font-size:11px; 289 | 290 | } 291 | 292 | #HeaderSubTitle{ 293 | 294 | margin-bottom:2px; 295 | 296 | margin-top:0px 297 | 298 | } 299 | 300 | #RawJson{ 301 | 302 | width:99%; 303 | 304 | height:120px; 305 | 306 | 307 | 308 | } 309 | 310 | A.OtherToolsLink { color:#555;text-decoration:none; } 311 | 312 | A.OtherToolsLink:hover { text-decoration:underline; } 313 | 314 | 315 | -------------------------------------------------------------------------------- /static/css/normal.css: -------------------------------------------------------------------------------- 1 | body{background:#f0f7fc;} 2 | .box{margin:10px auto;border:1px solid #c5e2f2} 3 | .box .box_title{height:37px;background:url('../img/h1-bg.gif') repeat-x;color:#0066CC;} 4 | .box .box_title h1,h2,h3{height:37px;line-height:37px;padding-left:20px;font-size:14px;font-weight:bold;margin:0;} 5 | 6 | .box .box_title_2{height:28px;background:#84C0F2;color:white;border:1px solid #92a2f2 } 7 | .box .box_title_2 h1,h2,h3{height:28px;line-height:28px;padding-left:20px;font-size:14px;font-weight:bold;margin:0;} 8 | 9 | 10 | .box .box_body{padding:3px 15px;background:#fff url("../img/box-body-bg.gif") repeat-x left top;} 11 | .normal_input{background:#fff;border:1px solid #94c6e1;color:#22ac38;padding:5px;font-weight:bold;} 12 | .normal_submit{width:90px;border:1px solid #c5e2f2;background: #cde4f2 url('../img/submit.gif') repeat-x 50% top;height:30px;marign-left:5px;} 13 | .box_content{text-align:center;padding:10px;} 14 | .box_form{padding-bottom:10px;border-bottom:1px solid #e5eff8;font-size:14px;} 15 | .box_form_noborder{border-bottom: none} 16 | .box_result{padding-top:20px;padding-bottom:20px;font-size:14px} 17 | .history_p{margin:10px;font-size:14px;overflow:hidden;} 18 | .description_p{margin:10px;font-size:14px;overflow:hidden;} 19 | .history_p a{margin-right:10px;height:25px;line-height:25px} 20 | 21 | table.common_table{clear:both;padding: 0; margin: 0 0 10px;border-collapse:collapse; border-spacing: 0;width: 100%} 22 | table.common_table th{padding: 5px 8px; font-weight:bold;background:#3066a6;color:#FFFFFF;border:1px solid #3066a6; text-align:left;} 23 | table.common_table tr{padding: 0; background:#F7F7F7;} 24 | table.common_table td{padding: 5px 8px; border:1px solid #CCCCCC;} 25 | 26 | .th_c{background-color: #D4E6F7} 27 | .td_c{min-width: 80px;background-color: #ECF5FB} 28 | .show_info{color:#FF0033} 29 | .show_info_special{font-size: 15px;font-weight: bold;color:red} -------------------------------------------------------------------------------- /static/css/zxmk.css: -------------------------------------------------------------------------------- 1 | @charset "utf-8"; 2 | /* CSS Document */ 3 | *{ margin:0; padding:0;} 4 | .clearfix:after {visibility: hidden;display: block;font-size: 0;content: "."; clear: both;height: 0;} 5 | .clearfix { display: inline-table; zoom:1;} 6 | input{ border:0;} 7 | h3{ font-weight: normal;} 8 | /* Hides from IE-mac \*/ 9 | * html .clearfix { height: 1%; } 10 | .clearfix { display: block; } 11 | ul li{ list-style:none;} 12 | a{ text-decoration:none;} 13 | body{font-family:"Microsoft Yahei"!important;background: url(../images/bg.png) !important;} 14 | .index-con{ width:1000px; height:450px; margin:140px auto 0; position:relative;} 15 | .index-con li{ width:335px; float:left; margin:0 10px 5px 0; position:relative;} 16 | *html .index-con li{margin:0 10px 10px 0;} 17 | *html .index-con .in-zxl{ margin-top:-10px;} 18 | .index-con li a{font-size:30px; color:#fff!important; line-height:63px; zoom:1; position:relative;} 19 | .in-kct a{height:300px; display:block; text-align:center;} 20 | .in-kct a{ background:#b01e00;} 21 | .in-kct i{ width:150px; height:150px; display:block; background:url(../images/course-icon.png) no-repeat; float:left;;margin:40px 95px 0 95px; } 22 | *html .in-kct i{margin:45px 45px 15px 45px; } 23 | .in-quest a{ background:#28b779;} 24 | .in-quest i{background:url(../images/quest-icon.png) no-repeat;} 25 | .index-con .in-jbk a{width:310px; height:145px; display:block; background:#00bfff; display:block;line-height:145px;} 26 | .in-jbk i{ width:60px; height:53px; display:block; float:left; background:url(../images/mryl.png) no-repeat; margin:50px 30px 0 55px; } 27 | *html .in-jbk i{ margin:38px 25px 0 20px;} 28 | .index-con .in-report a{ display:block; background:#ff8000;} 29 | .in-report i{ width:64px; height:64px; background:url(../images/yl.png) no-repeat; margin:42px 30px 0 49px;} 30 | .index-con .in-client a{ height:130px; display:block; background:#691bb8; line-height:130px;} 31 | .in-client i{width:58px; height:55px; background:url(../images/chart.png) no-repeat; margin:38px 30px 0 52px;} 32 | *html .in-client i{ margin:40px 30px 0 22px;} 33 | .index-con .in-zxl a{ height:130px; line-height:130px;display:block; background:#ff8000; margin-top:5px; overflow:hidden; } 34 | *html .index-con .in-zxl a{ margin-top:10px;} 35 | .in-zxl i{width:64px; height:56px; display:block; float:left;} 36 | .in-forma i{background:url(../images/forma-icon.png) no-repeat 0 3px; margin:37px 25px 0 95px;} 37 | .index-con .in-means a{ background:#1f64cd;} 38 | .in-means i{ background:url(../images/means-icon.png) no-repeat; margin:40px 25px 0 95px;} 39 | .in-forma i,.in-means i{ *margin:40px 35px 0 75px; } 40 | *html .in-forma i,.in-means i{ margin:40px 35px 0 35px; *margin:40px 35px 0 80px;} 41 | .in-text{ width:210px; position:absolute; left:65px; bottom:50px; text-align:center; font-size:16px; line-height:30px;} 42 | .in-text em{ color:#ffe569; font-size:25px;} 43 | .in-kct .in-none{ width:114px; height:114px;background:url(../images/course-icon2.png) no-repeat; position:absolute; top:1px; left:18px; } 44 | *html .in-kct .in-none{ position:absolute; top:3px; left:64px;} 45 | .in-quest .in-none{background:url(../images/quest-icon2.png) no-repeat;} 46 | .in-jbk .in-text,.in-zxl .in-text{ width:145px; line-height:25px; text-align:left; margin-left:55px;position:absolute;left: 65px;bottom:48px;} 47 | .in-client .in-text{position:absolute;left: 65px;bottom:40px;} 48 | .in-jbk .in-none{margin: 50px 30px 0 30px; position:absolute; top:0; left:0;} 49 | .in-report .in-none{margin: 42px 30px 0 30px;} 50 | .in-zxl .in-none{margin:40px 30px 0 42px; *margin:40px 30px 0 42px; position:absolute; top:0; left:0;} 51 | .in-forma .in-none{margin:37px 30px 0 42px; *margin:38px 30px 0 42px;} 52 | .in-zxl .in-text{ margin-left:65px;position:absolute;left: 65px;bottom:42px;} 53 | .in-none .in-text{position:absolute;left: 65px;bottom:40px;} 54 | .in-report .in-none .in-text,.in-plan .in-none .in-text{position:absolute;left: 65px;bottom:50px;} 55 | .nav-box-big span { font-size:33px; color:#de2501} 56 | .nav-box-big span{ max-width:260px;_max-width:230px} 57 | .index-con .in-none,.index-con .in-text{ display:none;} 58 | 59 | 60 | .index-con .in-jbk{ height:130px; position:absolute; top:0; right:-10px;} 61 | .index-con .in-plan{ width:310px; height:145px; position:absolute; top:0; right:-10px; z-index:5} 62 | .index-con .in-report{ width:310px; height:145px; position:absolute; top:154px; right:-10px; z-index:5} 63 | .index-con .in-client{ width:310px; height:130px; position:absolute; top:310px; right:-10px; z-index:5} 64 | .index-con .in-jbk i.hide,.index-con .in-zxl i.hide{ visibility:hidden} 65 | .index-con .in-kct .ch{ position:absolute; bottom:40px; left:140px;} 66 | .index-con .in-jbk .ch1{ position:absolute; top:0; left:140px;} 67 | .index-con .in-zxl .ch2{ position:absolute; top:0; left:180px;} 68 | 69 | 70 | .top-nav{ background:#151515; height:47px; line-height:47px;} 71 | .top-nav a{font-size: 20px;color: #fff;} 72 | .w1000{ width:1000px; margin:0 auto;} 73 | .topLogo{ float:left; padding-top:5px;} 74 | .topLogin{ float:right; background:url(../images/admin.jpg) no-repeat 0px 18px;font-size:8px; color:#5c5c5c; padding-left:10px;} 75 | .topLogin a{ color:#fff; font-size:14px; padding:0 5px; margin-left:5px;} 76 | 77 | .clear{height: 100px;float: left;clear: both;} 78 | .task_box{width: 900px;float:left;clear: both;font-size: 20px;color: white;border-width: 3px;border-style: solid;border-radius: 8px;padding:10px 40px 10px 40px;margin: 10px 40px 0px 130px;} 79 | #log_box{font-size: 1.25em;position: fixed;color: #2B1D1C;background-color: rgb(251, 250, 250);min-height: 300px;z-index: 99;display: none; top: 100px;left: 170px;opacity: 0.75;padding: 1.5em;word-wrap: break-word;border-radius: 15px;} 80 | .button{float: left;color:white;padding: 5px 15px 5px 15px;border-width: 2px;border-style: solid; border-color: white;border-radius: 4px;margin-left: 10px;margin-top:10px;font-size: 15px;} 81 | .close_button {color: #0E0E0E;padding: 5px 15px 5px 15px;border-width: 2px;border-style: solid;border-color: white;border-radius: 4px;font-size: 15px;background-color: red;width: 50px;text-align: center;} 82 | 83 | 84 | 85 | 86 | 87 | 88 | .in-kct .in-block .smaller{animation:scale 1s .1s ease-in-out both normal; -moz-animation:scale 1s .1s ease-in-out both normal; -webkit-animation:scale 1s .1s ease-in-out both normal; -o-animation:scale 1s .1s ease-in-out both normal} 89 | .in-kct .in-block .bigger{animation:scale1 1s .1s ease-in-out both normal; -moz-animation:scale1 1s .1s ease-in-out both normal; -webkit-animation:scale1 1s .1s ease-in-out both normal; -o-animation:scale1 1s .1s ease-in-out both normal;} 90 | .show{animation:show 1s .1s ease-in-out both normal; -moz-animation:show 1s .1s ease-in-out both normal; -webkit-animation:show 1s .1s ease-in-out both normal; -o-animation:show 1s .1s ease-in-out both normal;} 91 | .toLeft1{animation:toLeft1 1s .1s ease-in-out both normal; -moz-animation:toLeft1 1s .1s ease-in-out both normal; -webkit-animation:toLeft1 1s .1s ease-in-out both normal; -o-animation:toLeft1 1s .1s ease-in-out both normal;} 92 | .toRight1{animation:toRight1 1s .1s ease-in-out both normal; -moz-animation:toRight1 1s .1s ease-in-out both normal; -webkit-animation:toRight1 1s .1s ease-in-out both normal; -o-animation:toRight1 1s .1s ease-in-out both normal;} 93 | .toLeft2{animation:toLeft2 1s .1s ease-in-out both normal; -moz-animation:toLeft2 1s .1s ease-in-out both normal; -webkit-animation:toLeft2 1s .1s ease-in-out both normal; -o-animation:toLeft2 1s .1s ease-in-out both normal;} 94 | .toRight2{animation:toRight2 1s .1s ease-in-out both normal; -moz-animation:toRight2 1s .1s ease-in-out both normal; -webkit-animation:toRight2 1s .1s ease-in-out both normal; -o-animation:toRight2 1s .1s ease-in-out both normal;} 95 | .toLeft3{animation:toLeft3 1s .1s ease-in-out both normal; -moz-animation:toLeft3 1s .1s ease-in-out both normal; -webkit-animation:toLeft3 1s .1s ease-in-out both normal; -o-animation:toLeft3 1s .1s ease-in-out both normal;} 96 | .toRight3{animation:toRight3 1s .1s ease-in-out both normal; -moz-animation:toRight3 1s .1s ease-in-out both normal; -webkit-animation:toRight3 1s .1s ease-in-out both normal; -o-animation:toRight3 1s .1s ease-in-out both normal;} 97 | .toLeft4{animation:toLeft4 1s .1s ease-in-out both normal; -moz-animation:toLeft4 1s .1s ease-in-out both normal; -webkit-animation:toLeft4 1s .1s ease-in-out both normal; -o-animation:toLeft4 1s .1s ease-in-out both normal;} 98 | .toRight4{animation:toRight4 1s .1s ease-in-out both normal; -moz-animation:toRight4 1s .1s ease-in-out both normal; -webkit-animation:toRight4 1s .1s ease-in-out both normal; -o-animation:toRight4 1s .1s ease-in-out both normal;} 99 | 100 | 101 | @-webkit-keyframes scale { 102 | 0% { -webkit-transform: scale(1); } 103 | 100% { -webkit-transform:scale(0.65); } 104 | } 105 | 106 | @-moz-keyframes scale { 107 | 0% { -moz-transform: scale(1); } 108 | 100% { -moz-transform: scale(0.65); } 109 | } 110 | 111 | @-ms-keyframes scale { 112 | 0% { -ms-transform: scale(1); } 113 | 100% { -ms-transform: scale(0.65); } 114 | } 115 | 116 | @keyframes scale { 117 | 0% { transform: scale(1); } 118 | 100% { transform:scale(0.65); } 119 | } 120 | 121 | @-webkit-keyframes scale1 { 122 | 0% { -webkit-transform: scale(0.65); } 123 | 100% { -webkit-transform:scale(1); } 124 | } 125 | 126 | @-moz-keyframes scale1 { 127 | 0% { -moz-transform: scale(0.65); } 128 | 100% { -moz-transform: scale(1); } 129 | } 130 | 131 | @-ms-keyframes scale1 { 132 | 0% { -ms-transform: scale(0.65); } 133 | 100% { -ms-transform: scale(1); } 134 | } 135 | 136 | @keyframes scale1 { 137 | 0% { transform: scale(0.65); } 138 | 100% { transform:scale(1); } 139 | } 140 | 141 | @-webkit-keyframes show { 142 | 0% { opacity: 0; -webkit-transform: translateY(70%) } 143 | 100% { opacity: 1; -webkit-transform: translateY(0px) } 144 | } 145 | 146 | @-moz-keyframes show { 147 | 0% { opacity: 0; -moz-transform:translateY(70%) } 148 | 100% { opacity: 1; -moz-transform: translateY(0px) } 149 | } 150 | 151 | @-ms-keyframes show { 152 | 0% { opacity: 0; -ms-transform: translateY(70%) } 153 | 100% { opacity: 1; -ms-transform: translateY(0px)} 154 | } 155 | 156 | @keyframes show { 157 | 0% { opacity: 0; transform: translateY(70%) } 158 | 100% { opacity: 1; transform: translateY(0px)} 159 | } 160 | 161 | 162 | 163 | @-webkit-keyframes toLeft1 { 164 | 0% { -webkit-transform: translateX(45%) } 165 | 100% { -webkit-transform: translateX(0px) } 166 | } 167 | 168 | @-moz-keyframes toLeft1 { 169 | 0% { -moz-transform:translateX(45%) } 170 | 100% { -moz-transform: translateX(0px) } 171 | } 172 | 173 | @-ms-keyframes toLeft1 { 174 | 0% { -ms-transform: translateX(45%) } 175 | 100% {-ms-transform: translateX(0px) } 176 | } 177 | 178 | @keyframes toLeft1 { 179 | 0% { transform: translateX(45%)} 180 | 100% { transform: translateX(0px)} 181 | } 182 | 183 | @-webkit-keyframes toRight1 { 184 | 0% { -webkit-transform: translateX(0px) } 185 | 100% { -webkit-transform: translateX(45%) } 186 | } 187 | 188 | @-moz-keyframes toRight1 { 189 | 0% { -moz-transform:translateX(0px) } 190 | 100% { -moz-transform: translateX(45%) } 191 | } 192 | 193 | @-ms-keyframes toRight1 { 194 | 0% { -ms-transform: translateX(0px) } 195 | 100% {-ms-transform: translateX(45%) } 196 | } 197 | 198 | @keyframes toRight1 { 199 | 0% { transform: translateX(0px)} 200 | 100% { transform: translateX(45%)} 201 | } 202 | 203 | 204 | @-webkit-keyframes toLeft2 { 205 | 0% { opacity: 1; -webkit-transform: translateX(30%) } 206 | 100% { opacity: 1; -webkit-transform: translateX(0px) } 207 | } 208 | 209 | @-moz-keyframes toLeft2 { 210 | 0% { opacity: 1; -moz-transform:translateX(30%) } 211 | 100% { opacity: 1; -moz-transform: translateX(0px) } 212 | } 213 | 214 | @-ms-keyframes toLeft2 { 215 | 0% { opacity: 1; -ms-transform: translateX(30%) } 216 | 100% { opacity: 1; -ms-transform: translateX(0px) } 217 | } 218 | 219 | @keyframes toLeft2 { 220 | 0% { opacity: 1; transform: translateX(30%)} 221 | 100% { opacity: 1; transform: translateX(0px)} 222 | } 223 | 224 | @-webkit-keyframes toRight2 { 225 | 0% { -webkit-transform: translateX(0px) } 226 | 100% { -webkit-transform: translateX(30%) } 227 | } 228 | 229 | @-moz-keyframes toRight2 { 230 | 0% { -moz-transform:translateX(0px) } 231 | 100% { -moz-transform: translateX(30%) } 232 | } 233 | 234 | @-ms-keyframes toRight2 { 235 | 0% { -ms-transform: translateX(0px) } 236 | 100% {-ms-transform: translateX(30%) } 237 | } 238 | 239 | @keyframes toRight2 { 240 | 0% { transform: translateX(0px)} 241 | 100% { transform: translateX(30%)} 242 | } 243 | 244 | @-webkit-keyframes toLeft3 { 245 | 0% { -webkit-transform: translateX(38%) } 246 | 100% { -webkit-transform: translateX(0px) } 247 | } 248 | 249 | @-moz-keyframes toLeft3 { 250 | 0% { -moz-transform:translateX(38%) } 251 | 100% { -moz-transform: translateX(0px) } 252 | } 253 | 254 | @-ms-keyframes toLeft3 { 255 | 0% { -ms-transform: translateX(38%) } 256 | 100% {-ms-transform: translateX(0px) } 257 | } 258 | 259 | @keyframes toLeft3 { 260 | 0% { transform: translateX(38%)} 261 | 100% { transform: translateX(0px)} 262 | } 263 | 264 | @-webkit-keyframes toRight3 { 265 | 0% { -webkit-transform: translateX(0px) } 266 | 100% { -webkit-transform: translateX(38%) } 267 | } 268 | 269 | @-moz-keyframes toRight3 { 270 | 0% { -moz-transform:translateX(0px) } 271 | 100% { -moz-transform: translateX(38%) } 272 | } 273 | 274 | @-ms-keyframes toRight3 { 275 | 0% { -ms-transform: translateX(0px) } 276 | 100% {-ms-transform: translateX(38%) } 277 | } 278 | 279 | @keyframes toRight3 { 280 | 0% { transform: translateX(0px)} 281 | 100% { transform: translateX(38%)} 282 | } 283 | 284 | 285 | @-webkit-keyframes toLeft4 { 286 | 0% { -webkit-transform: translateX(82%) } 287 | 100% { -webkit-transform: translateX(0px) } 288 | } 289 | 290 | @-moz-keyframes toLeft4 { 291 | 0% { -moz-transform:translateX(82%) } 292 | 100% { -moz-transform: translateX(0px) } 293 | } 294 | 295 | @-ms-keyframes toLeft4 { 296 | 0% { -ms-transform: translateX(82%) } 297 | 100% {-ms-transform: translateX(0px) } 298 | } 299 | 300 | @keyframes toLeft4 { 301 | 0% { transform: translateX(82%)} 302 | 100% { transform: translateX(0px)} 303 | } 304 | 305 | 306 | @-webkit-keyframes toRight4 { 307 | 0% { -webkit-transform: translateX(0) } 308 | 100% { -webkit-transform: translateX(82%) } 309 | } 310 | 311 | @-moz-keyframes toRight4 { 312 | 0% { -moz-transform:translateX(0) } 313 | 100% { -moz-transform: translateX(82%) } 314 | } 315 | 316 | @-ms-keyframes toRight4 { 317 | 0% { -ms-transform: translateX(0) } 318 | 100% {-ms-transform: translateX(82%) } 319 | } 320 | 321 | @keyframes toRight4 { 322 | 0% { transform: translateX(0)} 323 | 100% { transform: translateX(82%)} 324 | } 325 | -------------------------------------------------------------------------------- /static/images/Collapsed.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/Collapsed.gif -------------------------------------------------------------------------------- /static/images/Expanded.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/Expanded.gif -------------------------------------------------------------------------------- /static/images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/Thumbs.db -------------------------------------------------------------------------------- /static/images/admin.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/admin.jpg -------------------------------------------------------------------------------- /static/images/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/bg.png -------------------------------------------------------------------------------- /static/images/bg2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/bg2.png -------------------------------------------------------------------------------- /static/images/chart.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/chart.png -------------------------------------------------------------------------------- /static/images/course-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/course-icon.png -------------------------------------------------------------------------------- /static/images/course-icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/course-icon2.png -------------------------------------------------------------------------------- /static/images/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/favicon.ico -------------------------------------------------------------------------------- /static/images/forma-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/forma-icon.png -------------------------------------------------------------------------------- /static/images/jxst.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/jxst.png -------------------------------------------------------------------------------- /static/images/means-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/means-icon.png -------------------------------------------------------------------------------- /static/images/mryl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/mryl.png -------------------------------------------------------------------------------- /static/images/quest-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/quest-icon.png -------------------------------------------------------------------------------- /static/images/quest-icon2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/quest-icon2.png -------------------------------------------------------------------------------- /static/images/report-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/report-icon.png -------------------------------------------------------------------------------- /static/images/xx-logo.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/xx-logo.jpg -------------------------------------------------------------------------------- /static/images/yl.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/yl.png -------------------------------------------------------------------------------- /static/images/zlDown.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/LeeHDsniper/AutoSqli/15b75d2943362927a75b34d5aded1f1b356480fe/static/images/zlDown.png -------------------------------------------------------------------------------- /static/js/ajax.js: -------------------------------------------------------------------------------- 1 | var xmlhttp; 2 | function loadXMLDocByGet(url,cfunc) //AJAX-----使用GET方式 3 | { 4 | if(window.XMLHttpRequest) 5 | xmlhttp=new XMLHttpRequest(); 6 | else 7 | xmlhttp=new ActiveXObject("Microslft.XMLHTTP"); 8 | xmlhttp.onreadystatechange=cfunc; 9 | xmlhttp.open("GET",url,true); 10 | xmlhttp.send(); 11 | } 12 | function loadXMLDocByPost(send_content,url,cfunc) //AJAX-----使用POST方式 13 | { 14 | if(window.XMLHttpRequest) 15 | xmlhttp=new XMLHttpRequest(); 16 | else 17 | xmlhttp=new ActiveXObject("Microslft.XMLHTTP"); 18 | xmlhttp.onreadystatechange=cfunc; 19 | xmlhttp.open("POST",url,true); 20 | xmlhttp.setRequestHeader("Content-type","application/json"); 21 | xmlhttp.send(send_content); 22 | } 23 | -------------------------------------------------------------------------------- /static/js/c.js: -------------------------------------------------------------------------------- 1 | window.SINGLE_TAB = " "; 2 | 3 | window.ImgCollapsed = "/static/images/Collapsed.gif";//IMG_PATH + "/json/Collapsed.gif"; 4 | 5 | window.ImgExpanded = "/static/images/Expanded.gif";//IMG_PATH + "/json/Expanded.gif"; 6 | 7 | window.QuoteKeys = true; 8 | 9 | function $id(id){ return document.getElementById(id); } 10 | 11 | function IsArray(obj) { 12 | 13 | return obj && 14 | 15 | typeof obj === 'object' && 16 | 17 | typeof obj.length === 'number' && 18 | 19 | !(obj.propertyIsEnumerable('length')); 20 | 21 | } 22 | 23 | 24 | 25 | function Process(json){ 26 | 27 | SetTab(); 28 | 29 | //window.IsCollapsible = $id("CollapsibleView").checked; 30 | 31 | //var json = $id("RawJson").value; 32 | window.IsCollapsible =true; 33 | var html = ""; 34 | 35 | try{ 36 | 37 | if(json == "") json = "\"\""; 38 | 39 | var obj = eval("["+json+"]"); 40 | html = ProcessObject(obj[0], 0, false, false, false); 41 | $id("Canvas").innerHTML = "
    "+html+"
    "; 42 | 43 | }catch(e){ 44 | $id("Canvas").innerHTML = ""; 45 | 46 | } 47 | 48 | } 49 | 50 | window._dateObj = new Date(); 51 | 52 | window._regexpObj = new RegExp(); 53 | 54 | function ProcessObject(obj, indent, addComma, isArray, isPropertyContent){ 55 | 56 | var html = ""; 57 | 58 | var comma = (addComma) ? ", " : ""; 59 | 60 | var type = typeof obj; 61 | 62 | var clpsHtml =""; 63 | 64 | if(IsArray(obj)){ 65 | 66 | if(obj.length == 0){ 67 | 68 | html += GetRow(indent, "[ ]"+comma, isPropertyContent); 69 | 70 | }else{ 71 | 72 | clpsHtml = window.IsCollapsible ? "" : ""; 73 | 74 | html += GetRow(indent, "["+clpsHtml, isPropertyContent); 75 | 76 | for(var i = 0; i < obj.length; i++){ 77 | 78 | html += ProcessObject(obj[i], indent + 1, i < (obj.length - 1), true, false); 79 | 80 | } 81 | 82 | clpsHtml = window.IsCollapsible ? "" : ""; 83 | 84 | html += GetRow(indent, clpsHtml+"]"+comma); 85 | 86 | } 87 | 88 | }else if(type == 'object'){ 89 | 90 | if (obj == null){ 91 | 92 | html += FormatLiteral("null", "", comma, indent, isArray, "Null"); 93 | 94 | }else if (obj.constructor == window._dateObj.constructor) { 95 | 96 | html += FormatLiteral("new Date(" + obj.getTime() + ") /*" + obj.toLocaleString()+"*/", "", comma, indent, isArray, "Date"); 97 | 98 | }else if (obj.constructor == window._regexpObj.constructor) { 99 | 100 | html += FormatLiteral("new RegExp(" + obj + ")", "", comma, indent, isArray, "RegExp"); 101 | 102 | }else{ 103 | 104 | var numProps = 0; 105 | 106 | for(var prop in obj) numProps++; 107 | 108 | if(numProps == 0){ 109 | 110 | html += GetRow(indent, "{ }"+comma, isPropertyContent); 111 | 112 | }else{ 113 | 114 | clpsHtml = window.IsCollapsible ? "" : ""; 115 | 116 | html += GetRow(indent, "{"+clpsHtml, isPropertyContent); 117 | 118 | 119 | 120 | var j = 0; 121 | 122 | 123 | 124 | for(var prop in obj){ 125 | 126 | 127 | 128 | var quote = window.QuoteKeys ? "\"" : ""; 129 | 130 | 131 | 132 | html += GetRow(indent + 1, ""+quote+prop+quote+": "+ProcessObject(obj[prop], indent + 1, ++j < numProps, false, true)); 133 | 134 | 135 | 136 | } 137 | 138 | 139 | 140 | clpsHtml = window.IsCollapsible ? "" : ""; 141 | 142 | 143 | 144 | html += GetRow(indent, clpsHtml+"}"+comma); 145 | 146 | 147 | 148 | } 149 | 150 | 151 | 152 | } 153 | 154 | 155 | 156 | }else if(type == 'number'){ 157 | 158 | 159 | 160 | html += FormatLiteral(obj, "", comma, indent, isArray, "Number"); 161 | 162 | 163 | 164 | }else if(type == 'boolean'){ 165 | 166 | 167 | 168 | html += FormatLiteral(obj, "", comma, indent, isArray, "Boolean"); 169 | 170 | 171 | 172 | }else if(type == 'function'){ 173 | 174 | 175 | 176 | if (obj.constructor == window._regexpObj.constructor) { 177 | 178 | 179 | 180 | html += FormatLiteral("new RegExp(" + obj + ")", "", comma, indent, isArray, "RegExp"); 181 | 182 | 183 | 184 | }else{ 185 | 186 | 187 | 188 | obj = FormatFunction(indent, obj); 189 | 190 | 191 | 192 | html += FormatLiteral(obj, "", comma, indent, isArray, "Function"); 193 | 194 | 195 | 196 | } 197 | 198 | 199 | 200 | }else if(type == 'undefined'){ 201 | 202 | 203 | 204 | html += FormatLiteral("undefined", "", comma, indent, isArray, "Null"); 205 | 206 | 207 | 208 | }else{ 209 | 210 | 211 | 212 | html += FormatLiteral(obj.toString().split("\\").join("\\\\").split('"').join('\\"'), "\"", comma, indent, isArray, "String"); 213 | 214 | 215 | 216 | } 217 | 218 | 219 | 220 | return html; 221 | 222 | 223 | 224 | } 225 | 226 | 227 | 228 | function FormatLiteral(literal, quote, comma, indent, isArray, style){ 229 | 230 | 231 | 232 | if(typeof literal == 'string') 233 | 234 | 235 | 236 | literal = literal.split("<").join("<").split(">").join(">"); 237 | 238 | 239 | 240 | var str = ""+quote+literal+quote+comma+""; 241 | 242 | 243 | 244 | if(isArray) str = GetRow(indent, str); 245 | 246 | 247 | 248 | return str; 249 | 250 | 251 | 252 | } 253 | 254 | 255 | 256 | function FormatFunction(indent, obj){ 257 | 258 | 259 | 260 | var tabs = ""; 261 | 262 | 263 | 264 | for(var i = 0; i < indent; i++) tabs += window.TAB; 265 | 266 | 267 | 268 | var funcStrArray = obj.toString().split("\n"); 269 | 270 | 271 | 272 | var str = ""; 273 | 274 | 275 | 276 | for(var i = 0; i < funcStrArray.length; i++){ 277 | 278 | 279 | 280 | str += ((i==0)?"":tabs) + funcStrArray[i] + "\n"; 281 | 282 | 283 | 284 | } 285 | 286 | 287 | 288 | return str; 289 | 290 | 291 | 292 | } 293 | 294 | 295 | 296 | function GetRow(indent, data, isPropertyContent){ 297 | 298 | 299 | 300 | var tabs = ""; 301 | 302 | 303 | 304 | for(var i = 0; i < indent && !isPropertyContent; i++) tabs += window.TAB; 305 | 306 | 307 | 308 | if(data != null && data.length > 0 && data.charAt(data.length-1) != "\n") 309 | 310 | 311 | 312 | data = data+"\n"; 313 | 314 | 315 | 316 | return tabs+data; 317 | 318 | 319 | 320 | } 321 | 322 | 323 | 324 | function CollapsibleViewClicked(){ 325 | 326 | 327 | 328 | $id("CollapsibleViewDetail").style.visibility = $id("CollapsibleView").checked ? "visible" : "hidden"; 329 | 330 | 331 | 332 | Process(); 333 | 334 | 335 | 336 | } 337 | 338 | 339 | 340 | 341 | 342 | 343 | 344 | function QuoteKeysClicked(){ 345 | 346 | 347 | 348 | window.QuoteKeys = $id("QuoteKeys").checked; 349 | 350 | 351 | 352 | Process(); 353 | 354 | 355 | 356 | } 357 | 358 | 359 | 360 | 361 | 362 | 363 | 364 | function CollapseAllClicked(){ 365 | 366 | 367 | 368 | EnsureIsPopulated(); 369 | 370 | 371 | 372 | TraverseChildren($id("Canvas"), function(element){ 373 | 374 | 375 | 376 | if(element.className == 'collapsible'){ 377 | 378 | 379 | 380 | MakeContentVisible(element, false); 381 | 382 | 383 | 384 | } 385 | 386 | 387 | 388 | }, 0); 389 | 390 | 391 | 392 | } 393 | 394 | 395 | 396 | function ExpandAllClicked(){ 397 | 398 | 399 | 400 | EnsureIsPopulated(); 401 | 402 | 403 | 404 | TraverseChildren($id("Canvas"), function(element){ 405 | 406 | 407 | 408 | if(element.className == 'collapsible'){ 409 | 410 | 411 | 412 | MakeContentVisible(element, true); 413 | 414 | 415 | 416 | } 417 | 418 | 419 | 420 | }, 0); 421 | 422 | 423 | 424 | } 425 | 426 | 427 | 428 | function MakeContentVisible(element, visible){ 429 | 430 | 431 | 432 | var img = element.previousSibling.firstChild; 433 | 434 | 435 | 436 | if(!!img.tagName && img.tagName.toLowerCase() == "img"){ 437 | 438 | 439 | 440 | element.style.display = visible ? 'inline' : 'none'; 441 | 442 | 443 | 444 | element.previousSibling.firstChild.src = visible ? window.ImgExpanded : window.ImgCollapsed; 445 | 446 | 447 | 448 | } 449 | 450 | 451 | 452 | } 453 | 454 | 455 | 456 | function TraverseChildren(element, func, depth){ 457 | 458 | 459 | 460 | for(var i = 0; i < element.childNodes.length; i++){ 461 | 462 | 463 | 464 | TraverseChildren(element.childNodes[i], func, depth + 1); 465 | 466 | 467 | 468 | } 469 | 470 | 471 | 472 | func(element, depth); 473 | 474 | 475 | 476 | } 477 | 478 | 479 | 480 | function ExpImgClicked(img){ 481 | 482 | 483 | 484 | var container = img.parentNode.nextSibling; 485 | 486 | 487 | 488 | if(!container) return; 489 | 490 | 491 | 492 | var disp = "none"; 493 | 494 | 495 | 496 | var src = window.ImgCollapsed; 497 | 498 | 499 | 500 | if(container.style.display == "none"){ 501 | 502 | 503 | 504 | disp = "inline"; 505 | 506 | 507 | 508 | src = window.ImgExpanded; 509 | 510 | 511 | 512 | } 513 | 514 | 515 | 516 | container.style.display = disp; 517 | 518 | 519 | 520 | img.src = src; 521 | 522 | 523 | 524 | } 525 | 526 | 527 | 528 | function CollapseLevel(level){ 529 | 530 | 531 | 532 | EnsureIsPopulated(); 533 | 534 | 535 | 536 | TraverseChildren($id("Canvas"), function(element, depth){ 537 | 538 | 539 | 540 | if(element.className == 'collapsible'){ 541 | 542 | 543 | 544 | if(depth >= level){ 545 | 546 | 547 | 548 | MakeContentVisible(element, false); 549 | 550 | 551 | 552 | }else{ 553 | 554 | 555 | 556 | MakeContentVisible(element, true); 557 | 558 | 559 | 560 | } 561 | 562 | 563 | 564 | } 565 | 566 | 567 | 568 | }, 0); 569 | 570 | 571 | 572 | } 573 | 574 | 575 | 576 | function TabSizeChanged(){ 577 | 578 | 579 | 580 | Process(); 581 | 582 | 583 | 584 | } 585 | 586 | 587 | 588 | function SetTab(){ 589 | 590 | 591 | 592 | //var select = $id("TabSize"); 593 | 594 | 595 | 596 | window.TAB = MultiplyString(parseInt(2), window.SINGLE_TAB); 597 | 598 | 599 | 600 | } 601 | 602 | 603 | 604 | function EnsureIsPopulated(){ 605 | 606 | 607 | 608 | if(!$id("Canvas").innerHTML && !!$id("RawJson").value) Process(); 609 | 610 | 611 | 612 | } 613 | 614 | 615 | 616 | function MultiplyString(num, str){ 617 | 618 | 619 | 620 | var sb =[]; 621 | 622 | 623 | 624 | for(var i = 0; i < num; i++){ 625 | 626 | 627 | 628 | sb.push(str); 629 | 630 | 631 | 632 | } 633 | 634 | 635 | 636 | return sb.join(""); 637 | 638 | 639 | 640 | } 641 | 642 | 643 | 644 | function SelectAllClicked(){ 645 | 646 | 647 | 648 | 649 | 650 | 651 | 652 | if(!!document.selection && !!document.selection.empty) { 653 | 654 | 655 | 656 | document.selection.empty(); 657 | 658 | 659 | 660 | } else if(window.getSelection) { 661 | 662 | 663 | 664 | var sel = window.getSelection(); 665 | 666 | 667 | 668 | if(sel.removeAllRanges) { 669 | 670 | 671 | 672 | window.getSelection().removeAllRanges(); 673 | 674 | 675 | 676 | } 677 | 678 | 679 | 680 | } 681 | 682 | 683 | 684 | 685 | 686 | 687 | 688 | var range = 689 | 690 | 691 | 692 | (!!document.body && !!document.body.createTextRange) 693 | 694 | 695 | 696 | ? document.body.createTextRange() 697 | 698 | 699 | 700 | : document.createRange(); 701 | 702 | 703 | 704 | 705 | 706 | 707 | 708 | if(!!range.selectNode) 709 | 710 | 711 | 712 | range.selectNode($id("Canvas")); 713 | 714 | 715 | 716 | else if(range.moveToElementText) 717 | 718 | 719 | 720 | range.moveToElementText($id("Canvas")); 721 | 722 | 723 | 724 | 725 | 726 | 727 | 728 | if(!!range.select) 729 | 730 | 731 | 732 | range.select($id("Canvas")); 733 | 734 | 735 | 736 | else 737 | 738 | 739 | 740 | window.getSelection().addRange(range); 741 | 742 | 743 | 744 | } 745 | 746 | 747 | 748 | function LinkToJson(){ 749 | 750 | 751 | 752 | var val = $id("RawJson").value; 753 | 754 | 755 | 756 | val = escape(val.split('/n').join(' ').split('/r').join(' ')); 757 | 758 | 759 | 760 | $id("InvisibleLinkUrl").value = val; 761 | 762 | 763 | 764 | $id("InvisibleLink").submit(); 765 | 766 | 767 | 768 | } 769 | -------------------------------------------------------------------------------- /static/js/core.js: -------------------------------------------------------------------------------- 1 | 2 | !function(a){var b="1.0.1",c="20140701001",d=parseInt(b.replace(/\./g,"")+c,16),e=a.document,f=location.hostname,g={scriptReady:function(a,b){var c=e.getElementById(a);c.readyState?c.onreadystatechange=function(){(c.attachEvent?"complete"===c.readyState:"loading"!==c.readyState)&&(c.onreadystatechange=null,b&&b())}:c.onload=function(){b&&b()}},getScript:function(a){var b=e.createElement("script");b.type="text/javascript",b.charset="utf-8",b.defer="defer",b.async="async",b.src=a,e.getElementsByTagName("head")[0].appendChild(b)},getComboUrl:function(){var a="";for(var b in k)a+=(0==b?"":",")+m[k[b]]+".js";return l+"??"+a+"?v="+d},returnJson:function(a){return new Function("return "+a)()}},h=e.getElementById("coreNode"),i=h?g.returnJson(h.getAttribute("data-config")||"{}"):{},j=i.plus?i.plus.join(","):"",k=[],l="http://img2.233.com/x/",m={sea:"sea-modules/seajs/seajs/2.2.1/sea",seaConfig:"sea-config",seaCombo:"sea-modules/seajs/seajs-combo/1.0.1/seajs-combo",jquery:"sea-modules/jquery/jquery/1.11.0/jquery",tongji:"plus/tj/1.0.0/tongji",global:"plus/global"},n={isReady:!1,init:!1,ready:function(a){if(!n.init)if(n.init=!0,e.addEventListener)e.addEventListener("DOMContentLoaded",function(){e.removeEventListener("DOMContentLoaded",arguments.callee,!1),a()},!1);else if(e.attachEvent&&(e.attachEvent("onreadystatechange",function(){"complete"===e.readyState&&(e.detachEvent("onreadystatechange",arguments.callee),a())}),e.documentElement.doScroll&&"undefined"==typeof window.frameElement)){if(n.isReady)return;try{e.documentElement.doScroll("left")}catch(b){return setTimeout(arguments.callee,0),void 0}a()}}};k.push("sea"),k.push("seaConfig"),k.push("seaCombo"),/jQuery/gi.test(j)&&k.push("jquery"),a.document.write(''),g.scriptReady("JS_core"),n.ready(function(){/233.com/gi.test(f)&&g.getScript(l+m.tongji+".js?v="+b)}),a.core={version:b,update:c,timestamp:d,utils:g,ready:n.ready}}(window); -------------------------------------------------------------------------------- /static/js/jquery-1.11.3.min.js: -------------------------------------------------------------------------------- 1 | /*! jQuery v1.11.3 | (c) 2005, 2015 jQuery Foundation, Inc. | jquery.org/license */ 2 | !function(a,b){"object"==typeof module&&"object"==typeof module.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)throw new Error("jQuery requires a window with a document");return b(a)}:b(a)}("undefined"!=typeof window?window:this,function(a,b){var c=[],d=c.slice,e=c.concat,f=c.push,g=c.indexOf,h={},i=h.toString,j=h.hasOwnProperty,k={},l="1.11.3",m=function(a,b){return new m.fn.init(a,b)},n=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,o=/^-ms-/,p=/-([\da-z])/gi,q=function(a,b){return b.toUpperCase()};m.fn=m.prototype={jquery:l,constructor:m,selector:"",length:0,toArray:function(){return d.call(this)},get:function(a){return null!=a?0>a?this[a+this.length]:this[a]:d.call(this)},pushStack:function(a){var b=m.merge(this.constructor(),a);return b.prevObject=this,b.context=this.context,b},each:function(a,b){return m.each(this,a,b)},map:function(a){return this.pushStack(m.map(this,function(b,c){return a.call(b,c,b)}))},slice:function(){return this.pushStack(d.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(a){var b=this.length,c=+a+(0>a?b:0);return this.pushStack(c>=0&&b>c?[this[c]]:[])},end:function(){return this.prevObject||this.constructor(null)},push:f,sort:c.sort,splice:c.splice},m.extend=m.fn.extend=function(){var a,b,c,d,e,f,g=arguments[0]||{},h=1,i=arguments.length,j=!1;for("boolean"==typeof g&&(j=g,g=arguments[h]||{},h++),"object"==typeof g||m.isFunction(g)||(g={}),h===i&&(g=this,h--);i>h;h++)if(null!=(e=arguments[h]))for(d in e)a=g[d],c=e[d],g!==c&&(j&&c&&(m.isPlainObject(c)||(b=m.isArray(c)))?(b?(b=!1,f=a&&m.isArray(a)?a:[]):f=a&&m.isPlainObject(a)?a:{},g[d]=m.extend(j,f,c)):void 0!==c&&(g[d]=c));return g},m.extend({expando:"jQuery"+(l+Math.random()).replace(/\D/g,""),isReady:!0,error:function(a){throw new Error(a)},noop:function(){},isFunction:function(a){return"function"===m.type(a)},isArray:Array.isArray||function(a){return"array"===m.type(a)},isWindow:function(a){return null!=a&&a==a.window},isNumeric:function(a){return!m.isArray(a)&&a-parseFloat(a)+1>=0},isEmptyObject:function(a){var b;for(b in a)return!1;return!0},isPlainObject:function(a){var b;if(!a||"object"!==m.type(a)||a.nodeType||m.isWindow(a))return!1;try{if(a.constructor&&!j.call(a,"constructor")&&!j.call(a.constructor.prototype,"isPrototypeOf"))return!1}catch(c){return!1}if(k.ownLast)for(b in a)return j.call(a,b);for(b in a);return void 0===b||j.call(a,b)},type:function(a){return null==a?a+"":"object"==typeof a||"function"==typeof a?h[i.call(a)]||"object":typeof a},globalEval:function(b){b&&m.trim(b)&&(a.execScript||function(b){a.eval.call(a,b)})(b)},camelCase:function(a){return a.replace(o,"ms-").replace(p,q)},nodeName:function(a,b){return a.nodeName&&a.nodeName.toLowerCase()===b.toLowerCase()},each:function(a,b,c){var d,e=0,f=a.length,g=r(a);if(c){if(g){for(;f>e;e++)if(d=b.apply(a[e],c),d===!1)break}else for(e in a)if(d=b.apply(a[e],c),d===!1)break}else if(g){for(;f>e;e++)if(d=b.call(a[e],e,a[e]),d===!1)break}else for(e in a)if(d=b.call(a[e],e,a[e]),d===!1)break;return a},trim:function(a){return null==a?"":(a+"").replace(n,"")},makeArray:function(a,b){var c=b||[];return null!=a&&(r(Object(a))?m.merge(c,"string"==typeof a?[a]:a):f.call(c,a)),c},inArray:function(a,b,c){var d;if(b){if(g)return g.call(b,a,c);for(d=b.length,c=c?0>c?Math.max(0,d+c):c:0;d>c;c++)if(c in b&&b[c]===a)return c}return-1},merge:function(a,b){var c=+b.length,d=0,e=a.length;while(c>d)a[e++]=b[d++];if(c!==c)while(void 0!==b[d])a[e++]=b[d++];return a.length=e,a},grep:function(a,b,c){for(var d,e=[],f=0,g=a.length,h=!c;g>f;f++)d=!b(a[f],f),d!==h&&e.push(a[f]);return e},map:function(a,b,c){var d,f=0,g=a.length,h=r(a),i=[];if(h)for(;g>f;f++)d=b(a[f],f,c),null!=d&&i.push(d);else for(f in a)d=b(a[f],f,c),null!=d&&i.push(d);return e.apply([],i)},guid:1,proxy:function(a,b){var c,e,f;return"string"==typeof b&&(f=a[b],b=a,a=f),m.isFunction(a)?(c=d.call(arguments,2),e=function(){return a.apply(b||this,c.concat(d.call(arguments)))},e.guid=a.guid=a.guid||m.guid++,e):void 0},now:function(){return+new Date},support:k}),m.each("Boolean Number String Function Array Date RegExp Object Error".split(" "),function(a,b){h["[object "+b+"]"]=b.toLowerCase()});function r(a){var b="length"in a&&a.length,c=m.type(a);return"function"===c||m.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeof b&&b>0&&b-1 in a}var s=function(a){var b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u="sizzle"+1*new Date,v=a.document,w=0,x=0,y=ha(),z=ha(),A=ha(),B=function(a,b){return a===b&&(l=!0),0},C=1<<31,D={}.hasOwnProperty,E=[],F=E.pop,G=E.push,H=E.push,I=E.slice,J=function(a,b){for(var c=0,d=a.length;d>c;c++)if(a[c]===b)return c;return-1},K="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="[\\x20\\t\\r\\n\\f]",M="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",N=M.replace("w","w#"),O="\\["+L+"*("+M+")(?:"+L+"*([*^$|!~]?=)"+L+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+N+"))|)"+L+"*\\]",P=":("+M+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+O+")*)|.*)\\)|)",Q=new RegExp(L+"+","g"),R=new RegExp("^"+L+"+|((?:^|[^\\\\])(?:\\\\.)*)"+L+"+$","g"),S=new RegExp("^"+L+"*,"+L+"*"),T=new RegExp("^"+L+"*([>+~]|"+L+")"+L+"*"),U=new RegExp("="+L+"*([^\\]'\"]*?)"+L+"*\\]","g"),V=new RegExp(P),W=new RegExp("^"+N+"$"),X={ID:new RegExp("^#("+M+")"),CLASS:new RegExp("^\\.("+M+")"),TAG:new RegExp("^("+M.replace("w","w*")+")"),ATTR:new RegExp("^"+O),PSEUDO:new RegExp("^"+P),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+L+"*(even|odd|(([+-]|)(\\d*)n|)"+L+"*(?:([+-]|)"+L+"*(\\d+)|))"+L+"*\\)|)","i"),bool:new RegExp("^(?:"+K+")$","i"),needsContext:new RegExp("^"+L+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+L+"*((?:-\\d)?\\d*)"+L+"*\\)|)(?=[^-]|$)","i")},Y=/^(?:input|select|textarea|button)$/i,Z=/^h\d$/i,$=/^[^{]+\{\s*\[native \w/,_=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,aa=/[+~]/,ba=/'|\\/g,ca=new RegExp("\\\\([\\da-f]{1,6}"+L+"?|("+L+")|.)","ig"),da=function(a,b,c){var d="0x"+b-65536;return d!==d||c?b:0>d?String.fromCharCode(d+65536):String.fromCharCode(d>>10|55296,1023&d|56320)},ea=function(){m()};try{H.apply(E=I.call(v.childNodes),v.childNodes),E[v.childNodes.length].nodeType}catch(fa){H={apply:E.length?function(a,b){G.apply(a,I.call(b))}:function(a,b){var c=a.length,d=0;while(a[c++]=b[d++]);a.length=c-1}}}function ga(a,b,d,e){var f,h,j,k,l,o,r,s,w,x;if((b?b.ownerDocument||b:v)!==n&&m(b),b=b||n,d=d||[],k=b.nodeType,"string"!=typeof a||!a||1!==k&&9!==k&&11!==k)return d;if(!e&&p){if(11!==k&&(f=_.exec(a)))if(j=f[1]){if(9===k){if(h=b.getElementById(j),!h||!h.parentNode)return d;if(h.id===j)return d.push(h),d}else if(b.ownerDocument&&(h=b.ownerDocument.getElementById(j))&&t(b,h)&&h.id===j)return d.push(h),d}else{if(f[2])return H.apply(d,b.getElementsByTagName(a)),d;if((j=f[3])&&c.getElementsByClassName)return H.apply(d,b.getElementsByClassName(j)),d}if(c.qsa&&(!q||!q.test(a))){if(s=r=u,w=b,x=1!==k&&a,1===k&&"object"!==b.nodeName.toLowerCase()){o=g(a),(r=b.getAttribute("id"))?s=r.replace(ba,"\\$&"):b.setAttribute("id",s),s="[id='"+s+"'] ",l=o.length;while(l--)o[l]=s+ra(o[l]);w=aa.test(a)&&pa(b.parentNode)||b,x=o.join(",")}if(x)try{return H.apply(d,w.querySelectorAll(x)),d}catch(y){}finally{r||b.removeAttribute("id")}}}return i(a.replace(R,"$1"),b,d,e)}function ha(){var a=[];function b(c,e){return a.push(c+" ")>d.cacheLength&&delete b[a.shift()],b[c+" "]=e}return b}function ia(a){return a[u]=!0,a}function ja(a){var b=n.createElement("div");try{return!!a(b)}catch(c){return!1}finally{b.parentNode&&b.parentNode.removeChild(b),b=null}}function ka(a,b){var c=a.split("|"),e=a.length;while(e--)d.attrHandle[c[e]]=b}function la(a,b){var c=b&&a,d=c&&1===a.nodeType&&1===b.nodeType&&(~b.sourceIndex||C)-(~a.sourceIndex||C);if(d)return d;if(c)while(c=c.nextSibling)if(c===b)return-1;return a?1:-1}function ma(a){return function(b){var c=b.nodeName.toLowerCase();return"input"===c&&b.type===a}}function na(a){return function(b){var c=b.nodeName.toLowerCase();return("input"===c||"button"===c)&&b.type===a}}function oa(a){return ia(function(b){return b=+b,ia(function(c,d){var e,f=a([],c.length,b),g=f.length;while(g--)c[e=f[g]]&&(c[e]=!(d[e]=c[e]))})})}function pa(a){return a&&"undefined"!=typeof a.getElementsByTagName&&a}c=ga.support={},f=ga.isXML=function(a){var b=a&&(a.ownerDocument||a).documentElement;return b?"HTML"!==b.nodeName:!1},m=ga.setDocument=function(a){var b,e,g=a?a.ownerDocument||a:v;return g!==n&&9===g.nodeType&&g.documentElement?(n=g,o=g.documentElement,e=g.defaultView,e&&e!==e.top&&(e.addEventListener?e.addEventListener("unload",ea,!1):e.attachEvent&&e.attachEvent("onunload",ea)),p=!f(g),c.attributes=ja(function(a){return a.className="i",!a.getAttribute("className")}),c.getElementsByTagName=ja(function(a){return a.appendChild(g.createComment("")),!a.getElementsByTagName("*").length}),c.getElementsByClassName=$.test(g.getElementsByClassName),c.getById=ja(function(a){return o.appendChild(a).id=u,!g.getElementsByName||!g.getElementsByName(u).length}),c.getById?(d.find.ID=function(a,b){if("undefined"!=typeof b.getElementById&&p){var c=b.getElementById(a);return c&&c.parentNode?[c]:[]}},d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){return a.getAttribute("id")===b}}):(delete d.find.ID,d.filter.ID=function(a){var b=a.replace(ca,da);return function(a){var c="undefined"!=typeof a.getAttributeNode&&a.getAttributeNode("id");return c&&c.value===b}}),d.find.TAG=c.getElementsByTagName?function(a,b){return"undefined"!=typeof b.getElementsByTagName?b.getElementsByTagName(a):c.qsa?b.querySelectorAll(a):void 0}:function(a,b){var c,d=[],e=0,f=b.getElementsByTagName(a);if("*"===a){while(c=f[e++])1===c.nodeType&&d.push(c);return d}return f},d.find.CLASS=c.getElementsByClassName&&function(a,b){return p?b.getElementsByClassName(a):void 0},r=[],q=[],(c.qsa=$.test(g.querySelectorAll))&&(ja(function(a){o.appendChild(a).innerHTML="",a.querySelectorAll("[msallowcapture^='']").length&&q.push("[*^$]="+L+"*(?:''|\"\")"),a.querySelectorAll("[selected]").length||q.push("\\["+L+"*(?:value|"+K+")"),a.querySelectorAll("[id~="+u+"-]").length||q.push("~="),a.querySelectorAll(":checked").length||q.push(":checked"),a.querySelectorAll("a#"+u+"+*").length||q.push(".#.+[+~]")}),ja(function(a){var b=g.createElement("input");b.setAttribute("type","hidden"),a.appendChild(b).setAttribute("name","D"),a.querySelectorAll("[name=d]").length&&q.push("name"+L+"*[*^$|!~]?="),a.querySelectorAll(":enabled").length||q.push(":enabled",":disabled"),a.querySelectorAll("*,:x"),q.push(",.*:")})),(c.matchesSelector=$.test(s=o.matches||o.webkitMatchesSelector||o.mozMatchesSelector||o.oMatchesSelector||o.msMatchesSelector))&&ja(function(a){c.disconnectedMatch=s.call(a,"div"),s.call(a,"[s!='']:x"),r.push("!=",P)}),q=q.length&&new RegExp(q.join("|")),r=r.length&&new RegExp(r.join("|")),b=$.test(o.compareDocumentPosition),t=b||$.test(o.contains)?function(a,b){var c=9===a.nodeType?a.documentElement:a,d=b&&b.parentNode;return a===d||!(!d||1!==d.nodeType||!(c.contains?c.contains(d):a.compareDocumentPosition&&16&a.compareDocumentPosition(d)))}:function(a,b){if(b)while(b=b.parentNode)if(b===a)return!0;return!1},B=b?function(a,b){if(a===b)return l=!0,0;var d=!a.compareDocumentPosition-!b.compareDocumentPosition;return d?d:(d=(a.ownerDocument||a)===(b.ownerDocument||b)?a.compareDocumentPosition(b):1,1&d||!c.sortDetached&&b.compareDocumentPosition(a)===d?a===g||a.ownerDocument===v&&t(v,a)?-1:b===g||b.ownerDocument===v&&t(v,b)?1:k?J(k,a)-J(k,b):0:4&d?-1:1)}:function(a,b){if(a===b)return l=!0,0;var c,d=0,e=a.parentNode,f=b.parentNode,h=[a],i=[b];if(!e||!f)return a===g?-1:b===g?1:e?-1:f?1:k?J(k,a)-J(k,b):0;if(e===f)return la(a,b);c=a;while(c=c.parentNode)h.unshift(c);c=b;while(c=c.parentNode)i.unshift(c);while(h[d]===i[d])d++;return d?la(h[d],i[d]):h[d]===v?-1:i[d]===v?1:0},g):n},ga.matches=function(a,b){return ga(a,null,null,b)},ga.matchesSelector=function(a,b){if((a.ownerDocument||a)!==n&&m(a),b=b.replace(U,"='$1']"),!(!c.matchesSelector||!p||r&&r.test(b)||q&&q.test(b)))try{var d=s.call(a,b);if(d||c.disconnectedMatch||a.document&&11!==a.document.nodeType)return d}catch(e){}return ga(b,n,null,[a]).length>0},ga.contains=function(a,b){return(a.ownerDocument||a)!==n&&m(a),t(a,b)},ga.attr=function(a,b){(a.ownerDocument||a)!==n&&m(a);var e=d.attrHandle[b.toLowerCase()],f=e&&D.call(d.attrHandle,b.toLowerCase())?e(a,b,!p):void 0;return void 0!==f?f:c.attributes||!p?a.getAttribute(b):(f=a.getAttributeNode(b))&&f.specified?f.value:null},ga.error=function(a){throw new Error("Syntax error, unrecognized expression: "+a)},ga.uniqueSort=function(a){var b,d=[],e=0,f=0;if(l=!c.detectDuplicates,k=!c.sortStable&&a.slice(0),a.sort(B),l){while(b=a[f++])b===a[f]&&(e=d.push(f));while(e--)a.splice(d[e],1)}return k=null,a},e=ga.getText=function(a){var b,c="",d=0,f=a.nodeType;if(f){if(1===f||9===f||11===f){if("string"==typeof a.textContent)return a.textContent;for(a=a.firstChild;a;a=a.nextSibling)c+=e(a)}else if(3===f||4===f)return a.nodeValue}else while(b=a[d++])c+=e(b);return c},d=ga.selectors={cacheLength:50,createPseudo:ia,match:X,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(a){return a[1]=a[1].replace(ca,da),a[3]=(a[3]||a[4]||a[5]||"").replace(ca,da),"~="===a[2]&&(a[3]=" "+a[3]+" "),a.slice(0,4)},CHILD:function(a){return a[1]=a[1].toLowerCase(),"nth"===a[1].slice(0,3)?(a[3]||ga.error(a[0]),a[4]=+(a[4]?a[5]+(a[6]||1):2*("even"===a[3]||"odd"===a[3])),a[5]=+(a[7]+a[8]||"odd"===a[3])):a[3]&&ga.error(a[0]),a},PSEUDO:function(a){var b,c=!a[6]&&a[2];return X.CHILD.test(a[0])?null:(a[3]?a[2]=a[4]||a[5]||"":c&&V.test(c)&&(b=g(c,!0))&&(b=c.indexOf(")",c.length-b)-c.length)&&(a[0]=a[0].slice(0,b),a[2]=c.slice(0,b)),a.slice(0,3))}},filter:{TAG:function(a){var b=a.replace(ca,da).toLowerCase();return"*"===a?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===b}},CLASS:function(a){var b=y[a+" "];return b||(b=new RegExp("(^|"+L+")"+a+"("+L+"|$)"))&&y(a,function(a){return b.test("string"==typeof a.className&&a.className||"undefined"!=typeof a.getAttribute&&a.getAttribute("class")||"")})},ATTR:function(a,b,c){return function(d){var e=ga.attr(d,a);return null==e?"!="===b:b?(e+="","="===b?e===c:"!="===b?e!==c:"^="===b?c&&0===e.indexOf(c):"*="===b?c&&e.indexOf(c)>-1:"$="===b?c&&e.slice(-c.length)===c:"~="===b?(" "+e.replace(Q," ")+" ").indexOf(c)>-1:"|="===b?e===c||e.slice(0,c.length+1)===c+"-":!1):!0}},CHILD:function(a,b,c,d,e){var f="nth"!==a.slice(0,3),g="last"!==a.slice(-4),h="of-type"===b;return 1===d&&0===e?function(a){return!!a.parentNode}:function(b,c,i){var j,k,l,m,n,o,p=f!==g?"nextSibling":"previousSibling",q=b.parentNode,r=h&&b.nodeName.toLowerCase(),s=!i&&!h;if(q){if(f){while(p){l=b;while(l=l[p])if(h?l.nodeName.toLowerCase()===r:1===l.nodeType)return!1;o=p="only"===a&&!o&&"nextSibling"}return!0}if(o=[g?q.firstChild:q.lastChild],g&&s){k=q[u]||(q[u]={}),j=k[a]||[],n=j[0]===w&&j[1],m=j[0]===w&&j[2],l=n&&q.childNodes[n];while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if(1===l.nodeType&&++m&&l===b){k[a]=[w,n,m];break}}else if(s&&(j=(b[u]||(b[u]={}))[a])&&j[0]===w)m=j[1];else while(l=++n&&l&&l[p]||(m=n=0)||o.pop())if((h?l.nodeName.toLowerCase()===r:1===l.nodeType)&&++m&&(s&&((l[u]||(l[u]={}))[a]=[w,m]),l===b))break;return m-=e,m===d||m%d===0&&m/d>=0}}},PSEUDO:function(a,b){var c,e=d.pseudos[a]||d.setFilters[a.toLowerCase()]||ga.error("unsupported pseudo: "+a);return e[u]?e(b):e.length>1?(c=[a,a,"",b],d.setFilters.hasOwnProperty(a.toLowerCase())?ia(function(a,c){var d,f=e(a,b),g=f.length;while(g--)d=J(a,f[g]),a[d]=!(c[d]=f[g])}):function(a){return e(a,0,c)}):e}},pseudos:{not:ia(function(a){var b=[],c=[],d=h(a.replace(R,"$1"));return d[u]?ia(function(a,b,c,e){var f,g=d(a,null,e,[]),h=a.length;while(h--)(f=g[h])&&(a[h]=!(b[h]=f))}):function(a,e,f){return b[0]=a,d(b,null,f,c),b[0]=null,!c.pop()}}),has:ia(function(a){return function(b){return ga(a,b).length>0}}),contains:ia(function(a){return a=a.replace(ca,da),function(b){return(b.textContent||b.innerText||e(b)).indexOf(a)>-1}}),lang:ia(function(a){return W.test(a||"")||ga.error("unsupported lang: "+a),a=a.replace(ca,da).toLowerCase(),function(b){var c;do if(c=p?b.lang:b.getAttribute("xml:lang")||b.getAttribute("lang"))return c=c.toLowerCase(),c===a||0===c.indexOf(a+"-");while((b=b.parentNode)&&1===b.nodeType);return!1}}),target:function(b){var c=a.location&&a.location.hash;return c&&c.slice(1)===b.id},root:function(a){return a===o},focus:function(a){return a===n.activeElement&&(!n.hasFocus||n.hasFocus())&&!!(a.type||a.href||~a.tabIndex)},enabled:function(a){return a.disabled===!1},disabled:function(a){return a.disabled===!0},checked:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&!!a.checked||"option"===b&&!!a.selected},selected:function(a){return a.parentNode&&a.parentNode.selectedIndex,a.selected===!0},empty:function(a){for(a=a.firstChild;a;a=a.nextSibling)if(a.nodeType<6)return!1;return!0},parent:function(a){return!d.pseudos.empty(a)},header:function(a){return Z.test(a.nodeName)},input:function(a){return Y.test(a.nodeName)},button:function(a){var b=a.nodeName.toLowerCase();return"input"===b&&"button"===a.type||"button"===b},text:function(a){var b;return"input"===a.nodeName.toLowerCase()&&"text"===a.type&&(null==(b=a.getAttribute("type"))||"text"===b.toLowerCase())},first:oa(function(){return[0]}),last:oa(function(a,b){return[b-1]}),eq:oa(function(a,b,c){return[0>c?c+b:c]}),even:oa(function(a,b){for(var c=0;b>c;c+=2)a.push(c);return a}),odd:oa(function(a,b){for(var c=1;b>c;c+=2)a.push(c);return a}),lt:oa(function(a,b,c){for(var d=0>c?c+b:c;--d>=0;)a.push(d);return a}),gt:oa(function(a,b,c){for(var d=0>c?c+b:c;++db;b++)d+=a[b].value;return d}function sa(a,b,c){var d=b.dir,e=c&&"parentNode"===d,f=x++;return b.first?function(b,c,f){while(b=b[d])if(1===b.nodeType||e)return a(b,c,f)}:function(b,c,g){var h,i,j=[w,f];if(g){while(b=b[d])if((1===b.nodeType||e)&&a(b,c,g))return!0}else while(b=b[d])if(1===b.nodeType||e){if(i=b[u]||(b[u]={}),(h=i[d])&&h[0]===w&&h[1]===f)return j[2]=h[2];if(i[d]=j,j[2]=a(b,c,g))return!0}}}function ta(a){return a.length>1?function(b,c,d){var e=a.length;while(e--)if(!a[e](b,c,d))return!1;return!0}:a[0]}function ua(a,b,c){for(var d=0,e=b.length;e>d;d++)ga(a,b[d],c);return c}function va(a,b,c,d,e){for(var f,g=[],h=0,i=a.length,j=null!=b;i>h;h++)(f=a[h])&&(!c||c(f,d,e))&&(g.push(f),j&&b.push(h));return g}function wa(a,b,c,d,e,f){return d&&!d[u]&&(d=wa(d)),e&&!e[u]&&(e=wa(e,f)),ia(function(f,g,h,i){var j,k,l,m=[],n=[],o=g.length,p=f||ua(b||"*",h.nodeType?[h]:h,[]),q=!a||!f&&b?p:va(p,m,a,h,i),r=c?e||(f?a:o||d)?[]:g:q;if(c&&c(q,r,h,i),d){j=va(r,n),d(j,[],h,i),k=j.length;while(k--)(l=j[k])&&(r[n[k]]=!(q[n[k]]=l))}if(f){if(e||a){if(e){j=[],k=r.length;while(k--)(l=r[k])&&j.push(q[k]=l);e(null,r=[],j,i)}k=r.length;while(k--)(l=r[k])&&(j=e?J(f,l):m[k])>-1&&(f[j]=!(g[j]=l))}}else r=va(r===g?r.splice(o,r.length):r),e?e(null,g,r,i):H.apply(g,r)})}function xa(a){for(var b,c,e,f=a.length,g=d.relative[a[0].type],h=g||d.relative[" "],i=g?1:0,k=sa(function(a){return a===b},h,!0),l=sa(function(a){return J(b,a)>-1},h,!0),m=[function(a,c,d){var e=!g&&(d||c!==j)||((b=c).nodeType?k(a,c,d):l(a,c,d));return b=null,e}];f>i;i++)if(c=d.relative[a[i].type])m=[sa(ta(m),c)];else{if(c=d.filter[a[i].type].apply(null,a[i].matches),c[u]){for(e=++i;f>e;e++)if(d.relative[a[e].type])break;return wa(i>1&&ta(m),i>1&&ra(a.slice(0,i-1).concat({value:" "===a[i-2].type?"*":""})).replace(R,"$1"),c,e>i&&xa(a.slice(i,e)),f>e&&xa(a=a.slice(e)),f>e&&ra(a))}m.push(c)}return ta(m)}function ya(a,b){var c=b.length>0,e=a.length>0,f=function(f,g,h,i,k){var l,m,o,p=0,q="0",r=f&&[],s=[],t=j,u=f||e&&d.find.TAG("*",k),v=w+=null==t?1:Math.random()||.1,x=u.length;for(k&&(j=g!==n&&g);q!==x&&null!=(l=u[q]);q++){if(e&&l){m=0;while(o=a[m++])if(o(l,g,h)){i.push(l);break}k&&(w=v)}c&&((l=!o&&l)&&p--,f&&r.push(l))}if(p+=q,c&&q!==p){m=0;while(o=b[m++])o(r,s,g,h);if(f){if(p>0)while(q--)r[q]||s[q]||(s[q]=F.call(i));s=va(s)}H.apply(i,s),k&&!f&&s.length>0&&p+b.length>1&&ga.uniqueSort(i)}return k&&(w=v,j=t),r};return c?ia(f):f}return h=ga.compile=function(a,b){var c,d=[],e=[],f=A[a+" "];if(!f){b||(b=g(a)),c=b.length;while(c--)f=xa(b[c]),f[u]?d.push(f):e.push(f);f=A(a,ya(e,d)),f.selector=a}return f},i=ga.select=function(a,b,e,f){var i,j,k,l,m,n="function"==typeof a&&a,o=!f&&g(a=n.selector||a);if(e=e||[],1===o.length){if(j=o[0]=o[0].slice(0),j.length>2&&"ID"===(k=j[0]).type&&c.getById&&9===b.nodeType&&p&&d.relative[j[1].type]){if(b=(d.find.ID(k.matches[0].replace(ca,da),b)||[])[0],!b)return e;n&&(b=b.parentNode),a=a.slice(j.shift().value.length)}i=X.needsContext.test(a)?0:j.length;while(i--){if(k=j[i],d.relative[l=k.type])break;if((m=d.find[l])&&(f=m(k.matches[0].replace(ca,da),aa.test(j[0].type)&&pa(b.parentNode)||b))){if(j.splice(i,1),a=f.length&&ra(j),!a)return H.apply(e,f),e;break}}}return(n||h(a,o))(f,b,!p,e,aa.test(a)&&pa(b.parentNode)||b),e},c.sortStable=u.split("").sort(B).join("")===u,c.detectDuplicates=!!l,m(),c.sortDetached=ja(function(a){return 1&a.compareDocumentPosition(n.createElement("div"))}),ja(function(a){return a.innerHTML="","#"===a.firstChild.getAttribute("href")})||ka("type|href|height|width",function(a,b,c){return c?void 0:a.getAttribute(b,"type"===b.toLowerCase()?1:2)}),c.attributes&&ja(function(a){return a.innerHTML="",a.firstChild.setAttribute("value",""),""===a.firstChild.getAttribute("value")})||ka("value",function(a,b,c){return c||"input"!==a.nodeName.toLowerCase()?void 0:a.defaultValue}),ja(function(a){return null==a.getAttribute("disabled")})||ka(K,function(a,b,c){var d;return c?void 0:a[b]===!0?b.toLowerCase():(d=a.getAttributeNode(b))&&d.specified?d.value:null}),ga}(a);m.find=s,m.expr=s.selectors,m.expr[":"]=m.expr.pseudos,m.unique=s.uniqueSort,m.text=s.getText,m.isXMLDoc=s.isXML,m.contains=s.contains;var t=m.expr.match.needsContext,u=/^<(\w+)\s*\/?>(?:<\/\1>|)$/,v=/^.[^:#\[\.,]*$/;function w(a,b,c){if(m.isFunction(b))return m.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)return m.grep(a,function(a){return a===b!==c});if("string"==typeof b){if(v.test(b))return m.filter(b,a,c);b=m.filter(b,a)}return m.grep(a,function(a){return m.inArray(a,b)>=0!==c})}m.filter=function(a,b,c){var d=b[0];return c&&(a=":not("+a+")"),1===b.length&&1===d.nodeType?m.find.matchesSelector(d,a)?[d]:[]:m.find.matches(a,m.grep(b,function(a){return 1===a.nodeType}))},m.fn.extend({find:function(a){var b,c=[],d=this,e=d.length;if("string"!=typeof a)return this.pushStack(m(a).filter(function(){for(b=0;e>b;b++)if(m.contains(d[b],this))return!0}));for(b=0;e>b;b++)m.find(a,d[b],c);return c=this.pushStack(e>1?m.unique(c):c),c.selector=this.selector?this.selector+" "+a:a,c},filter:function(a){return this.pushStack(w(this,a||[],!1))},not:function(a){return this.pushStack(w(this,a||[],!0))},is:function(a){return!!w(this,"string"==typeof a&&t.test(a)?m(a):a||[],!1).length}});var x,y=a.document,z=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,A=m.fn.init=function(a,b){var c,d;if(!a)return this;if("string"==typeof a){if(c="<"===a.charAt(0)&&">"===a.charAt(a.length-1)&&a.length>=3?[null,a,null]:z.exec(a),!c||!c[1]&&b)return!b||b.jquery?(b||x).find(a):this.constructor(b).find(a);if(c[1]){if(b=b instanceof m?b[0]:b,m.merge(this,m.parseHTML(c[1],b&&b.nodeType?b.ownerDocument||b:y,!0)),u.test(c[1])&&m.isPlainObject(b))for(c in b)m.isFunction(this[c])?this[c](b[c]):this.attr(c,b[c]);return this}if(d=y.getElementById(c[2]),d&&d.parentNode){if(d.id!==c[2])return x.find(a);this.length=1,this[0]=d}return this.context=y,this.selector=a,this}return a.nodeType?(this.context=this[0]=a,this.length=1,this):m.isFunction(a)?"undefined"!=typeof x.ready?x.ready(a):a(m):(void 0!==a.selector&&(this.selector=a.selector,this.context=a.context),m.makeArray(a,this))};A.prototype=m.fn,x=m(y);var B=/^(?:parents|prev(?:Until|All))/,C={children:!0,contents:!0,next:!0,prev:!0};m.extend({dir:function(a,b,c){var d=[],e=a[b];while(e&&9!==e.nodeType&&(void 0===c||1!==e.nodeType||!m(e).is(c)))1===e.nodeType&&d.push(e),e=e[b];return d},sibling:function(a,b){for(var c=[];a;a=a.nextSibling)1===a.nodeType&&a!==b&&c.push(a);return c}}),m.fn.extend({has:function(a){var b,c=m(a,this),d=c.length;return this.filter(function(){for(b=0;d>b;b++)if(m.contains(this,c[b]))return!0})},closest:function(a,b){for(var c,d=0,e=this.length,f=[],g=t.test(a)||"string"!=typeof a?m(a,b||this.context):0;e>d;d++)for(c=this[d];c&&c!==b;c=c.parentNode)if(c.nodeType<11&&(g?g.index(c)>-1:1===c.nodeType&&m.find.matchesSelector(c,a))){f.push(c);break}return this.pushStack(f.length>1?m.unique(f):f)},index:function(a){return a?"string"==typeof a?m.inArray(this[0],m(a)):m.inArray(a.jquery?a[0]:a,this):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(a,b){return this.pushStack(m.unique(m.merge(this.get(),m(a,b))))},addBack:function(a){return this.add(null==a?this.prevObject:this.prevObject.filter(a))}});function D(a,b){do a=a[b];while(a&&1!==a.nodeType);return a}m.each({parent:function(a){var b=a.parentNode;return b&&11!==b.nodeType?b:null},parents:function(a){return m.dir(a,"parentNode")},parentsUntil:function(a,b,c){return m.dir(a,"parentNode",c)},next:function(a){return D(a,"nextSibling")},prev:function(a){return D(a,"previousSibling")},nextAll:function(a){return m.dir(a,"nextSibling")},prevAll:function(a){return m.dir(a,"previousSibling")},nextUntil:function(a,b,c){return m.dir(a,"nextSibling",c)},prevUntil:function(a,b,c){return m.dir(a,"previousSibling",c)},siblings:function(a){return m.sibling((a.parentNode||{}).firstChild,a)},children:function(a){return m.sibling(a.firstChild)},contents:function(a){return m.nodeName(a,"iframe")?a.contentDocument||a.contentWindow.document:m.merge([],a.childNodes)}},function(a,b){m.fn[a]=function(c,d){var e=m.map(this,b,c);return"Until"!==a.slice(-5)&&(d=c),d&&"string"==typeof d&&(e=m.filter(d,e)),this.length>1&&(C[a]||(e=m.unique(e)),B.test(a)&&(e=e.reverse())),this.pushStack(e)}});var E=/\S+/g,F={};function G(a){var b=F[a]={};return m.each(a.match(E)||[],function(a,c){b[c]=!0}),b}m.Callbacks=function(a){a="string"==typeof a?F[a]||G(a):m.extend({},a);var b,c,d,e,f,g,h=[],i=!a.once&&[],j=function(l){for(c=a.memory&&l,d=!0,f=g||0,g=0,e=h.length,b=!0;h&&e>f;f++)if(h[f].apply(l[0],l[1])===!1&&a.stopOnFalse){c=!1;break}b=!1,h&&(i?i.length&&j(i.shift()):c?h=[]:k.disable())},k={add:function(){if(h){var d=h.length;!function f(b){m.each(b,function(b,c){var d=m.type(c);"function"===d?a.unique&&k.has(c)||h.push(c):c&&c.length&&"string"!==d&&f(c)})}(arguments),b?e=h.length:c&&(g=d,j(c))}return this},remove:function(){return h&&m.each(arguments,function(a,c){var d;while((d=m.inArray(c,h,d))>-1)h.splice(d,1),b&&(e>=d&&e--,f>=d&&f--)}),this},has:function(a){return a?m.inArray(a,h)>-1:!(!h||!h.length)},empty:function(){return h=[],e=0,this},disable:function(){return h=i=c=void 0,this},disabled:function(){return!h},lock:function(){return i=void 0,c||k.disable(),this},locked:function(){return!i},fireWith:function(a,c){return!h||d&&!i||(c=c||[],c=[a,c.slice?c.slice():c],b?i.push(c):j(c)),this},fire:function(){return k.fireWith(this,arguments),this},fired:function(){return!!d}};return k},m.extend({Deferred:function(a){var b=[["resolve","done",m.Callbacks("once memory"),"resolved"],["reject","fail",m.Callbacks("once memory"),"rejected"],["notify","progress",m.Callbacks("memory")]],c="pending",d={state:function(){return c},always:function(){return e.done(arguments).fail(arguments),this},then:function(){var a=arguments;return m.Deferred(function(c){m.each(b,function(b,f){var g=m.isFunction(a[b])&&a[b];e[f[1]](function(){var a=g&&g.apply(this,arguments);a&&m.isFunction(a.promise)?a.promise().done(c.resolve).fail(c.reject).progress(c.notify):c[f[0]+"With"](this===d?c.promise():this,g?[a]:arguments)})}),a=null}).promise()},promise:function(a){return null!=a?m.extend(a,d):d}},e={};return d.pipe=d.then,m.each(b,function(a,f){var g=f[2],h=f[3];d[f[1]]=g.add,h&&g.add(function(){c=h},b[1^a][2].disable,b[2][2].lock),e[f[0]]=function(){return e[f[0]+"With"](this===e?d:this,arguments),this},e[f[0]+"With"]=g.fireWith}),d.promise(e),a&&a.call(e,e),e},when:function(a){var b=0,c=d.call(arguments),e=c.length,f=1!==e||a&&m.isFunction(a.promise)?e:0,g=1===f?a:m.Deferred(),h=function(a,b,c){return function(e){b[a]=this,c[a]=arguments.length>1?d.call(arguments):e,c===i?g.notifyWith(b,c):--f||g.resolveWith(b,c)}},i,j,k;if(e>1)for(i=new Array(e),j=new Array(e),k=new Array(e);e>b;b++)c[b]&&m.isFunction(c[b].promise)?c[b].promise().done(h(b,k,c)).fail(g.reject).progress(h(b,j,i)):--f;return f||g.resolveWith(k,c),g.promise()}});var H;m.fn.ready=function(a){return m.ready.promise().done(a),this},m.extend({isReady:!1,readyWait:1,holdReady:function(a){a?m.readyWait++:m.ready(!0)},ready:function(a){if(a===!0?!--m.readyWait:!m.isReady){if(!y.body)return setTimeout(m.ready);m.isReady=!0,a!==!0&&--m.readyWait>0||(H.resolveWith(y,[m]),m.fn.triggerHandler&&(m(y).triggerHandler("ready"),m(y).off("ready")))}}});function I(){y.addEventListener?(y.removeEventListener("DOMContentLoaded",J,!1),a.removeEventListener("load",J,!1)):(y.detachEvent("onreadystatechange",J),a.detachEvent("onload",J))}function J(){(y.addEventListener||"load"===event.type||"complete"===y.readyState)&&(I(),m.ready())}m.ready.promise=function(b){if(!H)if(H=m.Deferred(),"complete"===y.readyState)setTimeout(m.ready);else if(y.addEventListener)y.addEventListener("DOMContentLoaded",J,!1),a.addEventListener("load",J,!1);else{y.attachEvent("onreadystatechange",J),a.attachEvent("onload",J);var c=!1;try{c=null==a.frameElement&&y.documentElement}catch(d){}c&&c.doScroll&&!function e(){if(!m.isReady){try{c.doScroll("left")}catch(a){return setTimeout(e,50)}I(),m.ready()}}()}return H.promise(b)};var K="undefined",L;for(L in m(k))break;k.ownLast="0"!==L,k.inlineBlockNeedsLayout=!1,m(function(){var a,b,c,d;c=y.getElementsByTagName("body")[0],c&&c.style&&(b=y.createElement("div"),d=y.createElement("div"),d.style.cssText="position:absolute;border:0;width:0;height:0;top:0;left:-9999px",c.appendChild(d).appendChild(b),typeof b.style.zoom!==K&&(b.style.cssText="display:inline;margin:0;border:0;padding:1px;width:1px;zoom:1",k.inlineBlockNeedsLayout=a=3===b.offsetWidth,a&&(c.style.zoom=1)),c.removeChild(d))}),function(){var a=y.createElement("div");if(null==k.deleteExpando){k.deleteExpando=!0;try{delete a.test}catch(b){k.deleteExpando=!1}}a=null}(),m.acceptData=function(a){var b=m.noData[(a.nodeName+" ").toLowerCase()],c=+a.nodeType||1;return 1!==c&&9!==c?!1:!b||b!==!0&&a.getAttribute("classid")===b};var M=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,N=/([A-Z])/g;function O(a,b,c){if(void 0===c&&1===a.nodeType){var d="data-"+b.replace(N,"-$1").toLowerCase();if(c=a.getAttribute(d),"string"==typeof c){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:M.test(c)?m.parseJSON(c):c}catch(e){}m.data(a,b,c)}else c=void 0}return c}function P(a){var b;for(b in a)if(("data"!==b||!m.isEmptyObject(a[b]))&&"toJSON"!==b)return!1; 3 | 4 | return!0}function Q(a,b,d,e){if(m.acceptData(a)){var f,g,h=m.expando,i=a.nodeType,j=i?m.cache:a,k=i?a[h]:a[h]&&h;if(k&&j[k]&&(e||j[k].data)||void 0!==d||"string"!=typeof b)return k||(k=i?a[h]=c.pop()||m.guid++:h),j[k]||(j[k]=i?{}:{toJSON:m.noop}),("object"==typeof b||"function"==typeof b)&&(e?j[k]=m.extend(j[k],b):j[k].data=m.extend(j[k].data,b)),g=j[k],e||(g.data||(g.data={}),g=g.data),void 0!==d&&(g[m.camelCase(b)]=d),"string"==typeof b?(f=g[b],null==f&&(f=g[m.camelCase(b)])):f=g,f}}function R(a,b,c){if(m.acceptData(a)){var d,e,f=a.nodeType,g=f?m.cache:a,h=f?a[m.expando]:m.expando;if(g[h]){if(b&&(d=c?g[h]:g[h].data)){m.isArray(b)?b=b.concat(m.map(b,m.camelCase)):b in d?b=[b]:(b=m.camelCase(b),b=b in d?[b]:b.split(" ")),e=b.length;while(e--)delete d[b[e]];if(c?!P(d):!m.isEmptyObject(d))return}(c||(delete g[h].data,P(g[h])))&&(f?m.cleanData([a],!0):k.deleteExpando||g!=g.window?delete g[h]:g[h]=null)}}}m.extend({cache:{},noData:{"applet ":!0,"embed ":!0,"object ":"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"},hasData:function(a){return a=a.nodeType?m.cache[a[m.expando]]:a[m.expando],!!a&&!P(a)},data:function(a,b,c){return Q(a,b,c)},removeData:function(a,b){return R(a,b)},_data:function(a,b,c){return Q(a,b,c,!0)},_removeData:function(a,b){return R(a,b,!0)}}),m.fn.extend({data:function(a,b){var c,d,e,f=this[0],g=f&&f.attributes;if(void 0===a){if(this.length&&(e=m.data(f),1===f.nodeType&&!m._data(f,"parsedAttrs"))){c=g.length;while(c--)g[c]&&(d=g[c].name,0===d.indexOf("data-")&&(d=m.camelCase(d.slice(5)),O(f,d,e[d])));m._data(f,"parsedAttrs",!0)}return e}return"object"==typeof a?this.each(function(){m.data(this,a)}):arguments.length>1?this.each(function(){m.data(this,a,b)}):f?O(f,a,m.data(f,a)):void 0},removeData:function(a){return this.each(function(){m.removeData(this,a)})}}),m.extend({queue:function(a,b,c){var d;return a?(b=(b||"fx")+"queue",d=m._data(a,b),c&&(!d||m.isArray(c)?d=m._data(a,b,m.makeArray(c)):d.push(c)),d||[]):void 0},dequeue:function(a,b){b=b||"fx";var c=m.queue(a,b),d=c.length,e=c.shift(),f=m._queueHooks(a,b),g=function(){m.dequeue(a,b)};"inprogress"===e&&(e=c.shift(),d--),e&&("fx"===b&&c.unshift("inprogress"),delete f.stop,e.call(a,g,f)),!d&&f&&f.empty.fire()},_queueHooks:function(a,b){var c=b+"queueHooks";return m._data(a,c)||m._data(a,c,{empty:m.Callbacks("once memory").add(function(){m._removeData(a,b+"queue"),m._removeData(a,c)})})}}),m.fn.extend({queue:function(a,b){var c=2;return"string"!=typeof a&&(b=a,a="fx",c--),arguments.lengthh;h++)b(a[h],c,g?d:d.call(a[h],h,b(a[h],c)));return e?a:j?b.call(a):i?b(a[0],c):f},W=/^(?:checkbox|radio)$/i;!function(){var a=y.createElement("input"),b=y.createElement("div"),c=y.createDocumentFragment();if(b.innerHTML="
    a",k.leadingWhitespace=3===b.firstChild.nodeType,k.tbody=!b.getElementsByTagName("tbody").length,k.htmlSerialize=!!b.getElementsByTagName("link").length,k.html5Clone="<:nav>"!==y.createElement("nav").cloneNode(!0).outerHTML,a.type="checkbox",a.checked=!0,c.appendChild(a),k.appendChecked=a.checked,b.innerHTML="",k.noCloneChecked=!!b.cloneNode(!0).lastChild.defaultValue,c.appendChild(b),b.innerHTML="",k.checkClone=b.cloneNode(!0).cloneNode(!0).lastChild.checked,k.noCloneEvent=!0,b.attachEvent&&(b.attachEvent("onclick",function(){k.noCloneEvent=!1}),b.cloneNode(!0).click()),null==k.deleteExpando){k.deleteExpando=!0;try{delete b.test}catch(d){k.deleteExpando=!1}}}(),function(){var b,c,d=y.createElement("div");for(b in{submit:!0,change:!0,focusin:!0})c="on"+b,(k[b+"Bubbles"]=c in a)||(d.setAttribute(c,"t"),k[b+"Bubbles"]=d.attributes[c].expando===!1);d=null}();var X=/^(?:input|select|textarea)$/i,Y=/^key/,Z=/^(?:mouse|pointer|contextmenu)|click/,$=/^(?:focusinfocus|focusoutblur)$/,_=/^([^.]*)(?:\.(.+)|)$/;function aa(){return!0}function ba(){return!1}function ca(){try{return y.activeElement}catch(a){}}m.event={global:{},add:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m._data(a);if(r){c.handler&&(i=c,c=i.handler,e=i.selector),c.guid||(c.guid=m.guid++),(g=r.events)||(g=r.events={}),(k=r.handle)||(k=r.handle=function(a){return typeof m===K||a&&m.event.triggered===a.type?void 0:m.event.dispatch.apply(k.elem,arguments)},k.elem=a),b=(b||"").match(E)||[""],h=b.length;while(h--)f=_.exec(b[h])||[],o=q=f[1],p=(f[2]||"").split(".").sort(),o&&(j=m.event.special[o]||{},o=(e?j.delegateType:j.bindType)||o,j=m.event.special[o]||{},l=m.extend({type:o,origType:q,data:d,handler:c,guid:c.guid,selector:e,needsContext:e&&m.expr.match.needsContext.test(e),namespace:p.join(".")},i),(n=g[o])||(n=g[o]=[],n.delegateCount=0,j.setup&&j.setup.call(a,d,p,k)!==!1||(a.addEventListener?a.addEventListener(o,k,!1):a.attachEvent&&a.attachEvent("on"+o,k))),j.add&&(j.add.call(a,l),l.handler.guid||(l.handler.guid=c.guid)),e?n.splice(n.delegateCount++,0,l):n.push(l),m.event.global[o]=!0);a=null}},remove:function(a,b,c,d,e){var f,g,h,i,j,k,l,n,o,p,q,r=m.hasData(a)&&m._data(a);if(r&&(k=r.events)){b=(b||"").match(E)||[""],j=b.length;while(j--)if(h=_.exec(b[j])||[],o=q=h[1],p=(h[2]||"").split(".").sort(),o){l=m.event.special[o]||{},o=(d?l.delegateType:l.bindType)||o,n=k[o]||[],h=h[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),i=f=n.length;while(f--)g=n[f],!e&&q!==g.origType||c&&c.guid!==g.guid||h&&!h.test(g.namespace)||d&&d!==g.selector&&("**"!==d||!g.selector)||(n.splice(f,1),g.selector&&n.delegateCount--,l.remove&&l.remove.call(a,g));i&&!n.length&&(l.teardown&&l.teardown.call(a,p,r.handle)!==!1||m.removeEvent(a,o,r.handle),delete k[o])}else for(o in k)m.event.remove(a,o+b[j],c,d,!0);m.isEmptyObject(k)&&(delete r.handle,m._removeData(a,"events"))}},trigger:function(b,c,d,e){var f,g,h,i,k,l,n,o=[d||y],p=j.call(b,"type")?b.type:b,q=j.call(b,"namespace")?b.namespace.split("."):[];if(h=l=d=d||y,3!==d.nodeType&&8!==d.nodeType&&!$.test(p+m.event.triggered)&&(p.indexOf(".")>=0&&(q=p.split("."),p=q.shift(),q.sort()),g=p.indexOf(":")<0&&"on"+p,b=b[m.expando]?b:new m.Event(p,"object"==typeof b&&b),b.isTrigger=e?2:3,b.namespace=q.join("."),b.namespace_re=b.namespace?new RegExp("(^|\\.)"+q.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,b.result=void 0,b.target||(b.target=d),c=null==c?[b]:m.makeArray(c,[b]),k=m.event.special[p]||{},e||!k.trigger||k.trigger.apply(d,c)!==!1)){if(!e&&!k.noBubble&&!m.isWindow(d)){for(i=k.delegateType||p,$.test(i+p)||(h=h.parentNode);h;h=h.parentNode)o.push(h),l=h;l===(d.ownerDocument||y)&&o.push(l.defaultView||l.parentWindow||a)}n=0;while((h=o[n++])&&!b.isPropagationStopped())b.type=n>1?i:k.bindType||p,f=(m._data(h,"events")||{})[b.type]&&m._data(h,"handle"),f&&f.apply(h,c),f=g&&h[g],f&&f.apply&&m.acceptData(h)&&(b.result=f.apply(h,c),b.result===!1&&b.preventDefault());if(b.type=p,!e&&!b.isDefaultPrevented()&&(!k._default||k._default.apply(o.pop(),c)===!1)&&m.acceptData(d)&&g&&d[p]&&!m.isWindow(d)){l=d[g],l&&(d[g]=null),m.event.triggered=p;try{d[p]()}catch(r){}m.event.triggered=void 0,l&&(d[g]=l)}return b.result}},dispatch:function(a){a=m.event.fix(a);var b,c,e,f,g,h=[],i=d.call(arguments),j=(m._data(this,"events")||{})[a.type]||[],k=m.event.special[a.type]||{};if(i[0]=a,a.delegateTarget=this,!k.preDispatch||k.preDispatch.call(this,a)!==!1){h=m.event.handlers.call(this,a,j),b=0;while((f=h[b++])&&!a.isPropagationStopped()){a.currentTarget=f.elem,g=0;while((e=f.handlers[g++])&&!a.isImmediatePropagationStopped())(!a.namespace_re||a.namespace_re.test(e.namespace))&&(a.handleObj=e,a.data=e.data,c=((m.event.special[e.origType]||{}).handle||e.handler).apply(f.elem,i),void 0!==c&&(a.result=c)===!1&&(a.preventDefault(),a.stopPropagation()))}return k.postDispatch&&k.postDispatch.call(this,a),a.result}},handlers:function(a,b){var c,d,e,f,g=[],h=b.delegateCount,i=a.target;if(h&&i.nodeType&&(!a.button||"click"!==a.type))for(;i!=this;i=i.parentNode||this)if(1===i.nodeType&&(i.disabled!==!0||"click"!==a.type)){for(e=[],f=0;h>f;f++)d=b[f],c=d.selector+" ",void 0===e[c]&&(e[c]=d.needsContext?m(c,this).index(i)>=0:m.find(c,this,null,[i]).length),e[c]&&e.push(d);e.length&&g.push({elem:i,handlers:e})}return h]","i"),ha=/^\s+/,ia=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/gi,ja=/<([\w:]+)/,ka=/\s*$/g,ra={option:[1,""],legend:[1,"
    ","
    "],area:[1,"",""],param:[1,"",""],thead:[1,"","
    "],tr:[2,"","
    "],col:[2,"","
    "],td:[3,"","
    "],_default:k.htmlSerialize?[0,"",""]:[1,"X
    ","
    "]},sa=da(y),ta=sa.appendChild(y.createElement("div"));ra.optgroup=ra.option,ra.tbody=ra.tfoot=ra.colgroup=ra.caption=ra.thead,ra.th=ra.td;function ua(a,b){var c,d,e=0,f=typeof a.getElementsByTagName!==K?a.getElementsByTagName(b||"*"):typeof a.querySelectorAll!==K?a.querySelectorAll(b||"*"):void 0;if(!f)for(f=[],c=a.childNodes||a;null!=(d=c[e]);e++)!b||m.nodeName(d,b)?f.push(d):m.merge(f,ua(d,b));return void 0===b||b&&m.nodeName(a,b)?m.merge([a],f):f}function va(a){W.test(a.type)&&(a.defaultChecked=a.checked)}function wa(a,b){return m.nodeName(a,"table")&&m.nodeName(11!==b.nodeType?b:b.firstChild,"tr")?a.getElementsByTagName("tbody")[0]||a.appendChild(a.ownerDocument.createElement("tbody")):a}function xa(a){return a.type=(null!==m.find.attr(a,"type"))+"/"+a.type,a}function ya(a){var b=pa.exec(a.type);return b?a.type=b[1]:a.removeAttribute("type"),a}function za(a,b){for(var c,d=0;null!=(c=a[d]);d++)m._data(c,"globalEval",!b||m._data(b[d],"globalEval"))}function Aa(a,b){if(1===b.nodeType&&m.hasData(a)){var c,d,e,f=m._data(a),g=m._data(b,f),h=f.events;if(h){delete g.handle,g.events={};for(c in h)for(d=0,e=h[c].length;e>d;d++)m.event.add(b,c,h[c][d])}g.data&&(g.data=m.extend({},g.data))}}function Ba(a,b){var c,d,e;if(1===b.nodeType){if(c=b.nodeName.toLowerCase(),!k.noCloneEvent&&b[m.expando]){e=m._data(b);for(d in e.events)m.removeEvent(b,d,e.handle);b.removeAttribute(m.expando)}"script"===c&&b.text!==a.text?(xa(b).text=a.text,ya(b)):"object"===c?(b.parentNode&&(b.outerHTML=a.outerHTML),k.html5Clone&&a.innerHTML&&!m.trim(b.innerHTML)&&(b.innerHTML=a.innerHTML)):"input"===c&&W.test(a.type)?(b.defaultChecked=b.checked=a.checked,b.value!==a.value&&(b.value=a.value)):"option"===c?b.defaultSelected=b.selected=a.defaultSelected:("input"===c||"textarea"===c)&&(b.defaultValue=a.defaultValue)}}m.extend({clone:function(a,b,c){var d,e,f,g,h,i=m.contains(a.ownerDocument,a);if(k.html5Clone||m.isXMLDoc(a)||!ga.test("<"+a.nodeName+">")?f=a.cloneNode(!0):(ta.innerHTML=a.outerHTML,ta.removeChild(f=ta.firstChild)),!(k.noCloneEvent&&k.noCloneChecked||1!==a.nodeType&&11!==a.nodeType||m.isXMLDoc(a)))for(d=ua(f),h=ua(a),g=0;null!=(e=h[g]);++g)d[g]&&Ba(e,d[g]);if(b)if(c)for(h=h||ua(a),d=d||ua(f),g=0;null!=(e=h[g]);g++)Aa(e,d[g]);else Aa(a,f);return d=ua(f,"script"),d.length>0&&za(d,!i&&ua(a,"script")),d=h=e=null,f},buildFragment:function(a,b,c,d){for(var e,f,g,h,i,j,l,n=a.length,o=da(b),p=[],q=0;n>q;q++)if(f=a[q],f||0===f)if("object"===m.type(f))m.merge(p,f.nodeType?[f]:f);else if(la.test(f)){h=h||o.appendChild(b.createElement("div")),i=(ja.exec(f)||["",""])[1].toLowerCase(),l=ra[i]||ra._default,h.innerHTML=l[1]+f.replace(ia,"<$1>")+l[2],e=l[0];while(e--)h=h.lastChild;if(!k.leadingWhitespace&&ha.test(f)&&p.push(b.createTextNode(ha.exec(f)[0])),!k.tbody){f="table"!==i||ka.test(f)?""!==l[1]||ka.test(f)?0:h:h.firstChild,e=f&&f.childNodes.length;while(e--)m.nodeName(j=f.childNodes[e],"tbody")&&!j.childNodes.length&&f.removeChild(j)}m.merge(p,h.childNodes),h.textContent="";while(h.firstChild)h.removeChild(h.firstChild);h=o.lastChild}else p.push(b.createTextNode(f));h&&o.removeChild(h),k.appendChecked||m.grep(ua(p,"input"),va),q=0;while(f=p[q++])if((!d||-1===m.inArray(f,d))&&(g=m.contains(f.ownerDocument,f),h=ua(o.appendChild(f),"script"),g&&za(h),c)){e=0;while(f=h[e++])oa.test(f.type||"")&&c.push(f)}return h=null,o},cleanData:function(a,b){for(var d,e,f,g,h=0,i=m.expando,j=m.cache,l=k.deleteExpando,n=m.event.special;null!=(d=a[h]);h++)if((b||m.acceptData(d))&&(f=d[i],g=f&&j[f])){if(g.events)for(e in g.events)n[e]?m.event.remove(d,e):m.removeEvent(d,e,g.handle);j[f]&&(delete j[f],l?delete d[i]:typeof d.removeAttribute!==K?d.removeAttribute(i):d[i]=null,c.push(f))}}}),m.fn.extend({text:function(a){return V(this,function(a){return void 0===a?m.text(this):this.empty().append((this[0]&&this[0].ownerDocument||y).createTextNode(a))},null,a,arguments.length)},append:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.appendChild(a)}})},prepend:function(){return this.domManip(arguments,function(a){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var b=wa(this,a);b.insertBefore(a,b.firstChild)}})},before:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this)})},after:function(){return this.domManip(arguments,function(a){this.parentNode&&this.parentNode.insertBefore(a,this.nextSibling)})},remove:function(a,b){for(var c,d=a?m.filter(a,this):this,e=0;null!=(c=d[e]);e++)b||1!==c.nodeType||m.cleanData(ua(c)),c.parentNode&&(b&&m.contains(c.ownerDocument,c)&&za(ua(c,"script")),c.parentNode.removeChild(c));return this},empty:function(){for(var a,b=0;null!=(a=this[b]);b++){1===a.nodeType&&m.cleanData(ua(a,!1));while(a.firstChild)a.removeChild(a.firstChild);a.options&&m.nodeName(a,"select")&&(a.options.length=0)}return this},clone:function(a,b){return a=null==a?!1:a,b=null==b?a:b,this.map(function(){return m.clone(this,a,b)})},html:function(a){return V(this,function(a){var b=this[0]||{},c=0,d=this.length;if(void 0===a)return 1===b.nodeType?b.innerHTML.replace(fa,""):void 0;if(!("string"!=typeof a||ma.test(a)||!k.htmlSerialize&&ga.test(a)||!k.leadingWhitespace&&ha.test(a)||ra[(ja.exec(a)||["",""])[1].toLowerCase()])){a=a.replace(ia,"<$1>");try{for(;d>c;c++)b=this[c]||{},1===b.nodeType&&(m.cleanData(ua(b,!1)),b.innerHTML=a);b=0}catch(e){}}b&&this.empty().append(a)},null,a,arguments.length)},replaceWith:function(){var a=arguments[0];return this.domManip(arguments,function(b){a=this.parentNode,m.cleanData(ua(this)),a&&a.replaceChild(b,this)}),a&&(a.length||a.nodeType)?this:this.remove()},detach:function(a){return this.remove(a,!0)},domManip:function(a,b){a=e.apply([],a);var c,d,f,g,h,i,j=0,l=this.length,n=this,o=l-1,p=a[0],q=m.isFunction(p);if(q||l>1&&"string"==typeof p&&!k.checkClone&&na.test(p))return this.each(function(c){var d=n.eq(c);q&&(a[0]=p.call(this,c,d.html())),d.domManip(a,b)});if(l&&(i=m.buildFragment(a,this[0].ownerDocument,!1,this),c=i.firstChild,1===i.childNodes.length&&(i=c),c)){for(g=m.map(ua(i,"script"),xa),f=g.length;l>j;j++)d=i,j!==o&&(d=m.clone(d,!0,!0),f&&m.merge(g,ua(d,"script"))),b.call(this[j],d,j);if(f)for(h=g[g.length-1].ownerDocument,m.map(g,ya),j=0;f>j;j++)d=g[j],oa.test(d.type||"")&&!m._data(d,"globalEval")&&m.contains(h,d)&&(d.src?m._evalUrl&&m._evalUrl(d.src):m.globalEval((d.text||d.textContent||d.innerHTML||"").replace(qa,"")));i=c=null}return this}}),m.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(a,b){m.fn[a]=function(a){for(var c,d=0,e=[],g=m(a),h=g.length-1;h>=d;d++)c=d===h?this:this.clone(!0),m(g[d])[b](c),f.apply(e,c.get());return this.pushStack(e)}});var Ca,Da={};function Ea(b,c){var d,e=m(c.createElement(b)).appendTo(c.body),f=a.getDefaultComputedStyle&&(d=a.getDefaultComputedStyle(e[0]))?d.display:m.css(e[0],"display");return e.detach(),f}function Fa(a){var b=y,c=Da[a];return c||(c=Ea(a,b),"none"!==c&&c||(Ca=(Ca||m("