vendor: 144,838 bytes, lines 1-6637
1/* compact [ 2 prive/javascript/jquery.js?1788349516 3 prive/javascript/jquery.form.js?1788349516 4 prive/javascript/jquery.autosave.js?1788349516 5 prive/javascript/jquery.placeholder-label.js?1788349516 6 prive/javascript/ajaxCallback.js?1788349516 7 prive/javascript/js.cookie.js?1788349516 8 plugins/auto/videos/v0.13.0/lib/html5media-1.1.8/api/html5media.min.js?1720881142 9 plugins-dist/mediabox/lib/lity/lity.js?1788350574 10 plugins-dist/mediabox/lity/js/lity.mediabox.js?1788350574 11 plugins-dist/mediabox/javascript/spip.mediabox.js?1788350574 12 plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1788350576 13 plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1788350576 14 local/cache-js/jsdyn-javascript_porte_plume_start_js-d0e87260.js?1789563542 15 prive/javascript/js.cookie.js?1788349516 16 local/cache-js/jsdyn-socialtags_js-37fdc810.js?1789563542 17 plugins/auto/blocsdepliables/v1.4.2/js/blocs.js?1750406074 18 squelettes/js/responsive-nav.js 19 squelettes/js/lee.js 20] 57.7% */ 21 22/* prive/javascript/jquery.js?1788349516 */ 23 24(function(global,factory){ 25"use strict"; 26if(typeof module==="object"&&typeof module.exports==="object"){ 27module.exports=global.document? 28factory(global,true): 29function(w){ 30if(!w.document){ 31throw new Error("jQuery requires a window with a document"); 32} 33return factory(w); 34}; 35}else{ 36factory(global); 37} 38})(typeof window!=="undefined"?window:this,function(window,noGlobal){ 39"use strict"; 40var arr=[]; 41var getProto=Object.getPrototypeOf; 42var slice=arr.slice; 43var flat=arr.flat?function(array){ 44return arr.flat.call(array); 45}:function(array){ 46return arr.concat.apply([],array); 47}; 48var push=arr.push; 49var indexOf=arr.indexOf; 50var class2type={}; 51var toString=class2type.toString; 52var hasOwn=class2type.hasOwnProperty; 53var fnToString=hasOwn.toString; 54var ObjectFunctionString=fnToString.call(Object); 55var support={}; 56var isFunction=function isFunction(obj){ 57return typeof obj==="function"&&typeof obj.nodeType!=="number"&& 58typeof obj.item!=="function"; 59}; 60var isWindow=function isWindow(obj){ 61return obj!=null&&obj===obj.window; 62}; 63var document=window.document; 64var preservedScriptAttributes={ 65type:true, 66src:true, 67nonce:true, 68noModule:true 69}; 70function DOMEval(code,node,doc){ 71doc=doc||document; 72var i,val, 73script=doc.createElement("script"); 74script.text=code; 75if(node){ 76for(i in preservedScriptAttributes){ 77val=node[i]||node.getAttribute&&node.getAttribute(i); 78if(val){ 79script.setAttribute(i,val); 80} 81} 82} 83doc.head.appendChild(script).parentNode.removeChild(script); 84} 85function toType(obj){ 86if(obj==null){ 87return obj+""; 88} 89return typeof obj==="object"||typeof obj==="function"? 90class2type[toString.call(obj)]||"object": 91typeof obj; 92} 93var version="3.7.1", 94rhtmlSuffix=/HTML$/i, 95jQuery=function(selector,context){ 96return new jQuery.fn.init(selector,context); 97}; 98jQuery.fn=jQuery.prototype={ 99jquery:version, 100constructor:jQuery, 101length:0, 102toArray:function(){ 103return slice.call(this); 104}, 105get:function(num){ 106if(num==null){ 107return slice.call(this); 108} 109return num<0?this[num+this.length]:this[num]; 110}, 111pushStack:function(elems){ 112var ret=jQuery.merge(this.constructor(),elems); 113ret.prevObject=this; 114return ret; 115}, 116each:function(callback){ 117return jQuery.each(this,callback); 118}, 119map:function(callback){ 120return this.pushStack(jQuery.map(this,function(elem,i){ 121return callback.call(elem,i,elem); 122})); 123}, 124slice:function(){ 125return this.pushStack(slice.apply(this,arguments)); 126}, 127first:function(){ 128return this.eq(0); 129}, 130last:function(){ 131return this.eq(-1); 132}, 133even:function(){ 134return this.pushStack(jQuery.grep(this,function(_elem,i){ 135return(i+1)%2; 136})); 137}, 138odd:function(){ 139return this.pushStack(jQuery.grep(this,function(_elem,i){ 140return i%2; 141})); 142}, 143eq:function(i){ 144var len=this.length, 145j=+i+(i<0?len:0); 146return this.pushStack(j>=0&&j<len?[this[j]]:[]); 147}, 148end:function(){ 149return this.prevObject||this.constructor(); 150}, 151push:push, 152sort:arr.sort, 153splice:arr.splice 154}; 155jQuery.extend=jQuery.fn.extend=function(){ 156var options,name,src,copy,copyIsArray,clone, 157target=arguments[0]||{}, 158i=1, 159length=arguments.length, 160deep=false; 161if(typeof target==="boolean"){ 162deep=target; 163target=arguments[i]||{}; 164i++; 165} 166if(typeof target!=="object"&&!isFunction(target)){ 167target={}; 168} 169if(i===length){ 170target=this; 171i--; 172} 173for(;i<length;i++){ 174if((options=arguments[i])!=null){ 175for(name in options){ 176copy=options[name]; 177if(name==="__proto__"||target===copy){ 178continue; 179} 180if(deep&©&&(jQuery.isPlainObject(copy)|| 181(copyIsArray=Array.isArray(copy)))){ 182src=target[name]; 183if(copyIsArray&&!Array.isArray(src)){ 184clone=[]; 185}else if(!copyIsArray&&!jQuery.isPlainObject(src)){ 186clone={}; 187}else{ 188clone=src; 189} 190copyIsArray=false; 191target[name]=jQuery.extend(deep,clone,copy); 192}else if(copy!==undefined){ 193target[name]=copy; 194} 195} 196} 197} 198return target; 199}; 200jQuery.extend({ 201expando:"jQuery"+(version+Math.random()).replace(/\D/g,""), 202isReady:true, 203error:function(msg){ 204throw new Error(msg); 205}, 206noop:function(){}, 207isPlainObject:function(obj){ 208var proto,Ctor; 209if(!obj||toString.call(obj)!=="[object Object]"){ 210return false; 211} 212proto=getProto(obj); 213if(!proto){ 214return true; 215} 216Ctor=hasOwn.call(proto,"constructor")&&proto.constructor; 217return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString; 218}, 219isEmptyObject:function(obj){ 220var name; 221for(name in obj){ 222return false; 223} 224return true; 225}, 226globalEval:function(code,options,doc){ 227DOMEval(code,{nonce:options&&options.nonce},doc); 228}, 229each:function(obj,callback){ 230var length,i=0; 231if(isArrayLike(obj)){ 232length=obj.length; 233for(;i<length;i++){ 234if(callback.call(obj[i],i,obj[i])===false){ 235break; 236} 237} 238}else{ 239for(i in obj){ 240if(callback.call(obj[i],i,obj[i])===false){ 241break; 242} 243} 244} 245return obj; 246}, 247text:function(elem){ 248var node, 249ret="", 250i=0, 251nodeType=elem.nodeType; 252if(!nodeType){ 253while((node=elem[i++])){ 254ret+=jQuery.text(node); 255} 256} 257if(nodeType===1||nodeType===11){ 258return elem.textContent; 259} 260if(nodeType===9){ 261return elem.documentElement.textContent; 262} 263if(nodeType===3||nodeType===4){ 264return elem.nodeValue; 265} 266return ret; 267}, 268makeArray:function(arr,results){ 269var ret=results||[]; 270if(arr!=null){ 271if(isArrayLike(Object(arr))){ 272jQuery.merge(ret, 273typeof arr==="string"? 274[arr]:arr 275); 276}else{ 277push.call(ret,arr); 278} 279} 280return ret; 281}, 282inArray:function(elem,arr,i){ 283return arr==null?-1:indexOf.call(arr,elem,i); 284}, 285isXMLDoc:function(elem){ 286var namespace=elem&&elem.namespaceURI, 287docElem=elem&&(elem.ownerDocument||elem).documentElement; 288return!rhtmlSuffix.test(namespace||docElem&&docElem.nodeName||"HTML"); 289}, 290merge:function(first,second){ 291var len=+second.length, 292j=0, 293i=first.length; 294for(;j<len;j++){ 295first[i++]=second[j]; 296} 297first.length=i; 298return first; 299}, 300grep:function(elems,callback,invert){ 301var callbackInverse, 302matches=[], 303i=0, 304length=elems.length, 305callbackExpect=!invert; 306for(;i<length;i++){ 307callbackInverse=!callback(elems[i],i); 308if(callbackInverse!==callbackExpect){ 309matches.push(elems[i]); 310} 311} 312return matches; 313}, 314map:function(elems,callback,arg){ 315var length,value, 316i=0, 317ret=[]; 318if(isArrayLike(elems)){ 319length=elems.length; 320for(;i<length;i++){ 321value=callback(elems[i],i,arg); 322if(value!=null){ 323ret.push(value); 324} 325} 326}else{ 327for(i in elems){ 328value=callback(elems[i],i,arg); 329if(value!=null){ 330ret.push(value); 331} 332} 333} 334return flat(ret); 335}, 336guid:1, 337support:support 338}); 339if(typeof Symbol==="function"){ 340jQuery.fn[Symbol.iterator]=arr[Symbol.iterator]; 341} 342jQuery.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "), 343function(_i,name){ 344class2type["[object "+name+"]"]=name.toLowerCase(); 345}); 346function isArrayLike(obj){ 347var length=!!obj&&"length"in obj&&obj.length, 348type=toType(obj); 349if(isFunction(obj)||isWindow(obj)){ 350return false; 351} 352return type==="array"||length===0|| 353typeof length==="number"&&length>0&&(length-1)in obj; 354} 355function nodeName(elem,name){ 356return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase(); 357} 358var pop=arr.pop; 359var sort=arr.sort; 360var splice=arr.splice; 361var whitespace="[\\x20\\t\\r\\n\\f]"; 362var rtrimCSS=new RegExp( 363"^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$", 364"g" 365); 366jQuery.contains=function(a,b){ 367var bup=b&&b.parentNode; 368return a===bup||!!(bup&&bup.nodeType===1&&( 369a.contains? 370a.contains(bup): 371a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16 372)); 373}; 374var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g; 375function fcssescape(ch,asCodePoint){ 376if(asCodePoint){ 377if(ch==="\0"){ 378return"\uFFFD"; 379} 380return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" "; 381} 382return"\\"+ch; 383} 384jQuery.escapeSelector=function(sel){ 385return(sel+"").replace(rcssescape,fcssescape); 386}; 387var preferredDoc=document, 388pushNative=push; 389(function(){ 390var i, 391Expr, 392outermostContext, 393sortInput, 394hasDuplicate, 395push=pushNative, 396document, 397documentElement, 398documentIsHTML, 399rbuggyQSA, 400matches, 401expando=jQuery.expando, 402dirruns=0, 403done=0, 404classCache=createCache(), 405tokenCache=createCache(), 406compilerCache=createCache(), 407nonnativeSelectorCache=createCache(), 408sortOrder=function(a,b){ 409if(a===b){ 410hasDuplicate=true; 411} 412return 0; 413}, 414booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|"+ 415"loop|multiple|open|readonly|required|scoped", 416identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+ 417"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+", 418attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+ 419"*([*^$|!~]?=)"+whitespace+ 420"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+ 421whitespace+"*\\]", 422pseudos=":("+identifier+")(?:\\(("+ 423"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+ 424"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+ 425".*"+ 426")\\)|)", 427rwhitespace=new RegExp(whitespace+"+","g"), 428rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"), 429rleadingCombinator=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+ 430whitespace+"*"), 431rdescend=new RegExp(whitespace+"|>"), 432rpseudo=new RegExp(pseudos), 433ridentifier=new RegExp("^"+identifier+"$"), 434matchExpr={ 435ID:new RegExp("^#("+identifier+")"), 436CLASS:new RegExp("^\\.("+identifier+")"), 437TAG:new RegExp("^("+identifier+"|[*])"), 438ATTR:new RegExp("^"+attributes), 439PSEUDO:new RegExp("^"+pseudos), 440CHILD:new RegExp( 441"^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+ 442whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+ 443whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"), 444bool:new RegExp("^(?:"+booleans+")$","i"), 445needsContext:new RegExp("^"+whitespace+ 446"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+ 447"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i") 448}, 449rinputs=/^(?:input|select|textarea|button)$/i, 450rheader=/^h\d$/i, 451rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/, 452rsibling=/[+~]/, 453runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+ 454"?|\\\\([^\\r\\n\\f])","g"), 455funescape=function(escape,nonHex){ 456var high="0x"+escape.slice(1)-0x10000; 457if(nonHex){ 458return nonHex; 459} 460return high<0? 461String.fromCharCode(high+0x10000): 462String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00); 463}, 464unloadHandler=function(){ 465setDocument(); 466}, 467inDisabledFieldset=addCombinator( 468function(elem){ 469return elem.disabled===true&&nodeName(elem,"fieldset"); 470}, 471{dir:"parentNode",next:"legend"} 472); 473function safeActiveElement(){ 474try{ 475return document.activeElement; 476}catch(err){} 477} 478try{ 479push.apply( 480(arr=slice.call(preferredDoc.childNodes)), 481preferredDoc.childNodes 482); 483arr[preferredDoc.childNodes.length].nodeType; 484}catch(e){ 485push={ 486apply:function(target,els){ 487pushNative.apply(target,slice.call(els)); 488}, 489call:function(target){ 490pushNative.apply(target,slice.call(arguments,1)); 491} 492}; 493} 494function find(selector,context,results,seed){ 495var m,i,elem,nid,match,groups,newSelector, 496newContext=context&&context.ownerDocument, 497nodeType=context?context.nodeType:9; 498results=results||[]; 499if(typeof selector!=="string"||!selector|| 500nodeType!==1&&nodeType!==9&&nodeType!==11){ 501return results; 502} 503if(!seed){ 504setDocument(context); 505context=context||document; 506if(documentIsHTML){ 507if(nodeType!==11&&(match=rquickExpr.exec(selector))){ 508if((m=match[1])){ 509if(nodeType===9){ 510if((elem=context.getElementById(m))){ 511if(elem.id===m){ 512push.call(results,elem); 513return results; 514} 515}else{ 516return results; 517} 518}else{ 519if(newContext&&(elem=newContext.getElementById(m))&& 520find.contains(context,elem)&& 521elem.id===m){ 522push.call(results,elem); 523return results; 524} 525} 526}else if(match[2]){ 527push.apply(results,context.getElementsByTagName(selector)); 528return results; 529}else if((m=match[3])&&context.getElementsByClassName){ 530push.apply(results,context.getElementsByClassName(m)); 531return results; 532} 533} 534if(!nonnativeSelectorCache[selector+" "]&& 535(!rbuggyQSA||!rbuggyQSA.test(selector))){ 536newSelector=selector; 537newContext=context; 538if(nodeType===1&& 539(rdescend.test(selector)||rleadingCombinator.test(selector))){ 540newContext=rsibling.test(selector)&&testContext(context.parentNode)|| 541context; 542if(newContext!=context||!support.scope){ 543if((nid=context.getAttribute("id"))){ 544nid=jQuery.escapeSelector(nid); 545}else{ 546context.setAttribute("id",(nid=expando)); 547} 548} 549groups=tokenize(selector); 550i=groups.length; 551while(i--){ 552groups[i]=(nid?"#"+nid:":scope")+" "+ 553toSelector(groups[i]); 554} 555newSelector=groups.join(","); 556} 557try{ 558push.apply(results, 559newContext.querySelectorAll(newSelector) 560); 561return results; 562}catch(qsaError){ 563nonnativeSelectorCache(selector,true); 564}finally{ 565if(nid===expando){ 566context.removeAttribute("id"); 567} 568} 569} 570} 571} 572return select(selector.replace(rtrimCSS,"$1"),context,results,seed); 573} 574function createCache(){ 575var keys=[]; 576function cache(key,value){ 577if(keys.push(key+" ")>Expr.cacheLength){ 578delete cache[keys.shift()]; 579} 580return(cache[key+" "]=value); 581} 582return cache; 583} 584function markFunction(fn){ 585fn[expando]=true; 586return fn; 587} 588function assert(fn){ 589var el=document.createElement("fieldset"); 590try{ 591return!!fn(el); 592}catch(e){ 593return false; 594}finally{ 595if(el.parentNode){ 596el.parentNode.removeChild(el); 597} 598el=null; 599} 600} 601function createInputPseudo(type){ 602return function(elem){ 603return nodeName(elem,"input")&&elem.type===type; 604}; 605} 606function createButtonPseudo(type){ 607return function(elem){ 608return(nodeName(elem,"input")||nodeName(elem,"button"))&& 609elem.type===type; 610}; 611} 612function createDisabledPseudo(disabled){ 613return function(elem){ 614if("form"in elem){ 615if(elem.parentNode&&elem.disabled===false){ 616if("label"in elem){ 617if("label"in elem.parentNode){ 618return elem.parentNode.disabled===disabled; 619}else{ 620return elem.disabled===disabled; 621} 622} 623return elem.isDisabled===disabled|| 624elem.isDisabled!==!disabled&& 625inDisabledFieldset(elem)===disabled; 626} 627return elem.disabled===disabled; 628}else if("label"in elem){ 629return elem.disabled===disabled; 630} 631return false; 632}; 633} 634function createPositionalPseudo(fn){ 635return markFunction(function(argument){ 636argument=+argument; 637return markFunction(function(seed,matches){ 638var j, 639matchIndexes=fn([],seed.length,argument), 640i=matchIndexes.length; 641while(i--){ 642if(seed[(j=matchIndexes[i])]){ 643seed[j]=!(matches[j]=seed[j]); 644} 645} 646}); 647}); 648} 649function testContext(context){ 650return context&&typeof context.getElementsByTagName!=="undefined"&&context; 651} 652function setDocument(node){ 653var subWindow, 654doc=node?node.ownerDocument||node:preferredDoc; 655if(doc==document||doc.nodeType!==9||!doc.documentElement){ 656return document; 657} 658document=doc; 659documentElement=document.documentElement; 660documentIsHTML=!jQuery.isXMLDoc(document); 661matches=documentElement.matches|| 662documentElement.webkitMatchesSelector|| 663documentElement.msMatchesSelector; 664if(documentElement.msMatchesSelector&& 665preferredDoc!=document&& 666(subWindow=document.defaultView)&&subWindow.top!==subWindow){ 667subWindow.addEventListener("unload",unloadHandler); 668} 669support.getById=assert(function(el){ 670documentElement.appendChild(el).id=jQuery.expando; 671return!document.getElementsByName|| 672!document.getElementsByName(jQuery.expando).length; 673}); 674support.disconnectedMatch=assert(function(el){ 675return matches.call(el,"*"); 676}); 677support.scope=assert(function(){ 678return document.querySelectorAll(":scope"); 679}); 680support.cssHas=assert(function(){ 681try{ 682document.querySelector(":has(*,:jqfake)"); 683return false; 684}catch(e){ 685return true; 686} 687}); 688if(support.getById){ 689Expr.filter.ID=function(id){ 690var attrId=id.replace(runescape,funescape); 691return function(elem){ 692return elem.getAttribute("id")===attrId; 693}; 694}; 695Expr.find.ID=function(id,context){ 696if(typeof context.getElementById!=="undefined"&&documentIsHTML){ 697var elem=context.getElementById(id); 698return elem?[elem]:[]; 699} 700}; 701}else{ 702Expr.filter.ID=function(id){ 703var attrId=id.replace(runescape,funescape); 704return function(elem){ 705var node=typeof elem.getAttributeNode!=="undefined"&& 706elem.getAttributeNode("id"); 707return node&&node.value===attrId; 708}; 709}; 710Expr.find.ID=function(id,context){ 711if(typeof context.getElementById!=="undefined"&&documentIsHTML){ 712var node,i,elems, 713elem=context.getElementById(id); 714if(elem){ 715node=elem.getAttributeNode("id"); 716if(node&&node.value===id){ 717return[elem]; 718} 719elems=context.getElementsByName(id); 720i=0; 721while((elem=elems[i++])){ 722node=elem.getAttributeNode("id"); 723if(node&&node.value===id){ 724return[elem]; 725} 726} 727} 728return[]; 729} 730}; 731} 732Expr.find.TAG=function(tag,context){ 733if(typeof context.getElementsByTagName!=="undefined"){ 734return context.getElementsByTagName(tag); 735}else{ 736return context.querySelectorAll(tag); 737} 738}; 739Expr.find.CLASS=function(className,context){ 740if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){ 741return context.getElementsByClassName(className); 742} 743}; 744rbuggyQSA=[]; 745assert(function(el){ 746var input; 747documentElement.appendChild(el).innerHTML= 748"<a id='"+expando+"' href='' disabled='disabled'></a>"+ 749"<select id='"+expando+"-\r\\' disabled='disabled'>"+ 750"<option selected=''></option></select>"; 751if(!el.querySelectorAll("[selected]").length){ 752rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")"); 753} 754if(!el.querySelectorAll("[id~="+expando+"-]").length){ 755rbuggyQSA.push("~="); 756} 757if(!el.querySelectorAll("a#"+expando+"+*").length){ 758rbuggyQSA.push(".#.+[+~]"); 759} 760if(!el.querySelectorAll(":checked").length){ 761rbuggyQSA.push(":checked"); 762} 763input=document.createElement("input"); 764input.setAttribute("type","hidden"); 765el.appendChild(input).setAttribute("name","D"); 766documentElement.appendChild(el).disabled=true; 767if(el.querySelectorAll(":disabled").length!==2){ 768rbuggyQSA.push(":enabled",":disabled"); 769} 770input=document.createElement("input"); 771input.setAttribute("name",""); 772el.appendChild(input); 773if(!el.querySelectorAll("[name='']").length){ 774rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+ 775whitespace+"*(?:''|\"\")"); 776} 777}); 778if(!support.cssHas){ 779rbuggyQSA.push(":has"); 780} 781rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|")); 782sortOrder=function(a,b){ 783if(a===b){ 784hasDuplicate=true; 785return 0; 786} 787var compare=!a.compareDocumentPosition-!b.compareDocumentPosition; 788if(compare){ 789return compare; 790} 791compare=(a.ownerDocument||a)==(b.ownerDocument||b)? 792a.compareDocumentPosition(b): 7931; 794if(compare&1|| 795(!support.sortDetached&&b.compareDocumentPosition(a)===compare)){ 796if(a===document||a.ownerDocument==preferredDoc&& 797find.contains(preferredDoc,a)){ 798return-1; 799} 800if(b===document||b.ownerDocument==preferredDoc&& 801find.contains(preferredDoc,b)){ 802return 1; 803} 804return sortInput? 805(indexOf.call(sortInput,a)-indexOf.call(sortInput,b)): 8060; 807} 808return compare&4?-1:1; 809}; 810return document; 811} 812find.matches=function(expr,elements){ 813return find(expr,null,null,elements); 814}; 815find.matchesSelector=function(elem,expr){ 816setDocument(elem); 817if(documentIsHTML&& 818!nonnativeSelectorCache[expr+" "]&& 819(!rbuggyQSA||!rbuggyQSA.test(expr))){ 820try{ 821var ret=matches.call(elem,expr); 822if(ret||support.disconnectedMatch|| 823elem.document&&elem.document.nodeType!==11){ 824return ret; 825} 826}catch(e){ 827nonnativeSelectorCache(expr,true); 828} 829} 830return find(expr,document,null,[elem]).length>0; 831}; 832find.contains=function(context,elem){ 833if((context.ownerDocument||context)!=document){ 834setDocument(context); 835} 836return jQuery.contains(context,elem); 837}; 838find.attr=function(elem,name){ 839if((elem.ownerDocument||elem)!=document){ 840setDocument(elem); 841} 842var fn=Expr.attrHandle[name.toLowerCase()], 843val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())? 844fn(elem,name,!documentIsHTML): 845undefined; 846if(val!==undefined){ 847return val; 848} 849return elem.getAttribute(name); 850}; 851find.error=function(msg){ 852throw new Error("Syntax error, unrecognized expression: "+msg); 853}; 854jQuery.uniqueSort=function(results){ 855var elem, 856duplicates=[], 857j=0, 858i=0; 859hasDuplicate=!support.sortStable; 860sortInput=!support.sortStable&&slice.call(results,0); 861sort.call(results,sortOrder); 862if(hasDuplicate){ 863while((elem=results[i++])){ 864if(elem===results[i]){ 865j=duplicates.push(i); 866} 867} 868while(j--){ 869splice.call(results,duplicates[j],1); 870} 871} 872sortInput=null; 873return results; 874}; 875jQuery.fn.uniqueSort=function(){ 876return this.pushStack(jQuery.uniqueSort(slice.apply(this))); 877}; 878Expr=jQuery.expr={ 879cacheLength:50, 880createPseudo:markFunction, 881match:matchExpr, 882attrHandle:{}, 883find:{}, 884relative:{ 885">":{dir:"parentNode",first:true}, 886" ":{dir:"parentNode"}, 887"+":{dir:"previousSibling",first:true}, 888"~":{dir:"previousSibling"} 889}, 890preFilter:{ 891ATTR:function(match){ 892match[1]=match[1].replace(runescape,funescape); 893match[3]=(match[3]||match[4]||match[5]||"") 894.replace(runescape,funescape); 895if(match[2]==="~="){ 896match[3]=" "+match[3]+" "; 897} 898return match.slice(0,4); 899}, 900CHILD:function(match){ 901match[1]=match[1].toLowerCase(); 902if(match[1].slice(0,3)==="nth"){ 903if(!match[3]){ 904find.error(match[0]); 905} 906match[4]=+(match[4]? 907match[5]+(match[6]||1): 9082*(match[3]==="even"||match[3]==="odd") 909); 910match[5]=+((match[7]+match[8])||match[3]==="odd"); 911}else if(match[3]){ 912find.error(match[0]); 913} 914return match; 915}, 916PSEUDO:function(match){ 917var excess, 918unquoted=!match[6]&&match[2]; 919if(matchExpr.CHILD.test(match[0])){ 920return null; 921} 922if(match[3]){ 923match[2]=match[4]||match[5]||""; 924}else if(unquoted&&rpseudo.test(unquoted)&& 925(excess=tokenize(unquoted,true))&& 926(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){ 927match[0]=match[0].slice(0,excess); 928match[2]=unquoted.slice(0,excess); 929} 930return match.slice(0,3); 931} 932}, 933filter:{ 934TAG:function(nodeNameSelector){ 935var expectedNodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase(); 936return nodeNameSelector==="*"? 937function(){ 938return true; 939}: 940function(elem){ 941return nodeName(elem,expectedNodeName); 942}; 943}, 944CLASS:function(className){ 945var pattern=classCache[className+" "]; 946return pattern|| 947(pattern=new RegExp("(^|"+whitespace+")"+className+ 948"("+whitespace+"|$)"))&& 949classCache(className,function(elem){ 950return pattern.test( 951typeof elem.className==="string"&&elem.className|| 952typeof elem.getAttribute!=="undefined"&& 953elem.getAttribute("class")|| 954"" 955); 956}); 957}, 958ATTR:function(name,operator,check){ 959return function(elem){ 960var result=find.attr(elem,name); 961if(result==null){ 962return operator==="!="; 963} 964if(!operator){ 965return true; 966} 967result+=""; 968if(operator==="="){ 969return result===check; 970} 971if(operator==="!="){ 972return result!==check; 973} 974if(operator==="^="){ 975return check&&result.indexOf(check)===0; 976} 977if(operator==="*="){ 978return check&&result.indexOf(check)>-1; 979} 980if(operator==="$="){ 981return check&&result.slice(-check.length)===check; 982} 983if(operator==="~="){ 984return(" "+result.replace(rwhitespace," ")+" ") 985.indexOf(check)>-1; 986} 987if(operator==="|="){ 988return result===check||result.slice(0,check.length+1)===check+"-"; 989} 990return false; 991}; 992}, 993CHILD:function(type,what,_argument,first,last){ 994var simple=type.slice(0,3)!=="nth", 995forward=type.slice(-4)!=="last", 996ofType=what==="of-type"; 997return first===1&&last===0? 998function(elem){ 999return!!elem.parentNode; 1000}: 1001function(elem,_context,xml){ 1002var cache,outerCache,node,nodeIndex,start, 1003dir=simple!==forward?"nextSibling":"previousSibling", 1004parent=elem.parentNode, 1005name=ofType&&elem.nodeName.toLowerCase(), 1006useCache=!xml&&!ofType, 1007diff=false; 1008if(parent){ 1009if(simple){ 1010while(dir){ 1011node=elem; 1012while((node=node[dir])){ 1013if(ofType? 1014nodeName(node,name): 1015node.nodeType===1){ 1016return false; 1017} 1018} 1019start=dir=type==="only"&&!start&&"nextSibling"; 1020} 1021return true; 1022} 1023start=[forward?parent.firstChild:parent.lastChild]; 1024if(forward&&useCache){ 1025outerCache=parent[expando]||(parent[expando]={}); 1026cache=outerCache[type]||[]; 1027nodeIndex=cache[0]===dirruns&&cache[1]; 1028diff=nodeIndex&&cache[2]; 1029node=nodeIndex&&parent.childNodes[nodeIndex]; 1030while((node=++nodeIndex&&node&&node[dir]|| 1031(diff=nodeIndex=0)||start.pop())){ 1032if(node.nodeType===1&&++diff&&node===elem){ 1033outerCache[type]=[dirruns,nodeIndex,diff]; 1034break; 1035} 1036} 1037}else{ 1038if(useCache){ 1039outerCache=elem[expando]||(elem[expando]={}); 1040cache=outerCache[type]||[]; 1041nodeIndex=cache[0]===dirruns&&cache[1]; 1042diff=nodeIndex; 1043} 1044if(diff===false){ 1045while((node=++nodeIndex&&node&&node[dir]|| 1046(diff=nodeIndex=0)||start.pop())){ 1047if((ofType? 1048nodeName(node,name): 1049node.nodeType===1)&& 1050++diff){ 1051if(useCache){ 1052outerCache=node[expando]|| 1053(node[expando]={}); 1054outerCache[type]=[dirruns,diff]; 1055} 1056if(node===elem){ 1057break; 1058} 1059} 1060} 1061} 1062} 1063diff-=last; 1064return diff===first||(diff%first===0&&diff/first>=0); 1065} 1066}; 1067}, 1068PSEUDO:function(pseudo,argument){ 1069var args, 1070fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]|| 1071find.error("unsupported pseudo: "+pseudo); 1072if(fn[expando]){ 1073return fn(argument); 1074} 1075if(fn.length>1){ 1076args=[pseudo,pseudo,"",argument]; 1077return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())? 1078markFunction(function(seed,matches){ 1079var idx, 1080matched=fn(seed,argument), 1081i=matched.length; 1082while(i--){ 1083idx=indexOf.call(seed,matched[i]); 1084seed[idx]=!(matches[idx]=matched[i]); 1085} 1086}): 1087function(elem){ 1088return fn(elem,0,args); 1089}; 1090} 1091return fn; 1092} 1093}, 1094pseudos:{ 1095not:markFunction(function(selector){ 1096var input=[], 1097results=[], 1098matcher=compile(selector.replace(rtrimCSS,"$1")); 1099return matcher[expando]? 1100markFunction(function(seed,matches,_context,xml){ 1101var elem, 1102unmatched=matcher(seed,null,xml,[]), 1103i=seed.length; 1104while(i--){ 1105if((elem=unmatched[i])){ 1106seed[i]=!(matches[i]=elem); 1107} 1108} 1109}): 1110function(elem,_context,xml){ 1111input[0]=elem; 1112matcher(input,null,xml,results); 1113input[0]=null; 1114return!results.pop(); 1115}; 1116}), 1117has:markFunction(function(selector){ 1118return function(elem){ 1119return find(selector,elem).length>0; 1120}; 1121}), 1122contains:markFunction(function(text){ 1123text=text.replace(runescape,funescape); 1124return function(elem){ 1125return(elem.textContent||jQuery.text(elem)).indexOf(text)>-1; 1126}; 1127}), 1128lang:markFunction(function(lang){ 1129if(!ridentifier.test(lang||"")){ 1130find.error("unsupported lang: "+lang); 1131} 1132lang=lang.replace(runescape,funescape).toLowerCase(); 1133return function(elem){ 1134var elemLang; 1135do{ 1136if((elemLang=documentIsHTML? 1137elem.lang: 1138elem.getAttribute("xml:lang")||elem.getAttribute("lang"))){ 1139elemLang=elemLang.toLowerCase(); 1140return elemLang===lang||elemLang.indexOf(lang+"-")===0; 1141} 1142}while((elem=elem.parentNode)&&elem.nodeType===1); 1143return false; 1144}; 1145}), 1146target:function(elem){ 1147var hash=window.location&&window.location.hash; 1148return hash&&hash.slice(1)===elem.id; 1149}, 1150root:function(elem){ 1151return elem===documentElement; 1152}, 1153focus:function(elem){ 1154return elem===safeActiveElement()&& 1155document.hasFocus()&& 1156!!(elem.type||elem.href||~elem.tabIndex); 1157}, 1158enabled:createDisabledPseudo(false), 1159disabled:createDisabledPseudo(true), 1160checked:function(elem){ 1161return(nodeName(elem,"input")&&!!elem.checked)|| 1162(nodeName(elem,"option")&&!!elem.selected); 1163}, 1164selected:function(elem){ 1165if(elem.parentNode){ 1166elem.parentNode.selectedIndex; 1167} 1168return elem.selected===true; 1169}, 1170empty:function(elem){ 1171for(elem=elem.firstChild;elem;elem=elem.nextSibling){ 1172if(elem.nodeType<6){ 1173return false; 1174} 1175} 1176return true; 1177}, 1178parent:function(elem){ 1179return!Expr.pseudos.empty(elem); 1180}, 1181header:function(elem){ 1182return rheader.test(elem.nodeName); 1183}, 1184input:function(elem){ 1185return rinputs.test(elem.nodeName); 1186}, 1187button:function(elem){ 1188return nodeName(elem,"input")&&elem.type==="button"|| 1189nodeName(elem,"button"); 1190}, 1191text:function(elem){ 1192var attr; 1193return nodeName(elem,"input")&&elem.type==="text"&& 1194((attr=elem.getAttribute("type"))==null|| 1195attr.toLowerCase()==="text"); 1196}, 1197first:createPositionalPseudo(function(){ 1198return[0]; 1199}), 1200last:createPositionalPseudo(function(_matchIndexes,length){ 1201return[length-1]; 1202}), 1203eq:createPositionalPseudo(function(_matchIndexes,length,argument){ 1204return[argument<0?argument+length:argument]; 1205}), 1206even:createPositionalPseudo(function(matchIndexes,length){ 1207var i=0; 1208for(;i<length;i+=2){ 1209matchIndexes.push(i); 1210} 1211return matchIndexes; 1212}), 1213odd:createPositionalPseudo(function(matchIndexes,length){ 1214var i=1; 1215for(;i<length;i+=2){ 1216matchIndexes.push(i); 1217} 1218return matchIndexes; 1219}), 1220lt:createPositionalPseudo(function(matchIndexes,length,argument){ 1221var i; 1222if(argument<0){ 1223i=argument+length; 1224}else if(argument>length){ 1225i=length; 1226}else{ 1227i=argument; 1228} 1229for(;--i>=0;){ 1230matchIndexes.push(i); 1231} 1232return matchIndexes; 1233}), 1234gt:createPositionalPseudo(function(matchIndexes,length,argument){ 1235var i=argument<0?argument+length:argument; 1236for(;++i<length;){ 1237matchIndexes.push(i); 1238} 1239return matchIndexes; 1240}) 1241} 1242}; 1243Expr.pseudos.nth=Expr.pseudos.eq; 1244for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){ 1245Expr.pseudos[i]=createInputPseudo(i); 1246} 1247for(i in{submit:true,reset:true}){ 1248Expr.pseudos[i]=createButtonPseudo(i); 1249} 1250function setFilters(){} 1251setFilters.prototype=Expr.filters=Expr.pseudos; 1252Expr.setFilters=new setFilters(); 1253function tokenize(selector,parseOnly){ 1254var matched,match,tokens,type, 1255soFar,groups,preFilters, 1256cached=tokenCache[selector+" "]; 1257if(cached){ 1258return parseOnly?0:cached.slice(0); 1259} 1260soFar=selector; 1261groups=[]; 1262preFilters=Expr.preFilter; 1263while(soFar){ 1264if(!matched||(match=rcomma.exec(soFar))){ 1265if(match){ 1266soFar=soFar.slice(match[0].length)||soFar; 1267} 1268groups.push((tokens=[])); 1269} 1270matched=false; 1271if((match=rleadingCombinator.exec(soFar))){ 1272matched=match.shift(); 1273tokens.push({ 1274value:matched, 1275type:match[0].replace(rtrimCSS," ") 1276}); 1277soFar=soFar.slice(matched.length); 1278} 1279for(type in Expr.filter){ 1280if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]|| 1281(match=preFilters[type](match)))){ 1282matched=match.shift(); 1283tokens.push({ 1284value:matched, 1285type:type, 1286matches:match 1287}); 1288soFar=soFar.slice(matched.length); 1289} 1290} 1291if(!matched){ 1292break; 1293} 1294} 1295if(parseOnly){ 1296return soFar.length; 1297} 1298return soFar? 1299find.error(selector): 1300tokenCache(selector,groups).slice(0); 1301} 1302function toSelector(tokens){ 1303var i=0, 1304len=tokens.length, 1305selector=""; 1306for(;i<len;i++){ 1307selector+=tokens[i].value; 1308} 1309return selector; 1310} 1311function addCombinator(matcher,combinator,base){ 1312var dir=combinator.dir, 1313skip=combinator.next, 1314key=skip||dir, 1315checkNonElements=base&&key==="parentNode", 1316doneName=done++; 1317return combinator.first? 1318function(elem,context,xml){ 1319while((elem=elem[dir])){ 1320if(elem.nodeType===1||checkNonElements){ 1321return matcher(elem,context,xml); 1322} 1323} 1324return false; 1325}: 1326function(elem,context,xml){ 1327var oldCache,outerCache, 1328newCache=[dirruns,doneName]; 1329if(xml){ 1330while((elem=elem[dir])){ 1331if(elem.nodeType===1||checkNonElements){ 1332if(matcher(elem,context,xml)){ 1333return true; 1334} 1335} 1336} 1337}else{ 1338while((elem=elem[dir])){ 1339if(elem.nodeType===1||checkNonElements){ 1340outerCache=elem[expando]||(elem[expando]={}); 1341if(skip&&nodeName(elem,skip)){ 1342elem=elem[dir]||elem; 1343}else if((oldCache=outerCache[key])&& 1344oldCache[0]===dirruns&&oldCache[1]===doneName){ 1345return(newCache[2]=oldCache[2]); 1346}else{ 1347outerCache[key]=newCache; 1348if((newCache[2]=matcher(elem,context,xml))){ 1349return true; 1350} 1351} 1352} 1353} 1354} 1355return false; 1356}; 1357} 1358function elementMatcher(matchers){ 1359return matchers.length>1? 1360function(elem,context,xml){ 1361var i=matchers.length; 1362while(i--){ 1363if(!matchers[i](elem,context,xml)){ 1364return false; 1365} 1366} 1367return true; 1368}: 1369matchers[0]; 1370} 1371function multipleContexts(selector,contexts,results){ 1372var i=0, 1373len=contexts.length; 1374for(;i<len;i++){ 1375find(selector,contexts[i],results); 1376} 1377return results; 1378} 1379function condense(unmatched,map,filter,context,xml){ 1380var elem, 1381newUnmatched=[], 1382i=0, 1383len=unmatched.length, 1384mapped=map!=null; 1385for(;i<len;i++){ 1386if((elem=unmatched[i])){ 1387if(!filter||filter(elem,context,xml)){ 1388newUnmatched.push(elem); 1389if(mapped){ 1390map.push(i); 1391} 1392} 1393} 1394} 1395return newUnmatched; 1396} 1397function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){ 1398if(postFilter&&!postFilter[expando]){ 1399postFilter=setMatcher(postFilter); 1400} 1401if(postFinder&&!postFinder[expando]){ 1402postFinder=setMatcher(postFinder,postSelector); 1403} 1404return markFunction(function(seed,results,context,xml){ 1405var temp,i,elem,matcherOut, 1406preMap=[], 1407postMap=[], 1408preexisting=results.length, 1409elems=seed|| 1410multipleContexts(selector||"*", 1411context.nodeType?[context]:context,[]), 1412matcherIn=preFilter&&(seed||!selector)? 1413condense(elems,preMap,preFilter,context,xml): 1414elems; 1415if(matcher){ 1416matcherOut=postFinder||(seed?preFilter:preexisting||postFilter)? 1417[]: 1418results; 1419matcher(matcherIn,matcherOut,context,xml); 1420}else{ 1421matcherOut=matcherIn; 1422} 1423if(postFilter){ 1424temp=condense(matcherOut,postMap); 1425postFilter(temp,[],context,xml); 1426i=temp.length; 1427while(i--){ 1428if((elem=temp[i])){ 1429matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem); 1430} 1431} 1432} 1433if(seed){ 1434if(postFinder||preFilter){ 1435if(postFinder){ 1436temp=[]; 1437i=matcherOut.length; 1438while(i--){ 1439if((elem=matcherOut[i])){ 1440temp.push((matcherIn[i]=elem)); 1441} 1442} 1443postFinder(null,(matcherOut=[]),temp,xml); 1444} 1445i=matcherOut.length; 1446while(i--){ 1447if((elem=matcherOut[i])&& 1448(temp=postFinder?indexOf.call(seed,elem):preMap[i])>-1){ 1449seed[temp]=!(results[temp]=elem); 1450} 1451} 1452} 1453}else{ 1454matcherOut=condense( 1455matcherOut===results? 1456matcherOut.splice(preexisting,matcherOut.length): 1457matcherOut 1458); 1459if(postFinder){ 1460postFinder(null,results,matcherOut,xml); 1461}else{ 1462push.apply(results,matcherOut); 1463} 1464} 1465}); 1466} 1467function matcherFromTokens(tokens){ 1468var checkContext,matcher,j, 1469len=tokens.length, 1470leadingRelative=Expr.relative[tokens[0].type], 1471implicitRelative=leadingRelative||Expr.relative[" "], 1472i=leadingRelative?1:0, 1473matchContext=addCombinator(function(elem){ 1474return elem===checkContext; 1475},implicitRelative,true), 1476matchAnyContext=addCombinator(function(elem){ 1477return indexOf.call(checkContext,elem)>-1; 1478},implicitRelative,true), 1479matchers=[function(elem,context,xml){ 1480var ret=(!leadingRelative&&(xml||context!=outermostContext))||( 1481(checkContext=context).nodeType? 1482matchContext(elem,context,xml): 1483matchAnyContext(elem,context,xml)); 1484checkContext=null; 1485return ret; 1486}]; 1487for(;i<len;i++){ 1488if((matcher=Expr.relative[tokens[i].type])){ 1489matchers=[addCombinator(elementMatcher(matchers),matcher)]; 1490}else{ 1491matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches); 1492if(matcher[expando]){ 1493j=++i; 1494for(;j<len;j++){ 1495if(Expr.relative[tokens[j].type]){ 1496break; 1497} 1498} 1499return setMatcher( 1500i>1&&elementMatcher(matchers), 1501i>1&&toSelector( 1502tokens.slice(0,i-1) 1503.concat({value:tokens[i-2].type===" "?"*":""}) 1504).replace(rtrimCSS,"$1"), 1505matcher, 1506i<j&&matcherFromTokens(tokens.slice(i,j)), 1507j<len&&matcherFromTokens((tokens=tokens.slice(j))), 1508j<len&&toSelector(tokens) 1509); 1510} 1511matchers.push(matcher); 1512} 1513} 1514return elementMatcher(matchers); 1515} 1516function matcherFromGroupMatchers(elementMatchers,setMatchers){ 1517var bySet=setMatchers.length>0, 1518byElement=elementMatchers.length>0, 1519superMatcher=function(seed,context,xml,results,outermost){ 1520var elem,j,matcher, 1521matchedCount=0, 1522i="0", 1523unmatched=seed&&[], 1524setMatched=[], 1525contextBackup=outermostContext, 1526elems=seed||byElement&&Expr.find.TAG("*",outermost), 1527dirrunsUnique=(dirruns+=contextBackup==null?1:Math.random()||0.1), 1528len=elems.length; 1529if(outermost){ 1530outermostContext=context==document||context||outermost; 1531} 1532for(;i!==len&&(elem=elems[i])!=null;i++){ 1533if(byElement&&elem){ 1534j=0; 1535if(!context&&elem.ownerDocument!=document){ 1536setDocument(elem); 1537xml=!documentIsHTML; 1538} 1539while((matcher=elementMatchers[j++])){ 1540if(matcher(elem,context||document,xml)){ 1541push.call(results,elem); 1542break; 1543} 1544} 1545if(outermost){ 1546dirruns=dirrunsUnique; 1547} 1548} 1549if(bySet){ 1550if((elem=!matcher&&elem)){ 1551matchedCount--; 1552} 1553if(seed){ 1554unmatched.push(elem); 1555} 1556} 1557} 1558matchedCount+=i; 1559if(bySet&&i!==matchedCount){ 1560j=0; 1561while((matcher=setMatchers[j++])){ 1562matcher(unmatched,setMatched,context,xml); 1563} 1564if(seed){ 1565if(matchedCount>0){ 1566while(i--){ 1567if(!(unmatched[i]||setMatched[i])){ 1568setMatched[i]=pop.call(results); 1569} 1570} 1571} 1572setMatched=condense(setMatched); 1573} 1574push.apply(results,setMatched); 1575if(outermost&&!seed&&setMatched.length>0&& 1576(matchedCount+setMatchers.length)>1){ 1577jQuery.uniqueSort(results); 1578} 1579} 1580if(outermost){ 1581dirruns=dirrunsUnique; 1582outermostContext=contextBackup; 1583} 1584return unmatched; 1585}; 1586return bySet? 1587markFunction(superMatcher): 1588superMatcher; 1589} 1590function compile(selector,match){ 1591var i, 1592setMatchers=[], 1593elementMatchers=[], 1594cached=compilerCache[selector+" "]; 1595if(!cached){ 1596if(!match){ 1597match=tokenize(selector); 1598} 1599i=match.length; 1600while(i--){ 1601cached=matcherFromTokens(match[i]); 1602if(cached[expando]){ 1603setMatchers.push(cached); 1604}else{ 1605elementMatchers.push(cached); 1606} 1607} 1608cached=compilerCache(selector, 1609matcherFromGroupMatchers(elementMatchers,setMatchers)); 1610cached.selector=selector; 1611} 1612return cached; 1613} 1614function select(selector,context,results,seed){ 1615var i,tokens,token,type,find, 1616compiled=typeof selector==="function"&&selector, 1617match=!seed&&tokenize((selector=compiled.selector||selector)); 1618results=results||[]; 1619if(match.length===1){ 1620tokens=match[0]=match[0].slice(0); 1621if(tokens.length>2&&(token=tokens[0]).type==="ID"&& 1622context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){ 1623context=(Expr.find.ID( 1624token.matches[0].replace(runescape,funescape), 1625context 1626)||[])[0]; 1627if(!context){ 1628return results; 1629}else if(compiled){ 1630context=context.parentNode; 1631} 1632selector=selector.slice(tokens.shift().value.length); 1633} 1634i=matchExpr.needsContext.test(selector)?0:tokens.length; 1635while(i--){ 1636token=tokens[i]; 1637if(Expr.relative[(type=token.type)]){ 1638break; 1639} 1640if((find=Expr.find[type])){ 1641if((seed=find( 1642token.matches[0].replace(runescape,funescape), 1643rsibling.test(tokens[0].type)&& 1644testContext(context.parentNode)||context 1645))){ 1646tokens.splice(i,1); 1647selector=seed.length&&toSelector(tokens); 1648if(!selector){ 1649push.apply(results,seed); 1650return results; 1651} 1652break; 1653} 1654} 1655} 1656} 1657(compiled||compile(selector,match))( 1658seed, 1659context, 1660!documentIsHTML, 1661results, 1662!context||rsibling.test(selector)&&testContext(context.parentNode)||context 1663); 1664return results; 1665} 1666support.sortStable=expando.split("").sort(sortOrder).join("")===expando; 1667setDocument(); 1668support.sortDetached=assert(function(el){ 1669return el.compareDocumentPosition(document.createElement("fieldset"))&1; 1670}); 1671jQuery.find=find; 1672jQuery.expr[":"]=jQuery.expr.pseudos; 1673jQuery.unique=jQuery.uniqueSort; 1674find.compile=compile; 1675find.select=select; 1676find.setDocument=setDocument; 1677find.tokenize=tokenize; 1678find.escape=jQuery.escapeSelector; 1679find.getText=jQuery.text; 1680find.isXML=jQuery.isXMLDoc; 1681find.selectors=jQuery.expr; 1682find.support=jQuery.support; 1683find.uniqueSort=jQuery.uniqueSort; 1684})(); 1685var dir=function(elem,dir,until){ 1686var matched=[], 1687truncate=until!==undefined; 1688while((elem=elem[dir])&&elem.nodeType!==9){ 1689if(elem.nodeType===1){ 1690if(truncate&&jQuery(elem).is(until)){ 1691break; 1692} 1693matched.push(elem); 1694} 1695} 1696return matched; 1697}; 1698var siblings=function(n,elem){ 1699var matched=[]; 1700for(;n;n=n.nextSibling){ 1701if(n.nodeType===1&&n!==elem){ 1702matched.push(n); 1703} 1704} 1705return matched; 1706}; 1707var rneedsContext=jQuery.expr.match.needsContext; 1708var rsingleTag=(/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i); 1709function winnow(elements,qualifier,not){ 1710if(isFunction(qualifier)){ 1711return jQuery.grep(elements,function(elem,i){ 1712return!!qualifier.call(elem,i,elem)!==not; 1713}); 1714} 1715if(qualifier.nodeType){ 1716return jQuery.grep(elements,function(elem){ 1717return(elem===qualifier)!==not; 1718}); 1719} 1720if(typeof qualifier!=="string"){ 1721return jQuery.grep(elements,function(elem){ 1722return(indexOf.call(qualifier,elem)>-1)!==not; 1723}); 1724} 1725return jQuery.filter(qualifier,elements,not); 1726} 1727jQuery.filter=function(expr,elems,not){ 1728var elem=elems[0]; 1729if(not){ 1730expr=":not("+expr+")"; 1731} 1732if(elems.length===1&&elem.nodeType===1){ 1733return jQuery.find.matchesSelector(elem,expr)?[elem]:[]; 1734} 1735return jQuery.find.matches(expr,jQuery.grep(elems,function(elem){ 1736return elem.nodeType===1; 1737})); 1738}; 1739jQuery.fn.extend({ 1740find:function(selector){ 1741var i,ret, 1742len=this.length, 1743self=this; 1744if(typeof selector!=="string"){ 1745return this.pushStack(jQuery(selector).filter(function(){ 1746for(i=0;i<len;i++){ 1747if(jQuery.contains(self[i],this)){ 1748return true; 1749} 1750} 1751})); 1752} 1753ret=this.pushStack([]); 1754for(i=0;i<len;i++){ 1755jQuery.find(selector,self[i],ret); 1756} 1757return len>1?jQuery.uniqueSort(ret):ret; 1758}, 1759filter:function(selector){ 1760return this.pushStack(winnow(this,selector||[],false)); 1761}, 1762not:function(selector){ 1763return this.pushStack(winnow(this,selector||[],true)); 1764}, 1765is:function(selector){ 1766return!!winnow( 1767this, 1768typeof selector==="string"&&rneedsContext.test(selector)? 1769jQuery(selector): 1770selector||[], 1771false 1772).length; 1773} 1774}); 1775var rootjQuery, 1776rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/, 1777init=jQuery.fn.init=function(selector,context,root){ 1778var match,elem; 1779if(!selector){ 1780return this; 1781} 1782root=root||rootjQuery; 1783if(typeof selector==="string"){ 1784if(selector[0]==="<"&& 1785selector[selector.length-1]===">"&& 1786selector.length>=3){ 1787match=[null,selector,null]; 1788}else{ 1789match=rquickExpr.exec(selector); 1790} 1791if(match&&(match[1]||!context)){ 1792if(match[1]){ 1793context=context instanceof jQuery?context[0]:context; 1794jQuery.merge(this,jQuery.parseHTML( 1795match[1], 1796context&&context.nodeType?context.ownerDocument||context:document, 1797true 1798)); 1799if(rsingleTag.test(match[1])&&jQuery.isPlainObject(context)){ 1800for(match in context){ 1801if(isFunction(this[match])){ 1802this[match](context[match]); 1803}else{ 1804this.attr(match,context[match]); 1805} 1806} 1807} 1808return this; 1809}else{ 1810elem=document.getElementById(match[2]); 1811if(elem){ 1812this[0]=elem; 1813this.length=1; 1814} 1815return this; 1816} 1817}else if(!context||context.jquery){ 1818return(context||root).find(selector); 1819}else{ 1820return this.constructor(context).find(selector); 1821} 1822}else if(selector.nodeType){ 1823this[0]=selector; 1824this.length=1; 1825return this; 1826}else if(isFunction(selector)){ 1827return root.ready!==undefined? 1828root.ready(selector): 1829selector(jQuery); 1830} 1831return jQuery.makeArray(selector,this); 1832}; 1833init.prototype=jQuery.fn; 1834rootjQuery=jQuery(document); 1835var rparentsprev=/^(?:parents|prev(?:Until|All))/, 1836guaranteedUnique={ 1837children:true, 1838contents:true, 1839next:true, 1840prev:true 1841}; 1842jQuery.fn.extend({ 1843has:function(target){ 1844var targets=jQuery(target,this), 1845l=targets.length; 1846return this.filter(function(){ 1847var i=0; 1848for(;i<l;i++){ 1849if(jQuery.contains(this,targets[i])){ 1850return true; 1851} 1852} 1853}); 1854}, 1855closest:function(selectors,context){ 1856var cur, 1857i=0, 1858l=this.length, 1859matched=[], 1860targets=typeof selectors!=="string"&&jQuery(selectors); 1861if(!rneedsContext.test(selectors)){ 1862for(;i<l;i++){ 1863for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){ 1864if(cur.nodeType<11&&(targets? 1865targets.index(cur)>-1: 1866cur.nodeType===1&& 1867jQuery.find.matchesSelector(cur,selectors))){ 1868matched.push(cur); 1869break; 1870} 1871} 1872} 1873} 1874return this.pushStack(matched.length>1?jQuery.uniqueSort(matched):matched); 1875}, 1876index:function(elem){ 1877if(!elem){ 1878return(this[0]&&this[0].parentNode)?this.first().prevAll().length:-1; 1879} 1880if(typeof elem==="string"){ 1881return indexOf.call(jQuery(elem),this[0]); 1882} 1883return indexOf.call(this, 1884elem.jquery?elem[0]:elem 1885); 1886}, 1887add:function(selector,context){ 1888return this.pushStack( 1889jQuery.uniqueSort( 1890jQuery.merge(this.get(),jQuery(selector,context)) 1891) 1892); 1893}, 1894addBack:function(selector){ 1895return this.add(selector==null? 1896this.prevObject:this.prevObject.filter(selector) 1897); 1898} 1899}); 1900function sibling(cur,dir){ 1901while((cur=cur[dir])&&cur.nodeType!==1){} 1902return cur; 1903} 1904jQuery.each({ 1905parent:function(elem){ 1906var parent=elem.parentNode; 1907return parent&&parent.nodeType!==11?parent:null; 1908}, 1909parents:function(elem){ 1910return dir(elem,"parentNode"); 1911}, 1912parentsUntil:function(elem,_i,until){ 1913return dir(elem,"parentNode",until); 1914}, 1915next:function(elem){ 1916return sibling(elem,"nextSibling"); 1917}, 1918prev:function(elem){ 1919return sibling(elem,"previousSibling"); 1920}, 1921nextAll:function(elem){ 1922return dir(elem,"nextSibling"); 1923}, 1924prevAll:function(elem){ 1925return dir(elem,"previousSibling"); 1926}, 1927nextUntil:function(elem,_i,until){ 1928return dir(elem,"nextSibling",until); 1929}, 1930prevUntil:function(elem,_i,until){ 1931return dir(elem,"previousSibling",until); 1932}, 1933siblings:function(elem){ 1934return siblings((elem.parentNode||{}).firstChild,elem); 1935}, 1936children:function(elem){ 1937return siblings(elem.firstChild); 1938}, 1939contents:function(elem){ 1940if(elem.contentDocument!=null&& 1941getProto(elem.contentDocument)){ 1942return elem.contentDocument; 1943} 1944if(nodeName(elem,"template")){ 1945elem=elem.content||elem; 1946} 1947return jQuery.merge([],elem.childNodes); 1948} 1949},function(name,fn){ 1950jQuery.fn[name]=function(until,selector){ 1951var matched=jQuery.map(this,fn,until); 1952if(name.slice(-5)!=="Until"){ 1953selector=until; 1954} 1955if(selector&&typeof selector==="string"){ 1956matched=jQuery.filter(selector,matched); 1957} 1958if(this.length>1){ 1959if(!guaranteedUnique[name]){ 1960jQuery.uniqueSort(matched); 1961} 1962if(rparentsprev.test(name)){ 1963matched.reverse(); 1964} 1965} 1966return this.pushStack(matched); 1967}; 1968}); 1969var rnothtmlwhite=(/[^\x20\t\r\n\f]+/g); 1970function createOptions(options){ 1971var object={}; 1972jQuery.each(options.match(rnothtmlwhite)||[],function(_,flag){ 1973object[flag]=true; 1974}); 1975return object; 1976} 1977jQuery.Callbacks=function(options){ 1978options=typeof options==="string"? 1979createOptions(options): 1980jQuery.extend({},options); 1981var 1982firing, 1983memory, 1984fired, 1985locked, 1986list=[], 1987queue=[], 1988firingIndex=-1, 1989fire=function(){ 1990locked=locked||options.once; 1991fired=firing=true; 1992for(;queue.length;firingIndex=-1){ 1993memory=queue.shift(); 1994while(++firingIndex<list.length){ 1995if(list[firingIndex].apply(memory[0],memory[1])===false&& 1996options.stopOnFalse){ 1997firingIndex=list.length; 1998memory=false; 1999} 2000} 2001} 2002if(!options.memory){ 2003memory=false; 2004} 2005firing=false; 2006if(locked){ 2007if(memory){ 2008list=[]; 2009}else{ 2010list=""; 2011} 2012} 2013}, 2014self={ 2015add:function(){ 2016if(list){ 2017if(memory&&!firing){ 2018firingIndex=list.length-1; 2019queue.push(memory); 2020} 2021(function add(args){ 2022jQuery.each(args,function(_,arg){ 2023if(isFunction(arg)){ 2024if(!options.unique||!self.has(arg)){ 2025list.push(arg); 2026} 2027}else if(arg&&arg.length&&toType(arg)!=="string"){ 2028add(arg); 2029} 2030}); 2031})(arguments); 2032if(memory&&!firing){ 2033fire(); 2034} 2035} 2036return this; 2037}, 2038remove:function(){ 2039jQuery.each(arguments,function(_,arg){ 2040var index; 2041while((index=jQuery.inArray(arg,list,index))>-1){ 2042list.splice(index,1); 2043if(index<=firingIndex){ 2044firingIndex--; 2045} 2046} 2047}); 2048return this; 2049}, 2050has:function(fn){ 2051return fn? 2052jQuery.inArray(fn,list)>-1: 2053list.length>0; 2054}, 2055empty:function(){ 2056if(list){ 2057list=[]; 2058} 2059return this; 2060}, 2061disable:function(){ 2062locked=queue=[]; 2063list=memory=""; 2064return this; 2065}, 2066disabled:function(){ 2067return!list; 2068}, 2069lock:function(){ 2070locked=queue=[]; 2071if(!memory&&!firing){ 2072list=memory=""; 2073} 2074return this; 2075}, 2076locked:function(){ 2077return!!locked; 2078}, 2079fireWith:function(context,args){ 2080if(!locked){ 2081args=args||[]; 2082args=[context,args.slice?args.slice():args]; 2083queue.push(args); 2084if(!firing){ 2085fire(); 2086} 2087} 2088return this; 2089}, 2090fire:function(){ 2091self.fireWith(this,arguments); 2092return this; 2093}, 2094fired:function(){ 2095return!!fired; 2096} 2097}; 2098return self; 2099}; 2100function Identity(v){ 2101return v; 2102} 2103function Thrower(ex){ 2104throw ex; 2105} 2106function adoptValue(value,resolve,reject,noValue){ 2107var method; 2108try{ 2109if(value&&isFunction((method=value.promise))){ 2110method.call(value).done(resolve).fail(reject); 2111}else if(value&&isFunction((method=value.then))){ 2112method.call(value,resolve,reject); 2113}else{ 2114resolve.apply(undefined,[value].slice(noValue)); 2115} 2116}catch(value){ 2117reject.apply(undefined,[value]); 2118} 2119} 2120jQuery.extend({ 2121Deferred:function(func){ 2122var tuples=[ 2123["notify","progress",jQuery.Callbacks("memory"), 2124jQuery.Callbacks("memory"),2], 2125["resolve","done",jQuery.Callbacks("once memory"), 2126jQuery.Callbacks("once memory"),0,"resolved"], 2127["reject","fail",jQuery.Callbacks("once memory"), 2128jQuery.Callbacks("once memory"),1,"rejected"] 2129], 2130state="pending", 2131promise={ 2132state:function(){ 2133return state; 2134}, 2135always:function(){ 2136deferred.done(arguments).fail(arguments); 2137return this; 2138}, 2139"catch":function(fn){ 2140return promise.then(null,fn); 2141}, 2142pipe:function(){ 2143var fns=arguments; 2144return jQuery.Deferred(function(newDefer){ 2145jQuery.each(tuples,function(_i,tuple){ 2146var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]]; 2147deferred[tuple[1]](function(){ 2148var returned=fn&&fn.apply(this,arguments); 2149if(returned&&isFunction(returned.promise)){ 2150returned.promise() 2151.progress(newDefer.notify) 2152.done(newDefer.resolve) 2153.fail(newDefer.reject); 2154}else{ 2155newDefer[tuple[0]+"With"]( 2156this, 2157fn?[returned]:arguments 2158); 2159} 2160}); 2161}); 2162fns=null; 2163}).promise(); 2164}, 2165then:function(onFulfilled,onRejected,onProgress){ 2166var maxDepth=0; 2167function resolve(depth,deferred,handler,special){ 2168return function(){ 2169var that=this, 2170args=arguments, 2171mightThrow=function(){ 2172var returned,then; 2173if(depth<maxDepth){ 2174return; 2175} 2176returned=handler.apply(that,args); 2177if(returned===deferred.promise()){ 2178throw new TypeError("Thenable self-resolution"); 2179} 2180then=returned&& 2181(typeof returned==="object"|| 2182typeof returned==="function")&& 2183returned.then; 2184if(isFunction(then)){ 2185if(special){ 2186then.call( 2187returned, 2188resolve(maxDepth,deferred,Identity,special), 2189resolve(maxDepth,deferred,Thrower,special) 2190); 2191}else{ 2192maxDepth++; 2193then.call( 2194returned, 2195resolve(maxDepth,deferred,Identity,special), 2196resolve(maxDepth,deferred,Thrower,special), 2197resolve(maxDepth,deferred,Identity, 2198deferred.notifyWith) 2199); 2200} 2201}else{ 2202if(handler!==Identity){ 2203that=undefined; 2204args=[returned]; 2205} 2206(special||deferred.resolveWith)(that,args); 2207} 2208}, 2209process=special? 2210mightThrow: 2211function(){ 2212try{ 2213mightThrow(); 2214}catch(e){ 2215if(jQuery.Deferred.exceptionHook){ 2216jQuery.Deferred.exceptionHook(e, 2217process.error); 2218} 2219if(depth+1>=maxDepth){ 2220if(handler!==Thrower){ 2221that=undefined; 2222args=[e]; 2223} 2224deferred.rejectWith(that,args); 2225} 2226} 2227}; 2228if(depth){ 2229process(); 2230}else{ 2231if(jQuery.Deferred.getErrorHook){ 2232process.error=jQuery.Deferred.getErrorHook(); 2233}else if(jQuery.Deferred.getStackHook){ 2234process.error=jQuery.Deferred.getStackHook(); 2235} 2236window.setTimeout(process); 2237} 2238}; 2239} 2240return jQuery.Deferred(function(newDefer){ 2241tuples[0][3].add( 2242resolve( 22430, 2244newDefer, 2245isFunction(onProgress)? 2246onProgress: 2247Identity, 2248newDefer.notifyWith 2249) 2250); 2251tuples[1][3].add( 2252resolve( 22530, 2254newDefer, 2255isFunction(onFulfilled)? 2256onFulfilled: 2257Identity 2258) 2259); 2260tuples[2][3].add( 2261resolve( 22620, 2263newDefer, 2264isFunction(onRejected)? 2265onRejected: 2266Thrower 2267) 2268); 2269}).promise(); 2270}, 2271promise:function(obj){ 2272return obj!=null?jQuery.extend(obj,promise):promise; 2273} 2274}, 2275deferred={}; 2276jQuery.each(tuples,function(i,tuple){ 2277var list=tuple[2], 2278stateString=tuple[5]; 2279promise[tuple[1]]=list.add; 2280if(stateString){ 2281list.add( 2282function(){ 2283state=stateString; 2284}, 2285tuples[3-i][2].disable, 2286tuples[3-i][3].disable, 2287tuples[0][2].lock, 2288tuples[0][3].lock 2289); 2290} 2291list.add(tuple[3].fire); 2292deferred[tuple[0]]=function(){ 2293deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments); 2294return this; 2295}; 2296deferred[tuple[0]+"With"]=list.fireWith; 2297}); 2298promise.promise(deferred); 2299if(func){ 2300func.call(deferred,deferred); 2301} 2302return deferred; 2303}, 2304when:function(singleValue){ 2305var 2306remaining=arguments.length, 2307i=remaining, 2308resolveContexts=Array(i), 2309resolveValues=slice.call(arguments), 2310primary=jQuery.Deferred(), 2311updateFunc=function(i){ 2312return function(value){ 2313resolveContexts[i]=this; 2314resolveValues[i]=arguments.length>1?slice.call(arguments):value; 2315if(!(--remaining)){ 2316primary.resolveWith(resolveContexts,resolveValues); 2317} 2318}; 2319}; 2320if(remaining<=1){ 2321adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject, 2322!remaining); 2323if(primary.state()==="pending"|| 2324isFunction(resolveValues[i]&&resolveValues[i].then)){ 2325return primary.then(); 2326} 2327} 2328while(i--){ 2329adoptValue(resolveValues[i],updateFunc(i),primary.reject); 2330} 2331return primary.promise(); 2332} 2333}); 2334var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/; 2335jQuery.Deferred.exceptionHook=function(error,asyncError){ 2336if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){ 2337window.console.warn("jQuery.Deferred exception: "+error.message, 2338error.stack,asyncError); 2339} 2340}; 2341jQuery.readyException=function(error){ 2342window.setTimeout(function(){ 2343throw error; 2344}); 2345}; 2346var readyList=jQuery.Deferred(); 2347jQuery.fn.ready=function(fn){ 2348readyList 2349.then(fn) 2350.catch(function(error){ 2351jQuery.readyException(error); 2352}); 2353return this; 2354}; 2355jQuery.extend({ 2356isReady:false, 2357readyWait:1, 2358ready:function(wait){ 2359if(wait===true?--jQuery.readyWait:jQuery.isReady){ 2360return; 2361} 2362jQuery.isReady=true; 2363if(wait!==true&&--jQuery.readyWait>0){ 2364return; 2365} 2366readyList.resolveWith(document,[jQuery]); 2367} 2368}); 2369jQuery.ready.then=readyList.then; 2370function completed(){ 2371document.removeEventListener("DOMContentLoaded",completed); 2372window.removeEventListener("load",completed); 2373jQuery.ready(); 2374} 2375if(document.readyState==="complete"|| 2376(document.readyState!=="loading"&&!document.documentElement.doScroll)){ 2377window.setTimeout(jQuery.ready); 2378}else{ 2379document.addEventListener("DOMContentLoaded",completed); 2380window.addEventListener("load",completed); 2381} 2382var access=function(elems,fn,key,value,chainable,emptyGet,raw){ 2383var i=0, 2384len=elems.length, 2385bulk=key==null; 2386if(toType(key)==="object"){ 2387chainable=true; 2388for(i in key){ 2389access(elems,fn,i,key[i],true,emptyGet,raw); 2390} 2391}else if(value!==undefined){ 2392chainable=true; 2393if(!isFunction(value)){ 2394raw=true; 2395} 2396if(bulk){ 2397if(raw){ 2398fn.call(elems,value); 2399fn=null; 2400}else{ 2401bulk=fn; 2402fn=function(elem,_key,value){ 2403return bulk.call(jQuery(elem),value); 2404}; 2405} 2406} 2407if(fn){ 2408for(;i<len;i++){ 2409fn( 2410elems[i],key,raw? 2411value: 2412value.call(elems[i],i,fn(elems[i],key)) 2413); 2414} 2415} 2416} 2417if(chainable){ 2418return elems; 2419} 2420if(bulk){ 2421return fn.call(elems); 2422} 2423return len?fn(elems[0],key):emptyGet; 2424}; 2425var rmsPrefix=/^-ms-/, 2426rdashAlpha=/-([a-z])/g; 2427function fcamelCase(_all,letter){ 2428return letter.toUpperCase(); 2429} 2430function camelCase(string){ 2431return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase); 2432} 2433var acceptData=function(owner){ 2434return owner.nodeType===1||owner.nodeType===9||!(+owner.nodeType); 2435}; 2436function Data(){ 2437this.expando=jQuery.expando+Data.uid++; 2438} 2439Data.uid=1; 2440Data.prototype={ 2441cache:function(owner){ 2442var value=owner[this.expando]; 2443if(!value){ 2444value={}; 2445if(acceptData(owner)){ 2446if(owner.nodeType){ 2447owner[this.expando]=value; 2448}else{ 2449Object.defineProperty(owner,this.expando,{ 2450value:value, 2451configurable:true 2452}); 2453} 2454} 2455} 2456return value; 2457}, 2458set:function(owner,data,value){ 2459var prop, 2460cache=this.cache(owner); 2461if(typeof data==="string"){ 2462cache[camelCase(data)]=value; 2463}else{ 2464for(prop in data){ 2465cache[camelCase(prop)]=data[prop]; 2466} 2467} 2468return cache; 2469}, 2470get:function(owner,key){ 2471return key===undefined? 2472this.cache(owner): 2473owner[this.expando]&&owner[this.expando][camelCase(key)]; 2474}, 2475access:function(owner,key,value){ 2476if(key===undefined|| 2477((key&&typeof key==="string")&&value===undefined)){ 2478return this.get(owner,key); 2479} 2480this.set(owner,key,value); 2481return value!==undefined?value:key; 2482}, 2483remove:function(owner,key){ 2484var i, 2485cache=owner[this.expando]; 2486if(cache===undefined){ 2487return; 2488} 2489if(key!==undefined){ 2490if(Array.isArray(key)){ 2491key=key.map(camelCase); 2492}else{ 2493key=camelCase(key); 2494key=key in cache? 2495[key]: 2496(key.match(rnothtmlwhite)||[]); 2497} 2498i=key.length; 2499while(i--){ 2500delete cache[key[i]]; 2501} 2502} 2503if(key===undefined||jQuery.isEmptyObject(cache)){ 2504if(owner.nodeType){ 2505owner[this.expando]=undefined; 2506}else{ 2507delete owner[this.expando]; 2508} 2509} 2510}, 2511hasData:function(owner){ 2512var cache=owner[this.expando]; 2513return cache!==undefined&&!jQuery.isEmptyObject(cache); 2514} 2515}; 2516var dataPriv=new Data(); 2517var dataUser=new Data(); 2518var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/, 2519rmultiDash=/[A-Z]/g; 2520function getData(data){ 2521if(data==="true"){ 2522return true; 2523} 2524if(data==="false"){ 2525return false; 2526} 2527if(data==="null"){ 2528return null; 2529} 2530if(data===+data+""){ 2531return+data; 2532} 2533if(rbrace.test(data)){ 2534return JSON.parse(data); 2535} 2536return data; 2537} 2538function dataAttr(elem,key,data){ 2539var name; 2540if(data===undefined&&elem.nodeType===1){ 2541name="data-"+key.replace(rmultiDash,"-$&").toLowerCase(); 2542data=elem.getAttribute(name); 2543if(typeof data==="string"){ 2544try{ 2545data=getData(data); 2546}catch(e){} 2547dataUser.set(elem,key,data); 2548}else{ 2549data=undefined; 2550} 2551} 2552return data; 2553} 2554jQuery.extend({ 2555hasData:function(elem){ 2556return dataUser.hasData(elem)||dataPriv.hasData(elem); 2557}, 2558data:function(elem,name,data){ 2559return dataUser.access(elem,name,data); 2560}, 2561removeData:function(elem,name){ 2562dataUser.remove(elem,name); 2563}, 2564_data:function(elem,name,data){ 2565return dataPriv.access(elem,name,data); 2566}, 2567_removeData:function(elem,name){ 2568dataPriv.remove(elem,name); 2569} 2570}); 2571jQuery.fn.extend({ 2572data:function(key,value){ 2573var i,name,data, 2574elem=this[0], 2575attrs=elem&&elem.attributes; 2576if(key===undefined){ 2577if(this.length){ 2578data=dataUser.get(elem); 2579if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){ 2580i=attrs.length; 2581while(i--){ 2582if(attrs[i]){ 2583name=attrs[i].name; 2584if(name.indexOf("data-")===0){ 2585name=camelCase(name.slice(5)); 2586dataAttr(elem,name,data[name]); 2587} 2588} 2589} 2590dataPriv.set(elem,"hasDataAttrs",true); 2591} 2592} 2593return data; 2594} 2595if(typeof key==="object"){ 2596return this.each(function(){ 2597dataUser.set(this,key); 2598}); 2599} 2600return access(this,function(value){ 2601var data; 2602if(elem&&value===undefined){ 2603data=dataUser.get(elem,key); 2604if(data!==undefined){ 2605return data; 2606} 2607data=dataAttr(elem,key); 2608if(data!==undefined){ 2609return data; 2610} 2611return; 2612} 2613this.each(function(){ 2614dataUser.set(this,key,value); 2615}); 2616},null,value,arguments.length>1,null,true); 2617}, 2618removeData:function(key){ 2619return this.each(function(){ 2620dataUser.remove(this,key); 2621}); 2622} 2623}); 2624jQuery.extend({ 2625queue:function(elem,type,data){ 2626var queue; 2627if(elem){ 2628type=(type||"fx")+"queue"; 2629queue=dataPriv.get(elem,type); 2630if(data){ 2631if(!queue||Array.isArray(data)){ 2632queue=dataPriv.access(elem,type,jQuery.makeArray(data)); 2633}else{ 2634queue.push(data); 2635} 2636} 2637return queue||[]; 2638} 2639}, 2640dequeue:function(elem,type){ 2641type=type||"fx"; 2642var queue=jQuery.queue(elem,type), 2643startLength=queue.length, 2644fn=queue.shift(), 2645hooks=jQuery._queueHooks(elem,type), 2646next=function(){ 2647jQuery.dequeue(elem,type); 2648}; 2649if(fn==="inprogress"){ 2650fn=queue.shift(); 2651startLength--; 2652} 2653if(fn){ 2654if(type==="fx"){ 2655queue.unshift("inprogress"); 2656} 2657delete hooks.stop; 2658fn.call(elem,next,hooks); 2659} 2660if(!startLength&&hooks){ 2661hooks.empty.fire(); 2662} 2663}, 2664_queueHooks:function(elem,type){ 2665var key=type+"queueHooks"; 2666return dataPriv.get(elem,key)||dataPriv.access(elem,key,{ 2667empty:jQuery.Callbacks("once memory").add(function(){ 2668dataPriv.remove(elem,[type+"queue",key]); 2669}) 2670}); 2671} 2672}); 2673jQuery.fn.extend({ 2674queue:function(type,data){ 2675var setter=2; 2676if(typeof type!=="string"){ 2677data=type; 2678type="fx"; 2679setter--; 2680} 2681if(arguments.length<setter){ 2682return jQuery.queue(this[0],type); 2683} 2684return data===undefined? 2685this: 2686this.each(function(){ 2687var queue=jQuery.queue(this,type,data); 2688jQuery._queueHooks(this,type); 2689if(type==="fx"&&queue[0]!=="inprogress"){ 2690jQuery.dequeue(this,type); 2691} 2692}); 2693}, 2694dequeue:function(type){ 2695return this.each(function(){ 2696jQuery.dequeue(this,type); 2697}); 2698}, 2699clearQueue:function(type){ 2700return this.queue(type||"fx",[]); 2701}, 2702promise:function(type,obj){ 2703var tmp, 2704count=1, 2705defer=jQuery.Deferred(), 2706elements=this, 2707i=this.length, 2708resolve=function(){ 2709if(!(--count)){ 2710defer.resolveWith(elements,[elements]); 2711} 2712}; 2713if(typeof type!=="string"){ 2714obj=type; 2715type=undefined; 2716} 2717type=type||"fx"; 2718while(i--){ 2719tmp=dataPriv.get(elements[i],type+"queueHooks"); 2720if(tmp&&tmp.empty){ 2721count++; 2722tmp.empty.add(resolve); 2723} 2724} 2725resolve(); 2726return defer.promise(obj); 2727} 2728}); 2729var pnum=(/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/).source; 2730var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i"); 2731var cssExpand=["Top","Right","Bottom","Left"]; 2732var documentElement=document.documentElement; 2733var isAttached=function(elem){ 2734return jQuery.contains(elem.ownerDocument,elem); 2735}, 2736composed={composed:true}; 2737if(documentElement.getRootNode){ 2738isAttached=function(elem){ 2739return jQuery.contains(elem.ownerDocument,elem)|| 2740elem.getRootNode(composed)===elem.ownerDocument; 2741}; 2742} 2743var isHiddenWithinTree=function(elem,el){ 2744elem=el||elem; 2745return elem.style.display==="none"|| 2746elem.style.display===""&& 2747isAttached(elem)&& 2748jQuery.css(elem,"display")==="none"; 2749}; 2750function adjustCSS(elem,prop,valueParts,tween){ 2751var adjusted,scale, 2752maxIterations=20, 2753currentValue=tween? 2754function(){ 2755return tween.cur(); 2756}: 2757function(){ 2758return jQuery.css(elem,prop,""); 2759}, 2760initial=currentValue(), 2761unit=valueParts&&valueParts[3]||(jQuery.cssNumber[prop]?"":"px"), 2762initialInUnit=elem.nodeType&& 2763(jQuery.cssNumber[prop]||unit!=="px"&&+initial)&& 2764rcssNum.exec(jQuery.css(elem,prop)); 2765if(initialInUnit&&initialInUnit[3]!==unit){ 2766initial=initial/2; 2767unit=unit||initialInUnit[3]; 2768initialInUnit=+initial||1; 2769while(maxIterations--){ 2770jQuery.style(elem,prop,initialInUnit+unit); 2771if((1-scale)*(1-(scale=currentValue()/initial||0.5))<=0){ 2772maxIterations=0; 2773} 2774initialInUnit=initialInUnit/scale; 2775} 2776initialInUnit=initialInUnit*2; 2777jQuery.style(elem,prop,initialInUnit+unit); 2778valueParts=valueParts||[]; 2779} 2780if(valueParts){ 2781initialInUnit=+initialInUnit||+initial||0; 2782adjusted=valueParts[1]? 2783initialInUnit+(valueParts[1]+1)*valueParts[2]: 2784+valueParts[2]; 2785if(tween){ 2786tween.unit=unit; 2787tween.start=initialInUnit; 2788tween.end=adjusted; 2789} 2790} 2791return adjusted; 2792} 2793var defaultDisplayMap={}; 2794function getDefaultDisplay(elem){ 2795var temp, 2796doc=elem.ownerDocument, 2797nodeName=elem.nodeName, 2798display=defaultDisplayMap[nodeName]; 2799if(display){ 2800return display; 2801} 2802temp=doc.body.appendChild(doc.createElement(nodeName)); 2803display=jQuery.css(temp,"display"); 2804temp.parentNode.removeChild(temp); 2805if(display==="none"){ 2806display="block"; 2807} 2808defaultDisplayMap[nodeName]=display; 2809return display; 2810} 2811function showHide(elements,show){ 2812var display,elem, 2813values=[], 2814index=0, 2815length=elements.length; 2816for(;index<length;index++){ 2817elem=elements[index]; 2818if(!elem.style){ 2819continue; 2820} 2821display=elem.style.display; 2822if(show){ 2823if(display==="none"){ 2824values[index]=dataPriv.get(elem,"display")||null; 2825if(!values[index]){ 2826elem.style.display=""; 2827} 2828} 2829if(elem.style.display===""&&isHiddenWithinTree(elem)){ 2830values[index]=getDefaultDisplay(elem); 2831} 2832}else{ 2833if(display!=="none"){ 2834values[index]="none"; 2835dataPriv.set(elem,"display",display); 2836} 2837} 2838} 2839for(index=0;index<length;index++){ 2840if(values[index]!=null){ 2841elements[index].style.display=values[index]; 2842} 2843} 2844return elements; 2845} 2846jQuery.fn.extend({ 2847show:function(){ 2848return showHide(this,true); 2849}, 2850hide:function(){ 2851return showHide(this); 2852}, 2853toggle:function(state){ 2854if(typeof state==="boolean"){ 2855return state?this.show():this.hide(); 2856} 2857return this.each(function(){ 2858if(isHiddenWithinTree(this)){ 2859jQuery(this).show(); 2860}else{ 2861jQuery(this).hide(); 2862} 2863}); 2864} 2865}); 2866var rcheckableType=(/^(?:checkbox|radio)$/i); 2867var rtagName=(/<([a-z][^\/\0>\x20\t\r\n\f]*)/i); 2868var rscriptType=(/^$|^module$|\/(?:java|ecma)script/i); 2869(function(){ 2870var fragment=document.createDocumentFragment(), 2871div=fragment.appendChild(document.createElement("div")), 2872input=document.createElement("input"); 2873input.setAttribute("type","radio"); 2874input.setAttribute("checked","checked"); 2875input.setAttribute("name","t"); 2876div.appendChild(input); 2877support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked; 2878div.innerHTML="<textarea>x</textarea>"; 2879support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue; 2880div.innerHTML="<option></option>"; 2881support.option=!!div.lastChild; 2882})(); 2883var wrapMap={ 2884thead:[1,"<table>","</table>"], 2885col:[2,"<table><colgroup>","</colgroup></table>"], 2886tr:[2,"<table><tbody>","</tbody></table>"], 2887td:[3,"<table><tbody><tr>","</tr></tbody></table>"], 2888_default:[0,"",""] 2889}; 2890wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead; 2891wrapMap.th=wrapMap.td; 2892if(!support.option){ 2893wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"]; 2894} 2895function getAll(context,tag){ 2896var ret; 2897if(typeof context.getElementsByTagName!=="undefined"){ 2898ret=context.getElementsByTagName(tag||"*"); 2899}else if(typeof context.querySelectorAll!=="undefined"){ 2900ret=context.querySelectorAll(tag||"*"); 2901}else{ 2902ret=[]; 2903} 2904if(tag===undefined||tag&&nodeName(context,tag)){ 2905return jQuery.merge([context],ret); 2906} 2907return ret; 2908} 2909function setGlobalEval(elems,refElements){ 2910var i=0, 2911l=elems.length; 2912for(;i<l;i++){ 2913dataPriv.set( 2914elems[i], 2915"globalEval", 2916!refElements||dataPriv.get(refElements[i],"globalEval") 2917); 2918} 2919} 2920var rhtml=/<|&#?\w+;/; 2921function buildFragment(elems,context,scripts,selection,ignored){ 2922var elem,tmp,tag,wrap,attached,j, 2923fragment=context.createDocumentFragment(), 2924nodes=[], 2925i=0, 2926l=elems.length; 2927for(;i<l;i++){ 2928elem=elems[i]; 2929if(elem||elem===0){ 2930if(toType(elem)==="object"){ 2931jQuery.merge(nodes,elem.nodeType?[elem]:elem); 2932}else if(!rhtml.test(elem)){ 2933nodes.push(context.createTextNode(elem)); 2934}else{ 2935tmp=tmp||fragment.appendChild(context.createElement("div")); 2936tag=(rtagName.exec(elem)||["",""])[1].toLowerCase(); 2937wrap=wrapMap[tag]||wrapMap._default; 2938tmp.innerHTML=wrap[1]+jQuery.htmlPrefilter(elem)+wrap[2]; 2939j=wrap[0]; 2940while(j--){ 2941tmp=tmp.lastChild; 2942} 2943jQuery.merge(nodes,tmp.childNodes); 2944tmp=fragment.firstChild; 2945tmp.textContent=""; 2946} 2947} 2948} 2949fragment.textContent=""; 2950i=0; 2951while((elem=nodes[i++])){ 2952if(selection&&jQuery.inArray(elem,selection)>-1){ 2953if(ignored){ 2954ignored.push(elem); 2955} 2956continue; 2957} 2958attached=isAttached(elem); 2959tmp=getAll(fragment.appendChild(elem),"script"); 2960if(attached){ 2961setGlobalEval(tmp); 2962} 2963if(scripts){ 2964j=0; 2965while((elem=tmp[j++])){ 2966if(rscriptType.test(elem.type||"")){ 2967scripts.push(elem); 2968} 2969} 2970} 2971} 2972return fragment; 2973} 2974var rtypenamespace=/^([^.]*)(?:\.(.+)|)/; 2975function returnTrue(){ 2976return true; 2977} 2978function returnFalse(){ 2979return false; 2980} 2981function on(elem,types,selector,data,fn,one){ 2982var origFn,type; 2983if(typeof types==="object"){ 2984if(typeof selector!=="string"){ 2985data=data||selector; 2986selector=undefined; 2987} 2988for(type in types){ 2989on(elem,type,selector,data,types[type],one); 2990} 2991return elem; 2992} 2993if(data==null&&fn==null){ 2994fn=selector; 2995data=selector=undefined; 2996}else if(fn==null){ 2997if(typeof selector==="string"){ 2998fn=data; 2999data=undefined; 3000}else{ 3001fn=data; 3002data=selector; 3003selector=undefined; 3004} 3005} 3006if(fn===false){ 3007fn=returnFalse; 3008}else if(!fn){ 3009return elem; 3010} 3011if(one===1){ 3012origFn=fn; 3013fn=function(event){ 3014jQuery().off(event); 3015return origFn.apply(this,arguments); 3016}; 3017fn.guid=origFn.guid||(origFn.guid=jQuery.guid++); 3018} 3019return elem.each(function(){ 3020jQuery.event.add(this,types,fn,data,selector); 3021}); 3022} 3023jQuery.event={ 3024global:{}, 3025add:function(elem,types,handler,data,selector){ 3026var handleObjIn,eventHandle,tmp, 3027events,t,handleObj, 3028special,handlers,type,namespaces,origType, 3029elemData=dataPriv.get(elem); 3030if(!acceptData(elem)){ 3031return; 3032} 3033if(handler.handler){ 3034handleObjIn=handler; 3035handler=handleObjIn.handler; 3036selector=handleObjIn.selector; 3037} 3038if(selector){ 3039jQuery.find.matchesSelector(documentElement,selector); 3040} 3041if(!handler.guid){ 3042handler.guid=jQuery.guid++; 3043} 3044if(!(events=elemData.events)){ 3045events=elemData.events=Object.create(null); 3046} 3047if(!(eventHandle=elemData.handle)){ 3048eventHandle=elemData.handle=function(e){ 3049return typeof jQuery!=="undefined"&&jQuery.event.triggered!==e.type? 3050jQuery.event.dispatch.apply(elem,arguments):undefined; 3051}; 3052} 3053types=(types||"").match(rnothtmlwhite)||[""]; 3054t=types.length; 3055while(t--){ 3056tmp=rtypenamespace.exec(types[t])||[]; 3057type=origType=tmp[1]; 3058namespaces=(tmp[2]||"").split(".").sort(); 3059if(!type){ 3060continue; 3061} 3062special=jQuery.event.special[type]||{}; 3063type=(selector?special.delegateType:special.bindType)||type; 3064special=jQuery.event.special[type]||{}; 3065handleObj=jQuery.extend({ 3066type:type, 3067origType:origType, 3068data:data, 3069handler:handler, 3070guid:handler.guid, 3071selector:selector, 3072needsContext:selector&&jQuery.expr.match.needsContext.test(selector), 3073namespace:namespaces.join(".") 3074},handleObjIn); 3075if(!(handlers=events[type])){ 3076handlers=events[type]=[]; 3077handlers.delegateCount=0; 3078if(!special.setup|| 3079special.setup.call(elem,data,namespaces,eventHandle)===false){ 3080if(elem.addEventListener){ 3081elem.addEventListener(type,eventHandle); 3082} 3083} 3084} 3085if(special.add){ 3086special.add.call(elem,handleObj); 3087if(!handleObj.handler.guid){ 3088handleObj.handler.guid=handler.guid; 3089} 3090} 3091if(selector){ 3092handlers.splice(handlers.delegateCount++,0,handleObj); 3093}else{ 3094handlers.push(handleObj); 3095} 3096jQuery.event.global[type]=true; 3097} 3098}, 3099remove:function(elem,types,handler,selector,mappedTypes){ 3100var j,origCount,tmp, 3101events,t,handleObj, 3102special,handlers,type,namespaces,origType, 3103elemData=dataPriv.hasData(elem)&&dataPriv.get(elem); 3104if(!elemData||!(events=elemData.events)){ 3105return; 3106} 3107types=(types||"").match(rnothtmlwhite)||[""]; 3108t=types.length; 3109while(t--){ 3110tmp=rtypenamespace.exec(types[t])||[]; 3111type=origType=tmp[1]; 3112namespaces=(tmp[2]||"").split(".").sort(); 3113if(!type){ 3114for(type in events){ 3115jQuery.event.remove(elem,type+types[t],handler,selector,true); 3116} 3117continue; 3118} 3119special=jQuery.event.special[type]||{}; 3120type=(selector?special.delegateType:special.bindType)||type; 3121handlers=events[type]||[]; 3122tmp=tmp[2]&& 3123new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"); 3124origCount=j=handlers.length; 3125while(j--){ 3126handleObj=handlers[j]; 3127if((mappedTypes||origType===handleObj.origType)&& 3128(!handler||handler.guid===handleObj.guid)&& 3129(!tmp||tmp.test(handleObj.namespace))&& 3130(!selector||selector===handleObj.selector|| 3131selector==="**"&&handleObj.selector)){ 3132handlers.splice(j,1); 3133if(handleObj.selector){ 3134handlers.delegateCount--; 3135} 3136if(special.remove){ 3137special.remove.call(elem,handleObj); 3138} 3139} 3140} 3141if(origCount&&!handlers.length){ 3142if(!special.teardown|| 3143special.teardown.call(elem,namespaces,elemData.handle)===false){ 3144jQuery.removeEvent(elem,type,elemData.handle); 3145} 3146delete events[type]; 3147} 3148} 3149if(jQuery.isEmptyObject(events)){ 3150dataPriv.remove(elem,"handle events"); 3151} 3152}, 3153dispatch:function(nativeEvent){ 3154var i,j,ret,matched,handleObj,handlerQueue, 3155args=new Array(arguments.length), 3156event=jQuery.event.fix(nativeEvent), 3157handlers=( 3158dataPriv.get(this,"events")||Object.create(null) 3159)[event.type]||[], 3160special=jQuery.event.special[event.type]||{}; 3161args[0]=event; 3162for(i=1;i<arguments.length;i++){ 3163args[i]=arguments[i]; 3164} 3165event.delegateTarget=this; 3166if(special.preDispatch&&special.preDispatch.call(this,event)===false){ 3167return; 3168} 3169handlerQueue=jQuery.event.handlers.call(this,event,handlers); 3170i=0; 3171while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){ 3172event.currentTarget=matched.elem; 3173j=0; 3174while((handleObj=matched.handlers[j++])&& 3175!event.isImmediatePropagationStopped()){ 3176if(!event.rnamespace||handleObj.namespace===false|| 3177event.rnamespace.test(handleObj.namespace)){ 3178event.handleObj=handleObj; 3179event.data=handleObj.data; 3180ret=((jQuery.event.special[handleObj.origType]||{}).handle|| 3181handleObj.handler).apply(matched.elem,args); 3182if(ret!==undefined){ 3183if((event.result=ret)===false){ 3184event.preventDefault(); 3185event.stopPropagation(); 3186} 3187} 3188} 3189} 3190} 3191if(special.postDispatch){ 3192special.postDispatch.call(this,event); 3193} 3194return event.result; 3195}, 3196handlers:function(event,handlers){ 3197var i,handleObj,sel,matchedHandlers,matchedSelectors, 3198handlerQueue=[], 3199delegateCount=handlers.delegateCount, 3200cur=event.target; 3201if(delegateCount&& 3202cur.nodeType&& 3203!(event.type==="click"&&event.button>=1)){ 3204for(;cur!==this;cur=cur.parentNode||this){ 3205if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){ 3206matchedHandlers=[]; 3207matchedSelectors={}; 3208for(i=0;i<delegateCount;i++){ 3209handleObj=handlers[i]; 3210sel=handleObj.selector+" "; 3211if(matchedSelectors[sel]===undefined){ 3212matchedSelectors[sel]=handleObj.needsContext? 3213jQuery(sel,this).index(cur)>-1: 3214jQuery.find(sel,this,null,[cur]).length; 3215} 3216if(matchedSelectors[sel]){ 3217matchedHandlers.push(handleObj); 3218} 3219} 3220if(matchedHandlers.length){ 3221handlerQueue.push({elem:cur,handlers:matchedHandlers}); 3222} 3223} 3224} 3225} 3226cur=this; 3227if(delegateCount<handlers.length){ 3228handlerQueue.push({elem:cur,handlers:handlers.slice(delegateCount)}); 3229} 3230return handlerQueue; 3231}, 3232addProp:function(name,hook){ 3233Object.defineProperty(jQuery.Event.prototype,name,{ 3234enumerable:true, 3235configurable:true, 3236get:isFunction(hook)? 3237function(){ 3238if(this.originalEvent){ 3239return hook(this.originalEvent); 3240} 3241}: 3242function(){ 3243if(this.originalEvent){ 3244return this.originalEvent[name]; 3245} 3246}, 3247set:function(value){ 3248Object.defineProperty(this,name,{ 3249enumerable:true, 3250configurable:true, 3251writable:true, 3252value:value 3253}); 3254} 3255}); 3256}, 3257fix:function(originalEvent){ 3258return originalEvent[jQuery.expando]? 3259originalEvent: 3260new jQuery.Event(originalEvent); 3261}, 3262special:{ 3263load:{ 3264noBubble:true 3265}, 3266click:{ 3267setup:function(data){ 3268var el=this||data; 3269if(rcheckableType.test(el.type)&& 3270el.click&&nodeName(el,"input")){ 3271leverageNative(el,"click",true); 3272} 3273return false; 3274}, 3275trigger:function(data){ 3276var el=this||data; 3277if(rcheckableType.test(el.type)&& 3278el.click&&nodeName(el,"input")){ 3279leverageNative(el,"click"); 3280} 3281return true; 3282}, 3283_default:function(event){ 3284var target=event.target; 3285return rcheckableType.test(target.type)&& 3286target.click&&nodeName(target,"input")&& 3287dataPriv.get(target,"click")|| 3288nodeName(target,"a"); 3289} 3290}, 3291beforeunload:{ 3292postDispatch:function(event){ 3293if(event.result!==undefined&&event.originalEvent){ 3294event.originalEvent.returnValue=event.result; 3295} 3296} 3297} 3298} 3299}; 3300function leverageNative(el,type,isSetup){ 3301if(!isSetup){ 3302if(dataPriv.get(el,type)===undefined){ 3303jQuery.event.add(el,type,returnTrue); 3304} 3305return; 3306} 3307dataPriv.set(el,type,false); 3308jQuery.event.add(el,type,{ 3309namespace:false, 3310handler:function(event){ 3311var result, 3312saved=dataPriv.get(this,type); 3313if((event.isTrigger&1)&&this[type]){ 3314if(!saved){ 3315saved=slice.call(arguments); 3316dataPriv.set(this,type,saved); 3317this[type](); 3318result=dataPriv.get(this,type); 3319dataPriv.set(this,type,false); 3320if(saved!==result){ 3321event.stopImmediatePropagation(); 3322event.preventDefault(); 3323return result; 3324} 3325}else if((jQuery.event.special[type]||{}).delegateType){ 3326event.stopPropagation(); 3327} 3328}else if(saved){ 3329dataPriv.set(this,type,jQuery.event.trigger( 3330saved[0], 3331saved.slice(1), 3332this 3333)); 3334event.stopPropagation(); 3335event.isImmediatePropagationStopped=returnTrue; 3336} 3337} 3338}); 3339} 3340jQuery.removeEvent=function(elem,type,handle){ 3341if(elem.removeEventListener){ 3342elem.removeEventListener(type,handle); 3343} 3344}; 3345jQuery.Event=function(src,props){ 3346if(!(this instanceof jQuery.Event)){ 3347return new jQuery.Event(src,props); 3348} 3349if(src&&src.type){ 3350this.originalEvent=src; 3351this.type=src.type; 3352this.isDefaultPrevented=src.defaultPrevented|| 3353src.defaultPrevented===undefined&& 3354src.returnValue===false? 3355returnTrue: 3356returnFalse; 3357this.target=(src.target&&src.target.nodeType===3)? 3358src.target.parentNode: 3359src.target; 3360this.currentTarget=src.currentTarget; 3361this.relatedTarget=src.relatedTarget; 3362}else{ 3363this.type=src; 3364} 3365if(props){ 3366jQuery.extend(this,props); 3367} 3368this.timeStamp=src&&src.timeStamp||Date.now(); 3369this[jQuery.expando]=true; 3370}; 3371jQuery.Event.prototype={ 3372constructor:jQuery.Event, 3373isDefaultPrevented:returnFalse, 3374isPropagationStopped:returnFalse, 3375isImmediatePropagationStopped:returnFalse, 3376isSimulated:false, 3377preventDefault:function(){ 3378var e=this.originalEvent; 3379this.isDefaultPrevented=returnTrue; 3380if(e&&!this.isSimulated){ 3381e.preventDefault(); 3382} 3383}, 3384stopPropagation:function(){ 3385var e=this.originalEvent; 3386this.isPropagationStopped=returnTrue; 3387if(e&&!this.isSimulated){ 3388e.stopPropagation(); 3389} 3390}, 3391stopImmediatePropagation:function(){ 3392var e=this.originalEvent; 3393this.isImmediatePropagationStopped=returnTrue; 3394if(e&&!this.isSimulated){ 3395e.stopImmediatePropagation(); 3396} 3397this.stopPropagation(); 3398} 3399}; 3400jQuery.each({ 3401altKey:true, 3402bubbles:true, 3403cancelable:true, 3404changedTouches:true, 3405ctrlKey:true, 3406detail:true, 3407eventPhase:true, 3408metaKey:true, 3409pageX:true, 3410pageY:true, 3411shiftKey:true, 3412view:true, 3413"char":true, 3414code:true, 3415charCode:true, 3416key:true, 3417keyCode:true, 3418button:true, 3419buttons:true, 3420clientX:true, 3421clientY:true, 3422offsetX:true, 3423offsetY:true, 3424pointerId:true, 3425pointerType:true, 3426screenX:true, 3427screenY:true, 3428targetTouches:true, 3429toElement:true, 3430touches:true, 3431which:true 3432},jQuery.event.addProp); 3433jQuery.each({focus:"focusin",blur:"focusout"},function(type,delegateType){ 3434function focusMappedHandler(nativeEvent){ 3435if(document.documentMode){ 3436var handle=dataPriv.get(this,"handle"), 3437event=jQuery.event.fix(nativeEvent); 3438event.type=nativeEvent.type==="focusin"?"focus":"blur"; 3439event.isSimulated=true; 3440handle(nativeEvent); 3441if(event.target===event.currentTarget){ 3442handle(event); 3443} 3444}else{ 3445jQuery.event.simulate(delegateType,nativeEvent.target, 3446jQuery.event.fix(nativeEvent)); 3447} 3448} 3449jQuery.event.special[type]={ 3450setup:function(){ 3451var attaches; 3452leverageNative(this,type,true); 3453if(document.documentMode){ 3454attaches=dataPriv.get(this,delegateType); 3455if(!attaches){ 3456this.addEventListener(delegateType,focusMappedHandler); 3457} 3458dataPriv.set(this,delegateType,(attaches||0)+1); 3459}else{ 3460return false; 3461} 3462}, 3463trigger:function(){ 3464leverageNative(this,type); 3465return true; 3466}, 3467teardown:function(){ 3468var attaches; 3469if(document.documentMode){ 3470attaches=dataPriv.get(this,delegateType)-1; 3471if(!attaches){ 3472this.removeEventListener(delegateType,focusMappedHandler); 3473dataPriv.remove(this,delegateType); 3474}else{ 3475dataPriv.set(this,delegateType,attaches); 3476} 3477}else{ 3478return false; 3479} 3480}, 3481_default:function(event){ 3482return dataPriv.get(event.target,type); 3483}, 3484delegateType:delegateType 3485}; 3486jQuery.event.special[delegateType]={ 3487setup:function(){ 3488var doc=this.ownerDocument||this.document||this, 3489dataHolder=document.documentMode?this:doc, 3490attaches=dataPriv.get(dataHolder,delegateType); 3491if(!attaches){ 3492if(document.documentMode){ 3493this.addEventListener(delegateType,focusMappedHandler); 3494}else{ 3495doc.addEventListener(type,focusMappedHandler,true); 3496} 3497} 3498dataPriv.set(dataHolder,delegateType,(attaches||0)+1); 3499}, 3500teardown:function(){ 3501var doc=this.ownerDocument||this.document||this, 3502dataHolder=document.documentMode?this:doc, 3503attaches=dataPriv.get(dataHolder,delegateType)-1; 3504if(!attaches){ 3505if(document.documentMode){ 3506this.removeEventListener(delegateType,focusMappedHandler); 3507}else{ 3508doc.removeEventListener(type,focusMappedHandler,true); 3509} 3510dataPriv.remove(dataHolder,delegateType); 3511}else{ 3512dataPriv.set(dataHolder,delegateType,attaches); 3513} 3514} 3515}; 3516}); 3517jQuery.each({ 3518mouseenter:"mouseover", 3519mouseleave:"mouseout", 3520pointerenter:"pointerover", 3521pointerleave:"pointerout" 3522},function(orig,fix){ 3523jQuery.event.special[orig]={ 3524delegateType:fix, 3525bindType:fix, 3526handle:function(event){ 3527var ret, 3528target=this, 3529related=event.relatedTarget, 3530handleObj=event.handleObj; 3531if(!related||(related!==target&&!jQuery.contains(target,related))){ 3532event.type=handleObj.origType; 3533ret=handleObj.handler.apply(this,arguments); 3534event.type=fix; 3535} 3536return ret; 3537} 3538}; 3539}); 3540jQuery.fn.extend({ 3541on:function(types,selector,data,fn){ 3542return on(this,types,selector,data,fn); 3543}, 3544one:function(types,selector,data,fn){ 3545return on(this,types,selector,data,fn,1); 3546}, 3547off:function(types,selector,fn){ 3548var handleObj,type; 3549if(types&&types.preventDefault&&types.handleObj){ 3550handleObj=types.handleObj; 3551jQuery(types.delegateTarget).off( 3552handleObj.namespace? 3553handleObj.origType+"."+handleObj.namespace: 3554handleObj.origType, 3555handleObj.selector, 3556handleObj.handler 3557); 3558return this; 3559} 3560if(typeof types==="object"){ 3561for(type in types){ 3562this.off(type,selector,types[type]); 3563} 3564return this; 3565} 3566if(selector===false||typeof selector==="function"){ 3567fn=selector; 3568selector=undefined; 3569} 3570if(fn===false){ 3571fn=returnFalse; 3572} 3573return this.each(function(){ 3574jQuery.event.remove(this,types,fn,selector); 3575}); 3576} 3577}); 3578var 3579rnoInnerhtml=/<script|<style|<link/i, 3580rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i, 3581rcleanScript=/^\s*<!\[CDATA\[|\]\]>\s*$/g; 3582function manipulationTarget(elem,content){ 3583if(nodeName(elem,"table")&& 3584nodeName(content.nodeType!==11?content:content.firstChild,"tr")){ 3585return jQuery(elem).children("tbody")[0]||elem; 3586} 3587return elem; 3588} 3589function disableScript(elem){ 3590elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type; 3591return elem; 3592} 3593function restoreScript(elem){ 3594if((elem.type||"").slice(0,5)==="true/"){ 3595elem.type=elem.type.slice(5); 3596}else{ 3597elem.removeAttribute("type"); 3598} 3599return elem; 3600} 3601function cloneCopyEvent(src,dest){ 3602var i,l,type,pdataOld,udataOld,udataCur,events; 3603if(dest.nodeType!==1){ 3604return; 3605} 3606if(dataPriv.hasData(src)){ 3607pdataOld=dataPriv.get(src); 3608events=pdataOld.events; 3609if(events){ 3610dataPriv.remove(dest,"handle events"); 3611for(type in events){ 3612for(i=0,l=events[type].length;i<l;i++){ 3613jQuery.event.add(dest,type,events[type][i]); 3614} 3615} 3616} 3617} 3618if(dataUser.hasData(src)){ 3619udataOld=dataUser.access(src); 3620udataCur=jQuery.extend({},udataOld); 3621dataUser.set(dest,udataCur); 3622} 3623} 3624function fixInput(src,dest){ 3625var nodeName=dest.nodeName.toLowerCase(); 3626if(nodeName==="input"&&rcheckableType.test(src.type)){ 3627dest.checked=src.checked; 3628}else if(nodeName==="input"||nodeName==="textarea"){ 3629dest.defaultValue=src.defaultValue; 3630} 3631} 3632function domManip(collection,args,callback,ignored){ 3633args=flat(args); 3634var fragment,first,scripts,hasScripts,node,doc, 3635i=0, 3636l=collection.length, 3637iNoClone=l-1, 3638value=args[0], 3639valueIsFunction=isFunction(value); 3640if(valueIsFunction|| 3641(l>1&&typeof value==="string"&& 3642!support.checkClone&&rchecked.test(value))){ 3643return collection.each(function(index){ 3644var self=collection.eq(index); 3645if(valueIsFunction){ 3646args[0]=value.call(this,index,self.html()); 3647} 3648domManip(self,args,callback,ignored); 3649}); 3650} 3651if(l){ 3652fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored); 3653first=fragment.firstChild; 3654if(fragment.childNodes.length===1){ 3655fragment=first; 3656} 3657if(first||ignored){ 3658scripts=jQuery.map(getAll(fragment,"script"),disableScript); 3659hasScripts=scripts.length; 3660for(;i<l;i++){ 3661node=fragment; 3662if(i!==iNoClone){ 3663node=jQuery.clone(node,true,true); 3664if(hasScripts){ 3665jQuery.merge(scripts,getAll(node,"script")); 3666} 3667} 3668callback.call(collection[i],node,i); 3669} 3670if(hasScripts){ 3671doc=scripts[scripts.length-1].ownerDocument; 3672jQuery.map(scripts,restoreScript); 3673for(i=0;i<hasScripts;i++){ 3674node=scripts[i]; 3675if(rscriptType.test(node.type||"")&& 3676!dataPriv.access(node,"globalEval")&& 3677jQuery.contains(doc,node)){ 3678if(node.src&&(node.type||"").toLowerCase()!=="module"){ 3679if(jQuery._evalUrl&&!node.noModule){ 3680jQuery._evalUrl(node.src,{ 3681nonce:node.nonce||node.getAttribute("nonce") 3682},doc); 3683} 3684}else{ 3685DOMEval(node.textContent.replace(rcleanScript,""),node,doc); 3686} 3687} 3688} 3689} 3690} 3691} 3692return collection; 3693} 3694function remove(elem,selector,keepData){ 3695var node, 3696nodes=selector?jQuery.filter(selector,elem):elem, 3697i=0; 3698for(;(node=nodes[i])!=null;i++){ 3699if(!keepData&&node.nodeType===1){ 3700jQuery.cleanData(getAll(node)); 3701} 3702if(node.parentNode){ 3703if(keepData&&isAttached(node)){ 3704setGlobalEval(getAll(node,"script")); 3705} 3706node.parentNode.removeChild(node); 3707} 3708} 3709return elem; 3710} 3711jQuery.extend({ 3712htmlPrefilter:function(html){ 3713return html; 3714}, 3715clone:function(elem,dataAndEvents,deepDataAndEvents){ 3716var i,l,srcElements,destElements, 3717clone=elem.cloneNode(true), 3718inPage=isAttached(elem); 3719if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&& 3720!jQuery.isXMLDoc(elem)){ 3721destElements=getAll(clone); 3722srcElements=getAll(elem); 3723for(i=0,l=srcElements.length;i<l;i++){ 3724fixInput(srcElements[i],destElements[i]); 3725} 3726} 3727if(dataAndEvents){ 3728if(deepDataAndEvents){ 3729srcElements=srcElements||getAll(elem); 3730destElements=destElements||getAll(clone); 3731for(i=0,l=srcElements.length;i<l;i++){ 3732cloneCopyEvent(srcElements[i],destElements[i]); 3733} 3734}else{ 3735cloneCopyEvent(elem,clone); 3736} 3737} 3738destElements=getAll(clone,"script"); 3739if(destElements.length>0){ 3740setGlobalEval(destElements,!inPage&&getAll(elem,"script")); 3741} 3742return clone; 3743}, 3744cleanData:function(elems){ 3745var data,elem,type, 3746special=jQuery.event.special, 3747i=0; 3748for(;(elem=elems[i])!==undefined;i++){ 3749if(acceptData(elem)){ 3750if((data=elem[dataPriv.expando])){ 3751if(data.events){ 3752for(type in data.events){ 3753if(special[type]){ 3754jQuery.event.remove(elem,type); 3755}else{ 3756jQuery.removeEvent(elem,type,data.handle); 3757} 3758} 3759} 3760elem[dataPriv.expando]=undefined; 3761} 3762if(elem[dataUser.expando]){ 3763elem[dataUser.expando]=undefined; 3764} 3765} 3766} 3767} 3768}); 3769jQuery.fn.extend({ 3770detach:function(selector){ 3771return remove(this,selector,true); 3772}, 3773remove:function(selector){ 3774return remove(this,selector); 3775}, 3776text:function(value){ 3777return access(this,function(value){ 3778return value===undefined? 3779jQuery.text(this): 3780this.empty().each(function(){ 3781if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 3782this.textContent=value; 3783} 3784}); 3785},null,value,arguments.length); 3786}, 3787append:function(){ 3788return domManip(this,arguments,function(elem){ 3789if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 3790var target=manipulationTarget(this,elem); 3791target.appendChild(elem); 3792} 3793}); 3794}, 3795prepend:function(){ 3796return domManip(this,arguments,function(elem){ 3797if(this.nodeType===1||this.nodeType===11||this.nodeType===9){ 3798var target=manipulationTarget(this,elem); 3799target.insertBefore(elem,target.firstChild); 3800} 3801}); 3802}, 3803before:function(){ 3804return domManip(this,arguments,function(elem){ 3805if(this.parentNode){ 3806this.parentNode.insertBefore(elem,this); 3807} 3808}); 3809}, 3810after:function(){ 3811return domManip(this,arguments,function(elem){ 3812if(this.parentNode){ 3813this.parentNode.insertBefore(elem,this.nextSibling); 3814} 3815}); 3816}, 3817empty:function(){ 3818var elem, 3819i=0; 3820for(;(elem=this[i])!=null;i++){ 3821if(elem.nodeType===1){ 3822jQuery.cleanData(getAll(elem,false)); 3823elem.textContent=""; 3824} 3825} 3826return this; 3827}, 3828clone:function(dataAndEvents,deepDataAndEvents){ 3829dataAndEvents=dataAndEvents==null?false:dataAndEvents; 3830deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents; 3831return this.map(function(){ 3832return jQuery.clone(this,dataAndEvents,deepDataAndEvents); 3833}); 3834}, 3835html:function(value){ 3836return access(this,function(value){ 3837var elem=this[0]||{}, 3838i=0, 3839l=this.length; 3840if(value===undefined&&elem.nodeType===1){ 3841return elem.innerHTML; 3842} 3843if(typeof value==="string"&&!rnoInnerhtml.test(value)&& 3844!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){ 3845value=jQuery.htmlPrefilter(value); 3846try{ 3847for(;i<l;i++){ 3848elem=this[i]||{}; 3849if(elem.nodeType===1){ 3850jQuery.cleanData(getAll(elem,false)); 3851elem.innerHTML=value; 3852} 3853} 3854elem=0; 3855}catch(e){} 3856} 3857if(elem){ 3858this.empty().append(value); 3859} 3860},null,value,arguments.length); 3861}, 3862replaceWith:function(){ 3863var ignored=[]; 3864return domManip(this,arguments,function(elem){ 3865var parent=this.parentNode; 3866if(jQuery.inArray(this,ignored)<0){ 3867jQuery.cleanData(getAll(this)); 3868if(parent){ 3869parent.replaceChild(elem,this); 3870} 3871} 3872},ignored); 3873} 3874}); 3875jQuery.each({ 3876appendTo:"append", 3877prependTo:"prepend", 3878insertBefore:"before", 3879insertAfter:"after", 3880replaceAll:"replaceWith" 3881},function(name,original){ 3882jQuery.fn[name]=function(selector){ 3883var elems, 3884ret=[], 3885insert=jQuery(selector), 3886last=insert.length-1, 3887i=0; 3888for(;i<=last;i++){ 3889elems=i===last?this:this.clone(true); 3890jQuery(insert[i])[original](elems); 3891push.apply(ret,elems.get()); 3892} 3893return this.pushStack(ret); 3894}; 3895}); 3896var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i"); 3897var rcustomProp=/^--/; 3898var getStyles=function(elem){ 3899var view=elem.ownerDocument.defaultView; 3900if(!view||!view.opener){ 3901view=window; 3902} 3903return view.getComputedStyle(elem); 3904}; 3905var swap=function(elem,options,callback){ 3906var ret,name, 3907old={}; 3908for(name in options){ 3909old[name]=elem.style[name]; 3910elem.style[name]=options[name]; 3911} 3912ret=callback.call(elem); 3913for(name in options){ 3914elem.style[name]=old[name]; 3915} 3916return ret; 3917}; 3918var rboxStyle=new RegExp(cssExpand.join("|"),"i"); 3919(function(){ 3920function computeStyleTests(){ 3921if(!div){ 3922return; 3923} 3924container.style.cssText="position:absolute;left:-11111px;width:60px;"+ 3925"margin-top:1px;padding:0;border:0"; 3926div.style.cssText= 3927"position:relative;display:block;box-sizing:border-box;overflow:scroll;"+ 3928"margin:auto;border:1px;padding:1px;"+ 3929"width:60%;top:1%"; 3930documentElement.appendChild(container).appendChild(div); 3931var divStyle=window.getComputedStyle(div); 3932pixelPositionVal=divStyle.top!=="1%"; 3933reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12; 3934div.style.right="60%"; 3935pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36; 3936boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36; 3937div.style.position="absolute"; 3938scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12; 3939documentElement.removeChild(container); 3940div=null; 3941} 3942function roundPixelMeasures(measure){ 3943return Math.round(parseFloat(measure)); 3944} 3945var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal, 3946reliableTrDimensionsVal,reliableMarginLeftVal, 3947container=document.createElement("div"), 3948div=document.createElement("div"); 3949if(!div.style){ 3950return; 3951} 3952div.style.backgroundClip="content-box"; 3953div.cloneNode(true).style.backgroundClip=""; 3954support.clearCloneStyle=div.style.backgroundClip==="content-box"; 3955jQuery.extend(support,{ 3956boxSizingReliable:function(){ 3957computeStyleTests(); 3958return boxSizingReliableVal; 3959}, 3960pixelBoxStyles:function(){ 3961computeStyleTests(); 3962return pixelBoxStylesVal; 3963}, 3964pixelPosition:function(){ 3965computeStyleTests(); 3966return pixelPositionVal; 3967}, 3968reliableMarginLeft:function(){ 3969computeStyleTests(); 3970return reliableMarginLeftVal; 3971}, 3972scrollboxSize:function(){ 3973computeStyleTests(); 3974return scrollboxSizeVal; 3975}, 3976reliableTrDimensions:function(){ 3977var table,tr,trChild,trStyle; 3978if(reliableTrDimensionsVal==null){ 3979table=document.createElement("table"); 3980tr=document.createElement("tr"); 3981trChild=document.createElement("div"); 3982table.style.cssText="position:absolute;left:-11111px;border-collapse:separate"; 3983tr.style.cssText="box-sizing:content-box;border:1px solid"; 3984tr.style.height="1px"; 3985trChild.style.height="9px"; 3986trChild.style.display="block"; 3987documentElement 3988.appendChild(table) 3989.appendChild(tr) 3990.appendChild(trChild); 3991trStyle=window.getComputedStyle(tr); 3992reliableTrDimensionsVal=(parseInt(trStyle.height,10)+ 3993parseInt(trStyle.borderTopWidth,10)+ 3994parseInt(trStyle.borderBottomWidth,10))===tr.offsetHeight; 3995documentElement.removeChild(table); 3996} 3997return reliableTrDimensionsVal; 3998} 3999}); 4000})(); 4001function curCSS(elem,name,computed){ 4002var width,minWidth,maxWidth,ret, 4003isCustomProp=rcustomProp.test(name), 4004style=elem.style; 4005computed=computed||getStyles(elem); 4006if(computed){ 4007ret=computed.getPropertyValue(name)||computed[name]; 4008if(isCustomProp&&ret){ 4009ret=ret.replace(rtrimCSS,"$1")||undefined; 4010} 4011if(ret===""&&!isAttached(elem)){ 4012ret=jQuery.style(elem,name); 4013} 4014if(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){ 4015width=style.width; 4016minWidth=style.minWidth; 4017maxWidth=style.maxWidth; 4018style.minWidth=style.maxWidth=style.width=ret; 4019ret=computed.width; 4020style.width=width; 4021style.minWidth=minWidth; 4022style.maxWidth=maxWidth; 4023} 4024} 4025return ret!==undefined? 4026ret+"": 4027ret; 4028} 4029function addGetHookIf(conditionFn,hookFn){ 4030return{ 4031get:function(){ 4032if(conditionFn()){ 4033delete this.get; 4034return; 4035} 4036return(this.get=hookFn).apply(this,arguments); 4037} 4038}; 4039} 4040var cssPrefixes=["Webkit","Moz","ms"], 4041emptyStyle=document.createElement("div").style, 4042vendorProps={}; 4043function vendorPropName(name){ 4044var capName=name[0].toUpperCase()+name.slice(1), 4045i=cssPrefixes.length; 4046while(i--){ 4047name=cssPrefixes[i]+capName; 4048if(name in emptyStyle){ 4049return name; 4050} 4051} 4052} 4053function finalPropName(name){ 4054var final=jQuery.cssProps[name]||vendorProps[name]; 4055if(final){ 4056return final; 4057} 4058if(name in emptyStyle){ 4059return name; 4060} 4061return vendorProps[name]=vendorPropName(name)||name; 4062} 4063var 4064rdisplayswap=/^(none|table(?!-c[ea]).+)/, 4065cssShow={position:"absolute",visibility:"hidden",display:"block"}, 4066cssNormalTransform={ 4067letterSpacing:"0", 4068fontWeight:"400" 4069}; 4070function setPositiveNumber(_elem,value,subtract){ 4071var matches=rcssNum.exec(value); 4072return matches? 4073Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"): 4074value; 4075} 4076function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){ 4077var i=dimension==="width"?1:0, 4078extra=0, 4079delta=0, 4080marginDelta=0; 4081if(box===(isBorderBox?"border":"content")){ 4082return 0; 4083} 4084for(;i<4;i+=2){ 4085if(box==="margin"){ 4086marginDelta+=jQuery.css(elem,box+cssExpand[i],true,styles); 4087} 4088if(!isBorderBox){ 4089delta+=jQuery.css(elem,"padding"+cssExpand[i],true,styles); 4090if(box!=="padding"){ 4091delta+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4092}else{ 4093extra+=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4094} 4095}else{ 4096if(box==="content"){ 4097delta-=jQuery.css(elem,"padding"+cssExpand[i],true,styles); 4098} 4099if(box!=="margin"){ 4100delta-=jQuery.css(elem,"border"+cssExpand[i]+"Width",true,styles); 4101} 4102} 4103} 4104if(!isBorderBox&&computedVal>=0){ 4105delta+=Math.max(0,Math.ceil( 4106elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]- 4107computedVal- 4108delta- 4109extra- 41100.5 4111))||0; 4112} 4113return delta+marginDelta; 4114} 4115function getWidthOrHeight(elem,dimension,extra){ 4116var styles=getStyles(elem), 4117boxSizingNeeded=!support.boxSizingReliable()||extra, 4118isBorderBox=boxSizingNeeded&& 4119jQuery.css(elem,"boxSizing",false,styles)==="border-box", 4120valueIsBorderBox=isBorderBox, 4121val=curCSS(elem,dimension,styles), 4122offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1); 4123if(rnumnonpx.test(val)){ 4124if(!extra){ 4125return val; 4126} 4127val="auto"; 4128} 4129if((!support.boxSizingReliable()&&isBorderBox|| 4130!support.reliableTrDimensions()&&nodeName(elem,"tr")|| 4131val==="auto"|| 4132!parseFloat(val)&&jQuery.css(elem,"display",false,styles)==="inline")&& 4133elem.getClientRects().length){ 4134isBorderBox=jQuery.css(elem,"boxSizing",false,styles)==="border-box"; 4135valueIsBorderBox=offsetProp in elem; 4136if(valueIsBorderBox){ 4137val=elem[offsetProp]; 4138} 4139} 4140val=parseFloat(val)||0; 4141return(val+ 4142boxModelAdjustment( 4143elem, 4144dimension, 4145extra||(isBorderBox?"border":"content"), 4146valueIsBorderBox, 4147styles, 4148val 4149) 4150)+"px"; 4151} 4152jQuery.extend({ 4153cssHooks:{ 4154opacity:{ 4155get:function(elem,computed){ 4156if(computed){ 4157var ret=curCSS(elem,"opacity"); 4158return ret===""?"1":ret; 4159} 4160} 4161} 4162}, 4163cssNumber:{ 4164animationIterationCount:true, 4165aspectRatio:true, 4166borderImageSlice:true, 4167columnCount:true, 4168flexGrow:true, 4169flexShrink:true, 4170fontWeight:true, 4171gridArea:true, 4172gridColumn:true, 4173gridColumnEnd:true, 4174gridColumnStart:true, 4175gridRow:true, 4176gridRowEnd:true, 4177gridRowStart:true, 4178lineHeight:true, 4179opacity:true, 4180order:true, 4181orphans:true, 4182scale:true, 4183widows:true, 4184zIndex:true, 4185zoom:true, 4186fillOpacity:true, 4187floodOpacity:true, 4188stopOpacity:true, 4189strokeMiterlimit:true, 4190strokeOpacity:true 4191}, 4192cssProps:{}, 4193style:function(elem,name,value,extra){ 4194if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){ 4195return; 4196} 4197var ret,type,hooks, 4198origName=camelCase(name), 4199isCustomProp=rcustomProp.test(name), 4200style=elem.style; 4201if(!isCustomProp){ 4202name=finalPropName(origName); 4203} 4204hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName]; 4205if(value!==undefined){ 4206type=typeof value; 4207if(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){ 4208value=adjustCSS(elem,name,ret); 4209type="number"; 4210} 4211if(value==null||value!==value){ 4212return; 4213} 4214if(type==="number"&&!isCustomProp){ 4215value+=ret&&ret[3]||(jQuery.cssNumber[origName]?"":"px"); 4216} 4217if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){ 4218style[name]="inherit"; 4219} 4220if(!hooks||!("set"in hooks)|| 4221(value=hooks.set(elem,value,extra))!==undefined){ 4222if(isCustomProp){ 4223style.setProperty(name,value); 4224}else{ 4225style[name]=value; 4226} 4227} 4228}else{ 4229if(hooks&&"get"in hooks&& 4230(ret=hooks.get(elem,false,extra))!==undefined){ 4231return ret; 4232} 4233return style[name]; 4234} 4235}, 4236css:function(elem,name,extra,styles){ 4237var val,num,hooks, 4238origName=camelCase(name), 4239isCustomProp=rcustomProp.test(name); 4240if(!isCustomProp){ 4241name=finalPropName(origName); 4242} 4243hooks=jQuery.cssHooks[name]||jQuery.cssHooks[origName]; 4244if(hooks&&"get"in hooks){ 4245val=hooks.get(elem,true,extra); 4246} 4247if(val===undefined){ 4248val=curCSS(elem,name,styles); 4249} 4250if(val==="normal"&&name in cssNormalTransform){ 4251val=cssNormalTransform[name]; 4252} 4253if(extra===""||extra){ 4254num=parseFloat(val); 4255return extra===true||isFinite(num)?num||0:val; 4256} 4257return val; 4258} 4259}); 4260jQuery.each(["height","width"],function(_i,dimension){ 4261jQuery.cssHooks[dimension]={ 4262get:function(elem,computed,extra){ 4263if(computed){ 4264return rdisplayswap.test(jQuery.css(elem,"display"))&& 4265(!elem.getClientRects().length||!elem.getBoundingClientRect().width)? 4266swap(elem,cssShow,function(){ 4267return getWidthOrHeight(elem,dimension,extra); 4268}): 4269getWidthOrHeight(elem,dimension,extra); 4270} 4271}, 4272set:function(elem,value,extra){ 4273var matches, 4274styles=getStyles(elem), 4275scrollboxSizeBuggy=!support.scrollboxSize()&& 4276styles.position==="absolute", 4277boxSizingNeeded=scrollboxSizeBuggy||extra, 4278isBorderBox=boxSizingNeeded&& 4279jQuery.css(elem,"boxSizing",false,styles)==="border-box", 4280subtract=extra? 4281boxModelAdjustment( 4282elem, 4283dimension, 4284extra, 4285isBorderBox, 4286styles 4287): 42880; 4289if(isBorderBox&&scrollboxSizeBuggy){ 4290subtract-=Math.ceil( 4291elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]- 4292parseFloat(styles[dimension])- 4293boxModelAdjustment(elem,dimension,"border",false,styles)- 42940.5 4295); 4296} 4297if(subtract&&(matches=rcssNum.exec(value))&& 4298(matches[3]||"px")!=="px"){ 4299elem.style[dimension]=value; 4300value=jQuery.css(elem,dimension); 4301} 4302return setPositiveNumber(elem,value,subtract); 4303} 4304}; 4305}); 4306jQuery.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft, 4307function(elem,computed){ 4308if(computed){ 4309return(parseFloat(curCSS(elem,"marginLeft"))|| 4310elem.getBoundingClientRect().left- 4311swap(elem,{marginLeft:0},function(){ 4312return elem.getBoundingClientRect().left; 4313}) 4314)+"px"; 4315} 4316} 4317); 4318jQuery.each({ 4319margin:"", 4320padding:"", 4321border:"Width" 4322},function(prefix,suffix){ 4323jQuery.cssHooks[prefix+suffix]={ 4324expand:function(value){ 4325var i=0, 4326expanded={}, 4327parts=typeof value==="string"?value.split(" "):[value]; 4328for(;i<4;i++){ 4329expanded[prefix+cssExpand[i]+suffix]= 4330parts[i]||parts[i-2]||parts[0]; 4331} 4332return expanded; 4333} 4334}; 4335if(prefix!=="margin"){ 4336jQuery.cssHooks[prefix+suffix].set=setPositiveNumber; 4337} 4338}); 4339jQuery.fn.extend({ 4340css:function(name,value){ 4341return access(this,function(elem,name,value){ 4342var styles,len, 4343map={}, 4344i=0; 4345if(Array.isArray(name)){ 4346styles=getStyles(elem); 4347len=name.length; 4348for(;i<len;i++){ 4349map[name[i]]=jQuery.css(elem,name[i],false,styles); 4350} 4351return map; 4352} 4353return value!==undefined? 4354jQuery.style(elem,name,value): 4355jQuery.css(elem,name); 4356},name,value,arguments.length>1); 4357} 4358}); 4359function Tween(elem,options,prop,end,easing){ 4360return new Tween.prototype.init(elem,options,prop,end,easing); 4361} 4362jQuery.Tween=Tween; 4363Tween.prototype={ 4364constructor:Tween, 4365init:function(elem,options,prop,end,easing,unit){ 4366this.elem=elem; 4367this.prop=prop; 4368this.easing=easing||jQuery.easing._default; 4369this.options=options; 4370this.start=this.now=this.cur(); 4371this.end=end; 4372this.unit=unit||(jQuery.cssNumber[prop]?"":"px"); 4373}, 4374cur:function(){ 4375var hooks=Tween.propHooks[this.prop]; 4376return hooks&&hooks.get? 4377hooks.get(this): 4378Tween.propHooks._default.get(this); 4379}, 4380run:function(percent){ 4381var eased, 4382hooks=Tween.propHooks[this.prop]; 4383if(this.options.duration){ 4384this.pos=eased=jQuery.easing[this.easing]( 4385percent,this.options.duration*percent,0,1,this.options.duration 4386); 4387}else{ 4388this.pos=eased=percent; 4389} 4390this.now=(this.end-this.start)*eased+this.start; 4391if(this.options.step){ 4392this.options.step.call(this.elem,this.now,this); 4393} 4394if(hooks&&hooks.set){ 4395hooks.set(this); 4396}else{ 4397Tween.propHooks._default.set(this); 4398} 4399return this; 4400} 4401}; 4402Tween.prototype.init.prototype=Tween.prototype; 4403Tween.propHooks={ 4404_default:{ 4405get:function(tween){ 4406var result; 4407if(tween.elem.nodeType!==1|| 4408tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){ 4409return tween.elem[tween.prop]; 4410} 4411result=jQuery.css(tween.elem,tween.prop,""); 4412return!result||result==="auto"?0:result; 4413}, 4414set:function(tween){ 4415if(jQuery.fx.step[tween.prop]){ 4416jQuery.fx.step[tween.prop](tween); 4417}else if(tween.elem.nodeType===1&&( 4418jQuery.cssHooks[tween.prop]|| 4419tween.elem.style[finalPropName(tween.prop)]!=null)){ 4420jQuery.style(tween.elem,tween.prop,tween.now+tween.unit); 4421}else{ 4422tween.elem[tween.prop]=tween.now; 4423} 4424} 4425} 4426}; 4427Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={ 4428set:function(tween){ 4429if(tween.elem.nodeType&&tween.elem.parentNode){ 4430tween.elem[tween.prop]=tween.now; 4431} 4432} 4433}; 4434jQuery.easing={ 4435linear:function(p){ 4436return p; 4437}, 4438swing:function(p){ 4439return 0.5-Math.cos(p*Math.PI)/2; 4440}, 4441_default:"swing" 4442}; 4443jQuery.fx=Tween.prototype.init; 4444jQuery.fx.step={}; 4445var 4446fxNow,inProgress, 4447rfxtypes=/^(?:toggle|show|hide)$/, 4448rrun=/queueHooks$/; 4449function schedule(){ 4450if(inProgress){ 4451if(document.hidden===false&&window.requestAnimationFrame){ 4452window.requestAnimationFrame(schedule); 4453}else{ 4454window.setTimeout(schedule,jQuery.fx.interval); 4455} 4456jQuery.fx.tick(); 4457} 4458} 4459function createFxNow(){ 4460window.setTimeout(function(){ 4461fxNow=undefined; 4462}); 4463return(fxNow=Date.now()); 4464} 4465function genFx(type,includeWidth){ 4466var which, 4467i=0, 4468attrs={height:type}; 4469includeWidth=includeWidth?1:0; 4470for(;i<4;i+=2-includeWidth){ 4471which=cssExpand[i]; 4472attrs["margin"+which]=attrs["padding"+which]=type; 4473} 4474if(includeWidth){ 4475attrs.opacity=attrs.width=type; 4476} 4477return attrs; 4478} 4479function createTween(value,prop,animation){ 4480var tween, 4481collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]), 4482index=0, 4483length=collection.length; 4484for(;index<length;index++){ 4485if((tween=collection[index].call(animation,prop,value))){ 4486return tween; 4487} 4488} 4489} 4490function defaultPrefilter(elem,props,opts){ 4491var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display, 4492isBox="width"in props||"height"in props, 4493anim=this, 4494orig={}, 4495style=elem.style, 4496hidden=elem.nodeType&&isHiddenWithinTree(elem), 4497dataShow=dataPriv.get(elem,"fxshow"); 4498if(!opts.queue){ 4499hooks=jQuery._queueHooks(elem,"fx"); 4500if(hooks.unqueued==null){ 4501hooks.unqueued=0; 4502oldfire=hooks.empty.fire; 4503hooks.empty.fire=function(){ 4504if(!hooks.unqueued){ 4505oldfire(); 4506} 4507}; 4508} 4509hooks.unqueued++; 4510anim.always(function(){ 4511anim.always(function(){ 4512hooks.unqueued--; 4513if(!jQuery.queue(elem,"fx").length){ 4514hooks.empty.fire(); 4515} 4516}); 4517}); 4518} 4519for(prop in props){ 4520value=props[prop]; 4521if(rfxtypes.test(value)){ 4522delete props[prop]; 4523toggle=toggle||value==="toggle"; 4524if(value===(hidden?"hide":"show")){ 4525if(value==="show"&&dataShow&&dataShow[prop]!==undefined){ 4526hidden=true; 4527}else{ 4528continue; 4529} 4530} 4531orig[prop]=dataShow&&dataShow[prop]||jQuery.style(elem,prop); 4532} 4533} 4534propTween=!jQuery.isEmptyObject(props); 4535if(!propTween&&jQuery.isEmptyObject(orig)){ 4536return; 4537} 4538if(isBox&&elem.nodeType===1){ 4539opts.overflow=[style.overflow,style.overflowX,style.overflowY]; 4540restoreDisplay=dataShow&&dataShow.display; 4541if(restoreDisplay==null){ 4542restoreDisplay=dataPriv.get(elem,"display"); 4543} 4544display=jQuery.css(elem,"display"); 4545if(display==="none"){ 4546if(restoreDisplay){ 4547display=restoreDisplay; 4548}else{ 4549showHide([elem],true); 4550restoreDisplay=elem.style.display||restoreDisplay; 4551display=jQuery.css(elem,"display"); 4552showHide([elem]); 4553} 4554} 4555if(display==="inline"||display==="inline-block"&&restoreDisplay!=null){ 4556if(jQuery.css(elem,"float")==="none"){ 4557if(!propTween){ 4558anim.done(function(){ 4559style.display=restoreDisplay; 4560}); 4561if(restoreDisplay==null){ 4562display=style.display; 4563restoreDisplay=display==="none"?"":display; 4564} 4565} 4566style.display="inline-block"; 4567} 4568} 4569} 4570if(opts.overflow){ 4571style.overflow="hidden"; 4572anim.always(function(){ 4573style.overflow=opts.overflow[0]; 4574style.overflowX=opts.overflow[1]; 4575style.overflowY=opts.overflow[2]; 4576}); 4577} 4578propTween=false; 4579for(prop in orig){ 4580if(!propTween){ 4581if(dataShow){ 4582if("hidden"in dataShow){ 4583hidden=dataShow.hidden; 4584} 4585}else{ 4586dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay}); 4587} 4588if(toggle){ 4589dataShow.hidden=!hidden; 4590} 4591if(hidden){ 4592showHide([elem],true); 4593} 4594anim.done(function(){ 4595if(!hidden){ 4596showHide([elem]); 4597} 4598dataPriv.remove(elem,"fxshow"); 4599for(prop in orig){ 4600jQuery.style(elem,prop,orig[prop]); 4601} 4602}); 4603} 4604propTween=createTween(hidden?dataShow[prop]:0,prop,anim); 4605if(!(prop in dataShow)){ 4606dataShow[prop]=propTween.start; 4607if(hidden){ 4608propTween.end=propTween.start; 4609propTween.start=0; 4610} 4611} 4612} 4613} 4614function propFilter(props,specialEasing){ 4615var index,name,easing,value,hooks; 4616for(index in props){ 4617name=camelCase(index); 4618easing=specialEasing[name]; 4619value=props[index]; 4620if(Array.isArray(value)){ 4621easing=value[1]; 4622value=props[index]=value[0]; 4623} 4624if(index!==name){ 4625props[name]=value; 4626delete props[index]; 4627} 4628hooks=jQuery.cssHooks[name]; 4629if(hooks&&"expand"in hooks){ 4630value=hooks.expand(value); 4631delete props[name]; 4632for(index in value){ 4633if(!(index in props)){ 4634props[index]=value[index]; 4635specialEasing[index]=easing; 4636} 4637} 4638}else{ 4639specialEasing[name]=easing; 4640} 4641} 4642} 4643function Animation(elem,properties,options){ 4644var result, 4645stopped, 4646index=0, 4647length=Animation.prefilters.length, 4648deferred=jQuery.Deferred().always(function(){ 4649delete tick.elem; 4650}), 4651tick=function(){ 4652if(stopped){ 4653return false; 4654} 4655var currentTime=fxNow||createFxNow(), 4656remaining=Math.max(0,animation.startTime+animation.duration-currentTime), 4657temp=remaining/animation.duration||0, 4658percent=1-temp, 4659index=0, 4660length=animation.tweens.length; 4661for(;index<length;index++){ 4662animation.tweens[index].run(percent); 4663} 4664deferred.notifyWith(elem,[animation,percent,remaining]); 4665if(percent<1&&length){ 4666return remaining; 4667} 4668if(!length){ 4669deferred.notifyWith(elem,[animation,1,0]); 4670} 4671deferred.resolveWith(elem,[animation]); 4672return false; 4673}, 4674animation=deferred.promise({ 4675elem:elem, 4676props:jQuery.extend({},properties), 4677opts:jQuery.extend(true,{ 4678specialEasing:{}, 4679easing:jQuery.easing._default 4680},options), 4681originalProperties:properties, 4682originalOptions:options, 4683startTime:fxNow||createFxNow(), 4684duration:options.duration, 4685tweens:[], 4686createTween:function(prop,end){ 4687var tween=jQuery.Tween(elem,animation.opts,prop,end, 4688animation.opts.specialEasing[prop]||animation.opts.easing); 4689animation.tweens.push(tween); 4690return tween; 4691}, 4692stop:function(gotoEnd){ 4693var index=0, 4694length=gotoEnd?animation.tweens.length:0; 4695if(stopped){ 4696return this; 4697} 4698stopped=true; 4699for(;index<length;index++){ 4700animation.tweens[index].run(1); 4701} 4702if(gotoEnd){ 4703deferred.notifyWith(elem,[animation,1,0]); 4704deferred.resolveWith(elem,[animation,gotoEnd]); 4705}else{ 4706deferred.rejectWith(elem,[animation,gotoEnd]); 4707} 4708return this; 4709} 4710}), 4711props=animation.props; 4712propFilter(props,animation.opts.specialEasing); 4713for(;index<length;index++){ 4714result=Animation.prefilters[index].call(animation,elem,props,animation.opts); 4715if(result){ 4716if(isFunction(result.stop)){ 4717jQuery._queueHooks(animation.elem,animation.opts.queue).stop= 4718result.stop.bind(result); 4719} 4720return result; 4721} 4722} 4723jQuery.map(props,createTween,animation); 4724if(isFunction(animation.opts.start)){ 4725animation.opts.start.call(elem,animation); 4726} 4727animation 4728.progress(animation.opts.progress) 4729.done(animation.opts.done,animation.opts.complete) 4730.fail(animation.opts.fail) 4731.always(animation.opts.always); 4732jQuery.fx.timer( 4733jQuery.extend(tick,{ 4734elem:elem, 4735anim:animation, 4736queue:animation.opts.queue 4737}) 4738); 4739return animation; 4740} 4741jQuery.Animation=jQuery.extend(Animation,{ 4742tweeners:{ 4743"*":[function(prop,value){ 4744var tween=this.createTween(prop,value); 4745adjustCSS(tween.elem,prop,rcssNum.exec(value),tween); 4746return tween; 4747}] 4748}, 4749tweener:function(props,callback){ 4750if(isFunction(props)){ 4751callback=props; 4752props=["*"]; 4753}else{ 4754props=props.match(rnothtmlwhite); 4755} 4756var prop, 4757index=0, 4758length=props.length; 4759for(;index<length;index++){ 4760prop=props[index]; 4761Animation.tweeners[prop]=Animation.tweeners[prop]||[]; 4762Animation.tweeners[prop].unshift(callback); 4763} 4764}, 4765prefilters:[defaultPrefilter], 4766prefilter:function(callback,prepend){ 4767if(prepend){ 4768Animation.prefilters.unshift(callback); 4769}else{ 4770Animation.prefilters.push(callback); 4771} 4772} 4773}); 4774jQuery.speed=function(speed,easing,fn){ 4775var opt=speed&&typeof speed==="object"?jQuery.extend({},speed):{ 4776complete:fn||!fn&&easing|| 4777isFunction(speed)&&speed, 4778duration:speed, 4779easing:fn&&easing||easing&&!isFunction(easing)&&easing 4780}; 4781if(jQuery.fx.off){ 4782opt.duration=0; 4783}else{ 4784if(typeof opt.duration!=="number"){ 4785if(opt.duration in jQuery.fx.speeds){ 4786opt.duration=jQuery.fx.speeds[opt.duration]; 4787}else{ 4788opt.duration=jQuery.fx.speeds._default; 4789} 4790} 4791} 4792if(opt.queue==null||opt.queue===true){ 4793opt.queue="fx"; 4794} 4795opt.old=opt.complete; 4796opt.complete=function(){ 4797if(isFunction(opt.old)){ 4798opt.old.call(this); 4799} 4800if(opt.queue){ 4801jQuery.dequeue(this,opt.queue); 4802} 4803}; 4804return opt; 4805}; 4806jQuery.fn.extend({ 4807fadeTo:function(speed,to,easing,callback){ 4808return this.filter(isHiddenWithinTree).css("opacity",0).show() 4809.end().animate({opacity:to},speed,easing,callback); 4810}, 4811animate:function(prop,speed,easing,callback){ 4812var empty=jQuery.isEmptyObject(prop), 4813optall=jQuery.speed(speed,easing,callback), 4814doAnimation=function(){ 4815var anim=Animation(this,jQuery.extend({},prop),optall); 4816if(empty||dataPriv.get(this,"finish")){ 4817anim.stop(true); 4818} 4819}; 4820doAnimation.finish=doAnimation; 4821return empty||optall.queue===false? 4822this.each(doAnimation): 4823this.queue(optall.queue,doAnimation); 4824}, 4825stop:function(type,clearQueue,gotoEnd){ 4826var stopQueue=function(hooks){ 4827var stop=hooks.stop; 4828delete hooks.stop; 4829stop(gotoEnd); 4830}; 4831if(typeof type!=="string"){ 4832gotoEnd=clearQueue; 4833clearQueue=type; 4834type=undefined; 4835} 4836if(clearQueue){ 4837this.queue(type||"fx",[]); 4838} 4839return this.each(function(){ 4840var dequeue=true, 4841index=type!=null&&type+"queueHooks", 4842timers=jQuery.timers, 4843data=dataPriv.get(this); 4844if(index){ 4845if(data[index]&&data[index].stop){ 4846stopQueue(data[index]); 4847} 4848}else{ 4849for(index in data){ 4850if(data[index]&&data[index].stop&&rrun.test(index)){ 4851stopQueue(data[index]); 4852} 4853} 4854} 4855for(index=timers.length;index--;){ 4856if(timers[index].elem===this&& 4857(type==null||timers[index].queue===type)){ 4858timers[index].anim.stop(gotoEnd); 4859dequeue=false; 4860timers.splice(index,1); 4861} 4862} 4863if(dequeue||!gotoEnd){ 4864jQuery.dequeue(this,type); 4865} 4866}); 4867}, 4868finish:function(type){ 4869if(type!==false){ 4870type=type||"fx"; 4871} 4872return this.each(function(){ 4873var index, 4874data=dataPriv.get(this), 4875queue=data[type+"queue"], 4876hooks=data[type+"queueHooks"], 4877timers=jQuery.timers, 4878length=queue?queue.length:0; 4879data.finish=true; 4880jQuery.queue(this,type,[]); 4881if(hooks&&hooks.stop){ 4882hooks.stop.call(this,true); 4883} 4884for(index=timers.length;index--;){ 4885if(timers[index].elem===this&&timers[index].queue===type){ 4886timers[index].anim.stop(true); 4887timers.splice(index,1); 4888} 4889} 4890for(index=0;index<length;index++){ 4891if(queue[index]&&queue[index].finish){ 4892queue[index].finish.call(this); 4893} 4894} 4895delete data.finish; 4896}); 4897} 4898}); 4899jQuery.each(["toggle","show","hide"],function(_i,name){ 4900var cssFn=jQuery.fn[name]; 4901jQuery.fn[name]=function(speed,easing,callback){ 4902return speed==null||typeof speed==="boolean"? 4903cssFn.apply(this,arguments): 4904this.animate(genFx(name,true),speed,easing,callback); 4905}; 4906}); 4907jQuery.each({ 4908slideDown:genFx("show"), 4909slideUp:genFx("hide"), 4910slideToggle:genFx("toggle"), 4911fadeIn:{opacity:"show"}, 4912fadeOut:{opacity:"hide"}, 4913fadeToggle:{opacity:"toggle"} 4914},function(name,props){ 4915jQuery.fn[name]=function(speed,easing,callback){ 4916return this.animate(props,speed,easing,callback); 4917}; 4918}); 4919jQuery.timers=[]; 4920jQuery.fx.tick=function(){ 4921var timer, 4922i=0, 4923timers=jQuery.timers; 4924fxNow=Date.now(); 4925for(;i<timers.length;i++){ 4926timer=timers[i]; 4927if(!timer()&&timers[i]===timer){ 4928timers.splice(i--,1); 4929} 4930} 4931if(!timers.length){ 4932jQuery.fx.stop(); 4933} 4934fxNow=undefined; 4935}; 4936jQuery.fx.timer=function(timer){ 4937jQuery.timers.push(timer); 4938jQuery.fx.start(); 4939}; 4940jQuery.fx.interval=13; 4941jQuery.fx.start=function(){ 4942if(inProgress){ 4943return; 4944} 4945inProgress=true; 4946schedule(); 4947}; 4948jQuery.fx.stop=function(){ 4949inProgress=null; 4950}; 4951jQuery.fx.speeds={ 4952slow:600, 4953fast:200, 4954_default:400 4955}; 4956jQuery.fn.delay=function(time,type){ 4957time=jQuery.fx?jQuery.fx.speeds[time]||time:time; 4958type=type||"fx"; 4959return this.queue(type,function(next,hooks){ 4960var timeout=window.setTimeout(next,time); 4961hooks.stop=function(){ 4962window.clearTimeout(timeout); 4963}; 4964}); 4965}; 4966(function(){ 4967var input=document.createElement("input"), 4968select=document.createElement("select"), 4969opt=select.appendChild(document.createElement("option")); 4970input.type="checkbox"; 4971support.checkOn=input.value!==""; 4972support.optSelected=opt.selected; 4973input=document.createElement("input"); 4974input.value="t"; 4975input.type="radio"; 4976support.radioValue=input.value==="t"; 4977})(); 4978var boolHook, 4979attrHandle=jQuery.expr.attrHandle; 4980jQuery.fn.extend({ 4981attr:function(name,value){ 4982return access(this,jQuery.attr,name,value,arguments.length>1); 4983}, 4984removeAttr:function(name){ 4985return this.each(function(){ 4986jQuery.removeAttr(this,name); 4987}); 4988} 4989}); 4990jQuery.extend({ 4991attr:function(elem,name,value){ 4992var ret,hooks, 4993nType=elem.nodeType; 4994if(nType===3||nType===8||nType===2){ 4995return; 4996} 4997if(typeof elem.getAttribute==="undefined"){ 4998return jQuery.prop(elem,name,value); 4999} 5000if(nType!==1||!jQuery.isXMLDoc(elem)){ 5001hooks=jQuery.attrHooks[name.toLowerCase()]|| 5002(jQuery.expr.match.bool.test(name)?boolHook:undefined); 5003} 5004if(value!==undefined){ 5005if(value===null){ 5006jQuery.removeAttr(elem,name); 5007return; 5008} 5009if(hooks&&"set"in hooks&& 5010(ret=hooks.set(elem,value,name))!==undefined){ 5011return ret; 5012} 5013elem.setAttribute(name,value+""); 5014return value; 5015} 5016if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){ 5017return ret; 5018} 5019ret=jQuery.find.attr(elem,name); 5020return ret==null?undefined:ret; 5021}, 5022attrHooks:{ 5023type:{ 5024set:function(elem,value){ 5025if(!support.radioValue&&value==="radio"&& 5026nodeName(elem,"input")){ 5027var val=elem.value; 5028elem.setAttribute("type",value); 5029if(val){ 5030elem.value=val; 5031} 5032return value; 5033} 5034} 5035} 5036}, 5037removeAttr:function(elem,value){ 5038var name, 5039i=0, 5040attrNames=value&&value.match(rnothtmlwhite); 5041if(attrNames&&elem.nodeType===1){ 5042while((name=attrNames[i++])){ 5043elem.removeAttribute(name); 5044} 5045} 5046} 5047}); 5048boolHook={ 5049set:function(elem,value,name){ 5050if(value===false){ 5051jQuery.removeAttr(elem,name); 5052}else{ 5053elem.setAttribute(name,name); 5054} 5055return name; 5056} 5057}; 5058jQuery.each(jQuery.expr.match.bool.source.match(/\w+/g),function(_i,name){ 5059var getter=attrHandle[name]||jQuery.find.attr; 5060attrHandle[name]=function(elem,name,isXML){ 5061var ret,handle, 5062lowercaseName=name.toLowerCase(); 5063if(!isXML){ 5064handle=attrHandle[lowercaseName]; 5065attrHandle[lowercaseName]=ret; 5066ret=getter(elem,name,isXML)!=null? 5067lowercaseName: 5068null; 5069attrHandle[lowercaseName]=handle; 5070} 5071return ret; 5072}; 5073}); 5074var rfocusable=/^(?:input|select|textarea|button)$/i, 5075rclickable=/^(?:a|area)$/i; 5076jQuery.fn.extend({ 5077prop:function(name,value){ 5078return access(this,jQuery.prop,name,value,arguments.length>1); 5079}, 5080removeProp:function(name){ 5081return this.each(function(){ 5082delete this[jQuery.propFix[name]||name]; 5083}); 5084} 5085}); 5086jQuery.extend({ 5087prop:function(elem,name,value){ 5088var ret,hooks, 5089nType=elem.nodeType; 5090if(nType===3||nType===8||nType===2){ 5091return; 5092} 5093if(nType!==1||!jQuery.isXMLDoc(elem)){ 5094name=jQuery.propFix[name]||name; 5095hooks=jQuery.propHooks[name]; 5096} 5097if(value!==undefined){ 5098if(hooks&&"set"in hooks&& 5099(ret=hooks.set(elem,value,name))!==undefined){ 5100return ret; 5101} 5102return(elem[name]=value); 5103} 5104if(hooks&&"get"in hooks&&(ret=hooks.get(elem,name))!==null){ 5105return ret; 5106} 5107return elem[name]; 5108}, 5109propHooks:{ 5110tabIndex:{ 5111get:function(elem){ 5112var tabindex=jQuery.find.attr(elem,"tabindex"); 5113if(tabindex){ 5114return parseInt(tabindex,10); 5115} 5116if( 5117rfocusable.test(elem.nodeName)|| 5118rclickable.test(elem.nodeName)&& 5119elem.href 5120){ 5121return 0; 5122} 5123return-1; 5124} 5125} 5126}, 5127propFix:{ 5128"for":"htmlFor", 5129"class":"className" 5130} 5131}); 5132if(!support.optSelected){ 5133jQuery.propHooks.selected={ 5134get:function(elem){ 5135var parent=elem.parentNode; 5136if(parent&&parent.parentNode){ 5137parent.parentNode.selectedIndex; 5138} 5139return null; 5140}, 5141set:function(elem){ 5142var parent=elem.parentNode; 5143if(parent){ 5144parent.selectedIndex; 5145if(parent.parentNode){ 5146parent.parentNode.selectedIndex; 5147} 5148} 5149} 5150}; 5151} 5152jQuery.each([ 5153"tabIndex", 5154"readOnly", 5155"maxLength", 5156"cellSpacing", 5157"cellPadding", 5158"rowSpan", 5159"colSpan", 5160"useMap", 5161"frameBorder", 5162"contentEditable" 5163],function(){ 5164jQuery.propFix[this.toLowerCase()]=this; 5165}); 5166function stripAndCollapse(value){ 5167var tokens=value.match(rnothtmlwhite)||[]; 5168return tokens.join(" "); 5169} 5170function getClass(elem){ 5171return elem.getAttribute&&elem.getAttribute("class")||""; 5172} 5173function classesToArray(value){ 5174if(Array.isArray(value)){ 5175return value; 5176} 5177if(typeof value==="string"){ 5178return value.match(rnothtmlwhite)||[]; 5179} 5180return[]; 5181} 5182jQuery.fn.extend({ 5183addClass:function(value){ 5184var classNames,cur,curValue,className,i,finalValue; 5185if(isFunction(value)){ 5186return this.each(function(j){ 5187jQuery(this).addClass(value.call(this,j,getClass(this))); 5188}); 5189} 5190classNames=classesToArray(value); 5191if(classNames.length){ 5192return this.each(function(){ 5193curValue=getClass(this); 5194cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" "); 5195if(cur){ 5196for(i=0;i<classNames.length;i++){ 5197className=classNames[i]; 5198if(cur.indexOf(" "+className+" ")<0){ 5199cur+=className+" "; 5200} 5201} 5202finalValue=stripAndCollapse(cur); 5203if(curValue!==finalValue){ 5204this.setAttribute("class",finalValue); 5205} 5206} 5207}); 5208} 5209return this; 5210}, 5211removeClass:function(value){ 5212var classNames,cur,curValue,className,i,finalValue; 5213if(isFunction(value)){ 5214return this.each(function(j){ 5215jQuery(this).removeClass(value.call(this,j,getClass(this))); 5216}); 5217} 5218if(!arguments.length){ 5219return this.attr("class",""); 5220} 5221classNames=classesToArray(value); 5222if(classNames.length){ 5223return this.each(function(){ 5224curValue=getClass(this); 5225cur=this.nodeType===1&&(" "+stripAndCollapse(curValue)+" "); 5226if(cur){ 5227for(i=0;i<classNames.length;i++){ 5228className=classNames[i]; 5229while(cur.indexOf(" "+className+" ")>-1){ 5230cur=cur.replace(" "+className+" "," "); 5231} 5232} 5233finalValue=stripAndCollapse(cur); 5234if(curValue!==finalValue){ 5235this.setAttribute("class",finalValue); 5236} 5237} 5238}); 5239} 5240return this; 5241}, 5242toggleClass:function(value,stateVal){ 5243var classNames,className,i,self, 5244type=typeof value, 5245isValidValue=type==="string"||Array.isArray(value); 5246if(isFunction(value)){ 5247return this.each(function(i){ 5248jQuery(this).toggleClass( 5249value.call(this,i,getClass(this),stateVal), 5250stateVal 5251); 5252}); 5253} 5254if(typeof stateVal==="boolean"&&isValidValue){ 5255return stateVal?this.addClass(value):this.removeClass(value); 5256} 5257classNames=classesToArray(value); 5258return this.each(function(){ 5259if(isValidValue){ 5260self=jQuery(this); 5261for(i=0;i<classNames.length;i++){ 5262className=classNames[i]; 5263if(self.hasClass(className)){ 5264self.removeClass(className); 5265}else{ 5266self.addClass(className); 5267} 5268} 5269}else if(value===undefined||type==="boolean"){ 5270className=getClass(this); 5271if(className){ 5272dataPriv.set(this,"__className__",className); 5273} 5274if(this.setAttribute){ 5275this.setAttribute("class", 5276className||value===false? 5277"": 5278dataPriv.get(this,"__className__")||"" 5279); 5280} 5281} 5282}); 5283}, 5284hasClass:function(selector){ 5285var className,elem, 5286i=0; 5287className=" "+selector+" "; 5288while((elem=this[i++])){ 5289if(elem.nodeType===1&& 5290(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){ 5291return true; 5292} 5293} 5294return false; 5295} 5296}); 5297var rreturn=/\r/g; 5298jQuery.fn.extend({ 5299val:function(value){ 5300var hooks,ret,valueIsFunction, 5301elem=this[0]; 5302if(!arguments.length){ 5303if(elem){ 5304hooks=jQuery.valHooks[elem.type]|| 5305jQuery.valHooks[elem.nodeName.toLowerCase()]; 5306if(hooks&& 5307"get"in hooks&& 5308(ret=hooks.get(elem,"value"))!==undefined 5309){ 5310return ret; 5311} 5312ret=elem.value; 5313if(typeof ret==="string"){ 5314return ret.replace(rreturn,""); 5315} 5316return ret==null?"":ret; 5317} 5318return; 5319} 5320valueIsFunction=isFunction(value); 5321return this.each(function(i){ 5322var val; 5323if(this.nodeType!==1){ 5324return; 5325} 5326if(valueIsFunction){ 5327val=value.call(this,i,jQuery(this).val()); 5328}else{ 5329val=value; 5330} 5331if(val==null){ 5332val=""; 5333}else if(typeof val==="number"){ 5334val+=""; 5335}else if(Array.isArray(val)){ 5336val=jQuery.map(val,function(value){ 5337return value==null?"":value+""; 5338}); 5339} 5340hooks=jQuery.valHooks[this.type]||jQuery.valHooks[this.nodeName.toLowerCase()]; 5341if(!hooks||!("set"in hooks)||hooks.set(this,val,"value")===undefined){ 5342this.value=val; 5343} 5344}); 5345} 5346}); 5347jQuery.extend({ 5348valHooks:{ 5349option:{ 5350get:function(elem){ 5351var val=jQuery.find.attr(elem,"value"); 5352return val!=null? 5353val: 5354stripAndCollapse(jQuery.text(elem)); 5355} 5356}, 5357select:{ 5358get:function(elem){ 5359var value,option,i, 5360options=elem.options, 5361index=elem.selectedIndex, 5362one=elem.type==="select-one", 5363values=one?null:[], 5364max=one?index+1:options.length; 5365if(index<0){ 5366i=max; 5367}else{ 5368i=one?index:0; 5369} 5370for(;i<max;i++){ 5371option=options[i]; 5372if((option.selected||i===index)&& 5373!option.disabled&& 5374(!option.parentNode.disabled|| 5375!nodeName(option.parentNode,"optgroup"))){ 5376value=jQuery(option).val(); 5377if(one){ 5378return value; 5379} 5380values.push(value); 5381} 5382} 5383return values; 5384}, 5385set:function(elem,value){ 5386var optionSet,option, 5387options=elem.options, 5388values=jQuery.makeArray(value), 5389i=options.length; 5390while(i--){ 5391option=options[i]; 5392if(option.selected= 5393jQuery.inArray(jQuery.valHooks.option.get(option),values)>-1 5394){ 5395optionSet=true; 5396} 5397} 5398if(!optionSet){ 5399elem.selectedIndex=-1; 5400} 5401return values; 5402} 5403} 5404} 5405}); 5406jQuery.each(["radio","checkbox"],function(){ 5407jQuery.valHooks[this]={ 5408set:function(elem,value){ 5409if(Array.isArray(value)){ 5410return(elem.checked=jQuery.inArray(jQuery(elem).val(),value)>-1); 5411} 5412} 5413}; 5414if(!support.checkOn){ 5415jQuery.valHooks[this].get=function(elem){ 5416return elem.getAttribute("value")===null?"on":elem.value; 5417}; 5418} 5419}); 5420var location=window.location; 5421var nonce={guid:Date.now()}; 5422var rquery=(/\?/); 5423jQuery.parseXML=function(data){ 5424var xml,parserErrorElem; 5425if(!data||typeof data!=="string"){ 5426return null; 5427} 5428try{ 5429xml=(new window.DOMParser()).parseFromString(data,"text/xml"); 5430}catch(e){} 5431parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0]; 5432if(!xml||parserErrorElem){ 5433jQuery.error("Invalid XML: "+( 5434parserErrorElem? 5435jQuery.map(parserErrorElem.childNodes,function(el){ 5436return el.textContent; 5437}).join("\n"): 5438data 5439)); 5440} 5441return xml; 5442}; 5443var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/, 5444stopPropagationCallback=function(e){ 5445e.stopPropagation(); 5446}; 5447jQuery.extend(jQuery.event,{ 5448trigger:function(event,data,elem,onlyHandlers){ 5449var i,cur,tmp,bubbleType,ontype,handle,special,lastElement, 5450eventPath=[elem||document], 5451type=hasOwn.call(event,"type")?event.type:event, 5452namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[]; 5453cur=lastElement=tmp=elem=elem||document; 5454if(elem.nodeType===3||elem.nodeType===8){ 5455return; 5456} 5457if(rfocusMorph.test(type+jQuery.event.triggered)){ 5458return; 5459} 5460if(type.indexOf(".")>-1){ 5461namespaces=type.split("."); 5462type=namespaces.shift(); 5463namespaces.sort(); 5464} 5465ontype=type.indexOf(":")<0&&"on"+type; 5466event=event[jQuery.expando]? 5467event: 5468new jQuery.Event(type,typeof event==="object"&&event); 5469event.isTrigger=onlyHandlers?2:3; 5470event.namespace=namespaces.join("."); 5471event.rnamespace=event.namespace? 5472new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"): 5473null; 5474event.result=undefined; 5475if(!event.target){ 5476event.target=elem; 5477} 5478data=data==null? 5479[event]: 5480jQuery.makeArray(data,[event]); 5481special=jQuery.event.special[type]||{}; 5482if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){ 5483return; 5484} 5485if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){ 5486bubbleType=special.delegateType||type; 5487if(!rfocusMorph.test(bubbleType+type)){ 5488cur=cur.parentNode; 5489} 5490for(;cur;cur=cur.parentNode){ 5491eventPath.push(cur); 5492tmp=cur; 5493} 5494if(tmp===(elem.ownerDocument||document)){ 5495eventPath.push(tmp.defaultView||tmp.parentWindow||window); 5496} 5497} 5498i=0; 5499while((cur=eventPath[i++])&&!event.isPropagationStopped()){ 5500lastElement=cur; 5501event.type=i>1? 5502bubbleType: 5503special.bindType||type; 5504handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&& 5505dataPriv.get(cur,"handle"); 5506if(handle){ 5507handle.apply(cur,data); 5508} 5509handle=ontype&&cur[ontype]; 5510if(handle&&handle.apply&&acceptData(cur)){ 5511event.result=handle.apply(cur,data); 5512if(event.result===false){ 5513event.preventDefault(); 5514} 5515} 5516} 5517event.type=type; 5518if(!onlyHandlers&&!event.isDefaultPrevented()){ 5519if((!special._default|| 5520special._default.apply(eventPath.pop(),data)===false)&& 5521acceptData(elem)){ 5522if(ontype&&isFunction(elem[type])&&!isWindow(elem)){ 5523tmp=elem[ontype]; 5524if(tmp){ 5525elem[ontype]=null; 5526} 5527jQuery.event.triggered=type; 5528if(event.isPropagationStopped()){ 5529lastElement.addEventListener(type,stopPropagationCallback); 5530} 5531elem[type](); 5532if(event.isPropagationStopped()){ 5533lastElement.removeEventListener(type,stopPropagationCallback); 5534} 5535jQuery.event.triggered=undefined; 5536if(tmp){ 5537elem[ontype]=tmp; 5538} 5539} 5540} 5541} 5542return event.result; 5543}, 5544simulate:function(type,elem,event){ 5545var e=jQuery.extend( 5546new jQuery.Event(), 5547event, 5548{ 5549type:type, 5550isSimulated:true 5551} 5552); 5553jQuery.event.trigger(e,null,elem); 5554} 5555}); 5556jQuery.fn.extend({ 5557trigger:function(type,data){ 5558return this.each(function(){ 5559jQuery.event.trigger(type,data,this); 5560}); 5561}, 5562triggerHandler:function(type,data){ 5563var elem=this[0]; 5564if(elem){ 5565return jQuery.event.trigger(type,data,elem,true); 5566} 5567} 5568}); 5569var 5570rbracket=/\[\]$/, 5571rCRLF=/\r?\n/g, 5572rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i, 5573rsubmittable=/^(?:input|select|textarea|keygen)/i; 5574function buildParams(prefix,obj,traditional,add){ 5575var name; 5576if(Array.isArray(obj)){ 5577jQuery.each(obj,function(i,v){ 5578if(traditional||rbracket.test(prefix)){ 5579add(prefix,v); 5580}else{ 5581buildParams( 5582prefix+"["+(typeof v==="object"&&v!=null?i:"")+"]", 5583v, 5584traditional, 5585add 5586); 5587} 5588}); 5589}else if(!traditional&&toType(obj)==="object"){ 5590for(name in obj){ 5591buildParams(prefix+"["+name+"]",obj[name],traditional,add); 5592} 5593}else{ 5594add(prefix,obj); 5595} 5596} 5597jQuery.param=function(a,traditional){ 5598var prefix, 5599s=[], 5600add=function(key,valueOrFunction){ 5601var value=isFunction(valueOrFunction)? 5602valueOrFunction(): 5603valueOrFunction; 5604s[s.length]=encodeURIComponent(key)+"="+ 5605encodeURIComponent(value==null?"":value); 5606}; 5607if(a==null){ 5608return""; 5609} 5610if(Array.isArray(a)||(a.jquery&&!jQuery.isPlainObject(a))){ 5611jQuery.each(a,function(){ 5612add(this.name,this.value); 5613}); 5614}else{ 5615for(prefix in a){ 5616buildParams(prefix,a[prefix],traditional,add); 5617} 5618} 5619return s.join("&"); 5620}; 5621jQuery.fn.extend({ 5622serialize:function(){ 5623return jQuery.param(this.serializeArray()); 5624}, 5625serializeArray:function(){ 5626return this.map(function(){ 5627var elements=jQuery.prop(this,"elements"); 5628return elements?jQuery.makeArray(elements):this; 5629}).filter(function(){ 5630var type=this.type; 5631return this.name&&!jQuery(this).is(":disabled")&& 5632rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&& 5633(this.checked||!rcheckableType.test(type)); 5634}).map(function(_i,elem){ 5635var val=jQuery(this).val(); 5636if(val==null){ 5637return null; 5638} 5639if(Array.isArray(val)){ 5640return jQuery.map(val,function(val){ 5641return{name:elem.name,value:val.replace(rCRLF,"\r\n")}; 5642}); 5643} 5644return{name:elem.name,value:val.replace(rCRLF,"\r\n")}; 5645}).get(); 5646} 5647}); 5648var 5649r20=/%20/g, 5650rhash=/#.*$/, 5651rantiCache=/([?&])_=[^&]*/, 5652rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg, 5653rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/, 5654rnoContent=/^(?:GET|HEAD)$/, 5655rprotocol=/^\/\//, 5656prefilters={}, 5657transports={}, 5658allTypes="*/".concat("*"), 5659originAnchor=document.createElement("a"); 5660originAnchor.href=location.href; 5661function addToPrefiltersOrTransports(structure){ 5662return function(dataTypeExpression,func){ 5663if(typeof dataTypeExpression!=="string"){ 5664func=dataTypeExpression; 5665dataTypeExpression="*"; 5666} 5667var dataType, 5668i=0, 5669dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[]; 5670if(isFunction(func)){ 5671while((dataType=dataTypes[i++])){ 5672if(dataType[0]==="+"){ 5673dataType=dataType.slice(1)||"*"; 5674(structure[dataType]=structure[dataType]||[]).unshift(func); 5675}else{ 5676(structure[dataType]=structure[dataType]||[]).push(func); 5677} 5678} 5679} 5680}; 5681} 5682function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){ 5683var inspected={}, 5684seekingTransport=(structure===transports); 5685function inspect(dataType){ 5686var selected; 5687inspected[dataType]=true; 5688jQuery.each(structure[dataType]||[],function(_,prefilterOrFactory){ 5689var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR); 5690if(typeof dataTypeOrTransport==="string"&& 5691!seekingTransport&&!inspected[dataTypeOrTransport]){ 5692options.dataTypes.unshift(dataTypeOrTransport); 5693inspect(dataTypeOrTransport); 5694return false; 5695}else if(seekingTransport){ 5696return!(selected=dataTypeOrTransport); 5697} 5698}); 5699return selected; 5700} 5701return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*"); 5702} 5703function ajaxExtend(target,src){ 5704var key,deep, 5705flatOptions=jQuery.ajaxSettings.flatOptions||{}; 5706for(key in src){ 5707if(src[key]!==undefined){ 5708(flatOptions[key]?target:(deep||(deep={})))[key]=src[key]; 5709} 5710} 5711if(deep){ 5712jQuery.extend(true,target,deep); 5713} 5714return target; 5715} 5716function ajaxHandleResponses(s,jqXHR,responses){ 5717var ct,type,finalDataType,firstDataType, 5718contents=s.contents, 5719dataTypes=s.dataTypes; 5720while(dataTypes[0]==="*"){ 5721dataTypes.shift(); 5722if(ct===undefined){ 5723ct=s.mimeType||jqXHR.getResponseHeader("Content-Type"); 5724} 5725} 5726if(ct){ 5727for(type in contents){ 5728if(contents[type]&&contents[type].test(ct)){ 5729dataTypes.unshift(type); 5730break; 5731} 5732} 5733} 5734if(dataTypes[0]in responses){ 5735finalDataType=dataTypes[0]; 5736}else{ 5737for(type in responses){ 5738if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){ 5739finalDataType=type; 5740break; 5741} 5742if(!firstDataType){ 5743firstDataType=type; 5744} 5745} 5746finalDataType=finalDataType||firstDataType; 5747} 5748if(finalDataType){ 5749if(finalDataType!==dataTypes[0]){ 5750dataTypes.unshift(finalDataType); 5751} 5752return responses[finalDataType]; 5753} 5754} 5755function ajaxConvert(s,response,jqXHR,isSuccess){ 5756var conv2,current,conv,tmp,prev, 5757converters={}, 5758dataTypes=s.dataTypes.slice(); 5759if(dataTypes[1]){ 5760for(conv in s.converters){ 5761converters[conv.toLowerCase()]=s.converters[conv]; 5762} 5763} 5764current=dataTypes.shift(); 5765while(current){ 5766if(s.responseFields[current]){ 5767jqXHR[s.responseFields[current]]=response; 5768} 5769if(!prev&&isSuccess&&s.dataFilter){ 5770response=s.dataFilter(response,s.dataType); 5771} 5772prev=current; 5773current=dataTypes.shift(); 5774if(current){ 5775if(current==="*"){ 5776current=prev; 5777}else if(prev!=="*"&&prev!==current){ 5778conv=converters[prev+" "+current]||converters["* "+current]; 5779if(!conv){ 5780for(conv2 in converters){ 5781tmp=conv2.split(" "); 5782if(tmp[1]===current){ 5783conv=converters[prev+" "+tmp[0]]|| 5784converters["* "+tmp[0]]; 5785if(conv){ 5786if(conv===true){ 5787conv=converters[conv2]; 5788}else if(converters[conv2]!==true){ 5789current=tmp[0]; 5790dataTypes.unshift(tmp[1]); 5791} 5792break; 5793} 5794} 5795} 5796} 5797if(conv!==true){ 5798if(conv&&s.throws){ 5799response=conv(response); 5800}else{ 5801try{ 5802response=conv(response); 5803}catch(e){ 5804return{ 5805state:"parsererror", 5806error:conv?e:"No conversion from "+prev+" to "+current 5807}; 5808} 5809} 5810} 5811} 5812} 5813} 5814return{state:"success",data:response}; 5815} 5816jQuery.extend({ 5817active:0, 5818lastModified:{}, 5819etag:{}, 5820ajaxSettings:{ 5821url:location.href, 5822type:"GET", 5823isLocal:rlocalProtocol.test(location.protocol), 5824global:true, 5825processData:true, 5826async:true, 5827contentType:"application/x-www-form-urlencoded; charset=UTF-8", 5828accepts:{ 5829"*":allTypes, 5830text:"text/plain", 5831html:"text/html", 5832xml:"application/xml, text/xml", 5833json:"application/json, text/javascript" 5834}, 5835contents:{ 5836xml:/\bxml\b/, 5837html:/\bhtml/, 5838json:/\bjson\b/ 5839}, 5840responseFields:{ 5841xml:"responseXML", 5842text:"responseText", 5843json:"responseJSON" 5844}, 5845converters:{ 5846"* text":String, 5847"text html":true, 5848"text json":JSON.parse, 5849"text xml":jQuery.parseXML 5850}, 5851flatOptions:{ 5852url:true, 5853context:true 5854} 5855}, 5856ajaxSetup:function(target,settings){ 5857return settings? 5858ajaxExtend(ajaxExtend(target,jQuery.ajaxSettings),settings): 5859ajaxExtend(jQuery.ajaxSettings,target); 5860}, 5861ajaxPrefilter:addToPrefiltersOrTransports(prefilters), 5862ajaxTransport:addToPrefiltersOrTransports(transports), 5863ajax:function(url,options){ 5864if(typeof url==="object"){ 5865options=url; 5866url=undefined; 5867} 5868options=options||{}; 5869var transport, 5870cacheURL, 5871responseHeadersString, 5872responseHeaders, 5873timeoutTimer, 5874urlAnchor, 5875completed, 5876fireGlobals, 5877i, 5878uncached, 5879s=jQuery.ajaxSetup({},options), 5880callbackContext=s.context||s, 5881globalEventContext=s.context&& 5882(callbackContext.nodeType||callbackContext.jquery)? 5883jQuery(callbackContext): 5884jQuery.event, 5885deferred=jQuery.Deferred(), 5886completeDeferred=jQuery.Callbacks("once memory"), 5887statusCode=s.statusCode||{}, 5888requestHeaders={}, 5889requestHeadersNames={}, 5890strAbort="canceled", 5891jqXHR={ 5892readyState:0, 5893getResponseHeader:function(key){ 5894var match; 5895if(completed){ 5896if(!responseHeaders){ 5897responseHeaders={}; 5898while((match=rheaders.exec(responseHeadersString))){ 5899responseHeaders[match[1].toLowerCase()+" "]= 5900(responseHeaders[match[1].toLowerCase()+" "]||[]) 5901.concat(match[2]); 5902} 5903} 5904match=responseHeaders[key.toLowerCase()+" "]; 5905} 5906return match==null?null:match.join(", "); 5907}, 5908getAllResponseHeaders:function(){ 5909return completed?responseHeadersString:null; 5910}, 5911setRequestHeader:function(name,value){ 5912if(completed==null){ 5913name=requestHeadersNames[name.toLowerCase()]= 5914requestHeadersNames[name.toLowerCase()]||name; 5915requestHeaders[name]=value; 5916} 5917return this; 5918}, 5919overrideMimeType:function(type){ 5920if(completed==null){ 5921s.mimeType=type; 5922} 5923return this; 5924}, 5925statusCode:function(map){ 5926var code; 5927if(map){ 5928if(completed){ 5929jqXHR.always(map[jqXHR.status]); 5930}else{ 5931for(code in map){ 5932statusCode[code]=[statusCode[code],map[code]]; 5933} 5934} 5935} 5936return this; 5937}, 5938abort:function(statusText){ 5939var finalText=statusText||strAbort; 5940if(transport){ 5941transport.abort(finalText); 5942} 5943done(0,finalText); 5944return this; 5945} 5946}; 5947deferred.promise(jqXHR); 5948s.url=((url||s.url||location.href)+"") 5949.replace(rprotocol,location.protocol+"//"); 5950s.type=options.method||options.type||s.method||s.type; 5951s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""]; 5952if(s.crossDomain==null){ 5953urlAnchor=document.createElement("a"); 5954try{ 5955urlAnchor.href=s.url; 5956urlAnchor.href=urlAnchor.href; 5957s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!== 5958urlAnchor.protocol+"//"+urlAnchor.host; 5959}catch(e){ 5960s.crossDomain=true; 5961} 5962} 5963if(s.data&&s.processData&&typeof s.data!=="string"){ 5964s.data=jQuery.param(s.data,s.traditional); 5965} 5966inspectPrefiltersOrTransports(prefilters,s,options,jqXHR); 5967if(completed){ 5968return jqXHR; 5969} 5970fireGlobals=jQuery.event&&s.global; 5971if(fireGlobals&&jQuery.active++===0){ 5972jQuery.event.trigger("ajaxStart"); 5973} 5974s.type=s.type.toUpperCase(); 5975s.hasContent=!rnoContent.test(s.type); 5976cacheURL=s.url.replace(rhash,""); 5977if(!s.hasContent){ 5978uncached=s.url.slice(cacheURL.length); 5979if(s.data&&(s.processData||typeof s.data==="string")){ 5980cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data; 5981delete s.data; 5982} 5983if(s.cache===false){ 5984cacheURL=cacheURL.replace(rantiCache,"$1"); 5985uncached=(rquery.test(cacheURL)?"&":"?")+"_="+(nonce.guid++)+ 5986uncached; 5987} 5988s.url=cacheURL+uncached; 5989}else if(s.data&&s.processData&& 5990(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){ 5991s.data=s.data.replace(r20,"+"); 5992} 5993if(s.ifModified){ 5994if(jQuery.lastModified[cacheURL]){ 5995jqXHR.setRequestHeader("If-Modified-Since",jQuery.lastModified[cacheURL]); 5996} 5997if(jQuery.etag[cacheURL]){ 5998jqXHR.setRequestHeader("If-None-Match",jQuery.etag[cacheURL]); 5999} 6000} 6001if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){ 6002jqXHR.setRequestHeader("Content-Type",s.contentType); 6003} 6004jqXHR.setRequestHeader( 6005"Accept", 6006s.dataTypes[0]&&s.accepts[s.dataTypes[0]]? 6007s.accepts[s.dataTypes[0]]+ 6008(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""): 6009s.accepts["*"] 6010); 6011for(i in s.headers){ 6012jqXHR.setRequestHeader(i,s.headers[i]); 6013} 6014if(s.beforeSend&& 6015(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){ 6016return jqXHR.abort(); 6017} 6018strAbort="abort"; 6019completeDeferred.add(s.complete); 6020jqXHR.done(s.success); 6021jqXHR.fail(s.error); 6022transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR); 6023if(!transport){ 6024done(-1,"No Transport"); 6025}else{ 6026jqXHR.readyState=1; 6027if(fireGlobals){ 6028globalEventContext.trigger("ajaxSend",[jqXHR,s]); 6029} 6030if(completed){ 6031return jqXHR; 6032} 6033if(s.async&&s.timeout>0){ 6034timeoutTimer=window.setTimeout(function(){ 6035jqXHR.abort("timeout"); 6036},s.timeout); 6037} 6038try{ 6039completed=false; 6040transport.send(requestHeaders,done); 6041}catch(e){ 6042if(completed){ 6043throw e; 6044} 6045done(-1,e); 6046} 6047} 6048function done(status,nativeStatusText,responses,headers){ 6049var isSuccess,success,error,response,modified, 6050statusText=nativeStatusText; 6051if(completed){ 6052return; 6053} 6054completed=true; 6055if(timeoutTimer){ 6056window.clearTimeout(timeoutTimer); 6057} 6058transport=undefined; 6059responseHeadersString=headers||""; 6060jqXHR.readyState=status>0?4:0; 6061isSuccess=status>=200&&status<300||status===304; 6062if(responses){ 6063response=ajaxHandleResponses(s,jqXHR,responses); 6064} 6065if(!isSuccess&& 6066jQuery.inArray("script",s.dataTypes)>-1&& 6067jQuery.inArray("json",s.dataTypes)<0){ 6068s.converters["text script"]=function(){}; 6069} 6070response=ajaxConvert(s,response,jqXHR,isSuccess); 6071if(isSuccess){ 6072if(s.ifModified){ 6073modified=jqXHR.getResponseHeader("Last-Modified"); 6074if(modified){ 6075jQuery.lastModified[cacheURL]=modified; 6076} 6077modified=jqXHR.getResponseHeader("etag"); 6078if(modified){ 6079jQuery.etag[cacheURL]=modified; 6080} 6081} 6082if(status===204||s.type==="HEAD"){ 6083statusText="nocontent"; 6084}else if(status===304){ 6085statusText="notmodified"; 6086}else{ 6087statusText=response.state; 6088success=response.data; 6089error=response.error; 6090isSuccess=!error; 6091} 6092}else{ 6093error=statusText; 6094if(status||!statusText){ 6095statusText="error"; 6096if(status<0){ 6097status=0; 6098} 6099} 6100} 6101jqXHR.status=status; 6102jqXHR.statusText=(nativeStatusText||statusText)+""; 6103if(isSuccess){ 6104deferred.resolveWith(callbackContext,[success,statusText,jqXHR]); 6105}else{ 6106deferred.rejectWith(callbackContext,[jqXHR,statusText,error]); 6107} 6108jqXHR.statusCode(statusCode); 6109statusCode=undefined; 6110if(fireGlobals){ 6111globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError", 6112[jqXHR,s,isSuccess?success:error]); 6113} 6114completeDeferred.fireWith(callbackContext,[jqXHR,statusText]); 6115if(fireGlobals){ 6116globalEventContext.trigger("ajaxComplete",[jqXHR,s]); 6117if(!(--jQuery.active)){ 6118jQuery.event.trigger("ajaxStop"); 6119} 6120} 6121} 6122return jqXHR; 6123}, 6124getJSON:function(url,data,callback){ 6125return jQuery.get(url,data,callback,"json"); 6126}, 6127getScript:function(url,callback){ 6128return jQuery.get(url,undefined,callback,"script"); 6129} 6130}); 6131jQuery.each(["get","post"],function(_i,method){ 6132jQuery[method]=function(url,data,callback,type){ 6133if(isFunction(data)){ 6134type=type||callback; 6135callback=data; 6136data=undefined; 6137} 6138return jQuery.ajax(jQuery.extend({ 6139url:url, 6140type:method, 6141dataType:type, 6142data:data, 6143success:callback 6144},jQuery.isPlainObject(url)&&url)); 6145}; 6146}); 6147jQuery.ajaxPrefilter(function(s){ 6148var i; 6149for(i in s.headers){ 6150if(i.toLowerCase()==="content-type"){ 6151s.contentType=s.headers[i]||""; 6152} 6153} 6154}); 6155jQuery._evalUrl=function(url,options,doc){ 6156return jQuery.ajax({ 6157url:url, 6158type:"GET", 6159dataType:"script", 6160cache:true, 6161async:false, 6162global:false, 6163converters:{ 6164"text script":function(){} 6165}, 6166dataFilter:function(response){ 6167jQuery.globalEval(response,options,doc); 6168} 6169}); 6170}; 6171jQuery.fn.extend({ 6172wrapAll:function(html){ 6173var wrap; 6174if(this[0]){ 6175if(isFunction(html)){ 6176html=html.call(this[0]); 6177} 6178wrap=jQuery(html,this[0].ownerDocument).eq(0).clone(true); 6179if(this[0].parentNode){ 6180wrap.insertBefore(this[0]); 6181} 6182wrap.map(function(){ 6183var elem=this; 6184while(elem.firstElementChild){ 6185elem=elem.firstElementChild; 6186} 6187return elem; 6188}).append(this); 6189} 6190return this; 6191}, 6192wrapInner:function(html){ 6193if(isFunction(html)){ 6194return this.each(function(i){ 6195jQuery(this).wrapInner(html.call(this,i)); 6196}); 6197} 6198return this.each(function(){ 6199var self=jQuery(this), 6200contents=self.contents(); 6201if(contents.length){ 6202contents.wrapAll(html); 6203}else{ 6204self.append(html); 6205} 6206}); 6207}, 6208wrap:function(html){ 6209var htmlIsFunction=isFunction(html); 6210return this.each(function(i){ 6211jQuery(this).wrapAll(htmlIsFunction?html.call(this,i):html); 6212}); 6213}, 6214unwrap:function(selector){ 6215this.parent(selector).not("body").each(function(){ 6216jQuery(this).replaceWith(this.childNodes); 6217}); 6218return this; 6219} 6220}); 6221jQuery.expr.pseudos.hidden=function(elem){ 6222return!jQuery.expr.pseudos.visible(elem); 6223}; 6224jQuery.expr.pseudos.visible=function(elem){ 6225return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length); 6226}; 6227jQuery.ajaxSettings.xhr=function(){ 6228try{ 6229return new window.XMLHttpRequest(); 6230}catch(e){} 6231}; 6232var xhrSuccessStatus={ 62330:200, 62341223:204 6235}, 6236xhrSupported=jQuery.ajaxSettings.xhr(); 6237support.cors=!!xhrSupported&&("withCredentials"in xhrSupported); 6238support.ajax=xhrSupported=!!xhrSupported; 6239jQuery.ajaxTransport(function(options){ 6240var callback,errorCallback; 6241if(support.cors||xhrSupported&&!options.crossDomain){ 6242return{ 6243send:function(headers,complete){ 6244var i, 6245xhr=options.xhr(); 6246xhr.open( 6247options.type, 6248options.url, 6249options.async, 6250options.username, 6251options.password 6252); 6253if(options.xhrFields){ 6254for(i in options.xhrFields){ 6255xhr[i]=options.xhrFields[i]; 6256} 6257} 6258if(options.mimeType&&xhr.overrideMimeType){ 6259xhr.overrideMimeType(options.mimeType); 6260} 6261if(!options.crossDomain&&!headers["X-Requested-With"]){ 6262headers["X-Requested-With"]="XMLHttpRequest"; 6263} 6264for(i in headers){ 6265xhr.setRequestHeader(i,headers[i]); 6266} 6267callback=function(type){ 6268return function(){ 6269if(callback){ 6270callback=errorCallback=xhr.onload= 6271xhr.onerror=xhr.onabort=xhr.ontimeout= 6272xhr.onreadystatechange=null; 6273if(type==="abort"){ 6274xhr.abort(); 6275}else if(type==="error"){ 6276if(typeof xhr.status!=="number"){ 6277complete(0,"error"); 6278}else{ 6279complete( 6280xhr.status, 6281xhr.statusText 6282); 6283} 6284}else{ 6285complete( 6286xhrSuccessStatus[xhr.status]||xhr.status, 6287xhr.statusText, 6288(xhr.responseType||"text")!=="text"|| 6289typeof xhr.responseText!=="string"? 6290{binary:xhr.response}: 6291{text:xhr.responseText}, 6292xhr.getAllResponseHeaders() 6293); 6294} 6295} 6296}; 6297}; 6298xhr.onload=callback(); 6299errorCallback=xhr.onerror=xhr.ontimeout=callback("error"); 6300if(xhr.onabort!==undefined){ 6301xhr.onabort=errorCallback; 6302}else{ 6303xhr.onreadystatechange=function(){ 6304if(xhr.readyState===4){ 6305window.setTimeout(function(){ 6306if(callback){ 6307errorCallback(); 6308} 6309}); 6310} 6311}; 6312} 6313callback=callback("abort"); 6314try{ 6315xhr.send(options.hasContent&&options.data||null); 6316}catch(e){ 6317if(callback){ 6318throw e; 6319} 6320} 6321}, 6322abort:function(){ 6323if(callback){ 6324callback(); 6325} 6326} 6327}; 6328} 6329}); 6330jQuery.ajaxPrefilter(function(s){ 6331if(s.crossDomain){ 6332s.contents.script=false; 6333} 6334}); 6335jQuery.ajaxSetup({ 6336accepts:{ 6337script:"text/javascript, application/javascript, "+ 6338"application/ecmascript, application/x-ecmascript" 6339}, 6340contents:{ 6341script:/\b(?:java|ecma)script\b/ 6342}, 6343converters:{ 6344"text script":function(text){ 6345jQuery.globalEval(text); 6346return text; 6347} 6348} 6349}); 6350jQuery.ajaxPrefilter("script",function(s){ 6351if(s.cache===undefined){ 6352s.cache=false; 6353} 6354if(s.crossDomain){ 6355s.type="GET"; 6356} 6357}); 6358jQuery.ajaxTransport("script",function(s){ 6359if(s.crossDomain||s.scriptAttrs){ 6360var script,callback; 6361return{ 6362send:function(_,complete){ 6363script=jQuery("<script>") 6364.attr(s.scriptAttrs||{}) 6365.prop({charset:s.scriptCharset,src:s.url}) 6366.on("load error",callback=function(evt){ 6367script.remove(); 6368callback=null; 6369if(evt){ 6370complete(evt.type==="error"?404:200,evt.type); 6371} 6372}); 6373document.head.appendChild(script[0]); 6374}, 6375abort:function(){ 6376if(callback){ 6377callback(); 6378} 6379} 6380}; 6381} 6382}); 6383var oldCallbacks=[], 6384rjsonp=/(=)\?(?=&|$)|\?\?/; 6385jQuery.ajaxSetup({ 6386jsonp:"callback", 6387jsonpCallback:function(){ 6388var callback=oldCallbacks.pop()||(jQuery.expando+"_"+(nonce.guid++)); 6389this[callback]=true; 6390return callback; 6391} 6392}); 6393jQuery.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){ 6394var callbackName,overwritten,responseContainer, 6395jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)? 6396"url": 6397typeof s.data==="string"&& 6398(s.contentType||"") 6399.indexOf("application/x-www-form-urlencoded")===0&& 6400rjsonp.test(s.data)&&"data" 6401); 6402if(jsonProp||s.dataTypes[0]==="jsonp"){ 6403callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)? 6404s.jsonpCallback(): 6405s.jsonpCallback; 6406if(jsonProp){ 6407s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName); 6408}else if(s.jsonp!==false){ 6409s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName; 6410} 6411s.converters["script json"]=function(){ 6412if(!responseContainer){ 6413jQuery.error(callbackName+" was not called"); 6414} 6415return responseContainer[0]; 6416}; 6417s.dataTypes[0]="json"; 6418overwritten=window[callbackName]; 6419window[callbackName]=function(){ 6420responseContainer=arguments; 6421}; 6422jqXHR.always(function(){ 6423if(overwritten===undefined){ 6424jQuery(window).removeProp(callbackName); 6425}else{ 6426window[callbackName]=overwritten; 6427} 6428if(s[callbackName]){ 6429s.jsonpCallback=originalSettings.jsonpCallback; 6430oldCallbacks.push(callbackName); 6431} 6432if(responseContainer&&isFunction(overwritten)){ 6433overwritten(responseContainer[0]); 6434} 6435responseContainer=overwritten=undefined; 6436}); 6437return"script"; 6438} 6439}); 6440support.createHTMLDocument=(function(){ 6441var body=document.implementation.createHTMLDocument("").body; 6442body.innerHTML="<form></form><form></form>"; 6443return body.childNodes.length===2; 6444})(); 6445jQuery.parseHTML=function(data,context,keepScripts){ 6446if(typeof data!=="string"){ 6447return[]; 6448} 6449if(typeof context==="boolean"){ 6450keepScripts=context; 6451context=false; 6452} 6453var base,parsed,scripts; 6454if(!context){ 6455if(support.createHTMLDocument){ 6456context=document.implementation.createHTMLDocument(""); 6457base=context.createElement("base"); 6458base.href=document.location.href; 6459context.head.appendChild(base); 6460}else{ 6461context=document; 6462} 6463} 6464parsed=rsingleTag.exec(data); 6465scripts=!keepScripts&&[]; 6466if(parsed){ 6467return[context.createElement(parsed[1])]; 6468} 6469parsed=buildFragment([data],context,scripts); 6470if(scripts&&scripts.length){ 6471jQuery(scripts).remove(); 6472} 6473return jQuery.merge([],parsed.childNodes); 6474}; 6475jQuery.fn.load=function(url,params,callback){ 6476var selector,type,response, 6477self=this, 6478off=url.indexOf(" "); 6479if(off>-1){ 6480selector=stripAndCollapse(url.slice(off)); 6481url=url.slice(0,off); 6482} 6483if(isFunction(params)){ 6484callback=params; 6485params=undefined; 6486}else if(params&&typeof params==="object"){ 6487type="POST"; 6488} 6489if(self.length>0){ 6490jQuery.ajax({ 6491url:url, 6492type:type||"GET", 6493dataType:"html", 6494data:params 6495}).done(function(responseText){ 6496response=arguments; 6497self.html(selector? 6498jQuery("<div>").append(jQuery.parseHTML(responseText)).find(selector): 6499responseText); 6500}).always(callback&&function(jqXHR,status){ 6501self.each(function(){ 6502callback.apply(this,response||[jqXHR.responseText,status,jqXHR]); 6503}); 6504}); 6505} 6506return this; 6507}; 6508jQuery.expr.pseudos.animated=function(elem){ 6509return jQuery.grep(jQuery.timers,function(fn){ 6510return elem===fn.elem; 6511}).length; 6512}; 6513jQuery.offset={ 6514setOffset:function(elem,options,i){ 6515var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition, 6516position=jQuery.css(elem,"position"), 6517curElem=jQuery(elem), 6518props={}; 6519if(position==="static"){ 6520elem.style.position="relative"; 6521} 6522curOffset=curElem.offset(); 6523curCSSTop=jQuery.css(elem,"top"); 6524curCSSLeft=jQuery.css(elem,"left"); 6525calculatePosition=(position==="absolute"||position==="fixed")&& 6526(curCSSTop+curCSSLeft).indexOf("auto")>-1; 6527if(calculatePosition){ 6528curPosition=curElem.position(); 6529curTop=curPosition.top; 6530curLeft=curPosition.left; 6531}else{ 6532curTop=parseFloat(curCSSTop)||0; 6533curLeft=parseFloat(curCSSLeft)||0; 6534} 6535if(isFunction(options)){ 6536options=options.call(elem,i,jQuery.extend({},curOffset)); 6537} 6538if(options.top!=null){ 6539props.top=(options.top-curOffset.top)+curTop; 6540} 6541if(options.left!=null){ 6542props.left=(options.left-curOffset.left)+curLeft; 6543} 6544if("using"in options){ 6545options.using.call(elem,props); 6546}else{ 6547curElem.css(props); 6548} 6549} 6550}; 6551jQuery.fn.extend({ 6552offset:function(options){ 6553if(arguments.length){ 6554return options===undefined? 6555this: 6556this.each(function(i){ 6557jQuery.offset.setOffset(this,options,i); 6558}); 6559} 6560var rect,win, 6561elem=this[0]; 6562if(!elem){ 6563return; 6564} 6565if(!elem.getClientRects().length){ 6566return{top:0,left:0}; 6567} 6568rect=elem.getBoundingClientRect(); 6569win=elem.ownerDocument.defaultView; 6570return{ 6571top:rect.top+win.pageYOffset, 6572left:rect.left+win.pageXOffset 6573}; 6574}, 6575position:function(){ 6576if(!this[0]){ 6577return; 6578} 6579var offsetParent,offset,doc, 6580elem=this[0], 6581parentOffset={top:0,left:0}; 6582if(jQuery.css(elem,"position")==="fixed"){ 6583offset=elem.getBoundingClientRect(); 6584}else{ 6585offset=this.offset(); 6586doc=elem.ownerDocument; 6587offsetParent=elem.offsetParent||doc.documentElement; 6588while(offsetParent&& 6589(offsetParent===doc.body||offsetParent===doc.documentElement)&& 6590jQuery.css(offsetParent,"position")==="static"){ 6591offsetParent=offsetParent.parentNode; 6592} 6593if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){ 6594parentOffset=jQuery(offsetParent).offset(); 6595parentOffset.top+=jQuery.css(offsetParent,"borderTopWidth",true); 6596parentOffset.left+=jQuery.css(offsetParent,"borderLeftWidth",true); 6597} 6598} 6599return{ 6600top:offset.top-parentOffset.top-jQuery.css(elem,"marginTop",true), 6601left:offset.left-parentOffset.left-jQuery.css(elem,"marginLeft",true) 6602}; 6603}, 6604offsetParent:function(){ 6605return this.map(function(){ 6606var offsetParent=this.offsetParent; 6607while(offsetParent&&jQuery.css(offsetParent,"position")==="static"){ 6608offsetParent=offsetParent.offsetParent; 6609} 6610return offsetParent||documentElement; 6611}); 6612} 6613}); 6614jQuery.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){ 6615var top="pageYOffset"===prop; 6616jQuery.fn[method]=function(val){ 6617return access(this,function(elem,method,val){ 6618var win; 6619if(isWindow(elem)){ 6620win=elem; 6621}else if(elem.nodeType===9){ 6622win=elem.defaultView; 6623} 6624if(val===undefined){ 6625return win?win[prop]:elem[method]; 6626} 6627if(win){ 6628win.scrollTo( 6629!top?val:win.pageXOffset, 6630top?val:win.pageYOffset 6631); 6632}else{ 6633elem[method]=val; 6634} 6635},method,val,arguments.length); 6636}; 6637});
6638jQuery.each(["top","left"],function(_i,prop){ 6639jQuery.cssHooks[prop]=addGetHookIf(support.pixelPosition, 6640function(elem,computed){ 6641if(computed){ 6642computed=curCSS(elem,prop); 6643return rnumnonpx.test(computed)? 6644jQuery(elem).position()[prop]+"px": 6645computed; 6646} 6647} 6648); 6649}); 6650jQuery.each({Height:"height",Width:"width"},function(name,type){ 6651jQuery.each({ 6652padding:"inner"+name, 6653content:type, 6654"":"outer"+name 6655},function(defaultExtra,funcName){ 6656jQuery.fn[funcName]=function(margin,value){ 6657var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"), 6658extra=defaultExtra||(margin===true||value===true?"margin":"border"); 6659return access(this,function(elem,type,value){ 6660var doc; 6661if(isWindow(elem)){ 6662return funcName.indexOf("outer")===0? 6663elem["inner"+name]: 6664elem.document.documentElement["client"+name]; 6665} 6666if(elem.nodeType===9){ 6667doc=elem.documentElement; 6668return Math.max( 6669elem.body["scroll"+name],doc["scroll"+name], 6670elem.body["offset"+name],doc["offset"+name], 6671doc["client"+name] 6672); 6673} 6674return value===undefined? 6675jQuery.css(elem,type,extra): 6676jQuery.style(elem,type,value,extra); 6677},type,chainable?margin:undefined,chainable); 6678}; 6679}); 6680}); 6681jQuery.each([ 6682"ajaxStart", 6683"ajaxStop", 6684"ajaxComplete", 6685"ajaxError", 6686"ajaxSuccess", 6687"ajaxSend" 6688],function(_i,type){ 6689jQuery.fn[type]=function(fn){ 6690return this.on(type,fn); 6691}; 6692}); 6693jQuery.fn.extend({ 6694bind:function(types,data,fn){ 6695return this.on(types,null,data,fn); 6696}, 6697unbind:function(types,fn){ 6698return this.off(types,null,fn); 6699}, 6700delegate:function(selector,types,data,fn){ 6701return this.on(types,selector,data,fn); 6702}, 6703undelegate:function(selector,types,fn){ 6704return arguments.length===1? 6705this.off(selector,"**"): 6706this.off(types,selector||"**",fn); 6707}, 6708hover:function(fnOver,fnOut){ 6709return this 6710.on("mouseenter",fnOver) 6711.on("mouseleave",fnOut||fnOver); 6712} 6713}); 6714jQuery.each( 6715("blur focus focusin focusout resize scroll click dblclick "+ 6716"mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave "+ 6717"change select submit keydown keypress keyup contextmenu").split(" "), 6718function(_i,name){ 6719jQuery.fn[name]=function(data,fn){ 6720return arguments.length>0? 6721this.on(name,null,data,fn): 6722this.trigger(name); 6723}; 6724} 6725); 6726var rtrim=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g; 6727jQuery.proxy=function(fn,context){ 6728var tmp,args,proxy; 6729if(typeof context==="string"){ 6730tmp=fn[context]; 6731context=fn; 6732fn=tmp; 6733} 6734if(!isFunction(fn)){ 6735return undefined; 6736} 6737args=slice.call(arguments,2); 6738proxy=function(){ 6739return fn.apply(context||this,args.concat(slice.call(arguments))); 6740}; 6741proxy.guid=fn.guid=fn.guid||jQuery.guid++; 6742return proxy; 6743}; 6744jQuery.holdReady=function(hold){ 6745if(hold){ 6746jQuery.readyWait++; 6747}else{ 6748jQuery.ready(true); 6749} 6750}; 6751jQuery.isArray=Array.isArray; 6752jQuery.parseJSON=JSON.parse; 6753jQuery.nodeName=nodeName; 6754jQuery.isFunction=isFunction; 6755jQuery.isWindow=isWindow; 6756jQuery.camelCase=camelCase; 6757jQuery.type=toType; 6758jQuery.now=Date.now; 6759jQuery.isNumeric=function(obj){ 6760var type=jQuery.type(obj); 6761return(type==="number"||type==="string")&& 6762!isNaN(obj-parseFloat(obj)); 6763}; 6764jQuery.trim=function(text){ 6765return text==null? 6766"": 6767(text+"").replace(rtrim,"$1"); 6768}; 6769if(typeof define==="function"&&define.amd){ 6770define("jquery",[],function(){ 6771return jQuery; 6772}); 6773} 6774var 6775_jQuery=window.jQuery, 6776_$=window.$; 6777jQuery.noConflict=function(deep){ 6778if(window.$===jQuery){ 6779window.$=_$; 6780} 6781if(deep&&window.jQuery===jQuery){ 6782window.jQuery=_jQuery; 6783} 6784return jQuery; 6785}; 6786if(typeof noGlobal==="undefined"){ 6787window.jQuery=window.$=jQuery; 6788} 6789return jQuery; 6790}); 6791 6792 6793/* prive/javascript/jquery.form.js?1788349516 */ 6794 6795(function(factory){ 6796if(typeof define==='function'&&define.amd){ 6797define(['jquery'],factory); 6798}else if(typeof module==='object'&&module.exports){ 6799module.exports=function(root,jQuery){ 6800if(typeof jQuery==='undefined'){ 6801if(typeof window!=='undefined'){ 6802jQuery=require('jquery'); 6803} 6804else{ 6805jQuery=require('jquery')(root); 6806} 6807} 6808factory(jQuery); 6809return jQuery; 6810}; 6811}else{ 6812factory(jQuery); 6813} 6814}(function($){ 6815'use strict'; 6816var rCRLF=/\r?\n/g; 6817var feature={}; 6818feature.fileapi=$('<input type="file">').get(0).files!==undefined; 6819feature.formdata=(typeof window.FormData!=='undefined'); 6820var hasProp=!!$.fn.prop; 6821$.fn.attr2=function(){ 6822if(!hasProp){ 6823return this.attr.apply(this,arguments); 6824} 6825var val=this.prop.apply(this,arguments); 6826if((val&&val.jquery)||typeof val==='string'){ 6827return val; 6828} 6829return this.attr.apply(this,arguments); 6830}; 6831$.fn.ajaxSubmit=function(options,data,dataType,onSuccess){ 6832if(!this.length){
6833log('ajaxSubmit: skipping submit process - no element selected'); 6834return this; 6835} 6836var method,action,url,isMsie,iframeSrc,$form=this; 6837if(typeof options==='function'){ 6838options={success:options}; 6839}else if(typeof options==='string'||(options===false&&arguments.length>0)){ 6840options={ 6841'url':options, 6842'data':data, 6843'dataType':dataType 6844}; 6845if(typeof onSuccess==='function'){ 6846options.success=onSuccess; 6847} 6848}else if(typeof options==='undefined'){ 6849options={}; 6850} 6851method=options.method||options.type||this.attr2('method'); 6852action=options.url||this.attr2('action'); 6853url=(typeof action==='string')?$.trim(action):''; 6854url=url||window.location.href||''; 6855if(url){ 6856url=(url.match(/^([^#]+)/)||[])[1]; 6857} 6858isMsie=/(MSIE|Trident)/.test(navigator.userAgent||''); 6859iframeSrc=(isMsie&&/^https/i.test(window.location.href||''))?'javascript:false':'about:blank'; 6860options=$.extend(true,{ 6861url:url, 6862success:$.ajaxSettings.success, 6863type:method||$.ajaxSettings.type, 6864iframeSrc:iframeSrc 6865},options); 6866var veto={}; 6867this.trigger('form-pre-serialize',[this,options,veto]); 6868if(veto.veto){ 6869log('ajaxSubmit: submit vetoed via form-pre-serialize trigger'); 6870return this; 6871} 6872if(options.beforeSerialize&&options.beforeSerialize(this,options)===false){ 6873log('ajaxSubmit: submit aborted via beforeSerialize callback'); 6874return this; 6875} 6876var traditional=options.traditional; 6877if(typeof traditional==='undefined'){ 6878traditional=$.ajaxSettings.traditional; 6879} 6880var elements=[]; 6881var qx,a=this.formToArray(options.semantic,elements,options.filtering); 6882if(options.data){ 6883var optionsData=$.isFunction(options.data)?options.data(a):options.data; 6884options.extraData=optionsData; 6885qx=$.param(optionsData,traditional); 6886} 6887if(options.beforeSubmit&&options.beforeSubmit(a,this,options)===false){ 6888log('ajaxSubmit: submit aborted via beforeSubmit callback'); 6889return this; 6890} 6891this.trigger('form-submit-validate',[a,this,options,veto]); 6892if(veto.veto){ 6893log('ajaxSubmit: submit vetoed via form-submit-validate trigger'); 6894return this; 6895} 6896var q=$.param(a,traditional); 6897if(qx){ 6898q=(q?(q+'&'+qx):qx); 6899} 6900if(options.type.toUpperCase()==='GET'){ 6901options.url+=(options.url.indexOf('?')>=0?'&':'?')+q; 6902options.data=null; 6903}else{ 6904options.data=q; 6905} 6906var callbacks=[]; 6907if(options.resetForm){ 6908callbacks.push(function(){ 6909$form.resetForm(); 6910}); 6911} 6912if(options.clearForm){ 6913callbacks.push(function(){ 6914$form.clearForm(options.includeHidden); 6915}); 6916} 6917if(!options.dataType&&options.target){ 6918var oldSuccess=options.success||function(){}; 6919callbacks.push(function(data,textStatus,jqXHR){ 6920var successArguments=arguments, 6921fn=options.replaceTarget?'replaceWith':'html'; 6922if(fn=='html'){ 6923data=$.parseHTML($("<div>").text(data).html()) 6924}; 6925$(options.target)[fn](data).each(function(){ 6926oldSuccess.apply(this,successArguments); 6927}); 6928}); 6929}else if(options.success){ 6930if($.isArray(options.success)){ 6931$.merge(callbacks,options.success); 6932}else{ 6933callbacks.push(options.success); 6934} 6935} 6936options.success=function(data,status,xhr){ 6937var context=options.context||this; 6938for(var i=0,max=callbacks.length;i<max;i++){ 6939callbacks[i].apply(context,[data,status,xhr||$form,$form]); 6940} 6941}; 6942if(options.error){ 6943var oldError=options.error; 6944options.error=function(xhr,status,error){ 6945var context=options.context||this; 6946oldError.apply(context,[xhr,status,error,$form]); 6947}; 6948} 6949if(options.complete){ 6950var oldComplete=options.complete; 6951options.complete=function(xhr,status){ 6952var context=options.context||this; 6953oldComplete.apply(context,[xhr,status,$form]); 6954}; 6955} 6956var fileInputs=$('input[type=file]:enabled',this).filter(function(){ 6957return $(this).val()!==''; 6958}); 6959var hasFileInputs=fileInputs.length>0; 6960var mp='multipart/form-data'; 6961var multipart=($form.attr('enctype')===mp||$form.attr('encoding')===mp); 6962var fileAPI=feature.fileapi&&feature.formdata; 6963log('fileAPI :'+fileAPI); 6964var shouldUseFrame=(hasFileInputs||multipart)&&!fileAPI; 6965var jqxhr; 6966if(options.iframe!==false&&(options.iframe||shouldUseFrame)){ 6967if(options.closeKeepAlive){ 6968$.get(options.closeKeepAlive,function(){ 6969jqxhr=fileUploadIframe(a); 6970}); 6971}else{ 6972jqxhr=fileUploadIframe(a); 6973} 6974}else if((hasFileInputs||multipart)&&fileAPI){ 6975jqxhr=fileUploadXhr(a); 6976}else{ 6977jqxhr=$.ajax(options); 6978} 6979$form.removeData('jqxhr').data('jqxhr',jqxhr); 6980for(var k=0;k<elements.length;k++){ 6981elements[k]=null; 6982} 6983this.trigger('form-submit-notify',[this,options]); 6984return this; 6985function deepSerialize(extraData){ 6986var serialized=$.param(extraData,options.traditional).split('&'); 6987var len=serialized.length; 6988var result=[]; 6989var i,part; 6990for(i=0;i<len;i++){ 6991serialized[i]=serialized[i].replace(/\+/g,' '); 6992part=serialized[i].split('='); 6993result.push([decodeURIComponent(part[0]),decodeURIComponent(part[1])]); 6994} 6995return result; 6996} 6997function fileUploadXhr(a){ 6998var formdata=new FormData(); 6999for(var i=0;i<a.length;i++){ 7000formdata.append(a[i].name,a[i].value); 7001} 7002if(options.extraData){ 7003var serializedData=deepSerialize(options.extraData); 7004for(i=0;i<serializedData.length;i++){ 7005if(serializedData[i]){ 7006formdata.append(serializedData[i][0],serializedData[i][1]); 7007} 7008} 7009} 7010options.data=null; 7011var s=$.extend(true,{},$.ajaxSettings,options,{ 7012contentType:false, 7013processData:false, 7014cache:false, 7015type:method||'POST' 7016}); 7017if(options.uploadProgress){ 7018s.xhr=function(){ 7019var xhr=$.ajaxSettings.xhr(); 7020if(xhr.upload){ 7021xhr.upload.addEventListener('progress',function(event){ 7022var percent=0; 7023var position=event.loaded||event.position; 7024var total=event.total; 7025if(event.lengthComputable){ 7026percent=Math.ceil(position/total*100); 7027} 7028options.uploadProgress(event,position,total,percent); 7029},false); 7030} 7031return xhr; 7032}; 7033} 7034s.data=null; 7035var beforeSend=s.beforeSend; 7036s.beforeSend=function(xhr,o){ 7037if(options.formData){ 7038o.data=options.formData; 7039}else{ 7040o.data=formdata; 7041} 7042if(beforeSend){
7043beforeSend.call(this,xhr,o); 7044} 7045}; 7046return $.ajax(s); 7047} 7048function fileUploadIframe(a){ 7049var form=$form[0],el,i,s,g,id,$io,io,xhr,sub,n,timedOut,timeoutHandle; 7050var deferred=$.Deferred(); 7051deferred.abort=function(status){ 7052xhr.abort(status); 7053}; 7054if(a){ 7055for(i=0;i<elements.length;i++){ 7056el=$(elements[i]); 7057if(hasProp){ 7058el.prop('disabled',false); 7059}else{ 7060el.removeAttr('disabled'); 7061} 7062} 7063} 7064s=$.extend(true,{},$.ajaxSettings,options); 7065s.context=s.context||s; 7066id='jqFormIO'+new Date().getTime(); 7067var ownerDocument=form.ownerDocument; 7068var $body=$form.closest('body'); 7069if(s.iframeTarget){ 7070$io=$(s.iframeTarget,ownerDocument); 7071n=$io.attr2('name'); 7072if(!n){ 7073$io.attr2('name',id); 7074}else{ 7075id=n; 7076} 7077}else{ 7078$io=$('<iframe name="'+id+'" src="'+s.iframeSrc+'">',ownerDocument); 7079$io.css({position:'absolute',top:'-1000px',left:'-1000px'}); 7080} 7081io=$io[0]; 7082xhr={ 7083aborted:0, 7084responseText:null, 7085responseXML:null, 7086status:0, 7087statusText:'n/a', 7088getAllResponseHeaders:function(){}, 7089getResponseHeader:function(){}, 7090setRequestHeader:function(){}, 7091abort:function(status){ 7092var e=(status==='timeout'?'timeout':'aborted'); 7093log('aborting upload... '+e); 7094this.aborted=1; 7095try{ 7096if(io.contentWindow.document.execCommand){ 7097io.contentWindow.document.execCommand('Stop'); 7098} 7099}catch(ignore){} 7100$io.attr('src',s.iframeSrc); 7101xhr.error=e; 7102if(s.error){ 7103s.error.call(s.context,xhr,e,status); 7104} 7105if(g){ 7106$.event.trigger('ajaxError',[xhr,s,e]); 7107} 7108if(s.complete){ 7109s.complete.call(s.context,xhr,e); 7110} 7111} 7112}; 7113g=s.global; 7114if(g&&$.active++===0){ 7115$.event.trigger('ajaxStart'); 7116} 7117if(g){ 7118$.event.trigger('ajaxSend',[xhr,s]); 7119} 7120if(s.beforeSend&&s.beforeSend.call(s.context,xhr,s)===false){ 7121if(s.global){ 7122$.active--; 7123} 7124deferred.reject(); 7125return deferred; 7126} 7127if(xhr.aborted){ 7128deferred.reject(); 7129return deferred; 7130} 7131sub=form.clk; 7132if(sub){ 7133n=sub.name; 7134if(n&&!sub.disabled){ 7135s.extraData=s.extraData||{}; 7136s.extraData[n]=sub.value; 7137if(sub.type==='image'){ 7138s.extraData[n+'.x']=form.clk_x; 7139s.extraData[n+'.y']=form.clk_y; 7140} 7141} 7142} 7143var CLIENT_TIMEOUT_ABORT=1; 7144var SERVER_ABORT=2; 7145function getDoc(frame){ 7146var doc=null; 7147try{ 7148if(frame.contentWindow){ 7149doc=frame.contentWindow.document; 7150} 7151}catch(err){ 7152log('cannot get iframe.contentWindow document: '+err); 7153} 7154if(doc){ 7155return doc; 7156} 7157try{ 7158doc=frame.contentDocument?frame.contentDocument:frame.document; 7159}catch(err){ 7160log('cannot get iframe.contentDocument: '+err); 7161doc=frame.document; 7162} 7163return doc; 7164} 7165var csrf_token=$('meta[name=csrf-token]').attr('content'); 7166var csrf_param=$('meta[name=csrf-param]').attr('content'); 7167if(csrf_param&&csrf_token){ 7168s.extraData=s.extraData||{}; 7169s.extraData[csrf_param]=csrf_token; 7170} 7171function doSubmit(){ 7172var t=$form.attr2('target'), 7173a=$form.attr2('action'), 7174mp='multipart/form-data', 7175et=$form.attr('enctype')||$form.attr('encoding')||mp; 7176form.setAttribute('target',id); 7177if(!method||/post/i.test(method)){ 7178form.setAttribute('method','POST'); 7179} 7180if(a!==s.url){ 7181form.setAttribute('action',s.url); 7182} 7183if(!s.skipEncodingOverride&&(!method||/post/i.test(method))){ 7184$form.attr({ 7185encoding:'multipart/form-data', 7186enctype:'multipart/form-data' 7187}); 7188} 7189if(s.timeout){ 7190timeoutHandle=setTimeout(function(){ 7191timedOut=true;cb(CLIENT_TIMEOUT_ABORT); 7192},s.timeout); 7193} 7194function checkState(){ 7195try{ 7196var state=getDoc(io).readyState; 7197log('state = '+state); 7198if(state&&state.toLowerCase()==='uninitialized'){ 7199setTimeout(checkState,50); 7200} 7201}catch(e){ 7202log('Server abort: ',e,' (',e.name,')'); 7203cb(SERVER_ABORT); 7204if(timeoutHandle){ 7205clearTimeout(timeoutHandle); 7206} 7207timeoutHandle=undefined; 7208} 7209} 7210var extraInputs=[]; 7211try{ 7212if(s.extraData){ 7213for(var n in s.extraData){ 7214if(s.extraData.hasOwnProperty(n)){ 7215if($.isPlainObject(s.extraData[n])&&s.extraData[n].hasOwnProperty('name')&&s.extraData[n].hasOwnProperty('value')){ 7216extraInputs.push( 7217$('<input type="hidden" name="'+s.extraData[n].name+'">',ownerDocument).val(s.extraData[n].value) 7218.appendTo(form)[0]); 7219}else{ 7220extraInputs.push( 7221$('<input type="hidden" name="'+n+'">',ownerDocument).val(s.extraData[n]) 7222.appendTo(form)[0]); 7223} 7224} 7225} 7226} 7227if(!s.iframeTarget){ 7228$io.appendTo($body); 7229} 7230if(io.attachEvent){ 7231io.attachEvent('onload',cb); 7232}else{ 7233io.addEventListener('load',cb,false); 7234} 7235setTimeout(checkState,15); 7236try{ 7237form.submit(); 7238}catch(err){ 7239var submitFn=document.createElement('form').submit; 7240submitFn.apply(form); 7241} 7242}finally{ 7243form.setAttribute('action',a); 7244form.setAttribute('enctype',et); 7245if(t){ 7246form.setAttribute('target',t); 7247}else{ 7248$form.removeAttr('target'); 7249} 7250$(extraInputs).remove(); 7251} 7252} 7253if(s.forceSync){ 7254doSubmit(); 7255}else{ 7256setTimeout(doSubmit,10); 7257} 7258var data,doc,domCheckCount=50,callbackProcessed; 7259function cb(e){ 7260if(xhr.aborted||callbackProcessed){ 7261return; 7262} 7263doc=getDoc(io); 7264if(!doc){ 7265log('cannot access response document'); 7266e=SERVER_ABORT; 7267} 7268if(e===CLIENT_TIMEOUT_ABORT&&xhr){ 7269xhr.abort('timeout'); 7270deferred.reject(xhr,'timeout'); 7271return; 7272} 7273if(e===SERVER_ABORT&&xhr){ 7274xhr.abort('server abort'); 7275deferred.reject(xhr,'error','server abort'); 7276return; 7277} 7278if(!doc||doc.location.href===s.iframeSrc){ 7279if(!timedOut){ 7280return; 7281} 7282} 7283if(io.detachEvent){ 7284io.detachEvent('onload',cb); 7285}else{ 7286io.removeEventListener('load',cb,false); 7287} 7288var status='success',errMsg; 7289try{ 7290if(timedOut){ 7291throw'timeout'; 7292} 7293var isXml=s.dataType==='xml'||doc.XMLDocument||$.isXMLDoc(doc); 7294log('isXml='+isXml); 7295if(!isXml&&window.opera&&(doc.body===null||!doc.body.innerHTML)){ 7296if(--domCheckCount){ 7297log('requeing onLoad callback, DOM not available'); 7298setTimeout(cb,250); 7299return; 7300} 7301} 7302var docRoot=doc.body?doc.body:doc.documentElement; 7303xhr.responseText=docRoot?docRoot.innerHTML:null; 7304xhr.responseXML=doc.XMLDocument?doc.XMLDocument:doc; 7305if(isXml){ 7306s.dataType='xml'; 7307} 7308xhr.getResponseHeader=function(header){ 7309var headers={'content-type':s.dataType}; 7310return headers[header.toLowerCase()]; 7311}; 7312if(docRoot){ 7313xhr.status=Number(docRoot.getAttribute('status'))||xhr.status; 7314xhr.statusText=docRoot.getAttribute('statusText')||xhr.statusText; 7315} 7316var dt=(s.dataType||'').toLowerCase(); 7317var scr=/(json|script|text)/.test(dt); 7318if(scr||s.textarea){ 7319var ta=doc.getElementsByTagName('textarea')[0]; 7320if(ta){ 7321xhr.responseText=ta.value; 7322xhr.status=Number(ta.getAttribute('status'))||xhr.status; 7323xhr.statusText=ta.getAttribute('statusText')||xhr.statusText; 7324}else if(scr){ 7325var pre=doc.getElementsByTagName('pre')[0]; 7326var b=doc.getElementsByTagName('body')[0]; 7327if(pre){ 7328xhr.responseText=pre.textContent?pre.textContent:pre.innerText; 7329}else if(b){ 7330xhr.responseText=b.textContent?b.textContent:b.innerText; 7331} 7332} 7333}else if(dt==='xml'&&!xhr.responseXML&&xhr.responseText){ 7334xhr.responseXML=toXml(xhr.responseText); 7335} 7336try{ 7337data=httpData(xhr,dt,s); 7338}catch(err){ 7339status='parsererror'; 7340xhr.error=errMsg=(err||status); 7341} 7342}catch(err){ 7343log('error caught: ',err); 7344status='error'; 7345xhr.error=errMsg=(err||status); 7346} 7347if(xhr.aborted){ 7348log('upload aborted'); 7349status=null; 7350} 7351if(xhr.status){ 7352status=((xhr.status>=200&&xhr.status<300)||xhr.status===304)?'success':'error'; 7353} 7354if(status==='success'){ 7355if(s.success){ 7356s.success.call(s.context,data,'success',xhr); 7357} 7358deferred.resolve(xhr.responseText,'success',xhr); 7359if(g){
7360$.event.trigger('ajaxSuccess',[xhr,s]); 7361} 7362}else if(status){ 7363if(typeof errMsg==='undefined'){ 7364errMsg=xhr.statusText; 7365} 7366if(s.error){ 7367s.error.call(s.context,xhr,status,errMsg); 7368} 7369deferred.reject(xhr,'error',errMsg); 7370if(g){ 7371$.event.trigger('ajaxError',[xhr,s,errMsg]); 7372} 7373} 7374if(g){ 7375$.event.trigger('ajaxComplete',[xhr,s]); 7376} 7377if(g&&!--$.active){ 7378$.event.trigger('ajaxStop'); 7379} 7380if(s.complete){ 7381s.complete.call(s.context,xhr,status); 7382} 7383callbackProcessed=true; 7384if(s.timeout){ 7385clearTimeout(timeoutHandle); 7386} 7387setTimeout(function(){ 7388if(!s.iframeTarget){ 7389$io.remove(); 7390}else{ 7391$io.attr('src',s.iframeSrc); 7392} 7393xhr.responseXML=null; 7394},100); 7395} 7396var toXml=$.parseXML||function(s,doc){ 7397if(window.ActiveXObject){ 7398doc=new ActiveXObject('Microsoft.XMLDOM'); 7399doc.async='false'; 7400doc.loadXML(s); 7401}else{ 7402doc=(new DOMParser()).parseFromString(s,'text/xml'); 7403} 7404return(doc&&doc.documentElement&&doc.documentElement.nodeName!=='parsererror')?doc:null; 7405}; 7406var parseJSON=$.parseJSON||function(s){ 7407window.console.error('jquery.parseJSON is undefined'); 7408return null; 7409}; 7410var httpData=function(xhr,type,s){ 7411var ct=xhr.getResponseHeader('content-type')||'', 7412xml=((type==='xml'||!type)&&ct.indexOf('xml')>=0), 7413data=xml?xhr.responseXML:xhr.responseText; 7414if(xml&&data.documentElement.nodeName==='parsererror'){ 7415if($.error){ 7416$.error('parsererror'); 7417} 7418} 7419if(s&&s.dataFilter){ 7420data=s.dataFilter(data,type); 7421} 7422if(typeof data==='string'){ 7423if((type==='json'||!type)&&ct.indexOf('json')>=0){ 7424data=parseJSON(data); 7425}else if((type==='script'||!type)&&ct.indexOf('javascript')>=0){ 7426$.globalEval(data); 7427} 7428} 7429return data; 7430}; 7431return deferred; 7432} 7433}; 7434$.fn.ajaxForm=function(options,data,dataType,onSuccess){ 7435if(typeof options==='string'||(options===false&&arguments.length>0)){ 7436options={ 7437'url':options, 7438'data':data, 7439'dataType':dataType 7440}; 7441if(typeof onSuccess==='function'){ 7442options.success=onSuccess; 7443} 7444} 7445options=options||{}; 7446options.delegation=options.delegation&&$.isFunction($.fn.on); 7447if(!options.delegation&&this.length===0){ 7448var o={s:this.selector,c:this.context}; 7449if(!$.isReady&&o.s){ 7450log('DOM not ready, queuing ajaxForm'); 7451$(function(){ 7452$(o.s,o.c).ajaxForm(options); 7453}); 7454return this; 7455} 7456log('terminating; zero elements found by selector'+($.isReady?'':' (DOM not ready)')); 7457return this; 7458} 7459if(options.delegation){ 7460$(document) 7461.off('submit.form-plugin',this.selector,doAjaxSubmit) 7462.off('click.form-plugin',this.selector,captureSubmittingElement) 7463.on('submit.form-plugin',this.selector,options,doAjaxSubmit) 7464.on('click.form-plugin',this.selector,options,captureSubmittingElement); 7465return this; 7466} 7467if(options.beforeFormUnbind){ 7468options.beforeFormUnbind(this,options); 7469} 7470return this.ajaxFormUnbind() 7471.on('submit.form-plugin',options,doAjaxSubmit) 7472.on('click.form-plugin',options,captureSubmittingElement); 7473}; 7474function doAjaxSubmit(e){ 7475var options=e.data; 7476if(!e.isDefaultPrevented()){ 7477e.preventDefault(); 7478$(e.target).closest('form').ajaxSubmit(options); 7479} 7480} 7481function captureSubmittingElement(e){ 7482var target=e.target; 7483var $el=$(target); 7484if(!$el.is('[type=submit],[type=image]')){ 7485var t=$el.closest('[type=submit]'); 7486if(t.length===0){ 7487return; 7488} 7489target=t[0]; 7490} 7491var form=target.form; 7492form.clk=target; 7493if(target.type==='image'){ 7494if(typeof e.offsetX!=='undefined'){ 7495form.clk_x=e.offsetX; 7496form.clk_y=e.offsetY; 7497}else if(typeof $.fn.offset==='function'){ 7498var offset=$el.offset(); 7499form.clk_x=e.pageX-offset.left; 7500form.clk_y=e.pageY-offset.top; 7501}else{ 7502form.clk_x=e.pageX-target.offsetLeft; 7503form.clk_y=e.pageY-target.offsetTop; 7504} 7505} 7506setTimeout(function(){ 7507form.clk=form.clk_x=form.clk_y=null; 7508},100); 7509} 7510$.fn.ajaxFormUnbind=function(){ 7511return this.off('submit.form-plugin click.form-plugin'); 7512}; 7513$.fn.formToArray=function(semantic,elements,filtering){ 7514var a=[]; 7515if(this.length===0){ 7516return a; 7517} 7518var form=this[0]; 7519var formId=this.attr('id'); 7520var els=(semantic||typeof form.elements==='undefined')?form.getElementsByTagName('*'):form.elements; 7521var els2; 7522if(els){ 7523els=$.makeArray(els); 7524} 7525if(formId&&(semantic||/(Edge|Trident)\//.test(navigator.userAgent))){ 7526els2=$(':input[form="'+formId+'"]').get(); 7527if(els2.length){ 7528els=(els||[]).concat(els2); 7529} 7530} 7531if(!els||!els.length){ 7532return a; 7533}
7534if($.isFunction(filtering)){ 7535els=$.map(els,filtering); 7536} 7537var i,j,n,v,el,max,jmax; 7538for(i=0,max=els.length;i<max;i++){ 7539el=els[i]; 7540n=el.name; 7541if(!n||el.disabled){ 7542continue; 7543} 7544if(semantic&&form.clk&&el.type==='image'){ 7545if(form.clk===el){ 7546a.push({name:n,value:$(el).val(),type:el.type}); 7547a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y}); 7548} 7549continue; 7550} 7551v=$.fieldValue(el,true); 7552if(v&&v.constructor===Array){ 7553if(elements){ 7554elements.push(el); 7555} 7556for(j=0,jmax=v.length;j<jmax;j++){ 7557a.push({name:n,value:v[j]}); 7558} 7559}else if(feature.fileapi&&el.type==='file'){ 7560if(elements){ 7561elements.push(el); 7562} 7563var files=el.files; 7564if(files.length){ 7565for(j=0;j<files.length;j++){ 7566a.push({name:n,value:files[j],type:el.type}); 7567} 7568}else{ 7569a.push({name:n,value:'',type:el.type}); 7570} 7571}else if(v!==null&&typeof v!=='undefined'){ 7572if(elements){ 7573elements.push(el); 7574} 7575a.push({name:n,value:v,type:el.type,required:el.required}); 7576} 7577} 7578if(!semantic&&form.clk){ 7579var $input=$(form.clk),input=$input[0]; 7580n=input.name; 7581if(n&&!input.disabled&&input.type==='image'){ 7582a.push({name:n,value:$input.val()}); 7583a.push({name:n+'.x',value:form.clk_x},{name:n+'.y',value:form.clk_y}); 7584} 7585} 7586return a; 7587}; 7588$.fn.formSerialize=function(semantic){ 7589return $.param(this.formToArray(semantic)); 7590}; 7591$.fn.fieldSerialize=function(successful){ 7592var a=[]; 7593this.each(function(){ 7594var n=this.name; 7595if(!n){ 7596return; 7597} 7598var v=$.fieldValue(this,successful); 7599if(v&&v.constructor===Array){ 7600for(var i=0,max=v.length;i<max;i++){ 7601a.push({name:n,value:v[i]}); 7602} 7603}else if(v!==null&&typeof v!=='undefined'){ 7604a.push({name:this.name,value:v}); 7605} 7606}); 7607return $.param(a); 7608}; 7609$.fn.fieldValue=function(successful){ 7610for(var val=[],i=0,max=this.length;i<max;i++){ 7611var el=this[i]; 7612var v=$.fieldValue(el,successful); 7613if(v===null||typeof v==='undefined'||(v.constructor===Array&&!v.length)){ 7614continue; 7615} 7616if(v.constructor===Array){ 7617$.merge(val,v); 7618}else{ 7619val.push(v); 7620} 7621} 7622return val; 7623}; 7624$.fieldValue=function(el,successful){ 7625var n=el.name,t=el.type,tag=el.tagName.toLowerCase(); 7626if(typeof successful==='undefined'){ 7627successful=true; 7628} 7629if(successful&&(!n||el.disabled||t==='reset'||t==='button'|| 7630(t==='checkbox'||t==='radio')&&!el.checked|| 7631(t==='submit'||t==='image')&&el.form&&el.form.clk!==el|| 7632tag==='select'&&el.selectedIndex===-1)){ 7633return null; 7634} 7635if(tag==='select'){ 7636var index=el.selectedIndex; 7637if(index<0){ 7638return null; 7639} 7640var a=[],ops=el.options; 7641var one=(t==='select-one'); 7642var max=(one?index+1:ops.length); 7643for(var i=(one?index:0);i<max;i++){ 7644var op=ops[i]; 7645if(op.selected&&!op.disabled){ 7646var v=op.value; 7647if(!v){ 7648v=(op.attributes&&op.attributes.value&&!(op.attributes.value.specified))?op.text:op.value; 7649} 7650if(one){ 7651return v; 7652} 7653a.push(v); 7654} 7655} 7656return a; 7657} 7658return $(el).val().replace(rCRLF,'\r\n'); 7659}; 7660$.fn.clearForm=function(includeHidden){ 7661return this.each(function(){ 7662$('input,select,textarea',this).clearFields(includeHidden); 7663}); 7664}; 7665$.fn.clearFields=$.fn.clearInputs=function(includeHidden){ 7666var re=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i; 7667return this.each(function(){ 7668var t=this.type,tag=this.tagName.toLowerCase(); 7669if(re.test(t)||tag==='textarea'){ 7670this.value=''; 7671}else if(t==='checkbox'||t==='radio'){ 7672this.checked=false; 7673}else if(tag==='select'){ 7674this.selectedIndex=-1; 7675}else if(t==='file'){ 7676if(/MSIE/.test(navigator.userAgent)){ 7677$(this).replaceWith($(this).clone(true)); 7678}else{ 7679$(this).val(''); 7680} 7681}else if(includeHidden){ 7682if((includeHidden===true&&/hidden/.test(t))|| 7683(typeof includeHidden==='string'&&$(this).is(includeHidden))){ 7684this.value=''; 7685} 7686} 7687}); 7688}; 7689$.fn.resetForm=function(){ 7690return this.each(function(){ 7691var el=$(this); 7692var tag=this.tagName.toLowerCase(); 7693switch(tag){ 7694case'input': 7695this.checked=this.defaultChecked; 7696case'textarea': 7697this.value=this.defaultValue; 7698return true; 7699case'option': 7700case'optgroup': 7701var select=el.parents('select'); 7702if(select.length&&select[0].multiple){ 7703if(tag==='option'){ 7704this.selected=this.defaultSelected; 7705}else{ 7706el.find('option').resetForm(); 7707} 7708}else{ 7709select.resetForm(); 7710} 7711return true; 7712case'select': 7713el.find('option').each(function(i){ 7714this.selected=this.defaultSelected; 7715if(this.defaultSelected&&!el[0].multiple){ 7716el[0].selectedIndex=i; 7717return false;
7718} 7719}); 7720return true; 7721case'label': 7722var forEl=$(el.attr('for')); 7723var list=el.find('input,select,textarea'); 7724if(forEl[0]){ 7725list.unshift(forEl[0]); 7726} 7727list.resetForm(); 7728return true; 7729case'form': 7730if(typeof this.reset==='function'||(typeof this.reset==='object'&&!this.reset.nodeType)){ 7731this.reset(); 7732} 7733return true; 7734default: 7735el.find('form,input,label,select,textarea').resetForm(); 7736return true; 7737} 7738}); 7739}; 7740$.fn.enable=function(b){ 7741if(typeof b==='undefined'){ 7742b=true; 7743} 7744return this.each(function(){ 7745this.disabled=!b; 7746}); 7747}; 7748$.fn.selected=function(select){ 7749if(typeof select==='undefined'){ 7750select=true; 7751} 7752return this.each(function(){ 7753var t=this.type; 7754if(t==='checkbox'||t==='radio'){ 7755this.checked=select; 7756}else if(this.tagName.toLowerCase()==='option'){ 7757var $sel=$(this).parent('select'); 7758if(select&&$sel[0]&&$sel[0].type==='select-one'){ 7759$sel.find('option').selected(false); 7760} 7761this.selected=select; 7762} 7763}); 7764}; 7765$.fn.ajaxSubmit.debug=false; 7766function log(){ 7767if(!$.fn.ajaxSubmit.debug){ 7768return; 7769} 7770var msg='[jquery.form] '+Array.prototype.join.call(arguments,''); 7771if(window.console&&window.console.log){ 7772window.console.log(msg); 7773}else if(window.opera&&window.opera.postError){ 7774window.opera.postError(msg); 7775} 7776} 7777})); 7778 7779 7780/* prive/javascript/jquery.autosave.js?1788349516 */ 7781 7782(function($){ 7783$.fn.autosave=function(opt){ 7784opt=$.extend({ 7785url:window.location, 7786confirm:false, 7787confirmstring:'Sauvegarder ?' 7788},opt); 7789var save_changed=function(){ 7790$('form.autosavechanged') 7791.each(function(){ 7792if(!opt.confirm||confirm(opt.confirmstring)){ 7793var contenu=$(this).serialize(); 7794var d=new Date(); 7795contenu=contenu+"&__timestamp="+Math.round(d.getTime()/1000); 7796$.post(opt.url,{ 7797'action':'session', 7798'var':'autosave_'+$('input[name=autosave]',this).val(), 7799'val':contenu 7800}); 7801} 7802}).removeClass('autosavechanged'); 7803}; 7804$(window).on('unload',save_changed); 7805return this 7806.on('keyup',function(){ 7807$(this).addClass('autosavechanged'); 7808}) 7809.on('change',function(){ 7810$(this).addClass('autosavechanged'); 7811save_changed(); 7812}) 7813.on('submit',function(){ 7814save_changed(); 7815}); 7816}; 7817})(jQuery); 7818 7819 7820/* prive/javascript/jquery.placeholder-label.js?1788349516 */ 7821 7822(function($){
7823$.placeholderLabel={ 7824placeholder_class:null, 7825add_placeholder:function(){ 7826if($(this).val()==$(this).attr('placeholder')){ 7827$(this).val('').removeClass($.placeholderLabel.placeholder_class); 7828} 7829}, 7830remove_placeholder:function(){ 7831if($(this).val()==''){ 7832$(this).val($(this).attr('placeholder')).addClass($.placeholderLabel.placeholder_class); 7833} 7834}, 7835disable_placeholder_fields:function(){ 7836$(this).find("input[placeholder]").each(function(){ 7837if($(this).val()==$(this).attr('placeholder')){ 7838$(this).val(''); 7839} 7840}); 7841return true; 7842} 7843}; 7844$.fn.placeholderLabel=function(options){ 7845var dummy=document.createElement('input'); 7846if(dummy.placeholder!=undefined){ 7847return this; 7848} 7849var config={ 7850placeholder_class:'placeholder' 7851}; 7852if(options)$.extend(config,options); 7853$.placeholderLabel.placeholder_class=config.placeholder_class; 7854this.each(function(){ 7855var input=$(this); 7856input.focus($.placeholderLabel.add_placeholder); 7857input.blur($.placeholderLabel.remove_placeholder); 7858input.triggerHandler('focus'); 7859input.triggerHandler('blur'); 7860$(this.form).submit($.placeholderL
7860abel.disable_placeholder_fields); 7861}); 7862return this; 7863} 7864})(jQuery); 7865 7866 7867/* prive/javascript/ajaxCallback.js?1788349516 */ 7868jQuery.spip=jQuery.spip||{}; 7869jQuery.spip.log=function(){ 7870if(jQuery.spip.debug&&window.console&&window.console.log) 7871window.console.log.apply(this,arguments); 7872} 7873jQuery.spip.test_espace_prive=function(){ 7874if(typeof spipConfig.core.test_espace_prive!=undefined&&spipConfig.core.test_espace_prive){ 7875return true; 7876} 7877return false; 7878} 7879if(!jQuery.spip.load_handlers){ 7880jQuery.spip.load_handlers=new Array(); 7881function onAjaxLoad(f){ 7882jQuery.spip.load_handlers.push(f); 7883}; 7884jQuery.spip.triggerAjaxLoad=function(root){ 7885jQuery.spip.log('triggerAjaxLoad'); 7886jQuery.spip.log(root); 7887for(var i=0;i<jQuery.spip.load_handlers.length;i++) 7888jQuery.spip.load_handlers[i].apply(root); 7889}; 7890jQuery.spip.intercepted={}; 7891jQuery.spip.intercepted.load=jQuery.fn.load; 7892jQuery.fn.load=function(url,params,callback){ 7893if(typeof url!=="string"){ 7894return jQuery.spip.intercepted.load.apply(this,arguments); 7895} 7896callback=callback||function(){}; 7897if(params){ 7898if(params.constructor==Function){ 7899callback=params; 7900params=null; 7901} 7902} 7903params=jQuery.extend(params,{triggerAjaxLoad:false}); 7904var callback2=function(){jQuery.spip.log('jQuery.load');jQuery.spip.triggerAjaxLoad(this);callback.apply(this,arguments);}; 7905return jQuery.spip.intercepted.load.apply(this,[url,params,callback2]); 7906}; 7907jQuery.spip.intercepted.ajaxSubmit=jQuery.fn.ajaxSubmit; 7908jQuery.fn.ajaxSubmit=function(options){ 7909options=options||{}; 7910if(typeof options.onAjaxLoad=="undefined"||options.onAjaxLoad!=false){ 7911var me=jQuery(this).parents('div.ajax'); 7912if(me.length) 7913me=me.parent(); 7914else 7915me=document; 7916if(typeof options=='function') 7917options={success:options}; 7918var callback=options.success||function(){}; 7919options.success=function(){callback.apply(this,arguments);jQuery.spip.log('jQuery.ajaxSubmit');jQuery.spip.triggerAjaxLoad(me);} 7920} 7921return jQuery.spip.intercepted.ajaxSubmit.apply(this,[options]); 7922} 7923jQuery.spip.intercepted.ajax=jQuery.ajax; 7924jQuery.ajax=function(url,settings){ 7925if(typeof settings=='undefined'){ 7926settings={}; 7927if(typeof url=='object'){ 7928settings=url; 7929url=null; 7930} 7931} 7932if(typeof url=='string'){ 7933settings['url']=url; 7934} 7935if(settings.data&&settings.data['triggerAjaxLoad']===false){ 7936settings.data['triggerAjaxLoad']=null; 7937return jQuery.spip.intercepted.ajax(settings); 7938} 7939var s=jQuery.extend(true,{},jQuery.ajaxSettings,settings); 7940var callbackContext=s.context||s; 7941try{ 7942if(jQuery.ajax.caller==jQuery.spip.intercepted.load||jQuery.ajax.caller==jQuery.spip.intercepted.ajaxSubmit) 7943return jQuery.spip.intercepted.ajax(settings); 7944} 7945catch(err){} 7946var orig_complete=s.complete||function(){}; 7947settings.complete=function(res,status){
7948var dataType=settings.dataType; 7949var ct=(res&&(typeof res.getResponseHeader=='function')) 7950?res.getResponseHeader("content-type"):''; 7951var xml=!dataType&&ct&&ct.indexOf("xml")>=0; 7952orig_complete.call(callbackContext,res,status); 7953if((!dataType&&!xml)||dataType=="html"){ 7954jQuery.spip.log('jQuery.ajax'); 7955if(typeof s.onAjaxLoad=="undefined"||s.onAjaxLoad!=false) 7956jQuery.spip.triggerAjaxLoad(s.ajaxTarget?s.ajaxTarget:document); 7957} 7958}; 7959return jQuery.spip.intercepted.ajax(settings); 7960}; 7961} 7962jQuery.uaMatch=function(ua){ 7963ua=ua.toLowerCase(); 7964var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)|| 7965ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)|| 7966[]; 7967return{ 7968browser:match[1]||"", 7969version:match[2]||"0" 7970}; 7971}; 7972if(!jQuery.browser){ 7973matched=jQuery.uaMatch(navigator.userAgent); 7974browser={}; 7975if(matched.browser){ 7976browser[matched.browser]=true; 7977browser.version=matched.version; 7978} 7979if(browser.chrome){ 7980browser.webkit=true; 7981}else if(browser.webkit){ 7982browser.safari=true; 7983} 7984jQuery.browser=browser; 7985} 7986jQuery.getScript=function(url,callback){ 7987return $.ajax({ 7988url:url, 7989dataType:"script", 7990success:callback, 7991cache:true 7992}); 7993} 7994jQuery.fn.positionner=function(force,setfocus){ 7995if(!this.length){ 7996return this; 7997} 7998var offset=jQuery(this).offset(); 7999var hauteur=parseInt(jQuery(this).css('height')); 8000var marge=jQuery.spip.positionner_marge||5; 8001var scrolltop=self['pageYOffset']|| 8002jQuery.boxModel&&document.documentElement['scrollTop']|| 8003document.body['scrollTop']; 8004var h=jQuery(window).height(); 8005var scroll=0; 8006if(force||(offset&&offset['top']-marge<=scrolltop)){ 8007scroll=offset['top']-marge; 8008} 8009else if(offset&&offset['top']+hauteur-h+marge>scrolltop){ 8010scroll=Math.min(offset['top']-marge-15,offset['top']+hauteur-h+40); 8011} 8012if(scroll) 8013jQuery('html,body') 8014.animate({scrollTop:scroll},300); 8015if(setfocus!==false) 8016jQuery(jQuery('*',this).filter('input[type=text],textarea')[0]).focus(); 8017return this; 8018} 8019jQuery.spip.virtualbuffer_id='spip_virtualbufferupdate'; 8020jQuery.spip.initReaderBuffer=function(){ 8021if(jQuery('#'+jQuery.spip.virtualbuffer_id).length)return; 8022jQuery('body').append('<div style="float:left;width:0;height:0;position:absolute;left:-5000px;top:-5000px;"><input type="hidden" name="'+jQuery.spip.virtualbuffer_id+'" id="'+jQuery.spip.virtualbuffer_id+'" value="0"></div>'); 8023} 8024jQuery.spip.updateReaderBuffer=function(){ 8025var i=jQuery('#'+jQuery.spip.virtualbuffer_id); 8026if(!i.length)return; 8027i.val(parseInt(i.val())+1); 8028} 8029jQuery.fn.formulaire_setContainer=function(){ 8030if(!this.closest('.ajax-form-container').length){ 8031this.find('script').remove(); 8032var aria=this.data('aria'); 8033var $container=jQuery('<div class="ajax-form-container"></div>'); 8034if(aria&&typeof aria==='object'){ 8035for(var i in aria){ 8036$container=$container.attr(i,aria[i]); 8037} 8038} 8039else{ 8040aria=false; 8041} 8042this.wrap($container); 8043if(aria){ 8044jQuery('form',this).not('[aria-live]').attr('aria-live','off'); 8045} 8046} 8047return this; 8048} 8049jQuery.fn.formulaire_dyn_ajax=function(target){ 8050if(this.length) 8051jQuery.spip.initReaderBuffer(); 8052return this.each(function(){ 8053var scrollwhensubmit=!jQuery(this).is('.noscroll'); 8054var cible=target||this; 8055jQuery(cible).formulaire_setContainer(); 8056jQuery('form:not(.noajax):not(.bouton_action_post)',this).each(function(){ 8057var leform=this; 8058var leclk,leclk_x,leclk_y; 8059var onError=function(xhr,status,error,$form){
8060jQuery(leform).ajaxFormUnbind().find('input[name="var_ajax"]').remove(); 8061var msg="Erreur"; 8062if(typeof(error_on_ajaxform)!=="undefined")msg=error_on_ajaxform; 8063jQuery(leform).prepend("<p class='error ajax-error none'>"+msg+"</p>").find('.ajax-error').show('fast'); 8064jQuery(cible).closest('.ajax-form-container').endLoading(true); 8065} 8066jQuery(this).prepend("<input type='hidden' name='var_ajax' value='form'>") 8067.ajaxForm({ 8068beforeSubmit:function(){ 8069leclk=leform.clk; 8070var scrollwhensubmit_button=true; 8071if(leclk){ 8072scrollwhensubmit_button=!jQuery(leclk).is('.noscroll'); 8073var n=leclk.name; 8074if(n&&!leclk.disabled&&leclk.type==="image"){ 8075leclk_x=leform.clk_x; 8076leclk_y=leform.clk_y; 8077} 8078} 8079jQuery(cible).wrap('<div />'); 8080cible=jQuery(cible).parent(); 8081jQuery(cible).closest('.ajax-form-container').animateLoading(); 8082if(scrollwhensubmit&&scrollwhensubmit_button){ 8083jQuery(cible).positionner(false,false); 8084} 8085}, 8086error:onError, 8087success:function(c,status,xhr,$form){ 8088if(c.match(/^\s*noajax\s*$/)){ 8089jQuery("input[name=var_ajax]",leform).remove(); 8090if(leclk){ 8091var n=leclk.name; 8092if(n&&!leclk.disabled){ 8093jQuery(leform).prepend("<input type='hidden' name='"+n+"' value='"+leclk.value+"'>"); 8094if(leclk.type==="image"){ 8095jQuery(leform).prepend("<input type='hidden' name='"+n+".x' value='"+leform.clk_x+"'>"); 8096jQuery(leform).prepend("<input type='hidden' name='"+n+".y' value='"+leform.clk_y+"'>"); 8097} 8098} 8099}
8100jQuery(leform).ajaxFormUnbind().closest('.formulaire_spip').addClass('resubmit-noajax'); 8101try{ 8102leform.submit(); 8103}catch(err){ 8104var submitFn=document.createElement('form').submit; 8105submitFn.apply(leform); 8106} 8107} 8108else{ 8109if(!c.length||c.indexOf("ajax-form-is-ok")==-1) 8110return onError.apply(this,[status,xhr,$form]); 8111var preloaded=jQuery.spip.preloaded_urls; 8112jQuery.spip.preloaded_urls={}; 8113jQuery(cible).html(c); 8114var a=jQuery('a:first',cible).eq(0); 8115var d=jQuery('div.ajax',cible); 8116if(!d.length){ 8117jQuery(cible).addClass('ajax'); 8118if(!scrollwhensubmit) 8119jQuery(cible).addClass('noscroll'); 8120} 8121else{ 8122d.siblings('br.bugajaxie').remove(); 8123cible=jQuery(":first",cible); 8124cible.unwrap(); 8125} 8126if(a.length 8127&&a.is('a[name=ajax_ancre]') 8128&&jQuery(a.attr('href'),cible).length){ 8129a=a.attr('href'); 8130if(jQuery(a,cible).length) 8131setTimeout(function(){ 8132jQuery(a,cible).positionner(false); 8133},10); 8134jQuery(cible).closest('.ajax-form-container').endLoading(true); 8135} 8136else{ 8137if(a.length&&a.is('a[name=ajax_redirect]')){ 8138a=a.get(0).href; 8139setTimeout(function(){ 8140var cur=window.location.href.split('#'); 8141document.location.replace(a); 8142if(cur[0]==a.split('#')[0]){ 8143window.location.reload(); 8144} 8145},10); 8146jQuery(cible).closest('.ajax-form-container').animateLoading(); 8147} 8148else{ 8149jQuery(cible).closest('.ajax-form-container').endLoading(true); 8150} 8151} 8152if(!jQuery('.reponse_formulaire_ok',cible).length) 8153jQuery.spip.preloaded_urls=preloaded; 8154jQuery.spip.updateReaderBuffer(); 8155} 8156} 8157}) 8158.addClass('noajax hasajax'); 8159}); 8160}); 8161} 8162jQuery.fn.formulaire_verifier=function(callback,champ){ 8163var erreurs={'message_erreur':'form non ajax'}; 8164var me=this; 8165if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true'){ 8166if(jQuery(me).is('form.hasajax')){ 8167jQuery(me).ajaxSubmit({ 8168dataType:"json", 8169data:{formulaire_action_verifier_json:true}, 8170success:function(errs){ 8171var args=[errs,champ] 8172if(jQuery(me).closest('.ajax-form-container').attr('aria-busy')!='true') 8173callback.apply(me,args); 8174} 8175}); 8176} 8177else 8178callback.apply(me,[erreurs,champ]); 8179} 8180return this; 8181} 8182jQuery.fn.formulaire_activer_verif_auto=function(callback){ 8183callback=callback||formulaire_actualiser_erreurs; 8184var me=jQuery(this).closest('.ajax-form-container'); 8185var check=function(){ 8186var name=jQuery(this).attr('name'); 8187setTimeout(function(){me.find('form').formulaire_verifier(callback,name);},50); 8188} 8189var activer=function(){ 8190if(me.find('form').attr('data-verifjson')!='on'){ 8191me 8192.find('form') 8193.attr('data-verifjson','on') 8194.find('input,select,textarea') 8195.on('change',check); 8196} 8197} 8198jQuery(activer); 8199onAjaxLoad(function(){setTimeout(activer,150);}); 8200} 8201function formulaire_actualiser_erreurs(erreurs){ 8202var parent=jQuery(this).closest('.formulaire_spip'); 8203if(!parent.length)return; 8204parent.find('.reponse_formulaire,.erreur_message').fadeOut().remove(); 8205parent.find('.erreur').removeClass('erreur'); 8206if(erreurs['message_ok']) 8207parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_ok">'+erreurs['message_ok']+'</p>'); 8208if(erreurs['message_erreur']) 8209parent.find('form').before('<p class="reponse_formulaire reponse_formulaire_erreur">'+erreurs['message_erreur']+'</p>'); 8210for(var k in erreurs){ 8211var saisie=parent.find('.editer_'+k); 8212if(saisie.length){ 8213saisie.addClass('erreur'); 8214saisie.find('label').after('<span class="erreur_message">'+erreurs[k]+'</span>'); 8215} 8216} 8217} 8218var ajax_confirm=true; 8219var ajax_confirm_date=0; 8220var spip_confirm=window.confirm; 8221function _confirm(message){ 8222ajax_confirm=spip_confirm(message); 8223if(!ajax_confirm){ 8224var d=new Date(); 8225ajax_confirm_date=d.getTime(); 8226} 8227return ajax_confirm; 8228} 8229window.confirm=_confirm; 8230var ajaxbloc_selecteur; 8231jQuery.spip.preloaded_urls={}; 8232jQuery.spip.on_ajax_loaded=function(blocfrag,c,href,history){ 8233history=history||(history==null); 8234if(typeof href==undefined||href==null) 8235history=false; 8236if(history) 8237jQuery.spip.setHistoryState(blocfrag); 8238if(jQuery(blocfrag).attr('data-loaded-callback')){ 8239var callback=eval(jQuery(blocfrag).attr('data-loaded-callback')); 8240callback.call(blocfrag,c,href,history); 8241} 8242else{ 8243jQuery(blocfrag) 8244.html(c) 8245.endLoading(); 8246} 8247if(typeof href!=undefined) 8248jQuery(blocfrag).attr('data-url',href); 8249if(history){ 8250var href_history=href; 8251if(href_history.indexOf('var_nullify')!==-1){ 8252href_history=parametre_url(href_history,'var_nullify',''); 8253} 8254jQuery.spip.pushHistoryState(href_history); 8255jQuery.spip.setHistoryState(blocfrag); 8256} 8257var a=jQuery('a:first',jQuery(blocfrag)).eq(0); 8258if(a.length 8259&&a.is('a[name=ajax_ancre]') 8260&&jQuery(a.attr('href'),blocfrag).length){ 8261a=a.attr('href'); 8262jQuery(a,blocfrag).positionner(false); 8263} 8264jQuery.spip.log('on_ajax_loaded'); 8265jQuery.spip.triggerAjaxLoad(blocfrag); 8266a=jQuery(blocfrag).parents('form.hasajax') 8267if(a.length) 8268a.eq(0).removeClass('noajax').parents('div.ajax').formulaire_dyn_ajax(); 8269jQuery.spip.updateReaderBuffer(); 8270} 8271jQuery.spip.on_ajax_failed=function(blocfrag,statusCode,href,history){ 8272jQuery(blocfrag).addClass('invalid'); 8273jQuery.spip.log("Echec AJAX statusCode "+statusCode) 8274history=history||(history==null); 8275if(history){ 8276if(jQuery.spip.debug){ 8277jQuery.spip.log("On redirige sur sur "+href) 8278} 8279else{ 8280window.location.href=href; 8281} 8282} 8283} 8284jQuery.spip.stateId=0; 8285jQuery.spip.setHistoryState=function(blocfrag){ 8286if(!window.history.replaceState)return; 8287if(!blocfrag.attr('id')){ 8288while(jQuery('#ghsid'+jQuery.spip.stateId).length) 8289jQuery.spip.stateId++; 8290blocfrag.attr('id','ghsid'+jQuery.spip.stateId); 8291} 8292var href=blocfrag.attr('data-url')||blocfrag.attr('data-origin'); 8293href=jQuery("<"+"a href='"+href+"'></a>").get(0).href; 8294var state={ 8295id:blocfrag.attr('id'), 8296href:href 8297}; 8298var ajaxid=blocfrag.attr('class').match(/\bajax-id-[\w-]+\b/); 8299if(ajaxid&&ajaxid.length) 8300state["ajaxid"]=ajaxid[0]; 8301window.history.replaceState(state,window.document.title,window.document.location); 8302} 8303jQuery.spip.pushHistoryState=function(href,title){ 8304if(!window.history.pushState) 8305return false;
8306window.history.pushState({},title,href); 8307} 8308window.onpopstate=function(popState){ 8309if(popState.state&&popState.state.href){ 8310var blocfrag=false; 8311if(popState.state.id){ 8312blocfrag=jQuery('#'+popState.state.id); 8313} 8314if((!blocfrag||!blocfrag.length)&&popState.state.ajaxid){ 8315blocfrag=jQuery('.ajaxbloc.'+popState.state.ajaxid); 8316} 8317if(blocfrag&&blocfrag.length==1){ 8318jQuery.spip.ajaxClick(blocfrag,popState.state.href,{history:false}); 8319return true; 8320} 8321else{ 8322window.location.href=popState.state.href; 8323} 8324} 8325} 8326jQuery.spip.loadAjax=function(blocfrag,url,href,options){ 8327var force=options.force||false; 8328if(jQuery(blocfrag).attr('data-loading-callback')){ 8329var callback=eval(jQuery(blocfrag).attr('data-loading-callback')); 8330callback.call(blocfrag,url,href,options); 8331} 8332else{ 8333jQuery(blocfrag).animateLoading(); 8334} 8335if(jQuery.spip.preloaded_urls[url]&&!force){ 8336if(jQuery.spip.preloaded_urls[url]=="<!--loading-->"){ 8337setTimeout(function(){jQuery.spip.loadAjax(blocfrag,url,href,options);},100); 8338return; 8339} 8340jQuery.spip.on_ajax_loaded(blocfrag,jQuery.spip.preloaded_urls[url],href,options.history); 8341}else{ 8342var d=new Date(); 8343jQuery.spip.preloaded_urls[url]="<!--loading-->"; 8344jQuery.ajax({ 8345url:parametre_url(url,'var_t',d.getTime()), 8346onAjaxLoad:false, 8347success:function(c){ 8348jQuery.spip.on_ajax_loaded(blocfrag,c,href,options.history); 8349jQuery.spip.preloaded_urls[url]=c; 8350if(options.callback&&typeof options.callback=="function") 8351options.callback.apply(blocfrag); 8352}, 8353error:function(e){ 8354jQuery.spip.preloaded_urls[url]=''; 8355jQuery.spip.on_ajax_failed(blocfrag,e.status,href,options.history); 8356} 8357}); 8358} 8359} 8360jQuery.spip.makeAjaxUrl=function(href,ajax_env,origin){ 8361var url=href.split('#'); 8362url[0]=parametre_url(url[0],'var_ajax',1); 8363url[0]=parametre_url(url[0],'var_ajax_env',ajax_env); 8364if(origin){ 8365if(origin.indexOf('var_nullify')!==-1){ 8366origin=parametre_url(origin,'var_nullify',''); 8367} 8368var p=origin.indexOf('?'); 8369var nullify=[]; 8370if(p!==-1){ 8371var args=origin.substring(p+1).split('&'); 8372var val; 8373var arg; 8374for(var n=0;n<args.length;n++){ 8375arg=args[n].split('='); 8376arg=decodeURIComponent(arg[0]); 8377p=arg.indexOf('['); 8378if(p!==-1) 8379arg=arg.substring(0,p); 8380val=parametre_url(href,arg); 8381if((typeof val=="undefined"||val==null)&&nullify.indexOf(arg)===-1){ 8382nullify.push(arg); 8383} 8384} 8385if(nullify.length){ 8386url[0]=url[0]+'&'+'var_nullify='+encodeURIComponent(nullify.join('|')); 8387} 8388} 8389} 8390if(url[1]) 8391url[0]=parametre_url(url[0],'var_ajax_ancre',url[1]); 8392return url[0]; 8393} 8394jQuery.spip.ajaxReload=function(blocfrag,options){ 8395var ajax_env=blocfrag.attr('data-ajax-env'); 8396if(!ajax_env||ajax_env==undefined)return; 8397var href=options.href||blocfrag.attr('data-url')||blocfrag.attr('data-origin'); 8398if(href&&typeof href!=undefined){ 8399if(href.indexOf('var_nullify')!==-1){ 8400href=parametre_url(href,'var_nullify',''); 8401} 8402options=options||{}; 8403var callback=options.callback||null; 8404var history=options.history||false; 8405var args=options.args||{}; 8406for(var key in args){ 8407href=parametre_url(href,key,args[key]==undefined?'':args[key],'&',args[key]==undefined?false:true); 8408} 8409var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 8410jQuery.spip.loadAjax(blocfrag,url,href,{force:true,callback:callback,history:history}); 8411return true; 8412} 8413} 8414jQuery.spip.ajaxClick=function(blocfrag,href,options){ 8415var ajax_env=blocfrag.attr('data-ajax-env'); 8416if(!ajax_env||ajax_env==undefined)return; 8417if(!ajax_confirm){ 8418ajax_confirm=true; 8419var d=new Date(); 8420if((d.getTime()-ajax_confirm_date)<=2) 8421return false; 8422} 8423var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 8424jQuery.spip.loadAjax(blocfrag,url,href,options); 8425return false; 8426} 8427jQuery.fn.ajaxbloc=function(){ 8428if(this.length) 8429jQuery.spip.initReaderBuffer(); 8430if(ajaxbloc_selecteur==undefined) 8431ajaxbloc_selecteur='.pagination a,a.ajax'; 8432return this.each(function(){ 8433jQuery('div.ajaxbloc',this).ajaxbloc(); 8434var blocfrag=jQuery(this); 8435var ajax_env=blocfrag.attr('data-ajax-env'); 8436if(!ajax_env||ajax_env==undefined)return; 8437blocfrag.not('.bind-ajaxReload').on('ajaxReload',function(event,options){ 8438if(jQuery.spip.ajaxReload(blocfrag,options)) 8439event.stopPropagation(); 8440}).addClass('bind-ajaxReload'); 8441jQuery(ajaxbloc_selecteur,this).not('.noajax,.bind-ajax') 8442.click(function(){return jQuery.spip.ajaxClick(blocfrag,this.href,{force:jQuery(this).is('.nocache'),history:!(jQuery(this).is('.nohistory')||jQuery(this).closest('.box_modalbox').length)});}) 8443.addClass('bind-ajax') 8444.filter('.preload').each(function(){ 8445var href=this.href; 8446var url=jQuery.spip.makeAjaxUrl(href,ajax_env,blocfrag.attr('data-origin')); 8447if(!jQuery.spip.preloaded_urls[url]){ 8448jQuery.spip.preloaded_urls[url]='<!--loading-->'; 8449jQuery.ajax({url:url,onAjaxLoad:false,success:function(r){jQuery.spip.preloaded_urls[url]=r;},error:function(){jQuery.spip.preloaded_urls[url]='';}}); 8450} 8451}); 8452jQuery('form.bouton_action_post.ajax',this).not('.noajax,.bind-ajax').each(function(){ 8453var leform=this; 8454var url=jQuery(this).attr('action').split('#'); 8455var scrollwhensubmit=(!jQuery(this).is('.noscroll')&&!jQuery('.submit',this).is('.noscroll')); 8456jQuery(this) 8457.prepend("<input type='hidden' name='var_ajax' value='1'><input type='hidden' name='var_ajax_env' value='"+(ajax_env)+"'>"+(url[1]?"<input type='hidden' name='var_ajax_ancre' value='"+url[1]+"'>":"")) 8458.ajaxForm({ 8459beforeSubmit:function(){ 8460jQuery(blocfrag).animateLoading(); 8461if(scrollwhensubmit){ 8462jQuery(blocfrag).positionner(false); 8463} 8464}, 8465onAjaxLoad:false, 8466success:function(c){ 8467jQuery.spip.on_ajax_loaded(blocfrag,c); 8468jQuery.spip.preloaded_urls={}; 8469}, 8470error:function(e){ 8471jQuery.spip.preloaded_urls={}; 8472var href=parametre_url(url,'redirect'); 8473if(!href){ 8474href=window.location.href; 8475} 8476jQuery.spip.on_ajax_failed(blocfrag,e.status,href,e.status===400); 8477} 8478}) 8479.addClass('bind-ajax'); 8480}); 8481}); 8482}; 8483jQuery.fn.followLink=function(){ 8484$(this).click(); 8485if(!$(this).is('.bind-ajax')) 8486window.location.href=$(this).get(0).href; 8487return this; 8488} 8489function ajaxReload(ajaxid,options){ 8490jQuery('div.ajaxbloc.ajax-id-'+ajaxid).ajaxReload(options); 8491} 8492jQuery.fn.ajaxReload=function(options){ 8493options=options||{};
8494jQuery(this).trigger('ajaxReload',[options]); 8495return this; 8496} 8497jQuery.fn.animateLoading=function(){ 8498this.attr('aria-busy','true').addClass('loading').children().css('opacity',0.5); 8499if(typeof ajax_image_searching!='undefined'){ 8500var i=(this).find('.image_loading'); 8501if(i.length)i.eq(0).html(ajax_image_searching); 8502else this.prepend('<span class="image_loading">'+ajax_image_searching+'</span>'); 8503} 8504return this; 8505} 8506jQuery.fn.animeajax=jQuery.fn.animateLoading; 8507jQuery.fn.endLoading=function(hard){ 8508hard=hard||false; 8509this.attr('aria-busy','false').removeClass('loading'); 8510if(hard){ 8511this.children().css('opacity',''); 8512this.find('.image_loading').html(''); 8513} 8514return this; 8515} 8516jQuery.fn.animateRemove=function(callback){ 8517if(this.length){ 8518var me=this; 8519var color=$("<div class='remove'></div>").css('background-color'); 8520var sel=$(this); 8521if(sel.is('tr')) 8522sel=sel.add('>td',sel); 8523sel.addClass('remove').css({backgroundColor:color}).animate({opacity:"0.0"},'fast',function(){ 8524sel.removeClass('remove').css({backgroundColor:''}); 8525if(callback) 8526callback.apply(me); 8527}); 8528} 8529return this; 8530} 8531jQuery.fn.animateAppend=function(callback){ 8532if(this.length){ 8533var me=this; 8534var color=$("<div class='append'></div>").css('background-color'); 8535var origin=$(this).css('background-color')||'#ffffff'; 8536if(origin=='transparent')origin='#ffffff'; 8537var sel=$(this); 8538if(sel.is('tr')) 8539sel=sel.add('>td',sel); 8540sel.css('opacity','0.0').addClass('append').css({backgroundColor:color}).animate({opacity:"1.0"},1000,function(){ 8541sel.animate({backgroundColor:origin},3000,function(){ 8542sel.removeClass('append').css({backgroundColor:''}); 8543if(callback) 8544callback.apply(me); 8545}); 8546}); 8547} 8548return this; 8549} 8550function parametre_url(url,c,v,sep,force_vide){ 8551if(typeof(url)=='undefined'){ 8552url=''; 8553} 8554var p; 8555var ancre=''; 8556var a='./'; 8557var args=[]; 8558p=url.indexOf('#'); 8559if(p!=-1){ 8560ancre=url.substring(p); 8561url=url.substring(0,p); 8562} 8563p=url.indexOf('?'); 8564if(p!==-1){ 8565if(p>0)a=url.substring(0,p); 8566args=url.substring(p+1).split('&'); 8567} 8568else 8569a=url; 8570var regexp=new RegExp('^('+c.replace('[]','\\[\\]')+'\\[?\\]?)(=.*)?$'); 8571var ajouts=[]; 8572var u=(typeof(v)!=='object')?encodeURIComponent(v):v; 8573var na=[]; 8574var v_read=null; 8575for(var n=0;n<args.length;n++){ 8576var val=args[n]; 8577try{ 8578val=decodeURIComponent(val); 8579}catch(e){} 8580var r=val.match(regexp); 8581if(r&&r.length){ 8582if(v==null){ 8583if(r[1].substr(-2)=='[]'){ 8584if(!v_read)v_read=[]; 8585v_read.push((r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):''); 8586} 8587else{ 8588return(r.length>2&&typeof r[2]!=='undefined')?r[2].substring(1):''; 8589} 8590} 8591else if(!v.length){ 8592} 8593else if(r[1].substr(-2)!='[]'){ 8594na.push(r[1]+'='+u); 8595ajouts.push(r[1]); 8596} 8597} 8598else 8599na.push(args[n]); 8600} 8601if(v==null)return v_read; 8602if(v||v.length||force_vide){ 8603ajouts="="+ajouts.join("=")+"="; 8604var all=c.split('|'); 8605for(n=0;n<all.length;n++){ 8606if(ajouts.search("="+all[n]+"=")==-1){ 8607if(typeof(v)!=='object'){ 8608na.push(all[n]+'='+u); 8609} 8610else{ 8611var id=((all[n].substring(-2)=='[]')?all[n]:all[n]+"[]"); 8612for(p=0;p<v.length;p++) 8613na.push(id+'='+encodeURIComponent(v[p])); 8614} 8615} 8616} 8617} 8618if(na.length){ 8619if(!sep)sep='&'; 8620a=a+"?"+na.join(sep); 8621} 8622return a+ancre; 8623} 8624function spip_logo_survol_hover(){ 8625var me=jQuery(this); 8626if(me.attr('data-src-hover')){ 8627me.attr('data-src-original',me.attr('src')); 8628me.attr('src',me.attr('data-src-hover')); 8629} 8630} 8631function spip_logo_survol_out(){ 8632var me=jQuery(this); 8633if(me.attr('data-src-original')){ 8634me.attr('src',me.attr('data-src-original')); 8635} 8636} 8637function disableClickAfterFormSubmit(){ 8638if(jQuery(this).is('.processing-submitted-form')){ 8639return false; 8640} 8641jQuery(this) 8642.addClass('processing-submitted-form') 8643.find('button[type="submit"]') 8644.attr('disabled','disabled') 8645.addClass('disabled') 8646} 8647function puce_enable_survol(){ 8648jQuery('span.puce_objet_popup a',this).not('.puce-survol-enabled').click(function(){ 8649selec_statut(jQuery(this).attr('data-puce-id'),jQuery(this).attr('data-puce-type'),jQuery(this).attr('data-puce-decal'),jQuery('img',this).attr('src'),jQuery(this).attr('data-puce-action')); 8650return false; 8651}).addClass('puce-survol-enabled'); 8652jQuery('span.puce_objet',this).not('.puce-survol-enabled').mouseover(function(){ 8653if(!this.puce_loaded){ 8654this.puce_loaded=true;prepare_selec_statut(this,jQuery(this).attr('data-puce-nom'),jQuery(this).attr('data-puce-type'),jQuery(this).attr('data-puce-id'),jQuery(this).attr('data-puce-action')); 8655} 8656}).addClass('puce-survol-enabled'); 8657} 8658if(!window.var_zajax_content) 8659window.var_zajax_content='contenu'; 8660jQuery(function(){ 8661jQuery('form:not(.bouton_action_post)').parents('div.ajax') 8662.formulaire_dyn_ajax();
8663jQuery('div.ajaxbloc').ajaxbloc(); 8664jQuery("input[placeholder]:text").placeholderLabel(); 8665jQuery('.spip_logo_survol').hover(spip_logo_survol_hover,spip_logo_survol_out); 8666puce_enable_survol.apply(this); 8667jQuery('body').on('submit','form.bouton_action_post',disableClickAfterFormSubmit); 8668}); 8669onAjaxLoad(function(){ 8670if(jQuery){ 8671jQuery('form:not(.bouton_action_post)',this).parents('div.ajax') 8672.formulaire_dyn_ajax(); 8673if(jQuery(this).is('div.ajaxbloc')) 8674jQuery(this).ajaxbloc(); 8675else if(jQuery(this).closest('div.ajaxbloc').length) 8676jQuery(this).closest('div.ajaxbloc').ajaxbloc(); 8677else 8678jQuery('div.ajaxbloc',this).ajaxbloc(); 8679jQuery("input[placeholder]:text",this).placeholderLabel(); 8680jQuery('.spip_logo_survol',this).hover(spip_logo_survol_hover,spip_logo_survol_out); 8681puce_enable_survol.apply(this); 8682} 8683}); 8684 8685 8686/* prive/javascript/js.cookie.js?1788349516 */ 8687 8688; 8689(function(global,factory){ 8690typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(): 8691typeof define==='function'&&define.amd?define(factory): 8692(global=typeof globalThis!=='undefined'?globalThis:global||self,(function(){ 8693var current=global.Cookies; 8694var exports=global.Cookies=factory(); 8695exports.noConflict=function(){global.Cookies=current;return exports;}; 8696})()); 8697})(this,(function(){'use strict'; 8698function assign(target){ 8699for(var i=1;i<arguments.length;i++){ 8700var source=arguments[i]; 8701for(var key in source){ 8702target[key]=source[key]; 8703} 8704} 8705return target 8706} 8707var defaultConverter={ 8708read:function(value){ 8709if(value[0]==='"'){ 8710value=value.slice(1,-1); 8711} 8712return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent) 8713}, 8714write:function(value){ 8715return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, 8716decodeURIComponent 8717) 8718} 8719}; 8720function init(converter,defaultAttributes){ 8721function set(name,value,attributes){ 8722if(typeof document==='undefined'){ 8723return 8724} 8725attributes=assign({},defaultAttributes,attributes); 8726if(typeof attributes.expires==='number'){ 8727attributes.expires=new Date(Date.now()+attributes.expires*864e5); 8728} 8729if(attributes.expires){ 8730attributes.expires=attributes.expires.toUTCString(); 8731} 8732name=encodeURIComponent(name) 8733.replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent) 8734.replace(/[()]/g,escape); 8735var stringifiedAttributes=''; 8736for(var attributeName in attributes){ 8737if(!attributes[attributeName]){ 8738continue 8739} 8740stringifiedAttributes+='; '+attributeName; 8741if(attributes[attributeName]===true){ 8742continue 8743} 8744stringifiedAttributes+='='+attributes[attributeName].split(';')[0]; 8745} 8746return(document.cookie= 8747name+'='+converter.write(value,name)+stringifiedAttributes) 8748} 8749function get(name){ 8750if(typeof document==='undefined'||(arguments.length&&!name)){ 8751return 8752} 8753var cookies=document.cookie?document.cookie.split('; '):[]; 8754var jar={}; 8755for(var i=0;i<cookies.length;i++){ 8756var parts=cookies[i].split('='); 8757var value=parts.slice(1).join('='); 8758try{ 8759var found=decodeURIComponent(parts[0]); 8760jar[found]=converter.read(value,found); 8761if(name===found){ 8762break 8763} 8764}catch(e){} 8765} 8766return name?jar[name]:jar 8767} 8768return Object.create( 8769{ 8770set, 8771get, 8772remove:function(name,attributes){ 8773set( 8774name, 8775'', 8776assign({},attributes,{ 8777expires:-1 8778}) 8779); 8780}, 8781withAttributes:function(attributes){ 8782return init(this.converter,assign({},this.attributes,attributes)) 8783}, 8784withConverter:function(converter){ 8785return init(assign({},this.converter,converter),this.attributes) 8786} 8787}, 8788{ 8789attributes:{value:Object.freeze(defaultAttributes)}, 8790converter:{value:Object.freeze(converter)} 8791} 8792) 8793} 8794var api=init(defaultConverter,{path:'/'}); 8795return api; 8796})); 8797 8798 8799/* plugins/auto/videos/v0.13.0/lib/html5media-1.1.8/api/html5media.min.js?1720881142 */ 8800!function(){function e(e){console.log("$f.fireEvent",[].slice.call(e))}function t(e){if(!e||"object"!=typeof e)return e;var n=new e.constructor;for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function n(e,t){if(e){var n,r=0,i=e.length;if(void 0===i){for(n in e)if(t.call(e[n],n,e[n])===!1)break}else for(var o=e[0];i>r&&t.call(o,r,o)!==!1;o=e[++r]);return e}}function r(e){return document.getElementById(e)}function i(e,t,r){return"object"!=typeof t?e:(e&&t&&n(t,function(t,n){r&&"function"==typeof n||(e[t]=n)}),e)}function o(e){var t=e.indexOf(".");if(-1!=t){var r=e.slice(0,t)||"*",i=e.slice(t+1,e.length),o=[];return n(document.getElementsByTagName(r),function(){this.className&&-1!=this.className.indexOf(i)&&o.push(this)}),o}}function a(e){return e=e||window.event,e.preventDefault?(e.stopPropagation(),e.preventDefault()):(e.returnValue=!1,e.cancelBubble=!0),!1}function u(e,t,n){e[t]=e[t]||[],e[t].push(n)}function l(){return"_"+(""+Math.random()).slice(2,10)}function s(o,s,f){function g(){function e(e){var t=S.hasiPadSupport&&S.hasiPadSupport();return!/iPad|iPhone|iPod/i.test(navigator.userAgent)||/.flv$/i.test(C[0].url)||t?(S.isLoaded()||S._fireEvent("onBeforeClick")===!1||S.load(),a(e)):!0}function t(){""!==h.replace(/\s/g,"")?o.addEventListener?o.addEventListener("click",e,!1):o.attachEvent&&o.attachEvent("onclick",e):(o.addEventListener&&o.addEventListener("click",a,!1),S.load())}$f(o)?($f(o).getParent().innerHTML="",w=$f(o).getIndex(),p[w]=S):(p.push(S),w=p.length-1),E=parseInt(o.style.height,10)||o.clientHeight,y=o.id||"fp"+l(),m=s.id||y+"_api",s.id=m,f.playerId=y,"string"==typeof f&&(f={clip:{url:f}}),"string"==typeof f.clip&&(f.clip={url:f.clip}),f.clip=f.clip||{},o.getAttribute("href",2)&&!f.clip.url&&(f.clip.url=o.getAttribute("href",2)),v=new c(f.clip,-1,S),f.playlist=f.playlist||[f.clip];var r=0;n(f.playlist,function(){var e=this;"object"==typeof e&&e.length&&(e={url:""+e}),n(f.clip,function(t,n){void 0!==n&&void 0===e[t]&&"function"!=typeof n&&(e[t]=n)}),f.playlist[r]=e,e=new c(e,r,S),C.push(e),r++}),n(f,function(e,t){"function"==typeof t&&(v[e]?v[e](t):u(x,e,t),delete f[e])}),n(f.plugins,function(e,t){t&&(k[e]=new d(e,t,S))}),f.plugins&&void 0!==f.plugins.controls||(k.controls=new d("controls",null,S)),k.c
8800anvas=new d("canvas",null,S),h=o.innerHTML,setTimeout(t,0)}var h,v,y,m,w,b,_,E,S=this,L=null,P=!1,C=[],k={},x={};if(i(S,{id:function(){return y},isLoaded:function(){return null!==L&&void 0!==L.fp_play&&!P},getParent:function(){return o},hide:function(e){return e&&(o.style.height="0px"),S.isLoaded()&&(L.style.height="0px"),S},show:function(){return o.style.height=E+"px",S.isLoaded()&&(L.style.height=_+"px"),S},isHidden:function(){return S.isLoaded()&&0===parseInt(L.style.height,10)},load:function(e){if(!S.isLoaded()&&S._fireEvent("onBeforeLoad")!==!1){var t=function(){h=o.innerHTML,h&&!flashembed.isSupported(s.version)&&(o.innerHTML=""),e&&(e.cached=!0,u(x,"onLoad",e)),flashembed(o,s,{config:f})},r=0;n(p,function(){this.unload(function(){++r==p.length&&t()})})}return S},unload:function(e){if(this.isFullscreen()&&/WebKit/i.test(navigator.userAgent))return e&&e(!1),S;if(""!==h.replace(/\s/g,"")){if(S._fireEvent("onBeforeUnload")===!1)return e&&e(!1),S;P=!0;try{L&&(L.fp_close(),S._fireEvent("onUnload"))}catch(t){}var n=function(){L=null,o.innerHTML=h,P=!1,e&&e(!0)};setTimeout(n,50)}else e&&e(!1);return S},getClip:function(e){return void 0===e&&(e=b),C[e]},getCommonClip:function(){return v},getPlaylist:function(){return C},getPlugin:function(e){var t=k[e];if(!t&&S.isLoaded()){var n=S._api().fp_getPlugin(e);n&&(t=new d(e,n,S),k[e]=t)}return t},getScreen:function(){return S.getPlugin("screen")},getControls:function(){return S.getPlugin("controls")._fireEvent("onUpdate")},getLogo:function(){try{return S.getPlugin("logo")._fireEvent("onUpdate")}catch(e){}},getPlay:function(){return S.getPlugin("play")._fireEvent("onUpdate")},getConfig:function(e){return e?t(f):f},getFlashParams:function(){return s},loadPlugin:function(e,t,n,r){"function"==typeof n&&(r=n,n={});var i=r?l():"_";S._api().fp_loadPlugin(e,t,n,i);var o={};o[i]=r;var a=new d(e,null,S,o);return k[e]=a,a},getState:function(){return S.isLoaded()?L.fp_getState():-1},play:function(e,t){var n=function(){void 0!==e?S._api().fp_play(e,t):S._api().fp_play()};return S.isLoaded()?n():P?setTimeout(function(){S.play(e,t)},50):S.load(function(){n()}),S},getVersion:function(){var e="flowplayer.js 3.2.6";if(S.isLoaded()){var t=L.fp_getVersion();return t.push(e),t}return e},_api:function(){if(!S.isLoaded())throw"Flowplayer "+S.id()+" not loaded when calling an API method";return L},setClip:function(e){return S.setPlaylist([e]),S},getIndex:function(){return w},_swfHeight:function(){return L.clientHeight}}),n("Click*,Load*,Unload*,Keypress*,Volume*,Mute*,Unmute*,PlaylistReplace,ClipAdd,Fullscreen*,FullscreenExit,Error,MouseOver,MouseOut".split(","),function(){var e="on"+this;if(-1!=e.indexOf("*")){e=e.slice(0,e.length-1);var t="onBefore"+e.slice(2);S[t]=function(e){return u(x,t,e),S}}S[e]=function(t){return u(x,e,t),S}}),n("pause,resume,mute,unmute,stop,toggle,seek,getStatus,getVolume,setVolume,getTime,isPaused,isPlaying,startBuffer
8800ing,stopBuffering,isFullscreen,toggleFullscreen,reset,close,setPlaylist,addClip,playFeed,setKeyboardShortcutsEnabled,isKeyboardShortcutsEnabled".split(","),function(){var e=this;S[e]=function(t,n){if(!S.isLoaded())return S;var r=null;return r=void 0!==t&&void 0!==n?L["fp_"+e](t,n):void 0===t?L["fp_"+e]():L["fp_"+e](t),"undefined"===r||void 0===r?S:r}}),S._fireEvent=function(t){"string"==typeof t&&(t=[t]);var i=t[0],o=t[1],a=t[2],u=t[3],l=0;if(f.debug&&e(t),S.isLoaded()||"onLoad"!=i||"player"!=o||(L=L||r(m),_=S._swfHeight(),n(C,function(){this._fireEvent("onLoad")}),n(k,function(e,t){t._fireEvent("onUpdate")}),v._fireEvent("onLoad")),"onLoad"!=i||"player"==o){if("onError"==i&&("string"==typeof o||"number"==typeof o&&"number"==typeof a)&&(o=a,a=u),"onContextMenu"==i)return void n(f.contextMenu[o],function(e,t){t.call(S)});if("onPluginEvent"!=i&&"onBeforePluginEvent"!=i){if("onPlaylistReplace"==i){C=[];var s=0;n(o,function(){C.push(new c(this,s++,S))})}if("onClipAdd"==i){if(o.isInStream)return;for(o=new c(o,a,S),C.splice(a,0,o),l=a+1;l<C.length;l++)C[l].index++}var d=!0;if("number"==typeof o&&o<C.length){b=o;var p=C[o];p&&(d=p._fireEvent(i,a,u)),p&&d===!1||(d=v._fireEvent(i,a,u,p))}return n(x[i],function(){return d=this.call(S,o,a),this.cached&&x[i].splice(l,1),d===!1?!1:void l++}),d}var g=o.name||o,h=k[g];if(h)return h._fireEvent("onUpdate",o),h._fireEvent(a,t.slice(3))}},"string"==typeof o){var T=r(o);if(!T)throw"Flowplayer cannot access element: "+o;o=T,g()}else g()}function f(e){this.length=e.length,this.each=function(t){n(e,t)},this.size=function(){return e.length}}var c=function(e,t,r){var o=this,a={},s={};if(o.index=t,"string"==typeof e&&(e={url:e}),i(this,e,!0),n("Begin*,Start,Pause*,Resume*,Seek*,Stop*,Finish*,LastSecond,Update,BufferFull,BufferEmpty,BufferStop".split(","),function(){var e="on"+this;if(-1!=e.indexOf("*")){e=e.slice(0,e.length-1);var n="onBefore"+e.slice(2);o[n]=function(e){return u(s,n,e),o}}o[e]=function(t){return u(s,e,t),o},-1==t&&(o[n]&&(r[n]=o[n]),o[e]&&(r[e]=o[e]))}),i(this,{onCuepoint:function(e,n){if(1==arguments.length)return a.embedded=[null,e],o;"number"==typeof e&&(e=[e]);var i=l();return a[i]=[e,n],r.isLoaded()&&r._api().fp_addCuepoints(e,t,i),o},update:function(e){i(o,e),r.isLoaded()&&r._api().fp_updateClip(e,t);var n=r.getConfig(),a=-1==t?n.clip:n.playlist[t];i(a,e,!0)},_fireEvent:function(e,u,l,f){if("onLoad"==e)return n(a,function(e,n){
8800n[0]&&r._api().fp_addCuepoints(n[0],t,e)}),!1;if(f=f||o,"onCuepoint"==e){var c=a[u];if(c)return c[1].call(r,f,l)}u&&-1!="onBeforeBegin,onMetaData,onStart,onUpdate,onResume".indexOf(e)&&(i(f,u),u.metaData&&(f.duration?f.fullDuration=u.metaData.duration:f.duration=u.metaData.duration));var d=!0;return n(s[e],function(){d=this.call(r,f,u,l)}),d}}),e.onCuepoint){var f=e.onCuepoint;o.onCuepoint.apply(o,"function"==typeof f?[f]:f),delete e.onCuepoint}n(e,function(t,n){"function"==typeof n&&(u(s,t,n),delete e[t])}),-1==t&&(r.onCuepoint=this.onCuepoint)},d=function(e,t,r,o){var a=this,u={},s=!1;o&&i(u,o),n(t,function(e,n){"function"==typeof n&&(u[e]=n,delete t[e])}),i(this,{animate:function(n,i,o){if(!n)return a;if("function"==typeof i&&(o=i,i=500),"string"==typeof n){var s=n;n={},n[s]=i,i=500}if(o){var f=l();u[f]=o}return void 0===i&&(i=500),t=r._api().fp_animate(e,n,i,f),a},css:function(n,o){if(void 0!==o){var u={};u[n]=o,n=u}return t=r._api().fp_css(e,n),i(a,t),a},show:function(){return this.display="block",r._api().fp_showPlugin(e),a},hide:function(){return this.display="none",r._api().fp_hidePlugin(e),a},toggle:function(){return this.display=r._api().fp_togglePlugin(e),a},fadeTo:function(t,n,i){if("function"==typeof n&&(i=n,n=500),i){var o=l();u[o]=i}return this.display=r._api().fp_fadeTo(e,t,n,o),this.opacity=t,a},fadeIn:function(e,t){return a.fadeTo(1,e,t)},fadeOut:function(e,t){return a.fadeTo(0,e,t)},getName:function(){return e},getPlayer:function(){return r},_fireEvent:function(t,o){if("onUpdate"==t){var l=r._api().fp_getPlugin(e);if(!l)return;i(a,l),delete a.methods,s||(n(l.methods,function(){var t=""+this;a[t]=function(){var n=[].slice.call(arguments),i=r._api().fp_invoke(e,t,n);return"undefined"===i||void 0===i?a:i}}),s=!0)}var f=u[t];if(f){var c=f.apply(a,o);return"_"==t.slice(0,1)&&delete u[t],c}return a}})},p=[];window.flowplayer=window.$f=function(){var e=null,a=arguments[0];if(!arguments.length)return n(p,function(){return this.isLoaded()?(e=this,!1):void 0}),e||p[0];if(1==arguments.length)return"number"==typeof a?p[a]:"*"==a?new f(p):(n(p,function(){return this.id()==a.id||this.id()==a||this.getParent()==a?(e=this,!1):void 0}),e);if(arguments.length>1){var u=arguments[1],l=3==arguments.length?arguments[2]:{};if("string"==typeof u&&(u={src:u}),u=i({bgcolor:"#000000",version:[9,0],expressInstall:"http://static.flowplayer.org/swf/expressinstall.swf",cachebusting:!1},u),"string"==typeof a){if(-1!=a.indexOf(".")){var c=[];return n(o(a),function(){c.push(new s(this,t(u),t(l)))}),new f(c)}var d=r(a);return new s(null!==d?d:a,u,l)}if(a)return new s(a,u,l)}return null},i(window.$f,{fireEvent:function(){var e=[].slice.call(arguments),t=$f(e[0]);return t?t._fireEvent(e.slice(1)):null},addPlugin:function(e,t){return s.prototype[e]=t,$f},each:n,extend:i}),"function"==typeof jQuery&&(jQuery.fn.flowplayer=function(e,n){if(!arguments.length||"number"==typeof arguments[0]){var r=[];return this.each(function(){var e=$f(this);e&&r.push(e)}),arguments.length?r[arguments[0]]:new f(r)}return this.each(function(){$f(this,t(e),n?t(n):{})})})}(),function(){function e(){if(s.done)return!1;var e=document;if(e&&e.getElementsByTagName&&e.getElementById&&e.body){clearInterval(s.timer),s.timer=null;for(var t=0;t<s.ready.length;t++)s.ready[t].call();s.ready=null,s.done=!0}}function t(e,t){if(t)for(key in t)t.hasOwnProperty(key)&&(e[key]=t[key]);return e}function n(e){switch(r(e)){case"string":return e=e.replace(new RegExp('(["\\\\])',"g"),"\\$1"),e=e.replace(/^\s?(\d+)%/,"$1pct"),'"'+e+'"';case"array":return"["+i(e,function(e){return n(e)}).join(",")+"]";case"function":return'"function()"';case"object":var t=[];for(var o in e)e.hasOwnProperty(o)&&t.push('"'+o+'":'+n(e[o]));return"{"+t.join(",")+"}"}return String(e).replace(/\s/g," ").replace(/\'/g,'"')}function r(e){if(null===e||void 0===e)return!1;var t=typeof e;return"object"==t&&e.push?"array":t}function i(e,t){var n=[];for(var r in e)e.hasOwnProperty(r)&&(n[r]=t(e[r]));return n}function o(e,r){var i=t({},e),o=document.all,a='<object width="'+i.width+'" height="'+i.height+'"';o&&!i.id&&(i.id="_"+(""+Math.random()).substring(9)),i.id&&(a+=' id="'+i.id+'"'),i.cachebusting&&(i.src+=(-1!=i.src.indexOf("?")?"&":"?")+Math.random()),a+=i.w3c||!o?' data="'+i.src+'" type="application/x-shockwave-flash"':' classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"',a+=">",(i.w3c||o)&&(a+='<param name="movie" value="'+i.src+'" />'),i.width=i.height=i.id=i.w3c=i.src=null;for(var u in i)null!==i[u]&&(a+='<param name="'+u+'" value="'+i[u]+'" />');var l="";if(r){for(var s in r)null!==r[s]&&(l+=s+"="+("object"==typeof r[s]?n(r[s]):r[s])+"&");l=l.substring(0,l.length-1),a+='<param name="flashvars" value=\''+l+"' />"}return a+="</object>"}function a(e,n,r){var i=flashembed.getVersion();t(this,{getContainer:function(){return e},getConf:function(){return n},getVersion:function(){return i},getFlashvars:function(){return r},getApi:function(){return e.firstChild},getHTML:function(){return o(n,r)}});var a=n.version,u=n.expressInstall,l=!a||flashembed.isSupported(a);if(l?(n.onFail=n.version=n.expressInstall=null,e.innerHTML=o(n,r)):a&&u&&flashembed.isSupported([6,65])?(t(n,{src:u}),r={MMredirectURL:location.href,MMplayerType:"PlugIn",MMdoctitle:document.title},e.innerHTML=o(n,r)):""!==e.innerHTML.replace(/\s/g,"")||(e.innerHTML="<h2>Flash version "+a+" or greater is required</h2><h3>"+(i[0]>0?"Your version is "+i:"You have no flash plugin installed")+"</h3>"+("A"==e.tagName?"<p>Click here to download latest version</p>":"<p>Download latest version from <a href='http://www.adobe.com/go/getflashplayer'>here</a></p>"),"A"==e.tagName&&(e.onclick=function(){location.href="http://www.adobe.com/go/getflashplayer"}
8800)),!l&&n.onFail){var s=n.onFail.call(this);"string"==typeof s&&(e.innerHTML=s)}document.all&&(window[n.id]=document.getElementById(n.id))}var u="function"==typeof jQuery,l={width:"100%",height:"100%",allowfullscreen:!0,allowscriptaccess:"always",quality:"high",version:null,onFail:null,expressInstall:null,w3c:!1,cachebusting:!1};u&&(jQuery.tools=jQuery.tools||{},jQuery.tools.flashembed={version:"1.0.4",conf:l});var s=u?jQuery:function(t){return s.done?t():void(s.timer?s.ready.push(t):(s.ready=[t],s.timer=setInterval(e,13)))};window.attachEvent&&window.attachEvent("onbeforeunload",function(){__flash_unloadHandler=function(){},__flash_savedUnloadHandler=function(){}}),window.flashembed=function(e,n,r){if("string"==typeof e){var i=document.getElementById(e);if(!i)return void s(function(){flashembed(e,n,r)});e=i}if(e){"string"==typeof n&&(n={src:n});var o=t({},l);return t(o,n),new a(e,o,r)}},t(window.flashembed,{getVersion:function(){var e=[0,0];if(navigator.plugins&&"object"==typeof navigator.plugins["Shockwave Flash"]){var t=navigator.plugins["Shockwave Flash"].description;if("undefined"!=typeof t){t=t.replace(/^.*\s+(\S+\s+\S+$)/,"$1");var n=parseInt(t.replace(/^(.*)\..*$/,"$1"),10),r=/r/.test(t)?parseInt(t.replace(/^.*r(.*)$/,"$1"),10):0;e=[n,r]}}else if(window.ActiveXObject){try{var i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7")}catch(o){try{i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6"),e=[6,0],i.AllowScriptAccess="always"}catch(a){if(6==e[0])return e}try{i=new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(u){}}"object"==typeof i&&(t=i.GetVariable("$version"),"undefined"!=typeof t&&(t=t.replace(/^\S+\s+(.*)$/,"$1").split(","),e=[parseInt(t[0],10),parseInt(t[2],10)]))}return e},isSupported:function(e){var t=flashembed.getVersion(),n=t[0]>e[0]||t[0]==e[0]&&t[1]>=e[1];return n},domReady:s,asString:n,getHTML:o}),u&&(jQuery.fn.flashembed=function(e,t){var n=null;return this.each(function(){n=flashembed(this,e,t)}),e.api===!1?this:n})}(),function(){function e(){if(!u&&(u=!0,l)){for(var e=0;e<l.length;e++)l[e].call(window,[]);l=[]}}function t(e){var t=window.onload;window.onload="function"!=typeof window.onload?e:function(){t&&t(),e()}}function n(){if(!a){if(a=!0,document.addEventListener&&!o.opera&&document.addEventListener("DOMContentLoaded",e,!1),o.msie&&window==top&&function(){if(!u){try{document.documentElement.doScroll("left")}catch(t){return void setTimeout(arguments.callee,0)}e()}}(),o.opera&&document.addEventListener("DOMContentLoaded",function(){if(!u){for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].disabled)return void setTimeout(arguments.callee,0);e()}},!1),o.safari){var n;!function(){if(!u){if("loaded"!=document.readyState&&"complete"!=document.readyState)return void setTimeout(arguments.callee,0);if(void 0===n){for(var t=document.getElementsByTagName("link"),r=0;r<t.length;r++)"stylesheet"==t[r].getAttribute("rel")&&n++;var i=document.getElementsByTagName("style");n+=i.length}return document.styleSheets.length!=n?void setTimeout(arguments.callee,0):void e()}}()}t(e)}}var r=window.DomReady={},i=navigator.userAgent.toLowerCase(),o={version:(i.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(i),opera:/opera/.test(i),msie:/msie/.test(i)&&!/opera/.test(i),mozilla:/mozilla/.test(i)&&!/(compatible|webkit)/.test(i)},a=!1,u=!1,l=[];r.ready=function(e){n(),u?e.call(window,[]):l.push(function(){return e.call(window,[])})},n()}(),function(e,t){"use strict";function n(e,t){return e.canPlayType(t)||g&&t.search("mp4")>-1}function r(e){for(var r=t.getElementsByTagName(e),o=[],u=0;u<r.length;u++)o.push(r[u]);for(u=0;u<o.length;u++){var l=o[u],s=!0;if(l.canPlayType)if(l.src)n(l,a(e,l.src))&&(s=!1);else for(var f=l.getElementsByTagName("source"),c=0;c<f.length;c++){var d=f[c];if(n(l,a(e,d.src,d.type))){s=!1;break}}s||i.forceFallback(e,l)?i.createFallback(e,l):g&&l.addEventListener("click",function(){this.play()},!1)}}function i(){r("video"),r("audio")}function o(e){return e.split("/").slice(0,-1).join("/")+"/"}function a(e,t,n){if(n)return n;var r=/\.([a-z1-9]+)(\?|#|\s|$)/i.exec(t);if(r){var i=C[e][r[1]];if(i)return i}return L[e]}function u(e,t){var n=e.getAttribute(t);return!!n||"string"==typeof n}function l(e){var n=t.createElement("a");return n.href=e,n.href}function s(n,r,i){var o=n.getAttribute(r);if(o)return o+"px";var a;if(n.currentStyle)a=n.currentStyle[r];else{if(!e.getComputedStyle)return i;a=t.defaultView.getComputedStyle(n,null).getPropertyValue(r)}return"auto"==a?i:a}function f(e){return e.match(/\s*([\w-]+\/[\w-]+)(;
8800|\s|$)/)[1]}function c(e,t){return f(e)==f(t)}var d="video",p="audio";t.createElement(d).canPlayType||(t.createElement(p),t.createElement("source"));var g=null!==e.navigator.userAgent.toLowerCase().match(/android 2\.[12]/),h=null!==e.navigator.userAgent.toLowerCase().match(/opera/);i.forceFallback=function(){return!1};var v=function(){for(var e=t.getElementsByTagName("script"),n=0;n<e.length;n++){var r=e[n];if(r.src.match(/html5media(\.min|)\.js/))return o(r.src)}return""}();i.flowplayerSwf=v+"flowplayer.swf",i.flowplayerAudioSwf=v+"flowplayer.audio.swf",i.flowplayerControlsSwf=v+"flowplayer.controls.swf",i.expressInstallSwf=v+"expressInstall.swf";var y='video/ogg; codecs="theora, vorbis"',m='video/mp4; codecs="avc1.42E01E, mp4a.40.2"',w='audio/ogg; codecs="vorbis"',b="video/webm;",_="audio/x-m4a;",E="audio/mpeg;",S='audio/wav; codecs="1"',L={video:m,audio:E},P=[m,_,E],C={video:{ogg:y,ogv:y,avi:m,mp4:m,mkv:m,h264:m,264:m,avc:m,m4v:m,"3gp":m,"3gpp":m,"3g2":m,mpg:m,mpeg:m,webm:b},audio:{ogg:w,oga:w,aac:_,m4a:_,mp3:E,wav:S}};i.configureFlowplayer=function(e,t){return t},i.createFallback=function(e,n){var r=u(n,"controls"),o=n.getAttribute("poster")||"",f=n.getAttribute("src")||"";if(!f)for(var p=n.getElementsByTagName("source"),g=0;g<p.length;g++){var v=p[g],y=v.getAttribute("src");if(y)for(var m=0;m<P.length;m++){var w=P[m];if(c(w,a(e,y,v.getAttribute("type")))){f=y;break}}if(f)break}if(f){var b=t.createElement("span");b.id=n.id,b.style.cssText=n.style.cssText,b.className=n.className,b.title=n.title,b.style.display="block",b.style.width=s(n,"width","300px"),b.style.height="audio"==e?"26px":s(n,"height","200px"),n.parentNode.replaceChild(b,n);var _=(n.getAttribute("preload")||"").toLowerCase(),E=[];o&&E.push({url:l(o)}),f&&E.push({url:l(f),autoPlay:u(n,"autoplay"),autoBuffering:u(n,"autobuffer")||u(n,"preload")&&(""===_||"auto"==_),onBeforeFinish:function(){return!u(n,"loop")}});var S={controls:r&&{url:l(i.flowplayerControlsSwf),opacity:.8,backgroundColor:"#181818",backgroundGradient:"none",fullscreen:e==d,autoHide:e==d&&{fullscreenOnly:!1,enabled:!0,hideStyle:"fade",mouseOutDelay:0}||{enabled:!1}}||null};h&&S.controls&&(S.controls.autoHide.enabled=!1),"audio"==e&&(S.audio={url:l(i.flowplayerAudioSwf)},r||(S.controls={url:l(i.flowplayerControlsSwf),display:"none"},b.style.height=0),E[E.length-1].autoBuffering=!1);var L={play:null,playlist:E,clip:{scaling:"fit",fadeInSpeed:0,fadeOutSpeed:0},canvas:{backgroundGradient:"none",backgroundColor:"#000000"},plugins:S};L=i.configureFlowplayer(n,L),flowplayer(b,{src:l(i.flowplayerSwf),expressInstall:l(i.expressInstallSwf),wmode:"opaque"},L)}},DomReady.ready(i),e.html5media=i}(this,document); 8801 8802 8803/* plugins-dist/mediabox/lib/lity/lity.js?1788350574 */ 8804 8805(function(window,factory){ 8806if(typeof define==='function'&&define.amd){ 8807define(['jquery'],function($){ 8808return factory(window,$); 8809}); 8810}else if(typeof module==='object'&&typeof module.exports==='object'){ 8811module.exports=factory(window,require('jquery')); 8812}else{ 8813window.lity=factory(window,window.jQuery||window.Zepto); 8814} 8815}(typeof window!=="undefined"?window:this,function(window,$){ 8816'use strict'; 8817var document=window.document; 8818var _win=$(window); 8819var _deferred=$.Deferred; 8820var _html=$('html'); 8821var _instances=[]; 8822var _attrAriaHidden='aria-hidden'; 8823var _dataAriaHidden='lity-'+_attrAriaHidden; 8824var _focusableElementsSelector='a[href],area[href],input:not([disabled]),select:not([disabled]),textarea:not([disabled]),button:not([disabled]),iframe,object,embed,[contenteditable],[tabindex]:not([tabindex^="-"])'; 8825var _defaultOptions={ 8826esc:true, 8827handler:null, 8828handlers:{ 8829image:imageHandler, 8830inline:inlineHandler, 8831iframe:iframeHandler 8832}, 8833forceFocusInside:false, 8834template:'<div class="lity" role="dialog" aria-label="Dialog Window (Press escape to close)" tabindex="-1"><div class="lity-wrap" data-lity-close role="document"><div class="lity-loader" aria-hidden="true">Loading...</div><div class="lity-container"><div class="lity-content"></div><button class="lity-close" type="button" aria-label="Close (Press escape to close)" data-lity-close>×</button></div></div></div>' 8835}; 8836var _imageRegexp=/(^data:image\/)|(\.(png|jpe?g|gif|svg|webp|bmp|
8836ico|tiff?)(\?\S*)?$)/i; 8837var _transitionEndEvent=(function(){ 8838var el=document.createElement('div'); 8839var transEndEventNames={ 8840WebkitTransition:'webkitTransitionEnd', 8841MozTransition:'transitionend', 8842OTransition:'oTransitionEnd otransitionend', 8843transition:'transitionend' 8844}; 8845for(var name in transEndEventNames){ 8846if(el.style[name]!==undefined){ 8847return transEndEventNames[name]; 8848} 8849} 8850return false; 8851})(); 8852function transitionEnd(element){ 8853var deferred=_deferred(); 8854if(!_transitionEndEvent||!element.length){ 8855deferred.resolve(); 8856}else{ 8857element.one(_transitionEndEvent,deferred.resolve); 8858setTimeout(deferred.resolve,500); 8859} 8860return deferred.promise(); 8861} 8862function settings(currSettings,key,value){ 8863if(arguments.length===1){ 8864return $.extend({},currSettings); 8865} 8866if(typeof key==='string'){ 8867if(typeof value==='undefined'){ 8868return typeof currSettings[key]==='undefined' 8869?null 8870:currSettings[key]; 8871} 8872currSettings[key]=value; 8873}else{ 8874$.extend(currSettings,key); 8875} 8876return this; 8877} 8878function parseQueryParams(params){ 8879var pos=params.indexOf('?'); 8880if(pos>-1){ 8881params=params.substr(pos+1); 8882} 8883var pairs=decodeURI(params.split('#')[0]).split('&'); 8884var obj={},p; 8885for(var i=0,n=pairs.length;i<n;i++){ 8886if(!pairs[i]){ 8887continue; 8888} 8889p=pairs[i].split('='); 8890obj[p[0]]=p[1]; 8891} 8892return obj; 8893} 8894function appendQueryParams(url,params){ 8895if(!params){ 8896return url; 8897} 8898if('string'===$.type(params)){ 8899params=parseQueryParams(params); 8900} 8901if(url.indexOf('?')>-1){ 8902var split=url.split('?'); 8903url=split.shift(); 8904params=$.extend( 8905{}, 8906parseQueryParams(split[0]), 8907params 8908) 8909} 8910return url+'?'+$.param(params); 8911} 8912function transferHash(originalUrl,newUrl){ 8913var pos=originalUrl.indexOf('#'); 8914if(-1===pos){ 8915return newUrl; 8916} 8917if(pos>0){ 8918originalUrl=originalUrl.substr(pos); 8919} 8920return newUrl+originalUrl; 8921} 8922function iframe(iframeUrl,instance,queryParams,hashUrl){ 8923instance&&instance.element().addClass('lity-iframe'); 8924if(queryParams){ 8925iframeUrl=appendQueryParams(iframeUrl,queryParams); 8926} 8927if(hashUrl){ 8928iframeUrl=transferHash(hashUrl,iframeUrl); 8929} 8930return'<div class="lity-iframe-container"><iframe frameborder="0" allowfullscreen allow="autoplay; fullscreen" src="'+iframeUrl+'"/></div>'; 8931} 8932function error(msg){ 8933return $('<span class="lity-error"></span>').append(msg); 8934} 8935function imageHandler(target,instance){ 8936var desc=(instance.opener()&&instance.opener().data('lity-desc'))||'Image with no description'; 8937var img=$('<img src="'+target+'" alt="'+desc+'"/>'); 8938var deferred=_deferred(); 8939var failed=function(){ 8940deferred.reject(error('Failed loading image')); 8941}; 8942img 8943.on('load',function(){ 8944if(this.naturalWidth===0){ 8945return failed(); 8946} 8947deferred.resolve(img); 8948}) 8949.on('error',failed) 8950; 8951return deferred.promise(); 8952} 8953imageHandler.test=function(target){ 8954return _imageRegexp.test(target); 8955}; 8956function inlineHandler(target,instance){ 8957var el,placeholder,hasHideClass; 8958try{ 8959el=$(target); 8960}catch(e){ 8961return false; 8962} 8963if(!el.length){ 8964return false; 8965} 8966placeholder=$('<i style="display:none !important"></i>'); 8967hasHideClass=el.hasClass('lity-hide'); 8968instance 8969.element() 8970.one('lity:remove',function(){ 8971placeholder 8972.before(el) 8973.remove() 8974; 8975if(hasHideClass&&!el.closest('.lity-content').length){ 8976el.addClass('lity-hide'); 8977} 8978}) 8979; 8980return el 8981.removeClass('lity-hide') 8982.after(placeholder) 8983; 8984} 8985function iframeHandler(target,instance){ 8986return iframe(target,instance); 8987} 8988function winHeight(){ 8989return document.documentElement.clientHeight 8990?document.documentElement.clientHeight 8991:Math.round(_win.height()); 8992} 8993function keydown(e){ 8994var current=currentInstance(); 8995if(!current){ 8996return; 8997} 8998if(e.keyCode===27&&!!current.options('esc')){ 8999current.close(); 9000} 9001if(e.keyCode===9){ 9002handleTabKey(e,current); 9003} 9004} 9005function handleTabKey(e,instance){ 9006var focusableElements=instance.element().find(_focusableElementsSelector); 9007var focusedIndex=focusableElements.index(document.activeElement); 9008if(e.shiftKey&&focusedIndex<=0){ 9009focusableElements.get(focusableElements.length-1).focus(); 9010e.preventDefault(); 9011}else if(!e.shiftKey&&focusedIndex===focusableElements.length-1){ 9012focusableElements.get(0).focus(); 9013e.preventDefault(); 9014} 9015if(focusedIndex===-1&&instance.options().forceFocusInside){ 9016focusableElements.get(0).focus(); 9017e.preventDefault(); 9018} 9019} 9020function resize(){ 9021$.each(_instances,function(i,instance){ 9022instance.resize(); 9023}); 9024} 9025function registerInstance(instanceToRegister){ 9026if(1===_instances.unshift(instanceToRegister)){ 9027_html.addClass('lity-active'); 9028_win 9029.on({ 9030resize:resize, 9031keydown:keydown 9032}) 9033; 9034} 9035$('body > *').not(instanceToRegister.element()) 9036.addClass('lity-hidden') 9037.each(function(){ 9038var el=$(this); 9039if(undefined!==el.data(_dataAriaHidden)){ 9040return; 9041} 9042el.data(_dataAriaHidden,el.attr(_attrAriaHidden)||null); 9043}) 9044.attr(_attrAriaHidden,'true') 9045; 9046} 9047function removeInstance(instanceToRemove){ 9048var show; 9049instanceToRemove
9050.element() 9051.attr(_attrAriaHidden,'true') 9052; 9053if(1===_instances.length){ 9054_html.removeClass('lity-active'); 9055_win 9056.off({ 9057resize:resize, 9058keydown:keydown 9059}) 9060; 9061} 9062_instances=$.grep(_instances,function(instance){ 9063return instanceToRemove!==instance; 9064}); 9065if(!!_instances.length){ 9066show=_instances[0].element(); 9067}else{ 9068show=$('.lity-hidden'); 9069} 9070show 9071.removeClass('lity-hidden') 9072.each(function(){ 9073var el=$(this),oldAttr=el.data(_dataAriaHidden); 9074if(!oldAttr){ 9075el.removeAttr(_attrAriaHidden); 9076}else{ 9077el.attr(_attrAriaHidden,oldAttr); 9078} 9079el.removeData(_dataAriaHidden); 9080}) 9081; 9082} 9083function currentInstance(){ 9084if(0===_instances.length){ 9085return null; 9086} 9087return _instances[0]; 9088} 9089function factory(target,instance,handlers,preferredHandler){ 9090var handler='inline',content; 9091var currentHandlers=$.extend({},handlers); 9092if(preferredHandler&¤tHandlers[preferredHandler]){ 9093content=currentHandlers[preferredHandler](target,instance); 9094handler=preferredHandler; 9095}else{ 9096$.each(['inline','iframe'],function(i,name){ 9097delete currentHandlers[name]; 9098currentHandlers[name]=handlers[name]; 9099}); 9100$.each(currentHandlers,function(name,currentHandler){ 9101if(!currentHandler){ 9102return true; 9103} 9104if( 9105currentHandler.test&& 9106!currentHandler.test(target,instance) 9107){ 9108return true; 9109} 9110content=currentHandler(target,instance); 9111if(false!==content){ 9112handler=name; 9113return false; 9114} 9115}); 9116} 9117return{handler:handler,content:content||''}; 9118} 9119function Lity(target,options,opener,activeElement){ 9120var self=this; 9121var result; 9122var isReady=false; 9123var isClosed=false; 9124var element; 9125var content; 9126options=$.extend( 9127{}, 9128_defaultOptions, 9129options 9130); 9131element=$(options.template); 9132self.element=function(){ 9133return element; 9134}; 9135self.opener=function(){ 9136return opener; 9137}; 9138self.content=function(){ 9139return content; 9140}; 9141self.options=$.proxy(settings,self,options); 9142self.handlers=$.proxy(settings,self,options.handlers); 9143self.resize=function(){ 9144if(!isReady||isClosed){ 9145return; 9146} 9147content 9148.css('max-height',winHeight()+'px') 9149.trigger('lity:resize',[self]) 9150; 9151}; 9152self.close=function(){ 9153if(isClosed){ 9154return; 9155} 9156isClosed=true; 9157removeInstance(self); 9158var deferred=_deferred(); 9159if( 9160activeElement&& 9161( 9162document.activeElement===element[0]|| 9163$.contains(element[0],document.activeElement) 9164) 9165){ 9166try{ 9167activeElement.focus(); 9168}catch(e){ 9169} 9170} 9171var trigerable=(content?content:element); 9172trigerable.trigger('lity:close',[self]); 9173element 9174.removeClass('lity-opened') 9175.addClass('lity-closed') 9176; 9177transitionEnd(trigerable.add(element)) 9178.always(function(){ 9179trigerable.trigger('lity:remove',[self]); 9180element.remove(); 9181element=undefined; 9182deferred.resolve(); 9183}) 9184; 9185return deferred.promise(); 9186}; 9187result=factory(target,self,options.handlers,options.handler); 9188element 9189.attr(_attrAriaHidden,'false') 9190.addClass('lity-loading lity-opened lity-'+result.handler) 9191.appendTo('body') 9192.focus() 9193.on('click','[data-lity-close]',function(e){ 9194if($(e.target).is('[data-lity-close]')){ 9195self.close(); 9196} 9197}) 9198.trigger('lity:open',[self]) 9199; 9200registerInstance(self); 9201$.when(result.content) 9202.always(ready) 9203; 9204function ready(result){ 9205if(isClosed){ 9206return; 9207} 9208content=$(result) 9209.css('max-height',winHeight()+'px') 9210; 9211element 9212.find('.lity-loader') 9213.each(function(){ 9214var loader=$(this); 9215transitionEnd(loader) 9216.always(function(){ 9217loader.remove(); 9218}) 9219; 9220}) 9221; 9222element 9223.removeClass('lity-loading') 9224.find('.lity-content') 9225.empty() 9226.append(content) 9227; 9228isReady=true; 9229content 9230.trigger('lity:ready',[self]) 9231; 9232} 9233} 9234function lity(target,options,opener){ 9235if(!target.preventDefault){ 9236opener=$(opener); 9237}else{ 9238target.preventDefault(); 9239opener=$(this); 9240target=opener.data('lity-target')||opener.attr('href')||opener.attr('src'); 9241} 9242var instance=new Lity( 9243target, 9244$.extend( 9245{}, 9246opener.data('lity-options')||opener.data('lity'), 9247options 9248), 9249opener, 9250document.activeElement 9251); 9252if(!target.preventDefault){ 9253return instance; 9254} 9255} 9256lity.version='3.0.0-dev'; 9257lity.options=$.proxy(settings,lity,_defaultOptions); 9258lity.handlers=$.proxy(settings,lity,_defaultOptions.handlers); 9259lity.current=currentInstance; 9260lity.iframe=iframe; 9261$(document).on('click.lity','[data-lity]',lity); 9262return lity; 9263})); 9264 9265 9266/* plugins-dist/mediabox/lity/js/lity.mediabox.js?1788350574 */ 9267; 9268(function($){ 9269var litySpip={ 9270nameSpace:'mediabox', 9271config:{ 9272forceFocusInside:true, 9273}, 9274strings:{ 9275}, 9276callbacks:{ 9277onOpen:[], 9278onShow:[], 9279onClose:[] 9280}, 9281focusedItem:[], 9282isTransition:false, 9283adjustHeight:function(instance){ 9284var $content=instance.content(); 9285var $containerHeight=instance.element().find('.lity-container').height(); 9286if($containerHeight){ 9287var h=Math.round($containerHeight)+'px'; 9288$content 9289.css('max-height',h) 9290.find('[data-'+litySpip.nameSpace+'-force-max-height]') 9291.css('max-height',h); 9292} 9293}, 9294template:function(cfg,type,groupName,groupPosition,groupLength){ 9295var className=''; 9296if(!!cfg.className){ 9297className=' '+cfg.className; 9298} 9299if(cfg.transitionOnOpen){ 9300className+=' lity-transition-on-open-'+cfg.transitionOnOpen; 9301} 9302if(!!cfg.noTransition){ 9303className+=' lity-no-transition'; 9304} 9305if(!!cfg.slideShow){ 9306className+=' lity-slideshow'; 9307} 9308var styles=[]; 9309var styles_container=''; 9310var styles_content=''; 9311if(cfg.sideBar){ 9312className+=' lity-sidebar lity-sidebar-'+cfg.sideBar; 9313if(cfg.sideBar==='start'||cfg.sideBar==='end'){ 9314className+=' lity-sidebar-inline'; 9315cfg.height='100vh'; 9316cfg.maxHeight='100vh'; 9317} 9318if(cfg.sideBar==='top'||cfg.sideBar==='bottom'){ 9319className+=' lity-sidebar-block'; 9320cfg.width='100vw'; 9321cfg.maxWidth='100vw'; 9322} 9323} 9324if(cfg.maxWidth){ 9325styles.push("max-width:"+cfg.maxWidth.replace("%","vw")); 9326} 9327if(cfg.maxHeight){ 9328styles.push("max-height:"+cfg.maxHeight.replace("%","vh")); 9329} 9330if(cfg.width){ 9331styles.push("width:"+cfg.width.replace("%","vw")); 9332className+=' lity-width-set'; 9333} 9334if(cfg.height){ 9335styles.push("height:"+cfg.height.replace("%","vh")); 9336className+=' lity-height-set'; 9337if(cfg.minHeight){ 9338styles.push("min-height:"+cfg.minHeight.replace("%","vh")); 9339} 9340} 9341if(styles.length){ 9342styles_container=' style="'+styles.join(';')+'"'; 9343} 9344styles=[]; 9345var max; 9346if(cfg.minWidth){ 9347max=(cfg.maxWidth?cfg.maxWidth.replace("%","vw"):'95vw'); 9348styles.push("min-width:min("+max+","+cfg.minWidth.replace("%","vw")+')'); 9349} 9350if(cfg.minHeight&&!cfg.height){ 9351max=(cfg.maxHeight?cfg.maxHeight.replace("%","vw"):'95vh'); 9352styles.push("min-height:min("+max+","+cfg.minHeight.replace("%","vh")+')'); 9353} 9354if(styles.length){ 9355styles_content=' style="'+styles.join(';')+'"'; 9356} 9357var button_next_prev='',
9358button_start_stop='', 9359group_info_text='', 9360group_info=''; 9361if(groupName&&groupLength){ 9362if(groupLength>1){ 9363var newPosition=(groupPosition<=0?groupLength-1:groupPosition-1); 9364button_next_prev+='<button class="lity-previous" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'" aria-label="'+litySpip.strings.previous+'" data-lity-previous' 9365+'><b title="'+litySpip.strings.previous+'">â®</b></button>'; 9366newPosition=(groupPosition>=groupLength-1?0:groupPosition+1); 9367button_next_prev+='<button class="lity-next" type="button" data-group-name="'+groupName+'" data-group-position="'+newPosition+'" aria-label="'+litySpip.strings.next+'" data-lity-next' 9368+'><b title="'+litySpip.strings.next+'">â¯</b></button>'; 9369} 9370group_info_text=" "+litySpip.strings.current; 9371group_info_text=group_info_text.replace('{current}',(groupPosition+1)+''); 9372group_info_text=group_info_text.replace('{total}',groupLength+''); 9373button_start_stop+='<button class="lity-start-stop" type="button" data-lity-stop-start>' 9374+'<b class="lity-start" aria-label="'+litySpip.strings.slideshowStart+'" title="'+litySpip.strings.slideshowStart+'">â¶</b>' 9375+'<b class="lity-stop" aria-label="'+litySpip.strings.slideshowStop+'" title="'+litySpip.strings.slideshowStop+'">â¡</b>' 9376+'</button>'; 9377group_info='<div class="lity-group-caption">' 9378+'<span class="lity-group-start-stop">'+button_start_stop+'</span>' 9379+'<span class="lity-group-current">'+group_info_text+'</span>' 9380+'<span class="lity-group-next-prev">'+button_next_prev+'</span>' 9381+'<span class="lity-group-progress-bar"><span class="lity-group-progress-bar-status" style="width:0"></span></span>' 9382+'</div>'; 9383} 9384var close_button_aria_label=litySpip.strings.close+' ('+litySpip.strings.press_escape+')'; 9385var dialog_title=(type==='image'?litySpip.strings.dialog_title_med:litySpip.strings.dialog_title_def); 9386dialog_title+=group_info_text+' ('+litySpip.strings.press_escape+')'; 9387var t= 9388'<dialog class="box_mediabox box_modalbox lity'+className+'" role="dialog" aria-label="'+dialog_title+'" tabindex="-1">' 9389+'<div class="lity-wrap"'+(cfg.overlayClose===false?'':' data-lity-close')+' role="document">' 9390+'<div class="lity-loader" aria-hidden="true" aria-label="'+litySpip.strings.loading+'"><span class="box-loading"></span></div>' 9391+'<div class="lity-container"'+styles_container+'>' 9392+'<button class="lity-close" type="button" aria-label="'+close_button_aria_label+'" data-lity-close><b data-lity-close title="'+litySpip.strings.close+'">×</b></button>' 9393+'<div class="lity-content"'+styles_content+'></div>' 9394+group_info 9395+'</div>' 9396+'</div>' 9397+'</dialog>'; 9398return t; 9399}, 9400failHandler:function(target,instance){ 9401return'<div class="error lity-error">Failed loading content</div>'; 9402}, 9403ajaxHandler:function(target,instance){ 9404var selector, 9405off=target.indexOf(" "); 9406if(off>-1){ 9407selector=target.slice(off); 9408selector=selector.match(/[^\x20\t\r\n\f]+/g)||[]; 9409selector=selector.join(" "); 9410target=target.slice(0,off); 9411} 9412if(jQuery.spip.preloaded_urls[target]){ 9413var content=jQuery.spip.preloaded_urls[target]; 9414if(selector){ 9415content=$("<div>").append($.parseHTML(content)).find(selector); 9416} 9417return $('<div class="lity-content-inner"></div>').append(content); 9418} 9419var _deferred=$.Deferred; 9420var deferred=_deferred(); 9421var failed=function(){ 9422deferred.reject($('<span class="error lity-error"></span>').append('Failed loading ajax')); 9423}; 9424$.get(target) 9425.done(function(content){ 9426jQuery.spip.preloaded_urls[target]=content; 9427if(selector){ 9428content=$("<div>").append($.parseHTML(content)).find(selector); 9429} 9430deferred.resolve($('<div class="lity-content-inner"></div>').append(content)); 9431}) 9432.fail(failed); 9433return deferred.promise(); 9434}, 9435imageBuildContent:function(img,desc,longdesc,defaultCaptionClass){ 9436img.attr('alt',desc?desc:''); 9437desc=(longdesc?longdesc:desc); 9438if(desc){ 9439defaultCaptionClass=(defaultCaptionClass?defaultCaptionClass:'expanded'); 9440var id='lity-image-caption-'+Date.now().toString(36)+Math.random().toString(36).substr(2); 9441img.attr('aria-describedby',id); 9442img=$('<figure class="lity-image-figure"></figure>').append(img).append('<figcaption id="'+id+'" class="lity-image-caption '+defaultCaptionClass+'"><div class="lity-image-caption-text">'+desc+'</div></figcaption>'); 9443} 9444else{
9445img=$('<figure class="lity-image-figure"></figure>').append(img); 9446} 9447return img; 9448}, 9449imageHandler:function(target,instance){ 9450var _deferred=$.Deferred; 9451var desc=''; 9452var longdesc=''; 9453var defaultCaptionClass=(instance.options().defaultCaptionState==='min'?'min':'expanded'); 9454var opener=instance.opener(); 9455if(opener){ 9456desc=opener.attr('title')||$('img[alt]',opener).eq(0).attr('alt')||''; 9457var by=opener.attr('aria-describedby')||$('img[aria-describedby]',opener).eq(0).attr('aria-describedby')||''; 9458if(by){ 9459longdesc=$('#'+by).html(); 9460longdesc=longdesc.trim(); 9461} 9462if(!desc){ 9463desc=desc||instance.opener().attr('aria-label')||''; 9464} 9465desc=desc.trim(); 9466} 9467var img; 9468var cache=opener.data('lity-image-cache')||{}; 9469if(cache[target]){ 9470img=cache[target]; 9471img=litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass); 9472return img; 9473} 9474img=$('<img src="'+target+'" class="lity-image-img" data-'+litySpip.nameSpace+'-force-max-height />'); 9475var deferred=_deferred(); 9476var failed=function(){ 9477deferred.reject($('<span class="error lity-error"></span>').append('Failed loading image')); 9478}; 9479img 9480.on('load',function(){ 9481if(this.naturalWidth===0){ 9482img.attr("style","width:25vw;"); 9483} 9484cache[target]=img; 9485opener.data('lity-image-cache',cache); 9486deferred.resolve(litySpip.imageBuildContent(img,desc,longdesc,defaultCaptionClass)); 9487}) 9488.on('error',failed) 9489; 9490return deferred.promise(); 9491}, 9492groupElements:function(groupName){ 9493return $('.lity-enabled[data-'+litySpip.nameSpace+'-group'+'='+groupName+']'); 9494}, 9495eventSet:{}, 9496setEvents:function(what){ 9497if(!litySpip.eventSet[what]){ 9498switch(what){ 9499case'opener': 9500$(document).on('click','.lity-enabled',litySpip.onClickOpener); 9501break; 9502case'listener': 9503$(document).on('click','.lity-previous,.lity-next',litySpip.onPrevNext); 9504$(document).on('click','.lity-start-stop',litySpip.onSlideShowToggle); 9505$(window).on('keyup',litySpip.onKeyUp); 9506$(document).on('click','.lity-image-caption',litySpip.onCaptionToggle); 9507break; 9508} 9509litySpip.eventSet[what]=true; 9510} 9511}, 9512onKeyUp:function(event){ 9513var c={37:"previous",39:"next"}[event.keyCode]; 9514if(c){ 9515var current=lity.current(); 9516if(current){ 9517jQuery('.lity-'+c,current.element()).trigger('click'); 9518} 9519} 9520}, 9521onCaptionToggle:function(event){ 9522var $caption=$(this); 9523$caption.toggleClass('min expanded'); 9524}, 9525openerFromPrevNext($button){ 9526var groupName=$button.data('group-name'); 9527var groupPosition=$button.data('group-position'); 9528return litySpip.groupElements(groupName).eq(groupPosition); 9529}, 9530onPrevNext:function(event){ 9531var $button=$(this); 9532var newEl=litySpip.openerFromPrevNext($button); 9533if(newEl){ 9534var element=lity.current().element(); 9535litySpip.isTransition={oldClosed:false,newOpened:true}; 9536element.addClass('lity-no-transition').css('visibility','hidden'); 9537litySpip.slideshowStop(element); 9538var options={transitionOnOpen:$button.is('.lity-next')?'slide-from-right':'slide-from-left'}; 9539if(element.is('.lity-slideshow')){ 9540options.slideShow=true; 9541} 9542lity.current().close(); 9543litySpip.elementOpener(newEl,options); 9544} 9545}, 9546slideshowStart:function(element){ 9547var $progress=element.find('.lity-group-progress-bar-status'); 9548$progress.attr('style',''); 9549$progress.css('width','100%'); 9550var delay=litySpip.config.slideshowSpeed; 9551setTimeout(function(){ 9552$progress.css('transition','width '+((delay-200)/1000)+'s linear'); 9553$progress.css('width','0'); 9554},200); 9555timer=setTimeout(function(){element.find('.lity-next').trigger('click')},delay); 9556element.data('lity-timer',timer); 9557$('.lity-start',element).attr('aria-hidden','true'); 9558$('.lity-stop',element).attr('aria-hidden','false'); 9559jQuery('.lity-start-stop',element).focus(); 9560}, 9561slideshowStop:function(element){ 9562timer=element.data('lity-timer'); 9563if(timer){ 9564clearTimeout(timer); 9565} 9566}, 9567onSlideShowToggle:function(event){ 9568var $button=$(this); 9569var element=$button.closest('.lity'); 9570var slideShowState=(element.is('.lity-slideshow')?true:false); 9571var timer; 9572if(!slideShowState){ 9573litySpip.slideshowStart(element); 9574} 9575else{ 9576litySpip.slideshowStop(element); 9577$('.lity-start',element).attr('aria-hidden','false'); 9578$('.lity-stop',element).attr('aria-hidden','true'); 9579} 9580element.toggleClass('lity-slideshow'); 9581}, 9582onClickOpener:function(event){ 9583event.preventDefault(); 9584var opener=$(this); 9585litySpip.elementOpener(opener); 9586}, 9587elementOpener:function(opener,options){ 9588var cfg=opener.data('mediabox-options'); 9589if(options){ 9590cfg=$.extend({},cfg,options); 9591} 9592var target=opener.data('href-popin')||opener.data('href')||opener.attr('href')||opener.attr('src'); 9593litySpip.lityOpener(target,cfg,opener.get(0)); 9594}, 9595lityOpener:function(target,cfg,opener){ 9596litySpip.setEvents('listener'); 9597if(!litySpip.isTransition){ 9598litySpip.callbacks.onOpen.push(cfg.onOpen||false); 9599litySpip.callbacks.onShow.push(cfg.onShow||false); 9600litySpip.callbacks.onClose.push(cfg.onClose||false); 9601litySpip.focusedItem.push($(document.activeElement)); 9602} 9603var type=cfg.type||''; 9604if(!type&&opener){ 9605type=$(opener).data(litySpip.nameSpace+'-type')||''; 9606} 9607var handlers=lity.handlers(); 9608if(type==='ajax'){ 9609handlers.ajax=litySpip.ajaxHandler; 9610} 9611handlers.image=litySpip.imageHandler; 9612if(type==='inline'){ 9613var el=[]; 9614try{ 9615el=$(target); 9616}catch(e){ 9617el=[]; 9618} 9619if(!el.length){ 9620handlers.inline=litySpip.failHandler; 9621} 9622} 9623cfg=$.extend({handlers:handlers},cfg); 9624if(type&&['image','inline','ajax','iframe'].indexOf(type)!==-1){ 9625cfg.handler=type; 9626} 9627if(opener&&typeof($.parseMediaboxOptions)!=="undefined"){
9628cfg=$.extend(cfg,$.parseMediaboxOptions(litySpip.nameSpace,opener)); 9629} 9630if(!!cfg.preloadOnly){ 9631litySpip.lityPreLoader(target,cfg,opener); 9632} 9633else{ 9634var groupPosition=0; 9635var groupLength=0; 9636if(opener){ 9637var groupName=cfg.rel||(opener?$(opener).data(litySpip.nameSpace+'-group'):''); 9638if(groupName){ 9639var elements=litySpip.groupElements(groupName); 9640groupPosition=elements.index($(opener)); 9641groupLength=elements.length; 9642} 9643} 9644cfg=$.extend({template:litySpip.template(cfg,type,groupName,groupPosition,groupLength)},cfg); 9645if(cfg.samePopin){ 9646var l=lity.current(); 9647if(l){ 9648l.close(); 9649} 9650} 9651lity(target,cfg,opener); 9652} 9653}, 9654lityPreLoader:function(target,cfg,opener){ 9655if(cfg.handler&&cfg.handlers[cfg.handler]){ 9656if(cfg.handler==='image'||cfg.handler==='ajax'){ 9657var instance={ 9658opener:function(){return $(opener);}, 9659options:function(){return cfg} 9660}; 9661var content=cfg.handlers[cfg.handler](target,instance); 9662} 9663} 9664}, 9665ajaxReloadElements:function(elements){ 9666const targets=elements 9667.split(',') 9668.map(s=>s.trim()) 9669.filter(Boolean); 9670targets.forEach(function(target){ 9671try{ 9672if(/^[.#[]/.test(target)){ 9673const $element=$(target); 9674if($element.length){ 9675$element.ajaxReload(); 9676} 9677}else{ 9678ajaxReload(target); 9679} 9680}catch(e){ 9681console.warn("Mediabox ajaxReloadElements : erreur lors du traitement de '"+target+"'.",e); 9682} 9683}); 9684} 9685} 9686jQuery.fn.extend({ 9687mediabox:function(options){ 9688var cfg=$.extend({},litySpip.config,options); 9689if(this===jQuery.fn){ 9690var href=cfg.href||""; 9691litySpip.lityOpener(href,cfg,null); 9692return this; 9693}else{ 9694if(cfg.rel){ 9695this.attr('data-'+litySpip.nameSpace+'-group',cfg.rel); 9696} 9697else{ 9698this.each(function(){ 9699var rel=$(this).attr('rel'); 9700if(rel){ 9701$(this).attr('data-'+litySpip.nameSpace+'-group',rel); 9702} 9703}); 9704} 9705litySpip.setEvents('opener'); 9706this 9707.data('mediabox-options',cfg) 9708.addClass('lity-enabled'); 9709(cfg.preload?this:this.filter('[data-'+litySpip.nameSpace+'-preload]')).each(function(){ 9710litySpip.elementOpener($(this),{preloadOnly:true}); 9711}); 9712return this; 9713} 9714}, 9715mediaboxClose:function(){ 9716var $current=lity.current(); 9717if($current){ 9718$current.close(); 9719return true; 9720} 9721return false; 9722} 9723}); 9724var initConfig=function(){ 9725var b=typeof(mediabox_settings)=='object'?mediabox_settings:{}; 9726litySpip.nameSpace=b.ns?b.ns:'mediabox'; 9727litySpip.strings.slideshowStart=b.str_ssStart; 9728litySpip.strings.slideshowStop=b.str_ssStop; 9729litySpip.strings.current=b.str_cur; 9730litySpip.strings.previous=b.str_prev; 9731litySpip.strings.next=b.str_next; 9732litySpip.strings.close=b.str_close; 9733litySpip.strings.loading=b.str_loading; 9734litySpip.strings.press_escape=b.str_petc; 9735litySpip.strings.dialog_title_def=b.str_dialTitDef; 9736litySpip.strings.dialog_title_med=b.str_dialTitMed; 9737litySpip.config.slideshowSpeed=(b.lity.slideshow_speed?b.lity.slideshow_speed:5000); 9738litySpip.config.defaultCaptionState=(b.lity.defaultCaptionState?b.lity.defaultCaptionState:'expanded'); 9739var styles={ 9740'container':'', 9741'content':'', 9742}; 9743var max; 9744if(b.lity.minWidth){ 9745max=(b.lity.maxWidth?b.lity.maxWidth.replace('%','vw'):'95vw'); 9746styles.content+="min-width:min("+max+","+b.lity.minWidth.replace('%','vw')+');'; 9747} 9748if(b.lity.maxWidth){ 9749styles.container+="max-width:"+b.lity.maxWidth.replace('%','vw')+';'; 9750} 9751if(b.lity.minHeight){ 9752max=(b.lity.maxHeight?b.lity.maxHeight.replace('%','vw'):'95vh'); 9753styles.content+="min-height:min("+max+","+b.lity.minHeight.replace('%','vh')+');'; 9754} 9755if(b.lity.maxHeight){ 9756styles.container+="max-height:"+b.lity.maxHeight.replace('%','vh')+';'; 9757} 9758var insert=''; 9759for(let key in styles){ 9760if(styles[key]){ 9761insert+='.box_mediabox .lity-'+key+'{'+styles[key]+'}'; 9762} 9763} 9764if(b.lity.opacite){ 9765insert+='.box_mediabox:before{opacity:'+b.lity.opacite+'}'; 9766} 9767if(insert){ 9768$('head').append($('<style type="text/css">'+insert+'</style>')); 9769} 9770$(document).on('lity:open',function(event,instance){ 9771if(document.fullscreenElement){ 9772document.fullscreenElement.appendChild(instance.element().get(0)); 9773} 9774if(!instance.element().is('.lity-slideshow')){ 9775jQuery('.lity-close',instance.element()).focus(); 9776} 9777if(!litySpip.isTransition){ 9778var callback=litySpip.callbacks.onOpen.pop(); 9779if(callback){ 9780callback(event,instance); 9781} 9782} 9783}); 9784$(document).on('lity:ready',function(event,instance){ 9785litySpip.adjustHeight(instance); 9786if(jQuery.spip){ 9787jQuery.spip.triggerAjaxLoad(instance.element().get(0)) 9788} 9789if(instance.element().addClass('lity-ready').is('.lity-slideshow')){ 9790litySpip.slideshowStart(instance.element()); 9791} 9792if(!litySpip.isTransition){ 9793var callback=litySpip.callbacks.onShow.pop(); 9794if(callback){
9795callback(event,instance); 9796} 9797} 9798else{ 9799litySpip.isTransition.newOpened=true; 9800if(litySpip.isTransition.oldClosed){ 9801litySpip.isTransition=false; 9802} 9803instance.content().trigger('lity:resize',[instance]); 9804} 9805var $next=instance.element().find('.lity-next'); 9806if($next.length){ 9807$next=litySpip.openerFromPrevNext($next); 9808if($next){ 9809litySpip.elementOpener($next,{preloadOnly:true}); 9810} 9811} 9812}); 9813$(document).on('lity:close',function(event,instance){ 9814if(!litySpip.isTransition){ 9815if(litySpip.callbacks.onShow.length>litySpip.callbacks.onOpen.length){ 9816litySpip.callbacks.onShow.pop(); 9817} 9818var callback=litySpip.callbacks.onClose.pop(); 9819if(callback){ 9820callback(event,instance); 9821} 9822let options=instance.options(); 9823let ajaxReloadArgs=options.ajaxReloadOnClose; 9824if(ajaxReloadArgs&&typeof(ajaxReloadArgs)==='string'){ 9825litySpip.ajaxReloadElements(ajaxReloadArgs); 9826} 9827} 9828}); 9829$(document).on('lity:remove',function(event,instance){ 9830if(!litySpip.isTransition){ 9831var focused=litySpip.focusedItem.pop(); 9832if(focused){ 9833try{ 9834focused.focus(); 9835}catch(e){ 9836} 9837} 9838} 9839else{ 9840litySpip.isTransition.oldClosed=true; 9841if(litySpip.isTransition.newOpened){ 9842litySpip.isTransition=false; 9843} 9844} 9845}); 9846$(document).on('lity:resize',function(event,instance){ 9847litySpip.adjustHeight(instance); 9848}); 9849} 9850initConfig(); 9851})(jQuery); 9852 9853 9854/* plugins-dist/mediabox/javascript/spip.mediabox.js?1788350574 */ 9855(function($){ 9856$.mediabox 9857=function(options){ 9858if(typeof(mediabox_autodetect_href)=='function' 9859&&options.href 9860&&!options.type){ 9861options.type=mediabox_autodetect_href(options.href); 9862} 9863$.fn.mediabox(options); 9864}; 9865$.modalboxload=$.modalbox=function(href,options){$.mediabox($.extend({href:href,overlayClose:true},options));}; 9866$.modalboxclose=$.mediaboxClose=$.fn.mediaboxClose; 9867$.parseMediaboxOptions=function(nameSpace,opener){ 9868var options={}; 9869var data2options={ 9870"width":"width", 9871"height":"height", 9872"min-width":"minWidth", 9873"min-height":"minHeight", 9874"max-width":"maxWidth", 9875"max-height":"maxHeight", 9876"caption-state":"defaultCaptionState", 9877"sidebar":"sideBar", 9878"class":"className", 9879"ajaxreload-on-close":"ajaxReloadOnClose", 9880}; 9881var v; 9882for(var o in data2options){ 9883v=($(opener).data(nameSpace+'-'+o)||''); 9884if(v){ 9885options[data2options[o]]=v; 9886} 9887} 9888if(!options.length){ 9889var eltclass=$(opener).prop('class'); 9890if(eltclass){ 9891if(eltclass.indexOf("boxWidth-")!==-1){ 9892var w=eltclass.match(/boxWidth-([^\s'">]*)/); 9893w=w[1].replace(/pc/,'%'); 9894options["width"]=w; 9895} 9896if(eltclass.indexOf("boxHeight-")!==-1){ 9897var h=eltclass.match(/boxHeight-([^\s'">]*)/); 9898h=h[1].replace(/pc/,'%'); 9899options["height"]=h; 9900} 9901if(eltclass.indexOf("boxIframe")!==-1){ 9902options["type"]='iframe'; 9903} 9904if(eltclass.indexOf("boxInline")!==-1){ 9905options["type"]='inline'; 9906} 9907} 9908} 9909data2options={"same-popin":"samePopin","type":"type"}; 9910for(var o in data2options){ 9911v=($(opener).data(nameSpace+'-'+o)||''); 9912if(v){ 9913options[data2options[o]]=v; 9914} 9915} 9916return options; 9917} 9918})(jQuery); 9919var mediaboxInit=function(){ 9920var b=$.extend({},mediabox_settings); 9921if(b.ns!=='box'){ 9922$('[data-box-type]').each(function(i,e){ 9923var $e=$(e); 9924var d=$e.attr('data-box-type'); 9925$e.removeAttr('data-box-type').attr('data-'+b.ns+'-type',d); 9926}); 9927} 9928if(b.auto_detect){ 9929var $popins=$('[data-href-popin],[data-'+b.ns+'-type]'+(window.var_zajax_content?',[data-var_zajax],a.popin':'')) 9930.add(b.sel_c) 9931.not(ajaxbloc_selecteur,'.ajaxbloc','.hasbox'); 9932$popins.each(function(i,e){ 9933var $e=$(e); 9934var url=$e.attr('href')||"./"; 9935var popin=$e.attr('data-href-popin'); 9936var type=$e.attr('data-'+b.ns+'-type')||''; 9937if(!popin){ 9938var env=$e.attr('data-ajax-env'); 9939if(env){ 9940url=parametre_url(parametre_url(url,'var_ajax',1),'var_ajax_env',env) 9941$e.removeAttr('data-ajax-env'); 9942type='ajax'; 9943} 9944var za=$e.attr('data-var_zajax'); 9945if(za!==undefined||$e.hasClass('popin')){ 9946if(za==='content'&&window.var_zajax_content){ 9947za=window.var_zajax_content; 9948} 9949url=parametre_url(url,'var_zajax',za||window.var_zajax_content); 9950$e.removeAttr('data-var_zajax'); 9951type='ajax'; 9952} 9953if((url!==$e.attr('href')||(!popin&&type))&&url!=="./"){ 9954$e.attr('data-href-popin',url); 9955} 9956} 9957url=popin||url; 9958if(!type){ 9959var attrs=$e.data(); 9960var types=['inline','html','iframe','image','ajax']; 9961types.some(function(e){ 9962var k=b.ns+e.charAt(0).toUpperCase()+e.slice(1); 9963if(attrs[k]){ 9964type=e; 9965return true; 9966} 9967}); 9968} 9969if(!type&&typeof(mediabox_autodetect_href)=='function'){ 9970type=mediabox_autodetect_href(url); 9971} 9972if(!type||$e.hasClass('boxIframe')){ 9973type="iframe"; 9974$e.removeClass('boxIframe'); 9975} 9976$e.attr('data-'+b.ns+'-type',type); 9977}); 9978} 9979if(b.sel_g){ 9980var $items=$(); 9981$(b.sel_g).each(function(i,e){ 9982$items=$items.add( 9983$(this).is('a[type^=\'image\']') 9984?$(this) 9985:$(this).find('a[type^=\'image\']') 9986); 9987}); 9988$items 9989.not('.hasbox') 9990.removeAttr('onclick') 9991.mediabox({rel:'galerieauto',slideshow:true,slideshowAuto:false,type:'image'}) 9992.addClass('hasbox'); 9993} 9994if(b.tt_img){ 9995$('a[type^="image"],a[href$=".png"],a[href$=".jpg"],a[href$=".jpeg"],a[href$=".svg"],a[href$=".webp"]') 9996.not('.hasbox') 9997.removeAttr('onclick') 9998.mediabox({type:'image'}) 9999.addClass('hasbox') 10000; 10001} 10002$(b.sel_c) 10003.not('.hasbox') 10004.mediabox() 10005.addClass('hasbox') 10006; 10007$('[data-href-popin]',this) 10008.not('.hasbox') 10009.click(function(){if($.modalbox)$.modalbox($(this).attr('data-href-popin'),$.parseMediaboxOptions(b.ns,this));return false;}) 10010.addClass('hasbox'); 10011}; 10012(function($){ 10013if(typeof onAjaxLoad=='function')onAjaxLoad(mediaboxInit);
10014$(mediaboxInit); 10015})(jQuery); 10016function mediabox_autodetect_href(href,options){ 10017options=$.extend({ 10018breakMode:true, 10019tests:{ 10020image:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i, 10021inline:/^[#.]\w/, 10022html:/^\s*<[\w!][^<]*>/, 10023ajax:/((\?|&(amp;)?)var_z?ajax=|cache-ajaxload\/)/i, 10024iframe:/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)(?:\.(?:[a-z\u00a1-\uffff0-9]-*)*[a-z\u00a1-\uffff0-9]+)*(?:\.(?:[a-z\u00a1-\uffff]{2,}))\.?)(?::\d{2,5})?(?:[/?#]\S*)?$/i, 10025}, 10026},options); 10027var matched=options.breakMode?false:[]; 10028$.each(options.tests,function(type,regex){ 10029if(href.match(regex)&&!href.match('/File:[^/]+(\\#|[?]|$)')){ 10030if(options.breakMode){ 10031matched=type; 10032return false; 10033}else{ 10034matched.push(type); 10035} 10036} 10037}); 10038return matched; 10039}; 10040 10041 10042/* plugins-dist/porte_plume/javascript/jquery.markitup_pour_spip.js?1788350576 */ 10043 10044;(function($){ 10045$.fn.markItUp=function(settings,extraSettings){ 10046var method,params,options,ctrlKey,shiftKey,altKey;ctrlKey=shiftKey=altKey=false; 10047markitup_prompt=false; 10048if(typeof settings=='string'){ 10049method=settings; 10050params=extraSettings; 10051} 10052options={id:'', 10053nameSpace:'', 10054root:'', 10055lang:'', 10056previewHandler:false, 10057previewInWindow:'', 10058previewInElement:'', 10059previewAutoRefresh:true, 10060previewPosition:'after', 10061previewTemplatePath:'~/templates/preview.html', 10062previewParser:false, 10063previewParserPath:'', 10064previewParserVar:'data', 10065previewParserAjaxType:'POST', 10066resizeHandle:true, 10067beforeInsert:'', 10068afterInsert:'', 10069onEnter:{}, 10070onShiftEnter:{}, 10071onCtrlEnter:{}, 10072onTab:{}, 10073markupSet:[{}] 10074}; 10075$.extend(options,settings,extraSettings); 10076if(!options.root){ 10077$('script').each(function(a,tag){ 10078var miuScript=$(tag).get(0).src.match(/(.*)jquery\.markitup(\.pack)?\.js$/); 10079if(miuScript!==null){ 10080options.root=miuScript[1]; 10081} 10082}); 10083} 10084var uaMatch=function(ua){ 10085ua=ua.toLowerCase(); 10086var match=/(chrome)[ \/]([\w.]+)/.exec(ua)||/(webkit)[ \/]([\w.]+)/.exec(ua)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(ua)||/(msie) ([\w.]+)/.exec(ua)|| 10087ua.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(ua)|| 10088[]; 10089return{ 10090browser:match[1]||"", 10091version:match[2]||"0" 10092}; 10093}; 10094var matched=uaMatch(navigator.userAgent); 10095var browser={}; 10096if(matched.browser){ 10097browser[matched.browser]=true; 10098browser.version=matched.version; 10099} 10100if(browser.chrome){ 10101browser.webkit=true; 10102}else if(browser.webkit){ 10103browser.safari=true; 10104} 10105return this.each(function(){ 10106var $$,textarea,levels,scrollPosition,caretPosition, 10107clicked,hash,header,footer,previewWindow,template,iFrame,abort, 10108before,after; 10109$$=$(this); 10110textarea=this; 10111levels=[]; 10112abort=false; 10113scrollPosition=caretPosition=0; 10114caretOffset=-1; 10115options.previewParserPath=localize(options.previewParserPath); 10116options.previewTemplatePath=localize(options.previewTemplatePath); 10117if(method){ 10118switch(method){ 10119case'remove': 10120remove(); 10121break; 10122case'insert': 10123markup(params); 10124break; 10125default: 10126$.error('Method '+method+' does not exist on jQuery.markItUp'); 10127} 10128return; 10129} 10130function localize(data,inText){ 10131if(inText){ 10132return data.replace(/("|')~\//g,"$1"+options.root); 10133} 10134return data.replace(/^~\//,options.root); 10135} 10136function init(){ 10137id='';nameSpace=''; 10138if(options.id){ 10139id='id="'+options.id+'"'; 10140}else if($$.attr("id")){ 10141id='id="markItUp'+($$.attr("id").substr(0,1).toUpperCase())+($$.attr("id").substr(1))+'"'; 10142} 10143if(options.nameSpace){ 10144nameSpace='class="'+options.nameSpace+'"'; 10145} 10146currentScrollPosition=$$.scrollTop(); 10147$$.wrap('<div '+nameSpace+'></div>'); 10148$$.wrap('<div '+id+' class="markItUp"></div>'); 10149$$.wrap('<div class="markItUpContainer"></div>'); 10150$$.addClass("markItUpEditor"); 10151$$.scrollTop(currentScrollPosition); 10152header=$('<div class="markItUpHeader"></div>').insertBefore($$); 10153$(dropMenus(options.markupSet)).appendTo(header); 10154$(header).find("li.markItUpDropMenu ul:empty").parent().remove(); 10155footer=$('<div class="markItUpFooter"></div>').insertAfter($$); 10156if(options.resizeHandle===true&&browser.safari!==true){ 10157resizeHandle=$('<div class="markItUpResizeHandle"></div>') 10158.insertAfter($$) 10159.on("mousedown.markItUp",function(e){ 10160var h=$$.height(),y=e.clientY,mouseMove,mouseUp; 10161mouseMove=function(e){ 10162$$.css("height",Math.max(20,e.clientY+h-y)+"px"); 10163return false;
10164}; 10165mouseUp=function(e){ 10166$("html").off("mousemove.markItUp",mouseMove).off("mouseup.markItUp",mouseUp); 10167return false; 10168}; 10169$("html").on("mousemove.markItUp",mouseMove).on("mouseup.markItUp",mouseUp); 10170}); 10171footer.append(resizeHandle); 10172} 10173$$.on('keydown.markItUp',keyPressed).on('keyup',keyPressed); 10174$$.on("insertion.markItUp",function(e,settings){ 10175if(settings.target!==false){ 10176get(); 10177} 10178if(textarea===$.markItUp.focused){ 10179markup(settings); 10180} 10181}); 10182$$.on('focus.markItUp',function(){ 10183$.markItUp.focused=this; 10184}); 10185if(options.previewInElement){ 10186refreshPreview(); 10187} 10188} 10189function dropMenus(markupSet){ 10190var ul=$('<ul></ul>'),i=0; 10191var lang=($$.attr('lang')||options.lang); 10192$('li:hover > ul',ul).css('display','block'); 10193$.each(markupSet,function(){ 10194var button=this,t='',title,li,j; 10195if((!lang||!button.lang||($.inArray(lang,button.lang)!=-1)) 10196&&(!button.lang_not||($.inArray(lang,button.lang_not)==-1))){ 10197button.title?title=(button.key)?(button.title||'')+' [Ctrl+'+button.key+']':(button.title||''):title=(button.key)?(button.name||'')+' [Ctrl+'+button.key+']':(button.name||''); 10198key=(button.key)?'accesskey="'+button.key+'"':''; 10199if(button.separator){ 10200li=$('<li class="markItUpSeparator">'+(button.separator||'')+'</li>').appendTo(ul); 10201}else{ 10202i++; 10203for(j=levels.length-1;j>=0;j--){ 10204t+=levels[j]+"-"; 10205} 10206li=$('<li class="markItUpButton markItUpButton'+t+(i)+' '+(button.className||'')+'"><a href="#" '+key+' title="'+title+'"><em>'+(button.name||'')+'</em></a></li>') 10207.on("contextmenu.markItUp",function(){ 10208return false; 10209}).on('click.markItUp',function(e){ 10210e.preventDefault(); 10211}).on("focusin.markItUp",function(){ 10212setTimeout(function(){ 10213$$.focus(); 10214},0); 10215}).on('mouseup',function(e){ 10216if(button.call){ 10217eval(button.call)(e); 10218} 10219setTimeout(function(){markup(button)},1); 10220return false; 10221}).on('mouseenter.markItUp',function(){ 10222$('> a',this).addClass('active'); 10223$('> ul',this).addClass('expanded'); 10224$(document).one('click',function(){ 10225$('ul a',header).removeClass('active'); 10226$('ul ul',header).removeClass('expanded'); 10227} 10228); 10229}).on('mouseleave.markItUp',function(){ 10230$('> a',this).removeClass('active'); 10231$('> ul',this).removeClass('expanded'); 10232}).appendTo(ul); 10233if(button.dropMenu){ 10234levels.push(i); 10235$(li).addClass('markItUpDropMenu').append(dropMenus(button.dropMenu)); 10236} 10237} 10238} 10239}); 10240levels.pop(); 10241return ul; 10242} 10243function magicMarkups(string){ 10244if(string){ 10245string=string.toString(); 10246string=string.replace(/\(\!\(([\s\S]*?)\)\!\)/g, 10247function(x,a){ 10248var b=a.split('|!|'); 10249if(altKey===true){ 10250return(b[1]!==undefined)?b[1]:b[0]; 10251}else{ 10252return(b[1]===undefined)?"":b[0]; 10253} 10254} 10255); 10256string=string.replace(/\[\!\[([\s\S]*?)\]\!\]/g, 10257function(x,a){ 10258var b=a.split(':!:'); 10259if(abort===true){ 10260return false; 10261} 10262markitup_prompt=true; 10263value=prompt(b[0],(b[1])?b[1]:''); 10264if(value===null){ 10265abort=true; 10266} 10267setTimeout(function(){markitup_prompt=false;},500); 10268return value; 10269} 10270); 10271return string; 10272} 10273return""; 10274} 10275function prepare(action){ 10276if($.isFunction(action)){ 10277action=action(hash); 10278} 10279return magicMarkups(action); 10280} 10281function build(string){ 10282var openWith=prepare(clicked.openWith); 10283var placeHolder=prepare(clicked.placeHolder); 10284var replaceWith=prepare(clicked.replaceWith); 10285var closeWith=prepare(clicked.closeWith); 10286var openBlockWith=prepare(clicked.openBlockWith); 10287var closeBlockWith=prepare(clicked.closeBlockWith); 10288var multiline=clicked.multiline; 10289if(replaceWith!==""){ 10290block=openWith+replaceWith+closeWith; 10291}else if(selection===''&&placeHolder!==''){ 10292block=openWith+placeHolder+closeWith; 10293}else if(multiline===true){ 10294string=string||selection; 10295var lines=[string],blocks=[]; 10296if(multiline===true){ 10297lines=string.split(/\r?\n/); 10298} 10299for(var l=0;l<lines.length;l++){ 10300line=lines[l]; 10301var trailingSpaces; 10302if(trailingSpaces=line.match(/ *$/)){ 10303blocks.push(openWith+line.replace(/ *$/g,'')+closeWith+trailingSpaces); 10304}else{ 10305blocks.push(openWith+line+closeWith); 10306} 10307} 10308block=blocks.join("\n"); 10309}else{ 10310block=openWith+(string||selection)+closeWith; 10311} 10312block=openBlockWith+block+closeBlockWith; 10313return{block:block, 10314openBlockWith:openBlockWith, 10315openWith:openWith, 10316replaceWith:replaceWith, 10317placeHolder:placeHolder, 10318closeWith:closeWith, 10319closeBlockWith:closeBlockWith 10320}; 10321} 10322function selectWord(){ 10323selectionBeforeAfter(/\s|[.,;:!¡?¿()]/); 10324selectionSave(); 10325} 10326function selectLine(){ 10327selectionBeforeAfter(/\r?\n/); 10328selectionSave(); 10329} 10330function selectionRemoveLast(pattern){ 10331if(!pattern)pattern=/\s/; 10332last=selection[selection.length-1]; 10333if(last&&last.match(pattern)){ 10334set(caretPosition,selection.length-1); 10335get(); 10336$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}); 10337} 10338} 10339function selectionBeforeAfter(pattern){ 10340if(!pattern)pattern=/\s/; 10341sautAvantIE=sautApresIE=0; 10342if(browser.msie){ 10343lenSelection=selection.length-fixIeBug(selection); 10344if(caretPosition){ 10345set(caretPosition-1,2); 10346sautAvantIE=fixIeBug(document.selection.createRange().text); 10347} 10348set(caretPosition,2); 10349sautApresIE=fixIeBug(document.selection.createRange().text); 10350set(0,caretPosition); 10351before=document.selection.createRange().text; 10352set(caretPosition+lenSelection,textarea.value.length);
10353after=document.selection.createRange().text; 10354set(caretPosition,lenSelection); 10355selection=document.selection.createRange().text; 10356}else{ 10357before=textarea.value.substring(0,caretPosition); 10358after=textarea.value.substring(caretPosition+selection.length-fixIeBug(selection)); 10359} 10360before=before.split(pattern); 10361after=after.split(pattern); 10362if(sautAvantIE)before.push(""); 10363if(sautApresIE)after.unshift(""); 10364} 10365function selectionSave(){ 10366nb_before=before?before[before.length-1].length:0; 10367nb_after=after?after[0].length:0; 10368nb=nb_before+selection.length+nb_after-fixIeBug(selection); 10369caretPosition=caretPosition-nb_before; 10370set(caretPosition,nb); 10371get(); 10372$.extend(hash,{selection:selection,caretPosition:caretPosition,scrollPosition:scrollPosition}); 10373} 10374function markup(button){ 10375var len,j,n,i; 10376hash=clicked=button; 10377get(); 10378$.extend(hash,{line:"", 10379root:options.root, 10380textarea:textarea, 10381selection:(selection||''), 10382caretPosition:caretPosition, 10383ctrlKey:ctrlKey, 10384shiftKey:shiftKey, 10385altKey:altKey 10386} 10387); 10388if(button.selectionType){ 10389if(button.selectionType=="word"){ 10390if(!selection){ 10391selectWord(); 10392}else{ 10393selectionRemoveLast(/\s/); 10394} 10395} 10396if(button.selectionType=="line"){ 10397selectLine(); 10398} 10399if(button.selectionType=="return"){ 10400if(!browser.msie){ 10401selectionBeforeAfter(/\r?\n/); 10402before_last=before[before.length-1]; 10403after=''; 10404if(r=before_last.match(/^-([*#]+) ?(.*)$/)){ 10405if(r[2]){ 10406button.replaceWith="\n-"+r[1]+' '; 10407before_last=''; 10408}else{ 10409button.replaceWith="\n"; 10410} 10411}else{ 10412before_last=''; 10413button.replaceWith="\n"; 10414} 10415before[before.length-1]=before_last; 10416selectionSave(); 10417} 10418} 10419} 10420prepare(options.beforeInsert); 10421prepare(clicked.beforeInsert); 10422if((ctrlKey===true&&shiftKey===true)||button.multiline===true){ 10423prepare(clicked.beforeMultiInsert); 10424} 10425$.extend(hash,{line:1}); 10426if((ctrlKey===true&&shiftKey===true)||button.forceMultiline===true){ 10427lines=selection.split(/\r?\n/); 10428for(j=0,n=lines.length,i=0;i<n;i++){ 10429if(n==1||$.trim(lines[i])!==''){ 10430$.extend(hash,{line:++j,selection:lines[i]}); 10431lines[i]=build(lines[i]).block; 10432}else{ 10433lines[i]=""; 10434} 10435} 10436string={block:lines.join('\n')}; 10437start=caretPosition; 10438len=string.block.length+((browser.opera)?n-1:0); 10439}else if(ctrlKey===true){ 10440string=build(selection); 10441start=caretPosition+string.openWith.length; 10442len=string.block.length-string.openWith.length-string.closeWith.length; 10443len=len-(string.block.match(/ $/)?1:0); 10444len-=fixIeBug(string.block); 10445}else if(shiftKey===true){ 10446string=build(selection); 10447start=caretPosition; 10448len=string.block.length; 10449len-=fixIeBug(string.block); 10450}else{ 10451string=build(selection); 10452start=caretPosition+string.block.length; 10453len=0; 10454start-=fixIeBug(string.block); 10455} 10456if((selection===''&&string.replaceWith==='')){ 10457caretOffset+=fixOperaBug(string.block); 10458start=caretPosition+string.openBlockWith.length+string.openWith.length; 10459len=string.block.length-string.openBlockWith.length-string.openWith.length-string.closeWith.length-string.closeBlockWith.length; 10460caretOffset=$$.val().substring(caretPosition,$$.val().length).length; 10461caretOffset-=fixOperaBug($$.val().substring(0,caretPosition)); 10462} 10463$.extend(hash,{caretPosition:caretPosition,scrollPosition:scrollPosition}); 10464if(string.block!==selection&&abort===false){ 10465insert(string.block); 10466set(start,len); 10467}else{ 10468caretOffset=-1; 10469} 10470get(); 10471$.extend(hash,{line:'',selection:selection}); 10472if((ctrlKey===true&&shiftKey===true)||button.multiline===true){ 10473prepare(clicked.afterMultiInsert); 10474} 10475prepare(clicked.afterInsert); 10476prepare(options.afterInsert); 10477if(previewWindow&&options.previewAutoRefresh){ 10478refreshPreview(); 10479} 10480textarea.dispatchEvent(new Event('input')); 10481shiftKey=altKey=ctrlKey=abort=false; 10482} 10483function fixOperaBug(string){ 10484if(browser.opera){ 10485return string.length-string.replace(/\n*/g,'').length; 10486} 10487return 0; 10488} 10489function fixIeBug(string){ 10490if(browser.msie){ 10491return string.length-string.replace(/\r*/g,'').length; 10492} 10493return 0; 10494} 10495function insert(block){ 10496if(document.selection){ 10497var newSelection=document.selection.createRange(); 10498newSelection.text=block; 10499}else{ 10500textarea.value=textarea.value.substring(0,caretPosition)+block+textarea.value.substring(caretPosition+selection.length,textarea.value.length); 10501} 10502} 10503function set(start,len){ 10504if(textarea.createTextRange){ 10505if(browser.opera&&browser.version>=9.5&&len==0){ 10506return false;
10507} 10508range=textarea.createTextRange(); 10509range.collapse(true); 10510range.moveStart('character',start); 10511range.moveEnd('character',len); 10512range.select(); 10513}else if(textarea.setSelectionRange){ 10514textarea.setSelectionRange(start,start+len); 10515} 10516textarea.scrollTop=scrollPosition; 10517textarea.focus(); 10518} 10519function get(){ 10520textarea.focus(); 10521scrollPosition=textarea.scrollTop; 10522if(document.selection){ 10523selection=document.selection.createRange().text; 10524if(browser.msie){ 10525var range=document.selection.createRange(),rangeCopy=range.duplicate(); 10526rangeCopy.moveToElementText(textarea); 10527caretPosition=-1; 10528while(rangeCopy.inRange(range)){ 10529rangeCopy.moveStart('character'); 10530caretPosition++; 10531} 10532}else{ 10533caretPosition=textarea.selectionStart; 10534} 10535}else{ 10536caretPosition=textarea.selectionStart; 10537selection=textarea.value.substring(caretPosition,textarea.selectionEnd); 10538} 10539return selection; 10540} 10541function preview(){ 10542if(typeof options.previewHandler==='function'){ 10543previewWindow=true; 10544}else if(options.previewInElement){ 10545previewWindow=$(options.previewInElement); 10546}else if(!previewWindow||previewWindow.closed){ 10547if(options.previewInWindow){ 10548previewWindow=window.open('','preview',options.previewInWindow); 10549$(window).unload(function(){ 10550previewWindow.close(); 10551}); 10552}else{ 10553iFrame=$('<iframe class="markItUpPreviewFrame"></iframe>'); 10554if(options.previewPosition=='after'){ 10555iFrame.insertAfter(footer); 10556}else{ 10557iFrame.insertBefore(header); 10558} 10559previewWindow=iFrame[iFrame.length-1].contentWindow||frame[iFrame.length-1]; 10560} 10561}else if(altKey===true){ 10562if(iFrame){ 10563iFrame.remove(); 10564}else{ 10565previewWindow.close(); 10566} 10567previewWindow=iFrame=false; 10568} 10569if(!options.previewAutoRefresh){ 10570refreshPreview(); 10571} 10572if(options.previewInWindow){ 10573previewWindow.focus(); 10574} 10575} 10576function refreshPreview(){ 10577renderPreview(); 10578} 10579function renderPreview(){ 10580var phtml; 10581var parsedData=$$.val(); 10582if(options.previewParser&&typeof options.previewParser==='function'){ 10583parsedData=options.previewParser(parsedData); 10584} 10585if(options.previewHandler&&typeof options.previewHandler==='function'){ 10586options.previewHandler(parsedData); 10587}else if(options.previewParserPath!==''){ 10588$.ajax({ 10589type:options.previewParserAjaxType, 10590dataType:'text', 10591global:false, 10592url:options.previewParserPath, 10593data:options.previewParserVar+'='+encodeURIComponent(parsedData), 10594success:function(data){ 10595writeInPreview(localize(data,1)); 10596} 10597}); 10598}else{ 10599if(!template){ 10600$.ajax({ 10601url:options.previewTemplatePath, 10602dataType:'text', 10603global:false, 10604success:function(data){ 10605writeInPreview(localize(data,1).replace(/<!-- content -->/g,parsedData)); 10606} 10607}); 10608} 10609} 10610return false; 10611} 10612function writeInPreview(data){ 10613if(options.previewInElement){ 10614$(options.previewInElement).html(data); 10615}else if(previewWindow&&previewWindow.document){ 10616try{ 10617sp=previewWindow.document.documentElement.scrollTop 10618}catch(e){ 10619sp=0; 10620} 10621previewWindow.document.open(); 10622previewWindow.document.write(data); 10623previewWindow.document.close(); 10624previewWindow.document.documentElement.scrollTop=sp; 10625} 10626} 10627function keyPressed(e){ 10628shiftKey=e.shiftKey; 10629altKey=e.altKey; 10630ctrlKey=(!(e.altKey&&e.ctrlKey))?(e.ctrlKey||e.metaKey):false; 10631if(e.type==='keydown'){ 10632if(ctrlKey===true){ 10633li=$('a[accesskey="'+((e.keyCode==13)?'\\n':String.fromCharCode(e.keyCode))+'"]',header).parent('li'); 10634if(li.length!==0){ 10635ctrlKey=false; 10636setTimeout(function(){ 10637li.triggerHandler('mouseup'); 10638},1); 10639return false; 10640} 10641} 10642if(!browser.opera){ 10643if(e.keyCode===13||e.keyCode===10){ 10644if(ctrlKey===true){ 10645ctrlKey=false; 10646markup(options.onCtrlEnter); 10647if(!options.onCtrlEnter.keepDefault){ 10648textarea.dispatchEvent(new Event('input')); 10649} 10650return options.onCtrlEnter.keepDefault; 10651}else if(shiftKey===true){ 10652shiftKey=false; 10653markup(options.onShiftEnter); 10654if(!options.onShiftEnter.keepDefault){ 10655textarea.dispatchEvent(new Event('input')); 10656} 10657return options.onShiftEnter.keepDefault; 10658}else{ 10659markup(options.onEnter); 10660if(!options.onEnter.keepDefault){ 10661textarea.dispatchEvent(new Event('input')); 10662} 10663return options.onEnter.keepDefault; 10664} 10665} 10666if(e.keyCode===9){ 10667if(shiftKey==true||ctrlKey==true||altKey==true){ 10668return false; 10669} 10670if(caretOffset!==-1){ 10671get(); 10672caretOffset=$$.val().length-caretOffset; 10673set(caretOffset,0); 10674caretOffset=-1; 10675return false; 10676}else{ 10677markup(options.onTab); 10678return options.onTab.keepDefault; 10679} 10680} 10681} 10682} 10683} 10684function remove(){ 10685$$.off(".markItUp").removeClass('markItUpEditor'); 10686$$.parent('div').parent('div.markItUp').parent('div').replaceWith($$); 10687var relativeRef=$$.parent('div').parent('div.markItUp').parent('div'); 10688if(relativeRef.length){ 10689relativeRef.replaceWith($$); 10690} 10691$$.data('markItUp',null); 10692} 10693init(); 10694}); 10695}; 10696$.fn.markItUpRemove=function(){ 10697return this.each(function(){ 10698$(this).markItUp('remove'); 10699} 10700); 10701}; 10702$.markItUp=function(settings){ 10703var options={target:false}; 10704$.extend(options,settings); 10705if(options.target){ 10706return $(options.target).each(function(){ 10707$(this).focus(); 10708$(this).trigger('insertion',[options]); 10709}); 10710}else{ 10711$('textarea').trigger('insertion',[options]); 10712} 10713}; 10714})(jQuery); 10715 10716 10717/* plugins-dist/porte_plume/javascript/jquery.previsu_spip.js?1788350576 */ 10718;(function($){ 10719$.fn.previsu_spip=function(settings){ 10720var options; 10721options={ 10722previewParserPath:'', 10723previewParserVar:'data', 10724textEditer:'Editer', 10725textVoir:'Voir', 10726textFullScreen:'Plein écran' 10727}; 10728$.extend(options,settings); 10729return this.each(function(){ 10730var $$,textarea,tabs,preview; 10731$$=$(this); 10732textarea=this;
10733function init(){ 10734$$.addClass("pp_previsualisation"); 10735if(!$$.parent().has('.markItUpContainer').length){ 10736$$.barre_outils('vide'); 10737} 10738var mark=$$.parent(); 10739tabs=$('<div class="markItUpTabs"></div>').prependTo(mark); 10740$(tabs).append( 10741'<a href="#fullscreen" class="fullscreen">'+options.textFullScreen+'</a>'+ 10742'<a href="#previsuVoir" class="previsuVoir">'+options.textVoir+'</a>'+ 10743'<a href="#previsuEditer" class="previsuEditer on">'+options.textEditer+'</a>' 10744); 10745preview=$('<div class="markItUpPreview"></div>').insertAfter(mark.find('.markItUpHeader')); 10746preview.hide(); 10747var is_full_screen=false; 10748var objet=mark.parents('.formulaire_spip')[0].className.match(/formulaire_editer_(\w+)/); 10749objet=(objet?objet[1]:''); 10750var champ=mark.parents('.editer')[0].className.match(/editer_(\w+)/); 10751champ=(champ?champ[1].toUpperCase():''); 10752var textarea=mark.find('textarea.pp_previsualisation'); 10753var preview=mark.find('.markItUpPreview'); 10754var dir=textarea.attr('dir'); 10755if(dir){ 10756preview.attr('dir',dir); 10757} 10758tabs.find('.fullscreen').click(function(){ 10759if(!mark.is('.fullscreen')){ 10760textarea.data('height-origin',textarea.css('height')); 10761} 10762mark.toggleClass('fullscreen'); 10763if(mark.is('.fullscreen')){ 10764$('body').addClass('markitup-fullscreen'); 10765is_full_screen=true; 10766mark.find('.markItUpHeader a').show(); 10767if(!mark.is('.livepreview')){ 10768var original_texte=""; 10769function refresh_preview(){ 10770var texte=textarea.val(); 10771if(original_texte==texte){ 10772return; 10773} 10774renderPreview(preview.addClass('ajaxLoad'),texte,champ,objet); 10775original_texte=texte; 10776} 10777var timerPreview=null; 10778mark.addClass('livepreview').find('.markItUpEditor').on('keyup click change focus refreshpreview',function(e){ 10779if(is_full_screen){ 10780if(timerPreview)clearTimeout(timerPreview); 10781timerPreview=setTimeout(refresh_preview,500); 10782} 10783}); 10784$(window).on('keyup',function(e){ 10785if(is_full_screen){ 10786if(e.type=='keyup'&&e.keyCode==27&&!markitup_prompt){ 10787mark.removeClass('fullscreen'); 10788$('body').removeClass('markitup-fullscreen'); 10789textarea.css('height',textarea.data('height-origin')); 10790is_full_screen=false; 10791} 10792} 10793}); 10794} 10795mark.find('.markItUpEditor').trigger('refreshpreview'); 10796} 10797else{ 10798$('body').removeClass('markitup-fullscreen'); 10799textarea.css('height',textarea.data('height-origin')); 10800if($(this).next().hasClass('on')){ 10801mark.find('.markItUpHeader a').hide(); 10802} 10803is_full_screen=false; 10804} 10805return false; 10806}); 10807tabs.find('.previsuVoir').click(function(){ 10808preview.height( 10809mark.find('.markItUpEditor').height() 10810+mark.find('.markItUpFooter').height() 10811); 10812mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').hide(); 10813$(this).addClass('on').next().removeClass('on'); 10814renderPreview( 10815preview.show().addClass('ajaxLoad'), 10816mark.find('textarea.pp_previsualisation').val(), 10817champ, 10818objet, 10819false 10820); 10821return false; 10822}); 10823tabs.find('.previsuEditer').click(function(){ 10824mark.find('.markItUpPreview').hide(); 10825mark.find('.markItUpHeader a,.markItUpEditor,.markItUpFooter').show(); 10826$(this).addClass('on').prev().removeClass('on'); 10827return false; 10828}); 10829} 10830function renderPreview(node,val,champ,objet,async){ 10831if(options.previewParserPath!==''){ 10832$.ajax({ 10833type:'POST', 10834async:typeof(async)=="undefined"?true:async, 10835url:options.previewParserPath, 10836data:'champ='+champ 10837+'&objet='+objet 10838+'&'+options.previewParserVar+'='+encodeURIComponent(val), 10839success:function(data){ 10840node.html(data).removeClass('ajaxLoad'); 10841$("a",node).attr("target","blank"); 10842$(":input",node).attr("disabled","disabled"); 10843} 10844}); 10845} 10846} 10847init(); 10848}); 10849}; 10850})(jQuery); 10851 10852 10853/* local/cache-js/jsdyn-javascript_porte_plume_start_js-d0e87260.js?1789563542 */ 10854 10855barre_outils_edition={ 10856"nameSpace":"edition", 10857"previewAutoRefresh":false, 10858"onEnter":{ 10859"keepDefault":false, 10860"selectionType":"return", 10861"replaceWith":"\n" 10862}, 10863"onShiftEnter":{ 10864"keepDefault":false, 10865"replaceWith":"\n_ " 10866}, 10867"onCtrlEnter":{ 10868"keepDefault":false, 10869"replaceWith":"\n\n" 10870}, 10871"markupSet":[ 10872{ 10873"name":"Transformer en {{{intertitre}}}", 10874"key":"H", 10875"className":"outil_header1", 10876"openWith":"\n{{{", 10877"closeWith":"}}}\n", 10878"selectionType":"line", 10879"dropMenu":[ 10880{ 10881"id":"intertitre", 10882"name":"Transformer en {{{intertitre}}}", 10883"className":"outil_intertitre1", 10884"openWith":"\n{{{", 10885"closeWith":"}}}\n", 10886"display":true, 10887"selectionType":"line" 10888}, 10889{ 10890"id":"intertitre2", 10891"name":"Transformer en {{{**intertitre niveau deux}}}", 10892"className":"outil_intertitre2", 10893"openWith":"\n{{{**", 10894"closeWith":"}}}\n", 10895"display":true, 10896"selectionType":"line" 10897}, 10898{ 10899"id":"intertitre3", 10900"name":"Transformer en {{{***intertitre niveau trois}}}", 10901"className":"outil_intertitre3", 10902"openWith":"\n{{{***", 10903"closeWith":"}}}\n", 10904"display":true, 10905"selectionType":"line" 10906}, 10907{ 10908"id":"alignerdroite", 10909"name":"[\/Aligne \u00e0 droite\/] le paragraphe", 10910"className":"outil_alignerdroite", 10911"openWith":"\n[\/", 10912"closeWith":"\/]\n", 10913"display":true, 10914"selectionType":"line" 10915}, 10916{ 10917"id":"alignergauche", 10918"name":"[!Aligne \u00e0 gauche\u00a0!] le paragraphe", 10919"className":"outil_alignergauche", 10920"openWith":"\n[!", 10921"closeWith":"!]\n", 10922"display":true, 10923"lang":[ 10924"ar", 10925"fa" 10926], 10927"selectionType":"line" 10928}, 10929{ 10930"id":"cadretexte", 10931"name":"[(Encadrer)] le paragraphe", 10932"className":"outil_cadretexte", 10933"openWith":"\n[(", 10934"closeWith":")]\n", 10935"display":true, 10936"selectionType":"line" 10937}, 10938{ 10939"id":"barre_cadre", 10940"name":"Placer dans une <cadre>zone de saisie de texte<\/cadre>", 10941"className":"outil_barre_cadre", 10942"openWith":"\n<cadre>", 10943"closeWith":"<\/cadre>\n", 10944"display":true, 10945"selectionType":"line" 10946}, 10947{ 10948"id":"blocs_bloc", 10949"name":"Ins\u00e9rer un bloc repli\u00e9", 10950"className":"blocs_bloc", 10951"replaceWith":"\n<bloc>Un titre\n\nPlacez votre texte ici\n<\/bloc>\n", 10952"display":true 10953}, 10954{ 10955"id":"blocs_visible", 10956"name":"Ins\u00e9rer un bloc d\u00e9pli\u00e9", 10957"className":"blocs_visible", 10958"replaceWith":"\n<visible>Un titre\n\nPlacez votre texte ici\n<\/visible>\n", 10959"display":true 10960} 10961] 10962}, 10963{ 10964"name":"Mettre en {{gras}}", 10965"key":"B", 10966"className":"outil_bold", 10967"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');}, 10968"selectionType":"word", 10969"dropMenu":[ 10970{ 10971"id":"italic", 10972"name":"Mettre en {italique}", 10973"key":"I", 10974"className":"outil_italic", 10975"replaceWith":function(h){return espace_si_accolade(h,'{','}');}, 10976"display":true, 10977"selectionType":"word" 10978}, 10979{ 10980"id":"petitescapitales", 10981"name":"Mettre le texte en <sc>petites capitales<\/sc>", 10982"className":"outil_petitescapitales", 10983"openWith":"<sc>", 10984"closeWith":"<\/sc>", 10985"display":true, 10986"selectionType":"word" 10987}, 10988{ 10989"id":"stroke_through_et",
10990"name":"<del>Barrer<\/del> le texte", 10991"className":"outil_stroke_through_et", 10992"openWith":"<del>", 10993"closeWith":"<\/del>", 10994"display":true, 10995"selectionType":"word" 10996}, 10997{ 10998"id":"miseenevidence", 10999"name":"Mettre le texte en [*\u00e9vidence*]", 11000"className":"outil_miseenevidence", 11001"openWith":"[*", 11002"closeWith":"*]", 11003"display":true, 11004"selectionType":"word" 11005}, 11006{ 11007"id":"miseenevidence2", 11008"name":"Mettre le texte en [**\u00e9vidence*] (2e couleur)", 11009"className":"outil_miseenevidence2", 11010"openWith":"[**", 11011"closeWith":"*]", 11012"display":true, 11013"selectionType":"word" 11014}, 11015{ 11016"id":"exposant", 11017"name":"Mettre le texte en <sup>exposant<\/sup>", 11018"className":"outil_exposant", 11019"openWith":"<sup>", 11020"closeWith":"<\/sup>", 11021"display":true, 11022"selectionType":"word" 11023}, 11024{ 11025"id":"indice", 11026"name":"Mettre le texte en <sub>indice<\/sub>", 11027"className":"outil_indice", 11028"openWith":"<sub>", 11029"closeWith":"<\/sub>", 11030"display":true, 11031"selectionType":"word" 11032}, 11033{ 11034"id":"barre_code", 11035"name":"Mettre en forme un <code>code informatique<\/code>", 11036"className":"outil_barre_code", 11037"openWith":"<code>", 11038"closeWith":"<\/code>", 11039"display":true, 11040"selectionType":"word" 11041} 11042] 11043}, 11044{ 11045"name":"Mettre en liste", 11046"className":"outil_liste_ul separateur_avant", 11047"replaceWith":function(h){return outil_liste(h,'*');}, 11048"selectionType":"line", 11049"forceMultiline":true, 11050"dropMenu":[ 11051{ 11052"id":"liste_ol", 11053"name":"Mettre en liste num\u00e9rot\u00e9e", 11054"className":"outil_liste_ol", 11055"replaceWith":function(h){return outil_liste(h,'#');}, 11056"display":true, 11057"selectionType":"line", 11058"forceMultiline":true 11059}, 11060{ 11061"id":"desindenter", 11062"name":"D\u00e9sindenter une liste", 11063"className":"outil_desindenter", 11064"replaceWith":function(h){return outil_desindenter(h);}, 11065"display":true, 11066"selectionType":"line", 11067"forceMultiline":true 11068}, 11069{ 11070"id":"indenter", 11071"name":"Indenter une liste", 11072"className":"outil_indenter", 11073"replaceWith":function(h){return outil_indenter(h);}, 11074"display":true, 11075"selectionType":"line", 11076"forceMultiline":true 11077} 11078] 11079}, 11080{ 11081"name":"Transformer en [lien hypertexte->http:\/\/...]", 11082"key":"L", 11083"className":"outil_link separateur separateur_apres sepLink", 11084"openWith":"[", 11085"closeWith":"->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]", 11086"dropMenu":[ 11087{ 11088"id":"notes", 11089"name":"Transformer en [[Note de bas de page]]", 11090"className":"outil_notes", 11091"openWith":"[[", 11092"closeWith":"]]", 11093"display":true, 11094"selectionType":"word" 11095} 11096] 11097}, 11098{ 11099"name":"Ins\u00e9rer\/modifier (le s\u00e9lectionner avant) un tableau", 11100"className":"outil_barre_tableau separateur_avant", 11101"replaceWith":function(markitup){zone_selection=markitup.textarea;jQuery.modalboxload('https://lire-et-ecrire.be/spip.php?page=typoenluminee_tableau_edit&modalbox=oui',{minWidth:'90%',minHeight:'90%',iframe:true,type:'iframe'});}, 11102"selectionType":"line" 11103}, 11104{ 11105"name":"<quote>Citer un message<\/quote>", 11106"key":"Q", 11107"className":"outil_quote separateur separateur_apres sepGuillemets", 11108"openWith":"<quote>", 11109"closeWith":"<\/quote>", 11110"selectionType":"word", 11111"dropMenu":[ 11112{ 11113"id":"barre_poesie", 11114"name":"Mettre en forme comme une <poesie>po\u00e9sie<\/poesie>", 11115"className":"outil_barre_poesie", 11116"openWith":"\n<poesie>\n", 11117"closeWith":"\n<\/poesie>\n", 11118"display":true, 11119"selectionType":"word" 11120} 11121] 11122}, 11123{ 11124"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11125"className":"outil_guillemets", 11126"openWith":"«", 11127"closeWith":"»", 11128"lang":[ 11129"fr", 11130"eo", 11131"cpf", 11132"ar", 11133"es" 11134], 11135"selectionType":"word", 11136"dropMenu":[ 11137{ 11138"id":"guillemets_simples", 11139"name":"Entourer de \u201cguillemets de second niveau\u201d", 11140"className":"outil_guillemets_simples", 11141"openWith":"â", 11142"closeWith":"â", 11143"display":true, 11144"lang":[ 11145"fr", 11146"eo", 11147"cpf", 11148"ar", 11149"es" 11150], 11151"selectionType":"word" 11152} 11153] 11154}, 11155{ 11156"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11157"className":"outil_guillemets_de", 11158"openWith":"â", 11159"closeWith":"â", 11160"lang":[ 11161"bg", 11162"de", 11163"pl", 11164"hr", 11165"src" 11166], 11167"selectionType":"word", 11168"dropMenu":[ 11169{ 11170"id":"guillemets_de_simples", 11171"name":"Entourer de \u201cguillemets de second niveau\u201d", 11172"className":"outil_guillemets_de_simples", 11173"openWith":"‚",
11174"closeWith":"â", 11175"display":true, 11176"lang":[ 11177"bg", 11178"de", 11179"pl", 11180"hr", 11181"src" 11182], 11183"selectionType":"word" 11184} 11185] 11186}, 11187{ 11188"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11189"className":"outil_guillemets_simples separateur_avant", 11190"openWith":"â", 11191"closeWith":"â", 11192"lang_not":[ 11193"fr", 11194"eo", 11195"cpf", 11196"ar", 11197"es", 11198"bg", 11199"de", 11200"pl", 11201"hr", 11202"src" 11203], 11204"selectionType":"word", 11205"dropMenu":[ 11206{ 11207"id":"guillemets_autres_simples", 11208"name":"Entourer de \u201cguillemets de second niveau\u201d", 11209"className":"outil_guillemets_uniques", 11210"openWith":"â", 11211"closeWith":"â", 11212"display":true, 11213"lang_not":[ 11214"fr", 11215"eo", 11216"cpf", 11217"ar", 11218"es", 11219"bg", 11220"de", 11221"pl", 11222"hr", 11223"src" 11224], 11225"selectionType":"word" 11226} 11227] 11228}, 11229{ 11230"name":"Ins\u00e9rer des caract\u00e8res sp\u00e9cifiques", 11231"className":"outil_caracteres separateur separateur_apres sepCaracteres", 11232"dropMenu":[ 11233{ 11234"id":"A_grave", 11235"name":"Ins\u00e9rer un \u00c0", 11236"className":"outil_a_maj_grave", 11237"replaceWith":"Ã", 11238"display":true, 11239"lang":[ 11240"fr", 11241"eo", 11242"cpf" 11243] 11244}, 11245{ 11246"id":"E_aigu", 11247"name":"Ins\u00e9rer un \u00c9", 11248"className":"outil_e_maj_aigu", 11249"replaceWith":"Ã", 11250"display":true, 11251"lang":[ 11252"fr", 11253"eo", 11254"cpf" 11255] 11256}, 11257{ 11258"id":"E_grave", 11259"name":"Ins\u00e9rer un \u00c8", 11260"className":"outil_e_maj_grave", 11261"replaceWith":"Ã", 11262"display":true, 11263"lang":[ 11264"fr", 11265"eo", 11266"cpf" 11267] 11268}, 11269{ 11270"id":"aelig", 11271"name":"Ins\u00e9rer un \u00e6", 11272"className":"outil_aelig", 11273"replaceWith":"æ", 11274"display":true, 11275"lang":[ 11276"fr", 11277"eo", 11278"cpf" 11279] 11280}, 11281{ 11282"id":"AElig", 11283"name":"Ins\u00e9rer un \u00c6", 11284"className":"outil_aelig_maj", 11285"replaceWith":"Ã", 11286"display":true, 11287"lang":[ 11288"fr", 11289"eo", 11290"cpf" 11291] 11292}, 11293{ 11294"id":"oe", 11295"name":"Ins\u00e9rer un \u0153", 11296"className":"outil_oe", 11297"replaceWith":"Å", 11298"display":true, 11299"lang":[ 11300"fr" 11301] 11302}, 11303{ 11304"id":"OE", 11305"name":"Ins\u00e9rer un \u0152", 11306"className":"outil_oe_maj", 11307"replaceWith":"Å", 11308"display":true, 11309"lang":[ 11310"fr" 11311] 11312}, 11313{ 11314"id":"Ccedil", 11315"name":"Ins\u00e9rer un \u00c7", 11316"className":"outil_ccedil_maj", 11317"replaceWith":"Ã", 11318"display":true, 11319"lang":[ 11320"fr", 11321"eo", 11322"cpf" 11323] 11324}, 11325{ 11326"id":"uppercase", 11327"name":"Passer en majuscules", 11328"className":"outil_uppercase", 11329"replaceWith":function(markitup){return markitup.selection.toUpperCase()}, 11330"display":true, 11331"lang":[ 11332"fr", 11333"en" 11334] 11335}, 11336{ 11337"id":"lowercase", 11338"name":"Passer en minuscules", 11339"className":"outil_lowercase", 11340"replaceWith":function(markitup){return markitup.selection.toLowerCase()}, 11341"display":true, 11342"lang":[ 11343"fr", 11344"en" 11345] 11346} 11347] 11348} 11349] 11350} 11351function outil_liste(h,c){ 11352if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){ 11353r[1]=r[1].replace(/[#*]/g,c); 11354s='-'+r[1]+' '+r[2]; 11355}else{ 11356s='-'+c+' '+s; 11357} 11358return s; 11359} 11360function outil_indenter(h){ 11361if(s=h.selection){ 11362if(s.substr(0,2)=='-*'){ 11363s='-**'+s.substr(2); 11364}else if(s.substr(0,2)=='-#'){ 11365s='-##'+s.substr(2); 11366}else{ 11367s='-* '+s; 11368} 11369} 11370return s; 11371} 11372function outil_desindenter(h){ 11373if(s=h.selection){ 11374if(s.substr(0,3)=='-**'){ 11375s='-*'+s.substr(3); 11376}else if(s.substr(0,3)=='-* '){ 11377s=s.substr(3); 11378}else if(s.substr(0,3)=='-##'){ 11379s='-#'+s.substr(3); 11380}else if(s.substr(0,3)=='-# '){ 11381s=s.substr(3); 11382} 11383} 11384return s; 11385} 11386function espace_si_accolade(h,openWith,closeWith){ 11387if(s=h.selection){ 11388if(s.charAt(0)=='{'){ 11389return openWith+' '+s+' '+closeWith; 11390} 11391else if(c=h.textarea.selectionStart){ 11392if(h.textarea.value.charAt(c-1)=='{'){ 11393return' '+openWith+s+closeWith+' '; 11394} 11395} 11396} 11397return openWith+s+closeWith; 11398} 11399barre_outils_forum={ 11400"nameSpace":"forum", 11401"previewAutoRefresh":false, 11402"onEnter":{ 11403"keepDefault":false, 11404"selectionType":"return", 11405"replaceWith":"\n" 11406}, 11407"onShiftEnter":{ 11408"keepDefault":false, 11409"replaceWith":"\n_ " 11410}, 11411"onCtrlEnter":{ 11412"keepDefault":false, 11413"replaceWith":"\n\n" 11414}, 11415"markupSet":[ 11416{ 11417"name":"Mettre en {{gras}}", 11418"key":"B", 11419"className":"outil_bold", 11420"replaceWith":function(h){return espace_si_accolade(h,'{{','}}');}, 11421"selectionType":"word" 11422}, 11423{ 11424"name":"Mettre en {italique}", 11425"key":"I", 11426"className":"outil_italic separateur_avant", 11427"replaceWith":function(h){return espace_si_accolade(h,'{','}');}, 11428"selectionType":"word" 11429}, 11430{ 11431"name":"Transformer en [lien hypertexte->http:\/\/...]", 11432"key":"L", 11433"className":"outil_link separateur separateur_apres sepLink separateur_avant", 11434"openWith":"[", 11435"closeWith":"->[![Veuillez indiquer l\u2019adresse de votre lien (vous pouvez indiquer une adresse Internet sous la forme http:\/\/www.monsite.com, une adresse courriel, ou simplement indiquer le num\u00e9ro d\u2019un article de ce site.]!]]" 11436}, 11437{ 11438"name":"<quote>Citer un message<\/quote>", 11439"key":"Q", 11440"className":"outil_quote separateur separateur_apres sepGuillemets", 11441"openWith":"\n<quote>", 11442"closeWith":"<\/quote>\n", 11443"selectionType":"word" 11444}, 11445{
11446"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11447"className":"outil_guillemets", 11448"openWith":"«", 11449"closeWith":"»", 11450"lang":[ 11451"fr", 11452"eo", 11453"cpf", 11454"ar", 11455"es" 11456], 11457"selectionType":"word", 11458"dropMenu":[ 11459{ 11460"id":"guillemets_simples", 11461"name":"Entourer de \u201cguillemets de second niveau\u201d", 11462"className":"outil_guillemets_simples", 11463"openWith":"â", 11464"closeWith":"â", 11465"display":true, 11466"lang":[ 11467"fr", 11468"eo", 11469"cpf", 11470"ar", 11471"es" 11472], 11473"selectionType":"word" 11474} 11475] 11476}, 11477{ 11478"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11479"className":"outil_guillemets_de", 11480"openWith":"â", 11481"closeWith":"â", 11482"lang":[ 11483"bg", 11484"de", 11485"pl", 11486"hr", 11487"src" 11488], 11489"selectionType":"word", 11490"dropMenu":[ 11491{ 11492"id":"guillemets_de_simples", 11493"name":"Entourer de \u201cguillemets de second niveau\u201d", 11494"className":"outil_guillemets_de_simples", 11495"openWith":"‚", 11496"closeWith":"â", 11497"display":true, 11498"lang":[ 11499"bg", 11500"de", 11501"pl", 11502"hr", 11503"src" 11504], 11505"selectionType":"word" 11506} 11507] 11508}, 11509{ 11510"name":"Entourer de \u00ab\u00a0guillemets\u00a0\u00bb", 11511"className":"outil_guillemets_simples separateur_avant", 11512"openWith":"â", 11513"closeWith":"â", 11514"lang_not":[ 11515"fr", 11516"eo", 11517"cpf", 11518"ar", 11519"es", 11520"bg", 11521"de", 11522"pl", 11523"hr", 11524"src" 11525], 11526"selectionType":"word", 11527"dropMenu":[ 11528{ 11529"id":"guillemets_autres_simples", 11530"name":"Entourer de \u201cguillemets de second niveau\u201d", 11531"className":"outil_guillemets_uniques", 11532"openWith":"â", 11533"closeWith":"â", 11534"display":true, 11535"lang_not":[ 11536"fr", 11537"eo", 11538"cpf", 11539"ar", 11540"es", 11541"bg", 11542"de", 11543"pl", 11544"hr", 11545"src" 11546], 11547"selectionType":"word" 11548} 11549] 11550} 11551] 11552} 11553function outil_liste(h,c){ 11554if((s=h.selection)&&(r=s.match(/^-([*#]+) (.*)$/))){ 11555r[1]=r[1].replace(/[#*]/g,c); 11556s='-'+r[1]+' '+r[2]; 11557}else{ 11558s='-'+c+' '+s; 11559} 11560return s; 11561} 11562function outil_indenter(h){ 11563if(s=h.selection){ 11564if(s.substr(0,2)=='-*'){ 11565s='-**'+s.substr(2); 11566}else if(s.substr(0,2)=='-#'){ 11567s='-##'+s.substr(2); 11568}else{ 11569s='-* '+s; 11570} 11571} 11572return s; 11573} 11574function outil_desindenter(h){ 11575if(s=h.selection){ 11576if(s.substr(0,3)=='-**'){ 11577s='-*'+s.substr(3); 11578}else if(s.substr(0,3)=='-* '){ 11579s=s.substr(3); 11580}else if(s.substr(0,3)=='-##'){ 11581s='-#'+s.substr(3); 11582}else if(s.substr(0,3)=='-# '){ 11583s=s.substr(3); 11584} 11585} 11586return s; 11587} 11588function espace_si_accolade(h,openWith,closeWith){ 11589if(s=h.selection){ 11590if(s.charAt(0)=='{'){ 11591return openWith+' '+s+' '+closeWith; 11592} 11593else if(c=h.textarea.selectionStart){ 11594if(h.textarea.value.charAt(c-1)=='{'){ 11595return' '+openWith+s+closeWith+' '; 11596} 11597} 11598} 11599return openWith+s+closeWith; 11600} 11601barre_outils_vide={ 11602"nameSpace":"vide", 11603"previewAutoRefresh":false, 11604"markupSet":[] 11605} 11606;(function($){ 11607$.fn.barre_outils=function(nom,settings){ 11608options={ 11609lang:'fr' 11610}; 11611$.extend(options,settings); 11612return $(this) 11613.not('.markItUpEditor, .no_barre') 11614.markItUp(eval('barre_outils_'+nom),{lang:options.lang}) 11615.trigger('markItUpEditor.loaded') 11616.parent().find('.markItUpButton a').attr('tabindex',-1) 11617.end(); 11618}; 11619$.fn.barre_previsualisation=function(settings){ 11620options={ 11621previewParserPath:"index.php?action=porte_plume_previsu", 11622textEditer:"Modifier", 11623textVoir:"Voir" 11624}; 11625$.extend(options,settings); 11626return $(this) 11627.not('.pp_previsualisation, .no_previsualisation') 11628.previsu_spip(options) 11629.trigger('markItUpPreview.loaded') 11630.parent().find('.markItUpTabs a').attr('tabindex',-1) 11631.end(); 11632}; 11633$(window).on('load',function(){ 11634function barrebouilles(){ 11635$('.formulaire_spip textarea.inserer_barre_forum').barre_outils('forum'); 11636$('.formulaire_spip textarea.inserer_barre_edition').barre_outils('edition'); 11637$('.formulaire_spip textarea.inserer_previsualisation').barre_previsualisation(); 11638$('textarea.textarea_forum').barre_outils('forum'); 11639$('.formulaire_forum textarea[name=texte]').barre_outils('forum'); 11640$('.formulaire_spip textarea[name=texte]') 11641.barre_outils('edition').end() 11642.barre_previsualisation(); 11643} 11644barrebouilles(); 11645onAjaxLoad(barrebouilles); 11646}); 11647})(jQuery); 11648 11649 11650/* prive/javascript/js.cookie.js?1788349516 */ 11651 11652; 11653(function(global,factory){ 11654typeof exports==='object'&&typeof module!=='undefined'?module.exports=factory(): 11655typeof define==='function'&&define.amd?define(factory): 11656(global=typeof globalThis!=='undefined'?globalThis:global||self,(function(){ 11657var current=global.Cookies; 11658var exports=global.Cookies=factory(); 11659exports.noConflict=function(){global.Cookies=current;return exports;}; 11660})()); 11661})(this,(function(){'use strict'; 11662function assign(target){ 11663for(var i=1;i<arguments.length;i++){ 11664var source=arguments[i]; 11665for(var key in source){ 11666target[key]=source[key]; 11667} 11668} 11669return target 11670} 11671var defaultConverter={ 11672read:function(value){ 11673if(value[0]==='"'){ 11674value=value.slice(1,-1); 11675} 11676return value.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent) 11677}, 11678write:function(value){ 11679return encodeURIComponent(value).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g, 11680decodeURIComponent 11681) 11682} 11683}; 11684function init(converter,defaultAttributes){ 11685function set(name,value,attributes){ 11686if(typeof document==='undefined'){ 11687return 11688} 11689attributes=assign({},defaultAttributes,attributes); 11690if(typeof attributes.expires==='number'){ 11691attributes.expires=new Date(Date.now()+attributes.expires*864e5); 11692} 11693if(attributes.expires){ 11694attributes.expires=attributes.expires.toUTCString(); 11695} 11696name=encodeURIComponent(name)
vendor: 4,303 bytes, lines 11697-11775
11697.replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent) 11698.replace(/[()]/g,escape); 11699var stringifiedAttributes=''; 11700for(var attributeName in attributes){ 11701if(!attributes[attributeName]){ 11702continue 11703} 11704stringifiedAttributes+='; '+attributeName; 11705if(attributes[attributeName]===true){ 11706continue 11707} 11708stringifiedAttributes+='='+attributes[attributeName].split(';')[0]; 11709} 11710return(document.cookie= 11711name+'='+converter.write(value,name)+stringifiedAttributes) 11712} 11713function get(name){ 11714if(typeof document==='undefined'||(arguments.length&&!name)){ 11715return 11716} 11717var cookies=document.cookie?document.cookie.split('; '):[]; 11718var jar={}; 11719for(var i=0;i<cookies.length;i++){ 11720var parts=cookies[i].split('='); 11721var value=parts.slice(1).join('='); 11722try{ 11723var found=decodeURIComponent(parts[0]); 11724jar[found]=converter.read(value,found); 11725if(name===found){ 11726break 11727} 11728}catch(e){} 11729} 11730return name?jar[name]:jar 11731} 11732return Object.create( 11733{ 11734set, 11735get, 11736remove:function(name,attributes){ 11737set( 11738name, 11739'', 11740assign({},attributes,{ 11741expires:-1 11742}) 11743); 11744}, 11745withAttributes:function(attributes){ 11746return init(this.converter,assign({},this.attributes,attributes)) 11747}, 11748withConverter:function(converter){ 11749return init(assign({},this.converter,converter),this.attributes) 11750} 11751}, 11752{ 11753attributes:{value:Object.freeze(defaultAttributes)}, 11754converter:{value:Object.freeze(converter)} 11755} 11756) 11757} 11758var api=init(defaultConverter,{path:'/'}); 11759return api; 11760})); 11761 11762 11763/* local/cache-js/jsdyn-socialtags_js-37fdc810.js?1789563542 */ 11764 11765;var socialtags_addfavorite=function(u,t){ 11766if(document.all)window.external.AddFavorite(u,t); 11767}; 11768(function($){ 11769var socialtags_init=function(){ 11770var selector=$('#socialtags'); 11771if(!selector.length)return; 11772var socialtags=[ 11773{a:'mail',n:'Partage par email (mailto)',i:'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCIgd2lkdGg9IjY0cHgiIGhlaWdodD0iNjRweCI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGwtcnVsZTpldmVub2RkO2NsaXAtcnVsZTpldmVub2RkO2ZpbGw6dXJsKCNTVkdJRF8xXyk7fQo8L3N0eWxlPgo8bGluZWFyR3JhZGllbnQgaWQ9IlNWR0lEXzFfIiBncmFkaWVudFVuaXRzPSJ1c2VyU3BhY2VPblVzZSIgeDE9IjEzLjE0NzQiIHkxPSI0NS41NDQ5IiB4Mj0iNDMuNTU4OSIgeTI9IjIzLjYxNDciPgoJPHN0b3AgIG9mZnNldD0iMCIgc3R5bGU9InN0b3AtY29sb3I6IzMyNDY2NiIvPgoJPHN0b3AgIG9mZnNldD0iMSIgc3R5bGU9InN0b3AtY29sb3I6IzFDMkQ0NyIvPgo8L2xpbmVhckdyYWRpZW50Pgo8cGF0aCBjbGFzcz0ic3QwIiBkPSJNNTYuNiwyMi4xYzAtMi4yLTAuOS00LjMtMi40LTUuOGMtMS41LTEuNS0zLjYtMi40LTUuOC0yLjRjLTguNywwLTI0LjEsMC0zMi44LDBjLTIuMiwwLTQuMywwLjktNS44LDIuNAoJcy0yLjQsMy42LTIuNCw1LjhjMCw1LjcsMCwxNCwwLDE5LjdjMCwyLjIsMC45LDQuMywyLjQsNS44czMuNiwyLjQsNS44LDIuNGM4LjcsMCwyNC4xLDAsMzIuOCwwYzIuMiwwLDQuMy0wLjksNS44LTIuNAoJYzEuNS0xLjUsMi40LTMuNiwyLjQtNS44QzU2LjYsMzYuMSw1Ni42LDI3LjksNTYuNiwyMi4xeiBNMTMsMjEuOGMwLDAsOC40LDYuOSwxMy44LDExLjNjMywyLjUsNy40LDIuNSwxMC40LDAKCUM0Mi41LDI4LjgsNTEsMjEuNyw1MSwyMS43YzAuNy0wLjYsMC44LTEuNiwwLjItMi4zYy0wLjYtMC43LTEuNi0wLjgtMi4zLTAuMmMwLDAtOC40LDctMTMuOCwxMS40Yy0xLjgsMS41LTQuNSwxLjUtNi4zLDAKCUwxNS4xLDE5LjNjLTAuNy0wLjYtMS43LTAuNS0yLjMsMC4yQzEyLjMsMjAuMiwxMi4zLDIxLjIsMTMsMjEuOEwxMywyMS44eiIvPgo8ZyBpZD0iSWNvbiI+CjwvZz4KPC9zdmc+Cg==',w:64,h:64,u:'mailto:?subject=%t&body=%u',u_site:'https://lire-et-ecrire.be'}, 11774{a:'facebook',n:'Facebook',i:'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNjQgNjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDY0IDY0OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6I0ZGRkZGRjt9Cgkuc3Qxe2ZpbGw6IzNBNTU5Rjt9Cjwvc3R5bGU+CjxnPgoJPGNpcmNsZSBjbGFzcz0ic3QwIiBjeD0iMzIiIGN5PSIzMiIgcj0iMjQuMSIvPgoJPGc+CgkJPHJlY3QgeT0iMCIgY2xhc3M9InN0MSIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0Ii8+Cgk8L2c+Cgk8Zz4KCQk8cGF0aCBjbGFzcz0ic3QwIiBkPSJNMzkuOSwzMy4xaC01LjJjMCw4LjQsMCwxOC42LDAsMTguNmgtNy42YzAsMCwwLTEwLjIsMC0xOC42aC0zLjZ2LTYuNmgzLjZ2LTQuM2MwLTMsMS4yLTcuNiw3LjYtNy42aDUuOHY2LjQKCQkJYzAsMC0zLjQsMC00LjEsMGMtMC42LDAtMS41LDAuMi0xLjUsMnYzLjhoNS41TDM5LjksMzMuMXoiLz4KCTwvZz4KPC9nPgo8L3N2Zz4K',w:0,h:0,u:'https://www.facebook.com/sharer/sharer.php?u=%u&t=%t',u_site:'https://lire-et-ecrire.be'}, 11775{a:'linkedin',n:'LinkedIn',i:'data:image/svg+xml;base64,PHN2ZyB2ZXJzaW9uPSIxLjEiICB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIKCSB2aWV3Qm94PSIwIDAgNj
11775QgNjQiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDY0IDY0OyIgeG1sOnNwYWNlPSJwcmVzZXJ2ZSI+CjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+Cgkuc3Qwe2ZpbGw6IzExN0JCODt9Cgkuc3Qxe2ZpbGw6I0ZGRkZGRjt9Cjwvc3R5bGU+CjxnIGlkPSJYTUxJRF8xNDMzXyI+Cgk8cmVjdCBpZD0iWE1MSURfMTQzOV8iIHk9IjAiIGNsYXNzPSJzdDAiIHdpZHRoPSI2NCIgaGVpZ2h0PSI2NCIvPgoJPGcgaWQ9IlhNTElEXzE0MzRfIj4KCQk8ZyBpZD0iWE1MSURfMTQzNl8iPgoJCQk8cmVjdCBpZD0iWE1MSURfMTQzOF8iIHg9IjE3LjUiIHk9IjI0LjciIGNsYXNzPSJzdDEiIHdpZHRoPSI2LjciIGhlaWdodD0iMjEuNCIvPgoJCQk8ZWxsaXBzZSBpZD0iWE1MSURfMTQzN18iIGNsYXNzPSJzdDEiIGN4PSIyMC45IiBjeT0iMTguMiIgcng9IjMuOCIgcnk9IjMuOCIvPgoJCTwvZz4KCQk8cGF0aCBpZD0iWE1MSURfMTQzNV8iIGNsYXNzPSJzdDEiIGQ9Ik0zNC44LDM0LjljMC0yLjksMS4zLTQuNyw0LjEtNC43YzIuNiwwLDMuNiwxLjksMy42LDQuN3MwLDExLjEsMCwxMS4xaDYuNwoJCQljMCwwLDAtNy43LDAtMTMuN3MtMy4yLTguNi03LjctOC42cy02LjQsMy42LTYuNCwzLjZ2LTIuOWgtNi40djIxLjRoNi40QzM0LjgsNDYuMywzNC44LDM4LjQsMzQuOCwzNC45eiIvPgoJPC9nPgo8L2c+Cjwvc3ZnPgo=',w:0,h:0,u:'https://www.linkedin.com/shareArticle?mini=true&url=%u&title=%t&source=%u_site&summary=%d',u_site:'https://lire-et-ecrire.be'} 11776]; 11777var title=$('head > title').text()||''; 11778var description=($('meta[name=description]').attr('content')||'').substr(0,250); 11779var cano=$('link[rel=canonical]')[0]; 11780var url=cano?cano.href:document.location.href.split("%23")[0].split("#")[0]; 11781var ul=$('<ul><\/ul>'); 11782var esc=function(x){return encodeURIComponent(x).replace(/\s/g,' ');}; 11783var ref=document.referrer.match(/^.*\/\/([^\/]+)\//); 11784if(ref&&ref[1].match(/\.facebook\./)) 11785Cookies.set('social_facebook',1,{path:'/',expires:30}); 11786$.each(socialtags,function(){if(this.u){ 11787if(this.a=='bookmark'&&!document.all)return; 11788$('<a rel="nofollow"><img class="socialtags-hovers" src="'+this.i+'" width="'+this.w+'" height="'+this.h+'" alt="'+this.a+'"\/><\/a>') 11789.attr('href', 11790this.u 11791.replace(/%u/g,esc(url)) 11792.replace(/%t/g,esc(title)) 11793.replace(/%d/g,esc(description)) 11794.replace(/%u_site/g,esc(this.u_site)) 11795) 11796.attr('title',this.n).wrap('<li class="'+this.a+'"><\/li>') 11797.parent().appendTo(ul); 11798}}); 11799selector.after(ul.wrap('<div class="socialtags"><\/div>').parent()); 11800}; 11801$(function(){ 11802$(socialtags_init); 11803}); 11804})(jQuery); 11805 11806 11807/* plugins/auto/blocsdepliables/v1.4.2/js/blocs.js?1750406074 */ 11808 11809if(typeof(bloc_actif)=='undefined')var bloc_actif=''; 11810if(typeof(bloc_actif_num)=='undefined')var bloc_actif_num=''; 11811jQuery.fn.blocs_toggle_slide_dist=function(selector){ 11812this.toggleClass('blocs_slide'); 11813if(typeof jQuery.fn.blocs_toggle_slide=='function') 11814return this.blocs_toggle_slide(); 11815return this.is(".blocs_slide")?this.slideUp(blocs_slide):this.slideDown(blocs_slide); 11816}; 11817jQuery.fn.blocs_set_title=function(selector){ 11818var title=this.parent().find('.blocs_title:last').text(); 11819if(!title)title=blocs_title_def; 11820title=title.split(blocs_title_sep); 11821this.children('a').attr('title',title[jQuery(this).is('.blocs_replie')?0:1]); 11822return this; 11823}; 11824jQuery.fn.blocs_toggle=function(){ 11825if(!this.length)return this; 11826var cible=this.is('.cs_blocs')?this.children('.blocs_titre').eq(0):this; 11827cible.toggleClass('blocs_replie').blocs_set_title(); 11828var dest=this[0].id.match('^cs_bloc_id_')?jQuery('div.'+this[0].id):cible.next(); 11829if(blocs_slide==='aucun'){ 11830dest.toggleClass('blocs_invisible'); 11831if(dest.is('div.blocs_resume'))dest.next().toggleClass('blocs_invisible'); 11832}else{ 11833dest.blocs_toggle_slide_dist(); 11834if(dest.is('div.blocs_resume'))dest.next().blocs_toggle_slide_dist(); 11835} 11836var lien=cible.children(); 11837var url=lien.attr("href"); 11838if(!url.includes('#_bloc_non_ajax')){ 11839lien.attr("href",'javascript:;').addClass('ouvrir_fermer'); 11840cible.parent().children(".blocs_destination") 11841.load(url); 11842} 11843return this; 11844}; 11845jQuery.fn.blocs_replie_tout=function(){ 11846if(blocs_replier_tout){ 11847var cible=this.is('.cs_blocs')?this:this.parents('div.cs_blocs'); 11848var lignee=cible.children('.blocs_titre'); 11849jQuery('.blocs_titre').not('.blocs_replie').not(lignee).blocs_toggle(); 11850} 11851return this; 11852} 11853var blocs_clic_ajax=null; 11854function blocs_init(){ 11855jQuery('.blocs_titre',this).cs_todo() 11856.each(function(){ 11857jQuery(this).blocs_set_title() 11858.find('a.ouvrir_fermer') 11859.on('click',function(){ 11860jQuery(this).parent().blocs_replie_tout().blocs_toggle(); 11861return false;
11862}); 11863}); 11864jQuery('.blocs_destination a.replier_bloc',this).cs_todo() 11865.click(function(){ 11866s=jQuery(this).parents('.cs_blocs:first'); 11867if(typeof jQuery.fn.scrollTo=="function")jQuery('body').scrollTo(s,500, 11868{margin:true,onAfter:function(){s.blocs_replie_tout().blocs_toggle();}}); 11869else s.blocs_replie_tout().blocs_toggle(); 11870return false; 11871}); 11872var blocs=blocs_get_blocs(window.location,true); 11873if(blocs&&(this==document))blocs_clic_blocs(blocs,true); 11874blocs=blocs_get_blocs(window.location); 11875if(blocs&&(this==document))blocs_clic_blocs(blocs); 11876jQuery('.spip_note['+cs_sel_jQuery+'name^=nb], .spip_note['+cs_sel_jQuery+'id^=nb]').each(function(i){ 11877jQuery(this).click(function(e){ 11878var href=this.href.substring(this.href.lastIndexOf("#")); 11879href=jQuery(href).parents('.cs_blocs').eq(0).children('.blocs_titre').eq(0); 11880old_blocs_slide=blocs_slide; 11881if(blocs_slide!='aucun')blocs_slide=-1; 11882if(href.is('.blocs_replie'))href.click(); 11883blocs_slide=old_blocs_slide; 11884return true; 11885}); 11886}); 11887} 11888var valStyle=document.createElement('style'); 11889var valCss='div.blocs_invisible { display:none; }'; 11890var valHead=document.head||document.getElementsByTagName('head')[0]; 11891valHead.appendChild(valStyle); 11892valStyle.type='text/css'; 11893valStyle.appendChild(document.createTextNode(valCss)); 11894function cs_blocs_cookie(){ 11895if(typeof jQuery.cookie!='function')return; 11896var blocs_cookie_name='blocs'+window.location.pathname+window.location.search 11897blocs_cookie_name=blocs_cookie_name.replace(/[ ;,=]/,'_'); 11898var deplies=jQuery.cookie(blocs_cookie_name); 11899jQuery.cookie(blocs_cookie_name,null); 11900if(deplies) 11901jQuery(deplies).blocs_replie_tout().blocs_toggle(); 11902jQuery(window).on('unload',function(){ 11903jQuery.cookie(blocs_cookie_name,blocs_deplies()); 11904}); 11905} 11906function blocs_deplies(){ 11907var deplies=''; 11908jQuery('.cs_blocs').each(function(){ 11909var numero=/cs_bloc\d+/.exec(this.className); 11910if(numero==null)return; 11911replie=jQuery(this).children('.blocs_titre').eq(0).is('.blocs_replie'); 11912if(!replie)deplies+=(deplies.length?', ':'')+'div.'+numero[0]; 11913}); 11914return deplies.length?deplies:null; 11915} 11916function blocs_clic_blocs(liste,numerote){ 11917var blocs=liste.split(','); 11918for(var i=0;i<blocs.length;i++) 11919(numerote) 11920?jQuery('div.cs_bloc'+blocs[i]+' .blocs_titre').eq(0).click() 11921:jQuery('div.cs_blocs .blocs_titre').eq(blocs[i]).click(); 11922} 11923function blocs_get_blocs(url,numerote){ 11924tab=numerote 11925?url.search.match(/[?&]deplier_num=([0-9,]*)/)||url.hash.match(/#deplier_num([0-9,]*)/) 11926:url.search.match(/[?&]deplier=([0-9,]*)/)||url.hash.match(/#deplier([0-9,]*)/); 11927return tab==null?(numerote?bloc_actif_num:bloc_actif):tab[1]; 11928} 11929function blocs_get_pagination(url){ 11930tab=url.match(/#pagination([0-9]+)/); 11931return tab==null?bloc_actif:tab[1]; 11932} 11933var blocs_pagination=blocs_get_pagination(window.location.hash); 11934jQuery.fn.cs_todo=function(){ 11935return this.not('.cs_done').addClass('cs_done'); 11936}; 11937var cs_sel_jQuery=''; 11938jQuery(function($){ 11939blocs_init.apply(document); 11940if(typeof onAjaxLoad=='function')onAjaxLoad(blocs_init); 11941if(blocs_js_cookie&&$('div.cs_blocs').length)$.getScript(blocs_js_cookie,cs_blocs_cookie); 11942var ancre=location.hash.substring(1); 11943if(ancre){ 11944$('.cs_blocs').has('[name="'+ancre+'"]') 11945.find('.blocs_titre.blocs_replie').blocs_toggle(); 11946$('.cs_blocs').has('#'+ancre) 11947.find('.blocs_titre.blocs_replie').blocs_toggle(); 11948location=location; 11949} 11950}); 11951 11952 11953/* squelettes/js/responsive-nav.js */ 11954 11955(function(document,window,index){ 11956"use strict"; 11957var responsiveNav=function(el,options){ 11958var computed=!!window.getComputedStyle; 11959if(!computed){ 11960window.getComputedStyle=function(el){ 11961this.el=el; 11962this.getPropertyValue=function(prop){ 11963var re=/(\-([a-z]){1})/g; 11964if(prop==="float"){ 11965prop="styleFloat"; 11966} 11967if(re.test(prop)){ 11968prop=prop.replace(re,function(){ 11969return arguments[2].toUpperCase(); 11970}); 11971} 11972return el.currentStyle[prop]?el.currentStyle[prop]:null; 11973}; 11974return this; 11975}; 11976} 11977var addEvent=function(el,evt,fn,bubble){ 11978if("addEventListener"in el){ 11979try{ 11980el.addEventListener(evt,fn,bubble); 11981}catch(e){ 11982if(typeof fn==="object"&&fn.handleEvent){ 11983el.addEventListener(evt,function(e){ 11984fn.handleEvent.call(fn,e); 11985},bubble); 11986}else{ 11987throw e; 11988} 11989} 11990}else if("attachEvent"in el){ 11991if(typeof fn==="object"&&fn.handleEvent){ 11992el.attachEvent("on"+evt,function(){ 11993fn.handleEvent.call(fn); 11994}); 11995}else{ 11996el.attachEvent("on"+evt,fn); 11997} 11998} 11999}, 12000removeEvent=function(el,evt,fn,bubble){ 12001if("removeEventListener"in el){ 12002try{ 12003el.removeEventListener(evt,fn,bubble); 12004}catch(e){ 12005if(typeof fn==="object"&&fn.handleEvent){ 12006el.removeEventListener(evt,function(e){ 12007fn.handleEvent.call(fn,e); 12008},bubble); 12009}else{ 12010throw e; 12011} 12012} 12013}else if("detachEvent"in el){ 12014if(typeof fn==="object"&&fn.handleEvent){ 12015el.detachEvent("on"+evt,function(){ 12016fn.handleEvent.call(fn); 12017}); 12018}else{ 12019el.detachEvent("on"+evt,fn); 12020} 12021} 12022}, 12023getChildren=function(e){ 12024if(e.children.length<1){ 12025throw new Error("The Nav container has no containing elements"); 12026} 12027var children=[]; 12028for(var i=0;i<e.children.length;i++){ 12029if(e.children[i].nodeType===1){ 12030children.push(e.children[i]); 12031} 12032} 12033return children; 12034}, 12035setAttributes=function(el,attrs){ 12036for(var key in attrs){ 12037el.setAttribute(key,attrs[key]); 12038} 12039}, 12040addClass=function(el,cls){ 12041if(el.className.indexOf(cls)!==0){ 12042el.className+=" "+cls; 12043el.className=el.className.replace(/(^\s*)|(\s*$)/g,""); 12044} 12045}, 12046removeClass=function(el,cls){ 12047var reg=new RegExp("(\\s|^)"+cls+"(\\s|$)"); 12048el.className=el.className.replace(reg," ").replace(/(^\s*)|(\s*$)/g,""); 12049}, 12050forEach=function(array,callback,scope){ 12051for(var i=0;i<array.length;i++){ 12052callback.call(scope,i,array[i]); 12053} 12054}; 12055var nav, 12056opts, 12057navToggle, 12058styleElement=document.createElement("style"), 12059htmlEl=document.documentElement, 12060hasAnimFinished, 12061isMobile, 12062navOpen; 12063var ResponsiveNav=function(el,options){ 12064var i; 12065this.options={ 12066animate:true, 12067transition:284, 12068label:"Menu", 12069insert:"before", 12070customToggle:"", 12071closeOnNavClick:false, 12072openPos:"relative", 12073navClass:"nav-collapse", 12074navActiveClass:"js-nav-active", 12075jsClass:"js", 12076init:function(){}, 12077open:function(){},
12078close:function(){} 12079}; 12080for(i in options){ 12081this.options[i]=options[i]; 12082} 12083addClass(htmlEl,this.options.jsClass); 12084this.wrapperEl=el.replace("#",""); 12085if(document.getElementById(this.wrapperEl)){ 12086this.wrapper=document.getElementById(this.wrapperEl); 12087}else if(document.querySelector(this.wrapperEl)){ 12088this.wrapper=document.querySelector(this.wrapperEl); 12089}else{ 12090throw new Error("The nav element you are trying to select doesn't exist"); 12091} 12092this.wrapper.inner=getChildren(this.wrapper); 12093opts=this.options; 12094nav=this.wrapper; 12095this._init(this); 12096}; 12097ResponsiveNav.prototype={ 12098destroy:function(){ 12099this._removeStyles(); 12100removeClass(nav,"closed"); 12101removeClass(nav,"opened"); 12102removeClass(nav,opts.navClass); 12103removeClass(nav,opts.navClass+"-"+this.index); 12104removeClass(htmlEl,opts.navActiveClass); 12105nav.removeAttribute("style"); 12106nav.removeAttribute("aria-hidden"); 12107removeEvent(window,"resize",this,false); 12108removeEvent(document.body,"touchmove",this,false); 12109removeEvent(navToggle,"touchstart",this,false); 12110removeEvent(navToggle,"touchend",this,false); 12111removeEvent(navToggle,"mouseup",this,false); 12112removeEvent(navToggle,"keyup",this,false); 12113removeEvent(navToggle,"click",this,false); 12114if(!opts.customToggle){ 12115navToggle.parentNode.removeChild(navToggle); 12116}else{ 12117navToggle.removeAttribute("aria-hidden"); 12118} 12119}, 12120toggle:function(){ 12121if(hasAnimFinished===true){ 12122if(!navOpen){ 12123this.open(); 12124}else{ 12125this.close(); 12126} 12127} 12128}, 12129open:function(){ 12130if(!navOpen){ 12131removeClass(nav,"closed"); 12132addClass(nav,"opened"); 12133addClass(htmlEl,opts.navActiveClass); 12134addClass(navToggle,"active"); 12135nav.style.position=opts.openPos; 12136setAttributes(nav,{"aria-hidden":"false"}); 12137navOpen=true; 12138opts.open(); 12139} 12140}, 12141close:function(){ 12142if(navOpen){ 12143addClass(nav,"closed"); 12144removeClass(nav,"opened"); 12145removeClass(htmlEl,opts.navActiveClass); 12146removeClass(navToggle,"active"); 12147setAttributes(nav,{"aria-hidden":"true"}); 12148if(opts.animate){ 12149hasAnimFinished=false; 12150setTimeout(function(){ 12151nav.style.position="absolute"; 12152hasAnimFinished=true; 12153},opts.transition+10); 12154}else{ 12155nav.style.position="absolute"; 12156} 12157navOpen=false; 12158opts.close(); 12159} 12160}, 12161resize:function(){ 12162if(window.getComputedStyle(navToggle,null).getPropertyValue("display")!=="none"){ 12163isMobile=true; 12164setAttributes(navToggle,{"aria-hidden":"false"}); 12165if(nav.className.match(/(^|\s)closed(\s|$)/)){ 12166setAttributes(nav,{"aria-hidden":"true"}); 12167nav.style.position="absolute"; 12168} 12169this._createStyles(); 12170this._calcHeight(); 12171}else{ 12172isMobile=false; 12173setAttributes(navToggle,{"aria-hidden":"true"}); 12174setAttributes(nav,{"aria-hidden":"false"}); 12175nav.style.position=opts.openPos; 12176this._removeStyles(); 12177} 12178}, 12179handleEvent:function(e){ 12180var evt=e||window.event; 12181switch(evt.type){ 12182case"touchstart": 12183this._onTouchStart(evt); 12184break; 12185case"touchmove": 12186this._onTouchMove(evt); 12187break; 12188case"touchend": 12189case"mouseup": 12190this._onTouchEnd(evt); 12191break; 12192case"click": 12193this._preventDefault(evt); 12194break; 12195case"keyup": 12196this._onKeyUp(evt); 12197break; 12198case"resize": 12199this.resize(evt); 12200break; 12201} 12202}, 12203_init:function(){ 12204this.index=index++; 12205addClass(nav,opts.navClass); 12206addClass(nav,opts.navClass+"-"+this.index); 12207addClass(nav,"closed"); 12208hasAnimFinished=true; 12209navOpen=false; 12210this._closeOnNavClick(); 12211this._createToggle(); 12212this._transitions(); 12213this.resize(); 12214var self=this; 12215setTimeout(function(){ 12216self.resize(); 12217},20); 12218addEvent(window,"resize",this,false); 12219addEvent(document.body,"touchmove",this,false); 12220addEvent(navToggle,"touchstart",this,false); 12221addEvent(navToggle,"touchend",this,false); 12222addEvent(navToggle,"mouseup",this,false); 12223addEvent(navToggle,"keyup",this,false); 12224addEvent(navToggle,"click",this,false); 12225opts.init(); 12226}, 12227_createStyles:function(){ 12228if(!styleElement.parentNode){ 12229styleElement.type="text/css"; 12230document.getElementsByTagName("head")[0].appendChild(styleElement); 12231} 12232}, 12233_removeStyles:function(){ 12234if(styleElement.parentNode){ 12235styleElement.parentNode.removeChild(styleElement); 12236} 12237}, 12238_createToggle:function(){ 12239if(!opts.customToggle){ 12240var toggle=document.createElement("a"); 12241toggle.innerHTML=opts.label; 12242setAttributes(toggle,{ 12243"href":"#", 12244"class":"nav-toggle" 12245}); 12246if(opts.insert==="after"){ 12247nav.parentNode.insertBefore(toggle,nav.nextSibling); 12248}else{ 12249nav.parentNode.insertBefore(toggle,nav); 12250} 12251navToggle=toggle; 12252}else{ 12253var toggleEl=opts.customToggle.replace("#",""); 12254if(document.getElementById(toggleEl)){ 12255navToggle=document.getElementById(toggleEl); 12256}else if(document.querySelector(toggleEl)){ 12257navToggle=document.querySelector(toggleEl); 12258}else{ 12259throw new Error("The custom nav toggle you are trying to select doesn't exist"); 12260} 12261} 12262}, 12263_closeOnNavClick:function(){ 12264if(opts.closeOnNavClick&&"querySelectorAll"in document){ 12265var links=nav.querySelectorAll("a"), 12266self=this; 12267forEach(links,function(i,el){ 12268addEvent(links[i],"click",function(){ 12269if(isMobile){
12270self.toggle(); 12271} 12272},false); 12273}); 12274} 12275}, 12276_preventDefault:function(e){ 12277if(e.preventDefault){ 12278e.preventDefault(); 12279e.stopPropagation(); 12280}else{ 12281e.returnValue=false; 12282} 12283}, 12284_onTouchStart:function(e){ 12285e.stopPropagation(); 12286if(opts.insert==="after"){ 12287addClass(document.body,"disable-pointer-events"); 12288} 12289this.startX=e.touches[0].clientX; 12290this.startY=e.touches[0].clientY; 12291this.touchHasMoved=false; 12292removeEvent(navToggle,"mouseup",this,false); 12293}, 12294_onTouchMove:function(e){ 12295if(Math.abs(e.touches[0].clientX-this.startX)>10|| 12296Math.abs(e.touches[0].clientY-this.startY)>10){ 12297this.touchHasMoved=true; 12298} 12299}, 12300_onTouchEnd:function(e){ 12301this._preventDefault(e); 12302if(!this.touchHasMoved){ 12303if(e.type==="touchend"){ 12304this.toggle(); 12305if(opts.insert==="after"){ 12306setTimeout(function(){ 12307removeClass(document.body,"disable-pointer-events"); 12308},opts.transition+300); 12309} 12310return; 12311}else{ 12312var evt=e||window.event; 12313if(!(evt.which===3||evt.button===2)){ 12314this.toggle(); 12315} 12316} 12317} 12318}, 12319_onKeyUp:function(e){ 12320var evt=e||window.event; 12321if(evt.keyCode===13){ 12322this.toggle(); 12323} 12324}, 12325_transitions:function(){ 12326if(opts.animate){ 12327var objStyle=nav.style, 12328transition="max-height "+opts.transition+"ms"; 12329objStyle.WebkitTransition=transition; 12330objStyle.MozTransition=transition; 12331objStyle.OTransition=transition; 12332objStyle.transition=transition; 12333} 12334}, 12335_calcHeight:function(){ 12336var savedHeight=0; 12337for(var i=0;i<nav.inner.length;i++){ 12338savedHeight+=nav.inner[i].offsetHeight; 12339} 12340var innerStyles="."+opts.jsClass+" ."+opts.navClass+"-"+this.index+".opened{max-height:"+savedHeight+"px !important}"; 12341if(styleElement.styleSheet){ 12342styleElement.styleSheet.cssText=innerStyles; 12343}else{ 12344styleElement.innerHTML=innerStyles; 12345} 12346innerStyles=""; 12347} 12348}; 12349return new ResponsiveNav(el,options); 12350}; 12351window.responsiveNav=responsiveNav; 12352}(document,window,0)); 12353 12354 12355/* squelettes/js/lee.js */ 12356$(document).ready(function(){ 12357$('.lee_preference_radio1 input').change(function(){ 12358var lee_preference_radio=$(this).val(); 12359var lee_preference_radio_desac=$('.lee_preference_radio2 input[value='+lee_preference_radio+']'); 12360$('.lee_preference_radio2 input').attr('disabled',false); 12361$('.lee_preference_radio2 label').css({"color":"inherit"}); 12362$('.disabled.lee_preference_radio2 input').attr('disabled',true); 12363$('.disabled.lee_preference_radio2 input').next('label').css({"color":"#999"}); 12364lee_preference_radio_desac.attr('disabled',true); 12365lee_preference_radio_desac.prop('checked',false); 12366lee_preference_radio_desac.next('label').css({"color":"#999"}); 12367}); 12368}); 12369$(document).ready(function(){ 12370$('.lee_troischoix_radio1 input').change(function(){ 12371var choix_radio1=$(this).val(); 12372var choix_radio1_desac=$('.lee_troischoix_radio2 input[value='+choix_radio1+']'); 12373var tmpchoix_radio2_desac=$('.lee_troischoix_radio2 input:checked').val(); 12374var prechoix_radio2_desac=$('.lee_troischoix_radio3 input[value='+tmpchoix_radio2_desac+']'); 12375$('.lee_troischoix_radio2 input').attr('disabled',false); 12376$('.lee_troischoix_radio2 label').css({"color":"inherit"}); 12377$('.disabled.lee_troischoix_radio2 input').attr('disabled',true); 12378$('.disabled.lee_troischoix_radio2 input').next('label').css({"color":"#999"}); 12379choix_radio1_desac.attr('disabled',true); 12380choix_radio1_desac.prop('checked',false); 12381choix_radio1_desac.next('label').css({"color":"#999"}); 12382var choix_radio1_desac=$('.lee_troischoix_radio3 input[value='+choix_radio1+']'); 12383$('.lee_troischoix_radio3 input').attr('disabled',false); 12384$('.lee_troischoix_radio3 label').css({"color":"inherit"}); 12385$('.disabled.lee_troischoix_radio3 input').attr('disabled',true); 12386$('.disabled.lee_troischoix_radio3 input').next('label').css({"color":"#999"}); 12387choix_radio1_desac.attr('disabled',true); 12388choix_radio1_desac.prop('checked',false); 12389choix_radio1_desac.next('label').css({"color":"#999"}); 12390prechoix_radio2_desac.attr('disabled',true); 12391prechoix_radio2_desac.prop('checked',false); 12392prechoix_radio2_desac.next('label').css({"color":"#999"}); 12393}); 12394$('.lee_troischoix_radio2 input').change(function(){ 12395var choix_radio2=$(this).val(); 12396var choix_radio2_desac=$('.lee_troischoix_radio3 input[value='+choix_radio2+']'); 12397var tmpchoix_radio1_desac=$('.lee_troischoix_radio1 input:checked').val(); 12398var prechoix_radio1_desac=$('.lee_troischoix_radio3 input[value='+tmpchoix_radio1_desac+']');
12399$('.lee_troischoix_radio3 input').attr('disabled',false); 12400$('.lee_troischoix_radio3 label').css({"color":"inherit"}); 12401$('.disabled.lee_troischoix_radio3 input').attr('disabled',true); 12402$('.disabled.lee_troischoix_radio3 input').next('label').css({"color":"#999"}); 12403choix_radio2_desac.attr('disabled',true); 12404choix_radio2_desac.prop('checked',false); 12405choix_radio2_desac.next('label').css({"color":"#999"}); 12406prechoix_radio1_desac.attr('disabled',true); 12407prechoix_radio1_desac.prop('checked',false); 12408prechoix_radio1_desac.next('label').css({"color":"#999"}); 12409}); 12410}); 12411$(function(){ 12412var getTextNodesIn=function(el){ 12413return $(el).find(":not(iframe,script,aside)").addBack().contents().filter(function(){ 12414return this.nodeType==3; 12415}); 12416}; 12417var textNodes=getTextNodesIn($(".melange, .article14437 .date, .article-titre-14437, .article-soustitre-14437, .article14437 #content")); 12418function isLetter(char){ 12419return/^[\d]$/.test(char); 12420} 12421var wordsInTextNodes=[]; 12422for(var i=0;i<textNodes.length;i++){ 12423var node=textNodes[i]; 12424var words=[] 12425var re=/[A-Za-zÃ-ÿ0-9]+/g; 12426var match; 12427while((match=re.exec(node.nodeValue))!=null){ 12428var word=match[0]; 12429var position=match.index; 12430words.push({ 12431length:word.length, 12432position:position 12433}); 12434} 12435wordsInTextNodes[i]=words; 12436}; 12437function messUpWords(){ 12438for(var i=0;i<textNodes.length;i++){ 12439var node=textNodes[i]; 12440for(var j=0;j<wordsInTextNodes[i].length;j++){ 12441if(Math.random()>1/10){ 12442continue; 12443} 12444var wordMeta=wordsInTextNodes[i][j]; 12445var word=node.nodeValue.slice(wordMeta.position,wordMeta.position+wordMeta.length); 12446var before=node.nodeValue.slice(0,wordMeta.position); 12447var after=node.nodeValue.slice(wordMeta.position+wordMeta.length); 12448node.nodeValue=before+messUpWord(word)+after; 12449}; 12450}; 12451} 12452function messUpWord(word){ 12453if(word.length<3){ 12454return word; 12455} 12456return word[0]+messUpMessyPart(word.slice(1,-1))+word[word.length-1]; 12457} 12458function messUpMessyPart(messyPart){ 12459if(messyPart.length<2){ 12460return messyPart; 12461} 12462var a,b; 12463while(!(a<b)){ 12464a=getRandomInt(0,messyPart.length-1); 12465b=getRandomInt(0,messyPart.length-1); 12466} 12467return messyPart.slice(0,a)+messyPart[b]+messyPart.slice(a+1,b)+messyPart[a]+messyPart.slice(b+1); 12468} 12469function getRandomInt(min,max){ 12470return Math.floor(Math.random()*(max-min+1)+min); 12471} 12472setInterval(messUpWords,50); 12473}); 12474$(document).ready(function(){ 12475'use strict'; 12476var c,currentScrollTop=0, 12477navbar=$('nav#horizontal2023'), 12478y=navbar.offset().top; 12479$(window).scroll(function(){ 12480var a=$(window).scrollTop(); 12481var b=navbar.height(); 12482currentScrollTop=a; 12483if(c<(currentScrollTop)&&(a>b+b)||(a<=y)){ 12484navbar.removeClass("scrollup"); 12485}else if(c>(currentScrollTop)&&!(a<=b)&&(a>y)){ 12486navbar.addClass("scrollup"); 12487} 12488c=currentScrollTop; 12489}); 12490}); 12491 12492
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.