123456789101112 |
- !function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))t(e);new MutationObserver((e=>{for(const n of e)if("childList"===n.type)for(const e of n.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&t(e)})).observe(document,{childList:!0,subtree:!0})}function t(e){if(e.ep)return;e.ep=!0;const t=function(e){const t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?t.credentials="include":"anonymous"===e.crossOrigin?t.credentials="omit":t.credentials="same-origin",t}(e);fetch(e.href,t)}}();const e={},t=function(t,n,o){if(!n||0===n.length)return t();const r=document.getElementsByTagName("link");return Promise.all(n.map((t=>{if(t=function(e,t){return new URL(e,t).href}(t,o),t in e)return;e[t]=!0;const n=t.endsWith(".css"),i=n?'[rel="stylesheet"]':"";if(!!o)for(let e=r.length-1;e>=0;e--){const o=r[e];if(o.href===t&&(!n||"stylesheet"===o.rel))return}else if(document.querySelector(`link[href="${t}"]${i}`))return;const a=document.createElement("link");return a.rel=n?"stylesheet":"modulepreload",n||(a.as="script",a.crossOrigin=""),a.href=t,document.head.appendChild(a),n?new Promise(((e,n)=>{a.addEventListener("load",e),a.addEventListener("error",(()=>n(new Error(`Unable to preload CSS for ${t}`))))})):void 0}))).then((()=>t()))};function n(e,t){const n=Object.create(null),o=e.split(",");for(let r=0;r<o.length;r++)n[o[r]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}function o(e){if(S(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=P(r)?s(r):o(r);if(i)for(const e in i)t[e]=i[e]}return t}return P(e)||L(e)?e:void 0}const r=/;(?![^(]*\))/g,i=/:([^]+)/,a=/\/\*.*?\*\//gs;function s(e){const t={};return e.replace(a,"").split(r).forEach((e=>{if(e){const n=e.split(i);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function l(e){let t="";if(P(e))t=e;else if(S(e))for(let n=0;n<e.length;n++){const o=l(e[n]);o&&(t+=o+" ")}else if(L(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}const u=n("itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly");function c(e){return!!e||""===e}function f(e,t){if(e===t)return!0;let n=A(e),o=A(t);if(n||o)return!(!n||!o)&&e.getTime()===t.getTime();if(n=j(e),o=j(t),n||o)return e===t;if(n=S(e),o=S(t),n||o)return!(!n||!o)&&function(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=f(e[o],t[o]);return n}(e,t);if(n=L(e),o=L(t),n||o){if(!n||!o)return!1;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e){const o=e.hasOwnProperty(n),r=t.hasOwnProperty(n);if(o&&!r||!o&&r||!f(e[n],t[n]))return!1}}return String(e)===String(t)}function d(e,t){return e.findIndex((e=>f(e,t)))}const p=e=>P(e)?e:null==e?"":S(e)||L(e)&&(e.toString===q||!N(e.toString))?JSON.stringify(e,h,2):String(e),h=(e,t)=>t&&t.__v_isRef?h(e,t.value):E(t)?{[`Map(${t.size})`]:[...t.entries()].reduce(((e,[t,n])=>(e[`${t} =>`]=n,e)),{})}:C(t)?{[`Set(${t.size})`]:[...t.values()]}:!L(t)||S(t)||B(t)?t:String(t),g={},m=[],v=()=>{},y=()=>!1,b=/^on[^a-z]/,_=e=>b.test(e),w=e=>e.startsWith("onUpdate:"),x=Object.assign,k=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},O=Object.prototype.hasOwnProperty,T=(e,t)=>O.call(e,t),S=Array.isArray,E=e=>"[object Map]"===M(e),C=e=>"[object Set]"===M(e),A=e=>"[object Date]"===M(e),N=e=>"function"==typeof e,P=e=>"string"==typeof e,j=e=>"symbol"==typeof e,L=e=>null!==e&&"object"==typeof e,I=e=>L(e)&&N(e.then)&&N(e.catch),q=Object.prototype.toString,M=e=>q.call(e),B=e=>"[object Object]"===M(e),R=e=>P(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,D=n(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),$=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},F=/-(\w)/g,U=$((e=>e.replace(F,((e,t)=>t?t.toUpperCase():"")))),H=/\B([A-Z])/g,z=$((e=>e.replace(H,"-$1").toLowerCase())),V=$((e=>e.charAt(0).toUpperCase()+e.slice(1))),W=$((e=>e?`on${V(e)}`:"")),Y=(e,t)=>!Object.is(e,t),K=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},X=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},G=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let Z;const J=["ad","ad-content-page","ad-draw","audio","button","camera","canvas","checkbox","checkbox-group","cover-image","cover-view","editor","form","functional-page-navigator","icon","image","input","label","live-player","live-pusher","map","movable-area","movable-view","navigator","official-account","open-data","picker","picker-view","picker-view-column","progress","radio","radio-group","rich-text","scroll-view","slider","swiper","swiper-item","switch","text","textarea","video","view","web-view"].map((e=>"uni-"+e));const Q=["%","%"],ee=/^([a-z-]+:)?\/\//i,te=/^data:.*,.*/;function ne(e){return e&&(e.appContext?e.proxy:e)}function oe(e){if(!e)return;let t=e.type.name;for(;t&&(n=z(t),-1!==J.indexOf("uni-"+n.replace("v-uni-","")));)t=(e=e.parent).type.name;var n;return e.proxy}function re(e){return 1===e.nodeType}function ie(e){return 0===e.indexOf("/")}function ae(e){return ie(e)?e:"/"+e}function se(e){return ie(e)?e.slice(1):e}function le(e,t){for(const n in t)e.style[n]=t[n]}function ue(e,t=null){let n;return(...o)=>(e&&(n=e.apply(t,o),e=null),n)}function ce(e,t){e=e||{},P(t)&&(t={errMsg:t}),/:ok$/.test(t.errMsg)?N(e.success)&&e.success(t):N(e.fail)&&e.fail(t),N(e.complete)&&e.complete(t)}function fe(e){return U(e.substring(5))}const de=ue((()=>{const e=HTMLElement.prototype,t=e.setAttribute;e.setAttribute=function(e,n){if(e.startsWith("data-")&&this.tagName.startsWith("UNI-")){(this.__uniDataset||(this.__uniDataset={}))[fe(e)]=n}t.call(this,e,n)};const n=e.removeAttribute;e.removeAttribute=function(e){this.__uniDataset&&e.startsWith("data-")&&this.tagName.startsWith("UNI-")&&delete this.__uniDataset[fe(e)],n.call(this,e)}}));function pe(e){return x({},e.dataset,e.__uniDataset)}const he=new RegExp("\"[^\"]+\"|'[^']+'|url\\([^)]+\\)|(\\d*\\.?\\d+)[r|u]px","g");function ge(e){return{passive:e}}function me(e){const{id:t,offsetTop:n,offsetLeft:o}=e;return{id:t,dataset:pe(e),offsetTop:n,offsetLeft:o}}function ve(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function ye(e={}){const t={};return Object.keys(e).forEach((n=>{try{t[n]=ve(e[n])}catch(o){t[n]=e[n]}})),t}const be=/\+/g;function _e(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const e=n[o].replace(be," ");let r=e.indexOf("="),i=ve(r<0?e:e.slice(0,r)),a=r<0?null:ve(e.slice(r+1));if(i in t){let e=t[i];S(e)||(e=t[i]=[e]),e.push(a)}else t[i]=a}return t}function we(e,t,{clearTimeout:n,setTimeout:o}){let r;const i=function(){n(r);const i=()=>e.apply(this,arguments);r=o(i,t)};return i.cancel=function(){n(r)},i}class xe{constructor(e,t){this.id=e,this.listener={},this.emitCache=[],t&&Object.keys(t).forEach((e=>{this.on(e,t[e])}))}emit(e,...t){const n=this.listener[e];if(!n)return this.emitCache.push({eventName:e,args:t});n.forEach((e=>{e.fn.apply(e.fn,t)})),this.listener[e]=n.filter((e=>"once"!==e.type))}on(e,t){this._addListener(e,"on",t),this._clearCache(e)}once(e,t){this._addListener(e,"once",t),this._clearCache(e)}off(e,t){const n=this.listener[e];if(n)if(t)for(let o=0;o<n.length;)n[o].fn===t&&(n.splice(o,1),o--),o++;else delete this.listener[e]}_clearCache(e){for(let t=0;t<this.emitCache.length;t++){const n=this.emitCache[t],o=e?n.eventName===e?e:null:n.eventName;if(!o)continue;"number"!=typeof this.emit.apply(this,[o,...n.args])?(this.emitCache.splice(t,1),t--):this.emitCache.pop()}}_addListener(e,t,n){(this.listener[e]||(this.listener[e]=[])).push({fn:n,type:t})}}const ke=["onInit","onLoad","onShow","onHide","onUnload","onBackPress","onPageScroll","onTabItemTap","onReachBottom","onPullDownRefresh","onShareTimeline","onShareAppMessage","onAddToFavorites","onSaveExitState","onNavigationBarButtonTap","onNavigationBarSearchInputClicked","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged"],Oe=["onLoad","onShow"];const Te=["onShow","onHide","onLaunch","onError","onThemeChange","onPageNotFound","onUnhandledRejection","onExit","onInit","onLoad","onReady","onUnload","onResize","onBackPress","onPageScroll","onTabItemTap","onReachBottom","onPullDownRefresh","onShareTimeline","onAddToFavorites","onShareAppMessage","onSaveExitState","onNavigationBarButtonTap","onNavigationBarSearchInputClicked","onNavigationBarSearchInputChanged","onNavigationBarSearchInputConfirmed","onNavigationBarSearchInputFocusChanged"];const Se=[];const Ee=ue(((e,t)=>{if(N(e._component.onError))return t(e)})),Ce=function(){};Ce.prototype={on:function(e,t,n){var o=this.e||(this.e={});return(o[e]||(o[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var o=this;function r(){o.off(e,r),t.apply(n,arguments)}return r._=t,this.on(e,r,n)},emit:function(e){for(var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),o=0,r=n.length;o<r;o++)n[o].fn.apply(n[o].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),o=n[e],r=[];if(o&&t)for(var i=0,a=o.length;i<a;i++)o[i].fn!==t&&o[i].fn._!==t&&r.push(o[i]);return r.length?n[e]=r:delete n[e],this}};var Ae=Ce;const Ne={black:"rgba(0,0,0,0.4)",white:"rgba(255,255,255,0.4)"};function Pe(e,t={},n="light"){const o=t[n],r={};return o?(Object.keys(e).forEach((i=>{let a=e[i];r[i]=(()=>{if(B(a))return Pe(a,t,n);if(S(a))return a.map((e=>B(e)?Pe(e,t,n):e));if(P(a)&&a.startsWith("@")){const t=a.replace("@","");let n=o[t]||a;switch(i){case"titleColor":n="black"===n?"#000000":"#ffffff";break;case"borderStyle":n=(e=n)&&e in Ne?Ne[e]:e}return n}var e;return a})()})),r):e}let je;class Le{constructor(e=!1){this.detached=e,this._active=!0,this.effects=[],this.cleanups=[],this.parent=je,!e&&je&&(this.index=(je.scopes||(je.scopes=[])).push(this)-1)}get active(){return this._active}run(e){if(this._active){const t=je;try{return je=this,e()}finally{je=t}}}on(){je=this}off(){je=this.parent}stop(e){if(this._active){let t,n;for(t=0,n=this.effects.length;t<n;t++)this.effects[t].stop();for(t=0,n=this.cleanups.length;t<n;t++)this.cleanups[t]();if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].stop(!0);if(!this.detached&&this.parent&&!e){const e=this.parent.scopes.pop();e&&e!==this&&(this.parent.scopes[this.index]=e,e.index=this.index)}this.parent=void 0,this._active=!1}}}function Ie(e){return new Le(e)}function qe(){return je}const Me=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Be=e=>(e.w&Fe)>0,Re=e=>(e.n&Fe)>0,De=new WeakMap;let $e=0,Fe=1;let Ue;const He=Symbol(""),ze=Symbol("");class Ve{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=je){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Ue,t=Ye;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Ue,Ue=this,Ye=!0,Fe=1<<++$e,$e<=30?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Fe})(this):We(this),this.fn()}finally{$e<=30&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const r=t[o];Be(r)&&!Re(r)?r.delete(e):t[n++]=r,r.w&=~Fe,r.n&=~Fe}t.length=n}})(this),Fe=1<<--$e,Ue=this.parent,Ye=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Ue===this?this.deferStop=!0:this.active&&(We(this),this.onStop&&this.onStop(),this.active=!1)}}function We(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ye=!0;const Ke=[];function Xe(){Ke.push(Ye),Ye=!1}function Ge(){const e=Ke.pop();Ye=void 0===e||e}function Ze(e,t,n){if(Ye&&Ue){let t=De.get(e);t||De.set(e,t=new Map);let o=t.get(n);o||t.set(n,o=Me()),Je(o)}}function Je(e,t){let n=!1;$e<=30?Re(e)||(e.n|=Fe,n=!Be(e)):n=!e.has(Ue),n&&(e.add(Ue),Ue.deps.push(e))}function Qe(e,t,n,o,r,i){const a=De.get(e);if(!a)return;let s=[];if("clear"===t)s=[...a.values()];else if("length"===n&&S(e)){const e=Number(o);a.forEach(((t,n)=>{("length"===n||n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(a.get(n)),t){case"add":S(e)?R(n)&&s.push(a.get("length")):(s.push(a.get(He)),E(e)&&s.push(a.get(ze)));break;case"delete":S(e)||(s.push(a.get(He)),E(e)&&s.push(a.get(ze)));break;case"set":E(e)&&s.push(a.get(He))}if(1===s.length)s[0]&&et(s[0]);else{const e=[];for(const t of s)t&&e.push(...t);et(Me(e))}}function et(e,t){const n=S(e)?e:[...e];for(const o of n)o.computed&&tt(o);for(const o of n)o.computed||tt(o)}function tt(e,t){(e!==Ue||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const nt=n("__proto__,__v_isRef,__isVue"),ot=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(j)),rt=ct(),it=ct(!1,!0),at=ct(!0),st=lt();function lt(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Kt(this);for(let t=0,r=this.length;t<r;t++)Ze(n,0,t+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Kt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Xe();const n=Kt(this)[t].apply(this,e);return Ge(),n}})),e}function ut(e){const t=Kt(this);return Ze(t,0,e),t.hasOwnProperty(e)}function ct(e=!1,t=!1){return function(n,o,r){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&r===(e?t?Dt:Rt:t?Bt:Mt).get(n))return n;const i=S(n);if(!e){if(i&&T(st,o))return Reflect.get(st,o,r);if("hasOwnProperty"===o)return ut}const a=Reflect.get(n,o,r);return(j(o)?ot.has(o):nt(o))?a:(e||Ze(n,0,o),t?a:en(a)?i&&R(o)?a:a.value:L(a)?e?Ut(a):Ft(a):a)}}function ft(e=!1){return function(t,n,o,r){let i=t[n];if(Vt(i)&&en(i)&&!en(o))return!1;if(!e&&(Wt(o)||Vt(o)||(i=Kt(i),o=Kt(o)),!S(t)&&en(i)&&!en(o)))return i.value=o,!0;const a=S(t)&&R(n)?Number(n)<t.length:T(t,n),s=Reflect.set(t,n,o,r);return t===Kt(r)&&(a?Y(o,i)&&Qe(t,"set",n,o):Qe(t,"add",n,o)),s}}const dt={get:rt,set:ft(),deleteProperty:function(e,t){const n=T(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&Qe(e,"delete",t,void 0),o},has:function(e,t){const n=Reflect.has(e,t);return j(t)&&ot.has(t)||Ze(e,0,t),n},ownKeys:function(e){return Ze(e,0,S(e)?"length":He),Reflect.ownKeys(e)}},pt={get:at,set:(e,t)=>!0,deleteProperty:(e,t)=>!0},ht=x({},dt,{get:it,set:ft(!0)}),gt=e=>e,mt=e=>Reflect.getPrototypeOf(e);function vt(e,t,n=!1,o=!1){const r=Kt(e=e.__v_raw),i=Kt(t);n||(t!==i&&Ze(r,0,t),Ze(r,0,i));const{has:a}=mt(r),s=o?gt:n?Zt:Gt;return a.call(r,t)?s(e.get(t)):a.call(r,i)?s(e.get(i)):void(e!==r&&e.get(t))}function yt(e,t=!1){const n=this.__v_raw,o=Kt(n),r=Kt(e);return t||(e!==r&&Ze(o,0,e),Ze(o,0,r)),e===r?n.has(e):n.has(e)||n.has(r)}function bt(e,t=!1){return e=e.__v_raw,!t&&Ze(Kt(e),0,He),Reflect.get(e,"size",e)}function _t(e){e=Kt(e);const t=Kt(this);return mt(t).has.call(t,e)||(t.add(e),Qe(t,"add",e,e)),this}function wt(e,t){t=Kt(t);const n=Kt(this),{has:o,get:r}=mt(n);let i=o.call(n,e);i||(e=Kt(e),i=o.call(n,e));const a=r.call(n,e);return n.set(e,t),i?Y(t,a)&&Qe(n,"set",e,t):Qe(n,"add",e,t),this}function xt(e){const t=Kt(this),{has:n,get:o}=mt(t);let r=n.call(t,e);r||(e=Kt(e),r=n.call(t,e)),o&&o.call(t,e);const i=t.delete(e);return r&&Qe(t,"delete",e,void 0),i}function kt(){const e=Kt(this),t=0!==e.size,n=e.clear();return t&&Qe(e,"clear",void 0,void 0),n}function Ot(e,t){return function(n,o){const r=this,i=r.__v_raw,a=Kt(i),s=t?gt:e?Zt:Gt;return!e&&Ze(a,0,He),i.forEach(((e,t)=>n.call(o,s(e),s(t),r)))}}function Tt(e,t,n){return function(...o){const r=this.__v_raw,i=Kt(r),a=E(i),s="entries"===e||e===Symbol.iterator&&a,l="keys"===e&&a,u=r[e](...o),c=n?gt:t?Zt:Gt;return!t&&Ze(i,0,l?ze:He),{next(){const{value:e,done:t}=u.next();return t?{value:e,done:t}:{value:s?[c(e[0]),c(e[1])]:c(e),done:t}},[Symbol.iterator](){return this}}}}function St(e){return function(...t){return"delete"!==e&&this}}function Et(){const e={get(e){return vt(this,e)},get size(){return bt(this)},has:yt,add:_t,set:wt,delete:xt,clear:kt,forEach:Ot(!1,!1)},t={get(e){return vt(this,e,!1,!0)},get size(){return bt(this)},has:yt,add:_t,set:wt,delete:xt,clear:kt,forEach:Ot(!1,!0)},n={get(e){return vt(this,e,!0)},get size(){return bt(this,!0)},has(e){return yt.call(this,e,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:Ot(!0,!1)},o={get(e){return vt(this,e,!0,!0)},get size(){return bt(this,!0)},has(e){return yt.call(this,e,!0)},add:St("add"),set:St("set"),delete:St("delete"),clear:St("clear"),forEach:Ot(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((r=>{e[r]=Tt(r,!1,!1),n[r]=Tt(r,!0,!1),t[r]=Tt(r,!1,!0),o[r]=Tt(r,!0,!0)})),[e,n,t,o]}const[Ct,At,Nt,Pt]=Et();function jt(e,t){const n=t?e?Pt:Nt:e?At:Ct;return(t,o,r)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(T(n,o)&&o in t?n:t,o,r)}const Lt={get:jt(!1,!1)},It={get:jt(!1,!0)},qt={get:jt(!0,!1)},Mt=new WeakMap,Bt=new WeakMap,Rt=new WeakMap,Dt=new WeakMap;function $t(e){return e.__v_skip||!Object.isExtensible(e)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}((e=>M(e).slice(8,-1))(e))}function Ft(e){return Vt(e)?e:Ht(e,!1,dt,Lt,Mt)}function Ut(e){return Ht(e,!0,pt,qt,Rt)}function Ht(e,t,n,o,r){if(!L(e))return e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const i=r.get(e);if(i)return i;const a=$t(e);if(0===a)return e;const s=new Proxy(e,2===a?o:n);return r.set(e,s),s}function zt(e){return Vt(e)?zt(e.__v_raw):!(!e||!e.__v_isReactive)}function Vt(e){return!(!e||!e.__v_isReadonly)}function Wt(e){return!(!e||!e.__v_isShallow)}function Yt(e){return zt(e)||Vt(e)}function Kt(e){const t=e&&e.__v_raw;return t?Kt(t):e}function Xt(e){return X(e,"__v_skip",!0),e}const Gt=e=>L(e)?Ft(e):e,Zt=e=>L(e)?Ut(e):e;function Jt(e){Ye&&Ue&&Je((e=Kt(e)).dep||(e.dep=Me()))}function Qt(e,t){const n=(e=Kt(e)).dep;n&&et(n)}function en(e){return!(!e||!0!==e.__v_isRef)}function tn(e){return on(e,!1)}function nn(e){return on(e,!0)}function on(e,t){return en(e)?e:new rn(e,t)}class rn{constructor(e,t){this.__v_isShallow=t,this.dep=void 0,this.__v_isRef=!0,this._rawValue=t?e:Kt(e),this._value=t?e:Gt(e)}get value(){return Jt(this),this._value}set value(e){const t=this.__v_isShallow||Wt(e)||Vt(e);e=t?e:Kt(e),Y(e,this._rawValue)&&(this._rawValue=e,this._value=t?e:Gt(e),Qt(this))}}function an(e){return en(e)?e.value:e}const sn={get:(e,t,n)=>an(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const r=e[t];return en(r)&&!en(n)?(r.value=n,!0):Reflect.set(e,t,n,o)}};function ln(e){return zt(e)?e:new Proxy(e,sn)}class un{constructor(e,t,n){this._object=e,this._key=t,this._defaultValue=n,this.__v_isRef=!0}get value(){const e=this._object[this._key];return void 0===e?this._defaultValue:e}set value(e){this._object[this._key]=e}get dep(){return e=Kt(this._object),t=this._key,null===(n=De.get(e))||void 0===n?void 0:n.get(t);var e,t,n}}function cn(e,t,n){const o=e[t];return en(o)?o:new un(e,t,n)}var fn;class dn{constructor(e,t,n,o){this._setter=t,this.dep=void 0,this.__v_isRef=!0,this[fn]=!1,this._dirty=!0,this.effect=new Ve(e,(()=>{this._dirty||(this._dirty=!0,Qt(this))})),this.effect.computed=this,this.effect.active=this._cacheable=!o,this.__v_isReadonly=n}get value(){const e=Kt(this);return Jt(e),!e._dirty&&e._cacheable||(e._dirty=!1,e._value=e.effect.run()),e._value}set value(e){this._setter(e)}}function pn(e,t,n,o){let r;try{r=o?e(...o):e()}catch(i){gn(i,t,n)}return r}function hn(e,t,n,o){if(N(e)){const r=pn(e,t,n,o);return r&&I(r)&&r.catch((e=>{gn(e,t,n)})),r}const r=[];for(let i=0;i<e.length;i++)r.push(hn(e[i],t,n,o));return r}function gn(e,t,n,o=!0){t&&t.vnode;if(t){let o=t.parent;const r=t.proxy,i=n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,r,i))return;o=o.parent}const a=t.appContext.config.errorHandler;if(a)return void pn(a,null,10,[e,r,i])}!function(e,t,n,o=!0){console.error(e)}(e,0,0,o)}fn="__v_isReadonly";let mn=!1,vn=!1;const yn=[];let bn=0;const _n=[];let wn=null,xn=0;const kn=Promise.resolve();let On=null;function Tn(e){const t=On||kn;return e?t.then(this?e.bind(this):e):t}function Sn(e){yn.length&&yn.includes(e,mn&&e.allowRecurse?bn+1:bn)||(null==e.id?yn.push(e):yn.splice(function(e){let t=bn+1,n=yn.length;for(;t<n;){const o=t+n>>>1;Nn(yn[o])<e?t=o+1:n=o}return t}(e.id),0,e),En())}function En(){mn||vn||(vn=!0,On=kn.then(jn))}function Cn(e,t=(mn?bn+1:0)){for(;t<yn.length;t++){const e=yn[t];e&&e.pre&&(yn.splice(t,1),t--,e())}}function An(e){if(_n.length){const e=[...new Set(_n)];if(_n.length=0,wn)return void wn.push(...e);for(wn=e,wn.sort(((e,t)=>Nn(e)-Nn(t))),xn=0;xn<wn.length;xn++)wn[xn]();wn=null,xn=0}}const Nn=e=>null==e.id?1/0:e.id,Pn=(e,t)=>{const n=Nn(e)-Nn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function jn(e){vn=!1,mn=!0,yn.sort(Pn);try{for(bn=0;bn<yn.length;bn++){const e=yn[bn];e&&!1!==e.active&&pn(e,null,14)}}finally{bn=0,yn.length=0,An(),mn=!1,On=null,(yn.length||_n.length)&&jn()}}function Ln(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||g;let r=n;const i=t.startsWith("update:"),a=i&&t.slice(7);if(a&&a in o){const e=`${"modelValue"===a?"model":a}Modifiers`,{number:t,trim:i}=o[e]||g;i&&(r=n.map((e=>P(e)?e.trim():e))),t&&(r=n.map(G))}let s,l=o[s=W(t)]||o[s=W(U(t))];!l&&i&&(l=o[s=W(z(t))]),l&&hn(l,e,6,In(e,l,r));const u=o[s+"Once"];if(u){if(e.emitted){if(e.emitted[s])return}else e.emitted={};e.emitted[s]=!0,hn(u,e,6,In(e,u,r))}}function In(e,t,n){if(1!==n.length)return n;if(N(t)){if(t.length<2)return n}else if(!t.find((e=>e.length>=2)))return n;const o=n[0];if(o&&T(o,"type")&&T(o,"timeStamp")&&T(o,"target")&&T(o,"currentTarget")&&T(o,"detail")){const t=e.proxy,o=t.$gcd(t,!0);o&&n.push(o)}return n}function qn(e,t,n=!1){const o=t.emitsCache,r=o.get(e);if(void 0!==r)return r;const i=e.emits;let a={},s=!1;if(!N(e)){const o=e=>{const n=qn(e,t,!0);n&&(s=!0,x(a,n))};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}return i||s?(S(i)?i.forEach((e=>a[e]=null)):x(a,i),L(e)&&o.set(e,a),a):(L(e)&&o.set(e,null),null)}function Mn(e,t){return!(!e||!_(t))&&(t=t.slice(2).replace(/Once$/,""),T(e,t[0].toLowerCase()+t.slice(1))||T(e,z(t))||T(e,t))}let Bn=null,Rn=null;function Dn(e){const t=Bn;return Bn=e,Rn=e&&e.type.__scopeId||null,t}function $n(e,t=Bn,n){if(!t)return e;if(e._n)return e;const o=(...n)=>{o._d&&Fr(-1);const r=Dn(t);let i;try{i=e(...n)}finally{Dn(r),o._d&&Fr(1)}return i};return o._n=!0,o._c=!0,o._d=!0,o}function Fn(e){const{type:t,vnode:n,proxy:o,withProxy:r,props:i,propsOptions:[a],slots:s,attrs:l,emit:u,render:c,renderCache:f,data:d,setupState:p,ctx:h,inheritAttrs:g}=e;let m,v;const y=Dn(e);try{if(4&n.shapeFlag){const e=r||o;m=ti(c.call(e,e,f,i,p,d,h)),v=l}else{const e=t;0,m=ti(e.length>1?e(i,{attrs:l,slots:s,emit:u}):e(i,null)),v=t.props?l:Un(l)}}catch(_){Br.length=0,gn(_,e,1),m=Zr(qr)}let b=m;if(v&&!1!==g){const e=Object.keys(v),{shapeFlag:t}=b;e.length&&7&t&&(a&&e.some(w)&&(v=Hn(v,a)),b=Jr(b,v))}return n.dirs&&(b=Jr(b),b.dirs=b.dirs?b.dirs.concat(n.dirs):n.dirs),n.transition&&(b.transition=n.transition),m=b,Dn(y),m}const Un=e=>{let t;for(const n in e)("class"===n||"style"===n||_(n))&&((t||(t={}))[n]=e[n]);return t},Hn=(e,t)=>{const n={};for(const o in e)w(o)&&o.slice(9)in t||(n[o]=e[o]);return n};function zn(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let r=0;r<o.length;r++){const i=o[r];if(t[i]!==e[i]&&!Mn(n,i))return!0}return!1}const Vn=e=>e.__isSuspense;function Wn(e,t){if(li){let n=li.provides;const o=li.parent&&li.parent.provides;o===n&&(n=li.provides=Object.create(o)),n[e]=t,"app"===li.type.mpType&&li.appContext.app.provide(e,t)}else;}function Yn(e,t,n=!1){const o=li||Bn;if(o){const r=null==o.parent?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(r&&e in r)return r[e];if(arguments.length>1)return n&&N(t)?t.call(o.proxy):t}}function Kn(e,t){return Zn(e,null,t)}const Xn={};function Gn(e,t,n){return Zn(e,t,n)}function Zn(e,t,{immediate:n,deep:o,flush:r,onTrack:i,onTrigger:a}=g){const s=qe()===(null==li?void 0:li.scope)?li:null;let l,u,c=!1,f=!1;if(en(e)?(l=()=>e.value,c=Wt(e)):zt(e)?(l=()=>e,o=!0):S(e)?(f=!0,c=e.some((e=>zt(e)||Wt(e))),l=()=>e.map((e=>en(e)?e.value:zt(e)?eo(e):N(e)?pn(e,s,2):void 0))):l=N(e)?t?()=>pn(e,s,2):()=>{if(!s||!s.isUnmounted)return u&&u(),hn(e,s,3,[p])}:v,t&&o){const e=l;l=()=>eo(e())}let d,p=e=>{u=b.onStop=()=>{pn(e,s,4)}};if(pi){if(p=v,t?n&&hn(t,s,3,[l(),f?[]:void 0,p]):l(),"sync"!==r)return v;{const e=wi();d=e.__watcherHandles||(e.__watcherHandles=[])}}let h=f?new Array(e.length).fill(Xn):Xn;const m=()=>{if(b.active)if(t){const e=b.run();(o||c||(f?e.some(((e,t)=>Y(e,h[t]))):Y(e,h)))&&(u&&u(),hn(t,s,3,[e,h===Xn?void 0:f&&h[0]===Xn?[]:h,p]),h=e)}else b.run()};let y;m.allowRecurse=!!t,"sync"===r?y=m:"post"===r?y=()=>Ar(m,s&&s.suspense):(m.pre=!0,s&&(m.id=s.uid),y=()=>Sn(m));const b=new Ve(l,y);t?n?m():h=b.run():"post"===r?Ar(b.run.bind(b),s&&s.suspense):b.run();const _=()=>{b.stop(),s&&s.scope&&k(s.scope.effects,b)};return d&&d.push(_),_}function Jn(e,t,n){const o=this.proxy,r=P(e)?e.includes(".")?Qn(o,e):()=>o[e]:e.bind(o,o);let i;N(t)?i=t:(i=t.handler,n=t);const a=li;ci(this);const s=Zn(r,i.bind(o),n);return a?ci(a):fi(),s}function Qn(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}function eo(e,t){if(!L(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),en(e))eo(e.value,t);else if(S(e))for(let n=0;n<e.length;n++)eo(e[n],t);else if(C(e)||E(e))e.forEach((e=>{eo(e,t)}));else if(B(e))for(const n in e)eo(e[n],t);return e}const to=[Function,Array],no={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:to,onEnter:to,onAfterEnter:to,onEnterCancelled:to,onBeforeLeave:to,onLeave:to,onAfterLeave:to,onLeaveCancelled:to,onBeforeAppear:to,onAppear:to,onAfterAppear:to,onAppearCancelled:to},oo={name:"BaseTransition",props:no,setup(e,{slots:t}){const n=ui(),o=function(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return jo((()=>{e.isMounted=!0})),qo((()=>{e.isUnmounting=!0})),e}();let r;return()=>{const i=t.default&&uo(t.default(),!0);if(!i||!i.length)return;let a=i[0];if(i.length>1)for(const e of i)if(e.type!==qr){a=e;break}const s=Kt(e),{mode:l}=s;if(o.isLeaving)return ao(a);const u=so(a);if(!u)return ao(a);const c=io(u,s,o,n);lo(u,c);const f=n.subTree,d=f&&so(f);let p=!1;const{getTransitionKey:h}=u.type;if(h){const e=h();void 0===r?r=e:e!==r&&(r=e,p=!0)}if(d&&d.type!==qr&&(!Wr(u,d)||p)){const e=io(d,s,o,n);if(lo(d,e),"out-in"===l)return o.isLeaving=!0,e.afterLeave=()=>{o.isLeaving=!1,!1!==n.update.active&&n.update()},ao(a);"in-out"===l&&u.type!==qr&&(e.delayLeave=(e,t,n)=>{ro(o,d)[String(d.key)]=d,e._leaveCb=()=>{t(),e._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=n})}return a}}};function ro(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function io(e,t,n,o){const{appear:r,mode:i,persisted:a=!1,onBeforeEnter:s,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:f,onLeave:d,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:g,onAppear:m,onAfterAppear:v,onAppearCancelled:y}=t,b=String(e.key),_=ro(n,e),w=(e,t)=>{e&&hn(e,o,9,t)},x=(e,t)=>{const n=t[1];w(e,t),S(e)?e.every((e=>e.length<=1))&&n():e.length<=1&&n()},k={mode:i,persisted:a,beforeEnter(t){let o=s;if(!n.isMounted){if(!r)return;o=g||s}t._leaveCb&&t._leaveCb(!0);const i=_[b];i&&Wr(e,i)&&i.el._leaveCb&&i.el._leaveCb(),w(o,[t])},enter(e){let t=l,o=u,i=c;if(!n.isMounted){if(!r)return;t=m||l,o=v||u,i=y||c}let a=!1;const s=e._enterCb=t=>{a||(a=!0,w(t?i:o,[e]),k.delayedLeave&&k.delayedLeave(),e._enterCb=void 0)};t?x(t,[e,s]):s()},leave(t,o){const r=String(e.key);if(t._enterCb&&t._enterCb(!0),n.isUnmounting)return o();w(f,[t]);let i=!1;const a=t._leaveCb=n=>{i||(i=!0,o(),w(n?h:p,[t]),t._leaveCb=void 0,_[r]===e&&delete _[r])};_[r]=e,d?x(d,[t,a]):a()},clone:e=>io(e,t,n,o)};return k}function ao(e){if(go(e))return(e=Jr(e)).children=null,e}function so(e){return go(e)?e.children?e.children[0]:void 0:e}function lo(e,t){6&e.shapeFlag&&e.component?lo(e.component.subTree,t):128&e.shapeFlag?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function uo(e,t=!1,n){let o=[],r=0;for(let i=0;i<e.length;i++){let a=e[i];const s=null==n?a.key:String(n)+String(null!=a.key?a.key:i);a.type===Lr?(128&a.patchFlag&&r++,o=o.concat(uo(a.children,t,s))):(t||a.type!==qr)&&o.push(null!=s?Jr(a,{key:s}):a)}if(r>1)for(let i=0;i<o.length;i++)o[i].patchFlag=-2;return o}function co(e){return N(e)?{setup:e,name:e.name}:e}const fo=e=>!!e.type.__asyncLoader;function po(e){N(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:r=200,timeout:i,suspensible:a=!0,onError:s}=e;let l,u=null,c=0;const f=()=>{let e;return u||(e=u=t().catch((e=>{if(e=e instanceof Error?e:new Error(String(e)),s)return new Promise(((t,n)=>{s(e,(()=>t((c++,u=null,f()))),(()=>n(e)),c+1)}));throw e})).then((t=>e!==u&&u?u:(t&&(t.__esModule||"Module"===t[Symbol.toStringTag])&&(t=t.default),l=t,t))))};return co({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return l},setup(){const e=li;if(l)return()=>ho(l,e);const t=t=>{u=null,gn(t,e,13,!o)};if(a&&e.suspense||pi)return f().then((t=>()=>ho(t,e))).catch((e=>(t(e),()=>o?Zr(o,{error:e}):null)));const s=tn(!1),c=tn(),d=tn(!!r);return r&&setTimeout((()=>{d.value=!1}),r),null!=i&&setTimeout((()=>{if(!s.value&&!c.value){const e=new Error(`Async component timed out after ${i}ms.`);t(e),c.value=e}}),i),f().then((()=>{s.value=!0,e.parent&&go(e.parent.vnode)&&Sn(e.parent.update)})).catch((e=>{t(e),c.value=e})),()=>s.value&&l?ho(l,e):c.value&&o?Zr(o,{error:c.value}):n&&!d.value?Zr(n):void 0}})}function ho(e,t){const{ref:n,props:o,children:r,ce:i}=t.vnode,a=Zr(e,o,r);return a.ref=n,a.ce=i,delete t.vnode.ce,a}const go=e=>e.type.__isKeepAlive;class mo{constructor(e){this.max=e,this._cache=new Map,this._keys=new Set,this._max=parseInt(e,10)}get(e){const{_cache:t,_keys:n,_max:o}=this,r=t.get(e);if(r)n.delete(e),n.add(e);else if(n.add(e),o&&n.size>o){const e=n.values().next().value;this.pruneCacheEntry(t.get(e)),this.delete(e)}return r}set(e,t){this._cache.set(e,t)}delete(e){this._cache.delete(e),this._keys.delete(e)}forEach(e,t){this._cache.forEach(e.bind(t))}}const vo={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number],matchBy:{type:String,default:"name"},cache:Object},setup(e,{slots:t}){const n=ui(),o=n.ctx;if(!o.renderer)return()=>{const e=t.default&&t.default();return e&&1===e.length?e[0]:e};const r=e.cache||new mo(e.max);r.pruneCacheEntry=a;let i=null;function a(t){var o;!i||!Wr(t,i)||"key"===e.matchBy&&t.key!==i.key?(Oo(o=t),c(o,n,s,!0)):i&&Oo(i)}const s=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:f}}}=o,d=f("div");function p(t){r.forEach(((n,o)=>{const i=So(n,e.matchBy);!i||t&&t(i)||(r.delete(o),a(n))}))}o.activate=(e,t,n,o,r)=>{const i=e.component;if(i.ba){const e=i.isDeactivated;i.isDeactivated=!1,K(i.ba),i.isDeactivated=e}u(e,t,n,0,s),l(i.vnode,e,t,n,i,s,o,e.slotScopeIds,r),Ar((()=>{i.isDeactivated=!1,i.a&&K(i.a);const t=e.props&&e.props.onVnodeMounted;t&&ii(t,i.parent,e)}),s)},o.deactivate=e=>{const t=e.component;t.bda&&Eo(t.bda),u(e,d,null,1,s),Ar((()=>{t.bda&&Co(t.bda),t.da&&K(t.da);const n=e.props&&e.props.onVnodeUnmounted;n&&ii(n,t.parent,e),t.isDeactivated=!0}),s)},Gn((()=>[e.include,e.exclude,e.matchBy]),(([e,t])=>{e&&p((t=>bo(e,t))),t&&p((e=>!bo(t,e)))}),{flush:"post",deep:!0});let h=null;const g=()=>{null!=h&&r.set(h,To(n.subTree))};return jo(g),Io(g),qo((()=>{r.forEach(((t,o)=>{r.delete(o),a(t);const{subTree:i,suspense:s}=n,l=To(i);if(t.type!==l.type||"key"===e.matchBy&&t.key!==l.key);else{l.component.bda&&K(l.component.bda),Oo(l);const e=l.component.da;e&&Ar(e,s)}}))})),()=>{if(h=null,!t.default)return null;const n=t.default(),o=n[0];if(n.length>1)return i=null,n;if(!Vr(o)||!(4&o.shapeFlag)&&!Vn(o.type))return i=null,o;let a=To(o);const s=a.type,l=So(a,e.matchBy),{include:u,exclude:c}=e;if(u&&(!l||!bo(u,l))||c&&l&&bo(c,l))return i=a,o;const f=null==a.key?s:a.key,d=r.get(f);return a.el&&(a=Jr(a),Vn(o.type)&&(o.ssContent=a)),h=f,d&&(a.el=d.el,a.component=d.component,a.transition&&lo(a,a.transition),a.shapeFlag|=512),a.shapeFlag|=256,i=a,Vn(o.type)?o:a}}},yo=vo;function bo(e,t){return S(e)?e.some((e=>bo(e,t))):P(e)?e.split(",").includes(t):!!e.test&&e.test(t)}function _o(e,t){xo(e,"a",t)}function wo(e,t){xo(e,"da",t)}function xo(e,t,n=li){const o=e.__wdc||(e.__wdc=()=>{let t=n;for(;t;){if(t.isDeactivated)return;t=t.parent}return e()});if(o.__called=!1,Ao(t,o,n),n){let e=n.parent;for(;e&&e.parent;)go(e.parent.vnode)&&ko(o,t,n,e),e=e.parent}}function ko(e,t,n,o){const r=Ao(t,e,o,!0);Mo((()=>{k(o[t],r)}),n)}function Oo(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function To(e){return Vn(e.type)?e.ssContent:e}function So(e,t){if("name"===t){const t=e.type;return vi(fo(e)?t.__asyncResolved||{}:t)}return String(e.key)}function Eo(e){for(let t=0;t<e.length;t++){const n=e[t];n.__called||(n(),n.__called=!0)}}function Co(e){e.forEach((e=>e.__called=!1))}function Ao(e,t,n=li,o=!1){if(n){if(r=e,ke.indexOf(r)>-1&&n.$pageInstance){if(n.type.__reserved)return;if(n!==n.$pageInstance&&(n=n.$pageInstance,function(e){return Oe.indexOf(e)>-1}(e))){const o=n.proxy;hn(t.bind(o),n,e,"onLoad"===e?[o.$page.options]:[])}}const i=n[e]||(n[e]=[]),a=t.__weh||(t.__weh=(...o)=>{if(n.isUnmounted)return;Xe(),ci(n);const r=hn(t,n,e,o);return fi(),Ge(),r});return o?i.unshift(a):i.push(a),a}var r}const No=e=>(t,n=li)=>(!pi||"sp"===e)&&Ao(e,((...e)=>t(...e)),n),Po=No("bm"),jo=No("m"),Lo=No("bu"),Io=No("u"),qo=No("bum"),Mo=No("um"),Bo=No("sp"),Ro=No("rtg"),Do=No("rtc");function $o(e,t=li){Ao("ec",e,t)}function Fo(e,t){const n=Bn;if(null===n)return e;const o=mi(n)||n.proxy,r=e.dirs||(e.dirs=[]);for(let i=0;i<t.length;i++){let[e,n,a,s=g]=t[i];e&&(N(e)&&(e={mounted:e,updated:e}),e.deep&&eo(n),r.push({dir:e,instance:o,value:n,oldValue:void 0,arg:a,modifiers:s}))}return e}function Uo(e,t,n,o){const r=e.dirs,i=t&&t.dirs;for(let a=0;a<r.length;a++){const s=r[a];i&&(s.oldValue=i[a].value);let l=s.dir[o];l&&(Xe(),hn(l,n,8,[e.el,s,e,t]),Ge())}}function Ho(e,t){return Wo("components",e,!0,t)||e}const zo=Symbol();function Vo(e){return P(e)?Wo("components",e,!1)||e:e||zo}function Wo(e,t,n=!0,o=!1){const r=Bn||li;if(r){const n=r.type;if("components"===e){const e=vi(n,!1);if(e&&(e===t||e===U(t)||e===V(U(t))))return n}const i=Yo(r[e]||n[e],t)||Yo(r.appContext[e],t);return!i&&o?n:i}}function Yo(e,t){return e&&(e[t]||e[U(t)]||e[V(U(t))])}function Ko(e,t,n,o){let r;const i=n&&n[o];if(S(e)||P(e)){r=new Array(e.length);for(let n=0,o=e.length;n<o;n++)r[n]=t(e[n],n,void 0,i&&i[n])}else if("number"==typeof e){r=new Array(e);for(let n=0;n<e;n++)r[n]=t(n+1,n,void 0,i&&i[n])}else if(L(e))if(e[Symbol.iterator])r=Array.from(e,((e,n)=>t(e,n,void 0,i&&i[n])));else{const n=Object.keys(e);r=new Array(n.length);for(let o=0,a=n.length;o<a;o++){const a=n[o];r[o]=t(e[a],a,o,i&&i[o])}}else r=[];return n&&(n[o]=r),r}function Xo(e,t,n={},o,r){if(Bn.isCE||Bn.parent&&fo(Bn.parent)&&Bn.parent.isCE)return"default"!==t&&(n.name=t),Zr("slot",n,o&&o());let i=e[t];i&&i._c&&(i._d=!1),Dr();const a=i&&Go(i(n)),s=zr(Lr,{key:n.key||a&&a.key||`_${t}`},a||(o?o():[]),a&&1===e._?64:-2);return!r&&s.scopeId&&(s.slotScopeIds=[s.scopeId+"-s"]),i&&i._c&&(i._d=!0),s}function Go(e){return e.some((e=>!Vr(e)||e.type!==qr&&!(e.type===Lr&&!Go(e.children))))?e:null}const Zo=e=>e?di(e)?mi(e)||e.proxy:Zo(e.parent):null,Jo=x(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Zo(e.parent),$root:e=>Zo(e.root),$emit:e=>e.emit,$options:e=>ir(e),$forceUpdate:e=>e.f||(e.f=()=>Sn(e.update)),$nextTick:e=>e.n||(e.n=Tn.bind(e.proxy)),$watch:e=>Jn.bind(e)}),Qo=(e,t)=>e!==g&&!e.__isScriptSetup&&T(e,t),er={get({_:e},t){const{ctx:n,setupState:o,data:r,props:i,accessCache:a,type:s,appContext:l}=e;let u;if("$"!==t[0]){const s=a[t];if(void 0!==s)switch(s){case 1:return o[t];case 2:return r[t];case 4:return n[t];case 3:return i[t]}else{if(Qo(o,t))return a[t]=1,o[t];if(r!==g&&T(r,t))return a[t]=2,r[t];if((u=e.propsOptions[0])&&T(u,t))return a[t]=3,i[t];if(n!==g&&T(n,t))return a[t]=4,n[t];tr&&(a[t]=0)}}const c=Jo[t];let f,d;return c?("$attrs"===t&&Ze(e,0,t),c(e)):(f=s.__cssModules)&&(f=f[t])?f:n!==g&&T(n,t)?(a[t]=4,n[t]):(d=l.config.globalProperties,T(d,t)?d[t]:void 0)},set({_:e},t,n){const{data:o,setupState:r,ctx:i}=e;return Qo(r,t)?(r[t]=n,!0):o!==g&&T(o,t)?(o[t]=n,!0):!T(e.props,t)&&(("$"!==t[0]||!(t.slice(1)in e))&&(i[t]=n,!0))},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:r,propsOptions:i}},a){let s;return!!n[a]||e!==g&&T(e,a)||Qo(t,a)||(s=i[0])&&T(s,a)||T(o,a)||T(Jo,a)||T(r.config.globalProperties,a)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:T(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};let tr=!0;function nr(e){const t=ir(e),n=e.proxy,o=e.ctx;tr=!1,t.beforeCreate&&or(t.beforeCreate,e,"bc");const{data:r,computed:i,methods:a,watch:s,provide:l,inject:u,created:c,beforeMount:f,mounted:d,beforeUpdate:p,updated:h,activated:g,deactivated:m,beforeDestroy:y,beforeUnmount:b,destroyed:_,unmounted:w,render:x,renderTracked:k,renderTriggered:O,errorCaptured:T,serverPrefetch:E,expose:C,inheritAttrs:A,components:P,directives:j,filters:I}=t;if(u&&function(e,t,n=v,o=!1){S(e)&&(e=ur(e));for(const r in e){const n=e[r];let i;i=L(n)?"default"in n?Yn(n.from||r,n.default,!0):Yn(n.from||r):Yn(n),en(i)&&o?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>i.value,set:e=>i.value=e}):t[r]=i}}(u,o,null,e.appContext.config.unwrapInjectedRef),a)for(const v in a){const e=a[v];N(e)&&(o[v]=e.bind(n))}if(r){const t=r.call(n,n);L(t)&&(e.data=Ft(t))}if(tr=!0,i)for(const S in i){const e=i[S],t=N(e)?e.bind(n,n):N(e.get)?e.get.bind(n,n):v,r=!N(e)&&N(e.set)?e.set.bind(n):v,a=yi({get:t,set:r});Object.defineProperty(o,S,{enumerable:!0,configurable:!0,get:()=>a.value,set:e=>a.value=e})}if(s)for(const v in s)rr(s[v],o,n,v);if(l){const e=N(l)?l.call(n):l;Reflect.ownKeys(e).forEach((t=>{Wn(t,e[t])}))}function q(e,t){S(t)?t.forEach((t=>e(t.bind(n)))):t&&e(t.bind(n))}if(c&&or(c,e,"c"),q(Po,f),q(jo,d),q(Lo,p),q(Io,h),q(_o,g),q(wo,m),q($o,T),q(Do,k),q(Ro,O),q(qo,b),q(Mo,w),q(Bo,E),S(C))if(C.length){const t=e.exposed||(e.exposed={});C.forEach((e=>{Object.defineProperty(t,e,{get:()=>n[e],set:t=>n[e]=t})}))}else e.exposed||(e.exposed={});x&&e.render===v&&(e.render=x),null!=A&&(e.inheritAttrs=A),P&&(e.components=P),j&&(e.directives=j);const M=e.appContext.config.globalProperties.$applyOptions;M&&M(t,e,n)}function or(e,t,n){hn(S(e)?e.map((e=>e.bind(t.proxy))):e.bind(t.proxy),t,n)}function rr(e,t,n,o){const r=o.includes(".")?Qn(n,o):()=>n[o];if(P(e)){const n=t[e];N(n)&&Gn(r,n)}else if(N(e))Gn(r,e.bind(n));else if(L(e))if(S(e))e.forEach((e=>rr(e,t,n,o)));else{const o=N(e.handler)?e.handler.bind(n):t[e.handler];N(o)&&Gn(r,o,e)}}function ir(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:r,optionsCache:i,config:{optionMergeStrategies:a}}=e.appContext,s=i.get(t);let l;return s?l=s:r.length||n||o?(l={},r.length&&r.forEach((e=>ar(l,e,a,!0))),ar(l,t,a)):l=t,L(t)&&i.set(t,l),l}function ar(e,t,n,o=!1){const{mixins:r,extends:i}=t;i&&ar(e,i,n,!0),r&&r.forEach((t=>ar(e,t,n,!0)));for(const a in t)if(o&&"expose"===a);else{const o=sr[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const sr={data:lr,props:fr,emits:fr,methods:fr,computed:fr,beforeCreate:cr,created:cr,beforeMount:cr,mounted:cr,beforeUpdate:cr,updated:cr,beforeDestroy:cr,beforeUnmount:cr,destroyed:cr,unmounted:cr,activated:cr,deactivated:cr,errorCaptured:cr,serverPrefetch:cr,components:fr,directives:fr,watch:function(e,t){if(!e)return t;if(!t)return e;const n=x(Object.create(null),e);for(const o in t)n[o]=cr(e[o],t[o]);return n},provide:lr,inject:function(e,t){return fr(ur(e),ur(t))}};function lr(e,t){return t?e?function(){return x(N(e)?e.call(this,this):e,N(t)?t.call(this,this):t)}:t:e}function ur(e){if(S(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function cr(e,t){return e?[...new Set([].concat(e,t))]:t}function fr(e,t){return e?x(x(Object.create(null),e),t):t}function dr(e,t,n,o=!1){const r={},i={};X(i,Yr,1),e.propsDefaults=Object.create(null),pr(e,t,r,i);for(const a in e.propsOptions[0])a in r||(r[a]=void 0);n?e.props=o?r:Ht(r,!1,ht,It,Bt):e.type.props?e.props=r:e.props=i,e.attrs=i}function pr(e,t,n,o){const[r,i]=e.propsOptions;let a,s=!1;if(t)for(let l in t){if(D(l))continue;const u=t[l];let c;r&&T(r,c=U(l))?i&&i.includes(c)?(a||(a={}))[c]=u:n[c]=u:Mn(e.emitsOptions,l)||l in o&&u===o[l]||(o[l]=u,s=!0)}if(i){const t=Kt(n),o=a||g;for(let a=0;a<i.length;a++){const s=i[a];n[s]=hr(r,t,s,o[s],e,!T(o,s))}}return s}function hr(e,t,n,o,r,i){const a=e[n];if(null!=a){const e=T(a,"default");if(e&&void 0===o){const e=a.default;if(a.type!==Function&&N(e)){const{propsDefaults:i}=r;n in i?o=i[n]:(ci(r),o=i[n]=e.call(null,t),fi())}else o=e}a[0]&&(i&&!e?o=!1:!a[1]||""!==o&&o!==z(n)||(o=!0))}return o}function gr(e,t,n=!1){const o=t.propsCache,r=o.get(e);if(r)return r;const i=e.props,a={},s=[];let l=!1;if(!N(e)){const o=e=>{l=!0;const[n,o]=gr(e,t,!0);x(a,n),o&&s.push(...o)};!n&&t.mixins.length&&t.mixins.forEach(o),e.extends&&o(e.extends),e.mixins&&e.mixins.forEach(o)}if(!i&&!l)return L(e)&&o.set(e,m),m;if(S(i))for(let c=0;c<i.length;c++){const e=U(i[c]);mr(e)&&(a[e]=g)}else if(i)for(const c in i){const e=U(c);if(mr(e)){const t=i[c],n=a[e]=S(t)||N(t)?{type:t}:Object.assign({},t);if(n){const t=br(Boolean,n.type),o=br(String,n.type);n[0]=t>-1,n[1]=o<0||t<o,(t>-1||T(n,"default"))&&s.push(e)}}}const u=[a,s];return L(e)&&o.set(e,u),u}function mr(e){return"$"!==e[0]}function vr(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:null===e?"null":""}function yr(e,t){return vr(e)===vr(t)}function br(e,t){return S(t)?t.findIndex((t=>yr(t,e))):N(t)&&yr(t,e)?0:-1}const _r=e=>"_"===e[0]||"$stable"===e,wr=e=>S(e)?e.map(ti):[ti(e)],xr=(e,t,n)=>{if(t._n)return t;const o=$n(((...e)=>wr(t(...e))),n);return o._c=!1,o},kr=(e,t,n)=>{const o=e._ctx;for(const r in e){if(_r(r))continue;const n=e[r];if(N(n))t[r]=xr(0,n,o);else if(null!=n){const e=wr(n);t[r]=()=>e}}},Or=(e,t)=>{const n=wr(t);e.slots.default=()=>n};function Tr(){return{app:null,config:{isNativeTag:y,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let Sr=0;function Er(e,t){return function(n,o=null){N(n)||(n=Object.assign({},n)),null==o||L(o)||(o=null);const r=Tr(),i=new Set;let a=!1;const s=r.app={_uid:Sr++,_component:n,_props:o,_container:null,_context:r,_instance:null,version:xi,get config(){return r.config},set config(e){},use:(e,...t)=>(i.has(e)||(e&&N(e.install)?(i.add(e),e.install(s,...t)):N(e)&&(i.add(e),e(s,...t))),s),mixin:e=>(r.mixins.includes(e)||r.mixins.push(e),s),component:(e,t)=>t?(r.components[e]=t,s):r.components[e],directive:(e,t)=>t?(r.directives[e]=t,s):r.directives[e],mount(i,l,u){if(!a){const c=Zr(n,o);return c.appContext=r,l&&t?t(c,i):e(c,i,u),a=!0,s._container=i,i.__vue_app__=s,s._instance=c.component,mi(c.component)||c.component.proxy}},unmount(){a&&(e(null,s._container),delete s._container.__vue_app__)},provide:(e,t)=>(r.provides[e]=t,s)};return s}}function Cr(e,t,n,o,r=!1){if(S(e))return void e.forEach(((e,i)=>Cr(e,t&&(S(t)?t[i]:t),n,o,r)));if(fo(o)&&!r)return;const i=4&o.shapeFlag?mi(o.component)||o.component.proxy:o.el,a=r?null:i,{i:s,r:l}=e,u=t&&t.r,c=s.refs===g?s.refs={}:s.refs,f=s.setupState;if(null!=u&&u!==l&&(P(u)?(c[u]=null,T(f,u)&&(f[u]=null)):en(u)&&(u.value=null)),N(l))pn(l,s,12,[a,c]);else{const t=P(l),o=en(l);if(t||o){const s=()=>{if(e.f){const n=t?T(f,l)?f[l]:c[l]:l.value;r?S(n)&&k(n,i):S(n)?n.includes(i)||n.push(i):t?(c[l]=[i],T(f,l)&&(f[l]=c[l])):(l.value=[i],e.k&&(c[e.k]=l.value))}else t?(c[l]=a,T(f,l)&&(f[l]=a)):o&&(l.value=a,e.k&&(c[e.k]=a))};a?(s.id=-1,Ar(s,n)):s()}}}const Ar=function(e,t){var n;t&&t.pendingBranch?S(e)?t.effects.push(...e):t.effects.push(e):(S(n=e)?_n.push(...n):wn&&wn.includes(n,n.allowRecurse?xn+1:xn)||_n.push(n),En())};function Nr(e){return function(e,t){(Z||(Z="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{})).__VUE__=!0;const{insert:n,remove:o,patchProp:r,forcePatchProp:i,createElement:a,createText:s,createComment:l,setText:u,setElementText:c,parentNode:f,nextSibling:d,setScopeId:p=v,insertStaticContent:h}=e,y=(e,t,n,o=null,r=null,i=null,a=!1,s=null,l=!!t.dynamicChildren)=>{if(e===t)return;e&&!Wr(e,t)&&(o=te(e),Y(e,r,i,!0),e=null),-2===t.patchFlag&&(l=!1,t.dynamicChildren=null);const{type:u,ref:c,shapeFlag:f}=t;switch(u){case Ir:b(e,t,n,o);break;case qr:_(e,t,n,o);break;case Mr:null==e&&w(t,n,o,a);break;case Lr:L(e,t,n,o,r,i,a,s,l);break;default:1&f?S(e,t,n,o,r,i,a,s,l):6&f?q(e,t,n,o,r,i,a,s,l):(64&f||128&f)&&u.process(e,t,n,o,r,i,a,s,l,oe)}null!=c&&r&&Cr(c,e&&e.ref,i,t||e,!t)},b=(e,t,o,r)=>{if(null==e)n(t.el=s(t.children),o,r);else{const n=t.el=e.el;t.children!==e.children&&u(n,t.children)}},_=(e,t,o,r)=>{null==e?n(t.el=l(t.children||""),o,r):t.el=e.el},w=(e,t,n,o)=>{[e.el,e.anchor]=h(e.children,t,n,o,e.el,e.anchor)},k=({el:e,anchor:t},o,r)=>{let i;for(;e&&e!==t;)i=d(e),n(e,o,r),e=i;n(t,o,r)},O=({el:e,anchor:t})=>{let n;for(;e&&e!==t;)n=d(e),o(e),e=n;o(t)},S=(e,t,n,o,r,i,a,s,l)=>{a=a||"svg"===t.type,null==e?E(t,n,o,r,i,a,s,l):N(e,t,r,i,a,s,l)},E=(e,t,o,i,s,l,u,f)=>{let d,p;const{type:h,props:g,shapeFlag:m,transition:v,dirs:y}=e;if(d=e.el=a(e.type,l,g&&g.is,g),8&m?c(d,e.children):16&m&&A(e.children,d,null,i,s,l&&"foreignObject"!==h,u,f),y&&Uo(e,null,i,"created"),C(d,e,e.scopeId,u,i),g){for(const t in g)"value"===t||D(t)||r(d,t,null,g[t],l,e.children,i,s,ee);"value"in g&&r(d,"value",null,g.value),(p=g.onVnodeBeforeMount)&&ii(p,i,e)}Object.defineProperty(d,"__vueParentComponent",{value:i,enumerable:!1}),y&&Uo(e,null,i,"beforeMount");const b=(!s||s&&!s.pendingBranch)&&v&&!v.persisted;b&&v.beforeEnter(d),n(d,t,o),((p=g&&g.onVnodeMounted)||b||y)&&Ar((()=>{p&&ii(p,i,e),b&&v.enter(d),y&&Uo(e,null,i,"mounted")}),s)},C=(e,t,n,o,r)=>{if(n&&p(e,n),o)for(let i=0;i<o.length;i++)p(e,o[i]);if(r){if(t===r.subTree){const t=r.vnode;C(e,t,t.scopeId,t.slotScopeIds,r.parent)}}},A=(e,t,n,o,r,i,a,s,l=0)=>{for(let u=l;u<e.length;u++){const l=e[u]=s?ni(e[u]):ti(e[u]);y(null,l,t,n,o,r,i,a,s)}},N=(e,t,n,o,a,s,l)=>{const u=t.el=e.el;let{patchFlag:f,dynamicChildren:d,dirs:p}=t;f|=16&e.patchFlag;const h=e.props||g,m=t.props||g;let v;n&&Pr(n,!1),(v=m.onVnodeBeforeUpdate)&&ii(v,n,t,e),p&&Uo(t,e,n,"beforeUpdate"),n&&Pr(n,!0);const y=a&&"foreignObject"!==t.type;if(d?P(e.dynamicChildren,d,u,n,o,y,s):l||F(e,t,u,null,n,o,y,s,!1),f>0){if(16&f)j(u,t,h,m,n,o,a);else if(2&f&&h.class!==m.class&&r(u,"class",null,m.class,a),4&f&&r(u,"style",h.style,m.style,a),8&f){const s=t.dynamicProps;for(let t=0;t<s.length;t++){const l=s[t],c=h[l],f=m[l];(f!==c||"value"===l||i&&i(u,l))&&r(u,l,c,f,a,e.children,n,o,ee)}}1&f&&e.children!==t.children&&c(u,t.children)}else l||null!=d||j(u,t,h,m,n,o,a);((v=m.onVnodeUpdated)||p)&&Ar((()=>{v&&ii(v,n,t,e),p&&Uo(t,e,n,"updated")}),o)},P=(e,t,n,o,r,i,a)=>{for(let s=0;s<t.length;s++){const l=e[s],u=t[s],c=l.el&&(l.type===Lr||!Wr(l,u)||70&l.shapeFlag)?f(l.el):n;y(l,u,c,null,o,r,i,a,!0)}},j=(e,t,n,o,a,s,l)=>{if(n!==o){if(n!==g)for(const i in n)D(i)||i in o||r(e,i,n[i],null,l,t.children,a,s,ee);for(const u in o){if(D(u))continue;const c=o[u],f=n[u];(c!==f&&"value"!==u||i&&i(e,u))&&r(e,u,f,c,l,t.children,a,s,ee)}"value"in o&&r(e,"value",n.value,o.value)}},L=(e,t,o,r,i,a,l,u,c)=>{const f=t.el=e?e.el:s(""),d=t.anchor=e?e.anchor:s("");let{patchFlag:p,dynamicChildren:h,slotScopeIds:g}=t;g&&(u=u?u.concat(g):g),null==e?(n(f,o,r),n(d,o,r),A(t.children,o,d,i,a,l,u,c)):p>0&&64&p&&h&&e.dynamicChildren?(P(e.dynamicChildren,h,o,i,a,l,u),(null!=t.key||i&&t===i.subTree)&&jr(e,t,!0)):F(e,t,o,d,i,a,l,u,c)},q=(e,t,n,o,r,i,a,s,l)=>{t.slotScopeIds=s,null==e?512&t.shapeFlag?r.ctx.activate(t,n,o,a,l):M(t,n,o,r,i,a,l):B(e,t,l)},M=(e,t,n,o,r,i,a)=>{const s=e.component=function(e,t,n){const o=e.type,r=(t?t.appContext:e.appContext)||ai,i={uid:si++,vnode:e,type:o,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,scope:new Le(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:gr(o,r),emitsOptions:qn(o,r),emit:null,emitted:null,propsDefaults:g,inheritAttrs:o.inheritAttrs,ctx:g,data:g,props:g,attrs:g,slots:g,refs:g,setupState:g,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,bda:null,da:null,ba:null,a:null,rtg:null,rtc:null,ec:null,sp:null};i.ctx={_:i},i.root=t?t.root:i,i.emit=Ln.bind(null,i),i.$pageInstance=t&&t.$pageInstance,e.ce&&e.ce(i);return i}(e,o,r);if(go(e)&&(s.ctx.renderer=oe),function(e,t=!1){pi=t;const{props:n,children:o}=e.vnode,r=di(e);dr(e,n,r,t),((e,t)=>{if(32&e.vnode.shapeFlag){const n=t._;n?(e.slots=Kt(t),X(t,"_",n)):kr(t,e.slots={})}else e.slots={},t&&Or(e,t);X(e.slots,Yr,1)})(e,o);const i=r?function(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Xt(new Proxy(e.ctx,er));const{setup:o}=n;if(o){const n=e.setupContext=o.length>1?function(e){const t=t=>{e.exposed=t||{}};let n;return{get attrs(){return n||(n=function(e){return new Proxy(e.attrs,{get:(t,n)=>(Ze(e,0,"$attrs"),t[n])})}(e))},slots:e.slots,emit:e.emit,expose:t}}(e):null;ci(e),Xe();const r=pn(o,e,0,[e.props,n]);if(Ge(),fi(),I(r)){if(r.then(fi,fi),t)return r.then((n=>{hi(e,n,t)})).catch((t=>{gn(t,e,0)}));e.asyncDep=r}else hi(e,r,t)}else gi(e,t)}(e,t):void 0;pi=!1}(s),s.asyncDep){if(r&&r.registerDep(s,R),!e.el){const e=s.subTree=Zr(qr);_(null,e,t,n)}}else R(s,e,t,n,r,i,a)},B=(e,t,n)=>{const o=t.component=e.component;if(function(e,t,n){const{props:o,children:r,component:i}=e,{props:a,children:s,patchFlag:l}=t,u=i.emitsOptions;if(t.dirs||t.transition)return!0;if(!(n&&l>=0))return!(!r&&!s||s&&s.$stable)||o!==a&&(o?!a||zn(o,a,u):!!a);if(1024&l)return!0;if(16&l)return o?zn(o,a,u):!!a;if(8&l){const e=t.dynamicProps;for(let t=0;t<e.length;t++){const n=e[t];if(a[n]!==o[n]&&!Mn(u,n))return!0}}return!1}(e,t,n)){if(o.asyncDep&&!o.asyncResolved)return void $(o,t,n);o.next=t,function(e){const t=yn.indexOf(e);t>bn&&yn.splice(t,1)}(o.update),o.update()}else t.el=e.el,o.vnode=t},R=(e,t,n,o,r,i,a)=>{const s=()=>{if(e.isMounted){let t,{next:n,bu:o,u:s,parent:l,vnode:u}=e,c=n;Pr(e,!1),n?(n.el=u.el,$(e,n,a)):n=u,o&&K(o),(t=n.props&&n.props.onVnodeBeforeUpdate)&&ii(t,l,n,u),Pr(e,!0);const d=Fn(e),p=e.subTree;e.subTree=d,y(p,d,f(p.el),te(p),e,r,i),n.el=d.el,null===c&&function({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}(e,d.el),s&&Ar(s,r),(t=n.props&&n.props.onVnodeUpdated)&&Ar((()=>ii(t,l,n,u)),r)}else{let a;const{el:s,props:l}=t,{bm:u,m:c,parent:f}=e,d=fo(t);if(Pr(e,!1),u&&K(u),!d&&(a=l&&l.onVnodeBeforeMount)&&ii(a,f,t),Pr(e,!0),s&&ie){const n=()=>{e.subTree=Fn(e),ie(s,e.subTree,e,r,null)};d?t.type.__asyncLoader().then((()=>!e.isUnmounted&&n())):n()}else{const a=e.subTree=Fn(e);y(null,a,n,o,e,r,i),t.el=a.el}if(c&&Ar(c,r),!d&&(a=l&&l.onVnodeMounted)){const e=t;Ar((()=>ii(a,f,e)),r)}const{ba:p,a:h}=e;(256&t.shapeFlag||f&&fo(f.vnode)&&256&f.vnode.shapeFlag)&&(p&&Eo(p),h&&Ar(h,r),p&&Ar((()=>Co(p)),r)),e.isMounted=!0,t=n=o=null}},l=e.effect=new Ve(s,(()=>Sn(u)),e.scope),u=e.update=()=>l.run();u.id=e.uid,Pr(e,!0),u()},$=(e,t,n)=>{t.component=e;const o=e.vnode.props;e.vnode=t,e.next=null,function(e,t,n,o){const{props:r,attrs:i,vnode:{patchFlag:a}}=e,s=Kt(r),[l]=e.propsOptions;let u=!1;if(!(o||a>0)||16&a){let o;pr(e,t,r,i)&&(u=!0);for(const i in s)t&&(T(t,i)||(o=z(i))!==i&&T(t,o))||(l?!n||void 0===n[i]&&void 0===n[o]||(r[i]=hr(l,s,i,void 0,e,!0)):delete r[i]);if(i!==s)for(const e in i)t&&T(t,e)||(delete i[e],u=!0)}else if(8&a){const n=e.vnode.dynamicProps;for(let o=0;o<n.length;o++){let a=n[o];if(Mn(e.emitsOptions,a))continue;const c=t[a];if(l)if(T(i,a))c!==i[a]&&(i[a]=c,u=!0);else{const t=U(a);r[t]=hr(l,s,t,c,e,!1)}else c!==i[a]&&(i[a]=c,u=!0)}}u&&Qe(e,"set","$attrs")}(e,t.props,o,n),((e,t,n)=>{const{vnode:o,slots:r}=e;let i=!0,a=g;if(32&o.shapeFlag){const e=t._;e?n&&1===e?i=!1:(x(r,t),n||1!==e||delete r._):(i=!t.$stable,kr(t,r)),a=t}else t&&(Or(e,t),a={default:1});if(i)for(const s in r)_r(s)||s in a||delete r[s]})(e,t.children,n),Xe(),Cn(),Ge()},F=(e,t,n,o,r,i,a,s,l=!1)=>{const u=e&&e.children,f=e?e.shapeFlag:0,d=t.children,{patchFlag:p,shapeFlag:h}=t;if(p>0){if(128&p)return void V(u,d,n,o,r,i,a,s,l);if(256&p)return void H(u,d,n,o,r,i,a,s,l)}8&h?(16&f&&ee(u,r,i),d!==u&&c(n,d)):16&f?16&h?V(u,d,n,o,r,i,a,s,l):ee(u,r,i,!0):(8&f&&c(n,""),16&h&&A(d,n,o,r,i,a,s,l))},H=(e,t,n,o,r,i,a,s,l)=>{t=t||m;const u=(e=e||m).length,c=t.length,f=Math.min(u,c);let d;for(d=0;d<f;d++){const o=t[d]=l?ni(t[d]):ti(t[d]);y(e[d],o,n,null,r,i,a,s,l)}u>c?ee(e,r,i,!0,!1,f):A(t,n,o,r,i,a,s,l,f)},V=(e,t,n,o,r,i,a,s,l)=>{let u=0;const c=t.length;let f=e.length-1,d=c-1;for(;u<=f&&u<=d;){const o=e[u],c=t[u]=l?ni(t[u]):ti(t[u]);if(!Wr(o,c))break;y(o,c,n,null,r,i,a,s,l),u++}for(;u<=f&&u<=d;){const o=e[f],u=t[d]=l?ni(t[d]):ti(t[d]);if(!Wr(o,u))break;y(o,u,n,null,r,i,a,s,l),f--,d--}if(u>f){if(u<=d){const e=d+1,f=e<c?t[e].el:o;for(;u<=d;)y(null,t[u]=l?ni(t[u]):ti(t[u]),n,f,r,i,a,s,l),u++}}else if(u>d)for(;u<=f;)Y(e[u],r,i,!0),u++;else{const p=u,h=u,g=new Map;for(u=h;u<=d;u++){const e=t[u]=l?ni(t[u]):ti(t[u]);null!=e.key&&g.set(e.key,u)}let v,b=0;const _=d-h+1;let w=!1,x=0;const k=new Array(_);for(u=0;u<_;u++)k[u]=0;for(u=p;u<=f;u++){const o=e[u];if(b>=_){Y(o,r,i,!0);continue}let c;if(null!=o.key)c=g.get(o.key);else for(v=h;v<=d;v++)if(0===k[v-h]&&Wr(o,t[v])){c=v;break}void 0===c?Y(o,r,i,!0):(k[c-h]=u+1,c>=x?x=c:w=!0,y(o,t[c],n,null,r,i,a,s,l),b++)}const O=w?function(e){const t=e.slice(),n=[0];let o,r,i,a,s;const l=e.length;for(o=0;o<l;o++){const l=e[o];if(0!==l){if(r=n[n.length-1],e[r]<l){t[o]=r,n.push(o);continue}for(i=0,a=n.length-1;i<a;)s=i+a>>1,e[n[s]]<l?i=s+1:a=s;l<e[n[i]]&&(i>0&&(t[o]=n[i-1]),n[i]=o)}}i=n.length,a=n[i-1];for(;i-- >0;)n[i]=a,a=t[a];return n}(k):m;for(v=O.length-1,u=_-1;u>=0;u--){const e=h+u,f=t[e],d=e+1<c?t[e+1].el:o;0===k[u]?y(null,f,n,d,r,i,a,s,l):w&&(v<0||u!==O[v]?W(f,n,d,2):v--)}}},W=(e,t,o,r,i=null)=>{const{el:a,type:s,transition:l,children:u,shapeFlag:c}=e;if(6&c)return void W(e.component.subTree,t,o,r);if(128&c)return void e.suspense.move(t,o,r);if(64&c)return void s.move(e,t,o,oe);if(s===Lr){n(a,t,o);for(let e=0;e<u.length;e++)W(u[e],t,o,r);return void n(e.anchor,t,o)}if(s===Mr)return void k(e,t,o);if(2!==r&&1&c&&l)if(0===r)l.beforeEnter(a),n(a,t,o),Ar((()=>l.enter(a)),i);else{const{leave:e,delayLeave:r,afterLeave:i}=l,s=()=>n(a,t,o),u=()=>{e(a,(()=>{s(),i&&i()}))};r?r(a,s,u):u()}else n(a,t,o)},Y=(e,t,n,o=!1,r=!1)=>{const{type:i,props:a,ref:s,children:l,dynamicChildren:u,shapeFlag:c,patchFlag:f,dirs:d}=e;if(null!=s&&Cr(s,null,n,e,!0),256&c)return void t.ctx.deactivate(e);const p=1&c&&d,h=!fo(e);let g;if(h&&(g=a&&a.onVnodeBeforeUnmount)&&ii(g,t,e),6&c)Q(e.component,n,o);else{if(128&c)return void e.suspense.unmount(n,o);p&&Uo(e,null,t,"beforeUnmount"),64&c?e.type.remove(e,t,n,r,oe,o):u&&(i!==Lr||f>0&&64&f)?ee(u,t,n,!1,!0):(i===Lr&&384&f||!r&&16&c)&&ee(l,t,n),o&&G(e)}(h&&(g=a&&a.onVnodeUnmounted)||p)&&Ar((()=>{g&&ii(g,t,e),p&&Uo(e,null,t,"unmounted")}),n)},G=e=>{const{type:t,el:n,anchor:r,transition:i}=e;if(t===Lr)return void J(n,r);if(t===Mr)return void O(e);const a=()=>{o(n),i&&!i.persisted&&i.afterLeave&&i.afterLeave()};if(1&e.shapeFlag&&i&&!i.persisted){const{leave:t,delayLeave:o}=i,r=()=>t(n,a);o?o(e.el,a,r):r()}else a()},J=(e,t)=>{let n;for(;e!==t;)n=d(e),o(e),e=n;o(t)},Q=(e,t,n)=>{const{bum:o,scope:r,update:i,subTree:a,um:s}=e;o&&K(o),r.stop(),i&&(i.active=!1,Y(a,e,t,n)),s&&Ar(s,t),Ar((()=>{e.isUnmounted=!0}),t),t&&t.pendingBranch&&!t.isUnmounted&&e.asyncDep&&!e.asyncResolved&&e.suspenseId===t.pendingId&&(t.deps--,0===t.deps&&t.resolve())},ee=(e,t,n,o=!1,r=!1,i=0)=>{for(let a=i;a<e.length;a++)Y(e[a],t,n,o,r)},te=e=>6&e.shapeFlag?te(e.component.subTree):128&e.shapeFlag?e.suspense.next():d(e.anchor||e.el),ne=(e,t,n)=>{null==e?t._vnode&&Y(t._vnode,null,null,!0):y(t._vnode||null,e,t,null,null,null,n),Cn(),An(),t._vnode=e},oe={p:y,um:Y,m:W,r:G,mt:M,mc:A,pc:F,pbc:P,n:te,o:e};let re,ie;t&&([re,ie]=t(oe));return{render:ne,hydrate:re,createApp:Er(ne,re)}}(e)}function Pr({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function jr(e,t,n=!1){const o=e.children,r=t.children;if(S(o)&&S(r))for(let i=0;i<o.length;i++){const e=o[i];let t=r[i];1&t.shapeFlag&&!t.dynamicChildren&&((t.patchFlag<=0||32===t.patchFlag)&&(t=r[i]=ni(r[i]),t.el=e.el),n||jr(e,t)),t.type===Ir&&(t.el=e.el)}}const Lr=Symbol(void 0),Ir=Symbol(void 0),qr=Symbol(void 0),Mr=Symbol(void 0),Br=[];let Rr=null;function Dr(e=!1){Br.push(Rr=e?null:[])}let $r=1;function Fr(e){$r+=e}function Ur(e){return e.dynamicChildren=$r>0?Rr||m:null,Br.pop(),Rr=Br[Br.length-1]||null,$r>0&&Rr&&Rr.push(e),e}function Hr(e,t,n,o,r,i){return Ur(Gr(e,t,n,o,r,i,!0))}function zr(e,t,n,o,r){return Ur(Zr(e,t,n,o,r,!0))}function Vr(e){return!!e&&!0===e.__v_isVNode}function Wr(e,t){return e.type===t.type&&e.key===t.key}const Yr="__vInternal",Kr=({key:e})=>null!=e?e:null,Xr=({ref:e,ref_key:t,ref_for:n})=>null!=e?P(e)||en(e)||N(e)?{i:Bn,r:e,k:t,f:!!n}:e:null;function Gr(e,t=null,n=null,o=0,r=null,i=(e===Lr?0:1),a=!1,s=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Kr(t),ref:t&&Xr(t),scopeId:Rn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:i,patchFlag:o,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:Bn};return s?(oi(l,n),128&i&&e.normalize(l)):n&&(l.shapeFlag|=P(n)?8:16),$r>0&&!a&&Rr&&(l.patchFlag>0||6&i)&&32!==l.patchFlag&&Rr.push(l),l}const Zr=function(e,t=null,n=null,r=0,i=null,a=!1){e&&e!==zo||(e=qr);if(Vr(e)){const o=Jr(e,t,!0);return n&&oi(o,n),$r>0&&!a&&Rr&&(6&o.shapeFlag?Rr[Rr.indexOf(e)]=o:Rr.push(o)),o.patchFlag|=-2,o}s=e,N(s)&&"__vccOpts"in s&&(e=e.__vccOpts);var s;if(t){t=function(e){return e?Yt(e)||Yr in e?x({},e):e:null}(t);let{class:e,style:n}=t;e&&!P(e)&&(t.class=l(e)),L(n)&&(Yt(n)&&!S(n)&&(n=x({},n)),t.style=o(n))}const u=P(e)?1:Vn(e)?128:(e=>e.__isTeleport)(e)?64:L(e)?4:N(e)?2:0;return Gr(e,t,n,r,i,u,a,!0)};function Jr(e,t,n=!1){const{props:o,ref:r,patchFlag:i,children:a}=e,s=t?ri(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:s,key:s&&Kr(s),ref:t&&t.ref?n&&r?S(r)?r.concat(Xr(t)):[r,Xr(t)]:Xr(t):r,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Lr?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Jr(e.ssContent),ssFallback:e.ssFallback&&Jr(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Qr(e=" ",t=0){return Zr(Ir,null,e,t)}function ei(e="",t=!1){return t?(Dr(),zr(qr,null,e)):Zr(qr,null,e)}function ti(e){return null==e||"boolean"==typeof e?Zr(qr):S(e)?Zr(Lr,null,e.slice()):"object"==typeof e?ni(e):Zr(Ir,null,String(e))}function ni(e){return null===e.el&&-1!==e.patchFlag||e.memo?e:Jr(e)}function oi(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(S(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),oi(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Yr in t?3===o&&Bn&&(1===Bn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=Bn}}else N(t)?(t={default:t,_ctx:Bn},n=32):(t=String(t),64&o?(n=16,t=[Qr(t)]):n=8);e.children=t,e.shapeFlag|=n}function ri(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const e in r)if("class"===e)t.class!==r.class&&(t.class=l([t.class,r.class]));else if("style"===e)t.style=o([t.style,r.style]);else if(_(e)){const n=t[e],o=r[e];!o||n===o||S(n)&&n.includes(o)||(t[e]=n?[].concat(n,o):o)}else""!==e&&(t[e]=r[e])}return t}function ii(e,t,n,o=null){hn(e,t,7,[n,o])}const ai=Tr();let si=0;let li=null;const ui=()=>li||Bn,ci=e=>{li=e,e.scope.on()},fi=()=>{li&&li.scope.off(),li=null};function di(e){return 4&e.vnode.shapeFlag}let pi=!1;function hi(e,t,n){N(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:L(t)&&(e.setupState=ln(t)),gi(e,n)}function gi(e,t,n){const o=e.type;e.render||(e.render=o.render||v),ci(e),Xe(),nr(e),Ge(),fi()}function mi(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(ln(Xt(e.exposed)),{get:(t,n)=>n in t?t[n]:n in Jo?Jo[n](e):void 0,has:(e,t)=>t in e||t in Jo}))}function vi(e,t=!0){return N(e)?e.displayName||e.name:e.name||t&&e.__name}const yi=(e,t)=>function(e,t,n=!1){let o,r;const i=N(e);return i?(o=e,r=v):(o=e.get,r=e.set),new dn(o,r,i||!r,n)}(e,0,pi);function bi(e,t,n){const o=arguments.length;return 2===o?L(t)&&!S(t)?Vr(t)?Zr(e,null,[t]):Zr(e,t):Zr(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):3===o&&Vr(n)&&(n=[n]),Zr(e,t,n))}const _i=Symbol(""),wi=()=>Yn(_i),xi="3.2.47",ki="undefined"!=typeof document?document:null,Oi=ki&&ki.createElement("template"),Ti={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const r=t?ki.createElementNS("http://www.w3.org/2000/svg",e):ki.createElement(e,n?{is:n}:void 0);return"select"===e&&o&&null!=o.multiple&&r.setAttribute("multiple",o.multiple),r},createText:e=>ki.createTextNode(e),createComment:e=>ki.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ki.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,o,r,i){const a=n?n.previousSibling:t.lastChild;if(r&&(r===i||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),r!==i&&(r=r.nextSibling););else{Oi.innerHTML=o?`<svg>${e}</svg>`:e;const r=Oi.content;if(o){const e=r.firstChild;for(;e.firstChild;)r.appendChild(e.firstChild);r.removeChild(e)}t.insertBefore(r,n)}return[a?a.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};const Si=/\s*!important$/;function Ei(e,t,n){if(S(n))n.forEach((n=>Ei(e,t,n)));else if(null==n&&(n=""),n=Bi(n),t.startsWith("--"))e.setProperty(t,n);else{const o=function(e,t){const n=Ai[t];if(n)return n;let o=U(t);if("filter"!==o&&o in e)return Ai[t]=o;o=V(o);for(let r=0;r<Ci.length;r++){const n=Ci[r]+o;if(n in e)return Ai[t]=n}return t}(e,t);Si.test(n)?e.setProperty(z(o),n.replace(Si,""),"important"):e[o]=n}}const Ci=["Webkit","Moz","ms"],Ai={};const{unit:Ni,unitRatio:Pi,unitPrecision:ji}={unit:"rem",unitRatio:10/320,unitPrecision:5},Li=(Ii=Ni,qi=Pi,Mi=ji,e=>e.replace(he,((e,t)=>{if(!t)return e;if(1===qi)return`${t}${Ii}`;const n=function(e,t){const n=Math.pow(10,t+1),o=Math.floor(e*n);return 10*Math.round(o/10)/n}(parseFloat(t)*qi,Mi);return 0===n?"0":`${n}${Ii}`})));var Ii,qi,Mi;const Bi=e=>P(e)?Li(e):e,Ri="http://www.w3.org/1999/xlink";function Di(e,t,n,o){e.addEventListener(t,n,o)}function $i(e,t,n,o,r=null){const i=e._vei||(e._vei={}),a=i[t];if(o&&a)a.value=o;else{const[n,s]=function(e){let t;if(Fi.test(e)){let n;for(t={};n=e.match(Fi);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[":"===e[2]?e.slice(3):z(e.slice(2)),t]}(t);if(o){const a=i[t]=function(e,t){const n=e=>{if(e._vts){if(e._vts<=n.attached)return}else e._vts=Date.now();const o=t&&t.proxy,r=o&&o.$nne,{value:i}=n;if(r&&S(i)){const n=zi(e,i);for(let o=0;o<n.length;o++){const i=n[o];hn(i,t,5,i.__wwe?[e]:r(e))}}else hn(zi(e,i),t,5,r&&!i.__wwe?r(e,i,t):[e])};return n.value=e,n.attached=(()=>Ui||(Hi.then((()=>Ui=0)),Ui=Date.now()))(),n}(o,r);Di(e,n,a,s)}else a&&(!function(e,t,n,o){e.removeEventListener(t,n,o)}(e,n,a,s),i[t]=void 0)}}const Fi=/(?:Once|Passive|Capture)$/;let Ui=0;const Hi=Promise.resolve();function zi(e,t){if(S(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map((e=>{const t=t=>!t._stopped&&e&&e(t);return t.__wwe=e.__wwe,t}))}return t}const Vi=/^on[a-z]/;const Wi="transition",Yi=(e,{slots:t})=>bi(oo,function(e){const t={};for(const x in e)x in Ki||(t[x]=e[x]);if(!1===e.css)return t;const{name:n="v",type:o,duration:r,enterFromClass:i=`${n}-enter-from`,enterActiveClass:a=`${n}-enter-active`,enterToClass:s=`${n}-enter-to`,appearFromClass:l=i,appearActiveClass:u=a,appearToClass:c=s,leaveFromClass:f=`${n}-leave-from`,leaveActiveClass:d=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=function(e){if(null==e)return null;if(L(e))return[Zi(e.enter),Zi(e.leave)];{const t=Zi(e);return[t,t]}}(r),g=h&&h[0],m=h&&h[1],{onBeforeEnter:v,onEnter:y,onEnterCancelled:b,onLeave:_,onLeaveCancelled:w,onBeforeAppear:k=v,onAppear:O=y,onAppearCancelled:T=b}=t,S=(e,t,n)=>{Qi(e,t?c:s),Qi(e,t?u:a),n&&n()},E=(e,t)=>{e._isLeaving=!1,Qi(e,f),Qi(e,p),Qi(e,d),t&&t()},C=e=>(t,n)=>{const r=e?O:y,a=()=>S(t,e,n);Xi(r,[t,a]),ea((()=>{Qi(t,e?l:i),Ji(t,e?c:s),Gi(r)||na(t,o,g,a)}))};return x(t,{onBeforeEnter(e){Xi(v,[e]),Ji(e,i),Ji(e,a)},onBeforeAppear(e){Xi(k,[e]),Ji(e,l),Ji(e,u)},onEnter:C(!1),onAppear:C(!0),onLeave(e,t){e._isLeaving=!0;const n=()=>E(e,t);Ji(e,f),document.body.offsetHeight,Ji(e,d),ea((()=>{e._isLeaving&&(Qi(e,f),Ji(e,p),Gi(_)||na(e,o,m,n))})),Xi(_,[e,n])},onEnterCancelled(e){S(e,!1),Xi(b,[e])},onAppearCancelled(e){S(e,!0),Xi(T,[e])},onLeaveCancelled(e){E(e),Xi(w,[e])}})}(e),t);Yi.displayName="Transition";const Ki={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String};Yi.props=x({},no,Ki);const Xi=(e,t=[])=>{S(e)?e.forEach((e=>e(...t))):e&&e(...t)},Gi=e=>!!e&&(S(e)?e.some((e=>e.length>1)):e.length>1);function Zi(e){const t=(e=>{const t=P(e)?Number(e):NaN;return isNaN(t)?e:t})(e);return t}function Ji(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.add(t))),(e._vtc||(e._vtc=new Set)).add(t)}function Qi(e,t){t.split(/\s+/).forEach((t=>t&&e.classList.remove(t)));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function ea(e){requestAnimationFrame((()=>{requestAnimationFrame(e)}))}let ta=0;function na(e,t,n,o){const r=e._endId=++ta,i=()=>{r===e._endId&&o()};if(n)return setTimeout(i,n);const{type:a,timeout:s,propCount:l}=function(e,t){const n=window.getComputedStyle(e),o=e=>(n[e]||"").split(", "),r=o("transitionDelay"),i=o("transitionDuration"),a=oa(r,i),s=o("animationDelay"),l=o("animationDuration"),u=oa(s,l);let c=null,f=0,d=0;t===Wi?a>0&&(c=Wi,f=a,d=i.length):"animation"===t?u>0&&(c="animation",f=u,d=l.length):(f=Math.max(a,u),c=f>0?a>u?Wi:"animation":null,d=c?c===Wi?i.length:l.length:0);const p=c===Wi&&/\b(transform|all)(,|$)/.test(o("transitionProperty").toString());return{type:c,timeout:f,propCount:d,hasTransform:p}}(e,t);if(!a)return o();const u=a+"end";let c=0;const f=()=>{e.removeEventListener(u,d),i()},d=t=>{t.target===e&&++c>=l&&f()};setTimeout((()=>{c<l&&f()}),s+1),e.addEventListener(u,d)}function oa(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map(((t,n)=>ra(t)+ra(e[n]))))}function ra(e){return 1e3*Number(e.slice(0,-1).replace(",","."))}const ia=e=>{const t=e.props["onUpdate:modelValue"]||!1;return S(t)?e=>K(t,e):t};function aa(e){e.target.composing=!0}function sa(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const la={created(e,{modifiers:{lazy:t,trim:n,number:o}},r){e._assign=ia(r);const i=o||r.props&&"number"===r.props.type;Di(e,t?"change":"input",(t=>{if(t.target.composing)return;let o=e.value;n&&(o=o.trim()),i&&(o=G(o)),e._assign(o)})),n&&Di(e,"change",(()=>{e.value=e.value.trim()})),t||(Di(e,"compositionstart",aa),Di(e,"compositionend",sa),Di(e,"change",sa))},mounted(e,{value:t}){e.value=null==t?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:r}},i){if(e._assign=ia(i),e.composing)return;if(document.activeElement===e&&"range"!==e.type){if(n)return;if(o&&e.value.trim()===t)return;if((r||"number"===e.type)&&G(e.value)===t)return}const a=null==t?"":t;e.value!==a&&(e.value=a)}},ua={deep:!0,created(e,t,n){e._assign=ia(n),Di(e,"change",(()=>{const t=e._modelValue,n=ha(e),o=e.checked,r=e._assign;if(S(t)){const e=d(t,n),i=-1!==e;if(o&&!i)r(t.concat(n));else if(!o&&i){const n=[...t];n.splice(e,1),r(n)}}else if(C(t)){const e=new Set(t);o?e.add(n):e.delete(n),r(e)}else r(ga(e,o))}))},mounted:ca,beforeUpdate(e,t,n){e._assign=ia(n),ca(e,t,n)}};function ca(e,{value:t,oldValue:n},o){e._modelValue=t,S(t)?e.checked=d(t,o.props.value)>-1:C(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=f(t,ga(e,!0)))}const fa={created(e,{value:t},n){e.checked=f(t,n.props.value),e._assign=ia(n),Di(e,"change",(()=>{e._assign(ha(e))}))},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=ia(o),t!==n&&(e.checked=f(t,o.props.value))}},da={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const r=C(t);Di(e,"change",(()=>{const t=Array.prototype.filter.call(e.options,(e=>e.selected)).map((e=>n?G(ha(e)):ha(e)));e._assign(e.multiple?r?new Set(t):t:t[0])})),e._assign=ia(o)},mounted(e,{value:t}){pa(e,t)},beforeUpdate(e,t,n){e._assign=ia(n)},updated(e,{value:t}){pa(e,t)}};function pa(e,t){const n=e.multiple;if(!n||S(t)||C(t)){for(let o=0,r=e.options.length;o<r;o++){const r=e.options[o],i=ha(r);if(n)S(t)?r.selected=d(t,i)>-1:r.selected=t.has(i);else if(f(ha(r),t))return void(e.selectedIndex!==o&&(e.selectedIndex=o))}n||-1===e.selectedIndex||(e.selectedIndex=-1)}}function ha(e){return"_value"in e?e._value:e.value}function ga(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ma={created(e,t,n){va(e,t,n,null,"created")},mounted(e,t,n){va(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){va(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){va(e,t,n,o,"updated")}};function va(e,t,n,o,r){const i=function(e,t){switch(e){case"SELECT":return da;case"TEXTAREA":return la;default:switch(t){case"checkbox":return ua;case"radio":return fa;default:return la}}}(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,o)}const ya=["ctrl","shift","alt","meta"],ba={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&0!==e.button,middle:e=>"button"in e&&1!==e.button,right:e=>"button"in e&&2!==e.button,exact:(e,t)=>ya.some((n=>e[`${n}Key`]&&!t.includes(n)))},_a=(e,t)=>(n,...o)=>{for(let e=0;e<t.length;e++){const o=ba[t[e]];if(o&&o(n,t))return}return e(n,...o)},wa={beforeMount(e,{value:t},{transition:n}){e._vod="none"===e.style.display?"":e.style.display,n&&t?n.beforeEnter(e):xa(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),xa(e,!0),o.enter(e)):o.leave(e,(()=>{xa(e,!1)})):xa(e,t))},beforeUnmount(e,{value:t}){xa(e,t)}};function xa(e,t){e.style.display=t?e._vod:"none"}const ka=x({patchProp:(e,t,n,o,r=!1,i,a,s,l)=>{if(0===t.indexOf("change:"))return function(e,t,n,o=null){if(!n||!o)return;const r=t.replace("change:",""),{attrs:i}=o,a=i[r],s=(e.__wxsProps||(e.__wxsProps={}))[r];if(s===a)return;e.__wxsProps[r]=a;const l=o.proxy;Tn((()=>{n(a,s,l.$gcd(l,!0),l.$gcd(l,!1))}))}(e,t,o,a);"class"===t?function(e,t,n){const{__wxsAddClass:o,__wxsRemoveClass:r}=e;r&&r.length&&(t=(t||"").split(/\s+/).filter((e=>-1===r.indexOf(e))).join(" "),r.length=0),o&&o.length&&(t=(t||"")+" "+o.join(" "));const i=e._vtc;i&&(t=(t?[t,...i]:[...i]).join(" ")),null==t?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}(e,o,r):"style"===t?function(e,t,n){const o=e.style,r=P(n);if(n&&!r){if(t&&!P(t))for(const e in t)null==n[e]&&Ei(o,e,"");for(const e in n)Ei(o,e,n[e])}else{const i=o.display;r?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=i)}const{__wxsStyle:i}=e;if(i)for(const a in i)Ei(o,a,i[a])}(e,n,o):_(t)?w(t)||$i(e,t,0,o,a):("."===t[0]?(t=t.slice(1),1):"^"===t[0]?(t=t.slice(1),0):function(e,t,n,o){if(o)return"innerHTML"===t||"textContent"===t||!!(t in e&&Vi.test(t)&&N(n));if("spellcheck"===t||"draggable"===t||"translate"===t)return!1;if("form"===t)return!1;if("list"===t&&"INPUT"===e.tagName)return!1;if("type"===t&&"TEXTAREA"===e.tagName)return!1;if(Vi.test(t)&&P(n))return!1;return t in e}(e,t,o,r))?function(e,t,n,o,r,i,a){if("innerHTML"===t||"textContent"===t)return o&&a(o,r,i),void(e[t]=null==n?"":n);if("value"===t&&"PROGRESS"!==e.tagName&&!e.tagName.includes("-")){e._value=n;const o=null==n?"":n;return e.value===o&&"OPTION"!==e.tagName||(e.value=o),void(null==n&&e.removeAttribute(t))}let s=!1;if(""===n||null==n){const o=typeof e[t];"boolean"===o?n=c(n):null==n&&"string"===o?(n="",s=!0):"number"===o&&(n=0,s=!0)}try{e[t]=n}catch(l){}s&&e.removeAttribute(t)}(e,t,o,i,a,s,l):("true-value"===t?e._trueValue=o:"false-value"===t&&(e._falseValue=o),function(e,t,n,o,r){if(o&&t.startsWith("xlink:"))null==n?e.removeAttributeNS(Ri,t.slice(6,t.length)):e.setAttributeNS(Ri,t,n);else{const o=u(t);null==n||o&&!c(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}(e,t,o,r))},forcePatchProp:(e,t)=>0===t.indexOf("change:")||("class"===t&&e.__wxsClassChanged?(e.__wxsClassChanged=!1,!0):!("style"!==t||!e.__wxsStyleChanged)&&(e.__wxsStyleChanged=!1,!0))},Ti);let Oa;const Ta=(...e)=>{const t=(Oa||(Oa=Nr(ka))).createApp(...e),{mount:n}=t;return t.mount=e=>{const o=function(e){if(P(e)){return document.querySelector(e)}return e}(e);if(!o)return;const r=t._component;N(r)||r.render||r.template||(r.template=o.innerHTML),o.innerHTML="";const i=n(o,!1,o instanceof SVGElement);return o instanceof Element&&(o.removeAttribute("v-cloak"),o.setAttribute("data-v-app","")),i},t};const Sa=["{","}"];const Ea=/^(?:\d)+/,Ca=/^(?:\w)+/;const Aa=Object.prototype.hasOwnProperty,Na=(e,t)=>Aa.call(e,t),Pa=new class{constructor(){this._caches=Object.create(null)}interpolate(e,t,n=Sa){if(!t)return[e];let o=this._caches[e];return o||(o=function(e,[t,n]){const o=[];let r=0,i="";for(;r<e.length;){let a=e[r++];if(a===t){i&&o.push({type:"text",value:i}),i="";let t="";for(a=e[r++];void 0!==a&&a!==n;)t+=a,a=e[r++];const s=a===n,l=Ea.test(t)?"list":s&&Ca.test(t)?"named":"unknown";o.push({value:t,type:l})}else i+=a}return i&&o.push({type:"text",value:i}),o}(e,n),this._caches[e]=o),function(e,t){const n=[];let o=0;const r=Array.isArray(t)?"list":(i=t,null!==i&&"object"==typeof i?"named":"unknown");var i;if("unknown"===r)return n;for(;o<e.length;){const i=e[o];switch(i.type){case"text":n.push(i.value);break;case"list":n.push(t[parseInt(i.value,10)]);break;case"named":"named"===r&&n.push(t[i.value])}o++}return n}(o,t)}};function ja(e,t){if(!e)return;if(e=e.trim().replace(/_/g,"-"),t&&t[e])return e;if("chinese"===(e=e.toLowerCase()))return"zh-Hans";if(0===e.indexOf("zh"))return e.indexOf("-hans")>-1?"zh-Hans":e.indexOf("-hant")>-1?"zh-Hant":(n=e,["-tw","-hk","-mo","-cht"].find((e=>-1!==n.indexOf(e)))?"zh-Hant":"zh-Hans");var n;let o=["en","fr","es"];t&&Object.keys(t).length>0&&(o=Object.keys(t));const r=function(e,t){return t.find((t=>0===e.indexOf(t)))}(e,o);return r||void 0}class La{constructor({locale:e,fallbackLocale:t,messages:n,watcher:o,formater:r}){this.locale="en",this.fallbackLocale="en",this.message={},this.messages={},this.watchers=[],t&&(this.fallbackLocale=t),this.formater=r||Pa,this.messages=n||{},this.setLocale(e||"en"),o&&this.watchLocale(o)}setLocale(e){const t=this.locale;this.locale=ja(e,this.messages)||this.fallbackLocale,this.messages[this.locale]||(this.messages[this.locale]={}),this.message=this.messages[this.locale],t!==this.locale&&this.watchers.forEach((e=>{e(this.locale,t)}))}getLocale(){return this.locale}watchLocale(e){const t=this.watchers.push(e)-1;return()=>{this.watchers.splice(t,1)}}add(e,t,n=!0){const o=this.messages[e];o?n?Object.assign(o,t):Object.keys(t).forEach((e=>{Na(o,e)||(o[e]=t[e])})):this.messages[e]=t}f(e,t,n){return this.formater.interpolate(e,t,n).join("")}t(e,t,n){let o=this.message;return"string"==typeof t?(t=ja(t,this.messages))&&(o=this.messages[t]):n=t,Na(o,e)?this.formater.interpolate(o[e],n).join(""):(console.warn(`Cannot translate the value of keypath ${e}. Use the value of keypath as default.`),e)}}function Ia(e,t={},n,o){"string"!=typeof e&&([e,t]=[t,e]),"string"!=typeof e&&(e="undefined"!=typeof uni&&Nd?Nd():"undefined"!=typeof global&&global.getLocale?global.getLocale():"en"),"string"!=typeof n&&(n="undefined"!=typeof __uniConfig&&__uniConfig.fallbackLocale||"en");const r=new La({locale:e,fallbackLocale:n,messages:t,watcher:o});let i=(e,t)=>{{let e=!1;i=function(t,n){const o=Dm().$vm;return o&&(o.$locale,e||(e=!0,function(e,t){e.$watchLocale?e.$watchLocale((e=>{t.setLocale(e)})):e.$watch((()=>e.$locale),(e=>{t.setLocale(e)}))}(o,r))),r.t(t,n)}}return i(e,t)};return{i18n:r,f:(e,t,n)=>r.f(e,t,n),t:(e,t)=>i(e,t),add:(e,t,n=!0)=>r.add(e,t,n),watch:e=>r.watchLocale(e),getLocale:()=>r.getLocale(),setLocale:e=>r.setLocale(e)}}function qa(e,t){return e.indexOf(t[0])>-1}
- /*!
- * vue-router v4.1.6
- * (c) 2022 Eduardo San Martin Morote
- * @license MIT
- */const Ma="undefined"!=typeof window;const Ba=Object.assign;function Ra(e,t){const n={};for(const o in t){const r=t[o];n[o]=$a(r)?r.map(e):e(r)}return n}const Da=()=>{},$a=Array.isArray,Fa=/\/$/;function Ua(e,t,n="/"){let o,r={},i="",a="";const s=t.indexOf("#");let l=t.indexOf("?");return s<l&&s>=0&&(l=-1),l>-1&&(o=t.slice(0,l),i=t.slice(l+1,s>-1?s:t.length),r=e(i)),s>-1&&(o=o||t.slice(0,s),a=t.slice(s,t.length)),o=function(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let r,i,a=n.length-1;for(r=0;r<o.length;r++)if(i=o[r],"."!==i){if(".."!==i)break;a>1&&a--}return n.slice(0,a).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}(null!=o?o:t,n),{fullPath:o+(i&&"?")+i+a,path:o,query:r,hash:a}}function Ha(e,t){return t&&e.toLowerCase().startsWith(t.toLowerCase())?e.slice(t.length)||"/":e}function za(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Va(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!Wa(e[n],t[n]))return!1;return!0}function Wa(e,t){return $a(e)?Ya(e,t):$a(t)?Ya(t,e):e===t}function Ya(e,t){return $a(t)?e.length===t.length&&e.every(((e,n)=>e===t[n])):1===e.length&&e[0]===t}var Ka,Xa,Ga,Za;function Ja(e){if(!e)if(Ma){const t=document.querySelector("base");e=(e=t&&t.getAttribute("href")||"/").replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return"/"!==e[0]&&"#"!==e[0]&&(e="/"+e),e.replace(Fa,"")}(Xa=Ka||(Ka={})).pop="pop",Xa.push="push",(Za=Ga||(Ga={})).back="back",Za.forward="forward",Za.unknown="";const Qa=/^[^#]+#/;function es(e,t){return e.replace(Qa,"#")+t}const ts=()=>({left:window.pageXOffset,top:window.pageYOffset});function ns(e){let t;if("el"in e){const n=e.el,o="string"==typeof n&&n.startsWith("#"),r="string"==typeof n?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=function(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(null!=t.left?t.left:window.pageXOffset,null!=t.top?t.top:window.pageYOffset)}function os(e,t){return(history.state?history.state.position-t:-1)+e}const rs=new Map;function is(e,t){const{pathname:n,search:o,hash:r}=t,i=e.indexOf("#");if(i>-1){let t=r.includes(e.slice(i))?e.slice(i).length:1,n=r.slice(t);return"/"!==n[0]&&(n="/"+n),Ha(n,"")}return Ha(n,e)+o+r}function as(e,t,n,o=!1,r=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:r?ts():null}}function ss(e){const{history:t,location:n}=window,o={value:is(e,n)},r={value:t.state};function i(o,i,a){const s=e.indexOf("#"),l=s>-1?(n.host&&document.querySelector("base")?e:e.slice(s))+o:location.protocol+"//"+location.host+e+o;try{t[a?"replaceState":"pushState"](i,"",l),r.value=i}catch(u){console.error(u),n[a?"replace":"assign"](l)}}return r.value||i(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0),{location:o,state:r,push:function(e,n){const a=Ba({},r.value,t.state,{forward:e,scroll:ts()});i(a.current,a,!0),i(e,Ba({},as(o.value,e,null),{position:a.position+1},n),!1),o.value=e},replace:function(e,n){i(e,Ba({},t.state,as(r.value.back,e,r.value.forward,!0),n,{position:r.value.position}),!0),o.value=e}}}function ls(e){const t=ss(e=Ja(e)),n=function(e,t,n,o){let r=[],i=[],a=null;const s=({state:i})=>{const s=is(e,location),l=n.value,u=t.value;let c=0;if(i){if(n.value=s,t.value=i,a&&a===l)return void(a=null);c=u?i.position-u.position:0}else o(s);r.forEach((e=>{e(n.value,l,{delta:c,type:Ka.pop,direction:c?c>0?Ga.forward:Ga.back:Ga.unknown})}))};function l(){const{history:e}=window;e.state&&e.replaceState(Ba({},e.state,{scroll:ts()}),"")}return window.addEventListener("popstate",s),window.addEventListener("beforeunload",l),{pauseListeners:function(){a=n.value},listen:function(e){r.push(e);const t=()=>{const t=r.indexOf(e);t>-1&&r.splice(t,1)};return i.push(t),t},destroy:function(){for(const e of i)e();i=[],window.removeEventListener("popstate",s),window.removeEventListener("beforeunload",l)}}}(e,t.state,t.location,t.replace);const o=Ba({location:"",base:e,go:function(e,t=!0){t||n.pauseListeners(),history.go(e)},createHref:es.bind(null,e)},t,n);return Object.defineProperty(o,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(o,"state",{enumerable:!0,get:()=>t.state.value}),o}function us(e){return"string"==typeof e||"symbol"==typeof e}const cs={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},fs=Symbol("");var ds,ps;function hs(e,t){return Ba(new Error,{type:e,[fs]:!0},t)}function gs(e,t){return e instanceof Error&&fs in e&&(null==t||!!(e.type&t))}(ps=ds||(ds={}))[ps.aborted=4]="aborted",ps[ps.cancelled=8]="cancelled",ps[ps.duplicated=16]="duplicated";const ms={sensitive:!1,strict:!1,start:!0,end:!0},vs=/[.+*?^${}()[\]/\\]/g;function ys(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;n++}return e.length<t.length?1===e.length&&80===e[0]?-1:1:e.length>t.length?1===t.length&&80===t[0]?1:-1:0}function bs(e,t){let n=0;const o=e.score,r=t.score;for(;n<o.length&&n<r.length;){const e=ys(o[n],r[n]);if(e)return e;n++}if(1===Math.abs(r.length-o.length)){if(_s(o))return 1;if(_s(r))return-1}return r.length-o.length}function _s(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const ws={type:0,value:""},xs=/[a-zA-Z0-9_]/;function ks(e,t,n){const o=function(e,t){const n=Ba({},ms,t),o=[];let r=n.start?"^":"";const i=[];for(const l of e){const e=l.length?[]:[90];n.strict&&!l.length&&(r+="/");for(let t=0;t<l.length;t++){const o=l[t];let a=40+(n.sensitive?.25:0);if(0===o.type)t||(r+="/"),r+=o.value.replace(vs,"\\$&"),a+=40;else if(1===o.type){const{value:e,repeatable:n,optional:u,regexp:c}=o;i.push({name:e,repeatable:n,optional:u});const f=c||"[^/]+?";if("[^/]+?"!==f){a+=10;try{new RegExp(`(${f})`)}catch(s){throw new Error(`Invalid custom RegExp for param "${e}" (${f}): `+s.message)}}let d=n?`((?:${f})(?:/(?:${f}))*)`:`(${f})`;t||(d=u&&l.length<2?`(?:/${d})`:"/"+d),u&&(d+="?"),r+=d,a+=20,u&&(a+=-8),n&&(a+=-20),".*"===f&&(a+=-50)}e.push(a)}o.push(e)}if(n.strict&&n.end){const e=o.length-1;o[e][o[e].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&(r+="(?:/|$)");const a=new RegExp(r,n.sensitive?"":"i");return{re:a,score:o,keys:i,parse:function(e){const t=e.match(a),n={};if(!t)return null;for(let o=1;o<t.length;o++){const e=t[o]||"",r=i[o-1];n[r.name]=e&&r.repeatable?e.split("/"):e}return n},stringify:function(t){let n="",o=!1;for(const r of e){o&&n.endsWith("/")||(n+="/"),o=!1;for(const e of r)if(0===e.type)n+=e.value;else if(1===e.type){const{value:i,repeatable:a,optional:s}=e,l=i in t?t[i]:"";if($a(l)&&!a)throw new Error(`Provided param "${i}" is an array but it is not repeatable (* or + modifiers)`);const u=$a(l)?l.join("/"):l;if(!u){if(!s)throw new Error(`Missing required param "${i}"`);r.length<2&&(n.endsWith("/")?n=n.slice(0,-1):o=!0)}n+=u}}return n||"/"}}}(function(e){if(!e)return[[]];if("/"===e)return[[ws]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(e){throw new Error(`ERR (${n})/"${u}": ${e}`)}let n=0,o=n;const r=[];let i;function a(){i&&r.push(i),i=[]}let s,l=0,u="",c="";function f(){u&&(0===n?i.push({type:0,value:u}):1===n||2===n||3===n?(i.length>1&&("*"===s||"+"===s)&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),i.push({type:1,value:u,regexp:c,repeatable:"*"===s||"+"===s,optional:"*"===s||"?"===s})):t("Invalid state to consume buffer"),u="")}function d(){u+=s}for(;l<e.length;)if(s=e[l++],"\\"!==s||2===n)switch(n){case 0:"/"===s?(u&&f(),a()):":"===s?(f(),n=1):d();break;case 4:d(),n=o;break;case 1:"("===s?n=2:xs.test(s)?d():(f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--);break;case 2:")"===s?"\\"==c[c.length-1]?c=c.slice(0,-1)+s:n=3:c+=s;break;case 3:f(),n=0,"*"!==s&&"?"!==s&&"+"!==s&&l--,c="";break;default:t("Unknown state")}else o=n,n=4;return 2===n&&t(`Unfinished custom RegExp for param "${u}"`),f(),a(),r}(e.path),n),r=Ba(o,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Os(e,t){const n=[],o=new Map;function r(e,n,o){const s=!o,l=function(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Ss(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}}}(e);l.aliasOf=o&&o.record;const u=As(t,e),c=[l];if("alias"in e){const t="string"==typeof e.alias?[e.alias]:e.alias;for(const e of t)c.push(Ba({},l,{components:o?o.record.components:l.components,path:e,aliasOf:o?o.record:l}))}let f,d;for(const t of c){const{path:c}=t;if(n&&"/"!==c[0]){const e=n.record.path,o="/"===e[e.length-1]?"":"/";t.path=n.record.path+(c&&o+c)}if(f=ks(t,n,u),o?o.alias.push(f):(d=d||f,d!==f&&d.alias.push(f),s&&e.name&&!Es(f)&&i(e.name)),l.children){const e=l.children;for(let t=0;t<e.length;t++)r(e[t],f,o&&o.children[t])}o=o||f,(f.record.components&&Object.keys(f.record.components).length||f.record.name||f.record.redirect)&&a(f)}return d?()=>{i(d)}:Da}function i(e){if(us(e)){const t=o.get(e);t&&(o.delete(e),n.splice(n.indexOf(t),1),t.children.forEach(i),t.alias.forEach(i))}else{const t=n.indexOf(e);t>-1&&(n.splice(t,1),e.record.name&&o.delete(e.record.name),e.children.forEach(i),e.alias.forEach(i))}}function a(e){let t=0;for(;t<n.length&&bs(e,n[t])>=0&&(e.record.path!==n[t].record.path||!Ns(e,n[t]));)t++;n.splice(t,0,e),e.record.name&&!Es(e)&&o.set(e.record.name,e)}return t=As({strict:!1,end:!0,sensitive:!1},t),e.forEach((e=>r(e))),{addRoute:r,resolve:function(e,t){let r,i,a,s={};if("name"in e&&e.name){if(r=o.get(e.name),!r)throw hs(1,{location:e});a=r.record.name,s=Ba(Ts(t.params,r.keys.filter((e=>!e.optional)).map((e=>e.name))),e.params&&Ts(e.params,r.keys.map((e=>e.name)))),i=r.stringify(s)}else if("path"in e)i=e.path,r=n.find((e=>e.re.test(i))),r&&(s=r.parse(i),a=r.record.name);else{if(r=t.name?o.get(t.name):n.find((e=>e.re.test(t.path))),!r)throw hs(1,{location:e,currentLocation:t});a=r.record.name,s=Ba({},t.params,e.params),i=r.stringify(s)}const l=[];let u=r;for(;u;)l.unshift(u.record),u=u.parent;return{name:a,path:i,params:s,matched:l,meta:Cs(l)}},removeRoute:i,getRoutes:function(){return n},getRecordMatcher:function(e){return o.get(e)}}}function Ts(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function Ss(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]="boolean"==typeof n?n:n[o];return t}function Es(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Cs(e){return e.reduce(((e,t)=>Ba(e,t.meta)),{})}function As(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function Ns(e,t){return t.children.some((t=>t===e||Ns(e,t)))}const Ps=/#/g,js=/&/g,Ls=/\//g,Is=/=/g,qs=/\?/g,Ms=/\+/g,Bs=/%5B/g,Rs=/%5D/g,Ds=/%5E/g,$s=/%60/g,Fs=/%7B/g,Us=/%7C/g,Hs=/%7D/g,zs=/%20/g;function Vs(e){return encodeURI(""+e).replace(Us,"|").replace(Bs,"[").replace(Rs,"]")}function Ws(e){return Vs(e).replace(Ms,"%2B").replace(zs,"+").replace(Ps,"%23").replace(js,"%26").replace($s,"`").replace(Fs,"{").replace(Hs,"}").replace(Ds,"^")}function Ys(e){return null==e?"":function(e){return Vs(e).replace(Ps,"%23").replace(qs,"%3F")}(e).replace(Ls,"%2F")}function Ks(e){try{return decodeURIComponent(""+e)}catch(t){}return""+e}function Xs(e){const t={};if(""===e||"?"===e)return t;const n=("?"===e[0]?e.slice(1):e).split("&");for(let o=0;o<n.length;++o){const e=n[o].replace(Ms," "),r=e.indexOf("="),i=Ks(r<0?e:e.slice(0,r)),a=r<0?null:Ks(e.slice(r+1));if(i in t){let e=t[i];$a(e)||(e=t[i]=[e]),e.push(a)}else t[i]=a}return t}function Gs(e){let t="";for(let n in e){const o=e[n];if(n=Ws(n).replace(Is,"%3D"),null==o){void 0!==o&&(t+=(t.length?"&":"")+n);continue}($a(o)?o.map((e=>e&&Ws(e))):[o&&Ws(o)]).forEach((e=>{void 0!==e&&(t+=(t.length?"&":"")+n,null!=e&&(t+="="+e))}))}return t}function Zs(e){const t={};for(const n in e){const o=e[n];void 0!==o&&(t[n]=$a(o)?o.map((e=>null==e?null:""+e)):null==o?o:""+o)}return t}const Js=Symbol(""),Qs=Symbol(""),el=Symbol(""),tl=Symbol(""),nl=Symbol("");function ol(){let e=[];return{add:function(t){return e.push(t),()=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)}},list:()=>e,reset:function(){e=[]}}}function rl(e,t,n,o,r){const i=o&&(o.enterCallbacks[r]=o.enterCallbacks[r]||[]);return()=>new Promise(((a,s)=>{const l=e=>{var l;!1===e?s(hs(4,{from:n,to:t})):e instanceof Error?s(e):"string"==typeof(l=e)||l&&"object"==typeof l?s(hs(2,{from:t,to:e})):(i&&o.enterCallbacks[r]===i&&"function"==typeof e&&i.push(e),a())},u=e.call(o&&o.instances[r],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch((e=>s(e)))}))}function il(e,t,n,o){const r=[];for(const a of e)for(const e in a.components){let s=a.components[e];if("beforeRouteEnter"===t||a.instances[e])if("object"==typeof(i=s)||"displayName"in i||"props"in i||"__vccOpts"in i){const i=(s.__vccOpts||s)[t];i&&r.push(rl(i,n,o,a,e))}else{let i=s();r.push((()=>i.then((r=>{if(!r)return Promise.reject(new Error(`Couldn't resolve component "${e}" at "${a.path}"`));const i=(s=r).__esModule||"Module"===s[Symbol.toStringTag]?r.default:r;var s;a.components[e]=i;const l=(i.__vccOpts||i)[t];return l&&rl(l,n,o,a,e)()}))))}}var i;return r}function al(e){const t=Yn(el),n=Yn(tl),o=yi((()=>t.resolve(an(e.to)))),r=yi((()=>{const{matched:e}=o.value,{length:t}=e,r=e[t-1],i=n.matched;if(!r||!i.length)return-1;const a=i.findIndex(za.bind(null,r));if(a>-1)return a;const s=ll(e[t-2]);return t>1&&ll(r)===s&&i[i.length-1].path!==s?i.findIndex(za.bind(null,e[t-2])):a})),i=yi((()=>r.value>-1&&function(e,t){for(const n in t){const o=t[n],r=e[n];if("string"==typeof o){if(o!==r)return!1}else if(!$a(r)||r.length!==o.length||o.some(((e,t)=>e!==r[t])))return!1}return!0}(n.params,o.value.params))),a=yi((()=>r.value>-1&&r.value===n.matched.length-1&&Va(n.params,o.value.params)));return{route:o,href:yi((()=>o.value.href)),isActive:i,isExactActive:a,navigate:function(n={}){return function(e){if(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)return;if(e.defaultPrevented)return;if(void 0!==e.button&&0!==e.button)return;if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}e.preventDefault&&e.preventDefault();return!0}(n)?t[an(e.replace)?"replace":"push"](an(e.to)).catch(Da):Promise.resolve()}}}const sl=co({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:al,setup(e,{slots:t}){const n=Ft(al(e)),{options:o}=Yn(el),r=yi((()=>({[ul(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[ul(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive})));return()=>{const o=t.default&&t.default(n);return e.custom?o:bi("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}});function ll(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const ul=(e,t,n)=>null!=e?e:null!=t?t:n;function cl(e,t){if(!e)return null;const n=e(t);return 1===n.length?n[0]:n}const fl=co({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=Yn(nl),r=yi((()=>e.route||o.value)),i=Yn(Qs,0),a=yi((()=>{let e=an(i);const{matched:t}=r.value;let n;for(;(n=t[e])&&!n.components;)e++;return e})),s=yi((()=>r.value.matched[a.value]));Wn(Qs,yi((()=>a.value+1))),Wn(Js,s),Wn(nl,r);const l=tn();return Gn((()=>[l.value,s.value,e.name]),(([e,t,n],[o,r,i])=>{t&&(t.instances[n]=e,r&&r!==t&&e&&e===o&&(t.leaveGuards.size||(t.leaveGuards=r.leaveGuards),t.updateGuards.size||(t.updateGuards=r.updateGuards))),!e||!t||r&&za(t,r)&&o||(t.enterCallbacks[n]||[]).forEach((t=>t(e)))}),{flush:"post"}),()=>{const o=r.value,i=e.name,a=s.value,u=a&&a.components[i];if(!u)return cl(n.default,{Component:u,route:o});const c=a.props[i],f=c?!0===c?o.params:"function"==typeof c?c(o):c:null,d=bi(u,Ba({},f,t,{onVnodeUnmounted:e=>{e.component.isUnmounted&&(a.instances[i]=null)},ref:l}));return cl(n.default,{Component:d,route:o})||d}}});function dl(e){const t=Os(e.routes,e),n=e.parseQuery||Xs,o=e.stringifyQuery||Gs,r=e.history,i=ol(),a=ol(),s=ol(),l=nn(cs);let u=cs;Ma&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=Ra.bind(null,(e=>""+e)),f=Ra.bind(null,Ys),d=Ra.bind(null,Ks);function p(e,i){if(i=Ba({},i||l.value),"string"==typeof e){const o=Ua(n,e,i.path),a=t.resolve({path:o.path},i),s=r.createHref(o.fullPath);return Ba(o,a,{params:d(a.params),hash:Ks(o.hash),redirectedFrom:void 0,href:s})}let a;if("path"in e)a=Ba({},e,{path:Ua(n,e.path,i.path).path});else{const t=Ba({},e.params);for(const e in t)null==t[e]&&delete t[e];a=Ba({},e,{params:f(e.params)}),i.params=f(i.params)}const s=t.resolve(a,i),u=e.hash||"";s.params=c(d(s.params));const p=function(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}(o,Ba({},e,{hash:(h=u,Vs(h).replace(Fs,"{").replace(Hs,"}").replace(Ds,"^")),path:s.path}));var h;const g=r.createHref(p);return Ba({fullPath:p,hash:u,query:o===Gs?Zs(e.query):e.query||{}},s,{redirectedFrom:void 0,href:g})}function h(e){return"string"==typeof e?Ua(n,e,l.value.path):Ba({},e)}function g(e,t){if(u!==e)return hs(8,{from:t,to:e})}function m(e){return y(e)}function v(e){const t=e.matched[e.matched.length-1];if(t&&t.redirect){const{redirect:n}=t;let o="function"==typeof n?n(e):n;return"string"==typeof o&&(o=o.includes("?")||o.includes("#")?o=h(o):{path:o},o.params={}),Ba({query:e.query,hash:e.hash,params:"path"in o?{}:e.params},o)}}function y(e,t){const n=u=p(e),r=l.value,i=e.state,a=e.force,s=!0===e.replace,c=v(n);if(c)return y(Ba(h(c),{state:"object"==typeof c?Ba({},i,c.state):i,force:a,replace:s}),t||n);const f=n;let d;return f.redirectedFrom=t,!a&&function(e,t,n){const o=t.matched.length-1,r=n.matched.length-1;return o>-1&&o===r&&za(t.matched[o],n.matched[r])&&Va(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}(o,r,n)&&(d=hs(16,{to:f,from:r}),N(r,r,!0,!1)),(d?Promise.resolve(d):_(f,r)).catch((e=>gs(e)?gs(e,2)?e:A(e):C(e,f,r))).then((e=>{if(e){if(gs(e,2))return y(Ba({replace:s},h(e.to),{state:"object"==typeof e.to?Ba({},i,e.to.state):i,force:a}),t||f)}else e=x(f,r,!0,s,i);return w(f,r,e),e}))}function b(e,t){const n=g(e,t);return n?Promise.reject(n):Promise.resolve()}function _(e,t){let n;const[o,r,s]=function(e,t){const n=[],o=[],r=[],i=Math.max(t.matched.length,e.matched.length);for(let a=0;a<i;a++){const i=t.matched[a];i&&(e.matched.find((e=>za(e,i)))?o.push(i):n.push(i));const s=e.matched[a];s&&(t.matched.find((e=>za(e,s)))||r.push(s))}return[n,o,r]}(e,t);n=il(o.reverse(),"beforeRouteLeave",e,t);for(const i of o)i.leaveGuards.forEach((o=>{n.push(rl(o,e,t))}));const l=b.bind(null,e,t);return n.push(l),pl(n).then((()=>{n=[];for(const o of i.list())n.push(rl(o,e,t));return n.push(l),pl(n)})).then((()=>{n=il(r,"beforeRouteUpdate",e,t);for(const o of r)o.updateGuards.forEach((o=>{n.push(rl(o,e,t))}));return n.push(l),pl(n)})).then((()=>{n=[];for(const o of e.matched)if(o.beforeEnter&&!t.matched.includes(o))if($a(o.beforeEnter))for(const r of o.beforeEnter)n.push(rl(r,e,t));else n.push(rl(o.beforeEnter,e,t));return n.push(l),pl(n)})).then((()=>(e.matched.forEach((e=>e.enterCallbacks={})),n=il(s,"beforeRouteEnter",e,t),n.push(l),pl(n)))).then((()=>{n=[];for(const o of a.list())n.push(rl(o,e,t));return n.push(l),pl(n)})).catch((e=>gs(e,8)?e:Promise.reject(e)))}function w(e,t,n){for(const o of s.list())o(e,t,n)}function x(e,t,n,o,i){const a=g(e,t);if(a)return a;const s=t===cs,u=Ma?history.state:{};n&&(o||s?r.replace(e.fullPath,Ba({scroll:s&&u&&u.scroll},i)):r.push(e.fullPath,i)),l.value=e,N(e,t,n,s),A()}let k;function O(){k||(k=r.listen(((e,t,n)=>{if(!I.listening)return;const o=p(e),i=v(o);if(i)return void y(Ba(i,{replace:!0}),o).catch(Da);u=o;const a=l.value;var s,c;Ma&&(s=os(a.fullPath,n.delta),c=ts(),rs.set(s,c)),_(o,a).catch((e=>gs(e,12)?e:gs(e,2)?(y(e.to,o).then((e=>{gs(e,20)&&!n.delta&&n.type===Ka.pop&&r.go(-1,!1)})).catch(Da),Promise.reject()):(n.delta&&r.go(-n.delta,!1),C(e,o,a)))).then((e=>{(e=e||x(o,a,!1))&&(n.delta&&!gs(e,8)?r.go(-n.delta,!1):n.type===Ka.pop&&gs(e,20)&&r.go(-1,!1)),w(o,a,e)})).catch(Da)})))}let T,S=ol(),E=ol();function C(e,t,n){A(e);const o=E.list();return o.length?o.forEach((o=>o(e,t,n))):console.error(e),Promise.reject(e)}function A(e){return T||(T=!e,O(),S.list().forEach((([t,n])=>e?n(e):t())),S.reset()),e}function N(t,n,o,r){const{scrollBehavior:i}=e;if(!Ma||!i)return Promise.resolve();const a=!o&&function(e){const t=rs.get(e);return rs.delete(e),t}(os(t.fullPath,0))||(r||!o)&&history.state&&history.state.scroll||null;return Tn().then((()=>i(t,n,a))).then((e=>e&&ns(e))).catch((e=>C(e,t,n)))}const P=e=>r.go(e);let j;const L=new Set,I={currentRoute:l,listening:!0,addRoute:function(e,n){let o,r;return us(e)?(o=t.getRecordMatcher(e),r=n):r=e,t.addRoute(r,o)},removeRoute:function(e){const n=t.getRecordMatcher(e);n&&t.removeRoute(n)},hasRoute:function(e){return!!t.getRecordMatcher(e)},getRoutes:function(){return t.getRoutes().map((e=>e.record))},resolve:p,options:e,push:m,replace:function(e){return m(Ba(h(e),{replace:!0}))},go:P,back:()=>P(-1),forward:()=>P(1),beforeEach:i.add,beforeResolve:a.add,afterEach:s.add,onError:E.add,isReady:function(){return T&&l.value!==cs?Promise.resolve():new Promise(((e,t)=>{S.add([e,t])}))},install(e){e.component("RouterLink",sl),e.component("RouterView",fl),e.config.globalProperties.$router=this,Object.defineProperty(e.config.globalProperties,"$route",{enumerable:!0,get:()=>an(l)}),Ma&&!j&&l.value===cs&&(j=!0,m(r.location).catch((e=>{})));const t={};for(const o in cs)t[o]=yi((()=>l.value[o]));e.provide(el,this),e.provide(tl,Ft(t)),e.provide(nl,l);const n=e.unmount;L.add(e),e.unmount=function(){L.delete(e),L.size<1&&(u=cs,k&&k(),k=null,l.value=cs,j=!1,T=!1),n()}}};return I}function pl(e){return e.reduce(((e,t)=>e.then((()=>t()))),Promise.resolve())}function hl(){return Yn(tl)}const gl=ue((()=>"undefined"!=typeof __uniConfig&&__uniConfig.locales&&!!Object.keys(__uniConfig.locales).length));let ml;function vl(e){return qa(e,Q)?_l().f(e,function(){const e=Nd(),t=__uniConfig.locales;return t[e]||t[__uniConfig.fallbackLocale]||t.en||{}}(),Q):e}function yl(e,t){if(1===t.length){if(e){const n=e=>P(e)&&qa(e,Q),o=t[0];let r=[];if(S(e)&&(r=e.filter((e=>n(e[o])))).length)return r;const i=e[t[0]];if(n(i))return e}return}const n=t.shift();return yl(e&&e[n],t)}function bl(e,t){const n=yl(e,t);if(!n)return!1;const o=t[t.length-1];if(S(n))n.forEach((e=>bl(e,[o])));else{let e=n[o];Object.defineProperty(n,o,{get:()=>vl(e),set(t){e=t}})}return!0}function _l(){if(!ml){let e;if(e=navigator.cookieEnabled&&window.localStorage&&localStorage.UNI_LOCALE||__uniConfig.locale||navigator.language,ml=Ia(e),gl()){const t=Object.keys(__uniConfig.locales||{});t.length&&t.forEach((e=>ml.add(e,__uniConfig.locales[e]))),ml.setLocale(e)}}return ml}function wl(e,t,n){return t.reduce(((t,o,r)=>(t[e+o]=n[r],t)),{})}const xl=ue((()=>{const e="uni.async.",t=["error"];_l().add("en",wl(e,t,["The connection timed out, click the screen to try again."]),!1),_l().add("es",wl(e,t,["Se agotó el tiempo de conexión, haga clic en la pantalla para volver a intentarlo."]),!1),_l().add("fr",wl(e,t,["La connexion a expiré, cliquez sur l'écran pour réessayer."]),!1),_l().add("zh-Hans",wl(e,t,["连接服务器超时,点击屏幕重试"]),!1),_l().add("zh-Hant",wl(e,t,["連接服務器超時,點擊屏幕重試"]),!1)})),kl=ue((()=>{const e="uni.showToast.",t=["unpaired"];_l().add("en",wl(e,t,["Please note showToast must be paired with hideToast"]),!1),_l().add("es",wl(e,t,["Tenga en cuenta que showToast debe estar emparejado con hideToast"]),!1),_l().add("fr",wl(e,t,["Veuillez noter que showToast doit être associé à hideToast"]),!1),_l().add("zh-Hans",wl(e,t,["请注意 showToast 与 hideToast 必须配对使用"]),!1),_l().add("zh-Hant",wl(e,t,["請注意 showToast 與 hideToast 必須配對使用"]),!1)})),Ol=ue((()=>{const e="uni.showLoading.",t=["unpaired"];_l().add("en",wl(e,t,["Please note showLoading must be paired with hideLoading"]),!1),_l().add("es",wl(e,t,["Tenga en cuenta que showLoading debe estar emparejado con hideLoading"]),!1),_l().add("fr",wl(e,t,["Veuillez noter que showLoading doit être associé à hideLoading"]),!1),_l().add("zh-Hans",wl(e,t,["请注意 showLoading 与 hideLoading 必须配对使用"]),!1),_l().add("zh-Hant",wl(e,t,["請注意 showLoading 與 hideLoading 必須配對使用"]),!1)})),Tl=ue((()=>{const e="uni.showModal.",t=["cancel","confirm"];_l().add("en",wl(e,t,["Cancel","OK"]),!1),_l().add("es",wl(e,t,["Cancelar","OK"]),!1),_l().add("fr",wl(e,t,["Annuler","OK"]),!1),_l().add("zh-Hans",wl(e,t,["取消","确定"]),!1),_l().add("zh-Hant",wl(e,t,["取消","確定"]),!1)})),Sl=ue((()=>{const e="uni.chooseFile.",t=["notUserActivation"];_l().add("en",wl(e,t,["File chooser dialog can only be shown with a user activation"]),!1),_l().add("es",wl(e,t,["El cuadro de diálogo del selector de archivos solo se puede mostrar con la activación del usuario"]),!1),_l().add("fr",wl(e,t,["La boîte de dialogue du sélecteur de fichier ne peut être affichée qu'avec une activation par l'utilisateur"]),!1),_l().add("zh-Hans",wl(e,t,["文件选择器对话框只能在由用户激活时显示"]),!1),_l().add("zh-Hant",wl(e,t,["文件選擇器對話框只能在由用戶激活時顯示"]),!1)})),El=ue((()=>{const e="uni.setClipboardData.",t=["success","fail"];_l().add("en",wl(e,t,["Content copied","Copy failed, please copy manually"]),!1),_l().add("es",wl(e,t,["Contenido copiado","Error al copiar, copie manualmente"]),!1),_l().add("fr",wl(e,t,["Contenu copié","Échec de la copie, copiez manuellement"]),!1),_l().add("zh-Hans",wl(e,t,["内容已复制","复制失败,请手动复制"]),!1),_l().add("zh-Hant",wl(e,t,["內容已復制","復制失敗,請手動復製"]),!1)})),Cl=ue((()=>{const e="uni.video.",t=["danmu","volume"];_l().add("en",wl(e,t,["Danmu","Volume"]),!1),_l().add("es",wl(e,t,["Danmu","Volumen"]),!1),_l().add("fr",wl(e,t,["Danmu","Le Volume"]),!1),_l().add("zh-Hans",wl(e,t,["弹幕","音量"]),!1),_l().add("zh-Hant",wl(e,t,["彈幕","音量"]),!1)}));function Al(e){const t=new Ae;return{on:(e,n)=>t.on(e,n),once:(e,n)=>t.once(e,n),off:(e,n)=>t.off(e,n),emit:(e,...n)=>t.emit(e,...n),subscribe(n,o,r=!1){t[r?"once":"on"](`${e}.${n}`,o)},unsubscribe(n,o){t.off(`${e}.${n}`,o)},subscribeHandler(n,o,r){t.emit(`${e}.${n}`,o,r)}}}let Nl=1;const Pl=Object.create(null);function jl(e,t){return e+"."+t}function Ll(e,t,n){t=jl(e,t),Pl[t]||(Pl[t]=n)}function Il({id:e,name:t,args:n},o){t=jl(o,t);const r=t=>{e&&fb.publishHandler("invokeViewApi."+e,t)},i=Pl[t];i?i(n,r):r({})}const ql=x(Al("service"),{invokeServiceMethod:(e,t,n)=>{const{subscribe:o,publishHandler:r}=fb,i=n?Nl++:0;n&&o("invokeServiceApi."+i,n,!0),r("invokeServiceApi",{id:i,name:e,args:t})}}),Ml=ge(!0);let Bl;function Rl(){Bl&&(clearTimeout(Bl),Bl=null)}let Dl=0,$l=0;function Fl(e){if(Rl(),1!==e.touches.length)return;const{pageX:t,pageY:n}=e.touches[0];Dl=t,$l=n,Bl=setTimeout((function(){const t=new CustomEvent("longpress",{bubbles:!0,cancelable:!0,target:e.target,currentTarget:e.currentTarget});t.touches=e.touches,t.changedTouches=e.changedTouches,e.target.dispatchEvent(t)}),350)}function Ul(e){if(!Bl)return;if(1!==e.touches.length)return Rl();const{pageX:t,pageY:n}=e.touches[0];return Math.abs(t-Dl)>10||Math.abs(n-$l)>10?Rl():void 0}function Hl(e,t){const n=Number(e);return isNaN(n)?t:n}function zl(){const e=__uniConfig.globalStyle||{},t=Hl(e.rpxCalcMaxDeviceWidth,960),n=Hl(e.rpxCalcBaseDeviceWidth,375);function o(){let e=function(){const e=/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation,t=e&&90===Math.abs(window.orientation);var n=e?Math[t?"max":"min"](screen.width,screen.height):screen.width;return Math.min(window.innerWidth,document.documentElement.clientWidth,n)||n}();e=e<=t?e:n,document.documentElement.style.fontSize=e/23.4375+"px"}o(),document.addEventListener("DOMContentLoaded",o),window.addEventListener("load",o),window.addEventListener("resize",o)}function Vl(){zl(),de(),window.addEventListener("touchstart",Fl,Ml),window.addEventListener("touchmove",Ul,Ml),window.addEventListener("touchend",Rl,Ml),window.addEventListener("touchcancel",Rl,Ml)}function Wl(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Yl,Kl,Xl=["top","left","right","bottom"],Gl={};function Zl(){return Kl="CSS"in window&&"function"==typeof CSS.supports?CSS.supports("top: env(safe-area-inset-top)")?"env":CSS.supports("top: constant(safe-area-inset-top)")?"constant":"":""}function Jl(){if(Kl="string"==typeof Kl?Kl:Zl()){var e=[],t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t={passive:!0}}});window.addEventListener("test",null,n)}catch(s){}var o=document.createElement("div");r(o,{position:"absolute",left:"0",top:"0",width:"0",height:"0",zIndex:"-1",overflow:"hidden",visibility:"hidden"}),Xl.forEach((function(e){a(o,e)})),document.body.appendChild(o),i(),Yl=!0}else Xl.forEach((function(e){Gl[e]=0}));function r(e,t){var n=e.style;Object.keys(t).forEach((function(e){var o=t[e];n[e]=o}))}function i(t){t?e.push(t):e.forEach((function(e){e()}))}function a(e,n){var o=document.createElement("div"),a=document.createElement("div"),s=document.createElement("div"),l=document.createElement("div"),u={position:"absolute",width:"100px",height:"200px",boxSizing:"border-box",overflow:"hidden",paddingBottom:Kl+"(safe-area-inset-"+n+")"};r(o,u),r(a,u),r(s,{transition:"0s",animation:"none",width:"400px",height:"400px"}),r(l,{transition:"0s",animation:"none",width:"250%",height:"250%"}),o.appendChild(s),a.appendChild(l),e.appendChild(o),e.appendChild(a),i((function(){o.scrollTop=a.scrollTop=1e4;var e=o.scrollTop,r=a.scrollTop;function i(){this.scrollTop!==(this===o?e:r)&&(o.scrollTop=a.scrollTop=1e4,e=o.scrollTop,r=a.scrollTop,function(e){eu.length||setTimeout((function(){var e={};eu.forEach((function(t){e[t]=Gl[t]})),eu.length=0,tu.forEach((function(t){t(e)}))}),0);eu.push(e)}(n))}o.addEventListener("scroll",i,t),a.addEventListener("scroll",i,t)}));var c=getComputedStyle(o);Object.defineProperty(Gl,n,{configurable:!0,get:function(){return parseFloat(c.paddingBottom)}})}}function Ql(e){return Yl||Jl(),Gl[e]}var eu=[];var tu=[];const nu=Wl({get support(){return 0!=("string"==typeof Kl?Kl:Zl()).length},get top(){return Ql("top")},get left(){return Ql("left")},get right(){return Ql("right")},get bottom(){return Ql("bottom")},onChange:function(e){Zl()&&(Yl||Jl(),"function"==typeof e&&tu.push(e))},offChange:function(e){var t=tu.indexOf(e);t>=0&&tu.splice(t,1)}}),ou=_a((()=>{}),["prevent"]),ru=_a((()=>{}),["stop"]);function iu(e,t){return parseInt((e.getPropertyValue(t).match(/\d+/)||["0"])[0])}function au(){const e=iu(document.documentElement.style,"--window-top");return e?e+nu.top:0}function su(){const e=document.documentElement.style,t=au(),n=iu(e,"--window-bottom"),o=iu(e,"--window-left"),r=iu(e,"--window-right"),i=iu(e,"--top-window-height");return{top:t,bottom:n?n+nu.bottom:0,left:o?o+nu.left:0,right:r?r+nu.right:0,topWindowHeight:i||0}}function lu(e){const t=document.documentElement.style;Object.keys(e).forEach((n=>{t.setProperty(n,e[n])}))}function uu(e){return lu(e)}function cu(e){return Symbol(e)}function fu(e){return-1!==(e+="").indexOf("rpx")||-1!==e.indexOf("upx")}function du(e,t=!1){if(t)return function(e){if(!fu(e))return e;return e.replace(/(\d+(\.\d+)?)[ru]px/g,((e,t)=>Nf(parseFloat(t))+"px"))}(e);if(P(e)){const t=parseInt(e)||0;return fu(e)?Nf(t):t}return e}const pu="M1.952 18.080q-0.32-0.352-0.416-0.88t0.128-0.976l0.16-0.352q0.224-0.416 0.64-0.528t0.8 0.176l6.496 4.704q0.384 0.288 0.912 0.272t0.88-0.336l17.312-14.272q0.352-0.288 0.848-0.256t0.848 0.352l-0.416-0.416q0.32 0.352 0.32 0.816t-0.32 0.816l-18.656 18.912q-0.32 0.352-0.8 0.352t-0.8-0.32l-7.936-8.064z",hu="M15.808 0.16q-4.224 0-7.872 2.176-3.552 2.112-5.632 5.728-2.144 3.744-2.144 8.128 0 4.192 2.144 7.872 2.112 3.52 5.632 5.632 3.68 2.144 7.872 2.144 4.384 0 8.128-2.144 3.616-2.080 5.728-5.632 2.176-3.648 2.176-7.872 0-4.384-2.176-8.128-2.112-3.616-5.728-5.728-3.744-2.176-8.128-2.176zM15.136 8.672h1.728q0.128 0 0.224 0.096t0.096 0.256l-0.384 10.24q0 0.064-0.048 0.112t-0.112 0.048h-1.248q-0.096 0-0.144-0.048t-0.048-0.112l-0.384-10.24q0-0.16 0.096-0.256t0.224-0.096zM16 23.328q-0.48 0-0.832-0.352t-0.352-0.848 0.352-0.848 0.832-0.352 0.832 0.352 0.352 0.848-0.352 0.848-0.832 0.352z";function gu(e,t="#000",n=27){return Zr("svg",{width:n,height:n,viewBox:"0 0 32 32"},[Zr("path",{d:e,fill:t},null,8,["d","fill"])],8,["width","height"])}function mu(){{const{$pageInstance:e}=ui();return e&&e.proxy.$page.id}}function vu(e){const t=ne(e);if(t.$page)return t.$page.id;if(t.$){const{$pageInstance:e}=t.$;return e&&e.proxy.$page.id}}function yu(){const e=gm(),t=e.length;if(t)return e[t-1]}function bu(){const e=yu();if(e)return e.$page.meta}function _u(){const e=bu();return e?e.id:-1}function wu(){const e=yu();if(e)return e.$vm}const xu=["navigationBar","pullToRefresh"];function ku(e,t){const n=JSON.parse(JSON.stringify(__uniConfig.globalStyle||{})),o=x({id:t},n,e);xu.forEach((t=>{o[t]=x({},n[t],e[t])}));const{navigationBar:r}=o;return r.titleText&&r.titleImage&&(r.titleText=""),o}function Ou(e,t,n){if(P(e))n=t,t=e,e=wu();else if("number"==typeof e){const t=gm().find((t=>t.$page.id===e));e=t?t.$vm:wu()}if(!e)return;const o=e.$[t];return o&&((e,t)=>{let n;for(let o=0;o<e.length;o++)n=e[o](t);return n})(o,n)}function Tu(e){e.preventDefault()}let Su,Eu=0;function Cu({onPageScroll:e,onReachBottom:t,onReachBottomDistance:n}){let o=!1,r=!1,i=!0;const a=()=>{function a(){if((()=>{const{scrollHeight:e}=document.documentElement,t=window.innerHeight,o=window.scrollY,i=o>0&&e>t&&o+t+n>=e,a=Math.abs(e-Eu)>n;return!i||r&&!a?(!i&&r&&(r=!1),!1):(Eu=e,r=!0,!0)})())return t&&t(),i=!1,setTimeout((function(){i=!0}),350),!0}e&&e(window.pageYOffset),t&&i&&(a()||(Su=setTimeout(a,300))),o=!1};return function(){clearTimeout(Su),o||requestAnimationFrame(a),o=!0}}function Au(e,t){if(0===t.indexOf("/"))return t;if(0===t.indexOf("./"))return Au(e,t.slice(2));const n=t.split("/"),o=n.length;let r=0;for(;r<o&&".."===n[r];r++);n.splice(0,r),t=n.join("/");const i=e.length>0?e.split("/"):[];return i.splice(i.length-r-1,r+1),ae(i.concat(n).join("/"))}function Nu(e,t=!1){return t?__uniRoutes.find((t=>t.path===e||t.alias===e)):__uniRoutes.find((t=>t.path===e))}class Pu{constructor(e){this.$bindClass=!1,this.$bindStyle=!1,this.$vm=e,this.$el=function(e,t=!1){const{vnode:n}=e;if(re(n.el))return t?n.el?[n.el]:[]:n.el;const{subTree:o}=e;if(16&o.shapeFlag){const e=o.children.filter((e=>e.el&&re(e.el)));if(e.length>0)return t?e.map((e=>e.el)):e[0].el}return t?n.el?[n.el]:[]:n.el}(e.$),this.$el.getAttribute&&(this.$bindClass=!!this.$el.getAttribute("class"),this.$bindStyle=!!this.$el.getAttribute("style"))}selectComponent(e){if(!this.$el||!e)return;const t=qu(this.$el.querySelector(e));return t?ju(t,!1):void 0}selectAllComponents(e){if(!this.$el||!e)return[];const t=[],n=this.$el.querySelectorAll(e);for(let o=0;o<n.length;o++){const e=qu(n[o]);e&&t.push(ju(e,!1))}return t}forceUpdate(e){"class"===e?this.$bindClass?(this.$el.__wxsClassChanged=!0,this.$vm.$forceUpdate()):this.updateWxsClass():"style"===e&&(this.$bindStyle?(this.$el.__wxsStyleChanged=!0,this.$vm.$forceUpdate()):this.updateWxsStyle())}updateWxsClass(){const{__wxsAddClass:e}=this.$el;e.length&&(this.$el.className=e.join(" "))}updateWxsStyle(){const{__wxsStyle:e}=this.$el;e&&this.$el.setAttribute("style",function(e){let t="";if(!e||P(e))return t;for(const n in e){const o=e[n],r=n.startsWith("--")?n:z(n);(P(o)||"number"==typeof o)&&(t+=`${r}:${o};`)}return t}(e))}setStyle(e){return this.$el&&e?(P(e)&&(e=s(e)),B(e)&&(this.$el.__wxsStyle=e,this.forceUpdate("style")),this):this}addClass(e){if(!this.$el||!e)return this;const t=this.$el.__wxsAddClass||(this.$el.__wxsAddClass=[]);return-1===t.indexOf(e)&&(t.push(e),this.forceUpdate("class")),this}removeClass(e){if(!this.$el||!e)return this;const{__wxsAddClass:t}=this.$el;if(t){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const n=this.$el.__wxsRemoveClass||(this.$el.__wxsRemoveClass=[]);return-1===n.indexOf(e)&&(n.push(e),this.forceUpdate("class")),this}hasClass(e){return this.$el&&this.$el.classList.contains(e)}getDataset(){return this.$el&&this.$el.dataset}callMethod(e,t={}){const n=this.$vm[e];N(n)?n(JSON.parse(JSON.stringify(t))):this.$vm.ownerId&&fb.publishHandler("onWxsInvokeCallMethod",{nodeId:this.$el.__id,ownerId:this.$vm.ownerId,method:e,args:t})}requestAnimationFrame(e){return window.requestAnimationFrame(e)}getState(){return this.$el&&(this.$el.__wxsState||(this.$el.__wxsState={}))}triggerEvent(e,t={}){return this.$vm.$emit(e,t),this}getComputedStyle(e){if(this.$el){const t=window.getComputedStyle(this.$el);return e&&e.length?e.reduce(((e,n)=>(e[n]=t[n],e)),{}):t}return{}}setTimeout(e,t){return window.setTimeout(e,t)}clearTimeout(e){return window.clearTimeout(e)}getBoundingClientRect(){return this.$el.getBoundingClientRect()}}function ju(e,t=!0){if(t&&e&&(e=oe(e.$)),e&&e.$el)return e.$el.__wxsComponentDescriptor||(e.$el.__wxsComponentDescriptor=new Pu(e)),e.$el.__wxsComponentDescriptor}function Lu(e,t){return ju(e,t)}function Iu(e,t,n,o=!0){if(t){e.__instance||(e.__instance=!0,Object.defineProperty(e,"instance",{get:()=>Lu(n.proxy,!1)}));const r=function(e,t,n=!0){if(!t)return!1;if(n&&e.length<2)return!1;const o=oe(t);if(!o)return!1;const r=o.$.type;return!(!r.$wxs&&!r.$renderjs)&&o}(t,n,o);if(r)return[e,Lu(r,!1)]}}function qu(e){if(e)return e.__vueParentComponent&&e.__vueParentComponent.proxy}function Mu(e){for(;e&&0!==e.tagName.indexOf("UNI-");)e=e.parentElement;return e}function Bu(e,t=!1){const{type:n,timeStamp:o,target:r,currentTarget:i}=e,a={type:n,timeStamp:o,target:me(t?r:Mu(r)),detail:{},currentTarget:me(i)};return e._stopped&&(a._stopped=!0),e.type.startsWith("touch")&&(a.touches=e.touches,a.changedTouches=e.changedTouches),function(e,t){x(e,{preventDefault:()=>t.preventDefault(),stopPropagation:()=>t.stopPropagation()})}(a,e),a}function Ru(e,t){return{force:1,identifier:0,clientX:e.clientX,clientY:e.clientY-t,pageX:e.pageX,pageY:e.pageY-t}}function Du(e,t){const n=[];for(let o=0;o<e.length;o++){const{identifier:r,pageX:i,pageY:a,clientX:s,clientY:l,force:u}=e[o];n.push({identifier:r,pageX:i,pageY:a-t,clientX:s,clientY:l-t,force:u||0})}return n}const $u=Object.defineProperty({__proto__:null,$nne:function(e,t,n){const{currentTarget:o}=e;if(!(e instanceof Event&&o instanceof HTMLElement))return[e];const r=0!==o.tagName.indexOf("UNI-");if(r)return Iu(e,t,n,!1)||[e];const i=Bu(e,r);if("click"===e.type)!function(e,t){const{x:n,y:o}=t,r=au();e.detail={x:n,y:o-r},e.touches=e.changedTouches=[Ru(t,r)]}(i,e);else if((e=>0===e.type.indexOf("mouse")||["contextmenu"].includes(e.type))(e))!function(e,t){const n=au();e.pageX=t.pageX,e.pageY=t.pageY-n,e.clientX=t.clientX,e.clientY=t.clientY-n,e.touches=e.changedTouches=[Ru(t,n)]}(i,e);else if((e=>"undefined"!=typeof TouchEvent&&e instanceof TouchEvent||0===e.type.indexOf("touch")||["longpress"].indexOf(e.type)>=0)(e)){const t=au();i.touches=Du(e.touches,t),i.changedTouches=Du(e.changedTouches,t)}else if((e=>!e.type.indexOf("key")&&e instanceof KeyboardEvent)(e)){["key","code"].forEach((t=>{Object.defineProperty(i,t,{get:()=>e[t]})}))}return Iu(i,t,n)||[i]},createNativeEvent:Bu},Symbol.toStringTag,{value:"Module"});function Fu(e){!function(e){const t=e.globalProperties;x(t,$u),t.$gcd=Lu}(e._context.config)}let Uu=1;function Hu(e){return(e||_u())+".invokeViewApi"}const zu=x(Al("view"),{invokeOnCallback:(e,t)=>db.emit("api."+e,t),invokeViewMethod:(e,t,n,o)=>{const{subscribe:r,publishHandler:i}=db,a=o?Uu++:0;o&&r("invokeViewApi."+a,o,!0),i(Hu(n),{id:a,name:e,args:t},n)},invokeViewMethodKeepAlive:(e,t,n,o)=>{const{subscribe:r,unsubscribe:i,publishHandler:a}=db,s=Uu++,l="invokeViewApi."+s;return r(l,n),a(Hu(o),{id:s,name:e,args:t},o),()=>{i(l)}}});function Vu(e){Ou(yu(),"onResize",e),db.invokeOnCallback("onWindowResize",e)}function Wu(e){const t=yu();Ou(Dm(),"onShow",e),Ou(t,"onShow")}function Yu(){Ou(Dm(),"onHide"),Ou(yu(),"onHide")}const Ku=["onPageScroll","onReachBottom"];function Xu(){Ku.forEach((e=>db.subscribe(e,function(e){return(t,n)=>{Ou(parseInt(n),e,t)}}(e))))}function Gu(){!function(){const{on:e}=db;e("onResize",Vu),e("onAppEnterForeground",Wu),e("onAppEnterBackground",Yu)}(),Xu()}function Zu(){if(this.$route){const e=this.$route.meta;return e.eventChannel||(e.eventChannel=new xe(this.$page.id)),e.eventChannel}}function Ju(e){e._context.config.globalProperties.getOpenerEventChannel=Zu}function Qu(){return{path:"",query:{},scene:1001,referrerInfo:{appId:"",extraData:{}}}}function ec(e){return/^-?\d+[ur]px$/i.test(e)?e.replace(/(^-?\d+)[ur]px$/i,((e,t)=>`${Nf(parseFloat(t))}px`)):/^-?[\d\.]+$/.test(e)?`${e}px`:e||""}function tc(e){const t=e.animation;if(!t||!t.actions||!t.actions.length)return;let n=0;const o=t.actions,r=t.actions.length;function i(){const t=o[n],a=t.option.transition,s=function(e){const t=["matrix","matrix3d","scale","scale3d","rotate3d","skew","translate","translate3d"],n=["scaleX","scaleY","scaleZ","rotate","rotateX","rotateY","rotateZ","skewX","skewY","translateX","translateY","translateZ"],o=["opacity","background-color"],r=["width","height","left","right","top","bottom"],i=e.animates,a=e.option,s=a.transition,l={},u=[];return i.forEach((e=>{let i=e.type,a=[...e.args];if(t.concat(n).includes(i))i.startsWith("rotate")||i.startsWith("skew")?a=a.map((e=>parseFloat(e)+"deg")):i.startsWith("translate")&&(a=a.map(ec)),n.indexOf(i)>=0&&(a.length=1),u.push(`${i}(${a.join(",")})`);else if(o.concat(r).includes(a[0])){i=a[0];const e=a[1];l[i]=r.includes(i)?ec(e):e}})),l.transform=l.webkitTransform=u.join(" "),l.transition=l.webkitTransition=Object.keys(l).map((e=>`${function(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`)).replace("webkit","-webkit")}(e)} ${s.duration}ms ${s.timingFunction} ${s.delay}ms`)).join(","),l.transformOrigin=l.webkitTransformOrigin=a.transformOrigin,l}(t);Object.keys(s).forEach((t=>{e.$el.style[t]=s[t]})),n+=1,n<r&&setTimeout(i,a.duration+a.delay)}setTimeout((()=>{i()}),0)}const nc={props:["animation"],watch:{animation:{deep:!0,handler(){tc(this)}}},mounted(){tc(this)}},oc=e=>{e.__reserved=!0;const{props:t,mixins:n}=e;return t&&t.animation||(n||(e.mixins=[])).push(nc),rc(e)},rc=e=>(e.__reserved=!0,e.compatConfig={MODE:3},co(e)),ic={hoverClass:{type:String,default:"none"},hoverStopPropagation:{type:Boolean,default:!1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:400}};function ac(e){const t=tn(!1);let n,o,r=!1;function i(){requestAnimationFrame((()=>{clearTimeout(o),o=setTimeout((()=>{t.value=!1}),parseInt(e.hoverStayTime))}))}function a(o){o._hoverPropagationStopped||e.hoverClass&&"none"!==e.hoverClass&&!e.disabled&&(e.hoverStopPropagation&&(o._hoverPropagationStopped=!0),r=!0,n=setTimeout((()=>{t.value=!0,r||i()}),parseInt(e.hoverStartTime)))}function s(){r=!1,t.value&&i()}function l(){s(),window.removeEventListener("mouseup",l)}return{hovering:t,binding:{onTouchstartPassive:function(e){e.touches.length>1||a(e)},onMousedown:function(e){r||(a(e),window.addEventListener("mouseup",l))},onTouchend:function(){s()},onMouseup:function(){r&&l()},onTouchcancel:function(){r=!1,t.value=!1,clearTimeout(n)}}}}function sc(e,t){return P(t)&&(t=[t]),t.reduce(((t,n)=>(e[n]&&(t[n]=!0),t)),Object.create(null))}function lc(e){return e.__wwe=!0,e}function uc(e,t){return(n,o,r)=>{e.value&&t(n,function(e,t,n,o){const r=me(n);return{type:o.type||e,timeStamp:t.timeStamp||0,target:r,currentTarget:r,detail:o}}(n,o,e.value,r||{}))}}const cc=cu("uf"),fc=oc({name:"Form",emits:["submit","reset"],setup(e,{slots:t,emit:n}){const o=tn(null);return function(e){const t=[];Wn(cc,{addField(e){t.push(e)},removeField(e){t.splice(t.indexOf(e),1)},submit(n){e("submit",n,{value:t.reduce(((e,t)=>{if(t.submit){const[n,o]=t.submit();n&&(e[n]=o)}return e}),Object.create(null))})},reset(n){t.forEach((e=>e.reset&&e.reset())),e("reset",n)}})}(uc(o,n)),()=>Zr("uni-form",{ref:o},[Zr("span",null,[t.default&&t.default()])],512)}});const dc={for:{type:String,default:""}},pc=cu("ul");const hc=oc({name:"Label",props:dc,setup(e,{slots:t}){const n=mu(),o=function(){const e=[];return Wn(pc,{addHandler(t){e.push(t)},removeHandler(t){e.splice(e.indexOf(t),1)}}),e}(),r=yi((()=>e.for||t.default&&t.default.length)),i=lc((t=>{const r=t.target;let i=/^uni-(checkbox|radio|switch)-/.test(r.className);i||(i=/^uni-(checkbox|radio|switch|button)$|^(svg|path)$/i.test(r.tagName)),i||(e.for?fb.emit("uni-label-click-"+n+"-"+e.for,t,!0):o.length&&o[0](t,!0))}));return()=>Zr("uni-label",{class:{"uni-label-pointer":r},onClick:i},[t.default&&t.default()],10,["onClick"])}});function gc(e,t){mc(e.id,t),Gn((()=>e.id),((e,n)=>{vc(n,t,!0),mc(e,t,!0)})),Mo((()=>{vc(e.id,t)}))}function mc(e,t,n){const o=mu();n&&!e||B(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&fb.on(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?fb.on(r,t[r]):e&&fb.on(`uni-${r}-${o}-${e}`,t[r])}))}function vc(e,t,n){const o=mu();n&&!e||B(t)&&Object.keys(t).forEach((r=>{n?0!==r.indexOf("@")&&0!==r.indexOf("uni-")&&fb.off(`uni-${r}-${o}-${e}`,t[r]):0===r.indexOf("uni-")?fb.off(r,t[r]):e&&fb.off(`uni-${r}-${o}-${e}`,t[r])}))}const yc=oc({name:"Button",props:{id:{type:String,default:""},hoverClass:{type:String,default:"button-hover"},hoverStartTime:{type:[Number,String],default:20},hoverStayTime:{type:[Number,String],default:70},hoverStopPropagation:{type:Boolean,default:!1},disabled:{type:[Boolean,String],default:!1},formType:{type:String,default:""},openType:{type:String,default:""},loading:{type:[Boolean,String],default:!1},plain:{type:[Boolean,String],default:!1}},setup(e,{slots:t}){const n=tn(null),o=Yn(cc,!1),{hovering:r,binding:i}=ac(e);_l();const a=lc(((t,r)=>{if(e.disabled)return t.stopImmediatePropagation();r&&n.value.click();const i=e.formType;if(i){if(!o)return;"submit"===i?o.submit(t):"reset"===i&&o.reset(t)}else;})),s=Yn(pc,!1);return s&&(s.addHandler(a),qo((()=>{s.removeHandler(a)}))),gc(e,{"label-click":a}),()=>{const o=e.hoverClass,s=sc(e,"disabled"),l=sc(e,"loading"),u=sc(e,"plain"),c=o&&"none"!==o;return Zr("uni-button",ri({ref:n,onClick:a,class:c&&r.value?o:""},c&&i,s,l,u),[t.default&&t.default()],16,["onClick"])}}});function bc(e){return e.$el}function _c(e){const{base:t}=__uniConfig.router;return 0===ae(e).indexOf(t)?ae(e):t+e}function wc(e){const{base:t,assets:n}=__uniConfig.router;if("./"===t&&(0===e.indexOf("./static/")||n&&0===e.indexOf("./"+n+"/"))&&(e=e.slice(1)),0===e.indexOf("/")){if(0!==e.indexOf("//"))return _c(e.slice(1));e="https:"+e}if(ee.test(e)||te.test(e)||0===e.indexOf("blob:"))return e;const o=gm();return o.length?_c(Au(o[o.length-1].$page.route,e).slice(1)):e}const xc=navigator.userAgent,kc=/android/i.test(xc),Oc=/iphone|ipad|ipod/i.test(xc),Tc=xc.match(/Windows NT ([\d|\d.\d]*)/i),Sc=/Macintosh|Mac/i.test(xc),Ec=/Linux|X11/i.test(xc),Cc=Sc&&navigator.maxTouchPoints>0;function Ac(){return/^Apple/.test(navigator.vendor)&&"number"==typeof window.orientation}function Nc(e){return e&&90===Math.abs(window.orientation)}function Pc(e,t){return e?Math[t?"max":"min"](screen.width,screen.height):screen.width}function jc(e){return Math.min(window.innerWidth,document.documentElement.clientWidth,e)||e}function Lc(){const e=Ac(),t=jc(Pc(e,Nc(e)));return{platform:Oc?"ios":"other",pixelRatio:window.devicePixelRatio,windowWidth:t}}function Ic(e,t,n,o){db.invokeViewMethod("video."+e,{videoId:e,type:n,data:o},t)}function qc(e,t){const n={},{top:o,topWindowHeight:r}=su();if(t.id&&(n.id=e.id),t.dataset&&(n.dataset=pe(e)),t.rect||t.size){const i=e.getBoundingClientRect();t.rect&&(n.left=i.left,n.right=i.right,n.top=i.top-o-r,n.bottom=i.bottom-o-r),t.size&&(n.width=i.width,n.height=i.height)}if(S(t.properties)&&t.properties.forEach((e=>{e=e.replace(/-([a-z])/g,(function(e,t){return t.toUpperCase()}))})),t.scrollOffset)if("UNI-SCROLL-VIEW"===e.tagName){const t=e.children[0].children[0];n.scrollLeft=t.scrollLeft,n.scrollTop=t.scrollTop,n.scrollHeight=t.scrollHeight,n.scrollWidth=t.scrollWidth}else n.scrollLeft=0,n.scrollTop=0,n.scrollHeight=0,n.scrollWidth=0;if(S(t.computedStyle)){const o=getComputedStyle(e);t.computedStyle.forEach((e=>{n[e]=o[e]}))}return t.context&&(n.contextInfo=function(e){return e.__uniContextInfo}(e)),n}function Mc(e,t){return(e.matches||e.matchesSelector||e.mozMatchesSelector||e.msMatchesSelector||e.oMatchesSelector||e.webkitMatchesSelector||function(e){const t=this.parentElement.querySelectorAll(e);let n=t.length;for(;--n>=0&&t.item(n)!==this;);return n>-1}).call(e,t)}function Bc(e,t,n){const o=[];t.forEach((({component:t,selector:n,single:r,fields:i})=>{null===t?o.push(function(e){const t={};if(e.id&&(t.id=""),e.dataset&&(t.dataset={}),e.rect&&(t.left=0,t.right=0,t.top=0,t.bottom=0),e.size&&(t.width=document.documentElement.clientWidth,t.height=document.documentElement.clientHeight),e.scrollOffset){const e=document.documentElement,n=document.body;t.scrollLeft=e.scrollLeft||n.scrollLeft||0,t.scrollTop=e.scrollTop||n.scrollTop||0,t.scrollHeight=e.scrollHeight||n.scrollHeight||0,t.scrollWidth=e.scrollWidth||n.scrollWidth||0}return t}(i)):o.push(function(e,t,n,o,r){const i=function(e,t){return e?e.$el:t.$el}(t,e),a=i.parentElement;if(!a)return o?null:[];const{nodeType:s}=i,l=3===s||8===s;if(o){const e=l?a.querySelector(n):Mc(i,n)?i:i.querySelector(n);return e?qc(e,r):null}{let e=[];const t=(l?a:i).querySelectorAll(n);return t&&t.length&&[].forEach.call(t,(t=>{e.push(qc(t,r))})),!l&&Mc(i,n)&&e.unshift(qc(i,r)),e}}(e,t,n,r,i))})),n(o)}const Rc=["original","compressed"],Dc=["album","camera"],$c=["GET","OPTIONS","HEAD","POST","PUT","DELETE","TRACE","CONNECT","PATCH"];function Fc(e,t){return e&&-1!==t.indexOf(e)?e:t[0]}function Uc(e,t){return!S(e)||0===e.length||e.find((e=>-1===t.indexOf(e)))?t:e}function Hc(e){return function(){try{return e.apply(e,arguments)}catch(t){console.error(t)}}}let zc=1;const Vc={};function Wc(e,t,n,o=!1){return Vc[e]={name:t,keepAlive:o,callback:n},e}function Yc(e,t,n){if("number"==typeof e){const o=Vc[e];if(o)return o.keepAlive||delete Vc[e],o.callback(t,n)}return t}function Kc(e){for(const t in Vc)if(Vc[t].name===e)return!0;return!1}const Xc="success",Gc="fail",Zc="complete";function Jc(e,t={},{beforeAll:n,beforeSuccess:o}={}){B(t)||(t={});const{success:r,fail:i,complete:a}=function(e){const t={};for(const n in e){const o=e[n];N(o)&&(t[n]=Hc(o),delete e[n])}return t}(t),s=N(r),l=N(i),u=N(a),c=zc++;return Wc(c,e,(c=>{(c=c||{}).errMsg=function(e,t){return e&&-1!==e.indexOf(":fail")?t+e.substring(e.indexOf(":fail")):t+":ok"}(c.errMsg,e),N(n)&&n(c),c.errMsg===e+":ok"?(N(o)&&o(c,t),s&&r(c)):l&&i(c),u&&a(c)})),c}const Qc="success",ef="fail",tf="complete",nf={},of={};function rf(e,t){return function(n){return e(n,t)||n}}function af(e,t,n){let o=!1;for(let r=0;r<e.length;r++){const i=e[r];if(o)o=Promise.resolve(rf(i,n));else{const e=i(t,n);if(I(e)&&(o=Promise.resolve(e)),!1===e)return{then(){},catch(){}}}}return o||{then:e=>e(t),catch(){}}}function sf(e,t={}){return[Qc,ef,tf].forEach((n=>{const o=e[n];if(!S(o))return;const r=t[n];t[n]=function(e){af(o,e,t).then((e=>N(r)&&r(e)||e))}})),t}function lf(e,t){const n=[];S(nf.returnValue)&&n.push(...nf.returnValue);const o=of[e];return o&&S(o.returnValue)&&n.push(...o.returnValue),n.forEach((e=>{t=e(t)||t})),t}function uf(e){const t=Object.create(null);Object.keys(nf).forEach((e=>{"returnValue"!==e&&(t[e]=nf[e].slice())}));const n=of[e];return n&&Object.keys(n).forEach((e=>{"returnValue"!==e&&(t[e]=(t[e]||[]).concat(n[e]))})),t}function cf(e,t,n,o){const r=uf(e);if(r&&Object.keys(r).length){if(S(r.invoke)){return af(r.invoke,n).then((n=>t(sf(uf(e),n),...o)))}return t(sf(r,n),...o)}return t(n,...o)}function ff(e,t){return(n={},...o)=>function(e){return!(!B(e)||![Xc,Gc,Zc].find((t=>N(e[t]))))}(n)?lf(e,cf(e,t,n,o)):lf(e,new Promise(((r,i)=>{cf(e,t,x(n,{success:r,fail:i}),o)})))}function df(e,t,n,o){return Yc(e,x({errMsg:t+":fail"+(n?" "+n:"")},o))}function pf(e,t,n,o){if(o&&o.beforeInvoke){const e=o.beforeInvoke(t);if(P(e))return e}const r=function(e,t){const n=e[0];if(!t||!B(t.formatArgs)&&B(n))return;const o=t.formatArgs,r=Object.keys(o);for(let i=0;i<r.length;i++){const t=r[i],a=o[t];if(N(a)){const o=a(e[0][t],n);if(P(o))return o}else T(n,t)||(n[t]=a)}}(t,o);if(r)return r}function hf(e){if(!N(e))throw new Error('Invalid args: type check failed for args "callback". Expected Function')}function gf(e,t,n){return o=>{hf(o);const r=pf(0,[o],0,n);if(r)throw new Error(r);const i=!Kc(e);!function(e,t){Wc(zc++,e,t,!0)}(e,o),i&&(!function(e){db.on("api."+e,(t=>{for(const n in Vc){const o=Vc[n];o.name===e&&o.callback(t)}}))}(e),t())}}function mf(e,t,n){return o=>{hf(o);const r=pf(0,[o],0,n);if(r)throw new Error(r);!function(e,t){for(const n in Vc){const o=Vc[n];o.callback===t&&o.name===e&&delete Vc[n]}}(e=e.replace("off","on"),o);Kc(e)||(!function(e){db.off("api."+e)}(e),t())}}function vf(e,t,n,o){return n=>{const r=Jc(e,n,o),i=pf(0,[n],0,o);return i?df(r,e,i):t(n,{resolve:t=>function(e,t,n){return Yc(e,x(n||{},{errMsg:t+":ok"}))}(r,e,t),reject:(t,n)=>df(r,e,function(e){return!e||P(e)?e:e.stack?(console.error(e.message+"\n"+e.stack),e.message):e}(t),n)})}}function yf(e,t,n){return gf(e,t,n)}function bf(e,t,n){return mf(e,t,n)}function _f(e,t,n,o){return ff(e,vf(e,t,0,o))}function wf(e,t,n,o){return function(e,t,n,o){return(...e)=>{const n=pf(0,e,0,o);if(n)throw new Error(n);return t.apply(null,e)}}(0,t,0,o)}function xf(e,t,n,o){return ff(e,function(e,t,n,o){return vf(e,t,0,o)}(e,t,0,o))}let kf=!1,Of=0,Tf=0,Sf=960,Ef=375,Cf=750;function Af(e,t){const n=Number(e);return isNaN(n)?t:n}const Nf=wf(0,((e,t)=>{if(0===Of&&(function(){const{platform:e,pixelRatio:t,windowWidth:n}=Lc();Of=n,Tf=t,kf="ios"===e}(),function(){const e=__uniConfig.globalStyle||{};Sf=Af(e.rpxCalcMaxDeviceWidth,960),Ef=Af(e.rpxCalcBaseDeviceWidth,375),Cf=Af(e.rpxCalcBaseDeviceWidth,750)}()),0===(e=Number(e)))return 0;let n=t||Of;n=e===Cf||n<=Sf?n:Ef;let o=e/750*n;return o<0&&(o=-o),o=Math.floor(o+1e-4),0===o&&(o=1!==Tf&&kf?.5:1),e<0?-o:o}));function Pf(e,t){Object.keys(t).forEach((n=>{N(t[n])&&(e[n]=function(e,t){const n=t?e?e.concat(t):S(t)?t:[t]:e;return n?function(e){const t=[];for(let n=0;n<e.length;n++)-1===t.indexOf(e[n])&&t.push(e[n]);return t}(n):n}(e[n],t[n]))}))}const jf=wf(0,((e,t)=>{P(e)&&B(t)?Pf(of[e]||(of[e]={}),t):B(e)&&Pf(nf,e)})),Lf=new Ae,If=wf(0,((e,t)=>(Lf.on(e,t),()=>Lf.off(e,t)))),qf=wf(0,((e,t)=>{e?(S(e)||(e=[e]),e.forEach((e=>Lf.off(e,t)))):Lf.e={}})),Mf=wf(0,((e,...t)=>{Lf.emit(e,...t)})),Bf=[.5,.8,1,1.25,1.5,2];class Rf{constructor(e,t){this.id=e,this.pageId=t}play(){Ic(this.id,this.pageId,"play")}pause(){Ic(this.id,this.pageId,"pause")}stop(){Ic(this.id,this.pageId,"stop")}seek(e){Ic(this.id,this.pageId,"seek",{position:e})}sendDanmu(e){Ic(this.id,this.pageId,"sendDanmu",e)}playbackRate(e){~Bf.indexOf(e)||(e=1),Ic(this.id,this.pageId,"playbackRate",{rate:e})}requestFullScreen(e={}){Ic(this.id,this.pageId,"requestFullScreen",e)}exitFullScreen(){Ic(this.id,this.pageId,"exitFullScreen")}showStatusBar(){Ic(this.id,this.pageId,"showStatusBar")}hideStatusBar(){Ic(this.id,this.pageId,"hideStatusBar")}}const Df=wf(0,((e,t)=>new Rf(e,vu(t||wu())))),$f=(e,t,n,o)=>{!function(e,t,n,o,r){db.invokeViewMethod("map."+e,{type:n,data:o},t,r)}(e,t,n,o,(e=>{o&&((e,t)=>{const n=t.errMsg||"";new RegExp("\\:\\s*fail").test(n)?e.fail&&e.fail(t):e.success&&e.success(t),e.complete&&e.complete(t)})(o,e)}))};function Ff(e,t){return function(n,o){n?o[e]=Math.round(n):void 0!==t&&(o[e]=t)}}const Uf=Ff("width"),Hf=Ff("height"),zf={formatArgs:{x:Ff("x"),y:Ff("y"),width:Uf,height:Hf}},Vf={canvasId:{type:String,required:!0},x:{type:Number,required:!0},y:{type:Number,required:!0},width:{type:Number,required:!0},height:{type:Number,required:!0}},Wf=zf,Yf=(Uint8ClampedArray,{PNG:"png",JPG:"jpg",JPEG:"jpg"}),Kf={formatArgs:{x:Ff("x",0),y:Ff("y",0),width:Uf,height:Hf,destWidth:Ff("destWidth"),destHeight:Ff("destHeight"),fileType(e,t){e=(e||"").toUpperCase();let n=Yf[e];n||(n=Yf.PNG),t.fileType=n},quality(e,t){t.quality=e&&e>0&&e<1?e:1}}};function Xf(e,t,n,o,r){db.invokeViewMethod(`canvas.${e}`,{type:n,data:o},t,(e=>{r&&r(e)}))}var Gf=["scale","rotate","translate","setTransform","transform"],Zf=["drawImage","fillText","fill","stroke","fillRect","strokeRect","clearRect","strokeText"],Jf=["setFillStyle","setTextAlign","setStrokeStyle","setGlobalAlpha","setShadow","setFontSize","setLineCap","setLineJoin","setLineWidth","setMiterLimit","setTextBaseline","setLineDash"];const Qf={aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyan:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgrey:"#a9a9a9",darkgreen:"#006400",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",grey:"#808080",green:"#008000",greenyellow:"#adff2f",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32",transparent:"#00000000"};function ed(e){var t=null;if(null!=(t=/^#([0-9|A-F|a-f]{6})$/.exec(e=e||"#000000"))){return[parseInt(t[1].slice(0,2),16),parseInt(t[1].slice(2,4),16),parseInt(t[1].slice(4),16),255]}if(null!=(t=/^#([0-9|A-F|a-f]{3})$/.exec(e))){let e=t[1].slice(0,1),n=t[1].slice(1,2),o=t[1].slice(2,3);return e=parseInt(e+e,16),n=parseInt(n+n,16),o=parseInt(o+o,16),[e,n,o,255]}if(null!=(t=/^rgb\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e){return Math.min(255,parseInt(e.trim()))})).concat(255);if(null!=(t=/^rgba\((.+)\)$/.exec(e)))return t[1].split(",").map((function(e,t){return 3===t?Math.floor(255*parseFloat(e.trim())):Math.min(255,parseInt(e.trim()))}));var n=e.toLowerCase();if(T(Qf,n)){t=/^#([0-9|A-F|a-f]{6,8})$/.exec(Qf[n]);const e=parseInt(t[1].slice(0,2),16),o=parseInt(t[1].slice(2,4),16),r=parseInt(t[1].slice(4,6),16);let i=parseInt(t[1].slice(6,8),16);return i=i>=0?i:255,[e,o,r,i]}return console.error("unsupported color:"+e),[0,0,0,255]}class td{constructor(e,t){this.type=e,this.data=t,this.colorStop=[]}addColorStop(e,t){this.colorStop.push([e,ed(t)])}}class nd{constructor(e,t){this.type="pattern",this.data=e,this.colorStop=t}}class od{constructor(e){this.width=e}}class rd{constructor(e,t){this.id=e,this.pageId=t,this.actions=[],this.path=[],this.subpath=[],this.drawingState=[],this.state={lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}draw(e=!1,t){var n=[...this.actions];this.actions=[],this.path=[],Xf(this.id,this.pageId,"actionsChanged",{actions:n,reserve:e},t)}createLinearGradient(e,t,n,o){return new td("linear",[e,t,n,o])}createCircularGradient(e,t,n){return new td("radial",[e,t,n])}createPattern(e,t){if(void 0===t)console.error("Failed to execute 'createPattern' on 'CanvasContext': 2 arguments required, but only 1 present.");else{if(!(["repeat","repeat-x","repeat-y","no-repeat"].indexOf(t)<0))return new nd(e,t);console.error("Failed to execute 'createPattern' on 'CanvasContext': The provided type ('"+t+"') is not one of 'repeat', 'no-repeat', 'repeat-x', or 'repeat-y'.")}}measureText(e){let t=0;return t=function(e,t){const n=document.createElement("canvas").getContext("2d");return n.font=t,n.measureText(e).width||0}(e,this.state.font),new od(t)}save(){this.actions.push({method:"save",data:[]}),this.drawingState.push(this.state)}restore(){this.actions.push({method:"restore",data:[]}),this.state=this.drawingState.pop()||{lineDash:[0,0],shadowOffsetX:0,shadowOffsetY:0,shadowBlur:0,shadowColor:[0,0,0,0],font:"10px sans-serif",fontSize:10,fontWeight:"normal",fontStyle:"normal",fontFamily:"sans-serif"}}beginPath(){this.path=[],this.subpath=[],this.path.push({method:"beginPath",data:[]})}moveTo(e,t){this.path.push({method:"moveTo",data:[e,t]}),this.subpath=[[e,t]]}lineTo(e,t){0===this.path.length&&0===this.subpath.length?this.path.push({method:"moveTo",data:[e,t]}):this.path.push({method:"lineTo",data:[e,t]}),this.subpath.push([e,t])}quadraticCurveTo(e,t,n,o){this.path.push({method:"quadraticCurveTo",data:[e,t,n,o]}),this.subpath.push([n,o])}bezierCurveTo(e,t,n,o,r,i){this.path.push({method:"bezierCurveTo",data:[e,t,n,o,r,i]}),this.subpath.push([r,i])}arc(e,t,n,o,r,i=!1){this.path.push({method:"arc",data:[e,t,n,o,r,i]}),this.subpath.push([e,t])}rect(e,t,n,o){this.path.push({method:"rect",data:[e,t,n,o]}),this.subpath=[[e,t]]}arcTo(e,t,n,o,r){this.path.push({method:"arcTo",data:[e,t,n,o,r]}),this.subpath.push([n,o])}clip(){this.actions.push({method:"clip",data:[...this.path]})}closePath(){this.path.push({method:"closePath",data:[]}),this.subpath.length&&(this.subpath=[this.subpath.shift()])}clearActions(){this.actions=[],this.path=[],this.subpath=[]}getActions(){var e=[...this.actions];return this.clearActions(),e}set lineDashOffset(e){this.actions.push({method:"setLineDashOffset",data:[e]})}set globalCompositeOperation(e){this.actions.push({method:"setGlobalCompositeOperation",data:[e]})}set shadowBlur(e){this.actions.push({method:"setShadowBlur",data:[e]})}set shadowColor(e){this.actions.push({method:"setShadowColor",data:[e]})}set shadowOffsetX(e){this.actions.push({method:"setShadowOffsetX",data:[e]})}set shadowOffsetY(e){this.actions.push({method:"setShadowOffsetY",data:[e]})}set font(e){var t=this;this.state.font=e;var n=e.match(/^(([\w\-]+\s)*)(\d+r?px)(\/(\d+\.?\d*(r?px)?))?\s+(.*)/);if(n){var o=n[1].trim().split(/\s/),r=parseFloat(n[3]),i=n[7],a=[];o.forEach((function(e,n){["italic","oblique","normal"].indexOf(e)>-1?(a.push({method:"setFontStyle",data:[e]}),t.state.fontStyle=e):["bold","normal"].indexOf(e)>-1?(a.push({method:"setFontWeight",data:[e]}),t.state.fontWeight=e):0===n?(a.push({method:"setFontStyle",data:["normal"]}),t.state.fontStyle="normal"):1===n&&s()})),1===o.length&&s(),o=a.map((function(e){return e.data[0]})).join(" "),this.state.fontSize=r,this.state.fontFamily=i,this.actions.push({method:"setFont",data:[`${o} ${r}px ${i}`]})}else console.warn("Failed to set 'font' on 'CanvasContext': invalid format.");function s(){a.push({method:"setFontWeight",data:["normal"]}),t.state.fontWeight="normal"}}get font(){return this.state.font}set fillStyle(e){this.setFillStyle(e)}set strokeStyle(e){this.setStrokeStyle(e)}set globalAlpha(e){e=Math.floor(255*parseFloat(e)),this.actions.push({method:"setGlobalAlpha",data:[e]})}set textAlign(e){this.actions.push({method:"setTextAlign",data:[e]})}set lineCap(e){this.actions.push({method:"setLineCap",data:[e]})}set lineJoin(e){this.actions.push({method:"setLineJoin",data:[e]})}set lineWidth(e){this.actions.push({method:"setLineWidth",data:[e]})}set miterLimit(e){this.actions.push({method:"setMiterLimit",data:[e]})}set textBaseline(e){this.actions.push({method:"setTextBaseline",data:[e]})}}const id=ue((()=>{[...Gf,...Zf].forEach((function(e){rd.prototype[e]=function(e){switch(e){case"fill":case"stroke":return function(){this.actions.push({method:e+"Path",data:[...this.path]})};case"fillRect":return function(e,t,n,o){this.actions.push({method:"fillPath",data:[{method:"rect",data:[e,t,n,o]}]})};case"strokeRect":return function(e,t,n,o){this.actions.push({method:"strokePath",data:[{method:"rect",data:[e,t,n,o]}]})};case"fillText":case"strokeText":return function(t,n,o,r){var i=[t.toString(),n,o];"number"==typeof r&&i.push(r),this.actions.push({method:e,data:i})};case"drawImage":return function(t,n,o,r,i,a,s,l,u){var c;function f(e){return"number"==typeof e}void 0===u&&(a=n,s=o,l=r,u=i,n=void 0,o=void 0,r=void 0,i=void 0),c=f(n)&&f(o)&&f(r)&&f(i)?[t,a,s,l,u,n,o,r,i]:f(l)&&f(u)?[t,a,s,l,u]:[t,a,s],this.actions.push({method:e,data:c})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)})),Jf.forEach((function(e){rd.prototype[e]=function(e){switch(e){case"setFillStyle":case"setStrokeStyle":return function(t){"object"!=typeof t?this.actions.push({method:e,data:["normal",ed(t)]}):this.actions.push({method:e,data:[t.type,t.data,t.colorStop]})};case"setGlobalAlpha":return function(t){t=Math.floor(255*parseFloat(t)),this.actions.push({method:e,data:[t]})};case"setShadow":return function(t,n,o,r){r=ed(r),this.actions.push({method:e,data:[t,n,o,r]}),this.state.shadowBlur=o,this.state.shadowColor=r,this.state.shadowOffsetX=t,this.state.shadowOffsetY=n};case"setLineDash":return function(t,n){t=t||[0,0],n=n||0,this.actions.push({method:e,data:[t,n]}),this.state.lineDash=t};case"setFontSize":return function(t){this.state.font=this.state.font.replace(/\d+\.?\d*px/,t+"px"),this.state.fontSize=t,this.actions.push({method:e,data:[t]})};default:return function(...t){this.actions.push({method:e,data:t})}}}(e)}))})),ad=wf(0,((e,t)=>{if(id(),t)return new rd(e,vu(t));const n=vu(wu());if(n)return new rd(e,n);db.emit("onError","createCanvasContext:fail")})),sd=xf("canvasGetImageData",(({canvasId:e,x:t,y:n,width:o,height:r},{resolve:i,reject:a})=>{const s=vu(wu());s?Xf(e,s,"getImageData",{x:t,y:n,width:o,height:r},(function(e){if(e.errMsg&&-1!==e.errMsg.indexOf("fail"))return void a("",e);let t=e.data;t&&t.length&&(e.data=new Uint8ClampedArray(t)),delete e.compressed,i(e)})):a()}),0,zf),ld=xf("canvasPutImageData",(({canvasId:e,data:t,x:n,y:o,width:r,height:i},{resolve:a,reject:s})=>{var l=vu(wu());if(!l)return void s();t=Array.prototype.slice.call(t),Xf(e,l,"putImageData",{data:t,x:n,y:o,width:r,height:i,compressed:void 0},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?s():a(e)}))}),0,Wf),ud=xf("canvasToTempFilePath",(({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,canvasId:a,fileType:s,quality:l},{resolve:u,reject:c})=>{var f=vu(wu());if(!f)return void c();Xf(a,f,"toTempFilePath",{x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,fileType:s,quality:l,dirname:`${yp}/canvas`},(e=>{e.errMsg&&-1!==e.errMsg.indexOf("fail")?c("",e):u(e)}))}),0,Kf),cd=["onCanplay","onPlay","onPause","onStop","onEnded","onTimeUpdate","onError","onWaiting","onSeeking","onSeeked"],fd=["offCanplay","offPlay","offPause","offStop","offEnded","offTimeUpdate","offError","offWaiting","offSeeking","offSeeked"],dd={thresholds:[0],initialRatio:0,observeAll:!1},pd=["top","right","bottom","left"];let hd=1;function gd(e={}){return pd.map((t=>`${Number(e[t])||0}px`)).join(" ")}class md{constructor(e,t){this._pageId=vu(e),this._component=e,this._options=x({},dd,t)}relativeTo(e,t){return this._options.relativeToSelector=e,this._options.rootMargin=gd(t),this}relativeToViewport(e){return this._options.relativeToSelector=void 0,this._options.rootMargin=gd(e),this}observe(e,t){N(t)&&(this._options.selector=e,this._reqId=hd++,function({reqId:e,component:t,options:n,callback:o},r){const i=bc(t);(i.__io||(i.__io={}))[e]=function(e,t,n){!function(){if("object"!=typeof window)return;if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)return void("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}));function e(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(t){return null}}var t=function(t){for(var n=window.document,o=e(n);o;)o=e(n=o.ownerDocument);return n}(),n=[],o=null,r=null;function i(e){this.time=e.time,this.target=e.target,this.rootBounds=h(e.rootBounds),this.boundingClientRect=h(e.boundingClientRect),this.intersectionRect=h(e.intersectionRect||p()),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,r=o.width*o.height;this.intersectionRatio=n?Number((r/n).toFixed(4)):this.isIntersecting?1:0}function a(e,t){var n=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(n.root&&1!=n.root.nodeType&&9!=n.root.nodeType)throw new Error("root must be a Document or Element");this._checkForIntersections=l(this._checkForIntersections.bind(this),this.THROTTLE_TIMEOUT),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(n.rootMargin),this.thresholds=this._initThresholds(n.threshold),this.root=n.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function s(){return window.performance&&performance.now&&performance.now()}function l(e,t){var n=null;return function(){n||(n=setTimeout((function(){e(),n=null}),t))}}function u(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function c(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function f(e,t){var n=Math.max(e.top,t.top),o=Math.min(e.bottom,t.bottom),r=Math.max(e.left,t.left),i=Math.min(e.right,t.right),a=i-r,s=o-n;return a>=0&&s>=0&&{top:n,bottom:o,left:r,right:i,width:a,height:s}||null}function d(e){var t;try{t=e.getBoundingClientRect()}catch(n){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):p()}function p(){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}function h(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function g(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function m(e,t){for(var n=t;n;){if(n==e)return!0;n=v(n)}return!1}function v(n){var o=n.parentNode;return 9==n.nodeType&&n!=t?e(n):(o&&o.assignedSlot&&(o=o.assignedSlot.parentNode),o&&11==o.nodeType&&o.host?o.host:o)}function y(e){return e&&9===e.nodeType}a.prototype.THROTTLE_TIMEOUT=100,a.prototype.POLL_INTERVAL=null,a.prototype.USE_MUTATION_OBSERVER=!0,a._setupCrossOriginUpdater=function(){return o||(o=function(e,t){r=e&&t?g(e,t):p(),n.forEach((function(e){e._checkForIntersections()}))}),o},a._resetCrossOriginUpdater=function(){o=null,r=null},a.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},a.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},a.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},a.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},a.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},a.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},a.prototype._monitorIntersections=function(n){var o=n.defaultView;if(o&&-1==this._monitoringDocuments.indexOf(n)){var r=this._checkForIntersections,i=null,a=null;this.POLL_INTERVAL?i=o.setInterval(r,this.POLL_INTERVAL):(u(o,"resize",r,!0),u(n,"scroll",r,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in o&&(a=new o.MutationObserver(r)).observe(n,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(n),this._monitoringUnsubscribes.push((function(){var e=n.defaultView;e&&(i&&e.clearInterval(i),c(e,"resize",r,!0)),c(n,"scroll",r,!0),a&&a.disconnect()}));var s=this.root&&(this.root.ownerDocument||this.root)||t;if(n!=s){var l=e(n);l&&this._monitorIntersections(l.ownerDocument)}}},a.prototype._unmonitorIntersections=function(n){var o=this._monitoringDocuments.indexOf(n);if(-1!=o){var r=this.root&&(this.root.ownerDocument||this.root)||t;if(!this._observationTargets.some((function(t){var o=t.element.ownerDocument;if(o==n)return!0;for(;o&&o!=r;){var i=e(o);if((o=i&&i.ownerDocument)==n)return!0}return!1}))){var i=this._monitoringUnsubscribes[o];if(this._monitoringDocuments.splice(o,1),this._monitoringUnsubscribes.splice(o,1),i(),n!=r){var a=e(n);a&&this._unmonitorIntersections(a.ownerDocument)}}}},a.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},a.prototype._checkForIntersections=function(){if(this.root||!o||r){var e=this._rootIsInDom(),t=e?this._getRootRect():p();this._observationTargets.forEach((function(n){var r=n.element,a=d(r),l=this._rootContainsTarget(r),u=n.entry,c=e&&l&&this._computeTargetAndRootIntersection(r,a,t),f=null;this._rootContainsTarget(r)?o&&!this.root||(f=t):f=p();var h=n.entry=new i({time:s(),target:r,boundingClientRect:a,rootBounds:f,intersectionRect:c});u?e&&l?this._hasCrossedThreshold(u,h)&&this._queuedEntries.push(h):u&&u.isIntersecting&&this._queuedEntries.push(h):this._queuedEntries.push(h)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},a.prototype._computeTargetAndRootIntersection=function(e,n,i){if("none"!=window.getComputedStyle(e).display){for(var a=n,s=v(e),l=!1;!l&&s;){var u=null,c=1==s.nodeType?window.getComputedStyle(s):{};if("none"==c.display)return null;if(s==this.root||9==s.nodeType)if(l=!0,s==this.root||s==t)o&&!this.root?!r||0==r.width&&0==r.height?(s=null,u=null,a=null):u=r:u=i;else{var p=v(s),h=p&&d(p),m=p&&this._computeTargetAndRootIntersection(p,h,i);h&&m?(s=p,u=g(h,m)):(s=null,a=null)}else{var y=s.ownerDocument;s!=y.body&&s!=y.documentElement&&"visible"!=c.overflow&&(u=d(s))}if(u&&(a=f(u,a)),!a)break;s=s&&v(s)}return a}},a.prototype._getRootRect=function(){var e;if(this.root&&!y(this.root))e=d(this.root);else{var n=y(this.root)?this.root:t,o=n.documentElement,r=n.body;e={top:0,left:0,right:o.clientWidth||r.clientWidth,width:o.clientWidth||r.clientWidth,bottom:o.clientHeight||r.clientHeight,height:o.clientHeight||r.clientHeight}}return this._expandRectByRootMargin(e)},a.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},a.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==o)for(var r=0;r<this.thresholds.length;r++){var i=this.thresholds[r];if(i==n||i==o||i<n!=i<o)return!0}},a.prototype._rootIsInDom=function(){return!this.root||m(t,this.root)},a.prototype._rootContainsTarget=function(e){var n=this.root&&(this.root.ownerDocument||this.root)||t;return m(n,e)&&(!this.root||n==e.ownerDocument)},a.prototype._registerInstance=function(){n.indexOf(this)<0&&n.push(this)},a.prototype._unregisterInstance=function(){var e=n.indexOf(this);-1!=e&&n.splice(e,1)},window.IntersectionObserver=a,window.IntersectionObserverEntry=i}();const o=t.relativeToSelector?e.querySelector(t.relativeToSelector):null,r=new IntersectionObserver((e=>{e.forEach((e=>{n({intersectionRatio:vp(e),intersectionRect:mp(e.intersectionRect),boundingClientRect:mp(e.boundingClientRect),relativeRect:mp(e.rootBounds),time:Date.now(),dataset:pe(e.target),id:e.target.id})}))}),{root:o,rootMargin:t.rootMargin,threshold:t.thresholds});if(t.observeAll){r.USE_MUTATION_OBSERVER=!0;const n=e.querySelectorAll(t.selector);for(let e=0;e<n.length;e++)r.observe(n[e])}else{r.USE_MUTATION_OBSERVER=!1;const n=e.querySelector(t.selector);n?r.observe(n):console.warn(`Node ${t.selector} is not found. Intersection observer will not trigger.`)}return r}(i,n,o)}({reqId:this._reqId,component:this._component,options:this._options,callback:t},this._pageId))}disconnect(){this._reqId&&function({reqId:e,component:t},n){const o=bc(t),r=o.__io&&o.__io[e];r&&(r.disconnect(),delete o.__io[e])}({reqId:this._reqId,component:this._component},this._pageId)}}const vd=wf(0,((e,t)=>((e=ne(e))&&!vu(e)&&(t=e,e=null),new md(e||wu(),t))));let yd=0,bd={};const _d={canvas:rd,map:class{constructor(e,t){this.id=e,this.pageId=t}getCenterLocation(e){$f(this.id,this.pageId,"getCenterLocation",e)}moveToLocation(e){$f(this.id,this.pageId,"moveToLocation",e)}getScale(e){$f(this.id,this.pageId,"getScale",e)}getRegion(e){$f(this.id,this.pageId,"getRegion",e)}includePoints(e){$f(this.id,this.pageId,"includePoints",e)}translateMarker(e){$f(this.id,this.pageId,"translateMarker",e)}$getAppMap(){}addCustomLayer(e){$f(this.id,this.pageId,"addCustomLayer",e)}removeCustomLayer(e){$f(this.id,this.pageId,"removeCustomLayer",e)}addGroundOverlay(e){$f(this.id,this.pageId,"addGroundOverlay",e)}removeGroundOverlay(e){$f(this.id,this.pageId,"removeGroundOverlay",e)}updateGroundOverlay(e){$f(this.id,this.pageId,"updateGroundOverlay",e)}initMarkerCluster(e){$f(this.id,this.pageId,"initMarkerCluster",e)}addMarkers(e){$f(this.id,this.pageId,"addMarkers",e)}removeMarkers(e){$f(this.id,this.pageId,"removeMarkers",e)}moveAlong(e){$f(this.id,this.pageId,"moveAlong",e)}setLocMarkerIcon(e){$f(this.id,this.pageId,"setLocMarkerIcon",e)}openMapApp(e){$f(this.id,this.pageId,"openMapApp",e)}on(e,t){$f(this.id,this.pageId,"on",{name:e,callback:t})}},video:Rf,editor:class{constructor(e,t){this.id=e,this.pageId=t}format(e,t){this._exec("format",{name:e,value:t})}insertDivider(){this._exec("insertDivider")}insertImage(e){this._exec("insertImage",e)}insertText(e){this._exec("insertText",e)}setContents(e){this._exec("setContents",e)}getContents(e){this._exec("getContents",e)}clear(e){this._exec("clear",e)}removeFormat(e){this._exec("removeFormat",e)}undo(e){this._exec("undo",e)}redo(e){this._exec("redo",e)}blur(e){this._exec("blur",e)}getSelectionText(e){this._exec("getSelectionText",e)}scrollIntoView(e){this._exec("scrollIntoView",e)}_exec(e,t){!function(e,t,n,o){const r={options:o},i=o&&("success"in o||"fail"in o||"complete"in o);if(i){const e=String(yd++);r.callbackId=e,bd[e]=o}db.invokeViewMethod(`editor.${e}`,{type:n,data:r},t,(({callbackId:e,data:t})=>{i&&(ce(bd[e],t),delete bd[e])}))}(this.id,this.pageId,e,t)}}};function wd(e){if(e&&e.contextInfo){const{id:t,type:n,page:o}=e.contextInfo,r=_d[n];e.context=new r(t,o),delete e.contextInfo}}class xd{constructor(e,t,n,o){this._selectorQuery=e,this._component=t,this._selector=n,this._single=o}boundingClientRect(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,rect:!0,size:!0},e),this._selectorQuery}fields(e,t){return this._selectorQuery._push(this._selector,this._component,this._single,e,t),this._selectorQuery}scrollOffset(e){return this._selectorQuery._push(this._selector,this._component,this._single,{id:!0,dataset:!0,scrollOffset:!0},e),this._selectorQuery}context(e){return this._selectorQuery._push(this._selector,this._component,this._single,{context:!0},e),this._selectorQuery}node(e){return this._selectorQuery}}class kd{constructor(e){this._component=void 0,this._page=e,this._queue=[],this._queueCb=[]}exec(e){return Bc(this._page,this._queue,(t=>{const n=this._queueCb;t.forEach(((e,t)=>{S(e)?e.forEach(wd):wd(e);const o=n[t];N(o)&&o.call(this,e)})),N(e)&&e.call(this,t)})),this._nodesRef}in(e){return this._component=ne(e),this}select(e){return this._nodesRef=new xd(this,this._component,e,!0)}selectAll(e){return this._nodesRef=new xd(this,this._component,e,!1)}selectViewport(){return this._nodesRef=new xd(this,null,"",!0)}_push(e,t,n,o,r){this._queue.push({component:t,selector:e,single:n,fields:o}),this._queueCb.push(r)}}const Od=wf(0,(e=>((e=ne(e))&&!vu(e)&&(e=null),new kd(e||wu())))),Td={formatArgs:{}},Sd={duration:400,timingFunction:"linear",delay:0,transformOrigin:"50% 50% 0"};class Ed{constructor(e){this.actions=[],this.currentTransform={},this.currentStepAnimates=[],this.option=x({},Sd,e)}_getOption(e){const t={transition:x({},this.option,e),transformOrigin:""};return t.transformOrigin=t.transition.transformOrigin,delete t.transition.transformOrigin,t}_pushAnimates(e,t){this.currentStepAnimates.push({type:e,args:t})}_converType(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}_getValue(e){return"number"==typeof e?`${e}px`:e}export(){const e=this.actions;return this.actions=[],{actions:e}}step(e){return this.currentStepAnimates.forEach((e=>{"style"!==e.type?this.currentTransform[e.type]=e:this.currentTransform[`${e.type}.${e.args[0]}`]=e})),this.actions.push({animates:Object.values(this.currentTransform),option:this._getOption(e)}),this.currentStepAnimates=[],this}}const Cd=ue((()=>{const e=["opacity","backgroundColor"],t=["width","height","left","right","top","bottom"];["matrix","matrix3d","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","translate","translate3d","translateX","translateY","translateZ"].concat(e,t).forEach((n=>{Ed.prototype[n]=function(...o){return e.concat(t).includes(n)?this._pushAnimates("style",[this._converType(n),t.includes(n)?this._getValue(o[0]):o[0]]):this._pushAnimates(n,o),this}}))})),Ad=wf(0,(e=>(Cd(),new Ed(e))),0,Td),Nd=wf(0,(()=>{const e=Dm();return e&&e.$vm?e.$vm.$locale:_l().getLocale()})),Pd={onUnhandledRejection:[],onPageNotFound:[],onError:[],onShow:[],onHide:[]};const jd=wf(0,(()=>x({},Op)));let Ld,Id,qd;const Md=[];const Bd=xf("getPushClientId",((e,{resolve:t,reject:n})=>{Promise.resolve().then((()=>{var e,o;void 0===qd&&(qd=!1,Ld="",Id="uniPush is not enabled"),Md.push(((e,o)=>{e?t({cid:e}):n(o)})),void 0!==Ld&&(e=Ld,o=Id,Md.forEach((t=>{t(e,o)})),Md.length=0)}))})),Rd=e=>{},Dd=e=>{},$d={formatArgs:{showToast:!0},beforeInvoke(){El()},beforeSuccess(e,t){if(!t.showToast)return;const{t:n}=_l(),o=n("uni.setClipboardData.success");o&&$y({title:o,icon:"success",mask:!1})}},Fd=(Boolean,{formatArgs:{count(e,t){(!e||e<=0)&&(t.count=9)},sizeType(e,t){t.sizeType=Uc(e,Rc)},sourceType(e,t){t.sourceType=Uc(e,Dc)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}}),Ud={formatArgs:{sourceType(e,t){t.sourceType=Uc(e,Dc)},compressed:!0,maxDuration:60,camera:"back",extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=["*"])}}},Hd=(Boolean,["all","image","video"]),zd={formatArgs:{count(e,t){(!e||e<=0)&&(t.count=100)},sourceType(e,t){t.sourceType=Uc(e,Dc)},type(e,t){t.type=Fc(e,Hd)},extension(e,t){if(e instanceof Array&&0===e.length)return"param extension should not be empty.";e||(t.extension=[""])}}},Vd={formatArgs:{src(e,t){t.src=wc(e)}}},Wd={formatArgs:{urls(e,t){t.urls=e.map((e=>P(e)&&e?wc(e):""))},current(e,t){"number"==typeof e?t.current=e>0&&e<t.urls.length?e:0:P(e)&&e&&(t.current=wc(e))}}},Yd="json",Kd=["text","arraybuffer"],Xd=encodeURIComponent;ArrayBuffer,Boolean;const Gd={formatArgs:{method(e,t){t.method=Fc((e||"").toUpperCase(),$c)},data(e,t){t.data=e||""},url(e,t){t.method===$c[0]&&B(t.data)&&Object.keys(t.data).length&&(t.url=function(e,t){let n=e.split("#");const o=n[1]||"";n=n[0].split("?");let r=n[1]||"";e=n[0];const i=r.split("&").filter((e=>e)),a={};i.forEach((e=>{const t=e.split("=");a[t[0]]=t[1]}));for(const s in t)if(T(t,s)){let e=t[s];null==e?e="":B(e)&&(e=JSON.stringify(e)),a[Xd(s)]=Xd(e)}return r=Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),e+(r?"?"+r:"")+(o?"#"+o:"")}(e,t.data))},header(e,t){const n=t.header=e||{};t.method!==$c[0]&&(Object.keys(n).find((e=>"content-type"===e.toLowerCase()))||(n["Content-Type"]="application/json"))},dataType(e,t){t.dataType=(e||Yd).toLowerCase()},responseType(e,t){t.responseType=(e||"").toLowerCase(),-1===Kd.indexOf(t.responseType)&&(t.responseType="text")}}},Zd={formatArgs:{header(e,t){t.header=e||{}}}},Jd={formatArgs:{filePath(e,t){e&&(t.filePath=wc(e))},header(e,t){t.header=e||{}},formData(e,t){t.formData=e||{}}}},Qd={formatArgs:{header(e,t){t.header=e||{}},method(e,t){t.method=Fc((e||"").toUpperCase(),$c)},protocols(e,t){P(e)&&(t.protocols=[e])}}};const ep={url:{type:String,required:!0}},tp=(ap(["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"]),ap(["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"]),up("navigateTo")),np=up("redirectTo"),op=up("reLaunch"),rp=up("switchTab"),ip={formatArgs:{delta(e,t){e=parseInt(e+"")||1,t.delta=Math.min(gm().length-1,e)}}};function ap(e){return{animationType:{type:String,validator(t){if(t&&-1===e.indexOf(t))return"`"+t+"` is not supported for `animationType` (supported values are: `"+e.join("`|`")+"`)"}},animationDuration:{type:Number}}}let sp;function lp(){sp=""}function up(e){return{formatArgs:{url:cp(e)},beforeAll:lp}}function cp(e){return function(t,n){if(!t)return'Missing required args: "url"';const o=(t=function(e){if(0===e.indexOf("/"))return e;let t="";const n=gm();return n.length&&(t=n[n.length-1].$page.route),Au(t,e)}(t)).split("?")[0],r=Nu(o,!0);if(!r)return"page `"+t+"` is not found";if("navigateTo"===e||"redirectTo"===e){if(r.meta.isTabBar)return`can not ${e} a tabbar page`}else if("switchTab"===e&&!r.meta.isTabBar)return"can not switch to no-tabBar page";if("switchTab"!==e&&"preloadPage"!==e||!r.meta.isTabBar||"appLaunch"===n.openType||(t=o),r.meta.isEntry&&(t=t.replace(r.alias,"/")),n.url=function(e){if(!P(e))return e;const t=e.indexOf("?");if(-1===t)return e;const n=e.slice(t+1).trim().replace(/^(\?|#|&)/,"");if(!n)return e;e=e.slice(0,t);const o=[];return n.split("&").forEach((e=>{const t=e.replace(/\+/g," ").split("="),n=t.shift(),r=t.length>0?t.join("="):"";o.push(n+"="+encodeURIComponent(r))})),o.length?e+"?"+o.join("&"):e}(t),"unPreloadPage"!==e)if("preloadPage"!==e){if(sp===t&&"appLaunch"!==n.openType)return`${sp} locked`;__uniConfig.ready&&(sp=t)}else if(r.meta.isTabBar){const e=gm(),t=r.path.slice(1);if(e.find((e=>e.route===t)))return"tabBar page `"+t+"` already exists"}}}const fp={formatArgs:{duration:300}},dp=(Boolean,{formatArgs:{title:"",mask:!1}}),pp=(Boolean,{beforeInvoke(){Tl()},formatArgs:{title:"",content:"",placeholderText:"",showCancel:!0,editable:!1,cancelText(e,t){if(!T(t,"cancelText")){const{t:e}=_l();t.cancelText=e("uni.showModal.cancel")}},cancelColor:"#000",confirmText(e,t){if(!T(t,"confirmText")){const{t:e}=_l();t.confirmText=e("uni.showModal.confirm")}},confirmColor:"#007aff"}}),hp=["success","loading","none","error"],gp=(Boolean,{formatArgs:{title:"",icon(e,t){t.icon=Fc(e,hp)},image(e,t){t.image=e?wc(e):""},duration:1500,mask:!1}});function mp(e){const{bottom:t,height:n,left:o,right:r,top:i,width:a}=e||{};return{bottom:t,height:n,left:o,right:r,top:i,width:a}}function vp(e){const{intersectionRatio:t,boundingClientRect:{height:n,width:o},intersectionRect:{height:r,width:i}}=e;return 0!==t?t:r===n?i/o:r/n}const yp="",bp={};function _p(e,t){const n=bp[e];return n?Promise.resolve(n):/^data:[a-z-]+\/[a-z-]+;base64,/.test(e)?Promise.resolve(function(e){const t=e.split(","),n=t[0].match(/:(.*?);/),o=n?n[1]:"",r=atob(t[1]);let i=r.length;const a=new Uint8Array(i);for(;i--;)a[i]=r.charCodeAt(i);return wp(a,o)}(e)):t?Promise.reject(new Error("not find")):new Promise(((t,n)=>{const o=new XMLHttpRequest;o.open("GET",e,!0),o.responseType="blob",o.onload=function(){t(this.response)},o.onerror=n,o.send()}))}function wp(e,t){let n;if(e instanceof File)n=e;else{t=t||e.type||"";const r=`${Date.now()}${function(e){const t=e.split("/")[1];return t?`.${t}`:""}(t)}`;try{n=new File([e],r,{type:t})}catch(o){n=e=e instanceof Blob?e:new Blob([e],{type:t}),n.name=n.name||r}}return n}function xp(e){for(const n in bp)if(T(bp,n)){if(bp[n]===e)return n}var t=(window.URL||window.webkitURL).createObjectURL(e);return bp[t]=e,t}function kp(e){(window.URL||window.webkitURL).revokeObjectURL(e),delete bp[e]}const Op=Qu(),Tp=Qu();const Sp=oc({name:"ResizeSensor",props:{initial:{type:Boolean,default:!1}},emits:["resize"],setup(e,{emit:t}){const n=tn(null),o=function(e){return()=>{const{firstElementChild:t,lastElementChild:n}=e.value;t.scrollLeft=1e5,t.scrollTop=1e5,n.scrollLeft=1e5,n.scrollTop=1e5}}(n),r=function(e,t,n){const o=Ft({width:-1,height:-1});return Gn((()=>x({},o)),(e=>t("resize",e))),()=>{const t=e.value;o.width=t.offsetWidth,o.height=t.offsetHeight,n()}}(n,t,o);return function(e,t,n,o){_o(o),jo((()=>{t.initial&&Tn(n);const r=e.value;r.offsetParent!==r.parentElement&&(r.parentElement.style.position="relative"),"AnimationEvent"in window||o()}))}(n,e,r,o),()=>Zr("uni-resize-sensor",{ref:n,onAnimationstartOnce:r},[Zr("div",{onScroll:r},[Zr("div",null,null)],40,["onScroll"]),Zr("div",{onScroll:r},[Zr("div",null,null)],40,["onScroll"])],40,["onAnimationstartOnce"])}});const Ep=function(){if(navigator.userAgent.includes("jsdom"))return 1;const e=document.createElement("canvas");e.height=e.width=0;const t=e.getContext("2d"),n=t.backingStorePixelRatio||t.webkitBackingStorePixelRatio||t.mozBackingStorePixelRatio||t.msBackingStorePixelRatio||t.oBackingStorePixelRatio||t.backingStorePixelRatio||1;return(window.devicePixelRatio||1)/n}();function Cp(e,t=!0){e.width=e.offsetWidth*(t?Ep:1),e.height=e.offsetHeight*(t?Ep:1),e.getContext("2d").__hidpi__=t}let Ap=!1;function Np(){if(Ap)return;Ap=!0;const e={fillRect:"all",clearRect:"all",strokeRect:"all",moveTo:"all",lineTo:"all",arc:[0,1,2],arcTo:"all",bezierCurveTo:"all",isPointinPath:"all",isPointinStroke:"all",quadraticCurveTo:"all",rect:"all",translate:"all",createRadialGradient:"all",createLinearGradient:"all",transform:[4,5],setTransform:[4,5]},t=CanvasRenderingContext2D.prototype;var n;t.drawImageByCanvas=(n=t.drawImage,function(e,t,o,r,i,a,s,l,u,c){if(!this.__hidpi__)return n.apply(this,arguments);t*=Ep,o*=Ep,r*=Ep,i*=Ep,a*=Ep,s*=Ep,l=c?l*Ep:l,u=c?u*Ep:u,n.call(this,e,t,o,r,i,a,s,l,u)}),1!==Ep&&(!function(e,t){for(const n in e)T(e,n)&&t(e[n],n)}(e,(function(e,n){t[n]=function(t){return function(){if(!this.__hidpi__)return t.apply(this,arguments);let n=Array.prototype.slice.call(arguments);if("all"===e)n=n.map((function(e){return e*Ep}));else if(Array.isArray(e))for(let t=0;t<e.length;t++)n[e[t]]*=Ep;return t.apply(this,n)}}(t[n])})),t.stroke=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.lineWidth*=Ep,e.apply(this,arguments),this.lineWidth/=Ep}}(t.stroke),t.fillText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);const t=Array.prototype.slice.call(arguments);t[1]*=Ep,t[2]*=Ep,t[3]&&"number"==typeof t[3]&&(t[3]*=Ep);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*Ep+n})),e.apply(this,t),this.font=n}}(t.fillText),t.strokeText=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);var t=Array.prototype.slice.call(arguments);t[1]*=Ep,t[2]*=Ep,t[3]&&"number"==typeof t[3]&&(t[3]*=Ep);var n=this.font;this.font=n.replace(/(\d+\.?\d*)(px|em|rem|pt)/g,(function(e,t,n){return t*Ep+n})),e.apply(this,t),this.font=n}}(t.strokeText),t.drawImage=function(e){return function(){if(!this.__hidpi__)return e.apply(this,arguments);this.scale(Ep,Ep),e.apply(this,arguments),this.scale(1/Ep,1/Ep)}}(t.drawImage))}const Pp=ue((()=>Np()));function jp(e){return e?wc(e):e}function Lp(e){return(e=e.slice(0))[3]=e[3]/255,"rgba("+e.join(",")+")"}function Ip(e,t){Array.from(t).forEach((t=>{t.x=t.clientX-e.left,t.y=t.clientY-e.top}))}let qp;function Mp(e=0,t=0){return qp||(qp=document.createElement("canvas")),qp.width=e,qp.height=t,qp}const Bp=oc({inheritAttrs:!1,name:"Canvas",compatConfig:{MODE:3},props:{canvasId:{type:String,default:""},disableScroll:{type:[Boolean,String],default:!1},hidpi:{type:Boolean,default:!0}},computed:{id(){return this.canvasId}},setup(e,{emit:t,slots:n}){Pp();const o=tn(null),r=tn(null),i=tn(!1),a=function(e){return(t,n)=>{e(t,Bu(n))}}(t),{$attrs:s,$excludeAttrs:l,$listeners:u}=Fh({excludeListeners:!0}),{_listeners:c}=function(e,t,n){const o=yi((()=>{let o=["onTouchstart","onTouchmove","onTouchend"],r=t.value,i=x({},(()=>{let e={};for(const t in r)if(T(r,t)){const n=r[t];e[t]=n}return e})());return o.forEach((t=>{let o=[];i[t]&&o.push(lc((e=>{const o=e.currentTarget.getBoundingClientRect();Ip(o,e.touches),Ip(o,e.changedTouches),n(t.replace("on","").toLocaleLowerCase(),e)}))),e.disableScroll&&"onTouchmove"===t&&o.push(ou),i[t]=o})),i}));return{_listeners:o}}(e,u,a),{_handleSubscribe:f,_resize:d}=function(e,t,n){let o=[],r={};const i=yi((()=>e.hidpi?Ep:1));function a(n){let o=t.value;if(!n||o.width!==Math.floor(n.width*i.value)||o.height!==Math.floor(n.height*i.value))if(o.width>0&&o.height>0){let t=o.getContext("2d"),n=t.getImageData(0,0,o.width,o.height);Cp(o,e.hidpi),t.putImageData(n,0,0)}else Cp(o,e.hidpi)}function s({actions:e,reserve:i},a){if(!e)return;if(n.value)return void o.push([e,i]);let s=t.value,c=s.getContext("2d");i||(c.fillStyle="#000000",c.strokeStyle="#000000",c.shadowColor="#000000",c.shadowBlur=0,c.shadowOffsetX=0,c.shadowOffsetY=0,c.setTransform(1,0,0,1,0,0),c.clearRect(0,0,s.width,s.height)),l(e);for(let t=0;t<e.length;t++){const n=e[t];let o=n.method;const i=n.data,s=i[0];if(/^set/.test(o)&&"setTransform"!==o){const n=o[3].toLowerCase()+o.slice(4);let r;if("fillStyle"===n||"strokeStyle"===n){if("normal"===s)r=Lp(i[1]);else if("linear"===s){const e=c.createLinearGradient(...i[1]);i[2].forEach((function(t){const n=t[0],o=Lp(t[1]);e.addColorStop(n,o)})),r=e}else if("radial"===s){let e=i[1];const t=e[0],n=e[1],o=e[2],a=c.createRadialGradient(t,n,0,t,n,o);i[2].forEach((function(e){const t=e[0],n=Lp(e[1]);a.addColorStop(t,n)})),r=a}else if("pattern"===s){if(!u(i[1],e.slice(t+1),a,(function(e){e&&(c[n]=c.createPattern(e,i[2]))})))break;continue}c[n]=r}else if("globalAlpha"===n)c[n]=Number(s)/255;else if("shadow"===n){let e=["shadowOffsetX","shadowOffsetY","shadowBlur","shadowColor"];i.forEach((function(t,n){c[e[n]]="shadowColor"===e[n]?Lp(t):t}))}else if("fontSize"===n){const e=c.__font__||c.font;c.__font__=c.font=e.replace(/\d+\.?\d*px/,s+"px")}else"lineDash"===n?(c.setLineDash(s),c.lineDashOffset=i[1]||0):"textBaseline"===n?("normal"===s&&(i[0]="alphabetic"),c[n]=s):"font"===n?c.__font__=c.font=s:c[n]=s}else if("fillPath"===o||"strokePath"===o)o=o.replace(/Path/,""),c.beginPath(),i.forEach((function(e){c[e.method].apply(c,e.data)})),c[o]();else if("fillText"===o)c.fillText.apply(c,i);else if("drawImage"===o){if("break"===function(){let n=[...i],o=n[0],s=n.slice(1);if(r=r||{},!u(o,e.slice(t+1),a,(function(e){e&&c.drawImage.apply(c,[e].concat([...s.slice(4,8)],[...s.slice(0,4)]))})))return"break"}())break}else"clip"===o?(i.forEach((function(e){c[e.method].apply(c,e.data)})),c.clip()):c[o].apply(c,i)}n.value||a({errMsg:"drawCanvas:ok"})}function l(e){e.forEach((function(e){let t=e.method,n=e.data,o="";function i(){const e=r[o]=new Image;e.onload=function(){e.ready=!0},function(e){const t=document.createElement("a");return t.href=e,t.origin===location.origin?Promise.resolve(e):_p(e).then(xp)}(o).then((t=>{e.src=t})).catch((()=>{e.src=o}))}"drawImage"===t?(o=n[0],o=jp(o),n[0]=o):"setFillStyle"===t&&"pattern"===n[0]&&(o=n[1],o=jp(o),n[1]=o),o&&!r[o]&&i()}))}function u(e,t,i,a){let l=r[e];return l.ready?(a(l),!0):(o.unshift([t,!0]),n.value=!0,l.onload=function(){l.ready=!0,a(l),n.value=!1;let e=o.slice(0);o=[];for(let t=e.shift();t;)s({actions:t[0],reserve:t[1]},i),t=e.shift()},!1)}function c({x:e=0,y:n=0,width:o,height:r,destWidth:a,destHeight:s,hidpi:l=!0,dataType:u,quality:c=1,type:f="png"},d){const p=t.value;let h;const g=p.offsetWidth-e;o=o?Math.min(o,g):g;const m=p.offsetHeight-n;r=r?Math.min(r,m):m,l?(a=o,s=r):a||s?a?s||(s=Math.round(r/o*a)):a=Math.round(o/r*s):(a=Math.round(o*i.value),s=Math.round(r*i.value));const v=Mp(a,s),y=v.getContext("2d");let b;"jpeg"!==f&&"jpg"!==f||(f="jpeg",y.fillStyle="#fff",y.fillRect(0,0,a,s)),y.__hidpi__=!0,y.drawImageByCanvas(p,e,n,o,r,0,0,a,s,!1);try{let e;if("base64"===u)h=v.toDataURL(`image/${f}`,c);else{const e=y.getImageData(0,0,a,s);h=Array.prototype.slice.call(e.data)}b={data:h,compressed:e,width:a,height:s}}catch(_){b={errMsg:`canvasGetImageData:fail ${_}`}}if(v.height=v.width=0,y.__hidpi__=!1,!d)return b;d(b)}function f({data:e,x:n,y:o,width:r,height:i,compressed:a},s){try{0,i||(i=Math.round(e.length/4/r));const a=Mp(r,i);a.getContext("2d").putImageData(new ImageData(new Uint8ClampedArray(e),r,i),0,0),t.value.getContext("2d").drawImage(a,n,o,r,i),a.height=a.width=0}catch(l){return void s({errMsg:"canvasPutImageData:fail"})}s({errMsg:"canvasPutImageData:ok"})}function d({x:e=0,y:t=0,width:n,height:o,destWidth:r,destHeight:i,fileType:a,quality:s,dirname:l},u){const f=c({x:e,y:t,width:n,height:o,destWidth:r,destHeight:i,hidpi:!1,dataType:"base64",type:a,quality:s});var d;f.data&&f.data.length?(d=f.data,((e,t)=>{let n="toTempFilePath:"+(e?"fail":"ok");e&&(n+=` ${e.message}`),u({errMsg:n,tempFilePath:t})})(null,d)):u({errMsg:f.errMsg.replace("canvasPutImageData","toTempFilePath")})}const p={actionsChanged:s,getImageData:c,putImageData:f,toTempFilePath:d};function h(e,t,n){let o=p[e];0!==e.indexOf("_")&&N(o)&&o(t,n)}return x(p,{_resize:a,_handleSubscribe:h})}(e,o,i);return Ug(f,zg(e.canvasId),!0),jo((()=>{d()})),()=>{const{canvasId:t,disableScroll:i}=e;return Zr("uni-canvas",ri({"canvas-id":t,"disable-scroll":i},s.value,l.value,c.value),[Zr("canvas",{ref:o,class:"uni-canvas-canvas",width:"300",height:"150"},null,512),Zr("div",{style:"position: absolute;top: 0;left: 0;width: 100%;height: 100%;overflow: hidden;"},[n.default&&n.default()]),Zr(Sp,{ref:r,onResize:d},null,8,["onResize"])],16,["canvas-id","disable-scroll"])}}});const Rp=cu("ucg"),Dp=oc({name:"CheckboxGroup",props:{name:{type:String,default:""}},emits:["change"],setup(e,{emit:t,slots:n}){const o=tn(null);return function(e,t){const n=[],o=()=>n.reduce(((e,t)=>(t.value.checkboxChecked&&e.push(t.value.value),e)),new Array);Wn(Rp,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},checkboxChange(e){t("change",e,{value:o()})}});const r=Yn(cc,!1);r&&r.addField({submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}})}(e,uc(o,t)),()=>Zr("uni-checkbox-group",{ref:o},[n.default&&n.default()],512)}});const $p=oc({name:"Checkbox",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:""}},setup(e,{slots:t}){const n=tn(e.checked),o=tn(e.value),r=yi((()=>{if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const t={};return n.value?(e.activeBorderColor&&(t.borderColor=e.activeBorderColor),e.activeBackgroundColor&&(t.backgroundColor=e.activeBackgroundColor)):(e.borderColor&&(t.borderColor=e.borderColor),e.backgroundColor&&(t.backgroundColor=e.backgroundColor)),t}));Gn([()=>e.checked,()=>e.value],(([e,t])=>{n.value=e,o.value=t}));const{uniCheckGroup:i,uniLabel:a}=function(e,t,n){const o=yi((()=>({checkboxChecked:Boolean(e.value),value:t.value}))),r={reset:n},i=Yn(Rp,!1);i&&i.addField(o);const a=Yn(cc,!1);a&&a.addField(r);const s=Yn(pc,!1);return qo((()=>{i&&i.removeField(o),a&&a.removeField(r)})),{uniCheckGroup:i,uniForm:a,uniLabel:s}}(n,o,(()=>{n.value=!1})),s=t=>{e.disabled||(n.value=!n.value,i&&i.checkboxChange(t),t.stopPropagation())};return a&&(a.addHandler(s),qo((()=>{a.removeHandler(s)}))),gc(e,{"label-click":s}),()=>{const o=sc(e,"disabled");return Zr("uni-checkbox",ri(o,{onClick:s}),[Zr("div",{class:"uni-checkbox-wrapper",style:{"--HOVER-BD-COLOR":e.activeBorderColor}},[Zr("div",{class:["uni-checkbox-input",{"uni-checkbox-input-disabled":e.disabled}],style:r.value},[n.value?gu(pu,e.disabled?"#ADADAD":e.iconColor||e.color,22):""],6),t.default&&t.default()],4)],16,["onClick"])}}});function Fp(){}const Up={cursorSpacing:{type:[Number,String],default:0},showConfirmBar:{type:[Boolean,String],default:"auto"},adjustPosition:{type:[Boolean,String],default:!0},autoBlur:{type:[Boolean,String],default:!1}},Hp=["keyboardheightchange"];function zp(e,t,n){function o(e){const t=yi((()=>0===String(navigator.vendor).indexOf("Apple")));e.addEventListener("focus",(()=>{clearTimeout(undefined),document.addEventListener("click",Fp,!1)}));e.addEventListener("blur",(()=>{t.value&&e.blur(),document.removeEventListener("click",Fp,!1),t.value&&document.documentElement.scrollTo(document.documentElement.scrollLeft,document.documentElement.scrollTop)}))}Gn((()=>t.value),(e=>e&&o(e)))}var Vp=/^<([-A-Za-z0-9_]+)((?:\s+[a-zA-Z_:][-a-zA-Z0-9_:.]*(?:\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|[^>\s]+))?)*)\s*(\/?)>/,Wp=/^<\/([-A-Za-z0-9_]+)[^>]*>/,Yp=/([a-zA-Z_:][-a-zA-Z0-9_:.]*)(?:\s*=\s*(?:(?:"((?:\\.|[^"])*)")|(?:'((?:\\.|[^'])*)')|([^>\s]+)))?/g,Kp=th("area,base,basefont,br,col,frame,hr,img,input,link,meta,param,embed,command,keygen,source,track,wbr"),Xp=th("a,address,article,applet,aside,audio,blockquote,button,canvas,center,dd,del,dir,div,dl,dt,fieldset,figcaption,figure,footer,form,frameset,h1,h2,h3,h4,h5,h6,header,hgroup,hr,iframe,isindex,li,map,menu,noframes,noscript,object,ol,output,p,pre,section,script,table,tbody,td,tfoot,th,thead,tr,ul,video"),Gp=th("abbr,acronym,applet,b,basefont,bdo,big,br,button,cite,code,del,dfn,em,font,i,iframe,img,input,ins,kbd,label,map,object,q,s,samp,script,select,small,span,strike,strong,sub,sup,textarea,tt,u,var"),Zp=th("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr"),Jp=th("checked,compact,declare,defer,disabled,ismap,multiple,nohref,noresize,noshade,nowrap,readonly,selected"),Qp=th("script,style");function eh(e,t){var n,o,r,i=[],a=e;for(i.last=function(){return this[this.length-1]};e;){if(o=!0,i.last()&&Qp[i.last()])e=e.replace(new RegExp("([\\s\\S]*?)</"+i.last()+"[^>]*>"),(function(e,n){return n=n.replace(/<!--([\s\S]*?)-->|<!\[CDATA\[([\s\S]*?)]]>/g,"$1$2"),t.chars&&t.chars(n),""})),u("",i.last());else if(0==e.indexOf("\x3c!--")?(n=e.indexOf("--\x3e"))>=0&&(t.comment&&t.comment(e.substring(4,n)),e=e.substring(n+3),o=!1):0==e.indexOf("</")?(r=e.match(Wp))&&(e=e.substring(r[0].length),r[0].replace(Wp,u),o=!1):0==e.indexOf("<")&&(r=e.match(Vp))&&(e=e.substring(r[0].length),r[0].replace(Vp,l),o=!1),o){var s=(n=e.indexOf("<"))<0?e:e.substring(0,n);e=n<0?"":e.substring(n),t.chars&&t.chars(s)}if(e==a)throw"Parse Error: "+e;a=e}function l(e,n,o,r){if(n=n.toLowerCase(),Xp[n])for(;i.last()&&Gp[i.last()];)u("",i.last());if(Zp[n]&&i.last()==n&&u("",n),(r=Kp[n]||!!r)||i.push(n),t.start){var a=[];o.replace(Yp,(function(e,t){var n=arguments[2]?arguments[2]:arguments[3]?arguments[3]:arguments[4]?arguments[4]:Jp[t]?t:"";a.push({name:t,value:n,escaped:n.replace(/(^|[^\\])"/g,'$1\\"')})})),t.start&&t.start(n,a,r)}}function u(e,n){if(n)for(o=i.length-1;o>=0&&i[o]!=n;o--);else var o=0;if(o>=0){for(var r=i.length-1;r>=o;r--)t.end&&t.end(i[r]);i.length=o}}u()}function th(e){for(var t={},n=e.split(","),o=0;o<n.length;o++)t[n[o]]=!0;return t}const nh={};function oh(e,t,n){if(P(e)?window[e]:e)return void n();let o=nh[t];if(!o){o=nh[t]=[];const e=document.createElement("script");e.src=t,document.body.appendChild(e),e.onload=function(){o.forEach((e=>e())),delete nh[t]}}o.push(n)}function rh(e){const t=e.import("blots/block/embed");class n extends t{}return n.blotName="divider",n.tagName="HR",{"formats/divider":n}}function ih(e){const t=e.import("blots/inline");class n extends t{}return n.blotName="ins",n.tagName="INS",{"formats/ins":n}}function ah(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.BLOCK,whitelist:["left","right","center","justify"]};return{"formats/align":new n.Style("align","text-align",o)}}function sh(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.BLOCK,whitelist:["rtl"]};return{"formats/direction":new n.Style("direction","direction",o)}}function lh(e){const t=e.import("parchment"),n=e.import("blots/container"),o=e.import("formats/list/item");class r extends n{static create(e){const t="ordered"===e?"OL":"UL",n=super.create(t);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}static formats(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}constructor(e){super(e);e.addEventListener("click",(n=>{if(n.target.parentNode!==e)return;const o=this.statics.formats(e),r=t.find(n.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}))}format(e,t){this.children.length>0&&this.children.tail.format(e,t)}formats(){return{[this.statics.blotName]:this.statics.formats(this.domNode)}}insertBefore(e,t){if(e instanceof o)super.insertBefore(e,t);else{const n=null==t?this.length():t.offset(this),o=this.split(n);o.parent.insertBefore(e,o)}}optimize(e){super.optimize(e);const t=this.next;null!=t&&t.prev===this&&t.statics.blotName===this.statics.blotName&&t.domNode.tagName===this.domNode.tagName&&t.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(t.moveChildren(this),t.remove())}replace(e){if(e.statics.blotName!==this.statics.blotName){const n=t.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}super.replace(e)}}return r.blotName="list",r.scope=t.Scope.BLOCK_BLOT,r.tagName=["OL","UL"],r.defaultChild="list-item",r.allowedChildren=[o],{"formats/list":r}}function uh(e){const{Scope:t}=e.import("parchment");return{"formats/backgroundColor":new(e.import("formats/background").constructor)("backgroundColor","background-color",{scope:t.INLINE})}}function ch(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.BLOCK},r={};return["margin","marginTop","marginBottom","marginLeft","marginRight"].concat(["padding","paddingTop","paddingBottom","paddingLeft","paddingRight"]).forEach((e=>{r[`formats/${e}`]=new n.Style(e,z(e),o)})),r}function fh(e){const{Scope:t,Attributor:n}=e.import("parchment"),o={scope:t.INLINE},r={};return["font","fontSize","fontStyle","fontVariant","fontWeight","fontFamily"].forEach((e=>{r[`formats/${e}`]=new n.Style(e,z(e),o)})),r}function dh(e){const{Scope:t,Attributor:n}=e.import("parchment"),o=[{name:"lineHeight",scope:t.BLOCK},{name:"letterSpacing",scope:t.INLINE},{name:"textDecoration",scope:t.INLINE},{name:"textIndent",scope:t.BLOCK}],r={};return o.forEach((({name:e,scope:t})=>{r[`formats/${e}`]=new n.Style(e,z(e),{scope:t})})),r}function ph(e){const t=e.import("formats/image"),n=["alt","height","width","data-custom","class","data-local"];t.sanitize=e=>e?wc(e):e,t.formats=function(e){return n.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})};const o=t.prototype.format;t.prototype.format=function(e,t){n.indexOf(e)>-1?t?this.domNode.setAttribute(e,t):this.domNode.removeAttribute(e):o.call(this,e,t)}}function hh(e){const t=e.import("formats/link");t.sanitize=e=>{const n=document.createElement("a");n.href=e;const o=n.href.slice(0,n.href.indexOf(":"));return t.PROTOCOL_WHITELIST.concat("file").indexOf(o)>-1?e:t.SANITIZED_URL}}function gh(e,t,n){let o,r,i;function a(){return{html:i.root.innerHTML,text:i.getText(),delta:i.getContents()}}function s(e){const t="data-placeholder",n=i.root;n.getAttribute(t)!==e&&n.setAttribute(t,e)}Gn((()=>e.readOnly),(e=>{o&&(i.enable(!e),e||i.blur())})),Gn((()=>e.placeholder),(e=>{o&&s(e)}));let l={};function u(e){const t=e?i.getFormat(e):{},o=Object.keys(t);(o.length!==Object.keys(l).length||o.find((e=>t[e]!==l[e])))&&(l=t,n("statuschange",{},t))}function c(){n("input",{},a())}function f(l){const f=window.Quill;!function(e){const t={divider:rh,ins:ih,align:ah,direction:sh,list:lh,background:uh,box:ch,font:fh,text:dh,image:ph,link:hh},n={};Object.values(t).forEach((t=>x(n,t(e)))),e.register(n,!0)}(f);const d={toolbar:!1,readOnly:e.readOnly,placeholder:e.placeholder};l.length&&(f.register("modules/ImageResize",window.ImageResize.default),d.modules={ImageResize:{modules:l}});const p=t.value;i=new f(p,d);const h=i.root;["focus","blur","input"].forEach((t=>{h.addEventListener(t,(o=>{const r=a();if("input"===t){if("ios"===Lc().platform){const t=(r.html.match(/<span [\s\S]*>([\s\S]*)<\/span>/)||[])[1];s(t&&t.replace(/\s/g,"")?"":e.placeholder)}o.stopPropagation()}else n(t,o,r)}))})),i.on("text-change",c),i.on("selection-change",u),i.on("scroll-optimize",(()=>{u(i.selection.getRange()[0])})),i.clipboard.addMatcher(Node.ELEMENT_NODE,((e,t)=>(r||t.ops&&(t.ops=t.ops.filter((({insert:e})=>P(e))).map((({insert:e})=>({insert:e})))),t))),o=!0,n("ready",{},{})}Ug(((e,t,n)=>{const{options:s,callbackId:l}=t;let f,d,p;if(o){const t=window.Quill;switch(e){case"format":{let{name:e="",value:t=!1}=s;d=i.getSelection(!0);let n=i.getFormat(d)[e]||!1;if(["bold","italic","underline","strike","ins"].includes(e))t=!n;else if("direction"===e){t=("rtl"!==t||!n)&&t;const e=i.getFormat(d).align;"rtl"!==t||e?t||"right"!==e||i.format("align",!1,"user"):i.format("align","right","user")}else if("indent"===e){const e="rtl"===i.getFormat(d).direction;t="+1"===t,e&&(t=!t),t=t?"+1":"-1"}else"list"===e&&(t="check"===t?"unchecked":t,n="checked"===n?"unchecked":n),t=n&&n!==(t||!1)||!n&&t?t:!n;i.format(e,t,"user")}break;case"insertDivider":d=i.getSelection(!0),i.insertText(d.index,"\n","user"),i.insertEmbed(d.index+1,"divider",!0,"user"),i.setSelection(d.index+2,0,"silent");break;case"insertImage":{d=i.getSelection(!0);const{src:e="",alt:t="",width:n="",height:o="",extClass:r="",data:a={}}=s,l=wc(e);i.insertEmbed(d.index,"image",l,"silent");const u=!!/^(file|blob):/.test(l)&&l;i.formatText(d.index,1,"data-local",u,"silent"),i.formatText(d.index,1,"alt",t,"silent"),i.formatText(d.index,1,"width",n,"silent"),i.formatText(d.index,1,"height",o,"silent"),i.formatText(d.index,1,"class",r,"silent"),i.formatText(d.index,1,"data-custom",Object.keys(a).map((e=>`${e}=${a[e]}`)).join("&"),"silent"),i.setSelection(d.index+1,0,"silent"),i.scrollIntoView(),setTimeout((()=>{c()}),1e3)}break;case"insertText":{d=i.getSelection(!0);const{text:e=""}=s;i.insertText(d.index,e,"user"),i.setSelection(d.index+e.length,0,"silent")}break;case"setContents":{const{delta:e,html:t}=s;"object"==typeof e?i.setContents(e,"silent"):P(t)?i.setContents(function(e){const t=["span","strong","b","ins","em","i","u","a","del","s","sub","sup","img","div","p","h1","h2","h3","h4","h5","h6","hr","ol","ul","li","br"];let n,o="";eh(e,{start:function(e,r,i){if(!t.includes(e))return void(n=!i);n=!1;const a=r.map((({name:e,value:t})=>`${e}="${t}"`)).join(" ");o+=`<${e} ${a} ${i?"/":""}>`},end:function(e){n||(o+=`</${e}>`)},chars:function(e){n||(o+=e)}}),r=!0;const a=i.clipboard.convert(o);return r=!1,a}(t),"silent"):p="contents is missing"}break;case"getContents":f=a();break;case"clear":i.setText("");break;case"removeFormat":{d=i.getSelection(!0);const e=t.import("parchment");d.length?i.removeFormat(d.index,d.length,"user"):Object.keys(i.getFormat(d)).forEach((t=>{e.query(t,e.Scope.INLINE)&&i.format(t,!1)}))}break;case"undo":i.history.undo();break;case"redo":i.history.redo();break;case"blur":i.blur();break;case"getSelectionText":d=i.selection.savedRange,f={text:""},d&&0!==d.length&&(f.text=i.getText(d.index,d.length));break;case"scrollIntoView":i.scrollIntoView()}u(d)}else p="not ready";l&&n({callbackId:l,data:x({},f,{errMsg:`${e}:${p?"fail "+p:"ok"}`})})}),zg(),!0),jo((()=>{const t=[];e.showImgSize&&t.push("DisplaySize"),e.showImgToolbar&&t.push("Toolbar"),e.showImgResize&&t.push("Resize");oh(window.Quill,"https://unpkg.com/quill@1.3.7/dist/quill.min.js",(()=>{if(t.length){const e="https://unpkg.com/quill-image-resize-mp@3.0.1/image-resize.min.js";oh(window.ImageResize,e,(()=>{f(t)}))}else f(t)}))}))}const mh=oc({name:"Editor",props:x({},Up,{id:{type:String,default:""},readOnly:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},showImgSize:{type:[Boolean,String],default:!1},showImgToolbar:{type:[Boolean,String],default:!1},showImgResize:{type:[Boolean,String],default:!1}}),emit:["ready","focus","blur","input","statuschange",...Hp],setup(e,{emit:t}){const n=tn(null),o=uc(n,t);return gh(e,n,o),zp(0,n),()=>Zr("uni-editor",{ref:n,id:e.id,class:"ql-container"},null,8,["id"])}}),vh={src:{type:String,default:""},mode:{type:String,default:"scaleToFill"},lazyLoad:{type:[Boolean,String],default:!1},draggable:{type:Boolean,default:!1}},yh={widthFix:["offsetWidth","height",(e,t)=>e/t],heightFix:["offsetHeight","width",(e,t)=>e*t]},bh={aspectFit:["center center","contain"],aspectFill:["center center","cover"],widthFix:[,"100% 100%"],heightFix:[,"100% 100%"],top:["center top"],bottom:["center bottom"],center:["center center"],left:["left center"],right:["right center"],"top left":["left top"],"top right":["right top"],"bottom left":["left bottom"],"bottom right":["right bottom"]},_h=oc({name:"Image",props:vh,setup(e,{emit:t}){const n=tn(null),o=function(e,t){const n=tn(""),o=yi((()=>{let e="auto",o="";const r=bh[t.mode];return r?(r[0]&&(o=r[0]),r[1]&&(e=r[1])):(o="0% 0%",e="100% 100%"),`background-image:${n.value?'url("'+n.value+'")':"none"};background-position:${o};background-size:${e};`})),r=Ft({rootEl:e,src:yi((()=>t.src?wc(t.src):"")),origWidth:0,origHeight:0,origStyle:{width:"",height:""},modeStyle:o,imgSrc:n});return jo((()=>{const t=e.value.style;r.origWidth=Number(t.width)||0,r.origHeight=Number(t.height)||0})),r}(n,e),r=uc(n,t),{fixSize:i}=function(e,t,n){const o=()=>{const{mode:o}=t,r=yh[o];if(!r)return;const{origWidth:i,origHeight:a}=n,s=i&&a?i/a:0;if(!s)return;const l=e.value,u=l[r[0]];u&&(l.style[r[1]]=function(e){wh&&e>10&&(e=2*Math.round(e/2));return e}(r[2](u,s))+"px")},r=()=>{const{style:t}=e.value,{origStyle:{width:o,height:r}}=n;t.width=o,t.height=r};return Gn((()=>t.mode),((e,t)=>{yh[t]&&r(),yh[e]&&o()})),{fixSize:o,resetSize:r}}(n,e,o);return function(e,t,n,o,r){let i,a;const s=(t=0,n=0,o="")=>{e.origWidth=t,e.origHeight=n,e.imgSrc=o},l=l=>{if(!l)return u(),void s();i=i||new Image,i.onload=e=>{const{width:c,height:f}=i;s(c,f,l),o(),i.draggable=t.draggable,a&&a.remove(),a=i,n.value.appendChild(i),u(),r("load",e,{width:c,height:f})},i.onerror=t=>{s(),u(),r("error",t,{errMsg:`GET ${e.src} 404 (Not Found)`})},i.src=l},u=()=>{i&&(i.onload=null,i.onerror=null,i=null)};Gn((()=>e.src),(e=>l(e))),Gn((()=>e.imgSrc),(e=>{!e&&a&&(a.remove(),a=null)})),jo((()=>l(e.src))),qo((()=>u()))}(o,e,n,i,r),()=>Zr("uni-image",{ref:n},[Zr("div",{style:o.modeStyle},null,4),yh[e.mode]?Zr(Sp,{onResize:i},null,8,["onResize"]):Zr("span",null,null)],512)}});const wh="Google Inc."===navigator.vendor;const xh=ge(!0),kh=[];let Oh,Th=0;const Sh=e=>kh.forEach((t=>t.userAction=e));function Eh(e={userAction:!1}){if(!Oh){["touchstart","touchmove","touchend","mousedown","mouseup"].forEach((e=>{document.addEventListener(e,(function(){!Th&&Sh(!0),Th++,setTimeout((()=>{!--Th&&Sh(!1)}),0)}),xh)})),Oh=!0}kh.push(e)}const Ch=()=>!!Th;function Ah(){const e=Ft({userAction:!1});return jo((()=>{Eh(e)})),qo((()=>{!function(e){const t=kh.indexOf(e);t>=0&&kh.splice(t,1)}(e)})),{state:e}}function Nh(e,t){const n=document.activeElement;if(!n)return t({});const o={};["input","textarea"].includes(n.tagName.toLowerCase())&&(o.start=n.selectionStart,o.end=n.selectionEnd),t(o)}function Ph(e,t){return"number"===t&&isNaN(Number(e))&&(e=""),null===e?"":String(e)}const jh=["none","text","decimal","numeric","tel","search","email","url"],Lh=x({},{name:{type:String,default:""},modelValue:{type:[String,Number],default:""},value:{type:[String,Number],default:""},disabled:{type:[Boolean,String],default:!1},autoFocus:{type:[Boolean,String],default:!1},focus:{type:[Boolean,String],default:!1},cursor:{type:[Number,String],default:-1},selectionStart:{type:[Number,String],default:-1},selectionEnd:{type:[Number,String],default:-1},type:{type:String,default:"text"},password:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},placeholderStyle:{type:String,default:""},placeholderClass:{type:String,default:""},maxlength:{type:[Number,String],default:140},confirmType:{type:String,default:"done"},confirmHold:{type:Boolean,default:!1},ignoreCompositionEvent:{type:Boolean,default:!0},step:{type:String,default:"0.000000000000000001"},inputmode:{type:String,default:void 0,validator:e=>!!~jh.indexOf(e)}},Up),Ih=["input","focus","blur","update:value","update:modelValue","update:focus","compositionstart","compositionupdate","compositionend",...Hp];function qh(e,t,n,o){const r=we((n=>{t.value=Ph(n,e.type)}),100,{setTimeout:setTimeout,clearTimeout:clearTimeout});Gn((()=>e.modelValue),r),Gn((()=>e.value),r);const i=function(e,t){let n,o,r=0;const i=function(...i){const a=Date.now();clearTimeout(n),o=()=>{o=null,r=a,e.apply(this,i)},a-r<t?n=setTimeout(o,t-(a-r)):o()};return i.cancel=function(){clearTimeout(n),o=null},i.flush=function(){clearTimeout(n),o&&o()},i}(((e,t)=>{r.cancel(),n("update:modelValue",t.value),n("update:value",t.value),o("input",e,t)}),100);return Po((()=>{r.cancel(),i.cancel()})),{trigger:o,triggerInput:(e,t,n)=>{r.cancel(),i(e,t),n&&i.flush()}}}function Mh(e,t){Ah();const n=yi((()=>e.autoFocus||e.focus));function o(){if(!n.value)return;const e=t.value;e?e.focus():setTimeout(o,100)}Gn((()=>e.focus),(e=>{e?o():function(){const e=t.value;e&&e.blur()}()})),jo((()=>{n.value&&Tn(o)}))}function Bh(e,t,n,o){Ll(_u(),"getSelectedTextRange",Nh);const{fieldRef:r,state:i,trigger:a}=function(e,t,n){const o=tn(null),r=uc(t,n),i=yi((()=>{const t=Number(e.selectionStart);return isNaN(t)?-1:t})),a=yi((()=>{const t=Number(e.selectionEnd);return isNaN(t)?-1:t})),s=yi((()=>{const t=Number(e.cursor);return isNaN(t)?-1:t})),l=yi((()=>{var t=Number(e.maxlength);return isNaN(t)?140:t})),u=Ph(e.modelValue,e.type)||Ph(e.value,e.type),c=Ft({value:u,valueOrigin:u,maxlength:l,focus:e.focus,composing:!1,selectionStart:i,selectionEnd:a,cursor:s});return Gn((()=>c.focus),(e=>n("update:focus",e))),Gn((()=>c.maxlength),(e=>c.value=c.value.slice(0,e))),{fieldRef:o,state:c,trigger:r}}(e,t,n),{triggerInput:s}=qh(e,i,n,a);Mh(e,r),zp(0,r);const{state:l}=function(){const e=Ft({attrs:{}});return jo((()=>{let t=ui();for(;t;){const n=t.type.__scopeId;n&&(e.attrs[n]=""),t=t.proxy&&"page"===t.proxy.$mpType?null:t.parent}})),{state:e}}();!function(e,t){const n=Yn(cc,!1);if(!n)return;const o=ui(),r={submit(){const n=o.proxy;return[n[e],P(t)?n[t]:t.value]},reset(){P(t)?o.proxy[t]="":t.value=""}};n.addField(r),qo((()=>{n.removeField(r)}))}("name",i),function(e,t,n,o,r,i){function a(){const n=e.value;n&&t.focus&&t.selectionStart>-1&&t.selectionEnd>-1&&"number"!==n.type&&(n.selectionStart=t.selectionStart,n.selectionEnd=t.selectionEnd)}function s(){const n=e.value;n&&t.focus&&t.selectionStart<0&&t.selectionEnd<0&&t.cursor>-1&&"number"!==n.type&&(n.selectionEnd=n.selectionStart=t.cursor)}function l(e){return"number"===e.type?null:e.selectionEnd}Gn([()=>t.selectionStart,()=>t.selectionEnd],a),Gn((()=>t.cursor),s),Gn((()=>e.value),(function(){const u=e.value;if(!u)return;const c=function(e,o){e.stopPropagation(),N(i)&&!1===i(e,t)||(t.value=u.value,t.composing&&n.ignoreCompositionEvent||r(e,{value:u.value,cursor:l(u)},o))};function f(e){n.ignoreCompositionEvent||o(e.type,e,{value:e.data})}u.addEventListener("change",(e=>e.stopPropagation())),u.addEventListener("focus",(function(e){t.focus=!0,o("focus",e,{value:t.value}),a(),s()})),u.addEventListener("blur",(function(e){t.composing&&(t.composing=!1,c(e,!0)),t.focus=!1,o("blur",e,{value:t.value,cursor:l(e.target)})})),u.addEventListener("input",c),u.addEventListener("compositionstart",(e=>{e.stopPropagation(),t.composing=!0,f(e)})),u.addEventListener("compositionend",(e=>{e.stopPropagation(),t.composing&&(t.composing=!1,c(e)),f(e)})),u.addEventListener("compositionupdate",f)}))}(r,i,e,a,s,o);return{fieldRef:r,state:i,scopedAttrsState:l,fixDisabledColor:0===String(navigator.vendor).indexOf("Apple")&&CSS.supports("image-orientation:from-image"),trigger:a}}const Rh=oc({name:"Input",props:x({},Lh,{placeholderClass:{type:String,default:"input-placeholder"},textContentType:{type:String,default:""}}),emits:["confirm",...Ih],setup(e,{emit:t}){const n=["text","number","idcard","digit","password","tel"],o=["off","one-time-code"],r=yi((()=>{let t="";switch(e.type){case"text":"search"===e.confirmType&&(t="search");break;case"idcard":t="text";break;case"digit":t="number";break;default:t=~n.includes(e.type)?e.type:"text"}return e.password?"password":t})),i=yi((()=>{const t=o.indexOf(e.textContentType),n=o.indexOf(z(e.textContentType));return o[-1!==t?t:-1!==n?n:0]}));let a,s=tn("");const l=tn(null),{fieldRef:u,state:c,scopedAttrsState:f,fixDisabledColor:d,trigger:p}=Bh(e,l,t,((e,t)=>{const n=e.target;if("number"===r.value){if(a&&(n.removeEventListener("blur",a),a=null),n.validity&&!n.validity.valid){if((!s.value||!n.value)&&"-"===e.data||"-"===s.value[0]&&"deleteContentBackward"===e.inputType)return s.value="-",t.value="",a=()=>{s.value=n.value=""},n.addEventListener("blur",a),!1;if(s.value)if(-1!==s.value.indexOf(".")){if("."!==e.data&&"deleteContentBackward"===e.inputType){const e=s.value.indexOf(".");return s.value=n.value=t.value=s.value.slice(0,e),!0}}else if("."===e.data)return s.value+=".",a=()=>{s.value=n.value=s.value.slice(0,-1)},n.addEventListener("blur",a),!1;return s.value=t.value=n.value="-"===s.value?"":s.value,!1}s.value=n.value;const o=t.maxlength;if(o>0&&n.value.length>o)return n.value=n.value.slice(0,o),t.value=n.value,!1}}));Gn((()=>c.value),(t=>{"number"!==e.type||"-"===s.value&&""===t||(s.value=t)}));const h=["number","digit"],g=yi((()=>h.includes(e.type)?e.step:""));function m(t){if("Enter"!==t.key)return;const n=t.target;t.stopPropagation(),p("confirm",t,{value:n.value}),!e.confirmHold&&n.blur()}return()=>{let t=e.disabled&&d?Zr("input",{key:"disabled-input",ref:u,value:c.value,tabindex:"-1",readonly:!!e.disabled,type:r.value,maxlength:c.maxlength,step:g.value,class:"uni-input-input",onFocus:e=>e.target.blur()},null,40,["value","readonly","type","maxlength","step","onFocus"]):Fo(Zr("input",{key:"input",ref:u,"onUpdate:modelValue":e=>c.value=e,disabled:!!e.disabled,type:r.value,maxlength:c.maxlength,step:g.value,enterkeyhint:e.confirmType,pattern:"number"===e.type?"[0-9]*":void 0,class:"uni-input-input",autocomplete:i.value,onKeyup:m,inputmode:e.inputmode},null,40,["onUpdate:modelValue","disabled","type","maxlength","step","enterkeyhint","pattern","autocomplete","onKeyup","inputmode"]),[[ma,c.value]]);return Zr("uni-input",{ref:l},[Zr("div",{class:"uni-input-wrapper"},[Fo(Zr("div",ri(f.attrs,{style:e.placeholderStyle,class:["uni-input-placeholder",e.placeholderClass]}),[e.placeholder],16),[[wa,!(c.value.length||"-"===s.value)]]),"search"===e.confirmType?Zr("form",{action:"",onSubmit:e=>e.preventDefault(),class:"uni-input-form"},[t],40,["onSubmit"]):t])],512)}}});const Dh=["class","style"],$h=/^on[A-Z]+/,Fh=(e={})=>{const{excludeListeners:t=!1,excludeKeys:n=[]}=e,o=ui(),r=nn({}),i=nn({}),a=nn({}),s=n.concat(Dh);return o.attrs=Ft(o.attrs),Kn((()=>{const e=(n=o.attrs,Object.keys(n).map((e=>[e,n[e]]))).reduce(((e,[n,o])=>(s.includes(n)?e.exclude[n]=o:$h.test(n)?(t||(e.attrs[n]=o),e.listeners[n]=o):e.attrs[n]=o,e)),{exclude:{},attrs:{},listeners:{}});var n;r.value=e.attrs,i.value=e.listeners,a.value=e.exclude})),{$attrs:r,$listeners:i,$excludeAttrs:a}};function Uh(e){const t=[];return S(e)&&e.forEach((e=>{Vr(e)?e.type===Lr?t.push(...Uh(e.children)):t.push(e):S(e)&&t.push(...Uh(e))})),t}const Hh=oc({inheritAttrs:!1,name:"MovableArea",props:{scaleArea:{type:Boolean,default:!1}},setup(e,{slots:t}){const n=tn(null),o=tn(!1);let{setContexts:r,events:i}=function(e,t){const n=tn(0),o=tn(0),r=Ft({x:null,y:null}),i=tn(null);let a=null,s=[];function l(t){t&&1!==t&&(e.scaleArea?s.forEach((function(e){e._setScale(t)})):a&&a._setScale(t))}function u(e,n=s){let o=t.value;function r(e){for(let t=0;t<n.length;t++){const o=n[t];if(e===o.rootRef.value)return o}return e===o||e===document.body||e===document?null:r(e.parentNode)}return r(e)}const c=lc((t=>{let n=t.touches;if(n&&n.length>1){let t={x:n[1].pageX-n[0].pageX,y:n[1].pageY-n[0].pageY};if(i.value=zh(t),r.x=t.x,r.y=t.y,!e.scaleArea){let e=u(n[0].target),t=u(n[1].target);a=e&&e===t?e:null}}})),f=lc((e=>{let t=e.touches;if(t&&t.length>1){e.preventDefault();let n={x:t[1].pageX-t[0].pageX,y:t[1].pageY-t[0].pageY};if(null!==r.x&&i.value&&i.value>0){l(zh(n)/i.value)}r.x=n.x,r.y=n.y}})),d=lc((t=>{let n=t.touches;n&&n.length||t.changedTouches&&(r.x=0,r.y=0,i.value=null,e.scaleArea?s.forEach((function(e){e._endScale()})):a&&a._endScale())}));function p(){h(),s.forEach((function(e,t){e.setParent()}))}function h(){let e=window.getComputedStyle(t.value),r=t.value.getBoundingClientRect();n.value=r.width-["Left","Right"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0),o.value=r.height-["Top","Bottom"].reduce((function(t,n){const o="padding"+n;return t+parseFloat(e["border"+n+"Width"])+parseFloat(e[o])}),0)}return Wn("movableAreaWidth",n),Wn("movableAreaHeight",o),{setContexts(e){s=e},events:{_onTouchstart:c,_onTouchmove:f,_onTouchend:d,_resize:p}}}(e,n);const{$listeners:a,$attrs:s,$excludeAttrs:l}=Fh(),u=a.value;["onTouchstart","onTouchmove","onTouchend"].forEach((e=>{let t=u[e],n=i[`_${e}`];u[e]=t?[].concat(t,n):n})),jo((()=>{i._resize(),o.value=!0}));let c=[];const f=[];function d(){const e=[];for(let t=0;t<c.length;t++){let n=c[t];n=n.el;const o=f.find((e=>n===e.rootRef.value));o&&e.push(Xt(o))}r(e)}return Wn("_isMounted",o),Wn("movableAreaRootRef",n),Wn("addMovableViewContext",(e=>{f.push(e),d()})),Wn("removeMovableViewContext",(e=>{const t=f.indexOf(e);t>=0&&(f.splice(t,1),d())})),()=>{const e=t.default&&t.default();return c=Uh(e),Zr("uni-movable-area",ri({ref:n},s.value,l.value,u),[Zr(Sp,{onResize:i._resize},null,8,["onResize"]),c],16)}}});function zh(e){return Math.sqrt(e.x*e.x+e.y*e.y)}const Vh=function(e,t,n,o){e.addEventListener(t,(e=>{N(n)&&!1===n(e)&&((void 0===e.cancelable||e.cancelable)&&e.preventDefault(),e.stopPropagation())}),{passive:!1})};let Wh,Yh;function Kh(e,t,n){qo((()=>{document.removeEventListener("mousemove",Wh),document.removeEventListener("mouseup",Yh)}));let o=0,r=0,i=0,a=0;const s=function(e,n,s,l){if(!1===t({cancelable:e.cancelable,target:e.target,currentTarget:e.currentTarget,preventDefault:e.preventDefault.bind(e),stopPropagation:e.stopPropagation.bind(e),touches:e.touches,changedTouches:e.changedTouches,detail:{state:n,x:s,y:l,dx:s-o,dy:l-r,ddx:s-i,ddy:l-a,timeStamp:e.timeStamp}}))return!1};let l,u,c=null;Vh(e,"touchstart",(function(e){if(l=!0,1===e.touches.length&&!c)return c=e,o=i=e.touches[0].pageX,r=a=e.touches[0].pageY,s(e,"start",o,r)})),Vh(e,"mousedown",(function(e){if(u=!0,!l&&!c)return c=e,o=i=e.pageX,r=a=e.pageY,s(e,"start",o,r)})),Vh(e,"touchmove",(function(e){if(1===e.touches.length&&c){const t=s(e,"move",e.touches[0].pageX,e.touches[0].pageY);return i=e.touches[0].pageX,a=e.touches[0].pageY,t}}));const f=Wh=function(e){if(!l&&u&&c){const t=s(e,"move",e.pageX,e.pageY);return i=e.pageX,a=e.pageY,t}};document.addEventListener("mousemove",f),Vh(e,"touchend",(function(e){if(0===e.touches.length&&c)return l=!1,c=null,s(e,"end",e.changedTouches[0].pageX,e.changedTouches[0].pageY)}));const d=Yh=function(e){if(u=!1,!l&&c)return c=null,s(e,"end",e.pageX,e.pageY)};document.addEventListener("mouseup",d),Vh(e,"touchcancel",(function(e){if(c){l=!1;const t=c;return c=null,s(e,n?"cancel":"end",t.touches[0].pageX,t.touches[0].pageY)}}))}function Xh(e,t,n){return e>t-n&&e<t+n}function Gh(e,t){return Xh(e,0,t)}function Zh(){}function Jh(e,t){this._m=e,this._f=1e3*t,this._startTime=0,this._v=0}function Qh(e,t,n){this._m=e,this._k=t,this._c=n,this._solution=null,this._endPosition=0,this._startTime=0}function eg(e,t,n){this._springX=new Qh(e,t,n),this._springY=new Qh(e,t,n),this._springScale=new Qh(e,t,n),this._startTime=0}Zh.prototype.x=function(e){return Math.sqrt(e)},Jh.prototype.setV=function(e,t){const n=Math.pow(Math.pow(e,2)+Math.pow(t,2),.5);this._x_v=e,this._y_v=t,this._x_a=-this._f*this._x_v/n,this._y_a=-this._f*this._y_v/n,this._t=Math.abs(e/this._x_a)||Math.abs(t/this._y_a),this._lastDt=null,this._startTime=(new Date).getTime()},Jh.prototype.setS=function(e,t){this._x_s=e,this._y_s=t},Jh.prototype.s=function(e){void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t,this._lastDt=e);let t=this._x_v*e+.5*this._x_a*Math.pow(e,2)+this._x_s,n=this._y_v*e+.5*this._y_a*Math.pow(e,2)+this._y_s;return(this._x_a>0&&t<this._endPositionX||this._x_a<0&&t>this._endPositionX)&&(t=this._endPositionX),(this._y_a>0&&n<this._endPositionY||this._y_a<0&&n>this._endPositionY)&&(n=this._endPositionY),{x:t,y:n}},Jh.prototype.ds=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),e>this._t&&(e=this._t),{dx:this._x_v+this._x_a*e,dy:this._y_v+this._y_a*e}},Jh.prototype.delta=function(){return{x:-1.5*Math.pow(this._x_v,2)/this._x_a||0,y:-1.5*Math.pow(this._y_v,2)/this._y_a||0}},Jh.prototype.dt=function(){return-this._x_v/this._x_a},Jh.prototype.done=function(){const e=Xh(this.s().x,this._endPositionX)||Xh(this.s().y,this._endPositionY)||this._lastDt===this._t;return this._lastDt=null,e},Jh.prototype.setEnd=function(e,t){this._endPositionX=e,this._endPositionY=t},Jh.prototype.reconfigure=function(e,t){this._m=e,this._f=1e3*t},Qh.prototype._solve=function(e,t){const n=this._c,o=this._m,r=this._k,i=n*n-4*o*r;if(0===i){const r=-n/(2*o),i=e,a=t/(r*e);return{x:function(e){return(i+a*e)*Math.pow(Math.E,r*e)},dx:function(e){const t=Math.pow(Math.E,r*e);return r*(i+a*e)*t+a*t}}}if(i>0){const r=(-n-Math.sqrt(i))/(2*o),a=(-n+Math.sqrt(i))/(2*o),s=(t-r*e)/(a-r),l=e-s;return{x:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*t+s*n},dx:function(e){let t,n;return e===this._t&&(t=this._powER1T,n=this._powER2T),this._t=e,t||(t=this._powER1T=Math.pow(Math.E,r*e)),n||(n=this._powER2T=Math.pow(Math.E,a*e)),l*r*t+s*a*n}}}const a=Math.sqrt(4*o*r-n*n)/(2*o),s=-n/2*o,l=e,u=(t-s*e)/a;return{x:function(e){return Math.pow(Math.E,s*e)*(l*Math.cos(a*e)+u*Math.sin(a*e))},dx:function(e){const t=Math.pow(Math.E,s*e),n=Math.cos(a*e),o=Math.sin(a*e);return t*(u*a*n-l*a*o)+s*t*(u*o+l*n)}}},Qh.prototype.x=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._endPosition+this._solution.x(e):0},Qh.prototype.dx=function(e){return void 0===e&&(e=((new Date).getTime()-this._startTime)/1e3),this._solution?this._solution.dx(e):0},Qh.prototype.setEnd=function(e,t,n){if(n||(n=(new Date).getTime()),e!==this._endPosition||!Gh(t,.1)){t=t||0;let o=this._endPosition;this._solution&&(Gh(t,.1)&&(t=this._solution.dx((n-this._startTime)/1e3)),o=this._solution.x((n-this._startTime)/1e3),Gh(t,.1)&&(t=0),Gh(o,.1)&&(o=0),o+=this._endPosition),this._solution&&Gh(o-e,.1)&&Gh(t,.1)||(this._endPosition=e,this._solution=this._solve(o-this._endPosition,t),this._startTime=n)}},Qh.prototype.snap=function(e){this._startTime=(new Date).getTime(),this._endPosition=e,this._solution={x:function(){return 0},dx:function(){return 0}}},Qh.prototype.done=function(e){return e||(e=(new Date).getTime()),Xh(this.x(),this._endPosition,.1)&&Gh(this.dx(),.1)},Qh.prototype.reconfigure=function(e,t,n){this._m=e,this._k=t,this._c=n,this.done()||(this._solution=this._solve(this.x()-this._endPosition,this.dx()),this._startTime=(new Date).getTime())},Qh.prototype.springConstant=function(){return this._k},Qh.prototype.damping=function(){return this._c},Qh.prototype.configuration=function(){return[{label:"Spring Constant",read:this.springConstant.bind(this),write:function(e,t){e.reconfigure(1,t,e.damping())}.bind(this,this),min:100,max:1e3},{label:"Damping",read:this.damping.bind(this),write:function(e,t){e.reconfigure(1,e.springConstant(),t)}.bind(this,this),min:1,max:500}]},eg.prototype.setEnd=function(e,t,n,o){const r=(new Date).getTime();this._springX.setEnd(e,o,r),this._springY.setEnd(t,o,r),this._springScale.setEnd(n,o,r),this._startTime=r},eg.prototype.x=function(){const e=((new Date).getTime()-this._startTime)/1e3;return{x:this._springX.x(e),y:this._springY.x(e),scale:this._springScale.x(e)}},eg.prototype.done=function(){const e=(new Date).getTime();return this._springX.done(e)&&this._springY.done(e)&&this._springScale.done(e)},eg.prototype.reconfigure=function(e,t,n){this._springX.reconfigure(e,t,n),this._springY.reconfigure(e,t,n),this._springScale.reconfigure(e,t,n)};function tg(e,t){return+((1e3*e-1e3*t)/1e3).toFixed(1)}const ng=oc({name:"MovableView",props:{direction:{type:String,default:"none"},inertia:{type:[Boolean,String],default:!1},outOfBounds:{type:[Boolean,String],default:!1},x:{type:[Number,String],default:0},y:{type:[Number,String],default:0},damping:{type:[Number,String],default:20},friction:{type:[Number,String],default:2},disabled:{type:[Boolean,String],default:!1},scale:{type:[Boolean,String],default:!1},scaleMin:{type:[Number,String],default:.5},scaleMax:{type:[Number,String],default:10},scaleValue:{type:[Number,String],default:1},animation:{type:[Boolean,String],default:!0}},emits:["change","scale"],setup(e,{slots:t,emit:n}){const o=tn(null),r=uc(o,n),{setParent:i}=function(e,t,n){const o=Yn("_isMounted",tn(!1)),r=Yn("addMovableViewContext",(()=>{})),i=Yn("removeMovableViewContext",(()=>{}));let a,s,l=tn(1),u=tn(1),c=tn(!1),f=tn(0),d=tn(0),p=null,h=null,g=!1,m=null,v=null;const y=new Zh,b=new Zh,_={historyX:[0,0],historyY:[0,0],historyT:[0,0]},w=yi((()=>{let t=Number(e.friction);return isNaN(t)||t<=0?2:t})),x=new Jh(1,w.value);Gn((()=>e.disabled),(()=>{V()}));const{_updateOldScale:k,_endScale:O,_setScale:T,scaleValueSync:S,_updateBoundary:E,_updateOffset:C,_updateWH:A,_scaleOffset:N,minX:P,minY:j,maxX:L,maxY:I,FAandSFACancel:q,_getLimitXY:M,_setTransform:B,_revise:R,dampingNumber:D,xMove:$,yMove:F,xSync:U,ySync:H,_STD:z}=function(e,t,n,o,r,i,a,s,l,u){const c=yi((()=>{let t=Number(e.scaleMin);return isNaN(t)?.5:t})),f=yi((()=>{let t=Number(e.scaleMax);return isNaN(t)?10:t})),d=tn(Number(e.scaleValue)||1);Gn(d,(e=>{B(e)})),Gn(c,(()=>{M()})),Gn(f,(()=>{M()})),Gn((()=>e.scaleValue),(e=>{d.value=Number(e)||0}));const{_updateBoundary:p,_updateOffset:h,_updateWH:g,_scaleOffset:m,minX:v,minY:y,maxX:b,maxY:_}=function(e,t,n){const o=Yn("movableAreaWidth",tn(0)),r=Yn("movableAreaHeight",tn(0)),i=Yn("movableAreaRootRef"),a={x:0,y:0},s={x:0,y:0},l=tn(0),u=tn(0),c=tn(0),f=tn(0),d=tn(0),p=tn(0);function h(){let e=0-a.x+s.x,t=o.value-l.value-a.x-s.x;c.value=Math.min(e,t),d.value=Math.max(e,t);let n=0-a.y+s.y,i=r.value-u.value-a.y-s.y;f.value=Math.min(n,i),p.value=Math.max(n,i)}function g(){a.x=ig(e.value,i.value),a.y=ag(e.value,i.value)}function m(o){o=o||t.value,o=n(o);let r=e.value.getBoundingClientRect();u.value=r.height/t.value,l.value=r.width/t.value;let i=u.value*o,a=l.value*o;s.x=(a-l.value)/2,s.y=(i-u.value)/2}return{_updateBoundary:h,_updateOffset:g,_updateWH:m,_scaleOffset:s,minX:c,minY:f,maxX:d,maxY:p}}(t,o,q),{FAandSFACancel:w,_getLimitXY:x,_animationTo:k,_setTransform:O,_revise:T,dampingNumber:S,xMove:E,yMove:C,xSync:A,ySync:N,_STD:P}=function(e,t,n,o,r,i,a,s,l,u,c,f,d,p){const h=yi((()=>{let e=Number(t.damping);return isNaN(e)?20:e})),g=yi((()=>"all"===t.direction||"horizontal"===t.direction)),m=yi((()=>"all"===t.direction||"vertical"===t.direction)),v=tn(lg(t.x)),y=tn(lg(t.y));Gn((()=>t.x),(e=>{v.value=lg(e)})),Gn((()=>t.y),(e=>{y.value=lg(e)})),Gn(v,(e=>{T(e)})),Gn(y,(e=>{S(e)}));const b=new eg(1,9*Math.pow(h.value,2)/40,h.value);function _(e,t){let n=!1;return e>r.value?(e=r.value,n=!0):e<a.value&&(e=a.value,n=!0),t>i.value?(t=i.value,n=!0):t<s.value&&(t=s.value,n=!0),{x:e,y:t,outOfBounds:n}}function w(){f&&f.cancel(),c&&c.cancel()}function x(e,n,r,i,a,s){w(),g.value||(e=l.value),m.value||(n=u.value),t.scale||(r=o.value);let f=_(e,n);e=f.x,n=f.y,t.animation?(b._springX._solution=null,b._springY._solution=null,b._springScale._solution=null,b._springX._endPosition=l.value,b._springY._endPosition=u.value,b._springScale._endPosition=o.value,b.setEnd(e,n,r,1),c=sg(b,(function(){let e=b.x();k(e.x,e.y,e.scale,i,a,s)}),(function(){c.cancel()}))):k(e,n,r,i,a,s)}function k(r,i,a,s="",c,f){null!==r&&"NaN"!==r.toString()&&"number"==typeof r||(r=l.value||0),null!==i&&"NaN"!==i.toString()&&"number"==typeof i||(i=u.value||0),r=Number(r.toFixed(1)),i=Number(i.toFixed(1)),a=Number(a.toFixed(1)),l.value===r&&u.value===i||c||p("change",{},{x:tg(r,n.x),y:tg(i,n.y),source:s}),t.scale||(a=o.value),a=+(a=d(a)).toFixed(3),f&&a!==o.value&&p("scale",{},{x:r,y:i,scale:a});let h="translateX("+r+"px) translateY("+i+"px) translateZ(0px) scale("+a+")";e.value&&(e.value.style.transform=h,e.value.style.webkitTransform=h,l.value=r,u.value=i,o.value=a)}function O(e){let t=_(l.value,u.value),n=t.x,r=t.y,i=t.outOfBounds;return i&&x(n,r,o.value,e),i}function T(e){if(g.value){if(e+n.x===l.value)return l;c&&c.cancel(),x(e+n.x,y.value+n.y,o.value)}return e}function S(e){if(m.value){if(e+n.y===u.value)return u;c&&c.cancel(),x(v.value+n.x,e+n.y,o.value)}return e}return{FAandSFACancel:w,_getLimitXY:_,_animationTo:x,_setTransform:k,_revise:O,dampingNumber:h,xMove:g,yMove:m,xSync:v,ySync:y,_STD:b}}(t,e,m,o,b,_,v,y,a,s,l,u,q,n);function j(t,n){if(e.scale){t=q(t),g(t),p();const e=x(a.value,s.value),o=e.x,r=e.y;n?k(o,r,t,"",!0,!0):rg((function(){O(o,r,t,"",!0,!0)}))}}function L(){i.value=!0}function I(e){r.value=e}function q(e){return e=Math.max(.5,c.value,e),e=Math.min(10,f.value,e)}function M(){if(!e.scale)return!1;j(o.value,!0),I(o.value)}function B(t){return!!e.scale&&(j(t=q(t),!0),I(t),t)}function R(){i.value=!1,I(o.value)}function D(e){e&&(e=r.value*e,L(),j(e))}return{_updateOldScale:I,_endScale:R,_setScale:D,scaleValueSync:d,_updateBoundary:p,_updateOffset:h,_updateWH:g,_scaleOffset:m,minX:v,minY:y,maxX:b,maxY:_,FAandSFACancel:w,_getLimitXY:x,_animationTo:k,_setTransform:O,_revise:T,dampingNumber:S,xMove:E,yMove:C,xSync:A,ySync:N,_STD:P}}(e,n,t,l,u,c,f,d,p,h);function V(){c.value||e.disabled||(q(),_.historyX=[0,0],_.historyY=[0,0],_.historyT=[0,0],$.value&&(a=f.value),F.value&&(s=d.value),n.value.style.willChange="transform",m=null,v=null,g=!0)}function W(t){if(!c.value&&!e.disabled&&g){let n=f.value,o=d.value;if(null===v&&(v=Math.abs(t.detail.dx/t.detail.dy)>1?"htouchmove":"vtouchmove"),$.value&&(n=t.detail.dx+a,_.historyX.shift(),_.historyX.push(n),F.value||null!==m||(m=Math.abs(t.detail.dx/t.detail.dy)<1)),F.value&&(o=t.detail.dy+s,_.historyY.shift(),_.historyY.push(o),$.value||null!==m||(m=Math.abs(t.detail.dy/t.detail.dx)<1)),_.historyT.shift(),_.historyT.push(t.detail.timeStamp),!m){t.preventDefault();let r="touch";n<P.value?e.outOfBounds?(r="touch-out-of-bounds",n=P.value-y.x(P.value-n)):n=P.value:n>L.value&&(e.outOfBounds?(r="touch-out-of-bounds",n=L.value+y.x(n-L.value)):n=L.value),o<j.value?e.outOfBounds?(r="touch-out-of-bounds",o=j.value-b.x(j.value-o)):o=j.value:o>I.value&&(e.outOfBounds?(r="touch-out-of-bounds",o=I.value+b.x(o-I.value)):o=I.value),rg((function(){B(n,o,l.value,r)}))}}}function Y(){if(!c.value&&!e.disabled&&g&&(n.value.style.willChange="auto",g=!1,!m&&!R("out-of-bounds")&&e.inertia)){const e=1e3*(_.historyX[1]-_.historyX[0])/(_.historyT[1]-_.historyT[0]),t=1e3*(_.historyY[1]-_.historyY[0])/(_.historyT[1]-_.historyT[0]),n=f.value,o=d.value;x.setV(e,t),x.setS(n,o);const r=x.delta().x,i=x.delta().y;let a=r+n,s=i+o;a<P.value?(a=P.value,s=o+(P.value-n)*i/r):a>L.value&&(a=L.value,s=o+(L.value-n)*i/r),s<j.value?(s=j.value,a=n+(j.value-o)*r/i):s>I.value&&(s=I.value,a=n+(I.value-o)*r/i),x.setEnd(a,s),h=sg(x,(function(){let e=x.s(),t=e.x,n=e.y;B(t,n,l.value,"friction")}),(function(){h.cancel()}))}e.outOfBounds||e.inertia||q()}function K(){if(!o.value)return;q();let t=e.scale?S.value:1;C(),A(t),E();let n=M(U.value+N.x,H.value+N.y),r=n.x,i=n.y;B(r,i,t,"",!0),k(t)}return jo((()=>{Kh(n.value,(e=>{switch(e.detail.state){case"start":V();break;case"move":W(e);break;case"end":Y()}})),K(),x.reconfigure(1,w.value),z.reconfigure(1,9*Math.pow(D.value,2)/40,D.value),n.value.style.transformOrigin="center";const e={rootRef:n,setParent:K,_endScale:O,_setScale:T};r(e),Mo((()=>{i(e)}))})),Mo((()=>{q()})),{setParent:K}}(e,r,o);return()=>Zr("uni-movable-view",{ref:o},[Zr(Sp,{onResize:i},null,8,["onResize"]),t.default&&t.default()],512)}});let og=!1;function rg(e){og||(og=!0,requestAnimationFrame((function(){e(),og=!1})))}function ig(e,t){if(e===t)return 0;let n=e.offsetLeft;return e.offsetParent?n+=ig(e.offsetParent,t):0}function ag(e,t){if(e===t)return 0;let n=e.offsetTop;return e.offsetParent?n+=ag(e.offsetParent,t):0}function sg(e,t,n){let o={id:0,cancelled:!1};return function e(t,n,o,r){if(!t||!t.cancelled){o(n);let i=n.done();i||t.cancelled||(t.id=requestAnimationFrame(e.bind(null,t,n,o,r))),i&&r&&r(n)}}(o,e,t,n),{cancel:function(e){e&&e.id&&cancelAnimationFrame(e.id),e&&(e.cancelled=!0)}.bind(null,o),model:e}}function lg(e){return/\d+[ur]px$/i.test(e)?Nf(parseFloat(e)):Number(e)||0}const ug=["navigate","redirect","switchTab","reLaunch","navigateBack"],cg=["slide-in-right","slide-in-left","slide-in-top","slide-in-bottom","fade-in","zoom-out","zoom-fade-out","pop-in","none"],fg=["slide-out-right","slide-out-left","slide-out-top","slide-out-bottom","fade-out","zoom-in","zoom-fade-in","pop-out","none"],dg={hoverClass:{type:String,default:"navigator-hover"},url:{type:String,default:""},openType:{type:String,default:"navigate",validator:e=>Boolean(~ug.indexOf(e))},delta:{type:Number,default:1},hoverStartTime:{type:[Number,String],default:50},hoverStayTime:{type:[Number,String],default:600},exists:{type:String,default:""},hoverStopPropagation:{type:Boolean,default:!1},animationType:{type:String,default:"",validator:e=>!e||cg.concat(fg).includes(e)},animationDuration:{type:[String,Number],default:300}};const pg=oc({name:"Navigator",inheritAttrs:!1,compatConfig:{MODE:3},props:x({},dg,{renderLink:{type:Boolean,default:!0}}),setup(e,{slots:t}){const n=ui(),o=n&&n.vnode.scopeId||"",{hovering:r,binding:i}=ac(e),a=function(e){return()=>{if("navigateBack"!==e.openType&&!e.url)return void console.error("<navigator/> should have url attribute when using navigateTo, redirectTo, reLaunch or switchTab");const t=parseInt(e.animationDuration);switch(e.openType){case"navigate":my({url:e.url,animationType:e.animationType||"pop-in",animationDuration:t});break;case"redirect":vy({url:e.url,exists:e.exists});break;case"switchTab":_y({url:e.url});break;case"reLaunch":yy({url:e.url});break;case"navigateBack":hy({delta:e.delta,animationType:e.animationType||"pop-out",animationDuration:t})}}}(e);return()=>{const{hoverClass:s,url:l}=e,u=e.hoverClass&&"none"!==e.hoverClass,c=Zr("uni-navigator",ri({class:u&&r.value?s:""},u&&i,n?n.attrs:{},{[o]:""},{onClick:a}),[t.default&&t.default()],16,["onClick"]);return e.renderLink?Zr("a",{class:"navigator-wrap",href:l,onClick:ou,onMousedown:ou},[c],40,["href","onClick","onMousedown"]):c}}}),hg=cu("ucg"),gg=oc({name:"RadioGroup",props:{name:{type:String,default:""}},setup(e,{emit:t,slots:n}){const o=tn(null);return function(e,t){const n=[];jo((()=>{s(n.length-1)}));const o=()=>{var e;return null==(e=n.find((e=>e.value.radioChecked)))?void 0:e.value.value};Wn(hg,{addField(e){n.push(e)},removeField(e){n.splice(n.indexOf(e),1)},radioChange(e,r){s(n.indexOf(r),!0),t("change",e,{value:o()})}});const r=Yn(cc,!1),i={submit:()=>{let t=["",null];return""!==e.name&&(t[0]=e.name,t[1]=o()),t}};r&&(r.addField(i),qo((()=>{r.removeField(i)})));function a(e,t){e.value={radioChecked:t,value:e.value.value}}function s(e,t){n.forEach(((o,r)=>{r!==e&&(t?a(n[r],!1):n.forEach(((e,t)=>{r>=t||n[t].value.radioChecked&&a(n[r],!1)})))}))}}(e,uc(o,t)),()=>Zr("uni-radio-group",{ref:o},[n.default&&n.default()],512)}});const mg=oc({name:"Radio",props:{checked:{type:[Boolean,String],default:!1},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},value:{type:String,default:""},color:{type:String,default:"#007aff"},backgroundColor:{type:String,default:""},borderColor:{type:String,default:""},activeBackgroundColor:{type:String,default:""},activeBorderColor:{type:String,default:""},iconColor:{type:String,default:"#ffffff"}},setup(e,{slots:t}){const n=tn(e.checked),o=tn(e.value),r=yi((()=>{if(e.disabled)return{backgroundColor:"#E1E1E1",borderColor:"#D1D1D1"};const t={};return n.value?(t.backgroundColor=e.activeBackgroundColor||e.color,t.borderColor=e.activeBorderColor||t.backgroundColor):(e.borderColor&&(t.borderColor=e.borderColor),e.backgroundColor&&(t.backgroundColor=e.backgroundColor)),t}));Gn([()=>e.checked,()=>e.value],(([e,t])=>{n.value=e,o.value=t}));const{uniCheckGroup:i,uniLabel:a,field:s}=function(e,t,n){const o=yi({get:()=>({radioChecked:Boolean(e.value),value:t.value}),set:({radioChecked:t})=>{e.value=t}}),r={reset:n},i=Yn(hg,!1);i&&i.addField(o);const a=Yn(cc,!1);a&&a.addField(r);const s=Yn(pc,!1);return qo((()=>{i&&i.removeField(o),a&&a.removeField(r)})),{uniCheckGroup:i,uniForm:a,uniLabel:s,field:o}}(n,o,(()=>{n.value=!1})),l=t=>{e.disabled||n.value||(n.value=!0,i&&i.radioChange(t,s),t.stopPropagation())};return a&&(a.addHandler(l),qo((()=>{a.removeHandler(l)}))),gc(e,{"label-click":l}),()=>{const o=sc(e,"disabled");return Zr("uni-radio",ri(o,{onClick:l}),[Zr("div",{class:"uni-radio-wrapper",style:{"--HOVER-BD-COLOR":n.value?r.value.borderColor:e.activeBorderColor}},[Zr("div",{class:["uni-radio-input",{"uni-radio-input-disabled":e.disabled}],style:r.value},[n.value?gu(pu,e.disabled?"#ADADAD":e.iconColor,18):""],6),t.default&&t.default()],4)],16,["onClick"])}}});const vg={a:"",abbr:"",address:"",article:"",aside:"",b:"",bdi:"",bdo:["dir"],big:"",blockquote:"",br:"",caption:"",center:"",cite:"",code:"",col:["span","width"],colgroup:["span","width"],dd:"",del:"",div:"",dl:"",dt:"",em:"",fieldset:"",font:"",footer:"",h1:"",h2:"",h3:"",h4:"",h5:"",h6:"",header:"",hr:"",i:"",img:["alt","src","height","width"],ins:"",label:"",legend:"",li:"",mark:"",nav:"",ol:["start","type"],p:"",pre:"",q:"",rt:"",ruby:"",s:"",section:"",small:"",span:"",strong:"",sub:"",sup:"",table:["width"],tbody:"",td:["colspan","height","rowspan","width"],tfoot:"",th:["colspan","height","rowspan","width"],thead:"",tr:["colspan","height","rowspan","width"],tt:"",u:"",ul:""},yg={amp:"&",gt:">",lt:"<",nbsp:" ",quot:'"',apos:"'",ldquo:"“",rdquo:"”",yen:"¥",radic:"√",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",hellip:"…"};const bg=(e,t,n)=>!n||S(n)&&!n.length?[]:n.map((n=>{if(B(n)){if(!T(n,"type")||"node"===n.type){let o={[e]:""};const r=n.name.toLowerCase();if(!T(vg,r))return;return function(e,t){if(B(t))for(const n in t)if(T(t,n)){const o=t[n];"img"===e&&"src"===n&&(t[n]=wc(o))}}(r,n.attrs),o=x(o,function(e,t){if(["a","img"].includes(e.name)&&t)return{onClick:n=>{t(n,{node:e}),n.stopPropagation(),n.preventDefault(),n.returnValue=!1}}}(n,t),n.attrs),bi(n.name,o,bg(e,t,n.children))}return"text"===n.type&&P(n.text)&&""!==n.text?Qr((n.text||"").replace(/&(([a-zA-Z]+)|(#x{0,1}[\da-zA-Z]+));/gi,(function(e,t){return T(yg,t)&&yg[t]?yg[t]:/^#[0-9]{1,4}$/.test(t)?String.fromCharCode(t.slice(1)):/^#x[0-9a-f]{1,4}$/i.test(t)?String.fromCharCode(0+t.slice(1)):e}))):void 0}}));function _g(e){e=function(e){return e.replace(/<\?xml.*\?>\n/,"").replace(/<!doctype.*>\n/,"").replace(/<!DOCTYPE.*>\n/,"")}(e);const t=[],n={node:"root",children:[]};return eh(e,{start:function(e,o,r){const i={name:e};if(0!==o.length&&(i.attrs=function(e){return e.reduce((function(e,t){let n=t.value;const o=t.name;return n.match(/ /)&&-1===["style","src"].indexOf(o)&&(n=n.split(" ")),e[o]?Array.isArray(e[o])?e[o].push(n):e[o]=[e[o],n]:e[o]=n,e}),{})}(o)),r){const e=t[0]||n;e.children||(e.children=[]),e.children.push(i)}else t.unshift(i)},end:function(e){const o=t.shift();if(o.name!==e&&console.error("invalid state: mismatch end tag"),0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},chars:function(e){const o={type:"text",text:e};if(0===t.length)n.children.push(o);else{const e=t[0];e.children||(e.children=[]),e.children.push(o)}},comment:function(e){const n={node:"comment",text:e},o=t[0];o.children||(o.children=[]),o.children.push(n)}}),n.children}const wg=oc({name:"RichText",compatConfig:{MODE:3},props:{nodes:{type:[Array,String],default:function(){return[]}}},emits:["click","touchstart","touchmove","touchcancel","touchend","longpress","itemclick"],setup(e,{emit:t}){const n=ui(),o=n&&n.vnode.scopeId||"",r=tn(null),i=tn([]),a=uc(r,t);function s(e,t={}){a("itemclick",e,t)}return Gn((()=>e.nodes),(function(){let t=e.nodes;P(t)&&(t=_g(e.nodes)),i.value=bg(o,s,t)}),{immediate:!0}),()=>bi("uni-rich-text",{ref:r},bi("div",{},i.value))}}),xg=ge(!0),kg=oc({name:"ScrollView",compatConfig:{MODE:3},props:{scrollX:{type:[Boolean,String],default:!1},scrollY:{type:[Boolean,String],default:!1},upperThreshold:{type:[Number,String],default:50},lowerThreshold:{type:[Number,String],default:50},scrollTop:{type:[Number,String],default:0},scrollLeft:{type:[Number,String],default:0},scrollIntoView:{type:String,default:""},scrollWithAnimation:{type:[Boolean,String],default:!1},enableBackToTop:{type:[Boolean,String],default:!1},refresherEnabled:{type:[Boolean,String],default:!1},refresherThreshold:{type:Number,default:45},refresherDefaultStyle:{type:String,default:"back"},refresherBackground:{type:String,default:"#fff"},refresherTriggered:{type:[Boolean,String],default:!1}},emits:["scroll","scrolltoupper","scrolltolower","refresherrefresh","refresherrestore","refresherpulling","refresherabort","update:refresherTriggered"],setup(e,{emit:t,slots:n}){const o=tn(null),r=tn(null),i=tn(null),a=tn(null),s=tn(null),l=uc(o,t),{state:u,scrollTopNumber:c,scrollLeftNumber:f}=function(e){const t=yi((()=>Number(e.scrollTop)||0)),n=yi((()=>Number(e.scrollLeft)||0));return{state:Ft({lastScrollTop:t.value,lastScrollLeft:n.value,lastScrollToUpperTime:0,lastScrollToLowerTime:0,refresherHeight:0,refreshRotate:0,refreshState:""}),scrollTopNumber:t,scrollLeftNumber:n}}(e);!function(e,t,n,o,r,i,a,s,l){let u=!1,c=0,f=!1,d=()=>{};const p=yi((()=>{let t=Number(e.upperThreshold);return isNaN(t)?50:t})),h=yi((()=>{let t=Number(e.lowerThreshold);return isNaN(t)?50:t}));function g(e,t){const n=a.value;let o=0,r="";if(e<0?e=0:"x"===t&&e>n.scrollWidth-n.offsetWidth?e=n.scrollWidth-n.offsetWidth:"y"===t&&e>n.scrollHeight-n.offsetHeight&&(e=n.scrollHeight-n.offsetHeight),"x"===t?o=n.scrollLeft-e:"y"===t&&(o=n.scrollTop-e),0===o)return;let i=s.value;i.style.transition="transform .3s ease-out",i.style.webkitTransition="-webkit-transform .3s ease-out","x"===t?r="translateX("+o+"px) translateZ(0)":"y"===t&&(r="translateY("+o+"px) translateZ(0)"),i.removeEventListener("transitionend",d),i.removeEventListener("webkitTransitionEnd",d),d=()=>_(e,t),i.addEventListener("transitionend",d),i.addEventListener("webkitTransitionEnd",d),"x"===t?n.style.overflowX="hidden":"y"===t&&(n.style.overflowY="hidden"),i.style.transform=r,i.style.webkitTransform=r}function m(n){const o=n.target;r("scroll",n,{scrollLeft:o.scrollLeft,scrollTop:o.scrollTop,scrollHeight:o.scrollHeight,scrollWidth:o.scrollWidth,deltaX:t.lastScrollLeft-o.scrollLeft,deltaY:t.lastScrollTop-o.scrollTop}),e.scrollY&&(o.scrollTop<=p.value&&t.lastScrollTop-o.scrollTop>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",n,{direction:"top"}),t.lastScrollToUpperTime=n.timeStamp),o.scrollTop+o.offsetHeight+h.value>=o.scrollHeight&&t.lastScrollTop-o.scrollTop<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",n,{direction:"bottom"}),t.lastScrollToLowerTime=n.timeStamp)),e.scrollX&&(o.scrollLeft<=p.value&&t.lastScrollLeft-o.scrollLeft>0&&n.timeStamp-t.lastScrollToUpperTime>200&&(r("scrolltoupper",n,{direction:"left"}),t.lastScrollToUpperTime=n.timeStamp),o.scrollLeft+o.offsetWidth+h.value>=o.scrollWidth&&t.lastScrollLeft-o.scrollLeft<0&&n.timeStamp-t.lastScrollToLowerTime>200&&(r("scrolltolower",n,{direction:"right"}),t.lastScrollToLowerTime=n.timeStamp)),t.lastScrollTop=o.scrollTop,t.lastScrollLeft=o.scrollLeft}function v(t){e.scrollY&&(e.scrollWithAnimation?g(t,"y"):a.value.scrollTop=t)}function y(t){e.scrollX&&(e.scrollWithAnimation?g(t,"x"):a.value.scrollLeft=t)}function b(t){if(t){if(!/^[_a-zA-Z][-_a-zA-Z0-9:]*$/.test(t))return void console.error(`id error: scroll-into-view=${t}`);let n=i.value.querySelector("#"+t);if(n){let t=a.value.getBoundingClientRect(),o=n.getBoundingClientRect();if(e.scrollX){let n=o.left-t.left,r=a.value.scrollLeft+n;e.scrollWithAnimation?g(r,"x"):a.value.scrollLeft=r}if(e.scrollY){let n=o.top-t.top,r=a.value.scrollTop+n;e.scrollWithAnimation?g(r,"y"):a.value.scrollTop=r}}}}function _(t,n){s.value.style.transition="",s.value.style.webkitTransition="",s.value.style.transform="",s.value.style.webkitTransform="";let o=a.value;"x"===n?(o.style.overflowX=e.scrollX?"auto":"hidden",o.scrollLeft=t):"y"===n&&(o.style.overflowY=e.scrollY?"auto":"hidden",o.scrollTop=t),s.value.removeEventListener("transitionend",d),s.value.removeEventListener("webkitTransitionEnd",d)}function w(n){if(e.refresherEnabled){switch(n){case"refreshing":t.refresherHeight=e.refresherThreshold,u||(u=!0,r("refresherrefresh",{},{}),l("update:refresherTriggered",!0));break;case"restore":case"refresherabort":u=!1,t.refresherHeight=c=0,"restore"===n&&(f=!1,r("refresherrestore",{},{})),"refresherabort"===n&&f&&(f=!1,r("refresherabort",{},{}))}t.refreshState=n}}jo((()=>{Tn((()=>{v(n.value),y(o.value)})),b(e.scrollIntoView);let i=function(e){e.preventDefault(),e.stopPropagation(),m(e)},s={x:0,y:0},l=null,d=function(n){if(null===s)return;let o=n.touches[0].pageX,i=n.touches[0].pageY,d=a.value;if(Math.abs(o-s.x)>Math.abs(i-s.y))if(e.scrollX){if(0===d.scrollLeft&&o>s.x)return void(l=!1);if(d.scrollWidth===d.offsetWidth+d.scrollLeft&&o<s.x)return void(l=!1);l=!0}else l=!1;else if(e.scrollY)if(0===d.scrollTop&&i>s.y)l=!1,e.refresherEnabled&&!1!==n.cancelable&&n.preventDefault();else{if(d.scrollHeight===d.offsetHeight+d.scrollTop&&i<s.y)return void(l=!1);l=!0}else l=!1;if(l&&n.stopPropagation(),0===d.scrollTop&&1===n.touches.length&&w("pulling"),e.refresherEnabled&&"pulling"===t.refreshState){const o=i-s.y;0===c&&(c=i),u?(t.refresherHeight=o+e.refresherThreshold,f=!1):(t.refresherHeight=i-c,t.refresherHeight>0&&(f=!0,r("refresherpulling",n,{deltaY:o})));const a=t.refresherHeight/e.refresherThreshold;t.refreshRotate=360*(a>1?1:a)}},p=function(e){1===e.touches.length&&(s={x:e.touches[0].pageX,y:e.touches[0].pageY})},h=function(n){s=null,t.refresherHeight>=e.refresherThreshold?w("refreshing"):w("refresherabort")};a.value.addEventListener("touchstart",p,xg),a.value.addEventListener("touchmove",d,ge(!1)),a.value.addEventListener("scroll",i,ge(!1)),a.value.addEventListener("touchend",h,xg),qo((()=>{a.value.removeEventListener("touchstart",p),a.value.removeEventListener("touchmove",d),a.value.removeEventListener("scroll",i),a.value.removeEventListener("touchend",h)}))})),_o((()=>{e.scrollY&&(a.value.scrollTop=t.lastScrollTop),e.scrollX&&(a.value.scrollLeft=t.lastScrollLeft)})),Gn(n,(e=>{v(e)})),Gn(o,(e=>{y(e)})),Gn((()=>e.scrollIntoView),(e=>{b(e)})),Gn((()=>e.refresherTriggered),(e=>{!0===e?w("refreshing"):!1===e&&w("restore")}))}(e,u,c,f,l,o,r,a,t);const d=yi((()=>{let t="";return e.scrollX?t+="overflow-x:auto;":t+="overflow-x:hidden;",e.scrollY?t+="overflow-y:auto;":t+="overflow-y:hidden;",t}));return()=>{const{refresherEnabled:t,refresherBackground:l,refresherDefaultStyle:c}=e,{refresherHeight:f,refreshState:p,refreshRotate:h}=u;return Zr("uni-scroll-view",{ref:o},[Zr("div",{ref:i,class:"uni-scroll-view"},[Zr("div",{ref:r,style:d.value,class:"uni-scroll-view"},[Zr("div",{ref:a,class:"uni-scroll-view-content"},[t?Zr("div",{ref:s,style:{backgroundColor:l,height:f+"px"},class:"uni-scroll-view-refresher"},["none"!==c?Zr("div",{class:"uni-scroll-view-refresh"},[Zr("div",{class:"uni-scroll-view-refresh-inner"},["pulling"==p?Zr("svg",{key:"refresh__icon",style:{transform:"rotate("+h+"deg)"},fill:"#2BD009",class:"uni-scroll-view-refresh__icon",width:"24",height:"24",viewBox:"0 0 24 24"},[Zr("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"},null),Zr("path",{d:"M0 0h24v24H0z",fill:"none"},null)],4):null,"refreshing"==p?Zr("svg",{key:"refresh__spinner",class:"uni-scroll-view-refresh__spinner",width:"24",height:"24",viewBox:"25 25 50 50"},[Zr("circle",{cx:"50",cy:"50",r:"20",fill:"none",style:"color: #2bd009","stroke-width":"3"},null)]):null])]):null,"none"==c?n.refresher&&n.refresher():null],4):null,n.default&&n.default()],512)],4)],512)],512)}}});const Og=oc({name:"Slider",props:{name:{type:String,default:""},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},value:{type:[Number,String],default:0},step:{type:[Number,String],default:1},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:"#e9e9e9"},backgroundColor:{type:String,default:"#e9e9e9"},activeColor:{type:String,default:"#007aff"},selectedColor:{type:String,default:"#007aff"},blockColor:{type:String,default:"#ffffff"},blockSize:{type:[Number,String],default:28},showValue:{type:[Boolean,String],default:!1}},emits:["changing","change"],setup(e,{emit:t}){const n=tn(null),o=tn(null),r=tn(null),i=tn(Number(e.value));Gn((()=>e.value),(e=>{i.value=Number(e)}));const a=uc(n,t),s=function(e,t){const n=()=>{const n=Number(e.max),o=Number(e.min);return 100*(t.value-o)/(n-o)+"%"},o=()=>"#e9e9e9"!==e.backgroundColor?e.backgroundColor:"#007aff"!==e.color?e.color:"#007aff",r=()=>"#007aff"!==e.activeColor?e.activeColor:"#e9e9e9"!==e.selectedColor?e.selectedColor:"#e9e9e9";return{setBgColor:yi((()=>({backgroundColor:o()}))),setBlockBg:yi((()=>({left:n()}))),setActiveColor:yi((()=>({backgroundColor:r(),width:n()}))),setBlockStyle:yi((()=>({width:e.blockSize+"px",height:e.blockSize+"px",marginLeft:-e.blockSize/2+"px",marginTop:-e.blockSize/2+"px",left:n(),backgroundColor:e.blockColor})))}}(e,i),{_onClick:l,_onTrack:u}=function(e,t,n,o,r){const i=n=>{e.disabled||(s(n),r("change",n,{value:t.value}))},a=t=>{const n=Number(e.max),o=Number(e.min),r=Number(e.step);return t<o?o:t>n?n:Tg.mul.call(Math.round((t-o)/r),r)+o},s=r=>{const i=Number(e.max),s=Number(e.min),l=o.value,u=getComputedStyle(l,null).marginLeft;let c=l.offsetWidth;c+=parseInt(u);const f=n.value,d=f.offsetWidth-(e.showValue?c:0),p=f.getBoundingClientRect().left,h=(r.x-p)*(i-s)/d+s;t.value=a(h)},l=n=>{if(!e.disabled)return"move"===n.detail.state?(s({x:n.detail.x}),r("changing",n,{value:t.value}),!1):"end"===n.detail.state&&r("change",n,{value:t.value})},u=Yn(cc,!1);if(u){const n={reset:()=>t.value=Number(e.min),submit:()=>{const n=["",null];return""!==e.name&&(n[0]=e.name,n[1]=t.value),n}};u.addField(n),qo((()=>{u.removeField(n)}))}return{_onClick:i,_onTrack:l}}(e,i,n,o,a);return jo((()=>{Kh(r.value,u)})),()=>{const{setBgColor:t,setBlockBg:a,setActiveColor:u,setBlockStyle:c}=s;return Zr("uni-slider",{ref:n,onClick:lc(l)},[Zr("div",{class:"uni-slider-wrapper"},[Zr("div",{class:"uni-slider-tap-area"},[Zr("div",{style:t.value,class:"uni-slider-handle-wrapper"},[Zr("div",{ref:r,style:a.value,class:"uni-slider-handle"},null,4),Zr("div",{style:c.value,class:"uni-slider-thumb"},null,4),Zr("div",{style:u.value,class:"uni-slider-track"},null,4)],4)]),Fo(Zr("span",{ref:o,class:"uni-slider-value"},[i.value],512),[[wa,e.showValue]])]),Zr("slot",null,null)],8,["onClick"])}}});var Tg={mul:function(e){let t=0,n=this.toString(),o=e.toString();try{t+=n.split(".")[1].length}catch(r){}try{t+=o.split(".")[1].length}catch(r){}return Number(n.replace(".",""))*Number(o.replace(".",""))/Math.pow(10,t)}};function Sg(e,t,n,o,r,i){function a(){u&&(clearTimeout(u),u=null)}let s,l,u=null,c=!0,f=0,d=1,p=null,h=!1,g=0,m="";const v=yi((()=>n.value.length>t.displayMultipleItems)),y=yi((()=>e.circular&&v.value));function b(r){Math.floor(2*f)===Math.floor(2*r)&&Math.ceil(2*f)===Math.ceil(2*r)||y.value&&function(o){if(!c)for(let r=n.value,i=r.length,a=o+t.displayMultipleItems,s=0;s<i;s++){const t=r[s],n=Math.floor(o/i)*i+s,l=n+i,u=n-i,c=Math.max(o-(n+1),n-a,0),f=Math.max(o-(l+1),l-a,0),d=Math.max(o-(u+1),u-a,0),p=Math.min(c,f,d),h=[n,l,u][[c,f,d].indexOf(p)];t.updatePosition(h,e.vertical)}}(r);const a="translate("+(e.vertical?"0":100*-r*d+"%")+", "+(e.vertical?100*-r*d+"%":"0")+") translateZ(0)",l=o.value;if(l&&(l.style.webkitTransform=a,l.style.transform=a),f=r,!s){if(r%1==0)return;s=r}r-=Math.floor(s);const u=n.value;r<=-(u.length-1)?r+=u.length:r>=u.length&&(r-=u.length),r=s%1>.5||s<0?r-1:r,i("transition",{},{dx:e.vertical?0:r*l.offsetWidth,dy:e.vertical?r*l.offsetHeight:0})}function _(e){const o=n.value.length;if(!o)return-1;const r=(Math.round(e)%o+o)%o;if(y.value){if(o<=t.displayMultipleItems)return 0}else if(r>o-t.displayMultipleItems)return o-t.displayMultipleItems;return r}function w(){p=null}function x(){if(!p)return void(h=!1);const e=p,o=e.toPos,r=e.acc,a=e.endTime,u=e.source,c=a-Date.now();if(c<=0){b(o),p=null,h=!1,s=null;const e=n.value[t.current];if(e){const n=e.getItemId();i("animationfinish",{},{current:t.current,currentItemId:n,source:u})}return}b(o+r*c*c/2),l=requestAnimationFrame(x)}function k(e,o,r){w();const i=t.duration,a=n.value.length;let s=f;if(y.value)if(r<0){for(;s<e;)s+=a;for(;s-a>e;)s-=a}else if(r>0){for(;s>e;)s-=a;for(;s+a<e;)s+=a;s+a-e<e-s&&(s+=a)}else{for(;s+a<e;)s+=a;for(;s-a>e;)s-=a;s+a-e<e-s&&(s+=a)}else"click"===o&&(e=e+t.displayMultipleItems-1<a?e:0);p={toPos:e,acc:2*(s-e)/(i*i),endTime:Date.now()+i,source:o},h||(h=!0,l=requestAnimationFrame(x))}function O(){a();const e=n.value,o=function(){u=null,m="autoplay",y.value?t.current=_(t.current+1):t.current=t.current+t.displayMultipleItems<e.length?t.current+1:0,k(t.current,"autoplay",y.value?1:0),u=setTimeout(o,t.interval)};c||e.length<=t.displayMultipleItems||(u=setTimeout(o,t.interval))}function T(e){e?O():a()}return Gn([()=>e.current,()=>e.currentItemId,()=>[...n.value]],(()=>{let o=-1;if(e.currentItemId)for(let t=0,r=n.value;t<r.length;t++){if(r[t].getItemId()===e.currentItemId){o=t;break}}o<0&&(o=Math.round(e.current)||0),o=o<0?0:o,t.current!==o&&(m="",t.current=o)})),Gn([()=>e.vertical,()=>y.value,()=>t.displayMultipleItems,()=>[...n.value]],(function(){a(),p&&(b(p.toPos),p=null);const r=n.value;for(let t=0;t<r.length;t++)r[t].updatePosition(t,e.vertical);d=1;const i=o.value;if(1===t.displayMultipleItems&&r.length){const e=r[0].getBoundingClientRect(),t=i.getBoundingClientRect();d=e.width/t.width,d>0&&d<1||(d=1)}const s=f;f=-2;const l=t.current;l>=0?(c=!1,t.userTracking?(b(s+l-g),g=l):(b(l),e.autoplay&&O())):(c=!0,b(-t.displayMultipleItems-1))})),Gn((()=>t.interval),(()=>{u&&(a(),O())})),Gn((()=>t.current),((e,o)=>{!function(e,o){const r=m;m="";const a=n.value;if(!r){const t=a.length;k(e,"",y.value&&o+(t-e)%t>t/2?1:0)}const s=a[e];if(s){const e=t.currentItemId=s.getItemId();i("change",{},{current:t.current,currentItemId:e,source:r})}}(e,o),r("update:current",e)})),Gn((()=>t.currentItemId),(e=>{r("update:currentItemId",e)})),Gn((()=>e.autoplay&&!t.userTracking),T),T(e.autoplay&&!t.userTracking),jo((()=>{let r=!1,i=0,s=0;function l(e){t.userTracking=!1;const n=i/Math.abs(i);let o=0;!e&&Math.abs(i)>.2&&(o=.5*n);const r=_(f+o);e?b(g):(m="touch",t.current=r,k(r,"touch",0!==o?o:0===r&&y.value&&f>=1?1:0))}Kh(o.value,(u=>{if(!e.disableTouch&&!c){if("start"===u.detail.state)return t.userTracking=!0,r=!1,a(),g=f,i=0,s=Date.now(),void w();if("end"===u.detail.state)return l(!1);if("cancel"===u.detail.state)return l(!0);if(t.userTracking){if(!r){r=!0;const n=Math.abs(u.detail.dx),o=Math.abs(u.detail.dy);if((n>=o&&e.vertical||n<=o&&!e.vertical)&&(t.userTracking=!1),!t.userTracking)return void(e.autoplay&&O())}return function(r){const a=s;s=Date.now();const l=n.value.length-t.displayMultipleItems;function u(e){return.5-.25/(e+.5)}function c(e,t){let n=g+e;i=.6*i+.4*t,y.value||(n<0||n>l)&&(n<0?n=-u(-n):n>l&&(n=l+u(n-l)),i=0),b(n)}const f=s-a||1,d=o.value;e.vertical?c(-r.dy/d.offsetHeight,-r.ddy/f):c(-r.dx/d.offsetWidth,-r.ddx/f)}(u.detail),!1}}}))})),Mo((()=>{a(),cancelAnimationFrame(l)})),{onSwiperDotClick:function(e){k(t.current=e,m="click",y.value?1:0)},circularEnabled:y,swiperEnabled:v}}const Eg=oc({name:"Swiper",props:{indicatorDots:{type:[Boolean,String],default:!1},vertical:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},circular:{type:[Boolean,String],default:!1},interval:{type:[Number,String],default:5e3},duration:{type:[Number,String],default:500},current:{type:[Number,String],default:0},indicatorColor:{type:String,default:""},indicatorActiveColor:{type:String,default:""},previousMargin:{type:String,default:""},nextMargin:{type:String,default:""},currentItemId:{type:String,default:""},skipHiddenItemLayout:{type:[Boolean,String],default:!1},displayMultipleItems:{type:[Number,String],default:1},disableTouch:{type:[Boolean,String],default:!1},navigation:{type:[Boolean,String],default:!1},navigationColor:{type:String,default:"#fff"},navigationActiveColor:{type:String,default:"rgba(53, 53, 53, 0.6)"}},emits:["change","transition","animationfinish","update:current","update:currentItemId"],setup(e,{slots:t,emit:n}){const o=tn(null),r=uc(o,n),i=tn(null),a=tn(null),s=function(e){return Ft({interval:yi((()=>{const t=Number(e.interval);return isNaN(t)?5e3:t})),duration:yi((()=>{const t=Number(e.duration);return isNaN(t)?500:t})),displayMultipleItems:yi((()=>{const t=Math.round(e.displayMultipleItems);return isNaN(t)?1:t})),current:Math.round(e.current)||0,currentItemId:e.currentItemId,userTracking:!1})}(e),l=yi((()=>{let t={};return(e.nextMargin||e.previousMargin)&&(t=e.vertical?{left:0,right:0,top:du(e.previousMargin,!0),bottom:du(e.nextMargin,!0)}:{top:0,bottom:0,left:du(e.previousMargin,!0),right:du(e.nextMargin,!0)}),t})),u=yi((()=>{const t=Math.abs(100/s.displayMultipleItems)+"%";return{width:e.vertical?"100%":t,height:e.vertical?t:"100%"}}));let c=[];const f=[],d=tn([]);function p(){const e=[];for(let t=0;t<c.length;t++){let n=c[t];n instanceof Element||(n=n.el);const o=f.find((e=>n===e.rootRef.value));o&&e.push(Xt(o))}d.value=e}Wn("addSwiperContext",(function(e){f.push(e),p()}));Wn("removeSwiperContext",(function(e){const t=f.indexOf(e);t>=0&&(f.splice(t,1),p())}));const{onSwiperDotClick:h,circularEnabled:g,swiperEnabled:m}=Sg(e,s,d,a,n,r);let v=()=>null;return v=Cg(o,e,s,h,d,g,m),()=>{const n=t.default&&t.default();return c=Uh(n),Zr("uni-swiper",{ref:o},[Zr("div",{ref:i,class:"uni-swiper-wrapper"},[Zr("div",{class:"uni-swiper-slides",style:l.value},[Zr("div",{ref:a,class:"uni-swiper-slide-frame",style:u.value},[n],4)],4),e.indicatorDots&&Zr("div",{class:["uni-swiper-dots",e.vertical?"uni-swiper-dots-vertical":"uni-swiper-dots-horizontal"]},[d.value.map(((t,n,o)=>Zr("div",{onClick:()=>h(n),class:{"uni-swiper-dot":!0,"uni-swiper-dot-active":n<s.current+s.displayMultipleItems&&n>=s.current||n<s.current+s.displayMultipleItems-o.length},style:{background:n===s.current?e.indicatorActiveColor:e.indicatorColor}},null,14,["onClick"])))],2),v()],512)],512)}}}),Cg=(e,t,n,o,r,i,a)=>{let s=!1,l=!1,u=!1,c=tn(!1);function f(e,n){const o=e.currentTarget;o&&(o.style.backgroundColor="over"===n?t.navigationActiveColor:"")}Kn((()=>{s="auto"===t.navigation,c.value=!0!==t.navigation||s,y()})),Kn((()=>{const e=r.value.length,t=!i.value;l=0===n.current&&t,u=n.current===e-1&&t||t&&n.current+n.displayMultipleItems>=e,a.value||(l=!0,u=!0,s&&(c.value=!0))}));const d={onMouseover:e=>f(e,"over"),onMouseout:e=>f(e,"out")};function p(e,t,a){if(e.stopPropagation(),a)return;const s=r.value.length;let l=n.current;switch(t){case"prev":l--,l<0&&i.value&&(l=s-1);break;case"next":l++,l>=s&&i.value&&(l=0)}o(l)}const h=()=>gu("M21.781 7.844l-9.063 8.594 9.063 8.594q0.25 0.25 0.25 0.609t-0.25 0.578q-0.25 0.25-0.578 0.25t-0.578-0.25l-9.625-9.125q-0.156-0.125-0.203-0.297t-0.047-0.359q0-0.156 0.047-0.328t0.203-0.297l9.625-9.125q0.25-0.25 0.578-0.25t0.578 0.25q0.25 0.219 0.25 0.578t-0.25 0.578z",t.navigationColor,26);let g;const m=n=>{clearTimeout(g);const{clientX:o,clientY:r}=n,{left:i,right:a,top:s,bottom:l,width:u,height:f}=e.value.getBoundingClientRect();let d=!1;if(d=t.vertical?!(r-s<f/3||l-r<f/3):!(o-i<u/3||a-o<u/3),d)return g=setTimeout((()=>{c.value=d}),300);c.value=d},v=()=>{c.value=!0};function y(){e.value&&(e.value.removeEventListener("mousemove",m),e.value.removeEventListener("mouseleave",v),s&&(e.value.addEventListener("mousemove",m),e.value.addEventListener("mouseleave",v)))}return jo(y),function(){const e={"uni-swiper-navigation-hide":c.value,"uni-swiper-navigation-vertical":t.vertical};return t.navigation?Zr(Lr,null,[Zr("div",ri({class:["uni-swiper-navigation uni-swiper-navigation-prev",x({"uni-swiper-navigation-disabled":l},e)],onClick:e=>p(e,"prev",l)},d),[h()],16,["onClick"]),Zr("div",ri({class:["uni-swiper-navigation uni-swiper-navigation-next",x({"uni-swiper-navigation-disabled":u},e)],onClick:e=>p(e,"next",u)},d),[h()],16,["onClick"])]):null}},Ag=oc({name:"SwiperItem",props:{itemId:{type:String,default:""}},setup(e,{slots:t}){const n=tn(null),o={rootRef:n,getItemId:()=>e.itemId,getBoundingClientRect:()=>n.value.getBoundingClientRect(),updatePosition(e,t){const o=t?"0":100*e+"%",r=t?100*e+"%":"0",i=n.value,a=`translate(${o},${r}) translateZ(0)`;i&&(i.style.webkitTransform=a,i.style.transform=a)}};return jo((()=>{const e=Yn("addSwiperContext");e&&e(o)})),Mo((()=>{const e=Yn("removeSwiperContext");e&&e(o)})),()=>Zr("uni-swiper-item",{ref:n,style:{position:"absolute",width:"100%",height:"100%"}},[t.default&&t.default()],512)}}),Ng=oc({name:"Switch",props:{name:{type:String,default:""},checked:{type:[Boolean,String],default:!1},type:{type:String,default:"switch"},id:{type:String,default:""},disabled:{type:[Boolean,String],default:!1},color:{type:String,default:""}},emits:["change"],setup(e,{emit:t}){const n=tn(null),o=tn(e.checked),r=function(e,t){const n=Yn(cc,!1),o=Yn(pc,!1),r={submit:()=>{const n=["",null];return e.name&&(n[0]=e.name,n[1]=t.value),n},reset:()=>{t.value=!1}};n&&(n.addField(r),Mo((()=>{n.removeField(r)})));return o}(e,o),i=uc(n,t);Gn((()=>e.checked),(e=>{o.value=e}));const a=t=>{e.disabled||(o.value=!o.value,i("change",t,{value:o.value}))};return r&&(r.addHandler(a),qo((()=>{r.removeHandler(a)}))),gc(e,{"label-click":a}),()=>{const{color:t,type:r}=e,i=sc(e,"disabled"),s={};return t&&o.value&&(s.backgroundColor=t,s.borderColor=t),Zr("uni-switch",ri({ref:n},i,{onClick:a}),[Zr("div",{class:"uni-switch-wrapper"},[Fo(Zr("div",{class:["uni-switch-input",[o.value?"uni-switch-input-checked":""]],style:s},null,6),[[wa,"switch"===r]]),Fo(Zr("div",{class:"uni-checkbox-input"},[o.value?gu(pu,e.color,22):""],512),[[wa,"checkbox"===r]])])],16,["onClick"])}}});const Pg={ensp:" ",emsp:" ",nbsp:" "};function jg(e,t){return e.replace(/\\n/g,"\n").split("\n").map((e=>function(e,{space:t,decode:n}){if(!e)return e;t&&Pg[t]&&(e=e.replace(/ /g,Pg[t]));if(!n)return e;return e.replace(/ /g,Pg.nbsp).replace(/ /g,Pg.ensp).replace(/ /g,Pg.emsp).replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&").replace(/"/g,'"').replace(/'/g,"'")}(e,t)))}const Lg=oc({name:"Text",props:{selectable:{type:[Boolean,String],default:!1},space:{type:String,default:""},decode:{type:[Boolean,String],default:!1}},setup:(e,{slots:t})=>()=>{const n=[];return t.default&&t.default().forEach((t=>{if(8&t.shapeFlag&&t.type!==qr){const o=jg(t.children,{space:e.space,decode:e.decode}),r=o.length-1;o.forEach(((e,t)=>{(0!==t||e)&&n.push(Qr(e)),t!==r&&n.push(Zr("br"))}))}else n.push(t)})),Zr("uni-text",{selectable:!!e.selectable||null},[Zr("span",null,n)],8,["selectable"])}}),Ig=x({},Lh,{placeholderClass:{type:String,default:"input-placeholder"},autoHeight:{type:[Boolean,String],default:!1},confirmType:{type:String,default:"return",validator:e=>Mg.concat("return").includes(e)}});let qg=!1;const Mg=["done","go","next","search","send"];const Bg=oc({name:"Textarea",props:Ig,emits:["confirm","linechange",...Ih],setup(e,{emit:t}){const n=tn(null),o=tn(null),{fieldRef:r,state:i,scopedAttrsState:a,fixDisabledColor:s,trigger:l}=Bh(e,n,t),u=yi((()=>i.value.split("\n"))),c=yi((()=>Mg.includes(e.confirmType))),f=tn(0),d=tn(null);function p({height:e}){f.value=e}function h(e){"Enter"===e.key&&c.value&&e.preventDefault()}function g(t){if("Enter"===t.key&&c.value){!function(e){l("confirm",e,{value:i.value})}(t);const n=t.target;!e.confirmHold&&n.blur()}}return Gn((()=>f.value),(t=>{const r=n.value,i=d.value,a=o.value;let s=parseFloat(getComputedStyle(r).lineHeight);isNaN(s)&&(s=i.offsetHeight);var u=Math.round(t/s);l("linechange",{},{height:t,heightRpx:750/window.innerWidth*t,lineCount:u}),e.autoHeight&&(r.style.height="auto",a.style.height=t+"px")})),function(){const e="(prefers-color-scheme: dark)";qg=0===String(navigator.platform).indexOf("iP")&&0===String(navigator.vendor).indexOf("Apple")&&window.matchMedia(e).media!==e}(),()=>{let t=e.disabled&&s?Zr("textarea",{key:"disabled-textarea",ref:r,value:i.value,tabindex:"-1",readonly:!!e.disabled,maxlength:i.maxlength,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":qg},style:{overflowY:e.autoHeight?"hidden":"auto"},onFocus:e=>e.target.blur()},null,46,["value","readonly","maxlength","onFocus"]):Zr("textarea",{key:"textarea",ref:r,value:i.value,disabled:!!e.disabled,maxlength:i.maxlength,enterkeyhint:e.confirmType,inputmode:e.inputmode,class:{"uni-textarea-textarea":!0,"uni-textarea-textarea-fix-margin":qg},style:{overflowY:e.autoHeight?"hidden":"auto"},onKeydown:h,onKeyup:g},null,46,["value","disabled","maxlength","enterkeyhint","inputmode","onKeydown","onKeyup"]);return Zr("uni-textarea",{ref:n},[Zr("div",{ref:o,class:"uni-textarea-wrapper"},[Fo(Zr("div",ri(a.attrs,{style:e.placeholderStyle,class:["uni-textarea-placeholder",e.placeholderClass]}),[e.placeholder],16),[[wa,!i.value.length]]),Zr("div",{ref:d,class:"uni-textarea-line"},[" "],512),Zr("div",{class:"uni-textarea-compute"},[u.value.map((e=>Zr("div",null,[e.trim()?e:"."]))),Zr(Sp,{initial:!0,onResize:p},null,8,["initial","onResize"])]),"search"===e.confirmType?Zr("form",{action:"",onSubmit:()=>!1,class:"uni-input-form"},[t],40,["onSubmit"]):t],512)],512)}}}),Rg=oc({name:"View",props:x({},ic),setup(e,{slots:t}){const{hovering:n,binding:o}=ac(e);return()=>{const r=e.hoverClass;return r&&"none"!==r?Zr("uni-view",ri({class:n.value?r:""},o),[t.default&&t.default()],16):Zr("uni-view",null,[t.default&&t.default()])}}});function Dg(e,t){if(t||(t=e.id),t)return e.$options.name.toLowerCase()+"."+t}function $g(e,t,n){e&&Ll(n||_u(),e,(({type:e,data:n},o)=>{t(e,n,o)}))}function Fg(e,t){e&&function(e,t){t=jl(e,t),delete Pl[t]}(t||_u(),e)}function Ug(e,t,n,o){const r=ui().proxy;jo((()=>{$g(t||Dg(r),e,o),!n&&t||Gn((()=>r.id),((t,n)=>{$g(Dg(r,t),e,o),Fg(n&&Dg(r,n))}))})),qo((()=>{Fg(t||Dg(r),o)}))}let Hg=0;function zg(e){const t=mu(),n=ui().proxy,o=n.$options.name.toLowerCase(),r=e||n.id||"context"+Hg++;return jo((()=>{n.$el.__uniContextInfo={id:r,type:o,page:t}})),`${o}.${r}`}function Vg(e,t,n,o){N(t)&&Ao(e,t.bind(n),o)}function Wg(e,t,n){var o;const r=e.mpType||n.$mpType;if(r&&"component"!==r&&(Object.keys(e).forEach((o=>{if(function(e,t,n=!0){return!(n&&!N(t))&&(Te.indexOf(e)>-1||0===e.indexOf("on"))}(o,e[o],!1)){const r=e[o];S(r)?r.forEach((e=>Vg(o,e,n,t))):Vg(o,r,n,t)}})),"page"===r)){t.__isVisible=!0;try{Ou(n,"onLoad",t.attrs.__pageQuery),delete t.attrs.__pageQuery,"preloadPage"!==(null==(o=n.$page)?void 0:o.openType)&&Ou(n,"onShow")}catch(i){console.error(i.message+"\n"+i.stack)}}}function Yg(e,t,n){Wg(e,t,n)}function Kg(e,t,n){return e[t]=n}function Xg(e,...t){const n=this[e];return n?n(...t):(console.error(`method ${e} not found`),null)}function Gg(e){return function(t,n,o){if(!n)throw t;const r=e._instance;if(!r||!r.proxy)throw t;Ou(r.proxy,"onError",t)}}function Zg(e,t){return e?[...new Set([].concat(e,t))]:t}function Jg(e){const t=e._context.config;var n;t.errorHandler=Ee(e,Gg),n=t.optionMergeStrategies,Te.forEach((e=>{n[e]=Zg}));const o=t.globalProperties;o.$set=Kg,o.$applyOptions=Yg,o.$callMethod=Xg,function(e){Se.forEach((t=>t(e)))}(e)}const Qg=cu("upm");function em(){return Yn(Qg)}function tm(e){const t=function(e){return Ft(function(e){if(history.state){const t=history.state.__type__;"redirectTo"!==t&&"reLaunch"!==t||0!==gm().length||(e.isEntry=!0,e.isQuit=!0)}return e}(JSON.parse(JSON.stringify(ku(hl().meta,e)))))}(e);return Wn(Qg,t),t}function nm(){return hl()}function om(){return history.state&&history.state.__id__||1}let rm;function im(){var e;return rm||(rm=__uniConfig.tabBar&&Ft((e=__uniConfig.tabBar,gl()&&e.list&&e.list.forEach((e=>{bl(e,["text"])})),e))),rm}const am=window.CSS&&window.CSS.supports;function sm(e){return am&&(am(e)||am.apply(window.CSS,e.split(":")))}const lm=sm("top:env(a)"),um=sm("top:constant(a)"),cm=sm("backdrop-filter:blur(10px)"),fm=(()=>lm?"env":um?"constant":"")();function dm(e){return fm?`calc(${e}px + ${fm}(safe-area-inset-bottom))`:`${e}px`}const pm=new Map;function hm(){return pm}function gm(){const e=[],t=pm.values();for(const n of t)n.$.__isTabBar?n.$.__isActive&&e.push(n):e.push(n);return e}function mm(e,t=!0){const n=pm.get(e);n.$.__isUnload=!0,Ou(n,"onUnload"),pm.delete(e),t&&function(e){const t=wm.get(e);t&&(wm.delete(e),xm.pruneCacheEntry(t))}(e)}let vm=om();function ym(e){const t=em();let n=e.fullPath;return e.meta.isEntry&&-1===n.indexOf(e.meta.route)&&(n="/"+e.meta.route+n.replace("/","")),function(e,t,n,o,r,i){const{id:a,route:s}=o,l=Pe(o.navigationBar,__uniConfig.themeConfig,i).titleColor;return{id:a,path:ae(s),route:s,fullPath:t,options:n,meta:o,openType:e,eventChannel:r,statusBarStyle:"#ffffff"===l?"light":"dark"}}("navigateTo",n,{},t)}function bm(e){const t=ym(e.$route);!function(e,t){e.route=t.route,e.$vm=e,e.$page=t,e.$mpType="page",t.meta.isTabBar&&(e.$.__isTabBar=!0,e.$.__isActive=!0)}(e,t),pm.set(_m(t.path,t.id),e)}function _m(e,t){return e+"$$"+t}const wm=new Map,xm={get:e=>wm.get(e),set(e,t){!function(e){const t=parseInt(e.split("$$")[1]);if(!t)return;xm.forEach(((e,n)=>{const o=parseInt(n.split("$$")[1]);if(o&&o>t){if(function(e){return"tabBar"===e.props.type}(e))return;xm.delete(n),xm.pruneCacheEntry(e),Tn((()=>{pm.forEach(((e,t)=>{e.$.isUnmounted&&pm.delete(t)}))}))}}))}(e),wm.set(e,t)},delete(e){wm.get(e)&&wm.delete(e)},forEach(e){wm.forEach(e)}};function km(e,t){!function(e){const t=Tm(e),{body:n}=document;Sm&&n.removeAttribute(Sm),t&&n.setAttribute(t,""),Sm=t}(e),function(e){let t=0;if(e.isTabBar){const e=im();e.shown&&(t=parseInt(e.height))}var n;uu({"--window-top":(n=0,fm?`calc(${n}px + ${fm}(safe-area-inset-top))`:`${n}px`),"--window-bottom":dm(t)})}(t),function(e){{const t="nvue-dir-"+__uniConfig.nvue["flex-direction"];e.isNVue?(document.body.setAttribute("nvue",""),document.body.setAttribute(t,"")):(document.body.removeAttribute("nvue"),document.body.removeAttribute(t))}}(t),function(e,t){document.removeEventListener("touchmove",Tu),Em&&document.removeEventListener("scroll",Em);if(t.disableScroll)return document.addEventListener("touchmove",Tu);const{onPageScroll:n,onReachBottom:o}=e,r="transparent"===t.navigationBar.type;if(!n&&!o&&!r)return;const i={},a=e.proxy.$page.id;(n||r)&&(i.onPageScroll=function(e,t,n){return o=>{t&&fb.publishHandler("onPageScroll",{scrollTop:o},e),n&&fb.emit(e+".onPageScroll",{scrollTop:o})}}(a,n,r));o&&(i.onReachBottomDistance=t.onReachBottomDistance||50,i.onReachBottom=()=>fb.publishHandler("onReachBottom",{},a));Em=Cu(i),requestAnimationFrame((()=>document.addEventListener("scroll",Em)))}(e,t)}function Om(e){const t=Tm(e);t&&function(e){const t=document.querySelector("uni-page-body");t&&t.setAttribute(e,"")}(t)}function Tm(e){return e.type.__scopeId}let Sm,Em;function Cm(e){const t=dl({history:Nm(),strict:!!__uniConfig.router.strict,routes:__uniRoutes,scrollBehavior:Am});e.router=t,e.use(t)}const Am=(e,t,n)=>{if(n)return n};function Nm(){let{routerBase:e}=__uniConfig.router;"/"===e&&(e="");const t=(n=e,(n=location.host?n||location.pathname+location.search:"").includes("#")||(n+="#"),ls(n));var n;return t.listen(((e,t,n)=>{"back"===n.direction&&function(e=1){const t=gm(),n=t.length-1,o=n-e;for(let r=n;r>o;r--){const e=t[r].$page;mm(_m(e.path,e.id),!1)}}(Math.abs(n.delta))})),t}const Pm={install(e){Jg(e),Fu(e),Ju(e),e.config.warnHandler||(e.config.warnHandler=jm),Cm(e)}};function jm(e,t,n){if(t){if("PageMetaHead"===t.$.type.name)return;const e=t.$.parent;if(e&&"PageMeta"===e.type.name)return}const o=[`[Vue warn]: ${e}`];n.length&&o.push("\n",n),console.warn(...o)}const Lm={class:"uni-async-loading"},Im=Zr("i",{class:"uni-loading"},null,-1),qm=rc({name:"AsyncLoading",render:()=>(Dr(),zr("div",Lm,[Im]))});function Mm(){window.location.reload()}const Bm=rc({name:"AsyncError",setup(){xl();const{t:e}=_l();return()=>Zr("div",{class:"uni-async-error",onClick:Mm},[e("uni.async.error")],8,["onClick"])}});let Rm;function Dm(){return Rm}function $m(e){Rm=e,Object.defineProperty(Rm.$.ctx,"$children",{get:()=>gm().map((e=>e.$vm))});const t=Rm.$.appContext.app;t.component(qm.name)||t.component(qm.name,qm),t.component(Bm.name)||t.component(Bm.name,Bm),function(e){e.$vm=e,e.$mpType="app";const t=tn(_l().getLocale());Object.defineProperty(e,"$locale",{get:()=>t.value,set(e){t.value=e}})}(Rm),function(e,t){const n=e.$options||{};n.globalData=x(n.globalData||{},t),Object.defineProperty(e,"globalData",{get:()=>n.globalData,set(e){n.globalData=e}})}(Rm),Gu(),Vl()}function Fm(e,{clone:t,init:n,setup:o,before:r}){t&&(e=x({},e)),r&&r(e);const i=e.setup;return e.setup=(e,t)=>{const r=ui();n(r.proxy);const a=o(r);if(i)return i(a||e,t)},e}function Um(e,t){return e&&(e.__esModule||"Module"===e[Symbol.toStringTag])?Fm(e.default,t):Fm(e,t)}function Hm(e){return Um(e,{clone:!0,init:bm,setup(e){e.$pageInstance=e;const t=nm(),n=ye(t.query);e.attrs.__pageQuery=n,e.proxy.$page.options=n;const o=em();var r,i,a;return Po((()=>{km(e,o)})),jo((()=>{Om(e);const{onReady:n}=e;n&&K(n),Ym(t)})),xo((()=>{if(!e.__isVisible){km(e,o),e.__isVisible=!0;const{onShow:n}=e;n&&K(n),Tn((()=>{Ym(t)}))}}),"ba",r),function(e,t){xo(e,"bda",t)}((()=>{if(e.__isVisible&&!e.__isUnload){e.__isVisible=!1;const{onHide:t}=e;t&&K(t)}})),i=o.id,fb.subscribe(jl(i,"invokeViewApi"),a?a(Il):Il),qo((()=>{!function(e){fb.unsubscribe(jl(e,"invokeViewApi")),Object.keys(Pl).forEach((t=>{0===t.indexOf(e+".")&&delete Pl[t]}))}(o.id)})),n}})}function zm(){const{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}=gv(),r=90===Math.abs(Number(window.orientation))?"landscape":"portrait";db.emit("onResize",{deviceOrientation:r,size:{windowWidth:e,windowHeight:t,screenWidth:n,screenHeight:o}})}function Vm(e){B(e.data)&&"WEB_INVOKE_APPSERVICE"===e.data.type&&db.emit("onWebInvokeAppService",e.data.data,e.data.pageId)}function Wm(){const{emit:e}=db;"visible"===document.visibilityState?e("onAppEnterForeground",x({},Tp)):e("onAppEnterBackground")}function Ym(e){const{tabBarText:t,tabBarIndex:n,route:o}=e.meta;t&&Ou("onTabItemTap",{index:n,text:t,pagePath:o})}function Km(e){e=e>0&&e<1/0?e:0;const t=Math.floor(e/3600),n=Math.floor(e%3600/60),o=Math.floor(e%3600%60),r=(t<10?"0":"")+t;let i=(n<10?"0":"")+n+":"+((o<10?"0":"")+o);return"00"!==r&&(i=r+":"+i),i}function Xm(e,t,n){const o=Ft({gestureType:"none",volumeOld:0,volumeNew:0,currentTimeOld:0,currentTimeNew:0}),r={x:0,y:0};return{state:o,onTouchstart:function(e){const t=e.targetTouches[0];r.x=t.pageX,r.y=t.pageY,o.gestureType="none",o.volumeOld=0,o.currentTimeOld=o.currentTimeNew=0},onTouchmove:function(i){function a(){i.stopPropagation(),i.preventDefault()}n.fullscreen&&a();const s=o.gestureType;if("stop"===s)return;const l=i.targetTouches[0],u=l.pageX,c=l.pageY,f=r,d=t.value;if("progress"===s?function(e){const n=t.value.duration;let r=e/600*n+o.currentTimeOld;r<0?r=0:r>n&&(r=n);o.currentTimeNew=r}(u-f.x):"volume"===s&&function(e){const n=t.value,r=o.volumeOld;let i;"number"==typeof r&&(i=r-e/200,i<0?i=0:i>1&&(i=1),n.volume=i,o.volumeNew=i)}(c-f.y),"none"===s)if(Math.abs(u-f.x)>Math.abs(c-f.y)){if(!e.enableProgressGesture)return void(o.gestureType="stop");o.gestureType="progress",o.currentTimeOld=o.currentTimeNew=d.currentTime,n.fullscreen||a()}else{if(!e.pageGesture)return void(o.gestureType="stop");o.gestureType="volume",o.volumeOld=d.volume,n.fullscreen||a()}},onTouchend:function(e){const n=t.value;"none"!==o.gestureType&&"stop"!==o.gestureType&&(e.stopPropagation(),e.preventDefault()),"progress"===o.gestureType&&o.currentTimeOld!==o.currentTimeNew&&(n.currentTime=o.currentTimeNew),o.gestureType="none"}}}const Gm=oc({name:"Video",props:{id:{type:String,default:""},src:{type:String,default:""},duration:{type:[Number,String],default:""},controls:{type:[Boolean,String],default:!0},danmuList:{type:Array,default:()=>[]},danmuBtn:{type:[Boolean,String],default:!1},enableDanmu:{type:[Boolean,String],default:!1},autoplay:{type:[Boolean,String],default:!1},loop:{type:[Boolean,String],default:!1},muted:{type:[Boolean,String],default:!1},objectFit:{type:String,default:"contain"},poster:{type:String,default:""},direction:{type:[String,Number],default:""},showProgress:{type:Boolean,default:!0},initialTime:{type:[String,Number],default:0},showFullscreenBtn:{type:[Boolean,String],default:!0},pageGesture:{type:[Boolean,String],default:!1},enableProgressGesture:{type:[Boolean,String],default:!0},showPlayBtn:{type:[Boolean,String],default:!0},showCenterPlayBtn:{type:[Boolean,String],default:!0}},emits:["fullscreenchange","progress","loadedmetadata","waiting","error","play","pause","ended","timeupdate"],setup(e,{emit:t,attrs:n,slots:o}){const r=tn(null),i=tn(null),a=uc(r,t),{state:s}=Ah(),{$attrs:l}=Fh({excludeListeners:!0}),{t:u}=_l();Cl();const{videoRef:c,state:f,play:d,pause:p,seek:h,playbackRate:g,toggle:m,onDurationChange:v,onLoadedMetadata:y,onProgress:b,onWaiting:_,onVideoError:w,onPlay:x,onPause:k,onEnded:O,onTimeUpdate:T}=function(e,t,n){const o=tn(null),r=yi((()=>wc(e.src))),i=Ft({start:!1,src:r,playing:!1,currentTime:0,duration:0,progress:0,buffered:0});function a(e){const t=e.target,n=t.buffered;n.length&&(i.buffered=n.end(n.length-1)/t.duration*100)}return Gn((()=>r.value),(()=>{i.playing=!1,i.currentTime=0})),Gn((()=>i.buffered),(e=>{n("progress",{},{buffered:e})})),{videoRef:o,state:i,play:function(){const e=o.value;i.start=!0,e.play()},pause:function(){o.value.pause()},seek:function(e){const t=o.value;"number"!=typeof(e=Number(e))||isNaN(e)||(t.currentTime=e)},playbackRate:function(e){o.value.playbackRate=e},toggle:function(){const e=o.value;i.playing?e.pause():e.play()},onDurationChange:function({target:e}){i.duration=e.duration},onLoadedMetadata:function(t){const o=Number(e.initialTime)||0,r=t.target;o>0&&(r.currentTime=o),n("loadedmetadata",t,{width:r.videoWidth,height:r.videoHeight,duration:r.duration}),a(t)},onProgress:a,onWaiting:function(e){n("waiting",e,{})},onVideoError:function(e){i.playing=!1,n("error",e,{})},onPlay:function(e){i.start=!0,i.playing=!0,n("play",e,{})},onPause:function(e){i.playing=!1,n("pause",e,{})},onEnded:function(e){i.playing=!1,n("ended",e,{})},onTimeUpdate:function(e){const t=e.target,o=i.currentTime=t.currentTime;n("timeupdate",e,{currentTime:o,duration:t.duration})}}}(e,0,a),{state:E,danmuRef:C,updateDanmu:A,toggleDanmu:N,sendDanmu:P}=function(e,t){const n=tn(null),o=Ft({enable:Boolean(e.enableDanmu)});let r={time:0,index:-1};const i=S(e.danmuList)?JSON.parse(JSON.stringify(e.danmuList)):[];function a(e){const t=document.createElement("p");t.className="uni-video-danmu-item",t.innerText=e.text;let o=`bottom: ${100*Math.random()}%;color: ${e.color};`;t.setAttribute("style",o),n.value.appendChild(t),setTimeout((function(){o+="left: 0;-webkit-transform: translateX(-100%);transform: translateX(-100%);",t.setAttribute("style",o),setTimeout((function(){t.remove()}),4e3)}),17)}return i.sort((function(e,t){return(e.time||0)-(t.time||0)})),{state:o,danmuRef:n,updateDanmu:function(e){const n=e.target.currentTime,s=r,l={time:n,index:s.index};if(n>s.time)for(let r=s.index+1;r<i.length;r++){const e=i[r];if(!(n>=(e.time||0)))break;l.index=r,t.playing&&o.enable&&a(e)}else if(n<s.time)for(let t=s.index-1;t>-1&&n<=(i[t].time||0);t--)l.index=t-1;r=l},toggleDanmu:function(){o.enable=!o.enable},sendDanmu:function(e){i.splice(r.index+1,0,{text:String(e.text),color:e.color,time:t.currentTime||0})}}}(e,f),{state:j,onFullscreenChange:L,emitFullscreenChange:I,toggleFullscreen:q,requestFullScreen:M,exitFullScreen:B}=function(e,t,n,o,r){const i=Ft({fullscreen:!1}),a=/^Apple/.test(navigator.vendor);function s(t){i.fullscreen=t,e("fullscreenchange",{},{fullScreen:t,direction:"vertical"})}function l(e){const i=r.value,l=t.value,u=n.value;let c;e?!document.fullscreenEnabled&&!document.webkitFullscreenEnabled||a&&!o.userAction?u.webkitEnterFullScreen?u.webkitEnterFullScreen():(c=!0,l.remove(),l.classList.add("uni-video-type-fullscreen"),document.body.appendChild(l)):l[document.fullscreenEnabled?"requestFullscreen":"webkitRequestFullscreen"]():document.fullscreenEnabled||document.webkitFullscreenEnabled?document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen():u.webkitExitFullScreen?u.webkitExitFullScreen():(c=!0,l.remove(),l.classList.remove("uni-video-type-fullscreen"),i.appendChild(l)),c&&s(e)}function u(){l(!1)}return qo(u),{state:i,onFullscreenChange:function(e,t){t&&document.fullscreenEnabled||s(!(!document.fullscreenElement&&!document.webkitFullscreenElement))},emitFullscreenChange:s,toggleFullscreen:l,requestFullScreen:function(){l(!0)},exitFullScreen:u}}(a,i,c,s,r),{state:R,onTouchstart:D,onTouchend:$,onTouchmove:F}=Xm(e,c,j),{state:U,progressRef:H,ballRef:z,clickProgress:V,toggleControls:W}=function(e,t,n){const o=tn(null),r=tn(null),i=yi((()=>e.showCenterPlayBtn&&!t.start)),a=tn(!0),s=yi((()=>!i.value&&e.controls&&a.value)),l=Ft({touching:!1,controlsTouching:!1,centerPlayBtnShow:i,controlsShow:s,controlsVisible:a});let u;function c(){u=setTimeout((()=>{l.controlsVisible=!1}),3e3)}function f(){u&&(clearTimeout(u),u=null)}return qo((()=>{u&&clearTimeout(u)})),Gn((()=>l.controlsShow&&t.playing&&!l.controlsTouching),(e=>{e?c():f()})),Gn([()=>t.currentTime,()=>{e.duration}],(function(){l.touching||(t.progress=t.currentTime/t.duration*100)})),jo((()=>{const e=ge(!1);let i,a,s,u=!0;const c=r.value;function f(e){const n=e.targetTouches[0],r=n.pageX,l=n.pageY;if(u&&Math.abs(r-i)<Math.abs(l-a))return void d(e);u=!1;const c=o.value.offsetWidth;let f=s+(r-i)/c*100;f<0?f=0:f>100&&(f=100),t.progress=f,e.preventDefault(),e.stopPropagation()}function d(o){l.controlsTouching=!1,l.touching&&(c.removeEventListener("touchmove",f,e),u||(o.preventDefault(),o.stopPropagation(),n(t.duration*t.progress/100)),l.touching=!1)}c.addEventListener("touchstart",(n=>{l.controlsTouching=!0;const o=n.targetTouches[0];i=o.pageX,a=o.pageY,s=t.progress,u=!0,l.touching=!0,c.addEventListener("touchmove",f,e)})),c.addEventListener("touchend",d),c.addEventListener("touchcancel",d)})),{state:l,progressRef:o,ballRef:r,clickProgress:function(e){const r=o.value;let i=e.target,a=e.offsetX;for(;i&&i!==r;)a+=i.offsetLeft,i=i.parentNode;const s=r.offsetWidth;let l=0;a>=0&&a<=s&&(l=a/s,n(t.duration*l))},toggleControls:function(){l.controlsVisible=!l.controlsVisible},autoHideStart:c,autoHideEnd:f}}(e,f,h);return function(e,t,n,o,r,i,a){const s={play:e,pause:t,seek:n,sendDanmu:o,playbackRate:r,requestFullScreen:i,exitFullScreen:a};Ug(((e,t)=>{let n;switch(e){case"seek":n=t.position;break;case"sendDanmu":n=t;break;case"playbackRate":n=t.rate}e in s&&s[e](n)}),zg(),!0)}(d,p,h,P,g,M,B),()=>Zr("uni-video",{ref:r,id:e.id},[Zr("div",{ref:i,class:"uni-video-container",onTouchstart:D,onTouchend:$,onTouchmove:F,onFullscreenchange:_a(L,["stop"]),onWebkitfullscreenchange:_a((e=>L(e,!0)),["stop"])},[Zr("video",ri({ref:c,style:{"object-fit":e.objectFit},muted:!!e.muted,loop:!!e.loop,src:f.src,poster:e.poster,autoplay:!!e.autoplay},l.value,{class:"uni-video-video","webkit-playsinline":!0,playsinline:!0,onClick:W,onDurationchange:v,onLoadedmetadata:y,onProgress:b,onWaiting:_,onError:w,onPlay:x,onPause:k,onEnded:O,onTimeupdate:e=>{T(e),A(e)},onWebkitbeginfullscreen:()=>I(!0),onX5videoenterfullscreen:()=>I(!0),onWebkitendfullscreen:()=>I(!1),onX5videoexitfullscreen:()=>I(!1)}),null,16,["muted","loop","src","poster","autoplay","webkit-playsinline","playsinline","onClick","onDurationchange","onLoadedmetadata","onProgress","onWaiting","onError","onPlay","onPause","onEnded","onTimeupdate","onWebkitbeginfullscreen","onX5videoenterfullscreen","onWebkitendfullscreen","onX5videoexitfullscreen"]),Fo(Zr("div",{class:"uni-video-bar uni-video-bar-full",onClick:_a((()=>{}),["stop"])},[Zr("div",{class:"uni-video-controls"},[Fo(Zr("div",{class:{"uni-video-control-button":!0,"uni-video-control-button-play":!f.playing,"uni-video-control-button-pause":f.playing},onClick:_a(m,["stop"])},null,10,["onClick"]),[[wa,e.showPlayBtn]]),Fo(Zr("div",{class:"uni-video-current-time"},[Km(f.currentTime)],512),[[wa,e.showProgress]]),Fo(Zr("div",{ref:H,class:"uni-video-progress-container",onClick:_a(V,["stop"])},[Zr("div",{class:"uni-video-progress"},[Zr("div",{style:{width:f.buffered+"%"},class:"uni-video-progress-buffered"},null,4),Zr("div",{ref:z,style:{left:f.progress+"%"},class:"uni-video-ball"},[Zr("div",{class:"uni-video-inner"},null)],4)])],8,["onClick"]),[[wa,e.showProgress]]),Fo(Zr("div",{class:"uni-video-duration"},[Km(Number(e.duration)||f.duration)],512),[[wa,e.showProgress]])]),Fo(Zr("div",{class:{"uni-video-danmu-button":!0,"uni-video-danmu-button-active":E.enable},onClick:_a(N,["stop"])},[u("uni.video.danmu")],10,["onClick"]),[[wa,e.danmuBtn]]),Fo(Zr("div",{class:{"uni-video-fullscreen":!0,"uni-video-type-fullscreen":j.fullscreen},onClick:_a((()=>q(!j.fullscreen)),["stop"])},null,10,["onClick"]),[[wa,e.showFullscreenBtn]])],8,["onClick"]),[[wa,U.controlsShow]]),Fo(Zr("div",{ref:C,style:"z-index: 0;",class:"uni-video-danmu"},null,512),[[wa,f.start&&E.enable]]),U.centerPlayBtnShow&&Zr("div",{class:"uni-video-cover",onClick:_a((()=>{}),["stop"])},[Zr("div",{class:"uni-video-cover-play-button",onClick:_a(d,["stop"])},null,8,["onClick"]),Zr("p",{class:"uni-video-cover-duration"},[Km(Number(e.duration)||f.duration)])],8,["onClick"]),Zr("div",{class:{"uni-video-toast":!0,"uni-video-toast-volume":"volume"===R.gestureType}},[Zr("div",{class:"uni-video-toast-title"},[u("uni.video.volume")]),Zr("svg",{class:"uni-video-toast-icon",width:"200px",height:"200px",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},[Zr("path",{d:"M475.400704 201.19552l0 621.674496q0 14.856192-10.856448 25.71264t-25.71264 10.856448-25.71264-10.856448l-190.273536-190.273536-149.704704 0q-14.856192 0-25.71264-10.856448t-10.856448-25.71264l0-219.414528q0-14.856192 10.856448-25.71264t25.71264-10.856448l149.704704 0 190.273536-190.273536q10.856448-10.856448 25.71264-10.856448t25.71264 10.856448 10.856448 25.71264zm219.414528 310.837248q0 43.425792-24.28416 80.851968t-64.2816 53.425152q-5.71392 2.85696-14.2848 2.85696-14.856192 0-25.71264-10.570752t-10.856448-25.998336q0-11.999232 6.856704-20.284416t16.570368-14.2848 19.427328-13.142016 16.570368-20.284416 6.856704-32.569344-6.856704-32.569344-16.570368-20.284416-19.427328-13.142016-16.570368-14.2848-6.856704-20.284416q0-15.427584 10.856448-25.998336t25.71264-10.570752q8.57088 0 14.2848 2.85696 39.99744 15.427584 64.2816 53.139456t24.28416 81.137664zm146.276352 0q0 87.422976-48.56832 161.41824t-128.5632 107.707392q-7.428096 2.85696-14.2848 2.85696-15.427584 0-26.284032-10.856448t-10.856448-25.71264q0-22.284288 22.284288-33.712128 31.997952-16.570368 43.425792-25.141248 42.283008-30.855168 65.995776-77.423616t23.712768-99.136512-23.712768-99.136512-65.995776-77.423616q-11.42784-8.57088-43.425792-25.141248-22.284288-11.42784-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 79.99488 33.712128 128.5632 107.707392t48.56832 161.41824zm146.276352 0q0 131.42016-72.566784 241.41312t-193.130496 161.989632q-7.428096 2.85696-14.856192 2.85696-14.856192 0-25.71264-10.856448t-10.856448-25.71264q0-20.570112 22.284288-33.712128 3.999744-2.285568 12.85632-5.999616t12.85632-5.999616q26.284032-14.2848 46.854144-29.140992 70.281216-51.996672 109.707264-129.705984t39.426048-165.132288-39.426048-165.132288-109.707264-129.705984q-20.570112-14.856192-46.854144-29.140992-3.999744-2.285568-12.85632-5.999616t-12.85632-5.999616q-22.284288-13.142016-22.284288-33.712128 0-14.856192 10.856448-25.71264t25.71264-10.856448q7.428096 0 14.856192 2.85696 120.563712 51.996672 193.130496 161.989632t72.566784 241.41312z"},null)]),Zr("div",{class:"uni-video-toast-value"},[Zr("div",{style:{width:100*R.volumeNew+"%"},class:"uni-video-toast-value-content"},[Zr("div",{class:"uni-video-toast-volume-grids"},[Ko(10,(()=>Zr("div",{class:"uni-video-toast-volume-grids-item"},null)))])],4)])],2),Zr("div",{class:{"uni-video-toast":!0,"uni-video-toast-progress":"progress"===R.gestureType}},[Zr("div",{class:"uni-video-toast-title"},[Km(R.currentTimeNew)," / ",Km(f.duration)])],2),Zr("div",{class:"uni-video-slots"},[o.default&&o.default()])],40,["onTouchstart","onTouchend","onTouchmove","onFullscreenchange","onWebkitfullscreenchange"])],8,["id"])}}),Zm=({name:e,arg:t})=>{"postMessage"===e||uni[e](t)},Jm=ue((()=>db.on("onWebInvokeAppService",Zm))),Qm=oc({inheritAttrs:!1,name:"WebView",props:{src:{type:String,default:""},fullscreen:{type:Boolean,default:!0}},setup(e){Jm();const t=tn(null),n=tn(null),{$attrs:o,$excludeAttrs:r,$listeners:i}=Fh({excludeListeners:!0});let a;return(()=>{const r=document.createElement("iframe");Kn((()=>{for(const e in o.value)if(T(o.value,e)){const t=o.value[e];r[e]=t}})),Kn((()=>{r.src=wc(e.src)})),n.value=r,a=function(e,t,n){return()=>{var o,r;if(n){const{top:n,left:o,width:r,height:i}=e.value.getBoundingClientRect();le(t.value,{position:"absolute",display:"block",border:"0",top:n+"px",left:o+"px",width:r+"px",height:i+"px"})}else le(t.value,{width:(null==(o=e.value)?void 0:o.style.width)||"300px",height:(null==(r=e.value)?void 0:r.style.height)||"150px"})}}(t,n,e.fullscreen),e.fullscreen&&document.body.appendChild(r)})(),jo((()=>{var o;a(),!e.fullscreen&&(null==(o=t.value)||o.appendChild(n.value))})),_o((()=>{e.fullscreen&&(n.value.style.display="block")})),wo((()=>{e.fullscreen&&(n.value.style.display="none")})),qo((()=>{e.fullscreen&&document.body.removeChild(n.value)})),()=>Zr(Lr,null,[Zr("uni-web-view",ri({class:e.fullscreen?"uni-webview--fullscreen":""},i.value,r.value,{ref:t}),[Zr(Sp,{onResize:a},null,8,["onResize"])],16)])}});const ev=ue((()=>{cd.forEach((e=>{tv.prototype[e]=function(t){N(t)&&this._events[e].push(t)}})),fd.forEach((e=>{tv.prototype[e]=function(t){var n=this._events[e.replace("off","on")],o=n.indexOf(t);o>=0&&n.splice(o,1)}}))}));class tv{constructor(){this._src="";var e=this._audio=new Audio;this._stoping=!1;["src","autoplay","loop","duration","currentTime","paused","volume"].forEach((t=>{Object.defineProperty(this,t,{set:"src"===t?t=>(e.src=wc(t),this._src=t,t):n=>(e[t]=n,n),get:"src"===t?()=>this._src:()=>e[t]})})),this.startTime=0,Object.defineProperty(this,"obeyMuteSwitch",{set:()=>!1,get:()=>!1}),Object.defineProperty(this,"buffered",{get(){var t=e.buffered;return t.length?t.end(t.length-1):0}}),this._events={},cd.forEach((e=>{this._events[e]=[]})),e.addEventListener("loadedmetadata",(()=>{var t=Number(this.startTime)||0;t>0&&(e.currentTime=t)}));var t=["canplay","pause","seeking","seeked","timeUpdate"];t.concat(["play","ended","error","waiting"]).forEach((n=>{e.addEventListener(n.toLowerCase(),(()=>{if(this._stoping&&t.indexOf(n)>=0)return;const e=`on${n.slice(0,1).toUpperCase()}${n.slice(1)}`;this._events[e].forEach((e=>{e()}))}),!1)})),ev()}play(){this._stoping=!1,this._audio.play()}pause(){this._audio.pause()}stop(){this._stoping=!0,this._audio.pause(),this._audio.currentTime=0,this._events.onStop.forEach((e=>{e()}))}seek(e){this._stoping=!1,"number"!=typeof(e=Number(e))||isNaN(e)||(this._audio.currentTime=e)}destroy(){this.stop()}}const nv=wf(0,(()=>new tv)),ov=xf("makePhoneCall",(({phoneNumber:e},{resolve:t})=>(window.location.href=`tel:${e}`,t()))),rv=navigator.cookieEnabled&&(window.localStorage||window.sessionStorage)||{};let iv;function av(){if(iv=iv||rv.__DC_STAT_UUID,!iv){iv=Date.now()+""+Math.floor(1e7*Math.random());try{rv.__DC_STAT_UUID=iv}catch(e){}}return iv}function sv(){if(!0!==__uniConfig.darkmode)return P(__uniConfig.darkmode)?__uniConfig.darkmode:"light";try{return window.matchMedia("(prefers-color-scheme: light)").matches?"light":"dark"}catch(e){return"light"}}function lv(){let e,t="0",n="",o="phone";const r=navigator.language;if(Oc){e="iOS";const o=xc.match(/OS\s([\w_]+)\slike/);o&&(t=o[1].replace(/_/g,"."));const r=xc.match(/\(([a-zA-Z]+);/);r&&(n=r[1])}else if(kc){e="Android";const o=xc.match(/Android[\s/]([\w\.]+)[;\s]/);o&&(t=o[1]);const r=xc.match(/\((.+?)\)/),i=r?r[1].split(";"):xc.split(" "),a=[/\bAndroid\b/i,/\bLinux\b/i,/\bU\b/i,/^\s?[a-z][a-z]$/i,/^\s?[a-z][a-z]-[a-z][a-z]$/i,/\bwv\b/i,/\/[\d\.,]+$/,/^\s?[\d\.,]+$/,/\bBrowser\b/i,/\bMobile\b/i];for(let e=0;e<i.length;e++){const t=i[e];if(t.indexOf("Build")>0){n=t.split("Build")[0].trim();break}let o;for(let e=0;e<a.length;e++)if(a[e].test(t)){o=!0;break}if(!o){n=t.trim();break}}}else if(Cc)n="iPad",e="iOS",o="pad",t=N(window.BigInt)?"14.0":"13.0";else if(Tc||Sc||Ec){n="PC",e="PC",o="pc",t="0";let r=xc.match(/\((.+?)\)/)[1];if(Tc){switch(e="Windows",Tc[1]){case"5.1":t="XP";break;case"6.0":t="Vista";break;case"6.1":t="7";break;case"6.2":t="8";break;case"6.3":t="8.1";break;case"10.0":t="10"}const n=r&&r.match(/[Win|WOW]([\d]+)/);n&&(t+=` x${n[1]}`)}else if(Sc){e="macOS";const n=r&&r.match(/Mac OS X (.+)/)||"";t&&(t=n[1].replace(/_/g,"."),-1!==t.indexOf(";")&&(t=t.split(";")[0]))}else if(Ec){e="Linux";const n=r&&r.match(/Linux (.*)/)||"";n&&(t=n[1],-1!==t.indexOf(";")&&(t=t.split(";")[0]))}}else e="Other",t="0",o="unknown";const i=`${e} ${t}`,a=e.toLocaleLowerCase();let s="",l=String(function(){const e=navigator.userAgent,t=e.indexOf("compatible")>-1&&e.indexOf("MSIE")>-1,n=e.indexOf("Edge")>-1&&!t,o=e.indexOf("Trident")>-1&&e.indexOf("rv:11.0")>-1;if(t){new RegExp("MSIE (\\d+\\.\\d+);").test(e);const t=parseFloat(RegExp.$1);return t>6?t:6}return n?-1:o?11:-1}());if("-1"!==l)s="IE";else{const e=["Version","Firefox","Chrome","Edge{0,1}"],t=["Safari","Firefox","Chrome","Edge"];for(let n=0;n<e.length;n++){const o=e[n],r=new RegExp(`(${o})/(\\S*)\\b`);r.test(xc)&&(s=t[n],l=xc.match(r)[2])}}let u="portrait";const c=void 0===window.screen.orientation?window.orientation:window.screen.orientation.angle;return u=90===Math.abs(c)?"landscape":"portrait",{deviceBrand:void 0,brand:void 0,deviceModel:n,deviceOrientation:u,model:n,system:i,platform:a,browserName:s.toLocaleLowerCase(),browserVersion:l,language:r,deviceType:o,ua:xc,osname:e,osversion:t,theme:sv()}}const uv=wf(0,(()=>{const e=window.devicePixelRatio,t=Ac(),n=Nc(t),o=Pc(t,n),r=function(e,t){return e?Math[t?"min":"max"](screen.height,screen.width):screen.height}(t,n),i=jc(o);let a=window.innerHeight;const s=nu.top,l={left:nu.left,right:i-nu.right,top:nu.top,bottom:a-nu.bottom,width:i-nu.left-nu.right,height:a-nu.top-nu.bottom},{top:u,bottom:c}=su();return a-=u,a-=c,{windowTop:u,windowBottom:c,windowWidth:i,windowHeight:a,pixelRatio:e,screenWidth:o,screenHeight:r,statusBarHeight:s,safeArea:l,safeAreaInsets:{top:nu.top,right:nu.right,bottom:nu.bottom,left:nu.left},screenTop:r-a}}));let cv,fv=!0;function dv(){fv&&(cv=lv())}const pv=wf(0,(()=>{dv();const{deviceBrand:e,deviceModel:t,brand:n,model:o,platform:r,system:i,deviceOrientation:a,deviceType:s}=cv;return{brand:n,deviceBrand:e,deviceModel:t,devicePixelRatio:window.devicePixelRatio,deviceId:av(),deviceOrientation:a,deviceType:s,model:o,platform:r,system:i}})),hv=wf(0,(()=>{dv();const{theme:e,language:t,browserName:n,browserVersion:o}=cv;return{appId:__uniConfig.appId,appName:__uniConfig.appName,appVersion:__uniConfig.appVersion,appVersionCode:__uniConfig.appVersionCode,appLanguage:Nd?Nd():t,enableDebug:!1,hostSDKVersion:void 0,hostPackageName:void 0,hostFontSizeSetting:void 0,hostName:n,hostVersion:o,hostTheme:e,hostLanguage:t,language:t,SDKVersion:"",theme:e,version:""}})),gv=wf(0,(()=>{fv=!0,dv(),fv=!1;const e=uv(),t=pv(),n=hv();fv=!0;const{ua:o,browserName:r,browserVersion:i,osname:a,osversion:s}=cv,l=x(e,t,n,{ua:o,browserName:r,browserVersion:i,uniPlatform:"web",uniCompileVersion:__uniConfig.compilerVersion,uniRuntimeVersion:__uniConfig.compilerVersion,fontSizeSetting:void 0,osName:a.toLocaleLowerCase(),osVersion:s,osLanguage:void 0,osTheme:void 0});return delete l.screenTop,delete l.enableDebug,__uniConfig.darkmode||delete l.theme,function(e){let t={};return B(e)&&Object.keys(e).sort().forEach((n=>{const o=n;t[o]=e[o]})),Object.keys(t)?t:e}(l)})),mv=xf("getSystemInfo",((e,{resolve:t})=>t(gv())));function vv(){wv().then((({networkType:e})=>{db.invokeOnCallback("onNetworkStatusChange",{isConnected:"none"!==e,networkType:e})}))}function yv(){return navigator.connection||navigator.webkitConnection||navigator.mozConnection}const bv=yf("onNetworkStatusChange",(()=>{const e=yv();e?e.addEventListener("change",vv):(window.addEventListener("offline",vv),window.addEventListener("online",vv))})),_v=bf("offNetworkStatusChange",(()=>{const e=yv();e?e.removeEventListener("change",vv):(window.removeEventListener("offline",vv),window.removeEventListener("online",vv))})),wv=xf("getNetworkType",((e,{resolve:t})=>{const n=yv();let o="unknown";return n?(o=n.type,"cellular"===o&&n.effectiveType?o=n.effectiveType.replace("slow-",""):["none","wifi"].includes(o)||(o="unknown")):!1===navigator.onLine&&(o="none"),t({networkType:o})})),xv=!!window.navigator.vibrate,kv=xf("vibrateLong",((e,{resolve:t,reject:n})=>{xv&&window.navigator.vibrate(400)?t():n("vibrateLong:fail")}));const Ov=xf("setClipboardData",((e,t)=>{return n=void 0,o=[e,t],r=function*({data:e},{resolve:t,reject:n}){try{yield navigator.clipboard.writeText(e),t()}catch(o){!function(e,t,n){const o=document.getElementById("#clipboard");o&&o.remove();const r=document.createElement("textarea");r.id="#clipboard",r.style.position="fixed",r.style.top="-9999px",r.style.zIndex="-9999",document.body.appendChild(r),r.value=e,r.select(),r.setSelectionRange(0,r.value.length);const i=document.execCommand("Copy",!1);r.blur(),i?t():n()}(e,t,n)}},new Promise(((e,t)=>{var i=e=>{try{s(r.next(e))}catch(n){t(n)}},a=e=>{try{s(r.throw(e))}catch(n){t(n)}},s=t=>t.done?e(t.value):Promise.resolve(t.value).then(i,a);s((r=r.apply(n,o)).next())}));var n,o,r}),0,$d);const Tv=wf(0,((e,t)=>{const n=typeof t,o="string"===n?t:JSON.stringify({type:n,data:t});localStorage.setItem(e,o)}));function Sv(e){const t=localStorage&&localStorage.getItem(e);if(!P(t))throw new Error("data not found");let n=t;try{const e=function(e){const t=["object","string","number","boolean","undefined"];try{const n=P(e)?JSON.parse(e):e,o=n.type;if(t.indexOf(o)>=0){const e=Object.keys(n);if(2===e.length&&"data"in n){if(typeof n.data===o)return n.data;if("object"===o&&/^\d{4}-\d{2}-\d{2}T\d{2}\:\d{2}\:\d{2}\.\d{3}Z$/.test(n.data))return new Date(n.data)}else if(1===e.length)return""}}catch(n){}}(JSON.parse(t));void 0!==e&&(n=e)}catch(o){}return n}const Ev=wf(0,(e=>{try{return Sv(e)}catch(t){return""}})),Cv=wf(0,(e=>{localStorage&&localStorage.removeItem(e)})),Av=wf(0,(()=>{localStorage&&localStorage.clear()}));const Nv=xf("getImageInfo",(({src:e},{resolve:t,reject:n})=>{const o=new Image;o.onload=function(){t({width:o.naturalWidth,height:o.naturalHeight,path:0===e.indexOf("/")?window.location.protocol+"//"+window.location.host+e:e})},o.onerror=function(){n()},o.src=e}),0,Vd),Pv={image:{jpg:"jpeg",jpe:"jpeg",pbm:"x-portable-bitmap",pgm:"x-portable-graymap",pnm:"x-portable-anymap",ppm:"x-portable-pixmap",psd:"vnd.adobe.photoshop",pic:"x-pict",rgb:"x-rgb",svg:"svg+xml",svgz:"svg+xml",tif:"tiff",xif:"vnd.xiff",wbmp:"vnd.wap.wbmp",wdp:"vnd.ms-photo",xbm:"x-xbitmap",ico:"x-icon"},video:{"3g2":"3gpp2","3gp":"3gpp",avi:"x-msvideo",f4v:"x-f4v",flv:"x-flv",jpgm:"jpm",jpgv:"jpeg",m1v:"mpeg",m2v:"mpeg",mpe:"mpeg",mpg:"mpeg",mpg4:"mpeg",m4v:"x-m4v",mkv:"x-matroska",mov:"quicktime",qt:"quicktime",movie:"x-sgi-movie",mp4v:"mp4",ogv:"ogg",smv:"x-smv",wm:"x-ms-wm",wmv:"x-ms-wmv",wmx:"x-ms-wmx",wvx:"x-ms-wvx"}};function jv({count:e,sourceType:t,type:n,extension:o}){const r=document.createElement("input");return r.type="file",le(r,{position:"absolute",visibility:"hidden",zIndex:"-999",width:"0",height:"0",top:"0",left:"0"}),r.accept=o.map((e=>{if("all"!==n){const t=e.replace(".","");return`${n}/${Pv[n][t]||t}`}return function(){const e=window.navigator.userAgent.toLowerCase().match(/MicroMessenger/i);return!(!e||"micromessenger"!==e[0])}()?".":0===e.indexOf(".")?e:`.${e}`})).join(","),e&&e>1&&(r.multiple=!0),"all"!==n&&t instanceof Array&&1===t.length&&"camera"===t[0]&&r.setAttribute("capture","camera"),r}Eh();let Lv=null;const Iv=xf("chooseFile",(({count:e,sourceType:t,type:n,extension:o},{resolve:r,reject:i})=>{Sl();const{t:a}=_l();Lv&&(document.body.removeChild(Lv),Lv=null),Lv=jv({count:e,sourceType:t,type:n,extension:o}),document.body.appendChild(Lv),Lv.addEventListener("change",(function(t){const n=t.target,o=[];if(n&&n.files){const t=n.files.length;for(let r=0;r<t;r++){const t=n.files[r];let i;Object.defineProperty(t,"path",{get:()=>(i=i||xp(t),i)}),r<e&&o.push(t)}}r({get tempFilePaths(){return o.map((({path:e})=>e))},tempFiles:o})})),Lv.click(),Ch()||console.warn(a("uni.chooseFile.notUserActivation"))}),0,zd);let qv=null;const Mv=xf("chooseImage",(({count:e,sourceType:t,extension:n},{resolve:o,reject:r})=>{Sl();const{t:i}=_l();qv&&(document.body.removeChild(qv),qv=null),qv=jv({count:e,sourceType:t,extension:n,type:"image"}),document.body.appendChild(qv),qv.addEventListener("change",(function(t){const n=t.target,r=[];if(n&&n.files){const t=n.files.length;for(let o=0;o<t;o++){const t=n.files[o];let i;Object.defineProperty(t,"path",{get:()=>(i=i||xp(t),i)}),o<e&&r.push(t)}}o({get tempFilePaths(){return r.map((({path:e})=>e))},tempFiles:r})})),qv.click(),Ch()||console.warn(i("uni.chooseFile.notUserActivation"))}),0,Fd),Bv={esc:["Esc","Escape"],enter:["Enter"]},Rv=Object.keys(Bv);const Dv=Zr("div",{class:"uni-mask"},null,-1);function $v(e,t,n){return t.onClose=(...e)=>(t.visible=!1,n.apply(null,e)),Ta(co({setup:()=>()=>(Dr(),zr(e,t,null,16))}))}function Fv(e){let t=document.getElementById(e);return t||(t=document.createElement("div"),t.id=e,document.body.append(t)),t}function Uv(e,{onEsc:t,onEnter:n}){const o=tn(e.visible),{key:r,disable:i}=function(){const e=tn(""),t=tn(!1),n=n=>{if(t.value)return;const o=Rv.find((e=>-1!==Bv[e].indexOf(n.key)));o&&(e.value=o),Tn((()=>e.value=""))};return jo((()=>{document.addEventListener("keyup",n)})),qo((()=>{document.removeEventListener("keyup",n)})),{key:e,disable:t}}();return Gn((()=>e.visible),(e=>o.value=e)),Gn((()=>o.value),(e=>i.value=!e)),Kn((()=>{const{value:e}=r;"esc"===e?t&&t():"enter"===e&&n&&n()})),o}let Hv=0,zv="";function Vv(e){let t=Hv;Hv+=e?1:-1,Hv=Math.max(0,Hv),Hv>0?0===t&&(zv=document.body.style.overflow,document.body.style.overflow="hidden"):(document.body.style.overflow=zv,zv="")}const Wv=rc({name:"ImageView",props:{src:{type:String,default:""}},setup(e){const t=Ft({direction:"none"});let n=1,o=0,r=0,i=0,a=0;function s({detail:e}){n=e.scale}function l(e){const t=e.target.getBoundingClientRect();o=t.width,r=t.height}function u(e){const t=e.target.getBoundingClientRect();i=t.width,a=t.height,f(e)}function c(e){const s=n*o>i,l=n*r>a;t.direction=s&&l?"all":s?"horizontal":l?"vertical":"none",f(e)}function f(e){"all"!==t.direction&&"horizontal"!==t.direction||e.stopPropagation()}return()=>{const n={position:"absolute",left:"0",top:"0",width:"100%",height:"100%"};return Zr(Hh,{style:n,onTouchstart:lc(u),onTouchmove:lc(f),onTouchend:lc(c)},{default:()=>[Zr(ng,{style:n,direction:t.direction,inertia:!0,scale:!0,"scale-min":"1","scale-max":"4",onScale:s},{default:()=>[Zr("img",{src:e.src,style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%, -50%)",maxHeight:"100%",maxWidth:"100%"},onLoad:l},null,40,["src","onLoad"])]},8,["style","direction","inertia","scale","onScale"])]},8,["style","onTouchstart","onTouchmove","onTouchend"])}}});function Yv(e){let t="number"==typeof e.current?e.current:e.urls.indexOf(e.current);return t=t<0?0:t,t}const Kv=rc({name:"ImagePreview",props:{urls:{type:Array,default:()=>[]},current:{type:[Number,String],default:0}},emits:["close"],setup(e,{emit:t}){jo((()=>Vv(!0))),Mo((()=>Vv(!1)));const n=tn(null),o=tn(Yv(e));let r;function i(){r||Tn((()=>{t("close")}))}function a(e){o.value=e.detail.current}Gn((()=>e.current),(()=>o.value=Yv(e))),jo((()=>{const e=n.value;let t=0,o=0;e.addEventListener("mousedown",(e=>{r=!1,t=e.clientX,o=e.clientY})),e.addEventListener("mouseup",(e=>{(Math.abs(e.clientX-t)>20||Math.abs(e.clientY-o)>20)&&(r=!0)}))}));const s={position:"absolute","box-sizing":"border-box",top:"0",right:"0",width:"60px",height:"44px",padding:"6px","line-height":"32px","font-size":"26px",color:"white","text-align":"center",cursor:"pointer"};return()=>{let t;return Zr("div",{ref:n,style:{display:"block",position:"fixed",left:"0",top:"0",width:"100%",height:"100%",zIndex:999,background:"rgba(0,0,0,0.8)"},onClick:i},[Zr(Eg,{navigation:"auto",current:o.value,onChange:a,"indicator-dots":!1,autoplay:!1,style:{position:"absolute",left:"0",top:"0",width:"100%",height:"100%"}},(r=t=e.urls.map((e=>Zr(Ag,null,{default:()=>[Zr(Wv,{src:e},null,8,["src"])]}))),"function"==typeof r||"[object Object]"===Object.prototype.toString.call(r)&&!Vr(r)?t:{default:()=>[t],_:1}),8,["current","onChange"]),Zr("div",{style:s},[gu("M17.25 16.156l7.375-7.313q0.281-0.281 0.281-0.641t-0.281-0.641q-0.25-0.25-0.625-0.25t-0.625 0.25l-7.375 7.344-7.313-7.344q-0.25-0.25-0.625-0.25t-0.625 0.25q-0.281 0.25-0.281 0.625t0.281 0.625l7.313 7.344-7.375 7.344q-0.281 0.25-0.281 0.625t0.281 0.625q0.125 0.125 0.281 0.188t0.344 0.063q0.156 0 0.328-0.063t0.297-0.188l7.375-7.344 7.375 7.406q0.125 0.156 0.297 0.219t0.328 0.063q0.188 0 0.344-0.078t0.281-0.203q0.281-0.25 0.281-0.609t-0.281-0.641l-7.375-7.406z","#ffffff",26)],4)],8,["onClick"]);var r}}});let Xv,Gv=null;const Zv=()=>{Gv=null,Tn((()=>{null==Xv||Xv.unmount(),Xv=null}))},Jv=xf("previewImage",((e,{resolve:t})=>{Gv?x(Gv,e):(Gv=Ft(e),Tn((()=>{Xv=$v(Kv,Gv,Zv),Xv.mount(Fv("u-a-p"))}))),t()}),0,Wd);let Qv=null;const ey=xf("chooseVideo",(({sourceType:e,extension:t},{resolve:n,reject:o})=>{Sl();const{t:r}=_l();Qv&&(document.body.removeChild(Qv),Qv=null),Qv=jv({sourceType:e,extension:t,type:"video"}),document.body.appendChild(Qv),Qv.addEventListener("change",(function(e){const t=e.target.files[0];let o="";const r={tempFilePath:o,tempFile:t,size:t.size,duration:0,width:0,height:0,name:t.name};Object.defineProperty(r,"tempFilePath",{get(){return o=o||xp(this.tempFile),o}});const i=document.createElement("video");if(void 0!==i.onloadedmetadata){const e=xp(t);i.onloadedmetadata=function(){kp(e),n(x(r,{duration:i.duration||0,width:i.videoWidth||0,height:i.videoHeight||0}))},setTimeout((()=>{i.onloadedmetadata=null,kp(e),n(r)}),300),i.src=e}else n(r)})),Qv.click(),Ch()||console.warn(r("uni.chooseFile.notUserActivation"))}),0,Ud),ty=_f("request",(({url:e,data:t,header:n,method:o,dataType:r,responseType:i,withCredentials:a,timeout:s=__uniConfig.networkTimeout.request},{resolve:l,reject:u})=>{let c=null;const f=function(e){const t=Object.keys(e).find((e=>"content-type"===e.toLowerCase()));if(!t)return;const n=e[t];if(0===n.indexOf("application/json"))return"json";if(0===n.indexOf("application/x-www-form-urlencoded"))return"urlencoded";return"string"}(n);if("GET"!==o)if(P(t)||t instanceof ArrayBuffer)c=t;else if("json"===f)try{c=JSON.stringify(t)}catch(g){c=t.toString()}else if("urlencoded"===f){const e=[];for(const n in t)T(t,n)&&e.push(encodeURIComponent(n)+"="+encodeURIComponent(t[n]));c=e.join("&")}else c=t.toString();const d=new XMLHttpRequest,p=new ny(d);d.open(o,e);for(const m in n)T(n,m)&&d.setRequestHeader(m,n[m]);const h=setTimeout((function(){d.onload=d.onabort=d.onerror=null,p.abort(),u("timeout")}),s);return d.responseType=i,d.onload=function(){clearTimeout(h);const e=d.status;let t="text"===i?d.responseText:d.response;if("text"===i&&"json"===r)try{t=JSON.parse(t)}catch(g){}l({data:t,statusCode:e,header:oy(d.getAllResponseHeaders()),cookies:[]})},d.onabort=function(){clearTimeout(h),u("abort")},d.onerror=function(){clearTimeout(h),u()},d.withCredentials=a,d.send(c),p}),0,Gd);class ny{constructor(e){this._xhr=e}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}function oy(e){const t={};return e.split("\n").forEach((e=>{const n=e.match(/(\S+\s*):\s*(.*)/);n&&3===n.length&&(t[n[1]]=n[2])})),t}class ry{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){N(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const iy=_f("downloadFile",(({url:e,header:t,timeout:n=__uniConfig.networkTimeout.downloadFile},{resolve:o,reject:r})=>{var i,a=new XMLHttpRequest,s=new ry(a);return a.open("GET",e,!0),Object.keys(t).forEach((e=>{a.setRequestHeader(e,t[e])})),a.responseType="blob",a.onload=function(){clearTimeout(i);const t=a.status,n=this.response;let r;const s=a.getResponseHeader("content-disposition");if(s){const e=s.match(/filename="?(\S+)"?\b/);e&&(r=e[1])}n.name=r||function(e){const t=(e=e.split("#")[0].split("?")[0]).split("/");return t[t.length-1]}(e),o({statusCode:t,tempFilePath:xp(n)})},a.onabort=function(){clearTimeout(i),r("abort")},a.onerror=function(){clearTimeout(i),r()},a.onprogress=function(e){s._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesWritten:n,totalBytesExpectedToWrite:o})}))},a.send(),i=setTimeout((function(){a.onprogress=a.onload=a.onabort=a.onerror=null,s.abort(),r("timeout")}),n),s}),0,Zd);class ay{constructor(e){this._callbacks=[],this._xhr=e}onProgressUpdate(e){N(e)&&this._callbacks.push(e)}offProgressUpdate(e){const t=this._callbacks.indexOf(e);t>=0&&this._callbacks.splice(t,1)}abort(){this._isAbort=!0,this._xhr&&(this._xhr.abort(),delete this._xhr)}onHeadersReceived(e){throw new Error("Method not implemented.")}offHeadersReceived(e){throw new Error("Method not implemented.")}}const sy=_f("uploadFile",(({url:e,file:t,filePath:n,name:o,files:r,header:i,formData:a,timeout:s=__uniConfig.networkTimeout.uploadFile},{resolve:l,reject:u})=>{var c=new ay;return S(r)&&r.length||(r=[{name:o,file:t,uri:n}]),Promise.all(r.map((({file:e,uri:t})=>e instanceof Blob?Promise.resolve(wp(e)):_p(t)))).then((function(t){var n,o=new XMLHttpRequest,f=new FormData;Object.keys(a).forEach((e=>{f.append(e,a[e])})),Object.values(r).forEach((({name:e},n)=>{const o=t[n];f.append(e||"file",o,o.name||`file-${Date.now()}`)})),o.open("POST",e),Object.keys(i).forEach((e=>{o.setRequestHeader(e,i[e])})),o.upload.onprogress=function(e){c._callbacks.forEach((t=>{var n=e.loaded,o=e.total;t({progress:Math.round(n/o*100),totalBytesSent:n,totalBytesExpectedToSend:o})}))},o.onerror=function(){clearTimeout(n),u()},o.onabort=function(){clearTimeout(n),u("abort")},o.onload=function(){clearTimeout(n);const e=o.status;l({statusCode:e,data:o.responseText||o.response})},c._isAbort?u("abort"):(n=setTimeout((function(){o.upload.onprogress=o.onload=o.onabort=o.onerror=null,c.abort(),u("timeout")}),s),o.send(f),c._xhr=o)})).catch((()=>{setTimeout((()=>{u("file error")}),0)})),c}),0,Jd),ly=[],uy={open:"",close:"",error:"",message:""};class cy{constructor(e,t,n){let o;this._callbacks={open:[],close:[],error:[],message:[]};try{const n=this._webSocket=new WebSocket(e,t);n.binaryType="arraybuffer";["open","close","error","message"].forEach((e=>{this._callbacks[e]=[],n.addEventListener(e,(t=>{const{data:n,code:o,reason:r}=t,i="message"===e?{data:n}:"close"===e?{code:o,reason:r}:{};if(this._callbacks[e].forEach((t=>{try{t(i)}catch(n){console.error(`thirdScriptError\n${n};at socketTask.on${V(e)} callback function\n`,n)}})),this===ly[0]&&uy[e]&&db.invokeOnCallback(uy[e],i),"error"===e||"close"===e){const e=ly.indexOf(this);e>=0&&ly.splice(e,1)}}))}));["CLOSED","CLOSING","CONNECTING","OPEN","readyState"].forEach((e=>{Object.defineProperty(this,e,{get:()=>n[e]})}))}catch(r){o=r}n&&n(o,this)}send(e){const t=(e||{}).data,n=this._webSocket;try{if(n.readyState!==n.OPEN)throw new Error("SocketTask.readyState is not OPEN");n.send(t),ce(e,"sendSocketMessage:ok")}catch(o){ce(e,`sendSocketMessage:fail ${o}`)}}close(e={}){const t=this._webSocket;try{const n=e.code||1e3,o=e.reason;P(o)?t.close(n,o):t.close(n),ce(e,"closeSocket:ok")}catch(n){ce(e,`closeSocket:fail ${n}`)}}onOpen(e){this._callbacks.open.push(e)}onMessage(e){this._callbacks.message.push(e)}onError(e){this._callbacks.error.push(e)}onClose(e){this._callbacks.close.push(e)}}const fy=_f("connectSocket",(({url:e,protocols:t},{resolve:n,reject:o})=>new cy(e,t,((e,t)=>{e?o(e.toString()):(ly.push(t),n())}))),0,Qd);function dy(e){const t=`onSocket${V(e)}`;return yf(t,(()=>{uy[e]=t}))}const py=dy("error"),hy=xf("navigateBack",((e,{resolve:t,reject:n})=>{let o=!0;return!0===Ou("onBackPress",{from:e.from||"navigateBack"})&&(o=!1),o?(Dm().$router.go(-e.delta),t()):n("onBackPress")}),0,ip);function gy({type:e,url:t,tabBarText:n,events:o,isAutomatedTesting:r},i){const a=Dm().$router,{path:s,query:l}=function(e){const[t,n]=e.split("?",2);return{path:t,query:_e(n||"")}}(t);return new Promise(((t,u)=>{const c=function(e,t){return{__id__:t||++vm,__type__:e}}(e,i);a["navigateTo"===e?"push":"replace"]({path:s,query:l,state:c,force:!0}).then((i=>{if(gs(i))return u(i.message);if("switchTab"===e&&(a.currentRoute.value.meta.tabBarText=n),"navigateTo"===e){const e=a.currentRoute.value.meta;return e.eventChannel?o&&(Object.keys(o).forEach((t=>{e.eventChannel._addListener(t,"on",o[t])})),e.eventChannel._clearCache()):e.eventChannel=new xe(c.__id__,o),t(r?{__id__:c.__id__}:{eventChannel:e.eventChannel})}return r?t({__id__:c.__id__}):t()}))}))}const my=xf("navigateTo",(({url:e,events:t,isAutomatedTesting:n},{resolve:o,reject:r})=>gy({type:"navigateTo",url:e,events:t,isAutomatedTesting:n}).then(o).catch(r)),0,tp);const vy=xf("redirectTo",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>(function(){const e=yu();if(!e)return;const t=e.$page;mm(_m(t.path,t.id))}(),gy({type:"redirectTo",url:e,isAutomatedTesting:t}).then(n).catch(o))),0,np);const yy=xf("reLaunch",(({url:e,isAutomatedTesting:t},{resolve:n,reject:o})=>(function(){const e=hm().keys();for(const t of e)mm(t)}(),gy({type:"reLaunch",url:e,isAutomatedTesting:t}).then(n).catch(o))),0,op);function by(e,t){return e===t.fullPath||"/"===e&&t.meta.isEntry}const _y=xf("switchTab",(({url:e,tabBarText:t,isAutomatedTesting:n},{resolve:o,reject:r})=>(function(){const e=wu();if(!e)return;const t=hm(),n=t.keys();for(const o of n){const e=t.get(o);e.$.__isTabBar?e.$.__isActive=!1:mm(o)}e.$.__isTabBar&&(e.$.__isVisible=!1,Ou(e,"onHide"))}(),gy({type:"switchTab",url:e,tabBarText:t,isAutomatedTesting:n},function(e){const t=hm().values();for(const n of t){const t=n.$page;if(by(e,t))return n.$.__isActive=!0,t.id}}(e)).then(o).catch(r))),0,rp);function wy(e){__uniConfig.darkmode&&db.on("onThemeChange",e)}function xy(e){db.off("onThemeChange",e)}function ky(e){let t={};return __uniConfig.darkmode&&(t=Pe(e,__uniConfig.themeConfig,sv())),__uniConfig.darkmode?t:e}const Oy={light:{cancelColor:"#000000"},dark:{cancelColor:"rgb(170, 170, 170)"}},Ty=co({props:{title:{type:String,default:""},content:{type:String,default:""},showCancel:{type:Boolean,default:!0},cancelText:{type:String,default:"Cancel"},cancelColor:{type:String,default:"#000000"},confirmText:{type:String,default:"OK"},confirmColor:{type:String,default:"#007aff"},visible:{type:Boolean},editable:{type:Boolean,default:!1},placeholderText:{type:String,default:""}},setup(e,{emit:t}){const n=tn(""),o=()=>a.value=!1,r=()=>(o(),t("close","cancel")),i=()=>(o(),t("close","confirm",n.value)),a=Uv(e,{onEsc:r,onEnter:()=>{!e.editable&&i()}}),s=function(e){const t=tn(e.cancelColor),n=({theme:e})=>{((e,t)=>{t.value=Oy[e].cancelColor})(e,t)};return Kn((()=>{e.visible?(t.value=e.cancelColor,"#000"===e.cancelColor&&("dark"===sv()&&n({theme:"dark"}),wy(n))):xy(n)})),t}(e);return()=>{const{title:t,content:o,showCancel:l,confirmText:u,confirmColor:c,editable:f,placeholderText:d}=e;return n.value=o,Zr(Yi,{name:"uni-fade"},{default:()=>[Fo(Zr("uni-modal",{onTouchmove:ou},[Dv,Zr("div",{class:"uni-modal"},[t&&Zr("div",{class:"uni-modal__hd"},[Zr("strong",{class:"uni-modal__title",textContent:t},null,8,["textContent"])]),f?Zr("textarea",{class:"uni-modal__textarea",rows:"1",placeholder:d,value:o,onInput:e=>n.value=e.target.value},null,40,["placeholder","value","onInput"]):Zr("div",{class:"uni-modal__bd",onTouchmovePassive:ru,textContent:o},null,40,["onTouchmovePassive","textContent"]),Zr("div",{class:"uni-modal__ft"},[l&&Zr("div",{style:{color:s.value},class:"uni-modal__btn uni-modal__btn_default",onClick:r},[e.cancelText],12,["onClick"]),Zr("div",{style:{color:c},class:"uni-modal__btn uni-modal__btn_primary",onClick:i},[u],12,["onClick"])])])],40,["onTouchmove"]),[[wa,a.value]])]})}}});let Sy;const Ey=ue((()=>{db.on("onHidePopup",(()=>Sy.visible=!1))}));let Cy;function Ay(e,t){const n="confirm"===e,o={confirm:n,cancel:"cancel"===e};n&&Sy.editable&&(o.content=t),Cy&&Cy(o)}const Ny=xf("showModal",((e,{resolve:t})=>{Ey(),Cy=t,Sy?(x(Sy,e),Sy.visible=!0):(Sy=Ft(e),Tn((()=>($v(Ty,Sy,Ay).mount(Fv("u-a-m")),Tn((()=>Sy.visible=!0))))))}),0,pp),Py={title:{type:String,default:""},icon:{default:"success",validator:e=>-1!==hp.indexOf(e)},image:{type:String,default:""},duration:{type:Number,default:1500},mask:{type:Boolean,default:!1},visible:{type:Boolean}},jy={light:"#fff",dark:"rgba(255,255,255,0.9)"},Ly=e=>jy[e],Iy=co({name:"Toast",props:Py,setup(e){kl(),Ol();const{Icon:t}=function(e){const t=tn(Ly(sv())),n=({theme:e})=>t.value=Ly(e);Kn((()=>{e.visible?wy(n):xy(n)}));return{Icon:yi((()=>{switch(e.icon){case"success":return Zr(gu(pu,t.value,38),{class:"uni-toast__icon"});case"error":return Zr(gu(hu,t.value,38),{class:"uni-toast__icon"});case"loading":return Zr("i",{class:["uni-toast__icon","uni-loading"]},null,2);default:return null}}))}}(e),n=Uv(e,{});return()=>{const{mask:o,duration:r,title:i,image:a}=e;return Zr(Yi,{name:"uni-fade"},{default:()=>[Fo(Zr("uni-toast",{"data-duration":r},[o?Zr("div",{class:"uni-mask",style:"background: transparent;",onTouchmove:ou},null,40,["onTouchmove"]):"",a||t.value?Zr("div",{class:"uni-toast"},[a?Zr("img",{src:a,class:"uni-toast__icon"},null,10,["src"]):t.value,Zr("p",{class:"uni-toast__content"},[i])]):Zr("div",{class:"uni-sample-toast"},[Zr("p",{class:"uni-simple-toast__text"},[i])])],8,["data-duration"]),[[wa,n.value]])]})}}});let qy,My,By="";const Ry=Ie();function Dy(e){qy?x(qy,e):(qy=Ft(x(e,{visible:!1})),Tn((()=>{Ry.run((()=>{Gn([()=>qy.visible,()=>qy.duration],(([e,t])=>{if(e){if(My&&clearTimeout(My),"onShowLoading"===By)return;My=setTimeout((()=>{zy("onHideToast")}),t)}else My&&clearTimeout(My)}))})),db.on("onHidePopup",(()=>zy("onHidePopup"))),$v(Iy,qy,(()=>{})).mount(Fv("u-a-t"))}))),setTimeout((()=>{qy.visible=!0}),10)}const $y=xf("showToast",((e,{resolve:t,reject:n})=>{Dy(e),By="onShowToast",t()}),0,gp),Fy={icon:"loading",duration:1e8,image:""},Uy=xf("showLoading",((e,{resolve:t,reject:n})=>{x(e,Fy),Dy(e),By="onShowLoading",t()}),0,dp),Hy=xf("hideLoading",((e,{resolve:t,reject:n})=>{zy("onHideLoading"),t()}));function zy(e){const{t:t}=_l();if(!By)return;let n="";if("onHideToast"===e&&"onShowToast"!==By?n=t("uni.showToast.unpaired"):"onHideLoading"===e&&"onShowLoading"!==By&&(n=t("uni.showLoading.unpaired")),n)return console.warn(n);By="",setTimeout((()=>{qy.visible=!1}),10)}const Vy=xf("loadFontFace",(({family:e,source:t,desc:n},{resolve:o,reject:r})=>{(function(e,t,n){const o=document.fonts;if(o){const r=new FontFace(e,t,n);return r.load().then((()=>{o.add&&o.add(r)}))}return new Promise((o=>{const r=document.createElement("style"),i=[];if(n){const{style:e,weight:t,stretch:o,unicodeRange:r,variant:a,featureSettings:s}=n;e&&i.push(`font-style:${e}`),t&&i.push(`font-weight:${t}`),o&&i.push(`font-stretch:${o}`),r&&i.push(`unicode-range:${r}`),a&&i.push(`font-variant:${a}`),s&&i.push(`font-feature-settings:${s}`)}r.innerText=`@font-face{font-family:"${e}";src:${t};${i.join(";")}}`,document.head.appendChild(r),o()}))})(e,t,n).then((()=>{o()})).catch((e=>{r(`loadFontFace:fail ${e}`)}))}));function Wy(e){function t(){var t;t=e.navigationBar.titleText,document.title=t,db.emit("onNavigationBarChange",{titleText:t})}Kn(t),_o(t)}const Yy=xf("setNavigationBarTitle",((e,{resolve:t,reject:n})=>{!function(e,t,n,o,r){if(!e)return r("page not found");const{navigationBar:i}=e;switch(t){case"setNavigationBarColor":const{frontColor:e,backgroundColor:t,animation:o}=n,{duration:r,timingFunc:a}=o;e&&(i.titleColor="#000000"===e?"#000000":"#ffffff"),t&&(i.backgroundColor=t),i.duration=r+"ms",i.timingFunc=a;break;case"showNavigationBarLoading":i.loading=!0;break;case"hideNavigationBarLoading":i.loading=!1;break;case"setNavigationBarTitle":const{title:s}=n;i.titleText=s}o()}(bu(),"setNavigationBarTitle",e,t,n)})),Ky=xf("pageScrollTo",(({scrollTop:e,selector:t,duration:n},{resolve:o})=>{!function(e,t,n){if(P(e)){const t=document.querySelector(e);if(t){const{height:o,top:r}=t.getBoundingClientRect();e=r+window.pageYOffset,n&&(e-=o)}}e<0&&(e=0);const o=document.documentElement,{clientHeight:r,scrollHeight:i}=o;if(e=Math.min(e,i-r),0===t)return void(o.scrollTop=document.body.scrollTop=e);if(window.scrollY===e)return;const a=t=>{if(t<=0)return void window.scrollTo(0,e);const n=e-window.scrollY;requestAnimationFrame((function(){window.scrollTo(0,window.scrollY+n/t*10),a(t-10)}))};a(t)}(t||e||0,n,!0),o()}),0,fp),Xy=["text","iconPath","iconfont","selectedIconPath","visible"],Gy=["color","selectedColor","backgroundColor","borderStyle","midButton"],Zy=["badge","redDot"];function Jy(e,t,n){t.forEach((function(t){T(n,t)&&(e[t]=n[t])}))}function Qy(e,t,n){const o=im();switch(e){case"showTabBar":o.shown=!0;break;case"hideTabBar":o.shown=!1;break;case"setTabBarItem":const{index:e}=t,n=o.list[e],r=n.pagePath;Jy(n,Xy,t);const{pagePath:i}=t;if(i){const t=ae(i);t!==r&&function(e,t,n){const o=Nu(ae(t));if(o){const{meta:e}=o;delete e.tabBarIndex,e.isQuit=e.isTabBar=!1}const r=Nu(ae(n));if(r){const{meta:t}=r;t.tabBarIndex=e,t.isQuit=t.isTabBar=!0;const o=__uniConfig.tabBar;o&&o.list&&o.list[e]&&(o.list[e].pagePath=se(n))}}(e,r,t)}break;case"setTabBarStyle":Jy(o,Gy,t);break;case"showTabBarRedDot":Jy(o.list[t.index],Zy,{badge:"",redDot:!0});break;case"setTabBarBadge":Jy(o.list[t.index],Zy,{badge:t.text,redDot:!0});break;case"hideTabBarRedDot":case"removeTabBarBadge":Jy(o.list[t.index],Zy,{badge:"",redDot:!1})}n()}const eb=xf("hideTabBar",((e,{resolve:t})=>{Qy("hideTabBar",e||{},t)})),tb=xf("showTabBar",((e,{resolve:t})=>{Qy("showTabBar",e||{},t)})),nb=rc({name:"TabBar",setup(){const e=tn([]),t=im(),n=function(e,t){const n=zt(e),o=n?Ft(ky(e)):ky(e);return __uniConfig.darkmode&&n&&Gn(e,(e=>{const t=ky(e);for(const n in t)o[n]=t[n]})),t&&wy(t),o}(t,(()=>{const e=ky(t);n.backgroundColor=e.backgroundColor,n.borderStyle=e.borderStyle,n.color=e.color,n.selectedColor=e.selectedColor,n.blurEffect=e.blurEffect,e.list&&e.list.length&&e.list.forEach(((e,t)=>{n.list[t].iconPath=e.iconPath,n.list[t].selectedIconPath=e.selectedIconPath}))}));!function(e,t){function n(){let n=[];n=e.list.filter((e=>!1!==e.visible)),t.value=n}tn(x({type:"midButton"},e.midButton)),Kn(n)}(n,e),function(e){Gn((()=>e.shown),(t=>{uu({"--window-bottom":dm(t?parseInt(e.height):0)})}))}(n);const o=function(e,t,n){return Kn((()=>{const o=e.meta;if(o.isTabBar){const e=o.route,r=n.value.findIndex((t=>t.pagePath===e));t.selectedIndex=r}})),(t,n)=>()=>{const{pagePath:o,text:r}=t;let i=ae(o);i===__uniRoutes[0].alias&&(i="/"),e.path!==i?_y({from:"tabBar",url:i,tabBarText:r}):Ou("onTabItemTap",{index:n,text:r,pagePath:o})}}(hl(),n,e),{style:r,borderStyle:i,placeholderStyle:a}=function(e){const t=yi((()=>{let t=e.backgroundColor;const n=e.blurEffect;return t||cm&&n&&"none"!==n&&(t=ob[n]),{backgroundColor:t||"#f7f7fa",backdropFilter:"none"!==n?"blur(10px)":n}})),n=yi((()=>{const{borderStyle:t}=e;return{backgroundColor:rb[t]||t}})),o=yi((()=>({height:e.height})));return{style:t,borderStyle:n,placeholderStyle:o}}(n);return jo((()=>{n.iconfontSrc&&Vy({family:"UniTabbarIconFont",source:`url("${n.iconfontSrc}")`})})),()=>{const t=function(e,t,n){const{selectedIndex:o,selectedColor:r,color:i}=e;return n.value.map(((n,a)=>{const s=o===a;return function(e,t,n,o,r,i,a,s){return Zr("div",{key:a,class:"uni-tabbar__item",onClick:s(r,a)},[ib(e,t||"",n,o,r,i)],8,["onClick"])}(s?r:i,s&&n.selectedIconPath||n.iconPath||"",n.iconfont?s&&n.iconfont.selectedText||n.iconfont.text:void 0,n.iconfont?s&&n.iconfont.selectedColor||n.iconfont.color:void 0,n,e,a,t)}))}(n,o,e);return Zr("uni-tabbar",{class:"uni-tabbar-"+n.position},[Zr("div",{class:"uni-tabbar",style:r.value},[Zr("div",{class:"uni-tabbar-border",style:i.value},null,4),t],4),Zr("div",{class:"uni-placeholder",style:a.value},null,4)],2)}}});const ob={dark:"rgb(0, 0, 0, 0.8)",light:"rgb(250, 250, 250, 0.8)",extralight:"rgb(250, 250, 250, 0.8)"},rb={white:"rgba(255, 255, 255, 0.33)",black:"rgba(0, 0, 0, 0.33)"};function ib(e,t,n,o,r,i){const{height:a}=i;return Zr("div",{class:"uni-tabbar__bd",style:{height:a}},[n?sb(n,o||"rgb(0, 0, 0, 0.8)",r,i):t&&ab(t,r,i),r.text&&lb(e,r,i),r.redDot&&ub(r.badge)],4)}function ab(e,t,n){const{type:o,text:r}=t,{iconWidth:i}=n;return Zr("div",{class:"uni-tabbar__icon"+(r?" uni-tabbar__icon__diff":""),style:{width:i,height:i}},["midButton"!==o&&Zr("img",{src:wc(e)},null,8,["src"])],6)}function sb(e,t,n,o){var r;const{type:i,text:a}=n,{iconWidth:s}=o,l="uni-tabbar__icon"+(a?" uni-tabbar__icon__diff":""),u={width:s,height:s},c={fontSize:(null==(r=n.iconfont)?void 0:r.fontSize)||s,color:t};return Zr("div",{class:l,style:u},["midButton"!==i&&Zr("div",{class:"uni-tabbar__iconfont",style:c},[e],4)],6)}function lb(e,t,n){const{iconPath:o,text:r}=t,{fontSize:i,spacing:a}=n;return Zr("div",{class:"uni-tabbar__label",style:{color:e,fontSize:i,lineHeight:o?"normal":1.8,marginTop:o?a:"inherit"}},[r],4)}function ub(e){return Zr("div",{class:"uni-tabbar__reddot"+(e?" uni-tabbar__badge":"")},[e],2)}const cb=rc({name:"Layout",setup(e,{emit:t}){const n=tn(null);lu({"--status-bar-height":"0px","--top-window-height":"0px","--window-left":"0px","--window-right":"0px","--window-margin":"0px","--tab-bar-height":"0px"});const o=function(){const e=hl();return{routeKey:yi((()=>_m("/"+e.meta.route,om()))),isTabBar:yi((()=>e.meta.isTabBar)),routeCache:xm}}(),{layoutState:r,windowState:i}=function(){nm();{const e=Ft({marginWidth:0,leftWindowWidth:0,rightWindowWidth:0});return Gn((()=>e.marginWidth),(e=>lu({"--window-margin":e+"px"}))),Gn((()=>e.leftWindowWidth+e.marginWidth),(e=>{lu({"--window-left":e+"px"})})),Gn((()=>e.rightWindowWidth+e.marginWidth),(e=>{lu({"--window-right":e+"px"})})),{layoutState:e,windowState:yi((()=>({})))}}}();!function(e,t){const n=nm();function o(){const o=document.body.clientWidth,r=gm();let i={};if(r.length>0){i=r[r.length-1].$page.meta}else{const e=Nu(n.path,!0);e&&(i=e.meta)}const a=parseInt(String((T(i,"maxWidth")?i.maxWidth:__uniConfig.globalStyle.maxWidth)||Number.MAX_SAFE_INTEGER));let s=!1;s=o>a,s&&a?(e.marginWidth=(o-a)/2,Tn((()=>{const e=t.value;e&&e.setAttribute("style","max-width:"+a+"px;margin:0 auto;")}))):(e.marginWidth=0,Tn((()=>{const e=t.value;e&&e.removeAttribute("style")})))}Gn([()=>n.path],o),jo((()=>{o(),window.addEventListener("resize",o)}))}(r,n);const a=function(e){const t=nm(),n=im(),o=yi((()=>t.meta.isTabBar&&n.shown));return lu({"--tab-bar-height":n.height}),o}(),s=function(e){const t=tn(!1);return yi((()=>({"uni-app--showtabbar":e&&e.value,"uni-app--maxwidth":t.value})))}(a);return()=>{const e=function(e,t,n,o,r,i){return function({routeKey:e,isTabBar:t,routeCache:n}){return Zr(fl,null,{default:$n((({Component:o})=>[(Dr(),zr(yo,{matchBy:"key",cache:n},[(Dr(),zr(Vo(o),{type:t.value?"tabBar":"",key:e.value}))],1032,["cache"]))])),_:1})}(e)}(o),t=function(e){return Fo(Zr(nb,null,null,512),[[wa,e.value]])}(a);return Zr("uni-app",{ref:n,class:s.value},[e,t],2)}}});const fb=x(ql,{publishHandler(e,t,n){db.subscribeHandler(e,t,n)}}),db=x(zu,{publishHandler(e,t,n){fb.subscribeHandler(e,t,n)}}),pb=rc({name:"PageBody",setup:(e,t)=>()=>Zr(Lr,null,[!1,Zr("uni-page-wrapper",null,[Zr("uni-page-body",null,[Xo(t.slots,"default")])],16)])}),hb=rc({name:"Page",setup(e,t){const n=tm(om());return n.navigationBar,Wy(n),()=>Zr("uni-page",{"data-page":n.route},[gb(t)])}});function gb(e){return Dr(),zr(pb,{key:0},{default:$n((()=>[Xo(e.slots,"page")])),_:3})}const mb={loading:"AsyncLoading",error:"AsyncError",delay:200,timeout:6e4,suspensible:!0};window.uni={},window.wx={},window.rpx2px=Nf;const vb=Object.assign({}),yb=Object.assign;window.__uniConfig=yb({globalStyle:{backgroundColor:"#F8F8F8",background:"#efeff4",navigationBar:{backgroundColor:"#F8F8F8",titleText:"uni-app",style:"custom",type:"default",titleColor:"#000000"},isNVue:!1},tabBar:{position:"bottom",color:"#333",selectedColor:"#1AAD19",borderStyle:"black",blurEffect:"none",fontSize:"10px",iconWidth:"24px",spacing:"3px",height:"50px",custom:!0,backgroundColor:"#FFFFFF",list:[{pagePath:"pages/index/index",iconPath:"/static/image/tabbar/demo.png",selectedIconPath:"/static/image/tabbar/demo.png",text:"首页"},{pagePath:"pages/contacts/index",iconPath:"/static/image/tabbar/demo.png",selectedIconPath:"/static/image/tabbar/demo.png",text:"通讯录"}],selectedIndex:0,shown:!0},compilerVersion:"3.99"},{appId:"__UNI__D1E78EC",appName:"Raingad-IM",appVersion:"4.0.3",appVersionCode:20240317,async:mb,debug:!1,networkTimeout:{request:6e4,connectSocket:6e4,uploadFile:6e4,downloadFile:6e4},sdkConfigs:{maps:{}},qqMapKey:void 0,bMapKey:void 0,googleMapKey:void 0,aMapKey:void 0,aMapSecurityJsCode:void 0,aMapServiceHost:void 0,nvue:{"flex-direction":"column"},locale:"",fallbackLocale:"",locales:Object.keys(vb).reduce(((e,t)=>{const n=t.replace(/\.\/locale\/(uni-app.)?(.*).json/,"$2");return yb(e[n]||(e[n]={}),vb[t].default),e}),{}),router:{mode:"hash",base:"./",assets:"assets",routerBase:"/"},darkmode:!1,themeConfig:{}}),window.__uniLayout=window.__uniLayout||{};const bb={delay:mb.delay,timeout:mb.timeout,suspensible:mb.suspensible};mb.loading&&(bb.loadingComponent={name:"SystemAsyncLoading",render:()=>Zr(Ho(mb.loading))}),mb.error&&(bb.errorComponent={name:"SystemAsyncError",render:()=>Zr(Ho(mb.error))});const _b=()=>t((()=>import("./pages-index-index.bf101fe7.js")),["./pages-index-index.bf101fe7.js","./emoji.70cb7500.js","./emoji-28a951a7.css","./uni-app.es.37c693bd.js","./status.9074c73e.js","./status-a5cbe457.css","./pages-contacts-index.ea1d4495.js","./index-a5863e3a.css","./scan.3d46cd94.js","./index-11c7d3e1.css"],import.meta.url).then((e=>Hm(e.default||e))),wb=po(yb({loader:_b},bb)),xb=()=>t((()=>import("./pages-message-chat.c280fb42.js")),["./pages-message-chat.c280fb42.js","./user-select.9a5cd963.js","./uni-app.es.37c693bd.js","./user-select-4e923840.css","./emoji.70cb7500.js","./emoji-28a951a7.css","./status.9074c73e.js","./status-a5cbe457.css","./chat-a5335d5d.css"],import.meta.url).then((e=>Hm(e.default||e))),kb=po(yb({loader:xb},bb)),Ob=()=>t((()=>import("./pages-contacts-index.ea1d4495.js")),["./pages-contacts-index.ea1d4495.js","./status.9074c73e.js","./status-a5cbe457.css","./index-a5863e3a.css"],import.meta.url).then((e=>Hm(e.default||e))),Tb=po(yb({loader:Ob},bb)),Sb=()=>t((()=>import("./pages-message-detail.b950e028.js")),["./pages-message-detail.b950e028.js","./uni-app.es.37c693bd.js","./detail-104304ae.css"],import.meta.url).then((e=>Hm(e.default||e))),Eb=po(yb({loader:Sb},bb)),Cb=()=>t((()=>import("./pages-contacts-detail.ce70202e.js")),[],import.meta.url).then((e=>Hm(e.default||e))),Ab=po(yb({loader:Cb},bb)),Nb=()=>t((()=>import("./pages-contacts-friend.81e173dc.js")),["./pages-contacts-friend.81e173dc.js","./uni-app.es.37c693bd.js","./friend-43d738de.css"],import.meta.url).then((e=>Hm(e.default||e))),Pb=po(yb({loader:Nb},bb)),jb=()=>t((()=>import("./pages-contacts-search.803fe9ff.js")),[],import.meta.url).then((e=>Hm(e.default||e))),Lb=po(yb({loader:jb},bb)),Ib=()=>t((()=>import("./pages-login-index.684c6bd0.js")),["./pages-login-index.684c6bd0.js","./package.f41786e1.js","./index-1c255da6.css"],import.meta.url).then((e=>Hm(e.default||e))),qb=po(yb({loader:Ib},bb)),Mb=()=>t((()=>import("./pages-login-register.95c9733a.js")),["./pages-login-register.95c9733a.js","./package.f41786e1.js","./register-0be040e7.css"],import.meta.url).then((e=>Hm(e.default||e))),Bb=po(yb({loader:Mb},bb)),Rb=()=>t((()=>import("./pages-message-call.cc594897.js")),["./pages-message-call.cc594897.js","./call-42b6c11e.css"],import.meta.url).then((e=>Hm(e.default||e))),Db=po(yb({loader:Rb},bb)),$b=()=>t((()=>import("./pages-message-video.8e2f0d8b.js")),["./pages-message-video.8e2f0d8b.js","./video-b17e3bcb.css"],import.meta.url).then((e=>Hm(e.default||e))),Fb=po(yb({loader:$b},bb)),Ub=()=>t((()=>import("./pages-index-userSelection.9dd5744a.js")),["./pages-index-userSelection.9dd5744a.js","./user-select.9a5cd963.js","./uni-app.es.37c693bd.js","./user-select-4e923840.css","./userSelection-4e84a1a1.css"],import.meta.url).then((e=>Hm(e.default||e))),Hb=po(yb({loader:Ub},bb)),zb=()=>t((()=>import("./pages-message-group-groupUser.b42724da.js")),["./pages-message-group-groupUser.b42724da.js","./groupUser-92bf9b29.css"],import.meta.url).then((e=>Hm(e.default||e))),Vb=po(yb({loader:zb},bb)),Wb=()=>t((()=>import("./pages-index-qrcode.9a2457ad.js")),["./pages-index-qrcode.9a2457ad.js","./uni-app.es.37c693bd.js","./qrcode-6011b4bc.css"],import.meta.url).then((e=>Hm(e.default||e))),Yb=po(yb({loader:Wb},bb)),Kb=()=>t((()=>import("./pages-message-group-info.d8bcccc7.js")),["./pages-message-group-info.d8bcccc7.js","./info-d4c9fc62.css"],import.meta.url).then((e=>Hm(e.default||e))),Xb=po(yb({loader:Kb},bb)),Gb=()=>t((()=>import("./pages-contacts-group.457ececb.js")),[],import.meta.url).then((e=>Hm(e.default||e))),Zb=po(yb({loader:Gb},bb)),Jb=()=>t((()=>import("./pages-index-search.b2c8c9c0.js")),[],import.meta.url).then((e=>Hm(e.default||e))),Qb=po(yb({loader:Jb},bb)),e_=()=>t((()=>import("./pages-index-scan.da97f604.js")),["./pages-index-scan.da97f604.js","./scan.3d46cd94.js","./scan-312a55f8.css"],import.meta.url).then((e=>Hm(e.default||e))),t_=po(yb({loader:e_},bb)),n_=()=>t((()=>import("./pages-mine-webview.3e31e114.js")),[],import.meta.url).then((e=>Hm(e.default||e))),o_=po(yb({loader:n_},bb)),r_=()=>t((()=>import("./pages-mine-profile.2f159171.js")),["./pages-mine-profile.2f159171.js","./profile-0945c6c1.css"],import.meta.url).then((e=>Hm(e.default||e))),i_=po(yb({loader:r_},bb)),a_=()=>t((()=>import("./pages-mine-secure.fd4c2bef.js")),["./pages-mine-secure.fd4c2bef.js","./secure-45479a5a.css"],import.meta.url).then((e=>Hm(e.default||e))),s_=po(yb({loader:a_},bb)),l_=()=>t((()=>import("./pages-mine-about.a5ee3847.js")),["./pages-mine-about.a5ee3847.js","./package.f41786e1.js","./about-4cb73909.css"],import.meta.url).then((e=>Hm(e.default||e))),u_=po(yb({loader:l_},bb)),c_=()=>t((()=>import("./pages-mine-setting.2c197cfa.js")),[],import.meta.url).then((e=>Hm(e.default||e))),f_=po(yb({loader:c_},bb));function d_(e,t){return Dr(),zr(hb,null,{page:$n((()=>[Zr(e,yb({},t,{ref:"page"}),null,512)])),_:1})}window.__uniRoutes=[{path:"/",alias:"/pages/index/index",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(wb,t)}},loader:_b,meta:{isQuit:!0,isEntry:!0,isTabBar:!0,tabBarIndex:0,navigationBar:{titleText:"首页",type:"default"},isNVue:!1}},{path:"/pages/message/chat",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(kb,t)}},loader:xb,meta:{navigationBar:{titleText:"聊天",type:"default"},isNVue:!1}},{path:"/pages/contacts/index",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Tb,t)}},loader:Ob,meta:{isQuit:!0,isTabBar:!0,tabBarIndex:1,navigationBar:{titleText:"联系人",type:"default"},isNVue:!1}},{path:"/pages/message/detail",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Eb,t)}},loader:Sb,meta:{navigationBar:{titleText:"聊天信息",type:"default"},isNVue:!1}},{path:"/pages/contacts/detail",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Ab,t)}},loader:Cb,meta:{navigationBar:{titleText:"用户信息",type:"default"},isNVue:!1}},{path:"/pages/contacts/friend",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Pb,t)}},loader:Nb,meta:{navigationBar:{titleText:"新朋友",type:"default"},isNVue:!1}},{path:"/pages/contacts/search",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Lb,t)}},loader:jb,meta:{navigationBar:{titleText:"搜索朋友",type:"default"},isNVue:!1}},{path:"/pages/login/index",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(qb,t)}},loader:Ib,meta:{navigationBar:{titleText:"登录",type:"default"},isNVue:!1}},{path:"/pages/login/register",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Bb,t)}},loader:Mb,meta:{navigationBar:{titleText:"注册",type:"default"},isNVue:!1}},{path:"/pages/message/call",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Db,t)}},loader:Rb,meta:{navigationBar:{titleText:"通话",type:"default"},isNVue:!1}},{path:"/pages/message/video",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Fb,t)}},loader:$b,meta:{navigationBar:{titleText:"视频播放",type:"default"},isNVue:!1}},{path:"/pages/index/userSelection",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Hb,t)}},loader:Ub,meta:{navigationBar:{titleText:"用户选择",type:"default"},isNVue:!1}},{path:"/pages/message/group/groupUser",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Vb,t)}},loader:zb,meta:{navigationBar:{titleText:"群聊成员管理",type:"default"},isNVue:!1}},{path:"/pages/index/qrcode",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Yb,t)}},loader:Wb,meta:{navigationBar:{titleText:"群二维码",type:"default"},isNVue:!1}},{path:"/pages/message/group/info",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Xb,t)}},loader:Kb,meta:{navigationBar:{titleText:"群信息",type:"default"},isNVue:!1}},{path:"/pages/contacts/group",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Zb,t)}},loader:Gb,meta:{navigationBar:{titleText:"群聊列表",type:"default"},isNVue:!1}},{path:"/pages/index/search",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(Qb,t)}},loader:Jb,meta:{navigationBar:{titleText:"搜索",type:"default"},isNVue:!1}},{path:"/pages/index/scan",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(t_,t)}},loader:e_,meta:{navigationBar:{titleText:"扫描",type:"default"},isNVue:!1}},{path:"/pages/mine/webview",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(o_,t)}},loader:n_,meta:{navigationBar:{titleText:"webview",type:"default"},isNVue:!1}},{path:"/pages/mine/profile",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(i_,t)}},loader:r_,meta:{navigationBar:{titleText:"个人信息",type:"default"},isNVue:!1}},{path:"/pages/mine/secure",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(s_,t)}},loader:a_,meta:{navigationBar:{titleText:"安全",type:"default"},isNVue:!1}},{path:"/pages/mine/about",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(u_,t)}},loader:l_,meta:{navigationBar:{titleText:"关于",type:"default"},isNVue:!1}},{path:"/pages/mine/setting",component:{setup(){const e=Dm(),t=e&&e.$route&&e.$route.query||{};return()=>d_(f_,t)}},loader:c_,meta:{navigationBar:{titleText:"设置",type:"default"},isNVue:!1}}].map((e=>(e.meta.route=(e.alias||e.path).slice(1),e)));var p_="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function h_(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var g_,m_={};"undefined"!=typeof self&&self,g_=function(){return function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=109)}([function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(17),r=n(18),i=n(19),a=n(45),s=n(46),l=n(47),u=n(48),c=n(49),f=n(12),d=n(32),p=n(33),h=n(31),g=n(1),m={Scope:g.Scope,create:g.create,find:g.find,query:g.query,register:g.register,Container:o.default,Format:r.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:f.default,Class:d.default,Style:p.default,Store:h.default}};t.default=m},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var n=this;return t="[Parchment] "+t,(n=e.call(this,t)||this).message=t,n.name=n.constructor.name,n}return r(t,e),t}(Error);t.ParchmentError=i;var a,s,l={},u={},c={},f={};function d(e,t){var n;if(void 0===t&&(t=a.ANY),"string"==typeof e)n=f[e]||l[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)n=f.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?n=f.block:e&a.LEVEL&a.INLINE&&(n=f.inline);else if(e instanceof HTMLElement){var o=(e.getAttribute("class")||"").split(/\s+/);for(var r in o)if(n=u[o[r]])break;n=n||c[e.tagName]}return null==n?null:t&a.LEVEL&n.scope&&t&a.TYPE&n.scope?n:null}t.DATA_KEY="__blot",(s=a=t.Scope||(t.Scope={}))[s.TYPE=3]="TYPE",s[s.LEVEL=12]="LEVEL",s[s.ATTRIBUTE=13]="ATTRIBUTE",s[s.BLOT=14]="BLOT",s[s.INLINE=7]="INLINE",s[s.BLOCK=11]="BLOCK",s[s.BLOCK_BLOT=10]="BLOCK_BLOT",s[s.INLINE_BLOT=6]="INLINE_BLOT",s[s.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",s[s.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",s[s.ANY=15]="ANY",t.create=function(e,t){var n=d(e);if(null==n)throw new i("Unable to create "+e+" blot");var o=n,r=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:o.create(t);return new o(r,t)},t.find=function e(n,o){return void 0===o&&(o=!1),null==n?null:null!=n[t.DATA_KEY]?n[t.DATA_KEY].blot:o?e(n.parentNode,o):null},t.query=d,t.register=function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(t.length>1)return t.map((function(t){return e(t)}));var o=t[0];if("string"!=typeof o.blotName&&"string"!=typeof o.attrName)throw new i("Invalid definition");if("abstract"===o.blotName)throw new i("Cannot register abstract class");if(f[o.blotName||o.attrName]=o,"string"==typeof o.keyName)l[o.keyName]=o;else if(null!=o.className&&(u[o.className]=o),null!=o.tagName){Array.isArray(o.tagName)?o.tagName=o.tagName.map((function(e){return e.toUpperCase()})):o.tagName=o.tagName.toUpperCase();var r=Array.isArray(o.tagName)?o.tagName:[o.tagName];r.forEach((function(e){null!=c[e]&&null!=o.className||(c[e]=o)}))}return o}},function(e,t,n){var o=n(51),r=n(11),i=n(3),a=n(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var n={};return 0===e.length?this:(n.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var n={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(n.attributes=t),this.push(n)},l.prototype.push=function(e){var t=this.ops.length,n=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof n){if("number"==typeof e.delete&&"number"==typeof n.delete)return this.ops[t-1]={delete:n.delete+e.delete},this;if("number"==typeof n.delete&&null!=e.insert&&(t-=1,"object"!=typeof(n=this.ops[t-1])))return this.ops.unshift(e),this;if(r(e.attributes,n.attributes)){if("string"==typeof e.insert&&"string"==typeof n.insert)return this.ops[t-1]={insert:n.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof n.retain)return this.ops[t-1]={retain:n.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],n=[];return this.forEach((function(o){(e(o)?t:n).push(o)})),[t,n]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var n=[],o=a.iterator(this.ops),r=0;r<t&&o.hasNext();){var i;r<e?i=o.next(e-r):(i=o.next(t-r),n.push(i)),r+=a.length(i)}return new l(n)},l.prototype.compose=function(e){var t=a.iterator(this.ops),n=a.iterator(e.ops),o=[],i=n.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var s=i.retain;"insert"===t.peekType()&&t.peekLength()<=s;)s-=t.peekLength(),o.push(t.next());i.retain-s>0&&n.next(i.retain-s)}for(var u=new l(o);t.hasNext()||n.hasNext();)if("insert"===n.peekType())u.push(n.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),n.peekLength()),f=t.next(c),d=n.next(c);if("number"==typeof d.retain){var p={};"number"==typeof f.retain?p.retain=c:p.insert=f.insert;var h=a.attributes.compose(f.attributes,d.attributes,"number"==typeof f.retain);if(h&&(p.attributes=h),u.push(p),!n.hasNext()&&r(u.ops[u.ops.length-1],p)){var g=new l(t.rest());return u.concat(g).chop()}}else"number"==typeof d.delete&&"number"==typeof f.retain&&u.push(d)}return u.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var n=[this,e].map((function(t){return t.map((function(n){if(null!=n.insert)return"string"==typeof n.insert?n.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new l,u=o(n[0],n[1],t),c=a.iterator(this.ops),f=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var n=0;switch(e[0]){case o.INSERT:n=Math.min(f.peekLength(),t),i.push(f.next(n));break;case o.DELETE:n=Math.min(t,c.peekLength()),c.next(n),i.delete(n);break;case o.EQUAL:n=Math.min(c.peekLength(),f.peekLength(),t);var s=c.next(n),l=f.next(n);r(s.insert,l.insert)?i.retain(n,a.attributes.diff(s.attributes,l.attributes)):i.push(l).delete(n)}t-=n}})),i.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var n=a.iterator(this.ops),o=new l,r=0;n.hasNext();){if("insert"!==n.peekType())return;var i=n.peek(),s=a.length(i)-n.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,s)-s:-1;if(u<0)o.push(n.next());else if(u>0)o.push(n.next(u));else{if(!1===e(o,n.next(1).attributes||{},r))return;r+=1,o=new l}}o.length()>0&&e(o,{},r)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var n=a.iterator(this.ops),o=a.iterator(e.ops),r=new l;n.hasNext()||o.hasNext();)if("insert"!==n.peekType()||!t&&"insert"===o.peekType())if("insert"===o.peekType())r.push(o.next());else{var i=Math.min(n.peekLength(),o.peekLength()),s=n.next(i),u=o.next(i);if(s.delete)continue;u.delete?r.push(u):r.retain(i,a.attributes.transform(s.attributes,u.attributes,t))}else r.retain(a.length(n.next()));return r.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var n=a.iterator(this.ops),o=0;n.hasNext()&&o<=e;){var r=n.peekLength(),i=n.peekType();n.next(),"delete"!==i?("insert"===i&&(o<e||!t)&&(e+=r),o+=r):e-=Math.min(r,e-o)}return e},e.exports=l},function(e,t){var n=Object.prototype.hasOwnProperty,o=Object.prototype.toString,r=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===o.call(e)},s=function(e){if(!e||"[object Object]"!==o.call(e))return!1;var t,r=n.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&n.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!r&&!i)return!1;for(t in e);return void 0===t||n.call(e,t)},l=function(e,t){r&&"__proto__"===t.name?r(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!n.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,n,o,r,i,c,f=arguments[0],d=1,p=arguments.length,h=!1;for("boolean"==typeof f&&(h=f,f=arguments[1]||{},d=2),(null==f||"object"!=typeof f&&"function"!=typeof f)&&(f={});d<p;++d)if(null!=(t=arguments[d]))for(n in t)o=u(f,n),f!==(r=u(t,n))&&(h&&r&&(s(r)||(i=a(r)))?(i?(i=!1,c=o&&a(o)?o:[]):c=o&&s(o)?o:{},l(f,{name:n,newValue:e(h,c,r)})):void 0!==r&&l(f,{name:n,newValue:r}));return f}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=f(n(3)),a=f(n(2)),s=f(n(0)),l=f(n(16)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),o(t,[{key:"attach",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var n=s.default.query(e,s.default.Scope.BLOCK_ATTRIBUTE);null!=n&&this.attributes.attribute(n,t)}},{key:"formatAt",value:function(e,t,n,o){this.format(n,o)}},{key:"insertAt",value:function(e,n,o){if("string"==typeof n&&n.endsWith("\n")){var i=s.default.create(m.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,n.slice(0,-1))}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o)}}]),t}(s.default.Embed);g.scope=s.default.Scope.BLOCK_BLOT;var m=function(e){function t(e){d(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.cache={},n}return h(t,e),o(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),v(t))}),new a.default).insert("\n",v(this))),this.cache.delta}},{key:"deleteAt",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),this.cache={}}},{key:"formatAt",value:function(e,n,o,i){n<=0||(s.default.query(o,s.default.Scope.BLOCK)?e+n===this.length()&&this.format(o,i):r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(n,this.length()-e-1),o,i),this.cache={})}},{key:"insertAt",value:function(e,n,o){if(null!=o)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);if(0!==n.length){var i=n.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;i.reduce((function(e,t){return(s=s.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,n){var o=this.children.head;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n),o instanceof l.default&&o.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,n){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,n),this.cache={}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(n&&(0===e||e>=this.length()-1)){var o=this.clone();return 0===e?(this.parent.insertBefore(o,this),this):(this.parent.insertBefore(o,this.next),o)}var i=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,n);return this.cache={},i}}]),t}(s.default.Block);function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:v(e.parent,t))}m.blotName="block",m.tagName="P",m.defaultChild="break",m.allowedChildren=[u.default,s.default.Embed,c.default],t.bubbleFormats=v,t.BlockEmbed=g,t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var o="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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}();n(50);var a=m(n(2)),s=m(n(14)),l=m(n(8)),u=m(n(9)),c=m(n(0)),f=n(15),d=m(f),p=m(n(3)),h=m(n(10)),g=m(n(34));function m(e){return e&&e.__esModule?e:{default:e}}function v(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var b=(0,h.default)("quill"),_=function(){function e(t){var n=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(y(this,e),this.options=w(t,o),this.container=this.options.container,null==this.container)return b.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var r=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new d.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&n.root.classList.toggle("ql-blank",n.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var o=n.selection.lastRange,r=o&&0===o.length?o.index:void 0;x.call(n,(function(){return n.editor.update(null,t,r)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+r+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),h.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&b.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var r=e.attrName||e.blotName;"string"==typeof r?this.register("formats/"+r,e,t):Object.keys(e).forEach((function(o){n.register(o,e[o],t)}))}else null==this.imports[e]||o||b.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var n=e;(e=document.createElement("div")).classList.add(n)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return o.editor.deleteText(e,t)}),n,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return x.call(this,(function(){var o=n.getSelection(!0),r=new a.default;if(null==o)return r;if(c.default.query(e,c.default.Scope.BLOCK))r=n.editor.formatLine(o.index,o.length,v({},e,t));else{if(0===o.length)return n.selection.format(e,t),r;r=n.editor.formatText(o.index,o.length,v({},e,t))}return n.setSelection(o,l.default.sources.SILENT),r}),o)}},{key:"formatLine",value:function(e,t,n,o,i){var a,s=this,l=k(e,t,n,o,i),u=r(l,4);return e=u[0],t=u[1],a=u[2],i=u[3],x.call(this,(function(){return s.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,n,o,i){var a,s=this,l=k(e,t,n,o,i),u=r(l,4);return e=u[0],t=u[1],a=u[2],i=u[3],x.call(this,(function(){return s.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=void 0;n="number"==typeof e?this.selection.getBounds(e,t):this.selection.getBounds(e.index,e.length);var o=this.container.getBoundingClientRect();return{bottom:n.bottom-o.top,height:n.height,left:n.left-o.left,right:n.right-o.left,top:n.top-o.top,width:n.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return e&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,n=k(e,t),o=r(n,2);return e=o[0],t=o[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,n,o){var r=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return x.call(this,(function(){return r.editor.insertEmbed(t,n,o)}),i,t)}},{key:"insertText",value:function(e,t,n,o,i){var a,s=this,l=k(e,0,n,o,i),u=r(l,4);return e=u[0],a=u[2],i=u[3],x.call(this,(function(){return s.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,n){this.clipboard.dangerouslyPasteHTML(e,t,n)}},{key:"removeFormat",value:function(e,t,n){var o=this,i=k(e,t,n),a=r(i,4);return e=a[0],t=a[1],n=a[3],x.call(this,(function(){return o.editor.removeFormat(e,t)}),n,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return x.call(this,(function(){e=new a.default(e);var n=t.getLength(),o=t.editor.deleteText(0,n),r=t.editor.applyDelta(e),i=r.ops[r.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),r.delete(1)),o.compose(r)}),n)}},{key:"setSelection",value:function(t,n,o){if(null==t)this.selection.setRange(null,n||e.sources.API);else{var i=k(t,n,o),a=r(i,4);t=a[0],n=a[1],o=a[3],this.selection.setRange(new f.Range(t,n),o),o!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,n=(new a.default).insert(e);return this.setContents(n,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return x.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,n)}),n,!0)}}]),e}();function w(e,t){if((t=(0,p.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==_.DEFAULTS.theme){if(t.theme=_.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=g.default;var n=(0,p.default)(!0,{},t.theme.DEFAULTS);[n,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var o=Object.keys(n.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var n=_.import("modules/"+t);return null==n?b.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=n.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,p.default)(!0,{},_.DEFAULTS,{modules:o},n,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,n){return t.modules[n]&&(e[n]=t.modules[n]),e}),{}),t}function x(e,t,n,o){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new a.default;var r=null==n?null:this.getSelection(),i=this.editor.delta,s=e();if(null!=r&&(!0===n&&(n=r.index),null==o?r=O(r,s,t):0!==o&&(r=O(r,n,o,t)),this.setSelection(r,l.default.sources.SILENT)),s.length()>0){var u,c,f=[l.default.events.TEXT_CHANGE,s,i,t];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(f)),t!==l.default.sources.SILENT&&(c=this.emitter).emit.apply(c,f)}return s}function k(e,t,n,r,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=r,r=n,n=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=r,r=n,n=t,t=0),"object"===(void 0===n?"undefined":o(n))?(a=n,i=r):"string"==typeof n&&(null!=r?a[n]=r:i=n),[e,t,a,i=i||l.default.sources.API]}function O(e,t,n,o){if(null==e)return null;var i=void 0,s=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,o!==l.default.sources.USER)})),c=r(u,2);i=c[0],s=c[1]}else{var d=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&o===l.default.sources.USER?e:n>=0?e+n:Math.max(t,e+n)})),p=r(d,2);i=p[0],s=p[1]}return new f.Range(i,s-i)}_.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},_.events=l.default.events,_.sources=l.default.sources,_.version="1.3.7",_.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":g.default},t.expandConfig=w,t.overload=k,t.default=_},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=s(n(7)),a=s(n(0));function s(e){return e&&e.__esModule?e:{default:e}}function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"formatAt",value:function(e,n,o,i){if(t.compare(this.statics.blotName,o)<0&&a.default.query(o,a.default.Scope.BLOT)){var s=this.isolate(e,n);i&&s.wrap(o,i)}else r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,i)}},{key:"optimize",value:function(e){if(r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var n=this.parent.isolate(this.offset(),this.length());this.moveChildren(n),n.wrap(this)}}}],[{key:"compare",value:function(e,n){var o=t.order.indexOf(e),r=t.order.indexOf(n);return o>=0||r>=0?o-r:e===n?0:e<n?-1:1}}]),t}(a.default.Inline);c.allowedChildren=[c,a.default.Embed,i.default],c.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(0);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default.Text);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=a(n(54));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,a(n(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var n;e.__quill&&e.__quill.emitter&&(n=e.__quill.emitter).handleDOM.apply(n,t)}))}))}));var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return e.listeners={},e.on("error",s.error),e}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"emit",value:function(){s.log.apply(s,arguments),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];(this.listeners[e.type]||[]).forEach((function(t){var o=t.node,r=t.handler;(e.target===o||o.contains(e.target))&&r.apply(void 0,[e].concat(n))}))}},{key:"listenDOM",value:function(e,t,n){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:n})}}]),t}(i.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,n){function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(t,"__esModule",{value:!0});var r=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o(this,e),this.quill=t,this.options=n};r.DEFAULTS={},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=["error","warn","log","info"],r="warn";function i(e){if(o.indexOf(e)<=o.indexOf(r)){for(var t,n=arguments.length,i=Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return o.reduce((function(t,n){return t[n]=i.bind(console,n,e),t}),{})}i.level=a.level=function(e){r=e},t.default=a},function(e,t,n){var o=Array.prototype.slice,r=n(52),i=n(53),a=e.exports=function(e,t,n){return n||(n={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?n.strict?e===t:e==t:function(e,t,n){var u,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=o.call(e),t=o.call(t),a(e,t,n));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var f=r(e),d=r(t)}catch(p){return!1}if(f.length!=d.length)return!1;for(f.sort(),d.sort(),u=f.length-1;u>=0;u--)if(f[u]!=d[u])return!1;for(u=f.length-1;u>=0;u--)if(c=f[u],!a(e[c],t[c],n))return!1;return typeof e==typeof t}(e,t,n))};function s(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e,t,n){void 0===n&&(n={}),this.attrName=e,this.keyName=t;var r=o.Scope.TYPE&o.Scope.ATTRIBUTE;null!=n.scope?this.scope=n.scope&o.Scope.LEVEL|r:this.scope=o.Scope.ATTRIBUTE,null!=n.whitelist&&(this.whitelist=n.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=o.query(e,o.Scope.BLOT&(this.scope|o.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=f(n(2)),s=f(n(0)),l=f(n(4)),u=f(n(6)),c=f(n(7));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),t}(u.default);g.blotName="code",g.tagName="CODE";var m=function(e){function t(){return d(this,t),p(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return h(t,e),r(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,n){return t.insert(n).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n){var r=this.descendant(c.default,this.length()-1),a=o(r,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}},{key:"formatAt",value:function(e,n,o,r){if(0!==n&&null!=s.default.query(o,s.default.Scope.BLOCK)&&(o!==this.statics.blotName||r!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+n)){var a=this.newlineIndex(e,!0)+1,l=i-a+1,u=this.isolate(a,l),c=u.next;u.format(o,r),c instanceof t&&c.formatAt(0,e-a+n-l,o,r)}}}},{key:"insertAt",value:function(e,t,n){if(null==n){var r=this.descendant(c.default,e),i=o(r,2),a=i[0],s=i[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var n=this.domNode.textContent.slice(e).indexOf("\n");return n>-1?e+n:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===n.statics.formats(n.domNode)&&(n.optimize(e),n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("spellcheck",!1),n}},{key:"formats",value:function(){return!0}}]),t}(l.default);m.blotName="code-block",m.tagName="PRE",m.TAB=" ",t.Code=g,t.default=m},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=v(n(2)),s=v(n(20)),l=v(n(0)),u=v(n(13)),c=v(n(24)),f=n(4),d=v(f),p=v(n(16)),h=v(n(21)),g=v(n(11)),m=v(n(3));function v(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,b=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,n=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var n=(0,h.default)(t.attributes);return delete n.image,e.insert({image:t.attributes.image},n)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,h.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var o=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(o,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var p=a.insert;p.endsWith("\n")&&n&&(n=!1,p=p.slice(0,-1)),e>=i&&!p.endsWith("\n")&&(n=!0),t.scroll.insertAt(e,p);var h=t.scroll.line(e),g=r(h,2),v=g[0],y=g[1],b=(0,m.default)({},(0,f.bubbleFormats)(v));if(v instanceof d.default){var _=v.descendant(l.default.Leaf,y),w=r(_,1)[0];b=(0,m.default)(b,(0,f.bubbleFormats)(w))}c=s.default.attributes.diff(b,c)||{}}else if("object"===o(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,a.insert[x])}i+=u}return Object.keys(c).forEach((function(n){t.scroll.formatAt(e,u,n,c[n])})),e+u}),0),e.reduce((function(e,n){return"number"==typeof n.delete?(t.scroll.deleteAt(e,n.delete),e):e+(n.retain||n.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(o).forEach((function(r){if(null==n.scroll.whitelist||n.scroll.whitelist[r]){var i=n.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var s=e-t.offset(n.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,r,o[r])}else t.format(r,o[r]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"formatText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t,r,o[r])})),this.update((new a.default).retain(e).retain(t,(0,h.default)(o)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=[],o=[];0===t?this.scroll.path(e).forEach((function(e){var t=r(e,1)[0];t instanceof d.default?n.push(t):t instanceof l.default.Leaf&&o.push(t)})):(n=this.scroll.lines(e,t),o=this.scroll.descendants(l.default.Leaf,e,t));var i=[n,o].map((function(e){if(0===e.length)return{};for(var t=(0,f.bubbleFormats)(e.shift());Object.keys(t).length>0;){var n=e.shift();if(null==n)return t;t=_((0,f.bubbleFormats)(n),t)}return t}));return m.default.apply(m.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,n){return this.scroll.insertAt(e,t,n),this.update((new a.default).retain(e).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},t,n)))}},{key:"insertText",value:function(e,t){var n=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(o).forEach((function(r){n.scroll.formatAt(e,t.length,r,o[r])})),this.update((new a.default).retain(e).insert(t,(0,h.default)(o)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===d.default.blotName&&!(e.children.length>1)&&e.children.head instanceof p.default}},{key:"removeFormat",value:function(e,t){var n=this.getText(e,t),o=this.scroll.line(e+t),i=r(o,2),s=i[0],l=i[1],c=0,f=new a.default;null!=s&&(c=s instanceof u.default?s.newlineIndex(l)-l+1:s.length()-l,f=s.delta().slice(l,l+c-1).insert("\n"));var d=this.getContents(e,t+c).diff((new a.default).insert(n).concat(f)),p=(new a.default).retain(e).concat(d);return this.applyDelta(p)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,o=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(y)&&l.default.find(t[0].target)){var r=l.default.find(t[0].target),i=(0,f.bubbleFormats)(r),s=r.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),d=(new a.default).insert(u),p=(new a.default).insert(r.value()),h=(new a.default).retain(s).concat(d.diff(p,n));e=h.reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=o.compose(e)}else this.delta=this.getDelta(),e&&(0,g.default)(o.compose(e),this.delta)||(e=o.diff(this.delta,n));return e}}]),e}();function _(e,t){return Object.keys(t).reduce((function(n,o){return null==e[o]||(t[o]===e[o]?n[o]=t[o]:Array.isArray(t[o])?t[o].indexOf(e[o])<0&&(n[o]=t[o].concat([e[o]])):n[o]=[t[o],e[o]]),n}),{})}t.default=b},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=u(n(0)),a=u(n(21)),s=u(n(11)),l=u(n(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var d=(0,u(n(10)).default)("quill:selection"),p=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;f(this,e),this.index=t,this.length=n},h=function(){function e(t,n){var o=this;f(this,e),this.emitter=n,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new p(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){o.mouseDown||setTimeout(o.update.bind(o,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&o.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(o.hasFocus()){var e=o.getNativeRange();null!=e&&e.start.node!==o.cursor.textNode&&o.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{o.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(t){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var n=t.range,r=n.startNode,i=n.startOffset,a=n.endNode,s=n.endOffset;o.setNativeRange(r,i,a,s)}})),this.update(l.default.sources.SILENT)}return r(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var n=this.getNativeRange();if(null!=n&&n.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(n.start.node!==this.cursor.textNode){var o=i.default.find(n.start.node,!1);if(null==o)return;if(o instanceof i.default.Leaf){var r=o.split(n.start.offset);o.parent.insertBefore(this.cursor,r)}else o.insertBefore(this.cursor,n.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=this.scroll.length();e=Math.min(e,n-1),t=Math.min(e+t,n-1)-e;var r=void 0,i=this.scroll.leaf(e),a=o(i,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=o(u,2);r=c[0],l=c[1];var f=document.createRange();if(t>0){f.setStart(r,l);var d=this.scroll.leaf(e+t),p=o(d,2);if(s=p[0],l=p[1],null==s)return null;var h=s.position(l,!0),g=o(h,2);return r=g[0],l=g[1],f.setEnd(r,l),f.getBoundingClientRect()}var m="left",v=void 0;return r instanceof Text?(l<r.data.length?(f.setStart(r,l),f.setEnd(r,l+1)):(f.setStart(r,l-1),f.setEnd(r,l),m="right"),v=f.getBoundingClientRect()):(v=s.domNode.getBoundingClientRect(),l>0&&(m="right")),{bottom:v.top+v.height,height:v.height,left:v[m],right:v[m],top:v.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var n=this.normalizeNative(t);return d.info("getNativeRange",n),n}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,n=[[e.start.node,e.start.offset]];e.native.collapsed||n.push([e.end.node,e.end.offset]);var r=n.map((function(e){var n=o(e,2),r=n[0],a=n[1],s=i.default.find(r,!0),l=s.offset(t.scroll);return 0===a?l:s instanceof i.default.Container?l+s.length():l+s.index(r,a)})),a=Math.min(Math.max.apply(Math,c(r)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(r)));return new p(s,a-s)}},{key:"normalizeNative",value:function(e){if(!g(this.root,e.startContainer)||!e.collapsed&&!g(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,n=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>n)t=t.childNodes[n],n=0;else{if(t.childNodes.length!==n)break;n=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=n})),t}},{key:"rangeToNative",value:function(e){var t=this,n=e.collapsed?[e.index]:[e.index,e.index+e.length],r=[],i=this.scroll.length();return n.forEach((function(e,n){e=Math.min(i-1,e);var a,s=t.scroll.leaf(e),l=o(s,2),u=l[0],c=l[1],f=u.position(c,0!==n),d=o(f,2);a=d[0],c=d[1],r.push(a,c)})),r.length<2&&(r=r.concat(r)),r}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var n=this.getBounds(t.index,t.length);if(null!=n){var r=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,r)),a=o(i,1)[0],s=a;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,r));s=o(l,1)[0]}if(null!=a&&null!=s){var u=e.getBoundingClientRect();n.top<u.top?e.scrollTop-=u.top-n.top:n.bottom>u.bottom&&(e.scrollTop+=n.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,r=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(d.info("setNativeRange",e,t,n,o),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=n.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||r||e!==a.startContainer||t!==a.startOffset||n!==a.endContainer||o!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==n.tagName&&(o=[].indexOf.call(n.parentNode.childNodes,n),n=n.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(n,o),i.removeAllRanges(),i.addRange(s)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(n=t,t=!1),d.info("setRange",e),null!=e){var o=this.rangeToNative(e);this.setNativeRange.apply(this,c(o).concat([t]))}else this.setNativeRange(null);this.update(n)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,n=this.getRange(),r=o(n,2),i=r[0],u=r[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var f,d=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(d)),e!==l.default.sources.SILENT&&(f=this.emitter).emit.apply(f,d)}}}]),e}();function g(e,t){try{t.parentNode}catch(n){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=p,t.default=h},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(0);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"insertInto",value:function(e,n){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,n):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default.Embed);u.blotName="break",u.tagName="BR",t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(44),a=n(30),s=n(1),l=function(e){function t(t){var n=e.call(this,t)||this;return n.build(),n}return r(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var n=u(t);e.insertBefore(n,e.children.head||void 0)}catch(o){if(o instanceof s.ParchmentError)return;throw o}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,n){e.deleteAt(t,n)}))},t.prototype.descendant=function(e,n){var o=this.children.find(n),r=o[0],i=o[1];return null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e?[r,i]:r instanceof t?r.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,n,o){void 0===n&&(n=0),void 0===o&&(o=Number.MAX_VALUE);var r=[],i=o;return this.children.forEachAt(n,o,(function(n,o,a){(null==e.blotName&&e(n)||null!=e.blotName&&n instanceof e)&&r.push(n),n instanceof t&&(r=r.concat(n.descendants(e,o,i))),i-=a})),r},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,n,o){this.children.forEachAt(e,t,(function(e,t,r){e.formatAt(t,r,n,o)}))},t.prototype.insertAt=function(e,t,n){var o=this.children.find(e),r=o[0],i=o[1];if(r)r.insertAt(i,t,n);else{var a=null==n?s.create("text",t):s.create(t,n);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new s.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(n){e.insertBefore(n,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var n=s.create(this.statics.defaultChild);this.appendChild(n),n.optimize(t)}else this.remove()},t.prototype.path=function(e,n){void 0===n&&(n=!1);var o=this.children.find(e,n),r=o[0],i=o[1],a=[[this,e]];return r instanceof t?a.concat(r.path(i,n)):(null!=r&&a.push([r,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(n){n instanceof t&&n.moveChildren(this),e.prototype.replace.call(this,n)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=this.clone();return this.parent.insertBefore(n,this.next),this.children.forEachAt(e,this.length(),(function(e,o,r){e=e.split(o,t),n.appendChild(e)})),n},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var n=this,o=[],r=[];e.forEach((function(e){e.target===n.domNode&&"childList"===e.type&&(o.push.apply(o,e.addedNodes),r.push.apply(r,e.removedNodes))})),r.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=s.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==n.domNode||t.detach())}})),o.filter((function(e){return e.parentNode==n.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=s.find(e.nextSibling));var o=u(e);o.next==t&&null!=o.next||(null!=o.parent&&o.parent.removeChild(n),n.insertBefore(o,t||void 0))}))},t}(a.default);function u(e){var t=s.find(e);if(null==t)try{t=s.create(e)}catch(n){t=s.create(s.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(12),a=n(31),s=n(17),l=n(1),u=function(e){function t(t){var n=e.call(this,t)||this;return n.attributes=new a.default(n.domNode),n}return r(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var n=l.query(e);n instanceof i.default?this.attributes.attribute(n,t):t&&(null==n||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,n){var o=e.prototype.replaceWith.call(this,t,n);return this.attributes.copy(o),o},t.prototype.update=function(t,n){var o=this;e.prototype.update.call(this,t,n),t.some((function(e){return e.target===o.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(n,o){var r=e.prototype.wrap.call(this,n,o);return r instanceof t&&r.statics.scope===this.statics.scope&&this.attributes.move(r),r},t}(s.default);t.default=u},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(30),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var n=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(n+=1),[this.parent.domNode,n]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=s},function(e,t,n){var o=n(11),r=n(3),i={attributes:{compose:function(e,t,n){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var o=r(!0,{},t);for(var i in n||(o=Object.keys(o).reduce((function(e,t){return null!=o[t]&&(e[t]=o[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(o[i]=e[i]);return Object.keys(o).length>0?o:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=Object.keys(e).concat(Object.keys(t)).reduce((function(n,r){return o(e[r],t[r])||(n[r]=void 0===t[r]?null:t[r]),n}),{});return Object.keys(n).length>0?n:void 0},transform:function(e,t,n){if("object"!=typeof e)return t;if("object"==typeof t){if(!n)return t;var o=Object.keys(t).reduce((function(n,o){return void 0===e[o]&&(n[o]=t[o]),n}),{});return Object.keys(o).length>0?o:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var n=this.offset,o=i.length(t);if(e>=o-n?(e=o-n,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var r={};return t.attributes&&(r.attributes=t.attributes),"number"==typeof t.retain?r.retain=e:"string"==typeof t.insert?r.insert=t.insert.substr(n,e):r.insert=t.insert,r}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,n=this.next(),o=this.ops.slice(this.index);return this.offset=e,this.index=t,[n].concat(o)}return[]},e.exports=i},function(e,t){var n=function(){function e(e,t){return null!=t&&e instanceof t}var t,n,o;try{t=Map}catch(s){t=function(){}}try{n=Set}catch(s){n=function(){}}try{o=Promise}catch(s){o=function(){}}function r(i,s,l,u,c){"object"==typeof s&&(l=s.depth,u=s.prototype,c=s.includeNonEnumerable,s=s.circular);var f=[],d=[],p="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===l&&(l=1/0),function i(l,h){if(null===l)return null;if(0===h)return l;var g,m;if("object"!=typeof l)return l;if(e(l,t))g=new t;else if(e(l,n))g=new n;else if(e(l,o))g=new o((function(e,t){l.then((function(t){e(i(t,h-1))}),(function(e){t(i(e,h-1))}))}));else if(r.__isArray(l))g=[];else if(r.__isRegExp(l))g=new RegExp(l.source,a(l)),l.lastIndex&&(g.lastIndex=l.lastIndex);else if(r.__isDate(l))g=new Date(l.getTime());else{if(p&&Buffer.isBuffer(l))return g=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(g),g;e(l,Error)?g=Object.create(l):void 0===u?(m=Object.getPrototypeOf(l),g=Object.create(m)):(g=Object.create(u),m=u)}if(s){var v=f.indexOf(l);if(-1!=v)return d[v];f.push(l),d.push(g)}for(var y in e(l,t)&&l.forEach((function(e,t){var n=i(t,h-1),o=i(e,h-1);g.set(n,o)})),e(l,n)&&l.forEach((function(e){var t=i(e,h-1);g.add(t)})),l){var b;m&&(b=Object.getOwnPropertyDescriptor(m,y)),b&&null==b.set||(g[y]=i(l[y],h-1))}if(Object.getOwnPropertySymbols){var _=Object.getOwnPropertySymbols(l);for(y=0;y<_.length;y++){var w=_[y];(!(k=Object.getOwnPropertyDescriptor(l,w))||k.enumerable||c)&&(g[w]=i(l[w],h-1),k.enumerable||Object.defineProperty(g,w,{enumerable:!1}))}}if(c){var x=Object.getOwnPropertyNames(l);for(y=0;y<x.length;y++){var k,O=x[y];(k=Object.getOwnPropertyDescriptor(l,O))&&k.enumerable||(g[O]=i(l[O],h-1),Object.defineProperty(g,O,{enumerable:!1}))}}return g}(i,l)}function i(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return r.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},r.__objToStr=i,r.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},r.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},r.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},r.__getRegExpFlags=a,r}();"object"==typeof e&&e.exports&&(e.exports=n)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=p(n(0)),s=p(n(8)),l=n(4),u=p(l),c=p(n(16)),f=p(n(13)),d=p(n(25));function p(e){return e&&e.__esModule?e:{default:e}}function h(e){return e instanceof u.default||e instanceof l.BlockEmbed}var g=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.emitter=n.emitter,Array.isArray(n.whitelist)&&(o.whitelist=n.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),o.domNode.addEventListener("DOMNodeInserted",(function(){})),o.optimize(),o.enable(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,n){var r=this.line(e),a=o(r,2),s=a[0],u=a[1],d=this.line(e+n),p=o(d,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,n),null!=p&&s!==p&&u>0){if(s instanceof l.BlockEmbed||p instanceof l.BlockEmbed)return void this.optimize();if(s instanceof f.default){var h=s.newlineIndex(s.length(),!0);if(h>-1&&(s=s.split(h+1))===p)return void this.optimize()}else if(p instanceof f.default){var g=p.newlineIndex(0);g>-1&&p.split(g+1)}var m=p.children.head instanceof c.default?null:p.children.head;s.moveChildren(p,m),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,n,o,r){(null==this.whitelist||this.whitelist[o])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,n,o,r),this.optimize())}},{key:"insertAt",value:function(e,n,o){if(null==o||null==this.whitelist||this.whitelist[n]){if(e>=this.length())if(null==o||null==a.default.query(n,a.default.Scope.BLOCK)){var r=a.default.create(this.statics.defaultChild);this.appendChild(r),null==o&&n.endsWith("\n")&&(n=n.slice(0,-1)),r.insertAt(0,n,o)}else{var s=a.default.create(n,o);this.appendChild(s)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,n,o);this.optimize()}}},{key:"insertBefore",value:function(e,n){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var o=a.default.create(this.statics.defaultChild);o.appendChild(e),e=o}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(h,e)}},{key:"lines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE,n=function e(t,n,o){var r=[],i=o;return t.children.forEachAt(n,o,(function(t,n,o){h(t)?r.push(t):t instanceof a.default.Container&&(r=r.concat(e(t,n,i))),i-=o})),r};return n(this,e,t)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,n),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,n))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var n=s.default.sources.USER;"string"==typeof e&&(n=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,n,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,n,e)}}}]),t}(a.default.Scroll);g.blotName="scroll",g.className="ql-editor",g.tagName="DIV",g.defaultChild="block",g.allowedChildren=[u.default,l.BlockEmbed,d.default],t.default=g},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var o="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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=g(n(21)),s=g(n(11)),l=g(n(3)),u=g(n(2)),c=g(n(20)),f=g(n(0)),d=g(n(5)),p=g(n(10)),h=g(n(9));function g(e){return e&&e.__esModule?e:{default:e}}function m(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=(0,p.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",b=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.bindings={},Object.keys(o.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&o.options.bindings[t]&&o.addBinding(o.options.bindings[t])})),o.addBinding({key:t.keys.ENTER,shiftKey:null},O),o.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},w),o.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(o.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},w),o.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),o.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},k),o.addBinding({key:t.keys.DELETE},{collapsed:!1},k),o.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},w),o.listen(),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"match",value:function(e,t){return t=E(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(n){return!!t[n]!==e[n]&&null!==t[n]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=E(e);if(null==o||null==o.key)return v.warn("Attempted to add invalid keyboard binding",o);"function"==typeof t&&(t={handler:t}),"function"==typeof n&&(n={handler:n}),o=(0,l.default)(o,t,n),this.bindings[o.key]=this.bindings[o.key]||[],this.bindings[o.key].push(o)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(n){if(!n.defaultPrevented){var i=n.which||n.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(n,e)}));if(0!==a.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var u=e.quill.getLine(l.index),c=r(u,2),d=c[0],p=c[1],h=e.quill.getLeaf(l.index),g=r(h,2),m=g[0],v=g[1],y=0===l.length?[m,v]:e.quill.getLeaf(l.index+l.length),b=r(y,2),_=b[0],w=b[1],x=m instanceof f.default.Text?m.value().slice(0,v):"",k=_ instanceof f.default.Text?_.value().slice(w):"",O={collapsed:0===l.length,empty:0===l.length&&d.length()<=1,format:e.quill.getFormat(l),offset:p,prefix:x,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==O.collapsed)return!1;if(null!=t.empty&&t.empty!==O.empty)return!1;if(null!=t.offset&&t.offset!==O.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==O.format[e]})))return!1}else if("object"===o(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=O.format[e]:!1===t.format[e]?null==O.format[e]:(0,s.default)(t.format[e],O.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(O.prefix)||null!=t.suffix&&!t.suffix.test(O.suffix)||!0===t.handler.call(e,l,O))}))&&n.preventDefault()}}}}))}}]),t}(h.default);function _(e,t){var n,o=e===b.keys.LEFT?"prefix":"suffix";return m(n={key:e,shiftKey:t,altKey:null},o,/^$/),m(n,"handler",(function(n){var o=n.index;e===b.keys.RIGHT&&(o+=n.length+1);var i=this.quill.getLeaf(o);return!(r(i,1)[0]instanceof f.default.Embed&&(e===b.keys.LEFT?t?this.quill.setSelection(n.index-1,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index-1,d.default.sources.USER):t?this.quill.setSelection(n.index,n.length+1,d.default.sources.USER):this.quill.setSelection(n.index+n.length+1,d.default.sources.USER),1))})),n}function w(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var n=this.quill.getLine(e.index),o=r(n,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),s=r(a,1)[0];if(null!=s&&s.length()>1){var l=o.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(l,u)||{}}}var f=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-f,f,d.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-f,f,i,d.default.sources.USER),this.quill.focus()}}function x(e,t){var n=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-n)){var o={},i=0,a=this.quill.getLine(e.index),s=r(a,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),u=r(l,1)[0];if(u){var f=s.formats(),p=this.quill.getFormat(e.index,1);o=c.default.attributes.diff(f,p)||{},i=u.length()}}this.quill.deleteText(e.index,n,d.default.sources.USER),Object.keys(o).length>0&&this.quill.formatLine(e.index+i-1,n,o,d.default.sources.USER)}}function k(e){var t=this.quill.getLines(e),n={};if(t.length>1){var o=t[0].formats(),r=t[t.length-1].formats();n=c.default.attributes.diff(r,o)||{}}this.quill.deleteText(e,d.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index,1,n,d.default.sources.USER),this.quill.setSelection(e.index,d.default.sources.SILENT),this.quill.focus()}function O(e,t){var n=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var o=Object.keys(t.format).reduce((function(e,n){return f.default.query(n,f.default.Scope.BLOCK)&&!Array.isArray(t.format[n])&&(e[n]=t.format[n]),e}),{});this.quill.insertText(e.index,"\n",o,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==o[e]&&(Array.isArray(t.format[e])||"link"!==e&&n.quill.format(e,t.format[e],d.default.sources.USER))}))}function T(e){return{key:b.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var n=f.default.query("code-block"),o=t.index,i=t.length,a=this.quill.scroll.descendant(n,o),s=r(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),p=l.newlineIndex(u,!0)+1,h=l.newlineIndex(c+u+i),g=l.domNode.textContent.slice(p,h).split("\n");u=0,g.forEach((function(t,r){e?(l.insertAt(p+u,n.TAB),u+=n.TAB.length,0===r?o+=n.TAB.length:i+=n.TAB.length):t.startsWith(n.TAB)&&(l.deleteAt(p+u,n.TAB.length),u-=n.TAB.length,0===r?o-=n.TAB.length:i-=n.TAB.length),u+=t.length+1})),this.quill.update(d.default.sources.USER),this.quill.setSelection(o,i,d.default.sources.SILENT)}}}}function S(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,n){this.quill.format(e,!n.format[e],d.default.sources.USER)}}}function E(e){if("string"==typeof e||"number"==typeof e)return E({key:e});if("object"===(void 0===e?"undefined":o(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=b.keys[e.key.toUpperCase()])e.key=b.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}b.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},b.DEFAULTS={bindings:{bold:S("bold"),italic:S("italic"),underline:S("underline"),indent:{key:b.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",d.default.sources.USER)}},outdent:{key:b.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",d.default.sources.USER)}},"outdent backspace":{key:b.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",d.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,d.default.sources.USER)}},"indent code-block":T(!0),"outdent code-block":T(!1),"remove tab":{key:b.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,d.default.sources.USER)}},tab:{key:b.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,d.default.sources.SILENT)}},"list empty enter":{key:b.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,d.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,d.default.sources.USER)}},"checklist enter":{key:b.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(0,l.default)({},o.formats(),{list:"checked"}),s=(new u.default).retain(e.index).insert("\n",a).retain(o.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:b.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var n=this.quill.getLine(e.index),o=r(n,2),i=o[0],a=o[1],s=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,d.default.sources.USER),this.quill.setSelection(e.index+1,d.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var n=t.prefix.length,o=this.quill.getLine(e.index),i=r(o,2),a=i[0],s=i[1];if(s>n)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",d.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-s).delete(n+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,d.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-n,d.default.sources.SILENT)}},"code exit":{key:b.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),n=r(t,2),o=n[0],i=n[1],a=(new u.default).retain(e.index+o.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,d.default.sources.USER)}},"embed left":_(b.keys.LEFT,!1),"embed left shift":_(b.keys.LEFT,!0),"embed right":_(b.keys.RIGHT,!1),"embed right shift":_(b.keys.RIGHT,!0)}},t.default=b,t.SHORTKEY=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=l(n(0)),s=l(n(7));function l(e){return e&&e.__esModule?e:{default:e}}var u=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.selection=n,o.textNode=document.createTextNode(t.CONTENTS),o.domNode.appendChild(o.textNode),o._length=0,o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,null,[{key:"value",value:function(){}}]),i(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,n){if(0!==this._length)return r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);for(var o=this,i=0;null!=o&&o.statics.scope!==a.default.Scope.BLOCK_BLOT;)i+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(i,t.CONTENTS.length,e,n),this._length=0)}},{key:"index",value:function(e,n){return e===this.textNode?0:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,n=this.selection.getNativeRange(),r=void 0,i=void 0,l=void 0;if(null!=n&&n.start.node===e&&n.end.node===e){var u=[e,n.start.offset,n.end.offset];r=u[0],i=u[1],l=u[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var c=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof s.default?(r=this.next.domNode,this.next.insertAt(0,c),this.textNode.data=t.CONTENTS):(this.textNode.data=c,this.parent.insertBefore(a.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=i){var f=[i,l].map((function(e){return Math.max(0,Math.min(r.data.length,e-1))})),d=o(f,2);return i=d[0],l=d[1],{startNode:r,startOffset:i,endNode:r,endOffset:l}}}}},{key:"update",value:function(e,t){var n=this;if(e.some((function(e){return"characterData"===e.type&&e.target===n.textNode}))){var o=this.restore();o&&(t.range=o)}}},{key:"value",value:function(){return""}}]),t}(a.default.Embed);u.blotName="cursor",u.className="ql-cursor",u.tagName="span",u.CONTENTS="\ufeff",t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=a(n(0)),r=n(4),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(o.default.Container);u.allowedChildren=[i.default,r.BlockEmbed,u],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(0),s=(o=a)&&o.__esModule?o:{default:o};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return n.startsWith("rgb(")?"#"+(n=n.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):n}}]),t}(s.default.Attributor.Style),f=new s.default.Attributor.Class("color","ql-color",{scope:s.default.Scope.INLINE}),d=new c("color","color",{scope:s.default.Scope.INLINE});t.ColorAttributor=c,t.ColorClass=f,t.ColorStyle=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(6);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){if(e!==this.statics.blotName||!n)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n);n=this.constructor.sanitize(n),this.domNode.setAttribute("href",n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),n.setAttribute("href",e),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank"),n}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return c(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);function c(e,t){var n=document.createElement("a");n.href=e;var o=n.href.slice(0,n.href.indexOf(":"));return t.indexOf(o)>-1}u.blotName="link",u.tagName="A",u.SANITIZED_URL="about:blank",u.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=u,t.sanitize=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o="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},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=s(n(23)),a=s(n(107));function s(e){return e&&e.__esModule?e:{default:e}}var l=0;function u(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){n.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:n.togglePicker();break;case i.default.keys.ESCAPE:n.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return r(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,n=document.createElement("span");return n.tabIndex="0",n.setAttribute("role","button"),n.classList.add("ql-picker-item"),e.hasAttribute("value")&&n.setAttribute("data-value",e.getAttribute("value")),e.textContent&&n.setAttribute("data-label",e.textContent),n.addEventListener("click",(function(){t.selectItem(n,!0)})),n.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(n,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),n}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(n){var o=e.buildItem(n);t.appendChild(o),!0===n.selected&&e.selectItem(o)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.container.querySelector(".ql-selected");if(e!==n&&(null!=n&&n.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":o(Event))){var r=document.createEvent("Event");r.initEvent("change",!0,!0),this.select.dispatchEvent(r)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var n=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",n)}}]),e}();t.default=c},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=v(n(0)),r=v(n(5)),i=n(4),a=v(i),s=v(n(16)),l=v(n(25)),u=v(n(24)),c=v(n(35)),f=v(n(6)),d=v(n(22)),p=v(n(7)),h=v(n(55)),g=v(n(42)),m=v(n(23));function v(e){return e&&e.__esModule?e:{default:e}}r.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":f.default,"blots/scroll":d.default,"blots/text":p.default,"modules/clipboard":h.default,"modules/history":g.default,"modules/keyboard":m.default}),o.default.register(a.default,s.default,u.default,f.default,d.default,p.default),t.default=r.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(1),r=function(){function e(e){this.domNode=e,this.domNode[o.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new o.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return o.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[o.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,n,r){var i=this.isolate(e,t);if(null!=o.query(n,o.Scope.BLOT)&&r)i.wrap(n,r);else if(null!=o.query(n,o.Scope.ATTRIBUTE)){var a=o.create(this.statics.scope);i.wrap(a),a.format(n,r)}},e.prototype.insertAt=function(e,t,n){var r=null==n?o.create("text",t):o.create(t,n),i=this.split(e);this.parent.insertBefore(r,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var n=null;e.children.insertBefore(this,t),null!=t&&(n=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==n||e.domNode.insertBefore(this.domNode,n),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var n=this.split(e);return n.split(t),n},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[o.DATA_KEY]&&delete this.domNode[o.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var n="string"==typeof e?o.create(e,t):e;return n.replace(this),n},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var n="string"==typeof e?o.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(n,this.next),n.appendChild(this),n},e.blotName="abstract",e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=n(12),r=n(32),i=n(33),a=n(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=o.default.keys(this.domNode),n=r.default.keys(this.domNode),s=i.default.keys(this.domNode);t.concat(n).concat(s).forEach((function(t){var n=a.query(t,a.Scope.ATTRIBUTE);n instanceof o.default&&(e.attributes[n.attrName]=n)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(n){var o=t.attributes[n].value(t.domNode);e.format(n,o)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,n){return t[n]=e.attributes[n].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});function i(e){var t=e.split("-"),n=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+n}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(n(12).default);t.default=a},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=n,this.modules={}}return o(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();r.DEFAULTS={modules:{}},r.themes={default:r},t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=s(n(0)),a=s(n(7));function s(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",u=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.contentNode=document.createElement("span"),n.contentNode.setAttribute("contenteditable",!1),[].slice.call(n.domNode.childNodes).forEach((function(e){n.contentNode.appendChild(e)})),n.leftGuard=document.createTextNode(l),n.rightGuard=document.createTextNode(l),n.domNode.appendChild(n.leftGuard),n.domNode.appendChild(n.contentNode),n.domNode.appendChild(n.rightGuard),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"index",value:function(e,n){return e===this.leftGuard?0:e===this.rightGuard?1:r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,n)}},{key:"restore",value:function(e){var t=void 0,n=void 0,o=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var r=this.prev.length();this.prev.insertAt(r,o),t={startNode:this.prev.domNode,startOffset:r+o.length}}else n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this),t={startNode:n,startOffset:o.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,o),t={startNode:this.next.domNode,startOffset:o.length}):(n=document.createTextNode(o),this.parent.insertBefore(i.default.create(n),this.next),t={startNode:n,startOffset:o.length}));return e.data=l,t}},{key:"update",value:function(e,t){var n=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===n.leftGuard||e.target===n.rightGuard)){var o=n.restore(e.target);o&&(t.range=o)}}))}}]),t}(i.default.Embed);t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var o,r=n(0),i=(o=r)&&o.__esModule?o:{default:o},a={scope:i.default.Scope.BLOCK,whitelist:["right","center","justify"]},s=new i.default.Attributor.Attribute("align","align",a),l=new i.default.Attributor.Class("align","ql-align",a),u=new i.default.Attributor.Style("align","text-align",a);t.AlignAttribute=s,t.AlignClass=l,t.AlignStyle=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var o,r=n(0),i=(o=r)&&o.__esModule?o:{default:o},a=n(26),s=new i.default.Attributor.Class("background","ql-bg",{scope:i.default.Scope.INLINE}),l=new a.ColorAttributor("background","background-color",{scope:i.default.Scope.INLINE});t.BackgroundClass=s,t.BackgroundStyle=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var o,r=n(0),i=(o=r)&&o.__esModule?o:{default:o},a={scope:i.default.Scope.BLOCK,whitelist:["rtl"]},s=new i.default.Attributor.Attribute("direction","dir",a),l=new i.default.Attributor.Class("direction","ql-direction",a),u=new i.default.Attributor.Style("direction","direction",a);t.DirectionAttribute=s,t.DirectionClass=l,t.DirectionStyle=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(0),s=(o=a)&&o.__esModule?o:{default:o};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c={scope:s.default.Scope.INLINE,whitelist:["serif","monospace"]},f=new s.default.Attributor.Class("font","ql-font",c),d=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(s.default.Attributor.Style),p=new d("font","font-family",c);t.FontStyle=p,t.FontClass=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var o,r=n(0),i=(o=r)&&o.__esModule?o:{default:o},a=new i.default.Attributor.Class("size","ql-size",{scope:i.default.Scope.INLINE,whitelist:["small","large","huge"]}),s=new i.default.Attributor.Style("size","font-size",{scope:i.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=a,t.SizeStyle=s},function(e,t,n){e.exports={align:{"":n(76),center:n(77),right:n(78),justify:n(79)},background:n(80),blockquote:n(81),bold:n(82),clean:n(83),code:n(58),"code-block":n(58),color:n(84),direction:{"":n(85),rtl:n(86)},float:{center:n(87),full:n(88),left:n(89),right:n(90)},formula:n(91),header:{1:n(92),2:n(93)},italic:n(94),image:n(95),indent:{"+1":n(96),"-1":n(97)},link:n(98),list:{ordered:n(99),bullet:n(100),check:n(101)},script:{sub:n(102),super:n(103)},strike:n(104),underline:n(105),video:n(106)}},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=a(n(0)),i=a(n(5));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.lastRecorded=0,o.ignoreChange=!1,o.clear(),o.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,n,r){e!==i.default.events.TEXT_CHANGE||o.ignoreChange||(o.options.userOnly&&r!==i.default.sources.USER?o.transform(t):o.record(t,n))})),o.quill.keyboard.addBinding({key:"Z",shortKey:!0},o.undo.bind(o)),o.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},o.redo.bind(o)),/Win/i.test(navigator.platform)&&o.quill.keyboard.addBinding({key:"Y",shortKey:!0},o.redo.bind(o)),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var n=this.stack[e].pop();this.stack[t].push(n),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(n[e],i.default.sources.USER),this.ignoreChange=!1;var o=l(n[e]);this.quill.setSelection(o)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var n=this.quill.getContents().diff(t),o=Date.now();if(this.lastRecorded+this.options.delay>o&&this.stack.undo.length>0){var r=this.stack.undo.pop();n=n.compose(r.undo),e=r.redo.compose(e)}else this.lastRecorded=o;this.stack.undo.push({redo:e,undo:n}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(n(9)).default);function l(e){var t=e.reduce((function(e,t){return e+=t.delete||0}),0),n=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=r.default.query(e,r.default.Scope.BLOCK)})))}(e)&&(n-=1),n}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=h(n(3)),a=h(n(2)),s=h(n(8)),l=h(n(23)),u=h(n(34)),c=h(n(59)),f=h(n(60)),d=h(n(28)),p=h(n(61));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function v(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var y=[!1,"center","right","justify"],b=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],_=[!1,"serif","monospace"],w=["1","2","3",!1],x=["small",!1,"large","huge"],k=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return e.emitter.listenDOM("click",document.body,(function t(n){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==o.tooltip||o.tooltip.root.contains(n.target)||document.activeElement===o.tooltip.textbox||o.quill.hasFocus()||o.tooltip.hide(),null!=o.pickers&&o.pickers.forEach((function(e){e.container.contains(n.target)||e.close()}))})),o}return v(t,e),o(t,[{key:"addModule",value:function(e){var n=r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(n),n}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(n){if(n.startsWith("ql-")&&(n=n.slice("ql-".length),null!=t[n]))if("direction"===n)e.innerHTML=t[n][""]+t[n].rtl;else if("string"==typeof t[n])e.innerHTML=t[n];else{var o=e.value||"";null!=o&&t[n][o]&&(e.innerHTML=t[n][o])}}))}))}},{key:"buildPickers",value:function(e,t){var n=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&T(e,y),new f.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var n=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&T(e,b,"background"===n?"#ffffff":"#000000"),new c.default(e,t[n])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?T(e,_):e.classList.contains("ql-header")?T(e,w):e.classList.contains("ql-size")&&T(e,x)),new d.default(e)})),this.quill.on(s.default.events.EDITOR_CHANGE,(function(){n.pickers.forEach((function(e){e.update()}))}))}}]),t}(u.default);k.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var n=new FileReader;n.onload=function(n){var o=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(o.index).delete(o.length).insert({image:n.target.result}),s.default.sources.USER),e.quill.setSelection(o.index+1,s.default.sources.SILENT),t.value=""},n.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var O=function(e){function t(e,n){g(this,t);var o=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.textbox=o.root.querySelector('input[type="text"]'),o.listen(),o}return v(t,e),o(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,n=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var o=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",n,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",n,s.default.sources.USER)),this.quill.root.scrollTop=o;break;case"video":t=(e=n).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/),n=t?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!n)break;var r=this.quill.getSelection(!0);if(null!=r){var i=r.index+r.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),n,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",s.default.sources.USER),this.quill.setSelection(i+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(p.default);function T(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var o=document.createElement("option");t===n?o.setAttribute("selected","selected"):o.setAttribute("value",t),e.appendChild(o)}))}t.BaseTooltip=O,t.default=k},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,n=this.iterator();t=n();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,n=this.head;null!=n;){if(n===e)return t;t+=n.length(),n=n.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var n,o=this.iterator();n=o();){var r=n.length();if(e<r||t&&e===r&&(null==n.next||0!==n.next.length()))return[n,e];e-=r}return[null,0]},e.prototype.forEach=function(e){for(var t,n=this.iterator();t=n();)e(t)},e.prototype.forEachAt=function(e,t,n){if(!(t<=0))for(var o,r=this.find(e),i=r[0],a=e-r[1],s=this.iterator(i);(o=s())&&a<e+t;){var l=o.length();e>a?n(o,e-a,Math.min(t,a+l-e)):n(o,0,Math.min(l,e+t-a)),a+=l}},e.prototype.map=function(e){return this.reduce((function(t,n){return t.push(e(n)),t}),[])},e.prototype.reduce=function(e,t){for(var n,o=this.iterator();n=o();)t=e(t,n);return t},e}();t.default=o},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(17),a=n(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var n=e.call(this,t)||this;return n.scroll=n,n.observer=new MutationObserver((function(e){n.update(e)})),n.observer.observe(n.domNode,s),n.attach(),n}return r(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,n){this.update(),0===t&&n===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,n)},t.prototype.formatAt=function(t,n,o,r){this.update(),e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){this.update(),e.prototype.insertAt.call(this,t,n,o)},t.prototype.optimize=function(t,n){var o=this;void 0===t&&(t=[]),void 0===n&&(n={}),e.prototype.optimize.call(this,n);for(var r=[].slice.call(this.observer.takeRecords());r.length>0;)t.push(r.pop());for(var s=function(e,t){void 0===t&&(t=!0),null!=e&&e!==o&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&s(e.parent))},l=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(l),e.optimize(n))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);s(t,!1),t instanceof i.default&&t.children.forEach((function(e){s(e,!1)}))}))):"attributes"===e.type&&s(t.prev)),s(t))})),this.children.forEach(l),r=(u=[].slice.call(this.observer.takeRecords())).slice();r.length>0;)t.push(r.pop())}},t.prototype.update=function(t,n){var o=this;void 0===n&&(n={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==o&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],n)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,n),this.optimize(t,n)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=l},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){if(n.tagName!==t.tagName)return e.formats.call(this,n)},t.prototype.format=function(n,o){var r=this;n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),r.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,n,o,r){null!=this.formats()[o]||a.query(o,a.Scope.ATTRIBUTE)?this.isolate(t,n).format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n);var o=this.formats();if(0===Object.keys(o).length)return this.unwrap();var r=this.next;r instanceof t&&r.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n in e)if(e[n]!==t[n])return!1;return!0}(o,r.formats())&&(r.moveChildren(this),r.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(18),a=n(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(n){var o=a.query(t.blotName).tagName;if(n.tagName!==o)return e.formats.call(this,n)},t.prototype.format=function(n,o){null!=a.query(n,a.Scope.BLOCK)&&(n!==this.statics.blotName||o?e.prototype.format.call(this,n,o):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,n,o,r){null!=a.query(o,a.Scope.BLOCK)?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.insertAt=function(t,n,o){if(null==o||null!=a.query(n,a.Scope.INLINE))e.prototype.insertAt.call(this,t,n,o);else{var r=this.split(t),i=a.create(n,o);r.parent.insertBefore(i,r)}},t.prototype.update=function(t,n){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,n)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=s},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r(t,e),t.formats=function(e){},t.prototype.format=function(t,n){e.prototype.formatAt.call(this,0,this.length(),t,n)},t.prototype.formatAt=function(t,n,o,r){0===t&&n===this.length()?this.format(o,r):e.prototype.formatAt.call(this,t,n,o,r)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(n(19).default);t.default=i},function(e,t,n){var o,r=this&&this.__extends||(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},function(e,t){function n(){this.constructor=e}o(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)});Object.defineProperty(t,"__esModule",{value:!0});var i=n(19),a=n(1),s=function(e){function t(t){var n=e.call(this,t)||this;return n.text=n.statics.value(n.domNode),n}return r(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,n,o){null==o?(this.text=this.text.slice(0,t)+n+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,n,o)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(n){e.prototype.optimize.call(this,n),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var n=a.create(this.domNode.splitText(e));return this.parent.insertBefore(n,this.next),this.text=this.statics.value(this.domNode),n},t.prototype.update=function(e,t){var n=this;e.some((function(e){return"characterData"===e.type&&e.target===n.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=s},function(e,t,n){var o=document.createElement("div");if(o.classList.toggle("test-class",!1),o.classList.contains("test-class")){var r=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:r.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var n=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>n.length)&&(t=n.length),t-=e.length;var o=n.indexOf(e,t);return-1!==o&&o===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,n=Object(this),o=n.length>>>0,r=arguments[1],i=0;i<o;i++)if(t=n[i],e.call(r,t,i,n))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var n=-1;function o(e,t,l){if(e==t)return e?[[0,e]]:[];(l<0||e.length<l)&&(l=null);var c=i(e,t),f=e.substring(0,c);c=a(e=e.substring(c),t=t.substring(c));var d=e.substring(e.length-c),p=function(e,t){var s;if(!e)return[[1,t]];if(!t)return[[n,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return s=[[1,l.substring(0,c)],[0,u],[1,l.substring(c+u.length)]],e.length>t.length&&(s[0][0]=s[2][0]=n),s;if(1==u.length)return[[n,e],[1,t]];var f=function(e,t){var n=e.length>t.length?e:t,o=e.length>t.length?t:e;if(n.length<4||2*o.length<n.length)return null;function r(e,t,n){for(var o,r,s,l,u=e.substring(n,n+Math.floor(e.length/4)),c=-1,f="";-1!=(c=t.indexOf(u,c+1));){var d=i(e.substring(n),t.substring(c)),p=a(e.substring(0,n),t.substring(0,c));f.length<p+d&&(f=t.substring(c-p,c)+t.substring(c,c+d),o=e.substring(0,n-p),r=e.substring(n+d),s=t.substring(0,c-p),l=t.substring(c+d))}return 2*f.length>=e.length?[o,r,s,l,f]:null}var s,l,u,c,f,d=r(n,o,Math.ceil(n.length/4)),p=r(n,o,Math.ceil(n.length/2));if(!d&&!p)return null;s=p?d&&d[4].length>p[4].length?d:p:d,e.length>t.length?(l=s[0],u=s[1],c=s[2],f=s[3]):(c=s[0],f=s[1],l=s[2],u=s[3]);var h=s[4];return[l,u,c,f,h]}(e,t);if(f){var d=f[0],p=f[1],h=f[2],g=f[3],m=f[4],v=o(d,h),y=o(p,g);return v.concat([[0,m]],y)}return function(e,t){for(var o=e.length,i=t.length,a=Math.ceil((o+i)/2),s=a,l=2*a,u=new Array(l),c=new Array(l),f=0;f<l;f++)u[f]=-1,c[f]=-1;u[s+1]=0,c[s+1]=0;for(var d=o-i,p=d%2!=0,h=0,g=0,m=0,v=0,y=0;y<a;y++){for(var b=-y+h;b<=y-g;b+=2){for(var _=s+b,w=(S=b==-y||b!=y&&u[_-1]<u[_+1]?u[_+1]:u[_-1]+1)-b;S<o&&w<i&&e.charAt(S)==t.charAt(w);)S++,w++;if(u[_]=S,S>o)g+=2;else if(w>i)h+=2;else if(p&&(O=s+d-b)>=0&&O<l&&-1!=c[O]&&S>=(k=o-c[O]))return r(e,t,S,w)}for(var x=-y+m;x<=y-v;x+=2){for(var k,O=s+x,T=(k=x==-y||x!=y&&c[O-1]<c[O+1]?c[O+1]:c[O-1]+1)-x;k<o&&T<i&&e.charAt(o-k-1)==t.charAt(i-T-1);)k++,T++;if(c[O]=k,k>o)v+=2;else if(T>i)m+=2;else if(!p){var S;if((_=s+d-x)>=0&&_<l&&-1!=u[_]&&(w=s+(S=u[_])-_,S>=(k=o-k)))return r(e,t,S,w)}}}return[[n,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return f&&p.unshift([0,f]),d&&p.push([0,d]),s(p),null!=l&&(p=function(e,t){var o=function(e,t){if(0===t)return[0,e];for(var o=0,r=0;r<e.length;r++){var i=e[r];if(i[0]===n||0===i[0]){var a=o+i[1].length;if(t===a)return[r+1,e];if(t<a){e=e.slice();var s=t-o,l=[i[0],i[1].slice(0,s)],u=[i[0],i[1].slice(s)];return e.splice(r,1,l,u),[r+1,e]}o=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),r=o[1],i=o[0],a=r[i],s=r[i+1];if(null==a)return e;if(0!==a[0])return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return r.splice(i,2,s,a),u(r,i,2);if(null!=s&&0===s[1].indexOf(a[1])){r.splice(i,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&r.splice(i+2,0,[s[0],l]),u(r,i,3)}return e}(p,l)),p=function(e){for(var t=!1,o=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},r=function(e){return e.charCodeAt(e.length-1)>=55296&&e.charCodeAt(e.length-1)<=56319},i=2;i<e.length;i+=1)0===e[i-2][0]&&r(e[i-2][1])&&e[i-1][0]===n&&o(e[i-1][1])&&1===e[i][0]&&o(e[i][1])&&(t=!0,e[i-1][1]=e[i-2][1].slice(-1)+e[i-1][1],e[i][1]=e[i-2][1].slice(-1)+e[i][1],e[i-2][1]=e[i-2][1].slice(0,-1));if(!t)return e;var a=[];for(i=0;i<e.length;i+=1)e[i][1].length>0&&a.push(e[i]);return a}(p)}function r(e,t,n,r){var i=e.substring(0,n),a=t.substring(0,r),s=e.substring(n),l=t.substring(r),u=o(i,a),c=o(s,l);return u.concat(c)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(i,r)==t.substring(i,r)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var n=0,o=Math.min(e.length,t.length),r=o,i=0;n<r;)e.substring(e.length-r,e.length-i)==t.substring(t.length-r,t.length-i)?i=n=r:o=r,r=Math.floor((o-n)/2+n);return r}function s(e){e.push([0,""]);for(var t,o=0,r=0,l=0,u="",c="";o<e.length;)switch(e[o][0]){case 1:l++,c+=e[o][1],o++;break;case n:r++,u+=e[o][1],o++;break;case 0:r+l>1?(0!==r&&0!==l&&(0!==(t=i(c,u))&&(o-r-l>0&&0==e[o-r-l-1][0]?e[o-r-l-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),o++),c=c.substring(t),u=u.substring(t)),0!==(t=a(c,u))&&(e[o][1]=c.substring(c.length-t)+e[o][1],c=c.substring(0,c.length-t),u=u.substring(0,u.length-t))),0===r?e.splice(o-l,r+l,[1,c]):0===l?e.splice(o-r,r+l,[n,u]):e.splice(o-r-l,r+l,[n,u],[1,c]),o=o-r-l+(r?1:0)+(l?1:0)+1):0!==o&&0==e[o-1][0]?(e[o-1][1]+=e[o][1],e.splice(o,1)):o++,l=0,r=0,u="",c=""}""===e[e.length-1][1]&&e.pop();var f=!1;for(o=1;o<e.length-1;)0==e[o-1][0]&&0==e[o+1][0]&&(e[o][1].substring(e[o][1].length-e[o-1][1].length)==e[o-1][1]?(e[o][1]=e[o-1][1]+e[o][1].substring(0,e[o][1].length-e[o-1][1].length),e[o+1][1]=e[o-1][1]+e[o+1][1],e.splice(o-1,1),f=!0):e[o][1].substring(0,e[o+1][1].length)==e[o+1][1]&&(e[o-1][1]+=e[o+1][1],e[o][1]=e[o][1].substring(e[o+1][1].length)+e[o+1][1],e.splice(o+1,1),f=!0)),o++;f&&s(e)}var l=o;function u(e,t,n){for(var o=t+n-1;o>=0&&o>=t-1;o--)if(o+1<e.length){var r=e[o],i=e[o+1];r[0]===i[1]&&e.splice(o,2,[r[0],r[1]+i[1]])}return e}l.INSERT=1,l.DELETE=n,l.EQUAL=0,e.exports=l},function(e,t){function n(e){var t=[];for(var n in e)t.push(n);return t}(e.exports="function"==typeof Object.keys?Object.keys:n).shim=n},function(e,t){var n="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function o(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function r(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=n?o:r).supported=o,t.unsupported=r},function(e,t){var n=Object.prototype.hasOwnProperty,o="~";function r(){}function i(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function a(){this._events=new r,this._eventsCount=0}Object.create&&(r.prototype=Object.create(null),(new r).__proto__||(o=!1)),a.prototype.eventNames=function(){var e,t,r=[];if(0===this._eventsCount)return r;for(t in e=this._events)n.call(e,t)&&r.push(o?t.slice(1):t);return Object.getOwnPropertySymbols?r.concat(Object.getOwnPropertySymbols(e)):r},a.prototype.listeners=function(e,t){var n=o?o+e:e,r=this._events[n];if(t)return!!r;if(!r)return[];if(r.fn)return[r.fn];for(var i=0,a=r.length,s=new Array(a);i<a;i++)s[i]=r[i].fn;return s},a.prototype.emit=function(e,t,n,r,i,a){var s=o?o+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],f=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),f){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,n),!0;case 4:return c.fn.call(c.context,t,n,r),!0;case 5:return c.fn.call(c.context,t,n,r,i),!0;case 6:return c.fn.call(c.context,t,n,r,i,a),!0}for(u=1,l=new Array(f-1);u<f;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var d,p=c.length;for(u=0;u<p;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),f){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,n);break;case 4:c[u].fn.call(c[u].context,t,n,r);break;default:if(!l)for(d=1,l=new Array(f-1);d<f;d++)l[d-1]=arguments[d];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,n){var r=new i(t,n||this),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.once=function(e,t,n){var r=new i(t,n||this,!0),a=o?o+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],r]:this._events[a].push(r):(this._events[a]=r,this._eventsCount++),this},a.prototype.removeListener=function(e,t,n,i){var a=o?o+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new r:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||n&&s.context!==n||(0==--this._eventsCount?this._events=new r:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||n&&s[l].context!==n)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new r:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=o?o+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new r:delete this._events[t])):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=o,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var o="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},r=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=b(n(3)),s=b(n(2)),l=b(n(0)),u=b(n(5)),c=b(n(10)),f=b(n(9)),d=n(36),p=n(37),h=b(n(13)),g=n(26),m=n(38),v=n(39),y=n(40);function b(e){return e&&e.__esModule?e:{default:e}}function _(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=(0,c.default)("quill:clipboard"),x="__ql-matcher",k=[[Node.TEXT_NODE,B],[Node.TEXT_NODE,q],["br",function(e,t){return A(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,q],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,M],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,function(e,t){var n={},o=e.style||{};return o.fontStyle&&"italic"===C(e).fontStyle&&(n.italic=!0),o.fontWeight&&(C(e).fontWeight.startsWith("bold")||parseInt(C(e).fontWeight)>=700)&&(n.bold=!0),Object.keys(n).length>0&&(t=E(t,n)),parseFloat(o.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var n=l.default.query(e);if(null==n||"list-item"!==n.blotName||!A(t,"\n"))return t;for(var o=-1,r=e.parentNode;!r.classList.contains("ql-clipboard");)"list"===(l.default.query(r)||{}).blotName&&(o+=1),r=r.parentNode;return o<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:o}))}],["b",j.bind(j,"bold")],["i",j.bind(j,"italic")],["style",function(){return new s.default}]],O=[d.AlignAttribute,m.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),T=[d.AlignStyle,p.BackgroundStyle,g.ColorStyle,m.DirectionStyle,v.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),S=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.root.addEventListener("paste",o.onPaste.bind(o)),o.container=o.quill.addContainer("ql-clipboard"),o.container.setAttribute("contenteditable",!0),o.container.setAttribute("tabindex",-1),o.matchers=[],k.concat(o.options.matchers).forEach((function(e){var t=r(e,2),i=t[0],a=t[1];(n.matchVisual||a!==M)&&o.addMatcher(i,a)})),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[h.default.blotName]){var n=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(n,_({},h.default.blotName,t[h.default.blotName]))}var o=this.prepareMatching(),i=r(o,2),a=i[0],l=i[1],u=P(this.container,a,l);return A(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new s.default).retain(u.length()-1).delete(1))),w.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var o=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(o),n),this.quill.setSelection(e+o.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var n=this.quill.getSelection(),o=(new s.default).retain(n.index),r=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){o=o.concat(t.convert()).delete(n.length),t.quill.updateContents(o,u.default.sources.USER),t.quill.setSelection(o.length()-n.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=r,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],n=[];return this.matchers.forEach((function(o){var i=r(o,2),a=i[0],s=i[1];switch(a){case Node.TEXT_NODE:n.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[x]=e[x]||[],e[x].push(s)}))}})),[t,n]}}]),t}(f.default);function E(e,t,n){return"object"===(void 0===t?"undefined":o(t))?Object.keys(t).reduce((function(e,n){return E(e,n,t[n])}),e):e.reduce((function(e,o){return o.attributes&&o.attributes[t]?e.push(o):e.insert(o.insert,(0,a.default)({},_({},t,n),o.attributes))}),new s.default)}function C(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function A(e,t){for(var n="",o=e.ops.length-1;o>=0&&n.length<t.length;--o){var r=e.ops[o];if("string"!=typeof r.insert)break;n=r.insert+n}return n.slice(-1*t.length)===t}function N(e){if(0===e.childNodes.length)return!1;var t=C(e);return["block","list-item"].indexOf(t.display)>-1}function P(e,t,n){return e.nodeType===e.TEXT_NODE?n.reduce((function(t,n){return n(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(o,r){var i=P(r,t,n);return r.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(r,e)}),i),i=(r[x]||[]).reduce((function(e,t){return t(r,e)}),i)),o.concat(i)}),new s.default):new s.default}function j(e,t,n){return E(n,e,!0)}function L(e,t){var n=l.default.Attributor.Attribute.keys(e),o=l.default.Attributor.Class.keys(e),r=l.default.Attributor.Style.keys(e),i={};return n.concat(o).concat(r).forEach((function(t){var n=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=n&&(i[n.attrName]=n.value(e),i[n.attrName])||(null==(n=O[t])||n.attrName!==t&&n.keyName!==t||(i[n.attrName]=n.value(e)||void 0),null==(n=T[t])||n.attrName!==t&&n.keyName!==t||(n=T[t],i[n.attrName]=n.value(e)||void 0))})),Object.keys(i).length>0&&(t=E(t,i)),t}function I(e,t){var n=l.default.query(e);if(null==n)return t;if(n.prototype instanceof l.default.Embed){var o={},r=n.value(e);null!=r&&(o[n.blotName]=r,t=(new s.default).insert(o,n.formats(e)))}else"function"==typeof n.formats&&(t=E(t,n.blotName,n.formats(e)));return t}function q(e,t){return A(t,"\n")||(N(e)||t.length()>0&&e.nextSibling&&N(e.nextSibling))&&t.insert("\n"),t}function M(e,t){if(N(e)&&null!=e.nextElementSibling&&!A(t,"\n\n")){var n=e.offsetHeight+parseFloat(C(e).marginTop)+parseFloat(C(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*n&&t.insert("\n")}return t}function B(e,t){var n=e.data;if("O:P"===e.parentNode.tagName)return t.insert(n.trim());if(0===n.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!C(e.parentNode).whiteSpace.startsWith("pre")){var o=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};n=(n=n.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,o.bind(o,!0)),(null==e.previousSibling&&N(e.parentNode)||null!=e.previousSibling&&N(e.previousSibling))&&(n=n.replace(/^\s+/,o.bind(o,!1))),(null==e.nextSibling&&N(e.parentNode)||null!=e.nextSibling&&N(e.nextSibling))&&(n=n.replace(/\s+$/,o.bind(o,!1)))}return t.insert(n)}S.DEFAULTS={matchers:[],matchVisual:!0},t.default=S,t.matchAttributor=L,t.matchBlot=I,t.matchNewline=q,t.matchSpacing=M,t.matchText=B},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(6);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);u.blotName="bold",u.tagName=["STRONG","B"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=c(n(2)),a=c(n(0)),s=c(n(5)),l=c(n(10)),u=c(n(9));function c(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var d=(0,l.default)("quill:toolbar"),p=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var r,i=f(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if(Array.isArray(i.options.container)){var a=document.createElement("div");g(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=o(e,1)[0];i.update(t)})),i):(r=d.error("Container required for toolbar",i.options),f(i,r))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,n=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(n){if(n=n.slice("ql-".length),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[n]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[n])return void d.warn("ignoring attaching to disabled format",n,e);if(null==a.default.query(n))return void d.warn("ignoring attaching to nonexistent format",n,e)}var r="SELECT"===e.tagName?"change":"click";e.addEventListener(r,(function(r){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];l=!u.hasAttribute("selected")&&(u.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),r.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),f=o(c,1)[0];if(null!=t.handlers[n])t.handlers[n].call(t,l);else if(a.default.query(n).prototype instanceof a.default.Embed){if(!(l=prompt("Enter "+n)))return;t.quill.updateContents((new i.default).retain(f.index).delete(f.length).insert(function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}({},n,l)),s.default.sources.USER)}else t.quill.format(n,l,s.default.sources.USER);t.update(f)})),this.controls.push([n,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(n){var r=o(n,2),i=r[0],a=r[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[i])s=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var l=t[i];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function h(e,t,n){var o=document.createElement("button");o.setAttribute("type","button"),o.classList.add("ql-"+t),null!=n&&(o.value=n),e.appendChild(o)}function g(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var n=document.createElement("span");n.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)h(n,e);else{var t=Object.keys(e)[0],o=e[t];Array.isArray(o)?function(e,t,n){var o=document.createElement("select");o.classList.add("ql-"+t),n.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),o.appendChild(t)})),e.appendChild(o)}(n,t,o):h(n,t,o)}})),e.appendChild(n)}))}p.DEFAULTS={},p.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var n=this.quill.getFormat();Object.keys(n).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",s.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t),o=parseInt(n.indent||0);if("+1"===e||"-1"===e){var r="+1"===e?1:-1;"rtl"===n.direction&&(r*=-1),this.quill.format("indent",o+r,s.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),n=this.quill.getFormat(t);"check"===e?"checked"===n.list||"unchecked"===n.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",e,s.default.sources.USER)}}},t.default=p,t.addControls=g},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(28),s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.label.innerHTML=n,o.container.classList.add("ql-color-picker"),[].slice.call(o.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"buildItem",value:function(e){var n=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return n.style.backgroundColor=e.getAttribute("value")||"",n}},{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n);var o=this.label.querySelector(".ql-color-label"),r=e&&e.getAttribute("data-value")||"";o&&("line"===o.tagName?o.style.stroke=r:o.style.fill=r)}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(28),s=function(e){function t(e,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return o.container.classList.add("ql-icon-picker"),[].forEach.call(o.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=n[e.getAttribute("data-value")||""]})),o.defaultItem=o.container.querySelector(".ql-selected"),o.selectItem(o.defaultItem),o}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"selectItem",value:function(e,n){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,n),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function(){function e(t,n){var o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=n||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){o.root.style.marginTop=-1*o.quill.root.scrollTop+"px"})),this.hide()}return o(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,n=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=n+"px",this.root.classList.remove("ql-flip");var o=this.boundsContainer.getBoundingClientRect(),r=this.root.getBoundingClientRect(),i=0;if(r.right>o.right&&(i=o.right-r.right,this.root.style.left=t+i+"px"),r.left<o.left&&(i=o.left-r.left,this.root.style.left=t+i+"px"),r.bottom>o.bottom){var a=r.bottom-r.top,s=e.bottom-e.top+a;this.root.style.top=n-s+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=r},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],o=!0,r=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(o=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);o=!0);}catch(l){r=!0,i=l}finally{try{!o&&s.return&&s.return()}finally{if(r)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=p(n(3)),s=p(n(8)),l=n(43),u=p(l),c=p(n(27)),f=n(15),d=p(n(41));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function m(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var v=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],y=function(e){function t(e,n){h(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=v);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-snow"),o}return m(t,e),i(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default),this.tooltip=new b(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,n){e.handlers.link.call(e,!n.format.link)}))}}]),t}(u.default);y.DEFAULTS=(0,a.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var n=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(n)&&0!==n.indexOf("mailto:")&&(n="mailto:"+n),this.quill.theme.tooltip.edit("link",n)}else this.quill.format("link",!1)}}}}});var b=function(e){function t(e,n){h(this,t);var o=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.preview=o.root.querySelector("a.ql-preview"),o}return m(t,e),i(t,[{key:"listen",value:function(){var e=this;r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var n=e.linkRange;e.restoreFocus(),e.quill.formatText(n,"link",!1,s.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(s.default.events.SELECTION_CHANGE,(function(t,n,r){if(null!=t){if(0===t.length&&r===s.default.sources.USER){var i=e.quill.scroll.descendant(c.default,t.index),a=o(i,2),l=a[0],u=a[1];if(null!=l){e.linkRange=new f.Range(t.index-u,l.length());var d=c.default.formats(l.domNode);return e.preview.textContent=d,e.preview.setAttribute("href",d),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(l.BaseTooltip);b.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=y},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o=q(n(29)),r=n(36),i=n(38),a=n(64),s=q(n(65)),l=q(n(66)),u=n(67),c=q(u),f=n(37),d=n(26),p=n(39),h=n(40),g=q(n(56)),m=q(n(68)),v=q(n(27)),y=q(n(69)),b=q(n(70)),_=q(n(71)),w=q(n(72)),x=q(n(73)),k=n(13),O=q(k),T=q(n(74)),S=q(n(75)),E=q(n(57)),C=q(n(41)),A=q(n(28)),N=q(n(59)),P=q(n(60)),j=q(n(61)),L=q(n(108)),I=q(n(62));function q(e){return e&&e.__esModule?e:{default:e}}o.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":r.AlignClass,"attributors/class/background":f.BackgroundClass,"attributors/class/color":d.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":p.FontClass,"attributors/class/size":h.SizeClass,"attributors/style/align":r.AlignStyle,"attributors/style/background":f.BackgroundStyle,"attributors/style/color":d.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":p.FontStyle,"attributors/style/size":h.SizeStyle},!0),o.default.register({"formats/align":r.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":f.BackgroundStyle,"formats/color":d.ColorStyle,"formats/font":p.FontClass,"formats/size":h.SizeClass,"formats/blockquote":s.default,"formats/code-block":O.default,"formats/header":l.default,"formats/list":c.default,"formats/bold":g.default,"formats/code":k.Code,"formats/italic":m.default,"formats/link":v.default,"formats/script":y.default,"formats/strike":b.default,"formats/underline":_.default,"formats/image":w.default,"formats/video":x.default,"formats/list/item":u.ListItem,"modules/formula":T.default,"modules/syntax":S.default,"modules/toolbar":E.default,"themes/bubble":L.default,"themes/snow":I.default,"ui/icons":C.default,"ui/picker":A.default,"ui/icon-picker":P.default,"ui/color-picker":N.default,"ui/tooltip":j.default},!0),t.default=o.default},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(0),s=(o=a)&&o.__esModule?o:{default:o};function l(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function u(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var c=function(e){function t(){return l(this,t),u(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"add",value:function(e,n){if("+1"===n||"-1"===n){var o=this.value(e)||0;n="+1"===n?o+1:o-1}return 0===n?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,n)}},{key:"canAdd",value:function(e,n){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,n)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(n))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(s.default.Attributor.Class),f=new c("indent","ql-indent",{scope:s.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=f},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(4);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default);s.blotName="blockquote",s.tagName="blockquote",t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=n(4);function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function s(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var l=function(e){function t(){return a(this,t),s(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((o=i)&&o.__esModule?o:{default:o}).default);l.blotName="header",l.tagName=["H1","H2","H3","H4","H5","H6"],t.default=l},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=l(n(0)),a=l(n(4)),s=l(n(25));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),o(t,[{key:"format",value:function(e,n){e!==p.blotName||n?r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,n){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,n),this):(this.parent.unwrap(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,n))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:r(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);d.blotName="list-item",d.tagName="LI";var p=function(e){function t(e){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),o=function(t){if(t.target.parentNode===e){var o=n.statics.formats(e),r=i.default.find(t.target);"checked"===o?r.format("list","unchecked"):"unchecked"===o&&r.format("list","checked")}};return e.addEventListener("touchstart",o),e.addEventListener("mousedown",o),n}return f(t,e),o(t,null,[{key:"create",value:function(e){var n="ordered"===e?"OL":"UL",o=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,n);return"checked"!==e&&"unchecked"!==e||o.setAttribute("data-checked","checked"===e),o}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),o(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,n=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e;var e,t,n}},{key:"insertBefore",value:function(e,n){if(e instanceof d)r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,n);else{var o=null==n?this.length():n.offset(this),i=this.split(o);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var n=this.next;null!=n&&n.prev===this&&n.statics.blotName===this.statics.blotName&&n.domNode.tagName===this.domNode.tagName&&n.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(n.moveChildren(this),n.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var n=i.default.create(this.statics.defaultChild);e.moveChildren(n),this.appendChild(n)}r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);p.blotName="list",p.scope=i.default.Scope.BLOCK_BLOT,p.tagName=["OL","UL"],p.defaultChild="list-item",p.allowedChildren=[d],t.ListItem=d,t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(56);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default);s.blotName="italic",s.tagName=["EM","I"],t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(6);function s(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var u=function(e){function t(){return s(this,t),l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((o=a)&&o.__esModule?o:{default:o}).default);u.blotName="script",u.tagName=["SUB","SUP"],t.default=u},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default);s.blotName="strike",s.tagName="S",t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(6);function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var s=function(e){function t(){return i(this,t),a(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((o=r)&&o.__esModule?o:{default:o}).default);s.blotName="underline",s.tagName="U",t.default=s},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(0),s=(o=a)&&o.__esModule?o:{default:o},l=n(27);function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=["alt","height","width"],d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,l.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(s.default.Embed);d.blotName="image",d.tagName="IMG",t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0});var o,r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},a=n(4),s=n(27),l=(o=s)&&o.__esModule?o:{default:o};function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=["height","width"],d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),r(t,[{key:"format",value:function(e,n){f.indexOf(e)>-1?n?this.domNode.setAttribute(e,n):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,n)}}],[{key:"create",value:function(e){var n=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return n.setAttribute("frameborder","0"),n.setAttribute("allowfullscreen",!0),n.setAttribute("src",this.sanitize(e)),n}},{key:"formats",value:function(e){return f.reduce((function(t,n){return e.hasAttribute(n)&&(t[n]=e.getAttribute(n)),t}),{})}},{key:"sanitize",value:function(e){return l.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);d.blotName="video",d.className="ql-video",d.tagName="IFRAME",t.default=d},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=l(n(35)),a=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),o(t,null,[{key:"create",value:function(e){var n=r(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,n,{throwOnError:!1,errorColor:"#f00"}),n.setAttribute("data-value",e)),n}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);d.blotName="formula",d.className="ql-formula",d.tagName="SPAN";var p=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return f(t,e),o(t,null,[{key:"register",value:function(){a.default.register(d,!0)}}]),t}(s.default);t.FormulaBlot=d,t.default=p},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},i=l(n(0)),a=l(n(5)),s=l(n(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var d=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return f(t,e),o(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),r(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(n(13)).default);d.className="ql-syntax";var p=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),h=function(e){function t(e,n){u(this,t);var o=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));if("function"!=typeof o.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var r=null;return o.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(r),r=setTimeout((function(){o.highlight(),r=null}),o.options.interval)})),o.highlight(),o}return f(t,e),o(t,null,[{key:"register",value:function(){a.default.register(p,!0),a.default.register(d,!0)}}]),o(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(d).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(s.default);h.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=d,t.CodeToken=p,t.default=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,n){Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var o=function e(t,n,o){null===t&&(t=Function.prototype);var r=Object.getOwnPropertyDescriptor(t,n);if(void 0===r){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,n,o)}if("value"in r)return r.value;var a=r.get;return void 0!==a?a.call(o):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),i=f(n(3)),a=f(n(8)),s=n(43),l=f(s),u=n(15),c=f(n(41));function f(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}function h(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var g=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],m=function(e){function t(e,n){d(this,t),null!=n.modules.toolbar&&null==n.modules.toolbar.container&&(n.modules.toolbar.container=g);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.container.classList.add("ql-bubble"),o}return h(t,e),r(t,[{key:"extendToolbar",value:function(e){this.tooltip=new v(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(l.default);m.DEFAULTS=(0,i.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var v=function(e){function t(e,n){d(this,t);var o=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,n));return o.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,n,r){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&r===a.default.sources.USER){o.show(),o.root.style.left="0px",o.root.style.width="",o.root.style.width=o.root.offsetWidth+"px";var i=o.quill.getLines(t.index,t.length);if(1===i.length)o.position(o.quill.getBounds(t));else{var s=i[i.length-1],l=o.quill.getIndex(s),c=Math.min(s.length()-1,t.index+t.length-l),f=o.quill.getBounds(new u.Range(l,c));o.position(f)}}else document.activeElement!==o.textbox&&o.quill.hasFocus()&&o.hide()})),o}return h(t,e),r(t,[{key:"listen",value:function(){var e=this;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var n=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),r=this.root.querySelector(".ql-tooltip-arrow");if(r.style.marginLeft="",0===n)return n;r.style.marginLeft=-1*n-r.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);v.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=v,t.default=m},function(e,t,n){e.exports=n(63)}]).default},{get exports(){return m_},set exports(e){m_=e}}.exports=g_();const v_=h_(m_);
- /*!
- * pinia v2.0.33
- * (c) 2023 Eduardo San Martin Morote
- * @license MIT
- */
- let y_;const b_=e=>y_=e,__=Symbol();function w_(e){return e&&"object"==typeof e&&"[object Object]"===Object.prototype.toString.call(e)&&"function"!=typeof e.toJSON}var x_,k_;(k_=x_||(x_={})).direct="direct",k_.patchObject="patch object",k_.patchFunction="patch function";const O_=()=>{};function T_(e,t,n,o=O_){e.push(t);const r=()=>{const n=e.indexOf(t);n>-1&&(e.splice(n,1),o())};var i;return!n&&qe()&&(i=r,je&&je.cleanups.push(i)),r}function S_(e,...t){e.slice().forEach((e=>{e(...t)}))}function E_(e,t){e instanceof Map&&t instanceof Map&&t.forEach(((t,n)=>e.set(n,t))),e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const o=t[n],r=e[n];w_(r)&&w_(o)&&e.hasOwnProperty(n)&&!en(o)&&!zt(o)?e[n]=E_(r,o):e[n]=o}return e}const C_=Symbol();const{assign:A_}=Object;function N_(e,t,n,o){const{state:r,actions:i,getters:a}=t,s=n.state.value[e];let l;return l=P_(e,(function(){s||(n.state.value[e]=r?r():{});const t=function(e){const t=S(e)?new Array(e.length):{};for(const n in e)t[n]=cn(e,n);return t}(n.state.value[e]);return A_(t,i,Object.keys(a||{}).reduce(((t,o)=>(t[o]=Xt(yi((()=>{b_(n);const t=n._s.get(e);return a[o].call(t,t)}))),t)),{}))}),t,n,o,!0),l}function P_(e,t,n={},o,r,i){let a;const s=A_({actions:{}},n),l={deep:!0};let u,c,f,d=Xt([]),p=Xt([]);const h=o.state.value[e];let g;function m(t){let n;u=c=!1,"function"==typeof t?(t(o.state.value[e]),n={type:x_.patchFunction,storeId:e,events:f}):(E_(o.state.value[e],t),n={type:x_.patchObject,payload:t,storeId:e,events:f});const r=g=Symbol();Tn().then((()=>{g===r&&(u=!0)})),c=!0,S_(d,n,o.state.value[e])}i||h||(o.state.value[e]={}),tn({});const v=i?function(){const{state:e}=n,t=e?e():{};this.$patch((e=>{A_(e,t)}))}:O_;function y(t,n){return function(){b_(o);const r=Array.from(arguments),i=[],a=[];function s(e){i.push(e)}function l(e){a.push(e)}let u;S_(p,{args:r,name:t,store:b,after:s,onError:l});try{u=n.apply(this&&this.$id===e?this:b,r)}catch(c){throw S_(a,c),c}return u instanceof Promise?u.then((e=>(S_(i,e),e))).catch((e=>(S_(a,e),Promise.reject(e)))):(S_(i,u),u)}}const b=Ft({_p:o,$id:e,$onAction:T_.bind(null,p),$patch:m,$reset:v,$subscribe(t,n={}){const r=T_(d,t,n.detached,(()=>i())),i=a.run((()=>Gn((()=>o.state.value[e]),(o=>{("sync"===n.flush?c:u)&&t({storeId:e,type:x_.direct,events:f},o)}),A_({},l,n))));return r},$dispose:function(){a.stop(),d=[],p=[],o._s.delete(e)}});o._s.set(e,b);const _=o._e.run((()=>(a=Ie(),a.run((()=>t())))));for(const k in _){const t=_[k];if(en(t)&&(!en(x=t)||!x.effect)||zt(t))i||(!h||w_(w=t)&&w.hasOwnProperty(C_)||(en(t)?t.value=h[k]:E_(t,h[k])),o.state.value[e][k]=t);else if("function"==typeof t){const e=y(k,t);_[k]=e,s.actions[k]=t}}var w,x;return A_(b,_),A_(Kt(b),_),Object.defineProperty(b,"$state",{get:()=>o.state.value[e],set:e=>{m((t=>{A_(t,e)}))}}),o._p.forEach((e=>{A_(b,a.run((()=>e({store:b,app:o._a,pinia:o,options:s}))))})),h&&i&&n.hydrate&&n.hydrate(b.$state,h),u=!0,c=!0,b}function j_(e,t,n){let o,r;const i="function"==typeof t;function a(e,n){const a=ui();(e=e||a&&Yn(__,null))&&b_(e),(e=y_)._s.has(o)||(i?P_(o,t,r,e):N_(o,r,e));return e._s.get(o)}return"string"==typeof e?(o=e,r=i?n:t):(r=e,o=e.id),a.$id=o,a}function L_(e){{e=Kt(e);const t={};for(const n in e){const o=e[n];(en(o)||zt(o))&&(t[n]=cn(e,n))}return t}}const I_=function(){const e=Ie(!0),t=e.run((()=>tn({})));let n=[],o=[];const r=Xt({install(e){b_(r),r._a=e,e.provide(__,r),e.config.globalProperties.$pinia=r,o.forEach((e=>n.push(e))),o=[]},use(e){return this._a?n.push(e):o.push(e),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}(),q_=e=>{var t,n,o=new Array("零","壹","贰","叁","肆","伍","陆","柒","捌","玖"),r=new Array("","拾","佰","仟"),i=new Array("","万","亿","兆"),a=new Array("角","分","毫","厘"),s="";if(!e)return"";if((e=parseFloat(e))>=1e15)return"超出最大处理数字";if(0==e)return s=o[0]+"元整";if(t=(e=Math.round(100*e).toString()).substr(0,e.length-2),n=e.substr(e.length-2),parseInt(t,10)>0){for(var l=0,u=t.length,c=0;c<u;c++){var f=u-c-1,d=f/4,p=f%4;"0"==(g=t.substr(c,1))?l++:(l>0&&(s+=o[0]),l=0,s+=o[parseInt(g)]+r[p]),0==p&&l<4&&(s+=i[d])}s+="元"}if(""!=n){var h=n.length;for(c=0;c<h;c++){var g;"0"!=(g=n.substr(c,1))&&(s+=o[Number(g)]+a[c])}}return""==s?s+=o[0]+"元整":(""==n||/^0*$/.test(n))&&(s+="整"),s},M_=(e,t)=>{t<9e10&&(t*=1e3);var n=t?new Date(t):new Date,o=function(e,t){return(e+="").length<t?new Array(++t-e.length).join("0")+e:e},r=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],i={1:"st",2:"nd",3:"rd",21:"st",22:"nd",23:"rd",31:"st"},a=["","January","February","March","April","May","June","July","August","September","October","November","December"],s={d:function(){return o(s.j(),2)},D:function(){return s.l().substr(0,3)},j:function(){return n.getDate()},l:function(){return r[s.w()]},N:function(){return s.w()+1},S:function(){return i[s.j()]?i[s.j()]:"th"},w:function(){return n.getDay()},z:function(){return(n-new Date(n.getFullYear()+"/1/1"))/864e5>>0},W:function(){var e,t=s.z(),o=364+s.L()-t,r=(new Date(n.getFullYear()+"/1/1").getDay()||7)-1;return o<=2&&(n.getDay()||7)-1<=2-o?1:t<=2&&r>=4&&t>=6-r?(e=new Date(n.getFullYear()-1+"/12/31"),M_("W",Math.round(e.getTime()/1e3))):1+(r<=3?(t+r)/7:(t-(7-r))/7)>>0},F:function(){return a[s.n()]},m:function(){return o(s.n(),2)},M:function(){return s.F().substr(0,3)},n:function(){return n.getMonth()+1},t:function(){var e;return 2===(e=n.getMonth()+1)?28+s.L():1&e&&e<8||!(1&e)&&e>7?31:30},L:function(){var e=s.Y();return 3&e||!(e%100)&&e%400?0:1},Y:function(){return n.getFullYear()},y:function(){return(n.getFullYear()+"").slice(2)},a:function(){return n.getHours()>11?"pm":"am"},A:function(){return s.a().toUpperCase()},B:function(){var e=60*(n.getTimezoneOffset()+60),t=3600*n.getHours()+60*n.getMinutes()+n.getSeconds()+e,o=Math.floor(t/86.4);return o>1e3&&(o-=1e3),o<0&&(o+=1e3),1===String(o).length&&(o="00"+o),2===String(o).length&&(o="0"+o),o},g:function(){return n.getHours()%12||12},G:function(){return n.getHours()},h:function(){return o(s.g(),2)},H:function(){return o(n.getHours(),2)},i:function(){return o(n.getMinutes(),2)},s:function(){return o(n.getSeconds(),2)},O:function(){var e=o(Math.abs(n.getTimezoneOffset()/60*100),4);return e=n.getTimezoneOffset()>0?"-"+e:"+"+e},P:function(){var e=s.O();return e.substr(0,3)+":"+e.substr(3,2)},c:function(){return s.Y()+"-"+s.m()+"-"+s.d()+"T"+s.h()+":"+s.i()+":"+s.s()+s.P()},U:function(){return Math.round(n.getTime()/1e3)}};let l="";return e.replace(/[\\]?([a-zA-Z])/g,(function(e,t){return l=e!==t?t:s[t]?s[t]():t,l}))},B_={bgAvatar:e=>1!==e&&e?2===e?"bg-orange":3===e?"bg-red":4===e?"bg-green":5===e?"bg-grey":void 0:"bg-blue",fromTime:e=>{e>9e10&&(e/=1e3);let t=new Date;t.getDate();let n=60*t.getHours()*60+60*t.getMinutes()+t.getSeconds();M_("H",e),M_("i",e);let o=(new Date).getTime(),r=parseInt(o/1e3-e);return r<60?"刚刚":r>=60&&r<3600?Math.floor(r/60)+"分钟前":r>=3600&&r<=n?Math.floor(r/3600)+"小时前":r>n&&r<n+86400?"昨天":r>=86400&&r<2592e3?parseInt(r/86400)+"天前":M_("Y/m/d",e)},overTime:e=>{for(var t=(e+"").split(""),n=0;n<13;n++)t[n]||(t[n]="0");e=1*t.join("");var o=36e5,r=24*o,i=(new Date).getTime()-e;if(i<0)return"不久前";var a,s=i/2592e6,l=i/(7*r),u=i/r,c=i/o,f=i/6e4,d=function(e){return e<10?"0"+e:e};if(s>12)return(a=new Date(e)).getFullYear()+"年"+d(a.getMonth()+1)+"月"+d(a.getDate())+"日";if(s>=1)return"已过期"+parseInt(s)+"月";if(l>=1)return"已过期"+parseInt(l)+"周";if(u>=1)return"已过期"+parseInt(u)+"天";if(c>=1)return"已过期"+parseInt(c)+"小时";if(f>=1)return"已过期";if(f<1)return parseInt(f)+"分钟后过期";if(c<1)return parseInt(c)+"小时后过期";if(u<1)return parseInt(u)+"天后过期";if(l<1){var p=new Date(e);return p.getFullYear()+"年"+d(p.getMonth()+1)+"月"+d(p.getDate())+"日"}},setFrom:(e,t,n,o)=>(e.forEach((e=>{if(e.rules={errMess:`${e.name}不能为空`},e.relevant&&e.form_type==e.relevant&&(e.disabled=!0),"money"===e.form_type&&(e.default_value?e.capitalize=q_(e.default_value):e.capitalize=null),"tags"!==e.form_type&&"select"!==e.form_type&&"invoice_info"!==e.form_type&&"pm_type"!==e.form_type&&"finance_type"!==e.form_type&&"visit_user"!==e.form_type&&"area"!==e.form_type||(e.show=!1),e.setting)if(e.list=[],e.setting instanceof Array)e.setting.forEach(((t,n)=>{e.list.push({value:n,label:t})}));else for(let t in e.setting)e.list.push({value:t,label:e.setting[t]});if("select"===e.form_type&&e.default_value&&e.setting&&e.list.forEach((t=>{t.value==e.default_value&&(e.value=t.label)})),"business"==e.form_type&&"add"==n&&(e.default_value=t.leads_id,e.value=t.name,e.disabled=!0),"customer"==e.form_type&&t&&"add"==n?(e.default_value=t.name,e.value=t.leads_id,e.disabled=!0):("business"==e.form_type&&"edit"==n||"customer"==e.form_type&&t&&"add"==n||"customer"==e.form_type&&t&&"edit"==n)&&(e.default_value=e.value,e.value=e.default_value,e.disabled=!0),"company"==e.field&&"edit"==n&&(e.disabled=!0),"project"!=e.form_type||"add"!=n||t||(e.disabled=!0),"project"==e.form_type&&"add"==n&&o&&(console.log(o),e.disabled=!0,e.default_value=o.project_id,e.value=o.title),"receivable"==e.form_type&&("add"!=n||o||(e.disabled=!0),""!=e.default_value)){let t=e.value.map((e=>e.receivables_id));Tv("relationReceivableId",t),e.default_value=t.join(""),e.value=e.value.map((e=>e.number))}"user_receivables"==e.form_type&&(e.value&&e.value.forEach(((t,n)=>{e.default_value[n].realname=e.value[n].user_id_info.realname})),e.value||(e.default_value=[],e.default_value.push({realname:"",user_id:"",proportion:""})))})),e),setPmType:e=>{let t=[];return e.forEach(((e,n)=>{t.push({label:e.name,value:e.type_id}),e.children&&(t[n].children=[],e.children.forEach(((o,r)=>{t[n].children.push({label:o.name,value:o.type_id}),e.children[r].children&&(t[n].children[r].children=[],e.children[r].children.forEach(((e,o)=>{t[n].children[r].children.push({label:e.name,value:e.type_id})})))})))})),t},judgeListComplete:e=>{let t="";return e.every((e=>{for(let n in e)t=""!=e[n]||""})),t},judgeobjduplicate:e=>{let t="",n=0;return e.forEach((e=>{n+=parseInt(e.proportion)})),t=!(n>=100),t},getUuid:()=>{var e=(new Date).getTime();return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var n=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==t?n:3&n|8).toString(16)}))},findArray:(e,t)=>e.find((function(e){var n=e.id;return t==n})),sortContacts:e=>{const t=JSON.parse(JSON.stringify(e));return t.sort((function(e,t){return parseInt(t.lastSendTime)-parseInt(e.lastSendTime)})),t},menoyToUppercase:q_,filterValue:(e,t,n)=>{n=void 0!==n&&n;for(var o=[],r=0;r<e.length;r++)o.push(e[r][t]);return!0===n?o.join(","):o},date:M_,timeFormat:e=>{const t=new Date,n=new Date(e),o=new Date(t.getFullYear(),t.getMonth(),t.getDate()),r=new Date(o-864e5),i=new Date(o-24*(o.getDay()-1)*60*60*1e3),a=new Date(t.getFullYear(),0,1);if(n>=o)return M_("H:i",e/1e3);if(n>=r&&n<o)return"昨天";if(n>=i&&n<r){return["周日","周一","周二","周三","周四","周五","周六"][n.getDay()]}return M_(n>=a&&n<i?"m-d":"Y-m-d",e/1e3)},isToday:e=>(new Date).getTime()-e<864e5,getFileSize:e=>{let t=new Array(" B"," KB"," MB"," GB"," TB"),n=e+"B";for(let o=0;e>=1024&&o<4;o++)n=(e/=1024).toFixed(2)+t[o+1];return n},parseUrl:e=>{var t=e.substring(e.indexOf("?")+1).split("&"),n={};for(let o=0;o<t.length;o++)n[t[o].split("=")[0]]=decodeURI(t[o].split("=")[1]);return n},getDom:(e,t)=>{let n={};const o=Od().in(e);return setTimeout((()=>{o.select(t).boundingClientRect(),o.exec((e=>{n=e[0]}))}),10),n},findObjectByField:(e,t,n,o)=>{const r=e.find((e=>e.field==n));return r?o?r[o]:r:null},searchObject:(e,t,n)=>{if("object"!=typeof e)return!1;for(var o=[],r=0;e.length>r;r++){if("object"==typeof t)for(var i=0;t.length>i;i++){var a=t[i];if(-1!=e[r][a].indexOf(n)){o.push(e[r]);break}}else-1!=e[r][t].indexOf(n)&&o.push(e[r])}return o},mergeArrays:(e,t)=>{const n=e.concat(t),o=new Set(n.map(JSON.stringify));return Array.from(o).map(JSON.parse)},intersection:(e,t)=>{const n=new Set(e.map(JSON.stringify));return t.filter((e=>n.has(JSON.stringify(e))))},difference:(e,t)=>{const n=new Set(t.map(JSON.stringify));return e.filter((e=>!n.has(JSON.stringify(e))))},getMsgType:(e,t)=>{let n="[暂不支持的消息类型]";switch(e){case"image":n="[图片]";break;case"voice":n="[语音]";break;case"video":n="[视频]";break;case"file":n="[文件]";break;case"webrtc":n=t?"[正在请求与您视频通话]":"[正在请求与您语音通话]"}return n}},R_=j_({id:"message",state:()=>({pushSocket:"",chatSocket:"",instantSocket:"",webrtc:"",topContacts:[],contacts:[],chatList:[],wsSendData:"",unread:0,sysUnread:0,msgAt:0,newMessage:{},msgList:[],webrtcLock:!1}),actions:{catchSocketAction(e){this.chatSocket=e,2==e.is_group&&(this.unread+=1)},updateUnread(e){this.unread=parseInt(e)},setLastContent(e){switch(e.type){case"image":e.lastContent="[图片]";break;case"video":e.lastContent="[视频]";break;case"file":e.lastContent="[文件]";break;case"voice":e.lastContent="[语音]";break;case"webrtc":e.lastContent="[音视频通话]"}return e},initContacts(e){let t=B_.sortContacts(e),n=[],o=[],r=0,i=0;t.forEach(((e,t)=>{e.lastContent&&1==e.is_notice&&(r+=e.unread),e.is_at&&(i+=e.is_at),"群聊"==(e=this.setLastContent(e)).index&&(e.index="#"),1==e.is_top?n.push(e):o.push(e)})),this.unread=r,this.msgAt=i,this.contacts=n.concat(o),Tv("allContacts",this.contacts)},updateContacts(e){const t=this.contacts;t.forEach(((n,o)=>{let r=t[o];n.id==e.id&&(t[o]=Object.assign(r,e))})),this.initContacts(t)},appendContacts(e){const t=this.contacts;if(t.filter((t=>t.id==e.id)).length>0)return this.updateContacts(e);t.push(e),this.initContacts(t)},deleteContacts(e){const t=JSON.parse(JSON.stringify(this.contacts)).filter((t=>t.id!=e.id));this.contacts=t,Tv("allContacts",this.contacts)},initMsg(e){this.msgList=e},checkMsg(e){let t=this.msgList,n=!1;t.forEach(((t,o)=>{t.id==e.id&&(n=!0)})),n||this.msgList.push(e)},getContact(e){let t=Ev("allContacts");if(e){return t.find((t=>t.id==e))}return t},getChatList(){let e=Ev("allContacts");return this.chatList=e.filter((e=>e.lastContent)),this.chatList},appendMsg(e){this.newMessage=e},wsSend(e){this.wsSendData=e}}});class D_{constructor(){this.handlers=[],this.forEach={asc:e=>{for(let t=0,n=this.handlers.length;t<n;t++)null!==this.handlers[t]&&e(this.handlers[t])},desc:e=>{for(let t=this.handlers.length-1;t>=0;t--)null!==this.handlers[t]&&e(this.handlers[t])}}}use(e,t){return this.handlers.push({fulfilled:e,rejected:t}),this.handlers.length-1}eject(e){this.handlers[e]&&(this.handlers[e]=null)}}const $_=Object.prototype.toString;function F_(e){return"[object Array]"===$_.call(e)}function U_(e){return"[object Object]"===$_.call(e)}function H_(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),F_(e))for(let n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.call(null,e[n],n,e)}function z_(...e){const t={};for(let n=0,o=e.length;n<o;n++)U_(e[n])&&H_(e[n],((e,n)=>{t[n]=V_(t[n],e)}));return t}function V_(e,t){return U_(e)&&U_(t)?z_(e,t):U_(t)?z_({},t):F_(t)?t.slice():t}function W_(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Y_(e,t){let n;const o=[];if(H_(t,((e,t)=>{null!=e&&(F_(e)?t+="[]":e=[e],H_(e,(e=>{null!==e&&"object"==typeof e&&(e=JSON.stringify(e)),o.push(W_(t)+"="+W_(e))})))})),n=o.join("&"),n){const t=e.indexOf("#");-1!==t&&(e=e.slice(0,t)),e+=(-1===e.indexOf("?")?"?":"&")+n}return e}function K_({baseURL:e,url:t,params:n,query:o}={}){let r=function(e="",t=""){return/^https?:\/\//.test(t)?t:t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}(e,t);return n||o?(n&&(/\/:/.test(r)?H_(n,((e,t)=>{r=r.replace(`/:${t}`,`/${W_(String(e))}`)})):o||(r=Y_(r,n))),o&&(r=Y_(r,o)),r):r}function X_(e){return["success","fail","complete"].includes(e)}function G_(e,t,n){let o=null;const r={},i="object"==typeof e;return H_(i?e:{...n,url:e,data:t},((e,t)=>{var n;i&&X_(t)?(o||(o={}))[t]=(n=e,function(...e){try{return n.apply(n,e)}catch(t){console.error(t)}}):r[t]=e})),{callback:o,config:r}}function Z_(e={},t={}){const n={};return H_(Object.keys({...e,...t}),(o=>{void 0!==t[o]?n[o]=V_(e[o],t[o]):void 0!==e[o]&&(n[o]=V_(void 0,e[o]))})),n}async function J_(...e){let t={};for(let n=0,o=e.length;n<o;n++){t=Z_(t,"function"==typeof e[n]?await e[n]():e[n])}return t.method=t.method.toUpperCase(),t}const Q_=["get","post","put","delete","connect","head","options","trace"],ew=["common",...Q_],tw={adapter:function(e,t){return new Promise(((n,o)=>{var r;if(t.aborted)return o({config:e,errMsg:"request:fail abort"});t.task=ty({...e,complete:t=>{const r={config:e,...t};!e.validateStatus||e.validateStatus(t.statusCode)?n(r):o(r)}}),t.onHeadersReceived(),t.offHeadersReceived(),null==(r=e.xhr)||r.call(e,t.task,e)}))},header:{},method:"GET",validateStatus:e=>e>=200&&e<300};function nw(e){return t=>(t.url=K_(t),t.method=(t.method||"get").toUpperCase(),t.header=z_(t.header.common,t.header[t.method.toLowerCase()],t.header),H_(ew,(e=>U_(t.header[e])&&delete t.header[e])),H_(t,((e,n)=>X_(n)&&delete t[n])),t.adapter(t,e))}H_(ew,(e=>tw.header[e]={}));const ow=Symbol("$$cancel");function rw(e){return null!=e&&Object.prototype.hasOwnProperty.call(e,ow)}function iw(e){return Promise.reject({[ow]:e})}function aw(e){return Promise.reject(rw(e)?e[ow]:e)}function sw(e){const t="object"==typeof e?z_(e):e;function n(...t){const{callback:o,config:r}=G_(...t),i=function(){const e=function e(t){return Reflect.construct(Promise,[t],e)};return Object.setPrototypeOf(e,Promise),(e.prototype=Object.create(Promise.prototype)).constructor=e,e.task=null,e.aborted=!1,e.onHeadersReceivedCallback=null,e.offHeadersReceivedCallback=null,e.onHeadersReceived=function(t){var n,o;"function"==typeof t&&(e.onHeadersReceivedCallback=t),e.onHeadersReceivedCallback&&e.task&&(null==(o=(n=e.task).onHeadersReceived)||o.call(n,e.onHeadersReceivedCallback))},e.offHeadersReceived=function(t){var n,o;"function"==typeof t&&(e.offHeadersReceivedCallback=t),e.offHeadersReceivedCallback&&e.task&&(null==(o=(n=e.task).offHeadersReceived)||o.call(n,e.offHeadersReceivedCallback))},e.prototype.abort=function(){var t;return e.aborted=!0,null==(t=e.task)||t.abort(),this},e.prototype.onHeadersReceived=function(t){return e.onHeadersReceived(t),this},e.prototype.offHeadersReceived=function(t){return e.offHeadersReceived(t),this},e}(),a=[nw(i),iw];n.interceptors.request.forEach.desc((({fulfilled:e,rejected:t})=>a.unshift(e,t))),n.interceptors.response.forEach.asc((({fulfilled:e,rejected:t})=>a.push(e,function(e){return e&&(t=>rw(t)?Promise.reject(t):e(t))}(t)))),a.unshift((t=>J_(tw,e,t)),void 0),a.push(void 0,aw),a.push((e=>{var t,n;if(!o)return e;null==(t=o.success)||t.call(o,e),null==(n=o.complete)||n.call(o,e)}),(e=>{var t,n;if(!o)return Promise.reject(e);null==(t=o.fail)||t.call(o,e),null==(n=o.complete)||n.call(o,e)}));let s=i.resolve(r);for(;a.length;)s=s.then(a.shift(),a.shift());return s}return n.config=Object.freeze(t),n.defaults=tw,n.interceptors={request:new D_,response:new D_},n.getURL=async function(t){return K_(await J_(tw,e,t)).replace(/^\?/,"")},H_(Q_,(e=>{n[e]=function(t,o,r){return"string"==typeof t?n(t,o,{...r,method:e}):n({...t,method:e})}})),n}const lw=sw();lw.create=function(e){return sw(e)};const uw={apiUrl:"https://im.raingad.com",wssUrl:"wss://im.raingad.com/wss",now:Date.now||function(){return(new Date).getTime()},isArray:Array.isArray||function(e){return e instanceof Array}},cw=lw.create({baseURL:uw.apiUrl,timeout:1e4});cw.interceptors.request.use((e=>e),(e=>($y({title:"网络超时!",icon:"none"}),e))),cw.interceptors.response.use((e=>{const t=e.data;let n=t.msg;return n&&([400,401,402,403,404,405,502,500].includes(t.code)||0==t.code?$y({title:n,icon:"none",duration:2500}):-1==t.code&&$y({title:n,icon:"none",duration:2500,success(){setTimeout((()=>{yy({url:"/pages/login/index"})}),1e3)}})),t}),(e=>{switch(e.statusCode){case 401:Ny({title:"提示",content:"授权信息已经失效,请重新登录!",success:e=>{e.confirm&&yy({url:"/pages/login/index"})},fail:e=>{console.log("fail")}});break;case 500:$y({title:"服务器返回错误,请检查!",icon:"none",duration:2500});break;default:$y({title:e.errMsg,icon:"none",duration:2500})}return e}));const fw=uw.apiUrl,dw=(e,t)=>cw({method:"post",url:`${e}`,data:t,header:{"Content-Type":"application/json",Authorization:Ev("authToken"),clientId:Ev("client_id"),cid:Ev("cid")}});let pw={login:e=>dw("/common/Pub/login",e),logout:e=>dw("/common/Pub/logout",e),register:e=>dw("/common/pub/register",e),bindUid:e=>dw("/common/Pub/bindUid",e),bindGroup:e=>dw("common/pub/bindGroup",e),getSystemInfo:e=>dw("/common/pub/getSystemInfo",e),sendCode:e=>dw("/common/pub/sendCode",e)};const hw=j_({id:"login",state:()=>({userInfo:Ev("userInfo")?Ev("userInfo"):{},globalConfig:Ev("globalConfig")?Ev("globalConfig"):[],appSetting:Ev("appSetting")?Ev("appSetting"):[],multiport:!1}),actions:{login(e){Tv("userInfo",e),this.userInfo=e,Mf("socketStatus",!0)},logout(){Cv("userInfo"),Cv("authToken"),this.userInfo={},yy({url:"/pages/login/index"})},getGlobalConfig(){pw.getSystemInfo().then((e=>{this.globalConfig=e.data,Tv("globalConfig",e.data)}))},setAppSetting(e){Tv("appSetting",e),this.appSetting=e}}}),gw=R_(I_),mw=hw(I_),vw={onLaunch:function(){let e=Ev("appSetting")??"";e?mw.setAppSetting(e):mw.setAppSetting({voiceStatus:!0,vibrateStatus:!1,circleAvatar:!1}),mw.getGlobalConfig(),mv({success:function(e){let t=0;const{appContext:n}=ui();n.config.globalProperties.StatusBar=e.statusBarHeight,"android"==e.platform?n.config.globalProperties.CustomBar=e.statusBarHeight+50:n.config.globalProperties.CustomBar=e.statusBarHeight+45,t=Nf(100),n.config.globalProperties.inlineTools=t,n.config.globalProperties.navBarHeight=Nf(100)}})},onUnload(){this.scoketClose(),this.socketIo.traderDetailIndex=100},onShow:function(){this.socketIo.checkStatus()||(console.log("ws断线了,重新链接!"),Mf("socketStatus",!1),this.getWebsocketData()),this.appStatus=!0,console.log("App Show")},methods:{isRunning(){keepAlive.isRunning((e=>{e.isRunning?console.info("保活组件运行中"):this.restart()}))},restart(){keepAlive.restart((e=>{console.info("重启成功!")}))},register(){keepAlive.register({channelId:"Ba-KeepAlive",channelName:"Ba-KeepAlive",title:"消息服务正在运行中",content:"用于接收消息的常驻通知,请保留!"},(e=>{console.log("保活注册成功")}))},scoketClose(){this.socketIo.connectNum=1;this.socketIo.send({type:"close"}),this.socketIo.Close()},getWebsocketData(){Ev("userInfo");this.socketIo.connectSocketInit({type:"ping"}),qf("getPositonsOrder"),If("getPositonsOrder",(e=>{var t=Ev("userInfo");let n=e.data;switch(this.connect=!0,e.type){case"ping":this.socketIo.send({type:"pong"});break;case"pong":mw.$patch({multiport:e.multiport});break;case"init":Tv("client_id",e.client_id),t&&this.$api.LoginApi.bindUid({client_id:e.client_id,user_id:t.user_id,cid:Ev("cid")}).then((e=>{this.socketIo.send({type:"bindUid",user_id:t.user_id,token:Ev("authToken")})})).catch((e=>{}));break;case"isOnline":gw.updateContacts({id:n.id,is_online:n.is_online}),n.is_online||gw.webrtcLock!=n.id||(gw.webrtcLock=!1);break;case"offline":let o=Ev("client_id");n.id==t.user_id&&n.client_id!=o&&n.isMobile&&($y({title:"您的账号在其他地方登录,已被迫下线!",icon:"none",duration:2500}),mw.logout());break;case"simple":case"group":if(n.fromUser.id!=t.user_id){const e=gw.getContact(n.toContactId);"system"!=n.toContactId&&1!=e.is_notice||this.playSound()}this.appendMessage(e);break;case"setChatTop":gw.updateContacts({id:n.id,is_top:n.is_top});break;case"setIsNotice":gw.updateContacts({id:n.id,is_notice:n.is_notice});break;case"addGroup":gw.appendContacts(n),this.$api.LoginApi.bindGroup({client_id:Ev("client_id"),group_id:n.id});break;case"setManager":case"addGroupUser":case"removeUser":"removeUser"==e.type&&n.user_id==t.user_id?gw.deleteContacts({id:n.group_id}):(gw.updateContacts({id:n.group_id,avatar:n.avatar}),Mf("updateGroup",e));break;case"editGroupName":gw.updateContacts({id:n.id,displayName:n.displayName});break;case"removeGroup":gw.deleteContacts({id:n.group_id});break;case"setNotice":gw.updateContacts({id:n.group_id,notice:n.notice});break;case"groupSetting":gw.updateContacts({id:n.group_id,setting:n.setting});break;case"appendContact":gw.appendContacts(n);break;case"webrtc":if(n.fromUser.id==t.user_id&&([902,903,905,906,907].includes(parseInt(n.extends.code))&&(gw.webrtcLock=!1),1==n.extends.isMobile||"calling"==n.extends.event))return void("calling"==n.extends.event&&this.appendMessage(e));if("offer"==n.extends.event||"answer"==n.extends.event?gw.webrtcLock=!0:"hangup"==n.extends.event&&(gw.webrtcLock=!1),"calling"==n.extends.event){this.appendMessage(e);const t=gm();"pages/message/call"==t[t.length-1].route?this.$api.msgApi.sendToMsg({toContactId:n.fromUser.user_id,type:n.extends.type,event:"busy",status:n.extends.status,code:907,id:n.id,msg_id:n.msg_id}):(gw.webrtcLock=n.fromUser.user_id,my({url:"/pages/message/call?msg_id="+n.id+"&type="+n.extends.type+"&status="+n.extends.status+"&id="+n.fromUser.user_id+"&name="+n.fromUser.realname+"&avatar="+encodeURI(n.fromUser.avatar)}))}else Mf("webrtcConn",n)}})),If("connectError",(()=>{this.connect=!1,this.scoketError=!0,Mf("socketStatus",!1)}))},appendMessage(e){let t=e.data,n=Ev("userInfo"),o=t.toContactId;t.toContactId==n.user_id&&(o=t.toUser);let r=gw.getContact(o);if("system"==t.toContactId)gw.$patch({sysUnread:gw.sysUnread+=1});else{let o=1;t.fromUser.id==n.user_id&&(o=0);let i=0;if(t.at.includes(n.user_id)&&(i=1),r)r.lastContent=t.content,r.lastSendTime=1e3*t.sendTime,r.type=t.type,r.unread+=o,r.is_at+=i,gw.updateContacts(r);else{let e={id:t.toContactId,displayName:t.fromUser.displayName,avatar:t.fromUser.avatar,lastContent:t.content,lastSendTime:1e3*t.sendTime,is_group:t.is_group,unread:o,is_top:0,dep_id:0,is_at:i};gw.appendContacts(e)}gw.catchSocketAction(e)}},createPushMsg(e,t){console.info("创建通知栏");let n=e.content.replace(/<[^>]+>/g,"");if("text"!=e.type){let t=e.extends.type??0;n=this.$util.getMsgType(e.type,t)}1==e.is_group&&(n=e.fromUser.displayName+":"+n);let o={title:t.displayName,content:n,payload:e},r=gv();"android"===r.platform?iy({url:t.avatar,success:e=>{200===e.statusCode&&(o.icon=e.tempFilePath,uni.createPushMessage(o))}}):"ios"===r.platform&&uni.createPushMessage(o)},playSound(){let e=Ev("appSetting")??"";if(e.voiceStatus){let e=this;const t=nv();t.autoplay=!0,t.src="https://file.lcoce.com/static/v5/voice/notice.wav",t.onError((e=>{})),t.onStop((t=>{e.$forceUpdate()}))}e.vibrateStatus&&kv({success:function(){console.log("手机震动")}})}},onHide:function(){this.appStatus=!1,console.log("App Hide")}};Um(vw,{init:$m,setup(e){const t=nm(),n=()=>{var n;n=e,Object.keys(Pd).forEach((e=>{Pd[e].forEach((t=>{Ao(e,t,n)}))}));const{onLaunch:o,onShow:r,onPageNotFound:i,onError:a}=e,s=function({path:e,query:t}){return x(Op,{path:e,query:t}),x(Tp,Op),x({},Op)}({path:t.path.slice(1)||__uniRoutes[0].meta.route,query:ye(t.query)});if(o&&K(o,s),r&&K(r,s),!t.matched.length){const e={notFound:!0,openType:"appLaunch",path:t.path,query:{},scene:1001};i&&K(i,e)}a&&(e.appContext.config.errorHandler=e=>{K(a,e)})};return Yn(el).isReady().then(n),jo((()=>{window.addEventListener("resize",we(zm,50,{setTimeout:setTimeout,clearTimeout:clearTimeout})),window.addEventListener("message",Vm),document.addEventListener("visibilitychange",Wm),function(){let e=null;try{e=window.matchMedia("(prefers-color-scheme: dark)")}catch(t){}if(e){let t=e=>{db.emit("onThemeChange",{theme:e.matches?"dark":"light"})};e.addEventListener?e.addEventListener("change",t):e.addListener(t)}}()})),t.query},before(e){e.mpType="app";const{setup:t}=e,n=()=>(Dr(),zr(cb));e.setup=(e,o)=>{const r=t&&t(e,o);return N(r)?n:r},e.render=n}});const yw=(e,t)=>{const n=e.__vccOpts||e;for(const[o,r]of t)n[o]=r;return n};const bw=yw({data(){return{StatusBar:this.StatusBar,CustomBar:this.CustomBar}},name:"custom",computed:{style(){var e=this.StatusBar,t=this.CustomBar,n=this.bgImage,o=`height:${t}px;padding-top:${e}px;`;return this.bgImage&&(o=`${o}background-image:url(${n});`),o}},props:{bgColor:{type:String,default:""},isBack:{type:[Boolean,String],default:!1},bgImage:{type:String,default:""}},methods:{BackPage(){const e=gm();if("pages/message/chat"!=e[e.length-1].route){if(e.length<2&&"undefined"!=typeof __wxConfig){let e="/"+__wxConfig.pages[0];return vy({url:e})}hy({delta:1})}else _y({url:"/pages/index/index"})}}},[["render",function(e,t,n,r,i,a){const s=Lg,u=Rg;return Dr(),zr(u,null,{default:$n((()=>[Zr(u,{class:"cu-custom",style:o([{height:i.CustomBar+"px"}])},{default:$n((()=>[Zr(u,{class:l(["cu-bar fixed",[""!=n.bgImage?"none-bg text-white bg-img":"",n.bgColor]]),style:o(a.style)},{default:$n((()=>[n.isBack?(Dr(),zr(u,{key:0,class:"action",onClick:a.BackPage},{default:$n((()=>[Zr(s,{class:"cuIcon-back"}),Xo(e.$slots,"backText")])),_:3},8,["onClick"])):(Dr(),zr(u,{key:1,class:"action"},{default:$n((()=>[Xo(e.$slots,"backText")])),_:3})),Zr(u,{class:"content",style:o([{top:i.StatusBar+"px"}])},{default:$n((()=>[Xo(e.$slots,"content")])),_:3},8,["style"]),Zr(u,{class:"right"},{default:$n((()=>[Xo(e.$slots,"right")])),_:3})])),_:3},8,["style","class"])])),_:3},8,["style"])])),_:3})}]]);let _w={};_w.uploadUrl=fw+"/common/upload/uploadFile",_w.uploadAvatar=fw+"/common/upload/uploadAvatar",_w.initContacts=e=>dw("/enterprise/im/getContacts",e),_w.getMessageList=e=>dw("/enterprise/im/getMessageList",e),_w.setChatTopAPI=e=>dw("/enterprise/im/setChatTop",e),_w.delChatAPI=e=>dw("/enterprise/im/delChat",e),_w.sendMessage=e=>dw("/enterprise/im/sendMessage",e),_w.forwardMessage=e=>dw("/enterprise/im/forwardMessage",e),_w.setMsgIsRead=e=>dw("/enterprise/im/setMsgIsRead",e),_w.readAtMsg=e=>dw("/enterprise/im/readAtMsg",e),_w.undoMessage=e=>dw("/enterprise/im/undoMessage",e),_w.sendToMsg=e=>dw("/enterprise/im/sendToMsg",e),_w.isNoticeAPI=e=>dw("/enterprise/im/isNotice",e),_w.updateCard=e=>dw("/enterprise/im/updateCard",e),_w.joinGroup=e=>dw("/enterprise/group/joinGroup",e),_w.groupUserList=e=>dw("/enterprise/group/groupUserList",e),_w.setNotice=e=>dw("/enterprise/group/setNotice",e),_w.groupInfo=e=>dw("/enterprise/group/groupInfo",e),_w.joinGroup=e=>dw("/enterprise/group/joinGroup",e),_w.groupSetting=e=>dw("/enterprise/group/groupSetting",e),_w.changeOwner=e=>dw("/enterprise/group/changeOwner",e),_w.getAllUser=e=>dw("/enterprise/group/getAllUser",e),_w.addGroup=e=>dw("/enterprise/group/add",e),_w.bindGroup=e=>dw("/common/index/bindGroup",e),_w.editGroupName=e=>dw("/enterprise/group/editGroupName",e),_w.addGroupUser=e=>dw("/enterprise/group/addGroupUser",e),_w.removeUser=e=>dw("/enterprise/group/removeUser",e),_w.removeGroup=e=>dw("/enterprise/group/removeGroup",e),_w.setManager=e=>dw("/enterprise/group/setManager",e),_w.getUserInfo=e=>dw("/enterprise/im/getUserInfo",e),_w.searchUser=e=>dw("enterprise/im/searchUser",e),_w.updateUserInfo=e=>dw("enterprise/im/updateUserInfo",e),_w.editAccount=e=>dw("enterprise/im/editAccount",e),_w.editPassword=e=>dw("enterprise/im/editPassword",e);let ww={delFriend:e=>dw("/enterprise/friend/del",e),addFriend:e=>dw("/enterprise/friend/add",e),applyList:e=>dw("/enterprise/friend/index",e),acceptApply:e=>dw("/enterprise/friend/update",e),setNickname:e=>dw("/enterprise/friend/setNickname",e)};const xw={msgApi:_w,LoginApi:pw,friendApi:ww};class kw{constructor(e,t,n){this.CALLBACK=e=>{e.isConnected&&(this.traderDetailIndex=2,this.connectSocketInit({type:"ping"}))},this.socketTask=null,this.is_open_socket=!1,this.url=n||uw.wssUrl,this.data=e||null,this.connectNum=1,this.traderDetailIndex=100,this.accountStateIndex=100,this.followFlake=!1,this.init=!1,this.timeout=t||2e4,this.heartbeatInterval=null,this.reconnectTimeOut=null,this.networkStatus=!0}connectSocketInit(e){this.data=e,this.socketTask=fy({url:this.url,success:()=>(console.info("正准备建立websocket中..."),this.socketTask)}),this.socketTask.onOpen((t=>{Mf("socketStatus",!0),this.networkStatus||_v(this.CALLBACK),this.networkStatus=!0,this.connectNum=1,console.info("WebSocket连接正常!"),this.send(e),clearInterval(this.reconnectTimeOut),clearInterval(this.heartbeatInterval),this.is_open_socket=!0,this.start(),this.socketTask.onMessage((e=>{let t=JSON.parse(e.data);t&&Mf("getPositonsOrder",t)}))})),this.init||(py((e=>{console.info(e,"WebSocket连接打开失败,请检查!"),this.socketTask=null,this.is_open_socket=!1,clearInterval(this.heartbeatInterval),clearInterval(this.reconnectTimeOut),this.connectNum<5?(this.traderDetailIndex=2,this.reconnect(),this.connectNum+=1):(Mf("connectError"),this.networkStatus=!1,bv(this.CALLBACK),this.connectNum=1)})),this.init=!0),this.socketTask.onClose((()=>{console.info("已经被关闭了-------"),clearInterval(this.heartbeatInterval),clearInterval(this.reconnectTimeOut),this.is_open_socket=!1,this.socketTask=null,this.connectNum<5?this.reconnect():(Mf("connectError"),this.networkStatus=!1,bv(this.CALLBACK),this.connectNum=1)}))}Close(){this.is_open_socket&&this.socketTask.close({success(){$y({title:"SocketTask 关闭成功",icon:"none"})}})}send(e){this.socketTask&&this.socketTask.send({data:JSON.stringify(e),async success(){}})}checkStatus(){return console.info("检查状态"),clearInterval(this.reconnectTimeOut),!(!this.socketTask||[2,3].includes(this.socketTask.readyState))||(console.info("未链接!"),!1)}start(){this.heartbeatInterval=setInterval((()=>{this.send({type:"ping"})}),this.timeout)}reconnect(){console.info("检查是否手动断开,并重新连接"),clearInterval(this.heartbeatInterval),this.is_open_socket||2!=this.traderDetailIndex&&0!=this.accountStateIndex&&!this.followFlake||(console.info("5秒后重新连接..."),this.reconnectTimeOut=setInterval((()=>{this.connectSocketInit(this.data)}),5e3))}arrayFilter(e,t="normal",n=0){let o=[],r=[],i={arr1:[],arr2:[]};return o=e.filter((e=>1==e.flwsig)),r=e.filter((e=>0==e.flwsig)),"normal"==t?n?(o=e.filter((e=>1==e.flwsig&&e.sigtraderid==n)),o):o.concat(r):(n>0?(o=e.filter((e=>1==e.flwsig&&e.sigtraderid==n)),i.arr1=o):i.arr1=o,i.arr2=r,i)}}const Ow=yw({name:"Empty",props:{src:{type:String,default:"/static/image/empty.png"},showImage:{type:Boolean,default:!0},noDatatext:{type:String,default:()=>"暂无数据"},textcolor:{type:String,default:"#333333"}},data:()=>({})},[["render",function(e,t,n,r,i,a){const s=_h,u=Rg,c=Lg;return Dr(),zr(u,{class:"lz-empty-box"},{default:$n((()=>[n.showImage?(Dr(),zr(u,{key:0,class:"im-flex im-align-items-center im-justify-content-center"},{default:$n((()=>[Zr(s,{class:"empty-img",src:n.src},null,8,["src"])])),_:1})):ei("",!0),Zr(u,{class:"text-center"},{default:$n((()=>[Zr(c,{class:l(n.showImage?" mt-20":""),style:o({color:n.textcolor})},{default:$n((()=>[Qr(p(n.noDatatext),1)])),_:1},8,["class","style"])])),_:1})])),_:1})}],["__scopeId","data-v-dd0de87c"]]);const Tw=yw({name:"tags",props:{size:{type:String,default:"mini"},type:{type:String,default:"primary"},text:{type:String,default:()=>"暂无"}},data:()=>({})},[["render",function(e,t,n,o,r,i){const a=Rg;return Dr(),zr(a,{class:l(["mr-5 radius-4 im-tags lh-15x",["mini"==n.size?"im-tags-mini":"","small"==n.size?"im-tags-samll":"","medium"==n.size?"im-tags-medium":"","info"==n.type?"im-tags-info":"","success"==n.type?"im-tags-success":"","warning"==n.type?"im-tags-warning":"","danger"==n.type?"im-tags-danger":""]])},{default:$n((()=>[Qr(p(n.text),1)])),_:1},8,["class"])}],["__scopeId","data-v-168cae09"]]);window.Quill=v_,function(){const e=Ta(vw);return e.config.globalProperties.appStatus=!0,e.config.globalProperties.$util=B_,e.config.globalProperties.$api=xw,e.config.globalProperties.$store=I_,e.config.globalProperties.socketIo=new kw,e.component("cu-custom",bw),e.component("Empty",Ow),e.component("Tags",Tw),e.use(I_),{app:e}}().app.use(Pm).mount("#app");export{If as $,Ev as A,yc as B,eb as C,qf as D,Fo as E,Lr as F,wa as G,$y as H,Mv as I,mv as J,ey as K,Iv as L,Od as M,_a as N,mh as O,nv as P,gv as Q,gm as R,kg as S,_y as T,Ov as U,sy as V,Jv as W,vd as X,Df as Y,Gm as Z,yw as _,Hr as a,wg as a0,Yy as a1,Ky as a2,Xo as a3,Rh as a4,pg as a5,Ia as a6,Ad as a7,yy as a8,Ng as a9,p_ as aA,h_ as aB,fw as aC,dw as aD,tb as aE,Nv as aF,sd as aG,ld as aH,Og as aI,Bg as aa,gg as ab,mg as ac,ov as ad,Tv as ae,Cv as af,fc as ag,hy as ah,Qm as ai,Gr as aj,jf as ak,Rd as al,Dd as am,ty as an,Av as ao,vy as ap,Bd as aq,Nd as ar,jd as as,$p as at,hc as au,Dp as av,ad as aw,ud as ax,Bp as ay,P as az,o as b,zr as c,Qr as d,ei as e,Rg as f,L_ as g,hw as h,Lg as i,Nf as j,Mf as k,Ny as l,Uy as m,l as n,Dr as o,Hy as p,my as q,Ko as r,I_ as s,p as t,R_ as u,Zr as v,$n as w,Ho as x,Vo as y,_h as z};
|