!function(){function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;n=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=r.call(i,"catchLoc"),l=r.call(i,"finallyLoc");if(s&&l){if(this.prev=0;--n){var o=this.tryEntries[n];if(o.tryLoc<=this.prev&&r.call(o,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),S(n),p}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;S(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:M(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),p}},e}function r(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(c){return void n(c)}s.done?t(l):Promise.resolve(l).then(r,o)}function o(e){return function(){var t=this,n=arguments;return new Promise((function(o,i){var a=e.apply(t,n);function s(e){r(a,o,i,s,l,"next",e)}function l(e){r(a,o,i,s,l,"throw",e)}s(void 0)}))}}function i(e,t,n){return(t=l(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){return function(e){if(Array.isArray(e))return p(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||f(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function s(e,t){for(var n=0;n=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,a=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return a=e.done,e},e:function(e){s=!0,i=e},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw i}}}}function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function d(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,s=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(u){c=!0,o=u}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(e,t)||f(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(e,t){if(e){if("string"==typeof e)return p(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?p(e,t):void 0}}function p(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&Ct(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&Ct(r.height)/e.offsetHeight||1);var a=(wt(e)?bt(e):window).visualViewport,s=!!/^((?!chrome|android).)*safari/i.test(Tt())&&n,l=(r.left+(s&&a?a.offsetLeft:0))/o,c=(r.top+(s&&a?a.offsetTop:0))/i,u=r.width/o,d=r.height/i;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function St(e){var t=bt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Et(e){return e?(e.nodeName||"").toLowerCase():null}function Mt(e){return((wt(e)?e.ownerDocument:e.document)||window.document).documentElement}function Ot(e){return bt(e).getComputedStyle(e)}function Pt(e){var t=Ot(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function _t(e,t,n){void 0===n&&(n=!1);var r,o,i=xt(t),a=xt(t)&&function(e){var t=e.getBoundingClientRect(),n=Ct(t.width)/e.offsetWidth||1,r=Ct(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=Mt(t),l=kt(e,a,n),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!n)&&(("body"!==Et(t)||Pt(s))&&(c=(r=t)!==bt(r)&&xt(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:St(r)),xt(t)?((u=kt(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=function(e){return kt(Mt(e)).left+St(e).scrollLeft}(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function jt(e){return"html"===Et(e)?e:e.assignedSlot||e.parentNode||(At(e)?e.host:null)||Mt(e)}function Nt(e){return["html","body","#document"].indexOf(Et(e))>=0?e.ownerDocument.body:xt(e)&&Pt(e)?e:Nt(jt(e))}function Dt(e,t){var n;void 0===t&&(t=[]);var r=Nt(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=bt(r),a=o?[i].concat(i.visualViewport||[],Pt(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Dt(jt(a)))}function zt(e){return["table","td","th"].indexOf(Et(e))>=0}function Ft(e){return xt(e)&&"fixed"!==Ot(e).position?e.offsetParent:null}function Lt(e){for(var t=bt(e),n=Ft(e);n&&zt(n)&&"static"===Ot(n).position;)n=Ft(n);return n&&("html"===Et(n)||"body"===Et(n)&&"static"===Ot(n).position)?t:n||function(e){var t=/firefox/i.test(Tt());if(/Trident/i.test(Tt())&&xt(e)&&"fixed"===Ot(e).position)return null;var n=jt(e);for(At(n)&&(n=n.host);xt(n)&&["html","body"].indexOf(Et(n))<0;){var r=Ot(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var Rt="top",Bt="bottom",Wt="right",It="left",Ht="auto",qt="start",Ut="end",Vt=[].concat([Rt,Bt,Wt,It],[Ht]).reduce((function(e,t){return e.concat([t,t+"-"+qt,t+"-"+Ut])}),[]),Yt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Xt(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Gt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r100){console.error("Popper: An infinite loop in the modifiers cycle has been detected! The cycle has been interrupted to prevent a browser crash.");break}if(!0!==s.reset){var f=s.orderedModifiers[d],p=f.fn,h=f.options,v=void 0===h?{}:h,g=f.name;"function"==typeof p&&(s=p({state:s,options:v,name:g,instance:u})||s)}else s.reset=!1,d=-1}}else console.error(en)}},update:(o=function(){return new Promise((function(e){u.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){d(),c=!0}};if(!nn(e,t))return console.error(en),u;function d(){l.forEach((function(e){return e()})),l=[]}return u.setOptions(n).then((function(e){!c&&n.onFirstUpdate&&n.onFirstUpdate(e)})),u}}var on={passive:!0};var an={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,l=bt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach((function(e){e.addEventListener("scroll",n.update,on)})),s&&l.addEventListener("resize",n.update,on),function(){i&&c.forEach((function(e){e.removeEventListener("scroll",n.update,on)})),s&&l.removeEventListener("resize",n.update,on)}},data:{}};var sn={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=function(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?Qt(o):null,a=o?$t(o):null,s=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case Rt:t={x:s,y:n.y-r.height};break;case Bt:t={x:s,y:n.y+n.height};break;case Wt:t={x:n.x+n.width,y:l};break;case It:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var c=i?function(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case qt:t[c]=t[c]-(n[u]/2-r[u]/2);break;case Ut:t[c]=t[c]+(n[u]/2-r[u]/2)}}return t}({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},ln={top:"auto",right:"auto",bottom:"auto",left:"auto"};function cn(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,f=a.x,p=void 0===f?0:f,h=a.y,v=void 0===h?0:h,g="function"==typeof u?u({x:p,y:v}):{x:p,y:v};p=g.x,v=g.y;var m=a.hasOwnProperty("x"),y=a.hasOwnProperty("y"),b=It,w=Rt,x=window;if(c){var A=Lt(n),C="clientHeight",T="clientWidth";if(A===bt(n)&&"static"!==Ot(A=Mt(n)).position&&"absolute"===s&&(C="scrollHeight",T="scrollWidth"),o===Rt||(o===It||o===Wt)&&i===Ut)w=Bt,v-=(d&&A===x&&x.visualViewport?x.visualViewport.height:A[C])-r.height,v*=l?1:-1;if(o===It||(o===Rt||o===Bt)&&i===Ut)b=Wt,p-=(d&&A===x&&x.visualViewport?x.visualViewport.width:A[T])-r.width,p*=l?1:-1}var k,S=Object.assign({position:s},c&&ln),E=!0===u?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:Ct(t*r)/r||0,y:Ct(n*r)/r||0}}({x:p,y:v}):{x:p,y:v};return p=E.x,v=E.y,l?Object.assign({},S,((k={})[w]=y?"0":"",k[b]=m?"0":"",k.transform=(x.devicePixelRatio||1)<=1?"translate("+p+"px, "+v+"px)":"translate3d("+p+"px, "+v+"px, 0)",k)):Object.assign({},S,((t={})[w]=y?v+"px":"",t[b]=m?p+"px":"",t.transform="",t))}var un={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,l=void 0===s||s,c=Ot(t.elements.popper).transitionProperty||"";a&&["transform","top","right","bottom","left"].some((function(e){return c.indexOf(e)>=0}))&&console.warn(["Popper: Detected CSS transitions on at least one of the following",'CSS properties: "transform", "top", "right", "bottom", "left".',"\n\n",'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.","\n\n","We recommend using the popper element as a wrapper around an inner","element that can have any CSS property transitioned for animations."].join(" "));var u={placement:Qt(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,cn(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,cn(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};var dn={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];xt(o)&&Et(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});xt(r)&&Et(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]},fn=rn({defaultModifiers:[an,sn,un,dn]});var pn={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=Vt.reduce((function(e,n){return e[n]=function(e,t,n){var r=Qt(e),o=[It,Rt].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[It,Wt].indexOf(r)>=0?{x:s,y:a}:{x:a,y:s}}(n,t.rects,i),e}),{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[r]=a}},hn=d(p("popover"),2),vn=hn[0],gn=hn[1],mn=["overlay","duration","teleport","overlayStyle","overlayClass","closeOnClickOverlay"],yn={show:Boolean,theme:T("light"),overlay:Boolean,actions:k(),trigger:T("click"),duration:S,showArrow:E,placement:T("bottom"),iconPrefix:String,overlayClass:M,overlayStyle:Object,closeOnClickAction:E,closeOnClickOverlay:E,closeOnClickOutside:E,offset:{type:Array,default:function(){return[0,8]}},teleport:{type:[String,Object],default:"body"}},bn=h({name:vn,props:yn,emits:["select","touchstart","update:show"],setup:function(e,t){var n,r,o,i,a=t.emit,s=t.slots,c=t.attrs,u=l(),d=l(),p=l(),h=(o=function(e){return a("update:show",e)},i=l((r=function(){return e.show})()),f(r,(function(e){e!==i.value&&(i.value=e)})),f(i,(function(e){e!==r()&&o(e)})),i),T=function(){return{placement:e.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},_({},pn,{options:{offset:e.offset}})]}},k=function e(){O((function(){h.value&&(n?n.setOptions(T()):(n=d.value&&p.value?fn(d.value,p.value.popupRef.value,T()):null,P&&(window.addEventListener("animationend",e),window.addEventListener("transitionend",e))))}))},S=function(e){h.value=e},E=function(){"click"===e.trigger&&(h.value=!h.value)},M=function(t,n){return s.action?s.action({action:t,index:n}):[t.icon&&b(j,{name:t.icon,classPrefix:e.iconPrefix,class:gn("action-icon")},null),b("div",{class:[gn("action-text"),N]},[t.text])]},D=function(t,n){var r=t.icon,o=t.color,i=t.disabled,s=t.className;return b("div",{role:"menuitem",class:[gn("action",{disabled:i,"with-icon":r}),s],style:{color:o},tabindex:i?void 0:0,"aria-disabled":i||void 0,onClick:function(){return function(t,n){t.disabled||(a("select",t,n),e.closeOnClickAction&&(h.value=!1))}(t,n)}},[M(t,n)])};return v((function(){k(),g((function(){var e;u.value=null==(e=p.value)?void 0:e.popupRef.value}))})),m((function(){n&&(P&&(window.removeEventListener("animationend",k),window.removeEventListener("transitionend",k)),n.destroy(),n=null)})),f((function(){return[h.value,e.offset,e.placement]}),k),y([d,u],(function(){h.value&&e.closeOnClickOutside&&(!e.overlay||e.closeOnClickOverlay)&&(h.value=!1)}),{eventName:"touchstart"}),function(){var t;return b(C,null,[b("span",{ref:d,class:gn("wrapper"),onClick:E},[null==(t=s.reference)?void 0:t.call(s)]),b(w,x({ref:p,show:h.value,class:gn([e.theme]),position:"",transition:"van-popover-zoom",lockScroll:!1,"onUpdate:show":S},c,A(e,mn)),{default:function(){return[e.showArrow&&b("div",{class:gn("arrow")},null),b("div",{role:"menu",class:gn("content")},[s.default?s.default():e.actions.map(D)])]}})])}}}),wn=D(bn);function xn(e){return e.composedPath()[0]||null}function An(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:8;return Math.random().toString(16).slice(2,2+e)}function Cn(e){var t=arguments.length>2?arguments[2]:void 0,n={};return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).forEach((function(t){n[t]=e[t]})),Object.assign(n,t)}function Tn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];return e.forEach((function(e){if(null!==e)if("object"===u(e))if(Array.isArray(e))Tn(e,t,n);else if(e.type===C){if(null===e.children)return;Array.isArray(e.children)&&Tn(e.children,t,n)}else e.type!==F&&n.push(e);else"string"!=typeof e&&"number"!=typeof e||n.push(z(String(e)))})),n}function kn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"default",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,r=e[t];if(!r)return ae("getFirstSlotVNode","slot[".concat(t,"] is empty")),null;var o=Tn(r(n));return 1===o.length?o[0]:(ae("getFirstSlotVNode","slot[".concat(t,"] should have exactly one child")),null)}var Sn,En=h({render:function(){var e,t;return null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e)}}),Mn=/^(\d|\.)+$/,On=/(\d|\.)+/;function Pn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.c,r=void 0===n?1:n,o=t.offset,i=void 0===o?0:o,a=t.attachPx,s=void 0===a||a;if("number"==typeof e){var l=(e+i)*r;return 0===l?"0":"".concat(l,"px")}if("string"==typeof e){if(Mn.test(e)){var c=(Number(e)+i)*r;return s?0===c?"0":"".concat(c,"px"):"".concat(c)}var u=On.exec(e);return u?e.replace(On,String((Number(u[0])+i)*r)):e}return e}var _n="undefined"!=typeof document&&"undefined"!=typeof window;var jn="undefined"!=typeof window&&(/iPad|iPhone|iPod/.test(navigator.platform)||"MacIntel"===navigator.platform&&navigator.maxTouchPoints>1)&&!window.MSStream;function Nn(){return jn}var Dn="@@mmoContext",zn={mounted:function(e,t){var n=t.value;e[Dn]={handler:void 0},"function"==typeof n&&(e[Dn].handler=n,le("mousemoveoutside",e,n))},updated:function(e,t){var n=t.value,r=e[Dn];"function"==typeof n?r.handler?r.handler!==n&&(ce("mousemoveoutside",e,r.handler),r.handler=n,le("mousemoveoutside",e,n)):(e[Dn].handler=n,le("mousemoveoutside",e,n)):r.handler&&(ce("mousemoveoutside",e,r.handler),r.handler=void 0)},unmounted:function(e){var t=e[Dn].handler;t&&ce("mousemoveoutside",e,t),e[Dn].handler=void 0}},Fn=zn,Ln="@@coContext",Rn={mounted:function(e,t){var n=t.value,r=t.modifiers;e[Ln]={handler:void 0},"function"==typeof n&&(e[Ln].handler=n,le("clickoutside",e,n,{capture:r.capture}))},updated:function(e,t){var n=t.value,r=t.modifiers,o=e[Ln];"function"==typeof n?o.handler?o.handler!==n&&(ce("clickoutside",e,o.handler,{capture:r.capture}),o.handler=n,le("clickoutside",e,n,{capture:r.capture})):(e[Ln].handler=n,le("clickoutside",e,n,{capture:r.capture})):o.handler&&(ce("clickoutside",e,o.handler,{capture:r.capture}),o.handler=void 0)},unmounted:function(e,t){var n=t.modifiers,r=e[Ln].handler;r&&ce("clickoutside",e,r,{capture:n.capture}),e[Ln].handler=void 0}},Bn=Rn;function Wn(e,t){console.error("[vueuc/".concat(e,"]: ").concat(t))}function In(e){return"string"==typeof e?document.querySelector(e):e()}var Hn,qn=[],Un="ResizeObserver loop completed with undelivered notifications.";!function(e){e.BORDER_BOX="border-box",e.CONTENT_BOX="content-box",e.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"}(Hn||(Hn={}));var Vn,Yn=function(e){return Object.freeze(e)},Xn=function(e,t){this.inlineSize=e,this.blockSize=t,Yn(this)},Gn=function(){function e(e,t,n,r){return this.x=e,this.y=t,this.width=n,this.height=r,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,Yn(this)}return e.prototype.toJSON=function(){var e=this;return{x:e.x,y:e.y,top:e.top,right:e.right,bottom:e.bottom,left:e.left,width:e.width,height:e.height}},e.fromRect=function(t){return new e(t.x,t.y,t.width,t.height)},e}(),Zn=function(e){return e instanceof SVGElement&&"getBBox"in e},Kn=function(e){if(Zn(e)){var t=e.getBBox(),n=t.width,r=t.height;return!n&&!r}var o=e,i=o.offsetWidth,a=o.offsetHeight;return!(i||a||e.getClientRects().length)},Jn=function(e){var t;if(e instanceof Element)return!0;var n=null===(t=null==e?void 0:e.ownerDocument)||void 0===t?void 0:t.defaultView;return!!(n&&e instanceof n.Element)},Qn="undefined"!=typeof window?window:{},$n=new WeakMap,er=/auto|scroll/,tr=/^tb|vertical/,nr=/msie|trident/i.test(Qn.navigator&&Qn.navigator.userAgent),rr=function(e){return parseFloat(e||"0")},or=function(e,t,n){return void 0===e&&(e=0),void 0===t&&(t=0),void 0===n&&(n=!1),new Xn((n?t:e)||0,(n?e:t)||0)},ir=Yn({devicePixelContentBoxSize:or(),borderBoxSize:or(),contentBoxSize:or(),contentRect:new Gn(0,0,0,0)}),ar=function(e,t){if(void 0===t&&(t=!1),$n.has(e)&&!t)return $n.get(e);if(Kn(e))return $n.set(e,ir),ir;var n=getComputedStyle(e),r=Zn(e)&&e.ownerSVGElement&&e.getBBox(),o=!nr&&"border-box"===n.boxSizing,i=tr.test(n.writingMode||""),a=!r&&er.test(n.overflowY||""),s=!r&&er.test(n.overflowX||""),l=r?0:rr(n.paddingTop),c=r?0:rr(n.paddingRight),u=r?0:rr(n.paddingBottom),d=r?0:rr(n.paddingLeft),f=r?0:rr(n.borderTopWidth),p=r?0:rr(n.borderRightWidth),h=r?0:rr(n.borderBottomWidth),v=d+c,g=l+u,m=(r?0:rr(n.borderLeftWidth))+p,y=f+h,b=s?e.offsetHeight-y-e.clientHeight:0,w=a?e.offsetWidth-m-e.clientWidth:0,x=o?v+m:0,A=o?g+y:0,C=r?r.width:rr(n.width)-x-w,T=r?r.height:rr(n.height)-A-b,k=C+v+w+m,S=T+g+b+y,E=Yn({devicePixelContentBoxSize:or(Math.round(C*devicePixelRatio),Math.round(T*devicePixelRatio),i),borderBoxSize:or(k,S,i),contentBoxSize:or(C,T,i),contentRect:new Gn(d,l,C,T)});return $n.set(e,E),E},sr=function(e,t,n){var r=ar(e,n),o=r.borderBoxSize,i=r.contentBoxSize,a=r.devicePixelContentBoxSize;switch(t){case Hn.DEVICE_PIXEL_CONTENT_BOX:return a;case Hn.BORDER_BOX:return o;default:return i}},lr=function(e){var t=ar(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=Yn([t.borderBoxSize]),this.contentBoxSize=Yn([t.contentBoxSize]),this.devicePixelContentBoxSize=Yn([t.devicePixelContentBoxSize])},cr=function(e){if(Kn(e))return 1/0;for(var t=0,n=e.parentNode;n;)t+=1,n=n.parentNode;return t},ur=function(){var e=1/0,t=[];qn.forEach((function(n){if(0!==n.activeTargets.length){var r=[];n.activeTargets.forEach((function(t){var n=new lr(t.target),o=cr(t.target);r.push(n),t.lastReportedSize=sr(t.target,t.observedBox),oe?t.activeTargets.push(n):t.skippedTargets.push(n))}))}))},fr=function(){var e,t=0;for(dr(t);qn.some((function(e){return e.activeTargets.length>0}));)t=ur(),dr(t);return qn.some((function(e){return e.skippedTargets.length>0}))&&("function"==typeof ErrorEvent?e=new ErrorEvent("error",{message:Un}):((e=document.createEvent("Event")).initEvent("error",!1,!1),e.message=Un),window.dispatchEvent(e)),t>0},pr=[],hr=function(e){if(!Vn){var t=0,n=document.createTextNode("");new MutationObserver((function(){return pr.splice(0).forEach((function(e){return e()}))})).observe(n,{characterData:!0}),Vn=function(){n.textContent="".concat(t?t--:t++)}}pr.push(e),Vn()},vr=0,gr={attributes:!0,characterData:!0,childList:!0,subtree:!0},mr=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],yr=function(e){return void 0===e&&(e=0),Date.now()+e},br=!1,wr=function(){function e(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return e.prototype.run=function(e){var t=this;if(void 0===e&&(e=250),!br){br=!0;var n,r=yr(e);n=function(){var n=!1;try{n=fr()}finally{if(br=!1,e=r-yr(),!vr)return;n?t.run(1e3):e>0?t.run(e):t.start()}},hr((function(){requestAnimationFrame(n)}))}},e.prototype.schedule=function(){this.stop(),this.run()},e.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,gr)};document.body?t():Qn.addEventListener("DOMContentLoaded",t)},e.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),mr.forEach((function(t){return Qn.addEventListener(t,e.listener,!0)})))},e.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),mr.forEach((function(t){return Qn.removeEventListener(t,e.listener,!0)})),this.stopped=!0)},e}(),xr=new wr,Ar=function(e){!vr&&e>0&&xr.start(),!(vr+=e)&&xr.stop()},Cr=function(){function e(e,t){this.target=e,this.observedBox=t||Hn.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return e.prototype.isActive=function(){var e,t=sr(this.target,this.observedBox,!0);return e=this.target,Zn(e)||function(e){switch(e.tagName){case"INPUT":if("image"!==e.type)break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1}(e)||"inline"!==getComputedStyle(e).display||(this.lastReportedSize=t),this.lastReportedSize.inlineSize!==t.inlineSize||this.lastReportedSize.blockSize!==t.blockSize},e}(),Tr=function(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t},kr=new WeakMap,Sr=function(e,t){for(var n=0;n=0&&(o&&qn.splice(qn.indexOf(n),1),n.observationTargets.splice(r,1),Ar(-1))},e.disconnect=function(e){var t=this,n=kr.get(e);n.observationTargets.slice().forEach((function(n){return t.unobserve(e,n.target)})),n.activeTargets.splice(0,n.activeTargets.length)},e}(),Mr=function(){function e(e){if(0===arguments.length)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if("function"!=typeof e)throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Er.connect(this,e)}return e.prototype.observe=function(e,t){if(0===arguments.length)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Jn(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Er.observe(this,e,t)},e.prototype.unobserve=function(e){if(0===arguments.length)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Jn(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Er.unobserve(this,e)},e.prototype.disconnect=function(){Er.disconnect(this)},e.toString=function(){return"function ResizeObserver () { [polyfill code] }"},e}(),Or=new(function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.handleResize=this.handleResize.bind(this),this.observer=new("undefined"!=typeof window&&window.ResizeObserver||Mr)(this.handleResize),this.elHandlersMap=new Map}var t,n,r;return t=e,(n=[{key:"handleResize",value:function(e){var t,n=c(e);try{for(n.s();!(t=n.n()).done;){var r=t.value,o=this.elHandlersMap.get(r.target);void 0!==o&&o(r)}}catch(i){n.e(i)}finally{n.f()}}},{key:"registerHandler",value:function(e,t){this.elHandlersMap.set(e,t),this.observer.observe(e)}},{key:"unregisterHandler",value:function(e){this.elHandlersMap.has(e)&&(this.elHandlersMap.delete(e),this.observer.unobserve(e))}}])&&s(t.prototype,n),r&&s(t,r),Object.defineProperty(t,"prototype",{writable:!1}),e}()),Pr=h({name:"ResizeObserver",props:{onResize:Function},setup:function(e){var t=!1,n=R().proxy;function r(t){var n=e.onResize;void 0!==n&&n(t)}v((function(){var e=n.$el;void 0!==e?e.nextElementSibling===e.nextSibling||3!==e.nodeType||""===e.nodeValue?null!==e.nextElementSibling&&(Or.registerHandler(e.nextElementSibling,r),t=!0):Wn("resize-observer","$el can not be observed (it may be a text node)."):Wn("resize-observer","$el does not exist.")})),m((function(){t&&Or.unregisterHandler(n.$el.nextElementSibling)}))},render:function(){return B(this.$slots,"default")}});function _r(e){return e instanceof HTMLElement}function jr(e){for(var t=0;t=0;t--){var n=e.childNodes[t];if(_r(n)&&(Dr(n)||Nr(n)))return!0}return!1}function Dr(e){if(!function(e){if(e.tabIndex>0||0===e.tabIndex&&null!==e.getAttribute("tabIndex"))return!0;if(e.getAttribute("disabled"))return!1;switch(e.nodeName){case"A":return!!e.href&&"ignore"!==e.rel;case"INPUT":return"hidden"!==e.type&&"file"!==e.type;case"BUTTON":case"SELECT":case"TEXTAREA":return!0;default:return!1}}(e))return!1;try{e.focus({preventScroll:!0})}catch(t){}return document.activeElement===e}var zr=[],Fr=h({name:"FocusTrap",props:{disabled:Boolean,active:Boolean,autoFocus:{type:Boolean,default:!0},onEsc:Function,initialFocusTo:String,finalFocusTo:String,returnFocusOnDeactivated:{type:Boolean,default:!0}},setup:function(e){var t=An(),n=l(null),r=l(null),o=!1,i=!1,a="undefined"==typeof document?null:document.activeElement;function s(){return zr[zr.length-1]===t}function c(t){var n;"Escape"===t.code&&s()&&(null===(n=e.onEsc)||void 0===n||n.call(e,t))}function u(e){if(!i&&s()){var t=d();if(null===t)return;if(t.contains(xn(e)))return;h("first")}}function d(){var e=n.value;if(null===e)return null;for(var t=e;null!==(t=t.nextSibling)&&!(t instanceof Element&&"DIV"===t.tagName););return t}function p(){var n;if(!e.disabled&&(document.removeEventListener("focus",u,!0),zr=zr.filter((function(e){return e!==t})),!s())){var r=e.finalFocusTo;void 0!==r?null===(n=In(r))||void 0===n||n.focus({preventScroll:!0}):e.returnFocusOnDeactivated&&a instanceof HTMLElement&&(i=!0,a.focus({preventScroll:!0}),i=!1)}}function h(t){if(s()&&e.active){var o=n.value,a=r.value;if(null!==o&&null!==a){var l=d();if(null==l||l===a)return i=!0,o.focus({preventScroll:!0}),void(i=!1);i=!0;var c="first"===t?jr(l):Nr(l);i=!1,c||(i=!0,o.focus({preventScroll:!0}),i=!1)}}}return v((function(){f((function(){return e.active}),(function(n){n?(!function(){var n;if(e.disabled)return;if(zr.push(t),e.autoFocus){var r=e.initialFocusTo;void 0===r?h("first"):null===(n=In(r))||void 0===n||n.focus({preventScroll:!0})}o=!0,document.addEventListener("focus",u,!0)}(),le("keydown",document,c)):(ce("keydown",document,c),o&&p())}),{immediate:!0})})),m((function(){ce("keydown",document,c),o&&p()})),{focusableStartRef:n,focusableEndRef:r,focusableStyle:"position: absolute; height: 0; width: 0;",handleStartFocus:function(e){if(!i){var t=d();null!==t&&(null!==e.relatedTarget&&t.contains(e.relatedTarget)?h("last"):h("first"))}},handleEndFocus:function(e){i||(null!==e.relatedTarget&&e.relatedTarget===n.value?h("last"):h("first"))}}},render:function(){var e=this.$slots.default;if(void 0===e)return null;if(this.disabled)return e();var t=this.active,n=this.focusableStyle;return W(C,null,[W("div",{"aria-hidden":"true",tabindex:t?"0":"-1",ref:"focusableStartRef",style:n,onFocus:this.handleStartFocus}),e(),W("div",{"aria-hidden":"true",style:n,ref:"focusableEndRef",tabindex:t?"0":"-1",onFocus:this.handleEndFocus})])}});var Lr="[object Symbol]";function Rr(e){return"symbol"==u(e)||ue(e)&&de(e)==Lr}function Br(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n=r?e:function(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(o);++rs))return!1;var c=i.get(e),u=i.get(t);if(c&&u)return c==t&&u==e;var d=-1,f=!0,p=n&Ei?new Ci:void 0;for(i.set(e,t),i.set(t,e);++d0&&void 0!==arguments[0]?arguments[0]:{},n=t.width?String(t.width):e.defaultWidth;return e.formats[n]||e.formats[e.defaultWidth]}}function Aa(e){return function(t,n){var r;if("formatting"===(null!=n&&n.context?String(n.context):"standalone")&&e.formattingValues){var o=e.defaultFormattingWidth||e.defaultWidth,i=null!=n&&n.width?String(n.width):o;r=e.formattingValues[i]||e.formattingValues[o]}else{var a=e.defaultWidth,s=null!=n&&n.width?String(n.width):e.defaultWidth;r=e.values[s]||e.values[a]}return r[e.argumentCallback?e.argumentCallback(t):t]}}function Ca(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=n.width,o=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;var a,s=i[0],l=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],c=Array.isArray(l)?function(e,t){for(var n=0;n0?"in "+r:r+" ago":r},Ea={date:xa({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:xa({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:xa({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Ma={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Oa=function(e,t,n,r){return Ma[e]},Pa={ordinalNumber:function(e,t){var n=Number(e),r=n%100;if(r>20||r<10)switch(r%10){case 1:return n+"st";case 2:return n+"nd";case 3:return n+"rd"}return n+"th"},era:Aa({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Aa({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:Aa({values:{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"]},defaultWidth:"wide"}),day:Aa({values:{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"]},defaultWidth:"wide"}),dayPeriod:Aa({values:{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"}},defaultWidth:"wide",formattingValues:{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"}},defaultFormattingWidth:"wide"})},_a={ordinalNumber:(Ta={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(e){return parseInt(e,10)}},function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e.match(Ta.matchPattern);if(!n)return null;var r=n[0],o=e.match(Ta.parsePattern);if(!o)return null;var i=Ta.valueCallback?Ta.valueCallback(o[0]):o[0];return{value:i=t.valueCallback?t.valueCallback(i):i,rest:e.slice(r.length)}}),era:Ca({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ca({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:Ca({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),day:Ca({matchPatterns:{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},defaultMatchWidth:"wide",parsePatterns:{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]},defaultParseWidth:"any"}),dayPeriod:Ca({matchPatterns:{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},defaultMatchWidth:"any",parsePatterns:{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}},defaultParseWidth:"any"})},ja={name:"en-US",locale:{code:"en-US",formatDistance:Sa,formatLong:Ea,formatRelative:Oa,localize:Pa,match:_a,options:{weekStartsOn:0,firstWeekContainsDate:1}}};function Na(e,t,n){if(t){var r=Fe(),o=L((function(){var n=t.value;if(n){var r=n[e];if(r)return r}})),i=function(){g((function(){var t=n.value,i="".concat(t).concat(e,"Rtl");if(!function(e,t){return void 0!==e&&(t?t.context.ids.has(e):null!==se(e))}(i,r)){var a=o.value;a&&a.style.mount({id:i,head:!0,anchorMetaName:Le,props:{bPrefix:t?".".concat(t,"-"):void 0},ssr:r})}}))};return r?i():U(i),o}}function Da(e,t){return h({name:So(e),setup:function(){var n,r=null===(n=q(De,null))||void 0===n?void 0:n.mergedIconsRef;return function(){var n,o=null===(n=null==r?void 0:r.value)||void 0===n?void 0:n[e];return o?o():t}}})}var za=Da("rotateClockwise",W("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W("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"}),W("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"}))),Fa=Da("rotateClockwise",W("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W("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"}),W("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"}))),La=Da("zoomIn",W("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W("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"}),W("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"}))),Ra=Da("zoomOut",W("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W("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"}),W("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"}))),Ba=h({name:"ResizeSmall",render:function(){return W("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20"},W("g",{fill:"none"},W("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"})))}}),Wa=Be("base-icon","\n height: 1em;\n width: 1em;\n line-height: 1em;\n text-align: center;\n display: inline-block;\n position: relative;\n fill: currentColor;\n transform: translateZ(0);\n",[We("svg","\n height: 1em;\n width: 1em;\n ")]),Ia=h({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:function(e){!function(e,t,n){if(t){var r=Fe(),o=q(De,null),i=function(){var i=null==n?void 0:n.value;t.mount({id:void 0===i?e:i+e,head:!0,anchorMetaName:Le,props:{bPrefix:i?".".concat(i,"-"):void 0},ssr:r}),(null==o?void 0:o.preflightStyleDisabled)||Re.mount({id:"n-global",head:!0,anchorMetaName:Le,ssr:r})};r?i():U(i)}else ze("use-style","No style is specified.")}("-base-icon",Wa,V(e,"clsPrefix"))},render:function(){return W("i",{class:"".concat(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)}}),Ha={name:"Scrollbar",common:Ie,self:function(e){return{color:e.scrollbarColor,colorHover:e.scrollbarColorHover}}},qa=He.cubicBezierEaseInOut;function Ua(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.name,n=void 0===t?"fade-in":t,r=e.enterDuration,o=void 0===r?"0.2s":r,i=e.leaveDuration,a=void 0===i?"0.2s":i,s=e.enterCubicBezier,l=void 0===s?qa:s,c=e.leaveCubicBezier,u=void 0===c?qa:c;return[We("&.".concat(n,"-transition-enter-active"),{transition:"all ".concat(o," ").concat(l,"!important")}),We("&.".concat(n,"-transition-leave-active"),{transition:"all ".concat(a," ").concat(u,"!important")}),We("&.".concat(n,"-transition-enter-from, &.").concat(n,"-transition-leave-to"),{opacity:0}),We("&.".concat(n,"-transition-leave-from, &.").concat(n,"-transition-enter-to"),{opacity:1})]}var Va,Ya,Xa,Ga=Be("scrollbar","\n overflow: hidden;\n position: relative;\n z-index: auto;\n height: 100%;\n width: 100%;\n",[We(">",[Be("scrollbar-container","\n width: 100%;\n overflow: scroll;\n height: 100%;\n max-height: inherit;\n scrollbar-width: none;\n ",[We("&::-webkit-scrollbar, &::-webkit-scrollbar-track-piece, &::-webkit-scrollbar-thumb","\n width: 0;\n height: 0;\n display: none;\n "),We(">",[Be("scrollbar-content","\n box-sizing: border-box;\n min-width: 100%;\n ")])])]),We(">, +",[Be("scrollbar-rail","\n position: absolute;\n pointer-events: none;\n user-select: none;\n -webkit-user-select: none;\n ",[qe("horizontal","\n left: 2px;\n right: 2px;\n bottom: 4px;\n height: var(--n-scrollbar-height);\n ",[We(">",[Ue("scrollbar","\n height: var(--n-scrollbar-height);\n border-radius: var(--n-scrollbar-border-radius);\n right: 0;\n ")])]),qe("vertical","\n right: 4px;\n top: 2px;\n bottom: 2px;\n width: var(--n-scrollbar-width);\n ",[We(">",[Ue("scrollbar","\n width: var(--n-scrollbar-width);\n border-radius: var(--n-scrollbar-border-radius);\n bottom: 0;\n ")])]),qe("disabled",[We(">",[Ue("scrollbar",{pointerEvents:"none"})])]),We(">",[Ue("scrollbar","\n position: absolute;\n cursor: pointer;\n pointer-events: all;\n background-color: var(--n-scrollbar-color);\n transition: background-color .2s var(--n-scrollbar-bezier);\n ",[Ua(),We("&:hover",{backgroundColor:"var(--n-scrollbar-color-hover)"})])])])])]),Za=Object.assign(Object.assign({},Ve.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}),Ka=h({name:"Scrollbar",props:Za,inheritAttrs:!1,setup:function(e){var t,n,r=Ye(e),o=r.mergedClsPrefixRef,i=r.inlineThemeDisabled,a=Na("Scrollbar",r.mergedRtlRef,o),s=l(null),c=l(null),d=l(null),f=l(null),p=l(null),h=l(null),y=l(null),b=l(null),w=l(null),x=l(null),A=l(null),C=l(0),T=l(0),k=l(!1),S=l(!1),E=!1,M=!1,O=0,P=0,_=0,j=0,N=Nn(),D=L((function(){var t=b.value,n=h.value,r=x.value;return null===t||null===n||null===r?0:Math.min(t,r*t/n+1.5*e.size)})),z=L((function(){return"".concat(D.value,"px")})),F=L((function(){var t=w.value,n=y.value,r=A.value;return null===t||null===n||null===r?0:r*t/n+1.5*e.size})),R=L((function(){return"".concat(F.value,"px")})),B=L((function(){var e=b.value,t=C.value,n=h.value,r=x.value;if(null===e||null===n||null===r)return 0;var o=n-e;return o?t/o*(r-D.value):0})),W=L((function(){return"".concat(B.value,"px")})),q=L((function(){var e=w.value,t=T.value,n=y.value,r=A.value;if(null===e||null===n||null===r)return 0;var o=n-e;return o?t/o*(r-F.value):0})),U=L((function(){return"".concat(q.value,"px")})),V=L((function(){var e=b.value,t=h.value;return null!==e&&null!==t&&t>e})),Y=L((function(){var e=w.value,t=y.value;return null!==e&&null!==t&&t>e})),X=L((function(){return"none"===e.trigger||k.value})),G=L((function(){return"none"===e.trigger||S.value})),Z=L((function(){var t=e.container;return t?t():c.value})),K=L((function(){var t=e.content;return t?t():d.value})),J=function(e){var t={isDeactivated:!1},n=!1;return I((function(){t.isDeactivated=!1,n?e():n=!0})),H((function(){t.isDeactivated=!0,n||(n=!0)})),t}((function(){e.container||Q({top:C.value,left:T.value})})),Q=function(t,n){if(e.scrollable)if("number"!=typeof t){var r=t.left,o=t.top,i=t.index,a=t.elSize,s=t.position,l=t.behavior,c=t.el,u=t.debounce,d=void 0===u||u;void 0===r&&void 0===o||$(null!=r?r:0,null!=o?o:0,0,!1,l),void 0!==c?$(0,c.offsetTop,c.offsetHeight,d,l):void 0!==i&&void 0!==a?$(0,i*a,a,d,l):"bottom"===s?$(0,Number.MAX_SAFE_INTEGER,0,!1,l):"top"===s&&$(0,0,0,!1,l)}else $(null!=n?n:0,t,0,!1,"auto")};function $(e,t,n,r,o){var i=Z.value;if(i){if(r){var a=i.scrollTop,s=i.offsetHeight;if(t>a)return void(t+n<=a+s||i.scrollTo({left:e,top:t+n-s,behavior:o}))}i.scrollTo({left:e,top:t,behavior:o})}}function ee(){!function(){void 0!==n&&window.clearTimeout(n);n=window.setTimeout((function(){S.value=!1}),e.duration)}(),function(){void 0!==t&&window.clearTimeout(t);t=window.setTimeout((function(){k.value=!1}),e.duration)}()}function te(){var e=Z.value;e&&(C.value=e.scrollTop,T.value=e.scrollLeft*((null==a?void 0:a.value)?-1:1))}function ne(){var e=Z.value;e&&(C.value=e.scrollTop,T.value=e.scrollLeft*((null==a?void 0:a.value)?-1:1),b.value=e.offsetHeight,w.value=e.offsetWidth,h.value=e.scrollHeight,y.value=e.scrollWidth);var t=p.value,n=f.value;t&&(A.value=t.offsetWidth),n&&(x.value=n.offsetHeight)}function re(){e.scrollable&&(e.useUnifiedContainer?ne():(!function(){var e=K.value;e&&(h.value=e.offsetHeight,y.value=e.offsetWidth);var t=Z.value;t&&(b.value=t.offsetHeight,w.value=t.offsetWidth);var n=p.value,r=f.value;n&&(A.value=n.offsetWidth),r&&(x.value=r.offsetHeight)}(),te()))}function oe(e){var t;return!(null===(t=s.value)||void 0===t?void 0:t.contains(xn(e)))}function ie(r){if(M){void 0!==t&&window.clearTimeout(t),void 0!==n&&window.clearTimeout(n);var o=w.value,i=y.value,s=F.value;if(null!==o&&null!==i){var l=(null==a?void 0:a.value)?window.innerWidth-r.clientX-_:r.clientX-_,c=i-o,u=P+l*(i-o)/(o-s);u=Math.min(c,u),u=Math.max(u,0);var d=Z.value;if(d){d.scrollLeft=u*((null==a?void 0:a.value)?-1:1);var f=e.internalOnUpdateScrollLeft;f&&f(u)}}}}function ae(e){e.preventDefault(),e.stopPropagation(),ce("mousemove",window,ie,!0),ce("mouseup",window,ae,!0),M=!1,re(),oe(e)&&ee()}function se(e){if(E){void 0!==t&&window.clearTimeout(t),void 0!==n&&window.clearTimeout(n);var r=b.value,o=h.value,i=D.value;if(null!==r&&null!==o){var a=e.clientY-j,s=o-r,l=O+a*(o-r)/(r-i);l=Math.min(s,l),l=Math.max(l,0);var c=Z.value;c&&(c.scrollTop=l)}}}function ue(e){e.preventDefault(),e.stopPropagation(),ce("mousemove",window,se,!0),ce("mouseup",window,ue,!0),E=!1,re(),oe(e)&&ee()}g((function(){var e=Y.value,t=V.value,n=o.value,r=p.value,i=f.value;r&&(e?r.classList.remove("".concat(n,"-scrollbar-rail--disabled")):r.classList.add("".concat(n,"-scrollbar-rail--disabled"))),i&&(t?i.classList.remove("".concat(n,"-scrollbar-rail--disabled")):i.classList.add("".concat(n,"-scrollbar-rail--disabled")))})),v((function(){e.container||re()})),m((function(){void 0!==t&&window.clearTimeout(t),void 0!==n&&window.clearTimeout(n),ce("mousemove",window,se,!0),ce("mouseup",window,ue,!0)}));var de=Ve("Scrollbar","-scrollbar",Ga,Ha,e,o),fe=L((function(){var e=de.value,t=e.common,n=t.cubicBezierEaseInOut,r=t.scrollbarBorderRadius,o=t.scrollbarHeight,i=t.scrollbarWidth,a=e.self;return{"--n-scrollbar-bezier":n,"--n-scrollbar-color":a.color,"--n-scrollbar-color-hover":a.colorHover,"--n-scrollbar-border-radius":r,"--n-scrollbar-width":i,"--n-scrollbar-height":o}})),pe=i?Xe("scrollbar",void 0,fe,e):void 0,he={scrollTo:Q,scrollBy:function(t,n){if(e.scrollable){var r=Z.value;r&&("object"===u(t)?r.scrollBy(t):r.scrollBy(t,n||0))}},sync:re,syncUnifiedContainer:ne,handleMouseEnterWrapper:function(){!function(){void 0!==t&&window.clearTimeout(t);k.value=!0}(),function(){void 0!==n&&window.clearTimeout(n);S.value=!0}(),re()},handleMouseLeaveWrapper:function(){ee()}};return Object.assign(Object.assign({},he),{mergedClsPrefix:o,rtlEnabled:a,containerScrollTop:C,wrapperRef:s,containerRef:c,contentRef:d,yRailRef:f,xRailRef:p,needYBar:V,needXBar:Y,yBarSizePx:z,xBarSizePx:R,yBarTopPx:W,xBarLeftPx:U,isShowXBar:X,isShowYBar:G,isIos:N,handleScroll:function(t){var n=e.onScroll;n&&n(t),te()},handleContentResize:function(){J.isDeactivated||re()},handleContainerResize:function(t){if(!J.isDeactivated){var n=e.onResize;n&&n(t),re()}},handleYScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),E=!0,le("mousemove",window,se,!0),le("mouseup",window,ue,!0),O=C.value,j=e.clientY},handleXScrollMouseDown:function(e){e.preventDefault(),e.stopPropagation(),M=!0,le("mousemove",window,ie,!0),le("mouseup",window,ae,!0),P=T.value,_=(null==a?void 0:a.value)?window.innerWidth-e.clientX:e.clientX},cssVars:i?void 0:fe,themeClass:null==pe?void 0:pe.themeClass,onRender:null==pe?void 0:pe.onRender})},render:function(){var e,t=this,n=this.$slots,r=this.mergedClsPrefix,o=this.triggerDisplayManually,i=this.rtlEnabled,a=this.internalHoistYRail;if(!this.scrollable)return null===(e=n.default)||void 0===e?void 0:e.call(n);var s="none"===this.trigger,l=function(){return W("div",{ref:"yRailRef",class:["".concat(r,"-scrollbar-rail"),"".concat(r,"-scrollbar-rail--vertical")],"data-scrollbar-rail":!0,style:t.verticalRailStyle,"aria-hidden":!0},W(s?En:Y,s?null:{name:"fade-in-transition"},{default:function(){return t.needYBar&&t.isShowYBar&&!t.isIos?W("div",{class:"".concat(r,"-scrollbar-rail__scrollbar"),style:{height:t.yBarSizePx,top:t.yBarTopPx},onMousedown:t.handleYScrollMouseDown}):null}}))},c=function(){var e,c;return null===(e=t.onRender)||void 0===e||e.call(t),W("div",x(t.$attrs,{role:"none",ref:"wrapperRef",class:["".concat(r,"-scrollbar"),t.themeClass,i&&"".concat(r,"-scrollbar--rtl")],style:t.cssVars,onMouseenter:o?void 0:t.handleMouseEnterWrapper,onMouseleave:o?void 0:t.handleMouseLeaveWrapper}),[t.container?null===(c=n.default)||void 0===c?void 0:c.call(n):W("div",{role:"none",ref:"containerRef",class:["".concat(r,"-scrollbar-container"),t.containerClass],style:t.containerStyle,onScroll:t.handleScroll,onWheel:t.onWheel},W(Pr,{onResize:t.handleContentResize},{default:function(){return W("div",{ref:"contentRef",role:"none",style:[{width:t.xScrollable?"fit-content":null},t.contentStyle],class:["".concat(r,"-scrollbar-content"),t.contentClass]},n)}})),a?null:l(),t.xScrollable&&W("div",{ref:"xRailRef",class:["".concat(r,"-scrollbar-rail"),"".concat(r,"-scrollbar-rail--horizontal")],style:t.horizontalRailStyle,"data-scrollbar-rail":!0,"aria-hidden":!0},W(s?En:Y,s?null:{name:"fade-in-transition"},{default:function(){return t.needXBar&&t.isShowXBar&&!t.isIos?W("div",{class:"".concat(r,"-scrollbar-rail__scrollbar"),style:{width:t.xBarSizePx,right:i?t.xBarLeftPx:void 0,left:i?void 0:t.xBarLeftPx},onMousedown:t.handleXScrollMouseDown}):null}}))])},u=this.container?c():W(Pr,{onResize:this.handleContainerResize},{default:c});return a?W(C,null,u,l()):u}}),Ja=Ka,Qa={space:"6px",spaceArrow:"10px",arrowOffset:"10px",arrowOffsetVertical:"10px",arrowHeight:"6px",padding:"8px 14px"},$a={name:"Popover",common:Ie,self:function(e){var t=e.boxShadow2,n=e.popoverColor,r=e.textColor2,o=e.borderRadius,i=e.fontSize,a=e.dividerColor;return Object.assign(Object.assign({},Qa),{fontSize:i,borderRadius:o,color:n,dividerColor:a,textColor:r,boxShadow:t})}},es={top:"bottom",bottom:"top",left:"right",right:"left"},ts="var(--n-arrow-height) * 1.414",ns=We([Be("popover","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier);\n position: relative;\n font-size: var(--n-font-size);\n color: var(--n-text-color);\n box-shadow: var(--n-box-shadow);\n word-break: break-word;\n ",[We(">",[Be("scrollbar","\n height: inherit;\n max-height: inherit;\n ")]),Ge("raw","\n background-color: var(--n-color);\n border-radius: var(--n-border-radius);\n ",[Ge("scrollable",[Ge("show-header-or-footer","padding: var(--n-padding);")])]),Ue("header","\n padding: var(--n-padding);\n border-bottom: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),Ue("footer","\n padding: var(--n-padding);\n border-top: 1px solid var(--n-divider-color);\n transition: border-color .3s var(--n-bezier);\n "),qe("scrollable, show-header-or-footer",[Ue("content","\n padding: var(--n-padding);\n ")])]),Be("popover-shared","\n transform-origin: inherit;\n ",[Be("popover-arrow-wrapper","\n position: absolute;\n overflow: hidden;\n pointer-events: none;\n ",[Be("popover-arrow","\n transition: background-color .3s var(--n-bezier);\n position: absolute;\n display: block;\n width: calc(".concat(ts,");\n height: calc(").concat(ts,");\n box-shadow: 0 0 8px 0 rgba(0, 0, 0, .12);\n transform: rotate(45deg);\n background-color: var(--n-color);\n pointer-events: all;\n "))]),We("&.popover-transition-enter-from, &.popover-transition-leave-to","\n opacity: 0;\n transform: scale(.85);\n "),We("&.popover-transition-enter-to, &.popover-transition-leave-from","\n transform: scale(1);\n opacity: 1;\n "),We("&.popover-transition-enter-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-out),\n transform .15s var(--n-bezier-ease-out);\n "),We("&.popover-transition-leave-active","\n transition:\n box-shadow .3s var(--n-bezier),\n background-color .3s var(--n-bezier),\n color .3s var(--n-bezier),\n opacity .15s var(--n-bezier-ease-in),\n transform .15s var(--n-bezier-ease-in);\n ")]),os("top-start","\n top: calc(".concat(ts," / -2);\n left: calc(").concat(rs("top-start")," - var(--v-offset-left));\n ")),os("top","\n top: calc(".concat(ts," / -2);\n transform: translateX(calc(").concat(ts," / -2)) rotate(45deg);\n left: 50%;\n ")),os("top-end","\n top: calc(".concat(ts," / -2);\n right: calc(").concat(rs("top-end")," + var(--v-offset-left));\n ")),os("bottom-start","\n bottom: calc(".concat(ts," / -2);\n left: calc(").concat(rs("bottom-start")," - var(--v-offset-left));\n ")),os("bottom","\n bottom: calc(".concat(ts," / -2);\n transform: translateX(calc(").concat(ts," / -2)) rotate(45deg);\n left: 50%;\n ")),os("bottom-end","\n bottom: calc(".concat(ts," / -2);\n right: calc(").concat(rs("bottom-end")," + var(--v-offset-left));\n ")),os("left-start","\n left: calc(".concat(ts," / -2);\n top: calc(").concat(rs("left-start")," - var(--v-offset-top));\n ")),os("left","\n left: calc(".concat(ts," / -2);\n transform: translateY(calc(").concat(ts," / -2)) rotate(45deg);\n top: 50%;\n ")),os("left-end","\n left: calc(".concat(ts," / -2);\n bottom: calc(").concat(rs("left-end")," + var(--v-offset-top));\n ")),os("right-start","\n right: calc(".concat(ts," / -2);\n top: calc(").concat(rs("right-start")," - var(--v-offset-top));\n ")),os("right","\n right: calc(".concat(ts," / -2);\n transform: translateY(calc(").concat(ts," / -2)) rotate(45deg);\n top: 50%;\n ")),os("right-end","\n right: calc(".concat(ts," / -2);\n bottom: calc(").concat(rs("right-end")," + var(--v-offset-top));\n "))].concat(a((Ya=function(e,t){var n=["right","left"].includes(t),r=n?"width":"height";return e.map((function(e){var o="end"===e.split("-")[1],i="var(--v-target-".concat(r,", 0px)"),a="calc((".concat(i," - ").concat(ts,") / 2)"),s=rs(e);return We('[v-placement="'.concat(e,'"] >'),[Be("popover-shared",[qe("center-arrow",[Be("popover-arrow","".concat(t,": calc(max(").concat(a,", ").concat(s,") ").concat(o?"+":"-"," var(--v-offset-").concat(n?"left":"top","));"))])])])}))},(pe(Va={top:["right-start","left-start"],right:["top-end","bottom-end"],bottom:["right-end","left-end"],left:["top-start","bottom-start"]})?Br:ga)(Va,"function"==typeof(Xa=Ya)?Xa:null==Xa?je:"object"==u(Xa)?pe(Xa)?ua(Xa[0],Xa[1]):ia(Xa):da(Xa))))));function rs(e){return["top","bottom"].includes(e.split("-")[0])?"var(--n-arrow-offset)":"var(--n-arrow-offset-vertical)"}function os(e,t){var n=e.split("-")[0],r=["top","bottom"].includes(n)?"height: var(--n-space-arrow);":"width: var(--n-space-arrow);";return We('[v-placement="'.concat(e,'"] >'),[Be("popover-shared","\n margin-".concat(es[n],": var(--n-space);\n "),[qe("show-arrow","\n margin-".concat(es[n],": var(--n-space-arrow);\n ")),qe("overlap","\n margin: 0;\n "),Ze("popover-arrow-wrapper","\n right: 0;\n left: 0;\n top: 0;\n bottom: 0;\n ".concat(n,": 100%;\n ").concat(es[n],": auto;\n ").concat(r,"\n "),[Be("popover-arrow",t)])])])}var is=Object.assign(Object.assign({},Ve.props),{to:Ke.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}),as=h({name:"PopoverBody",inheritAttrs:!1,props:is,setup:function(e,t){var n=t.slots,r=t.attrs,o=Ye(e),a=o.namespaceRef,s=o.mergedClsPrefixRef,c=o.inlineThemeDisabled,u=Ve("Popover","-popover",ns,$a,e,s),d=l(null),p=q("NPopover"),h=l(null),v=l(e.show),y=l(!1);g((function(){!e.show||(void 0===Sn&&(Sn=navigator.userAgent.includes("Node.js")||navigator.userAgent.includes("jsdom")),Sn)||e.internalDeactivateImmediately||(y.value=!0)}));var b=L((function(){var t=e.trigger,n=e.onClickoutside,r=[];return p.positionManuallyRef.value||("click"!==t||n||r.push([Bn,M,void 0,{capture:!0}]),"hover"===t&&r.push([Fn,E])),n&&r.push([Bn,M,void 0,{capture:!0}]),("show"===e.displayDirective||e.animated&&y.value)&&r.push([G,e.show]),r})),w=L((function(){var t="trigger"===e.width?void 0:Pn(e.width),n=[];t&&n.push({width:t});var r=e.maxWidth,o=e.minWidth;return r&&n.push({maxWidth:Pn(r)}),o&&n.push({maxWidth:Pn(o)}),c||n.push(A.value),n})),A=L((function(){var e=u.value,t=e.common,n=t.cubicBezierEaseInOut,r=t.cubicBezierEaseIn,o=t.cubicBezierEaseOut,i=e.self,a=i.space,s=i.spaceArrow,l=i.padding,c=i.fontSize,d=i.textColor,f=i.dividerColor,p=i.color;return{"--n-box-shadow":i.boxShadow,"--n-bezier":n,"--n-bezier-ease-in":r,"--n-bezier-ease-out":o,"--n-font-size":c,"--n-text-color":d,"--n-color":p,"--n-divider-color":f,"--n-border-radius":i.borderRadius,"--n-arrow-height":i.arrowHeight,"--n-arrow-offset":i.arrowOffset,"--n-arrow-offset-vertical":i.arrowOffsetVertical,"--n-padding":l,"--n-space":a,"--n-space-arrow":s}})),T=c?Xe("popover",void 0,A,e):void 0;function k(t){"hover"===e.trigger&&e.keepAliveOnHover&&e.show&&p.handleMouseEnter(t)}function S(t){"hover"===e.trigger&&e.keepAliveOnHover&&p.handleMouseLeave(t)}function E(t){"hover"!==e.trigger||O().contains(xn(t))||p.handleMouseMoveOutside(t)}function M(t){("click"===e.trigger&&!O().contains(xn(t))||e.onClickoutside)&&p.handleClickOutside(t)}function O(){return p.getTriggerElement()}return p.setBodyInstance({syncPosition:function(){var e;null===(e=d.value)||void 0===e||e.syncPosition()}}),m((function(){p.setBodyInstance(null)})),f(V(e,"show"),(function(t){e.animated||(v.value=!!t)})),X($e,h),X(et,null),X(tt,null),{displayed:y,namespace:a,isMounted:p.isMountedRef,zIndex:p.zIndexRef,followerRef:d,adjustedTo:Ke(e),followerEnabled:v,renderContentNode:function(){var t;if(null==T||T.onRender(),!("show"===e.displayDirective||e.show||e.animated&&y.value))return null;var o=p.internalRenderBodyRef.value,a=s.value;if(o)t=o(["".concat(a,"-popover-shared"),null==T?void 0:T.themeClass.value,e.overlap&&"".concat(a,"-popover-shared--overlap"),e.showArrow&&"".concat(a,"-popover-shared--show-arrow"),e.arrowPointToCenter&&"".concat(a,"-popover-shared--center-arrow")],h,w.value,k,S);else{var l,c=p.extraClassRef.value,u=e.internalTrapFocus,d=!Qe(n.header)||!Qe(n.footer),f=function(){var t,r,o,i,s=d?W(C,null,nt(n.header,(function(t){return t?W("div",{class:"".concat(a,"-popover__header"),style:e.headerStyle},t):null})),nt(n.default,(function(t){return t?W("div",{class:"".concat(a,"-popover__content"),style:e.contentStyle},n):null})),nt(n.footer,(function(t){return t?W("div",{class:"".concat(a,"-popover__footer"),style:e.footerStyle},t):null}))):e.scrollable?null===(t=n.default)||void 0===t?void 0:t.call(n):W("div",{class:"".concat(a,"-popover__content"),style:e.contentStyle},n);return[e.scrollable?W(Ja,{contentClass:d?void 0:"".concat(a,"-popover__content"),contentStyle:d?void 0:e.contentStyle},{default:function(){return s}}):s,e.showArrow?(r={arrowStyle:e.arrowStyle,clsPrefix:a},o=r.arrowStyle,i=r.clsPrefix,W("div",{key:"__popover-arrow__",class:"".concat(i,"-popover-arrow-wrapper")},W("div",{class:"".concat(i,"-popover-arrow"),style:o}))):null]};t=W("div",x({class:["".concat(a,"-popover"),"".concat(a,"-popover-shared"),null==T?void 0:T.themeClass.value,c.map((function(e){return"".concat(a,"-").concat(e)})),(l={},i(l,"".concat(a,"-popover--scrollable"),e.scrollable),i(l,"".concat(a,"-popover--show-header-or-footer"),d),i(l,"".concat(a,"-popover--raw"),e.raw),i(l,"".concat(a,"-popover-shared--overlap"),e.overlap),i(l,"".concat(a,"-popover-shared--show-arrow"),e.showArrow),i(l,"".concat(a,"-popover-shared--center-arrow"),e.arrowPointToCenter),l)],ref:h,style:w.value,onKeydown:p.handleKeydown,onMouseenter:k,onMouseleave:S},r),u?W(Fr,{active:e.show,autoFocus:!0},{default:f}):f())}return Z(t,b.value)}}},render:function(){var e=this;return W(Je,{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:"trigger"===this.width?"target":void 0,teleportDisabled:this.adjustedTo===Ke.tdkey},{default:function(){return e.animated?W(Y,{name:"popover-transition",appear:e.isMounted,onEnter:function(){e.followerEnabled=!0},onAfterLeave:function(){var t;null===(t=e.internalOnAfterLeave)||void 0===t||t.call(e),e.followerEnabled=!1,e.displayed=!1}},{default:e.renderContentNode}):e.renderContentNode()}})}}),ss=Object.keys(is),ls={focus:["onFocus","onBlur"],click:["onClick"],hover:["onMouseenter","onMouseleave"],manual:[],nested:["onFocus","onBlur","onMouseenter","onMouseleave","onClick"]};var cs={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:Ke.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:function(){return[]}},internalTrapFocus:Boolean,internalExtraClass:{type:Array,default:function(){return[]}},onShow:[Function,Array],onHide:[Function,Array],arrow:{type:Boolean,default:void 0},minWidth:Number,maxWidth:Number},us=Object.assign(Object.assign(Object.assign({},Ve.props),cs),{internalOnAfterLeave:Function,internalRenderBody:Function}),ds=h({name:"Popover",inheritAttrs:!1,props:us,__popover__:!0,setup:function(e){g((function(){void 0!==e.maxWidth&&ct("popover","`max-width` is deprecated, please use `style` instead."),void 0!==e.minWidth&&ct("popover","`min-width` is deprecated, please use `style` instead."),void 0!==e.arrow&&ct("popover","`arrow` is deprecated, please use `showArrow` instead."),void 0!==e.onHide&&ct("popover","`on-hide` is deprecated, please use `on-update:show` instead."),void 0!==e.onShow&&ct("popover","`on-show` is deprecated, please use `on-update:show` instead.")}));var t=rt(),n=l(null),r=L((function(){return e.show})),o=l(e.defaultShow),i=ot(r,o),a=it((function(){return!e.disabled&&i.value})),s=function(){if(e.disabled)return!0;var t=e.getDisabled;return!!(null==t?void 0:t())},u=function(){return!s()&&i.value},d=function(e,t){return L((function(){var n,r=c(t);try{for(r.s();!(n=r.n()).done;){var o=n.value;if(void 0!==e[o])return e[o]}}catch(i){r.e(i)}finally{r.f()}return e[t[t.length-1]]}))}(e,["arrow","showArrow"]),f=L((function(){return!e.overlap&&d.value})),p=null,h=l(null),v=l(null),m=it((function(){return void 0!==e.x&&void 0!==e.y}));function y(t){var n=e["onUpdate:show"],r=e.onUpdateShow,i=e.onShow,a=e.onHide;o.value=t,n&&ut(n,t),r&&ut(r,t),t&&i&&ut(i,!0),t&&a&&ut(a,!1)}function b(){var e=h.value;e&&(window.clearTimeout(e),h.value=null)}function w(){var e=v.value;e&&(window.clearTimeout(e),v.value=null)}function x(){var t=s();if("hover"===e.trigger&&!t){if(w(),null!==h.value)return;if(u())return;var n=function(){y(!0),h.value=null},r=e.delay;0===r?n():h.value=window.setTimeout(n,r)}}function A(){var t=s();if("hover"===e.trigger&&!t){if(b(),null!==v.value)return;if(!u())return;var n=function(){y(!1),v.value=null},r=e.duration;0===r?n():v.value=window.setTimeout(n,r)}}return X("NPopover",{getTriggerElement:function(){var e;return null===(e=n.value)||void 0===e?void 0:e.targetRef},handleKeydown:function(t){e.internalTrapFocus&&"Escape"===t.key&&(b(),w(),y(!1))},handleMouseEnter:x,handleMouseLeave:A,handleClickOutside:function(t){var n;u()&&("click"===e.trigger&&(b(),w(),y(!1)),null===(n=e.onClickoutside)||void 0===n||n.call(e,t))},handleMouseMoveOutside:function(){A()},setBodyInstance:function(e){p=e},positionManuallyRef:m,isMountedRef:t,zIndexRef:V(e,"zIndex"),extraClassRef:V(e,"internalExtraClass"),internalRenderBodyRef:V(e,"internalRenderBody")}),g((function(){i.value&&s()&&y(!1)})),{binderInstRef:n,positionManually:m,mergedShowConsideringDisabledProp:a,uncontrolledShow:o,mergedShowArrow:f,getMergedShow:u,setShow:function(e){o.value=e},handleClick:function(){"click"!==e.trigger||s()||(b(),w(),y(!u()))},handleMouseEnter:x,handleMouseLeave:A,handleFocus:function(){var t=s();if("focus"===e.trigger&&!t){if(u())return;y(!0)}},handleBlur:function(){var t=s();if("focus"===e.trigger&&!t){if(!u())return;y(!1)}},syncPosition:function(){p&&p.syncPosition()}}},render:function(){var e,t,n=this,r=this.positionManually,o=this.$slots,i=!1;if(!r&&(t=o.activator?kn(o,"activator"):kn(o,"trigger"))){t=(t=K(t)).type===J?W("span",[t]):t;var s={onClick:this.handleClick,onMouseenter:this.handleMouseEnter,onMouseleave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur};if(null===(e=t.type)||void 0===e?void 0:e.__popover__)i=!0,t.props||(t.props={internalSyncTargetWithParent:!0,internalInheritedEventHandlers:[]}),t.props.internalSyncTargetWithParent=!0,t.props.internalInheritedEventHandlers?t.props.internalInheritedEventHandlers=[s].concat(a(t.props.internalInheritedEventHandlers)):t.props.internalInheritedEventHandlers=[s];else{var l=this.internalInheritedEventHandlers,c=[s].concat(a(l)),u={onBlur:function(e){c.forEach((function(t){t.onBlur(e)}))},onFocus:function(e){c.forEach((function(t){t.onFocus(e)}))},onClick:function(e){c.forEach((function(t){t.onClick(e)}))},onMouseenter:function(e){c.forEach((function(t){t.onMouseenter(e)}))},onMouseleave:function(e){c.forEach((function(t){t.onMouseleave(e)}))}};!function(e,t,n){ls[t].forEach((function(t){e.props?e.props=Object.assign({},e.props):e.props={};var r=e.props[t],o=n[t];e.props[t]=r?function(){r.apply(void 0,arguments),o.apply(void 0,arguments)}:o}))}(t,l?"nested":r?"manual":this.trigger,u)}}return W(lt,{ref:"binderInstRef",syncTarget:!i,syncTargetWithParent:this.internalSyncTargetWithParent},{default:function(){n.mergedShowConsideringDisabledProp;var e=n.getMergedShow();return[n.internalTrapFocus&&e?Z(W("div",{style:{position:"fixed",inset:0}}),[[at,{enabled:e,zIndex:n.zIndex}]]):null,r?null:W(st,null,{default:function(){return t}}),W(as,Cn(n.$props,ss,Object.assign(Object.assign({},n.$attrs),{showArrow:n.mergedShowArrow,show:e})),{default:function(){var e,t;return null===(t=(e=n.$slots).default)||void 0===t?void 0:t.call(e)},header:function(){var e,t;return null===(t=(e=n.$slots).header)||void 0===t?void 0:t.call(e)},footer:function(){var e,t;return null===(t=(e=n.$slots).footer)||void 0===t?void 0:t.call(e)}})]}})}}),fs=_n&&"loading"in document.createElement("img"),ps=new WeakMap,hs=new WeakMap,vs=new WeakMap,gs=function(e,t,n){if(!e)return function(){};var r,o,i,a=function(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.root,r=void 0===n?null:n;return{hash:"".concat(t.rootMargin||"0px 0px 0px 0px","-").concat(Array.isArray(t.threshold)?t.threshold.join(","):null!==(e=t.threshold)&&void 0!==e?e:"0"),options:Object.assign(Object.assign({},t),{root:("string"==typeof r?document.querySelector(r):r)||document.documentElement})}}(t),s=a.options.root,l=ps.get(s);l?r=l:(r=new Map,ps.set(s,r)),r.has(a.hash)?(i=r.get(a.hash))[1].has(e)||(o=i[0],i[1].add(e),o.observe(e)):((o=new IntersectionObserver((function(e){e.forEach((function(e){if(e.isIntersecting){var t=hs.get(e.target),n=vs.get(e.target);t&&t(),n&&(n.value=!0)}}))}),a.options)).observe(e),i=[o,new Set([e])],r.set(a.hash,i));var c=!1,u=function(){c||(hs.delete(e),vs.delete(e),c=!0,i[1].has(e)&&(i[0].unobserve(e),i[1].delete(e)),i[1].size<=0&&r.delete(a.hash),r.size||ps.delete(s))};return hs.set(e,u),vs.set(e,n),u},ms={padding:"8px 14px"},ys=dt({name:"Tooltip",common:Ie,peers:{Popover:$a},self:function(e){var t=e.borderRadius,n=e.boxShadow2,r=e.baseColor;return Object.assign(Object.assign({},ms),{borderRadius:t,boxShadow:n,color:ft(r,"rgba(0, 0, 0, .85)"),textColor:r})}}),bs=Object.assign(Object.assign({},cs),Ve.props),ws=h({name:"Tooltip",props:bs,__popover__:!0,setup:function(e){var t=Ye(e).mergedClsPrefixRef,n=Ve("Tooltip","-tooltip",void 0,ys,e,t),r=l(null),o={syncPosition:function(){r.value.syncPosition()},setShow:function(e){r.value.setShow(e)}};return Object.assign(Object.assign({},o),{popoverRef:r,mergedTheme:n,popoverThemeOverrides:L((function(){return n.value.self}))})},render:function(){var e=this.mergedTheme,t=this.internalExtraClass;return W(ds,Object.assign(Object.assign({},this.$props),{theme:e.peers.Popover,themeOverrides:e.peerOverrides.Popover,builtinThemeOverrides:this.popoverThemeOverrides,internalExtraClass:t.concat("tooltip"),ref:"popoverRef"}),this.$slots)}}),xs=Object.assign(Object.assign({},Ve.props),{showToolbar:{type:Boolean,default:!0},showToolbarTooltip:Boolean}),As=pt("n-image");var Cs=dt({name:"Image",common:Ie,peers:{Tooltip:ys},self:function(){return{toolbarIconColor:"rgba(255, 255, 255, .9)",toolbarColor:"rgba(0, 0, 0, .35)",toolbarBoxShadow:"none",toolbarBorderRadius:"24px"}}}),Ts=W("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W("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"})),ks=W("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W("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"})),Ss=W("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"},W("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"})),Es=We([We("body >",[Be("image-container","position: fixed;")]),Be("image-preview-container","\n position: fixed;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n "),Be("image-preview-overlay","\n z-index: -1;\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n background: rgba(0, 0, 0, .3);\n ",[Ua()]),Be("image-preview-toolbar","\n z-index: 1;\n position: absolute;\n left: 50%;\n transform: translateX(-50%);\n border-radius: var(--n-toolbar-border-radius);\n height: 48px;\n bottom: 40px;\n padding: 0 12px;\n background: var(--n-toolbar-color);\n box-shadow: var(--n-toolbar-box-shadow);\n color: var(--n-toolbar-icon-color);\n transition: color .3s var(--n-bezier);\n display: flex;\n align-items: center;\n ",[Be("base-icon","\n padding: 0 8px;\n font-size: 28px;\n cursor: pointer;\n "),Ua()]),Be("image-preview-wrapper","\n position: absolute;\n left: 0;\n right: 0;\n top: 0;\n bottom: 0;\n display: flex;\n pointer-events: none;\n ",[ht()]),Be("image-preview","\n user-select: none;\n -webkit-user-select: none;\n pointer-events: all;\n margin: auto;\n max-height: calc(100vh - 32px);\n max-width: calc(100vw - 32px);\n transition: transform .3s var(--n-bezier);\n "),Be("image","\n display: inline-flex;\n max-height: 100%;\n max-width: 100%;\n ",[Ge("preview-disabled","\n cursor: pointer;\n "),We("img","\n border-radius: inherit;\n ")])]),Ms=h({name:"ImagePreview",props:Object.assign(Object.assign({},xs),{onNext:Function,onPrev:Function,clsPrefix:{type:String,required:!0}}),setup:function(e){var t=Ve("Image","-image",Es,Cs,e,V(e,"clsPrefix")),n=null,r=l(null),o=l(null),i=l(void 0),a=l(!1),s=l(!1),c=function(e){var t=q(De,null)||{},n=t.mergedLocaleRef,r=t.mergedDateLocaleRef,o=L((function(){var t,r;return null!==(r=null===(t=null==n?void 0:n.value)||void 0===t?void 0:t[e])&&void 0!==r?r:wa[e]}));return{dateLocaleRef:L((function(){var e;return null!==(e=null==r?void 0:r.value)&&void 0!==e?e:ja})),localeRef:o}}("Image"),u=c.localeRef;function d(t){var n,r;switch(t.key){case" ":t.preventDefault();break;case"ArrowLeft":null===(n=e.onPrev)||void 0===n||n.call(e);break;case"ArrowRight":null===(r=e.onNext)||void 0===r||r.call(e);break;case"Escape":N()}}f(a,(function(e){e?le("keydown",document,d):ce("keydown",document,d)})),m((function(){ce("keydown",document,d)}));var p=0,h=0,v=0,g=0,y=0,b=0,w=0,x=0,A=!1;function C(e){var t=e.clientX,n=e.clientY;v=t-p,g=n-h,gt(j)}function T(e){var t=r.value;if(!t)return{offsetX:0,offsetY:0};var n=t.getBoundingClientRect(),o=e||{},i=o.moveVerticalDirection,a=o.moveHorizontalDirection,s=o.deltaHorizontal,l=o.deltaVertical;return{offsetX:n.width<=window.innerWidth?0:n.left>0?(n.width-window.innerWidth)/2:n.right0?(n.height-window.innerHeight)/2:n.bottom0?"Top":"Bottom"),moveHorizontalDirection:"horizontal".concat(r>0?"Left":"Right"),deltaHorizontal:r,deltaVertical:o}}({mouseUpClientX:t,mouseUpClientY:n,mouseDownClientX:w,mouseDownClientY:x}),o=T(r);v=o.offsetX,g=o.offsetY,j()}var S=q(As,null);var E=0,M=1,O=0;function P(){M=1,E=0}function _(){var e=r.value;if(!e)return 1;var t=window,n=t.innerWidth,o=t.innerHeight,i=e.naturalHeight/(o-32),a=e.naturalWidth/(n-32);return i<1&&a<1?1:Math.max(i,a)}function j(){var e,t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],n=r.value;if(n){var o=n.style,i=Q(null===(e=null==S?void 0:S.previewedImgPropsRef.value)||void 0===e?void 0:e.style),a="";if("string"==typeof i)a=i+";";else for(var s in i)a+="".concat(ba(s),": ").concat(i[s],";");var l="transform-origin: center; transform: translateX(".concat(v,"px) translateY(").concat(g,"px) rotate(").concat(O,"deg) scale(").concat(M,");");o.cssText=A?a+"cursor: grabbing; transition: none;"+l:a+"cursor: grab;"+l+(t?"":"transition: none;"),t||n.offsetHeight}}function N(){a.value=!a.value,s.value=!0}var D={setPreviewSrc:function(e){i.value=e},setThumbnailEl:function(e){n=e},toggleShow:N};var z=L((function(){var e=t.value,n=e.common.cubicBezierEaseInOut,r=e.self,o=r.toolbarIconColor,i=r.toolbarBorderRadius,a=r.toolbarBoxShadow;return{"--n-bezier":n,"--n-toolbar-icon-color":o,"--n-toolbar-color":r.toolbarColor,"--n-toolbar-border-radius":i,"--n-toolbar-box-shadow":a}})),F=Ye().inlineThemeDisabled,R=F?Xe("image-preview",void 0,z,e):void 0;return Object.assign({previewRef:r,previewWrapperRef:o,previewSrc:i,show:a,appear:rt(),displayed:s,previewedImgProps:null==S?void 0:S.previewedImgPropsRef,handleWheel:function(e){e.preventDefault()},handlePreviewMousedown:function(e){var t,n;if(null===(n=null===(t=null==S?void 0:S.previewedImgPropsRef.value)||void 0===t?void 0:t.onMousedown)||void 0===n||n.call(t,e),0===e.button){var r=e.clientX,o=e.clientY;A=!0,p=r-v,h=o-g,y=v,b=g,w=r,x=o,j(),le("mousemove",document,C),le("mouseup",document,k)}},handlePreviewDblclick:function(e){var t,n;null===(n=null===(t=null==S?void 0:S.previewedImgPropsRef.value)||void 0===t?void 0:t.onDblclick)||void 0===n||n.call(t,e);var r=_();M=M===r?1:r,j()},syncTransformOrigin:function(){var e=o.value;if(n&&e){var t=e.style,r=n.getBoundingClientRect(),i=r.left+r.width/2,a=r.top+r.height/2;t.transformOrigin="".concat(i,"px ").concat(a,"px")}},handleAfterLeave:function(){P(),O=0,s.value=!1},handleDragStart:function(e){var t,n;null===(n=null===(t=null==S?void 0:S.previewedImgPropsRef.value)||void 0===t?void 0:t.onDragstart)||void 0===n||n.call(t,e),e.preventDefault()},zoomIn:function(){var e=function(){var e=r.value;if(!e)return 1;var t=window,n=t.innerWidth,o=t.innerHeight,i=Math.max(1,e.naturalHeight/(o-32)),a=Math.max(1,e.naturalWidth/(n-32));return Math.max(3,2*i,2*a)}();M.5){E-=1;var e=M-(M=Math.max(.5,Math.pow(1.5,E)));j(!1);var t=T();M+=e,j(!1),M-=e,v=t.offsetX,g=t.offsetY,j()}},rotateCounterclockwise:function(){O-=90,j()},rotateClockwise:function(){O+=90,j()},handleSwitchPrev:function(){var t;P(),O=0,null===(t=e.onPrev)||void 0===t||t.call(e)},handleSwitchNext:function(){var t;P(),O=0,null===(t=e.onNext)||void 0===t||t.call(e)},withTooltip:function(n,r){if(e.showToolbarTooltip){var o=t.value;return W(ws,{to:!1,theme:o.peers.Tooltip,themeOverrides:o.peerOverrides.Tooltip,keepAliveOnHover:!1},{default:function(){return u.value[r]},trigger:function(){return n}})}return n},resizeToOrignalImageSize:function(){M=_(),E=Math.ceil(Math.log(M)/Math.log(1.5)),v=0,g=0,j()},cssVars:F?void 0:z,themeClass:null==R?void 0:R.themeClass,onRender:null==R?void 0:R.onRender},D)},render:function(){var e,t,n=this,r=this.clsPrefix;return W(C,null,null===(t=(e=this.$slots).default)||void 0===t?void 0:t.call(e),W(vt,{show:this.show},{default:function(){var e;return n.show||n.displayed?(null===(e=n.onRender)||void 0===e||e.call(n),Z(W("div",{class:["".concat(r,"-image-preview-container"),n.themeClass],style:n.cssVars,onWheel:n.handleWheel},W(Y,{name:"fade-in-transition",appear:n.appear},{default:function(){return n.show?W("div",{class:"".concat(r,"-image-preview-overlay"),onClick:n.toggleShow}):null}}),n.showToolbar?W(Y,{name:"fade-in-transition",appear:n.appear},{default:function(){if(!n.show)return null;var e=n.withTooltip;return W("div",{class:"".concat(r,"-image-preview-toolbar")},n.onPrev?W(C,null,e(W(Ia,{clsPrefix:r,onClick:n.handleSwitchPrev},{default:function(){return Ts}}),"tipPrevious"),e(W(Ia,{clsPrefix:r,onClick:n.handleSwitchNext},{default:function(){return ks}}),"tipNext")):null,e(W(Ia,{clsPrefix:r,onClick:n.rotateCounterclockwise},{default:function(){return W(Fa,null)}}),"tipCounterclockwise"),e(W(Ia,{clsPrefix:r,onClick:n.rotateClockwise},{default:function(){return W(za,null)}}),"tipClockwise"),e(W(Ia,{clsPrefix:r,onClick:n.resizeToOrignalImageSize},{default:function(){return W(Ba,null)}}),"tipOriginalSize"),e(W(Ia,{clsPrefix:r,onClick:n.zoomOut},{default:function(){return W(Ra,null)}}),"tipZoomOut"),e(W(Ia,{clsPrefix:r,onClick:n.zoomIn},{default:function(){return W(La,null)}}),"tipZoomIn"),e(W(Ia,{clsPrefix:r,onClick:n.toggleShow},{default:function(){return Ss}}),"tipClose"))}}):null,W(Y,{name:"fade-in-scale-up-transition",onAfterLeave:n.handleAfterLeave,appear:n.appear,onEnter:n.syncTransformOrigin,onBeforeLeave:n.syncTransformOrigin},{default:function(){var e=n.previewedImgProps,t=void 0===e?{}:e;return Z(W("div",{class:"".concat(r,"-image-preview-wrapper"),ref:"previewWrapperRef"},W("img",Object.assign({},t,{draggable:!1,onMousedown:n.handlePreviewMousedown,onDblclick:n.handlePreviewDblclick,class:["".concat(r,"-image-preview"),t.class],key:n.previewSrc,src:n.previewSrc,ref:"previewRef",onDragstart:n.handleDragStart}))),[[G,n.show]])}})),[[at,{enabled:n.show}]])):null}}))}}),Os=pt("n-image-group");h({name:"ImageGroup",props:xs,setup:function(e){var t,n=Ye(e).mergedClsPrefixRef,r="c".concat(An()),o=R(),i=function(e){var n;t=e,null===(n=s.value)||void 0===n||n.setPreviewSrc(e)};function a(e){if(null==o?void 0:o.proxy){var n=o.proxy.$el.parentElement.querySelectorAll("[data-group-id=".concat(r,"]:not([data-error=true])"));if(n.length){var a=Array.from(n).findIndex((function(e){return e.dataset.previewSrc===t}));i(~a?n[(a+e+n.length)%n.length].dataset.previewSrc:n[0].dataset.previewSrc)}}}X(Os,{mergedClsPrefixRef:n,setPreviewSrc:i,setThumbnailEl:function(e){var t;null===(t=s.value)||void 0===t||t.setThumbnailEl(e)},toggleShow:function(){var e;null===(e=s.value)||void 0===e||e.toggleShow()},groupId:r});var s=l(null);return{mergedClsPrefix:n,previewInstRef:s,next:function(){a(1)},prev:function(){a(-1)}}},render:function(){return W(Ms,{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)}});var Ps=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},xs),_s=h({name:"Image",props:Ps,inheritAttrs:!1,setup:function(e){var t=l(null),n=l(!1),r=l(null),o=q(Os,null),i=(o||Ye(e)).mergedClsPrefixRef,a={click:function(){if(!e.previewDisabled&&!n.value){var i=e.previewSrc||e.src;if(o)return o.setPreviewSrc(i),o.setThumbnailEl(t.value),void o.toggleShow();var a=r.value;a&&(a.setPreviewSrc(i),a.setThumbnailEl(t.value),a.toggleShow())}}},s=l(!e.lazy);v((function(){var e;null===(e=t.value)||void 0===e||e.setAttribute("data-group-id",(null==o?void 0:o.groupId)||"")})),v((function(){if(e.lazy&&e.intersectionObserverOptions){var n,r=g((function(){null==n||n(),n=void 0,n=gs(t.value,e.intersectionObserverOptions,s)}));m((function(){r(),null==n||n()}))}})),g((function(){var t;e.src,null===(t=e.imgProps)||void 0===t||t.src,n.value=!1}));var c=l(!1);return X(As,{previewedImgPropsRef:V(e,"previewedImgProps")}),Object.assign({mergedClsPrefix:i,groupId:null==o?void 0:o.groupId,previewInstRef:r,imageRef:t,showError:n,shouldStartLoading:s,loaded:c,mergedOnClick:function(t){var n,r;a.click(),null===(r=null===(n=e.imgProps)||void 0===n?void 0:n.onClick)||void 0===r||r.call(n,t)},mergedOnError:function(t){if(s.value){n.value=!0;var r=e.onError,o=e.imgProps,i=(void 0===o?{}:o).onError;null==r||r(t),null==i||i(t)}},mergedOnLoad:function(t){var n=e.onLoad,r=e.imgProps,o=(void 0===r?{}:r).onLoad;null==n||n(t),null==o||o(t),c.value=!0}},a)},render:function(){var e,t,n=this.mergedClsPrefix,r=this.imgProps,o=void 0===r?{}:r,i=this.loaded,a=this.$attrs,s=this.lazy,l=null===(t=(e=this.$slots).placeholder)||void 0===t?void 0:t.call(e),c=this.src||o.src,u=W("img",Object.assign(Object.assign({},o),{ref:"imageRef",width:this.width||o.width,height:this.height||o.height,src:this.showError?this.fallbackSrc:s&&this.intersectionObserverOptions?this.shouldStartLoading?c:void 0:c,alt:this.alt||o.alt,"aria-label":this.alt||o.alt,onClick:this.mergedOnClick,onError:this.mergedOnError,onLoad:this.mergedOnLoad,loading:fs&&s&&!this.intersectionObserverOptions?"lazy":"eager",style:[o.style||"",l&&!i?{height:"0",width:"0",visibility:"hidden"}:"",{objectFit:this.objectFit}],"data-error":this.showError,"data-preview-src":this.previewSrc||this.src}));return W("div",Object.assign({},a,{role:"none",class:[a.class,"".concat(n,"-image"),(this.previewDisabled||this.showError)&&"".concat(n,"-image--preview-disabled")]}),this.groupId?u:W(Ms,{theme:this.theme,themeOverrides:this.themeOverrides,clsPrefix:n,ref:"previewInstRef",showToolbar:this.showToolbar,showToolbarTooltip:this.showToolbarTooltip},{default:function(){return u}}),!i&&l)}}),js={container:"_container_133yi_1",head:"_head_133yi_10",back:"_back_133yi_18",tabs:"_tabs_133yi_21",downBtn:"_downBtn_133yi_37",icon:"_icon_133yi_61",popover:"_popover_133yi_66",content:"_content_133yi_85",wrap:"_wrap_133yi_91",wrapItem:"_wrapItem_133yi_97",name:"_name_133yi_107",favoriteBtn:"_favoriteBtn_133yi_114",cover:"_cover_133yi_120",loaded:"_loaded_133yi_150",book:"_book_133yi_153",bookWrap:"_bookWrap_133yi_167",show:"_show_133yi_175"},Ns=""+new URL("icon_back-b80c2fc2.svg",r.meta.url).href,Ds=""+new URL("icon_arrow-2c7b8e94.svg",r.meta.url).href,zs=function(e){return $.post("/edu-app/lessonCoursewareFavorite/remove",{data:e})},Fs=h({name:"the-favorite",props:{isFavorite:{type:Boolean,default:!1}},setup:function(e){return function(){return b("div",{class:["favoriteWrap",e.isFavorite?"liked":""]},[b("img",{class:"favoritIcon",src:e.isFavorite?"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAgCAYAAAB6kdqOAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAJKADAAQAAAABAAAAIAAAAADfjkU8AAAHv0lEQVRYCZVXW6hWRRReM/u/HM/xclRCUzHLEFIkyqfwIUylG5pKIFqBhSgUkj1kGYT2ENJDUQhhF4QgDBRJPGZHo9KkHoISzUsmPQl5yfvlePz33jN935qZ39+T132Yf9bMrMs331ozex8jN3h6X180Nqv1e8kb+4QxdoR3MsSXZSGFOyul32tco6s6+O41ZuVK1+rCr1+f5bt2LYTNLG+z8eL8MKwbyd1ZnxfH/JX8+0Zv8cnADWsPtdol2SQh9X75K0Pzava+qdTniStrxnmBUwGgqz2mxBvB2lFTuhWVj1Z/Rvti6dKFpmJXOicjDQ2g5wv+wL6kDzSMvTO5uXy5q7jc83L/zV8dp216rgHUeHvJQ1m1vskbP9rAK4EI+zLK6himAOOxaf4xqHi7UaMaedZgTedowzXaF0435NXeYIqgsFy4E9JzZU775i9+/h+gxhuLH8wGDNjpnRtkXIHdw6JaExkzTmT/HjgtuVExaJ5BxUYf6BkYT1hDDzbAbtgQOmWYDKktl7AhjB03Vvqesrd3+sBvvvxFffDHL13aWXaa3djwGAsw6mz0WDHzF4u09RNZ9abIqZO6KwYnC5pCgrIEBL7SHDZisJfALoGRjYgEQFQkVgiUnbcE9a87f2r8wB1dJysElHcU71mfjTG6K2gbK2beIpH2DpEtG0ROHIMlphkITiApgIAqZh3zzXWkSBWVqTAP5jFFOyiSNcji2JBOsXeZen/W4WzTs2zhqGq945A1rt2UOZRLhIPRYzNE9u0W+fswjDHW7cAEq+oMU/pghwqS47Bl9H1kXYMa5/Gw595DaYI1+ARTeS1vPFDJfH2BuKJdte4bJ2bkPSLbN4OZ9cFCdwmPdBYdq1ewGAKnKJjVnVMPirRL+uwxvppW6pA52LKedGirufOvVcDM44KyMQbeJk8TGTdBZOc2kfMNBORWoN4KhtZkCUwG2oPzZnAuN8HQFo3poR39YKxXiW40+NHTiiWsTK1A6V54wAio1n0qMrBT5MJFTMGaTmhIAAmYynFNgTIgA8WGLtjFnmu6jp8ElL4pg50AGDJFa4dXfOmGWnjjSTDnzomcPoMVesdDEKqJjrvkoyDQ666xTpUkt65TTmvJhr4AhjUUWIKAGFpbvDMy6QBDuDsJALN6AijH2zU4pGMGjrvBsj4E2wwYZa5xTtegr+ucg6AnKuiBhHBjs2eDb1wC3LuzvpEfxztKkZNGRdt0lJzHQATFRxmJfQKWwNCWTCQfaZ1YdA4/0NW7SeNhjPgat5Dz1pTmKG/NAAYsUaZzbZA1eGRHmeJanG8JdhVAWk89bYM90xSAMG2BHX2tgCWiRYZO4WLODyRmPI9gWIMCHKadJgCca7JDUBynFscYNnVa7NUvAfH80B/Z0XSFrBAgoh+y1rnP9Q3M25UKrCEijqwpG3RMJ5i+yk4CwrkIQoFTpm5s9KPA6BsyY7Dx3YjeUVbmwZDYDxFJpPeF5w8bKe/HW0Usql2LWymkc2pEQJTZFECU01jBQK9VJ26gyQg27QDENUopiwLYUMpopcFNVK2eGLxn6zBct3hyt5HXkL6B+akAWvVqUuSQGUx3SRmNTxNIlLnOR+fxowBjzUBmypSNnAVMIGGsajA11m6huQKqnxu6AiCO8UWvOWZ+1UOoKQVB6hnsmsa5OB/ZCKkKTNEFCxrfPSFFZAd+SrwznZ4sxMGflex8z/GjS5qAzLerr5iyXEXlAIoswRFBNHMMdTJHQAzEXllrSZOucYwwyTYFJhiwo0CwpqcMTljKlazywYh/fuuJHtmF5/LsufvgaYIlhagl1hTfMxjiwScJAyoQ9IlrBYEf7aGp6cEAoLV4Wbg5NkgwrBsAK7lx5MzZTGy1emTw/u7RjMAn1FCQxRbFXOhddDl2gObwNcKdKvXax8CQ9W5REFEmewoGPY829QGkCQaACEazQNahZozprbnqrBheu2sA1bs27pfSvkrwNCQQrSm+SjCpaUhB6bEFGEspAIIRPnbSsQ7MhFQ5njKmEH8OKcjq/ZZ3HOz6vRVQyEbrDORLT85Zi9p5kWg1fRCQMIxwU+jeMh0pc0DCL8XAIgMCGRrTw2LWY57SBDAlLlYPp5W22qbOfdtm9wkdy6PvLMaXps/eiAtrjkWkjPcE4Wgfq4pAmHEWsLJFNskMmIynimyUjcCKgxLLDsxIVm/7YfCB7qnXCXtjQFS+MG3mJsn9MxnQWDhTQFEmW9oYRQGRjZBWpovMlDqGjHVegh5gKvXajs6D3025HhjO0etNn54ps9ahGOfx9iYwfoaCdDSwg7pSenjXsFAJAHMKBDIKES0ww/9OAGbroAPbn75ZQJbJTZ/2HzfNN9YsQ/p6SxS3Hlse4bxAY4+ADRznPA9rkHUN6dJ/CLlna/JKve2dW4EhkFsylNBemDxzCnhfhzoZTrb4KaH3EutGixopURkAyQrm1Lu1Z+qVtnn9/+zGh/qtn9sGRFdHRj3Sb9DIIR9Lo3gO76Nq+gzVLwQFwTQRB1JopMhqta97zp1ekG7hW8O5A4ZanV2aNOPhoszXoHAn4drFQQQKANKjbywuYPuH9ZVFg/7a9mur3e3Id8RQX4cXJz41sTTuXXxKPIoaM3gn/YR/M98asq97b1/d2x3/B8k9N3E67sAEAAAAAElFTkSuQmCC":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAkCAYAAAD7PHgWAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAKKADAAQAAAABAAAAJAAAAAC/FoutAAADKklEQVRYCc2YW4hNYRiGx3FyaJxPMUYOOZWSUBgjE8odk3AhXChR5E5qTG5QUmhScoFxNXKIckiZUk4hlJBcGJPzIeVYzOB5prWy7TFr9p7Zs9d+69nrX+v7//97117/+tbaOy8vx9UhBX/j6VMG82AYDIFv8AKuwQmogV+QqMnsLAXHFUIBvAbHXYaTcBtarXGMvAC/U+AufUpAeRLVkMq4W/SbCWlrIyN+gkk+wkFYCCOhG/SDqVABtWA/v8Hd8DbY/8x2DxTDAMiHIiiFvfASHCeV0AlS0k56hQn30+7bwigTl0MDhAnP0R4KUfJEt4LLxXFnwGORWkPUzj9geWTPpkHXWz1UQeem4WaPTCfyDsx7qNleBCZAeDbLojpGxOYTS/lSJcwzkfYX0OTKhOP/NE8FHVxvcWgFSTX4Bppcas/ARf4V+kNcukpiTW5KNrArCOxLDmR530qhwYfJee8FgdnJgSzvu34ta5osDHNbRsLL2zU8GOP2OLk1uEoPHcHK7yPvCVhe4tb9wECRWw0ODA5Yi3JBPonUID802MMG8g7OBVkPVU8/NPjKBvItJRcU+mj0pcHngauWnp3ZMu89oRp9adDK/RN07ltK3JoUGKhLNHKaHW/tDYkHY2iPIKclz3XYuAbZNmoRnxq0YMepbSTXx5FkE1044KU2uDo5mKX9UeTxJVcP/32i+T5n0E6jIZvy/fE6mL8qKvHRoNMdtn2iOmY4VhnkrWXbK2ruAoKPwTNxPfpboj1lFTkA5vsOs6BFWW4egIMeQViXaGZUrvvwivkUK01ndl9avcya9OYpgUxqMJNdAef/BMWQtnoz4iI4iYV8M3hJ2qq5TBD+5KyjPaUtE2poO1g8NXoJWvtI9E7dAQ3gXDWQsTW+gMn828KJP8ASSEdj6XwTHF8P5ZCJq8E0f+V741kwibjAI0sCcbUOvAkc8xRmQLtqLbOHCZ/RntNMNqvBeQhP6DBty1hWNIYsN8Dkrk9/FeZDKJ/t78G42zLIulz0FeAdrhF/Ki6G6mDfY36DfpOxahrZLegaCvF1aT3kjLy8W0Bjx2A45KS6Z9rVH+dMzG9PPT/rAAAAAElFTkSuQmCC"},null)])}}}),Ls={book:"_book_1fdnj_1",back:"_back_1fdnj_7",bookHide:"_bookHide_1fdnj_12",wrap:"_wrap_1fdnj_52",item:"_item_1fdnj_56",des:"_des_1fdnj_67",icon:"_icon_1fdnj_71"},Rs=""+new URL("icon_play-8079d539.svg",r.meta.url).href,Bs=h({name:"the-book",props:{bookData:{type:Object,default:function(){return{}}},show:{type:Boolean,default:!1},rect:{type:Object,default:function(){return{}}}},emits:["close"],setup:function(e,t){var r=t.emit;ee();var i=te({show:!1,width:0,height:0,transform:"",list:[]}),a=function(){var e=o(n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:console.log("初始化完成");case 1:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),s=null,l=null,c=function(){clearTimeout(l);var e=document.querySelector(".bookWrap");s.turn("page",1),e&&(e.style.transform=i.transform),r("close"),setTimeout((function(){e.style.transition="",e.style.transform="",i.show=!1,i.list=[]}),1e3)};v(o(n().mark((function e(){return n().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,a();case 2:case"end":return e.stop()}}),e)}))));f((function(){return e.show}),(function(){e.show&&(!function(){var t;if(null!==(t=e.bookData)&&void 0!==t&&t.lessonList){var n=Math.floor((.8*document.body.clientHeight-40)/50);console.log("🚀 ~ step:",n);for(var r=[],o=[],a=0;a").appendTo(t),r=n.css("display");n.remove(),"none"!==r&&""!==r||(lt||((lt=O.createElement("iframe")).frameBorder=lt.width=lt.height=0),t.appendChild(lt),ct&<.createElement||((ct=(lt.contentWindow||lt.contentDocument).document).write(("CSS1Compat"===O.compatMode?"":"")+""),ct.close()),n=ct.createElement(e),ct.body.appendChild(n),r=j.css(n,"display"),t.removeChild(lt)),ft[e]=r}return ft[e]}function o(e,t){var n={};return j.each(vt.concat.apply([],vt.slice(0,t)),(function(){n[this]=e})),n}function i(){dt=t}function a(){return setTimeout(i,0),dt=j.now()}function s(){try{return new e.XMLHttpRequest}catch(t){}}function l(e,t,n,r){if(j.isArray(t))j.each(t,(function(t,o){n||We.test(e)?r(e,o):l(e+"["+("object"==u(o)||j.isArray(o)?t:"")+"]",o,n,r)}));else if(n||null==t||"object"!=u(t))r(e,t);else for(var o in t)l(e+"["+o+"]",t[o],n,r)}function c(e,n){var r,o,i=j.ajaxSettings.flatOptions||{};for(r in n)n[r]!==t&&((i[r]?e:o||(o={}))[r]=n[r]);o&&j.extend(!0,e,o)}function d(e,n,r,o,i,a){(a=a||{})[i=i||n.dataTypes[0]]=!0;for(var s,l=e[i],c=0,u=l?l.length:0,f=e===et;c0?("border"!==n&&j.each(o,(function(){n||(r-=parseFloat(j.css(e,"padding"+this))||0),"margin"===n?r+=parseFloat(j.css(e,n+this))||0:r-=parseFloat(j.css(e,"border"+this+"Width"))||0})),r+"px"):(((r=ke(e,t,t))<0||null==r)&&(r=e.style[t]||0),r=parseFloat(r)||0,n&&j.each(o,(function(){r+=parseFloat(j.css(e,"padding"+this))||0,"padding"!==n&&(r+=parseFloat(j.css(e,"border"+this+"Width"))||0),"margin"===n&&(r+=parseFloat(j.css(e,n+this))||0)})),r+"px")}function h(e,t){t.src?j.ajax({url:t.src,async:!1,dataType:"script"}):j.globalEval((t.text||t.textContent||t.innerHTML||"").replace(Ae,"/*$0*/")),t.parentNode&&t.parentNode.removeChild(t)}function v(e){var t=(e.nodeName||"").toLowerCase();"input"===t?g(e):"script"!==t&&void 0!==e.getElementsByTagName&&j.grep(e.getElementsByTagName("input"),g)}function g(e){"checkbox"!==e.type&&"radio"!==e.type||(e.defaultChecked=e.checked)}function m(e){return void 0!==e.getElementsByTagName?e.getElementsByTagName("*"):void 0!==e.querySelectorAll?e.querySelectorAll("*"):[]}function y(e,t){var n;1===t.nodeType&&(t.clearAttributes&&t.clearAttributes(),t.mergeAttributes&&t.mergeAttributes(e),"object"===(n=t.nodeName.toLowerCase())?t.outerHTML=e.outerHTML:"input"!==n||"checkbox"!==e.type&&"radio"!==e.type?"option"===n?t.selected=e.defaultSelected:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue):(e.checked&&(t.defaultChecked=t.checked=e.checked),t.value!==e.value&&(t.value=e.value)),t.removeAttribute(j.expando))}function b(e,t){if(1===t.nodeType&&j.hasData(e)){var n,r,o,i=j._data(e),a=j._data(t,i),s=i.events;if(s)for(n in delete a.handle,a.events={},s)for(r=0,o=s[n].length;r=0===n}))}function C(e){return!e||!e.parentNode||11===e.parentNode.nodeType}function T(){return!0}function k(){return!1}function S(e,t,n){var r=t+"defer",o=t+"queue",i=t+"mark",a=j._data(e,r);a&&("queue"===n||!j._data(e,o))&&("mark"===n||!j._data(e,i))&&setTimeout((function(){!j._data(e,o)&&!j._data(e,i)&&(j.removeData(e,r,!0),a.fire())}),0)}function E(e){for(var t in e)if(("data"!==t||!j.isEmptyObject(e[t]))&&"toJSON"!==t)return!1;return!0}function M(e,n,r){if(r===t&&1===e.nodeType){var o="data-"+n.replace(F,"-$1").toLowerCase();if("string"==typeof(r=e.getAttribute(o))){try{r="true"===r||"false"!==r&&("null"===r?null:j.isNumeric(r)?parseFloat(r):z.test(r)?j.parseJSON(r):r)}catch(N){}j.data(e,n,r)}else r=t}return r}var O=e.document,P=e.navigator,_=e.location,j=function(){function n(){if(!s.isReady){try{O.documentElement.doScroll("left")}catch(e){return void setTimeout(n,1)}s.ready()}}var r,o,i,a,s=function e(t,n){return new e.fn.init(t,n,r)},l=e.jQuery,c=e.$,d=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,f=/\S/,p=/^\s+/,h=/\s+$/,v=/\d/,g=/^<(\w+)\s*\/?>(?:<\/\1>)?$/,m=/^[\],:{}\s]*$/,y=/\\(?:["\\\/bfnrt]|u[0-9a-fA-F]{4})/g,b=/"[^"\\\n\r]*"|true|false|null|-?\d+(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,w=/(?:^|:|,)(?:\s*\[)+/g,x=/(webkit)[ \/]([\w.]+)/,A=/(opera)(?:.*version)?[ \/]([\w.]+)/,C=/(msie) ([\w.]+)/,T=/(mozilla)(?:.*? rv:([\w.]+))?/,k=/-([a-z]|[0-9])/gi,S=/^-ms-/,E=function(e,t){return(t+"").toUpperCase()},M=P.userAgent,_=Object.prototype.toString,j=Object.prototype.hasOwnProperty,N=Array.prototype.push,D=Array.prototype.slice,z=String.prototype.trim,F=Array.prototype.indexOf,L={};return s.fn=s.prototype={constructor:s,init:function(e,n,r){var o,i,a,l;if(!e)return this;if(e.nodeType)return this.context=this[0]=e,this.length=1,this;if("body"===e&&!n&&O.body)return this.context=O,this[0]=O.body,this.selector=e,this.length=1,this;if("string"==typeof e){if((o="<"!==e.charAt(0)||">"!==e.charAt(e.length-1)||e.length<3?d.exec(e):[null,e,null])&&(o[1]||!n)){if(o[1])return l=(n=n instanceof s?n[0]:n)?n.ownerDocument||n:O,(a=g.exec(e))?s.isPlainObject(n)?(e=[O.createElement(a[1])],s.fn.attr.call(e,n,!0)):e=[l.createElement(a[1])]:e=((a=s.buildFragment([o[1]],[l])).cacheable?s.clone(a.fragment):a.fragment).childNodes,s.merge(this,e);if((i=O.getElementById(o[2]))&&i.parentNode){if(i.id!==o[2])return r.find(e);this.length=1,this[0]=i}return this.context=O,this.selector=e,this}return!n||n.jquery?(n||r).find(e):this.constructor(n).find(e)}return s.isFunction(e)?r.ready(e):(e.selector!==t&&(this.selector=e.selector,this.context=e.context),s.makeArray(e,this))},selector:"",jquery:"1.7",length:0,size:function(){return this.length},toArray:function(){return D.call(this,0)},get:function(e){return null==e?this.toArray():e<0?this[this.length+e]:this[e]},pushStack:function(e,t,n){var r=this.constructor();return s.isArray(e)?N.apply(r,e):s.merge(r,e),r.prevObject=this,r.context=this.context,"find"===t?r.selector=this.selector+(this.selector?" ":"")+n:t&&(r.selector=this.selector+"."+t+"("+n+")"),r},each:function(e,t){return s.each(this,e,t)},ready:function(e){return s.bindReady(),i.add(e),this},eq:function(e){return-1===e?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},slice:function(){return this.pushStack(D.apply(this,arguments),"slice",D.call(arguments).join(","))},map:function(e){return this.pushStack(s.map(this,(function(t,n){return e.call(t,n,t)})))},end:function(){return this.prevObject||this.constructor(null)},push:N,sort:[].sort,splice:[].splice},s.fn.init.prototype=s.fn,s.extend=s.fn.extend=function(){var e,n,r,o,i,a,l=arguments[0]||{},c=1,d=arguments.length,f=!1;for("boolean"==typeof l&&(f=l,l=arguments[1]||{},c=2),"object"!=u(l)&&!s.isFunction(l)&&(l={}),d===c&&(l=this,--c);c0)return;i.fireWith(O,[s]),s.fn.trigger&&s(O).trigger("ready").unbind("ready")}},bindReady:function(){if(!i){if(i=s.Callbacks("once memory"),"complete"===O.readyState)return setTimeout(s.ready,1);if(O.addEventListener)O.addEventListener("DOMContentLoaded",a,!1),e.addEventListener("load",s.ready,!1);else if(O.attachEvent){O.attachEvent("onreadystatechange",a),e.attachEvent("onload",s.ready);var t=!1;try{t=null==e.frameElement}catch(P){}O.documentElement.doScroll&&t&&n()}}},isFunction:function(e){return"function"===s.type(e)},isArray:Array.isArray||function(e){return"array"===s.type(e)},isWindow:function(e){return e&&"object"==u(e)&&"setInterval"in e},isNumeric:function(e){return null!=e&&v.test(e)&&!isNaN(e)},type:function(e){return null==e?String(e):L[_.call(e)]||"object"},isPlainObject:function(e){if(!e||"object"!==s.type(e)||e.nodeType||s.isWindow(e))return!1;try{if(e.constructor&&!j.call(e,"constructor")&&!j.call(e.constructor.prototype,"isPrototypeOf"))return!1}catch(O){return!1}var n;for(n in e);return n===t||j.call(e,n)},isEmptyObject:function(e){for(var t in e)return!1;return!0},error:function(e){throw e},parseJSON:function(t){return"string"==typeof t&&t?(t=s.trim(t),e.JSON&&e.JSON.parse?e.JSON.parse(t):m.test(t.replace(y,"@").replace(b,"]").replace(w,""))?new Function("return "+t)():void s.error("Invalid JSON: "+t)):null},parseXML:function(n){var r;try{e.DOMParser?r=(new DOMParser).parseFromString(n,"text/xml"):((r=new ActiveXObject("Microsoft.XMLDOM")).async="false",r.loadXML(n))}catch(c){r=t}return(!r||!r.documentElement||r.getElementsByTagName("parsererror").length)&&s.error("Invalid XML: "+n),r},noop:function(){},globalEval:function(t){t&&f.test(t)&&(e.execScript||function(t){e.eval.call(e,t)})(t)},camelCase:function(e){return e.replace(S,"ms-").replace(k,E)},nodeName:function(e,t){return e.nodeName&&e.nodeName.toUpperCase()===t.toUpperCase()},each:function(e,n,r){var o,i=0,a=e.length,l=a===t||s.isFunction(e);if(r)if(l){for(o in e)if(!1===n.apply(e[o],r))break}else for(;i0&&e[0]&&e[c-1]||0===c||s.isArray(e)))for(;l1?D.call(arguments,0):t,l.notifyWith(c,a)}}function n(e){return function(t){r[e]=arguments.length>1?D.call(arguments,0):t,--s||l.resolveWith(l,r)}}var r=D.call(arguments,0),o=0,i=r.length,a=Array(i),s=i,l=i<=1&&e&&j.isFunction(e.promise)?e:j.Deferred(),c=l.promise();if(i>1){for(;o
a",e=g.getElementsByTagName("*"),t=g.getElementsByTagName("a")[0],!e||!e.length||!t)return{};r=(n=O.createElement("select")).appendChild(O.createElement("option")),o=g.getElementsByTagName("input")[0],a={leadingWhitespace:3===g.firstChild.nodeType,tbody:!g.getElementsByTagName("tbody").length,htmlSerialize:!!g.getElementsByTagName("link").length,style:/top/.test(t.getAttribute("style")),hrefNormalized:"/a"===t.getAttribute("href"),opacity:/^0.55/.test(t.style.opacity),cssFloat:!!t.style.cssFloat,unknownElems:!!g.getElementsByTagName("nav").length,checkOn:"on"===o.value,optSelected:r.selected,getSetAttribute:"t"!==g.className,enctype:!!O.createElement("form").enctype,submitBubbles:!0,changeBubbles:!0,focusinBubbles:!1,deleteExpando:!0,noCloneEvent:!0,inlineBlockNeedsLayout:!1,shrinkWrapBlocks:!1,reliableMarginRight:!0},o.checked=!0,a.noCloneChecked=o.cloneNode(!0).checked,n.disabled=!0,a.optDisabled=!r.disabled;try{delete g.test}catch(X){a.deleteExpando=!1}for(h in!g.addEventListener&&g.attachEvent&&g.fireEvent&&(g.attachEvent("onclick",(function(){a.noCloneEvent=!1})),g.cloneNode(!0).fireEvent("onclick")),(o=O.createElement("input")).value="t",o.setAttribute("type","radio"),a.radioValue="t"===o.value,o.setAttribute("checked","checked"),g.appendChild(o),(s=O.createDocumentFragment()).appendChild(g.lastChild),a.checkClone=s.cloneNode(!0).cloneNode(!0).lastChild.checked,g.innerHTML="",g.style.width=g.style.paddingLeft="1px",l=O.getElementsByTagName("body")[0],u=O.createElement(l?"div":"body"),d={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},l&&j.extend(d,{position:"absolute",left:"-999px",top:"-999px"}),d)u.style[h]=d[h];if(u.appendChild(g),(c=l||m).insertBefore(u,c.firstChild),a.appendChecked=o.checked,a.boxModel=2===g.offsetWidth,"zoom"in g.style&&(g.style.display="inline",g.style.zoom=1,a.inlineBlockNeedsLayout=2===g.offsetWidth,g.style.display="",g.innerHTML="
",a.shrinkWrapBlocks=2!==g.offsetWidth),g.innerHTML="
t
",v=0===(f=g.getElementsByTagName("td"))[0].offsetHeight,f[0].style.display="",f[1].style.display="none",a.reliableHiddenOffsets=v&&0===f[0].offsetHeight,g.innerHTML="",O.defaultView&&O.defaultView.getComputedStyle&&((i=O.createElement("div")).style.width="0",i.style.marginRight="0",g.appendChild(i),a.reliableMarginRight=0===(parseInt((O.defaultView.getComputedStyle(i,null)||{marginRight:0}).marginRight,10)||0)),g.attachEvent)for(h in{submit:1,change:1,focusin:1})(v=(p="on"+h)in g)||(g.setAttribute(p,"return;"),v="function"==typeof g[p]),a[h+"Bubbles"]=v;return j((function(){var e,t,n,r,o,i="position:absolute;top:0;left:0;width:1px;height:1px;margin:0;",s="visibility:hidden;border:0;",c="style='"+i+"border:5px solid #000;padding:0;'",d="
";!(l=O.getElementsByTagName("body")[0])||((e=O.createElement("div")).style.cssText=s+"width:0;height:0;position:static;top:0;margin-top:1px",l.insertBefore(e,l.firstChild),(u=O.createElement("div")).style.cssText=i+s,u.innerHTML=d,e.appendChild(u),n=(t=u.firstChild).firstChild,r=t.nextSibling.firstChild.firstChild,o={doesNotAddBorder:5!==n.offsetTop,doesAddBorderForTableAndCells:5===r.offsetTop},n.style.position="fixed",n.style.top="20px",o.fixedPosition=20===n.offsetTop||15===n.offsetTop,n.style.position=n.style.top="",t.style.overflow="hidden",t.style.position="relative",o.subtractsBorderForOverflowNotVisible=-5===n.offsetTop,o.doesNotIncludeMarginInBodyOffset=1!==l.offsetTop,l.removeChild(e),u=e=null,j.extend(a,o))})),u.innerHTML="",c.removeChild(u),u=s=n=r=l=i=g=o=null,a}(),j.boxModel=j.support.boxModel;var z=/^(?:\{.*\}|\[.*\])$/,F=/([A-Z])/g;j.extend({cache:{},uuid:0,expando:"jQuery"+(j.fn.jquery+Math.random()).replace(/\D/g,""),noData:{embed:!0,object:"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000",applet:!0},hasData:function(e){return!!(e=e.nodeType?j.cache[e[j.expando]]:e[j.expando])&&!E(e)},data:function(e,n,r,o){if(j.acceptData(e)){var i,a,s;j.expando;var l="string"==typeof n,c=e.nodeType,d=c?j.cache:e,f=c?e[j.expando]:e[j.expando]&&j.expando,p="events"===n;if((!f||!d[f]||!p&&!o&&!d[f].data)&&l&&r===t)return;return f||(c?e[j.expando]=f=++j.uuid:f=j.expando),d[f]||(d[f]={},c||(d[f].toJSON=j.noop)),"object"!=u(n)&&"function"!=typeof n||(o?d[f]=j.extend(d[f],n):d[f].data=j.extend(d[f].data,n)),i=a=d[f],o||(a.data||(a.data={}),a=a.data),r!==t&&(a[j.camelCase(n)]=r),p&&!a[n]?i.events:(l?null==(s=a[n])&&(s=a[j.camelCase(n)]):s=a,s)}},removeData:function(e,t,n){if(j.acceptData(e)){var r,o,i;j.expando;var a=e.nodeType,s=a?j.cache:e,l=a?e[j.expando]:j.expando;if(!s[l])return;if(t&&(r=n?s[l]:s[l].data)){j.isArray(t)||(t in r?t=[t]:t=(t=j.camelCase(t))in r?[t]:t.split(" "));for(o=0,i=t.length;o-1)return!0;return!1},val:function(e){var n,r,o,i=this[0];return arguments.length?(o=j.isFunction(e),this.each((function(r){var i,a=j(this);1===this.nodeType&&(null==(i=o?e.call(this,r,a.val()):e)?i="":"number"==typeof i?i+="":j.isArray(i)&&(i=j.map(i,(function(e){return null==e?"":e+""}))),(n=j.valHooks[this.nodeName.toLowerCase()]||j.valHooks[this.type])&&"set"in n&&n.set(this,i,"value")!==t||(this.value=i))}))):i?(n=j.valHooks[i.nodeName.toLowerCase()]||j.valHooks[i.type])&&"get"in n&&(r=n.get(i,"value"))!==t?r:"string"==typeof(r=i.value)?r.replace(H,""):null==r?"":r:t}}),j.extend({valHooks:{option:{get:function(e){var t=e.attributes.value;return!t||t.specified?e.value:e.text}},select:{get:function(e){var t,n,r,o,i=e.selectedIndex,a=[],s=e.options,l="select-one"===e.type;if(i<0)return null;for(n=l?i:0,r=l?i+1:s.length;n=0})),n.length||(e.selectedIndex=-1),n}}},attrFn:{val:!0,css:!0,html:!0,text:!0,data:!0,width:!0,height:!0,offset:!0},attr:function(e,n,r,o){var i,a,s,l=e.nodeType;return e&&3!==l&&8!==l&&2!==l?o&&n in j.attrFn?j(e)[n](r):"getAttribute"in e?((s=1!==l||!j.isXMLDoc(e))&&(n=n.toLowerCase(),a=j.attrHooks[n]||(Y.test(n)?R:L)),r!==t?null===r?(j.removeAttr(e,n),t):a&&"set"in a&&s&&(i=a.set(e,r,n))!==t?i:(e.setAttribute(n,""+r),r):a&&"get"in a&&s&&null!==(i=a.get(e,n))?i:null===(i=e.getAttribute(n))?t:i):j.prop(e,n,r):t},removeAttr:function(e,t){var n,r,o,i,a=0;if(1===e.nodeType)for(i=(r=(t||"").split(I)).length;a=0}})}));var G=/^(?:textarea|input|select)$/i,Z=/^([^\.]*)?(?:\.(.+))?$/,K=/\bhover(\.\S+)?/,J=/^key/,Q=/^(?:mouse|contextmenu)|click/,$=/^(\w*)(?:#([\w\-]+))?(?:\.([\w\-]+))?$/,ee=function(e){var t=$.exec(e);return t&&(t[1]=(t[1]||"").toLowerCase(),t[3]=t[3]&&new RegExp("(?:^|\\s)"+t[3]+"(?:\\s|$)")),t},te=function(e,t){return(!t[1]||e.nodeName.toLowerCase()===t[1])&&(!t[2]||e.id===t[2])&&(!t[3]||t[3].test(e.className))},ne=function(e){return j.event.special.hover?e:e.replace(K,"mouseenter$1 mouseleave$1")};j.event={add:function(e,n,r,o,i){var a,s,l,c,u,d,f,p,h,v,g;if(3!==e.nodeType&&8!==e.nodeType&&n&&r&&(a=j._data(e))){for(r.handler&&(r=(h=r).handler),r.guid||(r.guid=j.guid++),(l=a.events)||(a.events=l={}),(s=a.handle)||(a.handle=s=function(e){return void 0===j||e&&j.event.triggered===e.type?t:j.event.dispatch.apply(s.elem,arguments)},s.elem=e),n=ne(n).split(" "),c=0;c=0&&(m=m.slice(0,-1),s=!0),m.indexOf(".")>=0&&(y=m.split("."),m=y.shift(),y.sort()),(!o||j.event.customEvent[m])&&!j.event.global[m])return;if((n="object"==u(n)?n[j.expando]?n:new j.Event(m,n):new j.Event(m)).type=m,n.isTrigger=!0,n.exclusive=s,n.namespace=y.join("."),n.namespace_re=n.namespace?new RegExp("(^|\\.)"+y.join("\\.(?:.*\\.)?")+"(\\.|$)"):null,f=m.indexOf(":")<0?"on"+m:"",(i||!o)&&n.preventDefault(),!o){for(l in a=j.cache)a[l].events&&a[l].events[m]&&j.event.trigger(n,r,a[l].handle.elem,!0);return}if(n.result=t,n.target||(n.target=o),(r=null!=r?j.makeArray(r):[]).unshift(n),(p=j.event.special[m]||{}).trigger&&!1===p.trigger.apply(o,r))return;if(v=[[o,p.bindType||m]],!i&&!p.noBubble&&!j.isWindow(o)){for(g=p.delegateType||m,d=null,c=o.parentNode;c;c=c.parentNode)v.push([c,g]),d=c;d&&d===o.ownerDocument&&v.push([d.defaultView||d.parentWindow||e,g])}for(l=0;l=0:f===t&&(f=s[d]=u.quick?te(i,u.quick):j(i).is(d)),f&&c.push(u);c.length&&y.push({elem:i,matches:c})}for(p.length>h&&y.push({elem:this,matches:p.slice(h)}),r=0;r0?this.bind(t,e,n):this.trigger(t)},j.attrFn&&(j.attrFn[t]=!0),J.test(t)&&(j.event.fixHooks[t]=j.event.keyHooks),Q.test(t)&&(j.event.fixHooks[t]=j.event.mouseHooks)})),function(){function e(e,t,n,r,i,a){for(var s=0,l=r.length;s0){u=c;break}c=c[e]}r[s]=u}}}function n(e,t,n,r,i,a){for(var s=0,l=r.length;s+~,(\[\\]+)+|[>+~])(\s*,\s*)?((?:.|\r|\n)*)/g,o="sizcache"+(Math.random()+"").replace(".",""),i=0,a=Object.prototype.toString,s=!1,l=!0,c=/\\/g,u=/\r\n/g,d=/\W/;[0,0].sort((function(){return l=!1,0}));var f=function(e,t,n,o){n=n||[];var i=t=t||O;if(1!==t.nodeType&&9!==t.nodeType)return[];if(!e||"string"!=typeof e)return n;var s,l,c,u,d,p,g,m,y=!0,b=f.isXML(t),A=[],C=e;do{if(r.exec(""),(s=r.exec(C))&&(C=s[3],A.push(s[1]),s[2])){u=s[3];break}}while(s);if(A.length>1&&v.exec(e))if(2===A.length&&h.relative[A[0]])l=x(A[0]+A[1],t,o);else for(l=h.relative[A[0]]?[t]:f(A.shift(),t);A.length;)e=A.shift(),h.relative[e]&&(e+=A.shift()),l=x(e,l,o);else if(!o&&A.length>1&&9===t.nodeType&&!b&&h.match.ID.test(A[0])&&!h.match.ID.test(A[A.length-1])&&(t=(d=f.find(A.shift(),t,b)).expr?f.filter(d.expr,d.set)[0]:d.set[0]),t)for(l=(d=o?{expr:A.pop(),set:w(o)}:f.find(A.pop(),1!==A.length||"~"!==A[0]&&"+"!==A[0]||!t.parentNode?t:t.parentNode,b)).expr?f.filter(d.expr,d.set):d.set,A.length>0?c=w(l):y=!1;A.length;)g=p=A.pop(),h.relative[p]?g=A.pop():p="",null==g&&(g=t),h.relative[p](c,g,b);else c=A=[];if(c||(c=l),c||f.error(p||e),"[object Array]"===a.call(c))if(y)if(t&&1===t.nodeType)for(m=0;null!=c[m];m++)c[m]&&(!0===c[m]||1===c[m].nodeType&&f.contains(t,c[m]))&&n.push(l[m]);else for(m=0;null!=c[m];m++)c[m]&&1===c[m].nodeType&&n.push(l[m]);else n.push.apply(n,c);else w(c,n);return u&&(f(u,i,n,o),f.uniqueSort(n)),n};f.uniqueSort=function(e){if(y&&(s=l,e.sort(y),s))for(var t=1;t0},f.find=function(e,t,n){var r,o,i,a,s,l;if(!e)return[];for(o=0,i=h.order.length;o":function(e,t){var n,r="string"==typeof t,o=0,i=e.length;if(r&&!d.test(t)){for(t=t.toLowerCase();o=0)?n||r.push(a):n&&(t[s]=!1));return!1},ID:function(e){return e[1].replace(c,"")},TAG:function(e,t){return e[1].replace(c,"").toLowerCase()},CHILD:function(e){if("nth"===e[1]){e[2]||f.error(e[0]),e[2]=e[2].replace(/^\+|\s*/g,"");var t=/(-?)(\d*)(?:n([+\-]?\d*))?/.exec(("even"===e[2]?"2n":"odd"===e[2]&&"2n+1")||!/\D/.test(e[2])&&"0n+"+e[2]||e[2]);e[2]=t[1]+(t[2]||1)-0,e[3]=t[3]-0}else e[2]&&f.error(e[0]);return e[0]=i++,e},ATTR:function(e,t,n,r,o,i){var a=e[1]=e[1].replace(c,"");return!i&&h.attrMap[a]&&(e[1]=h.attrMap[a]),e[4]=(e[4]||e[5]||"").replace(c,""),"~="===e[2]&&(e[4]=" "+e[4]+" "),e},PSEUDO:function(e,t,n,o,i){if("not"===e[1]){if(!((r.exec(e[3])||"").length>1||/^\w/.test(e[3]))){var a=f.filter(e[3],t,n,!0^i);return n||o.push.apply(o,a),!1}e[3]=f(e[3],null,null,t)}else if(h.match.POS.test(e[0])||h.match.CHILD.test(e[0]))return!0;return e},POS:function(e){return e.unshift(!0),e}},filters:{enabled:function(e){return!1===e.disabled&&"hidden"!==e.type},disabled:function(e){return!0===e.disabled},checked:function(e){return!0===e.checked},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},parent:function(e){return!!e.firstChild},empty:function(e){return!e.firstChild},has:function(e,t,n){return!!f(n[3],e).length},header:function(e){return/h\d/i.test(e.nodeName)},text:function(e){var t=e.getAttribute("type"),n=e.type;return"input"===e.nodeName.toLowerCase()&&"text"===n&&(t===n||null===t)},radio:function(e){return"input"===e.nodeName.toLowerCase()&&"radio"===e.type},checkbox:function(e){return"input"===e.nodeName.toLowerCase()&&"checkbox"===e.type},file:function(e){return"input"===e.nodeName.toLowerCase()&&"file"===e.type},password:function(e){return"input"===e.nodeName.toLowerCase()&&"password"===e.type},submit:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"submit"===e.type},image:function(e){return"input"===e.nodeName.toLowerCase()&&"image"===e.type},reset:function(e){var t=e.nodeName.toLowerCase();return("input"===t||"button"===t)&&"reset"===e.type},button:function(e){var t=e.nodeName.toLowerCase();return"input"===t&&"button"===e.type||"button"===t},input:function(e){return/input|select|textarea|button/i.test(e.nodeName)},focus:function(e){return e===e.ownerDocument.activeElement}},setFilters:{first:function(e,t){return 0===t},last:function(e,t,n,r){return t===r.length-1},even:function(e,t){return t%2==0},odd:function(e,t){return t%2==1},lt:function(e,t,n){return tn[3]-0},nth:function(e,t,n){return n[3]-0===t},eq:function(e,t,n){return n[3]-0===t}},filter:{PSEUDO:function(e,t,n,r){var o=t[1],i=h.filters[o];if(i)return i(e,n,t,r);if("contains"===o)return(e.textContent||e.innerText||p([e])||"").indexOf(t[3])>=0;if("not"===o){for(var a=t[3],s=0,l=a.length;s=0}},ID:function(e,t){return 1===e.nodeType&&e.getAttribute("id")===t},TAG:function(e,t){return"*"===t&&1===e.nodeType||!!e.nodeName&&e.nodeName.toLowerCase()===t},CLASS:function(e,t){return(" "+(e.className||e.getAttribute("class"))+" ").indexOf(t)>-1},ATTR:function(e,t){var n=t[1],r=f.attr?f.attr(e,n):h.attrHandle[n]?h.attrHandle[n](e):null!=e[n]?e[n]:e.getAttribute(n),o=r+"",i=t[2],a=t[4];return null==r?"!="===i:!i&&f.attr?null!=r:"="===i?o===a:"*="===i?o.indexOf(a)>=0:"~="===i?(" "+o+" ").indexOf(a)>=0:a?"!="===i?o!==a:"^="===i?0===o.indexOf(a):"$="===i?o.substr(o.length-a.length)===a:"|="===i&&(o===a||o.substr(0,a.length+1)===a+"-"):o&&!1!==r},POS:function(e,t,n,r){var o=t[2],i=h.setFilters[o];if(i)return i(e,n,t,r)}}},v=h.match.POS,g=function(e,t){return"\\"+(t-0+1)};for(var m in h.match)h.match[m]=new RegExp(h.match[m].source+/(?![^\[]*\])(?![^\(]*\))/.source),h.leftMatch[m]=new RegExp(/(^(?:.|\r|\n)*?)/.source+h.match[m].source.replace(/\\(\d+)/g,g));var y,b,w=function(e,t){return e=Array.prototype.slice.call(e,0),t?(t.push.apply(t,e),t):e};try{Array.prototype.slice.call(O.documentElement.childNodes,0)[0].nodeType}catch(V){w=function(e,t){var n=0,r=t||[];if("[object Array]"===a.call(e))Array.prototype.push.apply(r,e);else if("number"==typeof e.length)for(var o=e.length;n",r.insertBefore(e,r.firstChild),O.getElementById(n)&&(h.find.ID=function(e,n,r){if(void 0!==n.getElementById&&!r){var o=n.getElementById(e[1]);return o?o.id===e[1]||void 0!==o.getAttributeNode&&o.getAttributeNode("id").nodeValue===e[1]?[o]:t:[]}},h.filter.ID=function(e,t){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return 1===e.nodeType&&n&&n.nodeValue===t}),r.removeChild(e),r=e=null}(),function(){var e=O.createElement("div");e.appendChild(O.createComment("")),e.getElementsByTagName("*").length>0&&(h.find.TAG=function(e,t){var n=t.getElementsByTagName(e[1]);if("*"===e[1]){for(var r=[],o=0;n[o];o++)1===n[o].nodeType&&r.push(n[o]);n=r}return n}),e.innerHTML="",e.firstChild&&void 0!==e.firstChild.getAttribute&&"#"!==e.firstChild.getAttribute("href")&&(h.attrHandle.href=function(e){return e.getAttribute("href",2)}),e=null}(),O.querySelectorAll&&function(){var e=f,t=O.createElement("div");if(t.innerHTML="

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