index-c01dcca6.js 243 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  1. import{r as Te,w as Zt,c as Ia,d as ft,y as Ft,ax as zt,ay as Qt,f as Wa,a as ye,V as ja,h as Lr,ae as Ha,F as Jt,m as sr,ag as $a,n as qa,t as On,a3 as Ua,z as wr,az as ui,a9 as Xa,I as Va,aA as Ya,k as Ga,D as Cn,A as oo,aB as Ka,e as Ue,aC as ao,aD as Za,aE as Q,aF as Ja,aG as Qa,aH as hn,aI as so,aJ as Xt,T as ln,aK as un,v as lo,g as Wn,aL as es,aM as ts,aN as ns,q as uo,x as br,E as rs,a5 as co,C as is,a0 as os,M as as}from"./index-43e0e469.js";import{q as ss}from"./base-aba1ba3e.js";import{w as ci,q as ls,o as pt,a as lt,i as xr,b as Br,S as jn,c as Ot,g as Yn,r as Gn,d as us,e as cs,f as Fr,h as fs,M as zr,t as pn,j as Sr,k as ds,U as fi,l as di,m as Bn,n as hs,p as ps,s as vs,u as gs,v as ms,x as ys,y as ws,z as Ir,A as bs,B as fo,C as Ar,D as xs,E as Je,F as Ve,G as Kn,H as Ss,I as Vt,J as Ut,K as Rt,L as vn,N as Wr,O as Fn,P as As,Q as Hn,V as Cs,R as Ts,T as Ms,W as Es,X as hi,Y as lr,Z as ho,_ as Os,$ as pi,a0 as po,a1 as Ps,a2 as ks,a3 as mn,a4 as Pn,a5 as vo,a6 as Rs,a7 as go,a8 as _s,a9 as Ns,aa as Ds}from"./fade-in-scale-up.cssr-04459f5d.js";import{T as Ls,a as vi}from"./index-82bae92f.js";import"./use-tab-status-aa807824.js";import"./index-54078e5f.js";function St(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var i=e.ownerDocument;return i&&i.defaultView||window}return e}function jr(e){var i=St(e).Element;return e instanceof i||e instanceof Element}function xt(e){var i=St(e).HTMLElement;return e instanceof i||e instanceof HTMLElement}function mo(e){if(typeof ShadowRoot>"u")return!1;var i=St(e).ShadowRoot;return e instanceof i||e instanceof ShadowRoot}var dn=Math.round;function Cr(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Bs(){return!/^((?!chrome|android).)*safari/i.test(Cr())}function $n(e,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);var f=e.getBoundingClientRect(),d=1,g=1;i&&xt(e)&&(d=e.offsetWidth>0&&dn(f.width)/e.offsetWidth||1,g=e.offsetHeight>0&&dn(f.height)/e.offsetHeight||1);var A=jr(e)?St(e):window,T=A.visualViewport,C=!Bs()&&a,E=(f.left+(C&&T?T.offsetLeft:0))/d,R=(f.top+(C&&T?T.offsetTop:0))/g,F=f.width/d,G=f.height/g;return{width:F,height:G,top:R,right:E+F,bottom:R+G,left:E,x:E,y:R}}function yo(e){var i=St(e),a=i.pageXOffset,f=i.pageYOffset;return{scrollLeft:a,scrollTop:f}}function Fs(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function zs(e){return e===St(e)||!xt(e)?yo(e):Fs(e)}function Pt(e){return e?(e.nodeName||"").toLowerCase():null}function Zn(e){return((jr(e)?e.ownerDocument:e.document)||window.document).documentElement}function Is(e){return $n(Zn(e)).left+yo(e).scrollLeft}function kt(e){return St(e).getComputedStyle(e)}function Hr(e){var i=kt(e),a=i.overflow,f=i.overflowX,d=i.overflowY;return/auto|scroll|overlay|hidden/.test(a+d+f)}function Ws(e){var i=e.getBoundingClientRect(),a=dn(i.width)/e.offsetWidth||1,f=dn(i.height)/e.offsetHeight||1;return a!==1||f!==1}function js(e,i,a){a===void 0&&(a=!1);var f=xt(i),d=xt(i)&&Ws(i),g=Zn(i),A=$n(e,d,a),T={scrollLeft:0,scrollTop:0},C={x:0,y:0};return(f||!f&&!a)&&((Pt(i)!=="body"||Hr(g))&&(T=zs(i)),xt(i)?(C=$n(i,!0),C.x+=i.clientLeft,C.y+=i.clientTop):g&&(C.x=Is(g))),{x:A.left+T.scrollLeft-C.x,y:A.top+T.scrollTop-C.y,width:A.width,height:A.height}}function Hs(e){var i=$n(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 $r(e){return Pt(e)==="html"?e:e.assignedSlot||e.parentNode||(mo(e)?e.host:null)||Zn(e)}function wo(e){return["html","body","#document"].indexOf(Pt(e))>=0?e.ownerDocument.body:xt(e)&&Hr(e)?e:wo($r(e))}function zn(e,i){var a;i===void 0&&(i=[]);var f=wo(e),d=f===((a=e.ownerDocument)==null?void 0:a.body),g=St(f),A=d?[g].concat(g.visualViewport||[],Hr(f)?f:[]):f,T=i.concat(A);return d?T:T.concat(zn($r(A)))}function $s(e){return["table","td","th"].indexOf(Pt(e))>=0}function gi(e){return!xt(e)||kt(e).position==="fixed"?null:e.offsetParent}function qs(e){var i=/firefox/i.test(Cr()),a=/Trident/i.test(Cr());if(a&&xt(e)){var f=kt(e);if(f.position==="fixed")return null}var d=$r(e);for(mo(d)&&(d=d.host);xt(d)&&["html","body"].indexOf(Pt(d))<0;){var g=kt(d);if(g.transform!=="none"||g.perspective!=="none"||g.contain==="paint"||["transform","perspective"].indexOf(g.willChange)!==-1||i&&g.willChange==="filter"||i&&g.filter&&g.filter!=="none")return d;d=d.parentNode}return null}function bo(e){for(var i=St(e),a=gi(e);a&&$s(a)&&kt(a).position==="static";)a=gi(a);return a&&(Pt(a)==="html"||Pt(a)==="body"&&kt(a).position==="static")?i:a||qs(e)||i}var cn="top",qn="bottom",Sn="right",Yt="left",xo="auto",Us=[cn,qn,Sn,Yt],So="start",Un="end",Xs=[].concat(Us,[xo]).reduce(function(e,i){return e.concat([i,i+"-"+So,i+"-"+Un])},[]),Vs="beforeRead",Ys="read",Gs="afterRead",Ks="beforeMain",Zs="main",Js="afterMain",Qs="beforeWrite",el="write",tl="afterWrite",Tr=[Vs,Ys,Gs,Ks,Zs,Js,Qs,el,tl];function nl(e){var i=new Map,a=new Set,f=[];e.forEach(function(g){i.set(g.name,g)});function d(g){a.add(g.name);var A=[].concat(g.requires||[],g.requiresIfExists||[]);A.forEach(function(T){if(!a.has(T)){var C=i.get(T);C&&d(C)}}),f.push(g)}return e.forEach(function(g){a.has(g.name)||d(g)}),f}function rl(e){var i=nl(e);return Tr.reduce(function(a,f){return a.concat(i.filter(function(d){return d.phase===f}))},[])}function il(e){var i;return function(){return i||(i=new Promise(function(a){Promise.resolve().then(function(){i=void 0,a(e())})})),i}}function Dt(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,g){return d.replace(/%s/,g)},e)}var Ht='Popper: modifier "%s" provided an invalid %s property, expected %s but got %s',ol='Popper: modifier "%s" requires "%s", but "%s" modifier is not available',mi=["name","enabled","phase","fn","effect","requires","options"];function al(e){e.forEach(function(i){[].concat(Object.keys(i),mi).filter(function(a,f,d){return d.indexOf(a)===f}).forEach(function(a){switch(a){case"name":typeof i.name!="string"&&console.error(Dt(Ht,String(i.name),'"name"','"string"','"'+String(i.name)+'"'));break;case"enabled":typeof i.enabled!="boolean"&&console.error(Dt(Ht,i.name,'"enabled"','"boolean"','"'+String(i.enabled)+'"'));break;case"phase":Tr.indexOf(i.phase)<0&&console.error(Dt(Ht,i.name,'"phase"',"either "+Tr.join(", "),'"'+String(i.phase)+'"'));break;case"fn":typeof i.fn!="function"&&console.error(Dt(Ht,i.name,'"fn"','"function"','"'+String(i.fn)+'"'));break;case"effect":i.effect!=null&&typeof i.effect!="function"&&console.error(Dt(Ht,i.name,'"effect"','"function"','"'+String(i.fn)+'"'));break;case"requires":i.requires!=null&&!Array.isArray(i.requires)&&console.error(Dt(Ht,i.name,'"requires"','"array"','"'+String(i.requires)+'"'));break;case"requiresIfExists":Array.isArray(i.requiresIfExists)||console.error(Dt(Ht,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 '+mi.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(Dt(ol,String(i.name),f,f))})})})}function sl(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 Jn(e){return e.split("-")[0]}function ll(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 Ao(e){return e.split("-")[1]}function ul(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function cl(e){var i=e.reference,a=e.element,f=e.placement,d=f?Jn(f):null,g=f?Ao(f):null,A=i.x+i.width/2-a.width/2,T=i.y+i.height/2-a.height/2,C;switch(d){case cn:C={x:A,y:i.y-a.height};break;case qn:C={x:A,y:i.y+i.height};break;case Sn:C={x:i.x+i.width,y:T};break;case Yt:C={x:i.x-a.width,y:T};break;default:C={x:i.x,y:i.y}}var E=d?ul(d):null;if(E!=null){var R=E==="y"?"height":"width";switch(g){case So:C[E]=C[E]-(i[R]/2-a[R]/2);break;case Un:C[E]=C[E]+(i[R]/2-a[R]/2);break}}return C}var yi="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",fl="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",wi={placement:"bottom",modifiers:[],strategy:"absolute"};function bi(){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 dl(e){e===void 0&&(e={});var i=e,a=i.defaultModifiers,f=a===void 0?[]:a,d=i.defaultOptions,g=d===void 0?wi:d;return function(T,C,E){E===void 0&&(E=g);var R={placement:"bottom",orderedModifiers:[],options:Object.assign({},wi,g),modifiersData:{},elements:{reference:T,popper:C},attributes:{},styles:{}},F=[],G=!1,Y={state:R,setOptions:function(N){var q=typeof N=="function"?N(R.options):N;z(),R.options=Object.assign({},g,R.options,q),R.scrollParents={reference:jr(T)?zn(T):T.contextElement?zn(T.contextElement):[],popper:zn(C)};var se=rl(ll([].concat(f,R.options.modifiers)));R.orderedModifiers=se.filter(function(Pe){return Pe.enabled});{var Ae=sl([].concat(se,R.options.modifiers),function(Pe){var Be=Pe.name;return Be});if(al(Ae),Jn(R.options.placement)===xo){var J=R.orderedModifiers.find(function(Pe){var Be=Pe.name;return Be==="flip"});J||console.error(['Popper: "auto" placements require the "flip" modifier be',"present and enabled to work."].join(" "))}var me=kt(C),ue=me.marginTop,he=me.marginRight,xe=me.marginBottom,we=me.marginLeft;[ue,he,xe,we].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 fe(),Y.update()},forceUpdate:function(){if(!G){var N=R.elements,q=N.reference,se=N.popper;if(!bi(q,se)){console.error(yi);return}R.rects={reference:js(q,bo(se),R.options.strategy==="fixed"),popper:Hs(se)},R.reset=!1,R.placement=R.options.placement,R.orderedModifiers.forEach(function(Pe){return R.modifiersData[Pe.name]=Object.assign({},Pe.data)});for(var Ae=0,J=0;J<R.orderedModifiers.length;J++){if(Ae+=1,Ae>100){console.error(fl);break}if(R.reset===!0){R.reset=!1,J=-1;continue}var me=R.orderedModifiers[J],ue=me.fn,he=me.options,xe=he===void 0?{}:he,we=me.name;typeof ue=="function"&&(R=ue({state:R,options:xe,name:we,instance:Y})||R)}}},update:il(function(){return new Promise(function(D){Y.forceUpdate(),D(R)})}),destroy:function(){z(),G=!0}};if(!bi(T,C))return console.error(yi),Y;Y.setOptions(E).then(function(D){!G&&E.onFirstUpdate&&E.onFirstUpdate(D)});function fe(){R.orderedModifiers.forEach(function(D){var N=D.name,q=D.options,se=q===void 0?{}:q,Ae=D.effect;if(typeof Ae=="function"){var J=Ae({state:R,name:N,instance:Y,options:se}),me=function(){};F.push(J||me)}})}function z(){F.forEach(function(D){return D()}),F=[]}return Y}}var kn={passive:!0};function hl(e){var i=e.state,a=e.instance,f=e.options,d=f.scroll,g=d===void 0?!0:d,A=f.resize,T=A===void 0?!0:A,C=St(i.elements.popper),E=[].concat(i.scrollParents.reference,i.scrollParents.popper);return g&&E.forEach(function(R){R.addEventListener("scroll",a.update,kn)}),T&&C.addEventListener("resize",a.update,kn),function(){g&&E.forEach(function(R){R.removeEventListener("scroll",a.update,kn)}),T&&C.removeEventListener("resize",a.update,kn)}}var pl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:hl,data:{}};function vl(e){var i=e.state,a=e.name;i.modifiersData[a]=cl({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var gl={name:"popperOffsets",enabled:!0,phase:"read",fn:vl,data:{}},ml={top:"auto",right:"auto",bottom:"auto",left:"auto"};function yl(e){var i=e.x,a=e.y,f=window,d=f.devicePixelRatio||1;return{x:dn(i*d)/d||0,y:dn(a*d)/d||0}}function xi(e){var i,a=e.popper,f=e.popperRect,d=e.placement,g=e.variation,A=e.offsets,T=e.position,C=e.gpuAcceleration,E=e.adaptive,R=e.roundOffsets,F=e.isFixed,G=A.x,Y=G===void 0?0:G,fe=A.y,z=fe===void 0?0:fe,D=typeof R=="function"?R({x:Y,y:z}):{x:Y,y:z};Y=D.x,z=D.y;var N=A.hasOwnProperty("x"),q=A.hasOwnProperty("y"),se=Yt,Ae=cn,J=window;if(E){var me=bo(a),ue="clientHeight",he="clientWidth";if(me===St(a)&&(me=Zn(a),kt(me).position!=="static"&&T==="absolute"&&(ue="scrollHeight",he="scrollWidth")),me=me,d===cn||(d===Yt||d===Sn)&&g===Un){Ae=qn;var xe=F&&me===J&&J.visualViewport?J.visualViewport.height:me[ue];z-=xe-f.height,z*=C?1:-1}if(d===Yt||(d===cn||d===qn)&&g===Un){se=Sn;var we=F&&me===J&&J.visualViewport?J.visualViewport.width:me[he];Y-=we-f.width,Y*=C?1:-1}}var Pe=Object.assign({position:T},E&&ml),Be=R===!0?yl({x:Y,y:z}):{x:Y,y:z};if(Y=Be.x,z=Be.y,C){var Ce;return Object.assign({},Pe,(Ce={},Ce[Ae]=q?"0":"",Ce[se]=N?"0":"",Ce.transform=(J.devicePixelRatio||1)<=1?"translate("+Y+"px, "+z+"px)":"translate3d("+Y+"px, "+z+"px, 0)",Ce))}return Object.assign({},Pe,(i={},i[Ae]=q?z+"px":"",i[se]=N?Y+"px":"",i.transform="",i))}function wl(e){var i=e.state,a=e.options,f=a.gpuAcceleration,d=f===void 0?!0:f,g=a.adaptive,A=g===void 0?!0:g,T=a.roundOffsets,C=T===void 0?!0:T;{var E=kt(i.elements.popper).transitionProperty||"";A&&["transform","top","right","bottom","left"].some(function(F){return E.indexOf(F)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',`
  2. `,'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.",`
  3. `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var R={placement:Jn(i.placement),variation:Ao(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,xi(Object.assign({},R,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:A,roundOffsets:C})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,xi(Object.assign({},R,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:C})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var bl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:wl,data:{}};function xl(e){var i=e.state;Object.keys(i.elements).forEach(function(a){var f=i.styles[a]||{},d=i.attributes[a]||{},g=i.elements[a];!xt(g)||!Pt(g)||(Object.assign(g.style,f),Object.keys(d).forEach(function(A){var T=d[A];T===!1?g.removeAttribute(A):g.setAttribute(A,T===!0?"":T)}))})}function Sl(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],g=i.attributes[f]||{},A=Object.keys(i.styles.hasOwnProperty(f)?i.styles[f]:a[f]),T=A.reduce(function(C,E){return C[E]="",C},{});!xt(d)||!Pt(d)||(Object.assign(d.style,T),Object.keys(g).forEach(function(C){d.removeAttribute(C)}))})}}var Al={name:"applyStyles",enabled:!0,phase:"write",fn:xl,effect:Sl,requires:["computeStyles"]},Cl=[pl,gl,bl,Al],Tl=dl({defaultModifiers:Cl});function Ml(e,i,a){var f=Jn(e),d=[Yt,cn].indexOf(f)>=0?-1:1,g=typeof a=="function"?a(Object.assign({},i,{placement:e})):a,A=g[0],T=g[1];return A=A||0,T=(T||0)*d,[Yt,Sn].indexOf(f)>=0?{x:T,y:A}:{x:A,y:T}}function El(e){var i=e.state,a=e.options,f=e.name,d=a.offset,g=d===void 0?[0,0]:d,A=Xs.reduce(function(R,F){return R[F]=Ml(F,i.rects,g),R},{}),T=A[i.placement],C=T.x,E=T.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=C,i.modifiersData.popperOffsets.y+=E),i.modifiersData[f]=A}var Ol={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:El};const Pl=(e,i)=>{const a=Te(e());return Zt(e,f=>{f!==a.value&&(a.value=f)}),Zt(a,f=>{f!==e()&&i(f)}),a},[kl,$t]=Ia("popover"),Rl=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],_l={show:Boolean,theme:sr("light"),overlay:Boolean,actions:$a(),trigger:sr("click"),duration:qa,showArrow:On,placement:sr("bottom"),iconPrefix:String,overlayClass:Ua,overlayStyle:Object,closeOnClickAction:On,closeOnClickOverlay:On,closeOnClickOutside:On,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Nl=ft({name:kl,props:_l,emits:["select","touchstart","update:show"],setup(e,{emit:i,slots:a,attrs:f}){let d;const g=Te(),A=Te(),T=Te(),C=Pl(()=>e.show,q=>i("update:show",q)),E=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Xa({},Ol,{options:{offset:e.offset}})]}),R=()=>A.value&&T.value?Tl(A.value,T.value.popupRef.value,E()):null,F=()=>{wr(()=>{C.value&&(d?d.setOptions(E()):(d=R(),ui&&(window.addEventListener("animationend",F),window.addEventListener("transitionend",F))))})},G=q=>{C.value=q},Y=()=>{e.trigger==="click"&&(C.value=!C.value)},fe=(q,se)=>{q.disabled||(i("select",q,se),e.closeOnClickAction&&(C.value=!1))},z=()=>{C.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(C.value=!1)},D=(q,se)=>a.action?a.action({action:q,index:se}):[q.icon&&ye(Va,{name:q.icon,classPrefix:e.iconPrefix,class:$t("action-icon")},null),ye("div",{class:[$t("action-text"),Ya]},[q.text])],N=(q,se)=>{const{icon:Ae,color:J,disabled:me,className:ue}=q;return ye("div",{role:"menuitem",class:[$t("action",{disabled:me,"with-icon":Ae}),ue],style:{color:J},tabindex:me?void 0:0,"aria-disabled":me||void 0,onClick:()=>fe(q,se)},[D(q,se)])};return Ft(()=>{F(),zt(()=>{var q;g.value=(q=T.value)==null?void 0:q.popupRef.value})}),Qt(()=>{d&&(ui&&(window.removeEventListener("animationend",F),window.removeEventListener("transitionend",F)),d.destroy(),d=null)}),Zt(()=>[C.value,e.offset,e.placement],F),Wa([A,g],z,{eventName:"touchstart"}),()=>{var q;return ye(Jt,null,[ye("span",{ref:A,class:$t("wrapper"),onClick:Y},[(q=a.reference)==null?void 0:q.call(a)]),ye(ja,Lr({ref:T,show:C.value,class:$t([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":G},f,Ha(e,Rl)),{default:()=>[e.showArrow&&ye("div",{class:$t("arrow")},null),ye("div",{role:"menu",class:$t("content")},[a.default?a.default():e.actions.map(N)])]})])}}});const Dl=Ga(Nl),Ll="_container_drr4y_1",Bl="_head_drr4y_10",Fl="_back_drr4y_18",zl="_tabs_drr4y_21",Il="_downBtn_drr4y_37",Wl="_icon_drr4y_61",jl="_iconUp_drr4y_67",Hl="_popover_drr4y_72",$l="_content_drr4y_91",ql="_wrap_drr4y_97",Ul="_emtpyWrap_drr4y_103",Xl="_wrapItem_drr4y_114",Vl="_name_drr4y_124",Yl="_favoriteBtn_drr4y_131",Gl="_containerImg_drr4y_137",Kl="_cover_drr4y_163",Zl="_loaded_drr4y_194",Jl="_book_drr4y_197",Ql="_bookWrap_drr4y_211",eu="_show_drr4y_219",st={container:Ll,head:Bl,back:Fl,tabs:zl,downBtn:Il,icon:Wl,iconUp:jl,popover:Hl,content:$l,wrap:ql,emtpyWrap:Ul,wrapItem:Xl,name:Vl,favoriteBtn:Yl,containerImg:Gl,cover:Kl,loaded:Zl,book:Jl,bookWrap:Ql,show:eu},Co=""+new URL("icon_back-b80c2fc2.svg",import.meta.url).href,tu=e=>Cn.post("/edu-app/lessonCourseware/page",{data:e}),nu=e=>Cn.post("/edu-app/lessonCoursewareFavorite/page",{data:e}),ru=e=>Cn.post("/edu-app/lessonCoursewareFavorite/save",{data:e}),iu=e=>Cn.post("/edu-app/lessonCoursewareFavorite/remove",{data:e}),ou=e=>Cn.get(`/edu-app/lessonCourseware/detail/${e}`);function Xn(e){return e.composedPath()[0]||null}function To(e=8){return Math.random().toString(16).slice(2,2+e)}function au(e,i=[],a){const f={};return i.forEach(d=>{f[d]=e[d]}),Object.assign(f,a)}function Mr(e,i=!0,a=[]){return e.forEach(f=>{if(f!==null){if(typeof f!="object"){(typeof f=="string"||typeof f=="number")&&a.push(oo(String(f)));return}if(Array.isArray(f)){Mr(f,i,a);return}if(f.type===Jt){if(f.children===null)return;Array.isArray(f.children)&&Mr(f.children,i,a)}else f.type!==Ka&&a.push(f)}}),a}function Si(e,i="default",a=void 0){const f=e[i];if(!f)return ci("getFirstSlotVNode",`slot[${i}] is empty`),null;const d=Mr(f(a));return d.length===1?d[0]:(ci("getFirstSlotVNode",`slot[${i}] should have exactly one child`),null)}const Ai=ft({render(){var e,i;return(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e)}}),su=/^(\d|\.)+$/,Ci=/(\d|\.)+/;function ur(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(su.test(e)){const d=(Number(e)+a)*i;return f?d===0?"0":`${d}px`:`${d}`}else{const d=Ci.exec(e);return d?e.replace(Ci,String((Number(d[0])+a)*i)):e}return e}function lu(e,i){if(e===void 0)return!1;if(i){const{context:{ids:a}}=i;return a.has(e)}return ls(e)!==null}let cr;function uu(){return cr===void 0&&(cr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),cr}const cu=typeof document<"u"&&typeof window<"u";function fu(e,i){return Ue(()=>{for(const a of i)if(e[a]!==void 0)return e[a];return e[i[i.length-1]]})}const du=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function hu(){return du}const on="@@mmoContext",pu={mounted(e,{value:i}){e[on]={handler:void 0},typeof i=="function"&&(e[on].handler=i,pt("mousemoveoutside",e,i))},updated(e,{value:i}){const a=e[on];typeof i=="function"?a.handler?a.handler!==i&&(lt("mousemoveoutside",e,a.handler),a.handler=i,pt("mousemoveoutside",e,i)):(e[on].handler=i,pt("mousemoveoutside",e,i)):a.handler&&(lt("mousemoveoutside",e,a.handler),a.handler=void 0)},unmounted(e){const{handler:i}=e[on];i&&lt("mousemoveoutside",e,i),e[on].handler=void 0}},vu=pu,an="@@coContext",gu={mounted(e,{value:i,modifiers:a}){e[an]={handler:void 0},typeof i=="function"&&(e[an].handler=i,pt("clickoutside",e,i,{capture:a.capture}))},updated(e,{value:i,modifiers:a}){const f=e[an];typeof i=="function"?f.handler?f.handler!==i&&(lt("clickoutside",e,f.handler,{capture:a.capture}),f.handler=i,pt("clickoutside",e,i,{capture:a.capture})):(e[an].handler=i,pt("clickoutside",e,i,{capture:a.capture})):f.handler&&(lt("clickoutside",e,f.handler,{capture:a.capture}),f.handler=void 0)},unmounted(e,{modifiers:i}){const{handler:a}=e[an];a&&lt("clickoutside",e,a,{capture:i.capture}),e[an].handler=void 0}},Ti=gu;function Mi(e,i){console.error(`[vueuc/${e}]: ${i}`)}function Ei(e){return typeof e=="string"?document.querySelector(e):e()}var Gt=[],mu=function(){return Gt.some(function(e){return e.activeTargets.length>0})},yu=function(){return Gt.some(function(e){return e.skippedTargets.length>0})},Oi="ResizeObserver loop completed with undelivered notifications.",wu=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Oi}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Oi),window.dispatchEvent(e)},An;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(An||(An={}));var Kt=function(e){return Object.freeze(e)},bu=function(){function e(i,a){this.inlineSize=i,this.blockSize=a,Kt(this)}return e}(),Mo=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,Kt(this)}return e.prototype.toJSON=function(){var i=this,a=i.x,f=i.y,d=i.top,g=i.right,A=i.bottom,T=i.left,C=i.width,E=i.height;return{x:a,y:f,top:d,right:g,bottom:A,left:T,width:C,height:E}},e.fromRect=function(i){return new e(i.x,i.y,i.width,i.height)},e}(),qr=function(e){return e instanceof SVGElement&&"getBBox"in e},Eo=function(e){if(qr(e)){var i=e.getBBox(),a=i.width,f=i.height;return!a&&!f}var d=e,g=d.offsetWidth,A=d.offsetHeight;return!(g||A||e.getClientRects().length)},Pi=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)},xu=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},xn=typeof window<"u"?window:{},Rn=new WeakMap,ki=/auto|scroll/,Su=/^tb|vertical/,Au=/msie|trident/i.test(xn.navigator&&xn.navigator.userAgent),Ct=function(e){return parseFloat(e||"0")},fn=function(e,i,a){return e===void 0&&(e=0),i===void 0&&(i=0),a===void 0&&(a=!1),new bu((a?i:e)||0,(a?e:i)||0)},Ri=Kt({devicePixelContentBoxSize:fn(),borderBoxSize:fn(),contentBoxSize:fn(),contentRect:new Mo(0,0,0,0)}),Oo=function(e,i){if(i===void 0&&(i=!1),Rn.has(e)&&!i)return Rn.get(e);if(Eo(e))return Rn.set(e,Ri),Ri;var a=getComputedStyle(e),f=qr(e)&&e.ownerSVGElement&&e.getBBox(),d=!Au&&a.boxSizing==="border-box",g=Su.test(a.writingMode||""),A=!f&&ki.test(a.overflowY||""),T=!f&&ki.test(a.overflowX||""),C=f?0:Ct(a.paddingTop),E=f?0:Ct(a.paddingRight),R=f?0:Ct(a.paddingBottom),F=f?0:Ct(a.paddingLeft),G=f?0:Ct(a.borderTopWidth),Y=f?0:Ct(a.borderRightWidth),fe=f?0:Ct(a.borderBottomWidth),z=f?0:Ct(a.borderLeftWidth),D=F+E,N=C+R,q=z+Y,se=G+fe,Ae=T?e.offsetHeight-se-e.clientHeight:0,J=A?e.offsetWidth-q-e.clientWidth:0,me=d?D+q:0,ue=d?N+se:0,he=f?f.width:Ct(a.width)-me-J,xe=f?f.height:Ct(a.height)-ue-Ae,we=he+D+J+q,Pe=xe+N+Ae+se,Be=Kt({devicePixelContentBoxSize:fn(Math.round(he*devicePixelRatio),Math.round(xe*devicePixelRatio),g),borderBoxSize:fn(we,Pe,g),contentBoxSize:fn(he,xe,g),contentRect:new Mo(F,C,he,xe)});return Rn.set(e,Be),Be},Po=function(e,i,a){var f=Oo(e,a),d=f.borderBoxSize,g=f.contentBoxSize,A=f.devicePixelContentBoxSize;switch(i){case An.DEVICE_PIXEL_CONTENT_BOX:return A;case An.BORDER_BOX:return d;default:return g}},Cu=function(){function e(i){var a=Oo(i);this.target=i,this.contentRect=a.contentRect,this.borderBoxSize=Kt([a.borderBoxSize]),this.contentBoxSize=Kt([a.contentBoxSize]),this.devicePixelContentBoxSize=Kt([a.devicePixelContentBoxSize])}return e}(),ko=function(e){if(Eo(e))return 1/0;for(var i=0,a=e.parentNode;a;)i+=1,a=a.parentNode;return i},Tu=function(){var e=1/0,i=[];Gt.forEach(function(A){if(A.activeTargets.length!==0){var T=[];A.activeTargets.forEach(function(E){var R=new Cu(E.target),F=ko(E.target);T.push(R),E.lastReportedSize=Po(E.target,E.observedBox),F<e&&(e=F)}),i.push(function(){A.callback.call(A.observer,T,A.observer)}),A.activeTargets.splice(0,A.activeTargets.length)}});for(var a=0,f=i;a<f.length;a++){var d=f[a];d()}return e},_i=function(e){Gt.forEach(function(a){a.activeTargets.splice(0,a.activeTargets.length),a.skippedTargets.splice(0,a.skippedTargets.length),a.observationTargets.forEach(function(d){d.isActive()&&(ko(d.target)>e?a.activeTargets.push(d):a.skippedTargets.push(d))})})},Mu=function(){var e=0;for(_i(e);mu();)e=Tu(),_i(e);return yu()&&wu(),e>0},fr,Ro=[],Eu=function(){return Ro.splice(0).forEach(function(e){return e()})},Ou=function(e){if(!fr){var i=0,a=document.createTextNode(""),f={characterData:!0};new MutationObserver(function(){return Eu()}).observe(a,f),fr=function(){a.textContent="".concat(i?i--:i++)}}Ro.push(e),fr()},Pu=function(e){Ou(function(){requestAnimationFrame(e)})},In=0,ku=function(){return!!In},Ru=250,_u={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ni=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Di=function(e){return e===void 0&&(e=0),Date.now()+e},dr=!1,Nu=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=Ru),!dr){dr=!0;var f=Di(i);Pu(function(){var d=!1;try{d=Mu()}finally{if(dr=!1,i=f-Di(),!ku())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,_u)};document.body?a():xn.addEventListener("DOMContentLoaded",a)},e.prototype.start=function(){var i=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ni.forEach(function(a){return xn.addEventListener(a,i.listener,!0)}))},e.prototype.stop=function(){var i=this;this.stopped||(this.observer&&this.observer.disconnect(),Ni.forEach(function(a){return xn.removeEventListener(a,i.listener,!0)}),this.stopped=!0)},e}(),Er=new Nu,Li=function(e){!In&&e>0&&Er.start(),In+=e,!In&&Er.stop()},Du=function(e){return!qr(e)&&!xu(e)&&getComputedStyle(e).display==="inline"},Lu=function(){function e(i,a){this.target=i,this.observedBox=a||An.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var i=Po(this.target,this.observedBox,!0);return Du(this.target)&&(this.lastReportedSize=i),this.lastReportedSize.inlineSize!==i.inlineSize||this.lastReportedSize.blockSize!==i.blockSize},e}(),Bu=function(){function e(i,a){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=i,this.callback=a}return e}(),_n=new WeakMap,Bi=function(e,i){for(var a=0;a<e.length;a+=1)if(e[a].target===i)return a;return-1},Nn=function(){function e(){}return e.connect=function(i,a){var f=new Bu(i,a);_n.set(i,f)},e.observe=function(i,a,f){var d=_n.get(i),g=d.observationTargets.length===0;Bi(d.observationTargets,a)<0&&(g&&Gt.push(d),d.observationTargets.push(new Lu(a,f&&f.box)),Li(1),Er.schedule())},e.unobserve=function(i,a){var f=_n.get(i),d=Bi(f.observationTargets,a),g=f.observationTargets.length===1;d>=0&&(g&&Gt.splice(Gt.indexOf(f),1),f.observationTargets.splice(d,1),Li(-1))},e.disconnect=function(i){var a=this,f=_n.get(i);f.observationTargets.slice().forEach(function(d){return a.unobserve(i,d.target)}),f.activeTargets.splice(0,f.activeTargets.length)},e}(),Fu=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.");Nn.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(!Pi(i))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Nn.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(!Pi(i))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Nn.unobserve(this,i)},e.prototype.disconnect=function(){Nn.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class zu{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Fu)(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 Fi=new zu,zi=ft({name:"ResizeObserver",props:{onResize:Function},setup(e){let i=!1;const a=ao().proxy;function f(d){const{onResize:g}=e;g!==void 0&&g(d)}Ft(()=>{const d=a.$el;if(d===void 0){Mi("resize-observer","$el does not exist.");return}if(d.nextElementSibling!==d.nextSibling&&d.nodeType===3&&d.nodeValue!==""){Mi("resize-observer","$el can not be observed (it may be a text node).");return}d.nextElementSibling!==null&&(Fi.registerHandler(d.nextElementSibling,f),i=!0)}),Qt(()=>{i&&Fi.unregisterHandler(a.$el.nextElementSibling)})},render(){return Za(this.$slots,"default")}});function _o(e){return e instanceof HTMLElement}function No(e){for(let i=0;i<e.childNodes.length;i++){const a=e.childNodes[i];if(_o(a)&&(Lo(a)||No(a)))return!0}return!1}function Do(e){for(let i=e.childNodes.length-1;i>=0;i--){const a=e.childNodes[i];if(_o(a)&&(Lo(a)||Do(a)))return!0}return!1}function Lo(e){if(!Iu(e))return!1;try{e.focus({preventScroll:!0})}catch(i){}return document.activeElement===e}function Iu(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 yn=[];const Wu=ft({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=To(),a=Te(null),f=Te(null);let d=!1,g=!1;const A=typeof document>"u"?null:document.activeElement;function T(){return yn[yn.length-1]===i}function C(D){var N;D.code==="Escape"&&T()&&((N=e.onEsc)===null||N===void 0||N.call(e,D))}Ft(()=>{Zt(()=>e.active,D=>{D?(F(),pt("keydown",document,C)):(lt("keydown",document,C),d&&G())},{immediate:!0})}),Qt(()=>{lt("keydown",document,C),d&&G()});function E(D){if(!g&&T()){const N=R();if(N===null||N.contains(Xn(D)))return;Y("first")}}function R(){const D=a.value;if(D===null)return null;let N=D;for(;N=N.nextSibling,!(N===null||N instanceof Element&&N.tagName==="DIV"););return N}function F(){var D;if(!e.disabled){if(yn.push(i),e.autoFocus){const{initialFocusTo:N}=e;N===void 0?Y("first"):(D=Ei(N))===null||D===void 0||D.focus({preventScroll:!0})}d=!0,document.addEventListener("focus",E,!0)}}function G(){var D;if(e.disabled||(document.removeEventListener("focus",E,!0),yn=yn.filter(q=>q!==i),T()))return;const{finalFocusTo:N}=e;N!==void 0?(D=Ei(N))===null||D===void 0||D.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&A instanceof HTMLElement&&(g=!0,A.focus({preventScroll:!0}),g=!1)}function Y(D){if(T()&&e.active){const N=a.value,q=f.value;if(N!==null&&q!==null){const se=R();if(se==null||se===q){g=!0,N.focus({preventScroll:!0}),g=!1;return}g=!0;const Ae=D==="first"?No(se):Do(se);g=!1,Ae||(g=!0,N.focus({preventScroll:!0}),g=!1)}}}function fe(D){if(g)return;const N=R();N!==null&&(D.relatedTarget!==null&&N.contains(D.relatedTarget)?Y("last"):Y("first"))}function z(D){g||(D.relatedTarget!==null&&D.relatedTarget===a.value?Y("last"):Y("first"))}return{focusableStartRef:a,focusableEndRef:f,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:fe,handleEndFocus:z}},render(){const{default:e}=this.$slots;if(e===void 0)return null;if(this.disabled)return e();const{active:i,focusableStyle:a}=this;return Q(Jt,null,[Q("div",{"aria-hidden":"true",tabindex:i?"0":"-1",ref:"focusableStartRef",style:a,onFocus:this.handleStartFocus}),e(),Q("div",{"aria-hidden":"true",style:a,ref:"focusableEndRef",tabindex:i?"0":"-1",onFocus:this.handleEndFocus})])}});function ju(e){const i={isDeactivated:!1};let a=!1;return Ja(()=>{if(i.isDeactivated=!1,!a){a=!0;return}e()}),Qa(()=>{i.isDeactivated=!0,a||(a=!0)}),i}var Hu="[object Symbol]";function Ur(e){return typeof e=="symbol"||xr(e)&&Br(e)==Hu}function Bo(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 $u=1/0,Ii=jn?jn.prototype:void 0,Wi=Ii?Ii.toString:void 0;function Fo(e){if(typeof e=="string")return e;if(Ot(e))return Bo(e,Fo)+"";if(Ur(e))return Wi?Wi.call(e):"";var i=e+"";return i=="0"&&1/e==-$u?"-0":i}var qu=Yn(Gn,"WeakMap");const Or=qu;var Uu=us(Object.keys,Object);const Xu=Uu;var Vu=Object.prototype,Yu=Vu.hasOwnProperty;function Gu(e){if(!cs(e))return Xu(e);var i=[];for(var a in Object(e))Yu.call(e,a)&&a!="constructor"&&i.push(a);return i}function Xr(e){return Fr(e)?fs(e):Gu(e)}var Ku=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Zu=/^\w*$/;function Vr(e,i){if(Ot(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||Ur(e)?!0:Zu.test(e)||!Ku.test(e)||i!=null&&e in Object(i)}var Ju="Expected a function";function Yr(e,i){if(typeof e!="function"||i!=null&&typeof i!="function")throw new TypeError(Ju);var a=function(){var f=arguments,d=i?i.apply(this,f):f[0],g=a.cache;if(g.has(d))return g.get(d);var A=e.apply(this,f);return a.cache=g.set(d,A)||g,A};return a.cache=new(Yr.Cache||zr),a}Yr.Cache=zr;var Qu=500;function ec(e){var i=Yr(e,function(f){return a.size===Qu&&a.clear(),f}),a=i.cache;return i}var tc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,nc=/\\(\\)?/g,rc=ec(function(e){var i=[];return e.charCodeAt(0)===46&&i.push(""),e.replace(tc,function(a,f,d,g){i.push(d?g.replace(nc,"$1"):f||a)}),i});const ic=rc;function Qn(e){return e==null?"":Fo(e)}function zo(e,i){return Ot(e)?e:Vr(e,i)?[e]:ic(Qn(e))}var oc=1/0;function er(e){if(typeof e=="string"||Ur(e))return e;var i=e+"";return i=="0"&&1/e==-oc?"-0":i}function Io(e,i){i=zo(i,e);for(var a=0,f=i.length;e!=null&&a<f;)e=e[er(i[a++])];return a&&a==f?e:void 0}function ac(e,i,a){var f=e==null?void 0:Io(e,i);return f===void 0?a:f}function sc(e,i){for(var a=-1,f=i.length,d=e.length;++a<f;)e[d+a]=i[a];return e}function lc(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 g=Array(d);++f<d;)g[f]=e[f+i];return g}function uc(e,i,a){var f=e.length;return a=a===void 0?f:a,!i&&a>=f?e:lc(e,i,a)}var cc="\\ud800-\\udfff",fc="\\u0300-\\u036f",dc="\\ufe20-\\ufe2f",hc="\\u20d0-\\u20ff",pc=fc+dc+hc,vc="\\ufe0e\\ufe0f",gc="\\u200d",mc=RegExp("["+gc+cc+pc+vc+"]");function Wo(e){return mc.test(e)}function yc(e){return e.split("")}var jo="\\ud800-\\udfff",wc="\\u0300-\\u036f",bc="\\ufe20-\\ufe2f",xc="\\u20d0-\\u20ff",Sc=wc+bc+xc,Ac="\\ufe0e\\ufe0f",Cc="["+jo+"]",Pr="["+Sc+"]",kr="\\ud83c[\\udffb-\\udfff]",Tc="(?:"+Pr+"|"+kr+")",Ho="[^"+jo+"]",$o="(?:\\ud83c[\\udde6-\\uddff]){2}",qo="[\\ud800-\\udbff][\\udc00-\\udfff]",Mc="\\u200d",Uo=Tc+"?",Xo="["+Ac+"]?",Ec="(?:"+Mc+"(?:"+[Ho,$o,qo].join("|")+")"+Xo+Uo+")*",Oc=Xo+Uo+Ec,Pc="(?:"+[Ho+Pr+"?",Pr,$o,qo,Cc].join("|")+")",kc=RegExp(kr+"(?="+kr+")|"+Pc+Oc,"g");function Rc(e){return e.match(kc)||[]}function _c(e){return Wo(e)?Rc(e):yc(e)}function Nc(e){return function(i){i=Qn(i);var a=Wo(i)?_c(i):void 0,f=a?a[0]:i.charAt(0),d=a?uc(a,1).join(""):i.slice(1);return f[e]()+d}}var Dc=Nc("toUpperCase");const Lc=Dc;function Bc(e,i,a,f){var d=-1,g=e==null?0:e.length;for(f&&g&&(a=e[++d]);++d<g;)a=i(a,e[d],d,e);return a}function Fc(e){return function(i){return e==null?void 0:e[i]}}var zc={À:"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"},Ic=Fc(zc);const Wc=Ic;var jc=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Hc="\\u0300-\\u036f",$c="\\ufe20-\\ufe2f",qc="\\u20d0-\\u20ff",Uc=Hc+$c+qc,Xc="["+Uc+"]",Vc=RegExp(Xc,"g");function Yc(e){return e=Qn(e),e&&e.replace(jc,Wc).replace(Vc,"")}var Gc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function Kc(e){return e.match(Gc)||[]}var Zc=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function Jc(e){return Zc.test(e)}var Vo="\\ud800-\\udfff",Qc="\\u0300-\\u036f",ef="\\ufe20-\\ufe2f",tf="\\u20d0-\\u20ff",nf=Qc+ef+tf,Yo="\\u2700-\\u27bf",Go="a-z\\xdf-\\xf6\\xf8-\\xff",rf="\\xac\\xb1\\xd7\\xf7",of="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",af="\\u2000-\\u206f",sf=" \\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",Ko="A-Z\\xc0-\\xd6\\xd8-\\xde",lf="\\ufe0e\\ufe0f",Zo=rf+of+af+sf,Jo="['’]",ji="["+Zo+"]",uf="["+nf+"]",Qo="\\d+",cf="["+Yo+"]",ea="["+Go+"]",ta="[^"+Vo+Zo+Qo+Yo+Go+Ko+"]",ff="\\ud83c[\\udffb-\\udfff]",df="(?:"+uf+"|"+ff+")",hf="[^"+Vo+"]",na="(?:\\ud83c[\\udde6-\\uddff]){2}",ra="[\\ud800-\\udbff][\\udc00-\\udfff]",sn="["+Ko+"]",pf="\\u200d",Hi="(?:"+ea+"|"+ta+")",vf="(?:"+sn+"|"+ta+")",$i="(?:"+Jo+"(?:d|ll|m|re|s|t|ve))?",qi="(?:"+Jo+"(?:D|LL|M|RE|S|T|VE))?",ia=df+"?",oa="["+lf+"]?",gf="(?:"+pf+"(?:"+[hf,na,ra].join("|")+")"+oa+ia+")*",mf="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",yf="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",wf=oa+ia+gf,bf="(?:"+[cf,na,ra].join("|")+")"+wf,xf=RegExp([sn+"?"+ea+"+"+$i+"(?="+[ji,sn,"$"].join("|")+")",vf+"+"+qi+"(?="+[ji,sn+Hi,"$"].join("|")+")",sn+"?"+Hi+"+"+$i,sn+"+"+qi,yf,mf,Qo,bf].join("|"),"g");function Sf(e){return e.match(xf)||[]}function Af(e,i,a){return e=Qn(e),i=a?void 0:i,i===void 0?Jc(e)?Sf(e):Kc(e):e.match(i)||[]}var Cf="['’]",Tf=RegExp(Cf,"g");function Mf(e){return function(i){return Bc(Af(Yc(i).replace(Tf,"")),e,"")}}function Ef(e,i){for(var a=-1,f=e==null?0:e.length,d=0,g=[];++a<f;){var A=e[a];i(A,a,e)&&(g[d++]=A)}return g}function Of(){return[]}var Pf=Object.prototype,kf=Pf.propertyIsEnumerable,Ui=Object.getOwnPropertySymbols,Rf=Ui?function(e){return e==null?[]:(e=Object(e),Ef(Ui(e),function(i){return kf.call(e,i)}))}:Of;const _f=Rf;function Nf(e,i,a){var f=i(e);return Ot(e)?f:sc(f,a(e))}function Xi(e){return Nf(e,Xr,_f)}var Df=Yn(Gn,"DataView");const Rr=Df;var Lf=Yn(Gn,"Promise");const _r=Lf;var Bf=Yn(Gn,"Set");const Nr=Bf;var Vi="[object Map]",Ff="[object Object]",Yi="[object Promise]",Gi="[object Set]",Ki="[object WeakMap]",Zi="[object DataView]",zf=pn(Rr),If=pn(Sr),Wf=pn(_r),jf=pn(Nr),Hf=pn(Or),qt=Br;(Rr&&qt(new Rr(new ArrayBuffer(1)))!=Zi||Sr&&qt(new Sr)!=Vi||_r&&qt(_r.resolve())!=Yi||Nr&&qt(new Nr)!=Gi||Or&&qt(new Or)!=Ki)&&(qt=function(e){var i=Br(e),a=i==Ff?e.constructor:void 0,f=a?pn(a):"";if(f)switch(f){case zf:return Zi;case If:return Vi;case Wf:return Yi;case jf:return Gi;case Hf:return Ki}return i});const Ji=qt;var $f="__lodash_hash_undefined__";function qf(e){return this.__data__.set(e,$f),this}function Uf(e){return this.__data__.has(e)}function Vn(e){var i=-1,a=e==null?0:e.length;for(this.__data__=new zr;++i<a;)this.add(e[i])}Vn.prototype.add=Vn.prototype.push=qf;Vn.prototype.has=Uf;function Xf(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 Vf(e,i){return e.has(i)}var Yf=1,Gf=2;function aa(e,i,a,f,d,g){var A=a&Yf,T=e.length,C=i.length;if(T!=C&&!(A&&C>T))return!1;var E=g.get(e),R=g.get(i);if(E&&R)return E==i&&R==e;var F=-1,G=!0,Y=a&Gf?new Vn:void 0;for(g.set(e,i),g.set(i,e);++F<T;){var fe=e[F],z=i[F];if(f)var D=A?f(z,fe,F,i,e,g):f(fe,z,F,e,i,g);if(D!==void 0){if(D)continue;G=!1;break}if(Y){if(!Xf(i,function(N,q){if(!Vf(Y,q)&&(fe===N||d(fe,N,a,f,g)))return Y.push(q)})){G=!1;break}}else if(!(fe===z||d(fe,z,a,f,g))){G=!1;break}}return g.delete(e),g.delete(i),G}function Kf(e){var i=-1,a=Array(e.size);return e.forEach(function(f,d){a[++i]=[d,f]}),a}function Zf(e){var i=-1,a=Array(e.size);return e.forEach(function(f){a[++i]=f}),a}var Jf=1,Qf=2,ed="[object Boolean]",td="[object Date]",nd="[object Error]",rd="[object Map]",id="[object Number]",od="[object RegExp]",ad="[object Set]",sd="[object String]",ld="[object Symbol]",ud="[object ArrayBuffer]",cd="[object DataView]",Qi=jn?jn.prototype:void 0,hr=Qi?Qi.valueOf:void 0;function fd(e,i,a,f,d,g,A){switch(a){case cd:if(e.byteLength!=i.byteLength||e.byteOffset!=i.byteOffset)return!1;e=e.buffer,i=i.buffer;case ud:return!(e.byteLength!=i.byteLength||!g(new fi(e),new fi(i)));case ed:case td:case id:return ds(+e,+i);case nd:return e.name==i.name&&e.message==i.message;case od:case sd:return e==i+"";case rd:var T=Kf;case ad:var C=f&Jf;if(T||(T=Zf),e.size!=i.size&&!C)return!1;var E=A.get(e);if(E)return E==i;f|=Qf,A.set(e,i);var R=aa(T(e),T(i),f,d,g,A);return A.delete(e),R;case ld:if(hr)return hr.call(e)==hr.call(i)}return!1}var dd=1,hd=Object.prototype,pd=hd.hasOwnProperty;function vd(e,i,a,f,d,g){var A=a&dd,T=Xi(e),C=T.length,E=Xi(i),R=E.length;if(C!=R&&!A)return!1;for(var F=C;F--;){var G=T[F];if(!(A?G in i:pd.call(i,G)))return!1}var Y=g.get(e),fe=g.get(i);if(Y&&fe)return Y==i&&fe==e;var z=!0;g.set(e,i),g.set(i,e);for(var D=A;++F<C;){G=T[F];var N=e[G],q=i[G];if(f)var se=A?f(q,N,G,i,e,g):f(N,q,G,e,i,g);if(!(se===void 0?N===q||d(N,q,a,f,g):se)){z=!1;break}D||(D=G=="constructor")}if(z&&!D){var Ae=e.constructor,J=i.constructor;Ae!=J&&"constructor"in e&&"constructor"in i&&!(typeof Ae=="function"&&Ae instanceof Ae&&typeof J=="function"&&J instanceof J)&&(z=!1)}return g.delete(e),g.delete(i),z}var gd=1,eo="[object Arguments]",to="[object Array]",Dn="[object Object]",md=Object.prototype,no=md.hasOwnProperty;function yd(e,i,a,f,d,g){var A=Ot(e),T=Ot(i),C=A?to:Ji(e),E=T?to:Ji(i);C=C==eo?Dn:C,E=E==eo?Dn:E;var R=C==Dn,F=E==Dn,G=C==E;if(G&&di(e)){if(!di(i))return!1;A=!0,R=!1}if(G&&!R)return g||(g=new Bn),A||hs(e)?aa(e,i,a,f,d,g):fd(e,i,C,a,f,d,g);if(!(a&gd)){var Y=R&&no.call(e,"__wrapped__"),fe=F&&no.call(i,"__wrapped__");if(Y||fe){var z=Y?e.value():e,D=fe?i.value():i;return g||(g=new Bn),d(z,D,a,f,g)}}return G?(g||(g=new Bn),vd(e,i,a,f,d,g)):!1}function Gr(e,i,a,f,d){return e===i?!0:e==null||i==null||!xr(e)&&!xr(i)?e!==e&&i!==i:yd(e,i,a,f,Gr,d)}var wd=1,bd=2;function xd(e,i,a,f){var d=a.length,g=d,A=!f;if(e==null)return!g;for(e=Object(e);d--;){var T=a[d];if(A&&T[2]?T[1]!==e[T[0]]:!(T[0]in e))return!1}for(;++d<g;){T=a[d];var C=T[0],E=e[C],R=T[1];if(A&&T[2]){if(E===void 0&&!(C in e))return!1}else{var F=new Bn;if(f)var G=f(E,R,C,e,i,F);if(!(G===void 0?Gr(R,E,wd|bd,f,F):G))return!1}}return!0}function sa(e){return e===e&&!ps(e)}function Sd(e){for(var i=Xr(e),a=i.length;a--;){var f=i[a],d=e[f];i[a]=[f,d,sa(d)]}return i}function la(e,i){return function(a){return a==null?!1:a[e]===i&&(i!==void 0||e in Object(a))}}function Ad(e){var i=Sd(e);return i.length==1&&i[0][2]?la(i[0][0],i[0][1]):function(a){return a===e||xd(a,e,i)}}function Cd(e,i){return e!=null&&i in Object(e)}function Td(e,i,a){i=zo(i,e);for(var f=-1,d=i.length,g=!1;++f<d;){var A=er(i[f]);if(!(g=e!=null&&a(e,A)))break;e=e[A]}return g||++f!=d?g:(d=e==null?0:e.length,!!d&&vs(d)&&gs(A,d)&&(Ot(e)||ms(e)))}function Md(e,i){return e!=null&&Td(e,i,Cd)}var Ed=1,Od=2;function Pd(e,i){return Vr(e)&&sa(i)?la(er(e),i):function(a){var f=ac(a,e);return f===void 0&&f===i?Md(a,e):Gr(i,f,Ed|Od)}}function kd(e){return function(i){return i==null?void 0:i[e]}}function Rd(e){return function(i){return Io(i,e)}}function _d(e){return Vr(e)?kd(er(e)):Rd(e)}function Nd(e){return typeof e=="function"?e:e==null?ys:typeof e=="object"?Ot(e)?Pd(e[0],e[1]):Ad(e):_d(e)}function Dd(e,i){return e&&ws(e,i,Xr)}function Ld(e,i){return function(a,f){if(a==null)return a;if(!Fr(a))return e(a,f);for(var d=a.length,g=i?d:-1,A=Object(a);(i?g--:++g<d)&&f(A[g],g,A)!==!1;);return a}}var Bd=Ld(Dd);const Fd=Bd;function zd(e,i){var a=-1,f=Fr(e)?Array(e.length):[];return Fd(e,function(d,g,A){f[++a]=i(d,g,A)}),f}function Id(e,i){var a=Ot(e)?Bo:zd;return a(e,Nd(i))}var Wd=Mf(function(e,i,a){return e+(a?"-":"")+i.toLowerCase()});const jd=Wd,Hd={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"}},$d=Hd;function pr(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 wn(e){return function(i,a){var f=a!=null&&a.context?String(a.context):"standalone",d;if(f==="formatting"&&e.formattingValues){var g=e.defaultFormattingWidth||e.defaultWidth,A=a!=null&&a.width?String(a.width):g;d=e.formattingValues[A]||e.formattingValues[g]}else{var T=e.defaultWidth,C=a!=null&&a.width?String(a.width):e.defaultWidth;d=e.values[C]||e.values[T]}var E=e.argumentCallback?e.argumentCallback(i):i;return d[E]}}function bn(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],g=i.match(d);if(!g)return null;var A=g[0],T=f&&e.parsePatterns[f]||e.parsePatterns[e.defaultParseWidth],C=Array.isArray(T)?Ud(T,function(F){return F.test(A)}):qd(T,function(F){return F.test(A)}),E;E=e.valueCallback?e.valueCallback(C):C,E=a.valueCallback?a.valueCallback(E):E;var R=i.slice(A.length);return{value:E,rest:R}}}function qd(e,i){for(var a in e)if(e.hasOwnProperty(a)&&i(e[a]))return a}function Ud(e,i){for(var a=0;a<e.length;a++)if(i(e[a]))return a}function Xd(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],g=i.match(e.parsePattern);if(!g)return null;var A=e.valueCallback?e.valueCallback(g[0]):g[0];A=a.valueCallback?a.valueCallback(A):A;var T=i.slice(d.length);return{value:A,rest:T}}}var Vd={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"}},Yd=function(i,a,f){var d,g=Vd[i];return typeof g=="string"?d=g:a===1?d=g.one:d=g.other.replace("{{count}}",a.toString()),f!=null&&f.addSuffix?f.comparison&&f.comparison>0?"in "+d:d+" ago":d};const Gd=Yd;var Kd={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Zd={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Jd={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Qd={date:pr({formats:Kd,defaultWidth:"full"}),time:pr({formats:Zd,defaultWidth:"full"}),dateTime:pr({formats:Jd,defaultWidth:"full"})};const eh=Qd;var th={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},nh=function(i,a,f,d){return th[i]};const rh=nh;var ih={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},oh={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ah={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"]},sh={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"]},lh={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"}},uh={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"}},ch=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"},fh={ordinalNumber:ch,era:wn({values:ih,defaultWidth:"wide"}),quarter:wn({values:oh,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:wn({values:ah,defaultWidth:"wide"}),day:wn({values:sh,defaultWidth:"wide"}),dayPeriod:wn({values:lh,defaultWidth:"wide",formattingValues:uh,defaultFormattingWidth:"wide"})};const dh=fh;var hh=/^(\d+)(th|st|nd|rd)?/i,ph=/\d+/i,vh={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},gh={any:[/^b/i,/^(a|c)/i]},mh={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},yh={any:[/1/i,/2/i,/3/i,/4/i]},wh={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},bh={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]},xh={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},Sh={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]},Ah={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},Ch={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}},Th={ordinalNumber:Xd({matchPattern:hh,parsePattern:ph,valueCallback:function(i){return parseInt(i,10)}}),era:bn({matchPatterns:vh,defaultMatchWidth:"wide",parsePatterns:gh,defaultParseWidth:"any"}),quarter:bn({matchPatterns:mh,defaultMatchWidth:"wide",parsePatterns:yh,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:bn({matchPatterns:wh,defaultMatchWidth:"wide",parsePatterns:bh,defaultParseWidth:"any"}),day:bn({matchPatterns:xh,defaultMatchWidth:"wide",parsePatterns:Sh,defaultParseWidth:"any"}),dayPeriod:bn({matchPatterns:Ah,defaultMatchWidth:"any",parsePatterns:Ch,defaultParseWidth:"any"})};const Mh=Th;var Eh={code:"en-US",formatDistance:Gd,formatLong:eh,formatRelative:rh,localize:dh,match:Mh,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Oh=Eh,Ph={name:"en-US",locale:Oh},kh=Ph;function Rh(e){const{mergedLocaleRef:i,mergedDateLocaleRef:a}=hn(Ir,null)||{},f=Ue(()=>{var g,A;return(A=(g=i==null?void 0:i.value)===null||g===void 0?void 0:g[e])!==null&&A!==void 0?A:$d[e]});return{dateLocaleRef:Ue(()=>{var g;return(g=a==null?void 0:a.value)!==null&&g!==void 0?g:kh}),localeRef:f}}function _h(e,i,a){if(!i){bs("use-style","No style is specified.");return}const f=fo(),d=hn(Ir,null),g=()=>{const A=a==null?void 0:a.value;i.mount({id:A===void 0?e:A+e,head:!0,anchorMetaName:Ar,props:{bPrefix:A?`.${A}-`:void 0},ssr:f}),d!=null&&d.preflightStyleDisabled||xs.mount({id:"n-global",head:!0,anchorMetaName:Ar,ssr:f})};f?g():so(g)}function Nh(e,i,a){if(!i)return;const f=fo(),d=Ue(()=>{const{value:A}=i;if(!A)return;const T=A[e];if(T)return T}),g=()=>{zt(()=>{const{value:A}=a,T=`${A}${e}Rtl`;if(lu(T,f))return;const{value:C}=d;C&&C.style.mount({id:T,head:!0,anchorMetaName:Ar,props:{bPrefix:A?`.${A}-`:void 0},ssr:f})})};return f?g():so(g),d}function tr(e,i){return ft({name:Lc(e),setup(){var a;const f=(a=hn(Ir,null))===null||a===void 0?void 0:a.mergedIconsRef;return()=>{var d;const g=(d=f==null?void 0:f.value)===null||d===void 0?void 0:d[e];return g?g():i}}})}const Dh=tr("rotateClockwise",Q("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q("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"}),Q("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"}))),Lh=tr("rotateClockwise",Q("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q("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"}),Q("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"}))),Bh=tr("zoomIn",Q("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q("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"}),Q("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"}))),Fh=tr("zoomOut",Q("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q("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"}),Q("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"}))),zh=ft({name:"ResizeSmall",render(){return Q("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},Q("g",{fill:"none"},Q("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"})))}}),Ih=Je("base-icon",`
  4. height: 1em;
  5. width: 1em;
  6. line-height: 1em;
  7. text-align: center;
  8. display: inline-block;
  9. position: relative;
  10. fill: currentColor;
  11. transform: translateZ(0);
  12. `,[Ve("svg",`
  13. height: 1em;
  14. width: 1em;
  15. `)]),Lt=ft({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){_h("-base-icon",Ih,Xt(e,"clsPrefix"))},render(){return Q("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)}}),Wh=e=>{const{scrollbarColor:i,scrollbarColorHover:a}=e;return{color:i,colorHover:a}},jh={name:"Scrollbar",common:Kn,self:Wh},Hh=jh,{cubicBezierEaseInOut:ro}=Ss;function Dr({name:e="fade-in",enterDuration:i="0.2s",leaveDuration:a="0.2s",enterCubicBezier:f=ro,leaveCubicBezier:d=ro}={}){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 $h=Je("scrollbar",`
  16. overflow: hidden;
  17. position: relative;
  18. z-index: auto;
  19. height: 100%;
  20. width: 100%;
  21. `,[Ve(">",[Je("scrollbar-container",`
  22. width: 100%;
  23. overflow: scroll;
  24. height: 100%;
  25. max-height: inherit;
  26. scrollbar-width: none;
  27. `,[Ve("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",`
  28. width: 0;
  29. height: 0;
  30. display: none;
  31. `),Ve(">",[Je("scrollbar-content",`
  32. box-sizing: border-box;
  33. min-width: 100%;
  34. `)])])]),Ve(">, +",[Je("scrollbar-rail",`
  35. position: absolute;
  36. pointer-events: none;
  37. user-select: none;
  38. -webkit-user-select: none;
  39. `,[Vt("horizontal",`
  40. left: 2px;
  41. right: 2px;
  42. bottom: 4px;
  43. height: var(--n-scrollbar-height);
  44. `,[Ve(">",[Ut("scrollbar",`
  45. height: var(--n-scrollbar-height);
  46. border-radius: var(--n-scrollbar-border-radius);
  47. right: 0;
  48. `)])]),Vt("vertical",`
  49. right: 4px;
  50. top: 2px;
  51. bottom: 2px;
  52. width: var(--n-scrollbar-width);
  53. `,[Ve(">",[Ut("scrollbar",`
  54. width: var(--n-scrollbar-width);
  55. border-radius: var(--n-scrollbar-border-radius);
  56. bottom: 0;
  57. `)])]),Vt("disabled",[Ve(">",[Ut("scrollbar",{pointerEvents:"none"})])]),Ve(">",[Ut("scrollbar",`
  58. position: absolute;
  59. cursor: pointer;
  60. pointer-events: all;
  61. background-color: var(--n-scrollbar-color);
  62. transition: background-color .2s var(--n-scrollbar-bezier);
  63. `,[Dr(),Ve("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),qh=Object.assign(Object.assign({},Rt.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}),Uh=ft({name:"Scrollbar",props:qh,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:i,inlineThemeDisabled:a,mergedRtlRef:f}=vn(e),d=Nh("Scrollbar",f,i),g=Te(null),A=Te(null),T=Te(null),C=Te(null),E=Te(null),R=Te(null),F=Te(null),G=Te(null),Y=Te(null),fe=Te(null),z=Te(null),D=Te(0),N=Te(0),q=Te(!1),se=Te(!1);let Ae=!1,J=!1,me,ue,he=0,xe=0,we=0,Pe=0;const Be=hu(),Ce=Ue(()=>{const{value:V}=G,{value:ae}=R,{value:ge}=fe;return V===null||ae===null||ge===null?0:Math.min(V,ge*V/ae+e.size*1.5)}),ce=Ue(()=>`${Ce.value}px`),ke=Ue(()=>{const{value:V}=Y,{value:ae}=F,{value:ge}=z;return V===null||ae===null||ge===null?0:ge*V/ae+e.size*1.5}),U=Ue(()=>`${ke.value}px`),s=Ue(()=>{const{value:V}=G,{value:ae}=D,{value:ge}=R,{value:_e}=fe;if(V===null||ge===null||_e===null)return 0;{const We=ge-V;return We?ae/We*(_e-Ce.value):0}}),l=Ue(()=>`${s.value}px`),n=Ue(()=>{const{value:V}=Y,{value:ae}=N,{value:ge}=F,{value:_e}=z;if(V===null||ge===null||_e===null)return 0;{const We=ge-V;return We?ae/We*(_e-ke.value):0}}),y=Ue(()=>`${n.value}px`),b=Ue(()=>{const{value:V}=G,{value:ae}=R;return V!==null&&ae!==null&&ae>V}),L=Ue(()=>{const{value:V}=Y,{value:ae}=F;return V!==null&&ae!==null&&ae>V}),re=Ue(()=>{const{trigger:V}=e;return V==="none"||q.value}),ee=Ue(()=>{const{trigger:V}=e;return V==="none"||se.value}),de=Ue(()=>{const{container:V}=e;return V?V():A.value}),Re=Ue(()=>{const{content:V}=e;return V?V():T.value}),Ne=ju(()=>{e.container||tt({top:D.value,left:N.value})}),ze=()=>{Ne.isDeactivated||vt()},at=V=>{if(Ne.isDeactivated)return;const{onResize:ae}=e;ae&&ae(V),vt()},tt=(V,ae)=>{if(!e.scrollable)return;if(typeof V=="number"){K(ae!=null?ae:0,V,0,!1,"auto");return}const{left:ge,top:_e,index:We,elSize:Ke,position:ut,behavior:Fe,el:$e,debounce:It=!0}=V;(ge!==void 0||_e!==void 0)&&K(ge!=null?ge:0,_e!=null?_e:0,0,!1,Fe),$e!==void 0?K(0,$e.offsetTop,$e.offsetHeight,It,Fe):We!==void 0&&Ke!==void 0?K(0,We*Ke,Ke,It,Fe):ut==="bottom"?K(0,Number.MAX_SAFE_INTEGER,0,!1,Fe):ut==="top"&&K(0,0,0,!1,Fe)},He=(V,ae)=>{if(!e.scrollable)return;const{value:ge}=de;ge&&(typeof V=="object"?ge.scrollBy(V):ge.scrollBy(V,ae||0))};function K(V,ae,ge,_e,We){const{value:Ke}=de;if(Ke){if(_e){const{scrollTop:ut,offsetHeight:Fe}=Ke;if(ae>ut){ae+ge<=ut+Fe||Ke.scrollTo({left:V,top:ae+ge-Fe,behavior:We});return}}Ke.scrollTo({left:V,top:ae,behavior:We})}}function pe(){Ye(),nt(),vt()}function oe(){Ee()}function Ee(){De(),Xe()}function De(){ue!==void 0&&window.clearTimeout(ue),ue=window.setTimeout(()=>{se.value=!1},e.duration)}function Xe(){me!==void 0&&window.clearTimeout(me),me=window.setTimeout(()=>{q.value=!1},e.duration)}function Ye(){me!==void 0&&window.clearTimeout(me),q.value=!0}function nt(){ue!==void 0&&window.clearTimeout(ue),se.value=!0}function Qe(V){const{onScroll:ae}=e;ae&&ae(V),Tt()}function Tt(){const{value:V}=de;V&&(D.value=V.scrollTop,N.value=V.scrollLeft*(d!=null&&d.value?-1:1))}function en(){const{value:V}=Re;V&&(R.value=V.offsetHeight,F.value=V.offsetWidth);const{value:ae}=de;ae&&(G.value=ae.offsetHeight,Y.value=ae.offsetWidth);const{value:ge}=E,{value:_e}=C;ge&&(z.value=ge.offsetWidth),_e&&(fe.value=_e.offsetHeight)}function ht(){const{value:V}=de;V&&(D.value=V.scrollTop,N.value=V.scrollLeft*(d!=null&&d.value?-1:1),G.value=V.offsetHeight,Y.value=V.offsetWidth,R.value=V.scrollHeight,F.value=V.scrollWidth);const{value:ae}=E,{value:ge}=C;ae&&(z.value=ae.offsetWidth),ge&&(fe.value=ge.offsetHeight)}function vt(){e.scrollable&&(e.useUnifiedContainer?ht():(en(),Tt()))}function Ge(V){var ae;return!(!((ae=g.value)===null||ae===void 0)&&ae.contains(Xn(V)))}function gn(V){V.preventDefault(),V.stopPropagation(),J=!0,pt("mousemove",window,Mt,!0),pt("mouseup",window,_t,!0),xe=N.value,we=d!=null&&d.value?window.innerWidth-V.clientX:V.clientX}function Mt(V){if(!J)return;me!==void 0&&window.clearTimeout(me),ue!==void 0&&window.clearTimeout(ue);const{value:ae}=Y,{value:ge}=F,{value:_e}=ke;if(ae===null||ge===null)return;const Ke=(d!=null&&d.value?window.innerWidth-V.clientX-we:V.clientX-we)*(ge-ae)/(ae-_e),ut=ge-ae;let Fe=xe+Ke;Fe=Math.min(ut,Fe),Fe=Math.max(Fe,0);const{value:$e}=de;if($e){$e.scrollLeft=Fe*(d!=null&&d.value?-1:1);const{internalOnUpdateScrollLeft:It}=e;It&&It(Fe)}}function _t(V){V.preventDefault(),V.stopPropagation(),lt("mousemove",window,Mt,!0),lt("mouseup",window,_t,!0),J=!1,vt(),Ge(V)&&Ee()}function wt(V){V.preventDefault(),V.stopPropagation(),Ae=!0,pt("mousemove",window,gt,!0),pt("mouseup",window,mt,!0),he=D.value,Pe=V.clientY}function gt(V){if(!Ae)return;me!==void 0&&window.clearTimeout(me),ue!==void 0&&window.clearTimeout(ue);const{value:ae}=G,{value:ge}=R,{value:_e}=Ce;if(ae===null||ge===null)return;const Ke=(V.clientY-Pe)*(ge-ae)/(ae-_e),ut=ge-ae;let Fe=he+Ke;Fe=Math.min(ut,Fe),Fe=Math.max(Fe,0);const{value:$e}=de;$e&&($e.scrollTop=Fe)}function mt(V){V.preventDefault(),V.stopPropagation(),lt("mousemove",window,gt,!0),lt("mouseup",window,mt,!0),Ae=!1,vt(),Ge(V)&&Ee()}zt(()=>{const{value:V}=L,{value:ae}=b,{value:ge}=i,{value:_e}=E,{value:We}=C;_e&&(V?_e.classList.remove(`${ge}-scrollbar-rail--disabled`):_e.classList.add(`${ge}-scrollbar-rail--disabled`)),We&&(ae?We.classList.remove(`${ge}-scrollbar-rail--disabled`):We.classList.add(`${ge}-scrollbar-rail--disabled`))}),Ft(()=>{e.container||vt()}),Qt(()=>{me!==void 0&&window.clearTimeout(me),ue!==void 0&&window.clearTimeout(ue),lt("mousemove",window,gt,!0),lt("mouseup",window,mt,!0)});const Nt=Rt("Scrollbar","-scrollbar",$h,Hh,e,i),qe=Ue(()=>{const{common:{cubicBezierEaseInOut:V,scrollbarBorderRadius:ae,scrollbarHeight:ge,scrollbarWidth:_e},self:{color:We,colorHover:Ke}}=Nt.value;return{"--n-scrollbar-bezier":V,"--n-scrollbar-color":We,"--n-scrollbar-color-hover":Ke,"--n-scrollbar-border-radius":ae,"--n-scrollbar-width":_e,"--n-scrollbar-height":ge}}),Ze=a?Wr("scrollbar",void 0,qe,e):void 0;return Object.assign(Object.assign({},{scrollTo:tt,scrollBy:He,sync:vt,syncUnifiedContainer:ht,handleMouseEnterWrapper:pe,handleMouseLeaveWrapper:oe}),{mergedClsPrefix:i,rtlEnabled:d,containerScrollTop:D,wrapperRef:g,containerRef:A,contentRef:T,yRailRef:C,xRailRef:E,needYBar:b,needXBar:L,yBarSizePx:ce,xBarSizePx:U,yBarTopPx:l,xBarLeftPx:y,isShowXBar:re,isShowYBar:ee,isIos:Be,handleScroll:Qe,handleContentResize:ze,handleContainerResize:at,handleYScrollMouseDown:wt,handleXScrollMouseDown:gn,cssVars:a?void 0:qe,themeClass:Ze==null?void 0:Ze.themeClass,onRender:Ze==null?void 0:Ze.onRender})},render(){var e;const{$slots:i,mergedClsPrefix:a,triggerDisplayManually:f,rtlEnabled:d,internalHoistYRail:g}=this;if(!this.scrollable)return(e=i.default)===null||e===void 0?void 0:e.call(i);const A=this.trigger==="none",T=()=>Q("div",{ref:"yRailRef",class:[`${a}-scrollbar-rail`,`${a}-scrollbar-rail--vertical`],"data-scrollbar-rail":!0,style:this.verticalRailStyle,"aria-hidden":!0},Q(A?Ai:ln,A?null:{name:"fade-in-transition"},{default:()=>this.needYBar&&this.isShowYBar&&!this.isIos?Q("div",{class:`${a}-scrollbar-rail__scrollbar`,style:{height:this.yBarSizePx,top:this.yBarTopPx},onMousedown:this.handleYScrollMouseDown}):null})),C=()=>{var R,F;return(R=this.onRender)===null||R===void 0||R.call(this),Q("div",Lr(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?(F=i.default)===null||F===void 0?void 0:F.call(i):Q("div",{role:"none",ref:"containerRef",class:[`${a}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},Q(zi,{onResize:this.handleContentResize},{default:()=>Q("div",{ref:"contentRef",role:"none",style:[{width:this.xScrollable?"fit-content":null},this.contentStyle],class:[`${a}-scrollbar-content`,this.contentClass]},i)})),g?null:T(),this.xScrollable&&Q("div",{ref:"xRailRef",class:[`${a}-scrollbar-rail`,`${a}-scrollbar-rail--horizontal`],style:this.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},Q(A?Ai:ln,A?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?Q("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}))])},E=this.container?C():Q(zi,{onResize:this.handleContainerResize},{default:C});return g?Q(Jt,null,E,T()):E}}),Xh=Uh,Vh={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},Yh=e=>{const{boxShadow2:i,popoverColor:a,textColor2:f,borderRadius:d,fontSize:g,dividerColor:A}=e;return Object.assign(Object.assign({},Vh),{fontSize:g,borderRadius:d,color:a,dividerColor:A,textColor:f,boxShadow:i})},Gh={name:"Popover",common:Kn,self:Yh},ua=Gh,vr={top:"bottom",bottom:"top",left:"right",right:"left"},ot="var(--n-arrow-height) * 1.414",Kh=Ve([Je("popover",`
  64. transition:
  65. box-shadow .3s var(--n-bezier),
  66. background-color .3s var(--n-bezier),
  67. color .3s var(--n-bezier);
  68. position: relative;
  69. font-size: var(--n-font-size);
  70. color: var(--n-text-color);
  71. box-shadow: var(--n-box-shadow);
  72. word-break: break-word;
  73. `,[Ve(">",[Je("scrollbar",`
  74. height: inherit;
  75. max-height: inherit;
  76. `)]),Fn("raw",`
  77. background-color: var(--n-color);
  78. border-radius: var(--n-border-radius);
  79. `,[Fn("scrollable",[Fn("show-header-or-footer","padding: var(--n-padding);")])]),Ut("header",`
  80. padding: var(--n-padding);
  81. border-bottom: 1px solid var(--n-divider-color);
  82. transition: border-color .3s var(--n-bezier);
  83. `),Ut("footer",`
  84. padding: var(--n-padding);
  85. border-top: 1px solid var(--n-divider-color);
  86. transition: border-color .3s var(--n-bezier);
  87. `),Vt("scrollable, show-header-or-footer",[Ut("content",`
  88. padding: var(--n-padding);
  89. `)])]),Je("popover-shared",`
  90. transform-origin: inherit;
  91. `,[Je("popover-arrow-wrapper",`
  92. position: absolute;
  93. overflow: hidden;
  94. pointer-events: none;
  95. `,[Je("popover-arrow",`
  96. transition: background-color .3s var(--n-bezier);
  97. position: absolute;
  98. display: block;
  99. width: calc(${ot});
  100. height: calc(${ot});
  101. box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);
  102. transform: rotate(45deg);
  103. background-color: var(--n-color);
  104. pointer-events: all;
  105. `)]),Ve("&.popover-transition-enter-from, &.popover-transition-leave-to",`
  106. opacity: 0;
  107. transform: scale(.85);
  108. `),Ve("&.popover-transition-enter-to, &.popover-transition-leave-from",`
  109. transform: scale(1);
  110. opacity: 1;
  111. `),Ve("&.popover-transition-enter-active",`
  112. transition:
  113. box-shadow .3s var(--n-bezier),
  114. background-color .3s var(--n-bezier),
  115. color .3s var(--n-bezier),
  116. opacity .15s var(--n-bezier-ease-out),
  117. transform .15s var(--n-bezier-ease-out);
  118. `),Ve("&.popover-transition-leave-active",`
  119. transition:
  120. box-shadow .3s var(--n-bezier),
  121. background-color .3s var(--n-bezier),
  122. color .3s var(--n-bezier),
  123. opacity .15s var(--n-bezier-ease-in),
  124. transform .15s var(--n-bezier-ease-in);
  125. `)]),yt("top-start",`
  126. top: calc(${ot} / -2);
  127. left: calc(${Et("top-start")} - var(--v-offset-left));
  128. `),yt("top",`
  129. top: calc(${ot} / -2);
  130. transform: translateX(calc(${ot} / -2)) rotate(45deg);
  131. left: 50%;
  132. `),yt("top-end",`
  133. top: calc(${ot} / -2);
  134. right: calc(${Et("top-end")} + var(--v-offset-left));
  135. `),yt("bottom-start",`
  136. bottom: calc(${ot} / -2);
  137. left: calc(${Et("bottom-start")} - var(--v-offset-left));
  138. `),yt("bottom",`
  139. bottom: calc(${ot} / -2);
  140. transform: translateX(calc(${ot} / -2)) rotate(45deg);
  141. left: 50%;
  142. `),yt("bottom-end",`
  143. bottom: calc(${ot} / -2);
  144. right: calc(${Et("bottom-end")} + var(--v-offset-left));
  145. `),yt("left-start",`
  146. left: calc(${ot} / -2);
  147. top: calc(${Et("left-start")} - var(--v-offset-top));
  148. `),yt("left",`
  149. left: calc(${ot} / -2);
  150. transform: translateY(calc(${ot} / -2)) rotate(45deg);
  151. top: 50%;
  152. `),yt("left-end",`
  153. left: calc(${ot} / -2);
  154. bottom: calc(${Et("left-end")} + var(--v-offset-top));
  155. `),yt("right-start",`
  156. right: calc(${ot} / -2);
  157. top: calc(${Et("right-start")} - var(--v-offset-top));
  158. `),yt("right",`
  159. right: calc(${ot} / -2);
  160. transform: translateY(calc(${ot} / -2)) rotate(45deg);
  161. top: 50%;
  162. `),yt("right-end",`
  163. right: calc(${ot} / -2);
  164. bottom: calc(${Et("right-end")} + var(--v-offset-top));
  165. `),...Id({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 g=d.split("-")[1]==="end",T=`calc((${`var(--v-target-${f}, 0px)`} - ${ot}) / 2)`,C=Et(d);return Ve(`[v-placement="${d}"] >`,[Je("popover-shared",[Vt("center-arrow",[Je("popover-arrow",`${i}: calc(max(${T}, ${C}) ${g?"+":"-"} var(--v-offset-${a?"left":"top"}));`)])])])})})]);function Et(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function yt(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}"] >`,[Je("popover-shared",`
  166. margin-${vr[a]}: var(--n-space);
  167. `,[Vt("show-arrow",`
  168. margin-${vr[a]}: var(--n-space-arrow);
  169. `),Vt("overlap",`
  170. margin: 0;
  171. `),As("popover-arrow-wrapper",`
  172. right: 0;
  173. left: 0;
  174. top: 0;
  175. bottom: 0;
  176. ${a}: 100%;
  177. ${vr[a]}: auto;
  178. ${f}
  179. `,[Je("popover-arrow",i)])])])}const ca=Object.assign(Object.assign({},Rt.props),{to:Hn.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}),Zh=({arrowStyle:e,clsPrefix:i})=>Q("div",{key:"__popover-arrow__",class:`${i}-popover-arrow-wrapper`},Q("div",{class:`${i}-popover-arrow`,style:e})),Jh=ft({name:"PopoverBody",inheritAttrs:!1,props:ca,setup(e,{slots:i,attrs:a}){const{namespaceRef:f,mergedClsPrefixRef:d,inlineThemeDisabled:g}=vn(e),A=Rt("Popover","-popover",Kh,ua,e,d),T=Te(null),C=hn("NPopover"),E=Te(null),R=Te(e.show),F=Te(!1);zt(()=>{const{show:ue}=e;ue&&!uu()&&!e.internalDeactivateImmediately&&(F.value=!0)});const G=Ue(()=>{const{trigger:ue,onClickoutside:he}=e,xe=[],{positionManuallyRef:{value:we}}=C;return we||(ue==="click"&&!he&&xe.push([Ti,Ae,void 0,{capture:!0}]),ue==="hover"&&xe.push([vu,se])),he&&xe.push([Ti,Ae,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&F.value)&&xe.push([lo,e.show]),xe}),Y=Ue(()=>{const ue=e.width==="trigger"?void 0:ur(e.width),he=[];ue&&he.push({width:ue});const{maxWidth:xe,minWidth:we}=e;return xe&&he.push({maxWidth:ur(xe)}),we&&he.push({maxWidth:ur(we)}),g||he.push(fe.value),he}),fe=Ue(()=>{const{common:{cubicBezierEaseInOut:ue,cubicBezierEaseIn:he,cubicBezierEaseOut:xe},self:{space:we,spaceArrow:Pe,padding:Be,fontSize:Ce,textColor:ce,dividerColor:ke,color:U,boxShadow:s,borderRadius:l,arrowHeight:n,arrowOffset:y,arrowOffsetVertical:b}}=A.value;return{"--n-box-shadow":s,"--n-bezier":ue,"--n-bezier-ease-in":he,"--n-bezier-ease-out":xe,"--n-font-size":Ce,"--n-text-color":ce,"--n-color":U,"--n-divider-color":ke,"--n-border-radius":l,"--n-arrow-height":n,"--n-arrow-offset":y,"--n-arrow-offset-vertical":b,"--n-padding":Be,"--n-space":we,"--n-space-arrow":Pe}}),z=g?Wr("popover",void 0,fe,e):void 0;C.setBodyInstance({syncPosition:D}),Qt(()=>{C.setBodyInstance(null)}),Zt(Xt(e,"show"),ue=>{e.animated||(ue?R.value=!0:R.value=!1)});function D(){var ue;(ue=T.value)===null||ue===void 0||ue.syncPosition()}function N(ue){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&C.handleMouseEnter(ue)}function q(ue){e.trigger==="hover"&&e.keepAliveOnHover&&C.handleMouseLeave(ue)}function se(ue){e.trigger==="hover"&&!J().contains(Xn(ue))&&C.handleMouseMoveOutside(ue)}function Ae(ue){(e.trigger==="click"&&!J().contains(Xn(ue))||e.onClickoutside)&&C.handleClickOutside(ue)}function J(){return C.getTriggerElement()}un(Ts,E),un(Ms,null),un(Es,null);function me(){if(z==null||z.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&F.value))return null;let he;const xe=C.internalRenderBodyRef.value,{value:we}=d;if(xe)he=xe([`${we}-popover-shared`,z==null?void 0:z.themeClass.value,e.overlap&&`${we}-popover-shared--overlap`,e.showArrow&&`${we}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${we}-popover-shared--center-arrow`],E,Y.value,N,q);else{const{value:Pe}=C.extraClassRef,{internalTrapFocus:Be}=e,Ce=!hi(i.header)||!hi(i.footer),ce=()=>{var ke;const U=Ce?Q(Jt,null,lr(i.header,n=>n?Q("div",{class:`${we}-popover__header`,style:e.headerStyle},n):null),lr(i.default,n=>n?Q("div",{class:`${we}-popover__content`,style:e.contentStyle},i):null),lr(i.footer,n=>n?Q("div",{class:`${we}-popover__footer`,style:e.footerStyle},n):null)):e.scrollable?(ke=i.default)===null||ke===void 0?void 0:ke.call(i):Q("div",{class:`${we}-popover__content`,style:e.contentStyle},i),s=e.scrollable?Q(Xh,{contentClass:Ce?void 0:`${we}-popover__content`,contentStyle:Ce?void 0:e.contentStyle},{default:()=>U}):U,l=e.showArrow?Zh({arrowStyle:e.arrowStyle,clsPrefix:we}):null;return[s,l]};he=Q("div",Lr({class:[`${we}-popover`,`${we}-popover-shared`,z==null?void 0:z.themeClass.value,Pe.map(ke=>`${we}-${ke}`),{[`${we}-popover--scrollable`]:e.scrollable,[`${we}-popover--show-header-or-footer`]:Ce,[`${we}-popover--raw`]:e.raw,[`${we}-popover-shared--overlap`]:e.overlap,[`${we}-popover-shared--show-arrow`]:e.showArrow,[`${we}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:E,style:Y.value,onKeydown:C.handleKeydown,onMouseenter:N,onMouseleave:q},a),Be?Q(Wu,{active:e.show,autoFocus:!0},{default:ce}):ce())}return Wn(he,G.value)}return{displayed:F,namespace:f,isMounted:C.isMountedRef,zIndex:C.zIndexRef,followerRef:T,adjustedTo:Hn(e),followerEnabled:R,renderContentNode:me}},render(){return Q(Cs,{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===Hn.tdkey},{default:()=>this.animated?Q(ln,{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()})}}),Qh=Object.keys(ca),ep={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function tp(e,i,a){ep[i].forEach(f=>{e.props?e.props=Object.assign({},e.props):e.props={};const d=e.props[f],g=a[f];d?e.props[f]=(...A)=>{d(...A),g(...A)}:e.props[f]=g})}const fa={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:Hn.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},np=Object.assign(Object.assign(Object.assign({},Rt.props),fa),{internalOnAfterLeave:Function,internalRenderBody:Function}),rp=ft({name:"Popover",inheritAttrs:!1,props:np,__popover__:!0,setup(e){zt(()=>{e.maxWidth!==void 0&&mn("popover","`max-width` is deprecated, please use `style` instead."),e.minWidth!==void 0&&mn("popover","`min-width` is deprecated, please use `style` instead."),e.arrow!==void 0&&mn("popover","`arrow` is deprecated, please use `showArrow` instead."),e.onHide!==void 0&&mn("popover","`on-hide` is deprecated, please use `on-update:show` instead."),e.onShow!==void 0&&mn("popover","`on-show` is deprecated, please use `on-update:show` instead.")});const i=ho(),a=Te(null),f=Ue(()=>e.show),d=Te(e.defaultShow),g=Os(f,d),A=pi(()=>e.disabled?!1:g.value),T=()=>{if(e.disabled)return!0;const{getDisabled:ce}=e;return!!(ce!=null&&ce())},C=()=>T()?!1:g.value,E=fu(e,["arrow","showArrow"]),R=Ue(()=>e.overlap?!1:E.value);let F=null;const G=Te(null),Y=Te(null),fe=pi(()=>e.x!==void 0&&e.y!==void 0);function z(ce){const{"onUpdate:show":ke,onUpdateShow:U,onShow:s,onHide:l}=e;d.value=ce,ke&&Pn(ke,ce),U&&Pn(U,ce),ce&&s&&Pn(s,!0),ce&&l&&Pn(l,!1)}function D(){F&&F.syncPosition()}function N(){const{value:ce}=G;ce&&(window.clearTimeout(ce),G.value=null)}function q(){const{value:ce}=Y;ce&&(window.clearTimeout(ce),Y.value=null)}function se(){const ce=T();if(e.trigger==="focus"&&!ce){if(C())return;z(!0)}}function Ae(){const ce=T();if(e.trigger==="focus"&&!ce){if(!C())return;z(!1)}}function J(){const ce=T();if(e.trigger==="hover"&&!ce){if(q(),G.value!==null||C())return;const ke=()=>{z(!0),G.value=null},{delay:U}=e;U===0?ke():G.value=window.setTimeout(ke,U)}}function me(){const ce=T();if(e.trigger==="hover"&&!ce){if(N(),Y.value!==null||!C())return;const ke=()=>{z(!1),Y.value=null},{duration:U}=e;U===0?ke():Y.value=window.setTimeout(ke,U)}}function ue(){me()}function he(ce){var ke;C()&&(e.trigger==="click"&&(N(),q(),z(!1)),(ke=e.onClickoutside)===null||ke===void 0||ke.call(e,ce))}function xe(){if(e.trigger==="click"&&!T()){N(),q();const ce=!C();z(ce)}}function we(ce){e.internalTrapFocus&&ce.key==="Escape"&&(N(),q(),z(!1))}function Pe(ce){d.value=ce}function Be(){var ce;return(ce=a.value)===null||ce===void 0?void 0:ce.targetRef}function Ce(ce){F=ce}return un("NPopover",{getTriggerElement:Be,handleKeydown:we,handleMouseEnter:J,handleMouseLeave:me,handleClickOutside:he,handleMouseMoveOutside:ue,setBodyInstance:Ce,positionManuallyRef:fe,isMountedRef:i,zIndexRef:Xt(e,"zIndex"),extraClassRef:Xt(e,"internalExtraClass"),internalRenderBodyRef:Xt(e,"internalRenderBody")}),zt(()=>{g.value&&T()&&z(!1)}),{binderInstRef:a,positionManually:fe,mergedShowConsideringDisabledProp:A,uncontrolledShow:d,mergedShowArrow:R,getMergedShow:C,setShow:Pe,handleClick:xe,handleMouseEnter:J,handleMouseLeave:me,handleFocus:se,handleBlur:Ae,syncPosition:D}},render(){var e;const{positionManually:i,$slots:a}=this;let f,d=!1;if(!i&&(a.activator?f=Si(a,"activator"):f=Si(a,"trigger"),f)){f=es(f),f=f.type===ts?Q("span",[f]):f;const g={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=[g,...f.props.internalInheritedEventHandlers]:f.props.internalInheritedEventHandlers=[g];else{const{internalInheritedEventHandlers:A}=this,T=[g,...A],C={onBlur:E=>{T.forEach(R=>{R.onBlur(E)})},onFocus:E=>{T.forEach(R=>{R.onFocus(E)})},onClick:E=>{T.forEach(R=>{R.onClick(E)})},onMouseenter:E=>{T.forEach(R=>{R.onMouseenter(E)})},onMouseleave:E=>{T.forEach(R=>{R.onMouseleave(E)})}};tp(f,A?"nested":i?"manual":this.trigger,C)}}return Q(ks,{ref:"binderInstRef",syncTarget:!d,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const g=this.getMergedShow();return[this.internalTrapFocus&&g?Wn(Q("div",{style:{position:"fixed",inset:0}}),[[po,{enabled:g,zIndex:this.zIndex}]]):null,i?null:Q(Ps,null,{default:()=>f}),Q(Jh,au(this.$props,Qh,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:g})),{default:()=>{var A,T;return(T=(A=this.$slots).default)===null||T===void 0?void 0:T.call(A)},header:()=>{var A,T;return(T=(A=this.$slots).header)===null||T===void 0?void 0:T.call(A)},footer:()=>{var A,T;return(T=(A=this.$slots).footer)===null||T===void 0?void 0:T.call(A)}})]}})}}),ip=cu&&"loading"in document.createElement("img"),op=(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})}},gr=new WeakMap,mr=new WeakMap,yr=new WeakMap,ap=(e,i,a)=>{if(!e)return()=>{};const f=op(i),{root:d}=f.options;let g;const A=gr.get(d);A?g=A:(g=new Map,gr.set(d,g));let T,C;g.has(f.hash)?(C=g.get(f.hash),C[1].has(e)||(T=C[0],C[1].add(e),T.observe(e))):(T=new IntersectionObserver(F=>{F.forEach(G=>{if(G.isIntersecting){const Y=mr.get(G.target),fe=yr.get(G.target);Y&&Y(),fe&&(fe.value=!0)}})},f.options),T.observe(e),C=[T,new Set([e])],g.set(f.hash,C));let E=!1;const R=()=>{E||(mr.delete(e),yr.delete(e),E=!0,C[1].has(e)&&(C[0].unobserve(e),C[1].delete(e)),C[1].size<=0&&g.delete(f.hash),g.size||gr.delete(d))};return mr.set(e,R),yr.set(e,a),R},sp={padding:"8px 14px"},lp=e=>{const{borderRadius:i,boxShadow2:a,baseColor:f}=e;return Object.assign(Object.assign({},sp),{borderRadius:i,boxShadow:a,color:Rs(f,"rgba(0, 0, 0, .85)"),textColor:f})},up=vo({name:"Tooltip",common:Kn,peers:{Popover:ua},self:lp}),da=up,cp=Object.assign(Object.assign({},fa),Rt.props),fp=ft({name:"Tooltip",props:cp,__popover__:!0,setup(e){const{mergedClsPrefixRef:i}=vn(e),a=Rt("Tooltip","-tooltip",void 0,da,e,i),f=Te(null);return Object.assign(Object.assign({},{syncPosition(){f.value.syncPosition()},setShow(g){f.value.setShow(g)}}),{popoverRef:f,mergedTheme:a,popoverThemeOverrides:Ue(()=>a.value.self)})},render(){const{mergedTheme:e,internalExtraClass:i}=this;return Q(rp,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)}}),Kr=Object.assign(Object.assign({},Rt.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),ha=go("n-image");function dp(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const hp=vo({name:"Image",common:Kn,peers:{Tooltip:da},self:dp}),pp=Q("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q("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"})),vp=Q("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q("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"})),gp=Q("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},Q("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"})),mp=Ve([Ve("body >",[Je("image-container","position: fixed;")]),Je("image-preview-container",`
  180. position: fixed;
  181. left: 0;
  182. right: 0;
  183. top: 0;
  184. bottom: 0;
  185. display: flex;
  186. `),Je("image-preview-overlay",`
  187. z-index: -1;
  188. position: absolute;
  189. left: 0;
  190. right: 0;
  191. top: 0;
  192. bottom: 0;
  193. background: rgba(0, 0, 0, .3);
  194. `,[Dr()]),Je("image-preview-toolbar",`
  195. z-index: 1;
  196. position: absolute;
  197. left: 50%;
  198. transform: translateX(-50%);
  199. border-radius: var(--n-toolbar-border-radius);
  200. height: 48px;
  201. bottom: 40px;
  202. padding: 0 12px;
  203. background: var(--n-toolbar-color);
  204. box-shadow: var(--n-toolbar-box-shadow);
  205. color: var(--n-toolbar-icon-color);
  206. transition: color .3s var(--n-bezier);
  207. display: flex;
  208. align-items: center;
  209. `,[Je("base-icon",`
  210. padding: 0 8px;
  211. font-size: 28px;
  212. cursor: pointer;
  213. `),Dr()]),Je("image-preview-wrapper",`
  214. position: absolute;
  215. left: 0;
  216. right: 0;
  217. top: 0;
  218. bottom: 0;
  219. display: flex;
  220. pointer-events: none;
  221. `,[_s()]),Je("image-preview",`
  222. user-select: none;
  223. -webkit-user-select: none;
  224. pointer-events: all;
  225. margin: auto;
  226. max-height: calc(100vh - 32px);
  227. max-width: calc(100vw - 32px);
  228. transition: transform .3s var(--n-bezier);
  229. `),Je("image",`
  230. display: inline-flex;
  231. max-height: 100%;
  232. max-width: 100%;
  233. `,[Fn("preview-disabled",`
  234. cursor: pointer;
  235. `),Ve("img",`
  236. border-radius: inherit;
  237. `)])]),Ln=32,pa=ft({name:"ImagePreview",props:Object.assign(Object.assign({},Kr),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const i=Rt("Image","-image",mp,hp,e,Xt(e,"clsPrefix"));let a=null;const f=Te(null),d=Te(null),g=Te(void 0),A=Te(!1),T=Te(!1),{localeRef:C}=Rh("Image");function E(){const{value:K}=d;if(!a||!K)return;const{style:pe}=K,oe=a.getBoundingClientRect(),Ee=oe.left+oe.width/2,De=oe.top+oe.height/2;pe.transformOrigin=`${Ee}px ${De}px`}function R(K){var pe,oe;switch(K.key){case" ":K.preventDefault();break;case"ArrowLeft":(pe=e.onPrev)===null||pe===void 0||pe.call(e);break;case"ArrowRight":(oe=e.onNext)===null||oe===void 0||oe.call(e);break;case"Escape":de();break}}Zt(A,K=>{K?pt("keydown",document,R):lt("keydown",document,R)}),Qt(()=>{lt("keydown",document,R)});let F=0,G=0,Y=0,fe=0,z=0,D=0,N=0,q=0,se=!1;function Ae(K){const{clientX:pe,clientY:oe}=K;Y=pe-F,fe=oe-G,Ds(ee)}function J(K){const{mouseUpClientX:pe,mouseUpClientY:oe,mouseDownClientX:Ee,mouseDownClientY:De}=K,Xe=Ee-pe,Ye=De-oe,nt=`vertical${Ye>0?"Top":"Bottom"}`,Qe=`horizontal${Xe>0?"Left":"Right"}`;return{moveVerticalDirection:nt,moveHorizontalDirection:Qe,deltaHorizontal:Xe,deltaVertical:Ye}}function me(K){const{value:pe}=f;if(!pe)return{offsetX:0,offsetY:0};const oe=pe.getBoundingClientRect(),{moveVerticalDirection:Ee,moveHorizontalDirection:De,deltaHorizontal:Xe,deltaVertical:Ye}=K||{};let nt=0,Qe=0;return oe.width<=window.innerWidth?nt=0:oe.left>0?nt=(oe.width-window.innerWidth)/2:oe.right<window.innerWidth?nt=-(oe.width-window.innerWidth)/2:De==="horizontalRight"?nt=Math.min((oe.width-window.innerWidth)/2,z-(Xe!=null?Xe:0)):nt=Math.max(-((oe.width-window.innerWidth)/2),z-(Xe!=null?Xe:0)),oe.height<=window.innerHeight?Qe=0:oe.top>0?Qe=(oe.height-window.innerHeight)/2:oe.bottom<window.innerHeight?Qe=-(oe.height-window.innerHeight)/2:Ee==="verticalBottom"?Qe=Math.min((oe.height-window.innerHeight)/2,D-(Ye!=null?Ye:0)):Qe=Math.max(-((oe.height-window.innerHeight)/2),D-(Ye!=null?Ye:0)),{offsetX:nt,offsetY:Qe}}function ue(K){lt("mousemove",document,Ae),lt("mouseup",document,ue);const{clientX:pe,clientY:oe}=K;se=!1;const Ee=J({mouseUpClientX:pe,mouseUpClientY:oe,mouseDownClientX:N,mouseDownClientY:q}),De=me(Ee);Y=De.offsetX,fe=De.offsetY,ee()}const he=hn(ha,null);function xe(K){var pe,oe;if((oe=(pe=he==null?void 0:he.previewedImgPropsRef.value)===null||pe===void 0?void 0:pe.onMousedown)===null||oe===void 0||oe.call(pe,K),K.button!==0)return;const{clientX:Ee,clientY:De}=K;se=!0,F=Ee-Y,G=De-fe,z=Y,D=fe,N=Ee,q=De,ee(),pt("mousemove",document,Ae),pt("mouseup",document,ue)}function we(K){var pe,oe;(oe=(pe=he==null?void 0:he.previewedImgPropsRef.value)===null||pe===void 0?void 0:pe.onDblclick)===null||oe===void 0||oe.call(pe,K);const Ee=b();Ce=Ce===Ee?1:Ee,ee()}const Pe=1.5;let Be=0,Ce=1,ce=0;function ke(){Ce=1,Be=0}function U(){var K;ke(),ce=0,(K=e.onPrev)===null||K===void 0||K.call(e)}function s(){var K;ke(),ce=0,(K=e.onNext)===null||K===void 0||K.call(e)}function l(){ce-=90,ee()}function n(){ce+=90,ee()}function y(){const{value:K}=f;if(!K)return 1;const{innerWidth:pe,innerHeight:oe}=window,Ee=Math.max(1,K.naturalHeight/(oe-Ln)),De=Math.max(1,K.naturalWidth/(pe-Ln));return Math.max(3,Ee*2,De*2)}function b(){const{value:K}=f;if(!K)return 1;const{innerWidth:pe,innerHeight:oe}=window,Ee=K.naturalHeight/(oe-Ln),De=K.naturalWidth/(pe-Ln);return Ee<1&&De<1?1:Math.max(Ee,De)}function L(){const K=y();Ce<K&&(Be+=1,Ce=Math.min(K,Math.pow(Pe,Be)),ee())}function re(){if(Ce>.5){const K=Ce;Be-=1,Ce=Math.max(.5,Math.pow(Pe,Be));const pe=K-Ce;ee(!1);const oe=me();Ce+=pe,ee(!1),Ce-=pe,Y=oe.offsetX,fe=oe.offsetY,ee()}}function ee(K=!0){var pe;const{value:oe}=f;if(!oe)return;const{style:Ee}=oe,De=ns((pe=he==null?void 0:he.previewedImgPropsRef.value)===null||pe===void 0?void 0:pe.style);let Xe="";if(typeof De=="string")Xe=De+";";else for(const nt in De)Xe+=`${jd(nt)}: ${De[nt]};`;const Ye=`transform-origin: center; transform: translateX(${Y}px) translateY(${fe}px) rotate(${ce}deg) scale(${Ce});`;se?Ee.cssText=Xe+"cursor: grabbing; transition: none;"+Ye:Ee.cssText=Xe+"cursor: grab;"+Ye+(K?"":"transition: none;"),K||oe.offsetHeight}function de(){A.value=!A.value,T.value=!0}function Re(){Ce=b(),Be=Math.ceil(Math.log(Ce)/Math.log(Pe)),Y=0,fe=0,ee()}const Ne={setPreviewSrc:K=>{g.value=K},setThumbnailEl:K=>{a=K},toggleShow:de};function ze(K,pe){if(e.showToolbarTooltip){const{value:oe}=i;return Q(fp,{to:!1,theme:oe.peers.Tooltip,themeOverrides:oe.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>C.value[pe],trigger:()=>K})}else return K}const at=Ue(()=>{const{common:{cubicBezierEaseInOut:K},self:{toolbarIconColor:pe,toolbarBorderRadius:oe,toolbarBoxShadow:Ee,toolbarColor:De}}=i.value;return{"--n-bezier":K,"--n-toolbar-icon-color":pe,"--n-toolbar-color":De,"--n-toolbar-border-radius":oe,"--n-toolbar-box-shadow":Ee}}),{inlineThemeDisabled:tt}=vn(),He=tt?Wr("image-preview",void 0,at,e):void 0;return Object.assign({previewRef:f,previewWrapperRef:d,previewSrc:g,show:A,appear:ho(),displayed:T,previewedImgProps:he==null?void 0:he.previewedImgPropsRef,handleWheel(K){K.preventDefault()},handlePreviewMousedown:xe,handlePreviewDblclick:we,syncTransformOrigin:E,handleAfterLeave:()=>{ke(),ce=0,T.value=!1},handleDragStart:K=>{var pe,oe;(oe=(pe=he==null?void 0:he.previewedImgPropsRef.value)===null||pe===void 0?void 0:pe.onDragstart)===null||oe===void 0||oe.call(pe,K),K.preventDefault()},zoomIn:L,zoomOut:re,rotateCounterclockwise:l,rotateClockwise:n,handleSwitchPrev:U,handleSwitchNext:s,withTooltip:ze,resizeToOrignalImageSize:Re,cssVars:tt?void 0:at,themeClass:He==null?void 0:He.themeClass,onRender:He==null?void 0:He.onRender},Ne)},render(){var e,i;const{clsPrefix:a}=this;return Q(Jt,null,(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e),Q(Ns,{show:this.show},{default:()=>{var f;return this.show||this.displayed?((f=this.onRender)===null||f===void 0||f.call(this),Wn(Q("div",{class:[`${a}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},Q(ln,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?Q("div",{class:`${a}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?Q(ln,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:d}=this;return Q("div",{class:`${a}-image-preview-toolbar`},this.onPrev?Q(Jt,null,d(Q(Lt,{clsPrefix:a,onClick:this.handleSwitchPrev},{default:()=>pp}),"tipPrevious"),d(Q(Lt,{clsPrefix:a,onClick:this.handleSwitchNext},{default:()=>vp}),"tipNext")):null,d(Q(Lt,{clsPrefix:a,onClick:this.rotateCounterclockwise},{default:()=>Q(Lh,null)}),"tipCounterclockwise"),d(Q(Lt,{clsPrefix:a,onClick:this.rotateClockwise},{default:()=>Q(Dh,null)}),"tipClockwise"),d(Q(Lt,{clsPrefix:a,onClick:this.resizeToOrignalImageSize},{default:()=>Q(zh,null)}),"tipOriginalSize"),d(Q(Lt,{clsPrefix:a,onClick:this.zoomOut},{default:()=>Q(Fh,null)}),"tipZoomOut"),d(Q(Lt,{clsPrefix:a,onClick:this.zoomIn},{default:()=>Q(Bh,null)}),"tipZoomIn"),d(Q(Lt,{clsPrefix:a,onClick:this.toggleShow},{default:()=>gp}),"tipClose"))}}):null,Q(ln,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:d={}}=this;return Wn(Q("div",{class:`${a}-image-preview-wrapper`,ref:"previewWrapperRef"},Q("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}))),[[lo,this.show]])}})),[[po,{enabled:this.show}]])):null}}))}}),va=go("n-image-group"),yp=Kr;ft({name:"ImageGroup",props:yp,setup(e){let i;const{mergedClsPrefixRef:a}=vn(e),f=`c${To()}`,d=ao(),g=C=>{var E;i=C,(E=T.value)===null||E===void 0||E.setPreviewSrc(C)};function A(C){if(!(d!=null&&d.proxy))return;const R=d.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${f}]:not([data-error=true])`);if(!R.length)return;const F=Array.from(R).findIndex(G=>G.dataset.previewSrc===i);~F?g(R[(F+C+R.length)%R.length].dataset.previewSrc):g(R[0].dataset.previewSrc)}un(va,{mergedClsPrefixRef:a,setPreviewSrc:g,setThumbnailEl:C=>{var E;(E=T.value)===null||E===void 0||E.setThumbnailEl(C)},toggleShow:()=>{var C;(C=T.value)===null||C===void 0||C.toggleShow()},groupId:f});const T=Te(null);return{mergedClsPrefix:a,previewInstRef:T,next:()=>{A(1)},prev:()=>{A(-1)}}},render(){return Q(pa,{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 wp=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},Kr),bp=ft({name:"Image",props:wp,inheritAttrs:!1,setup(e){const i=Te(null),a=Te(!1),f=Te(null),d=hn(va,null),{mergedClsPrefixRef:g}=d||vn(e),A={click:()=>{if(e.previewDisabled||a.value)return;const E=e.previewSrc||e.src;if(d){d.setPreviewSrc(E),d.setThumbnailEl(i.value),d.toggleShow();return}const{value:R}=f;R&&(R.setPreviewSrc(E),R.setThumbnailEl(i.value),R.toggleShow())}},T=Te(!e.lazy);Ft(()=>{var E;(E=i.value)===null||E===void 0||E.setAttribute("data-group-id",(d==null?void 0:d.groupId)||"")}),Ft(()=>{if(e.lazy&&e.intersectionObserverOptions){let E;const R=zt(()=>{E==null||E(),E=void 0,E=ap(i.value,e.intersectionObserverOptions,T)});Qt(()=>{R(),E==null||E()})}}),zt(()=>{var E;e.src,(E=e.imgProps)===null||E===void 0||E.src,a.value=!1});const C=Te(!1);return un(ha,{previewedImgPropsRef:Xt(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:g,groupId:d==null?void 0:d.groupId,previewInstRef:f,imageRef:i,showError:a,shouldStartLoading:T,loaded:C,mergedOnClick:E=>{var R,F;A.click(),(F=(R=e.imgProps)===null||R===void 0?void 0:R.onClick)===null||F===void 0||F.call(R,E)},mergedOnError:E=>{if(!T.value)return;a.value=!0;const{onError:R,imgProps:{onError:F}={}}=e;R==null||R(E),F==null||F(E)},mergedOnLoad:E=>{const{onLoad:R,imgProps:{onLoad:F}={}}=e;R==null||R(E),F==null||F(E),C.value=!0}},A)},render(){var e,i;const{mergedClsPrefix:a,imgProps:f={},loaded:d,$attrs:g,lazy:A}=this,T=(i=(e=this.$slots).placeholder)===null||i===void 0?void 0:i.call(e),C=this.src||f.src,E=Q("img",Object.assign(Object.assign({},f),{ref:"imageRef",width:this.width||f.width,height:this.height||f.height,src:this.showError?this.fallbackSrc:A&&this.intersectionObserverOptions?this.shouldStartLoading?C:void 0:C,alt:this.alt||f.alt,"aria-label":this.alt||f.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:ip&&A&&!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 Q("div",Object.assign({},g,{role:"none",class:[g.class,`${a}-image`,(this.previewDisabled||this.showError)&&`${a}-image--preview-disabled`]}),this.groupId?E:Q(pa,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:a,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>E}),!d&&T)}});const xp="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",Sp="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",Ap=ft({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup(e){return()=>ye("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[ye("img",{class:"favoritIcon",src:e.isFavorite?Sp:xp},null)])}}),Cp="_book_1fdnj_1",Tp="_back_1fdnj_7",Mp="_bookHide_1fdnj_12",Ep="_wrap_1fdnj_52",Op="_item_1fdnj_56",Pp="_des_1fdnj_67",kp="_icon_1fdnj_71",Bt={book:Cp,back:Tp,bookHide:Mp,wrap:Ep,item:Op,des:Pp,icon:kp},Rp=""+new URL("icon_play-8079d539.svg",import.meta.url).href,_p=ft({name:"the-book",props:{bookData:{type:Object,default:()=>({})},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:i}){uo();const a=br({show:!1,width:0,height:0,transform:"",list:[]}),f=async()=>{console.log("初始化完成")};let d=null,g=null;const A=()=>{d=window.$("#flipbook");const F=document.body.clientHeight*.8;a.height=F,a.width=F*(210/297)*2,d.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:a.width,height:a.height,gradients:!0})},T=()=>{const F=document.querySelector(".bookWrap");if(F){const G=F.getBoundingClientRect(),Y=e.rect.width/(G.width/2),fe=e.rect.height/G.height,z=(G.width/2*(Y-1)/2+e.rect.x-G.x-G.width/4)/Y,D=(G.height*(fe-1)/2+e.rect.y-G.y)/fe,N=`scale3d(${Y}, ${fe}, 1) translate(${z}px, ${D}px)`;F.style.transform=a.transform=N,F.style.transition="transform 0s",wr(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{F.style.transition="transform 1s",F.style.transform="",a.show=!0,g=setTimeout(()=>{d.turn("page",2)},500)})})})}},C=()=>{clearTimeout(g);const F=document.querySelector(".bookWrap");d.turn("page",1),F&&(F.style.transform=a.transform),i("close"),setTimeout(()=>{F.style.transition="",F.style.transform="",a.show=!1,a.list=[]},1e3)};Ft(async()=>{await f()});const E=()=>{var fe;if(!((fe=e.bookData)!=null&&fe.lessonList))return;const F=Math.floor((document.body.clientHeight*.8-40)/50);console.log("🚀 ~ step:",F);const G=[];let Y=[];for(let z=0;z<e.bookData.lessonList.length;z++){const D=e.bookData.lessonList[z];Y.length<F?Y.push({name:D.name}):Y=[{name:D.name}];for(let N=0;N<D.knowledgeList.length;N++)Y.length<F?Y.push(D.knowledgeList[N]):(G.push(Y),Y=[D.knowledgeList[N]])}Y.length&&G.push(Y),a.list=G};Zt(()=>e.show,()=>{e.show&&(E(),wr(()=>{A(),requestAnimationFrame(()=>{T()})}))});const R=F=>{if(!F.containMaterial){rs("暂无资源");return}if(F.id){const G=ss.stringify({id:F.id,name:F.name}),Y=location.origin+location.pathname+"#/courseware-play?"+G;console.log("🚀 ~ url:",Y),co({api:"openWebView",content:{url:Y,orientation:0,isHideTitle:!1}})}};return()=>ye("div",{class:[Bt.book,a.show?"":Bt.bookHide]},[ye("div",{class:Bt.back,onClick:C},[ye("img",{src:Co},null)]),ye("div",{class:"bookWrap",style:{width:a.width+"px"}},[!!a.list.length&&ye("div",{id:"flipbook",class:[a.show&&"animated"]},[ye("div",{class:"page"},[ye("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),a.list.map(F=>ye("div",{class:"page"},[ye("div",{class:"gradient"},null),ye("div",{class:Bt.wrap},[F.map(G=>ye("div",{class:[Bt.item,G.id&&Bt.des],onTouchstart:Y=>{Y.stopPropagation()},onClick:Y=>{Y.stopPropagation(),R(G)}},[ye("div",{class:Bt.name},[G.name]),G.id?ye("img",{class:Bt.icon,src:Rp},null):null]))])])),ye("div",{class:"page"},[ye("div",{class:"gradient"},null)])])])])}});/*! 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(!or[t]){var r=U.body,o=n("<"+t+">").appendTo(r),u=o.css("display");o.remove(),(u==="none"||u==="")&&(At||(At=U.createElement("iframe"),At.frameBorder=At.width=At.height=0),r.appendChild(At),(!rn||!At.createElement)&&(rn=(At.contentWindow||At.contentDocument).document,rn.write((U.compatMode==="CSS1Compat"?"<!doctype html>":"")+"<html><body>"),rn.close()),o=rn.createElement(t),rn.body.appendChild(o),u=n.css(o,"display"),r.removeChild(At)),or[t]=u}return or[t]}function d(t,r){var o={};return n.each(si.concat.apply([],si.slice(0,r)),function(){o[this]=t}),o}function g(){En=i}function A(){return setTimeout(g,0),En=n.now()}function T(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function C(){try{return new e.XMLHttpRequest}catch(t){}}function E(t,r){t.dataFilter&&(r=t.dataFilter(r,t.dataType));var o=t.dataTypes,u={},c,h,v=o.length,m,S=o[0],P,M,O,B,j;for(c=1;c<v;c++){if(c===1)for(h in t.converters)typeof h=="string"&&(u[h.toLowerCase()]=t.converters[h]);if(P=S,S=o[c],S==="*")S=P;else if(P!=="*"&&P!==S){if(M=P+" "+S,O=u[M]||u["* "+S],!O){j=i;for(B in u)if(m=B.split(" "),(m[0]===P||m[0]==="*")&&(j=u[m[1]+" "+S],j)){B=u[B],B===!0?O=j:j===!0&&(O=B);break}}!O&&!j&&n.error("No conversion from "+M.replace(" "," to ")),O!==!0&&(r=O?O(r):j(B(r)))}}return r}function R(t,r,o){var u=t.contents,c=t.dataTypes,h=t.responseFields,v,m,S,P;for(m in h)m in o&&(r[h[m]]=o[m]);for(;c[0]==="*";)c.shift(),v===i&&(v=t.mimeType||r.getResponseHeader("content-type"));if(v){for(m in u)if(u[m]&&u[m].test(v)){c.unshift(m);break}}if(c[0]in o)S=c[0];else{for(m in o){if(!c[0]||t.converters[m+" "+c[0]]){S=m;break}P||(P=m)}S=S||P}if(S)return S!==c[0]&&c.unshift(S),o[S]}function F(t,r,o,u){if(n.isArray(r))n.each(r,function(h,v){o||Ca.test(t)?u(t,v):F(t+"["+(typeof v=="object"||n.isArray(v)?h:"")+"]",v,o,u)});else if(!o&&r!=null&&typeof r=="object")for(var c in r)F(t+"["+c+"]",r[c],o,u);else u(t,r)}function G(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],m=0,S=v?v.length:0,P=t===rr,M;m<S&&(P||!M);m++)M=v[m](r,o,u),typeof M=="string"&&(!P||h[M]?M=i:(r.dataTypes.unshift(M),M=Y(t,r,o,u,M,h)));return(P||!M)&&!h["*"]&&(M=Y(t,r,o,u,"*",h)),M}function fe(t){return function(r,o){if(typeof r!="string"&&(o=r,r="*"),n.isFunction(o))for(var u=r.toLowerCase().split(ni),c=0,h=u.length,v,m,S;c<h;c++)v=u[c],S=/^\+/.test(v),S&&(v=v.substr(1)||"*"),m=t[v]=t[v]||[],m[S?"unshift":"push"](o)}}function z(t,r,o){var u=r==="width"?t.offsetWidth:t.offsetHeight,c=r==="width"?xa:Sa;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=tn(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 D(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 N(t){var r=(t.nodeName||"").toLowerCase();r==="input"?q(t):r!=="script"&&typeof t.getElementsByTagName<"u"&&n.grep(t.getElementsByTagName("input"),q)}function q(t){(t.type==="checkbox"||t.type==="radio")&&(t.defaultChecked=t.checked)}function se(t){return typeof t.getElementsByTagName<"u"?t.getElementsByTagName("*"):typeof t.querySelectorAll<"u"?t.querySelectorAll("*"):[]}function Ae(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 J(t,r){if(r.nodeType===1&&n.hasData(t)){var o,u,c,h=n._data(t),v=n._data(r,h),m=h.events;if(m){delete v.handle,v.events={};for(o in m)for(u=0,c=m[o].length;u<c;u++)n.event.add(r,o+(m[o][u].namespace?".":"")+m[o][u].namespace,m[o][u],m[o][u].data)}v.data&&(v.data=n.extend({},v.data))}}function me(t,r){return n.nodeName(t,"table")?t.getElementsByTagName("tbody")[0]||t.appendChild(t.ownerDocument.createElement("tbody")):t}function ue(t){var r=mt.split(" "),o=t.createDocumentFragment();if(o.createElement)for(;r.length;)o.createElement(r.pop());return o}function he(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(Mt.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 xe(t){return!t||!t.parentNode||t.parentNode.nodeType===11}function we(){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 Ce(t){for(var r in t)if(!(r==="data"&&n.isEmptyObject(t[r]))&&r!=="toJSON")return!1;return!0}function ce(t,r,o){if(o===i&&t.nodeType===1){var u="data-"+r.replace(re,"-$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):L.test(o)?n.parseJSON(o):o}catch(c){}n.data(t,r,o)}else o=i}return o}function ke(t){var r=y[t]={},o,u;for(t=t.split(/\s+/),o=0,u=t.length;o<u;o++)r[t[o]]=!0;return r}var U=e.document,s=e.navigator,l=e.location,n=function(){function t(){if(!r.isReady){try{U.documentElement.doScroll("left")}catch(w){setTimeout(t,1);return}r.ready()}}var r=function(w,$){return new r.fn.init(w,$,c)},o=e.jQuery,u=e.$,c,h=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,v=/\S/,m=/^\s+/,S=/\s+$/,P=/\d/,M=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,O=/^[\],:{}\s]*$/,B=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,j=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Z=/(?:^|:|,)(?:\s*\[)+/g,ve=/(webkit)[ \/]([\w.]+)/,Me=/(opera)(?:.*version)?[ \/]([\w.]+)/,Se=/(msie) ([\w.]+)/,rt=/(mozilla)(?:.*? rv:([\w.]+))?/,it=/-([a-z]|[0-9])/ig,be=/^-ms-/,p=function(w,$){return($+"").toUpperCase()},x=s.userAgent,k,_,I,W=Object.prototype.toString,X=Object.prototype.hasOwnProperty,ie=Array.prototype.push,te=Array.prototype.slice,le=String.prototype.trim,ct=Array.prototype.indexOf,et={};return r.fn=r.prototype={constructor:r,init:function(w,$,ne){var H,Oe,Le,je;if(!w)return this;if(w.nodeType)return this.context=this[0]=w,this.length=1,this;if(w==="body"&&!$&&U.body)return this.context=U,this[0]=U.body,this.selector=w,this.length=1,this;if(typeof w=="string"){if(w.charAt(0)!=="<"||w.charAt(w.length-1)!==">"||w.length<3?H=h.exec(w):H=[null,w,null],H&&(H[1]||!$)){if(H[1])return $=$ instanceof r?$[0]:$,je=$?$.ownerDocument||$:U,Le=M.exec(w),Le?r.isPlainObject($)?(w=[U.createElement(Le[1])],r.fn.attr.call(w,$,!0)):w=[je.createElement(Le[1])]:(Le=r.buildFragment([H[1]],[je]),w=(Le.cacheable?r.clone(Le.fragment):Le.fragment).childNodes),r.merge(this,w);if(Oe=U.getElementById(H[2]),Oe&&Oe.parentNode){if(Oe.id!==H[2])return ne.find(w);this.length=1,this[0]=Oe}return this.context=U,this.selector=w,this}return!$||$.jquery?($||ne).find(w):this.constructor($).find(w)}return r.isFunction(w)?ne.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 te.call(this,0)},get:function(w){return w==null?this.toArray():w<0?this[this.length+w]:this[w]},pushStack:function(w,$,ne){var H=this.constructor();return r.isArray(w)?ie.apply(H,w):r.merge(H,w),H.prevObject=this,H.context=this.context,$==="find"?H.selector=this.selector+(this.selector?" ":"")+ne:$&&(H.selector=this.selector+"."+$+"("+ne+")"),H},each:function(w,$){return r.each(this,w,$)},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(te.apply(this,arguments),"slice",te.call(arguments).join(","))},map:function(w){return this.pushStack(r.map(this,function($,ne){return w.call($,ne,$)}))},end:function(){return this.prevObject||this.constructor(null)},push:ie,sort:[].sort,splice:[].splice},r.fn.init.prototype=r.fn,r.extend=r.fn.extend=function(){var w,$,ne,H,Oe,Le,je=arguments[0]||{},dt=1,bt=arguments.length,ar=!1;for(typeof je=="boolean"&&(ar=je,je=arguments[1]||{},dt=2),typeof je!="object"&&!r.isFunction(je)&&(je={}),bt===dt&&(je=this,--dt);dt<bt;dt++)if((w=arguments[dt])!=null)for($ in w)ne=je[$],H=w[$],je!==H&&(ar&&H&&(r.isPlainObject(H)||(Oe=r.isArray(H)))?(Oe?(Oe=!1,Le=ne&&r.isArray(ne)?ne:[]):Le=ne&&r.isPlainObject(ne)?ne:{},je[$]=r.extend(ar,Le,H)):H!==i&&(je[$]=H));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(!U.body)return setTimeout(r.ready,1);if(r.isReady=!0,w!==!0&&--r.readyWait>0)return;_.fireWith(U,[r]),r.fn.trigger&&r(U).trigger("ready").unbind("ready")}},bindReady:function(){if(!_){if(_=r.Callbacks("once memory"),U.readyState==="complete")return setTimeout(r.ready,1);if(U.addEventListener)U.addEventListener("DOMContentLoaded",I,!1),e.addEventListener("load",r.ready,!1);else if(U.attachEvent){U.attachEvent("onreadystatechange",I),e.attachEvent("onload",r.ready);var w=!1;try{w=e.frameElement==null}catch($){}U.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&&P.test(w)&&!isNaN(w)},type:function(w){return w==null?String(w):et[W.call(w)]||"object"},isPlainObject:function(w){if(!w||r.type(w)!=="object"||w.nodeType||r.isWindow(w))return!1;try{if(w.constructor&&!X.call(w,"constructor")&&!X.call(w.constructor.prototype,"isPrototypeOf"))return!1}catch(ne){return!1}var $;for($ in w);return $===i||X.call(w,$)},isEmptyObject:function(w){for(var $ 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(B,"@").replace(j,"]").replace(Z,"")))return new Function("return "+w)();r.error("Invalid JSON: "+w)},parseXML:function(w){var $,ne;try{e.DOMParser?(ne=new DOMParser,$=ne.parseFromString(w,"text/xml")):($=new ActiveXObject("Microsoft.XMLDOM"),$.async="false",$.loadXML(w))}catch(H){$=i}return(!$||!$.documentElement||$.getElementsByTagName("parsererror").length)&&r.error("Invalid XML: "+w),$},noop:function(){},globalEval:function(w){w&&v.test(w)&&(e.execScript||function($){e.eval.call(e,$)})(w)},camelCase:function(w){return w.replace(be,"ms-").replace(it,p)},nodeName:function(w,$){return w.nodeName&&w.nodeName.toUpperCase()===$.toUpperCase()},each:function(w,$,ne){var H,Oe=0,Le=w.length,je=Le===i||r.isFunction(w);if(ne)if(je){for(H in w)if($.apply(w[H],ne)===!1)break}else for(;Oe<Le&&$.apply(w[Oe++],ne)!==!1;);else if(je){for(H in w)if($.call(w[H],H,w[H])===!1)break}else for(;Oe<Le&&$.call(w[Oe],Oe,w[Oe++])!==!1;);return w},trim:le?function(w){return w==null?"":le.call(w)}:function(w){return w==null?"":(w+"").replace(m,"").replace(S,"")},makeArray:function(w,$){var ne=$||[];if(w!=null){var H=r.type(w);w.length==null||H==="string"||H==="function"||H==="regexp"||r.isWindow(w)?ie.call(ne,w):r.merge(ne,w)}return ne},inArray:function(w,$,ne){var H;if($){if(ct)return ct.call($,w,ne);for(H=$.length,ne=ne?ne<0?Math.max(0,H+ne):ne:0;ne<H;ne++)if(ne in $&&$[ne]===w)return ne}return-1},merge:function(w,$){var ne=w.length,H=0;if(typeof $.length=="number")for(var Oe=$.length;H<Oe;H++)w[ne++]=$[H];else for(;$[H]!==i;)w[ne++]=$[H++];return w.length=ne,w},grep:function(w,$,ne){var H=[],Oe;ne=!!ne;for(var Le=0,je=w.length;Le<je;Le++)Oe=!!$(w[Le],Le),ne!==Oe&&H.push(w[Le]);return H},map:function(w,$,ne){var H,Oe,Le=[],je=0,dt=w.length,bt=w instanceof r||dt!==i&&typeof dt=="number"&&(dt>0&&w[0]&&w[dt-1]||dt===0||r.isArray(w));if(bt)for(;je<dt;je++)H=$(w[je],je,ne),H!=null&&(Le[Le.length]=H);else for(Oe in w)H=$(w[Oe],Oe,ne),H!=null&&(Le[Le.length]=H);return Le.concat.apply([],Le)},guid:1,proxy:function(w,$){if(typeof $=="string"){var ne=w[$];$=w,w=ne}if(!r.isFunction(w))return i;var H=te.call(arguments,2),Oe=function(){return w.apply($,H.concat(te.call(arguments)))};return Oe.guid=w.guid=w.guid||Oe.guid||r.guid++,Oe},access:function(w,$,ne,H,Oe,Le){var je=w.length;if(typeof $=="object"){for(var dt in $)r.access(w,dt,$[dt],H,Oe,ne);return w}if(ne!==i){H=!Le&&H&&r.isFunction(ne);for(var bt=0;bt<je;bt++)Oe(w[bt],$,H?ne.call(w[bt],bt,Oe(w[bt],$)):ne,Le);return w}return je?Oe(w[0],$):i},now:function(){return new Date().getTime()},uaMatch:function(w){w=w.toLowerCase();var $=ve.exec(w)||Me.exec(w)||Se.exec(w)||w.indexOf("compatible")<0&&rt.exec(w)||[];return{browser:$[1]||"",version:$[2]||"0"}},sub:function(){function w(ne,H){return new w.fn.init(ne,H)}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(ne,H){return H&&H instanceof r&&!(H instanceof w)&&(H=w(H)),r.fn.init.call(this,ne,H,$)},w.fn.init.prototype=w.fn;var $=w(U);return w},browser:{}}),r.each("Boolean Number String Function Array Date RegExp Object".split(" "),function(w,$){et["[object "+$+"]"]=$.toLowerCase()}),k=r.uaMatch(x),k.browser&&(r.browser[k.browser]=!0,r.browser.version=k.version),r.browser.webkit&&(r.browser.safari=!0),v.test(" ")&&(m=/^[\s\xA0]+/,S=/[\s\xA0]+$/),c=r(U),U.addEventListener?I=function(){U.removeEventListener("DOMContentLoaded",I,!1),r.ready()}:U.attachEvent&&(I=function(){U.readyState==="complete"&&(U.detachEvent("onreadystatechange",I),r.ready())}),typeof define=="function"&&define.amd&&define.amd.jQuery&&define("jquery",[],function(){return r}),r}(),y={};n.Callbacks=function(t){t=t?y[t]||ke(t):{};var r=[],o=[],u,c,h,v,m,S=function(O){var B,j,Z,ve;for(B=0,j=O.length;B<j;B++)Z=O[B],ve=n.type(Z),ve==="array"?S(Z):ve==="function"&&(!t.unique||!M.has(Z))&&r.push(Z)},P=function(O,B){for(B=B||[],u=!t.memory||[O,B],c=!0,m=h||0,h=0,v=r.length;r&&m<v;m++)if(r[m].apply(O,B)===!1&&t.stopOnFalse){u=!0;break}c=!1,r&&(t.once?u===!0?M.disable():r=[]:o&&o.length&&(u=o.shift(),M.fireWith(u[0],u[1])))},M={add:function(){if(r){var O=r.length;S(arguments),c?v=r.length:u&&u!==!0&&(h=O,P(u[0],u[1]))}return this},remove:function(){if(r)for(var O=arguments,B=0,j=O.length;B<j;B++)for(var Z=0;Z<r.length&&!(O[B]===r[Z]&&(c&&Z<=v&&(v--,Z<=m&&m--),r.splice(Z--,1),t.unique));Z++);return this},has:function(O){if(r){for(var B=0,j=r.length;B<j;B++)if(O===r[B])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)&&M.disable(),this},locked:function(){return!o},fireWith:function(O,B){return o&&(c?t.once||o.push([O,B]):(!t.once||!u)&&P(O,B)),this},fire:function(){return M.fireWith(this,arguments),this},fired:function(){return!!u}};return M};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(P,M,O){return m.done(P).fail(M).progress(O),this},always:function(){return m.done.apply(m,arguments).fail.apply(m,arguments)},pipe:function(P,M,O){return n.Deferred(function(B){n.each({done:[P,"resolve"],fail:[M,"reject"],progress:[O,"notify"]},function(j,Z){var ve=Z[0],Me=Z[1],Se;n.isFunction(ve)?m[j](function(){Se=ve.apply(this,arguments),Se&&n.isFunction(Se.promise)?Se.promise().then(B.resolve,B.reject,B.notify):B[Me+"With"](this===m?B:this,[Se])}):m[j](B[Me])})}).promise()},promise:function(P){if(P==null)P=v;else for(var M in v)P[M]=v[M];return P}},m=v.promise({}),S;for(S in h)m[S]=h[S].fire,m[S+"With"]=h[S].fireWith;return m.done(function(){c="resolved"},o.disable,u.lock).fail(function(){c="rejected"},r.disable,u.lock),t&&t.call(m,m),m},when:function(t){function r(M){return function(O){v[M]=arguments.length>1?b.call(arguments,0):O,S.notifyWith(P,v)}}function o(M){return function(O){u[M]=arguments.length>1?b.call(arguments,0):O,--m||S.resolveWith(S,u)}}var u=b.call(arguments,0),c=0,h=u.length,v=Array(h),m=h,S=h<=1&&t&&n.isFunction(t.promise)?t:n.Deferred(),P=S.promise();if(h>1){for(;c<h;c++)u[c]&&u[c].promise&&n.isFunction(u[c].promise)?u[c].promise().then(o(c),S.reject,r(c)):--m;m||S.resolveWith(S,u)}else S!==t&&S.resolveWith(S,h?[t]:[]);return P}}),n.support=function(){var t=U.createElement("div"),r=U.documentElement,o,u,c,h,v,m,S,P,M,O,B,j,Z,ve,Me,Se;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=U.createElement("select"),h=c.appendChild(U.createElement("option")),v=t.getElementsByTagName("input")[0],S={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:!!U.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},v.checked=!0,S.noCloneChecked=v.cloneNode(!0).checked,c.disabled=!0,S.optDisabled=!h.disabled;try{delete t.test}catch(rt){S.deleteExpando=!1}!t.addEventListener&&t.attachEvent&&t.fireEvent&&(t.attachEvent("onclick",function(){S.noCloneEvent=!1}),t.cloneNode(!0).fireEvent("onclick")),v=U.createElement("input"),v.value="t",v.setAttribute("type","radio"),S.radioValue=v.value==="t",v.setAttribute("checked","checked"),t.appendChild(v),P=U.createDocumentFragment(),P.appendChild(t.lastChild),S.checkClone=P.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",M=U.getElementsByTagName("body")[0],B=U.createElement(M?"div":"body"),j={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},M&&n.extend(j,{position:"absolute",left:"-999px",top:"-999px"});for(Me in j)B.style[Me]=j[Me];if(B.appendChild(t),O=M||r,O.insertBefore(B,O.firstChild),S.appendChecked=v.checked,S.boxModel=t.offsetWidth===2,"zoom"in t.style&&(t.style.display="inline",t.style.zoom=1,S.inlineBlockNeedsLayout=t.offsetWidth===2,t.style.display="",t.innerHTML="<div style='width:4px;'></div>",S.shrinkWrapBlocks=t.offsetWidth!==2),t.innerHTML="<table><tr><td style='padding:0;border:0;display:none'></td><td>t</td></tr></table>",Z=t.getElementsByTagName("td"),Se=Z[0].offsetHeight===0,Z[0].style.display="",Z[1].style.display="none",S.reliableHiddenOffsets=Se&&Z[0].offsetHeight===0,t.innerHTML="",U.defaultView&&U.defaultView.getComputedStyle&&(m=U.createElement("div"),m.style.width="0",m.style.marginRight="0",t.appendChild(m),S.reliableMarginRight=(parseInt((U.defaultView.getComputedStyle(m,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(Me in{submit:1,change:1,focusin:1})ve="on"+Me,Se=ve in t,Se||(t.setAttribute(ve,"return;"),Se=typeof t[ve]=="function"),S[Me+"Bubbles"]=Se;return n(function(){var rt,it,be,p,x,k=1,_="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",I="visibility:hidden;border:0;",W="style='"+_+"border:5px solid #000;padding:0;'",X="<div "+W+"><div></div></div><table "+W+" cellpadding='0' cellspacing='0'><tr><td></td></tr></table>";M=U.getElementsByTagName("body")[0],!M||(rt=U.createElement("div"),rt.style.cssText=I+"width:0;height:0;position:static;top:0;margin-top:"+k+"px",M.insertBefore(rt,M.firstChild),B=U.createElement("div"),B.style.cssText=_+I,B.innerHTML=X,rt.appendChild(B),it=B.firstChild,be=it.firstChild,p=it.nextSibling.firstChild.firstChild,x={doesNotAddBorder:be.offsetTop!==5,doesAddBorderForTableAndCells:p.offsetTop===5},be.style.position="fixed",be.style.top="20px",x.fixedPosition=be.offsetTop===20||be.offsetTop===15,be.style.position=be.style.top="",it.style.overflow="hidden",it.style.position="relative",x.subtractsBorderForOverflowNotVisible=be.offsetTop===-5,x.doesNotIncludeMarginInBodyOffset=M.offsetTop!==k,M.removeChild(rt),B=rt=null,n.extend(S,x))}),B.innerHTML="",O.removeChild(B),B=P=c=h=M=m=t=v=null,S}(),n.boxModel=n.support.boxModel;var L=/^(?:\{.*\}|\[.*\])$/,re=/([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&&!Ce(t)},data:function(t,r,o,u){if(n.acceptData(t)){var c,h,v;n.expando;var m=typeof r=="string",S=t.nodeType,P=S?n.cache:t,M=S?t[n.expando]:t[n.expando]&&n.expando,O=r==="events";return(!M||!P[M]||!O&&!u&&!P[M].data)&&m&&o===i?void 0:(M||(S?t[n.expando]=M=++n.uuid:M=n.expando),P[M]||(P[M]={},S||(P[M].toJSON=n.noop)),(typeof r=="object"||typeof r=="function")&&(u?P[M]=n.extend(P[M],r):P[M].data=n.extend(P[M].data,r)),c=h=P[M],u||(h.data||(h.data={}),h=h.data),o!==i&&(h[n.camelCase(r)]=o),O&&!h[r]?c.events:(m?(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,m=v?n.cache:t,S=v?t[n.expando]:n.expando;if(!m[S])return;if(r&&(u=o?m[S]:m[S].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?Ce:n.isEmptyObject)(u))return}if(!o&&(delete m[S].data,!Ce(m[S])))return;n.support.deleteExpando||!m.setInterval?delete m[S]:m[S]=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,m=u.length;v<m;v++)c=u[v].name,c.indexOf("data-")===0&&(c=n.camelCase(c.substring(5)),ce(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=ce(this[0],t,h)),h===i&&o[1]?this.data(o[0]):h):this.each(function(){var S=n(this),P=[o[0],r];S.triggerHandler("setData"+o[1]+"!",P),n.data(this,t,r),S.triggerHandler("changeData"+o[1]+"!",P)}))},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,m=t+"defer",S=t+"queue",P=t+"mark",M;h--;)(M=n.data(c[h],m,i,!0)||(n.data(c[h],S,i,!0)||n.data(c[h],P,i,!0))&&n.data(c[h],m,n.Callbacks("once memory"),!0))&&(v++,M.add(o));return o(),u.promise()}});var ee=/[\n\t\r]/g,de=/\s+/,Re=/\r/g,Ne=/^(?:button|input)$/i,ze=/^(?:button|input|object|select|textarea)$/i,at=/^a(?:rea)?$/i,tt=/^(?:autofocus|autoplay|async|checked|controls|defer|disabled|hidden|loop|multiple|open|readonly|required|scoped|selected)$/i,He=n.support.getSetAttribute,K,pe,oe;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,m;if(n.isFunction(t))return this.each(function(S){n(this).addClass(t.call(this,S,this.className))});if(t&&typeof t=="string"){for(r=t.split(de),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,m=r.length;v<m;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,m;if(n.isFunction(t))return this.each(function(S){n(this).removeClass(t.call(this,S,this.className))});if(t&&typeof t=="string"||t===i){for(r=(t||"").split(de),o=0,u=this.length;o<u;o++)if(c=this[o],c.nodeType===1&&c.className)if(t){for(h=(" "+c.className+" ").replace(ee," "),v=0,m=r.length;v<m;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),m=r,S=t.split(de);c=S[h++];)m=u?m:!v.hasClass(c),v[m?"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(ee," ").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),m;this.nodeType===1&&(u?m=t.call(this,h,v.val()):m=t,m==null?m="":typeof m=="number"?m+="":n.isArray(m)&&(m=n.map(m,function(S){return S==null?"":S+""})),r=n.valHooks[this.nodeName.toLowerCase()]||n.valHooks[this.type],(!r||!("set"in r)||r.set(this,m,"value")===i)&&(this.value=m))})):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=[],m=t.options,S=t.type==="select-one";if(h<0)return null;for(o=S?h:0,u=S?h+1:m.length;o<u;o++)if(c=m[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(),S)return r;v.push(r)}return S&&!v.length&&m.length?n(m[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,m=t.nodeType;return!t||m===3||m===8||m===2?i:u&&r in n.attrFn?n(t)[r](o):"getAttribute"in t?(v=m!==1||!n.isXMLDoc(t),v&&(r=r.toLowerCase(),h=n.attrHooks[r]||(tt.test(r)?pe:K)),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(de),h=u.length;v<h;v++)c=u[v].toLowerCase(),o=n.propFix[c]||c,n.attr(t,c,""),t.removeAttribute(He?c:o),tt.test(c)&&o in t&&(t[o]=!1)},attrHooks:{type:{set:function(t,r){if(Ne.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 K&&n.nodeName(t,"button")?K.get(t,r):r in t?t.value:null},set:function(t,r,o){if(K&&n.nodeName(t,"button"))return K.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):ze.test(t.nodeName)||at.test(t.nodeName)&&t.href?0:i}}}}),n.attrHooks.tabindex=n.propHooks.tabIndex,pe={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||(oe={name:!0,id:!0},K=n.valHooks.button={get:function(t,r){var o;return o=t.getAttributeNode(r),o&&(oe[r]?o.nodeValue!=="":o.specified)?o.nodeValue:i},set:function(t,r,o){var u=t.getAttributeNode(o);return u||(u=U.createAttribute(o),t.setAttributeNode(u)),u.nodeValue=r+""}},n.attrHooks.tabindex.set=K.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:K.get,set:function(t,r,o){r===""&&(r="false"),K.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,De=/^([^\.]*)?(?:\.(.+))?$/,Xe=/\bhover(\.\S+)?/,Ye=/^key/,nt=/^(?:mouse|contextmenu)|click/,Qe=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,Tt=function(t){var r=Qe.exec(t);return r&&(r[1]=(r[1]||"").toLowerCase(),r[3]=r[3]&&new RegExp("(?:^|\\s)"+r[3]+"(?:\\s|$)")),r},en=function(t,r){return(!r[1]||t.nodeName.toLowerCase()===r[1])&&(!r[2]||t.id===r[2])&&(!r[3]||r[3].test(t.className))},ht=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,m,S,P,M,O,B,j,Z,ve;if(!(t.nodeType===3||t.nodeType===8||!r||!o||!(h=n._data(t)))){for(o.handler&&(j=o,o=j.handler),o.guid||(o.guid=n.guid++),m=h.events,m||(h.events=m={}),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=ht(r).split(" "),S=0;S<r.length;S++)P=De.exec(r[S])||[],M=P[1],O=(P[2]||"").split(".").sort(),ve=n.event.special[M]||{},M=(c?ve.delegateType:ve.bindType)||M,ve=n.event.special[M]||{},B=n.extend({type:M,origType:P[1],data:u,handler:o,guid:o.guid,selector:c,namespace:O.join(".")},j),c&&(B.quick=Tt(c),!B.quick&&n.expr.match.POS.test(c)&&(B.isPositional=!0)),Z=m[M],Z||(Z=m[M]=[],Z.delegateCount=0,(!ve.setup||ve.setup.call(t,u,O,v)===!1)&&(t.addEventListener?t.addEventListener(M,v,!1):t.attachEvent&&t.attachEvent("on"+M,v))),ve.add&&(ve.add.call(t,B),B.handler.guid||(B.handler.guid=o.guid)),c?Z.splice(Z.delegateCount++,0,B):Z.push(B),n.event.global[M]=!0;t=null}},global:{},remove:function(t,r,o,u){var c=n.hasData(t)&&n._data(t),h,v,m,S,P,M,O,B,j,Z,ve;if(c&&(O=c.events)){for(r=ht(r||"").split(" "),h=0;h<r.length;h++){if(v=De.exec(r[h])||[],m=v[1],S=v[2],!m){S=S?"."+S:"";for(M in O)n.event.remove(t,M+S,o,u);return}if(B=n.event.special[m]||{},m=(u?B.delegateType:B.bindType)||m,Z=O[m]||[],P=Z.length,S=S?new RegExp("(^|\\.)"+S.split(".").sort().join("\\.(?:.*\\.)?")+"(\\.|$)"):null,o||S||u||B.remove)for(M=0;M<Z.length;M++)ve=Z[M],(!o||o.guid===ve.guid)&&(!S||S.test(ve.namespace))&&(!u||u===ve.selector||u==="**"&&ve.selector)&&(Z.splice(M--,1),ve.selector&&Z.delegateCount--,B.remove&&B.remove.call(t,ve));else Z.length=0;Z.length===0&&P!==Z.length&&((!B.teardown||B.teardown.call(t,S)===!1)&&n.removeEvent(t,m,c.handle),delete O[m])}n.isEmptyObject(O)&&(j=c.handle,j&&(j.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,m,S,P,M,O,B,j,Z,ve;if(c.indexOf("!")>=0&&(c=c.slice(0,-1),m=!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=m,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(S in v)v[S].events&&v[S].events[c]&&n.event.trigger(t,r,v[S].handle.elem,!0);return}if(t.result=i,t.target||(t.target=o),r=r!=null?n.makeArray(r):[],r.unshift(t),B=n.event.special[c]||{},B.trigger&&B.trigger.apply(o,r)===!1)return;if(Z=[[o,B.bindType||c]],!u&&!B.noBubble&&!n.isWindow(o)){for(ve=B.delegateType||c,M=null,P=o.parentNode;P;P=P.parentNode)Z.push([P,ve]),M=P;M&&M===o.ownerDocument&&Z.push([M.defaultView||M.parentWindow||e,ve])}for(S=0;S<Z.length&&(P=Z[S][0],t.type=Z[S][1],j=(n._data(P,"events")||{})[t.type]&&n._data(P,"handle"),j&&j.apply(P,r),j=O&&P[O],j&&n.acceptData(P)&&j.apply(P,r),!t.isPropagationStopped());S++);return t.type=c,t.isDefaultPrevented()||(!B._default||B._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)&&(M=o[O],M&&(o[O]=null),n.event.triggered=c,o[c](),n.event.triggered=i,M&&(o[O]=M)),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=[],m,S,P,M,O,B,j,Z,ve,Me;if(u[0]=t,t.delegateTarget=this,o&&!t.target.disabled&&(!t.button||t.type!=="click"))for(P=t.target;P!=this;P=P.parentNode||this){for(O={},j=[],m=0;m<o;m++)Z=r[m],ve=Z.selector,Me=O[ve],Z.isPositional?Me=(Me||(O[ve]=n(ve))).index(P)>=0:Me===i&&(Me=O[ve]=Z.quick?en(P,Z.quick):n(P).is(ve)),Me&&j.push(Z);j.length&&v.push({elem:P,matches:j})}for(r.length>o&&v.push({elem:this,matches:r.slice(o)}),m=0;m<v.length&&!t.isPropagationStopped();m++)for(B=v[m],t.currentTarget=B.elem,S=0;S<B.matches.length&&!t.isImmediatePropagationStopped();S++)Z=B.matches[S],(c||!t.namespace&&!Z.namespace||t.namespace_re&&t.namespace_re.test(Z.namespace))&&(t.data=Z.data,t.handleObj=Z,M=(h||Z.handler).apply(B.elem,u),M!==i&&(t.result=M,M===!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||U,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||U),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=U.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()?we: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=we;var t=this.originalEvent;!t||(t.preventDefault?t.preventDefault():t.returnValue=!1)},stopPropagation:function(){this.isPropagationStopped=we;var t=this.originalEvent;!t||(t.stopPropagation&&t.stopPropagation(),t.cancelBubble=!0)},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=we,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,m;return(!c||h.origType===o.type||c!==u&&!n.contains(u,c))&&(v=o.type,o.type=h.origType,m=h.handler.apply(this,arguments),o.type=v),m}}}),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&&U.addEventListener(t,u,!0)},teardown:function(){--o===0&&U.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(m){return n().off(m),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),nt.test(r)&&(n.event.fixHooks[r]=n.event.mouseHooks)}),function(){function t(p,x,k,_,I,W){for(var X=0,ie=_.length;X<ie;X++){var te=_[X];if(te){var le=!1;for(te=te[p];te;){if(te[u]===k){le=_[te.sizset];break}if(te.nodeType===1){if(W||(te[u]=k,te.sizset=X),typeof x!="string"){if(te===x){le=!0;break}}else if(O.filter(x,[te]).length>0){le=te;break}}te=te[p]}_[X]=le}}}function r(p,x,k,_,I,W){for(var X=0,ie=_.length;X<ie;X++){var te=_[X];if(te){var le=!1;for(te=te[p];te;){if(te[u]===k){le=_[te.sizset];break}if(te.nodeType===1&&!W&&(te[u]=k,te.sizset=X),te.nodeName.toLowerCase()===x){le=te;break}te=te[p]}_[X]=le}}}var o=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^\[\]]*\]|['"][^'"]*['"]|[^\[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,u="sizcache"+(Math.random()+"").replace(".",""),c=0,h=Object.prototype.toString,v=!1,m=!0,S=/\\/g,P=/\r\n/g,M=/\W/;[0,0].sort(function(){return m=!1,0});var O=function(p,x,k,_){k=k||[],x=x||U;var I=x;if(x.nodeType!==1&&x.nodeType!==9)return[];if(!p||typeof p!="string")return k;var W,X,ie,te,le,ct,et,w,$=!0,ne=O.isXML(x),H=[],Oe=p;do if(o.exec(""),W=o.exec(Oe),W&&(Oe=W[3],H.push(W[1]),W[2])){te=W[3];break}while(W);if(H.length>1&&Z.exec(p))if(H.length===2&&j.relative[H[0]])X=be(H[0]+H[1],x,_);else for(X=j.relative[H[0]]?[x]:O(H.shift(),x);H.length;)p=H.shift(),j.relative[p]&&(p+=H.shift()),X=be(p,X,_);else if(!_&&H.length>1&&x.nodeType===9&&!ne&&j.match.ID.test(H[0])&&!j.match.ID.test(H[H.length-1])&&(le=O.find(H.shift(),x,ne),x=le.expr?O.filter(le.expr,le.set)[0]:le.set[0]),x)for(le=_?{expr:H.pop(),set:Se(_)}:O.find(H.pop(),H.length===1&&(H[0]==="~"||H[0]==="+")&&x.parentNode?x.parentNode:x,ne),X=le.expr?O.filter(le.expr,le.set):le.set,H.length>0?ie=Se(X):$=!1;H.length;)ct=H.pop(),et=ct,j.relative[ct]?et=H.pop():ct="",et==null&&(et=x),j.relative[ct](ie,et,ne);else ie=H=[];if(ie||(ie=X),ie||O.error(ct||p),h.call(ie)==="[object Array]")if(!$)k.push.apply(k,ie);else if(x&&x.nodeType===1)for(w=0;ie[w]!=null;w++)ie[w]&&(ie[w]===!0||ie[w].nodeType===1&&O.contains(x,ie[w]))&&k.push(X[w]);else for(w=0;ie[w]!=null;w++)ie[w]&&ie[w].nodeType===1&&k.push(X[w]);else Se(ie,k);return te&&(O(te,I,k,_),O.uniqueSort(k)),k};O.uniqueSort=function(p){if(rt&&(v=m,p.sort(rt),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,k){var _,I,W,X,ie,te;if(!p)return[];for(I=0,W=j.order.length;I<W;I++)if(ie=j.order[I],(X=j.leftMatch[ie].exec(p))&&(te=X[1],X.splice(1,1),te.substr(te.length-1)!=="\\"&&(X[1]=(X[1]||"").replace(S,""),_=j.find[ie](X,x,k),_!=null))){p=p.replace(j.match[ie],"");break}return _||(_=typeof x.getElementsByTagName<"u"?x.getElementsByTagName("*"):[]),{set:_,expr:p}},O.filter=function(p,x,k,_){for(var I,W,X,ie,te,le,ct,et,w,$=p,ne=[],H=x,Oe=x&&x[0]&&O.isXML(x[0]);p&&x.length;){for(X in j.filter)if((I=j.leftMatch[X].exec(p))!=null&&I[2]){if(le=j.filter[X],ct=I[1],W=!1,I.splice(1,1),ct.substr(ct.length-1)==="\\")continue;if(H===ne&&(ne=[]),j.preFilter[X]){if(I=j.preFilter[X](I,H,k,ne,_,Oe),!I)W=ie=!0;else if(I===!0)continue}if(I)for(et=0;(te=H[et])!=null;et++)te&&(ie=le(te,I,et,H),w=_^ie,k&&ie!=null?w?W=!0:H[et]=!1:w&&(ne.push(te),W=!0));if(ie!==i){if(k||(H=ne),p=p.replace(j.match[X],""),!W)return[];break}}if(p===$)if(W==null)O.error(p);else break;$=p}return H},O.error=function(p){throw"Syntax error, unrecognized expression: "+p};var B=O.getText=function(p){var x,k,_=p.nodeType,I="";if(_){if(_===1){if(typeof p.textContent=="string")return p.textContent;if(typeof p.innerText=="string")return p.innerText.replace(P,"");for(p=p.firstChild;p;p=p.nextSibling)I+=B(p)}else if(_===3||_===4)return p.nodeValue}else for(x=0;k=p[x];x++)k.nodeType!==8&&(I+=B(k));return I},j=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 k=typeof x=="string",_=k&&!M.test(x),I=k&&!_;_&&(x=x.toLowerCase());for(var W=0,X=p.length,ie;W<X;W++)if(ie=p[W]){for(;(ie=ie.previousSibling)&&ie.nodeType!==1;);p[W]=I||ie&&ie.nodeName.toLowerCase()===x?ie||!1:ie===x}I&&O.filter(x,p,!0)},">":function(p,x){var k,_=typeof x=="string",I=0,W=p.length;if(_&&!M.test(x)){for(x=x.toLowerCase();I<W;I++)if(k=p[I],k){var X=k.parentNode;p[I]=X.nodeName.toLowerCase()===x?X:!1}}else{for(;I<W;I++)k=p[I],k&&(p[I]=_?k.parentNode:k.parentNode===x);_&&O.filter(x,p,!0)}},"":function(p,x,k){var _,I=c++,W=t;typeof x=="string"&&!M.test(x)&&(x=x.toLowerCase(),_=x,W=r),W("parentNode",x,I,p,_,k)},"~":function(p,x,k){var _,I=c++,W=t;typeof x=="string"&&!M.test(x)&&(x=x.toLowerCase(),_=x,W=r),W("previousSibling",x,I,p,_,k)}},find:{ID:function(p,x,k){if(typeof x.getElementById<"u"&&!k){var _=x.getElementById(p[1]);return _&&_.parentNode?[_]:[]}},NAME:function(p,x){if(typeof x.getElementsByName<"u"){for(var k=[],_=x.getElementsByName(p[1]),I=0,W=_.length;I<W;I++)_[I].getAttribute("name")===p[1]&&k.push(_[I]);return k.length===0?null:k}},TAG:function(p,x){if(typeof x.getElementsByTagName<"u")return x.getElementsByTagName(p[1])}},preFilter:{CLASS:function(p,x,k,_,I,W){if(p=" "+p[1].replace(S,"")+" ",W)return p;for(var X=0,ie;(ie=x[X])!=null;X++)ie&&(I^(ie.className&&(" "+ie.className+" ").replace(/[\t\n\r]/g," ").indexOf(p)>=0)?k||_.push(ie):k&&(x[X]=!1));return!1},ID:function(p){return p[1].replace(S,"")},TAG:function(p,x){return p[1].replace(S,"").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,k,_,I,W){var X=p[1]=p[1].replace(S,"");return!W&&j.attrMap[X]&&(p[1]=j.attrMap[X]),p[4]=(p[4]||p[5]||"").replace(S,""),p[2]==="~="&&(p[4]=" "+p[4]+" "),p},PSEUDO:function(p,x,k,_,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 W=O.filter(p[3],x,k,!0^I);return k||_.push.apply(_,W),!1}else if(j.match.POS.test(p[0])||j.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,k){return!!O(k[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){var x=p.getAttribute("type"),k=p.type;return p.nodeName.toLowerCase()==="input"&&k==="text"&&(x===k||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,k,_){return x===_.length-1},even:function(p,x){return x%2===0},odd:function(p,x){return x%2===1},lt:function(p,x,k){return x<k[3]-0},gt:function(p,x,k){return x>k[3]-0},nth:function(p,x,k){return k[3]-0===x},eq:function(p,x,k){return k[3]-0===x}},filter:{PSEUDO:function(p,x,k,_){var I=x[1],W=j.filters[I];if(W)return W(p,k,x,_);if(I==="contains")return(p.textContent||p.innerText||B([p])||"").indexOf(x[3])>=0;if(I==="not"){for(var X=x[3],ie=0,te=X.length;ie<te;ie++)if(X[ie]===p)return!1;return!0}O.error(I)},CHILD:function(p,x){var k,_,I,W,X,ie,te=x[1],le=p;switch(te){case"only":case"first":for(;le=le.previousSibling;)if(le.nodeType===1)return!1;if(te==="first")return!0;le=p;case"last":for(;le=le.nextSibling;)if(le.nodeType===1)return!1;return!0;case"nth":if(k=x[2],_=x[3],k===1&&_===0)return!0;if(I=x[0],W=p.parentNode,W&&(W[u]!==I||!p.nodeIndex)){for(X=0,le=W.firstChild;le;le=le.nextSibling)le.nodeType===1&&(le.nodeIndex=++X);W[u]=I}return ie=p.nodeIndex-_,k===0?ie===0:ie%k===0&&ie/k>=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 k=x[1],_=O.attr?O.attr(p,k):j.attrHandle[k]?j.attrHandle[k](p):p[k]!=null?p[k]:p.getAttribute(k),I=_+"",W=x[2],X=x[4];return _==null?W==="!=":!W&&O.attr?_!=null:W==="="?I===X:W==="*="?I.indexOf(X)>=0:W==="~="?(" "+I+" ").indexOf(X)>=0:X?W==="!="?I!==X:W==="^="?I.indexOf(X)===0:W==="$="?I.substr(I.length-X.length)===X:W==="|="?I===X||I.substr(0,X.length+1)===X+"-":!1:I&&_!==!1},POS:function(p,x,k,_){var I=x[2],W=j.setFilters[I];if(W)return W(p,k,x,_)}}},Z=j.match.POS,ve=function(p,x){return"\\"+(x-0+1)};for(var Me in j.match)j.match[Me]=new RegExp(j.match[Me].source+/(?![^\[]*\])(?![^\(]*\))/.source),j.leftMatch[Me]=new RegExp(/(^(?:.|\r|\n)*?)/.source+j.match[Me].source.replace(/\\(\d+)/g,ve));var Se=function(p,x){return p=Array.prototype.slice.call(p,0),x?(x.push.apply(x,p),x):p};try{Array.prototype.slice.call(U.documentElement.childNodes,0)[0].nodeType}catch(p){Se=function(x,k){var _=0,I=k||[];if(h.call(x)==="[object Array]")Array.prototype.push.apply(I,x);else if(typeof x.length=="number")for(var W=x.length;_<W;_++)I.push(x[_]);else for(;x[_];_++)I.push(x[_]);return I}}var rt,it;U.documentElement.compareDocumentPosition?rt=function(p,x){return p===x?(v=!0,0):!p.compareDocumentPosition||!x.compareDocumentPosition?p.compareDocumentPosition?-1:1:p.compareDocumentPosition(x)&4?-1:1}:(rt=function(p,x){if(p===x)return v=!0,0;if(p.sourceIndex&&x.sourceIndex)return p.sourceIndex-x.sourceIndex;var k,_,I=[],W=[],X=p.parentNode,ie=x.parentNode,te=X;if(X===ie)return it(p,x);if(!X)return-1;if(!ie)return 1;for(;te;)I.unshift(te),te=te.parentNode;for(te=ie;te;)W.unshift(te),te=te.parentNode;k=I.length,_=W.length;for(var le=0;le<k&&le<_;le++)if(I[le]!==W[le])return it(I[le],W[le]);return le===k?it(p,W[le],-1):it(I[le],x,1)},it=function(p,x,k){if(p===x)return k;for(var _=p.nextSibling;_;){if(_===x)return-1;_=_.nextSibling}return 1}),function(){var p=U.createElement("div"),x="script"+new Date().getTime(),k=U.documentElement;p.innerHTML="<a name='"+x+"'/>",k.insertBefore(p,k.firstChild),U.getElementById(x)&&(j.find.ID=function(_,I,W){if(typeof I.getElementById<"u"&&!W){var X=I.getElementById(_[1]);return X?X.id===_[1]||typeof X.getAttributeNode<"u"&&X.getAttributeNode("id").nodeValue===_[1]?[X]:i:[]}},j.filter.ID=function(_,I){var W=typeof _.getAttributeNode<"u"&&_.getAttributeNode("id");return _.nodeType===1&&W&&W.nodeValue===I}),k.removeChild(p),k=p=null}(),function(){var p=U.createElement("div");p.appendChild(U.createComment("")),p.getElementsByTagName("*").length>0&&(j.find.TAG=function(x,k){var _=k.getElementsByTagName(x[1]);if(x[1]==="*"){for(var I=[],W=0;_[W];W++)_[W].nodeType===1&&I.push(_[W]);_=I}return _}),p.innerHTML="<a href='#'></a>",p.firstChild&&typeof p.firstChild.getAttribute<"u"&&p.firstChild.getAttribute("href")!=="#"&&(j.attrHandle.href=function(x){return x.getAttribute("href",2)}),p=null}(),U.querySelectorAll&&function(){var p=O,x=U.createElement("div"),k="__sizzle__";if(x.innerHTML="<p class='TEST'></p>",!x.querySelectorAll||x.querySelectorAll(".TEST").length!==0){O=function(I,W,X,ie){if(W=W||U,!ie&&!O.isXML(W)){var te=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(I);if(te&&(W.nodeType===1||W.nodeType===9)){if(te[1])return Se(W.getElementsByTagName(I),X);if(te[2]&&j.find.CLASS&&W.getElementsByClassName)return Se(W.getElementsByClassName(te[2]),X)}if(W.nodeType===9){if(I==="body"&&W.body)return Se([W.body],X);if(te&&te[3]){var le=W.getElementById(te[3]);if(!le||!le.parentNode)return Se([],X);if(le.id===te[3])return Se([le],X)}try{return Se(W.querySelectorAll(I),X)}catch(H){}}else if(W.nodeType===1&&W.nodeName.toLowerCase()!=="object"){var ct=W,et=W.getAttribute("id"),w=et||k,$=W.parentNode,ne=/^\s*[+~]/.test(I);et?w=w.replace(/'/g,"\\$&"):W.setAttribute("id",w),ne&&$&&(W=W.parentNode);try{if(!ne||$)return Se(W.querySelectorAll("[id='"+w+"'] "+I),X)}catch(H){}finally{et||ct.removeAttribute("id")}}}return p(I,W,X,ie)};for(var _ in p)O[_]=p[_];x=null}}(),function(){var p=U.documentElement,x=p.matchesSelector||p.mozMatchesSelector||p.webkitMatchesSelector||p.msMatchesSelector;if(x){var k=!x.call(U.createElement("div"),"div"),_=!1;try{x.call(U.documentElement,"[test!='']:sizzle")}catch(I){_=!0}O.matchesSelector=function(I,W){if(W=W.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!O.isXML(I))try{if(_||!j.match.PSEUDO.test(W)&&!/!=/.test(W)){var X=x.call(I,W);if(X||!k||I.document&&I.document.nodeType!==11)return X}}catch(ie){}return O(W,null,null,[I]).length>0}}}(),function(){var p=U.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;j.order.splice(1,0,"CLASS"),j.find.CLASS=function(x,k,_){if(typeof k.getElementsByClassName<"u"&&!_)return k.getElementsByClassName(x[1])},p=null}}(),U.documentElement.contains?O.contains=function(p,x){return p!==x&&(p.contains?p.contains(x):!0)}:U.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 be=function(p,x,k){for(var _,I=[],W="",X=x.nodeType?[x]:x;_=j.match.PSEUDO.exec(p);)W+=_[0],p=p.replace(j.match.PSEUDO,"");p=j.relative[p]?p+"*":p;for(var ie=0,te=X.length;ie<te;ie++)O(p,X[ie],I,k);return O.filter(W,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 vt=/Until$/,Ge=/^(?:parents|prevUntil|prevAll)/,gn=/,/,Mt=/^.[^:#\[\.,]*$/,_t=Array.prototype.slice,wt=n.expr.match.POS,gt={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,m;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(m=0;m<h;m++)if(c[m]===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(he(this,t,!1),"not",t)},filter:function(t){return this.pushStack(he(this,t,!0),"filter",t)},is:function(t){return!!t&&(typeof t=="string"?wt.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 m=wt.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(m?m.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(xe(o[0])||xe(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=_t.call(arguments);return vt.test(t)||(u=o),u&&typeof u=="string"&&(c=n.filter(u,c)),c=this.length>1&&!gt[t]?n.unique(c):c,(this.length>1||gn.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 mt="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",Nt=/ jQuery\d+="(?:\d+|null)"/g,qe=/^\s+/,Ze=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,Ie=/<([\w:]+)/,V=/<tbody/i,ae=/<|&#?\w+;/,ge=/<(?:script|style)/i,_e=/<(?:script|object|embed|option|style)/i,We=new RegExp("<(?:"+mt.replace(" ","|")+")","i"),Ke=/checked\s*(?:[^=]|=\s*.checked.)/i,ut=/\/(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,"",""]},It=ue(U);$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||U).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(Nt,""):null;if(typeof t=="string"&&!ge.test(t)&&(n.support.leadingWhitespace||!qe.test(t))&&!$e[(Ie.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Ze,"<$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,m=t[0],S=[];if(!n.support.checkClone&&arguments.length===3&&typeof m=="string"&&Ke.test(m))return this.each(function(){n(this).domManip(t,r,o,!0)});if(n.isFunction(m))return this.each(function(B){var j=n(this);t[0]=m.call(this,B,r?j.html():i),j.domManip(t,r,o)});if(this[0]){if(v=m&&m.parentNode,n.support.parentNode&&v&&v.nodeType===11&&v.childNodes.length===this.length?u={fragment:v}:u=n.buildFragment(t,this,S),h=u.fragment,h.childNodes.length===1?c=h=h.firstChild:c=h.firstChild,c){r=r&&n.nodeName(c,"tr");for(var P=0,M=this.length,O=M-1;P<M;P++)o.call(r?me(this[P]):this[P],u.cacheable||M>1&&P<O?n.clone(h,!0,!0):h)}S.length&&n.each(S,D)}return this}}),n.buildFragment=function(t,r,o){var u,c,h,v,m=t[0];return r&&r[0]&&(v=r[0].ownerDocument||r[0]),v.createDocumentFragment||(v=U),t.length===1&&typeof m=="string"&&m.length<512&&v===U&&m.charAt(0)==="<"&&!_e.test(m)&&(n.support.checkClone||!Ke.test(m))&&!n.support.unknownElems&&We.test(m)&&(c=!0,h=n.fragments[m],h&&h!==1&&(u=h)),u||(u=v.createDocumentFragment(),n.clean(t,v,u,o)),c&&(n.fragments[m]=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,m=c.length;v<m;v++){var S=(v>0?this.clone(!0):this).get();n(c[v])[r](S),u=u.concat(S)}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(Ae(t,u),c=se(t),h=se(u),v=0;c[v];++v)h[v]&&Ae(c[v],h[v]);if(r&&(J(t,u),o))for(c=se(t),h=se(u),v=0;c[v];++v)J(c[v],h[v]);return c=h=null,u},clean:function(t,r,o,u){var c;r=r||U,typeof r.createElement>"u"&&(r=r.ownerDocument||r[0]&&r[0].ownerDocument||U);for(var h=[],v,m=0,S;(S=t[m])!=null;m++)if(typeof S=="number"&&(S+=""),!!S){if(typeof S=="string")if(!ae.test(S))S=r.createTextNode(S);else{S=S.replace(Ze,"<$1></$2>");var P=(Ie.exec(S)||["",""])[1].toLowerCase(),M=$e[P]||$e._default,O=M[0],B=r.createElement("div");for(r===U?It.appendChild(B):ue(r).appendChild(B),B.innerHTML=M[1]+S+M[2];O--;)B=B.lastChild;if(!n.support.tbody){var j=V.test(S),Z=P==="table"&&!j?B.firstChild&&B.firstChild.childNodes:M[1]==="<table>"&&!j?B.childNodes:[];for(v=Z.length-1;v>=0;--v)n.nodeName(Z[v],"tbody")&&!Z[v].childNodes.length&&Z[v].parentNode.removeChild(Z[v])}!n.support.leadingWhitespace&&qe.test(S)&&B.insertBefore(r.createTextNode(qe.exec(S)[0]),B.firstChild),S=B.childNodes}var ve;if(!n.support.appendChecked)if(S[0]&&typeof(ve=S.length)=="number")for(v=0;v<ve;v++)N(S[v]);else N(S);S.nodeType?h.push(S):h=n.merge(h,S)}if(o)for(c=function(Se){return!Se.type||ut.test(Se.type)},m=0;h[m];m++)if(u&&n.nodeName(h[m],"script")&&(!h[m].type||h[m].type.toLowerCase()==="text/javascript"))u.push(h[m].parentNode?h[m].parentNode.removeChild(h[m]):h[m]);else{if(h[m].nodeType===1){var Me=n.grep(h[m].getElementsByTagName("script"),c);h.splice.apply(h,[m+1,0].concat(Me))}o.appendChild(h[m])}return h},cleanData:function(t){for(var r,o,u=n.cache,c=n.event.special,h=n.support.deleteExpando,v=0,m;(m=t[v])!=null;v++)if(!(m.nodeName&&n.noData[m.nodeName.toLowerCase()])&&(o=m[n.expando],o)){if(r=u[o],r&&r.events){for(var S in r.events)c[S]?n.event.remove(m,S):n.removeEvent(m,S,r.handle);r.handle&&(r.handle.elem=null)}h?delete m[n.expando]:m.removeAttribute&&m.removeAttribute(n.expando),delete u[o]}}});var nr=/alpha\([^)]*\)/i,ga=/opacity=([^)]*)/,ma=/([A-Z]|^ms)/g,Zr=/^-?\d+(?:px)?$/i,ya=/^-?\d/,wa=/^([\-+])=([\-+.\de]+)/,ba={position:"absolute",visibility:"hidden",display:"block"},xa=["Left","Right"],Sa=["Top","Bottom"],tn,Jr,Qr;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=tn(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),m=t.style,S=n.cssHooks[v];if(r=n.cssProps[v]||v,o===i)return S&&"get"in S&&(c=S.get(t,!1,u))!==i?c:m[r];if(h=typeof o,h==="string"&&(c=wa.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"),!S||!("set"in S)||(o=S.set(t,o))!==i)try{m[r]=o}catch(P){}}},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(tn)return tn(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?z(o,r,c):(n.swap(o,ba,function(){h=z(o,r,c)}),h)},set:function(o,u){if(!Zr.test(u))return u;if(u=parseFloat(u),u>=0)return u+"px"}}}),n.support.opacity||(n.cssHooks.opacity={get:function(t,r){return ga.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(nr,""))===""&&(o.removeAttribute("filter"),u&&!u.filter))&&(o.filter=nr.test(h)?h.replace(nr,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=tn(t,"margin-right","marginRight"):o=t.style.marginRight}),o}})}),U.defaultView&&U.defaultView.getComputedStyle&&(Jr=function(t,r){var o,u,c;return r=r.replace(ma,"-$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}),U.documentElement.currentStyle&&(Qr=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),!Zr.test(h)&&ya.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}),tn=Jr||Qr,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 Aa=/%20/g,Ca=/\[\]$/,ei=/\r?\n/g,Ta=/#.*$/,Ma=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Ea=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Oa=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Pa=/^(?:GET|HEAD)$/,ka=/^\/\//,ti=/\?/,Ra=/<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi,_a=/^(?:select|textarea)/i,ni=/\s+/,Na=/([?&])_=[^&]*/,ri=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ii=n.fn.load,rr={},oi={},Wt,jt,ai=["*/"]+["*"];try{Wt=l.href}catch(t){Wt=U.createElement("a"),Wt.href="",Wt=Wt.href}jt=ri.exec(Wt.toLowerCase())||[],n.fn.extend({load:function(t,r,o){if(typeof t!="string"&&ii)return ii.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(m,S,P){P=m.responseText,m.isResolved()&&(m.done(function(M){P=M}),v.html(c?n("<div>").append(P.replace(Ra,"")).find(c):P)),o&&v.each(o,[P,S,m])}}),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||_a.test(this.nodeName)||Ea.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(ei,`\r
  238. `)}}):{name:r.name,value:o.replace(ei,`\r
  239. `)}}).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?G(t,n.ajaxSettings):(r=t,t=n.ajaxSettings),G(t,r),t},ajaxSettings:{url:Wt,isLocal:Oa.test(jt[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","*":ai},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:fe(rr),ajaxTransport:fe(oi),ajax:function(t,r){function o(k,_,I,W){if(Se!==2){Se=2,ve&&clearTimeout(ve),Z=i,B=W||"",be.readyState=k>0?4:0;var X,ie,te,le=_,ct=I?R(u,be,I):i,et,w;if(k>=200&&k<300||k===304)if(u.ifModified&&((et=be.getResponseHeader("Last-Modified"))&&(n.lastModified[P]=et),(w=be.getResponseHeader("Etag"))&&(n.etag[P]=w)),k===304)le="notmodified",X=!0;else try{ie=E(u,ct),le="success",X=!0}catch($){le="parsererror",te=$}else te=le,(!le||k)&&(le="error",k<0&&(k=0));be.status=k,be.statusText=""+(_||le),X?v.resolveWith(c,[ie,le,be]):v.rejectWith(c,[be,le,te]),be.statusCode(S),S=i,rt&&h.trigger("ajax"+(X?"Success":"Error"),[be,u,X?ie:te]),m.fireWith(c,[be,le]),rt&&(h.trigger("ajaxComplete",[be,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(),m=n.Callbacks("once memory"),S=u.statusCode||{},P,M={},O={},B,j,Z,ve,Me,Se=0,rt,it,be={readyState:0,setRequestHeader:function(k,_){if(!Se){var I=k.toLowerCase();k=O[I]=O[I]||k,M[k]=_}return this},getAllResponseHeaders:function(){return Se===2?B:null},getResponseHeader:function(k){var _;if(Se===2){if(!j)for(j={};_=Ma.exec(B);)j[_[1].toLowerCase()]=_[2];_=j[k.toLowerCase()]}return _===i?null:_},overrideMimeType:function(k){return Se||(u.mimeType=k),this},abort:function(k){return k=k||"abort",Z&&Z.abort(k),o(0,k),this}};if(v.promise(be),be.success=be.done,be.error=be.fail,be.complete=m.add,be.statusCode=function(k){if(k){var _;if(Se<2)for(_ in k)S[_]=[S[_],k[_]];else _=k[be.status],be.then(_,_)}return this},u.url=((t||u.url)+"").replace(Ta,"").replace(ka,jt[1]+"//"),u.dataTypes=n.trim(u.dataType||"*").toLowerCase().split(ni),u.crossDomain==null&&(Me=ri.exec(u.url.toLowerCase()),u.crossDomain=!(!Me||Me[1]==jt[1]&&Me[2]==jt[2]&&(Me[3]||(Me[1]==="http:"?80:443))==(jt[3]||(jt[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=n.param(u.data,u.traditional)),Y(rr,u,r,be),Se===2)return!1;if(rt=u.global,u.type=u.type.toUpperCase(),u.hasContent=!Pa.test(u.type),rt&&n.active++===0&&n.event.trigger("ajaxStart"),!u.hasContent&&(u.data&&(u.url+=(ti.test(u.url)?"&":"?")+u.data,delete u.data),P=u.url,u.cache===!1)){var p=n.now(),x=u.url.replace(Na,"$1_="+p);u.url=x+(x===u.url?(ti.test(u.url)?"&":"?")+"_="+p:"")}(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&be.setRequestHeader("Content-Type",u.contentType),u.ifModified&&(P=P||u.url,n.lastModified[P]&&be.setRequestHeader("If-Modified-Since",n.lastModified[P]),n.etag[P]&&be.setRequestHeader("If-None-Match",n.etag[P])),be.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+ai+"; q=0.01":""):u.accepts["*"]);for(it in u.headers)be.setRequestHeader(it,u.headers[it]);if(u.beforeSend&&(u.beforeSend.call(c,be,u)===!1||Se===2))return be.abort(),!1;for(it in{success:1,error:1,complete:1})be[it](u[it]);if(Z=Y(oi,u,r,be),!Z)o(-1,"No Transport");else{be.readyState=1,rt&&h.trigger("ajaxSend",[be,u]),u.async&&u.timeout>0&&(ve=setTimeout(function(){be.abort("timeout")},u.timeout));try{Se=1,Z.send(M,o)}catch(k){Se<2?o(-1,k):n.error(k)}}return be},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)F(c,t[c],r,u);return o.join("&").replace(Aa,"+")}}),n.extend({active:0,lastModified:{},etag:{}});var Da=n.now(),Tn=/(\=)\?(&|$)|\?\?/i;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return n.expando+"_"+Da++}}),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&&(Tn.test(t.url)||u&&Tn.test(t.data))){var c,h=t.jsonpCallback=n.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,v=e[h],m=t.url,S=t.data,P="$1"+h+"$2";return t.jsonp!==!1&&(m=m.replace(Tn,P),t.url===m&&(u&&(S=S.replace(Tn,P)),t.data===S&&(m+=(/\?/.test(m)?"&":"?")+t.jsonp+"="+h))),t.url=m,t.data=S,e[h]=function(M){c=[M]},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=U.head||U.getElementsByTagName("head")[0]||U.documentElement;return{send:function(u,c){r=U.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 ir=e.ActiveXObject?function(){for(var t in nn)nn[t](0,1)}:!1,La=0,nn;n.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&C()||T()}:C,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(m){}c.send(t.hasContent&&t.data||null),r=function(m,S){var P,M,O,B,j;try{if(r&&(S||c.readyState===4))if(r=i,h&&(c.onreadystatechange=n.noop,ir&&delete nn[h]),S)c.readyState!==4&&c.abort();else{P=c.status,O=c.getAllResponseHeaders(),B={},j=c.responseXML,j&&j.documentElement&&(B.xml=j),B.text=c.responseText;try{M=c.statusText}catch(Z){M=""}!P&&t.isLocal&&!t.crossDomain?P=B.text?200:404:P===1223&&(P=204)}}catch(Z){S||u(-1,Z)}B&&u(P,M,B,O)},!t.async||c.readyState===4?r():(h=++La,ir&&(nn||(nn={},n(e).unload(ir)),nn[h]=r),c.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var or={},At,rn,Ba=/^(?:toggle|show|hide)$/,Fa=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Mn,si=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],En;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),m=this.nodeType===1,S=m&&n(this).is(":hidden"),P,M,O,B,j,Z,ve,Me,Se;v.animatedProperties={};for(O in t){if(P=n.camelCase(O),O!==P&&(t[P]=t[O],delete t[O]),M=t[P],n.isArray(M)?(v.animatedProperties[P]=M[1],M=t[P]=M[0]):v.animatedProperties[P]=v.specialEasing&&v.specialEasing[P]||v.easing||"swing",M==="hide"&&S||M==="show"&&!S)return v.complete.call(this);m&&(P==="height"||P==="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)B=new n.fx(this,v,O),M=t[O],Ba.test(M)?(Se=n._data(this,"toggle"+O)||(M==="toggle"?S?"show":"hide":0),Se?(n._data(this,"toggle"+O,Se==="show"?"hide":"show"),B[Se]()):B[M]()):(j=Fa.exec(M),Z=B.cur(),j?(ve=parseFloat(j[2]),Me=j[3]||(n.cssNumber[O]?"":"px"),Me!=="px"&&(n.style(this,O,(ve||1)+Me),Z=(ve||1)/B.cur()*Z,n.style(this,O,Z+Me)),j[1]&&(ve=(j[1]==="-="?-1:1)*ve+Z),B.custom(Z,ve,Me)):B.custom(Z,M,""));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(S,P,M){var O=P[M];n.removeData(S,M,!0),O.stop(o)}var c,h=!1,v=n.timers,m=n._data(this);if(o||n._unmark(!0,this),t==null)for(c in m)m[c].stop&&c.indexOf(".run")===c.length-4&&u(this,m,c);else m[c=t+".run"]&&m[c].stop&&u(this,m,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=En||A(),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)&&!Mn&&(Mn=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=En||A(),h=!0,v=this.elem,m=this.options;if(t||c>=m.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),m.animatedProperties[this.prop]=!0;for(r in m.animatedProperties)m.animatedProperties[r]!==!0&&(h=!1);if(h){if(m.overflow!=null&&!n.support.shrinkWrapBlocks&&n.each(["","X","Y"],function(S,P){v.style["overflow"+P]=m.overflow[S]}),m.hide&&n(v).hide(),m.hide||m.show)for(r in m.animatedProperties)n.style(v,r,m.orig[r]),n.removeData(v,"fxshow"+r,!0),n.removeData(v,"toggle"+r,!0);u=m.complete,u&&(m.complete=!1,u.call(v))}return!1}return m.duration==1/0?this.now=c:(o=c-this.startTime,this.state=o/m.duration,this.pos=n.easing[m.animatedProperties[this.prop]](this.state,o,0,1,m.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(Mn),Mn=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 za=/^t(?:able|d|h)$/i,li=/^(?:body|html)$/i;"getBoundingClientRect"in U.documentElement?n.fn.offset=function(t){var r=this[0],o;if(t)return this.each(function(j){n.offset.setOffset(this,t,j)});if(!r||!r.ownerDocument)return null;if(r===r.ownerDocument.body)return n.offset.bodyOffset(r);try{o=r.getBoundingClientRect()}catch(j){}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),m=c.clientTop||h.clientTop||0,S=c.clientLeft||h.clientLeft||0,P=v.pageYOffset||n.support.boxModel&&c.scrollTop||h.scrollTop,M=v.pageXOffset||n.support.boxModel&&c.scrollLeft||h.scrollLeft,O=o.top+P-m,B=o.left+M-S;return{top:O,left:B}}: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,m=c.defaultView,S=m?m.getComputedStyle(r,null):r.currentStyle,P=r.offsetTop,M=r.offsetLeft;(r=r.parentNode)&&r!==v&&r!==h&&!(n.support.fixedPosition&&S.position==="fixed");)o=m?m.getComputedStyle(r,null):r.currentStyle,P-=r.scrollTop,M-=r.scrollLeft,r===u&&(P+=r.offsetTop,M+=r.offsetLeft,n.support.doesNotAddBorder&&(!n.support.doesAddBorderForTableAndCells||!za.test(r.nodeName))&&(P+=parseFloat(o.borderTopWidth)||0,M+=parseFloat(o.borderLeftWidth)||0),u=r.offsetParent),n.support.subtractsBorderForOverflowNotVisible&&o.overflow!=="visible"&&(P+=parseFloat(o.borderTopWidth)||0,M+=parseFloat(o.borderLeftWidth)||0),S=o;return(S.position==="relative"||S.position==="static")&&(P+=v.offsetTop,M+=v.offsetLeft),n.support.fixedPosition&&S.position==="fixed"&&(P+=Math.max(h.scrollTop,v.scrollTop),M+=Math.max(h.scrollLeft,v.scrollLeft)),{top:P,left:M}},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"),m=n.css(t,"left"),S=(u==="absolute"||u==="fixed")&&n.inArray("auto",[v,m])>-1,P={},M={},O,B;S?(M=c.position(),O=M.top,B=M.left):(O=parseFloat(v)||0,B=parseFloat(m)||0),n.isFunction(r)&&(r=r.call(t,o,h)),r.top!=null&&(P.top=r.top-h.top+O),r.left!=null&&(P.left=r.left-h.left+B),"using"in r?r.using.call(t,P):c.css(P)}},n.fn.extend({position:function(){if(!this[0])return null;var t=this[0],r=this.offsetParent(),o=this.offset(),u=li.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||U.body;t&&!li.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(P){var M=n(this);M[o](u.call(this,P,M[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 m=n.css(c,o),S=parseFloat(m);return n.isNumeric(S)?S:m}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",g=Math.PI,A=g/2,T="ontouchstart"in window,C=T?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},E={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},R=["single","double"],F=["ltr","rtl"],G={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},Y={cornerSize:100},fe=6,z={init:function(s){i="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,a=me(),f=we();var l,n=0,y=this.data(),b=this.children();if(s=e.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},G,s),y.opts=s,y.pageObjs={},y.pages={},y.pageWrap={},y.pageZoom={},y.pagePlace={},y.pageMv=[],y.zoom=1,y.totalPages=s.pages||0,y.eventHandlers={touchStart:e.proxy(z._touchStart,this),touchMove:e.proxy(z._touchMove,this),touchEnd:e.proxy(z._touchEnd,this),start:e.proxy(z._eventStart,this)},s.when)for(l in s.when)xe(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(ue(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(C.down,y.eventHandlers.touchStart).bind("end",z._eventEnd).bind("pressed",z._eventPressed).bind("released",z._eventReleased).bind("flip",z._flip),e(this).parent().bind("start",y.eventHandlers.start),e(document).bind(C.move,y.eventHandlers.touchMove).bind(C.up,y.eventHandlers.touchEnd),this.turn("page",s.page),y.done=!0,this},addPage:function(s,l){var n,y,b=!1,L=this.data(),re=L.totalPages+1;if(L.destroying)return!1;if((n=/\bp([0-9]+)\b/.exec(e(s).attr("class")))&&(l=parseInt(n[1],10)),l){if(l==re)b=!0;else if(l>re)throw ce('Page "'+l+'" cannot be inserted')}else l=re,b=!0;return l>=1&&l<=re&&(L.display=="double"?y=l%2?" odd":" even":y="",L.done&&this.turn("stop"),l in L.pageObjs&&z._movePages.call(this,l,1),b&&(L.totalPages=re),L.pageObjs[l]=e(s).css({float:"left"}).addClass("page p"+l+y),!U()&&L.pageObjs[l].hasClass("hard")&&L.pageObjs[l].removeClass("hard"),z._addPage.call(this,l),z._removeFromDOM.call(this)),this},_addPage:function(s){var l=this.data(),n=l.pageObjs[s];if(n)if(z._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 y=z._pageSize.call(this,s,!0);n.css({width:y.width,height:y.height}),l.pageWrap[s].css(y)}l.pagePlace[s]==s&&z._makeFlip.call(this,s)}else l.pagePlace[s]=0,l.pageObjs[s]&&l.pageObjs[s].remove()},hasPage:function(s){return xe(s,this.data().pageObjs)},center:function(s){var l=this.data(),n=e(this).turn("size"),y=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]||(y+=n.width/4):y-=n.width/4:b[0]?b[1]||(y-=n.width/4):y+=n.width/4}e(this).css({marginLeft:y})}return this},destroy:function(){var s=this,l=this.data(),n=["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"];if(Ce("destroying",this)!="prevented"){for(l.destroying=!0,e.each(n,function(y,b){s.unbind(b)}),this.parent().unbind("start",l.eventHandlers.start),e(document).unbind(C.move,l.eventHandlers.touchMove).unbind(C.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 ce(s+" is not a value for zoom");if(Ce("zooming",this,[s,l.zoom])=="prevented")return this;var n=this.turn("size"),y=this.turn("view"),b=1/l.zoom,L=Math.round(n.width*b*s),re=Math.round(n.height*b*s);l.zoom=s,e(this).turn("stop").turn("size",L,re),l.opts.autoCenter&&this.turn("center"),z._updateShadow.call(this);for(var ee=0;ee<y.length;ee++)y[ee]&&l.pageZoom[y[ee]]!=l.zoom&&(this.trigger("zoomed",[y[ee],y,l.pageZoom[y[ee]],l.zoom]),l.pageZoom[y[ee]]=l.zoom);return this}else return l.zoom},_pageSize:function(s,l){var n=this.data(),y={};if(n.display=="single")y.width=this.width(),y.height=this.height(),l&&(y.top=0,y.left=0,y.right="auto");else{var b=this.width()/2,L=this.height();if(n.pageObjs[s].hasClass("own-size")?(y.width=n.pageObjs[s].width(),y.height=n.pageObjs[s].height()):(y.width=b,y.height=L),l){var re=s%2;y.top=(L-y.height)/2,n.direction=="ltr"?(y[re?"right":"left"]=b-y.width,y[re?"left":"right"]="auto"):(y[re?"left":"right"]=b-y.width,y[re?"right":"left"]="auto")}}return y},_makeFlip:function(s){var l=this.data();if(!l.pages[s]&&l.pagePlace[s]==s){var n=l.display=="single",y=s%2;l.pages[s]=l.pageObjs[s].css(z._pageSize.call(this,s)).flip({page:s,next:y||n?s+1:s-1,turn:this}).flip("disable",l.disabled),z._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++)z._addPage.call(this,s)},range:function(s){var l,n,y,b,L=this.data();if(s=s||L.tpage||L.page||1,b=z._view.call(this,s),s<1||s>L.totalPages)throw ce('"'+s+'" is not a valid page');return b[1]=b[1]||b[0],b[0]>=1&&b[1]<=L.totalPages?(l=Math.floor((fe-2)/2),L.totalPages-b[1]>b[0]?(n=Math.min(b[0]-1,l),y=2*l-n):(y=Math.min(L.totalPages-b[1],l),n=2*l-y)):(n=fe-1,y=fe-1),[Math.max(1,b[0]-n),Math.min(L.totalPages,b[1]+y)]},_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)xe(s,l.pageWrap)&&!z._necessPage.call(this,s)&&z._removePageFromDOM.call(this,s)},_removePageFromDOM:function(s){var l=this.data();if(l.pages[s]){var n=l.pages[s].data();D._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]),z._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 ce("The page "+s+" doesn't exist");l.pageObjs[s]&&(this.turn("stop"),z._removePageFromDOM.call(this,s),delete l.pageObjs[s]),z._movePages.call(this,s,-1),l.totalPages=l.totalPages-1,l.page>l.totalPages?(l.page=null,z._fitPage.call(this,l.totalPages)):(z._makeRange.call(this),this.turn("update"))}return this},_movePages:function(s,l){var n,y=this,b=this.data(),L=b.display=="single",re=function(ee){var de=ee+l,Re=de%2,Ne=Re?" odd ":" even ";b.pageObjs[ee]&&(b.pageObjs[de]=b.pageObjs[ee].removeClass("p"+ee+" odd even").addClass("p"+de+Ne)),b.pagePlace[ee]&&b.pageWrap[ee]&&(b.pagePlace[de]=de,b.pageObjs[de].hasClass("fixed")?b.pageWrap[de]=b.pageWrap[ee].attr("page",de):b.pageWrap[de]=b.pageWrap[ee].css(z._pageSize.call(y,de,!0)).attr("page",de),b.pages[ee]&&(b.pages[de]=b.pages[ee].flip("options",{page:de,next:L||Re?de+1:de-1})),l&&(delete b.pages[ee],delete b.pagePlace[ee],delete b.pageZoom[ee],delete b.pageObjs[ee],delete b.pageWrap[ee]))};if(l>0)for(n=b.totalPages;n>=s;n--)re(n);else for(n=s;n<=b.totalPages;n++)re(n)},display:function(s){var l=this.data(),n=l.display;if(s===void 0)return n;if(e.inArray(s,R)==-1)throw ce('"'+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 y=this.turn("size");z._movePages.call(this,1,0),this.turn("size",y.width,y.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,F)==-1)throw ce('"'+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(xe(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(),y=this.turn("view");n.disabled=s===void 0||s===!0;for(l in n.pages)xe(l,n.pages)&&n.pages[l].flip("disable",n.disabled?!0:e.inArray(parseInt(l,10),y)==-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,y,b=this.data(),L=b.display=="double"?s/2:s;this.css({width:s,height:l}),b.pageObjs[0]&&b.pageObjs[0].css({width:L,height:l});for(n in b.pageWrap)xe(n,b.pageWrap)&&(y=z._pageSize.call(this,n,!0),b.pageObjs[n].css({width:y.width,height:y.height}),b.pageWrap[n].css(y),b.pages[n]&&b.pages[n].css({width:y.width,height:y.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);z._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();z._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=z._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,y,b,L=this.data();for(L.tpage&&(L.page=L.tpage,delete L.tpage),n=0;n<L.pageMv.length;n++)!L.pageMv[n]||L.pageMv[n]===s||(b=L.pages[L.pageMv[n]],y=b.data().f.opts,b.flip("hideFoldedPage",l),l||D._moveFoldingPage.call(b,!1),y.force&&(y.next=y.page%2===0?y.page-1:y.page+1,delete y.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,z._fitPage.call(this,l.page),this}else return l.totalPages},_missing:function(s){var l=this.data();if(!(l.totalPages<1)){var n,y=this.turn("range",s),b=[];for(n=y[0];n<=y[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(z._missing.call(this,s),!!l.pageObjs[s]){l.page=s,this.turn("stop");for(var y=0;y<n.length;y++)n[y]&&l.pageZoom[n[y]]!=l.zoom&&(this.trigger("zoomed",[n[y],n,l.pageZoom[n[y]],l.zoom]),l.pageZoom[n[y]]=l.zoom);z._removeFromDOM.call(this),z._makeRange.call(this),z._updateShadow.call(this),this.trigger("turned",[s,n]),this.turn("update"),l.opts.autoCenter&&this.turn("center")}},_turnPage:function(s){var l,n,y=this.data(),b=y.pagePlace[s],L=this.turn("view"),re=this.turn("view",s);if(y.page!=s){var ee=y.page;if(Ce("turning",this,[s,re])=="prevented"){ee==y.page&&e.inArray(b,y.pageMv)!=-1&&y.pages[b].flip("hideFoldedPage",!0);return}e.inArray(1,re)!=-1&&this.trigger("first"),e.inArray(y.totalPages,re)!=-1&&this.trigger("last")}y.display=="single"?(l=L[0],n=re[0]):L[1]&&s>L[1]?(l=L[1],n=re[0]):L[0]&&s<L[0]&&(l=L[0],n=re[1]);var de=y.opts.turnCorners.split(","),Re=y.pages[l].data().f,Ne=Re.opts,ze=Re.point;z._missing.call(this,s),y.pageObjs[s]&&(this.turn("stop"),y.page=s,z._makeRange.call(this),y.tpage=n,Ne.next!=n&&(Ne.next=n,Ne.force=!0),this.turn("update"),Re.point=ze,Re.effect=="hard"?y.direction=="ltr"?y.pages[l].flip("turnPage",s>l?"r":"l"):y.pages[l].flip("turnPage",s>l?"l":"r"):y.direction=="ltr"?y.pages[l].flip("turnPage",de[s>l?1:0]):y.pages[l].flip("turnPage",de[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?z._fitPage.call(this,s):z._turnPage.call(this,s)),this;throw ce("The page "+s+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,z._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,z._view.call(this,this.data().page).shift()-1))},peel:function(s,l){var n=this.data(),y=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?y[0]:y[1]:b=s.indexOf("l")!=-1?y[1]:y[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(),z._addMv.call(l,s.page)},_eventStart:function(s,l,n){var y=l.turn.data(),b=y.pageZoom[l.page];if(s.isDefaultPrevented()){z._updateShadow.call(l.turn);return}b&&b!=y.zoom&&(l.turn.trigger("zoomed",[l.page,l.turn.turn("view",l.page),b,y.zoom]),y.pageZoom[l.page]=y.zoom),y.display=="single"&&n&&(n.charAt(1)=="l"&&y.direction=="ltr"||n.charAt(1)=="r"&&y.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),z._addMotionPage.call(s.target),z._updateShadow.call(l.turn)},_eventEnd:function(s,l,n){var y=e(s.target);y.data().f;var b=l.turn,L=b.data();if(n){var re=L.tpage||L.page;(re==l.next||re==l.page)&&(delete L.tpage,z._fitPage.call(b,re||l.next,!0))}else z._removeMv.call(b,l.page),z._updateShadow.call(b),b.turn("update")},_eventPressed:function(s){var l=e(s.target).data().f,n=l.opts.turn,y=n.data();return y.pages,y.mouseAction=!0,n.turn("update"),l.time=new Date().getTime()},_eventReleased:function(s,l){var n,y=e(s.target),b=y.data().f,L=b.opts.turn,re=L.data();re.display=="single"?n=l.corner=="br"||l.corner=="tr"?l.x<y.width()/2:l.x>y.width()/2:n=l.x<0||l.x>y.width(),(new Date().getTime()-b.time<200||n)&&(s.preventDefault(),z._turnPage.call(L,b.opts.next)),re.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(xe(l,s.pages)&&D._eventStart.apply(s.pages[l],arguments)===!1)return!1},_touchMove:function(){var s=this.data();for(var l in s.pages)xe(l,s.pages)&&D._eventMove.apply(s.pages[l],arguments)},_touchEnd:function(){var s=this.data();for(var l in s.pages)xe(l,s.pages)&&D._eventEnd.apply(s.pages[l],arguments)},calculateZ:function(s){var l,n,y,b,L,re=this,ee=this.data(),de=this.turn("view"),Re=de[0]||de[1],Ne=s.length-1,ze={pageZ:{},partZ:{},pageV:{}},at=function(tt){var He=re.turn("view",tt);He[0]&&(ze.pageV[He[0]]=!0),He[1]&&(ze.pageV[He[1]]=!0)};for(l=0;l<=Ne;l++)n=s[l],y=ee.pages[n].data().f.opts.next,b=ee.pagePlace[n],at(n),at(y),L=ee.pagePlace[y]==y?y:n,ze.pageZ[L]=ee.totalPages-Math.abs(Re-L),ze.partZ[b]=ee.totalPages*2-Ne+l;return ze},update:function(){var s,l=this.data();if(this.turn("animating")&&l.pageMv[0]!==0){var n,y,b=this.turn("calculateZ",l.pageMv),L=this.turn("corner"),re=this.turn("view"),ee=this.turn("view",l.tpage);for(s in l.pageWrap)xe(s,l.pageWrap)&&(y=l.pageObjs[s].hasClass("fixed"),l.pageWrap[s].css({display:b.pageV[s]||y?"":"none",zIndex:(l.pageObjs[s].hasClass("hard")?b.partZ[s]:b.pageZ[s])||(y?-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!=ee[0]&&s!=ee[1]):n.flip("hover",L===!1).flip("disable",s!=re[0]&&s!=re[1])))}else for(s in l.pageWrap)if(xe(s,l.pageWrap)){var de=z._setPageLoc.call(this,s);l.pages[s]&&l.pages[s].flip("disable",l.disabled||de!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var s,l,n,y=this.data(),b=this.width(),L=this.height(),re=y.display=="single"?b:b/2;s=this.turn("view"),y.shadow||(y.shadow=e("<div />",{class:"shadow",css:q(0,0,0).css}).appendTo(this));for(var ee=0;ee<y.pageMv.length&&!(!s[0]||!s[1]);ee++)s=this.turn("view",y.pages[y.pageMv[ee]].data().f.opts.next),l=this.turn("view",y.pageMv[ee]),s[0]=s[0]&&l[0],s[1]=s[1]&&l[1];switch(s[0]?s[1]?n=3:n=y.direction=="ltr"?2:1:n=y.direction=="ltr"?1:2,n){case 1:y.shadow.css({width:re,height:L,top:0,left:re});break;case 2:y.shadow.css({width:re,height:L,top:0,left:0});break;case 3:y.shadow.css({width:b,height:L,top:0,left:0});break}},_setPageLoc:function(s){var l=this.data(),n=this.turn("view"),y=0;if(s==n[0]||s==n[1]?y=1:(l.display=="single"&&s==n[0]+1||l.display=="double"&&s==n[0]-2||s==n[1]+2)&&(y=2),!this.turn("animating"))switch(y){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 y},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)xe(n,s.when)&&this.unbind(n).bind(n,s.when[n]);return this},version:function(){return d}},D={init:function(s){return this.data({f:{disabled:!1,hover:!1,effect:this.hasClass("hard")?"hard":"sheet"}}),this.flip("options",s),D._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?(D.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(),y=l%2;return s.effect=="hard"?n.direction=="ltr"?[y?"r":"l"]:[y?"l":"r"]:n.display=="single"?l==1?n.direction=="ltr"?E.forward:E.backward:l==n.totalPages?n.direction=="ltr"?E.backward:E.forward:E.all:n.direction=="ltr"?E[y?"forward":"backward"]:E[y?"backward":"forward"]},_cornerActivated:function(s){var l=this.data().f,n=this.width(),y=this.height(),b={x:s.x,y:s.y,corner:""},L=l.opts.cornerSize;if(b.x<=0||b.y<=0||b.x>=n||b.y>=y)return!1;var re=D._cAllowed.call(this);switch(l.effect){case"hard":if(b.x>n-L)b.corner="r";else if(b.x<L)b.corner="l";else return!1;break;case"sheet":if(b.y<L)b.corner+="t";else if(b.y>=y-L)b.corner+="b";else return!1;if(b.x<=L)b.corner+="l";else if(b.x>=n-L)b.corner+="r";else return!1;break}return!b.corner||e.inArray(b.corner,re)==-1?!1:b},_isIArea:function(s){var l=this.data().f.parent.offset();return s=T&&s.originalEvent?s.originalEvent.touches[0]:s,D._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 J(l,l);case"tr":return J(this.width()-l,l);case"bl":return J(l,this.height()-l);case"br":return J(this.width()-l,this.height()-l);case"l":return J(l,0);case"r":return J(this.width()-l,0)}},_c2:function(s){switch(s){case"tl":return J(this.width()*2,0);case"tr":return J(-this.width(),0);case"bl":return J(this.width()*2,this.height());case"br":return J(-this.width(),this.height());case"l":return J(this.width()*2,0);case"r":return J(-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/>",q(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(),y=this.width(),b=this.height();switch(l.effect){case"hard":s&&(l.wrapper.css({width:y,height:b}),l.fpage.css({width:y,height:b}),n.opts.gradients&&(l.ashadow.css({width:y,height:b}),l.bshadow.css({width:y,height:b})));break;case"sheet":if(s){var L=Math.round(Math.sqrt(Math.pow(y,2)+Math.pow(b,2)));l.wrapper.css({width:L,height:L}),l.fwrapper.css({width:L,height:L}).children(":first-child").css({width:y,height:b}),l.fpage.css({width:y,height:b}),n.opts.gradients&&l.ashadow.css({width:y,height:b}),D._backGradient.call(this)&&l.bshadow.css({width:y,height:b})}if(l.parent.is(":visible")){var re=ke(l.parent[0]);l.fwrapper.css({top:re.top,left:re.left}),re=ke(l.opts.turn[0]),l.fparent.css({top:-re.top,left:-re.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 y={};y[f+"transform-style"]="preserve-3d",y[f+"backface-visibility"]="hidden",s.wrapper=e("<div/>",q(0,0,2)).css(y).appendTo(n).prepend(this),s.fpage=e("<div/>",q(0,0,1)).css(y).appendTo(n),l.opts.gradients&&(s.ashadow=e("<div/>",q(0,0,0)).hide().appendTo(n),s.bshadow=e("<div/>",q(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(q(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/>",q(0,0,this.css("z-index"))).appendTo(n).prepend(this),s.fwrapper=e("<div/>",q(n.offset().top,n.offset().left)).hide().appendTo(s.fparent),s.fpage=e("<div/>",q(0,0,0,"visible")).css({cursor:"default"}).appendTo(s.fwrapper),l.opts.gradients&&(s.ashadow=e("<div/>",q(0,0,1)).appendTo(s.fpage)),D.setData.call(this,s);break}D.resize.call(this,!0)},_fold:function(s){var l=this.data().f,n=l.opts.turn.data(),y=D._c.call(this,s.corner),b=this.width(),L=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 re,ee,de,Re,Ne,ze=n.totalPages,at=l.opts["z-index"]||ze,tt={overflow:"visible"},He=y.x?(y.x-s.x)/b:s.x/b,K=He*90,pe=K<90;switch(s.corner){case"l":Re="0% 50%",Ne="100% 50%",pe?(re=0,ee=l.opts.next-1>0,de=1):(re="100%",ee=l.opts.page+1<ze,de=0);break;case"r":Re="100% 50%",Ne="0% 50%",K=-K,b=-b,pe?(re=0,ee=l.opts.next+1<ze,de=0):(re="-100%",ee=l.opts.page!=1,de=1);break}tt[f+"perspective-origin"]=Ne,l.wrapper.transform("rotateY("+K+"deg)translate3d(0px, 0px, "+(this.attr("depth")||0)+"px)",Ne),l.fpage.transform("translateX("+b+"px) rotateY("+(180+K)+"deg)",Re),l.parent.css(tt),pe?(He=-He+1,l.wrapper.css({zIndex:at+1}),l.fpage.css({zIndex:at})):(He=He-1,l.wrapper.css({zIndex:at}),l.fpage.css({zIndex:at+1})),n.opts.gradients&&(ee?l.ashadow.css({display:"",left:re,backgroundColor:"rgba(0,0,0,"+.5*He+")"}).transform("rotateY(0deg)"):l.ashadow.hide(),l.bshadow.css({opacity:-He+1}),pe?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,J(de*100,0),J((-de+1)*100,0),[[0,"rgba(0,0,0,0.3)"],[1,"rgba(0,0,0,0)"]],2));break;case"sheet":var oe=this,Ee=0,De,Xe,Ye,nt,Qe,Tt,en,ht=J(0,0),vt=J(0,0),Ge=J(0,0),gn=D._foldingPage.call(this),Mt=n.opts.acceleration,_t=l.wrapper.height(),wt=s.corner.substr(0,1)=="t",gt=s.corner.substr(1,1)=="l",mt=function(){var qe=J(0,0),Ze=J(0,0);qe.x=y.x?y.x-s.x:s.x,a?qe.y=y.y?y.y-s.y:s.y:qe.y=0,Ze.x=gt?b-qe.x/2:s.x+qe.x/2,Ze.y=qe.y/2;var Ie=A-Math.atan2(qe.y,qe.x),V=Ie-Math.atan2(Ze.y,Ze.x),ae=Math.max(0,Math.sin(V)*Math.sqrt(Math.pow(Ze.x,2)+Math.pow(Ze.y,2)));if(Ee=Ae(Ie),Ge=J(ae*Math.sin(Ie),ae*Math.cos(Ie)),Ie>A&&(Ge.x=Ge.x+Math.abs(Ge.y*qe.y/qe.x),Ge.y=0,Math.round(Ge.x*Math.tan(g-Ie))<L))return s.y=Math.sqrt(Math.pow(L,2)+2*Ze.x*qe.x),wt&&(s.y=L-s.y),mt();if(Ie>A){var ge=g-Ie,_e=_t-L/Math.sin(ge);ht=J(Math.round(_e*Math.cos(ge)),Math.round(_e*Math.sin(ge))),gt&&(ht.x=-ht.x),wt&&(ht.y=-ht.y)}De=Math.round(Ge.y/Math.tan(Ie)+Ge.x);var We=b-De,Ke=We*Math.cos(Ie*2),ut=We*Math.sin(Ie*2);if(vt=J(Math.round(gt?We-Ke:De+Ke),Math.round(wt?ut:L-ut)),n.opts.gradients){Qe=We*Math.sin(Ie);var Fe=D._c2.call(oe,s.corner),$e=Math.sqrt(Math.pow(Fe.x-s.x,2)+Math.pow(Fe.y-s.y,2))/b;en=Math.sin(A*($e>1?2-$e:$e)),Tt=Math.min($e,1),nt=Qe>100?(Qe-100)/Qe:0,Xe=J(Qe*Math.sin(Ie)/b*100,Qe*Math.cos(Ie)/L*100),D._backGradient.call(oe)&&(Ye=J(Qe*1.2*Math.sin(Ie)/b*100,Qe*1.2*Math.cos(Ie)/L*100),gt||(Ye.x=100-Ye.x),wt||(Ye.y=100-Ye.y))}return Ge.x=Math.round(Ge.x),Ge.y=Math.round(Ge.y),!0},Nt=function(qe,Ze,Ie,V){var ae=["0","auto"],ge=(b-_t)*Ie[0]/100,_e=(L-_t)*Ie[1]/100,We={left:ae[Ze[0]],top:ae[Ze[1]],right:ae[Ze[2]],bottom:ae[Ze[3]]},Ke={},ut=V!=90&&V!=-90?gt?-1:1:0,Fe=Ie[0]+"% "+Ie[1]+"%";oe.css(We).transform(he(V)+ue(qe.x+ut,qe.y,Mt),Fe),l.fpage.css(We).transform(he(V)+ue(qe.x+vt.x-ht.x-b*Ie[0]/100,qe.y+vt.y-ht.y-L*Ie[1]/100,Mt)+he((180/V-2)*V),Fe),l.wrapper.transform(ue(-qe.x+ge-ut,-qe.y+_e,Mt)+he(-V),Fe),l.fwrapper.transform(ue(-qe.x+ht.x+ge,-qe.y+ht.y+_e,Mt)+he(-V),Fe),n.opts.gradients&&(Ie[0]&&(Xe.x=100-Xe.x),Ie[1]&&(Xe.y=100-Xe.y),Ke["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*en+")",gn.css(Ke),Be(l.ashadow,J(gt?100:0,wt?0:100),J(Xe.x,Xe.y),[[nt,"rgba(0,0,0,0)"],[(1-nt)*.8+nt,"rgba(0,0,0,"+.2*Tt+")"],[1,"rgba(255,255,255,"+.2*Tt+")"]],3),D._backGradient.call(oe)&&Be(l.bshadow,J(gt?0:100,wt?0:100),J(Ye.x,Ye.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*Tt+")"],[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),mt(),Nt(Ge,[1,0,0,1],[100,0],Ee);break;case"tr":s.x=Math.min(s.x,b-1),mt(),Nt(J(-Ge.x,Ge.y),[0,0,0,1],[0,0],-Ee);break;case"bl":s.x=Math.max(s.x,1),mt(),Nt(J(Ge.x,-Ge.y),[1,1,0,0],[100,100],-Ee);break;case"br":s.x=Math.min(s.x,b-1),mt(),Nt(J(-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,y=n.data(),b=y.pagePlace;if(s){var L=l.opts.next;if(b[L]!=l.opts.page){l.folding&&D._moveFoldingPage.call(this,!1);var re=D._foldingPage.call(this);re.appendTo(l.fpage),b[L]=l.opts.page,l.folding=L}n.turn("update")}else if(l.folding){if(y.pages[l.folding]){var ee=y.pages[l.folding].data().f;y.pageObjs[l.folding].appendTo(ee.wrapper)}else y.pageWrap[l.folding]&&y.pageObjs[l.folding].appendTo(y.pageWrap[l.folding]);l.folding in b&&(b[l.folding]=l.folding),delete l.folding}}},_showFoldedPage:function(s,l){var n=D._foldingPage.call(this),y=this.data(),b=y.f,L=b.visible;if(n){if(!L||!b.point||b.point.corner!=s.corner){var re=b.status=="hover"||b.status=="peel"||b.opts.turn.data().mouseAction?s.corner:null;if(L=!1,Ce("start",this,[b.opts,re])=="prevented")return!1}if(l){var ee=this,de=b.point&&b.point.corner==s.corner?b.point:D._c.call(this,s.corner,1);this.animatef({from:[de.x,de.y],to:[s.x,s.y],duration:500,frame:function(Re){s.x=Math.round(Re[0]),s.y=Math.round(Re[1]),D._fold.call(ee,s)}})}else D._fold.call(this,s),y.effect&&!y.effect.turning&&this.animatef(!1);if(!L)switch(b.effect){case"hard":b.visible=!0,D._moveFoldingPage.call(this,!0),b.fpage.show(),b.opts.shadows&&b.bshadow.show();break;case"sheet":b.visible=!0,b.fparent.show().data().flips++,D._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=D._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,y=l.point,b=function(){l.point=null,l.status="",n.flip("hide"),n.trigger("end",[l.opts,!1])};if(s){var L=D._c.call(this,y.corner),re=y.corner.substr(0,1)=="t",ee=re?Math.min(0,y.y-L.y)/2:Math.max(0,y.y-L.y)/2,de=J(y.x,y.y+ee),Re=J(L.x,L.y-ee);this.animatef({from:0,to:1,frame:function(Ne){var ze=se(y,de,Re,L,Ne);y.x=ze.x,y.y=ze.y,D._fold.call(n,y)},complete:b,duration:800,hiding:!0})}else this.animatef(!1),b()}},turnPage:function(s){var l=this,n=this.data().f,y=n.opts.turn.data();s={corner:n.corner?n.corner.corner:s||D._cAllowed.call(this)[0]};var b=n.point||D._c.call(this,s.corner,n.opts.turn?y.opts.elevation:0),L=D._c2.call(this,s.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(re){var ee=se(b,b,L,L,re);s.x=ee.x,s.y=ee.y,D._showFoldedPage.call(l,s)},complete:function(){l.trigger("end",[n.opts,!0])},duration:y.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=D._isIArea.call(this,s),l.corner&&D._foldingPage.call(this))return this.trigger("pressed",[l.point]),D._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,D._showFoldedPage.call(this,l.corner)}else if(l.hover&&!this.data().effect&&this.is(":visible")){var y=D._isIArea.call(this,s[0]);if(y){if(l.effect=="sheet"&&y.corner.length==2||l.effect=="hard"){l.status="hover";var b=D._c.call(this,y.corner,l.opts.cornerSize/2);y.x=b.x,y.y=b.y,D._showFoldedPage.call(this,y,!0)}}else l.status=="hover"&&(l.status="",D.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var s=this.data().f,l=s.corner;!s.disabled&&l&&Ce("released",this,[s.point||l])!="prevented"&&D.hideFoldedPage.call(this,!0),s.corner=null},disable:function(s){return D.setData.call(this,{disabled:s}),this},hover:function(s){return D.setData.call(this,{hover:s}),this},peel:function(s,l){var n=this.data().f;if(s){if(e.inArray(s,E.all)==-1)throw ce("Corner "+s+" is not permitted");if(e.inArray(s,D._cAllowed.call(this))!=-1){var y=D._c.call(this,s,n.opts.cornerSize/2);n.status="peel",D._showFoldedPage.call(this,{corner:s,x:y.x,y:y.y},l)}}else n.status="",D.hideFoldedPage.call(this,l);return this}};function N(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 ce(n[0]+" is not a method or property")}function q(s,l,n,y){return{css:{position:"absolute",top:s,left:l,overflow:y||"hidden",zIndex:n||"auto"}}}function se(s,l,n,y,b){var L=1-b,re=L*L*L,ee=b*b*b;return J(Math.round(re*s.x+3*b*L*L*l.x+3*b*b*L*n.x+ee*y.x),Math.round(re*s.y+3*b*L*L*l.y+3*b*b*L*n.y+ee*y.y))}function Ae(s){return s/g*180}function J(s,l){return{x:s,y:l}}function me(){var s;if(s=/AppleWebkit\/([0-9\.]+)/i.exec(navigator.userAgent)){var l=parseFloat(s[1]);return l>534.3}else return!0}function ue(s,l,n){return i&&n?" translate3d("+s+"px,"+l+"px, 0px) ":" translate("+s+"px, "+l+"px) "}function he(s){return" rotate("+s+"deg) "}function xe(s,l){return Object.prototype.hasOwnProperty.call(l,s)}function we(){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,y,b){var L,re=[];if(f=="-webkit-"){for(L=0;L<b;L++)re.push("color-stop("+y[L][0]+", "+y[L][1]+")");s.css({"background-image":"-webkit-gradient(linear, "+l.x+"% "+l.y+"%,"+n.x+"% "+n.y+"%, "+re.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 ee=n.x-l.x,de=n.y-l.y,Re=Math.atan2(de,ee),Ne=Re-Math.PI/2,ze=Math.abs(s.width()*Math.sin(Ne))+Math.abs(s.height()*Math.cos(Ne)),at=Math.sqrt(de*de+ee*ee),tt=J(n.x<l.x?s.width():0,n.y<l.y?s.height():0),He=Math.tan(Re),K=-1/He,pe=(K*tt.x-tt.y-He*l.x+l.y)/(K-He),oe={x:pe,y:K*pe-K*tt.x+tt.y},Ee=Math.sqrt(Math.pow(oe.x-l.x,2)+Math.pow(oe.y-l.y,2));for(L=0;L<b;L++)re.push(" "+y[L][1]+" "+(Ee+at*y[L][0])*100/ze+"%");s.css({"background-image":f+"linear-gradient("+-Re+"rad,"+re.join(",")+")"})}}function Ce(s,l,n){var y=e.Event(s);return l.trigger(y,n),y.isDefaultPrevented()?"prevented":y.isPropagationStopped()?"stopped":""}function ce(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 U(){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 N(e(this[0]),D,arguments)},turn:function(){return N(e(this[0]),z,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=[],y=s.to.length,b=!0,L=this,re=new Date().getTime(),ee=function(){if(!(!l.effect||!b)){for(var Re=[],Ne=Math.min(s.duration,new Date().getTime()-re),ze=0;ze<y;ze++)Re.push(l.effect.easing(1,Ne,s.from[ze],n[ze],s.duration));s.frame(y==1?Re[0]:Re),Ne==s.duration?(delete l.effect,L.data(l),s.complete&&s.complete()):window.requestAnim(ee)}},de=0;de<y;de++)n.push(s.to[de]-s.from[de]);l.effect=e.extend({stop:function(){b=!1},easing:function(Re,Ne,ze,at,tt){return at*Math.sqrt(1-(Ne=Ne/tt-1)*Ne)+ze}},s),this.data(l),ee()}else delete l.effect}}),e.isTouch=T,e.mouseEvents=C,e.cssPrefix=we,e.cssTransitionEnd=Pe,e.findPos=ke})(jQuery);const io={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:"下册"}},Ip=ft({name:"courseware-list",setup(){uo();const e=Te(!1),i=()=>{co({api:"goBack"})},a=br({currentGradeNum:0,page:1,rows:999,type:"COURSEWARE"}),f=Ue(()=>io.grades.map((N,q)=>({...N,color:a.currentGradeNum===q?"var(--van-primary-color)":"",className:a.currentGradeNum===q?"fontBlod":""}))),d=(N,q)=>{a.currentGradeNum=q,E()},g=br({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},showBook:!1,book:{}}),A=async()=>{var q;g.loading=!0;const N=await tu({...a,currentGradeNum:a.currentGradeNum?a.currentGradeNum:""});(N==null?void 0:N.code)===200&&Array.isArray((q=N==null?void 0:N.data)==null?void 0:q.rows)&&(g.list=N.data.rows.map(se=>(se.load=!1,se.key=Date.now()+se.id,se))),g.loading=!1},T=async()=>{var q,se,Ae;g.loading=!0;const N=await nu({clientType:"STUDENT",userId:(se=(q=as.user)==null?void 0:q.data)==null?void 0:se.id,page:a.page,rows:a.rows,currentGradeNum:a.currentGradeNum?a.currentGradeNum:""});(N==null?void 0:N.code)===200&&Array.isArray((Ae=N==null?void 0:N.data)==null?void 0:Ae.rows)&&(g.list=N.data.rows.map(J=>(J.name=`${J.name}`,J.load=!1,J.favoriteFlag=!0,J.key=Date.now()+J.id,J))),g.loading=!1},C=()=>{g.list=[],g.tab==="all"&&A(),g.tab==="favorite"&&T()},E=()=>{C()};Ft(()=>{C()});const R=async N=>{N.favoriteFlag?await ru({lessonCoursewareId:N.id}):(await iu({lessonCoursewareId:N.id}),C())};let F=null;const G=(N,q=300)=>{F&&clearTimeout(F),F=setTimeout(N,q)},Y=async N=>{var se;const q=await ou(N.id);(q==null?void 0:q.code)==200&&Array.isArray((se=q==null?void 0:q.data)==null?void 0:se.lessonList)&&(g.details=q.data.lessonList||[],g.bookData=q.data,console.log("🚀 ~ data.details:",g.details))},fe=N=>{const q=document.querySelector(`[data-id="${N}"]`);if(!q)return;const se=q.getBoundingClientRect();g.book=se},z=N=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{N()})})},D=async N=>{await Y(N),fe(N.id),z(()=>{g.showBook=!0})};return()=>ye("div",{class:st.container},[ye("div",{class:st.head,style:{opacity:g.showBook?0:""}},[ye("div",{class:st.back,onClick:i},[ye("img",{src:Co},null)]),ye(Ls,{class:st.tabs,active:g.tab,"onUpdate:active":N=>g.tab=N,onChange:()=>E()},{default:()=>[ye(vi,{title:"全部教材",name:"all"},null),ye(vi,{title:"我的收藏",name:"favorite"},null)]}),ye(Dl,{show:e.value,"onUpdate:show":N=>e.value=N,class:st.popover,actions:f.value,onSelect:d},{reference:()=>ye(is,{class:st.downBtn,round:!0,size:"small"},{default:()=>[io.grades[a.currentGradeNum].text," ",ye("svg",{class:[st.icon,e.value?st.iconUp:""],width:"9px",height:"5px",viewBox:"0 0 9 5",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[ye("title",null,[oo("三角形")]),ye("g",{id:"演示用",stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},[ye("g",{id:"全部教材-筛选",transform:"translate(-769.000000, -35.000000)",fill:"currentColor"},[ye("g",{id:"编组-3",transform:"translate(696.000000, 20.000000)"},[ye("g",{id:"筛选目录备份-2",transform:"translate(13.000000, 7.000000)"},[ye("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)])])])])])]})})]),ye("div",{class:st.content},[ye("div",{class:[st.wrap,g.list.length<=0&&!g.loading?st.emtpyWrap:""]},[g.list.map((N,q)=>ye("div",{class:[st.wrapItem,g.bookData.id===N.id&&g.showBook?st.wrapItemHide:""],key:N.key,onClick:()=>D(N)},[ye("div",{class:st.containerImg},[ye(bp,{"data-id":N.id,class:[st.cover,N.load?st.loaded:""],objectFit:"cover",src:N.coverImg,onLoad:()=>{N.load=!0},onError:()=>{N.load=!0}},null)]),ye("div",{class:st.name},[N.name]),ye("div",{class:st.favoriteBtn,onClick:se=>{se.stopPropagation(),N.favoriteFlag=!N.favoriteFlag,G(()=>R(N))}},[ye(Ap,{isFavorite:N.favoriteFlag},null)])])),g.list.length<=0&&!g.loading&&ye(os,{description:"暂无数据"},null)])]),ye(_p,{show:g.showBook,bookData:g.bookData,rect:g.book,onClose:()=>{g.showBook=!1}},null)])}});export{io as BOOK_DATA,Ip as default};