123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- import{r as Ae,w as tn,c as $a,d as st,y as Et,ax as jt,ay as nn,f as qa,a as ie,V as Wr,h as Mn,ae as Ua,F as Ot,m as hr,ag as Xa,n as Va,t as Nn,a3 as Ya,z as Tr,az as pi,a9 as Ga,I as Ka,aA as Za,k as Ja,D as kn,A as vt,aB as Qa,e as Ue,aC as co,aD as es,aE as J,aF as ts,aG as ns,aH as mn,aI as fo,aJ as Kt,T as fn,aK as dn,v as ho,g as Xn,aL as rs,aM as is,aN as os,x as En,C as hn,q as po,E as as,a5 as vo,a0 as ss,M as ls}from"./index-2f5f1687.js";import{q as us}from"./base-aba1ba3e.js";import{g as Yt,s as Ze}from"./index-ab8cc45c.js";import{w as vi,q as cs,o as gt,a as ut,i as Mr,b as jr,S as Vn,c as _t,g as er,r as tr,d as fs,e as ds,f as Hr,h as hs,M as $r,t as yn,j as Er,k as ps,U as gi,l as mi,m as Hn,n as vs,p as gs,s as ms,u as ys,v as ws,x as bs,y as xs,z as qr,A as Ss,B as go,C as Or,D as Cs,E as Qe,F as Ve,G as nr,H as As,I as Zt,J as Gt,K as Lt,L as wn,N as Ur,O as $n,P as Ts,Q as Yn,V as Ms,R as Es,T as Os,W as Ps,X as yi,Y as pr,Z as mo,_ as ks,$ as wi,a0 as yo,a1 as Rs,a2 as _s,a3 as xn,a4 as Ln,a5 as wo,a6 as Ds,a7 as bo,a8 as Ns,a9 as Ls,aa as Bs}from"./fade-in-scale-up.cssr-c424ce06.js";import{T as Fs,a as bi}from"./index-b1b0de64.js";import"./use-tab-status-5df0ec1d.js";import"./index-5353ce9f.js";function At(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var i=e.ownerDocument;return i&&i.defaultView||window}return e}function Xr(e){var i=At(e).Element;return e instanceof i||e instanceof Element}function Ct(e){var i=At(e).HTMLElement;return e instanceof i||e instanceof HTMLElement}function xo(e){if(typeof ShadowRoot>"u")return!1;var i=At(e).ShadowRoot;return e instanceof i||e instanceof ShadowRoot}var gn=Math.round;function Pr(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Is(){return!/^((?!chrome|android).)*safari/i.test(Pr())}function Gn(e,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);var f=e.getBoundingClientRect(),d=1,y=1;i&&Ct(e)&&(d=e.offsetWidth>0&&gn(f.width)/e.offsetWidth||1,y=e.offsetHeight>0&&gn(f.height)/e.offsetHeight||1);var S=Xr(e)?At(e):window,T=S.visualViewport,A=!Is()&&a,M=(f.left+(A&&T?T.offsetLeft:0))/d,P=(f.top+(A&&T?T.offsetTop:0))/y,$=f.width/d,X=f.height/y;return{width:$,height:X,top:P,right:M+$,bottom:P+X,left:M,x:M,y:P}}function So(e){var i=At(e),a=i.pageXOffset,f=i.pageYOffset;return{scrollLeft:a,scrollTop:f}}function zs(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Ws(e){return e===At(e)||!Ct(e)?So(e):zs(e)}function Dt(e){return e?(e.nodeName||"").toLowerCase():null}function rr(e){return((Xr(e)?e.ownerDocument:e.document)||window.document).documentElement}function js(e){return Gn(rr(e)).left+So(e).scrollLeft}function Nt(e){return At(e).getComputedStyle(e)}function Vr(e){var i=Nt(e),a=i.overflow,f=i.overflowX,d=i.overflowY;return/auto|scroll|overlay|hidden/.test(a+d+f)}function Hs(e){var i=e.getBoundingClientRect(),a=gn(i.width)/e.offsetWidth||1,f=gn(i.height)/e.offsetHeight||1;return a!==1||f!==1}function $s(e,i,a){a===void 0&&(a=!1);var f=Ct(i),d=Ct(i)&&Hs(i),y=rr(i),S=Gn(e,d,a),T={scrollLeft:0,scrollTop:0},A={x:0,y:0};return(f||!f&&!a)&&((Dt(i)!=="body"||Vr(y))&&(T=Ws(i)),Ct(i)?(A=Gn(i,!0),A.x+=i.clientLeft,A.y+=i.clientTop):y&&(A.x=js(y))),{x:S.left+T.scrollLeft-A.x,y:S.top+T.scrollTop-A.y,width:S.width,height:S.height}}function qs(e){var i=Gn(e),a=e.offsetWidth,f=e.offsetHeight;return Math.abs(i.width-a)<=1&&(a=i.width),Math.abs(i.height-f)<=1&&(f=i.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:f}}function Yr(e){return Dt(e)==="html"?e:e.assignedSlot||e.parentNode||(xo(e)?e.host:null)||rr(e)}function Co(e){return["html","body","#document"].indexOf(Dt(e))>=0?e.ownerDocument.body:Ct(e)&&Vr(e)?e:Co(Yr(e))}function qn(e,i){var a;i===void 0&&(i=[]);var f=Co(e),d=f===((a=e.ownerDocument)==null?void 0:a.body),y=At(f),S=d?[y].concat(y.visualViewport||[],Vr(f)?f:[]):f,T=i.concat(S);return d?T:T.concat(qn(Yr(S)))}function Us(e){return["table","td","th"].indexOf(Dt(e))>=0}function xi(e){return!Ct(e)||Nt(e).position==="fixed"?null:e.offsetParent}function Xs(e){var i=/firefox/i.test(Pr()),a=/Trident/i.test(Pr());if(a&&Ct(e)){var f=Nt(e);if(f.position==="fixed")return null}var d=Yr(e);for(xo(d)&&(d=d.host);Ct(d)&&["html","body"].indexOf(Dt(d))<0;){var y=Nt(d);if(y.transform!=="none"||y.perspective!=="none"||y.contain==="paint"||["transform","perspective"].indexOf(y.willChange)!==-1||i&&y.willChange==="filter"||i&&y.filter&&y.filter!=="none")return d;d=d.parentNode}return null}function Ao(e){for(var i=At(e),a=xi(e);a&&Us(a)&&Nt(a).position==="static";)a=xi(a);return a&&(Dt(a)==="html"||Dt(a)==="body"&&Nt(a).position==="static")?i:a||Xs(e)||i}var pn="top",Kn="bottom",On="right",Jt="left",To="auto",Vs=[pn,Kn,On,Jt],Mo="start",Zn="end",Ys=[].concat(Vs,[To]).reduce(function(e,i){return e.concat([i,i+"-"+Mo,i+"-"+Zn])},[]),Gs="beforeRead",Ks="read",Zs="afterRead",Js="beforeMain",Qs="main",el="afterMain",tl="beforeWrite",nl="write",rl="afterWrite",kr=[Gs,Ks,Zs,Js,Qs,el,tl,nl,rl];function il(e){var i=new Map,a=new Set,f=[];e.forEach(function(y){i.set(y.name,y)});function d(y){a.add(y.name);var S=[].concat(y.requires||[],y.requiresIfExists||[]);S.forEach(function(T){if(!a.has(T)){var A=i.get(T);A&&d(A)}}),f.push(y)}return e.forEach(function(y){a.has(y.name)||d(y)}),f}function ol(e){var i=il(e);return kr.reduce(function(a,f){return a.concat(i.filter(function(d){return d.phase===f}))},[])}function al(e){var i;return function(){return i||(i=new Promise(function(a){Promise.resolve().then(function(){i=void 0,a(e())})})),i}}function It(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),f=1;f<i;f++)a[f-1]=arguments[f];return[].concat(a).reduce(function(d,y){return d.replace(/%s/,y)},e)}var Ut='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',sl='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',Si=["name","enabled","phase","fn","effect","requires","options"];function ll(e){e.forEach(function(i){[].concat(Object.keys(i),Si).filter(function(a,f,d){return d.indexOf(a)===f}).forEach(function(a){switch(a){case"name":typeof i.name!="string"&&console.error(It(Ut,String(i.name),'"name"','"string"','"'+String(i.name)+'"'));break;case"enabled":typeof i.enabled!="boolean"&&console.error(It(Ut,i.name,'"enabled"','"boolean"','"'+String(i.enabled)+'"'));break;case"phase":kr.indexOf(i.phase)<0&&console.error(It(Ut,i.name,'"phase"',"either "+kr.join(", "),'"'+String(i.phase)+'"'));break;case"fn":typeof i.fn!="function"&&console.error(It(Ut,i.name,'"fn"','"function"','"'+String(i.fn)+'"'));break;case"effect":i.effect!=null&&typeof i.effect!="function"&&console.error(It(Ut,i.name,'"effect"','"function"','"'+String(i.fn)+'"'));break;case"requires":i.requires!=null&&!Array.isArray(i.requires)&&console.error(It(Ut,i.name,'"requires"','"array"','"'+String(i.requires)+'"'));break;case"requiresIfExists":Array.isArray(i.requiresIfExists)||console.error(It(Ut,i.name,'"requiresIfExists"','"array"','"'+String(i.requiresIfExists)+'"'));break;case"options":case"data":break;default:console.error('PopperJS: an invalid property has been provided to the "'+i.name+'" modifier, valid properties are '+Si.map(function(f){return'"'+f+'"'}).join(", ")+'; but "'+a+'" was provided.')}i.requires&&i.requires.forEach(function(f){e.find(function(d){return d.name===f})==null&&console.error(It(sl,String(i.name),f,f))})})})}function ul(e,i){var a=new Set;return e.filter(function(f){var d=i(f);if(!a.has(d))return a.add(d),!0})}function ir(e){return e.split("-")[0]}function cl(e){var i=e.reduce(function(a,f){var d=a[f.name];return a[f.name]=d?Object.assign({},d,f,{options:Object.assign({},d.options,f.options),data:Object.assign({},d.data,f.data)}):f,a},{});return Object.keys(i).map(function(a){return i[a]})}function Eo(e){return e.split("-")[1]}function fl(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function dl(e){var i=e.reference,a=e.element,f=e.placement,d=f?ir(f):null,y=f?Eo(f):null,S=i.x+i.width/2-a.width/2,T=i.y+i.height/2-a.height/2,A;switch(d){case pn:A={x:S,y:i.y-a.height};break;case Kn:A={x:S,y:i.y+i.height};break;case On:A={x:i.x+i.width,y:T};break;case Jt:A={x:i.x-a.width,y:T};break;default:A={x:i.x,y:i.y}}var M=d?fl(d):null;if(M!=null){var P=M==="y"?"height":"width";switch(y){case Mo:A[M]=A[M]-(i[P]/2-a[P]/2);break;case Zn:A[M]=A[M]+(i[P]/2-a[P]/2);break}}return A}var Ci="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",hl="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ai={placement:"bottom",modifiers:[],strategy:"absolute"};function Ti(){for(var e=arguments.length,i=new Array(e),a=0;a<e;a++)i[a]=arguments[a];return!i.some(function(f){return!(f&&typeof f.getBoundingClientRect=="function")})}function pl(e){e===void 0&&(e={});var i=e,a=i.defaultModifiers,f=a===void 0?[]:a,d=i.defaultOptions,y=d===void 0?Ai:d;return function(T,A,M){M===void 0&&(M=y);var P={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ai,y),modifiersData:{},elements:{reference:T,popper:A},attributes:{},styles:{}},$=[],X=!1,Y={state:P,setOptions:function(Z){var D=typeof Z=="function"?Z(P.options):Z;N(),P.options=Object.assign({},y,P.options,D),P.scrollParents={reference:Xr(T)?qn(T):T.contextElement?qn(T.contextElement):[],popper:qn(A)};var te=ol(cl([].concat(f,P.options.modifiers)));P.orderedModifiers=te.filter(function(Pe){return Pe.enabled});{var ye=ul([].concat(te,P.options.modifiers),function(Pe){var Be=Pe.name;return Be});if(ll(ye),ir(P.options.placement)===To){var ee=P.orderedModifiers.find(function(Pe){var Be=Pe.name;return Be==="flip"});ee||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var pe=Nt(A),fe=pe.marginTop,ve=pe.marginRight,Se=pe.marginBottom,be=pe.marginLeft;[fe,ve,Se,be].some(function(Pe){return parseFloat(Pe)})&&console.warn(['Popper: CSS "margin" styles cannot be used to apply padding',"between the popper and its reference element or boundary.","To replicate margin, use the `offset` modifier, as well as","the `padding` option in the `preventOverflow` and `flip`","modifiers."].join(" "))}return se(),Y.update()},forceUpdate:function(){if(!X){var Z=P.elements,D=Z.reference,te=Z.popper;if(!Ti(D,te)){console.error(Ci);return}P.rects={reference:$s(D,Ao(te),P.options.strategy==="fixed"),popper:qs(te)},P.reset=!1,P.placement=P.options.placement,P.orderedModifiers.forEach(function(Pe){return P.modifiersData[Pe.name]=Object.assign({},Pe.data)});for(var ye=0,ee=0;ee<P.orderedModifiers.length;ee++){if(ye+=1,ye>100){console.error(hl);break}if(P.reset===!0){P.reset=!1,ee=-1;continue}var pe=P.orderedModifiers[ee],fe=pe.fn,ve=pe.options,Se=ve===void 0?{}:ve,be=pe.name;typeof fe=="function"&&(P=fe({state:P,options:Se,name:be,instance:Y})||P)}}},update:al(function(){return new Promise(function(L){Y.forceUpdate(),L(P)})}),destroy:function(){N(),X=!0}};if(!Ti(T,A))return console.error(Ci),Y;Y.setOptions(M).then(function(L){!X&&M.onFirstUpdate&&M.onFirstUpdate(L)});function se(){P.orderedModifiers.forEach(function(L){var Z=L.name,D=L.options,te=D===void 0?{}:D,ye=L.effect;if(typeof ye=="function"){var ee=ye({state:P,name:Z,instance:Y,options:te}),pe=function(){};$.push(ee||pe)}})}function N(){$.forEach(function(L){return L()}),$=[]}return Y}}var Bn={passive:!0};function vl(e){var i=e.state,a=e.instance,f=e.options,d=f.scroll,y=d===void 0?!0:d,S=f.resize,T=S===void 0?!0:S,A=At(i.elements.popper),M=[].concat(i.scrollParents.reference,i.scrollParents.popper);return y&&M.forEach(function(P){P.addEventListener("scroll",a.update,Bn)}),T&&A.addEventListener("resize",a.update,Bn),function(){y&&M.forEach(function(P){P.removeEventListener("scroll",a.update,Bn)}),T&&A.removeEventListener("resize",a.update,Bn)}}var gl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:vl,data:{}};function ml(e){var i=e.state,a=e.name;i.modifiersData[a]=dl({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var yl={name:"popperOffsets",enabled:!0,phase:"read",fn:ml,data:{}},wl={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bl(e){var i=e.x,a=e.y,f=window,d=f.devicePixelRatio||1;return{x:gn(i*d)/d||0,y:gn(a*d)/d||0}}function Mi(e){var i,a=e.popper,f=e.popperRect,d=e.placement,y=e.variation,S=e.offsets,T=e.position,A=e.gpuAcceleration,M=e.adaptive,P=e.roundOffsets,$=e.isFixed,X=S.x,Y=X===void 0?0:X,se=S.y,N=se===void 0?0:se,L=typeof P=="function"?P({x:Y,y:N}):{x:Y,y:N};Y=L.x,N=L.y;var Z=S.hasOwnProperty("x"),D=S.hasOwnProperty("y"),te=Jt,ye=pn,ee=window;if(M){var pe=Ao(a),fe="clientHeight",ve="clientWidth";if(pe===At(a)&&(pe=rr(a),Nt(pe).position!=="static"&&T==="absolute"&&(fe="scrollHeight",ve="scrollWidth")),pe=pe,d===pn||(d===Jt||d===On)&&y===Zn){ye=Kn;var Se=$&&pe===ee&&ee.visualViewport?ee.visualViewport.height:pe[fe];N-=Se-f.height,N*=A?1:-1}if(d===Jt||(d===pn||d===Kn)&&y===Zn){te=On;var be=$&&pe===ee&&ee.visualViewport?ee.visualViewport.width:pe[ve];Y-=be-f.width,Y*=A?1:-1}}var Pe=Object.assign({position:T},M&&wl),Be=P===!0?bl({x:Y,y:N}):{x:Y,y:N};if(Y=Be.x,N=Be.y,A){var Te;return Object.assign({},Pe,(Te={},Te[ye]=D?"0":"",Te[te]=Z?"0":"",Te.transform=(ee.devicePixelRatio||1)<=1?"translate("+Y+"px, "+N+"px)":"translate3d("+Y+"px, "+N+"px, 0)",Te))}return Object.assign({},Pe,(i={},i[ye]=D?N+"px":"",i[te]=Z?Y+"px":"",i.transform="",i))}function xl(e){var i=e.state,a=e.options,f=a.gpuAcceleration,d=f===void 0?!0:f,y=a.adaptive,S=y===void 0?!0:y,T=a.roundOffsets,A=T===void 0?!0:T;{var M=Nt(i.elements.popper).transitionProperty||"";S&&["transform","top","right","bottom","left"].some(function($){return M.indexOf($)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
- `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",`
- `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var P={placement:ir(i.placement),variation:Eo(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:d,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,Mi(Object.assign({},P,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:S,roundOffsets:A})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,Mi(Object.assign({},P,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:A})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var Sl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:xl,data:{}};function Cl(e){var i=e.state;Object.keys(i.elements).forEach(function(a){var f=i.styles[a]||{},d=i.attributes[a]||{},y=i.elements[a];!Ct(y)||!Dt(y)||(Object.assign(y.style,f),Object.keys(d).forEach(function(S){var T=d[S];T===!1?y.removeAttribute(S):y.setAttribute(S,T===!0?"":T)}))})}function Al(e){var i=e.state,a={popper:{position:i.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(i.elements.popper.style,a.popper),i.styles=a,i.elements.arrow&&Object.assign(i.elements.arrow.style,a.arrow),function(){Object.keys(i.elements).forEach(function(f){var d=i.elements[f],y=i.attributes[f]||{},S=Object.keys(i.styles.hasOwnProperty(f)?i.styles[f]:a[f]),T=S.reduce(function(A,M){return A[M]="",A},{});!Ct(d)||!Dt(d)||(Object.assign(d.style,T),Object.keys(y).forEach(function(A){d.removeAttribute(A)}))})}}var Tl={name:"applyStyles",enabled:!0,phase:"write",fn:Cl,effect:Al,requires:["computeStyles"]},Ml=[gl,yl,Sl,Tl],El=pl({defaultModifiers:Ml});function Ol(e,i,a){var f=ir(e),d=[Jt,pn].indexOf(f)>=0?-1:1,y=typeof a=="function"?a(Object.assign({},i,{placement:e})):a,S=y[0],T=y[1];return S=S||0,T=(T||0)*d,[Jt,On].indexOf(f)>=0?{x:T,y:S}:{x:S,y:T}}function Pl(e){var i=e.state,a=e.options,f=e.name,d=a.offset,y=d===void 0?[0,0]:d,S=Ys.reduce(function(P,$){return P[$]=Ol($,i.rects,y),P},{}),T=S[i.placement],A=T.x,M=T.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=A,i.modifiersData.popperOffsets.y+=M),i.modifiersData[f]=S}var kl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Pl};const Rl=(e,i)=>{const a=Ae(e());return tn(e,f=>{f!==a.value&&(a.value=f)}),tn(a,f=>{f!==e()&&i(f)}),a},[_l,Xt]=$a("popover"),Dl=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Nl={show:Boolean,theme:hr("light"),overlay:Boolean,actions:Xa(),trigger:hr("click"),duration:Va,showArrow:Nn,placement:hr("bottom"),iconPrefix:String,overlayClass:Ya,overlayStyle:Object,closeOnClickAction:Nn,closeOnClickOverlay:Nn,closeOnClickOutside:Nn,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Ll=st({name:_l,props:Nl,emits:["select","touchstart","update:show"],setup(e,{emit:i,slots:a,attrs:f}){let d;const y=Ae(),S=Ae(),T=Ae(),A=Rl(()=>e.show,D=>i("update:show",D)),M=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Ga({},kl,{options:{offset:e.offset}})]}),P=()=>S.value&&T.value?El(S.value,T.value.popupRef.value,M()):null,$=()=>{Tr(()=>{A.value&&(d?d.setOptions(M()):(d=P(),pi&&(window.addEventListener("animationend",$),window.addEventListener("transitionend",$))))})},X=D=>{A.value=D},Y=()=>{e.trigger==="click"&&(A.value=!A.value)},se=(D,te)=>{D.disabled||(i("select",D,te),e.closeOnClickAction&&(A.value=!1))},N=()=>{A.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(A.value=!1)},L=(D,te)=>a.action?a.action({action:D,index:te}):[D.icon&&ie(Ka,{name:D.icon,classPrefix:e.iconPrefix,class:Xt("action-icon")},null),ie("div",{class:[Xt("action-text"),Za]},[D.text])],Z=(D,te)=>{const{icon:ye,color:ee,disabled:pe,className:fe}=D;return ie("div",{role:"menuitem",class:[Xt("action",{disabled:pe,"with-icon":ye}),fe],style:{color:ee},tabindex:pe?void 0:0,"aria-disabled":pe||void 0,onClick:()=>se(D,te)},[L(D,te)])};return Et(()=>{$(),jt(()=>{var D;y.value=(D=T.value)==null?void 0:D.popupRef.value})}),nn(()=>{d&&(pi&&(window.removeEventListener("animationend",$),window.removeEventListener("transitionend",$)),d.destroy(),d=null)}),tn(()=>[A.value,e.offset,e.placement],$),qa([S,y],N,{eventName:"touchstart"}),()=>{var D;return ie(Ot,null,[ie("span",{ref:S,class:Xt("wrapper"),onClick:Y},[(D=a.reference)==null?void 0:D.call(a)]),ie(Wr,Mn({ref:T,show:A.value,class:Xt([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":X},f,Ua(e,Dl)),{default:()=>[e.showArrow&&ie("div",{class:Xt("arrow")},null),ie("div",{role:"menu",class:Xt("content")},[a.default?a.default():e.actions.map(Z)])]})])}}});const Bl=Ja(Ll),Fl="_container_drr4y_1",Il="_head_drr4y_10",zl="_back_drr4y_18",Wl="_tabs_drr4y_21",jl="_downBtn_drr4y_37",Hl="_icon_drr4y_61",$l="_iconUp_drr4y_67",ql="_popover_drr4y_72",Ul="_content_drr4y_91",Xl="_wrap_drr4y_97",Vl="_emtpyWrap_drr4y_103",Yl="_wrapItem_drr4y_114",Gl="_name_drr4y_124",Kl="_favoriteBtn_drr4y_131",Zl="_containerImg_drr4y_137",Jl="_cover_drr4y_163",Ql="_loaded_drr4y_194",eu="_book_drr4y_197",tu="_bookWrap_drr4y_211",nu="_show_drr4y_219",dt={container:Fl,head:Il,back:zl,tabs:Wl,downBtn:jl,icon:Hl,iconUp:$l,popover:ql,content:Ul,wrap:Xl,emtpyWrap:Vl,wrapItem:Yl,name:Gl,favoriteBtn:Kl,containerImg:Zl,cover:Jl,loaded:Ql,book:eu,bookWrap:tu,show:nu},Oo=""+new URL("icon_back-b80c2fc2.svg",import.meta.url).href,ru=e=>kn.post("/edu-app/lessonCourseware/page",{data:e}),iu=e=>kn.post("/edu-app/lessonCoursewareFavorite/page",{data:e}),ou=e=>kn.post("/edu-app/lessonCoursewareFavorite/save",{data:e}),au=e=>kn.post("/edu-app/lessonCoursewareFavorite/remove",{data:e}),su=e=>kn.get(`/edu-app/lessonCourseware/detail/${e}`);function Jn(e){return e.composedPath()[0]||null}function Po(e=8){return Math.random().toString(16).slice(2,2+e)}function lu(e,i=[],a){const f={};return i.forEach(d=>{f[d]=e[d]}),Object.assign(f,a)}function Rr(e,i=!0,a=[]){return e.forEach(f=>{if(f!==null){if(typeof f!="object"){(typeof f=="string"||typeof f=="number")&&a.push(vt(String(f)));return}if(Array.isArray(f)){Rr(f,i,a);return}if(f.type===Ot){if(f.children===null)return;Array.isArray(f.children)&&Rr(f.children,i,a)}else f.type!==Qa&&a.push(f)}}),a}function Ei(e,i="default",a=void 0){const f=e[i];if(!f)return vi("getFirstSlotVNode",`slot[${i}] is empty`),null;const d=Rr(f(a));return d.length===1?d[0]:(vi("getFirstSlotVNode",`slot[${i}] should have exactly one child`),null)}const Oi=st({render(){var e,i;return(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e)}}),uu=/^(\d|\.)+$/,Pi=/(\d|\.)+/;function vr(e,{c:i=1,offset:a=0,attachPx:f=!0}={}){if(typeof e=="number"){const d=(e+a)*i;return d===0?"0":`${d}px`}else if(typeof e=="string")if(uu.test(e)){const d=(Number(e)+a)*i;return f?d===0?"0":`${d}px`:`${d}`}else{const d=Pi.exec(e);return d?e.replace(Pi,String((Number(d[0])+a)*i)):e}return e}function cu(e,i){if(e===void 0)return!1;if(i){const{context:{ids:a}}=i;return a.has(e)}return cs(e)!==null}let gr;function fu(){return gr===void 0&&(gr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),gr}const du=typeof document<"u"&&typeof window<"u";function hu(e,i){return Ue(()=>{for(const a of i)if(e[a]!==void 0)return e[a];return e[i[i.length-1]]})}const pu=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function vu(){return pu}const ln="@@mmoContext",gu={mounted(e,{value:i}){e[ln]={handler:void 0},typeof i=="function"&&(e[ln].handler=i,gt("mousemoveoutside",e,i))},updated(e,{value:i}){const a=e[ln];typeof i=="function"?a.handler?a.handler!==i&&(ut("mousemoveoutside",e,a.handler),a.handler=i,gt("mousemoveoutside",e,i)):(e[ln].handler=i,gt("mousemoveoutside",e,i)):a.handler&&(ut("mousemoveoutside",e,a.handler),a.handler=void 0)},unmounted(e){const{handler:i}=e[ln];i&&ut("mousemoveoutside",e,i),e[ln].handler=void 0}},mu=gu,un="@@coContext",yu={mounted(e,{value:i,modifiers:a}){e[un]={handler:void 0},typeof i=="function"&&(e[un].handler=i,gt("clickoutside",e,i,{capture:a.capture}))},updated(e,{value:i,modifiers:a}){const f=e[un];typeof i=="function"?f.handler?f.handler!==i&&(ut("clickoutside",e,f.handler,{capture:a.capture}),f.handler=i,gt("clickoutside",e,i,{capture:a.capture})):(e[un].handler=i,gt("clickoutside",e,i,{capture:a.capture})):f.handler&&(ut("clickoutside",e,f.handler,{capture:a.capture}),f.handler=void 0)},unmounted(e,{modifiers:i}){const{handler:a}=e[un];a&&ut("clickoutside",e,a,{capture:i.capture}),e[un].handler=void 0}},ki=yu;function Ri(e,i){console.error(`[vueuc/${e}]: ${i}`)}function _i(e){return typeof e=="string"?document.querySelector(e):e()}var Qt=[],wu=function(){return Qt.some(function(e){return e.activeTargets.length>0})},bu=function(){return Qt.some(function(e){return e.skippedTargets.length>0})},Di="ResizeObserver loop completed with undelivered notifications.",xu=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Di}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Di),window.dispatchEvent(e)},Pn;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(Pn||(Pn={}));var en=function(e){return Object.freeze(e)},Su=function(){function e(i,a){this.inlineSize=i,this.blockSize=a,en(this)}return e}(),ko=function(){function e(i,a,f,d){return this.x=i,this.y=a,this.width=f,this.height=d,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,en(this)}return e.prototype.toJSON=function(){var i=this,a=i.x,f=i.y,d=i.top,y=i.right,S=i.bottom,T=i.left,A=i.width,M=i.height;return{x:a,y:f,top:d,right:y,bottom:S,left:T,width:A,height:M}},e.fromRect=function(i){return new e(i.x,i.y,i.width,i.height)},e}(),Gr=function(e){return e instanceof SVGElement&&"getBBox"in e},Ro=function(e){if(Gr(e)){var i=e.getBBox(),a=i.width,f=i.height;return!a&&!f}var d=e,y=d.offsetWidth,S=d.offsetHeight;return!(y||S||e.getClientRects().length)},Ni=function(e){var i;if(e instanceof Element)return!0;var a=(i=e==null?void 0:e.ownerDocument)===null||i===void 0?void 0:i.defaultView;return!!(a&&e instanceof a.Element)},Cu=function(e){switch(e.tagName){case"INPUT":if(e.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},Tn=typeof window<"u"?window:{},Fn=new WeakMap,Li=/auto|scroll/,Au=/^tb|vertical/,Tu=/msie|trident/i.test(Tn.navigator&&Tn.navigator.userAgent),Mt=function(e){return parseFloat(e||"0")},vn=function(e,i,a){return e===void 0&&(e=0),i===void 0&&(i=0),a===void 0&&(a=!1),new Su((a?i:e)||0,(a?e:i)||0)},Bi=en({devicePixelContentBoxSize:vn(),borderBoxSize:vn(),contentBoxSize:vn(),contentRect:new ko(0,0,0,0)}),_o=function(e,i){if(i===void 0&&(i=!1),Fn.has(e)&&!i)return Fn.get(e);if(Ro(e))return Fn.set(e,Bi),Bi;var a=getComputedStyle(e),f=Gr(e)&&e.ownerSVGElement&&e.getBBox(),d=!Tu&&a.boxSizing==="border-box",y=Au.test(a.writingMode||""),S=!f&&Li.test(a.overflowY||""),T=!f&&Li.test(a.overflowX||""),A=f?0:Mt(a.paddingTop),M=f?0:Mt(a.paddingRight),P=f?0:Mt(a.paddingBottom),$=f?0:Mt(a.paddingLeft),X=f?0:Mt(a.borderTopWidth),Y=f?0:Mt(a.borderRightWidth),se=f?0:Mt(a.borderBottomWidth),N=f?0:Mt(a.borderLeftWidth),L=$+M,Z=A+P,D=N+Y,te=X+se,ye=T?e.offsetHeight-te-e.clientHeight:0,ee=S?e.offsetWidth-D-e.clientWidth:0,pe=d?L+D:0,fe=d?Z+te:0,ve=f?f.width:Mt(a.width)-pe-ee,Se=f?f.height:Mt(a.height)-fe-ye,be=ve+L+ee+D,Pe=Se+Z+ye+te,Be=en({devicePixelContentBoxSize:vn(Math.round(ve*devicePixelRatio),Math.round(Se*devicePixelRatio),y),borderBoxSize:vn(be,Pe,y),contentBoxSize:vn(ve,Se,y),contentRect:new ko($,A,ve,Se)});return Fn.set(e,Be),Be},Do=function(e,i,a){var f=_o(e,a),d=f.borderBoxSize,y=f.contentBoxSize,S=f.devicePixelContentBoxSize;switch(i){case Pn.DEVICE_PIXEL_CONTENT_BOX:return S;case Pn.BORDER_BOX:return d;default:return y}},Mu=function(){function e(i){var a=_o(i);this.target=i,this.contentRect=a.contentRect,this.borderBoxSize=en([a.borderBoxSize]),this.contentBoxSize=en([a.contentBoxSize]),this.devicePixelContentBoxSize=en([a.devicePixelContentBoxSize])}return e}(),No=function(e){if(Ro(e))return 1/0;for(var i=0,a=e.parentNode;a;)i+=1,a=a.parentNode;return i},Eu=function(){var e=1/0,i=[];Qt.forEach(function(S){if(S.activeTargets.length!==0){var T=[];S.activeTargets.forEach(function(M){var P=new Mu(M.target),$=No(M.target);T.push(P),M.lastReportedSize=Do(M.target,M.observedBox),$<e&&(e=$)}),i.push(function(){S.callback.call(S.observer,T,S.observer)}),S.activeTargets.splice(0,S.activeTargets.length)}});for(var a=0,f=i;a<f.length;a++){var d=f[a];d()}return e},Fi=function(e){Qt.forEach(function(a){a.activeTargets.splice(0,a.activeTargets.length),a.skippedTargets.splice(0,a.skippedTargets.length),a.observationTargets.forEach(function(d){d.isActive()&&(No(d.target)>e?a.activeTargets.push(d):a.skippedTargets.push(d))})})},Ou=function(){var e=0;for(Fi(e);wu();)e=Eu(),Fi(e);return bu()&&xu(),e>0},mr,Lo=[],Pu=function(){return Lo.splice(0).forEach(function(e){return e()})},ku=function(e){if(!mr){var i=0,a=document.createTextNode(""),f={characterData:!0};new MutationObserver(function(){return Pu()}).observe(a,f),mr=function(){a.textContent="".concat(i?i--:i++)}}Lo.push(e),mr()},Ru=function(e){ku(function(){requestAnimationFrame(e)})},Un=0,_u=function(){return!!Un},Du=250,Nu={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ii=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],zi=function(e){return e===void 0&&(e=0),Date.now()+e},yr=!1,Lu=function(){function e(){var i=this;this.stopped=!0,this.listener=function(){return i.schedule()}}return e.prototype.run=function(i){var a=this;if(i===void 0&&(i=Du),!yr){yr=!0;var f=zi(i);Ru(function(){var d=!1;try{d=Ou()}finally{if(yr=!1,i=f-zi(),!_u())return;d?a.run(1e3):i>0?a.run(i):a.start()}})}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var i=this,a=function(){return i.observer&&i.observer.observe(document.body,Nu)};document.body?a():Tn.addEventListener("DOMContentLoaded",a)},e.prototype.start=function(){var i=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ii.forEach(function(a){return Tn.addEventListener(a,i.listener,!0)}))},e.prototype.stop=function(){var i=this;this.stopped||(this.observer&&this.observer.disconnect(),Ii.forEach(function(a){return Tn.removeEventListener(a,i.listener,!0)}),this.stopped=!0)},e}(),_r=new Lu,Wi=function(e){!Un&&e>0&&_r.start(),Un+=e,!Un&&_r.stop()},Bu=function(e){return!Gr(e)&&!Cu(e)&&getComputedStyle(e).display==="inline"},Fu=function(){function e(i,a){this.target=i,this.observedBox=a||Pn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var i=Do(this.target,this.observedBox,!0);return Bu(this.target)&&(this.lastReportedSize=i),this.lastReportedSize.inlineSize!==i.inlineSize||this.lastReportedSize.blockSize!==i.blockSize},e}(),Iu=function(){function e(i,a){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=i,this.callback=a}return e}(),In=new WeakMap,ji=function(e,i){for(var a=0;a<e.length;a+=1)if(e[a].target===i)return a;return-1},zn=function(){function e(){}return e.connect=function(i,a){var f=new Iu(i,a);In.set(i,f)},e.observe=function(i,a,f){var d=In.get(i),y=d.observationTargets.length===0;ji(d.observationTargets,a)<0&&(y&&Qt.push(d),d.observationTargets.push(new Fu(a,f&&f.box)),Wi(1),_r.schedule())},e.unobserve=function(i,a){var f=In.get(i),d=ji(f.observationTargets,a),y=f.observationTargets.length===1;d>=0&&(y&&Qt.splice(Qt.indexOf(f),1),f.observationTargets.splice(d,1),Wi(-1))},e.disconnect=function(i){var a=this,f=In.get(i);f.observationTargets.slice().forEach(function(d){return a.unobserve(i,d.target)}),f.activeTargets.splice(0,f.activeTargets.length)},e}(),zu=function(){function e(i){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof i!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");zn.connect(this,i)}return e.prototype.observe=function(i,a){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ni(i))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");zn.observe(this,i,a)},e.prototype.unobserve=function(i){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Ni(i))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");zn.unobserve(this,i)},e.prototype.disconnect=function(){zn.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Wu{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||zu)(this.handleResize),this.elHandlersMap=new Map}handleResize(i){for(const a of i){const f=this.elHandlersMap.get(a.target);f!==void 0&&f(a)}}registerHandler(i,a){this.elHandlersMap.set(i,a),this.observer.observe(i)}unregisterHandler(i){this.elHandlersMap.has(i)&&(this.elHandlersMap.delete(i),this.observer.unobserve(i))}}const Hi=new Wu,$i=st({name:"ResizeObserver",props:{onResize:Function},setup(e){let i=!1;const a=co().proxy;function f(d){const{onResize:y}=e;y!==void 0&&y(d)}Et(()=>{const d=a.$el;if(d===void 0){Ri("resize-observer","$el does not exist.");return}if(d.nextElementSibling!==d.nextSibling&&d.nodeType===3&&d.nodeValue!==""){Ri("resize-observer","$el can not be observed (it may be a text node).");return}d.nextElementSibling!==null&&(Hi.registerHandler(d.nextElementSibling,f),i=!0)}),nn(()=>{i&&Hi.unregisterHandler(a.$el.nextElementSibling)})},render(){return es(this.$slots,"default")}});function Bo(e){return e instanceof HTMLElement}function Fo(e){for(let i=0;i<e.childNodes.length;i++){const a=e.childNodes[i];if(Bo(a)&&(zo(a)||Fo(a)))return!0}return!1}function Io(e){for(let i=e.childNodes.length-1;i>=0;i--){const a=e.childNodes[i];if(Bo(a)&&(zo(a)||Io(a)))return!0}return!1}function zo(e){if(!ju(e))return!1;try{e.focus({preventScroll:!0})}catch(i){}return document.activeElement===e}function ju(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Sn=[];const Hu=st({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const i=Po(),a=Ae(null),f=Ae(null);let d=!1,y=!1;const S=typeof document>"u"?null:document.activeElement;function T(){return Sn[Sn.length-1]===i}function A(L){var Z;L.code==="Escape"&&T()&&((Z=e.onEsc)===null||Z===void 0||Z.call(e,L))}Et(()=>{tn(()=>e.active,L=>{L?($(),gt("keydown",document,A)):(ut("keydown",document,A),d&&X())},{immediate:!0})}),nn(()=>{ut("keydown",document,A),d&&X()});function M(L){if(!y&&T()){const Z=P();if(Z===null||Z.contains(Jn(L)))return;Y("first")}}function P(){const L=a.value;if(L===null)return null;let Z=L;for(;Z=Z.nextSibling,!(Z===null||Z instanceof Element&&Z.tagName==="DIV"););return Z}function $(){var L;if(!e.disabled){if(Sn.push(i),e.autoFocus){const{initialFocusTo:Z}=e;Z===void 0?Y("first"):(L=_i(Z))===null||L===void 0||L.focus({preventScroll:!0})}d=!0,document.addEventListener("focus",M,!0)}}function X(){var L;if(e.disabled||(document.removeEventListener("focus",M,!0),Sn=Sn.filter(D=>D!==i),T()))return;const{finalFocusTo:Z}=e;Z!==void 0?(L=_i(Z))===null||L===void 0||L.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&S instanceof HTMLElement&&(y=!0,S.focus({preventScroll:!0}),y=!1)}function Y(L){if(T()&&e.active){const Z=a.value,D=f.value;if(Z!==null&&D!==null){const te=P();if(te==null||te===D){y=!0,Z.focus({preventScroll:!0}),y=!1;return}y=!0;const ye=L==="first"?Fo(te):Io(te);y=!1,ye||(y=!0,Z.focus({preventScroll:!0}),y=!1)}}}function se(L){if(y)return;const Z=P();Z!==null&&(L.relatedTarget!==null&&Z.contains(L.relatedTarget)?Y("last"):Y("first"))}function N(L){y||(L.relatedTarget!==null&&L.relatedTarget===a.value?Y("last"):Y("first"))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:se,handleEndFocus:N}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:i,focusableStyle:a}=this;return J(Ot,null,[J("div",{"aria-hidden":"true",tabindex:i?"0":"-1",ref:"focusableStartRef",style:a,onFocus:this.handleStartFocus}),e(),J("div",{"aria-hidden":"true",style:a,ref:"focusableEndRef",tabindex:i?"0":"-1",onFocus:this.handleEndFocus})])}});function $u(e){const i={isDeactivated:!1};let a=!1;return ts(()=>{if(i.isDeactivated=!1,!a){a=!0;return}e()}),ns(()=>{i.isDeactivated=!0,a||(a=!0)}),i}var qu="[object Symbol]";function Kr(e){return typeof e=="symbol"||Mr(e)&&jr(e)==qu}function Wo(e,i){for(var a=-1,f=e==null?0:e.length,d=Array(f);++a<f;)d[a]=i(e[a],a,e);return d}var Uu=1/0,qi=Vn?Vn.prototype:void 0,Ui=qi?qi.toString:void 0;function jo(e){if(typeof e=="string")return e;if(_t(e))return Wo(e,jo)+"";if(Kr(e))return Ui?Ui.call(e):"";var i=e+"";return i=="0"&&1/e==-Uu?"-0":i}var Xu=er(tr,"WeakMap");const Dr=Xu;var Vu=fs(Object.keys,Object);const Yu=Vu;var Gu=Object.prototype,Ku=Gu.hasOwnProperty;function Zu(e){if(!ds(e))return Yu(e);var i=[];for(var a in Object(e))Ku.call(e,a)&&a!="constructor"&&i.push(a);return i}function Zr(e){return Hr(e)?hs(e):Zu(e)}var Ju=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qu=/^\w*$/;function Jr(e,i){if(_t(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||Kr(e)?!0:Qu.test(e)||!Ju.test(e)||i!=null&&e in Object(i)}var ec="Expected a function";function Qr(e,i){if(typeof e!="function"||i!=null&&typeof i!="function")throw new TypeError(ec);var a=function(){var f=arguments,d=i?i.apply(this,f):f[0],y=a.cache;if(y.has(d))return y.get(d);var S=e.apply(this,f);return a.cache=y.set(d,S)||y,S};return a.cache=new(Qr.Cache||$r),a}Qr.Cache=$r;var tc=500;function nc(e){var i=Qr(e,function(f){return a.size===tc&&a.clear(),f}),a=i.cache;return i}var rc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ic=/\\(\\)?/g,oc=nc(function(e){var i=[];return e.charCodeAt(0)===46&&i.push(""),e.replace(rc,function(a,f,d,y){i.push(d?y.replace(ic,"$1"):f||a)}),i});const ac=oc;function or(e){return e==null?"":jo(e)}function Ho(e,i){return _t(e)?e:Jr(e,i)?[e]:ac(or(e))}var sc=1/0;function ar(e){if(typeof e=="string"||Kr(e))return e;var i=e+"";return i=="0"&&1/e==-sc?"-0":i}function $o(e,i){i=Ho(i,e);for(var a=0,f=i.length;e!=null&&a<f;)e=e[ar(i[a++])];return a&&a==f?e:void 0}function lc(e,i,a){var f=e==null?void 0:$o(e,i);return f===void 0?a:f}function uc(e,i){for(var a=-1,f=i.length,d=e.length;++a<f;)e[d+a]=i[a];return e}function cc(e,i,a){var f=-1,d=e.length;i<0&&(i=-i>d?0:d+i),a=a>d?d:a,a<0&&(a+=d),d=i>a?0:a-i>>>0,i>>>=0;for(var y=Array(d);++f<d;)y[f]=e[f+i];return y}function fc(e,i,a){var f=e.length;return a=a===void 0?f:a,!i&&a>=f?e:cc(e,i,a)}var dc="\\ud800-\\udfff",hc="\\u0300-\\u036f",pc="\\ufe20-\\ufe2f",vc="\\u20d0-\\u20ff",gc=hc+pc+vc,mc="\\ufe0e\\ufe0f",yc="\\u200d",wc=RegExp("["+yc+dc+gc+mc+"]");function qo(e){return wc.test(e)}function bc(e){return e.split("")}var Uo="\\ud800-\\udfff",xc="\\u0300-\\u036f",Sc="\\ufe20-\\ufe2f",Cc="\\u20d0-\\u20ff",Ac=xc+Sc+Cc,Tc="\\ufe0e\\ufe0f",Mc="["+Uo+"]",Nr="["+Ac+"]",Lr="\\ud83c[\\udffb-\\udfff]",Ec="(?:"+Nr+"|"+Lr+")",Xo="[^"+Uo+"]",Vo="(?:\\ud83c[\\udde6-\\uddff]){2}",Yo="[\\ud800-\\udbff][\\udc00-\\udfff]",Oc="\\u200d",Go=Ec+"?",Ko="["+Tc+"]?",Pc="(?:"+Oc+"(?:"+[Xo,Vo,Yo].join("|")+")"+Ko+Go+")*",kc=Ko+Go+Pc,Rc="(?:"+[Xo+Nr+"?",Nr,Vo,Yo,Mc].join("|")+")",_c=RegExp(Lr+"(?="+Lr+")|"+Rc+kc,"g");function Dc(e){return e.match(_c)||[]}function Nc(e){return qo(e)?Dc(e):bc(e)}function Lc(e){return function(i){i=or(i);var a=qo(i)?Nc(i):void 0,f=a?a[0]:i.charAt(0),d=a?fc(a,1).join(""):i.slice(1);return f[e]()+d}}var Bc=Lc("toUpperCase");const Fc=Bc;function Ic(e,i,a,f){var d=-1,y=e==null?0:e.length;for(f&&y&&(a=e[++d]);++d<y;)a=i(a,e[d],d,e);return a}function zc(e){return function(i){return e==null?void 0:e[i]}}var Wc={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},jc=zc(Wc);const Hc=jc;var $c=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qc="\\u0300-\\u036f",Uc="\\ufe20-\\ufe2f",Xc="\\u20d0-\\u20ff",Vc=qc+Uc+Xc,Yc="["+Vc+"]",Gc=RegExp(Yc,"g");function Kc(e){return e=or(e),e&&e.replace($c,Hc).replace(Gc,"")}var Zc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Jc(e){return e.match(Zc)||[]}var Qc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function ef(e){return Qc.test(e)}var Zo="\\ud800-\\udfff",tf="\\u0300-\\u036f",nf="\\ufe20-\\ufe2f",rf="\\u20d0-\\u20ff",of=tf+nf+rf,Jo="\\u2700-\\u27bf",Qo="a-z\\xdf-\\xf6\\xf8-\\xff",af="\\xac\\xb1\\xd7\\xf7",sf="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",lf="\\u2000-\\u206f",uf=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",ea="A-Z\\xc0-\\xd6\\xd8-\\xde",cf="\\ufe0e\\ufe0f",ta=af+sf+lf+uf,na="['’]",Xi="["+ta+"]",ff="["+of+"]",ra="\\d+",df="["+Jo+"]",ia="["+Qo+"]",oa="[^"+Zo+ta+ra+Jo+Qo+ea+"]",hf="\\ud83c[\\udffb-\\udfff]",pf="(?:"+ff+"|"+hf+")",vf="[^"+Zo+"]",aa="(?:\\ud83c[\\udde6-\\uddff]){2}",sa="[\\ud800-\\udbff][\\udc00-\\udfff]",cn="["+ea+"]",gf="\\u200d",Vi="(?:"+ia+"|"+oa+")",mf="(?:"+cn+"|"+oa+")",Yi="(?:"+na+"(?:d|ll|m|re|s|t|ve))?",Gi="(?:"+na+"(?:D|LL|M|RE|S|T|VE))?",la=pf+"?",ua="["+cf+"]?",yf="(?:"+gf+"(?:"+[vf,aa,sa].join("|")+")"+ua+la+")*",wf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",bf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",xf=ua+la+yf,Sf="(?:"+[df,aa,sa].join("|")+")"+xf,Cf=RegExp([cn+"?"+ia+"+"+Yi+"(?="+[Xi,cn,"$"].join("|")+")",mf+"+"+Gi+"(?="+[Xi,cn+Vi,"$"].join("|")+")",cn+"?"+Vi+"+"+Yi,cn+"+"+Gi,bf,wf,ra,Sf].join("|"),"g");function Af(e){return e.match(Cf)||[]}function Tf(e,i,a){return e=or(e),i=a?void 0:i,i===void 0?ef(e)?Af(e):Jc(e):e.match(i)||[]}var Mf="['’]",Ef=RegExp(Mf,"g");function Of(e){return function(i){return Ic(Tf(Kc(i).replace(Ef,"")),e,"")}}function Pf(e,i){for(var a=-1,f=e==null?0:e.length,d=0,y=[];++a<f;){var S=e[a];i(S,a,e)&&(y[d++]=S)}return y}function kf(){return[]}var Rf=Object.prototype,_f=Rf.propertyIsEnumerable,Ki=Object.getOwnPropertySymbols,Df=Ki?function(e){return e==null?[]:(e=Object(e),Pf(Ki(e),function(i){return _f.call(e,i)}))}:kf;const Nf=Df;function Lf(e,i,a){var f=i(e);return _t(e)?f:uc(f,a(e))}function Zi(e){return Lf(e,Zr,Nf)}var Bf=er(tr,"DataView");const Br=Bf;var Ff=er(tr,"Promise");const Fr=Ff;var If=er(tr,"Set");const Ir=If;var Ji="[object Map]",zf="[object Object]",Qi="[object Promise]",eo="[object Set]",to="[object WeakMap]",no="[object DataView]",Wf=yn(Br),jf=yn(Er),Hf=yn(Fr),$f=yn(Ir),qf=yn(Dr),Vt=jr;(Br&&Vt(new Br(new ArrayBuffer(1)))!=no||Er&&Vt(new Er)!=Ji||Fr&&Vt(Fr.resolve())!=Qi||Ir&&Vt(new Ir)!=eo||Dr&&Vt(new Dr)!=to)&&(Vt=function(e){var i=jr(e),a=i==zf?e.constructor:void 0,f=a?yn(a):"";if(f)switch(f){case Wf:return no;case jf:return Ji;case Hf:return Qi;case $f:return eo;case qf:return to}return i});const ro=Vt;var Uf="__lodash_hash_undefined__";function Xf(e){return this.__data__.set(e,Uf),this}function Vf(e){return this.__data__.has(e)}function Qn(e){var i=-1,a=e==null?0:e.length;for(this.__data__=new $r;++i<a;)this.add(e[i])}Qn.prototype.add=Qn.prototype.push=Xf;Qn.prototype.has=Vf;function Yf(e,i){for(var a=-1,f=e==null?0:e.length;++a<f;)if(i(e[a],a,e))return!0;return!1}function Gf(e,i){return e.has(i)}var Kf=1,Zf=2;function ca(e,i,a,f,d,y){var S=a&Kf,T=e.length,A=i.length;if(T!=A&&!(S&&A>T))return!1;var M=y.get(e),P=y.get(i);if(M&&P)return M==i&&P==e;var $=-1,X=!0,Y=a&Zf?new Qn:void 0;for(y.set(e,i),y.set(i,e);++$<T;){var se=e[$],N=i[$];if(f)var L=S?f(N,se,$,i,e,y):f(se,N,$,e,i,y);if(L!==void 0){if(L)continue;X=!1;break}if(Y){if(!Yf(i,function(Z,D){if(!Gf(Y,D)&&(se===Z||d(se,Z,a,f,y)))return Y.push(D)})){X=!1;break}}else if(!(se===N||d(se,N,a,f,y))){X=!1;break}}return y.delete(e),y.delete(i),X}function Jf(e){var i=-1,a=Array(e.size);return e.forEach(function(f,d){a[++i]=[d,f]}),a}function Qf(e){var i=-1,a=Array(e.size);return e.forEach(function(f){a[++i]=f}),a}var ed=1,td=2,nd="[object Boolean]",rd="[object Date]",id="[object Error]",od="[object Map]",ad="[object Number]",sd="[object RegExp]",ld="[object Set]",ud="[object String]",cd="[object Symbol]",fd="[object ArrayBuffer]",dd="[object DataView]",io=Vn?Vn.prototype:void 0,wr=io?io.valueOf:void 0;function hd(e,i,a,f,d,y,S){switch(a){case dd:if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case fd:return!(e.byteLength!=i.byteLength||!y(new gi(e),new gi(i)));case nd:case rd:case ad:return ps(+e,+i);case id:return e.name==i.name&&e.message==i.message;case sd:case ud:return e==i+"";case od:var T=Jf;case ld:var A=f&ed;if(T||(T=Qf),e.size!=i.size&&!A)return!1;var M=S.get(e);if(M)return M==i;f|=td,S.set(e,i);var P=ca(T(e),T(i),f,d,y,S);return S.delete(e),P;case cd:if(wr)return wr.call(e)==wr.call(i)}return!1}var pd=1,vd=Object.prototype,gd=vd.hasOwnProperty;function md(e,i,a,f,d,y){var S=a&pd,T=Zi(e),A=T.length,M=Zi(i),P=M.length;if(A!=P&&!S)return!1;for(var $=A;$--;){var X=T[$];if(!(S?X in i:gd.call(i,X)))return!1}var Y=y.get(e),se=y.get(i);if(Y&&se)return Y==i&&se==e;var N=!0;y.set(e,i),y.set(i,e);for(var L=S;++$<A;){X=T[$];var Z=e[X],D=i[X];if(f)var te=S?f(D,Z,X,i,e,y):f(Z,D,X,e,i,y);if(!(te===void 0?Z===D||d(Z,D,a,f,y):te)){N=!1;break}L||(L=X=="constructor")}if(N&&!L){var ye=e.constructor,ee=i.constructor;ye!=ee&&"constructor"in e&&"constructor"in i&&!(typeof ye=="function"&&ye instanceof ye&&typeof ee=="function"&&ee instanceof ee)&&(N=!1)}return y.delete(e),y.delete(i),N}var yd=1,oo="[object Arguments]",ao="[object Array]",Wn="[object Object]",wd=Object.prototype,so=wd.hasOwnProperty;function bd(e,i,a,f,d,y){var S=_t(e),T=_t(i),A=S?ao:ro(e),M=T?ao:ro(i);A=A==oo?Wn:A,M=M==oo?Wn:M;var P=A==Wn,$=M==Wn,X=A==M;if(X&&mi(e)){if(!mi(i))return!1;S=!0,P=!1}if(X&&!P)return y||(y=new Hn),S||vs(e)?ca(e,i,a,f,d,y):hd(e,i,A,a,f,d,y);if(!(a&yd)){var Y=P&&so.call(e,"__wrapped__"),se=$&&so.call(i,"__wrapped__");if(Y||se){var N=Y?e.value():e,L=se?i.value():i;return y||(y=new Hn),d(N,L,a,f,y)}}return X?(y||(y=new Hn),md(e,i,a,f,d,y)):!1}function ei(e,i,a,f,d){return e===i?!0:e==null||i==null||!Mr(e)&&!Mr(i)?e!==e&&i!==i:bd(e,i,a,f,ei,d)}var xd=1,Sd=2;function Cd(e,i,a,f){var d=a.length,y=d,S=!f;if(e==null)return!y;for(e=Object(e);d--;){var T=a[d];if(S&&T[2]?T[1]!==e[T[0]]:!(T[0]in e))return!1}for(;++d<y;){T=a[d];var A=T[0],M=e[A],P=T[1];if(S&&T[2]){if(M===void 0&&!(A in e))return!1}else{var $=new Hn;if(f)var X=f(M,P,A,e,i,$);if(!(X===void 0?ei(P,M,xd|Sd,f,$):X))return!1}}return!0}function fa(e){return e===e&&!gs(e)}function Ad(e){for(var i=Zr(e),a=i.length;a--;){var f=i[a],d=e[f];i[a]=[f,d,fa(d)]}return i}function da(e,i){return function(a){return a==null?!1:a[e]===i&&(i!==void 0||e in Object(a))}}function Td(e){var i=Ad(e);return i.length==1&&i[0][2]?da(i[0][0],i[0][1]):function(a){return a===e||Cd(a,e,i)}}function Md(e,i){return e!=null&&i in Object(e)}function Ed(e,i,a){i=Ho(i,e);for(var f=-1,d=i.length,y=!1;++f<d;){var S=ar(i[f]);if(!(y=e!=null&&a(e,S)))break;e=e[S]}return y||++f!=d?y:(d=e==null?0:e.length,!!d&&ms(d)&&ys(S,d)&&(_t(e)||ws(e)))}function Od(e,i){return e!=null&&Ed(e,i,Md)}var Pd=1,kd=2;function Rd(e,i){return Jr(e)&&fa(i)?da(ar(e),i):function(a){var f=lc(a,e);return f===void 0&&f===i?Od(a,e):ei(i,f,Pd|kd)}}function _d(e){return function(i){return i==null?void 0:i[e]}}function Dd(e){return function(i){return $o(i,e)}}function Nd(e){return Jr(e)?_d(ar(e)):Dd(e)}function Ld(e){return typeof e=="function"?e:e==null?bs:typeof e=="object"?_t(e)?Rd(e[0],e[1]):Td(e):Nd(e)}function Bd(e,i){return e&&xs(e,i,Zr)}function Fd(e,i){return function(a,f){if(a==null)return a;if(!Hr(a))return e(a,f);for(var d=a.length,y=i?d:-1,S=Object(a);(i?y--:++y<d)&&f(S[y],y,S)!==!1;);return a}}var Id=Fd(Bd);const zd=Id;function Wd(e,i){var a=-1,f=Hr(e)?Array(e.length):[];return zd(e,function(d,y,S){f[++a]=i(d,y,S)}),f}function jd(e,i){var a=_t(e)?Wo:Wd;return a(e,Ld(i))}var Hd=Of(function(e,i,a){return e+(a?"-":"")+i.toLowerCase()});const $d=Hd,qd={name:"en-US",global:{undo:"Undo",redo:"Redo",confirm:"Confirm",clear:"Clear"},Popconfirm:{positiveText:"Confirm",negativeText:"Cancel"},Cascader:{placeholder:"Please Select",loading:"Loading",loadingRequiredMessage:e=>`Please load all ${e}'s descendants before checking it.`},Time:{dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss"},DatePicker:{yearFormat:"yyyy",monthFormat:"MMM",dayFormat:"eeeeee",yearTypeFormat:"yyyy",monthTypeFormat:"yyyy-MM",dateFormat:"yyyy-MM-dd",dateTimeFormat:"yyyy-MM-dd HH:mm:ss",quarterFormat:"yyyy-qqq",clear:"Clear",now:"Now",confirm:"Confirm",selectTime:"Select Time",selectDate:"Select Date",datePlaceholder:"Select Date",datetimePlaceholder:"Select Date and Time",monthPlaceholder:"Select Month",yearPlaceholder:"Select Year",quarterPlaceholder:"Select Quarter",startDatePlaceholder:"Start Date",endDatePlaceholder:"End Date",startDatetimePlaceholder:"Start Date and Time",endDatetimePlaceholder:"End Date and Time",startMonthPlaceholder:"Start Month",endMonthPlaceholder:"End Month",monthBeforeYear:!0,firstDayOfWeek:6,today:"Today"},DataTable:{checkTableAll:"Select all in the table",uncheckTableAll:"Unselect all in the table",confirm:"Confirm",clear:"Clear"},LegacyTransfer:{sourceTitle:"Source",targetTitle:"Target"},Transfer:{selectAll:"Select all",unselectAll:"Unselect all",clearAll:"Clear",total:e=>`Total ${e} items`,selected:e=>`${e} items selected`},Empty:{description:"No Data"},Select:{placeholder:"Please Select"},TimePicker:{placeholder:"Select Time",positiveText:"OK",negativeText:"Cancel",now:"Now"},Pagination:{goto:"Goto",selectionSuffix:"page"},DynamicTags:{add:"Add"},Log:{loading:"Loading"},Input:{placeholder:"Please Input"},InputNumber:{placeholder:"Please Input"},DynamicInput:{create:"Create"},ThemeEditor:{title:"Theme Editor",clearAllVars:"Clear All Variables",clearSearch:"Clear Search",filterCompName:"Filter Component Name",filterVarName:"Filter Variable Name",import:"Import",export:"Export",restore:"Reset to Default"},Image:{tipPrevious:"Previous picture (←)",tipNext:"Next picture (→)",tipCounterclockwise:"Counterclockwise",tipClockwise:"Clockwise",tipZoomOut:"Zoom out",tipZoomIn:"Zoom in",tipClose:"Close (Esc)",tipOriginalSize:"Zoom to original size"}},Ud=qd;function br(e){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.width?String(i.width):e.defaultWidth,f=e.formats[a]||e.formats[e.defaultWidth];return f}}function Cn(e){return function(i,a){var f=a!=null&&a.context?String(a.context):"standalone",d;if(f==="formatting"&&e.formattingValues){var y=e.defaultFormattingWidth||e.defaultWidth,S=a!=null&&a.width?String(a.width):y;d=e.formattingValues[S]||e.formattingValues[y]}else{var T=e.defaultWidth,A=a!=null&&a.width?String(a.width):e.defaultWidth;d=e.values[A]||e.values[T]}var M=e.argumentCallback?e.argumentCallback(i):i;return d[M]}}function An(e){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=a.width,d=f&&e.matchPatterns[f]||e.matchPatterns[e.defaultMatchWidth],y=i.match(d);if(!y)return null;var S=y[0],T=f&&e.parsePatterns[f]||e.parsePatterns[e.defaultParseWidth],A=Array.isArray(T)?Vd(T,function($){return $.test(S)}):Xd(T,function($){return $.test(S)}),M;M=e.valueCallback?e.valueCallback(A):A,M=a.valueCallback?a.valueCallback(M):M;var P=i.slice(S.length);return{value:M,rest:P}}}function Xd(e,i){for(var a in e)if(e.hasOwnProperty(a)&&i(e[a]))return a}function Vd(e,i){for(var a=0;a<e.length;a++)if(i(e[a]))return a}function Yd(e){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},f=i.match(e.matchPattern);if(!f)return null;var d=f[0],y=i.match(e.parsePattern);if(!y)return null;var S=e.valueCallback?e.valueCallback(y[0]):y[0];S=a.valueCallback?a.valueCallback(S):S;var T=i.slice(d.length);return{value:S,rest:T}}}var Gd={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Kd=function(i,a,f){var d,y=Gd[i];return typeof y=="string"?d=y:a===1?d=y.one:d=y.other.replace("{{count}}",a.toString()),f!=null&&f.addSuffix?f.comparison&&f.comparison>0?"in "+d:d+" ago":d};const Zd=Kd;var Jd={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Qd={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},eh={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},th={date:br({formats:Jd,defaultWidth:"full"}),time:br({formats:Qd,defaultWidth:"full"}),dateTime:br({formats:eh,defaultWidth:"full"})};const nh=th;var rh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ih=function(i,a,f,d){return rh[i]};const oh=ih;var ah={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},sh={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},lh={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},uh={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},ch={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},fh={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},dh=function(i,a){var f=Number(i),d=f%100;if(d>20||d<10)switch(d%10){case 1:return f+"st";case 2:return f+"nd";case 3:return f+"rd"}return f+"th"},hh={ordinalNumber:dh,era:Cn({values:ah,defaultWidth:"wide"}),quarter:Cn({values:sh,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:Cn({values:lh,defaultWidth:"wide"}),day:Cn({values:uh,defaultWidth:"wide"}),dayPeriod:Cn({values:ch,defaultWidth:"wide",formattingValues:fh,defaultFormattingWidth:"wide"})};const ph=hh;var vh=/^(\d+)(th|st|nd|rd)?/i,gh=/\d+/i,mh={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},yh={any:[/^b/i,/^(a|c)/i]},wh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},bh={any:[/1/i,/2/i,/3/i,/4/i]},xh={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Sh={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Ch={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Ah={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Th={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},Mh={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Eh={ordinalNumber:Yd({matchPattern:vh,parsePattern:gh,valueCallback:function(i){return parseInt(i,10)}}),era:An({matchPatterns:mh,defaultMatchWidth:"wide",parsePatterns:yh,defaultParseWidth:"any"}),quarter:An({matchPatterns:wh,defaultMatchWidth:"wide",parsePatterns:bh,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:An({matchPatterns:xh,defaultMatchWidth:"wide",parsePatterns:Sh,defaultParseWidth:"any"}),day:An({matchPatterns:Ch,defaultMatchWidth:"wide",parsePatterns:Ah,defaultParseWidth:"any"}),dayPeriod:An({matchPatterns:Th,defaultMatchWidth:"any",parsePatterns:Mh,defaultParseWidth:"any"})};const Oh=Eh;var Ph={code:"en-US",formatDistance:Zd,formatLong:nh,formatRelative:oh,localize:ph,match:Oh,options:{weekStartsOn:0,firstWeekContainsDate:1}};const kh=Ph,Rh={name:"en-US",locale:kh},_h=Rh;function Dh(e){const{mergedLocaleRef:i,mergedDateLocaleRef:a}=mn(qr,null)||{},f=Ue(()=>{var y,S;return(S=(y=i==null?void 0:i.value)===null||y===void 0?void 0:y[e])!==null&&S!==void 0?S:Ud[e]});return{dateLocaleRef:Ue(()=>{var y;return(y=a==null?void 0:a.value)!==null&&y!==void 0?y:_h}),localeRef:f}}function Nh(e,i,a){if(!i){Ss("use-style","No style is specified.");return}const f=go(),d=mn(qr,null),y=()=>{const S=a==null?void 0:a.value;i.mount({id:S===void 0?e:S+e,head:!0,anchorMetaName:Or,props:{bPrefix:S?`.${S}-`:void 0},ssr:f}),d!=null&&d.preflightStyleDisabled||Cs.mount({id:"n-global",head:!0,anchorMetaName:Or,ssr:f})};f?y():fo(y)}function Lh(e,i,a){if(!i)return;const f=go(),d=Ue(()=>{const{value:S}=i;if(!S)return;const T=S[e];if(T)return T}),y=()=>{jt(()=>{const{value:S}=a,T=`${S}${e}Rtl`;if(cu(T,f))return;const{value:A}=d;A&&A.style.mount({id:T,head:!0,anchorMetaName:Or,props:{bPrefix:S?`.${S}-`:void 0},ssr:f})})};return f?y():fo(y),d}function sr(e,i){return st({name:Fc(e),setup(){var a;const f=(a=mn(qr,null))===null||a===void 0?void 0:a.mergedIconsRef;return()=>{var d;const y=(d=f==null?void 0:f.value)===null||d===void 0?void 0:d[e];return y?y():i}}})}const Bh=sr("rotateClockwise",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 12.7916 15.3658 15.2026 13 16.3265V14.5C13 14.2239 12.7761 14 12.5 14C12.2239 14 12 14.2239 12 14.5V17.5C12 17.7761 12.2239 18 12.5 18H15.5C15.7761 18 16 17.7761 16 17.5C16 17.2239 15.7761 17 15.5 17H13.8758C16.3346 15.6357 18 13.0128 18 10C18 5.58172 14.4183 2 10 2C5.58172 2 2 5.58172 2 10C2 10.2761 2.22386 10.5 2.5 10.5C2.77614 10.5 3 10.2761 3 10Z",fill:"currentColor"}),J("path",{d:"M10 12C11.1046 12 12 11.1046 12 10C12 8.89543 11.1046 8 10 8C8.89543 8 8 8.89543 8 10C8 11.1046 8.89543 12 10 12ZM10 11C9.44772 11 9 10.5523 9 10C9 9.44772 9.44772 9 10 9C10.5523 9 11 9.44772 11 10C11 10.5523 10.5523 11 10 11Z",fill:"currentColor"}))),Fh=sr("rotateClockwise",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M17 10C17 6.13401 13.866 3 10 3C6.13401 3 3 6.13401 3 10C3 12.7916 4.63419 15.2026 7 16.3265V14.5C7 14.2239 7.22386 14 7.5 14C7.77614 14 8 14.2239 8 14.5V17.5C8 17.7761 7.77614 18 7.5 18H4.5C4.22386 18 4 17.7761 4 17.5C4 17.2239 4.22386 17 4.5 17H6.12422C3.66539 15.6357 2 13.0128 2 10C2 5.58172 5.58172 2 10 2C14.4183 2 18 5.58172 18 10C18 10.2761 17.7761 10.5 17.5 10.5C17.2239 10.5 17 10.2761 17 10Z",fill:"currentColor"}),J("path",{d:"M10 12C8.89543 12 8 11.1046 8 10C8 8.89543 8.89543 8 10 8C11.1046 8 12 8.89543 12 10C12 11.1046 11.1046 12 10 12ZM10 11C10.5523 11 11 10.5523 11 10C11 9.44772 10.5523 9 10 9C9.44772 9 9 9.44772 9 10C9 10.5523 9.44772 11 10 11Z",fill:"currentColor"}))),Ih=sr("zoomIn",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M11.5 8.5C11.5 8.22386 11.2761 8 11 8H9V6C9 5.72386 8.77614 5.5 8.5 5.5C8.22386 5.5 8 5.72386 8 6V8H6C5.72386 8 5.5 8.22386 5.5 8.5C5.5 8.77614 5.72386 9 6 9H8V11C8 11.2761 8.22386 11.5 8.5 11.5C8.77614 11.5 9 11.2761 9 11V9H11C11.2761 9 11.5 8.77614 11.5 8.5Z",fill:"currentColor"}),J("path",{d:"M8.5 3C11.5376 3 14 5.46243 14 8.5C14 9.83879 13.5217 11.0659 12.7266 12.0196L16.8536 16.1464C17.0488 16.3417 17.0488 16.6583 16.8536 16.8536C16.68 17.0271 16.4106 17.0464 16.2157 16.9114L16.1464 16.8536L12.0196 12.7266C11.0659 13.5217 9.83879 14 8.5 14C5.46243 14 3 11.5376 3 8.5C3 5.46243 5.46243 3 8.5 3ZM8.5 4C6.01472 4 4 6.01472 4 8.5C4 10.9853 6.01472 13 8.5 13C10.9853 13 13 10.9853 13 8.5C13 6.01472 10.9853 4 8.5 4Z",fill:"currentColor"}))),zh=sr("zoomOut",J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M11 8C11.2761 8 11.5 8.22386 11.5 8.5C11.5 8.77614 11.2761 9 11 9H6C5.72386 9 5.5 8.77614 5.5 8.5C5.5 8.22386 5.72386 8 6 8H11Z",fill:"currentColor"}),J("path",{d:"M14 8.5C14 5.46243 11.5376 3 8.5 3C5.46243 3 3 5.46243 3 8.5C3 11.5376 5.46243 14 8.5 14C9.83879 14 11.0659 13.5217 12.0196 12.7266L16.1464 16.8536L16.2157 16.9114C16.4106 17.0464 16.68 17.0271 16.8536 16.8536C17.0488 16.6583 17.0488 16.3417 16.8536 16.1464L12.7266 12.0196C13.5217 11.0659 14 9.83879 14 8.5ZM4 8.5C4 6.01472 6.01472 4 8.5 4C10.9853 4 13 6.01472 13 8.5C13 10.9853 10.9853 13 8.5 13C6.01472 13 4 10.9853 4 8.5Z",fill:"currentColor"}))),Wh=st({name:"ResizeSmall",render(){return J("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},J("g",{fill:"none"},J("path",{d:"M5.5 4A1.5 1.5 0 0 0 4 5.5v1a.5.5 0 0 1-1 0v-1A2.5 2.5 0 0 1 5.5 3h1a.5.5 0 0 1 0 1h-1zM16 5.5A1.5 1.5 0 0 0 14.5 4h-1a.5.5 0 0 1 0-1h1A2.5 2.5 0 0 1 17 5.5v1a.5.5 0 0 1-1 0v-1zm0 9a1.5 1.5 0 0 1-1.5 1.5h-1a.5.5 0 0 0 0 1h1a2.5 2.5 0 0 0 2.5-2.5v-1a.5.5 0 0 0-1 0v1zm-12 0A1.5 1.5 0 0 0 5.5 16h1.25a.5.5 0 0 1 0 1H5.5A2.5 2.5 0 0 1 3 14.5v-1.25a.5.5 0 0 1 1 0v1.25zM8.5 7A1.5 1.5 0 0 0 7 8.5v3A1.5 1.5 0 0 0 8.5 13h3a1.5 1.5 0 0 0 1.5-1.5v-3A1.5 1.5 0 0 0 11.5 7h-3zM8 8.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5v3a.5.5 0 0 1-.5.5h-3a.5.5 0 0 1-.5-.5v-3z",fill:"currentColor"})))}}),jh=Qe("base-icon",`
- height: 1em;
- width: 1em;
- line-height: 1em;
- text-align: center;
- display: inline-block;
- position: relative;
- fill: currentColor;
- transform: translateZ(0);
- `,[Ve("svg",`
- height: 1em;
- width: 1em;
- `)]),zt=st({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){Nh("-base-icon",jh,Kt(e,"clsPrefix"))},render(){return J("i",{class:`${this.clsPrefix}-base-icon`,onClick:this.onClick,onMousedown:this.onMousedown,onMouseup:this.onMouseup,role:this.role,"aria-label":this.ariaLabel,"aria-hidden":this.ariaHidden,"aria-disabled":this.ariaDisabled},this.$slots)}}),Hh=e=>{const{scrollbarColor:i,scrollbarColorHover:a}=e;return{color:i,colorHover:a}},$h={name:"Scrollbar",common:nr,self:Hh},qh=$h,{cubicBezierEaseInOut:lo}=As;function zr({name:e="fade-in",enterDuration:i="0.2s",leaveDuration:a="0.2s",enterCubicBezier:f=lo,leaveCubicBezier:d=lo}={}){return[Ve(`&.${e}-transition-enter-active`,{transition:`all ${i} ${f}!important`}),Ve(`&.${e}-transition-leave-active`,{transition:`all ${a} ${d}!important`}),Ve(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),Ve(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Uh=Qe("scrollbar",`
- overflow: hidden;
- position: relative;
- z-index: auto;
- height: 100%;
- width: 100%;
- `,[Ve(">",[Qe("scrollbar-container",`
- width: 100%;
- overflow: scroll;
- height: 100%;
- max-height: inherit;
- scrollbar-width: none;
- `,[Ve("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
- width: 0;
- height: 0;
- display: none;
- `),Ve(">",[Qe("scrollbar-content",`
- box-sizing: border-box;
- min-width: 100%;
- `)])])]),Ve(">, +",[Qe("scrollbar-rail",`
- position: absolute;
- pointer-events: none;
- user-select: none;
- -webkit-user-select: none;
- `,[Zt("horizontal",`
- left: 2px;
- right: 2px;
- bottom: 4px;
- height: var(--n-scrollbar-height);
- `,[Ve(">",[Gt("scrollbar",`
- height: var(--n-scrollbar-height);
- border-radius: var(--n-scrollbar-border-radius);
- right: 0;
- `)])]),Zt("vertical",`
- right: 4px;
- top: 2px;
- bottom: 2px;
- width: var(--n-scrollbar-width);
- `,[Ve(">",[Gt("scrollbar",`
- width: var(--n-scrollbar-width);
- border-radius: var(--n-scrollbar-border-radius);
- bottom: 0;
- `)])]),Zt("disabled",[Ve(">",[Gt("scrollbar",{pointerEvents:"none"})])]),Ve(">",[Gt("scrollbar",`
- position: absolute;
- cursor: pointer;
- pointer-events: all;
- background-color: var(--n-scrollbar-color);
- transition: background-color .2s var(--n-scrollbar-bezier);
- `,[zr(),Ve("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),Xh=Object.assign(Object.assign({},Lt.props),{size:{type:Number,default:5},duration:{type:Number,default:0},scrollable:{type:Boolean,default:!0},xScrollable:Boolean,trigger:{type:String,default:"hover"},useUnifiedContainer:Boolean,triggerDisplayManually:Boolean,container:Function,content:Function,containerClass:String,containerStyle:[String,Object],contentClass:String,contentStyle:[String,Object],horizontalRailStyle:[String,Object],verticalRailStyle:[String,Object],onScroll:Function,onWheel:Function,onResize:Function,internalOnUpdateScrollLeft:Function,internalHoistYRail:Boolean}),Vh=st({name:"Scrollbar",props:Xh,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:i,inlineThemeDisabled:a,mergedRtlRef:f}=wn(e),d=Lh("Scrollbar",f,i),y=Ae(null),S=Ae(null),T=Ae(null),A=Ae(null),M=Ae(null),P=Ae(null),$=Ae(null),X=Ae(null),Y=Ae(null),se=Ae(null),N=Ae(null),L=Ae(0),Z=Ae(0),D=Ae(!1),te=Ae(!1);let ye=!1,ee=!1,pe,fe,ve=0,Se=0,be=0,Pe=0;const Be=vu(),Te=Ue(()=>{const{value:V}=X,{value:ue}=P,{value:we}=se;return V===null||ue===null||we===null?0:Math.min(V,we*V/ue+e.size*1.5)}),de=Ue(()=>`${Te.value}px`),ke=Ue(()=>{const{value:V}=Y,{value:ue}=$,{value:we}=N;return V===null||ue===null||we===null?0:we*V/ue+e.size*1.5}),q=Ue(()=>`${ke.value}px`),s=Ue(()=>{const{value:V}=X,{value:ue}=L,{value:we}=P,{value:_e}=se;if(V===null||we===null||_e===null)return 0;{const We=we-V;return We?ue/We*(_e-Te.value):0}}),l=Ue(()=>`${s.value}px`),n=Ue(()=>{const{value:V}=Y,{value:ue}=Z,{value:we}=$,{value:_e}=N;if(V===null||we===null||_e===null)return 0;{const We=we-V;return We?ue/We*(_e-ke.value):0}}),m=Ue(()=>`${n.value}px`),b=Ue(()=>{const{value:V}=X,{value:ue}=P;return V!==null&&ue!==null&&ue>V}),B=Ue(()=>{const{value:V}=Y,{value:ue}=$;return V!==null&&ue!==null&&ue>V}),oe=Ue(()=>{const{trigger:V}=e;return V==="none"||D.value}),Q=Ue(()=>{const{trigger:V}=e;return V==="none"||te.value}),he=Ue(()=>{const{container:V}=e;return V?V():S.value}),Re=Ue(()=>{const{content:V}=e;return V?V():T.value}),De=$u(()=>{e.container||nt({top:L.value,left:Z.value})}),Ie=()=>{De.isDeactivated||mt()},lt=V=>{if(De.isDeactivated)return;const{onResize:ue}=e;ue&&ue(V),mt()},nt=(V,ue)=>{if(!e.scrollable)return;if(typeof V=="number"){G(ue!=null?ue:0,V,0,!1,"auto");return}const{left:we,top:_e,index:We,elSize:Ke,position:ct,behavior:Fe,el:$e,debounce:Ht=!0}=V;(we!==void 0||_e!==void 0)&&G(we!=null?we:0,_e!=null?_e:0,0,!1,Fe),$e!==void 0?G(0,$e.offsetTop,$e.offsetHeight,Ht,Fe):We!==void 0&&Ke!==void 0?G(0,We*Ke,Ke,Ht,Fe):ct==="bottom"?G(0,Number.MAX_SAFE_INTEGER,0,!1,Fe):ct==="top"&&G(0,0,0,!1,Fe)},He=(V,ue)=>{if(!e.scrollable)return;const{value:we}=he;we&&(typeof V=="object"?we.scrollBy(V):we.scrollBy(V,ue||0))};function G(V,ue,we,_e,We){const{value:Ke}=he;if(Ke){if(_e){const{scrollTop:ct,offsetHeight:Fe}=Ke;if(ue>ct){ue+we<=ct+Fe||Ke.scrollTo({left:V,top:ue+we-Fe,behavior:We});return}}Ke.scrollTo({left:V,top:ue,behavior:We})}}function ge(){Ye(),rt(),mt()}function le(){Ee()}function Ee(){Ne(),Xe()}function Ne(){fe!==void 0&&window.clearTimeout(fe),fe=window.setTimeout(()=>{te.value=!1},e.duration)}function Xe(){pe!==void 0&&window.clearTimeout(pe),pe=window.setTimeout(()=>{D.value=!1},e.duration)}function Ye(){pe!==void 0&&window.clearTimeout(pe),D.value=!0}function rt(){fe!==void 0&&window.clearTimeout(fe),te.value=!0}function et(V){const{onScroll:ue}=e;ue&&ue(V),Pt()}function Pt(){const{value:V}=he;V&&(L.value=V.scrollTop,Z.value=V.scrollLeft*(d!=null&&d.value?-1:1))}function rn(){const{value:V}=Re;V&&(P.value=V.offsetHeight,$.value=V.offsetWidth);const{value:ue}=he;ue&&(X.value=ue.offsetHeight,Y.value=ue.offsetWidth);const{value:we}=M,{value:_e}=A;we&&(N.value=we.offsetWidth),_e&&(se.value=_e.offsetHeight)}function pt(){const{value:V}=he;V&&(L.value=V.scrollTop,Z.value=V.scrollLeft*(d!=null&&d.value?-1:1),X.value=V.offsetHeight,Y.value=V.offsetWidth,P.value=V.scrollHeight,$.value=V.scrollWidth);const{value:ue}=M,{value:we}=A;ue&&(N.value=ue.offsetWidth),we&&(se.value=we.offsetHeight)}function mt(){e.scrollable&&(e.useUnifiedContainer?pt():(rn(),Pt()))}function Ge(V){var ue;return!(!((ue=y.value)===null||ue===void 0)&&ue.contains(Jn(V)))}function bn(V){V.preventDefault(),V.stopPropagation(),ee=!0,gt("mousemove",window,kt,!0),gt("mouseup",window,Bt,!0),Se=Z.value,be=d!=null&&d.value?window.innerWidth-V.clientX:V.clientX}function kt(V){if(!ee)return;pe!==void 0&&window.clearTimeout(pe),fe!==void 0&&window.clearTimeout(fe);const{value:ue}=Y,{value:we}=$,{value:_e}=ke;if(ue===null||we===null)return;const Ke=(d!=null&&d.value?window.innerWidth-V.clientX-be:V.clientX-be)*(we-ue)/(ue-_e),ct=we-ue;let Fe=Se+Ke;Fe=Math.min(ct,Fe),Fe=Math.max(Fe,0);const{value:$e}=he;if($e){$e.scrollLeft=Fe*(d!=null&&d.value?-1:1);const{internalOnUpdateScrollLeft:Ht}=e;Ht&&Ht(Fe)}}function Bt(V){V.preventDefault(),V.stopPropagation(),ut("mousemove",window,kt,!0),ut("mouseup",window,Bt,!0),ee=!1,mt(),Ge(V)&&Ee()}function xt(V){V.preventDefault(),V.stopPropagation(),ye=!0,gt("mousemove",window,yt,!0),gt("mouseup",window,wt,!0),ve=L.value,Pe=V.clientY}function yt(V){if(!ye)return;pe!==void 0&&window.clearTimeout(pe),fe!==void 0&&window.clearTimeout(fe);const{value:ue}=X,{value:we}=P,{value:_e}=Te;if(ue===null||we===null)return;const Ke=(V.clientY-Pe)*(we-ue)/(ue-_e),ct=we-ue;let Fe=ve+Ke;Fe=Math.min(ct,Fe),Fe=Math.max(Fe,0);const{value:$e}=he;$e&&($e.scrollTop=Fe)}function wt(V){V.preventDefault(),V.stopPropagation(),ut("mousemove",window,yt,!0),ut("mouseup",window,wt,!0),ye=!1,mt(),Ge(V)&&Ee()}jt(()=>{const{value:V}=B,{value:ue}=b,{value:we}=i,{value:_e}=M,{value:We}=A;_e&&(V?_e.classList.remove(`${we}-scrollbar-rail--disabled`):_e.classList.add(`${we}-scrollbar-rail--disabled`)),We&&(ue?We.classList.remove(`${we}-scrollbar-rail--disabled`):We.classList.add(`${we}-scrollbar-rail--disabled`))}),Et(()=>{e.container||mt()}),nn(()=>{pe!==void 0&&window.clearTimeout(pe),fe!==void 0&&window.clearTimeout(fe),ut("mousemove",window,yt,!0),ut("mouseup",window,wt,!0)});const Ft=Lt("Scrollbar","-scrollbar",Uh,qh,e,i),qe=Ue(()=>{const{common:{cubicBezierEaseInOut:V,scrollbarBorderRadius:ue,scrollbarHeight:we,scrollbarWidth:_e},self:{color:We,colorHover:Ke}}=Ft.value;return{"--n-scrollbar-bezier":V,"--n-scrollbar-color":We,"--n-scrollbar-color-hover":Ke,"--n-scrollbar-border-radius":ue,"--n-scrollbar-width":_e,"--n-scrollbar-height":we}}),Je=a?Ur("scrollbar",void 0,qe,e):void 0;return Object.assign(Object.assign({},{scrollTo:nt,scrollBy:He,sync:mt,syncUnifiedContainer:pt,handleMouseEnterWrapper:ge,handleMouseLeaveWrapper:le}),{mergedClsPrefix:i,rtlEnabled:d,containerScrollTop:L,wrapperRef:y,containerRef:S,contentRef:T,yRailRef:A,xRailRef:M,needYBar:b,needXBar:B,yBarSizePx:de,xBarSizePx:q,yBarTopPx:l,xBarLeftPx:m,isShowXBar:oe,isShowYBar:Q,isIos:Be,handleScroll:et,handleContentResize:Ie,handleContainerResize:lt,handleYScrollMouseDown:xt,handleXScrollMouseDown:bn,cssVars:a?void 0:qe,themeClass:Je==null?void 0:Je.themeClass,onRender:Je==null?void 0:Je.onRender})},render(){var e;const{$slots:i,mergedClsPrefix:a,triggerDisplayManually:f,rtlEnabled:d,internalHoistYRail:y}=this;if(!this.scrollable)return(e=i.default)===null||e===void 0?void 0:e.call(i);const S=this.trigger==="none",T=()=>J("div",{ref:"yRailRef",class:[`${a}-scrollbar-rail`,`${a}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},J(S?Oi:fn,S?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?J("div",{class:`${a}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),A=()=>{var P,$;return(P=this.onRender)===null||P===void 0||P.call(this),J("div",Mn(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${a}-scrollbar`,this.themeClass,d&&`${a}-scrollbar--rtl`],style:this.cssVars,onMouseenter:f?void 0:this.handleMouseEnterWrapper,onMouseleave:f?void 0:this.handleMouseLeaveWrapper}),[this.container?($=i.default)===null||$===void 0?void 0:$.call(i):J("div",{role:"none",ref:"containerRef",class:[`${a}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},J($i,{onResize:this.handleContentResize},{default:()=>J("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${a}-scrollbar-content`,this.contentClass]},i)})),y?null:T(),this.xScrollable&&J("div",{ref:"xRailRef",class:[`${a}-scrollbar-rail`,`${a}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},J(S?Oi:fn,S?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?J("div",{class:`${a}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:d?this.xBarLeftPx:void 0,left:d?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},M=this.container?A():J($i,{onResize:this.handleContainerResize},{default:A});return y?J(Ot,null,M,T()):M}}),Yh=Vh,Gh={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Kh=e=>{const{boxShadow2:i,popoverColor:a,textColor2:f,borderRadius:d,fontSize:y,dividerColor:S}=e;return Object.assign(Object.assign({},Gh),{fontSize:y,borderRadius:d,color:a,dividerColor:S,textColor:f,boxShadow:i})},Zh={name:"Popover",common:nr,self:Kh},ha=Zh,xr={top:"bottom",bottom:"top",left:"right",right:"left"},at="var(--n-arrow-height) * 1.414",Jh=Ve([Qe("popover",`
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier);
- position: relative;
- font-size: var(--n-font-size);
- color: var(--n-text-color);
- box-shadow: var(--n-box-shadow);
- word-break: break-word;
- `,[Ve(">",[Qe("scrollbar",`
- height: inherit;
- max-height: inherit;
- `)]),$n("raw",`
- background-color: var(--n-color);
- border-radius: var(--n-border-radius);
- `,[$n("scrollable",[$n("show-header-or-footer","padding: var(--n-padding);")])]),Gt("header",`
- padding: var(--n-padding);
- border-bottom: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `),Gt("footer",`
- padding: var(--n-padding);
- border-top: 1px solid var(--n-divider-color);
- transition: border-color .3s var(--n-bezier);
- `),Zt("scrollable, show-header-or-footer",[Gt("content",`
- padding: var(--n-padding);
- `)])]),Qe("popover-shared",`
- transform-origin: inherit;
- `,[Qe("popover-arrow-wrapper",`
- position: absolute;
- overflow: hidden;
- pointer-events: none;
- `,[Qe("popover-arrow",`
- transition: background-color .3s var(--n-bezier);
- position: absolute;
- display: block;
- width: calc(${at});
- height: calc(${at});
- box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
- transform: rotate(45deg);
- background-color: var(--n-color);
- pointer-events: all;
- `)]),Ve("&.popover-transition-enter-from, &.popover-transition-leave-to",`
- opacity: 0;
- transform: scale(.85);
- `),Ve("&.popover-transition-enter-to, &.popover-transition-leave-from",`
- transform: scale(1);
- opacity: 1;
- `),Ve("&.popover-transition-enter-active",`
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-out),
- transform .15s var(--n-bezier-ease-out);
- `),Ve("&.popover-transition-leave-active",`
- transition:
- box-shadow .3s var(--n-bezier),
- background-color .3s var(--n-bezier),
- color .3s var(--n-bezier),
- opacity .15s var(--n-bezier-ease-in),
- transform .15s var(--n-bezier-ease-in);
- `)]),bt("top-start",`
- top: calc(${at} / -2);
- left: calc(${Rt("top-start")} - var(--v-offset-left));
- `),bt("top",`
- top: calc(${at} / -2);
- transform: translateX(calc(${at} / -2)) rotate(45deg);
- left: 50%;
- `),bt("top-end",`
- top: calc(${at} / -2);
- right: calc(${Rt("top-end")} + var(--v-offset-left));
- `),bt("bottom-start",`
- bottom: calc(${at} / -2);
- left: calc(${Rt("bottom-start")} - var(--v-offset-left));
- `),bt("bottom",`
- bottom: calc(${at} / -2);
- transform: translateX(calc(${at} / -2)) rotate(45deg);
- left: 50%;
- `),bt("bottom-end",`
- bottom: calc(${at} / -2);
- right: calc(${Rt("bottom-end")} + var(--v-offset-left));
- `),bt("left-start",`
- left: calc(${at} / -2);
- top: calc(${Rt("left-start")} - var(--v-offset-top));
- `),bt("left",`
- left: calc(${at} / -2);
- transform: translateY(calc(${at} / -2)) rotate(45deg);
- top: 50%;
- `),bt("left-end",`
- left: calc(${at} / -2);
- bottom: calc(${Rt("left-end")} + var(--v-offset-top));
- `),bt("right-start",`
- right: calc(${at} / -2);
- top: calc(${Rt("right-start")} - var(--v-offset-top));
- `),bt("right",`
- right: calc(${at} / -2);
- transform: translateY(calc(${at} / -2)) rotate(45deg);
- top: 50%;
- `),bt("right-end",`
- right: calc(${at} / -2);
- bottom: calc(${Rt("right-end")} + var(--v-offset-top));
- `),...jd({top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]},(e,i)=>{const a=["right","left"].includes(i),f=a?"width":"height";return e.map(d=>{const y=d.split("-")[1]==="end",T=`calc((${`var(--v-target-${f}, 0px)`} - ${at}) / 2)`,A=Rt(d);return Ve(`[v-placement="${d}"] >`,[Qe("popover-shared",[Zt("center-arrow",[Qe("popover-arrow",`${i}: calc(max(${T}, ${A}) ${y?"+":"-"} var(--v-offset-${a?"left":"top"}));`)])])])})})]);function Rt(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function bt(e,i){const a=e.split("-")[0],f=["top","bottom"].includes(a)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return Ve(`[v-placement="${e}"] >`,[Qe("popover-shared",`
- margin-${xr[a]}: var(--n-space);
- `,[Zt("show-arrow",`
- margin-${xr[a]}: var(--n-space-arrow);
- `),Zt("overlap",`
- margin: 0;
- `),Ts("popover-arrow-wrapper",`
- right: 0;
- left: 0;
- top: 0;
- bottom: 0;
- ${a}: 100%;
- ${xr[a]}: auto;
- ${f}
- `,[Qe("popover-arrow",i)])])])}const pa=Object.assign(Object.assign({},Lt.props),{to:Yn.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),Qh=({arrowStyle:e,clsPrefix:i})=>J("div",{key:"__popover-arrow__",class:`${i}-popover-arrow-wrapper`},J("div",{class:`${i}-popover-arrow`,style:e})),ep=st({name:"PopoverBody",inheritAttrs:!1,props:pa,setup(e,{slots:i,attrs:a}){const{namespaceRef:f,mergedClsPrefixRef:d,inlineThemeDisabled:y}=wn(e),S=Lt("Popover","-popover",Jh,ha,e,d),T=Ae(null),A=mn("NPopover"),M=Ae(null),P=Ae(e.show),$=Ae(!1);jt(()=>{const{show:fe}=e;fe&&!fu()&&!e.internalDeactivateImmediately&&($.value=!0)});const X=Ue(()=>{const{trigger:fe,onClickoutside:ve}=e,Se=[],{positionManuallyRef:{value:be}}=A;return be||(fe==="click"&&!ve&&Se.push([ki,ye,void 0,{capture:!0}]),fe==="hover"&&Se.push([mu,te])),ve&&Se.push([ki,ye,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&$.value)&&Se.push([ho,e.show]),Se}),Y=Ue(()=>{const fe=e.width==="trigger"?void 0:vr(e.width),ve=[];fe&&ve.push({width:fe});const{maxWidth:Se,minWidth:be}=e;return Se&&ve.push({maxWidth:vr(Se)}),be&&ve.push({maxWidth:vr(be)}),y||ve.push(se.value),ve}),se=Ue(()=>{const{common:{cubicBezierEaseInOut:fe,cubicBezierEaseIn:ve,cubicBezierEaseOut:Se},self:{space:be,spaceArrow:Pe,padding:Be,fontSize:Te,textColor:de,dividerColor:ke,color:q,boxShadow:s,borderRadius:l,arrowHeight:n,arrowOffset:m,arrowOffsetVertical:b}}=S.value;return{"--n-box-shadow":s,"--n-bezier":fe,"--n-bezier-ease-in":ve,"--n-bezier-ease-out":Se,"--n-font-size":Te,"--n-text-color":de,"--n-color":q,"--n-divider-color":ke,"--n-border-radius":l,"--n-arrow-height":n,"--n-arrow-offset":m,"--n-arrow-offset-vertical":b,"--n-padding":Be,"--n-space":be,"--n-space-arrow":Pe}}),N=y?Ur("popover",void 0,se,e):void 0;A.setBodyInstance({syncPosition:L}),nn(()=>{A.setBodyInstance(null)}),tn(Kt(e,"show"),fe=>{e.animated||(fe?P.value=!0:P.value=!1)});function L(){var fe;(fe=T.value)===null||fe===void 0||fe.syncPosition()}function Z(fe){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&A.handleMouseEnter(fe)}function D(fe){e.trigger==="hover"&&e.keepAliveOnHover&&A.handleMouseLeave(fe)}function te(fe){e.trigger==="hover"&&!ee().contains(Jn(fe))&&A.handleMouseMoveOutside(fe)}function ye(fe){(e.trigger==="click"&&!ee().contains(Jn(fe))||e.onClickoutside)&&A.handleClickOutside(fe)}function ee(){return A.getTriggerElement()}dn(Es,M),dn(Os,null),dn(Ps,null);function pe(){if(N==null||N.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&$.value))return null;let ve;const Se=A.internalRenderBodyRef.value,{value:be}=d;if(Se)ve=Se([`${be}-popover-shared`,N==null?void 0:N.themeClass.value,e.overlap&&`${be}-popover-shared--overlap`,e.showArrow&&`${be}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${be}-popover-shared--center-arrow`],M,Y.value,Z,D);else{const{value:Pe}=A.extraClassRef,{internalTrapFocus:Be}=e,Te=!yi(i.header)||!yi(i.footer),de=()=>{var ke;const q=Te?J(Ot,null,pr(i.header,n=>n?J("div",{class:`${be}-popover__header`,style:e.headerStyle},n):null),pr(i.default,n=>n?J("div",{class:`${be}-popover__content`,style:e.contentStyle},i):null),pr(i.footer,n=>n?J("div",{class:`${be}-popover__footer`,style:e.footerStyle},n):null)):e.scrollable?(ke=i.default)===null||ke===void 0?void 0:ke.call(i):J("div",{class:`${be}-popover__content`,style:e.contentStyle},i),s=e.scrollable?J(Yh,{contentClass:Te?void 0:`${be}-popover__content`,contentStyle:Te?void 0:e.contentStyle},{default:()=>q}):q,l=e.showArrow?Qh({arrowStyle:e.arrowStyle,clsPrefix:be}):null;return[s,l]};ve=J("div",Mn({class:[`${be}-popover`,`${be}-popover-shared`,N==null?void 0:N.themeClass.value,Pe.map(ke=>`${be}-${ke}`),{[`${be}-popover--scrollable`]:e.scrollable,[`${be}-popover--show-header-or-footer`]:Te,[`${be}-popover--raw`]:e.raw,[`${be}-popover-shared--overlap`]:e.overlap,[`${be}-popover-shared--show-arrow`]:e.showArrow,[`${be}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:M,style:Y.value,onKeydown:A.handleKeydown,onMouseenter:Z,onMouseleave:D},a),Be?J(Hu,{active:e.show,autoFocus:!0},{default:de}):de())}return Xn(ve,X.value)}return{displayed:$,namespace:f,isMounted:A.isMountedRef,zIndex:A.zIndexRef,followerRef:T,adjustedTo:Yn(e),followerEnabled:P,renderContentNode:pe}},render(){return J(Ms,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Yn.tdkey},{default:()=>this.animated?J(fn,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),tp=Object.keys(pa),np={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function rp(e,i,a){np[i].forEach(f=>{e.props?e.props=Object.assign({},e.props):e.props={};const d=e.props[f],y=a[f];d?e.props[f]=(...S)=>{d(...S),y(...S)}:e.props[f]=y})}const va={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Yn.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},ip=Object.assign(Object.assign(Object.assign({},Lt.props),va),{internalOnAfterLeave:Function,internalRenderBody:Function}),op=st({name:"Popover",inheritAttrs:!1,props:ip,__popover__:!0,setup(e){jt(()=>{e.maxWidth!==void 0&&xn("popover","`max-width` is deprecated, please use `style` instead."),e.minWidth!==void 0&&xn("popover","`min-width` is deprecated, please use `style` instead."),e.arrow!==void 0&&xn("popover","`arrow` is deprecated, please use `showArrow` instead."),e.onHide!==void 0&&xn("popover","`on-hide` is deprecated, please use `on-update:show` instead."),e.onShow!==void 0&&xn("popover","`on-show` is deprecated, please use `on-update:show` instead.")});const i=mo(),a=Ae(null),f=Ue(()=>e.show),d=Ae(e.defaultShow),y=ks(f,d),S=wi(()=>e.disabled?!1:y.value),T=()=>{if(e.disabled)return!0;const{getDisabled:de}=e;return!!(de!=null&&de())},A=()=>T()?!1:y.value,M=hu(e,["arrow","showArrow"]),P=Ue(()=>e.overlap?!1:M.value);let $=null;const X=Ae(null),Y=Ae(null),se=wi(()=>e.x!==void 0&&e.y!==void 0);function N(de){const{"onUpdate:show":ke,onUpdateShow:q,onShow:s,onHide:l}=e;d.value=de,ke&&Ln(ke,de),q&&Ln(q,de),de&&s&&Ln(s,!0),de&&l&&Ln(l,!1)}function L(){$&&$.syncPosition()}function Z(){const{value:de}=X;de&&(window.clearTimeout(de),X.value=null)}function D(){const{value:de}=Y;de&&(window.clearTimeout(de),Y.value=null)}function te(){const de=T();if(e.trigger==="focus"&&!de){if(A())return;N(!0)}}function ye(){const de=T();if(e.trigger==="focus"&&!de){if(!A())return;N(!1)}}function ee(){const de=T();if(e.trigger==="hover"&&!de){if(D(),X.value!==null||A())return;const ke=()=>{N(!0),X.value=null},{delay:q}=e;q===0?ke():X.value=window.setTimeout(ke,q)}}function pe(){const de=T();if(e.trigger==="hover"&&!de){if(Z(),Y.value!==null||!A())return;const ke=()=>{N(!1),Y.value=null},{duration:q}=e;q===0?ke():Y.value=window.setTimeout(ke,q)}}function fe(){pe()}function ve(de){var ke;A()&&(e.trigger==="click"&&(Z(),D(),N(!1)),(ke=e.onClickoutside)===null||ke===void 0||ke.call(e,de))}function Se(){if(e.trigger==="click"&&!T()){Z(),D();const de=!A();N(de)}}function be(de){e.internalTrapFocus&&de.key==="Escape"&&(Z(),D(),N(!1))}function Pe(de){d.value=de}function Be(){var de;return(de=a.value)===null||de===void 0?void 0:de.targetRef}function Te(de){$=de}return dn("NPopover",{getTriggerElement:Be,handleKeydown:be,handleMouseEnter:ee,handleMouseLeave:pe,handleClickOutside:ve,handleMouseMoveOutside:fe,setBodyInstance:Te,positionManuallyRef:se,isMountedRef:i,zIndexRef:Kt(e,"zIndex"),extraClassRef:Kt(e,"internalExtraClass"),internalRenderBodyRef:Kt(e,"internalRenderBody")}),jt(()=>{y.value&&T()&&N(!1)}),{binderInstRef:a,positionManually:se,mergedShowConsideringDisabledProp:S,uncontrolledShow:d,mergedShowArrow:P,getMergedShow:A,setShow:Pe,handleClick:Se,handleMouseEnter:ee,handleMouseLeave:pe,handleFocus:te,handleBlur:ye,syncPosition:L}},render(){var e;const{positionManually:i,$slots:a}=this;let f,d=!1;if(!i&&(a.activator?f=Ei(a,"activator"):f=Ei(a,"trigger"),f)){f=rs(f),f=f.type===is?J("span",[f]):f;const y={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=f.type)===null||e===void 0)&&e.__popover__)d=!0,f.props||(f.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),f.props.internalSyncTargetWithParent=!0,f.props.internalInheritedEventHandlers?f.props.internalInheritedEventHandlers=[y,...f.props.internalInheritedEventHandlers]:f.props.internalInheritedEventHandlers=[y];else{const{internalInheritedEventHandlers:S}=this,T=[y,...S],A={onBlur:M=>{T.forEach(P=>{P.onBlur(M)})},onFocus:M=>{T.forEach(P=>{P.onFocus(M)})},onClick:M=>{T.forEach(P=>{P.onClick(M)})},onMouseenter:M=>{T.forEach(P=>{P.onMouseenter(M)})},onMouseleave:M=>{T.forEach(P=>{P.onMouseleave(M)})}};rp(f,S?"nested":i?"manual":this.trigger,A)}}return J(_s,{ref:"binderInstRef",syncTarget:!d,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const y=this.getMergedShow();return[this.internalTrapFocus&&y?Xn(J("div",{style:{position:"fixed",inset:0}}),[[yo,{enabled:y,zIndex:this.zIndex}]]):null,i?null:J(Rs,null,{default:()=>f}),J(ep,lu(this.$props,tp,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:y})),{default:()=>{var S,T;return(T=(S=this.$slots).default)===null||T===void 0?void 0:T.call(S)},header:()=>{var S,T;return(T=(S=this.$slots).header)===null||T===void 0?void 0:T.call(S)},footer:()=>{var S,T;return(T=(S=this.$slots).footer)===null||T===void 0?void 0:T.call(S)}})]}})}}),ap=du&&"loading"in document.createElement("img"),sp=(e={})=>{var i;const{root:a=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(i=e.threshold)!==null&&i!==void 0?i:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof a=="string"?document.querySelector(a):a)||document.documentElement})}},Sr=new WeakMap,Cr=new WeakMap,Ar=new WeakMap,lp=(e,i,a)=>{if(!e)return()=>{};const f=sp(i),{root:d}=f.options;let y;const S=Sr.get(d);S?y=S:(y=new Map,Sr.set(d,y));let T,A;y.has(f.hash)?(A=y.get(f.hash),A[1].has(e)||(T=A[0],A[1].add(e),T.observe(e))):(T=new IntersectionObserver($=>{$.forEach(X=>{if(X.isIntersecting){const Y=Cr.get(X.target),se=Ar.get(X.target);Y&&Y(),se&&(se.value=!0)}})},f.options),T.observe(e),A=[T,new Set([e])],y.set(f.hash,A));let M=!1;const P=()=>{M||(Cr.delete(e),Ar.delete(e),M=!0,A[1].has(e)&&(A[0].unobserve(e),A[1].delete(e)),A[1].size<=0&&y.delete(f.hash),y.size||Sr.delete(d))};return Cr.set(e,P),Ar.set(e,a),P},up={padding:"8px 14px"},cp=e=>{const{borderRadius:i,boxShadow2:a,baseColor:f}=e;return Object.assign(Object.assign({},up),{borderRadius:i,boxShadow:a,color:Ds(f,"rgba(0, 0, 0, .85)"),textColor:f})},fp=wo({name:"Tooltip",common:nr,peers:{Popover:ha},self:cp}),ga=fp,dp=Object.assign(Object.assign({},va),Lt.props),hp=st({name:"Tooltip",props:dp,__popover__:!0,setup(e){const{mergedClsPrefixRef:i}=wn(e),a=Lt("Tooltip","-tooltip",void 0,ga,e,i),f=Ae(null);return Object.assign(Object.assign({},{syncPosition(){f.value.syncPosition()},setShow(y){f.value.setShow(y)}}),{popoverRef:f,mergedTheme:a,popoverThemeOverrides:Ue(()=>a.value.self)})},render(){const{mergedTheme:e,internalExtraClass:i}=this;return J(op,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:i.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),ti=Object.assign(Object.assign({},Lt.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),ma=bo("n-image");function pp(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const vp=wo({name:"Image",common:nr,peers:{Tooltip:ga},self:pp}),gp=J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M6 5C5.75454 5 5.55039 5.17688 5.50806 5.41012L5.5 5.5V14.5C5.5 14.7761 5.72386 15 6 15C6.24546 15 6.44961 14.8231 6.49194 14.5899L6.5 14.5V5.5C6.5 5.22386 6.27614 5 6 5ZM13.8536 5.14645C13.68 4.97288 13.4106 4.9536 13.2157 5.08859L13.1464 5.14645L8.64645 9.64645C8.47288 9.82001 8.4536 10.0894 8.58859 10.2843L8.64645 10.3536L13.1464 14.8536C13.3417 15.0488 13.6583 15.0488 13.8536 14.8536C14.0271 14.68 14.0464 14.4106 13.9114 14.2157L13.8536 14.1464L9.70711 10L13.8536 5.85355C14.0488 5.65829 14.0488 5.34171 13.8536 5.14645Z",fill:"currentColor"})),mp=J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M13.5 5C13.7455 5 13.9496 5.17688 13.9919 5.41012L14 5.5V14.5C14 14.7761 13.7761 15 13.5 15C13.2545 15 13.0504 14.8231 13.0081 14.5899L13 14.5V5.5C13 5.22386 13.2239 5 13.5 5ZM5.64645 5.14645C5.82001 4.97288 6.08944 4.9536 6.28431 5.08859L6.35355 5.14645L10.8536 9.64645C11.0271 9.82001 11.0464 10.0894 10.9114 10.2843L10.8536 10.3536L6.35355 14.8536C6.15829 15.0488 5.84171 15.0488 5.64645 14.8536C5.47288 14.68 5.4536 14.4106 5.58859 14.2157L5.64645 14.1464L9.79289 10L5.64645 5.85355C5.45118 5.65829 5.45118 5.34171 5.64645 5.14645Z",fill:"currentColor"})),yp=J("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},J("path",{d:"M4.089 4.216l.057-.07a.5.5 0 0 1 .638-.057l.07.057L10 9.293l5.146-5.147a.5.5 0 0 1 .638-.057l.07.057a.5.5 0 0 1 .057.638l-.057.07L10.707 10l5.147 5.146a.5.5 0 0 1 .057.638l-.057.07a.5.5 0 0 1-.638.057l-.07-.057L10 10.707l-5.146 5.147a.5.5 0 0 1-.638.057l-.07-.057a.5.5 0 0 1-.057-.638l.057-.07L9.293 10L4.146 4.854a.5.5 0 0 1-.057-.638l.057-.07l-.057.07z",fill:"currentColor"})),wp=Ve([Ve("body >",[Qe("image-container","position: fixed;")]),Qe("image-preview-container",`
- position: fixed;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- `),Qe("image-preview-overlay",`
- z-index: -1;
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- background: rgba(0, 0, 0, .3);
- `,[zr()]),Qe("image-preview-toolbar",`
- z-index: 1;
- position: absolute;
- left: 50%;
- transform: translateX(-50%);
- border-radius: var(--n-toolbar-border-radius);
- height: 48px;
- bottom: 40px;
- padding: 0 12px;
- background: var(--n-toolbar-color);
- box-shadow: var(--n-toolbar-box-shadow);
- color: var(--n-toolbar-icon-color);
- transition: color .3s var(--n-bezier);
- display: flex;
- align-items: center;
- `,[Qe("base-icon",`
- padding: 0 8px;
- font-size: 28px;
- cursor: pointer;
- `),zr()]),Qe("image-preview-wrapper",`
- position: absolute;
- left: 0;
- right: 0;
- top: 0;
- bottom: 0;
- display: flex;
- pointer-events: none;
- `,[Ns()]),Qe("image-preview",`
- user-select: none;
- -webkit-user-select: none;
- pointer-events: all;
- margin: auto;
- max-height: calc(100vh - 32px);
- max-width: calc(100vw - 32px);
- transition: transform .3s var(--n-bezier);
- `),Qe("image",`
- display: inline-flex;
- max-height: 100%;
- max-width: 100%;
- `,[$n("preview-disabled",`
- cursor: pointer;
- `),Ve("img",`
- border-radius: inherit;
- `)])]),jn=32,ya=st({name:"ImagePreview",props:Object.assign(Object.assign({},ti),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const i=Lt("Image","-image",wp,vp,e,Kt(e,"clsPrefix"));let a=null;const f=Ae(null),d=Ae(null),y=Ae(void 0),S=Ae(!1),T=Ae(!1),{localeRef:A}=Dh("Image");function M(){const{value:G}=d;if(!a||!G)return;const{style:ge}=G,le=a.getBoundingClientRect(),Ee=le.left+le.width/2,Ne=le.top+le.height/2;ge.transformOrigin=`${Ee}px ${Ne}px`}function P(G){var ge,le;switch(G.key){case" ":G.preventDefault();break;case"ArrowLeft":(ge=e.onPrev)===null||ge===void 0||ge.call(e);break;case"ArrowRight":(le=e.onNext)===null||le===void 0||le.call(e);break;case"Escape":he();break}}tn(S,G=>{G?gt("keydown",document,P):ut("keydown",document,P)}),nn(()=>{ut("keydown",document,P)});let $=0,X=0,Y=0,se=0,N=0,L=0,Z=0,D=0,te=!1;function ye(G){const{clientX:ge,clientY:le}=G;Y=ge-$,se=le-X,Bs(Q)}function ee(G){const{mouseUpClientX:ge,mouseUpClientY:le,mouseDownClientX:Ee,mouseDownClientY:Ne}=G,Xe=Ee-ge,Ye=Ne-le,rt=`vertical${Ye>0?"Top":"Bottom"}`,et=`horizontal${Xe>0?"Left":"Right"}`;return{moveVerticalDirection:rt,moveHorizontalDirection:et,deltaHorizontal:Xe,deltaVertical:Ye}}function pe(G){const{value:ge}=f;if(!ge)return{offsetX:0,offsetY:0};const le=ge.getBoundingClientRect(),{moveVerticalDirection:Ee,moveHorizontalDirection:Ne,deltaHorizontal:Xe,deltaVertical:Ye}=G||{};let rt=0,et=0;return le.width<=window.innerWidth?rt=0:le.left>0?rt=(le.width-window.innerWidth)/2:le.right<window.innerWidth?rt=-(le.width-window.innerWidth)/2:Ne==="horizontalRight"?rt=Math.min((le.width-window.innerWidth)/2,N-(Xe!=null?Xe:0)):rt=Math.max(-((le.width-window.innerWidth)/2),N-(Xe!=null?Xe:0)),le.height<=window.innerHeight?et=0:le.top>0?et=(le.height-window.innerHeight)/2:le.bottom<window.innerHeight?et=-(le.height-window.innerHeight)/2:Ee==="verticalBottom"?et=Math.min((le.height-window.innerHeight)/2,L-(Ye!=null?Ye:0)):et=Math.max(-((le.height-window.innerHeight)/2),L-(Ye!=null?Ye:0)),{offsetX:rt,offsetY:et}}function fe(G){ut("mousemove",document,ye),ut("mouseup",document,fe);const{clientX:ge,clientY:le}=G;te=!1;const Ee=ee({mouseUpClientX:ge,mouseUpClientY:le,mouseDownClientX:Z,mouseDownClientY:D}),Ne=pe(Ee);Y=Ne.offsetX,se=Ne.offsetY,Q()}const ve=mn(ma,null);function Se(G){var ge,le;if((le=(ge=ve==null?void 0:ve.previewedImgPropsRef.value)===null||ge===void 0?void 0:ge.onMousedown)===null||le===void 0||le.call(ge,G),G.button!==0)return;const{clientX:Ee,clientY:Ne}=G;te=!0,$=Ee-Y,X=Ne-se,N=Y,L=se,Z=Ee,D=Ne,Q(),gt("mousemove",document,ye),gt("mouseup",document,fe)}function be(G){var ge,le;(le=(ge=ve==null?void 0:ve.previewedImgPropsRef.value)===null||ge===void 0?void 0:ge.onDblclick)===null||le===void 0||le.call(ge,G);const Ee=b();Te=Te===Ee?1:Ee,Q()}const Pe=1.5;let Be=0,Te=1,de=0;function ke(){Te=1,Be=0}function q(){var G;ke(),de=0,(G=e.onPrev)===null||G===void 0||G.call(e)}function s(){var G;ke(),de=0,(G=e.onNext)===null||G===void 0||G.call(e)}function l(){de-=90,Q()}function n(){de+=90,Q()}function m(){const{value:G}=f;if(!G)return 1;const{innerWidth:ge,innerHeight:le}=window,Ee=Math.max(1,G.naturalHeight/(le-jn)),Ne=Math.max(1,G.naturalWidth/(ge-jn));return Math.max(3,Ee*2,Ne*2)}function b(){const{value:G}=f;if(!G)return 1;const{innerWidth:ge,innerHeight:le}=window,Ee=G.naturalHeight/(le-jn),Ne=G.naturalWidth/(ge-jn);return Ee<1&&Ne<1?1:Math.max(Ee,Ne)}function B(){const G=m();Te<G&&(Be+=1,Te=Math.min(G,Math.pow(Pe,Be)),Q())}function oe(){if(Te>.5){const G=Te;Be-=1,Te=Math.max(.5,Math.pow(Pe,Be));const ge=G-Te;Q(!1);const le=pe();Te+=ge,Q(!1),Te-=ge,Y=le.offsetX,se=le.offsetY,Q()}}function Q(G=!0){var ge;const{value:le}=f;if(!le)return;const{style:Ee}=le,Ne=os((ge=ve==null?void 0:ve.previewedImgPropsRef.value)===null||ge===void 0?void 0:ge.style);let Xe="";if(typeof Ne=="string")Xe=Ne+";";else for(const rt in Ne)Xe+=`${$d(rt)}: ${Ne[rt]};`;const Ye=`transform-origin: center; transform: translateX(${Y}px) translateY(${se}px) rotate(${de}deg) scale(${Te});`;te?Ee.cssText=Xe+"cursor: grabbing; transition: none;"+Ye:Ee.cssText=Xe+"cursor: grab;"+Ye+(G?"":"transition: none;"),G||le.offsetHeight}function he(){S.value=!S.value,T.value=!0}function Re(){Te=b(),Be=Math.ceil(Math.log(Te)/Math.log(Pe)),Y=0,se=0,Q()}const De={setPreviewSrc:G=>{y.value=G},setThumbnailEl:G=>{a=G},toggleShow:he};function Ie(G,ge){if(e.showToolbarTooltip){const{value:le}=i;return J(hp,{to:!1,theme:le.peers.Tooltip,themeOverrides:le.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>A.value[ge],trigger:()=>G})}else return G}const lt=Ue(()=>{const{common:{cubicBezierEaseInOut:G},self:{toolbarIconColor:ge,toolbarBorderRadius:le,toolbarBoxShadow:Ee,toolbarColor:Ne}}=i.value;return{"--n-bezier":G,"--n-toolbar-icon-color":ge,"--n-toolbar-color":Ne,"--n-toolbar-border-radius":le,"--n-toolbar-box-shadow":Ee}}),{inlineThemeDisabled:nt}=wn(),He=nt?Ur("image-preview",void 0,lt,e):void 0;return Object.assign({previewRef:f,previewWrapperRef:d,previewSrc:y,show:S,appear:mo(),displayed:T,previewedImgProps:ve==null?void 0:ve.previewedImgPropsRef,handleWheel(G){G.preventDefault()},handlePreviewMousedown:Se,handlePreviewDblclick:be,syncTransformOrigin:M,handleAfterLeave:()=>{ke(),de=0,T.value=!1},handleDragStart:G=>{var ge,le;(le=(ge=ve==null?void 0:ve.previewedImgPropsRef.value)===null||ge===void 0?void 0:ge.onDragstart)===null||le===void 0||le.call(ge,G),G.preventDefault()},zoomIn:B,zoomOut:oe,rotateCounterclockwise:l,rotateClockwise:n,handleSwitchPrev:q,handleSwitchNext:s,withTooltip:Ie,resizeToOrignalImageSize:Re,cssVars:nt?void 0:lt,themeClass:He==null?void 0:He.themeClass,onRender:He==null?void 0:He.onRender},De)},render(){var e,i;const{clsPrefix:a}=this;return J(Ot,null,(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e),J(Ls,{show:this.show},{default:()=>{var f;return this.show||this.displayed?((f=this.onRender)===null||f===void 0||f.call(this),Xn(J("div",{class:[`${a}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},J(fn,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?J("div",{class:`${a}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?J(fn,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:d}=this;return J("div",{class:`${a}-image-preview-toolbar`},this.onPrev?J(Ot,null,d(J(zt,{clsPrefix:a,onClick:this.handleSwitchPrev},{default:()=>gp}),"tipPrevious"),d(J(zt,{clsPrefix:a,onClick:this.handleSwitchNext},{default:()=>mp}),"tipNext")):null,d(J(zt,{clsPrefix:a,onClick:this.rotateCounterclockwise},{default:()=>J(Fh,null)}),"tipCounterclockwise"),d(J(zt,{clsPrefix:a,onClick:this.rotateClockwise},{default:()=>J(Bh,null)}),"tipClockwise"),d(J(zt,{clsPrefix:a,onClick:this.resizeToOrignalImageSize},{default:()=>J(Wh,null)}),"tipOriginalSize"),d(J(zt,{clsPrefix:a,onClick:this.zoomOut},{default:()=>J(zh,null)}),"tipZoomOut"),d(J(zt,{clsPrefix:a,onClick:this.zoomIn},{default:()=>J(Ih,null)}),"tipZoomIn"),d(J(zt,{clsPrefix:a,onClick:this.toggleShow},{default:()=>yp}),"tipClose"))}}):null,J(fn,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:d={}}=this;return Xn(J("div",{class:`${a}-image-preview-wrapper`,ref:"previewWrapperRef"},J("img",Object.assign({},d,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${a}-image-preview`,d.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[ho,this.show]])}})),[[yo,{enabled:this.show}]])):null}}))}}),wa=bo("n-image-group"),bp=ti;st({name:"ImageGroup",props:bp,setup(e){let i;const{mergedClsPrefixRef:a}=wn(e),f=`c${Po()}`,d=co(),y=A=>{var M;i=A,(M=T.value)===null||M===void 0||M.setPreviewSrc(A)};function S(A){if(!(d!=null&&d.proxy))return;const P=d.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${f}]:not([data-error=true])`);if(!P.length)return;const $=Array.from(P).findIndex(X=>X.dataset.previewSrc===i);~$?y(P[($+A+P.length)%P.length].dataset.previewSrc):y(P[0].dataset.previewSrc)}dn(wa,{mergedClsPrefixRef:a,setPreviewSrc:y,setThumbnailEl:A=>{var M;(M=T.value)===null||M===void 0||M.setThumbnailEl(A)},toggleShow:()=>{var A;(A=T.value)===null||A===void 0||A.toggleShow()},groupId:f});const T=Ae(null);return{mergedClsPrefix:a,previewInstRef:T,next:()=>{S(1)},prev:()=>{S(-1)}}},render(){return J(ya,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}});const xp=Object.assign({alt:String,height:[String,Number],imgProps:Object,previewedImgProps:Object,lazy:Boolean,intersectionObserverOptions:Object,objectFit:{type:String,default:"fill"},previewSrc:String,fallbackSrc:String,width:[String,Number],src:String,previewDisabled:Boolean,loadDescription:String,onError:Function,onLoad:Function},ti),Sp=st({name:"Image",props:xp,inheritAttrs:!1,setup(e){const i=Ae(null),a=Ae(!1),f=Ae(null),d=mn(wa,null),{mergedClsPrefixRef:y}=d||wn(e),S={click:()=>{if(e.previewDisabled||a.value)return;const M=e.previewSrc||e.src;if(d){d.setPreviewSrc(M),d.setThumbnailEl(i.value),d.toggleShow();return}const{value:P}=f;P&&(P.setPreviewSrc(M),P.setThumbnailEl(i.value),P.toggleShow())}},T=Ae(!e.lazy);Et(()=>{var M;(M=i.value)===null||M===void 0||M.setAttribute("data-group-id",(d==null?void 0:d.groupId)||"")}),Et(()=>{if(e.lazy&&e.intersectionObserverOptions){let M;const P=jt(()=>{M==null||M(),M=void 0,M=lp(i.value,e.intersectionObserverOptions,T)});nn(()=>{P(),M==null||M()})}}),jt(()=>{var M;e.src,(M=e.imgProps)===null||M===void 0||M.src,a.value=!1});const A=Ae(!1);return dn(ma,{previewedImgPropsRef:Kt(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:y,groupId:d==null?void 0:d.groupId,previewInstRef:f,imageRef:i,showError:a,shouldStartLoading:T,loaded:A,mergedOnClick:M=>{var P,$;S.click(),($=(P=e.imgProps)===null||P===void 0?void 0:P.onClick)===null||$===void 0||$.call(P,M)},mergedOnError:M=>{if(!T.value)return;a.value=!0;const{onError:P,imgProps:{onError:$}={}}=e;P==null||P(M),$==null||$(M)},mergedOnLoad:M=>{const{onLoad:P,imgProps:{onLoad:$}={}}=e;P==null||P(M),$==null||$(M),A.value=!0}},S)},render(){var e,i;const{mergedClsPrefix:a,imgProps:f={},loaded:d,$attrs:y,lazy:S}=this,T=(i=(e=this.$slots).placeholder)===null||i===void 0?void 0:i.call(e),A=this.src||f.src,M=J("img",Object.assign(Object.assign({},f),{ref:"imageRef",width:this.width||f.width,height:this.height||f.height,src:this.showError?this.fallbackSrc:S&&this.intersectionObserverOptions?this.shouldStartLoading?A:void 0:A,alt:this.alt||f.alt,"aria-label":this.alt||f.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:ap&&S&&!this.intersectionObserverOptions?"lazy":"eager",style:[f.style||"",T&&!d?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return J("div",Object.assign({},y,{role:"none",class:[y.class,`${a}-image`,(this.previewDisabled||this.showError)&&`${a}-image--preview-disabled`]}),this.groupId?M:J(ya,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:a,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>M}),!d&&T)}});const Cp="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",Ap="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",Tp=st({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup(e){return()=>ie("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[ie("img",{class:"favoritIcon",src:e.isFavorite?Ap:Cp},null)])}}),Mp="_book_1fdnj_1",Ep="_back_1fdnj_7",Op="_bookHide_1fdnj_12",Pp="_wrap_1fdnj_52",kp="_item_1fdnj_56",Rp="_des_1fdnj_67",_p="_icon_1fdnj_71",Wt={book:Mp,back:Ep,bookHide:Op,wrap:Pp,item:kp,des:Rp,icon:_p},Dp=""+new URL("icon_play-8079d539.svg",import.meta.url).href,Np=st({name:"courseware-detail",emits:["close"],setup(e,{emit:i}){const a=En({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Yt("courseware-detail1.png"),handStyle:{top:"-0.4rem",left:"1.1rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.3rem",left:"2.2rem"},btnsStyle:{top:"1.5rem",left:"3.5rem"}}],step:0}),f=Ae(!1),d=localStorage.getItem("guideInfo");d&&JSON.parse(d).coursewareDetail?f.value=!1:f.value=!0;const y=()=>{console.log(`coursewareDetail-${a.step}`);const A=document.getElementById(`coursewareDetail-${a.step}`);if(A){const M=A.getBoundingClientRect();a.box={left:M.x+"px",top:M.y+"px",width:M.width+"px",height:M.height+"px"}}};Et(()=>{y()});const S=()=>{if(a.step>=3){T();return}a.step=a.step+1,y()},T=()=>{let A=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;A?A.coursewareDetail=!0:A={coursewareDetail:!0},localStorage.setItem("guideInfo",JSON.stringify(A)),f.value=!1};return()=>ie(Wr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:f.value,"onUpdate:show":A=>f.value=A},{default:()=>[ie("div",{class:Ze.content,onClick:()=>S()},[ie("div",{class:Ze.backBtn,onClick:A=>{A.stopPropagation(),T()}},[vt("跳过")]),ie("div",{class:Ze.box,style:a.box,id:`modeType-${a.step}`},[a.steps.map((A,M)=>{var P,$;return ie("div",{onClick:X=>X.stopPropagation(),class:Ze.item,style:{display:M===a.step?"":"none",left:`${(P=A.eleRect)==null?void 0:P.left}px`,top:`${($=A.eleRect)==null?void 0:$.top}px`}},[ie("img",{class:Ze.img,style:A.imgStyle,src:A.img},null),ie("img",{class:Ze.iconHead,style:A.handStyle,src:Yt("indexDot.png")},null),ie("div",{class:Ze.btns,style:A.btnsStyle},[a.step+1==a.steps.length?ie(Ot,null,[ie(hn,{class:[Ze.btn,Ze.endBtn],round:!0,type:"primary",onClick:()=>T()},{default:()=>[vt("完成")]})]):ie(hn,{class:Ze.btn,round:!0,type:"primary",onClick:()=>S()},{default:()=>[vt("下一步 ("),a.step+1,vt("/"),a.steps.length,vt(")")]})])])})])])]})}}),Lp=st({name:"the-book",props:{bookData:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:i}){po();const a=En({show:!1,width:0,height:0,transform:"",list:[]}),f=Ae(!1),d=async()=>{console.log("初始化完成")};let y=null,S=null;const T=()=>{y=window.$("#flipbook");const X=document.body.clientHeight*.8;a.height=X,a.width=X*(210/297)*2,y.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:a.width,height:a.height,gradients:!0})},A=()=>{const X=document.querySelector(".bookWrap");if(X){const Y=X.getBoundingClientRect(),se=e.rect.width/(Y.width/2),N=e.rect.height/Y.height,L=(Y.width/2*(se-1)/2+e.rect.x-Y.x-Y.width/4)/se,Z=(Y.height*(N-1)/2+e.rect.y-Y.y)/N,D=`scale3d(${se}, ${N}, 1) translate(${L}px, ${Z}px)`;X.style.transform=a.transform=D,X.style.transition="transform 0s",Tr(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{X.style.transition="transform 1s",X.style.transform="",a.show=!0,S=setTimeout(()=>{y.turn("page",2)},500),setTimeout(()=>{f.value=!0},1500)})})})}},M=()=>{clearTimeout(S);const X=document.querySelector(".bookWrap");y.turn("page",1),X&&(X.style.transform=a.transform),i("close"),setTimeout(()=>{X.style.transition="",X.style.transform="",a.show=!1,a.list=[]},1e3)};Et(async()=>{await d()});const P=()=>{var N;if(!((N=e.bookData)!=null&&N.lessonList))return;const X=Math.floor((document.body.clientHeight*.8-40)/50);console.log("🚀 ~ step:",X);const Y=[];let se=[];for(let L=0;L<e.bookData.lessonList.length;L++){const Z=e.bookData.lessonList[L];se.length<X?se.push({name:Z.name}):se=[{name:Z.name}];for(let D=0;D<Z.knowledgeList.length;D++)se.length<X?se.push(Z.knowledgeList[D]):(Y.push(se),se=[Z.knowledgeList[D]])}se.length&&Y.push(se),a.list=Y};tn(()=>e.show,()=>{e.show&&(P(),Tr(()=>{T(),requestAnimationFrame(()=>{A()})}))});const $=X=>{if(!X.containMaterial){as("暂无资源");return}if(X.id){const Y=us.stringify({id:X.id,name:X.name}),se=location.origin+location.pathname+"#/courseware-play?"+Y;console.log("🚀 ~ url:",se),vo({api:"openWebView",content:{url:se,orientation:0,isHideTitle:!1}})}};return()=>ie("div",{class:[Wt.book,a.show?"":Wt.bookHide]},[ie("div",{class:Wt.back,onClick:M},[ie("img",{src:Oo},null)]),ie("div",{class:"bookWrap",style:{width:a.width+"px"}},[!!a.list.length&&ie("div",{id:"flipbook",class:[a.show&&"animated"]},[ie("div",{class:"page"},[ie("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),a.list.map(X=>ie("div",{class:"page"},[ie("div",{class:"gradient"},null),ie("div",{class:Wt.wrap},[X.map((Y,se)=>ie(Ot,null,[ie("div",{class:[Wt.item,Y.id&&Wt.des],onTouchstart:N=>{N.stopPropagation()},onClick:N=>{N.stopPropagation(),$(Y)}},[ie("div",{class:Wt.name},[Y.name]),Y.id?ie("img",{id:se==1?"coursewareDetail-0":"",class:Wt.icon,src:Dp},null):null])]))])])),ie("div",{class:"page"},[ie("div",{class:"gradient"},null)])])]),f.value?ie(Np,null,null):null])}}),Bp=st({name:"courseware-list",emits:["close"],setup(e,{emit:i}){const a=En({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Yt("courseware-list1.png"),handStyle:{top:"1.5rem",left:"3.8rem",transform:"rotate(-90deg)"},imgStyle:{top:".7rem",left:"4.8rem"},btnsStyle:{top:"3.5rem",left:"6rem"}},{ele:"",img:Yt("courseware-list2.png"),handStyle:{top:"-.3rem",left:"1.3rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.2rem",left:"2.4rem"},btnsStyle:{top:"1.6rem",left:"3.6rem"}},{ele:"",img:Yt("courseware-list3.png"),handStyle:{bottom:"-2rem",left:"0.5rem"},imgStyle:{top:"1.2rem",left:"-2rem"},btnsStyle:{top:"4.2rem",left:"-0.5rem"}},{ele:"",img:Yt("courseware-list4.png"),handStyle:{top:".9rem",left:"1rem"},imgStyle:{top:"1.1rem",left:"-4.6rem"},btnsStyle:{top:"4rem",left:"-4.5rem","justify-content":"center",padding:0}}],step:0}),f=Ae(!1),d=localStorage.getItem("guideInfo");d&&JSON.parse(d).courseware?f.value=!1:f.value=!0;const y=()=>{console.log(`courseware-${a.step}`);const A=document.getElementById(`courseware-${a.step}`);if(A){const M=A.getBoundingClientRect();a.box={left:M.x+"px",top:M.y+"px",width:M.width+"px",height:M.height+"px"}}};Et(()=>{y()});const S=()=>{if(a.step>=3){T();return}a.step=a.step+1,y()},T=()=>{let A=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;A?A.courseware=!0:A={courseware:!0},localStorage.setItem("guideInfo",JSON.stringify(A)),f.value=!1};return()=>ie(Wr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:f.value,"onUpdate:show":A=>f.value=A},{default:()=>[ie("div",{class:Ze.content,onClick:()=>S()},[ie("div",{class:Ze.backBtn,onClick:A=>{A.stopPropagation(),T()}},[vt("跳过")]),ie("div",{class:Ze.box,style:a.box,id:`modeType-${a.step}`},[a.steps.map((A,M)=>{var P,$;return ie("div",{onClick:X=>X.stopPropagation(),class:Ze.item,style:{display:M===a.step?"":"none",left:`${(P=A.eleRect)==null?void 0:P.left}px`,top:`${($=A.eleRect)==null?void 0:$.top}px`}},[ie("img",{class:Ze.img,style:A.imgStyle,src:A.img},null),ie("img",{class:Ze.iconHead,style:A.handStyle,src:Yt("indexDot.png")},null),ie("div",{class:Ze.btns,style:A.btnsStyle},[a.step+1==a.steps.length?ie(Ot,null,[ie(hn,{class:Ze.btn,round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{a.step=0,y()}},{default:()=>[vt("再看一遍")]}),ie(hn,{class:[Ze.btn,Ze.endBtn],round:!0,type:"primary",onClick:()=>T()},{default:()=>[vt("完成")]})]):ie(hn,{class:Ze.btn,round:!0,type:"primary",onClick:()=>S()},{default:()=>[vt("下一步 ("),a.step+1,vt("/"),a.steps.length,vt(")")]})])])})])])]})}});/*! jQuery v1.7 jquery.com | jquery.org/license */(function(e,i){function a(t){return n.isWindow(t)?t:t.nodeType===9?t.defaultView||t.parentWindow:!1}function f(t){if(!fr[t]){var r=q.body,o=n("<"+t+">").appendTo(r),u=o.css("display");o.remove(),(u==="none"||u==="")&&(Tt||(Tt=q.createElement("iframe"),Tt.frameBorder=Tt.width=Tt.height=0),r.appendChild(Tt),(!sn||!Tt.createElement)&&(sn=(Tt.contentWindow||Tt.contentDocument).document,sn.write((q.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),sn.close()),o=sn.createElement(t),sn.body.appendChild(o),u=n.css(o,"display"),r.removeChild(Tt)),fr[t]=u}return fr[t]}function d(t,r){var o={};return n.each(di.concat.apply([],di.slice(0,r)),function(){o[this]=t}),o}function y(){Dn=i}function S(){return setTimeout(y,0),Dn=n.now()}function T(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function A(){try{return new e.XMLHttpRequest}catch(t){}}function M(t,r){t.dataFilter&&(r=t.dataFilter(r,t.dataType));var o=t.dataTypes,u={},c,h,v=o.length,g,C=o[0],k,E,O,F,W;for(c=1;c<v;c++){if(c===1)for(h in t.converters)typeof h=="string"&&(u[h.toLowerCase()]=t.converters[h]);if(k=C,C=o[c],C==="*")C=k;else if(k!=="*"&&k!==C){if(E=k+" "+C,O=u[E]||u["* "+C],!O){W=i;for(F in u)if(g=F.split(" "),(g[0]===k||g[0]==="*")&&(W=u[g[1]+" "+C],W)){F=u[F],F===!0?O=W:W===!0&&(O=F);break}}!O&&!W&&n.error("No conversion from "+E.replace(" "," to ")),O!==!0&&(r=O?O(r):W(F(r)))}}return r}function P(t,r,o){var u=t.contents,c=t.dataTypes,h=t.responseFields,v,g,C,k;for(g in h)g in o&&(r[h[g]]=o[g]);for(;c[0]==="*";)c.shift(),v===i&&(v=t.mimeType||r.getResponseHeader("content-type"));if(v){for(g in u)if(u[g]&&u[g].test(v)){c.unshift(g);break}}if(c[0]in o)C=c[0];else{for(g in o){if(!c[0]||t.converters[g+" "+c[0]]){C=g;break}k||(k=g)}C=C||k}if(C)return C!==c[0]&&c.unshift(C),o[C]}function $(t,r,o,u){if(n.isArray(r))n.each(r,function(h,v){o||Oa.test(t)?u(t,v):$(t+"["+(typeof v=="object"||n.isArray(v)?h:"")+"]",v,o,u)});else if(!o&&r!=null&&typeof r=="object")for(var c in r)$(t+"["+c+"]",r[c],o,u);else u(t,r)}function X(t,r){var o,u,c=n.ajaxSettings.flatOptions||{};for(o in r)r[o]!==i&&((c[o]?t:u||(u={}))[o]=r[o]);u&&n.extend(!0,t,u)}function Y(t,r,o,u,c,h){c=c||r.dataTypes[0],h=h||{},h[c]=!0;for(var v=t[c],g=0,C=v?v.length:0,k=t===ur,E;g<C&&(k||!E);g++)E=v[g](r,o,u),typeof E=="string"&&(!k||h[E]?E=i:(r.dataTypes.unshift(E),E=Y(t,r,o,u,E,h)));return(k||!E)&&!h["*"]&&(E=Y(t,r,o,u,"*",h)),E}function se(t){return function(r,o){if(typeof r!="string"&&(o=r,r="*"),n.isFunction(o))for(var u=r.toLowerCase().split(si),c=0,h=u.length,v,g,C;c<h;c++)v=u[c],C=/^\+/.test(v),C&&(v=v.substr(1)||"*"),g=t[v]=t[v]||[],g[C?"unshift":"push"](o)}}function N(t,r,o){var u=r==="width"?t.offsetWidth:t.offsetHeight,c=r==="width"?Ta:Ma;return u>0?(o!=="border"&&n.each(c,function(){o||(u-=parseFloat(n.css(t,"padding"+this))||0),o==="margin"?u+=parseFloat(n.css(t,o+this))||0:u-=parseFloat(n.css(t,"border"+this+"Width"))||0}),u+"px"):(u=on(t,r,r),(u<0||u==null)&&(u=t.style[r]||0),u=parseFloat(u)||0,o&&n.each(c,function(){u+=parseFloat(n.css(t,"padding"+this))||0,o!=="padding"&&(u+=parseFloat(n.css(t,"border"+this+"Width"))||0),o==="margin"&&(u+=parseFloat(n.css(t,o+this))||0)}),u+"px")}function L(t,r){r.src?n.ajax({url:r.src,async:!1,dataType:"script"}):n.globalEval((r.text||r.textContent||r.innerHTML||"").replace(Fe,"/*$0*/")),r.parentNode&&r.parentNode.removeChild(r)}function Z(t){var r=(t.nodeName||"").toLowerCase();r==="input"?D(t):r!=="script"&&typeof t.getElementsByTagName<"u"&&n.grep(t.getElementsByTagName("input"),D)}function D(t){(t.type==="checkbox"||t.type==="radio")&&(t.defaultChecked=t.checked)}function te(t){return typeof t.getElementsByTagName<"u"?t.getElementsByTagName("*"):typeof t.querySelectorAll<"u"?t.querySelectorAll("*"):[]}function ye(t,r){var o;r.nodeType===1&&(r.clearAttributes&&r.clearAttributes(),r.mergeAttributes&&r.mergeAttributes(t),o=r.nodeName.toLowerCase(),o==="object"?r.outerHTML=t.outerHTML:o!=="input"||t.type!=="checkbox"&&t.type!=="radio"?o==="option"?r.selected=t.defaultSelected:(o==="input"||o==="textarea")&&(r.defaultValue=t.defaultValue):(t.checked&&(r.defaultChecked=r.checked=t.checked),r.value!==t.value&&(r.value=t.value)),r.removeAttribute(n.expando))}function ee(t,r){if(r.nodeType===1&&n.hasData(t)){var o,u,c,h=n._data(t),v=n._data(r,h),g=h.events;if(g){delete v.handle,v.events={};for(o in g)for(u=0,c=g[o].length;u<c;u++)n.event.add(r,o+(g[o][u].namespace?".":"")+g[o][u].namespace,g[o][u],g[o][u].data)}v.data&&(v.data=n.extend({},v.data))}}function pe(t,r){return n.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function fe(t){var r=wt.split(" "),o=t.createDocumentFragment();if(o.createElement)for(;r.length;)o.createElement(r.pop());return o}function ve(t,r,o){if(r=r||0,n.isFunction(r))return n.grep(t,function(c,h){var v=!!r.call(c,h,c);return v===o});if(r.nodeType)return n.grep(t,function(c,h){return c===r===o});if(typeof r=="string"){var u=n.grep(t,function(c){return c.nodeType===1});if(kt.test(r))return n.filter(r,u,!o);r=n.filter(r,u)}return n.grep(t,function(c,h){return n.inArray(c,r)>=0===o})}function Se(t){return!t||!t.parentNode||t.parentNode.nodeType===11}function be(){return!0}function Pe(){return!1}function Be(t,r,o){var u=r+"defer",c=r+"queue",h=r+"mark",v=n._data(t,u);v&&(o==="queue"||!n._data(t,c))&&(o==="mark"||!n._data(t,h))&&setTimeout(function(){!n._data(t,c)&&!n._data(t,h)&&(n.removeData(t,u,!0),v.fire())},0)}function Te(t){for(var r in t)if(!(r==="data"&&n.isEmptyObject(t[r]))&&r!=="toJSON")return!1;return!0}function de(t,r,o){if(o===i&&t.nodeType===1){var u="data-"+r.replace(oe,"-$1").toLowerCase();if(o=t.getAttribute(u),typeof o=="string"){try{o=o==="true"?!0:o==="false"?!1:o==="null"?null:n.isNumeric(o)?parseFloat(o):B.test(o)?n.parseJSON(o):o}catch(c){}n.data(t,r,o)}else o=i}return o}function ke(t){var r=m[t]={},o,u;for(t=t.split(/\s+/),o=0,u=t.length;o<u;o++)r[t[o]]=!0;return r}var q=e.document,s=e.navigator,l=e.location,n=function(){function t(){if(!r.isReady){try{q.documentElement.doScroll("left")}catch(w){setTimeout(t,1);return}r.ready()}}var r=function(w,H){return new r.fn.init(w,H,c)},o=e.jQuery,u=e.$,c,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/\S/,g=/^\s+/,C=/\s+$/,k=/\d/,E=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=/^[\],:{}\s]*$/,F=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,W=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,K=/(?:^|:|,)(?:\s*\[)+/g,me=/(webkit)[ \/]([\w.]+)/,Me=/(opera)(?:.*version)?[ \/]([\w.]+)/,Ce=/(msie) ([\w.]+)/,it=/(mozilla)(?:.*? rv:([\w.]+))?/,ot=/-([a-z]|[0-9])/ig,xe=/^-ms-/,p=function(w,H){return(H+"").toUpperCase()},x=s.userAgent,R,_,I,z=Object.prototype.toString,U=Object.prototype.hasOwnProperty,ae=Array.prototype.push,ne=Array.prototype.slice,ce=String.prototype.trim,ft=Array.prototype.indexOf,tt={};return r.fn=r.prototype={constructor:r,init:function(w,H,re){var j,Oe,Le,je;if(!w)return this;if(w.nodeType)return this.context=this[0]=w,this.length=1,this;if(w==="body"&&!H&&q.body)return this.context=q,this[0]=q.body,this.selector=w,this.length=1,this;if(typeof w=="string"){if(w.charAt(0)!=="<"||w.charAt(w.length-1)!==">"||w.length<3?j=h.exec(w):j=[null,w,null],j&&(j[1]||!H)){if(j[1])return H=H instanceof r?H[0]:H,je=H?H.ownerDocument||H:q,Le=E.exec(w),Le?r.isPlainObject(H)?(w=[q.createElement(Le[1])],r.fn.attr.call(w,H,!0)):w=[je.createElement(Le[1])]:(Le=r.buildFragment([j[1]],[je]),w=(Le.cacheable?r.clone(Le.fragment):Le.fragment).childNodes),r.merge(this,w);if(Oe=q.getElementById(j[2]),Oe&&Oe.parentNode){if(Oe.id!==j[2])return re.find(w);this.length=1,this[0]=Oe}return this.context=q,this.selector=w,this}return!H||H.jquery?(H||re).find(w):this.constructor(H).find(w)}return r.isFunction(w)?re.ready(w):(w.selector!==i&&(this.selector=w.selector,this.context=w.context),r.makeArray(w,this))},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return ne.call(this,0)},get:function(w){return w==null?this.toArray():w<0?this[this.length+w]:this[w]},pushStack:function(w,H,re){var j=this.constructor();return r.isArray(w)?ae.apply(j,w):r.merge(j,w),j.prevObject=this,j.context=this.context,H==="find"?j.selector=this.selector+(this.selector?" ":"")+re:H&&(j.selector=this.selector+"."+H+"("+re+")"),j},each:function(w,H){return r.each(this,w,H)},ready:function(w){return r.bindReady(),_.add(w),this},eq:function(w){return w===-1?this.slice(w):this.slice(w,+w+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(ne.apply(this,arguments),"slice",ne.call(arguments).join(","))},map:function(w){return this.pushStack(r.map(this,function(H,re){return w.call(H,re,H)}))},end:function(){return this.prevObject||this.constructor(null)},push:ae,sort:[].sort,splice:[].splice},r.fn.init.prototype=r.fn,r.extend=r.fn.extend=function(){var w,H,re,j,Oe,Le,je=arguments[0]||{},ht=1,St=arguments.length,dr=!1;for(typeof je=="boolean"&&(dr=je,je=arguments[1]||{},ht=2),typeof je!="object"&&!r.isFunction(je)&&(je={}),St===ht&&(je=this,--ht);ht<St;ht++)if((w=arguments[ht])!=null)for(H in w)re=je[H],j=w[H],je!==j&&(dr&&j&&(r.isPlainObject(j)||(Oe=r.isArray(j)))?(Oe?(Oe=!1,Le=re&&r.isArray(re)?re:[]):Le=re&&r.isPlainObject(re)?re:{},je[H]=r.extend(dr,Le,j)):j!==i&&(je[H]=j));return je},r.extend({noConflict:function(w){return e.$===r&&(e.$=u),w&&e.jQuery===r&&(e.jQuery=o),r},isReady:!1,readyWait:1,holdReady:function(w){w?r.readyWait++:r.ready(!0)},ready:function(w){if(w===!0&&!--r.readyWait||w!==!0&&!r.isReady){if(!q.body)return setTimeout(r.ready,1);if(r.isReady=!0,w!==!0&&--r.readyWait>0)return;_.fireWith(q,[r]),r.fn.trigger&&r(q).trigger("ready").unbind("ready")}},bindReady:function(){if(!_){if(_=r.Callbacks("once memory"),q.readyState==="complete")return setTimeout(r.ready,1);if(q.addEventListener)q.addEventListener("DOMContentLoaded",I,!1),e.addEventListener("load",r.ready,!1);else if(q.attachEvent){q.attachEvent("onreadystatechange",I),e.attachEvent("onload",r.ready);var w=!1;try{w=e.frameElement==null}catch(H){}q.documentElement.doScroll&&w&&t()}}},isFunction:function(w){return r.type(w)==="function"},isArray:Array.isArray||function(w){return r.type(w)==="array"},isWindow:function(w){return w&&typeof w=="object"&&"setInterval"in w},isNumeric:function(w){return w!=null&&k.test(w)&&!isNaN(w)},type:function(w){return w==null?String(w):tt[z.call(w)]||"object"},isPlainObject:function(w){if(!w||r.type(w)!=="object"||w.nodeType||r.isWindow(w))return!1;try{if(w.constructor&&!U.call(w,"constructor")&&!U.call(w.constructor.prototype,"isPrototypeOf"))return!1}catch(re){return!1}var H;for(H in w);return H===i||U.call(w,H)},isEmptyObject:function(w){for(var H in w)return!1;return!0},error:function(w){throw w},parseJSON:function(w){if(typeof w!="string"||!w)return null;if(w=r.trim(w),e.JSON&&e.JSON.parse)return e.JSON.parse(w);if(O.test(w.replace(F,"@").replace(W,"]").replace(K,"")))return new Function("return "+w)();r.error("Invalid JSON: "+w)},parseXML:function(w){var H,re;try{e.DOMParser?(re=new DOMParser,H=re.parseFromString(w,"text/xml")):(H=new ActiveXObject("Microsoft.XMLDOM"),H.async="false",H.loadXML(w))}catch(j){H=i}return(!H||!H.documentElement||H.getElementsByTagName("parsererror").length)&&r.error("Invalid XML: "+w),H},noop:function(){},globalEval:function(w){w&&v.test(w)&&(e.execScript||function(H){e.eval.call(e,H)})(w)},camelCase:function(w){return w.replace(xe,"ms-").replace(ot,p)},nodeName:function(w,H){return w.nodeName&&w.nodeName.toUpperCase()===H.toUpperCase()},each:function(w,H,re){var j,Oe=0,Le=w.length,je=Le===i||r.isFunction(w);if(re)if(je){for(j in w)if(H.apply(w[j],re)===!1)break}else for(;Oe<Le&&H.apply(w[Oe++],re)!==!1;);else if(je){for(j in w)if(H.call(w[j],j,w[j])===!1)break}else for(;Oe<Le&&H.call(w[Oe],Oe,w[Oe++])!==!1;);return w},trim:ce?function(w){return w==null?"":ce.call(w)}:function(w){return w==null?"":(w+"").replace(g,"").replace(C,"")},makeArray:function(w,H){var re=H||[];if(w!=null){var j=r.type(w);w.length==null||j==="string"||j==="function"||j==="regexp"||r.isWindow(w)?ae.call(re,w):r.merge(re,w)}return re},inArray:function(w,H,re){var j;if(H){if(ft)return ft.call(H,w,re);for(j=H.length,re=re?re<0?Math.max(0,j+re):re:0;re<j;re++)if(re in H&&H[re]===w)return re}return-1},merge:function(w,H){var re=w.length,j=0;if(typeof H.length=="number")for(var Oe=H.length;j<Oe;j++)w[re++]=H[j];else for(;H[j]!==i;)w[re++]=H[j++];return w.length=re,w},grep:function(w,H,re){var j=[],Oe;re=!!re;for(var Le=0,je=w.length;Le<je;Le++)Oe=!!H(w[Le],Le),re!==Oe&&j.push(w[Le]);return j},map:function(w,H,re){var j,Oe,Le=[],je=0,ht=w.length,St=w instanceof r||ht!==i&&typeof ht=="number"&&(ht>0&&w[0]&&w[ht-1]||ht===0||r.isArray(w));if(St)for(;je<ht;je++)j=H(w[je],je,re),j!=null&&(Le[Le.length]=j);else for(Oe in w)j=H(w[Oe],Oe,re),j!=null&&(Le[Le.length]=j);return Le.concat.apply([],Le)},guid:1,proxy:function(w,H){if(typeof H=="string"){var re=w[H];H=w,w=re}if(!r.isFunction(w))return i;var j=ne.call(arguments,2),Oe=function(){return w.apply(H,j.concat(ne.call(arguments)))};return Oe.guid=w.guid=w.guid||Oe.guid||r.guid++,Oe},access:function(w,H,re,j,Oe,Le){var je=w.length;if(typeof H=="object"){for(var ht in H)r.access(w,ht,H[ht],j,Oe,re);return w}if(re!==i){j=!Le&&j&&r.isFunction(re);for(var St=0;St<je;St++)Oe(w[St],H,j?re.call(w[St],St,Oe(w[St],H)):re,Le);return w}return je?Oe(w[0],H):i},now:function(){return new Date().getTime()},uaMatch:function(w){w=w.toLowerCase();var H=me.exec(w)||Me.exec(w)||Ce.exec(w)||w.indexOf("compatible")<0&&it.exec(w)||[];return{browser:H[1]||"",version:H[2]||"0"}},sub:function(){function w(re,j){return new w.fn.init(re,j)}r.extend(!0,w,this),w.superclass=this,w.fn=w.prototype=this(),w.fn.constructor=w,w.sub=this.sub,w.fn.init=function(re,j){return j&&j instanceof r&&!(j instanceof w)&&(j=w(j)),r.fn.init.call(this,re,j,H)},w.fn.init.prototype=w.fn;var H=w(q);return w},browser:{}}),r.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(w,H){tt["[object "+H+"]"]=H.toLowerCase()}),R=r.uaMatch(x),R.browser&&(r.browser[R.browser]=!0,r.browser.version=R.version),r.browser.webkit&&(r.browser.safari=!0),v.test(" ")&&(g=/^[\s\xA0]+/,C=/[\s\xA0]+$/),c=r(q),q.addEventListener?I=function(){q.removeEventListener("DOMContentLoaded",I,!1),r.ready()}:q.attachEvent&&(I=function(){q.readyState==="complete"&&(q.detachEvent("onreadystatechange",I),r.ready())}),typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return r}),r}(),m={};n.Callbacks=function(t){t=t?m[t]||ke(t):{};var r=[],o=[],u,c,h,v,g,C=function(O){var F,W,K,me;for(F=0,W=O.length;F<W;F++)K=O[F],me=n.type(K),me==="array"?C(K):me==="function"&&(!t.unique||!E.has(K))&&r.push(K)},k=function(O,F){for(F=F||[],u=!t.memory||[O,F],c=!0,g=h||0,h=0,v=r.length;r&&g<v;g++)if(r[g].apply(O,F)===!1&&t.stopOnFalse){u=!0;break}c=!1,r&&(t.once?u===!0?E.disable():r=[]:o&&o.length&&(u=o.shift(),E.fireWith(u[0],u[1])))},E={add:function(){if(r){var O=r.length;C(arguments),c?v=r.length:u&&u!==!0&&(h=O,k(u[0],u[1]))}return this},remove:function(){if(r)for(var O=arguments,F=0,W=O.length;F<W;F++)for(var K=0;K<r.length&&!(O[F]===r[K]&&(c&&K<=v&&(v--,K<=g&&g--),r.splice(K--,1),t.unique));K++);return this},has:function(O){if(r){for(var F=0,W=r.length;F<W;F++)if(O===r[F])return!0}return!1},empty:function(){return r=[],this},disable:function(){return r=o=u=i,this},disabled:function(){return!r},lock:function(){return o=i,(!u||u===!0)&&E.disable(),this},locked:function(){return!o},fireWith:function(O,F){return o&&(c?t.once||o.push([O,F]):(!t.once||!u)&&k(O,F)),this},fire:function(){return E.fireWith(this,arguments),this},fired:function(){return!!u}};return E};var b=[].slice;n.extend({Deferred:function(t){var r=n.Callbacks("once memory"),o=n.Callbacks("once memory"),u=n.Callbacks("memory"),c="pending",h={resolve:r,reject:o,notify:u},v={done:r.add,fail:o.add,progress:u.add,state:function(){return c},isResolved:r.fired,isRejected:o.fired,then:function(k,E,O){return g.done(k).fail(E).progress(O),this},always:function(){return g.done.apply(g,arguments).fail.apply(g,arguments)},pipe:function(k,E,O){return n.Deferred(function(F){n.each({done:[k,"resolve"],fail:[E,"reject"],progress:[O,"notify"]},function(W,K){var me=K[0],Me=K[1],Ce;n.isFunction(me)?g[W](function(){Ce=me.apply(this,arguments),Ce&&n.isFunction(Ce.promise)?Ce.promise().then(F.resolve,F.reject,F.notify):F[Me+"With"](this===g?F:this,[Ce])}):g[W](F[Me])})}).promise()},promise:function(k){if(k==null)k=v;else for(var E in v)k[E]=v[E];return k}},g=v.promise({}),C;for(C in h)g[C]=h[C].fire,g[C+"With"]=h[C].fireWith;return g.done(function(){c="resolved"},o.disable,u.lock).fail(function(){c="rejected"},r.disable,u.lock),t&&t.call(g,g),g},when:function(t){function r(E){return function(O){v[E]=arguments.length>1?b.call(arguments,0):O,C.notifyWith(k,v)}}function o(E){return function(O){u[E]=arguments.length>1?b.call(arguments,0):O,--g||C.resolveWith(C,u)}}var u=b.call(arguments,0),c=0,h=u.length,v=Array(h),g=h,C=h<=1&&t&&n.isFunction(t.promise)?t:n.Deferred(),k=C.promise();if(h>1){for(;c<h;c++)u[c]&&u[c].promise&&n.isFunction(u[c].promise)?u[c].promise().then(o(c),C.reject,r(c)):--g;g||C.resolveWith(C,u)}else C!==t&&C.resolveWith(C,h?[t]:[]);return k}}),n.support=function(){var t=q.createElement("div"),r=q.documentElement,o,u,c,h,v,g,C,k,E,O,F,W,K,me,Me,Ce;if(t.setAttribute("className","t"),t.innerHTML=" <link/><table></table><a href='/a' style='top:1px;float:left;opacity:.55;'>a</a><input type='checkbox'/><nav></nav>",o=t.getElementsByTagName("*"),u=t.getElementsByTagName("a")[0],!o||!o.length||!u)return{};c=q.createElement("select"),h=c.appendChild(q.createElement("option")),v=t.getElementsByTagName("input")[0],C={leadingWhitespace:t.firstChild.nodeType===3,tbody:!t.getElementsByTagName("tbody").length,htmlSerialize:!!t.getElementsByTagName("link").length,style:/top/.test(u.getAttribute("style")),hrefNormalized:u.getAttribute("href")==="/a",opacity:/^0.55/.test(u.style.opacity),cssFloat:!!u.style.cssFloat,unknownElems:!!t.getElementsByTagName("nav").length,checkOn:v.value==="on",optSelected:h.selected,getSetAttribute:t.className!=="t",enctype:!!q.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},v.checked=!0,C.noCloneChecked=v.cloneNode(!0).checked,c.disabled=!0,C.optDisabled=!h.disabled;try{delete t.test}catch(it){C.deleteExpando=!1}!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){C.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),v=q.createElement("input"),v.value="t",v.setAttribute("type","radio"),C.radioValue=v.value==="t",v.setAttribute("checked","checked"),t.appendChild(v),k=q.createDocumentFragment(),k.appendChild(t.lastChild),C.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",E=q.getElementsByTagName("body")[0],F=q.createElement(E?"div":"body"),W={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},E&&n.extend(W,{position:"absolute",left:"-999px",top:"-999px"});for(Me in W)F.style[Me]=W[Me];if(F.appendChild(t),O=E||r,O.insertBefore(F,O.firstChild),C.appendChecked=v.checked,C.boxModel=t.offsetWidth===2,"zoom"in t.style&&(t.style.display="inline",t.style.zoom=1,C.inlineBlockNeedsLayout=t.offsetWidth===2,t.style.display="",t.innerHTML="<div style='width:4px;'></div>",C.shrinkWrapBlocks=t.offsetWidth!==2),t.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",K=t.getElementsByTagName("td"),Ce=K[0].offsetHeight===0,K[0].style.display="",K[1].style.display="none",C.reliableHiddenOffsets=Ce&&K[0].offsetHeight===0,t.innerHTML="",q.defaultView&&q.defaultView.getComputedStyle&&(g=q.createElement("div"),g.style.width="0",g.style.marginRight="0",t.appendChild(g),C.reliableMarginRight=(parseInt((q.defaultView.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(Me in{submit:1,change:1,focusin:1})me="on"+Me,Ce=me in t,Ce||(t.setAttribute(me,"return;"),Ce=typeof t[me]=="function"),C[Me+"Bubbles"]=Ce;return n(function(){var it,ot,xe,p,x,R=1,_="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",I="visibility:hidden;border:0;",z="style='"+_+"border:5px solid #000;padding:0;'",U="<div "+z+"><div></div></div><table "+z+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";E=q.getElementsByTagName("body")[0],!E||(it=q.createElement("div"),it.style.cssText=I+"width:0;height:0;position:static;top:0;margin-top:"+R+"px",E.insertBefore(it,E.firstChild),F=q.createElement("div"),F.style.cssText=_+I,F.innerHTML=U,it.appendChild(F),ot=F.firstChild,xe=ot.firstChild,p=ot.nextSibling.firstChild.firstChild,x={doesNotAddBorder:xe.offsetTop!==5,doesAddBorderForTableAndCells:p.offsetTop===5},xe.style.position="fixed",xe.style.top="20px",x.fixedPosition=xe.offsetTop===20||xe.offsetTop===15,xe.style.position=xe.style.top="",ot.style.overflow="hidden",ot.style.position="relative",x.subtractsBorderForOverflowNotVisible=xe.offsetTop===-5,x.doesNotIncludeMarginInBodyOffset=E.offsetTop!==R,E.removeChild(it),F=it=null,n.extend(C,x))}),F.innerHTML="",O.removeChild(F),F=k=c=h=E=g=t=v=null,C}(),n.boxModel=n.support.boxModel;var B=/^(?:\{.*\}|\[.*\])$/,oe=/([A-Z])/g;n.extend({cache:{},uuid:0,expando:"jQuery"+(n.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return t=t.nodeType?n.cache[t[n.expando]]:t[n.expando],!!t&&!Te(t)},data:function(t,r,o,u){if(n.acceptData(t)){var c,h,v;n.expando;var g=typeof r=="string",C=t.nodeType,k=C?n.cache:t,E=C?t[n.expando]:t[n.expando]&&n.expando,O=r==="events";return(!E||!k[E]||!O&&!u&&!k[E].data)&&g&&o===i?void 0:(E||(C?t[n.expando]=E=++n.uuid:E=n.expando),k[E]||(k[E]={},C||(k[E].toJSON=n.noop)),(typeof r=="object"||typeof r=="function")&&(u?k[E]=n.extend(k[E],r):k[E].data=n.extend(k[E].data,r)),c=h=k[E],u||(h.data||(h.data={}),h=h.data),o!==i&&(h[n.camelCase(r)]=o),O&&!h[r]?c.events:(g?(v=h[r],v==null&&(v=h[n.camelCase(r)])):v=h,v))}},removeData:function(t,r,o){if(n.acceptData(t)){var u,c,h;n.expando;var v=t.nodeType,g=v?n.cache:t,C=v?t[n.expando]:n.expando;if(!g[C])return;if(r&&(u=o?g[C]:g[C].data,u)){for(n.isArray(r)?r=r:(r in u)?r=[r]:(r=n.camelCase(r),r in u?r=[r]:r=r.split(" ")),c=0,h=r.length;c<h;c++)delete u[r[c]];if(!(o?Te:n.isEmptyObject)(u))return}if(!o&&(delete g[C].data,!Te(g[C])))return;n.support.deleteExpando||!g.setInterval?delete g[C]:g[C]=null,v&&(n.support.deleteExpando?delete t[n.expando]:t.removeAttribute?t.removeAttribute(n.expando):t[n.expando]=null)}},_data:function(t,r,o){return n.data(t,r,o,!0)},acceptData:function(t){if(t.nodeName){var r=n.noData[t.nodeName.toLowerCase()];if(r)return r!==!0&&t.getAttribute("classid")===r}return!0}}),n.fn.extend({data:function(t,r){var o,u,c,h=null;if(typeof t>"u"){if(this.length&&(h=n.data(this[0]),this[0].nodeType===1&&!n._data(this[0],"parsedAttrs"))){u=this[0].attributes;for(var v=0,g=u.length;v<g;v++)c=u[v].name,c.indexOf("data-")===0&&(c=n.camelCase(c.substring(5)),de(this[0],c,h[c]));n._data(this[0],"parsedAttrs",!0)}return h}return typeof t=="object"?this.each(function(){n.data(this,t)}):(o=t.split("."),o[1]=o[1]?"."+o[1]:"",r===i?(h=this.triggerHandler("getData"+o[1]+"!",[o[0]]),h===i&&this.length&&(h=n.data(this[0],t),h=de(this[0],t,h)),h===i&&o[1]?this.data(o[0]):h):this.each(function(){var C=n(this),k=[o[0],r];C.triggerHandler("setData"+o[1]+"!",k),n.data(this,t,r),C.triggerHandler("changeData"+o[1]+"!",k)}))},removeData:function(t){return this.each(function(){n.removeData(this,t)})}}),n.extend({_mark:function(t,r){t&&(r=(r||"fx")+"mark",n._data(t,r,(n._data(t,r)||0)+1))},_unmark:function(t,r,o){if(t!==!0&&(o=r,r=t,t=!1),r){o=o||"fx";var u=o+"mark",c=t?0:(n._data(r,u)||1)-1;c?n._data(r,u,c):(n.removeData(r,u,!0),Be(r,o,"mark"))}},queue:function(t,r,o){var u;if(t)return r=(r||"fx")+"queue",u=n._data(t,r),o&&(!u||n.isArray(o)?u=n._data(t,r,n.makeArray(o)):u.push(o)),u||[]},dequeue:function(t,r){r=r||"fx";var o=n.queue(t,r),u=o.shift(),c={};u==="inprogress"&&(u=o.shift()),u&&(r==="fx"&&o.unshift("inprogress"),n._data(t,r+".run",c),u.call(t,function(){n.dequeue(t,r)},c)),o.length||(n.removeData(t,r+"queue "+r+".run",!0),Be(t,r,"queue"))}}),n.fn.extend({queue:function(t,r){return typeof t!="string"&&(r=t,t="fx"),r===i?n.queue(this[0],t):this.each(function(){var o=n.queue(this,t,r);t==="fx"&&o[0]!=="inprogress"&&n.dequeue(this,t)})},dequeue:function(t){return this.each(function(){n.dequeue(this,t)})},delay:function(t,r){return t=n.fx&&n.fx.speeds[t]||t,r=r||"fx",this.queue(r,function(o,u){var c=setTimeout(o,t);u.stop=function(){clearTimeout(c)}})},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,r){function o(){--v||u.resolveWith(c,[c])}typeof t!="string"&&(t=i),t=t||"fx";for(var u=n.Deferred(),c=this,h=c.length,v=1,g=t+"defer",C=t+"queue",k=t+"mark",E;h--;)(E=n.data(c[h],g,i,!0)||(n.data(c[h],C,i,!0)||n.data(c[h],k,i,!0))&&n.data(c[h],g,n.Callbacks("once memory"),!0))&&(v++,E.add(o));return o(),u.promise()}});var Q=/[\n\t\r]/g,he=/\s+/,Re=/\r/g,De=/^(?:button|input)$/i,Ie=/^(?:button|input|object|select|textarea)$/i,lt=/^a(?:rea)?$/i,nt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,He=n.support.getSetAttribute,G,ge,le;n.fn.extend({attr:function(t,r){return n.access(this,t,r,!0,n.attr)},removeAttr:function(t){return this.each(function(){n.removeAttr(this,t)})},prop:function(t,r){return n.access(this,t,r,!0,n.prop)},removeProp:function(t){return t=n.propFix[t]||t,this.each(function(){try{this[t]=i,delete this[t]}catch(r){}})},addClass:function(t){var r,o,u,c,h,v,g;if(n.isFunction(t))return this.each(function(C){n(this).addClass(t.call(this,C,this.className))});if(t&&typeof t=="string"){for(r=t.split(he),o=0,u=this.length;o<u;o++)if(c=this[o],c.nodeType===1)if(!c.className&&r.length===1)c.className=t;else{for(h=" "+c.className+" ",v=0,g=r.length;v<g;v++)~h.indexOf(" "+r[v]+" ")||(h+=r[v]+" ");c.className=n.trim(h)}}return this},removeClass:function(t){var r,o,u,c,h,v,g;if(n.isFunction(t))return this.each(function(C){n(this).removeClass(t.call(this,C,this.className))});if(t&&typeof t=="string"||t===i){for(r=(t||"").split(he),o=0,u=this.length;o<u;o++)if(c=this[o],c.nodeType===1&&c.className)if(t){for(h=(" "+c.className+" ").replace(Q," "),v=0,g=r.length;v<g;v++)h=h.replace(" "+r[v]+" "," ");c.className=n.trim(h)}else c.className=""}return this},toggleClass:function(t,r){var o=typeof t,u=typeof r=="boolean";return n.isFunction(t)?this.each(function(c){n(this).toggleClass(t.call(this,c,this.className,r),r)}):this.each(function(){if(o==="string")for(var c,h=0,v=n(this),g=r,C=t.split(he);c=C[h++];)g=u?g:!v.hasClass(c),v[g?"addClass":"removeClass"](c);else(o==="undefined"||o==="boolean")&&(this.className&&n._data(this,"__className__",this.className),this.className=this.className||t===!1?"":n._data(this,"__className__")||"")})},hasClass:function(t){for(var r=" "+t+" ",o=0,u=this.length;o<u;o++)if(this[o].nodeType===1&&(" "+this[o].className+" ").replace(Q," ").indexOf(r)>-1)return!0;return!1},val:function(t){var r,o,u,c=this[0];return arguments.length?(u=n.isFunction(t),this.each(function(h){var v=n(this),g;this.nodeType===1&&(u?g=t.call(this,h,v.val()):g=t,g==null?g="":typeof g=="number"?g+="":n.isArray(g)&&(g=n.map(g,function(C){return C==null?"":C+""})),r=n.valHooks[this.nodeName.toLowerCase()]||n.valHooks[this.type],(!r||!("set"in r)||r.set(this,g,"value")===i)&&(this.value=g))})):c?(r=n.valHooks[c.nodeName.toLowerCase()]||n.valHooks[c.type],r&&"get"in r&&(o=r.get(c,"value"))!==i?o:(o=c.value,typeof o=="string"?o.replace(Re,""):o==null?"":o)):i}}),n.extend({valHooks:{option:{get:function(t){var r=t.attributes.value;return!r||r.specified?t.value:t.text}},select:{get:function(t){var r,o,u,c,h=t.selectedIndex,v=[],g=t.options,C=t.type==="select-one";if(h<0)return null;for(o=C?h:0,u=C?h+1:g.length;o<u;o++)if(c=g[o],c.selected&&(n.support.optDisabled?!c.disabled:c.getAttribute("disabled")===null)&&(!c.parentNode.disabled||!n.nodeName(c.parentNode,"optgroup"))){if(r=n(c).val(),C)return r;v.push(r)}return C&&!v.length&&g.length?n(g[h]).val():v},set:function(t,r){var o=n.makeArray(r);return n(t).find("option").each(function(){this.selected=n.inArray(n(this).val(),o)>=0}),o.length||(t.selectedIndex=-1),o}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,r,o,u){var c,h,v,g=t.nodeType;return!t||g===3||g===8||g===2?i:u&&r in n.attrFn?n(t)[r](o):"getAttribute"in t?(v=g!==1||!n.isXMLDoc(t),v&&(r=r.toLowerCase(),h=n.attrHooks[r]||(nt.test(r)?ge:G)),o!==i?o===null?(n.removeAttr(t,r),i):h&&"set"in h&&v&&(c=h.set(t,o,r))!==i?c:(t.setAttribute(r,""+o),o):h&&"get"in h&&v&&(c=h.get(t,r))!==null?c:(c=t.getAttribute(r),c===null?i:c)):n.prop(t,r,o)},removeAttr:function(t,r){var o,u,c,h,v=0;if(t.nodeType===1)for(u=(r||"").split(he),h=u.length;v<h;v++)c=u[v].toLowerCase(),o=n.propFix[c]||c,n.attr(t,c,""),t.removeAttribute(He?c:o),nt.test(c)&&o in t&&(t[o]=!1)},attrHooks:{type:{set:function(t,r){if(De.test(t.nodeName)&&t.parentNode)n.error("type property can't be changed");else if(!n.support.radioValue&&r==="radio"&&n.nodeName(t,"input")){var o=t.value;return t.setAttribute("type",r),o&&(t.value=o),r}}},value:{get:function(t,r){return G&&n.nodeName(t,"button")?G.get(t,r):r in t?t.value:null},set:function(t,r,o){if(G&&n.nodeName(t,"button"))return G.set(t,r,o);t.value=r}}},propFix:{tabindex:"tabIndex",readonly:"readOnly",for:"htmlFor",class:"className",maxlength:"maxLength",cellspacing:"cellSpacing",cellpadding:"cellPadding",rowspan:"rowSpan",colspan:"colSpan",usemap:"useMap",frameborder:"frameBorder",contenteditable:"contentEditable"},prop:function(t,r,o){var u,c,h,v=t.nodeType;return!t||v===3||v===8||v===2?i:(h=v!==1||!n.isXMLDoc(t),h&&(r=n.propFix[r]||r,c=n.propHooks[r]),o!==i?c&&"set"in c&&(u=c.set(t,o,r))!==i?u:t[r]=o:c&&"get"in c&&(u=c.get(t,r))!==null?u:t[r])},propHooks:{tabIndex:{get:function(t){var r=t.getAttributeNode("tabindex");return r&&r.specified?parseInt(r.value,10):Ie.test(t.nodeName)||lt.test(t.nodeName)&&t.href?0:i}}}}),n.attrHooks.tabindex=n.propHooks.tabIndex,ge={get:function(t,r){var o,u=n.prop(t,r);return u===!0||typeof u!="boolean"&&(o=t.getAttributeNode(r))&&o.nodeValue!==!1?r.toLowerCase():i},set:function(t,r,o){var u;return r===!1?n.removeAttr(t,o):(u=n.propFix[o]||o,u in t&&(t[u]=!0),t.setAttribute(o,o.toLowerCase())),o}},He||(le={name:!0,id:!0},G=n.valHooks.button={get:function(t,r){var o;return o=t.getAttributeNode(r),o&&(le[r]?o.nodeValue!=="":o.specified)?o.nodeValue:i},set:function(t,r,o){var u=t.getAttributeNode(o);return u||(u=q.createAttribute(o),t.setAttributeNode(u)),u.nodeValue=r+""}},n.attrHooks.tabindex.set=G.set,n.each(["width","height"],function(t,r){n.attrHooks[r]=n.extend(n.attrHooks[r],{set:function(o,u){if(u==="")return o.setAttribute(r,"auto"),u}})}),n.attrHooks.contenteditable={get:G.get,set:function(t,r,o){r===""&&(r="false"),G.set(t,r,o)}}),n.support.hrefNormalized||n.each(["href","src","width","height"],function(t,r){n.attrHooks[r]=n.extend(n.attrHooks[r],{get:function(o){var u=o.getAttribute(r,2);return u===null?i:u}})}),n.support.style||(n.attrHooks.style={get:function(t){return t.style.cssText.toLowerCase()||i},set:function(t,r){return t.style.cssText=""+r}}),n.support.optSelected||(n.propHooks.selected=n.extend(n.propHooks.selected,{get:function(t){var r=t.parentNode;return r&&(r.selectedIndex,r.parentNode&&r.parentNode.selectedIndex),null}})),n.support.enctype||(n.propFix.enctype="encoding"),n.support.checkOn||n.each(["radio","checkbox"],function(){n.valHooks[this]={get:function(t){return t.getAttribute("value")===null?"on":t.value}}}),n.each(["radio","checkbox"],function(){n.valHooks[this]=n.extend(n.valHooks[this],{set:function(t,r){if(n.isArray(r))return t.checked=n.inArray(n(t).val(),r)>=0}})});var Ee=/^(?:textarea|input|select)$/i,Ne=/^([^\.]*)?(?:\.(.+))?$/,Xe=/\bhover(\.\S+)?/,Ye=/^key/,rt=/^(?:mouse|contextmenu)|click/,et=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Pt=function(t){var r=et.exec(t);return r&&(r[1]=(r[1]||"").toLowerCase(),r[3]=r[3]&&new RegExp("(?:^|\\s)"+r[3]+"(?:\\s|$)")),r},rn=function(t,r){return(!r[1]||t.nodeName.toLowerCase()===r[1])&&(!r[2]||t.id===r[2])&&(!r[3]||r[3].test(t.className))},pt=function(t){return n.event.special.hover?t:t.replace(Xe,"mouseenter$1 mouseleave$1")};n.event={add:function(t,r,o,u,c){var h,v,g,C,k,E,O,F,W,K,me;if(!(t.nodeType===3||t.nodeType===8||!r||!o||!(h=n._data(t)))){for(o.handler&&(W=o,o=W.handler),o.guid||(o.guid=n.guid++),g=h.events,g||(h.events=g={}),v=h.handle,v||(h.handle=v=function(Me){return typeof n<"u"&&(!Me||n.event.triggered!==Me.type)?n.event.dispatch.apply(v.elem,arguments):i},v.elem=t),r=pt(r).split(" "),C=0;C<r.length;C++)k=Ne.exec(r[C])||[],E=k[1],O=(k[2]||"").split(".").sort(),me=n.event.special[E]||{},E=(c?me.delegateType:me.bindType)||E,me=n.event.special[E]||{},F=n.extend({type:E,origType:k[1],data:u,handler:o,guid:o.guid,selector:c,namespace:O.join(".")},W),c&&(F.quick=Pt(c),!F.quick&&n.expr.match.POS.test(c)&&(F.isPositional=!0)),K=g[E],K||(K=g[E]=[],K.delegateCount=0,(!me.setup||me.setup.call(t,u,O,v)===!1)&&(t.addEventListener?t.addEventListener(E,v,!1):t.attachEvent&&t.attachEvent("on"+E,v))),me.add&&(me.add.call(t,F),F.handler.guid||(F.handler.guid=o.guid)),c?K.splice(K.delegateCount++,0,F):K.push(F),n.event.global[E]=!0;t=null}},global:{},remove:function(t,r,o,u){var c=n.hasData(t)&&n._data(t),h,v,g,C,k,E,O,F,W,K,me;if(c&&(O=c.events)){for(r=pt(r||"").split(" "),h=0;h<r.length;h++){if(v=Ne.exec(r[h])||[],g=v[1],C=v[2],!g){C=C?"."+C:"";for(E in O)n.event.remove(t,E+C,o,u);return}if(F=n.event.special[g]||{},g=(u?F.delegateType:F.bindType)||g,K=O[g]||[],k=K.length,C=C?new RegExp("(^|\\.)"+C.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o||C||u||F.remove)for(E=0;E<K.length;E++)me=K[E],(!o||o.guid===me.guid)&&(!C||C.test(me.namespace))&&(!u||u===me.selector||u==="**"&&me.selector)&&(K.splice(E--,1),me.selector&&K.delegateCount--,F.remove&&F.remove.call(t,me));else K.length=0;K.length===0&&k!==K.length&&((!F.teardown||F.teardown.call(t,C)===!1)&&n.removeEvent(t,g,c.handle),delete O[g])}n.isEmptyObject(O)&&(W=c.handle,W&&(W.elem=null),n.removeData(t,["events","handle"],!0))}},customEvent:{getData:!0,setData:!0,changeData:!0},trigger:function(t,r,o,u){if(!o||o.nodeType!==3&&o.nodeType!==8){var c=t.type||t,h=[],v,g,C,k,E,O,F,W,K,me;if(c.indexOf("!")>=0&&(c=c.slice(0,-1),g=!0),c.indexOf(".")>=0&&(h=c.split("."),c=h.shift(),h.sort()),(!o||n.event.customEvent[c])&&!n.event.global[c])return;if(t=typeof t=="object"?t[n.expando]?t:new n.Event(c,t):new n.Event(c),t.type=c,t.isTrigger=!0,t.exclusive=g,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,O=c.indexOf(":")<0?"on"+c:"",(u||!o)&&t.preventDefault(),!o){v=n.cache;for(C in v)v[C].events&&v[C].events[c]&&n.event.trigger(t,r,v[C].handle.elem,!0);return}if(t.result=i,t.target||(t.target=o),r=r!=null?n.makeArray(r):[],r.unshift(t),F=n.event.special[c]||{},F.trigger&&F.trigger.apply(o,r)===!1)return;if(K=[[o,F.bindType||c]],!u&&!F.noBubble&&!n.isWindow(o)){for(me=F.delegateType||c,E=null,k=o.parentNode;k;k=k.parentNode)K.push([k,me]),E=k;E&&E===o.ownerDocument&&K.push([E.defaultView||E.parentWindow||e,me])}for(C=0;C<K.length&&(k=K[C][0],t.type=K[C][1],W=(n._data(k,"events")||{})[t.type]&&n._data(k,"handle"),W&&W.apply(k,r),W=O&&k[O],W&&n.acceptData(k)&&W.apply(k,r),!t.isPropagationStopped());C++);return t.type=c,t.isDefaultPrevented()||(!F._default||F._default.apply(o.ownerDocument,r)===!1)&&(c!=="click"||!n.nodeName(o,"a"))&&n.acceptData(o)&&O&&o[c]&&(c!=="focus"&&c!=="blur"||t.target.offsetWidth!==0)&&!n.isWindow(o)&&(E=o[O],E&&(o[O]=null),n.event.triggered=c,o[c](),n.event.triggered=i,E&&(o[O]=E)),t.result}},dispatch:function(t){t=n.event.fix(t||e.event);var r=(n._data(this,"events")||{})[t.type]||[],o=r.delegateCount,u=[].slice.call(arguments,0),c=!t.exclusive&&!t.namespace,h=(n.event.special[t.type]||{}).handle,v=[],g,C,k,E,O,F,W,K,me,Me;if(u[0]=t,t.delegateTarget=this,o&&!t.target.disabled&&(!t.button||t.type!=="click"))for(k=t.target;k!=this;k=k.parentNode||this){for(O={},W=[],g=0;g<o;g++)K=r[g],me=K.selector,Me=O[me],K.isPositional?Me=(Me||(O[me]=n(me))).index(k)>=0:Me===i&&(Me=O[me]=K.quick?rn(k,K.quick):n(k).is(me)),Me&&W.push(K);W.length&&v.push({elem:k,matches:W})}for(r.length>o&&v.push({elem:this,matches:r.slice(o)}),g=0;g<v.length&&!t.isPropagationStopped();g++)for(F=v[g],t.currentTarget=F.elem,C=0;C<F.matches.length&&!t.isImmediatePropagationStopped();C++)K=F.matches[C],(c||!t.namespace&&!K.namespace||t.namespace_re&&t.namespace_re.test(K.namespace))&&(t.data=K.data,t.handleObj=K,E=(h||K.handler).apply(F.elem,u),E!==i&&(t.result=E,E===!1&&(t.preventDefault(),t.stopPropagation())));return t.result},props:"attrChange attrName relatedNode srcElement altKey bubbles cancelable ctrlKey currentTarget eventPhase metaKey relatedTarget shiftKey target timeStamp view which".split(" "),fixHooks:{},keyHooks:{props:"char charCode key keyCode".split(" "),filter:function(t,r){return t.which==null&&(t.which=r.charCode!=null?r.charCode:r.keyCode),t}},mouseHooks:{props:"button buttons clientX clientY fromElement offsetX offsetY pageX pageY screenX screenY toElement wheelDelta".split(" "),filter:function(t,r){var o,u,c,h=r.button,v=r.fromElement;return t.pageX==null&&r.clientX!=null&&(o=t.target.ownerDocument||q,u=o.documentElement,c=o.body,t.pageX=r.clientX+(u&&u.scrollLeft||c&&c.scrollLeft||0)-(u&&u.clientLeft||c&&c.clientLeft||0),t.pageY=r.clientY+(u&&u.scrollTop||c&&c.scrollTop||0)-(u&&u.clientTop||c&&c.clientTop||0)),!t.relatedTarget&&v&&(t.relatedTarget=v===t.target?r.toElement:v),!t.which&&h!==i&&(t.which=h&1?1:h&2?3:h&4?2:0),t}},fix:function(t){if(t[n.expando])return t;var r,o,u=t,c=n.event.fixHooks[t.type]||{},h=c.props?this.props.concat(c.props):this.props;for(t=n.Event(u),r=h.length;r;)o=h[--r],t[o]=u[o];return t.target||(t.target=u.srcElement||q),t.target.nodeType===3&&(t.target=t.target.parentNode),t.metaKey===i&&(t.metaKey=t.ctrlKey),c.filter?c.filter(t,u):t},special:{ready:{setup:n.bindReady},focus:{delegateType:"focusin",noBubble:!0},blur:{delegateType:"focusout",noBubble:!0},beforeunload:{setup:function(t,r,o){n.isWindow(this)&&(this.onbeforeunload=o)},teardown:function(t,r){this.onbeforeunload===r&&(this.onbeforeunload=null)}}},simulate:function(t,r,o,u){var c=n.extend(new n.Event,o,{type:t,isSimulated:!0,originalEvent:{}});u?n.event.trigger(c,null,r):n.event.dispatch.call(r,c),c.isDefaultPrevented()&&o.preventDefault()}},n.event.handle=n.event.dispatch,n.removeEvent=q.removeEventListener?function(t,r,o){t.removeEventListener&&t.removeEventListener(r,o,!1)}:function(t,r,o){t.detachEvent&&t.detachEvent("on"+r,o)},n.Event=function(t,r){if(!(this instanceof n.Event))return new n.Event(t,r);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||t.returnValue===!1||t.getPreventDefault&&t.getPreventDefault()?be:Pe):this.type=t,r&&n.extend(this,r),this.timeStamp=t&&t.timeStamp||n.now(),this[n.expando]=!0},n.Event.prototype={preventDefault:function(){this.isDefaultPrevented=be;var t=this.originalEvent;!t||(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=be;var t=this.originalEvent;!t||(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=be,this.stopPropagation()},isDefaultPrevented:Pe,isPropagationStopped:Pe,isImmediatePropagationStopped:Pe},n.each({mouseenter:"mouseover",mouseleave:"mouseout"},function(t,r){n.event.special[t]=n.event.special[r]={delegateType:r,bindType:r,handle:function(o){var u=this,c=o.relatedTarget,h=o.handleObj;h.selector;var v,g;return(!c||h.origType===o.type||c!==u&&!n.contains(u,c))&&(v=o.type,o.type=h.origType,g=h.handler.apply(this,arguments),o.type=v),g}}}),n.support.submitBubbles||(n.event.special.submit={setup:function(){if(n.nodeName(this,"form"))return!1;n.event.add(this,"click._submit keypress._submit",function(t){var r=t.target,o=n.nodeName(r,"input")||n.nodeName(r,"button")?r.form:i;o&&!o._submit_attached&&(n.event.add(o,"submit._submit",function(u){this.parentNode&&n.event.simulate("submit",this.parentNode,u,!0)}),o._submit_attached=!0)})},teardown:function(){if(n.nodeName(this,"form"))return!1;n.event.remove(this,"._submit")}}),n.support.changeBubbles||(n.event.special.change={setup:function(){if(Ee.test(this.nodeName))return(this.type==="checkbox"||this.type==="radio")&&(n.event.add(this,"propertychange._change",function(t){t.originalEvent.propertyName==="checked"&&(this._just_changed=!0)}),n.event.add(this,"click._change",function(t){this._just_changed&&(this._just_changed=!1,n.event.simulate("change",this,t,!0))})),!1;n.event.add(this,"beforeactivate._change",function(t){var r=t.target;Ee.test(r.nodeName)&&!r._change_attached&&(n.event.add(r,"change._change",function(o){this.parentNode&&!o.isSimulated&&n.event.simulate("change",this.parentNode,o,!0)}),r._change_attached=!0)})},handle:function(t){var r=t.target;if(this!==r||t.isSimulated||t.isTrigger||r.type!=="radio"&&r.type!=="checkbox")return t.handleObj.handler.apply(this,arguments)},teardown:function(){return n.event.remove(this,"._change"),Ee.test(this.nodeName)}}),n.support.focusinBubbles||n.each({focus:"focusin",blur:"focusout"},function(t,r){var o=0,u=function(c){n.event.simulate(r,c.target,n.event.fix(c),!0)};n.event.special[r]={setup:function(){o++===0&&q.addEventListener(t,u,!0)},teardown:function(){--o===0&&q.removeEventListener(t,u,!0)}}}),n.fn.extend({on:function(t,r,o,u,c){var h,v;if(typeof t=="object"){typeof r!="string"&&(o=r,r=i);for(v in t)this.on(v,r,o,t[v],c);return this}if(o==null&&u==null?(u=r,o=r=i):u==null&&(typeof r=="string"?(u=o,o=i):(u=o,o=r,r=i)),u===!1)u=Pe;else if(!u)return this;return c===1&&(h=u,u=function(g){return n().off(g),h.apply(this,arguments)},u.guid=h.guid||(h.guid=n.guid++)),this.each(function(){n.event.add(this,t,u,o,r)})},one:function(t,r,o,u){return this.on.call(this,t,r,o,u,1)},off:function(t,r,o){if(t&&t.preventDefault&&t.handleObj){var u=t.handleObj;return n(t.delegateTarget).off(u.namespace?u.type+"."+u.namespace:u.type,u.selector,u.handler),this}if(typeof t=="object"){for(var c in t)this.off(c,r,t[c]);return this}return(r===!1||typeof r=="function")&&(o=r,r=i),o===!1&&(o=Pe),this.each(function(){n.event.remove(this,t,o,r)})},bind:function(t,r,o){return this.on(t,null,r,o)},unbind:function(t,r){return this.off(t,null,r)},live:function(t,r,o){return n(this.context).on(t,this.selector,r,o),this},die:function(t,r){return n(this.context).off(t,this.selector||"**",r),this},delegate:function(t,r,o,u){return this.on(r,t,o,u)},undelegate:function(t,r,o){return arguments.length==1?this.off(t,"**"):this.off(r,t,o)},trigger:function(t,r){return this.each(function(){n.event.trigger(t,r,this)})},triggerHandler:function(t,r){if(this[0])return n.event.trigger(t,r,this[0],!0)},toggle:function(t){var r=arguments,o=t.guid||n.guid++,u=0,c=function(h){var v=(n._data(this,"lastToggle"+t.guid)||0)%u;return n._data(this,"lastToggle"+t.guid,v+1),h.preventDefault(),r[v].apply(this,arguments)||!1};for(c.guid=o;u<r.length;)r[u++].guid=o;return this.click(c)},hover:function(t,r){return this.mouseenter(t).mouseleave(r||t)}}),n.each("blur focus focusin focusout load resize scroll unload click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup error contextmenu".split(" "),function(t,r){n.fn[r]=function(o,u){return u==null&&(u=o,o=null),arguments.length>0?this.bind(r,o,u):this.trigger(r)},n.attrFn&&(n.attrFn[r]=!0),Ye.test(r)&&(n.event.fixHooks[r]=n.event.keyHooks),rt.test(r)&&(n.event.fixHooks[r]=n.event.mouseHooks)}),function(){function t(p,x,R,_,I,z){for(var U=0,ae=_.length;U<ae;U++){var ne=_[U];if(ne){var ce=!1;for(ne=ne[p];ne;){if(ne[u]===R){ce=_[ne.sizset];break}if(ne.nodeType===1){if(z||(ne[u]=R,ne.sizset=U),typeof x!="string"){if(ne===x){ce=!0;break}}else if(O.filter(x,[ne]).length>0){ce=ne;break}}ne=ne[p]}_[U]=ce}}}function r(p,x,R,_,I,z){for(var U=0,ae=_.length;U<ae;U++){var ne=_[U];if(ne){var ce=!1;for(ne=ne[p];ne;){if(ne[u]===R){ce=_[ne.sizset];break}if(ne.nodeType===1&&!z&&(ne[u]=R,ne.sizset=U),ne.nodeName.toLowerCase()===x){ce=ne;break}ne=ne[p]}_[U]=ce}}}var o=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,u="sizcache"+(Math.random()+"").replace(".",""),c=0,h=Object.prototype.toString,v=!1,g=!0,C=/\\/g,k=/\r\n/g,E=/\W/;[0,0].sort(function(){return g=!1,0});var O=function(p,x,R,_){R=R||[],x=x||q;var I=x;if(x.nodeType!==1&&x.nodeType!==9)return[];if(!p||typeof p!="string")return R;var z,U,ae,ne,ce,ft,tt,w,H=!0,re=O.isXML(x),j=[],Oe=p;do if(o.exec(""),z=o.exec(Oe),z&&(Oe=z[3],j.push(z[1]),z[2])){ne=z[3];break}while(z);if(j.length>1&&K.exec(p))if(j.length===2&&W.relative[j[0]])U=xe(j[0]+j[1],x,_);else for(U=W.relative[j[0]]?[x]:O(j.shift(),x);j.length;)p=j.shift(),W.relative[p]&&(p+=j.shift()),U=xe(p,U,_);else if(!_&&j.length>1&&x.nodeType===9&&!re&&W.match.ID.test(j[0])&&!W.match.ID.test(j[j.length-1])&&(ce=O.find(j.shift(),x,re),x=ce.expr?O.filter(ce.expr,ce.set)[0]:ce.set[0]),x)for(ce=_?{expr:j.pop(),set:Ce(_)}:O.find(j.pop(),j.length===1&&(j[0]==="~"||j[0]==="+")&&x.parentNode?x.parentNode:x,re),U=ce.expr?O.filter(ce.expr,ce.set):ce.set,j.length>0?ae=Ce(U):H=!1;j.length;)ft=j.pop(),tt=ft,W.relative[ft]?tt=j.pop():ft="",tt==null&&(tt=x),W.relative[ft](ae,tt,re);else ae=j=[];if(ae||(ae=U),ae||O.error(ft||p),h.call(ae)==="[object Array]")if(!H)R.push.apply(R,ae);else if(x&&x.nodeType===1)for(w=0;ae[w]!=null;w++)ae[w]&&(ae[w]===!0||ae[w].nodeType===1&&O.contains(x,ae[w]))&&R.push(U[w]);else for(w=0;ae[w]!=null;w++)ae[w]&&ae[w].nodeType===1&&R.push(U[w]);else Ce(ae,R);return ne&&(O(ne,I,R,_),O.uniqueSort(R)),R};O.uniqueSort=function(p){if(it&&(v=g,p.sort(it),v))for(var x=1;x<p.length;x++)p[x]===p[x-1]&&p.splice(x--,1);return p},O.matches=function(p,x){return O(p,null,null,x)},O.matchesSelector=function(p,x){return O(x,null,null,[p]).length>0},O.find=function(p,x,R){var _,I,z,U,ae,ne;if(!p)return[];for(I=0,z=W.order.length;I<z;I++)if(ae=W.order[I],(U=W.leftMatch[ae].exec(p))&&(ne=U[1],U.splice(1,1),ne.substr(ne.length-1)!=="\\"&&(U[1]=(U[1]||"").replace(C,""),_=W.find[ae](U,x,R),_!=null))){p=p.replace(W.match[ae],"");break}return _||(_=typeof x.getElementsByTagName<"u"?x.getElementsByTagName("*"):[]),{set:_,expr:p}},O.filter=function(p,x,R,_){for(var I,z,U,ae,ne,ce,ft,tt,w,H=p,re=[],j=x,Oe=x&&x[0]&&O.isXML(x[0]);p&&x.length;){for(U in W.filter)if((I=W.leftMatch[U].exec(p))!=null&&I[2]){if(ce=W.filter[U],ft=I[1],z=!1,I.splice(1,1),ft.substr(ft.length-1)==="\\")continue;if(j===re&&(re=[]),W.preFilter[U]){if(I=W.preFilter[U](I,j,R,re,_,Oe),!I)z=ae=!0;else if(I===!0)continue}if(I)for(tt=0;(ne=j[tt])!=null;tt++)ne&&(ae=ce(ne,I,tt,j),w=_^ae,R&&ae!=null?w?z=!0:j[tt]=!1:w&&(re.push(ne),z=!0));if(ae!==i){if(R||(j=re),p=p.replace(W.match[U],""),!z)return[];break}}if(p===H)if(z==null)O.error(p);else break;H=p}return j},O.error=function(p){throw"Syntax error, unrecognized expression: "+p};var F=O.getText=function(p){var x,R,_=p.nodeType,I="";if(_){if(_===1){if(typeof p.textContent=="string")return p.textContent;if(typeof p.innerText=="string")return p.innerText.replace(k,"");for(p=p.firstChild;p;p=p.nextSibling)I+=F(p)}else if(_===3||_===4)return p.nodeValue}else for(x=0;R=p[x];x++)R.nodeType!==8&&(I+=F(R));return I},W=O.selectors={order:["ID","NAME","TAG"],match:{ID:/#((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,CLASS:/\.((?:[\w\u00c0-\uFFFF\-]|\\.)+)/,NAME:/\[name=['"]*((?:[\w\u00c0-\uFFFF\-]|\\.)+)['"]*\]/,ATTR:/\[\s*((?:[\w\u00c0-\uFFFF\-]|\\.)+)\s*(?:(\S?=)\s*(?:(['"])(.*?)\3|(#?(?:[\w\u00c0-\uFFFF\-]|\\.)*)|)|)\s*\]/,TAG:/^((?:[\w\u00c0-\uFFFF\*\-]|\\.)+)/,CHILD:/:(only|nth|last|first)-child(?:\(\s*(even|odd|(?:[+\-]?\d+|(?:[+\-]?\d*)?n\s*(?:[+\-]\s*\d+)?))\s*\))?/,POS:/:(nth|eq|gt|lt|first|last|even|odd)(?:\((\d*)\))?(?=[^\-]|$)/,PSEUDO:/:((?:[\w\u00c0-\uFFFF\-]|\\.)+)(?:\((['"]?)((?:\([^\)]+\)|[^\(\)]*)+)\2\))?/},leftMatch:{},attrMap:{class:"className",for:"htmlFor"},attrHandle:{href:function(p){return p.getAttribute("href")},type:function(p){return p.getAttribute("type")}},relative:{"+":function(p,x){var R=typeof x=="string",_=R&&!E.test(x),I=R&&!_;_&&(x=x.toLowerCase());for(var z=0,U=p.length,ae;z<U;z++)if(ae=p[z]){for(;(ae=ae.previousSibling)&&ae.nodeType!==1;);p[z]=I||ae&&ae.nodeName.toLowerCase()===x?ae||!1:ae===x}I&&O.filter(x,p,!0)},">":function(p,x){var R,_=typeof x=="string",I=0,z=p.length;if(_&&!E.test(x)){for(x=x.toLowerCase();I<z;I++)if(R=p[I],R){var U=R.parentNode;p[I]=U.nodeName.toLowerCase()===x?U:!1}}else{for(;I<z;I++)R=p[I],R&&(p[I]=_?R.parentNode:R.parentNode===x);_&&O.filter(x,p,!0)}},"":function(p,x,R){var _,I=c++,z=t;typeof x=="string"&&!E.test(x)&&(x=x.toLowerCase(),_=x,z=r),z("parentNode",x,I,p,_,R)},"~":function(p,x,R){var _,I=c++,z=t;typeof x=="string"&&!E.test(x)&&(x=x.toLowerCase(),_=x,z=r),z("previousSibling",x,I,p,_,R)}},find:{ID:function(p,x,R){if(typeof x.getElementById<"u"&&!R){var _=x.getElementById(p[1]);return _&&_.parentNode?[_]:[]}},NAME:function(p,x){if(typeof x.getElementsByName<"u"){for(var R=[],_=x.getElementsByName(p[1]),I=0,z=_.length;I<z;I++)_[I].getAttribute("name")===p[1]&&R.push(_[I]);return R.length===0?null:R}},TAG:function(p,x){if(typeof x.getElementsByTagName<"u")return x.getElementsByTagName(p[1])}},preFilter:{CLASS:function(p,x,R,_,I,z){if(p=" "+p[1].replace(C,"")+" ",z)return p;for(var U=0,ae;(ae=x[U])!=null;U++)ae&&(I^(ae.className&&(" "+ae.className+" ").replace(/[\t\n\r]/g," ").indexOf(p)>=0)?R||_.push(ae):R&&(x[U]=!1));return!1},ID:function(p){return p[1].replace(C,"")},TAG:function(p,x){return p[1].replace(C,"").toLowerCase()},CHILD:function(p){if(p[1]==="nth"){p[2]||O.error(p[0]),p[2]=p[2].replace(/^\+|\s*/g,"");var x=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(p[2]==="even"&&"2n"||p[2]==="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);p[2]=x[1]+(x[2]||1)-0,p[3]=x[3]-0}else p[2]&&O.error(p[0]);return p[0]=c++,p},ATTR:function(p,x,R,_,I,z){var U=p[1]=p[1].replace(C,"");return!z&&W.attrMap[U]&&(p[1]=W.attrMap[U]),p[4]=(p[4]||p[5]||"").replace(C,""),p[2]==="~="&&(p[4]=" "+p[4]+" "),p},PSEUDO:function(p,x,R,_,I){if(p[1]==="not")if((o.exec(p[3])||"").length>1||/^\w/.test(p[3]))p[3]=O(p[3],null,null,x);else{var z=O.filter(p[3],x,R,!0^I);return R||_.push.apply(_,z),!1}else if(W.match.POS.test(p[0])||W.match.CHILD.test(p[0]))return!0;return p},POS:function(p){return p.unshift(!0),p}},filters:{enabled:function(p){return p.disabled===!1&&p.type!=="hidden"},disabled:function(p){return p.disabled===!0},checked:function(p){return p.checked===!0},selected:function(p){return p.parentNode&&p.parentNode.selectedIndex,p.selected===!0},parent:function(p){return!!p.firstChild},empty:function(p){return!p.firstChild},has:function(p,x,R){return!!O(R[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){var x=p.getAttribute("type"),R=p.type;return p.nodeName.toLowerCase()==="input"&&R==="text"&&(x===R||x===null)},radio:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="radio"},checkbox:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="checkbox"},file:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="file"},password:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="password"},submit:function(p){var x=p.nodeName.toLowerCase();return(x==="input"||x==="button")&&p.type==="submit"},image:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="image"},reset:function(p){var x=p.nodeName.toLowerCase();return(x==="input"||x==="button")&&p.type==="reset"},button:function(p){var x=p.nodeName.toLowerCase();return x==="input"&&p.type==="button"||x==="button"},input:function(p){return/input|select|textarea|button/i.test(p.nodeName)},focus:function(p){return p===p.ownerDocument.activeElement}},setFilters:{first:function(p,x){return x===0},last:function(p,x,R,_){return x===_.length-1},even:function(p,x){return x%2===0},odd:function(p,x){return x%2===1},lt:function(p,x,R){return x<R[3]-0},gt:function(p,x,R){return x>R[3]-0},nth:function(p,x,R){return R[3]-0===x},eq:function(p,x,R){return R[3]-0===x}},filter:{PSEUDO:function(p,x,R,_){var I=x[1],z=W.filters[I];if(z)return z(p,R,x,_);if(I==="contains")return(p.textContent||p.innerText||F([p])||"").indexOf(x[3])>=0;if(I==="not"){for(var U=x[3],ae=0,ne=U.length;ae<ne;ae++)if(U[ae]===p)return!1;return!0}O.error(I)},CHILD:function(p,x){var R,_,I,z,U,ae,ne=x[1],ce=p;switch(ne){case"only":case"first":for(;ce=ce.previousSibling;)if(ce.nodeType===1)return!1;if(ne==="first")return!0;ce=p;case"last":for(;ce=ce.nextSibling;)if(ce.nodeType===1)return!1;return!0;case"nth":if(R=x[2],_=x[3],R===1&&_===0)return!0;if(I=x[0],z=p.parentNode,z&&(z[u]!==I||!p.nodeIndex)){for(U=0,ce=z.firstChild;ce;ce=ce.nextSibling)ce.nodeType===1&&(ce.nodeIndex=++U);z[u]=I}return ae=p.nodeIndex-_,R===0?ae===0:ae%R===0&&ae/R>=0}},ID:function(p,x){return p.nodeType===1&&p.getAttribute("id")===x},TAG:function(p,x){return x==="*"&&p.nodeType===1||!!p.nodeName&&p.nodeName.toLowerCase()===x},CLASS:function(p,x){return(" "+(p.className||p.getAttribute("class"))+" ").indexOf(x)>-1},ATTR:function(p,x){var R=x[1],_=O.attr?O.attr(p,R):W.attrHandle[R]?W.attrHandle[R](p):p[R]!=null?p[R]:p.getAttribute(R),I=_+"",z=x[2],U=x[4];return _==null?z==="!=":!z&&O.attr?_!=null:z==="="?I===U:z==="*="?I.indexOf(U)>=0:z==="~="?(" "+I+" ").indexOf(U)>=0:U?z==="!="?I!==U:z==="^="?I.indexOf(U)===0:z==="$="?I.substr(I.length-U.length)===U:z==="|="?I===U||I.substr(0,U.length+1)===U+"-":!1:I&&_!==!1},POS:function(p,x,R,_){var I=x[2],z=W.setFilters[I];if(z)return z(p,R,x,_)}}},K=W.match.POS,me=function(p,x){return"\\"+(x-0+1)};for(var Me in W.match)W.match[Me]=new RegExp(W.match[Me].source+/(?![^\[]*\])(?![^\(]*\))/.source),W.leftMatch[Me]=new RegExp(/(^(?:.|\r|\n)*?)/.source+W.match[Me].source.replace(/\\(\d+)/g,me));var Ce=function(p,x){return p=Array.prototype.slice.call(p,0),x?(x.push.apply(x,p),x):p};try{Array.prototype.slice.call(q.documentElement.childNodes,0)[0].nodeType}catch(p){Ce=function(x,R){var _=0,I=R||[];if(h.call(x)==="[object Array]")Array.prototype.push.apply(I,x);else if(typeof x.length=="number")for(var z=x.length;_<z;_++)I.push(x[_]);else for(;x[_];_++)I.push(x[_]);return I}}var it,ot;q.documentElement.compareDocumentPosition?it=function(p,x){return p===x?(v=!0,0):!p.compareDocumentPosition||!x.compareDocumentPosition?p.compareDocumentPosition?-1:1:p.compareDocumentPosition(x)&4?-1:1}:(it=function(p,x){if(p===x)return v=!0,0;if(p.sourceIndex&&x.sourceIndex)return p.sourceIndex-x.sourceIndex;var R,_,I=[],z=[],U=p.parentNode,ae=x.parentNode,ne=U;if(U===ae)return ot(p,x);if(!U)return-1;if(!ae)return 1;for(;ne;)I.unshift(ne),ne=ne.parentNode;for(ne=ae;ne;)z.unshift(ne),ne=ne.parentNode;R=I.length,_=z.length;for(var ce=0;ce<R&&ce<_;ce++)if(I[ce]!==z[ce])return ot(I[ce],z[ce]);return ce===R?ot(p,z[ce],-1):ot(I[ce],x,1)},ot=function(p,x,R){if(p===x)return R;for(var _=p.nextSibling;_;){if(_===x)return-1;_=_.nextSibling}return 1}),function(){var p=q.createElement("div"),x="script"+new Date().getTime(),R=q.documentElement;p.innerHTML="<a name='"+x+"'/>",R.insertBefore(p,R.firstChild),q.getElementById(x)&&(W.find.ID=function(_,I,z){if(typeof I.getElementById<"u"&&!z){var U=I.getElementById(_[1]);return U?U.id===_[1]||typeof U.getAttributeNode<"u"&&U.getAttributeNode("id").nodeValue===_[1]?[U]:i:[]}},W.filter.ID=function(_,I){var z=typeof _.getAttributeNode<"u"&&_.getAttributeNode("id");return _.nodeType===1&&z&&z.nodeValue===I}),R.removeChild(p),R=p=null}(),function(){var p=q.createElement("div");p.appendChild(q.createComment("")),p.getElementsByTagName("*").length>0&&(W.find.TAG=function(x,R){var _=R.getElementsByTagName(x[1]);if(x[1]==="*"){for(var I=[],z=0;_[z];z++)_[z].nodeType===1&&I.push(_[z]);_=I}return _}),p.innerHTML="<a href='#'></a>",p.firstChild&&typeof p.firstChild.getAttribute<"u"&&p.firstChild.getAttribute("href")!=="#"&&(W.attrHandle.href=function(x){return x.getAttribute("href",2)}),p=null}(),q.querySelectorAll&&function(){var p=O,x=q.createElement("div"),R="__sizzle__";if(x.innerHTML="<p class='TEST'></p>",!x.querySelectorAll||x.querySelectorAll(".TEST").length!==0){O=function(I,z,U,ae){if(z=z||q,!ae&&!O.isXML(z)){var ne=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(I);if(ne&&(z.nodeType===1||z.nodeType===9)){if(ne[1])return Ce(z.getElementsByTagName(I),U);if(ne[2]&&W.find.CLASS&&z.getElementsByClassName)return Ce(z.getElementsByClassName(ne[2]),U)}if(z.nodeType===9){if(I==="body"&&z.body)return Ce([z.body],U);if(ne&&ne[3]){var ce=z.getElementById(ne[3]);if(!ce||!ce.parentNode)return Ce([],U);if(ce.id===ne[3])return Ce([ce],U)}try{return Ce(z.querySelectorAll(I),U)}catch(j){}}else if(z.nodeType===1&&z.nodeName.toLowerCase()!=="object"){var ft=z,tt=z.getAttribute("id"),w=tt||R,H=z.parentNode,re=/^\s*[+~]/.test(I);tt?w=w.replace(/'/g,"\\$&"):z.setAttribute("id",w),re&&H&&(z=z.parentNode);try{if(!re||H)return Ce(z.querySelectorAll("[id='"+w+"'] "+I),U)}catch(j){}finally{tt||ft.removeAttribute("id")}}}return p(I,z,U,ae)};for(var _ in p)O[_]=p[_];x=null}}(),function(){var p=q.documentElement,x=p.matchesSelector||p.mozMatchesSelector||p.webkitMatchesSelector||p.msMatchesSelector;if(x){var R=!x.call(q.createElement("div"),"div"),_=!1;try{x.call(q.documentElement,"[test!='']:sizzle")}catch(I){_=!0}O.matchesSelector=function(I,z){if(z=z.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!O.isXML(I))try{if(_||!W.match.PSEUDO.test(z)&&!/!=/.test(z)){var U=x.call(I,z);if(U||!R||I.document&&I.document.nodeType!==11)return U}}catch(ae){}return O(z,null,null,[I]).length>0}}}(),function(){var p=q.createElement("div");if(p.innerHTML="<div class='test e'></div><div class='test'></div>",p.getElementsByClassName&&p.getElementsByClassName("e").length!==0){if(p.lastChild.className="e",p.getElementsByClassName("e").length===1)return;W.order.splice(1,0,"CLASS"),W.find.CLASS=function(x,R,_){if(typeof R.getElementsByClassName<"u"&&!_)return R.getElementsByClassName(x[1])},p=null}}(),q.documentElement.contains?O.contains=function(p,x){return p!==x&&(p.contains?p.contains(x):!0)}:q.documentElement.compareDocumentPosition?O.contains=function(p,x){return!!(p.compareDocumentPosition(x)&16)}:O.contains=function(){return!1},O.isXML=function(p){var x=(p?p.ownerDocument||p:0).documentElement;return x?x.nodeName!=="HTML":!1};var xe=function(p,x,R){for(var _,I=[],z="",U=x.nodeType?[x]:x;_=W.match.PSEUDO.exec(p);)z+=_[0],p=p.replace(W.match.PSEUDO,"");p=W.relative[p]?p+"*":p;for(var ae=0,ne=U.length;ae<ne;ae++)O(p,U[ae],I,R);return O.filter(z,I)};O.attr=n.attr,O.selectors.attrMap={},n.find=O,n.expr=O.selectors,n.expr[":"]=n.expr.filters,n.unique=O.uniqueSort,n.text=O.getText,n.isXMLDoc=O.isXML,n.contains=O.contains}();var mt=/Until$/,Ge=/^(?:parents|prevUntil|prevAll)/,bn=/,/,kt=/^.[^:#\[\.,]*$/,Bt=Array.prototype.slice,xt=n.expr.match.POS,yt={children:!0,contents:!0,next:!0,prev:!0};n.fn.extend({find:function(t){var r=this,o,u;if(typeof t!="string")return n(t).filter(function(){for(o=0,u=r.length;o<u;o++)if(n.contains(r[o],this))return!0});var c=this.pushStack("","find",t),h,v,g;for(o=0,u=this.length;o<u;o++)if(h=c.length,n.find(t,this[o],c),o>0){for(v=h;v<c.length;v++)for(g=0;g<h;g++)if(c[g]===c[v]){c.splice(v--,1);break}}return c},has:function(t){var r=n(t);return this.filter(function(){for(var o=0,u=r.length;o<u;o++)if(n.contains(this,r[o]))return!0})},not:function(t){return this.pushStack(ve(this,t,!1),"not",t)},filter:function(t){return this.pushStack(ve(this,t,!0),"filter",t)},is:function(t){return!!t&&(typeof t=="string"?xt.test(t)?n(t,this.context).index(this[0])>=0:n.filter(t,this).length>0:this.filter(t).length>0)},closest:function(t,r){var o=[],u,c,h=this[0];if(n.isArray(t)){for(var v=1;h&&h.ownerDocument&&h!==r;){for(u=0;u<t.length;u++)n(h).is(t[u])&&o.push({selector:t[u],elem:h,level:v});h=h.parentNode,v++}return o}var g=xt.test(t)||typeof t!="string"?n(t,r||this.context):0;for(u=0,c=this.length;u<c;u++)for(h=this[u];h;){if(g?g.index(h)>-1:n.find.matchesSelector(h,t)){o.push(h);break}if(h=h.parentNode,!h||!h.ownerDocument||h===r||h.nodeType===11)break}return o=o.length>1?n.unique(o):o,this.pushStack(o,"closest",t)},index:function(t){return t?typeof t=="string"?n.inArray(this[0],n(t)):n.inArray(t.jquery?t[0]:t,this):this[0]&&this[0].parentNode?this.prevAll().length:-1},add:function(t,r){var o=typeof t=="string"?n(t,r):n.makeArray(t&&t.nodeType?[t]:t),u=n.merge(this.get(),o);return this.pushStack(Se(o[0])||Se(u[0])?u:n.unique(u))},andSelf:function(){return this.add(this.prevObject)}}),n.each({parent:function(t){var r=t.parentNode;return r&&r.nodeType!==11?r:null},parents:function(t){return n.dir(t,"parentNode")},parentsUntil:function(t,r,o){return n.dir(t,"parentNode",o)},next:function(t){return n.nth(t,2,"nextSibling")},prev:function(t){return n.nth(t,2,"previousSibling")},nextAll:function(t){return n.dir(t,"nextSibling")},prevAll:function(t){return n.dir(t,"previousSibling")},nextUntil:function(t,r,o){return n.dir(t,"nextSibling",o)},prevUntil:function(t,r,o){return n.dir(t,"previousSibling",o)},siblings:function(t){return n.sibling(t.parentNode.firstChild,t)},children:function(t){return n.sibling(t.firstChild)},contents:function(t){return n.nodeName(t,"iframe")?t.contentDocument||t.contentWindow.document:n.makeArray(t.childNodes)}},function(t,r){n.fn[t]=function(o,u){var c=n.map(this,r,o),h=Bt.call(arguments);return mt.test(t)||(u=o),u&&typeof u=="string"&&(c=n.filter(u,c)),c=this.length>1&&!yt[t]?n.unique(c):c,(this.length>1||bn.test(u))&&Ge.test(t)&&(c=c.reverse()),this.pushStack(c,t,h.join(","))}}),n.extend({filter:function(t,r,o){return o&&(t=":not("+t+")"),r.length===1?n.find.matchesSelector(r[0],t)?[r[0]]:[]:n.find.matches(t,r)},dir:function(t,r,o){for(var u=[],c=t[r];c&&c.nodeType!==9&&(o===i||c.nodeType!==1||!n(c).is(o));)c.nodeType===1&&u.push(c),c=c[r];return u},nth:function(t,r,o,u){r=r||1;for(var c=0;t&&!(t.nodeType===1&&++c===r);t=t[o]);return t},sibling:function(t,r){for(var o=[];t;t=t.nextSibling)t.nodeType===1&&t!==r&&o.push(t);return o}});var wt="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",Ft=/ jQuery\d+="(?:\d+|null)"/g,qe=/^\s+/,Je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ze=/<([\w:]+)/,V=/<tbody/i,ue=/<|&#?\w+;/,we=/<(?:script|style)/i,_e=/<(?:script|object|embed|option|style)/i,We=new RegExp("<(?:"+wt.replace(" ","|")+")","i"),Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,ct=/\/(java|ecma)script/i,Fe=/^\s*<!(?:\[CDATA\[|\-\-)/,$e={option:[1,"<select multiple='multiple'>","</select>"],legend:[1,"<fieldset>","</fieldset>"],thead:[1,"<table>","</table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],col:[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"],area:[1,"<map>","</map>"],_default:[0,"",""]},Ht=fe(q);$e.optgroup=$e.option,$e.tbody=$e.tfoot=$e.colgroup=$e.caption=$e.thead,$e.th=$e.td,n.support.htmlSerialize||($e._default=[1,"div<div>","</div>"]),n.fn.extend({text:function(t){return n.isFunction(t)?this.each(function(r){var o=n(this);o.text(t.call(this,r,o.text()))}):typeof t!="object"&&t!==i?this.empty().append((this[0]&&this[0].ownerDocument||q).createTextNode(t)):n.text(this)},wrapAll:function(t){if(n.isFunction(t))return this.each(function(o){n(this).wrapAll(t.call(this,o))});if(this[0]){var r=n(t,this[0].ownerDocument).eq(0).clone(!0);this[0].parentNode&&r.insertBefore(this[0]),r.map(function(){for(var o=this;o.firstChild&&o.firstChild.nodeType===1;)o=o.firstChild;return o}).append(this)}return this},wrapInner:function(t){return n.isFunction(t)?this.each(function(r){n(this).wrapInner(t.call(this,r))}):this.each(function(){var r=n(this),o=r.contents();o.length?o.wrapAll(t):r.append(t)})},wrap:function(t){return this.each(function(){n(this).wrapAll(t)})},unwrap:function(){return this.parent().each(function(){n.nodeName(this,"body")||n(this).replaceWith(this.childNodes)}).end()},append:function(){return this.domManip(arguments,!0,function(t){this.nodeType===1&&this.appendChild(t)})},prepend:function(){return this.domManip(arguments,!0,function(t){this.nodeType===1&&this.insertBefore(t,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(r){this.parentNode.insertBefore(r,this)});if(arguments.length){var t=n(arguments[0]);return t.push.apply(t,this.toArray()),this.pushStack(t,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,!1,function(r){this.parentNode.insertBefore(r,this.nextSibling)});if(arguments.length){var t=this.pushStack(this,"after",arguments);return t.push.apply(t,n(arguments[0]).toArray()),t}},remove:function(t,r){for(var o=0,u;(u=this[o])!=null;o++)(!t||n.filter(t,[u]).length)&&(!r&&u.nodeType===1&&(n.cleanData(u.getElementsByTagName("*")),n.cleanData([u])),u.parentNode&&u.parentNode.removeChild(u));return this},empty:function(){for(var t=0,r;(r=this[t])!=null;t++)for(r.nodeType===1&&n.cleanData(r.getElementsByTagName("*"));r.firstChild;)r.removeChild(r.firstChild);return this},clone:function(t,r){return t=t==null?!1:t,r=r==null?t:r,this.map(function(){return n.clone(this,t,r)})},html:function(t){if(t===i)return this[0]&&this[0].nodeType===1?this[0].innerHTML.replace(Ft,""):null;if(typeof t=="string"&&!we.test(t)&&(n.support.leadingWhitespace||!qe.test(t))&&!$e[(ze.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Je,"<$1></$2>");try{for(var r=0,o=this.length;r<o;r++)this[r].nodeType===1&&(n.cleanData(this[r].getElementsByTagName("*")),this[r].innerHTML=t)}catch(u){this.empty().append(t)}}else n.isFunction(t)?this.each(function(u){var c=n(this);c.html(t.call(this,u,c.html()))}):this.empty().append(t);return this},replaceWith:function(t){return this[0]&&this[0].parentNode?n.isFunction(t)?this.each(function(r){var o=n(this),u=o.html();o.replaceWith(t.call(this,r,u))}):(typeof t!="string"&&(t=n(t).detach()),this.each(function(){var r=this.nextSibling,o=this.parentNode;n(this).remove(),r?n(r).before(t):n(o).append(t)})):this.length?this.pushStack(n(n.isFunction(t)?t():t),"replaceWith",t):this},detach:function(t){return this.remove(t,!0)},domManip:function(t,r,o){var u,c,h,v,g=t[0],C=[];if(!n.support.checkClone&&arguments.length===3&&typeof g=="string"&&Ke.test(g))return this.each(function(){n(this).domManip(t,r,o,!0)});if(n.isFunction(g))return this.each(function(F){var W=n(this);t[0]=g.call(this,F,r?W.html():i),W.domManip(t,r,o)});if(this[0]){if(v=g&&g.parentNode,n.support.parentNode&&v&&v.nodeType===11&&v.childNodes.length===this.length?u={fragment:v}:u=n.buildFragment(t,this,C),h=u.fragment,h.childNodes.length===1?c=h=h.firstChild:c=h.firstChild,c){r=r&&n.nodeName(c,"tr");for(var k=0,E=this.length,O=E-1;k<E;k++)o.call(r?pe(this[k]):this[k],u.cacheable||E>1&&k<O?n.clone(h,!0,!0):h)}C.length&&n.each(C,L)}return this}}),n.buildFragment=function(t,r,o){var u,c,h,v,g=t[0];return r&&r[0]&&(v=r[0].ownerDocument||r[0]),v.createDocumentFragment||(v=q),t.length===1&&typeof g=="string"&&g.length<512&&v===q&&g.charAt(0)==="<"&&!_e.test(g)&&(n.support.checkClone||!Ke.test(g))&&!n.support.unknownElems&&We.test(g)&&(c=!0,h=n.fragments[g],h&&h!==1&&(u=h)),u||(u=v.createDocumentFragment(),n.clean(t,v,u,o)),c&&(n.fragments[g]=h?u:1),{fragment:u,cacheable:c}},n.fragments={},n.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(t,r){n.fn[t]=function(o){var u=[],c=n(o),h=this.length===1&&this[0].parentNode;if(h&&h.nodeType===11&&h.childNodes.length===1&&c.length===1)return c[r](this[0]),this;for(var v=0,g=c.length;v<g;v++){var C=(v>0?this.clone(!0):this).get();n(c[v])[r](C),u=u.concat(C)}return this.pushStack(u,t,c.selector)}}),n.extend({clone:function(t,r,o){var u=t.cloneNode(!0),c,h,v;if((!n.support.noCloneEvent||!n.support.noCloneChecked)&&(t.nodeType===1||t.nodeType===11)&&!n.isXMLDoc(t))for(ye(t,u),c=te(t),h=te(u),v=0;c[v];++v)h[v]&&ye(c[v],h[v]);if(r&&(ee(t,u),o))for(c=te(t),h=te(u),v=0;c[v];++v)ee(c[v],h[v]);return c=h=null,u},clean:function(t,r,o,u){var c;r=r||q,typeof r.createElement>"u"&&(r=r.ownerDocument||r[0]&&r[0].ownerDocument||q);for(var h=[],v,g=0,C;(C=t[g])!=null;g++)if(typeof C=="number"&&(C+=""),!!C){if(typeof C=="string")if(!ue.test(C))C=r.createTextNode(C);else{C=C.replace(Je,"<$1></$2>");var k=(ze.exec(C)||["",""])[1].toLowerCase(),E=$e[k]||$e._default,O=E[0],F=r.createElement("div");for(r===q?Ht.appendChild(F):fe(r).appendChild(F),F.innerHTML=E[1]+C+E[2];O--;)F=F.lastChild;if(!n.support.tbody){var W=V.test(C),K=k==="table"&&!W?F.firstChild&&F.firstChild.childNodes:E[1]==="<table>"&&!W?F.childNodes:[];for(v=K.length-1;v>=0;--v)n.nodeName(K[v],"tbody")&&!K[v].childNodes.length&&K[v].parentNode.removeChild(K[v])}!n.support.leadingWhitespace&&qe.test(C)&&F.insertBefore(r.createTextNode(qe.exec(C)[0]),F.firstChild),C=F.childNodes}var me;if(!n.support.appendChecked)if(C[0]&&typeof(me=C.length)=="number")for(v=0;v<me;v++)Z(C[v]);else Z(C);C.nodeType?h.push(C):h=n.merge(h,C)}if(o)for(c=function(Ce){return!Ce.type||ct.test(Ce.type)},g=0;h[g];g++)if(u&&n.nodeName(h[g],"script")&&(!h[g].type||h[g].type.toLowerCase()==="text/javascript"))u.push(h[g].parentNode?h[g].parentNode.removeChild(h[g]):h[g]);else{if(h[g].nodeType===1){var Me=n.grep(h[g].getElementsByTagName("script"),c);h.splice.apply(h,[g+1,0].concat(Me))}o.appendChild(h[g])}return h},cleanData:function(t){for(var r,o,u=n.cache,c=n.event.special,h=n.support.deleteExpando,v=0,g;(g=t[v])!=null;v++)if(!(g.nodeName&&n.noData[g.nodeName.toLowerCase()])&&(o=g[n.expando],o)){if(r=u[o],r&&r.events){for(var C in r.events)c[C]?n.event.remove(g,C):n.removeEvent(g,C,r.handle);r.handle&&(r.handle.elem=null)}h?delete g[n.expando]:g.removeAttribute&&g.removeAttribute(n.expando),delete u[o]}}});var lr=/alpha\([^)]*\)/i,ba=/opacity=([^)]*)/,xa=/([A-Z]|^ms)/g,ni=/^-?\d+(?:px)?$/i,Sa=/^-?\d/,Ca=/^([\-+])=([\-+.\de]+)/,Aa={position:"absolute",visibility:"hidden",display:"block"},Ta=["Left","Right"],Ma=["Top","Bottom"],on,ri,ii;n.fn.css=function(t,r){return arguments.length===2&&r===i?this:n.access(this,t,r,!0,function(o,u,c){return c!==i?n.style(o,u,c):n.css(o,u)})},n.extend({cssHooks:{opacity:{get:function(t,r){if(r){var o=on(t,"opacity","opacity");return o===""?"1":o}return t.style.opacity}}},cssNumber:{fillOpacity:!0,fontWeight:!0,lineHeight:!0,opacity:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{float:n.support.cssFloat?"cssFloat":"styleFloat"},style:function(t,r,o,u){if(t&&t.nodeType!==3&&t.nodeType!==8&&t.style){var c,h,v=n.camelCase(r),g=t.style,C=n.cssHooks[v];if(r=n.cssProps[v]||v,o===i)return C&&"get"in C&&(c=C.get(t,!1,u))!==i?c:g[r];if(h=typeof o,h==="string"&&(c=Ca.exec(o))&&(o=+(c[1]+1)*+c[2]+parseFloat(n.css(t,r)),h="number"),o==null||h==="number"&&isNaN(o))return;if(h==="number"&&!n.cssNumber[v]&&(o+="px"),!C||!("set"in C)||(o=C.set(t,o))!==i)try{g[r]=o}catch(k){}}},css:function(t,r,o){var u,c;if(r=n.camelCase(r),c=n.cssHooks[r],r=n.cssProps[r]||r,r==="cssFloat"&&(r="float"),c&&"get"in c&&(u=c.get(t,!0,o))!==i)return u;if(on)return on(t,r)},swap:function(t,r,o){var u={};for(var c in r)u[c]=t.style[c],t.style[c]=r[c];o.call(t);for(c in r)t.style[c]=u[c]}}),n.curCSS=n.css,n.each(["height","width"],function(t,r){n.cssHooks[r]={get:function(o,u,c){var h;if(u)return o.offsetWidth!==0?N(o,r,c):(n.swap(o,Aa,function(){h=N(o,r,c)}),h)},set:function(o,u){if(!ni.test(u))return u;if(u=parseFloat(u),u>=0)return u+"px"}}}),n.support.opacity||(n.cssHooks.opacity={get:function(t,r){return ba.test((r&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":r?"1":""},set:function(t,r){var o=t.style,u=t.currentStyle,c=n.isNumeric(r)?"alpha(opacity="+r*100+")":"",h=u&&u.filter||o.filter||"";o.zoom=1,!(r>=1&&n.trim(h.replace(lr,""))===""&&(o.removeAttribute("filter"),u&&!u.filter))&&(o.filter=lr.test(h)?h.replace(lr,c):h+" "+c)}}),n(function(){n.support.reliableMarginRight||(n.cssHooks.marginRight={get:function(t,r){var o;return n.swap(t,{display:"inline-block"},function(){r?o=on(t,"margin-right","marginRight"):o=t.style.marginRight}),o}})}),q.defaultView&&q.defaultView.getComputedStyle&&(ri=function(t,r){var o,u,c;return r=r.replace(xa,"-$1").toLowerCase(),(u=t.ownerDocument.defaultView)?((c=u.getComputedStyle(t,null))&&(o=c.getPropertyValue(r),o===""&&!n.contains(t.ownerDocument.documentElement,t)&&(o=n.style(t,r))),o):i}),q.documentElement.currentStyle&&(ii=function(t,r){var o,u,c,h=t.currentStyle&&t.currentStyle[r],v=t.style;return h===null&&v&&(c=v[r])&&(h=c),!ni.test(h)&&Sa.test(h)&&(o=v.left,u=t.runtimeStyle&&t.runtimeStyle.left,u&&(t.runtimeStyle.left=t.currentStyle.left),v.left=r==="fontSize"?"1em":h||0,h=v.pixelLeft+"px",v.left=o,u&&(t.runtimeStyle.left=u)),h===""?"auto":h}),on=ri||ii,n.expr&&n.expr.filters&&(n.expr.filters.hidden=function(t){var r=t.offsetWidth,o=t.offsetHeight;return r===0&&o===0||!n.support.reliableHiddenOffsets&&(t.style&&t.style.display||n.css(t,"display"))==="none"},n.expr.filters.visible=function(t){return!n.expr.filters.hidden(t)});var Ea=/%20/g,Oa=/\[\]$/,oi=/\r?\n/g,Pa=/#.*$/,ka=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Ra=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,_a=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Da=/^(?:GET|HEAD)$/,Na=/^\/\//,ai=/\?/,La=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,Ba=/^(?:select|textarea)/i,si=/\s+/,Fa=/([?&])_=[^&]*/,li=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ui=n.fn.load,ur={},ci={},$t,qt,fi=["*/"]+["*"];try{$t=l.href}catch(t){$t=q.createElement("a"),$t.href="",$t=$t.href}qt=li.exec($t.toLowerCase())||[],n.fn.extend({load:function(t,r,o){if(typeof t!="string"&&ui)return ui.apply(this,arguments);if(!this.length)return this;var u=t.indexOf(" ");if(u>=0){var c=t.slice(u,t.length);t=t.slice(0,u)}var h="GET";r&&(n.isFunction(r)?(o=r,r=i):typeof r=="object"&&(r=n.param(r,n.ajaxSettings.traditional),h="POST"));var v=this;return n.ajax({url:t,type:h,dataType:"html",data:r,complete:function(g,C,k){k=g.responseText,g.isResolved()&&(g.done(function(E){k=E}),v.html(c?n("<div>").append(k.replace(La,"")).find(c):k)),o&&v.each(o,[k,C,g])}}),this},serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?n.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Ba.test(this.nodeName)||Ra.test(this.type))}).map(function(t,r){var o=n(this).val();return o==null?null:n.isArray(o)?n.map(o,function(u,c){return{name:r.name,value:u.replace(oi,`\r
- `)}}):{name:r.name,value:o.replace(oi,`\r
- `)}}).get()}}),n.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,r){n.fn[r]=function(o){return this.bind(r,o)}}),n.each(["get","post"],function(t,r){n[r]=function(o,u,c,h){return n.isFunction(u)&&(h=h||c,c=u,u=i),n.ajax({type:r,url:o,data:u,success:c,dataType:h})}}),n.extend({getScript:function(t,r){return n.get(t,i,r,"script")},getJSON:function(t,r,o){return n.get(t,r,o,"json")},ajaxSetup:function(t,r){return r?X(t,n.ajaxSettings):(r=t,t=n.ajaxSettings),X(t,r),t},ajaxSettings:{url:$t,isLocal:_a.test(qt[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","*":fi},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:se(ur),ajaxTransport:se(ci),ajax:function(t,r){function o(R,_,I,z){if(Ce!==2){Ce=2,me&&clearTimeout(me),K=i,F=z||"",xe.readyState=R>0?4:0;var U,ae,ne,ce=_,ft=I?P(u,xe,I):i,tt,w;if(R>=200&&R<300||R===304)if(u.ifModified&&((tt=xe.getResponseHeader("Last-Modified"))&&(n.lastModified[k]=tt),(w=xe.getResponseHeader("Etag"))&&(n.etag[k]=w)),R===304)ce="notmodified",U=!0;else try{ae=M(u,ft),ce="success",U=!0}catch(H){ce="parsererror",ne=H}else ne=ce,(!ce||R)&&(ce="error",R<0&&(R=0));xe.status=R,xe.statusText=""+(_||ce),U?v.resolveWith(c,[ae,ce,xe]):v.rejectWith(c,[xe,ce,ne]),xe.statusCode(C),C=i,it&&h.trigger("ajax"+(U?"Success":"Error"),[xe,u,U?ae:ne]),g.fireWith(c,[xe,ce]),it&&(h.trigger("ajaxComplete",[xe,u]),--n.active||n.event.trigger("ajaxStop"))}}typeof t=="object"&&(r=t,t=i),r=r||{};var u=n.ajaxSetup({},r),c=u.context||u,h=c!==u&&(c.nodeType||c instanceof n)?n(c):n.event,v=n.Deferred(),g=n.Callbacks("once memory"),C=u.statusCode||{},k,E={},O={},F,W,K,me,Me,Ce=0,it,ot,xe={readyState:0,setRequestHeader:function(R,_){if(!Ce){var I=R.toLowerCase();R=O[I]=O[I]||R,E[R]=_}return this},getAllResponseHeaders:function(){return Ce===2?F:null},getResponseHeader:function(R){var _;if(Ce===2){if(!W)for(W={};_=ka.exec(F);)W[_[1].toLowerCase()]=_[2];_=W[R.toLowerCase()]}return _===i?null:_},overrideMimeType:function(R){return Ce||(u.mimeType=R),this},abort:function(R){return R=R||"abort",K&&K.abort(R),o(0,R),this}};if(v.promise(xe),xe.success=xe.done,xe.error=xe.fail,xe.complete=g.add,xe.statusCode=function(R){if(R){var _;if(Ce<2)for(_ in R)C[_]=[C[_],R[_]];else _=R[xe.status],xe.then(_,_)}return this},u.url=((t||u.url)+"").replace(Pa,"").replace(Na,qt[1]+"//"),u.dataTypes=n.trim(u.dataType||"*").toLowerCase().split(si),u.crossDomain==null&&(Me=li.exec(u.url.toLowerCase()),u.crossDomain=!(!Me||Me[1]==qt[1]&&Me[2]==qt[2]&&(Me[3]||(Me[1]==="http:"?80:443))==(qt[3]||(qt[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=n.param(u.data,u.traditional)),Y(ur,u,r,xe),Ce===2)return!1;if(it=u.global,u.type=u.type.toUpperCase(),u.hasContent=!Da.test(u.type),it&&n.active++===0&&n.event.trigger("ajaxStart"),!u.hasContent&&(u.data&&(u.url+=(ai.test(u.url)?"&":"?")+u.data,delete u.data),k=u.url,u.cache===!1)){var p=n.now(),x=u.url.replace(Fa,"$1_="+p);u.url=x+(x===u.url?(ai.test(u.url)?"&":"?")+"_="+p:"")}(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&xe.setRequestHeader("Content-Type",u.contentType),u.ifModified&&(k=k||u.url,n.lastModified[k]&&xe.setRequestHeader("If-Modified-Since",n.lastModified[k]),n.etag[k]&&xe.setRequestHeader("If-None-Match",n.etag[k])),xe.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+fi+"; q=0.01":""):u.accepts["*"]);for(ot in u.headers)xe.setRequestHeader(ot,u.headers[ot]);if(u.beforeSend&&(u.beforeSend.call(c,xe,u)===!1||Ce===2))return xe.abort(),!1;for(ot in{success:1,error:1,complete:1})xe[ot](u[ot]);if(K=Y(ci,u,r,xe),!K)o(-1,"No Transport");else{xe.readyState=1,it&&h.trigger("ajaxSend",[xe,u]),u.async&&u.timeout>0&&(me=setTimeout(function(){xe.abort("timeout")},u.timeout));try{Ce=1,K.send(E,o)}catch(R){Ce<2?o(-1,R):n.error(R)}}return xe},param:function(t,r){var o=[],u=function(h,v){v=n.isFunction(v)?v():v,o[o.length]=encodeURIComponent(h)+"="+encodeURIComponent(v)};if(r===i&&(r=n.ajaxSettings.traditional),n.isArray(t)||t.jquery&&!n.isPlainObject(t))n.each(t,function(){u(this.name,this.value)});else for(var c in t)$(c,t[c],r,u);return o.join("&").replace(Ea,"+")}}),n.extend({active:0,lastModified:{},etag:{}});var Ia=n.now(),Rn=/(\=)\?(&|$)|\?\?/i;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return n.expando+"_"+Ia++}}),n.ajaxPrefilter("json jsonp",function(t,r,o){var u=t.contentType==="application/x-www-form-urlencoded"&&typeof t.data=="string";if(t.dataTypes[0]==="jsonp"||t.jsonp!==!1&&(Rn.test(t.url)||u&&Rn.test(t.data))){var c,h=t.jsonpCallback=n.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,v=e[h],g=t.url,C=t.data,k="$1"+h+"$2";return t.jsonp!==!1&&(g=g.replace(Rn,k),t.url===g&&(u&&(C=C.replace(Rn,k)),t.data===C&&(g+=(/\?/.test(g)?"&":"?")+t.jsonp+"="+h))),t.url=g,t.data=C,e[h]=function(E){c=[E]},o.always(function(){e[h]=v,c&&n.isFunction(v)&&e[h](c[0])}),t.converters["script json"]=function(){return c||n.error(h+" was not called"),c[0]},t.dataTypes[0]="json","script"}}),n.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/javascript|ecmascript/},converters:{"text script":function(t){return n.globalEval(t),t}}}),n.ajaxPrefilter("script",function(t){t.cache===i&&(t.cache=!1),t.crossDomain&&(t.type="GET",t.global=!1)}),n.ajaxTransport("script",function(t){if(t.crossDomain){var r,o=q.head||q.getElementsByTagName("head")[0]||q.documentElement;return{send:function(u,c){r=q.createElement("script"),r.async="async",t.scriptCharset&&(r.charset=t.scriptCharset),r.src=t.url,r.onload=r.onreadystatechange=function(h,v){(v||!r.readyState||/loaded|complete/.test(r.readyState))&&(r.onload=r.onreadystatechange=null,o&&r.parentNode&&o.removeChild(r),r=i,v||c(200,"success"))},o.insertBefore(r,o.firstChild)},abort:function(){r&&r.onload(0,1)}}}});var cr=e.ActiveXObject?function(){for(var t in an)an[t](0,1)}:!1,za=0,an;n.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&A()||T()}:A,function(t){n.extend(n.support,{ajax:!!t,cors:!!t&&"withCredentials"in t})}(n.ajaxSettings.xhr()),n.support.ajax&&n.ajaxTransport(function(t){if(!t.crossDomain||n.support.cors){var r;return{send:function(o,u){var c=t.xhr(),h,v;if(t.username?c.open(t.type,t.url,t.async,t.username,t.password):c.open(t.type,t.url,t.async),t.xhrFields)for(v in t.xhrFields)c[v]=t.xhrFields[v];t.mimeType&&c.overrideMimeType&&c.overrideMimeType(t.mimeType),!t.crossDomain&&!o["X-Requested-With"]&&(o["X-Requested-With"]="XMLHttpRequest");try{for(v in o)c.setRequestHeader(v,o[v])}catch(g){}c.send(t.hasContent&&t.data||null),r=function(g,C){var k,E,O,F,W;try{if(r&&(C||c.readyState===4))if(r=i,h&&(c.onreadystatechange=n.noop,cr&&delete an[h]),C)c.readyState!==4&&c.abort();else{k=c.status,O=c.getAllResponseHeaders(),F={},W=c.responseXML,W&&W.documentElement&&(F.xml=W),F.text=c.responseText;try{E=c.statusText}catch(K){E=""}!k&&t.isLocal&&!t.crossDomain?k=F.text?200:404:k===1223&&(k=204)}}catch(K){C||u(-1,K)}F&&u(k,E,F,O)},!t.async||c.readyState===4?r():(h=++za,cr&&(an||(an={},n(e).unload(cr)),an[h]=r),c.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var fr={},Tt,sn,Wa=/^(?:toggle|show|hide)$/,ja=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,_n,di=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Dn;n.fn.extend({show:function(t,r,o){var u,c;if(t||t===0)return this.animate(d("show",3),t,r,o);for(var h=0,v=this.length;h<v;h++)u=this[h],u.style&&(c=u.style.display,!n._data(u,"olddisplay")&&c==="none"&&(c=u.style.display=""),c===""&&n.css(u,"display")==="none"&&n._data(u,"olddisplay",f(u.nodeName)));for(h=0;h<v;h++)u=this[h],u.style&&(c=u.style.display,(c===""||c==="none")&&(u.style.display=n._data(u,"olddisplay")||""));return this},hide:function(t,r,o){if(t||t===0)return this.animate(d("hide",3),t,r,o);for(var u,c,h=0,v=this.length;h<v;h++)u=this[h],u.style&&(c=n.css(u,"display"),c!=="none"&&!n._data(u,"olddisplay")&&n._data(u,"olddisplay",c));for(h=0;h<v;h++)this[h].style&&(this[h].style.display="none");return this},_toggle:n.fn.toggle,toggle:function(t,r,o){var u=typeof t=="boolean";return n.isFunction(t)&&n.isFunction(r)?this._toggle.apply(this,arguments):t==null||u?this.each(function(){var c=u?t:n(this).is(":hidden");n(this)[c?"show":"hide"]()}):this.animate(d("toggle",3),t,r,o),this},fadeTo:function(t,r,o,u){return this.filter(":hidden").css("opacity",0).show().end().animate({opacity:r},t,o,u)},animate:function(t,r,o,u){function c(){h.queue===!1&&n._mark(this);var v=n.extend({},h),g=this.nodeType===1,C=g&&n(this).is(":hidden"),k,E,O,F,W,K,me,Me,Ce;v.animatedProperties={};for(O in t){if(k=n.camelCase(O),O!==k&&(t[k]=t[O],delete t[O]),E=t[k],n.isArray(E)?(v.animatedProperties[k]=E[1],E=t[k]=E[0]):v.animatedProperties[k]=v.specialEasing&&v.specialEasing[k]||v.easing||"swing",E==="hide"&&C||E==="show"&&!C)return v.complete.call(this);g&&(k==="height"||k==="width")&&(v.overflow=[this.style.overflow,this.style.overflowX,this.style.overflowY],n.css(this,"display")==="inline"&&n.css(this,"float")==="none"&&(!n.support.inlineBlockNeedsLayout||f(this.nodeName)==="inline"?this.style.display="inline-block":this.style.zoom=1))}v.overflow!=null&&(this.style.overflow="hidden");for(O in t)F=new n.fx(this,v,O),E=t[O],Wa.test(E)?(Ce=n._data(this,"toggle"+O)||(E==="toggle"?C?"show":"hide":0),Ce?(n._data(this,"toggle"+O,Ce==="show"?"hide":"show"),F[Ce]()):F[E]()):(W=ja.exec(E),K=F.cur(),W?(me=parseFloat(W[2]),Me=W[3]||(n.cssNumber[O]?"":"px"),Me!=="px"&&(n.style(this,O,(me||1)+Me),K=(me||1)/F.cur()*K,n.style(this,O,K+Me)),W[1]&&(me=(W[1]==="-="?-1:1)*me+K),F.custom(K,me,Me)):F.custom(K,E,""));return!0}var h=n.speed(r,o,u);return n.isEmptyObject(t)?this.each(h.complete,[!1]):(t=n.extend({},t),h.queue===!1?this.each(c):this.queue(h.queue,c))},stop:function(t,r,o){return typeof t!="string"&&(o=r,r=t,t=i),r&&t!==!1&&this.queue(t||"fx",[]),this.each(function(){function u(C,k,E){var O=k[E];n.removeData(C,E,!0),O.stop(o)}var c,h=!1,v=n.timers,g=n._data(this);if(o||n._unmark(!0,this),t==null)for(c in g)g[c].stop&&c.indexOf(".run")===c.length-4&&u(this,g,c);else g[c=t+".run"]&&g[c].stop&&u(this,g,c);for(c=v.length;c--;)v[c].elem===this&&(t==null||v[c].queue===t)&&(o?v[c](!0):v[c].saveState(),h=!0,v.splice(c,1));(!o||!h)&&n.dequeue(this,t)})}}),n.each({slideDown:d("show",1),slideUp:d("hide",1),slideToggle:d("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(t,r){n.fn[t]=function(o,u,c){return this.animate(r,o,u,c)}}),n.extend({speed:function(t,r,o){var u=t&&typeof t=="object"?n.extend({},t):{complete:o||!o&&r||n.isFunction(t)&&t,duration:t,easing:o&&r||r&&!n.isFunction(r)&&r};return u.duration=n.fx.off?0:typeof u.duration=="number"?u.duration:u.duration in n.fx.speeds?n.fx.speeds[u.duration]:n.fx.speeds._default,(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(c){n.isFunction(u.old)&&u.old.call(this),u.queue?n.dequeue(this,u.queue):c!==!1&&n._unmark(this)},u},easing:{linear:function(t,r,o,u){return o+u*t},swing:function(t,r,o,u){return(-Math.cos(t*Math.PI)/2+.5)*u+o}},timers:[],fx:function(t,r,o){this.options=r,this.elem=t,this.prop=o,r.orig=r.orig||{}}}),n.fx.prototype={update:function(){this.options.step&&this.options.step.call(this.elem,this.now,this),(n.fx.step[this.prop]||n.fx.step._default)(this)},cur:function(){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null))return this.elem[this.prop];var t,r=n.css(this.elem,this.prop);return isNaN(t=parseFloat(r))?!r||r==="auto"?0:r:t},custom:function(t,r,o){function u(v){return c.step(v)}var c=this,h=n.fx;this.startTime=Dn||S(),this.end=r,this.now=this.start=t,this.pos=this.state=0,this.unit=o||this.unit||(n.cssNumber[this.prop]?"":"px"),u.queue=this.options.queue,u.elem=this.elem,u.saveState=function(){c.options.hide&&n._data(c.elem,"fxshow"+c.prop)===i&&n._data(c.elem,"fxshow"+c.prop,c.start)},u()&&n.timers.push(u)&&!_n&&(_n=setInterval(h.tick,h.interval))},show:function(){var t=n._data(this.elem,"fxshow"+this.prop);this.options.orig[this.prop]=t||n.style(this.elem,this.prop),this.options.show=!0,t!==i?this.custom(this.cur(),t):this.custom(this.prop==="width"||this.prop==="height"?1:0,this.cur()),n(this.elem).show()},hide:function(){this.options.orig[this.prop]=n._data(this.elem,"fxshow"+this.prop)||n.style(this.elem,this.prop),this.options.hide=!0,this.custom(this.cur(),0)},step:function(t){var r,o,u,c=Dn||S(),h=!0,v=this.elem,g=this.options;if(t||c>=g.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),g.animatedProperties[this.prop]=!0;for(r in g.animatedProperties)g.animatedProperties[r]!==!0&&(h=!1);if(h){if(g.overflow!=null&&!n.support.shrinkWrapBlocks&&n.each(["","X","Y"],function(C,k){v.style["overflow"+k]=g.overflow[C]}),g.hide&&n(v).hide(),g.hide||g.show)for(r in g.animatedProperties)n.style(v,r,g.orig[r]),n.removeData(v,"fxshow"+r,!0),n.removeData(v,"toggle"+r,!0);u=g.complete,u&&(g.complete=!1,u.call(v))}return!1}return g.duration==1/0?this.now=c:(o=c-this.startTime,this.state=o/g.duration,this.pos=n.easing[g.animatedProperties[this.prop]](this.state,o,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},n.extend(n.fx,{tick:function(){for(var t,r=n.timers,o=0;o<r.length;o++)t=r[o],!t()&&r[o]===t&&r.splice(o--,1);r.length||n.fx.stop()},interval:13,stop:function(){clearInterval(_n),_n=null},speeds:{slow:600,fast:200,_default:400},step:{opacity:function(t){n.style(t.elem,"opacity",t.now)},_default:function(t){t.elem.style&&t.elem.style[t.prop]!=null?t.elem.style[t.prop]=t.now+t.unit:t.elem[t.prop]=t.now}}}),n.each(["width","height"],function(t,r){n.fx.step[r]=function(o){n.style(o.elem,r,Math.max(0,o.now))}}),n.expr&&n.expr.filters&&(n.expr.filters.animated=function(t){return n.grep(n.timers,function(r){return t===r.elem}).length});var Ha=/^t(?:able|d|h)$/i,hi=/^(?:body|html)$/i;"getBoundingClientRect"in q.documentElement?n.fn.offset=function(t){var r=this[0],o;if(t)return this.each(function(W){n.offset.setOffset(this,t,W)});if(!r||!r.ownerDocument)return null;if(r===r.ownerDocument.body)return n.offset.bodyOffset(r);try{o=r.getBoundingClientRect()}catch(W){}var u=r.ownerDocument,c=u.documentElement;if(!o||!n.contains(c,r))return o?{top:o.top,left:o.left}:{top:0,left:0};var h=u.body,v=a(u),g=c.clientTop||h.clientTop||0,C=c.clientLeft||h.clientLeft||0,k=v.pageYOffset||n.support.boxModel&&c.scrollTop||h.scrollTop,E=v.pageXOffset||n.support.boxModel&&c.scrollLeft||h.scrollLeft,O=o.top+k-g,F=o.left+E-C;return{top:O,left:F}}:n.fn.offset=function(t){var r=this[0];if(t)return this.each(function(O){n.offset.setOffset(this,t,O)});if(!r||!r.ownerDocument)return null;if(r===r.ownerDocument.body)return n.offset.bodyOffset(r);for(var o,u=r.offsetParent,c=r.ownerDocument,h=c.documentElement,v=c.body,g=c.defaultView,C=g?g.getComputedStyle(r,null):r.currentStyle,k=r.offsetTop,E=r.offsetLeft;(r=r.parentNode)&&r!==v&&r!==h&&!(n.support.fixedPosition&&C.position==="fixed");)o=g?g.getComputedStyle(r,null):r.currentStyle,k-=r.scrollTop,E-=r.scrollLeft,r===u&&(k+=r.offsetTop,E+=r.offsetLeft,n.support.doesNotAddBorder&&(!n.support.doesAddBorderForTableAndCells||!Ha.test(r.nodeName))&&(k+=parseFloat(o.borderTopWidth)||0,E+=parseFloat(o.borderLeftWidth)||0),u=r.offsetParent),n.support.subtractsBorderForOverflowNotVisible&&o.overflow!=="visible"&&(k+=parseFloat(o.borderTopWidth)||0,E+=parseFloat(o.borderLeftWidth)||0),C=o;return(C.position==="relative"||C.position==="static")&&(k+=v.offsetTop,E+=v.offsetLeft),n.support.fixedPosition&&C.position==="fixed"&&(k+=Math.max(h.scrollTop,v.scrollTop),E+=Math.max(h.scrollLeft,v.scrollLeft)),{top:k,left:E}},n.offset={bodyOffset:function(t){var r=t.offsetTop,o=t.offsetLeft;return n.support.doesNotIncludeMarginInBodyOffset&&(r+=parseFloat(n.css(t,"marginTop"))||0,o+=parseFloat(n.css(t,"marginLeft"))||0),{top:r,left:o}},setOffset:function(t,r,o){var u=n.css(t,"position");u==="static"&&(t.style.position="relative");var c=n(t),h=c.offset(),v=n.css(t,"top"),g=n.css(t,"left"),C=(u==="absolute"||u==="fixed")&&n.inArray("auto",[v,g])>-1,k={},E={},O,F;C?(E=c.position(),O=E.top,F=E.left):(O=parseFloat(v)||0,F=parseFloat(g)||0),n.isFunction(r)&&(r=r.call(t,o,h)),r.top!=null&&(k.top=r.top-h.top+O),r.left!=null&&(k.left=r.left-h.left+F),"using"in r?r.using.call(t,k):c.css(k)}},n.fn.extend({position:function(){if(!this[0])return null;var t=this[0],r=this.offsetParent(),o=this.offset(),u=hi.test(r[0].nodeName)?{top:0,left:0}:r.offset();return o.top-=parseFloat(n.css(t,"marginTop"))||0,o.left-=parseFloat(n.css(t,"marginLeft"))||0,u.top+=parseFloat(n.css(r[0],"borderTopWidth"))||0,u.left+=parseFloat(n.css(r[0],"borderLeftWidth"))||0,{top:o.top-u.top,left:o.left-u.left}},offsetParent:function(){return this.map(function(){for(var t=this.offsetParent||q.body;t&&!hi.test(t.nodeName)&&n.css(t,"position")==="static";)t=t.offsetParent;return t})}}),n.each(["Left","Top"],function(t,r){var o="scroll"+r;n.fn[o]=function(u){var c,h;return u===i?(c=this[0],c?(h=a(c),h?"pageXOffset"in h?h[t?"pageYOffset":"pageXOffset"]:n.support.boxModel&&h.document.documentElement[o]||h.document.body[o]:c[o]):null):this.each(function(){h=a(this),h?h.scrollTo(t?n(h).scrollLeft():u,t?u:n(h).scrollTop()):this[o]=u})}}),n.each(["Height","Width"],function(t,r){var o=r.toLowerCase();n.fn["inner"+r]=function(){var u=this[0];return u?u.style?parseFloat(n.css(u,o,"padding")):this[o]():null},n.fn["outer"+r]=function(u){var c=this[0];return c?c.style?parseFloat(n.css(c,o,u?"margin":"border")):this[o]():null},n.fn[o]=function(u){var c=this[0];if(!c)return u==null?null:this;if(n.isFunction(u))return this.each(function(k){var E=n(this);E[o](u.call(this,k,E[o]()))});if(n.isWindow(c)){var h=c.document.documentElement["client"+r],v=c.document.body;return c.document.compatMode==="CSS1Compat"&&h||v&&v["client"+r]||h}if(c.nodeType===9)return Math.max(c.documentElement["client"+r],c.body["scroll"+r],c.documentElement["scroll"+r],c.body["offset"+r],c.documentElement["offset"+r]);if(u===i){var g=n.css(c,o),C=parseFloat(g);return n.isNumeric(C)?C:g}return this.css(o,typeof u=="string"?u:u+"px")}}),e.jQuery=e.$=n})(window);(function(e){var i,a,f="",d="4.1.0",y=Math.PI,S=y/2,T="ontouchstart"in window,A=T?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},M={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},P=["single","double"],$=["ltr","rtl"],X={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},Y={cornerSize:100},se=6,N={init:function(s){i="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,a=pe(),f=be();var l,n=0,m=this.data(),b=this.children();if(s=e.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},X,s),m.opts=s,m.pageObjs={},m.pages={},m.pageWrap={},m.pageZoom={},m.pagePlace={},m.pageMv=[],m.zoom=1,m.totalPages=s.pages||0,m.eventHandlers={touchStart:e.proxy(N._touchStart,this),touchMove:e.proxy(N._touchMove,this),touchEnd:e.proxy(N._touchEnd,this),start:e.proxy(N._eventStart,this)},s.when)for(l in s.when)Se(l,s.when)&&this.bind(l,s.when[l]);for(this.css({position:"relative",width:s.width,height:s.height}),this.turn("display",s.display),s.direction!==""&&this.turn("direction",s.direction),i&&!T&&s.acceleration&&this.transform(fe(0,0,!0)),l=0;l<b.length;l++)e(b[l]).attr("ignore")!="1"&&this.turn("addPage",b[l],++n);return e(this).bind(A.down,m.eventHandlers.touchStart).bind("end",N._eventEnd).bind("pressed",N._eventPressed).bind("released",N._eventReleased).bind("flip",N._flip),e(this).parent().bind("start",m.eventHandlers.start),e(document).bind(A.move,m.eventHandlers.touchMove).bind(A.up,m.eventHandlers.touchEnd),this.turn("page",s.page),m.done=!0,this},addPage:function(s,l){var n,m,b=!1,B=this.data(),oe=B.totalPages+1;if(B.destroying)return!1;if((n=/\bp([0-9]+)\b/.exec(e(s).attr("class")))&&(l=parseInt(n[1],10)),l){if(l==oe)b=!0;else if(l>oe)throw de('Page "'+l+'" cannot be inserted')}else l=oe,b=!0;return l>=1&&l<=oe&&(B.display=="double"?m=l%2?" odd":" even":m="",B.done&&this.turn("stop"),l in B.pageObjs&&N._movePages.call(this,l,1),b&&(B.totalPages=oe),B.pageObjs[l]=e(s).css({float:"left"}).addClass("page p"+l+m),!q()&&B.pageObjs[l].hasClass("hard")&&B.pageObjs[l].removeClass("hard"),N._addPage.call(this,l),N._removeFromDOM.call(this)),this},_addPage:function(s){var l=this.data(),n=l.pageObjs[s];if(n)if(N._necessPage.call(this,s)){if(!l.pageWrap[s]){l.pageWrap[s]=e("<div/>",{class:"page-wrapper",page:s,css:{position:"absolute",overflow:"hidden"}}),this.append(l.pageWrap[s]),l.pagePlace[s]||(l.pagePlace[s]=s,l.pageObjs[s].appendTo(l.pageWrap[s]));var m=N._pageSize.call(this,s,!0);n.css({width:m.width,height:m.height}),l.pageWrap[s].css(m)}l.pagePlace[s]==s&&N._makeFlip.call(this,s)}else l.pagePlace[s]=0,l.pageObjs[s]&&l.pageObjs[s].remove()},hasPage:function(s){return Se(s,this.data().pageObjs)},center:function(s){var l=this.data(),n=e(this).turn("size"),m=0;if(!l.noCenter){if(l.display=="double"){var b=this.turn("view",s||l.tpage||l.page);l.direction=="ltr"?b[0]?b[1]||(m+=n.width/4):m-=n.width/4:b[0]?b[1]||(m-=n.width/4):m+=n.width/4}e(this).css({marginLeft:m})}return this},destroy:function(){var s=this,l=this.data(),n=["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"];if(Te("destroying",this)!="prevented"){for(l.destroying=!0,e.each(n,function(m,b){s.unbind(b)}),this.parent().unbind("start",l.eventHandlers.start),e(document).unbind(A.move,l.eventHandlers.touchMove).unbind(A.up,l.eventHandlers.touchEnd);l.totalPages!==0;)this.turn("removePage",l.totalPages);return l.fparent&&l.fparent.remove(),l.shadow&&l.shadow.remove(),this.removeData(),l=null,this}},is:function(){return typeof this.data().pages=="object"},zoom:function(s){var l=this.data();if(typeof s=="number"){if(s<.001||s>100)throw de(s+" is not a value for zoom");if(Te("zooming",this,[s,l.zoom])=="prevented")return this;var n=this.turn("size"),m=this.turn("view"),b=1/l.zoom,B=Math.round(n.width*b*s),oe=Math.round(n.height*b*s);l.zoom=s,e(this).turn("stop").turn("size",B,oe),l.opts.autoCenter&&this.turn("center"),N._updateShadow.call(this);for(var Q=0;Q<m.length;Q++)m[Q]&&l.pageZoom[m[Q]]!=l.zoom&&(this.trigger("zoomed",[m[Q],m,l.pageZoom[m[Q]],l.zoom]),l.pageZoom[m[Q]]=l.zoom);return this}else return l.zoom},_pageSize:function(s,l){var n=this.data(),m={};if(n.display=="single")m.width=this.width(),m.height=this.height(),l&&(m.top=0,m.left=0,m.right="auto");else{var b=this.width()/2,B=this.height();if(n.pageObjs[s].hasClass("own-size")?(m.width=n.pageObjs[s].width(),m.height=n.pageObjs[s].height()):(m.width=b,m.height=B),l){var oe=s%2;m.top=(B-m.height)/2,n.direction=="ltr"?(m[oe?"right":"left"]=b-m.width,m[oe?"left":"right"]="auto"):(m[oe?"left":"right"]=b-m.width,m[oe?"right":"left"]="auto")}}return m},_makeFlip:function(s){var l=this.data();if(!l.pages[s]&&l.pagePlace[s]==s){var n=l.display=="single",m=s%2;l.pages[s]=l.pageObjs[s].css(N._pageSize.call(this,s)).flip({page:s,next:m||n?s+1:s-1,turn:this}).flip("disable",l.disabled),N._setPageLoc.call(this,s),l.pageZoom[s]=l.zoom}return l.pages[s]},_makeRange:function(){var s,l,n=this.data();if(!(n.totalPages<1))for(l=this.turn("range"),s=l[0];s<=l[1];s++)N._addPage.call(this,s)},range:function(s){var l,n,m,b,B=this.data();if(s=s||B.tpage||B.page||1,b=N._view.call(this,s),s<1||s>B.totalPages)throw de('"'+s+'" is not a valid page');return b[1]=b[1]||b[0],b[0]>=1&&b[1]<=B.totalPages?(l=Math.floor((se-2)/2),B.totalPages-b[1]>b[0]?(n=Math.min(b[0]-1,l),m=2*l-n):(m=Math.min(B.totalPages-b[1],l),n=2*l-m)):(n=se-1,m=se-1),[Math.max(1,b[0]-n),Math.min(B.totalPages,b[1]+m)]},_necessPage:function(s){if(s===0)return!0;var l=this.turn("range");return this.data().pageObjs[s].hasClass("fixed")||s>=l[0]&&s<=l[1]},_removeFromDOM:function(){var s,l=this.data();for(s in l.pageWrap)Se(s,l.pageWrap)&&!N._necessPage.call(this,s)&&N._removePageFromDOM.call(this,s)},_removePageFromDOM:function(s){var l=this.data();if(l.pages[s]){var n=l.pages[s].data();L._moveFoldingPage.call(l.pages[s],!1),n.f&&n.f.fwrapper&&n.f.fwrapper.remove(),l.pages[s].removeData(),l.pages[s].remove(),delete l.pages[s]}l.pageObjs[s]&&l.pageObjs[s].remove(),l.pageWrap[s]&&(l.pageWrap[s].remove(),delete l.pageWrap[s]),N._removeMv.call(this,s),delete l.pagePlace[s],delete l.pageZoom[s]},removePage:function(s){var l=this.data();if(s=="*")for(;l.totalPages!==0;)this.turn("removePage",l.totalPages);else{if(s<1||s>l.totalPages)throw de("The page "+s+" doesn't exist");l.pageObjs[s]&&(this.turn("stop"),N._removePageFromDOM.call(this,s),delete l.pageObjs[s]),N._movePages.call(this,s,-1),l.totalPages=l.totalPages-1,l.page>l.totalPages?(l.page=null,N._fitPage.call(this,l.totalPages)):(N._makeRange.call(this),this.turn("update"))}return this},_movePages:function(s,l){var n,m=this,b=this.data(),B=b.display=="single",oe=function(Q){var he=Q+l,Re=he%2,De=Re?" odd ":" even ";b.pageObjs[Q]&&(b.pageObjs[he]=b.pageObjs[Q].removeClass("p"+Q+" odd even").addClass("p"+he+De)),b.pagePlace[Q]&&b.pageWrap[Q]&&(b.pagePlace[he]=he,b.pageObjs[he].hasClass("fixed")?b.pageWrap[he]=b.pageWrap[Q].attr("page",he):b.pageWrap[he]=b.pageWrap[Q].css(N._pageSize.call(m,he,!0)).attr("page",he),b.pages[Q]&&(b.pages[he]=b.pages[Q].flip("options",{page:he,next:B||Re?he+1:he-1})),l&&(delete b.pages[Q],delete b.pagePlace[Q],delete b.pageZoom[Q],delete b.pageObjs[Q],delete b.pageWrap[Q]))};if(l>0)for(n=b.totalPages;n>=s;n--)oe(n);else for(n=s;n<=b.totalPages;n++)oe(n)},display:function(s){var l=this.data(),n=l.display;if(s===void 0)return n;if(e.inArray(s,P)==-1)throw de('"'+s+'" is not a value for display');switch(s){case"single":l.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),l.pageObjs[0]=e("<div />",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":l.pageObjs[0]&&(this.turn("stop").css({overflow:""}),l.pageObjs[0].remove(),delete l.pageObjs[0]),this.removeClass("shadow");break}if(l.display=s,n){var m=this.turn("size");N._movePages.call(this,1,0),this.turn("size",m.width,m.height).turn("update")}return this},direction:function(s){var l=this.data();if(s===void 0)return l.direction;if(s=s.toLowerCase(),e.inArray(s,$)==-1)throw de('"'+s+'" is not a value for direction');return s=="rtl"&&e(this).attr("dir","ltr").css({direction:"ltr"}),l.direction=s,l.done&&this.turn("size",e(this).width(),e(this).height()),this},animating:function(){return this.data().pageMv.length>0},corner:function(){var s,l,n=this.data();for(l in n.pages)if(Se(l,n.pages)&&(s=n.pages[l].flip("corner")))return s;return!1},data:function(){return this.data()},disable:function(s){var l,n=this.data(),m=this.turn("view");n.disabled=s===void 0||s===!0;for(l in n.pages)Se(l,n.pages)&&n.pages[l].flip("disable",n.disabled?!0:e.inArray(parseInt(l,10),m)==-1);return this},disabled:function(s){return s===void 0?this.data().disabled===!0:this.turn("disable",s)},size:function(s,l){if(s===void 0||l===void 0)return{width:this.width(),height:this.height()};this.turn("stop");var n,m,b=this.data(),B=b.display=="double"?s/2:s;this.css({width:s,height:l}),b.pageObjs[0]&&b.pageObjs[0].css({width:B,height:l});for(n in b.pageWrap)Se(n,b.pageWrap)&&(m=N._pageSize.call(this,n,!0),b.pageObjs[n].css({width:m.width,height:m.height}),b.pageWrap[n].css(m),b.pages[n]&&b.pages[n].css({width:m.width,height:m.height}));return this.turn("resize"),this},resize:function(){var s,l=this.data();for(l.pages[0]&&(l.pageWrap[0].css({left:-this.width()}),l.pages[0].flip("resize",!0)),s=1;s<=l.totalPages;s++)l.pages[s]&&l.pages[s].flip("resize",!0);N._updateShadow.call(this),l.opts.autoCenter&&this.turn("center")},_removeMv:function(s){var l,n=this.data();for(l=0;l<n.pageMv.length;l++)if(n.pageMv[l]==s)return n.pageMv.splice(l,1),!0;return!1},_addMv:function(s){var l=this.data();N._removeMv.call(this,s),l.pageMv.push(s)},_view:function(s){var l=this.data();return s=s||l.page,l.display=="double"?s%2?[s-1,s]:[s,s+1]:[s]},view:function(s){var l=this.data(),n=N._view.call(this,s);return l.display=="double"?[n[0]>0?n[0]:0,n[1]<=l.totalPages?n[1]:0]:[n[0]>0&&n[0]<=l.totalPages?n[0]:0]},stop:function(s,l){if(this.turn("animating")){var n,m,b,B=this.data();for(B.tpage&&(B.page=B.tpage,delete B.tpage),n=0;n<B.pageMv.length;n++)!B.pageMv[n]||B.pageMv[n]===s||(b=B.pages[B.pageMv[n]],m=b.data().f.opts,b.flip("hideFoldedPage",l),l||L._moveFoldingPage.call(b,!1),m.force&&(m.next=m.page%2===0?m.page-1:m.page+1,delete m.force))}return this.turn("update"),this},pages:function(s){var l=this.data();if(s){if(s<l.totalPages)for(var n=l.totalPages;n>s;n--)this.turn("removePage",n);return l.totalPages=s,N._fitPage.call(this,l.page),this}else return l.totalPages},_missing:function(s){var l=this.data();if(!(l.totalPages<1)){var n,m=this.turn("range",s),b=[];for(n=m[0];n<=m[1];n++)l.pageObjs[n]||b.push(n);b.length>0&&this.trigger("missing",[b])}},_fitPage:function(s){var l=this.data(),n=this.turn("view",s);if(N._missing.call(this,s),!!l.pageObjs[s]){l.page=s,this.turn("stop");for(var m=0;m<n.length;m++)n[m]&&l.pageZoom[n[m]]!=l.zoom&&(this.trigger("zoomed",[n[m],n,l.pageZoom[n[m]],l.zoom]),l.pageZoom[n[m]]=l.zoom);N._removeFromDOM.call(this),N._makeRange.call(this),N._updateShadow.call(this),this.trigger("turned",[s,n]),this.turn("update"),l.opts.autoCenter&&this.turn("center")}},_turnPage:function(s){var l,n,m=this.data(),b=m.pagePlace[s],B=this.turn("view"),oe=this.turn("view",s);if(m.page!=s){var Q=m.page;if(Te("turning",this,[s,oe])=="prevented"){Q==m.page&&e.inArray(b,m.pageMv)!=-1&&m.pages[b].flip("hideFoldedPage",!0);return}e.inArray(1,oe)!=-1&&this.trigger("first"),e.inArray(m.totalPages,oe)!=-1&&this.trigger("last")}m.display=="single"?(l=B[0],n=oe[0]):B[1]&&s>B[1]?(l=B[1],n=oe[0]):B[0]&&s<B[0]&&(l=B[0],n=oe[1]);var he=m.opts.turnCorners.split(","),Re=m.pages[l].data().f,De=Re.opts,Ie=Re.point;N._missing.call(this,s),m.pageObjs[s]&&(this.turn("stop"),m.page=s,N._makeRange.call(this),m.tpage=n,De.next!=n&&(De.next=n,De.force=!0),this.turn("update"),Re.point=Ie,Re.effect=="hard"?m.direction=="ltr"?m.pages[l].flip("turnPage",s>l?"r":"l"):m.pages[l].flip("turnPage",s>l?"l":"r"):m.direction=="ltr"?m.pages[l].flip("turnPage",he[s>l?1:0]):m.pages[l].flip("turnPage",he[s>l?0:1]))},page:function(s){var l=this.data();if(s===void 0)return l.page;if(!l.disabled&&!l.destroying){if(s=parseInt(s,10),s>0&&s<=l.totalPages)return s!=l.page&&(!l.done||e.inArray(s,this.turn("view"))!=-1?N._fitPage.call(this,s):N._turnPage.call(this,s)),this;throw de("The page "+s+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,N._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,N._view.call(this,this.data().page).shift()-1))},peel:function(s,l){var n=this.data(),m=this.turn("view");if(l=l===void 0?!0:l===!0,s===!1)this.turn("stop",null,l);else if(n.display=="single")n.pages[n.page].flip("peel",s,l);else{var b;n.direction=="ltr"?b=s.indexOf("l")!=-1?m[0]:m[1]:b=s.indexOf("l")!=-1?m[1]:m[0],n.pages[b]&&n.pages[b].flip("peel",s,l)}return this},_addMotionPage:function(){var s=e(this).data().f.opts,l=s.turn;l.data(),N._addMv.call(l,s.page)},_eventStart:function(s,l,n){var m=l.turn.data(),b=m.pageZoom[l.page];if(s.isDefaultPrevented()){N._updateShadow.call(l.turn);return}b&&b!=m.zoom&&(l.turn.trigger("zoomed",[l.page,l.turn.turn("view",l.page),b,m.zoom]),m.pageZoom[l.page]=m.zoom),m.display=="single"&&n&&(n.charAt(1)=="l"&&m.direction=="ltr"||n.charAt(1)=="r"&&m.direction=="rtl"?(l.next=l.next<l.page?l.next:l.page-1,l.force=!0):l.next=l.next>l.page?l.next:l.page+1),N._addMotionPage.call(s.target),N._updateShadow.call(l.turn)},_eventEnd:function(s,l,n){var m=e(s.target);m.data().f;var b=l.turn,B=b.data();if(n){var oe=B.tpage||B.page;(oe==l.next||oe==l.page)&&(delete B.tpage,N._fitPage.call(b,oe||l.next,!0))}else N._removeMv.call(b,l.page),N._updateShadow.call(b),b.turn("update")},_eventPressed:function(s){var l=e(s.target).data().f,n=l.opts.turn,m=n.data();return m.pages,m.mouseAction=!0,n.turn("update"),l.time=new Date().getTime()},_eventReleased:function(s,l){var n,m=e(s.target),b=m.data().f,B=b.opts.turn,oe=B.data();oe.display=="single"?n=l.corner=="br"||l.corner=="tr"?l.x<m.width()/2:l.x>m.width()/2:n=l.x<0||l.x>m.width(),(new Date().getTime()-b.time<200||n)&&(s.preventDefault(),N._turnPage.call(B,b.opts.next)),oe.mouseAction=!1},_flip:function(s){s.stopPropagation();var l=e(s.target).data().f.opts;l.turn.trigger("turn",[l.next]),l.turn.data().opts.autoCenter&&l.turn.turn("center",l.next)},_touchStart:function(){var s=this.data();for(var l in s.pages)if(Se(l,s.pages)&&L._eventStart.apply(s.pages[l],arguments)===!1)return!1},_touchMove:function(){var s=this.data();for(var l in s.pages)Se(l,s.pages)&&L._eventMove.apply(s.pages[l],arguments)},_touchEnd:function(){var s=this.data();for(var l in s.pages)Se(l,s.pages)&&L._eventEnd.apply(s.pages[l],arguments)},calculateZ:function(s){var l,n,m,b,B,oe=this,Q=this.data(),he=this.turn("view"),Re=he[0]||he[1],De=s.length-1,Ie={pageZ:{},partZ:{},pageV:{}},lt=function(nt){var He=oe.turn("view",nt);He[0]&&(Ie.pageV[He[0]]=!0),He[1]&&(Ie.pageV[He[1]]=!0)};for(l=0;l<=De;l++)n=s[l],m=Q.pages[n].data().f.opts.next,b=Q.pagePlace[n],lt(n),lt(m),B=Q.pagePlace[m]==m?m:n,Ie.pageZ[B]=Q.totalPages-Math.abs(Re-B),Ie.partZ[b]=Q.totalPages*2-De+l;return Ie},update:function(){var s,l=this.data();if(this.turn("animating")&&l.pageMv[0]!==0){var n,m,b=this.turn("calculateZ",l.pageMv),B=this.turn("corner"),oe=this.turn("view"),Q=this.turn("view",l.tpage);for(s in l.pageWrap)Se(s,l.pageWrap)&&(m=l.pageObjs[s].hasClass("fixed"),l.pageWrap[s].css({display:b.pageV[s]||m?"":"none",zIndex:(l.pageObjs[s].hasClass("hard")?b.partZ[s]:b.pageZ[s])||(m?-1:0)}),(n=l.pages[s])&&(n.flip("z",b.partZ[s]||null),b.pageV[s]&&n.flip("resize"),l.tpage?n.flip("hover",!1).flip("disable",e.inArray(parseInt(s,10),l.pageMv)==-1&&s!=Q[0]&&s!=Q[1]):n.flip("hover",B===!1).flip("disable",s!=oe[0]&&s!=oe[1])))}else for(s in l.pageWrap)if(Se(s,l.pageWrap)){var he=N._setPageLoc.call(this,s);l.pages[s]&&l.pages[s].flip("disable",l.disabled||he!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var s,l,n,m=this.data(),b=this.width(),B=this.height(),oe=m.display=="single"?b:b/2;s=this.turn("view"),m.shadow||(m.shadow=e("<div />",{class:"shadow",css:D(0,0,0).css}).appendTo(this));for(var Q=0;Q<m.pageMv.length&&!(!s[0]||!s[1]);Q++)s=this.turn("view",m.pages[m.pageMv[Q]].data().f.opts.next),l=this.turn("view",m.pageMv[Q]),s[0]=s[0]&&l[0],s[1]=s[1]&&l[1];switch(s[0]?s[1]?n=3:n=m.direction=="ltr"?2:1:n=m.direction=="ltr"?1:2,n){case 1:m.shadow.css({width:oe,height:B,top:0,left:oe});break;case 2:m.shadow.css({width:oe,height:B,top:0,left:0});break;case 3:m.shadow.css({width:b,height:B,top:0,left:0});break}},_setPageLoc:function(s){var l=this.data(),n=this.turn("view"),m=0;if(s==n[0]||s==n[1]?m=1:(l.display=="single"&&s==n[0]+1||l.display=="double"&&s==n[0]-2||s==n[1]+2)&&(m=2),!this.turn("animating"))switch(m){case 1:l.pageWrap[s].css({zIndex:l.totalPages,display:""});break;case 2:l.pageWrap[s].css({zIndex:l.totalPages-1,display:""});break;case 0:l.pageWrap[s].css({zIndex:0,display:l.pageObjs[s].hasClass("fixed")?"":"none"});break}return m},options:function(s){if(s===void 0)return this.data().opts;var l=this.data();if(e.extend(l.opts,s),s.pages&&this.turn("pages",s.pages),s.page&&this.turn("page",s.page),s.display&&this.turn("display",s.display),s.direction&&this.turn("direction",s.direction),s.width&&s.height&&this.turn("size",s.width,s.height),s.when)for(var n in s.when)Se(n,s.when)&&this.unbind(n).bind(n,s.when[n]);return this},version:function(){return d}},L={init:function(s){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",s),L._addPageWrapper.call(this),this},setData:function(s){var l=this.data();return l.f=e.extend(l.f,s),this},options:function(s){var l=this.data().f;return s?(L.setData.call(this,{opts:e.extend({},l.opts||Y,s)}),this):l.opts},z:function(s){var l=this.data().f;return l.opts["z-index"]=s,l.fwrapper&&l.fwrapper.css({zIndex:s||parseInt(l.parent.css("z-index"),10)||0}),this},_cAllowed:function(){var s=this.data().f,l=s.opts.page,n=s.opts.turn.data(),m=l%2;return s.effect=="hard"?n.direction=="ltr"?[m?"r":"l"]:[m?"l":"r"]:n.display=="single"?l==1?n.direction=="ltr"?M.forward:M.backward:l==n.totalPages?n.direction=="ltr"?M.backward:M.forward:M.all:n.direction=="ltr"?M[m?"forward":"backward"]:M[m?"backward":"forward"]},_cornerActivated:function(s){var l=this.data().f,n=this.width(),m=this.height(),b={x:s.x,y:s.y,corner:""},B=l.opts.cornerSize;if(b.x<=0||b.y<=0||b.x>=n||b.y>=m)return!1;var oe=L._cAllowed.call(this);switch(l.effect){case"hard":if(b.x>n-B)b.corner="r";else if(b.x<B)b.corner="l";else return!1;break;case"sheet":if(b.y<B)b.corner+="t";else if(b.y>=m-B)b.corner+="b";else return!1;if(b.x<=B)b.corner+="l";else if(b.x>=n-B)b.corner+="r";else return!1;break}return!b.corner||e.inArray(b.corner,oe)==-1?!1:b},_isIArea:function(s){var l=this.data().f.parent.offset();return s=T&&s.originalEvent?s.originalEvent.touches[0]:s,L._cornerActivated.call(this,{x:s.pageX-l.left,y:s.pageY-l.top})},_c:function(s,l){switch(l=l||0,s){case"tl":return ee(l,l);case"tr":return ee(this.width()-l,l);case"bl":return ee(l,this.height()-l);case"br":return ee(this.width()-l,this.height()-l);case"l":return ee(l,0);case"r":return ee(this.width()-l,0)}},_c2:function(s){switch(s){case"tl":return ee(this.width()*2,0);case"tr":return ee(-this.width(),0);case"bl":return ee(this.width()*2,this.height());case"br":return ee(-this.width(),this.height());case"l":return ee(this.width()*2,0);case"r":return ee(-this.width(),0)}},_foldingPage:function(){var s=this.data().f;if(s){var l=s.opts;if(l.turn)return s=l.turn.data(),s.display=="single"?l.next>1||l.page>1?s.pageObjs[0]:null:s.pageObjs[l.next]}},_backGradient:function(){var s=this.data().f,l=s.opts.turn.data(),n=l.opts.gradients&&(l.display=="single"||s.opts.page!=2&&s.opts.page!=l.totalPages-1);return n&&!s.bshadow&&(s.bshadow=e("<div/>",D(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(s.parent)),n},type:function(){return this.data().f.effect},resize:function(s){var l=this.data().f,n=l.opts.turn.data(),m=this.width(),b=this.height();switch(l.effect){case"hard":s&&(l.wrapper.css({width:m,height:b}),l.fpage.css({width:m,height:b}),n.opts.gradients&&(l.ashadow.css({width:m,height:b}),l.bshadow.css({width:m,height:b})));break;case"sheet":if(s){var B=Math.round(Math.sqrt(Math.pow(m,2)+Math.pow(b,2)));l.wrapper.css({width:B,height:B}),l.fwrapper.css({width:B,height:B}).children(":first-child").css({width:m,height:b}),l.fpage.css({width:m,height:b}),n.opts.gradients&&l.ashadow.css({width:m,height:b}),L._backGradient.call(this)&&l.bshadow.css({width:m,height:b})}if(l.parent.is(":visible")){var oe=ke(l.parent[0]);l.fwrapper.css({top:oe.top,left:oe.left}),oe=ke(l.opts.turn[0]),l.fparent.css({top:-oe.top,left:-oe.left})}this.flip("z",l.opts["z-index"]);break}},_addPageWrapper:function(){var s=this.data().f,l=s.opts.turn.data(),n=this.parent();if(s.parent=n,!s.wrapper)switch(s.effect){case"hard":var m={};m[f+"transform-style"]="preserve-3d",m[f+"backface-visibility"]="hidden",s.wrapper=e("<div/>",D(0,0,2)).css(m).appendTo(n).prepend(this),s.fpage=e("<div/>",D(0,0,1)).css(m).appendTo(n),l.opts.gradients&&(s.ashadow=e("<div/>",D(0,0,0)).hide().appendTo(n),s.bshadow=e("<div/>",D(0,0,0)));break;case"sheet":if(this.width(),this.height(),s.fparent=s.opts.turn.data().fparent,!s.fparent){var b=e("<div/>",{css:{"pointer-events":"none"}}).hide();b.data().flips=0,b.css(D(0,0,"auto","visible").css).appendTo(s.opts.turn),s.opts.turn.data().fparent=b,s.fparent=b}this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),s.wrapper=e("<div/>",D(0,0,this.css("z-index"))).appendTo(n).prepend(this),s.fwrapper=e("<div/>",D(n.offset().top,n.offset().left)).hide().appendTo(s.fparent),s.fpage=e("<div/>",D(0,0,0,"visible")).css({cursor:"default"}).appendTo(s.fwrapper),l.opts.gradients&&(s.ashadow=e("<div/>",D(0,0,1)).appendTo(s.fpage)),L.setData.call(this,s);break}L.resize.call(this,!0)},_fold:function(s){var l=this.data().f,n=l.opts.turn.data(),m=L._c.call(this,s.corner),b=this.width(),B=this.height();switch(l.effect){case"hard":s.corner=="l"?s.x=Math.min(Math.max(s.x,0),b*2):s.x=Math.max(Math.min(s.x,b),-b);var oe,Q,he,Re,De,Ie=n.totalPages,lt=l.opts["z-index"]||Ie,nt={overflow:"visible"},He=m.x?(m.x-s.x)/b:s.x/b,G=He*90,ge=G<90;switch(s.corner){case"l":Re="0% 50%",De="100% 50%",ge?(oe=0,Q=l.opts.next-1>0,he=1):(oe="100%",Q=l.opts.page+1<Ie,he=0);break;case"r":Re="100% 50%",De="0% 50%",G=-G,b=-b,ge?(oe=0,Q=l.opts.next+1<Ie,he=0):(oe="-100%",Q=l.opts.page!=1,he=1);break}nt[f+"perspective-origin"]=De,l.wrapper.transform("rotateY("+G+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",De),l.fpage.transform("translateX("+b+"px) rotateY("+(180+G)+"deg)",Re),l.parent.css(nt),ge?(He=-He+1,l.wrapper.css({zIndex:lt+1}),l.fpage.css({zIndex:lt})):(He=He-1,l.wrapper.css({zIndex:lt}),l.fpage.css({zIndex:lt+1})),n.opts.gradients&&(Q?l.ashadow.css({display:"",left:oe,backgroundColor:"rgba(0,0,0,"+.5*He+")"}).transform("rotateY(0deg)"):l.ashadow.hide(),l.bshadow.css({opacity:-He+1}),ge?l.bshadow.parent()[0]!=l.wrapper[0]&&l.bshadow.appendTo(l.wrapper):l.bshadow.parent()[0]!=l.fpage[0]&&l.bshadow.appendTo(l.fpage),Be(l.bshadow,ee(he*100,0),ee((-he+1)*100,0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var le=this,Ee=0,Ne,Xe,Ye,rt,et,Pt,rn,pt=ee(0,0),mt=ee(0,0),Ge=ee(0,0),bn=L._foldingPage.call(this),kt=n.opts.acceleration,Bt=l.wrapper.height(),xt=s.corner.substr(0,1)=="t",yt=s.corner.substr(1,1)=="l",wt=function(){var qe=ee(0,0),Je=ee(0,0);qe.x=m.x?m.x-s.x:s.x,a?qe.y=m.y?m.y-s.y:s.y:qe.y=0,Je.x=yt?b-qe.x/2:s.x+qe.x/2,Je.y=qe.y/2;var ze=S-Math.atan2(qe.y,qe.x),V=ze-Math.atan2(Je.y,Je.x),ue=Math.max(0,Math.sin(V)*Math.sqrt(Math.pow(Je.x,2)+Math.pow(Je.y,2)));if(Ee=ye(ze),Ge=ee(ue*Math.sin(ze),ue*Math.cos(ze)),ze>S&&(Ge.x=Ge.x+Math.abs(Ge.y*qe.y/qe.x),Ge.y=0,Math.round(Ge.x*Math.tan(y-ze))<B))return s.y=Math.sqrt(Math.pow(B,2)+2*Je.x*qe.x),xt&&(s.y=B-s.y),wt();if(ze>S){var we=y-ze,_e=Bt-B/Math.sin(we);pt=ee(Math.round(_e*Math.cos(we)),Math.round(_e*Math.sin(we))),yt&&(pt.x=-pt.x),xt&&(pt.y=-pt.y)}Ne=Math.round(Ge.y/Math.tan(ze)+Ge.x);var We=b-Ne,Ke=We*Math.cos(ze*2),ct=We*Math.sin(ze*2);if(mt=ee(Math.round(yt?We-Ke:Ne+Ke),Math.round(xt?ct:B-ct)),n.opts.gradients){et=We*Math.sin(ze);var Fe=L._c2.call(le,s.corner),$e=Math.sqrt(Math.pow(Fe.x-s.x,2)+Math.pow(Fe.y-s.y,2))/b;rn=Math.sin(S*($e>1?2-$e:$e)),Pt=Math.min($e,1),rt=et>100?(et-100)/et:0,Xe=ee(et*Math.sin(ze)/b*100,et*Math.cos(ze)/B*100),L._backGradient.call(le)&&(Ye=ee(et*1.2*Math.sin(ze)/b*100,et*1.2*Math.cos(ze)/B*100),yt||(Ye.x=100-Ye.x),xt||(Ye.y=100-Ye.y))}return Ge.x=Math.round(Ge.x),Ge.y=Math.round(Ge.y),!0},Ft=function(qe,Je,ze,V){var ue=["0","auto"],we=(b-Bt)*ze[0]/100,_e=(B-Bt)*ze[1]/100,We={left:ue[Je[0]],top:ue[Je[1]],right:ue[Je[2]],bottom:ue[Je[3]]},Ke={},ct=V!=90&&V!=-90?yt?-1:1:0,Fe=ze[0]+"% "+ze[1]+"%";le.css(We).transform(ve(V)+fe(qe.x+ct,qe.y,kt),Fe),l.fpage.css(We).transform(ve(V)+fe(qe.x+mt.x-pt.x-b*ze[0]/100,qe.y+mt.y-pt.y-B*ze[1]/100,kt)+ve((180/V-2)*V),Fe),l.wrapper.transform(fe(-qe.x+we-ct,-qe.y+_e,kt)+ve(-V),Fe),l.fwrapper.transform(fe(-qe.x+pt.x+we,-qe.y+pt.y+_e,kt)+ve(-V),Fe),n.opts.gradients&&(ze[0]&&(Xe.x=100-Xe.x),ze[1]&&(Xe.y=100-Xe.y),Ke["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*rn+")",bn.css(Ke),Be(l.ashadow,ee(yt?100:0,xt?0:100),ee(Xe.x,Xe.y),[[rt,"rgba(0,0,0,0)"],[(1-rt)*.8+rt,"rgba(0,0,0,"+.2*Pt+")"],[1,"rgba(255,255,255,"+.2*Pt+")"]],3),L._backGradient.call(le)&&Be(l.bshadow,ee(yt?0:100,xt?0:100),ee(Ye.x,Ye.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*Pt+")"],[1,"rgba(0,0,0,0)"]],3))};switch(s.corner){case"l":break;case"r":break;case"tl":s.x=Math.max(s.x,1),wt(),Ft(Ge,[1,0,0,1],[100,0],Ee);break;case"tr":s.x=Math.min(s.x,b-1),wt(),Ft(ee(-Ge.x,Ge.y),[0,0,0,1],[0,0],-Ee);break;case"bl":s.x=Math.max(s.x,1),wt(),Ft(ee(Ge.x,-Ge.y),[1,1,0,0],[100,100],-Ee);break;case"br":s.x=Math.min(s.x,b-1),wt(),Ft(ee(-Ge.x,-Ge.y),[0,1,1,0],[0,100],Ee);break}break}l.point=s},_moveFoldingPage:function(s){var l=this.data().f;if(l){var n=l.opts.turn,m=n.data(),b=m.pagePlace;if(s){var B=l.opts.next;if(b[B]!=l.opts.page){l.folding&&L._moveFoldingPage.call(this,!1);var oe=L._foldingPage.call(this);oe.appendTo(l.fpage),b[B]=l.opts.page,l.folding=B}n.turn("update")}else if(l.folding){if(m.pages[l.folding]){var Q=m.pages[l.folding].data().f;m.pageObjs[l.folding].appendTo(Q.wrapper)}else m.pageWrap[l.folding]&&m.pageObjs[l.folding].appendTo(m.pageWrap[l.folding]);l.folding in b&&(b[l.folding]=l.folding),delete l.folding}}},_showFoldedPage:function(s,l){var n=L._foldingPage.call(this),m=this.data(),b=m.f,B=b.visible;if(n){if(!B||!b.point||b.point.corner!=s.corner){var oe=b.status=="hover"||b.status=="peel"||b.opts.turn.data().mouseAction?s.corner:null;if(B=!1,Te("start",this,[b.opts,oe])=="prevented")return!1}if(l){var Q=this,he=b.point&&b.point.corner==s.corner?b.point:L._c.call(this,s.corner,1);this.animatef({from:[he.x,he.y],to:[s.x,s.y],duration:500,frame:function(Re){s.x=Math.round(Re[0]),s.y=Math.round(Re[1]),L._fold.call(Q,s)}})}else L._fold.call(this,s),m.effect&&!m.effect.turning&&this.animatef(!1);if(!B)switch(b.effect){case"hard":b.visible=!0,L._moveFoldingPage.call(this,!0),b.fpage.show(),b.opts.shadows&&b.bshadow.show();break;case"sheet":b.visible=!0,b.fparent.show().data().flips++,L._moveFoldingPage.call(this,!0),b.fwrapper.show(),b.bshadow&&b.bshadow.show();break}return!0}return!1},hide:function(){var s=this.data().f,l=s.opts.turn.data(),n=L._foldingPage.call(this);switch(s.effect){case"hard":l.opts.gradients&&(s.bshadowLoc=0,s.bshadow.remove(),s.ashadow.hide()),s.wrapper.transform(""),s.fpage.hide();break;case"sheet":--s.fparent.data().flips===0&&s.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),s.wrapper.transform(""),s.fwrapper.hide(),s.bshadow&&s.bshadow.hide(),n.transform("");break}return s.visible=!1,this},hideFoldedPage:function(s){var l=this.data().f;if(l.point){var n=this,m=l.point,b=function(){l.point=null,l.status="",n.flip("hide"),n.trigger("end",[l.opts,!1])};if(s){var B=L._c.call(this,m.corner),oe=m.corner.substr(0,1)=="t",Q=oe?Math.min(0,m.y-B.y)/2:Math.max(0,m.y-B.y)/2,he=ee(m.x,m.y+Q),Re=ee(B.x,B.y-Q);this.animatef({from:0,to:1,frame:function(De){var Ie=te(m,he,Re,B,De);m.x=Ie.x,m.y=Ie.y,L._fold.call(n,m)},complete:b,duration:800,hiding:!0})}else this.animatef(!1),b()}},turnPage:function(s){var l=this,n=this.data().f,m=n.opts.turn.data();s={corner:n.corner?n.corner.corner:s||L._cAllowed.call(this)[0]};var b=n.point||L._c.call(this,s.corner,n.opts.turn?m.opts.elevation:0),B=L._c2.call(this,s.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(oe){var Q=te(b,b,B,B,oe);s.x=Q.x,s.y=Q.y,L._showFoldedPage.call(l,s)},complete:function(){l.trigger("end",[n.opts,!0])},duration:m.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(s){var l=this.data().f,n=l.opts.turn;if(!l.corner&&!l.disabled&&!this.flip("isTurning")&&l.opts.page==n.data().pagePlace[l.opts.page]){if(l.corner=L._isIArea.call(this,s),l.corner&&L._foldingPage.call(this))return this.trigger("pressed",[l.point]),L._showFoldedPage.call(this,l.corner),!1;l.corner=null}},_eventMove:function(s){var l=this.data().f;if(!l.disabled){if(s=T?s.originalEvent.touches:[s],l.corner){var n=l.parent.offset();l.corner.x=s[0].pageX-n.left,l.corner.y=s[0].pageY-n.top,L._showFoldedPage.call(this,l.corner)}else if(l.hover&&!this.data().effect&&this.is(":visible")){var m=L._isIArea.call(this,s[0]);if(m){if(l.effect=="sheet"&&m.corner.length==2||l.effect=="hard"){l.status="hover";var b=L._c.call(this,m.corner,l.opts.cornerSize/2);m.x=b.x,m.y=b.y,L._showFoldedPage.call(this,m,!0)}}else l.status=="hover"&&(l.status="",L.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var s=this.data().f,l=s.corner;!s.disabled&&l&&Te("released",this,[s.point||l])!="prevented"&&L.hideFoldedPage.call(this,!0),s.corner=null},disable:function(s){return L.setData.call(this,{disabled:s}),this},hover:function(s){return L.setData.call(this,{hover:s}),this},peel:function(s,l){var n=this.data().f;if(s){if(e.inArray(s,M.all)==-1)throw de("Corner "+s+" is not permitted");if(e.inArray(s,L._cAllowed.call(this))!=-1){var m=L._c.call(this,s,n.opts.cornerSize/2);n.status="peel",L._showFoldedPage.call(this,{corner:s,x:m.x,y:m.y},l)}}else n.status="",L.hideFoldedPage.call(this,l);return this}};function Z(s,l,n){if(!n[0]||typeof n[0]=="object")return l.init.apply(s,n);if(l[n[0]])return l[n[0]].apply(s,Array.prototype.slice.call(n,1));throw de(n[0]+" is not a method or property")}function D(s,l,n,m){return{css:{position:"absolute",top:s,left:l,overflow:m||"hidden",zIndex:n||"auto"}}}function te(s,l,n,m,b){var B=1-b,oe=B*B*B,Q=b*b*b;return ee(Math.round(oe*s.x+3*b*B*B*l.x+3*b*b*B*n.x+Q*m.x),Math.round(oe*s.y+3*b*B*B*l.y+3*b*b*B*n.y+Q*m.y))}function ye(s){return s/y*180}function ee(s,l){return{x:s,y:l}}function pe(){var s;if(s=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent)){var l=parseFloat(s[1]);return l>534.3}else return!0}function fe(s,l,n){return i&&n?" translate3d("+s+"px,"+l+"px, 0px) ":" translate("+s+"px, "+l+"px) "}function ve(s){return" rotate("+s+"deg) "}function Se(s,l){return Object.prototype.hasOwnProperty.call(l,s)}function be(){for(var s=["Moz","Webkit","Khtml","O","ms"],l=s.length,n="";l--;)s[l]+"Transform"in document.body.style&&(n="-"+s[l].toLowerCase()+"-");return n}function Pe(){var s,l=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(s in n)if(l.style[s]!==void 0)return n[s]}function Be(s,l,n,m,b){var B,oe=[];if(f=="-webkit-"){for(B=0;B<b;B++)oe.push("color-stop("+m[B][0]+", "+m[B][1]+")");s.css({"background-image":"-webkit-gradient(linear, "+l.x+"% "+l.y+"%,"+n.x+"% "+n.y+"%, "+oe.join(",")+" )"})}else{l={x:l.x/100*s.width(),y:l.y/100*s.height()},n={x:n.x/100*s.width(),y:n.y/100*s.height()};var Q=n.x-l.x,he=n.y-l.y,Re=Math.atan2(he,Q),De=Re-Math.PI/2,Ie=Math.abs(s.width()*Math.sin(De))+Math.abs(s.height()*Math.cos(De)),lt=Math.sqrt(he*he+Q*Q),nt=ee(n.x<l.x?s.width():0,n.y<l.y?s.height():0),He=Math.tan(Re),G=-1/He,ge=(G*nt.x-nt.y-He*l.x+l.y)/(G-He),le={x:ge,y:G*ge-G*nt.x+nt.y},Ee=Math.sqrt(Math.pow(le.x-l.x,2)+Math.pow(le.y-l.y,2));for(B=0;B<b;B++)oe.push(" "+m[B][1]+" "+(Ee+lt*m[B][0])*100/Ie+"%");s.css({"background-image":f+"linear-gradient("+-Re+"rad,"+oe.join(",")+")"})}}function Te(s,l,n){var m=e.Event(s);return l.trigger(m,n),m.isDefaultPrevented()?"prevented":m.isPropagationStopped()?"stopped":""}function de(s){function l(n){this.name="TurnJsError",this.message=n}return l.prototype=new Error,l.prototype.constructor=l,new l(s)}function ke(s){var l={top:0,left:0};do l.left+=s.offsetLeft,l.top+=s.offsetTop;while(s=s.offsetParent);return l}function q(){return navigator.userAgent.indexOf("MSIE 9.0")==-1}window.requestAnim=function(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(s){window.setTimeout(s,1e3/60)}}(),e.extend(e.fn,{flip:function(){return Z(e(this[0]),L,arguments)},turn:function(){return Z(e(this[0]),N,arguments)},transform:function(s,l){var n={};return l&&(n[f+"transform-origin"]=l),n[f+"transform"]=s,this.css(n)},animatef:function(s){var l=this.data();if(l.effect&&l.effect.stop(),s){s.to.length||(s.to=[s.to]),s.from.length||(s.from=[s.from]);for(var n=[],m=s.to.length,b=!0,B=this,oe=new Date().getTime(),Q=function(){if(!(!l.effect||!b)){for(var Re=[],De=Math.min(s.duration,new Date().getTime()-oe),Ie=0;Ie<m;Ie++)Re.push(l.effect.easing(1,De,s.from[Ie],n[Ie],s.duration));s.frame(m==1?Re[0]:Re),De==s.duration?(delete l.effect,B.data(l),s.complete&&s.complete()):window.requestAnim(Q)}},he=0;he<m;he++)n.push(s.to[he]-s.from[he]);l.effect=e.extend({stop:function(){b=!1},easing:function(Re,De,Ie,lt,nt){return lt*Math.sqrt(1-(De=De/nt-1)*De)+Ie}},s),this.data(l),Q()}else delete l.effect}}),e.isTouch=T,e.mouseEvents=A,e.cssPrefix=be,e.cssTransitionEnd=Pe,e.findPos=ke})(jQuery);const uo={grades:[{text:"全部年级",value:""},{text:"一年级",value:1},{text:"二年级",value:2},{text:"三年级",value:3},{text:"四年级",value:4},{text:"五年级",value:5},{text:"六年级",value:6},{text:"七年级",value:7},{text:"八年级",value:8},{text:"九年级",value:9}],bookTypes:{LAST:"上册",NEXT:"下册"}},qp=st({name:"courseware-list",setup(){po();const e=Ae(!1),i=()=>{vo({api:"goBack"})},a=En({currentGradeNum:0,page:1,rows:999,type:"COURSEWARE"}),f=Ue(()=>uo.grades.map((D,te)=>({...D,color:a.currentGradeNum===te?"var(--van-primary-color)":"",className:a.currentGradeNum===te?"fontBlod":""}))),d=(D,te)=>{a.currentGradeNum=te,P()},y=Ae(!1),S=En({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},showBook:!1,book:{}}),T=async()=>{var te;S.loading=!0;const D=await ru({...a,currentGradeNum:a.currentGradeNum?a.currentGradeNum:""});(D==null?void 0:D.code)===200&&Array.isArray((te=D==null?void 0:D.data)==null?void 0:te.rows)&&(S.list=D.data.rows.map(ye=>(ye.load=!1,ye.key=Date.now()+ye.id,ye))),S.loading=!1,y.value=!0},A=async()=>{var te,ye,ee;S.loading=!0;const D=await iu({clientType:"STUDENT",userId:(ye=(te=ls.user)==null?void 0:te.data)==null?void 0:ye.id,page:a.page,rows:a.rows,currentGradeNum:a.currentGradeNum?a.currentGradeNum:""});(D==null?void 0:D.code)===200&&Array.isArray((ee=D==null?void 0:D.data)==null?void 0:ee.rows)&&(S.list=D.data.rows.map(pe=>(pe.name=`${pe.name}`,pe.load=!1,pe.favoriteFlag=!0,pe.key=Date.now()+pe.id,pe))),S.loading=!1},M=()=>{S.list=[],S.tab==="all"&&T(),S.tab==="favorite"&&A()},P=()=>{M()};Et(()=>{M()});const $=async D=>{D.favoriteFlag?await ou({lessonCoursewareId:D.id}):(await au({lessonCoursewareId:D.id}),M())};let X=null;const Y=(D,te=300)=>{X&&clearTimeout(X),X=setTimeout(D,te)},se=async D=>{var ye;const te=await su(D.id);(te==null?void 0:te.code)==200&&Array.isArray((ye=te==null?void 0:te.data)==null?void 0:ye.lessonList)&&(S.details=te.data.lessonList||[],S.bookData=te.data,console.log("🚀 ~ data.details:",S.details))},N=D=>{const te=document.querySelector(`[data-id="${D}"]`);if(!te)return;const ye=te.getBoundingClientRect();S.book=ye},L=D=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{D()})})},Z=async D=>{await se(D),N(D.id),L(()=>{S.showBook=!0})};return()=>ie("div",{class:dt.container},[ie("div",{class:dt.head,style:{opacity:S.showBook?0:""}},[ie("div",{class:dt.back,onClick:i},[ie("img",{src:Oo},null)]),ie(Fs,{class:dt.tabs,active:S.tab,"onUpdate:active":D=>S.tab=D,onChange:()=>P()},{default:()=>[ie(bi,{title:"全部教材",name:"all"},null),ie(bi,{name:"favorite"},{title:()=>ie("div",{id:"courseware-2"},[vt("我的收藏")])})]}),ie(Bl,{show:e.value,"onUpdate:show":D=>e.value=D,class:dt.popover,actions:f.value,onSelect:d},{reference:()=>ie(hn,Mn({class:dt.downBtn,round:!0,size:"small"},{id:"courseware-3"}),{default:()=>[uo.grades[a.currentGradeNum].text," ",ie("svg",{class:[dt.icon,e.value?dt.iconUp:""],width:"9px",height:"5px",viewBox:"0 0 9 5",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[ie("title",null,[vt("三角形")]),ie("g",{id:"演示用",stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},[ie("g",{id:"全部教材-筛选",transform:"translate(-769.000000, -35.000000)",fill:"currentColor"},[ie("g",{id:"编组-3",transform:"translate(696.000000, 20.000000)"},[ie("g",{id:"筛选目录备份-2",transform:"translate(13.000000, 7.000000)"},[ie("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)])])])])])]})})]),ie("div",{class:dt.content},[ie("div",{class:[dt.wrap,S.list.length<=0&&!S.loading?dt.emtpyWrap:""]},[S.list.map((D,te)=>ie("div",{class:[dt.wrapItem,S.bookData.id===D.id&&S.showBook?dt.wrapItemHide:""],key:D.key,onClick:()=>Z(D)},[ie(Sp,Mn({"data-id":D.id},{id:te==0?"courseware-0":""},{class:[dt.cover,D.load?dt.loaded:""],objectFit:"cover",src:D.coverImg,onLoad:()=>{D.load=!0},onError:()=>{D.load=!0}}),null),ie("div",{class:dt.name},[D.name]),ie("div",{id:te===0?"courseware-1":"",class:dt.favoriteBtn,onClick:ye=>{ye.stopPropagation(),D.favoriteFlag=!D.favoriteFlag,Y(()=>$(D))}},[ie(Tp,{isFavorite:D.favoriteFlag},null)])])),S.list.length<=0&&!S.loading&&ie(ss,{description:"暂无数据"},null)])]),ie(Lp,{show:S.showBook,bookData:S.bookData,rect:S.book,onClose:()=>{S.showBook=!1}},null),y.value?ie(Bp,null,null):null])}});export{uo as BOOK_DATA,qp as default};
|