!function(){const e=["bookVersionId","currentGradeNum"];function t(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n,r,i={},a=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function n(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function r(e){for(var t=1;t{a=e.d,s=e.a,l=e.q,c=e.M,u=e.x,d=e.r,p=e.y,f=e.al,h=e.w,g=e.F,m=e.A,v=e.z,y=e.E,b=e.a5,w=e.a7,x=e.V,A=e.C,_=e.e,k=e.h,T=e.a0,C=e.Q},e=>{N=e.a,j=e.b,S=e.c,M=e.d,E=e.e,P=e.f,O=e.g,D=e.h,L=e.i},e=>{F=e.q},e=>{I=e.g,B=e.s,W=e.a,z=e.b},e=>{H=e.d},e=>{R=e.N},e=>{q=e.T,V=e.a},e=>{U=e.T},null,null,null],execute:function(){var G=document.createElement("style");G.textContent="._container_1mit6_1{position:fixed;left:0;top:0;width:100vw;height:100vh;overflow:hidden;background:url("+new URL("icon_bg-f94bd665.png",i.meta.url).href+') no-repeat center center / cover;display:flex;flex-direction:column}._head_1mit6_12{position:relative;display:flex;align-items:center;justify-content:space-between;padding:.50667rem .61333rem .21333rem 1.09333rem;transition:opacity .3s ease-in-out}._head_1mit6_12 ._back_1mit6_20 img{display:block}._head_1mit6_12 ._tabs_1mit6_23 .van-tab{color:rgba(255,255,255,.9);font-size:.4rem;padding:0 .42667rem}._head_1mit6_12 ._tabs_1mit6_23 .van-tab.van-tab--active{color:#fff}._head_1mit6_12 ._tabs_1mit6_23 .van-tabs__nav.van-tabs__nav--line{background:transparent}._head_1mit6_12 ._tabs_1mit6_23 .van-tabs__line{background:#fff;width:.48rem;height:.10667rem}._downBtn_1mit6_39{width:2.24rem;height:.85333rem;background:#f8f9fc;border-radius:.42667rem;border:none;padding:0;display:flex;justify-content:center;align-items:center}._downBtn_1mit6_39._activeBtn_1mit6_50 ._icon_1mit6_50{color:var(--van-primary-color)!important}._downBtn_1mit6_39._activeBtn_1mit6_50 .van-button__text{color:var(--van-primary-color)}._downBtn_1mit6_39 .van-button__content{width:100%}._downBtn_1mit6_39 .van-button__text{width:100%;height:100%;display:flex;justify-content:center;align-items:center;font-size:.34667rem;color:#333;font-weight:400}._downBtn_1mit6_39 ._icon_1mit6_50{width:.21333rem;height:.13333rem;margin-left:.10667rem;transition:transform .2s ease}._downBtn_1mit6_39 ._iconUp_1mit6_75{color:var(--van-primary-color);transform:rotate(180deg);transition:transform .2s ease}._popover_1mit6_80{width:2.21333rem;border:none}._popover_1mit6_80 .van-popover__action{display:flex;justify-content:center;align-items:center;padding:0;width:100%;height:.96rem;color:#999;font-size:.34667rem}._popover_1mit6_80 .van-popover__content{max-height:70vh;overflow-x:hidden;overflow-y:auto}._content_1mit6_99{flex:1;overflow-y:hidden;overflow-x:auto;display:flex}._content_1mit6_99 ._wrap_1mit6_105{position:relative;display:flex;height:100%;padding:.53333rem 1.68rem 0}._content_1mit6_99 ._wrap_1mit6_105._emtpyWrap_1mit6_111{width:100%}._content_1mit6_99 .van-empty__description{font-size:.37333rem;color:#fff}._content_1mit6_99 .van-empty__image{width:5.33333rem;height:5.33333rem}._wrapItem_1mit6_122{position:relative;width:4.10667rem;display:flex;flex-direction:column;align-items:center;padding:0 .42667rem;flex-shrink:0;z-index:1}._wrapItem_1mit6_122 ._item_1mit6_132{position:relative;margin-bottom:.4rem;width:100%;height:4.53333rem;background-color:#edeff2;box-shadow:0 .13333rem .37333rem rgba(0,0,0,.4)}._wrapItem_1mit6_122 ._item_1mit6_132 img{position:absolute}._wrapItem_1mit6_122 ._item_1mit6_132:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._wrapItem_1mit6_122 ._item_1mit6_132:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._wrapItem_1mit6_122 ._name_1mit6_163{font-size:.29333rem;font-weight:400;color:#fff;line-height:.42667rem;text-align:center}._wrapItem_1mit6_122 ._favoriteBtn_1mit6_170{position:absolute;top:3.6rem;right:.53333rem;z-index:3}._containerImg_1mit6_176{position:relative;display:block;width:100%;height:4.53333rem}._containerImg_1mit6_176:before{content:"";position:absolute;top:.10667rem;right:-.10667rem;width:.10667rem;height:calc(100% - .21333rem);background-color:#c5c5c5;z-index:1}._containerImg_1mit6_176:after{content:"";position:absolute;top:.05333rem;right:-.05333rem;width:.10667rem;height:calc(100% - .10667rem);background-color:#e7e7e7;z-index:2}._cover_1mit6_202{position:relative;z-index:3;display:block;width:100%;height:4.53333rem;background-color:#edeff2;background-image:url('+new URL("icon_default-c2fa566e.svg",i.meta.url).href+');background-repeat:no-repeat;background-position:center center}._cover_1mit6_202:after{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:2;background-repeat:no-repeat;background-image:linear-gradient(to right,rgba(0,0,0,.2) 0,rgba(255,255,255,.08) 0%,transparent .5%),linear-gradient(to right,rgba(0,0,0,.1) .3%,rgba(255,255,255,.09) 1.1%,transparent 1.3%);background-size:50% 100%,50% 100%;background-position:0% top,9% top}._cover_1mit6_202 img{width:100%;height:100%;opacity:0;transition:opacity .3s ease-in-out}._cover_1mit6_202._loaded_1mit6_232 img{opacity:1}._book_1mit6_235{position:fixed;top:50%;left:50%;width:55vw;transform:translate(-50%,-50%) scale(0);z-index:20;background-color:#fff;transition:all .3s ease-in-out;visibility:hidden;pointer-events:none;border-radius:.21333rem;box-shadow:0 0 .26667rem rgba(0,0,0,.2)}._book_1mit6_235 ._bookWrap_1mit6_249{height:60vh;overflow-y:auto}._book_1mit6_235 ._bookWrap_1mit6_249 ul{list-style:circle;padding:.26667rem 1.06667rem}._book_1mit6_235._show_1mit6_257{visibility:visible;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}._popupContainer_1mit6_262{background:#ffffff;border-radius:.32rem;width:7.94667rem;padding-top:.32rem}._popupContainer_1mit6_262 ._searchList_1mit6_268{padding:0 0 0 .29333rem;max-height:58vh;overflow-x:hidden;overflow-y:auto}._popupContainer_1mit6_262 ._popoverTitle_1mit6_274{display:flex;align-items:center;font-size:.37333rem;font-weight:600;color:#333}._popupContainer_1mit6_262 ._popoverTitle_1mit6_274:before{content:" ";display:inline-block;width:.10667rem;height:.29333rem;background:#2aa4fe;border-radius:.05333rem;margin-right:.16rem}._popupContainer_1mit6_262 ._popupList_1mit6_290{display:flex;flex-flow:wrap;justify-content:flex-start;padding-top:.29333rem;padding-bottom:.37333rem}._popupContainer_1mit6_262 ._popupList_1mit6_290 .van-tag{padding:.18667rem .64rem;height:.8rem;font-size:.32rem;background:#f6f6f6;border:none;color:#333;margin-right:.21333rem;margin-bottom:.24rem}._popupContainer_1mit6_262 ._popupList_1mit6_290 .van-tag--plain{background:rgba(42,164,254,.08);border:none;color:#2aa4fe}._popupContainer_1mit6_262 ._btnGroup_1mit6_312{border:.02667rem solid #f2f2f2;padding:.42667rem .32rem;display:flex;align-items:center;justify-content:space-between}._popupContainer_1mit6_262 ._btnGroup_1mit6_312 .van-button{font-size:.4rem;color:#333;line-height:.58667rem;padding:0 1.28rem;height:.98667rem;font-weight:400}._popupContainer_1mit6_262 ._btnGroup_1mit6_312 ._btnSure_1mit6_327{background:linear-gradient(135deg,#19f1e1 0%,#0094ff 100%),linear-gradient(73deg,#5becff 0%,#259cfe 100%);border:none;color:#fff}.favoriteWrap{width:.74667rem;height:.74667rem;background:rgba(255,255,255,.61);border:.02667rem solid #FFFFFF;border-radius:50%;cursor:pointer;display:flex;justify-content:center;align-items:center}.liked .favoritIcon{animation:blink 1s forwards}.favoritIcon{width:.45333rem;height:.4rem}@keyframes blink{10%{transform:scale(1.4)}to{transform:scale(1)}}._book_f8oe1_1{position:fixed;left:0;top:0;right:0;bottom:0;inset:0;z-index:100;padding-top:10vh}._book_f8oe1_1 ._back_f8oe1_11{position:absolute;left:1.09333rem;top:.64rem}._book_f8oe1_1._bookHide_f8oe1_16{visibility:hidden;pointer-events:none;opacity:0}._book_f8oe1_1 .bookWrap{margin:0 auto}._book_f8oe1_1 .animated{transition:margin-left .2s ease-in-out}._book_f8oe1_1 .page{background:white}._book_f8oe1_1 .shadow{box-shadow:0 0 .53333rem rgba(0,0,0,.4)}._book_f8oe1_1 .page-wrapper{perspective:53.33333rem}._wrap_f8oe1_36{position:relative;height:100%;overflow:hidden;background-color:#ffd8a1;width:calc(100% + .02667rem)}._wrap_f8oe1_36:before{content:"";position:absolute;left:.26667rem;right:.26667rem;top:.26667rem;bottom:.26667rem;background-color:#fff;z-index:1}._wrap_f8oe1_36 ._wrapItem_f8oe1_53{position:relative;padding:.53333rem;height:100%;overflow:hidden;z-index:2}._wrap_f8oe1_36 ._item_f8oe1_60{display:flex;font-size:.32rem;font-weight:600;color:#333;line-height:.53333rem;margin:.53333rem 0;word-break:break-all}._wrap_f8oe1_36 ._name_f8oe1_69{width:100%;display:flex;flex-direction:row;align-items:center;overflow:hidden}._wrap_f8oe1_36 ._des_f8oe1_76{line-height:.42667rem;font-size:.32rem;font-weight:400}._wrap_f8oe1_36 ._icon_f8oe1_81{width:.53333rem;height:.53333rem;margin-right:.16rem}._wrap_f8oe1_36 ._last_f8oe1_86{font-size:.32rem;color:#ff5a56;margin-left:.16rem;font-weight:400}.even ._wrap_f8oe1_36{left:-.02667rem}.even ._wrap_f8oe1_36:before{right:0;border-radius:.10667rem 0 0 .10667rem}.even ._wrap_f8oe1_36:after{content:"";position:absolute;right:0;top:0;bottom:0;width:.64rem;background:linear-gradient(to right,rgba(255,255,255,0) 20%,rgba(229,199,156,.4) 100%);z-index:3}.odd ._wrap_f8oe1_36{left:-.02667rem}.odd ._wrap_f8oe1_36:before{left:0;border-radius:0 .10667rem .10667rem 0}.odd ._wrap_f8oe1_36:after{content:"";position:absolute;left:0;top:0;bottom:0;width:.64rem;background:linear-gradient(to right,rgba(255,225,183,.35) 8%,rgba(255,255,255,0) 100%);z-index:2}.odd ._wrapItem_f8oe1_53{padding-left:.53333rem}._preIcon_f8oe1_129{width:.58667rem;height:.34667rem;margin-right:.13333rem}._nameText_f8oe1_134{flex:1;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n',document.head.appendChild(G);const X={container:"_container_1mit6_1",head:"_head_1mit6_12",back:"_back_1mit6_20",tabs:"_tabs_1mit6_23",downBtn:"_downBtn_1mit6_39",activeBtn:"_activeBtn_1mit6_50",icon:"_icon_1mit6_50",iconUp:"_iconUp_1mit6_75",popover:"_popover_1mit6_80",content:"_content_1mit6_99",wrap:"_wrap_1mit6_105",emtpyWrap:"_emtpyWrap_1mit6_111",wrapItem:"_wrapItem_1mit6_122",item:"_item_1mit6_132",name:"_name_1mit6_163",favoriteBtn:"_favoriteBtn_1mit6_170",containerImg:"_containerImg_1mit6_176",cover:"_cover_1mit6_202",loaded:"_loaded_1mit6_232",book:"_book_1mit6_235",bookWrap:"_bookWrap_1mit6_249",show:"_show_1mit6_257",popupContainer:"_popupContainer_1mit6_262",searchList:"_searchList_1mit6_268",popoverTitle:"_popoverTitle_1mit6_274",popupList:"_popupList_1mit6_290",btnGroup:"_btnGroup_1mit6_312",btnSure:"_btnSure_1mit6_327"},Q=""+new URL("icon_back-b80c2fc2.svg",i.meta.url).href,K=a({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup:e=>()=>s("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[s("img",{class:"favoritIcon",src:e.isFavorite?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAJKADAAQAAAABAAAAIAAAAADfjkU8AAAHv0lEQVRYCZVXW6hWRRReM/u/HM/xclRCUzHLEFIkyqfwIUylG5pKIFqBhSgUkj1kGYT2ENJDUQhhF4QgDBRJPGZHo9KkHoISzUsmPQl5yfvlePz33jN935qZ39+T132Yf9bMrMs331ozex8jN3h6X180Nqv1e8kb+4QxdoR3MsSXZSGFOyul32tco6s6+O41ZuVK1+rCr1+f5bt2LYTNLG+z8eL8MKwbyd1ZnxfH/JX8+0Zv8cnADWsPtdol2SQh9X75K0Pzava+qdTniStrxnmBUwGgqz2mxBvB2lFTuhWVj1Z/Rvti6dKFpmJXOicjDQ2g5wv+wL6kDzSMvTO5uXy5q7jc83L/zV8dp216rgHUeHvJQ1m1vskbP9rAK4EI+zLK6himAOOxaf4xqHi7UaMaedZgTedowzXaF0435NXeYIqgsFy4E9JzZU775i9+/h+gxhuLH8wGDNjpnRtkXIHdw6JaExkzTmT/HjgtuVExaJ5BxUYf6BkYT1hDDzbAbtgQOmWYDKktl7AhjB03Vvqesrd3+sBvvvxFffDHL13aWXaa3djwGAsw6mz0WDHzF4u09RNZ9abIqZO6KwYnC5pCgrIEBL7SHDZisJfALoGRjYgEQFQkVgiUnbcE9a87f2r8wB1dJysElHcU71mfjTG6K2gbK2beIpH2DpEtG0ROHIMlphkITiApgIAqZh3zzXWkSBWVqTAP5jFFOyiSNcji2JBOsXeZen/W4WzTs2zhqGq945A1rt2UOZRLhIPRYzNE9u0W+fswjDHW7cAEq+oMU/pghwqS47Bl9H1kXYMa5/Gw595DaYI1+ARTeS1vPFDJfH2BuKJdte4bJ2bkPSLbN4OZ9cFCdwmPdBYdq1ewGAKnKJjVnVMPirRL+uwxvppW6pA52LKedGirufOvVcDM44KyMQbeJk8TGTdBZOc2kfMNBORWoN4KhtZkCUwG2oPzZnAuN8HQFo3poR39YKxXiW40+NHTiiWsTK1A6V54wAio1n0qMrBT5MJFTMGaTmhIAAmYynFNgTIgA8WGLtjFnmu6jp8ElL4pg50AGDJFa4dXfOmGWnjjSTDnzomcPoMVesdDEKqJjrvkoyDQ666xTpUkt65TTmvJhr4AhjUUWIKAGFpbvDMy6QBDuDsJALN6AijH2zU4pGMGjrvBsj4E2wwYZa5xTtegr+ucg6AnKuiBhHBjs2eDb1wC3LuzvpEfxztKkZNGRdt0lJzHQATFRxmJfQKWwNCWTCQfaZ1YdA4/0NW7SeNhjPgat5Dz1pTmKG/NAAYsUaZzbZA1eGRHmeJanG8JdhVAWk89bYM90xSAMG2BHX2tgCWiRYZO4WLODyRmPI9gWIMCHKadJgCca7JDUBynFscYNnVa7NUvAfH80B/Z0XSFrBAgoh+y1rnP9Q3M25UKrCEijqwpG3RMJ5i+yk4CwrkIQoFTpm5s9KPA6BsyY7Dx3YjeUVbmwZDYDxFJpPeF5w8bKe/HW0Usql2LWymkc2pEQJTZFECU01jBQK9VJ26gyQg27QDENUopiwLYUMpopcFNVK2eGLxn6zBct3hyt5HXkL6B+akAWvVqUuSQGUx3SRmNTxNIlLnOR+fxowBjzUBmypSNnAVMIGGsajA11m6huQKqnxu6AiCO8UWvOWZ+1UOoKQVB6hnsmsa5OB/ZCKkKTNEFCxrfPSFFZAd+SrwznZ4sxMGflex8z/GjS5qAzLerr5iyXEXlAIoswRFBNHMMdTJHQAzEXllrSZOucYwwyTYFJhiwo0CwpqcMTljKlazywYh/fuuJHtmF5/LsufvgaYIlhagl1hTfMxjiwScJAyoQ9IlrBYEf7aGp6cEAoLV4Wbg5NkgwrBsAK7lx5MzZTGy1emTw/u7RjMAn1FCQxRbFXOhddDl2gObwNcKdKvXax8CQ9W5REFEmewoGPY829QGkCQaACEazQNahZozprbnqrBheu2sA1bs27pfSvkrwNCQQrSm+SjCpaUhB6bEFGEspAIIRPnbSsQ7MhFQ5njKmEH8OKcjq/ZZ3HOz6vRVQyEbrDORLT85Zi9p5kWg1fRCQMIxwU+jeMh0pc0DCL8XAIgMCGRrTw2LWY57SBDAlLlYPp5W22qbOfdtm9wkdy6PvLMaXps/eiAtrjkWkjPcE4Wgfq4pAmHEWsLJFNskMmIynimyUjcCKgxLLDsxIVm/7YfCB7qnXCXtjQFS+MG3mJsn9MxnQWDhTQFEmW9oYRQGRjZBWpovMlDqGjHVegh5gKvXajs6D3025HhjO0etNn54ps9ahGOfx9iYwfoaCdDSwg7pSenjXsFAJAHMKBDIKES0ww/9OAGbroAPbn75ZQJbJTZ/2HzfNN9YsQ/p6SxS3Hlse4bxAY4+ADRznPA9rkHUN6dJ/CLlna/JKve2dW4EhkFsylNBemDxzCnhfhzoZTrb4KaH3EutGixopURkAyQrm1Lu1Z+qVtnn9/+zGh/qtn9sGRFdHRj3Sb9DIIR9Lo3gO76Nq+gzVLwQFwTQRB1JopMhqta97zp1ekG7hW8O5A4ZanV2aNOPhoszXoHAn4drFQQQKANKjbywuYPuH9ZVFg/7a9mur3e3Id8RQX4cXJz41sTTuXXxKPIoaM3gn/YR/M98asq97b1/d2x3/B8k9N3E67sAEAAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAkCAYAAAD7PHgWAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAJAAAAAC/FoutAAADKklEQVRYCc2YW4hNYRiGx3FyaJxPMUYOOZWSUBgjE8odk3AhXChR5E5qTG5QUmhScoFxNXKIckiZUk4hlJBcGJPzIeVYzOB5prWy7TFr9p7Zs9d+69nrX+v7//97117/+tbaOy8vx9UhBX/j6VMG82AYDIFv8AKuwQmogV+QqMnsLAXHFUIBvAbHXYaTcBtarXGMvAC/U+AufUpAeRLVkMq4W/SbCWlrIyN+gkk+wkFYCCOhG/SDqVABtWA/v8Hd8DbY/8x2DxTDAMiHIiiFvfASHCeV0AlS0k56hQn30+7bwigTl0MDhAnP0R4KUfJEt4LLxXFnwGORWkPUzj9geWTPpkHXWz1UQeem4WaPTCfyDsx7qNleBCZAeDbLojpGxOYTS/lSJcwzkfYX0OTKhOP/NE8FHVxvcWgFSTX4Bppcas/ARf4V+kNcukpiTW5KNrArCOxLDmR530qhwYfJee8FgdnJgSzvu34ta5osDHNbRsLL2zU8GOP2OLk1uEoPHcHK7yPvCVhe4tb9wECRWw0ODA5Yi3JBPonUID802MMG8g7OBVkPVU8/NPjKBvItJRcU+mj0pcHngauWnp3ZMu89oRp9adDK/RN07ltK3JoUGKhLNHKaHW/tDYkHY2iPIKclz3XYuAbZNmoRnxq0YMepbSTXx5FkE1044KU2uDo5mKX9UeTxJVcP/32i+T5n0E6jIZvy/fE6mL8qKvHRoNMdtn2iOmY4VhnkrWXbK2ruAoKPwTNxPfpboj1lFTkA5vsOs6BFWW4egIMeQViXaGZUrvvwivkUK01ndl9avcya9OYpgUxqMJNdAef/BMWQtnoz4iI4iYV8M3hJ2qq5TBD+5KyjPaUtE2poO1g8NXoJWvtI9E7dAQ3gXDWQsTW+gMn828KJP8ASSEdj6XwTHF8P5ZCJq8E0f+V741kwibjAI0sCcbUOvAkc8xRmQLtqLbOHCZ/RntNMNqvBeQhP6DBty1hWNIYsN8Dkrk9/FeZDKJ/t78G42zLIulz0FeAdrhF/Ki6G6mDfY36DfpOxahrZLegaCvF1aT3kjLy8W0Bjx2A45KS6Z9rVH+dMzG9PPT/rAAAAAElFTkSuQmCC"},null)])}),Y="_book_f8oe1_1",Z="_back_f8oe1_11",J="_bookHide_f8oe1_16",$="_wrap_f8oe1_36",ee="_wrapItem_f8oe1_53",te="_item_f8oe1_60",ne="_name_f8oe1_69",re="_des_f8oe1_76",ie="_icon_f8oe1_81",ae="_preIcon_f8oe1_129",oe="_nameText_f8oe1_134",se=a({name:"the-book",props:{bookData:{type:Object,default:()=>({})},tab:{type:String,default:""},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})},subjectId:{type:[String,Number],default:""}},emits:["close"],setup(e,{emit:t}){var n,r,i,a;l(),console.log(c.user.data.phone);const w="lastTime"+(null!==(n=null===(r=c)||void 0===r||null===(i=r.user)||void 0===i||null===(a=i.data)||void 0===a?void 0:a.phone)&&void 0!==n?n:""),x=u({show:!1,width:0,height:0,transform:"",list:[],lastTime:localStorage.getItem(w),isClick:!1}),A=d(!1),_=d(!1),k=d(0);d();const T=function(){var e=o((function*(){console.log("初始化完成")}));return function(){return e.apply(this,arguments)}}();d(!0);let C=null,N=null;const j=(e=!0)=>{if(A.value=!1,_.value)return;_.value=!0,clearTimeout(N);const n=document.querySelector(".bookWrap");e&&C.turn("page",1),n&&(n.style.transform=x.transform),t("close"),setTimeout((()=>{n.style.transition="",n.style.transform="",x.show=!1,x.list=[],_.value=!1}),1e3)};p(o((function*(){yield T(),f("webViewOnResume",(()=>{x.lastTime=localStorage.getItem(w)}))})));h((()=>e.show),(()=>{e.show&&((()=>{var t;if(null===(t=e.bookData)||void 0===t||!t.lessonList)return;k.value=Math.floor((.8*document.body.clientHeight-40)/50);const n=[];let r=[];for(let i=0;i=k.value?(n.push([...r]),r=[{name:t.name}]):r.push({name:t.name});for(let e=0;e=k.value?(n.push([...r]),r=[t.knowledgeList[e]]):r.push(t.knowledgeList[e])}r.length&&n.push(r),x.list=n})(),v((()=>{(()=>{C=window.$("#flipbook");const e=.8*document.body.clientHeight;x.height=e,x.width=e*(210/297)*2,C.turn({autoCenter:!0,duration:1e3,disabled:!0,acceleration:!0,elevation:50,width:x.width,height:x.height,gradients:!0}),C.bind("start",((e,t,n)=>{"tl"!=n&&"tr"!=n||e.preventDefault(),x.isClick&&v((()=>{x.isClick=!1,"tl"==n||"tr"==n?e.preventDefault():C.turn("page",t.next)}))})),C.bind("turned",((e,t,n)=>{v((()=>{A.value=!0}))})),C.bind("turning",((e,t,n)=>{t===C.turn("pages")&&j(!1),1===t&&j(!1)}))})(),requestAnimationFrame((()=>{(()=>{const t=document.querySelector(".bookWrap");if(t){const n=t.getBoundingClientRect(),r=e.rect.width/(n.width/2),i=e.rect.height/n.height,a=`scale3d(${r}, ${i}, 1) translate(${(n.width/2*(r-1)/2+e.rect.x-n.x-n.width/4)/r}px, ${(n.height*(i-1)/2+e.rect.y-n.y)/i}px)`;t.style.transform=x.transform=a,t.style.transition="transform 0s",v((()=>{requestAnimationFrame((()=>{requestAnimationFrame((()=>{t.style.transition="transform 1s",t.style.transform="",x.show=!0,N=setTimeout((()=>{C.turn("page",2)}),500)}))}))}))}})()}))})))}));return()=>s("div",{class:[Y,x.show?"":J],onClick:()=>j(),onTouchmove:()=>{console.log("sdfds"),x.isClick=!0}},[s("div",{class:Z},[s("img",{src:Q},null)]),s("div",{class:"bookWrap",style:{width:x.width+"px"},onClick:e=>{e.stopPropagation()}},[!!x.list.length&&s("div",{id:"flipbook",class:[x.show&&"animated"]},[s("div",{class:"page"},[s("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),x.list.map((t=>s("div",{class:"page"},[s("div",{class:$},[s("div",{class:ee},[t.map(((t,n)=>s(g,null,[s("div",{class:[te,t.id&&re],onTouchstart:e=>{e.stopPropagation()},onClick:n=>{n.stopPropagation(),(t=>{if(t.id){if(!t.containMaterial)return void y("暂无资源");localStorage.setItem(w,t.id);const n=F.stringify({id:t.id,lessonCoursewareId:t.lessonCoursewareId,lessonCoursewareDetailId:t.lessonCoursewareDetailId,name:t.name,subjectId:e.subjectId,tab:e.tab}),r=location.origin+location.pathname+"#/courseware-play?"+n;console.log("🚀 ~ url:",r),b({api:"openWebView",content:{url:r,orientation:0,isHideTitle:!1,c_orientation:0}})}})(t)},onTouchend:e=>{console.log(e)}},[t.id?s("img",{id:1==n?"coursewareDetail-0":"",class:ie,src:"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="},null):null,s("div",{class:ne,style:{lineHeight:"20Px"}},[x.lastTime===t.id&&s("img",{src:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAaCAYAAADMp76xAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAALKADAAQAAAABAAAAGgAAAADSD6qFAAAD9UlEQVRYCdWYaWxUVRTHf29auglUKcqWBlErqGnAAiopFQOiIkGDaY2VuMQ1MfIBP9TGCELEpYgm+MX0iySYCDUtDRJELZA0UAQBjRLROrK1MbG1rZZqy5QJz3Pm9jHzmMfrjDppOcnc5Zy7/N+5Z7l3LAbItm2L3Q1v0/1HOaHQOMLhDEc2JHV6ej+ZmW3kXrWZBQsrLcuyFYelhb1vz1TaO7fT319AwY0wZgxk56ho6KivF7q6IPgzZGQEuSZviTV3frMV0Wx9bTM5OQUUl0Bm1tCB9Nr57FnYvxd6e4MsLZ2atrqkuIqengdE7cMPrH5AejpMnAQ//ZhH22/ZgYjNqhkMN83GaluxKUbxr0DEwdRmB6OGnbBh3WCjEpOvfwP2NSY21hmlGCUYBCLRIBEH6/wdWk470/1rWxx67UrYWhM/rvtPONAEaWnxMj+OYpTIJQaSArIk+JQ+YkArsAdLo5sc/c60c6+EjvYoP7aVlQ0jR8VyLrRTA1iXn3YLvLLGgNbNF9xrNv3he1O/9rKpLy71dBYugueXXyyJ9FMHWJe/uRBWVEL9JzBvPhLn4eB+WPYkLH04AsBVhMPw9KNQOMPFju0kB7irEzZWx86Ptm+dBTNmRvtOa/YdoD+ljzaCxtV77jf9bXXw7WFY/ZbpHzkI587BzNmm71EmBzgUguNBj2WENXmKN9/htrbAzk+NZq8YabiqALV3hxr3QJF8uE+ITQ7whIlik+ud5ZOruzrgBomlZXLkDvWcgayBzBoWzQab4YlnHalnnRxgzyUGYaoTHZajLpJjnl7kHqwabjkl8VXMRLVavckt9+gFPHj/L0tj7rtio3//5V73/Hn4RTR6phu+2GFkAYGjPx/yl/pMTFhUXwPFd8LoXPeUk8eNA5bcBep8GkESoNQC/uYQnBBgi5bEQ9FUnz8ZXlhh7Ljhs/gxHpzUAq4T7aqj6S+WDh2AXZ/Dcy/CiBHG0bZKrO6Q9D8IpQ7wsaPQfExSdLkbgqbjDzbA3ffBTZINlW6bA1Ouh1UV0N5meJco46PE6ZPeQ7vFOdTOLiV3ZjnxuHaL0eys2x0JNO6GD6th/AR47KkoX1svVcLrrxrQa6pg3Hi3fKBn2R9vCjGnOINJ+YZVtljeTBKK/i1t2Sb3Vvm45c9AxUqT/fr64P134MjX8JCk5LJl3rc1fRatXWUuRW++B3ljoyh+bYWvmvotu66mhWuvy6dwuhFqMP8vNGq0ma1hzMloytGUPneeXMSn+a+uqbt2M5Q/7v4oveWdOtFq2bu+rBJjr2CxeLJPSvTfJcVSTSw7tsPYq9cN/0eogm3ae+ERGrl5XFbPfOcwL5c/Uv4BMfRITu69WqwAAAAASUVORK5CYII=",alt:"",class:ae},null),s("div",{class:oe},[m(" "),t.name])])])])))])])]))),x.list.length%2==1&&s("div",{class:"page",style:{pointerEvents:"none"}},[s("div",{class:$},[s("div",{class:ee},null)])]),s("div",{class:"page"},[s("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)])])])])}}),le=a({name:"courseware-list",emits:["close"],setup(e,{emit:t}){const n=u({box:{},show:!1,steps:[{ele:"",eleRect:{},img:I("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:I("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:I("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:I("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}),i=d(!1),a=d({}),l=function(){var e=o((function*(){try{const t=yield W({guideTag:"guideInfo"});var e;if(t.data)a.value=JSON.parse(null===(e=t.data)||void 0===e?void 0:e.guideValue)||null;else a.value={};a.value&&a.value.courseware?i.value=!1:i.value=!0}catch(t){console.log(t)}}));return function(){return e.apply(this,arguments)}}();l();const c=()=>{const e=document.getElementById(`courseware-${n.step}`);if(e){var t,r,i,a;const o=e.getBoundingClientRect(),s=(null===(t=n.steps[n.step].eleRectPadding)||void 0===t?void 0:t.left)||0,l=(null===(r=n.steps[n.step].eleRectPadding)||void 0===r?void 0:r.top)||0,c=(null===(i=n.steps[n.step].eleRectPadding)||void 0===i?void 0:i.width)||0,u=(null===(a=n.steps[n.step].eleRectPadding)||void 0===a?void 0:a.height)||0;n.box={left:o.x-s+"px",top:o.y-l+"px",width:o.width+c+"px",height:o.height+u+"px"}}else h()};p((()=>{c(),window.addEventListener("resize",f)}));const f=()=>{c()};w((()=>{window.removeEventListener("resize",f)}));const h=()=>{n.step>=3?v():(n.step=n.step+1,c())},v=function(){var e=o((function*(){a.value?a.value.courseware=!0:a.value={courseware:!0};try{yield z({guideTag:"guideInfo",guideValue:JSON.stringify(a.value)})}catch(e){console.log(e)}console.log("调用list完成"),i.value=!1}));return function(){return e.apply(this,arguments)}}();return()=>s(x,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",B.guidePopup],show:i.value,"onUpdate:show":e=>i.value=e},{default:()=>[s("div",{class:B.content,onClick:()=>h()},[n.step!=n.steps.length-1&&s("div",{class:B.backBtn,onClick:e=>{e.stopPropagation(),v()}},[m("跳过")]),s("div",{class:B.box,style:r(r({},n.box),n.steps[n.step].boxStyle),id:`modeType-${n.step}`},[n.steps.map(((e,t)=>{var r,i;return s("div",{onClick:e=>e.stopPropagation(),class:B.item,style:{display:t===n.step?"":"none",left:`${null===(r=e.eleRect)||void 0===r?void 0:r.left}px`,top:`${null===(i=e.eleRect)||void 0===i?void 0:i.top}px`}},[s("img",{class:B.img,style:e.imgStyle,src:e.img},null),s("img",{class:B.iconHead,style:e.handStyle,src:I("indexDot.png")},null),s("div",{class:B.btns,style:e.btnsStyle},[n.step+1==n.steps.length?s(g,null,[s(A,{class:[B.btn],round:!0,type:"primary",onClick:()=>v()},{default:()=>[m("完成")]}),s(A,{class:[B.btn,B.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{n.step=0,c()}},{default:()=>[m("再看一遍")]})]):s(A,{class:B.btn,round:!0,type:"primary",onClick:()=>h()},{default:()=>[m("下一步 ("),n.step+1,m("/"),n.steps.length,m(")")]})])])}))])])]})}});/*! jQuery v1.7 jquery.com | jquery.org/license */!function(e,t){function n(e){return E.isWindow(e)?e:9===e.nodeType&&(e.defaultView||e.parentWindow)}function r(e){if(!dt[e]){var t=j.body,n=E("<"+e+">").appendTo(t),r=n.css("display");n.remove(),"none"!==r&&""!==r||(st||((st=j.createElement("iframe")).frameBorder=st.width=st.height=0),t.appendChild(st),lt&&st.createElement||((lt=(st.contentWindow||st.contentDocument).document).write(("CSS1Compat"===j.compatMode?"":"")+""),lt.close()),n=lt.createElement(e),lt.body.appendChild(n),r=E.css(n,"display"),t.removeChild(st)),dt[e]=r}return dt[e]}function i(e,t){var n={};return E.each(ht.concat.apply([],ht.slice(0,t)),(function(){n[this]=e})),n}function a(){ut=t}function o(){return setTimeout(a,0),ut=E.now()}function s(){try{return new e.XMLHttpRequest}catch(t){}}function l(e,t,n,r){if(E.isArray(t))E.each(t,(function(t,i){n||We.test(e)?r(e,i):l(e+"["+("object"==typeof i||E.isArray(i)?t:"")+"]",i,n,r)}));else if(n||null==t||"object"!=typeof t)r(e,t);else for(var i in t)l(e+"["+i+"]",t[i],n,r)}function c(e,n){var r,i,a=E.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((a[r]?e:i||(i={}))[r]=n[r]);i&&E.extend(!0,e,i)}function u(e,n,r,i,a,o){(o=o||{})[a=a||n.dataTypes[0]]=!0;for(var s,l=e[a],c=0,d=l?l.length:0,p=e===$e;c0?("border"!==n&&E.each(i,(function(){n||(r-=parseFloat(E.css(e,"padding"+this))||0),"margin"===n?r+=parseFloat(E.css(e,n+this))||0:r-=parseFloat(E.css(e,"border"+this+"Width"))||0})),r+"px"):(((r=ke(e,t,t))<0||null==r)&&(r=e.style[t]||0),r=parseFloat(r)||0,n&&E.each(i,(function(){r+=parseFloat(E.css(e,"padding"+this))||0,"padding"!==n&&(r+=parseFloat(E.css(e,"border"+this+"Width"))||0),"margin"===n&&(r+=parseFloat(E.css(e,n+this))||0)})),r+"px")}function f(e,t){t.src?E.ajax({url:t.src,async:!1,dataType:"script"}):E.globalEval((t.text||t.textContent||t.innerHTML||"").replace(xe,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)}function h(e){var t=(e.nodeName||"").toLowerCase();"input"===t?g(e):"script"!==t&&void 0!==e.getElementsByTagName&&E.grep(e.getElementsByTagName("input"),g)}function g(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function m(e){return void 0!==e.getElementsByTagName?e.getElementsByTagName("*"):void 0!==e.querySelectorAll?e.querySelectorAll("*"):[]}function v(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),"object"===(n=t.nodeName.toLowerCase())?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(E.expando))}function y(e,t){if(1===t.nodeType&&E.hasData(e)){var n,r,i,a=E._data(e),o=E._data(t,a),s=a.events;if(s)for(n in delete o.handle,o.events={},s)for(r=0,i=s[n].length;r=0===n}))}function A(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function _(){return!0}function k(){return!1}function T(e,t,n){var r=t+"defer",i=t+"queue",a=t+"mark",o=E._data(e,r);o&&("queue"===n||!E._data(e,i))&&("mark"===n||!E._data(e,a))&&setTimeout((function(){!E._data(e,i)&&!E._data(e,a)&&(E.removeData(e,r,!0),o.fire())}),0)}function C(e){for(var t in e)if(("data"!==t||!E.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function N(e,n,r){if(r===t&&1===e.nodeType){var i="data-"+n.replace(L,"-$1").toLowerCase();if("string"==typeof(r=e.getAttribute(i))){try{r="true"===r||"false"!==r&&("null"===r?null:E.isNumeric(r)?parseFloat(r):D.test(r)?E.parseJSON(r):r)}catch(P){}E.data(e,n,r)}else r=t}return r}var j=e.document,S=e.navigator,M=e.location,E=function(){function n(){if(!s.isReady){try{j.documentElement.doScroll("left")}catch(e){return void setTimeout(n,1)}s.ready()}}var r,i,a,o,s=function(e,t){return new s.fn.init(e,t,r)},l=e.jQuery,c=e.$,u=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,d=/\S/,p=/^\s+/,f=/\s+$/,h=/\d/,g=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,v=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,y=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,b=/(?:^|:|,)(?:\s*\[)+/g,w=/(webkit)[ \/]([\w.]+)/,x=/(opera)(?:.*version)?[ \/]([\w.]+)/,A=/(msie) ([\w.]+)/,_=/(mozilla)(?:.*? rv:([\w.]+))?/,k=/-([a-z]|[0-9])/gi,T=/^-ms-/,C=function(e,t){return(t+"").toUpperCase()},N=S.userAgent,M=Object.prototype.toString,E=Object.prototype.hasOwnProperty,P=Array.prototype.push,O=Array.prototype.slice,D=String.prototype.trim,L=Array.prototype.indexOf,F={};return s.fn=s.prototype={constructor:s,init:function(e,n,r){var i,a,o,l;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!n&&j.body)return this.context=j,this[0]=j.body,this.selector=e,this.length=1,this;if("string"==typeof e){if((i="<"!==e.charAt(0)||">"!==e.charAt(e.length-1)||e.length<3?u.exec(e):[null,e,null])&&(i[1]||!n)){if(i[1])return l=(n=n instanceof s?n[0]:n)?n.ownerDocument||n:j,(o=g.exec(e))?s.isPlainObject(n)?(e=[j.createElement(o[1])],s.fn.attr.call(e,n,!0)):e=[l.createElement(o[1])]:e=((o=s.buildFragment([i[1]],[l])).cacheable?s.clone(o.fragment):o.fragment).childNodes,s.merge(this,e);if((a=j.getElementById(i[2]))&&a.parentNode){if(a.id!==i[2])return r.find(e);this.length=1,this[0]=a}return this.context=j,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return s.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),s.makeArray(e,this))},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return O.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return s.isArray(e)?P.apply(r,e):s.merge(r,e),r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return s.each(this,e,t)},ready:function(e){return s.bindReady(),a.add(e),this},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(O.apply(this,arguments),"slice",O.call(arguments).join(","))},map:function(e){return this.pushStack(s.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:P,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,n,r,i,a,o,l=arguments[0]||{},c=1,u=arguments.length,d=!1;for("boolean"==typeof l&&(d=l,l=arguments[1]||{},c=2),"object"!=typeof l&&!s.isFunction(l)&&(l={}),u===c&&(l=this,--c);c0)return;a.fireWith(j,[s]),s.fn.trigger&&s(j).trigger("ready").unbind("ready")}},bindReady:function(){if(!a){if(a=s.Callbacks("once memory"),"complete"===j.readyState)return setTimeout(s.ready,1);if(j.addEventListener)j.addEventListener("DOMContentLoaded",o,!1),e.addEventListener("load",s.ready,!1);else if(j.attachEvent){j.attachEvent("onreadystatechange",o),e.attachEvent("onload",s.ready);var t=!1;try{t=null==e.frameElement}catch(S){}j.documentElement.doScroll&&t&&n()}}},isFunction:function(e){return"function"===s.type(e)},isArray:Array.isArray||function(e){return"array"===s.type(e)},isWindow:function(e){return e&&"object"==typeof e&&"setInterval"in e},isNumeric:function(e){return null!=e&&h.test(e)&&!isNaN(e)},type:function(e){return null==e?String(e):F[M.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==s.type(e)||e.nodeType||s.isWindow(e))return!1;try{if(e.constructor&&!E.call(e,"constructor")&&!E.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(j){return!1}var n;for(n in e);return n===t||E.call(e,n)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw e},parseJSON:function(t){return"string"==typeof t&&t?(t=s.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):m.test(t.replace(v,"@").replace(y,"]").replace(b,""))?new Function("return "+t)():void s.error("Invalid JSON: "+t)):null},parseXML:function(n){var r;try{e.DOMParser?r=(new DOMParser).parseFromString(n,"text/xml"):((r=new ActiveXObject("Microsoft.XMLDOM")).async="false",r.loadXML(n))}catch(c){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&s.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&d.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(T,"ms-").replace(k,C)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,r){var i,a=0,o=e.length,l=o===t||s.isFunction(e);if(r)if(l){for(i in e)if(!1===n.apply(e[i],r))break}else for(;a0&&e[0]&&e[c-1]||0===c||s.isArray(e)))for(;l1?O.call(arguments,0):t,l.notifyWith(c,o)}}function n(e){return function(t){r[e]=arguments.length>1?O.call(arguments,0):t,--s||l.resolveWith(l,r)}}var r=O.call(arguments,0),i=0,a=r.length,o=Array(a),s=a,l=a<=1&&e&&E.isFunction(e.promise)?e:E.Deferred(),c=l.promise();if(a>1){for(;i
a",e=m.getElementsByTagName("*"),t=m.getElementsByTagName("a")[0],!e||!e.length||!t)return{};r=(n=j.createElement("select")).appendChild(j.createElement("option")),i=m.getElementsByTagName("input")[0],o={leadingWhitespace:3===m.firstChild.nodeType,tbody:!m.getElementsByTagName("tbody").length,htmlSerialize:!!m.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.55/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,unknownElems:!!m.getElementsByTagName("nav").length,checkOn:"on"===i.value,optSelected:r.selected,getSetAttribute:"t"!==m.className,enctype:!!j.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},i.checked=!0,o.noCloneChecked=i.cloneNode(!0).checked,n.disabled=!0,o.optDisabled=!r.disabled;try{delete m.test}catch(G){o.deleteExpando=!1}for(h in!m.addEventListener&&m.attachEvent&&m.fireEvent&&(m.attachEvent("onclick",(function(){o.noCloneEvent=!1})),m.cloneNode(!0).fireEvent("onclick")),(i=j.createElement("input")).value="t",i.setAttribute("type","radio"),o.radioValue="t"===i.value,i.setAttribute("checked","checked"),m.appendChild(i),(s=j.createDocumentFragment()).appendChild(m.lastChild),o.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,m.innerHTML="",m.style.width=m.style.paddingLeft="1px",l=j.getElementsByTagName("body")[0],u=j.createElement(l?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},l&&E.extend(d,{position:"absolute",left:"-999px",top:"-999px"}),d)u.style[h]=d[h];if(u.appendChild(m),(c=l||v).insertBefore(u,c.firstChild),o.appendChecked=i.checked,o.boxModel=2===m.offsetWidth,"zoom"in m.style&&(m.style.display="inline",m.style.zoom=1,o.inlineBlockNeedsLayout=2===m.offsetWidth,m.style.display="",m.innerHTML="
",o.shrinkWrapBlocks=2!==m.offsetWidth),m.innerHTML="
t
",g=0===(p=m.getElementsByTagName("td"))[0].offsetHeight,p[0].style.display="",p[1].style.display="none",o.reliableHiddenOffsets=g&&0===p[0].offsetHeight,m.innerHTML="",j.defaultView&&j.defaultView.getComputedStyle&&((a=j.createElement("div")).style.width="0",a.style.marginRight="0",m.appendChild(a),o.reliableMarginRight=0===(parseInt((j.defaultView.getComputedStyle(a,null)||{marginRight:0}).marginRight,10)||0)),m.attachEvent)for(h in{submit:1,change:1,focusin:1})(g=(f="on"+h)in m)||(m.setAttribute(f,"return;"),g="function"==typeof m[f]),o[h+"Bubbles"]=g;return E((function(){var e,t,n,r,i,a="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",s="visibility:hidden;border:0;",c="style='"+a+"border:5px solid #000;padding:0;'",d="
";!(l=j.getElementsByTagName("body")[0])||((e=j.createElement("div")).style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:1px",l.insertBefore(e,l.firstChild),(u=j.createElement("div")).style.cssText=a+s,u.innerHTML=d,e.appendChild(u),n=(t=u.firstChild).firstChild,r=t.nextSibling.firstChild.firstChild,i={doesNotAddBorder:5!==n.offsetTop,doesAddBorderForTableAndCells:5===r.offsetTop},n.style.position="fixed",n.style.top="20px",i.fixedPosition=20===n.offsetTop||15===n.offsetTop,n.style.position=n.style.top="",t.style.overflow="hidden",t.style.position="relative",i.subtractsBorderForOverflowNotVisible=-5===n.offsetTop,i.doesNotIncludeMarginInBodyOffset=1!==l.offsetTop,l.removeChild(e),u=e=null,E.extend(o,i))})),u.innerHTML="",c.removeChild(u),u=s=n=r=l=a=m=i=null,o}(),E.boxModel=E.support.boxModel;var D=/^(?:\{.*\}|\[.*\])$/,L=/([A-Z])/g;E.extend({cache:{},uuid:0,expando:"jQuery"+(E.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?E.cache[e[E.expando]]:e[E.expando])&&!C(e)},data:function(e,n,r,i){if(E.acceptData(e)){var a,o,s;E.expando;var l="string"==typeof n,c=e.nodeType,u=c?E.cache:e,d=c?e[E.expando]:e[E.expando]&&E.expando,p="events"===n;if((!d||!u[d]||!p&&!i&&!u[d].data)&&l&&r===t)return;return d||(c?e[E.expando]=d=++E.uuid:d=E.expando),u[d]||(u[d]={},c||(u[d].toJSON=E.noop)),"object"!=typeof n&&"function"!=typeof n||(i?u[d]=E.extend(u[d],n):u[d].data=E.extend(u[d].data,n)),a=o=u[d],i||(o.data||(o.data={}),o=o.data),r!==t&&(o[E.camelCase(n)]=r),p&&!o[n]?a.events:(l?null==(s=o[n])&&(s=o[E.camelCase(n)]):s=o,s)}},removeData:function(e,t,n){if(E.acceptData(e)){var r,i,a;E.expando;var o=e.nodeType,s=o?E.cache:e,l=o?e[E.expando]:E.expando;if(!s[l])return;if(t&&(r=n?s[l]:s[l].data)){E.isArray(t)||(t in r?t=[t]:t=(t=E.camelCase(t))in r?[t]:t.split(" "));for(i=0,a=t.length;i-1)return!0;return!1},val:function(e){var n,r,i,a=this[0];return arguments.length?(i=E.isFunction(e),this.each((function(r){var a,o=E(this);1===this.nodeType&&(null==(a=i?e.call(this,r,o.val()):e)?a="":"number"==typeof a?a+="":E.isArray(a)&&(a=E.map(a,(function(e){return null==e?"":e+""}))),(n=E.valHooks[this.nodeName.toLowerCase()]||E.valHooks[this.type])&&"set"in n&&n.set(this,a,"value")!==t||(this.value=a))}))):a?(n=E.valHooks[a.nodeName.toLowerCase()]||E.valHooks[a.type])&&"get"in n&&(r=n.get(a,"value"))!==t?r:"string"==typeof(r=a.value)?r.replace(H,""):null==r?"":r:t}}),E.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,i,a=e.selectedIndex,o=[],s=e.options,l="select-one"===e.type;if(a<0)return null;for(n=l?a:0,r=l?a+1:s.length;n=0})),n.length||(e.selectedIndex=-1),n}}},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,o,s,l=e.nodeType;return e&&3!==l&&8!==l&&2!==l?i&&n in E.attrFn?E(e)[n](r):"getAttribute"in e?((s=1!==l||!E.isXMLDoc(e))&&(n=n.toLowerCase(),o=E.attrHooks[n]||(U.test(n)?I:F)),r!==t?null===r?(E.removeAttr(e,n),t):o&&"set"in o&&s&&(a=o.set(e,r,n))!==t?a:(e.setAttribute(n,""+r),r):o&&"get"in o&&s&&null!==(a=o.get(e,n))?a:null===(a=e.getAttribute(n))?t:a):E.prop(e,n,r):t},removeAttr:function(e,t){var n,r,i,a,o=0;if(1===e.nodeType)for(a=(r=(t||"").split(z)).length;o=0}})}));var X=/^(?:textarea|input|select)$/i,Q=/^([^\.]*)?(?:\.(.+))?$/,K=/\bhover(\.\S+)?/,Y=/^key/,Z=/^(?:mouse|contextmenu)|click/,J=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,$=function(e){var t=J.exec(e);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},ee=function(e,t){return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||e.id===t[2])&&(!t[3]||t[3].test(e.className))},te=function(e){return E.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};E.event={add:function(e,n,r,i,a){var o,s,l,c,u,d,p,f,h,g,m;if(3!==e.nodeType&&8!==e.nodeType&&n&&r&&(o=E._data(e))){for(r.handler&&(r=(h=r).handler),r.guid||(r.guid=E.guid++),(l=o.events)||(o.events=l={}),(s=o.handle)||(o.handle=s=function(e){return void 0===E||e&&E.event.triggered===e.type?t:E.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=te(n).split(" "),c=0;c=0&&(m=m.slice(0,-1),s=!0),m.indexOf(".")>=0&&(v=m.split("."),m=v.shift(),v.sort()),(!i||E.event.customEvent[m])&&!E.event.global[m])return;if((n="object"==typeof n?n[E.expando]?n:new E.Event(m,n):new E.Event(m)).type=m,n.isTrigger=!0,n.exclusive=s,n.namespace=v.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+v.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,d=m.indexOf(":")<0?"on"+m:"",(a||!i)&&n.preventDefault(),!i){for(l in o=E.cache)o[l].events&&o[l].events[m]&&E.event.trigger(n,r,o[l].handle.elem,!0);return}if(n.result=t,n.target||(n.target=i),(r=null!=r?E.makeArray(r):[]).unshift(n),(p=E.event.special[m]||{}).trigger&&!1===p.trigger.apply(i,r))return;if(h=[[i,p.bindType||m]],!a&&!p.noBubble&&!E.isWindow(i)){for(g=p.delegateType||m,u=null,c=i.parentNode;c;c=c.parentNode)h.push([c,g]),u=c;u&&u===i.ownerDocument&&h.push([u.defaultView||u.parentWindow||e,g])}for(l=0;l=0:p===t&&(p=s[d]=u.quick?ee(a,u.quick):E(a).is(d)),p&&c.push(u);c.length&&y.push({elem:a,matches:c})}for(f.length>h&&y.push({elem:this,matches:f.slice(h)}),r=0;r0?this.bind(t,e,n):this.trigger(t)},E.attrFn&&(E.attrFn[t]=!0),Y.test(t)&&(E.event.fixHooks[t]=E.event.keyHooks),Z.test(t)&&(E.event.fixHooks[t]=E.event.mouseHooks)})),function(){function e(e,t,n,r,a,o){for(var s=0,l=r.length;s0){u=c;break}c=c[e]}r[s]=u}}}function n(e,t,n,r,a,o){for(var s=0,l=r.length;s+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,i="sizcache"+(Math.random()+"").replace(".",""),a=0,o=Object.prototype.toString,s=!1,l=!0,c=/\\/g,u=/\r\n/g,d=/\W/;[0,0].sort((function(){return l=!1,0}));var p=function(e,t,n,i){n=n||[];var a=t=t||j;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,l,c,u,d,f,m,v,y=!0,b=p.isXML(t),A=[],_=e;do{if(r.exec(""),(s=r.exec(_))&&(_=s[3],A.push(s[1]),s[2])){u=s[3];break}}while(s);if(A.length>1&&g.exec(e))if(2===A.length&&h.relative[A[0]])l=x(A[0]+A[1],t,i);else for(l=h.relative[A[0]]?[t]:p(A.shift(),t);A.length;)e=A.shift(),h.relative[e]&&(e+=A.shift()),l=x(e,l,i);else if(!i&&A.length>1&&9===t.nodeType&&!b&&h.match.ID.test(A[0])&&!h.match.ID.test(A[A.length-1])&&(t=(d=p.find(A.shift(),t,b)).expr?p.filter(d.expr,d.set)[0]:d.set[0]),t)for(l=(d=i?{expr:A.pop(),set:w(i)}:p.find(A.pop(),1!==A.length||"~"!==A[0]&&"+"!==A[0]||!t.parentNode?t:t.parentNode,b)).expr?p.filter(d.expr,d.set):d.set,A.length>0?c=w(l):y=!1;A.length;)m=f=A.pop(),h.relative[f]?m=A.pop():f="",null==m&&(m=t),h.relative[f](c,m,b);else c=A=[];if(c||(c=l),c||p.error(f||e),"[object Array]"===o.call(c))if(y)if(t&&1===t.nodeType)for(v=0;null!=c[v];v++)c[v]&&(!0===c[v]||1===c[v].nodeType&&p.contains(t,c[v]))&&n.push(l[v]);else for(v=0;null!=c[v];v++)c[v]&&1===c[v].nodeType&&n.push(l[v]);else n.push.apply(n,c);else w(c,n);return u&&(p(u,a,n,i),p.uniqueSort(n)),n};p.uniqueSort=function(e){if(y&&(s=l,e.sort(y),s))for(var t=1;t0},p.find=function(e,t,n){var r,i,a,o,s,l;if(!e)return[];for(i=0,a=h.order.length;i":function(e,t){var n,r="string"==typeof t,i=0,a=e.length;if(r&&!d.test(t)){for(t=t.toLowerCase();i=0)?n||r.push(o):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(c,"")},TAG:function(e,t){return e[1].replace(c,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||p.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===e[2]?"2n":"odd"===e[2]&&"2n+1")||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&p.error(e[0]);return e[0]=a++,e},ATTR:function(e,t,n,r,i,a){var o=e[1]=e[1].replace(c,"");return!a&&h.attrMap[o]&&(e[1]=h.attrMap[o]),e[4]=(e[4]||e[5]||"").replace(c,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,i,a){if("not"===e[1]){if(!((r.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var o=p.filter(e[3],t,n,!0^a);return n||i.push.apply(i,o),!1}e[3]=p(e[3],null,null,t)}else if(h.match.POS.test(e[0])||h.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return!1===e.disabled&&"hidden"!==e.type},disabled:function(e){return!0===e.disabled},checked:function(e){return!0===e.checked},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!p(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===n&&(t===n||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2==0},odd:function(e,t){return t%2==1},lt:function(e,t,n){return tn[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,r){var i=t[1],a=h.filters[i];if(a)return a(e,n,t,r);if("contains"===i)return(e.textContent||e.innerText||f([e])||"").indexOf(t[3])>=0;if("not"===i){for(var o=t[3],s=0,l=o.length;s=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],r=p.attr?p.attr(e,n):h.attrHandle[n]?h.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),i=r+"",a=t[2],o=t[4];return null==r?"!="===a:!a&&p.attr?null!=r:"="===a?i===o:"*="===a?i.indexOf(o)>=0:"~="===a?(" "+i+" ").indexOf(o)>=0:o?"!="===a?i!==o:"^="===a?0===i.indexOf(o):"$="===a?i.substr(i.length-o.length)===o:"|="===a&&(i===o||i.substr(0,o.length+1)===o+"-"):i&&!1!==r},POS:function(e,t,n,r){var i=t[2],a=h.setFilters[i];if(a)return a(e,n,t,r)}}},g=h.match.POS,m=function(e,t){return"\\"+(t-0+1)};for(var v in h.match)h.match[v]=new RegExp(h.match[v].source+/(?![^\[]*\])(?![^\(]*\))/.source),h.leftMatch[v]=new RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[v].source.replace(/\\(\d+)/g,m));var y,b,w=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(j.documentElement.childNodes,0)[0].nodeType}catch(V){w=function(e,t){var n=0,r=t||[];if("[object Array]"===o.call(e))Array.prototype.push.apply(r,e);else if("number"==typeof e.length)for(var i=e.length;n",r.insertBefore(e,r.firstChild),j.getElementById(n)&&(h.find.ID=function(e,n,r){if(void 0!==n.getElementById&&!r){var i=n.getElementById(e[1]);return i?i.id===e[1]||void 0!==i.getAttributeNode&&i.getAttributeNode("id").nodeValue===e[1]?[i]:t:[]}},h.filter.ID=function(e,t){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),r.removeChild(e),r=e=null}(),function(){var e=j.createElement("div");e.appendChild(j.createComment("")),e.getElementsByTagName("*").length>0&&(h.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var r=[],i=0;n[i];i++)1===n[i].nodeType&&r.push(n[i]);n=r}return n}),e.innerHTML="",e.firstChild&&void 0!==e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(h.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),j.querySelectorAll&&function(){var e=p,t=j.createElement("div");if(t.innerHTML="

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