import{r as Ce,w as tn,c as $a,d as st,y as Ot,ax as Wt,ay as nn,f as qa,a as te,V as Wr,h as En,ae as Ua,F as Pt,m as hr,ah as Xa,n as Va,t as _n,a3 as Ya,z as Mr,az as vi,a9 as Ga,I as Ka,aA as Za,k as Ja,D as rn,A as vt,aB as Qa,e as Ue,aC as co,aD as es,aE as Q,aF as ts,aG as ns,aH as yn,aI as fo,aJ as Kt,T as fn,aK as hn,v as ho,g as Xn,aL as rs,aM as is,aN as os,x as On,af as po,C as pn,q as vo,ap as as,E as ss,a0 as ls,a5 as us,M as cs,Q as ds}from"./index-78a17cb9.js";import{q as fs}from"./base-aba1ba3e.js";import{g as Yt,s as Ze}from"./index-49d43d61.js";import{w as gi,q as hs,o as gt,a as ct,i as Er,b as Hr,S as Vn,c as Nt,g as er,r as tr,d as ps,e as vs,f as $r,h as gs,M as qr,t as wn,j as Or,k as ms,U as mi,l as yi,m as Hn,n as ys,p as ws,s as bs,u as xs,v as As,x as Ss,y as Cs,z as Ur,A as Ts,B as go,C as Pr,D as Ms,E as Qe,F as Ve,G as nr,H as Es,I as Zt,J as Gt,K as Bt,L as bn,N as Xr,O as $n,P as Os,Q as Yn,V as Ps,R as ks,T as Rs,W as Ds,X as wi,Y as pr,Z as mo,_ as Ns,$ as bi,a0 as yo,a1 as _s,a2 as Ls,a3 as An,a4 as Ln,a5 as wo,a6 as Bs,a7 as bo,a8 as Fs,a9 as Is,aa as zs}from"./fade-in-scale-up.cssr-6097d674.js";import{T as js,a as vr}from"./index-c771e030.js";import"./use-tab-status-f54a58dd.js";import"./index-22d6010f.js";function Tt(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var i=e.ownerDocument;return i&&i.defaultView||window}return e}function Vr(e){var i=Tt(e).Element;return e instanceof i||e instanceof Element}function Ct(e){var i=Tt(e).HTMLElement;return e instanceof i||e instanceof HTMLElement}function xo(e){if(typeof ShadowRoot>"u")return!1;var i=Tt(e).ShadowRoot;return e instanceof i||e instanceof ShadowRoot}var mn=Math.round;function kr(){var e=navigator.userAgentData;return e!=null&&e.brands?e.brands.map(function(i){return i.brand+"/"+i.version}).join(" "):navigator.userAgent}function Ws(){return!/^((?!chrome|android).)*safari/i.test(kr())}function Gn(e,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);var d=e.getBoundingClientRect(),f=1,y=1;i&&Ct(e)&&(f=e.offsetWidth>0&&mn(d.width)/e.offsetWidth||1,y=e.offsetHeight>0&&mn(d.height)/e.offsetHeight||1);var b=Vr(e)?Tt(e):window,T=b.visualViewport,M=!Ws()&&a,C=(d.left+(M&&T?T.offsetLeft:0))/f,E=(d.top+(M&&T?T.offsetTop:0))/y,$=d.width/f,re=d.height/y;return{width:$,height:re,top:E,right:C+$,bottom:E+re,left:C,x:C,y:E}}function Ao(e){var i=Tt(e),a=i.pageXOffset,d=i.pageYOffset;return{scrollLeft:a,scrollTop:d}}function Hs(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function $s(e){return e===Tt(e)||!Ct(e)?Ao(e):Hs(e)}function _t(e){return e?(e.nodeName||"").toLowerCase():null}function rr(e){return((Vr(e)?e.ownerDocument:e.document)||window.document).documentElement}function qs(e){return Gn(rr(e)).left+Ao(e).scrollLeft}function Lt(e){return Tt(e).getComputedStyle(e)}function Yr(e){var i=Lt(e),a=i.overflow,d=i.overflowX,f=i.overflowY;return/auto|scroll|overlay|hidden/.test(a+f+d)}function Us(e){var i=e.getBoundingClientRect(),a=mn(i.width)/e.offsetWidth||1,d=mn(i.height)/e.offsetHeight||1;return a!==1||d!==1}function Xs(e,i,a){a===void 0&&(a=!1);var d=Ct(i),f=Ct(i)&&Us(i),y=rr(i),b=Gn(e,f,a),T={scrollLeft:0,scrollTop:0},M={x:0,y:0};return(d||!d&&!a)&&((_t(i)!=="body"||Yr(y))&&(T=$s(i)),Ct(i)?(M=Gn(i,!0),M.x+=i.clientLeft,M.y+=i.clientTop):y&&(M.x=qs(y))),{x:b.left+T.scrollLeft-M.x,y:b.top+T.scrollTop-M.y,width:b.width,height:b.height}}function Vs(e){var i=Gn(e),a=e.offsetWidth,d=e.offsetHeight;return Math.abs(i.width-a)<=1&&(a=i.width),Math.abs(i.height-d)<=1&&(d=i.height),{x:e.offsetLeft,y:e.offsetTop,width:a,height:d}}function Gr(e){return _t(e)==="html"?e:e.assignedSlot||e.parentNode||(xo(e)?e.host:null)||rr(e)}function So(e){return["html","body","#document"].indexOf(_t(e))>=0?e.ownerDocument.body:Ct(e)&&Yr(e)?e:So(Gr(e))}function qn(e,i){var a;i===void 0&&(i=[]);var d=So(e),f=d===((a=e.ownerDocument)==null?void 0:a.body),y=Tt(d),b=f?[y].concat(y.visualViewport||[],Yr(d)?d:[]):d,T=i.concat(b);return f?T:T.concat(qn(Gr(b)))}function Ys(e){return["table","td","th"].indexOf(_t(e))>=0}function xi(e){return!Ct(e)||Lt(e).position==="fixed"?null:e.offsetParent}function Gs(e){var i=/firefox/i.test(kr()),a=/Trident/i.test(kr());if(a&&Ct(e)){var d=Lt(e);if(d.position==="fixed")return null}var f=Gr(e);for(xo(f)&&(f=f.host);Ct(f)&&["html","body"].indexOf(_t(f))<0;){var y=Lt(f);if(y.transform!=="none"||y.perspective!=="none"||y.contain==="paint"||["transform","perspective"].indexOf(y.willChange)!==-1||i&&y.willChange==="filter"||i&&y.filter&&y.filter!=="none")return f;f=f.parentNode}return null}function Co(e){for(var i=Tt(e),a=xi(e);a&&Ys(a)&&Lt(a).position==="static";)a=xi(a);return a&&(_t(a)==="html"||_t(a)==="body"&&Lt(a).position==="static")?i:a||Gs(e)||i}var vn="top",Kn="bottom",Pn="right",Jt="left",To="auto",Ks=[vn,Kn,Pn,Jt],Mo="start",Zn="end",Zs=[].concat(Ks,[To]).reduce(function(e,i){return e.concat([i,i+"-"+Mo,i+"-"+Zn])},[]),Js="beforeRead",Qs="read",el="afterRead",tl="beforeMain",nl="main",rl="afterMain",il="beforeWrite",ol="write",al="afterWrite",Rr=[Js,Qs,el,tl,nl,rl,il,ol,al];function sl(e){var i=new Map,a=new Set,d=[];e.forEach(function(y){i.set(y.name,y)});function f(y){a.add(y.name);var b=[].concat(y.requires||[],y.requiresIfExists||[]);b.forEach(function(T){if(!a.has(T)){var M=i.get(T);M&&f(M)}}),d.push(y)}return e.forEach(function(y){a.has(y.name)||f(y)}),d}function ll(e){var i=sl(e);return Rr.reduce(function(a,d){return a.concat(i.filter(function(f){return f.phase===d}))},[])}function ul(e){var i;return function(){return i||(i=new Promise(function(a){Promise.resolve().then(function(){i=void 0,a(e())})})),i}}function zt(e){for(var i=arguments.length,a=new Array(i>1?i-1:0),d=1;d=0?"x":"y"}function vl(e){var i=e.reference,a=e.element,d=e.placement,f=d?ir(d):null,y=d?Eo(d):null,b=i.x+i.width/2-a.width/2,T=i.y+i.height/2-a.height/2,M;switch(f){case vn:M={x:b,y:i.y-a.height};break;case Kn:M={x:b,y:i.y+i.height};break;case Pn:M={x:i.x+i.width,y:T};break;case Jt:M={x:i.x-a.width,y:T};break;default:M={x:i.x,y:i.y}}var C=f?pl(f):null;if(C!=null){var E=C==="y"?"height":"width";switch(y){case Mo:M[C]=M[C]-(i[E]/2-a[E]/2);break;case Zn:M[C]=M[C]+(i[E]/2-a[E]/2);break}}return M}var Si="Popper: Invalid reference or popper argument provided. They must be either a DOM element or virtual element.",gl="Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.",Ci={placement:"bottom",modifiers:[],strategy:"absolute"};function Ti(){for(var e=arguments.length,i=new Array(e),a=0;a100){console.error(gl);break}if(E.reset===!0){E.reset=!1,Y=-1;continue}var le=E.orderedModifiers[Y],ue=le.fn,ge=le.options,Ae=ge===void 0?{}:ge,be=le.name;typeof ue=="function"&&(E=ue({state:E,options:Ae,name:be,instance:j})||E)}}},update:ul(function(){return new Promise(function(_){j.forceUpdate(),_(E)})}),destroy:function(){D(),re=!0}};if(!Ti(T,M))return console.error(Si),j;j.setOptions(C).then(function(_){!re&&C.onFirstUpdate&&C.onFirstUpdate(_)});function ne(){E.orderedModifiers.forEach(function(_){var J=_.name,G=_.options,z=G===void 0?{}:G,he=_.effect;if(typeof he=="function"){var Y=he({state:E,name:J,instance:j,options:z}),le=function(){};$.push(Y||le)}})}function D(){$.forEach(function(_){return _()}),$=[]}return j}}var Bn={passive:!0};function yl(e){var i=e.state,a=e.instance,d=e.options,f=d.scroll,y=f===void 0?!0:f,b=d.resize,T=b===void 0?!0:b,M=Tt(i.elements.popper),C=[].concat(i.scrollParents.reference,i.scrollParents.popper);return y&&C.forEach(function(E){E.addEventListener("scroll",a.update,Bn)}),T&&M.addEventListener("resize",a.update,Bn),function(){y&&C.forEach(function(E){E.removeEventListener("scroll",a.update,Bn)}),T&&M.removeEventListener("resize",a.update,Bn)}}var wl={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:yl,data:{}};function bl(e){var i=e.state,a=e.name;i.modifiersData[a]=vl({reference:i.rects.reference,element:i.rects.popper,strategy:"absolute",placement:i.placement})}var xl={name:"popperOffsets",enabled:!0,phase:"read",fn:bl,data:{}},Al={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Sl(e){var i=e.x,a=e.y,d=window,f=d.devicePixelRatio||1;return{x:mn(i*f)/f||0,y:mn(a*f)/f||0}}function Mi(e){var i,a=e.popper,d=e.popperRect,f=e.placement,y=e.variation,b=e.offsets,T=e.position,M=e.gpuAcceleration,C=e.adaptive,E=e.roundOffsets,$=e.isFixed,re=b.x,j=re===void 0?0:re,ne=b.y,D=ne===void 0?0:ne,_=typeof E=="function"?E({x:j,y:D}):{x:j,y:D};j=_.x,D=_.y;var J=b.hasOwnProperty("x"),G=b.hasOwnProperty("y"),z=Jt,he=vn,Y=window;if(C){var le=Co(a),ue="clientHeight",ge="clientWidth";if(le===Tt(a)&&(le=rr(a),Lt(le).position!=="static"&&T==="absolute"&&(ue="scrollHeight",ge="scrollWidth")),le=le,f===vn||(f===Jt||f===Pn)&&y===Zn){he=Kn;var Ae=$&&le===Y&&Y.visualViewport?Y.visualViewport.height:le[ue];D-=Ae-d.height,D*=M?1:-1}if(f===Jt||(f===vn||f===Kn)&&y===Zn){z=Pn;var be=$&&le===Y&&Y.visualViewport?Y.visualViewport.width:le[ge];j-=be-d.width,j*=M?1:-1}}var Pe=Object.assign({position:T},C&&Al),Be=E===!0?Sl({x:j,y:D}):{x:j,y:D};if(j=Be.x,D=Be.y,M){var Te;return Object.assign({},Pe,(Te={},Te[he]=G?"0":"",Te[z]=J?"0":"",Te.transform=(Y.devicePixelRatio||1)<=1?"translate("+j+"px, "+D+"px)":"translate3d("+j+"px, "+D+"px, 0)",Te))}return Object.assign({},Pe,(i={},i[he]=G?D+"px":"",i[z]=J?j+"px":"",i.transform="",i))}function Cl(e){var i=e.state,a=e.options,d=a.gpuAcceleration,f=d===void 0?!0:d,y=a.adaptive,b=y===void 0?!0:y,T=a.roundOffsets,M=T===void 0?!0:T;{var C=Lt(i.elements.popper).transitionProperty||"";b&&["transform","top","right","bottom","left"].some(function($){return C.indexOf($)>=0})&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',` `,'Disable the "computeStyles" modifier\'s `adaptive` option to allow',"for smooth transitions, or remove these properties from the CSS","transition declaration on the popper element if only transitioning","opacity or background-color for example.",` `,"We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "))}var E={placement:ir(i.placement),variation:Eo(i.placement),popper:i.elements.popper,popperRect:i.rects.popper,gpuAcceleration:f,isFixed:i.options.strategy==="fixed"};i.modifiersData.popperOffsets!=null&&(i.styles.popper=Object.assign({},i.styles.popper,Mi(Object.assign({},E,{offsets:i.modifiersData.popperOffsets,position:i.options.strategy,adaptive:b,roundOffsets:M})))),i.modifiersData.arrow!=null&&(i.styles.arrow=Object.assign({},i.styles.arrow,Mi(Object.assign({},E,{offsets:i.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:M})))),i.attributes.popper=Object.assign({},i.attributes.popper,{"data-popper-placement":i.placement})}var Tl={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Cl,data:{}};function Ml(e){var i=e.state;Object.keys(i.elements).forEach(function(a){var d=i.styles[a]||{},f=i.attributes[a]||{},y=i.elements[a];!Ct(y)||!_t(y)||(Object.assign(y.style,d),Object.keys(f).forEach(function(b){var T=f[b];T===!1?y.removeAttribute(b):y.setAttribute(b,T===!0?"":T)}))})}function El(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(d){var f=i.elements[d],y=i.attributes[d]||{},b=Object.keys(i.styles.hasOwnProperty(d)?i.styles[d]:a[d]),T=b.reduce(function(M,C){return M[C]="",M},{});!Ct(f)||!_t(f)||(Object.assign(f.style,T),Object.keys(y).forEach(function(M){f.removeAttribute(M)}))})}}var Ol={name:"applyStyles",enabled:!0,phase:"write",fn:Ml,effect:El,requires:["computeStyles"]},Pl=[wl,xl,Tl,Ol],kl=ml({defaultModifiers:Pl});function Rl(e,i,a){var d=ir(e),f=[Jt,vn].indexOf(d)>=0?-1:1,y=typeof a=="function"?a(Object.assign({},i,{placement:e})):a,b=y[0],T=y[1];return b=b||0,T=(T||0)*f,[Jt,Pn].indexOf(d)>=0?{x:T,y:b}:{x:b,y:T}}function Dl(e){var i=e.state,a=e.options,d=e.name,f=a.offset,y=f===void 0?[0,0]:f,b=Zs.reduce(function(E,$){return E[$]=Rl($,i.rects,y),E},{}),T=b[i.placement],M=T.x,C=T.y;i.modifiersData.popperOffsets!=null&&(i.modifiersData.popperOffsets.x+=M,i.modifiersData.popperOffsets.y+=C),i.modifiersData[d]=b}var Nl={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Dl};const _l=(e,i)=>{const a=Ce(e());return tn(e,d=>{d!==a.value&&(a.value=d)}),tn(a,d=>{d!==e()&&i(d)}),a},[Ll,Xt]=$a("popover"),Bl=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],Fl={show:Boolean,theme:hr("light"),overlay:Boolean,actions:Xa(),trigger:hr("click"),duration:Va,showArrow:_n,placement:hr("bottom"),iconPrefix:String,overlayClass:Ya,overlayStyle:Object,closeOnClickAction:_n,closeOnClickOverlay:_n,closeOnClickOutside:_n,offset:{type:Array,default:()=>[0,8]},teleport:{type:[String,Object],default:"body"}};var Il=st({name:Ll,props:Fl,emits:["select","touchstart","update:show"],setup(e,{emit:i,slots:a,attrs:d}){let f;const y=Ce(),b=Ce(),T=Ce(),M=_l(()=>e.show,G=>i("update:show",G)),C=()=>({placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},Ga({},Nl,{options:{offset:e.offset}})]}),E=()=>b.value&&T.value?kl(b.value,T.value.popupRef.value,C()):null,$=()=>{Mr(()=>{M.value&&(f?f.setOptions(C()):(f=E(),vi&&(window.addEventListener("animationend",$),window.addEventListener("transitionend",$))))})},re=G=>{M.value=G},j=()=>{e.trigger==="click"&&(M.value=!M.value)},ne=(G,z)=>{G.disabled||(i("select",G,z),e.closeOnClickAction&&(M.value=!1))},D=()=>{M.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(M.value=!1)},_=(G,z)=>a.action?a.action({action:G,index:z}):[G.icon&&te(Ka,{name:G.icon,classPrefix:e.iconPrefix,class:Xt("action-icon")},null),te("div",{class:[Xt("action-text"),Za]},[G.text])],J=(G,z)=>{const{icon:he,color:Y,disabled:le,className:ue}=G;return te("div",{role:"menuitem",class:[Xt("action",{disabled:le,"with-icon":he}),ue],style:{color:Y},tabindex:le?void 0:0,"aria-disabled":le||void 0,onClick:()=>ne(G,z)},[_(G,z)])};return Ot(()=>{$(),Wt(()=>{var G;y.value=(G=T.value)==null?void 0:G.popupRef.value})}),nn(()=>{f&&(vi&&(window.removeEventListener("animationend",$),window.removeEventListener("transitionend",$)),f.destroy(),f=null)}),tn(()=>[M.value,e.offset,e.placement],$),qa([b,y],D,{eventName:"touchstart"}),()=>{var G;return te(Pt,null,[te("span",{ref:b,class:Xt("wrapper"),onClick:j},[(G=a.reference)==null?void 0:G.call(a)]),te(Wr,En({ref:T,show:M.value,class:Xt([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":re},d,Ua(e,Bl)),{default:()=>[e.showArrow&&te("div",{class:Xt("arrow")},null),te("div",{role:"menu",class:Xt("content")},[a.default?a.default():e.actions.map(J)])]})])}}});const zl=Ja(Il),jl="_container_jrmsw_1",Wl="_head_jrmsw_10",Hl="_back_jrmsw_18",$l="_tabs_jrmsw_21",ql="_downBtn_jrmsw_37",Ul="_icon_jrmsw_61",Xl="_iconUp_jrmsw_67",Vl="_popover_jrmsw_72",Yl="_content_jrmsw_91",Gl="_wrap_jrmsw_97",Kl="_emtpyWrap_jrmsw_103",Zl="_wrapItem_jrmsw_114",Jl="_item_jrmsw_124",Ql="_name_jrmsw_155",eu="_favoriteBtn_jrmsw_162",tu="_containerImg_jrmsw_168",nu="_cover_jrmsw_194",ru="_loaded_jrmsw_224",iu="_book_jrmsw_227",ou="_bookWrap_jrmsw_241",au="_show_jrmsw_249",ut={container:jl,head:Wl,back:Hl,tabs:$l,downBtn:ql,icon:Ul,iconUp:Xl,popover:Vl,content:Yl,wrap:Gl,emtpyWrap:Kl,wrapItem:Zl,item:Jl,name:Ql,favoriteBtn:eu,containerImg:tu,cover:nu,loaded:ru,book:iu,bookWrap:ou,show:au},Oo=""+new URL("icon_back-b80c2fc2.svg",import.meta.url).href,su=e=>rn.post("/edu-app/lessonCourseware/page",{data:e}),lu=e=>rn.post("/edu-app/lessonCoursewareFavorite/page",{data:e}),uu=e=>rn.post("/edu-app/classLessonCourseware/page ",{data:e}),cu=e=>rn.post("/edu-app/lessonCoursewareFavorite/save",{data:e}),du=e=>rn.post("/edu-app/lessonCoursewareFavorite/remove",{data:e}),fu=e=>rn.get(`/edu-app/lessonCourseware/detail/${e}`),hu=e=>rn.get(`/edu-app/classLessonCourseware/detail/${e}`);function Jn(e){return e.composedPath()[0]||null}function Po(e=8){return Math.random().toString(16).slice(2,2+e)}function pu(e,i=[],a){const d={};return i.forEach(f=>{d[f]=e[f]}),Object.assign(d,a)}function Dr(e,i=!0,a=[]){return e.forEach(d=>{if(d!==null){if(typeof d!="object"){(typeof d=="string"||typeof d=="number")&&a.push(vt(String(d)));return}if(Array.isArray(d)){Dr(d,i,a);return}if(d.type===Pt){if(d.children===null)return;Array.isArray(d.children)&&Dr(d.children,i,a)}else d.type!==Qa&&a.push(d)}}),a}function Ei(e,i="default",a=void 0){const d=e[i];if(!d)return gi("getFirstSlotVNode",`slot[${i}] is empty`),null;const f=Dr(d(a));return f.length===1?f[0]:(gi("getFirstSlotVNode",`slot[${i}] should have exactly one child`),null)}const Oi=st({render(){var e,i;return(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e)}}),vu=/^(\d|\.)+$/,Pi=/(\d|\.)+/;function gr(e,{c:i=1,offset:a=0,attachPx:d=!0}={}){if(typeof e=="number"){const f=(e+a)*i;return f===0?"0":`${f}px`}else if(typeof e=="string")if(vu.test(e)){const f=(Number(e)+a)*i;return d?f===0?"0":`${f}px`:`${f}`}else{const f=Pi.exec(e);return f?e.replace(Pi,String((Number(f[0])+a)*i)):e}return e}function gu(e,i){if(e===void 0)return!1;if(i){const{context:{ids:a}}=i;return a.has(e)}return hs(e)!==null}let mr;function mu(){return mr===void 0&&(mr=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),mr}const yu=typeof document<"u"&&typeof window<"u";function wu(e,i){return Ue(()=>{for(const a of i)if(e[a]!==void 0)return e[a];return e[i[i.length-1]]})}const bu=(typeof window>"u"?!1:/iPad|iPhone|iPod/.test(navigator.platform)||navigator.platform==="MacIntel"&&navigator.maxTouchPoints>1)&&!window.MSStream;function xu(){return bu}const un="@@mmoContext",Au={mounted(e,{value:i}){e[un]={handler:void 0},typeof i=="function"&&(e[un].handler=i,gt("mousemoveoutside",e,i))},updated(e,{value:i}){const a=e[un];typeof i=="function"?a.handler?a.handler!==i&&(ct("mousemoveoutside",e,a.handler),a.handler=i,gt("mousemoveoutside",e,i)):(e[un].handler=i,gt("mousemoveoutside",e,i)):a.handler&&(ct("mousemoveoutside",e,a.handler),a.handler=void 0)},unmounted(e){const{handler:i}=e[un];i&&ct("mousemoveoutside",e,i),e[un].handler=void 0}},Su=Au,cn="@@coContext",Cu={mounted(e,{value:i,modifiers:a}){e[cn]={handler:void 0},typeof i=="function"&&(e[cn].handler=i,gt("clickoutside",e,i,{capture:a.capture}))},updated(e,{value:i,modifiers:a}){const d=e[cn];typeof i=="function"?d.handler?d.handler!==i&&(ct("clickoutside",e,d.handler,{capture:a.capture}),d.handler=i,gt("clickoutside",e,i,{capture:a.capture})):(e[cn].handler=i,gt("clickoutside",e,i,{capture:a.capture})):d.handler&&(ct("clickoutside",e,d.handler,{capture:a.capture}),d.handler=void 0)},unmounted(e,{modifiers:i}){const{handler:a}=e[cn];a&&ct("clickoutside",e,a,{capture:i.capture}),e[cn].handler=void 0}},ki=Cu;function Ri(e,i){console.error(`[vueuc/${e}]: ${i}`)}function Di(e){return typeof e=="string"?document.querySelector(e):e()}var Qt=[],Tu=function(){return Qt.some(function(e){return e.activeTargets.length>0})},Mu=function(){return Qt.some(function(e){return e.skippedTargets.length>0})},Ni="ResizeObserver loop completed with undelivered notifications.",Eu=function(){var e;typeof ErrorEvent=="function"?e=new ErrorEvent("error",{message:Ni}):(e=document.createEvent("Event"),e.initEvent("error",!1,!1),e.message=Ni),window.dispatchEvent(e)},kn;(function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(kn||(kn={}));var en=function(e){return Object.freeze(e)},Ou=function(){function e(i,a){this.inlineSize=i,this.blockSize=a,en(this)}return e}(),ko=function(){function e(i,a,d,f){return this.x=i,this.y=a,this.width=d,this.height=f,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,en(this)}return e.prototype.toJSON=function(){var i=this,a=i.x,d=i.y,f=i.top,y=i.right,b=i.bottom,T=i.left,M=i.width,C=i.height;return{x:a,y:d,top:f,right:y,bottom:b,left:T,width:M,height:C}},e.fromRect=function(i){return new e(i.x,i.y,i.width,i.height)},e}(),Kr=function(e){return e instanceof SVGElement&&"getBBox"in e},Ro=function(e){if(Kr(e)){var i=e.getBBox(),a=i.width,d=i.height;return!a&&!d}var f=e,y=f.offsetWidth,b=f.offsetHeight;return!(y||b||e.getClientRects().length)},_i=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)},Pu=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},Mn=typeof window<"u"?window:{},Fn=new WeakMap,Li=/auto|scroll/,ku=/^tb|vertical/,Ru=/msie|trident/i.test(Mn.navigator&&Mn.navigator.userAgent),Et=function(e){return parseFloat(e||"0")},gn=function(e,i,a){return e===void 0&&(e=0),i===void 0&&(i=0),a===void 0&&(a=!1),new Ou((a?i:e)||0,(a?e:i)||0)},Bi=en({devicePixelContentBoxSize:gn(),borderBoxSize:gn(),contentBoxSize:gn(),contentRect:new ko(0,0,0,0)}),Do=function(e,i){if(i===void 0&&(i=!1),Fn.has(e)&&!i)return Fn.get(e);if(Ro(e))return Fn.set(e,Bi),Bi;var a=getComputedStyle(e),d=Kr(e)&&e.ownerSVGElement&&e.getBBox(),f=!Ru&&a.boxSizing==="border-box",y=ku.test(a.writingMode||""),b=!d&&Li.test(a.overflowY||""),T=!d&&Li.test(a.overflowX||""),M=d?0:Et(a.paddingTop),C=d?0:Et(a.paddingRight),E=d?0:Et(a.paddingBottom),$=d?0:Et(a.paddingLeft),re=d?0:Et(a.borderTopWidth),j=d?0:Et(a.borderRightWidth),ne=d?0:Et(a.borderBottomWidth),D=d?0:Et(a.borderLeftWidth),_=$+C,J=M+E,G=D+j,z=re+ne,he=T?e.offsetHeight-z-e.clientHeight:0,Y=b?e.offsetWidth-G-e.clientWidth:0,le=f?_+G:0,ue=f?J+z:0,ge=d?d.width:Et(a.width)-le-Y,Ae=d?d.height:Et(a.height)-ue-he,be=ge+_+Y+G,Pe=Ae+J+he+z,Be=en({devicePixelContentBoxSize:gn(Math.round(ge*devicePixelRatio),Math.round(Ae*devicePixelRatio),y),borderBoxSize:gn(be,Pe,y),contentBoxSize:gn(ge,Ae,y),contentRect:new ko($,M,ge,Ae)});return Fn.set(e,Be),Be},No=function(e,i,a){var d=Do(e,a),f=d.borderBoxSize,y=d.contentBoxSize,b=d.devicePixelContentBoxSize;switch(i){case kn.DEVICE_PIXEL_CONTENT_BOX:return b;case kn.BORDER_BOX:return f;default:return y}},Du=function(){function e(i){var a=Do(i);this.target=i,this.contentRect=a.contentRect,this.borderBoxSize=en([a.borderBoxSize]),this.contentBoxSize=en([a.contentBoxSize]),this.devicePixelContentBoxSize=en([a.devicePixelContentBoxSize])}return e}(),_o=function(e){if(Ro(e))return 1/0;for(var i=0,a=e.parentNode;a;)i+=1,a=a.parentNode;return i},Nu=function(){var e=1/0,i=[];Qt.forEach(function(b){if(b.activeTargets.length!==0){var T=[];b.activeTargets.forEach(function(C){var E=new Du(C.target),$=_o(C.target);T.push(E),C.lastReportedSize=No(C.target,C.observedBox),$e?a.activeTargets.push(f):a.skippedTargets.push(f))})})},_u=function(){var e=0;for(Fi(e);Tu();)e=Nu(),Fi(e);return Mu()&&Eu(),e>0},yr,Lo=[],Lu=function(){return Lo.splice(0).forEach(function(e){return e()})},Bu=function(e){if(!yr){var i=0,a=document.createTextNode(""),d={characterData:!0};new MutationObserver(function(){return Lu()}).observe(a,d),yr=function(){a.textContent="".concat(i?i--:i++)}}Lo.push(e),yr()},Fu=function(e){Bu(function(){requestAnimationFrame(e)})},Un=0,Iu=function(){return!!Un},zu=250,ju={attributes:!0,characterData:!0,childList:!0,subtree:!0},Ii=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],zi=function(e){return e===void 0&&(e=0),Date.now()+e},wr=!1,Wu=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=zu),!wr){wr=!0;var d=zi(i);Fu(function(){var f=!1;try{f=_u()}finally{if(wr=!1,i=d-zi(),!Iu())return;f?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,ju)};document.body?a():Mn.addEventListener("DOMContentLoaded",a)},e.prototype.start=function(){var i=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Ii.forEach(function(a){return Mn.addEventListener(a,i.listener,!0)}))},e.prototype.stop=function(){var i=this;this.stopped||(this.observer&&this.observer.disconnect(),Ii.forEach(function(a){return Mn.removeEventListener(a,i.listener,!0)}),this.stopped=!0)},e}(),Nr=new Wu,ji=function(e){!Un&&e>0&&Nr.start(),Un+=e,!Un&&Nr.stop()},Hu=function(e){return!Kr(e)&&!Pu(e)&&getComputedStyle(e).display==="inline"},$u=function(){function e(i,a){this.target=i,this.observedBox=a||kn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var i=No(this.target,this.observedBox,!0);return Hu(this.target)&&(this.lastReportedSize=i),this.lastReportedSize.inlineSize!==i.inlineSize||this.lastReportedSize.blockSize!==i.blockSize},e}(),qu=function(){function e(i,a){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=i,this.callback=a}return e}(),In=new WeakMap,Wi=function(e,i){for(var a=0;a=0&&(y&&Qt.splice(Qt.indexOf(d),1),d.observationTargets.splice(f,1),ji(-1))},e.disconnect=function(i){var a=this,d=In.get(i);d.observationTargets.slice().forEach(function(f){return a.unobserve(i,f.target)}),d.activeTargets.splice(0,d.activeTargets.length)},e}(),Uu=function(){function e(i){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof i!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");zn.connect(this,i)}return e.prototype.observe=function(i,a){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_i(i))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");zn.observe(this,i,a)},e.prototype.unobserve=function(i){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!_i(i))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");zn.unobserve(this,i)},e.prototype.disconnect=function(){zn.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}();class Xu{constructor(){this.handleResize=this.handleResize.bind(this),this.observer=new(typeof window<"u"&&window.ResizeObserver||Uu)(this.handleResize),this.elHandlersMap=new Map}handleResize(i){for(const a of i){const d=this.elHandlersMap.get(a.target);d!==void 0&&d(a)}}registerHandler(i,a){this.elHandlersMap.set(i,a),this.observer.observe(i)}unregisterHandler(i){this.elHandlersMap.has(i)&&(this.elHandlersMap.delete(i),this.observer.unobserve(i))}}const Hi=new Xu,$i=st({name:"ResizeObserver",props:{onResize:Function},setup(e){let i=!1;const a=co().proxy;function d(f){const{onResize:y}=e;y!==void 0&&y(f)}Ot(()=>{const f=a.$el;if(f===void 0){Ri("resize-observer","$el does not exist.");return}if(f.nextElementSibling!==f.nextSibling&&f.nodeType===3&&f.nodeValue!==""){Ri("resize-observer","$el can not be observed (it may be a text node).");return}f.nextElementSibling!==null&&(Hi.registerHandler(f.nextElementSibling,d),i=!0)}),nn(()=>{i&&Hi.unregisterHandler(a.$el.nextElementSibling)})},render(){return es(this.$slots,"default")}});function Bo(e){return e instanceof HTMLElement}function Fo(e){for(let i=0;i=0;i--){const a=e.childNodes[i];if(Bo(a)&&(zo(a)||Io(a)))return!0}return!1}function zo(e){if(!Vu(e))return!1;try{e.focus({preventScroll:!0})}catch(i){}return document.activeElement===e}function Vu(e){if(e.tabIndex>0||e.tabIndex===0&&e.getAttribute("tabIndex")!==null)return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&e.rel!=="ignore";case"INPUT":return e.type!=="hidden"&&e.type!=="file";case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}let Sn=[];const Yu=st({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup(e){const i=Po(),a=Ce(null),d=Ce(null);let f=!1,y=!1;const b=typeof document>"u"?null:document.activeElement;function T(){return Sn[Sn.length-1]===i}function M(_){var J;_.code==="Escape"&&T()&&((J=e.onEsc)===null||J===void 0||J.call(e,_))}Ot(()=>{tn(()=>e.active,_=>{_?($(),gt("keydown",document,M)):(ct("keydown",document,M),f&&re())},{immediate:!0})}),nn(()=>{ct("keydown",document,M),f&&re()});function C(_){if(!y&&T()){const J=E();if(J===null||J.contains(Jn(_)))return;j("first")}}function E(){const _=a.value;if(_===null)return null;let J=_;for(;J=J.nextSibling,!(J===null||J instanceof Element&&J.tagName==="DIV"););return J}function $(){var _;if(!e.disabled){if(Sn.push(i),e.autoFocus){const{initialFocusTo:J}=e;J===void 0?j("first"):(_=Di(J))===null||_===void 0||_.focus({preventScroll:!0})}f=!0,document.addEventListener("focus",C,!0)}}function re(){var _;if(e.disabled||(document.removeEventListener("focus",C,!0),Sn=Sn.filter(G=>G!==i),T()))return;const{finalFocusTo:J}=e;J!==void 0?(_=Di(J))===null||_===void 0||_.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&b instanceof HTMLElement&&(y=!0,b.focus({preventScroll:!0}),y=!1)}function j(_){if(T()&&e.active){const J=a.value,G=d.value;if(J!==null&&G!==null){const z=E();if(z==null||z===G){y=!0,J.focus({preventScroll:!0}),y=!1;return}y=!0;const he=_==="first"?Fo(z):Io(z);y=!1,he||(y=!0,J.focus({preventScroll:!0}),y=!1)}}}function ne(_){if(y)return;const J=E();J!==null&&(_.relatedTarget!==null&&J.contains(_.relatedTarget)?j("last"):j("first"))}function D(_){y||(_.relatedTarget!==null&&_.relatedTarget===a.value?j("last"):j("first"))}return{focusableStartRef:a,focusableEndRef:d,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:ne,handleEndFocus:D}},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(Pt,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 Gu(e){const i={isDeactivated:!1};let a=!1;return ts(()=>{if(i.isDeactivated=!1,!a){a=!0;return}e()}),ns(()=>{i.isDeactivated=!0,a||(a=!0)}),i}var Ku="[object Symbol]";function Zr(e){return typeof e=="symbol"||Er(e)&&Hr(e)==Ku}function jo(e,i){for(var a=-1,d=e==null?0:e.length,f=Array(d);++af?0:f+i),a=a>f?f:a,a<0&&(a+=f),f=i>a?0:a-i>>>0,i>>>=0;for(var y=Array(f);++d=d?e:gc(e,i,a)}var yc="\\ud800-\\udfff",wc="\\u0300-\\u036f",bc="\\ufe20-\\ufe2f",xc="\\u20d0-\\u20ff",Ac=wc+bc+xc,Sc="\\ufe0e\\ufe0f",Cc="\\u200d",Tc=RegExp("["+Cc+yc+Ac+Sc+"]");function qo(e){return Tc.test(e)}function Mc(e){return e.split("")}var Uo="\\ud800-\\udfff",Ec="\\u0300-\\u036f",Oc="\\ufe20-\\ufe2f",Pc="\\u20d0-\\u20ff",kc=Ec+Oc+Pc,Rc="\\ufe0e\\ufe0f",Dc="["+Uo+"]",Lr="["+kc+"]",Br="\\ud83c[\\udffb-\\udfff]",Nc="(?:"+Lr+"|"+Br+")",Xo="[^"+Uo+"]",Vo="(?:\\ud83c[\\udde6-\\uddff]){2}",Yo="[\\ud800-\\udbff][\\udc00-\\udfff]",_c="\\u200d",Go=Nc+"?",Ko="["+Rc+"]?",Lc="(?:"+_c+"(?:"+[Xo,Vo,Yo].join("|")+")"+Ko+Go+")*",Bc=Ko+Go+Lc,Fc="(?:"+[Xo+Lr+"?",Lr,Vo,Yo,Dc].join("|")+")",Ic=RegExp(Br+"(?="+Br+")|"+Fc+Bc,"g");function zc(e){return e.match(Ic)||[]}function jc(e){return qo(e)?zc(e):Mc(e)}function Wc(e){return function(i){i=or(i);var a=qo(i)?jc(i):void 0,d=a?a[0]:i.charAt(0),f=a?mc(a,1).join(""):i.slice(1);return d[e]()+f}}var Hc=Wc("toUpperCase");const $c=Hc;function qc(e,i,a,d){var f=-1,y=e==null?0:e.length;for(d&&y&&(a=e[++f]);++fT))return!1;var C=y.get(e),E=y.get(i);if(C&&E)return C==i&&E==e;var $=-1,re=!0,j=a&nf?new Qn:void 0;for(y.set(e,i),y.set(i,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"}},Zf=Kf;function xr(e){return function(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=i.width?String(i.width):e.defaultWidth,d=e.formats[a]||e.formats[e.defaultWidth];return d}}function Cn(e){return function(i,a){var d=a!=null&&a.context?String(a.context):"standalone",f;if(d==="formatting"&&e.formattingValues){var y=e.defaultFormattingWidth||e.defaultWidth,b=a!=null&&a.width?String(a.width):y;f=e.formattingValues[b]||e.formattingValues[y]}else{var T=e.defaultWidth,M=a!=null&&a.width?String(a.width):e.defaultWidth;f=e.values[M]||e.values[T]}var C=e.argumentCallback?e.argumentCallback(i):i;return f[C]}}function Tn(e){return function(i){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=a.width,f=d&&e.matchPatterns[d]||e.matchPatterns[e.defaultMatchWidth],y=i.match(f);if(!y)return null;var b=y[0],T=d&&e.parsePatterns[d]||e.parsePatterns[e.defaultParseWidth],M=Array.isArray(T)?Qf(T,function($){return $.test(b)}):Jf(T,function($){return $.test(b)}),C;C=e.valueCallback?e.valueCallback(M):M,C=a.valueCallback?a.valueCallback(C):C;var E=i.slice(b.length);return{value:C,rest:E}}}function Jf(e,i){for(var a in e)if(e.hasOwnProperty(a)&&i(e[a]))return a}function Qf(e,i){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},d=i.match(e.matchPattern);if(!d)return null;var f=d[0],y=i.match(e.parsePattern);if(!y)return null;var b=e.valueCallback?e.valueCallback(y[0]):y[0];b=a.valueCallback?a.valueCallback(b):b;var T=i.slice(f.length);return{value:b,rest:T}}}var th={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"}},nh=function(i,a,d){var f,y=th[i];return typeof y=="string"?f=y:a===1?f=y.one:f=y.other.replace("{{count}}",a.toString()),d!=null&&d.addSuffix?d.comparison&&d.comparison>0?"in "+f:f+" ago":f};const rh=nh;var ih={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},oh={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},ah={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},sh={date:xr({formats:ih,defaultWidth:"full"}),time:xr({formats:oh,defaultWidth:"full"}),dateTime:xr({formats:ah,defaultWidth:"full"})};const lh=sh;var uh={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ch=function(i,a,d,f){return uh[i]};const dh=ch;var fh={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},hh={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},ph={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"]},vh={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"]},gh={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"}},mh={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"}},yh=function(i,a){var d=Number(i),f=d%100;if(f>20||f<10)switch(f%10){case 1:return d+"st";case 2:return d+"nd";case 3:return d+"rd"}return d+"th"},wh={ordinalNumber:yh,era:Cn({values:fh,defaultWidth:"wide"}),quarter:Cn({values:hh,defaultWidth:"wide",argumentCallback:function(i){return i-1}}),month:Cn({values:ph,defaultWidth:"wide"}),day:Cn({values:vh,defaultWidth:"wide"}),dayPeriod:Cn({values:gh,defaultWidth:"wide",formattingValues:mh,defaultFormattingWidth:"wide"})};const bh=wh;var xh=/^(\d+)(th|st|nd|rd)?/i,Ah=/\d+/i,Sh={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},Ch={any:[/^b/i,/^(a|c)/i]},Th={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Mh={any:[/1/i,/2/i,/3/i,/4/i]},Eh={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},Oh={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]},Ph={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},kh={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]},Rh={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},Dh={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}},Nh={ordinalNumber:eh({matchPattern:xh,parsePattern:Ah,valueCallback:function(i){return parseInt(i,10)}}),era:Tn({matchPatterns:Sh,defaultMatchWidth:"wide",parsePatterns:Ch,defaultParseWidth:"any"}),quarter:Tn({matchPatterns:Th,defaultMatchWidth:"wide",parsePatterns:Mh,defaultParseWidth:"any",valueCallback:function(i){return i+1}}),month:Tn({matchPatterns:Eh,defaultMatchWidth:"wide",parsePatterns:Oh,defaultParseWidth:"any"}),day:Tn({matchPatterns:Ph,defaultMatchWidth:"wide",parsePatterns:kh,defaultParseWidth:"any"}),dayPeriod:Tn({matchPatterns:Rh,defaultMatchWidth:"any",parsePatterns:Dh,defaultParseWidth:"any"})};const _h=Nh;var Lh={code:"en-US",formatDistance:rh,formatLong:lh,formatRelative:dh,localize:bh,match:_h,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Bh=Lh,Fh={name:"en-US",locale:Bh},Ih=Fh;function zh(e){const{mergedLocaleRef:i,mergedDateLocaleRef:a}=yn(Ur,null)||{},d=Ue(()=>{var y,b;return(b=(y=i==null?void 0:i.value)===null||y===void 0?void 0:y[e])!==null&&b!==void 0?b:Zf[e]});return{dateLocaleRef:Ue(()=>{var y;return(y=a==null?void 0:a.value)!==null&&y!==void 0?y:Ih}),localeRef:d}}function jh(e,i,a){if(!i){Ts("use-style","No style is specified.");return}const d=go(),f=yn(Ur,null),y=()=>{const b=a==null?void 0:a.value;i.mount({id:b===void 0?e:b+e,head:!0,anchorMetaName:Pr,props:{bPrefix:b?`.${b}-`:void 0},ssr:d}),f!=null&&f.preflightStyleDisabled||Ms.mount({id:"n-global",head:!0,anchorMetaName:Pr,ssr:d})};d?y():fo(y)}function Wh(e,i,a){if(!i)return;const d=go(),f=Ue(()=>{const{value:b}=i;if(!b)return;const T=b[e];if(T)return T}),y=()=>{Wt(()=>{const{value:b}=a,T=`${b}${e}Rtl`;if(gu(T,d))return;const{value:M}=f;M&&M.style.mount({id:T,head:!0,anchorMetaName:Pr,props:{bPrefix:b?`.${b}-`:void 0},ssr:d})})};return d?y():fo(y),f}function sr(e,i){return st({name:$c(e),setup(){var a;const d=(a=yn(Ur,null))===null||a===void 0?void 0:a.mergedIconsRef;return()=>{var f;const y=(f=d==null?void 0:d.value)===null||f===void 0?void 0:f[e];return y?y():i}}})}const Hh=sr("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"}))),$h=sr("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"}))),qh=sr("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"}))),Uh=sr("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"}))),Xh=st({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"})))}}),Vh=Qe("base-icon",` height: 1em; width: 1em; line-height: 1em; text-align: center; display: inline-block; position: relative; fill: currentColor; transform: translateZ(0); `,[Ve("svg",` height: 1em; width: 1em; `)]),jt=st({name:"BaseIcon",props:{role:String,ariaLabel:String,ariaDisabled:{type:Boolean,default:void 0},ariaHidden:{type:Boolean,default:void 0},clsPrefix:{type:String,required:!0},onClick:Function,onMousedown:Function,onMouseup:Function},setup(e){jh("-base-icon",Vh,Kt(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)}}),Yh=e=>{const{scrollbarColor:i,scrollbarColorHover:a}=e;return{color:i,colorHover:a}},Gh={name:"Scrollbar",common:nr,self:Yh},Kh=Gh,{cubicBezierEaseInOut:lo}=Es;function jr({name:e="fade-in",enterDuration:i="0.2s",leaveDuration:a="0.2s",enterCubicBezier:d=lo,leaveCubicBezier:f=lo}={}){return[Ve(`&.${e}-transition-enter-active`,{transition:`all ${i} ${d}!important`}),Ve(`&.${e}-transition-leave-active`,{transition:`all ${a} ${f}!important`}),Ve(`&.${e}-transition-enter-from, &.${e}-transition-leave-to`,{opacity:0}),Ve(`&.${e}-transition-leave-from, &.${e}-transition-enter-to`,{opacity:1})]}const Zh=Qe("scrollbar",` overflow: hidden; position: relative; z-index: auto; height: 100%; width: 100%; `,[Ve(">",[Qe("scrollbar-container",` width: 100%; overflow: scroll; height: 100%; max-height: inherit; scrollbar-width: none; `,[Ve("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb",` width: 0; height: 0; display: none; `),Ve(">",[Qe("scrollbar-content",` box-sizing: border-box; min-width: 100%; `)])])]),Ve(">, +",[Qe("scrollbar-rail",` position: absolute; pointer-events: none; user-select: none; -webkit-user-select: none; `,[Zt("horizontal",` left: 2px; right: 2px; bottom: 4px; height: var(--n-scrollbar-height); `,[Ve(">",[Gt("scrollbar",` height: var(--n-scrollbar-height); border-radius: var(--n-scrollbar-border-radius); right: 0; `)])]),Zt("vertical",` right: 4px; top: 2px; bottom: 2px; width: var(--n-scrollbar-width); `,[Ve(">",[Gt("scrollbar",` width: var(--n-scrollbar-width); border-radius: var(--n-scrollbar-border-radius); bottom: 0; `)])]),Zt("disabled",[Ve(">",[Gt("scrollbar",{pointerEvents:"none"})])]),Ve(">",[Gt("scrollbar",` position: absolute; cursor: pointer; pointer-events: all; background-color: var(--n-scrollbar-color); transition: background-color .2s var(--n-scrollbar-bezier); `,[jr(),Ve("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),Jh=Object.assign(Object.assign({},Bt.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}),Qh=st({name:"Scrollbar",props:Jh,inheritAttrs:!1,setup(e){const{mergedClsPrefixRef:i,inlineThemeDisabled:a,mergedRtlRef:d}=bn(e),f=Wh("Scrollbar",d,i),y=Ce(null),b=Ce(null),T=Ce(null),M=Ce(null),C=Ce(null),E=Ce(null),$=Ce(null),re=Ce(null),j=Ce(null),ne=Ce(null),D=Ce(null),_=Ce(0),J=Ce(0),G=Ce(!1),z=Ce(!1);let he=!1,Y=!1,le,ue,ge=0,Ae=0,be=0,Pe=0;const Be=xu(),Te=Ue(()=>{const{value:V}=re,{value:de}=E,{value:we}=ne;return V===null||de===null||we===null?0:Math.min(V,we*V/de+e.size*1.5)}),pe=Ue(()=>`${Te.value}px`),ke=Ue(()=>{const{value:V}=j,{value:de}=$,{value:we}=D;return V===null||de===null||we===null?0:we*V/de+e.size*1.5}),U=Ue(()=>`${ke.value}px`),s=Ue(()=>{const{value:V}=re,{value:de}=_,{value:we}=E,{value:De}=ne;if(V===null||we===null||De===null)return 0;{const je=we-V;return je?de/je*(De-Te.value):0}}),l=Ue(()=>`${s.value}px`),n=Ue(()=>{const{value:V}=j,{value:de}=J,{value:we}=$,{value:De}=D;if(V===null||we===null||De===null)return 0;{const je=we-V;return je?de/je*(De-ke.value):0}}),m=Ue(()=>`${n.value}px`),x=Ue(()=>{const{value:V}=re,{value:de}=E;return V!==null&&de!==null&&de>V}),L=Ue(()=>{const{value:V}=j,{value:de}=$;return V!==null&&de!==null&&de>V}),ae=Ue(()=>{const{trigger:V}=e;return V==="none"||G.value}),ee=Ue(()=>{const{trigger:V}=e;return V==="none"||z.value}),ve=Ue(()=>{const{container:V}=e;return V?V():b.value}),Re=Ue(()=>{const{content:V}=e;return V?V():T.value}),Ne=Gu(()=>{e.container||nt({top:_.value,left:J.value})}),Ie=()=>{Ne.isDeactivated||mt()},lt=V=>{if(Ne.isDeactivated)return;const{onResize:de}=e;de&&de(V),mt()},nt=(V,de)=>{if(!e.scrollable)return;if(typeof V=="number"){K(de!=null?de:0,V,0,!1,"auto");return}const{left:we,top:De,index:je,elSize:Ke,position:dt,behavior:Fe,el:$e,debounce:Ht=!0}=V;(we!==void 0||De!==void 0)&&K(we!=null?we:0,De!=null?De:0,0,!1,Fe),$e!==void 0?K(0,$e.offsetTop,$e.offsetHeight,Ht,Fe):je!==void 0&&Ke!==void 0?K(0,je*Ke,Ke,Ht,Fe):dt==="bottom"?K(0,Number.MAX_SAFE_INTEGER,0,!1,Fe):dt==="top"&&K(0,0,0,!1,Fe)},He=(V,de)=>{if(!e.scrollable)return;const{value:we}=ve;we&&(typeof V=="object"?we.scrollBy(V):we.scrollBy(V,de||0))};function K(V,de,we,De,je){const{value:Ke}=ve;if(Ke){if(De){const{scrollTop:dt,offsetHeight:Fe}=Ke;if(de>dt){de+we<=dt+Fe||Ke.scrollTo({left:V,top:de+we-Fe,behavior:je});return}}Ke.scrollTo({left:V,top:de,behavior:je})}}function me(){Ye(),rt(),mt()}function ce(){Ee()}function Ee(){_e(),Xe()}function _e(){ue!==void 0&&window.clearTimeout(ue),ue=window.setTimeout(()=>{z.value=!1},e.duration)}function Xe(){le!==void 0&&window.clearTimeout(le),le=window.setTimeout(()=>{G.value=!1},e.duration)}function Ye(){le!==void 0&&window.clearTimeout(le),G.value=!0}function rt(){ue!==void 0&&window.clearTimeout(ue),z.value=!0}function et(V){const{onScroll:de}=e;de&&de(V),kt()}function kt(){const{value:V}=ve;V&&(_.value=V.scrollTop,J.value=V.scrollLeft*(f!=null&&f.value?-1:1))}function on(){const{value:V}=Re;V&&(E.value=V.offsetHeight,$.value=V.offsetWidth);const{value:de}=ve;de&&(re.value=de.offsetHeight,j.value=de.offsetWidth);const{value:we}=C,{value:De}=M;we&&(D.value=we.offsetWidth),De&&(ne.value=De.offsetHeight)}function pt(){const{value:V}=ve;V&&(_.value=V.scrollTop,J.value=V.scrollLeft*(f!=null&&f.value?-1:1),re.value=V.offsetHeight,j.value=V.offsetWidth,E.value=V.scrollHeight,$.value=V.scrollWidth);const{value:de}=C,{value:we}=M;de&&(D.value=de.offsetWidth),we&&(ne.value=we.offsetHeight)}function mt(){e.scrollable&&(e.useUnifiedContainer?pt():(on(),kt()))}function Ge(V){var de;return!(!((de=y.value)===null||de===void 0)&&de.contains(Jn(V)))}function xn(V){V.preventDefault(),V.stopPropagation(),Y=!0,gt("mousemove",window,Rt,!0),gt("mouseup",window,Ft,!0),Ae=J.value,be=f!=null&&f.value?window.innerWidth-V.clientX:V.clientX}function Rt(V){if(!Y)return;le!==void 0&&window.clearTimeout(le),ue!==void 0&&window.clearTimeout(ue);const{value:de}=j,{value:we}=$,{value:De}=ke;if(de===null||we===null)return;const Ke=(f!=null&&f.value?window.innerWidth-V.clientX-be:V.clientX-be)*(we-de)/(de-De),dt=we-de;let Fe=Ae+Ke;Fe=Math.min(dt,Fe),Fe=Math.max(Fe,0);const{value:$e}=ve;if($e){$e.scrollLeft=Fe*(f!=null&&f.value?-1:1);const{internalOnUpdateScrollLeft:Ht}=e;Ht&&Ht(Fe)}}function Ft(V){V.preventDefault(),V.stopPropagation(),ct("mousemove",window,Rt,!0),ct("mouseup",window,Ft,!0),Y=!1,mt(),Ge(V)&&Ee()}function At(V){V.preventDefault(),V.stopPropagation(),he=!0,gt("mousemove",window,yt,!0),gt("mouseup",window,wt,!0),ge=_.value,Pe=V.clientY}function yt(V){if(!he)return;le!==void 0&&window.clearTimeout(le),ue!==void 0&&window.clearTimeout(ue);const{value:de}=re,{value:we}=E,{value:De}=Te;if(de===null||we===null)return;const Ke=(V.clientY-Pe)*(we-de)/(de-De),dt=we-de;let Fe=ge+Ke;Fe=Math.min(dt,Fe),Fe=Math.max(Fe,0);const{value:$e}=ve;$e&&($e.scrollTop=Fe)}function wt(V){V.preventDefault(),V.stopPropagation(),ct("mousemove",window,yt,!0),ct("mouseup",window,wt,!0),he=!1,mt(),Ge(V)&&Ee()}Wt(()=>{const{value:V}=L,{value:de}=x,{value:we}=i,{value:De}=C,{value:je}=M;De&&(V?De.classList.remove(`${we}-scrollbar-rail--disabled`):De.classList.add(`${we}-scrollbar-rail--disabled`)),je&&(de?je.classList.remove(`${we}-scrollbar-rail--disabled`):je.classList.add(`${we}-scrollbar-rail--disabled`))}),Ot(()=>{e.container||mt()}),nn(()=>{le!==void 0&&window.clearTimeout(le),ue!==void 0&&window.clearTimeout(ue),ct("mousemove",window,yt,!0),ct("mouseup",window,wt,!0)});const It=Bt("Scrollbar","-scrollbar",Zh,Kh,e,i),qe=Ue(()=>{const{common:{cubicBezierEaseInOut:V,scrollbarBorderRadius:de,scrollbarHeight:we,scrollbarWidth:De},self:{color:je,colorHover:Ke}}=It.value;return{"--n-scrollbar-bezier":V,"--n-scrollbar-color":je,"--n-scrollbar-color-hover":Ke,"--n-scrollbar-border-radius":de,"--n-scrollbar-width":De,"--n-scrollbar-height":we}}),Je=a?Xr("scrollbar",void 0,qe,e):void 0;return Object.assign(Object.assign({},{scrollTo:nt,scrollBy:He,sync:mt,syncUnifiedContainer:pt,handleMouseEnterWrapper:me,handleMouseLeaveWrapper:ce}),{mergedClsPrefix:i,rtlEnabled:f,containerScrollTop:_,wrapperRef:y,containerRef:b,contentRef:T,yRailRef:M,xRailRef:C,needYBar:x,needXBar:L,yBarSizePx:pe,xBarSizePx:U,yBarTopPx:l,xBarLeftPx:m,isShowXBar:ae,isShowYBar:ee,isIos:Be,handleScroll:et,handleContentResize:Ie,handleContainerResize:lt,handleYScrollMouseDown:At,handleXScrollMouseDown:xn,cssVars:a?void 0:qe,themeClass:Je==null?void 0:Je.themeClass,onRender:Je==null?void 0:Je.onRender})},render(){var e;const{$slots:i,mergedClsPrefix:a,triggerDisplayManually:d,rtlEnabled:f,internalHoistYRail:y}=this;if(!this.scrollable)return(e=i.default)===null||e===void 0?void 0:e.call(i);const b=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(b?Oi:fn,b?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})),M=()=>{var E,$;return(E=this.onRender)===null||E===void 0||E.call(this),Q("div",En(this.$attrs,{role:"none",ref:"wrapperRef",class:[`${a}-scrollbar`,this.themeClass,f&&`${a}-scrollbar--rtl`],style:this.cssVars,onMouseenter:d?void 0:this.handleMouseEnterWrapper,onMouseleave:d?void 0:this.handleMouseLeaveWrapper}),[this.container?($=i.default)===null||$===void 0?void 0:$.call(i):Q("div",{role:"none",ref:"containerRef",class:[`${a}-scrollbar-container`,this.containerClass],style:this.containerStyle,onScroll:this.handleScroll,onWheel:this.onWheel},Q($i,{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)})),y?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(b?Oi:fn,b?null:{name:"fade-in-transition"},{default:()=>this.needXBar&&this.isShowXBar&&!this.isIos?Q("div",{class:`${a}-scrollbar-rail__scrollbar`,style:{width:this.xBarSizePx,right:f?this.xBarLeftPx:void 0,left:f?void 0:this.xBarLeftPx},onMousedown:this.handleXScrollMouseDown}):null}))])},C=this.container?M():Q($i,{onResize:this.handleContainerResize},{default:M});return y?Q(Pt,null,C,T()):C}}),ep=Qh,tp={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},np=e=>{const{boxShadow2:i,popoverColor:a,textColor2:d,borderRadius:f,fontSize:y,dividerColor:b}=e;return Object.assign(Object.assign({},tp),{fontSize:y,borderRadius:f,color:a,dividerColor:b,textColor:d,boxShadow:i})},rp={name:"Popover",common:nr,self:np},ha=rp,Ar={top:"bottom",bottom:"top",left:"right",right:"left"},at="var(--n-arrow-height) * 1.414",ip=Ve([Qe("popover",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier); position: relative; font-size: var(--n-font-size); color: var(--n-text-color); box-shadow: var(--n-box-shadow); word-break: break-word; `,[Ve(">",[Qe("scrollbar",` height: inherit; max-height: inherit; `)]),$n("raw",` background-color: var(--n-color); border-radius: var(--n-border-radius); `,[$n("scrollable",[$n("show-header-or-footer","padding: var(--n-padding);")])]),Gt("header",` padding: var(--n-padding); border-bottom: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); `),Gt("footer",` padding: var(--n-padding); border-top: 1px solid var(--n-divider-color); transition: border-color .3s var(--n-bezier); `),Zt("scrollable, show-header-or-footer",[Gt("content",` padding: var(--n-padding); `)])]),Qe("popover-shared",` transform-origin: inherit; `,[Qe("popover-arrow-wrapper",` position: absolute; overflow: hidden; pointer-events: none; `,[Qe("popover-arrow",` transition: background-color .3s var(--n-bezier); position: absolute; display: block; width: calc(${at}); height: calc(${at}); box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12); transform: rotate(45deg); background-color: var(--n-color); pointer-events: all; `)]),Ve("&.popover-transition-enter-from, &.popover-transition-leave-to",` opacity: 0; transform: scale(.85); `),Ve("&.popover-transition-enter-to, &.popover-transition-leave-from",` transform: scale(1); opacity: 1; `),Ve("&.popover-transition-enter-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier), opacity .15s var(--n-bezier-ease-out), transform .15s var(--n-bezier-ease-out); `),Ve("&.popover-transition-leave-active",` transition: box-shadow .3s var(--n-bezier), background-color .3s var(--n-bezier), color .3s var(--n-bezier), opacity .15s var(--n-bezier-ease-in), transform .15s var(--n-bezier-ease-in); `)]),bt("top-start",` top: calc(${at} / -2); left: calc(${Dt("top-start")} - var(--v-offset-left)); `),bt("top",` top: calc(${at} / -2); transform: translateX(calc(${at} / -2)) rotate(45deg); left: 50%; `),bt("top-end",` top: calc(${at} / -2); right: calc(${Dt("top-end")} + var(--v-offset-left)); `),bt("bottom-start",` bottom: calc(${at} / -2); left: calc(${Dt("bottom-start")} - var(--v-offset-left)); `),bt("bottom",` bottom: calc(${at} / -2); transform: translateX(calc(${at} / -2)) rotate(45deg); left: 50%; `),bt("bottom-end",` bottom: calc(${at} / -2); right: calc(${Dt("bottom-end")} + var(--v-offset-left)); `),bt("left-start",` left: calc(${at} / -2); top: calc(${Dt("left-start")} - var(--v-offset-top)); `),bt("left",` left: calc(${at} / -2); transform: translateY(calc(${at} / -2)) rotate(45deg); top: 50%; `),bt("left-end",` left: calc(${at} / -2); bottom: calc(${Dt("left-end")} + var(--v-offset-top)); `),bt("right-start",` right: calc(${at} / -2); top: calc(${Dt("right-start")} - var(--v-offset-top)); `),bt("right",` right: calc(${at} / -2); transform: translateY(calc(${at} / -2)) rotate(45deg); top: 50%; `),bt("right-end",` right: calc(${at} / -2); bottom: calc(${Dt("right-end")} + var(--v-offset-top)); `),...Vf({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),d=a?"width":"height";return e.map(f=>{const y=f.split("-")[1]==="end",T=`calc((${`var(--v-target-${d}, 0px)`} - ${at}) / 2)`,M=Dt(f);return Ve(`[v-placement="${f}"] >`,[Qe("popover-shared",[Zt("center-arrow",[Qe("popover-arrow",`${i}: calc(max(${T}, ${M}) ${y?"+":"-"} var(--v-offset-${a?"left":"top"}));`)])])])})})]);function Dt(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function bt(e,i){const a=e.split("-")[0],d=["top","bottom"].includes(a)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return Ve(`[v-placement="${e}"] >`,[Qe("popover-shared",` margin-${Ar[a]}: var(--n-space); `,[Zt("show-arrow",` margin-${Ar[a]}: var(--n-space-arrow); `),Zt("overlap",` margin: 0; `),Os("popover-arrow-wrapper",` right: 0; left: 0; top: 0; bottom: 0; ${a}: 100%; ${Ar[a]}: auto; ${d} `,[Qe("popover-arrow",i)])])])}const pa=Object.assign(Object.assign({},Bt.props),{to:Yn.propTo,show:Boolean,trigger:String,showArrow:Boolean,delay:Number,duration:Number,raw:Boolean,arrowPointToCenter:Boolean,arrowStyle:[String,Object],displayDirective:String,x:Number,y:Number,flip:Boolean,overlap:Boolean,placement:String,width:[Number,String],keepAliveOnHover:Boolean,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],internalDeactivateImmediately:Boolean,animated:Boolean,onClickoutside:Function,internalTrapFocus:Boolean,internalOnAfterLeave:Function,minWidth:Number,maxWidth:Number}),op=({arrowStyle:e,clsPrefix:i})=>Q("div",{key:"__popover-arrow__",class:`${i}-popover-arrow-wrapper`},Q("div",{class:`${i}-popover-arrow`,style:e})),ap=st({name:"PopoverBody",inheritAttrs:!1,props:pa,setup(e,{slots:i,attrs:a}){const{namespaceRef:d,mergedClsPrefixRef:f,inlineThemeDisabled:y}=bn(e),b=Bt("Popover","-popover",ip,ha,e,f),T=Ce(null),M=yn("NPopover"),C=Ce(null),E=Ce(e.show),$=Ce(!1);Wt(()=>{const{show:ue}=e;ue&&!mu()&&!e.internalDeactivateImmediately&&($.value=!0)});const re=Ue(()=>{const{trigger:ue,onClickoutside:ge}=e,Ae=[],{positionManuallyRef:{value:be}}=M;return be||(ue==="click"&&!ge&&Ae.push([ki,he,void 0,{capture:!0}]),ue==="hover"&&Ae.push([Su,z])),ge&&Ae.push([ki,he,void 0,{capture:!0}]),(e.displayDirective==="show"||e.animated&&$.value)&&Ae.push([ho,e.show]),Ae}),j=Ue(()=>{const ue=e.width==="trigger"?void 0:gr(e.width),ge=[];ue&&ge.push({width:ue});const{maxWidth:Ae,minWidth:be}=e;return Ae&&ge.push({maxWidth:gr(Ae)}),be&&ge.push({maxWidth:gr(be)}),y||ge.push(ne.value),ge}),ne=Ue(()=>{const{common:{cubicBezierEaseInOut:ue,cubicBezierEaseIn:ge,cubicBezierEaseOut:Ae},self:{space:be,spaceArrow:Pe,padding:Be,fontSize:Te,textColor:pe,dividerColor:ke,color:U,boxShadow:s,borderRadius:l,arrowHeight:n,arrowOffset:m,arrowOffsetVertical:x}}=b.value;return{"--n-box-shadow":s,"--n-bezier":ue,"--n-bezier-ease-in":ge,"--n-bezier-ease-out":Ae,"--n-font-size":Te,"--n-text-color":pe,"--n-color":U,"--n-divider-color":ke,"--n-border-radius":l,"--n-arrow-height":n,"--n-arrow-offset":m,"--n-arrow-offset-vertical":x,"--n-padding":Be,"--n-space":be,"--n-space-arrow":Pe}}),D=y?Xr("popover",void 0,ne,e):void 0;M.setBodyInstance({syncPosition:_}),nn(()=>{M.setBodyInstance(null)}),tn(Kt(e,"show"),ue=>{e.animated||(ue?E.value=!0:E.value=!1)});function _(){var ue;(ue=T.value)===null||ue===void 0||ue.syncPosition()}function J(ue){e.trigger==="hover"&&e.keepAliveOnHover&&e.show&&M.handleMouseEnter(ue)}function G(ue){e.trigger==="hover"&&e.keepAliveOnHover&&M.handleMouseLeave(ue)}function z(ue){e.trigger==="hover"&&!Y().contains(Jn(ue))&&M.handleMouseMoveOutside(ue)}function he(ue){(e.trigger==="click"&&!Y().contains(Jn(ue))||e.onClickoutside)&&M.handleClickOutside(ue)}function Y(){return M.getTriggerElement()}hn(ks,C),hn(Rs,null),hn(Ds,null);function le(){if(D==null||D.onRender(),!(e.displayDirective==="show"||e.show||e.animated&&$.value))return null;let ge;const Ae=M.internalRenderBodyRef.value,{value:be}=f;if(Ae)ge=Ae([`${be}-popover-shared`,D==null?void 0:D.themeClass.value,e.overlap&&`${be}-popover-shared--overlap`,e.showArrow&&`${be}-popover-shared--show-arrow`,e.arrowPointToCenter&&`${be}-popover-shared--center-arrow`],C,j.value,J,G);else{const{value:Pe}=M.extraClassRef,{internalTrapFocus:Be}=e,Te=!wi(i.header)||!wi(i.footer),pe=()=>{var ke;const U=Te?Q(Pt,null,pr(i.header,n=>n?Q("div",{class:`${be}-popover__header`,style:e.headerStyle},n):null),pr(i.default,n=>n?Q("div",{class:`${be}-popover__content`,style:e.contentStyle},i):null),pr(i.footer,n=>n?Q("div",{class:`${be}-popover__footer`,style:e.footerStyle},n):null)):e.scrollable?(ke=i.default)===null||ke===void 0?void 0:ke.call(i):Q("div",{class:`${be}-popover__content`,style:e.contentStyle},i),s=e.scrollable?Q(ep,{contentClass:Te?void 0:`${be}-popover__content`,contentStyle:Te?void 0:e.contentStyle},{default:()=>U}):U,l=e.showArrow?op({arrowStyle:e.arrowStyle,clsPrefix:be}):null;return[s,l]};ge=Q("div",En({class:[`${be}-popover`,`${be}-popover-shared`,D==null?void 0:D.themeClass.value,Pe.map(ke=>`${be}-${ke}`),{[`${be}-popover--scrollable`]:e.scrollable,[`${be}-popover--show-header-or-footer`]:Te,[`${be}-popover--raw`]:e.raw,[`${be}-popover-shared--overlap`]:e.overlap,[`${be}-popover-shared--show-arrow`]:e.showArrow,[`${be}-popover-shared--center-arrow`]:e.arrowPointToCenter}],ref:C,style:j.value,onKeydown:M.handleKeydown,onMouseenter:J,onMouseleave:G},a),Be?Q(Yu,{active:e.show,autoFocus:!0},{default:pe}):pe())}return Xn(ge,re.value)}return{displayed:$,namespace:d,isMounted:M.isMountedRef,zIndex:M.zIndexRef,followerRef:T,adjustedTo:Yn(e),followerEnabled:E,renderContentNode:le}},render(){return Q(Ps,{ref:"followerRef",zIndex:this.zIndex,show:this.show,enabled:this.followerEnabled,to:this.adjustedTo,x:this.x,y:this.y,flip:this.flip,placement:this.placement,containerClass:this.namespace,overlap:this.overlap,width:this.width==="trigger"?"target":void 0,teleportDisabled:this.adjustedTo===Yn.tdkey},{default:()=>this.animated?Q(fn,{name:"popover-transition",appear:this.isMounted,onEnter:()=>{this.followerEnabled=!0},onAfterLeave:()=>{var e;(e=this.internalOnAfterLeave)===null||e===void 0||e.call(this),this.followerEnabled=!1,this.displayed=!1}},{default:this.renderContentNode}):this.renderContentNode()})}}),sp=Object.keys(pa),lp={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};function up(e,i,a){lp[i].forEach(d=>{e.props?e.props=Object.assign({},e.props):e.props={};const f=e.props[d],y=a[d];f?e.props[d]=(...b)=>{f(...b),y(...b)}:e.props[d]=y})}const va={show:{type:Boolean,default:void 0},defaultShow:Boolean,showArrow:{type:Boolean,default:!0},trigger:{type:String,default:"hover"},delay:{type:Number,default:100},duration:{type:Number,default:100},raw:Boolean,placement:{type:String,default:"top"},x:Number,y:Number,arrowPointToCenter:Boolean,disabled:Boolean,getDisabled:Function,displayDirective:{type:String,default:"if"},arrowStyle:[String,Object],flip:{type:Boolean,default:!0},animated:{type:Boolean,default:!0},width:{type:[Number,String],default:void 0},overlap:Boolean,keepAliveOnHover:{type:Boolean,default:!0},zIndex:Number,to:Yn.propTo,scrollable:Boolean,contentStyle:[Object,String],headerStyle:[Object,String],footerStyle:[Object,String],onClickoutside:Function,"onUpdate:show":[Function,Array],onUpdateShow:[Function,Array],internalDeactivateImmediately:Boolean,internalSyncTargetWithParent:Boolean,internalInheritedEventHandlers:{type:Array,default:()=>[]},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:()=>[]},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},cp=Object.assign(Object.assign(Object.assign({},Bt.props),va),{internalOnAfterLeave:Function,internalRenderBody:Function}),dp=st({name:"Popover",inheritAttrs:!1,props:cp,__popover__:!0,setup(e){Wt(()=>{e.maxWidth!==void 0&&An("popover","`max-width` is deprecated, please use `style` instead."),e.minWidth!==void 0&&An("popover","`min-width` is deprecated, please use `style` instead."),e.arrow!==void 0&&An("popover","`arrow` is deprecated, please use `showArrow` instead."),e.onHide!==void 0&&An("popover","`on-hide` is deprecated, please use `on-update:show` instead."),e.onShow!==void 0&&An("popover","`on-show` is deprecated, please use `on-update:show` instead.")});const i=mo(),a=Ce(null),d=Ue(()=>e.show),f=Ce(e.defaultShow),y=Ns(d,f),b=bi(()=>e.disabled?!1:y.value),T=()=>{if(e.disabled)return!0;const{getDisabled:pe}=e;return!!(pe!=null&&pe())},M=()=>T()?!1:y.value,C=wu(e,["arrow","showArrow"]),E=Ue(()=>e.overlap?!1:C.value);let $=null;const re=Ce(null),j=Ce(null),ne=bi(()=>e.x!==void 0&&e.y!==void 0);function D(pe){const{"onUpdate:show":ke,onUpdateShow:U,onShow:s,onHide:l}=e;f.value=pe,ke&&Ln(ke,pe),U&&Ln(U,pe),pe&&s&&Ln(s,!0),pe&&l&&Ln(l,!1)}function _(){$&&$.syncPosition()}function J(){const{value:pe}=re;pe&&(window.clearTimeout(pe),re.value=null)}function G(){const{value:pe}=j;pe&&(window.clearTimeout(pe),j.value=null)}function z(){const pe=T();if(e.trigger==="focus"&&!pe){if(M())return;D(!0)}}function he(){const pe=T();if(e.trigger==="focus"&&!pe){if(!M())return;D(!1)}}function Y(){const pe=T();if(e.trigger==="hover"&&!pe){if(G(),re.value!==null||M())return;const ke=()=>{D(!0),re.value=null},{delay:U}=e;U===0?ke():re.value=window.setTimeout(ke,U)}}function le(){const pe=T();if(e.trigger==="hover"&&!pe){if(J(),j.value!==null||!M())return;const ke=()=>{D(!1),j.value=null},{duration:U}=e;U===0?ke():j.value=window.setTimeout(ke,U)}}function ue(){le()}function ge(pe){var ke;M()&&(e.trigger==="click"&&(J(),G(),D(!1)),(ke=e.onClickoutside)===null||ke===void 0||ke.call(e,pe))}function Ae(){if(e.trigger==="click"&&!T()){J(),G();const pe=!M();D(pe)}}function be(pe){e.internalTrapFocus&&pe.key==="Escape"&&(J(),G(),D(!1))}function Pe(pe){f.value=pe}function Be(){var pe;return(pe=a.value)===null||pe===void 0?void 0:pe.targetRef}function Te(pe){$=pe}return hn("NPopover",{getTriggerElement:Be,handleKeydown:be,handleMouseEnter:Y,handleMouseLeave:le,handleClickOutside:ge,handleMouseMoveOutside:ue,setBodyInstance:Te,positionManuallyRef:ne,isMountedRef:i,zIndexRef:Kt(e,"zIndex"),extraClassRef:Kt(e,"internalExtraClass"),internalRenderBodyRef:Kt(e,"internalRenderBody")}),Wt(()=>{y.value&&T()&&D(!1)}),{binderInstRef:a,positionManually:ne,mergedShowConsideringDisabledProp:b,uncontrolledShow:f,mergedShowArrow:E,getMergedShow:M,setShow:Pe,handleClick:Ae,handleMouseEnter:Y,handleMouseLeave:le,handleFocus:z,handleBlur:he,syncPosition:_}},render(){var e;const{positionManually:i,$slots:a}=this;let d,f=!1;if(!i&&(a.activator?d=Ei(a,"activator"):d=Ei(a,"trigger"),d)){d=rs(d),d=d.type===is?Q("span",[d]):d;const y={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(!((e=d.type)===null||e===void 0)&&e.__popover__)f=!0,d.props||(d.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),d.props.internalSyncTargetWithParent=!0,d.props.internalInheritedEventHandlers?d.props.internalInheritedEventHandlers=[y,...d.props.internalInheritedEventHandlers]:d.props.internalInheritedEventHandlers=[y];else{const{internalInheritedEventHandlers:b}=this,T=[y,...b],M={onBlur:C=>{T.forEach(E=>{E.onBlur(C)})},onFocus:C=>{T.forEach(E=>{E.onFocus(C)})},onClick:C=>{T.forEach(E=>{E.onClick(C)})},onMouseenter:C=>{T.forEach(E=>{E.onMouseenter(C)})},onMouseleave:C=>{T.forEach(E=>{E.onMouseleave(C)})}};up(d,b?"nested":i?"manual":this.trigger,M)}}return Q(Ls,{ref:"binderInstRef",syncTarget:!f,syncTargetWithParent:this.internalSyncTargetWithParent},{default:()=>{this.mergedShowConsideringDisabledProp;const y=this.getMergedShow();return[this.internalTrapFocus&&y?Xn(Q("div",{style:{position:"fixed",inset:0}}),[[yo,{enabled:y,zIndex:this.zIndex}]]):null,i?null:Q(_s,null,{default:()=>d}),Q(ap,pu(this.$props,sp,Object.assign(Object.assign({},this.$attrs),{showArrow:this.mergedShowArrow,show:y})),{default:()=>{var b,T;return(T=(b=this.$slots).default)===null||T===void 0?void 0:T.call(b)},header:()=>{var b,T;return(T=(b=this.$slots).header)===null||T===void 0?void 0:T.call(b)},footer:()=>{var b,T;return(T=(b=this.$slots).footer)===null||T===void 0?void 0:T.call(b)}})]}})}}),fp=yu&&"loading"in document.createElement("img"),hp=(e={})=>{var i;const{root:a=null}=e;return{hash:`${e.rootMargin||"0px 0px 0px 0px"}-${Array.isArray(e.threshold)?e.threshold.join(","):(i=e.threshold)!==null&&i!==void 0?i:"0"}`,options:Object.assign(Object.assign({},e),{root:(typeof a=="string"?document.querySelector(a):a)||document.documentElement})}},Sr=new WeakMap,Cr=new WeakMap,Tr=new WeakMap,pp=(e,i,a)=>{if(!e)return()=>{};const d=hp(i),{root:f}=d.options;let y;const b=Sr.get(f);b?y=b:(y=new Map,Sr.set(f,y));let T,M;y.has(d.hash)?(M=y.get(d.hash),M[1].has(e)||(T=M[0],M[1].add(e),T.observe(e))):(T=new IntersectionObserver($=>{$.forEach(re=>{if(re.isIntersecting){const j=Cr.get(re.target),ne=Tr.get(re.target);j&&j(),ne&&(ne.value=!0)}})},d.options),T.observe(e),M=[T,new Set([e])],y.set(d.hash,M));let C=!1;const E=()=>{C||(Cr.delete(e),Tr.delete(e),C=!0,M[1].has(e)&&(M[0].unobserve(e),M[1].delete(e)),M[1].size<=0&&y.delete(d.hash),y.size||Sr.delete(f))};return Cr.set(e,E),Tr.set(e,a),E},vp={padding:"8px 14px"},gp=e=>{const{borderRadius:i,boxShadow2:a,baseColor:d}=e;return Object.assign(Object.assign({},vp),{borderRadius:i,boxShadow:a,color:Bs(d,"rgba(0, 0, 0, .85)"),textColor:d})},mp=wo({name:"Tooltip",common:nr,peers:{Popover:ha},self:gp}),ga=mp,yp=Object.assign(Object.assign({},va),Bt.props),wp=st({name:"Tooltip",props:yp,__popover__:!0,setup(e){const{mergedClsPrefixRef:i}=bn(e),a=Bt("Tooltip","-tooltip",void 0,ga,e,i),d=Ce(null);return Object.assign(Object.assign({},{syncPosition(){d.value.syncPosition()},setShow(y){d.value.setShow(y)}}),{popoverRef:d,mergedTheme:a,popoverThemeOverrides:Ue(()=>a.value.self)})},render(){const{mergedTheme:e,internalExtraClass:i}=this;return Q(dp,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)}}),ni=Object.assign(Object.assign({},Bt.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),ma=bo("n-image");function bp(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}const xp=wo({name:"Image",common:nr,peers:{Tooltip:ga},self:bp}),Ap=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"})),Sp=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"})),Cp=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"})),Tp=Ve([Ve("body >",[Qe("image-container","position: fixed;")]),Qe("image-preview-container",` position: fixed; left: 0; right: 0; top: 0; bottom: 0; display: flex; `),Qe("image-preview-overlay",` z-index: -1; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: rgba(0, 0, 0, .3); `,[jr()]),Qe("image-preview-toolbar",` z-index: 1; position: absolute; left: 50%; transform: translateX(-50%); border-radius: var(--n-toolbar-border-radius); height: 48px; bottom: 40px; padding: 0 12px; background: var(--n-toolbar-color); box-shadow: var(--n-toolbar-box-shadow); color: var(--n-toolbar-icon-color); transition: color .3s var(--n-bezier); display: flex; align-items: center; `,[Qe("base-icon",` padding: 0 8px; font-size: 28px; cursor: pointer; `),jr()]),Qe("image-preview-wrapper",` position: absolute; left: 0; right: 0; top: 0; bottom: 0; display: flex; pointer-events: none; `,[Fs()]),Qe("image-preview",` user-select: none; -webkit-user-select: none; pointer-events: all; margin: auto; max-height: calc(100vh - 32px); max-width: calc(100vw - 32px); transition: transform .3s var(--n-bezier); `),Qe("image",` display: inline-flex; max-height: 100%; max-width: 100%; `,[$n("preview-disabled",` cursor: pointer; `),Ve("img",` border-radius: inherit; `)])]),Wn=32,ya=st({name:"ImagePreview",props:Object.assign(Object.assign({},ni),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup(e){const i=Bt("Image","-image",Tp,xp,e,Kt(e,"clsPrefix"));let a=null;const d=Ce(null),f=Ce(null),y=Ce(void 0),b=Ce(!1),T=Ce(!1),{localeRef:M}=zh("Image");function C(){const{value:K}=f;if(!a||!K)return;const{style:me}=K,ce=a.getBoundingClientRect(),Ee=ce.left+ce.width/2,_e=ce.top+ce.height/2;me.transformOrigin=`${Ee}px ${_e}px`}function E(K){var me,ce;switch(K.key){case" ":K.preventDefault();break;case"ArrowLeft":(me=e.onPrev)===null||me===void 0||me.call(e);break;case"ArrowRight":(ce=e.onNext)===null||ce===void 0||ce.call(e);break;case"Escape":ve();break}}tn(b,K=>{K?gt("keydown",document,E):ct("keydown",document,E)}),nn(()=>{ct("keydown",document,E)});let $=0,re=0,j=0,ne=0,D=0,_=0,J=0,G=0,z=!1;function he(K){const{clientX:me,clientY:ce}=K;j=me-$,ne=ce-re,zs(ee)}function Y(K){const{mouseUpClientX:me,mouseUpClientY:ce,mouseDownClientX:Ee,mouseDownClientY:_e}=K,Xe=Ee-me,Ye=_e-ce,rt=`vertical${Ye>0?"Top":"Bottom"}`,et=`horizontal${Xe>0?"Left":"Right"}`;return{moveVerticalDirection:rt,moveHorizontalDirection:et,deltaHorizontal:Xe,deltaVertical:Ye}}function le(K){const{value:me}=d;if(!me)return{offsetX:0,offsetY:0};const ce=me.getBoundingClientRect(),{moveVerticalDirection:Ee,moveHorizontalDirection:_e,deltaHorizontal:Xe,deltaVertical:Ye}=K||{};let rt=0,et=0;return ce.width<=window.innerWidth?rt=0:ce.left>0?rt=(ce.width-window.innerWidth)/2:ce.right0?et=(ce.height-window.innerHeight)/2:ce.bottom.5){const K=Te;Be-=1,Te=Math.max(.5,Math.pow(Pe,Be));const me=K-Te;ee(!1);const ce=le();Te+=me,ee(!1),Te-=me,j=ce.offsetX,ne=ce.offsetY,ee()}}function ee(K=!0){var me;const{value:ce}=d;if(!ce)return;const{style:Ee}=ce,_e=os((me=ge==null?void 0:ge.previewedImgPropsRef.value)===null||me===void 0?void 0:me.style);let Xe="";if(typeof _e=="string")Xe=_e+";";else for(const rt in _e)Xe+=`${Gf(rt)}: ${_e[rt]};`;const Ye=`transform-origin: center; transform: translateX(${j}px) translateY(${ne}px) rotate(${pe}deg) scale(${Te});`;z?Ee.cssText=Xe+"cursor: grabbing; transition: none;"+Ye:Ee.cssText=Xe+"cursor: grab;"+Ye+(K?"":"transition: none;"),K||ce.offsetHeight}function ve(){b.value=!b.value,T.value=!0}function Re(){Te=x(),Be=Math.ceil(Math.log(Te)/Math.log(Pe)),j=0,ne=0,ee()}const Ne={setPreviewSrc:K=>{y.value=K},setThumbnailEl:K=>{a=K},toggleShow:ve};function Ie(K,me){if(e.showToolbarTooltip){const{value:ce}=i;return Q(wp,{to:!1,theme:ce.peers.Tooltip,themeOverrides:ce.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:()=>M.value[me],trigger:()=>K})}else return K}const lt=Ue(()=>{const{common:{cubicBezierEaseInOut:K},self:{toolbarIconColor:me,toolbarBorderRadius:ce,toolbarBoxShadow:Ee,toolbarColor:_e}}=i.value;return{"--n-bezier":K,"--n-toolbar-icon-color":me,"--n-toolbar-color":_e,"--n-toolbar-border-radius":ce,"--n-toolbar-box-shadow":Ee}}),{inlineThemeDisabled:nt}=bn(),He=nt?Xr("image-preview",void 0,lt,e):void 0;return Object.assign({previewRef:d,previewWrapperRef:f,previewSrc:y,show:b,appear:mo(),displayed:T,previewedImgProps:ge==null?void 0:ge.previewedImgPropsRef,handleWheel(K){K.preventDefault()},handlePreviewMousedown:Ae,handlePreviewDblclick:be,syncTransformOrigin:C,handleAfterLeave:()=>{ke(),pe=0,T.value=!1},handleDragStart:K=>{var me,ce;(ce=(me=ge==null?void 0:ge.previewedImgPropsRef.value)===null||me===void 0?void 0:me.onDragstart)===null||ce===void 0||ce.call(me,K),K.preventDefault()},zoomIn:L,zoomOut:ae,rotateCounterclockwise:l,rotateClockwise:n,handleSwitchPrev:U,handleSwitchNext:s,withTooltip:Ie,resizeToOrignalImageSize:Re,cssVars:nt?void 0:lt,themeClass:He==null?void 0:He.themeClass,onRender:He==null?void 0:He.onRender},Ne)},render(){var e,i;const{clsPrefix:a}=this;return Q(Pt,null,(i=(e=this.$slots).default)===null||i===void 0?void 0:i.call(e),Q(Is,{show:this.show},{default:()=>{var d;return this.show||this.displayed?((d=this.onRender)===null||d===void 0||d.call(this),Xn(Q("div",{class:[`${a}-image-preview-container`,this.themeClass],style:this.cssVars,onWheel:this.handleWheel},Q(fn,{name:"fade-in-transition",appear:this.appear},{default:()=>this.show?Q("div",{class:`${a}-image-preview-overlay`,onClick:this.toggleShow}):null}),this.showToolbar?Q(fn,{name:"fade-in-transition",appear:this.appear},{default:()=>{if(!this.show)return null;const{withTooltip:f}=this;return Q("div",{class:`${a}-image-preview-toolbar`},this.onPrev?Q(Pt,null,f(Q(jt,{clsPrefix:a,onClick:this.handleSwitchPrev},{default:()=>Ap}),"tipPrevious"),f(Q(jt,{clsPrefix:a,onClick:this.handleSwitchNext},{default:()=>Sp}),"tipNext")):null,f(Q(jt,{clsPrefix:a,onClick:this.rotateCounterclockwise},{default:()=>Q($h,null)}),"tipCounterclockwise"),f(Q(jt,{clsPrefix:a,onClick:this.rotateClockwise},{default:()=>Q(Hh,null)}),"tipClockwise"),f(Q(jt,{clsPrefix:a,onClick:this.resizeToOrignalImageSize},{default:()=>Q(Xh,null)}),"tipOriginalSize"),f(Q(jt,{clsPrefix:a,onClick:this.zoomOut},{default:()=>Q(Uh,null)}),"tipZoomOut"),f(Q(jt,{clsPrefix:a,onClick:this.zoomIn},{default:()=>Q(qh,null)}),"tipZoomIn"),f(Q(jt,{clsPrefix:a,onClick:this.toggleShow},{default:()=>Cp}),"tipClose"))}}):null,Q(fn,{name:"fade-in-scale-up-transition",onAfterLeave:this.handleAfterLeave,appear:this.appear,onEnter:this.syncTransformOrigin,onBeforeLeave:this.syncTransformOrigin},{default:()=>{const{previewedImgProps:f={}}=this;return Xn(Q("div",{class:`${a}-image-preview-wrapper`,ref:"previewWrapperRef"},Q("img",Object.assign({},f,{draggable:!1,onMousedown:this.handlePreviewMousedown,onDblclick:this.handlePreviewDblclick,class:[`${a}-image-preview`,f.class],key:this.previewSrc,src:this.previewSrc,ref:"previewRef",onDragstart:this.handleDragStart}))),[[ho,this.show]])}})),[[yo,{enabled:this.show}]])):null}}))}}),wa=bo("n-image-group"),Mp=ni;st({name:"ImageGroup",props:Mp,setup(e){let i;const{mergedClsPrefixRef:a}=bn(e),d=`c${Po()}`,f=co(),y=M=>{var C;i=M,(C=T.value)===null||C===void 0||C.setPreviewSrc(M)};function b(M){if(!(f!=null&&f.proxy))return;const E=f.proxy.$el.parentElement.querySelectorAll(`[data-group-id=${d}]:not([data-error=true])`);if(!E.length)return;const $=Array.from(E).findIndex(re=>re.dataset.previewSrc===i);~$?y(E[($+M+E.length)%E.length].dataset.previewSrc):y(E[0].dataset.previewSrc)}hn(wa,{mergedClsPrefixRef:a,setPreviewSrc:y,setThumbnailEl:M=>{var C;(C=T.value)===null||C===void 0||C.setThumbnailEl(M)},toggleShow:()=>{var M;(M=T.value)===null||M===void 0||M.toggleShow()},groupId:d});const T=Ce(null);return{mergedClsPrefix:a,previewInstRef:T,next:()=>{b(1)},prev:()=>{b(-1)}}},render(){return Q(ya,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:this.mergedClsPrefix,ref:"previewInstRef",onPrev:this.prev,onNext:this.next,showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},this.$slots)}});const Ep=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},ni),Op=st({name:"Image",props:Ep,inheritAttrs:!1,setup(e){const i=Ce(null),a=Ce(!1),d=Ce(null),f=yn(wa,null),{mergedClsPrefixRef:y}=f||bn(e),b={click:()=>{if(e.previewDisabled||a.value)return;const C=e.previewSrc||e.src;if(f){f.setPreviewSrc(C),f.setThumbnailEl(i.value),f.toggleShow();return}const{value:E}=d;E&&(E.setPreviewSrc(C),E.setThumbnailEl(i.value),E.toggleShow())}},T=Ce(!e.lazy);Ot(()=>{var C;(C=i.value)===null||C===void 0||C.setAttribute("data-group-id",(f==null?void 0:f.groupId)||"")}),Ot(()=>{if(e.lazy&&e.intersectionObserverOptions){let C;const E=Wt(()=>{C==null||C(),C=void 0,C=pp(i.value,e.intersectionObserverOptions,T)});nn(()=>{E(),C==null||C()})}}),Wt(()=>{var C;e.src,(C=e.imgProps)===null||C===void 0||C.src,a.value=!1});const M=Ce(!1);return hn(ma,{previewedImgPropsRef:Kt(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:y,groupId:f==null?void 0:f.groupId,previewInstRef:d,imageRef:i,showError:a,shouldStartLoading:T,loaded:M,mergedOnClick:C=>{var E,$;b.click(),($=(E=e.imgProps)===null||E===void 0?void 0:E.onClick)===null||$===void 0||$.call(E,C)},mergedOnError:C=>{if(!T.value)return;a.value=!0;const{onError:E,imgProps:{onError:$}={}}=e;E==null||E(C),$==null||$(C)},mergedOnLoad:C=>{const{onLoad:E,imgProps:{onLoad:$}={}}=e;E==null||E(C),$==null||$(C),M.value=!0}},b)},render(){var e,i;const{mergedClsPrefix:a,imgProps:d={},loaded:f,$attrs:y,lazy:b}=this,T=(i=(e=this.$slots).placeholder)===null||i===void 0?void 0:i.call(e),M=this.src||d.src,C=Q("img",Object.assign(Object.assign({},d),{ref:"imageRef",width:this.width||d.width,height:this.height||d.height,src:this.showError?this.fallbackSrc:b&&this.intersectionObserverOptions?this.shouldStartLoading?M:void 0:M,alt:this.alt||d.alt,"aria-label":this.alt||d.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:fp&&b&&!this.intersectionObserverOptions?"lazy":"eager",style:[d.style||"",T&&!f?{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({},y,{role:"none",class:[y.class,`${a}-image`,(this.previewDisabled||this.showError)&&`${a}-image--preview-disabled`]}),this.groupId?C:Q(ya,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:a,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:()=>C}),!f&&T)}});const Pp="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",kp="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",Rp=st({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup(e){return()=>te("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[te("img",{class:"favoritIcon",src:e.isFavorite?kp:Pp},null)])}}),Dp="_book_1xtvx_1",Np="_back_1xtvx_11",_p="_bookHide_1xtvx_16",Lp="_wrap_1xtvx_36",Bp="_wrapItem_1xtvx_53",Fp="_item_1xtvx_60",Ip="_des_1xtvx_69",zp="_icon_1xtvx_74",jp="_last_1xtvx_79",xt={book:Dp,back:Np,bookHide:_p,wrap:Lp,wrapItem:Bp,item:Fp,des:Ip,icon:zp,last:jp},Wp="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAKAAAAAB65masAAAFDElEQVRYCcWZy24cRRSGT3XPxbHj+MIlwXLCJkJKkLJmzSICicfIhi0Pwg55k9dASF6AxAOwQAIhgRRkQpwQRMaZxjOeme7i/8+pmqtlVwMzLqlVl66u+uo/p0731DiZS/6s+754eYTmhyL+DsrX57r892obQzon0nkmUlUF5jnCoIcizcfujXd+mJ4AvSx571tyVnyO2qfifRbbl5K3NwCIKU5eiJSDyRTOVagcyM7+Z845vaGAAe4rgH046b3EUuuaSNYQOX0l0oeAC8l9Lbv7HxPSlKJyq4IjTFkaUgtKnpsg1KuntKa44HPfL92sMyAwnJoZefGXyODvmbtaobl940GmG2LZPrcwvZ/43saOSKO10MMEGz6iibFbryCNsAfKke3mzbdN0UWMh873X3eXEkoWJzu/pYkNk2PDMJVDmPtUhPAV/dQVzvdeQ+8rTjlMTDMzNs6lgD7XmlTFukZ9XEPx1UA8Vu0rlGG2CkpU2KllWUnlR8i9lJWXUVXJta1bcuOt27MzMBbyypsWfhgjA2w64M9firz8EdIT6gwvAEzqGlJlTSmlgXLTymgrxcoVy2zHpX2Rd4tiETDi0sS8plIiINT67Vu8kezJyuU6KQHsAgQgWfaA8Ch7vWftpfYnLPr4RTNO8SwUEwHDcxjbS6Yg40mpngAYbwYqWY3LOYC4kLgIgybkN0/gBhjpvd1cbm/Zu2KBLDSkA3oPVUy5aC6aNyrH3ANyUg/3CA0ohScs6s8LvnKxWF/+j4CAU6WQm/kAS7W0DhiFoGoRCPcIHKAM3u4HcZKyZAVpLvoXFYgKTnKCEsZAI5T2jSaP9/F8nXSxA0yNZGAThQyIZm2JW9sOgKauKQ3goGD0TbZzoXVS8nI4me5QNRkmUvM2ZOv+R9Lc2pM+Pj47v/8kvdPClEY/6xNVxe6Gz3KMGA1SQNMBaVoqgJybw8ydS7Z2Q+dZ296TW7hOOy/kz+MnMuz1gsnNT6m4PV9PwXQTB3PpBlFQbgKoIbNxbX37pty594G8uXcXiyDUrG+qginShT7JCkaTTmKbmXmObzx13myrv9mOByh8T1Vcjg+6MDjVMBNz09Cn5hXswwf/eP5UOt3uJCbyGaqpeT0TJyvICUwNvnttNzIOjgZ9yVvrctYr5OXxr9I5OVHTR19lHtWPz49lTijUADQwew/bjib08S/fSWN9Wwp8BNiHQVBZfS/ERy0HUCyqTkoHxMDxy8XMFXwKn1T9AuZE+Bj72XRflmlaQsIlqGidlNxbgy4m01eWmtvim4Yb1OMrzlwhqm1QsQ9dgs/XScm9LVzQfAYWYxpNHu9FECo53r1UEFf0Qy6gTkruHb9UxmCMi/wwBTBhDCCYE/W4EDUv6hGept5slfiSEXn3kk8tLiQZUFWCD2l4oYr0qRjbUGbIYZuBTvwxgkUX4InCJ3eT3w/4+kxMa7v7AAgbI4AZ1JRqhOSlChps3DhqZlUyWRMlq/2rzuPnYIWdWyIv8SMo/hjiacYQZsMt5E6GVYYfSZkMcA418DnacuQNubnh5N7O7O+OizSqDXjRYMu4l+Fdet7x0jLmqj8m2OCD7qj+k6t6wh1xkxyuarp/Mc/hFR2/JaDy+M3Jg8y1N3kmfJDwyKq7HJBNP4dXfgR82VIdjoDb1ydHwHpgjQYc2HyBy35VXzbIMu6rWcEQ4DjF7A8KNKzkb4jpxWmY00hyCJrHweXGPf4B6HyHtp8LqjYAAAAASUVORK5CYII=",Hp=st({name:"courseware-detail",emits:["close"],setup(e,{emit:i}){const a=On({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Yt("courseware-detail1.png"),handStyle:{top:"-0.4rem",left:"0.98rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.3rem",left:"2.2rem"},btnsStyle:{top:"1.5rem",left:"3.5rem"}}],step:0}),d=Ce(!1),f=localStorage.getItem("guideInfo");f&&JSON.parse(f).coursewareDetail?d.value=!1:d.value=!0;const y=()=>{console.log(`coursewareDetail-${a.step}`);const C=document.getElementById(`coursewareDetail-${a.step}`);if(C){const E=C.getBoundingClientRect();a.box={left:E.x+"px",top:E.y+"px",width:E.width+"px",height:E.height+"px"}}else T()};Ot(()=>{y(),window.addEventListener("resize",b)});const b=()=>{y()};po(()=>{window.removeEventListener("resize",b)});const T=()=>{if(a.step>=2){M();return}a.step=a.step+1,y()},M=()=>{let C=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;C?C.coursewareDetail=!0:C={coursewareDetail:!0},localStorage.setItem("guideInfo",JSON.stringify(C)),d.value=!1};return()=>te(Wr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:d.value,"onUpdate:show":C=>d.value=C},{default:()=>[te("div",{class:Ze.content,onClick:()=>T()},[a.step!=a.steps.length-1&&te("div",{class:Ze.backBtn,onClick:C=>{C.stopPropagation(),M()}},[vt("跳过")]),te("div",{class:Ze.box,style:a.box,id:`modeType-${a.step}`},[a.steps.map((C,E)=>{var $,re;return te("div",{onClick:j=>j.stopPropagation(),class:Ze.item,style:{display:E===a.step?"":"none",left:`${($=C.eleRect)==null?void 0:$.left}px`,top:`${(re=C.eleRect)==null?void 0:re.top}px`}},[te("img",{class:Ze.img,style:C.imgStyle,src:C.img},null),te("img",{class:Ze.iconHead,style:C.handStyle,src:Yt("indexDot.png")},null),te("div",{class:Ze.btns,style:C.btnsStyle},[a.step+1==a.steps.length?te(Pt,null,[te(pn,{class:[Ze.btn,Ze.endBtn],round:!0,type:"primary",onClick:()=>M()},{default:()=>[vt("完成")]})]):te(pn,{class:Ze.btn,round:!0,type:"primary",onClick:()=>T()},{default:()=>[vt("下一步 ("),a.step+1,vt("/"),a.steps.length,vt(")")]})])])})])])]})}}),$p=st({name:"the-book",props:{bookData:{type:Object,default:()=>({})},tab:{type:String,default:""},show:{type:Boolean,default:!1},rect:{type:Object,default:()=>({})}},emits:["close"],setup(e,{emit:i}){const a=vo(),d=On({show:!1,width:0,height:0,transform:"",list:[],lastTime:localStorage.getItem("lastTime")}),f=Ce(!1),y=async()=>{console.log("初始化完成")};let b=null,T=null;const M=()=>{b=window.$("#flipbook");const j=document.body.clientHeight*.8;d.height=j,d.width=j*(210/297)*2,b.turn({autoCenter:!0,duration:1e3,acceleration:!0,elevation:50,width:d.width,height:d.height,gradients:!0})},C=()=>{const j=document.querySelector(".bookWrap");if(j){const ne=j.getBoundingClientRect(),D=e.rect.width/(ne.width/2),_=e.rect.height/ne.height,J=(ne.width/2*(D-1)/2+e.rect.x-ne.x-ne.width/4)/D,G=(ne.height*(_-1)/2+e.rect.y-ne.y)/_,z=`scale3d(${D}, ${_}, 1) translate(${J}px, ${G}px)`;j.style.transform=d.transform=z,j.style.transition="transform 0s",Mr(()=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{j.style.transition="transform 1s",j.style.transform="",d.show=!0,T=setTimeout(()=>{b.turn("page",2)},500),setTimeout(()=>{f.value=!0},1500)})})})}},E=()=>{clearTimeout(T);const j=document.querySelector(".bookWrap");b.turn("page",1),j&&(j.style.transform=d.transform),i("close"),setTimeout(()=>{j.style.transition="",j.style.transform="",d.show=!1,d.list=[]},1e3)};Ot(async()=>{await y(),as("webViewOnResume",()=>{d.lastTime=localStorage.getItem("lastTime")})});const $=()=>{var _;if(!((_=e.bookData)!=null&&_.lessonList))return;const j=Math.floor((document.body.clientHeight*.8-40)/50);console.log("🚀 ~ step:",j);const ne=[];let D=[];for(let J=0;J=j?(ne.push([...D]),D=[{name:G.name}]):D.push({name:G.name});for(let z=0;z=j?(ne.push([...D]),D=[G.knowledgeList[z]]):D.push(G.knowledgeList[z])}D.length&&ne.push(D),d.list=ne};tn(()=>e.show,()=>{e.show&&($(),Mr(()=>{M(),requestAnimationFrame(()=>{C()})}))});const re=j=>{if(j.id){if(!j.containMaterial){ss("暂无资源");return}localStorage.setItem("lastTime",j.id);const ne=fs.stringify({id:j.id,name:j.name,tab:e.tab}),D=location.origin+location.pathname+"#/courseware-play?"+ne;console.log("🚀 ~ url:",D),a.push({path:"/courseware-play",query:{id:j.id,name:j.name,tab:e.tab}})}};return()=>te("div",{class:[xt.book,d.show?"":xt.bookHide]},[te("div",{class:xt.back,onClick:E},[te("img",{src:Oo},null)]),te("div",{class:"bookWrap",style:{width:d.width+"px"}},[!!d.list.length&&te("div",{id:"flipbook",class:[d.show&&"animated"]},[te("div",{class:"page"},[te("img",{style:"width: 100%; height: 100%; object-fit: cover;",src:e.bookData.coverImg},null)]),d.list.map(j=>te("div",{class:"page"},[te("div",{class:xt.wrap},[te("div",{class:xt.wrapItem},[j.map((ne,D)=>te(Pt,null,[te("div",{class:[xt.item,ne.id&&xt.des],onTouchstart:_=>{_.stopPropagation()},onClick:_=>{_.stopPropagation(),re(ne)}},[ne.id?te("img",{id:D==1?"coursewareDetail-0":"",class:xt.icon,src:Wp},null):null,te("div",{class:xt.name,style:{lineHeight:"20Px"}},[ne.name,d.lastTime===ne.id&&te("span",{class:xt.last},[vt("上次观看")])])])]))])])])),d.list.length%2===1&&te("div",{class:"page",style:{pointerEvents:"none"}},[te("div",{class:xt.wrap},[te("div",{class:xt.wrapItem},null)])])])]),f.value?te(Hp,null,null):null])}}),qp=st({name:"courseware-list",emits:["close"],setup(e,{emit:i}){const a=On({box:{},show:!1,steps:[{ele:"",eleRect:{},img:Yt("courseware-list1.png"),handStyle:{top:"1.5rem",left:"3.5rem",transform:"rotate(-90deg)"},imgStyle:{top:".7rem",left:"5rem"},btnsStyle:{top:"3.5rem",left:"6.2rem"},boxStyle:{},eleRectPadding:{left:-4,top:-4,width:-8,height:-8}},{ele:"",img:Yt("courseware-list2.png"),handStyle:{top:"-.25rem",left:"1.38rem",transform:"rotate(-90deg)"},imgStyle:{top:"-1.2rem",left:"2.4rem"},btnsStyle:{top:"1.6rem",left:"3.6rem"},eleRectPadding:{left:4,top:4,width:8,height:8}},{ele:"",img:Yt("courseware-list3.png"),handStyle:{bottom:"-2.1rem",left:"0.66rem"},imgStyle:{top:"1.1rem",left:"-2rem"},btnsStyle:{top:"4.2rem",left:"-0.5rem"},eleRectPadding:{left:4,top:4,width:8,height:8}},{ele:"",img:Yt("courseware-list4.png"),handStyle:{top:".8rem",left:"1rem"},imgStyle:{top:"1.1rem",left:"-4.6rem"},btnsStyle:{top:"4rem",left:"-4.5rem","justify-content":"center",padding:0}}],step:0}),d=Ce(!1),f=localStorage.getItem("guideInfo");f&&JSON.parse(f).courseware?d.value=!1:d.value=!0;const y=()=>{var E,$,re,j;const C=document.getElementById(`courseware-${a.step}`);if(C){const ne=C.getBoundingClientRect(),D=((E=a.steps[a.step].eleRectPadding)==null?void 0:E.left)||0,_=(($=a.steps[a.step].eleRectPadding)==null?void 0:$.top)||0,J=((re=a.steps[a.step].eleRectPadding)==null?void 0:re.width)||0,G=((j=a.steps[a.step].eleRectPadding)==null?void 0:j.height)||0;a.box={left:ne.x-D+"px",top:ne.y-_+"px",width:ne.width+J+"px",height:ne.height+G+"px"}}else T()};Ot(()=>{y(),window.addEventListener("resize",b)});const b=()=>{y()};po(()=>{window.removeEventListener("resize",b)});const T=()=>{if(a.step>=3){M();return}a.step=a.step+1,y()},M=()=>{let C=JSON.parse(localStorage.getItem("guideInfo")||"{}")||null;C?C.courseware=!0:C={courseware:!0},localStorage.setItem("guideInfo",JSON.stringify(C)),d.value=!1};return()=>te(Wr,{teleport:"body",overlay:!1,closeOnClickOverlay:!1,class:["popup-custom",Ze.guidePopup],show:d.value,"onUpdate:show":C=>d.value=C},{default:()=>[te("div",{class:Ze.content,onClick:()=>T()},[a.step!=a.steps.length-1&&te("div",{class:Ze.backBtn,onClick:C=>{C.stopPropagation(),M()}},[vt("跳过")]),te("div",{class:Ze.box,style:{...a.box,...a.steps[a.step].boxStyle},id:`modeType-${a.step}`},[a.steps.map((C,E)=>{var $,re;return te("div",{onClick:j=>j.stopPropagation(),class:Ze.item,style:{display:E===a.step?"":"none",left:`${($=C.eleRect)==null?void 0:$.left}px`,top:`${(re=C.eleRect)==null?void 0:re.top}px`}},[te("img",{class:Ze.img,style:C.imgStyle,src:C.img},null),te("img",{class:Ze.iconHead,style:C.handStyle,src:Yt("indexDot.png")},null),te("div",{class:Ze.btns,style:C.btnsStyle},[a.step+1==a.steps.length?te(Pt,null,[te(pn,{class:[Ze.btn],round:!0,type:"primary",onClick:()=>M()},{default:()=>[vt("完成")]}),te(pn,{class:[Ze.btn,Ze.endBtn],round:!0,color:"transparent",style:{"border-color":"#fff"},type:"primary",onClick:()=>{a.step=0,y()}},{default:()=>[vt("再看一遍")]})]):te(pn,{class:Ze.btn,round:!0,type:"primary",onClick:()=>T()},{default:()=>[vt("下一步 ("),a.step+1,vt("/"),a.steps.length,vt(")")]})])])})])])]})}});/*! jQuery v1.7 jquery.com | jquery.org/license */(function(e,i){function a(t){return n.isWindow(t)?t:t.nodeType===9?t.defaultView||t.parentWindow:!1}function d(t){if(!dr[t]){var r=U.body,o=n("<"+t+">").appendTo(r),u=o.css("display");o.remove(),(u==="none"||u==="")&&(Mt||(Mt=U.createElement("iframe"),Mt.frameBorder=Mt.width=Mt.height=0),r.appendChild(Mt),(!ln||!Mt.createElement)&&(ln=(Mt.contentWindow||Mt.contentDocument).document,ln.write((U.compatMode==="CSS1Compat"?"":"")+""),ln.close()),o=ln.createElement(t),ln.body.appendChild(o),u=n.css(o,"display"),r.removeChild(Mt)),dr[t]=u}return dr[t]}function f(t,r){var o={};return n.each(hi.concat.apply([],hi.slice(0,r)),function(){o[this]=t}),o}function y(){Nn=i}function b(){return setTimeout(y,0),Nn=n.now()}function T(){try{return new e.ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}function M(){try{return new e.XMLHttpRequest}catch(t){}}function C(t,r){t.dataFilter&&(r=t.dataFilter(r,t.dataType));var o=t.dataTypes,u={},c,h,v=o.length,g,S=o[0],k,O,P,B,W;for(c=1;c0?(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=an(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 _(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 J(t){var r=(t.nodeName||"").toLowerCase();r==="input"?G(t):r!=="script"&&typeof t.getElementsByTagName<"u"&&n.grep(t.getElementsByTagName("input"),G)}function G(t){(t.type==="checkbox"||t.type==="radio")&&(t.defaultChecked=t.checked)}function z(t){return typeof t.getElementsByTagName<"u"?t.getElementsByTagName("*"):typeof t.querySelectorAll<"u"?t.querySelectorAll("*"):[]}function he(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 Y(t,r){if(r.nodeType===1&&n.hasData(t)){var o,u,c,h=n._data(t),v=n._data(r,h),g=h.events;if(g){delete v.handle,v.events={};for(o in g)for(u=0,c=g[o].length;u=0===o})}function Ae(t){return!t||!t.parentNode||t.parentNode.nodeType===11}function be(){return!0}function Pe(){return!1}function Be(t,r,o){var u=r+"defer",c=r+"queue",h=r+"mark",v=n._data(t,u);v&&(o==="queue"||!n._data(t,c))&&(o==="mark"||!n._data(t,h))&&setTimeout(function(){!n._data(t,c)&&!n._data(t,h)&&(n.removeData(t,u,!0),v.fire())},0)}function Te(t){for(var r in t)if(!(r==="data"&&n.isEmptyObject(t[r]))&&r!=="toJSON")return!1;return!0}function pe(t,r,o){if(o===i&&t.nodeType===1){var u="data-"+r.replace(ae,"-$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=m[t]={},o,u;for(t=t.split(/\s+/),o=0,u=t.length;o)[^>]*$|#([\w\-]*)$)/,v=/\S/,g=/^\s+/,S=/\s+$/,k=/\d/,O=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,P=/^[\],:{}\s]*$/,B=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,W=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Z=/(?:^|:|,)(?:\s*\[)+/g,ye=/(webkit)[ \/]([\w.]+)/,Me=/(opera)(?:.*version)?[ \/]([\w.]+)/,Se=/(msie) ([\w.]+)/,it=/(mozilla)(?:.*? rv:([\w.]+))?/,ot=/-([a-z]|[0-9])/ig,xe=/^-ms-/,p=function(w,q){return(q+"").toUpperCase()},A=s.userAgent,R,N,F,I=Object.prototype.toString,X=Object.prototype.hasOwnProperty,se=Array.prototype.push,ie=Array.prototype.slice,fe=String.prototype.trim,ft=Array.prototype.indexOf,tt={};return r.fn=r.prototype={constructor:r,init:function(w,q,oe){var H,Oe,Le,We;if(!w)return this;if(w.nodeType)return this.context=this[0]=w,this.length=1,this;if(w==="body"&&!q&&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]||!q)){if(H[1])return q=q instanceof r?q[0]:q,We=q?q.ownerDocument||q:U,Le=O.exec(w),Le?r.isPlainObject(q)?(w=[U.createElement(Le[1])],r.fn.attr.call(w,q,!0)):w=[We.createElement(Le[1])]:(Le=r.buildFragment([H[1]],[We]),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 oe.find(w);this.length=1,this[0]=Oe}return this.context=U,this.selector=w,this}return!q||q.jquery?(q||oe).find(w):this.constructor(q).find(w)}return r.isFunction(w)?oe.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 ie.call(this,0)},get:function(w){return w==null?this.toArray():w<0?this[this.length+w]:this[w]},pushStack:function(w,q,oe){var H=this.constructor();return r.isArray(w)?se.apply(H,w):r.merge(H,w),H.prevObject=this,H.context=this.context,q==="find"?H.selector=this.selector+(this.selector?" ":"")+oe:q&&(H.selector=this.selector+"."+q+"("+oe+")"),H},each:function(w,q){return r.each(this,w,q)},ready:function(w){return r.bindReady(),N.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(ie.apply(this,arguments),"slice",ie.call(arguments).join(","))},map:function(w){return this.pushStack(r.map(this,function(q,oe){return w.call(q,oe,q)}))},end:function(){return this.prevObject||this.constructor(null)},push:se,sort:[].sort,splice:[].splice},r.fn.init.prototype=r.fn,r.extend=r.fn.extend=function(){var w,q,oe,H,Oe,Le,We=arguments[0]||{},ht=1,St=arguments.length,fr=!1;for(typeof We=="boolean"&&(fr=We,We=arguments[1]||{},ht=2),typeof We!="object"&&!r.isFunction(We)&&(We={}),St===ht&&(We=this,--ht);ht0)return;N.fireWith(U,[r]),r.fn.trigger&&r(U).trigger("ready").unbind("ready")}},bindReady:function(){if(!N){if(N=r.Callbacks("once memory"),U.readyState==="complete")return setTimeout(r.ready,1);if(U.addEventListener)U.addEventListener("DOMContentLoaded",F,!1),e.addEventListener("load",r.ready,!1);else if(U.attachEvent){U.attachEvent("onreadystatechange",F),e.attachEvent("onload",r.ready);var w=!1;try{w=e.frameElement==null}catch(q){}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&&k.test(w)&&!isNaN(w)},type:function(w){return w==null?String(w):tt[I.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(oe){return!1}var q;for(q in w);return q===i||X.call(w,q)},isEmptyObject:function(w){for(var q 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(P.test(w.replace(B,"@").replace(W,"]").replace(Z,"")))return new Function("return "+w)();r.error("Invalid JSON: "+w)},parseXML:function(w){var q,oe;try{e.DOMParser?(oe=new DOMParser,q=oe.parseFromString(w,"text/xml")):(q=new ActiveXObject("Microsoft.XMLDOM"),q.async="false",q.loadXML(w))}catch(H){q=i}return(!q||!q.documentElement||q.getElementsByTagName("parsererror").length)&&r.error("Invalid XML: "+w),q},noop:function(){},globalEval:function(w){w&&v.test(w)&&(e.execScript||function(q){e.eval.call(e,q)})(w)},camelCase:function(w){return w.replace(xe,"ms-").replace(ot,p)},nodeName:function(w,q){return w.nodeName&&w.nodeName.toUpperCase()===q.toUpperCase()},each:function(w,q,oe){var H,Oe=0,Le=w.length,We=Le===i||r.isFunction(w);if(oe)if(We){for(H in w)if(q.apply(w[H],oe)===!1)break}else for(;Oe0&&w[0]&&w[ht-1]||ht===0||r.isArray(w));if(St)for(;We1?x.call(arguments,0):P,S.notifyWith(k,v)}}function o(O){return function(P){u[O]=arguments.length>1?x.call(arguments,0):P,--g||S.resolveWith(S,u)}}var u=x.call(arguments,0),c=0,h=u.length,v=Array(h),g=h,S=h<=1&&t&&n.isFunction(t.promise)?t:n.Deferred(),k=S.promise();if(h>1){for(;c
a",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(it){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),k=U.createDocumentFragment(),k.appendChild(t.lastChild),S.checkClone=k.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="",t.style.width=t.style.paddingLeft="1px",O=U.getElementsByTagName("body")[0],B=U.createElement(O?"div":"body"),W={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},O&&n.extend(W,{position:"absolute",left:"-999px",top:"-999px"});for(Me in W)B.style[Me]=W[Me];if(B.appendChild(t),P=O||r,P.insertBefore(B,P.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="
",S.shrinkWrapBlocks=t.offsetWidth!==2),t.innerHTML="
t
",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&&(g=U.createElement("div"),g.style.width="0",g.style.marginRight="0",t.appendChild(g),S.reliableMarginRight=(parseInt((U.defaultView.getComputedStyle(g,null)||{marginRight:0}).marginRight,10)||0)===0),t.attachEvent)for(Me in{submit:1,change:1,focusin:1})ye="on"+Me,Se=ye in t,Se||(t.setAttribute(ye,"return;"),Se=typeof t[ye]=="function"),S[Me+"Bubbles"]=Se;return n(function(){var it,ot,xe,p,A,R=1,N="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",F="visibility:hidden;border:0;",I="style='"+N+"border:5px solid #000;padding:0;'",X="
";O=U.getElementsByTagName("body")[0],!O||(it=U.createElement("div"),it.style.cssText=F+"width:0;height:0;position:static;top:0;margin-top:"+R+"px",O.insertBefore(it,O.firstChild),B=U.createElement("div"),B.style.cssText=N+F,B.innerHTML=X,it.appendChild(B),ot=B.firstChild,xe=ot.firstChild,p=ot.nextSibling.firstChild.firstChild,A={doesNotAddBorder:xe.offsetTop!==5,doesAddBorderForTableAndCells:p.offsetTop===5},xe.style.position="fixed",xe.style.top="20px",A.fixedPosition=xe.offsetTop===20||xe.offsetTop===15,xe.style.position=xe.style.top="",ot.style.overflow="hidden",ot.style.position="relative",A.subtractsBorderForOverflowNotVisible=xe.offsetTop===-5,A.doesNotIncludeMarginInBodyOffset=O.offsetTop!==R,O.removeChild(it),B=it=null,n.extend(S,A))}),B.innerHTML="",P.removeChild(B),B=k=c=h=O=g=t=v=null,S}(),n.boxModel=n.support.boxModel;var L=/^(?:\{.*\}|\[.*\])$/,ae=/([A-Z])/g;n.extend({cache:{},uuid:0,expando:"jQuery"+(n.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(t){return t=t.nodeType?n.cache[t[n.expando]]:t[n.expando],!!t&&!Te(t)},data:function(t,r,o,u){if(n.acceptData(t)){var c,h,v;n.expando;var g=typeof r=="string",S=t.nodeType,k=S?n.cache:t,O=S?t[n.expando]:t[n.expando]&&n.expando,P=r==="events";return(!O||!k[O]||!P&&!u&&!k[O].data)&&g&&o===i?void 0:(O||(S?t[n.expando]=O=++n.uuid:O=n.expando),k[O]||(k[O]={},S||(k[O].toJSON=n.noop)),(typeof r=="object"||typeof r=="function")&&(u?k[O]=n.extend(k[O],r):k[O].data=n.extend(k[O].data,r)),c=h=k[O],u||(h.data||(h.data={}),h=h.data),o!==i&&(h[n.camelCase(r)]=o),P&&!h[r]?c.events:(g?(v=h[r],v==null&&(v=h[n.camelCase(r)])):v=h,v))}},removeData:function(t,r,o){if(n.acceptData(t)){var u,c,h;n.expando;var v=t.nodeType,g=v?n.cache:t,S=v?t[n.expando]:n.expando;if(!g[S])return;if(r&&(u=o?g[S]:g[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"u"){if(this.length&&(h=n.data(this[0]),this[0].nodeType===1&&!n._data(this[0],"parsedAttrs"))){u=this[0].attributes;for(var v=0,g=u.length;v-1)return!0;return!1},val:function(t){var r,o,u,c=this[0];return arguments.length?(u=n.isFunction(t),this.each(function(h){var v=n(this),g;this.nodeType===1&&(u?g=t.call(this,h,v.val()):g=t,g==null?g="":typeof g=="number"?g+="":n.isArray(g)&&(g=n.map(g,function(S){return S==null?"":S+""})),r=n.valHooks[this.nodeName.toLowerCase()]||n.valHooks[this.type],(!r||!("set"in r)||r.set(this,g,"value")===i)&&(this.value=g))})):c?(r=n.valHooks[c.nodeName.toLowerCase()]||n.valHooks[c.type],r&&"get"in r&&(o=r.get(c,"value"))!==i?o:(o=c.value,typeof o=="string"?o.replace(Re,""):o==null?"":o)):i}}),n.extend({valHooks:{option:{get:function(t){var r=t.attributes.value;return!r||r.specified?t.value:t.text}},select:{get:function(t){var r,o,u,c,h=t.selectedIndex,v=[],g=t.options,S=t.type==="select-one";if(h<0)return null;for(o=S?h:0,u=S?h+1:g.length;o=0}),o.length||(t.selectedIndex=-1),o}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(t,r,o,u){var c,h,v,g=t.nodeType;return!t||g===3||g===8||g===2?i:u&&r in n.attrFn?n(t)[r](o):"getAttribute"in t?(v=g!==1||!n.isXMLDoc(t),v&&(r=r.toLowerCase(),h=n.attrHooks[r]||(nt.test(r)?me: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(ve),h=u.length;v=0}})});var Ee=/^(?:textarea|input|select)$/i,_e=/^([^\.]*)?(?:\.(.+))?$/,Xe=/\bhover(\.\S+)?/,Ye=/^key/,rt=/^(?:mouse|contextmenu)|click/,et=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,kt=function(t){var r=et.exec(t);return r&&(r[1]=(r[1]||"").toLowerCase(),r[3]=r[3]&&new RegExp("(?:^|\\s)"+r[3]+"(?:\\s|$)")),r},on=function(t,r){return(!r[1]||t.nodeName.toLowerCase()===r[1])&&(!r[2]||t.id===r[2])&&(!r[3]||r[3].test(t.className))},pt=function(t){return n.event.special.hover?t:t.replace(Xe,"mouseenter$1 mouseleave$1")};n.event={add:function(t,r,o,u,c){var h,v,g,S,k,O,P,B,W,Z,ye;if(!(t.nodeType===3||t.nodeType===8||!r||!o||!(h=n._data(t)))){for(o.handler&&(W=o,o=W.handler),o.guid||(o.guid=n.guid++),g=h.events,g||(h.events=g={}),v=h.handle,v||(h.handle=v=function(Me){return typeof n<"u"&&(!Me||n.event.triggered!==Me.type)?n.event.dispatch.apply(v.elem,arguments):i},v.elem=t),r=pt(r).split(" "),S=0;S=0&&(c=c.slice(0,-1),g=!0),c.indexOf(".")>=0&&(h=c.split("."),c=h.shift(),h.sort()),(!o||n.event.customEvent[c])&&!n.event.global[c])return;if(t=typeof t=="object"?t[n.expando]?t:new n.Event(c,t):new n.Event(c),t.type=c,t.isTrigger=!0,t.exclusive=g,t.namespace=h.join("."),t.namespace_re=t.namespace?new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,P=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(ye=B.delegateType||c,O=null,k=o.parentNode;k;k=k.parentNode)Z.push([k,ye]),O=k;O&&O===o.ownerDocument&&Z.push([O.defaultView||O.parentWindow||e,ye])}for(S=0;S=0:Me===i&&(Me=P[ye]=Z.quick?on(k,Z.quick):n(k).is(ye)),Me&&W.push(Z);W.length&&v.push({elem:k,matches:W})}for(r.length>o&&v.push({elem:this,matches:r.slice(o)}),g=0;g0?this.bind(r,o,u):this.trigger(r)},n.attrFn&&(n.attrFn[r]=!0),Ye.test(r)&&(n.event.fixHooks[r]=n.event.keyHooks),rt.test(r)&&(n.event.fixHooks[r]=n.event.mouseHooks)}),function(){function t(p,A,R,N,F,I){for(var X=0,se=N.length;X0){fe=ie;break}}ie=ie[p]}N[X]=fe}}}function r(p,A,R,N,F,I){for(var X=0,se=N.length;X+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,u="sizcache"+(Math.random()+"").replace(".",""),c=0,h=Object.prototype.toString,v=!1,g=!0,S=/\\/g,k=/\r\n/g,O=/\W/;[0,0].sort(function(){return g=!1,0});var P=function(p,A,R,N){R=R||[],A=A||U;var F=A;if(A.nodeType!==1&&A.nodeType!==9)return[];if(!p||typeof p!="string")return R;var I,X,se,ie,fe,ft,tt,w,q=!0,oe=P.isXML(A),H=[],Oe=p;do if(o.exec(""),I=o.exec(Oe),I&&(Oe=I[3],H.push(I[1]),I[2])){ie=I[3];break}while(I);if(H.length>1&&Z.exec(p))if(H.length===2&&W.relative[H[0]])X=xe(H[0]+H[1],A,N);else for(X=W.relative[H[0]]?[A]:P(H.shift(),A);H.length;)p=H.shift(),W.relative[p]&&(p+=H.shift()),X=xe(p,X,N);else if(!N&&H.length>1&&A.nodeType===9&&!oe&&W.match.ID.test(H[0])&&!W.match.ID.test(H[H.length-1])&&(fe=P.find(H.shift(),A,oe),A=fe.expr?P.filter(fe.expr,fe.set)[0]:fe.set[0]),A)for(fe=N?{expr:H.pop(),set:Se(N)}:P.find(H.pop(),H.length===1&&(H[0]==="~"||H[0]==="+")&&A.parentNode?A.parentNode:A,oe),X=fe.expr?P.filter(fe.expr,fe.set):fe.set,H.length>0?se=Se(X):q=!1;H.length;)ft=H.pop(),tt=ft,W.relative[ft]?tt=H.pop():ft="",tt==null&&(tt=A),W.relative[ft](se,tt,oe);else se=H=[];if(se||(se=X),se||P.error(ft||p),h.call(se)==="[object Array]")if(!q)R.push.apply(R,se);else if(A&&A.nodeType===1)for(w=0;se[w]!=null;w++)se[w]&&(se[w]===!0||se[w].nodeType===1&&P.contains(A,se[w]))&&R.push(X[w]);else for(w=0;se[w]!=null;w++)se[w]&&se[w].nodeType===1&&R.push(X[w]);else Se(se,R);return ie&&(P(ie,F,R,N),P.uniqueSort(R)),R};P.uniqueSort=function(p){if(it&&(v=g,p.sort(it),v))for(var A=1;A0},P.find=function(p,A,R){var N,F,I,X,se,ie;if(!p)return[];for(F=0,I=W.order.length;F":function(p,A){var R,N=typeof A=="string",F=0,I=p.length;if(N&&!O.test(A)){for(A=A.toLowerCase();F=0)?R||N.push(se):R&&(A[X]=!1));return!1},ID:function(p){return p[1].replace(S,"")},TAG:function(p,A){return p[1].replace(S,"").toLowerCase()},CHILD:function(p){if(p[1]==="nth"){p[2]||P.error(p[0]),p[2]=p[2].replace(/^\+|\s*/g,"");var A=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(p[2]==="even"&&"2n"||p[2]==="odd"&&"2n+1"||!/\D/.test(p[2])&&"0n+"+p[2]||p[2]);p[2]=A[1]+(A[2]||1)-0,p[3]=A[3]-0}else p[2]&&P.error(p[0]);return p[0]=c++,p},ATTR:function(p,A,R,N,F,I){var X=p[1]=p[1].replace(S,"");return!I&&W.attrMap[X]&&(p[1]=W.attrMap[X]),p[4]=(p[4]||p[5]||"").replace(S,""),p[2]==="~="&&(p[4]=" "+p[4]+" "),p},PSEUDO:function(p,A,R,N,F){if(p[1]==="not")if((o.exec(p[3])||"").length>1||/^\w/.test(p[3]))p[3]=P(p[3],null,null,A);else{var I=P.filter(p[3],A,R,!0^F);return R||N.push.apply(N,I),!1}else if(W.match.POS.test(p[0])||W.match.CHILD.test(p[0]))return!0;return p},POS:function(p){return p.unshift(!0),p}},filters:{enabled:function(p){return p.disabled===!1&&p.type!=="hidden"},disabled:function(p){return p.disabled===!0},checked:function(p){return p.checked===!0},selected:function(p){return p.parentNode&&p.parentNode.selectedIndex,p.selected===!0},parent:function(p){return!!p.firstChild},empty:function(p){return!p.firstChild},has:function(p,A,R){return!!P(R[3],p).length},header:function(p){return/h\d/i.test(p.nodeName)},text:function(p){var A=p.getAttribute("type"),R=p.type;return p.nodeName.toLowerCase()==="input"&&R==="text"&&(A===R||A===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 A=p.nodeName.toLowerCase();return(A==="input"||A==="button")&&p.type==="submit"},image:function(p){return p.nodeName.toLowerCase()==="input"&&p.type==="image"},reset:function(p){var A=p.nodeName.toLowerCase();return(A==="input"||A==="button")&&p.type==="reset"},button:function(p){var A=p.nodeName.toLowerCase();return A==="input"&&p.type==="button"||A==="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,A){return A===0},last:function(p,A,R,N){return A===N.length-1},even:function(p,A){return A%2===0},odd:function(p,A){return A%2===1},lt:function(p,A,R){return AR[3]-0},nth:function(p,A,R){return R[3]-0===A},eq:function(p,A,R){return R[3]-0===A}},filter:{PSEUDO:function(p,A,R,N){var F=A[1],I=W.filters[F];if(I)return I(p,R,A,N);if(F==="contains")return(p.textContent||p.innerText||B([p])||"").indexOf(A[3])>=0;if(F==="not"){for(var X=A[3],se=0,ie=X.length;se=0}},ID:function(p,A){return p.nodeType===1&&p.getAttribute("id")===A},TAG:function(p,A){return A==="*"&&p.nodeType===1||!!p.nodeName&&p.nodeName.toLowerCase()===A},CLASS:function(p,A){return(" "+(p.className||p.getAttribute("class"))+" ").indexOf(A)>-1},ATTR:function(p,A){var R=A[1],N=P.attr?P.attr(p,R):W.attrHandle[R]?W.attrHandle[R](p):p[R]!=null?p[R]:p.getAttribute(R),F=N+"",I=A[2],X=A[4];return N==null?I==="!=":!I&&P.attr?N!=null:I==="="?F===X:I==="*="?F.indexOf(X)>=0:I==="~="?(" "+F+" ").indexOf(X)>=0:X?I==="!="?F!==X:I==="^="?F.indexOf(X)===0:I==="$="?F.substr(F.length-X.length)===X:I==="|="?F===X||F.substr(0,X.length+1)===X+"-":!1:F&&N!==!1},POS:function(p,A,R,N){var F=A[2],I=W.setFilters[F];if(I)return I(p,R,A,N)}}},Z=W.match.POS,ye=function(p,A){return"\\"+(A-0+1)};for(var Me in W.match)W.match[Me]=new RegExp(W.match[Me].source+/(?![^\[]*\])(?![^\(]*\))/.source),W.leftMatch[Me]=new RegExp(/(^(?:.|\r|\n)*?)/.source+W.match[Me].source.replace(/\\(\d+)/g,ye));var Se=function(p,A){return p=Array.prototype.slice.call(p,0),A?(A.push.apply(A,p),A):p};try{Array.prototype.slice.call(U.documentElement.childNodes,0)[0].nodeType}catch(p){Se=function(A,R){var N=0,F=R||[];if(h.call(A)==="[object Array]")Array.prototype.push.apply(F,A);else if(typeof A.length=="number")for(var I=A.length;N",R.insertBefore(p,R.firstChild),U.getElementById(A)&&(W.find.ID=function(N,F,I){if(typeof F.getElementById<"u"&&!I){var X=F.getElementById(N[1]);return X?X.id===N[1]||typeof X.getAttributeNode<"u"&&X.getAttributeNode("id").nodeValue===N[1]?[X]:i:[]}},W.filter.ID=function(N,F){var I=typeof N.getAttributeNode<"u"&&N.getAttributeNode("id");return N.nodeType===1&&I&&I.nodeValue===F}),R.removeChild(p),R=p=null}(),function(){var p=U.createElement("div");p.appendChild(U.createComment("")),p.getElementsByTagName("*").length>0&&(W.find.TAG=function(A,R){var N=R.getElementsByTagName(A[1]);if(A[1]==="*"){for(var F=[],I=0;N[I];I++)N[I].nodeType===1&&F.push(N[I]);N=F}return N}),p.innerHTML="",p.firstChild&&typeof p.firstChild.getAttribute<"u"&&p.firstChild.getAttribute("href")!=="#"&&(W.attrHandle.href=function(A){return A.getAttribute("href",2)}),p=null}(),U.querySelectorAll&&function(){var p=P,A=U.createElement("div"),R="__sizzle__";if(A.innerHTML="

",!A.querySelectorAll||A.querySelectorAll(".TEST").length!==0){P=function(F,I,X,se){if(I=I||U,!se&&!P.isXML(I)){var ie=/^(\w+$)|^\.([\w\-]+$)|^#([\w\-]+$)/.exec(F);if(ie&&(I.nodeType===1||I.nodeType===9)){if(ie[1])return Se(I.getElementsByTagName(F),X);if(ie[2]&&W.find.CLASS&&I.getElementsByClassName)return Se(I.getElementsByClassName(ie[2]),X)}if(I.nodeType===9){if(F==="body"&&I.body)return Se([I.body],X);if(ie&&ie[3]){var fe=I.getElementById(ie[3]);if(!fe||!fe.parentNode)return Se([],X);if(fe.id===ie[3])return Se([fe],X)}try{return Se(I.querySelectorAll(F),X)}catch(H){}}else if(I.nodeType===1&&I.nodeName.toLowerCase()!=="object"){var ft=I,tt=I.getAttribute("id"),w=tt||R,q=I.parentNode,oe=/^\s*[+~]/.test(F);tt?w=w.replace(/'/g,"\\$&"):I.setAttribute("id",w),oe&&q&&(I=I.parentNode);try{if(!oe||q)return Se(I.querySelectorAll("[id='"+w+"'] "+F),X)}catch(H){}finally{tt||ft.removeAttribute("id")}}}return p(F,I,X,se)};for(var N in p)P[N]=p[N];A=null}}(),function(){var p=U.documentElement,A=p.matchesSelector||p.mozMatchesSelector||p.webkitMatchesSelector||p.msMatchesSelector;if(A){var R=!A.call(U.createElement("div"),"div"),N=!1;try{A.call(U.documentElement,"[test!='']:sizzle")}catch(F){N=!0}P.matchesSelector=function(F,I){if(I=I.replace(/\=\s*([^'"\]]*)\s*\]/g,"='$1']"),!P.isXML(F))try{if(N||!W.match.PSEUDO.test(I)&&!/!=/.test(I)){var X=A.call(F,I);if(X||!R||F.document&&F.document.nodeType!==11)return X}}catch(se){}return P(I,null,null,[F]).length>0}}}(),function(){var p=U.createElement("div");if(p.innerHTML="
",p.getElementsByClassName&&p.getElementsByClassName("e").length!==0){if(p.lastChild.className="e",p.getElementsByClassName("e").length===1)return;W.order.splice(1,0,"CLASS"),W.find.CLASS=function(A,R,N){if(typeof R.getElementsByClassName<"u"&&!N)return R.getElementsByClassName(A[1])},p=null}}(),U.documentElement.contains?P.contains=function(p,A){return p!==A&&(p.contains?p.contains(A):!0)}:U.documentElement.compareDocumentPosition?P.contains=function(p,A){return!!(p.compareDocumentPosition(A)&16)}:P.contains=function(){return!1},P.isXML=function(p){var A=(p?p.ownerDocument||p:0).documentElement;return A?A.nodeName!=="HTML":!1};var xe=function(p,A,R){for(var N,F=[],I="",X=A.nodeType?[A]:A;N=W.match.PSEUDO.exec(p);)I+=N[0],p=p.replace(W.match.PSEUDO,"");p=W.relative[p]?p+"*":p;for(var se=0,ie=X.length;se0){for(v=h;v=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-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(Ae(o[0])||Ae(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=Ft.call(arguments);return mt.test(t)||(u=o),u&&typeof u=="string"&&(c=n.filter(u,c)),c=this.length>1&&!yt[t]?n.unique(c):c,(this.length>1||xn.test(u))&&Ge.test(t)&&(c=c.reverse()),this.pushStack(c,t,h.join(","))}}),n.extend({filter:function(t,r,o){return o&&(t=":not("+t+")"),r.length===1?n.find.matchesSelector(r[0],t)?[r[0]]:[]:n.find.matches(t,r)},dir:function(t,r,o){for(var u=[],c=t[r];c&&c.nodeType!==9&&(o===i||c.nodeType!==1||!n(c).is(o));)c.nodeType===1&&u.push(c),c=c[r];return u},nth:function(t,r,o,u){r=r||1;for(var c=0;t&&!(t.nodeType===1&&++c===r);t=t[o]);return t},sibling:function(t,r){for(var o=[];t;t=t.nextSibling)t.nodeType===1&&t!==r&&o.push(t);return o}});var wt="abbr article aside audio canvas datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video",It=/ jQuery\d+="(?:\d+|null)"/g,qe=/^\s+/,Je=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([\w:]+)[^>]*)\/>/ig,ze=/<([\w:]+)/,V=/",""],legend:[1,"
","
"],thead:[1,"","
"],tr:[2,"","
"],td:[3,"","
"],col:[2,"","
"],area:[1,"",""],_default:[0,"",""]},Ht=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
","
"]),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(It,""):null;if(typeof t=="string"&&!we.test(t)&&(n.support.leadingWhitespace||!qe.test(t))&&!$e[(ze.exec(t)||["",""])[1].toLowerCase()]){t=t.replace(Je,"<$1>");try{for(var r=0,o=this.length;r1&&k0?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(he(t,u),c=z(t),h=z(u),v=0;c[v];++v)h[v]&&he(c[v],h[v]);if(r&&(Y(t,u),o))for(c=z(t),h=z(u),v=0;c[v];++v)Y(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,g=0,S;(S=t[g])!=null;g++)if(typeof S=="number"&&(S+=""),!!S){if(typeof S=="string")if(!de.test(S))S=r.createTextNode(S);else{S=S.replace(Je,"<$1>");var k=(ze.exec(S)||["",""])[1].toLowerCase(),O=$e[k]||$e._default,P=O[0],B=r.createElement("div");for(r===U?Ht.appendChild(B):ue(r).appendChild(B),B.innerHTML=O[1]+S+O[2];P--;)B=B.lastChild;if(!n.support.tbody){var W=V.test(S),Z=k==="table"&&!W?B.firstChild&&B.firstChild.childNodes:O[1]===""&&!W?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 ye;if(!n.support.appendChecked)if(S[0]&&typeof(ye=S.length)=="number")for(v=0;v=0)return u+"px"}}}),n.support.opacity||(n.cssHooks.opacity={get:function(t,r){return ba.test((r&&t.currentStyle?t.currentStyle.filter:t.style.filter)||"")?parseFloat(RegExp.$1)/100+"":r?"1":""},set:function(t,r){var o=t.style,u=t.currentStyle,c=n.isNumeric(r)?"alpha(opacity="+r*100+")":"",h=u&&u.filter||o.filter||"";o.zoom=1,!(r>=1&&n.trim(h.replace(lr,""))===""&&(o.removeAttribute("filter"),u&&!u.filter))&&(o.filter=lr.test(h)?h.replace(lr,c):h+" "+c)}}),n(function(){n.support.reliableMarginRight||(n.cssHooks.marginRight={get:function(t,r){var o;return n.swap(t,{display:"inline-block"},function(){r?o=an(t,"margin-right","marginRight"):o=t.style.marginRight}),o}})}),U.defaultView&&U.defaultView.getComputedStyle&&(ii=function(t,r){var o,u,c;return r=r.replace(xa,"-$1").toLowerCase(),(u=t.ownerDocument.defaultView)?((c=u.getComputedStyle(t,null))&&(o=c.getPropertyValue(r),o===""&&!n.contains(t.ownerDocument.documentElement,t)&&(o=n.style(t,r))),o):i}),U.documentElement.currentStyle&&(oi=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),!ri.test(h)&&Aa.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}),an=ii||oi,n.expr&&n.expr.filters&&(n.expr.filters.hidden=function(t){var r=t.offsetWidth,o=t.offsetHeight;return r===0&&o===0||!n.support.reliableHiddenOffsets&&(t.style&&t.style.display||n.css(t,"display"))==="none"},n.expr.filters.visible=function(t){return!n.expr.filters.hidden(t)});var Ea=/%20/g,Oa=/\[\]$/,ai=/\r?\n/g,Pa=/#.*$/,ka=/^(.*?):[ \t]*([^\r\n]*)\r?$/mg,Ra=/^(?:color|date|datetime|datetime-local|email|hidden|month|number|password|range|search|tel|text|time|url|week)$/i,Da=/^(?:about|app|app\-storage|.+\-extension|file|res|widget):$/,Na=/^(?:GET|HEAD)$/,_a=/^\/\//,si=/\?/,La=/)<[^<]*)*<\/script>/gi,Ba=/^(?:select|textarea)/i,li=/\s+/,Fa=/([?&])_=[^&]*/,ui=/^([\w\+\.\-]+:)(?:\/\/([^\/?#:]*)(?::(\d+))?)?/,ci=n.fn.load,ur={},di={},$t,qt,fi=["*/"]+["*"];try{$t=l.href}catch(t){$t=U.createElement("a"),$t.href="",$t=$t.href}qt=ui.exec($t.toLowerCase())||[],n.fn.extend({load:function(t,r,o){if(typeof t!="string"&&ci)return ci.apply(this,arguments);if(!this.length)return this;var u=t.indexOf(" ");if(u>=0){var c=t.slice(u,t.length);t=t.slice(0,u)}var h="GET";r&&(n.isFunction(r)?(o=r,r=i):typeof r=="object"&&(r=n.param(r,n.ajaxSettings.traditional),h="POST"));var v=this;return n.ajax({url:t,type:h,dataType:"html",data:r,complete:function(g,S,k){k=g.responseText,g.isResolved()&&(g.done(function(O){k=O}),v.html(c?n("
").append(k.replace(La,"")).find(c):k)),o&&v.each(o,[k,S,g])}}),this},serialize:function(){return n.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?n.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||Ba.test(this.nodeName)||Ra.test(this.type))}).map(function(t,r){var o=n(this).val();return o==null?null:n.isArray(o)?n.map(o,function(u,c){return{name:r.name,value:u.replace(ai,`\r `)}}):{name:r.name,value:o.replace(ai,`\r `)}}).get()}}),n.each("ajaxStart ajaxStop ajaxComplete ajaxError ajaxSuccess ajaxSend".split(" "),function(t,r){n.fn[r]=function(o){return this.bind(r,o)}}),n.each(["get","post"],function(t,r){n[r]=function(o,u,c,h){return n.isFunction(u)&&(h=h||c,c=u,u=i),n.ajax({type:r,url:o,data:u,success:c,dataType:h})}}),n.extend({getScript:function(t,r){return n.get(t,i,r,"script")},getJSON:function(t,r,o){return n.get(t,r,o,"json")},ajaxSetup:function(t,r){return r?re(t,n.ajaxSettings):(r=t,t=n.ajaxSettings),re(t,r),t},ajaxSettings:{url:$t,isLocal:Da.test(qt[1]),global:!0,type:"GET",contentType:"application/x-www-form-urlencoded",processData:!0,async:!0,accepts:{xml:"application/xml, text/xml",html:"text/html",text:"text/plain",json:"application/json, text/javascript","*":fi},contents:{xml:/xml/,html:/html/,json:/json/},responseFields:{xml:"responseXML",text:"responseText"},converters:{"* text":e.String,"text html":!0,"text json":n.parseJSON,"text xml":n.parseXML},flatOptions:{context:!0,url:!0}},ajaxPrefilter:ne(ur),ajaxTransport:ne(di),ajax:function(t,r){function o(R,N,F,I){if(Se!==2){Se=2,ye&&clearTimeout(ye),Z=i,B=I||"",xe.readyState=R>0?4:0;var X,se,ie,fe=N,ft=F?E(u,xe,F):i,tt,w;if(R>=200&&R<300||R===304)if(u.ifModified&&((tt=xe.getResponseHeader("Last-Modified"))&&(n.lastModified[k]=tt),(w=xe.getResponseHeader("Etag"))&&(n.etag[k]=w)),R===304)fe="notmodified",X=!0;else try{se=C(u,ft),fe="success",X=!0}catch(q){fe="parsererror",ie=q}else ie=fe,(!fe||R)&&(fe="error",R<0&&(R=0));xe.status=R,xe.statusText=""+(N||fe),X?v.resolveWith(c,[se,fe,xe]):v.rejectWith(c,[xe,fe,ie]),xe.statusCode(S),S=i,it&&h.trigger("ajax"+(X?"Success":"Error"),[xe,u,X?se:ie]),g.fireWith(c,[xe,fe]),it&&(h.trigger("ajaxComplete",[xe,u]),--n.active||n.event.trigger("ajaxStop"))}}typeof t=="object"&&(r=t,t=i),r=r||{};var u=n.ajaxSetup({},r),c=u.context||u,h=c!==u&&(c.nodeType||c instanceof n)?n(c):n.event,v=n.Deferred(),g=n.Callbacks("once memory"),S=u.statusCode||{},k,O={},P={},B,W,Z,ye,Me,Se=0,it,ot,xe={readyState:0,setRequestHeader:function(R,N){if(!Se){var F=R.toLowerCase();R=P[F]=P[F]||R,O[R]=N}return this},getAllResponseHeaders:function(){return Se===2?B:null},getResponseHeader:function(R){var N;if(Se===2){if(!W)for(W={};N=ka.exec(B);)W[N[1].toLowerCase()]=N[2];N=W[R.toLowerCase()]}return N===i?null:N},overrideMimeType:function(R){return Se||(u.mimeType=R),this},abort:function(R){return R=R||"abort",Z&&Z.abort(R),o(0,R),this}};if(v.promise(xe),xe.success=xe.done,xe.error=xe.fail,xe.complete=g.add,xe.statusCode=function(R){if(R){var N;if(Se<2)for(N in R)S[N]=[S[N],R[N]];else N=R[xe.status],xe.then(N,N)}return this},u.url=((t||u.url)+"").replace(Pa,"").replace(_a,qt[1]+"//"),u.dataTypes=n.trim(u.dataType||"*").toLowerCase().split(li),u.crossDomain==null&&(Me=ui.exec(u.url.toLowerCase()),u.crossDomain=!(!Me||Me[1]==qt[1]&&Me[2]==qt[2]&&(Me[3]||(Me[1]==="http:"?80:443))==(qt[3]||(qt[1]==="http:"?80:443)))),u.data&&u.processData&&typeof u.data!="string"&&(u.data=n.param(u.data,u.traditional)),j(ur,u,r,xe),Se===2)return!1;if(it=u.global,u.type=u.type.toUpperCase(),u.hasContent=!Na.test(u.type),it&&n.active++===0&&n.event.trigger("ajaxStart"),!u.hasContent&&(u.data&&(u.url+=(si.test(u.url)?"&":"?")+u.data,delete u.data),k=u.url,u.cache===!1)){var p=n.now(),A=u.url.replace(Fa,"$1_="+p);u.url=A+(A===u.url?(si.test(u.url)?"&":"?")+"_="+p:"")}(u.data&&u.hasContent&&u.contentType!==!1||r.contentType)&&xe.setRequestHeader("Content-Type",u.contentType),u.ifModified&&(k=k||u.url,n.lastModified[k]&&xe.setRequestHeader("If-Modified-Since",n.lastModified[k]),n.etag[k]&&xe.setRequestHeader("If-None-Match",n.etag[k])),xe.setRequestHeader("Accept",u.dataTypes[0]&&u.accepts[u.dataTypes[0]]?u.accepts[u.dataTypes[0]]+(u.dataTypes[0]!=="*"?", "+fi+"; q=0.01":""):u.accepts["*"]);for(ot in u.headers)xe.setRequestHeader(ot,u.headers[ot]);if(u.beforeSend&&(u.beforeSend.call(c,xe,u)===!1||Se===2))return xe.abort(),!1;for(ot in{success:1,error:1,complete:1})xe[ot](u[ot]);if(Z=j(di,u,r,xe),!Z)o(-1,"No Transport");else{xe.readyState=1,it&&h.trigger("ajaxSend",[xe,u]),u.async&&u.timeout>0&&(ye=setTimeout(function(){xe.abort("timeout")},u.timeout));try{Se=1,Z.send(O,o)}catch(R){Se<2?o(-1,R):n.error(R)}}return xe},param:function(t,r){var o=[],u=function(h,v){v=n.isFunction(v)?v():v,o[o.length]=encodeURIComponent(h)+"="+encodeURIComponent(v)};if(r===i&&(r=n.ajaxSettings.traditional),n.isArray(t)||t.jquery&&!n.isPlainObject(t))n.each(t,function(){u(this.name,this.value)});else for(var c in t)$(c,t[c],r,u);return o.join("&").replace(Ea,"+")}}),n.extend({active:0,lastModified:{},etag:{}});var Ia=n.now(),Rn=/(\=)\?(&|$)|\?\?/i;n.ajaxSetup({jsonp:"callback",jsonpCallback:function(){return n.expando+"_"+Ia++}}),n.ajaxPrefilter("json jsonp",function(t,r,o){var u=t.contentType==="application/x-www-form-urlencoded"&&typeof t.data=="string";if(t.dataTypes[0]==="jsonp"||t.jsonp!==!1&&(Rn.test(t.url)||u&&Rn.test(t.data))){var c,h=t.jsonpCallback=n.isFunction(t.jsonpCallback)?t.jsonpCallback():t.jsonpCallback,v=e[h],g=t.url,S=t.data,k="$1"+h+"$2";return t.jsonp!==!1&&(g=g.replace(Rn,k),t.url===g&&(u&&(S=S.replace(Rn,k)),t.data===S&&(g+=(/\?/.test(g)?"&":"?")+t.jsonp+"="+h))),t.url=g,t.data=S,e[h]=function(O){c=[O]},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 cr=e.ActiveXObject?function(){for(var t in sn)sn[t](0,1)}:!1,za=0,sn;n.ajaxSettings.xhr=e.ActiveXObject?function(){return!this.isLocal&&M()||T()}:M,function(t){n.extend(n.support,{ajax:!!t,cors:!!t&&"withCredentials"in t})}(n.ajaxSettings.xhr()),n.support.ajax&&n.ajaxTransport(function(t){if(!t.crossDomain||n.support.cors){var r;return{send:function(o,u){var c=t.xhr(),h,v;if(t.username?c.open(t.type,t.url,t.async,t.username,t.password):c.open(t.type,t.url,t.async),t.xhrFields)for(v in t.xhrFields)c[v]=t.xhrFields[v];t.mimeType&&c.overrideMimeType&&c.overrideMimeType(t.mimeType),!t.crossDomain&&!o["X-Requested-With"]&&(o["X-Requested-With"]="XMLHttpRequest");try{for(v in o)c.setRequestHeader(v,o[v])}catch(g){}c.send(t.hasContent&&t.data||null),r=function(g,S){var k,O,P,B,W;try{if(r&&(S||c.readyState===4))if(r=i,h&&(c.onreadystatechange=n.noop,cr&&delete sn[h]),S)c.readyState!==4&&c.abort();else{k=c.status,P=c.getAllResponseHeaders(),B={},W=c.responseXML,W&&W.documentElement&&(B.xml=W),B.text=c.responseText;try{O=c.statusText}catch(Z){O=""}!k&&t.isLocal&&!t.crossDomain?k=B.text?200:404:k===1223&&(k=204)}}catch(Z){S||u(-1,Z)}B&&u(k,O,B,P)},!t.async||c.readyState===4?r():(h=++za,cr&&(sn||(sn={},n(e).unload(cr)),sn[h]=r),c.onreadystatechange=r)},abort:function(){r&&r(0,1)}}}});var dr={},Mt,ln,ja=/^(?:toggle|show|hide)$/,Wa=/^([+\-]=)?([\d+.\-]+)([a-z%]*)$/i,Dn,hi=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]],Nn;n.fn.extend({show:function(t,r,o){var u,c;if(t||t===0)return this.animate(f("show",3),t,r,o);for(var h=0,v=this.length;h=g.duration+this.startTime){this.now=this.end,this.pos=this.state=1,this.update(),g.animatedProperties[this.prop]=!0;for(r in g.animatedProperties)g.animatedProperties[r]!==!0&&(h=!1);if(h){if(g.overflow!=null&&!n.support.shrinkWrapBlocks&&n.each(["","X","Y"],function(S,k){v.style["overflow"+k]=g.overflow[S]}),g.hide&&n(v).hide(),g.hide||g.show)for(r in g.animatedProperties)n.style(v,r,g.orig[r]),n.removeData(v,"fxshow"+r,!0),n.removeData(v,"toggle"+r,!0);u=g.complete,u&&(g.complete=!1,u.call(v))}return!1}return g.duration==1/0?this.now=c:(o=c-this.startTime,this.state=o/g.duration,this.pos=n.easing[g.animatedProperties[this.prop]](this.state,o,0,1,g.duration),this.now=this.start+(this.end-this.start)*this.pos),this.update(),!0}},n.extend(n.fx,{tick:function(){for(var t,r=n.timers,o=0;o-1,k={},O={},P,B;S?(O=c.position(),P=O.top,B=O.left):(P=parseFloat(v)||0,B=parseFloat(g)||0),n.isFunction(r)&&(r=r.call(t,o,h)),r.top!=null&&(k.top=r.top-h.top+P),r.left!=null&&(k.left=r.left-h.left+B),"using"in r?r.using.call(t,k):c.css(k)}},n.fn.extend({position:function(){if(!this[0])return null;var t=this[0],r=this.offsetParent(),o=this.offset(),u=pi.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&&!pi.test(t.nodeName)&&n.css(t,"position")==="static";)t=t.offsetParent;return t})}}),n.each(["Left","Top"],function(t,r){var o="scroll"+r;n.fn[o]=function(u){var c,h;return u===i?(c=this[0],c?(h=a(c),h?"pageXOffset"in h?h[t?"pageYOffset":"pageXOffset"]:n.support.boxModel&&h.document.documentElement[o]||h.document.body[o]:c[o]):null):this.each(function(){h=a(this),h?h.scrollTo(t?n(h).scrollLeft():u,t?u:n(h).scrollTop()):this[o]=u})}}),n.each(["Height","Width"],function(t,r){var o=r.toLowerCase();n.fn["inner"+r]=function(){var u=this[0];return u?u.style?parseFloat(n.css(u,o,"padding")):this[o]():null},n.fn["outer"+r]=function(u){var c=this[0];return c?c.style?parseFloat(n.css(c,o,u?"margin":"border")):this[o]():null},n.fn[o]=function(u){var c=this[0];if(!c)return u==null?null:this;if(n.isFunction(u))return this.each(function(k){var O=n(this);O[o](u.call(this,k,O[o]()))});if(n.isWindow(c)){var h=c.document.documentElement["client"+r],v=c.document.body;return c.document.compatMode==="CSS1Compat"&&h||v&&v["client"+r]||h}if(c.nodeType===9)return Math.max(c.documentElement["client"+r],c.body["scroll"+r],c.documentElement["scroll"+r],c.body["offset"+r],c.documentElement["offset"+r]);if(u===i){var g=n.css(c,o),S=parseFloat(g);return n.isNumeric(S)?S:g}return this.css(o,typeof u=="string"?u:u+"px")}}),e.jQuery=e.$=n})(window);(function(e){var i,a,d="",f="4.1.0",y=Math.PI,b=y/2,T="ontouchstart"in window,M=T?{down:"touchstart",move:"touchmove",up:"touchend",over:"touchstart",out:"touchend"}:{down:"mousedown",move:"mousemove",up:"mouseup",over:"mouseover",out:"mouseout"},C={backward:["bl","tl"],forward:["br","tr"],all:["tl","bl","tr","br","l","r"]},E=["single","double"],$=["ltr","rtl"],re={acceleration:!0,display:"double",duration:600,page:1,gradients:!0,turnCorners:"bl,br",when:null},j={cornerSize:100},ne=6,D={init:function(s){i="WebKitCSSMatrix"in window||"MozPerspective"in document.body.style,a=le(),d=be();var l,n=0,m=this.data(),x=this.children();if(s=e.extend({width:this.width(),height:this.height(),direction:this.attr("dir")||this.css("direction")||"ltr"},re,s),m.opts=s,m.pageObjs={},m.pages={},m.pageWrap={},m.pageZoom={},m.pagePlace={},m.pageMv=[],m.zoom=1,m.totalPages=s.pages||0,m.eventHandlers={touchStart:e.proxy(D._touchStart,this),touchMove:e.proxy(D._touchMove,this),touchEnd:e.proxy(D._touchEnd,this),start:e.proxy(D._eventStart,this)},s.when)for(l in s.when)Ae(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;lae)throw pe('Page "'+l+'" cannot be inserted')}else l=ae,x=!0;return l>=1&&l<=ae&&(L.display=="double"?m=l%2?" odd":" even":m="",L.done&&this.turn("stop"),l in L.pageObjs&&D._movePages.call(this,l,1),x&&(L.totalPages=ae),L.pageObjs[l]=e(s).css({float:"left"}).addClass("page p"+l+m),!U()&&L.pageObjs[l].hasClass("hard")&&L.pageObjs[l].removeClass("hard"),D._addPage.call(this,l),D._removeFromDOM.call(this)),this},_addPage:function(s){var l=this.data(),n=l.pageObjs[s];if(n)if(D._necessPage.call(this,s)){if(!l.pageWrap[s]){l.pageWrap[s]=e("
",{class:"page-wrapper",page:s,css:{position:"absolute",overflow:"hidden"}}),this.append(l.pageWrap[s]),l.pagePlace[s]||(l.pagePlace[s]=s,l.pageObjs[s].appendTo(l.pageWrap[s]));var m=D._pageSize.call(this,s,!0);n.css({width:m.width,height:m.height}),l.pageWrap[s].css(m)}l.pagePlace[s]==s&&D._makeFlip.call(this,s)}else l.pagePlace[s]=0,l.pageObjs[s]&&l.pageObjs[s].remove()},hasPage:function(s){return Ae(s,this.data().pageObjs)},center:function(s){var l=this.data(),n=e(this).turn("size"),m=0;if(!l.noCenter){if(l.display=="double"){var x=this.turn("view",s||l.tpage||l.page);l.direction=="ltr"?x[0]?x[1]||(m+=n.width/4):m-=n.width/4:x[0]?x[1]||(m-=n.width/4):m+=n.width/4}e(this).css({marginLeft:m})}return this},destroy:function(){var s=this,l=this.data(),n=["end","first","flip","last","pressed","released","start","turning","turned","zooming","missing"];if(Te("destroying",this)!="prevented"){for(l.destroying=!0,e.each(n,function(m,x){s.unbind(x)}),this.parent().unbind("start",l.eventHandlers.start),e(document).unbind(M.move,l.eventHandlers.touchMove).unbind(M.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 pe(s+" is not a value for zoom");if(Te("zooming",this,[s,l.zoom])=="prevented")return this;var n=this.turn("size"),m=this.turn("view"),x=1/l.zoom,L=Math.round(n.width*x*s),ae=Math.round(n.height*x*s);l.zoom=s,e(this).turn("stop").turn("size",L,ae),l.opts.autoCenter&&this.turn("center"),D._updateShadow.call(this);for(var ee=0;eeL.totalPages)throw pe('"'+s+'" is not a valid page');return x[1]=x[1]||x[0],x[0]>=1&&x[1]<=L.totalPages?(l=Math.floor((ne-2)/2),L.totalPages-x[1]>x[0]?(n=Math.min(x[0]-1,l),m=2*l-n):(m=Math.min(L.totalPages-x[1],l),n=2*l-m)):(n=ne-1,m=ne-1),[Math.max(1,x[0]-n),Math.min(L.totalPages,x[1]+m)]},_necessPage:function(s){if(s===0)return!0;var l=this.turn("range");return this.data().pageObjs[s].hasClass("fixed")||s>=l[0]&&s<=l[1]},_removeFromDOM:function(){var s,l=this.data();for(s in l.pageWrap)Ae(s,l.pageWrap)&&!D._necessPage.call(this,s)&&D._removePageFromDOM.call(this,s)},_removePageFromDOM:function(s){var l=this.data();if(l.pages[s]){var n=l.pages[s].data();_._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]),D._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 pe("The page "+s+" doesn't exist");l.pageObjs[s]&&(this.turn("stop"),D._removePageFromDOM.call(this,s),delete l.pageObjs[s]),D._movePages.call(this,s,-1),l.totalPages=l.totalPages-1,l.page>l.totalPages?(l.page=null,D._fitPage.call(this,l.totalPages)):(D._makeRange.call(this),this.turn("update"))}return this},_movePages:function(s,l){var n,m=this,x=this.data(),L=x.display=="single",ae=function(ee){var ve=ee+l,Re=ve%2,Ne=Re?" odd ":" even ";x.pageObjs[ee]&&(x.pageObjs[ve]=x.pageObjs[ee].removeClass("p"+ee+" odd even").addClass("p"+ve+Ne)),x.pagePlace[ee]&&x.pageWrap[ee]&&(x.pagePlace[ve]=ve,x.pageObjs[ve].hasClass("fixed")?x.pageWrap[ve]=x.pageWrap[ee].attr("page",ve):x.pageWrap[ve]=x.pageWrap[ee].css(D._pageSize.call(m,ve,!0)).attr("page",ve),x.pages[ee]&&(x.pages[ve]=x.pages[ee].flip("options",{page:ve,next:L||Re?ve+1:ve-1})),l&&(delete x.pages[ee],delete x.pagePlace[ee],delete x.pageZoom[ee],delete x.pageObjs[ee],delete x.pageWrap[ee]))};if(l>0)for(n=x.totalPages;n>=s;n--)ae(n);else for(n=s;n<=x.totalPages;n++)ae(n)},display:function(s){var l=this.data(),n=l.display;if(s===void 0)return n;if(e.inArray(s,E)==-1)throw pe('"'+s+'" is not a value for display');switch(s){case"single":l.pageObjs[0]||(this.turn("stop").css({overflow:"hidden"}),l.pageObjs[0]=e("
",{class:"page p-temporal"}).css({width:this.width(),height:this.height()}).appendTo(this)),this.addClass("shadow");break;case"double":l.pageObjs[0]&&(this.turn("stop").css({overflow:""}),l.pageObjs[0].remove(),delete l.pageObjs[0]),this.removeClass("shadow");break}if(l.display=s,n){var m=this.turn("size");D._movePages.call(this,1,0),this.turn("size",m.width,m.height).turn("update")}return this},direction:function(s){var l=this.data();if(s===void 0)return l.direction;if(s=s.toLowerCase(),e.inArray(s,$)==-1)throw pe('"'+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(Ae(l,n.pages)&&(s=n.pages[l].flip("corner")))return s;return!1},data:function(){return this.data()},disable:function(s){var l,n=this.data(),m=this.turn("view");n.disabled=s===void 0||s===!0;for(l in n.pages)Ae(l,n.pages)&&n.pages[l].flip("disable",n.disabled?!0:e.inArray(parseInt(l,10),m)==-1);return this},disabled:function(s){return s===void 0?this.data().disabled===!0:this.turn("disable",s)},size:function(s,l){if(s===void 0||l===void 0)return{width:this.width(),height:this.height()};this.turn("stop");var n,m,x=this.data(),L=x.display=="double"?s/2:s;this.css({width:s,height:l}),x.pageObjs[0]&&x.pageObjs[0].css({width:L,height:l});for(n in x.pageWrap)Ae(n,x.pageWrap)&&(m=D._pageSize.call(this,n,!0),x.pageObjs[n].css({width:m.width,height:m.height}),x.pageWrap[n].css(m),x.pages[n]&&x.pages[n].css({width:m.width,height:m.height}));return this.turn("resize"),this},resize:function(){var s,l=this.data();for(l.pages[0]&&(l.pageWrap[0].css({left:-this.width()}),l.pages[0].flip("resize",!0)),s=1;s<=l.totalPages;s++)l.pages[s]&&l.pages[s].flip("resize",!0);D._updateShadow.call(this),l.opts.autoCenter&&this.turn("center")},_removeMv:function(s){var l,n=this.data();for(l=0;l0?n[0]:0,n[1]<=l.totalPages?n[1]:0]:[n[0]>0&&n[0]<=l.totalPages?n[0]:0]},stop:function(s,l){if(this.turn("animating")){var n,m,x,L=this.data();for(L.tpage&&(L.page=L.tpage,delete L.tpage),n=0;ns;n--)this.turn("removePage",n);return l.totalPages=s,D._fitPage.call(this,l.page),this}else return l.totalPages},_missing:function(s){var l=this.data();if(!(l.totalPages<1)){var n,m=this.turn("range",s),x=[];for(n=m[0];n<=m[1];n++)l.pageObjs[n]||x.push(n);x.length>0&&this.trigger("missing",[x])}},_fitPage:function(s){var l=this.data(),n=this.turn("view",s);if(D._missing.call(this,s),!!l.pageObjs[s]){l.page=s,this.turn("stop");for(var m=0;mL[1]?(l=L[1],n=ae[0]):L[0]&&sl?"r":"l"):m.pages[l].flip("turnPage",s>l?"l":"r"):m.direction=="ltr"?m.pages[l].flip("turnPage",ve[s>l?1:0]):m.pages[l].flip("turnPage",ve[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?D._fitPage.call(this,s):D._turnPage.call(this,s)),this;throw pe("The page "+s+" does not exist")}},next:function(){return this.turn("page",Math.min(this.data().totalPages,D._view.call(this,this.data().page).pop()+1))},previous:function(){return this.turn("page",Math.max(1,D._view.call(this,this.data().page).shift()-1))},peel:function(s,l){var n=this.data(),m=this.turn("view");if(l=l===void 0?!0:l===!0,s===!1)this.turn("stop",null,l);else if(n.display=="single")n.pages[n.page].flip("peel",s,l);else{var x;n.direction=="ltr"?x=s.indexOf("l")!=-1?m[0]:m[1]:x=s.indexOf("l")!=-1?m[1]:m[0],n.pages[x]&&n.pages[x].flip("peel",s,l)}return this},_addMotionPage:function(){var s=e(this).data().f.opts,l=s.turn;l.data(),D._addMv.call(l,s.page)},_eventStart:function(s,l,n){var m=l.turn.data(),x=m.pageZoom[l.page];if(s.isDefaultPrevented()){D._updateShadow.call(l.turn);return}x&&x!=m.zoom&&(l.turn.trigger("zoomed",[l.page,l.turn.turn("view",l.page),x,m.zoom]),m.pageZoom[l.page]=m.zoom),m.display=="single"&&n&&(n.charAt(1)=="l"&&m.direction=="ltr"||n.charAt(1)=="r"&&m.direction=="rtl"?(l.next=l.nextl.page?l.next:l.page+1),D._addMotionPage.call(s.target),D._updateShadow.call(l.turn)},_eventEnd:function(s,l,n){var m=e(s.target);m.data().f;var x=l.turn,L=x.data();if(n){var ae=L.tpage||L.page;(ae==l.next||ae==l.page)&&(delete L.tpage,D._fitPage.call(x,ae||l.next,!0))}else D._removeMv.call(x,l.page),D._updateShadow.call(x),x.turn("update")},_eventPressed:function(s){var l=e(s.target).data().f,n=l.opts.turn,m=n.data();return m.pages,m.mouseAction=!0,n.turn("update"),l.time=new Date().getTime()},_eventReleased:function(s,l){var n,m=e(s.target),x=m.data().f,L=x.opts.turn,ae=L.data();ae.display=="single"?n=l.corner=="br"||l.corner=="tr"?l.xm.width()/2:n=l.x<0||l.x>m.width(),(new Date().getTime()-x.time<200||n)&&(s.preventDefault(),D._turnPage.call(L,x.opts.next)),ae.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(Ae(l,s.pages)&&_._eventStart.apply(s.pages[l],arguments)===!1)return!1},_touchMove:function(){var s=this.data();for(var l in s.pages)Ae(l,s.pages)&&_._eventMove.apply(s.pages[l],arguments)},_touchEnd:function(){var s=this.data();for(var l in s.pages)Ae(l,s.pages)&&_._eventEnd.apply(s.pages[l],arguments)},calculateZ:function(s){var l,n,m,x,L,ae=this,ee=this.data(),ve=this.turn("view"),Re=ve[0]||ve[1],Ne=s.length-1,Ie={pageZ:{},partZ:{},pageV:{}},lt=function(nt){var He=ae.turn("view",nt);He[0]&&(Ie.pageV[He[0]]=!0),He[1]&&(Ie.pageV[He[1]]=!0)};for(l=0;l<=Ne;l++)n=s[l],m=ee.pages[n].data().f.opts.next,x=ee.pagePlace[n],lt(n),lt(m),L=ee.pagePlace[m]==m?m:n,Ie.pageZ[L]=ee.totalPages-Math.abs(Re-L),Ie.partZ[x]=ee.totalPages*2-Ne+l;return Ie},update:function(){var s,l=this.data();if(this.turn("animating")&&l.pageMv[0]!==0){var n,m,x=this.turn("calculateZ",l.pageMv),L=this.turn("corner"),ae=this.turn("view"),ee=this.turn("view",l.tpage);for(s in l.pageWrap)Ae(s,l.pageWrap)&&(m=l.pageObjs[s].hasClass("fixed"),l.pageWrap[s].css({display:x.pageV[s]||m?"":"none",zIndex:(l.pageObjs[s].hasClass("hard")?x.partZ[s]:x.pageZ[s])||(m?-1:0)}),(n=l.pages[s])&&(n.flip("z",x.partZ[s]||null),x.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!=ae[0]&&s!=ae[1])))}else for(s in l.pageWrap)if(Ae(s,l.pageWrap)){var ve=D._setPageLoc.call(this,s);l.pages[s]&&l.pages[s].flip("disable",l.disabled||ve!=1).flip("hover",!0).flip("z",null)}return this},_updateShadow:function(){var s,l,n,m=this.data(),x=this.width(),L=this.height(),ae=m.display=="single"?x:x/2;s=this.turn("view"),m.shadow||(m.shadow=e("
",{class:"shadow",css:G(0,0,0).css}).appendTo(this));for(var ee=0;ee=n||x.y>=m)return!1;var ae=_._cAllowed.call(this);switch(l.effect){case"hard":if(x.x>n-L)x.corner="r";else if(x.x=m-L)x.corner+="b";else return!1;if(x.x<=L)x.corner+="l";else if(x.x>=n-L)x.corner+="r";else return!1;break}return!x.corner||e.inArray(x.corner,ae)==-1?!1:x},_isIArea:function(s){var l=this.data().f.parent.offset();return s=T&&s.originalEvent?s.originalEvent.touches[0]:s,_._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 Y(l,l);case"tr":return Y(this.width()-l,l);case"bl":return Y(l,this.height()-l);case"br":return Y(this.width()-l,this.height()-l);case"l":return Y(l,0);case"r":return Y(this.width()-l,0)}},_c2:function(s){switch(s){case"tl":return Y(this.width()*2,0);case"tr":return Y(-this.width(),0);case"bl":return Y(this.width()*2,this.height());case"br":return Y(-this.width(),this.height());case"l":return Y(this.width()*2,0);case"r":return Y(-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("
",G(0,0,1)).css({position:"",width:this.width(),height:this.height()}).appendTo(s.parent)),n},type:function(){return this.data().f.effect},resize:function(s){var l=this.data().f,n=l.opts.turn.data(),m=this.width(),x=this.height();switch(l.effect){case"hard":s&&(l.wrapper.css({width:m,height:x}),l.fpage.css({width:m,height:x}),n.opts.gradients&&(l.ashadow.css({width:m,height:x}),l.bshadow.css({width:m,height:x})));break;case"sheet":if(s){var L=Math.round(Math.sqrt(Math.pow(m,2)+Math.pow(x,2)));l.wrapper.css({width:L,height:L}),l.fwrapper.css({width:L,height:L}).children(":first-child").css({width:m,height:x}),l.fpage.css({width:m,height:x}),n.opts.gradients&&l.ashadow.css({width:m,height:x}),_._backGradient.call(this)&&l.bshadow.css({width:m,height:x})}if(l.parent.is(":visible")){var ae=ke(l.parent[0]);l.fwrapper.css({top:ae.top,left:ae.left}),ae=ke(l.opts.turn[0]),l.fparent.css({top:-ae.top,left:-ae.left})}this.flip("z",l.opts["z-index"]);break}},_addPageWrapper:function(){var s=this.data().f,l=s.opts.turn.data(),n=this.parent();if(s.parent=n,!s.wrapper)switch(s.effect){case"hard":var m={};m[d+"transform-style"]="preserve-3d",m[d+"backface-visibility"]="hidden",s.wrapper=e("
",G(0,0,2)).css(m).appendTo(n).prepend(this),s.fpage=e("
",G(0,0,1)).css(m).appendTo(n),l.opts.gradients&&(s.ashadow=e("
",G(0,0,0)).hide().appendTo(n),s.bshadow=e("
",G(0,0,0)));break;case"sheet":if(this.width(),this.height(),s.fparent=s.opts.turn.data().fparent,!s.fparent){var x=e("
",{css:{"pointer-events":"none"}}).hide();x.data().flips=0,x.css(G(0,0,"auto","visible").css).appendTo(s.opts.turn),s.opts.turn.data().fparent=x,s.fparent=x}this.css({position:"absolute",top:0,left:0,bottom:"auto",right:"auto"}),s.wrapper=e("
",G(0,0,this.css("z-index"))).appendTo(n).prepend(this),s.fwrapper=e("
",G(n.offset().top,n.offset().left)).hide().appendTo(s.fparent),s.fpage=e("
",G(0,0,0,"visible")).css({cursor:"default"}).appendTo(s.fwrapper),l.opts.gradients&&(s.ashadow=e("
",G(0,0,1)).appendTo(s.fpage)),_.setData.call(this,s);break}_.resize.call(this,!0)},_fold:function(s){var l=this.data().f,n=l.opts.turn.data(),m=_._c.call(this,s.corner),x=this.width(),L=this.height();switch(l.effect){case"hard":s.corner=="l"?s.x=Math.min(Math.max(s.x,0),x*2):s.x=Math.max(Math.min(s.x,x),-x);var ae,ee,ve,Re,Ne,Ie=n.totalPages,lt=l.opts["z-index"]||Ie,nt={overflow:"visible"},He=m.x?(m.x-s.x)/x:s.x/x,K=He*90,me=K<90;switch(s.corner){case"l":Re="0% 50%",Ne="100% 50%",me?(ae=0,ee=l.opts.next-1>0,ve=1):(ae="100%",ee=l.opts.page+1b&&(Ge.x=Ge.x+Math.abs(Ge.y*qe.y/qe.x),Ge.y=0,Math.round(Ge.x*Math.tan(y-ze))b){var we=y-ze,De=Ft-L/Math.sin(we);pt=Y(Math.round(De*Math.cos(we)),Math.round(De*Math.sin(we))),yt&&(pt.x=-pt.x),At&&(pt.y=-pt.y)}_e=Math.round(Ge.y/Math.tan(ze)+Ge.x);var je=x-_e,Ke=je*Math.cos(ze*2),dt=je*Math.sin(ze*2);if(mt=Y(Math.round(yt?je-Ke:_e+Ke),Math.round(At?dt:L-dt)),n.opts.gradients){et=je*Math.sin(ze);var Fe=_._c2.call(ce,s.corner),$e=Math.sqrt(Math.pow(Fe.x-s.x,2)+Math.pow(Fe.y-s.y,2))/x;on=Math.sin(b*($e>1?2-$e:$e)),kt=Math.min($e,1),rt=et>100?(et-100)/et:0,Xe=Y(et*Math.sin(ze)/x*100,et*Math.cos(ze)/L*100),_._backGradient.call(ce)&&(Ye=Y(et*1.2*Math.sin(ze)/x*100,et*1.2*Math.cos(ze)/L*100),yt||(Ye.x=100-Ye.x),At||(Ye.y=100-Ye.y))}return Ge.x=Math.round(Ge.x),Ge.y=Math.round(Ge.y),!0},It=function(qe,Je,ze,V){var de=["0","auto"],we=(x-Ft)*ze[0]/100,De=(L-Ft)*ze[1]/100,je={left:de[Je[0]],top:de[Je[1]],right:de[Je[2]],bottom:de[Je[3]]},Ke={},dt=V!=90&&V!=-90?yt?-1:1:0,Fe=ze[0]+"% "+ze[1]+"%";ce.css(je).transform(ge(V)+ue(qe.x+dt,qe.y,Rt),Fe),l.fpage.css(je).transform(ge(V)+ue(qe.x+mt.x-pt.x-x*ze[0]/100,qe.y+mt.y-pt.y-L*ze[1]/100,Rt)+ge((180/V-2)*V),Fe),l.wrapper.transform(ue(-qe.x+we-dt,-qe.y+De,Rt)+ge(-V),Fe),l.fwrapper.transform(ue(-qe.x+pt.x+we,-qe.y+pt.y+De,Rt)+ge(-V),Fe),n.opts.gradients&&(ze[0]&&(Xe.x=100-Xe.x),ze[1]&&(Xe.y=100-Xe.y),Ke["box-shadow"]="0 0 20px rgba(0,0,0,"+.5*on+")",xn.css(Ke),Be(l.ashadow,Y(yt?100:0,At?0:100),Y(Xe.x,Xe.y),[[rt,"rgba(0,0,0,0)"],[(1-rt)*.8+rt,"rgba(0,0,0,"+.2*kt+")"],[1,"rgba(255,255,255,"+.2*kt+")"]],3),_._backGradient.call(ce)&&Be(l.bshadow,Y(yt?0:100,At?0:100),Y(Ye.x,Ye.y),[[.6,"rgba(0,0,0,0)"],[.8,"rgba(0,0,0,"+.3*kt+")"],[1,"rgba(0,0,0,0)"]],3))};switch(s.corner){case"l":break;case"r":break;case"tl":s.x=Math.max(s.x,1),wt(),It(Ge,[1,0,0,1],[100,0],Ee);break;case"tr":s.x=Math.min(s.x,x-1),wt(),It(Y(-Ge.x,Ge.y),[0,0,0,1],[0,0],-Ee);break;case"bl":s.x=Math.max(s.x,1),wt(),It(Y(Ge.x,-Ge.y),[1,1,0,0],[100,100],-Ee);break;case"br":s.x=Math.min(s.x,x-1),wt(),It(Y(-Ge.x,-Ge.y),[0,1,1,0],[0,100],Ee);break}break}l.point=s},_moveFoldingPage:function(s){var l=this.data().f;if(l){var n=l.opts.turn,m=n.data(),x=m.pagePlace;if(s){var L=l.opts.next;if(x[L]!=l.opts.page){l.folding&&_._moveFoldingPage.call(this,!1);var ae=_._foldingPage.call(this);ae.appendTo(l.fpage),x[L]=l.opts.page,l.folding=L}n.turn("update")}else if(l.folding){if(m.pages[l.folding]){var ee=m.pages[l.folding].data().f;m.pageObjs[l.folding].appendTo(ee.wrapper)}else m.pageWrap[l.folding]&&m.pageObjs[l.folding].appendTo(m.pageWrap[l.folding]);l.folding in x&&(x[l.folding]=l.folding),delete l.folding}}},_showFoldedPage:function(s,l){var n=_._foldingPage.call(this),m=this.data(),x=m.f,L=x.visible;if(n){if(!L||!x.point||x.point.corner!=s.corner){var ae=x.status=="hover"||x.status=="peel"||x.opts.turn.data().mouseAction?s.corner:null;if(L=!1,Te("start",this,[x.opts,ae])=="prevented")return!1}if(l){var ee=this,ve=x.point&&x.point.corner==s.corner?x.point:_._c.call(this,s.corner,1);this.animatef({from:[ve.x,ve.y],to:[s.x,s.y],duration:500,frame:function(Re){s.x=Math.round(Re[0]),s.y=Math.round(Re[1]),_._fold.call(ee,s)}})}else _._fold.call(this,s),m.effect&&!m.effect.turning&&this.animatef(!1);if(!L)switch(x.effect){case"hard":x.visible=!0,_._moveFoldingPage.call(this,!0),x.fpage.show(),x.opts.shadows&&x.bshadow.show();break;case"sheet":x.visible=!0,x.fparent.show().data().flips++,_._moveFoldingPage.call(this,!0),x.fwrapper.show(),x.bshadow&&x.bshadow.show();break}return!0}return!1},hide:function(){var s=this.data().f,l=s.opts.turn.data(),n=_._foldingPage.call(this);switch(s.effect){case"hard":l.opts.gradients&&(s.bshadowLoc=0,s.bshadow.remove(),s.ashadow.hide()),s.wrapper.transform(""),s.fpage.hide();break;case"sheet":--s.fparent.data().flips===0&&s.fparent.hide(),this.css({left:0,top:0,right:"auto",bottom:"auto"}).transform(""),s.wrapper.transform(""),s.fwrapper.hide(),s.bshadow&&s.bshadow.hide(),n.transform("");break}return s.visible=!1,this},hideFoldedPage:function(s){var l=this.data().f;if(l.point){var n=this,m=l.point,x=function(){l.point=null,l.status="",n.flip("hide"),n.trigger("end",[l.opts,!1])};if(s){var L=_._c.call(this,m.corner),ae=m.corner.substr(0,1)=="t",ee=ae?Math.min(0,m.y-L.y)/2:Math.max(0,m.y-L.y)/2,ve=Y(m.x,m.y+ee),Re=Y(L.x,L.y-ee);this.animatef({from:0,to:1,frame:function(Ne){var Ie=z(m,ve,Re,L,Ne);m.x=Ie.x,m.y=Ie.y,_._fold.call(n,m)},complete:x,duration:800,hiding:!0})}else this.animatef(!1),x()}},turnPage:function(s){var l=this,n=this.data().f,m=n.opts.turn.data();s={corner:n.corner?n.corner.corner:s||_._cAllowed.call(this)[0]};var x=n.point||_._c.call(this,s.corner,n.opts.turn?m.opts.elevation:0),L=_._c2.call(this,s.corner);this.trigger("flip").animatef({from:0,to:1,frame:function(ae){var ee=z(x,x,L,L,ae);s.x=ee.x,s.y=ee.y,_._showFoldedPage.call(l,s)},complete:function(){l.trigger("end",[n.opts,!0])},duration:m.opts.duration,turning:!0}),n.corner=null},moving:function(){return"effect"in this.data()},isTurning:function(){return this.flip("moving")&&this.data().effect.turning},corner:function(){return this.data().f.corner},_eventStart:function(s){var l=this.data().f,n=l.opts.turn;if(!l.corner&&!l.disabled&&!this.flip("isTurning")&&l.opts.page==n.data().pagePlace[l.opts.page]){if(l.corner=_._isIArea.call(this,s),l.corner&&_._foldingPage.call(this))return this.trigger("pressed",[l.point]),_._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,_._showFoldedPage.call(this,l.corner)}else if(l.hover&&!this.data().effect&&this.is(":visible")){var m=_._isIArea.call(this,s[0]);if(m){if(l.effect=="sheet"&&m.corner.length==2||l.effect=="hard"){l.status="hover";var x=_._c.call(this,m.corner,l.opts.cornerSize/2);m.x=x.x,m.y=x.y,_._showFoldedPage.call(this,m,!0)}}else l.status=="hover"&&(l.status="",_.hideFoldedPage.call(this,!0))}}},_eventEnd:function(){var s=this.data().f,l=s.corner;!s.disabled&&l&&Te("released",this,[s.point||l])!="prevented"&&_.hideFoldedPage.call(this,!0),s.corner=null},disable:function(s){return _.setData.call(this,{disabled:s}),this},hover:function(s){return _.setData.call(this,{hover:s}),this},peel:function(s,l){var n=this.data().f;if(s){if(e.inArray(s,C.all)==-1)throw pe("Corner "+s+" is not permitted");if(e.inArray(s,_._cAllowed.call(this))!=-1){var m=_._c.call(this,s,n.opts.cornerSize/2);n.status="peel",_._showFoldedPage.call(this,{corner:s,x:m.x,y:m.y},l)}}else n.status="",_.hideFoldedPage.call(this,l);return this}};function J(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 pe(n[0]+" is not a method or property")}function G(s,l,n,m){return{css:{position:"absolute",top:s,left:l,overflow:m||"hidden",zIndex:n||"auto"}}}function z(s,l,n,m,x){var L=1-x,ae=L*L*L,ee=x*x*x;return Y(Math.round(ae*s.x+3*x*L*L*l.x+3*x*x*L*n.x+ee*m.x),Math.round(ae*s.y+3*x*L*L*l.y+3*x*x*L*n.y+ee*m.y))}function he(s){return s/y*180}function Y(s,l){return{x:s,y:l}}function le(){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 ge(s){return" rotate("+s+"deg) "}function Ae(s,l){return Object.prototype.hasOwnProperty.call(l,s)}function be(){for(var s=["Moz","Webkit","Khtml","O","ms"],l=s.length,n="";l--;)s[l]+"Transform"in document.body.style&&(n="-"+s[l].toLowerCase()+"-");return n}function Pe(){var s,l=document.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MSTransition:"transitionend",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(s in n)if(l.style[s]!==void 0)return n[s]}function Be(s,l,n,m,x){var L,ae=[];if(d=="-webkit-"){for(L=0;L{us({api:"goBack"})},a=On({currentGradeNum:0,page:1,rows:999,type:"COURSEWARE"}),d=Ue(()=>uo.grades.map((z,he)=>({...z,color:a.currentGradeNum===he?"var(--van-primary-color)":"",className:a.currentGradeNum===he?"fontBlod":""}))),f=(z,he)=>{a.currentGradeNum=he,$()},y=Ce(!1),b=On({list:[],loading:!1,favoriteList:[],tab:"all",details:[],bookData:{},showBook:!1,book:{}}),T=async()=>{var he;b.loading=!0;const z=await su({...a,currentGradeNum:a.currentGradeNum?a.currentGradeNum:""});(z==null?void 0:z.code)===200&&Array.isArray((he=z==null?void 0:z.data)==null?void 0:he.rows)&&(b.list=z.data.rows.map(Y=>(Y.load=!1,Y.key=Date.now()+Y.id,Y))),b.loading=!1,y.value=!0},M=async()=>{var he,Y,le;b.loading=!0;const z=await lu({clientType:"STUDENT",userId:(Y=(he=cs.user)==null?void 0:he.data)==null?void 0:Y.id,page:a.page,rows:a.rows,currentGradeNum:a.currentGradeNum?a.currentGradeNum:""});(z==null?void 0:z.code)===200&&Array.isArray((le=z==null?void 0:z.data)==null?void 0:le.rows)&&(b.list=z.data.rows.map(ue=>(ue.name=`${ue.name}`,ue.load=!1,ue.favoriteFlag=!0,ue.key=Date.now()+ue.id,ue))),b.loading=!1},C=async()=>{var he;b.loading=!0;const z=await uu({page:a.page,rows:a.rows});(z==null?void 0:z.code)===200&&Array.isArray((he=z==null?void 0:z.data)==null?void 0:he.rows)&&(b.list=z.data.rows.map(Y=>(Y.load=!1,Y.key=Date.now()+Y.id,Y))),b.loading=!1,y.value=!0},E=()=>{b.tab==="all"&&T(),b.tab==="favorite"&&M(),b.tab==="course"&&C()},$=()=>{E()};Ot(()=>{E()});const re=async z=>{z.favoriteFlag?await cu({lessonCoursewareId:z.id}):(await du({lessonCoursewareId:z.id}),b.tab==="favorite"&&E())};let j=null;const ne=(z,he=300)=>{j&&clearTimeout(j),j=setTimeout(z,he)},D=async z=>{var he,Y;if(b.tab==="course"){const le=await hu(z.id);if(console.log(le,z,"course"),(le==null?void 0:le.code)==200&&Array.isArray((he=le==null?void 0:le.data)==null?void 0:he.lessonList))b.details=le.data.lessonList||[],b.bookData=le.data,console.log("🚀 ~ data.details course:",b.details);else{ds({title:"提示",message:"课程教材已更新,是否重新加载?"}).then(()=>{E()}).catch(()=>{});return}}else{const le=await fu(z.id);(le==null?void 0:le.code)==200&&Array.isArray((Y=le==null?void 0:le.data)==null?void 0:Y.lessonList)&&(b.details=le.data.lessonList||[],b.bookData=le.data,console.log("🚀 ~ data.details:",b.details))}_(z.id),J(()=>{b.showBook=!0})},_=z=>{const he=document.querySelector(`[data-id="${z}"]`);if(!he)return;const Y=he.getBoundingClientRect();b.book=Y},J=z=>{requestAnimationFrame(()=>{requestAnimationFrame(()=>{z()})})},G=async z=>{await D(z)};return()=>te("div",{class:ut.container},[te("div",{class:ut.head,style:{opacity:b.showBook?0:""}},[te("div",{class:ut.back,onClick:i},[te("img",{src:Oo},null)]),te(js,{class:ut.tabs,active:b.tab,"onUpdate:active":z=>b.tab=z,onChange:()=>$()},{default:()=>[te(vr,{title:"全部教材",name:"all"},null),te(vr,{title:"课程教材",name:"course"},null),te(vr,{name:"favorite"},{title:()=>te("div",{id:"courseware-2"},[vt("我的收藏")])})]}),te(zl,{show:e.value,"onUpdate:show":z=>e.value=z,class:ut.popover,actions:d.value,onSelect:f},{reference:()=>te(pn,En({class:ut.downBtn,round:!0,size:"small"},{id:"courseware-3"}),{default:()=>[uo.grades[a.currentGradeNum].text," ",te("svg",{class:[ut.icon,e.value?ut.iconUp:""],width:"9px",height:"5px",viewBox:"0 0 9 5",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[te("title",null,[vt("三角形")]),te("g",{id:"演示用",stroke:"none","stroke-width":"1",fill:"currentColor","fill-rule":"evenodd"},[te("g",{id:"全部教材-筛选",transform:"translate(-769.000000, -35.000000)",fill:"currentColor"},[te("g",{id:"编组-3",transform:"translate(696.000000, 20.000000)"},[te("g",{id:"筛选目录备份-2",transform:"translate(13.000000, 7.000000)"},[te("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)])])])])])]})})]),te("div",{class:ut.content},[te("div",{class:[ut.wrap,b.list.length<=0&&!b.loading?ut.emtpyWrap:""]},[b.list.map((z,he)=>te("div",{class:[ut.wrapItem,b.bookData.id===z.id&&b.showBook?ut.wrapItemHide:""],key:z.key,onClick:()=>G(z)},[te("div",{class:ut.item},[te(Op,En({"data-id":z.id},{id:he==0?"courseware-0":""},{class:[ut.cover,z.load?ut.loaded:""],objectFit:"cover",src:z.coverImg,onLoad:()=>{z.load=!0},onError:()=>{z.load=!0}}),null)]),te("div",{class:ut.name},[z.name]),!b.loading&&b.tab!=="course"&&te("div",{id:he===0?"courseware-1":"",class:ut.favoriteBtn,onClick:Y=>{Y.stopPropagation(),z.favoriteFlag=!z.favoriteFlag,ne(()=>re(z))}},[te(Rp,{isFavorite:z.favoriteFlag},null)])])),b.list.length<=0&&!b.loading&&te(ls,{image:"list",description:"暂无数据"},null)])]),te($p,{show:b.showBook,bookData:b.bookData,tab:b.tab,rect:b.book,onClose:()=>{b.showBook=!1}},null),y.value?te(qp,null,null):null])}});export{uo as BOOK_DATA,Jp as default};