import{d as Ft,x as Nt,r as At,y as Lt,a7 as an,a as O,V as zt,A as Ne,F as Rt,C as at,q as ln,M as Dt,al as On,w as jn,z as nn,E as In,a5 as un,e as Bn,h as rn,a0 as Wn,Q as Hn}from"./index-b1c758e7.js";import{a as qn,b as zn,c as Rn,d as Xn,e as Vn,f as Un,g as Gn,h as Yn}from"./fade-in-scale-up.cssr-dba238b7.js";import{N as Kn,T as Zn}from"./index-5c7946cb.js";import{q as Jn}from"./base-aba1ba3e.js";import{g as ht,s as ge}from"./index-49d43d61.js";import{T as Qn,a as qt}from"./index-236e39f1.js";import{T as sn}from"./index-cac5fff9.js";import"./use-tab-status-d058920a.js";import"./index-e451fada.js";const $n="_container_15wwc_1",er="_head_15wwc_10",tr="_back_15wwc_18",nr="_tabs_15wwc_21",rr="_downBtn_15wwc_37",ir="_icon_15wwc_61",sr="_iconUp_15wwc_67",or="_popover_15wwc_72",ar="_content_15wwc_91",lr="_wrap_15wwc_97",ur="_emtpyWrap_15wwc_103",cr="_wrapItem_15wwc_114",fr="_item_15wwc_124",dr="_name_15wwc_155",hr="_favoriteBtn_15wwc_162",pr="_containerImg_15wwc_168",gr="_cover_15wwc_194",mr="_loaded_15wwc_224",vr="_book_15wwc_227",yr="_bookWrap_15wwc_241",wr="_show_15wwc_249",xr="_popupContainer_15wwc_254",br="_searchList_15wwc_260",Tr="_popoverTitle_15wwc_266",Ar="_popupList_15wwc_282",kr="_btnGroup_15wwc_303",Cr="_btnSure_15wwc_318",ue={container:$n,head:er,back:tr,tabs:nr,downBtn:rr,icon:ir,iconUp:sr,popover:or,content:ar,wrap:lr,emtpyWrap:ur,wrapItem:cr,item:fr,name:dr,favoriteBtn:hr,containerImg:pr,cover:gr,loaded:mr,book:vr,bookWrap:yr,show:wr,popupContainer:xr,searchList:br,popoverTitle:Tr,popupList:Ar,btnGroup:kr,btnSure:Cr},cn=""+new URL("icon_back-b80c2fc2.svg",import.meta.url).href,_r="_book_1xtvx_1",Nr="_back_1xtvx_11",Sr="_bookHide_1xtvx_16",Er="_wrap_1xtvx_36",Mr="_wrapItem_1xtvx_53",Pr="_item_1xtvx_60",Dr="_des_1xtvx_69",Fr="_icon_1xtvx_74",Lr="_last_1xtvx_79",qe={book:_r,back:Nr,bookHide:Sr,wrap:Er,wrapItem:Mr,item:Pr,des:Dr,icon:Fr,last:Lr},Or="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAAFDElEQVRYCcWZy24cRRSGT3XPxbHj+MIlwXLCJkJKkLJmzSICicfIhi0Pwg55k9dASF6AxAOwQAIhgRRkQpwQRMaZxjOeme7i/8+pmqtlVwMzLqlVl66u+uo/p0731DiZS/6s+754eYTmhyL+DsrX57r892obQzon0nkmUlUF5jnCoIcizcfujXd+mJ4AvSx571tyVnyO2qfifRbbl5K3NwCIKU5eiJSDyRTOVagcyM7+Z845vaGAAe4rgH046b3EUuuaSNYQOX0l0oeAC8l9Lbv7HxPSlKJyq4IjTFkaUgtKnpsg1KuntKa44HPfL92sMyAwnJoZefGXyODvmbtaobl940GmG2LZPrcwvZ/43saOSKO10MMEGz6iibFbryCNsAfKke3mzbdN0UWMh873X3eXEkoWJzu/pYkNk2PDMJVDmPtUhPAV/dQVzvdeQ+8rTjlMTDMzNs6lgD7XmlTFukZ9XEPx1UA8Vu0rlGG2CkpU2KllWUnlR8i9lJWXUVXJta1bcuOt27MzMBbyypsWfhgjA2w64M9firz8EdIT6gwvAEzqGlJlTSmlgXLTymgrxcoVy2zHpX2Rd4tiETDi0sS8plIiINT67Vu8kezJyuU6KQHsAgQgWfaA8Ch7vWftpfYnLPr4RTNO8SwUEwHDcxjbS6Yg40mpngAYbwYqWY3LOYC4kLgIgybkN0/gBhjpvd1cbm/Zu2KBLDSkA3oPVUy5aC6aNyrH3ANyUg/3CA0ohScs6s8LvnKxWF/+j4CAU6WQm/kAS7W0DhiFoGoRCPcIHKAM3u4HcZKyZAVpLvoXFYgKTnKCEsZAI5T2jSaP9/F8nXSxA0yNZGAThQyIZm2JW9sOgKauKQ3goGD0TbZzoXVS8nI4me5QNRkmUvM2ZOv+R9Lc2pM+Pj47v/8kvdPClEY/6xNVxe6Gz3KMGA1SQNMBaVoqgJybw8ydS7Z2Q+dZ296TW7hOOy/kz+MnMuz1gsnNT6m4PV9PwXQTB3PpBlFQbgKoIbNxbX37pty594G8uXcXiyDUrG+qginShT7JCkaTTmKbmXmObzx13myrv9mOByh8T1Vcjg+6MDjVMBNz09Cn5hXswwf/eP5UOt3uJCbyGaqpeT0TJyvICUwNvnttNzIOjgZ9yVvrctYr5OXxr9I5OVHTR19lHtWPz49lTijUADQwew/bjib08S/fSWN9Wwp8BNiHQVBZfS/ERy0HUCyqTkoHxMDxy8XMFXwKn1T9AuZE+Bj72XRflmlaQsIlqGidlNxbgy4m01eWmtvim4Yb1OMrzlwhqm1QsQ9dgs/XScm9LVzQfAYWYxpNHu9FECo53r1UEFf0Qy6gTkruHb9UxmCMi/wwBTBhDCCYE/W4EDUv6hGept5slfiSEXn3kk8tLiQZUFWCD2l4oYr0qRjbUGbIYZuBTvwxgkUX4InCJ3eT3w/4+kxMa7v7AAgbI4AZ1JRqhOSlChps3DhqZlUyWRMlq/2rzuPnYIWdWyIv8SMo/hjiacYQZsMt5E6GVYYfSZkMcA418DnacuQNubnh5N7O7O+OizSqDXjRYMu4l+Fdet7x0jLmqj8m2OCD7qj+k6t6wh1xkxyuarp/Mc/hFR2/JaDy+M3Jg8y1N3kmfJDwyKq7HJBNP4dXfgR82VIdjoDb1ydHwHpgjQYc2HyBy35VXzbIMu6rWcEQ4DjF7A8KNKzkb4jpxWmY00hyCJrHweXGPf4B6HyHtp8LqjYAAAAASUVORK5CYII=",jr=Ft({name:"courseware-detail",emits:["close"],setup(_,{emit:P}){const Y=Nt({box:{},show:!1,steps:[{ele:"",eleRect:{},img:ht("courseware-detail1.png"),handStyle:{top:"-0.4rem",left:"0.98rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.3rem",left:"2.2rem"},btnsStyle:{top:"1.5rem",left:"3.5rem"}}],step:0}),X=At(!1),me=localStorage.getItem("guideInfo");me&&JSON.parse(me).coursewareDetail?X.value=!1:X.value=!0;const V=()=>{console.log(`coursewareDetail-${Y.step}`);const K=document.getElementById(`coursewareDetail-${Y.step}`);if(K){const he=K.getBoundingClientRect();Y.box={left:he.x+"px",top:he.y+"px",width:he.width+"px",height:he.height+"px"}}else be()};Lt(()=>{V(),window.addEventListener("resize",xe)});const xe=()=>{V()};an(()=>{window.removeEventListener("resize",xe)});const be=()=>{if(Y.step>=2){ve();return}Y.step=Y.step+1,V()},ve=()=>{let K=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;K?K.coursewareDetail=!0:K={coursewareDetail:!0},localStorage.setItem("guideInfo",JSON.stringify(K)),X.value=!1};return()=>O(zt,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",ge.guidePopup],show:X.value,"onUpdate:show":K=>X.value=K},{default:()=>[O("div",{class:ge.content,onClick:()=>be()},[Y.step!=Y.steps.length-1&&O("div",{class:ge.backBtn,onClick:K=>{K.stopPropagation(),ve()}},[Ne("跳过")]),O("div",{class:ge.box,style:Y.box,id:`modeType-${Y.step}`},[Y.steps.map((K,he)=>{var Se,Me;return O("div",{onClick:Te=>Te.stopPropagation(),class:ge.item,style:{display:he===Y.step?"":"none",left:`${(Se=K.eleRect)==null?void 0:Se.left}px`,top:`${(Me=K.eleRect)==null?void 0:Me.top}px`}},[O("img",{class:ge.img,style:K.imgStyle,src:K.img},null),O("img",{class:ge.iconHead,style:K.handStyle,src:ht("indexDot.png")},null),O("div",{class:ge.btns,style:K.btnsStyle},[Y.step+1==Y.steps.length?O(Rt,null,[O(at,{class:[ge.btn,ge.endBtn],round:!0,type:"primary",onClick:()=>ve()},{default:()=>[Ne("完成")]})]):O(at,{class:ge.btn,round:!0,type:"primary",onClick:()=>be()},{default:()=>[Ne("下一步 ("),Y.step+1,Ne("/"),Y.steps.length,Ne(")")]})])])})])])]})}}),Ir=Ft({name:"the-book",props:{bookData:{type:Object,default:()=>({})},tab:{type:String,default:""},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(_,{emit:P}){var Te,De,R,U;ln(),console.log(Dt.user.data.phone);const Y="lastTime"+((U=(R=(De=(Te=Dt)==null?void 0:Te.user)==null?void 0:De.data)==null?void 0:R.phone)!=null?U:""),X=Nt({show:!1,width:0,height:0,transform:"",list:[],lastTime:localStorage.getItem(Y)}),me=At(!1),V=async()=>{console.log("初始化完成")};let xe=null,be=null;const ve=()=>{xe=window.$("#flipbook");const re=document.body.clientHeight*.8;X.height=re,X.width=re*(210/297)*2,xe.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:X.width,height:X.height,gradients:!0})},K=()=>{const re=document.querySelector(".bookWrap");if(re){const te=re.getBoundingClientRect(),D=_.rect.width/(te.width/2),$=_.rect.height/te.height,q=(te.width/2*(D-1)/2+_.rect.x-te.x-te.width/4)/D,ie=(te.height*($-1)/2+_.rect.y-te.y)/$,pe=`scale3d(${D}, ${$}, 1) translate(${q}px, ${ie}px)`;re.style.transform=X.transform=pe,re.style.transition="transform 0s",nn(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{re.style.transition="transform 1s",re.style.transform="",X.show=!0,be=setTimeout(()=>{xe.turn("page",2)},500),setTimeout(()=>{me.value=!0},1500)})})})}},he=()=>{clearTimeout(be);const re=document.querySelector(".bookWrap");xe.turn("page",1),re&&(re.style.transform=X.transform),P("close"),setTimeout(()=>{re.style.transition="",re.style.transform="",X.show=!1,X.list=[]},1e3)};Lt(async()=>{await V(),On("webViewOnResume",()=>{X.lastTime=localStorage.getItem(Y)})});const Se=()=>{var $;if(!(($=_.bookData)!=null&&$.lessonList))return;const re=Math.floor((document.body.clientHeight*.8-40)/50);console.log("🚀 ~ step:",re);const te=[];let D=[];for(let q=0;q<_.bookData.lessonList.length;q++){const ie=_.bookData.lessonList[q];D.length>=re?(te.push([...D]),D=[{name:ie.name}]):D.push({name:ie.name});for(let pe=0;pe=re?(te.push([...D]),D=[ie.knowledgeList[pe]]):D.push(ie.knowledgeList[pe])}D.length&&te.push(D),X.list=te};jn(()=>_.show,()=>{_.show&&(Se(),nn(()=>{ve(),requestAnimationFrame(()=>{K()})}))});const Me=re=>{if(re.id){if(!re.containMaterial){In("暂无资源");return}localStorage.setItem(Y,re.id);const te=Jn.stringify({id:re.id,lessonCoursewareId:re.lessonCoursewareId,lessonCoursewareDetailId:re.lessonCoursewareDetailId,name:re.name,tab:_.tab}),D=location.origin+location.pathname+"#/courseware-play?"+te;console.log("🚀 ~ url:",D),un({api:"openWebView",content:{url:D,orientation:0,isHideTitle:!1}})}};return()=>O("div",{class:[qe.book,X.show?"":qe.bookHide]},[O("div",{class:qe.back,onClick:he},[O("img",{src:cn},null)]),O("div",{class:"bookWrap",style:{width:X.width+"px"}},[!!X.list.length&&O("div",{id:"flipbook",class:[X.show&&"animated"]},[O("div",{class:"page"},[O("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:_.bookData.coverImg},null)]),X.list.map(re=>O("div",{class:"page"},[O("div",{class:qe.wrap},[O("div",{class:qe.wrapItem},[re.map((te,D)=>O(Rt,null,[O("div",{class:[qe.item,te.id&&qe.des],onTouchstart:$=>{$.stopPropagation()},onClick:$=>{$.stopPropagation(),Me(te)}},[te.id?O("img",{id:D==1?"coursewareDetail-0":"",class:qe.icon,src:Or},null):null,O("div",{class:qe.name,style:{lineHeight:"20Px"}},[te.name,X.lastTime===te.id&&O("span",{class:qe.last},[Ne("上次观看")])])])]))])])])),X.list.length%2===1&&O("div",{class:"page",style:{pointerEvents:"none"}},[O("div",{class:qe.wrap},[O("div",{class:qe.wrapItem},null)])])])]),me.value?O(jr,null,null):null])}}),Br=Ft({name:"courseware-list",emits:["close"],setup(_,{emit:P}){const Y=Nt({box:{},show:!1,steps:[{ele:"",eleRect:{},img:ht("courseware-list1.png"),handStyle:{top:"1.5rem",left:"3.5rem",transform:"rotate(-90deg)"},imgStyle:{top:".7rem",left:"5rem"},btnsStyle:{top:"3.5rem",left:"6.2rem"},boxStyle:{},eleRectPadding:{left:-4,top:-4,width:-8,height:-8}},{ele:"",img:ht("courseware-list2.png"),handStyle:{top:"-.25rem",left:"1.38rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.2rem",left:"2.4rem"},btnsStyle:{top:"1.6rem",left:"3.6rem"},eleRectPadding:{left:4,top:4,width:8,height:8}},{ele:"",img:ht("courseware-list3.png"),handStyle:{bottom:"-2.1rem",left:"0.66rem"},imgStyle:{top:"1.1rem",left:"-2rem"},btnsStyle:{top:"4.2rem",left:"-0.5rem"},eleRectPadding:{left:4,top:4,width:8,height:8}},{ele:"",img:ht("courseware-list4.png"),handStyle:{top:".8rem",left:"1rem"},imgStyle:{top:"1.1rem",left:"-4.6rem"},btnsStyle:{top:"4rem",left:"-4.5rem","justify-content":"center",padding:0}}],step:0}),X=At(!1),me=localStorage.getItem("guideInfo");me&&JSON.parse(me).courseware?X.value=!1:X.value=!0;const V=()=>{var he,Se,Me,Te;const K=document.getElementById(`courseware-${Y.step}`);if(K){const De=K.getBoundingClientRect(),R=((he=Y.steps[Y.step].eleRectPadding)==null?void 0:he.left)||0,U=((Se=Y.steps[Y.step].eleRectPadding)==null?void 0:Se.top)||0,re=((Me=Y.steps[Y.step].eleRectPadding)==null?void 0:Me.width)||0,te=((Te=Y.steps[Y.step].eleRectPadding)==null?void 0:Te.height)||0;Y.box={left:De.x-R+"px",top:De.y-U+"px",width:De.width+re+"px",height:De.height+te+"px"}}else be()};Lt(()=>{V(),window.addEventListener("resize",xe)});const xe=()=>{V()};an(()=>{window.removeEventListener("resize",xe)});const be=()=>{if(Y.step>=3){ve();return}Y.step=Y.step+1,V()},ve=()=>{let K=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;K?K.courseware=!0:K={courseware:!0},localStorage.setItem("guideInfo",JSON.stringify(K)),X.value=!1};return()=>O(zt,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",ge.guidePopup],show:X.value,"onUpdate:show":K=>X.value=K},{default:()=>[O("div",{class:ge.content,onClick:()=>be()},[Y.step!=Y.steps.length-1&&O("div",{class:ge.backBtn,onClick:K=>{K.stopPropagation(),ve()}},[Ne("跳过")]),O("div",{class:ge.box,style:{...Y.box,...Y.steps[Y.step].boxStyle},id:`modeType-${Y.step}`},[Y.steps.map((K,he)=>{var Se,Me;return O("div",{onClick:Te=>Te.stopPropagation(),class:ge.item,style:{display:he===Y.step?"":"none",left:`${(Se=K.eleRect)==null?void 0:Se.left}px`,top:`${(Me=K.eleRect)==null?void 0:Me.top}px`}},[O("img",{class:ge.img,style:K.imgStyle,src:K.img},null),O("img",{class:ge.iconHead,style:K.handStyle,src:ht("indexDot.png")},null),O("div",{class:ge.btns,style:K.btnsStyle},[Y.step+1==Y.steps.length?O(Rt,null,[O(at,{class:[ge.btn],round:!0,type:"primary",onClick:()=>ve()},{default:()=>[Ne("完成")]}),O(at,{class:[ge.btn,ge.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{Y.step=0,V()}},{default:()=>[Ne("再看一遍")]})]):O(at,{class:ge.btn,round:!0,type:"primary",onClick:()=>be()},{default:()=>[Ne("下一步 ("),Y.step+1,Ne("/"),Y.steps.length,Ne(")")]})])])})])])]})}});/*! jQuery v1.7 jquery.com | jquery.org/license */(function(_,P){function Y(e){return t.isWindow(e)?e:e.nodeType===9?e.defaultView||e.parentWindow:!1}function X(e){if(!Wt[e]){var n=L.body,r=t("<"+e+">").appendTo(n),i=r.css("display");r.remove(),(i==="none"||i==="")&&(Ge||(Ge=L.createElement("iframe"),Ge.frameBorder=Ge.width=Ge.height=0),n.appendChild(Ge),(!Tt||!Ge.createElement)&&(Tt=(Ge.contentWindow||Ge.contentDocument).document,Tt.write((L.compatMode==="CSS1Compat"?"":"")+""),Tt.close()),r=Tt.createElement(e),Tt.body.appendChild(r),i=t.css(r,"display"),n.removeChild(Ge)),Wt[e]=i}return Wt[e]}function me(e,n){var r={};return t.each(en.concat.apply([],en.slice(0,n)),function(){r[this]=e}),r}function V(){Pt=P}function xe(){return setTimeout(V,0),Pt=t.now()}function be(){try{return new _.ActiveXObject("Microsoft.XMLHTTP")}catch(e){}}function ve(){try{return new _.XMLHttpRequest}catch(e){}}function K(e,n){e.dataFilter&&(n=e.dataFilter(n,e.dataType));var r=e.dataTypes,i={},a,l,c=r.length,f,m=r[0],w,v,y,T,N;for(a=1;a0?(r!=="border"&&t.each(a,function(){r||(i-=parseFloat(t.css(e,"padding"+this))||0),r==="margin"?i+=parseFloat(t.css(e,r+this))||0:i-=parseFloat(t.css(e,"border"+this+"Width"))||0}),i+"px"):(i=xt(e,n,n),(i<0||i==null)&&(i=e.style[n]||0),i=parseFloat(i)||0,r&&t.each(a,function(){i+=parseFloat(t.css(e,"padding"+this))||0,r!=="padding"&&(i+=parseFloat(t.css(e,"border"+this+"Width"))||0),r==="margin"&&(i+=parseFloat(t.css(e,r+this))||0)}),i+"px")}function U(e,n){n.src?t.ajax({url:n.src,async:!1,dataType:"script"}):t.globalEval((n.text||n.textContent||n.innerHTML||"").replace(tt,"/*$0*/")),n.parentNode&&n.parentNode.removeChild(n)}function re(e){var n=(e.nodeName||"").toLowerCase();n==="input"?te(e):n!=="script"&&typeof e.getElementsByTagName<"u"&&t.grep(e.getElementsByTagName("input"),te)}function te(e){(e.type==="checkbox"||e.type==="radio")&&(e.defaultChecked=e.checked)}function D(e){return typeof e.getElementsByTagName<"u"?e.getElementsByTagName("*"):typeof e.querySelectorAll<"u"?e.querySelectorAll("*"):[]}function $(e,n){var r;n.nodeType===1&&(n.clearAttributes&&n.clearAttributes(),n.mergeAttributes&&n.mergeAttributes(e),r=n.nodeName.toLowerCase(),r==="object"?n.outerHTML=e.outerHTML:r!=="input"||e.type!=="checkbox"&&e.type!=="radio"?r==="option"?n.selected=e.defaultSelected:(r==="input"||r==="textarea")&&(n.defaultValue=e.defaultValue):(e.checked&&(n.defaultChecked=n.checked=e.checked),n.value!==e.value&&(n.value=e.value)),n.removeAttribute(t.expando))}function q(e,n){if(n.nodeType===1&&t.hasData(e)){var r,i,a,l=t._data(e),c=t._data(n,l),f=l.events;if(f){delete c.handle,c.events={};for(r in f)for(i=0,a=f[r].length;i=0===r})}function Le(e){return!e||!e.parentNode||e.parentNode.nodeType===11}function lt(){return!0}function rt(){return!1}function pt(e,n,r){var i=n+"defer",a=n+"queue",l=n+"mark",c=t._data(e,i);c&&(r==="queue"||!t._data(e,a))&&(r==="mark"||!t._data(e,l))&&setTimeout(function(){!t._data(e,a)&&!t._data(e,l)&&(t.removeData(e,i,!0),c.fire())},0)}function Ye(e){for(var n in e)if(!(n==="data"&&t.isEmptyObject(e[n]))&&n!=="toJSON")return!1;return!0}function Be(e,n,r){if(r===P&&e.nodeType===1){var i="data-"+n.replace(W,"-$1").toLowerCase();if(r=e.getAttribute(i),typeof r=="string"){try{r=r==="true"?!0:r==="false"?!1:r==="null"?null:t.isNumeric(r)?parseFloat(r):A.test(r)?t.parseJSON(r):r}catch(a){}t.data(e,n,r)}else r=P}return r}function kt(e){var n=d[e]={},r,i;for(e=e.split(/\s+/),r=0,i=e.length;r)[^>]*$|#([\w\-]*)$)/,c=/\S/,f=/^\s+/,m=/\s+$/,w=/\d/,v=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,y=/^[\],:{}\s]*$/,T=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,N=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,F=/(?:^|:|,)(?:\s*\[)+/g,G=/(webkit)[ \/]([\w.]+)/,ee=/(opera)(?:.*version)?[ \/]([\w.]+)/,Q=/(msie) ([\w.]+)/,ke=/(mozilla)(?:.*? rv:([\w.]+))?/,Ce=/-([a-z]|[0-9])/ig,Z=/^-ms-/,u=function(h,E){return(E+"").toUpperCase()},p=s.userAgent,x,b,k,C=Object.prototype.toString,M=Object.prototype.hasOwnProperty,B=Array.prototype.push,j=Array.prototype.slice,z=String.prototype.trim,Pe=Array.prototype.indexOf,we={};return n.fn=n.prototype={constructor:n,init:function(h,E,I){var S,ne,se,ae;if(!h)return this;if(h.nodeType)return this.context=this[0]=h,this.length=1,this;if(h==="body"&&!E&&L.body)return this.context=L,this[0]=L.body,this.selector=h,this.length=1,this;if(typeof h=="string"){if(h.charAt(0)!=="<"||h.charAt(h.length-1)!==">"||h.length<3?S=l.exec(h):S=[null,h,null],S&&(S[1]||!E)){if(S[1])return E=E instanceof n?E[0]:E,ae=E?E.ownerDocument||E:L,se=v.exec(h),se?n.isPlainObject(E)?(h=[L.createElement(se[1])],n.fn.attr.call(h,E,!0)):h=[ae.createElement(se[1])]:(se=n.buildFragment([S[1]],[ae]),h=(se.cacheable?n.clone(se.fragment):se.fragment).childNodes),n.merge(this,h);if(ne=L.getElementById(S[2]),ne&&ne.parentNode){if(ne.id!==S[2])return I.find(h);this.length=1,this[0]=ne}return this.context=L,this.selector=h,this}return!E||E.jquery?(E||I).find(h):this.constructor(E).find(h)}return n.isFunction(h)?I.ready(h):(h.selector!==P&&(this.selector=h.selector,this.context=h.context),n.makeArray(h,this))},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return j.call(this,0)},get:function(h){return h==null?this.toArray():h<0?this[this.length+h]:this[h]},pushStack:function(h,E,I){var S=this.constructor();return n.isArray(h)?B.apply(S,h):n.merge(S,h),S.prevObject=this,S.context=this.context,E==="find"?S.selector=this.selector+(this.selector?" ":"")+I:E&&(S.selector=this.selector+"."+E+"("+I+")"),S},each:function(h,E){return n.each(this,h,E)},ready:function(h){return n.bindReady(),b.add(h),this},eq:function(h){return h===-1?this.slice(h):this.slice(h,+h+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(j.apply(this,arguments),"slice",j.call(arguments).join(","))},map:function(h){return this.pushStack(n.map(this,function(E,I){return h.call(E,I,E)}))},end:function(){return this.prevObject||this.constructor(null)},push:B,sort:[].sort,splice:[].splice},n.fn.init.prototype=n.fn,n.extend=n.fn.extend=function(){var h,E,I,S,ne,se,ae=arguments[0]||{},Fe=1,Re=arguments.length,Ht=!1;for(typeof ae=="boolean"&&(Ht=ae,ae=arguments[1]||{},Fe=2),typeof ae!="object"&&!n.isFunction(ae)&&(ae={}),Re===Fe&&(ae=this,--Fe);Fe0)return;b.fireWith(L,[n]),n.fn.trigger&&n(L).trigger("ready").unbind("ready")}},bindReady:function(){if(!b){if(b=n.Callbacks("once memory"),L.readyState==="complete")return setTimeout(n.ready,1);if(L.addEventListener)L.addEventListener("DOMContentLoaded",k,!1),_.addEventListener("load",n.ready,!1);else if(L.attachEvent){L.attachEvent("onreadystatechange",k),_.attachEvent("onload",n.ready);var h=!1;try{h=_.frameElement==null}catch(E){}L.documentElement.doScroll&&h&&e()}}},isFunction:function(h){return n.type(h)==="function"},isArray:Array.isArray||function(h){return n.type(h)==="array"},isWindow:function(h){return h&&typeof h=="object"&&"setInterval"in h},isNumeric:function(h){return h!=null&&w.test(h)&&!isNaN(h)},type:function(h){return h==null?String(h):we[C.call(h)]||"object"},isPlainObject:function(h){if(!h||n.type(h)!=="object"||h.nodeType||n.isWindow(h))return!1;try{if(h.constructor&&!M.call(h,"constructor")&&!M.call(h.constructor.prototype,"isPrototypeOf"))return!1}catch(I){return!1}var E;for(E in h);return E===P||M.call(h,E)},isEmptyObject:function(h){for(var E in h)return!1;return!0},error:function(h){throw h},parseJSON:function(h){if(typeof h!="string"||!h)return null;if(h=n.trim(h),_.JSON&&_.JSON.parse)return _.JSON.parse(h);if(y.test(h.replace(T,"@").replace(N,"]").replace(F,"")))return new Function("return "+h)();n.error("Invalid JSON: "+h)},parseXML:function(h){var E,I;try{_.DOMParser?(I=new DOMParser,E=I.parseFromString(h,"text/xml")):(E=new ActiveXObject("Microsoft.XMLDOM"),E.async="false",E.loadXML(h))}catch(S){E=P}return(!E||!E.documentElement||E.getElementsByTagName("parsererror").length)&&n.error("Invalid XML: "+h),E},noop:function(){},globalEval:function(h){h&&c.test(h)&&(_.execScript||function(E){_.eval.call(_,E)})(h)},camelCase:function(h){return h.replace(Z,"ms-").replace(Ce,u)},nodeName:function(h,E){return h.nodeName&&h.nodeName.toUpperCase()===E.toUpperCase()},each:function(h,E,I){var S,ne=0,se=h.length,ae=se===P||n.isFunction(h);if(I)if(ae){for(S in h)if(E.apply(h[S],I)===!1)break}else for(;ne0&&h[0]&&h[Fe-1]||Fe===0||n.isArray(h));if(Re)for(;ae1?g.call(arguments,0):y,m.notifyWith(w,c)}}function r(v){return function(y){i[v]=arguments.length>1?g.call(arguments,0):y,--f||m.resolveWith(m,i)}}var i=g.call(arguments,0),a=0,l=i.length,c=Array(l),f=l,m=l<=1&&e&&t.isFunction(e.promise)?e:t.Deferred(),w=m.promise();if(l>1){for(;a
a",r=e.getElementsByTagName("*"),i=e.getElementsByTagName("a")[0],!r||!r.length||!i)return{};a=L.createElement("select"),l=a.appendChild(L.createElement("option")),c=e.getElementsByTagName("input")[0],m={leadingWhitespace:e.firstChild.nodeType===3,tbody:!e.getElementsByTagName("tbody").length,htmlSerialize:!!e.getElementsByTagName("link").length,style:/top/.test(i.getAttribute("style")),hrefNormalized:i.getAttribute("href")==="/a",opacity:/^0.55/.test(i.style.opacity),cssFloat:!!i.style.cssFloat,unknownElems:!!e.getElementsByTagName("nav").length,checkOn:c.value==="on",optSelected:l.selected,getSetAttribute:e.className!=="t",enctype:!!L.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},c.checked=!0,m.noCloneChecked=c.cloneNode(!0).checked,a.disabled=!0,m.optDisabled=!l.disabled;try{delete e.test}catch(ke){m.deleteExpando=!1}!e.addEventListener&&e.attachEvent&&e.fireEvent&&(e.attachEvent("onclick",function(){m.noCloneEvent=!1}),e.cloneNode(!0).fireEvent("onclick")),c=L.createElement("input"),c.value="t",c.setAttribute("type","radio"),m.radioValue=c.value==="t",c.setAttribute("checked","checked"),e.appendChild(c),w=L.createDocumentFragment(),w.appendChild(e.lastChild),m.checkClone=w.cloneNode(!0).cloneNode(!0).lastChild.checked,e.innerHTML="",e.style.width=e.style.paddingLeft="1px",v=L.getElementsByTagName("body")[0],T=L.createElement(v?"div":"body"),N={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},v&&t.extend(N,{position:"absolute",left:"-999px",top:"-999px"});for(ee in N)T.style[ee]=N[ee];if(T.appendChild(e),y=v||n,y.insertBefore(T,y.firstChild),m.appendChecked=c.checked,m.boxModel=e.offsetWidth===2,"zoom"in e.style&&(e.style.display="inline",e.style.zoom=1,m.inlineBlockNeedsLayout=e.offsetWidth===2,e.style.display="",e.innerHTML="
",m.shrinkWrapBlocks=e.offsetWidth!==2),e.innerHTML="
t
",F=e.getElementsByTagName("td"),Q=F[0].offsetHeight===0,F[0].style.display="",F[1].style.display="none",m.reliableHiddenOffsets=Q&&F[0].offsetHeight===0,e.innerHTML="",L.defaultView&&L.defaultView.getComputedStyle&&(f=L.createElement("div"),f.style.width="0",f.style.marginRight="0",e.appendChild(f),m.reliableMarginRight=(parseInt((L.defaultView.getComputedStyle(f,null)||{marginRight:0}).marginRight,10)||0)===0),e.attachEvent)for(ee in{submit:1,change:1,focusin:1})G="on"+ee,Q=G in e,Q||(e.setAttribute(G,"return;"),Q=typeof e[G]=="function"),m[ee+"Bubbles"]=Q;return t(function(){var ke,Ce,Z,u,p,x=1,b="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",k="visibility:hidden;border:0;",C="style='"+b+"border:5px solid #000;padding:0;'",M="
";v=L.getElementsByTagName("body")[0],!v||(ke=L.createElement("div"),ke.style.cssText=k+"width:0;height:0;position:static;top:0;margin-top:"+x+"px",v.insertBefore(ke,v.firstChild),T=L.createElement("div"),T.style.cssText=b+k,T.innerHTML=M,ke.appendChild(T),Ce=T.firstChild,Z=Ce.firstChild,u=Ce.nextSibling.firstChild.firstChild,p={doesNotAddBorder:Z.offsetTop!==5,doesAddBorderForTableAndCells:u.offsetTop===5},Z.style.position="fixed",Z.style.top="20px",p.fixedPosition=Z.offsetTop===20||Z.offsetTop===15,Z.style.position=Z.style.top="",Ce.style.overflow="hidden",Ce.style.position="relative",p.subtractsBorderForOverflowNotVisible=Z.offsetTop===-5,p.doesNotIncludeMarginInBodyOffset=v.offsetTop!==x,v.removeChild(ke),T=ke=null,t.extend(m,p))}),T.innerHTML="",y.removeChild(T),T=w=a=l=v=f=e=c=null,m}(),t.boxModel=t.support.boxModel;var A=/^(?:\{.*\}|\[.*\])$/,W=/([A-Z])/g;t.extend({cache:{},uuid:0,expando:"jQuery"+(t.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return e=e.nodeType?t.cache[e[t.expando]]:e[t.expando],!!e&&!Ye(e)},data:function(e,n,r,i){if(t.acceptData(e)){var a,l,c;t.expando;var f=typeof n=="string",m=e.nodeType,w=m?t.cache:e,v=m?e[t.expando]:e[t.expando]&&t.expando,y=n==="events";return(!v||!w[v]||!y&&!i&&!w[v].data)&&f&&r===P?void 0:(v||(m?e[t.expando]=v=++t.uuid:v=t.expando),w[v]||(w[v]={},m||(w[v].toJSON=t.noop)),(typeof n=="object"||typeof n=="function")&&(i?w[v]=t.extend(w[v],n):w[v].data=t.extend(w[v].data,n)),a=l=w[v],i||(l.data||(l.data={}),l=l.data),r!==P&&(l[t.camelCase(n)]=r),y&&!l[n]?a.events:(f?(c=l[n],c==null&&(c=l[t.camelCase(n)])):c=l,c))}},removeData:function(e,n,r){if(t.acceptData(e)){var i,a,l;t.expando;var c=e.nodeType,f=c?t.cache:e,m=c?e[t.expando]:t.expando;if(!f[m])return;if(n&&(i=r?f[m]:f[m].data,i)){for(t.isArray(n)?n=n:(n in i)?n=[n]:(n=t.camelCase(n),n in i?n=[n]:n=n.split(" ")),a=0,l=n.length;a"u"){if(this.length&&(l=t.data(this[0]),this[0].nodeType===1&&!t._data(this[0],"parsedAttrs"))){i=this[0].attributes;for(var c=0,f=i.length;c-1)return!0;return!1},val:function(e){var n,r,i,a=this[0];return arguments.length?(i=t.isFunction(e),this.each(function(l){var c=t(this),f;this.nodeType===1&&(i?f=e.call(this,l,c.val()):f=e,f==null?f="":typeof f=="number"?f+="":t.isArray(f)&&(f=t.map(f,function(m){return m==null?"":m+""})),n=t.valHooks[this.nodeName.toLowerCase()]||t.valHooks[this.type],(!n||!("set"in n)||n.set(this,f,"value")===P)&&(this.value=f))})):a?(n=t.valHooks[a.nodeName.toLowerCase()]||t.valHooks[a.type],n&&"get"in n&&(r=n.get(a,"value"))!==P?r:(r=a.value,typeof r=="string"?r.replace(oe,""):r==null?"":r)):P}}),t.extend({valHooks:{option:{get:function(e){var n=e.attributes.value;return!n||n.specified?e.value:e.text}},select:{get:function(e){var n,r,i,a,l=e.selectedIndex,c=[],f=e.options,m=e.type==="select-one";if(l<0)return null;for(r=m?l:0,i=m?l+1:f.length;r=0}),r.length||(e.selectedIndex=-1),r}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,i){var a,l,c,f=e.nodeType;return!e||f===3||f===8||f===2?P:i&&n in t.attrFn?t(e)[n](r):"getAttribute"in e?(c=f!==1||!t.isXMLDoc(e),c&&(n=n.toLowerCase(),l=t.attrHooks[n]||(je.test(n)?Xe:Ae)),r!==P?r===null?(t.removeAttr(e,n),P):l&&"set"in l&&c&&(a=l.set(e,r,n))!==P?a:(e.setAttribute(n,""+r),r):l&&"get"in l&&c&&(a=l.get(e,n))!==null?a:(a=e.getAttribute(n),a===null?P:a)):t.prop(e,n,r)},removeAttr:function(e,n){var r,i,a,l,c=0;if(e.nodeType===1)for(i=(n||"").split(J),l=i.length;c=0}})});var ze=/^(?:textarea|input|select)$/i,gt=/^([^\.]*)?(?:\.(.+))?$/,Ke=/\bhover(\.\S+)?/,Ze=/^key/,mt=/^(?:mouse|contextmenu)|click/,Ue=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,vt=function(e){var n=Ue.exec(e);return n&&(n[1]=(n[1]||"").toLowerCase(),n[3]=n[3]&&new RegExp("(?:^|\\s)"+n[3]+"(?:\\s|$)")),n},St=function(e,n){return(!n[1]||e.nodeName.toLowerCase()===n[1])&&(!n[2]||e.id===n[2])&&(!n[3]||n[3].test(e.className))},We=function(e){return t.event.special.hover?e:e.replace(Ke,"mouseenter$1 mouseleave$1")};t.event={add:function(e,n,r,i,a){var l,c,f,m,w,v,y,T,N,F,G;if(!(e.nodeType===3||e.nodeType===8||!n||!r||!(l=t._data(e)))){for(r.handler&&(N=r,r=N.handler),r.guid||(r.guid=t.guid++),f=l.events,f||(l.events=f={}),c=l.handle,c||(l.handle=c=function(ee){return typeof t<"u"&&(!ee||t.event.triggered!==ee.type)?t.event.dispatch.apply(c.elem,arguments):P},c.elem=e),n=We(n).split(" "),m=0;m=0&&(a=a.slice(0,-1),f=!0),a.indexOf(".")>=0&&(l=a.split("."),a=l.shift(),l.sort()),(!r||t.event.customEvent[a])&&!t.event.global[a])return;if(e=typeof e=="object"?e[t.expando]?e:new t.Event(a,e):new t.Event(a),e.type=a,e.isTrigger=!0,e.exclusive=f,e.namespace=l.join("."),e.namespace_re=e.namespace?new RegExp("(^|\\.)"+l.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,y=a.indexOf(":")<0?"on"+a:"",(i||!r)&&e.preventDefault(),!r){c=t.cache;for(m in c)c[m].events&&c[m].events[a]&&t.event.trigger(e,n,c[m].handle.elem,!0);return}if(e.result=P,e.target||(e.target=r),n=n!=null?t.makeArray(n):[],n.unshift(e),T=t.event.special[a]||{},T.trigger&&T.trigger.apply(r,n)===!1)return;if(F=[[r,T.bindType||a]],!i&&!T.noBubble&&!t.isWindow(r)){for(G=T.delegateType||a,v=null,w=r.parentNode;w;w=w.parentNode)F.push([w,G]),v=w;v&&v===r.ownerDocument&&F.push([v.defaultView||v.parentWindow||_,G])}for(m=0;m=0:ee===P&&(ee=y[G]=F.quick?St(w,F.quick):t(w).is(G)),ee&&N.push(F);N.length&&c.push({elem:w,matches:N})}for(n.length>r&&c.push({elem:this,matches:n.slice(r)}),f=0;f0?this.bind(n,r,i):this.trigger(n)},t.attrFn&&(t.attrFn[n]=!0),Ze.test(n)&&(t.event.fixHooks[n]=t.event.keyHooks),mt.test(n)&&(t.event.fixHooks[n]=t.event.mouseHooks)}),function(){function e(u,p,x,b,k,C){for(var M=0,B=b.length;M0){z=j;break}}j=j[u]}b[M]=z}}}function n(u,p,x,b,k,C){for(var M=0,B=b.length;M+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),a=0,l=Object.prototype.toString,c=!1,f=!0,m=/\\/g,w=/\r\n/g,v=/\W/;[0,0].sort(function(){return f=!1,0});var y=function(u,p,x,b){x=x||[],p=p||L;var k=p;if(p.nodeType!==1&&p.nodeType!==9)return[];if(!u||typeof u!="string")return x;var C,M,B,j,z,Pe,we,h,E=!0,I=y.isXML(p),S=[],ne=u;do if(r.exec(""),C=r.exec(ne),C&&(ne=C[3],S.push(C[1]),C[2])){j=C[3];break}while(C);if(S.length>1&&F.exec(u))if(S.length===2&&N.relative[S[0]])M=Z(S[0]+S[1],p,b);else for(M=N.relative[S[0]]?[p]:y(S.shift(),p);S.length;)u=S.shift(),N.relative[u]&&(u+=S.shift()),M=Z(u,M,b);else if(!b&&S.length>1&&p.nodeType===9&&!I&&N.match.ID.test(S[0])&&!N.match.ID.test(S[S.length-1])&&(z=y.find(S.shift(),p,I),p=z.expr?y.filter(z.expr,z.set)[0]:z.set[0]),p)for(z=b?{expr:S.pop(),set:Q(b)}:y.find(S.pop(),S.length===1&&(S[0]==="~"||S[0]==="+")&&p.parentNode?p.parentNode:p,I),M=z.expr?y.filter(z.expr,z.set):z.set,S.length>0?B=Q(M):E=!1;S.length;)Pe=S.pop(),we=Pe,N.relative[Pe]?we=S.pop():Pe="",we==null&&(we=p),N.relative[Pe](B,we,I);else B=S=[];if(B||(B=M),B||y.error(Pe||u),l.call(B)==="[object Array]")if(!E)x.push.apply(x,B);else if(p&&p.nodeType===1)for(h=0;B[h]!=null;h++)B[h]&&(B[h]===!0||B[h].nodeType===1&&y.contains(p,B[h]))&&x.push(M[h]);else for(h=0;B[h]!=null;h++)B[h]&&B[h].nodeType===1&&x.push(M[h]);else Q(B,x);return j&&(y(j,k,x,b),y.uniqueSort(x)),x};y.uniqueSort=function(u){if(ke&&(c=f,u.sort(ke),c))for(var p=1;p0},y.find=function(u,p,x){var b,k,C,M,B,j;if(!u)return[];for(k=0,C=N.order.length;k":function(u,p){var x,b=typeof p=="string",k=0,C=u.length;if(b&&!v.test(p)){for(p=p.toLowerCase();k=0)?x||b.push(B):x&&(p[M]=!1));return!1},ID:function(u){return u[1].replace(m,"")},TAG:function(u,p){return u[1].replace(m,"").toLowerCase()},CHILD:function(u){if(u[1]==="nth"){u[2]||y.error(u[0]),u[2]=u[2].replace(/^\+|\s*/g,"");var p=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(u[2]==="even"&&"2n"||u[2]==="odd"&&"2n+1"||!/\D/.test(u[2])&&"0n+"+u[2]||u[2]);u[2]=p[1]+(p[2]||1)-0,u[3]=p[3]-0}else u[2]&&y.error(u[0]);return u[0]=a++,u},ATTR:function(u,p,x,b,k,C){var M=u[1]=u[1].replace(m,"");return!C&&N.attrMap[M]&&(u[1]=N.attrMap[M]),u[4]=(u[4]||u[5]||"").replace(m,""),u[2]==="~="&&(u[4]=" "+u[4]+" "),u},PSEUDO:function(u,p,x,b,k){if(u[1]==="not")if((r.exec(u[3])||"").length>1||/^\w/.test(u[3]))u[3]=y(u[3],null,null,p);else{var C=y.filter(u[3],p,x,!0^k);return x||b.push.apply(b,C),!1}else if(N.match.POS.test(u[0])||N.match.CHILD.test(u[0]))return!0;return u},POS:function(u){return u.unshift(!0),u}},filters:{enabled:function(u){return u.disabled===!1&&u.type!=="hidden"},disabled:function(u){return u.disabled===!0},checked:function(u){return u.checked===!0},selected:function(u){return u.parentNode&&u.parentNode.selectedIndex,u.selected===!0},parent:function(u){return!!u.firstChild},empty:function(u){return!u.firstChild},has:function(u,p,x){return!!y(x[3],u).length},header:function(u){return/h\d/i.test(u.nodeName)},text:function(u){var p=u.getAttribute("type"),x=u.type;return u.nodeName.toLowerCase()==="input"&&x==="text"&&(p===x||p===null)},radio:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="radio"},checkbox:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="checkbox"},file:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="file"},password:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="password"},submit:function(u){var p=u.nodeName.toLowerCase();return(p==="input"||p==="button")&&u.type==="submit"},image:function(u){return u.nodeName.toLowerCase()==="input"&&u.type==="image"},reset:function(u){var p=u.nodeName.toLowerCase();return(p==="input"||p==="button")&&u.type==="reset"},button:function(u){var p=u.nodeName.toLowerCase();return p==="input"&&u.type==="button"||p==="button"},input:function(u){return/input|select|textarea|button/i.test(u.nodeName)},focus:function(u){return u===u.ownerDocument.activeElement}},setFilters:{first:function(u,p){return p===0},last:function(u,p,x,b){return p===b.length-1},even:function(u,p){return p%2===0},odd:function(u,p){return p%2===1},lt:function(u,p,x){return px[3]-0},nth:function(u,p,x){return x[3]-0===p},eq:function(u,p,x){return x[3]-0===p}},filter:{PSEUDO:function(u,p,x,b){var k=p[1],C=N.filters[k];if(C)return C(u,x,p,b);if(k==="contains")return(u.textContent||u.innerText||T([u])||"").indexOf(p[3])>=0;if(k==="not"){for(var M=p[3],B=0,j=M.length;B=0}},ID:function(u,p){return u.nodeType===1&&u.getAttribute("id")===p},TAG:function(u,p){return p==="*"&&u.nodeType===1||!!u.nodeName&&u.nodeName.toLowerCase()===p},CLASS:function(u,p){return(" "+(u.className||u.getAttribute("class"))+" ").indexOf(p)>-1},ATTR:function(u,p){var x=p[1],b=y.attr?y.attr(u,x):N.attrHandle[x]?N.attrHandle[x](u):u[x]!=null?u[x]:u.getAttribute(x),k=b+"",C=p[2],M=p[4];return b==null?C==="!=":!C&&y.attr?b!=null:C==="="?k===M:C==="*="?k.indexOf(M)>=0:C==="~="?(" "+k+" ").indexOf(M)>=0:M?C==="!="?k!==M:C==="^="?k.indexOf(M)===0:C==="$="?k.substr(k.length-M.length)===M:C==="|="?k===M||k.substr(0,M.length+1)===M+"-":!1:k&&b!==!1},POS:function(u,p,x,b){var k=p[2],C=N.setFilters[k];if(C)return C(u,x,p,b)}}},F=N.match.POS,G=function(u,p){return"\\"+(p-0+1)};for(var ee in N.match)N.match[ee]=new RegExp(N.match[ee].source+/(?![^\[]*\])(?![^\(]*\))/.source),N.leftMatch[ee]=new RegExp(/(^(?:.|\r|\n)*?)/.source+N.match[ee].source.replace(/\\(\d+)/g,G));var Q=function(u,p){return u=Array.prototype.slice.call(u,0),p?(p.push.apply(p,u),p):u};try{Array.prototype.slice.call(L.documentElement.childNodes,0)[0].nodeType}catch(u){Q=function(p,x){var b=0,k=x||[];if(l.call(p)==="[object Array]")Array.prototype.push.apply(k,p);else if(typeof p.length=="number")for(var C=p.length;b",x.insertBefore(u,x.firstChild),L.getElementById(p)&&(N.find.ID=function(b,k,C){if(typeof k.getElementById<"u"&&!C){var M=k.getElementById(b[1]);return M?M.id===b[1]||typeof M.getAttributeNode<"u"&&M.getAttributeNode("id").nodeValue===b[1]?[M]:P:[]}},N.filter.ID=function(b,k){var C=typeof b.getAttributeNode<"u"&&b.getAttributeNode("id");return b.nodeType===1&&C&&C.nodeValue===k}),x.removeChild(u),x=u=null}(),function(){var u=L.createElement("div");u.appendChild(L.createComment("")),u.getElementsByTagName("*").length>0&&(N.find.TAG=function(p,x){var b=x.getElementsByTagName(p[1]);if(p[1]==="*"){for(var k=[],C=0;b[C];C++)b[C].nodeType===1&&k.push(b[C]);b=k}return b}),u.innerHTML="",u.firstChild&&typeof u.firstChild.getAttribute<"u"&&u.firstChild.getAttribute("href")!=="#"&&(N.attrHandle.href=function(p){return p.getAttribute("href",2)}),u=null}(),L.querySelectorAll&&function(){var u=y,p=L.createElement("div"),x="__sizzle__";if(p.innerHTML="

",!p.querySelectorAll||p.querySelectorAll(".TEST").length!==0){y=function(k,C,M,B){if(C=C||L,!B&&!y.isXML(C)){var j=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(k);if(j&&(C.nodeType===1||C.nodeType===9)){if(j[1])return Q(C.getElementsByTagName(k),M);if(j[2]&&N.find.CLASS&&C.getElementsByClassName)return Q(C.getElementsByClassName(j[2]),M)}if(C.nodeType===9){if(k==="body"&&C.body)return Q([C.body],M);if(j&&j[3]){var z=C.getElementById(j[3]);if(!z||!z.parentNode)return Q([],M);if(z.id===j[3])return Q([z],M)}try{return Q(C.querySelectorAll(k),M)}catch(S){}}else if(C.nodeType===1&&C.nodeName.toLowerCase()!=="object"){var Pe=C,we=C.getAttribute("id"),h=we||x,E=C.parentNode,I=/^\s*[+~]/.test(k);we?h=h.replace(/'/g,"\\$&"):C.setAttribute("id",h),I&&E&&(C=C.parentNode);try{if(!I||E)return Q(C.querySelectorAll("[id='"+h+"'] "+k),M)}catch(S){}finally{we||Pe.removeAttribute("id")}}}return u(k,C,M,B)};for(var b in u)y[b]=u[b];p=null}}(),function(){var u=L.documentElement,p=u.matchesSelector||u.mozMatchesSelector||u.webkitMatchesSelector||u.msMatchesSelector;if(p){var x=!p.call(L.createElement("div"),"div"),b=!1;try{p.call(L.documentElement,"[test!='']:sizzle")}catch(k){b=!0}y.matchesSelector=function(k,C){if(C=C.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!y.isXML(k))try{if(b||!N.match.PSEUDO.test(C)&&!/!=/.test(C)){var M=p.call(k,C);if(M||!x||k.document&&k.document.nodeType!==11)return M}}catch(B){}return y(C,null,null,[k]).length>0}}}(),function(){var u=L.createElement("div");if(u.innerHTML="
",u.getElementsByClassName&&u.getElementsByClassName("e").length!==0){if(u.lastChild.className="e",u.getElementsByClassName("e").length===1)return;N.order.splice(1,0,"CLASS"),N.find.CLASS=function(p,x,b){if(typeof x.getElementsByClassName<"u"&&!b)return x.getElementsByClassName(p[1])},u=null}}(),L.documentElement.contains?y.contains=function(u,p){return u!==p&&(u.contains?u.contains(p):!0)}:L.documentElement.compareDocumentPosition?y.contains=function(u,p){return!!(u.compareDocumentPosition(p)&16)}:y.contains=function(){return!1},y.isXML=function(u){var p=(u?u.ownerDocument||u:0).documentElement;return p?p.nodeName!=="HTML":!1};var Z=function(u,p,x){for(var b,k=[],C="",M=p.nodeType?[p]:p;b=N.match.PSEUDO.exec(u);)C+=b[0],u=u.replace(N.match.PSEUDO,"");u=N.relative[u]?u+"*":u;for(var B=0,j=M.length;B0){for(c=l;c=0:t.filter(e,this).length>0:this.filter(e).length>0)},closest:function(e,n){var r=[],i,a,l=this[0];if(t.isArray(e)){for(var c=1;l&&l.ownerDocument&&l!==n;){for(i=0;i-1:t.find.matchesSelector(l,e)){r.push(l);break}if(l=l.parentNode,!l||!l.ownerDocument||l===n||l.nodeType===11)break}return r=r.length>1?t.unique(r):r,this.pushStack(r,"closest",e)},index:function(e){return e?typeof e=="string"?t.inArray(this[0],t(e)):t.inArray(e.jquery?e[0]:e,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(e,n){var r=typeof e=="string"?t(e,n):t.makeArray(e&&e.nodeType?[e]:e),i=t.merge(this.get(),r);return this.pushStack(Le(r[0])||Le(i[0])?i:t.unique(i))},andSelf:function(){return this.add(this.prevObject)}}),t.each({parent:function(e){var n=e.parentNode;return n&&n.nodeType!==11?n:null},parents:function(e){return t.dir(e,"parentNode")},parentsUntil:function(e,n,r){return t.dir(e,"parentNode",r)},next:function(e){return t.nth(e,2,"nextSibling")},prev:function(e){return t.nth(e,2,"previousSibling")},nextAll:function(e){return t.dir(e,"nextSibling")},prevAll:function(e){return t.dir(e,"previousSibling")},nextUntil:function(e,n,r){return t.dir(e,"nextSibling",r)},prevUntil:function(e,n,r){return t.dir(e,"previousSibling",r)},siblings:function(e){return t.sibling(e.parentNode.firstChild,e)},children:function(e){return t.sibling(e.firstChild)},contents:function(e){return t.nodeName(e,"iframe")?e.contentDocument||e.contentWindow.document:t.makeArray(e.childNodes)}},function(e,n){t.fn[e]=function(r,i){var a=t.map(this,n,r),l=_t.call(arguments);return Ct.test(e)||(i=r),i&&typeof i=="string"&&(a=t.filter(i,a)),a=this.length>1&&!Qe[e]?t.unique(a):a,(this.length>1||Ot.test(i))&&ye.test(e)&&(a=a.reverse()),this.pushStack(a,e,l.join(","))}}),t.extend({filter:function(e,n,r){return r&&(e=":not("+e+")"),n.length===1?t.find.matchesSelector(n[0],e)?[n[0]]:[]:t.find.matches(e,n)},dir:function(e,n,r){for(var i=[],a=e[n];a&&a.nodeType!==9&&(r===P||a.nodeType!==1||!t(a).is(r));)a.nodeType===1&&i.push(a),a=a[n];return i},nth:function(e,n,r,i){n=n||1;for(var a=0;e&&!(e.nodeType===1&&++a===n);e=e[r]);return e},sibling:function(e,n){for(var r=[];e;e=e.nextSibling)e.nodeType===1&&e!==n&&r.push(e);return r}});var it="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",wt=/ jQuery\d+="(?:\d+|null)"/g,de=/^\s+/,Oe=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,le=/<([\w:]+)/,He=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},fn=pe(L);Ee.optgroup=Ee.option,Ee.tbody=Ee.tfoot=Ee.colgroup=Ee.caption=Ee.thead,Ee.th=Ee.td,t.support.htmlSerialize||(Ee._default=[1,"div
","
"]),t.fn.extend({text:function(e){return t.isFunction(e)?this.each(function(n){var r=t(this);r.text(e.call(this,n,r.text()))}):typeof e!="object"&&e!==P?this.empty().append((this[0]&&this[0].ownerDocument||L).createTextNode(e)):t.text(this)},wrapAll:function(e){if(t.isFunction(e))return this.each(function(r){t(this).wrapAll(e.call(this,r))});if(this[0]){var n=t(e,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&n.insertBefore(this[0]),n.map(function(){for(var r=this;r.firstChild&&r.firstChild.nodeType===1;)r=r.firstChild;return r}).append(this)}return this},wrapInner:function(e){return t.isFunction(e)?this.each(function(n){t(this).wrapInner(e.call(this,n))}):this.each(function(){var n=t(this),r=n.contents();r.length?r.wrapAll(e):n.append(e)})},wrap:function(e){return this.each(function(){t(this).wrapAll(e)})},unwrap:function(){return this.parent().each(function(){t.nodeName(this,"body")||t(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.appendChild(e)})},prepend:function(){return this.domManip(arguments,!0,function(e){this.nodeType===1&&this.insertBefore(e,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this)});if(arguments.length){var e=t(arguments[0]);return e.push.apply(e,this.toArray()),this.pushStack(e,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(n){this.parentNode.insertBefore(n,this.nextSibling)});if(arguments.length){var e=this.pushStack(this,"after",arguments);return e.push.apply(e,t(arguments[0]).toArray()),e}},remove:function(e,n){for(var r=0,i;(i=this[r])!=null;r++)(!e||t.filter(e,[i]).length)&&(!n&&i.nodeType===1&&(t.cleanData(i.getElementsByTagName("*")),t.cleanData([i])),i.parentNode&&i.parentNode.removeChild(i));return this},empty:function(){for(var e=0,n;(n=this[e])!=null;e++)for(n.nodeType===1&&t.cleanData(n.getElementsByTagName("*"));n.firstChild;)n.removeChild(n.firstChild);return this},clone:function(e,n){return e=e==null?!1:e,n=n==null?e:n,this.map(function(){return t.clone(this,e,n)})},html:function(e){if(e===P)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(wt,""):null;if(typeof e=="string"&&!st.test(e)&&(t.support.leadingWhitespace||!de.test(e))&&!Ee[(le.exec(e)||["",""])[1].toLowerCase()]){e=e.replace(Oe,"<$1>");try{for(var n=0,r=this.length;n1&&w0?this.clone(!0):this).get();t(a[c])[n](m),i=i.concat(m)}return this.pushStack(i,e,a.selector)}}),t.extend({clone:function(e,n,r){var i=e.cloneNode(!0),a,l,c;if((!t.support.noCloneEvent||!t.support.noCloneChecked)&&(e.nodeType===1||e.nodeType===11)&&!t.isXMLDoc(e))for($(e,i),a=D(e),l=D(i),c=0;a[c];++c)l[c]&&$(a[c],l[c]);if(n&&(q(e,i),r))for(a=D(e),l=D(i),c=0;a[c];++c)q(a[c],l[c]);return a=l=null,i},clean:function(e,n,r,i){var a;n=n||L,typeof n.createElement>"u"&&(n=n.ownerDocument||n[0]&&n[0].ownerDocument||L);for(var l=[],c,f=0,m;(m=e[f])!=null;f++)if(typeof m=="number"&&(m+=""),!!m){if(typeof m=="string")if(!$e.test(m))m=n.createTextNode(m);else{m=m.replace(Oe,"<$1>");var w=(le.exec(m)||["",""])[1].toLowerCase(),v=Ee[w]||Ee._default,y=v[0],T=n.createElement("div");for(n===L?fn.appendChild(T):pe(n).appendChild(T),T.innerHTML=v[1]+m+v[2];y--;)T=T.lastChild;if(!t.support.tbody){var N=He.test(m),F=w==="table"&&!N?T.firstChild&&T.firstChild.childNodes:v[1]===""&&!N?T.childNodes:[];for(c=F.length-1;c>=0;--c)t.nodeName(F[c],"tbody")&&!F[c].childNodes.length&&F[c].parentNode.removeChild(F[c])}!t.support.leadingWhitespace&&de.test(m)&&T.insertBefore(n.createTextNode(de.exec(m)[0]),T.firstChild),m=T.childNodes}var G;if(!t.support.appendChecked)if(m[0]&&typeof(G=m.length)=="number")for(c=0;c=0)return i+"px"}}}),t.support.opacity||(t.cssHooks.opacity={get:function(e,n){return dn.test((n&&e.currentStyle?e.currentStyle.filter:e.style.filter)||"")?parseFloat(RegExp.$1)/100+"":n?"1":""},set:function(e,n){var r=e.style,i=e.currentStyle,a=t.isNumeric(n)?"alpha(opacity="+n*100+")":"",l=i&&i.filter||r.filter||"";r.zoom=1,!(n>=1&&t.trim(l.replace(jt,""))===""&&(r.removeAttribute("filter"),i&&!i.filter))&&(r.filter=jt.test(l)?l.replace(jt,a):l+" "+a)}}),t(function(){t.support.reliableMarginRight||(t.cssHooks.marginRight={get:function(e,n){var r;return t.swap(e,{display:"inline-block"},function(){n?r=xt(e,"margin-right","marginRight"):r=e.style.marginRight}),r}})}),L.defaultView&&L.defaultView.getComputedStyle&&(Vt=function(e,n){var r,i,a;return n=n.replace(hn,"-$1").toLowerCase(),(i=e.ownerDocument.defaultView)?((a=i.getComputedStyle(e,null))&&(r=a.getPropertyValue(n),r===""&&!t.contains(e.ownerDocument.documentElement,e)&&(r=t.style(e,n))),r):P}),L.documentElement.currentStyle&&(Ut=function(e,n){var r,i,a,l=e.currentStyle&&e.currentStyle[n],c=e.style;return l===null&&c&&(a=c[n])&&(l=a),!Xt.test(l)&&pn.test(l)&&(r=c.left,i=e.runtimeStyle&&e.runtimeStyle.left,i&&(e.runtimeStyle.left=e.currentStyle.left),c.left=n==="fontSize"?"1em":l||0,l=c.pixelLeft+"px",c.left=r,i&&(e.runtimeStyle.left=i)),l===""?"auto":l}),xt=Vt||Ut,t.expr&&t.expr.filters&&(t.expr.filters.hidden=function(e){var n=e.offsetWidth,r=e.offsetHeight;return n===0&&r===0||!t.support.reliableHiddenOffsets&&(e.style&&e.style.display||t.css(e,"display"))==="none"},t.expr.filters.visible=function(e){return!t.expr.filters.hidden(e)});var wn=/%20/g,xn=/\[\]$/,Gt=/\r?\n/g,bn=/#.*$/,Tn=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,An=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,kn=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Cn=/^(?:GET|HEAD)$/,_n=/^\/\//,Yt=/\?/,Nn=/)<[^<]*)*<\/script>/gi,Sn=/^(?:select|textarea)/i,Kt=/\s+/,En=/([?&])_=[^&]*/,Zt=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,Jt=t.fn.load,It={},Qt={},ft,dt,$t=["*/"]+["*"];try{ft=o.href}catch(e){ft=L.createElement("a"),ft.href="",ft=ft.href}dt=Zt.exec(ft.toLowerCase())||[],t.fn.extend({load:function(e,n,r){if(typeof e!="string"&&Jt)return Jt.apply(this,arguments);if(!this.length)return this;var i=e.indexOf(" ");if(i>=0){var a=e.slice(i,e.length);e=e.slice(0,i)}var l="GET";n&&(t.isFunction(n)?(r=n,n=P):typeof n=="object"&&(n=t.param(n,t.ajaxSettings.traditional),l="POST"));var c=this;return t.ajax({url:e,type:l,dataType:"html",data:n,complete:function(f,m,w){w=f.responseText,f.isResolved()&&(f.done(function(v){w=v}),c.html(a?t("
").append(w.replace(Nn,"")).find(a):w)),r&&c.each(r,[w,m,f])}}),this},serialize:function(){return t.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?t.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Sn.test(this.nodeName)||An.test(this.type))}).map(function(e,n){var r=t(this).val();return r==null?null:t.isArray(r)?t.map(r,function(i,a){return{name:n.name,value:i.replace(Gt,`\r `)}}):{name:n.name,value:r.replace(Gt,`\r `)}}).get()}}),t.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(e,n){t.fn[n]=function(r){return this.bind(n,r)}}),t.each(["get","post"],function(e,n){t[n]=function(r,i,a,l){return t.isFunction(i)&&(l=l||a,a=i,i=P),t.ajax({type:n,url:r,data:i,success:a,dataType:l})}}),t.extend({getScript:function(e,n){return t.get(e,P,n,"script")},getJSON:function(e,n,r){return t.get(e,n,r,"json")},ajaxSetup:function(e,n){return n?Me(e,t.ajaxSettings):(n=e,e=t.ajaxSettings),Me(e,n),e},ajaxSettings:{url:ft,isLocal:kn.test(dt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":$t},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":_.String,"text html":!0,"text json":t.parseJSON,"text xml":t.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:De(It),ajaxTransport:De(Qt),ajax:function(e,n){function r(x,b,k,C){if(Q!==2){Q=2,G&&clearTimeout(G),F=P,T=C||"",Z.readyState=x>0?4:0;var M,B,j,z=b,Pe=k?he(i,Z,k):P,we,h;if(x>=200&&x<300||x===304)if(i.ifModified&&((we=Z.getResponseHeader("Last-Modified"))&&(t.lastModified[w]=we),(h=Z.getResponseHeader("Etag"))&&(t.etag[w]=h)),x===304)z="notmodified",M=!0;else try{B=K(i,Pe),z="success",M=!0}catch(E){z="parsererror",j=E}else j=z,(!z||x)&&(z="error",x<0&&(x=0));Z.status=x,Z.statusText=""+(b||z),M?c.resolveWith(a,[B,z,Z]):c.rejectWith(a,[Z,z,j]),Z.statusCode(m),m=P,ke&&l.trigger("ajax"+(M?"Success":"Error"),[Z,i,M?B:j]),f.fireWith(a,[Z,z]),ke&&(l.trigger("ajaxComplete",[Z,i]),--t.active||t.event.trigger("ajaxStop"))}}typeof e=="object"&&(n=e,e=P),n=n||{};var i=t.ajaxSetup({},n),a=i.context||i,l=a!==i&&(a.nodeType||a instanceof t)?t(a):t.event,c=t.Deferred(),f=t.Callbacks("once memory"),m=i.statusCode||{},w,v={},y={},T,N,F,G,ee,Q=0,ke,Ce,Z={readyState:0,setRequestHeader:function(x,b){if(!Q){var k=x.toLowerCase();x=y[k]=y[k]||x,v[x]=b}return this},getAllResponseHeaders:function(){return Q===2?T:null},getResponseHeader:function(x){var b;if(Q===2){if(!N)for(N={};b=Tn.exec(T);)N[b[1].toLowerCase()]=b[2];b=N[x.toLowerCase()]}return b===P?null:b},overrideMimeType:function(x){return Q||(i.mimeType=x),this},abort:function(x){return x=x||"abort",F&&F.abort(x),r(0,x),this}};if(c.promise(Z),Z.success=Z.done,Z.error=Z.fail,Z.complete=f.add,Z.statusCode=function(x){if(x){var b;if(Q<2)for(b in x)m[b]=[m[b],x[b]];else b=x[Z.status],Z.then(b,b)}return this},i.url=((e||i.url)+"").replace(bn,"").replace(_n,dt[1]+"//"),i.dataTypes=t.trim(i.dataType||"*").toLowerCase().split(Kt),i.crossDomain==null&&(ee=Zt.exec(i.url.toLowerCase()),i.crossDomain=!(!ee||ee[1]==dt[1]&&ee[2]==dt[2]&&(ee[3]||(ee[1]==="http:"?80:443))==(dt[3]||(dt[1]==="http:"?80:443)))),i.data&&i.processData&&typeof i.data!="string"&&(i.data=t.param(i.data,i.traditional)),Te(It,i,n,Z),Q===2)return!1;if(ke=i.global,i.type=i.type.toUpperCase(),i.hasContent=!Cn.test(i.type),ke&&t.active++===0&&t.event.trigger("ajaxStart"),!i.hasContent&&(i.data&&(i.url+=(Yt.test(i.url)?"&":"?")+i.data,delete i.data),w=i.url,i.cache===!1)){var u=t.now(),p=i.url.replace(En,"$1_="+u);i.url=p+(p===i.url?(Yt.test(i.url)?"&":"?")+"_="+u:"")}(i.data&&i.hasContent&&i.contentType!==!1||n.contentType)&&Z.setRequestHeader("Content-Type",i.contentType),i.ifModified&&(w=w||i.url,t.lastModified[w]&&Z.setRequestHeader("If-Modified-Since",t.lastModified[w]),t.etag[w]&&Z.setRequestHeader("If-None-Match",t.etag[w])),Z.setRequestHeader("Accept",i.dataTypes[0]&&i.accepts[i.dataTypes[0]]?i.accepts[i.dataTypes[0]]+(i.dataTypes[0]!=="*"?", "+$t+"; q=0.01":""):i.accepts["*"]);for(Ce in i.headers)Z.setRequestHeader(Ce,i.headers[Ce]);if(i.beforeSend&&(i.beforeSend.call(a,Z,i)===!1||Q===2))return Z.abort(),!1;for(Ce in{success:1,error:1,complete:1})Z[Ce](i[Ce]);if(F=Te(Qt,i,n,Z),!F)r(-1,"No Transport");else{Z.readyState=1,ke&&l.trigger("ajaxSend",[Z,i]),i.async&&i.timeout>0&&(G=setTimeout(function(){Z.abort("timeout")},i.timeout));try{Q=1,F.send(v,r)}catch(x){Q<2?r(-1,x):t.error(x)}}return Z},param:function(e,n){var r=[],i=function(l,c){c=t.isFunction(c)?c():c,r[r.length]=encodeURIComponent(l)+"="+encodeURIComponent(c)};if(n===P&&(n=t.ajaxSettings.traditional),t.isArray(e)||e.jquery&&!t.isPlainObject(e))t.each(e,function(){i(this.name,this.value)});else for(var a in e)Se(a,e[a],n,i);return r.join("&").replace(wn,"+")}}),t.extend({active:0,lastModified:{},etag:{}});var Mn=t.now(),Et=/(\=)\?(&|$)|\?\?/i;t.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return t.expando+"_"+Mn++}}),t.ajaxPrefilter("json jsonp",function(e,n,r){var i=e.contentType==="application/x-www-form-urlencoded"&&typeof e.data=="string";if(e.dataTypes[0]==="jsonp"||e.jsonp!==!1&&(Et.test(e.url)||i&&Et.test(e.data))){var a,l=e.jsonpCallback=t.isFunction(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,c=_[l],f=e.url,m=e.data,w="$1"+l+"$2";return e.jsonp!==!1&&(f=f.replace(Et,w),e.url===f&&(i&&(m=m.replace(Et,w)),e.data===m&&(f+=(/\?/.test(f)?"&":"?")+e.jsonp+"="+l))),e.url=f,e.data=m,_[l]=function(v){a=[v]},r.always(function(){_[l]=c,a&&t.isFunction(c)&&_[l](a[0])}),e.converters["script json"]=function(){return a||t.error(l+" was not called"),a[0]},e.dataTypes[0]="json","script"}}),t.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(e){return t.globalEval(e),e}}}),t.ajaxPrefilter("script",function(e){e.cache===P&&(e.cache=!1),e.crossDomain&&(e.type="GET",e.global=!1)}),t.ajaxTransport("script",function(e){if(e.crossDomain){var n,r=L.head||L.getElementsByTagName("head")[0]||L.documentElement;return{send:function(i,a){n=L.createElement("script"),n.async="async",e.scriptCharset&&(n.charset=e.scriptCharset),n.src=e.url,n.onload=n.onreadystatechange=function(l,c){(c||!n.readyState||/loaded|complete/.test(n.readyState))&&(n.onload=n.onreadystatechange=null,r&&n.parentNode&&r.removeChild(n),n=P,c||a(200,"success"))},r.insertBefore(n,r.firstChild)},abort:function(){n&&n.onload(0,1)}}}});var Bt=_.ActiveXObject?function(){for(var e in bt)bt[e](0,1)}:!1,Pn=0,bt;t.ajaxSettings.xhr=_.ActiveXObject?function(){return!this.isLocal&&ve()||be()}:ve,function(e){t.extend(t.support,{ajax:!!e,cors:!!e&&"withCredentials"in e})}(t.ajaxSettings.xhr()),t.support.ajax&&t.ajaxTransport(function(e){if(!e.crossDomain||t.support.cors){var n;return{send:function(r,i){var a=e.xhr(),l,c;if(e.username?a.open(e.type,e.url,e.async,e.username,e.password):a.open(e.type,e.url,e.async),e.xhrFields)for(c in e.xhrFields)a[c]=e.xhrFields[c];e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),!e.crossDomain&&!r["X-Requested-With"]&&(r["X-Requested-With"]="XMLHttpRequest");try{for(c in r)a.setRequestHeader(c,r[c])}catch(f){}a.send(e.hasContent&&e.data||null),n=function(f,m){var w,v,y,T,N;try{if(n&&(m||a.readyState===4))if(n=P,l&&(a.onreadystatechange=t.noop,Bt&&delete bt[l]),m)a.readyState!==4&&a.abort();else{w=a.status,y=a.getAllResponseHeaders(),T={},N=a.responseXML,N&&N.documentElement&&(T.xml=N),T.text=a.responseText;try{v=a.statusText}catch(F){v=""}!w&&e.isLocal&&!e.crossDomain?w=T.text?200:404:w===1223&&(w=204)}}catch(F){m||i(-1,F)}T&&i(w,v,T,y)},!e.async||a.readyState===4?n():(l=++Pn,Bt&&(bt||(bt={},t(_).unload(Bt)),bt[l]=n),a.onreadystatechange=n)},abort:function(){n&&n(0,1)}}}});var Wt={},Ge,Tt,Dn=/^(?:toggle|show|hide)$/,Fn=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Mt,en=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Pt;t.fn.extend({show:function(e,n,r){var i,a;if(e||e===0)return this.animate(me("show",3),e,n,r);for(var l=0,c=this.length;l=f.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),f.animatedProperties[this.prop]=!0;for(n in f.animatedProperties)f.animatedProperties[n]!==!0&&(l=!1);if(l){if(f.overflow!=null&&!t.support.shrinkWrapBlocks&&t.each(["","X","Y"],function(m,w){c.style["overflow"+w]=f.overflow[m]}),f.hide&&t(c).hide(),f.hide||f.show)for(n in f.animatedProperties)t.style(c,n,f.orig[n]),t.removeData(c,"fxshow"+n,!0),t.removeData(c,"toggle"+n,!0);i=f.complete,i&&(f.complete=!1,i.call(c))}return!1}return f.duration==1/0?this.now=a:(r=a-this.startTime,this.state=r/f.duration,this.pos=t.easing[f.animatedProperties[this.prop]](this.state,r,0,1,f.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},t.extend(t.fx,{tick:function(){for(var e,n=t.timers,r=0;r-1,w={},v={},y,T;m?(v=a.position(),y=v.top,T=v.left):(y=parseFloat(c)||0,T=parseFloat(f)||0),t.isFunction(n)&&(n=n.call(e,r,l)),n.top!=null&&(w.top=n.top-l.top+y),n.left!=null&&(w.left=n.left-l.left+T),"using"in n?n.using.call(e,w):a.css(w)}},t.fn.extend({position:function(){if(!this[0])return null;var e=this[0],n=this.offsetParent(),r=this.offset(),i=tn.test(n[0].nodeName)?{top:0,left:0}:n.offset();return r.top-=parseFloat(t.css(e,"marginTop"))||0,r.left-=parseFloat(t.css(e,"marginLeft"))||0,i.top+=parseFloat(t.css(n[0],"borderTopWidth"))||0,i.left+=parseFloat(t.css(n[0],"borderLeftWidth"))||0,{top:r.top-i.top,left:r.left-i.left}},offsetParent:function(){return this.map(function(){for(var e=this.offsetParent||L.body;e&&!tn.test(e.nodeName)&&t.css(e,"position")==="static";)e=e.offsetParent;return e})}}),t.each(["Left","Top"],function(e,n){var r="scroll"+n;t.fn[r]=function(i){var a,l;return i===P?(a=this[0],a?(l=Y(a),l?"pageXOffset"in l?l[e?"pageYOffset":"pageXOffset"]:t.support.boxModel&&l.document.documentElement[r]||l.document.body[r]:a[r]):null):this.each(function(){l=Y(this),l?l.scrollTo(e?t(l).scrollLeft():i,e?i:t(l).scrollTop()):this[r]=i})}}),t.each(["Height","Width"],function(e,n){var r=n.toLowerCase();t.fn["inner"+n]=function(){var i=this[0];return i?i.style?parseFloat(t.css(i,r,"padding")):this[r]():null},t.fn["outer"+n]=function(i){var a=this[0];return a?a.style?parseFloat(t.css(a,r,i?"margin":"border")):this[r]():null},t.fn[r]=function(i){var a=this[0];if(!a)return i==null?null:this;if(t.isFunction(i))return this.each(function(w){var v=t(this);v[r](i.call(this,w,v[r]()))});if(t.isWindow(a)){var l=a.document.documentElement["client"+n],c=a.document.body;return a.document.compatMode==="CSS1Compat"&&l||c&&c["client"+n]||l}if(a.nodeType===9)return Math.max(a.documentElement["client"+n],a.body["scroll"+n],a.documentElement["scroll"+n],a.body["offset"+n],a.documentElement["offset"+n]);if(i===P){var f=t.css(a,r),m=parseFloat(f);return t.isNumeric(m)?m:f}return this.css(r,typeof i=="string"?i:i+"px")}}),_.jQuery=_.$=t})(window);(function(_){var P,Y,X="",me="4.1.0",V=Math.PI,xe=V/2,be="ontouchstart"in window,ve=be?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},K={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},he=["single","double"],Se=["ltr","rtl"],Me={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},Te={cornerSize:100},De=6,R={init:function(s){P="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,Y=ie(),X=lt();var o,t=0,d=this.data(),g=this.children();if(s=_.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},Me,s),d.opts=s,d.pageObjs={},d.pages={},d.pageWrap={},d.pageZoom={},d.pagePlace={},d.pageMv=[],d.zoom=1,d.totalPages=s.pages||0,d.eventHandlers={touchStart:_.proxy(R._touchStart,this),touchMove:_.proxy(R._touchMove,this),touchEnd:_.proxy(R._touchEnd,this),start:_.proxy(R._eventStart,this)},s.when)for(o in s.when)Le(o,s.when)&&this.bind(o,s.when[o]);for(this.css({position:"relative",width:s.width,height:s.height}),this.turn("display",s.display),s.direction!==""&&this.turn("direction",s.direction),P&&!be&&s.acceleration&&this.transform(pe(0,0,!0)),o=0;oW)throw Be('Page "'+o+'" cannot be inserted')}else o=W,g=!0;return o>=1&&o<=W&&(A.display=="double"?d=o%2?" odd":" even":d="",A.done&&this.turn("stop"),o in A.pageObjs&&R._movePages.call(this,o,1),g&&(A.totalPages=W),A.pageObjs[o]=_(s).css({float:"left"}).addClass("page p"+o+d),!L()&&A.pageObjs[o].hasClass("hard")&&A.pageObjs[o].removeClass("hard"),R._addPage.call(this,o),R._removeFromDOM.call(this)),this},_addPage:function(s){var o=this.data(),t=o.pageObjs[s];if(t)if(R._necessPage.call(this,s)){if(!o.pageWrap[s]){o.pageWrap[s]=_("
",{class:"page-wrapper",page:s,css:{position:"absolute",overflow:"hidden"}}),this.append(o.pageWrap[s]),o.pagePlace[s]||(o.pagePlace[s]=s,o.pageObjs[s].appendTo(o.pageWrap[s]));var d=R._pageSize.call(this,s,!0);t.css({width:d.width,height:d.height}),o.pageWrap[s].css(d)}o.pagePlace[s]==s&&R._makeFlip.call(this,s)}else o.pagePlace[s]=0,o.pageObjs[s]&&o.pageObjs[s].remove()},hasPage:function(s){return Le(s,this.data().pageObjs)},center:function(s){var o=this.data(),t=_(this).turn("size"),d=0;if(!o.noCenter){if(o.display=="double"){var g=this.turn("view",s||o.tpage||o.page);o.direction=="ltr"?g[0]?g[1]||(d+=t.width/4):d-=t.width/4:g[0]?g[1]||(d-=t.width/4):d+=t.width/4}_(this).css({marginLeft:d})}return this},destroy:function(){var s=this,o=this.data(),t=["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"];if(Ye("destroying",this)!="prevented"){for(o.destroying=!0,_.each(t,function(d,g){s.unbind(g)}),this.parent().unbind("start",o.eventHandlers.start),_(document).unbind(ve.move,o.eventHandlers.touchMove).unbind(ve.up,o.eventHandlers.touchEnd);o.totalPages!==0;)this.turn("removePage",o.totalPages);return o.fparent&&o.fparent.remove(),o.shadow&&o.shadow.remove(),this.removeData(),o=null,this}},is:function(){return typeof this.data().pages=="object"},zoom:function(s){var o=this.data();if(typeof s=="number"){if(s<.001||s>100)throw Be(s+" is not a value for zoom");if(Ye("zooming",this,[s,o.zoom])=="prevented")return this;var t=this.turn("size"),d=this.turn("view"),g=1/o.zoom,A=Math.round(t.width*g*s),W=Math.round(t.height*g*s);o.zoom=s,_(this).turn("stop").turn("size",A,W),o.opts.autoCenter&&this.turn("center"),R._updateShadow.call(this);for(var H=0;HA.totalPages)throw Be('"'+s+'" is not a valid page');return g[1]=g[1]||g[0],g[0]>=1&&g[1]<=A.totalPages?(o=Math.floor((De-2)/2),A.totalPages-g[1]>g[0]?(t=Math.min(g[0]-1,o),d=2*o-t):(d=Math.min(A.totalPages-g[1],o),t=2*o-d)):(t=De-1,d=De-1),[Math.max(1,g[0]-t),Math.min(A.totalPages,g[1]+d)]},_necessPage:function(s){if(s===0)return!0;var o=this.turn("range");return this.data().pageObjs[s].hasClass("fixed")||s>=o[0]&&s<=o[1]},_removeFromDOM:function(){var s,o=this.data();for(s in o.pageWrap)Le(s,o.pageWrap)&&!R._necessPage.call(this,s)&&R._removePageFromDOM.call(this,s)},_removePageFromDOM:function(s){var o=this.data();if(o.pages[s]){var t=o.pages[s].data();U._moveFoldingPage.call(o.pages[s],!1),t.f&&t.f.fwrapper&&t.f.fwrapper.remove(),o.pages[s].removeData(),o.pages[s].remove(),delete o.pages[s]}o.pageObjs[s]&&o.pageObjs[s].remove(),o.pageWrap[s]&&(o.pageWrap[s].remove(),delete o.pageWrap[s]),R._removeMv.call(this,s),delete o.pagePlace[s],delete o.pageZoom[s]},removePage:function(s){var o=this.data();if(s=="*")for(;o.totalPages!==0;)this.turn("removePage",o.totalPages);else{if(s<1||s>o.totalPages)throw Be("The page "+s+" doesn't exist");o.pageObjs[s]&&(this.turn("stop"),R._removePageFromDOM.call(this,s),delete o.pageObjs[s]),R._movePages.call(this,s,-1),o.totalPages=o.totalPages-1,o.page>o.totalPages?(o.page=null,R._fitPage.call(this,o.totalPages)):(R._makeRange.call(this),this.turn("update"))}return this},_movePages:function(s,o){var t,d=this,g=this.data(),A=g.display=="single",W=function(H){var J=H+o,oe=J%2,ce=oe?" odd ":" even ";g.pageObjs[H]&&(g.pageObjs[J]=g.pageObjs[H].removeClass("p"+H+" odd even").addClass("p"+J+ce)),g.pagePlace[H]&&g.pageWrap[H]&&(g.pagePlace[J]=J,g.pageObjs[J].hasClass("fixed")?g.pageWrap[J]=g.pageWrap[H].attr("page",J):g.pageWrap[J]=g.pageWrap[H].css(R._pageSize.call(d,J,!0)).attr("page",J),g.pages[H]&&(g.pages[J]=g.pages[H].flip("options",{page:J,next:A||oe?J+1:J-1})),o&&(delete g.pages[H],delete g.pagePlace[H],delete g.pageZoom[H],delete g.pageObjs[H],delete g.pageWrap[H]))};if(o>0)for(t=g.totalPages;t>=s;t--)W(t);else for(t=s;t<=g.totalPages;t++)W(t)},display:function(s){var o=this.data(),t=o.display;if(s===void 0)return t;if(_.inArray(s,he)==-1)throw Be('"'+s+'" is not a value for display');switch(s){case"single":o.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),o.pageObjs[0]=_("
",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":o.pageObjs[0]&&(this.turn("stop").css({overflow:""}),o.pageObjs[0].remove(),delete o.pageObjs[0]),this.removeClass("shadow");break}if(o.display=s,t){var d=this.turn("size");R._movePages.call(this,1,0),this.turn("size",d.width,d.height).turn("update")}return this},direction:function(s){var o=this.data();if(s===void 0)return o.direction;if(s=s.toLowerCase(),_.inArray(s,Se)==-1)throw Be('"'+s+'" is not a value for direction');return s=="rtl"&&_(this).attr("dir","ltr").css({direction:"ltr"}),o.direction=s,o.done&&this.turn("size",_(this).width(),_(this).height()),this},animating:function(){return this.data().pageMv.length>0},corner:function(){var s,o,t=this.data();for(o in t.pages)if(Le(o,t.pages)&&(s=t.pages[o].flip("corner")))return s;return!1},data:function(){return this.data()},disable:function(s){var o,t=this.data(),d=this.turn("view");t.disabled=s===void 0||s===!0;for(o in t.pages)Le(o,t.pages)&&t.pages[o].flip("disable",t.disabled?!0:_.inArray(parseInt(o,10),d)==-1);return this},disabled:function(s){return s===void 0?this.data().disabled===!0:this.turn("disable",s)},size:function(s,o){if(s===void 0||o===void 0)return{width:this.width(),height:this.height()};this.turn("stop");var t,d,g=this.data(),A=g.display=="double"?s/2:s;this.css({width:s,height:o}),g.pageObjs[0]&&g.pageObjs[0].css({width:A,height:o});for(t in g.pageWrap)Le(t,g.pageWrap)&&(d=R._pageSize.call(this,t,!0),g.pageObjs[t].css({width:d.width,height:d.height}),g.pageWrap[t].css(d),g.pages[t]&&g.pages[t].css({width:d.width,height:d.height}));return this.turn("resize"),this},resize:function(){var s,o=this.data();for(o.pages[0]&&(o.pageWrap[0].css({left:-this.width()}),o.pages[0].flip("resize",!0)),s=1;s<=o.totalPages;s++)o.pages[s]&&o.pages[s].flip("resize",!0);R._updateShadow.call(this),o.opts.autoCenter&&this.turn("center")},_removeMv:function(s){var o,t=this.data();for(o=0;o0?t[0]:0,t[1]<=o.totalPages?t[1]:0]:[t[0]>0&&t[0]<=o.totalPages?t[0]:0]},stop:function(s,o){if(this.turn("animating")){var t,d,g,A=this.data();for(A.tpage&&(A.page=A.tpage,delete A.tpage),t=0;ts;t--)this.turn("removePage",t);return o.totalPages=s,R._fitPage.call(this,o.page),this}else return o.totalPages},_missing:function(s){var o=this.data();if(!(o.totalPages<1)){var t,d=this.turn("range",s),g=[];for(t=d[0];t<=d[1];t++)o.pageObjs[t]||g.push(t);g.length>0&&this.trigger("missing",[g])}},_fitPage:function(s){var o=this.data(),t=this.turn("view",s);if(R._missing.call(this,s),!!o.pageObjs[s]){o.page=s,this.turn("stop");for(var d=0;dA[1]?(o=A[1],t=W[0]):A[0]&&so?"r":"l"):d.pages[o].flip("turnPage",s>o?"l":"r"):d.direction=="ltr"?d.pages[o].flip("turnPage",J[s>o?1:0]):d.pages[o].flip("turnPage",J[s>o?0:1]))},page:function(s){var o=this.data();if(s===void 0)return o.page;if(!o.disabled&&!o.destroying){if(s=parseInt(s,10),s>0&&s<=o.totalPages)return s!=o.page&&(!o.done||_.inArray(s,this.turn("view"))!=-1?R._fitPage.call(this,s):R._turnPage.call(this,s)),this;throw Be("The page "+s+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,R._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,R._view.call(this,this.data().page).shift()-1))},peel:function(s,o){var t=this.data(),d=this.turn("view");if(o=o===void 0?!0:o===!0,s===!1)this.turn("stop",null,o);else if(t.display=="single")t.pages[t.page].flip("peel",s,o);else{var g;t.direction=="ltr"?g=s.indexOf("l")!=-1?d[0]:d[1]:g=s.indexOf("l")!=-1?d[1]:d[0],t.pages[g]&&t.pages[g].flip("peel",s,o)}return this},_addMotionPage:function(){var s=_(this).data().f.opts,o=s.turn;o.data(),R._addMv.call(o,s.page)},_eventStart:function(s,o,t){var d=o.turn.data(),g=d.pageZoom[o.page];if(s.isDefaultPrevented()){R._updateShadow.call(o.turn);return}g&&g!=d.zoom&&(o.turn.trigger("zoomed",[o.page,o.turn.turn("view",o.page),g,d.zoom]),d.pageZoom[o.page]=d.zoom),d.display=="single"&&t&&(t.charAt(1)=="l"&&d.direction=="ltr"||t.charAt(1)=="r"&&d.direction=="rtl"?(o.next=o.nexto.page?o.next:o.page+1),R._addMotionPage.call(s.target),R._updateShadow.call(o.turn)},_eventEnd:function(s,o,t){var d=_(s.target);d.data().f;var g=o.turn,A=g.data();if(t){var W=A.tpage||A.page;(W==o.next||W==o.page)&&(delete A.tpage,R._fitPage.call(g,W||o.next,!0))}else R._removeMv.call(g,o.page),R._updateShadow.call(g),g.turn("update")},_eventPressed:function(s){var o=_(s.target).data().f,t=o.opts.turn,d=t.data();return d.pages,d.mouseAction=!0,t.turn("update"),o.time=new Date().getTime()},_eventReleased:function(s,o){var t,d=_(s.target),g=d.data().f,A=g.opts.turn,W=A.data();W.display=="single"?t=o.corner=="br"||o.corner=="tr"?o.xd.width()/2:t=o.x<0||o.x>d.width(),(new Date().getTime()-g.time<200||t)&&(s.preventDefault(),R._turnPage.call(A,g.opts.next)),W.mouseAction=!1},_flip:function(s){s.stopPropagation();var o=_(s.target).data().f.opts;o.turn.trigger("turn",[o.next]),o.turn.data().opts.autoCenter&&o.turn.turn("center",o.next)},_touchStart:function(){var s=this.data();for(var o in s.pages)if(Le(o,s.pages)&&U._eventStart.apply(s.pages[o],arguments)===!1)return!1},_touchMove:function(){var s=this.data();for(var o in s.pages)Le(o,s.pages)&&U._eventMove.apply(s.pages[o],arguments)},_touchEnd:function(){var s=this.data();for(var o in s.pages)Le(o,s.pages)&&U._eventEnd.apply(s.pages[o],arguments)},calculateZ:function(s){var o,t,d,g,A,W=this,H=this.data(),J=this.turn("view"),oe=J[0]||J[1],ce=s.length-1,fe={pageZ:{},partZ:{},pageV:{}},Ie=function(je){var _e=W.turn("view",je);_e[0]&&(fe.pageV[_e[0]]=!0),_e[1]&&(fe.pageV[_e[1]]=!0)};for(o=0;o<=ce;o++)t=s[o],d=H.pages[t].data().f.opts.next,g=H.pagePlace[t],Ie(t),Ie(d),A=H.pagePlace[d]==d?d:t,fe.pageZ[A]=H.totalPages-Math.abs(oe-A),fe.partZ[g]=H.totalPages*2-ce+o;return fe},update:function(){var s,o=this.data();if(this.turn("animating")&&o.pageMv[0]!==0){var t,d,g=this.turn("calculateZ",o.pageMv),A=this.turn("corner"),W=this.turn("view"),H=this.turn("view",o.tpage);for(s in o.pageWrap)Le(s,o.pageWrap)&&(d=o.pageObjs[s].hasClass("fixed"),o.pageWrap[s].css({display:g.pageV[s]||d?"":"none",zIndex:(o.pageObjs[s].hasClass("hard")?g.partZ[s]:g.pageZ[s])||(d?-1:0)}),(t=o.pages[s])&&(t.flip("z",g.partZ[s]||null),g.pageV[s]&&t.flip("resize"),o.tpage?t.flip("hover",!1).flip("disable",_.inArray(parseInt(s,10),o.pageMv)==-1&&s!=H[0]&&s!=H[1]):t.flip("hover",A===!1).flip("disable",s!=W[0]&&s!=W[1])))}else for(s in o.pageWrap)if(Le(s,o.pageWrap)){var J=R._setPageLoc.call(this,s);o.pages[s]&&o.pages[s].flip("disable",o.disabled||J!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var s,o,t,d=this.data(),g=this.width(),A=this.height(),W=d.display=="single"?g:g/2;s=this.turn("view"),d.shadow||(d.shadow=_("
",{class:"shadow",css:te(0,0,0).css}).appendTo(this));for(var H=0;H=t||g.y>=d)return!1;var W=U._cAllowed.call(this);switch(o.effect){case"hard":if(g.x>t-A)g.corner="r";else if(g.x=d-A)g.corner+="b";else return!1;if(g.x<=A)g.corner+="l";else if(g.x>=t-A)g.corner+="r";else return!1;break}return!g.corner||_.inArray(g.corner,W)==-1?!1:g},_isIArea:function(s){var o=this.data().f.parent.offset();return s=be&&s.originalEvent?s.originalEvent.touches[0]:s,U._cornerActivated.call(this,{x:s.pageX-o.left,y:s.pageY-o.top})},_c:function(s,o){switch(o=o||0,s){case"tl":return q(o,o);case"tr":return q(this.width()-o,o);case"bl":return q(o,this.height()-o);case"br":return q(this.width()-o,this.height()-o);case"l":return q(o,0);case"r":return q(this.width()-o,0)}},_c2:function(s){switch(s){case"tl":return q(this.width()*2,0);case"tr":return q(-this.width(),0);case"bl":return q(this.width()*2,this.height());case"br":return q(-this.width(),this.height());case"l":return q(this.width()*2,0);case"r":return q(-this.width(),0)}},_foldingPage:function(){var s=this.data().f;if(s){var o=s.opts;if(o.turn)return s=o.turn.data(),s.display=="single"?o.next>1||o.page>1?s.pageObjs[0]:null:s.pageObjs[o.next]}},_backGradient:function(){var s=this.data().f,o=s.opts.turn.data(),t=o.opts.gradients&&(o.display=="single"||s.opts.page!=2&&s.opts.page!=o.totalPages-1);return t&&!s.bshadow&&(s.bshadow=_("
",te(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(s.parent)),t},type:function(){return this.data().f.effect},resize:function(s){var o=this.data().f,t=o.opts.turn.data(),d=this.width(),g=this.height();switch(o.effect){case"hard":s&&(o.wrapper.css({width:d,height:g}),o.fpage.css({width:d,height:g}),t.opts.gradients&&(o.ashadow.css({width:d,height:g}),o.bshadow.css({width:d,height:g})));break;case"sheet":if(s){var A=Math.round(Math.sqrt(Math.pow(d,2)+Math.pow(g,2)));o.wrapper.css({width:A,height:A}),o.fwrapper.css({width:A,height:A}).children(":first-child").css({width:d,height:g}),o.fpage.css({width:d,height:g}),t.opts.gradients&&o.ashadow.css({width:d,height:g}),U._backGradient.call(this)&&o.bshadow.css({width:d,height:g})}if(o.parent.is(":visible")){var W=kt(o.parent[0]);o.fwrapper.css({top:W.top,left:W.left}),W=kt(o.opts.turn[0]),o.fparent.css({top:-W.top,left:-W.left})}this.flip("z",o.opts["z-index"]);break}},_addPageWrapper:function(){var s=this.data().f,o=s.opts.turn.data(),t=this.parent();if(s.parent=t,!s.wrapper)switch(s.effect){case"hard":var d={};d[X+"transform-style"]="preserve-3d",d[X+"backface-visibility"]="hidden",s.wrapper=_("
",te(0,0,2)).css(d).appendTo(t).prepend(this),s.fpage=_("
",te(0,0,1)).css(d).appendTo(t),o.opts.gradients&&(s.ashadow=_("
",te(0,0,0)).hide().appendTo(t),s.bshadow=_("
",te(0,0,0)));break;case"sheet":if(this.width(),this.height(),s.fparent=s.opts.turn.data().fparent,!s.fparent){var g=_("
",{css:{"pointer-events":"none"}}).hide();g.data().flips=0,g.css(te(0,0,"auto","visible").css).appendTo(s.opts.turn),s.opts.turn.data().fparent=g,s.fparent=g}this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),s.wrapper=_("
",te(0,0,this.css("z-index"))).appendTo(t).prepend(this),s.fwrapper=_("
",te(t.offset().top,t.offset().left)).hide().appendTo(s.fparent),s.fpage=_("
",te(0,0,0,"visible")).css({cursor:"default"}).appendTo(s.fwrapper),o.opts.gradients&&(s.ashadow=_("
",te(0,0,1)).appendTo(s.fpage)),U.setData.call(this,s);break}U.resize.call(this,!0)},_fold:function(s){var o=this.data().f,t=o.opts.turn.data(),d=U._c.call(this,s.corner),g=this.width(),A=this.height();switch(o.effect){case"hard":s.corner=="l"?s.x=Math.min(Math.max(s.x,0),g*2):s.x=Math.max(Math.min(s.x,g),-g);var W,H,J,oe,ce,fe=t.totalPages,Ie=o.opts["z-index"]||fe,je={overflow:"visible"},_e=d.x?(d.x-s.x)/g:s.x/g,Ae=_e*90,Xe=Ae<90;switch(s.corner){case"l":oe="0% 50%",ce="100% 50%",Xe?(W=0,H=o.opts.next-1>0,J=1):(W="100%",H=o.opts.page+1xe&&(ye.x=ye.x+Math.abs(ye.y*de.y/de.x),ye.y=0,Math.round(ye.x*Math.tan(V-le))xe){var st=V-le,ut=_t-A/Math.sin(st);We=q(Math.round(ut*Math.cos(st)),Math.round(ut*Math.sin(st))),Qe&&(We.x=-We.x),Je&&(We.y=-We.y)}gt=Math.round(ye.y/Math.tan(le)+ye.x);var et=g-gt,ot=et*Math.cos(le*2),ct=et*Math.sin(le*2);if(Ct=q(Math.round(Qe?et-ot:gt+ot),Math.round(Je?ct:A-ct)),t.opts.gradients){Ue=et*Math.sin(le);var tt=U._c2.call(Ve,s.corner),Ee=Math.sqrt(Math.pow(tt.x-s.x,2)+Math.pow(tt.y-s.y,2))/g;St=Math.sin(xe*(Ee>1?2-Ee:Ee)),vt=Math.min(Ee,1),mt=Ue>100?(Ue-100)/Ue:0,Ke=q(Ue*Math.sin(le)/g*100,Ue*Math.cos(le)/A*100),U._backGradient.call(Ve)&&(Ze=q(Ue*1.2*Math.sin(le)/g*100,Ue*1.2*Math.cos(le)/A*100),Qe||(Ze.x=100-Ze.x),Je||(Ze.y=100-Ze.y))}return ye.x=Math.round(ye.x),ye.y=Math.round(ye.y),!0},wt=function(de,Oe,le,He){var $e=["0","auto"],st=(g-_t)*le[0]/100,ut=(A-_t)*le[1]/100,et={left:$e[Oe[0]],top:$e[Oe[1]],right:$e[Oe[2]],bottom:$e[Oe[3]]},ot={},ct=He!=90&&He!=-90?Qe?-1:1:0,tt=le[0]+"% "+le[1]+"%";Ve.css(et).transform(nt(He)+pe(de.x+ct,de.y,yt),tt),o.fpage.css(et).transform(nt(He)+pe(de.x+Ct.x-We.x-g*le[0]/100,de.y+Ct.y-We.y-A*le[1]/100,yt)+nt((180/He-2)*He),tt),o.wrapper.transform(pe(-de.x+st-ct,-de.y+ut,yt)+nt(-He),tt),o.fwrapper.transform(pe(-de.x+We.x+st,-de.y+We.y+ut,yt)+nt(-He),tt),t.opts.gradients&&(le[0]&&(Ke.x=100-Ke.x),le[1]&&(Ke.y=100-Ke.y),ot["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*St+")",Ot.css(ot),pt(o.ashadow,q(Qe?100:0,Je?0:100),q(Ke.x,Ke.y),[[mt,"rgba(0,0,0,0)"],[(1-mt)*.8+mt,"rgba(0,0,0,"+.2*vt+")"],[1,"rgba(255,255,255,"+.2*vt+")"]],3),U._backGradient.call(Ve)&&pt(o.bshadow,q(Qe?0:100,Je?0:100),q(Ze.x,Ze.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*vt+")"],[1,"rgba(0,0,0,0)"]],3))};switch(s.corner){case"l":break;case"r":break;case"tl":s.x=Math.max(s.x,1),it(),wt(ye,[1,0,0,1],[100,0],ze);break;case"tr":s.x=Math.min(s.x,g-1),it(),wt(q(-ye.x,ye.y),[0,0,0,1],[0,0],-ze);break;case"bl":s.x=Math.max(s.x,1),it(),wt(q(ye.x,-ye.y),[1,1,0,0],[100,100],-ze);break;case"br":s.x=Math.min(s.x,g-1),it(),wt(q(-ye.x,-ye.y),[0,1,1,0],[0,100],ze);break}break}o.point=s},_moveFoldingPage:function(s){var o=this.data().f;if(o){var t=o.opts.turn,d=t.data(),g=d.pagePlace;if(s){var A=o.opts.next;if(g[A]!=o.opts.page){o.folding&&U._moveFoldingPage.call(this,!1);var W=U._foldingPage.call(this);W.appendTo(o.fpage),g[A]=o.opts.page,o.folding=A}t.turn("update")}else if(o.folding){if(d.pages[o.folding]){var H=d.pages[o.folding].data().f;d.pageObjs[o.folding].appendTo(H.wrapper)}else d.pageWrap[o.folding]&&d.pageObjs[o.folding].appendTo(d.pageWrap[o.folding]);o.folding in g&&(g[o.folding]=o.folding),delete o.folding}}},_showFoldedPage:function(s,o){var t=U._foldingPage.call(this),d=this.data(),g=d.f,A=g.visible;if(t){if(!A||!g.point||g.point.corner!=s.corner){var W=g.status=="hover"||g.status=="peel"||g.opts.turn.data().mouseAction?s.corner:null;if(A=!1,Ye("start",this,[g.opts,W])=="prevented")return!1}if(o){var H=this,J=g.point&&g.point.corner==s.corner?g.point:U._c.call(this,s.corner,1);this.animatef({from:[J.x,J.y],to:[s.x,s.y],duration:500,frame:function(oe){s.x=Math.round(oe[0]),s.y=Math.round(oe[1]),U._fold.call(H,s)}})}else U._fold.call(this,s),d.effect&&!d.effect.turning&&this.animatef(!1);if(!A)switch(g.effect){case"hard":g.visible=!0,U._moveFoldingPage.call(this,!0),g.fpage.show(),g.opts.shadows&&g.bshadow.show();break;case"sheet":g.visible=!0,g.fparent.show().data().flips++,U._moveFoldingPage.call(this,!0),g.fwrapper.show(),g.bshadow&&g.bshadow.show();break}return!0}return!1},hide:function(){var s=this.data().f,o=s.opts.turn.data(),t=U._foldingPage.call(this);switch(s.effect){case"hard":o.opts.gradients&&(s.bshadowLoc=0,s.bshadow.remove(),s.ashadow.hide()),s.wrapper.transform(""),s.fpage.hide();break;case"sheet":--s.fparent.data().flips===0&&s.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),s.wrapper.transform(""),s.fwrapper.hide(),s.bshadow&&s.bshadow.hide(),t.transform("");break}return s.visible=!1,this},hideFoldedPage:function(s){var o=this.data().f;if(o.point){var t=this,d=o.point,g=function(){o.point=null,o.status="",t.flip("hide"),t.trigger("end",[o.opts,!1])};if(s){var A=U._c.call(this,d.corner),W=d.corner.substr(0,1)=="t",H=W?Math.min(0,d.y-A.y)/2:Math.max(0,d.y-A.y)/2,J=q(d.x,d.y+H),oe=q(A.x,A.y-H);this.animatef({from:0,to:1,frame:function(ce){var fe=D(d,J,oe,A,ce);d.x=fe.x,d.y=fe.y,U._fold.call(t,d)},complete:g,duration:800,hiding:!0})}else this.animatef(!1),g()}},turnPage:function(s){var o=this,t=this.data().f,d=t.opts.turn.data();s={corner:t.corner?t.corner.corner:s||U._cAllowed.call(this)[0]};var g=t.point||U._c.call(this,s.corner,t.opts.turn?d.opts.elevation:0),A=U._c2.call(this,s.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(W){var H=D(g,g,A,A,W);s.x=H.x,s.y=H.y,U._showFoldedPage.call(o,s)},complete:function(){o.trigger("end",[t.opts,!0])},duration:d.opts.duration,turning:!0}),t.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(s){var o=this.data().f,t=o.opts.turn;if(!o.corner&&!o.disabled&&!this.flip("isTurning")&&o.opts.page==t.data().pagePlace[o.opts.page]){if(o.corner=U._isIArea.call(this,s),o.corner&&U._foldingPage.call(this))return this.trigger("pressed",[o.point]),U._showFoldedPage.call(this,o.corner),!1;o.corner=null}},_eventMove:function(s){var o=this.data().f;if(!o.disabled){if(s=be?s.originalEvent.touches:[s],o.corner){var t=o.parent.offset();o.corner.x=s[0].pageX-t.left,o.corner.y=s[0].pageY-t.top,U._showFoldedPage.call(this,o.corner)}else if(o.hover&&!this.data().effect&&this.is(":visible")){var d=U._isIArea.call(this,s[0]);if(d){if(o.effect=="sheet"&&d.corner.length==2||o.effect=="hard"){o.status="hover";var g=U._c.call(this,d.corner,o.opts.cornerSize/2);d.x=g.x,d.y=g.y,U._showFoldedPage.call(this,d,!0)}}else o.status=="hover"&&(o.status="",U.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var s=this.data().f,o=s.corner;!s.disabled&&o&&Ye("released",this,[s.point||o])!="prevented"&&U.hideFoldedPage.call(this,!0),s.corner=null},disable:function(s){return U.setData.call(this,{disabled:s}),this},hover:function(s){return U.setData.call(this,{hover:s}),this},peel:function(s,o){var t=this.data().f;if(s){if(_.inArray(s,K.all)==-1)throw Be("Corner "+s+" is not permitted");if(_.inArray(s,U._cAllowed.call(this))!=-1){var d=U._c.call(this,s,t.opts.cornerSize/2);t.status="peel",U._showFoldedPage.call(this,{corner:s,x:d.x,y:d.y},o)}}else t.status="",U.hideFoldedPage.call(this,o);return this}};function re(s,o,t){if(!t[0]||typeof t[0]=="object")return o.init.apply(s,t);if(o[t[0]])return o[t[0]].apply(s,Array.prototype.slice.call(t,1));throw Be(t[0]+" is not a method or property")}function te(s,o,t,d){return{css:{position:"absolute",top:s,left:o,overflow:d||"hidden",zIndex:t||"auto"}}}function D(s,o,t,d,g){var A=1-g,W=A*A*A,H=g*g*g;return q(Math.round(W*s.x+3*g*A*A*o.x+3*g*g*A*t.x+H*d.x),Math.round(W*s.y+3*g*A*A*o.y+3*g*g*A*t.y+H*d.y))}function $(s){return s/V*180}function q(s,o){return{x:s,y:o}}function ie(){var s;if(s=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent)){var o=parseFloat(s[1]);return o>534.3}else return!0}function pe(s,o,t){return P&&t?" translate3d("+s+"px,"+o+"px, 0px) ":" translate("+s+"px, "+o+"px) "}function nt(s){return" rotate("+s+"deg) "}function Le(s,o){return Object.prototype.hasOwnProperty.call(o,s)}function lt(){for(var s=["Moz","Webkit","Khtml","O","ms"],o=s.length,t="";o--;)s[o]+"Transform"in document.body.style&&(t="-"+s[o].toLowerCase()+"-");return t}function rt(){var s,o=document.createElement("fakeelement"),t={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(s in t)if(o.style[s]!==void 0)return t[s]}function pt(s,o,t,d,g){var A,W=[];if(X=="-webkit-"){for(A=0;A{un({api:"goBack"})},X=Nt({currentGradeNum:null,bookVersionId:null,page:1,rows:999,type:"COURSEWARE"});Bn(()=>on.grades.map((D,$)=>({...D,color:X.currentGradeNum===$?"var(--van-primary-color)":"",className:X.currentGradeNum===$?"fontBlod":""})));const me=At(!1),V=Nt({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},showBook:!1,book:{}}),xe=async()=>{try{const D=Dt.user.data.schoolInfos,$=D.length>0?D[0].tenantId:null;if($){const{data:q}=await qn({id:$});P.value=q.bookVersionList||[]}}catch(D){}},be=async()=>{var $;V.loading=!0;const D=await zn({...X,currentGradeNum:X.currentGradeNum?X.currentGradeNum:""});(D==null?void 0:D.code)===200&&Array.isArray(($=D==null?void 0:D.data)==null?void 0:$.rows)&&(V.list=D.data.rows.map(q=>(q.load=!1,q.key=Date.now()+q.id,q))),V.loading=!1,me.value=!0},ve=async()=>{var $,q,ie;V.loading=!0;const D=await Rn({clientType:"STUDENT",userId:(q=($=Dt.user)==null?void 0:$.data)==null?void 0:q.id,page:X.page,rows:X.rows,currentGradeNum:X.currentGradeNum?X.currentGradeNum:""});(D==null?void 0:D.code)===200&&Array.isArray((ie=D==null?void 0:D.data)==null?void 0:ie.rows)&&(V.list=D.data.rows.map(pe=>(pe.name=`${pe.name}`,pe.load=!1,pe.favoriteFlag=!0,pe.key=Date.now()+pe.id,pe))),V.loading=!1},K=async()=>{var $;V.loading=!0;const D=await Xn({page:X.page,rows:X.rows});(D==null?void 0:D.code)===200&&Array.isArray(($=D==null?void 0:D.data)==null?void 0:$.rows)&&(V.list=D.data.rows.map(q=>(q.load=!1,q.key=Date.now()+q.id,q))),V.loading=!1,me.value=!0},he=()=>{V.tab==="all"&&be(),V.tab==="favorite"&&ve(),V.tab==="course"&&K()},Se=()=>{he()};Lt(()=>{xe(),he()});const Me=async D=>{D.favoriteFlag?await Vn({lessonCoursewareId:D.id}):(await Un({lessonCoursewareId:D.id}),V.tab==="favorite"&&he())};let Te=null;const De=(D,$=300)=>{Te&&clearTimeout(Te),Te=setTimeout(D,$)},R=async D=>{var $,q;if(V.tab==="course"){const ie=await Gn(D.id);if(console.log(ie,D,"course"),(ie==null?void 0:ie.code)==200&&Array.isArray(($=ie==null?void 0:ie.data)==null?void 0:$.lessonList))V.details=ie.data.lessonList||[],V.bookData=ie.data,console.log("🚀 ~ data.details course:",V.details);else{Hn({title:"提示",message:"课程教材已更新,是否重新加载?"}).then(()=>{he()}).catch(()=>{});return}}else{const ie=await Yn(D.id);(ie==null?void 0:ie.code)==200&&Array.isArray((q=ie==null?void 0:ie.data)==null?void 0:q.lessonList)&&(V.details=ie.data.lessonList||[],V.bookData=ie.data,console.log("🚀 ~ data.details:",V.details))}U(D.id),re(()=>{V.showBook=!0})},U=D=>{const $=document.querySelector(`[data-id="${D}"]`);if(!$)return;const q=$.getBoundingClientRect();V.book=q},re=D=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{D()})})},te=async D=>{await R(D)};return()=>O("div",{class:ue.container},[O("div",{class:ue.head,style:{opacity:V.showBook?0:""}},[O("div",{class:ue.back,onClick:Y},[O("img",{src:cn},null)]),O(Qn,{class:ue.tabs,active:V.tab,"onUpdate:active":D=>V.tab=D,onChange:()=>Se()},{default:()=>[O(qt,{title:"全部教材",name:"all"},null),O(qt,{title:"课程教材",name:"course"},null),O(qt,{name:"favorite"},{title:()=>O("div",{id:"courseware-2"},[Ne("我的收藏")])})]}),O(at,rn({class:ue.downBtn,round:!0,size:"small",onClick:()=>_.value=!0},{id:"courseware-3"}),{default:()=>[Ne("筛选"),O("svg",{class:[ue.icon,_.value?ue.iconUp:""],width:"9px",height:"5px",viewBox:"0 0 9 5",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[O("title",null,[Ne("三角形")]),O("g",{id:"演示用",stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},[O("g",{id:"全部教材-筛选",transform:"translate(-769.000000, -35.000000)",fill:"currentColor"},[O("g",{id:"编组-3",transform:"translate(696.000000, 20.000000)"},[O("g",{id:"筛选目录备份-2",transform:"translate(13.000000, 7.000000)"},[O("path",{d:"M64.8716471,8.41294119 L68.2489659,12.1655176 C68.4336954,12.3707726 68.4170562,12.6869176 68.2118012,12.8716471 C68.1199888,12.9542782 68.0008397,13 67.8773188,13 L61.1226812,13 C60.8465388,13 60.6226812,12.7761424 60.6226812,12.5 C60.6226812,12.3764791 60.668403,12.25733 60.7510341,12.1655176 L64.1283529,8.41294119 C64.3130824,8.20768618 64.6292274,8.19104698 64.8344824,8.37577649 C64.8475136,8.38750459 64.859919,8.39990996 64.8716471,8.41294119 Z",id:"三角形",transform:"translate(64.500000, 10.500000) rotate(-180.000000) translate(-64.500000, -10.500000) "},null)])])])])])]})]),O("div",{class:ue.content},[O("div",{class:[ue.wrap,V.list.length<=0&&!V.loading?ue.emtpyWrap:""]},[V.list.map((D,$)=>O("div",{class:[ue.wrapItem,V.bookData.id===D.id&&V.showBook?ue.wrapItemHide:""],key:D.key,onClick:()=>te(D)},[O("div",{class:ue.item},[O(Kn,rn({"data-id":D.id},{id:$==0?"courseware-0":""},{class:[ue.cover,D.load?ue.loaded:""],objectFit:"cover",src:D.coverImg,onLoad:()=>{D.load=!0},onError:()=>{D.load=!0}}),null)]),O("div",{class:ue.name},[D.name]),!V.loading&&V.tab!=="course"&&O("div",{id:$===0?"courseware-1":"",class:ue.favoriteBtn,onClick:q=>{q.stopPropagation(),D.favoriteFlag=!D.favoriteFlag,De(()=>Me(D))}},[O(Zn,{isFavorite:D.favoriteFlag},null)])])),V.list.length<=0&&!V.loading&&O(Wn,{image:"list",description:"暂无数据"},null)])]),O(Ir,{show:V.showBook,bookData:V.bookData,tab:V.tab,rect:V.book,onClose:()=>{V.showBook=!1}},null),me.value?O(Br,null,null):null,O(zt,{show:_.value,"onUpdate:show":D=>_.value=D,class:ue.popupContainer},{default:()=>[O("div",{class:ue.popoverContainer},[O("div",{class:ue.searchList},[O("div",{class:ue.popoverTitle},[Ne("教材版本")]),O("div",{class:[ue.popupList,ue.versionList]},[P.value.map(D=>O(sn,{plain:X.bookVersionId===D.bookVersionId,round:!0,onClick:()=>X.bookVersionId=D.bookVersionId},{default:()=>[D.bookVersionName]}))]),O("div",{class:ue.popoverTitle},[Ne("选择年级")]),O("div",{class:[ue.popupList,ue.versionList]},[on.grades.map(D=>O(sn,{plain:X.currentGradeNum===D.value,round:!0,onClick:()=>X.currentGradeNum=D.value},{default:()=>[D.text]}))])]),O("div",{class:ue.btnGroup},[O(at,{round:!0,onClick:()=>{X.bookVersionId=null,X.currentGradeNum=null}},{default:()=>[Ne("重置")]}),O(at,{round:!0,class:ue.btnSure,onClick:()=>{he(),_.value=!1}},{default:()=>[Ne("确认")]})])])]})])}});export{on as BOOK_DATA,Yr as default};